@infinityloop.labs/ui-kit 0.0.10 → 0.0.11

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.
Files changed (36) hide show
  1. package/dist/components/atoms/Breadcrumbs/index.d.ts +1 -0
  2. package/dist/components/atoms/Button/index.d.ts +20 -10
  3. package/dist/components/atoms/Dropdown/index.d.ts +22 -0
  4. package/dist/components/atoms/Flex/index.d.ts +3 -4
  5. package/dist/components/atoms/Grid/index.d.ts +2 -3
  6. package/dist/components/atoms/Image/index.d.ts +47 -0
  7. package/dist/components/atoms/Input/index.d.ts +22 -1
  8. package/dist/components/atoms/Paper/index.d.ts +17 -3
  9. package/dist/components/atoms/Tag/index.d.ts +15 -0
  10. package/dist/components/atoms/Timer/index.d.ts +19 -0
  11. package/dist/components/atoms/Toggle/index.d.ts +9 -0
  12. package/dist/components/atoms/Typography/index.d.ts +16 -6
  13. package/dist/components/atoms/index.d.ts +6 -0
  14. package/dist/components/index.d.ts +1 -0
  15. package/dist/components/molecules/EditableTypography/index.d.ts +18 -0
  16. package/dist/components/molecules/SlideTemplates/StoreSlide/index.d.ts +46 -0
  17. package/dist/components/molecules/SlideTemplates/index.d.ts +1 -0
  18. package/dist/components/molecules/Slider/index.d.ts +18 -0
  19. package/dist/components/molecules/Slider/slides/MediumHorizontalSlide.d.ts +10 -0
  20. package/dist/components/molecules/Slider/slides/MediumVerticalSlide.d.ts +3 -0
  21. package/dist/components/molecules/Slider/slides/examples.d.ts +31 -0
  22. package/dist/components/molecules/Slider/slides/index.d.ts +3 -0
  23. package/dist/components/molecules/index.d.ts +4 -0
  24. package/dist/components/ui/breadcrumbs.d.ts +18 -0
  25. package/dist/components/ui/index.d.ts +1 -0
  26. package/dist/components/ui/shadcn-io/color-picker/index.d.ts +5 -6
  27. package/dist/constants/css.d.ts +4 -0
  28. package/dist/constants/index.d.ts +1 -0
  29. package/dist/index.d.ts +1 -1
  30. package/dist/index.es.js +9197 -3613
  31. package/dist/index.umd.js +32 -27
  32. package/dist/lib/utils.d.ts +1 -2
  33. package/dist/style.css +1 -1
  34. package/package.json +12 -4
  35. package/dist/components/ui/button.d.ts +0 -10
  36. package/dist/components/ui/input.d.ts +0 -3
package/dist/index.umd.js CHANGED
@@ -1,4 +1,4 @@
1
- (function(K,V){typeof exports=="object"&&typeof module<"u"?V(exports,require("react"),require("@infinityloop.labs/utils"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","@infinityloop.labs/utils","react-dom"],V):(K=typeof globalThis<"u"?globalThis:K||self,V((K["@infinityloop"]=K["@infinityloop"]||{},K["@infinityloop"]["labs/ui-kit"]={}),K.React,K["@infinityloop"]["labs/utils"],K.ReactDOM))})(this,function(K,V,wt,Zn){"use strict";function Jn(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const c=Jn(V),St=Jn(Zn),Xf="";var Zt={exports:{}},it={};/**
1
+ (function(W,$){typeof exports=="object"&&typeof module<"u"?$(exports,require("react"),require("@infinityloop.labs/utils"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","@infinityloop.labs/utils","react-dom"],$):(W=typeof globalThis<"u"?globalThis:W||self,$((W["@infinityloop"]=W["@infinityloop"]||{},W["@infinityloop"]["labs/ui-kit"]={}),W.React,W["@infinityloop"]["labs/utils"],W.ReactDOM))})(this,function(W,$,oe,Xr){"use strict";function Kr(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const f=Kr($),Vt=Kr(Xr),nv="";var Nn={exports:{}},kt={};/**
2
2
  * @license React
3
3
  * react-jsx-runtime.production.js
4
4
  *
@@ -6,7 +6,7 @@
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 Qn;function Js(){if(Qn)return it;Qn=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,o,s){var i=null;if(s!==void 0&&(i=""+s),o.key!==void 0&&(i=""+o.key),"key"in o){s={};for(var a in o)a!=="key"&&(s[a]=o[a])}else s=o;return o=s.ref,{$$typeof:e,type:r,key:i,ref:o!==void 0?o:null,props:s}}return it.Fragment=t,it.jsx=n,it.jsxs=n,it}var at={};/**
9
+ */var Zr;function Ba(){if(Zr)return kt;Zr=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,o,s){var i=null;if(s!==void 0&&(i=""+s),o.key!==void 0&&(i=""+o.key),"key"in o){s={};for(var a in o)a!=="key"&&(s[a]=o[a])}else s=o;return o=s.ref,{$$typeof:e,type:r,key:i,ref:o!==void 0?o:null,props:s}}return kt.Fragment=t,kt.jsx=n,kt.jsxs=n,kt}var Mt={};/**
10
10
  * @license React
11
11
  * react-jsx-runtime.development.js
12
12
  *
@@ -14,62 +14,67 @@
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 er;function Qs(){return er||(er=1,process.env.NODE_ENV!=="production"&&function(){function e(S){if(S==null)return null;if(typeof S=="function")return S.$$typeof===I?null:S.displayName||S.name||null;if(typeof S=="string")return S;switch(S){case b:return"Fragment";case x:return"Profiler";case y:return"StrictMode";case N:return"Suspense";case A:return"SuspenseList";case B:return"Activity"}if(typeof S=="object")switch(typeof S.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),S.$$typeof){case p:return"Portal";case C:return S.displayName||"Context";case w:return(S._context.displayName||"Context")+".Consumer";case E:var L=S.render;return S=S.displayName,S||(S=L.displayName||L.name||"",S=S!==""?"ForwardRef("+S+")":"ForwardRef"),S;case k:return L=S.displayName||null,L!==null?L:e(S.type)||"Memo";case $:L=S._payload,S=S._init;try{return e(S(L))}catch{}}return null}function t(S){return""+S}function n(S){try{t(S);var L=!1}catch{L=!0}if(L){L=console;var F=L.error,z=typeof Symbol=="function"&&Symbol.toStringTag&&S[Symbol.toStringTag]||S.constructor.name||"Object";return F.call(L,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",z),t(S)}}function r(S){if(S===b)return"<>";if(typeof S=="object"&&S!==null&&S.$$typeof===$)return"<...>";try{var L=e(S);return L?"<"+L+">":"<...>"}catch{return"<...>"}}function o(){var S=D.A;return S===null?null:S.getOwner()}function s(){return Error("react-stack-top-frame")}function i(S){if(W.call(S,"key")){var L=Object.getOwnPropertyDescriptor(S,"key").get;if(L&&L.isReactWarning)return!1}return S.key!==void 0}function a(S,L){function F(){M||(M=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",L))}F.isReactWarning=!0,Object.defineProperty(S,"key",{get:F,configurable:!0})}function l(){var S=e(this.type);return j[S]||(j[S]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),S=this.props.ref,S!==void 0?S:null}function u(S,L,F,z,de,fe){var P=F.ref;return S={$$typeof:v,type:S,key:L,props:F,_owner:z},(P!==void 0?P:null)!==null?Object.defineProperty(S,"ref",{enumerable:!1,get:l}):Object.defineProperty(S,"ref",{enumerable:!1,value:null}),S._store={},Object.defineProperty(S._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(S,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(S,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:de}),Object.defineProperty(S,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:fe}),Object.freeze&&(Object.freeze(S.props),Object.freeze(S)),S}function f(S,L,F,z,de,fe){var P=L.children;if(P!==void 0)if(z)if(H(P)){for(z=0;z<P.length;z++)d(P[z]);Object.freeze&&Object.freeze(P)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else d(P);if(W.call(L,"key")){P=e(S);var Y=Object.keys(L).filter(function(X){return X!=="key"});z=0<Y.length?"{key: someKey, "+Y.join(": ..., ")+": ...}":"{key: someKey}",se[P+z]||(Y=0<Y.length?"{"+Y.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
17
+ */var Jr;function Fa(){return Jr||(Jr=1,process.env.NODE_ENV!=="production"&&function(){function e(I){if(I==null)return null;if(typeof I=="function")return I.$$typeof===N?null:I.displayName||I.name||null;if(typeof I=="string")return I;switch(I){case x:return"Fragment";case b:return"Profiler";case y:return"StrictMode";case T:return"Suspense";case M:return"SuspenseList";case P:return"Activity"}if(typeof I=="object")switch(typeof I.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),I.$$typeof){case m:return"Portal";case S:return I.displayName||"Context";case h:return(I._context.displayName||"Context")+".Consumer";case E:var G=I.render;return I=I.displayName,I||(I=G.displayName||G.name||"",I=I!==""?"ForwardRef("+I+")":"ForwardRef"),I;case _:return G=I.displayName||null,G!==null?G:e(I.type)||"Memo";case A:G=I._payload,I=I._init;try{return e(I(G))}catch{}}return null}function t(I){return""+I}function n(I){try{t(I);var G=!1}catch{G=!0}if(G){G=console;var q=G.error,K=typeof Symbol=="function"&&Symbol.toStringTag&&I[Symbol.toStringTag]||I.constructor.name||"Object";return q.call(G,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",K),t(I)}}function r(I){if(I===x)return"<>";if(typeof I=="object"&&I!==null&&I.$$typeof===A)return"<...>";try{var G=e(I);return G?"<"+G+">":"<...>"}catch{return"<...>"}}function o(){var I=L.A;return I===null?null:I.getOwner()}function s(){return Error("react-stack-top-frame")}function i(I){if(O.call(I,"key")){var G=Object.getOwnPropertyDescriptor(I,"key").get;if(G&&G.isReactWarning)return!1}return I.key!==void 0}function a(I,G){function q(){j||(j=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",G))}q.isReactWarning=!0,Object.defineProperty(I,"key",{get:q,configurable:!0})}function l(){var I=e(this.type);return k[I]||(k[I]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),I=this.props.ref,I!==void 0?I:null}function c(I,G,q,K,se,ae){var B=q.ref;return I={$$typeof:g,type:I,key:G,props:q,_owner:K},(B!==void 0?B:null)!==null?Object.defineProperty(I,"ref",{enumerable:!1,get:l}):Object.defineProperty(I,"ref",{enumerable:!1,value:null}),I._store={},Object.defineProperty(I._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(I,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(I,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:se}),Object.defineProperty(I,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:ae}),Object.freeze&&(Object.freeze(I.props),Object.freeze(I)),I}function d(I,G,q,K,se,ae){var B=G.children;if(B!==void 0)if(K)if(D(B)){for(K=0;K<B.length;K++)u(B[K]);Object.freeze&&Object.freeze(B)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else u(B);if(O.call(G,"key")){B=e(I);var Z=Object.keys(G).filter(function(Q){return Q!=="key"});K=0<Z.length?"{key: someKey, "+Z.join(": ..., ")+": ...}":"{key: someKey}",H[B+K]||(Z=0<Z.length?"{"+Z.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
18
18
  let props = %s;
19
19
  <%s {...props} />
20
20
  React keys must be passed directly to JSX without using spread:
21
21
  let props = %s;
22
- <%s key={someKey} {...props} />`,z,P,Y,P),se[P+z]=!0)}if(P=null,F!==void 0&&(n(F),P=""+F),i(L)&&(n(L.key),P=""+L.key),"key"in L){F={};for(var te in L)te!=="key"&&(F[te]=L[te])}else F=L;return P&&a(F,typeof S=="function"?S.displayName||S.name||"Unknown":S),u(S,P,F,o(),de,fe)}function d(S){m(S)?S._store&&(S._store.validated=1):typeof S=="object"&&S!==null&&S.$$typeof===$&&(S._payload.status==="fulfilled"?m(S._payload.value)&&S._payload.value._store&&(S._payload.value._store.validated=1):S._store&&(S._store.validated=1))}function m(S){return typeof S=="object"&&S!==null&&S.$$typeof===v}var h=V,v=Symbol.for("react.transitional.element"),p=Symbol.for("react.portal"),b=Symbol.for("react.fragment"),y=Symbol.for("react.strict_mode"),x=Symbol.for("react.profiler"),w=Symbol.for("react.consumer"),C=Symbol.for("react.context"),E=Symbol.for("react.forward_ref"),N=Symbol.for("react.suspense"),A=Symbol.for("react.suspense_list"),k=Symbol.for("react.memo"),$=Symbol.for("react.lazy"),B=Symbol.for("react.activity"),I=Symbol.for("react.client.reference"),D=h.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,W=Object.prototype.hasOwnProperty,H=Array.isArray,G=console.createTask?console.createTask:function(){return null};h={react_stack_bottom_frame:function(S){return S()}};var M,j={},_=h.react_stack_bottom_frame.bind(h,s)(),q=G(r(s)),se={};at.Fragment=b,at.jsx=function(S,L,F){var z=1e4>D.recentlyCreatedOwnerStacks++;return f(S,L,F,!1,z?Error("react-stack-top-frame"):_,z?G(r(S)):q)},at.jsxs=function(S,L,F){var z=1e4>D.recentlyCreatedOwnerStacks++;return f(S,L,F,!0,z?Error("react-stack-top-frame"):_,z?G(r(S)):q)}}()),at}process.env.NODE_ENV==="production"?Zt.exports=Js():Zt.exports=Qs();var g=Zt.exports;const tr={"flex-start":"items-start","flex-end":"items-end",center:"items-center",baseline:"items-baseline",stretch:"items-stretch"},nr={"flex-start":"justify-start","flex-end":"justify-end",center:"justify-center","space-between":"justify-between","space-around":"justify-around","space-evenly":"justify-evenly"},Jt=V.forwardRef(({children:e,className:t="",column:n,middle:r,...o},s)=>g.jsx("div",{ref:s,className:wt.clsx("flex",n&&"flex-col",o["justify-content"]&&nr[o["justify-content"]],o["align-items"]&&tr[o["align-items"]],r&&`${tr.center} ${nr.center}`,t),...o,children:e}));Jt.displayName="Flex";const ei={1:"grid-cols-1",2:"grid-cols-2",3:"grid-cols-3",4:"grid-cols-4",5:"grid-cols-5",6:"grid-cols-6",7:"grid-cols-7",8:"grid-cols-8",9:"grid-cols-9",10:"grid-cols-10",11:"grid-cols-11",12:"grid-cols-12"},rr=V.forwardRef(({children:e,className:t="",column:n=2,...r},o)=>g.jsx("div",{ref:o,className:wt.clsx("grid",ei[n],t),...r,children:e}));rr.displayName="Grid";const ti={H1SemiBold:"text-24 leading-140 font-600",H2SemiBold:"text-20 leading-140 font-600",H3Medium:"text-18 leading-148 font-500",H3SemiBold:"text-18 leading-148 font-600",H4SemiBold:"text-16 leading-148 font-600",MRegular:"text-16 leading-148 font-400",MMedium:"text-16 leading-148 font-500",MSemiBold:"text-16 leading-148 font-600",SRegular:"text-14 leading-148 font-400",SMedium:"text-14 leading-148 font-500",SSemiBold:"text-14 leading-148 font-600",XSMedium:"text-12 leading-130 font-500",MonoMRegular:"font-mono text-16 leading-140 font-400",MonoSRegular:"font-mono text-14 leading-140 font-400",Heading32:"text-32 leading-40 font-600",Heading24:"text-24 leading-30 font-600",Heading20:"text-20 leading-28 font-600",Heading16:"text-16 leading-24 font-600",Heading14:"text-14 leading-16 font-600",Heading12:"text-12 leading-16 font-600",SemiBold52:"text-52 leading-64 font-600",SemiBold48:"text-48 leading-60 font-600",SemiBold40:"text-40 leading-48 font-600",SemiBold32:"text-32 leading-40 font-600",SemiBold24:"text-24 leading-32 font-600",SemiBold20:"text-20 leading-28 font-600",SemiBold16:"text-16 leading-24 font-600",SemiBold14:"text-14 leading-20 font-600",Regular24:"text-24 leading-30 font-400",Regular20:"text-20 leading-26 font-400",Regular16:"text-16 leading-24 font-400",Regular14:"text-14 leading-20 font-400",Regular12:"text-12 leading-16 font-400",Mono16:"font-mono text-16 leading-24 font-400"},or=({typography:e,element:t="span",className:n="",children:r,...o})=>{const s=wt.clsx("font-infinityloop",ti[e],n);return V.createElement(t,{className:s,...o},r)};or.displayName="Typography";const ni=({children:e,className:t,color:n="white"})=>g.jsx(Jt,{className:wt.clsx("rounded-3",{"bg-content-constant":n==="white","bg-content-secondary":n==="gray"},t),children:e});function sr(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function ve(...e){return t=>{let n=!1;const r=e.map(o=>{const s=sr(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():sr(e[o],null)}}}}function ne(...e){return c.useCallback(ve(...e),e)}var ri=Symbol.for("react.lazy"),Ct=c[" use ".trim().toString()];function oi(e){return typeof e=="object"&&e!==null&&"then"in e}function ir(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===ri&&"_payload"in e&&oi(e._payload)}function ar(e){const t=si(e),n=c.forwardRef((r,o)=>{let{children:s,...i}=r;ir(s)&&typeof Ct=="function"&&(s=Ct(s._payload));const a=c.Children.toArray(s),l=a.find(ai);if(l){const u=l.props.children,f=a.map(d=>d===l?c.Children.count(u)>1?c.Children.only(null):c.isValidElement(u)?u.props.children:null:d);return g.jsx(t,{...i,ref:o,children:c.isValidElement(u)?c.cloneElement(u,void 0,f):null})}return g.jsx(t,{...i,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}var Qt=ar("Slot");function si(e){const t=c.forwardRef((n,r)=>{let{children:o,...s}=n;if(ir(o)&&typeof Ct=="function"&&(o=Ct(o._payload)),c.isValidElement(o)){const i=ci(o),a=li(s,o.props);return o.type!==c.Fragment&&(a.ref=r?ve(r,i):i),c.cloneElement(o,a)}return c.Children.count(o)>1?c.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var ii=Symbol("radix.slottable");function ai(e){return c.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===ii}function li(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]=(...a)=>{const l=s(...a);return o(...a),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function ci(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)}function lr(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=lr(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function cr(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=lr(e))&&(r&&(r+=" "),r+=t);return r}const ur=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,dr=cr,fr=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return dr(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:o,defaultVariants:s}=t,i=Object.keys(o).map(u=>{const f=n==null?void 0:n[u],d=s==null?void 0:s[u];if(f===null)return null;const m=ur(f)||ur(d);return o[u][m]}),a=n&&Object.entries(n).reduce((u,f)=>{let[d,m]=f;return m===void 0||(u[d]=m),u},{}),l=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((u,f)=>{let{class:d,className:m,...h}=f;return Object.entries(h).every(v=>{let[p,b]=v;return Array.isArray(b)?b.includes({...s,...a}[p]):{...s,...a}[p]===b})?[...u,d,m]:u},[]);return dr(e,i,l,n==null?void 0:n.class,n==null?void 0:n.className)},en="-",ui=e=>{const t=fi(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:i=>{const a=i.split(en);return a[0]===""&&a.length!==1&&a.shift(),pr(a,t)||di(i)},getConflictingClassGroupIds:(i,a)=>{const l=n[i]||[];return a&&r[i]?[...l,...r[i]]:l}}},pr=(e,t)=>{var i;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?pr(e.slice(1),r):void 0;if(o)return o;if(t.validators.length===0)return;const s=e.join(en);return(i=t.validators.find(({validator:a})=>a(s)))==null?void 0:i.classGroupId},mr=/^\[(.+)\]$/,di=e=>{if(mr.test(e)){const t=mr.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},fi=e=>{const{theme:t,classGroups:n}=e,r={nextPart:new Map,validators:[]};for(const o in n)tn(n[o],r,o,t);return r},tn=(e,t,n,r)=>{e.forEach(o=>{if(typeof o=="string"){const s=o===""?t:hr(t,o);s.classGroupId=n;return}if(typeof o=="function"){if(pi(o)){tn(o(r),t,n,r);return}t.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(([s,i])=>{tn(i,hr(t,s),n,r)})})},hr=(e,t)=>{let n=e;return t.split(en).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},pi=e=>e.isThemeGetter,mi=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const o=(s,i)=>{n.set(s,i),t++,t>e&&(t=0,r=n,n=new Map)};return{get(s){let i=n.get(s);if(i!==void 0)return i;if((i=r.get(s))!==void 0)return o(s,i),i},set(s,i){n.has(s)?n.set(s,i):o(s,i)}}},nn="!",rn=":",hi=rn.length,gi=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=o=>{const s=[];let i=0,a=0,l=0,u;for(let v=0;v<o.length;v++){let p=o[v];if(i===0&&a===0){if(p===rn){s.push(o.slice(l,v)),l=v+hi;continue}if(p==="/"){u=v;continue}}p==="["?i++:p==="]"?i--:p==="("?a++:p===")"&&a--}const f=s.length===0?o:o.substring(l),d=vi(f),m=d!==f,h=u&&u>l?u-l:void 0;return{modifiers:s,hasImportantModifier:m,baseClassName:d,maybePostfixModifierPosition:h}};if(t){const o=t+rn,s=r;r=i=>i.startsWith(o)?s(i.substring(o.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:i,maybePostfixModifierPosition:void 0}}if(n){const o=r;r=s=>n({className:s,parseClassName:o})}return r},vi=e=>e.endsWith(nn)?e.substring(0,e.length-1):e.startsWith(nn)?e.substring(1):e,bi=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(r=>[r,!0]));return r=>{if(r.length<=1)return r;const o=[];let s=[];return r.forEach(i=>{i[0]==="["||t[i]?(o.push(...s.sort(),i),s=[]):s.push(i)}),o.push(...s.sort()),o}},yi=e=>({cache:mi(e.cacheSize),parseClassName:gi(e),sortModifiers:bi(e),...ui(e)}),xi=/\s+/,wi=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o,sortModifiers:s}=t,i=[],a=e.trim().split(xi);let l="";for(let u=a.length-1;u>=0;u-=1){const f=a[u],{isExternal:d,modifiers:m,hasImportantModifier:h,baseClassName:v,maybePostfixModifierPosition:p}=n(f);if(d){l=f+(l.length>0?" "+l:l);continue}let b=!!p,y=r(b?v.substring(0,p):v);if(!y){if(!b){l=f+(l.length>0?" "+l:l);continue}if(y=r(v),!y){l=f+(l.length>0?" "+l:l);continue}b=!1}const x=s(m).join(":"),w=h?x+nn:x,C=w+y;if(i.includes(C))continue;i.push(C);const E=o(y,b);for(let N=0;N<E.length;++N){const A=E[N];i.push(w+A)}l=f+(l.length>0?" "+l:l)}return l};function Si(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=gr(t))&&(r&&(r+=" "),r+=n);return r}const gr=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=gr(e[r]))&&(n&&(n+=" "),n+=t);return n};function Ci(e,...t){let n,r,o,s=i;function i(l){const u=t.reduce((f,d)=>d(f),e());return n=yi(u),r=n.cache.get,o=n.cache.set,s=a,a(l)}function a(l){const u=r(l);if(u)return u;const f=wi(l,n);return o(l,f),f}return function(){return s(Si.apply(null,arguments))}}const ie=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},vr=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,br=/^\((?:(\w[\w-]*):)?(.+)\)$/i,_i=/^\d+\/\d+$/,Ei=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,ki=/\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$/,Pi=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Ai=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Ri=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,He=e=>_i.test(e),U=e=>!!e&&!Number.isNaN(Number(e)),Oe=e=>!!e&&Number.isInteger(Number(e)),on=e=>e.endsWith("%")&&U(e.slice(0,-1)),Pe=e=>Ei.test(e),Ni=()=>!0,Oi=e=>ki.test(e)&&!Pi.test(e),yr=()=>!1,Ti=e=>Ai.test(e),Mi=e=>Ri.test(e),Ii=e=>!O(e)&&!T(e),ji=e=>Ue(e,_r,yr),O=e=>vr.test(e),Fe=e=>Ue(e,Er,Oi),sn=e=>Ue(e,Bi,U),xr=e=>Ue(e,Sr,yr),Li=e=>Ue(e,Cr,Mi),_t=e=>Ue(e,kr,Ti),T=e=>br.test(e),lt=e=>Ge(e,Er),$i=e=>Ge(e,Vi),wr=e=>Ge(e,Sr),Di=e=>Ge(e,_r),Fi=e=>Ge(e,Cr),Et=e=>Ge(e,kr,!0),Ue=(e,t,n)=>{const r=vr.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},Ge=(e,t,n=!1)=>{const r=br.exec(e);return r?r[1]?t(r[1]):n:!1},Sr=e=>e==="position"||e==="percentage",Cr=e=>e==="image"||e==="url",_r=e=>e==="length"||e==="size"||e==="bg-size",Er=e=>e==="length",Bi=e=>e==="number",Vi=e=>e==="family-name",kr=e=>e==="shadow",zi=Ci(()=>{const e=ie("color"),t=ie("font"),n=ie("text"),r=ie("font-weight"),o=ie("tracking"),s=ie("leading"),i=ie("breakpoint"),a=ie("container"),l=ie("spacing"),u=ie("radius"),f=ie("shadow"),d=ie("inset-shadow"),m=ie("text-shadow"),h=ie("drop-shadow"),v=ie("blur"),p=ie("perspective"),b=ie("aspect"),y=ie("ease"),x=ie("animate"),w=()=>["auto","avoid","all","avoid-page","page","left","right","column"],C=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],E=()=>[...C(),T,O],N=()=>["auto","hidden","clip","visible","scroll"],A=()=>["auto","contain","none"],k=()=>[T,O,l],$=()=>[He,"full","auto",...k()],B=()=>[Oe,"none","subgrid",T,O],I=()=>["auto",{span:["full",Oe,T,O]},Oe,T,O],D=()=>[Oe,"auto",T,O],W=()=>["auto","min","max","fr",T,O],H=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],G=()=>["start","end","center","stretch","center-safe","end-safe"],M=()=>["auto",...k()],j=()=>[He,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...k()],_=()=>[e,T,O],q=()=>[...C(),wr,xr,{position:[T,O]}],se=()=>["no-repeat",{repeat:["","x","y","space","round"]}],S=()=>["auto","cover","contain",Di,ji,{size:[T,O]}],L=()=>[on,lt,Fe],F=()=>["","none","full",u,T,O],z=()=>["",U,lt,Fe],de=()=>["solid","dashed","dotted","double"],fe=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],P=()=>[U,on,wr,xr],Y=()=>["","none",v,T,O],te=()=>["none",U,T,O],X=()=>["none",U,T,O],J=()=>[U,T,O],Z=()=>[He,"full",...k()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Pe],breakpoint:[Pe],color:[Ni],container:[Pe],"drop-shadow":[Pe],ease:["in","out","in-out"],font:[Ii],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Pe],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Pe],shadow:[Pe],spacing:["px",U],text:[Pe],"text-shadow":[Pe],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",He,O,T,b]}],container:["container"],columns:[{columns:[U,O,T,a]}],"break-after":[{"break-after":w()}],"break-before":[{"break-before":w()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:E()}],overflow:[{overflow:N()}],"overflow-x":[{"overflow-x":N()}],"overflow-y":[{"overflow-y":N()}],overscroll:[{overscroll:A()}],"overscroll-x":[{"overscroll-x":A()}],"overscroll-y":[{"overscroll-y":A()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:$()}],"inset-x":[{"inset-x":$()}],"inset-y":[{"inset-y":$()}],start:[{start:$()}],end:[{end:$()}],top:[{top:$()}],right:[{right:$()}],bottom:[{bottom:$()}],left:[{left:$()}],visibility:["visible","invisible","collapse"],z:[{z:[Oe,"auto",T,O]}],basis:[{basis:[He,"full","auto",a,...k()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[U,He,"auto","initial","none",O]}],grow:[{grow:["",U,T,O]}],shrink:[{shrink:["",U,T,O]}],order:[{order:[Oe,"first","last","none",T,O]}],"grid-cols":[{"grid-cols":B()}],"col-start-end":[{col:I()}],"col-start":[{"col-start":D()}],"col-end":[{"col-end":D()}],"grid-rows":[{"grid-rows":B()}],"row-start-end":[{row:I()}],"row-start":[{"row-start":D()}],"row-end":[{"row-end":D()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":W()}],"auto-rows":[{"auto-rows":W()}],gap:[{gap:k()}],"gap-x":[{"gap-x":k()}],"gap-y":[{"gap-y":k()}],"justify-content":[{justify:[...H(),"normal"]}],"justify-items":[{"justify-items":[...G(),"normal"]}],"justify-self":[{"justify-self":["auto",...G()]}],"align-content":[{content:["normal",...H()]}],"align-items":[{items:[...G(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...G(),{baseline:["","last"]}]}],"place-content":[{"place-content":H()}],"place-items":[{"place-items":[...G(),"baseline"]}],"place-self":[{"place-self":["auto",...G()]}],p:[{p:k()}],px:[{px:k()}],py:[{py:k()}],ps:[{ps:k()}],pe:[{pe:k()}],pt:[{pt:k()}],pr:[{pr:k()}],pb:[{pb:k()}],pl:[{pl:k()}],m:[{m:M()}],mx:[{mx:M()}],my:[{my:M()}],ms:[{ms:M()}],me:[{me:M()}],mt:[{mt:M()}],mr:[{mr:M()}],mb:[{mb:M()}],ml:[{ml:M()}],"space-x":[{"space-x":k()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":k()}],"space-y-reverse":["space-y-reverse"],size:[{size:j()}],w:[{w:[a,"screen",...j()]}],"min-w":[{"min-w":[a,"screen","none",...j()]}],"max-w":[{"max-w":[a,"screen","none","prose",{screen:[i]},...j()]}],h:[{h:["screen","lh",...j()]}],"min-h":[{"min-h":["screen","lh","none",...j()]}],"max-h":[{"max-h":["screen","lh",...j()]}],"font-size":[{text:["base",n,lt,Fe]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,T,sn]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",on,O]}],"font-family":[{font:[$i,O,t]}],"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:[o,T,O]}],"line-clamp":[{"line-clamp":[U,"none",T,sn]}],leading:[{leading:[s,...k()]}],"list-image":[{"list-image":["none",T,O]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",T,O]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:_()}],"text-color":[{text:_()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...de(),"wavy"]}],"text-decoration-thickness":[{decoration:[U,"from-font","auto",T,Fe]}],"text-decoration-color":[{decoration:_()}],"underline-offset":[{"underline-offset":[U,"auto",T,O]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:k()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",T,O]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",T,O]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:q()}],"bg-repeat":[{bg:se()}],"bg-size":[{bg:S()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Oe,T,O],radial:["",T,O],conic:[Oe,T,O]},Fi,Li]}],"bg-color":[{bg:_()}],"gradient-from-pos":[{from:L()}],"gradient-via-pos":[{via:L()}],"gradient-to-pos":[{to:L()}],"gradient-from":[{from:_()}],"gradient-via":[{via:_()}],"gradient-to":[{to:_()}],rounded:[{rounded:F()}],"rounded-s":[{"rounded-s":F()}],"rounded-e":[{"rounded-e":F()}],"rounded-t":[{"rounded-t":F()}],"rounded-r":[{"rounded-r":F()}],"rounded-b":[{"rounded-b":F()}],"rounded-l":[{"rounded-l":F()}],"rounded-ss":[{"rounded-ss":F()}],"rounded-se":[{"rounded-se":F()}],"rounded-ee":[{"rounded-ee":F()}],"rounded-es":[{"rounded-es":F()}],"rounded-tl":[{"rounded-tl":F()}],"rounded-tr":[{"rounded-tr":F()}],"rounded-br":[{"rounded-br":F()}],"rounded-bl":[{"rounded-bl":F()}],"border-w":[{border:z()}],"border-w-x":[{"border-x":z()}],"border-w-y":[{"border-y":z()}],"border-w-s":[{"border-s":z()}],"border-w-e":[{"border-e":z()}],"border-w-t":[{"border-t":z()}],"border-w-r":[{"border-r":z()}],"border-w-b":[{"border-b":z()}],"border-w-l":[{"border-l":z()}],"divide-x":[{"divide-x":z()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":z()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...de(),"hidden","none"]}],"divide-style":[{divide:[...de(),"hidden","none"]}],"border-color":[{border:_()}],"border-color-x":[{"border-x":_()}],"border-color-y":[{"border-y":_()}],"border-color-s":[{"border-s":_()}],"border-color-e":[{"border-e":_()}],"border-color-t":[{"border-t":_()}],"border-color-r":[{"border-r":_()}],"border-color-b":[{"border-b":_()}],"border-color-l":[{"border-l":_()}],"divide-color":[{divide:_()}],"outline-style":[{outline:[...de(),"none","hidden"]}],"outline-offset":[{"outline-offset":[U,T,O]}],"outline-w":[{outline:["",U,lt,Fe]}],"outline-color":[{outline:_()}],shadow:[{shadow:["","none",f,Et,_t]}],"shadow-color":[{shadow:_()}],"inset-shadow":[{"inset-shadow":["none",d,Et,_t]}],"inset-shadow-color":[{"inset-shadow":_()}],"ring-w":[{ring:z()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:_()}],"ring-offset-w":[{"ring-offset":[U,Fe]}],"ring-offset-color":[{"ring-offset":_()}],"inset-ring-w":[{"inset-ring":z()}],"inset-ring-color":[{"inset-ring":_()}],"text-shadow":[{"text-shadow":["none",m,Et,_t]}],"text-shadow-color":[{"text-shadow":_()}],opacity:[{opacity:[U,T,O]}],"mix-blend":[{"mix-blend":[...fe(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":fe()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[U]}],"mask-image-linear-from-pos":[{"mask-linear-from":P()}],"mask-image-linear-to-pos":[{"mask-linear-to":P()}],"mask-image-linear-from-color":[{"mask-linear-from":_()}],"mask-image-linear-to-color":[{"mask-linear-to":_()}],"mask-image-t-from-pos":[{"mask-t-from":P()}],"mask-image-t-to-pos":[{"mask-t-to":P()}],"mask-image-t-from-color":[{"mask-t-from":_()}],"mask-image-t-to-color":[{"mask-t-to":_()}],"mask-image-r-from-pos":[{"mask-r-from":P()}],"mask-image-r-to-pos":[{"mask-r-to":P()}],"mask-image-r-from-color":[{"mask-r-from":_()}],"mask-image-r-to-color":[{"mask-r-to":_()}],"mask-image-b-from-pos":[{"mask-b-from":P()}],"mask-image-b-to-pos":[{"mask-b-to":P()}],"mask-image-b-from-color":[{"mask-b-from":_()}],"mask-image-b-to-color":[{"mask-b-to":_()}],"mask-image-l-from-pos":[{"mask-l-from":P()}],"mask-image-l-to-pos":[{"mask-l-to":P()}],"mask-image-l-from-color":[{"mask-l-from":_()}],"mask-image-l-to-color":[{"mask-l-to":_()}],"mask-image-x-from-pos":[{"mask-x-from":P()}],"mask-image-x-to-pos":[{"mask-x-to":P()}],"mask-image-x-from-color":[{"mask-x-from":_()}],"mask-image-x-to-color":[{"mask-x-to":_()}],"mask-image-y-from-pos":[{"mask-y-from":P()}],"mask-image-y-to-pos":[{"mask-y-to":P()}],"mask-image-y-from-color":[{"mask-y-from":_()}],"mask-image-y-to-color":[{"mask-y-to":_()}],"mask-image-radial":[{"mask-radial":[T,O]}],"mask-image-radial-from-pos":[{"mask-radial-from":P()}],"mask-image-radial-to-pos":[{"mask-radial-to":P()}],"mask-image-radial-from-color":[{"mask-radial-from":_()}],"mask-image-radial-to-color":[{"mask-radial-to":_()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":C()}],"mask-image-conic-pos":[{"mask-conic":[U]}],"mask-image-conic-from-pos":[{"mask-conic-from":P()}],"mask-image-conic-to-pos":[{"mask-conic-to":P()}],"mask-image-conic-from-color":[{"mask-conic-from":_()}],"mask-image-conic-to-color":[{"mask-conic-to":_()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:q()}],"mask-repeat":[{mask:se()}],"mask-size":[{mask:S()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",T,O]}],filter:[{filter:["","none",T,O]}],blur:[{blur:Y()}],brightness:[{brightness:[U,T,O]}],contrast:[{contrast:[U,T,O]}],"drop-shadow":[{"drop-shadow":["","none",h,Et,_t]}],"drop-shadow-color":[{"drop-shadow":_()}],grayscale:[{grayscale:["",U,T,O]}],"hue-rotate":[{"hue-rotate":[U,T,O]}],invert:[{invert:["",U,T,O]}],saturate:[{saturate:[U,T,O]}],sepia:[{sepia:["",U,T,O]}],"backdrop-filter":[{"backdrop-filter":["","none",T,O]}],"backdrop-blur":[{"backdrop-blur":Y()}],"backdrop-brightness":[{"backdrop-brightness":[U,T,O]}],"backdrop-contrast":[{"backdrop-contrast":[U,T,O]}],"backdrop-grayscale":[{"backdrop-grayscale":["",U,T,O]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[U,T,O]}],"backdrop-invert":[{"backdrop-invert":["",U,T,O]}],"backdrop-opacity":[{"backdrop-opacity":[U,T,O]}],"backdrop-saturate":[{"backdrop-saturate":[U,T,O]}],"backdrop-sepia":[{"backdrop-sepia":["",U,T,O]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":k()}],"border-spacing-x":[{"border-spacing-x":k()}],"border-spacing-y":[{"border-spacing-y":k()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",T,O]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[U,"initial",T,O]}],ease:[{ease:["linear","initial",y,T,O]}],delay:[{delay:[U,T,O]}],animate:[{animate:["none",x,T,O]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[p,T,O]}],"perspective-origin":[{"perspective-origin":E()}],rotate:[{rotate:te()}],"rotate-x":[{"rotate-x":te()}],"rotate-y":[{"rotate-y":te()}],"rotate-z":[{"rotate-z":te()}],scale:[{scale:X()}],"scale-x":[{"scale-x":X()}],"scale-y":[{"scale-y":X()}],"scale-z":[{"scale-z":X()}],"scale-3d":["scale-3d"],skew:[{skew:J()}],"skew-x":[{"skew-x":J()}],"skew-y":[{"skew-y":J()}],transform:[{transform:[T,O,"","none","gpu","cpu"]}],"transform-origin":[{origin:E()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Z()}],"translate-x":[{"translate-x":Z()}],"translate-y":[{"translate-y":Z()}],"translate-z":[{"translate-z":Z()}],"translate-none":["translate-none"],accent:[{accent:_()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:_()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",T,O]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":k()}],"scroll-mx":[{"scroll-mx":k()}],"scroll-my":[{"scroll-my":k()}],"scroll-ms":[{"scroll-ms":k()}],"scroll-me":[{"scroll-me":k()}],"scroll-mt":[{"scroll-mt":k()}],"scroll-mr":[{"scroll-mr":k()}],"scroll-mb":[{"scroll-mb":k()}],"scroll-ml":[{"scroll-ml":k()}],"scroll-p":[{"scroll-p":k()}],"scroll-px":[{"scroll-px":k()}],"scroll-py":[{"scroll-py":k()}],"scroll-ps":[{"scroll-ps":k()}],"scroll-pe":[{"scroll-pe":k()}],"scroll-pt":[{"scroll-pt":k()}],"scroll-pr":[{"scroll-pr":k()}],"scroll-pb":[{"scroll-pb":k()}],"scroll-pl":[{"scroll-pl":k()}],"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",T,O]}],fill:[{fill:["none",..._()]}],"stroke-w":[{stroke:[U,lt,Fe,sn]}],stroke:[{stroke:["none",..._()]}],"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-x","border-w-y","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-x","border-color-y","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"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-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"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}});function Q(...e){return zi(cr(e))}const Pr=fr("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all 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",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-sm":"size-8","icon-lg":"size-10"}},defaultVariants:{variant:"default",size:"default"}});function Wi({className:e,variant:t,size:n,asChild:r=!1,...o}){const s=r?Qt:"button";return g.jsx(s,{"data-slot":"button",className:Q(Pr({variant:t,size:n,className:e})),...o})}function Hi({className:e,type:t,...n}){return g.jsx("input",{type:t,"data-slot":"input",className:Q("file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm","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",e),...n})}/**
22
+ <%s key={someKey} {...props} />`,K,B,Z,B),H[B+K]=!0)}if(B=null,q!==void 0&&(n(q),B=""+q),i(G)&&(n(G.key),B=""+G.key),"key"in G){q={};for(var re in G)re!=="key"&&(q[re]=G[re])}else q=G;return B&&a(q,typeof I=="function"?I.displayName||I.name||"Unknown":I),c(I,B,q,o(),se,ae)}function u(I){p(I)?I._store&&(I._store.validated=1):typeof I=="object"&&I!==null&&I.$$typeof===A&&(I._payload.status==="fulfilled"?p(I._payload.value)&&I._payload.value._store&&(I._payload.value._store.validated=1):I._store&&(I._store.validated=1))}function p(I){return typeof I=="object"&&I!==null&&I.$$typeof===g}var v=$,g=Symbol.for("react.transitional.element"),m=Symbol.for("react.portal"),x=Symbol.for("react.fragment"),y=Symbol.for("react.strict_mode"),b=Symbol.for("react.profiler"),h=Symbol.for("react.consumer"),S=Symbol.for("react.context"),E=Symbol.for("react.forward_ref"),T=Symbol.for("react.suspense"),M=Symbol.for("react.suspense_list"),_=Symbol.for("react.memo"),A=Symbol.for("react.lazy"),P=Symbol.for("react.activity"),N=Symbol.for("react.client.reference"),L=v.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,O=Object.prototype.hasOwnProperty,D=Array.isArray,z=console.createTask?console.createTask:function(){return null};v={react_stack_bottom_frame:function(I){return I()}};var j,k={},C=v.react_stack_bottom_frame.bind(v,s)(),R=z(r(s)),H={};Mt.Fragment=x,Mt.jsx=function(I,G,q){var K=1e4>L.recentlyCreatedOwnerStacks++;return d(I,G,q,!1,K?Error("react-stack-top-frame"):C,K?z(r(I)):R)},Mt.jsxs=function(I,G,q){var K=1e4>L.recentlyCreatedOwnerStacks++;return d(I,G,q,!0,K?Error("react-stack-top-frame"):C,K?z(r(I)):R)}}()),Mt}process.env.NODE_ENV==="production"?Nn.exports=Ba():Nn.exports=Fa();var w=Nn.exports;const Qr={"flex-start":"items-start","flex-end":"items-end",center:"items-center",baseline:"items-baseline",stretch:"items-stretch"},eo={"flex-start":"justify-start","flex-end":"justify-end",center:"justify-center","space-between":"justify-between","space-around":"justify-around","space-evenly":"justify-evenly"},to=$.forwardRef(({children:e,className:t="",column:n,middle:r,...o},s)=>w.jsx("div",{ref:s,className:oe.clsx("flex",n&&"flex-col",o["justify-content"]&&eo[o["justify-content"]],o["align-items"]&&Qr[o["align-items"]],r&&`${Qr.center} ${eo.center}`,t),...o,children:e}));to.displayName="Flex";const Va={1:"grid-cols-1",2:"grid-cols-2",3:"grid-cols-3",4:"grid-cols-4",5:"grid-cols-5",6:"grid-cols-6",7:"grid-cols-7",8:"grid-cols-8",9:"grid-cols-9",10:"grid-cols-10",11:"grid-cols-11",12:"grid-cols-12"},no=$.forwardRef(({children:e,className:t="",column:n=2,...r},o)=>w.jsx("div",{ref:o,className:oe.clsx("grid",Va[n],t),...r,children:e}));no.displayName="Grid";const Ha=["background","foreground","card","card-foreground","popover","popover-foreground","muted-foreground","muted","primary","primary-foreground","secondary","secondary-foreground","accent","accent-foreground","destructive","constructive","constructive-foreground","cautionary","cautionary-foreground","border","input","ring","chart-1","chart-2","chart-3","chart-4","chart-5"],ro={Heading:"text-xl md:text-2xl font-semibold tracking-tight",SectionHeader:"text-lg font-semibold tracking-tight",CompactHeader:"text-base font-semibold tracking-tight",Action:"text-sm font-medium",Subheader:"text-base md:text-sm",Body:"text-sm leading-relaxed",BodySmall:"text-sm leading-relaxed",Caption:"text-xs uppercase tracking-[0.08em]",CompactCaption:"text-xs"},Wa=Object.keys(ro),Ga={Subheader:"placeholder:text-base md:placeholder:text-sm placeholder:text-muted-foreground"},Ua={Heading:"h1",SectionHeader:"h4",CompactHeader:"h5",Action:"span",Subheader:"p",Body:"p",BodySmall:"p",Caption:"p",CompactCaption:"p"},Ya={Heading:"foreground",SectionHeader:"foreground",CompactHeader:"foreground",Action:"foreground",Subheader:"muted-foreground",Body:"foreground",BodySmall:"muted-foreground",Caption:"muted-foreground",CompactCaption:"muted-foreground"},Ye=e=>ro[e],oo=e=>Ua[e],In=e=>Ya[e],Ht=e=>Ga[e]??"",Se=({typography:e,element:t,color:n,style:r,className:o="",isLoading:s=!1,children:i,...a})=>{const l=t??oo(e),c=n??In(e),d=s?" ":i,u={color:`var(--${c})`,...r},p=oe.clsx("font-infinityloop",Ye(e),s&&"relative overflow-hidden rounded-(--radius)",o);return $.createElement(l,{className:p,style:u,"aria-busy":s||void 0,...a},w.jsxs(w.Fragment,{children:[w.jsx("span",{className:oe.clsx("relative z-10",s&&"loading-text-blink"),children:d}),s?w.jsx("span",{"aria-hidden":"true",className:oe.clsx("pointer-events-none absolute inset-0 rounded-[inherit]","loading-wave-overlay","loading-wave")}):null]}))};Se.displayName="Typography";const qa={light:"bg-(--card)",dark:"bg-(--background)",gradient:"bg-[radial-gradient(120%_120%_at_0%_0%,color-mix(in_oklab,var(--chart-1)_10%,transparent),transparent_55%),linear-gradient(180deg,color-mix(in_oklab,var(--card)_93%,black_7%),var(--card))]"},Xa="div",On=({as:e,type:t="dark",className:n,children:r,isColored:o,isRoundedCornersDisabled:s=!1,isLoading:i=!1,...a})=>{const l=e||Xa,c=s?"rounded-none":"rounded-(--radius)",d="paper--colored border border-(--chart-1) bg-(--card) transition-colors",u=o?oe.clsx(d,c):oe.clsx("border-(--border)",qa[t]);return w.jsxs(l,{"aria-busy":i||void 0,className:oe.clsx("border px-6 py-4",c,i&&"relative overflow-hidden",u,n),...a,children:[r,i?w.jsx("div",{"aria-hidden":"true",className:oe.clsx("pointer-events-none absolute inset-0 rounded-[inherit]","loading-wave-overlay","loading-wave")}):null]})};function so(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function ke(...e){return t=>{let n=!1;const r=e.map(o=>{const s=so(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():so(e[o],null)}}}}function le(...e){return f.useCallback(ke(...e),e)}var Ka=Symbol.for("react.lazy"),Wt=f[" use ".trim().toString()];function Za(e){return typeof e=="object"&&e!==null&&"then"in e}function io(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===Ka&&"_payload"in e&&Za(e._payload)}function ao(e){const t=Qa(e),n=f.forwardRef((r,o)=>{let{children:s,...i}=r;io(s)&&typeof Wt=="function"&&(s=Wt(s._payload));const a=f.Children.toArray(s),l=a.find(tl);if(l){const c=l.props.children,d=a.map(u=>u===l?f.Children.count(c)>1?f.Children.only(null):f.isValidElement(c)?c.props.children:null:u);return w.jsx(t,{...i,ref:o,children:f.isValidElement(c)?f.cloneElement(c,void 0,d):null})}return w.jsx(t,{...i,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}var Ja=ao("Slot");function Qa(e){const t=f.forwardRef((n,r)=>{let{children:o,...s}=n;if(io(o)&&typeof Wt=="function"&&(o=Wt(o._payload)),f.isValidElement(o)){const i=rl(o),a=nl(s,o.props);return o.type!==f.Fragment&&(a.ref=r?ke(r,i):i),f.cloneElement(o,a)}return f.Children.count(o)>1?f.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var el=Symbol("radix.slottable");function tl(e){return f.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===el}function nl(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]=(...a)=>{const l=s(...a);return o(...a),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function rl(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)}/**
23
23
  * @license lucide-react v0.546.0 - ISC
24
24
  *
25
25
  * This source code is licensed under the ISC license.
26
26
  * See the LICENSE file in the root directory of this source tree.
27
- */const Ui=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Gi=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,r)=>r?r.toUpperCase():n.toLowerCase()),Ar=e=>{const t=Gi(e);return t.charAt(0).toUpperCase()+t.slice(1)},Rr=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim(),Ki=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};/**
27
+ */const ol=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),sl=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,r)=>r?r.toUpperCase():n.toLowerCase()),lo=e=>{const t=sl(e);return t.charAt(0).toUpperCase()+t.slice(1)},co=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim(),il=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};/**
28
28
  * @license lucide-react v0.546.0 - ISC
29
29
  *
30
30
  * This source code is licensed under the ISC license.
31
31
  * See the LICENSE file in the root directory of this source tree.
32
- */var Yi={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
32
+ */var al={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
33
33
  * @license lucide-react v0.546.0 - ISC
34
34
  *
35
35
  * This source code is licensed under the ISC license.
36
36
  * See the LICENSE file in the root directory of this source tree.
37
- */const qi=V.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:s,iconNode:i,...a},l)=>V.createElement("svg",{ref:l,...Yi,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:Rr("lucide",o),...!s&&!Ki(a)&&{"aria-hidden":"true"},...a},[...i.map(([u,f])=>V.createElement(u,f)),...Array.isArray(s)?s:[s]]));/**
37
+ */const ll=$.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:s,iconNode:i,...a},l)=>$.createElement("svg",{ref:l,...al,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:co("lucide",o),...!s&&!il(a)&&{"aria-hidden":"true"},...a},[...i.map(([c,d])=>$.createElement(c,d)),...Array.isArray(s)?s:[s]]));/**
38
38
  * @license lucide-react v0.546.0 - ISC
39
39
  *
40
40
  * This source code is licensed under the ISC license.
41
41
  * See the LICENSE file in the root directory of this source tree.
42
- */const Ke=(e,t)=>{const n=V.forwardRef(({className:r,...o},s)=>V.createElement(qi,{ref:s,iconNode:t,className:Rr(`lucide-${Ui(Ar(e))}`,`lucide-${e}`,r),...o}));return n.displayName=Ar(e),n};/**
42
+ */const st=(e,t)=>{const n=$.forwardRef(({className:r,...o},s)=>$.createElement(ll,{ref:s,iconNode:t,className:co(`lucide-${ol(lo(e))}`,`lucide-${e}`,r),...o}));return n.displayName=lo(e),n};/**
43
43
  * @license lucide-react v0.546.0 - ISC
44
44
  *
45
45
  * This source code is licensed under the ISC license.
46
46
  * See the LICENSE file in the root directory of this source tree.
47
- */const Xi=Ke("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
47
+ */const uo=st("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
48
48
  * @license lucide-react v0.546.0 - ISC
49
49
  *
50
50
  * This source code is licensed under the ISC license.
51
51
  * See the LICENSE file in the root directory of this source tree.
52
- */const Nr=Ke("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
52
+ */const Rn=st("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
53
53
  * @license lucide-react v0.546.0 - ISC
54
54
  *
55
55
  * This source code is licensed under the ISC license.
56
56
  * See the LICENSE file in the root directory of this source tree.
57
- */const Zi=Ke("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
57
+ */const cl=st("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
58
58
  * @license lucide-react v0.546.0 - ISC
59
59
  *
60
60
  * This source code is licensed under the ISC license.
61
61
  * See the LICENSE file in the root directory of this source tree.
62
- */const Ji=Ke("chevron-up",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);/**
62
+ */const dl=st("chevron-up",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);/**
63
63
  * @license lucide-react v0.546.0 - ISC
64
64
  *
65
65
  * This source code is licensed under the ISC license.
66
66
  * See the LICENSE file in the root directory of this source tree.
67
- */const Qi=Ke("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"}]]);/**
67
+ */const ul=st("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"}]]);/**
68
68
  * @license lucide-react v0.546.0 - ISC
69
69
  *
70
70
  * This source code is licensed under the ISC license.
71
71
  * See the LICENSE file in the root directory of this source tree.
72
- */const ea=Ke("pipette",[["path",{d:"m12 9-8.414 8.414A2 2 0 0 0 3 18.828v1.344a2 2 0 0 1-.586 1.414A2 2 0 0 1 3.828 21h1.344a2 2 0 0 0 1.414-.586L15 12",key:"1y3wsu"}],["path",{d:"m18 9 .4.4a1 1 0 1 1-3 3l-3.8-3.8a1 1 0 1 1 3-3l.4.4 3.4-3.4a1 1 0 1 1 3 3z",key:"110lr1"}],["path",{d:"m2 22 .414-.414",key:"jhxm08"}]]);function ta({...e}){return g.jsx("nav",{"aria-label":"breadcrumb","data-slot":"breadcrumb",...e})}function na({className:e,...t}){return g.jsx("ol",{"data-slot":"breadcrumb-list",className:Q("text-muted-foreground flex flex-wrap items-center gap-1.5 text-sm break-words sm:gap-2.5",e),...t})}function ra({className:e,...t}){return g.jsx("li",{"data-slot":"breadcrumb-item",className:Q("inline-flex items-center gap-1.5",e),...t})}function oa({asChild:e,className:t,...n}){const r=e?Qt:"a";return g.jsx(r,{"data-slot":"breadcrumb-link",className:Q("hover:text-foreground transition-colors",t),...n})}function sa({className:e,...t}){return g.jsx("span",{"data-slot":"breadcrumb-page",role:"link","aria-disabled":"true","aria-current":"page",className:Q("text-foreground font-normal",e),...t})}function ia({children:e,className:t,...n}){return g.jsx("li",{"data-slot":"breadcrumb-separator",role:"presentation","aria-hidden":"true",className:Q("[&>svg]:size-3.5",t),...n,children:e??g.jsx(Zi,{})})}function aa({className:e,...t}){return g.jsxs("span",{"data-slot":"breadcrumb-ellipsis",role:"presentation","aria-hidden":"true",className:Q("flex size-9 items-center justify-center",e),...t,children:[g.jsx(Qi,{className:"size-4"}),g.jsx("span",{className:"sr-only",children:"More"})]})}function la(e,t=[]){let n=[];function r(s,i){const a=c.createContext(i);a.displayName=s+"Context";const l=n.length;n=[...n,i];const u=d=>{var y;const{scope:m,children:h,...v}=d,p=((y=m==null?void 0:m[e])==null?void 0:y[l])||a,b=c.useMemo(()=>v,Object.values(v));return g.jsx(p.Provider,{value:b,children:h})};u.displayName=s+"Provider";function f(d,m){var p;const h=((p=m==null?void 0:m[e])==null?void 0:p[l])||a,v=c.useContext(h);if(v)return v;if(i!==void 0)return i;throw new Error(`\`${d}\` must be used within \`${s}\``)}return[u,f]}const o=()=>{const s=n.map(i=>c.createContext(i));return function(a){const l=(a==null?void 0:a[e])||s;return c.useMemo(()=>({[`__scope${e}`]:{...a,[e]:l}}),[a,l])}};return o.scopeName=e,[r,ca(o,...t)]}function ca(...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 i=r.reduce((a,{useScope:l,scopeName:u})=>{const d=l(s)[`__scope${u}`];return{...a,...d}},{});return c.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}function Te(e){const t=c.useRef(e);return c.useEffect(()=>{t.current=e}),c.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}var ue=globalThis!=null&&globalThis.document?c.useLayoutEffect:()=>{},ua=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],an=ua.reduce((e,t)=>{const n=ar(`Primitive.${t}`),r=c.forwardRef((o,s)=>{const{asChild:i,...a}=o,l=i?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),g.jsx(l,{...a,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),ln={exports:{}},cn={};/**
72
+ */const Ln=st("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/**
73
+ * @license lucide-react v0.546.0 - ISC
74
+ *
75
+ * This source code is licensed under the ISC license.
76
+ * See the LICENSE file in the root directory of this source tree.
77
+ */const fl=st("pipette",[["path",{d:"m12 9-8.414 8.414A2 2 0 0 0 3 18.828v1.344a2 2 0 0 1-.586 1.414A2 2 0 0 1 3.828 21h1.344a2 2 0 0 0 1.414-.586L15 12",key:"1y3wsu"}],["path",{d:"m18 9 .4.4a1 1 0 1 1-3 3l-3.8-3.8a1 1 0 1 1 3-3l.4.4 3.4-3.4a1 1 0 1 1 3 3z",key:"110lr1"}],["path",{d:"m2 22 .414-.414",key:"jhxm08"}]]);function fo(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=fo(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function pl(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=fo(e))&&(r&&(r+=" "),r+=t);return r}const ml=(e,t)=>{const n=new Array(e.length+t.length);for(let r=0;r<e.length;r++)n[r]=e[r];for(let r=0;r<t.length;r++)n[e.length+r]=t[r];return n},hl=(e,t)=>({classGroupId:e,validator:t}),po=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),Gt="-",mo=[],gl="arbitrary..",vl=e=>{const t=yl(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:i=>{if(i.startsWith("[")&&i.endsWith("]"))return bl(i);const a=i.split(Gt),l=a[0]===""&&a.length>1?1:0;return ho(a,l,t)},getConflictingClassGroupIds:(i,a)=>{if(a){const l=r[i],c=n[i];return l?c?ml(c,l):l:c||mo}return n[i]||mo}}},ho=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;const o=e[t],s=n.nextPart.get(o);if(s){const c=ho(e,t+1,s);if(c)return c}const i=n.validators;if(i===null)return;const a=t===0?e.join(Gt):e.slice(t).join(Gt),l=i.length;for(let c=0;c<l;c++){const d=i[c];if(d.validator(a))return d.classGroupId}},bl=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),n=t.indexOf(":"),r=t.slice(0,n);return r?gl+r:void 0})(),yl=e=>{const{theme:t,classGroups:n}=e;return wl(n,t)},wl=(e,t)=>{const n=po();for(const r in e){const o=e[r];jn(o,n,r,t)}return n},jn=(e,t,n,r)=>{const o=e.length;for(let s=0;s<o;s++){const i=e[s];xl(i,t,n,r)}},xl=(e,t,n,r)=>{if(typeof e=="string"){Sl(e,t,n);return}if(typeof e=="function"){El(e,t,n,r);return}Cl(e,t,n,r)},Sl=(e,t,n)=>{const r=e===""?t:go(t,e);r.classGroupId=n},El=(e,t,n,r)=>{if(Tl(e)){jn(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(hl(n,e))},Cl=(e,t,n,r)=>{const o=Object.entries(e),s=o.length;for(let i=0;i<s;i++){const[a,l]=o[i];jn(l,go(t,a),n,r)}},go=(e,t)=>{let n=e;const r=t.split(Gt),o=r.length;for(let s=0;s<o;s++){const i=r[s];let a=n.nextPart.get(i);a||(a=po(),n.nextPart.set(i,a)),n=a}return n},Tl=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,Pl=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null);const o=(s,i)=>{n[s]=i,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(s){let i=n[s];if(i!==void 0)return i;if((i=r[s])!==void 0)return o(s,i),i},set(s,i){s in n?n[s]=i:o(s,i)}}},Dn="!",vo=":",_l=[],bo=(e,t,n,r,o)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:o}),kl=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=o=>{const s=[];let i=0,a=0,l=0,c;const d=o.length;for(let m=0;m<d;m++){const x=o[m];if(i===0&&a===0){if(x===vo){s.push(o.slice(l,m)),l=m+1;continue}if(x==="/"){c=m;continue}}x==="["?i++:x==="]"?i--:x==="("?a++:x===")"&&a--}const u=s.length===0?o:o.slice(l);let p=u,v=!1;u.endsWith(Dn)?(p=u.slice(0,-1),v=!0):u.startsWith(Dn)&&(p=u.slice(1),v=!0);const g=c&&c>l?c-l:void 0;return bo(s,v,p,g)};if(t){const o=t+vo,s=r;r=i=>i.startsWith(o)?s(i.slice(o.length)):bo(_l,!1,i,void 0,!0)}if(n){const o=r;r=s=>n({className:s,parseClassName:o})}return r},Ml=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((n,r)=>{t.set(n,1e6+r)}),n=>{const r=[];let o=[];for(let s=0;s<n.length;s++){const i=n[s],a=i[0]==="[",l=t.has(i);a||l?(o.length>0&&(o.sort(),r.push(...o),o=[]),r.push(i)):o.push(i)}return o.length>0&&(o.sort(),r.push(...o)),r}},Al=e=>({cache:Pl(e.cacheSize),parseClassName:kl(e),sortModifiers:Ml(e),...vl(e)}),Nl=/\s+/,Il=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o,sortModifiers:s}=t,i=[],a=e.trim().split(Nl);let l="";for(let c=a.length-1;c>=0;c-=1){const d=a[c],{isExternal:u,modifiers:p,hasImportantModifier:v,baseClassName:g,maybePostfixModifierPosition:m}=n(d);if(u){l=d+(l.length>0?" "+l:l);continue}let x=!!m,y=r(x?g.substring(0,m):g);if(!y){if(!x){l=d+(l.length>0?" "+l:l);continue}if(y=r(g),!y){l=d+(l.length>0?" "+l:l);continue}x=!1}const b=p.length===0?"":p.length===1?p[0]:s(p).join(":"),h=v?b+Dn:b,S=h+y;if(i.indexOf(S)>-1)continue;i.push(S);const E=o(y,x);for(let T=0;T<E.length;++T){const M=E[T];i.push(h+M)}l=d+(l.length>0?" "+l:l)}return l},Ol=(...e)=>{let t=0,n,r,o="";for(;t<e.length;)(n=e[t++])&&(r=yo(n))&&(o&&(o+=" "),o+=r);return o},yo=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=yo(e[r]))&&(n&&(n+=" "),n+=t);return n},Rl=(e,...t)=>{let n,r,o,s;const i=l=>{const c=t.reduce((d,u)=>u(d),e());return n=Al(c),r=n.cache.get,o=n.cache.set,s=a,a(l)},a=l=>{const c=r(l);if(c)return c;const d=Il(l,n);return o(l,d),d};return s=i,(...l)=>s(Ol(...l))},Ll=[],fe=e=>{const t=n=>n[e]||Ll;return t.isThemeGetter=!0,t},wo=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,xo=/^\((?:(\w[\w-]*):)?(.+)\)$/i,jl=/^\d+\/\d+$/,Dl=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,$l=/\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$/,zl=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Bl=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Fl=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,pt=e=>jl.test(e),J=e=>!!e&&!Number.isNaN(Number(e)),qe=e=>!!e&&Number.isInteger(Number(e)),$n=e=>e.endsWith("%")&&J(e.slice(0,-1)),Fe=e=>Dl.test(e),So=()=>!0,Vl=e=>$l.test(e)&&!zl.test(e),zn=()=>!1,Hl=e=>Bl.test(e),Wl=e=>Fl.test(e),Gl=e=>!U(e)&&!Y(e),Ul=e=>Xe(e,ko,zn),U=e=>wo.test(e),it=e=>Xe(e,Mo,Vl),Eo=e=>Xe(e,ec,J),Yl=e=>Xe(e,No,So),ql=e=>Xe(e,Ao,zn),Co=e=>Xe(e,Po,zn),Xl=e=>Xe(e,_o,Wl),Ut=e=>Xe(e,Io,Hl),Y=e=>xo.test(e),At=e=>at(e,Mo),Kl=e=>at(e,Ao),To=e=>at(e,Po),Zl=e=>at(e,ko),Jl=e=>at(e,_o),Yt=e=>at(e,Io,!0),Ql=e=>at(e,No,!0),Xe=(e,t,n)=>{const r=wo.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},at=(e,t,n=!1)=>{const r=xo.exec(e);return r?r[1]?t(r[1]):n:!1},Po=e=>e==="position"||e==="percentage",_o=e=>e==="image"||e==="url",ko=e=>e==="length"||e==="size"||e==="bg-size",Mo=e=>e==="length",ec=e=>e==="number",Ao=e=>e==="family-name",No=e=>e==="number"||e==="weight",Io=e=>e==="shadow",tc=Rl(()=>{const e=fe("color"),t=fe("font"),n=fe("text"),r=fe("font-weight"),o=fe("tracking"),s=fe("leading"),i=fe("breakpoint"),a=fe("container"),l=fe("spacing"),c=fe("radius"),d=fe("shadow"),u=fe("inset-shadow"),p=fe("text-shadow"),v=fe("drop-shadow"),g=fe("blur"),m=fe("perspective"),x=fe("aspect"),y=fe("ease"),b=fe("animate"),h=()=>["auto","avoid","all","avoid-page","page","left","right","column"],S=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],E=()=>[...S(),Y,U],T=()=>["auto","hidden","clip","visible","scroll"],M=()=>["auto","contain","none"],_=()=>[Y,U,l],A=()=>[pt,"full","auto",..._()],P=()=>[qe,"none","subgrid",Y,U],N=()=>["auto",{span:["full",qe,Y,U]},qe,Y,U],L=()=>[qe,"auto",Y,U],O=()=>["auto","min","max","fr",Y,U],D=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],z=()=>["start","end","center","stretch","center-safe","end-safe"],j=()=>["auto",..._()],k=()=>[pt,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",..._()],C=()=>[e,Y,U],R=()=>[...S(),To,Co,{position:[Y,U]}],H=()=>["no-repeat",{repeat:["","x","y","space","round"]}],I=()=>["auto","cover","contain",Zl,Ul,{size:[Y,U]}],G=()=>[$n,At,it],q=()=>["","none","full",c,Y,U],K=()=>["",J,At,it],se=()=>["solid","dashed","dotted","double"],ae=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],B=()=>[J,$n,To,Co],Z=()=>["","none",g,Y,U],re=()=>["none",J,Y,U],Q=()=>["none",J,Y,U],te=()=>[J,Y,U],ee=()=>[pt,"full",..._()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Fe],breakpoint:[Fe],color:[So],container:[Fe],"drop-shadow":[Fe],ease:["in","out","in-out"],font:[Gl],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Fe],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Fe],shadow:[Fe],spacing:["px",J],text:[Fe],"text-shadow":[Fe],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",pt,U,Y,x]}],container:["container"],columns:[{columns:[J,U,Y,a]}],"break-after":[{"break-after":h()}],"break-before":[{"break-before":h()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:E()}],overflow:[{overflow:T()}],"overflow-x":[{"overflow-x":T()}],"overflow-y":[{"overflow-y":T()}],overscroll:[{overscroll:M()}],"overscroll-x":[{"overscroll-x":M()}],"overscroll-y":[{"overscroll-y":M()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:A()}],"inset-x":[{"inset-x":A()}],"inset-y":[{"inset-y":A()}],start:[{start:A()}],end:[{end:A()}],top:[{top:A()}],right:[{right:A()}],bottom:[{bottom:A()}],left:[{left:A()}],visibility:["visible","invisible","collapse"],z:[{z:[qe,"auto",Y,U]}],basis:[{basis:[pt,"full","auto",a,..._()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[J,pt,"auto","initial","none",U]}],grow:[{grow:["",J,Y,U]}],shrink:[{shrink:["",J,Y,U]}],order:[{order:[qe,"first","last","none",Y,U]}],"grid-cols":[{"grid-cols":P()}],"col-start-end":[{col:N()}],"col-start":[{"col-start":L()}],"col-end":[{"col-end":L()}],"grid-rows":[{"grid-rows":P()}],"row-start-end":[{row:N()}],"row-start":[{"row-start":L()}],"row-end":[{"row-end":L()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":O()}],"auto-rows":[{"auto-rows":O()}],gap:[{gap:_()}],"gap-x":[{"gap-x":_()}],"gap-y":[{"gap-y":_()}],"justify-content":[{justify:[...D(),"normal"]}],"justify-items":[{"justify-items":[...z(),"normal"]}],"justify-self":[{"justify-self":["auto",...z()]}],"align-content":[{content:["normal",...D()]}],"align-items":[{items:[...z(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...z(),{baseline:["","last"]}]}],"place-content":[{"place-content":D()}],"place-items":[{"place-items":[...z(),"baseline"]}],"place-self":[{"place-self":["auto",...z()]}],p:[{p:_()}],px:[{px:_()}],py:[{py:_()}],ps:[{ps:_()}],pe:[{pe:_()}],pt:[{pt:_()}],pr:[{pr:_()}],pb:[{pb:_()}],pl:[{pl:_()}],m:[{m:j()}],mx:[{mx:j()}],my:[{my:j()}],ms:[{ms:j()}],me:[{me:j()}],mt:[{mt:j()}],mr:[{mr:j()}],mb:[{mb:j()}],ml:[{ml:j()}],"space-x":[{"space-x":_()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":_()}],"space-y-reverse":["space-y-reverse"],size:[{size:k()}],w:[{w:[a,"screen",...k()]}],"min-w":[{"min-w":[a,"screen","none",...k()]}],"max-w":[{"max-w":[a,"screen","none","prose",{screen:[i]},...k()]}],h:[{h:["screen","lh",...k()]}],"min-h":[{"min-h":["screen","lh","none",...k()]}],"max-h":[{"max-h":["screen","lh",...k()]}],"font-size":[{text:["base",n,At,it]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,Ql,Yl]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",$n,U]}],"font-family":[{font:[Kl,ql,t]}],"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:[o,Y,U]}],"line-clamp":[{"line-clamp":[J,"none",Y,Eo]}],leading:[{leading:[s,..._()]}],"list-image":[{"list-image":["none",Y,U]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",Y,U]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:C()}],"text-color":[{text:C()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...se(),"wavy"]}],"text-decoration-thickness":[{decoration:[J,"from-font","auto",Y,it]}],"text-decoration-color":[{decoration:C()}],"underline-offset":[{"underline-offset":[J,"auto",Y,U]}],"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",Y,U]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Y,U]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:R()}],"bg-repeat":[{bg:H()}],"bg-size":[{bg:I()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},qe,Y,U],radial:["",Y,U],conic:[qe,Y,U]},Jl,Xl]}],"bg-color":[{bg:C()}],"gradient-from-pos":[{from:G()}],"gradient-via-pos":[{via:G()}],"gradient-to-pos":[{to:G()}],"gradient-from":[{from:C()}],"gradient-via":[{via:C()}],"gradient-to":[{to:C()}],rounded:[{rounded:q()}],"rounded-s":[{"rounded-s":q()}],"rounded-e":[{"rounded-e":q()}],"rounded-t":[{"rounded-t":q()}],"rounded-r":[{"rounded-r":q()}],"rounded-b":[{"rounded-b":q()}],"rounded-l":[{"rounded-l":q()}],"rounded-ss":[{"rounded-ss":q()}],"rounded-se":[{"rounded-se":q()}],"rounded-ee":[{"rounded-ee":q()}],"rounded-es":[{"rounded-es":q()}],"rounded-tl":[{"rounded-tl":q()}],"rounded-tr":[{"rounded-tr":q()}],"rounded-br":[{"rounded-br":q()}],"rounded-bl":[{"rounded-bl":q()}],"border-w":[{border:K()}],"border-w-x":[{"border-x":K()}],"border-w-y":[{"border-y":K()}],"border-w-s":[{"border-s":K()}],"border-w-e":[{"border-e":K()}],"border-w-t":[{"border-t":K()}],"border-w-r":[{"border-r":K()}],"border-w-b":[{"border-b":K()}],"border-w-l":[{"border-l":K()}],"divide-x":[{"divide-x":K()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":K()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...se(),"hidden","none"]}],"divide-style":[{divide:[...se(),"hidden","none"]}],"border-color":[{border:C()}],"border-color-x":[{"border-x":C()}],"border-color-y":[{"border-y":C()}],"border-color-s":[{"border-s":C()}],"border-color-e":[{"border-e":C()}],"border-color-t":[{"border-t":C()}],"border-color-r":[{"border-r":C()}],"border-color-b":[{"border-b":C()}],"border-color-l":[{"border-l":C()}],"divide-color":[{divide:C()}],"outline-style":[{outline:[...se(),"none","hidden"]}],"outline-offset":[{"outline-offset":[J,Y,U]}],"outline-w":[{outline:["",J,At,it]}],"outline-color":[{outline:C()}],shadow:[{shadow:["","none",d,Yt,Ut]}],"shadow-color":[{shadow:C()}],"inset-shadow":[{"inset-shadow":["none",u,Yt,Ut]}],"inset-shadow-color":[{"inset-shadow":C()}],"ring-w":[{ring:K()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:C()}],"ring-offset-w":[{"ring-offset":[J,it]}],"ring-offset-color":[{"ring-offset":C()}],"inset-ring-w":[{"inset-ring":K()}],"inset-ring-color":[{"inset-ring":C()}],"text-shadow":[{"text-shadow":["none",p,Yt,Ut]}],"text-shadow-color":[{"text-shadow":C()}],opacity:[{opacity:[J,Y,U]}],"mix-blend":[{"mix-blend":[...ae(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ae()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[J]}],"mask-image-linear-from-pos":[{"mask-linear-from":B()}],"mask-image-linear-to-pos":[{"mask-linear-to":B()}],"mask-image-linear-from-color":[{"mask-linear-from":C()}],"mask-image-linear-to-color":[{"mask-linear-to":C()}],"mask-image-t-from-pos":[{"mask-t-from":B()}],"mask-image-t-to-pos":[{"mask-t-to":B()}],"mask-image-t-from-color":[{"mask-t-from":C()}],"mask-image-t-to-color":[{"mask-t-to":C()}],"mask-image-r-from-pos":[{"mask-r-from":B()}],"mask-image-r-to-pos":[{"mask-r-to":B()}],"mask-image-r-from-color":[{"mask-r-from":C()}],"mask-image-r-to-color":[{"mask-r-to":C()}],"mask-image-b-from-pos":[{"mask-b-from":B()}],"mask-image-b-to-pos":[{"mask-b-to":B()}],"mask-image-b-from-color":[{"mask-b-from":C()}],"mask-image-b-to-color":[{"mask-b-to":C()}],"mask-image-l-from-pos":[{"mask-l-from":B()}],"mask-image-l-to-pos":[{"mask-l-to":B()}],"mask-image-l-from-color":[{"mask-l-from":C()}],"mask-image-l-to-color":[{"mask-l-to":C()}],"mask-image-x-from-pos":[{"mask-x-from":B()}],"mask-image-x-to-pos":[{"mask-x-to":B()}],"mask-image-x-from-color":[{"mask-x-from":C()}],"mask-image-x-to-color":[{"mask-x-to":C()}],"mask-image-y-from-pos":[{"mask-y-from":B()}],"mask-image-y-to-pos":[{"mask-y-to":B()}],"mask-image-y-from-color":[{"mask-y-from":C()}],"mask-image-y-to-color":[{"mask-y-to":C()}],"mask-image-radial":[{"mask-radial":[Y,U]}],"mask-image-radial-from-pos":[{"mask-radial-from":B()}],"mask-image-radial-to-pos":[{"mask-radial-to":B()}],"mask-image-radial-from-color":[{"mask-radial-from":C()}],"mask-image-radial-to-color":[{"mask-radial-to":C()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":S()}],"mask-image-conic-pos":[{"mask-conic":[J]}],"mask-image-conic-from-pos":[{"mask-conic-from":B()}],"mask-image-conic-to-pos":[{"mask-conic-to":B()}],"mask-image-conic-from-color":[{"mask-conic-from":C()}],"mask-image-conic-to-color":[{"mask-conic-to":C()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:R()}],"mask-repeat":[{mask:H()}],"mask-size":[{mask:I()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",Y,U]}],filter:[{filter:["","none",Y,U]}],blur:[{blur:Z()}],brightness:[{brightness:[J,Y,U]}],contrast:[{contrast:[J,Y,U]}],"drop-shadow":[{"drop-shadow":["","none",v,Yt,Ut]}],"drop-shadow-color":[{"drop-shadow":C()}],grayscale:[{grayscale:["",J,Y,U]}],"hue-rotate":[{"hue-rotate":[J,Y,U]}],invert:[{invert:["",J,Y,U]}],saturate:[{saturate:[J,Y,U]}],sepia:[{sepia:["",J,Y,U]}],"backdrop-filter":[{"backdrop-filter":["","none",Y,U]}],"backdrop-blur":[{"backdrop-blur":Z()}],"backdrop-brightness":[{"backdrop-brightness":[J,Y,U]}],"backdrop-contrast":[{"backdrop-contrast":[J,Y,U]}],"backdrop-grayscale":[{"backdrop-grayscale":["",J,Y,U]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[J,Y,U]}],"backdrop-invert":[{"backdrop-invert":["",J,Y,U]}],"backdrop-opacity":[{"backdrop-opacity":[J,Y,U]}],"backdrop-saturate":[{"backdrop-saturate":[J,Y,U]}],"backdrop-sepia":[{"backdrop-sepia":["",J,Y,U]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":_()}],"border-spacing-x":[{"border-spacing-x":_()}],"border-spacing-y":[{"border-spacing-y":_()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",Y,U]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[J,"initial",Y,U]}],ease:[{ease:["linear","initial",y,Y,U]}],delay:[{delay:[J,Y,U]}],animate:[{animate:["none",b,Y,U]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[m,Y,U]}],"perspective-origin":[{"perspective-origin":E()}],rotate:[{rotate:re()}],"rotate-x":[{"rotate-x":re()}],"rotate-y":[{"rotate-y":re()}],"rotate-z":[{"rotate-z":re()}],scale:[{scale:Q()}],"scale-x":[{"scale-x":Q()}],"scale-y":[{"scale-y":Q()}],"scale-z":[{"scale-z":Q()}],"scale-3d":["scale-3d"],skew:[{skew:te()}],"skew-x":[{"skew-x":te()}],"skew-y":[{"skew-y":te()}],transform:[{transform:[Y,U,"","none","gpu","cpu"]}],"transform-origin":[{origin:E()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:ee()}],"translate-x":[{"translate-x":ee()}],"translate-y":[{"translate-y":ee()}],"translate-z":[{"translate-z":ee()}],"translate-none":["translate-none"],accent:[{accent:C()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:C()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",Y,U]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":_()}],"scroll-mx":[{"scroll-mx":_()}],"scroll-my":[{"scroll-my":_()}],"scroll-ms":[{"scroll-ms":_()}],"scroll-me":[{"scroll-me":_()}],"scroll-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",Y,U]}],fill:[{fill:["none",...C()]}],"stroke-w":[{stroke:[J,At,it,Eo]}],stroke:[{stroke:["none",...C()]}],"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-x","border-w-y","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-x","border-color-y","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"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-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"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}});function X(...e){return tc(pl(e))}function Oo({...e}){return w.jsx("nav",{"aria-label":"breadcrumb","data-slot":"breadcrumb",...e})}function Ro({className:e,...t}){return w.jsx("ol",{"data-slot":"breadcrumb-list",className:X("text-muted-foreground flex flex-wrap items-center gap-1.5 text-sm break-words sm:gap-2.5",e),...t})}function qt({className:e,...t}){return w.jsx("li",{"data-slot":"breadcrumb-item",className:X("inline-flex items-center gap-1.5",e),...t})}function Xt({asChild:e,className:t,...n}){const r=e?Ja:"a";return w.jsx(r,{"data-slot":"breadcrumb-link",className:X("hover:text-foreground transition-colors",t),...n})}function Kt({className:e,...t}){return w.jsx("span",{"data-slot":"breadcrumb-page",role:"link","aria-disabled":"true","aria-current":"page",className:X("text-foreground font-normal",e),...t})}function Zt({children:e,className:t,...n}){return w.jsx("li",{"data-slot":"breadcrumb-separator",role:"presentation","aria-hidden":"true",className:X("[&>svg]:size-3.5",t),...n,children:e??w.jsx(cl,{})})}function Lo({className:e,...t}){return w.jsxs("span",{"data-slot":"breadcrumb-ellipsis",role:"presentation","aria-hidden":"true",className:X("flex size-9 items-center justify-center",e),...t,children:[w.jsx(ul,{className:"size-4"}),w.jsx("span",{className:"sr-only",children:"More"})]})}const jo=e=>e.props.children,nc=(e,t)=>f.cloneElement(e,void 0,t),rc=({items:e,maxItems:t,separator:n,listClassName:r,...o})=>{const s=f.useMemo(()=>{if(!Number.isFinite(t)||!t||t<2||e.length<=t)return e.map((c,d)=>({kind:"item",item:c,originalIndex:d}));const i=t-1,a=e.length-i,l=e.slice(a).map((c,d)=>({kind:"item",item:c,originalIndex:a+d}));return[{kind:"item",item:e[0],originalIndex:0},{kind:"ellipsis"},...l]},[e,t]);return w.jsx(Oo,{...o,children:w.jsx(Ro,{className:r,children:s.map((i,a)=>{const l=a===s.length-1;if(i.kind==="ellipsis")return w.jsxs(f.Fragment,{children:[w.jsx(qt,{children:w.jsx(Lo,{})}),l?null:w.jsx(Zt,{children:n})]},"ellipsis");const{item:c,originalIndex:d}=i;if(f.isValidElement(c)){const S=l,E=jo(c);return w.jsxs(f.Fragment,{children:[w.jsx(qt,{children:S?w.jsx(Kt,{children:E}):w.jsx(Xt,{asChild:!0,children:c})}),l?null:w.jsx(Zt,{children:n})]},c.key??d)}const{key:u,label:p,href:v,onClick:g,isCurrent:m,component:x}=c,y=m??l,b=x?jo(x):void 0,h=p??b;return w.jsxs(f.Fragment,{children:[w.jsx(qt,{children:y?w.jsx(Kt,{children:h}):x?w.jsx(Xt,{asChild:!0,children:p!==void 0?nc(x,p):x}):v?w.jsx(Xt,{href:v,onClick:g,children:p}):w.jsx(Kt,{children:p})}),l?null:w.jsx(Zt,{children:n})]},u??d)})})})},oc=["filled","outline","text"],sc=["primary","secondary","accent","muted","constructive","cautionary","destructive","chart-1","chart-2","chart-3","chart-4","chart-5"],ic={s:"h-8 gap-1.5 px-3 text-xs has-[>svg]:px-2.5",m:"h-9 px-4 py-2 text-sm has-[>svg]:px-3",l:"h-10 px-6 text-sm has-[>svg]:px-4","icon-s":"size-8 p-0","icon-m":"size-9 p-0","icon-l":"size-10 p-0",default:"h-9 px-4 py-2 text-sm has-[>svg]:px-3",sm:"h-8 gap-1.5 px-3 text-xs has-[>svg]:px-2.5",lg:"h-10 px-6 text-sm has-[>svg]:px-4",icon:"size-9 p-0","icon-sm":"size-8 p-0","icon-lg":"size-10 p-0","icon-circle":"size-9 rounded-full p-0"},ac={s:"size-[14px]",m:"size-4",l:"size-[18px]","icon-s":"size-[14px]","icon-m":"size-4","icon-l":"size-[18px]",default:"size-4",sm:"size-[14px]",lg:"size-[18px]",icon:"size-4","icon-sm":"size-[14px]","icon-lg":"size-[18px]","icon-circle":"size-4"},lc={filled:{primary:"bg-primary text-primary-foreground hover:bg-primary/90 focus:ring-primary/60",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/85 focus:ring-secondary/60",accent:"bg-accent text-accent-foreground hover:bg-accent/85 focus:ring-accent/60",muted:"bg-muted text-foreground hover:bg-muted/85 focus:ring-ring/60",constructive:"bg-constructive text-constructive-foreground hover:bg-constructive/90 focus:ring-constructive/45",cautionary:"bg-cautionary text-cautionary-foreground hover:bg-cautionary/90 focus:ring-cautionary/45",destructive:"bg-destructive text-white hover:bg-destructive/90 focus:ring-destructive/45","chart-1":"bg-(--chart-1) text-black hover:brightness-110 focus:ring-(--chart-1)","chart-2":"bg-(--chart-2) text-black hover:brightness-110 focus:ring-(--chart-2)","chart-3":"bg-(--chart-3) text-white hover:brightness-110 focus:ring-(--chart-3)","chart-4":"bg-(--chart-4) text-black hover:brightness-110 focus:ring-(--chart-4)","chart-5":"bg-(--chart-5) text-black hover:brightness-110 focus:ring-(--chart-5)"},outline:{primary:"border border-primary bg-transparent text-primary hover:bg-primary/10 focus:ring-primary/60",secondary:"border border-secondary bg-transparent text-secondary hover:bg-secondary/30 focus:ring-secondary/60",accent:"border border-accent bg-transparent text-accent hover:bg-accent/30 focus:ring-accent/60",muted:"border border-muted bg-transparent text-muted hover:bg-muted/50 focus:ring-ring/60",constructive:"border border-constructive bg-transparent text-constructive hover:bg-constructive/10 focus:ring-constructive/45",cautionary:"border border-cautionary bg-transparent text-cautionary hover:bg-cautionary/20 focus:ring-cautionary/45",destructive:"border border-destructive bg-transparent text-destructive hover:bg-destructive/10 focus:ring-destructive/45","chart-1":"border border-(--chart-1) bg-transparent text-(--chart-1) hover:bg-(--chart-1)/10 focus:ring-(--chart-1)","chart-2":"border border-(--chart-2) bg-transparent text-(--chart-2) hover:bg-(--chart-2)/10 focus:ring-(--chart-2)","chart-3":"border border-(--chart-3) bg-transparent text-(--chart-3) hover:bg-(--chart-3)/10 focus:ring-(--chart-3)","chart-4":"border border-(--chart-4) bg-transparent text-(--chart-4) hover:bg-(--chart-4)/10 focus:ring-(--chart-4)","chart-5":"border border-(--chart-5) bg-transparent text-(--chart-5) hover:bg-(--chart-5)/10 focus:ring-(--chart-5)"},text:{primary:"bg-transparent text-primary hover:bg-primary/10 focus:ring-primary/60",secondary:"bg-transparent text-secondary hover:bg-secondary/30 focus:ring-secondary/60",accent:"bg-transparent text-accent hover:bg-accent/30 focus:ring-accent/60",muted:"bg-transparent text-muted hover:bg-muted/50 focus:ring-ring/60",constructive:"bg-transparent text-constructive hover:bg-constructive/10 focus:ring-constructive/45",cautionary:"bg-transparent text-cautionary hover:bg-cautionary/20 focus:ring-cautionary/45",destructive:"bg-transparent text-destructive hover:bg-destructive/10 focus:ring-destructive/45","chart-1":"bg-transparent text-(--chart-1) hover:bg-(--chart-1)/10 focus:ring-(--chart-1)","chart-2":"bg-transparent text-(--chart-2) hover:bg-(--chart-2)/10 focus:ring-(--chart-2)","chart-3":"bg-transparent text-(--chart-3) hover:bg-(--chart-3)/10 focus:ring-(--chart-3)","chart-4":"bg-transparent text-(--chart-4) hover:bg-(--chart-4)/10 focus:ring-(--chart-4)","chart-5":"bg-transparent text-(--chart-5) hover:bg-(--chart-5)/10 focus:ring-(--chart-5)"}},cc={primary:"var(--primary)",secondary:"var(--secondary)",accent:"var(--accent)",muted:"var(--muted)",constructive:"var(--constructive)",cautionary:"var(--cautionary)",destructive:"var(--destructive)","chart-1":"var(--chart-1)","chart-2":"var(--chart-2)","chart-3":"var(--chart-3)","chart-4":"var(--chart-4)","chart-5":"var(--chart-5)"},Do=({icon:e,leftIcon:t,rightIcon:n,onClick:r,animation:o="default",isLoading:s=!1,color:i="chart-1",variant:a="filled",size:l="m",className:c,children:d,style:u,...p})=>{const v=t??e,g=s||o==="loading",m=i==="chart-1"&&a==="filled"&&!g,x=!!v,y=!!n,b=g&&x,h=g&&y,S=g&&!b&&!h,T={"--button-glow-color":cc[i],...u},M=oe.clsx(ac[l],"animate-spin text-current/70");return w.jsxs("button",{onClick:r,"data-animation":g?"loading":o,"data-color":i,"data-variant":a,"aria-busy":g||void 0,style:T,className:oe.clsx("group relative inline-flex cursor-pointer items-center justify-center gap-2 overflow-hidden rounded-(--radius) font-medium","transition-all duration-300 hover:scale-[1.02] active:scale-[0.98]","focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-offset-(--card)","disabled:pointer-events-none disabled:opacity-50",ic[l],lc[a][i],o==="active"&&!g&&"pulse-ring",g&&"cursor-progress",c),...p,children:[m?w.jsxs(w.Fragment,{children:[w.jsx("div",{className:oe.clsx("pointer-events-none absolute inset-0 opacity-0 transition-opacity duration-300 group-hover:opacity-100","bg-gradient-to-b from-transparent via-(--chart-1)/10 to-transparent"),style:{animation:"scan-button 2s linear infinite"}}),w.jsx("div",{className:oe.clsx("absolute top-0 left-0 h-2 w-2 border-t-2 border-l-2 border-(--chart-1)","opacity-0 transition-all duration-300 group-hover:h-4 group-hover:w-4 group-hover:opacity-100")}),w.jsx("div",{className:oe.clsx("absolute top-0 right-0 h-2 w-2 border-t-2 border-r-2 border-(--chart-1)","opacity-0 transition-all duration-300 group-hover:h-4 group-hover:w-4 group-hover:opacity-100")}),w.jsx("div",{className:oe.clsx("absolute bottom-0 left-0 h-2 w-2 border-b-2 border-l-2 border-(--chart-1)","opacity-0 transition-all duration-300 group-hover:h-4 group-hover:w-4 group-hover:opacity-100")}),w.jsx("div",{className:oe.clsx("absolute right-0 bottom-0 h-2 w-2 border-r-2 border-b-2 border-(--chart-1)","opacity-0 transition-all duration-300 group-hover:h-4 group-hover:w-4 group-hover:opacity-100")}),w.jsx("div",{className:oe.clsx("pointer-events-none absolute inset-0 opacity-0 transition-opacity duration-500 group-hover:opacity-100","bg-gradient-to-r from-(--chart-1)/0 via-(--chart-1)/5 to-(--chart-1)/0"),style:{animation:"pulse-button 2s ease-in-out infinite"}})]}):null,g?w.jsx("div",{"aria-hidden":"true",className:oe.clsx("pointer-events-none absolute inset-0 rounded-[inherit]","loading-wave-overlay","loading-wave")}):null,x?w.jsx("span",{className:"relative z-10 inline-flex items-center justify-center",children:b?w.jsx(Ln,{"aria-hidden":"true",className:M}):v}):null,d?w.jsx("span",{className:oe.clsx("relative z-10",Ye("Action"),S&&"opacity-0"),children:d}):null,y?w.jsx("span",{className:"relative z-10 inline-flex items-center justify-center",children:h?w.jsx(Ln,{"aria-hidden":"true",className:M}):n}):null,S?w.jsxs("span",{className:"pointer-events-none absolute inset-0 z-20 inline-flex items-center justify-center",children:[w.jsx(Ln,{"aria-hidden":"true",className:M}),w.jsx("span",{className:"sr-only",children:"Loading"})]}):null]})},dc=(e,t)=>e&&t?"resize":e?"resize-x":t?"resize-y":"resize-none",$o="file:text-foreground selection:bg-primary selection:text-primary-foreground caret-foreground w-full min-w-0 field-transition required-indicator outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50",zo={outline:"rounded-md border border-border bg-background shadow-xs",text:"rounded-none border-0 border-b border-border bg-transparent shadow-none"},Bn=Ye("Subheader"),uc=new Set(["Backspace","Delete","Tab","Enter","Escape","ArrowLeft","ArrowRight","ArrowUp","ArrowDown","Home","End"]);function mt(e){if(e.isTextarea){const{className:P,isTextarea:N,variant:L="outline",typography:O="Subheader",isResizableX:D=!1,isResizableY:z=!1,textareaRowsCount:j=4,required:k=!1,isError:C=!1,label:R,errorText:H,"aria-invalid":I,...G}=e,q=Ye(O),K=Ht(O),se=C||I===!0||I==="true",ae=C?H:void 0;return w.jsxs("div",{className:"w-full space-y-2",children:[R?w.jsxs("label",{htmlFor:G.id,className:X("inline-flex items-center gap-1",Bn),children:[R,k?w.jsx("span",{"aria-hidden":!0,className:"text-cautionary",children:"*"}):null]}):null,w.jsx("textarea",{"data-slot":"textarea",rows:j,"aria-invalid":se?!0:I,className:X($o,q,K,zo[L],"h-auto py-2 leading-5 overflow-y-auto",L==="outline"?"px-3 focus-ring-3":"px-0 focus:outline-none","aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",dc(D,z),P),...G}),ae?w.jsx("p",{className:"text-sm text-destructive",children:ae}):null]})}const{className:t,isTextarea:n,variant:r="outline",typography:o="Subheader",isResizableX:s,isResizableY:i,textareaRowsCount:a,required:l=!1,isError:c=!1,label:d,errorText:u,"aria-invalid":p,type:v,...g}=e,{onWheel:m,onKeyDown:x,...y}=g,b=Ye(o),h=Ht(o),S=c||p===!0||p==="true",E=c?u:void 0,T=v==="number",M=v==="checkbox",_=P=>{if(m==null||m(P),P.defaultPrevented||!T)return;const N=P.currentTarget;document.activeElement===N&&(N.disabled||N.readOnly||P.deltaY!==0&&(P.preventDefault(),P.deltaY<0?N.stepUp():N.stepDown(),N.dispatchEvent(new Event("input",{bubbles:!0})),N.dispatchEvent(new Event("change",{bubbles:!0}))))},A=P=>{if(x==null||x(P),P.defaultPrevented||!T||P.metaKey||P.ctrlKey||P.altKey||uc.has(P.key)||/^[0-9]$/.test(P.key))return;const L=P.currentTarget;if(!(P.key==="."&&!L.value.includes("."))){if(P.key==="-"){const O=L.selectionStart??0,D=L.selectionEnd??0,z=L.value.startsWith("-")&&O===0&&D>0;if(O===0&&!z)return}P.preventDefault()}};if(M){const P=w.jsx("input",{type:"checkbox","data-slot":"input","aria-invalid":S?!0:p,className:X("size-4 shrink-0 rounded-sm border border-border bg-background text-primary field-transition","focus-ring-3","aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive","disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50",t),onWheel:m,onKeyDown:x,...y});return w.jsxs("div",{className:"w-full space-y-2",children:[d?w.jsxs("label",{htmlFor:g.id,className:X("inline-flex cursor-pointer items-center gap-2",Bn),children:[P,w.jsxs("span",{className:"inline-flex items-center gap-1",children:[d,l?w.jsx("span",{"aria-hidden":!0,className:"text-cautionary",children:"*"}):null]})]}):P,E?w.jsx("p",{className:"text-sm text-destructive",children:E}):null]})}return w.jsxs("div",{className:"w-full space-y-2",children:[d?w.jsxs("label",{htmlFor:g.id,className:X("inline-flex items-center gap-1",Bn),children:[d,l?w.jsx("span",{"aria-hidden":!0,className:"text-cautionary",children:"*"}):null]}):null,w.jsx("input",{type:v,"data-slot":"input","aria-invalid":S?!0:p,className:X($o,b,h,zo[r],"h-9 py-1 resize-none",r==="outline"?"px-3 focus-ring-3":"px-0 focus:outline-none","aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",t),onWheel:_,onKeyDown:A,...y}),E?w.jsx("p",{className:"text-sm text-destructive",children:E}):null]})}const fc=({options:e,value:t,defaultValue:n,onValueChange:r,label:o,required:s=!1,isError:i=!1,errorText:a,placeholder:l="Select option",isSearchable:c=!1,searchPlaceholder:d="Type to filter...",disabled:u=!1,emptyText:p="No options found",id:v,"aria-invalid":g,className:m,...x})=>{const[y,b]=f.useState(!1),[h,S]=f.useState(""),[E,T]=f.useState(n),M=f.useRef(null),_=f.useRef(null),A=f.useId(),P=v??A,N=t!==void 0,L=N?t:E,O=e.find(R=>R.value===L),D=i||g===!0||g==="true",z=i?a:void 0,j=f.useMemo(()=>{if(!c||h.trim()==="")return e;const R=h.trim().toLowerCase();return e.filter(H=>H.label.toLowerCase().includes(R))},[c,e,h]);f.useEffect(()=>{var R;!y||!c||(R=_.current)==null||R.focus()},[y,c]),f.useEffect(()=>{const R=H=>{var I;(I=M.current)!=null&&I.contains(H.target)||b(!1)};return document.addEventListener("mousedown",R),()=>{document.removeEventListener("mousedown",R)}},[]);const k=R=>{N||T(R),r==null||r(R),b(!1),S("")},C=()=>{u||b(R=>!R)};return w.jsxs("div",{className:"w-full space-y-2",children:[o||s?w.jsxs("div",{className:"flex w-full items-start justify-between gap-2",children:[o?w.jsx("label",{htmlFor:P,className:"inline-flex items-center gap-1 text-sm font-medium text-foreground",children:o}):w.jsx("span",{}),s?w.jsx("span",{"aria-label":"Required",className:"text-lg leading-none text-cautionary",children:"*"}):null]}):null,w.jsxs("div",{ref:M,className:X("relative w-full",m),...x,children:[w.jsxs("button",{id:P,type:"button",disabled:u,onClick:C,"aria-expanded":y,"aria-invalid":D?!0:g,"aria-required":s||void 0,"aria-haspopup":"listbox",className:X("field-transition focus-ring-3 border-border bg-background text-foreground","aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive","flex h-9 w-full items-center justify-between gap-2 rounded-md border px-3 text-sm","disabled:cursor-not-allowed disabled:opacity-50"),children:[w.jsx("span",{className:X("truncate",!O&&"text-muted-foreground"),children:(O==null?void 0:O.label)??l}),w.jsx(Rn,{className:X("size-4 text-muted-foreground transition-transform",y&&"rotate-180")})]}),y?w.jsxs("div",{role:"listbox",className:X("bg-card text-card-foreground border-border absolute z-50 mt-2 w-full rounded-md border shadow-md","max-h-64 overflow-hidden"),children:[c?w.jsx("div",{className:"border-border border-b p-2",children:w.jsx("input",{ref:_,value:h,onChange:R=>S(R.target.value),placeholder:d,className:X("field-transition focus-ring-3 border-border bg-background text-foreground","w-full rounded-md border px-2 py-1.5 text-sm outline-none placeholder:text-muted-foreground")})}):null,w.jsx("div",{className:"max-h-48 overflow-y-auto p-1",children:j.length===0?w.jsx("p",{className:"px-2 py-2 text-sm text-muted-foreground",children:p}):j.map(R=>{const H=R.value===L;return w.jsxs("button",{type:"button",role:"option","aria-selected":H,onClick:()=>k(R.value),className:X("flex w-full items-center justify-between gap-2 rounded-sm px-2 py-2 text-left text-sm","hover:bg-accent hover:text-accent-foreground",H&&"bg-accent text-accent-foreground"),children:[w.jsx("span",{className:"truncate",children:R.label}),H?w.jsx(uo,{className:"size-4 shrink-0"}):null]},R.value)})})]}):null]}),z?w.jsx("p",{className:"text-sm text-destructive",children:z}):null]})},pc=({className:e,leftLabel:t,rightLabel:n,labelClassName:r,id:o,disabled:s=!1,...i})=>{const a=f.useId(),l=o??a,c=X("select-none text-sm text-foreground",s&&"cursor-not-allowed opacity-60",r);return w.jsxs("div",{className:X("inline-flex items-center gap-3",e),children:[t?w.jsx("label",{htmlFor:l,className:c,children:t}):null,w.jsxs("label",{htmlFor:l,className:X("relative inline-flex h-6 w-11 items-center",s?"cursor-not-allowed opacity-60":"cursor-pointer"),children:[w.jsx("input",{id:l,type:"checkbox",disabled:s,className:"peer sr-only",...i}),w.jsx("span",{"aria-hidden":!0,className:X("block h-full w-full rounded-full border border-border bg-muted field-transition","peer-focus-visible:ring-2 peer-focus-visible:ring-primary/40 peer-focus-visible:ring-offset-2 peer-focus-visible:ring-offset-(--card)","peer-checked:border-primary peer-checked:bg-primary/90")}),w.jsx("span",{"aria-hidden":!0,className:X("pointer-events-none absolute top-1/2 left-0.5 h-5 w-5 -translate-y-1/2 rounded-full bg-background shadow-xs field-transition","peer-checked:translate-x-5 peer-checked:bg-primary-foreground")})]}),n?w.jsx("label",{htmlFor:l,className:c,children:n}):null]})},mc={1:new URL("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxMDAwIDEwMDAiPgogIDxwb2x5Z29uCiAgICBwb2ludHM9IjI5Mi44OTMsMCA3MDcuMTA3LDAgMTAwMCwyOTIuODkzIDEwMDAsNzA3LjEwNyA3MDcuMTA3LDEwMDAgMjkyLjg5MywxMDAwIDAsNzA3LjEwNyAwLDI5Mi44OTMiCiAgICBmaWxsPSJ3aGl0ZSIKICAvPgo8L3N2Zz4K",self.location).href,2:new URL("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxMDAwIDEwMDAiPgogIDxjaXJjbGUgY3g9IjUwMCIgY3k9IjUwMCIgcj0iNTAwIiBmaWxsPSJ3aGl0ZSIgLz4KPC9zdmc+Cg==",self.location).href,3:new URL("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxODAgMTgwIj4KICA8cmVjdCB3aWR0aD0iMTgwIiBoZWlnaHQ9IjE4MCIgcng9IjM3IiBmaWxsPSJ3aGl0ZSIgLz4KPC9zdmc+Cg==",self.location).href},hc=[{value:0,label:"No Mask"},{value:1,label:"Octagon Crop"},{value:2,label:"Circle Crop"},{value:3,label:"Square Crop"}],Bo=e=>mc[e],gc=e=>{const[t="100%",n=t]=e.trim().split(/\s+/).filter(Boolean),r=i=>{const a=i.match(/^(-?\d+(?:\.\d+)?)%$/);if(a)return Number(a[1])},o=r(t),s=r(n);return o===void 0||s===void 0||!Number.isFinite(o)||!Number.isFinite(s)?{width:100,height:100}:{width:Math.max(0,o),height:Math.max(0,s)}},vc=(e,t)=>{const{width:n,height:r}=gc(e),o=(100-n)*t.x/100,s=(100-r)*t.y/100;return{x:o,y:s,width:n,height:r}},bc=({maskType:e,fillColor:t,strokeColor:n,strokeWidth:r,placement:o})=>{const s=!!t,i=!!n&&!!(r&&r>0);if(!s&&!i)return null;const a={fill:t??"none",stroke:n??"none",strokeWidth:r??0,vectorEffect:"non-scaling-stroke"},l=`translate(${o.x} ${o.y}) scale(${o.width/100} ${o.height/100})`;return e===1?w.jsx("g",{transform:l,children:w.jsx("polygon",{points:"29.2893,0 70.7107,0 100,29.2893 100,70.7107 70.7107,100 29.2893,100 0,70.7107 0,29.2893",...a})}):e===2?w.jsx("g",{transform:l,children:w.jsx("circle",{cx:"50",cy:"50",r:"50",...a})}):e===3?w.jsx("g",{transform:l,children:w.jsx("rect",{width:"100",height:"100",rx:"20.5556",...a})}):null},Fn=({className:e,isLoading:t=!1,maskType:n=0,isEditModeDisabled:r=!0,imagePosition:o,isSquareCrop:s=!1,cropX:i=50,cropY:a=50,cropPositionValue:l,defaultCropPositionValue:c,onCropPositionChange:d,maskSize:u="100% 100%",maskPositionValue:p,maskFillColor:v,maskStrokeColor:g,maskStrokeWidth:m=1,isTopShadeVisible:x=!1,topShadeColor:y,isBottomShadeVisible:b=!1,bottomShadeColor:h,alt:S="",style:E,...T})=>{const M=f.useRef(null),[_,A]=f.useState(!1),P=l!==void 0,[N,L]=f.useState(c??{x:i,y:a}),O=Bo(n),D=!!O,z=p,j=z==null?void 0:z.x,k=z==null?void 0:z.y,C=typeof j=="number"&&Number.isFinite(j)?Math.min(100,Math.max(0,j)):50,R=typeof k=="number"&&Number.isFinite(k)?Math.min(100,Math.max(0,k)):50,H=`${C}% ${R}%`,G=vc(u,{x:C,y:R}),q=P?l:N,K=Number.isFinite(q==null?void 0:q.x)?Math.min(100,Math.max(0,q.x)):Math.min(100,Math.max(0,i)),se=Number.isFinite(q==null?void 0:q.y)?Math.min(100,Math.max(0,q.y)):Math.min(100,Math.max(0,a)),ae=o??`${K}% ${se}%`,B=f.useCallback(V=>{P||L(V),d==null||d(V)},[P,d]),Z=f.useCallback((V,de)=>{const we=M.current;if(!we)return;const xe=we.getBoundingClientRect();if(xe.width<=0||xe.height<=0)return;const Qg=(V-xe.left)/xe.width*100,ev=(de-xe.top)/xe.height*100,tv={x:Math.min(100,Math.max(0,Qg)),y:Math.min(100,Math.max(0,ev))};B(tv)},[B]),re=!r&&!t;f.useEffect(()=>{re||A(!1)},[re]);const Q=V=>{re&&(V.preventDefault(),V.currentTarget.setPointerCapture(V.pointerId),A(!0),Z(V.clientX,V.clientY))},te=V=>{!re||!_||Z(V.clientX,V.clientY)},ee=V=>{re&&(V.currentTarget.hasPointerCapture(V.pointerId)&&V.currentTarget.releasePointerCapture(V.pointerId),A(!1))},ve=D?{WebkitMaskImage:`url("${O}")`,maskImage:`url("${O}")`,WebkitMaskSize:u,maskSize:u,WebkitMaskPosition:H,maskPosition:H,WebkitMaskRepeat:"no-repeat",maskRepeat:"no-repeat"}:void 0,ye=D&&(!!v||!!g),Be=y??h??v??"var(--background)";return w.jsxs("div",{ref:M,"aria-busy":t||void 0,style:ve,onPointerDown:Q,onPointerMove:te,onPointerUp:ee,onPointerCancel:ee,className:X("relative overflow-hidden",s&&"aspect-square",D?"rounded-none":"rounded-(--radius)",t&&"relative overflow-hidden",re?X("touch-none",_?"cursor-grabbing":"cursor-grab"):null,e),children:[w.jsx("img",{alt:S,draggable:!1,onDragStart:V=>V.preventDefault(),style:{objectPosition:ae,...E},className:X("block h-full w-full object-cover select-none",t&&"opacity-0"),...T}),t?w.jsx("div",{"aria-hidden":"true",className:X("pointer-events-none absolute inset-0 rounded-[inherit]","loading-wave-overlay","loading-wave")}):null,x?w.jsx("div",{"aria-hidden":!0,className:"pointer-events-none absolute inset-x-0 top-0 h-[10%]",style:{backgroundColor:Be,opacity:.65,WebkitMaskImage:"linear-gradient(to bottom, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0))",maskImage:"linear-gradient(to bottom, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0))"}}):null,b?w.jsx("div",{"aria-hidden":!0,className:"pointer-events-none absolute inset-x-0 bottom-0 h-[10%]",style:{backgroundColor:Be,opacity:.65,WebkitMaskImage:"linear-gradient(to top, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0))",maskImage:"linear-gradient(to top, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0))"}}):null,ye?w.jsx("svg",{"aria-hidden":!0,viewBox:"0 0 100 100",preserveAspectRatio:"none",className:"pointer-events-none absolute inset-0 h-full w-full",children:w.jsx(bc,{maskType:n,fillColor:v,strokeColor:g,strokeWidth:m,placement:G})}):null]})},yc={days:"дн.",hours:"ч.",minutes:"мин.",seconds:"с."},Fo=1e3,Vn=60,Hn=60*Vn,Vo=24*Hn,wc=e=>{if(e instanceof Date){const n=e.getTime();return Number.isFinite(n)?n:null}if(typeof e=="number")return Number.isFinite(e)?e:null;const t=new Date(e).getTime();return Number.isFinite(t)?t:null},Wn=(e,t)=>{if(e===null)return{days:0,hours:0,minutes:0,seconds:0,isComplete:!0};const n=Math.max(Math.floor((e-t)/Fo),0),r=Math.floor(n/Vo),o=Math.floor(n%Vo/Hn),s=Math.floor(n%Hn/Vn),i=n%Vn;return{days:r,hours:o,minutes:s,seconds:i,isComplete:n<=0}},xc=e=>e.toString().padStart(2,"0"),Ho=({targetDate:e,className:t,itemClassName:n,labels:r,onComplete:o})=>{const s=$.useMemo(()=>wc(e),[e]),i=$.useMemo(()=>({...yc,...r}),[r]),[a,l]=$.useState(()=>Wn(s,Date.now())),c=$.useRef(!1);$.useEffect(()=>{if(l(Wn(s,Date.now())),c.current=!1,s===null)return;const u=window.setInterval(()=>{l(Wn(s,Date.now()))},Fo);return()=>{window.clearInterval(u)}},[s]),$.useEffect(()=>{s===null||!a.isComplete||c.current||(c.current=!0,o==null||o())},[o,a.isComplete,s]);const d=[{key:"days",value:a.days,label:i.days},{key:"hours",value:a.hours,label:i.hours},{key:"minutes",value:a.minutes,label:i.minutes},{key:"seconds",value:a.seconds,label:i.seconds}];return w.jsx("div",{className:oe.clsx("inline-flex items-end gap-2",t),children:d.map((u,p)=>w.jsxs($.Fragment,{children:[w.jsxs("div",{className:"flex flex-col items-center gap-1",children:[w.jsx("div",{className:oe.clsx("min-w-14 rounded-sm border border-(--border) bg-primary px-2 py-1 text-center shadow-xs",n),children:w.jsx("span",{className:"inline-block font-infinityloop text-3xl leading-none font-semibold tabular-nums text-primary-foreground",children:xc(u.value)})}),w.jsx(Se,{typography:"Caption",className:"normal-case",children:u.label})]}),p<d.length-1?w.jsx("span",{"aria-hidden":!0,className:"pb-6 font-infinityloop text-2xl leading-none text-muted-foreground",children:":"}):null]},u.key))})};Ho.displayName="Timer";const Sc=["default","time"],Ec={default:"destructive",time:"background"},Cc={default:"foreground",time:"foreground"},Jt=({label:e,type:t="default",color:n,textColor:r,className:o,isLoading:s=!1,isEditModeEnabled:i=!1,isEditModeDisabled:a=!1,onLabelChange:l,...c})=>{const[d,u]=$.useState(e),p=n??Ec[t],v=r??Cc[t],g=i&&!a&&!s,x=p==="destructive"?"#ffffff":`var(--${v})`,y=t==="time"?"Action":"CompactCaption";$.useEffect(()=>{u(e)},[e]);const b=h=>{const S=h.currentTarget.value;u(S),l==null||l(S)};return w.jsx("span",{className:oe.clsx("inline-flex max-w-full items-center rounded-md px-2 py-1",o),style:{backgroundColor:`var(--${p})`},...c,children:g?w.jsx("input",{value:d,onChange:b,className:oe.clsx("inline-block max-w-full min-w-[1ch] border-none bg-transparent p-0 outline-none",Ye(y),"font-semibold",t==="default"&&"uppercase tracking-wide"),style:{color:x,width:`${Math.max(1,d.length)}ch`}}):w.jsx(Se,{typography:y,element:"span",color:v,isLoading:s,className:oe.clsx("inline-block truncate font-semibold",t==="default"&&"uppercase tracking-wide"),style:{color:x},children:d})})},Wo=e=>e==null?"":Array.isArray(e)?e.join(", "):String(e),Ve=({className:e,typography:t="Subheader",element:n="span",color:r,isEditModeDisabled:o=!1,isLoading:s=!1,value:i,defaultValue:a,placeholder:l,onValueChange:c,children:d})=>{const[u,p]=f.useState(!1),[v,g]=f.useState(()=>Wo(a)),m=r??In(t),x=i!==void 0,y=x?Wo(i):v;f.useEffect(()=>{(o||s)&&u&&p(!1)},[o,u,s]);const b=()=>{o||s||p(!0)},h=T=>{const M=T.currentTarget.value;x||g(M),c==null||c(M)},S=()=>{p(!1)},E=T=>{(T.key==="Enter"||T.key==="Escape")&&(p(!1),T.currentTarget.blur())};return u&&!o&&!s?w.jsx("div",{className:oe.clsx("relative h-9 w-full",e),children:w.jsx("input",{autoFocus:!0,value:y,placeholder:l,style:{color:`var(--${m})`,caretColor:`var(--${m})`},className:oe.clsx("relative m-0 block h-auto w-full border-0 bg-transparent p-0 font-infinityloop",Ye(t),Ht(t),"appearance-none outline-none shadow-none","outline-none focus:outline-none focus-visible:outline-none","focus:shadow-none focus-visible:shadow-none","ring-0 focus:ring-0 focus-visible:ring-0 focus-visible:ring-offset-0"),onChange:h,onBlur:S,onKeyDown:E})}):w.jsx("div",{className:oe.clsx("relative h-9 w-full",e),children:w.jsx(Se,{typography:t,element:n,color:m,isLoading:s,className:oe.clsx("block w-full px-0",!o&&!s&&"cursor-text hover:opacity-90",s&&"cursor-default"),onClick:b,children:y||d||l||"Click to edit"})})};function Go(e){return e!==null&&typeof e=="object"&&"constructor"in e&&e.constructor===Object}function Gn(e,t){e===void 0&&(e={}),t===void 0&&(t={});const n=["__proto__","constructor","prototype"];Object.keys(t).filter(r=>n.indexOf(r)<0).forEach(r=>{typeof e[r]>"u"?e[r]=t[r]:Go(t[r])&&Go(e[r])&&Object.keys(t[r]).length>0&&Gn(e[r],t[r])})}const Uo={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector(){return null},querySelectorAll(){return[]},getElementById(){return null},createEvent(){return{initEvent(){}}},createElement(){return{children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName(){return[]}}},createElementNS(){return{}},importNode(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function Me(){const e=typeof document<"u"?document:{};return Gn(e,Uo),e}const Tc={document:Uo,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle(){return{getPropertyValue(){return""}}},Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia(){return{}},requestAnimationFrame(e){return typeof setTimeout>"u"?(e(),null):setTimeout(e,0)},cancelAnimationFrame(e){typeof setTimeout>"u"||clearTimeout(e)}};function he(){const e=typeof window<"u"?window:{};return Gn(e,Tc),e}function Pc(e){return e===void 0&&(e=""),e.trim().split(" ").filter(t=>!!t.trim())}function _c(e){const t=e;Object.keys(t).forEach(n=>{try{t[n]=null}catch{}try{delete t[n]}catch{}})}function Qt(e,t){return t===void 0&&(t=0),setTimeout(e,t)}function _e(){return Date.now()}function kc(e){const t=he();let n;return t.getComputedStyle&&(n=t.getComputedStyle(e,null)),!n&&e.currentStyle&&(n=e.currentStyle),n||(n=e.style),n}function Mc(e,t){t===void 0&&(t="x");const n=he();let r,o,s;const i=kc(e);return n.WebKitCSSMatrix?(o=i.transform||i.webkitTransform,o.split(",").length>6&&(o=o.split(", ").map(a=>a.replace(",",".")).join(", ")),s=new n.WebKitCSSMatrix(o==="none"?"":o)):(s=i.MozTransform||i.OTransform||i.MsTransform||i.msTransform||i.transform||i.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),r=s.toString().split(",")),t==="x"&&(n.WebKitCSSMatrix?o=s.m41:r.length===16?o=parseFloat(r[12]):o=parseFloat(r[4])),t==="y"&&(n.WebKitCSSMatrix?o=s.m42:r.length===16?o=parseFloat(r[13]):o=parseFloat(r[5])),o||0}function en(e){return typeof e=="object"&&e!==null&&e.constructor&&Object.prototype.toString.call(e).slice(8,-1)==="Object"}function Ac(e){return typeof window<"u"&&typeof window.HTMLElement<"u"?e instanceof HTMLElement:e&&(e.nodeType===1||e.nodeType===11)}function Ee(){const e=Object(arguments.length<=0?void 0:arguments[0]),t=["__proto__","constructor","prototype"];for(let n=1;n<arguments.length;n+=1){const r=n<0||arguments.length<=n?void 0:arguments[n];if(r!=null&&!Ac(r)){const o=Object.keys(Object(r)).filter(s=>t.indexOf(s)<0);for(let s=0,i=o.length;s<i;s+=1){const a=o[s],l=Object.getOwnPropertyDescriptor(r,a);l!==void 0&&l.enumerable&&(en(e[a])&&en(r[a])?r[a].__swiper__?e[a]=r[a]:Ee(e[a],r[a]):!en(e[a])&&en(r[a])?(e[a]={},r[a].__swiper__?e[a]=r[a]:Ee(e[a],r[a])):e[a]=r[a])}}}return e}function tn(e,t,n){e.style.setProperty(t,n)}function Yo(e){let{swiper:t,targetPosition:n,side:r}=e;const o=he(),s=-t.translate;let i=null,a;const l=t.params.speed;t.wrapperEl.style.scrollSnapType="none",o.cancelAnimationFrame(t.cssModeFrameID);const c=n>s?"next":"prev",d=(p,v)=>c==="next"&&p>=v||c==="prev"&&p<=v,u=()=>{a=new Date().getTime(),i===null&&(i=a);const p=Math.max(Math.min((a-i)/l,1),0),v=.5-Math.cos(p*Math.PI)/2;let g=s+v*(n-s);if(d(g,n)&&(g=n),t.wrapperEl.scrollTo({[r]:g}),d(g,n)){t.wrapperEl.style.overflow="hidden",t.wrapperEl.style.scrollSnapType="",setTimeout(()=>{t.wrapperEl.style.overflow="",t.wrapperEl.scrollTo({[r]:g})}),o.cancelAnimationFrame(t.cssModeFrameID);return}t.cssModeFrameID=o.requestAnimationFrame(u)};u()}function Re(e,t){t===void 0&&(t="");const n=he(),r=[...e.children];return n.HTMLSlotElement&&e instanceof HTMLSlotElement&&r.push(...e.assignedElements()),t?r.filter(o=>o.matches(t)):r}function Nc(e,t){const n=[t];for(;n.length>0;){const r=n.shift();if(e===r)return!0;n.push(...r.children,...r.shadowRoot?r.shadowRoot.children:[],...r.assignedElements?r.assignedElements():[])}}function Ic(e,t){const n=he();let r=t.contains(e);return!r&&n.HTMLSlotElement&&t instanceof HTMLSlotElement&&(r=[...t.assignedElements()].includes(e),r||(r=Nc(e,t))),r}function nn(e){try{console.warn(e);return}catch{}}function Nt(e,t){t===void 0&&(t=[]);const n=document.createElement(e);return n.classList.add(...Array.isArray(t)?t:Pc(t)),n}function Oc(e){const t=he(),n=Me(),r=e.getBoundingClientRect(),o=n.body,s=e.clientTop||o.clientTop||0,i=e.clientLeft||o.clientLeft||0,a=e===t?t.scrollY:e.scrollTop,l=e===t?t.scrollX:e.scrollLeft;return{top:r.top+a-s,left:r.left+l-i}}function Rc(e,t){const n=[];for(;e.previousElementSibling;){const r=e.previousElementSibling;t?r.matches(t)&&n.push(r):n.push(r),e=r}return n}function Lc(e,t){const n=[];for(;e.nextElementSibling;){const r=e.nextElementSibling;t?r.matches(t)&&n.push(r):n.push(r),e=r}return n}function Ke(e,t){return he().getComputedStyle(e,null).getPropertyValue(t)}function It(e){let t=e,n;if(t){for(n=0;(t=t.previousSibling)!==null;)t.nodeType===1&&(n+=1);return n}}function rn(e,t){const n=[];let r=e.parentElement;for(;r;)t?r.matches(t)&&n.push(r):n.push(r),r=r.parentElement;return n}function Un(e,t){function n(r){r.target===e&&(t.call(e,r),e.removeEventListener("transitionend",n))}t&&e.addEventListener("transitionend",n)}function Yn(e,t,n){const r=he();return n?e[t==="width"?"offsetWidth":"offsetHeight"]+parseFloat(r.getComputedStyle(e,null).getPropertyValue(t==="width"?"margin-right":"margin-top"))+parseFloat(r.getComputedStyle(e,null).getPropertyValue(t==="width"?"margin-left":"margin-bottom")):e.offsetWidth}function ne(e){return(Array.isArray(e)?e:[e]).filter(t=>!!t)}function Ot(e,t){t===void 0&&(t=""),typeof trustedTypes<"u"?e.innerHTML=trustedTypes.createPolicy("html",{createHTML:n=>n}).createHTML(t):e.innerHTML=t}function jc(e){let{swiper:t,extendParams:n,on:r,emit:o}=e;const s=Me(),i=he();t.keyboard={enabled:!1},n({keyboard:{enabled:!1,onlyInViewport:!0,pageUpDown:!0}});function a(d){if(!t.enabled)return;const{rtlTranslate:u}=t;let p=d;p.originalEvent&&(p=p.originalEvent);const v=p.keyCode||p.charCode,g=t.params.keyboard.pageUpDown,m=g&&v===33,x=g&&v===34,y=v===37,b=v===39,h=v===38,S=v===40;if(!t.allowSlideNext&&(t.isHorizontal()&&b||t.isVertical()&&S||x)||!t.allowSlidePrev&&(t.isHorizontal()&&y||t.isVertical()&&h||m))return!1;if(!(p.shiftKey||p.altKey||p.ctrlKey||p.metaKey)&&!(s.activeElement&&(s.activeElement.isContentEditable||s.activeElement.nodeName&&(s.activeElement.nodeName.toLowerCase()==="input"||s.activeElement.nodeName.toLowerCase()==="textarea")))){if(t.params.keyboard.onlyInViewport&&(m||x||y||b||h||S)){let E=!1;if(rn(t.el,`.${t.params.slideClass}, swiper-slide`).length>0&&rn(t.el,`.${t.params.slideActiveClass}`).length===0)return;const T=t.el,M=T.clientWidth,_=T.clientHeight,A=i.innerWidth,P=i.innerHeight,N=Oc(T);u&&(N.left-=T.scrollLeft);const L=[[N.left,N.top],[N.left+M,N.top],[N.left,N.top+_],[N.left+M,N.top+_]];for(let O=0;O<L.length;O+=1){const D=L[O];if(D[0]>=0&&D[0]<=A&&D[1]>=0&&D[1]<=P){if(D[0]===0&&D[1]===0)continue;E=!0}}if(!E)return}t.isHorizontal()?((m||x||y||b)&&(p.preventDefault?p.preventDefault():p.returnValue=!1),((x||b)&&!u||(m||y)&&u)&&t.slideNext(),((m||y)&&!u||(x||b)&&u)&&t.slidePrev()):((m||x||h||S)&&(p.preventDefault?p.preventDefault():p.returnValue=!1),(x||S)&&t.slideNext(),(m||h)&&t.slidePrev()),o("keyPress",v)}}function l(){t.keyboard.enabled||(s.addEventListener("keydown",a),t.keyboard.enabled=!0)}function c(){t.keyboard.enabled&&(s.removeEventListener("keydown",a),t.keyboard.enabled=!1)}r("init",()=>{t.params.keyboard.enabled&&l()}),r("destroy",()=>{t.keyboard.enabled&&c()}),Object.assign(t.keyboard,{enable:l,disable:c})}function Dc(e){let{swiper:t,extendParams:n,on:r,emit:o}=e;const s=he();n({mousewheel:{enabled:!1,releaseOnEdges:!1,invert:!1,forceToAxis:!1,sensitivity:1,eventsTarget:"container",thresholdDelta:null,thresholdTime:null,noMousewheelClass:"swiper-no-mousewheel"}}),t.mousewheel={enabled:!1};let i,a=_e(),l;const c=[];function d(h){let M=0,_=0,A=0,P=0;return"detail"in h&&(_=h.detail),"wheelDelta"in h&&(_=-h.wheelDelta/120),"wheelDeltaY"in h&&(_=-h.wheelDeltaY/120),"wheelDeltaX"in h&&(M=-h.wheelDeltaX/120),"axis"in h&&h.axis===h.HORIZONTAL_AXIS&&(M=_,_=0),A=M*10,P=_*10,"deltaY"in h&&(P=h.deltaY),"deltaX"in h&&(A=h.deltaX),h.shiftKey&&!A&&(A=P,P=0),(A||P)&&h.deltaMode&&(h.deltaMode===1?(A*=40,P*=40):(A*=800,P*=800)),A&&!M&&(M=A<1?-1:1),P&&!_&&(_=P<1?-1:1),{spinX:M,spinY:_,pixelX:A,pixelY:P}}function u(){t.enabled&&(t.mouseEntered=!0)}function p(){t.enabled&&(t.mouseEntered=!1)}function v(h){return t.params.mousewheel.thresholdDelta&&h.delta<t.params.mousewheel.thresholdDelta||t.params.mousewheel.thresholdTime&&_e()-a<t.params.mousewheel.thresholdTime?!1:h.delta>=6&&_e()-a<60?!0:(h.direction<0?(!t.isEnd||t.params.loop)&&!t.animating&&(t.slideNext(),o("scroll",h.raw)):(!t.isBeginning||t.params.loop)&&!t.animating&&(t.slidePrev(),o("scroll",h.raw)),a=new s.Date().getTime(),!1)}function g(h){const S=t.params.mousewheel;if(h.direction<0){if(t.isEnd&&!t.params.loop&&S.releaseOnEdges)return!0}else if(t.isBeginning&&!t.params.loop&&S.releaseOnEdges)return!0;return!1}function m(h){let S=h,E=!0;if(!t.enabled||h.target.closest(`.${t.params.mousewheel.noMousewheelClass}`))return;const T=t.params.mousewheel;t.params.cssMode&&S.preventDefault();let M=t.el;t.params.mousewheel.eventsTarget!=="container"&&(M=document.querySelector(t.params.mousewheel.eventsTarget));const _=M&&M.contains(S.target);if(!t.mouseEntered&&!_&&!T.releaseOnEdges)return!0;S.originalEvent&&(S=S.originalEvent);let A=0;const P=t.rtlTranslate?-1:1,N=d(S);if(T.forceToAxis)if(t.isHorizontal())if(Math.abs(N.pixelX)>Math.abs(N.pixelY))A=-N.pixelX*P;else return!0;else if(Math.abs(N.pixelY)>Math.abs(N.pixelX))A=-N.pixelY;else return!0;else A=Math.abs(N.pixelX)>Math.abs(N.pixelY)?-N.pixelX*P:-N.pixelY;if(A===0)return!0;T.invert&&(A=-A);let L=t.getTranslate()+A*T.sensitivity;if(L>=t.minTranslate()&&(L=t.minTranslate()),L<=t.maxTranslate()&&(L=t.maxTranslate()),E=t.params.loop?!0:!(L===t.minTranslate()||L===t.maxTranslate()),E&&t.params.nested&&S.stopPropagation(),!t.params.freeMode||!t.params.freeMode.enabled){const O={time:_e(),delta:Math.abs(A),direction:Math.sign(A),raw:h};c.length>=2&&c.shift();const D=c.length?c[c.length-1]:void 0;if(c.push(O),D?(O.direction!==D.direction||O.delta>D.delta||O.time>D.time+150)&&v(O):v(O),g(O))return!0}else{const O={time:_e(),delta:Math.abs(A),direction:Math.sign(A)},D=l&&O.time<l.time+500&&O.delta<=l.delta&&O.direction===l.direction;if(!D){l=void 0;let z=t.getTranslate()+A*T.sensitivity;const j=t.isBeginning,k=t.isEnd;if(z>=t.minTranslate()&&(z=t.minTranslate()),z<=t.maxTranslate()&&(z=t.maxTranslate()),t.setTransition(0),t.setTranslate(z),t.updateProgress(),t.updateActiveIndex(),t.updateSlidesClasses(),(!j&&t.isBeginning||!k&&t.isEnd)&&t.updateSlidesClasses(),t.params.loop&&t.loopFix({direction:O.direction<0?"next":"prev",byMousewheel:!0}),t.params.freeMode.sticky){clearTimeout(i),i=void 0,c.length>=15&&c.shift();const C=c.length?c[c.length-1]:void 0,R=c[0];if(c.push(O),C&&(O.delta>C.delta||O.direction!==C.direction))c.splice(0);else if(c.length>=15&&O.time-R.time<500&&R.delta-O.delta>=1&&O.delta<=6){const H=A>0?.8:.2;l=O,c.splice(0),i=Qt(()=>{t.destroyed||!t.params||t.slideToClosest(t.params.speed,!0,void 0,H)},0)}i||(i=Qt(()=>{if(t.destroyed||!t.params)return;const H=.5;l=O,c.splice(0),t.slideToClosest(t.params.speed,!0,void 0,H)},500))}if(D||o("scroll",S),t.params.autoplay&&t.params.autoplay.disableOnInteraction&&t.autoplay.stop(),T.releaseOnEdges&&(z===t.minTranslate()||z===t.maxTranslate()))return!0}}return S.preventDefault?S.preventDefault():S.returnValue=!1,!1}function x(h){let S=t.el;t.params.mousewheel.eventsTarget!=="container"&&(S=document.querySelector(t.params.mousewheel.eventsTarget)),S[h]("mouseenter",u),S[h]("mouseleave",p),S[h]("wheel",m)}function y(){return t.params.cssMode?(t.wrapperEl.removeEventListener("wheel",m),!0):t.mousewheel.enabled?!1:(x("addEventListener"),t.mousewheel.enabled=!0,!0)}function b(){return t.params.cssMode?(t.wrapperEl.addEventListener(event,m),!0):t.mousewheel.enabled?(x("removeEventListener"),t.mousewheel.enabled=!1,!0):!1}r("init",()=>{!t.params.mousewheel.enabled&&t.params.cssMode&&b(),t.params.mousewheel.enabled&&y()}),r("destroy",()=>{t.params.cssMode&&y(),t.mousewheel.enabled&&b()}),Object.assign(t.mousewheel,{enable:y,disable:b})}function qo(e,t,n,r){return e.params.createElements&&Object.keys(r).forEach(o=>{if(!n[o]&&n.auto===!0){let s=Re(e.el,`.${r[o]}`)[0];s||(s=Nt("div",r[o]),s.className=r[o],e.el.append(s)),n[o]=s,t[o]=s}}),n}function $c(e){let{swiper:t,extendParams:n,on:r,emit:o}=e;n({navigation:{nextEl:null,prevEl:null,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock",navigationDisabledClass:"swiper-navigation-disabled"}}),t.navigation={nextEl:null,prevEl:null};function s(g){let m;return g&&typeof g=="string"&&t.isElement&&(m=t.el.querySelector(g)||t.hostEl.querySelector(g),m)?m:(g&&(typeof g=="string"&&(m=[...document.querySelectorAll(g)]),t.params.uniqueNavElements&&typeof g=="string"&&m&&m.length>1&&t.el.querySelectorAll(g).length===1?m=t.el.querySelector(g):m&&m.length===1&&(m=m[0])),g&&!m?g:m)}function i(g,m){const x=t.params.navigation;g=ne(g),g.forEach(y=>{y&&(y.classList[m?"add":"remove"](...x.disabledClass.split(" ")),y.tagName==="BUTTON"&&(y.disabled=m),t.params.watchOverflow&&t.enabled&&y.classList[t.isLocked?"add":"remove"](x.lockClass))})}function a(){const{nextEl:g,prevEl:m}=t.navigation;if(t.params.loop){i(m,!1),i(g,!1);return}i(m,t.isBeginning&&!t.params.rewind),i(g,t.isEnd&&!t.params.rewind)}function l(g){g.preventDefault(),!(t.isBeginning&&!t.params.loop&&!t.params.rewind)&&(t.slidePrev(),o("navigationPrev"))}function c(g){g.preventDefault(),!(t.isEnd&&!t.params.loop&&!t.params.rewind)&&(t.slideNext(),o("navigationNext"))}function d(){const g=t.params.navigation;if(t.params.navigation=qo(t,t.originalParams.navigation,t.params.navigation,{nextEl:"swiper-button-next",prevEl:"swiper-button-prev"}),!(g.nextEl||g.prevEl))return;let m=s(g.nextEl),x=s(g.prevEl);Object.assign(t.navigation,{nextEl:m,prevEl:x}),m=ne(m),x=ne(x);const y=(b,h)=>{b&&b.addEventListener("click",h==="next"?c:l),!t.enabled&&b&&b.classList.add(...g.lockClass.split(" "))};m.forEach(b=>y(b,"next")),x.forEach(b=>y(b,"prev"))}function u(){let{nextEl:g,prevEl:m}=t.navigation;g=ne(g),m=ne(m);const x=(y,b)=>{y.removeEventListener("click",b==="next"?c:l),y.classList.remove(...t.params.navigation.disabledClass.split(" "))};g.forEach(y=>x(y,"next")),m.forEach(y=>x(y,"prev"))}r("init",()=>{t.params.navigation.enabled===!1?v():(d(),a())}),r("toEdge fromEdge lock unlock",()=>{a()}),r("destroy",()=>{u()}),r("enable disable",()=>{let{nextEl:g,prevEl:m}=t.navigation;if(g=ne(g),m=ne(m),t.enabled){a();return}[...g,...m].filter(x=>!!x).forEach(x=>x.classList.add(t.params.navigation.lockClass))}),r("click",(g,m)=>{let{nextEl:x,prevEl:y}=t.navigation;x=ne(x),y=ne(y);const b=m.target;let h=y.includes(b)||x.includes(b);if(t.isElement&&!h){const S=m.path||m.composedPath&&m.composedPath();S&&(h=S.find(E=>x.includes(E)||y.includes(E)))}if(t.params.navigation.hideOnClick&&!h){if(t.pagination&&t.params.pagination&&t.params.pagination.clickable&&(t.pagination.el===b||t.pagination.el.contains(b)))return;let S;x.length?S=x[0].classList.contains(t.params.navigation.hiddenClass):y.length&&(S=y[0].classList.contains(t.params.navigation.hiddenClass)),o(S===!0?"navigationShow":"navigationHide"),[...x,...y].filter(E=>!!E).forEach(E=>E.classList.toggle(t.params.navigation.hiddenClass))}});const p=()=>{t.el.classList.remove(...t.params.navigation.navigationDisabledClass.split(" ")),d(),a()},v=()=>{t.el.classList.add(...t.params.navigation.navigationDisabledClass.split(" ")),u()};Object.assign(t.navigation,{enable:p,disable:v,update:a,init:d,destroy:u})}function Ze(e){return e===void 0&&(e=""),`.${e.trim().replace(/([\.:!+\/()[\]])/g,"\\$1").replace(/ /g,".")}`}function zc(e){let{swiper:t,extendParams:n,on:r,emit:o}=e;const s="swiper-pagination";n({pagination:{el:null,bulletElement:"span",clickable:!1,hideOnClick:!1,renderBullet:null,renderProgressbar:null,renderFraction:null,renderCustom:null,progressbarOpposite:!1,type:"bullets",dynamicBullets:!1,dynamicMainBullets:1,formatFractionCurrent:b=>b,formatFractionTotal:b=>b,bulletClass:`${s}-bullet`,bulletActiveClass:`${s}-bullet-active`,modifierClass:`${s}-`,currentClass:`${s}-current`,totalClass:`${s}-total`,hiddenClass:`${s}-hidden`,progressbarFillClass:`${s}-progressbar-fill`,progressbarOppositeClass:`${s}-progressbar-opposite`,clickableClass:`${s}-clickable`,lockClass:`${s}-lock`,horizontalClass:`${s}-horizontal`,verticalClass:`${s}-vertical`,paginationDisabledClass:`${s}-disabled`}}),t.pagination={el:null,bullets:[]};let i,a=0;function l(){return!t.params.pagination.el||!t.pagination.el||Array.isArray(t.pagination.el)&&t.pagination.el.length===0}function c(b,h){const{bulletActiveClass:S}=t.params.pagination;b&&(b=b[`${h==="prev"?"previous":"next"}ElementSibling`],b&&(b.classList.add(`${S}-${h}`),b=b[`${h==="prev"?"previous":"next"}ElementSibling`],b&&b.classList.add(`${S}-${h}-${h}`)))}function d(b,h,S){if(b=b%S,h=h%S,h===b+1)return"next";if(h===b-1)return"previous"}function u(b){const h=b.target.closest(Ze(t.params.pagination.bulletClass));if(!h)return;b.preventDefault();const S=It(h)*t.params.slidesPerGroup;if(t.params.loop){if(t.realIndex===S)return;const E=d(t.realIndex,S,t.slides.length);E==="next"?t.slideNext():E==="previous"?t.slidePrev():t.slideToLoop(S)}else t.slideTo(S)}function p(){const b=t.rtl,h=t.params.pagination;if(l())return;let S=t.pagination.el;S=ne(S);let E,T;const M=t.virtual&&t.params.virtual.enabled?t.virtual.slides.length:t.slides.length,_=t.params.loop?Math.ceil(M/t.params.slidesPerGroup):t.snapGrid.length;if(t.params.loop?(T=t.previousRealIndex||0,E=t.params.slidesPerGroup>1?Math.floor(t.realIndex/t.params.slidesPerGroup):t.realIndex):typeof t.snapIndex<"u"?(E=t.snapIndex,T=t.previousSnapIndex):(T=t.previousIndex||0,E=t.activeIndex||0),h.type==="bullets"&&t.pagination.bullets&&t.pagination.bullets.length>0){const A=t.pagination.bullets;let P,N,L;if(h.dynamicBullets&&(i=Yn(A[0],t.isHorizontal()?"width":"height",!0),S.forEach(O=>{O.style[t.isHorizontal()?"width":"height"]=`${i*(h.dynamicMainBullets+4)}px`}),h.dynamicMainBullets>1&&T!==void 0&&(a+=E-(T||0),a>h.dynamicMainBullets-1?a=h.dynamicMainBullets-1:a<0&&(a=0)),P=Math.max(E-a,0),N=P+(Math.min(A.length,h.dynamicMainBullets)-1),L=(N+P)/2),A.forEach(O=>{const D=[...["","-next","-next-next","-prev","-prev-prev","-main"].map(z=>`${h.bulletActiveClass}${z}`)].map(z=>typeof z=="string"&&z.includes(" ")?z.split(" "):z).flat();O.classList.remove(...D)}),S.length>1)A.forEach(O=>{const D=It(O);D===E?O.classList.add(...h.bulletActiveClass.split(" ")):t.isElement&&O.setAttribute("part","bullet"),h.dynamicBullets&&(D>=P&&D<=N&&O.classList.add(...`${h.bulletActiveClass}-main`.split(" ")),D===P&&c(O,"prev"),D===N&&c(O,"next"))});else{const O=A[E];if(O&&O.classList.add(...h.bulletActiveClass.split(" ")),t.isElement&&A.forEach((D,z)=>{D.setAttribute("part",z===E?"bullet-active":"bullet")}),h.dynamicBullets){const D=A[P],z=A[N];for(let j=P;j<=N;j+=1)A[j]&&A[j].classList.add(...`${h.bulletActiveClass}-main`.split(" "));c(D,"prev"),c(z,"next")}}if(h.dynamicBullets){const O=Math.min(A.length,h.dynamicMainBullets+4),D=(i*O-i)/2-L*i,z=b?"right":"left";A.forEach(j=>{j.style[t.isHorizontal()?z:"top"]=`${D}px`})}}S.forEach((A,P)=>{if(h.type==="fraction"&&(A.querySelectorAll(Ze(h.currentClass)).forEach(N=>{N.textContent=h.formatFractionCurrent(E+1)}),A.querySelectorAll(Ze(h.totalClass)).forEach(N=>{N.textContent=h.formatFractionTotal(_)})),h.type==="progressbar"){let N;h.progressbarOpposite?N=t.isHorizontal()?"vertical":"horizontal":N=t.isHorizontal()?"horizontal":"vertical";const L=(E+1)/_;let O=1,D=1;N==="horizontal"?O=L:D=L,A.querySelectorAll(Ze(h.progressbarFillClass)).forEach(z=>{z.style.transform=`translate3d(0,0,0) scaleX(${O}) scaleY(${D})`,z.style.transitionDuration=`${t.params.speed}ms`})}h.type==="custom"&&h.renderCustom?(Ot(A,h.renderCustom(t,E+1,_)),P===0&&o("paginationRender",A)):(P===0&&o("paginationRender",A),o("paginationUpdate",A)),t.params.watchOverflow&&t.enabled&&A.classList[t.isLocked?"add":"remove"](h.lockClass)})}function v(){const b=t.params.pagination;if(l())return;const h=t.virtual&&t.params.virtual.enabled?t.virtual.slides.length:t.grid&&t.params.grid.rows>1?t.slides.length/Math.ceil(t.params.grid.rows):t.slides.length;let S=t.pagination.el;S=ne(S);let E="";if(b.type==="bullets"){let T=t.params.loop?Math.ceil(h/t.params.slidesPerGroup):t.snapGrid.length;t.params.freeMode&&t.params.freeMode.enabled&&T>h&&(T=h);for(let M=0;M<T;M+=1)b.renderBullet?E+=b.renderBullet.call(t,M,b.bulletClass):E+=`<${b.bulletElement} ${t.isElement?'part="bullet"':""} class="${b.bulletClass}"></${b.bulletElement}>`}b.type==="fraction"&&(b.renderFraction?E=b.renderFraction.call(t,b.currentClass,b.totalClass):E=`<span class="${b.currentClass}"></span> / <span class="${b.totalClass}"></span>`),b.type==="progressbar"&&(b.renderProgressbar?E=b.renderProgressbar.call(t,b.progressbarFillClass):E=`<span class="${b.progressbarFillClass}"></span>`),t.pagination.bullets=[],S.forEach(T=>{b.type!=="custom"&&Ot(T,E||""),b.type==="bullets"&&t.pagination.bullets.push(...T.querySelectorAll(Ze(b.bulletClass)))}),b.type!=="custom"&&o("paginationRender",S[0])}function g(){t.params.pagination=qo(t,t.originalParams.pagination,t.params.pagination,{el:"swiper-pagination"});const b=t.params.pagination;if(!b.el)return;let h;typeof b.el=="string"&&t.isElement&&(h=t.el.querySelector(b.el)),!h&&typeof b.el=="string"&&(h=[...document.querySelectorAll(b.el)]),h||(h=b.el),!(!h||h.length===0)&&(t.params.uniqueNavElements&&typeof b.el=="string"&&Array.isArray(h)&&h.length>1&&(h=[...t.el.querySelectorAll(b.el)],h.length>1&&(h=h.find(S=>rn(S,".swiper")[0]===t.el))),Array.isArray(h)&&h.length===1&&(h=h[0]),Object.assign(t.pagination,{el:h}),h=ne(h),h.forEach(S=>{b.type==="bullets"&&b.clickable&&S.classList.add(...(b.clickableClass||"").split(" ")),S.classList.add(b.modifierClass+b.type),S.classList.add(t.isHorizontal()?b.horizontalClass:b.verticalClass),b.type==="bullets"&&b.dynamicBullets&&(S.classList.add(`${b.modifierClass}${b.type}-dynamic`),a=0,b.dynamicMainBullets<1&&(b.dynamicMainBullets=1)),b.type==="progressbar"&&b.progressbarOpposite&&S.classList.add(b.progressbarOppositeClass),b.clickable&&S.addEventListener("click",u),t.enabled||S.classList.add(b.lockClass)}))}function m(){const b=t.params.pagination;if(l())return;let h=t.pagination.el;h&&(h=ne(h),h.forEach(S=>{S.classList.remove(b.hiddenClass),S.classList.remove(b.modifierClass+b.type),S.classList.remove(t.isHorizontal()?b.horizontalClass:b.verticalClass),b.clickable&&(S.classList.remove(...(b.clickableClass||"").split(" ")),S.removeEventListener("click",u))})),t.pagination.bullets&&t.pagination.bullets.forEach(S=>S.classList.remove(...b.bulletActiveClass.split(" ")))}r("changeDirection",()=>{if(!t.pagination||!t.pagination.el)return;const b=t.params.pagination;let{el:h}=t.pagination;h=ne(h),h.forEach(S=>{S.classList.remove(b.horizontalClass,b.verticalClass),S.classList.add(t.isHorizontal()?b.horizontalClass:b.verticalClass)})}),r("init",()=>{t.params.pagination.enabled===!1?y():(g(),v(),p())}),r("activeIndexChange",()=>{typeof t.snapIndex>"u"&&p()}),r("snapIndexChange",()=>{p()}),r("snapGridLengthChange",()=>{v(),p()}),r("destroy",()=>{m()}),r("enable disable",()=>{let{el:b}=t.pagination;b&&(b=ne(b),b.forEach(h=>h.classList[t.enabled?"remove":"add"](t.params.pagination.lockClass)))}),r("lock unlock",()=>{p()}),r("click",(b,h)=>{const S=h.target,E=ne(t.pagination.el);if(t.params.pagination.el&&t.params.pagination.hideOnClick&&E&&E.length>0&&!S.classList.contains(t.params.pagination.bulletClass)){if(t.navigation&&(t.navigation.nextEl&&S===t.navigation.nextEl||t.navigation.prevEl&&S===t.navigation.prevEl))return;const T=E[0].classList.contains(t.params.pagination.hiddenClass);o(T===!0?"paginationShow":"paginationHide"),E.forEach(M=>M.classList.toggle(t.params.pagination.hiddenClass))}});const x=()=>{t.el.classList.remove(t.params.pagination.paginationDisabledClass);let{el:b}=t.pagination;b&&(b=ne(b),b.forEach(h=>h.classList.remove(t.params.pagination.paginationDisabledClass))),g(),v(),p()},y=()=>{t.el.classList.add(t.params.pagination.paginationDisabledClass);let{el:b}=t.pagination;b&&(b=ne(b),b.forEach(h=>h.classList.add(t.params.pagination.paginationDisabledClass))),m()};Object.assign(t.pagination,{enable:x,disable:y,render:v,update:p,init:g,destroy:m})}function Bc(e){let{swiper:t,extendParams:n,on:r}=e;n({a11y:{enabled:!0,notificationClass:"swiper-notification",prevSlideMessage:"Previous slide",nextSlideMessage:"Next slide",firstSlideMessage:"This is the first slide",lastSlideMessage:"This is the last slide",paginationBulletMessage:"Go to slide {{index}}",slideLabelMessage:"{{index}} / {{slidesLength}}",containerMessage:null,containerRoleDescriptionMessage:null,containerRole:null,itemRoleDescriptionMessage:null,slideRole:"group",id:null,scrollOnFocus:!0}}),t.a11y={clicked:!1};let o=null,s,i,a=new Date().getTime();function l(k){const C=o;C.length!==0&&Ot(C,k)}function c(k){k===void 0&&(k=16);const C=()=>Math.round(16*Math.random()).toString(16);return"x".repeat(k).replace(/x/g,C)}function d(k){k=ne(k),k.forEach(C=>{C.setAttribute("tabIndex","0")})}function u(k){k=ne(k),k.forEach(C=>{C.setAttribute("tabIndex","-1")})}function p(k,C){k=ne(k),k.forEach(R=>{R.setAttribute("role",C)})}function v(k,C){k=ne(k),k.forEach(R=>{R.setAttribute("aria-roledescription",C)})}function g(k,C){k=ne(k),k.forEach(R=>{R.setAttribute("aria-controls",C)})}function m(k,C){k=ne(k),k.forEach(R=>{R.setAttribute("aria-label",C)})}function x(k,C){k=ne(k),k.forEach(R=>{R.setAttribute("id",C)})}function y(k,C){k=ne(k),k.forEach(R=>{R.setAttribute("aria-live",C)})}function b(k){k=ne(k),k.forEach(C=>{C.setAttribute("aria-disabled",!0)})}function h(k){k=ne(k),k.forEach(C=>{C.setAttribute("aria-disabled",!1)})}function S(k){if(k.keyCode!==13&&k.keyCode!==32)return;const C=t.params.a11y,R=k.target;if(!(t.pagination&&t.pagination.el&&(R===t.pagination.el||t.pagination.el.contains(k.target))&&!k.target.matches(Ze(t.params.pagination.bulletClass)))){if(t.navigation&&t.navigation.prevEl&&t.navigation.nextEl){const H=ne(t.navigation.prevEl);ne(t.navigation.nextEl).includes(R)&&(t.isEnd&&!t.params.loop||t.slideNext(),t.isEnd?l(C.lastSlideMessage):l(C.nextSlideMessage)),H.includes(R)&&(t.isBeginning&&!t.params.loop||t.slidePrev(),t.isBeginning?l(C.firstSlideMessage):l(C.prevSlideMessage))}t.pagination&&R.matches(Ze(t.params.pagination.bulletClass))&&R.click()}}function E(){if(t.params.loop||t.params.rewind||!t.navigation)return;const{nextEl:k,prevEl:C}=t.navigation;C&&(t.isBeginning?(b(C),u(C)):(h(C),d(C))),k&&(t.isEnd?(b(k),u(k)):(h(k),d(k)))}function T(){return t.pagination&&t.pagination.bullets&&t.pagination.bullets.length}function M(){return T()&&t.params.pagination.clickable}function _(){const k=t.params.a11y;T()&&t.pagination.bullets.forEach(C=>{t.params.pagination.clickable&&(d(C),t.params.pagination.renderBullet||(p(C,"button"),m(C,k.paginationBulletMessage.replace(/\{\{index\}\}/,It(C)+1)))),C.matches(Ze(t.params.pagination.bulletActiveClass))?C.setAttribute("aria-current","true"):C.removeAttribute("aria-current")})}const A=(k,C,R)=>{d(k),k.tagName!=="BUTTON"&&(p(k,"button"),k.addEventListener("keydown",S)),m(k,R),g(k,C)},P=k=>{i&&i!==k.target&&!i.contains(k.target)&&(s=!0),t.a11y.clicked=!0},N=()=>{s=!1,requestAnimationFrame(()=>{requestAnimationFrame(()=>{t.destroyed||(t.a11y.clicked=!1)})})},L=k=>{a=new Date().getTime()},O=k=>{if(t.a11y.clicked||!t.params.a11y.scrollOnFocus||new Date().getTime()-a<100)return;const C=k.target.closest(`.${t.params.slideClass}, swiper-slide`);if(!C||!t.slides.includes(C))return;i=C;const R=t.slides.indexOf(C)===t.activeIndex,H=t.params.watchSlidesProgress&&t.visibleSlides&&t.visibleSlides.includes(C);R||H||k.sourceCapabilities&&k.sourceCapabilities.firesTouchEvents||(t.isHorizontal()?t.el.scrollLeft=0:t.el.scrollTop=0,requestAnimationFrame(()=>{s||(t.params.loop?t.slideToLoop(t.getSlideIndexWhenGrid(parseInt(C.getAttribute("data-swiper-slide-index"))),0):t.slideTo(t.getSlideIndexWhenGrid(t.slides.indexOf(C)),0),s=!1)}))},D=()=>{const k=t.params.a11y;k.itemRoleDescriptionMessage&&v(t.slides,k.itemRoleDescriptionMessage),k.slideRole&&p(t.slides,k.slideRole);const C=t.slides.length;k.slideLabelMessage&&t.slides.forEach((R,H)=>{const I=t.params.loop?parseInt(R.getAttribute("data-swiper-slide-index"),10):H,G=k.slideLabelMessage.replace(/\{\{index\}\}/,I+1).replace(/\{\{slidesLength\}\}/,C);m(R,G)})},z=()=>{const k=t.params.a11y;t.el.append(o);const C=t.el;k.containerRoleDescriptionMessage&&v(C,k.containerRoleDescriptionMessage),k.containerMessage&&m(C,k.containerMessage),k.containerRole&&p(C,k.containerRole);const R=t.wrapperEl,H=k.id||R.getAttribute("id")||`swiper-wrapper-${c(16)}`,I=t.params.autoplay&&t.params.autoplay.enabled?"off":"polite";x(R,H),y(R,I),D();let{nextEl:G,prevEl:q}=t.navigation?t.navigation:{};G=ne(G),q=ne(q),G&&G.forEach(se=>A(se,H,k.nextSlideMessage)),q&&q.forEach(se=>A(se,H,k.prevSlideMessage)),M()&&ne(t.pagination.el).forEach(ae=>{ae.addEventListener("keydown",S)}),Me().addEventListener("visibilitychange",L),t.el.addEventListener("focus",O,!0),t.el.addEventListener("focus",O,!0),t.el.addEventListener("pointerdown",P,!0),t.el.addEventListener("pointerup",N,!0)};function j(){o&&o.remove();let{nextEl:k,prevEl:C}=t.navigation?t.navigation:{};k=ne(k),C=ne(C),k&&k.forEach(H=>H.removeEventListener("keydown",S)),C&&C.forEach(H=>H.removeEventListener("keydown",S)),M()&&ne(t.pagination.el).forEach(I=>{I.removeEventListener("keydown",S)}),Me().removeEventListener("visibilitychange",L),t.el&&typeof t.el!="string"&&(t.el.removeEventListener("focus",O,!0),t.el.removeEventListener("pointerdown",P,!0),t.el.removeEventListener("pointerup",N,!0))}r("beforeInit",()=>{o=Nt("span",t.params.a11y.notificationClass),o.setAttribute("aria-live","assertive"),o.setAttribute("aria-atomic","true")}),r("afterInit",()=>{t.params.a11y.enabled&&z()}),r("slidesLengthChange snapGridLengthChange slidesGridLengthChange",()=>{t.params.a11y.enabled&&D()}),r("fromEdge toEdge afterInit lock unlock",()=>{t.params.a11y.enabled&&E()}),r("paginationUpdate",()=>{t.params.a11y.enabled&&_()}),r("destroy",()=>{t.params.a11y.enabled&&j()})}function Fc(e){let{swiper:t,extendParams:n,emit:r,once:o}=e;n({freeMode:{enabled:!1,momentum:!0,momentumRatio:1,momentumBounce:!0,momentumBounceRatio:1,momentumVelocityRatio:1,sticky:!1,minimumVelocity:.02}});function s(){if(t.params.cssMode)return;const l=t.getTranslate();t.setTranslate(l),t.setTransition(0),t.touchEventsData.velocities.length=0,t.freeMode.onTouchEnd({currentPos:t.rtl?t.translate:-t.translate})}function i(){if(t.params.cssMode)return;const{touchEventsData:l,touches:c}=t;l.velocities.length===0&&l.velocities.push({position:c[t.isHorizontal()?"startX":"startY"],time:l.touchStartTime}),l.velocities.push({position:c[t.isHorizontal()?"currentX":"currentY"],time:_e()})}function a(l){let{currentPos:c}=l;if(t.params.cssMode)return;const{params:d,wrapperEl:u,rtlTranslate:p,snapGrid:v,touchEventsData:g}=t,x=_e()-g.touchStartTime;if(c<-t.minTranslate()){t.slideTo(t.activeIndex);return}if(c>-t.maxTranslate()){t.slides.length<v.length?t.slideTo(v.length-1):t.slideTo(t.slides.length-1);return}if(d.freeMode.momentum){if(g.velocities.length>1){const _=g.velocities.pop(),A=g.velocities.pop(),P=_.position-A.position,N=_.time-A.time;t.velocity=P/N,t.velocity/=2,Math.abs(t.velocity)<d.freeMode.minimumVelocity&&(t.velocity=0),(N>150||_e()-_.time>300)&&(t.velocity=0)}else t.velocity=0;t.velocity*=d.freeMode.momentumVelocityRatio,g.velocities.length=0;let y=1e3*d.freeMode.momentumRatio;const b=t.velocity*y;let h=t.translate+b;p&&(h=-h);let S=!1,E;const T=Math.abs(t.velocity)*20*d.freeMode.momentumBounceRatio;let M;if(h<t.maxTranslate())d.freeMode.momentumBounce?(h+t.maxTranslate()<-T&&(h=t.maxTranslate()-T),E=t.maxTranslate(),S=!0,g.allowMomentumBounce=!0):h=t.maxTranslate(),d.loop&&d.centeredSlides&&(M=!0);else if(h>t.minTranslate())d.freeMode.momentumBounce?(h-t.minTranslate()>T&&(h=t.minTranslate()+T),E=t.minTranslate(),S=!0,g.allowMomentumBounce=!0):h=t.minTranslate(),d.loop&&d.centeredSlides&&(M=!0);else if(d.freeMode.sticky){let _;for(let A=0;A<v.length;A+=1)if(v[A]>-h){_=A;break}Math.abs(v[_]-h)<Math.abs(v[_-1]-h)||t.swipeDirection==="next"?h=v[_]:h=v[_-1],h=-h}if(M&&o("transitionEnd",()=>{t.loopFix()}),t.velocity!==0){if(p?y=Math.abs((-h-t.translate)/t.velocity):y=Math.abs((h-t.translate)/t.velocity),d.freeMode.sticky){const _=Math.abs((p?-h:h)-t.translate),A=t.slidesSizesGrid[t.activeIndex];_<A?y=d.speed:_<2*A?y=d.speed*1.5:y=d.speed*2.5}}else if(d.freeMode.sticky){t.slideToClosest();return}d.freeMode.momentumBounce&&S?(t.updateProgress(E),t.setTransition(y),t.setTranslate(h),t.transitionStart(!0,t.swipeDirection),t.animating=!0,Un(u,()=>{!t||t.destroyed||!g.allowMomentumBounce||(r("momentumBounce"),t.setTransition(d.speed),setTimeout(()=>{t.setTranslate(E),Un(u,()=>{!t||t.destroyed||t.transitionEnd()})},0))})):t.velocity?(r("_freeModeNoMomentumRelease"),t.updateProgress(h),t.setTransition(y),t.setTranslate(h),t.transitionStart(!0,t.swipeDirection),t.animating||(t.animating=!0,Un(u,()=>{!t||t.destroyed||t.transitionEnd()}))):t.updateProgress(h),t.updateActiveIndex(),t.updateSlidesClasses()}else if(d.freeMode.sticky){t.slideToClosest();return}else d.freeMode&&r("_freeModeNoMomentumRelease");(!d.freeMode.momentum||x>=d.longSwipesMs)&&(r("_freeModeStaticRelease"),t.updateProgress(),t.updateActiveIndex(),t.updateSlidesClasses())}Object.assign(t,{freeMode:{onTouchStart:s,onTouchMove:i,onTouchEnd:a}})}let qn;function Vc(){const e=he(),t=Me();return{smoothScroll:t.documentElement&&t.documentElement.style&&"scrollBehavior"in t.documentElement.style,touch:!!("ontouchstart"in e||e.DocumentTouch&&t instanceof e.DocumentTouch)}}function Xo(){return qn||(qn=Vc()),qn}let Xn;function Hc(e){let{userAgent:t}=e===void 0?{}:e;const n=Xo(),r=he(),o=r.navigator.platform,s=t||r.navigator.userAgent,i={ios:!1,android:!1},a=r.screen.width,l=r.screen.height,c=s.match(/(Android);?[\s\/]+([\d.]+)?/);let d=s.match(/(iPad).*OS\s([\d_]+)/);const u=s.match(/(iPod)(.*OS\s([\d_]+))?/),p=!d&&s.match(/(iPhone\sOS|iOS)\s([\d_]+)/),v=o==="Win32";let g=o==="MacIntel";const m=["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"];return!d&&g&&n.touch&&m.indexOf(`${a}x${l}`)>=0&&(d=s.match(/(Version)\/([\d.]+)/),d||(d=[0,1,"13_0_0"]),g=!1),c&&!v&&(i.os="android",i.android=!0),(d||p||u)&&(i.os="ios",i.ios=!0),i}function Ko(e){return e===void 0&&(e={}),Xn||(Xn=Hc(e)),Xn}let Kn;function Wc(){const e=he(),t=Ko();let n=!1;function r(){const a=e.navigator.userAgent.toLowerCase();return a.indexOf("safari")>=0&&a.indexOf("chrome")<0&&a.indexOf("android")<0}if(r()){const a=String(e.navigator.userAgent);if(a.includes("Version/")){const[l,c]=a.split("Version/")[1].split(" ")[0].split(".").map(d=>Number(d));n=l<16||l===16&&c<2}}const o=/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(e.navigator.userAgent),s=r(),i=s||o&&t.ios;return{isSafari:n||s,needPerspectiveFix:n,need3dFix:i,isWebView:o}}function Zo(){return Kn||(Kn=Wc()),Kn}function Gc(e){let{swiper:t,on:n,emit:r}=e;const o=he();let s=null,i=null;const a=()=>{!t||t.destroyed||!t.initialized||(r("beforeResize"),r("resize"))},l=()=>{!t||t.destroyed||!t.initialized||(s=new ResizeObserver(u=>{i=o.requestAnimationFrame(()=>{const{width:p,height:v}=t;let g=p,m=v;u.forEach(x=>{let{contentBoxSize:y,contentRect:b,target:h}=x;h&&h!==t.el||(g=b?b.width:(y[0]||y).inlineSize,m=b?b.height:(y[0]||y).blockSize)}),(g!==p||m!==v)&&a()})}),s.observe(t.el))},c=()=>{i&&o.cancelAnimationFrame(i),s&&s.unobserve&&t.el&&(s.unobserve(t.el),s=null)},d=()=>{!t||t.destroyed||!t.initialized||r("orientationchange")};n("init",()=>{if(t.params.resizeObserver&&typeof o.ResizeObserver<"u"){l();return}o.addEventListener("resize",a),o.addEventListener("orientationchange",d)}),n("destroy",()=>{c(),o.removeEventListener("resize",a),o.removeEventListener("orientationchange",d)})}function Uc(e){let{swiper:t,extendParams:n,on:r,emit:o}=e;const s=[],i=he(),a=function(d,u){u===void 0&&(u={});const p=i.MutationObserver||i.WebkitMutationObserver,v=new p(g=>{if(t.__preventObserver__)return;if(g.length===1){o("observerUpdate",g[0]);return}const m=function(){o("observerUpdate",g[0])};i.requestAnimationFrame?i.requestAnimationFrame(m):i.setTimeout(m,0)});v.observe(d,{attributes:typeof u.attributes>"u"?!0:u.attributes,childList:t.isElement||(typeof u.childList>"u"?!0:u).childList,characterData:typeof u.characterData>"u"?!0:u.characterData}),s.push(v)},l=()=>{if(t.params.observer){if(t.params.observeParents){const d=rn(t.hostEl);for(let u=0;u<d.length;u+=1)a(d[u])}a(t.hostEl,{childList:t.params.observeSlideChildren}),a(t.wrapperEl,{attributes:!1})}},c=()=>{s.forEach(d=>{d.disconnect()}),s.splice(0,s.length)};n({observer:!1,observeParents:!1,observeSlideChildren:!1}),r("init",l),r("destroy",c)}var Yc={on(e,t,n){const r=this;if(!r.eventsListeners||r.destroyed||typeof t!="function")return r;const o=n?"unshift":"push";return e.split(" ").forEach(s=>{r.eventsListeners[s]||(r.eventsListeners[s]=[]),r.eventsListeners[s][o](t)}),r},once(e,t,n){const r=this;if(!r.eventsListeners||r.destroyed||typeof t!="function")return r;function o(){r.off(e,o),o.__emitterProxy&&delete o.__emitterProxy;for(var s=arguments.length,i=new Array(s),a=0;a<s;a++)i[a]=arguments[a];t.apply(r,i)}return o.__emitterProxy=t,r.on(e,o,n)},onAny(e,t){const n=this;if(!n.eventsListeners||n.destroyed||typeof e!="function")return n;const r=t?"unshift":"push";return n.eventsAnyListeners.indexOf(e)<0&&n.eventsAnyListeners[r](e),n},offAny(e){const t=this;if(!t.eventsListeners||t.destroyed||!t.eventsAnyListeners)return t;const n=t.eventsAnyListeners.indexOf(e);return n>=0&&t.eventsAnyListeners.splice(n,1),t},off(e,t){const n=this;return!n.eventsListeners||n.destroyed||!n.eventsListeners||e.split(" ").forEach(r=>{typeof t>"u"?n.eventsListeners[r]=[]:n.eventsListeners[r]&&n.eventsListeners[r].forEach((o,s)=>{(o===t||o.__emitterProxy&&o.__emitterProxy===t)&&n.eventsListeners[r].splice(s,1)})}),n},emit(){const e=this;if(!e.eventsListeners||e.destroyed||!e.eventsListeners)return e;let t,n,r;for(var o=arguments.length,s=new Array(o),i=0;i<o;i++)s[i]=arguments[i];return typeof s[0]=="string"||Array.isArray(s[0])?(t=s[0],n=s.slice(1,s.length),r=e):(t=s[0].events,n=s[0].data,r=s[0].context||e),n.unshift(r),(Array.isArray(t)?t:t.split(" ")).forEach(l=>{e.eventsAnyListeners&&e.eventsAnyListeners.length&&e.eventsAnyListeners.forEach(c=>{c.apply(r,[l,...n])}),e.eventsListeners&&e.eventsListeners[l]&&e.eventsListeners[l].forEach(c=>{c.apply(r,n)})}),e}};function qc(){const e=this;let t,n;const r=e.el;typeof e.params.width<"u"&&e.params.width!==null?t=e.params.width:t=r.clientWidth,typeof e.params.height<"u"&&e.params.height!==null?n=e.params.height:n=r.clientHeight,!(t===0&&e.isHorizontal()||n===0&&e.isVertical())&&(t=t-parseInt(Ke(r,"padding-left")||0,10)-parseInt(Ke(r,"padding-right")||0,10),n=n-parseInt(Ke(r,"padding-top")||0,10)-parseInt(Ke(r,"padding-bottom")||0,10),Number.isNaN(t)&&(t=0),Number.isNaN(n)&&(n=0),Object.assign(e,{width:t,height:n,size:e.isHorizontal()?t:n}))}function Xc(){const e=this;function t(P,N){return parseFloat(P.getPropertyValue(e.getDirectionLabel(N))||0)}const n=e.params,{wrapperEl:r,slidesEl:o,size:s,rtlTranslate:i,wrongRTL:a}=e,l=e.virtual&&n.virtual.enabled,c=l?e.virtual.slides.length:e.slides.length,d=Re(o,`.${e.params.slideClass}, swiper-slide`),u=l?e.virtual.slides.length:d.length;let p=[];const v=[],g=[];let m=n.slidesOffsetBefore;typeof m=="function"&&(m=n.slidesOffsetBefore.call(e));let x=n.slidesOffsetAfter;typeof x=="function"&&(x=n.slidesOffsetAfter.call(e));const y=e.snapGrid.length,b=e.slidesGrid.length;let h=n.spaceBetween,S=-m,E=0,T=0;if(typeof s>"u")return;typeof h=="string"&&h.indexOf("%")>=0?h=parseFloat(h.replace("%",""))/100*s:typeof h=="string"&&(h=parseFloat(h)),e.virtualSize=-h,d.forEach(P=>{i?P.style.marginLeft="":P.style.marginRight="",P.style.marginBottom="",P.style.marginTop=""}),n.centeredSlides&&n.cssMode&&(tn(r,"--swiper-centered-offset-before",""),tn(r,"--swiper-centered-offset-after",""));const M=n.grid&&n.grid.rows>1&&e.grid;M?e.grid.initSlides(d):e.grid&&e.grid.unsetSlides();let _;const A=n.slidesPerView==="auto"&&n.breakpoints&&Object.keys(n.breakpoints).filter(P=>typeof n.breakpoints[P].slidesPerView<"u").length>0;for(let P=0;P<u;P+=1){_=0;let N;if(d[P]&&(N=d[P]),M&&e.grid.updateSlide(P,N,d),!(d[P]&&Ke(N,"display")==="none")){if(n.slidesPerView==="auto"){A&&(d[P].style[e.getDirectionLabel("width")]="");const L=getComputedStyle(N),O=N.style.transform,D=N.style.webkitTransform;if(O&&(N.style.transform="none"),D&&(N.style.webkitTransform="none"),n.roundLengths)_=e.isHorizontal()?Yn(N,"width",!0):Yn(N,"height",!0);else{const z=t(L,"width"),j=t(L,"padding-left"),k=t(L,"padding-right"),C=t(L,"margin-left"),R=t(L,"margin-right"),H=L.getPropertyValue("box-sizing");if(H&&H==="border-box")_=z+C+R;else{const{clientWidth:I,offsetWidth:G}=N;_=z+j+k+C+R+(G-I)}}O&&(N.style.transform=O),D&&(N.style.webkitTransform=D),n.roundLengths&&(_=Math.floor(_))}else _=(s-(n.slidesPerView-1)*h)/n.slidesPerView,n.roundLengths&&(_=Math.floor(_)),d[P]&&(d[P].style[e.getDirectionLabel("width")]=`${_}px`);d[P]&&(d[P].swiperSlideSize=_),g.push(_),n.centeredSlides?(S=S+_/2+E/2+h,E===0&&P!==0&&(S=S-s/2-h),P===0&&(S=S-s/2-h),Math.abs(S)<1/1e3&&(S=0),n.roundLengths&&(S=Math.floor(S)),T%n.slidesPerGroup===0&&p.push(S),v.push(S)):(n.roundLengths&&(S=Math.floor(S)),(T-Math.min(e.params.slidesPerGroupSkip,T))%e.params.slidesPerGroup===0&&p.push(S),v.push(S),S=S+_+h),e.virtualSize+=_+h,E=_,T+=1}}if(e.virtualSize=Math.max(e.virtualSize,s)+x,i&&a&&(n.effect==="slide"||n.effect==="coverflow")&&(r.style.width=`${e.virtualSize+h}px`),n.setWrapperSize&&(r.style[e.getDirectionLabel("width")]=`${e.virtualSize+h}px`),M&&e.grid.updateWrapperSize(_,p),!n.centeredSlides){const P=[];for(let N=0;N<p.length;N+=1){let L=p[N];n.roundLengths&&(L=Math.floor(L)),p[N]<=e.virtualSize-s&&P.push(L)}p=P,Math.floor(e.virtualSize-s)-Math.floor(p[p.length-1])>1&&p.push(e.virtualSize-s)}if(l&&n.loop){const P=g[0]+h;if(n.slidesPerGroup>1){const N=Math.ceil((e.virtual.slidesBefore+e.virtual.slidesAfter)/n.slidesPerGroup),L=P*n.slidesPerGroup;for(let O=0;O<N;O+=1)p.push(p[p.length-1]+L)}for(let N=0;N<e.virtual.slidesBefore+e.virtual.slidesAfter;N+=1)n.slidesPerGroup===1&&p.push(p[p.length-1]+P),v.push(v[v.length-1]+P),e.virtualSize+=P}if(p.length===0&&(p=[0]),h!==0){const P=e.isHorizontal()&&i?"marginLeft":e.getDirectionLabel("marginRight");d.filter((N,L)=>!n.cssMode||n.loop?!0:L!==d.length-1).forEach(N=>{N.style[P]=`${h}px`})}if(n.centeredSlides&&n.centeredSlidesBounds){let P=0;g.forEach(L=>{P+=L+(h||0)}),P-=h;const N=P>s?P-s:0;p=p.map(L=>L<=0?-m:L>N?N+x:L)}if(n.centerInsufficientSlides){let P=0;g.forEach(L=>{P+=L+(h||0)}),P-=h;const N=(n.slidesOffsetBefore||0)+(n.slidesOffsetAfter||0);if(P+N<s){const L=(s-P-N)/2;p.forEach((O,D)=>{p[D]=O-L}),v.forEach((O,D)=>{v[D]=O+L})}}if(Object.assign(e,{slides:d,snapGrid:p,slidesGrid:v,slidesSizesGrid:g}),n.centeredSlides&&n.cssMode&&!n.centeredSlidesBounds){tn(r,"--swiper-centered-offset-before",`${-p[0]}px`),tn(r,"--swiper-centered-offset-after",`${e.size/2-g[g.length-1]/2}px`);const P=-e.snapGrid[0],N=-e.slidesGrid[0];e.snapGrid=e.snapGrid.map(L=>L+P),e.slidesGrid=e.slidesGrid.map(L=>L+N)}if(u!==c&&e.emit("slidesLengthChange"),p.length!==y&&(e.params.watchOverflow&&e.checkOverflow(),e.emit("snapGridLengthChange")),v.length!==b&&e.emit("slidesGridLengthChange"),n.watchSlidesProgress&&e.updateSlidesOffset(),e.emit("slidesUpdated"),!l&&!n.cssMode&&(n.effect==="slide"||n.effect==="fade")){const P=`${n.containerModifierClass}backface-hidden`,N=e.el.classList.contains(P);u<=n.maxBackfaceHiddenSlides?N||e.el.classList.add(P):N&&e.el.classList.remove(P)}}function Kc(e){const t=this,n=[],r=t.virtual&&t.params.virtual.enabled;let o=0,s;typeof e=="number"?t.setTransition(e):e===!0&&t.setTransition(t.params.speed);const i=a=>r?t.slides[t.getSlideIndexByData(a)]:t.slides[a];if(t.params.slidesPerView!=="auto"&&t.params.slidesPerView>1)if(t.params.centeredSlides)(t.visibleSlides||[]).forEach(a=>{n.push(a)});else for(s=0;s<Math.ceil(t.params.slidesPerView);s+=1){const a=t.activeIndex+s;if(a>t.slides.length&&!r)break;n.push(i(a))}else n.push(i(t.activeIndex));for(s=0;s<n.length;s+=1)if(typeof n[s]<"u"){const a=n[s].offsetHeight;o=a>o?a:o}(o||o===0)&&(t.wrapperEl.style.height=`${o}px`)}function Zc(){const e=this,t=e.slides,n=e.isElement?e.isHorizontal()?e.wrapperEl.offsetLeft:e.wrapperEl.offsetTop:0;for(let r=0;r<t.length;r+=1)t[r].swiperSlideOffset=(e.isHorizontal()?t[r].offsetLeft:t[r].offsetTop)-n-e.cssOverflowAdjustment()}const Jo=(e,t,n)=>{t&&!e.classList.contains(n)?e.classList.add(n):!t&&e.classList.contains(n)&&e.classList.remove(n)};function Jc(e){e===void 0&&(e=this&&this.translate||0);const t=this,n=t.params,{slides:r,rtlTranslate:o,snapGrid:s}=t;if(r.length===0)return;typeof r[0].swiperSlideOffset>"u"&&t.updateSlidesOffset();let i=-e;o&&(i=e),t.visibleSlidesIndexes=[],t.visibleSlides=[];let a=n.spaceBetween;typeof a=="string"&&a.indexOf("%")>=0?a=parseFloat(a.replace("%",""))/100*t.size:typeof a=="string"&&(a=parseFloat(a));for(let l=0;l<r.length;l+=1){const c=r[l];let d=c.swiperSlideOffset;n.cssMode&&n.centeredSlides&&(d-=r[0].swiperSlideOffset);const u=(i+(n.centeredSlides?t.minTranslate():0)-d)/(c.swiperSlideSize+a),p=(i-s[0]+(n.centeredSlides?t.minTranslate():0)-d)/(c.swiperSlideSize+a),v=-(i-d),g=v+t.slidesSizesGrid[l],m=v>=0&&v<=t.size-t.slidesSizesGrid[l],x=v>=0&&v<t.size-1||g>1&&g<=t.size||v<=0&&g>=t.size;x&&(t.visibleSlides.push(c),t.visibleSlidesIndexes.push(l)),Jo(c,x,n.slideVisibleClass),Jo(c,m,n.slideFullyVisibleClass),c.progress=o?-u:u,c.originalProgress=o?-p:p}}function Qc(e){const t=this;if(typeof e>"u"){const d=t.rtlTranslate?-1:1;e=t&&t.translate&&t.translate*d||0}const n=t.params,r=t.maxTranslate()-t.minTranslate();let{progress:o,isBeginning:s,isEnd:i,progressLoop:a}=t;const l=s,c=i;if(r===0)o=0,s=!0,i=!0;else{o=(e-t.minTranslate())/r;const d=Math.abs(e-t.minTranslate())<1,u=Math.abs(e-t.maxTranslate())<1;s=d||o<=0,i=u||o>=1,d&&(o=0),u&&(o=1)}if(n.loop){const d=t.getSlideIndexByData(0),u=t.getSlideIndexByData(t.slides.length-1),p=t.slidesGrid[d],v=t.slidesGrid[u],g=t.slidesGrid[t.slidesGrid.length-1],m=Math.abs(e);m>=p?a=(m-p)/g:a=(m+g-v)/g,a>1&&(a-=1)}Object.assign(t,{progress:o,progressLoop:a,isBeginning:s,isEnd:i}),(n.watchSlidesProgress||n.centeredSlides&&n.autoHeight)&&t.updateSlidesProgress(e),s&&!l&&t.emit("reachBeginning toEdge"),i&&!c&&t.emit("reachEnd toEdge"),(l&&!s||c&&!i)&&t.emit("fromEdge"),t.emit("progress",o)}const Zn=(e,t,n)=>{t&&!e.classList.contains(n)?e.classList.add(n):!t&&e.classList.contains(n)&&e.classList.remove(n)};function ed(){const e=this,{slides:t,params:n,slidesEl:r,activeIndex:o}=e,s=e.virtual&&n.virtual.enabled,i=e.grid&&n.grid&&n.grid.rows>1,a=u=>Re(r,`.${n.slideClass}${u}, swiper-slide${u}`)[0];let l,c,d;if(s)if(n.loop){let u=o-e.virtual.slidesBefore;u<0&&(u=e.virtual.slides.length+u),u>=e.virtual.slides.length&&(u-=e.virtual.slides.length),l=a(`[data-swiper-slide-index="${u}"]`)}else l=a(`[data-swiper-slide-index="${o}"]`);else i?(l=t.find(u=>u.column===o),d=t.find(u=>u.column===o+1),c=t.find(u=>u.column===o-1)):l=t[o];l&&(i||(d=Lc(l,`.${n.slideClass}, swiper-slide`)[0],n.loop&&!d&&(d=t[0]),c=Rc(l,`.${n.slideClass}, swiper-slide`)[0],n.loop&&!c===0&&(c=t[t.length-1]))),t.forEach(u=>{Zn(u,u===l,n.slideActiveClass),Zn(u,u===d,n.slideNextClass),Zn(u,u===c,n.slidePrevClass)}),e.emitSlidesClasses()}const on=(e,t)=>{if(!e||e.destroyed||!e.params)return;const n=()=>e.isElement?"swiper-slide":`.${e.params.slideClass}`,r=t.closest(n());if(r){let o=r.querySelector(`.${e.params.lazyPreloaderClass}`);!o&&e.isElement&&(r.shadowRoot?o=r.shadowRoot.querySelector(`.${e.params.lazyPreloaderClass}`):requestAnimationFrame(()=>{r.shadowRoot&&(o=r.shadowRoot.querySelector(`.${e.params.lazyPreloaderClass}`),o&&o.remove())})),o&&o.remove()}},Jn=(e,t)=>{if(!e.slides[t])return;const n=e.slides[t].querySelector('[loading="lazy"]');n&&n.removeAttribute("loading")},Qn=e=>{if(!e||e.destroyed||!e.params)return;let t=e.params.lazyPreloadPrevNext;const n=e.slides.length;if(!n||!t||t<0)return;t=Math.min(t,n);const r=e.params.slidesPerView==="auto"?e.slidesPerViewDynamic():Math.ceil(e.params.slidesPerView),o=e.activeIndex;if(e.params.grid&&e.params.grid.rows>1){const i=o,a=[i-t];a.push(...Array.from({length:t}).map((l,c)=>i+r+c)),e.slides.forEach((l,c)=>{a.includes(l.column)&&Jn(e,c)});return}const s=o+r-1;if(e.params.rewind||e.params.loop)for(let i=o-t;i<=s+t;i+=1){const a=(i%n+n)%n;(a<o||a>s)&&Jn(e,a)}else for(let i=Math.max(o-t,0);i<=Math.min(s+t,n-1);i+=1)i!==o&&(i>s||i<o)&&Jn(e,i)};function td(e){const{slidesGrid:t,params:n}=e,r=e.rtlTranslate?e.translate:-e.translate;let o;for(let s=0;s<t.length;s+=1)typeof t[s+1]<"u"?r>=t[s]&&r<t[s+1]-(t[s+1]-t[s])/2?o=s:r>=t[s]&&r<t[s+1]&&(o=s+1):r>=t[s]&&(o=s);return n.normalizeSlideIndex&&(o<0||typeof o>"u")&&(o=0),o}function nd(e){const t=this,n=t.rtlTranslate?t.translate:-t.translate,{snapGrid:r,params:o,activeIndex:s,realIndex:i,snapIndex:a}=t;let l=e,c;const d=v=>{let g=v-t.virtual.slidesBefore;return g<0&&(g=t.virtual.slides.length+g),g>=t.virtual.slides.length&&(g-=t.virtual.slides.length),g};if(typeof l>"u"&&(l=td(t)),r.indexOf(n)>=0)c=r.indexOf(n);else{const v=Math.min(o.slidesPerGroupSkip,l);c=v+Math.floor((l-v)/o.slidesPerGroup)}if(c>=r.length&&(c=r.length-1),l===s&&!t.params.loop){c!==a&&(t.snapIndex=c,t.emit("snapIndexChange"));return}if(l===s&&t.params.loop&&t.virtual&&t.params.virtual.enabled){t.realIndex=d(l);return}const u=t.grid&&o.grid&&o.grid.rows>1;let p;if(t.virtual&&o.virtual.enabled&&o.loop)p=d(l);else if(u){const v=t.slides.find(m=>m.column===l);let g=parseInt(v.getAttribute("data-swiper-slide-index"),10);Number.isNaN(g)&&(g=Math.max(t.slides.indexOf(v),0)),p=Math.floor(g/o.grid.rows)}else if(t.slides[l]){const v=t.slides[l].getAttribute("data-swiper-slide-index");v?p=parseInt(v,10):p=l}else p=l;Object.assign(t,{previousSnapIndex:a,snapIndex:c,previousRealIndex:i,realIndex:p,previousIndex:s,activeIndex:l}),t.initialized&&Qn(t),t.emit("activeIndexChange"),t.emit("snapIndexChange"),(t.initialized||t.params.runCallbacksOnInit)&&(i!==p&&t.emit("realIndexChange"),t.emit("slideChange"))}function rd(e,t){const n=this,r=n.params;let o=e.closest(`.${r.slideClass}, swiper-slide`);!o&&n.isElement&&t&&t.length>1&&t.includes(e)&&[...t.slice(t.indexOf(e)+1,t.length)].forEach(a=>{!o&&a.matches&&a.matches(`.${r.slideClass}, swiper-slide`)&&(o=a)});let s=!1,i;if(o){for(let a=0;a<n.slides.length;a+=1)if(n.slides[a]===o){s=!0,i=a;break}}if(o&&s)n.clickedSlide=o,n.virtual&&n.params.virtual.enabled?n.clickedIndex=parseInt(o.getAttribute("data-swiper-slide-index"),10):n.clickedIndex=i;else{n.clickedSlide=void 0,n.clickedIndex=void 0;return}r.slideToClickedSlide&&n.clickedIndex!==void 0&&n.clickedIndex!==n.activeIndex&&n.slideToClickedSlide()}var od={updateSize:qc,updateSlides:Xc,updateAutoHeight:Kc,updateSlidesOffset:Zc,updateSlidesProgress:Jc,updateProgress:Qc,updateSlidesClasses:ed,updateActiveIndex:nd,updateClickedSlide:rd};function sd(e){e===void 0&&(e=this.isHorizontal()?"x":"y");const t=this,{params:n,rtlTranslate:r,translate:o,wrapperEl:s}=t;if(n.virtualTranslate)return r?-o:o;if(n.cssMode)return o;let i=Mc(s,e);return i+=t.cssOverflowAdjustment(),r&&(i=-i),i||0}function id(e,t){const n=this,{rtlTranslate:r,params:o,wrapperEl:s,progress:i}=n;let a=0,l=0;const c=0;n.isHorizontal()?a=r?-e:e:l=e,o.roundLengths&&(a=Math.floor(a),l=Math.floor(l)),n.previousTranslate=n.translate,n.translate=n.isHorizontal()?a:l,o.cssMode?s[n.isHorizontal()?"scrollLeft":"scrollTop"]=n.isHorizontal()?-a:-l:o.virtualTranslate||(n.isHorizontal()?a-=n.cssOverflowAdjustment():l-=n.cssOverflowAdjustment(),s.style.transform=`translate3d(${a}px, ${l}px, ${c}px)`);let d;const u=n.maxTranslate()-n.minTranslate();u===0?d=0:d=(e-n.minTranslate())/u,d!==i&&n.updateProgress(e),n.emit("setTranslate",n.translate,t)}function ad(){return-this.snapGrid[0]}function ld(){return-this.snapGrid[this.snapGrid.length-1]}function cd(e,t,n,r,o){e===void 0&&(e=0),t===void 0&&(t=this.params.speed),n===void 0&&(n=!0),r===void 0&&(r=!0);const s=this,{params:i,wrapperEl:a}=s;if(s.animating&&i.preventInteractionOnTransition)return!1;const l=s.minTranslate(),c=s.maxTranslate();let d;if(r&&e>l?d=l:r&&e<c?d=c:d=e,s.updateProgress(d),i.cssMode){const u=s.isHorizontal();if(t===0)a[u?"scrollLeft":"scrollTop"]=-d;else{if(!s.support.smoothScroll)return Yo({swiper:s,targetPosition:-d,side:u?"left":"top"}),!0;a.scrollTo({[u?"left":"top"]:-d,behavior:"smooth"})}return!0}return t===0?(s.setTransition(0),s.setTranslate(d),n&&(s.emit("beforeTransitionStart",t,o),s.emit("transitionEnd"))):(s.setTransition(t),s.setTranslate(d),n&&(s.emit("beforeTransitionStart",t,o),s.emit("transitionStart")),s.animating||(s.animating=!0,s.onTranslateToWrapperTransitionEnd||(s.onTranslateToWrapperTransitionEnd=function(p){!s||s.destroyed||p.target===this&&(s.wrapperEl.removeEventListener("transitionend",s.onTranslateToWrapperTransitionEnd),s.onTranslateToWrapperTransitionEnd=null,delete s.onTranslateToWrapperTransitionEnd,s.animating=!1,n&&s.emit("transitionEnd"))}),s.wrapperEl.addEventListener("transitionend",s.onTranslateToWrapperTransitionEnd))),!0}var dd={getTranslate:sd,setTranslate:id,minTranslate:ad,maxTranslate:ld,translateTo:cd};function ud(e,t){const n=this;n.params.cssMode||(n.wrapperEl.style.transitionDuration=`${e}ms`,n.wrapperEl.style.transitionDelay=e===0?"0ms":""),n.emit("setTransition",e,t)}function Qo(e){let{swiper:t,runCallbacks:n,direction:r,step:o}=e;const{activeIndex:s,previousIndex:i}=t;let a=r;a||(s>i?a="next":s<i?a="prev":a="reset"),t.emit(`transition${o}`),n&&a==="reset"?t.emit(`slideResetTransition${o}`):n&&s!==i&&(t.emit(`slideChangeTransition${o}`),a==="next"?t.emit(`slideNextTransition${o}`):t.emit(`slidePrevTransition${o}`))}function fd(e,t){e===void 0&&(e=!0);const n=this,{params:r}=n;r.cssMode||(r.autoHeight&&n.updateAutoHeight(),Qo({swiper:n,runCallbacks:e,direction:t,step:"Start"}))}function pd(e,t){e===void 0&&(e=!0);const n=this,{params:r}=n;n.animating=!1,!r.cssMode&&(n.setTransition(0),Qo({swiper:n,runCallbacks:e,direction:t,step:"End"}))}var md={setTransition:ud,transitionStart:fd,transitionEnd:pd};function hd(e,t,n,r,o){e===void 0&&(e=0),n===void 0&&(n=!0),typeof e=="string"&&(e=parseInt(e,10));const s=this;let i=e;i<0&&(i=0);const{params:a,snapGrid:l,slidesGrid:c,previousIndex:d,activeIndex:u,rtlTranslate:p,wrapperEl:v,enabled:g}=s;if(!g&&!r&&!o||s.destroyed||s.animating&&a.preventInteractionOnTransition)return!1;typeof t>"u"&&(t=s.params.speed);const m=Math.min(s.params.slidesPerGroupSkip,i);let x=m+Math.floor((i-m)/s.params.slidesPerGroup);x>=l.length&&(x=l.length-1);const y=-l[x];if(a.normalizeSlideIndex)for(let M=0;M<c.length;M+=1){const _=-Math.floor(y*100),A=Math.floor(c[M]*100),P=Math.floor(c[M+1]*100);typeof c[M+1]<"u"?_>=A&&_<P-(P-A)/2?i=M:_>=A&&_<P&&(i=M+1):_>=A&&(i=M)}if(s.initialized&&i!==u&&(!s.allowSlideNext&&(p?y>s.translate&&y>s.minTranslate():y<s.translate&&y<s.minTranslate())||!s.allowSlidePrev&&y>s.translate&&y>s.maxTranslate()&&(u||0)!==i))return!1;i!==(d||0)&&n&&s.emit("beforeSlideChangeStart"),s.updateProgress(y);let b;i>u?b="next":i<u?b="prev":b="reset";const h=s.virtual&&s.params.virtual.enabled;if(!(h&&o)&&(p&&-y===s.translate||!p&&y===s.translate))return s.updateActiveIndex(i),a.autoHeight&&s.updateAutoHeight(),s.updateSlidesClasses(),a.effect!=="slide"&&s.setTranslate(y),b!=="reset"&&(s.transitionStart(n,b),s.transitionEnd(n,b)),!1;if(a.cssMode){const M=s.isHorizontal(),_=p?y:-y;if(t===0)h&&(s.wrapperEl.style.scrollSnapType="none",s._immediateVirtual=!0),h&&!s._cssModeVirtualInitialSet&&s.params.initialSlide>0?(s._cssModeVirtualInitialSet=!0,requestAnimationFrame(()=>{v[M?"scrollLeft":"scrollTop"]=_})):v[M?"scrollLeft":"scrollTop"]=_,h&&requestAnimationFrame(()=>{s.wrapperEl.style.scrollSnapType="",s._immediateVirtual=!1});else{if(!s.support.smoothScroll)return Yo({swiper:s,targetPosition:_,side:M?"left":"top"}),!0;v.scrollTo({[M?"left":"top"]:_,behavior:"smooth"})}return!0}const T=Zo().isSafari;return h&&!o&&T&&s.isElement&&s.virtual.update(!1,!1,i),s.setTransition(t),s.setTranslate(y),s.updateActiveIndex(i),s.updateSlidesClasses(),s.emit("beforeTransitionStart",t,r),s.transitionStart(n,b),t===0?s.transitionEnd(n,b):s.animating||(s.animating=!0,s.onSlideToWrapperTransitionEnd||(s.onSlideToWrapperTransitionEnd=function(_){!s||s.destroyed||_.target===this&&(s.wrapperEl.removeEventListener("transitionend",s.onSlideToWrapperTransitionEnd),s.onSlideToWrapperTransitionEnd=null,delete s.onSlideToWrapperTransitionEnd,s.transitionEnd(n,b))}),s.wrapperEl.addEventListener("transitionend",s.onSlideToWrapperTransitionEnd)),!0}function gd(e,t,n,r){e===void 0&&(e=0),n===void 0&&(n=!0),typeof e=="string"&&(e=parseInt(e,10));const o=this;if(o.destroyed)return;typeof t>"u"&&(t=o.params.speed);const s=o.grid&&o.params.grid&&o.params.grid.rows>1;let i=e;if(o.params.loop)if(o.virtual&&o.params.virtual.enabled)i=i+o.virtual.slidesBefore;else{let a;if(s){const p=i*o.params.grid.rows;a=o.slides.find(v=>v.getAttribute("data-swiper-slide-index")*1===p).column}else a=o.getSlideIndexByData(i);const l=s?Math.ceil(o.slides.length/o.params.grid.rows):o.slides.length,{centeredSlides:c}=o.params;let d=o.params.slidesPerView;d==="auto"?d=o.slidesPerViewDynamic():(d=Math.ceil(parseFloat(o.params.slidesPerView,10)),c&&d%2===0&&(d=d+1));let u=l-a<d;if(c&&(u=u||a<Math.ceil(d/2)),r&&c&&o.params.slidesPerView!=="auto"&&!s&&(u=!1),u){const p=c?a<o.activeIndex?"prev":"next":a-o.activeIndex-1<o.params.slidesPerView?"next":"prev";o.loopFix({direction:p,slideTo:!0,activeSlideIndex:p==="next"?a+1:a-l+1,slideRealIndex:p==="next"?o.realIndex:void 0})}if(s){const p=i*o.params.grid.rows;i=o.slides.find(v=>v.getAttribute("data-swiper-slide-index")*1===p).column}else i=o.getSlideIndexByData(i)}return requestAnimationFrame(()=>{o.slideTo(i,t,n,r)}),o}function vd(e,t,n){t===void 0&&(t=!0);const r=this,{enabled:o,params:s,animating:i}=r;if(!o||r.destroyed)return r;typeof e>"u"&&(e=r.params.speed);let a=s.slidesPerGroup;s.slidesPerView==="auto"&&s.slidesPerGroup===1&&s.slidesPerGroupAuto&&(a=Math.max(r.slidesPerViewDynamic("current",!0),1));const l=r.activeIndex<s.slidesPerGroupSkip?1:a,c=r.virtual&&s.virtual.enabled;if(s.loop){if(i&&!c&&s.loopPreventsSliding)return!1;if(r.loopFix({direction:"next"}),r._clientLeft=r.wrapperEl.clientLeft,r.activeIndex===r.slides.length-1&&s.cssMode)return requestAnimationFrame(()=>{r.slideTo(r.activeIndex+l,e,t,n)}),!0}return s.rewind&&r.isEnd?r.slideTo(0,e,t,n):r.slideTo(r.activeIndex+l,e,t,n)}function bd(e,t,n){t===void 0&&(t=!0);const r=this,{params:o,snapGrid:s,slidesGrid:i,rtlTranslate:a,enabled:l,animating:c}=r;if(!l||r.destroyed)return r;typeof e>"u"&&(e=r.params.speed);const d=r.virtual&&o.virtual.enabled;if(o.loop){if(c&&!d&&o.loopPreventsSliding)return!1;r.loopFix({direction:"prev"}),r._clientLeft=r.wrapperEl.clientLeft}const u=a?r.translate:-r.translate;function p(b){return b<0?-Math.floor(Math.abs(b)):Math.floor(b)}const v=p(u),g=s.map(b=>p(b)),m=o.freeMode&&o.freeMode.enabled;let x=s[g.indexOf(v)-1];if(typeof x>"u"&&(o.cssMode||m)){let b;s.forEach((h,S)=>{v>=h&&(b=S)}),typeof b<"u"&&(x=m?s[b]:s[b>0?b-1:b])}let y=0;if(typeof x<"u"&&(y=i.indexOf(x),y<0&&(y=r.activeIndex-1),o.slidesPerView==="auto"&&o.slidesPerGroup===1&&o.slidesPerGroupAuto&&(y=y-r.slidesPerViewDynamic("previous",!0)+1,y=Math.max(y,0))),o.rewind&&r.isBeginning){const b=r.params.virtual&&r.params.virtual.enabled&&r.virtual?r.virtual.slides.length-1:r.slides.length-1;return r.slideTo(b,e,t,n)}else if(o.loop&&r.activeIndex===0&&o.cssMode)return requestAnimationFrame(()=>{r.slideTo(y,e,t,n)}),!0;return r.slideTo(y,e,t,n)}function yd(e,t,n){t===void 0&&(t=!0);const r=this;if(!r.destroyed)return typeof e>"u"&&(e=r.params.speed),r.slideTo(r.activeIndex,e,t,n)}function wd(e,t,n,r){t===void 0&&(t=!0),r===void 0&&(r=.5);const o=this;if(o.destroyed)return;typeof e>"u"&&(e=o.params.speed);let s=o.activeIndex;const i=Math.min(o.params.slidesPerGroupSkip,s),a=i+Math.floor((s-i)/o.params.slidesPerGroup),l=o.rtlTranslate?o.translate:-o.translate;if(l>=o.snapGrid[a]){const c=o.snapGrid[a],d=o.snapGrid[a+1];l-c>(d-c)*r&&(s+=o.params.slidesPerGroup)}else{const c=o.snapGrid[a-1],d=o.snapGrid[a];l-c<=(d-c)*r&&(s-=o.params.slidesPerGroup)}return s=Math.max(s,0),s=Math.min(s,o.slidesGrid.length-1),o.slideTo(s,e,t,n)}function xd(){const e=this;if(e.destroyed)return;const{params:t,slidesEl:n}=e,r=t.slidesPerView==="auto"?e.slidesPerViewDynamic():t.slidesPerView;let o=e.getSlideIndexWhenGrid(e.clickedIndex),s;const i=e.isElement?"swiper-slide":`.${t.slideClass}`,a=e.grid&&e.params.grid&&e.params.grid.rows>1;if(t.loop){if(e.animating)return;s=parseInt(e.clickedSlide.getAttribute("data-swiper-slide-index"),10),t.centeredSlides?e.slideToLoop(s):o>(a?(e.slides.length-r)/2-(e.params.grid.rows-1):e.slides.length-r)?(e.loopFix(),o=e.getSlideIndex(Re(n,`${i}[data-swiper-slide-index="${s}"]`)[0]),Qt(()=>{e.slideTo(o)})):e.slideTo(o)}else e.slideTo(o)}var Sd={slideTo:hd,slideToLoop:gd,slideNext:vd,slidePrev:bd,slideReset:yd,slideToClosest:wd,slideToClickedSlide:xd};function Ed(e,t){const n=this,{params:r,slidesEl:o}=n;if(!r.loop||n.virtual&&n.params.virtual.enabled)return;const s=()=>{Re(o,`.${r.slideClass}, swiper-slide`).forEach((v,g)=>{v.setAttribute("data-swiper-slide-index",g)})},i=()=>{const p=Re(o,`.${r.slideBlankClass}`);p.forEach(v=>{v.remove()}),p.length>0&&(n.recalcSlides(),n.updateSlides())},a=n.grid&&r.grid&&r.grid.rows>1;r.loopAddBlankSlides&&(r.slidesPerGroup>1||a)&&i();const l=r.slidesPerGroup*(a?r.grid.rows:1),c=n.slides.length%l!==0,d=a&&n.slides.length%r.grid.rows!==0,u=p=>{for(let v=0;v<p;v+=1){const g=n.isElement?Nt("swiper-slide",[r.slideBlankClass]):Nt("div",[r.slideClass,r.slideBlankClass]);n.slidesEl.append(g)}};if(c){if(r.loopAddBlankSlides){const p=l-n.slides.length%l;u(p),n.recalcSlides(),n.updateSlides()}else nn("Swiper Loop Warning: The number of slides is not even to slidesPerGroup, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)");s()}else if(d){if(r.loopAddBlankSlides){const p=r.grid.rows-n.slides.length%r.grid.rows;u(p),n.recalcSlides(),n.updateSlides()}else nn("Swiper Loop Warning: The number of slides is not even to grid.rows, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)");s()}else s();n.loopFix({slideRealIndex:e,direction:r.centeredSlides?void 0:"next",initial:t})}function Cd(e){let{slideRealIndex:t,slideTo:n=!0,direction:r,setTranslate:o,activeSlideIndex:s,initial:i,byController:a,byMousewheel:l}=e===void 0?{}:e;const c=this;if(!c.params.loop)return;c.emit("beforeLoopFix");const{slides:d,allowSlidePrev:u,allowSlideNext:p,slidesEl:v,params:g}=c,{centeredSlides:m,initialSlide:x}=g;if(c.allowSlidePrev=!0,c.allowSlideNext=!0,c.virtual&&g.virtual.enabled){n&&(!g.centeredSlides&&c.snapIndex===0?c.slideTo(c.virtual.slides.length,0,!1,!0):g.centeredSlides&&c.snapIndex<g.slidesPerView?c.slideTo(c.virtual.slides.length+c.snapIndex,0,!1,!0):c.snapIndex===c.snapGrid.length-1&&c.slideTo(c.virtual.slidesBefore,0,!1,!0)),c.allowSlidePrev=u,c.allowSlideNext=p,c.emit("loopFix");return}let y=g.slidesPerView;y==="auto"?y=c.slidesPerViewDynamic():(y=Math.ceil(parseFloat(g.slidesPerView,10)),m&&y%2===0&&(y=y+1));const b=g.slidesPerGroupAuto?y:g.slidesPerGroup;let h=m?Math.max(b,Math.ceil(y/2)):b;h%b!==0&&(h+=b-h%b),h+=g.loopAdditionalSlides,c.loopedSlides=h;const S=c.grid&&g.grid&&g.grid.rows>1;d.length<y+h||c.params.effect==="cards"&&d.length<y+h*2?nn("Swiper Loop Warning: The number of slides is not enough for loop mode, it will be disabled or not function properly. You need to add more slides (or make duplicates) or lower the values of slidesPerView and slidesPerGroup parameters"):S&&g.grid.fill==="row"&&nn("Swiper Loop Warning: Loop mode is not compatible with grid.fill = `row`");const E=[],T=[],M=S?Math.ceil(d.length/g.grid.rows):d.length,_=i&&M-x<y&&!m;let A=_?x:c.activeIndex;typeof s>"u"?s=c.getSlideIndex(d.find(j=>j.classList.contains(g.slideActiveClass))):A=s;const P=r==="next"||!r,N=r==="prev"||!r;let L=0,O=0;const z=(S?d[s].column:s)+(m&&typeof o>"u"?-y/2+.5:0);if(z<h){L=Math.max(h-z,b);for(let j=0;j<h-z;j+=1){const k=j-Math.floor(j/M)*M;if(S){const C=M-k-1;for(let R=d.length-1;R>=0;R-=1)d[R].column===C&&E.push(R)}else E.push(M-k-1)}}else if(z+y>M-h){O=Math.max(z-(M-h*2),b),_&&(O=Math.max(O,y-M+x+1));for(let j=0;j<O;j+=1){const k=j-Math.floor(j/M)*M;S?d.forEach((C,R)=>{C.column===k&&T.push(R)}):T.push(k)}}if(c.__preventObserver__=!0,requestAnimationFrame(()=>{c.__preventObserver__=!1}),c.params.effect==="cards"&&d.length<y+h*2&&(T.includes(s)&&T.splice(T.indexOf(s),1),E.includes(s)&&E.splice(E.indexOf(s),1)),N&&E.forEach(j=>{d[j].swiperLoopMoveDOM=!0,v.prepend(d[j]),d[j].swiperLoopMoveDOM=!1}),P&&T.forEach(j=>{d[j].swiperLoopMoveDOM=!0,v.append(d[j]),d[j].swiperLoopMoveDOM=!1}),c.recalcSlides(),g.slidesPerView==="auto"?c.updateSlides():S&&(E.length>0&&N||T.length>0&&P)&&c.slides.forEach((j,k)=>{c.grid.updateSlide(k,j,c.slides)}),g.watchSlidesProgress&&c.updateSlidesOffset(),n){if(E.length>0&&N){if(typeof t>"u"){const j=c.slidesGrid[A],C=c.slidesGrid[A+L]-j;l?c.setTranslate(c.translate-C):(c.slideTo(A+Math.ceil(L),0,!1,!0),o&&(c.touchEventsData.startTranslate=c.touchEventsData.startTranslate-C,c.touchEventsData.currentTranslate=c.touchEventsData.currentTranslate-C))}else if(o){const j=S?E.length/g.grid.rows:E.length;c.slideTo(c.activeIndex+j,0,!1,!0),c.touchEventsData.currentTranslate=c.translate}}else if(T.length>0&&P)if(typeof t>"u"){const j=c.slidesGrid[A],C=c.slidesGrid[A-O]-j;l?c.setTranslate(c.translate-C):(c.slideTo(A-O,0,!1,!0),o&&(c.touchEventsData.startTranslate=c.touchEventsData.startTranslate-C,c.touchEventsData.currentTranslate=c.touchEventsData.currentTranslate-C))}else{const j=S?T.length/g.grid.rows:T.length;c.slideTo(c.activeIndex-j,0,!1,!0)}}if(c.allowSlidePrev=u,c.allowSlideNext=p,c.controller&&c.controller.control&&!a){const j={slideRealIndex:t,direction:r,setTranslate:o,activeSlideIndex:s,byController:!0};Array.isArray(c.controller.control)?c.controller.control.forEach(k=>{!k.destroyed&&k.params.loop&&k.loopFix({...j,slideTo:k.params.slidesPerView===g.slidesPerView?n:!1})}):c.controller.control instanceof c.constructor&&c.controller.control.params.loop&&c.controller.control.loopFix({...j,slideTo:c.controller.control.params.slidesPerView===g.slidesPerView?n:!1})}c.emit("loopFix")}function Td(){const e=this,{params:t,slidesEl:n}=e;if(!t.loop||!n||e.virtual&&e.params.virtual.enabled)return;e.recalcSlides();const r=[];e.slides.forEach(o=>{const s=typeof o.swiperSlideIndex>"u"?o.getAttribute("data-swiper-slide-index")*1:o.swiperSlideIndex;r[s]=o}),e.slides.forEach(o=>{o.removeAttribute("data-swiper-slide-index")}),r.forEach(o=>{n.append(o)}),e.recalcSlides(),e.slideTo(e.realIndex,0)}var Pd={loopCreate:Ed,loopFix:Cd,loopDestroy:Td};function _d(e){const t=this;if(!t.params.simulateTouch||t.params.watchOverflow&&t.isLocked||t.params.cssMode)return;const n=t.params.touchEventsTarget==="container"?t.el:t.wrapperEl;t.isElement&&(t.__preventObserver__=!0),n.style.cursor="move",n.style.cursor=e?"grabbing":"grab",t.isElement&&requestAnimationFrame(()=>{t.__preventObserver__=!1})}function kd(){const e=this;e.params.watchOverflow&&e.isLocked||e.params.cssMode||(e.isElement&&(e.__preventObserver__=!0),e[e.params.touchEventsTarget==="container"?"el":"wrapperEl"].style.cursor="",e.isElement&&requestAnimationFrame(()=>{e.__preventObserver__=!1}))}var Md={setGrabCursor:_d,unsetGrabCursor:kd};function Ad(e,t){t===void 0&&(t=this);function n(r){if(!r||r===Me()||r===he())return null;r.assignedSlot&&(r=r.assignedSlot);const o=r.closest(e);return!o&&!r.getRootNode?null:o||n(r.getRootNode().host)}return n(t)}function es(e,t,n){const r=he(),{params:o}=e,s=o.edgeSwipeDetection,i=o.edgeSwipeThreshold;return s&&(n<=i||n>=r.innerWidth-i)?s==="prevent"?(t.preventDefault(),!0):!1:!0}function Nd(e){const t=this,n=Me();let r=e;r.originalEvent&&(r=r.originalEvent);const o=t.touchEventsData;if(r.type==="pointerdown"){if(o.pointerId!==null&&o.pointerId!==r.pointerId)return;o.pointerId=r.pointerId}else r.type==="touchstart"&&r.targetTouches.length===1&&(o.touchId=r.targetTouches[0].identifier);if(r.type==="touchstart"){es(t,r,r.targetTouches[0].pageX);return}const{params:s,touches:i,enabled:a}=t;if(!a||!s.simulateTouch&&r.pointerType==="mouse"||t.animating&&s.preventInteractionOnTransition)return;!t.animating&&s.cssMode&&s.loop&&t.loopFix();let l=r.target;if(s.touchEventsTarget==="wrapper"&&!Ic(l,t.wrapperEl)||"which"in r&&r.which===3||"button"in r&&r.button>0||o.isTouched&&o.isMoved)return;const c=!!s.noSwipingClass&&s.noSwipingClass!=="",d=r.composedPath?r.composedPath():r.path;c&&r.target&&r.target.shadowRoot&&d&&(l=d[0]);const u=s.noSwipingSelector?s.noSwipingSelector:`.${s.noSwipingClass}`,p=!!(r.target&&r.target.shadowRoot);if(s.noSwiping&&(p?Ad(u,l):l.closest(u))){t.allowClick=!0;return}if(s.swipeHandler&&!l.closest(s.swipeHandler))return;i.currentX=r.pageX,i.currentY=r.pageY;const v=i.currentX,g=i.currentY;if(!es(t,r,v))return;Object.assign(o,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),i.startX=v,i.startY=g,o.touchStartTime=_e(),t.allowClick=!0,t.updateSize(),t.swipeDirection=void 0,s.threshold>0&&(o.allowThresholdMove=!1);let m=!0;l.matches(o.focusableElements)&&(m=!1,l.nodeName==="SELECT"&&(o.isTouched=!1)),n.activeElement&&n.activeElement.matches(o.focusableElements)&&n.activeElement!==l&&(r.pointerType==="mouse"||r.pointerType!=="mouse"&&!l.matches(o.focusableElements))&&n.activeElement.blur();const x=m&&t.allowTouchMove&&s.touchStartPreventDefault;(s.touchStartForcePreventDefault||x)&&!l.isContentEditable&&r.preventDefault(),s.freeMode&&s.freeMode.enabled&&t.freeMode&&t.animating&&!s.cssMode&&t.freeMode.onTouchStart(),t.emit("touchStart",r)}function Id(e){const t=Me(),n=this,r=n.touchEventsData,{params:o,touches:s,rtlTranslate:i,enabled:a}=n;if(!a||!o.simulateTouch&&e.pointerType==="mouse")return;let l=e;if(l.originalEvent&&(l=l.originalEvent),l.type==="pointermove"&&(r.touchId!==null||l.pointerId!==r.pointerId))return;let c;if(l.type==="touchmove"){if(c=[...l.changedTouches].find(T=>T.identifier===r.touchId),!c||c.identifier!==r.touchId)return}else c=l;if(!r.isTouched){r.startMoving&&r.isScrolling&&n.emit("touchMoveOpposite",l);return}const d=c.pageX,u=c.pageY;if(l.preventedByNestedSwiper){s.startX=d,s.startY=u;return}if(!n.allowTouchMove){l.target.matches(r.focusableElements)||(n.allowClick=!1),r.isTouched&&(Object.assign(s,{startX:d,startY:u,currentX:d,currentY:u}),r.touchStartTime=_e());return}if(o.touchReleaseOnEdges&&!o.loop)if(n.isVertical()){if(u<s.startY&&n.translate<=n.maxTranslate()||u>s.startY&&n.translate>=n.minTranslate()){r.isTouched=!1,r.isMoved=!1;return}}else{if(i&&(d>s.startX&&-n.translate<=n.maxTranslate()||d<s.startX&&-n.translate>=n.minTranslate()))return;if(!i&&(d<s.startX&&n.translate<=n.maxTranslate()||d>s.startX&&n.translate>=n.minTranslate()))return}if(t.activeElement&&t.activeElement.matches(r.focusableElements)&&t.activeElement!==l.target&&l.pointerType!=="mouse"&&t.activeElement.blur(),t.activeElement&&l.target===t.activeElement&&l.target.matches(r.focusableElements)){r.isMoved=!0,n.allowClick=!1;return}r.allowTouchCallbacks&&n.emit("touchMove",l),s.previousX=s.currentX,s.previousY=s.currentY,s.currentX=d,s.currentY=u;const p=s.currentX-s.startX,v=s.currentY-s.startY;if(n.params.threshold&&Math.sqrt(p**2+v**2)<n.params.threshold)return;if(typeof r.isScrolling>"u"){let T;n.isHorizontal()&&s.currentY===s.startY||n.isVertical()&&s.currentX===s.startX?r.isScrolling=!1:p*p+v*v>=25&&(T=Math.atan2(Math.abs(v),Math.abs(p))*180/Math.PI,r.isScrolling=n.isHorizontal()?T>o.touchAngle:90-T>o.touchAngle)}if(r.isScrolling&&n.emit("touchMoveOpposite",l),typeof r.startMoving>"u"&&(s.currentX!==s.startX||s.currentY!==s.startY)&&(r.startMoving=!0),r.isScrolling||l.type==="touchmove"&&r.preventTouchMoveFromPointerMove){r.isTouched=!1;return}if(!r.startMoving)return;n.allowClick=!1,!o.cssMode&&l.cancelable&&l.preventDefault(),o.touchMoveStopPropagation&&!o.nested&&l.stopPropagation();let g=n.isHorizontal()?p:v,m=n.isHorizontal()?s.currentX-s.previousX:s.currentY-s.previousY;o.oneWayMovement&&(g=Math.abs(g)*(i?1:-1),m=Math.abs(m)*(i?1:-1)),s.diff=g,g*=o.touchRatio,i&&(g=-g,m=-m);const x=n.touchesDirection;n.swipeDirection=g>0?"prev":"next",n.touchesDirection=m>0?"prev":"next";const y=n.params.loop&&!o.cssMode,b=n.touchesDirection==="next"&&n.allowSlideNext||n.touchesDirection==="prev"&&n.allowSlidePrev;if(!r.isMoved){if(y&&b&&n.loopFix({direction:n.swipeDirection}),r.startTranslate=n.getTranslate(),n.setTransition(0),n.animating){const T=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0,detail:{bySwiperTouchMove:!0}});n.wrapperEl.dispatchEvent(T)}r.allowMomentumBounce=!1,o.grabCursor&&(n.allowSlideNext===!0||n.allowSlidePrev===!0)&&n.setGrabCursor(!0),n.emit("sliderFirstMove",l)}let h;if(new Date().getTime(),o._loopSwapReset!==!1&&r.isMoved&&r.allowThresholdMove&&x!==n.touchesDirection&&y&&b&&Math.abs(g)>=1){Object.assign(s,{startX:d,startY:u,currentX:d,currentY:u,startTranslate:r.currentTranslate}),r.loopSwapReset=!0,r.startTranslate=r.currentTranslate;return}n.emit("sliderMove",l),r.isMoved=!0,r.currentTranslate=g+r.startTranslate;let S=!0,E=o.resistanceRatio;if(o.touchReleaseOnEdges&&(E=0),g>0?(y&&b&&!h&&r.allowThresholdMove&&r.currentTranslate>(o.centeredSlides?n.minTranslate()-n.slidesSizesGrid[n.activeIndex+1]-(o.slidesPerView!=="auto"&&n.slides.length-o.slidesPerView>=2?n.slidesSizesGrid[n.activeIndex+1]+n.params.spaceBetween:0)-n.params.spaceBetween:n.minTranslate())&&n.loopFix({direction:"prev",setTranslate:!0,activeSlideIndex:0}),r.currentTranslate>n.minTranslate()&&(S=!1,o.resistance&&(r.currentTranslate=n.minTranslate()-1+(-n.minTranslate()+r.startTranslate+g)**E))):g<0&&(y&&b&&!h&&r.allowThresholdMove&&r.currentTranslate<(o.centeredSlides?n.maxTranslate()+n.slidesSizesGrid[n.slidesSizesGrid.length-1]+n.params.spaceBetween+(o.slidesPerView!=="auto"&&n.slides.length-o.slidesPerView>=2?n.slidesSizesGrid[n.slidesSizesGrid.length-1]+n.params.spaceBetween:0):n.maxTranslate())&&n.loopFix({direction:"next",setTranslate:!0,activeSlideIndex:n.slides.length-(o.slidesPerView==="auto"?n.slidesPerViewDynamic():Math.ceil(parseFloat(o.slidesPerView,10)))}),r.currentTranslate<n.maxTranslate()&&(S=!1,o.resistance&&(r.currentTranslate=n.maxTranslate()+1-(n.maxTranslate()-r.startTranslate-g)**E))),S&&(l.preventedByNestedSwiper=!0),!n.allowSlideNext&&n.swipeDirection==="next"&&r.currentTranslate<r.startTranslate&&(r.currentTranslate=r.startTranslate),!n.allowSlidePrev&&n.swipeDirection==="prev"&&r.currentTranslate>r.startTranslate&&(r.currentTranslate=r.startTranslate),!n.allowSlidePrev&&!n.allowSlideNext&&(r.currentTranslate=r.startTranslate),o.threshold>0)if(Math.abs(g)>o.threshold||r.allowThresholdMove){if(!r.allowThresholdMove){r.allowThresholdMove=!0,s.startX=s.currentX,s.startY=s.currentY,r.currentTranslate=r.startTranslate,s.diff=n.isHorizontal()?s.currentX-s.startX:s.currentY-s.startY;return}}else{r.currentTranslate=r.startTranslate;return}!o.followFinger||o.cssMode||((o.freeMode&&o.freeMode.enabled&&n.freeMode||o.watchSlidesProgress)&&(n.updateActiveIndex(),n.updateSlidesClasses()),o.freeMode&&o.freeMode.enabled&&n.freeMode&&n.freeMode.onTouchMove(),n.updateProgress(r.currentTranslate),n.setTranslate(r.currentTranslate))}function Od(e){const t=this,n=t.touchEventsData;let r=e;r.originalEvent&&(r=r.originalEvent);let o;if(r.type==="touchend"||r.type==="touchcancel"){if(o=[...r.changedTouches].find(E=>E.identifier===n.touchId),!o||o.identifier!==n.touchId)return}else{if(n.touchId!==null||r.pointerId!==n.pointerId)return;o=r}if(["pointercancel","pointerout","pointerleave","contextmenu"].includes(r.type)&&!(["pointercancel","contextmenu"].includes(r.type)&&(t.browser.isSafari||t.browser.isWebView)))return;n.pointerId=null,n.touchId=null;const{params:i,touches:a,rtlTranslate:l,slidesGrid:c,enabled:d}=t;if(!d||!i.simulateTouch&&r.pointerType==="mouse")return;if(n.allowTouchCallbacks&&t.emit("touchEnd",r),n.allowTouchCallbacks=!1,!n.isTouched){n.isMoved&&i.grabCursor&&t.setGrabCursor(!1),n.isMoved=!1,n.startMoving=!1;return}i.grabCursor&&n.isMoved&&n.isTouched&&(t.allowSlideNext===!0||t.allowSlidePrev===!0)&&t.setGrabCursor(!1);const u=_e(),p=u-n.touchStartTime;if(t.allowClick){const E=r.path||r.composedPath&&r.composedPath();t.updateClickedSlide(E&&E[0]||r.target,E),t.emit("tap click",r),p<300&&u-n.lastClickTime<300&&t.emit("doubleTap doubleClick",r)}if(n.lastClickTime=_e(),Qt(()=>{t.destroyed||(t.allowClick=!0)}),!n.isTouched||!n.isMoved||!t.swipeDirection||a.diff===0&&!n.loopSwapReset||n.currentTranslate===n.startTranslate&&!n.loopSwapReset){n.isTouched=!1,n.isMoved=!1,n.startMoving=!1;return}n.isTouched=!1,n.isMoved=!1,n.startMoving=!1;let v;if(i.followFinger?v=l?t.translate:-t.translate:v=-n.currentTranslate,i.cssMode)return;if(i.freeMode&&i.freeMode.enabled){t.freeMode.onTouchEnd({currentPos:v});return}const g=v>=-t.maxTranslate()&&!t.params.loop;let m=0,x=t.slidesSizesGrid[0];for(let E=0;E<c.length;E+=E<i.slidesPerGroupSkip?1:i.slidesPerGroup){const T=E<i.slidesPerGroupSkip-1?1:i.slidesPerGroup;typeof c[E+T]<"u"?(g||v>=c[E]&&v<c[E+T])&&(m=E,x=c[E+T]-c[E]):(g||v>=c[E])&&(m=E,x=c[c.length-1]-c[c.length-2])}let y=null,b=null;i.rewind&&(t.isBeginning?b=i.virtual&&i.virtual.enabled&&t.virtual?t.virtual.slides.length-1:t.slides.length-1:t.isEnd&&(y=0));const h=(v-c[m])/x,S=m<i.slidesPerGroupSkip-1?1:i.slidesPerGroup;if(p>i.longSwipesMs){if(!i.longSwipes){t.slideTo(t.activeIndex);return}t.swipeDirection==="next"&&(h>=i.longSwipesRatio?t.slideTo(i.rewind&&t.isEnd?y:m+S):t.slideTo(m)),t.swipeDirection==="prev"&&(h>1-i.longSwipesRatio?t.slideTo(m+S):b!==null&&h<0&&Math.abs(h)>i.longSwipesRatio?t.slideTo(b):t.slideTo(m))}else{if(!i.shortSwipes){t.slideTo(t.activeIndex);return}t.navigation&&(r.target===t.navigation.nextEl||r.target===t.navigation.prevEl)?r.target===t.navigation.nextEl?t.slideTo(m+S):t.slideTo(m):(t.swipeDirection==="next"&&t.slideTo(y!==null?y:m+S),t.swipeDirection==="prev"&&t.slideTo(b!==null?b:m))}}function ts(){const e=this,{params:t,el:n}=e;if(n&&n.offsetWidth===0)return;t.breakpoints&&e.setBreakpoint();const{allowSlideNext:r,allowSlidePrev:o,snapGrid:s}=e,i=e.virtual&&e.params.virtual.enabled;e.allowSlideNext=!0,e.allowSlidePrev=!0,e.updateSize(),e.updateSlides(),e.updateSlidesClasses();const a=i&&t.loop;(t.slidesPerView==="auto"||t.slidesPerView>1)&&e.isEnd&&!e.isBeginning&&!e.params.centeredSlides&&!a?e.slideTo(e.slides.length-1,0,!1,!0):e.params.loop&&!i?e.slideToLoop(e.realIndex,0,!1,!0):e.slideTo(e.activeIndex,0,!1,!0),e.autoplay&&e.autoplay.running&&e.autoplay.paused&&(clearTimeout(e.autoplay.resizeTimeout),e.autoplay.resizeTimeout=setTimeout(()=>{e.autoplay&&e.autoplay.running&&e.autoplay.paused&&e.autoplay.resume()},500)),e.allowSlidePrev=o,e.allowSlideNext=r,e.params.watchOverflow&&s!==e.snapGrid&&e.checkOverflow()}function Rd(e){const t=this;t.enabled&&(t.allowClick||(t.params.preventClicks&&e.preventDefault(),t.params.preventClicksPropagation&&t.animating&&(e.stopPropagation(),e.stopImmediatePropagation())))}function Ld(){const e=this,{wrapperEl:t,rtlTranslate:n,enabled:r}=e;if(!r)return;e.previousTranslate=e.translate,e.isHorizontal()?e.translate=-t.scrollLeft:e.translate=-t.scrollTop,e.translate===0&&(e.translate=0),e.updateActiveIndex(),e.updateSlidesClasses();let o;const s=e.maxTranslate()-e.minTranslate();s===0?o=0:o=(e.translate-e.minTranslate())/s,o!==e.progress&&e.updateProgress(n?-e.translate:e.translate),e.emit("setTranslate",e.translate,!1)}function jd(e){const t=this;on(t,e.target),!(t.params.cssMode||t.params.slidesPerView!=="auto"&&!t.params.autoHeight)&&t.update()}function Dd(){const e=this;e.documentTouchHandlerProceeded||(e.documentTouchHandlerProceeded=!0,e.params.touchReleaseOnEdges&&(e.el.style.touchAction="auto"))}const ns=(e,t)=>{const n=Me(),{params:r,el:o,wrapperEl:s,device:i}=e,a=!!r.nested,l=t==="on"?"addEventListener":"removeEventListener",c=t;!o||typeof o=="string"||(n[l]("touchstart",e.onDocumentTouchStart,{passive:!1,capture:a}),o[l]("touchstart",e.onTouchStart,{passive:!1}),o[l]("pointerdown",e.onTouchStart,{passive:!1}),n[l]("touchmove",e.onTouchMove,{passive:!1,capture:a}),n[l]("pointermove",e.onTouchMove,{passive:!1,capture:a}),n[l]("touchend",e.onTouchEnd,{passive:!0}),n[l]("pointerup",e.onTouchEnd,{passive:!0}),n[l]("pointercancel",e.onTouchEnd,{passive:!0}),n[l]("touchcancel",e.onTouchEnd,{passive:!0}),n[l]("pointerout",e.onTouchEnd,{passive:!0}),n[l]("pointerleave",e.onTouchEnd,{passive:!0}),n[l]("contextmenu",e.onTouchEnd,{passive:!0}),(r.preventClicks||r.preventClicksPropagation)&&o[l]("click",e.onClick,!0),r.cssMode&&s[l]("scroll",e.onScroll),r.updateOnWindowResize?e[c](i.ios||i.android?"resize orientationchange observerUpdate":"resize observerUpdate",ts,!0):e[c]("observerUpdate",ts,!0),o[l]("load",e.onLoad,{capture:!0}))};function $d(){const e=this,{params:t}=e;e.onTouchStart=Nd.bind(e),e.onTouchMove=Id.bind(e),e.onTouchEnd=Od.bind(e),e.onDocumentTouchStart=Dd.bind(e),t.cssMode&&(e.onScroll=Ld.bind(e)),e.onClick=Rd.bind(e),e.onLoad=jd.bind(e),ns(e,"on")}function zd(){ns(this,"off")}var Bd={attachEvents:$d,detachEvents:zd};const rs=(e,t)=>e.grid&&t.grid&&t.grid.rows>1;function Fd(){const e=this,{realIndex:t,initialized:n,params:r,el:o}=e,s=r.breakpoints;if(!s||s&&Object.keys(s).length===0)return;const i=Me(),a=r.breakpointsBase==="window"||!r.breakpointsBase?r.breakpointsBase:"container",l=["window","container"].includes(r.breakpointsBase)||!r.breakpointsBase?e.el:i.querySelector(r.breakpointsBase),c=e.getBreakpoint(s,a,l);if(!c||e.currentBreakpoint===c)return;const u=(c in s?s[c]:void 0)||e.originalParams,p=rs(e,r),v=rs(e,u),g=e.params.grabCursor,m=u.grabCursor,x=r.enabled;p&&!v?(o.classList.remove(`${r.containerModifierClass}grid`,`${r.containerModifierClass}grid-column`),e.emitContainerClasses()):!p&&v&&(o.classList.add(`${r.containerModifierClass}grid`),(u.grid.fill&&u.grid.fill==="column"||!u.grid.fill&&r.grid.fill==="column")&&o.classList.add(`${r.containerModifierClass}grid-column`),e.emitContainerClasses()),g&&!m?e.unsetGrabCursor():!g&&m&&e.setGrabCursor(),["navigation","pagination","scrollbar"].forEach(T=>{if(typeof u[T]>"u")return;const M=r[T]&&r[T].enabled,_=u[T]&&u[T].enabled;M&&!_&&e[T].disable(),!M&&_&&e[T].enable()});const y=u.direction&&u.direction!==r.direction,b=r.loop&&(u.slidesPerView!==r.slidesPerView||y),h=r.loop;y&&n&&e.changeDirection(),Ee(e.params,u);const S=e.params.enabled,E=e.params.loop;Object.assign(e,{allowTouchMove:e.params.allowTouchMove,allowSlideNext:e.params.allowSlideNext,allowSlidePrev:e.params.allowSlidePrev}),x&&!S?e.disable():!x&&S&&e.enable(),e.currentBreakpoint=c,e.emit("_beforeBreakpoint",u),n&&(b?(e.loopDestroy(),e.loopCreate(t),e.updateSlides()):!h&&E?(e.loopCreate(t),e.updateSlides()):h&&!E&&e.loopDestroy()),e.emit("breakpoint",u)}function Vd(e,t,n){if(t===void 0&&(t="window"),!e||t==="container"&&!n)return;let r=!1;const o=he(),s=t==="window"?o.innerHeight:n.clientHeight,i=Object.keys(e).map(a=>{if(typeof a=="string"&&a.indexOf("@")===0){const l=parseFloat(a.substr(1));return{value:s*l,point:a}}return{value:a,point:a}});i.sort((a,l)=>parseInt(a.value,10)-parseInt(l.value,10));for(let a=0;a<i.length;a+=1){const{point:l,value:c}=i[a];t==="window"?o.matchMedia(`(min-width: ${c}px)`).matches&&(r=l):c<=n.clientWidth&&(r=l)}return r||"max"}var Hd={setBreakpoint:Fd,getBreakpoint:Vd};function Wd(e,t){const n=[];return e.forEach(r=>{typeof r=="object"?Object.keys(r).forEach(o=>{r[o]&&n.push(t+o)}):typeof r=="string"&&n.push(t+r)}),n}function Gd(){const e=this,{classNames:t,params:n,rtl:r,el:o,device:s}=e,i=Wd(["initialized",n.direction,{"free-mode":e.params.freeMode&&n.freeMode.enabled},{autoheight:n.autoHeight},{rtl:r},{grid:n.grid&&n.grid.rows>1},{"grid-column":n.grid&&n.grid.rows>1&&n.grid.fill==="column"},{android:s.android},{ios:s.ios},{"css-mode":n.cssMode},{centered:n.cssMode&&n.centeredSlides},{"watch-progress":n.watchSlidesProgress}],n.containerModifierClass);t.push(...i),o.classList.add(...t),e.emitContainerClasses()}function Ud(){const e=this,{el:t,classNames:n}=e;!t||typeof t=="string"||(t.classList.remove(...n),e.emitContainerClasses())}var Yd={addClasses:Gd,removeClasses:Ud};function qd(){const e=this,{isLocked:t,params:n}=e,{slidesOffsetBefore:r}=n;if(r){const o=e.slides.length-1,s=e.slidesGrid[o]+e.slidesSizesGrid[o]+r*2;e.isLocked=e.size>s}else e.isLocked=e.snapGrid.length===1;n.allowSlideNext===!0&&(e.allowSlideNext=!e.isLocked),n.allowSlidePrev===!0&&(e.allowSlidePrev=!e.isLocked),t&&t!==e.isLocked&&(e.isEnd=!1),t!==e.isLocked&&e.emit(e.isLocked?"lock":"unlock")}var Xd={checkOverflow:qd},er={init:!0,direction:"horizontal",oneWayMovement:!1,swiperElementNodeName:"SWIPER-CONTAINER",touchEventsTarget:"wrapper",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!0,nested:!1,createElements:!1,eventsPrefix:"swiper",enabled:!0,focusableElements:"input, select, option, textarea, button, video, label",width:null,height:null,preventInteractionOnTransition:!1,userAgent:null,url:null,edgeSwipeDetection:!1,edgeSwipeThreshold:20,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,breakpointsBase:"window",spaceBetween:0,slidesPerView:1,slidesPerGroup:1,slidesPerGroupSkip:0,slidesPerGroupAuto:!1,centeredSlides:!1,centeredSlidesBounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,watchOverflow:!0,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:5,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,loop:!1,loopAddBlankSlides:!0,loopAdditionalSlides:0,loopPreventsSliding:!0,rewind:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,maxBackfaceHiddenSlides:10,containerModifierClass:"swiper-",slideClass:"swiper-slide",slideBlankClass:"swiper-slide-blank",slideActiveClass:"swiper-slide-active",slideVisibleClass:"swiper-slide-visible",slideFullyVisibleClass:"swiper-slide-fully-visible",slideNextClass:"swiper-slide-next",slidePrevClass:"swiper-slide-prev",wrapperClass:"swiper-wrapper",lazyPreloaderClass:"swiper-lazy-preloader",lazyPreloadPrevNext:0,runCallbacksOnInit:!0,_emitClasses:!1};function Kd(e,t){return function(r){r===void 0&&(r={});const o=Object.keys(r)[0],s=r[o];if(typeof s!="object"||s===null){Ee(t,r);return}if(e[o]===!0&&(e[o]={enabled:!0}),o==="navigation"&&e[o]&&e[o].enabled&&!e[o].prevEl&&!e[o].nextEl&&(e[o].auto=!0),["pagination","scrollbar"].indexOf(o)>=0&&e[o]&&e[o].enabled&&!e[o].el&&(e[o].auto=!0),!(o in e&&"enabled"in s)){Ee(t,r);return}typeof e[o]=="object"&&!("enabled"in e[o])&&(e[o].enabled=!0),e[o]||(e[o]={enabled:!1}),Ee(t,r)}}const tr={eventsEmitter:Yc,update:od,translate:dd,transition:md,slide:Sd,loop:Pd,grabCursor:Md,events:Bd,breakpoints:Hd,checkOverflow:Xd,classes:Yd},nr={};let rr=class Ue{constructor(){let t,n;for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];o.length===1&&o[0].constructor&&Object.prototype.toString.call(o[0]).slice(8,-1)==="Object"?n=o[0]:[t,n]=o,n||(n={}),n=Ee({},n),t&&!n.el&&(n.el=t);const i=Me();if(n.el&&typeof n.el=="string"&&i.querySelectorAll(n.el).length>1){const d=[];return i.querySelectorAll(n.el).forEach(u=>{const p=Ee({},n,{el:u});d.push(new Ue(p))}),d}const a=this;a.__swiper__=!0,a.support=Xo(),a.device=Ko({userAgent:n.userAgent}),a.browser=Zo(),a.eventsListeners={},a.eventsAnyListeners=[],a.modules=[...a.__modules__],n.modules&&Array.isArray(n.modules)&&a.modules.push(...n.modules);const l={};a.modules.forEach(d=>{d({params:n,swiper:a,extendParams:Kd(n,l),on:a.on.bind(a),once:a.once.bind(a),off:a.off.bind(a),emit:a.emit.bind(a)})});const c=Ee({},er,l);return a.params=Ee({},c,nr,n),a.originalParams=Ee({},a.params),a.passedParams=Ee({},n),a.params&&a.params.on&&Object.keys(a.params.on).forEach(d=>{a.on(d,a.params.on[d])}),a.params&&a.params.onAny&&a.onAny(a.params.onAny),Object.assign(a,{enabled:a.params.enabled,el:t,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal(){return a.params.direction==="horizontal"},isVertical(){return a.params.direction==="vertical"},activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,cssOverflowAdjustment(){return Math.trunc(this.translate/2**23)*2**23},allowSlideNext:a.params.allowSlideNext,allowSlidePrev:a.params.allowSlidePrev,touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,focusableElements:a.params.focusableElements,lastClickTime:0,clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,startMoving:void 0,pointerId:null,touchId:null},allowClick:!0,allowTouchMove:a.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),a.emit("_swiper"),a.params.init&&a.init(),a}getDirectionLabel(t){return this.isHorizontal()?t:{width:"height","margin-top":"margin-left","margin-bottom ":"margin-right","margin-left":"margin-top","margin-right":"margin-bottom","padding-left":"padding-top","padding-right":"padding-bottom",marginRight:"marginBottom"}[t]}getSlideIndex(t){const{slidesEl:n,params:r}=this,o=Re(n,`.${r.slideClass}, swiper-slide`),s=It(o[0]);return It(t)-s}getSlideIndexByData(t){return this.getSlideIndex(this.slides.find(n=>n.getAttribute("data-swiper-slide-index")*1===t))}getSlideIndexWhenGrid(t){return this.grid&&this.params.grid&&this.params.grid.rows>1&&(this.params.grid.fill==="column"?t=Math.floor(t/this.params.grid.rows):this.params.grid.fill==="row"&&(t=t%Math.ceil(this.slides.length/this.params.grid.rows))),t}recalcSlides(){const t=this,{slidesEl:n,params:r}=t;t.slides=Re(n,`.${r.slideClass}, swiper-slide`)}enable(){const t=this;t.enabled||(t.enabled=!0,t.params.grabCursor&&t.setGrabCursor(),t.emit("enable"))}disable(){const t=this;t.enabled&&(t.enabled=!1,t.params.grabCursor&&t.unsetGrabCursor(),t.emit("disable"))}setProgress(t,n){const r=this;t=Math.min(Math.max(t,0),1);const o=r.minTranslate(),i=(r.maxTranslate()-o)*t+o;r.translateTo(i,typeof n>"u"?0:n),r.updateActiveIndex(),r.updateSlidesClasses()}emitContainerClasses(){const t=this;if(!t.params._emitClasses||!t.el)return;const n=t.el.className.split(" ").filter(r=>r.indexOf("swiper")===0||r.indexOf(t.params.containerModifierClass)===0);t.emit("_containerClasses",n.join(" "))}getSlideClasses(t){const n=this;return n.destroyed?"":t.className.split(" ").filter(r=>r.indexOf("swiper-slide")===0||r.indexOf(n.params.slideClass)===0).join(" ")}emitSlidesClasses(){const t=this;if(!t.params._emitClasses||!t.el)return;const n=[];t.slides.forEach(r=>{const o=t.getSlideClasses(r);n.push({slideEl:r,classNames:o}),t.emit("_slideClass",r,o)}),t.emit("_slideClasses",n)}slidesPerViewDynamic(t,n){t===void 0&&(t="current"),n===void 0&&(n=!1);const r=this,{params:o,slides:s,slidesGrid:i,slidesSizesGrid:a,size:l,activeIndex:c}=r;let d=1;if(typeof o.slidesPerView=="number")return o.slidesPerView;if(o.centeredSlides){let u=s[c]?Math.ceil(s[c].swiperSlideSize):0,p;for(let v=c+1;v<s.length;v+=1)s[v]&&!p&&(u+=Math.ceil(s[v].swiperSlideSize),d+=1,u>l&&(p=!0));for(let v=c-1;v>=0;v-=1)s[v]&&!p&&(u+=s[v].swiperSlideSize,d+=1,u>l&&(p=!0))}else if(t==="current")for(let u=c+1;u<s.length;u+=1)(n?i[u]+a[u]-i[c]<l:i[u]-i[c]<l)&&(d+=1);else for(let u=c-1;u>=0;u-=1)i[c]-i[u]<l&&(d+=1);return d}update(){const t=this;if(!t||t.destroyed)return;const{snapGrid:n,params:r}=t;r.breakpoints&&t.setBreakpoint(),[...t.el.querySelectorAll('[loading="lazy"]')].forEach(i=>{i.complete&&on(t,i)}),t.updateSize(),t.updateSlides(),t.updateProgress(),t.updateSlidesClasses();function o(){const i=t.rtlTranslate?t.translate*-1:t.translate,a=Math.min(Math.max(i,t.maxTranslate()),t.minTranslate());t.setTranslate(a),t.updateActiveIndex(),t.updateSlidesClasses()}let s;if(r.freeMode&&r.freeMode.enabled&&!r.cssMode)o(),r.autoHeight&&t.updateAutoHeight();else{if((r.slidesPerView==="auto"||r.slidesPerView>1)&&t.isEnd&&!r.centeredSlides){const i=t.virtual&&r.virtual.enabled?t.virtual.slides:t.slides;s=t.slideTo(i.length-1,0,!1,!0)}else s=t.slideTo(t.activeIndex,0,!1,!0);s||o()}r.watchOverflow&&n!==t.snapGrid&&t.checkOverflow(),t.emit("update")}changeDirection(t,n){n===void 0&&(n=!0);const r=this,o=r.params.direction;return t||(t=o==="horizontal"?"vertical":"horizontal"),t===o||t!=="horizontal"&&t!=="vertical"||(r.el.classList.remove(`${r.params.containerModifierClass}${o}`),r.el.classList.add(`${r.params.containerModifierClass}${t}`),r.emitContainerClasses(),r.params.direction=t,r.slides.forEach(s=>{t==="vertical"?s.style.width="":s.style.height=""}),r.emit("changeDirection"),n&&r.update()),r}changeLanguageDirection(t){const n=this;n.rtl&&t==="rtl"||!n.rtl&&t==="ltr"||(n.rtl=t==="rtl",n.rtlTranslate=n.params.direction==="horizontal"&&n.rtl,n.rtl?(n.el.classList.add(`${n.params.containerModifierClass}rtl`),n.el.dir="rtl"):(n.el.classList.remove(`${n.params.containerModifierClass}rtl`),n.el.dir="ltr"),n.update())}mount(t){const n=this;if(n.mounted)return!0;let r=t||n.params.el;if(typeof r=="string"&&(r=document.querySelector(r)),!r)return!1;r.swiper=n,r.parentNode&&r.parentNode.host&&r.parentNode.host.nodeName===n.params.swiperElementNodeName.toUpperCase()&&(n.isElement=!0);const o=()=>`.${(n.params.wrapperClass||"").trim().split(" ").join(".")}`;let i=(()=>r&&r.shadowRoot&&r.shadowRoot.querySelector?r.shadowRoot.querySelector(o()):Re(r,o())[0])();return!i&&n.params.createElements&&(i=Nt("div",n.params.wrapperClass),r.append(i),Re(r,`.${n.params.slideClass}`).forEach(a=>{i.append(a)})),Object.assign(n,{el:r,wrapperEl:i,slidesEl:n.isElement&&!r.parentNode.host.slideSlots?r.parentNode.host:i,hostEl:n.isElement?r.parentNode.host:r,mounted:!0,rtl:r.dir.toLowerCase()==="rtl"||Ke(r,"direction")==="rtl",rtlTranslate:n.params.direction==="horizontal"&&(r.dir.toLowerCase()==="rtl"||Ke(r,"direction")==="rtl"),wrongRTL:Ke(i,"display")==="-webkit-box"}),!0}init(t){const n=this;if(n.initialized||n.mount(t)===!1)return n;n.emit("beforeInit"),n.params.breakpoints&&n.setBreakpoint(),n.addClasses(),n.updateSize(),n.updateSlides(),n.params.watchOverflow&&n.checkOverflow(),n.params.grabCursor&&n.enabled&&n.setGrabCursor(),n.params.loop&&n.virtual&&n.params.virtual.enabled?n.slideTo(n.params.initialSlide+n.virtual.slidesBefore,0,n.params.runCallbacksOnInit,!1,!0):n.slideTo(n.params.initialSlide,0,n.params.runCallbacksOnInit,!1,!0),n.params.loop&&n.loopCreate(void 0,!0),n.attachEvents();const o=[...n.el.querySelectorAll('[loading="lazy"]')];return n.isElement&&o.push(...n.hostEl.querySelectorAll('[loading="lazy"]')),o.forEach(s=>{s.complete?on(n,s):s.addEventListener("load",i=>{on(n,i.target)})}),Qn(n),n.initialized=!0,Qn(n),n.emit("init"),n.emit("afterInit"),n}destroy(t,n){t===void 0&&(t=!0),n===void 0&&(n=!0);const r=this,{params:o,el:s,wrapperEl:i,slides:a}=r;return typeof r.params>"u"||r.destroyed||(r.emit("beforeDestroy"),r.initialized=!1,r.detachEvents(),o.loop&&r.loopDestroy(),n&&(r.removeClasses(),s&&typeof s!="string"&&s.removeAttribute("style"),i&&i.removeAttribute("style"),a&&a.length&&a.forEach(l=>{l.classList.remove(o.slideVisibleClass,o.slideFullyVisibleClass,o.slideActiveClass,o.slideNextClass,o.slidePrevClass),l.removeAttribute("style"),l.removeAttribute("data-swiper-slide-index")})),r.emit("destroy"),Object.keys(r.eventsListeners).forEach(l=>{r.off(l)}),t!==!1&&(r.el&&typeof r.el!="string"&&(r.el.swiper=null),_c(r)),r.destroyed=!0),null}static extendDefaults(t){Ee(nr,t)}static get extendedDefaults(){return nr}static get defaults(){return er}static installModule(t){Ue.prototype.__modules__||(Ue.prototype.__modules__=[]);const n=Ue.prototype.__modules__;typeof t=="function"&&n.indexOf(t)<0&&n.push(t)}static use(t){return Array.isArray(t)?(t.forEach(n=>Ue.installModule(n)),Ue):(Ue.installModule(t),Ue)}};Object.keys(tr).forEach(e=>{Object.keys(tr[e]).forEach(t=>{rr.prototype[t]=tr[e][t]})}),rr.use([Gc,Uc]);const os=["eventsPrefix","injectStyles","injectStylesUrls","modules","init","_direction","oneWayMovement","swiperElementNodeName","touchEventsTarget","initialSlide","_speed","cssMode","updateOnWindowResize","resizeObserver","nested","focusableElements","_enabled","_width","_height","preventInteractionOnTransition","userAgent","url","_edgeSwipeDetection","_edgeSwipeThreshold","_freeMode","_autoHeight","setWrapperSize","virtualTranslate","_effect","breakpoints","breakpointsBase","_spaceBetween","_slidesPerView","maxBackfaceHiddenSlides","_grid","_slidesPerGroup","_slidesPerGroupSkip","_slidesPerGroupAuto","_centeredSlides","_centeredSlidesBounds","_slidesOffsetBefore","_slidesOffsetAfter","normalizeSlideIndex","_centerInsufficientSlides","_watchOverflow","roundLengths","touchRatio","touchAngle","simulateTouch","_shortSwipes","_longSwipes","longSwipesRatio","longSwipesMs","_followFinger","allowTouchMove","_threshold","touchMoveStopPropagation","touchStartPreventDefault","touchStartForcePreventDefault","touchReleaseOnEdges","uniqueNavElements","_resistance","_resistanceRatio","_watchSlidesProgress","_grabCursor","preventClicks","preventClicksPropagation","_slideToClickedSlide","_loop","loopAdditionalSlides","loopAddBlankSlides","loopPreventsSliding","_rewind","_allowSlidePrev","_allowSlideNext","_swipeHandler","_noSwiping","noSwipingClass","noSwipingSelector","passiveListeners","containerModifierClass","slideClass","slideActiveClass","slideVisibleClass","slideFullyVisibleClass","slideNextClass","slidePrevClass","slideBlankClass","wrapperClass","lazyPreloaderClass","lazyPreloadPrevNext","runCallbacksOnInit","observer","observeParents","observeSlideChildren","a11y","_autoplay","_controller","coverflowEffect","cubeEffect","fadeEffect","flipEffect","creativeEffect","cardsEffect","hashNavigation","history","keyboard","mousewheel","_navigation","_pagination","parallax","_scrollbar","_thumbs","virtual","zoom","control"];function lt(e){return typeof e=="object"&&e!==null&&e.constructor&&Object.prototype.toString.call(e).slice(8,-1)==="Object"&&!e.__swiper__}function ht(e,t){const n=["__proto__","constructor","prototype"];Object.keys(t).filter(r=>n.indexOf(r)<0).forEach(r=>{typeof e[r]>"u"?e[r]=t[r]:lt(t[r])&&lt(e[r])&&Object.keys(t[r]).length>0?t[r].__swiper__?e[r]=t[r]:ht(e[r],t[r]):e[r]=t[r]})}function ss(e){return e===void 0&&(e={}),e.navigation&&typeof e.navigation.nextEl>"u"&&typeof e.navigation.prevEl>"u"}function is(e){return e===void 0&&(e={}),e.pagination&&typeof e.pagination.el>"u"}function as(e){return e===void 0&&(e={}),e.scrollbar&&typeof e.scrollbar.el>"u"}function ls(e){e===void 0&&(e="");const t=e.split(" ").map(r=>r.trim()).filter(r=>!!r),n=[];return t.forEach(r=>{n.indexOf(r)<0&&n.push(r)}),n.join(" ")}function Zd(e){return e===void 0&&(e=""),e?e.includes("swiper-wrapper")?e:`swiper-wrapper ${e}`:"swiper-wrapper"}function Jd(e){let{swiper:t,slides:n,passedParams:r,changedParams:o,nextEl:s,prevEl:i,scrollbarEl:a,paginationEl:l}=e;const c=o.filter(A=>A!=="children"&&A!=="direction"&&A!=="wrapperClass"),{params:d,pagination:u,navigation:p,scrollbar:v,virtual:g,thumbs:m}=t;let x,y,b,h,S,E,T,M;o.includes("thumbs")&&r.thumbs&&r.thumbs.swiper&&!r.thumbs.swiper.destroyed&&d.thumbs&&(!d.thumbs.swiper||d.thumbs.swiper.destroyed)&&(x=!0),o.includes("controller")&&r.controller&&r.controller.control&&d.controller&&!d.controller.control&&(y=!0),o.includes("pagination")&&r.pagination&&(r.pagination.el||l)&&(d.pagination||d.pagination===!1)&&u&&!u.el&&(b=!0),o.includes("scrollbar")&&r.scrollbar&&(r.scrollbar.el||a)&&(d.scrollbar||d.scrollbar===!1)&&v&&!v.el&&(h=!0),o.includes("navigation")&&r.navigation&&(r.navigation.prevEl||i)&&(r.navigation.nextEl||s)&&(d.navigation||d.navigation===!1)&&p&&!p.prevEl&&!p.nextEl&&(S=!0);const _=A=>{t[A]&&(t[A].destroy(),A==="navigation"?(t.isElement&&(t[A].prevEl.remove(),t[A].nextEl.remove()),d[A].prevEl=void 0,d[A].nextEl=void 0,t[A].prevEl=void 0,t[A].nextEl=void 0):(t.isElement&&t[A].el.remove(),d[A].el=void 0,t[A].el=void 0))};o.includes("loop")&&t.isElement&&(d.loop&&!r.loop?E=!0:!d.loop&&r.loop?T=!0:M=!0),c.forEach(A=>{if(lt(d[A])&&lt(r[A]))Object.assign(d[A],r[A]),(A==="navigation"||A==="pagination"||A==="scrollbar")&&"enabled"in r[A]&&!r[A].enabled&&_(A);else{const P=r[A];(P===!0||P===!1)&&(A==="navigation"||A==="pagination"||A==="scrollbar")?P===!1&&_(A):d[A]=r[A]}}),c.includes("controller")&&!y&&t.controller&&t.controller.control&&d.controller&&d.controller.control&&(t.controller.control=d.controller.control),o.includes("children")&&n&&g&&d.virtual.enabled?(g.slides=n,g.update(!0)):o.includes("virtual")&&g&&d.virtual.enabled&&(n&&(g.slides=n),g.update(!0)),o.includes("children")&&n&&d.loop&&(M=!0),x&&m.init()&&m.update(!0),y&&(t.controller.control=d.controller.control),b&&(t.isElement&&(!l||typeof l=="string")&&(l=document.createElement("div"),l.classList.add("swiper-pagination"),l.part.add("pagination"),t.el.appendChild(l)),l&&(d.pagination.el=l),u.init(),u.render(),u.update()),h&&(t.isElement&&(!a||typeof a=="string")&&(a=document.createElement("div"),a.classList.add("swiper-scrollbar"),a.part.add("scrollbar"),t.el.appendChild(a)),a&&(d.scrollbar.el=a),v.init(),v.updateSize(),v.setTranslate()),S&&(t.isElement&&((!s||typeof s=="string")&&(s=document.createElement("div"),s.classList.add("swiper-button-next"),Ot(s,t.hostEl.constructor.nextButtonSvg),s.part.add("button-next"),t.el.appendChild(s)),(!i||typeof i=="string")&&(i=document.createElement("div"),i.classList.add("swiper-button-prev"),Ot(i,t.hostEl.constructor.prevButtonSvg),i.part.add("button-prev"),t.el.appendChild(i))),s&&(d.navigation.nextEl=s),i&&(d.navigation.prevEl=i),p.init(),p.update()),o.includes("allowSlideNext")&&(t.allowSlideNext=r.allowSlideNext),o.includes("allowSlidePrev")&&(t.allowSlidePrev=r.allowSlidePrev),o.includes("direction")&&t.changeDirection(r.direction,!1),(E||M)&&t.loopDestroy(),(T||M)&&t.loopCreate(),t.update()}function Qd(e,t){e===void 0&&(e={}),t===void 0&&(t=!0);const n={on:{}},r={},o={};ht(n,er),n._emitClasses=!0,n.init=!1;const s={},i=os.map(l=>l.replace(/_/,"")),a=Object.assign({},e);return Object.keys(a).forEach(l=>{typeof e[l]>"u"||(i.indexOf(l)>=0?lt(e[l])?(n[l]={},o[l]={},ht(n[l],e[l]),ht(o[l],e[l])):(n[l]=e[l],o[l]=e[l]):l.search(/on[A-Z]/)===0&&typeof e[l]=="function"?t?r[`${l[2].toLowerCase()}${l.substr(3)}`]=e[l]:n.on[`${l[2].toLowerCase()}${l.substr(3)}`]=e[l]:s[l]=e[l])}),["navigation","pagination","scrollbar"].forEach(l=>{n[l]===!0&&(n[l]={}),n[l]===!1&&delete n[l]}),{params:n,passedParams:o,rest:s,events:r}}function eu(e,t){let{el:n,nextEl:r,prevEl:o,paginationEl:s,scrollbarEl:i,swiper:a}=e;ss(t)&&r&&o&&(a.params.navigation.nextEl=r,a.originalParams.navigation.nextEl=r,a.params.navigation.prevEl=o,a.originalParams.navigation.prevEl=o),is(t)&&s&&(a.params.pagination.el=s,a.originalParams.pagination.el=s),as(t)&&i&&(a.params.scrollbar.el=i,a.originalParams.scrollbar.el=i),a.init(n)}function tu(e,t,n,r,o){const s=[];if(!t)return s;const i=l=>{s.indexOf(l)<0&&s.push(l)};if(n&&r){const l=r.map(o),c=n.map(o);l.join("")!==c.join("")&&i("children"),r.length!==n.length&&i("children")}return os.filter(l=>l[0]==="_").map(l=>l.replace(/_/,"")).forEach(l=>{if(l in e&&l in t)if(lt(e[l])&&lt(t[l])){const c=Object.keys(e[l]),d=Object.keys(t[l]);c.length!==d.length?i(l):(c.forEach(u=>{e[l][u]!==t[l][u]&&i(l)}),d.forEach(u=>{e[l][u]!==t[l][u]&&i(l)}))}else e[l]!==t[l]&&i(l)}),s}const nu=e=>{!e||e.destroyed||!e.params.virtual||e.params.virtual&&!e.params.virtual.enabled||(e.updateSlides(),e.updateProgress(),e.updateSlidesClasses(),e.emit("_virtualUpdated"),e.parallax&&e.params.parallax&&e.params.parallax.enabled&&e.parallax.setTranslate())};function sn(){return sn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},sn.apply(this,arguments)}function cs(e){return e.type&&e.type.displayName&&e.type.displayName.includes("SwiperSlide")}function ds(e){const t=[];return $.Children.toArray(e).forEach(n=>{cs(n)?t.push(n):n.props&&n.props.children&&ds(n.props.children).forEach(r=>t.push(r))}),t}function ru(e){const t=[],n={"container-start":[],"container-end":[],"wrapper-start":[],"wrapper-end":[]};return $.Children.toArray(e).forEach(r=>{if(cs(r))t.push(r);else if(r.props&&r.props.slot&&n[r.props.slot])n[r.props.slot].push(r);else if(r.props&&r.props.children){const o=ds(r.props.children);o.length>0?o.forEach(s=>t.push(s)):n["container-end"].push(r)}else n["container-end"].push(r)}),{slides:t,slots:n}}function ou(e,t,n){if(!n)return null;const r=d=>{let u=d;return d<0?u=t.length+d:u>=t.length&&(u=u-t.length),u},o=e.isHorizontal()?{[e.rtlTranslate?"right":"left"]:`${n.offset}px`}:{top:`${n.offset}px`},{from:s,to:i}=n,a=e.params.loop?-t.length:0,l=e.params.loop?t.length*2:t.length,c=[];for(let d=a;d<l;d+=1)d>=s&&d<=i&&c.push(t[r(d)]);return c.map((d,u)=>$.cloneElement(d,{swiper:e,style:o,key:d.props.virtualIndex||d.key||`slide-${u}`}))}function Rt(e,t){return typeof window>"u"?$.useEffect(e,t):$.useLayoutEffect(e,t)}const us=$.createContext(null),su=$.createContext(null),fs=$.forwardRef(function(e,t){let{className:n,tag:r="div",wrapperTag:o="div",children:s,onSwiper:i,...a}=e===void 0?{}:e,l=!1;const[c,d]=$.useState("swiper"),[u,p]=$.useState(null),[v,g]=$.useState(!1),m=$.useRef(!1),x=$.useRef(null),y=$.useRef(null),b=$.useRef(null),h=$.useRef(null),S=$.useRef(null),E=$.useRef(null),T=$.useRef(null),M=$.useRef(null),{params:_,passedParams:A,rest:P,events:N}=Qd(a),{slides:L,slots:O}=ru(s),D=()=>{g(!v)};Object.assign(_.on,{_containerClasses(R,H){d(H)}});const z=()=>{Object.assign(_.on,N),l=!0;const R={..._};if(delete R.wrapperClass,y.current=new rr(R),y.current.virtual&&y.current.params.virtual.enabled){y.current.virtual.slides=L;const H={cache:!1,slides:L,renderExternal:p,renderExternalUpdate:!1};ht(y.current.params.virtual,H),ht(y.current.originalParams.virtual,H)}};x.current||z(),y.current&&y.current.on("_beforeBreakpoint",D);const j=()=>{l||!N||!y.current||Object.keys(N).forEach(R=>{y.current.on(R,N[R])})},k=()=>{!N||!y.current||Object.keys(N).forEach(R=>{y.current.off(R,N[R])})};$.useEffect(()=>()=>{y.current&&y.current.off("_beforeBreakpoint",D)}),$.useEffect(()=>{!m.current&&y.current&&(y.current.emitSlidesClasses(),m.current=!0)}),Rt(()=>{if(t&&(t.current=x.current),!!x.current)return y.current.destroyed&&z(),eu({el:x.current,nextEl:S.current,prevEl:E.current,paginationEl:T.current,scrollbarEl:M.current,swiper:y.current},_),i&&!y.current.destroyed&&i(y.current),()=>{y.current&&!y.current.destroyed&&y.current.destroy(!0,!1)}},[]),Rt(()=>{j();const R=tu(A,b.current,L,h.current,H=>H.key);return b.current=A,h.current=L,R.length&&y.current&&!y.current.destroyed&&Jd({swiper:y.current,slides:L,passedParams:A,changedParams:R,nextEl:S.current,prevEl:E.current,scrollbarEl:M.current,paginationEl:T.current}),()=>{k()}}),Rt(()=>{nu(y.current)},[u]);function C(){return _.virtual?ou(y.current,L,u):L.map((R,H)=>$.cloneElement(R,{swiper:y.current,swiperSlideIndex:H}))}return $.createElement(r,sn({ref:x,className:ls(`${c}${n?` ${n}`:""}`)},P),$.createElement(su.Provider,{value:y.current},O["container-start"],$.createElement(o,{className:Zd(_.wrapperClass)},O["wrapper-start"],C(),O["wrapper-end"]),ss(_)&&$.createElement($.Fragment,null,$.createElement("div",{ref:E,className:"swiper-button-prev"}),$.createElement("div",{ref:S,className:"swiper-button-next"})),as(_)&&$.createElement("div",{ref:M,className:"swiper-scrollbar"}),is(_)&&$.createElement("div",{ref:T,className:"swiper-pagination"}),O["container-end"]))});fs.displayName="Swiper";const ps=$.forwardRef(function(e,t){let{tag:n="div",children:r,className:o="",swiper:s,zoom:i,lazy:a,virtualIndex:l,swiperSlideIndex:c,...d}=e===void 0?{}:e;const u=$.useRef(null),[p,v]=$.useState("swiper-slide"),[g,m]=$.useState(!1);function x(S,E,T){E===u.current&&v(T)}Rt(()=>{if(typeof c<"u"&&(u.current.swiperSlideIndex=c),t&&(t.current=u.current),!(!u.current||!s)){if(s.destroyed){p!=="swiper-slide"&&v("swiper-slide");return}return s.on("_slideClass",x),()=>{s&&s.off("_slideClass",x)}}}),Rt(()=>{s&&u.current&&!s.destroyed&&v(s.getSlideClasses(u.current))},[s]);const y={isActive:p.indexOf("swiper-slide-active")>=0,isVisible:p.indexOf("swiper-slide-visible")>=0,isPrev:p.indexOf("swiper-slide-prev")>=0,isNext:p.indexOf("swiper-slide-next")>=0},b=()=>typeof r=="function"?r(y):r,h=()=>{m(!0)};return $.createElement(n,sn({ref:u,className:ls(`${p}${o?` ${o}`:""}`),"data-swiper-slide-index":l,onLoad:h},d),i&&$.createElement(us.Provider,{value:y},$.createElement("div",{className:"swiper-zoom-container","data-swiper-zoom":typeof i=="number"?i:void 0},b(),a&&!g&&$.createElement("div",{className:"swiper-lazy-preloader"}))),!i&&$.createElement(us.Provider,{value:y},b(),a&&!g&&$.createElement("div",{className:"swiper-lazy-preloader"})))});ps.displayName="SwiperSlide";const mv="",hv="",gv="",iu=({slides:e,className:t,slidesPerView:n=1,spaceBetween:r=16,isLoopEnabled:o=!1,isPaginationVisible:s=!0,isNavigationVisible:i,isNavigationEnabled:a,isArrowsVisible:l=!0,isMousewheelEnabled:c=!0,isKeyboardEnabled:d=!0,isGrabCursorVisible:u=!0,isFreeScrollEnabled:p=!1,onSlideChange:v,...g})=>{const m=a??i??!0,x=n==="auto",y=o&&e.length>1,b=h=>{v==null||v(h.realIndex)};return w.jsx("div",{className:X("relative w-full",t),...g,children:w.jsx(fs,{modules:[Bc,Fc,jc,Dc,$c,zc],slidesPerView:n,spaceBetween:r,loop:y,loopAdditionalSlides:y?e.length:void 0,loopAddBlankSlides:!1,slidesPerGroupAuto:x,initialSlide:0,navigation:m&&l,pagination:s?{clickable:!0}:!1,keyboard:d?{enabled:!0}:!1,freeMode:p?{enabled:!0,sticky:!1,momentum:!1,momentumBounce:!1}:!1,mousewheel:c?{forceToAxis:!0,releaseOnEdges:!0,sensitivity:.85}:!1,grabCursor:u,simulateTouch:!0,className:X("w-full [--swiper-theme-color:var(--chart-1)]","[&_.swiper-button-next]:text-(--chart-1) [&_.swiper-button-prev]:text-(--chart-1)","[&_.swiper-pagination-bullet]:bg-(--chart-1)","[&_.swiper-pagination-bullet]:opacity-45","[&_.swiper-pagination-bullet-active]:bg-(--chart-1)","[&_.swiper-pagination-bullet-active]:opacity-100"),onSlideChange:b,children:e.map((h,S)=>w.jsx(ps,{className:X("h-auto",x&&"!w-auto"),children:h},S))})})},ms=({coverImageSrc:e,brandName:t,heading:n,viewsText:r,tagText:o,isEditModeEnabled:s=!1,isEditModeDisabled:i=!1})=>{const a=s&&!i,[l,c]=f.useState(e),[d,u]=f.useState(t),[p,v]=f.useState(n),[g,m]=f.useState(r),[x,y]=f.useState(o??""),b=f.useRef(null),h=f.useRef(null);f.useEffect(()=>{c(e)},[e]),f.useEffect(()=>{u(t)},[t]),f.useEffect(()=>{v(n)},[n]),f.useEffect(()=>{m(r)},[r]),f.useEffect(()=>{y(o??"")},[o]),f.useEffect(()=>()=>{h.current&&URL.revokeObjectURL(h.current)},[]);const S=()=>{var T;(T=b.current)==null||T.click()},E=T=>{var A;const M=(A=T.currentTarget.files)==null?void 0:A[0];if(!M)return;h.current&&URL.revokeObjectURL(h.current);const _=URL.createObjectURL(M);h.current=_,c(_),T.currentTarget.value=""};return w.jsxs(On,{type:"gradient",isRoundedCornersDisabled:!0,className:"relative flex h-[360px] w-full flex-col gap-3 border-0 p-2",children:[w.jsxs("div",{className:"relative h-[220px] w-full overflow-hidden rounded-lg",children:[w.jsx(Fn,{src:l,alt:p,isEditModeDisabled:!a,className:"h-full w-full"}),x?w.jsx(Jt,{label:x,type:"default",className:"absolute top-2 left-2",isEditModeEnabled:a,isEditModeDisabled:!a,onLabelChange:y}):null,a?w.jsxs(w.Fragment,{children:[w.jsx("input",{ref:b,type:"file",accept:"image/*",className:"hidden",onChange:E}),w.jsx("button",{type:"button",onClick:S,className:"absolute top-2 right-2 rounded-md bg-background/85 px-3 py-1.5 text-xs font-medium text-foreground shadow-md backdrop-blur",children:"Upload image"})]}):null]}),w.jsxs("div",{className:"flex flex-col gap-1 px-1 pb-1",children:[a?w.jsx(Ve,{value:d,onValueChange:u,typography:"Action",isEditModeDisabled:!a,className:"!h-auto"}):w.jsx(Se,{typography:"Action",element:"p",className:"font-semibold uppercase tracking-wide",children:d}),a?w.jsx(Ve,{value:p,onValueChange:v,typography:"SectionHeader",isEditModeDisabled:!a,className:"!h-auto"}):w.jsx(Se,{typography:"SectionHeader",element:"h3",className:"overflow-hidden [display:-webkit-box] [-webkit-line-clamp:2] [-webkit-box-orient:vertical]",children:p}),a?w.jsx(Ve,{value:g,onValueChange:m,typography:"BodySmall",isEditModeDisabled:!a,className:"!h-auto pt-1"}):w.jsx(Se,{typography:"BodySmall",element:"p",color:"muted-foreground",className:"pt-1",children:g})]})]})},Ae=e=>typeof e=="string"||typeof e=="number"?String(e):"",hs=({className:e,isSetModeEnabled:t=!1,isEditModeEnabled:n=!1,isEditModeDisabled:r=!1,setModelEnabled:o,coverImageSrc:s,coverImageAlt:i="Slide cover image",isImageLoading:a,imageProps:l,imageAccept:c="image/*",onImageChange:d,brandName:u,brandIcon:p,heading:v,accentText:g,description:m,priceText:x,tagText:y,tagType:b="default",tagColor:h,tagTextColor:S,tags:E,onTagClick:T,onTagLabelChange:M,badgeText:_,...A})=>{const P=(n||t||!!o)&&!r,{isEditModeDisabled:N,isLoading:L,...O}=l??{},D=a??L??!1,z=N??!P,j=y??Ae(_),k=f.useMemo(()=>E!=null&&E.length?E:j?[{id:"primary-tag",label:j,type:b,color:h,textColor:S}]:[],[E,j,b,h,S]),C=f.useMemo(()=>k.filter(V=>V.position!=="bottom-right"),[k]),R=f.useMemo(()=>k.filter(V=>V.position==="bottom-right"),[k]),H=f.useRef(null),I=f.useRef(null),[G,q]=f.useState(s),[K,se]=f.useState(()=>Ae(u)),[ae,B]=f.useState(()=>Ae(v)),[Z,re]=f.useState(()=>Ae(g??"")),[Q,te]=f.useState(()=>Ae(m??"")),[ee,ve]=f.useState(()=>Ae(x));f.useEffect(()=>{q(s)},[s]),f.useEffect(()=>{se(Ae(u))},[u]),f.useEffect(()=>{B(Ae(v))},[v]),f.useEffect(()=>{re(Ae(g??""))},[g]),f.useEffect(()=>{te(Ae(m??""))},[m]),f.useEffect(()=>{ve(Ae(x))},[x]),f.useEffect(()=>()=>{I.current&&URL.revokeObjectURL(I.current)},[]);const ye=()=>{var V;D||(V=H.current)==null||V.click()},Be=V=>{var xe;const de=(xe=V.currentTarget.files)==null?void 0:xe[0];if(!de)return;I.current&&URL.revokeObjectURL(I.current);const we=URL.createObjectURL(de);I.current=we,q(we),d==null||d({file:de,objectUrl:we}),V.currentTarget.value=""};return w.jsxs("article",{className:X("group relative flex h-[620px] w-full flex-col overflow-hidden rounded-xl border border-border/60","bg-card text-card-foreground",e),...A,children:[w.jsxs("div",{className:"relative h-[41%] min-h-[240px] w-full overflow-hidden",children:[w.jsx(Fn,{alt:i,src:G,isLoading:D,isEditModeDisabled:z,className:X("h-full w-full","[&>img]:transition-transform [&>img]:duration-500 group-hover:[&>img]:scale-[1.025]"),...O}),w.jsx("div",{className:"pointer-events-none absolute inset-x-0 bottom-0 h-20 bg-gradient-to-t from-card to-transparent"}),C.length?w.jsx("div",{className:X("absolute top-4 left-4 z-10 flex flex-wrap gap-2",P?"max-w-[calc(100%-13rem)]":"max-w-[calc(100%-1rem)]"),children:C.map(V=>w.jsx(Jt,{label:V.label,type:V.type,color:V.color,textColor:V.textColor,isLoading:V.isLoading,isEditModeEnabled:P,isEditModeDisabled:!P,onLabelChange:de=>{var we;(we=V.onLabelChange)==null||we.call(V,V.id,de),M==null||M(V.id,de)},onClick:()=>{var de;(de=V.onClick)==null||de.call(V,V.id),T==null||T(V.id)},className:X("max-w-full",(V.onClick||T)&&"cursor-pointer")},V.id))}):null,R.length?w.jsx("div",{className:"absolute right-4 bottom-4 z-10 flex max-w-[calc(100%-1rem)] flex-wrap justify-end gap-2",children:R.map(V=>w.jsx(Jt,{label:V.label,type:V.type,color:V.color,textColor:V.textColor,isLoading:V.isLoading,isEditModeEnabled:P,isEditModeDisabled:!P,onLabelChange:de=>{var we;(we=V.onLabelChange)==null||we.call(V,V.id,de),M==null||M(V.id,de)},onClick:()=>{var de;(de=V.onClick)==null||de.call(V,V.id),T==null||T(V.id)},className:X("max-w-full",(V.onClick||T)&&"cursor-pointer")},V.id))}):null,P?w.jsxs(w.Fragment,{children:[w.jsx("input",{ref:H,type:"file",accept:c,className:"hidden",onChange:Be}),w.jsx("button",{type:"button",onClick:ye,disabled:D,className:X("absolute top-4 right-4 rounded-md bg-background/85 px-3 py-1.5 text-xs font-medium text-foreground shadow-md backdrop-blur","disabled:cursor-not-allowed disabled:opacity-60","transition-opacity hover:opacity-90 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-(--chart-1)/50"),children:"Upload image"})]}):null]}),w.jsxs(On,{as:"section",type:"gradient",isRoundedCornersDisabled:!0,className:X("relative flex flex-1 flex-col gap-3 border-0 p-6"),children:[w.jsxs("div",{className:"inline-flex items-center gap-2 uppercase",children:[p?w.jsx("span",{className:"inline-flex size-5 items-center justify-center overflow-hidden rounded-sm",children:p}):null,P?w.jsx(Ve,{value:K,onValueChange:se,typography:"CompactCaption",className:"!h-auto"}):w.jsx(Se,{typography:"CompactCaption",element:"span",className:"font-semibold uppercase tracking-wide",children:K})]}),P?w.jsx(Ve,{value:ae,onValueChange:B,typography:"Heading",className:"!h-auto"}):w.jsx(Se,{typography:"Heading",element:"h3",className:X("leading-[1.08]","overflow-hidden [display:-webkit-box] [-webkit-line-clamp:2] [-webkit-box-orient:vertical]"),children:ae}),P?w.jsx(Ve,{value:Z,onValueChange:re,placeholder:"Accent text",typography:"Subheader",className:"!h-auto text-(--chart-1)"}):Z?w.jsx(Se,{typography:"Subheader",className:X("font-medium","overflow-hidden [display:-webkit-box] [-webkit-line-clamp:2] [-webkit-box-orient:vertical]","text-(--chart-1)"),color:"chart-1",children:Z}):null,P?w.jsx(Ve,{value:Q,onValueChange:te,placeholder:"Description",typography:"Subheader",className:"!h-auto"}):Q?w.jsx(Se,{typography:"Subheader",className:X("overflow-hidden [display:-webkit-box] [-webkit-line-clamp:2] [-webkit-box-orient:vertical]"),children:Q}):null,P?w.jsx(Ve,{value:ee,onValueChange:ve,typography:"Heading",className:"mt-auto !h-auto pt-6"}):w.jsx(Se,{typography:"Heading",element:"p",className:"mt-auto pt-6 text-5xl leading-none font-bold tracking-tight",color:"foreground",children:ee})]})]})},gs=e=>w.jsx(hs,{...e}),or=[{id:"react",coverImageSrc:"https://picsum.photos/seed/react-course/1300/780",brandName:"Frontend Track",heading:"React: от компонентов до production",accentText:"Hooks, Router, state management и архитектура UI",description:"Практический курс по разработке интерфейсов и оптимизации React-приложений.",priceText:"от 4 990 ₽",tagText:"Курс"},{id:"go",coverImageSrc:"https://picsum.photos/seed/go-course/1300/780",brandName:"Backend Track",heading:"Go: высоконагруженные backend-сервисы",accentText:"Горутины, каналы, API и тестирование",description:"Курс по построению микросервисов на Go с акцентом на производительность и надежность.",priceText:"от 5 490 ₽",tagText:"Курс"},{id:"k8s",coverImageSrc:"https://picsum.photos/seed/k8s-course/1300/780",brandName:"DevOps Track",heading:"Kubernetes: оркестрация в реальных проектах",accentText:"Deployments, ingress, autoscaling, Helm",description:"Освойте запуск, масштабирование и сопровождение контейнеризированных приложений в Kubernetes.",priceText:"от 6 990 ₽",tagText:"Курс"},{id:"redis",coverImageSrc:"https://picsum.photos/seed/redis-course/1300/780",brandName:"Data Track",heading:"Redis: кэширование, очереди и pub/sub",accentText:"TTL, eviction policies и low-latency паттерны",description:"Научитесь использовать Redis для ускорения приложений и обработки событий в реальном времени.",priceText:"от 4 490 ₽",tagText:"Курс"},{id:"postgresql",coverImageSrc:"https://picsum.photos/seed/postgres-course/1300/780",brandName:"Database Track",heading:"PostgreSQL: моделирование и оптимизация SQL",accentText:"Индексы, транзакции, explain analyze, миграции",description:"Курс по проектированию схем и ускорению запросов в PostgreSQL для продуктовых систем.",priceText:"от 5 290 ₽",tagText:"Курс"},{id:"kafka",coverImageSrc:"https://picsum.photos/seed/kafka-course/1300/780",brandName:"Streaming Track",heading:"Kafka: event-driven архитектура",accentText:"Topics, partitions, consumer groups",description:"Разберете обработку потоков данных, гарантии доставки и построение event-driven платформ.",priceText:"от 6 190 ₽",tagText:"Курс"}],au=["MediumVerticalSlide","MediumHorizontalSlide"],vs="w-[460px] min-w-[460px]",bs="w-[520px] min-w-[520px]",ys=(e,t,n)=>e==="no-tags"?{tags:[],tagText:void 0}:e==="one-tag"?{tags:[{id:`course-${t}`,label:n,type:"default"}]}:e==="two-tags"?{tags:[{id:`course-${t}`,label:n,type:"default"},{id:`time-${t}`,label:"2:13",type:"time",position:"bottom-right"}]}:{tags:[{id:`hot-${t}`,label:"HOT",type:"default",color:"chart-1"},{id:`level-${t}`,label:"PRO",type:"time",color:"chart-3",textColor:"foreground",position:"bottom-right"}]},lu=({componentType:e,isEditModeEnabled:t=!1,isEditModeDisabled:n=!1,onTagClick:r,onTagLabelChange:o})=>{if(e==="MediumVerticalSlide"){const s=["no-tags","two-tags","one-tag","two-other-tags"];return or.slice(0,4).map((i,a)=>{const{tags:l,tagText:c}=ys(s[a]??"one-tag",i.id,i.tagText??"Курс");return w.jsx("div",{className:vs,children:w.jsx(gs,{...i,tagText:c,tags:l,isEditModeEnabled:t,isEditModeDisabled:n,onTagClick:r,onTagLabelChange:o})},i.id)})}return or.slice(0,4).map(s=>w.jsx("div",{className:bs,children:w.jsx(ms,{coverImageSrc:s.coverImageSrc,brandName:s.brandName,heading:s.heading,viewsText:"661 просмотры",tagText:s.id==="react"?"NEW":void 0,isEditModeEnabled:t,isEditModeDisabled:n})},`preview-${s.id}`))};function cu(e,t=[]){let n=[];function r(s,i){const a=f.createContext(i);a.displayName=s+"Context";const l=n.length;n=[...n,i];const c=u=>{var y;const{scope:p,children:v,...g}=u,m=((y=p==null?void 0:p[e])==null?void 0:y[l])||a,x=f.useMemo(()=>g,Object.values(g));return w.jsx(m.Provider,{value:x,children:v})};c.displayName=s+"Provider";function d(u,p){var m;const v=((m=p==null?void 0:p[e])==null?void 0:m[l])||a,g=f.useContext(v);if(g)return g;if(i!==void 0)return i;throw new Error(`\`${u}\` must be used within \`${s}\``)}return[c,d]}const o=()=>{const s=n.map(i=>f.createContext(i));return function(a){const l=(a==null?void 0:a[e])||s;return f.useMemo(()=>({[`__scope${e}`]:{...a,[e]:l}}),[a,l])}};return o.scopeName=e,[r,du(o,...t)]}function du(...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 i=r.reduce((a,{useScope:l,scopeName:c})=>{const u=l(s)[`__scope${c}`];return{...a,...u}},{});return f.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}function Je(e){const t=f.useRef(e);return f.useEffect(()=>{t.current=e}),f.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}var be=globalThis!=null&&globalThis.document?f.useLayoutEffect:()=>{},uu=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],sr=uu.reduce((e,t)=>{const n=ao(`Primitive.${t}`),r=f.forwardRef((o,s)=>{const{asChild:i,...a}=o,l=i?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),w.jsx(l,{...a,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),ir={exports:{}},ar={};/**
73
78
  * @license React
74
79
  * use-sync-external-store-shim.production.js
75
80
  *
@@ -77,7 +82,7 @@ React keys must be passed directly to JSX without using spread:
77
82
  *
78
83
  * This source code is licensed under the MIT license found in the
79
84
  * LICENSE file in the root directory of this source tree.
80
- */var Or;function da(){if(Or)return cn;Or=1;var e=V;function t(d,m){return d===m&&(d!==0||1/d===1/m)||d!==d&&m!==m}var n=typeof Object.is=="function"?Object.is:t,r=e.useState,o=e.useEffect,s=e.useLayoutEffect,i=e.useDebugValue;function a(d,m){var h=m(),v=r({inst:{value:h,getSnapshot:m}}),p=v[0].inst,b=v[1];return s(function(){p.value=h,p.getSnapshot=m,l(p)&&b({inst:p})},[d,h,m]),o(function(){return l(p)&&b({inst:p}),d(function(){l(p)&&b({inst:p})})},[d]),i(h),h}function l(d){var m=d.getSnapshot;d=d.value;try{var h=m();return!n(d,h)}catch{return!0}}function u(d,m){return m()}var f=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?u:a;return cn.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:f,cn}var un={};/**
85
+ */var ws;function fu(){if(ws)return ar;ws=1;var e=$;function t(u,p){return u===p&&(u!==0||1/u===1/p)||u!==u&&p!==p}var n=typeof Object.is=="function"?Object.is:t,r=e.useState,o=e.useEffect,s=e.useLayoutEffect,i=e.useDebugValue;function a(u,p){var v=p(),g=r({inst:{value:v,getSnapshot:p}}),m=g[0].inst,x=g[1];return s(function(){m.value=v,m.getSnapshot=p,l(m)&&x({inst:m})},[u,v,p]),o(function(){return l(m)&&x({inst:m}),u(function(){l(m)&&x({inst:m})})},[u]),i(v),v}function l(u){var p=u.getSnapshot;u=u.value;try{var v=p();return!n(u,v)}catch{return!0}}function c(u,p){return p()}var d=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?c:a;return ar.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:d,ar}var lr={};/**
81
86
  * @license React
82
87
  * use-sync-external-store-shim.development.js
83
88
  *
@@ -85,12 +90,12 @@ React keys must be passed directly to JSX without using spread:
85
90
  *
86
91
  * This source code is licensed under the MIT license found in the
87
92
  * LICENSE file in the root directory of this source tree.
88
- */var Tr;function fa(){return Tr||(Tr=1,process.env.NODE_ENV!=="production"&&function(){function e(h,v){return h===v&&(h!==0||1/h===1/v)||h!==h&&v!==v}function t(h,v){f||o.startTransition===void 0||(f=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var p=v();if(!d){var b=v();s(p,b)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),d=!0)}b=i({inst:{value:p,getSnapshot:v}});var y=b[0].inst,x=b[1];return l(function(){y.value=p,y.getSnapshot=v,n(y)&&x({inst:y})},[h,p,v]),a(function(){return n(y)&&x({inst:y}),h(function(){n(y)&&x({inst:y})})},[h]),u(p),p}function n(h){var v=h.getSnapshot;h=h.value;try{var p=v();return!s(h,p)}catch{return!0}}function r(h,v){return v()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var o=V,s=typeof Object.is=="function"?Object.is:e,i=o.useState,a=o.useEffect,l=o.useLayoutEffect,u=o.useDebugValue,f=!1,d=!1,m=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?r:t;un.useSyncExternalStore=o.useSyncExternalStore!==void 0?o.useSyncExternalStore:m,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),un}process.env.NODE_ENV==="production"?ln.exports=da():ln.exports=fa();var pa=ln.exports;function ma(){return pa.useSyncExternalStore(ha,()=>!0,()=>!1)}function ha(){return()=>{}}var dn="Avatar",[ga,op]=la(dn),[va,Mr]=ga(dn),Ir=c.forwardRef((e,t)=>{const{__scopeAvatar:n,...r}=e,[o,s]=c.useState("idle");return g.jsx(va,{scope:n,imageLoadingStatus:o,onImageLoadingStatusChange:s,children:g.jsx(an.span,{...r,ref:t})})});Ir.displayName=dn;var jr="AvatarImage",Lr=c.forwardRef((e,t)=>{const{__scopeAvatar:n,src:r,onLoadingStatusChange:o=()=>{},...s}=e,i=Mr(jr,n),a=ba(r,s),l=Te(u=>{o(u),i.onImageLoadingStatusChange(u)});return ue(()=>{a!=="idle"&&l(a)},[a,l]),a==="loaded"?g.jsx(an.img,{...s,ref:t,src:r}):null});Lr.displayName=jr;var $r="AvatarFallback",Dr=c.forwardRef((e,t)=>{const{__scopeAvatar:n,delayMs:r,...o}=e,s=Mr($r,n),[i,a]=c.useState(r===void 0);return c.useEffect(()=>{if(r!==void 0){const l=window.setTimeout(()=>a(!0),r);return()=>window.clearTimeout(l)}},[r]),i&&s.imageLoadingStatus!=="loaded"?g.jsx(an.span,{...o,ref:t}):null});Dr.displayName=$r;function Fr(e,t){return e?t?(e.src!==t&&(e.src=t),e.complete&&e.naturalWidth>0?"loaded":"loading"):"error":"idle"}function ba(e,{referrerPolicy:t,crossOrigin:n}){const r=ma(),o=c.useRef(null),s=(()=>r?(o.current||(o.current=new window.Image),o.current):null)(),[i,a]=c.useState(()=>Fr(s,e));return ue(()=>{a(Fr(s,e))},[s,e]),ue(()=>{const l=d=>()=>{a(d)};if(!s)return;const u=l("loaded"),f=l("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]),i}var ya=Ir,xa=Lr,wa=Dr;function Sa({className:e,...t}){return g.jsx(ya,{"data-slot":"avatar",className:Q("relative flex size-8 shrink-0 overflow-hidden rounded-full border-2",e),...t})}function Ca({className:e,...t}){return g.jsx(xa,{"data-slot":"avatar-image",className:Q("aspect-square size-full",e),...t})}function _a({className:e,...t}){return g.jsx(wa,{"data-slot":"avatar-fallback",className:Q("bg-muted flex size-full items-center justify-center rounded-full",e),...t})}const fn={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]};for(const e in fn)Object.freeze(fn[e]);const ct=Object.freeze(fn),Br=Object.create(null);for(const e in ct)Object.hasOwn(ct,e)&&(Br[ct[e]]=e);const ae={to:{},get:{}};ae.get=function(e){const t=e.slice(0,3).toLowerCase();let n,r;switch(t){case"hsl":{n=ae.get.hsl(e),r="hsl";break}case"hwb":{n=ae.get.hwb(e),r="hwb";break}default:{n=ae.get.rgb(e),r="rgb";break}}return n?{model:r,value:n}:null},ae.get.rgb=function(e){if(!e)return null;const t=/^#([a-f\d]{3,4})$/i,n=/^#([a-f\d]{6})([a-f\d]{2})?$/i,r=/^rgba?\(\s*([+-]?(?:\d*\.)?\d+(?:e\d+)?)(?=[\s,])\s*(?:,\s*)?([+-]?(?:\d*\.)?\d+(?:e\d+)?)(?=[\s,])\s*(?:,\s*)?([+-]?(?:\d*\.)?\d+(?:e\d+)?)\s*(?:[\s,|/]\s*([+-]?(?:\d*\.)?\d+(?:e\d+)?)(%?)\s*)?\)$/i,o=/^rgba?\(\s*([+-]?[\d.]+)%\s*,?\s*([+-]?[\d.]+)%\s*,?\s*([+-]?[\d.]+)%\s*(?:[\s,|/]\s*([+-]?[\d.]+)(%?)\s*)?\)$/i,s=/^(\w+)$/;let i=[0,0,0,1],a,l,u;if(a=e.match(n)){for(u=a[2],a=a[1],l=0;l<3;l++){const f=l*2;i[l]=Number.parseInt(a.slice(f,f+2),16)}u&&(i[3]=Number.parseInt(u,16)/255)}else if(a=e.match(t)){for(a=a[1],u=a[3],l=0;l<3;l++)i[l]=Number.parseInt(a[l]+a[l],16);u&&(i[3]=Number.parseInt(u+u,16)/255)}else if(a=e.match(r)){for(l=0;l<3;l++)i[l]=Number.parseFloat(a[l+1]);a[4]&&(i[3]=a[5]?Number.parseFloat(a[4])*.01:Number.parseFloat(a[4]))}else if(a=e.match(o)){for(l=0;l<3;l++)i[l]=Math.round(Number.parseFloat(a[l+1])*2.55);a[4]&&(i[3]=a[5]?Number.parseFloat(a[4])*.01:Number.parseFloat(a[4]))}else return(a=e.toLowerCase().match(s))?a[1]==="transparent"?[0,0,0,0]:Object.hasOwn(ct,a[1])?(i=ct[a[1]].slice(),i[3]=1,i):null:null;for(l=0;l<3;l++)i[l]=Me(i[l],0,255);return i[3]=Me(i[3],0,1),i},ae.get.hsl=function(e){if(!e)return null;const t=/^hsla?\(\s*([+-]?(?:\d{0,3}\.)?\d+)(?:deg)?\s*,?\s*([+-]?[\d.]+)%\s*,?\s*([+-]?[\d.]+)%\s*(?:[,|/]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:e[+-]?\d+)?)\s*)?\)$/i,n=e.match(t);if(n){const r=Number.parseFloat(n[4]),o=(Number.parseFloat(n[1])%360+360)%360,s=Me(Number.parseFloat(n[2]),0,100),i=Me(Number.parseFloat(n[3]),0,100),a=Me(Number.isNaN(r)?1:r,0,1);return[o,s,i,a]}return null},ae.get.hwb=function(e){if(!e)return null;const t=/^hwb\(\s*([+-]?\d{0,3}(?:\.\d+)?)(?:deg)?\s*[\s,]\s*([+-]?[\d.]+)%\s*[\s,]\s*([+-]?[\d.]+)%\s*(?:[\s,]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:e[+-]?\d+)?)\s*)?\)$/i,n=e.match(t);if(n){const r=Number.parseFloat(n[4]),o=(Number.parseFloat(n[1])%360+360)%360,s=Me(Number.parseFloat(n[2]),0,100),i=Me(Number.parseFloat(n[3]),0,100),a=Me(Number.isNaN(r)?1:r,0,1);return[o,s,i,a]}return null},ae.to.hex=function(...e){return"#"+kt(e[0])+kt(e[1])+kt(e[2])+(e[3]<1?kt(Math.round(e[3]*255)):"")},ae.to.rgb=function(...e){return e.length<4||e[3]===1?"rgb("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+")":"rgba("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+", "+e[3]+")"},ae.to.rgb.percent=function(...e){const t=Math.round(e[0]/255*100),n=Math.round(e[1]/255*100),r=Math.round(e[2]/255*100);return e.length<4||e[3]===1?"rgb("+t+"%, "+n+"%, "+r+"%)":"rgba("+t+"%, "+n+"%, "+r+"%, "+e[3]+")"},ae.to.hsl=function(...e){return e.length<4||e[3]===1?"hsl("+e[0]+", "+e[1]+"%, "+e[2]+"%)":"hsla("+e[0]+", "+e[1]+"%, "+e[2]+"%, "+e[3]+")"},ae.to.hwb=function(...e){let t="";return e.length>=4&&e[3]!==1&&(t=", "+e[3]),"hwb("+e[0]+", "+e[1]+"%, "+e[2]+"%"+t+")"},ae.to.keyword=function(...e){return Br[e.slice(0,3)]};function Me(e,t,n){return Math.min(Math.max(t,e),n)}function kt(e){const t=Math.round(e).toString(16).toUpperCase();return t.length<2?"0"+t:t}const pn={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]};for(const e in pn)Object.freeze(pn[e]);const ut=Object.freeze(pn),Vr={};for(const e of Object.keys(ut))Vr[ut[e]]=e;const R={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},oklab:{channels:3,labels:["okl","oka","okb"]},lch:{channels:3,labels:"lch"},oklch:{channels:3,labels:["okl","okc","okh"]},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}},Ae=(6/29)**3;function Ye(e){const t=e>.0031308?1.055*e**.4166666666666667-.055:e*12.92;return Math.min(Math.max(0,t),1)}function qe(e){return e>.04045?((e+.055)/1.055)**2.4:e/12.92}for(const e of Object.keys(R)){if(!("channels"in R[e]))throw new Error("missing channels property: "+e);if(!("labels"in R[e]))throw new Error("missing channel labels property: "+e);if(R[e].labels.length!==R[e].channels)throw new Error("channel and label counts mismatch: "+e);const{channels:t,labels:n}=R[e];delete R[e].channels,delete R[e].labels,Object.defineProperty(R[e],"channels",{value:t}),Object.defineProperty(R[e],"labels",{value:n})}R.rgb.hsl=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,o=Math.min(t,n,r),s=Math.max(t,n,r),i=s-o;let a,l;switch(s){case o:{a=0;break}case t:{a=(n-r)/i;break}case n:{a=2+(r-t)/i;break}case r:{a=4+(t-n)/i;break}}a=Math.min(a*60,360),a<0&&(a+=360);const u=(o+s)/2;return s===o?l=0:u<=.5?l=i/(s+o):l=i/(2-s-o),[a,l*100,u*100]},R.rgb.hsv=function(e){let t,n,r,o,s;const i=e[0]/255,a=e[1]/255,l=e[2]/255,u=Math.max(i,a,l),f=u-Math.min(i,a,l),d=function(m){return(u-m)/6/f+1/2};if(f===0)o=0,s=0;else{switch(s=f/u,t=d(i),n=d(a),r=d(l),u){case i:{o=r-n;break}case a:{o=1/3+t-r;break}case l:{o=2/3+n-t;break}}o<0?o+=1:o>1&&(o-=1)}return[o*360,s*100,u*100]},R.rgb.hwb=function(e){const t=e[0],n=e[1];let r=e[2];const o=R.rgb.hsl(e)[0],s=1/255*Math.min(t,Math.min(n,r));return r=1-1/255*Math.max(t,Math.max(n,r)),[o,s*100,r*100]},R.rgb.oklab=function(e){const t=qe(e[0]/255),n=qe(e[1]/255),r=qe(e[2]/255),o=Math.cbrt(.4122214708*t+.5363325363*n+.0514459929*r),s=Math.cbrt(.2119034982*t+.6806995451*n+.1073969566*r),i=Math.cbrt(.0883024619*t+.2817188376*n+.6299787005*r),a=.2104542553*o+.793617785*s-.0040720468*i,l=1.9779984951*o-2.428592205*s+.4505937099*i,u=.0259040371*o+.7827717662*s-.808675766*i;return[a*100,l*100,u*100]},R.rgb.cmyk=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,o=Math.min(1-t,1-n,1-r),s=(1-t-o)/(1-o)||0,i=(1-n-o)/(1-o)||0,a=(1-r-o)/(1-o)||0;return[s*100,i*100,a*100,o*100]};function Ea(e,t){return(e[0]-t[0])**2+(e[1]-t[1])**2+(e[2]-t[2])**2}R.rgb.keyword=function(e){const t=Vr[e];if(t)return t;let n=Number.POSITIVE_INFINITY,r;for(const o of Object.keys(ut)){const s=ut[o],i=Ea(e,s);i<n&&(n=i,r=o)}return r},R.keyword.rgb=function(e){return[...ut[e]]},R.rgb.xyz=function(e){const t=qe(e[0]/255),n=qe(e[1]/255),r=qe(e[2]/255),o=t*.4124564+n*.3575761+r*.1804375,s=t*.2126729+n*.7151522+r*.072175,i=t*.0193339+n*.119192+r*.9503041;return[o*100,s*100,i*100]},R.rgb.lab=function(e){const t=R.rgb.xyz(e);let n=t[0],r=t[1],o=t[2];n/=95.047,r/=100,o/=108.883,n=n>Ae?n**(1/3):7.787*n+16/116,r=r>Ae?r**(1/3):7.787*r+16/116,o=o>Ae?o**(1/3):7.787*o+16/116;const s=116*r-16,i=500*(n-r),a=200*(r-o);return[s,i,a]},R.hsl.rgb=function(e){const t=e[0]/360,n=e[1]/100,r=e[2]/100;let o,s;if(n===0)return s=r*255,[s,s,s];const i=r<.5?r*(1+n):r+n-r*n,a=2*r-i,l=[0,0,0];for(let u=0;u<3;u++)o=t+1/3*-(u-1),o<0&&o++,o>1&&o--,6*o<1?s=a+(i-a)*6*o:2*o<1?s=i:3*o<2?s=a+(i-a)*(2/3-o)*6:s=a,l[u]=s*255;return l},R.hsl.hsv=function(e){const t=e[0];let n=e[1]/100,r=e[2]/100,o=n;const s=Math.max(r,.01);r*=2,n*=r<=1?r:2-r,o*=s<=1?s:2-s;const i=(r+n)/2,a=r===0?2*o/(s+o):2*n/(r+n);return[t,a*100,i*100]},R.hsv.rgb=function(e){const t=e[0]/60,n=e[1]/100;let r=e[2]/100;const o=Math.floor(t)%6,s=t-Math.floor(t),i=255*r*(1-n),a=255*r*(1-n*s),l=255*r*(1-n*(1-s));switch(r*=255,o){case 0:return[r,l,i];case 1:return[a,r,i];case 2:return[i,r,l];case 3:return[i,a,r];case 4:return[l,i,r];case 5:return[r,i,a]}},R.hsv.hsl=function(e){const t=e[0],n=e[1]/100,r=e[2]/100,o=Math.max(r,.01);let s,i;i=(2-n)*r;const a=(2-n)*o;return s=n*o,s/=a<=1?a:2-a,s=s||0,i/=2,[t,s*100,i*100]},R.hwb.rgb=function(e){const t=e[0]/360;let n=e[1]/100,r=e[2]/100;const o=n+r;let s;o>1&&(n/=o,r/=o);const i=Math.floor(6*t),a=1-r;s=6*t-i,i&1&&(s=1-s);const l=n+s*(a-n);let u,f,d;switch(i){default:case 6:case 0:{u=a,f=l,d=n;break}case 1:{u=l,f=a,d=n;break}case 2:{u=n,f=a,d=l;break}case 3:{u=n,f=l,d=a;break}case 4:{u=l,f=n,d=a;break}case 5:{u=a,f=n,d=l;break}}return[u*255,f*255,d*255]},R.cmyk.rgb=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100,o=e[3]/100,s=1-Math.min(1,t*(1-o)+o),i=1-Math.min(1,n*(1-o)+o),a=1-Math.min(1,r*(1-o)+o);return[s*255,i*255,a*255]},R.xyz.rgb=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100;let o,s,i;return o=t*3.2404542+n*-1.5371385+r*-.4985314,s=t*-.969266+n*1.8760108+r*.041556,i=t*.0556434+n*-.2040259+r*1.0572252,o=Ye(o),s=Ye(s),i=Ye(i),[o*255,s*255,i*255]},R.xyz.lab=function(e){let t=e[0],n=e[1],r=e[2];t/=95.047,n/=100,r/=108.883,t=t>Ae?t**(1/3):7.787*t+16/116,n=n>Ae?n**(1/3):7.787*n+16/116,r=r>Ae?r**(1/3):7.787*r+16/116;const o=116*n-16,s=500*(t-n),i=200*(n-r);return[o,s,i]},R.xyz.oklab=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100,o=Math.cbrt(.8189330101*t+.3618667424*n-.1288597137*r),s=Math.cbrt(.0329845436*t+.9293118715*n+.0361456387*r),i=Math.cbrt(.0482003018*t+.2643662691*n+.633851707*r),a=.2104542553*o+.793617785*s-.0040720468*i,l=1.9779984951*o-2.428592205*s+.4505937099*i,u=.0259040371*o+.7827717662*s-.808675766*i;return[a*100,l*100,u*100]},R.oklab.oklch=function(e){return R.lab.lch(e)},R.oklab.xyz=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100,o=(.999999998*t+.396337792*n+.215803758*r)**3,s=(1.000000008*t-.105561342*n-.063854175*r)**3,i=(1.000000055*t-.089484182*n-1.291485538*r)**3,a=1.227013851*o-.55779998*s+.281256149*i,l=-.040580178*o+1.11225687*s-.071676679*i,u=-.076381285*o-.421481978*s+1.58616322*i;return[a*100,l*100,u*100]},R.oklab.rgb=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100,o=(t+.3963377774*n+.2158037573*r)**3,s=(t-.1055613458*n-.0638541728*r)**3,i=(t-.0894841775*n-1.291485548*r)**3,a=Ye(4.0767416621*o-3.3077115913*s+.2309699292*i),l=Ye(-1.2684380046*o+2.6097574011*s-.3413193965*i),u=Ye(-.0041960863*o-.7034186147*s+1.707614701*i);return[a*255,l*255,u*255]},R.oklch.oklab=function(e){return R.lch.lab(e)},R.lab.xyz=function(e){const t=e[0],n=e[1],r=e[2];let o,s,i;s=(t+16)/116,o=n/500+s,i=s-r/200;const a=s**3,l=o**3,u=i**3;return s=a>Ae?a:(s-16/116)/7.787,o=l>Ae?l:(o-16/116)/7.787,i=u>Ae?u:(i-16/116)/7.787,o*=95.047,s*=100,i*=108.883,[o,s,i]},R.lab.lch=function(e){const t=e[0],n=e[1],r=e[2];let o;o=Math.atan2(r,n)*360/2/Math.PI,o<0&&(o+=360);const i=Math.sqrt(n*n+r*r);return[t,i,o]},R.lch.lab=function(e){const t=e[0],n=e[1],o=e[2]/360*2*Math.PI,s=n*Math.cos(o),i=n*Math.sin(o);return[t,s,i]},R.rgb.ansi16=function(e,t=null){const[n,r,o]=e;let s=t===null?R.rgb.hsv(e)[2]:t;if(s=Math.round(s/50),s===0)return 30;let i=30+(Math.round(o/255)<<2|Math.round(r/255)<<1|Math.round(n/255));return s===2&&(i+=60),i},R.hsv.ansi16=function(e){return R.rgb.ansi16(R.hsv.rgb(e),e[2])},R.rgb.ansi256=function(e){const t=e[0],n=e[1],r=e[2];return t>>4===n>>4&&n>>4===r>>4?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(n/255*5)+Math.round(r/255*5)},R.ansi16.rgb=function(e){e=e[0];let t=e%10;if(t===0||t===7)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];const n=(Math.trunc(e>50)+1)*.5,r=(t&1)*n*255,o=(t>>1&1)*n*255,s=(t>>2&1)*n*255;return[r,o,s]},R.ansi256.rgb=function(e){if(e=e[0],e>=232){const s=(e-232)*10+8;return[s,s,s]}e-=16;let t;const n=Math.floor(e/36)/5*255,r=Math.floor((t=e%36)/6)/5*255,o=t%6/5*255;return[n,r,o]},R.rgb.hex=function(e){const n=(((Math.round(e[0])&255)<<16)+((Math.round(e[1])&255)<<8)+(Math.round(e[2])&255)).toString(16).toUpperCase();return"000000".slice(n.length)+n},R.hex.rgb=function(e){const t=e.toString(16).match(/[a-f\d]{6}|[a-f\d]{3}/i);if(!t)return[0,0,0];let n=t[0];t[0].length===3&&(n=[...n].map(a=>a+a).join(""));const r=Number.parseInt(n,16),o=r>>16&255,s=r>>8&255,i=r&255;return[o,s,i]},R.rgb.hcg=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,o=Math.max(Math.max(t,n),r),s=Math.min(Math.min(t,n),r),i=o-s;let a;const l=i<1?s/(1-i):0;return i<=0?a=0:o===t?a=(n-r)/i%6:o===n?a=2+(r-t)/i:a=4+(t-n)/i,a/=6,a%=1,[a*360,i*100,l*100]},R.hsl.hcg=function(e){const t=e[1]/100,n=e[2]/100,r=n<.5?2*t*n:2*t*(1-n);let o=0;return r<1&&(o=(n-.5*r)/(1-r)),[e[0],r*100,o*100]},R.hsv.hcg=function(e){const t=e[1]/100,n=e[2]/100,r=t*n;let o=0;return r<1&&(o=(n-r)/(1-r)),[e[0],r*100,o*100]},R.hcg.rgb=function(e){const t=e[0]/360,n=e[1]/100,r=e[2]/100;if(n===0)return[r*255,r*255,r*255];const o=[0,0,0],s=t%1*6,i=s%1,a=1-i;let l=0;switch(Math.floor(s)){case 0:{o[0]=1,o[1]=i,o[2]=0;break}case 1:{o[0]=a,o[1]=1,o[2]=0;break}case 2:{o[0]=0,o[1]=1,o[2]=i;break}case 3:{o[0]=0,o[1]=a,o[2]=1;break}case 4:{o[0]=i,o[1]=0,o[2]=1;break}default:o[0]=1,o[1]=0,o[2]=a}return l=(1-n)*r,[(n*o[0]+l)*255,(n*o[1]+l)*255,(n*o[2]+l)*255]},R.hcg.hsv=function(e){const t=e[1]/100,n=e[2]/100,r=t+n*(1-t);let o=0;return r>0&&(o=t/r),[e[0],o*100,r*100]},R.hcg.hsl=function(e){const t=e[1]/100,r=e[2]/100*(1-t)+.5*t;let o=0;return r>0&&r<.5?o=t/(2*r):r>=.5&&r<1&&(o=t/(2*(1-r))),[e[0],o*100,r*100]},R.hcg.hwb=function(e){const t=e[1]/100,n=e[2]/100,r=t+n*(1-t);return[e[0],(r-t)*100,(1-r)*100]},R.hwb.hcg=function(e){const t=e[1]/100,r=1-e[2]/100,o=r-t;let s=0;return o<1&&(s=(r-o)/(1-o)),[e[0],o*100,s*100]},R.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},R.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},R.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},R.gray.hsl=function(e){return[0,0,e[0]]},R.gray.hsv=R.gray.hsl,R.gray.hwb=function(e){return[0,100,e[0]]},R.gray.cmyk=function(e){return[0,0,0,e[0]]},R.gray.lab=function(e){return[e[0],0,0]},R.gray.hex=function(e){const t=Math.round(e[0]/100*255)&255,r=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".slice(r.length)+r},R.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]};function ka(){const e={},t=Object.keys(R);for(let{length:n}=t,r=0;r<n;r++)e[t[r]]={distance:-1,parent:null};return e}function Pa(e){const t=ka(),n=[e];for(t[e].distance=0;n.length>0;){const r=n.pop(),o=Object.keys(R[r]);for(let{length:s}=o,i=0;i<s;i++){const a=o[i],l=t[a];l.distance===-1&&(l.distance=t[r].distance+1,l.parent=r,n.unshift(a))}}return t}function Aa(e,t){return function(n){return t(e(n))}}function Ra(e,t){const n=[t[e].parent,e];let r=R[t[e].parent][e],o=t[e].parent;for(;t[o].parent;)n.unshift(t[o].parent),r=Aa(R[t[o].parent][o],r),o=t[o].parent;return r.conversion=n,r}function Na(e){const t=Pa(e),n={},r=Object.keys(t);for(let{length:o}=r,s=0;s<o;s++){const i=r[s];t[i].parent!==null&&(n[i]=Ra(i,t))}return n}const ce={},Oa=Object.keys(R);function Ta(e){const t=function(...n){const r=n[0];return r==null?r:(r.length>1&&(n=r),e(n))};return"conversion"in e&&(t.conversion=e.conversion),t}function Ma(e){const t=function(...n){const r=n[0];if(r==null)return r;r.length>1&&(n=r);const o=e(n);if(typeof o=="object")for(let{length:s}=o,i=0;i<s;i++)o[i]=Math.round(o[i]);return o};return"conversion"in e&&(t.conversion=e.conversion),t}for(const e of Oa){ce[e]={},Object.defineProperty(ce[e],"channels",{value:R[e].channels}),Object.defineProperty(ce[e],"labels",{value:R[e].labels});const t=Na(e),n=Object.keys(t);for(const r of n){const o=t[r];ce[e][r]=Ma(o),ce[e][r].raw=Ta(o)}}const zr=["keyword","gray","hex"],mn={};for(const e of Object.keys(ce))mn[[...ce[e].labels].sort().join("")]=e;const dt={};function re(e,t){if(!(this instanceof re))return new re(e,t);if(t&&t in zr&&(t=null),t&&!(t in ce))throw new Error("Unknown model: "+t);let n,r;if(e==null)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(e instanceof re)this.model=e.model,this.color=[...e.color],this.valpha=e.valpha;else if(typeof e=="string"){const o=ae.get(e);if(o===null)throw new Error("Unable to parse color from string: "+e);this.model=o.model,r=ce[this.model].channels,this.color=o.value.slice(0,r),this.valpha=typeof o.value[r]=="number"?o.value[r]:1}else if(e.length>0){this.model=t||"rgb",r=ce[this.model].channels;const o=Array.prototype.slice.call(e,0,r);this.color=hn(o,r),this.valpha=typeof e[r]=="number"?e[r]:1}else if(typeof e=="number")this.model="rgb",this.color=[e>>16&255,e>>8&255,e&255],this.valpha=1;else{this.valpha=1;const o=Object.keys(e);"alpha"in e&&(o.splice(o.indexOf("alpha"),1),this.valpha=typeof e.alpha=="number"?e.alpha:0);const s=o.sort().join("");if(!(s in mn))throw new Error("Unable to parse color from object: "+JSON.stringify(e));this.model=mn[s];const{labels:i}=ce[this.model],a=[];for(n=0;n<i.length;n++)a.push(e[i[n]]);this.color=hn(a)}if(dt[this.model])for(r=ce[this.model].channels,n=0;n<r;n++){const o=dt[this.model][n];o&&(this.color[n]=o(this.color[n]))}this.valpha=Math.max(0,Math.min(1,this.valpha)),Object.freeze&&Object.freeze(this)}re.prototype={toString(){return this.string()},toJSON(){return this[this.model]()},string(e){let t=this.model in ae.to?this:this.rgb();t=t.round(typeof e=="number"?e:1);const n=t.valpha===1?t.color:[...t.color,this.valpha];return ae.to[t.model](...n)},percentString(e){const t=this.rgb().round(typeof e=="number"?e:1),n=t.valpha===1?t.color:[...t.color,this.valpha];return ae.to.rgb.percent(...n)},array(){return this.valpha===1?[...this.color]:[...this.color,this.valpha]},object(){const e={},{channels:t}=ce[this.model],{labels:n}=ce[this.model];for(let r=0;r<t;r++)e[n[r]]=this.color[r];return this.valpha!==1&&(e.alpha=this.valpha),e},unitArray(){const e=this.rgb().color;return e[0]/=255,e[1]/=255,e[2]/=255,this.valpha!==1&&e.push(this.valpha),e},unitObject(){const e=this.rgb().object();return e.r/=255,e.g/=255,e.b/=255,this.valpha!==1&&(e.alpha=this.valpha),e},round(e){return e=Math.max(e||0,0),new re([...this.color.map(ja(e)),this.valpha],this.model)},alpha(e){return e!==void 0?new re([...this.color,Math.max(0,Math.min(1,e))],this.model):this.valpha},red:oe("rgb",0,le(255)),green:oe("rgb",1,le(255)),blue:oe("rgb",2,le(255)),hue:oe(["hsl","hsv","hsl","hwb","hcg"],0,e=>(e%360+360)%360),saturationl:oe("hsl",1,le(100)),lightness:oe("hsl",2,le(100)),saturationv:oe("hsv",1,le(100)),value:oe("hsv",2,le(100)),chroma:oe("hcg",1,le(100)),gray:oe("hcg",2,le(100)),white:oe("hwb",1,le(100)),wblack:oe("hwb",2,le(100)),cyan:oe("cmyk",0,le(100)),magenta:oe("cmyk",1,le(100)),yellow:oe("cmyk",2,le(100)),black:oe("cmyk",3,le(100)),x:oe("xyz",0,le(95.047)),y:oe("xyz",1,le(100)),z:oe("xyz",2,le(108.833)),l:oe("lab",0,le(100)),a:oe("lab",1),b:oe("lab",2),keyword(e){return e!==void 0?new re(e):ce[this.model].keyword(this.color)},hex(e){return e!==void 0?new re(e):ae.to.hex(...this.rgb().round().color)},hexa(e){if(e!==void 0)return new re(e);const t=this.rgb().round().color;let n=Math.round(this.valpha*255).toString(16).toUpperCase();return n.length===1&&(n="0"+n),ae.to.hex(...t)+n},rgbNumber(){const e=this.rgb().color;return(e[0]&255)<<16|(e[1]&255)<<8|e[2]&255},luminosity(){const e=this.rgb().color,t=[];for(const[n,r]of e.entries()){const o=r/255;t[n]=o<=.04045?o/12.92:((o+.055)/1.055)**2.4}return .2126*t[0]+.7152*t[1]+.0722*t[2]},contrast(e){const t=this.luminosity(),n=e.luminosity();return t>n?(t+.05)/(n+.05):(n+.05)/(t+.05)},level(e){const t=this.contrast(e);return t>=7?"AAA":t>=4.5?"AA":""},isDark(){const e=this.rgb().color;return(e[0]*2126+e[1]*7152+e[2]*722)/1e4<128},isLight(){return!this.isDark()},negate(){const e=this.rgb();for(let t=0;t<3;t++)e.color[t]=255-e.color[t];return e},lighten(e){const t=this.hsl();return t.color[2]+=t.color[2]*e,t},darken(e){const t=this.hsl();return t.color[2]-=t.color[2]*e,t},saturate(e){const t=this.hsl();return t.color[1]+=t.color[1]*e,t},desaturate(e){const t=this.hsl();return t.color[1]-=t.color[1]*e,t},whiten(e){const t=this.hwb();return t.color[1]+=t.color[1]*e,t},blacken(e){const t=this.hwb();return t.color[2]+=t.color[2]*e,t},grayscale(){const e=this.rgb().color,t=e[0]*.3+e[1]*.59+e[2]*.11;return re.rgb(t,t,t)},fade(e){return this.alpha(this.valpha-this.valpha*e)},opaquer(e){return this.alpha(this.valpha+this.valpha*e)},rotate(e){const t=this.hsl();let n=t.color[0];return n=(n+e)%360,n=n<0?360+n:n,t.color[0]=n,t},mix(e,t){if(!e||!e.rgb)throw new Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof e);const n=e.rgb(),r=this.rgb(),o=t===void 0?.5:t,s=2*o-1,i=n.alpha()-r.alpha(),a=((s*i===-1?s:(s+i)/(1+s*i))+1)/2,l=1-a;return re.rgb(a*n.red()+l*r.red(),a*n.green()+l*r.green(),a*n.blue()+l*r.blue(),n.alpha()*o+r.alpha()*(1-o))}};for(const e of Object.keys(ce)){if(zr.includes(e))continue;const{channels:t}=ce[e];re.prototype[e]=function(...n){return this.model===e?new re(this):n.length>0?new re(n,e):new re([...La(ce[this.model][e].raw(this.color)),this.valpha],e)},re[e]=function(...n){let r=n[0];return typeof r=="number"&&(r=hn(n,t)),new re(r,e)}}function Ia(e,t){return Number(e.toFixed(t))}function ja(e){return function(t){return Ia(t,e)}}function oe(e,t,n){e=Array.isArray(e)?e:[e];for(const r of e)(dt[r]||(dt[r]=[]))[t]=n;return e=e[0],function(r){let o;return r!==void 0?(n&&(r=n(r)),o=this[e](),o.color[t]=r,o):(o=this[e]().color[t],n&&(o=n(o)),o)}}function le(e){return function(t){return Math.max(0,Math.min(e,t))}}function La(e){return Array.isArray(e)?e:[e]}function hn(e,t){for(let n=0;n<t;n++)typeof e[n]!="number"&&(e[n]=0);return e}function $a(e){const t=Da(e),n=c.forwardRef((r,o)=>{const{children:s,...i}=r,a=c.Children.toArray(s),l=a.find(Ba);if(l){const u=l.props.children,f=a.map(d=>d===l?c.Children.count(u)>1?c.Children.only(null):c.isValidElement(u)?u.props.children:null:d);return g.jsx(t,{...i,ref:o,children:c.isValidElement(u)?c.cloneElement(u,void 0,f):null})}return g.jsx(t,{...i,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}function Da(e){const t=c.forwardRef((n,r)=>{const{children:o,...s}=n;if(c.isValidElement(o)){const i=za(o),a=Va(s,o.props);return o.type!==c.Fragment&&(a.ref=r?ve(r,i):i),c.cloneElement(o,a)}return c.Children.count(o)>1?c.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Fa=Symbol("radix.slottable");function Ba(e){return c.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Fa}function Va(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]=(...a)=>{const l=s(...a);return o(...a),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function za(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 Wa=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Ha=Wa.reduce((e,t)=>{const n=$a(`Primitive.${t}`),r=c.forwardRef((o,s)=>{const{asChild:i,...a}=o,l=i?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),g.jsx(l,{...a,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),Wr=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"}),Ua="VisuallyHidden",Ga=c.forwardRef((e,t)=>g.jsx(Ha.span,{...e,ref:t,style:{...Wr,...e.style}}));Ga.displayName=Ua;function Ka(e,t=[]){let n=[];function r(s,i){const a=c.createContext(i),l=n.length;n=[...n,i];const u=d=>{var y;const{scope:m,children:h,...v}=d,p=((y=m==null?void 0:m[e])==null?void 0:y[l])||a,b=c.useMemo(()=>v,Object.values(v));return g.jsx(p.Provider,{value:b,children:h})};u.displayName=s+"Provider";function f(d,m){var p;const h=((p=m==null?void 0:m[e])==null?void 0:p[l])||a,v=c.useContext(h);if(v)return v;if(i!==void 0)return i;throw new Error(`\`${d}\` must be used within \`${s}\``)}return[u,f]}const o=()=>{const s=n.map(i=>c.createContext(i));return function(a){const l=(a==null?void 0:a[e])||s;return c.useMemo(()=>({[`__scope${e}`]:{...a,[e]:l}}),[a,l])}};return o.scopeName=e,[r,Ya(o,...t)]}function Ya(...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 i=r.reduce((a,{useScope:l,scopeName:u})=>{const d=l(s)[`__scope${u}`];return{...a,...d}},{});return c.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}function Hr(e){const t=qa(e),n=c.forwardRef((r,o)=>{const{children:s,...i}=r,a=c.Children.toArray(s),l=a.find(Za);if(l){const u=l.props.children,f=a.map(d=>d===l?c.Children.count(u)>1?c.Children.only(null):c.isValidElement(u)?u.props.children:null:d);return g.jsx(t,{...i,ref:o,children:c.isValidElement(u)?c.cloneElement(u,void 0,f):null})}return g.jsx(t,{...i,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}function qa(e){const t=c.forwardRef((n,r)=>{const{children:o,...s}=n;if(c.isValidElement(o)){const i=Qa(o),a=Ja(s,o.props);return o.type!==c.Fragment&&(a.ref=r?ve(r,i):i),c.cloneElement(o,a)}return c.Children.count(o)>1?c.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Xa=Symbol("radix.slottable");function Za(e){return c.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Xa}function Ja(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]=(...a)=>{const l=s(...a);return o(...a),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function Qa(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)}function Ur(e){const t=e+"CollectionProvider",[n,r]=Ka(t),[o,s]=n(t,{collectionRef:{current:null},itemMap:new Map}),i=p=>{const{scope:b,children:y}=p,x=V.useRef(null),w=V.useRef(new Map).current;return g.jsx(o,{scope:b,itemMap:w,collectionRef:x,children:y})};i.displayName=t;const a=e+"CollectionSlot",l=Hr(a),u=V.forwardRef((p,b)=>{const{scope:y,children:x}=p,w=s(a,y),C=ne(b,w.collectionRef);return g.jsx(l,{ref:C,children:x})});u.displayName=a;const f=e+"CollectionItemSlot",d="data-radix-collection-item",m=Hr(f),h=V.forwardRef((p,b)=>{const{scope:y,children:x,...w}=p,C=V.useRef(null),E=ne(b,C),N=s(f,y);return V.useEffect(()=>(N.itemMap.set(C,{ref:C,...w}),()=>void N.itemMap.delete(C))),g.jsx(m,{[d]:"",ref:E,children:x})});h.displayName=f;function v(p){const b=s(e+"CollectionConsumer",p);return V.useCallback(()=>{const x=b.collectionRef.current;if(!x)return[];const w=Array.from(x.querySelectorAll(`[${d}]`));return Array.from(b.itemMap.values()).sort((N,A)=>w.indexOf(N.ref.current)-w.indexOf(A.ref.current))},[b.collectionRef,b.itemMap])}return[{Provider:i,Slot:u,ItemSlot:h},v,r]}function ee(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 el=c[" useInsertionEffect ".trim().toString()]||ue;function gn({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,s,i]=tl({defaultProp:t,onChange:n}),a=e!==void 0,l=a?e:o;{const f=c.useRef(e!==void 0);c.useEffect(()=>{const d=f.current;d!==a&&console.warn(`${r} is changing from ${d?"controlled":"uncontrolled"} to ${a?"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=a},[a,r])}const u=c.useCallback(f=>{var d;if(a){const m=nl(f)?f(e):f;m!==e&&((d=i.current)==null||d.call(i,m))}else s(f)},[a,e,s,i]);return[l,u]}function tl({defaultProp:e,onChange:t}){const[n,r]=c.useState(e),o=c.useRef(n),s=c.useRef(t);return el(()=>{s.current=t},[t]),c.useEffect(()=>{var i;o.current!==n&&((i=s.current)==null||i.call(s,n),o.current=n)},[n,o]),[n,r,s]}function nl(e){return typeof e=="function"}var rl=c[" useId ".trim().toString()]||(()=>{}),ol=0;function vn(e){const[t,n]=c.useState(rl());return ue(()=>{e||n(r=>r??String(ol++))},[e]),e||(t?`radix-${t}`:"")}var sl=c.createContext(void 0);function Gr(e){const t=c.useContext(sl);return e||t||"ltr"}function il(e){const t=al(e),n=c.forwardRef((r,o)=>{const{children:s,...i}=r,a=c.Children.toArray(s),l=a.find(cl);if(l){const u=l.props.children,f=a.map(d=>d===l?c.Children.count(u)>1?c.Children.only(null):c.isValidElement(u)?u.props.children:null:d);return g.jsx(t,{...i,ref:o,children:c.isValidElement(u)?c.cloneElement(u,void 0,f):null})}return g.jsx(t,{...i,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}function al(e){const t=c.forwardRef((n,r)=>{const{children:o,...s}=n;if(c.isValidElement(o)){const i=dl(o),a=ul(s,o.props);return o.type!==c.Fragment&&(a.ref=r?ve(r,i):i),c.cloneElement(o,a)}return c.Children.count(o)>1?c.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var ll=Symbol("radix.slottable");function cl(e){return c.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===ll}function ul(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]=(...a)=>{const l=s(...a);return o(...a),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function dl(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 fl=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Kr=fl.reduce((e,t)=>{const n=il(`Primitive.${t}`),r=c.forwardRef((o,s)=>{const{asChild:i,...a}=o,l=i?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),g.jsx(l,{...a,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function pl(e,t){e&&St.flushSync(()=>e.dispatchEvent(t))}function ml(e,t=globalThis==null?void 0:globalThis.document){const n=Te(e);c.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 hl="DismissableLayer",bn="dismissableLayer.update",gl="dismissableLayer.pointerDownOutside",vl="dismissableLayer.focusOutside",Yr,qr=c.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Xr=c.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:s,onInteractOutside:i,onDismiss:a,...l}=e,u=c.useContext(qr),[f,d]=c.useState(null),m=(f==null?void 0:f.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,h]=c.useState({}),v=ne(t,A=>d(A)),p=Array.from(u.layers),[b]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),y=p.indexOf(b),x=f?p.indexOf(f):-1,w=u.layersWithOutsidePointerEventsDisabled.size>0,C=x>=y,E=xl(A=>{const k=A.target,$=[...u.branches].some(B=>B.contains(k));!C||$||(o==null||o(A),i==null||i(A),A.defaultPrevented||a==null||a())},m),N=wl(A=>{const k=A.target;[...u.branches].some(B=>B.contains(k))||(s==null||s(A),i==null||i(A),A.defaultPrevented||a==null||a())},m);return ml(A=>{x===u.layers.size-1&&(r==null||r(A),!A.defaultPrevented&&a&&(A.preventDefault(),a()))},m),c.useEffect(()=>{if(f)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(Yr=m.body.style.pointerEvents,m.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(f)),u.layers.add(f),Zr(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(m.body.style.pointerEvents=Yr)}},[f,m,n,u]),c.useEffect(()=>()=>{f&&(u.layers.delete(f),u.layersWithOutsidePointerEventsDisabled.delete(f),Zr())},[f,u]),c.useEffect(()=>{const A=()=>h({});return document.addEventListener(bn,A),()=>document.removeEventListener(bn,A)},[]),g.jsx(Kr.div,{...l,ref:v,style:{pointerEvents:w?C?"auto":"none":void 0,...e.style},onFocusCapture:ee(e.onFocusCapture,N.onFocusCapture),onBlurCapture:ee(e.onBlurCapture,N.onBlurCapture),onPointerDownCapture:ee(e.onPointerDownCapture,E.onPointerDownCapture)})});Xr.displayName=hl;var bl="DismissableLayerBranch",yl=c.forwardRef((e,t)=>{const n=c.useContext(qr),r=c.useRef(null),o=ne(t,r);return c.useEffect(()=>{const s=r.current;if(s)return n.branches.add(s),()=>{n.branches.delete(s)}},[n.branches]),g.jsx(Kr.div,{...e,ref:o})});yl.displayName=bl;function xl(e,t=globalThis==null?void 0:globalThis.document){const n=Te(e),r=c.useRef(!1),o=c.useRef(()=>{});return c.useEffect(()=>{const s=a=>{if(a.target&&!r.current){let l=function(){Jr(gl,n,u,{discrete:!0})};const u={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=l,t.addEventListener("click",o.current,{once:!0})):l()}else t.removeEventListener("click",o.current);r.current=!1},i=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",s),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function wl(e,t=globalThis==null?void 0:globalThis.document){const n=Te(e),r=c.useRef(!1);return c.useEffect(()=>{const o=s=>{s.target&&!r.current&&Jr(vl,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 Zr(){const e=new CustomEvent(bn);document.dispatchEvent(e)}function Jr(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?pl(o,s):o.dispatchEvent(s)}function Sl(e){const t=Cl(e),n=c.forwardRef((r,o)=>{const{children:s,...i}=r,a=c.Children.toArray(s),l=a.find(El);if(l){const u=l.props.children,f=a.map(d=>d===l?c.Children.count(u)>1?c.Children.only(null):c.isValidElement(u)?u.props.children:null:d);return g.jsx(t,{...i,ref:o,children:c.isValidElement(u)?c.cloneElement(u,void 0,f):null})}return g.jsx(t,{...i,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}function Cl(e){const t=c.forwardRef((n,r)=>{const{children:o,...s}=n;if(c.isValidElement(o)){const i=Pl(o),a=kl(s,o.props);return o.type!==c.Fragment&&(a.ref=r?ve(r,i):i),c.cloneElement(o,a)}return c.Children.count(o)>1?c.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var _l=Symbol("radix.slottable");function El(e){return c.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===_l}function kl(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]=(...a)=>{const l=s(...a);return o(...a),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function Pl(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 Al=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Rl=Al.reduce((e,t)=>{const n=Sl(`Primitive.${t}`),r=c.forwardRef((o,s)=>{const{asChild:i,...a}=o,l=i?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),g.jsx(l,{...a,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),yn="focusScope.autoFocusOnMount",xn="focusScope.autoFocusOnUnmount",Qr={bubbles:!1,cancelable:!0},Nl="FocusScope",eo=c.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:s,...i}=e,[a,l]=c.useState(null),u=Te(o),f=Te(s),d=c.useRef(null),m=ne(t,p=>l(p)),h=c.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;c.useEffect(()=>{if(r){let p=function(w){if(h.paused||!a)return;const C=w.target;a.contains(C)?d.current=C:Ie(d.current,{select:!0})},b=function(w){if(h.paused||!a)return;const C=w.relatedTarget;C!==null&&(a.contains(C)||Ie(d.current,{select:!0}))},y=function(w){if(document.activeElement===document.body)for(const E of w)E.removedNodes.length>0&&Ie(a)};document.addEventListener("focusin",p),document.addEventListener("focusout",b);const x=new MutationObserver(y);return a&&x.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",p),document.removeEventListener("focusout",b),x.disconnect()}}},[r,a,h.paused]),c.useEffect(()=>{if(a){ro.add(h);const p=document.activeElement;if(!a.contains(p)){const y=new CustomEvent(yn,Qr);a.addEventListener(yn,u),a.dispatchEvent(y),y.defaultPrevented||(Ol(Ll(to(a)),{select:!0}),document.activeElement===p&&Ie(a))}return()=>{a.removeEventListener(yn,u),setTimeout(()=>{const y=new CustomEvent(xn,Qr);a.addEventListener(xn,f),a.dispatchEvent(y),y.defaultPrevented||Ie(p??document.body,{select:!0}),a.removeEventListener(xn,f),ro.remove(h)},0)}}},[a,u,f,h]);const v=c.useCallback(p=>{if(!n&&!r||h.paused)return;const b=p.key==="Tab"&&!p.altKey&&!p.ctrlKey&&!p.metaKey,y=document.activeElement;if(b&&y){const x=p.currentTarget,[w,C]=Tl(x);w&&C?!p.shiftKey&&y===C?(p.preventDefault(),n&&Ie(w,{select:!0})):p.shiftKey&&y===w&&(p.preventDefault(),n&&Ie(C,{select:!0})):y===x&&p.preventDefault()}},[n,r,h.paused]);return g.jsx(Rl.div,{tabIndex:-1,...i,ref:m,onKeyDown:v})});eo.displayName=Nl;function Ol(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Ie(r,{select:t}),document.activeElement!==n)return}function Tl(e){const t=to(e),n=no(t,e),r=no(t.reverse(),e);return[n,r]}function to(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 no(e,t){for(const n of e)if(!Ml(n,{upTo:t}))return n}function Ml(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 Il(e){return e instanceof HTMLInputElement&&"select"in e}function Ie(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&Il(e)&&t&&e.select()}}var ro=jl();function jl(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=oo(e,t),e.unshift(t)},remove(t){var n;e=oo(e,t),(n=e[0])==null||n.resume()}}}function oo(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function Ll(e){return e.filter(t=>t.tagName!=="A")}function $l(e){const t=Dl(e),n=c.forwardRef((r,o)=>{const{children:s,...i}=r,a=c.Children.toArray(s),l=a.find(Bl);if(l){const u=l.props.children,f=a.map(d=>d===l?c.Children.count(u)>1?c.Children.only(null):c.isValidElement(u)?u.props.children:null:d);return g.jsx(t,{...i,ref:o,children:c.isValidElement(u)?c.cloneElement(u,void 0,f):null})}return g.jsx(t,{...i,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}function Dl(e){const t=c.forwardRef((n,r)=>{const{children:o,...s}=n;if(c.isValidElement(o)){const i=zl(o),a=Vl(s,o.props);return o.type!==c.Fragment&&(a.ref=r?ve(r,i):i),c.cloneElement(o,a)}return c.Children.count(o)>1?c.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Fl=Symbol("radix.slottable");function Bl(e){return c.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Fl}function Vl(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]=(...a)=>{const l=s(...a);return o(...a),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function zl(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 Wl=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Hl=Wl.reduce((e,t)=>{const n=$l(`Primitive.${t}`),r=c.forwardRef((o,s)=>{const{asChild:i,...a}=o,l=i?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),g.jsx(l,{...a,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),Ul="Portal",so=c.forwardRef((e,t)=>{var a;const{container:n,...r}=e,[o,s]=c.useState(!1);ue(()=>s(!0),[]);const i=n||o&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return i?Zn.createPortal(g.jsx(Hl.div,{...r,ref:t}),i):null});so.displayName=Ul;var wn=0;function Gl(){c.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??io()),document.body.insertAdjacentElement("beforeend",e[1]??io()),wn++,()=>{wn===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),wn--}},[])}function io(){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 we=function(){return we=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},we.apply(this,arguments)};function ao(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 Kl(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))}typeof SuppressedError=="function"&&SuppressedError;var Pt="right-scroll-bar-position",At="width-before-scroll-bar",Yl="with-scroll-bars-hidden",ql="--removed-body-scroll-bar-size";function Sn(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Xl(e,t){var n=V.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 Zl=typeof window<"u"?c.useLayoutEffect:c.useEffect,lo=new WeakMap;function Jl(e,t){var n=Xl(t||null,function(r){return e.forEach(function(o){return Sn(o,r)})});return Zl(function(){var r=lo.get(n);if(r){var o=new Set(r),s=new Set(e),i=n.current;o.forEach(function(a){s.has(a)||Sn(a,null)}),s.forEach(function(a){o.has(a)||Sn(a,i)})}lo.set(n,e)},[e]),n}function Ql(e){return e}function ec(e,t){t===void 0&&(t=Ql);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 i=t(s,r);return n.push(i),function(){n=n.filter(function(a){return a!==i})}},assignSyncMedium:function(s){for(r=!0;n.length;){var i=n;n=[],i.forEach(s)}n={push:function(a){return s(a)},filter:function(){return n}}},assignMedium:function(s){r=!0;var i=[];if(n.length){var a=n;n=[],a.forEach(s),i=n}var l=function(){var f=i;i=[],f.forEach(s)},u=function(){return Promise.resolve().then(l)};u(),n={push:function(f){i.push(f),u()},filter:function(f){return i=i.filter(f),n}}}};return o}function tc(e){e===void 0&&(e={});var t=ec(null);return t.options=we({async:!0,ssr:!1},e),t}var co=function(e){var t=e.sideCar,n=ao(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 c.createElement(r,we({},n))};co.isSideCarExport=!0;function nc(e,t){return e.useMedium(t),co}var uo=tc(),Cn=function(){},Rt=c.forwardRef(function(e,t){var n=c.useRef(null),r=c.useState({onScrollCapture:Cn,onWheelCapture:Cn,onTouchMoveCapture:Cn}),o=r[0],s=r[1],i=e.forwardProps,a=e.children,l=e.className,u=e.removeScrollBar,f=e.enabled,d=e.shards,m=e.sideCar,h=e.noRelative,v=e.noIsolation,p=e.inert,b=e.allowPinchZoom,y=e.as,x=y===void 0?"div":y,w=e.gapMode,C=ao(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),E=m,N=Jl([n,t]),A=we(we({},C),o);return c.createElement(c.Fragment,null,f&&c.createElement(E,{sideCar:uo,removeScrollBar:u,shards:d,noRelative:h,noIsolation:v,inert:p,setCallbacks:s,allowPinchZoom:!!b,lockRef:n,gapMode:w}),i?c.cloneElement(c.Children.only(a),we(we({},A),{ref:N})):c.createElement(x,we({},A,{className:l,ref:N}),a))});Rt.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Rt.classNames={fullWidth:At,zeroRight:Pt};var fo,rc=function(){if(fo)return fo;if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function oc(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=rc();return t&&e.setAttribute("nonce",t),e}function sc(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function ic(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var ac=function(){var e=0,t=null;return{add:function(n){e==0&&(t=oc())&&(sc(t,n),ic(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},lc=function(){var e=ac();return function(t,n){c.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},po=function(){var e=lc(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},cc={left:0,top:0,right:0,gap:0},_n=function(e){return parseInt(e||"",10)||0},uc=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[_n(n),_n(r),_n(o)]},dc=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return cc;var t=uc(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])}},fc=po(),Xe="data-scroll-locked",pc=function(e,t,n,r){var o=e.left,s=e.top,i=e.right,a=e.gap;return n===void 0&&(n="margin"),`
89
- .`.concat(Yl,` {
93
+ */var xs;function pu(){return xs||(xs=1,process.env.NODE_ENV!=="production"&&function(){function e(v,g){return v===g&&(v!==0||1/v===1/g)||v!==v&&g!==g}function t(v,g){d||o.startTransition===void 0||(d=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var m=g();if(!u){var x=g();s(m,x)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),u=!0)}x=i({inst:{value:m,getSnapshot:g}});var y=x[0].inst,b=x[1];return l(function(){y.value=m,y.getSnapshot=g,n(y)&&b({inst:y})},[v,m,g]),a(function(){return n(y)&&b({inst:y}),v(function(){n(y)&&b({inst:y})})},[v]),c(m),m}function n(v){var g=v.getSnapshot;v=v.value;try{var m=g();return!s(v,m)}catch{return!0}}function r(v,g){return g()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var o=$,s=typeof Object.is=="function"?Object.is:e,i=o.useState,a=o.useEffect,l=o.useLayoutEffect,c=o.useDebugValue,d=!1,u=!1,p=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?r:t;lr.useSyncExternalStore=o.useSyncExternalStore!==void 0?o.useSyncExternalStore:p,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),lr}process.env.NODE_ENV==="production"?ir.exports=fu():ir.exports=pu();var mu=ir.exports;function hu(){return mu.useSyncExternalStore(gu,()=>!0,()=>!1)}function gu(){return()=>{}}var cr="Avatar",[vu,vv]=cu(cr),[bu,Ss]=vu(cr),Es=f.forwardRef((e,t)=>{const{__scopeAvatar:n,...r}=e,[o,s]=f.useState("idle");return w.jsx(bu,{scope:n,imageLoadingStatus:o,onImageLoadingStatusChange:s,children:w.jsx(sr.span,{...r,ref:t})})});Es.displayName=cr;var Cs="AvatarImage",Ts=f.forwardRef((e,t)=>{const{__scopeAvatar:n,src:r,onLoadingStatusChange:o=()=>{},...s}=e,i=Ss(Cs,n),a=yu(r,s),l=Je(c=>{o(c),i.onImageLoadingStatusChange(c)});return be(()=>{a!=="idle"&&l(a)},[a,l]),a==="loaded"?w.jsx(sr.img,{...s,ref:t,src:r}):null});Ts.displayName=Cs;var Ps="AvatarFallback",_s=f.forwardRef((e,t)=>{const{__scopeAvatar:n,delayMs:r,...o}=e,s=Ss(Ps,n),[i,a]=f.useState(r===void 0);return f.useEffect(()=>{if(r!==void 0){const l=window.setTimeout(()=>a(!0),r);return()=>window.clearTimeout(l)}},[r]),i&&s.imageLoadingStatus!=="loaded"?w.jsx(sr.span,{...o,ref:t}):null});_s.displayName=Ps;function ks(e,t){return e?t?(e.src!==t&&(e.src=t),e.complete&&e.naturalWidth>0?"loaded":"loading"):"error":"idle"}function yu(e,{referrerPolicy:t,crossOrigin:n}){const r=hu(),o=f.useRef(null),s=(()=>r?(o.current||(o.current=new window.Image),o.current):null)(),[i,a]=f.useState(()=>ks(s,e));return be(()=>{a(ks(s,e))},[s,e]),be(()=>{const l=u=>()=>{a(u)};if(!s)return;const c=l("loaded"),d=l("error");return s.addEventListener("load",c),s.addEventListener("error",d),t&&(s.referrerPolicy=t),typeof n=="string"&&(s.crossOrigin=n),()=>{s.removeEventListener("load",c),s.removeEventListener("error",d)}},[s,n,t]),i}var wu=Es,xu=Ts,Su=_s;function Eu({className:e,...t}){return w.jsx(wu,{"data-slot":"avatar",className:X("relative flex size-8 shrink-0 overflow-hidden rounded-full border-2",e),...t})}function Cu({className:e,...t}){return w.jsx(xu,{"data-slot":"avatar-image",className:X("aspect-square size-full",e),...t})}function Tu({className:e,...t}){return w.jsx(Su,{"data-slot":"avatar-fallback",className:X("bg-muted flex size-full items-center justify-center rounded-full",e),...t})}const dr={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]};for(const e in dr)Object.freeze(dr[e]);const Lt=Object.freeze(dr),Ms=Object.create(null);for(const e in Lt)Object.hasOwn(Lt,e)&&(Ms[Lt[e]]=e);const pe={to:{},get:{}};pe.get=function(e){const t=e.slice(0,3).toLowerCase();let n,r;switch(t){case"hsl":{n=pe.get.hsl(e),r="hsl";break}case"hwb":{n=pe.get.hwb(e),r="hwb";break}default:{n=pe.get.rgb(e),r="rgb";break}}return n?{model:r,value:n}:null},pe.get.rgb=function(e){if(!e)return null;const t=/^#([a-f\d]{3,4})$/i,n=/^#([a-f\d]{6})([a-f\d]{2})?$/i,r=/^rgba?\(\s*([+-]?(?:\d*\.)?\d+(?:e\d+)?)(?=[\s,])\s*(?:,\s*)?([+-]?(?:\d*\.)?\d+(?:e\d+)?)(?=[\s,])\s*(?:,\s*)?([+-]?(?:\d*\.)?\d+(?:e\d+)?)\s*(?:[\s,|/]\s*([+-]?(?:\d*\.)?\d+(?:e\d+)?)(%?)\s*)?\)$/i,o=/^rgba?\(\s*([+-]?[\d.]+)%\s*,?\s*([+-]?[\d.]+)%\s*,?\s*([+-]?[\d.]+)%\s*(?:[\s,|/]\s*([+-]?[\d.]+)(%?)\s*)?\)$/i,s=/^(\w+)$/;let i=[0,0,0,1],a,l,c;if(a=e.match(n)){for(c=a[2],a=a[1],l=0;l<3;l++){const d=l*2;i[l]=Number.parseInt(a.slice(d,d+2),16)}c&&(i[3]=Number.parseInt(c,16)/255)}else if(a=e.match(t)){for(a=a[1],c=a[3],l=0;l<3;l++)i[l]=Number.parseInt(a[l]+a[l],16);c&&(i[3]=Number.parseInt(c+c,16)/255)}else if(a=e.match(r)){for(l=0;l<3;l++)i[l]=Number.parseFloat(a[l+1]);a[4]&&(i[3]=a[5]?Number.parseFloat(a[4])*.01:Number.parseFloat(a[4]))}else if(a=e.match(o)){for(l=0;l<3;l++)i[l]=Math.round(Number.parseFloat(a[l+1])*2.55);a[4]&&(i[3]=a[5]?Number.parseFloat(a[4])*.01:Number.parseFloat(a[4]))}else return(a=e.toLowerCase().match(s))?a[1]==="transparent"?[0,0,0,0]:Object.hasOwn(Lt,a[1])?(i=Lt[a[1]].slice(),i[3]=1,i):null:null;for(l=0;l<3;l++)i[l]=Qe(i[l],0,255);return i[3]=Qe(i[3],0,1),i},pe.get.hsl=function(e){if(!e)return null;const t=/^hsla?\(\s*([+-]?(?:\d{0,3}\.)?\d+)(?:deg)?\s*,?\s*([+-]?[\d.]+)%\s*,?\s*([+-]?[\d.]+)%\s*(?:[,|/]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:e[+-]?\d+)?)\s*)?\)$/i,n=e.match(t);if(n){const r=Number.parseFloat(n[4]),o=(Number.parseFloat(n[1])%360+360)%360,s=Qe(Number.parseFloat(n[2]),0,100),i=Qe(Number.parseFloat(n[3]),0,100),a=Qe(Number.isNaN(r)?1:r,0,1);return[o,s,i,a]}return null},pe.get.hwb=function(e){if(!e)return null;const t=/^hwb\(\s*([+-]?\d{0,3}(?:\.\d+)?)(?:deg)?\s*[\s,]\s*([+-]?[\d.]+)%\s*[\s,]\s*([+-]?[\d.]+)%\s*(?:[\s,]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:e[+-]?\d+)?)\s*)?\)$/i,n=e.match(t);if(n){const r=Number.parseFloat(n[4]),o=(Number.parseFloat(n[1])%360+360)%360,s=Qe(Number.parseFloat(n[2]),0,100),i=Qe(Number.parseFloat(n[3]),0,100),a=Qe(Number.isNaN(r)?1:r,0,1);return[o,s,i,a]}return null},pe.to.hex=function(...e){return"#"+an(e[0])+an(e[1])+an(e[2])+(e[3]<1?an(Math.round(e[3]*255)):"")},pe.to.rgb=function(...e){return e.length<4||e[3]===1?"rgb("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+")":"rgba("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+", "+e[3]+")"},pe.to.rgb.percent=function(...e){const t=Math.round(e[0]/255*100),n=Math.round(e[1]/255*100),r=Math.round(e[2]/255*100);return e.length<4||e[3]===1?"rgb("+t+"%, "+n+"%, "+r+"%)":"rgba("+t+"%, "+n+"%, "+r+"%, "+e[3]+")"},pe.to.hsl=function(...e){return e.length<4||e[3]===1?"hsl("+e[0]+", "+e[1]+"%, "+e[2]+"%)":"hsla("+e[0]+", "+e[1]+"%, "+e[2]+"%, "+e[3]+")"},pe.to.hwb=function(...e){let t="";return e.length>=4&&e[3]!==1&&(t=", "+e[3]),"hwb("+e[0]+", "+e[1]+"%, "+e[2]+"%"+t+")"},pe.to.keyword=function(...e){return Ms[e.slice(0,3)]};function Qe(e,t,n){return Math.min(Math.max(t,e),n)}function an(e){const t=Math.round(e).toString(16).toUpperCase();return t.length<2?"0"+t:t}const ur={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]};for(const e in ur)Object.freeze(ur[e]);const jt=Object.freeze(ur),As={};for(const e of Object.keys(jt))As[jt[e]]=e;const F={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},oklab:{channels:3,labels:["okl","oka","okb"]},lch:{channels:3,labels:"lch"},oklch:{channels:3,labels:["okl","okc","okh"]},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}},He=(6/29)**3;function gt(e){const t=e>.0031308?1.055*e**.4166666666666667-.055:e*12.92;return Math.min(Math.max(0,t),1)}function vt(e){return e>.04045?((e+.055)/1.055)**2.4:e/12.92}for(const e of Object.keys(F)){if(!("channels"in F[e]))throw new Error("missing channels property: "+e);if(!("labels"in F[e]))throw new Error("missing channel labels property: "+e);if(F[e].labels.length!==F[e].channels)throw new Error("channel and label counts mismatch: "+e);const{channels:t,labels:n}=F[e];delete F[e].channels,delete F[e].labels,Object.defineProperty(F[e],"channels",{value:t}),Object.defineProperty(F[e],"labels",{value:n})}F.rgb.hsl=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,o=Math.min(t,n,r),s=Math.max(t,n,r),i=s-o;let a,l;switch(s){case o:{a=0;break}case t:{a=(n-r)/i;break}case n:{a=2+(r-t)/i;break}case r:{a=4+(t-n)/i;break}}a=Math.min(a*60,360),a<0&&(a+=360);const c=(o+s)/2;return s===o?l=0:c<=.5?l=i/(s+o):l=i/(2-s-o),[a,l*100,c*100]},F.rgb.hsv=function(e){let t,n,r,o,s;const i=e[0]/255,a=e[1]/255,l=e[2]/255,c=Math.max(i,a,l),d=c-Math.min(i,a,l),u=function(p){return(c-p)/6/d+1/2};if(d===0)o=0,s=0;else{switch(s=d/c,t=u(i),n=u(a),r=u(l),c){case i:{o=r-n;break}case a:{o=1/3+t-r;break}case l:{o=2/3+n-t;break}}o<0?o+=1:o>1&&(o-=1)}return[o*360,s*100,c*100]},F.rgb.hwb=function(e){const t=e[0],n=e[1];let r=e[2];const o=F.rgb.hsl(e)[0],s=1/255*Math.min(t,Math.min(n,r));return r=1-1/255*Math.max(t,Math.max(n,r)),[o,s*100,r*100]},F.rgb.oklab=function(e){const t=vt(e[0]/255),n=vt(e[1]/255),r=vt(e[2]/255),o=Math.cbrt(.4122214708*t+.5363325363*n+.0514459929*r),s=Math.cbrt(.2119034982*t+.6806995451*n+.1073969566*r),i=Math.cbrt(.0883024619*t+.2817188376*n+.6299787005*r),a=.2104542553*o+.793617785*s-.0040720468*i,l=1.9779984951*o-2.428592205*s+.4505937099*i,c=.0259040371*o+.7827717662*s-.808675766*i;return[a*100,l*100,c*100]},F.rgb.cmyk=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,o=Math.min(1-t,1-n,1-r),s=(1-t-o)/(1-o)||0,i=(1-n-o)/(1-o)||0,a=(1-r-o)/(1-o)||0;return[s*100,i*100,a*100,o*100]};function Pu(e,t){return(e[0]-t[0])**2+(e[1]-t[1])**2+(e[2]-t[2])**2}F.rgb.keyword=function(e){const t=As[e];if(t)return t;let n=Number.POSITIVE_INFINITY,r;for(const o of Object.keys(jt)){const s=jt[o],i=Pu(e,s);i<n&&(n=i,r=o)}return r},F.keyword.rgb=function(e){return[...jt[e]]},F.rgb.xyz=function(e){const t=vt(e[0]/255),n=vt(e[1]/255),r=vt(e[2]/255),o=t*.4124564+n*.3575761+r*.1804375,s=t*.2126729+n*.7151522+r*.072175,i=t*.0193339+n*.119192+r*.9503041;return[o*100,s*100,i*100]},F.rgb.lab=function(e){const t=F.rgb.xyz(e);let n=t[0],r=t[1],o=t[2];n/=95.047,r/=100,o/=108.883,n=n>He?n**(1/3):7.787*n+16/116,r=r>He?r**(1/3):7.787*r+16/116,o=o>He?o**(1/3):7.787*o+16/116;const s=116*r-16,i=500*(n-r),a=200*(r-o);return[s,i,a]},F.hsl.rgb=function(e){const t=e[0]/360,n=e[1]/100,r=e[2]/100;let o,s;if(n===0)return s=r*255,[s,s,s];const i=r<.5?r*(1+n):r+n-r*n,a=2*r-i,l=[0,0,0];for(let c=0;c<3;c++)o=t+1/3*-(c-1),o<0&&o++,o>1&&o--,6*o<1?s=a+(i-a)*6*o:2*o<1?s=i:3*o<2?s=a+(i-a)*(2/3-o)*6:s=a,l[c]=s*255;return l},F.hsl.hsv=function(e){const t=e[0];let n=e[1]/100,r=e[2]/100,o=n;const s=Math.max(r,.01);r*=2,n*=r<=1?r:2-r,o*=s<=1?s:2-s;const i=(r+n)/2,a=r===0?2*o/(s+o):2*n/(r+n);return[t,a*100,i*100]},F.hsv.rgb=function(e){const t=e[0]/60,n=e[1]/100;let r=e[2]/100;const o=Math.floor(t)%6,s=t-Math.floor(t),i=255*r*(1-n),a=255*r*(1-n*s),l=255*r*(1-n*(1-s));switch(r*=255,o){case 0:return[r,l,i];case 1:return[a,r,i];case 2:return[i,r,l];case 3:return[i,a,r];case 4:return[l,i,r];case 5:return[r,i,a]}},F.hsv.hsl=function(e){const t=e[0],n=e[1]/100,r=e[2]/100,o=Math.max(r,.01);let s,i;i=(2-n)*r;const a=(2-n)*o;return s=n*o,s/=a<=1?a:2-a,s=s||0,i/=2,[t,s*100,i*100]},F.hwb.rgb=function(e){const t=e[0]/360;let n=e[1]/100,r=e[2]/100;const o=n+r;let s;o>1&&(n/=o,r/=o);const i=Math.floor(6*t),a=1-r;s=6*t-i,i&1&&(s=1-s);const l=n+s*(a-n);let c,d,u;switch(i){default:case 6:case 0:{c=a,d=l,u=n;break}case 1:{c=l,d=a,u=n;break}case 2:{c=n,d=a,u=l;break}case 3:{c=n,d=l,u=a;break}case 4:{c=l,d=n,u=a;break}case 5:{c=a,d=n,u=l;break}}return[c*255,d*255,u*255]},F.cmyk.rgb=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100,o=e[3]/100,s=1-Math.min(1,t*(1-o)+o),i=1-Math.min(1,n*(1-o)+o),a=1-Math.min(1,r*(1-o)+o);return[s*255,i*255,a*255]},F.xyz.rgb=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100;let o,s,i;return o=t*3.2404542+n*-1.5371385+r*-.4985314,s=t*-.969266+n*1.8760108+r*.041556,i=t*.0556434+n*-.2040259+r*1.0572252,o=gt(o),s=gt(s),i=gt(i),[o*255,s*255,i*255]},F.xyz.lab=function(e){let t=e[0],n=e[1],r=e[2];t/=95.047,n/=100,r/=108.883,t=t>He?t**(1/3):7.787*t+16/116,n=n>He?n**(1/3):7.787*n+16/116,r=r>He?r**(1/3):7.787*r+16/116;const o=116*n-16,s=500*(t-n),i=200*(n-r);return[o,s,i]},F.xyz.oklab=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100,o=Math.cbrt(.8189330101*t+.3618667424*n-.1288597137*r),s=Math.cbrt(.0329845436*t+.9293118715*n+.0361456387*r),i=Math.cbrt(.0482003018*t+.2643662691*n+.633851707*r),a=.2104542553*o+.793617785*s-.0040720468*i,l=1.9779984951*o-2.428592205*s+.4505937099*i,c=.0259040371*o+.7827717662*s-.808675766*i;return[a*100,l*100,c*100]},F.oklab.oklch=function(e){return F.lab.lch(e)},F.oklab.xyz=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100,o=(.999999998*t+.396337792*n+.215803758*r)**3,s=(1.000000008*t-.105561342*n-.063854175*r)**3,i=(1.000000055*t-.089484182*n-1.291485538*r)**3,a=1.227013851*o-.55779998*s+.281256149*i,l=-.040580178*o+1.11225687*s-.071676679*i,c=-.076381285*o-.421481978*s+1.58616322*i;return[a*100,l*100,c*100]},F.oklab.rgb=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100,o=(t+.3963377774*n+.2158037573*r)**3,s=(t-.1055613458*n-.0638541728*r)**3,i=(t-.0894841775*n-1.291485548*r)**3,a=gt(4.0767416621*o-3.3077115913*s+.2309699292*i),l=gt(-1.2684380046*o+2.6097574011*s-.3413193965*i),c=gt(-.0041960863*o-.7034186147*s+1.707614701*i);return[a*255,l*255,c*255]},F.oklch.oklab=function(e){return F.lch.lab(e)},F.lab.xyz=function(e){const t=e[0],n=e[1],r=e[2];let o,s,i;s=(t+16)/116,o=n/500+s,i=s-r/200;const a=s**3,l=o**3,c=i**3;return s=a>He?a:(s-16/116)/7.787,o=l>He?l:(o-16/116)/7.787,i=c>He?c:(i-16/116)/7.787,o*=95.047,s*=100,i*=108.883,[o,s,i]},F.lab.lch=function(e){const t=e[0],n=e[1],r=e[2];let o;o=Math.atan2(r,n)*360/2/Math.PI,o<0&&(o+=360);const i=Math.sqrt(n*n+r*r);return[t,i,o]},F.lch.lab=function(e){const t=e[0],n=e[1],o=e[2]/360*2*Math.PI,s=n*Math.cos(o),i=n*Math.sin(o);return[t,s,i]},F.rgb.ansi16=function(e,t=null){const[n,r,o]=e;let s=t===null?F.rgb.hsv(e)[2]:t;if(s=Math.round(s/50),s===0)return 30;let i=30+(Math.round(o/255)<<2|Math.round(r/255)<<1|Math.round(n/255));return s===2&&(i+=60),i},F.hsv.ansi16=function(e){return F.rgb.ansi16(F.hsv.rgb(e),e[2])},F.rgb.ansi256=function(e){const t=e[0],n=e[1],r=e[2];return t>>4===n>>4&&n>>4===r>>4?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(n/255*5)+Math.round(r/255*5)},F.ansi16.rgb=function(e){e=e[0];let t=e%10;if(t===0||t===7)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];const n=(Math.trunc(e>50)+1)*.5,r=(t&1)*n*255,o=(t>>1&1)*n*255,s=(t>>2&1)*n*255;return[r,o,s]},F.ansi256.rgb=function(e){if(e=e[0],e>=232){const s=(e-232)*10+8;return[s,s,s]}e-=16;let t;const n=Math.floor(e/36)/5*255,r=Math.floor((t=e%36)/6)/5*255,o=t%6/5*255;return[n,r,o]},F.rgb.hex=function(e){const n=(((Math.round(e[0])&255)<<16)+((Math.round(e[1])&255)<<8)+(Math.round(e[2])&255)).toString(16).toUpperCase();return"000000".slice(n.length)+n},F.hex.rgb=function(e){const t=e.toString(16).match(/[a-f\d]{6}|[a-f\d]{3}/i);if(!t)return[0,0,0];let n=t[0];t[0].length===3&&(n=[...n].map(a=>a+a).join(""));const r=Number.parseInt(n,16),o=r>>16&255,s=r>>8&255,i=r&255;return[o,s,i]},F.rgb.hcg=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,o=Math.max(Math.max(t,n),r),s=Math.min(Math.min(t,n),r),i=o-s;let a;const l=i<1?s/(1-i):0;return i<=0?a=0:o===t?a=(n-r)/i%6:o===n?a=2+(r-t)/i:a=4+(t-n)/i,a/=6,a%=1,[a*360,i*100,l*100]},F.hsl.hcg=function(e){const t=e[1]/100,n=e[2]/100,r=n<.5?2*t*n:2*t*(1-n);let o=0;return r<1&&(o=(n-.5*r)/(1-r)),[e[0],r*100,o*100]},F.hsv.hcg=function(e){const t=e[1]/100,n=e[2]/100,r=t*n;let o=0;return r<1&&(o=(n-r)/(1-r)),[e[0],r*100,o*100]},F.hcg.rgb=function(e){const t=e[0]/360,n=e[1]/100,r=e[2]/100;if(n===0)return[r*255,r*255,r*255];const o=[0,0,0],s=t%1*6,i=s%1,a=1-i;let l=0;switch(Math.floor(s)){case 0:{o[0]=1,o[1]=i,o[2]=0;break}case 1:{o[0]=a,o[1]=1,o[2]=0;break}case 2:{o[0]=0,o[1]=1,o[2]=i;break}case 3:{o[0]=0,o[1]=a,o[2]=1;break}case 4:{o[0]=i,o[1]=0,o[2]=1;break}default:o[0]=1,o[1]=0,o[2]=a}return l=(1-n)*r,[(n*o[0]+l)*255,(n*o[1]+l)*255,(n*o[2]+l)*255]},F.hcg.hsv=function(e){const t=e[1]/100,n=e[2]/100,r=t+n*(1-t);let o=0;return r>0&&(o=t/r),[e[0],o*100,r*100]},F.hcg.hsl=function(e){const t=e[1]/100,r=e[2]/100*(1-t)+.5*t;let o=0;return r>0&&r<.5?o=t/(2*r):r>=.5&&r<1&&(o=t/(2*(1-r))),[e[0],o*100,r*100]},F.hcg.hwb=function(e){const t=e[1]/100,n=e[2]/100,r=t+n*(1-t);return[e[0],(r-t)*100,(1-r)*100]},F.hwb.hcg=function(e){const t=e[1]/100,r=1-e[2]/100,o=r-t;let s=0;return o<1&&(s=(r-o)/(1-o)),[e[0],o*100,s*100]},F.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},F.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},F.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},F.gray.hsl=function(e){return[0,0,e[0]]},F.gray.hsv=F.gray.hsl,F.gray.hwb=function(e){return[0,100,e[0]]},F.gray.cmyk=function(e){return[0,0,0,e[0]]},F.gray.lab=function(e){return[e[0],0,0]},F.gray.hex=function(e){const t=Math.round(e[0]/100*255)&255,r=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".slice(r.length)+r},F.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]};function _u(){const e={},t=Object.keys(F);for(let{length:n}=t,r=0;r<n;r++)e[t[r]]={distance:-1,parent:null};return e}function ku(e){const t=_u(),n=[e];for(t[e].distance=0;n.length>0;){const r=n.pop(),o=Object.keys(F[r]);for(let{length:s}=o,i=0;i<s;i++){const a=o[i],l=t[a];l.distance===-1&&(l.distance=t[r].distance+1,l.parent=r,n.unshift(a))}}return t}function Mu(e,t){return function(n){return t(e(n))}}function Au(e,t){const n=[t[e].parent,e];let r=F[t[e].parent][e],o=t[e].parent;for(;t[o].parent;)n.unshift(t[o].parent),r=Mu(F[t[o].parent][o],r),o=t[o].parent;return r.conversion=n,r}function Nu(e){const t=ku(e),n={},r=Object.keys(t);for(let{length:o}=r,s=0;s<o;s++){const i=r[s];t[i].parent!==null&&(n[i]=Au(i,t))}return n}const ge={},Iu=Object.keys(F);function Ou(e){const t=function(...n){const r=n[0];return r==null?r:(r.length>1&&(n=r),e(n))};return"conversion"in e&&(t.conversion=e.conversion),t}function Ru(e){const t=function(...n){const r=n[0];if(r==null)return r;r.length>1&&(n=r);const o=e(n);if(typeof o=="object")for(let{length:s}=o,i=0;i<s;i++)o[i]=Math.round(o[i]);return o};return"conversion"in e&&(t.conversion=e.conversion),t}for(const e of Iu){ge[e]={},Object.defineProperty(ge[e],"channels",{value:F[e].channels}),Object.defineProperty(ge[e],"labels",{value:F[e].labels});const t=Nu(e),n=Object.keys(t);for(const r of n){const o=t[r];ge[e][r]=Ru(o),ge[e][r].raw=Ou(o)}}const Ns=["keyword","gray","hex"],fr={};for(const e of Object.keys(ge))fr[[...ge[e].labels].sort().join("")]=e;const Dt={};function ce(e,t){if(!(this instanceof ce))return new ce(e,t);if(t&&t in Ns&&(t=null),t&&!(t in ge))throw new Error("Unknown model: "+t);let n,r;if(e==null)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(e instanceof ce)this.model=e.model,this.color=[...e.color],this.valpha=e.valpha;else if(typeof e=="string"){const o=pe.get(e);if(o===null)throw new Error("Unable to parse color from string: "+e);this.model=o.model,r=ge[this.model].channels,this.color=o.value.slice(0,r),this.valpha=typeof o.value[r]=="number"?o.value[r]:1}else if(e.length>0){this.model=t||"rgb",r=ge[this.model].channels;const o=Array.prototype.slice.call(e,0,r);this.color=pr(o,r),this.valpha=typeof e[r]=="number"?e[r]:1}else if(typeof e=="number")this.model="rgb",this.color=[e>>16&255,e>>8&255,e&255],this.valpha=1;else{this.valpha=1;const o=Object.keys(e);"alpha"in e&&(o.splice(o.indexOf("alpha"),1),this.valpha=typeof e.alpha=="number"?e.alpha:0);const s=o.sort().join("");if(!(s in fr))throw new Error("Unable to parse color from object: "+JSON.stringify(e));this.model=fr[s];const{labels:i}=ge[this.model],a=[];for(n=0;n<i.length;n++)a.push(e[i[n]]);this.color=pr(a)}if(Dt[this.model])for(r=ge[this.model].channels,n=0;n<r;n++){const o=Dt[this.model][n];o&&(this.color[n]=o(this.color[n]))}this.valpha=Math.max(0,Math.min(1,this.valpha)),Object.freeze&&Object.freeze(this)}ce.prototype={toString(){return this.string()},toJSON(){return this[this.model]()},string(e){let t=this.model in pe.to?this:this.rgb();t=t.round(typeof e=="number"?e:1);const n=t.valpha===1?t.color:[...t.color,this.valpha];return pe.to[t.model](...n)},percentString(e){const t=this.rgb().round(typeof e=="number"?e:1),n=t.valpha===1?t.color:[...t.color,this.valpha];return pe.to.rgb.percent(...n)},array(){return this.valpha===1?[...this.color]:[...this.color,this.valpha]},object(){const e={},{channels:t}=ge[this.model],{labels:n}=ge[this.model];for(let r=0;r<t;r++)e[n[r]]=this.color[r];return this.valpha!==1&&(e.alpha=this.valpha),e},unitArray(){const e=this.rgb().color;return e[0]/=255,e[1]/=255,e[2]/=255,this.valpha!==1&&e.push(this.valpha),e},unitObject(){const e=this.rgb().object();return e.r/=255,e.g/=255,e.b/=255,this.valpha!==1&&(e.alpha=this.valpha),e},round(e){return e=Math.max(e||0,0),new ce([...this.color.map(ju(e)),this.valpha],this.model)},alpha(e){return e!==void 0?new ce([...this.color,Math.max(0,Math.min(1,e))],this.model):this.valpha},red:ue("rgb",0,me(255)),green:ue("rgb",1,me(255)),blue:ue("rgb",2,me(255)),hue:ue(["hsl","hsv","hsl","hwb","hcg"],0,e=>(e%360+360)%360),saturationl:ue("hsl",1,me(100)),lightness:ue("hsl",2,me(100)),saturationv:ue("hsv",1,me(100)),value:ue("hsv",2,me(100)),chroma:ue("hcg",1,me(100)),gray:ue("hcg",2,me(100)),white:ue("hwb",1,me(100)),wblack:ue("hwb",2,me(100)),cyan:ue("cmyk",0,me(100)),magenta:ue("cmyk",1,me(100)),yellow:ue("cmyk",2,me(100)),black:ue("cmyk",3,me(100)),x:ue("xyz",0,me(95.047)),y:ue("xyz",1,me(100)),z:ue("xyz",2,me(108.833)),l:ue("lab",0,me(100)),a:ue("lab",1),b:ue("lab",2),keyword(e){return e!==void 0?new ce(e):ge[this.model].keyword(this.color)},hex(e){return e!==void 0?new ce(e):pe.to.hex(...this.rgb().round().color)},hexa(e){if(e!==void 0)return new ce(e);const t=this.rgb().round().color;let n=Math.round(this.valpha*255).toString(16).toUpperCase();return n.length===1&&(n="0"+n),pe.to.hex(...t)+n},rgbNumber(){const e=this.rgb().color;return(e[0]&255)<<16|(e[1]&255)<<8|e[2]&255},luminosity(){const e=this.rgb().color,t=[];for(const[n,r]of e.entries()){const o=r/255;t[n]=o<=.04045?o/12.92:((o+.055)/1.055)**2.4}return .2126*t[0]+.7152*t[1]+.0722*t[2]},contrast(e){const t=this.luminosity(),n=e.luminosity();return t>n?(t+.05)/(n+.05):(n+.05)/(t+.05)},level(e){const t=this.contrast(e);return t>=7?"AAA":t>=4.5?"AA":""},isDark(){const e=this.rgb().color;return(e[0]*2126+e[1]*7152+e[2]*722)/1e4<128},isLight(){return!this.isDark()},negate(){const e=this.rgb();for(let t=0;t<3;t++)e.color[t]=255-e.color[t];return e},lighten(e){const t=this.hsl();return t.color[2]+=t.color[2]*e,t},darken(e){const t=this.hsl();return t.color[2]-=t.color[2]*e,t},saturate(e){const t=this.hsl();return t.color[1]+=t.color[1]*e,t},desaturate(e){const t=this.hsl();return t.color[1]-=t.color[1]*e,t},whiten(e){const t=this.hwb();return t.color[1]+=t.color[1]*e,t},blacken(e){const t=this.hwb();return t.color[2]+=t.color[2]*e,t},grayscale(){const e=this.rgb().color,t=e[0]*.3+e[1]*.59+e[2]*.11;return ce.rgb(t,t,t)},fade(e){return this.alpha(this.valpha-this.valpha*e)},opaquer(e){return this.alpha(this.valpha+this.valpha*e)},rotate(e){const t=this.hsl();let n=t.color[0];return n=(n+e)%360,n=n<0?360+n:n,t.color[0]=n,t},mix(e,t){if(!e||!e.rgb)throw new Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof e);const n=e.rgb(),r=this.rgb(),o=t===void 0?.5:t,s=2*o-1,i=n.alpha()-r.alpha(),a=((s*i===-1?s:(s+i)/(1+s*i))+1)/2,l=1-a;return ce.rgb(a*n.red()+l*r.red(),a*n.green()+l*r.green(),a*n.blue()+l*r.blue(),n.alpha()*o+r.alpha()*(1-o))}};for(const e of Object.keys(ge)){if(Ns.includes(e))continue;const{channels:t}=ge[e];ce.prototype[e]=function(...n){return this.model===e?new ce(this):n.length>0?new ce(n,e):new ce([...Du(ge[this.model][e].raw(this.color)),this.valpha],e)},ce[e]=function(...n){let r=n[0];return typeof r=="number"&&(r=pr(n,t)),new ce(r,e)}}function Lu(e,t){return Number(e.toFixed(t))}function ju(e){return function(t){return Lu(t,e)}}function ue(e,t,n){e=Array.isArray(e)?e:[e];for(const r of e)(Dt[r]||(Dt[r]=[]))[t]=n;return e=e[0],function(r){let o;return r!==void 0?(n&&(r=n(r)),o=this[e](),o.color[t]=r,o):(o=this[e]().color[t],n&&(o=n(o)),o)}}function me(e){return function(t){return Math.max(0,Math.min(e,t))}}function Du(e){return Array.isArray(e)?e:[e]}function pr(e,t){for(let n=0;n<t;n++)typeof e[n]!="number"&&(e[n]=0);return e}function $u(e){const t=zu(e),n=f.forwardRef((r,o)=>{const{children:s,...i}=r,a=f.Children.toArray(s),l=a.find(Fu);if(l){const c=l.props.children,d=a.map(u=>u===l?f.Children.count(c)>1?f.Children.only(null):f.isValidElement(c)?c.props.children:null:u);return w.jsx(t,{...i,ref:o,children:f.isValidElement(c)?f.cloneElement(c,void 0,d):null})}return w.jsx(t,{...i,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}function zu(e){const t=f.forwardRef((n,r)=>{const{children:o,...s}=n;if(f.isValidElement(o)){const i=Hu(o),a=Vu(s,o.props);return o.type!==f.Fragment&&(a.ref=r?ke(r,i):i),f.cloneElement(o,a)}return f.Children.count(o)>1?f.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Bu=Symbol("radix.slottable");function Fu(e){return f.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Bu}function Vu(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]=(...a)=>{const l=s(...a);return o(...a),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function Hu(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"],Gu=Wu.reduce((e,t)=>{const n=$u(`Primitive.${t}`),r=f.forwardRef((o,s)=>{const{asChild:i,...a}=o,l=i?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),w.jsx(l,{...a,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),Is=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"}),Uu="VisuallyHidden",Yu=f.forwardRef((e,t)=>w.jsx(Gu.span,{...e,ref:t,style:{...Is,...e.style}}));Yu.displayName=Uu;function qu(e,t=[]){let n=[];function r(s,i){const a=f.createContext(i),l=n.length;n=[...n,i];const c=u=>{var y;const{scope:p,children:v,...g}=u,m=((y=p==null?void 0:p[e])==null?void 0:y[l])||a,x=f.useMemo(()=>g,Object.values(g));return w.jsx(m.Provider,{value:x,children:v})};c.displayName=s+"Provider";function d(u,p){var m;const v=((m=p==null?void 0:p[e])==null?void 0:m[l])||a,g=f.useContext(v);if(g)return g;if(i!==void 0)return i;throw new Error(`\`${u}\` must be used within \`${s}\``)}return[c,d]}const o=()=>{const s=n.map(i=>f.createContext(i));return function(a){const l=(a==null?void 0:a[e])||s;return f.useMemo(()=>({[`__scope${e}`]:{...a,[e]:l}}),[a,l])}};return o.scopeName=e,[r,Xu(o,...t)]}function Xu(...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 i=r.reduce((a,{useScope:l,scopeName:c})=>{const u=l(s)[`__scope${c}`];return{...a,...u}},{});return f.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}function Os(e){const t=Ku(e),n=f.forwardRef((r,o)=>{const{children:s,...i}=r,a=f.Children.toArray(s),l=a.find(Ju);if(l){const c=l.props.children,d=a.map(u=>u===l?f.Children.count(c)>1?f.Children.only(null):f.isValidElement(c)?c.props.children:null:u);return w.jsx(t,{...i,ref:o,children:f.isValidElement(c)?f.cloneElement(c,void 0,d):null})}return w.jsx(t,{...i,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}function Ku(e){const t=f.forwardRef((n,r)=>{const{children:o,...s}=n;if(f.isValidElement(o)){const i=ef(o),a=Qu(s,o.props);return o.type!==f.Fragment&&(a.ref=r?ke(r,i):i),f.cloneElement(o,a)}return f.Children.count(o)>1?f.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Zu=Symbol("radix.slottable");function Ju(e){return f.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Zu}function Qu(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]=(...a)=>{const l=s(...a);return o(...a),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function ef(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)}function Rs(e){const t=e+"CollectionProvider",[n,r]=qu(t),[o,s]=n(t,{collectionRef:{current:null},itemMap:new Map}),i=m=>{const{scope:x,children:y}=m,b=$.useRef(null),h=$.useRef(new Map).current;return w.jsx(o,{scope:x,itemMap:h,collectionRef:b,children:y})};i.displayName=t;const a=e+"CollectionSlot",l=Os(a),c=$.forwardRef((m,x)=>{const{scope:y,children:b}=m,h=s(a,y),S=le(x,h.collectionRef);return w.jsx(l,{ref:S,children:b})});c.displayName=a;const d=e+"CollectionItemSlot",u="data-radix-collection-item",p=Os(d),v=$.forwardRef((m,x)=>{const{scope:y,children:b,...h}=m,S=$.useRef(null),E=le(x,S),T=s(d,y);return $.useEffect(()=>(T.itemMap.set(S,{ref:S,...h}),()=>void T.itemMap.delete(S))),w.jsx(p,{[u]:"",ref:E,children:b})});v.displayName=d;function g(m){const x=s(e+"CollectionConsumer",m);return $.useCallback(()=>{const b=x.collectionRef.current;if(!b)return[];const h=Array.from(b.querySelectorAll(`[${u}]`));return Array.from(x.itemMap.values()).sort((T,M)=>h.indexOf(T.ref.current)-h.indexOf(M.ref.current))},[x.collectionRef,x.itemMap])}return[{Provider:i,Slot:c,ItemSlot:v},g,r]}function ie(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 tf=f[" useInsertionEffect ".trim().toString()]||be;function mr({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,s,i]=nf({defaultProp:t,onChange:n}),a=e!==void 0,l=a?e:o;{const d=f.useRef(e!==void 0);f.useEffect(()=>{const u=d.current;u!==a&&console.warn(`${r} is changing from ${u?"controlled":"uncontrolled"} to ${a?"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.`),d.current=a},[a,r])}const c=f.useCallback(d=>{var u;if(a){const p=rf(d)?d(e):d;p!==e&&((u=i.current)==null||u.call(i,p))}else s(d)},[a,e,s,i]);return[l,c]}function nf({defaultProp:e,onChange:t}){const[n,r]=f.useState(e),o=f.useRef(n),s=f.useRef(t);return tf(()=>{s.current=t},[t]),f.useEffect(()=>{var i;o.current!==n&&((i=s.current)==null||i.call(s,n),o.current=n)},[n,o]),[n,r,s]}function rf(e){return typeof e=="function"}var of=f[" useId ".trim().toString()]||(()=>{}),sf=0;function hr(e){const[t,n]=f.useState(of());return be(()=>{e||n(r=>r??String(sf++))},[e]),e||(t?`radix-${t}`:"")}var af=f.createContext(void 0);function Ls(e){const t=f.useContext(af);return e||t||"ltr"}function lf(e){const t=cf(e),n=f.forwardRef((r,o)=>{const{children:s,...i}=r,a=f.Children.toArray(s),l=a.find(uf);if(l){const c=l.props.children,d=a.map(u=>u===l?f.Children.count(c)>1?f.Children.only(null):f.isValidElement(c)?c.props.children:null:u);return w.jsx(t,{...i,ref:o,children:f.isValidElement(c)?f.cloneElement(c,void 0,d):null})}return w.jsx(t,{...i,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}function cf(e){const t=f.forwardRef((n,r)=>{const{children:o,...s}=n;if(f.isValidElement(o)){const i=pf(o),a=ff(s,o.props);return o.type!==f.Fragment&&(a.ref=r?ke(r,i):i),f.cloneElement(o,a)}return f.Children.count(o)>1?f.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var df=Symbol("radix.slottable");function uf(e){return f.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===df}function ff(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]=(...a)=>{const l=s(...a);return o(...a),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function pf(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 mf=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],js=mf.reduce((e,t)=>{const n=lf(`Primitive.${t}`),r=f.forwardRef((o,s)=>{const{asChild:i,...a}=o,l=i?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),w.jsx(l,{...a,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function hf(e,t){e&&Vt.flushSync(()=>e.dispatchEvent(t))}function gf(e,t=globalThis==null?void 0:globalThis.document){const n=Je(e);f.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 vf="DismissableLayer",gr="dismissableLayer.update",bf="dismissableLayer.pointerDownOutside",yf="dismissableLayer.focusOutside",Ds,$s=f.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),zs=f.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:s,onInteractOutside:i,onDismiss:a,...l}=e,c=f.useContext($s),[d,u]=f.useState(null),p=(d==null?void 0:d.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,v]=f.useState({}),g=le(t,M=>u(M)),m=Array.from(c.layers),[x]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),y=m.indexOf(x),b=d?m.indexOf(d):-1,h=c.layersWithOutsidePointerEventsDisabled.size>0,S=b>=y,E=Sf(M=>{const _=M.target,A=[...c.branches].some(P=>P.contains(_));!S||A||(o==null||o(M),i==null||i(M),M.defaultPrevented||a==null||a())},p),T=Ef(M=>{const _=M.target;[...c.branches].some(P=>P.contains(_))||(s==null||s(M),i==null||i(M),M.defaultPrevented||a==null||a())},p);return gf(M=>{b===c.layers.size-1&&(r==null||r(M),!M.defaultPrevented&&a&&(M.preventDefault(),a()))},p),f.useEffect(()=>{if(d)return n&&(c.layersWithOutsidePointerEventsDisabled.size===0&&(Ds=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(d)),c.layers.add(d),Bs(),()=>{n&&c.layersWithOutsidePointerEventsDisabled.size===1&&(p.body.style.pointerEvents=Ds)}},[d,p,n,c]),f.useEffect(()=>()=>{d&&(c.layers.delete(d),c.layersWithOutsidePointerEventsDisabled.delete(d),Bs())},[d,c]),f.useEffect(()=>{const M=()=>v({});return document.addEventListener(gr,M),()=>document.removeEventListener(gr,M)},[]),w.jsx(js.div,{...l,ref:g,style:{pointerEvents:h?S?"auto":"none":void 0,...e.style},onFocusCapture:ie(e.onFocusCapture,T.onFocusCapture),onBlurCapture:ie(e.onBlurCapture,T.onBlurCapture),onPointerDownCapture:ie(e.onPointerDownCapture,E.onPointerDownCapture)})});zs.displayName=vf;var wf="DismissableLayerBranch",xf=f.forwardRef((e,t)=>{const n=f.useContext($s),r=f.useRef(null),o=le(t,r);return f.useEffect(()=>{const s=r.current;if(s)return n.branches.add(s),()=>{n.branches.delete(s)}},[n.branches]),w.jsx(js.div,{...e,ref:o})});xf.displayName=wf;function Sf(e,t=globalThis==null?void 0:globalThis.document){const n=Je(e),r=f.useRef(!1),o=f.useRef(()=>{});return f.useEffect(()=>{const s=a=>{if(a.target&&!r.current){let l=function(){Fs(bf,n,c,{discrete:!0})};const c={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=l,t.addEventListener("click",o.current,{once:!0})):l()}else t.removeEventListener("click",o.current);r.current=!1},i=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",s),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function Ef(e,t=globalThis==null?void 0:globalThis.document){const n=Je(e),r=f.useRef(!1);return f.useEffect(()=>{const o=s=>{s.target&&!r.current&&Fs(yf,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 Bs(){const e=new CustomEvent(gr);document.dispatchEvent(e)}function Fs(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?hf(o,s):o.dispatchEvent(s)}function Cf(e){const t=Tf(e),n=f.forwardRef((r,o)=>{const{children:s,...i}=r,a=f.Children.toArray(s),l=a.find(_f);if(l){const c=l.props.children,d=a.map(u=>u===l?f.Children.count(c)>1?f.Children.only(null):f.isValidElement(c)?c.props.children:null:u);return w.jsx(t,{...i,ref:o,children:f.isValidElement(c)?f.cloneElement(c,void 0,d):null})}return w.jsx(t,{...i,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}function Tf(e){const t=f.forwardRef((n,r)=>{const{children:o,...s}=n;if(f.isValidElement(o)){const i=Mf(o),a=kf(s,o.props);return o.type!==f.Fragment&&(a.ref=r?ke(r,i):i),f.cloneElement(o,a)}return f.Children.count(o)>1?f.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Pf=Symbol("radix.slottable");function _f(e){return f.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Pf}function kf(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]=(...a)=>{const l=s(...a);return o(...a),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function Mf(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 Af=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Nf=Af.reduce((e,t)=>{const n=Cf(`Primitive.${t}`),r=f.forwardRef((o,s)=>{const{asChild:i,...a}=o,l=i?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),w.jsx(l,{...a,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),vr="focusScope.autoFocusOnMount",br="focusScope.autoFocusOnUnmount",Vs={bubbles:!1,cancelable:!0},If="FocusScope",Hs=f.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:s,...i}=e,[a,l]=f.useState(null),c=Je(o),d=Je(s),u=f.useRef(null),p=le(t,m=>l(m)),v=f.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;f.useEffect(()=>{if(r){let m=function(h){if(v.paused||!a)return;const S=h.target;a.contains(S)?u.current=S:et(u.current,{select:!0})},x=function(h){if(v.paused||!a)return;const S=h.relatedTarget;S!==null&&(a.contains(S)||et(u.current,{select:!0}))},y=function(h){if(document.activeElement===document.body)for(const E of h)E.removedNodes.length>0&&et(a)};document.addEventListener("focusin",m),document.addEventListener("focusout",x);const b=new MutationObserver(y);return a&&b.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",m),document.removeEventListener("focusout",x),b.disconnect()}}},[r,a,v.paused]),f.useEffect(()=>{if(a){Us.add(v);const m=document.activeElement;if(!a.contains(m)){const y=new CustomEvent(vr,Vs);a.addEventListener(vr,c),a.dispatchEvent(y),y.defaultPrevented||(Of($f(Ws(a)),{select:!0}),document.activeElement===m&&et(a))}return()=>{a.removeEventListener(vr,c),setTimeout(()=>{const y=new CustomEvent(br,Vs);a.addEventListener(br,d),a.dispatchEvent(y),y.defaultPrevented||et(m??document.body,{select:!0}),a.removeEventListener(br,d),Us.remove(v)},0)}}},[a,c,d,v]);const g=f.useCallback(m=>{if(!n&&!r||v.paused)return;const x=m.key==="Tab"&&!m.altKey&&!m.ctrlKey&&!m.metaKey,y=document.activeElement;if(x&&y){const b=m.currentTarget,[h,S]=Rf(b);h&&S?!m.shiftKey&&y===S?(m.preventDefault(),n&&et(h,{select:!0})):m.shiftKey&&y===h&&(m.preventDefault(),n&&et(S,{select:!0})):y===b&&m.preventDefault()}},[n,r,v.paused]);return w.jsx(Nf.div,{tabIndex:-1,...i,ref:p,onKeyDown:g})});Hs.displayName=If;function Of(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(et(r,{select:t}),document.activeElement!==n)return}function Rf(e){const t=Ws(e),n=Gs(t,e),r=Gs(t.reverse(),e);return[n,r]}function Ws(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 Gs(e,t){for(const n of e)if(!Lf(n,{upTo:t}))return n}function Lf(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 jf(e){return e instanceof HTMLInputElement&&"select"in e}function et(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&jf(e)&&t&&e.select()}}var Us=Df();function Df(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=Ys(e,t),e.unshift(t)},remove(t){var n;e=Ys(e,t),(n=e[0])==null||n.resume()}}}function Ys(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function $f(e){return e.filter(t=>t.tagName!=="A")}function zf(e){const t=Bf(e),n=f.forwardRef((r,o)=>{const{children:s,...i}=r,a=f.Children.toArray(s),l=a.find(Vf);if(l){const c=l.props.children,d=a.map(u=>u===l?f.Children.count(c)>1?f.Children.only(null):f.isValidElement(c)?c.props.children:null:u);return w.jsx(t,{...i,ref:o,children:f.isValidElement(c)?f.cloneElement(c,void 0,d):null})}return w.jsx(t,{...i,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}function Bf(e){const t=f.forwardRef((n,r)=>{const{children:o,...s}=n;if(f.isValidElement(o)){const i=Wf(o),a=Hf(s,o.props);return o.type!==f.Fragment&&(a.ref=r?ke(r,i):i),f.cloneElement(o,a)}return f.Children.count(o)>1?f.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Ff=Symbol("radix.slottable");function Vf(e){return f.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Ff}function Hf(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]=(...a)=>{const l=s(...a);return o(...a),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function Wf(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 Gf=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Uf=Gf.reduce((e,t)=>{const n=zf(`Primitive.${t}`),r=f.forwardRef((o,s)=>{const{asChild:i,...a}=o,l=i?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),w.jsx(l,{...a,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),Yf="Portal",qs=f.forwardRef((e,t)=>{var a;const{container:n,...r}=e,[o,s]=f.useState(!1);be(()=>s(!0),[]);const i=n||o&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return i?Xr.createPortal(w.jsx(Uf.div,{...r,ref:t}),i):null});qs.displayName=Yf;var yr=0;function qf(){f.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Xs()),document.body.insertAdjacentElement("beforeend",e[1]??Xs()),yr++,()=>{yr===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),yr--}},[])}function Xs(){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 Le=function(){return Le=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},Le.apply(this,arguments)};function Ks(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 Xf(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))}typeof SuppressedError=="function"&&SuppressedError;var ln="right-scroll-bar-position",cn="width-before-scroll-bar",Kf="with-scroll-bars-hidden",Zf="--removed-body-scroll-bar-size";function wr(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Jf(e,t){var n=$.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 Qf=typeof window<"u"?f.useLayoutEffect:f.useEffect,Zs=new WeakMap;function ep(e,t){var n=Jf(t||null,function(r){return e.forEach(function(o){return wr(o,r)})});return Qf(function(){var r=Zs.get(n);if(r){var o=new Set(r),s=new Set(e),i=n.current;o.forEach(function(a){s.has(a)||wr(a,null)}),s.forEach(function(a){o.has(a)||wr(a,i)})}Zs.set(n,e)},[e]),n}function tp(e){return e}function np(e,t){t===void 0&&(t=tp);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 i=t(s,r);return n.push(i),function(){n=n.filter(function(a){return a!==i})}},assignSyncMedium:function(s){for(r=!0;n.length;){var i=n;n=[],i.forEach(s)}n={push:function(a){return s(a)},filter:function(){return n}}},assignMedium:function(s){r=!0;var i=[];if(n.length){var a=n;n=[],a.forEach(s),i=n}var l=function(){var d=i;i=[],d.forEach(s)},c=function(){return Promise.resolve().then(l)};c(),n={push:function(d){i.push(d),c()},filter:function(d){return i=i.filter(d),n}}}};return o}function rp(e){e===void 0&&(e={});var t=np(null);return t.options=Le({async:!0,ssr:!1},e),t}var Js=function(e){var t=e.sideCar,n=Ks(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 f.createElement(r,Le({},n))};Js.isSideCarExport=!0;function op(e,t){return e.useMedium(t),Js}var Qs=rp(),xr=function(){},dn=f.forwardRef(function(e,t){var n=f.useRef(null),r=f.useState({onScrollCapture:xr,onWheelCapture:xr,onTouchMoveCapture:xr}),o=r[0],s=r[1],i=e.forwardProps,a=e.children,l=e.className,c=e.removeScrollBar,d=e.enabled,u=e.shards,p=e.sideCar,v=e.noRelative,g=e.noIsolation,m=e.inert,x=e.allowPinchZoom,y=e.as,b=y===void 0?"div":y,h=e.gapMode,S=Ks(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),E=p,T=ep([n,t]),M=Le(Le({},S),o);return f.createElement(f.Fragment,null,d&&f.createElement(E,{sideCar:Qs,removeScrollBar:c,shards:u,noRelative:v,noIsolation:g,inert:m,setCallbacks:s,allowPinchZoom:!!x,lockRef:n,gapMode:h}),i?f.cloneElement(f.Children.only(a),Le(Le({},M),{ref:T})):f.createElement(b,Le({},M,{className:l,ref:T}),a))});dn.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},dn.classNames={fullWidth:cn,zeroRight:ln};var ei,sp=function(){if(ei)return ei;if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function ip(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=sp();return t&&e.setAttribute("nonce",t),e}function ap(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function lp(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var cp=function(){var e=0,t=null;return{add:function(n){e==0&&(t=ip())&&(ap(t,n),lp(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},dp=function(){var e=cp();return function(t,n){f.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},ti=function(){var e=dp(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},up={left:0,top:0,right:0,gap:0},Sr=function(e){return parseInt(e||"",10)||0},fp=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[Sr(n),Sr(r),Sr(o)]},pp=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return up;var t=fp(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])}},mp=ti(),bt="data-scroll-locked",hp=function(e,t,n,r){var o=e.left,s=e.top,i=e.right,a=e.gap;return n===void 0&&(n="margin"),`
94
+ .`.concat(Kf,` {
90
95
  overflow: hidden `).concat(r,`;
91
96
  padding-right: `).concat(a,"px ").concat(r,`;
92
97
  }
93
- body[`).concat(Xe,`] {
98
+ body[`).concat(bt,`] {
94
99
  overflow: hidden `).concat(r,`;
95
100
  overscroll-behavior: contain;
96
101
  `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
@@ -103,28 +108,28 @@ React keys must be passed directly to JSX without using spread:
103
108
  `),n==="padding"&&"padding-right: ".concat(a,"px ").concat(r,";")].filter(Boolean).join(""),`
104
109
  }
105
110
 
106
- .`).concat(Pt,` {
111
+ .`).concat(ln,` {
107
112
  right: `).concat(a,"px ").concat(r,`;
108
113
  }
109
114
 
110
- .`).concat(At,` {
115
+ .`).concat(cn,` {
111
116
  margin-right: `).concat(a,"px ").concat(r,`;
112
117
  }
113
118
 
114
- .`).concat(Pt," .").concat(Pt,` {
119
+ .`).concat(ln," .").concat(ln,` {
115
120
  right: 0 `).concat(r,`;
116
121
  }
117
122
 
118
- .`).concat(At," .").concat(At,` {
123
+ .`).concat(cn," .").concat(cn,` {
119
124
  margin-right: 0 `).concat(r,`;
120
125
  }
121
126
 
122
- body[`).concat(Xe,`] {
123
- `).concat(ql,": ").concat(a,`px;
127
+ body[`).concat(bt,`] {
128
+ `).concat(Zf,": ").concat(a,`px;
124
129
  }
125
- `)},mo=function(){var e=parseInt(document.body.getAttribute(Xe)||"0",10);return isFinite(e)?e:0},mc=function(){c.useEffect(function(){return document.body.setAttribute(Xe,(mo()+1).toString()),function(){var e=mo()-1;e<=0?document.body.removeAttribute(Xe):document.body.setAttribute(Xe,e.toString())}},[])},hc=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;mc();var s=c.useMemo(function(){return dc(o)},[o]);return c.createElement(fc,{styles:pc(s,!t,o,n?"":"!important")})},En=!1;if(typeof window<"u")try{var Nt=Object.defineProperty({},"passive",{get:function(){return En=!0,!0}});window.addEventListener("test",Nt,Nt),window.removeEventListener("test",Nt,Nt)}catch{En=!1}var Ze=En?{passive:!1}:!1,gc=function(e){return e.tagName==="TEXTAREA"},ho=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!gc(e)&&n[t]==="visible")},vc=function(e){return ho(e,"overflowY")},bc=function(e){return ho(e,"overflowX")},go=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=vo(e,r);if(o){var s=bo(e,r),i=s[1],a=s[2];if(i>a)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},yc=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},xc=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},vo=function(e,t){return e==="v"?vc(t):bc(t)},bo=function(e,t){return e==="v"?yc(t):xc(t)},wc=function(e,t){return e==="h"&&t==="rtl"?-1:1},Sc=function(e,t,n,r,o){var s=wc(e,window.getComputedStyle(t).direction),i=s*r,a=n.target,l=t.contains(a),u=!1,f=i>0,d=0,m=0;do{if(!a)break;var h=bo(e,a),v=h[0],p=h[1],b=h[2],y=p-b-s*v;(v||y)&&vo(e,a)&&(d+=y,m+=v);var x=a.parentNode;a=x&&x.nodeType===Node.DOCUMENT_FRAGMENT_NODE?x.host:x}while(!l&&a!==document.body||l&&(t.contains(a)||t===a));return(f&&(o&&Math.abs(d)<1||!o&&i>d)||!f&&(o&&Math.abs(m)<1||!o&&-i>m))&&(u=!0),u},Ot=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},yo=function(e){return[e.deltaX,e.deltaY]},xo=function(e){return e&&"current"in e?e.current:e},Cc=function(e,t){return e[0]===t[0]&&e[1]===t[1]},_c=function(e){return`
130
+ `)},ni=function(){var e=parseInt(document.body.getAttribute(bt)||"0",10);return isFinite(e)?e:0},gp=function(){f.useEffect(function(){return document.body.setAttribute(bt,(ni()+1).toString()),function(){var e=ni()-1;e<=0?document.body.removeAttribute(bt):document.body.setAttribute(bt,e.toString())}},[])},vp=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;gp();var s=f.useMemo(function(){return pp(o)},[o]);return f.createElement(mp,{styles:hp(s,!t,o,n?"":"!important")})},Er=!1;if(typeof window<"u")try{var un=Object.defineProperty({},"passive",{get:function(){return Er=!0,!0}});window.addEventListener("test",un,un),window.removeEventListener("test",un,un)}catch{Er=!1}var yt=Er?{passive:!1}:!1,bp=function(e){return e.tagName==="TEXTAREA"},ri=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!bp(e)&&n[t]==="visible")},yp=function(e){return ri(e,"overflowY")},wp=function(e){return ri(e,"overflowX")},oi=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=si(e,r);if(o){var s=ii(e,r),i=s[1],a=s[2];if(i>a)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},xp=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},Sp=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},si=function(e,t){return e==="v"?yp(t):wp(t)},ii=function(e,t){return e==="v"?xp(t):Sp(t)},Ep=function(e,t){return e==="h"&&t==="rtl"?-1:1},Cp=function(e,t,n,r,o){var s=Ep(e,window.getComputedStyle(t).direction),i=s*r,a=n.target,l=t.contains(a),c=!1,d=i>0,u=0,p=0;do{if(!a)break;var v=ii(e,a),g=v[0],m=v[1],x=v[2],y=m-x-s*g;(g||y)&&si(e,a)&&(u+=y,p+=g);var b=a.parentNode;a=b&&b.nodeType===Node.DOCUMENT_FRAGMENT_NODE?b.host:b}while(!l&&a!==document.body||l&&(t.contains(a)||t===a));return(d&&(o&&Math.abs(u)<1||!o&&i>u)||!d&&(o&&Math.abs(p)<1||!o&&-i>p))&&(c=!0),c},fn=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},ai=function(e){return[e.deltaX,e.deltaY]},li=function(e){return e&&"current"in e?e.current:e},Tp=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Pp=function(e){return`
126
131
  .block-interactivity-`.concat(e,` {pointer-events: none;}
127
132
  .allow-interactivity-`).concat(e,` {pointer-events: all;}
128
- `)},Ec=0,Je=[];function kc(e){var t=c.useRef([]),n=c.useRef([0,0]),r=c.useRef(),o=c.useState(Ec++)[0],s=c.useState(po)[0],i=c.useRef(e);c.useEffect(function(){i.current=e},[e]),c.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var p=Kl([e.lockRef.current],(e.shards||[]).map(xo),!0).filter(Boolean);return p.forEach(function(b){return b.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),p.forEach(function(b){return b.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var a=c.useCallback(function(p,b){if("touches"in p&&p.touches.length===2||p.type==="wheel"&&p.ctrlKey)return!i.current.allowPinchZoom;var y=Ot(p),x=n.current,w="deltaX"in p?p.deltaX:x[0]-y[0],C="deltaY"in p?p.deltaY:x[1]-y[1],E,N=p.target,A=Math.abs(w)>Math.abs(C)?"h":"v";if("touches"in p&&A==="h"&&N.type==="range")return!1;var k=window.getSelection(),$=k&&k.anchorNode,B=$?$===N||$.contains(N):!1;if(B)return!1;var I=go(A,N);if(!I)return!0;if(I?E=A:(E=A==="v"?"h":"v",I=go(A,N)),!I)return!1;if(!r.current&&"changedTouches"in p&&(w||C)&&(r.current=E),!E)return!0;var D=r.current||E;return Sc(D,b,p,D==="h"?w:C,!0)},[]),l=c.useCallback(function(p){var b=p;if(!(!Je.length||Je[Je.length-1]!==s)){var y="deltaY"in b?yo(b):Ot(b),x=t.current.filter(function(E){return E.name===b.type&&(E.target===b.target||b.target===E.shadowParent)&&Cc(E.delta,y)})[0];if(x&&x.should){b.cancelable&&b.preventDefault();return}if(!x){var w=(i.current.shards||[]).map(xo).filter(Boolean).filter(function(E){return E.contains(b.target)}),C=w.length>0?a(b,w[0]):!i.current.noIsolation;C&&b.cancelable&&b.preventDefault()}}},[]),u=c.useCallback(function(p,b,y,x){var w={name:p,delta:b,target:y,should:x,shadowParent:Pc(y)};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(C){return C!==w})},1)},[]),f=c.useCallback(function(p){n.current=Ot(p),r.current=void 0},[]),d=c.useCallback(function(p){u(p.type,yo(p),p.target,a(p,e.lockRef.current))},[]),m=c.useCallback(function(p){u(p.type,Ot(p),p.target,a(p,e.lockRef.current))},[]);c.useEffect(function(){return Je.push(s),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:m}),document.addEventListener("wheel",l,Ze),document.addEventListener("touchmove",l,Ze),document.addEventListener("touchstart",f,Ze),function(){Je=Je.filter(function(p){return p!==s}),document.removeEventListener("wheel",l,Ze),document.removeEventListener("touchmove",l,Ze),document.removeEventListener("touchstart",f,Ze)}},[]);var h=e.removeScrollBar,v=e.inert;return c.createElement(c.Fragment,null,v?c.createElement(s,{styles:_c(o)}):null,h?c.createElement(hc,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function Pc(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const Ac=nc(uo,kc);var wo=c.forwardRef(function(e,t){return c.createElement(Rt,we({},e,{ref:t,sideCar:Ac}))});wo.classNames=Rt.classNames;const Rc=wo;var Nc=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Qe=new WeakMap,Tt=new WeakMap,Mt={},kn=0,So=function(e){return e&&(e.host||So(e.parentNode))},Oc=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=So(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})},Tc=function(e,t,n,r){var o=Oc(t,Array.isArray(e)?e:[e]);Mt[n]||(Mt[n]=new WeakMap);var s=Mt[n],i=[],a=new Set,l=new Set(o),u=function(d){!d||a.has(d)||(a.add(d),u(d.parentNode))};o.forEach(u);var f=function(d){!d||l.has(d)||Array.prototype.forEach.call(d.children,function(m){if(a.has(m))f(m);else try{var h=m.getAttribute(r),v=h!==null&&h!=="false",p=(Qe.get(m)||0)+1,b=(s.get(m)||0)+1;Qe.set(m,p),s.set(m,b),i.push(m),p===1&&v&&Tt.set(m,!0),b===1&&m.setAttribute(n,"true"),v||m.setAttribute(r,"true")}catch(y){console.error("aria-hidden: cannot operate on ",m,y)}})};return f(t),a.clear(),kn++,function(){i.forEach(function(d){var m=Qe.get(d)-1,h=s.get(d)-1;Qe.set(d,m),s.set(d,h),m||(Tt.has(d)||d.removeAttribute(r),Tt.delete(d)),h||d.removeAttribute(n)}),kn--,kn||(Qe=new WeakMap,Qe=new WeakMap,Tt=new WeakMap,Mt={})}},Mc=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=t||Nc(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),Tc(r,o,n,"aria-hidden")):function(){return null}};function Co(e){const t=c.useRef({value:e,previous:e});return c.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}function _o(e){const[t,n]=c.useState(void 0);return ue(()=>{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 i,a;if("borderBoxSize"in s){const l=s.borderBoxSize,u=Array.isArray(l)?l[0]:l;i=u.inlineSize,a=u.blockSize}else i=e.offsetWidth,a=e.offsetHeight;n({width:i,height:a})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}const Ic=["top","right","bottom","left"],je=Math.min,pe=Math.max,It=Math.round,jt=Math.floor,Se=e=>({x:e,y:e}),jc={left:"right",right:"left",bottom:"top",top:"bottom"},Lc={start:"end",end:"start"};function Pn(e,t,n){return pe(e,je(t,n))}function Re(e,t){return typeof e=="function"?e(t):e}function Ne(e){return e.split("-")[0]}function et(e){return e.split("-")[1]}function An(e){return e==="x"?"y":"x"}function Rn(e){return e==="y"?"height":"width"}const $c=new Set(["top","bottom"]);function Ce(e){return $c.has(Ne(e))?"y":"x"}function Nn(e){return An(Ce(e))}function Dc(e,t,n){n===void 0&&(n=!1);const r=et(e),o=Nn(e),s=Rn(o);let i=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(i=Lt(i)),[i,Lt(i)]}function Fc(e){const t=Lt(e);return[On(e),t,On(t)]}function On(e){return e.replace(/start|end/g,t=>Lc[t])}const Eo=["left","right"],ko=["right","left"],Bc=["top","bottom"],Vc=["bottom","top"];function zc(e,t,n){switch(e){case"top":case"bottom":return n?t?ko:Eo:t?Eo:ko;case"left":case"right":return t?Bc:Vc;default:return[]}}function Wc(e,t,n,r){const o=et(e);let s=zc(Ne(e),n==="start",r);return o&&(s=s.map(i=>i+"-"+o),t&&(s=s.concat(s.map(On)))),s}function Lt(e){return e.replace(/left|right|bottom|top/g,t=>jc[t])}function Hc(e){return{top:0,right:0,bottom:0,left:0,...e}}function Po(e){return typeof e!="number"?Hc(e):{top:e,right:e,bottom:e,left:e}}function $t(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 Ao(e,t,n){let{reference:r,floating:o}=e;const s=Ce(t),i=Nn(t),a=Rn(i),l=Ne(t),u=s==="y",f=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,m=r[a]/2-o[a]/2;let h;switch(l){case"top":h={x:f,y:r.y-o.height};break;case"bottom":h={x:f,y:r.y+r.height};break;case"right":h={x:r.x+r.width,y:d};break;case"left":h={x:r.x-o.width,y:d};break;default:h={x:r.x,y:r.y}}switch(et(t)){case"start":h[i]-=m*(n&&u?-1:1);break;case"end":h[i]+=m*(n&&u?-1:1);break}return h}const Uc=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:s=[],platform:i}=n,a=s.filter(Boolean),l=await(i.isRTL==null?void 0:i.isRTL(t));let u=await i.getElementRects({reference:e,floating:t,strategy:o}),{x:f,y:d}=Ao(u,r,l),m=r,h={},v=0;for(let p=0;p<a.length;p++){const{name:b,fn:y}=a[p],{x,y:w,data:C,reset:E}=await y({x:f,y:d,initialPlacement:r,placement:m,strategy:o,middlewareData:h,rects:u,platform:i,elements:{reference:e,floating:t}});f=x??f,d=w??d,h={...h,[b]:{...h[b],...C}},E&&v<=50&&(v++,typeof E=="object"&&(E.placement&&(m=E.placement),E.rects&&(u=E.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:o}):E.rects),{x:f,y:d}=Ao(u,m,l)),p=-1)}return{x:f,y:d,placement:m,strategy:o,middlewareData:h}};async function ft(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:s,rects:i,elements:a,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:f="viewport",elementContext:d="floating",altBoundary:m=!1,padding:h=0}=Re(t,e),v=Po(h),b=a[m?d==="floating"?"reference":"floating":d],y=$t(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(b)))==null||n?b:b.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(a.floating)),boundary:u,rootBoundary:f,strategy:l})),x=d==="floating"?{x:r,y:o,width:i.floating.width,height:i.floating.height}:i.reference,w=await(s.getOffsetParent==null?void 0:s.getOffsetParent(a.floating)),C=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},E=$t(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:x,offsetParent:w,strategy:l}):x);return{top:(y.top-E.top+v.top)/C.y,bottom:(E.bottom-y.bottom+v.bottom)/C.y,left:(y.left-E.left+v.left)/C.x,right:(E.right-y.right+v.right)/C.x}}const Gc=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:s,platform:i,elements:a,middlewareData:l}=t,{element:u,padding:f=0}=Re(e,t)||{};if(u==null)return{};const d=Po(f),m={x:n,y:r},h=Nn(o),v=Rn(h),p=await i.getDimensions(u),b=h==="y",y=b?"top":"left",x=b?"bottom":"right",w=b?"clientHeight":"clientWidth",C=s.reference[v]+s.reference[h]-m[h]-s.floating[v],E=m[h]-s.reference[h],N=await(i.getOffsetParent==null?void 0:i.getOffsetParent(u));let A=N?N[w]:0;(!A||!await(i.isElement==null?void 0:i.isElement(N)))&&(A=a.floating[w]||s.floating[v]);const k=C/2-E/2,$=A/2-p[v]/2-1,B=je(d[y],$),I=je(d[x],$),D=B,W=A-p[v]-I,H=A/2-p[v]/2+k,G=Pn(D,H,W),M=!l.arrow&&et(o)!=null&&H!==G&&s.reference[v]/2-(H<D?B:I)-p[v]/2<0,j=M?H<D?H-D:H-W:0;return{[h]:m[h]+j,data:{[h]:G,centerOffset:H-G-j,...M&&{alignmentOffset:j}},reset:M}}}),Kc=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:s,rects:i,initialPlacement:a,platform:l,elements:u}=t,{mainAxis:f=!0,crossAxis:d=!0,fallbackPlacements:m,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:v="none",flipAlignment:p=!0,...b}=Re(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const y=Ne(o),x=Ce(a),w=Ne(a)===a,C=await(l.isRTL==null?void 0:l.isRTL(u.floating)),E=m||(w||!p?[Lt(a)]:Fc(a)),N=v!=="none";!m&&N&&E.push(...Wc(a,p,v,C));const A=[a,...E],k=await ft(t,b),$=[];let B=((r=s.flip)==null?void 0:r.overflows)||[];if(f&&$.push(k[y]),d){const H=Dc(o,i,C);$.push(k[H[0]],k[H[1]])}if(B=[...B,{placement:o,overflows:$}],!$.every(H=>H<=0)){var I,D;const H=(((I=s.flip)==null?void 0:I.index)||0)+1,G=A[H];if(G&&(!(d==="alignment"?x!==Ce(G):!1)||B.every(_=>Ce(_.placement)===x?_.overflows[0]>0:!0)))return{data:{index:H,overflows:B},reset:{placement:G}};let M=(D=B.filter(j=>j.overflows[0]<=0).sort((j,_)=>j.overflows[1]-_.overflows[1])[0])==null?void 0:D.placement;if(!M)switch(h){case"bestFit":{var W;const j=(W=B.filter(_=>{if(N){const q=Ce(_.placement);return q===x||q==="y"}return!0}).map(_=>[_.placement,_.overflows.filter(q=>q>0).reduce((q,se)=>q+se,0)]).sort((_,q)=>_[1]-q[1])[0])==null?void 0:W[0];j&&(M=j);break}case"initialPlacement":M=a;break}if(o!==M)return{reset:{placement:M}}}return{}}}};function Ro(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function No(e){return Ic.some(t=>e[t]>=0)}const Yc=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=Re(e,t);switch(r){case"referenceHidden":{const s=await ft(t,{...o,elementContext:"reference"}),i=Ro(s,n.reference);return{data:{referenceHiddenOffsets:i,referenceHidden:No(i)}}}case"escaped":{const s=await ft(t,{...o,altBoundary:!0}),i=Ro(s,n.floating);return{data:{escapedOffsets:i,escaped:No(i)}}}default:return{}}}}},Oo=new Set(["left","top"]);async function qc(e,t){const{placement:n,platform:r,elements:o}=e,s=await(r.isRTL==null?void 0:r.isRTL(o.floating)),i=Ne(n),a=et(n),l=Ce(n)==="y",u=Oo.has(i)?-1:1,f=s&&l?-1:1,d=Re(t,e);let{mainAxis:m,crossAxis:h,alignmentAxis:v}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return a&&typeof v=="number"&&(h=a==="end"?v*-1:v),l?{x:h*f,y:m*u}:{x:m*u,y:h*f}}const Xc=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:s,placement:i,middlewareData:a}=t,l=await qc(t,e);return i===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:o+l.x,y:s+l.y,data:{...l,placement:i}}}}},Zc=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:s=!0,crossAxis:i=!1,limiter:a={fn:b=>{let{x:y,y:x}=b;return{x:y,y:x}}},...l}=Re(e,t),u={x:n,y:r},f=await ft(t,l),d=Ce(Ne(o)),m=An(d);let h=u[m],v=u[d];if(s){const b=m==="y"?"top":"left",y=m==="y"?"bottom":"right",x=h+f[b],w=h-f[y];h=Pn(x,h,w)}if(i){const b=d==="y"?"top":"left",y=d==="y"?"bottom":"right",x=v+f[b],w=v-f[y];v=Pn(x,v,w)}const p=a.fn({...t,[m]:h,[d]:v});return{...p,data:{x:p.x-n,y:p.y-r,enabled:{[m]:s,[d]:i}}}}}},Jc=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:s,middlewareData:i}=t,{offset:a=0,mainAxis:l=!0,crossAxis:u=!0}=Re(e,t),f={x:n,y:r},d=Ce(o),m=An(d);let h=f[m],v=f[d];const p=Re(a,t),b=typeof p=="number"?{mainAxis:p,crossAxis:0}:{mainAxis:0,crossAxis:0,...p};if(l){const w=m==="y"?"height":"width",C=s.reference[m]-s.floating[w]+b.mainAxis,E=s.reference[m]+s.reference[w]-b.mainAxis;h<C?h=C:h>E&&(h=E)}if(u){var y,x;const w=m==="y"?"width":"height",C=Oo.has(Ne(o)),E=s.reference[d]-s.floating[w]+(C&&((y=i.offset)==null?void 0:y[d])||0)+(C?0:b.crossAxis),N=s.reference[d]+s.reference[w]+(C?0:((x=i.offset)==null?void 0:x[d])||0)-(C?b.crossAxis:0);v<E?v=E:v>N&&(v=N)}return{[m]:h,[d]:v}}}},Qc=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:s,platform:i,elements:a}=t,{apply:l=()=>{},...u}=Re(e,t),f=await ft(t,u),d=Ne(o),m=et(o),h=Ce(o)==="y",{width:v,height:p}=s.floating;let b,y;d==="top"||d==="bottom"?(b=d,y=m===(await(i.isRTL==null?void 0:i.isRTL(a.floating))?"start":"end")?"left":"right"):(y=d,b=m==="end"?"top":"bottom");const x=p-f.top-f.bottom,w=v-f.left-f.right,C=je(p-f[b],x),E=je(v-f[y],w),N=!t.middlewareData.shift;let A=C,k=E;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(k=w),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(A=x),N&&!m){const B=pe(f.left,0),I=pe(f.right,0),D=pe(f.top,0),W=pe(f.bottom,0);h?k=v-2*(B!==0||I!==0?B+I:pe(f.left,f.right)):A=p-2*(D!==0||W!==0?D+W:pe(f.top,f.bottom))}await l({...t,availableWidth:k,availableHeight:A});const $=await i.getDimensions(a.floating);return v!==$.width||p!==$.height?{reset:{rects:!0}}:{}}}};function Dt(){return typeof window<"u"}function tt(e){return To(e)?(e.nodeName||"").toLowerCase():"#document"}function me(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function _e(e){var t;return(t=(To(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function To(e){return Dt()?e instanceof Node||e instanceof me(e).Node:!1}function be(e){return Dt()?e instanceof Element||e instanceof me(e).Element:!1}function Ee(e){return Dt()?e instanceof HTMLElement||e instanceof me(e).HTMLElement:!1}function Mo(e){return!Dt()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof me(e).ShadowRoot}const eu=new Set(["inline","contents"]);function pt(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=ye(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!eu.has(o)}const tu=new Set(["table","td","th"]);function nu(e){return tu.has(tt(e))}const ru=[":popover-open",":modal"];function Ft(e){return ru.some(t=>{try{return e.matches(t)}catch{return!1}})}const ou=["transform","translate","scale","rotate","perspective"],su=["transform","translate","scale","rotate","perspective","filter"],iu=["paint","layout","strict","content"];function Tn(e){const t=Mn(),n=be(e)?ye(e):e;return ou.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)||su.some(r=>(n.willChange||"").includes(r))||iu.some(r=>(n.contain||"").includes(r))}function au(e){let t=Le(e);for(;Ee(t)&&!nt(t);){if(Tn(t))return t;if(Ft(t))return null;t=Le(t)}return null}function Mn(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const lu=new Set(["html","body","#document"]);function nt(e){return lu.has(tt(e))}function ye(e){return me(e).getComputedStyle(e)}function Bt(e){return be(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Le(e){if(tt(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Mo(e)&&e.host||_e(e);return Mo(t)?t.host:t}function Io(e){const t=Le(e);return nt(t)?e.ownerDocument?e.ownerDocument.body:e.body:Ee(t)&&pt(t)?t:Io(t)}function mt(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=Io(e),s=o===((r=e.ownerDocument)==null?void 0:r.body),i=me(o);if(s){const a=In(i);return t.concat(i,i.visualViewport||[],pt(o)?o:[],a&&n?mt(a):[])}return t.concat(o,mt(o,[],n))}function In(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function jo(e){const t=ye(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Ee(e),s=o?e.offsetWidth:n,i=o?e.offsetHeight:r,a=It(n)!==s||It(r)!==i;return a&&(n=s,r=i),{width:n,height:r,$:a}}function jn(e){return be(e)?e:e.contextElement}function rt(e){const t=jn(e);if(!Ee(t))return Se(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:s}=jo(t);let i=(s?It(n.width):n.width)/r,a=(s?It(n.height):n.height)/o;return(!i||!Number.isFinite(i))&&(i=1),(!a||!Number.isFinite(a))&&(a=1),{x:i,y:a}}const cu=Se(0);function Lo(e){const t=me(e);return!Mn()||!t.visualViewport?cu:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function uu(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==me(e)?!1:t}function Be(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),s=jn(e);let i=Se(1);t&&(r?be(r)&&(i=rt(r)):i=rt(e));const a=uu(s,n,r)?Lo(s):Se(0);let l=(o.left+a.x)/i.x,u=(o.top+a.y)/i.y,f=o.width/i.x,d=o.height/i.y;if(s){const m=me(s),h=r&&be(r)?me(r):r;let v=m,p=In(v);for(;p&&r&&h!==v;){const b=rt(p),y=p.getBoundingClientRect(),x=ye(p),w=y.left+(p.clientLeft+parseFloat(x.paddingLeft))*b.x,C=y.top+(p.clientTop+parseFloat(x.paddingTop))*b.y;l*=b.x,u*=b.y,f*=b.x,d*=b.y,l+=w,u+=C,v=me(p),p=In(v)}}return $t({width:f,height:d,x:l,y:u})}function Vt(e,t){const n=Bt(e).scrollLeft;return t?t.left+n:Be(_e(e)).left+n}function $o(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-Vt(e,n),o=n.top+t.scrollTop;return{x:r,y:o}}function du(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const s=o==="fixed",i=_e(r),a=t?Ft(t.floating):!1;if(r===i||a&&s)return n;let l={scrollLeft:0,scrollTop:0},u=Se(1);const f=Se(0),d=Ee(r);if((d||!d&&!s)&&((tt(r)!=="body"||pt(i))&&(l=Bt(r)),Ee(r))){const h=Be(r);u=rt(r),f.x=h.x+r.clientLeft,f.y=h.y+r.clientTop}const m=i&&!d&&!s?$o(i,l):Se(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-l.scrollLeft*u.x+f.x+m.x,y:n.y*u.y-l.scrollTop*u.y+f.y+m.y}}function fu(e){return Array.from(e.getClientRects())}function pu(e){const t=_e(e),n=Bt(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 i=-n.scrollLeft+Vt(e);const a=-n.scrollTop;return ye(r).direction==="rtl"&&(i+=pe(t.clientWidth,r.clientWidth)-o),{width:o,height:s,x:i,y:a}}const Do=25;function mu(e,t){const n=me(e),r=_e(e),o=n.visualViewport;let s=r.clientWidth,i=r.clientHeight,a=0,l=0;if(o){s=o.width,i=o.height;const f=Mn();(!f||f&&t==="fixed")&&(a=o.offsetLeft,l=o.offsetTop)}const u=Vt(r);if(u<=0){const f=r.ownerDocument,d=f.body,m=getComputedStyle(d),h=f.compatMode==="CSS1Compat"&&parseFloat(m.marginLeft)+parseFloat(m.marginRight)||0,v=Math.abs(r.clientWidth-d.clientWidth-h);v<=Do&&(s-=v)}else u<=Do&&(s+=u);return{width:s,height:i,x:a,y:l}}const hu=new Set(["absolute","fixed"]);function gu(e,t){const n=Be(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,s=Ee(e)?rt(e):Se(1),i=e.clientWidth*s.x,a=e.clientHeight*s.y,l=o*s.x,u=r*s.y;return{width:i,height:a,x:l,y:u}}function Fo(e,t,n){let r;if(t==="viewport")r=mu(e,n);else if(t==="document")r=pu(_e(e));else if(be(t))r=gu(t,n);else{const o=Lo(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return $t(r)}function Bo(e,t){const n=Le(e);return n===t||!be(n)||nt(n)?!1:ye(n).position==="fixed"||Bo(n,t)}function vu(e,t){const n=t.get(e);if(n)return n;let r=mt(e,[],!1).filter(a=>be(a)&&tt(a)!=="body"),o=null;const s=ye(e).position==="fixed";let i=s?Le(e):e;for(;be(i)&&!nt(i);){const a=ye(i),l=Tn(i);!l&&a.position==="fixed"&&(o=null),(s?!l&&!o:!l&&a.position==="static"&&!!o&&hu.has(o.position)||pt(i)&&!l&&Bo(e,i))?r=r.filter(f=>f!==i):o=a,i=Le(i)}return t.set(e,r),r}function bu(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[...n==="clippingAncestors"?Ft(t)?[]:vu(t,this._c):[].concat(n),r],a=i[0],l=i.reduce((u,f)=>{const d=Fo(t,f,o);return u.top=pe(d.top,u.top),u.right=je(d.right,u.right),u.bottom=je(d.bottom,u.bottom),u.left=pe(d.left,u.left),u},Fo(t,a,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function yu(e){const{width:t,height:n}=jo(e);return{width:t,height:n}}function xu(e,t,n){const r=Ee(t),o=_e(t),s=n==="fixed",i=Be(e,!0,s,t);let a={scrollLeft:0,scrollTop:0};const l=Se(0);function u(){l.x=Vt(o)}if(r||!r&&!s)if((tt(t)!=="body"||pt(o))&&(a=Bt(t)),r){const h=Be(t,!0,s,t);l.x=h.x+t.clientLeft,l.y=h.y+t.clientTop}else o&&u();s&&!r&&o&&u();const f=o&&!r&&!s?$o(o,a):Se(0),d=i.left+a.scrollLeft-l.x-f.x,m=i.top+a.scrollTop-l.y-f.y;return{x:d,y:m,width:i.width,height:i.height}}function Ln(e){return ye(e).position==="static"}function Vo(e,t){if(!Ee(e)||ye(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return _e(e)===n&&(n=n.ownerDocument.body),n}function zo(e,t){const n=me(e);if(Ft(e))return n;if(!Ee(e)){let o=Le(e);for(;o&&!nt(o);){if(be(o)&&!Ln(o))return o;o=Le(o)}return n}let r=Vo(e,t);for(;r&&nu(r)&&Ln(r);)r=Vo(r,t);return r&&nt(r)&&Ln(r)&&!Tn(r)?n:r||au(e)||n}const wu=async function(e){const t=this.getOffsetParent||zo,n=this.getDimensions,r=await n(e.floating);return{reference:xu(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Su(e){return ye(e).direction==="rtl"}const Cu={convertOffsetParentRelativeRectToViewportRelativeRect:du,getDocumentElement:_e,getClippingRect:bu,getOffsetParent:zo,getElementRects:wu,getClientRects:fu,getDimensions:yu,getScale:rt,isElement:be,isRTL:Su};function Wo(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function _u(e,t){let n=null,r;const o=_e(e);function s(){var a;clearTimeout(r),(a=n)==null||a.disconnect(),n=null}function i(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),s();const u=e.getBoundingClientRect(),{left:f,top:d,width:m,height:h}=u;if(a||t(),!m||!h)return;const v=jt(d),p=jt(o.clientWidth-(f+m)),b=jt(o.clientHeight-(d+h)),y=jt(f),w={rootMargin:-v+"px "+-p+"px "+-b+"px "+-y+"px",threshold:pe(0,je(1,l))||1};let C=!0;function E(N){const A=N[0].intersectionRatio;if(A!==l){if(!C)return i();A?i(!1,A):r=setTimeout(()=>{i(!1,1e-7)},1e3)}A===1&&!Wo(u,e.getBoundingClientRect())&&i(),C=!1}try{n=new IntersectionObserver(E,{...w,root:o.ownerDocument})}catch{n=new IntersectionObserver(E,w)}n.observe(e)}return i(!0),s}function Eu(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:s=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,u=jn(e),f=o||s?[...u?mt(u):[],...mt(t)]:[];f.forEach(y=>{o&&y.addEventListener("scroll",n,{passive:!0}),s&&y.addEventListener("resize",n)});const d=u&&a?_u(u,n):null;let m=-1,h=null;i&&(h=new ResizeObserver(y=>{let[x]=y;x&&x.target===u&&h&&(h.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var w;(w=h)==null||w.observe(t)})),n()}),u&&!l&&h.observe(u),h.observe(t));let v,p=l?Be(e):null;l&&b();function b(){const y=Be(e);p&&!Wo(p,y)&&n(),p=y,v=requestAnimationFrame(b)}return n(),()=>{var y;f.forEach(x=>{o&&x.removeEventListener("scroll",n),s&&x.removeEventListener("resize",n)}),d==null||d(),(y=h)==null||y.disconnect(),h=null,l&&cancelAnimationFrame(v)}}const ku=Xc,Pu=Zc,Au=Kc,Ru=Qc,Nu=Yc,Ho=Gc,Ou=Jc,Tu=(e,t,n)=>{const r=new Map,o={platform:Cu,...n},s={...o.platform,_c:r};return Uc(e,t,{...o,platform:s})};var Mu=typeof document<"u",Iu=function(){},zt=Mu?V.useLayoutEffect:Iu;function Wt(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(!Wt(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)&&!Wt(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function Uo(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Go(e,t){const n=Uo(e);return Math.round(t*n)/n}function $n(e){const t=c.useRef(e);return zt(()=>{t.current=e}),t}function ju(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:s,floating:i}={},transform:a=!0,whileElementsMounted:l,open:u}=e,[f,d]=c.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[m,h]=c.useState(r);Wt(m,r)||h(r);const[v,p]=c.useState(null),[b,y]=c.useState(null),x=c.useCallback(_=>{_!==N.current&&(N.current=_,p(_))},[]),w=c.useCallback(_=>{_!==A.current&&(A.current=_,y(_))},[]),C=s||v,E=i||b,N=c.useRef(null),A=c.useRef(null),k=c.useRef(f),$=l!=null,B=$n(l),I=$n(o),D=$n(u),W=c.useCallback(()=>{if(!N.current||!A.current)return;const _={placement:t,strategy:n,middleware:m};I.current&&(_.platform=I.current),Tu(N.current,A.current,_).then(q=>{const se={...q,isPositioned:D.current!==!1};H.current&&!Wt(k.current,se)&&(k.current=se,St.flushSync(()=>{d(se)}))})},[m,t,n,I,D]);zt(()=>{u===!1&&k.current.isPositioned&&(k.current.isPositioned=!1,d(_=>({..._,isPositioned:!1})))},[u]);const H=c.useRef(!1);zt(()=>(H.current=!0,()=>{H.current=!1}),[]),zt(()=>{if(C&&(N.current=C),E&&(A.current=E),C&&E){if(B.current)return B.current(C,E,W);W()}},[C,E,W,B,$]);const G=c.useMemo(()=>({reference:N,floating:A,setReference:x,setFloating:w}),[x,w]),M=c.useMemo(()=>({reference:C,floating:E}),[C,E]),j=c.useMemo(()=>{const _={position:n,left:0,top:0};if(!M.floating)return _;const q=Go(M.floating,f.x),se=Go(M.floating,f.y);return a?{..._,transform:"translate("+q+"px, "+se+"px)",...Uo(M.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:q,top:se}},[n,a,M.floating,f.x,f.y]);return c.useMemo(()=>({...f,update:W,refs:G,elements:M,floatingStyles:j}),[f,W,G,M,j])}const Lu=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?Ho({element:r.current,padding:o}).fn(n):{}:r?Ho({element:r,padding:o}).fn(n):{}}}},$u=(e,t)=>({...ku(e),options:[e,t]}),Du=(e,t)=>({...Pu(e),options:[e,t]}),Fu=(e,t)=>({...Ou(e),options:[e,t]}),Bu=(e,t)=>({...Au(e),options:[e,t]}),Vu=(e,t)=>({...Ru(e),options:[e,t]}),zu=(e,t)=>({...Nu(e),options:[e,t]}),Wu=(e,t)=>({...Lu(e),options:[e,t]});function Hu(e){const t=Uu(e),n=c.forwardRef((r,o)=>{const{children:s,...i}=r,a=c.Children.toArray(s),l=a.find(Ku);if(l){const u=l.props.children,f=a.map(d=>d===l?c.Children.count(u)>1?c.Children.only(null):c.isValidElement(u)?u.props.children:null:d);return g.jsx(t,{...i,ref:o,children:c.isValidElement(u)?c.cloneElement(u,void 0,f):null})}return g.jsx(t,{...i,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}function Uu(e){const t=c.forwardRef((n,r)=>{const{children:o,...s}=n;if(c.isValidElement(o)){const i=qu(o),a=Yu(s,o.props);return o.type!==c.Fragment&&(a.ref=r?ve(r,i):i),c.cloneElement(o,a)}return c.Children.count(o)>1?c.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Gu=Symbol("radix.slottable");function Ku(e){return c.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Gu}function Yu(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]=(...a)=>{const l=s(...a);return o(...a),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function qu(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 Xu=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Zu=Xu.reduce((e,t)=>{const n=Hu(`Primitive.${t}`),r=c.forwardRef((o,s)=>{const{asChild:i,...a}=o,l=i?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),g.jsx(l,{...a,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),Ju="Arrow",Ko=c.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...s}=e;return g.jsx(Zu.svg,{...s,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:g.jsx("polygon",{points:"0,0 30,0 15,10"})})});Ko.displayName=Ju;var Qu=Ko;function ed(e,t=[]){let n=[];function r(s,i){const a=c.createContext(i),l=n.length;n=[...n,i];const u=d=>{var y;const{scope:m,children:h,...v}=d,p=((y=m==null?void 0:m[e])==null?void 0:y[l])||a,b=c.useMemo(()=>v,Object.values(v));return g.jsx(p.Provider,{value:b,children:h})};u.displayName=s+"Provider";function f(d,m){var p;const h=((p=m==null?void 0:m[e])==null?void 0:p[l])||a,v=c.useContext(h);if(v)return v;if(i!==void 0)return i;throw new Error(`\`${d}\` must be used within \`${s}\``)}return[u,f]}const o=()=>{const s=n.map(i=>c.createContext(i));return function(a){const l=(a==null?void 0:a[e])||s;return c.useMemo(()=>({[`__scope${e}`]:{...a,[e]:l}}),[a,l])}};return o.scopeName=e,[r,td(o,...t)]}function td(...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 i=r.reduce((a,{useScope:l,scopeName:u})=>{const d=l(s)[`__scope${u}`];return{...a,...d}},{});return c.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}function nd(e){const t=rd(e),n=c.forwardRef((r,o)=>{const{children:s,...i}=r,a=c.Children.toArray(s),l=a.find(sd);if(l){const u=l.props.children,f=a.map(d=>d===l?c.Children.count(u)>1?c.Children.only(null):c.isValidElement(u)?u.props.children:null:d);return g.jsx(t,{...i,ref:o,children:c.isValidElement(u)?c.cloneElement(u,void 0,f):null})}return g.jsx(t,{...i,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}function rd(e){const t=c.forwardRef((n,r)=>{const{children:o,...s}=n;if(c.isValidElement(o)){const i=ad(o),a=id(s,o.props);return o.type!==c.Fragment&&(a.ref=r?ve(r,i):i),c.cloneElement(o,a)}return c.Children.count(o)>1?c.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var od=Symbol("radix.slottable");function sd(e){return c.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===od}function id(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]=(...a)=>{const l=s(...a);return o(...a),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function ad(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 ld=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Yo=ld.reduce((e,t)=>{const n=nd(`Primitive.${t}`),r=c.forwardRef((o,s)=>{const{asChild:i,...a}=o,l=i?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),g.jsx(l,{...a,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),Dn="Popper",[qo,Xo]=ed(Dn),[cd,Zo]=qo(Dn),Jo=e=>{const{__scopePopper:t,children:n}=e,[r,o]=c.useState(null);return g.jsx(cd,{scope:t,anchor:r,onAnchorChange:o,children:n})};Jo.displayName=Dn;var Qo="PopperAnchor",es=c.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,s=Zo(Qo,n),i=c.useRef(null),a=ne(t,i),l=c.useRef(null);return c.useEffect(()=>{const u=l.current;l.current=(r==null?void 0:r.current)||i.current,u!==l.current&&s.onAnchorChange(l.current)}),r?null:g.jsx(Yo.div,{...o,ref:a})});es.displayName=Qo;var Fn="PopperContent",[ud,dd]=qo(Fn),ts=c.forwardRef((e,t)=>{var P,Y,te,X,J,Z;const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:s="center",alignOffset:i=0,arrowPadding:a=0,avoidCollisions:l=!0,collisionBoundary:u=[],collisionPadding:f=0,sticky:d="partial",hideWhenDetached:m=!1,updatePositionStrategy:h="optimized",onPlaced:v,...p}=e,b=Zo(Fn,n),[y,x]=c.useState(null),w=ne(t,ge=>x(ge)),[C,E]=c.useState(null),N=_o(C),A=(N==null?void 0:N.width)??0,k=(N==null?void 0:N.height)??0,$=r+(s!=="center"?"-"+s:""),B=typeof f=="number"?f:{top:0,right:0,bottom:0,left:0,...f},I=Array.isArray(u)?u:[u],D=I.length>0,W={padding:B,boundary:I.filter(pd),altBoundary:D},{refs:H,floatingStyles:G,placement:M,isPositioned:j,middlewareData:_}=ju({strategy:"fixed",placement:$,whileElementsMounted:(...ge)=>Eu(...ge,{animationFrame:h==="always"}),elements:{reference:b.anchor},middleware:[$u({mainAxis:o+k,alignmentAxis:i}),l&&Du({mainAxis:!0,crossAxis:!1,limiter:d==="partial"?Fu():void 0,...W}),l&&Bu({...W}),Vu({...W,apply:({elements:ge,rects:ke,availableWidth:bt,availableHeight:yt})=>{const{width:xt,height:qf}=ke.reference,Xt=ge.floating.style;Xt.setProperty("--radix-popper-available-width",`${bt}px`),Xt.setProperty("--radix-popper-available-height",`${yt}px`),Xt.setProperty("--radix-popper-anchor-width",`${xt}px`),Xt.setProperty("--radix-popper-anchor-height",`${qf}px`)}}),C&&Wu({element:C,padding:a}),md({arrowWidth:A,arrowHeight:k}),m&&zu({strategy:"referenceHidden",...W})]}),[q,se]=os(M),S=Te(v);ue(()=>{j&&(S==null||S())},[j,S]);const L=(P=_.arrow)==null?void 0:P.x,F=(Y=_.arrow)==null?void 0:Y.y,z=((te=_.arrow)==null?void 0:te.centerOffset)!==0,[de,fe]=c.useState();return ue(()=>{y&&fe(window.getComputedStyle(y).zIndex)},[y]),g.jsx("div",{ref:H.setFloating,"data-radix-popper-content-wrapper":"",style:{...G,transform:j?G.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:de,"--radix-popper-transform-origin":[(X=_.transformOrigin)==null?void 0:X.x,(J=_.transformOrigin)==null?void 0:J.y].join(" "),...((Z=_.hide)==null?void 0:Z.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:g.jsx(ud,{scope:n,placedSide:q,onArrowChange:E,arrowX:L,arrowY:F,shouldHideArrow:z,children:g.jsx(Yo.div,{"data-side":q,"data-align":se,...p,ref:w,style:{...p.style,animation:j?void 0:"none"}})})})});ts.displayName=Fn;var ns="PopperArrow",fd={top:"bottom",right:"left",bottom:"top",left:"right"},rs=c.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,s=dd(ns,r),i=fd[s.placedSide];return g.jsx("span",{ref:s.onArrowChange,style:{position:"absolute",left:s.arrowX,top:s.arrowY,[i]: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:g.jsx(Qu,{...o,ref:n,style:{...o.style,display:"block"}})})});rs.displayName=ns;function pd(e){return e!==null}var md=e=>({name:"transformOrigin",options:e,fn(t){var b,y,x;const{placement:n,rects:r,middlewareData:o}=t,i=((b=o.arrow)==null?void 0:b.centerOffset)!==0,a=i?0:e.arrowWidth,l=i?0:e.arrowHeight,[u,f]=os(n),d={start:"0%",center:"50%",end:"100%"}[f],m=(((y=o.arrow)==null?void 0:y.x)??0)+a/2,h=(((x=o.arrow)==null?void 0:x.y)??0)+l/2;let v="",p="";return u==="bottom"?(v=i?d:`${m}px`,p=`${-l}px`):u==="top"?(v=i?d:`${m}px`,p=`${r.floating.height+l}px`):u==="right"?(v=`${-l}px`,p=i?d:`${h}px`):u==="left"&&(v=`${r.floating.width+l}px`,p=i?d:`${h}px`),{data:{x:v,y:p}}}});function os(e){const[t,n="center"]=e.split("-");return[t,n]}var hd=Jo,gd=es,vd=ts,bd=rs;function Ht(e,[t,n]){return Math.min(n,Math.max(t,e))}function yd(e,t=[]){let n=[];function r(s,i){const a=c.createContext(i),l=n.length;n=[...n,i];const u=d=>{var y;const{scope:m,children:h,...v}=d,p=((y=m==null?void 0:m[e])==null?void 0:y[l])||a,b=c.useMemo(()=>v,Object.values(v));return g.jsx(p.Provider,{value:b,children:h})};u.displayName=s+"Provider";function f(d,m){var p;const h=((p=m==null?void 0:m[e])==null?void 0:p[l])||a,v=c.useContext(h);if(v)return v;if(i!==void 0)return i;throw new Error(`\`${d}\` must be used within \`${s}\``)}return[u,f]}const o=()=>{const s=n.map(i=>c.createContext(i));return function(a){const l=(a==null?void 0:a[e])||s;return c.useMemo(()=>({[`__scope${e}`]:{...a,[e]:l}}),[a,l])}};return o.scopeName=e,[r,xd(o,...t)]}function xd(...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 i=r.reduce((a,{useScope:l,scopeName:u})=>{const d=l(s)[`__scope${u}`];return{...a,...d}},{});return c.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}function ss(e){const t=wd(e),n=c.forwardRef((r,o)=>{const{children:s,...i}=r,a=c.Children.toArray(s),l=a.find(Cd);if(l){const u=l.props.children,f=a.map(d=>d===l?c.Children.count(u)>1?c.Children.only(null):c.isValidElement(u)?u.props.children:null:d);return g.jsx(t,{...i,ref:o,children:c.isValidElement(u)?c.cloneElement(u,void 0,f):null})}return g.jsx(t,{...i,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}function wd(e){const t=c.forwardRef((n,r)=>{const{children:o,...s}=n;if(c.isValidElement(o)){const i=Ed(o),a=_d(s,o.props);return o.type!==c.Fragment&&(a.ref=r?ve(r,i):i),c.cloneElement(o,a)}return c.Children.count(o)>1?c.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Sd=Symbol("radix.slottable");function Cd(e){return c.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Sd}function _d(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]=(...a)=>{const l=s(...a);return o(...a),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function Ed(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 kd=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],he=kd.reduce((e,t)=>{const n=ss(`Primitive.${t}`),r=c.forwardRef((o,s)=>{const{asChild:i,...a}=o,l=i?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),g.jsx(l,{...a,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),Pd=[" ","Enter","ArrowUp","ArrowDown"],Ad=[" ","Enter"],Ve="Select",[Ut,Gt,Rd]=Ur(Ve),[ot,sp]=yd(Ve,[Rd,Xo]),Kt=Xo(),[Nd,$e]=ot(Ve),[Od,Td]=ot(Ve),is=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:o,onOpenChange:s,value:i,defaultValue:a,onValueChange:l,dir:u,name:f,autoComplete:d,disabled:m,required:h,form:v}=e,p=Kt(t),[b,y]=c.useState(null),[x,w]=c.useState(null),[C,E]=c.useState(!1),N=Gr(u),[A,k]=gn({prop:r,defaultProp:o??!1,onChange:s,caller:Ve}),[$,B]=gn({prop:i,defaultProp:a,onChange:l,caller:Ve}),I=c.useRef(null),D=b?v||!!b.closest("form"):!0,[W,H]=c.useState(new Set),G=Array.from(W).map(M=>M.props.value).join(";");return g.jsx(hd,{...p,children:g.jsxs(Nd,{required:h,scope:t,trigger:b,onTriggerChange:y,valueNode:x,onValueNodeChange:w,valueNodeHasChildren:C,onValueNodeHasChildrenChange:E,contentId:vn(),value:$,onValueChange:B,open:A,onOpenChange:k,dir:N,triggerPointerDownPosRef:I,disabled:m,children:[g.jsx(Ut.Provider,{scope:t,children:g.jsx(Od,{scope:e.__scopeSelect,onNativeOptionAdd:c.useCallback(M=>{H(j=>new Set(j).add(M))},[]),onNativeOptionRemove:c.useCallback(M=>{H(j=>{const _=new Set(j);return _.delete(M),_})},[]),children:n})}),D?g.jsxs(As,{"aria-hidden":!0,required:h,tabIndex:-1,name:f,autoComplete:d,value:$,onChange:M=>B(M.target.value),disabled:m,form:v,children:[$===void 0?g.jsx("option",{value:""}):null,Array.from(W)]},G):null]})})};is.displayName=Ve;var as="SelectTrigger",ls=c.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...o}=e,s=Kt(n),i=$e(as,n),a=i.disabled||r,l=ne(t,i.onTriggerChange),u=Gt(n),f=c.useRef("touch"),[d,m,h]=Ns(p=>{const b=u().filter(w=>!w.disabled),y=b.find(w=>w.value===i.value),x=Os(b,p,y);x!==void 0&&i.onValueChange(x.value)}),v=p=>{a||(i.onOpenChange(!0),h()),p&&(i.triggerPointerDownPosRef.current={x:Math.round(p.pageX),y:Math.round(p.pageY)})};return g.jsx(gd,{asChild:!0,...s,children:g.jsx(he.button,{type:"button",role:"combobox","aria-controls":i.contentId,"aria-expanded":i.open,"aria-required":i.required,"aria-autocomplete":"none",dir:i.dir,"data-state":i.open?"open":"closed",disabled:a,"data-disabled":a?"":void 0,"data-placeholder":Rs(i.value)?"":void 0,...o,ref:l,onClick:ee(o.onClick,p=>{p.currentTarget.focus(),f.current!=="mouse"&&v(p)}),onPointerDown:ee(o.onPointerDown,p=>{f.current=p.pointerType;const b=p.target;b.hasPointerCapture(p.pointerId)&&b.releasePointerCapture(p.pointerId),p.button===0&&p.ctrlKey===!1&&p.pointerType==="mouse"&&(v(p),p.preventDefault())}),onKeyDown:ee(o.onKeyDown,p=>{const b=d.current!=="";!(p.ctrlKey||p.altKey||p.metaKey)&&p.key.length===1&&m(p.key),!(b&&p.key===" ")&&Pd.includes(p.key)&&(v(),p.preventDefault())})})})});ls.displayName=as;var cs="SelectValue",us=c.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,children:s,placeholder:i="",...a}=e,l=$e(cs,n),{onValueNodeHasChildrenChange:u}=l,f=s!==void 0,d=ne(t,l.onValueNodeChange);return ue(()=>{u(f)},[u,f]),g.jsx(he.span,{...a,ref:d,style:{pointerEvents:"none"},children:Rs(l.value)?g.jsx(g.Fragment,{children:i}):s})});us.displayName=cs;var Md="SelectIcon",ds=c.forwardRef((e,t)=>{const{__scopeSelect:n,children:r,...o}=e;return g.jsx(he.span,{"aria-hidden":!0,...o,ref:t,children:r||"▼"})});ds.displayName=Md;var Id="SelectPortal",fs=e=>g.jsx(so,{asChild:!0,...e});fs.displayName=Id;var ze="SelectContent",ps=c.forwardRef((e,t)=>{const n=$e(ze,e.__scopeSelect),[r,o]=c.useState();if(ue(()=>{o(new DocumentFragment)},[]),!n.open){const s=r;return s?St.createPortal(g.jsx(ms,{scope:e.__scopeSelect,children:g.jsx(Ut.Slot,{scope:e.__scopeSelect,children:g.jsx("div",{children:e.children})})}),s):null}return g.jsx(hs,{...e,ref:t})});ps.displayName=ze;var xe=10,[ms,De]=ot(ze),jd="SelectContentImpl",Ld=ss("SelectContent.RemoveScroll"),hs=c.forwardRef((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:s,onPointerDownOutside:i,side:a,sideOffset:l,align:u,alignOffset:f,arrowPadding:d,collisionBoundary:m,collisionPadding:h,sticky:v,hideWhenDetached:p,avoidCollisions:b,...y}=e,x=$e(ze,n),[w,C]=c.useState(null),[E,N]=c.useState(null),A=ne(t,P=>C(P)),[k,$]=c.useState(null),[B,I]=c.useState(null),D=Gt(n),[W,H]=c.useState(!1),G=c.useRef(!1);c.useEffect(()=>{if(w)return Mc(w)},[w]),Gl();const M=c.useCallback(P=>{const[Y,...te]=D().map(Z=>Z.ref.current),[X]=te.slice(-1),J=document.activeElement;for(const Z of P)if(Z===J||(Z==null||Z.scrollIntoView({block:"nearest"}),Z===Y&&E&&(E.scrollTop=0),Z===X&&E&&(E.scrollTop=E.scrollHeight),Z==null||Z.focus(),document.activeElement!==J))return},[D,E]),j=c.useCallback(()=>M([k,w]),[M,k,w]);c.useEffect(()=>{W&&j()},[W,j]);const{onOpenChange:_,triggerPointerDownPosRef:q}=x;c.useEffect(()=>{if(w){let P={x:0,y:0};const Y=X=>{var J,Z;P={x:Math.abs(Math.round(X.pageX)-(((J=q.current)==null?void 0:J.x)??0)),y:Math.abs(Math.round(X.pageY)-(((Z=q.current)==null?void 0:Z.y)??0))}},te=X=>{P.x<=10&&P.y<=10?X.preventDefault():w.contains(X.target)||_(!1),document.removeEventListener("pointermove",Y),q.current=null};return q.current!==null&&(document.addEventListener("pointermove",Y),document.addEventListener("pointerup",te,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",Y),document.removeEventListener("pointerup",te,{capture:!0})}}},[w,_,q]),c.useEffect(()=>{const P=()=>_(!1);return window.addEventListener("blur",P),window.addEventListener("resize",P),()=>{window.removeEventListener("blur",P),window.removeEventListener("resize",P)}},[_]);const[se,S]=Ns(P=>{const Y=D().filter(J=>!J.disabled),te=Y.find(J=>J.ref.current===document.activeElement),X=Os(Y,P,te);X&&setTimeout(()=>X.ref.current.focus())}),L=c.useCallback((P,Y,te)=>{const X=!G.current&&!te;(x.value!==void 0&&x.value===Y||X)&&($(P),X&&(G.current=!0))},[x.value]),F=c.useCallback(()=>w==null?void 0:w.focus(),[w]),z=c.useCallback((P,Y,te)=>{const X=!G.current&&!te;(x.value!==void 0&&x.value===Y||X)&&I(P)},[x.value]),de=r==="popper"?Bn:gs,fe=de===Bn?{side:a,sideOffset:l,align:u,alignOffset:f,arrowPadding:d,collisionBoundary:m,collisionPadding:h,sticky:v,hideWhenDetached:p,avoidCollisions:b}:{};return g.jsx(ms,{scope:n,content:w,viewport:E,onViewportChange:N,itemRefCallback:L,selectedItem:k,onItemLeave:F,itemTextRefCallback:z,focusSelectedItem:j,selectedItemText:B,position:r,isPositioned:W,searchRef:se,children:g.jsx(Rc,{as:Ld,allowPinchZoom:!0,children:g.jsx(eo,{asChild:!0,trapped:x.open,onMountAutoFocus:P=>{P.preventDefault()},onUnmountAutoFocus:ee(o,P=>{var Y;(Y=x.trigger)==null||Y.focus({preventScroll:!0}),P.preventDefault()}),children:g.jsx(Xr,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:s,onPointerDownOutside:i,onFocusOutside:P=>P.preventDefault(),onDismiss:()=>x.onOpenChange(!1),children:g.jsx(de,{role:"listbox",id:x.contentId,"data-state":x.open?"open":"closed",dir:x.dir,onContextMenu:P=>P.preventDefault(),...y,...fe,onPlaced:()=>H(!0),ref:A,style:{display:"flex",flexDirection:"column",outline:"none",...y.style},onKeyDown:ee(y.onKeyDown,P=>{const Y=P.ctrlKey||P.altKey||P.metaKey;if(P.key==="Tab"&&P.preventDefault(),!Y&&P.key.length===1&&S(P.key),["ArrowUp","ArrowDown","Home","End"].includes(P.key)){let X=D().filter(J=>!J.disabled).map(J=>J.ref.current);if(["ArrowUp","End"].includes(P.key)&&(X=X.slice().reverse()),["ArrowUp","ArrowDown"].includes(P.key)){const J=P.target,Z=X.indexOf(J);X=X.slice(Z+1)}setTimeout(()=>M(X)),P.preventDefault()}})})})})})})});hs.displayName=jd;var $d="SelectItemAlignedPosition",gs=c.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:r,...o}=e,s=$e(ze,n),i=De(ze,n),[a,l]=c.useState(null),[u,f]=c.useState(null),d=ne(t,A=>f(A)),m=Gt(n),h=c.useRef(!1),v=c.useRef(!0),{viewport:p,selectedItem:b,selectedItemText:y,focusSelectedItem:x}=i,w=c.useCallback(()=>{if(s.trigger&&s.valueNode&&a&&u&&p&&b&&y){const A=s.trigger.getBoundingClientRect(),k=u.getBoundingClientRect(),$=s.valueNode.getBoundingClientRect(),B=y.getBoundingClientRect();if(s.dir!=="rtl"){const J=B.left-k.left,Z=$.left-J,ge=A.left-Z,ke=A.width+ge,bt=Math.max(ke,k.width),yt=window.innerWidth-xe,xt=Ht(Z,[xe,Math.max(xe,yt-bt)]);a.style.minWidth=ke+"px",a.style.left=xt+"px"}else{const J=k.right-B.right,Z=window.innerWidth-$.right-J,ge=window.innerWidth-A.right-Z,ke=A.width+ge,bt=Math.max(ke,k.width),yt=window.innerWidth-xe,xt=Ht(Z,[xe,Math.max(xe,yt-bt)]);a.style.minWidth=ke+"px",a.style.right=xt+"px"}const I=m(),D=window.innerHeight-xe*2,W=p.scrollHeight,H=window.getComputedStyle(u),G=parseInt(H.borderTopWidth,10),M=parseInt(H.paddingTop,10),j=parseInt(H.borderBottomWidth,10),_=parseInt(H.paddingBottom,10),q=G+M+W+_+j,se=Math.min(b.offsetHeight*5,q),S=window.getComputedStyle(p),L=parseInt(S.paddingTop,10),F=parseInt(S.paddingBottom,10),z=A.top+A.height/2-xe,de=D-z,fe=b.offsetHeight/2,P=b.offsetTop+fe,Y=G+M+P,te=q-Y;if(Y<=z){const J=I.length>0&&b===I[I.length-1].ref.current;a.style.bottom="0px";const Z=u.clientHeight-p.offsetTop-p.offsetHeight,ge=Math.max(de,fe+(J?F:0)+Z+j),ke=Y+ge;a.style.height=ke+"px"}else{const J=I.length>0&&b===I[0].ref.current;a.style.top="0px";const ge=Math.max(z,G+p.offsetTop+(J?L:0)+fe)+te;a.style.height=ge+"px",p.scrollTop=Y-z+p.offsetTop}a.style.margin=`${xe}px 0`,a.style.minHeight=se+"px",a.style.maxHeight=D+"px",r==null||r(),requestAnimationFrame(()=>h.current=!0)}},[m,s.trigger,s.valueNode,a,u,p,b,y,s.dir,r]);ue(()=>w(),[w]);const[C,E]=c.useState();ue(()=>{u&&E(window.getComputedStyle(u).zIndex)},[u]);const N=c.useCallback(A=>{A&&v.current===!0&&(w(),x==null||x(),v.current=!1)},[w,x]);return g.jsx(Fd,{scope:n,contentWrapper:a,shouldExpandOnScrollRef:h,onScrollButtonChange:N,children:g.jsx("div",{ref:l,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:C},children:g.jsx(he.div,{...o,ref:d,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}})})})});gs.displayName=$d;var Dd="SelectPopperPosition",Bn=c.forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:o=xe,...s}=e,i=Kt(n);return g.jsx(vd,{...i,...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)"}})});Bn.displayName=Dd;var[Fd,Vn]=ot(ze,{}),zn="SelectViewport",vs=c.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:r,...o}=e,s=De(zn,n),i=Vn(zn,n),a=ne(t,s.onViewportChange),l=c.useRef(0);return g.jsxs(g.Fragment,{children:[g.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:r}),g.jsx(Ut.Slot,{scope:n,children:g.jsx(he.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:a,style:{position:"relative",flex:1,overflow:"hidden auto",...o.style},onScroll:ee(o.onScroll,u=>{const f=u.currentTarget,{contentWrapper:d,shouldExpandOnScrollRef:m}=i;if(m!=null&&m.current&&d){const h=Math.abs(l.current-f.scrollTop);if(h>0){const v=window.innerHeight-xe*2,p=parseFloat(d.style.minHeight),b=parseFloat(d.style.height),y=Math.max(p,b);if(y<v){const x=y+h,w=Math.min(v,x),C=x-w;d.style.height=w+"px",d.style.bottom==="0px"&&(f.scrollTop=C>0?C:0,d.style.justifyContent="flex-end")}}}l.current=f.scrollTop})})})]})});vs.displayName=zn;var bs="SelectGroup",[Bd,Vd]=ot(bs),zd=c.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=vn();return g.jsx(Bd,{scope:n,id:o,children:g.jsx(he.div,{role:"group","aria-labelledby":o,...r,ref:t})})});zd.displayName=bs;var ys="SelectLabel",Wd=c.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=Vd(ys,n);return g.jsx(he.div,{id:o.id,...r,ref:t})});Wd.displayName=ys;var Yt="SelectItem",[Hd,xs]=ot(Yt),ws=c.forwardRef((e,t)=>{const{__scopeSelect:n,value:r,disabled:o=!1,textValue:s,...i}=e,a=$e(Yt,n),l=De(Yt,n),u=a.value===r,[f,d]=c.useState(s??""),[m,h]=c.useState(!1),v=ne(t,x=>{var w;return(w=l.itemRefCallback)==null?void 0:w.call(l,x,r,o)}),p=vn(),b=c.useRef("touch"),y=()=>{o||(a.onValueChange(r),a.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 g.jsx(Hd,{scope:n,value:r,disabled:o,textId:p,isSelected:u,onItemTextChange:c.useCallback(x=>{d(w=>w||((x==null?void 0:x.textContent)??"").trim())},[]),children:g.jsx(Ut.ItemSlot,{scope:n,value:r,disabled:o,textValue:f,children:g.jsx(he.div,{role:"option","aria-labelledby":p,"data-highlighted":m?"":void 0,"aria-selected":u&&m,"data-state":u?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1,...i,ref:v,onFocus:ee(i.onFocus,()=>h(!0)),onBlur:ee(i.onBlur,()=>h(!1)),onClick:ee(i.onClick,()=>{b.current!=="mouse"&&y()}),onPointerUp:ee(i.onPointerUp,()=>{b.current==="mouse"&&y()}),onPointerDown:ee(i.onPointerDown,x=>{b.current=x.pointerType}),onPointerMove:ee(i.onPointerMove,x=>{var w;b.current=x.pointerType,o?(w=l.onItemLeave)==null||w.call(l):b.current==="mouse"&&x.currentTarget.focus({preventScroll:!0})}),onPointerLeave:ee(i.onPointerLeave,x=>{var w;x.currentTarget===document.activeElement&&((w=l.onItemLeave)==null||w.call(l))}),onKeyDown:ee(i.onKeyDown,x=>{var C;((C=l.searchRef)==null?void 0:C.current)!==""&&x.key===" "||(Ad.includes(x.key)&&y(),x.key===" "&&x.preventDefault())})})})})});ws.displayName=Yt;var ht="SelectItemText",Ss=c.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,...s}=e,i=$e(ht,n),a=De(ht,n),l=xs(ht,n),u=Td(ht,n),[f,d]=c.useState(null),m=ne(t,y=>d(y),l.onItemTextChange,y=>{var x;return(x=a.itemTextRefCallback)==null?void 0:x.call(a,y,l.value,l.disabled)}),h=f==null?void 0:f.textContent,v=c.useMemo(()=>g.jsx("option",{value:l.value,disabled:l.disabled,children:h},l.value),[l.disabled,l.value,h]),{onNativeOptionAdd:p,onNativeOptionRemove:b}=u;return ue(()=>(p(v),()=>b(v)),[p,b,v]),g.jsxs(g.Fragment,{children:[g.jsx(he.span,{id:l.textId,...s,ref:m}),l.isSelected&&i.valueNode&&!i.valueNodeHasChildren?St.createPortal(s.children,i.valueNode):null]})});Ss.displayName=ht;var Cs="SelectItemIndicator",_s=c.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return xs(Cs,n).isSelected?g.jsx(he.span,{"aria-hidden":!0,...r,ref:t}):null});_s.displayName=Cs;var Wn="SelectScrollUpButton",Es=c.forwardRef((e,t)=>{const n=De(Wn,e.__scopeSelect),r=Vn(Wn,e.__scopeSelect),[o,s]=c.useState(!1),i=ne(t,r.onScrollButtonChange);return ue(()=>{if(n.viewport&&n.isPositioned){let a=function(){const u=l.scrollTop>0;s(u)};const l=n.viewport;return a(),l.addEventListener("scroll",a),()=>l.removeEventListener("scroll",a)}},[n.viewport,n.isPositioned]),o?g.jsx(Ps,{...e,ref:i,onAutoScroll:()=>{const{viewport:a,selectedItem:l}=n;a&&l&&(a.scrollTop=a.scrollTop-l.offsetHeight)}}):null});Es.displayName=Wn;var Hn="SelectScrollDownButton",ks=c.forwardRef((e,t)=>{const n=De(Hn,e.__scopeSelect),r=Vn(Hn,e.__scopeSelect),[o,s]=c.useState(!1),i=ne(t,r.onScrollButtonChange);return ue(()=>{if(n.viewport&&n.isPositioned){let a=function(){const u=l.scrollHeight-l.clientHeight,f=Math.ceil(l.scrollTop)<u;s(f)};const l=n.viewport;return a(),l.addEventListener("scroll",a),()=>l.removeEventListener("scroll",a)}},[n.viewport,n.isPositioned]),o?g.jsx(Ps,{...e,ref:i,onAutoScroll:()=>{const{viewport:a,selectedItem:l}=n;a&&l&&(a.scrollTop=a.scrollTop+l.offsetHeight)}}):null});ks.displayName=Hn;var Ps=c.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...o}=e,s=De("SelectScrollButton",n),i=c.useRef(null),a=Gt(n),l=c.useCallback(()=>{i.current!==null&&(window.clearInterval(i.current),i.current=null)},[]);return c.useEffect(()=>()=>l(),[l]),ue(()=>{var f;const u=a().find(d=>d.ref.current===document.activeElement);(f=u==null?void 0:u.ref.current)==null||f.scrollIntoView({block:"nearest"})},[a]),g.jsx(he.div,{"aria-hidden":!0,...o,ref:t,style:{flexShrink:0,...o.style},onPointerDown:ee(o.onPointerDown,()=>{i.current===null&&(i.current=window.setInterval(r,50))}),onPointerMove:ee(o.onPointerMove,()=>{var u;(u=s.onItemLeave)==null||u.call(s),i.current===null&&(i.current=window.setInterval(r,50))}),onPointerLeave:ee(o.onPointerLeave,()=>{l()})})}),Ud="SelectSeparator",Gd=c.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return g.jsx(he.div,{"aria-hidden":!0,...r,ref:t})});Gd.displayName=Ud;var Un="SelectArrow",Kd=c.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=Kt(n),s=$e(Un,n),i=De(Un,n);return s.open&&i.position==="popper"?g.jsx(bd,{...o,...r,ref:t}):null});Kd.displayName=Un;var Yd="SelectBubbleInput",As=c.forwardRef(({__scopeSelect:e,value:t,...n},r)=>{const o=c.useRef(null),s=ne(r,o),i=Co(t);return c.useEffect(()=>{const a=o.current;if(!a)return;const l=window.HTMLSelectElement.prototype,f=Object.getOwnPropertyDescriptor(l,"value").set;if(i!==t&&f){const d=new Event("change",{bubbles:!0});f.call(a,t),a.dispatchEvent(d)}},[i,t]),g.jsx(he.select,{...n,style:{...Wr,...n.style},ref:s,defaultValue:t})});As.displayName=Yd;function Rs(e){return e===""||e===void 0}function Ns(e){const t=Te(e),n=c.useRef(""),r=c.useRef(0),o=c.useCallback(i=>{const a=n.current+i;t(a),function l(u){n.current=u,window.clearTimeout(r.current),u!==""&&(r.current=window.setTimeout(()=>l(""),1e3))}(a)},[t]),s=c.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return c.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,o,s]}function Os(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 i=qd(e,Math.max(s,0));o.length===1&&(i=i.filter(u=>u!==n));const l=i.find(u=>u.textValue.toLowerCase().startsWith(o.toLowerCase()));return l!==n?l:void 0}function qd(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var Xd=is,Zd=ls,Jd=us,Qd=ds,ef=fs,tf=ps,nf=vs,rf=ws,of=Ss,sf=_s,af=Es,lf=ks;function cf(e,t=[]){let n=[];function r(s,i){const a=c.createContext(i),l=n.length;n=[...n,i];const u=d=>{var y;const{scope:m,children:h,...v}=d,p=((y=m==null?void 0:m[e])==null?void 0:y[l])||a,b=c.useMemo(()=>v,Object.values(v));return g.jsx(p.Provider,{value:b,children:h})};u.displayName=s+"Provider";function f(d,m){var p;const h=((p=m==null?void 0:m[e])==null?void 0:p[l])||a,v=c.useContext(h);if(v)return v;if(i!==void 0)return i;throw new Error(`\`${d}\` must be used within \`${s}\``)}return[u,f]}const o=()=>{const s=n.map(i=>c.createContext(i));return function(a){const l=(a==null?void 0:a[e])||s;return c.useMemo(()=>({[`__scope${e}`]:{...a,[e]:l}}),[a,l])}};return o.scopeName=e,[r,uf(o,...t)]}function uf(...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 i=r.reduce((a,{useScope:l,scopeName:u})=>{const d=l(s)[`__scope${u}`];return{...a,...d}},{});return c.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}function df(e){const t=ff(e),n=c.forwardRef((r,o)=>{const{children:s,...i}=r,a=c.Children.toArray(s),l=a.find(mf);if(l){const u=l.props.children,f=a.map(d=>d===l?c.Children.count(u)>1?c.Children.only(null):c.isValidElement(u)?u.props.children:null:d);return g.jsx(t,{...i,ref:o,children:c.isValidElement(u)?c.cloneElement(u,void 0,f):null})}return g.jsx(t,{...i,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}function ff(e){const t=c.forwardRef((n,r)=>{const{children:o,...s}=n;if(c.isValidElement(o)){const i=gf(o),a=hf(s,o.props);return o.type!==c.Fragment&&(a.ref=r?ve(r,i):i),c.cloneElement(o,a)}return c.Children.count(o)>1?c.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var pf=Symbol("radix.slottable");function mf(e){return c.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===pf}function hf(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]=(...a)=>{const l=s(...a);return o(...a),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function gf(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 vf=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],gt=vf.reduce((e,t)=>{const n=df(`Primitive.${t}`),r=c.forwardRef((o,s)=>{const{asChild:i,...a}=o,l=i?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),g.jsx(l,{...a,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),Ts=["PageUp","PageDown"],Ms=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],Is={"from-left":["Home","PageDown","ArrowDown","ArrowLeft"],"from-right":["Home","PageDown","ArrowDown","ArrowRight"],"from-bottom":["Home","PageDown","ArrowDown","ArrowLeft"],"from-top":["Home","PageDown","ArrowUp","ArrowLeft"]},st="Slider",[Gn,bf,yf]=Ur(st),[js,ip]=cf(st,[yf]),[xf,qt]=js(st),Ls=c.forwardRef((e,t)=>{const{name:n,min:r=0,max:o=100,step:s=1,orientation:i="horizontal",disabled:a=!1,minStepsBetweenThumbs:l=0,defaultValue:u=[r],value:f,onValueChange:d=()=>{},onValueCommit:m=()=>{},inverted:h=!1,form:v,...p}=e,b=c.useRef(new Set),y=c.useRef(0),w=i==="horizontal"?wf:Sf,[C=[],E]=gn({prop:f,defaultProp:u,onChange:I=>{var W;(W=[...b.current][y.current])==null||W.focus(),d(I)}}),N=c.useRef(C);function A(I){const D=Pf(C,I);B(I,D)}function k(I){B(I,y.current)}function $(){const I=N.current[y.current];C[y.current]!==I&&m(C)}function B(I,D,{commit:W}={commit:!1}){const H=Of(s),G=Tf(Math.round((I-r)/s)*s+r,H),M=Ht(G,[r,o]);E((j=[])=>{const _=Ef(j,M,D);if(Nf(_,l*s)){y.current=_.indexOf(M);const q=String(_)!==String(j);return q&&W&&m(_),q?_:j}else return j})}return g.jsx(xf,{scope:e.__scopeSlider,name:n,disabled:a,min:r,max:o,valueIndexToChangeRef:y,thumbs:b.current,values:C,orientation:i,form:v,children:g.jsx(Gn.Provider,{scope:e.__scopeSlider,children:g.jsx(Gn.Slot,{scope:e.__scopeSlider,children:g.jsx(w,{"aria-disabled":a,"data-disabled":a?"":void 0,...p,ref:t,onPointerDown:ee(p.onPointerDown,()=>{a||(N.current=C)}),min:r,max:o,inverted:h,onSlideStart:a?void 0:A,onSlideMove:a?void 0:k,onSlideEnd:a?void 0:$,onHomeKeyDown:()=>!a&&B(r,0,{commit:!0}),onEndKeyDown:()=>!a&&B(o,C.length-1,{commit:!0}),onStepKeyDown:({event:I,direction:D})=>{if(!a){const G=Ts.includes(I.key)||I.shiftKey&&Ms.includes(I.key)?10:1,M=y.current,j=C[M],_=s*G*D;B(j+_,M,{commit:!0})}}})})})})});Ls.displayName=st;var[$s,Ds]=js(st,{startEdge:"left",endEdge:"right",size:"width",direction:1}),wf=c.forwardRef((e,t)=>{const{min:n,max:r,dir:o,inverted:s,onSlideStart:i,onSlideMove:a,onSlideEnd:l,onStepKeyDown:u,...f}=e,[d,m]=c.useState(null),h=ne(t,w=>m(w)),v=c.useRef(void 0),p=Gr(o),b=p==="ltr",y=b&&!s||!b&&s;function x(w){const C=v.current||d.getBoundingClientRect(),E=[0,C.width],A=qn(E,y?[n,r]:[r,n]);return v.current=C,A(w-C.left)}return g.jsx($s,{scope:e.__scopeSlider,startEdge:y?"left":"right",endEdge:y?"right":"left",direction:y?1:-1,size:"width",children:g.jsx(Fs,{dir:p,"data-orientation":"horizontal",...f,ref:h,style:{...f.style,"--radix-slider-thumb-transform":"translateX(-50%)"},onSlideStart:w=>{const C=x(w.clientX);i==null||i(C)},onSlideMove:w=>{const C=x(w.clientX);a==null||a(C)},onSlideEnd:()=>{v.current=void 0,l==null||l()},onStepKeyDown:w=>{const E=Is[y?"from-left":"from-right"].includes(w.key);u==null||u({event:w,direction:E?-1:1})}})})}),Sf=c.forwardRef((e,t)=>{const{min:n,max:r,inverted:o,onSlideStart:s,onSlideMove:i,onSlideEnd:a,onStepKeyDown:l,...u}=e,f=c.useRef(null),d=ne(t,f),m=c.useRef(void 0),h=!o;function v(p){const b=m.current||f.current.getBoundingClientRect(),y=[0,b.height],w=qn(y,h?[r,n]:[n,r]);return m.current=b,w(p-b.top)}return g.jsx($s,{scope:e.__scopeSlider,startEdge:h?"bottom":"top",endEdge:h?"top":"bottom",size:"height",direction:h?1:-1,children:g.jsx(Fs,{"data-orientation":"vertical",...u,ref:d,style:{...u.style,"--radix-slider-thumb-transform":"translateY(50%)"},onSlideStart:p=>{const b=v(p.clientY);s==null||s(b)},onSlideMove:p=>{const b=v(p.clientY);i==null||i(b)},onSlideEnd:()=>{m.current=void 0,a==null||a()},onStepKeyDown:p=>{const y=Is[h?"from-bottom":"from-top"].includes(p.key);l==null||l({event:p,direction:y?-1:1})}})})}),Fs=c.forwardRef((e,t)=>{const{__scopeSlider:n,onSlideStart:r,onSlideMove:o,onSlideEnd:s,onHomeKeyDown:i,onEndKeyDown:a,onStepKeyDown:l,...u}=e,f=qt(st,n);return g.jsx(gt.span,{...u,ref:t,onKeyDown:ee(e.onKeyDown,d=>{d.key==="Home"?(i(d),d.preventDefault()):d.key==="End"?(a(d),d.preventDefault()):Ts.concat(Ms).includes(d.key)&&(l(d),d.preventDefault())}),onPointerDown:ee(e.onPointerDown,d=>{const m=d.target;m.setPointerCapture(d.pointerId),d.preventDefault(),f.thumbs.has(m)?m.focus():r(d)}),onPointerMove:ee(e.onPointerMove,d=>{d.target.hasPointerCapture(d.pointerId)&&o(d)}),onPointerUp:ee(e.onPointerUp,d=>{const m=d.target;m.hasPointerCapture(d.pointerId)&&(m.releasePointerCapture(d.pointerId),s(d))})})}),Bs="SliderTrack",Vs=c.forwardRef((e,t)=>{const{__scopeSlider:n,...r}=e,o=qt(Bs,n);return g.jsx(gt.span,{"data-disabled":o.disabled?"":void 0,"data-orientation":o.orientation,...r,ref:t})});Vs.displayName=Bs;var Kn="SliderRange",zs=c.forwardRef((e,t)=>{const{__scopeSlider:n,...r}=e,o=qt(Kn,n),s=Ds(Kn,n),i=c.useRef(null),a=ne(t,i),l=o.values.length,u=o.values.map(m=>Us(m,o.min,o.max)),f=l>1?Math.min(...u):0,d=100-Math.max(...u);return g.jsx(gt.span,{"data-orientation":o.orientation,"data-disabled":o.disabled?"":void 0,...r,ref:a,style:{...e.style,[s.startEdge]:f+"%",[s.endEdge]:d+"%"}})});zs.displayName=Kn;var Yn="SliderThumb",Ws=c.forwardRef((e,t)=>{const n=bf(e.__scopeSlider),[r,o]=c.useState(null),s=ne(t,a=>o(a)),i=c.useMemo(()=>r?n().findIndex(a=>a.ref.current===r):-1,[n,r]);return g.jsx(Cf,{...e,ref:s,index:i})}),Cf=c.forwardRef((e,t)=>{const{__scopeSlider:n,index:r,name:o,...s}=e,i=qt(Yn,n),a=Ds(Yn,n),[l,u]=c.useState(null),f=ne(t,x=>u(x)),d=l?i.form||!!l.closest("form"):!0,m=_o(l),h=i.values[r],v=h===void 0?0:Us(h,i.min,i.max),p=kf(r,i.values.length),b=m==null?void 0:m[a.size],y=b?Af(b,v,a.direction):0;return c.useEffect(()=>{if(l)return i.thumbs.add(l),()=>{i.thumbs.delete(l)}},[l,i.thumbs]),g.jsxs("span",{style:{transform:"var(--radix-slider-thumb-transform)",position:"absolute",[a.startEdge]:`calc(${v}% + ${y}px)`},children:[g.jsx(Gn.ItemSlot,{scope:e.__scopeSlider,children:g.jsx(gt.span,{role:"slider","aria-label":e["aria-label"]||p,"aria-valuemin":i.min,"aria-valuenow":h,"aria-valuemax":i.max,"aria-orientation":i.orientation,"data-orientation":i.orientation,"data-disabled":i.disabled?"":void 0,tabIndex:i.disabled?void 0:0,...s,ref:f,style:h===void 0?{display:"none"}:e.style,onFocus:ee(e.onFocus,()=>{i.valueIndexToChangeRef.current=r})})}),d&&g.jsx(Hs,{name:o??(i.name?i.name+(i.values.length>1?"[]":""):void 0),form:i.form,value:h},r)]})});Ws.displayName=Yn;var _f="RadioBubbleInput",Hs=c.forwardRef(({__scopeSlider:e,value:t,...n},r)=>{const o=c.useRef(null),s=ne(o,r),i=Co(t);return c.useEffect(()=>{const a=o.current;if(!a)return;const l=window.HTMLInputElement.prototype,f=Object.getOwnPropertyDescriptor(l,"value").set;if(i!==t&&f){const d=new Event("input",{bubbles:!0});f.call(a,t),a.dispatchEvent(d)}},[i,t]),g.jsx(gt.input,{style:{display:"none"},...n,ref:s,defaultValue:t})});Hs.displayName=_f;function Ef(e=[],t,n){const r=[...e];return r[n]=t,r.sort((o,s)=>o-s)}function Us(e,t,n){const s=100/(n-t)*(e-t);return Ht(s,[0,100])}function kf(e,t){return t>2?`Value ${e+1} of ${t}`:t===2?["Minimum","Maximum"][e]:void 0}function Pf(e,t){if(e.length===1)return 0;const n=e.map(o=>Math.abs(o-t)),r=Math.min(...n);return n.indexOf(r)}function Af(e,t,n){const r=e/2,s=qn([0,50],[0,r]);return(r-s(t)*n)*n}function Rf(e){return e.slice(0,-1).map((t,n)=>e[n+1]-t)}function Nf(e,t){if(t>0){const n=Rf(e);return Math.min(...n)>=t}return!0}function qn(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}function Of(e){return(String(e).split(".")[1]||"").length}function Tf(e,t){const n=Math.pow(10,t);return Math.round(e*n)/n}var Gs=Ls,Ks=Vs,Ys=zs,qs=Ws;const Mf=fr("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all 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",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-sm":"size-8","icon-lg":"size-10"}},defaultVariants:{variant:"default",size:"default"}});function If({className:e,variant:t="default",size:n="default",asChild:r=!1,...o}){const s=r?Qt:"button";return g.jsx(s,{"data-slot":"button","data-variant":t,"data-size":n,className:Q(Mf({variant:t,size:n,className:e})),...o})}function vt({className:e,type:t,...n}){return g.jsx("input",{type:t,"data-slot":"input",className:Q("file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm","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",e),...n})}function jf({...e}){return g.jsx(Xd,{"data-slot":"select",...e})}function Lf({...e}){return g.jsx(Jd,{"data-slot":"select-value",...e})}function $f({className:e,size:t="default",children:n,...r}){return g.jsxs(Zd,{"data-slot":"select-trigger","data-size":t,className:Q("border-input data-[placeholder]:text-muted-foreground [&_svg:not([class*='text-'])]:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 dark:hover:bg-input/50 flex w-fit items-center justify-between gap-2 rounded-md border bg-transparent px-3 py-2 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...r,children:[n,g.jsx(Qd,{asChild:!0,children:g.jsx(Nr,{className:"size-4 opacity-50"})})]})}function Df({className:e,children:t,position:n="item-aligned",align:r="center",...o}){return g.jsx(ef,{children:g.jsxs(tf,{"data-slot":"select-content",className:Q("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 relative z-50 max-h-(--radix-select-content-available-height) min-w-[8rem] origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border shadow-md",n==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:n,align:r,...o,children:[g.jsx(Bf,{}),g.jsx(nf,{className:Q("p-1",n==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1"),children:t}),g.jsx(Vf,{})]})})}function Ff({className:e,children:t,...n}){return g.jsxs(rf,{"data-slot":"select-item",className:Q("focus:bg-accent focus:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",e),...n,children:[g.jsx("span",{"data-slot":"select-item-indicator",className:"absolute right-2 flex size-3.5 items-center justify-center",children:g.jsx(sf,{children:g.jsx(Xi,{className:"size-4"})})}),g.jsx(of,{children:t})]})}function Bf({className:e,...t}){return g.jsx(af,{"data-slot":"select-scroll-up-button",className:Q("flex cursor-default items-center justify-center py-1",e),...t,children:g.jsx(Ji,{className:"size-4"})})}function Vf({className:e,...t}){return g.jsx(lf,{"data-slot":"select-scroll-down-button",className:Q("flex cursor-default items-center justify-center py-1",e),...t,children:g.jsx(Nr,{className:"size-4"})})}const Xs=V.createContext(void 0),We=()=>{const e=V.useContext(Xs);if(!e)throw new Error("useColorPicker must be used within a ColorPickerProvider");return e},zf=({value:e,defaultValue:t="#000000",onChange:n,className:r,...o})=>{const s=re(e),i=re(t),[a,l]=V.useState(s.hue()||i.hue()||0),[u,f]=V.useState(s.saturationl()||i.saturationl()||100),[d,m]=V.useState(s.lightness()||i.lightness()||50),[h,v]=V.useState(s.alpha()*100||i.alpha()*100),[p,b]=V.useState("hex");return V.useEffect(()=>{if(e){const y=re.rgb(e).rgb().object();l(y.r),f(y.g),m(y.b),v(y.a)}},[e]),V.useEffect(()=>{if(n){const x=re.hsl(a,u,d).alpha(h/100).rgb().array();n([x[0],x[1],x[2],h/100])}},[a,u,d,h,n]),g.jsx(Xs.Provider,{value:{hue:a,saturation:u,lightness:d,alpha:h,mode:p,setHue:l,setSaturation:f,setLightness:m,setAlpha:v,setMode:b},children:g.jsx("div",{className:Q("flex size-full flex-col gap-4",r),...o})})},Zs=V.memo(({className:e,...t})=>{const n=V.useRef(null),[r,o]=V.useState(!1),[s,i]=V.useState(0),[a,l]=V.useState(0),{hue:u,setSaturation:f,setLightness:d}=We(),m=V.useMemo(()=>`linear-gradient(0deg, rgba(0,0,0,1), rgba(0,0,0,0)),
133
+ `)},_p=0,wt=[];function kp(e){var t=f.useRef([]),n=f.useRef([0,0]),r=f.useRef(),o=f.useState(_p++)[0],s=f.useState(ti)[0],i=f.useRef(e);f.useEffect(function(){i.current=e},[e]),f.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var m=Xf([e.lockRef.current],(e.shards||[]).map(li),!0).filter(Boolean);return m.forEach(function(x){return x.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),m.forEach(function(x){return x.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var a=f.useCallback(function(m,x){if("touches"in m&&m.touches.length===2||m.type==="wheel"&&m.ctrlKey)return!i.current.allowPinchZoom;var y=fn(m),b=n.current,h="deltaX"in m?m.deltaX:b[0]-y[0],S="deltaY"in m?m.deltaY:b[1]-y[1],E,T=m.target,M=Math.abs(h)>Math.abs(S)?"h":"v";if("touches"in m&&M==="h"&&T.type==="range")return!1;var _=window.getSelection(),A=_&&_.anchorNode,P=A?A===T||A.contains(T):!1;if(P)return!1;var N=oi(M,T);if(!N)return!0;if(N?E=M:(E=M==="v"?"h":"v",N=oi(M,T)),!N)return!1;if(!r.current&&"changedTouches"in m&&(h||S)&&(r.current=E),!E)return!0;var L=r.current||E;return Cp(L,x,m,L==="h"?h:S,!0)},[]),l=f.useCallback(function(m){var x=m;if(!(!wt.length||wt[wt.length-1]!==s)){var y="deltaY"in x?ai(x):fn(x),b=t.current.filter(function(E){return E.name===x.type&&(E.target===x.target||x.target===E.shadowParent)&&Tp(E.delta,y)})[0];if(b&&b.should){x.cancelable&&x.preventDefault();return}if(!b){var h=(i.current.shards||[]).map(li).filter(Boolean).filter(function(E){return E.contains(x.target)}),S=h.length>0?a(x,h[0]):!i.current.noIsolation;S&&x.cancelable&&x.preventDefault()}}},[]),c=f.useCallback(function(m,x,y,b){var h={name:m,delta:x,target:y,should:b,shadowParent:Mp(y)};t.current.push(h),setTimeout(function(){t.current=t.current.filter(function(S){return S!==h})},1)},[]),d=f.useCallback(function(m){n.current=fn(m),r.current=void 0},[]),u=f.useCallback(function(m){c(m.type,ai(m),m.target,a(m,e.lockRef.current))},[]),p=f.useCallback(function(m){c(m.type,fn(m),m.target,a(m,e.lockRef.current))},[]);f.useEffect(function(){return wt.push(s),e.setCallbacks({onScrollCapture:u,onWheelCapture:u,onTouchMoveCapture:p}),document.addEventListener("wheel",l,yt),document.addEventListener("touchmove",l,yt),document.addEventListener("touchstart",d,yt),function(){wt=wt.filter(function(m){return m!==s}),document.removeEventListener("wheel",l,yt),document.removeEventListener("touchmove",l,yt),document.removeEventListener("touchstart",d,yt)}},[]);var v=e.removeScrollBar,g=e.inert;return f.createElement(f.Fragment,null,g?f.createElement(s,{styles:Pp(o)}):null,v?f.createElement(vp,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function Mp(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const Ap=op(Qs,kp);var ci=f.forwardRef(function(e,t){return f.createElement(dn,Le({},e,{ref:t,sideCar:Ap}))});ci.classNames=dn.classNames;const Np=ci;var Ip=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},xt=new WeakMap,pn=new WeakMap,mn={},Cr=0,di=function(e){return e&&(e.host||di(e.parentNode))},Op=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=di(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})},Rp=function(e,t,n,r){var o=Op(t,Array.isArray(e)?e:[e]);mn[n]||(mn[n]=new WeakMap);var s=mn[n],i=[],a=new Set,l=new Set(o),c=function(u){!u||a.has(u)||(a.add(u),c(u.parentNode))};o.forEach(c);var d=function(u){!u||l.has(u)||Array.prototype.forEach.call(u.children,function(p){if(a.has(p))d(p);else try{var v=p.getAttribute(r),g=v!==null&&v!=="false",m=(xt.get(p)||0)+1,x=(s.get(p)||0)+1;xt.set(p,m),s.set(p,x),i.push(p),m===1&&g&&pn.set(p,!0),x===1&&p.setAttribute(n,"true"),g||p.setAttribute(r,"true")}catch(y){console.error("aria-hidden: cannot operate on ",p,y)}})};return d(t),a.clear(),Cr++,function(){i.forEach(function(u){var p=xt.get(u)-1,v=s.get(u)-1;xt.set(u,p),s.set(u,v),p||(pn.has(u)||u.removeAttribute(r),pn.delete(u)),v||u.removeAttribute(n)}),Cr--,Cr||(xt=new WeakMap,xt=new WeakMap,pn=new WeakMap,mn={})}},Lp=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=t||Ip(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),Rp(r,o,n,"aria-hidden")):function(){return null}};function ui(e){const t=f.useRef({value:e,previous:e});return f.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}function fi(e){const[t,n]=f.useState(void 0);return be(()=>{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 i,a;if("borderBoxSize"in s){const l=s.borderBoxSize,c=Array.isArray(l)?l[0]:l;i=c.inlineSize,a=c.blockSize}else i=e.offsetWidth,a=e.offsetHeight;n({width:i,height:a})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}const jp=["top","right","bottom","left"],tt=Math.min,Ce=Math.max,hn=Math.round,gn=Math.floor,je=e=>({x:e,y:e}),Dp={left:"right",right:"left",bottom:"top",top:"bottom"},$p={start:"end",end:"start"};function Tr(e,t,n){return Ce(e,tt(t,n))}function We(e,t){return typeof e=="function"?e(t):e}function Ge(e){return e.split("-")[0]}function St(e){return e.split("-")[1]}function Pr(e){return e==="x"?"y":"x"}function _r(e){return e==="y"?"height":"width"}const zp=new Set(["top","bottom"]);function De(e){return zp.has(Ge(e))?"y":"x"}function kr(e){return Pr(De(e))}function Bp(e,t,n){n===void 0&&(n=!1);const r=St(e),o=kr(e),s=_r(o);let i=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(i=vn(i)),[i,vn(i)]}function Fp(e){const t=vn(e);return[Mr(e),t,Mr(t)]}function Mr(e){return e.replace(/start|end/g,t=>$p[t])}const pi=["left","right"],mi=["right","left"],Vp=["top","bottom"],Hp=["bottom","top"];function Wp(e,t,n){switch(e){case"top":case"bottom":return n?t?mi:pi:t?pi:mi;case"left":case"right":return t?Vp:Hp;default:return[]}}function Gp(e,t,n,r){const o=St(e);let s=Wp(Ge(e),n==="start",r);return o&&(s=s.map(i=>i+"-"+o),t&&(s=s.concat(s.map(Mr)))),s}function vn(e){return e.replace(/left|right|bottom|top/g,t=>Dp[t])}function Up(e){return{top:0,right:0,bottom:0,left:0,...e}}function hi(e){return typeof e!="number"?Up(e):{top:e,right:e,bottom:e,left:e}}function bn(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 gi(e,t,n){let{reference:r,floating:o}=e;const s=De(t),i=kr(t),a=_r(i),l=Ge(t),c=s==="y",d=r.x+r.width/2-o.width/2,u=r.y+r.height/2-o.height/2,p=r[a]/2-o[a]/2;let v;switch(l){case"top":v={x:d,y:r.y-o.height};break;case"bottom":v={x:d,y:r.y+r.height};break;case"right":v={x:r.x+r.width,y:u};break;case"left":v={x:r.x-o.width,y:u};break;default:v={x:r.x,y:r.y}}switch(St(t)){case"start":v[i]-=p*(n&&c?-1:1);break;case"end":v[i]+=p*(n&&c?-1:1);break}return v}async function Yp(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:s,rects:i,elements:a,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:d="viewport",elementContext:u="floating",altBoundary:p=!1,padding:v=0}=We(t,e),g=hi(v),x=a[p?u==="floating"?"reference":"floating":u],y=bn(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(x)))==null||n?x:x.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(a.floating)),boundary:c,rootBoundary:d,strategy:l})),b=u==="floating"?{x:r,y:o,width:i.floating.width,height:i.floating.height}:i.reference,h=await(s.getOffsetParent==null?void 0:s.getOffsetParent(a.floating)),S=await(s.isElement==null?void 0:s.isElement(h))?await(s.getScale==null?void 0:s.getScale(h))||{x:1,y:1}:{x:1,y:1},E=bn(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:b,offsetParent:h,strategy:l}):b);return{top:(y.top-E.top+g.top)/S.y,bottom:(E.bottom-y.bottom+g.bottom)/S.y,left:(y.left-E.left+g.left)/S.x,right:(E.right-y.right+g.right)/S.x}}const qp=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:s=[],platform:i}=n,a=s.filter(Boolean),l=await(i.isRTL==null?void 0:i.isRTL(t));let c=await i.getElementRects({reference:e,floating:t,strategy:o}),{x:d,y:u}=gi(c,r,l),p=r,v={},g=0;for(let x=0;x<a.length;x++){var m;const{name:y,fn:b}=a[x],{x:h,y:S,data:E,reset:T}=await b({x:d,y:u,initialPlacement:r,placement:p,strategy:o,middlewareData:v,rects:c,platform:{...i,detectOverflow:(m=i.detectOverflow)!=null?m:Yp},elements:{reference:e,floating:t}});d=h??d,u=S??u,v={...v,[y]:{...v[y],...E}},T&&g<=50&&(g++,typeof T=="object"&&(T.placement&&(p=T.placement),T.rects&&(c=T.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:o}):T.rects),{x:d,y:u}=gi(c,p,l)),x=-1)}return{x:d,y:u,placement:p,strategy:o,middlewareData:v}},Xp=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:s,platform:i,elements:a,middlewareData:l}=t,{element:c,padding:d=0}=We(e,t)||{};if(c==null)return{};const u=hi(d),p={x:n,y:r},v=kr(o),g=_r(v),m=await i.getDimensions(c),x=v==="y",y=x?"top":"left",b=x?"bottom":"right",h=x?"clientHeight":"clientWidth",S=s.reference[g]+s.reference[v]-p[v]-s.floating[g],E=p[v]-s.reference[v],T=await(i.getOffsetParent==null?void 0:i.getOffsetParent(c));let M=T?T[h]:0;(!M||!await(i.isElement==null?void 0:i.isElement(T)))&&(M=a.floating[h]||s.floating[g]);const _=S/2-E/2,A=M/2-m[g]/2-1,P=tt(u[y],A),N=tt(u[b],A),L=P,O=M-m[g]-N,D=M/2-m[g]/2+_,z=Tr(L,D,O),j=!l.arrow&&St(o)!=null&&D!==z&&s.reference[g]/2-(D<L?P:N)-m[g]/2<0,k=j?D<L?D-L:D-O:0;return{[v]:p[v]+k,data:{[v]:z,centerOffset:D-z-k,...j&&{alignmentOffset:k}},reset:j}}}),Kp=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:s,rects:i,initialPlacement:a,platform:l,elements:c}=t,{mainAxis:d=!0,crossAxis:u=!0,fallbackPlacements:p,fallbackStrategy:v="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:m=!0,...x}=We(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const y=Ge(o),b=De(a),h=Ge(a)===a,S=await(l.isRTL==null?void 0:l.isRTL(c.floating)),E=p||(h||!m?[vn(a)]:Fp(a)),T=g!=="none";!p&&T&&E.push(...Gp(a,m,g,S));const M=[a,...E],_=await l.detectOverflow(t,x),A=[];let P=((r=s.flip)==null?void 0:r.overflows)||[];if(d&&A.push(_[y]),u){const D=Bp(o,i,S);A.push(_[D[0]],_[D[1]])}if(P=[...P,{placement:o,overflows:A}],!A.every(D=>D<=0)){var N,L;const D=(((N=s.flip)==null?void 0:N.index)||0)+1,z=M[D];if(z&&(!(u==="alignment"?b!==De(z):!1)||P.every(C=>De(C.placement)===b?C.overflows[0]>0:!0)))return{data:{index:D,overflows:P},reset:{placement:z}};let j=(L=P.filter(k=>k.overflows[0]<=0).sort((k,C)=>k.overflows[1]-C.overflows[1])[0])==null?void 0:L.placement;if(!j)switch(v){case"bestFit":{var O;const k=(O=P.filter(C=>{if(T){const R=De(C.placement);return R===b||R==="y"}return!0}).map(C=>[C.placement,C.overflows.filter(R=>R>0).reduce((R,H)=>R+H,0)]).sort((C,R)=>C[1]-R[1])[0])==null?void 0:O[0];k&&(j=k);break}case"initialPlacement":j=a;break}if(o!==j)return{reset:{placement:j}}}return{}}}};function vi(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function bi(e){return jp.some(t=>e[t]>=0)}const Zp=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:r}=t,{strategy:o="referenceHidden",...s}=We(e,t);switch(o){case"referenceHidden":{const i=await r.detectOverflow(t,{...s,elementContext:"reference"}),a=vi(i,n.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:bi(a)}}}case"escaped":{const i=await r.detectOverflow(t,{...s,altBoundary:!0}),a=vi(i,n.floating);return{data:{escapedOffsets:a,escaped:bi(a)}}}default:return{}}}}},yi=new Set(["left","top"]);async function Jp(e,t){const{placement:n,platform:r,elements:o}=e,s=await(r.isRTL==null?void 0:r.isRTL(o.floating)),i=Ge(n),a=St(n),l=De(n)==="y",c=yi.has(i)?-1:1,d=s&&l?-1:1,u=We(t,e);let{mainAxis:p,crossAxis:v,alignmentAxis:g}=typeof u=="number"?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:u.mainAxis||0,crossAxis:u.crossAxis||0,alignmentAxis:u.alignmentAxis};return a&&typeof g=="number"&&(v=a==="end"?g*-1:g),l?{x:v*d,y:p*c}:{x:p*c,y:v*d}}const Qp=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:s,placement:i,middlewareData:a}=t,l=await Jp(t,e);return i===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:o+l.x,y:s+l.y,data:{...l,placement:i}}}}},em=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:i=!0,crossAxis:a=!1,limiter:l={fn:y=>{let{x:b,y:h}=y;return{x:b,y:h}}},...c}=We(e,t),d={x:n,y:r},u=await s.detectOverflow(t,c),p=De(Ge(o)),v=Pr(p);let g=d[v],m=d[p];if(i){const y=v==="y"?"top":"left",b=v==="y"?"bottom":"right",h=g+u[y],S=g-u[b];g=Tr(h,g,S)}if(a){const y=p==="y"?"top":"left",b=p==="y"?"bottom":"right",h=m+u[y],S=m-u[b];m=Tr(h,m,S)}const x=l.fn({...t,[v]:g,[p]:m});return{...x,data:{x:x.x-n,y:x.y-r,enabled:{[v]:i,[p]:a}}}}}},tm=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:s,middlewareData:i}=t,{offset:a=0,mainAxis:l=!0,crossAxis:c=!0}=We(e,t),d={x:n,y:r},u=De(o),p=Pr(u);let v=d[p],g=d[u];const m=We(a,t),x=typeof m=="number"?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(l){const h=p==="y"?"height":"width",S=s.reference[p]-s.floating[h]+x.mainAxis,E=s.reference[p]+s.reference[h]-x.mainAxis;v<S?v=S:v>E&&(v=E)}if(c){var y,b;const h=p==="y"?"width":"height",S=yi.has(Ge(o)),E=s.reference[u]-s.floating[h]+(S&&((y=i.offset)==null?void 0:y[u])||0)+(S?0:x.crossAxis),T=s.reference[u]+s.reference[h]+(S?0:((b=i.offset)==null?void 0:b[u])||0)-(S?x.crossAxis:0);g<E?g=E:g>T&&(g=T)}return{[p]:v,[u]:g}}}},nm=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:s,platform:i,elements:a}=t,{apply:l=()=>{},...c}=We(e,t),d=await i.detectOverflow(t,c),u=Ge(o),p=St(o),v=De(o)==="y",{width:g,height:m}=s.floating;let x,y;u==="top"||u==="bottom"?(x=u,y=p===(await(i.isRTL==null?void 0:i.isRTL(a.floating))?"start":"end")?"left":"right"):(y=u,x=p==="end"?"top":"bottom");const b=m-d.top-d.bottom,h=g-d.left-d.right,S=tt(m-d[x],b),E=tt(g-d[y],h),T=!t.middlewareData.shift;let M=S,_=E;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(_=h),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(M=b),T&&!p){const P=Ce(d.left,0),N=Ce(d.right,0),L=Ce(d.top,0),O=Ce(d.bottom,0);v?_=g-2*(P!==0||N!==0?P+N:Ce(d.left,d.right)):M=m-2*(L!==0||O!==0?L+O:Ce(d.top,d.bottom))}await l({...t,availableWidth:_,availableHeight:M});const A=await i.getDimensions(a.floating);return g!==A.width||m!==A.height?{reset:{rects:!0}}:{}}}};function yn(){return typeof window<"u"}function Et(e){return wi(e)?(e.nodeName||"").toLowerCase():"#document"}function Te(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function $e(e){var t;return(t=(wi(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function wi(e){return yn()?e instanceof Node||e instanceof Te(e).Node:!1}function Ne(e){return yn()?e instanceof Element||e instanceof Te(e).Element:!1}function ze(e){return yn()?e instanceof HTMLElement||e instanceof Te(e).HTMLElement:!1}function xi(e){return!yn()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Te(e).ShadowRoot}const rm=new Set(["inline","contents"]);function $t(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Ie(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!rm.has(o)}const om=new Set(["table","td","th"]);function sm(e){return om.has(Et(e))}const im=[":popover-open",":modal"];function wn(e){return im.some(t=>{try{return e.matches(t)}catch{return!1}})}const am=["transform","translate","scale","rotate","perspective"],lm=["transform","translate","scale","rotate","perspective","filter"],cm=["paint","layout","strict","content"];function Ar(e){const t=Nr(),n=Ne(e)?Ie(e):e;return am.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)||lm.some(r=>(n.willChange||"").includes(r))||cm.some(r=>(n.contain||"").includes(r))}function dm(e){let t=nt(e);for(;ze(t)&&!Ct(t);){if(Ar(t))return t;if(wn(t))return null;t=nt(t)}return null}function Nr(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const um=new Set(["html","body","#document"]);function Ct(e){return um.has(Et(e))}function Ie(e){return Te(e).getComputedStyle(e)}function xn(e){return Ne(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function nt(e){if(Et(e)==="html")return e;const t=e.assignedSlot||e.parentNode||xi(e)&&e.host||$e(e);return xi(t)?t.host:t}function Si(e){const t=nt(e);return Ct(t)?e.ownerDocument?e.ownerDocument.body:e.body:ze(t)&&$t(t)?t:Si(t)}function zt(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=Si(e),s=o===((r=e.ownerDocument)==null?void 0:r.body),i=Te(o);if(s){const a=Ir(i);return t.concat(i,i.visualViewport||[],$t(o)?o:[],a&&n?zt(a):[])}return t.concat(o,zt(o,[],n))}function Ir(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Ei(e){const t=Ie(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=ze(e),s=o?e.offsetWidth:n,i=o?e.offsetHeight:r,a=hn(n)!==s||hn(r)!==i;return a&&(n=s,r=i),{width:n,height:r,$:a}}function Or(e){return Ne(e)?e:e.contextElement}function Tt(e){const t=Or(e);if(!ze(t))return je(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:s}=Ei(t);let i=(s?hn(n.width):n.width)/r,a=(s?hn(n.height):n.height)/o;return(!i||!Number.isFinite(i))&&(i=1),(!a||!Number.isFinite(a))&&(a=1),{x:i,y:a}}const fm=je(0);function Ci(e){const t=Te(e);return!Nr()||!t.visualViewport?fm:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function pm(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Te(e)?!1:t}function ct(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),s=Or(e);let i=je(1);t&&(r?Ne(r)&&(i=Tt(r)):i=Tt(e));const a=pm(s,n,r)?Ci(s):je(0);let l=(o.left+a.x)/i.x,c=(o.top+a.y)/i.y,d=o.width/i.x,u=o.height/i.y;if(s){const p=Te(s),v=r&&Ne(r)?Te(r):r;let g=p,m=Ir(g);for(;m&&r&&v!==g;){const x=Tt(m),y=m.getBoundingClientRect(),b=Ie(m),h=y.left+(m.clientLeft+parseFloat(b.paddingLeft))*x.x,S=y.top+(m.clientTop+parseFloat(b.paddingTop))*x.y;l*=x.x,c*=x.y,d*=x.x,u*=x.y,l+=h,c+=S,g=Te(m),m=Ir(g)}}return bn({width:d,height:u,x:l,y:c})}function Sn(e,t){const n=xn(e).scrollLeft;return t?t.left+n:ct($e(e)).left+n}function Ti(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-Sn(e,n),o=n.top+t.scrollTop;return{x:r,y:o}}function mm(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const s=o==="fixed",i=$e(r),a=t?wn(t.floating):!1;if(r===i||a&&s)return n;let l={scrollLeft:0,scrollTop:0},c=je(1);const d=je(0),u=ze(r);if((u||!u&&!s)&&((Et(r)!=="body"||$t(i))&&(l=xn(r)),ze(r))){const v=ct(r);c=Tt(r),d.x=v.x+r.clientLeft,d.y=v.y+r.clientTop}const p=i&&!u&&!s?Ti(i,l):je(0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+d.x+p.x,y:n.y*c.y-l.scrollTop*c.y+d.y+p.y}}function hm(e){return Array.from(e.getClientRects())}function gm(e){const t=$e(e),n=xn(e),r=e.ownerDocument.body,o=Ce(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),s=Ce(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let i=-n.scrollLeft+Sn(e);const a=-n.scrollTop;return Ie(r).direction==="rtl"&&(i+=Ce(t.clientWidth,r.clientWidth)-o),{width:o,height:s,x:i,y:a}}const Pi=25;function vm(e,t){const n=Te(e),r=$e(e),o=n.visualViewport;let s=r.clientWidth,i=r.clientHeight,a=0,l=0;if(o){s=o.width,i=o.height;const d=Nr();(!d||d&&t==="fixed")&&(a=o.offsetLeft,l=o.offsetTop)}const c=Sn(r);if(c<=0){const d=r.ownerDocument,u=d.body,p=getComputedStyle(u),v=d.compatMode==="CSS1Compat"&&parseFloat(p.marginLeft)+parseFloat(p.marginRight)||0,g=Math.abs(r.clientWidth-u.clientWidth-v);g<=Pi&&(s-=g)}else c<=Pi&&(s+=c);return{width:s,height:i,x:a,y:l}}const bm=new Set(["absolute","fixed"]);function ym(e,t){const n=ct(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,s=ze(e)?Tt(e):je(1),i=e.clientWidth*s.x,a=e.clientHeight*s.y,l=o*s.x,c=r*s.y;return{width:i,height:a,x:l,y:c}}function _i(e,t,n){let r;if(t==="viewport")r=vm(e,n);else if(t==="document")r=gm($e(e));else if(Ne(t))r=ym(t,n);else{const o=Ci(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return bn(r)}function ki(e,t){const n=nt(e);return n===t||!Ne(n)||Ct(n)?!1:Ie(n).position==="fixed"||ki(n,t)}function wm(e,t){const n=t.get(e);if(n)return n;let r=zt(e,[],!1).filter(a=>Ne(a)&&Et(a)!=="body"),o=null;const s=Ie(e).position==="fixed";let i=s?nt(e):e;for(;Ne(i)&&!Ct(i);){const a=Ie(i),l=Ar(i);!l&&a.position==="fixed"&&(o=null),(s?!l&&!o:!l&&a.position==="static"&&!!o&&bm.has(o.position)||$t(i)&&!l&&ki(e,i))?r=r.filter(d=>d!==i):o=a,i=nt(i)}return t.set(e,r),r}function xm(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[...n==="clippingAncestors"?wn(t)?[]:wm(t,this._c):[].concat(n),r],a=i[0],l=i.reduce((c,d)=>{const u=_i(t,d,o);return c.top=Ce(u.top,c.top),c.right=tt(u.right,c.right),c.bottom=tt(u.bottom,c.bottom),c.left=Ce(u.left,c.left),c},_i(t,a,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function Sm(e){const{width:t,height:n}=Ei(e);return{width:t,height:n}}function Em(e,t,n){const r=ze(t),o=$e(t),s=n==="fixed",i=ct(e,!0,s,t);let a={scrollLeft:0,scrollTop:0};const l=je(0);function c(){l.x=Sn(o)}if(r||!r&&!s)if((Et(t)!=="body"||$t(o))&&(a=xn(t)),r){const v=ct(t,!0,s,t);l.x=v.x+t.clientLeft,l.y=v.y+t.clientTop}else o&&c();s&&!r&&o&&c();const d=o&&!r&&!s?Ti(o,a):je(0),u=i.left+a.scrollLeft-l.x-d.x,p=i.top+a.scrollTop-l.y-d.y;return{x:u,y:p,width:i.width,height:i.height}}function Rr(e){return Ie(e).position==="static"}function Mi(e,t){if(!ze(e)||Ie(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return $e(e)===n&&(n=n.ownerDocument.body),n}function Ai(e,t){const n=Te(e);if(wn(e))return n;if(!ze(e)){let o=nt(e);for(;o&&!Ct(o);){if(Ne(o)&&!Rr(o))return o;o=nt(o)}return n}let r=Mi(e,t);for(;r&&sm(r)&&Rr(r);)r=Mi(r,t);return r&&Ct(r)&&Rr(r)&&!Ar(r)?n:r||dm(e)||n}const Cm=async function(e){const t=this.getOffsetParent||Ai,n=this.getDimensions,r=await n(e.floating);return{reference:Em(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Tm(e){return Ie(e).direction==="rtl"}const Pm={convertOffsetParentRelativeRectToViewportRelativeRect:mm,getDocumentElement:$e,getClippingRect:xm,getOffsetParent:Ai,getElementRects:Cm,getClientRects:hm,getDimensions:Sm,getScale:Tt,isElement:Ne,isRTL:Tm};function Ni(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function _m(e,t){let n=null,r;const o=$e(e);function s(){var a;clearTimeout(r),(a=n)==null||a.disconnect(),n=null}function i(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),s();const c=e.getBoundingClientRect(),{left:d,top:u,width:p,height:v}=c;if(a||t(),!p||!v)return;const g=gn(u),m=gn(o.clientWidth-(d+p)),x=gn(o.clientHeight-(u+v)),y=gn(d),h={rootMargin:-g+"px "+-m+"px "+-x+"px "+-y+"px",threshold:Ce(0,tt(1,l))||1};let S=!0;function E(T){const M=T[0].intersectionRatio;if(M!==l){if(!S)return i();M?i(!1,M):r=setTimeout(()=>{i(!1,1e-7)},1e3)}M===1&&!Ni(c,e.getBoundingClientRect())&&i(),S=!1}try{n=new IntersectionObserver(E,{...h,root:o.ownerDocument})}catch{n=new IntersectionObserver(E,h)}n.observe(e)}return i(!0),s}function km(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:s=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,c=Or(e),d=o||s?[...c?zt(c):[],...zt(t)]:[];d.forEach(y=>{o&&y.addEventListener("scroll",n,{passive:!0}),s&&y.addEventListener("resize",n)});const u=c&&a?_m(c,n):null;let p=-1,v=null;i&&(v=new ResizeObserver(y=>{let[b]=y;b&&b.target===c&&v&&(v.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var h;(h=v)==null||h.observe(t)})),n()}),c&&!l&&v.observe(c),v.observe(t));let g,m=l?ct(e):null;l&&x();function x(){const y=ct(e);m&&!Ni(m,y)&&n(),m=y,g=requestAnimationFrame(x)}return n(),()=>{var y;d.forEach(b=>{o&&b.removeEventListener("scroll",n),s&&b.removeEventListener("resize",n)}),u==null||u(),(y=v)==null||y.disconnect(),v=null,l&&cancelAnimationFrame(g)}}const Mm=Qp,Am=em,Nm=Kp,Im=nm,Om=Zp,Ii=Xp,Rm=tm,Lm=(e,t,n)=>{const r=new Map,o={platform:Pm,...n},s={...o.platform,_c:r};return qp(e,t,{...o,platform:s})};var jm=typeof document<"u",Dm=function(){},En=jm?$.useLayoutEffect:Dm;function Cn(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(!Cn(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)&&!Cn(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function Oi(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Ri(e,t){const n=Oi(e);return Math.round(t*n)/n}function Lr(e){const t=f.useRef(e);return En(()=>{t.current=e}),t}function $m(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:s,floating:i}={},transform:a=!0,whileElementsMounted:l,open:c}=e,[d,u]=f.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,v]=f.useState(r);Cn(p,r)||v(r);const[g,m]=f.useState(null),[x,y]=f.useState(null),b=f.useCallback(C=>{C!==T.current&&(T.current=C,m(C))},[]),h=f.useCallback(C=>{C!==M.current&&(M.current=C,y(C))},[]),S=s||g,E=i||x,T=f.useRef(null),M=f.useRef(null),_=f.useRef(d),A=l!=null,P=Lr(l),N=Lr(o),L=Lr(c),O=f.useCallback(()=>{if(!T.current||!M.current)return;const C={placement:t,strategy:n,middleware:p};N.current&&(C.platform=N.current),Lm(T.current,M.current,C).then(R=>{const H={...R,isPositioned:L.current!==!1};D.current&&!Cn(_.current,H)&&(_.current=H,Vt.flushSync(()=>{u(H)}))})},[p,t,n,N,L]);En(()=>{c===!1&&_.current.isPositioned&&(_.current.isPositioned=!1,u(C=>({...C,isPositioned:!1})))},[c]);const D=f.useRef(!1);En(()=>(D.current=!0,()=>{D.current=!1}),[]),En(()=>{if(S&&(T.current=S),E&&(M.current=E),S&&E){if(P.current)return P.current(S,E,O);O()}},[S,E,O,P,A]);const z=f.useMemo(()=>({reference:T,floating:M,setReference:b,setFloating:h}),[b,h]),j=f.useMemo(()=>({reference:S,floating:E}),[S,E]),k=f.useMemo(()=>{const C={position:n,left:0,top:0};if(!j.floating)return C;const R=Ri(j.floating,d.x),H=Ri(j.floating,d.y);return a?{...C,transform:"translate("+R+"px, "+H+"px)",...Oi(j.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:R,top:H}},[n,a,j.floating,d.x,d.y]);return f.useMemo(()=>({...d,update:O,refs:z,elements:j,floatingStyles:k}),[d,O,z,j,k])}const zm=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?Ii({element:r.current,padding:o}).fn(n):{}:r?Ii({element:r,padding:o}).fn(n):{}}}},Bm=(e,t)=>({...Mm(e),options:[e,t]}),Fm=(e,t)=>({...Am(e),options:[e,t]}),Vm=(e,t)=>({...Rm(e),options:[e,t]}),Hm=(e,t)=>({...Nm(e),options:[e,t]}),Wm=(e,t)=>({...Im(e),options:[e,t]}),Gm=(e,t)=>({...Om(e),options:[e,t]}),Um=(e,t)=>({...zm(e),options:[e,t]});function Ym(e){const t=qm(e),n=f.forwardRef((r,o)=>{const{children:s,...i}=r,a=f.Children.toArray(s),l=a.find(Km);if(l){const c=l.props.children,d=a.map(u=>u===l?f.Children.count(c)>1?f.Children.only(null):f.isValidElement(c)?c.props.children:null:u);return w.jsx(t,{...i,ref:o,children:f.isValidElement(c)?f.cloneElement(c,void 0,d):null})}return w.jsx(t,{...i,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}function qm(e){const t=f.forwardRef((n,r)=>{const{children:o,...s}=n;if(f.isValidElement(o)){const i=Jm(o),a=Zm(s,o.props);return o.type!==f.Fragment&&(a.ref=r?ke(r,i):i),f.cloneElement(o,a)}return f.Children.count(o)>1?f.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Xm=Symbol("radix.slottable");function Km(e){return f.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Xm}function Zm(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]=(...a)=>{const l=s(...a);return o(...a),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function Jm(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 Qm=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],eh=Qm.reduce((e,t)=>{const n=Ym(`Primitive.${t}`),r=f.forwardRef((o,s)=>{const{asChild:i,...a}=o,l=i?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),w.jsx(l,{...a,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),th="Arrow",Li=f.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...s}=e;return w.jsx(eh.svg,{...s,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:w.jsx("polygon",{points:"0,0 30,0 15,10"})})});Li.displayName=th;var nh=Li;function rh(e,t=[]){let n=[];function r(s,i){const a=f.createContext(i),l=n.length;n=[...n,i];const c=u=>{var y;const{scope:p,children:v,...g}=u,m=((y=p==null?void 0:p[e])==null?void 0:y[l])||a,x=f.useMemo(()=>g,Object.values(g));return w.jsx(m.Provider,{value:x,children:v})};c.displayName=s+"Provider";function d(u,p){var m;const v=((m=p==null?void 0:p[e])==null?void 0:m[l])||a,g=f.useContext(v);if(g)return g;if(i!==void 0)return i;throw new Error(`\`${u}\` must be used within \`${s}\``)}return[c,d]}const o=()=>{const s=n.map(i=>f.createContext(i));return function(a){const l=(a==null?void 0:a[e])||s;return f.useMemo(()=>({[`__scope${e}`]:{...a,[e]:l}}),[a,l])}};return o.scopeName=e,[r,oh(o,...t)]}function oh(...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 i=r.reduce((a,{useScope:l,scopeName:c})=>{const u=l(s)[`__scope${c}`];return{...a,...u}},{});return f.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}function sh(e){const t=ih(e),n=f.forwardRef((r,o)=>{const{children:s,...i}=r,a=f.Children.toArray(s),l=a.find(lh);if(l){const c=l.props.children,d=a.map(u=>u===l?f.Children.count(c)>1?f.Children.only(null):f.isValidElement(c)?c.props.children:null:u);return w.jsx(t,{...i,ref:o,children:f.isValidElement(c)?f.cloneElement(c,void 0,d):null})}return w.jsx(t,{...i,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}function ih(e){const t=f.forwardRef((n,r)=>{const{children:o,...s}=n;if(f.isValidElement(o)){const i=dh(o),a=ch(s,o.props);return o.type!==f.Fragment&&(a.ref=r?ke(r,i):i),f.cloneElement(o,a)}return f.Children.count(o)>1?f.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var ah=Symbol("radix.slottable");function lh(e){return f.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===ah}function ch(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]=(...a)=>{const l=s(...a);return o(...a),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function dh(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 uh=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],ji=uh.reduce((e,t)=>{const n=sh(`Primitive.${t}`),r=f.forwardRef((o,s)=>{const{asChild:i,...a}=o,l=i?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),w.jsx(l,{...a,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),jr="Popper",[Di,$i]=rh(jr),[fh,zi]=Di(jr),Bi=e=>{const{__scopePopper:t,children:n}=e,[r,o]=f.useState(null);return w.jsx(fh,{scope:t,anchor:r,onAnchorChange:o,children:n})};Bi.displayName=jr;var Fi="PopperAnchor",Vi=f.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,s=zi(Fi,n),i=f.useRef(null),a=le(t,i),l=f.useRef(null);return f.useEffect(()=>{const c=l.current;l.current=(r==null?void 0:r.current)||i.current,c!==l.current&&s.onAnchorChange(l.current)}),r?null:w.jsx(ji.div,{...o,ref:a})});Vi.displayName=Fi;var Dr="PopperContent",[ph,mh]=Di(Dr),Hi=f.forwardRef((e,t)=>{var B,Z,re,Q,te,ee;const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:s="center",alignOffset:i=0,arrowPadding:a=0,avoidCollisions:l=!0,collisionBoundary:c=[],collisionPadding:d=0,sticky:u="partial",hideWhenDetached:p=!1,updatePositionStrategy:v="optimized",onPlaced:g,...m}=e,x=zi(Dr,n),[y,b]=f.useState(null),h=le(t,ve=>b(ve)),[S,E]=f.useState(null),T=fi(S),M=(T==null?void 0:T.width)??0,_=(T==null?void 0:T.height)??0,A=r+(s!=="center"?"-"+s:""),P=typeof d=="number"?d:{top:0,right:0,bottom:0,left:0,...d},N=Array.isArray(c)?c:[c],L=N.length>0,O={padding:P,boundary:N.filter(gh),altBoundary:L},{refs:D,floatingStyles:z,placement:j,isPositioned:k,middlewareData:C}=$m({strategy:"fixed",placement:A,whileElementsMounted:(...ve)=>km(...ve,{animationFrame:v==="always"}),elements:{reference:x.anchor},middleware:[Bm({mainAxis:o+_,alignmentAxis:i}),l&&Fm({mainAxis:!0,crossAxis:!1,limiter:u==="partial"?Vm():void 0,...O}),l&&Hm({...O}),Wm({...O,apply:({elements:ve,rects:ye,availableWidth:Be,availableHeight:V})=>{const{width:de,height:we}=ye.reference,xe=ve.floating.style;xe.setProperty("--radix-popper-available-width",`${Be}px`),xe.setProperty("--radix-popper-available-height",`${V}px`),xe.setProperty("--radix-popper-anchor-width",`${de}px`),xe.setProperty("--radix-popper-anchor-height",`${we}px`)}}),S&&Um({element:S,padding:a}),vh({arrowWidth:M,arrowHeight:_}),p&&Gm({strategy:"referenceHidden",...O})]}),[R,H]=Ui(j),I=Je(g);be(()=>{k&&(I==null||I())},[k,I]);const G=(B=C.arrow)==null?void 0:B.x,q=(Z=C.arrow)==null?void 0:Z.y,K=((re=C.arrow)==null?void 0:re.centerOffset)!==0,[se,ae]=f.useState();return be(()=>{y&&ae(window.getComputedStyle(y).zIndex)},[y]),w.jsx("div",{ref:D.setFloating,"data-radix-popper-content-wrapper":"",style:{...z,transform:k?z.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:se,"--radix-popper-transform-origin":[(Q=C.transformOrigin)==null?void 0:Q.x,(te=C.transformOrigin)==null?void 0:te.y].join(" "),...((ee=C.hide)==null?void 0:ee.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:w.jsx(ph,{scope:n,placedSide:R,onArrowChange:E,arrowX:G,arrowY:q,shouldHideArrow:K,children:w.jsx(ji.div,{"data-side":R,"data-align":H,...m,ref:h,style:{...m.style,animation:k?void 0:"none"}})})})});Hi.displayName=Dr;var Wi="PopperArrow",hh={top:"bottom",right:"left",bottom:"top",left:"right"},Gi=f.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,s=mh(Wi,r),i=hh[s.placedSide];return w.jsx("span",{ref:s.onArrowChange,style:{position:"absolute",left:s.arrowX,top:s.arrowY,[i]: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:w.jsx(nh,{...o,ref:n,style:{...o.style,display:"block"}})})});Gi.displayName=Wi;function gh(e){return e!==null}var vh=e=>({name:"transformOrigin",options:e,fn(t){var x,y,b;const{placement:n,rects:r,middlewareData:o}=t,i=((x=o.arrow)==null?void 0:x.centerOffset)!==0,a=i?0:e.arrowWidth,l=i?0:e.arrowHeight,[c,d]=Ui(n),u={start:"0%",center:"50%",end:"100%"}[d],p=(((y=o.arrow)==null?void 0:y.x)??0)+a/2,v=(((b=o.arrow)==null?void 0:b.y)??0)+l/2;let g="",m="";return c==="bottom"?(g=i?u:`${p}px`,m=`${-l}px`):c==="top"?(g=i?u:`${p}px`,m=`${r.floating.height+l}px`):c==="right"?(g=`${-l}px`,m=i?u:`${v}px`):c==="left"&&(g=`${r.floating.width+l}px`,m=i?u:`${v}px`),{data:{x:g,y:m}}}});function Ui(e){const[t,n="center"]=e.split("-");return[t,n]}var bh=Bi,yh=Vi,wh=Hi,xh=Gi;function Tn(e,[t,n]){return Math.min(n,Math.max(t,e))}function Sh(e,t=[]){let n=[];function r(s,i){const a=f.createContext(i),l=n.length;n=[...n,i];const c=u=>{var y;const{scope:p,children:v,...g}=u,m=((y=p==null?void 0:p[e])==null?void 0:y[l])||a,x=f.useMemo(()=>g,Object.values(g));return w.jsx(m.Provider,{value:x,children:v})};c.displayName=s+"Provider";function d(u,p){var m;const v=((m=p==null?void 0:p[e])==null?void 0:m[l])||a,g=f.useContext(v);if(g)return g;if(i!==void 0)return i;throw new Error(`\`${u}\` must be used within \`${s}\``)}return[c,d]}const o=()=>{const s=n.map(i=>f.createContext(i));return function(a){const l=(a==null?void 0:a[e])||s;return f.useMemo(()=>({[`__scope${e}`]:{...a,[e]:l}}),[a,l])}};return o.scopeName=e,[r,Eh(o,...t)]}function Eh(...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 i=r.reduce((a,{useScope:l,scopeName:c})=>{const u=l(s)[`__scope${c}`];return{...a,...u}},{});return f.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}function Yi(e){const t=Ch(e),n=f.forwardRef((r,o)=>{const{children:s,...i}=r,a=f.Children.toArray(s),l=a.find(Ph);if(l){const c=l.props.children,d=a.map(u=>u===l?f.Children.count(c)>1?f.Children.only(null):f.isValidElement(c)?c.props.children:null:u);return w.jsx(t,{...i,ref:o,children:f.isValidElement(c)?f.cloneElement(c,void 0,d):null})}return w.jsx(t,{...i,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}function Ch(e){const t=f.forwardRef((n,r)=>{const{children:o,...s}=n;if(f.isValidElement(o)){const i=kh(o),a=_h(s,o.props);return o.type!==f.Fragment&&(a.ref=r?ke(r,i):i),f.cloneElement(o,a)}return f.Children.count(o)>1?f.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Th=Symbol("radix.slottable");function Ph(e){return f.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Th}function _h(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]=(...a)=>{const l=s(...a);return o(...a),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function kh(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 Mh=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Pe=Mh.reduce((e,t)=>{const n=Yi(`Primitive.${t}`),r=f.forwardRef((o,s)=>{const{asChild:i,...a}=o,l=i?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),w.jsx(l,{...a,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),Ah=[" ","Enter","ArrowUp","ArrowDown"],Nh=[" ","Enter"],dt="Select",[Pn,_n,Ih]=Rs(dt),[Pt,bv]=Sh(dt,[Ih,$i]),kn=$i(),[Oh,rt]=Pt(dt),[Rh,Lh]=Pt(dt),qi=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:o,onOpenChange:s,value:i,defaultValue:a,onValueChange:l,dir:c,name:d,autoComplete:u,disabled:p,required:v,form:g}=e,m=kn(t),[x,y]=f.useState(null),[b,h]=f.useState(null),[S,E]=f.useState(!1),T=Ls(c),[M,_]=mr({prop:r,defaultProp:o??!1,onChange:s,caller:dt}),[A,P]=mr({prop:i,defaultProp:a,onChange:l,caller:dt}),N=f.useRef(null),L=x?g||!!x.closest("form"):!0,[O,D]=f.useState(new Set),z=Array.from(O).map(j=>j.props.value).join(";");return w.jsx(bh,{...m,children:w.jsxs(Oh,{required:v,scope:t,trigger:x,onTriggerChange:y,valueNode:b,onValueNodeChange:h,valueNodeHasChildren:S,onValueNodeHasChildrenChange:E,contentId:hr(),value:A,onValueChange:P,open:M,onOpenChange:_,dir:T,triggerPointerDownPosRef:N,disabled:p,children:[w.jsx(Pn.Provider,{scope:t,children:w.jsx(Rh,{scope:e.__scopeSelect,onNativeOptionAdd:f.useCallback(j=>{D(k=>new Set(k).add(j))},[]),onNativeOptionRemove:f.useCallback(j=>{D(k=>{const C=new Set(k);return C.delete(j),C})},[]),children:n})}),L?w.jsxs(ga,{"aria-hidden":!0,required:v,tabIndex:-1,name:d,autoComplete:u,value:A,onChange:j=>P(j.target.value),disabled:p,form:g,children:[A===void 0?w.jsx("option",{value:""}):null,Array.from(O)]},z):null]})})};qi.displayName=dt;var Xi="SelectTrigger",Ki=f.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...o}=e,s=kn(n),i=rt(Xi,n),a=i.disabled||r,l=le(t,i.onTriggerChange),c=_n(n),d=f.useRef("touch"),[u,p,v]=ba(m=>{const x=c().filter(h=>!h.disabled),y=x.find(h=>h.value===i.value),b=ya(x,m,y);b!==void 0&&i.onValueChange(b.value)}),g=m=>{a||(i.onOpenChange(!0),v()),m&&(i.triggerPointerDownPosRef.current={x:Math.round(m.pageX),y:Math.round(m.pageY)})};return w.jsx(yh,{asChild:!0,...s,children:w.jsx(Pe.button,{type:"button",role:"combobox","aria-controls":i.contentId,"aria-expanded":i.open,"aria-required":i.required,"aria-autocomplete":"none",dir:i.dir,"data-state":i.open?"open":"closed",disabled:a,"data-disabled":a?"":void 0,"data-placeholder":va(i.value)?"":void 0,...o,ref:l,onClick:ie(o.onClick,m=>{m.currentTarget.focus(),d.current!=="mouse"&&g(m)}),onPointerDown:ie(o.onPointerDown,m=>{d.current=m.pointerType;const x=m.target;x.hasPointerCapture(m.pointerId)&&x.releasePointerCapture(m.pointerId),m.button===0&&m.ctrlKey===!1&&m.pointerType==="mouse"&&(g(m),m.preventDefault())}),onKeyDown:ie(o.onKeyDown,m=>{const x=u.current!=="";!(m.ctrlKey||m.altKey||m.metaKey)&&m.key.length===1&&p(m.key),!(x&&m.key===" ")&&Ah.includes(m.key)&&(g(),m.preventDefault())})})})});Ki.displayName=Xi;var Zi="SelectValue",Ji=f.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,children:s,placeholder:i="",...a}=e,l=rt(Zi,n),{onValueNodeHasChildrenChange:c}=l,d=s!==void 0,u=le(t,l.onValueNodeChange);return be(()=>{c(d)},[c,d]),w.jsx(Pe.span,{...a,ref:u,style:{pointerEvents:"none"},children:va(l.value)?w.jsx(w.Fragment,{children:i}):s})});Ji.displayName=Zi;var jh="SelectIcon",Qi=f.forwardRef((e,t)=>{const{__scopeSelect:n,children:r,...o}=e;return w.jsx(Pe.span,{"aria-hidden":!0,...o,ref:t,children:r||"▼"})});Qi.displayName=jh;var Dh="SelectPortal",ea=e=>w.jsx(qs,{asChild:!0,...e});ea.displayName=Dh;var ut="SelectContent",ta=f.forwardRef((e,t)=>{const n=rt(ut,e.__scopeSelect),[r,o]=f.useState();if(be(()=>{o(new DocumentFragment)},[]),!n.open){const s=r;return s?Vt.createPortal(w.jsx(na,{scope:e.__scopeSelect,children:w.jsx(Pn.Slot,{scope:e.__scopeSelect,children:w.jsx("div",{children:e.children})})}),s):null}return w.jsx(ra,{...e,ref:t})});ta.displayName=ut;var Oe=10,[na,ot]=Pt(ut),$h="SelectContentImpl",zh=Yi("SelectContent.RemoveScroll"),ra=f.forwardRef((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:s,onPointerDownOutside:i,side:a,sideOffset:l,align:c,alignOffset:d,arrowPadding:u,collisionBoundary:p,collisionPadding:v,sticky:g,hideWhenDetached:m,avoidCollisions:x,...y}=e,b=rt(ut,n),[h,S]=f.useState(null),[E,T]=f.useState(null),M=le(t,B=>S(B)),[_,A]=f.useState(null),[P,N]=f.useState(null),L=_n(n),[O,D]=f.useState(!1),z=f.useRef(!1);f.useEffect(()=>{if(h)return Lp(h)},[h]),qf();const j=f.useCallback(B=>{const[Z,...re]=L().map(ee=>ee.ref.current),[Q]=re.slice(-1),te=document.activeElement;for(const ee of B)if(ee===te||(ee==null||ee.scrollIntoView({block:"nearest"}),ee===Z&&E&&(E.scrollTop=0),ee===Q&&E&&(E.scrollTop=E.scrollHeight),ee==null||ee.focus(),document.activeElement!==te))return},[L,E]),k=f.useCallback(()=>j([_,h]),[j,_,h]);f.useEffect(()=>{O&&k()},[O,k]);const{onOpenChange:C,triggerPointerDownPosRef:R}=b;f.useEffect(()=>{if(h){let B={x:0,y:0};const Z=Q=>{var te,ee;B={x:Math.abs(Math.round(Q.pageX)-(((te=R.current)==null?void 0:te.x)??0)),y:Math.abs(Math.round(Q.pageY)-(((ee=R.current)==null?void 0:ee.y)??0))}},re=Q=>{B.x<=10&&B.y<=10?Q.preventDefault():h.contains(Q.target)||C(!1),document.removeEventListener("pointermove",Z),R.current=null};return R.current!==null&&(document.addEventListener("pointermove",Z),document.addEventListener("pointerup",re,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",Z),document.removeEventListener("pointerup",re,{capture:!0})}}},[h,C,R]),f.useEffect(()=>{const B=()=>C(!1);return window.addEventListener("blur",B),window.addEventListener("resize",B),()=>{window.removeEventListener("blur",B),window.removeEventListener("resize",B)}},[C]);const[H,I]=ba(B=>{const Z=L().filter(te=>!te.disabled),re=Z.find(te=>te.ref.current===document.activeElement),Q=ya(Z,B,re);Q&&setTimeout(()=>Q.ref.current.focus())}),G=f.useCallback((B,Z,re)=>{const Q=!z.current&&!re;(b.value!==void 0&&b.value===Z||Q)&&(A(B),Q&&(z.current=!0))},[b.value]),q=f.useCallback(()=>h==null?void 0:h.focus(),[h]),K=f.useCallback((B,Z,re)=>{const Q=!z.current&&!re;(b.value!==void 0&&b.value===Z||Q)&&N(B)},[b.value]),se=r==="popper"?$r:oa,ae=se===$r?{side:a,sideOffset:l,align:c,alignOffset:d,arrowPadding:u,collisionBoundary:p,collisionPadding:v,sticky:g,hideWhenDetached:m,avoidCollisions:x}:{};return w.jsx(na,{scope:n,content:h,viewport:E,onViewportChange:T,itemRefCallback:G,selectedItem:_,onItemLeave:q,itemTextRefCallback:K,focusSelectedItem:k,selectedItemText:P,position:r,isPositioned:O,searchRef:H,children:w.jsx(Np,{as:zh,allowPinchZoom:!0,children:w.jsx(Hs,{asChild:!0,trapped:b.open,onMountAutoFocus:B=>{B.preventDefault()},onUnmountAutoFocus:ie(o,B=>{var Z;(Z=b.trigger)==null||Z.focus({preventScroll:!0}),B.preventDefault()}),children:w.jsx(zs,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:s,onPointerDownOutside:i,onFocusOutside:B=>B.preventDefault(),onDismiss:()=>b.onOpenChange(!1),children:w.jsx(se,{role:"listbox",id:b.contentId,"data-state":b.open?"open":"closed",dir:b.dir,onContextMenu:B=>B.preventDefault(),...y,...ae,onPlaced:()=>D(!0),ref:M,style:{display:"flex",flexDirection:"column",outline:"none",...y.style},onKeyDown:ie(y.onKeyDown,B=>{const Z=B.ctrlKey||B.altKey||B.metaKey;if(B.key==="Tab"&&B.preventDefault(),!Z&&B.key.length===1&&I(B.key),["ArrowUp","ArrowDown","Home","End"].includes(B.key)){let Q=L().filter(te=>!te.disabled).map(te=>te.ref.current);if(["ArrowUp","End"].includes(B.key)&&(Q=Q.slice().reverse()),["ArrowUp","ArrowDown"].includes(B.key)){const te=B.target,ee=Q.indexOf(te);Q=Q.slice(ee+1)}setTimeout(()=>j(Q)),B.preventDefault()}})})})})})})});ra.displayName=$h;var Bh="SelectItemAlignedPosition",oa=f.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:r,...o}=e,s=rt(ut,n),i=ot(ut,n),[a,l]=f.useState(null),[c,d]=f.useState(null),u=le(t,M=>d(M)),p=_n(n),v=f.useRef(!1),g=f.useRef(!0),{viewport:m,selectedItem:x,selectedItemText:y,focusSelectedItem:b}=i,h=f.useCallback(()=>{if(s.trigger&&s.valueNode&&a&&c&&m&&x&&y){const M=s.trigger.getBoundingClientRect(),_=c.getBoundingClientRect(),A=s.valueNode.getBoundingClientRect(),P=y.getBoundingClientRect();if(s.dir!=="rtl"){const te=P.left-_.left,ee=A.left-te,ve=M.left-ee,ye=M.width+ve,Be=Math.max(ye,_.width),V=window.innerWidth-Oe,de=Tn(ee,[Oe,Math.max(Oe,V-Be)]);a.style.minWidth=ye+"px",a.style.left=de+"px"}else{const te=_.right-P.right,ee=window.innerWidth-A.right-te,ve=window.innerWidth-M.right-ee,ye=M.width+ve,Be=Math.max(ye,_.width),V=window.innerWidth-Oe,de=Tn(ee,[Oe,Math.max(Oe,V-Be)]);a.style.minWidth=ye+"px",a.style.right=de+"px"}const N=p(),L=window.innerHeight-Oe*2,O=m.scrollHeight,D=window.getComputedStyle(c),z=parseInt(D.borderTopWidth,10),j=parseInt(D.paddingTop,10),k=parseInt(D.borderBottomWidth,10),C=parseInt(D.paddingBottom,10),R=z+j+O+C+k,H=Math.min(x.offsetHeight*5,R),I=window.getComputedStyle(m),G=parseInt(I.paddingTop,10),q=parseInt(I.paddingBottom,10),K=M.top+M.height/2-Oe,se=L-K,ae=x.offsetHeight/2,B=x.offsetTop+ae,Z=z+j+B,re=R-Z;if(Z<=K){const te=N.length>0&&x===N[N.length-1].ref.current;a.style.bottom="0px";const ee=c.clientHeight-m.offsetTop-m.offsetHeight,ve=Math.max(se,ae+(te?q:0)+ee+k),ye=Z+ve;a.style.height=ye+"px"}else{const te=N.length>0&&x===N[0].ref.current;a.style.top="0px";const ve=Math.max(K,z+m.offsetTop+(te?G:0)+ae)+re;a.style.height=ve+"px",m.scrollTop=Z-K+m.offsetTop}a.style.margin=`${Oe}px 0`,a.style.minHeight=H+"px",a.style.maxHeight=L+"px",r==null||r(),requestAnimationFrame(()=>v.current=!0)}},[p,s.trigger,s.valueNode,a,c,m,x,y,s.dir,r]);be(()=>h(),[h]);const[S,E]=f.useState();be(()=>{c&&E(window.getComputedStyle(c).zIndex)},[c]);const T=f.useCallback(M=>{M&&g.current===!0&&(h(),b==null||b(),g.current=!1)},[h,b]);return w.jsx(Vh,{scope:n,contentWrapper:a,shouldExpandOnScrollRef:v,onScrollButtonChange:T,children:w.jsx("div",{ref:l,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:S},children:w.jsx(Pe.div,{...o,ref:u,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}})})})});oa.displayName=Bh;var Fh="SelectPopperPosition",$r=f.forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:o=Oe,...s}=e,i=kn(n);return w.jsx(wh,{...i,...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)"}})});$r.displayName=Fh;var[Vh,zr]=Pt(ut,{}),Br="SelectViewport",sa=f.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:r,...o}=e,s=ot(Br,n),i=zr(Br,n),a=le(t,s.onViewportChange),l=f.useRef(0);return w.jsxs(w.Fragment,{children:[w.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}),w.jsx(Pn.Slot,{scope:n,children:w.jsx(Pe.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:a,style:{position:"relative",flex:1,overflow:"hidden auto",...o.style},onScroll:ie(o.onScroll,c=>{const d=c.currentTarget,{contentWrapper:u,shouldExpandOnScrollRef:p}=i;if(p!=null&&p.current&&u){const v=Math.abs(l.current-d.scrollTop);if(v>0){const g=window.innerHeight-Oe*2,m=parseFloat(u.style.minHeight),x=parseFloat(u.style.height),y=Math.max(m,x);if(y<g){const b=y+v,h=Math.min(g,b),S=b-h;u.style.height=h+"px",u.style.bottom==="0px"&&(d.scrollTop=S>0?S:0,u.style.justifyContent="flex-end")}}}l.current=d.scrollTop})})})]})});sa.displayName=Br;var ia="SelectGroup",[Hh,Wh]=Pt(ia),Gh=f.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=hr();return w.jsx(Hh,{scope:n,id:o,children:w.jsx(Pe.div,{role:"group","aria-labelledby":o,...r,ref:t})})});Gh.displayName=ia;var aa="SelectLabel",Uh=f.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=Wh(aa,n);return w.jsx(Pe.div,{id:o.id,...r,ref:t})});Uh.displayName=aa;var Mn="SelectItem",[Yh,la]=Pt(Mn),ca=f.forwardRef((e,t)=>{const{__scopeSelect:n,value:r,disabled:o=!1,textValue:s,...i}=e,a=rt(Mn,n),l=ot(Mn,n),c=a.value===r,[d,u]=f.useState(s??""),[p,v]=f.useState(!1),g=le(t,b=>{var h;return(h=l.itemRefCallback)==null?void 0:h.call(l,b,r,o)}),m=hr(),x=f.useRef("touch"),y=()=>{o||(a.onValueChange(r),a.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 w.jsx(Yh,{scope:n,value:r,disabled:o,textId:m,isSelected:c,onItemTextChange:f.useCallback(b=>{u(h=>h||((b==null?void 0:b.textContent)??"").trim())},[]),children:w.jsx(Pn.ItemSlot,{scope:n,value:r,disabled:o,textValue:d,children:w.jsx(Pe.div,{role:"option","aria-labelledby":m,"data-highlighted":p?"":void 0,"aria-selected":c&&p,"data-state":c?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1,...i,ref:g,onFocus:ie(i.onFocus,()=>v(!0)),onBlur:ie(i.onBlur,()=>v(!1)),onClick:ie(i.onClick,()=>{x.current!=="mouse"&&y()}),onPointerUp:ie(i.onPointerUp,()=>{x.current==="mouse"&&y()}),onPointerDown:ie(i.onPointerDown,b=>{x.current=b.pointerType}),onPointerMove:ie(i.onPointerMove,b=>{var h;x.current=b.pointerType,o?(h=l.onItemLeave)==null||h.call(l):x.current==="mouse"&&b.currentTarget.focus({preventScroll:!0})}),onPointerLeave:ie(i.onPointerLeave,b=>{var h;b.currentTarget===document.activeElement&&((h=l.onItemLeave)==null||h.call(l))}),onKeyDown:ie(i.onKeyDown,b=>{var S;((S=l.searchRef)==null?void 0:S.current)!==""&&b.key===" "||(Nh.includes(b.key)&&y(),b.key===" "&&b.preventDefault())})})})})});ca.displayName=Mn;var Bt="SelectItemText",da=f.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,...s}=e,i=rt(Bt,n),a=ot(Bt,n),l=la(Bt,n),c=Lh(Bt,n),[d,u]=f.useState(null),p=le(t,y=>u(y),l.onItemTextChange,y=>{var b;return(b=a.itemTextRefCallback)==null?void 0:b.call(a,y,l.value,l.disabled)}),v=d==null?void 0:d.textContent,g=f.useMemo(()=>w.jsx("option",{value:l.value,disabled:l.disabled,children:v},l.value),[l.disabled,l.value,v]),{onNativeOptionAdd:m,onNativeOptionRemove:x}=c;return be(()=>(m(g),()=>x(g)),[m,x,g]),w.jsxs(w.Fragment,{children:[w.jsx(Pe.span,{id:l.textId,...s,ref:p}),l.isSelected&&i.valueNode&&!i.valueNodeHasChildren?Vt.createPortal(s.children,i.valueNode):null]})});da.displayName=Bt;var ua="SelectItemIndicator",fa=f.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return la(ua,n).isSelected?w.jsx(Pe.span,{"aria-hidden":!0,...r,ref:t}):null});fa.displayName=ua;var Fr="SelectScrollUpButton",pa=f.forwardRef((e,t)=>{const n=ot(Fr,e.__scopeSelect),r=zr(Fr,e.__scopeSelect),[o,s]=f.useState(!1),i=le(t,r.onScrollButtonChange);return be(()=>{if(n.viewport&&n.isPositioned){let a=function(){const c=l.scrollTop>0;s(c)};const l=n.viewport;return a(),l.addEventListener("scroll",a),()=>l.removeEventListener("scroll",a)}},[n.viewport,n.isPositioned]),o?w.jsx(ha,{...e,ref:i,onAutoScroll:()=>{const{viewport:a,selectedItem:l}=n;a&&l&&(a.scrollTop=a.scrollTop-l.offsetHeight)}}):null});pa.displayName=Fr;var Vr="SelectScrollDownButton",ma=f.forwardRef((e,t)=>{const n=ot(Vr,e.__scopeSelect),r=zr(Vr,e.__scopeSelect),[o,s]=f.useState(!1),i=le(t,r.onScrollButtonChange);return be(()=>{if(n.viewport&&n.isPositioned){let a=function(){const c=l.scrollHeight-l.clientHeight,d=Math.ceil(l.scrollTop)<c;s(d)};const l=n.viewport;return a(),l.addEventListener("scroll",a),()=>l.removeEventListener("scroll",a)}},[n.viewport,n.isPositioned]),o?w.jsx(ha,{...e,ref:i,onAutoScroll:()=>{const{viewport:a,selectedItem:l}=n;a&&l&&(a.scrollTop=a.scrollTop+l.offsetHeight)}}):null});ma.displayName=Vr;var ha=f.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...o}=e,s=ot("SelectScrollButton",n),i=f.useRef(null),a=_n(n),l=f.useCallback(()=>{i.current!==null&&(window.clearInterval(i.current),i.current=null)},[]);return f.useEffect(()=>()=>l(),[l]),be(()=>{var d;const c=a().find(u=>u.ref.current===document.activeElement);(d=c==null?void 0:c.ref.current)==null||d.scrollIntoView({block:"nearest"})},[a]),w.jsx(Pe.div,{"aria-hidden":!0,...o,ref:t,style:{flexShrink:0,...o.style},onPointerDown:ie(o.onPointerDown,()=>{i.current===null&&(i.current=window.setInterval(r,50))}),onPointerMove:ie(o.onPointerMove,()=>{var c;(c=s.onItemLeave)==null||c.call(s),i.current===null&&(i.current=window.setInterval(r,50))}),onPointerLeave:ie(o.onPointerLeave,()=>{l()})})}),qh="SelectSeparator",Xh=f.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return w.jsx(Pe.div,{"aria-hidden":!0,...r,ref:t})});Xh.displayName=qh;var Hr="SelectArrow",Kh=f.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=kn(n),s=rt(Hr,n),i=ot(Hr,n);return s.open&&i.position==="popper"?w.jsx(xh,{...o,...r,ref:t}):null});Kh.displayName=Hr;var Zh="SelectBubbleInput",ga=f.forwardRef(({__scopeSelect:e,value:t,...n},r)=>{const o=f.useRef(null),s=le(r,o),i=ui(t);return f.useEffect(()=>{const a=o.current;if(!a)return;const l=window.HTMLSelectElement.prototype,d=Object.getOwnPropertyDescriptor(l,"value").set;if(i!==t&&d){const u=new Event("change",{bubbles:!0});d.call(a,t),a.dispatchEvent(u)}},[i,t]),w.jsx(Pe.select,{...n,style:{...Is,...n.style},ref:s,defaultValue:t})});ga.displayName=Zh;function va(e){return e===""||e===void 0}function ba(e){const t=Je(e),n=f.useRef(""),r=f.useRef(0),o=f.useCallback(i=>{const a=n.current+i;t(a),function l(c){n.current=c,window.clearTimeout(r.current),c!==""&&(r.current=window.setTimeout(()=>l(""),1e3))}(a)},[t]),s=f.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return f.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,o,s]}function ya(e,t,n){const o=t.length>1&&Array.from(t).every(c=>c===t[0])?t[0]:t,s=n?e.indexOf(n):-1;let i=Jh(e,Math.max(s,0));o.length===1&&(i=i.filter(c=>c!==n));const l=i.find(c=>c.textValue.toLowerCase().startsWith(o.toLowerCase()));return l!==n?l:void 0}function Jh(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var Qh=qi,eg=Ki,tg=Ji,ng=Qi,rg=ea,og=ta,sg=sa,ig=ca,ag=da,lg=fa,cg=pa,dg=ma;function ug(e,t=[]){let n=[];function r(s,i){const a=f.createContext(i),l=n.length;n=[...n,i];const c=u=>{var y;const{scope:p,children:v,...g}=u,m=((y=p==null?void 0:p[e])==null?void 0:y[l])||a,x=f.useMemo(()=>g,Object.values(g));return w.jsx(m.Provider,{value:x,children:v})};c.displayName=s+"Provider";function d(u,p){var m;const v=((m=p==null?void 0:p[e])==null?void 0:m[l])||a,g=f.useContext(v);if(g)return g;if(i!==void 0)return i;throw new Error(`\`${u}\` must be used within \`${s}\``)}return[c,d]}const o=()=>{const s=n.map(i=>f.createContext(i));return function(a){const l=(a==null?void 0:a[e])||s;return f.useMemo(()=>({[`__scope${e}`]:{...a,[e]:l}}),[a,l])}};return o.scopeName=e,[r,fg(o,...t)]}function fg(...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 i=r.reduce((a,{useScope:l,scopeName:c})=>{const u=l(s)[`__scope${c}`];return{...a,...u}},{});return f.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}function pg(e){const t=mg(e),n=f.forwardRef((r,o)=>{const{children:s,...i}=r,a=f.Children.toArray(s),l=a.find(gg);if(l){const c=l.props.children,d=a.map(u=>u===l?f.Children.count(c)>1?f.Children.only(null):f.isValidElement(c)?c.props.children:null:u);return w.jsx(t,{...i,ref:o,children:f.isValidElement(c)?f.cloneElement(c,void 0,d):null})}return w.jsx(t,{...i,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}function mg(e){const t=f.forwardRef((n,r)=>{const{children:o,...s}=n;if(f.isValidElement(o)){const i=bg(o),a=vg(s,o.props);return o.type!==f.Fragment&&(a.ref=r?ke(r,i):i),f.cloneElement(o,a)}return f.Children.count(o)>1?f.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var hg=Symbol("radix.slottable");function gg(e){return f.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===hg}function vg(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]=(...a)=>{const l=s(...a);return o(...a),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function bg(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 yg=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Ft=yg.reduce((e,t)=>{const n=pg(`Primitive.${t}`),r=f.forwardRef((o,s)=>{const{asChild:i,...a}=o,l=i?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),w.jsx(l,{...a,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),wa=["PageUp","PageDown"],xa=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],Sa={"from-left":["Home","PageDown","ArrowDown","ArrowLeft"],"from-right":["Home","PageDown","ArrowDown","ArrowRight"],"from-bottom":["Home","PageDown","ArrowDown","ArrowLeft"],"from-top":["Home","PageDown","ArrowUp","ArrowLeft"]},_t="Slider",[Wr,wg,xg]=Rs(_t),[Ea,yv]=ug(_t,[xg]),[Sg,An]=Ea(_t),Ca=f.forwardRef((e,t)=>{const{name:n,min:r=0,max:o=100,step:s=1,orientation:i="horizontal",disabled:a=!1,minStepsBetweenThumbs:l=0,defaultValue:c=[r],value:d,onValueChange:u=()=>{},onValueCommit:p=()=>{},inverted:v=!1,form:g,...m}=e,x=f.useRef(new Set),y=f.useRef(0),h=i==="horizontal"?Eg:Cg,[S=[],E]=mr({prop:d,defaultProp:c,onChange:N=>{var O;(O=[...x.current][y.current])==null||O.focus(),u(N)}}),T=f.useRef(S);function M(N){const L=Mg(S,N);P(N,L)}function _(N){P(N,y.current)}function A(){const N=T.current[y.current];S[y.current]!==N&&p(S)}function P(N,L,{commit:O}={commit:!1}){const D=Og(s),z=Rg(Math.round((N-r)/s)*s+r,D),j=Tn(z,[r,o]);E((k=[])=>{const C=_g(k,j,L);if(Ig(C,l*s)){y.current=C.indexOf(j);const R=String(C)!==String(k);return R&&O&&p(C),R?C:k}else return k})}return w.jsx(Sg,{scope:e.__scopeSlider,name:n,disabled:a,min:r,max:o,valueIndexToChangeRef:y,thumbs:x.current,values:S,orientation:i,form:g,children:w.jsx(Wr.Provider,{scope:e.__scopeSlider,children:w.jsx(Wr.Slot,{scope:e.__scopeSlider,children:w.jsx(h,{"aria-disabled":a,"data-disabled":a?"":void 0,...m,ref:t,onPointerDown:ie(m.onPointerDown,()=>{a||(T.current=S)}),min:r,max:o,inverted:v,onSlideStart:a?void 0:M,onSlideMove:a?void 0:_,onSlideEnd:a?void 0:A,onHomeKeyDown:()=>!a&&P(r,0,{commit:!0}),onEndKeyDown:()=>!a&&P(o,S.length-1,{commit:!0}),onStepKeyDown:({event:N,direction:L})=>{if(!a){const z=wa.includes(N.key)||N.shiftKey&&xa.includes(N.key)?10:1,j=y.current,k=S[j],C=s*z*L;P(k+C,j,{commit:!0})}}})})})})});Ca.displayName=_t;var[Ta,Pa]=Ea(_t,{startEdge:"left",endEdge:"right",size:"width",direction:1}),Eg=f.forwardRef((e,t)=>{const{min:n,max:r,dir:o,inverted:s,onSlideStart:i,onSlideMove:a,onSlideEnd:l,onStepKeyDown:c,...d}=e,[u,p]=f.useState(null),v=le(t,h=>p(h)),g=f.useRef(void 0),m=Ls(o),x=m==="ltr",y=x&&!s||!x&&s;function b(h){const S=g.current||u.getBoundingClientRect(),E=[0,S.width],M=Yr(E,y?[n,r]:[r,n]);return g.current=S,M(h-S.left)}return w.jsx(Ta,{scope:e.__scopeSlider,startEdge:y?"left":"right",endEdge:y?"right":"left",direction:y?1:-1,size:"width",children:w.jsx(_a,{dir:m,"data-orientation":"horizontal",...d,ref:v,style:{...d.style,"--radix-slider-thumb-transform":"translateX(-50%)"},onSlideStart:h=>{const S=b(h.clientX);i==null||i(S)},onSlideMove:h=>{const S=b(h.clientX);a==null||a(S)},onSlideEnd:()=>{g.current=void 0,l==null||l()},onStepKeyDown:h=>{const E=Sa[y?"from-left":"from-right"].includes(h.key);c==null||c({event:h,direction:E?-1:1})}})})}),Cg=f.forwardRef((e,t)=>{const{min:n,max:r,inverted:o,onSlideStart:s,onSlideMove:i,onSlideEnd:a,onStepKeyDown:l,...c}=e,d=f.useRef(null),u=le(t,d),p=f.useRef(void 0),v=!o;function g(m){const x=p.current||d.current.getBoundingClientRect(),y=[0,x.height],h=Yr(y,v?[r,n]:[n,r]);return p.current=x,h(m-x.top)}return w.jsx(Ta,{scope:e.__scopeSlider,startEdge:v?"bottom":"top",endEdge:v?"top":"bottom",size:"height",direction:v?1:-1,children:w.jsx(_a,{"data-orientation":"vertical",...c,ref:u,style:{...c.style,"--radix-slider-thumb-transform":"translateY(50%)"},onSlideStart:m=>{const x=g(m.clientY);s==null||s(x)},onSlideMove:m=>{const x=g(m.clientY);i==null||i(x)},onSlideEnd:()=>{p.current=void 0,a==null||a()},onStepKeyDown:m=>{const y=Sa[v?"from-bottom":"from-top"].includes(m.key);l==null||l({event:m,direction:y?-1:1})}})})}),_a=f.forwardRef((e,t)=>{const{__scopeSlider:n,onSlideStart:r,onSlideMove:o,onSlideEnd:s,onHomeKeyDown:i,onEndKeyDown:a,onStepKeyDown:l,...c}=e,d=An(_t,n);return w.jsx(Ft.span,{...c,ref:t,onKeyDown:ie(e.onKeyDown,u=>{u.key==="Home"?(i(u),u.preventDefault()):u.key==="End"?(a(u),u.preventDefault()):wa.concat(xa).includes(u.key)&&(l(u),u.preventDefault())}),onPointerDown:ie(e.onPointerDown,u=>{const p=u.target;p.setPointerCapture(u.pointerId),u.preventDefault(),d.thumbs.has(p)?p.focus():r(u)}),onPointerMove:ie(e.onPointerMove,u=>{u.target.hasPointerCapture(u.pointerId)&&o(u)}),onPointerUp:ie(e.onPointerUp,u=>{const p=u.target;p.hasPointerCapture(u.pointerId)&&(p.releasePointerCapture(u.pointerId),s(u))})})}),ka="SliderTrack",Ma=f.forwardRef((e,t)=>{const{__scopeSlider:n,...r}=e,o=An(ka,n);return w.jsx(Ft.span,{"data-disabled":o.disabled?"":void 0,"data-orientation":o.orientation,...r,ref:t})});Ma.displayName=ka;var Gr="SliderRange",Aa=f.forwardRef((e,t)=>{const{__scopeSlider:n,...r}=e,o=An(Gr,n),s=Pa(Gr,n),i=f.useRef(null),a=le(t,i),l=o.values.length,c=o.values.map(p=>Oa(p,o.min,o.max)),d=l>1?Math.min(...c):0,u=100-Math.max(...c);return w.jsx(Ft.span,{"data-orientation":o.orientation,"data-disabled":o.disabled?"":void 0,...r,ref:a,style:{...e.style,[s.startEdge]:d+"%",[s.endEdge]:u+"%"}})});Aa.displayName=Gr;var Ur="SliderThumb",Na=f.forwardRef((e,t)=>{const n=wg(e.__scopeSlider),[r,o]=f.useState(null),s=le(t,a=>o(a)),i=f.useMemo(()=>r?n().findIndex(a=>a.ref.current===r):-1,[n,r]);return w.jsx(Tg,{...e,ref:s,index:i})}),Tg=f.forwardRef((e,t)=>{const{__scopeSlider:n,index:r,name:o,...s}=e,i=An(Ur,n),a=Pa(Ur,n),[l,c]=f.useState(null),d=le(t,b=>c(b)),u=l?i.form||!!l.closest("form"):!0,p=fi(l),v=i.values[r],g=v===void 0?0:Oa(v,i.min,i.max),m=kg(r,i.values.length),x=p==null?void 0:p[a.size],y=x?Ag(x,g,a.direction):0;return f.useEffect(()=>{if(l)return i.thumbs.add(l),()=>{i.thumbs.delete(l)}},[l,i.thumbs]),w.jsxs("span",{style:{transform:"var(--radix-slider-thumb-transform)",position:"absolute",[a.startEdge]:`calc(${g}% + ${y}px)`},children:[w.jsx(Wr.ItemSlot,{scope:e.__scopeSlider,children:w.jsx(Ft.span,{role:"slider","aria-label":e["aria-label"]||m,"aria-valuemin":i.min,"aria-valuenow":v,"aria-valuemax":i.max,"aria-orientation":i.orientation,"data-orientation":i.orientation,"data-disabled":i.disabled?"":void 0,tabIndex:i.disabled?void 0:0,...s,ref:d,style:v===void 0?{display:"none"}:e.style,onFocus:ie(e.onFocus,()=>{i.valueIndexToChangeRef.current=r})})}),u&&w.jsx(Ia,{name:o??(i.name?i.name+(i.values.length>1?"[]":""):void 0),form:i.form,value:v},r)]})});Na.displayName=Ur;var Pg="RadioBubbleInput",Ia=f.forwardRef(({__scopeSlider:e,value:t,...n},r)=>{const o=f.useRef(null),s=le(o,r),i=ui(t);return f.useEffect(()=>{const a=o.current;if(!a)return;const l=window.HTMLInputElement.prototype,d=Object.getOwnPropertyDescriptor(l,"value").set;if(i!==t&&d){const u=new Event("input",{bubbles:!0});d.call(a,t),a.dispatchEvent(u)}},[i,t]),w.jsx(Ft.input,{style:{display:"none"},...n,ref:s,defaultValue:t})});Ia.displayName=Pg;function _g(e=[],t,n){const r=[...e];return r[n]=t,r.sort((o,s)=>o-s)}function Oa(e,t,n){const s=100/(n-t)*(e-t);return Tn(s,[0,100])}function kg(e,t){return t>2?`Value ${e+1} of ${t}`:t===2?["Minimum","Maximum"][e]:void 0}function Mg(e,t){if(e.length===1)return 0;const n=e.map(o=>Math.abs(o-t)),r=Math.min(...n);return n.indexOf(r)}function Ag(e,t,n){const r=e/2,s=Yr([0,50],[0,r]);return(r-s(t)*n)*n}function Ng(e){return e.slice(0,-1).map((t,n)=>e[n+1]-t)}function Ig(e,t){if(t>0){const n=Ng(e);return Math.min(...n)>=t}return!0}function Yr(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}function Og(e){return(String(e).split(".")[1]||"").length}function Rg(e,t){const n=Math.pow(10,t);return Math.round(e*n)/n}var Ra=Ca,La=Ma,ja=Aa,Da=Na;function Lg({...e}){return w.jsx(Qh,{"data-slot":"select",...e})}function jg({...e}){return w.jsx(tg,{"data-slot":"select-value",...e})}function Dg({className:e,size:t="default",children:n,...r}){return w.jsxs(eg,{"data-slot":"select-trigger","data-size":t,className:X("border-input data-[placeholder]:text-muted-foreground [&_svg:not([class*='text-'])]:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 dark:hover:bg-input/50 flex w-fit items-center justify-between gap-2 rounded-md border bg-transparent px-3 py-2 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...r,children:[n,w.jsx(ng,{asChild:!0,children:w.jsx(Rn,{className:"size-4 opacity-50"})})]})}function $g({className:e,children:t,position:n="item-aligned",align:r="center",...o}){return w.jsx(rg,{children:w.jsxs(og,{"data-slot":"select-content",className:X("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 relative z-50 max-h-(--radix-select-content-available-height) min-w-[8rem] origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border shadow-md",n==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:n,align:r,...o,children:[w.jsx(Bg,{}),w.jsx(sg,{className:X("p-1",n==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1"),children:t}),w.jsx(Fg,{})]})})}function zg({className:e,children:t,...n}){return w.jsxs(ig,{"data-slot":"select-item",className:X("focus:bg-accent focus:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",e),...n,children:[w.jsx("span",{"data-slot":"select-item-indicator",className:"absolute right-2 flex size-3.5 items-center justify-center",children:w.jsx(lg,{children:w.jsx(uo,{className:"size-4"})})}),w.jsx(ag,{children:t})]})}function Bg({className:e,...t}){return w.jsx(cg,{"data-slot":"select-scroll-up-button",className:X("flex cursor-default items-center justify-center py-1",e),...t,children:w.jsx(dl,{className:"size-4"})})}function Fg({className:e,...t}){return w.jsx(dg,{"data-slot":"select-scroll-down-button",className:X("flex cursor-default items-center justify-center py-1",e),...t,children:w.jsx(Rn,{className:"size-4"})})}const $a=$.createContext(void 0),ft=()=>{const e=$.useContext($a);if(!e)throw new Error("useColorPicker must be used within a ColorPickerProvider");return e},Vg=({value:e,defaultValue:t="#000000",onChange:n,className:r,...o})=>{const s=ce(e),i=ce(t),[a,l]=$.useState(s.hue()||i.hue()||0),[c,d]=$.useState(s.saturationl()||i.saturationl()||100),[u,p]=$.useState(s.lightness()||i.lightness()||50),[v,g]=$.useState(s.alpha()*100||i.alpha()*100),[m,x]=$.useState("hex");return $.useEffect(()=>{if(e){const y=ce.rgb(e).rgb().object();l(y.r),d(y.g),p(y.b),g(y.a)}},[e]),$.useEffect(()=>{if(n){const b=ce.hsl(a,c,u).alpha(v/100).rgb().array();n([b[0],b[1],b[2],v/100])}},[a,c,u,v,n]),w.jsx($a.Provider,{value:{hue:a,saturation:c,lightness:u,alpha:v,mode:m,setHue:l,setSaturation:d,setLightness:p,setAlpha:g,setMode:x},children:w.jsx("div",{className:X("flex size-full flex-col gap-4",r),...o})})},za=$.memo(({className:e,...t})=>{const n=$.useRef(null),[r,o]=$.useState(!1),[s,i]=$.useState(0),[a,l]=$.useState(0),{hue:c,setSaturation:d,setLightness:u}=ft(),p=$.useMemo(()=>`linear-gradient(0deg, rgba(0,0,0,1), rgba(0,0,0,0)),
129
134
  linear-gradient(90deg, rgba(255,255,255,1), rgba(255,255,255,0)),
130
- hsl(${u}, 100%, 50%)`,[u]),h=V.useCallback(v=>{if(!(r&&n.current))return;const p=n.current.getBoundingClientRect(),b=Math.max(0,Math.min(1,(v.clientX-p.left)/p.width)),y=Math.max(0,Math.min(1,(v.clientY-p.top)/p.height));i(b),l(y),f(b*100);const w=(b<.01?100:50+50*(1-b))*(1-y);d(w)},[r,f,d]);return V.useEffect(()=>{const v=()=>o(!1);return r&&(window.addEventListener("pointermove",h),window.addEventListener("pointerup",v)),()=>{window.removeEventListener("pointermove",h),window.removeEventListener("pointerup",v)}},[r,h]),g.jsx("div",{className:Q("relative size-full cursor-crosshair rounded",e),onPointerDown:v=>{v.preventDefault(),o(!0),h(v.nativeEvent)},ref:n,style:{background:m},...t,children:g.jsx("div",{className:"-translate-x-1/2 -translate-y-1/2 pointer-events-none absolute h-4 w-4 rounded-full border-2 border-white",style:{left:`${s*100}%`,top:`${a*100}%`,boxShadow:"0 0 0 1px rgba(0,0,0,0.5)"}})})});Zs.displayName="ColorPickerSelection";const Wf=({className:e,...t})=>{const{hue:n,setHue:r}=We();return g.jsxs(Gs,{className:Q("relative flex h-4 w-full touch-none",e),max:360,onValueChange:([o])=>r(o),step:1,value:[n],...t,children:[g.jsx(Ks,{className:"relative my-0.5 h-3 w-full grow rounded-full bg-[linear-gradient(90deg,#FF0000,#FFFF00,#00FF00,#00FFFF,#0000FF,#FF00FF,#FF0000)]",children:g.jsx(Ys,{className:"absolute h-full"})}),g.jsx(qs,{className:"block h-4 w-4 rounded-full border border-primary/50 bg-background shadow transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50"})]})},Hf=({className:e,...t})=>{const{alpha:n,setAlpha:r}=We();return g.jsxs(Gs,{className:Q("relative flex h-4 w-full touch-none",e),max:100,onValueChange:([o])=>r(o),step:1,value:[n],...t,children:[g.jsxs(Ks,{className:"relative my-0.5 h-3 w-full grow rounded-full",style:{background:'url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAMUlEQVQ4T2NkYGAQYcAP3uCTZhw1gGGYhAGBZIA/nYDCgBDAm9BGDWAAJyRCgLaBCAAgXwixzAS0pgAAAABJRU5ErkJggg==") left center'},children:[g.jsx("div",{className:"absolute inset-0 rounded-full bg-gradient-to-r from-transparent to-black/50"}),g.jsx(Ys,{className:"absolute h-full rounded-full bg-transparent"})]}),g.jsx(qs,{className:"block h-4 w-4 rounded-full border border-primary/50 bg-background shadow transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50"})]})},Uf=({className:e,...t})=>{const{setHue:n,setSaturation:r,setLightness:o,setAlpha:s}=We(),i=async()=>{try{const l=await new EyeDropper().open(),u=re(l.sRGBHex),[f,d,m]=u.hsl().array();n(f),r(d),o(m),s(100)}catch(a){console.error("EyeDropper failed:",a)}};return g.jsx(If,{className:Q("shrink-0 text-muted-foreground",e),onClick:i,size:"icon",variant:"outline",type:"button",...t,children:g.jsx(ea,{size:16})})},Gf=["hex","rgb","css","hsl"],Kf=({className:e,...t})=>{const{mode:n,setMode:r}=We();return g.jsxs(jf,{onValueChange:r,value:n,children:[g.jsx($f,{className:"h-8 w-20 shrink-0 text-xs",...t,children:g.jsx(Lf,{placeholder:"Mode"})}),g.jsx(Df,{children:Gf.map(o=>g.jsx(Ff,{className:"text-xs",value:o,children:o.toUpperCase()},o))})]})},Xn=({className:e,...t})=>g.jsxs("div",{className:"relative",children:[g.jsx(vt,{readOnly:!0,type:"text",...t,className:Q("h-8 w-[3.25rem] rounded-l-none bg-secondary px-2 text-xs shadow-none",e)}),g.jsx("span",{className:"-translate-y-1/2 absolute top-1/2 right-2 text-muted-foreground text-xs",children:"%"})]}),Yf=({className:e,...t})=>{const{hue:n,saturation:r,lightness:o,alpha:s,mode:i}=We(),a=re.hsl(n,r,o,s/100);if(i==="hex"){const l=a.hex();return g.jsxs("div",{className:Q("-space-x-px relative flex w-full items-center rounded-md shadow-sm",e),...t,children:[g.jsx(vt,{className:"h-8 rounded-r-none bg-secondary px-2 text-xs shadow-none",readOnly:!0,type:"text",value:l}),g.jsx(Xn,{value:s})]})}if(i==="rgb"){const l=a.rgb().array().map(u=>Math.round(u));return g.jsxs("div",{className:Q("-space-x-px flex items-center rounded-md shadow-sm",e),...t,children:[l.map((u,f)=>g.jsx(vt,{className:Q("h-8 rounded-r-none bg-secondary px-2 text-xs shadow-none",f&&"rounded-l-none",e),readOnly:!0,type:"text",value:u},f)),g.jsx(Xn,{value:s})]})}if(i==="css"){const l=a.rgb().array().map(u=>Math.round(u));return g.jsx("div",{className:Q("w-full rounded-md shadow-sm",e),...t,children:g.jsx(vt,{className:"h-8 w-full bg-secondary px-2 text-xs shadow-none",readOnly:!0,type:"text",value:`rgba(${l.join(", ")}, ${s}%)`,...t})})}if(i==="hsl"){const l=a.hsl().array().map(u=>Math.round(u));return g.jsxs("div",{className:Q("-space-x-px flex items-center rounded-md shadow-sm",e),...t,children:[l.map((u,f)=>g.jsx(vt,{className:Q("h-8 rounded-r-none bg-secondary px-2 text-xs shadow-none",f&&"rounded-l-none",e),readOnly:!0,type:"text",value:u},f)),g.jsx(Xn,{value:s})]})}return null};K.Avatar=Sa,K.AvatarFallback=_a,K.AvatarImage=Ca,K.Breadcrumb=ta,K.BreadcrumbEllipsis=aa,K.BreadcrumbItem=ra,K.BreadcrumbLink=oa,K.BreadcrumbList=na,K.BreadcrumbPage=sa,K.BreadcrumbSeparator=ia,K.Button=Wi,K.ColorPicker=zf,K.ColorPickerAlpha=Hf,K.ColorPickerEyeDropper=Uf,K.ColorPickerFormat=Yf,K.ColorPickerHue=Wf,K.ColorPickerOutput=Kf,K.ColorPickerSelection=Zs,K.Flex=Jt,K.Grid=rr,K.Input=Hi,K.Paper=ni,K.Typography=or,K.buttonVariants=Pr,K.useColorPicker=We,Object.defineProperty(K,Symbol.toStringTag,{value:"Module"})});
135
+ hsl(${c}, 100%, 50%)`,[c]),v=$.useCallback(g=>{if(!(r&&n.current))return;const m=n.current.getBoundingClientRect(),x=Math.max(0,Math.min(1,(g.clientX-m.left)/m.width)),y=Math.max(0,Math.min(1,(g.clientY-m.top)/m.height));i(x),l(y),d(x*100);const h=(x<.01?100:50+50*(1-x))*(1-y);u(h)},[r,d,u]);return $.useEffect(()=>{const g=()=>o(!1);return r&&(window.addEventListener("pointermove",v),window.addEventListener("pointerup",g)),()=>{window.removeEventListener("pointermove",v),window.removeEventListener("pointerup",g)}},[r,v]),w.jsx("div",{className:X("relative size-full cursor-crosshair rounded",e),onPointerDown:g=>{g.preventDefault(),o(!0),v(g.nativeEvent)},ref:n,style:{background:p},...t,children:w.jsx("div",{className:"-translate-x-1/2 -translate-y-1/2 pointer-events-none absolute h-4 w-4 rounded-full border-2 border-white",style:{left:`${s*100}%`,top:`${a*100}%`,boxShadow:"0 0 0 1px rgba(0,0,0,0.5)"}})})});za.displayName="ColorPickerSelection";const Hg=({className:e,...t})=>{const{hue:n,setHue:r}=ft();return w.jsxs(Ra,{className:X("relative flex h-4 w-full touch-none",e),max:360,onValueChange:([o])=>r(o),step:1,value:[n],...t,children:[w.jsx(La,{className:"relative my-0.5 h-3 w-full grow rounded-full bg-[linear-gradient(90deg,#FF0000,#FFFF00,#00FF00,#00FFFF,#0000FF,#FF00FF,#FF0000)]",children:w.jsx(ja,{className:"absolute h-full"})}),w.jsx(Da,{className:"block h-4 w-4 rounded-full border border-primary/50 bg-background shadow transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50"})]})},Wg=({className:e,...t})=>{const{alpha:n,setAlpha:r}=ft();return w.jsxs(Ra,{className:X("relative flex h-4 w-full touch-none",e),max:100,onValueChange:([o])=>r(o),step:1,value:[n],...t,children:[w.jsxs(La,{className:"relative my-0.5 h-3 w-full grow rounded-full",style:{background:'url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAMUlEQVQ4T2NkYGAQYcAP3uCTZhw1gGGYhAGBZIA/nYDCgBDAm9BGDWAAJyRCgLaBCAAgXwixzAS0pgAAAABJRU5ErkJggg==") left center'},children:[w.jsx("div",{className:"absolute inset-0 rounded-full bg-gradient-to-r from-transparent to-black/50"}),w.jsx(ja,{className:"absolute h-full rounded-full bg-transparent"})]}),w.jsx(Da,{className:"block h-4 w-4 rounded-full border border-primary/50 bg-background shadow transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50"})]})},Gg=({className:e,...t})=>{const{setHue:n,setSaturation:r,setLightness:o,setAlpha:s}=ft(),i=async()=>{try{const l=await new EyeDropper().open(),c=ce(l.sRGBHex),[d,u,p]=c.hsl().array();n(d),r(u),o(p),s(100)}catch(a){console.error("EyeDropper failed:",a)}};return w.jsx(Do,{className:X("shrink-0 text-muted-foreground",e),color:"secondary",onClick:i,size:"icon",type:"button",...t,children:w.jsx(fl,{size:16})})},Ug=["hex","rgb","css","hsl"],Yg=({className:e,...t})=>{const{mode:n,setMode:r}=ft();return w.jsxs(Lg,{onValueChange:r,value:n,children:[w.jsx(Dg,{className:"h-8 w-20 shrink-0 text-xs",...t,children:w.jsx(jg,{placeholder:"Mode"})}),w.jsx($g,{children:Ug.map(o=>w.jsx(zg,{className:"text-xs",value:o,children:o.toUpperCase()},o))})]})},qr=({className:e,...t})=>w.jsxs("div",{className:"relative",children:[w.jsx(mt,{readOnly:!0,type:"text",...t,className:X("h-8 w-[3.25rem] rounded-l-none bg-secondary px-2 text-xs shadow-none",e)}),w.jsx("span",{className:"-translate-y-1/2 absolute top-1/2 right-2 text-muted-foreground text-xs",children:"%"})]}),qg=({className:e,...t})=>{const{hue:n,saturation:r,lightness:o,alpha:s,mode:i}=ft(),a=ce.hsl(n,r,o,s/100);if(i==="hex"){const l=a.hex();return w.jsxs("div",{className:X("-space-x-px relative flex w-full items-center rounded-md shadow-sm",e),...t,children:[w.jsx(mt,{className:"h-8 rounded-r-none bg-secondary px-2 text-xs shadow-none",readOnly:!0,type:"text",value:l}),w.jsx(qr,{value:s})]})}if(i==="rgb"){const l=a.rgb().array().map(c=>Math.round(c));return w.jsxs("div",{className:X("-space-x-px flex items-center rounded-md shadow-sm",e),...t,children:[l.map((c,d)=>w.jsx(mt,{className:X("h-8 rounded-r-none bg-secondary px-2 text-xs shadow-none",d&&"rounded-l-none",e),readOnly:!0,type:"text",value:c},d)),w.jsx(qr,{value:s})]})}if(i==="css"){const l=a.rgb().array().map(c=>Math.round(c));return w.jsx("div",{className:X("w-full rounded-md shadow-sm",e),...t,children:w.jsx(mt,{className:"h-8 w-full bg-secondary px-2 text-xs shadow-none",readOnly:!0,type:"text",value:`rgba(${l.join(", ")}, ${s}%)`,...t})})}if(i==="hsl"){const l=a.hsl().array().map(c=>Math.round(c));return w.jsxs("div",{className:X("-space-x-px flex items-center rounded-md shadow-sm",e),...t,children:[l.map((c,d)=>w.jsx(mt,{className:X("h-8 rounded-r-none bg-secondary px-2 text-xs shadow-none",d&&"rounded-l-none",e),readOnly:!0,type:"text",value:c},d)),w.jsx(qr,{value:s})]})}return null},Xg="opacity-0 pointer-events-none",Kg="transition-all duration-300",Zg="backdrop-blur-xl bg-opacity-95",Jg="bg-(--card)/95 border border-(--border) backdrop-blur-xl";W.Avatar=Eu,W.AvatarFallback=Tu,W.AvatarImage=Cu,W.BUTTON_COLOR_OPTIONS=sc,W.BUTTON_VARIANT_OPTIONS=oc,W.Breadcrumb=Oo,W.BreadcrumbEllipsis=Lo,W.BreadcrumbItem=qt,W.BreadcrumbLink=Xt,W.BreadcrumbList=Ro,W.BreadcrumbPage=Kt,W.BreadcrumbSeparator=Zt,W.Breadcrumbs=rc,W.Button=Do,W.ColorPicker=Vg,W.ColorPickerAlpha=Wg,W.ColorPickerEyeDropper=Gg,W.ColorPickerFormat=qg,W.ColorPickerHue=Hg,W.ColorPickerOutput=Yg,W.ColorPickerSelection=za,W.Dropdown=fc,W.EditableTypography=Ve,W.FAST_TRANSITION_CLASS=Kg,W.Flex=to,W.GLASS_CLASS=Zg,W.GLASS_SURFACE_CLASS=Jg,W.Grid=no,W.HIDDEN_BY_SCROLL_CLASS=Xg,W.IMAGE_MASK_OPTIONS=hc,W.Image=Fn,W.Input=mt,W.MediumHorizontalSlide=ms,W.MediumVerticalSlide=gs,W.Paper=On,W.Slider=iu,W.StoreSlide=hs,W.TAG_TYPE_OPTIONS=Sc,W.TYPOGRAPHY_COLOR_OPTIONS=Ha,W.TYPOGRAPHY_OPTIONS=Wa,W.Tag=Jt,W.Timer=Ho,W.Toggle=pc,W.Typography=Se,W.buildSliderSlides=lu,W.courseSlideData=or,W.getDefaultColorByTypography=In,W.getDefaultElementTagByTypography=oo,W.getImageMaskUrlByType=Bo,W.getPlaceholderTypographyClassName=Ht,W.getTagsByVariant=ys,W.getTypographyClassName=Ye,W.mediumHorizontalSlideWidthClassName=bs,W.mediumVerticalSlideWidthClassName=vs,W.sliderSlideComponentTypeOptions=au,W.useColorPicker=ft,Object.defineProperty(W,Symbol.toStringTag,{value:"Module"})});