@shohojdhara/atomix 0.5.7 → 0.5.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/atomix.umd.js +2 -0
- package/dist/atomix.umd.js.map +1 -0
- package/dist/atomix.umd.min.js +1 -0
- package/dist/index.esm.js +20 -7
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +20 -7
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/dist/theme.js +7 -3
- package/dist/theme.js.map +1 -1
- package/package.json +3 -3
- package/src/lib/config/loader.ts +27 -6
- package/src/lib/theme/config/configLoader.ts +7 -2
- package/src/lib/theme/config/loader.ts +7 -6
package/dist/index.min.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";import a,{useState as r,useRef as i,useCallback as o,useEffect as s,memo as l,forwardRef as c,useId as d,useMemo as u,Children as h,isValidElement as m,cloneElement as p,createContext as g,useContext as f,useImperativeHandle as b,Component as v}from"react";import*as S from"@phosphor-icons/react";import{Pause as y,Play as E,SkipBack as A,SkipForward as x,SpeakerX as N,SpeakerHigh as T,Gear as _,Download as C,Share as L,ArrowsIn as I,ArrowsOut as w}from"@phosphor-icons/react";import{createPortal as O}from"react-dom";var R="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function k(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var M=function(e){try{return!!e()}catch(t){return!0}},D=!M((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})),P=D,B=Function.prototype,z=B.call,U=P&&B.bind.bind(z,z),F=P?U:function(e){return function(){return z.apply(e,arguments)}},G=F({}.isPrototypeOf),V=function(e){return e&&e.Math===Math&&e},H=V("object"==typeof globalThis&&globalThis)||V("object"==typeof window&&window)||V("object"==typeof self&&self)||V("object"==typeof R&&R)||V("object"==typeof R&&R)||function(){return this}()||Function("return this")(),$=D,Y=Function.prototype,K=Y.apply,W=Y.call,j="object"==typeof Reflect&&Reflect.apply||($?W.bind(K):function(){return W.apply(K,arguments)}),q=F,Q=q({}.toString),X=q("".slice),Z=function(e){return X(Q(e),8,-1)},J=Z,ee=F,te=function(e){if("Function"===J(e))return ee(e)},ne="object"==typeof document&&document.all,ae=void 0===ne&&void 0!==ne?function(e){return"function"==typeof e||e===ne}:function(e){return"function"==typeof e},re={},ie=!M((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})),oe=D,se=Function.prototype.call,le=oe?se.bind(se):function(){return se.apply(se,arguments)},ce={},de={}.propertyIsEnumerable,ue=Object.getOwnPropertyDescriptor,he=ue&&!de.call({1:2},1);ce.f=he?function(e){var t=ue(this,e);return!!t&&t.enumerable}:de;var me,pe,ge=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},fe=M,be=Z,ve=Object,Se=F("".split),ye=fe((function(){return!ve("z").propertyIsEnumerable(0)}))?function(e){return"String"===be(e)?Se(e,""):ve(e)}:ve,Ee=function(e){return null==e},Ae=Ee,xe=TypeError,Ne=function(e){if(Ae(e))throw new xe("Can't call method on "+e);return e},Te=ye,_e=Ne,Ce=function(e){return Te(_e(e))},Le=ae,Ie=function(e){return"object"==typeof e?null!==e:Le(e)},we={},Oe=we,Re=H,ke=ae,Me=function(e){return ke(e)?e:void 0},De=H.navigator,Pe=De&&De.userAgent,Be=Pe?Pe+"":"",ze=H,Ue=Be,Fe=ze.process,Ge=ze.Deno,Ve=Fe&&Fe.versions||Ge&&Ge.version,He=Ve&&Ve.v8;He&&(pe=(me=He.split("."))[0]>0&&4>me[0]?1:+(me[0]+me[1])),!pe&&Ue&&((me=Ue.match(/Edge\/(\d+)/))&&74>me[1]||(me=Ue.match(/Chrome\/(\d+)/))&&(pe=+me[1]));var $e=pe,Ye=$e,Ke=M,We=H.String,je=!!Object.getOwnPropertySymbols&&!Ke((function(){var e=Symbol("symbol detection");return!We(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Ye&&41>Ye})),qe=je&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Qe=ae,Xe=G,Ze=Object,Je=qe?function(e){return"symbol"==typeof e}:function(e){var t=function(e,t){return 2>arguments.length?Me(Oe[e])||Me(Re[e]):Oe[e]&&Oe[e][t]||Re[e]&&Re[e][t]}("Symbol");return Qe(t)&&Xe(t.prototype,Ze(e))},et=String,tt=ae,nt=TypeError,at=function(e){if(tt(e))return e;throw new nt(function(e){try{return et(e)}catch(t){return"Object"}}(e)+" is not a function")},rt=at,it=Ee,ot=le,st=ae,lt=Ie,ct=TypeError,dt={exports:{}},ut=H,ht=Object.defineProperty,mt=H,pt="__core-js_shared__",gt=dt.exports=mt[pt]||function(e,t){try{ht(ut,e,{value:t,configurable:!0,writable:!0})}catch(n){ut[e]=t}return t}(pt,{});(gt.versions||(gt.versions=[])).push({version:"3.43.0",mode:"pure",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.43.0/LICENSE",source:"https://github.com/zloirock/core-js"});var ft=dt.exports,bt=Ne,vt=Object,St=function(e){return vt(bt(e))},yt=St,Et=F({}.hasOwnProperty),At=Object.hasOwn||function(e,t){return Et(yt(e),t)},xt=F,Nt=0,Tt=Math.random(),_t=xt(1.1.toString),Ct=At,Lt=je,It=qe,wt=H.Symbol,Ot=ft["wks"]||(ft.wks={}),Rt=It?wt.for||wt:wt&&wt.withoutSetter||function(e){return"Symbol("+(void 0===e?"":e)+")_"+_t(++Nt+Tt,36)},kt=function(e){return Ct(Ot,e)||(Ot[e]=Lt&&Ct(wt,e)?wt[e]:Rt("Symbol."+e)),Ot[e]},Mt=le,Dt=Ie,Pt=Je,Bt=TypeError,zt=kt("toPrimitive"),Ut=Je,Ft=function(e){var t=function(e,t){if(!Dt(e)||Pt(e))return e;var n,a,r=(a=e[zt],it(a)?void 0:rt(a));if(r){if(void 0===t&&(t="default"),n=Mt(r,e,t),!Dt(n)||Pt(n))return n;throw new Bt("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,a;if("string"===t&&st(n=e.toString)&&!lt(a=ot(n,e)))return a;if(st(n=e.valueOf)&&!lt(a=ot(n,e)))return a;if("string"!==t&&st(n=e.toString)&&!lt(a=ot(n,e)))return a;throw new ct("Can't convert object to primitive value")}(e,t)}(e,"string");return Ut(t)?t:t+""},Gt=Ie,Vt=H.document,Ht=Gt(Vt)&&Gt(Vt.createElement),$t=!ie&&!M((function(){return 7!==Object.defineProperty(Ht?Vt.createElement("div"):{},"a",{get:function(){return 7}}).a})),Yt=ie,Kt=le,Wt=ce,jt=ge,qt=Ce,Qt=Ft,Xt=At,Zt=$t,Jt=Object.getOwnPropertyDescriptor;re.f=Yt?Jt:function(e,t){if(e=qt(e),t=Qt(t),Zt)try{return Jt(e,t)}catch(n){}if(Xt(e,t))return jt(!Kt(Wt.f,e,t),e[t])};var en=M,tn=ae,nn=/#|\.prototype\./,an=function(e,t){var n=on[rn(e)];return n===ln||n!==sn&&(tn(t)?en(t):!!t)},rn=an.normalize=function(e){return(e+"").replace(nn,".").toLowerCase()},on=an.data={},sn=an.NATIVE="N",ln=an.POLYFILL="P",cn=an,dn=at,un=D,hn=te(te.bind),mn={},pn=ie&&M((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),gn=Ie,fn=String,bn=TypeError,vn=ie,Sn=$t,yn=pn,En=function(e){if(gn(e))return e;throw new bn(fn(e)+" is not an object")},An=Ft,xn=TypeError,Nn=Object.defineProperty,Tn=Object.getOwnPropertyDescriptor,_n="enumerable",Cn="configurable",Ln="writable";mn.f=vn?yn?function(e,t,n){if(En(e),t=An(t),En(n),"function"==typeof e&&"prototype"===t&&"value"in n&&Ln in n&&!n[Ln]){var a=Tn(e,t);a&&a[Ln]&&(e[t]=n.value,n={configurable:Cn in n?n[Cn]:a[Cn],enumerable:_n in n?n[_n]:a[_n],writable:!1})}return Nn(e,t,n)}:Nn:function(e,t,n){if(En(e),t=An(t),En(n),Sn)try{return Nn(e,t,n)}catch(a){}if("get"in n||"set"in n)throw new xn("Accessors not supported");return"value"in n&&(e[t]=n.value),e};var In=mn,wn=ge,On=ie?function(e,t,n){return In.f(e,t,wn(1,n))}:function(e,t,n){return e[t]=n,e},Rn=H,kn=j,Mn=te,Dn=ae,Pn=re.f,Bn=cn,zn=we,Un=function(e,t){return dn(e),void 0===t?e:un?hn(e,t):function(){return e.apply(t,arguments)}},Fn=On,Gn=At,Vn=function(e){var t=function(n,a,r){if(this instanceof t){switch(arguments.length){case 0:return new e;case 1:return new e(n);case 2:return new e(n,a)}return new e(n,a,r)}return kn(e,this,arguments)};return t.prototype=e.prototype,t},Hn=function(e,t){var n,a,r,i,o,s,l,c,d,u=e.target,h=e.global,m=e.stat,p=e.proto,g=h?Rn:m?Rn[u]:Rn[u]&&Rn[u].prototype,f=h?zn:zn[u]||Fn(zn,u,{})[u],b=f.prototype;for(i in t)a=!(n=Bn(h?i:u+(m?".":"#")+i,e.forced))&&g&&Gn(g,i),s=f[i],a&&(l=e.dontCallGetSet?(d=Pn(g,i))&&d.value:g[i]),o=a&&l?l:t[i],(n||p||typeof s!=typeof o)&&(c=e.bind&&a?Un(o,Rn):e.wrap&&a?Vn(o):p&&Dn(o)?Mn(o):o,(e.sham||o&&o.sham||s&&s.sham)&&Fn(c,"sham",!0),Fn(f,i,c),p&&(Gn(zn,r=u+"Prototype")||Fn(zn,r,{}),Fn(zn[r],i,o),e.real&&b&&(n||!b[i])&&Fn(b,i,o)))},$n=Math.ceil,Yn=Math.floor,Kn=Math.trunc||function(e){var t=+e;return(t>0?Yn:$n)(t)},Wn=function(e){var t=+e;return t!=t||0===t?0:Kn(t)},jn=Wn,qn=Math.max,Qn=Math.min,Xn=Wn,Zn=Math.min,Jn=function(e){return t=e.length,(n=Xn(t))>0?Zn(n,9007199254740991):0;var t,n},ea=Ce,ta=Jn,na=function(e){return function(t,n,a){var r=ea(t),i=ta(r);if(0===i)return!e&&-1;var o,s=function(e,t){var n=jn(e);return 0>n?qn(n+t,0):Qn(n,t)}(a,i);if(e&&n!=n){for(;i>s;)if((o=r[s++])!=o)return!0}else for(;i>s;s++)if((e||s in r)&&r[s]===n)return e||s||0;return!e&&-1}},aa=[na(!0),na(!1)][0];Hn({target:"Array",proto:!0,forced:M((function(){return!1}))},{includes:function(e){return aa(this,e,arguments.length>1?arguments[1]:void 0)}});var ra=H,ia=we,oa=function(e,t){var n=ia[e+"Prototype"],a=n&&n[t];if(a)return a;var r=ra[e],i=r&&r.prototype;return i&&i[t]},sa=oa("Array","includes"),la=Ie,ca=Z,da=kt("match"),ua=TypeError,ha={};ha[kt("toStringTag")]="z";var ma=ha+""=="[object z]",pa=ae,ga=Z,fa=kt("toStringTag"),ba=Object,va="Arguments"===ga(function(){return arguments}()),Sa=ma?ga:function(e){var t,n,a;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(n){}}(t=ba(e),fa))?n:va?ga(t):"Object"===(a=ga(t))&&pa(t.callee)?"Arguments":a},ya=String,Ea=kt("match"),Aa=Hn,xa=Ne,Na=function(e){if("Symbol"===Sa(e))throw new TypeError("Cannot convert a Symbol value to a string");return ya(e)},Ta=F("".indexOf);Aa({target:"String",proto:!0,forced:!function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[Ea]=!1,"/./"[e](t)}catch(a){}}return!1}("includes")},{includes:function(e){return!!~Ta(Na(xa(this)),Na(function(e){if(function(e){var t;return la(e)&&(void 0!==(t=e[da])?!!t:"RegExp"===ca(e))}(e))throw new ua("The method doesn't accept regular expressions");return e}(e)),arguments.length>1?arguments[1]:void 0)}});var _a=oa("String","includes"),Ca=G,La=sa,Ia=_a,wa=Array.prototype,Oa=String.prototype,Ra=k((function(e){var t=e.includes;return e===wa||Ca(wa,e)&&t===wa.includes?La:"string"==typeof e||e===Oa||Ca(Oa,e)&&t===Oa.includes?Ia:t}));const ka=["primary","secondary","success","info","warning","error","light","dark"],Ma=["sm","md","lg"],Da={COMPONENT:"c-",UTILITY:"u-",LAYOUT:"l-",OBJECT:"o-"},Pa={BUTTON_PREFIX:"btn",ICON_ELEMENT:"icon",LABEL_ELEMENT:"label",SPINNER_ELEMENT:"spinner"},Ba={BASE_CLASS:"c-typedbutton",VARIANT_PREFIX:"c-typedbutton--",CLASSES:{BASE:"c-typedbutton",DISABLED:"c-typedbutton--disabled",GLASS:"c-typedbutton--glass"}},za={BASE_CLASS:"c-btn",ICON_CLASS:"c-btn__icon",LABEL_CLASS:"c-btn__label",SPINNER_CLASS:"c-btn__spinner",VARIANT_PREFIX:"c-btn--",CLASSES:{BASE:"c-btn",LOADING:"c-btn--loading",FULL_WIDTH:"c-btn--full-width",BLOCK:"c-btn--block",ACTIVE:"c-btn--active",SELECTED:"c-btn--selected"}},Ua={BASE_CLASS:"c-btn-group",CLASSES:{BASE:"c-btn-group"}},Fa={BASE_CLASS:"c-callout",CONTENT_CLASS:"c-callout__content",ICON_CLASS:"c-callout__icon",MESSAGE_CLASS:"c-callout__message",TITLE_CLASS:"c-callout__title",TEXT_CLASS:"c-callout__text",ACTIONS_CLASS:"c-callout__actions",CLOSE_BTN_CLASS:"c-callout__close-btn",VARIANT_PREFIX:"c-callout--",CLASSES:{COMPACT:"c-callout--compact",TOAST:"c-callout--toast",HIDE:"is-hide"}},Ga={SELECTORS:{ACCORDION:".c-accordion",HEADER:".c-accordion__header",PANEL:".c-accordion__panel",BODY:".c-accordion__body"},CLASSES:{IS_OPEN:"is-open",IS_ANIMATING:"is-animating",IS_DISABLED:"is-disabled"},ATTRIBUTES:{ARIA_EXPANDED:"aria-expanded",ARIA_CONTROLS:"aria-controls",ARIA_HIDDEN:"aria-hidden",ROLE:"role"},CSS_VARS:{PANEL_HEIGHT:"--panel-height"}},Va={BASE_CLASS:"c-badge",ICON_CLASS:"c-badge__icon",VARIANT_PREFIX:"c-badge--",SIZE_PREFIX:"c-badge--"},Ha={BASE_CLASS:"c-list",ITEM_CLASS:"c-list__item",VARIANT_PREFIX:"c-list--",SIZE_PREFIX:"c-list--",CLASSES:{ORDERED:"c-list--ordered",INLINE:"c-list--inline"}},$a={BASE_CLASS:"c-list-group",ITEM_CLASS:"c-list-group__item",VARIANT_PREFIX:"c-list-group--",SIZE_PREFIX:"c-list-group--"},Ya={SELECTORS:{BREADCRUMB:".c-breadcrumb",ITEM:".c-breadcrumb__item",LINK:".c-breadcrumb__link"},CLASSES:{BASE:"c-breadcrumb",ITEM:"c-breadcrumb__item",LINK:"c-breadcrumb__link",ACTIVE:"is-active"},DEFAULTS:{DIVIDER:"›"}},Ka={SELECTORS:{COUNTDOWN:".c-countdown",TIME:".c-countdown__time",TIME_COUNT:".c-countdown__time-count",TIME_LABEL:".c-countdown__time-label",SEPARATOR:".c-countdown__separator"},CLASSES:{BASE:"c-countdown",FOCUSED:"c-countdown--focused"},DEFAULTS:{SEPARATOR:":",SHOW:["days","hours","minutes","seconds"]}},Wa={SELECTORS:{HERO:".c-hero",CONTAINER:".c-hero__container",GRID:".c-hero__grid",CONTENT:".c-hero__content",SUBTITLE:".c-hero__subtitle",TITLE:".c-hero__title",TEXT:".c-hero__text",ACTIONS:".c-hero__actions",IMAGE:".c-hero__image",BG:".c-hero__bg",BG_IMAGE:".c-hero__bg-image",OVERLAY:".c-hero__overlay",IMAGE_WRAPPER:".c-hero__image-wrapper",SLIDER:".c-hero__slider",SLIDER_ITEM:".c-hero__slider-item"},CLASSES:{CENTER:"c-hero--center",RIGHT:"c-hero--right",LEFT:"c-hero--left",FULL_VH:"c-hero--full-vh",SLIDER_FADE:"c-hero__slider--fade",SLIDER_SLIDE:"c-hero__slider--slide",SLIDER_CUSTOM:"c-hero__slider--custom",SLIDER_ITEM_ACTIVE:"c-hero__slider-item--active"}},ja={SELECTORS:{TOOLTIP:".js-atomix-tooltip",TRIGGER:".js-atomix-tooltip-trigger",CONTENT:".js-atomix-tooltip-content",ARROW:".c-tooltip__arrow"},CLASSES:{IS_ACTIVE:"is-active",TOP:"c-tooltip--top",BOTTOM:"c-tooltip--bottom",LEFT:"c-tooltip--left",RIGHT:"c-tooltip--right",TOP_LEFT:"c-tooltip--top-left",TOP_RIGHT:"c-tooltip--top-right",BOTTOM_LEFT:"c-tooltip--bottom-left",BOTTOM_RIGHT:"c-tooltip--bottom-right"},ATTRIBUTES:{POSITION:"data-tooltip-position",TRIGGER:"data-tooltip-trigger",CONTENT_ID:"data-tooltip-id"},DEFAULTS:{TRIGGER:"hover",POSITION:"top",OFFSET:10,DELAY:200}},qa={SELECTORS:{POPOVER:".js-atomix-popover",TRIGGER:".js-atomix-popover-trigger",CONTENT:".js-atomix-popover-content",CONTENT_INNER:".c-popover__content-inner",ARROW:".c-popover__arrow"},CLASSES:{IS_OPEN:"is-open",TOP:"c-popover--top",BOTTOM:"c-popover--bottom",LEFT:"c-popover--left",RIGHT:"c-popover--right",AUTO:"c-popover--auto"},ATTRIBUTES:{POSITION:"data-popover-position",TRIGGER:"data-popover-trigger",CONTENT_ID:"data-popover-id"},DEFAULTS:{TRIGGER:"click",POSITION:"top",OFFSET:12,DELAY:0}},Qa={SELECTORS:{TOGGLE:".c-toggle"},CLASSES:{IS_ON:"is-on"}},Xa={SELECTORS:{TAB:".js-atomix-tab",NAV_ITEMS:".c-tabs__nav-item",NAV_BTN:".c-tabs__nav-btn",PANELS:".c-tabs__panel",PANEL_BODIES:".c-tabs__panel-body"},CLASSES:{ACTIVE:"is-active"},DEFAULTS:{ACTIVE_INDEX:0}},Za={SELECTORS:{STEPS:".c-steps",ITEM:".c-steps__item",LINE:".c-steps__line",CONTENT:".c-steps__content",NUMBER:".c-steps__number",TEXT:".c-steps__text"},CLASSES:{ACTIVE:"is-active",VERTICAL:"c-steps--vertical",COMPLETED:"is-completed"}},Ja={SELECTORS:{TESTIMONIAL:".c-testimonial",QUOTE:".c-testimonial__quote",AUTHOR:".c-testimonial__author",AUTHOR_AVATAR:".c-testimonial__author-avatar",AUTHOR_INFO:".c-testimonial__info",AUTHOR_NAME:".c-testimonial__author-name",AUTHOR_ROLE:".c-testimonial__author-role"},CLASSES:{SMALL:"c-testimonial--sm",LARGE:"c-testimonial--lg"}},er={SELECTORS:{SPINNER:".c-spinner"},CLASSES:{PRIMARY:"c-spinner--primary",SECONDARY:"c-spinner--secondary",SUCCESS:"c-spinner--success",INFO:"c-spinner--info",WARNING:"c-spinner--warning",DANGER:"c-spinner--danger",LIGHT:"c-spinner--light",DARK:"c-spinner--dark",SMALL:"c-spinner--sm",LARGE:"c-spinner--lg"},VISUALLY_HIDDEN:"u-visually-hidden"},tr={SELECTORS:{SECTION_INTRO:".c-sectionintro",LABEL:".c-sectionintro__label",TITLE:".c-sectionintro__title",TEXT:".c-sectionintro__text",ACTIONS:".c-sectionintro__actions"},CLASSES:{CENTER:"c-sectionintro--center",LARGE:"c-sectionintro--lg",SMALL:"c-sectionintro--sm"}},nr={SELECTORS:{RIVER:".c-river",CONTAINER:".c-river__container",ROW:".c-river__row",CONTENT:".c-river__content",CONTENT_COL:".c-river__content-col",CONTENT_COL_TITLE:".c-river__content-col--title",CONTENT_COL_TEXT:".c-river__content-col--text",TITLE:".c-river__title",TEXT:".c-river__text",ACTIONS:".c-river__actions",VISUAL:".c-river__visual",IMAGE_WRAPPER:".c-river__image-wrapper",IMAGE:".c-river__image",BG:".c-river__bg",BG_IMAGE:".c-river__bg-image",OVERLAY:".c-river__overlay"},CLASSES:{CENTER:"c-river--center",BREAKOUT:"c-river--breakout",REVERSE:"c-river--reverse"},ATTRIBUTES:{CONTENT_WIDTH:"--river-content-width"}},ar={SELECTORS:{UPLOAD:".c-upload",INNER:".c-upload__inner",ICON:".c-upload__icon",TITLE:".c-upload__title",TEXT:".c-upload__text",BUTTON:".c-upload__btn",HELPER_TEXT:".c-upload__helper-text",LOADER:".c-upload__loader",LOADER_STATUS:".c-upload__loader-status",LOADER_TITLE:".c-upload__loader-title",LOADER_PROGRESS:".c-upload__loader-progress",LOADER_PAR:".c-upload__loader-par",LOADER_TIME:".c-upload__loader-time",LOADER_CONTROL:".c-upload__loader-control",LOADER_BAR:".c-upload__loader-bar",LOADER_CLOSE:".c-upload__loader-close"},CLASSES:{DISABLED:"c-upload--disabled",ERROR:"c-upload--error",SUCCESS:"c-upload--success",LOADING:"c-upload--loading",DRAGGING:"c-upload--dragging"},ATTRIBUTES:{PERCENTAGE:"--upload-loader-percentage"}},rr={SELECTORS:{NAVBAR:".c-navbar",CONTAINER:".c-navbar__container",BRAND:".c-navbar__brand",COLLAPSE:".c-navbar__collapse",TOGGLER:".c-navbar__toggler",TOGGLER_ICON:".c-navbar__toggler-icon"},CLASSES:{BASE:"c-navbar",CONTAINER:"c-navbar__container",BRAND:"c-navbar__brand",COLLAPSE:"c-navbar__collapse",TOGGLER:"c-navbar__toggler",TOGGLER_ICON:"c-navbar__toggler-icon",FIXED:"c-navbar--fixed",FIXED_BOTTOM:"c-navbar--fixed-bottom",COLLAPSIBLE:"c-navbar--collapsible",EXPANDED:"is-expanded",BACKDROP:"c-navbar__backdrop"},ATTRIBUTES:{NAVBAR:"data-navbar",COLLAPSIBLE:"data-collapsible",EXPANDED:"data-expanded",POSITION:"data-position",BACKDROP:"data-backdrop",AUTO_CLOSE:"data-auto-close",KEYBOARD:"data-keyboard"},DEFAULTS:{POSITION:"static",COLLAPSIBLE:!0,EXPANDED:!1,BACKDROP:!1,AUTO_CLOSE:!0,KEYBOARD:!0,ARIA_LABEL:"Main navigation"}},ir={SELECTORS:{NAV:".c-nav",ITEM:".c-nav__item",LINK:".c-nav__link",DROPDOWN:".c-nav__item--dropdown",DROPDOWN_MENU:".c-nav__dropdown-menu",MEGA_MENU:".c-nav__mega-menu",ICON:".c-nav__icon"},CLASSES:{END:"c-nav--end",CENTER:"c-nav--center",ACTIVE:"is-active",DISABLED:"is-disabled"}},or={SELECTORS:{SIDE_MENU:".c-side-menu",WRAPPER:".c-side-menu__wrapper",INNER:".c-side-menu__inner",TITLE:".c-side-menu__title",TOGGLER:".c-side-menu__toggler",TOGGLER_ICON:".c-side-menu__toggler-icon",LIST:".c-side-menu__list",ITEM:".c-side-menu__item",LINK:".c-side-menu__link",LINK_ICON:".c-side-menu__link-icon",LINK_TEXT:".c-side-menu__link-text"},CLASSES:{BASE:"c-side-menu",WRAPPER:"c-side-menu__wrapper",INNER:"c-side-menu__inner",TITLE:"c-side-menu__title",TOGGLER:"c-side-menu__toggler",TOGGLER_ICON:"c-side-menu__toggler-icon",LIST:"c-side-menu__list",ITEM:"c-side-menu__item",LINK:"c-side-menu__link",LINK_ICON:"c-side-menu__link-icon",LINK_TEXT:"c-side-menu__link-text",IS_OPEN:"is-open",ACTIVE:"is-active",DISABLED:"is-disabled"},ATTRIBUTES:{SIDE_MENU:"data-side-menu",COLLAPSIBLE:"data-collapsible",OPEN:"data-open",TITLE:"data-title"},DEFAULTS:{COLLAPSIBLE:!0,OPEN:!1,TOGGLE_ICON:"▶"}},sr={SELECTORS:{RATING:".c-rating",STAR:".c-rating__star",STAR_FULL:".c-rating__star-full",STAR_HALF:".c-rating__star-half"},CLASSES:{FULL:"c-rating__star--full",HALF:"c-rating__star--half",SMALL:"c-rating--sm",LARGE:"c-rating--lg"},ATTRIBUTES:{READONLY:"data-readonly",VALUE:"data-value"}},lr={SELECTORS:{PANEL:".c-edge-panel",BACKDROP:".c-edge-panel__backdrop",CONTAINER:".c-edge-panel__container",HEADER:".c-edge-panel__header",BODY:".c-edge-panel__body",CLOSE:".c-edge-panel__close"},CLASSES:{BASE:"c-edge-panel",START:"c-edge-panel--start",END:"c-edge-panel--end",TOP:"c-edge-panel--top",BOTTOM:"c-edge-panel--bottom",IS_OPEN:"is-open"},TRANSFORM_VALUES:{start:"translateX(-100%)",end:"translateX(100%)",top:"translateY(-100%)",bottom:"translateY(100%)"},ANIMATION_DURATION:300},cr={base:"c-data-table",container:"c-data-table-container",tableWrapper:"c-data-table-wrapper",header:"c-data-table__header",headerCell:"c-data-table__header-cell",headerContent:"c-data-table__header-content",headerActions:"c-data-table__header-actions",sortable:"c-data-table__header-cell--sortable",sortIcon:"c-data-table__sort-icon",row:"c-data-table__row",rowSelected:"c-data-table__row--selected",cell:"c-data-table__cell",selectionCell:"c-data-table__cell--selection",loadingCell:"c-data-table__loading-cell",loadingIndicator:"c-data-table__loading-indicator",emptyCell:"c-data-table__empty-cell",toolbar:"c-data-table-toolbar",toolbarLeft:"c-data-table-toolbar__left",toolbarRight:"c-data-table-toolbar__right",search:"c-data-table-search",searchInput:"c-data-table-search__input",columnFilter:"c-data-table__column-filter",pagination:"c-data-table__pagination-container",striped:"c-data-table--striped",bordered:"c-data-table--bordered",dense:"c-data-table--dense",loading:"c-data-table--loading",stickyHeader:"c-data-table--sticky-header",dragging:"c-data-table__header-cell--dragging",dragOver:"c-data-table__header-cell--drag-over",resizeHandle:"c-data-table__resize-handle",open:"is-open"},dr={TABLE:".c-data-table",HEADER:".c-data-table__header",HEADER_CELL:".c-data-table__header-cell",ROW:".c-data-table__row",CELL:".c-data-table__cell",PAGINATION:".c-data-table__pagination",PAGINATION_BUTTON:".c-data-table__pagination-button",SEARCH_INPUT:".c-data-table__search-input"},ur={currentPage:1,totalPages:1,siblingCount:1,showFirstLastButtons:!0,showPrevNextButtons:!0,size:"md"},hr={SELECTORS:{TODO:".c-todo",TITLE:".c-todo__title",LIST:".c-todo__list",ITEM:".c-todo__item",ITEM_CONTENT:".c-todo__item-content",ITEM_TEXT:".c-todo__item-text",ITEM_ACTIONS:".c-todo__item-actions",CHECKBOX:".c-todo__checkbox",DELETE_BUTTON:".c-todo__delete-btn",FORM:".c-todo__form",INPUT:".c-todo__input",ADD_BUTTON:".c-todo__add-btn"},CLASSES:{BASE:"c-todo",ITEM:"c-todo__item",COMPLETED:"c-todo__item--completed",SMALL:"c-todo--sm",LARGE:"c-todo--lg"}},mr={SELECTORS:{FORM:".c-form",GROUP:".c-form-group",LABEL:".c-form-group__label",HELPER:".c-form-group__helper",FIELD:".c-form-group__field",REQUIRED:".c-form-group__required"},CLASSES:{BASE:"c-form",DISABLED:"c-form--disabled"}},pr={SELECTORS:{GROUP:".c-form-group",LABEL:".c-form-group__label",FIELD:".c-form-group__field",HELPER:".c-form-group__helper",REQUIRED:".c-form-group__required"},CLASSES:{BASE:"c-form-group",SMALL:"c-form-group--sm",LARGE:"c-form-group--lg",INVALID:"c-form-group--invalid",VALID:"c-form-group--valid",DISABLED:"c-form-group--disabled"}},gr={SELECTORS:{INPUT:".c-input"},CLASSES:{BASE:"c-input",SMALL:"c-input--sm",LARGE:"c-input--lg",INVALID:"is-invalid",VALID:"is-valid",DISABLED:"is-disabled",FULL_WIDTH:"c-input--full-width",PREFIX_ICON:"c-input--prefix-icon",SUFFIX_ICON:"c-input--suffix-icon",CLEARABLE:"c-input--clearable",WITH_COUNTER:"c-input--with-counter",PASSWORD_TOGGLE:"c-input--password-toggle"},ELEMENTS:{WRAPPER:"c-input-wrapper",PREFIX:"c-input__prefix",SUFFIX:"c-input__suffix",CLEAR_BUTTON:"c-input__clear",PASSWORD_TOGGLE:"c-input__password-toggle",COUNTER:"c-input__counter",ERROR_MESSAGE:"c-input__error",HELPER_TEXT:"c-input__helper"}},fr={SELECTORS:{RADIO:".c-radio",INPUT:".c-radio__input",LABEL:".c-radio__label"},CLASSES:{BASE:"c-radio",INVALID:"is-error",VALID:"is-valid",DISABLED:"is-disabled"}},br={SELECTORS:{CARD:".c-card",HEADER:".c-card__header",BODY:".c-card__body",IMAGE:".c-card__image",TITLE:".c-card__title",TEXT:".c-card__text",ACTIONS:".c-card__actions",ICON:".c-card__icon",FOOTER:".c-card__footer"},CLASSES:{BASE:"c-card",SM:"c-card--sm",MD:"c-card--md",LG:"c-card--lg",ROW:"c-card--row",FLAT:"c-card--flat",FILLED:"c-card--filled",OUTLINED:"c-card--outlined",GHOST:"c-card--ghost",ELEVATED:"c-card--elevated",ELEVATION_NONE:"c-card--elevation-none",ELEVATION_SM:"c-card--elevation-sm",ELEVATION_MD:"c-card--elevation-md",ELEVATION_LG:"c-card--elevation-lg",ELEVATION_XL:"c-card--elevation-xl",ACTIVE:"is-active",DISABLED:"c-card--disabled",LOADING:"c-card--loading",SELECTED:"c-card--selected",INTERACTIVE:"c-card--interactive",FLIPPED:"is-flipped",FOCUSED:"is-focused",CLICKABLE:"is-clickable",GLASS:"c-card--glass"},DEFAULTS:{HOVER:!0,SIZE:"md",VARIANT:"primary",APPEARANCE:"filled",ELEVATION:"none"}},vr={SELECTORS:{SELECT:".c-select",SELECTED:".c-select__selected",SELECT_BODY:".c-select__body",SELECT_PANEL:".c-select__panel",SELECT_ITEMS:".c-select__items",SELECT_ITEM:".c-select__item",ITEM_LABEL:".c-select__item-label",ITEM_INPUT:".c-select__item-input",OPTION:"option"},CLASSES:{BASE:"c-select",SELECTED:"c-select__selected",SELECT_BODY:"c-select__body",SELECT_PANEL:"c-select__panel",SELECT_ITEMS:"c-select__items",SELECT_ITEM:"c-select__item",TOGGLE_ICON:"c-select__toggle-icon",ICON_CARET:"icon-atomix-caret-down",SMALL:"c-select--sm",LARGE:"c-select--lg",INVALID:"is-invalid",VALID:"is-valid",DISABLED:"is-disabled",IS_OPEN:"is-open"}},Sr={SELECTORS:{TEXTAREA:".c-textarea"},CLASSES:{BASE:"c-input c-input--textarea",SMALL:"c-input--sm",LARGE:"c-input--lg",INVALID:"is-invalid",VALID:"is-valid",DISABLED:"is-disabled"}},yr={SELECTORS:{AVATAR:".c-avatar",IMAGE:".c-avatar__image",INITIALS:".c-avatar__initials",ICON:".c-avatar__icon"},CLASSES:{BASE:"c-avatar",XS:"c-avatar--xs",SM:"c-avatar--sm",MD:"c-avatar--md",LG:"c-avatar--lg",XL:"c-avatar--xl",CIRCLE:"c-avatar--circle"}},Er={SELECTORS:{GROUP:".c-avatar-group",MORE:".c-avatar-group__more"},CLASSES:{BASE:"c-avatar-group",STACKED:"c-avatar-group--stacked",MORE:"c-avatar-group__more"}},Ar={SELECTORS:{MODAL:".c-modal",OPEN_BUTTON:".js-modal-open",CLOSE_BUTTONS:".js-modal-close",DIALOG:".c-modal__dialog",BACKDROP:".c-modal__backdrop"},CLASSES:{IS_OPEN:"is-open"},DEFAULT_OPTIONS:{openELm:".js-modal-open",closeELms:".js-modal-close",modalDialogELm:".c-modal__dialog",backdropELm:".c-modal__backdrop",backdrop:!0,keyboard:!0}},xr={SELECTORS:{MESSAGES:".c-messages",BODY:".c-messages__body",CONTENT:".c-messages__content",AVATAR:".c-messages__avatar",ITEMS:".c-messages__items",TEXT:".c-messages__text",FILE:".c-messages__file",IMAGE:".c-messages__image",FORM:".c-messages__form",INPUT:".c-messages__input"},CLASSES:{BASE:"c-messages",BODY:"c-messages__body",CONTENT:"c-messages__content",CONTENT_SELF:"c-messages__content--self",AVATAR:"c-messages__avatar",ITEMS:"c-messages__items",NAME:"c-messages__name",TEXT:"c-messages__text",TIME:"c-messages__time",FILE:"c-messages__file",FILE_ICON:"c-messages__file-icon",FILE_DETAILS:"c-messages__file-details",FILE_NAME:"c-messages__file-name",FILE_SIZE:"c-messages__file-size",IMAGE:"c-messages__image",FORM:"c-messages__form",INPUT_GROUP:"c-messages__input-group",INPUT:"c-messages__input",OPTIONS:"c-messages__options",OPTION:"c-messages__option c-btn",OPTION_ICON:"c-messages__option-icon",SUBMIT:"c-messages__submit"}},Nr={SELECTORS:{DROPDOWN:".c-dropdown",TOGGLE:".c-dropdown__toggle",MENU:".c-dropdown__menu",MENU_WRAPPER:".c-dropdown__menu-wrapper",MENU_INNER:".c-dropdown__menu-inner",MENU_ITEM:".c-dropdown__menu-item",DIVIDER:".c-dropdown__divider",HEADER:".c-dropdown__header"},CLASSES:{IS_OPEN:"is-open",IS_ACTIVE:"is-active",IS_DISABLED:"is-disabled"},DEFAULTS:{PLACEMENT:"bottom-start",TRIGGER:"click",OFFSET:4,MIN_WIDTH:180,ANIMATION_DURATION:"0.25s",ANIMATION_TIMING:"cubic-bezier(0.16, 1, 0.3, 1)"}},Tr={SELECTORS:{PROGRESS:".c-progress",BAR:".c-progress__bar"},CLASSES:{BASE:"c-progress",BAR:"c-progress__bar",SM:"c-progress--sm",MD:"c-progress--md",LG:"c-progress--lg"},ATTRIBUTES:{ARIA_VALUEMIN:"aria-valuemin",ARIA_VALUEMAX:"aria-valuemax",ARIA_VALUENOW:"aria-valuenow",ARIA_LABEL:"aria-label"},CSS_VARS:{PERCENTAGE:"--atomix-progress-percentage"},DEFAULTS:{ARIA_LABEL:"Progress bar"}},_r={SELECTORS:{DATEPICKER:".c-datepicker",INPUT:".c-datepicker__input",CALENDAR:".c-datepicker__calendar",DAY:".c-datepicker__day",MONTH:".c-datepicker__month",YEAR:".c-datepicker__year",HEADER:".c-datepicker__header",BODY:".c-datepicker__body",FOOTER:".c-datepicker__footer",WEEKDAYS:".c-datepicker__weekdays",TODAY_BUTTON:".c-datepicker__today-button",CLEAR_BUTTON:".c-datepicker__clear-button",CLOSE_BUTTON:".c-datepicker__close-button",NAV_BUTTON:".c-datepicker__nav-button",VIEW_SWITCH:".c-datepicker__view-switch"},CLASSES:{IS_OPEN:"is-open",IS_DISABLED:"is-disabled",IS_SELECTED:"is-selected",IS_TODAY:"is-today",INLINE:"c-datepicker--inline"},ATTRIBUTES:{FORMAT:"data-format",MIN_DATE:"data-min-date",MAX_DATE:"data-max-date",INLINE:"data-inline",PLACEMENT:"data-placement",CLEARABLE:"data-clearable",SHOW_TODAY:"data-show-today-button",SHOW_WEEK_NUMBERS:"data-show-week-numbers"},DEFAULTS:{FORMAT:"MM/dd/yyyy",PLACEMENT:"bottom-start",CLEARABLE:!0,SHOW_TODAY_BUTTON:!0,SHOW_WEEK_NUMBERS:!1,INLINE:!1}},Cr={SELECTORS:{VIDEO_PLAYER:".c-video-player",VIDEO:".c-video-player__video",CONTROLS:".c-video-player__controls",PROGRESS:".c-video-player__progress",VOLUME:".c-video-player__volume",SETTINGS:".c-video-player__settings"},CLASSES:{BASE:"c-video-player",VIDEO:"c-video-player__video",YOUTUBE:"c-video-player--youtube",LOADING:"c-video-player__loading",SPINNER:"c-video-player__spinner",CONTROLS:"c-video-player__controls",CONTROLS_VISIBLE:"c-video-player__controls--visible",PROGRESS_CONTAINER:"c-video-player__progress-container",PROGRESS_BAR:"c-video-player__progress-bar",PROGRESS_BUFFERED:"c-video-player__progress-buffered",PROGRESS_PLAYED:"c-video-player__progress-played",PROGRESS_THUMB:"c-video-player__progress-thumb",CONTROLS_ROW:"c-video-player__controls-row",CONTROLS_LEFT:"c-video-player__controls-left",CONTROLS_RIGHT:"c-video-player__controls-right",CONTROL_BUTTON:"c-video-player__control-button",VOLUME_CONTAINER:"c-video-player__volume-container",VOLUME_SLIDER:"c-video-player__volume-slider",VOLUME_BAR:"c-video-player__volume-bar",VOLUME_FILL:"c-video-player__volume-fill",TIME_DISPLAY:"c-video-player__time-display",SETTINGS_CONTAINER:"c-video-player__settings-container",SETTINGS_MENU:"c-video-player__settings-menu",SETTINGS_TABS:"c-video-player__settings-tabs",SETTINGS_TAB:"c-video-player__settings-tab",SETTINGS_TAB_ACTIVE:"c-video-player__settings-tab--active",SETTINGS_CONTENT:"c-video-player__settings-content",SETTINGS_OPTIONS:"c-video-player__settings-options",SETTINGS_OPTION:"c-video-player__settings-option",SETTINGS_OPTION_ACTIVE:"c-video-player__settings-option--active",AMBIENT:"c-video-player--ambient",AMBIENT_CANVAS:"c-video-player__ambient-canvas",GLASS:"c-video-player--glass",GLASS_OVERLAY:"c-video-player__glass-overlay",GLASS_CONTENT:"c-video-player__glass-content"},DEFAULTS:{CONTROLS_TIMEOUT:3e3,VOLUME:1,PLAYBACK_RATE:1,ASPECT_RATIO:"16:9"}},Lr={SELECTOR:".c-photo-viewer",CLASS:"c-photo-viewer",DEFAULTS:{startIndex:0,zoomLevel:1,fullscreen:!1}},Ir={classes:{container:"c-slider",containerModifierClass:"c-slider--",wrapper:"c-slider__wrapper",slide:"c-slider__slide",slideActive:"c-slider__slide--active",slidePrev:"c-slider__slide--prev",slideNext:"c-slider__slide--next",slideDuplicate:"c-slider__slide--duplicate",slideVisible:"c-slider__slide--visible",pagination:"c-slider__pagination",paginationBullet:"c-slider__pagination-bullet",paginationBulletActive:"c-slider__pagination-bullet--active",navigation:"c-slider__navigation",navigationPrev:"c-slider__navigation-prev",navigationNext:"c-slider__navigation-next",navigationDisabled:"c-slider__navigation--disabled",scrollbar:"c-slider__scrollbar",scrollbarDrag:"c-slider__scrollbar-drag",thumbs:"c-slider__thumbs",thumbsWrapper:"c-slider__thumbs-wrapper",thumbsSlide:"c-slider__thumbs-slide",thumbsSlideActive:"c-slider__thumbs-slide--active",zoomContainer:"c-slider__zoom-container",lazyPreloader:"c-slider__lazy-preloader"},defaults:{slidesToShow:1,slidesToScroll:1,spaceBetween:0,centeredSlides:!1,loop:!1,initialSlide:0,direction:"horizontal",speed:300,easing:"ease-out",allowTouchMove:!0,threshold:5,mousewheel:!1,keyboard:!1,grabCursor:!1,freeMode:!1,watchSlidesProgress:!1,watchOverflow:!0,resistanceRatio:.85,preventClicks:!0,preventClicksPropagation:!0,simulateTouch:!0,touchRatio:1,touchAngle:45,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,touchMoveStopPropagation:!0,touchStartPreventDefault:!0,touchReleaseOnEdges:!1,resistance:!0,passiveListeners:!0},breakpoints:{sm:576,md:768,lg:992,xl:1200,xxl:1400},events:{init:"slider:init",destroy:"slider:destroy",slideChange:"slider:slideChange",slideChangeTransitionStart:"slider:slideChangeTransitionStart",slideChangeTransitionEnd:"slider:slideChangeTransitionEnd",touchStart:"slider:touchStart",touchMove:"slider:touchMove",touchEnd:"slider:touchEnd",reachBeginning:"slider:reachBeginning",reachEnd:"slider:reachEnd",progress:"slider:progress",autoplayStart:"slider:autoplayStart",autoplayStop:"slider:autoplayStop",beforeResize:"slider:beforeResize",resize:"slider:resize"}},wr=Ir,Or={BASE_CLASS:"c-chart",ROOT_CLASS:"c-chart",HEADER_CLASS:"c-chart__header",HEADER_CONTENT_CLASS:"c-chart__header-content",TITLE_CLASS:"c-chart__title",SUBTITLE_CLASS:"c-chart__subtitle",TOOLBAR_CLASS:"c-chart__toolbar",ACTION_CLASS:"c-chart__action",EXPORT_GROUP_CLASS:"c-chart__export-group",EXPORT_DROPDOWN_CLASS:"c-chart__export-dropdown",EXPORT_OPTION_CLASS:"c-chart__export-option",SETTINGS_MENU_CLASS:"c-chart__settings-menu",TOOLBAR_GROUP_CLASS:"c-chart__toolbar-group",TOOLBAR_SEPARATOR_CLASS:"c-chart__toolbar-separator",TOOLBAR_LABEL_CLASS:"c-chart__toolbar-label",CONTENT_CLASS:"c-chart__content",CANVAS_CLASS:"c-chart__canvas",LEGEND_CLASS:"c-chart__legend",LEGEND_ITEM_CLASS:"c-chart__legend-item",LEGEND_LABEL_CLASS:"c-chart__legend-label",LEGEND_COLOR_CLASS:"c-chart__legend-color",TOOLTIP_CLASS:"c-chart__tooltip",TOOLTIP_TITLE_CLASS:"c-chart__tooltip-title",TOOLTIP_CONTENT_CLASS:"c-chart__tooltip-content",TOOLTIP_ITEM_CLASS:"c-chart__tooltip-item",TOOLTIP_LABEL_CLASS:"c-chart__tooltip-label",TOOLTIP_VALUE_CLASS:"c-chart__tooltip-value",AXIS_CLASS:"c-chart__axis",AXIS_LABEL_CLASS:"c-chart__axis-label",GRID_CLASS:"c-chart__grid",DATA_POINT_CLASS:"c-chart__data-point",CHART_SVG_CLASS:"c-chart__svg",LOADING_CLASS:"c-chart__loading",LOADING_SPINNER_CLASS:"c-chart__loading-spinner",LOADING_TEXT_CLASS:"c-chart__loading-text",ERROR_CLASS:"c-chart__error",ERROR_ICON_CLASS:"c-chart__error-icon",ERROR_CONTENT_CLASS:"c-chart__error-content",ERROR_MESSAGE_CLASS:"c-chart__error-message",ERROR_DETAILS_CLASS:"c-chart__error-details",EMPTY_CLASS:"c-chart__empty",EMPTY_ICON_CLASS:"c-chart__empty-icon",EMPTY_MESSAGE_CLASS:"c-chart__empty-message",EMPTY_DETAILS_CLASS:"c-chart__empty-details",DEFAULT_WIDTH:800,DEFAULT_HEIGHT:400,PIE_RADIUS_RATIO:.8,DEFAULT_COLORS:["var(--atomix-primary)","var(--atomix-secondary)","var(--atomix-success)","var(--atomix-info)","var(--atomix-warning)","var(--atomix-error)","var(--atomix-primary-5)","var(--atomix-primary-7)","var(--atomix-primary-3)","var(--atomix-gray-6)","var(--atomix-gray-8)","var(--atomix-gray-4)"],TYPE_PREFIX:"c-chart--",SIZE_PREFIX:"c-chart--",VARIANT_PREFIX:"c-chart--",LOADING_STATE_CLASS:"c-chart--loading",ERROR_STATE_CLASS:"c-chart--error",CLASSES:{LINE:"c-chart--line",AREA:"c-chart--area",BAR:"c-chart--bar",HORIZONTAL_BAR:"c-chart--horizontal-bar",PIE:"c-chart--pie",DONUT:"c-chart--donut",DOUGHNUT:"c-chart--doughnut",SCATTER:"c-chart--scatter",RADAR:"c-chart--radar",BUBBLE:"c-chart--bubble",CANDLESTICK:"c-chart--candlestick",GAUGE:"c-chart--gauge",FUNNEL:"c-chart--funnel",WATERFALL:"c-chart--waterfall",HEATMAP:"c-chart--heatmap",TREEMAP:"c-chart--treemap",SM:"c-chart--sm",MD:"c-chart--md",LG:"c-chart--lg",XL:"c-chart--xl",FULL:"c-chart--full",PRIMARY:"c-chart--primary",SECONDARY:"c-chart--secondary",SUCCESS:"c-chart--success",ERROR:"c-chart--error",WARNING:"c-chart--warning",INFO:"c-chart--info",LOADING:"c-chart--loading",INTERACTIVE:"c-chart--interactive",DISABLED:"c-chart--disabled",FULLSCREEN:"c-chart--fullscreen",MINIMIZED:"c-chart--minimized",ADVANCED:"c-chart--advanced",TOOLBAR_SM:"c-chart__toolbar--sm",TOOLBAR_MD:"c-chart__toolbar--md",TOOLBAR_LG:"c-chart__toolbar--lg",TOOLBAR_TOP:"c-chart__toolbar--top",TOOLBAR_BOTTOM:"c-chart__toolbar--bottom",TOOLBAR_LEFT:"c-chart__toolbar--left",TOOLBAR_RIGHT:"c-chart__toolbar--right",ACTION_ACTIVE:"c-chart__action--active",ACTION_DISABLED:"c-chart__action--disabled",ACTION_PRIMARY:"c-chart__action--primary",ACTION_SECONDARY:"c-chart__action--secondary",ACTION_SUCCESS:"c-chart__action--success",ACTION_INFO:"c-chart__action--info",ACTION_WARNING:"c-chart__action--warning",ACTION_ERROR:"c-chart__action--error"},TOOLBAR:{SIZES:["sm","md","lg"],POSITIONS:["top","bottom","left","right"],ACTION_VARIANTS:["primary","secondary","success","info","warning","error"]}},Rr={BASE_CLASS:"c-code-snippet",CONTAINER_CLASS:"c-code-snippet__container",HEADER_CLASS:"c-code-snippet__header",LANGUAGE_CLASS:"c-code-snippet__language",ACTIONS_CLASS:"c-code-snippet__actions",ACTION_CLASS:"c-code-snippet__action",CONTENT_CLASS:"c-code-snippet__content",CODE_CLASS:"c-code-snippet__content__code",LINE_NUMBER_CLASS:"c-code-snippet__content__line-number",COPY_FEEDBACK_CLASS:"c-code-snippet__copy-feedback",MODIFIERS:{FULLSCREEN:"c-code-snippet__container--fullscreen",WRAP:"c-code-snippet__content--wrap",LIGHT:"c-code-snippet__container--light",DARK:"c-code-snippet__container--dark"},ACTION_STATES:{ACTIVE:"c-code-snippet__action--active",DISABLED:"c-code-snippet__action--disabled"},COPY_FEEDBACK_STATES:{VISIBLE:"c-code-snippet__copy-feedback--visible"},THEMES:{LIGHT:"light",DARK:"dark",AUTO:"auto"},DEFAULTS:{SHOW_LINE_NUMBERS:!0,WRAP_LINES:!1,ENABLE_FULLSCREEN:!0,ENABLE_COPY:!0,SHOW_TOOLBAR:!0,THEME:"light"},ARIA_LABELS:{COPY:"Copy code to clipboard",WRAP_LINES:"Toggle line wrapping",FULLSCREEN:"Toggle fullscreen mode",LANGUAGE:"Code language"}},kr={BASE_CLASS:"o-block",SPACING_PREFIX:"o-block--",CLASSES:{SPACING_XS:"o-block--xs",SPACING_SM:"o-block--sm",SPACING_MD:"o-block--md",SPACING_LG:"o-block--lg",SPACING_XL:"o-block--xl",SPACING_NONE:"o-block--no-spacing",FULL_WIDTH:"o-block--full-width",BG_PRIMARY:"o-block--primary",BG_SECONDARY:"o-block--secondary",BG_TERTIARY:"o-block--tertiary",BG_INVERT:"o-block--invert",BG_BRAND:"o-block--brand",BG_ERROR:"o-block--error",BG_SUCCESS:"o-block--success",BG_WARNING:"o-block--warning",BG_INFO:"o-block--info",BG_LIGHT:"o-block--light",BG_DARK:"o-block--dark"},SPACING:{SIZES:["xs","sm","md","lg","xl","none"],DEFAULT:"md"}},Mr={SELECTORS:{FOOTER:".c-footer",CONTAINER:".c-footer__container",SECTIONS:".c-footer__sections",BRAND:".c-footer__brand",BRAND_LOGO:".c-footer__brand-logo",BRAND_NAME:".c-footer__brand-name",BRAND_DESCRIPTION:".c-footer__brand-description",SECTION:".c-footer__section",SECTION_HEADER:".c-footer__section-header",SECTION_TITLE:".c-footer__section-title",SECTION_CONTENT:".c-footer__section-content",SECTION_TOGGLE:".c-footer__section-toggle",LINK:".c-footer__link",SOCIAL:".c-footer__social",SOCIAL_LINK:".c-footer__social-link",NEWSLETTER:".c-footer__newsletter",NEWSLETTER_FORM:".c-footer__newsletter-form",NEWSLETTER_INPUT:".c-footer__newsletter-input",NEWSLETTER_BUTTON:".c-footer__newsletter-button",BOTTOM:".c-footer__bottom",COPYRIGHT:".c-footer__copyright",BACK_TO_TOP:".c-footer__back-to-top",DIVIDER:".c-footer__divider"},CLASSES:{BASE:"c-footer",CONTAINER:"c-footer__container",SECTIONS:"c-footer__sections",BRAND:"c-footer__brand",BRAND_LOGO:"c-footer__brand-logo",BRAND_NAME:"c-footer__brand-name",BRAND_DESCRIPTION:"c-footer__brand-description",SECTION:"c-footer__section",SECTION_HEADER:"c-footer__section-header",SECTION_TITLE:"c-footer__section-title",SECTION_CONTENT:"c-footer__section-content",SECTION_TOGGLE:"c-footer__section-toggle",SECTION_COLLAPSIBLE:"c-footer__section--collapsible",SECTION_COLLAPSED:"c-footer__section--collapsed",LINK:"c-footer__link",LINK_ACTIVE:"c-footer__link--active",LINK_DISABLED:"c-footer__link--disabled",SOCIAL:"c-footer__social",SOCIAL_LINK:"c-footer__social-link",NEWSLETTER:"c-footer__newsletter",NEWSLETTER_FORM:"c-footer__newsletter-form",NEWSLETTER_INPUT:"c-footer__newsletter-input",NEWSLETTER_BUTTON:"c-footer__newsletter-button",BOTTOM:"c-footer__bottom",COPYRIGHT:"c-footer__copyright",BACK_TO_TOP:"c-footer__back-to-top",DIVIDER:"c-footer__divider",COLUMNS:"c-footer--columns",CENTERED:"c-footer--centered",MINIMAL:"c-footer--minimal",STACKED:"c-footer--stacked",FLEXIBLE:"c-footer--flexible",SIDEBAR:"c-footer--sidebar",WIDE:"c-footer--wide",SM:"c-footer--sm",MD:"c-footer--md",LG:"c-footer--lg",STICKY:"c-footer--sticky"},DEFAULTS:{LAYOUT:"columns",VARIANT:"primary",SIZE:"md",SHOW_NEWSLETTER:!1,SHOW_BACK_TO_TOP:!1,SHOW_DIVIDER:!0,STICKY:!1,NEWSLETTER_TITLE:"Stay Updated",NEWSLETTER_DESCRIPTION:"Subscribe to our newsletter for the latest updates.",NEWSLETTER_PLACEHOLDER:"Enter your email",NEWSLETTER_BUTTON_TEXT:"Subscribe",BACK_TO_TOP_TEXT:"Back to Top"}},Dr={BASE_CLASS:"c-atomix-glass",CONTAINER_CLASS:"c-atomix-glass__container",INNER_CLASS:"c-atomix-glass__inner",FILTER_CLASS:"c-atomix-glass__filter",FILTER_OVERLAY_CLASS:"c-atomix-glass__filter-overlay",FILTER_SHADOW_CLASS:"c-atomix-glass__filter-shadow",CONTENT_CLASS:"c-atomix-glass__content",BORDER_BACKDROP_CLASS:"c-atomix-glass__border-backdrop",BORDER_1_CLASS:"c-atomix-glass__border-1",BORDER_2_CLASS:"c-atomix-glass__border-2",HOVER_1_CLASS:"c-atomix-glass__hover-1",HOVER_2_CLASS:"c-atomix-glass__hover-2",HOVER_3_CLASS:"c-atomix-glass__hover-3",BASE_LAYER_CLASS:"c-atomix-glass__base",OVERLAY_LAYER_CLASS:"c-atomix-glass__overlay",OVERLAY_HIGHLIGHT_CLASS:"c-atomix-glass__overlay-highlight",BACKGROUND_LAYER_CLASS:"c-atomix-glass__background-layer",BACKGROUND_LAYER_DARK_CLASS:"c-atomix-glass__background-layer--dark",BACKGROUND_LAYER_BLACK_CLASS:"c-atomix-glass__background-layer--black",BACKGROUND_LAYER_OVER_LIGHT_CLASS:"c-atomix-glass__background-layer--over-light",BACKGROUND_LAYER_HIDDEN_CLASS:"c-atomix-glass__background-layer--hidden",VARIANT_PREFIX:"c-atomix-glass--",MODE_PREFIX:"c-atomix-glass--",CLASSES:{BASE:"c-atomix-glass",CONTAINER:"c-atomix-glass__container",INNER:"c-atomix-glass__inner",FILTER:"c-atomix-glass__filter",CONTENT:"c-atomix-glass__content",ACTIVE:"active",OVER_LIGHT:"c-atomix-glass__container--over-light",STANDARD:"c-atomix-glass--standard",POLAR:"c-atomix-glass--polar",PROMINENT:"c-atomix-glass--prominent",SHADER:"c-atomix-glass--shader"},DEFAULTS:{DISPLACEMENT_SCALE:70,BLUR_AMOUNT:0,SATURATION:140,ABERRATION_INTENSITY:2,ELASTICITY:.15,CORNER_RADIUS:20,PADDING:"0",MODE:"standard",OVER_LIGHT:!1,ENABLE_OVER_LIGHT_LAYERS:!0,WITH_TIME_ANIMATION:!0,ANIMATION_SPEED:1,WITH_MULTI_LAYER_DISTORTION:!1,DISTORTION_OCTAVES:5,DISTORTION_LACUNARITY:2,DISTORTION_GAIN:.5,DISTORTION_QUALITY:"high"},CONSTANTS:{ACTIVATION_ZONE:200,LERP_FACTOR:.08,SMOOTHSTEP_POWER:2.5,MIN_BLUR:.1,MOUSE_INFLUENCE_DIVISOR:100,EDGE_FADE_PIXELS:2,DEFAULT_CORNER_RADIUS:16,MAX_SIZE:4096,PALETTE:{WHITE:"255, 255, 255",BLACK:"0, 0, 0"},GRADIENT:{BASE_ANGLE:135,ANGLE_MULTIPLIER:1.2,BORDER_STOP_1:{MIN:10,BASE:33,MULTIPLIER:.3},BORDER_STOP_2:{MAX:90,BASE:66,MULTIPLIER:.4},BORDER_OPACITY:{BASE_1:.12,BASE_2:.4,BASE_3:.32,BASE_4:.6,MULTIPLIER_LOW:.008,MULTIPLIER_HIGH:.012},CENTER_POSITION:50,HOVER_POSITION:{DIVISOR_1:2,DIVISOR_2:1.5,MULTIPLIER_3:1},BASE_LAYER_MULTIPLIER:.5},GRADIENT_OPACITY:{HOVER_1:{BLACK_START:.3,BLACK_MID:.1,BLACK_STOP:30,BLACK_END:60,WHITE_START:.5,WHITE_STOP:50},HOVER_2:{BLACK_START:.4,BLACK_MID:.15,BLACK_STOP:40,BLACK_END:80,WHITE_START:1,WHITE_STOP:80},HOVER_3:{BLACK_START:.5,BLACK_MID:.2,BLACK_STOP:50,BLACK_END:100,WHITE_START:1,WHITE_STOP:100}},BASE_GRADIENT:{ANGLE:135,BLACK_START_BASE:.15,BLACK_START_MULTIPLIER:.003,BLACK_MID_BASE:.1,BLACK_MID_MULTIPLIER:.002,BLACK_MID_STOP:50,BLACK_END_BASE:.18,BLACK_END_MULTIPLIER:.004,WHITE_OPACITY:.1},OVERLAY_GRADIENT:{BLACK_START_BASE:.12,BLACK_START_MULTIPLIER:.003,BLACK_MID:.06,BLACK_MID_STOP:40,BLACK_END_BASE:.15,BLACK_END_MULTIPLIER:.003,WHITE_OPACITY:.05},OVERLAY_HIGHLIGHT:{POSITION_X:20,POSITION_Y:20,WHITE_OPACITY:.4,STOP:60,OPACITY_MULTIPLIER:.7},MULTIPLIERS:{SHADER_DISPLACEMENT:.8,OVER_LIGHT_DISPLACEMENT:.6,SHADER_ABERRATION:.7},SATURATION:{HIGH_CONTRAST:200},ANIMATION:{BREATHING_CYCLE:2e3,FLOW_SPEED_X:.1,FLOW_SPEED_Y:.15,WAVE_SPEED:.05,WAVE_AMPLITUDE:.02},DISTORTION_QUALITY_PRESETS:{low:{octaves:2,lacunarity:2,gain:.5},medium:{octaves:4,lacunarity:2,gain:.5},high:{octaves:5,lacunarity:2,gain:.5},ultra:{octaves:7,lacunarity:2,gain:.5}}}};function Pr(e){const t={defaultOpen:!1,disabled:!1,iconPosition:"right",...e},n="boolean"==typeof t.isOpen,[a,l]=r(t.defaultOpen||!1),c=n?t.isOpen:a,[d,u]=r(c?"auto":"0px"),h=i(null),m=i(null),p=o((()=>{if(m.current&&h.current){const e=c?m.current.clientHeight+"px":"0px";h.current.style.setProperty(Ga.CSS_VARS.PANEL_HEIGHT,e),u(e)}}),[c]);return s((()=>{p()}),[c,p]),s((()=>{const e=()=>{c&&p()};return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)}),[c,p]),{state:{isOpen:c,panelHeight:d},toggle:()=>{if(!t.disabled){const e=!c;n||l(e),t.onOpenChange?.(e)}},updatePanelHeight:p,panelRef:h,contentRef:m,generateClassNames:(e="")=>`c-accordion ${c?Ga.CLASSES.IS_OPEN:""} ${t.disabled?Ga.CLASSES.IS_DISABLED:""} ${e}`.trim(),generateHeaderClassNames:()=>("c-accordion__header "+("left"===t.iconPosition?"c-accordion__header--icon-left":"")).trim()}}const{CONSTANTS:Br}=Dr,zr=(e,t)=>{if(!e||!t||"number"!=typeof e.x||"number"!=typeof e.y||"number"!=typeof t.x||"number"!=typeof t.y)return 0;const n=e.x-t.x,a=e.y-t.y;return Math.sqrt(n*n+a*a)},Ur=e=>e?{x:e.left+e.width/2,y:e.top+e.height/2}:{x:0,y:0},Fr=e=>{if(!e||"number"!=typeof e.x||"number"!=typeof e.y)return 0;const t=Math.sqrt(e.x*e.x+e.y*e.y)/Br.MOUSE_INFLUENCE_DIVISOR;return Math.min(.8,t)},Gr=e=>"number"!=typeof e||isNaN(e)?Br.MIN_BLUR:Math.max(Br.MIN_BLUR,Math.min(50,e)),Vr=e=>e&&"number"==typeof e.width&&"number"==typeof e.height&&e.width>0&&e.height>0&&e.width<=Br.MAX_SIZE&&e.height<=Br.MAX_SIZE,Hr=e=>{if("number"==typeof e)return Math.max(0,e);if("string"!=typeof e||!e.trim())return Br.DEFAULT_CORNER_RADIUS;const t=e.trim();if(t.endsWith("px")){const e=parseFloat(t);return isNaN(e)?Br.DEFAULT_CORNER_RADIUS:Math.max(0,e)}if(t.endsWith("rem")){const e=parseFloat(t);return isNaN(e)?Br.DEFAULT_CORNER_RADIUS:Math.max(0,16*e)}if(t.endsWith("em")){const e=parseFloat(t);return isNaN(e)?Br.DEFAULT_CORNER_RADIUS:Math.max(0,16*e)}if(t.endsWith("%")){const e=parseFloat(t);return isNaN(e)?Br.DEFAULT_CORNER_RADIUS:Math.max(0,e/100*200)}const n=parseFloat(t);return isNaN(n)?Br.DEFAULT_CORNER_RADIUS:Math.max(0,n)},$r=e=>{if(!e||!e.props)return null;if(e.props.style){const t=(e=>{if(!e)return null;const t=e.borderRadius||e.borderTopLeftRadius||e.borderTopRightRadius||e.borderBottomLeftRadius||e.borderBottomRightRadius;return void 0!==t?Hr(t):null})(e.props.style);if(null!==t&&t>0)return t}if(e.props.children){const t=Yr(e.props.children);if(t>0&&t!==Br.DEFAULT_CORNER_RADIUS)return t}return null},Yr=e=>{if(!e)return Br.DEFAULT_CORNER_RADIUS;try{const t=a.Children.toArray(e);for(let e=0;e<t.length;e++){const n=t[e];if(a.isValidElement(n)){const e=$r(n);if(null!==e)return e}}}catch(t){}return Br.DEFAULT_CORNER_RADIUS},Kr=(e,t,n)=>e+(t-e)*n,Wr=(e,t)=>t>0?t*(1-Math.exp(-e/t)):0,jr=(e,t,n,a,r)=>{switch(e){case"standard":default:return t;case"polar":return n;case"prominent":return a;case"shader":return r||t}},qr=new Map,Qr=({id:n,displacementScale:a,aberrationIntensity:r,mode:i,shaderMapUrl:o,blurAmount:s})=>e("svg",{style:{position:"absolute",width:"100%",height:"100%",inset:0},"aria-hidden":"true",children:t("defs",{children:[t("radialGradient",{id:n+"-edge-mask",cx:"50%",cy:"50%",r:"50%",children:[e("stop",{offset:"0%",stopColor:"black",stopOpacity:"0"}),e("stop",{offset:Math.max(30,80-2*r)+"%",stopColor:"black",stopOpacity:"0"}),e("stop",{offset:"100%",stopColor:"white",stopOpacity:"1"})]}),t("filter",{id:n,x:"-35%",y:"-35%",width:"170%",height:"170%",colorInterpolationFilters:"sRGB",children:[e("feImage",{id:n+"-image",x:"0",y:"0",width:"100%",height:"100%",result:"DISPLACEMENT_MAP",href:jr(i,"data:image/jpeg;base64,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cUAUAkEkziomgGgkoxZGgxZFQFQlYnQHRdPfj/10KCSCKESCNiVkViPSLpD0h6I0Q0I0A2IoBWBIJIBKBIJoJIJ2R2J0JWBUJ0JUB0XTv479dFZDYiglYigkhEgjZFQjRFQjRFQjQigFYigHYigmgEgmglYlYnQlQlYlQHQlQnQ9P/kf1yVkNiNCNkNiVENiNiViNEViNkVCVgKCViViViSCViSCVgdCViVCViVCdgVCVCdD1D+U/XBWQ2I0I2Q2JUQ2I0JWQ0I2JUQ2JUI2JUI2J0JWJWJWA2R0BWJ0I2JUJ2BUJUJ0P//EABkQAQEBAQEBAAAAAAAAAAAAAAECABEDEP/aAAgBAQABAgB1atWrVq1atWrVq1atWrVq1atWrVq1atWrVq+OrVq1atWrVq1atWrVq1atWrVq1atWrVq1atXxVppppppdWrVq1atWrVq1NNNNNNNNNNNPVWmmmmms6tWrVq1atWpppppppppppppp6q0000uc51atWrVq1ammmmmmmmmmmmmt1Vpppc5znVq1atWrVqaaaaaaaaaaaaaeqtNLnOc51atWrVq1ammmmmmmmmmmmmnqrS5znOc6tWrVq16222mmmmmmlVppp6tKuc5znOrVq1a9TbbbbTTTTTSq000qtLnOc5zq1atWrW0222200000qqqtKqrnOc5zq1atTbbbbbbbbTTTSqqqqqq5znOc6tTTTbbbbbbbbTTTSqqqqrlVznOctNNNtttttttttNNNNKqqqrqznKqrTTTTbbbbbbbbbTTTSqqqqrqznOc5aaaabbbbbbbbbaaaaVVVVVdWc5znVq1NNttttttttttNNKqqqqudWc5znVq16tbbbbbbbbbbTTSqqqq5XVnOc6tWrVrb1tttttttttNNKqqqqrWrK5VWmmm2230bbbbbbaaaXOc5zlVa1KuVVppptttt9G22222mmlzlVznK6tWVVWmmmm2222222222mlznOc5znLWppVVWmmm22222229bTWrOc5znOcq1qaaVpWmm222222229erVqznOc5znKtatStK0rTbTTbbbberXr1as5znOc5aVpppppWlabaabbbb1ta9WrVnOc5znU0rTTTTTTTTTbTTbbbTWvVq1as5znOdTTStNNNNNNNNNtNNtttN6tWvVq1ZznOrU00rTTTTTTTTTTTTTbTWvVq1atWrOc6tTTTStNNNNNNNNNNtNNtNa9WrVq1Z1Z1NNNNNK1q1NNNNNNNNNNNtNatWrVq1atWrU00000rWrVq1atWrVq1alaaa1atWrVq1NNNammmmla1atWrVq1aterVq16tWrVnVqa1NK1qaaaVX/xAAWEAADAAAAAAAAAAAAAAAAAAAhgJD/2gAIAQEAAz8AaExf/8QAGhEBAQEBAQEBAAAAAAAAAAAAAQISEQADEP/aAAgBAgEBAgDx48ePHjx48ePHjx48ePHjx48ePHjx48ePHj86IiIiIiInjx48ePHjx48IiIiIj0oooooooooRERER73ve60UUUUUUVrWiiiiiihERERER73ve97ooooorRWiiiiihKERERER73ve973RRRRWtFFFFFFCIiIiIiPe973ve60UUVrRRRRRRQiIlCIiI973ve973pRRWiiiiiiiiiiiiiiihEe973ve973RRWtFFFFFFFFFFFFFFFFFFa13ve973WitaKKKKKKKKKKKKKKKKKK1rWtd1rutFa1oooooooooooosssooorWta1rWta1rRRRRRRRRRRZZZZZZZZZWta1rWta1rRRRRRRRRZZZZZZZZZZZZe9a1rWta1rWitaKLLLLLLLLLLLLLLLLL3rWta1rWtFbLLLLLLLLLLLLLLLLLLLL3vWta1rWita1ssssssss+hZZZZZZZZe961rWta0Vre97LLLLLLLLLLLPoWWWWWXrWta1oorWta3ssss+hZZZZ9Cyyyyyyyyiita1orWta1ve9llllllllllllllllFFa0VorWta1ve9llllllllllllllllllFFFaK1rWta1rWiyyyyyyyyyyyyiiiiiiitFFa1rWta1oosoosssssoooosoooorRRRWta1rWta0UUUUUWUUUUUUUUUUUVoooorWta1rWtaKKKKKKmiiiiiiiiiiiiiiitd73ve61oSiiipoqaKKKKKKKKKK0UUUVrve973vREREZoSihEooooorRRRRWtd73ve9EREREREoSiiiiitFllllla73ve9ERERERESiiiiiitH0PoWWWWVrXe96IiIiMoiJRRRRRRWjwlFFllllFFd6IiIiIlCUUUUUUUUUePHjx48ePCIiIiIiIiUUUUUUUUUUUePHjx48ePHjx48ePHjx48IiUUUUUUJRRRX//xAAWEQADAAAAAAAAAAAAAAAAAAABYJD/2gAIAQIBAz8AtEV7/8QAFxEBAQEBAAAAAAAAAAAAAAAAAAECEP/aAAgBAwEBAgCtNNNNNNNNNNNNNNNNNNNNNNNNNNNNNcrTTTTTTTTTTTTTTTTTTTTTTTTTTTTTXKrTTTTTTTU000000000000000000001FVpppppqampqaaaaaaaaaaaaaaaaaaaa5Vaaaaampqampqammmmmmmmmmmlaaaaaaiq0001NTU1NTU1NTTTTTTTTTTSqqtNNNcqtNNSyzU1LNTU1NTTTTTTTTTSqqq001ytNLLLLNTU1NTU1NTbbbTTTTTSqqq001ytNLLLLLNTU1NTU3NttttNNNNNKqq001KrSyyyyyzU1NTU3Nzc02220000qqqqrSqqyyyyyzU1NTU3Nzc3NttttNNNKqqqqqqssssss1NTU3Nzc3NzbbbbTTTSqqqqqqrLLLLLNTU1Nzc3Nzc22220000qqqqqqqqssss1NTU3Nzc3NzbbbbbTTSqqqqqqqqqqzU1NTc3Nzc3Nzbc22000qqqqqqqqqqqtTU3Nzc3Nzc3NtzbTTSqqqqrKqqqqqtNNzc23Nzc3Nzc3NTU1KqqqrKqqqqqtNNNNttzc3Nzc3NzU1NLLLLLKqqqqqqqq0022223Nzc3NzU1NSyyyyyyqqqqqqqrTTbbbbc3Nzc3NTU1LLLLLLKsqqqqqqrTTTTbbbc3Nzc1NTUsssssssqqqqqqrTTTTTbbbTc3NTU1NTUsssssqqqqqqqq0000222023NTU1NTUsssssqqqqqqqq000000003NTU1NTU1LLLLLNKrTSqqqqtNNNNNNtNNTU1NSzUssss00qq0qqqqrTTTTTTTTTU1NTUs1LLLNNNKrTTTSqqq00000000001NTU1LNTU0000qtNNNKqqqtNNNNNNNNTU1NTUs1NNNNNKss1NNNK00qtK0000001NNTU0s000000qq000001NKrStNNNNK1NNNNStNNNNNKqtNNNNNNNK0000000rU0000rTTTTTSq00000rTTTTTTTTTTTTTTTTStNNNNKr/xAAUEQEAAAAAAAAAAAAAAAAAAACg/9oACAEDAQM/AAAf/9k=","data:image/jpeg;base64,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","data:image/png;base64,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",o),preserveAspectRatio:"xMidYMid slice"}),e("feColorMatrix",{in:"DISPLACEMENT_MAP",type:"matrix",values:"0.3 0.3 0.3 0 0\n 0.3 0.3 0.3 0 0\n 0.3 0.3 0.3 0 0\n 0 0 0 1 0",result:"EDGE_INTENSITY"}),e("feComponentTransfer",{in:"EDGE_INTENSITY",result:"EDGE_MASK",children:e("feFuncA",{type:"discrete",tableValues:`0 ${.05*r} 1`})}),e("feOffset",{in:"SourceGraphic",dx:"0",dy:"0",result:"CENTER_ORIGINAL"}),e("feDisplacementMap",{in:"SourceGraphic",in2:"DISPLACEMENT_MAP",scale:a*("shader"===i?1:-1),xChannelSelector:"R",yChannelSelector:"B",result:"RED_DISPLACED"}),e("feColorMatrix",{in:"RED_DISPLACED",type:"matrix",values:"1 0 0 0 0\n 0 0 0 0 0\n 0 0 0 0 0\n 0 0 0 1 0",result:"RED_CHANNEL"}),e("feDisplacementMap",{in:"SourceGraphic",in2:"DISPLACEMENT_MAP",scale:a*(("shader"===i?1:-1)-.02*r),xChannelSelector:"R",yChannelSelector:"B",result:"GREEN_DISPLACED"}),e("feColorMatrix",{in:"GREEN_DISPLACED",type:"matrix",values:"0 0 0 0 0\n 0 1 0 0 0\n 0 0 0 0 0\n 0 0 0 1 0",result:"GREEN_CHANNEL"}),e("feDisplacementMap",{in:"SourceGraphic",in2:"DISPLACEMENT_MAP",scale:a*(("shader"===i?1:-1)-.03*r),xChannelSelector:"R",yChannelSelector:"B",result:"BLUE_DISPLACED"}),e("feColorMatrix",{in:"BLUE_DISPLACED",type:"matrix",values:"0 0 0 0 0\n 0 0 0 0 0\n 0 0 1 0 0\n 0 0 0 1 0",result:"BLUE_CHANNEL"}),e("feBlend",{in:"GREEN_CHANNEL",in2:"BLUE_CHANNEL",mode:"screen",result:"GB_COMBINED"}),e("feBlend",{in:"RED_CHANNEL",in2:"GB_COMBINED",mode:"screen",result:"RGB_COMBINED"}),e("feGaussianBlur",{in:"RGB_COMBINED",result:"ABERRATED_BLURRED",stdDeviation:s*r*.05}),e("feComposite",{in:"ABERRATED_BLURRED",in2:"EDGE_MASK",operator:"in",result:"EDGE_ABERRATION"}),e("feComponentTransfer",{in:"EDGE_MASK",result:"INVERTED_MASK",children:e("feFuncA",{type:"table",tableValues:"1 0"})}),e("feComposite",{in:"CENTER_ORIGINAL",in2:"INVERTED_MASK",operator:"in",result:"CENTER_CLEAN"}),e("feComposite",{in:"EDGE_ABERRATION",in2:"CENTER_CLEAN",operator:"over"})]})]})});Qr.displayName="GlassFilter";const Xr=l(Qr,((e,t)=>e.id===t.id&&e.displacementScale===t.displacementScale&&e.aberrationIntensity===t.aberrationIntensity&&e.mode===t.mode&&e.shaderMapUrl===t.shaderMapUrl&&e.blurAmount===t.blurAmount)),Zr=c((({children:n,className:a="",style:o,displacementScale:l=25,blurAmount:c=.0625,saturation:h=180,aberrationIntensity:m=2,mouseOffset:p={x:0,y:0},onMouseEnter:g,onMouseLeave:f,onMouseDown:b,onMouseUp:v,isActive:S=!1,overLight:y=!1,overLightConfig:E={},borderRadius:A=0,padding:x="0 0",glassSize:N={width:0,height:0},onClick:T,mode:_="standard",effectiveWithoutEffects:C=!1,effectiveReducedMotion:L=!1,shaderVariant:I="liquidGlass",withLiquidBlur:w=!1,isFixedOrSticky:O=!1,shaderTime:R,withTimeAnimation:k=!1,animationSpeed:M=1,withMultiLayerDistortion:D=!1,distortionOctaves:P=3,distortionLacunarity:B=2,distortionGain:z=.5,distortionQuality:U="medium",contentRef:F},G)=>{const V=d(),H=u((()=>"atomix-glass-filter-"+V.replace(/:/g,"")),[V]),[$,Y]=r(""),K=i(null),W=i(null),j=i(null),q=i(null),Q=i(null);s((()=>{"shader"===_?Promise.resolve().then((function(){return eo})).then((e=>{W.current={ShaderDisplacementGenerator:e.ShaderDisplacementGenerator,fragmentShaders:e.fragmentShaders}})).catch((e=>{})):W.current=null}),[_]),s((()=>{if("shader"===_&&N&&Vr(N)){const e=`${N.width}x${N.height}-${I}`,t=(e=>{const t=qr.get(e);return t?(t.timestamp=Date.now(),t.url):null})(e);if(t)return void Y(t);j.current&&clearTimeout(j.current);const n=()=>{if(W.current)try{const{ShaderDisplacementGenerator:t,fragmentShaders:n}=W.current;K.current?.destroy();const a=n[I]??n.liquidGlass;K.current=new t({width:N.width,height:N.height,fragment:a}),q.current=setTimeout((()=>{const t=K.current?.updateShader()??"";t&&((e,t)=>{if(qr.size>=15){const e=Array.from(qr.entries());e.sort(((e,t)=>e[1].timestamp-t[1].timestamp));const t=e[0];t&&qr.delete(t[0])}qr.set(e,{url:t,timestamp:Date.now()}),"undefined"!=typeof process&&"production"===process.env?.NODE_ENV||qr.size})(e,t),Y(t)}),100)}catch(t){Y("")}else j.current=setTimeout(n,100)};j.current=setTimeout(n,500)}else Y("");return()=>{j.current&&(clearTimeout(j.current),j.current=null),q.current&&(clearTimeout(q.current),q.current=null);try{K.current?.destroy()}catch(e){}finally{K.current=null}}}),[_,N,I]),s((()=>{if("shader"!==_||!k||L||C)return void(null!==Q.current&&(cancelAnimationFrame(Q.current),Q.current=null));const e=1e3/Math.max(12,Math.min(60,Math.round(("ultra"===U?60:"high"===U?30:"medium"===U?24:20)*Math.max(.5,Math.min(2,M||1))/(D?Math.max(1,(P||3)/3+.25*Math.max(0,(B||2)-2)+Math.max(0,(z||.5)-.5)):1))));let t=0,n=!1;const a=r=>{if(!n){if(r-t>=e&&K.current){t=r;try{const e=K.current.updateShader();e&&Y(e)}catch(i){}}Q.current=requestAnimationFrame(a)}};return Q.current=requestAnimationFrame(a),()=>{n=!0,null!==Q.current&&(cancelAnimationFrame(Q.current),Q.current=null)}}),[_,k,M,l,D,P,B,z,U,L,C,N]);const[X,Z]=r(null);s((()=>{if(!G||"function"==typeof G)return;const e=G.current;if(e)try{Z(e.getBoundingClientRect())}catch(t){Z(null)}}),[G,N]);const J=u((()=>{const e={baseBlur:c,edgeBlur:1.25*c,centerBlur:1.1*c,flowBlur:1.2*c};if(!w||!X||!p||"number"!=typeof p.x||"number"!=typeof p.y||isNaN(p.x)||isNaN(p.y))return e;try{const e=Fr(p),t=2*c,n=Math.min(t,c+e*c*.15),a=Math.min(t,n*(.8+.15*e*.4)),r=Math.min(t,n*(.3+.1*e*.3)),i=Math.min(t,1.2*n);return{baseBlur:Gr(n),edgeBlur:Gr(a),centerBlur:Gr(r),flowBlur:Gr(i)}}catch(t){return e}}),[w,c,p,X]),ee=u((()=>{try{const e=h+20*(J.baseBlur||0),t="number"!=typeof J.baseBlur||isNaN(J.baseBlur)?0:J.baseBlur,n="number"!=typeof J.edgeBlur||isNaN(J.edgeBlur)?0:J.edgeBlur,a="number"!=typeof J.centerBlur||isNaN(J.centerBlur)?0:J.centerBlur,r="number"!=typeof J.flowBlur||isNaN(J.flowBlur)?0:J.flowBlur,i=X?X.width*X.height:0;return!w||L||C||i>18e4?{backdropFilter:`blur(${Gr(Math.max(t,.8*n,1.1*a,.9*r))}px) saturate(${Math.min(e,200)}%) contrast(${E?.contrast||1.05}) brightness(${E?.brightness||1.05})`}:{backdropFilter:`blur(${Gr(.4*t+.25*n+.15*a+.2*r)}px) saturate(${Math.min(e,200)}%) contrast(${E?.contrast||1}) brightness(${E?.brightness||1})`}}catch(e){return{backdropFilter:`blur(${c}px) saturate(${h}%) contrast(1.05) brightness(1.05)`}}}),[J,h,c,X,L,C,w,E]),te=u((()=>{try{const e=p&&"number"==typeof p.x&&!isNaN(p.x)?p.x:0,t=p&&"number"==typeof p.y&&!isNaN(p.y)?p.y:0;return{"--atomix-glass-container-radius":("number"!=typeof A||isNaN(A)?0:A)+"px","--atomix-glass-container-backdrop":ee?.backdropFilter||"none","--atomix-glass-container-shadow":y?[`inset 0 1px 0 rgba(255, 255, 255, ${(.4+.002*e)*(E?.shadowIntensity||1)})`,`inset 0 -1px 0 rgba(0, 0, 0, ${(.2+.001*Math.abs(t))*(E?.shadowIntensity||1)})`,`inset 0 0 20px rgba(0, 0, 0, ${(.08+.001*Math.abs(e+t))*(E?.shadowIntensity||1)})`,`0 2px 12px rgba(0, 0, 0, ${(.12+.002*Math.abs(t))*(E?.shadowIntensity||1)})`].join(", "):"0 0 20px rgba(0, 0, 0, 0.15) inset, 0 4px 8px rgba(0, 0, 0, 0.08) inset","--atomix-glass-container-shadow-opacity":C?0:1,"--atomix-glass-container-bg":y?`linear-gradient(${180+.5*e}deg, rgba(255, 255, 255, 0.1) 0%, transparent 20%, transparent 80%, rgba(0, 0, 0, 0.05) 100%)`:"none","--atomix-glass-container-text-shadow":y?"0px 1px 2px rgba(255, 255, 255, 0.15)":"0px 2px 12px rgba(0, 0, 0, 0.4)","--atomix-glass-container-box-shadow":y?"0px 16px 70px rgba(0, 0, 0, 0.75)":"0px 12px 40px rgba(0, 0, 0, 0.25)"}}catch(e){return{"--atomix-glass-container-padding":"0 0","--atomix-glass-container-radius":"0px","--atomix-glass-container-backdrop":"none","--atomix-glass-container-shadow":"none","--atomix-glass-container-shadow-opacity":1,"--atomix-glass-container-bg":"none","--atomix-glass-container-text-shadow":"none"}}}),[A,ee,p,y,C,E]);return e("div",{ref:e=>{"function"==typeof G?G(e):G&&(G.current=e)},className:`${Dr.CONTAINER_CLASS} ${a} ${S?Dr.CLASSES.ACTIVE:""} ${y?Dr.CLASSES.OVER_LIGHT:""}`,style:{...o,...te},onClick:T,children:t("div",{className:Dr.INNER_CLASS,onMouseEnter:g,onMouseLeave:f,onMouseDown:b,onMouseUp:v,children:[t("div",{className:Dr.FILTER_CLASS,children:[e(Xr,{blurAmount:c,mode:_,id:H,displacementScale:"number"!=typeof l||isNaN(l)?0:l,aberrationIntensity:"number"!=typeof m||isNaN(m)?0:m,shaderMapUrl:$}),e("div",{className:Dr.FILTER_OVERLAY_CLASS,style:{filter:`url(#${H})`}}),e("div",{className:Dr.FILTER_SHADOW_CLASS})]}),e("div",{ref:F,className:Dr.CONTENT_CLASS,children:n})]})})}));Zr.displayName="AtomixGlassContainer";const Jr=new class{constructor(){this.listeners=new Set,this.position={x:0,y:0},this.rafId=null,this.lastEvent=null,this.isTracking=!1,this.handleMouseMove=e=>{this.lastEvent=e,null===this.rafId&&(this.rafId=requestAnimationFrame((()=>{this.lastEvent&&(this.position={x:this.lastEvent.clientX,y:this.lastEvent.clientY},this.listeners.forEach((e=>{try{e(this.position)}catch(t){}}))),this.rafId=null})))}}subscribe(e){return this.listeners.add(e),1===this.listeners.size&&this.startTracking(),e(this.position),()=>{this.unsubscribe(e)}}unsubscribe(e){this.listeners.delete(e),0===this.listeners.size&&this.stopTracking()}startTracking(){this.isTracking||(this.isTracking=!0,document.addEventListener("mousemove",this.handleMouseMove,{passive:!0}))}stopTracking(){this.isTracking&&(this.isTracking=!1,document.removeEventListener("mousemove",this.handleMouseMove),null!==this.rafId&&(cancelAnimationFrame(this.rafId),this.rafId=null),this.lastEvent=null)}getPosition(){return{...this.position}}getSubscriberCount(){return this.listeners.size}},ei=(e,t,n)=>{if(!e&&!t)return;const{mouseOffset:a,globalMousePosition:r,glassSize:i,isHovered:o,isActive:s,isOverLight:l,baseOverLightConfig:c,effectiveBorderRadius:d,effectiveWithoutEffects:u,effectiveReducedMotion:h,elasticity:m,directionalScale:p,onClick:g,withLiquidBlur:f,blurAmount:b=Dr.DEFAULTS.BLUR_AMOUNT,saturation:v=Dr.DEFAULTS.SATURATION,padding:S=Dr.DEFAULTS.PADDING,isFixedOrSticky:y=!1}=n,E=Fr(a),A=o?1.4:1,x=s?1.6:1,N={opacity:c.opacity*A*x,contrast:Math.min(1.6,c.contrast+.1*E),brightness:Math.min(1.1,c.brightness+.05*E),shadowIntensity:Math.min(1.2,Math.max(.5,c.shadowIntensity+.2*E)),borderOpacity:Math.min(1,Math.max(.3,c.borderOpacity+.1*E)),saturationBoost:c.saturationBoost};let T=p,_={x:0,y:0};if(!u&&e){const t=e.getBoundingClientRect(),n=Ur(t);if(r.x&&r.y&&Vr(i)){const e=r.x-n.x,t=r.y-n.y,a=Math.max(0,Math.abs(e)-i.width/2),o=Math.max(0,Math.abs(t)-i.height/2),s=zr({x:a,y:o},{x:0,y:0}),c=s>Dr.CONSTANTS.ACTIVATION_ZONE?0:1-s/Dr.CONSTANTS.ACTIVATION_ZONE,d=(e=>{const t=Math.max(0,Math.min(1,e));return t*t*(3-2*t)})(c);if(_={x:e*m*.1*d,y:t*m*.1*d},!l&&s<=Dr.CONSTANTS.ACTIVATION_ZONE){const a=zr(r,n);if(a>0){const n=e/a,r=t/a,i=Math.min(a/300,1)*m*c,o=1+Math.abs(n)*i*.3-Math.abs(r)*i*.15,s=1+Math.abs(r)*i*.3-Math.abs(n)*i*.15,l=1-Wr(Math.max(0,1-o),.2),d=1-Wr(Math.max(0,1-s),.2);T=`scaleX(${Math.max(.85,l)}) scaleY(${Math.max(.85,d)})`}}}}const C=u?s&&g?"scale(0.98)":"scale(1)":`translate(${_.x}px, ${_.y}px) ${s&&g?"scale(0.96)":T}`;if(e){const t=a.x,n=a.y,r=Math.abs(t),i=Math.abs(n),c=Dr.CONSTANTS.GRADIENT,u=c.BASE_ANGLE+t*c.ANGLE_MULTIPLIER,h=Math.max(c.BORDER_STOP_1.MIN,c.BORDER_STOP_1.BASE+n*c.BORDER_STOP_1.MULTIPLIER),m=Math.min(c.BORDER_STOP_2.MAX,c.BORDER_STOP_2.BASE+n*c.BORDER_STOP_2.MULTIPLIER),p=[c.BORDER_OPACITY.BASE_1+r*c.BORDER_OPACITY.MULTIPLIER_LOW,c.BORDER_OPACITY.BASE_2+r*c.BORDER_OPACITY.MULTIPLIER_HIGH,c.BORDER_OPACITY.BASE_3+r*c.BORDER_OPACITY.MULTIPLIER_LOW,c.BORDER_OPACITY.BASE_4+r*c.BORDER_OPACITY.MULTIPLIER_HIGH],g=N.borderOpacity,f=Dr.CONSTANTS.PALETTE.WHITE,b=Dr.CONSTANTS.PALETTE.BLACK,v={hover1:{x:c.CENTER_POSITION+t/c.HOVER_POSITION.DIVISOR_1,y:c.CENTER_POSITION+n/c.HOVER_POSITION.DIVISOR_1},hover2:{x:c.CENTER_POSITION+t/c.HOVER_POSITION.DIVISOR_2,y:c.CENTER_POSITION+n/c.HOVER_POSITION.DIVISOR_2},hover3:{x:c.CENTER_POSITION+t*c.HOVER_POSITION.MULTIPLIER_3,y:c.CENTER_POSITION+n*c.HOVER_POSITION.MULTIPLIER_3}},S={x:c.CENTER_POSITION+t*c.BASE_LAYER_MULTIPLIER,y:c.CENTER_POSITION+n*c.BASE_LAYER_MULTIPLIER},y={hover1:o||s?.5:0,hover2:s?.5:0,hover3:o?.4:s?.8:0,base:l?N.opacity:0,over:l?1.1*N.opacity:0},E=e.style;E.setProperty("--atomix-glass-transform",C||"none"),E.setProperty("--atomix-glass-border-gradient-1",`linear-gradient(${u}deg, rgba(${f}, 0) 0%, rgba(${f}, ${(p[0]??1)*g}) ${h}%, rgba(${f}, ${(p[1]??1)*g}) ${m}%, rgba(${f}, 0) 100%)`),E.setProperty("--atomix-glass-border-gradient-2",`linear-gradient(${u}deg, rgba(${f}, 0) 0%, rgba(${f}, ${(p[2]??1)*g}) ${h}%, rgba(${f}, ${(p[3]??1)*g}) ${m}%, rgba(${f}, 0) 100%)`),E.setProperty("--atomix-glass-hover-1-gradient",l?`radial-gradient(circle at ${v.hover1.x}% ${v.hover1.y}%, rgba(${b}, ${Dr.CONSTANTS.GRADIENT_OPACITY.HOVER_1.BLACK_START}) 0%, rgba(${b}, ${Dr.CONSTANTS.GRADIENT_OPACITY.HOVER_1.BLACK_MID}) ${Dr.CONSTANTS.GRADIENT_OPACITY.HOVER_1.BLACK_STOP}%, rgba(${b}, 0) ${Dr.CONSTANTS.GRADIENT_OPACITY.HOVER_1.BLACK_END}%)`:`radial-gradient(circle at ${v.hover1.x}% ${v.hover1.y}%, rgba(${f}, ${Dr.CONSTANTS.GRADIENT_OPACITY.HOVER_1.WHITE_START}) 0%, rgba(${f}, 0) ${Dr.CONSTANTS.GRADIENT_OPACITY.HOVER_1.WHITE_STOP}%)`),E.setProperty("--atomix-glass-hover-2-gradient",l?`radial-gradient(circle at ${v.hover2.x}% ${v.hover2.y}%, rgba(${b}, ${Dr.CONSTANTS.GRADIENT_OPACITY.HOVER_2.BLACK_START}) 0%, rgba(${b}, ${Dr.CONSTANTS.GRADIENT_OPACITY.HOVER_2.BLACK_MID}) ${Dr.CONSTANTS.GRADIENT_OPACITY.HOVER_2.BLACK_STOP}%, rgba(${b}, 0) ${Dr.CONSTANTS.GRADIENT_OPACITY.HOVER_2.BLACK_END}%)`:`radial-gradient(circle at ${v.hover2.x}% ${v.hover2.y}%, rgba(${f}, ${Dr.CONSTANTS.GRADIENT_OPACITY.HOVER_2.WHITE_START}) 0%, rgba(${f}, 0) ${Dr.CONSTANTS.GRADIENT_OPACITY.HOVER_2.WHITE_STOP}%)`),E.setProperty("--atomix-glass-hover-3-gradient",l?`radial-gradient(circle at ${v.hover3.x}% ${v.hover3.y}%, rgba(${b}, ${Dr.CONSTANTS.GRADIENT_OPACITY.HOVER_3.BLACK_START}) 0%, rgba(${b}, ${Dr.CONSTANTS.GRADIENT_OPACITY.HOVER_3.BLACK_MID}) ${Dr.CONSTANTS.GRADIENT_OPACITY.HOVER_3.BLACK_STOP}%, rgba(${b}, 0) ${Dr.CONSTANTS.GRADIENT_OPACITY.HOVER_3.BLACK_END}%)`:`radial-gradient(circle at ${v.hover3.x}% ${v.hover3.y}%, rgba(${f}, ${Dr.CONSTANTS.GRADIENT_OPACITY.HOVER_3.WHITE_START}) 0%, rgba(${f}, 0) ${Dr.CONSTANTS.GRADIENT_OPACITY.HOVER_3.WHITE_STOP}%)`),E.setProperty("--atomix-glass-base-gradient",l?`linear-gradient(${Dr.CONSTANTS.BASE_GRADIENT.ANGLE}deg, rgba(${b}, ${Dr.CONSTANTS.BASE_GRADIENT.BLACK_START_BASE+t*Dr.CONSTANTS.BASE_GRADIENT.BLACK_START_MULTIPLIER}) 0%, rgba(${b}, ${Dr.CONSTANTS.BASE_GRADIENT.BLACK_MID_BASE+n*Dr.CONSTANTS.BASE_GRADIENT.BLACK_MID_MULTIPLIER}) ${Dr.CONSTANTS.BASE_GRADIENT.BLACK_MID_STOP}%, rgba(${b}, ${Dr.CONSTANTS.BASE_GRADIENT.BLACK_END_BASE+r*Dr.CONSTANTS.BASE_GRADIENT.BLACK_END_MULTIPLIER}) 100%)`:`rgba(${f}, ${Dr.CONSTANTS.BASE_GRADIENT.WHITE_OPACITY})`),E.setProperty("--atomix-glass-overlay-gradient",l?`radial-gradient(circle at ${S.x}% ${S.y}%, rgba(${b}, ${Dr.CONSTANTS.OVERLAY_GRADIENT.BLACK_START_BASE+r*Dr.CONSTANTS.OVERLAY_GRADIENT.BLACK_START_MULTIPLIER}) 0%, rgba(${b}, ${Dr.CONSTANTS.OVERLAY_GRADIENT.BLACK_MID}) ${Dr.CONSTANTS.OVERLAY_GRADIENT.BLACK_MID_STOP}%, rgba(${b}, ${Dr.CONSTANTS.OVERLAY_GRADIENT.BLACK_END_BASE+i*Dr.CONSTANTS.OVERLAY_GRADIENT.BLACK_END_MULTIPLIER}) 100%)`:`rgba(${f}, ${Dr.CONSTANTS.OVERLAY_GRADIENT.WHITE_OPACITY})`),E.setProperty("--atomix-glass-hover-1-opacity",y.hover1.toString()),E.setProperty("--atomix-glass-hover-2-opacity",y.hover2.toString()),E.setProperty("--atomix-glass-hover-3-opacity",y.hover3.toString()),E.setProperty("--atomix-glass-base-opacity",y.base.toString()),E.setProperty("--atomix-glass-overlay-opacity",y.over.toString()),E.setProperty("--atomix-glass-overlay-highlight-opacity",""+y.over*Dr.CONSTANTS.OVERLAY_HIGHLIGHT.OPACITY_MULTIPLIER),E.setProperty("--atomix-glass-blend-mode",l?"multiply":"overlay"),E.setProperty("--atomix-glass-radius",d+"px")}if(t){const e=a.x,n=a.y,r=.5,i=.2,o=.3,s=.4,c=.15,m=.1,p=2,g=t.getBoundingClientRect();let y={baseBlur:b,edgeBlur:b*r,centerBlur:b*i,flowBlur:b*o};if(f&&g){const e=Fr(a),t=b*p,n=Math.min(t,b+e*b*s),r=Math.min(t,n*(.8+e*c*.4)),i=Math.min(t,n*(.3+e*m*.3)),l=Math.min(t,n*o);y={baseBlur:Gr(n),edgeBlur:Gr(r),centerBlur:Gr(i),flowBlur:Gr(l)}}let E=`blur(${b}px) saturate(${v}%) contrast(1.05) brightness(1.05)`;const A=v+20*(y.baseBlur||0),x=g?g.width*g.height:0;E=!f||h||u||x>18e4?`blur(${Gr(Math.max(y.baseBlur,.8*y.edgeBlur,1.1*y.centerBlur,.9*y.flowBlur))}px) saturate(${Math.min(A,200)}%) contrast(${N.contrast}) brightness(${N.brightness})`:`blur(${Gr(.4*y.baseBlur+.25*y.edgeBlur+.15*y.centerBlur+.2*y.flowBlur)}px) saturate(${Math.min(A,200)}%) contrast(${N.contrast}) brightness(${N.brightness})`;const T=t.style;T.setProperty("--atomix-glass-container-padding",S),T.setProperty("--atomix-glass-container-radius",d+"px"),T.setProperty("--atomix-glass-container-backdrop",E),T.setProperty("--atomix-glass-container-shadow",l?[`inset 0 1px 0 rgba(255, 255, 255, ${(.4+.002*e)*(N.shadowIntensity||1)})`,`inset 0 -1px 0 rgba(0, 0, 0, ${(.2+.001*Math.abs(n))*(N.shadowIntensity||1)})`,`inset 0 0 20px rgba(0, 0, 0, ${(.08+.001*Math.abs(e+n))*(N.shadowIntensity||1)})`,`0 2px 12px rgba(0, 0, 0, ${(.12+.002*Math.abs(n))*(N.shadowIntensity||1)})`].join(", "):"0 0 20px rgba(0, 0, 0, 0.15) inset, 0 4px 8px rgba(0, 0, 0, 0.08) inset"),T.setProperty("--atomix-glass-container-shadow-opacity",u?"0":"1"),T.setProperty("--atomix-glass-container-bg",l?`linear-gradient(${180+.5*e}deg, rgba(255, 255, 255, 0.1) 0%, transparent 20%, transparent 80%, rgba(0, 0, 0, 0.05) 100%)`:"none"),T.setProperty("--atomix-glass-container-text-shadow",l?"0px 1px 2px rgba(255, 255, 255, 0.15)":"0px 2px 12px rgba(0, 0, 0, 0.4)"),T.setProperty("--atomix-glass-container-box-shadow",l?"0px 16px 70px rgba(0, 0, 0, 0.75)":"0px 12px 40px rgba(0, 0, 0, 0.25)")}};function ti(e,t){const n=255&Math.floor(e),a=255&Math.floor(t),r=e-Math.floor(e),i=t-Math.floor(t),o=ii(r),s=ii(i),l=li[n]+a&255,c=li[n+1]+a&255,d=si(li[l],r,i),u=si(li[c],r-1,i),h=si(li[l+1&255],r,i-1),m=si(li[c+1&255],r-1,i-1),p=oi(d,u,o),g=oi(h,m,o);return(oi(p,g,s)+1)/2}function ni(e){const t=(t,n,a=0)=>{let r=0,i=.5,o=1,s=.001*a;for(let l=0;l<e.octaves;l++)r+=ti(t*o+s,n*o+s)*i,o*=e.lacunarity,i*=e.gain;return r};return{fbm:t,fbmWithTime:(e,n,a)=>t(e,n,a)}}const ai=new Map;function ri(e,t,n){const a=`${n.octaves}-${n.lacunarity}-${n.gain}`;let r=ai.get(a);r||(r=ni(n),ai.set(a,r));const i=r.fbmWithTime(2*e.x+1e-4*t,2*e.y+15e-5*t,t);return{x:e.x+.04*(i-.5),y:e.y+.04*(i-.5)}}function ii(e){return e*e*e*(e*(6*e-15)+10)}function oi(e,t,n){return e+n*(t-e)}function si(e,t,n){const a=15&e,r=8>a?t:n,i=4>a?n:12===a||14===a?t:0;return(1&a?-r:r)+(2&a?-i:i)}const li=(()=>{const e=[];for(let t=0;256>t;t++)e[t]=Math.floor(256*Math.random());return[...e,...e]})(),{CONSTANTS:ci}=Dr,{CONSTANTS:di}=Dr,ui=new WeakMap,hi=(e,t,n,a)=>{e&&ui.set(e,{result:n,timestamp:Date.now(),config:t,threshold:a})};function mi({glassRef:e,contentRef:t,wrapperRef:n,borderRadius:a,globalMousePosition:l,mouseOffset:c,mouseContainer:d,overLight:h=Dr.DEFAULTS.OVER_LIGHT,reducedMotion:m=!1,highContrast:p=!1,withoutEffects:g=!1,elasticity:f=.05,onClick:b,debugBorderRadius:v=!1,debugOverLight:S=!1,children:y,blurAmount:E,saturation:A,padding:x,withLiquidBlur:N,isFixedOrSticky:T=!1,withTimeAnimation:_=Dr.DEFAULTS.WITH_TIME_ANIMATION,animationSpeed:C=Dr.DEFAULTS.ANIMATION_SPEED,withMultiLayerDistortion:L=Dr.DEFAULTS.WITH_MULTI_LAYER_DISTORTION,distortionOctaves:I=Dr.DEFAULTS.DISTORTION_OCTAVES,distortionLacunarity:w=Dr.DEFAULTS.DISTORTION_LACUNARITY,distortionGain:O=Dr.DEFAULTS.DISTORTION_GAIN,distortionQuality:R=Dr.DEFAULTS.DISTORTION_QUALITY}){const[k,M]=r(!1),[D,P]=r(!1),B=i(null),z=i({x:0,y:0}),U=i({x:0,y:0}),F=i({x:0,y:0}),G=i({x:0,y:0}),V=i(null),H=i(!1),[$,Y]=r(di.DEFAULT_CORNER_RADIUS),[K,W]=r(!1),[j,q]=r(!1),[Q,X]=r(!1),Z=i(null),J=i(0),ee=i(0),te=i(0),ne=u((()=>{const e=(t=R,Dr.CONSTANTS.DISTORTION_QUALITY_PRESETS[t]);var t;return{octaves:I??e.octaves,lacunarity:w??e.lacunarity,gain:O??e.gain}}),[R,I,w,O]),ae=u((()=>L?ni(ne):null),[L,ne]),re=u((()=>m||K),[m,K]),ie=u((()=>_&&!re),[_,re]);s((()=>{if(!ie||"undefined"==typeof window)return;let e=performance.now();const t=n=>{const a=n-e;e=n;const r=a*C;ee.current+=r,te.current=ee.current,Z.current=requestAnimationFrame(t)};return J.current=performance.now(),Z.current=requestAnimationFrame(t),()=>{null!==Z.current&&(cancelAnimationFrame(Z.current),Z.current=null)}}),[ie,C]);const oe=o((()=>te.current),[]),se=o((e=>ie&&ae?ri(e,te.current,ne):e),[ie,ae,ne]),le=u((()=>Math.max(0,void 0!==a?a:$)),[a,$]),{glassSize:ce}=function({glassRef:e,effectiveBorderRadius:t,cachedRectRef:n}){const[a,i]=r({width:270,height:69});return s((()=>{const a=e=>null!==e&&e instanceof HTMLElement&&e.isConnected;let r=null,o={width:0,height:0},s=t;const l=(n=!1)=>{null!==r&&cancelAnimationFrame(r),r=requestAnimationFrame((()=>{if(!a(e.current))return void(r=null);const l=e.current.getBoundingClientRect();if(0>=l.width||0>=l.height)return void(r=null);const c={width:Math.round(l.width),height:Math.round(l.height)},d=s!==t,u=Math.abs(c.width-o.width)>1||Math.abs(c.height-o.height)>1;var h;(n||d||u)&&Vr(h=c)&&h.width<=ci.MAX_SIZE&&h.height<=ci.MAX_SIZE&&(o=c,s=t,i(c)),r=null}))};let c=null;const d=()=>{c&&clearTimeout(c),c=setTimeout((()=>l(!1)),16)},u=setTimeout((()=>l(!0)),0);let h=null,m=null;if("undefined"!=typeof ResizeObserver&&a(e.current))try{h=new ResizeObserver((t=>{for(const a of t)if(a.target===e.current){e.current&&n&&(n.current=e.current.getBoundingClientRect()),m&&clearTimeout(m),m=setTimeout((()=>l(!1)),16);break}})),h.observe(e.current)}catch(p){}return window.addEventListener("resize",d,{passive:!0}),()=>{clearTimeout(u),null!==r&&cancelAnimationFrame(r),c&&clearTimeout(c),m&&clearTimeout(m),window.removeEventListener("resize",d),h?.disconnect()}}),[t,e,n]),{glassSize:a}}({glassRef:e,effectiveBorderRadius:le,cachedRectRef:B}),de=u((()=>p||j),[p,j]),ue=u((()=>g||re),[g,re]),he=l||z.current,me=c||U.current;s((()=>{const e=()=>{try{let e=null;if(t.current){const n=t.current.firstElementChild;if(n){const t=(e=>{if(!e||"undefined"==typeof window)return null;try{const t=window.getComputedStyle(e),n=t.borderRadius||t.borderTopLeftRadius||t.borderTopRightRadius||t.borderBottomLeftRadius||t.borderBottomRightRadius;if(n&&"0px"!==n&&"auto"!==n){const e=Hr(n);return e>0?e:null}return null}catch(t){return null}})(n);null!==t&&t>0&&(e=t)}}if(null===e){const t=Yr(y);t>0&&t!==di.DEFAULT_CORNER_RADIUS&&(e=t)}null!==e&&e>0&&Y(e)}catch(e){"undefined"==typeof process||process.env}};e();const n=setTimeout(e,100);return()=>clearTimeout(n)}),[y,v,t]),s((()=>{if("undefined"==typeof window||"function"!=typeof window.matchMedia)return;const e=window.matchMedia("(prefers-reduced-motion: reduce)"),t=window.matchMedia("(prefers-contrast: high)");W(e.matches),q(t.matches);const n=e=>{W(e.matches)},a=e=>{q(e.matches)};return e.addEventListener("change",n),t.addEventListener("change",a),()=>{e.removeEventListener("change",n),t.removeEventListener("change",a)}}),[]),s((()=>{if(("auto"===h||"object"==typeof h&&null!==h)&&e.current){const t=e.current,n=((e,t)=>{if(!e)return null;const n=ui.get(e);return n&&((e,t)=>{if("object"!=typeof e||null===e)return e===t;if("object"!=typeof t||null===t)return!1;const n=e,a=t,r=["threshold","opacity","contrast","brightness","saturationBoost"];for(const i of r){const e=n[i],t=a[i];if(void 0!==e||void 0!==t){if(void 0===e||void 0===t)return!1;if("number"==typeof e&&"number"==typeof t){if(Number.isNaN(e)&&Number.isNaN(t))continue;if(Number.isNaN(e)||Number.isNaN(t))return!1;if(Math.abs(e-t)>Number.EPSILON)return!1}else if(e!==t)return!1}}return!0})(n.config,t)?(n.timestamp=Date.now(),n.result):null})(t.parentElement,h);if(null!==n)return void X(n);const a=setTimeout((()=>{try{if(!t)return void X(!1);if("undefined"==typeof window||"function"!=typeof window.getComputedStyle)return void X(!1);let n=0,a=0,r=!1,i=t.parentElement,o=0;const s=20,l=10;for(;i&&l>a&&s>o;){try{const e=window.getComputedStyle(i);if(!e){i=i.parentElement,o++;continue}const t=e.backgroundColor,s=e.backgroundImage;if(t&&"rgba(0, 0, 0, 0)"!==t&&"transparent"!==t&&"initial"!==t&&"none"!==t){const e=t.match(/\d+/g);if(e&&e.length>=3){const t=Number(e[0]),i=Number(e[1]),o=Number(e[2]);if(!isNaN(t)&&!isNaN(i)&&!isNaN(o)&&(t>10||i>10||o>10)){const e=(.299*t+.587*i+.114*o)/255;!isNaN(e)&&isFinite(e)&&(n+=e,a++,r=!0)}}}s&&"none"!==s&&"initial"!==s&&(n+=.5,a++,r=!0)}catch(e){}if(!i)break;i=i.parentElement,o++}if(r&&a>0){const e=n/a;if(!isNaN(e)&&isFinite(e)){let n=.7;if("object"==typeof h&&null!==h){const e=h;if(void 0!==e.threshold){const t="number"!=typeof e.threshold||isNaN(e.threshold)?.7:e.threshold;n=Math.min(.9,Math.max(.1,t))}}const a=e>n;hi(t.parentElement,h,a,n),X(a)}else{const e=!1,n="object"==typeof h&&null!==h&&h.threshold||.7;hi(t.parentElement,h,e,n),X(e)}}else{const e=!1,n="object"==typeof h&&null!==h&&h.threshold||.7;hi(t.parentElement,h,e,n),X(e)}}catch(n){X(!1)}}),150);return()=>clearTimeout(a)}"boolean"==typeof h&&X(!1)}),[h,e]);const pe=o((()=>"boolean"==typeof h?h:("auto"===h||"object"==typeof h&&null!==h)&&Q),[h,Q]),ge=o(((e,t,n,a)=>"number"!=typeof e||isNaN(e)||!isFinite(e)?a:Math.min(n,Math.max(t,e))),[]),fe=u((()=>{const e=pe(),t=k?1.4:1,n=D?1.6:1,a={isOverLight:e,threshold:.7,opacity:e?Math.min(.6,Math.max(.2,.5*t*n)):0,contrast:1.4,brightness:.9,saturationBoost:1.3,shadowIntensity:.9,borderOpacity:.7};if("object"==typeof h&&null!==h){const e=h,r=ge(e.threshold,.1,1,a.threshold),i=ge(e.opacity,.1,1,a.opacity),o=ge(e.contrast,.5,2.5,a.contrast),s=ge(e.brightness,.5,2,a.brightness),l=ge(e.saturationBoost,.5,3,a.saturationBoost),c={...a,threshold:r,opacity:i*t*n,contrast:o,brightness:s,saturationBoost:l};return"undefined"==typeof process||process.env,c}return"undefined"==typeof process||process.env,a}),[h,pe,k,D,ge,S]),be=u((()=>ue||D&&b?"scale(0.98)":"scale(1)"),[ue,D,b]),ve=i(null),Se=o((()=>{H.current=!1,null!==V.current&&(cancelAnimationFrame(V.current),V.current=null)}),[]),ye=o((()=>{if(H.current)return;H.current=!0;const t=di.LERP_FACTOR,a=()=>{if(!H.current)return;if(!e.current)return void(H.current=!1);const r=U.current,i=F.current,o=i.x-r.x,s=i.y-r.y;if(.01>Math.abs(o)&&.01>Math.abs(s))return U.current={...i},z.current={...G.current},ei(n?.current||null,e.current,{mouseOffset:U.current,globalMousePosition:z.current,glassSize:ce,isHovered:k,isActive:D,isOverLight:fe.isOverLight,baseOverLightConfig:fe,effectiveBorderRadius:le,effectiveWithoutEffects:ue,effectiveReducedMotion:re,elasticity:f,directionalScale:D&&b?"scale(0.96)":"scale(1)",onClick:b,withLiquidBlur:N,blurAmount:E,saturation:A,padding:x,isFixedOrSticky:T}),void Se();U.current={x:Kr(r.x,i.x,t),y:Kr(r.y,i.y,t)};const l=z.current,c=G.current;z.current={x:Kr(l.x,c.x,t),y:Kr(l.y,c.y,t)},ei(n?.current||null,e.current,{mouseOffset:U.current,globalMousePosition:z.current,glassSize:ce,isHovered:k,isActive:D,isOverLight:fe.isOverLight,baseOverLightConfig:fe,effectiveBorderRadius:le,effectiveWithoutEffects:ue,effectiveReducedMotion:re,elasticity:f,directionalScale:D&&b?"scale(0.96)":"scale(1)",onClick:b,withLiquidBlur:N,blurAmount:E,saturation:A,padding:x,isFixedOrSticky:T}),V.current=requestAnimationFrame(a)};V.current=requestAnimationFrame(a)}),[e,n,ce,k,D,fe,le,ue,re,f,b,N,E,A,x,T,Se]),Ee=o((t=>{if(l&&c)return;if(ue)return;const n=d?.current||e.current;if(!n)return;let a=B.current;if(a&&0!==a.width&&0!==a.height||(a=n.getBoundingClientRect(),B.current=a),0===a.width||0===a.height)return;const r=Ur(a);F.current={x:(t.x-r.x)/a.width*100,y:(t.y-r.y)/a.height*100},G.current=t,H.current||ye()}),[d,e,l,c,ue,ye]);s((()=>{if(l&&c)return;if(ue)return;const t=Jr.subscribe(Ee);ye();const n=d?.current||e.current;let a=null;return n&&"undefined"!=typeof ResizeObserver&&(a=new ResizeObserver((()=>{null!==ve.current&&cancelAnimationFrame(ve.current),ve.current=requestAnimationFrame((()=>{const t=d?.current||e.current;t&&(B.current=t.getBoundingClientRect()),ve.current=null}))})),a.observe(n)),()=>{t(),Se(),null!==ve.current&&(cancelAnimationFrame(ve.current),ve.current=null),a&&a.disconnect()}}),[l,c,ue,Ee,ye,Se,d,e]),s((()=>{ei(n?.current||null,e.current,{mouseOffset:c||U.current,globalMousePosition:l||z.current,glassSize:ce,isHovered:k,isActive:D,isOverLight:fe.isOverLight,baseOverLightConfig:fe,effectiveBorderRadius:le,effectiveWithoutEffects:ue,effectiveReducedMotion:re,elasticity:f,directionalScale:D&&b?"scale(0.96)":"scale(1)",onClick:b,withLiquidBlur:N,blurAmount:E,saturation:A,padding:x})}),[k,D,ce,fe,le,ue,re,f,n,e,c,l,N,E,A,x,b]);const Ae=o((()=>M(!0)),[]),xe=o((()=>M(!1)),[]),Ne=o((()=>P(!0)),[]),Te=o((()=>P(!1)),[]),_e=o((e=>{!b||"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),b())}),[b]);return{isHovered:k,isActive:D,glassSize:ce,dynamicBorderRadius:$,effectiveBorderRadius:le,effectiveReducedMotion:re,effectiveHighContrast:de,effectiveWithoutEffects:ue,detectedOverLight:Q,globalMousePosition:he,mouseOffset:me,overLightConfig:fe,transformStyle:be,getShaderTime:oe,applyTimeBasedDistortion:se,handleMouseEnter:Ae,handleMouseLeave:xe,handleMouseDown:Ne,handleMouseUp:Te,handleKeyDown:_e}}const pi={mobile:{maxWidth:640,params:{distortionOctaves:3,displacementScale:.7,blurAmount:.8,animationSpeed:.8,chromaticIntensity:.5}},tablet:{minWidth:641,maxWidth:1024,params:{distortionOctaves:4,displacementScale:.85,blurAmount:.9,animationSpeed:.9,chromaticIntensity:.75}},desktop:{minWidth:1025,params:{distortionOctaves:5,displacementScale:1,blurAmount:1,animationSpeed:1,chromaticIntensity:1}}};function gi({baseParams:e,breakpoints:t=pi,enabled:n=!0,enablePerformanceAdjustment:a=!0,debug:l=!1}){const[c,d]=r(e),[u,h]=r("desktop"),[m,p]=r("high"),[g,f]=r(n),b=i(e),v=i(t);b.current=e,v.current=t;const S=o((()=>{if(!n||"undefined"==typeof window)return f(!1),d(b.current),void h("disabled");f(!0);const e=window.innerWidth,{name:t,params:r}=((e,t)=>{const n=Object.entries(t).filter((([e,t])=>void 0!==t.minWidth)).sort(((e,t)=>(t[1].minWidth||0)-(e[1].minWidth||0)));for(const[l,c]of n)if(e>=(c.minWidth||0))return{name:l,params:c.params};const a=Object.entries(t).filter((([e,t])=>void 0!==t.maxWidth)).sort(((e,t)=>(e[1].maxWidth||1/0)-(t[1].maxWidth||1/0)));for(const[l,c]of a)if(e<=(c.maxWidth||1/0))return{name:l,params:c.params};const r=Object.entries(t);if(0===r.length)return{name:"desktop",params:{distortionOctaves:5,displacementScale:1,blurAmount:1}};const i=r[0];if(!i)return{name:"desktop",params:{distortionOctaves:5,displacementScale:1,blurAmount:1}};const[o,s]=i;return{name:o,params:s.params}})(e,v.current);h(t);let i=((e,t)=>{const n={...e},a=["displacementScale","blurAmount","saturation","aberrationIntensity","animationSpeed","chromaticIntensity"];for(const i of a)void 0!==t[i]&&void 0!==e[i]&&(n[i]=e[i]*t[i]);const r=["distortionOctaves","distortionLacunarity","distortionGain"];for(const i of r)void 0!==t[i]&&(n[i]=t[i]);return n})(b.current,r);if(a){const e=(()=>{if("undefined"==typeof window||"undefined"==typeof navigator)return"high";const e=navigator.deviceMemory||4,t=navigator.hardwareConcurrency||4;return e>2&&t>2?4>e||4>t?"medium":"high":"low"})();p(e),i=((e,t)=>{if("high"===t)return e;const n="low"===t?.7:.85;return{...e,distortionOctaves:Math.max(2,Math.round((e.distortionOctaves||5)*n)),displacementScale:(e.displacementScale||1)*n,blurAmount:(e.blurAmount||1)*n,animationSpeed:(e.animationSpeed||1)*n,chromaticIntensity:(e.chromaticIntensity||1)*n}})(i,e)}d(i)}),[n,a,l]),y=(e=>{const t=i(null);return s((()=>()=>{t.current&&clearTimeout(t.current)}),[]),o(((...n)=>{t.current&&clearTimeout(t.current),t.current=setTimeout((()=>{e(...n)}),200)}),[e,200])})(S);return s((()=>{if(n)return S(),window.addEventListener("resize",y),()=>{window.removeEventListener("resize",y)}}),[n]),{responsiveParams:c,currentBreakpoint:u,performanceTier:m,isActive:g,recalculate:o((()=>{S()}),[S])}}function fi(){return{...pi}}function bi(e){return{...pi,...e}}function vi(e={}){const{enabled:t=!0,targetFps:n=60,minFps:a=45,scaleUpThreshold:l=58,lowFpsFrames:c=3,highFpsFrames:d=10,debug:u=!1,showOverlay:h=!1}=e,[m,p]=r({fps:0,frameTime:0,gpuMemory:null,qualityLevel:"medium",timestamp:0,isAutoScaling:!0,lowFpsCount:0}),[g,f]=r(!1),[b,v]=r(t),S=i(0),y=i(0),E=i(0),A=i(null),x=i(0),N=i(0),T=i("medium"),_=o((e=>{p((t=>({...t,...e,timestamp:performance.now()})))}),[]),C=o((e=>{if(g)return;const t=T.current;if(a>e)x.current++,N.current=0,x.current<c||"low"===t||(T.current="low",_({qualityLevel:"low",lowFpsCount:x.current}));else if(l>e)x.current=0,N.current=0;else if(N.current++,x.current=0,N.current>=d){const e="low"===t?"medium":"high";T.current=e,_({qualityLevel:e,lowFpsCount:0}),N.current=0}}),[g,a,l,c,d,u,_]),L=o((e=>{if(!b)return;S.current++;const t=e-E.current;if(E.current=e,e-y.current>=100){const n=e-y.current,a=Math.round(1e3*S.current/n);C(a),_({fps:a,frameTime:t,qualityLevel:T.current,lowFpsCount:x.current}),S.current=0,y.current=e}A.current=requestAnimationFrame(L)}),[b,C,_]);s((()=>{if(!b||"undefined"==typeof window)return;let e=!0;return(async()=>{const t=await new Promise((e=>{if("undefined"!=typeof window&&"undefined"!=typeof document)try{const r=document.createElement("canvas"),i=r.getContext("webgl")||r.getContext("experimental-webgl");if(i){const r=i.getExtension("WEBGL_debug_renderer_info");if(r){var t,n,a;const o=i.getParameter(r.UNMASKED_RENDERER_WEBGL);return void((null==(t=o)?void 0:Function.call.bind(Ra(t),t))?.("Integrated")?e(256):(null==(n=o)?void 0:Function.call.bind(Ra(n),n))?.("AMD")||(null==(a=o)?void 0:Function.call.bind(Ra(a),a))?.("NVIDIA")?e(512):e(null))}}}catch(r){}e(null)}));e&&_({gpuMemory:t})})(),()=>{e=!1}}),[b,_]),s((()=>{if(b)return y.current=performance.now(),E.current=performance.now(),A.current=requestAnimationFrame(L),()=>{null!==A.current&&(cancelAnimationFrame(A.current),A.current=null)};null!==A.current&&(cancelAnimationFrame(A.current),A.current=null)}),[b]);const I=o((e=>{f(!0),T.current=e,_({qualityLevel:e,isAutoScaling:!1})}),[_,u]),w=o((()=>{f(!1),x.current=0,N.current=0,_({isAutoScaling:!0,lowFpsCount:0})}),[_,u]),O=o((()=>{v((e=>!e))}),[]);var R,k;return{metrics:m,recommendedQuality:(R=m.fps,k=m.qualityLevel,58>R?45>R?"low":"high"===k?"high":"medium":"high"),isUnderperforming:m.fps<a,setQualityLevel:I,resetAutoScaling:w,toggleMonitoring:O}}function Si({metrics:e}){return null}function yi(e){switch(e){case"low":return{distortionOctaves:2,displacementScale:.6,blurAmount:.7,animationSpeed:.8,chromaticIntensity:.5};case"medium":return{distortionOctaves:4,displacementScale:.85,blurAmount:.9,animationSpeed:.95,chromaticIntensity:.75};case"high":return{distortionOctaves:5,displacementScale:1,blurAmount:1,animationSpeed:1,chromaticIntensity:1}}}const Ei=e=>{switch(e){case"high":return"var(--atomix-color-success, #4ade80)";case"medium":return"var(--atomix-color-warning, #fbbf24)";case"low":return"var(--atomix-color-danger, #ef4444)";default:return"#9ca3af"}},Ai=e=>58>e?45>e?"Critical":"Warning":"Optimal";if("undefined"!=typeof document){const e="perf-dashboard-keyframes";if(!document.getElementById(e)){const t=document.createElement("style");t.id=e,t.textContent="\n@keyframes perf-dashboard-pulse {\n 0%, 100% { opacity: 1; }\n 50% { opacity: 0.5; }\n}\n",document.head.appendChild(t)}}const xi=l((({metrics:n,isVisible:a=!0,onClose:r})=>{if(!a)return null;const i=58>(o=n.fps)?45>o?"var(--atomix-color-danger, #ef4444)":"var(--atomix-color-warning, #fbbf24)":"var(--atomix-color-success, #4ade80)";var o;const s=45>n.fps;return t("div",{className:"c-perf-dashboard u-position-fixed u-top-4 u-end-4 u-p-3 u-px-4 u-text-xs u-font-mono u-text-white u-rounded-md u-border u-border-white-alpha-10 u-shadow-lg",style:{zIndex:9999,minWidth:"12.5rem",backgroundColor:"rgba(17, 24, 39, 0.95)",backdropFilter:"blur(8px)",transition:"opacity 0.3s ease"},children:[t("div",{className:"u-flex u-items-center u-justify-between u-mb-2 u-pb-2 u-border-b u-border-white-alpha-10",children:[e("span",{className:"u-text-sm u-font-bold u-text-white",children:"Performance Monitor"}),r&&e("button",{className:"u-bg-transparent u-border-none u-p-0 u-line-height-1 u-text-base u-text-gray-400 u-cursor-pointer hover:u-text-white",onClick:r,"aria-label":"Close performance dashboard",style:{transition:"color 0.2s ease"},children:"×"})]}),t("div",{className:"u-flex u-items-center u-justify-between u-mb-1-5",children:[e("span",{className:"u-text-gray-400 u-me-3",children:"FPS"}),e("span",{className:"u-font-bold",style:{color:i},children:Math.round(n.fps)})]}),t("div",{className:"u-flex u-items-center u-justify-between u-mb-1-5",children:[e("span",{className:"u-text-gray-400 u-me-3",children:"Frame Time"}),t("span",{className:"u-font-bold",children:[n.frameTime.toFixed(2),"ms"]})]}),t("div",{className:"u-flex u-items-center u-justify-between u-mb-1-5",children:[e("span",{className:"u-text-gray-400 u-me-3",children:"Quality"}),e("span",{className:"u-font-bold u-text-uppercase",style:{fontSize:"0.6875rem",color:Ei(n.qualityLevel)},children:n.qualityLevel})]}),n.gpuMemory&&t("div",{className:"u-flex u-items-center u-justify-between u-mb-1-5",children:[e("span",{className:"u-text-gray-400 u-me-3",children:"GPU Memory"}),t("span",{className:"u-font-bold",children:["~",Math.round(n.gpuMemory/1024),"MB"]})]}),n.isAutoScaling&&e("div",{className:"u-mt-2 u-pt-2 u-border-t u-border-white-alpha-10 u-text-center",style:{fontSize:"0.625rem",color:"#6b7280"},children:"Auto-scaling active"}),t("div",{className:"u-flex u-items-center u-gap-2 u-mt-2 u-pt-2 u-border-t u-border-white-alpha-10",children:[e("div",{className:"u-rounded-full",style:{width:"0.5rem",height:"0.5rem",flexShrink:0,backgroundColor:i,...s&&{animation:"perf-dashboard-pulse 1s infinite"}}}),e("span",{className:"u-text-xs",style:{fontSize:"0.625rem",color:i},children:Ai(n.fps)})]})]})}));xi.displayName="PerformanceDashboard";const Ni={distortionOctaves:2,displacementScale:50,blurAmount:5,saturation:80,aberrationIntensity:.3,animationSpeed:.8,chromaticIntensity:.3,distortionLacunarity:1.5,distortionGain:.3},Ti={distortionOctaves:3,displacementScale:75,blurAmount:8,saturation:90,aberrationIntensity:.5,animationSpeed:1,chromaticIntensity:.5,distortionLacunarity:2,distortionGain:.4},_i={distortionOctaves:4,displacementScale:100,blurAmount:12,saturation:100,aberrationIntensity:.7,animationSpeed:1.2,chromaticIntensity:.7,distortionLacunarity:2.2,distortionGain:.5};function Ci(e){switch(e){case"performance":return Ni;case"balanced":default:return Ti;case"quality":return _i}}const Li={desktop:{minWidth:1024,params:{distortionOctaves:6,displacementScale:150,blurAmount:15,saturation:100,aberrationIntensity:1,animationSpeed:1,chromaticIntensity:1,distortionLacunarity:2.5,distortionGain:.6}},laptop:{minWidth:768,params:{..._i,distortionOctaves:5,displacementScale:120}},tablet:{minWidth:640,params:{...Ti,distortionOctaves:4,displacementScale:90}},mobile:{maxWidth:639,params:{...Ni,distortionOctaves:3,displacementScale:75,blurAmount:6}},mobileSmall:{maxWidth:375,params:{...Ni,distortionOctaves:2,displacementScale:50,blurAmount:4,saturation:70}}};function Ii(e){return 1024>e?768>e?640>e?375>e?Li.mobileSmall?.params||Ni:Li.mobile?.params||Ni:Li.tablet?.params||Ti:Li.laptop?.params||Ti:Li.desktop?.params||Ti}const wi={isMobile:()=>"undefined"!=typeof window&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),isTablet(){if("undefined"==typeof window)return!1;const e=window.innerWidth;return e>=640&&1024>e&&this.isMobile()},getRecommendedPreset(){return this.isMobile()?this.isTablet()?"balanced":"performance":"quality"},getPixelRatio:()=>"undefined"==typeof window?1:window.devicePixelRatio||1,hasTouchSupport:()=>"undefined"!=typeof window&&("ontouchstart"in window||navigator.maxTouchPoints>0)},Oi=c((function({children:r,displacementScale:o=Dr.DEFAULTS.DISPLACEMENT_SCALE,blurAmount:s=Dr.DEFAULTS.BLUR_AMOUNT,saturation:l=Dr.DEFAULTS.SATURATION,aberrationIntensity:c=Dr.DEFAULTS.ABERRATION_INTENSITY,elasticity:d=Dr.DEFAULTS.ELASTICITY,borderRadius:h,globalMousePosition:m,mouseOffset:p,mouseContainer:g=null,className:f="",padding:b=Dr.DEFAULTS.PADDING,overLight:v=Dr.DEFAULTS.OVER_LIGHT,style:S={},mode:y=Dr.DEFAULTS.MODE,onClick:E,shaderVariant:A="liquidGlass","aria-label":x,"aria-describedby":N,role:T,tabIndex:_,reducedMotion:C=!1,highContrast:L=!1,withoutEffects:I=!1,withLiquidBlur:w=!1,withBorder:O=!0,withOverLightLayers:R=Dr.DEFAULTS.ENABLE_OVER_LIGHT_LAYERS,debugPerformance:k=!1,debugOverLight:M=!1,height:D,width:P,withTimeAnimation:B=!1,animationSpeed:z=1,withMultiLayerDistortion:U=!1,distortionOctaves:F=3,distortionLacunarity:G=2,distortionGain:V=.5,distortionQuality:H="medium",devicePreset:$="balanced",disableResponsiveBreakpoints:Y=!1,isFixedOrSticky:K,...W},j){const q=i(null),Q=i(null),X=i(null),Z=u((()=>function(...e){return t=>{e.forEach((e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)}))}}(j,X)),[j]),{zIndex:J,...ee}=S,te=K||"fixed"===ee.position||"sticky"===ee.position,{isHovered:ne,isActive:ae,glassSize:re,effectiveBorderRadius:ie,effectiveReducedMotion:oe,effectiveHighContrast:se,effectiveWithoutEffects:le,overLightConfig:ce,globalMousePosition:de,mouseOffset:ue,transformStyle:he,getShaderTime:me,handleMouseEnter:pe,handleMouseLeave:ge,handleMouseDown:fe,handleMouseUp:be,handleKeyDown:ve}=mi({glassRef:q,contentRef:Q,wrapperRef:X,borderRadius:h,globalMousePosition:m,mouseOffset:p,mouseContainer:g,overLight:v,reducedMotion:C,highContrast:L,withoutEffects:I,elasticity:d,onClick:E,debugOverLight:M,debugPerformance:k,children:r,blurAmount:s,saturation:l,withLiquidBlur:w,padding:b,style:S,isFixedOrSticky:te,withTimeAnimation:B,animationSpeed:z,withMultiLayerDistortion:U,distortionOctaves:F,distortionLacunarity:G,distortionGain:V,distortionQuality:H});gi({baseParams:{...u((()=>Ci($)),[$]),distortionOctaves:Math.round((o||Dr.DEFAULTS.DISPLACEMENT_SCALE)/25),displacementScale:o||Dr.DEFAULTS.DISPLACEMENT_SCALE,blurAmount:s||Dr.DEFAULTS.BLUR_AMOUNT,saturation:l||Dr.DEFAULTS.SATURATION,aberrationIntensity:c||Dr.DEFAULTS.ABERRATION_INTENSITY,animationSpeed:1,chromaticIntensity:c||Dr.DEFAULTS.ABERRATION_INTENSITY},breakpoints:Li,enabled:!Y&&"undefined"!=typeof window,debug:!1});const{metrics:Se,toggleMonitoring:ye}=vi({enabled:k,debug:!1,showOverlay:!1});a.useEffect((()=>{k&&ye()}),[k]);const Ee=u((()=>ce.isOverLight),[ce.isOverLight]),Ae=R&&Ee,xe=u((()=>{if(!te)return{};const{position:e,top:t,left:n,right:a,bottom:r}=ee;return{...e&&{position:e},...void 0!==t&&{top:t},...void 0!==n&&{left:n},...void 0!==a&&{right:a},...void 0!==r&&{bottom:r}}}),[te,ee]);u((()=>{if(te){const{position:e,top:t,left:n,right:a,bottom:r,...i}=ee;return{...i}}return{...ee}}),[te,ee]);const Ne=[Dr.BASE_CLASS,oe&&Dr.BASE_CLASS+"--reduced-motion",se&&Dr.BASE_CLASS+"--high-contrast",le&&Dr.BASE_CLASS+"--disabled-effects",f].filter(Boolean).join(" "),Te=u((()=>({position:te?"absolute":ee.position||"absolute",top:te?ee.top??0:0,left:te?ee.left??0:0,right:te?ee.right??"auto":"auto",bottom:te?ee.bottom??"auto":"auto"})),[te,ee.position,ee.top,ee.left,ee.right,ee.bottom]),_e=u((()=>{Te.position;const e=(e,t)=>void 0!==e&&te?"number"==typeof e?e+"px":e:t>0&&te?t+"px":"100%",t=P??ee.width,n=D??ee.height;return{width:e(t,re.width),height:e(n,re.height)}}),[P,D,ee.width,ee.height,Te.position,re.width,re.height,te]),Ce=u((()=>{const e=ue.x,t=ue.y,n=Math.abs(e),a=Math.abs(t),r=Dr.CONSTANTS.GRADIENT;return{borderGradientAngle:r.BASE_ANGLE+e*r.ANGLE_MULTIPLIER,borderStop1:Math.max(r.BORDER_STOP_1.MIN,r.BORDER_STOP_1.BASE+t*r.BORDER_STOP_1.MULTIPLIER),borderStop2:Math.min(r.BORDER_STOP_2.MAX,r.BORDER_STOP_2.BASE+t*r.BORDER_STOP_2.MULTIPLIER),borderOpacities:[r.BORDER_OPACITY.BASE_1+n*r.BORDER_OPACITY.MULTIPLIER_LOW,r.BORDER_OPACITY.BASE_2+n*r.BORDER_OPACITY.MULTIPLIER_HIGH,r.BORDER_OPACITY.BASE_3+n*r.BORDER_OPACITY.MULTIPLIER_LOW,r.BORDER_OPACITY.BASE_4+n*r.BORDER_OPACITY.MULTIPLIER_HIGH],hoverPositions:{hover1:{x:r.CENTER_POSITION+e/r.HOVER_POSITION.DIVISOR_1,y:r.CENTER_POSITION+t/r.HOVER_POSITION.DIVISOR_1},hover2:{x:r.CENTER_POSITION+e/r.HOVER_POSITION.DIVISOR_2,y:r.CENTER_POSITION+t/r.HOVER_POSITION.DIVISOR_2},hover3:{x:r.CENTER_POSITION+e*r.HOVER_POSITION.MULTIPLIER_3,y:r.CENTER_POSITION+t*r.HOVER_POSITION.MULTIPLIER_3}},basePosition:{x:r.CENTER_POSITION+e*r.BASE_LAYER_MULTIPLIER,y:r.CENTER_POSITION+t*r.BASE_LAYER_MULTIPLIER},mx:e,my:t,absMx:n,absMy:a}}),[ue.x,ue.y]),Le=Math.max(0,Math.min(1,ce?.opacity??.4)),Ie=Math.max(0,Math.min(1,ce?.borderOpacity??1)),we=u((()=>({hover1:ne||ae?.5:0,hover2:ae?.5:0,hover3:ne?.4:ae?.8:0,base:Ee?Le||.4:0,over:Ee?1.1*(Le||.4):0})),[ne,ae,Ee,Le]),Oe=u((()=>{const e=Dr.CONSTANTS.PALETTE.WHITE,t=Dr.CONSTANTS.PALETTE.BLACK,{borderGradientAngle:n,borderStop1:a,borderStop2:r,borderOpacities:i,hoverPositions:o,basePosition:s,mx:l,my:c,absMx:d,absMy:u}=Ce;return{...void 0!==J&&{"--atomix-glass-base-z-index":J},"--atomix-glass-radius":ie+"px","--atomix-glass-transform":he||"none","--atomix-glass-container-position":""+(te?xe.position:Te.position),"--atomix-glass-position":""+(te?xe.position:Te.position),"--atomix-glass-top":(te?ee.top??0:0)+"px","--atomix-glass-left":(te?ee.left??0:0)+"px","--atomix-glass-right":te?ee.right??"auto":"auto","--atomix-glass-bottom":te?ee.bottom??"auto":"auto","--atomix-glass-width":_e.width,"--atomix-glass-height":_e.height,"--atomix-glass-border-width":"var(--atomix-spacing-0-5, 0.125rem)","--atomix-glass-blend-mode":Ee?"multiply":"overlay","--atomix-glass-border-gradient-1":`linear-gradient(${n}deg, rgba(${e}, 0) 0%, rgba(${e}, ${(i[0]??1)*Ie}) ${a}%, rgba(${e}, ${(i[1]??1)*Ie}) ${r}%, rgba(${e}, 0) 100%)`,"--atomix-glass-border-gradient-2":`linear-gradient(${n}deg, rgba(${e}, 0) 0%, rgba(${e}, ${(i[2]??1)*Ie}) ${a}%, rgba(${e}, ${(i[3]??1)*Ie}) ${r}%, rgba(${e}, 0) 100%)`,"--atomix-glass-hover-1-opacity":we.hover1,"--atomix-glass-hover-1-gradient":Ee?`radial-gradient(circle at ${o.hover1.x}% ${o.hover1.y}%, rgba(${t}, ${Dr.CONSTANTS.GRADIENT_OPACITY.HOVER_1.BLACK_START}) 0%, rgba(${t}, ${Dr.CONSTANTS.GRADIENT_OPACITY.HOVER_1.BLACK_MID}) ${Dr.CONSTANTS.GRADIENT_OPACITY.HOVER_1.BLACK_STOP}%, rgba(${t}, 0) ${Dr.CONSTANTS.GRADIENT_OPACITY.HOVER_1.BLACK_END}%)`:`radial-gradient(circle at ${o.hover1.x}% ${o.hover1.y}%, rgba(${e}, ${Dr.CONSTANTS.GRADIENT_OPACITY.HOVER_1.WHITE_START}) 0%, rgba(${e}, 0) ${Dr.CONSTANTS.GRADIENT_OPACITY.HOVER_1.WHITE_STOP}%)`,"--atomix-glass-hover-2-opacity":we.hover2,"--atomix-glass-hover-2-gradient":Ee?`radial-gradient(circle at ${o.hover2.x}% ${o.hover2.y}%, rgba(${t}, ${Dr.CONSTANTS.GRADIENT_OPACITY.HOVER_2.BLACK_START}) 0%, rgba(${t}, ${Dr.CONSTANTS.GRADIENT_OPACITY.HOVER_2.BLACK_MID}) ${Dr.CONSTANTS.GRADIENT_OPACITY.HOVER_2.BLACK_STOP}%, rgba(${t}, 0) ${Dr.CONSTANTS.GRADIENT_OPACITY.HOVER_2.BLACK_END}%)`:`radial-gradient(circle at ${o.hover2.x}% ${o.hover2.y}%, rgba(${e}, ${Dr.CONSTANTS.GRADIENT_OPACITY.HOVER_2.WHITE_START}) 0%, rgba(${e}, 0) ${Dr.CONSTANTS.GRADIENT_OPACITY.HOVER_2.WHITE_STOP}%)`,"--atomix-glass-hover-3-opacity":we.hover3,"--atomix-glass-hover-3-gradient":Ee?`radial-gradient(circle at ${o.hover3.x}% ${o.hover3.y}%, rgba(${t}, ${Dr.CONSTANTS.GRADIENT_OPACITY.HOVER_3.BLACK_START}) 0%, rgba(${t}, ${Dr.CONSTANTS.GRADIENT_OPACITY.HOVER_3.BLACK_MID}) ${Dr.CONSTANTS.GRADIENT_OPACITY.HOVER_3.BLACK_STOP}%, rgba(${t}, 0) ${Dr.CONSTANTS.GRADIENT_OPACITY.HOVER_3.BLACK_END}%)`:`radial-gradient(circle at ${o.hover3.x}% ${o.hover3.y}%, rgba(${e}, ${Dr.CONSTANTS.GRADIENT_OPACITY.HOVER_3.WHITE_START}) 0%, rgba(${e}, 0) ${Dr.CONSTANTS.GRADIENT_OPACITY.HOVER_3.WHITE_STOP}%)`,"--atomix-glass-base-opacity":we.base,"--atomix-glass-base-gradient":Ee?`linear-gradient(${Dr.CONSTANTS.BASE_GRADIENT.ANGLE}deg, rgba(${t}, ${Dr.CONSTANTS.BASE_GRADIENT.BLACK_START_BASE+l*Dr.CONSTANTS.BASE_GRADIENT.BLACK_START_MULTIPLIER}) 0%, rgba(${t}, ${Dr.CONSTANTS.BASE_GRADIENT.BLACK_MID_BASE+c*Dr.CONSTANTS.BASE_GRADIENT.BLACK_MID_MULTIPLIER}) ${Dr.CONSTANTS.BASE_GRADIENT.BLACK_MID_STOP}%, rgba(${t}, ${Dr.CONSTANTS.BASE_GRADIENT.BLACK_END_BASE+d*Dr.CONSTANTS.BASE_GRADIENT.BLACK_END_MULTIPLIER}) 100%)`:`rgba(${e}, ${Dr.CONSTANTS.BASE_GRADIENT.WHITE_OPACITY})`,"--atomix-glass-overlay-opacity":we.over,"--atomix-glass-overlay-gradient":Ee?`radial-gradient(circle at ${s.x}% ${s.y}%, rgba(${t}, ${Dr.CONSTANTS.OVERLAY_GRADIENT.BLACK_START_BASE+d*Dr.CONSTANTS.OVERLAY_GRADIENT.BLACK_START_MULTIPLIER}) 0%, rgba(${t}, ${Dr.CONSTANTS.OVERLAY_GRADIENT.BLACK_MID}) ${Dr.CONSTANTS.OVERLAY_GRADIENT.BLACK_MID_STOP}%, rgba(${t}, ${Dr.CONSTANTS.OVERLAY_GRADIENT.BLACK_END_BASE+u*Dr.CONSTANTS.OVERLAY_GRADIENT.BLACK_END_MULTIPLIER}) 100%)`:`rgba(${e}, ${Dr.CONSTANTS.OVERLAY_GRADIENT.WHITE_OPACITY})`,"--atomix-glass-overlay-highlight-opacity":we.over*Dr.CONSTANTS.OVERLAY_HIGHLIGHT.OPACITY_MULTIPLIER,"--atomix-glass-overlay-highlight-bg":`radial-gradient(circle at ${Dr.CONSTANTS.OVERLAY_HIGHLIGHT.POSITION_X}% ${Dr.CONSTANTS.OVERLAY_HIGHLIGHT.POSITION_Y}%, rgba(255, 255, 255, ${Dr.CONSTANTS.OVERLAY_HIGHLIGHT.WHITE_OPACITY}) 0%, transparent ${Dr.CONSTANTS.OVERLAY_HIGHLIGHT.STOP}%)`}}),[Ce,we,ie,he,_e,Ee,Ie,J,te,Te.position,xe.position,ee.top,ee.left,ee.right,ee.bottom]),Re=t=>e("div",{className:[Dr.BACKGROUND_LAYER_CLASS,"dark"===t?Dr.BACKGROUND_LAYER_DARK_CLASS:Dr.BACKGROUND_LAYER_BLACK_CLASS,Ee?Dr.BACKGROUND_LAYER_OVER_LIGHT_CLASS:Dr.BACKGROUND_LAYER_HIDDEN_CLASS].filter(Boolean).join(" ")});return t("div",{...W,ref:Z,className:Ne,style:{...Oe},role:T||(E?"button":void 0),tabIndex:E?_??0:_,"aria-label":x,"aria-describedby":N,"aria-disabled":!(!E||!le)||!E&&void 0,"aria-pressed":void 0,onKeyDown:E?ve:void 0,children:[e(Zr,{ref:q,contentRef:Q,className:f,style:{...ee},borderRadius:ie,displacementScale:le?0:"shader"===y?o*Dr.CONSTANTS.MULTIPLIERS.SHADER_DISPLACEMENT:Ee?o*Dr.CONSTANTS.MULTIPLIERS.OVER_LIGHT_DISPLACEMENT:o,blurAmount:le?0:s,saturation:se?Dr.CONSTANTS.SATURATION.HIGH_CONTRAST:Ee?l*ce.saturationBoost:l,aberrationIntensity:le?0:"shader"===y?c*Dr.CONSTANTS.MULTIPLIERS.SHADER_ABERRATION:c,glassSize:re,padding:b,mouseOffset:le?{x:0,y:0}:ue,globalMousePosition:le?{x:0,y:0}:de,onMouseEnter:pe,onMouseLeave:ge,onMouseDown:fe,onMouseUp:be,isHovered:ne,isActive:ae,overLight:Ee,overLightConfig:{contrast:ce.contrast,brightness:ce.brightness,shadowIntensity:ce.shadowIntensity,borderOpacity:ce.borderOpacity},onClick:E,mode:y,effectiveWithoutEffects:le,effectiveReducedMotion:oe,shaderVariant:A,withLiquidBlur:w,isFixedOrSticky:te,shaderTime:me(),withTimeAnimation:B,animationSpeed:z,withMultiLayerDistortion:U,distortionOctaves:F,distortionLacunarity:G,distortionGain:V,distortionQuality:H,children:r}),!!E&&t(n,{children:[e("div",{className:Dr.HOVER_1_CLASS}),e("div",{className:Dr.HOVER_2_CLASS}),e("div",{className:Dr.HOVER_3_CLASS})]}),Re("dark"),Re("black"),Ae&&t(n,{children:[e("div",{className:Dr.BASE_LAYER_CLASS}),e("div",{className:Dr.OVERLAY_LAYER_CLASS}),e("div",{className:Dr.OVERLAY_HIGHLIGHT_CLASS})]}),O&&t(n,{children:[e("span",{className:Dr.BORDER_BACKDROP_CLASS}),e("span",{className:Dr.BORDER_1_CLASS}),e("span",{className:Dr.BORDER_2_CLASS})]}),k&&Se&&e(xi,{metrics:Se,isVisible:!0,onClose:()=>{}})]})}));Oi.displayName="AtomixGlass";const Ri=l(Oi),ki=()=>e("i",{className:"c-accordion__icon","aria-hidden":"true",children:e("svg",{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","aria-hidden":"true",focusable:"false",children:e("polyline",{points:"6 9 12 15 18 9"})})}),Mi=c((({title:n,icon:a,iconPosition:r="right",isOpen:i,children:o,className:s="",...l},c)=>{const d=void 0===a?e(ki,{}):a;return t("button",{ref:c,type:"button",className:s,...l,children:[n&&e("span",{className:"c-accordion__title",children:n}),o,d]})}));Mi.displayName="AccordionHeader";const Di=c((({children:t,className:n="",panelRef:r,contentRef:i,...o},s)=>{const l=a.useMemo((()=>function(...e){return t=>{e.forEach((e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)}))}}(s,r)),[s,r]);return e("div",{ref:l,className:n,role:"region",...o,children:e("div",{className:Ga.SELECTORS.BODY.replace(".",""),ref:i,children:t})})}));Di.displayName="AccordionBody";const Pi=l((({title:r,children:i,defaultOpen:o=!1,isOpen:s,onOpenChange:l,disabled:c=!1,iconPosition:u="right",icon:h,className:m="",style:p,glass:g})=>{const f=d(),b="accordion-header-"+f,v="accordion-panel-"+f,{state:S,toggle:y,updatePanelHeight:E,panelRef:A,contentRef:x,generateClassNames:N,generateHeaderClassNames:T}=Pr({defaultOpen:o,disabled:c,iconPosition:u,isOpen:s,onOpenChange:l}),_=T(),C=Ga.SELECTORS.PANEL.replace(".",""),L=a.Children.toArray(i).some((e=>{var t;return a.isValidElement(e)&&Ra(t=["AccordionHeader","AccordionBody"]).call(t,e.type.displayName||"")})),I=e("div",{className:N(m)+(g?" c-accordion--glass":""),style:p,children:L?a.Children.map(i,(e=>{if(a.isValidElement(e)){const t=e.props;if("AccordionHeader"===e.type.displayName)return a.cloneElement(e,{id:b,className:`${_} ${t.className||""}`.trim(),onClick:e=>{y(),t?.onClick?.(e)},"aria-expanded":S.isOpen,"aria-controls":v,"aria-disabled":c,disabled:c,iconPosition:t.iconPosition||u});if("AccordionBody"===e.type.displayName)return a.cloneElement(e,{id:v,className:`${C} ${t.className||""}`.trim(),"aria-labelledby":b,panelRef:A,contentRef:x})}return e})):t(n,{children:[e(Mi,{id:b,className:_,onClick:y,"aria-expanded":S.isOpen,"aria-controls":v,"aria-disabled":c,disabled:c,title:r,icon:h,iconPosition:u}),e(Di,{id:v,className:C,"aria-labelledby":b,panelRef:A,contentRef:x,children:i})]})});if(g){const t={displacementScale:20,elasticity:0},n=!0===g?t:{...t,...g};return e(Ri,{...n,children:I})}return I}));Pi.displayName="Accordion";const Bi=Pi;Bi.Header=Mi,Bi.Body=Di;const zi=Bi,Ui=({height:n=24,width:a=24,color:r="currentColor",...i})=>t("svg",{width:a,height:n,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...i,children:[e("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z",fill:r}),e("path",{d:"M12 6c-3.31 0-6 2.69-6 6s2.69 6 6 6 6-2.69 6-6-2.69-6-6-6zm0 10c-2.21 0-4-1.79-4-4s1.79-4 4-4 4 1.79 4 4-1.79 4-4 4z",fill:r})]}),Fi=8e-4,Gi=4096,Vi=(e,t,n)=>{if("number"!=typeof e||"number"!=typeof t||"number"!=typeof n)return 0;const a=Math.max(0,Math.min(1,(n-e)/(t-e)));return a*a*(3-2*a)},Hi=(e,t)=>{if("number"!=typeof e||"number"!=typeof t||isNaN(e)||isNaN(t))return 0;const n=Math.max(Math.abs(e),Math.abs(t));if(0===n)return 0;const a=e/n,r=t/n;return n*Math.sqrt(a*a+r*r)},$i=(e,t,n,a,r)=>{if("number"!=typeof e||"number"!=typeof t||"number"!=typeof n||"number"!=typeof a||"number"!=typeof r)return 0;const i=Math.abs(e)-n+r,o=Math.abs(t)-a+r;return Math.min(Math.max(i,o),0)+Hi(Math.max(i,0),Math.max(o,0))-r},Yi=(e,t)=>({x:"number"!=typeof e||isNaN(e)?.5:Math.max(0,Math.min(1,e)),y:"number"!=typeof t||isNaN(t)?.5:Math.max(0,Math.min(1,t))}),Ki=e=>e&&"number"==typeof e.x&&"number"==typeof e.y&&!isNaN(e.x)&&!isNaN(e.y),Wi=(e,t,n)=>"number"!=typeof e||"number"!=typeof t||"number"!=typeof n||isNaN(e)?t:isNaN(t)?0:isNaN(n)?1:Math.max(t,Math.min(n,e)),ji=e=>{if("number"!=typeof e||isNaN(e))return 0;const t=Math.max(0,Math.min(1,e));return.5>t?4*t*t*t:1-Math.pow(-2*t+2,3)/2},qi=e=>"number"!=typeof e||isNaN(e)?0:1-Math.pow(1-Math.max(0,Math.min(1,e)),4),Qi=(e,t)=>{if("number"!=typeof e||"number"!=typeof t||isNaN(e)||isNaN(t))return 0;const n=255&Math.floor(e),a=255&Math.floor(t),r=e-Math.floor(e),i=t-Math.floor(t),o=ji(r),s=ji(i),l=(e,t)=>{if("number"!=typeof e||"number"!=typeof t)return 0;const n=43758.5453*Math.sin(12.9898*(e+57*t)+78.233);return n-Math.floor(n)},c=l(n,a),d=l(n+1,a),u=l(n,a+1),h=c+o*(d-c);return h+s*(u+o*(l(n+1,a+1)-u)-h)},Xi=(e,t,n=4)=>{if("number"!=typeof e||"number"!=typeof t||isNaN(e)||isNaN(t))return 0;const a=Math.max(1,Math.min(8,Math.floor(n)));let r=0,i=.5,o=1;for(let s=0;a>s;s++)r+=i*Qi(e*o,t*o),o*=2,i*=.5;return r},Zi=(e,t,n,a=0,r=0)=>{if("number"!=typeof e||"number"!=typeof t||"number"!=typeof n||"number"!=typeof a||"number"!=typeof r||isNaN(e)||isNaN(t)||isNaN(n)||isNaN(a)||isNaN(r))return{x:0,y:0};const i=Math.min(.02*n,.1);return{x:(e-a)*i,y:(t-r)*i}},Ji={liquidGlass:(e,t)=>{if(!Ki(e))return{x:.5,y:.5};const n=e.x-.5,a=e.y-.5,r=Date.now()*Fi,i=t&&Ki(t)?t.x-.5:0,o=t&&Ki(t)?t.y-.5:0,s=Hi(i,o),l=qi(1-Math.min(2*s,1)),c=Xi(12*(n+.5*i)+r,12*(a+.5*o)+.7*r,3)-.5,d=$i(n,a,.4,.3,.35),u=Vi(.8,0,d-.05),h=((e,t,n)=>{if("number"!=typeof e||"number"!=typeof t||isNaN(e)||isNaN(t)||isNaN(n))return{x:0,y:0};const a=Hi(e,t),r=Math.pow(Math.min(a,10),2)*n;return{x:e*(1+r),y:t*(1+r)}})(n,a,.4*.1),m=1.2*(h.x-n)*u,p=1.2*(h.y-a)*u,g=.018*Math.sin(8*(n+2*i)+2*r),f=.018*Math.cos(8*(a+2*o)+1.5*r),b=(.015*Math.sin(12*(n-i)+12*(a-o)+3*r)+.012*Math.cos(10*(n+i)-10*(a-o)-2*r))*l*s,v=(Math.sin(15*n+r)*Math.cos(15*a-r)*.008+Math.sin(20*n-.5*r)*Math.cos(20*a+.5*r)*.006)*u,S=.85*(g+f+.025*c),y=m+S+b+v,E=p+.8*S+.9*b+v,A=((e,t,n)=>{if("number"!=typeof e||"number"!=typeof t||"number"!=typeof n||isNaN(e)||isNaN(t)||isNaN(n))return{x:0,y:0};const a=Hi(e,t);if(0===a)return{x:0,y:0};const r=Math.atan2(t,e);return{x:Math.cos(r)*a*n,y:Math.sin(r)*a*n}})(n,a,.015*u),x=Vi(0,1,1.15*u),N=n+y+.5*A.x,T=a+E+.5*A.y;return Yi(Wi(N*x+.5,0,1),Wi(T*x+.5,0,1))},appleFluid:(e,t)=>{if(!Ki(e))return{x:.5,y:.5};const n=e.x-.5,a=e.y-.5,r=Date.now()*Fi*.6,i=t&&Ki(t)?t.x-.5:0,o=t&&Ki(t)?t.y-.5:0,s=Hi(i,o),l=qi(1-Math.min(1.5*s,1)),c=Xi(10*(n+.3*i)+r,10*(a+.3*o),5)-.5,d=Xi(10*(n-.3*i),10*(a-.3*o)+.8*r,5)-.5,u=$i(n,a,.42,.32,.38),h=Vi(.85,-.1,u),m=Math.sin(6*n+2*r)*Math.cos(4*a-r)*.025,p=Math.cos(4*n-r)*Math.sin(6*a+2*r)*.025,g=Math.atan2(a-o,n-i),f=l*s*.08,b=Math.cos(g+r)*f,v=a+(.035*d+p+Math.sin(g+r)*f)*h;return Yi(Wi(n+(.035*c+m+b)*h+.5,0,1),Wi(v+.5,0,1))},premiumGlass:(e,t)=>{if(!Ki(e))return{x:.5,y:.5};const n=e.x-.5,a=e.y-.5,r=Date.now()*Fi*.4,i=t&&Ki(t)?t.x-.5:0,o=t&&Ki(t)?t.y-.5:0,s=Hi(i,o),l=Hi(n,a),c=.3*Math.pow(Math.min(l,1),1.5),d=Math.atan2(a,n);let u=0,h=0;for(let S=0;3>S;S++){const e=5*(S+1),t=r*(1+.3*S),i=.01/(S+1);u+=Math.sin(n*e+t)*i,h+=Math.cos(a*e-t)*i}const m=Math.cos(d)*c*(1+.5*s),p=Math.sin(d)*c*(1+.5*s),g=Xi(8*n+r,8*a-r,2)-.5,f=$i(n,a,.43,.33,.36),b=Vi(.9,-.05,f),v=a+(p+h+.015*g)*b;return Yi(Wi(n+(m+u+.015*g)*b+.5,0,1),Wi(v+.5,0,1))},liquidMetal:(e,t)=>{if(!Ki(e))return{x:.5,y:.5};const n=e.x-.5,a=e.y-.5,r=Date.now()*Fi*1.2,i=t&&Ki(t)?t.x-.5:0,o=t&&Ki(t)?t.y-.5:0,s=Math.sin(20*n+4*r)*Math.cos(15*a-3*r)*.02,l=Math.cos(15*n-2*r)*Math.sin(20*a+5*r)*.015,c=.025*Xi(25*n+2*r,25*a-2*r,4),d=Math.atan2(a-o,n-i),u=Hi(n-i,a-o),h=.02*Math.sin(15*u-6*r)*qi(1-Math.min(2*u,1)),m=$i(n,a,.41,.31,.37),p=Vi(.88,-.08,m),g=n+(s+c+Math.cos(d)*h)*p,f=a+(l+.8*c+Math.sin(d)*h)*p;return Yi(Wi(g+.5,0,1),Wi(f+.5,0,1))},basiBasi:(e,t)=>{if(!Ki(e))return{x:.5,y:.5};const n=e.x-.5,a=e.y-.5,r=Date.now()*Fi*.5,i=t&&Ki(t)?t.x-.5:0,o=t&&Ki(t)?t.y-.5:0,s=Hi(i,o),l=qi(1-Math.min(1.2*s,1)),c=((e,t,n,a=1)=>"number"!=typeof e||"number"!=typeof t||"number"!=typeof n||"number"!=typeof a||isNaN(e)||isNaN(t)||isNaN(n)||isNaN(a)?.5:.5*(Math.sin(8*e+2*n)*Math.cos(8*t-2*n)*.5+Math.sin(8*(e+.5)*1.3-2*n*.8)*Math.cos(8*(t-.3)*1.3+2*n*.8)*.3+Math.sin(8*(e-.3)*.7+2*n*1.2)*Math.cos(8*(t+.4)*.7-2*n*1.2)*.2+1)*a)(n,a,r,.8),d=.02*(c-.5),u=Math.atan2(a,n),h=((e,t,n)=>{if("number"!=typeof e||"number"!=typeof t||"number"!=typeof n||isNaN(e)||isNaN(t)||isNaN(n)||isNaN(.025))return{r:{x:0,y:0},g:{x:0,y:0},b:{x:0,y:0}};const a=Hi(e,t),r=Math.min(.025*a,1),i=.8*r,o=1*r,s=1.2*r;return{r:{x:Math.cos(n)*i,y:Math.sin(n)*i},g:{x:Math.cos(n)*o,y:Math.sin(n)*o},b:{x:Math.cos(n)*s,y:Math.sin(n)*s}}})(n,a,u),m=(h.r.x+h.g.x+h.b.x)/3,p=(h.r.y+h.g.y+h.b.y)/3;let g=0,f=0;for(let $=0;7>$;$++){const e=Zi(n,a,($+1)/7,i,o),t=Xi((n+e.x)*(8+2*$)+r*(.5+.1*$),(a+e.y)*(8+2*$)-r*(.5+.1*$),3)-.5,s=1/($+1);g+=(e.x+.01*t)*s,f+=(e.y+.01*t)*s}g/=7,f/=7;const b=((e,t,n,a)=>"number"!=typeof e||"number"!=typeof t||"number"!=typeof a||isNaN(e)||isNaN(t)||isNaN(.5)||isNaN(a)?.5:Xi(5*e+.5*a,5*t-.5*a,3)*Math.exp(-1)*.5+.5)(n,a,0,r),v=Math.cos(u)*b*.015,S=Math.sin(u)*b*.015,y=((e,t,n,a=5)=>{if("number"!=typeof e||"number"!=typeof t||"number"!=typeof n||"number"!=typeof a||isNaN(e)||isNaN(t)||isNaN(n)||isNaN(a))return 0;const r=Math.max(1,Math.min(8,Math.floor(a)));let i=0,o=1,s=1;for(let l=0;r>l;l++)i+=Math.abs(Qi(e*s+n,t*s-n))*o,s*=2,o*=.5;return i})(6*n,6*a,r,6),E=.012*Math.cos(y*Math.PI*2),A=.012*Math.sin(y*Math.PI*2),x=((e,t,n)=>"number"!=typeof e||"number"!=typeof t||"number"!=typeof n||isNaN(e)||isNaN(t)||isNaN(n)?.5:.5*(.7*Xi(40*e+.3*n,40*t-.3*n,6)+.3*Xi(80*e,80*t,4)))(n,a,r),N=.008*(x-.5),T=.008*(x-.5),_=Hi(n,a),C=.35*Math.pow(Math.min(_,1),1.8)*(1+l*s*.8),L=Math.cos(u)*C,I=Math.sin(u)*C,w=Math.atan2(a-o,n-i),O=Hi(n-i,a-o),R=l*Math.sin(10*O-3*r)*.025,k=Math.cos(w+2*r)*R,M=Math.sin(w+2*r)*R,D=Math.sin(10*n+5*i+2.5*r)*Math.cos(8*a-2*r)*.018,P=Math.cos(8*n-2*r)*Math.sin(10*a+5*o+2.5*r)*.018,B=(.012*Math.sin(15*Math.min(_,10)-4*r)+.008*Math.cos(20*Math.min(_,10)+3*r))*l,z=Math.cos(u)*B,U=Math.sin(u)*B,F=$i(n,a,.44,.34,.39),G=Vi(.92,-.12,F),V=Vi(.85,.1,F),H=a+(1.2*I+.8*p+1.5*f+.9*S+1*A+.6*T+1.3*M+1.1*P+.7*U+.8*d)*G*V*.85;return Yi(Wi(n+(1.2*L+.8*m+1.5*g+.9*v+1*E+.6*N+1.3*k+1.1*D+.7*z+d)*G*V*.85+.5,0,1),Wi(H+.5,0,1))},plasma:(e,t)=>Ji.premiumGlass(e,t),waves:(e,t)=>Ji.liquidMetal(e,t),noise:(e,t)=>Ji.appleFluid(e,t)};var eo=Object.freeze({__proto__:null,ShaderDisplacementGenerator:class{constructor(e){if(this.options=e,this.canvasDPI=1,!this.validateOptions(e))throw Error("Invalid shader options provided");this.canvas=document.createElement("canvas"),this.canvas.width=Math.max(1,Math.min(Gi,Math.round(e.width*this.canvasDPI||256))),this.canvas.height=Math.max(1,Math.min(Gi,Math.round(e.height*this.canvasDPI||256))),this.canvas.style.display="none";const t=this.canvas.getContext("2d");if(!t)throw Error("AtomixGlass: Could not get 2D canvas context");this.context=t}validateOptions(e){try{return e&&"number"==typeof e.width&&e.width>0&&e.width<=Gi&&"number"==typeof e.height&&e.height>0&&e.height<=Gi&&"function"==typeof e.fragment}catch(t){return!1}}updateShader(e){try{const t=this.options.width*this.canvasDPI,n=this.options.height*this.canvasDPI;let a=0;const r=[];for(let l=0;n>l;l++)for(let i=0;t>i;i++){const o={x:i/t,y:l/n},s=this.options.fragment(o,e);let c=s.x*t-i,d=s.y*n-l;const u=Math.min(2*Math.min(i/t,(t-i)/t),2*Math.min(l/n,(n-l)/n));c*=Vi(0,.2,u),d*=Vi(0,.2,u),a=Math.max(a,Math.abs(c),Math.abs(d)),r.push(c,d)}a=Math.max(a,1);const i=this.context.createImageData(t,n),o=i.data;let s=0;for(let e=0;n>e;e++)for(let i=0;t>i;i++){const l=r[s++]||0,c=r[s++]||0,d=Math.min(1,Math.min(i,e,t-i-1,n-e-1)/2),u=l*d/a+.5,h=c*d/a+.5,m=4*(e*t+i);o[m]=Wi(255*u,0,255),o[m+1]=Wi(255*h,0,255),o[m+2]=Wi(255*h,0,255),o[m+3]=255}return this.context.putImageData(i,0,0),this.canvas.toDataURL()}catch(t){return""}}destroy(){try{this.context&&this.context.clearRect(0,0,this.canvas.width,this.canvas.height),this.canvas.width=0,this.canvas.height=0,this.canvas.remove()}catch(e){}}getScale(){return this.canvasDPI}},createFBMEngine:ni,fragmentShaders:Ji,liquidGlassWithTime:ri});const to={xs:16,sm:20,md:24,lg:32,xl:40},no=({name:t,size:n="md",weight:a="regular",color:r,className:i="",style:o,alt:s})=>{const l=S[t];return l?e("span",{className:`c-icon c-icon--${n} ${i}`,style:o,"aria-hidden":!s,title:s,children:e(l,{size:"string"==typeof n?to[n]||24:n,weight:a,color:r,"aria-label":s})}):null};no.displayName="Icon";const ao=l((({src:t,alt:n="User avatar",initials:a,icon:i,size:o="md",circle:s=!1,className:l="",disabled:c=!1,onClick:d,style:u,glass:h})=>{const[m,p]=r(!1),g=[yr.CLASSES.BASE,"md"!==o&&"c-avatar--"+o,s&&yr.CLASSES.CIRCLE,c&&"is-disabled",l].filter(Boolean).join(" ");return e("div",{className:g,onClick:d?e=>{!c&&d&&d(e)}:void 0,role:d?"button":void 0,tabIndex:d&&!c?0:void 0,"aria-disabled":c||void 0,style:u,children:t&&!m?e("img",{src:t,alt:n,className:"c-avatar__image",onError:()=>{p(!0)}}):e("span",a?{className:"c-avatar__initials",children:a}:i?{className:"c-avatar__icon",children:i}:{className:"c-avatar__icon",children:e(no,{name:"User",size:"xs"===o?"xs":"sm"===o?"sm":"md"})})})}));ao.displayName="Avatar";const ro=({children:n,max:a,stacked:r=!1,className:i="",style:o,moreText:s})=>{const l=[Er.CLASSES.BASE,r&&Er.CLASSES.STACKED,i].filter(Boolean).join(" "),c=h.toArray(n).filter((e=>m(e)&&e.type===ao)),d=void 0!==a&&c.length>a,u=d?c.slice(0,a):c,g=c.length-(a||0),f=m(c[0])?c[0].props:null,b=f?.size||"md",v=f?.circle||!1,S=[yr.CLASSES.BASE,Er.CLASSES.MORE,"md"!==b&&"c-avatar--"+b,v&&"c-avatar--circle"].filter(Boolean).join(" ");return t("div",{className:l,style:o,children:[u.map(((e,t)=>m(e)?p(e,{key:t,...e.props}):null)),d&&e("div",{className:S,children:s||"+"+g})]})};function io(e){const t={variant:"primary",size:"md",disabled:!1,...e};return{defaultProps:t,generateBadgeClass:e=>{const{variant:n=t.variant,size:a=t.size,disabled:r=t.disabled,className:i=""}=e;return`${Va.BASE_CLASS} ${n?`${Va.VARIANT_PREFIX}${n}`:""} ${"md"===a?"":`${Va.SIZE_PREFIX}${a}`} ${r?"c-badge--disabled":""} ${i}`.trim()}}}ro.displayName="AvatarGroup";const oo=l((({label:n,variant:a="primary",size:r="md",disabled:o=!1,icon:s,onRemove:l,"aria-label":c,className:d="",glass:u,style:h})=>{const{generateBadgeClass:m}=io({variant:a,size:r,disabled:o}),p=i(null),g=m({variant:a,size:r,disabled:o,className:`${d} ${u?"c-badge--glass":""}`.trim()}),f=t("span",{className:g,"aria-disabled":o,"aria-label":c,ref:p,style:h,children:[s&&e("span",{className:Va.ICON_CLASS,children:s}),e("span",{children:n}),l&&e("button",{type:"button",className:"c-badge__close",onClick:l,"aria-label":"Remove badge",disabled:o,children:"×"})]});if(u){const t={displacementScale:20,borderRadius:p.current?.getBoundingClientRect().width?p.current?.getBoundingClientRect().width/2:16,className:"c-badge--glass",elasticity:0},n=!0===u?t:{...t,...u};return e(Ri,{...n,children:f})}return f}));oo.displayName="Badge";const so=c((({children:t,className:n="",type:a,...r},i)=>{let o="o-container";return a&&(o="o-container-"+a),e("div",{ref:i,className:`${o} ${n}`.trim(),...r,children:t})}));so.displayName="Container";const lo=()=>({generateBlockClass:({spacing:e=kr.SPACING.DEFAULT,background:t="",fullWidth:n=!1,className:a=""})=>{const r=[kr.BASE_CLASS];if(e&&"none"!==e&&r.push(`${kr.SPACING_PREFIX}${e}`),t){const e=kr.CLASSES["BG_"+t.toUpperCase()];e&&r.push(e)}return n&&r.push(kr.CLASSES.FULL_WIDTH),a&&r.push(a),r.filter(Boolean).join(" ")}}),co=c((({children:t,as:n="section",spacing:a="md",container:r={},fullWidth:i=!1,className:o="",style:s,background:l="",...c},d)=>{const{generateBlockClass:u}=lo(),h=u({spacing:a,background:l,fullWidth:i,className:o});return e(n,{ref:d,className:h,style:s,...c,children:i?t:e(so,{type:r.type,className:r.className,children:t})})}));co.displayName="Block";const uo=c((({children:a,href:r,active:i,icon:o,onClick:s,className:l="",style:c,linkAs:d,linkProps:u={},...h},m)=>{const p=[Ya.CLASSES.ITEM,i?Ya.CLASSES.ACTIVE:"",l].filter(Boolean).join(" "),g=t(n,{children:[o&&e("span",{className:"c-breadcrumb__icon",children:o}),a]}),f={className:Ya.CLASSES.LINK,onClick:s,style:c,...u};return e("li",{ref:m,className:p,style:c,...h,children:r&&!i?d&&d?e(d,{href:r,to:r,...f,children:g}):e("a",{href:r,...f,children:g}):e("span",{className:Ya.CLASSES.LINK,children:g})})}));uo.displayName="BreadcrumbItem";const ho=l((function({items:t,divider:n,className:a="","aria-label":r="Breadcrumb",linkComponent:i,style:o,children:s}){const l=[Ya.CLASSES.BASE,a].filter(Boolean).join(" ");let c;if(t&&t.length>0)c=t.map(((n,a)=>{const r=a===t.length-1;return e(uo,{href:n.href,active:n.active||r,icon:n.icon,onClick:n.onClick,className:n.className,style:n.style,linkAs:i,children:n.label},a)}));else{const e=h.count(s);c=h.map(s,((t,n)=>{if(m(t)){const a=n===e-1,{active:r,linkAs:o,...s}=t.props;return p(t,{active:r??(!!a||void 0),linkAs:o??i})}return t}))}return e("nav",{"aria-label":r,style:o,children:e("ol",{className:l,children:c})})}));function mo(e){const t={variant:"primary",size:"md",fullscreen:!1,...e};return{defaultProps:t,generateSpinnerClass:e=>{const{variant:n=t.variant,size:a=t.size,fullscreen:r=t.fullscreen,className:i=""}=e,o="c-spinner";return`${o} ${n?`${o}--${n}`:""} ${"md"!==a?`${o}--${a}`:""} ${r?o+"--fullscreen":""} ${i}`.trim()}}}ho.displayName="Breadcrumb",ho.Item=uo;const po=l(c((({size:t="md",variant:n="primary",fullscreen:a=!1,className:r="",style:i,glass:o,"aria-label":s,role:l="status","aria-live":c="polite","aria-describe":d,...u},h)=>{const{generateSpinnerClass:m}=mo({size:t,variant:n,fullscreen:a}),p=m({size:t,variant:n,fullscreen:a,className:`${r} ${o?"c-spinner--glass":""}`.trim()}),g=e("div",{ref:h,className:p,style:i,role:l,"aria-label":s||"Loading","aria-live":c,"aria-describe":d,...u,children:e("span",{className:er.VISUALLY_HIDDEN,children:s||"Loading content..."})});if(o){const t={displacementScale:20,blurAmount:1,borderRadius:999,mode:"shader"},n=!0===o?t:{...t,...o};return e(Ri,{...n,children:g})}return g})));po.displayName="Spinner";class go{static setPrefix(e){this.prefix=e}static getPrefix(){return this.prefix}static camelToKebab(e){return e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}static kebabToCamel(e){return e.replace(/-([a-z])/g,(e=>e[1]?.toUpperCase()??""))}static cssVar(e){return`--${this.prefix}-${this.camelToKebab(e)}`}static bemClass(e,t,n){let a="c-"+e;return t&&(a+="__"+t),n&&(a+="--"+n),a}static variantClass(e,t){return`c-${e}--${t}`}static sizeClass(e,t){return`c-${e}--${t}`}static stateClass(e,t){return`c-${e}--${t}`}static utilityClass(e){return"u-"+e}static layoutClass(e){return"l-"+e}static objectClass(e){return"o-"+e}}go.prefix="atomix";var fo=at,bo=St,vo=ye,So=Jn,yo=TypeError,Eo="Reduce of empty array with no initial value",Ao=function(e){return function(t,n,a,r){var i=bo(t),o=vo(i),s=So(i);if(fo(n),0===s&&2>a)throw new yo(Eo);var l=e?s-1:0,c=e?-1:1;if(2>a)for(;;){if(l in o){r=o[l],l+=c;break}if(l+=c,e?0>l:l>=s)throw new yo(Eo)}for(;e?l>=0:s>l;l+=c)l in o&&(r=n(r,o[l],l,i));return r}},xo={left:Ao(!1),right:Ao(!0)},No=M,To=H,_o=Be,Co=Z,Lo=function(e){return _o.slice(0,e.length)===e},Io=Lo("Bun/")?"BUN":Lo("Cloudflare-Workers")?"CLOUDFLARE":Lo("Deno/")?"DENO":Lo("Node.js/")?"NODE":To.Bun&&"string"==typeof Bun.version?"BUN":To.Deno&&"object"==typeof Deno.version?"DENO":"process"===Co(To.process)?"NODE":To.window&&To.document?"BROWSER":"REST",wo=xo.left;Hn({target:"Array",proto:!0,forced:!("NODE"===Io)&&$e>79&&83>$e||!function(){var e=[].reduce;return!!e&&No((function(){e.call(null,(function(){return 1}),1)}))}()},{reduce:function(e){var t=arguments.length;return wo(this,e,t,t>1?arguments[1]:void 0)}});var Oo=oa("Array","reduce"),Ro=G,ko=Oo,Mo=Array.prototype,Do=k((function(e){var t=e.reduce;return e===Mo||Ro(Mo,e)&&t===Mo.reduce?ko:t}));function Po(t,n,r){if(!t)return r;if(a.isValidElement(t)||"string"==typeof t||"number"==typeof t)return t;if("object"==typeof t&&null!==t){const a=t;if(a.render&&"function"==typeof a.render)return a.render(n);if(a.component){const t=a.component;return e(t,{...n})}if(void 0!==a.children)return a.children}return r}function Bo(e){return"object"==typeof e&&null!==e&&("render"in e||"component"in e||"children"in e)}function zo(...e){const t=e.filter((e=>void 0!==e));if(0!==t.length)return 1===t.length?t[0]:Do(t).call(t,((e,t)=>({...e,...t})))}function Uo(t="div"){return function({slot:a,children:r,...i}){const o=i;return a?e(n,{children:Po(a,o,r)}):e(t,"string"==typeof t?{...i,children:r}:{...o,children:r})}}function Fo(e){return e}function Go(e,t,n){return a.useMemo((()=>Po(e,t,n)),[e,t,n])}const Vo=a.memo(c((({label:a,children:r,onClick:i,variant:s="primary",size:l="md",disabled:c=!1,loading:d=!1,loadingText:u,icon:h,iconName:m,iconSize:p="sm",iconPosition:g="start",iconOnly:f=!1,rounded:b=!1,fullWidth:v=!1,block:S=!1,active:y=!1,selected:E=!1,type:A="button",className:x="",as:N="button",href:T,target:_,glass:C,onHover:L,onFocus:I,onBlur:w,"aria-label":O,"aria-describedby":R,"aria-expanded":k,"aria-controls":M,tabIndex:D,style:P,linkComponent:B,slots:z,...U},F)=>{const G=c||d,V=!!T,H=m?e(no,{name:m,size:p}):h,$=[za.BASE_CLASS,go.variantClass(Pa.BUTTON_PREFIX,s),"md"!==l?go.sizeClass(Pa.BUTTON_PREFIX,l):"",f?go.stateClass(Pa.BUTTON_PREFIX,Pa.ICON_ELEMENT):"",b?go.stateClass(Pa.BUTTON_PREFIX,"rounded"):"",G?go.stateClass(Pa.BUTTON_PREFIX,"disabled"):"",C?go.stateClass(Pa.BUTTON_PREFIX,"glass"):"",d?za.CLASSES.LOADING:"",v?za.CLASSES.FULL_WIDTH:"",S?za.CLASSES.BLOCK:"",y?za.CLASSES.ACTIVE:"",E?za.CLASSES.SELECTED:"",x].filter(Boolean).join(" "),Y=o((e=>{G?e.preventDefault():i?.(e)}),[G,i]),K=o((e=>{G||L?.(e)}),[G,L]),W=o((e=>{G||I?.(e)}),[G,I]),j=o((e=>{G||w?.(e)}),[G,w]),q=d&&u?u:a||r,Q="sm"===l?"sm":"lg"===l?"md":"sm",X=O||(f?"string"==typeof a?a:"string"==typeof r?r:void 0:void 0),Z=t(n,{children:[d&&e("span",{className:go.bemClass(Pa.BUTTON_PREFIX,Pa.SPINNER_ELEMENT),"aria-hidden":"true",children:Po(z?.spinner,{className:go.bemClass(Pa.BUTTON_PREFIX,Pa.SPINNER_ELEMENT),size:Q,variant:"link"===s||"string"==typeof s&&s.startsWith("outline-")?"primary":"danger"===s?"error":s},e(po,{size:Q,variant:"link"===s||"string"==typeof s&&s.startsWith("outline-")?"primary":"danger"===s?"error":s}))}),H&&!d&&e("span",{className:go.bemClass(Pa.BUTTON_PREFIX,Pa.ICON_ELEMENT),"aria-hidden":"true",children:Po(z?.icon,{className:go.bemClass(Pa.BUTTON_PREFIX,Pa.ICON_ELEMENT),children:H,size:p},H)}),!f&&q&&e("span",{className:go.bemClass(Pa.BUTTON_PREFIX,Pa.LABEL_ELEMENT),children:Po(z?.label,{className:go.bemClass(Pa.BUTTON_PREFIX,Pa.LABEL_ELEMENT),children:q},q)})]}),J={className:$,onClick:Y,onMouseEnter:L?K:void 0,onFocus:I?W:void 0,onBlur:w?j:void 0,"aria-disabled":G,"aria-busy":d,"aria-label":X,"aria-describedby":R,"aria-expanded":k,"aria-controls":M,tabIndex:void 0!==D?D:G?-1:0,style:P,...U},ee=Po(z?.root,{className:$,children:Z,disabled:G,loading:d,onClick:Y,type:A,"aria-label":X,"aria-disabled":G,"aria-busy":d},(()=>{if(V){if(B){const t=B,n={...J,ref:F,href:G?void 0:T,to:G?void 0:T,target:_,rel:"_blank"===_?"noopener noreferrer":void 0};return e(t,{...n,children:Z})}return e("a",{...J,ref:F,href:G?void 0:T,target:_,rel:"_blank"===_?"noopener noreferrer":void 0,children:Z})}return e(N,{...J,ref:F,type:"button"===N?A:void 0,disabled:G,children:Z})})());if(C){const t={displacementScale:20,blurAmount:0,saturation:200,elasticity:0},n=!0===C?t:{...t,...C};return e(Ri,{...n,children:ee})}return ee})));Vo.displayName="Button";const Ho=({children:t,className:n="",style:a,"aria-label":r,role:i="group"})=>{const o=[Ua.CLASSES.BASE,n].filter(Boolean).join(" "),s=h.toArray(t).filter((e=>m(e)&&e.type===Vo));return e("div",{className:o,style:a,role:i,"aria-label":r,children:s.map(((e,t)=>m(e)?p(e,{key:t,...e.props}):null))})};Ho.displayName="ButtonGroup";const $o=c((({children:t,className:n="",...a},r)=>e("div",{ref:r,className:("c-callout__icon "+n).trim(),...a,children:t})));$o.displayName="CalloutIcon";const Yo=c((({children:t,className:n="",...a},r)=>e("div",{ref:r,className:("c-callout__message "+n).trim(),...a,children:t})));Yo.displayName="CalloutMessage";const Ko=c((({children:t,className:n="",...a},r)=>e("div",{ref:r,className:("c-callout__title "+n).trim(),...a,children:t})));Ko.displayName="CalloutTitle";const Wo=c((({children:t,className:n="",...a},r)=>e("div",{ref:r,className:("c-callout__text "+n).trim(),...a,children:t})));Wo.displayName="CalloutText";const jo=c((({children:t,className:n="",...a},r)=>e("div",{ref:r,className:("c-callout__actions "+n).trim(),...a,children:t})));jo.displayName="CalloutActions";const qo=c((({onClick:t,className:n="",...a},r)=>e("button",{ref:r,className:("c-callout__close-btn "+n).trim(),onClick:t,"aria-label":"Close",...a,children:e(no,{name:"X",size:"md"})})));qo.displayName="CalloutCloseButton";const Qo=c((({children:t,className:n="",...a},r)=>e("div",{ref:r,className:("c-callout__content "+n).trim(),...a,children:t})));Qo.displayName="CalloutContent";const Xo=l((({title:r,children:i,icon:o,variant:s="primary",onClose:l,actions:c,compact:d=!1,isToast:u=!1,glass:h,className:m,style:p,...g})=>{const{generateCalloutClass:f,handleClose:b}=function(e){const t={variant:"primary",compact:!1,isToast:!1,glass:!1,...e};return{defaultProps:t,generateCalloutClass:e=>{const{variant:n=t.variant,compact:a=t.compact,isToast:r=t.isToast,glass:i=t.glass,className:o=""}=e;return`c-callout ${n?"c-callout--"+n:""} ${a?"c-callout--compact":""} ${r?"c-callout--toast":""} ${i?"c-callout--glass":""} ${o}`.trim()},handleClose:e=>()=>{e&&e()}}}({variant:s,compact:d,isToast:u,glass:h,className:m,style:p}),v=()=>{var e,t;const n={role:"region"};return u?(n.role="alert",n["aria-live"]="polite"):Ra(e=["warning","error"]).call(e,s)?(n.role="alert",n["aria-live"]="assertive"):Ra(t=["info","success"]).call(t,s)&&(n.role="status",n["aria-live"]="polite"),n},S=a.Children.toArray(i).some((e=>{var t;return a.isValidElement(e)&&Ra(t=["CalloutIcon","CalloutMessage","CalloutTitle","CalloutText","CalloutActions","CalloutContent"]).call(t,e.type.displayName||"")}))?i:t(n,{children:[t("div",{className:"c-callout__content",children:[o&&e("div",{className:"c-callout__icon",children:o}),t("div",{className:"c-callout__message",children:[r&&e("div",{className:"c-callout__title",children:r}),i&&e("div",{className:"c-callout__text",children:i})]})]}),c&&e("div",{className:"c-callout__actions",children:c}),l&&e("button",{className:"c-callout__close-btn",onClick:b(l),"aria-label":"Close",children:e(no,{name:"X",size:"md"})})]});if(h){const t={displacementScale:30,borderRadius:8,elasticity:0},n=!0===h?t:{...t,...h};return e("div",{className:f({variant:s,compact:d,isToast:u,glass:h,className:m}),...v(),...g,style:p,children:e(Ri,{...n,children:e("div",{className:"c-callout__glass-content",style:{borderRadius:n.borderRadius},children:S})})})}return e("div",{className:f({variant:s,compact:d,isToast:u,glass:h,className:m}),...v(),...g,style:p,children:S})}));Xo.displayName="Callout",Xo.Icon=$o,Xo.Message=Yo,Xo.Title=Ko,Xo.Text=Wo,Xo.Actions=jo,Xo.CloseButton=qo,Xo.Content=Qo;const Zo=c((({title:n,subtitle:a,action:r,icon:i,children:o,className:s="",...l},c)=>{const d=`${br.SELECTORS.HEADER.substring(1)} ${s}`.trim();return t("div",{ref:c,className:d,...l,children:[i&&e("div",{className:br.SELECTORS.ICON.substring(1),children:i}),(n||a)&&t("div",{children:[n&&e("h3",{className:br.SELECTORS.TITLE.substring(1),children:n}),a&&e("p",{className:br.SELECTORS.TEXT.substring(1),children:a})]}),r&&e("div",{className:br.SELECTORS.ACTIONS.substring(1),children:r}),o]})}));Zo.displayName="CardHeader";const Jo=c((({scrollable:t=!1,maxHeight:n,children:a,className:r="",style:i,...o},s)=>{const l=`${br.SELECTORS.BODY.substring(1)} ${t?"c-card__body--scrollable":""} ${r}`.trim(),c={...i,...t&&n?{maxHeight:"number"==typeof n?n+"px":n,overflowY:"auto"}:{}};return e("div",{ref:s,className:l,style:c,...o,children:a})}));Jo.displayName="CardBody";const es=c((({align:t,children:n,className:a="",style:r,...i},o)=>{const s=`${br.SELECTORS.FOOTER.substring(1)} ${t?"c-card__footer--align-"+t:""} ${a}`.trim();return e("div",{ref:o,className:s,style:r,...i,children:n})}));es.displayName="CardFooter";const ts=a.memo(c((({size:a="md",variant:r="",appearance:i="filled",elevation:s="none",hoverable:l=!1,hoverElevation:c="md",row:d=!1,flat:h=!1,active:m=!1,disabled:p=!1,loading:g=!1,selected:f=!1,interactive:b=!1,header:v,image:S,imageAlt:y="Card image",title:E,text:A,actions:x,icon:N,footer:T,children:_,onClick:C,onHover:L,onFocus:I,href:w,target:O,linkComponent:R,glass:k,role:M,"aria-label":D,"aria-describedby":P,tabIndex:B,className:z="",style:U,...F},G)=>{const V=!!(C||w||b),H=p||g,$=u((()=>[br.CLASSES.BASE,"sm"===a?br.CLASSES.SM:"","md"===a?br.CLASSES.MD:"","lg"===a?br.CLASSES.LG:"",r?"c-card--"+r:"","filled"===i?br.CLASSES.FILLED:"","outlined"===i?br.CLASSES.OUTLINED:"","ghost"===i?br.CLASSES.GHOST:"","elevated"===i?br.CLASSES.ELEVATED:"","none"===s?br.CLASSES.ELEVATION_NONE:"","sm"===s?br.CLASSES.ELEVATION_SM:"","md"===s?br.CLASSES.ELEVATION_MD:"","lg"===s?br.CLASSES.ELEVATION_LG:"","xl"===s?br.CLASSES.ELEVATION_XL:"",l?"c-card--hoverable":"",l&&c?"c-card--hover-elevation-"+c:"",d?br.CLASSES.ROW:"",h?br.CLASSES.FLAT:"",m?br.CLASSES.ACTIVE:"",p?br.CLASSES.DISABLED:"",g?br.CLASSES.LOADING:"",f?br.CLASSES.SELECTED:"",b||V?br.CLASSES.INTERACTIVE:"",k?br.CLASSES.GLASS:"",z].filter(Boolean).join(" ")),[a,r,i,s,l,c,d,h,m,p,g,f,b,V,k,z]),Y=u((()=>M||(w?"link":V?"button":"article")),[M,w,V]),K=o((e=>{H?e.preventDefault():C?.(e)}),[H,C]),W=o((e=>{H?e.preventDefault():!V||"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),C&&C(e))}),[H,V,C]),j=o((e=>{H||L?.(e)}),[H,L]),q=o((e=>{H||I?.(e)}),[H,I]),Q=u((()=>void 0!==B?B:H?-1:V?0:void 0),[B,H,V]),X=u((()=>t(n,{children:[g&&e("div",{className:"c-card__loading","aria-label":"Loading",children:e("div",{className:"c-card__spinner"})}),(S||N||v)&&t("div",{className:br.SELECTORS.HEADER.substring(1),children:[v,S&&e("img",{src:S,alt:y,className:br.SELECTORS.IMAGE.substring(1),loading:"lazy"}),N&&e("div",{className:br.SELECTORS.ICON.substring(1),children:N})]}),t("div",{className:br.SELECTORS.BODY.substring(1),children:[E&&e("h3",{className:br.SELECTORS.TITLE.substring(1),children:E}),A&&e("p",{className:br.SELECTORS.TEXT.substring(1),children:A}),_]}),x&&e("div",{className:br.SELECTORS.ACTIONS.substring(1),children:x}),T&&e("div",{className:br.SELECTORS.FOOTER.substring(1),children:T})]})),[g,S,y,N,v,E,A,_,x,T]),Z={className:$,style:U,role:Y,"aria-label":D,"aria-describedby":P,"aria-disabled":!!H||void 0,tabIndex:Q,onClick:V?K:void 0,onKeyDown:V?W:void 0,onMouseEnter:L?j:void 0,onFocus:I?q:void 0,...F};if(w&&!H){let t;return t=R?e(R,{...Z,ref:G,href:w,to:w,target:O,rel:"_blank"===O?"noopener noreferrer":void 0,children:X}):e("a",{...Z,ref:G,href:w,target:O,rel:"_blank"===O?"noopener noreferrer":void 0,children:X}),k?e(Ri,{...!0===k?{}:k,elasticity:0,children:t}):t}const J=e("div",{...Z,ref:G,children:X});return k?e(Ri,{...!0===k?{}:k,elasticity:0,children:J}):J})));ts.displayName="Card";const ns=ts;ns.Header=Zo,ns.Body=Jo,ns.Footer=es;const as=ns,rs=({elevationClass:t="is-elevated",className:n="",style:a,children:s,onClick:l,...c})=>{const{getCardProps:d}=((e={})=>{const{elevationEffect:t=!1,elevationClass:n=br.CLASSES.ACTIVE,flipEffect:a=!1,flipTrigger:s="click",focusEffect:l=!1,clickable:c=!1,onClick:d}=e,u=i(null),h=i(null),m=i(null),[p,g]=r(!1),[f,b]=r(!1),[v,S]=r(!1),[y,E]=r(!1),A=o((e=>{a&&"click"===s&&g((e=>!e)),d&&d(e)}),[a,s,d]),x=o((e=>{"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),a&&"click"===s&&g((e=>!e)),d&&d(e))}),[a,s,d]),N=o((()=>{E(!0),t&&b(!0),a&&"hover"===s&&g(!0)}),[t,a,s]),T=o((()=>{E(!1),t&&b(!1),a&&"hover"===s&&g(!1)}),[t,a,s]),_=o((()=>{S(!0)}),[]),C=o((()=>{S(!1)}),[]),L=o((()=>({className:[br.CLASSES.BASE,f?n:"",p?br.CLASSES.FLIPPED:"",v&&l?br.CLASSES.FOCUSED:"",c?br.CLASSES.CLICKABLE:""].filter(Boolean).join(" "),ref:u,tabxwIndex:c||a?0:-1,role:c?"button":void 0,onMouseEnter:N,onMouseLeave:T,onFocus:_,onBlur:C,onClick:A,onKeyDown:x})),[f,p,v,n,l,c,N,T,_,C,A,x,a]);return{cardRef:u,frontRef:h,backRef:m,isFlipped:p,isElevated:f,isFocused:v,isHovered:y,handleClick:A,handleKeyDown:x,handleMouseEnter:N,handleMouseLeave:T,handleFocus:_,handleBlur:C,getCardProps:L}})({elevationEffect:!0,elevationClass:t,clickable:!!l,onClick:l,focusEffect:!0}),u=d();return e("div",{className:`${n} ${u.className}`,ref:u.ref,style:a,tabIndex:u.tabIndex,role:u.role,onMouseEnter:u.onMouseEnter,onMouseLeave:u.onMouseLeave,onFocus:u.onFocus,onBlur:u.onBlur,onClick:u.onClick,onKeyDown:u.onKeyDown,children:e(as,{...c,className:"",onClick:void 0,children:s})})};function is(e){const[t,n]=r({hoveredPoint:null,selectedPoints:[],zoomLevel:1,panOffset:{x:0,y:0},panEnabled:!1,isAnimating:!1,isDragging:!1,dragStart:null,crosshair:null,brushSelection:null,focusedPointIndex:0,touchState:{touches:[],lastDistance:0,isPinching:!1,isTouch:!1,lastTouchTime:0},penState:{isPen:!1,pressure:0,tiltX:0,tiltY:0}}),a=i(null);s((()=>{const e=a.current;return()=>{e&&cancelAnimationFrame(e)}}),[]);const l=o(((e,t,a,r,i,o)=>{n((n=>({...n,hoveredPoint:{datasetIndex:e,pointIndex:t,x:a,y:r,clientX:i,clientY:o}})))}),[]),c=o((()=>{n((e=>({...e,hoveredPoint:null})))}),[]),d=o(((e,t)=>{n((n=>{const a=n.selectedPoints.some((n=>n.datasetIndex===e&&n.pointIndex===t));return{...n,selectedPoints:a?n.selectedPoints.filter((n=>!(n.datasetIndex===e&&n.pointIndex===t))):[...n.selectedPoints,{datasetIndex:e,pointIndex:t}]}}))}),[]),u=o(((e,t,a)=>{n((n=>{const r=1-.001*e,i=Math.max(.1,Math.min(10,n.zoomLevel*r)),o=i/n.zoomLevel,s={x:t?t-(t-n.panOffset.x)*o:n.panOffset.x,y:a?a-(a-n.panOffset.y)*o:n.panOffset.y};return{...n,zoomLevel:i,panOffset:s}}))}),[]),h=o(((e,t)=>{n((n=>({...n,panOffset:{x:n.panOffset.x+e,y:n.panOffset.y+t}})))}),[]),m=o(((e,t)=>{n((n=>({...n,isDragging:!0,dragStart:{x:e,y:t}})))}),[]),p=o((()=>{n((e=>({...e,isDragging:!1,dragStart:null})))}),[]),g=o(((e,t)=>{n((n=>({...n,crosshair:{x:e,y:t}})))}),[]),f=o((()=>{n((e=>({...e,crosshair:null})))}),[]),b=o((e=>{const t=Array.from(e.touches).map((e=>({id:e.identifier,x:e.clientX,y:e.clientY})));n((n=>{const a={...n,touchState:{...n.touchState,touches:t,isTouch:!0,lastTouchTime:Date.now()}};if(1===t.length&&t[0]&&n.panEnabled){const n=e.target.getBoundingClientRect(),r=t[0].x-n.left,i=t[0].y-n.top;return{...a,isDragging:!0,dragStart:{x:r,y:i}}}if(2===t.length&&t[0]&&t[1]){const e=Math.sqrt(Math.pow(t[1].x-t[0].x,2)+Math.pow(t[1].y-t[0].y,2));return{...a,touchState:{...a.touchState,lastDistance:e,isPinching:!0},isDragging:!1}}return a}))}),[]),v=o((e=>{e.preventDefault();const t=Array.from(e.touches).map((e=>({id:e.identifier,x:e.clientX,y:e.clientY})));n((n=>{const a=e.target.getBoundingClientRect();if(1===t.length&&t[0]&&n.isDragging&&n.dragStart&&n.panEnabled){const e=t[0].x-a.left,r=t[0].y-a.top,i=n.touchState.touches[0];let o,s;i?(o=e-(i.x-a.left),s=r-(i.y-a.top)):(o=e-n.dragStart.x,s=r-n.dragStart.y);const l=.6,c=o*l,d=s*l;return Math.abs(c)>1||Math.abs(d)>1?{...n,panOffset:{x:n.panOffset.x+c,y:n.panOffset.y+d},touchState:{...n.touchState,touches:t}}:{...n,touchState:{...n.touchState,touches:t}}}if(2===t.length&&t[0]&&t[1]&&n.touchState.isPinching){const e=Math.sqrt(Math.pow(t[1].x-t[0].x,2)+Math.pow(t[1].y-t[0].y,2));if(n.touchState.lastDistance>0){const r=e/n.touchState.lastDistance,i=Math.max(.1,Math.min(10,n.zoomLevel*r)),o=(t[0].x+t[1].x)/2-a.left,s=(t[0].y+t[1].y)/2-a.top,l=i/n.zoomLevel,c={x:o-(o-n.panOffset.x)*l,y:s-(s-n.panOffset.y)*l};return{...n,zoomLevel:i,panOffset:c,touchState:{...n.touchState,touches:t,lastDistance:e}}}return{...n,touchState:{...n.touchState,touches:t,lastDistance:e}}}return{...n,touchState:{...n.touchState,touches:t}}}))}),[]),S=o((e=>{const t=Array.from(e.touches).map((e=>({id:e.identifier,x:e.clientX,y:e.clientY})));n((n=>{if(0===t.length)return{...n,isDragging:!1,dragStart:null,touchState:{...n.touchState,touches:[],isPinching:!1,lastDistance:0,isTouch:!1}};if(1===t.length&&n.panEnabled){const a=e.target.getBoundingClientRect(),r=t[0].x-a.left,i=t[0].y-a.top;return{...n,dragStart:{x:r,y:i},touchState:{...n.touchState,touches:t,isPinching:!1,lastDistance:0}}}if(2===t.length){const e=Math.sqrt(Math.pow(t[1].x-t[0].x,2)+Math.pow(t[1].y-t[0].y,2));return{...n,touchState:{...n.touchState,touches:t,lastDistance:e,isPinching:!0},isDragging:!1}}return{...n,touchState:{...n.touchState,touches:t}}}))}),[]),y=o((e=>{"pen"===e.pointerType&&n((t=>({...t,penState:{...t.penState,isPen:!0,pressure:e.pressure,tiltX:e.tiltX,tiltY:e.tiltY}})))}),[]),E=o((e=>{"pen"===e.pointerType&&n((t=>({...t,penState:{...t.penState,pressure:e.pressure,tiltX:e.tiltX,tiltY:e.tiltY}})))}),[]),A=o((e=>{"pen"===e.pointerType&&n((e=>({...e,penState:{...e.penState,isPen:!1,pressure:0,tiltX:0,tiltY:0}})))}),[]),x=o(((e,t=Or.DEFAULT_WIDTH,n=Or.DEFAULT_HEIGHT,a={top:20,right:20,bottom:30,left:40},r)=>{if(!e||0===e.length)return null;let i=0,o=1/0,s=-1/0,l=!1;for(const h of e)if(h.data){i+=h.data.length;const{min:e,max:t,hasValid:n}=os(h.data);n&&(o>e&&(o=e),t>s&&(s=t),l=!0)}if(0===i)return null;l||(o=0,s=0);const c=s-o||1,d=t-a.left-a.right,u=n-a.top-a.bottom;return{xScale:(e,t=i)=>t>1?a.left+e/(t-1)*d:a.left+d/2,yScale:e=>a.top+u-(e-o)/c*u,minValue:o,maxValue:s,valueRange:c,innerWidth:d,innerHeight:u,width:t,height:n,padding:a}}),[]),N=o((e=>{if(0>=e)return[];const t=[];for(let n=0;e>n;n++){const e=n%Or.DEFAULT_COLORS.length;t.push(Or.DEFAULT_COLORS[e])}return t}),[]),T=i(null);return{interactionState:t,setInteractionState:n,handlePointHover:l,handlePointLeave:c,handlePointClick:d,handleZoom:u,handlePan:h,handleDragStart:m,handleDragEnd:p,handleCrosshair:g,clearCrosshair:f,handleTouchStart:b,handleTouchMove:v,handleTouchEnd:S,handlePointerDown:y,handlePointerMove:E,handlePointerUp:A,calculateScales:x,getChartColors:N,svgRef:T}}function os(e){let t=1/0,n=-1/0,a=!1;if(e&&e.length>0)for(let r=0;r<e.length;r++){const i=e[r];if(i&&"number"==typeof i.value){const e=i.value;t>e&&(t=e),e>n&&(n=e),a=!0}}return{min:t,max:n,hasValid:a}}rs.displayName="ElevationCard";const ss=l(c((({chartType:n="line",groups:a=[],enableDefaults:l=!0,defaults:c={refresh:!0,export:!0,fullscreen:!0,settings:!0,zoom:!0,pan:!0,reset:!0},exportFormats:d=["png","svg","csv"],size:h="md",position:m="top",onRefresh:p,onExport:g,onFullscreen:f,onSettings:b,onZoomIn:v,onZoomOut:S,onZoomReset:y,onPanToggle:E,onReset:A,onGridToggle:x,onLegendToggle:N,onTooltipsToggle:T,onAnimationsToggle:_,state:C={},className:L="",...I},w)=>{const[O,R]=r(!1),[k,M]=r(!1),D=i(null),P=i(null),B=i(null),z=i(null),U=u((()=>a&&a.length>0?{refresh:c.refresh??!0,export:c.export??!0,fullscreen:c.fullscreen??!0,settings:c.settings??!0,zoom:a.some((e=>e.actions.some((e=>"zoom-in"===e.id||"zoom-out"===e.id)))),pan:a.some((e=>e.actions.some((e=>"pan"===e.id)))),reset:a.some((e=>e.actions.some((e=>"reset"===e.id)))),grid:c.grid??!0,legend:c.legend??!0,tooltips:c.tooltips??!0,animations:c.animations??!0}:c),[a,c]);s((()=>{const e=e=>{D.current&&!D.current.contains(e.target)&&B.current&&!B.current.contains(e.target)&&R(!1),P.current&&!P.current.contains(e.target)&&z.current&&!z.current.contains(e.target)&&M(!1)};if(O||k)return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}}),[O,k]),s((()=>{const e=e=>{e.target instanceof HTMLInputElement||e.target instanceof HTMLTextAreaElement||e.target instanceof HTMLElement&&e.target.isContentEditable||((e.ctrlKey||e.metaKey)&&"r"===e.key&&U.refresh&&p&&(e.preventDefault(),p()),(e.ctrlKey||e.metaKey)&&"e"===e.key&&U.export&&g&&(e.preventDefault(),R(!O)),"F11"===e.key&&U.fullscreen&&f&&(e.preventDefault(),f(!C.isFullscreen))," "===e.key&&U.pan&&E&&(e.preventDefault(),E(!C.panEnabled)),"r"!==e.key&&"R"!==e.key||e.ctrlKey||e.metaKey||!U.reset||(e.preventDefault(),y?.(),A?.()),"+"!==e.key&&"="!==e.key||U.zoom&&v&&(e.preventDefault(),v()),"-"!==e.key&&"_"!==e.key||U.zoom&&S&&(e.preventDefault(),S()),"Escape"===e.key&&(R(!1),M(!1)))};return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}}),[U,p,g,f,E,y,A,v,S,C,O]);const F=o((()=>{const e=[];return U.refresh&&p&&e.push({id:"refresh",label:"Refresh",icon:"ArrowClockwise",onClick:p,disabled:C.isRefreshing,tooltip:"Refresh chart data (Ctrl+R)",shortcut:"Ctrl+R"}),U.export&&g&&e.push({id:"export",label:"Export",icon:"Download",onClick:()=>R(!O),disabled:C.isExporting,variant:"primary",tooltip:"Export chart (Ctrl+E)",shortcut:"Ctrl+E"}),[{id:"data-actions",label:"Data",actions:e,separator:!0}]}),[U,p,g,C,O]),G=o((()=>{const e=[];return U.zoom&&(v||S)&&e.push({id:"zoom-in",label:"Zoom In",icon:"MagnifyingGlassPlus",onClick:()=>v?.(),tooltip:"Zoom in (+)",shortcut:"+"},{id:"zoom-out",label:"Zoom Out",icon:"MagnifyingGlassMinus",onClick:()=>S?.(),tooltip:"Zoom out (-)",shortcut:"-"}),U.pan&&E&&e.push({id:"pan",label:"Pan",icon:"ArrowsOutCardinal",onClick:()=>E?.(!C.panEnabled),active:C.panEnabled,tooltip:"Toggle pan mode (Space)",shortcut:"Space"}),U.reset&&(y||A)&&e.push({id:"reset",label:"Reset View",icon:"ArrowCounterClockwise",onClick:()=>{y?.(),A?.()},tooltip:"Reset view (R)",shortcut:"R"}),U.fullscreen&&f&&e.push({id:"fullscreen",label:C.isFullscreen?"Exit Fullscreen":"Fullscreen",icon:C.isFullscreen?"ArrowsIn":"ArrowsOut",onClick:()=>f?.(!C.isFullscreen),variant:"success",tooltip:(C.isFullscreen?"Exit":"Enter")+" fullscreen (F11)",shortcut:"F11"}),e.length>0?[{id:"view-actions",label:"View",actions:e,separator:!0}]:[]}),[U,v,S,E,y,A,f,C]),V=o((()=>{const e=[];return U.grid&&x&&e.push({id:"grid",label:"Grid",icon:"GridFour",onClick:()=>x(!C.showGrid),active:C.showGrid,tooltip:"Toggle grid lines"}),U.legend&&N&&e.push({id:"legend",label:"Legend",icon:"List",onClick:()=>N(!C.showLegend),active:C.showLegend,tooltip:"Toggle legend"}),U.tooltips&&T&&e.push({id:"tooltips",label:"Tooltips",icon:"CursorText",onClick:()=>T(!C.showTooltips),active:C.showTooltips,tooltip:"Toggle tooltips"}),U.animations&&_&&e.push({id:"animations",label:"Animations",icon:"Sparkle",onClick:()=>_(!C.animationsEnabled),active:C.animationsEnabled,tooltip:"Toggle animations"}),e.length>0?[{id:"display-actions",label:"Display",actions:e,separator:!0}]:[]}),[U,x,N,T,_,C]),H=o((()=>{const e=[];return U.settings&&b&&e.push({id:"settings",label:"Settings",icon:"Gear",onClick:()=>M(!k),active:k,tooltip:"Chart settings"}),e.length>0?[{id:"tool-actions",label:"Tools",actions:e}]:[]}),[U,b,k]),$=a&&a.length>0?a:l?[...F(),...G(),...V(),...H()]:[],Y=n=>{const a="export"===n.id?B:"settings"===n.id?z:null;return t("button",{ref:a,className:`${Or.ACTION_CLASS} ${n.variant?`${Or.ACTION_CLASS}--${n.variant}`:""} ${n.active?"is-active":""}`,onClick:()=>{if(n.onClick)n.onClick();else if("export"===n.id&&g)R(!O);else if("settings"===n.id&&b)M(!k);else switch(n.id){case"zoom-in":v?.();break;case"zoom-out":S?.();break;case"pan":E?.(!C.panEnabled);break;case"reset":y?.(),A?.();break;case"fullscreen":f?.(!C.isFullscreen);break;case"refresh":p?.()}},disabled:n.disabled,title:n.tooltip,type:"button","aria-label":n.label,"aria-pressed":n.active?"true":"false","aria-expanded":"export"===n.id?O:"settings"===n.id?k:void 0,children:[e(no,{name:n.icon,size:"sm"}),"lg"===h&&e("span",{className:Or.ACTION_CLASS+"-label",children:n.label})]},n.id)},K=`${Or.TOOLBAR_CLASS} ${Or.TOOLBAR_CLASS}--${h} ${Or.TOOLBAR_CLASS}--${m} ${L}`.trim();return e("div",{ref:w,className:K,...I,children:$.map(((a,r)=>t("div",{className:Or.TOOLBAR_CLASS+"-group",children:[a.separator&&r>0&&e("div",{className:Or.TOOLBAR_CLASS+"-separator"}),a.label&&"lg"===h&&e("span",{className:Or.TOOLBAR_CLASS+"-group-label",children:a.label}),t("div",{className:Or.TOOLBAR_CLASS+"-actions",children:[a.actions.map(Y),a.actions.some((e=>"export"===e.id))&&(O&&g?t("div",{ref:D,className:""+Or.EXPORT_DROPDOWN_CLASS,role:"menu","aria-label":"Export formats",children:[e("div",{className:Or.EXPORT_DROPDOWN_CLASS+"-title",children:"Export Formats"}),d.map((t=>e("button",{className:""+Or.EXPORT_OPTION_CLASS,onClick:()=>{g(t),R(!1)},disabled:C.isExporting,type:"button",role:"menuitem","aria-label":"Export as "+t.toUpperCase(),children:t.toUpperCase()},t)))]}):null),a.actions.some((e=>"settings"===e.id))&&(k?t("div",{ref:P,className:""+Or.SETTINGS_MENU_CLASS,role:"menu","aria-label":"Chart settings",children:[e("div",{className:Or.SETTINGS_MENU_CLASS+"-title",children:"Chart Settings"}),t("div",{className:Or.SETTINGS_MENU_CLASS+"-content",children:[U.grid&&x&&e("div",{className:Or.SETTINGS_MENU_CLASS+"-item",children:t("label",{className:Or.SETTINGS_MENU_CLASS+"-toggle",children:[e("input",{type:"checkbox",checked:C.showGrid??!1,onChange:e=>x(e.target.checked),"aria-label":"Toggle grid lines"}),e("span",{className:Or.SETTINGS_MENU_CLASS+"-label",children:"Show Grid"})]})}),U.legend&&N&&e("div",{className:Or.SETTINGS_MENU_CLASS+"-item",children:t("label",{className:Or.SETTINGS_MENU_CLASS+"-toggle",children:[e("input",{type:"checkbox",checked:C.showLegend??!1,onChange:e=>N(e.target.checked),"aria-label":"Toggle legend"}),e("span",{className:Or.SETTINGS_MENU_CLASS+"-label",children:"Show Legend"})]})}),U.tooltips&&T&&e("div",{className:Or.SETTINGS_MENU_CLASS+"-item",children:t("label",{className:Or.SETTINGS_MENU_CLASS+"-toggle",children:[e("input",{type:"checkbox",checked:C.showTooltips??!1,onChange:e=>T(e.target.checked),"aria-label":"Toggle tooltips"}),e("span",{className:Or.SETTINGS_MENU_CLASS+"-label",children:"Show Tooltips"})]})}),U.animations&&_&&e("div",{className:Or.SETTINGS_MENU_CLASS+"-item",children:t("label",{className:Or.SETTINGS_MENU_CLASS+"-toggle",children:[e("input",{type:"checkbox",checked:C.animationsEnabled??!1,onChange:e=>_(e.target.checked),"aria-label":"Toggle animations"}),e("span",{className:Or.SETTINGS_MENU_CLASS+"-label",children:"Enable Animations"})]})}),void 0!==C.zoomLevel&&t("div",{className:`${Or.SETTINGS_MENU_CLASS}-item ${Or.SETTINGS_MENU_CLASS}-item--info`,children:[e("span",{className:Or.SETTINGS_MENU_CLASS+"-label",children:"Zoom Level"}),t("span",{className:Or.SETTINGS_MENU_CLASS+"-value",children:[Math.round(100*(C.zoomLevel||1)),"%"]})]}),t("div",{className:`${Or.SETTINGS_MENU_CLASS}-item ${Or.SETTINGS_MENU_CLASS}-item--info`,children:[e("span",{className:Or.SETTINGS_MENU_CLASS+"-label",children:"Chart Type"}),e("span",{className:Or.SETTINGS_MENU_CLASS+"-value",children:n})]})]})]}):null)]})]},a.id)))})})));ss.displayName="ChartToolbar";const ls=g(null),cs=l(c((({children:n,type:a="line",size:l="md",variant:c="primary",title:d,subtitle:h,loading:m=!1,error:p,className:g="","aria-label":f,onFullscreen:b,onExport:v,onRefresh:S,showToolbar:y=!1,enableFullscreen:E=!1,enableExport:A=!1,enableRefresh:x=!1,exportFormats:N=["png","svg","csv"],datasets:T,config:_,toolbarConfig:C,customToolbarActions:L,customToolbarGroups:I,data:w,showLegend:O,interactive:R,fullscreen:k,onDataPointClick:M,onLegendItemClick:D,glass:P,...B},z)=>{const[U,F]=r(!1),[G,V]=r(!1),H=i(null),[$,Y]=r(1),[K,W]=r({x:0,y:0}),[j,q]=r(!1),Q=o((e=>{F(e),b?.(e)}),[b]),X=o((()=>{Y((e=>Math.min(1.2*e,5)))}),[]),Z=o((()=>{Y((e=>Math.max(e/1.2,.2)))}),[]),J=o((()=>{Y(1),W({x:0,y:0})}),[]),ee=o((e=>{q(e)}),[]),te=o((()=>{Y(1),W({x:0,y:0}),q(!1)}),[]),ne=u((()=>({onRefresh:S,onExport:v,onFullscreen:Q,onZoomIn:X,onZoomOut:Z,onZoomReset:J,onPanToggle:ee,onReset:te})),[S,v,Q,X,Z,J,ee,te]),{state:ae,handlers:re,toolbarGroups:ie}=function(e,t={},n={}){const[a,i]=r({isFullscreen:!1,isExporting:!1,isRefreshing:!1,zoomLevel:1,panEnabled:!1,showGrid:!0,showLegend:!0,showTooltips:!0,animationsEnabled:!0}),{enableDefaults:l=!0,defaults:c={},exportFormats:d=["png","svg","csv"],customActions:h=[],customGroups:m=[]}=t,p=o((()=>{const t={refresh:!0,export:!0,fullscreen:!0,settings:!0,grid:!0,legend:!0,tooltips:!0,animations:!0,zoom:!1,pan:!1,reset:!1};switch(e){case"interactive":case"advanced":case"line":case"area":case"bar":case"horizontal-bar":case"scatter":case"bubble":case"funnel":case"waterfall":case"candlestick":return{...t,zoom:!0,pan:!0,reset:!0};case"realtime":return{...t,refresh:!0,export:!1,animations:!1};case"pie":case"donut":case"gauge":return{...t,zoom:!1,pan:!1,grid:!1};default:return t}}),[e]),g=u((()=>({...p(),...c})),[p,c]),f=u((()=>({onRefresh:()=>{i((e=>({...e,isRefreshing:!0}))),n.onRefresh?.(),setTimeout((()=>{i((e=>({...e,isRefreshing:!1})))}),1e3)},onExport:async e=>{i((e=>({...e,isExporting:!0})));try{await(n.onExport?.(e))}finally{i((e=>({...e,isExporting:!1})))}},onFullscreen:e=>{i((t=>({...t,isFullscreen:e}))),n.onFullscreen?.(e)},onZoomIn:()=>{i((e=>({...e,zoomLevel:Math.min(1.2*e.zoomLevel,5)}))),n.onZoomIn?.()},onZoomOut:()=>{i((e=>({...e,zoomLevel:Math.max(e.zoomLevel/1.2,.2)}))),n.onZoomOut?.()},onZoomReset:()=>{i((e=>({...e,zoomLevel:1}))),n.onZoomReset?.()},onPanToggle:e=>{i((t=>({...t,panEnabled:e}))),n.onPanToggle?.(e)},onReset:()=>{i((e=>({...e,zoomLevel:1,panEnabled:!1}))),n.onReset?.()},onGridToggle:e=>{i((t=>({...t,showGrid:e}))),n.onGridToggle?.(e)},onLegendToggle:e=>{i((t=>({...t,showLegend:e}))),n.onLegendToggle?.(e)},onTooltipsToggle:e=>{i((t=>({...t,showTooltips:e}))),n.onTooltipsToggle?.(e)},onAnimationsToggle:e=>{i((t=>({...t,animationsEnabled:e}))),n.onAnimationsToggle?.(e)},onSettings:()=>{}})),[n]),b=o((()=>{const e=[],t=[];g.refresh&&t.push({id:"refresh",label:"Refresh",icon:"ArrowClockwise",onClick:f.onRefresh,disabled:a.isRefreshing,tooltip:"Refresh chart data"}),g.export&&t.push({id:"export",label:"Export",icon:"Download",onClick:()=>f.onExport("png"),disabled:a.isExporting,variant:"primary",tooltip:"Export chart"}),t.length>0&&e.push({id:"data-actions",label:"Data",actions:t,separator:!0});const n=[];g.zoom&&n.push({id:"zoom-in",label:"Zoom In",icon:"MagnifyingGlassPlus",onClick:f.onZoomIn,tooltip:"Zoom in"},{id:"zoom-out",label:"Zoom Out",icon:"MagnifyingGlassMinus",onClick:f.onZoomOut,tooltip:"Zoom out"}),g.pan&&n.push({id:"pan",label:"Pan",icon:"ArrowsOutCardinal",onClick:()=>f.onPanToggle(!a.panEnabled),active:a.panEnabled,tooltip:"Toggle pan mode"}),g.reset&&n.push({id:"reset",label:"Reset",icon:"ArrowCounterClockwise",onClick:f.onReset,tooltip:"Reset view"}),g.fullscreen&&n.push({id:"fullscreen",label:a.isFullscreen?"Exit Fullscreen":"Fullscreen",icon:a.isFullscreen?"ArrowsIn":"ArrowsOut",onClick:()=>f.onFullscreen(!a.isFullscreen),variant:"success",tooltip:(a.isFullscreen?"Exit":"Enter")+" fullscreen"}),n.length>0&&e.push({id:"view-actions",label:"View",actions:n,separator:!0});const r=[];if(g.grid&&r.push({id:"grid",label:"Grid",icon:"GridFour",onClick:()=>f.onGridToggle(!a.showGrid),active:a.showGrid,tooltip:"Toggle grid"}),g.legend&&r.push({id:"legend",label:"Legend",icon:"List",onClick:()=>f.onLegendToggle(!a.showLegend),active:a.showLegend,tooltip:"Toggle legend"}),g.tooltips&&r.push({id:"tooltips",label:"Tooltips",icon:"ChatCircle",onClick:()=>f.onTooltipsToggle(!a.showTooltips),active:a.showTooltips,tooltip:"Toggle tooltips"}),g.animations&&r.push({id:"animations",label:"Animations",icon:"Play",onClick:()=>f.onAnimationsToggle(!a.animationsEnabled),active:a.animationsEnabled,tooltip:"Toggle animations"}),r.length>0&&e.push({id:"display-actions",label:"Display",actions:r,separator:!0}),g.settings&&e.push({id:"settings-actions",label:"Settings",actions:[{id:"settings",label:"Settings",icon:"Gear",onClick:f.onSettings,tooltip:"Chart settings"}]}),e.push(...m),h.length>0)if(e.length>0){if(e.length>0){const t=e[e.length-1];t&&t.actions.push(...h)}}else e.push({id:"custom-actions",label:"Custom",actions:h});return e}),[g,a,f,h,m]);return s((()=>{const e=e=>{if(e.ctrlKey||e.metaKey)switch(e.key.toLowerCase()){case"r":g.refresh&&(e.preventDefault(),f.onRefresh());break;case"e":g.export&&(e.preventDefault(),f.onExport("png"));break;case"f":g.fullscreen&&(e.preventDefault(),f.onFullscreen(!a.isFullscreen))}else switch(e.key){case"+":case"=":g.zoom&&(e.preventDefault(),f.onZoomIn());break;case"-":g.zoom&&(e.preventDefault(),f.onZoomOut());break;case"r":g.reset&&(e.preventDefault(),f.onReset());break;case" ":g.pan&&(e.preventDefault(),f.onPanToggle(!a.panEnabled));break;case"F11":g.fullscreen&&(e.preventDefault(),f.onFullscreen(!a.isFullscreen))}};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)}),[g,a,f]),{state:a,setState:i,handlers:f,toolbarGroups:b(),config:{enableDefaults:l,defaults:g,exportFormats:d}}}(a,{enableDefaults:y,defaults:{refresh:x,export:A,fullscreen:E,grid:!0,legend:!0,tooltips:!0,animations:!0,settings:!0},exportFormats:N},ne);is(),s((()=>{Y(ae.zoomLevel)}),[ae.zoomLevel]),s((()=>{q(ae.panEnabled)}),[ae.panEnabled]),s((()=>{ae.zoomLevel}),[$,ae.zoomLevel]);const oe=ds({type:a,size:l,variant:c,loading:m,error:p,className:g,interactive:R,panEnabled:j});s((()=>{F(ae.isFullscreen),V(ae.isExporting)}),[ae.isFullscreen,ae.isExporting]);const se=`${oe}${U?" "+Or.CLASSES.FULLSCREEN:""}${P?" c-chart--glass":""}`,le=u((()=>({displacementScale:25,blurAmount:0,saturation:180,aberrationIntensity:1.5,elasticity:0,withLiquidBlur:!1,withBorder:!0,mode:"standard",mouseContainer:H,reducedMotion:!1})),[]),ce=u((()=>P?!0===P?le:{...le,...P}:null),[P,le]),de=u((()=>ce?.borderRadius||void 0),[ce?.borderRadius]),ue=u((()=>({zoomLevel:$,panOffset:K,panEnabled:j,onZoomIn:X,onZoomOut:Z,onZoomReset:J,onPanToggle:ee,onReset:te,setZoomLevel:Y,setPanOffset:W,setPanEnabled:q,toolbarState:{showTooltips:ae.showTooltips,showLegend:ae.showLegend,animationsEnabled:ae.animationsEnabled,showGrid:ae.showGrid}})),[$,K,j,X,Z,J,ee,te,q,ae.showTooltips,ae.showLegend,ae.animationsEnabled,ae.showGrid]),he=t("div",{ref:H,className:se,"aria-label":f||a+" chart",role:"img",tabIndex:0,...B,children:[(d||h||y)&&t("div",{className:Or.HEADER_CLASS+" u-flex u-justify-between u-items-start u-gap-4",children:[t("div",{className:Or.HEADER_CONTENT_CLASS+" u-flex-1",children:[d&&e("h3",{className:Or.TITLE_CLASS+" u-mb-1",children:d}),h&&e("p",{className:Or.SUBTITLE_CLASS+" u-mb-0",children:h})]}),(()=>{if(!y)return null;const t=!ie||0===ie.length;return e(ss,{chartType:a,groups:ie,defaults:{refresh:x,export:A,fullscreen:E,zoom:void 0!==ae.zoomLevel,pan:void 0!==ae.panEnabled,reset:!0,grid:!0,legend:!0,tooltips:!0,animations:!0,settings:!0},exportFormats:N,state:{isFullscreen:ae.isFullscreen,isExporting:ae.isExporting,isRefreshing:ae.isRefreshing,zoomLevel:$,panEnabled:j,showGrid:ae.showGrid,showLegend:ae.showLegend,showTooltips:ae.showTooltips,animationsEnabled:ae.animationsEnabled},...t?{onRefresh:re.onRefresh,onExport:re.onExport,onFullscreen:re.onFullscreen,onZoomIn:X,onZoomOut:Z,onZoomReset:J,onPanToggle:ee,onReset:te,onSettings:re.onSettings,onGridToggle:re.onGridToggle,onLegendToggle:re.onLegendToggle,onTooltipsToggle:re.onTooltipsToggle,onAnimationsToggle:re.onAnimationsToggle}:{}})})()]}),t("div",{className:Or.CONTENT_CLASS,children:[m&&t("div",{className:Or.LOADING_CLASS,children:[e("div",{className:Or.LOADING_SPINNER_CLASS}),e("span",{className:Or.LOADING_TEXT_CLASS,children:ae.isExporting?"Exporting chart...":ae.isRefreshing?"Refreshing chart...":"Loading chart..."})]}),p&&t("div",{className:Or.ERROR_CLASS,children:[e("div",{className:Or.ERROR_ICON_CLASS,children:"⚠"}),t("div",{className:Or.ERROR_CONTENT_CLASS,children:[e("div",{className:Or.ERROR_MESSAGE_CLASS,children:"Chart Error"}),e("div",{className:Or.ERROR_DETAILS_CLASS,children:p})]})]}),!m&&!p&&!n&&t("div",{className:Or.EMPTY_CLASS,children:[e("div",{className:Or.EMPTY_ICON_CLASS,children:"📊"}),e("div",{className:Or.EMPTY_MESSAGE_CLASS,children:"No data available"}),e("div",{className:Or.EMPTY_DETAILS_CLASS,children:"Add data to your chart to see visualizations"})]}),!m&&!p&&n&&e("div",{className:Or.CANVAS_CLASS,children:n})]})]}),me=ce?e(Ri,{...ce,borderRadius:de,style:{width:"100%",height:"100%",...ce.style},children:he}):he;return e(ls.Provider,{value:ue,children:e("div",{ref:z,style:{width:"100%",height:"100%"},children:me})})}))),ds=({type:e,size:t,variant:n,loading:a,error:r,className:i,interactive:o,panEnabled:s})=>{const l=[Or.ROOT_CLASS];if(e){const t=e.toUpperCase(),n=Or.CLASSES[t]||`${Or.TYPE_PREFIX}${e}`;l.push(n)}if(t){const e=t.toUpperCase(),n=Or.CLASSES[e]||`${Or.SIZE_PREFIX}${t}`;l.push(n)}if(n){const e=n.toUpperCase(),t=Or.CLASSES[e]||`${Or.VARIANT_PREFIX}${n}`;l.push(t)}return(o||s)&&l.push(Or.CLASSES.INTERACTIVE),a&&l.push(Or.LOADING_STATE_CLASS),r&&l.push(Or.ERROR_STATE_CLASS),i&&l.push(i),l.join(" ")};cs.displayName="Chart";const us=l(c((({datasets:a=[],config:l,width:c=Or.DEFAULT_WIDTH,height:d=Or.DEFAULT_HEIGHT,onDataPointClick:h,interactive:m=!0,enableRealTime:p=!1,enableAccessibility:g=!0,enablePerformanceOptimization:b=!0,renderContent:v},S)=>{const y=f(ls),{calculateScales:E,getChartColors:A}=is(),{processedData:x,isProcessing:N}=function(e,t){const[n,a]=r(e),[l,c]=r(!1),{enableDecimation:d=!1,maxDataPoints:u=1e3,enableRealTime:h=!1,realTimeInterval:m=1e3}=t||{},p=i(""),g=o((e=>e.map((e=>`${e.label}:${JSON.stringify(e.data)}`)).join("|")),[]);s((()=>{p.current=g(n)}),[n,g]);const f=o(((e,t)=>{if(!d||!e.length)return e;const n=e[0]?.data?.length||0;if(t>=n)return e;const a=Math.ceil(n/t);return e.map((e=>({...e,data:e.data?.filter(((e,t)=>t%a==0))||[]})))}),[d]),b=o(((e,t)=>{const n=[];for(let r=0;r<e.length;r++)if(t-1>r)n.push(null);else{var a;const i=Do(a=e.slice(r-t+1,r+1)).call(a,((e,t)=>e+t),0);n.push(i/t)}return n}),[]),v=o((e=>{const t=e.length;if(2>t)return e.map((()=>null));let n=0,a=0,r=0,i=0;for(let l=0;t>l;l++){const t=e[l],o="number"==typeof t?t:0;n+=l,a+=o,r+=l*o,i+=l*l}const o=(t*r-n*a)/(t*i-n*n),s=(a-o*n)/t;return e.map(((e,t)=>o*t+s))}),[]);return s((()=>{c(!0),(async()=>{let t=[...e];d&&u&&(t=f(t,u)),a(t),c(!1)})()}),[e,f,d,u]),s((()=>{if(!h)return;const e=setInterval((()=>{a((e=>g(e)===p.current?e:[...e]))}),m);return()=>clearInterval(e)}),[h,m,g]),{processedData:n,isProcessing:l,decimateData:f,calculateMovingAverage:b,calculateTrendLine:v,setProcessedData:a}}(a,{enableRealTime:p,enableDecimation:b,maxDataPoints:1e3}),{isOptimizing:T,memoizedScales:_}=function(e,t){const{enableVirtualization:n=!1,enableMemoization:a=!0,debounceMs:l=100}=t||{},[c,d]=r(!1),h=i(null),m=u((()=>a?e.map((e=>{const{min:t,max:n,hasValid:a}=os(e.data);return{label:e.label,dataLength:e.data?.length||0,minValue:a?t:0,maxValue:a?n:0}})):null),[e,a]),p=o((e=>{h.current&&clearTimeout(h.current),h.current=setTimeout((()=>{e(),d(!1)}),l),d(!0)}),[l]),g=o(((t,a,r)=>{if(!n)return{start:0,end:e[0]?.data?.length||0};const i=Math.floor(t/a),o=Math.min(i+Math.ceil(r/a)+1,e[0]?.data?.length||0);return{start:Math.max(0,i-1),end:o}}),[n,e]);return s((()=>()=>{h.current&&clearTimeout(h.current)}),[]),{isOptimizing:c,memoizedScales:m,debouncedUpdate:p,getVisibleRange:g}}(x,{enableVirtualization:!1,enableMemoization:b,debounceMs:100}),{announcement:C,focusedPoint:L}=function(e,t){const{enableKeyboardNavigation:n=!0,enableScreenReader:a=!0,announceDataChanges:i=!0}=t||{},[l,c]=r({datasetIndex:0,pointIndex:0}),[d,u]=r(""),h=o(((t,a)=>{if(!n||!e.length)return;const r=e.length-1,i=(e[l.datasetIndex]?.data?.length||1)-1;switch(t.key){case"ArrowLeft":t.preventDefault(),c((e=>({...e,pointIndex:Math.max(0,e.pointIndex-1)})));break;case"ArrowRight":t.preventDefault(),c((e=>({...e,pointIndex:Math.min(i,e.pointIndex+1)})));break;case"ArrowUp":t.preventDefault(),c((e=>({...e,datasetIndex:Math.max(0,e.datasetIndex-1)})));break;case"ArrowDown":t.preventDefault(),c((e=>({...e,datasetIndex:Math.min(r,e.datasetIndex+1)})));break;case"Home":t.preventDefault(),c((e=>({...e,pointIndex:0})));break;case"End":t.preventDefault(),c((e=>({...e,pointIndex:i})));break;case"Enter":case" ":t.preventDefault(),a?.(l.datasetIndex,l.pointIndex)}}),[n,e,l]),m=o((e=>{a&&(u(e),setTimeout((()=>u("")),1e3))}),[a]);s((()=>{if(!i||!e.length)return;const t=Do(e).call(e,((e,t)=>e+(t.data?.length||0)),0);m(`Chart updated with ${e.length} datasets and ${t} data points`)}),[e,i,m]);const p=o((()=>{if(!e.length)return"Empty chart";const t=e.map(((e,t)=>{const n=e.data?.length||0,{min:a,max:r,hasValid:i}=os(e.data),o=i?a:0,s=i?r:0;return`Dataset ${t+1}: ${e.label}, ${n} points, range ${o} to ${s}`})).join(". ");return`Chart with ${e.length} datasets. ${t}`}),[e]);return{focusedPoint:l,announcement:d,handleKeyDown:h,announceData:m,getAccessibleDescription:p,setFocusedPoint:c}}(x,{enableScreenReader:g,enableKeyboardNavigation:g,announceDataChanges:g}),I=i({isDragging:!1,dragStart:{x:0,y:0},lastPan:{x:0,y:0}}),[w,O]=r(null),R=i(null),k=i(null),[M,D]=r(!1),[P,B]=r({width:0,height:0});s((()=>{const e=k.current;if(!e)return;const t=()=>{const t=e.getBoundingClientRect();t.width>0&&t.height>0&&(B({width:Math.floor(t.width),height:Math.floor(t.height)}),D(!0))};t();const n=requestAnimationFrame((()=>{t()})),a=new ResizeObserver((e=>{for(const t of e){const{width:e,height:n}=t.contentRect;e>0&&n>0&&(B({width:Math.floor(e),height:Math.floor(n)}),D(!0))}}));return a.observe(e),()=>{cancelAnimationFrame(n),a.disconnect()}}),[]),s((()=>{c===Or.DEFAULT_WIDTH&&d===Or.DEFAULT_HEIGHT||(B({width:c,height:d}),D(!0))}),[c,d]);const z=o(((e,t,n,a,r,i)=>{O({datasetIndex:e,pointIndex:t,x:n,y:a,clientX:r,clientY:i})}),[]),U=o((()=>{O(null)}),[]),F=i(null),G=o((e=>{m&&y&&y.panEnabled&&I.current.isDragging&&(F.current||(F.current=requestAnimationFrame((()=>{const t=R.current;if(!t)return void(F.current=null);const n=t.getBoundingClientRect(),a=e.clientX-n.left,r=e.clientY-n.top,i=a-I.current.dragStart.x,o=r-I.current.dragStart.y;y.setPanOffset({x:I.current.lastPan.x+i,y:I.current.lastPan.y+o}),F.current=null}))))}),[m,y]),V=o((e=>{if(!m||!y||!y.panEnabled)return;const t=R.current;if(!t)return;const n=t.getBoundingClientRect(),a=e.clientX-n.left,r=e.clientY-n.top;I.current.isDragging=!0,I.current.dragStart={x:a,y:r},I.current.lastPan={...y.panOffset}}),[m,y]),H=o((()=>{I.current.isDragging=!1}),[]),$=u((()=>({onDataPointClick:h,onPointHover:z,onPointLeave:U,onMouseMove:G,onMouseDown:V,onMouseUp:H,onWheel:()=>{}})),[h,z,U,G,V,H]),Y=u((()=>({announcement:C,focusedPoint:L,getAccessibleDescription:()=>"Chart description"})),[C,L]),K=u((()=>y?`translate(${y.panOffset.x}px, ${y.panOffset.y}px) scale(${y.zoomLevel})`:""),[y]),W=u((()=>{if(!M||0===P.width||0===P.height)return null;const e=E(x,P.width,P.height,void 0,l);if(!e)return null;const t=A(x.length).filter((e=>void 0!==e));return{scales:e,colors:t,datasets:x.map(((e,n)=>({...e,color:e.color||t[n]})))}}),[x,l,P.width,P.height,M,E,A]);if(s((()=>()=>{F.current&&cancelAnimationFrame(F.current)}),[]),s((()=>{const e=R.current;if(!e||!m||!y)return;const t=e=>{if(void 0===y.zoomLevel)return;e.preventDefault();const t=.001*-e.deltaY,n=Math.max(.2,Math.min(5,y.zoomLevel+t));y.setZoomLevel(n)};return e.addEventListener("wheel",t,{passive:!1}),()=>{e.removeEventListener("wheel",t)}}),[m,y]),T)return t("div",{className:`${Or.CONTENT_CLASS} ${Or.LOADING_CLASS}`,children:[e("div",{className:Or.LOADING_SPINNER_CLASS}),e("span",{className:Or.LOADING_TEXT_CLASS,children:"Optimizing chart..."})]});if(!M||0===P.width||0===P.height)return e("div",{ref:k,className:Or.CANVAS_CLASS,style:{width:"100%",height:"100%",minHeight:"200px",display:"flex",alignItems:"center",justifyContent:"center"}});if(!W)return null;const j=P.width,q=P.height;return t(n,{children:[e("div",{ref:k,className:Or.CANVAS_CLASS,style:{width:"100%",height:"100%"},children:t("svg",{ref:R,width:j,height:q,viewBox:`0 0 ${j} ${q}`,preserveAspectRatio:"xMidYMid meet",role:"img","aria-label":"Chart visualization",tabIndex:0,style:{width:"100%",height:"100%",transform:K,transformOrigin:"center center",willChange:y?.panEnabled?"transform":"auto"},className:"c-chart__svg",onMouseMove:G,onMouseDown:V,onMouseUp:H,onMouseLeave:H,children:[t("g",{className:"c-chart__grid-group",children:[W.datasets[0]?.data.map(((t,n)=>e("line",{x1:W.scales.xScale(n,W.datasets[0]?.data.length),y1:0,x2:W.scales.xScale(n,W.datasets[0]?.data.length),y2:q,className:"c-chart__grid c-chart__grid--vertical"},"x-grid-"+n))),Array.from({length:5}).map(((t,n)=>{const a=W.scales.minValue+(W.scales.maxValue-W.scales.minValue)*(n/4);return e("line",{x1:0,y1:W.scales.yScale(a),x2:j,y2:W.scales.yScale(a),className:"c-chart__grid c-chart__grid--horizontal"},"y-grid-"+n)}))]}),v({scales:W.scales,colors:W.colors,datasets:W.datasets,interactionState:{hoveredIndex:w?.pointIndex??null,selectedIndex:null},handlers:$,accessibility:Y,hoveredPoint:w,toolbarState:y?{showTooltips:y.toolbarState?.showTooltips,showLegend:y.toolbarState?.showLegend,animationsEnabled:y.toolbarState?.animationsEnabled,showGrid:y.toolbarState?.showGrid}:void 0,config:l}),m&&y?.panEnabled&&t("g",{className:"c-chart__crosshair",children:[e("line",{x1:0,y1:q/2,x2:j,y2:q/2,className:"c-chart__crosshair-line c-chart__crosshair-line--horizontal"}),e("line",{x1:j/2,y1:0,x2:j/2,y2:q,className:"c-chart__crosshair-line c-chart__crosshair-line--vertical"})]})]})}),e("div",{"aria-live":"polite",className:"u-visually-hidden",children:C})]})})));us.displayName="ChartRenderer";const hs=l(c((({type:t,datasets:n=[],config:a={},renderContent:r,interactive:i=!0,enableRealTime:s=!1,enableAccessibility:l=!0,enablePerformanceOptimization:c=!0,onDataPointClick:d,...u},h)=>{const m=o((e=>r(e)),[r]);return e(cs,{ref:h,type:t,datasets:n,config:a,...u,children:e(us,{datasets:n,config:a,interactive:i,enableRealTime:s,enableAccessibility:l,enablePerformanceOptimization:c,onDataPointClick:d,renderContent:m})})})));hs.displayName="BaseChart";const ms=l((({dataPoint:a,datasetLabel:o,datasetColor:l,position:c,visible:d,customRenderer:u})=>{const h=i(null),[m,p]=r(c);return s((()=>{if(!d||!h.current)return;const e=h.current.getBoundingClientRect(),t=window.innerWidth,n=window.innerHeight;let a=c.x,r=c.y;a=a+e.width>t-16?c.x-e.width-12:c.x+12,r=r+e.height>n-16?c.y-e.height-12:c.y-e.height/2,a=Math.max(16,Math.min(a,t-e.width-16)),r=Math.max(16,Math.min(r,n-e.height-16)),p({x:a,y:r})}),[c,d]),d&&a?O(e("div",{ref:h,className:"c-chart__tooltip",style:{transform:`translate3d(${m.x}px, ${m.y}px, 0)`,opacity:d?1:0,visibility:d?"visible":"hidden",transition:"opacity 0.2s ease",position:"fixed",left:0,top:0,zIndex:1e3,pointerEvents:"none",willChange:"transform"},children:u?u(a):t(n,{children:[e("div",{className:"c-chart__tooltip-title",children:a.label}),t("div",{className:"c-chart__tooltip-content",children:[o&&t("div",{className:"c-chart__tooltip-dataset",children:[l&&e("div",{className:"c-chart__tooltip-color-indicator",style:{backgroundColor:l}}),t("span",{className:"c-chart__tooltip-dataset-label",children:[o,":"]}),e("span",{className:"c-chart__tooltip-value",children:a.value})]}),a.metadata&&e("div",{className:"c-chart__tooltip-metadata",children:Object.entries(a.metadata).map((([n,a])=>t("div",{className:"c-chart__tooltip-metadata-item",children:[t("span",{className:"c-chart__tooltip-metadata-key",children:[n,":"]}),e("span",{className:"c-chart__tooltip-metadata-value",children:a+""})]},n)))})]})]})}),document.body):null}));ms.displayName="ChartTooltip";const ps=l(c((({datasets:a=[],config:r={},areaOptions:i={},onDataPointClick:o,...s},l)=>{const c={showArea:!0,fillOpacity:.3,useGradient:!0,...i};return e(hs,{ref:l,type:"area",datasets:a,config:r,renderContent:({scales:a,colors:r,datasets:i,handlers:o,hoveredPoint:s,toolbarState:l,config:d})=>{if(!i.length)return null;const u=l?.showTooltips??d?.showTooltips??!0;return t(n,{children:[i.map(((n,i)=>{const l=n.color||r[i],d=n.data||[];if(0===d.length)return null;const u=d.map(((e,t)=>({x:a.xScale(t,d.length),y:a.yScale(e.value)}))),h=`M ${u.map((e=>`${e.x},${e.y}`)).join(" L ")} L ${u[u.length-1]?.x},${a.height} L ${u[0]?.x},${a.height} Z`;return t("g",{children:[e("path",{d:h,fill:l,fillOpacity:c.fillOpacity||.3,className:"c-chart__area-fill"}),d.map(((t,n)=>{const r=a.xScale(n,d.length),c=a.yScale(t.value),u=s?.datasetIndex===i&&s?.pointIndex===n;return e("circle",{cx:r,cy:c,r:u?6:4,fill:l,stroke:"white",strokeWidth:u?2:1,className:"c-chart__area-point "+(u?"c-chart__area-point--hovered":""),onClick:()=>o.onDataPointClick?.(t,i,n),onMouseEnter:e=>{const t=e.currentTarget.getBoundingClientRect();o.onPointHover(i,n,r,c,t.left+t.width/2,t.top+t.height/2)},onMouseLeave:o.onPointLeave,style:{cursor:"pointer"}},"point-"+n)}))]},"dataset-"+i)})),u&&s&&e(ms,{dataPoint:i[s.datasetIndex]?.data?.[s.pointIndex]??{label:"",value:0,color:""},datasetLabel:i[s.datasetIndex]?.label,datasetColor:i[s.datasetIndex]?.color||r[s.datasetIndex],position:{x:s.clientX,y:s.clientY},visible:!0})]})},onDataPointClick:o,...s})})));function gs(e,t={}){const[n,a]=r(null),[i,s]=r(0),[l,c]=r(!1),d=o(((e,n,a,r={top:20,right:30,bottom:40,left:50},i=!1)=>{if(!e.length)return[];const o=n-r.left-r.right,s=a-r.top-r.bottom,l=e[0]?.data?.length||0,c=e.length;if(0===l)return[];const d=e.flatMap((e=>e.data?.map((e=>e.value)).filter((e=>"number"==typeof e))||[])),u=Math.min(0,...d),h=Math.max(...d)-u,m=[],p=Array(l).fill(0);return e.forEach(((e,d)=>{e.data?.forEach(((e,g)=>{const f="number"==typeof e.value?e.value:0;if(isNaN(f)||!isFinite(f))return;let b,v,S,y;if(i){const e=s/l,n=e*(1-(t.groupPadding||.2));y=t.stacked?n:n/c,v=r.top+g*e+(e-n)/2,t.stacked||(v+=d*y*(1+(t.barPadding||.05))),b=r.left,S=(f-u)/h*o,t.stacked&&d>0?(b=r.left+(p[g]-u)/h*o,p[g]+=f):t.stacked&&(p[g]=f)}else{const e=o/l,n=e*(1-(t.groupPadding||.2));if(S=t.stacked?n:n/c,b=r.left+g*e+(e-n)/2,t.stacked||(b+=d*S*(1+(t.barPadding||.05))),y=(f-u)/h*s,v=a-r.bottom-y,t.stacked&&d>0){const e=(p[g]-u)/h*s;v=a-r.bottom-e-y,p[g]+=f}else t.stacked&&(p[g]=f)}if(t.minBarHeight&&(i?S:y)<t.minBarHeight&&(i?S=t.minBarHeight:(y=t.minBarHeight,v=a-r.bottom-y)),t.maxBarWidth&&(i?y:S)>t.maxBarWidth)if(i)y=t.maxBarWidth,v=r.top+g*(s/l)+(s/l-y)/2;else{S=t.maxBarWidth;const e=(n-r.left-r.right)/l;b=r.left+g*e+(e-S)/2}m.push({x:Math.max(b,0),y:Math.max(v,0),width:Math.max(S,0),height:Math.max(y,0),value:f,datasetIndex:d,pointIndex:g})}))})),m}),[t.stacked,t.groupPadding,t.barPadding,t.minBarHeight,t.maxBarWidth]),u=o((()=>{if(!t.enableAnimations)return;c(!0),s(0);const e=t.animationDuration||1e3,n=Date.now(),a=()=>{const t=Date.now()-n,r=Math.min(t/e,1);s(1-Math.pow(1-r,3)),1>r?requestAnimationFrame(a):c(!1)};requestAnimationFrame(a)}),[t.enableAnimations,t.animationDuration]),h=o(((e,t,n,r,i,o)=>{a({datasetIndex:e,pointIndex:t,chartX:n,chartY:r,clientX:i,clientY:o})}),[]),m=o((()=>{a(null)}),[]),p=o((e=>t.useGradients?e.map(((e,t)=>{const n=e.color||`var(--atomix-color-${t+1})`;return{id:"bar-gradient-"+t,stops:[{offset:"0%",color:n,opacity:.8},{offset:"100%",color:n,opacity:.4}]}})):[]),[t.useGradients]),g=o((e=>t.valueFormatter?t.valueFormatter(e):e.toString()),[t]);return{hoveredBar:n,animationProgress:i,isAnimating:l,calculateBarDimensions:d,generateGradients:p,getDataLabelPosition:o(((e,n=!1)=>{const{x:a,y:r,width:i,height:o}=e;switch(t.dataLabelPosition){case"inside":case"center":default:return{x:a+i/2,y:r+o/2};case"outside":return{x:n?a+i+5:a+i/2,y:n?r+o/2:r-5}}}),[t]),handleBarHover:h,handleBarLeave:m,startAnimation:u,formatValue:g,setHoveredBar:a,setAnimationProgress:s,setIsAnimating:c}}ps.displayName="AreaChart";const fs=l(c((({datasets:a=[],config:r={},barOptions:i={},horizontal:o=!1,onDataPointClick:s,...l},c)=>{const{calculateBarDimensions:d,handleBarHover:u,handleBarLeave:h,hoveredBar:m,formatValue:p}=gs(0,i);return e(hs,{ref:c,type:"bar",datasets:a,config:r,renderContent:({scales:a,colors:r,datasets:s,handlers:l,hoveredPoint:c,toolbarState:u,config:h})=>{if(!s.length)return null;const m=u?.showTooltips??h?.showTooltips??!0,g=d(s,a.width,a.height,a.padding,o);return t(n,{children:[g.map(((n,a)=>{const o=s[n.datasetIndex];if(!o)return null;const d=o.data?.[n.pointIndex],u=o.color||r[n.datasetIndex],h=c?.datasetIndex===n.datasetIndex&&c?.pointIndex===n.pointIndex;return t("g",{children:[e("rect",{x:n.x,y:n.y,width:n.width,height:n.height,fill:u,className:"c-chart__bar "+(h?"c-chart__bar--hovered":""),onClick:()=>d&&l.onDataPointClick?.(d,n.datasetIndex,n.pointIndex),onMouseEnter:e=>{const t=e.currentTarget.getBoundingClientRect();l.onPointHover(n.datasetIndex,n.pointIndex,n.x,n.y,t.left+t.width/2,t.top+t.height/2)},onMouseLeave:l.onPointLeave}),i.showValues&&e("text",{x:n.x+n.width/2,y:n.y-5,textAnchor:"middle",className:"c-chart__bar-value-label",children:p(n.value)})]},"bar-"+a)})),m&&c&&e(ms,{dataPoint:s[c.datasetIndex]?.data?.[c.pointIndex],datasetLabel:s[c.datasetIndex]?.label,datasetColor:s[c.datasetIndex]?.color,position:{x:c.clientX,y:c.clientY},visible:!0})]})},onDataPointClick:s,...l})})));fs.displayName="BarChart";const bs=l(c((({bubbleData:a=[],config:r={},bubbleOptions:i={},onDataPointClick:o,...s},l)=>{const{minBubbleSize:c=5,maxBubbleSize:d=50,bubbleOpacity:u=.7,showLabels:h=!0,labelPosition:m="center",enableAnimations:p=!0,animationDuration:g=1e3,showSizeLegend:f=!0,sizeLegendTitle:b="Size",colorScheme:v=["var(--atomix-primary)","var(--atomix-secondary)","var(--atomix-success)","var(--atomix-warning)","var(--atomix-error)","var(--atomix-info)"],sizeBasedColoring:S=!1}=i;return e(hs,{ref:l,type:"bubble",datasets:[{label:"Bubbles",data:a}],config:r,renderContent:({scales:r,colors:i,datasets:o,handlers:s,hoveredPoint:l,toolbarState:f,config:b})=>{if(!a.length)return null;const y=f?.showTooltips??b?.showTooltips??!0,E=a.map((e=>e.size)),A=Math.min(...E),x=Math.max(...E)-A||1,N=a.map(((n,a)=>{const i=c+(n.size-A)/x*(d-c),o=r.innerWidth-2*d,f=r.innerHeight-2*d,b=r.padding.left+d+n.x/100*o,y=r.padding.top+d+f-n.y/100*f;let E=n.color;if(!E)if(S){const e=Math.floor((v.length-1)*((n.size-A)/x));E=v[e]}else E=v[a%v.length];return t("g",{children:[e("circle",{cx:b,cy:y,r:i,fill:E,opacity:u,className:"c-chart__bubble "+(l?.pointIndex===a?"c-chart__bubble--hovered":""),style:p?{transition:`all ${g}ms ease`}:{},onClick:()=>s.onDataPointClick?.(n,0,a),onMouseEnter:e=>{const t=e.currentTarget.getBoundingClientRect();s.onPointHover(0,a,b,y,t.left+t.width/2,t.top+t.height/2)},onMouseLeave:s.onPointLeave}),h&&e("text",{x:b,y:y,textAnchor:"middle",dominantBaseline:"center"===m?"middle":"top"===m?"text-before-edge":"text-after-edge",className:"c-chart__bubble-label",children:n.label})]},"bubble-"+a)}));return t(n,{children:[N,y&&l&&l.pointIndex<a.length&&a[l.pointIndex]&&e(ms,{dataPoint:a[l.pointIndex],datasetLabel:"Bubbles",datasetColor:a[l.pointIndex]?.color||v[l.pointIndex%v.length],position:{x:l.clientX,y:l.clientY},visible:!0})]})},onDataPointClick:o,...s})})));bs.displayName="BubbleChart";const vs=l(c((({candlestickData:a=[],config:r={},candlestickOptions:i={},onDataPointClick:o,...s},l)=>{const{showVolume:c=!0,volumeHeightRatio:d=.2,upColor:u="var(--atomix-success-bg-subtle)",downColor:h="var(--atomix-error-bg-subtle)",wickColor:m="var(--atomix-brand-border-subtle)",borderColor:p="var(--atomix-primary-border-subtle)",showMovingAverages:g=!1,movingAveragePeriods:f=[7,21],movingAverageColors:b=["var(--atomix-warning-bg-subtle)","var(--atomix-warning-border-subtle)"],dateFormat:v="short",dateFormatter:S,showGrid:y=!0,gridColor:E="var(--atomix-brand-text-emphasis)",showTooltips:A=!0}=i;return e(hs,{ref:l,type:"candlestick",datasets:[{label:"Candlestick Data",data:a.map((e=>({label:e.date.toString(),value:e.close,metadata:{open:e.open,high:e.high,low:e.low,close:e.close,volume:e.volume}})))}],config:r,renderContent:({scales:r,colors:o,datasets:s,handlers:l,hoveredPoint:v,toolbarState:S,config:A})=>{if(!a.length)return null;const x=S?.showTooltips??A?.showTooltips??i.showTooltips??!0,N=40,T=r.width-80,_=r.height-80,C=c?_*d:0,L=_-C,I=a.map((e=>e.high)),w=a.map((e=>e.low)),O=Math.min(...w),R=Math.max(...I),k=R-O||1,M=a.map((e=>e.volume||0)),D=Math.max(...M)||1,P=[];if(y){for(let n=0;5>=n;n++){const t=N+n/5*L;P.push(e("line",{x1:N,y1:t,x2:N+T,y2:t,stroke:E,strokeWidth:"0.5",strokeDasharray:"4 2"},"price-grid-"+n))}const t=Math.max(1,Math.floor(a.length/10));for(let n=0;n<a.length;n+=t){const t=N+n/(a.length-1)*T;P.push(e("line",{x1:t,y1:N,x2:t,y2:N+L,stroke:E,strokeWidth:"0.5",strokeDasharray:"4 2"},"time-grid-"+n))}}const B=a.map(((n,r)=>{const i=n.close<n.open?h:u,o=N+r/(a.length-1)*T,s=N+(R-n.high)/k*L,c=N+(R-n.low)/k*L,d=N+(R-n.open)/k*L,g=N+(R-n.close)/k*L,f=Math.min(d,g),b=Math.abs(d-g),v=Math.max(1,T/a.length*.8);return t("g",{children:[e("line",{x1:o,y1:s,x2:o,y2:c,stroke:m,strokeWidth:"1",className:"c-chart__candlestick-wick"}),e("rect",{x:o-v/2,y:f,width:v,height:b||1,fill:i,stroke:p,strokeWidth:"1",className:"c-chart__candlestick-candle",onMouseEnter:e=>{const t=e.currentTarget.getBoundingClientRect();l.onPointHover(0,r,o,s,t.left+t.width/2,t.top+t.height/2)},onMouseLeave:l.onPointLeave,onClick:()=>l.onDataPointClick?.(n,0,r)})]},"candle-"+r)})),z=[];if(c){const t=N+L+20;a.forEach(((n,r)=>{if(!n.volume)return;const i=n.close<n.open?h:u,o=N+r/(a.length-1)*T,s=n.volume/D*(C-20),l=Math.max(1,T/a.length*.6);z.push(e("rect",{x:o-l/2,y:t+C-s,width:l,height:s,fill:i,fillOpacity:"0.7",className:"c-chart__candlestick-volume"},"volume-"+r))}))}const U=[];return g&&f.forEach(((t,n)=>{const r=((e,t)=>{const n=[];for(let r=0;r<e.length;r++){var a;if(t-1>r){n.push(NaN);continue}const i=Do(a=e.slice(r-t+1,r+1)).call(a,((e,t)=>e+t.close),0);n.push(i/t)}return n})(a,t),i=b?.[n]||"var(--atomix-warning)",o=r.map(((e,t)=>isNaN(e)?null:{x:N+t/(a.length-1)*T,y:N+(R-e)/k*L})).filter(Boolean);if(o.length>1){const n="M "+o.map((e=>`${e.x},${e.y}`)).join(" L ");U.push(e("path",{d:n,stroke:i,strokeWidth:"1",fill:"none",strokeDasharray:"5,5"},"ma-"+t))}})),t(n,{children:[P,B,z,U,x&&v&&a[v.pointIndex]&&e(ms,{dataPoint:a[v.pointIndex],datasetLabel:"Candlestick",position:{x:v.clientX,y:v.clientY},visible:!0})]})},onDataPointClick:o,...s})})));vs.displayName="CandlestickChart";const Ss=l(c((({datasets:a=[],config:r={},pieOptions:i={showValues:!1,showPercentages:!0,showLabels:!1,startAngle:0,sortByValue:!1,padAngle:1},donutOptions:o={innerRadiusRatio:.6,showTotal:!0,centerLabel:"Total",centerValue:void 0,roundedCorners:!0},onDataPointClick:s,...l},c)=>{const d=u((()=>a.length>0?a[0]:{label:"",data:[]}),[a]),h=u((()=>{if(!d?.data?.length)return null;const e=(d?.data||[]).filter((e=>"number"==typeof e.value&&!isNaN(e.value)&&isFinite(e.value)&&e.value>0));return e.length?{validDataPoints:e}:null}),[d]);return e(hs,{ref:c,type:"donut",datasets:a,config:r,renderContent:({scales:a,colors:r,datasets:s,handlers:l,hoveredPoint:c,toolbarState:u,config:m})=>{var p;if(!h)return null;const g=a.width,f=a.height,b=Math.min(g,f)/2*.8,v=b*(o.innerRadiusRatio??.6),S=g/2,y=f/2,E=["var(--atomix-primary-2)","var(--atomix-primary-3)","var(--atomix-primary-4)","var(--atomix-primary-5)","var(--atomix-primary-6)","var(--atomix-primary-7)","var(--atomix-primary-8)","var(--atomix-primary-9)"],A=d?.color?[d.color]:d?.data?.map(((e,t)=>E[t%E.length]))||E,x=Do(p=h.validDataPoints).call(p,((e,t)=>e+t.value),0),N=(i.padAngle||1)*Math.PI/180;let T=(i.startAngle||0)*Math.PI/180;const _=h.validDataPoints.map(((e,t)=>{const n=e.value/x*(2*Math.PI)-N,a=T,r=T+n,i=(a+r)/2,o=.75*b,s=S+Math.cos(i)*o,l=y+Math.sin(i)*o,c=S+v*Math.cos(a),d=y+v*Math.sin(a),u=n>Math.PI?1:0,h=[`M ${c} ${d}`,`L ${S+b*Math.cos(a)} ${y+b*Math.sin(a)}`,`A ${b} ${b} 0 ${u} 1 ${S+b*Math.cos(r)} ${y+b*Math.sin(r)}`,`L ${S+v*Math.cos(r)} ${y+v*Math.sin(r)}`,`A ${v} ${v} 0 ${u} 0 ${c} ${d}`,"Z"].join(" ");return T=r+N,{path:h,color:e.color||A[t],labelPosition:{x:s,y:l},dataPoint:e,value:e.value,percentage:e.value/x*100}})),C=u?.showTooltips??m?.showTooltips??!0;return t(n,{children:[_.map(((n,a)=>{const r=c?.pointIndex===a;return t("g",{children:[e("path",{d:n.path,fill:n.color,className:"c-chart__donut-slice "+(r?"c-chart__donut-slice--hovered":""),onClick:()=>l.onDataPointClick?.(n.dataPoint,0,a),onMouseEnter:e=>{const t=e.currentTarget.getBoundingClientRect();l.onPointHover(0,a,n.labelPosition.x,n.labelPosition.y,t.left+t.width/2,t.top+t.height/2)},onMouseLeave:l.onPointLeave}),i.showLabels&&e("text",{x:n.labelPosition.x,y:n.labelPosition.y,textAnchor:"middle",className:"c-chart__donut-label",children:n.dataPoint.label}),i.showPercentages&&t("text",{x:n.labelPosition.x,y:n.labelPosition.y+20,textAnchor:"middle",className:"c-chart__donut-percentage",children:[n.percentage.toFixed(1),"%"]})]},"slice-"+a)})),o.showTotal&&t("g",{children:[e("text",{x:S,y:y-10,textAnchor:"middle",dominantBaseline:"middle",className:"c-chart__donut-center-label",children:o.centerLabel}),e("text",{x:S,y:y+20,textAnchor:"middle",dominantBaseline:"middle",className:"c-chart__donut-center-value",children:void 0!==o.centerValue?o.centerValue:x.toLocaleString()})]}),C&&c&&c.pointIndex<_.length&&_[c.pointIndex]&&e(ms,{dataPoint:_[c.pointIndex].dataPoint,datasetLabel:d?.label,datasetColor:_[c.pointIndex]?.color,position:{x:c.clientX,y:c.clientY},visible:!0})]})},onDataPointClick:s,...l})})));Ss.displayName="DonutChart";const ys=l(c((({funnelData:a=[],config:r={},funnelOptions:i={},onDataPointClick:o,...s},l)=>{const{direction:c="vertical",showLabels:d=!0,showValues:u=!0,showPercentages:h=!1,labelPosition:m="outside",neckWidth:p=.3,neckHeight:g=.2,segmentGap:f=2,colorScheme:b=["var(--atomix-primary)","var(--atomix-secondary)","var(--atomix-success)","var(--atomix-warning)","var(--atomix-error)","var(--atomix-info)"],useGradient:v=!0,animate:S=!0,animationDuration:y=1e3,animationDelay:E=200,valueFormatter:A=e=>e.toLocaleString(),showConversionRates:x=!0,conversionRatePosition:N="between",proportional:T=!0,minSegmentRatio:_=.1}=i;return e(hs,{ref:l,type:"funnel",datasets:[{label:"Funnel Data",data:a}],config:r,renderContent:({scales:r,colors:i,datasets:o,handlers:s,hoveredPoint:l,toolbarState:m,config:g})=>{if(!a.length)return null;const v=m?.showTooltips??g?.showTooltips??!0,C=r.width-120,L=r.height-120,I=Math.max(...a.map((e=>e.value))),w=a.map(((e,t)=>{const n=e.value/I*100,r=t>0&&a[t-1]?e.value/a[t-1].value*100:100;return{...e,percentage:n,conversionRate:r,index:t}})),O=[];if("vertical"===c){const n=(L-(a.length-1)*f)/a.length;w.forEach(((r,i)=>{const o=60+i*(n+f);let l;if(T){const e=Math.max(r.percentage/100,_);l=C*e}else{const e=Math.max(1-i/(a.length-1)*(1-p),_);l=C*e}const c=60+(C-l)/2;let m=r.color||b[i%b.length];const g=w[i+1];let v;if(g)if(T){const e=Math.max(g.percentage/100,_);v=C*e}else{const e=Math.max(1-(i+1)/(a.length-1)*(1-p),_);v=C*e}else v=l*p;const L=60+(C-v)/2,I=o+n,R=`\n M ${c} ${o}\n L ${c+l} ${o}\n L ${L+v} ${I}\n L ${L} ${I}\n Z\n `;O.push(t("g",{children:[e("path",{d:R,fill:m,className:"c-chart__funnel-segment",style:{transition:S?`all ${y}ms cubic-bezier(0.25, 0.1, 0.25, 1) ${i*E}ms`:"none"},onClick:()=>s.onDataPointClick?.(r,0,i)}),(d||u||h)&&t("text",{x:c+l/2,y:o+n/2,textAnchor:"middle",dominantBaseline:"middle",className:"c-chart__funnel-label",children:[d&&r.label,u&&e("tspan",{x:c+l/2,dy:"1.2em",children:A(r.value)}),h&&t("tspan",{x:c+l/2,dy:"1.2em",children:[r.percentage.toFixed(1),"%"]})]})]},"segment-"+i)),x&&g&&"between"===N&&O.push(t("text",{x:c+l/2,y:o+n+f/2,textAnchor:"middle",className:"c-chart__funnel-conversion",children:["↓ ",r.conversionRate.toFixed(1),"%"]},"conversion-"+i))}))}return t(n,{children:[e("g",{children:O}),v&&l&&a[l.pointIndex]&&e(ms,{dataPoint:a[l.pointIndex],datasetLabel:"Funnel Data",datasetColor:a[l.pointIndex]?.color||i[l.pointIndex%i.length],position:{x:l.clientX,y:l.clientY},visible:!0})]})},onDataPointClick:o,...s})})));ys.displayName="FunnelChart";const Es=l(c((({value:n,min:a=0,max:r=100,config:i={},gaugeOptions:o={},onDataPointClick:s,...l},c)=>{const{startAngle:d=180,endAngle:u=0,thickness:h=.2,showNeedle:m=!0,needleColor:p="var(--atomix-brand-text-emphasis)",showValue:g=!0,valueFormatter:f=e=>e.toFixed(1),showMinMaxLabels:b=!0,showTicks:v=!0,majorTicks:S=5,minorTicks:y=4,colorZones:E=[],animate:A=!0,animationDuration:x=1e3,animationEasing:N="easeOutCubic",useGradient:T=!1,label:_="",labelPosition:C="bottom"}=o;return e(hs,{ref:c,type:"gauge",datasets:[{label:"Gauge Value",data:[{label:"Value",value:n}]}],config:i,renderContent:({scales:i,colors:o,datasets:s,handlers:l,hoveredPoint:c,toolbarState:T,config:L})=>{const I=i.width,w=T?.animationsEnabled??L?.animate??A,O=i.height,R=I/2,k=O/2,M=Math.min(I,O)/2*.9,D=-d*Math.PI/180,P=-u*Math.PI/180,B=P-D,z=Math.min(Math.max(n,a),r),U=D+(z-a)/(r-a)*B,F=(e,t,n,a,r,i)=>{const o=n*(1-i),s=e+n*Math.cos(a),l=t+n*Math.sin(a),c=e+n*Math.cos(r),d=t+n*Math.sin(r),u=e+o*Math.cos(r),h=t+o*Math.sin(r),m=e+o*Math.cos(a),p=t+o*Math.sin(a),g=Math.abs(r-a)>Math.PI?1:0,f=r>a?1:0;return`M ${s} ${l} \n A ${n} ${n} 0 ${g} ${f} ${c} ${d}\n L ${u} ${h}\n A ${o} ${o} 0 ${g} ${1-f} ${m} ${p}\n Z`},G=[];for(const t of E){const n=D+(t.from-a)/(r-a)*B,i=D+(t.to-a)/(r-a)*B;G.push(e("path",{d:F(R,k,M,n,i,h),fill:t.color},`zone-${t.from}-${t.to}`))}const V=[];if(v){const t=M*(1-h);for(let n=0;S>=n;n++){const i=a+n/S*(r-a),o=D+n/S*B,s=t-2,l=.05*M,c=R+s*Math.cos(o),d=k+s*Math.sin(o),u=R+(s-l)*Math.cos(o),h=k+(s-l)*Math.sin(o);if(V.push(e("line",{x1:c,y1:d,x2:u,y2:h,stroke:"var(--atomix-brand-border-subtle)",strokeWidth:"2"},"major-tick-"+n)),b){const t=s-l-15,a=R+t*Math.cos(o),r=k+t*Math.sin(o);V.push(e("text",{x:a,y:r,textAnchor:"middle",dominantBaseline:"central",fontSize:"12",fill:"var(--atomix-brand-text-emphasis)",children:i},"label-"+n))}}for(let n=0;S*y>=n;n++){if(n%y==0)continue;const a=D+n/(S*y)*B,r=t-2,i=.025*M,o=R+r*Math.cos(a),s=k+r*Math.sin(a),l=R+(r-i)*Math.cos(a),c=k+(r-i)*Math.sin(a);V.push(e("line",{x1:o,y1:s,x2:l,y2:c,stroke:"var(--atomix-brand-border-subtle)",strokeWidth:"1"},"minor-tick-"+n))}}const H=M*(1-h),$=m?t("g",{children:[e("line",{x1:R,y1:k,x2:R+(H-15)*Math.cos(U),y2:k+(H-15)*Math.sin(U),stroke:p,strokeWidth:"4",strokeLinecap:"round"}),e("circle",{cx:R,cy:k,r:"8",fill:p}),e("circle",{cx:R,cy:k,r:"3",fill:"var(--atomix-primary-bg, #fff)"})]}):null,Y=g?e("text",{x:R,y:k+35,textAnchor:"middle",fontSize:"32",fontWeight:"bold",fill:"var(--atomix-primary-text-emphasis)",children:f(z)}):null,K=_?e("text",{x:R,y:"top"===C?k-.7*M:k+.7*M+10,textAnchor:"middle",fontSize:"16",fill:"var(--atomix-brand-text-emphasis)",children:_}):null;return t("g",{children:[e("path",{d:F(R,k,M,D,P,h),fill:"var(--atomix-secondary-bg-subtle)"}),G,e("path",{d:F(R,k,M,D,U,h),fill:"var(--atomix-brand-bg-subtle)",style:{transition:w?`all ${x}ms ${N}`:"none"}}),V,$,Y,K]})},onDataPointClick:s,...l})})));Es.displayName="GaugeChart";const As={viridis:["#440154","#482777","#3f4a8a","#31678e","#26838f","#1f9d8a","#6cce5a","#b6de2b","#fee825"],plasma:["#0d0887","#5302a3","#8b0aa5","#b83289","#db5c68","#f48849","#febd2a","#f0f921"],inferno:["#000004","#1b0c41","#4b0c6b","#781c6d","#a52c60","#cf4446","#ed6925","#fb9b06","#fcffa4"],magma:["#000004","#1c1044","#4f127b","#812581","#b5367a","#e55964","#fb8761","#fec287","#fcfdbf"],blues:["var(--atomix-blue-1)","var(--atomix-blue-2)","var(--atomix-blue-3)","var(--atomix-blue-4)","var(--atomix-blue-5)","var(--atomix-blue-6)","var(--atomix-blue-7)","var(--atomix-blue-8)","var(--atomix-blue-9)"],reds:["var(--atomix-red-1)","var(--atomix-red-2)","var(--atomix-red-3)","var(--atomix-red-4)","var(--atomix-red-5)","var(--atomix-red-6)","var(--atomix-red-7)","var(--atomix-red-8)","var(--atomix-red-9)"],greens:["var(--atomix-green-1)","var(--atomix-green-2)","var(--atomix-green-3)","var(--atomix-green-4)","var(--atomix-green-5)","var(--atomix-green-6)","var(--atomix-green-7)","var(--atomix-green-8)","var(--atomix-green-9)"],github:["var(--atomix-gray-2)","var(--atomix-green-3)","var(--atomix-green-4)","var(--atomix-green-5)","var(--atomix-green-6)"]},xs=l(c((({data:a=[],config:i={},colorScale:s={scheme:"blues",steps:9},cellConfig:l={spacing:2,borderRadius:4,showLabels:!1},showColorLegend:c=!0,showGrid:d=!0,onDataPointClick:h,...m},p)=>{const[g,f]=r(null),b=u((()=>{if(!a.length)return{matrix:[],xLabels:[],yLabels:[]};const e=Array.from(new Set(a.map((e=>e.x)))).sort(),t=Array.from(new Set(a.map((e=>e.y)))).sort(),n=[];return t.forEach((t=>{const r=[];e.forEach((e=>{const n=a.find((n=>n.x===e&&n.y===t));r.push(n||null)})),n.push(r)})),{matrix:n,xLabels:e,yLabels:t}}),[a]),v=o((e=>{if(!b.matrix.length)return"var(--atomix-secondary-bg-subtle)";let t,n=s.min,r=s.max;if(void 0===n||void 0===r){const e=a.filter((e=>void 0!==e.value)).map((e=>e.value));void 0===n&&(n=Math.min(...e)),void 0===r&&(r=Math.max(...e))}if("custom"===s.scheme&&s.colors)t=s.colors;else{const e=s.scheme;t=As[e]||As.viridis}const i=s.steps||t.length,o=r-n;return 0===o?t[0]:t[Math.floor(Math.min(Math.floor((e-n)/o*i),i-1)/i*(t.length-1))]}),[b,s,a]),S=[{label:"Heatmap Data",data:a.map((e=>({...e,label:e.label||`${e.x}, ${e.y}`,value:e.value})))}];return e(hs,{ref:p,type:"heatmap",datasets:S,config:i,renderContent:({scales:r,colors:i,datasets:o,handlers:d,hoveredPoint:u,toolbarState:h,config:m})=>{const{matrix:p,xLabels:S,yLabels:y}=b,E=h?.showTooltips??m?.showTooltips??!0;if(!p.length)return null;const A=l.spacing??2,x=l.borderRadius??4,{width:N,height:T}=r,_=Math.max(0,N-60-(20+(c?60:0))),C=Math.max(0,T-20-40),L=Math.max(1,S.length),I=Math.max(1,y.length),w=Math.max(2,Math.floor((_-(L-1)*A)/L)),O=Math.max(2,Math.floor((C-(I-1)*A)/I)),R=l.width||w,k=l.height||O,M=L*R+(L-1)*A,D=I*k+(I-1)*A,P=60+Math.max(0,(_-M)/2),B=20+Math.max(0,(C-D)/2);return t(n,{children:[t("g",{children:[e("defs",{children:c&&(()=>{const t=As[s.scheme]||As.viridis;return t&&0!==t.length?e("linearGradient",{id:"heatmap-legend-gradient",x1:"0%",y1:"100%",x2:"0%",y2:"0%",children:t.map(((n,a)=>e("stop",{offset:a/(t.length-1)*100+"%",stopColor:n},a)))}):null})()}),p.map(((n,r)=>n.map(((n,i)=>{if(!n)return null;const o=P+i*(R+A),s=B+r*(k+A),c=v(n.value);return t("g",{children:[e("rect",{x:o,y:s,width:R,height:k,rx:x,ry:x,fill:c,className:"c-chart__heatmap-cell "+(g===n?"c-chart__heatmap-cell--hovered":""),onClick:()=>{n&&d.onDataPointClick?.({...n,label:n.label||`${n.x}, ${n.y}`,value:n.value},r,i)},onMouseEnter:e=>{f(n);const t=a.findIndex((e=>e.x===n.x&&e.y===n.y)),r=e.currentTarget.getBoundingClientRect();d.onPointHover(0,0>t?0:t,o,s,r.left+r.width/2,r.top+r.height/2)},onMouseLeave:()=>{f(null),d.onPointLeave()}}),l.showLabels&&n.label&&e("text",{x:o+R/2,y:s+k/2,textAnchor:"middle",dominantBaseline:"middle",className:"c-chart__heatmap-label",children:n.label})]},`cell-${r}-${i}`)})))),S.map(((t,n)=>{const a=P+n*(R+A)+R/2,r=B+p.length*(k+A)+20;return e("text",{x:a,y:r,textAnchor:"middle",className:"c-chart__heatmap-axis-label",children:t+""},"x-label-"+n)})),y.map(((t,n)=>e("text",{x:P-20,y:B+n*(k+A)+k/2,textAnchor:"end",dominantBaseline:"middle",className:"c-chart__heatmap-axis-label",children:t+""},"y-label-"+n))),c&&t("g",{transform:`translate(${P+M+20}, ${B})`,children:[e("rect",{x:"0",y:"0",width:"12",height:D,fill:"url(#heatmap-legend-gradient)",stroke:"var(--atomix-border-color)",className:"c-chart__grid",rx:x,ry:x}),e("text",{x:"-5",y:"-10",className:"c-chart__heatmap-legend-title",children:"Values"}),e("text",{x:"20",y:"8",textAnchor:"start",className:"c-chart__heatmap-legend-label",children:"High"}),e("text",{x:"20",y:D,textAnchor:"start",className:"c-chart__heatmap-legend-label",children:"Low"})]})]}),E&&u&&o[u.datasetIndex]?.data?.[u.pointIndex]&&e(ms,{dataPoint:o[u.datasetIndex].data[u.pointIndex],datasetLabel:o[u.datasetIndex]?.label,datasetColor:o[u.datasetIndex]?.color||i[u.datasetIndex%i.length],position:{x:u.clientX,y:u.clientY},visible:!0})]})},onDataPointClick:h,...m})})));function Ns(e,t={}){const[n,a]=r(1),[i,s]=r({x:0,y:0}),[l,c]=r(null),d=o(((e,t)=>{const n=[];for(let r=t-1;r<e.length;r++){var a;const i=Do(a=e.slice(r-t+1,r+1)).call(a,((e,t)=>e+t.value),0)/t,o=e[r];o&&n.push({label:o.label,value:i,color:"rgba(255, 255, 255, 0.5)"})}return n}),[]),h=o((e=>{const t=e.length;if(2>t)return e.map((()=>null));const n=Do(e).call(e,((e,t,n)=>e+n),0),a=Do(e).call(e,((e,t)=>e+t.value),0),r=(t*Do(e).call(e,((e,t,n)=>e+n*t.value),0)-n*a)/(t*Do(e).call(e,((e,t,n)=>e+n*n),0)-n*n),i=(a-r*n)/t;return e.map(((e,t)=>({label:e.label,value:r*t+i,color:"rgba(255, 255, 255, 0.3)"})))}),[]),m=o(((e,t=.4)=>{if(2>e.length)return"";const n=e.map(((n,a)=>{if(0===a||a===e.length-1)return{cp1x:n.x,cp1y:n.y,cp2x:n.x,cp2y:n.y};const r=e[a-1],i=e[a+1];if(!r||!i)return{cp1x:n.x,cp1y:n.y,cp2x:n.x,cp2y:n.y};const o=i.x-r.x,s=i.y-r.y;return{cp1x:n.x-o*t,cp1y:n.y-s*t,cp2x:n.x+o*t,cp2y:n.y+s*t}})),a=e[0];if(!a)return"";let r=`M ${a.x},${a.y}`;for(let i=1;i<e.length;i++){const t=n[i-1],a=n[i],o=e[i];t&&a&&o&&(r+=` C ${t.cp2x},${t.cp2y} ${a.cp1x},${a.cp1y} ${o.x},${o.y}`)}return r}),[]),p=o(((e,r,i)=>{if(!t.enableZoom)return;const o=Math.max(.1,Math.min(10,n*(e>0?.9:1.1)));a(o);const l=o/n;s((e=>({x:r-(r-e.x)*l,y:i-(i-e.y)*l})))}),[n,t.enableZoom]),g=o(((e,n)=>{t.enablePan&&s((t=>({x:t.x+e,y:t.y+n})))}),[t.enablePan]),f=o((()=>{a(1),s({x:0,y:0})}),[]),b=o(((e,t,n,a,r,i)=>{c({datasetIndex:e,pointIndex:t,x:n,y:a,clientX:r,clientY:i})}),[]),v=o((()=>{c(null)}),[]),S=u((()=>e.map((e=>{const n={...e};return t.showMovingAverages&&t.movingAveragePeriods&&(n.movingAverages=t.movingAveragePeriods.map((t=>({period:t,data:d(e.data,t)})))),t.showTrendLines&&(n.trendLine=h(e.data)),n}))),[e,t.showMovingAverages,t.movingAveragePeriods,t.showTrendLines,d,h]);return{zoomLevel:n,panOffset:i,hoveredPoint:l,processedDatasets:S,handleZoom:p,handlePan:g,resetView:f,handlePointHover:b,handlePointLeave:v,calculateMovingAverage:d,calculateTrendLine:h,generateSmoothPath:m,setZoomLevel:a,setPanOffset:s,setHoveredPoint:c}}xs.displayName="HeatmapChart";const Ts=l(c((({datasets:a=[],config:r={},lineOptions:i={},onDataPointClick:o,onRealTimeUpdate:s,onZoomChange:l,onPanChange:c,onBrushSelection:d,...u},h)=>{const m={showDataPoints:!0,lineWidth:2,pointRadius:4,smooth:!1,tension:.4,showArea:!1,fillOpacity:.3,showPointLabels:!1,...i},{processedDatasets:p,generateSmoothPath:g,calculateMovingAverage:f,handlePointHover:b,handlePointLeave:v,hoveredPoint:S}=Ns(a,m);return e(hs,{ref:h,type:"line",datasets:p,config:r,renderContent:({scales:a,colors:r,datasets:i,handlers:o,hoveredPoint:s,toolbarState:l,config:c})=>{if(!i.length)return null;const d=l?.showTooltips??c?.showTooltips??!0;return l?.animationsEnabled??c?.animate??m.smooth,t(n,{children:[i.map(((n,i)=>{const l=n.color||r[i],c=n.data?.length||0;if(0===c)return null;const d=n.data?.map(((e,t)=>({x:a.xScale(t,c),y:a.yScale(e.value)})))||[],u=m.smooth?g(d):"M "+d.map((e=>`${e.x},${e.y}`)).join(" L ");return t("g",{children:[m.showArea&&e("path",{d:`${u} L ${d[d.length-1]?.x||0},${a.yScale(0)} L ${d[0]?.x||0},${a.yScale(0)} Z`,fill:l,fillOpacity:m.fillOpacity||.3,className:"c-chart__area-path"}),e("path",{d:u,stroke:l,strokeWidth:m.lineWidth||2,fill:"none",strokeLinecap:"round",strokeLinejoin:"round",className:"c-chart__line-path"}),m.showDataPoints&&n.data?.map(((n,r)=>{const d=a.xScale(r,c),u=a.yScale(n.value),h=s?.datasetIndex===i&&s?.pointIndex===r;return t("g",{children:[e("circle",{cx:d,cy:u,r:h?1.5*m.pointRadius:m.pointRadius,fill:l,stroke:"white",strokeWidth:h?2:1,className:"c-chart__data-point "+(h?"c-chart__data-point--hovered":""),onMouseEnter:e=>{const t=e.currentTarget.getBoundingClientRect();o.onPointHover(i,r,d,u,t.left+t.width/2,t.top+t.height/2)},onMouseLeave:o.onPointLeave,onClick:()=>o.onDataPointClick?.(n,i,r),style:{cursor:"pointer"}}),m.showPointLabels&&e("text",{x:d,y:u-15,textAnchor:"middle",fontSize:"12",fill:l,className:"c-chart__point-label",children:n.value})]},"point-"+r)}))]},"dataset-"+i)})),d&&s&&i[s.datasetIndex]?.data?.[s.pointIndex]&&e(ms,{dataPoint:i[s.datasetIndex].data[s.pointIndex],datasetLabel:i[s.datasetIndex]?.label,datasetColor:i[s.datasetIndex]?.color,position:{x:s.clientX,y:s.clientY},visible:!0})]})},onDataPointClick:o,interactive:!0,enableAccessibility:!0,...u})})));Ts.displayName="LineChart";const _s=l(c((({datasets:n=[],config:a={},yAxes:r=[],xAxes:i=[],multiAxisOptions:o={},onDataPointClick:s,...l},c)=>{const{showLegend:d=!0,legendPosition:u="top",syncAxes:h=!1,axisPadding:m=20,showTooltips:p=!0,tooltipPosition:g="nearest",interpolation:f="linear",showArea:b=!1,areaOpacity:v=.3,showDataPoints:S=!0,pointRadius:y=4,spanGaps:E=!1}=o;return e(hs,{ref:c,type:"line",datasets:n,config:a,renderContent:({scales:a,colors:o,datasets:s,handlers:l,hoveredPoint:c,toolbarState:h,config:m})=>{if(!n.length)return null;const p=h?.showGrid??!0,g=60,f=a.width-120,E=a.height-120,A=r.length?r:[{id:"y-axis-1",position:"left",label:"Y Axis"}],x=i.length?i:[{id:"x-axis-1",position:"bottom",label:"X Axis"}],N={};n.forEach(((e,t)=>{const n=e.yAxisId||A[0]?.id||"y-axis-1";N[n]||(N[n]=[]),N[n].push({...e,index:t})}));const T={};Object.entries(N).forEach((([e,t])=>{const n=t.flatMap((e=>e.data.map((e=>e.value)))),a=Math.min(...n),r=Math.max(...n),i=r-a||1;T[e]={min:a,max:r,scale:E/i}}));const _=[];if(p)for(let t=0;5>=t;t++){const n=g+t/5*E;_.push(e("line",{x1:g,y1:n,x2:g+f,y2:n,className:"c-chart__grid"},"grid-"+t))}if(n.forEach(((t,n)=>{const a=t.yAxisId||A[0]?.id||"y-axis-1",r=T[a],i=t.color||o[n%o.length],s=t.data.map(((e,n)=>({x:g+n/(t.data.length-1)*f,y:r?g+E-(e.value-r.min)*r.scale:0})));let c="";if(s.length>0&&(c="M "+s.map((e=>`${e.x},${e.y}`)).join(" L ")),b&&c){const t=`${c} L ${g+f},${g+E} L 60,${g+E} Z`;_.push(e("path",{d:t,fill:i,fillOpacity:v},"area-"+n))}_.push(e("path",{d:c,stroke:i,fill:"none",className:"c-chart__data-line"},"line-"+n)),S&&s.forEach(((a,r)=>{const o=t.data[r];o&&_.push(e("circle",{cx:a.x,cy:a.y,r:y,fill:i,onClick:()=>l.onDataPointClick?.(o,n,r)},`point-${n}-${r}`))}))})),A.forEach((t=>{_.push(e("line",{x1:g,y1:g,x2:g,y2:g+E,stroke:t.color||"var(--atomix-text-primary)",className:"c-chart__axis-line"},"y-axis-"+t.id))})),x.forEach((t=>{_.push(e("line",{x1:g,y1:g+E,x2:g+f,y2:g+E,stroke:t.color||"var(--atomix-text-primary)",className:"c-chart__axis-line"},"x-axis-"+t.id))})),d){const r="top"===u?20:a.height-30;n.forEach(((a,i)=>{const s=a.color||o[i%o.length],l=g+i*f/n.length;_.push(t("g",{children:[e("rect",{x:l,y:r,width:"12",height:"12",fill:s,className:"c-chart__legend-item-color"}),e("text",{x:l+16,y:r+10,className:"c-chart__legend-item-text",children:a.label})]},"legend-"+i))}))}return e("g",{children:_})},onDataPointClick:s,...l})})));function Cs(e,t={}){const[n,a]=r(null),[i,s]=r(new Set),[l,c]=r(0),[d,h]=r(!1),m=u((()=>{const n=e.filter((e=>"number"==typeof e.value&&!isNaN(e.value)&&isFinite(e.value)&&e.value>0));return n.length?t.sortByValue?[...n].sort(((e,t)=>t.value-e.value)):n:[]}),[e,t.sortByValue]),p=u((()=>Do(m).call(m,((e,t)=>e+t.value),0)),[m]),g=u((()=>{if(!m.length||0>=p)return[];const e=400,n=200,a=150,r=a*(t.innerRadius||0),i=["#7AFFD7","#1AFFD2","#00E6C3","#4DFF9F","#1AFF85","#00E66B","#DD6061","#FF1A1A","#E60000","#FFCC00","#E6B800","#B38F00"];let o=(t.startAngle||0)*Math.PI/180;const s=(t.padAngle||1)*Math.PI/180;return m.map(((t,l)=>{const c=t.value/p,d=2*c*Math.PI-s,u=o+d,h=o+d/2,m=e+a*Math.cos(o),g=n+a*Math.sin(o),f=e+a*Math.cos(u),b=n+a*Math.sin(u),v=d>Math.PI?1:0;let S;S=r>0?[`M ${m},${g}`,`A 150,150 0 ${v},1 ${f},${b}`,`L ${e+r*Math.cos(u)},${n+r*Math.sin(u)}`,`A ${r},${r} 0 ${v},0 ${e+r*Math.cos(o)},${n+r*Math.sin(o)}`,"Z"].join(" "):["M 400,200",`L ${m},${g}`,`A 150,150 0 ${v},1 ${f},${b}`,"Z"].join(" ");const y=(a+r)/2||105,E=e+y*Math.cos(h),A=n+y*Math.sin(h),x={dataPoint:t,index:l,startAngle:o,endAngle:u,midAngle:h,color:t.color||i[l%i.length],percentage:100*c,value:t.value,label:t.label,path:S,labelPosition:{x:E,y:A}};return o=u+s,x}))}),[m,p,t.innerRadius,t.startAngle,t.padAngle]),f=o((()=>{if(!t.enableAnimations)return;h(!0),c(0);const e=t.animationDuration||1e3,n=Date.now(),a=()=>{const t=Date.now()-n,r=Math.min(t/e,1);c(1-Math.pow(1-r,3)),1>r?requestAnimationFrame(a):h(!1)};requestAnimationFrame(a)}),[t.enableAnimations,t.animationDuration]),b=o(((e,t,n)=>{a(e)}),[]),v=o((()=>{a(null)}),[]),S=o((e=>{t.enableSelection&&s((t=>{const n=new Set(t);return n.has(e)?n.delete(e):n.add(e),n}))}),[t.enableSelection]),y=o((e=>{if(t.labelFormatter)return t.labelFormatter(e.value,e.percentage,e.label);const n=[];return!1!==t.showLabels&&n.push(e.label),t.showPercentages&&n.push(Math.round(e.percentage)+"%"),t.showValues&&n.push(e.value.toString()),n.join(" - ")}),[t]),E=o(((e,n)=>n&&t.enableHoverEffects&&t.hoverOffset?`translate(${Math.cos(e.midAngle)*t.hoverOffset}, ${Math.sin(e.midAngle)*t.hoverOffset})`:""),[t.enableHoverEffects,t.hoverOffset]),A=o((e=>i.has(e)),[i]);return{processedData:m,slices:g,totalValue:p,hoveredSlice:n,selectedSlices:i,animationProgress:l,isAnimating:d,handleSliceHover:b,handleSliceLeave:v,handleSliceClick:S,startAnimation:f,formatLabel:y,getSliceTransform:E,isSliceSelected:A,setHoveredSlice:a,setSelectedSlices:s,setAnimationProgress:c,setIsAnimating:h}}_s.displayName="MultiAxisChart";const Ls=l(c((({datasets:a=[],config:r={},pieOptions:i={},onDataPointClick:o,...s},l)=>{const c=a[0]?.data||[],{slices:d,handleSliceHover:u,handleSliceLeave:h,handleSliceClick:m,formatLabel:p,hoveredSlice:g,selectedSlices:f}=Cs(c,i);return e(hs,{ref:l,type:"pie",datasets:a,config:r,renderContent:({scales:a,colors:r,datasets:o,handlers:s,hoveredPoint:l,toolbarState:u,config:h})=>{if(!d.length)return null;const g=a.width,f=a.height,b=g/2,v=f/2,S=Math.min(g,f)/2*.8,y=d.map((e=>{const t=b+S*Math.cos(e.startAngle),n=v+S*Math.sin(e.startAngle),a=b+S*Math.cos(e.endAngle),r=v+S*Math.sin(e.endAngle),i=e.endAngle-e.startAngle,o=[`M ${b},${v}`,`L ${t},${n}`,`A ${S},${S} 0 ${i>Math.PI?1:0},1 ${a},${r}`,"Z"].join(" "),s=.7*S,l=b+s*Math.cos(e.midAngle),c=v+s*Math.sin(e.midAngle);return{...e,path:o,labelPosition:{x:l,y:c}}})),E=u?.showTooltips??h?.showTooltips??!0;return t(n,{children:[y.map(((n,a)=>{const r=l?.pointIndex===a;return t("g",{children:[e("path",{d:n.path,fill:n.color,className:"c-chart__pie-slice "+(r?"c-chart__pie-slice--hovered":""),onClick:()=>{m(a),s.onDataPointClick?.(n.dataPoint,0,a)},onMouseEnter:e=>{const t=e.currentTarget.getBoundingClientRect();s.onPointHover(0,a,n.labelPosition.x,n.labelPosition.y,t.left+t.width/2,t.top+t.height/2)},onMouseLeave:s.onPointLeave}),i.showLabels&&e("text",{x:n.labelPosition.x,y:n.labelPosition.y,textAnchor:"middle",className:"c-chart__pie-label",children:p(n)})]},"slice-"+a)})),E&&l&&c[l.pointIndex]&&e(ms,{dataPoint:c[l.pointIndex],datasetLabel:o[0]?.label,datasetColor:d[l.pointIndex]?.color,position:{x:l.clientX,y:l.clientY},visible:!0})]})},onDataPointClick:o,...s})})));Ls.displayName="PieChart";const Is=l(c((({datasets:a=[],config:r={},radarOptions:i={},onDataPointClick:o,...s},l)=>{const{gridLevels:c=5,showGrid:d=!0,showAxisLabels:u=!0,fillArea:h=!0,fillOpacity:m=.3,showDataPoints:p=!0,pointRadius:g=4,lineWidth:f=2,smooth:b=!1,scaleType:v="linear",scaleMin:S=0,scaleMax:y}=i;return e(hs,{ref:l,type:"radar",datasets:a,config:r,renderContent:({scales:a,colors:r,datasets:i,handlers:o,hoveredPoint:s,toolbarState:l,config:v})=>{if(!i.length)return null;const E=l?.showTooltips??v?.showTooltips??!0,A=a.width/2,x=a.height/2,N=.8*Math.min(A,x),T=i[0];if(!T)return null;const _=T.data||[],C=2*Math.PI/_.length;let L=S,I=y;if(void 0===L||void 0===I){const e=i.flatMap((e=>e.data?.map((e=>e.value))||[]));void 0===L&&(L=Math.min(S,...e)),void 0===I&&(I=Math.max(y||0,...e))}const w=I-L,O=[];if(d){for(let t=1;c>=t;t++){const n=N*t/c;O.push(e("circle",{cx:A,cy:x,r:n,className:"c-chart__radar-grid-line",fill:"none",stroke:"var(--atomix-border-color)",strokeWidth:"1"},"grid-circle-"+t))}for(let t=0;t<_.length;t++){const n=t*C-Math.PI/2,a=A+N*Math.cos(n),r=x+N*Math.sin(n);O.push(e("line",{x1:A,y1:x,x2:a,y2:r,className:"c-chart__radar-grid-line",stroke:"var(--atomix-border-color)",strokeWidth:"1"},"grid-radial-"+t))}}const R=[];if(u)for(let t=0;t<_.length;t++){const n=t*C-Math.PI/2,a=A+(N+20)*Math.cos(n),r=x+(N+20)*Math.sin(n);R.push(e("text",{x:a,y:r,textAnchor:"middle",dominantBaseline:"middle",className:"c-chart__radar-axis-label",children:_[t]?.label},"label-"+t))}const k=i.map(((n,a)=>{const i=n.color||r[a%r.length],l=[];for(let e=0;e<n.data?.length;e++){const t=n.data[e]?.value||0,a=N*(w>0?(t-L)/w:0),r=e*C-Math.PI/2,i=A+a*Math.cos(r),o=x+a*Math.sin(r);l.push({x:i,y:o,value:t,point:n.data[e]})}if(0===l.length||!l[0])return null;let c="";if(b&&l.length>2){c=`M ${l[0].x},${l[0].y}`;for(let e=1;e<l.length;e++)l[e]&&(c+=` L ${l[e].x},${l[e].y}`);c+=` L ${l[0].x},${l[0].y} Z`}else{c=`M ${l[0].x},${l[0].y}`;for(let e=1;e<l.length;e++)l[e]&&(c+=` L ${l[e].x},${l[e].y}`);c+=` L ${l[0].x},${l[0].y} Z`}return t("g",{children:[h&&e("path",{d:c,fill:i,fillOpacity:m,className:"c-chart__radar-area"}),e("path",{d:c,fill:"none",stroke:i,strokeWidth:f,className:"c-chart__radar-line"}),p&&l.map(((t,n)=>{const r=s?.datasetIndex===a&&s?.pointIndex===n;return e("g",{children:e("circle",{cx:t.x,cy:t.y,r:r?1.5*g:g,fill:i,className:"c-chart__radar-point "+(r?"c-chart__radar-point--hovered":""),onClick:()=>{t.point&&o.onDataPointClick?.(t.point,a,n)},onMouseEnter:e=>{const r=e.currentTarget.getBoundingClientRect();o.onPointHover(a,n,t.x,t.y,r.left+r.width/2,r.top+r.height/2)},onMouseLeave:o.onPointLeave})},`point-${a}-${n}`)}))]},"dataset-"+a)}));return t(n,{children:[t("g",{children:[O,k,R]}),E&&s&&i[s.datasetIndex]?.data?.[s.pointIndex]&&e(ms,{dataPoint:i[s.datasetIndex].data[s.pointIndex],datasetLabel:i[s.datasetIndex]?.label,datasetColor:i[s.datasetIndex]?.color||r[s.datasetIndex],position:{x:s.clientX,y:s.clientY},visible:!0})]})},onDataPointClick:o,...s})})));Is.displayName="RadarChart";const ws=l(c((({datasets:a=[],config:r={},scatterOptions:i={pointRadius:4,showLabels:!1,enableHoverEffects:!0},onDataPointClick:o,...s},l)=>e(hs,{ref:l,type:"scatter",datasets:a,config:r,renderContent:({scales:a,colors:r,datasets:o,handlers:s,hoveredPoint:l,toolbarState:c,config:d})=>{if(!o.length)return null;const u=c?.showTooltips??d?.showTooltips??!0,h=[];return o.forEach(((n,o)=>{const l=n.color||r[o%r.length];n.data?.forEach(((r,c)=>{const d=void 0!==r.x?a.padding.left+r.x/100*a.innerWidth:a.xScale(c,n.data?.length),u=void 0!==r.y?a.padding.top+a.innerHeight-r.y/100*a.innerHeight:a.yScale(r.value);h.push(t("g",{children:[e("circle",{cx:d,cy:u,r:r.size||i.pointRadius||4,fill:r.color||l,className:"c-chart__scatter-point",onClick:()=>s.onDataPointClick?.(r,o,c),onMouseEnter:e=>{if(i.enableHoverEffects){const t=Math.max(0,1.5*(r.size||i.pointRadius||4));e.currentTarget.setAttribute("r",t+"")}const t=e.currentTarget.getBoundingClientRect();s.onPointHover(o,c,d,u,t.left+t.width/2,t.top+t.height/2)},onMouseLeave:e=>{if(i.enableHoverEffects){const t=Math.max(0,r.size||i.pointRadius||4);e.currentTarget.setAttribute("r",t+"")}s.onPointLeave()}}),i.showLabels&&r.label&&e("text",{x:d,y:u-10,textAnchor:"middle",className:"c-chart__scatter-label",children:(r.label+"").replace(/[<>&"']/g,(e=>({"<":"<",">":">","&":"&",'"':""","'":"'"}[e]||e)))})]},`point-${o}-${c}`))}))})),t(n,{children:[h,u&&l&&o[l.datasetIndex]?.data?.[l.pointIndex]&&e(ms,{dataPoint:o[l.datasetIndex].data[l.pointIndex],datasetLabel:o[l.datasetIndex]?.label,datasetColor:o[l.datasetIndex]?.color||r[l.datasetIndex],position:{x:l.clientX,y:l.clientY},visible:!0})]})},onDataPointClick:o,...s}))));ws.displayName="ScatterChart";const Os={scheme:"category"},Rs={showLabels:!0,minSize:1e3,fontSize:12},ks={},Ms=l(c((({data:a=[],algorithm:i="squarified",colorConfig:s=Os,labelConfig:l=Rs,onDataPointClick:c,config:d=ks,...h},m)=>{const[p,g]=r(null),[f,b]=r(null);r({x:0,y:0}),u((()=>{if(!a.length)return null;const e=new Map;a.forEach((t=>e.set(t.id,t)));const t=[],n=new Set,r=e=>{if(n.has(e.id))return e;n.add(e.id);const t=a.filter((t=>t.parent===e.id));var i;return t.length>0&&(e.children=t.map((e=>r(e))),e.value=Do(i=e.children).call(i,((e,t)=>e+t.value),0)),e};return a.forEach((n=>{n.parent&&e.has(n.parent)||t.push(r(n))})),1===t.length?t[0]:{id:"root",label:"Root",value:Do(t).call(t,((e,t)=>e+t.value),0),children:t}}),[a]);const v=o(((e,t,n)=>{if(e.color)return e.color;const{scheme:r,palette:i}=s,o=i||["var(--atomix-primary)","var(--atomix-error)","var(--atomix-success)","var(--atomix-warning)","var(--atomix-primary-5)","var(--atomix-info)","var(--atomix-success-5)","var(--atomix-warning-7)","var(--atomix-primary-3)","var(--atomix-primary-7)"];switch(r){case"category":default:return o[n%o.length];case"depth":{const e=["var(--atomix-blue-9)","var(--atomix-blue-6)","var(--atomix-blue-5)","var(--atomix-blue-4)","var(--atomix-blue-2)"];return e[Math.min(t,e.length-1)]}case"value":if(a.length>0){const t=Math.max(...a.map((e=>e.value))),n=Math.min(...a.map((e=>e.value))),r=(e.value-n)/(t-n);return`hsl(${220+100*r}, 70%, ${30+40*r}%)`}return o[0]}}),[s,a]),S=o(((e,t,n,a,r)=>{if(0===e.length)return;const i=Do(e).call(e,((e,t)=>e+t.value),0);if(1===e.length){const i=e[0];return void(i&&(i.x=t,i.y=n,i.width=a,i.height=r))}const o=[...e].sort(((e,t)=>t.value-e.value)),s=e=>Math.max(e.width/e.height,e.height/e.width);let l=[],c=[...o],d=t,u=n,h=a,m=r,p=i;for(;c.length>0;){const e=c.shift();if(!e)break;l.push(e);const t=Do(l).call(l,((e,t)=>e+t.value),0),n=p>0?t/p:0;let a,r;m>h?(a=h,r=m*n):(a=h*n,r=m);let i=!1;if(c.length>0){const e=c[0];if(!e)break;const n=[...l,e],o=Do(n).call(n,((e,t)=>e+t.value),0),d=p>0?o/p:0;let u,g;m>h?(u=h,g=m*d):(u=h*d,g=m),i=Math.max(...l.filter((e=>e)).map((e=>{const n=e.value/t;return s({width:m>h?a*n:a,height:m>h?r:r*n})})))>=Math.max(...n.filter((e=>e)).map((e=>{const t=e.value/o;return s({width:m>h?u*t:u,height:m>h?g:g*t})})))}if(!i){let e=d,n=u;l.forEach((i=>{const o=i.value/t;m>h?(i.x=e,i.y=n,i.width=h*o,i.height=r,e+=i.width):(i.x=e,i.y=n,i.width=a,i.height=m*o,n+=i.height)})),m>h?(u+=r,m-=r):(d+=a,h-=a),p-=t,l=[]}}}),[]),y=o((({scales:r,colors:o,datasets:s,handlers:c,hoveredPoint:d,toolbarState:u,config:h})=>{if(!a.length)return null;const m=u?.showTooltips??h?.showTooltips??!0,y=Math.max(0,r.width),E=Math.max(0,r.height),A=a.filter((e=>!e.children||0===e.children.length));if(!A.length)return null;const x=Do(A).call(A,((e,t)=>e+t.value),0),N=A.map(((e,t)=>({id:e.id,label:e.label,value:e.value,color:v(e,0,t)||"transparent",x:0,y:0,width:0,height:0,depth:0,children:[],originalData:e})));if("squarified"===i&&x>0)S(N,0,0,y,E);else{const e=Math.ceil(Math.sqrt(A.length)),t=Math.ceil(A.length/e),n=y/e,a=E/t;N.forEach(((t,r)=>{const i=r%e,o=Math.floor(r/e);t.x=0+i*n,t.y=0+o*a,t.width=n,t.height=a}))}return t(n,{children:[N.map((n=>{const r=p===n,i=f===n,o=n.width*n.height,s=l.showLabels&&o>=(l.minSize||1e3);return t("g",{children:[e("rect",{x:n.x+2,y:n.y+2,width:Math.max(0,n.width-4),height:Math.max(0,n.height-4),rx:6,ry:6,fill:n.color,className:`c-chart__treemap-node ${r?"c-chart__treemap-node--hovered":""} ${i?"c-chart__treemap-node--selected":""}`,onClick:()=>{b(n),c.onDataPointClick?.(n.originalData,0,0)},onMouseEnter:e=>{g(n);const t=e.currentTarget.getBoundingClientRect(),r=a.indexOf(n.originalData);c.onPointHover(0,0>r?0:r,n.x,n.y,t.left+t.width/2,t.top+t.height/2)},onMouseLeave:()=>{g(null),c.onPointLeave()}}),s&&e("text",{x:n.x+n.width/2,y:n.y+n.height/2,textAnchor:"middle",dominantBaseline:"middle",className:"c-chart__treemap-label",style:{fontSize:l.fontSize},children:n.label})]},n.id)})),m&&d&&s[d.datasetIndex]?.data?.[d.pointIndex]&&e(ms,{dataPoint:s[d.datasetIndex].data[d.pointIndex],datasetLabel:s[d.datasetIndex]?.label,datasetColor:s[d.datasetIndex]?.color||o[d.datasetIndex%o.length],position:{x:d.clientX,y:d.clientY},visible:!0})]})}),[a,i,v,S,l,p,f]),E=u((()=>[{label:"Treemap Data",data:a}]),[a]);return e(hs,{ref:m,type:"treemap",datasets:E,config:d,renderContent:y,onDataPointClick:c,interactive:!0,...h})})));Ms.displayName="TreemapChart";const Ds=l(c((({waterfallData:t=[],config:n={},waterfallOptions:a={},onDataPointClick:r,...i},o)=>{const{showConnectors:s=!0,connectorColor:l="var(--atomix-gray-1)",connectorStyle:c="dashed",showValues:d=!0,valuePosition:u="top",colors:h={positive:"var(--atomix-success)",negative:"var(--atomix-error)",total:"var(--atomix-primary)",subtotal:"var(--atomix-secondary)"},barWidth:m=.6,showCumulativeLine:p=!1,cumulativeLineColor:g="var(--atomix-primary)",animate:f=!0,animationDuration:b=1e3,animationDelay:v=100,valueFormatter:S=e=>e.toLocaleString(),showBaseline:y=!0,baselineColor:E="var(--atomix-gray-2)"}=a;return e(hs,{ref:o,type:"waterfall",datasets:[{label:"Waterfall Data",data:t}],config:n,renderContent:({scales:n,colors:a,datasets:r,handlers:i,hoveredPoint:o,toolbarState:b,config:A})=>{if(!t.length)return null;const x=b?.animationsEnabled??A?.animate??f,N=60,T=n.width-120,_=n.height-120;let C=0;const L=t.map(((e,t)=>{const n="total"===e.type||"subtotal"===e.type?0:C;let a;return"total"===e.type||"subtotal"===e.type?(a=e.value,C=e.value):(a=C+e.value,C=a),{...e,startValue:n,endValue:a,cumulativeValue:C,index:t}})),I=L.flatMap((e=>[e.startValue,e.endValue])),w=Math.min(0,...I),O=Math.max(...I)-w,R=T/t.length*m,k=T/t.length,M=e=>N+e*k+k/2,D=e=>N+_-(e-w)/O*_,P=[];if(y){const t=D(0);P.push(e("line",{x1:N,y1:t,x2:n.width-N,y2:t,stroke:E,className:"c-chart__axis-line",opacity:"0.7"},"baseline"))}if(L.forEach(((t,n)=>{const a=M(n),r=Math.min(D(t.startValue),D(t.endValue)),o=Math.max(D(t.startValue),D(t.endValue)),m=o-r;let p=t.color;if(p||(p="total"===t.type?h.total:"subtotal"===t.type?h.subtotal:0>t.value?h.negative:h.positive),P.push(e("rect",{x:a-R/2,y:r,width:R,height:Math.max(m,2),fill:p,className:"c-chart__waterfall-bar "+(x?"c-chart__waterfall-bar--animated":""),style:{animationDelay:x?n*v+"ms":"0ms"},onClick:()=>i.onDataPointClick?.(t,0,n),onMouseEnter:e=>{const t=e.currentTarget.getBoundingClientRect();i.onPointHover(0,n,a,r,t.left+t.width/2,t.top+t.height/2)},onMouseLeave:i.onPointLeave},"bar-"+n)),d){let i=r,s=t.value;i="center"===u?r+m/2:"bottom"===u?o+15:r-5,"total"!==t.type&&"subtotal"!==t.type||(s=t.endValue),P.push(e("text",{x:a,y:i,textAnchor:"middle",dominantBaseline:"center"===u?"middle":"auto",className:"c-chart__waterfall-value "+("center"===u?"c-chart__waterfall-value--center":"c-chart__waterfall-value--outside"),children:S(s)},"value-"+n))}if(s&&n<L.length-1){const r=L[n+1];if(r){const i=D(t.endValue),o=D(r.startValue),s=M(n+1);if(Math.abs(t.endValue-r.startValue)>.01){const t="dashed"===c?"5,5":"dotted"===c?"2,2":"none";P.push(e("line",{x1:a+R/2,y1:i,x2:s-R/2,y2:o,stroke:l,strokeDasharray:t,className:"c-chart__waterfall-connector"},"connector-"+n))}}}})),p){const t=L.map(((e,t)=>({x:M(t),y:D(e.cumulativeValue)}))),n="M "+t.map((e=>`${e.x},${e.y}`)).join(" L ");P.push(e("path",{d:n,fill:"none",stroke:g,className:"c-chart__waterfall-cumulative-line"},"cumulative-line")),t.forEach(((t,n)=>{P.push(e("circle",{cx:t.x,cy:t.y,r:"4",fill:g,className:"c-chart__waterfall-cumulative-point"},"line-point-"+n))}))}return P.push(e("line",{x1:N,y1:n.height-N,x2:n.width-N,y2:n.height-N,stroke:"var(--atomix-gray-4)",strokeWidth:"2"},"x-axis")),P.push(e("line",{x1:N,y1:N,x2:N,y2:n.height-N,stroke:"var(--atomix-gray-4)",className:"c-chart__axis-line"},"y-axis")),L.forEach(((t,a)=>{const r=N+a*k+k/2;P.push(e("text",{x:r,y:n.height-N+20,textAnchor:"middle",className:"c-chart__axis-label",fill:"var(--atomix-gray-6)",transform:`rotate(-45, ${r}, ${n.height-N+20})`,children:t.label},"x-label-"+a))})),e("g",{children:P})},onDataPointClick:r,...i})})));function Ps(e){const t=((e??"")+"").replace(/[\r\n\t]/g," ").replace(/"/g,'""');return/^[=+\-@]/.test(t)?"'"+t:t}Ds.displayName="WaterfallChart";const Bs={sm:16,md:24,lg:32},zs=({className:t="",style:n,value:a,defaultValue:i="light",onChange:l,lightIcon:c,darkIcon:d,size:u="md",disabled:h=!1,storageKey:m="atomix-color-mode",dataAttribute:p="data-atomix-color-mode",disableStorage:g=!1,disableSystemPreference:f=!1,"aria-label":b,showTooltip:v=!0})=>{const S=void 0!==a,[y,E]=r(i),A=S?a:y;s((()=>{if(!S&&"undefined"!=typeof window){if(!g)try{const e=localStorage.getItem(m);if("light"===e||"dark"===e)return void E(e)}catch(e){}!f&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches&&E("dark")}}),[S,g,f,m]),s((()=>{if("undefined"==typeof window)return;const e="dark"===A?"dark":"light";if(document.body.setAttribute(p,e),!g)try{localStorage.setItem(m,e)}catch(t){}}),[A,p,g,m]),s((()=>{if(S||f||"undefined"==typeof window)return;const e=window.matchMedia("(prefers-color-scheme: dark)"),t=e=>{if(g)E(e.matches?"dark":"light");else try{localStorage.getItem(m)||E(e.matches?"dark":"light")}catch(t){}};return e.addEventListener("change",t),()=>{e.removeEventListener("change",t)}}),[S,f,g,m]);const x=o((()=>{if(h)return;const e="light"===A?"dark":"light";S||E(e),l?.(e)}),[h,A,S,l]),N=Bs[u],T="light"===A?"dark":"light",_=b||`Switch to ${T} mode`,C=v?`Switch to ${T} mode`:void 0,L=e("svg",{viewBox:"0 0 24 24",width:N,height:N,fill:"currentColor","aria-hidden":"true",children:e("path",{d:"M9.37 5.51c-.18.64-.27 1.31-.27 1.99 0 4.08 3.32 7.4 7.4 7.4.68 0 1.35-.09 1.99-.27C17.45 17.19 14.93 19 12 19c-3.86 0-7-3.14-7-7 0-2.93 1.81-5.45 4.37-6.49zM12 3c-4.97 0-9 4.03-9 9s4.03 9 9 9 9-4.03 9-9c0-.46-.04-.92-.1-1.36-.98 1.37-2.58 2.26-4.4 2.26-2.98 0-5.4-2.42-5.4-5.4 0-1.81.89-3.42 2.26-4.4-.44-.06-.9-.1-1.36-.1z"})}),I=e("svg",{viewBox:"0 0 24 24",width:N,height:N,fill:"currentColor","aria-hidden":"true",children:e("path",{d:"M12 7c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5zM2 13h2c.55 0 1-.45 1-1s-.45-1-1-1H2c-.55 0-1 .45-1 1s.45 1 1 1zm18 0h2c.55 0 1-.45 1-1s-.45-1-1-1h-2c-.55 0-1 .45-1 1s.45 1 1 1zM11 2v2c0 .55.45 1 1 1s1-.45 1-1V2c0-.55-.45-1-1-1s-1 .45-1 1zm0 18v2c0 .55.45 1 1 1s1-.45 1-1v-2c0-.55-.45-1-1-1s-1 .45-1 1zM5.99 4.58c-.39-.39-1.03-.39-1.41 0-.39.39-.39 1.03 0 1.41l1.06 1.06c.39.39 1.03.39 1.41 0 .39-.39.39-1.03 0-1.41L5.99 4.58zm12.37 12.37c-.39-.39-1.03-.39-1.41 0-.39.39-.39 1.03 0 1.41l1.06 1.06c.39.39 1.03.39 1.41 0 .39-.39.39-1.03 0-1.41l-1.06-1.06zm1.06-10.96c.39-.39.39-1.03 0-1.41-.39-.39-1.03-.39-1.41 0l-1.06 1.06c-.39.39-.39 1.03 0 1.41.39.39 1.03.39 1.41 0l1.06-1.06zM7.05 18.36c.39-.39.39-1.03 0-1.41-.39-.39-1.03-.39-1.41 0l-1.06 1.06c-.39.39-.39 1.03 0 1.41.39.39 1.03.39 1.41 0l1.06-1.06z"})});return e("button",{type:"button",className:`c-color-mode-toggle c-color-mode-toggle--${u} ${h?"c-color-mode-toggle--disabled":""} ${t}`,onClick:x,disabled:h,"aria-label":_,"aria-pressed":"dark"===A,title:C,style:n,children:"light"===A?c||L:d||I})};zs.displayName="ColorModeToggle";const Us=c((({target:n,show:i=["days","hours","minutes","seconds"],separator:o=":",focused:l=!1,className:c="",style:d,onComplete:u},h)=>{const m="string"==typeof n?new Date(n):n,[p,g]=r((()=>new Date)),[f,b]=r(!1);s((()=>{if(f)return;const e=setInterval((()=>{g(new Date)}),1e3);return()=>clearInterval(e)}),[f]);const v=m.getTime()-p.getTime(),{days:S,hours:y,minutes:E,seconds:A}=function(e){const t=Math.max(0,Math.floor(e/1e3));return{days:Math.floor(t/86400),hours:Math.floor(t%86400/3600),minutes:Math.floor(t%3600/60),seconds:t%60}}(v);s((()=>{v>0||f||(b(!0),u&&u())}),[v,f,u]);const x=[];return Ra(i).call(i,"days")&&x.push({label:"Days",value:S}),Ra(i).call(i,"hours")&&x.push({label:"Hours",value:y}),Ra(i).call(i,"minutes")&&x.push({label:"Minutes",value:E}),Ra(i).call(i,"seconds")&&x.push({label:"Seconds",value:A}),e("div",{ref:h,className:`c-countdown${l?" c-countdown--focused":""} ${c}`.trim(),style:d,children:x.map(((n,r)=>t(a.Fragment,{children:[t("div",{className:"c-countdown__time",children:[e("span",{className:"c-countdown__time-count",children:(n.value+"").padStart(2,"0")}),e("span",{className:"c-countdown__time-label",children:n.label})]}),r<x.length-1&&e("span",{className:"c-countdown__separator",children:o})]},n.label)))})}));function Fs(e,t){return"function"==typeof t?t(e):"string"==typeof t?e[t]:e.id??e.key??JSON.stringify(e)}Us.displayName="Countdown";const Gs="...",Vs=(e,t)=>Array.from({length:t-e+1},((t,n)=>n+e)),Hs=l((({type:t,onClick:n,disabled:a,label:r,iconName:i})=>e("li",{className:`c-pagination__item c-pagination__item--${t} ${a?"is-disabled":""}`,"aria-disabled":a,children:e("button",{type:"button",className:"c-pagination__link",onClick:n,disabled:a,"aria-label":r,children:e(no,{name:i,size:"sm","aria-hidden":"true"})})}))),$s=l((({currentPage:n=ur.currentPage,totalPages:a=ur.totalPages,onPageChange:i,siblingCount:o=ur.siblingCount,showFirstLastButtons:s=ur.showFirstLastButtons,showPrevNextButtons:l=ur.showPrevNextButtons,showSearch:c=!1,searchPlaceholder:d="Go to page",size:h=ur.size,className:m="",style:p,"aria-label":g="Pagination",glass:f})=>{const{paginationRange:b,goToPage:v,nextPage:S,prevPage:y,firstPage:E,lastPage:A}=(({currentPage:e,totalPages:t,siblingCount:n=1,onPageChange:a})=>{const r=u((()=>{if(n+5>=t)return Vs(1,t);const a=Math.max(e-n,1),r=Math.min(e+n,t),i=a>2,o=t-2>r,s=t;if(!i&&o)return[...Vs(1,3+2*n),Gs,t];if(i&&!o){let e=Vs(t-(3+2*n)+1,t);return[1,Gs,...e]}if(i&&o){let e=Vs(a,r);return[1,Gs,...e,Gs,s]}return[]}),[t,n,e]),i=n=>{1>n||n>t||n===e||a(n)};return{paginationRange:r,currentPage:e,totalPages:t,goToPage:i,nextPage:()=>{i(e+1)},prevPage:()=>{i(e-1)},firstPage:()=>{i(1)},lastPage:()=>{i(t)},DOTS:Gs}})({currentPage:n,totalPages:a,siblingCount:o,onPageChange:i}),[x,N]=r(""),[T,_]=r("");if(0===n||2>b.length)return null;const C=t("nav",{className:`c-pagination c-pagination--${h} ${m}`,style:p,"aria-label":g,children:[t("ul",{className:"c-pagination__items",children:[s&&e(Hs,{type:"first",onClick:E,disabled:1===n,label:"Go to first page",iconName:"SkipBack"}),l&&e(Hs,{type:"prev",onClick:y,disabled:1===n,label:"Go to previous page",iconName:"CaretLeft"}),b.map(((t,a)=>{if(t===Gs)return e("li",{className:"c-pagination__item c-pagination__item--dots","aria-hidden":"true",children:"…"},"dots-"+a);const r=t===n;return e("li",{className:"c-pagination__item "+(r?"is-active":""),"aria-current":r?"page":void 0,children:e("button",{type:"button",className:"c-pagination__link",onClick:()=>v(t),"aria-label":"Page "+t,"aria-current":r?"page":void 0,children:t})},t)})),l&&e(Hs,{type:"next",onClick:S,disabled:n===a,label:"Go to next page",iconName:"CaretRight"}),s&&e(Hs,{type:"last",onClick:A,disabled:n===a,label:"Go to last page",iconName:"SkipForward"})]}),c&&t("form",{className:"c-pagination__search",onSubmit:e=>{e.preventDefault(),_("");const t=parseInt(x,10);isNaN(t)?_("Please enter a valid page number"):1>t||t>a?_("Page must be between 1 and "+a):t!==n?(v(t),N("")):_("You are already on this page")},"aria-label":"Jump to page",children:[t("div",{className:"c-pagination__search-wrapper",children:[t("label",{htmlFor:"pagination-search-"+n,className:"c-pagination__search-label",children:[e("span",{className:"c-pagination__search-label-text",children:"Go to page:"}),e("input",{id:"pagination-search-"+n,type:"text",inputMode:"numeric",pattern:"[0-9]*",className:"c-pagination__search-input "+(T?"is-error":""),placeholder:d,value:x,onChange:e=>{const t=e.target.value;(""===t||/^\d+$/.test(t))&&(N(t),_(""))},"aria-label":"Page number","aria-invalid":T?"true":"false","aria-describedby":T?"pagination-error-"+n:void 0})]}),e("button",{type:"submit",className:"c-pagination__search-button","aria-label":"Go to page",children:e(no,{name:"ArrowRight",size:"sm","aria-hidden":"true"})})]}),T&&e("div",{id:"pagination-error-"+n,className:"c-pagination__search-error",role:"alert",children:T})]})]});if(f){const t={displacementScale:60,blurAmount:1,saturation:160,aberrationIntensity:.5,borderRadius:8,mode:"shader"},n=!0===f?t:{...t,...f};return e(Ri,{...n,children:C})}return C}));$s.displayName="Pagination",Hs.displayName="PaginationNavButton";const Ys=a.memo(c((({label:n,checked:a,onChange:r,className:o="",style:l,disabled:c=!1,required:d=!1,id:u,name:h,value:m,invalid:p=!1,valid:g=!1,indeterminate:f=!1,"aria-label":v,"aria-describedby":S,onClick:y,glass:E,...A},x)=>{const N=i(null);b(x,(()=>N.current)),s((()=>{N.current&&(N.current.indeterminate=!!f)}),[f]);let T="";p?T="is-error":g&&(T="is-valid");const _=`c-checkbox ${T} ${c?"is-disabled":""} ${f?"c-checkbox--mixed":""} ${E?"c-checkbox--glass":""} ${o}`.trim(),C=e("input",{ref:N,type:"checkbox",className:"c-checkbox__input",checked:a,onChange:r,onClick:y,disabled:c,required:d,id:u,name:h,value:m,"aria-label":n?void 0:v,"aria-describedby":S,"aria-invalid":p,...A});let L;if(L=u&&n?t("div",{className:_,style:l,children:[C,e("label",{className:"c-checkbox__label",htmlFor:u,children:n})]}):n?t("label",{className:_,style:l,children:[C,e("span",{className:"c-checkbox__label",children:n})]}):e("div",{className:_,style:l,children:C}),E){const t={displacementScale:40,blurAmount:1,saturation:160,aberrationIntensity:.3,borderRadius:6,mode:"shader"},n=!0===E?t:{...t,...E};return e(Ri,{...n,children:L})}return L})));Ys.displayName="Checkbox";const Ks=g({isOpen:!1,close:()=>{},id:"",trigger:"click"}),Ws=c((({children:t,className:n="",...a},r)=>{const{glass:i}=f(Zs),{id:o}=f(Ks);return e("ul",{ref:r,id:o+"-menu",className:`c-dropdown__menu ${i?"c-dropdown__menu--glass":""} ${n}`.trim(),role:"menu","aria-labelledby":o+"-trigger",...a,children:t})}));Ws.displayName="DropdownMenu";const js=c((({children:t,className:n="",onClick:a,onKeyDown:r,...i},o)=>{const{isOpen:s,id:l}=f(Ks);return e("div",{ref:o,id:l+"-trigger",className:("c-dropdown__toggle "+n).trim(),onClick:a,onKeyDown:r,"aria-haspopup":"true","aria-expanded":s,"aria-controls":l+"-menu",tabIndex:0,role:"button",...i,children:t})}));js.displayName="DropdownTrigger";const qs=l((({children:n,href:a,target:r,active:i=!1,disabled:o=!1,icon:s,onClick:l,className:c="",linkComponent:d,...u})=>{const{close:h}=f(Ks),m=e=>{o?e.preventDefault():(l&&l(e),h())},p=["c-dropdown__menu-item",i?"is-active":"",o?"is-disabled":"",c].filter(Boolean).join(" "),g={href:a,to:a,target:r,className:p,onClick:m,role:"menuitem",tabIndex:0,...u};return e("li",a&&!o?{children:t(d||"a",{...g,children:[s&&e("span",{className:"c-dropdown__menu-item-icon",children:s}),n]})}:{children:t("button",{type:"button",className:p,onClick:m,disabled:o,role:"menuitem",tabIndex:0,...u,children:[s&&e("span",{className:"c-dropdown__menu-item-icon",children:s}),n]})})}));qs.displayName="DropdownItem";const Qs=l((({className:t=""})=>e("li",{className:"c-dropdown__divider "+t,role:"separator"})));Qs.displayName="DropdownDivider";const Xs=l((({children:t,className:n=""})=>e("li",{className:"c-dropdown__header "+n,children:t})));Xs.displayName="DropdownHeader";const Zs=g({}),Js=l((function({children:n,menu:l,placement:c="bottom-start",trigger:d="click",offset:u=Nr.DEFAULTS.OFFSET,isOpen:h,onOpenChange:m,closeOnClickOutside:p=!0,closeOnEscape:g=!0,maxHeight:f,minWidth:b=Nr.DEFAULTS.MIN_WIDTH,variant:v,className:S="",style:y,glass:E,...A}){const[x,N]=r(!1),T=void 0!==h,_=T?h:x,C=i(null),L=i(null),I=i(null),w=i("dropdown-"+Math.random().toString(36).substring(2,9)).current,O=o((e=>{T||N(e),m&&m(e)}),[T,m]),R=o((()=>O(!_)),[_,O]),k=o((()=>{O(!1),setTimeout((()=>{L.current?.focus()}),0)}),[O]);s((()=>{if(!_||!p)return;const e=e=>{C.current&&!C.current.contains(e.target)&&k()};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)}),[_,p,k]),s((()=>{if(!_||!g)return;const e=e=>{"Escape"===e.key&&k()};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)}),[_,g,k]);const M=o((e=>{if(!I.current)return;const t=I.current.querySelectorAll('[role="menuitem"]:not([disabled])');if(!t.length)return;const n=Array.from(t).findIndex((e=>e===document.activeElement));switch(e.key){case"ArrowDown":e.preventDefault(),n<t.length-1?t[n+1]?.focus():t[0]?.focus();break;case"ArrowUp":e.preventDefault(),n>0?t[n-1]?.focus():t[t.length-1]?.focus();break;case"Home":e.preventDefault(),t[0]?.focus();break;case"End":e.preventDefault(),t[t.length-1]?.focus()}}),[]),D=o((e=>{"click"===d&&(e.preventDefault(),e.stopPropagation(),R())}),[d,R]),P=o((e=>{"Enter"!==e.key&&" "!==e.key&&"ArrowDown"!==e.key||_?"Escape"===e.key&&_&&(e.preventDefault(),k()):(e.preventDefault(),O(!0),"ArrowDown"===e.key&&I.current&&setTimeout((()=>{const e=I.current?.querySelector('[role="menuitem"]');e?.focus()}),100))}),[_,O,k]),B=o((()=>{"hover"===d&&O(!0)}),[d,O]),z=["c-dropdown","click"===d?"c-dropdown--onclick":"",v?"c-dropdown--"+v:"",_?"is-open":"",E?"c-dropdown--glass":"",S].filter(Boolean).join(" "),U={};let F,G;f&&(U.maxHeight=f),void 0!==b&&(U.minWidth="number"==typeof b?b+"px":b),a.Children.toArray(n).some((e=>{var t;return a.isValidElement(e)&&Ra(t=["DropdownTrigger","DropdownMenu"]).call(t,e.type.displayName||"")}))?a.Children.forEach(n,(e=>{if(a.isValidElement(e)){const t=e.type;if("DropdownTrigger"===t.displayName){const t={ref:L,onClick:t=>{D(t),e.props.onClick?.(t)},onKeyDown:t=>{P(t),e.props.onKeyDown?.(t)},"aria-haspopup":"menu","aria-expanded":_,"aria-controls":w,tabIndex:0};F=a.cloneElement(e,t)}else"DropdownMenu"===t.displayName&&(G=e)}})):(F=e("div",{ref:L,className:"c-dropdown__toggle",onClick:D,onKeyDown:P,"aria-haspopup":"menu","aria-expanded":_,"aria-controls":w,tabIndex:0,children:n}),G=e("ul",{className:"c-dropdown__menu "+(E?"c-dropdown__menu--glass":""),children:l}));const V=e("div",{className:"c-dropdown__menu-inner",style:U,children:e(Zs.Provider,{value:{glass:E},children:e(Ks.Provider,{value:{isOpen:_,close:k,id:w,trigger:d},children:G})})});return t("div",{ref:C,className:z,style:y,onMouseEnter:"hover"===d?B:void 0,...A,children:[F,e("div",{ref:I,id:w,className:`c-dropdown__menu-wrapper c-dropdown__menu-wrapper--${c} ${_?"is-open":""} ${E?"is-glass":""}`,role:"menu","aria-orientation":"vertical","aria-hidden":!_,onKeyDown:M,children:E?(()=>{const t={displacementScale:20,elasticity:0},n=!0===E?t:{...t,...E};return e(Ri,{...n,children:V})})():V})]})}));Js.displayName="Dropdown",Js.Trigger=js,Js.Menu=Ws,Js.Item=qs,Js.Divider=Qs,Js.Header=Xs;const el=l((({data:a,columns:l,className:c,style:d,sortable:h=!1,filterable:m=!1,paginated:p=!1,pageSize:g=10,striped:f=!1,bordered:b=!1,dense:v=!1,loading:S=!1,emptyMessage:y="No data available",onRowClick:E,onSort:A,selectionMode:x="none",selectedRowIds:N,onSelectionChange:T,rowKey:_,resizable:C=!1,reorderable:L=!1,onColumnReorder:I,showColumnVisibility:w=!1,onColumnVisibilityChange:O,stickyHeader:R=!1,stickyHeaderOffset:k="0px",virtualScrolling:M=!1,estimatedRowHeight:D=50,overscan:P=5,exportable:B=!1,exportFormats:z=["csv","excel","json"],exportFilename:U="data-table",onExport:F,columnFilters:G=!1,...V})=>{const H=i(null),$=i(null),[Y,K]=r(null),[W,j]=r({}),[q,Q]=r(null),[X,Z]=r(null),{displayData:J,sortConfig:ee,currentPage:te,totalPages:ne,handleSort:ae,handlePageChange:re,handleSearch:ie,selectedRowIds:oe,selectedRows:se,handleRowSelect:le,handleSelectAll:ce,isAllSelected:de,isIndeterminate:ue,visibleColumns:he,columnVisibility:me,handleColumnVisibilityToggle:pe,columnFilterValues:ge,handleColumnFilterChange:fe,clearColumnFilters:be}=function({data:e=[],columns:t=[],sortable:n=!1,paginated:a=!1,pageSize:i=10,onSort:l,initialSortConfig:c,selectionMode:d="none",selectedRowIds:h,onSelectionChange:m,rowKey:p,columnFilters:g=!1,reorderable:f=!1,onColumnReorder:b,onColumnVisibilityChange:v}){const[S,y]=r(c||null),[E,A]=r(1),[x,N]=r(""),[T,_]=r([]),C=h??T,[L,I]=r((()=>t.map((e=>e.key)))),[w,O]=r((()=>{const e={};return t.forEach((t=>{e[t.key]=!1!==t.visible})),e})),[R,k]=r({});s((()=>{const e=t.map((e=>e.key)),n=new Set(L),a=new Set(e);e.length===L.length&&e.every((e=>n.has(e)))&&L.every((e=>a.has(e)))||I(e)}),[t,L]),s((()=>{O((e=>{const n={...e};return t.forEach((e=>{e.key in n||(n[e.key]=!1!==e.visible)})),n}))}),[t]);const M=u((()=>L.map((e=>t.find((t=>t.key===e)))).filter((e=>void 0!==e&&!1!==w[e.key]))),[t,L,w]),D=o((e=>{if(!n)return;let t="asc";S&&S.key===e&&"asc"===S.direction&&(t="desc");const a={key:e,direction:t};y(a),l&&l(a)}),[n,S,l]),P=o((e=>{1>e||A(e)}),[]),B=o((e=>{N(e),A(1)}),[]),z=o(((e,t)=>{k((n=>({...n,[e]:t}))),A(1)}),[]),U=o((()=>{k({}),A(1)}),[]),F=u((()=>g?Object.entries(R).filter((([,e])=>null!=e&&""!==e)).map((([e,n])=>{const a=t.find((t=>t.key===e));return a&&a.filterable?{key:e,value:n,lowercaseValue:"string"==typeof n?n.toLowerCase():(n+"").toLowerCase(),column:a}:null})).filter((e=>null!==e)):[]),[g,R,t]),G=u((()=>{if(!x&&0===F.length)return e;const t=x?x.toLowerCase():"";return e.filter((e=>{if(x&&!M.some((n=>{var a;const r=e[n.key];return null!=r&&Ra(a=(r+"").toLowerCase()).call(a,t)})))return!1;for(let t=0;t<F.length;t++){const a=F[t];if(!a)continue;const{key:r,value:i,lowercaseValue:o,column:s}=a,l=e[r];if(null==l)return!1;var n;if(s.filterFunction){if(!s.filterFunction(l,i))return!1}else if(!Ra(n=(l+"").toLowerCase()).call(n,o))return!1}return!0}))}),[e,M,x,F]),V=u((()=>S&&n?[...G].sort(((e,t)=>{const n=e[S.key],a=t[S.key];return null==n?"asc"===S.direction?-1:1:null==a?"asc"===S.direction?1:-1:"string"==typeof n&&"string"==typeof a?"asc"===S.direction?n.localeCompare(a):a.localeCompare(n):"asc"===S.direction?n>a?1:-1:n>a?-1:1})):G),[G,S,n]),H=u((()=>{if(!a)return V;const e=(E-1)*i;return V.slice(e,e+i)}),[V,a,E,i]),$=u((()=>a?Math.max(1,Math.ceil(V.length/i)):1),[V.length,a,i]),Y=u((()=>"none"===d||0===C.length?[]:V.filter((e=>Ra(C).call(C,Fs(e,p))))),[V,C,d,p]),K=o(((e,t)=>{if("none"===d)return;let n;if(n="single"===d?t?[e]:[]:t?[...C,e]:C.filter((t=>t!==e)),h||_(n),m){const e=V.filter((e=>Ra(n).call(n,Fs(e,p))));m(e,n)}}),[d,C,h,m,V,p]),W=o((e=>{if("multiple"!==d)return;const t=e?H.map((e=>Fs(e,p))):[];if(h||_(t),m){const e=V.filter((e=>Ra(t).call(t,Fs(e,p))));m(e,t)}}),[d,H,V,h,m,p]),j=u((()=>"multiple"===d&&0!==H.length&&H.every((e=>Ra(C).call(C,Fs(e,p))))),[d,H,C,p]),q=u((()=>{if("multiple"!==d||0===H.length)return!1;const e=H.filter((e=>Ra(C).call(C,Fs(e,p)))).length;return e>0&&e<H.length}),[d,H,C,p]),Q=o((e=>{O((t=>{const n={...t,[e]:!t[e]};if(v){const e=Object.entries(n).filter((([,e])=>e)).map((([e])=>e));v(e)}return n}))}),[v]);return o(((e,t)=>{const n=[...L],[a]=n.splice(e,1);a&&(n.splice(t,0,a),I(n),b&&b(n))}),[L,b]),s((()=>{A(1)}),[e]),s((()=>{E>$&&$>0&&A(Math.max(1,$))}),[E,$]),{displayData:H,sortConfig:S,currentPage:E,totalPages:$,handleSort:D,handlePageChange:P,handleSearch:B,selectedRowIds:C,selectedRows:Y,handleRowSelect:K,handleSelectAll:W,isAllSelected:j,isIndeterminate:q,columnOrder:L,visibleColumns:M,columnVisibility:w,handleColumnVisibilityToggle:Q,columnFilterValues:R,handleColumnFilterChange:z,clearColumnFilters:U}}({data:a,columns:l,sortable:h,paginated:p,pageSize:g,onSort:A,selectionMode:x,selectedRowIds:N,onSelectionChange:T,rowKey:_,columnFilters:G,reorderable:L,onColumnReorder:I,onColumnVisibilityChange:O});s((()=>{const e={};he.forEach((t=>{if(t.width){const n=parseInt(t.width,10);isNaN(n)||(e[t.key]=n)}})),j(e)}),[he]);const ve=o(((e,t)=>{t.preventDefault(),t.stopPropagation(),K(e);const n=t.clientX,a=W[e]||100,r=t=>{const r=t.clientX-n,i=Math.max(50,a+r);j((t=>({...t,[e]:i})))},i=()=>{K(null),document.removeEventListener("mousemove",r),document.removeEventListener("mouseup",i)};document.addEventListener("mousemove",r),document.addEventListener("mouseup",i)}),[W]),Se=o((e=>{Q(e)}),[]),ye=o(((e,t)=>{e.preventDefault(),Z(t)}),[]),Ee=o(((e,t)=>{if(e.preventDefault(),null!==q&&q!==t&&I){const e=[...he.map((e=>e.key))],[n]=e.splice(q,1);n&&(e.splice(t,0,n),I(e))}Q(null),Z(null)}),[q,he,I]),Ae=o((e=>{F?F(e,J):function(e,t,n,a){const r=a||"data-table";switch(e){case"csv":!function(e,t,n="data-table.csv"){if(!e.length||!t.length)return;const a=t.map((e=>e.title||e.key)),r=e.map((e=>t.map((t=>{const n=e[t.key];return t.render,n??""})))),i=[a.map((e=>`"${Ps(e)}"`)).join(","),...r.map((e=>e.map((e=>`"${Ps(e)}"`)).join(",")))].join("\n"),o=new Blob([i],{type:"text/csv;charset=utf-8;"}),s=URL.createObjectURL(o),l=document.createElement("a");l.download=n.endsWith(".csv")?n:n+".csv",l.href=s,l.click(),URL.revokeObjectURL(s)}(t,n,r);break;case"excel":!function(e,t,n="data-table.xlsx"){if(!e.length||!t.length)return;const a=t.map((e=>e.title||e.key)),r=e.map((e=>t.map((t=>e[t.key]??"")))),i=[a.map((e=>`"${Ps(e)}"`)).join(","),...r.map((e=>e.map((e=>`"${Ps(e)}"`)).join(",")))].join("\n"),o=new Blob([i],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"}),s=URL.createObjectURL(o),l=document.createElement("a");l.download=n.endsWith(".xlsx")?n:n+".xlsx",l.href=s,l.click(),URL.revokeObjectURL(s)}(t,n,r);break;case"json":!function(e,t="data-table.json"){if(!e.length)return;const n=JSON.stringify(e,null,2),a=new Blob([n],{type:"application/json;charset=utf-8;"}),r=URL.createObjectURL(a),i=document.createElement("a");i.download=t.endsWith(".json")?t:t+".json",i.href=r,i.click(),URL.revokeObjectURL(r)}(t,r)}}(e,J,he,U)}),[J,he,U,F]),xe=[cr.base,f&&cr.striped,b&&cr.bordered,v&&cr.dense,S&&cr.loading,R&&cr.stickyHeader,c].filter(Boolean).join(" "),Ne={...d,...R&&{"--sticky-header-offset":k}};return t("div",{className:cr.container,style:Ne,...V,children:[m||B||w||G?t("div",{className:cr.toolbar,children:[t("div",{className:cr.toolbarLeft,children:[m&&e("div",{className:cr.search,children:e("input",{type:"text",placeholder:"Search...",className:cr.searchInput+" c-input",onChange:e=>ie(e.target.value),"aria-label":"Search table"})}),G&&Object.keys(ge).length>0&&e(Vo,{size:"sm",variant:"secondary",onClick:be,children:"Clear Filters"})]}),t("div",{className:cr.toolbarRight,children:[w&&e(Js,{trigger:"click",placement:"bottom-end",menu:e(n,{children:l.map((n=>e(qs,{onClick:e=>{e.preventDefault(),e.stopPropagation(),pe(n.key)},children:t("label",{style:{display:"flex",alignItems:"center",cursor:"pointer",width:"100%"},children:[e(Ys,{checked:!1!==me[n.key],onChange:()=>pe(n.key),onClick:e=>e.stopPropagation()}),e("span",{style:{marginLeft:"0.5rem"},children:n.title})]})},n.key)))}),children:t(Vo,{size:"sm",variant:"secondary",children:[e(no,{name:"Columns",size:"sm"}),"Columns"]})}),B&&e(Js,{trigger:"click",placement:"bottom-end",menu:t(n,{children:[Ra(z).call(z,"csv")&&e(qs,{onClick:()=>Ae("csv"),children:"Export as CSV"}),Ra(z).call(z,"excel")&&e(qs,{onClick:()=>Ae("excel"),children:"Export as Excel"}),Ra(z).call(z,"json")&&e(qs,{onClick:()=>Ae("json"),children:"Export as JSON"})]}),children:t(Vo,{size:"sm",variant:"secondary",children:[e(no,{name:"Download",size:"sm"}),"Export"]})})]})]}):null,e("div",{className:cr.tableWrapper,children:t("table",{ref:H,className:xe,children:[e("thead",{ref:$,className:cr.header,style:R?{position:"sticky",top:k,zIndex:10}:void 0,children:t("tr",{children:["none"===x?null:e("th",{className:`${cr.headerCell} ${cr.selectionCell}`,style:{width:"48px"},children:"multiple"===x&&e(Ys,{checked:de,indeterminate:ue,onChange:e=>ce(e.target.checked),"aria-label":"Select all rows"})}),he.map(((n,a)=>{const r=q===a,i=X===a;return t("th",{className:[cr.headerCell,!1!==n.sortable&&h?cr.sortable:"",r?cr.dragging:"",i?cr.dragOver:""].filter(Boolean).join(" "),style:{...W[n.key]&&{width:W[n.key]+"px"},...n.width&&!W[n.key]&&{width:n.width}},onClick:()=>!1!==n.sortable&&h?ae(n.key):null,onDragStart:L?()=>Se(a):void 0,onDragOver:L?e=>ye(e,a):void 0,onDrop:L?e=>Ee(e,a):void 0,draggable:L,"aria-sort":ee?.key===n.key?"asc"===ee.direction?"ascending":"descending":void 0,children:[t("div",{className:cr.headerContent,children:[e("span",{children:n.title}),t("div",{className:cr.headerActions,children:[!1!==n.sortable&&h&&e("span",{className:cr.sortIcon,children:ee?.key===n.key?"asc"===ee.direction?e(no,{name:"CaretUp",size:"sm"}):e(no,{name:"CaretDown",size:"sm"}):null}),G&&!1!==n.filterable&&e("input",{type:"text",className:cr.columnFilter,placeholder:"Filter...",value:ge[n.key]||"",onChange:e=>fe(n.key,e.target.value),onClick:e=>e.stopPropagation(),"aria-label":"Filter "+n.title})]})]}),C&&!1!==n.resizable&&e("div",{className:cr.resizeHandle,onMouseDown:e=>ve(n.key,e)})]},"header-"+n.key)}))]})}),S?e("tbody",{children:e("tr",{children:e("td",{colSpan:he.length+("none"!==x?1:0),className:cr.loadingCell,children:e("div",{className:cr.loadingIndicator,children:e(po,{size:"md",variant:"primary"})})})})}):0===J.length?e("tbody",{children:e("tr",{children:e("td",{colSpan:he.length+("none"!==x?1:0),className:cr.emptyCell,children:y})})}):e("tbody",{children:J.map(((n,a)=>{const r=function(e,t){return"function"==typeof t?t(e):"string"==typeof t?e[t]:e.id??e.key??JSON.stringify(e)}(n,_),i=Ra(oe).call(oe,r);return t("tr",{className:[cr.row,i?cr.rowSelected:""].filter(Boolean).join(" "),onClick:E?()=>E(n):void 0,tabIndex:E?0:void 0,role:E?"button":void 0,children:["none"!==x&&e("td",{className:`${cr.cell} ${cr.selectionCell}`,children:"multiple"===x?e(Ys,{checked:i,onChange:e=>le(r,e.target.checked),onClick:e=>e.stopPropagation(),"aria-label":"Select row "+(a+1)}):e("input",{type:"radio",checked:i,onChange:()=>le(r,!0),onClick:e=>e.stopPropagation(),name:"data-table-row-selection","aria-label":"Select row "+(a+1),className:"c-data-table__radio"})}),he.map((t=>e("td",{className:cr.cell,style:{...W[t.key]&&{width:W[t.key]+"px"},...t.width&&!W[t.key]&&{width:t.width}},children:t.render?t.render(n[t.key],n):n[t.key]},`cell-${r}-${t.key}`)))]},"row-"+r)}))})]})}),p&&ne>1?e("div",{className:cr.pagination,children:e($s,{currentPage:te,totalPages:ne,onPageChange:re,showFirstLastButtons:!0,showPrevNextButtons:!0,size:"sm","aria-label":"Data table pagination",className:"c-data-table__pagination"})}):null]})}));function tl(e){const t=new Date;return t.setMonth(e),t.toLocaleString("default",{month:"long"})}function nl(e,t){return new Date(e,t+1,0).getDate()}function al(e,t){if(!e)return"";const n=e.getDate(),a=e.getMonth()+1,r=e.getFullYear();return t.replace("yyyy",r.toString()).replace("MM",a.toString().padStart(2,"0")).replace("M",a.toString()).replace("dd",n.toString().padStart(2,"0")).replace("d",n.toString())}function rl({value:e,onChange:t,selectionMode:n="single",startDate:a,endDate:l,onRangeChange:c,format:d="MM/dd/yyyy",minDate:h,maxDate:m,inline:p=!1}={}){const[g,f]=r(p),[b,v]=r(e?al(e,d):""),[S,y]=r(a&&l?`${al(a,d)} - ${al(l,d)}`:a?al(a,d)+" - Select end date":""),[E,A]=r(e||a||new Date),[x,N]=r("days"),[T,_]=r(!a||a&&l?"start":"end"),C=i(null),L=i(null),I=u((()=>new Date),[]),w=E.getMonth(),O=E.getFullYear(),R=nl(O,w),k=new Date(O,w,1).getDay();s((()=>{"single"===n?v(e?al(e,d):""):(y(a&&l?`${al(a,d)} - ${al(l,d)}`:a?al(a,d)+" - Select end date":""),_(!a||a&&l?"start":"end"))}),[e,a,l,d,n]);const M=o((e=>{const r=new Date(O,w,e);if(!(h&&h>r||m&&r>m))if("single"===n)t&&t(r),v(al(r,d)),p||f(!1);else if("start"===T)c&&c({startDate:r,endDate:null}),y(al(r,d)+" - Select end date"),_("end");else{if(!a)return;a>r?(c&&c({startDate:r,endDate:a}),y(`${al(r,d)} - ${al(a,d)}`)):(c&&c({startDate:a,endDate:r}),y(`${al(a,d)} - ${al(r,d)}`)),p||f(!1),_("start")}}),[O,w,h,m,t,c,d,p,n,T,a]),D=o((()=>{A(new Date(O,w-1,1))}),[O,w]),P=o((()=>{A(new Date(O,w+1,1))}),[O,w]),B=o((()=>{A(new Date(O-1,w,1))}),[O,w]),z=o((()=>{A(new Date(O+1,w,1))}),[O,w]),U=o((()=>{N("months")}),[]),F=o((()=>{N("years")}),[]),G=o((e=>{A(new Date(O,e,1)),N("days")}),[O]),V=o((e=>{A(new Date(e,w,1)),N("months")}),[w]),H=o((()=>{A(new Date(O-12,w,1))}),[O,w]),$=o((()=>{A(new Date(O+12,w,1))}),[O,w]),Y=o((()=>{N("days")}),[]),K=o((()=>{const e=new Date;A(e),"single"===n?M(e.getDate()):A(new Date)}),[M,n]),W=o((()=>{"single"===n?(v(""),t&&t(null)):(y(""),_("start"),c&&c({startDate:null,endDate:null}))}),[t,c,n]),j=o((e=>{if("single"===n){v(e.target.value);const n=new Date(e.target.value);isNaN(n.getTime())||(t&&t(n),A(n))}else{y(e.target.value);const t=e.target.value.split("-");if(2===t.length){const e=t[0]?.trim(),n=t[1]?.trim();if(!e||!n)return;const a=new Date(e);if(isNaN(a.getTime())||A(a),e&&n){const t=new Date(e),a=new Date(n);isNaN(t.getTime())||isNaN(a.getTime())||c&&c({startDate:t,endDate:a})}}}}),[t,c,n]),q=o((()=>{p||f(!0)}),[p]),Q=o((e=>{C.current&&!C.current.contains(e.target)&&L.current&&!L.current.contains(e.target)&&f(!1)}),[]);s((()=>(g&&!p?document.addEventListener("mousedown",Q):document.removeEventListener("mousedown",Q),()=>{document.removeEventListener("mousedown",Q)})),[g,Q,p]);const X=o((()=>{const e=[],t=nl(0===w?O-1:O,0===w?11:w-1);for(let a=k-1;a>=0;a--)e.push({day:t-a,month:0===w?11:w-1,year:0===w?O-1:O,isCurrentMonth:!1});for(let a=1;R>=a;a++)e.push({day:a,month:w,year:O,isCurrentMonth:!0});const n=42-e.length;for(let a=1;n>=a;a++)e.push({day:a,month:11===w?0:w+1,year:11===w?O+1:O,isCurrentMonth:!1});return e}),[R,k,w,O]),Z=o((()=>{const e=[];for(let t=0;12>t;t++)e.push({month:t,name:tl(t)});return e}),[]),J=o((()=>{const e=[],t=O-6;for(let n=0;12>n;n++)e.push(t+n);return e}),[O]),ee=o(((e,t,n)=>function(e,t,n){return!(!e||t&&t>e||n&&e>n)}(new Date(e,t,n),h,m)),[h,m]),te=o(((t,r,i)=>{if("single"===n)return!!e&&e.getFullYear()===t&&e.getMonth()===r&&e.getDate()===i;if(!a&&!l)return!1;if(a&&!l)return a.getFullYear()===t&&a.getMonth()===r&&a.getDate()===i;if(a&&l){const e=a.getFullYear()===t&&a.getMonth()===r&&a.getDate()===i,n=l.getFullYear()===t&&l.getMonth()===r&&l.getDate()===i;return e||n}return!1}),[e,n,a,l]),ne=o(((e,t,r)=>{if("range"!==n||!a||!l)return!1;const i=new Date(e,t,r);return i>a&&l>i}),[n,a,l]),ae=o(((e,t,n)=>I.getFullYear()===e&&I.getMonth()===t&&I.getDate()===n),[I]),re=o((e=>{const t=new Date(e.valueOf()),n=(e.getDay()+6)%7;t.setDate(t.getDate()-n+3);const a=t.valueOf();return t.setMonth(0,1),4!==t.getDay()&&t.setMonth(0,1+(4-t.getDay()+7)%7),1+Math.ceil((a-t.valueOf())/6048e5)}),[]);return{isOpen:g,inputValue:b,rangeInputValue:S,viewDate:E,viewMode:x,currentMonth:w,currentYear:O,selectionMode:n,rangeSelectionState:T,datePickerRef:C,inputRef:L,startDate:a,endDate:l,setIsOpen:f,handleDateSelect:M,handlePrevMonth:D,handleNextMonth:P,handlePrevYear:B,handleNextYear:z,handleTodayClick:K,handleClear:W,handleInputChange:j,handleInputFocus:q,switchToMonthView:U,switchToYearView:F,switchToDayView:Y,selectMonth:G,selectYear:V,handlePrevDecade:H,handleNextDecade:$,generateDays:X,generateMonths:Z,generateYears:J,isDateSelectable:ee,isDateSelected:te,isDateInSelectedRange:ne,isToday:ae,getWeekNumber:re}}el.displayName="DataTable";const il=c((({value:a,onChange:r,selectionMode:i="single",startDate:o,endDate:s,onRangeChange:l,format:c="MM/dd/yyyy",minDate:d,maxDate:u,placeholder:h="Select date...",disabled:m=!1,readOnly:p=!1,clearable:g=!0,showTodayButton:f=!0,showWeekNumbers:v=!1,inline:S=!1,id:y,name:E,className:A="",placement:x="bottom-start",inputClassName:N="",size:T="md",style:_,glass:C,...L},I)=>{const{isOpen:w,inputValue:O,rangeInputValue:R,viewMode:k,currentMonth:M,currentYear:D,selectionMode:P,rangeSelectionState:B,datePickerRef:z,inputRef:U,startDate:F,endDate:G,setIsOpen:V,handleInputChange:H,handleInputFocus:$,handleClear:Y,handleDateSelect:K,handleTodayClick:W,handlePrevMonth:j,handleNextMonth:q,handlePrevYear:Q,handleNextYear:X,switchToMonthView:Z,switchToYearView:J,switchToDayView:ee,selectMonth:te,selectYear:ne,handlePrevDecade:ae,handleNextDecade:re,generateDays:ie,generateMonths:oe,generateYears:se,isDateSelectable:le,isDateSelected:ce,isDateInSelectedRange:de,isToday:ue,getWeekNumber:he}=rl({value:a,onChange:r,selectionMode:i,startDate:o,endDate:s,onRangeChange:l,minDate:d,maxDate:u,format:c,inline:S});b(I,(()=>({open:()=>V(!0),close:()=>V(!1),clear:Y,focus:()=>U.current?.focus()})));const me=`c-datepicker ${A} ${S?"c-datepicker--inline":""}`.trim(),pe=`c-datepicker__input c-input c-input--${T} ${N}`.trim(),ge=y||"datepicker-"+Math.random().toString(36).substring(2,9),fe=ge+"-calendar",be="single"===i?O:R,ve=e=>["January","February","March","April","May","June","July","August","September","October","November","December"][e]||"",Se=()=>t(n,{children:[t("div",{className:"c-datepicker__header",children:["days"===k&&t(n,{children:[e("button",{type:"button",className:"c-datepicker__nav-button c-datepicker__nav-button--prev-year",onClick:Q,"aria-label":"Previous year",children:e(no,{name:"CaretDoubleLeft",size:"sm"})}),e("button",{type:"button",className:"c-datepicker__nav-button c-datepicker__nav-button--prev-month",onClick:j,"aria-label":"Previous month",children:e(no,{name:"CaretLeft",size:"sm"})}),t("button",{type:"button",className:"c-datepicker__view-switch",onClick:Z,"aria-label":`${ve(M)} ${D}`,children:[ve(M)," ",D]}),e("button",{type:"button",className:"c-datepicker__nav-button c-datepicker__nav-button--next-month",onClick:q,"aria-label":"Next month",children:e(no,{name:"CaretRight",size:"sm"})}),e("button",{type:"button",className:"c-datepicker__nav-button c-datepicker__nav-button--next-year",onClick:X,"aria-label":"Next year",children:e(no,{name:"CaretDoubleRight",size:"sm"})})]}),"months"===k&&t(n,{children:[e("button",{type:"button",className:"c-datepicker__nav-button c-datepicker__nav-button--prev-year",onClick:Q,"aria-label":"Previous year",children:e(no,{name:"CaretDoubleLeft",size:"sm"})}),e("button",{type:"button",className:"c-datepicker__view-switch",onClick:J,"aria-label":"Year "+D,children:D}),e("button",{type:"button",className:"c-datepicker__nav-button c-datepicker__nav-button--next-year",onClick:X,"aria-label":"Next year",children:e(no,{name:"CaretDoubleRight",size:"sm"})})]}),"years"===k&&(()=>{const a=se();return t(n,{children:[e("button",{type:"button",className:"c-datepicker__nav-button c-datepicker__nav-button--prev-decade",onClick:ae,"aria-label":"Previous decade",children:e(no,{name:"CaretDoubleLeft",size:"sm"})}),t("button",{type:"button",className:"c-datepicker__view-switch",onClick:ee,children:[a[0]," - ",a[a.length-1]]}),e("button",{type:"button",className:"c-datepicker__nav-button c-datepicker__nav-button--next-decade",onClick:re,"aria-label":"Next decade",children:e(no,{name:"CaretDoubleRight",size:"sm"})})]})})()]}),t("div",{className:"c-datepicker__body",children:["days"===k&&t(n,{children:[t("div",{className:"c-datepicker__weekdays"+(v?" c-datepicker__weekdays--has-weeknumber":""),role:"row",children:[v&&e("div",{className:"c-datepicker__weekday",children:"Wk"}),["Su","Mo","Tu","We","Th","Fr","Sa"].map((t=>e("div",{className:"c-datepicker__weekday",role:"columnheader",children:t},t)))]}),e("div",{className:"c-datepicker__days"+(v?" c-datepicker__days--has-weeknumber":""),role:"grid",children:(()=>{const t=[],n=ie();for(let a=0;a<n.length;a++){const r=n[a];if(!r)continue;const i=new Date(r.year,r.month,r.day),o=le(r.year,r.month,r.day),s=ce(r.year,r.month,r.day),l=ue(r.year,r.month,r.day),c=de(r.year,r.month,r.day);if(v&&a%7==0){const n=he(i);t.push(e("div",{className:"c-datepicker__weeknumber",role:"rowheader",children:n},"weeknumber-"+Math.floor(a/7)))}t.push(e("button",{type:"button",className:`c-datepicker__day\n ${r.isCurrentMonth?"":"c-datepicker__day--outside"}\n ${s?"c-datepicker__day--selected":""}\n ${c?"c-datepicker__day--in-range":""}\n ${l?"c-datepicker__day--today":""}\n ${o?"":"c-datepicker__day--disabled"}`,onClick:()=>o&&K(r.day),disabled:!o,tabIndex:r.isCurrentMonth?0:-1,"aria-label":i.toLocaleDateString(),"aria-selected":s?"true":"false",role:"gridcell",children:r.day},"day-"+a))}return t})()})]}),"months"===k&&e("div",{className:"c-datepicker__months",role:"grid",children:oe().map(((t,n)=>{const r=a&&a.getMonth()===t.month&&a.getFullYear()===D;return e("button",{type:"button",className:"c-datepicker__month "+(r?"c-datepicker__month--selected":""),onClick:()=>te(t.month),"aria-selected":r?"true":"false",role:"gridcell",children:t.name.substring(0,3)},"month-"+n)}))}),"years"===k&&e("div",{className:"c-datepicker__years",role:"grid",children:se().map(((t,n)=>{const r=a&&a.getFullYear()===t;return e("button",{type:"button",className:"c-datepicker__year "+(r?"c-datepicker__year--selected":""),onClick:()=>ne(t),"aria-selected":r?"true":"false",role:"gridcell",children:t},"year-"+n)}))})]}),"days"===k&&t("div",{className:"c-datepicker__footer",children:["range"===i&&t("div",{className:"c-datepicker__range-status c-badge c-badge--sm c-badge--info u-w-100",children:["Selecting ","start"===B?"start":"end"," date"]}),f&&e("button",{type:"button",className:"c-datepicker__today-button c-btn c-btn--sm c-btn--outline-primary",onClick:W,"aria-label":"Go to today",children:"Today"}),!S&&e("button",{type:"button",className:"c-datepicker__close-button c-btn c-btn--sm c-btn--outline-error",onClick:()=>V(!1),"aria-label":"Close calendar",children:"Close"})]})]});return t("div",{className:me,ref:z,style:_,...L,children:[!S&&t("div",{className:"c-datepicker__input-wrapper",children:[e("input",{id:ge,name:E,ref:U,type:"text",className:pe,placeholder:"single"===i?h:"start"===B?"Select start date...":F?al(F,c)+" - Select end date...":"Select date range...",value:be,onChange:H,onFocus:$,disabled:m,readOnly:p,"aria-haspopup":"dialog","aria-expanded":w,"aria-controls":fe}),g&&be&&e("button",{type:"button",className:"c-datepicker__clear-button",onClick:Y,"aria-label":"Clear date",children:e(no,{name:"X",size:"sm"})}),e("span",{className:"c-datepicker__calendar-icon","aria-hidden":"true",children:e(no,{name:"Calendar",size:"sm",color:"var(--atomix-secondary-text-emphasis)"})})]}),(w||S)&&e(n,{children:e("div",C?{id:fe,className:`c-datepicker__calendar c-datepicker__calendar--${x} c-datepicker__calendar--glass`,role:"dialog","aria-modal":S?void 0:"true","aria-label":"Date picker",children:e(Ri,{...!0===C?{displacementScale:20}:C,children:e("div",{className:"c-datepicker__glass-content",children:Se()})})}:{id:fe,className:"c-datepicker__calendar c-datepicker__calendar--"+x,role:"dialog","aria-modal":S?void 0:"true","aria-label":"Date picker",children:Se()})})]})}));function ol(e){const{position:t="start",mode:n="slide",isOpen:a=!1,backdrop:l=!0,closeOnBackdropClick:c=!0,closeOnEscape:d=!0,glass:u,onOpenChange:h,className:m=""}=e||{},[p,g]=r(a||!1),f=i(null),b=i(null),v=o((()=>{if(!f.current||"push"!==n)return;const e="top"===t||"bottom"===t?f.current.clientHeight:f.current.clientWidth;let a;switch(t){case"start":a="paddingLeft";break;case"end":a="paddingRight";break;default:a="padding"+(t.charAt(0).toUpperCase()+t.slice(1))}document.body.style[a]=e+"px",document.body.classList.add("is-pushed")}),[n,t]),S=o((()=>{if("push"!==n)return;let e;switch(t){case"start":e="paddingLeft";break;case"end":e="paddingRight";break;default:e="padding"+(t.charAt(0).toUpperCase()+t.slice(1))}document.body.style[e]="",document.body.classList.remove("is-pushed")}),[n,t]),y=o(((e=!1)=>{if(g(!0),document.body.classList.add("is-edgepanel-open"),f.current){if("none"!==n)if(e){f.current.classList.add("is-fade-animating"),f.current.offsetHeight;const e=f.current;setTimeout((()=>{e&&e.classList.remove("is-fade-animating")}),lr.ANIMATION_DURATION)}else{f.current.classList.add("is-animating"),f.current.offsetHeight;const e=f.current;setTimeout((()=>{e&&e.classList.remove("is-animating")}),lr.ANIMATION_DURATION)}e?(f.current.style.opacity="1",f.current.style.transform=""):f.current.style.transform="translate(0)","push"===n&&v()}h&&h(!0)}),[n,v,h]),E=o(((e=!1)=>{if(f.current){if("none"!==n)if(e){f.current.classList.add("is-fade-animating-out");const e=f.current;setTimeout((()=>{e&&e.classList.remove("is-fade-animating-out")}),lr.ANIMATION_DURATION)}else{f.current.classList.add("is-animating-out");const e=f.current;setTimeout((()=>{e&&e.classList.remove("is-animating-out")}),lr.ANIMATION_DURATION)}e?(f.current.style.opacity="0",f.current.style.transform=""):f.current.style.transform=t?lr.TRANSFORM_VALUES[t]:"","push"===n&&S(),setTimeout((()=>{g(!1),document.body.classList.remove("is-edgepanel-open"),h&&h(!1)}),"none"===n?0:lr.ANIMATION_DURATION)}else g(!1),document.body.classList.remove("is-edgepanel-open"),h&&h(!1)}),[n,t,h,S]),A=o((e=>{d&&"Escape"===e.key&&p&&E()}),[E,d,p]),x=o((e=>{c&&e.target===e.currentTarget&&E()}),[E,c]);return s((()=>(p&&d&&document.addEventListener("keydown",A),()=>{document.removeEventListener("keydown",A)})),[p,A,d]),s((()=>{f.current&&(p||"slide"!==n&&"push"!==n||!t||(f.current.style.transform=lr.TRANSFORM_VALUES[t],u&&(f.current.style.opacity="0")))}),[n,t,u,p]),s((()=>{void 0!==a&&a!==p&&(a?y(!!u):E(!!u))}),[a,E,p,y,u]),{isOpen:p,containerRef:f,backdropRef:b,generateEdgePanelClass:e=>{const{position:n=t,className:a=m,isOpen:r}=e,i=lr.CLASSES.BASE;return`${i} ${n?`${i}--${n}`:""} ${r??p?lr.CLASSES.IS_OPEN:""} ${a}`.trim()},openPanel:y,closePanel:E,handleBackdropClick:x}}il.displayName="DatePicker";const sl=c((({children:t,className:n="",...a},r)=>e("div",{ref:r,className:("c-edge-panel__header "+n).trim(),...a,children:t})));sl.displayName="EdgePanelHeader";const ll=c((({children:t,className:n="",...a},r)=>e("div",{ref:r,className:("c-edge-panel__body "+n).trim(),...a,children:t})));ll.displayName="EdgePanelBody";const cl=c((({children:t,className:n="",...a},r)=>e("div",{ref:r,className:("c-edge-panel__footer "+n).trim(),...a,children:t})));cl.displayName="EdgePanelFooter";const dl=c((({className:t="",onClick:n,...a},r)=>e("button",{ref:r,className:("c-edge-panel__close c-btn c-btn--icon "+t).trim(),onClick:n,"aria-label":"Close panel",...a,children:e(no,{name:"X"})})));dl.displayName="EdgePanelCloseButton";const ul=l((({title:r,children:o,position:s="start",mode:l="slide",isOpen:c=!1,onOpenChange:d,backdrop:u=!0,closeOnBackdropClick:h=!0,closeOnEscape:m=!0,className:p="",style:g,glass:f})=>{const{isOpen:b,containerRef:v,backdropRef:S,generateEdgePanelClass:y,closePanel:E,handleBackdropClick:A}=ol({position:s,mode:l,isOpen:c,onOpenChange:d,backdrop:u,closeOnBackdropClick:h,closeOnEscape:m,glass:f}),x=i(null),N=y({position:s,isOpen:c,className:f?p+" c-edge-panel--glass":p});if(!b&&!1===c)return null;const T={elasticity:0},_=!0===f?T:{...T,...f},C=a.Children.toArray(o).some((e=>{var t;return a.isValidElement(e)&&Ra(t=["EdgePanelHeader","EdgePanelBody","EdgePanelFooter"]).call(t,e.type.displayName||"")}))?o:t(n,{children:[t("div",{className:"c-edge-panel__header",children:[e("h4",{children:r}),e("button",{className:"c-edge-panel__close c-btn c-btn--icon",onClick:()=>E(),"aria-label":"Close panel",children:e(no,{name:"X"})})]}),e("div",{className:"c-edge-panel__body",children:o})]});return t("div",{className:N,"data-position":s,"data-mode":l,style:g,children:[u&&e("div",{ref:S,className:"c-edge-panel__backdrop",onClick:A}),e("div",{ref:v,className:"c-edge-panel__container",children:f?e(Ri,{..._,children:e("div",{ref:x,className:"c-edge-panel__glass-content",style:{borderRadius:v.current?.style.borderRadius},children:C})}):C})]})}));function hl(e){const t={disabled:!1,...e};return{defaultProps:t,generateFormClass:e=>{const{disabled:n=t.disabled,className:a=""}=e,r=n?mr.CLASSES.DISABLED:"";return`${mr.CLASSES.BASE} ${r} ${a}`.trim()},handleSubmit:e=>n=>{n.preventDefault(),!t.disabled&&e&&e(n)},handleReset:e=>n=>{!t.disabled&&e&&e(n)}}}ul.displayName="EdgePanel",ul.Header=sl,ul.Body=ll,ul.Footer=cl,ul.CloseButton=dl;const ml=({children:t,onSubmit:n,onReset:a,className:r="",style:i,disabled:o=!1,id:s,method:l="post",encType:c,noValidate:d=!1,autoComplete:u="on"})=>{const{generateFormClass:h,handleSubmit:m,handleReset:p}=hl({disabled:o}),g=h({className:r,disabled:o});return e("form",{id:s,className:g,style:i,onSubmit:m(n),onReset:p(a),method:l,encType:c,noValidate:d,autoComplete:u,children:t})};function pl(e){const t={size:"md",disabled:!1,invalid:!1,valid:!1,...e};return{defaultProps:t,generateFormGroupClass:e=>{const{size:n=t.size,disabled:a=t.disabled,invalid:r=t.invalid,valid:i=t.valid,className:o=""}=e,s="md"===n?"":"sm"===n?pr.CLASSES.SMALL:pr.CLASSES.LARGE,l=r?pr.CLASSES.INVALID:i?pr.CLASSES.VALID:"",c=a?pr.CLASSES.DISABLED:"";return`${pr.CLASSES.BASE} ${s} ${l} ${c} ${o}`.trim()}}}ml.displayName="Form";const gl=({children:n,label:a,helperText:r,htmlFor:i,className:o="",style:s,disabled:l=!1,required:c=!1,invalid:d=!1,valid:u=!1,size:h="md"})=>{const{generateFormGroupClass:m}=pl({size:h,disabled:l,invalid:d,valid:u}),p=m({className:o,disabled:l,invalid:d,valid:u,size:h});return t("div",{className:p,style:s,children:[a&&t("label",{className:"c-form-group__label",htmlFor:i,children:[a,c&&e("span",{className:"c-form-group__required",children:"*"})]}),e("div",{className:"c-form-group__field",children:n}),r&&e("div",{className:"c-form-group__helper",children:r})]})};function fl(e){const t={size:"md",disabled:!1,invalid:!1,valid:!1,...e};return{defaultProps:t,generateInputClass:e=>{const{size:n=t.size,variant:a=t.variant,disabled:r=t.disabled,invalid:i=t.invalid,valid:o=t.valid,className:s="",type:l}=e,c="md"===n?"":"sm"===n?gr.CLASSES.SMALL:gr.CLASSES.LARGE,d=a?"c-input--"+a:"",u="textarea"===l?"c-input--textarea":"";let h="";i?h=gr.CLASSES.INVALID:o&&(h=gr.CLASSES.VALID);const m=r?gr.CLASSES.DISABLED:"";return`${gr.CLASSES.BASE} ${c} ${d} ${u} ${h} ${m} ${s}`.trim()},generateWrapperClass:t=>{const{className:n=""}=t,{prefixIcon:a=!1,suffixIcon:r=!1,clearable:i=!1,showCounter:o=!1,showPasswordToggle:s=!1,fullWidth:l=!1}=e||{},c=[gr.ELEMENTS.WRAPPER];return a&&c.push(gr.CLASSES.PREFIX_ICON),(r||i||s)&&c.push(gr.CLASSES.SUFFIX_ICON),i&&c.push(gr.CLASSES.CLEARABLE),o&&c.push(gr.CLASSES.WITH_COUNTER),s&&c.push(gr.CLASSES.PASSWORD_TOGGLE),l&&c.push(gr.CLASSES.FULL_WIDTH),n&&c.push(n),c.filter(Boolean).join(" ")}}}gl.displayName="FormGroup";const bl=l(c((({type:t="text",value:n,defaultValue:a,onChange:r,onBlur:i,onFocus:o,placeholder:s,className:l="",style:c,disabled:d=!1,required:u=!1,readOnly:h=!1,id:m,name:p,autoComplete:g,autoFocus:f=!1,size:b="md",variant:v,invalid:S=!1,valid:y=!1,maxLength:E,minLength:A,pattern:x,min:N,max:T,step:_,"aria-label":C,"aria-describedby":L,glass:I},w)=>{const{generateInputClass:O}=fl({size:b,variant:v,disabled:d,invalid:S,valid:y}),R=O({className:`${l} ${I?"c-input--glass":""}`.trim(),size:b,variant:v,disabled:d,invalid:S,valid:y,type:t}),k=e("input",{ref:w,type:t,className:R,value:n,defaultValue:a,onChange:r,onBlur:i,onFocus:o,placeholder:s,disabled:d,required:u,readOnly:h,id:m,name:p,autoComplete:g,autoFocus:f,maxLength:E,minLength:A,pattern:x,min:N,max:T,step:_,"aria-label":C,"aria-describedby":L,"aria-invalid":S,style:I?{...c}:c});if(I){const t={displacementScale:60,blurAmount:1,saturation:180,aberrationIntensity:.2,borderRadius:12,mode:"shader"},n=!0===I?t:{...t,...I};return e(Ri,{...n,children:k})}return k})));function vl(e){const t=i(null),n=i(null),l=i(null),c={alignment:"left",imageColSize:7,contentColSize:5,imageAlt:"Hero image",showOverlay:!0,fullViewportHeight:!1,contentWidth:void 0,parallax:!1,parallaxIntensity:.5,headingLevel:"h1",reverseOnMobile:!1,...e},d=!!c.backgroundSlider,h=function(e){const{slides:t,autoplay:n,loop:l=!0,transition:c="fade",transitionDuration:d=1e3}=e,[h,m]=r(0),[p,g]=r(!1),f=i(null),b=i(!1),v=i(void 0),S=u((()=>t.map((()=>a.createRef()))),[t]),y=u((()=>t.map((()=>a.createRef()))),[t]),E=o((e=>{if(e===h||p)return;if(0>e||e>=t.length)return;g(!0),m(e);const n=y[e]?.current,a=t[e];n&&a&&"video"===a.type&&!1!==(a.videoOptions||{}).autoplay&&n.play().catch((()=>{}));const r=y[h]?.current,i=t[h];r&&i&&"video"===i.type&&r.pause(),setTimeout((()=>{g(!1)}),d)}),[h,p,t,y,d]),A=o((()=>{if(0===t.length)return;let e;e=l?(h+1)%t.length:Math.min(h+1,t.length-1),E(e)}),[h,t.length,l,E]);s((()=>{v.current=()=>{b.current||p||A()}}),[A,p]);const x=o((()=>{b.current=!0,f.current&&(clearInterval(f.current),f.current=null)}),[]),N=o((()=>{if(b.current&&n&&t.length>1){b.current=!1;const e="object"==typeof n?n.delay:3e3;f.current||(f.current=setInterval((()=>{v.current&&v.current()}),e))}}),[n,t.length]);return s((()=>{if(!n||1>=t.length)return;const e="object"==typeof n?n.delay:3e3;return f.current&&(clearInterval(f.current),f.current=null),b.current||(f.current=setInterval((()=>{v.current&&v.current()}),e)),()=>{f.current&&(clearInterval(f.current),f.current=null)}}),[n,t.length]),s((()=>{if(t.length>0&&"video"===t[h]?.type){const e=y[h]?.current;e&&!1!==(t[h].videoOptions||{}).autoplay&&e.play().catch((()=>{}))}}),[h,t,y]),s((()=>()=>{f.current&&(clearInterval(f.current),f.current=null)}),[]),{currentIndex:h,isTransitioning:p,slideRefs:S,videoRefs:y,handleSlideTransition:E,pauseAutoplay:x,resumeAutoplay:N}}(c.backgroundSlider||{slides:[],autoplay:{delay:5e3,pauseOnHover:!0},transition:"fade",transitionDuration:1e3}),m=d&&c.backgroundSlider?h:void 0,p=!!d||!!c.backgroundImageSrc||!!c.videoBackground,g=!!c.imageSrc,f=g&&"center"!==c.alignment,b=(e,t=.5)=>{if(!e)return;const n=Math.max(0,Math.min(1,t));e.classList.add("c-hero--parallax");const a=()=>{const t=window.pageYOffset*n,a=e.querySelector(Wa.SELECTORS.BG);a&&(a.style.transform=`translateY(${t}px)`)};l.current=a,window.addEventListener("scroll",a),a()},v=e=>{if(!e)return;e.classList.remove("c-hero--parallax");const t=e.querySelector(Wa.SELECTORS.BG);t&&(t.style.transform=""),l.current&&(window.removeEventListener("scroll",l.current),l.current=null)};return s((()=>{const e=t.current;return e&&c.parallax&&p&&!d&&b(e,c.parallaxIntensity),()=>{e&&l.current&&v(e)}}),[c.parallax,c.parallaxIntensity,p,d]),{generateHeroClassNames:(e="")=>{const t=[Wa.SELECTORS.HERO.replace(".","")];return"center"===c.alignment?t.push(Wa.CLASSES.CENTER):"right"===c.alignment?t.push(Wa.CLASSES.RIGHT):"left"===c.alignment&&t.push(Wa.CLASSES.LEFT),c.fullViewportHeight&&t.push(Wa.CLASSES.FULL_VH),c.parallax&&t.push("c-hero--parallax"),c.videoBackground&&t.push("c-hero--video"),e&&t.push(e),t.join(" ")},generateImageColClass:(e=c.imageColSize||7,t)=>{const n=["o-grid__col o-grid__col--md-"+e];return"left"===c.alignment&&n.push("u-mt-5 u-mt-md-0"),c.reverseOnMobile&&("right"===c.alignment||"center"===c.alignment?n.push("u-order-first u-order-md-last"):n.push("u-order-last u-order-md-first")),t&&n.push(t),n.join(" ")},generateContentColClass:(e=c.contentColSize||5,t)=>{const n=["o-grid__col o-grid__col--md-"+e];return c.reverseOnMobile&&("right"===c.alignment||"center"===c.alignment?n.push("u-order-last u-order-md-first"):n.push("u-order-first u-order-md-last")),t&&n.push(t),n.join(" ")},hasBackgroundImage:p,hasForegroundImage:g,useGridLayout:f,heroRef:t,videoRef:n,applyParallaxEffect:b,removeParallaxEffect:v,backgroundSlider:m,hasBackgroundSlider:d}}function Sl(e){const t={center:!1,breakout:!1,reverse:!1,imageAlt:"Image",showOverlay:!0,...e};return{generateRiverClassNames:(e="")=>{const n=[nr.SELECTORS.RIVER.replace(".","")];return t.center&&n.push(nr.CLASSES.CENTER),t.breakout&&n.push(nr.CLASSES.BREAKOUT),t.reverse&&n.push(nr.CLASSES.REVERSE),e&&n.push(e),n.join(" ")},generateContentClass:()=>nr.SELECTORS.CONTENT.replace(".",""),generateVisualClass:()=>nr.SELECTORS.VISUAL.replace(".",""),hasBackgroundImage:!!t.backgroundImageSrc,hasForegroundImage:!!t.imageSrc,textContent:"string"==typeof t.text?[t.text]:t.text||[]}}function yl(e){const t={position:"static",collapsible:!0,backdrop:!1,closeOnOutsideClick:!0,closeOnEscape:!0,"aria-label":"Main navigation",...e},[n,a]=r(t.expanded||!1);return{defaultProps:t,isExpanded:n,setIsExpanded:a,generateNavbarClass:e=>{const{position:n=t.position,variant:a,collapsible:r=t.collapsible,className:i=""}=e;return`c-navbar ${"static"!==n?"c-navbar--"+n:""} ${a?"c-navbar--"+a:""} ${r?"c-navbar--collapsible":""} ${i}`.trim()},generateContainerStyle:e=>e?{maxWidth:e}:{},generateCollapseClass:e=>("c-navbar__collapse "+(e?"is-expanded":"")).trim(),toggleExpanded:()=>{const e=!n;a(e),t.onToggle&&t.onToggle(e)},getExpandedState:e=>void 0!==e?e:n}}function El(e){const t={alignment:"start",variant:"default",...e};return{defaultProps:t,generateNavClass:e=>{const{alignment:n=t.alignment,variant:a=t.variant,className:r=""}=e;return`c-nav ${"start"!==n?"c-nav--"+n:""} ${"default"!==a?"c-nav--"+a:""} ${r}`.trim()}}}function Al(e){const t={dropdown:!1,megaMenu:!1,active:!1,...e};return{defaultProps:t,generateNavItemClass:e=>{const{dropdown:n=t.dropdown,megaMenu:a=t.megaMenu,active:r=t.active,disabled:i=t.disabled,className:o=""}=e;return`c-nav__item ${n&&!a?ir.SELECTORS.DROPDOWN.replace(".",""):""} ${a?"c-nav__item--mega-menu":""} ${r?ir.CLASSES.ACTIVE:""} ${i?ir.CLASSES.DISABLED:""} ${o}`.trim()},generateNavLinkClass:(e=!1,t=!1,n="")=>`c-nav__link ${e?ir.CLASSES.ACTIVE:""} ${t?"c-nav__link--disabled":""} ${n}`.trim(),handleClick:e=>n=>{!t.disabled&&e?e():n.preventDefault()}}}function xl(e){const t={alignment:"start",megaMenu:!1,...e},n=()=>null!==document.querySelector(".c-navbar--fixed-bottom");return{defaultProps:t,generateDropdownMenuClass:e=>{const{alignment:n=t.alignment,megaMenu:a=t.megaMenu,className:r=""}=e,i=a?ir.SELECTORS.MEGA_MENU.replace(".",""):ir.SELECTORS.DROPDOWN_MENU.replace(".","");let o="";return"center"===n?o=i+"--center":"end"===n&&(o=i+"--end"),`${i} ${o} ${r}`.trim()},isInFixedBottomNavbar:n,getIconName:(e=!1)=>n()?"CaretUp":"CaretDown"}}function Nl(e){const{collapsible:t=!0,collapsibleDesktop:n=!1,defaultCollapsedDesktop:a=!1,isOpen:o,onToggle:l,disabled:c=!1}=e||{},[d,u]=r(void 0!==a?!a:o||!1),h=i(null),m=i(null),p=i(null);s((()=>{void 0!==o?u(o):void 0!==a&&u(!a)}),[o,a]),s((()=>{const e=768>window.innerWidth?t:n,a=void 0!==o?o:d;if(e&&h.current&&m.current){const e=setTimeout((()=>{h.current&&m.current&&(h.current.style.height=a?m.current.scrollHeight+"px":"0px")}),0);return()=>clearTimeout(e)}!e&&h.current&&(h.current.style.height="auto")}),[t,n,o,d]),s((()=>{const e=()=>{if(768>window.innerWidth?t:n){if(h.current&&m.current){const e=void 0!==o?o:d;requestAnimationFrame((()=>{h.current&&m.current&&(h.current.style.height=e?m.current.scrollHeight+"px":"0px")}))}}else h.current&&(h.current.style.height="auto")},a=setTimeout(e,0);return window.addEventListener("resize",e),()=>{clearTimeout(a),window.removeEventListener("resize",e)}}),[t,n,o,l,d]),s((()=>{const e=768>window.innerWidth?t:n;if(e&&h.current&&m.current){const e=void 0!==o?o:d;requestAnimationFrame((()=>{h.current&&m.current&&(h.current.style.height=e?m.current.scrollHeight+"px":"0px")}))}else!e&&h.current&&(h.current.style.height="auto")}),[o,d,t,n]);const g=()=>{if(c)return;const e=void 0!==o?!o:!d;"function"==typeof l?l(e):u(e)},f=()=>void 0!==o?o:d;return{isOpenState:f(),wrapperRef:h,innerRef:m,sideMenuRef:p,generateSideMenuClass:e=>{const{className:t="",isOpen:n=!1}=e,a=n?or.CLASSES.IS_OPEN:"";return`${or.CLASSES.BASE} ${a} ${t}`.trim()},generateWrapperClass:()=>or.CLASSES.WRAPPER,handleToggle:g,handleDesktopCollapse:()=>{g()},getCurrentOpenState:f}}function Tl(e){const t={active:!1,disabled:!1,...e};return{defaultProps:t,generateSideMenuItemClass:()=>{const{active:e=t.active,disabled:n=t.disabled,className:a=""}=t,r=e?or.CLASSES.ACTIVE:"",i=n?or.CLASSES.DISABLED:"";return`${or.CLASSES.LINK} ${r} ${i} ${a}`.trim()},handleClick:e=>n=>{t.disabled?n.preventDefault():e&&e(n)}}}function _l(e,t={}){const n={},{prefix:a="atomix",separator:r="-"}=t;return Object.entries(e).forEach((([e,t])=>{const i=(e.startsWith("$")?e.slice(1):e).replace(/_/g,r);n[`--${a}${r}${i}`]=t+""})),n}function Cl(e,t){if("undefined"==typeof window)return;const n=t||document.documentElement;Object.entries(e).forEach((([e,t])=>{n.style.setProperty(e,t+"")}))}function Ll(e,t){if("undefined"==typeof window)return;const n=t||document.documentElement;e.forEach((e=>{n.style.removeProperty(e)}))}function Il(e,t){if("undefined"==typeof window)return null;const n=t||document.documentElement;return getComputedStyle(n).getPropertyValue(e).trim()||null}function wl(e){var t;return Do(t=Object.entries(e)).call(t,((e,[t,n])=>(e[t]="number"==typeof n?n+"px":n,e)),{})}function Ol(...e){return Do(e).call(e,((e,t)=>(t&&Object.assign(e,t),e)),{})}function Rl(e){return/^--[a-z0-9-]+$/.test(e)}function kl(e,t="atomix"){const n=RegExp(`^--${t}-([a-z0-9]+)-`),a=e.match(n);return a?a[1]??null:null}function Ml(...e){return e.filter(Boolean).join(" ")}function Dl(e,t){return t?{...e,className:Ml(e.className,t.className),style:{...e.style,...t.style}}:e}function Pl(e,t){return e?{...wl(e),...t}:t||{}}function Bl(e,t){const{className:n,style:a,cssVars:r,parts:i}=t,o=r?wl(r):{};return{...e,className:Ml(e.className,n),style:{...o,...e.style,...a}}}function zl(e,t){return e?.[t]}function Ul(e,t,n){return{...n,className:Ml(e,t?.className),style:{...t?.style,...n?.style}}}function Fl(e){return!!(e.parts||e.cssVars||e.slots)}function Gl(e,t){return"undefined"==typeof process||"development"!==process.env?.NODE_ENV?{}:{"data-component":e,...t&&{"data-variant":t}}}function Vl(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(e=>{const t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}))}function Hl(e){return/^(https?:\/\/)?(www\.)?(youtube\.com|youtu\.be)\/.+/.test(e)}function $l(e){if(!Hl(e))return null;const t=[/(?:youtube\.com\/watch\?v=|youtu\.be\/|youtube\.com\/embed\/)([^&\n?#]+)/,/youtube\.com\/.*[?&]v=([^&\n?#]+)/];for(const n of t){const t=e.match(n);if(t&&t[1])return t[1]}return null}function Yl(e){const{path:t,format:n="woff2",crossorigin:a="anonymous"}=e,r=document.createElement("link");return r.rel="preload",r.as="font",r.href=t,r.type="font/"+n,r.crossOrigin=a,r}function Kl(e){return e.map(Yl)}function Wl(e){return e.map((e=>{const{path:t,format:n="woff2",crossorigin:a="anonymous"}=e;return`<link rel="preload" as="font" href="${t}" type="font/${n}" crossorigin="${a}">`}))}bl.displayName="Input";const jl=[{family:"Nunito Sans",path:"/fonts/nunito-sans/nunito-sans-regular.woff2",weight:400,style:"normal",format:"woff2"},{family:"Nunito Sans",path:"/fonts/nunito-sans/nunito-sans-bold.woff2",weight:700,style:"normal",format:"woff2"},{family:"Nunito Sans",path:"/fonts/nunito-sans/nunito-sans-italic.woff2",weight:400,style:"italic",format:"woff2"},{family:"Nunito Sans",path:"/fonts/nunito-sans/nunito-sans-bold-italic.woff2",weight:700,style:"italic",format:"woff2"}];var ql=Object.freeze({__proto__:null,DEFAULT_ATOMIX_FONTS:jl,applyPartStyles:Dl,createCSSVarStyle:Pl,createDebugAttrs:Gl,createFontPreloadLink:Yl,createPartProps:Ul,extractYouTubeId:$l,generateFontPreloadTags:Wl,generateUUID:Vl,getPartStyles:zl,hasCustomization:Fl,isYouTubeUrl:Hl,mergeClassNames:Ml,mergeComponentProps:Bl,preloadFonts:Kl});function Ql(e){const t={items:[],title:"Todo List",size:"md",placeholder:"Add a new todo",showCompleted:!0,...e},[n,a]=r(t.items||[]),[i,o]=r(""),s=e=>{if(!e.trim())return null;const t={id:Vl(),text:e.trim(),completed:!1};return a((e=>[...e,t])),o(""),t};return{items:n,inputText:i,setInputText:o,addTodo:s,toggleTodo:e=>{let t=null;return a((n=>n.map((n=>n.id===e?(t={...n,completed:!n.completed},t):n)))),t},deleteTodo:e=>{const t=n.length;return a((t=>t.filter((t=>t.id!==e)))),n.length!==t},handleSubmit:(e,t)=>{if(e.preventDefault(),!i.trim())return;const n=s(i);n&&t&&t(n.text)},generateTodoClasses:e=>{const{size:n=t.size,className:a="",disabled:r=!1}=e,i="md"===n?"":"c-todo--"+n,o=r?"c-todo--disabled":"";return`${hr.CLASSES.BASE} ${i} ${o} ${a}`.trim()},generateItemClasses:e=>{const t=e.completed?hr.CLASSES.COMPLETED:"";return`${hr.CLASSES.ITEM} ${t}`.trim()},getFilteredItems:(e=!0)=>e?n:n.filter((e=>!e.completed))}}function Xl(e){const t={disabled:!1,invalid:!1,valid:!1,...e};return{defaultProps:t,generateRadioClass:e=>{const{disabled:n=t.disabled,invalid:a=t.invalid,valid:r=t.valid,className:i=""}=e;let o="";a?o=fr.CLASSES.INVALID:r&&(o=fr.CLASSES.VALID);const s=n?fr.CLASSES.DISABLED:"";return`${fr.CLASSES.BASE} ${o} ${s} ${i}`.trim()}}}function Zl(e){const t={size:"md",disabled:!1,invalid:!1,valid:!1,...e};return{defaultProps:t,generateSelectClass:e=>{const{size:n=t.size,disabled:a=t.disabled,invalid:r=t.invalid,valid:i=t.valid,className:o=""}=e,s="md"===n?"":"sm"===n?vr.CLASSES.SMALL:vr.CLASSES.LARGE;let l="";r?l=vr.CLASSES.INVALID:i&&(l=vr.CLASSES.VALID);const c=a?vr.CLASSES.DISABLED:"";return`${vr.CLASSES.BASE} ${s} ${l} ${c} ${o}`.trim()}}}function Jl(e){const t={size:"md",disabled:!1,invalid:!1,valid:!1,...e};return{defaultProps:t,generateTextareaClass:e=>{const{size:n=t.size,variant:a=t.variant,disabled:r=t.disabled,invalid:i=t.invalid,valid:o=t.valid,className:s=""}=e,l="md"===n?"":"sm"===n?Sr.CLASSES.SMALL:Sr.CLASSES.LARGE,c=a?"c-input--"+a:"";let d="";i?d=Sr.CLASSES.INVALID:o&&(d=Sr.CLASSES.VALID);const u=r?Sr.CLASSES.DISABLED:"";return`${Sr.CLASSES.BASE} ${l} ${c} ${d} ${u} ${s}`.trim()}}}function ec(e){const t=u((()=>e.length?e.map(((e,t)=>({...e,value:"number"==typeof e.value?e.value:0,label:e.label||"Point "+(t+1)}))):[]),[e]),n=u((()=>{if(!t.length)return{min:0,max:0,total:0,average:0};const e=t.map((e=>e.value)),n=Math.min(...e),a=Math.max(...e),r=Do(e).call(e,((e,t)=>e+t),0);return{min:n,max:a,total:r,average:r/e.length}}),[t]);return{data:t,stats:n,isEmpty:0===t.length}}function tc(e,t=400,n=300){return u((()=>{const a={top:20,right:20,bottom:40,left:40},r=t-a.left-a.right,i=n-a.top-a.bottom;if(!e.length)return{xScale:()=>a.left,yScale:()=>a.top+i,minValue:0,maxValue:0,valueRange:0,innerWidth:r,innerHeight:i,width:t,height:n,padding:a};const o=e.map((e=>e.value)),s=Math.min(0,...o),l=Math.max(...o),c=l-s||1;return{xScale:t=>a.left+t/Math.max(e.length-1,1)*r,yScale:e=>a.top+i-(e-s)/c*i,minValue:s,maxValue:l,valueRange:c,innerWidth:r,innerHeight:i,width:t,height:n,padding:a}}),[e,t,n])}function nc(){const[e,t]=r({hoveredIndex:null,selectedIndex:null});return{interaction:e,handlePointHover:o((e=>{t((t=>({...t,hoveredIndex:e})))}),[]),handlePointClick:o((e=>{t((t=>({...t,selectedIndex:t.selectedIndex===e?null:e})))}),[]),clearInteraction:o((()=>{t({hoveredIndex:null,selectedIndex:null})}),[])}}var ac=Object.freeze({__proto__:null,BALANCED_PRESET:Ti,DEFAULT_BREAKPOINTS:pi,DeviceDetector:wi,MOBILE_OPTIMIZED_BREAKPOINTS:Li,PERFORMANCE_PRESET:Ni,PerformanceOverlay:Si,QUALITY_PRESET:_i,createBreakpoints:bi,getDefaultBreakpoints:fi,getDevicePreset:Ci,getMobileOptimizedParams:Ii,getQualityMultipliers:yi,useAccordion:Pr,useAtomixGlass:mi,useBadge:io,useBarChart:gs,useBlock:lo,useChartData:ec,useChartInteraction:nc,useChartScale:tc,useEdgePanel:ol,useForm:hl,useFormGroup:pl,useHero:vl,useInput:fl,useLineChart:Ns,useNav:El,useNavDropdown:xl,useNavItem:Al,useNavbar:yl,usePerformanceMonitor:vi,usePieChart:Cs,useRadio:Xl,useResponsiveGlass:gi,useRiver:Sl,useSelect:Zl,useSideMenu:Nl,useSideMenuItem:Tl,useSpinner:mo,useTextarea:Jl,useTodo:Ql});const rc=g(null),ic=l((({value:n,children:a,disabled:r=!1,className:i="",style:o})=>{const l=f(rc),c="string"==typeof a?a:n;if(s((()=>{if(l)return l.registerOption({value:n,label:c,disabled:r}),()=>{l.unregisterOption(n)}}),[l,n,c,r]),!l)return null;const{selectedValue:d,onSelect:u}=l,h=Array.isArray(d)?Ra(d).call(d,n):d===n;return e("li",{className:`${vr.CLASSES.SELECT_ITEM} ${i}`.trim(),"data-value":n,onClick:e=>{e.preventDefault(),e.stopPropagation(),r||u(n,c)},style:o,role:"option","aria-selected":h,"aria-disabled":r,children:t("label",{className:"c-checkbox",style:{pointerEvents:"none"},children:[e("input",{type:"checkbox",className:"c-checkbox__input c-select__item-input",checked:h,readOnly:!0,disabled:r,tabIndex:-1}),e("div",{className:"c-select__item-label",children:a})]})})}));ic.displayName="SelectOption";const oc=({options:n,value:l,onChange:c,onBlur:d,onFocus:u,placeholder:h="Select an option",className:m="",style:p,disabled:g=!1,required:f=!1,id:b,name:v,size:S="md",invalid:y=!1,valid:E=!1,multiple:A=!1,"aria-label":x,"aria-describedby":N,glass:T,children:_})=>{const{generateSelectClass:C}=Zl({size:S,disabled:g,invalid:y,valid:E}),L=C({className:`${m} ${T?"c-select--glass":""}`.trim(),size:S,disabled:g,invalid:y,valid:E}),[I,w]=r(!1),[O,R]=r(h),k=i(null),M=i(null),D=i(null),P=i(null),[B,z]=r([]),U=o((e=>{z((t=>t.some((t=>t.value===e.value))?t:[...t,e]))}),[]),F=o((e=>{z((t=>t.filter((t=>t.value!==e))))}),[]),G=n&&n.length>0,V=G?n:B;s((()=>{if(l){const e=V.find((e=>e.value===l));e&&R(e.label)}else R(h)}),[l,V,h]),s((()=>{const e=e=>{k.current&&!k.current.contains(e.target)&&(w(!1),D.current&&(D.current.style.height="0px"))};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}}),[]);const H=()=>{g||(!I&&D.current&&M.current?D.current.style.height=M.current.clientHeight+"px":D.current&&(D.current.style.height="0px"),w(!I))},$=o((e=>{if(R(e.label),w(!1),D.current&&(D.current.style.height="0px"),P.current&&(P.current.value=e.value),c){const t={target:{name:v,value:e.value}};c(t)}}),[c,v]),Y=o(((e,t)=>{$({value:e,label:t})}),[$]),K=a.useMemo((()=>({registerOption:U,unregisterOption:F,selectedValue:l,onSelect:Y})),[U,F,l,Y]),W=e(rc.Provider,{value:K,children:t("div",{className:`${L} ${I?vr.CLASSES.IS_OPEN:""}`,ref:k,style:p,"aria-expanded":I,children:[t("select",{ref:P,value:l,onChange:c,onBlur:d,onFocus:u,disabled:g,required:f,id:b,name:v,multiple:A,"aria-label":x,"aria-describedby":N,"aria-invalid":y,style:{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",border:"0"},children:[h&&e("option",{value:"",disabled:!0,children:h}),V.map((t=>e("option",{value:t.value,disabled:t.disabled,children:t.label},t.value)))]}),e("div",{className:vr.CLASSES.SELECTED,onClick:H,onKeyDown:e=>{if(!g)switch(e.key){case"Enter":case" ":e.preventDefault(),H();break;case"Escape":I&&(e.preventDefault(),w(!1),D.current&&(D.current.style.height="0px"));break;case"ArrowDown":case"ArrowUp":I||(e.preventDefault(),H())}},"aria-disabled":g,tabIndex:g?-1:0,role:"combobox","aria-haspopup":"listbox","aria-expanded":I,"aria-controls":b?b+"-listbox":void 0,children:O}),e("i",{className:`${vr.CLASSES.ICON_CARET} ${vr.CLASSES.TOGGLE_ICON}`}),e("div",{className:vr.CLASSES.SELECT_BODY,ref:D,style:{height:0},children:e("div",{className:vr.CLASSES.SELECT_PANEL,ref:M,children:e("ul",{className:vr.CLASSES.SELECT_ITEMS,role:"listbox",id:b?b+"-listbox":void 0,"aria-labelledby":b,children:G?n.map(((n,a)=>e("li",{className:vr.CLASSES.SELECT_ITEM,"data-value":n.value,onClick:()=>!n.disabled&&$(n),role:"option","aria-selected":l===n.value,"aria-disabled":n.disabled,children:t("label",{htmlFor:"SelectItem"+a,className:"c-checkbox",children:[e("input",{type:"checkbox",id:"SelectItem"+a,className:"c-checkbox__input c-select__item-input",checked:l===n.value,readOnly:!0,disabled:n.disabled}),e("div",{className:"c-select__item-label",children:n.label})]})},n.value))):_})})})]})});if(T){const t={displacementScale:60,blurAmount:1,saturation:180,aberrationIntensity:.2,borderRadius:12,mode:"shader"},n=!0===T?t:{...t,...T};return e(Ri,{...n,children:W})}return W},sc=l(oc);sc.displayName="Select",sc.Option=ic;const lc=l((({label:n,checked:a=!1,onChange:r,className:i="",style:o,disabled:s=!1,required:l=!1,id:c,name:d,value:u,invalid:h=!1,valid:m=!1,"aria-label":p,"aria-describedby":g,glass:f})=>{const{generateRadioClass:b}=Xl({disabled:s,invalid:h,valid:m}),v=b({className:`${i} ${f?"c-radio--glass":""}`.trim(),disabled:s,invalid:h,valid:m}),S=t("div",{className:v,style:o,children:[e("input",{type:"radio",className:"c-radio__input",checked:a,onChange:r,disabled:s,required:l,id:c,name:d,value:u,"aria-label":n?void 0:p,"aria-describedby":g,"aria-invalid":h}),n&&e("label",{className:"c-radio__label",htmlFor:c,children:n})]});if(f){const t={displacementScale:40,blurAmount:1,saturation:160,aberrationIntensity:.3,borderRadius:6,mode:"shader"},n=!0===f?t:{...t,...f};return e(Ri,{...n,children:S})}return S}));lc.displayName="Radio";const cc=l(c((({value:t,defaultValue:n,onChange:a,onBlur:r,onFocus:i,placeholder:o,className:s="",style:l,disabled:c=!1,required:d=!1,readOnly:u=!1,id:h,name:m,rows:p=4,cols:g,maxLength:f,minLength:b,size:v="md",variant:S,invalid:y=!1,valid:E=!1,autoFocus:A=!1,"aria-label":x,"aria-describedby":N,glass:T},_)=>{const{generateTextareaClass:C}=Jl({size:v,variant:S,disabled:c,invalid:y,valid:E}),L=C({className:`${s} ${T?"c-input--glass":""}`.trim(),size:v,variant:S,disabled:c,invalid:y,valid:E}),I=e("textarea",{ref:_,className:L,value:t,defaultValue:n,onChange:a,onBlur:r,onFocus:i,placeholder:o,disabled:c,required:d,readOnly:u,id:h,name:m,rows:p,cols:g,maxLength:f,minLength:b,autoFocus:A,"aria-label":x,"aria-describedby":N,"aria-invalid":y,style:T?{...l}:l});if(T){const t={displacementScale:60,blurAmount:1,saturation:180,aberrationIntensity:1,borderRadius:8,mode:"shader"},n=!0===T?t:{...t,...T};return e(Ri,{...n,children:I})}return I})));cc.displayName="Textarea";const dc={facebook:"FacebookLogo",twitter:"TwitterLogo",instagram:"InstagramLogo",linkedin:"LinkedinLogo",youtube:"YoutubeLogo",github:"GithubLogo",discord:"DiscordLogo",tiktok:"TiktokLogo",pinterest:"PinterestLogo",snapchat:"SnapchatLogo",whatsapp:"WhatsappLogo",telegram:"TelegramLogo",reddit:"RedditLogo",twitch:"TwitchLogo",spotify:"SpotifyLogo",dribbble:"DribbbleLogo",behance:"BehanceLogo",medium:"MediumLogo",dev:"DevToLogo",codepen:"CodepenLogo"},uc={facebook:"Facebook",twitter:"Twitter",instagram:"Instagram",linkedin:"LinkedIn",youtube:"YouTube",github:"GitHub",discord:"Discord",tiktok:"TikTok",pinterest:"Pinterest",snapchat:"Snapchat",whatsapp:"WhatsApp",telegram:"Telegram",reddit:"Reddit",twitch:"Twitch",spotify:"Spotify",dribbble:"Dribbble",behance:"Behance",medium:"Medium",dev:"Dev.to",codepen:"CodePen"},hc=t=>{const n=dc[t];return e(no,n?{name:n}:{name:"Link"})},mc=c((({platform:n,url:a,icon:r,label:i,size:o="md",variant:s="default",disabled:l=!1,className:c="",...d},u)=>{const h=["c-footer__social-link","c-footer__social-link--"+n,"c-footer__social-link--"+o,"c-footer__social-link--"+s,l&&"c-footer__social-link--disabled",c].filter(Boolean).join(" "),m=i||"Follow us on "+(e=>uc[e]||e)(n);return t("a",{ref:u,href:l?void 0:a,className:h,target:"_blank",rel:"noopener noreferrer","aria-label":m,"aria-disabled":l,...d,children:[e("span",{className:"c-footer__social-link-icon",children:r||hc(n)}),e("span",{className:"c-footer__social-link-label u-visually-hidden",children:m})]})}));mc.displayName="FooterSocialLink";const pc=c((({children:t,className:n="",justifyContent:a,alignItems:r,noGutters:i,direction:o,wrap:s,...l},c)=>{const d=["o-grid"];return a&&d.push("u-justify-content-"+a),r&&d.push("u-align-items-"+r),i&&d.push("o-grid--no-gutters"),o&&d.push("u-flex-direction-"+o),s&&d.push("u-flex-wrap-"+s),n&&d.push(n),e("div",{ref:c,className:d.join(" "),...l,children:t})}));pc.displayName="Grid";const gc=c((({children:t,className:n="",xs:a,sm:r,md:i,lg:o,xl:s,xxl:l,offsetXs:c,offsetSm:d,offsetMd:u,offsetLg:h,offsetXl:m,offsetXxl:p,grow:g,shrink:f,basis:b,align:v,...S},y)=>{const E=a||r||i||o||s||l?["o-grid__col"]:["o-grid__col","o-grid__col--auto"],A=(e,t)=>{void 0!==e&&(!0!==e?!1!==e&&("xs"===t?"auto"===e?E.push("o-grid__col--auto"):E.push("o-grid__col--"+e):"auto"===e?E.push(`o-grid__col--${t}-auto`):E.push(`o-grid__col--${t}-${e}`)):E.push("xs"===t?"o-grid__col--auto":`o-grid__col--${t}-auto`))};return A(a,"xs"),A(r,"sm"),A(i,"md"),A(o,"lg"),A(s,"xl"),A(l,"xxl"),c&&E.push("o-grid__offset--"+c),d&&E.push("o-grid__offset--sm-"+d),u&&E.push("o-grid__offset--md-"+u),h&&E.push("o-grid__offset--lg-"+h),m&&E.push("o-grid__offset--xl-"+m),p&&E.push("o-grid__offset--xxl-"+p),void 0!==g&&E.push(g?"u-flex-grow-1":"u-flex-grow-0"),void 0!==f&&E.push(f?"u-flex-shrink-1":"u-flex-shrink-0"),b&&E.push("u-flex-basis-"+b),v&&E.push("u-align-self-"+v),n&&E.push(n),e("div",{ref:y,className:E.join(" "),...S,children:t})}));gc.displayName="GridCol";const fc=c((({children:t,className:n="",justifyContent:a,alignItems:r,noGutters:i,...o},s)=>{const l=["o-grid"];return a&&l.push("u-justify-content-"+a),r&&l.push("u-align-items-"+r),i&&l.push("o-grid--no-gutters"),n&&l.push(n),e("div",{ref:s,className:l.join(" "),...o,children:t})}));fc.displayName="Row";const bc=c((({brand:r,brandLogo:i,brandDescription:o,copyright:s,layout:l="columns",variant:c="primary",size:d="md",showNewsletter:h=!1,newsletterTitle:m="Stay Updated",newsletterDescription:p="Subscribe to our newsletter for the latest updates.",newsletterPlaceholder:g="Enter your email",newsletterButtonText:f="Subscribe",onNewsletterSubmit:b,socialLinks:v=[],showBackToTop:S=!1,backToTopText:y="Back to Top",onBackToTop:E,showDivider:A=!0,sticky:x=!1,children:N,className:T="",disabled:_=!1,glass:C,...L},I)=>{const{footerClass:w,containerClass:O,brandClass:R,sectionsClass:k,bottomClass:M,getResponsiveColumnProps:D,handleNewsletterSubmit:P,handleBackToTop:B}=function(e={}){const{layout:t=Mr.DEFAULTS.LAYOUT,variant:n=Mr.DEFAULTS.VARIANT,size:a=Mr.DEFAULTS.SIZE,sticky:r=Mr.DEFAULTS.STICKY,showNewsletter:i=Mr.DEFAULTS.SHOW_NEWSLETTER,showBackToTop:o=Mr.DEFAULTS.SHOW_BACK_TO_TOP,showDivider:s=Mr.DEFAULTS.SHOW_DIVIDER,socialLinks:l=[],onNewsletterSubmit:c,onBackToTop:d,glass:h=!1,className:m=""}=e,p=u((()=>{const e=t.toUpperCase(),o=a.toUpperCase();return[Mr.CLASSES.BASE,Mr.CLASSES[e]||Mr.CLASSES.COLUMNS,"c-footer--"+n,Mr.CLASSES[o]||Mr.CLASSES.MD,r&&Mr.CLASSES.STICKY,i&&"c-footer--with-newsletter",h&&"c-footer--glass",m].filter(Boolean).join(" ")}),[t,n,a,r,i,h,m]),g=Mr.CLASSES.CONTAINER,f=Mr.CLASSES.BRAND,b=u((()=>[Mr.CLASSES.SECTIONS,"columns"===t&&"c-footer__sections--columns","centered"===t&&"c-footer__sections--centered","stacked"===t&&"c-footer__sections--stacked"].filter(Boolean).join(" ")),[t]),v=Mr.CLASSES.BOTTOM,S=u((()=>function(e,t){switch(e){case"columns":default:return{brand:4,content:t?4:8,newsletter:t?4:0};case"centered":case"minimal":case"stacked":return{brand:12,content:12,newsletter:t?12:0};case"flexible":return{brand:"auto",content:"auto",newsletter:"auto"};case"sidebar":return{brand:3,content:9,newsletter:t?9:0};case"wide":return{brand:3,content:6,newsletter:t?3:0}}}(t,i)),[t,i]);return{footerClass:p,containerClass:g,brandClass:f,sectionsClass:b,bottomClass:v,columnSizes:S,getResponsiveColumnProps:e=>function(e,t,n){return"flexible"===t&&"auto"===n[e]?{xs:12,sm:!0,md:!0}:{xs:12,md:"columns"===t||"sidebar"===t||"wide"===t?n[e]:12}}(e,t,S),handleNewsletterSubmit:e=>{c?.(e)},handleBackToTop:()=>{d?d():window.scrollTo({top:0,behavior:"smooth"})},socialLinks:l,showNewsletter:i,showBackToTop:o,showDivider:s}}({layout:l,variant:c,size:d,sticky:x,showNewsletter:h,showBackToTop:S,showDivider:A,socialLinks:v,onNewsletterSubmit:b,onBackToTop:E,glass:!!C,className:T}),z=t("div",{className:O,children:[t(pc,{className:k,alignItems:"start",justifyContent:"centered"===l?"center":void 0,children:[r||i||o?t(gc,{...D("brand"),className:R,children:[i&&e("div",{className:"c-footer__brand-logo",children:"string"==typeof i?e("img",{src:i,alt:"Brand Logo"}):i}),r&&e("div",{className:"c-footer__brand-name",children:"string"==typeof r?e("h3",{children:r}):r}),o&&e("div",{className:"c-footer__brand-description",children:o}),v.length>0&&e("div",{className:"c-footer__social","data-testid":"footer-social-links",children:v.map(((t,n)=>e(mc,{platform:t.platform,url:t.url,icon:t.icon,label:t.label,size:d},`${t.platform}-${n}`)))})]}):null,N?e(gc,{...D("content"),className:"c-footer__content",children:e(pc,{className:"c-footer__sections",alignItems:"centered"===l||"stacked"===l?"center":void 0,children:a.Children.map(N,(e=>a.isValidElement(e)?a.cloneElement(e,{showNewsletter:h}):e))})}):null,h?t(gc,{...D("newsletter"),className:"c-footer__newsletter",children:[e("h4",{className:"c-footer__newsletter-title",children:m}),p&&e("p",{className:"c-footer__newsletter-description",children:p}),e(ml,{className:"c-footer__newsletter-form",onSubmit:e=>{e.preventDefault();const t=new FormData(e.currentTarget).get("email");t&&P(t)},children:t("div",{className:"c-footer__newsletter-input-group",children:[e(bl,{type:"email",name:"email",className:"c-footer__newsletter-input",placeholder:g,required:!0}),e(Vo,{type:"submit",className:"c-footer__newsletter-button",children:f})]})})]}):null]}),s||S?t(n,{children:[A&&e("hr",{className:"c-footer__divider"}),t("div",{className:M,children:[s&&e("div",{className:"c-footer__copyright",children:s}),S&&t(Vo,{variant:"ghost",className:"c-footer__back-to-top",onClick:B,disabled:_,"aria-label":y,children:[e("span",{className:"c-footer__back-to-top-icon",children:"↑"}),e("span",{className:"c-footer__back-to-top-text",children:y})]})]})]}):null]});return e("footer",{ref:I,className:w,...L,children:C?e(Ri,{...C,elasticity:0,children:e("div",{className:"c-footer__glass",children:z})}):z})}));bc.displayName="Footer";const vc=c((({children:t,className:n="",xs:l=1,sm:c,md:d,lg:u,xl:p,xxl:g,gap:f=16,animate:v=!0,imagesLoaded:S=!0,onLayoutComplete:y,onImageLoad:E,...A},x)=>{const[N,T]=r(l),[_,C]=r([]),[,L]=r(!1),[I,w]=r(!1),O=i(null),R=i([]),k=i(0),M=i(0),D=i(new Map);s((()=>{w(!!S)}),[N,S]),b(x,(()=>O.current));const P=o((()=>{const e=window.innerWidth;return 1400>e||void 0===g?1200>e||void 0===p?992>e||void 0===u?768>e||void 0===d?576>e||void 0===c?l:c:d:u:p:g}),[l,c,d,u,p,g]);s((()=>{const e=()=>T(P());return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)}),[P]);const[B,z]=r([]);s((()=>{const e=[];h.forEach(t,((t,n)=>{m(t)&&e.push({id:t.key?.toString()||"masonry-item-"+n,element:t,position:null,ref:a.createRef()})})),z(e)}),[t]);const U=o((()=>{if(!O.current||0===B.length)return;const e=(O.current.offsetWidth-f*(N-1))/N;R.current=Array(N).fill(0);const t=[];B.forEach(((n,a)=>{if(n.ref.current){const r=R.current.indexOf(Math.min(...R.current)),i=r*(e+f),o=R.current[r]??0,s=n.ref.current.offsetHeight;R.current[r]=o+s+f,t[a]={left:i,top:o,width:e,height:s}}})),C(t)}),[B,N,f]),F=o((e=>{if(D.current.get(e))return;if(D.current.set(e,!0),k.current+=1,O.current&&S){const t=e.closest(".o-masonry-grid > div");t&&(t.offsetHeight,t.classList.add("o-masonry-grid__item-loaded"),t.classList.remove("o-masonry-grid__item-loading"))}const t=()=>{const e=requestAnimationFrame((()=>{E?.(k.current,M.current),U()}));return()=>cancelAnimationFrame(e)},n=t();k.current>=M.current&&M.current>0&&(L(!0),w(!1),setTimeout((()=>n()),0),t(),y?.())}),[E,y,S,U]),G=o((()=>{if(!S||!O.current)return;D.current.clear(),k.current=0;const e=O.current.querySelectorAll("img");return M.current=e.length,0===e.length?(L(!0),w(!1),void y?.()):(w(!0),e.forEach((e=>{const t=e,n=e.closest(".o-masonry-grid > div");if(n&&n.classList.add("o-masonry-grid__item-loading"),e.complete)F(e);else{const n=()=>F(e);e.addEventListener("load",n),e.addEventListener("error",n),t._masonryLoadHandler=n}})),()=>{e.forEach((e=>{const t=e;t._masonryLoadHandler&&(e.removeEventListener("load",t._masonryLoadHandler),e.removeEventListener("error",t._masonryLoadHandler),delete t._masonryLoadHandler)}))})}),[S,F,y]);s((()=>{if(!O.current)return;let e=null,t=0;const n=new ResizeObserver((n=>{const a=n[0];if(!a)return;const r=a.contentRect.width;Math.abs(r-t)>1&&(e&&cancelAnimationFrame(e),e=requestAnimationFrame((()=>{U(),t=r})))}));return n.observe(O.current),()=>{n.disconnect(),e&&cancelAnimationFrame(e)}}),[U]),a.useLayoutEffect((()=>S?G():(U(),L(!0),void w(!1))),[B,N,U,S,G]),a.useEffect((()=>{const e=[];let t=null;const n=()=>{t&&cancelAnimationFrame(t),t=requestAnimationFrame(U)};return B.forEach((t=>{if(t.ref.current){const a=new ResizeObserver(n);a.observe(t.ref.current),e.push(a)}})),()=>{e.forEach((e=>e.disconnect())),t&&cancelAnimationFrame(t)}}),[B,U]);const V=R.current.length>0?Math.max(...R.current):0,H=["o-masonry-grid",n,v?"o-masonry-grid--animate":"",I?"o-masonry-grid--loading-images":""].filter(Boolean).join(" ");return e("div",{ref:O,className:H,style:{position:"relative",width:"100%",height:V+"px",...A.style},...A,children:B.map(((t,n)=>{const a=_[n];return e("div",a?{ref:t.ref,className:"o-masonry-grid__item",style:{position:"absolute",left:a.left+"px",top:a.top+"px",width:a.width+"px",opacity:1},children:t.element}:{ref:t.ref,style:{opacity:0,position:"absolute"},children:t.element},t.id)}))})}));vc.displayName="MasonryGrid";const Sc=c((({children:t,className:n="",...a},r)=>{const i=["o-masonry-grid__item-inner"];return n&&i.push(n),e("div",{ref:r,className:i.join(" "),...a,children:t})}));Sc.displayName="MasonryGridItem";var yc=Object.freeze({__proto__:null,Container:so,Grid:pc,GridCol:gc,MasonryGrid:vc,MasonryGridItem:Sc,Row:fc});const Ec=c((({title:n,icon:a,collapsible:i=!1,defaultCollapsed:o=!1,showNewsletter:s=!1,children:l,className:c="",...d},u)=>{const[h,m]=r(o),p=n?"footer-section-"+n.toString().toLowerCase().replace(/\s+/g,"-"):void 0,g=["c-footer__section",i&&"c-footer__section--collapsible",h&&"c-footer__section--collapsed",c].filter(Boolean).join(" ");return e(gc,{xs:12,md:s?6:3,className:"c-footer__section-col",children:t("div",{ref:u,className:g,...d,children:[n?e("div",i?{className:"c-footer__section-header",children:t("button",{type:"button",className:"c-footer__section-toggle",onClick:()=>{i&&m((e=>!e))},"aria-expanded":!h,"aria-controls":p,children:[a&&e("span",{className:"c-footer__section-icon",children:a}),e("h4",{className:"c-footer__section-title",children:n}),e("span",{className:"c-footer__section-chevron",children:h?"▼":"▲"})]})}:{className:"c-footer__section-header",children:t("div",{className:"c-footer__section-header-content",children:[a&&e("span",{className:"c-footer__section-icon",children:a}),e("h4",{className:"c-footer__section-title",children:n})]})}):null,e("div",{className:"c-footer__section-content",id:p,children:l})]})})}));Ec.displayName="FooterSection";const Ac=c((({href:a,icon:r,external:i=!1,active:o=!1,disabled:s=!1,onClick:l,children:c,className:d="",linkComponent:u,...h},m)=>{const p={className:["c-footer__link",o&&"c-footer__link--active",s&&"c-footer__link--disabled",d].filter(Boolean).join(" "),onClick:s?void 0:l,"aria-disabled":s,...i&&{target:"_blank",rel:"noopener noreferrer"},...h},g=t(n,{children:[r&&e("span",{className:"c-footer__link-icon",children:r}),e("span",{className:"c-footer__link-text",children:c}),i&&e("span",{className:"c-footer__link-external",children:"↗"})]});return u?e(u,{ref:m,...a&&!s?{href:a,to:a}:{},...p,children:g}):e("a",{ref:m,href:s?void 0:a,...p,children:g})}));Ac.displayName="FooterLink";const xc={displacementScale:60,blurAmount:3,saturation:180,aberrationIntensity:0,borderRadius:8,overLight:!1,mode:"standard"},Nc=({title:a,subtitle:r,text:i,imageSrc:o,imageAlt:s="Hero image",alignment:l="left",backgroundImageSrc:c,showOverlay:d=!0,fullViewportHeight:u=!1,actions:h,imageColSize:m=7,imageColClassName:p,imageColStyle:g,contentColSize:f=5,contentColClassName:b,contentColStyle:v,contentWidth:S,className:y="",style:E,parallax:A=!1,parallaxIntensity:x=.5,videoBackground:N,children:T,glass:_,videoOptions:C={autoplay:!0,loop:!0,muted:!0},backgroundSlider:L,headingLevel:I="h1",reverseOnMobile:w=!1,parts:O,backgroundElement:R,...k})=>{const M=I,{generateHeroClassNames:D,generateImageColClass:P,generateContentColClass:B,hasBackgroundImage:z,hasForegroundImage:U,useGridLayout:F,heroRef:G,videoRef:V,backgroundSlider:H,hasBackgroundSlider:$}=vl({title:a,alignment:l,imageColSize:m,contentColSize:f,imageSrc:o,backgroundImageSrc:c,showOverlay:d,fullViewportHeight:u,contentWidth:S,parallax:A,parallaxIntensity:x,videoBackground:N,backgroundSlider:L,reverseOnMobile:w}),Y={...S?{"--atomix-hero-content-width":S}:{},...E},K=()=>{if(!N)return null;const{autoplay:n,loop:a,muted:r,posterUrl:i}=C;return t("video",{ref:V,className:"c-hero__video",autoPlay:n,loop:a,muted:r,playsInline:!0,poster:i,children:[e("source",{src:N,type:"video/"+(N.split(".").pop()||"mp4")}),"Your browser does not support the video tag."]})},W=()=>{const o=t(n,{children:[r&&e("p",{className:`${Wa.SELECTORS.SUBTITLE.replace(".","")} ${O?.subtitle?.className||""}`.trim(),style:O?.subtitle?.style,children:r}),e(M,{className:`${Wa.SELECTORS.TITLE.replace(".","")} ${O?.title?.className||""}`.trim(),style:O?.title?.style,children:a}),i&&e("p",{className:`${Wa.SELECTORS.TEXT.replace(".","")} ${O?.text?.className||""}`.trim(),style:O?.text?.style,children:i}),h&&e("div",{className:`${Wa.SELECTORS.ACTIONS.replace(".","")} ${O?.actions?.className||""}`.trim(),style:O?.actions?.style,children:h})]}),s=_?(()=>{const t=!0===_?xc:{...xc,..._};return e(Ri,{...t,children:e("div",{className:"u-p-4",children:o})})})():o;return e("div",{className:`${Wa.SELECTORS.CONTENT.replace(".","")} ${O?.content?.className||""}`.trim(),style:O?.content?.style,children:s})},j=()=>U?e("div","center"===l?{className:`${Wa.SELECTORS.IMAGE_WRAPPER.replace(".","")} ${p||""} ${O?.imageWrapper?.className||""}`.trim(),style:{...g,...O?.imageWrapper?.style},children:e("img",{src:o,alt:s,className:`${Wa.SELECTORS.IMAGE.replace(".","")} ${O?.image?.className||""}`.trim(),style:O?.image?.style})}:{className:`${P(m,p)} ${O?.imageWrapper?.className||""}`.trim(),style:{...g,...O?.imageWrapper?.style},children:e("img",{src:o,alt:s,className:`${Wa.SELECTORS.IMAGE.replace(".","")} ${O?.image?.className||""}`.trim(),style:O?.image?.style})}):null;return t("div",{ref:G,className:`${D(y)} ${O?.root?.className||""}`.trim(),style:{...Y,...O?.root?.style},"data-parallax":A?"true":void 0,"data-parallax-intensity":A?x:void 0,...k,children:[R,(()=>{if($&&L&&H){const{slides:n,transition:a="fade",transitionDuration:r=1e3}=L,{currentIndex:i,slideRefs:o,videoRefs:s}=H;let l=Wa.CLASSES.SLIDER_FADE;return"slide"===a&&(l=Wa.CLASSES.SLIDER_SLIDE),t("div",{className:`${Wa.SELECTORS.SLIDER.replace(".","")} ${l}`,style:{"--slider-transition-duration":r+"ms"},onMouseEnter:()=>{L.autoplay?.pauseOnHover&&H.pauseAutoplay()},onMouseLeave:()=>{L.autoplay?.pauseOnHover&&H.resumeAutoplay()},children:[n.map(((n,a)=>{const r=a===i,l=o[a],c=s[a];return e("div",{ref:l,className:`${Wa.SELECTORS.SLIDER_ITEM.replace(".","")} ${r?Wa.CLASSES.SLIDER_ITEM_ACTIVE:""}`,"aria-hidden":!r,children:"video"===n.type?t("video",{ref:c,className:"c-hero__bg-video",src:n.src,poster:n.videoOptions?.posterUrl||n.alt,muted:n.videoOptions?.muted??!0,loop:n.videoOptions?.loop??!0,playsInline:!0,"aria-hidden":"true",autoPlay:!1!==n.videoOptions?.autoplay,children:[e("source",{src:n.src,type:"video/"+(n.src.split(".").pop()||"mp4")}),"Your browser does not support the video tag."]}):e("img",{src:n.src,alt:n.alt||"Background slide",className:Wa.SELECTORS.BG_IMAGE.replace(".","")})},a)})),d&&e("div",{className:`${Wa.SELECTORS.OVERLAY.replace(".","")} ${O?.overlay?.className||""}`.trim(),style:O?.overlay?.style})]})}return z||N?t("div",{className:`${Wa.SELECTORS.BG.replace(".","")} ${O?.background?.className||""}`.trim(),style:O?.background?.style,children:[c&&e("img",{src:c,alt:"Background",className:Wa.SELECTORS.BG_IMAGE.replace(".","")}),K(),d&&e("div",{className:`${Wa.SELECTORS.OVERLAY.replace(".","")} ${O?.overlay?.className||""}`.trim(),style:O?.overlay?.style})]}):null})(),e("div",{className:`${Wa.SELECTORS.CONTAINER.replace(".","")} o-container ${O?.container?.className||""}`.trim(),style:O?.container?.style,children:T?e("div",{className:`${Wa.SELECTORS.GRID.replace(".","")} ${O?.grid?.className||""}`.trim(),style:O?.grid?.style,children:T}):F?e("div",{className:`${Wa.SELECTORS.GRID.replace(".","")} o-grid ${O?.grid?.className||""}`.trim(),style:O?.grid?.style,children:t(n,"left"===l?{children:[e("div",{className:B(f,b),style:v,children:W()}),j()]}:{children:[j(),e("div",{className:B(f,b),style:v,children:W()})]})}):t(n,{children:[W(),j()]})})]})};Nc.Title=({children:t,className:n,level:a="h1",...r})=>e(a,{className:`${Wa.SELECTORS.TITLE.replace(".","")} ${n||""}`.trim(),...r,children:t}),Nc.Subtitle=({children:t,className:n,...a})=>e("p",{className:`${Wa.SELECTORS.SUBTITLE.replace(".","")} ${n||""}`.trim(),...a,children:t}),Nc.Text=({children:t,className:n,...a})=>e("p",{className:`${Wa.SELECTORS.TEXT.replace(".","")} ${n||""}`.trim(),...a,children:t}),Nc.Actions=({children:t,className:n,...a})=>e("div",{className:`${Wa.SELECTORS.ACTIONS.replace(".","")} ${n||""}`.trim(),...a,children:t}),Nc.Content=({children:t,className:n,style:a,glass:r,...i})=>{const o=`${Wa.SELECTORS.CONTENT.replace(".","")} ${n||""}`.trim(),s=r?e("div",{className:"u-p-4",children:t}):t,l=r?(()=>{const t=!0===r?xc:{...xc,...r};return e(Ri,{...t,children:s})})():s;return e("div",{className:o,style:a,...i,children:l})},Nc.Image=({src:t,alt:n="",className:a,wrapperClassName:r,wrapperStyle:i,...o})=>e("div",{className:`${Wa.SELECTORS.IMAGE_WRAPPER.replace(".","")} ${r||""}`.trim(),style:i,children:e("img",{src:t,alt:n,className:`${Wa.SELECTORS.IMAGE.replace(".","")} ${a||""}`.trim(),...o})}),Nc.Background=({className:n,style:a,src:r,children:i,...o})=>t("div",{className:`${Wa.SELECTORS.BG.replace(".","")} ${n||""}`.trim(),style:a,...o,children:[r&&e("img",{src:r,alt:"Background",className:Wa.SELECTORS.BG_IMAGE.replace(".","")}),i]}),Nc.displayName="Hero";const Tc=c((({children:t,className:n="",...a},r)=>e("li",{ref:r,className:`${Ha.ITEM_CLASS} ${n}`.trim(),...a,children:t})));Tc.displayName="ListItem";const _c=l((({children:t,variant:n="default",className:r="",style:i,...o})=>{var s;const l=[Ha.BASE_CLASS,"default"!==n&&"c-list--"+n,r].filter(Boolean).join(" "),c=Ra(s=["number","text"]).call(s,n)?"ol":"ul";return e(c,{className:l,style:i,...o,children:a.Children.map(t,(t=>a.isValidElement(t)&&t.type===Tc?t:e("li",{className:"c-list__item",children:t})))})}));_c.displayName="List",_c.Item=Tc;const Cc=({children:t,className:n="",style:r,variant:i="default"})=>{const o=[$a.BASE_CLASS,n].filter(Boolean).join(" "),s=a.Children.toArray(t).filter((e=>a.isValidElement(e)&&e.type===_c));return e("div",{className:o,style:r,children:s.map(((e,t)=>{const n=e.props;return a.cloneElement(e,{key:t,variant:n?.variant??i})}))})};Cc.displayName="ListGroup";const Lc=({messages:a=[],otherAvatar:i,selfAvatar:o,otherName:s,width:l="100%",onSendMessage:c,placeholder:d="Type a message",className:u="",style:h,bodyHeight:m,disabled:p=!1,id:g,glass:f})=>{const{inputValue:b,handleInputChange:v,handleSubmit:S,handleKeyDown:y}=(({onSendMessage:e}={})=>{const[t,n]=r(""),a=a=>{a.preventDefault(),t.trim()&&e&&(e(t.trim()),n(""))};return{inputValue:t,setInputValue:n,handleInputChange:e=>{n(e.target.value)},handleSubmit:a,handleKeyDown:e=>{"Enter"!==e.key||e.shiftKey||(e.preventDefault(),a(e))}}})({onSendMessage:c}),E=g||"messages-"+Math.random().toString(36).substr(2,9),A=E+"-input",x={displacementScale:150,borderRadius:12,elasticity:0,aberrationIntensity:2},N=`${xr.CLASSES.BASE} ${f?"c-messages--glass":""} ${p?"is-disabled":""} ${u}`,T=t(n,{children:[e("div",{className:xr.CLASSES.BODY,style:m?{"--atomix-messages-body-height":m}:void 0,children:a.map((n=>t("div",{className:`${xr.CLASSES.CONTENT} ${n.isSelf?xr.CLASSES.CONTENT_SELF:""}`,"aria-label":`${n.isSelf?"You":s||"Other person"} sent a message at ${n.time}`,children:[e(ao,{src:n.isSelf?o:i,size:"xl",circle:!0,className:xr.CLASSES.AVATAR,alt:n.isSelf?"Your avatar":(s||"Other person")+"'s avatar"}),t("div",{className:xr.CLASSES.ITEMS,children:[!n.isSelf&&s&&e("div",{className:xr.CLASSES.NAME,children:s}),n.text&&t("div",{className:xr.CLASSES.TEXT,children:[n.text,e("span",{className:xr.CLASSES.TIME,"aria-label":"Sent at "+n.time,children:n.time})]}),n.image&&e("img",{className:xr.CLASSES.IMAGE,src:n.image,alt:"Message attachment",loading:"lazy"}),n.file&&t("div",{className:xr.CLASSES.FILE,"aria-label":`File attachment: ${n.file.name}, size: ${n.file.size}`,children:[e("span",{className:xr.CLASSES.FILE_ICON,children:e(no,{name:"File","aria-hidden":"true"})}),t("div",{className:xr.CLASSES.FILE_DETAILS,children:[e("div",{className:xr.CLASSES.FILE_NAME,children:n.file.name}),e("div",{className:xr.CLASSES.FILE_SIZE,children:n.file.size})]})]})]})]},n.id)))}),t("form",{className:xr.CLASSES.FORM,onSubmit:S,"aria-label":"Message input form",children:[t("div",{className:xr.CLASSES.INPUT_GROUP,children:[e("label",{htmlFor:A,className:"u-visually-hidden",children:"Type a message"}),e("input",{id:A,type:"text",className:xr.CLASSES.INPUT,placeholder:d,value:b,onChange:v,onKeyDown:y,disabled:p,"aria-label":"Message input"}),t("div",{className:xr.CLASSES.OPTIONS,"aria-label":"Message options",children:[e("button",{type:"button",className:xr.CLASSES.OPTION,"aria-label":"Attach file",disabled:p,children:e(no,{name:"PaperclipHorizontal","aria-hidden":"true",className:xr.CLASSES.OPTION_ICON})}),e("button",{type:"button",className:xr.CLASSES.OPTION,"aria-label":"Attach image",disabled:p,children:e(no,{name:"Image","aria-hidden":"true",className:xr.CLASSES.OPTION_ICON})}),e("button",{type:"button",className:xr.CLASSES.OPTION,"aria-label":"Insert link",disabled:p,children:e(no,{name:"Link","aria-hidden":"true",className:xr.CLASSES.OPTION_ICON})})]})]}),e("button",{type:"submit",className:xr.CLASSES.SUBMIT,"aria-label":"Send message",disabled:p,children:e(no,{name:"PaperPlaneTilt","aria-hidden":"true",size:24})})]})]});if(f){const t=!0===f?x:{...x,...f};return e("div",{className:N,style:{"--atomix-messages-width":l,...h},id:E,"aria-label":"Chat messages",role:"log","aria-live":"polite",children:e(Ri,{...t,children:e("div",{className:"c-messages__glass-content",style:{borderRadius:t.borderRadius},children:T})})})}return e("div",{className:N,style:{"--atomix-messages-width":l,...h},id:E,"aria-label":"Chat messages",role:"log","aria-live":"polite",children:T})};Lc.displayName="Messages";const Ic=c((({title:n,subtitle:a,closeButton:r,onClose:i,children:o,className:s="",...l},c)=>t("div",{ref:c,className:("c-modal__header "+s).trim(),...l,children:[t("div",{className:"c-modal__header-content",children:[n&&e("h3",{className:"c-modal__title",children:n}),a&&e("p",{className:"c-modal__sub",children:a}),o]}),r&&e("button",{type:"button",className:"c-modal__close c-btn js-modal-close",onClick:i,"aria-label":"Close modal",children:e("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e("path",{d:"M16.0672 15.1828C16.1253 15.2409 16.1713 15.3098 16.2028 15.3857C16.2342 15.4615 16.2504 15.5429 16.2504 15.625C16.2504 15.7071 16.2342 15.7884 16.2028 15.8643C16.1713 15.9402 16.1253 16.0091 16.0672 16.0672C16.0091 16.1252 15.9402 16.1713 15.8643 16.2027C15.7885 16.2342 15.7071 16.2503 15.625 16.2503C15.5429 16.2503 15.4616 16.2342 15.3857 16.2027C15.3098 16.1713 15.2409 16.1252 15.1828 16.0672L10 10.8836L4.8172 16.0672C4.69992 16.1844 4.54086 16.2503 4.37501 16.2503C4.20916 16.2503 4.0501 16.1844 3.93282 16.0672C3.81555 15.9499 3.74966 15.7908 3.74966 15.625C3.74966 15.4591 3.81555 15.3001 3.93282 15.1828L9.11642 9.99998L3.93282 4.81717C3.81555 4.69989 3.74966 4.54083 3.74966 4.37498C3.74966 4.20913 3.81555 4.05007 3.93282 3.93279C4.0501 3.81552 4.20916 3.74963 4.37501 3.74963C4.54086 3.74963 4.69992 3.81552 4.8172 3.93279L10 9.11639L15.1828 3.93279C15.3001 3.81552 15.4592 3.74963 15.625 3.74963C15.7909 3.74963 15.9499 3.81552 16.0672 3.93279C16.1845 4.05007 16.2504 4.20913 16.2504 4.37498C16.2504 4.54083 16.1845 4.69989 16.0672 4.81717L10.8836 9.99998L16.0672 15.1828Z",fill:"#141414"})})})]})));Ic.displayName="ModalHeader";const wc=c((({children:t,className:n="",...a},r)=>e("div",{ref:r,className:("c-modal__body "+n).trim(),...a,children:t})));wc.displayName="ModalBody";const Oc=c((({children:t,className:n="",...a},r)=>e("div",{ref:r,className:("c-modal__footer "+n).trim(),...a,children:t})));Oc.displayName="ModalFooter";const Rc=l((({children:l,isOpen:c=!1,onOpenChange:u,onClose:h,onOpen:m,title:p,subtitle:g,size:f="md",backdrop:b=!0,keyboard:v=!0,className:S="",style:y,closeButton:E=!0,footer:A,glass:x,...N})=>{const T=i(null),_=i(null),C=i(null),{isOpen:L,open:I,close:w}=function({isOpen:e,onOpenChange:t,onOpen:n,onClose:a}={}){const[i,l]=r(!1),c=void 0!==e,d=c?!!e:i;s((()=>{c&&l(!!e)}),[e,c]);const u=o((e=>{c||l(e),t&&t(e),e&&n?n():!e&&a&&a()}),[c,t,n,a]),h=o((()=>{u(!0)}),[u]),m=o((()=>{u(!1)}),[u]),p=o((()=>{u(!d)}),[d,u]);return{isOpen:d,open:h,close:m,toggle:p}}({isOpen:c,onOpenChange:u,onClose:h,onOpen:m}),O=function(e){const t=i(null),n=i(null),a=o((()=>t.current?Array.from(t.current.querySelectorAll('a[href], button:not([disabled]), textarea:not([disabled]), input:not([disabled]), select:not([disabled]), [tabindex]:not([tabindex="-1"])')).filter((e=>{const t=window.getComputedStyle(e);return"none"!==t.display&&"hidden"!==t.visibility})):[]),[]),r=o((e=>{if("Tab"!==e.key)return;const t=a();if(0===t.length)return;const n=t[0],r=t[t.length-1];e.shiftKey?document.activeElement===n&&(e.preventDefault(),r.focus()):document.activeElement===r&&(e.preventDefault(),n.focus())}),[a]);return s((()=>{if(e){n.current=document.activeElement;const e=a();if(e.length>0&&e[0]){const t=e[0];setTimeout((()=>{t.focus()}),0)}document.addEventListener("keydown",r)}else n.current&&n.current.focus(),document.removeEventListener("keydown",r);return()=>{document.removeEventListener("keydown",r)}}),[e,a,r]),t}(L),R=d(),k="modal-title-"+R,M="modal-desc-"+R;s((()=>{if(!v)return;const e=e=>{"Escape"===e.key&&L&&w()};return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}}),[L,w,v]);const D=["c-modal",L?Ar.CLASSES.IS_OPEN:"",f?"c-modal--"+f:"",x?"c-modal--glass":"",S].filter(Boolean).join(" "),P=a.Children.toArray(l).some((e=>{var t;return a.isValidElement(e)&&Ra(t=["ModalHeader","ModalBody","ModalFooter"]).call(t,e.type.displayName||"")})),B=e("div",{className:"c-modal__content",ref:O,children:P?a.Children.map(l,(e=>a.isValidElement(e)&&"ModalHeader"===e.type.displayName?a.cloneElement(e,{...e.props,onClose:e.props.onClose||w,id:k}):e)):t(n,{children:[(p||E)&&e(Ic,{id:k,title:p,subtitle:g,closeButton:E,onClose:w}),e(wc,{id:M,children:l}),A&&e(Oc,{children:A})]})});return t("div",{ref:T,className:D,style:{display:L?"block":"none",...y},role:"dialog","aria-modal":"true","aria-hidden":!L,"aria-labelledby":k,"aria-describedby":M,...N,children:[e("div",{ref:C,className:"c-modal__backdrop",onClick:e=>{b&&e.target===e.currentTarget&&w()}}),e("div",{ref:_,className:"c-modal__dialog",children:x?(()=>{const t={displacementScale:document.querySelector(".c-modal---glass .c-modal__content")?.clientHeight,blurAmount:2.2,elasticity:0,mode:"shader",shaderMode:"premiumGlass"},n=!0===x?t:{...t,...x};return e(Ri,{...n,children:B})})():B})]})}));Rc.displayName="Modal";const kc=Rc;kc.Header=Ic,kc.Body=wc,kc.Footer=Oc;const Mc=kc,Dc=c((({children:t,alignment:n="start",variant:r="default",className:i="",disabled:o=!1,glass:s},l)=>{const{generateNavClass:c}=El({alignment:n,variant:r}),d=c({alignment:n,variant:r,className:i}),u=e("ul",{ref:l,className:d+(s?" c-nav--glass":""),role:"menubar","aria-orientation":"horizontal",children:a.Children.map(t,(e=>{if(a.isValidElement(e)){const t=e.props;return a.cloneElement(e,{...t,disabled:!!o||t?.disabled})}return e}))});if(s){const t={displacementScale:60,blurAmount:1.5,borderRadius:8,mode:"shader"},n=!0===s?t:{...t,...s};return e(Ri,{...n,children:u})}return u}));function Pc(e,t){"function"==typeof e?e(t):e&&(e.current=t)}function Bc(e,t){return a.useMemo((()=>null==e&&null==t?null:n=>{Pc(e,n),Pc(t,n)}),[e,t])}Dc.displayName="Nav";const zc=c((({children:n,dropdown:o=!1,megaMenu:l=!1,active:c=!1,href:d,target:u,onClick:h,className:m="",disabled:p=!1,"aria-expanded":g,linkComponent:f},b)=>{const{generateNavItemClass:v,generateNavLinkClass:S,handleClick:y}=Al({dropdown:o,megaMenu:l,active:c,disabled:p}),[E,A]=r(!1),x=i(null),N=Bc(b,x);s((()=>{if(!o&&!l||!E)return;const e=e=>{x.current&&!x.current.contains(e.target)&&(768>window.innerWidth||A(!1))};return document.addEventListener("click",e),()=>{document.removeEventListener("click",e)}}),[o,l,E]),s((()=>{if(!o&&!l)return;const e=()=>{window.innerWidth>=768&&E&&A(!1)};return window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}}),[o,l,E]);const T=v({dropdown:o,megaMenu:l,active:c,disabled:p,className:m})+(E?" is-active":""),_=S(c,p,o||l?"c-nav__dropdown-toggle":""),C=a.Children.toArray(n),L=void 0!==g?g:E,I={ref:N,href:d||"#",to:d||"#",target:u,className:_,onClick:o||l?e=>{(o||l)&&(e.preventDefault(),A(!E))}:y(h),"aria-disabled":p,"aria-expanded":o||l?L:void 0,"aria-current":!c||o||l?void 0:"page"};return t("li",{className:T,role:"menuitem","aria-haspopup":o||l,children:[e(f||"a",{...I,children:o||l?C[0]:n}),(o||l)&&C.length>1&&C[1]]})}));zc.displayName="NavItem";const Uc=c((({brand:n,children:a,variant:o,position:l="static",containerWidth:c,collapsible:d=!0,expanded:u,onToggle:h,className:m="",style:p,disabled:g=!1,backdrop:f=!1,closeOnOutsideClick:b=!0,closeOnEscape:v=!0,"aria-label":S="Main navigation",id:y,glass:E},A)=>{const{generateNavbarClass:x,generateContainerStyle:N,generateCollapseClass:T}=yl({position:l,collapsible:d,expanded:u,onToggle:h}),[_,C]=r(u||!1),L=i(null);s((()=>{void 0!==u&&C(u)}),[u]),s((()=>{const e=()=>{window.innerWidth>=768&&d&&("function"==typeof h?u&&h(!1):C(!1))};return window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}}),[d,u,h]),s((()=>{if(!_||!v)return;const e=e=>{"Escape"===e.key&&("function"==typeof h?h(!1):C(!1))};return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}}),[_,v,h]),s((()=>{if(!_||!b)return;const e=e=>{!L.current||L.current.contains(e.target)||e.target.closest(".c-navbar__toggler")||("function"==typeof h?h(!1):C(!1))};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}}),[_,b,h]);const I=x({position:l,variant:o,collapsible:d,className:m}),w=N(c),O=T(_),R=t("div",{className:"c-navbar__container",style:w,children:[n&&("string"==typeof n?e("a",{href:"/",className:"c-navbar__brand",children:n}):e("div",{className:"c-navbar__brand",children:n})),d&&e("button",{className:"c-navbar__toggler",onClick:()=>{if(g)return;const e=!_;"function"==typeof h?h(e):C(e)},"aria-expanded":_,"aria-label":"Toggle navigation","aria-controls":"navbar-collapse",disabled:g,type:"button",children:e("span",{className:"c-navbar__toggler-icon"})}),e("div",{id:"navbar-collapse",className:O,ref:L,children:a})]});if(E){const t={displacementScale:30,blurAmount:2,borderRadius:0,elasticity:0,mode:"shader",shaderVariant:"premiumGlass"},n=!0===E?t:{...t,...E};return e(Ri,{...n,style:{...("fixed"===l||"fixed-bottom"===l)&&{position:"fixed",top:"fixed"===l?0:void 0,bottom:"fixed-bottom"===l?0:void 0,left:0,right:0,zIndex:1030}},children:e("nav",{ref:A,className:I+" c-navbar--glass","aria-label":S,id:y,style:p,children:R})})}return e("nav",{ref:A,className:I,"aria-label":S,id:y,style:p,children:R})}));Uc.displayName="Navbar";const Fc=c((({children:t,className:n=""},r)=>e("ul",{ref:r,className:("c-side-menu__list "+n).trim(),role:"list",children:a.Children.map(t,((t,n)=>a.isValidElement(t)?e("li",{className:"c-side-menu__item",role:"listitem",children:t},n):t))})));Fc.displayName="SideMenuList";const Gc=c((({children:n,href:a,onClick:r,active:i=!1,disabled:o=!1,icon:s,className:l="",target:c,rel:d,linkComponent:u},h)=>{const{generateSideMenuItemClass:m,handleClick:p}=Tl({active:i,disabled:o,className:l}),g=m();if(a){if(u){const l={ref:h,className:g,onClick:o?e=>{e.preventDefault()}:r,"aria-disabled":o,"aria-current":i?"page":void 0,target:c,rel:d,tabIndex:o?-1:0,...o?{}:{href:a,to:a}};return t(u,{...l,children:[s&&e("span",{className:"c-side-menu__link-icon",children:s}),e("span",{className:"c-side-menu__link-text",children:n})]})}const l={ref:h,href:o?void 0:a,className:g,onClick:p(r),"aria-disabled":o,"aria-current":i?"page":void 0,target:c,rel:d,tabIndex:o?-1:0};return t("a",{...l,children:[s&&e("span",{className:"c-side-menu__link-icon",children:s}),e("span",{className:"c-side-menu__link-text",children:n})]})}return t("button",{ref:h,type:"button",className:g,onClick:p(r),disabled:o,"aria-current":i?"page":void 0,tabIndex:o?-1:0,children:[s&&e("span",{className:"c-side-menu__link-icon",children:s}),e("span",{className:"c-side-menu__link-text",children:n})]})}));Gc.displayName="SideMenuItem";const Vc=c((({title:a,children:l,menuItems:c=[],isOpen:d,onToggle:u,collapsible:h=!0,collapsibleDesktop:m=!1,defaultCollapsedDesktop:p=!1,className:g="",style:f,disabled:b=!1,toggleIcon:v,id:S,glass:y,linkComponent:E},A)=>{const{isOpenState:x,wrapperRef:N,innerRef:T,sideMenuRef:_,generateSideMenuClass:C,generateWrapperClass:L,handleToggle:I}=Nl({isOpen:d,onToggle:u,collapsible:h,collapsibleDesktop:m,defaultCollapsedDesktop:p,disabled:b}),[w,O]=r((()=>"undefined"!=typeof window&&768>window.innerWidth)),[R,k]=r((()=>{const e={};return c?.forEach(((t,n)=>{e[n]=!0})),e})),M=i({}),D=i({}),P=i(c?.length??0);s((()=>{const e=()=>{O(768>window.innerWidth)};return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)}),[]),s((()=>{const e=c?.length??0;P.current!==e&&(P.current=e,k((e=>{const t={};return c?.forEach(((n,a)=>{t[a]=e[a]??!0})),t})),Object.keys(M.current).forEach((t=>{const n=Number(t);e>n||(delete M.current[n],delete D.current[n])})))}),[c]);const B=o(((e,t)=>{const n=M.current[e],a=D.current[e];n&&a&&(n.style.height=t?a.scrollHeight+"px":"0px")}),[]);s((()=>{if(!c?.length)return;const e=setTimeout((()=>{c.forEach(((e,t)=>{const n=R[t]??!0;B(t,n)}))}),0);return()=>clearTimeout(e)}),[c,B]),s((()=>{if(!c?.length)return;const e=[];return Object.keys(R).forEach((t=>{const n=Number(t),a=R[n]??!0,r=requestAnimationFrame((()=>{B(n,a)}));e.push(r)})),()=>{e.forEach((e=>cancelAnimationFrame(e)))}}),[R,c,B]);const z=Bc(_,A),U=C({className:g,isOpen:x}),F=L(),G=e(no,{name:"CaretRight",size:"xs"}),V=w&&h||!w&&m,H=a&&!V,$=t(n,{children:[a&&V&&t("div",{className:"c-side-menu__toggler",onClick:I,role:"button",tabIndex:b?-1:0,"aria-expanded":x,"aria-controls":S?S+"-content":void 0,"aria-disabled":b,onKeyDown:e=>{"Enter"!==e.key&&" "!==e.key||b||(e.preventDefault(),I())},children:[e("span",{className:"c-side-menu__title",children:a}),e("span",{className:"c-side-menu__toggler-icon",children:v||G})]}),H&&e("h3",{className:"c-side-menu__title",children:a}),e("div",{ref:N,className:F,id:S?S+"-content":void 0,"aria-hidden":!!V&&!x,children:t("div",{ref:T,className:"c-side-menu__inner",children:[l,c?.map(((n,a)=>{const r=R[a]??!0,i=n.items&&n.items.length>0,o=i&&!b,s=()=>{o&&k((e=>({...e,[a]:!e[a]})))};return t("div",{className:"c-side-menu__item",children:[n.title&&t("div",{className:["c-side-menu__toggler",o&&"c-side-menu__toggler--nested",r&&"is-open"].filter(Boolean).join(" "),onClick:o?s:void 0,role:o?"button":void 0,tabIndex:o&&!b?0:void 0,"aria-expanded":o?r:void 0,"aria-disabled":b,onKeyDown:o?e=>{"Enter"!==e.key&&" "!==e.key||b||(e.preventDefault(),s())}:void 0,children:[e("span",{className:"c-side-menu__title",children:n.title}),o&&e("span",{className:"c-side-menu__toggler-icon",children:n.toggleIcon||e(no,{name:"CaretRight",size:"xs"})})]}),i&&e("div",{ref:e=>{M.current[a]=e},className:"c-side-menu__nested-wrapper",children:e("div",{ref:e=>{D.current[a]=e},className:"c-side-menu__nested-inner",children:e(Fc,{children:n.items?.map(((t,n)=>e(Gc,{href:t.href,onClick:t.onClick,active:t.active,disabled:t.disabled,icon:t.icon,linkComponent:E,children:t.title},n)))})})})]},a)}))]})})]});if(y){const t={displacementScale:70,blurAmount:2,borderRadius:12,mode:"shader"},n=!0===y?t:{...t,...y};return e(Ri,{...n,children:e("div",{ref:z,className:U+" c-side-menu--glass",id:S,style:f,children:$})})}return e("div",{ref:z,className:U,id:S,style:f,children:$})}));Vc.displayName="SideMenu";const Hc=c((({children:t,className:n="",style:r,disabled:i=!1},o)=>e("div",{ref:o,className:"c-menu "+n,style:r,children:e("ul",{className:"c-menu__list",role:"menu",children:a.Children.map(t,(e=>{if(a.isValidElement(e)){const t=e.props;return a.cloneElement(e,{...t,disabled:!!i||t?.disabled})}return e}))})})));Hc.displayName="Menu";const $c=c((({children:a,href:r="#",target:i,linkComponent:o,icon:s,active:l=!1,disabled:c=!1,onClick:d,className:u=""},h)=>{const m=`c-menu__item ${l?"is-active":""} ${c?"is-disabled":""} ${u}`,p={href:r,to:r,target:i,className:"c-menu__link",onClick:e=>{c?e.preventDefault():d&&d()},"aria-disabled":c,"aria-current":l?"page":void 0},g=t(n,{children:[s&&("string"==typeof s?s.startsWith("c-icon-")?e(no,{name:Yc(s.replace("c-icon-","")),size:"sm",className:"c-menu__icon"}):e("i",{className:"c-menu__icon "+s,children:"string"!=typeof s&&s}):e("span",{className:"c-menu__icon",children:s})),a]});return e("li",{ref:h,className:m,role:"menuitem",children:e(o||"a",{...p,children:g})})}));$c.displayName="MenuItem";const Yc=e=>({circle:"Circle","caret-down":"CaretDown","caret-up":"CaretUp","caret-right":"CaretRight",user:"User",settings:"Gear","sign-out":"SignOut",file:"File",bookmark:"Bookmark","question-circle":"Question",bell:"Bell",search:"MagnifyingGlass"}[e]||"Circle"),Kc=c((({className:t=""},n)=>e("li",{ref:n,className:"c-menu__divider "+t,role:"separator"})));Kc.displayName="MenuDivider";const Wc=c((({children:t,className:n="",style:r,disabled:i=!1},o)=>e("div",{ref:o,className:"c-menu c-menu--mega "+n,style:r,children:e("div",{className:"c-menu__container",children:e("div",{className:"c-menu__grid o-grid",children:a.Children.map(t,(e=>{if(a.isValidElement(e)){const t=e.props;return a.cloneElement(e,{...t,disabled:!!i||t?.disabled})}return e}))})})})));Wc.displayName="MegaMenu";const jc=c((({title:n,icon:r,children:i,width:o="auto",className:s="",disabled:l=!1},c)=>t("div",{ref:c,className:`o-grid__col o-grid__col--${o} ${s}`,children:[(n||r)&&t("div",{className:"c-menu__header",children:[r&&("string"==typeof r?r.startsWith("c-icon-")?e(no,{name:Yc(r.replace("c-icon-","")),size:"sm",className:"c-menu__header-icon"}):e("i",{className:"c-menu__header-icon "+r,children:"string"!=typeof r&&r}):e("span",{className:"c-menu__header-icon",children:r})),n&&e("div",{className:"c-menu__header-title",children:n})]}),e("ul",{className:"c-menu__subitems-list",role:"menu",children:a.Children.map(i,(t=>{if(a.isValidElement(t)){const n=t.props;return e("li",{className:"c-menu__subitem",role:"menuitem",children:a.cloneElement(t,{...n,disabled:!!l||n?.disabled})})}return null}))})]})));jc.displayName="MegaMenuColumn";const qc=c((({href:t,target:n,linkComponent:a,children:r,className:i="",disabled:o=!1,onClick:s},l)=>e(a||"a",{...{ref:l,href:t,to:t,target:n,className:`c-menu__subitem-link ${o?"is-disabled":""} ${i}`,onClick:e=>{o?e.preventDefault():s&&s()},"aria-disabled":o},children:r})));qc.displayName="MegaMenuLink";const Qc=c((({title:a,children:o,alignment:l="start",megaMenu:c=!1,className:d="",style:u,disabled:h=!1},m)=>{const{generateDropdownMenuClass:p,getIconName:g}=xl({alignment:l,megaMenu:c}),[f,b]=r(!1),v=i(null),S=p({alignment:l,megaMenu:c,className:d}),y=g(c);s((()=>{if(!f)return;const e=e=>{768>window.innerWidth||!v.current||v.current.contains(e.target)||b(!1)};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}}),[f]),s((()=>{if(!f)return;const e=e=>{"Escape"===e.key&&b(!1)};return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}}),[f]);const E=t(n,{children:[a,e(no,{name:y,size:"sm",className:"c-nav__icon"})]}),A=e(c?"div":"ul",{className:S,ref:v,"aria-hidden":!f,children:o});return t(zc,{dropdown:!c,megaMenu:c,disabled:h,className:f?"is-active":"",href:"#",onClick:()=>{h||b(!f)},"aria-expanded":f,style:u,children:[E,A]})}));Qc.displayName="NavDropdown";const Xc=({currentIndex:n,imagesLength:a,onZoomOut:r,onResetZoom:i,onZoomIn:o,onToggleFullscreen:s,onClose:l,isFullscreen:c,zoomLevel:d,onRotate:u,onDownload:h,onShare:m,showInfo:p,onToggleInfo:g,currentImage:f})=>t("div",{className:"c-photo-viewer__header",children:[t("div",{className:"c-photo-viewer__header-left",children:[e(oo,{label:`${n+1} / ${a}`,variant:"primary",size:"sm"}),f?.title&&e("h3",{className:"c-photo-viewer__image-title",children:f.title})]}),t("div",{className:"c-photo-viewer__actions",children:[e(Vo,{iconOnly:!0,size:"sm",variant:"ghost",rounded:!0,onClick:r,disabled:.1>=d,"aria-label":"Zoom out",className:"c-photo-viewer__action-button",icon:e(no,{name:"Minus",size:"sm"})}),e(Vo,{iconOnly:!0,size:"sm",variant:"ghost",rounded:!0,onClick:i,disabled:1===d,"aria-label":"Reset zoom",className:"c-photo-viewer__action-button",icon:e(no,{name:"MagnifyingGlass",size:"sm"})}),e(Vo,{iconOnly:!0,size:"sm",variant:"ghost",rounded:!0,onClick:o,disabled:d>=5,"aria-label":"Zoom in",className:"c-photo-viewer__action-button",icon:e(no,{name:"Plus",size:"sm"})}),e("div",{className:"c-photo-viewer__divider"}),e(Vo,{iconOnly:!0,size:"sm",variant:"ghost",rounded:!0,onClick:u,"aria-label":"Rotate image",className:"c-photo-viewer__action-button",icon:e(no,{name:"ArrowsClockwise",size:"sm"})}),e(Vo,{iconOnly:!0,size:"sm",variant:"ghost",rounded:!0,onClick:h,"aria-label":"Download image",className:"c-photo-viewer__action-button",icon:e(no,{name:"Download",size:"sm"})}),"share"in navigator&&"function"==typeof navigator.share&&e(Vo,{iconOnly:!0,size:"sm",variant:"ghost",rounded:!0,onClick:m,"aria-label":"Share image",className:"c-photo-viewer__action-button",icon:e(no,{name:"Share",size:"sm"})}),e(Vo,{iconOnly:!0,size:"sm",variant:"ghost",rounded:!0,onClick:g,"aria-label":"Toggle info panel",className:"c-photo-viewer__action-button "+(p?"is-active":""),icon:e(no,{name:"Info",size:"sm"})}),e("div",{className:"c-photo-viewer__divider"}),e(Vo,{iconOnly:!0,size:"sm",variant:"ghost",rounded:!0,onClick:s,"aria-label":c?"Exit fullscreen":"Enter fullscreen",className:"c-photo-viewer__action-button",icon:e(no,{name:c?"ArrowsIn":"ArrowsOut",size:"sm"})}),e(Vo,{iconOnly:!0,size:"sm",variant:"ghost",rounded:!0,onClick:l,"aria-label":"Close viewer",className:"c-photo-viewer__action-button c-photo-viewer__close-button",icon:e(no,{name:"X",size:"sm"})})]})]}),Zc=({show:a,onPrev:r,onNext:i,currentIndex:o,imagesLength:l,enableKeyboardNav:c,onClose:d})=>(s((()=>{if(!c)return;const e=e=>{"ArrowLeft"===e.key&&r(),"ArrowRight"===e.key&&i(),"Escape"===e.key&&d()};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)}),[c,r,i,d]),a?t(n,{children:[e(Vo,{iconOnly:!0,size:"md",variant:"ghost",rounded:!0,onClick:r,disabled:0===o,"aria-label":"Previous image",className:"c-photo-viewer__nav-button c-photo-viewer__nav-button--prev",icon:e(no,{name:"CaretLeft",size:"md"})}),e(Vo,{iconOnly:!0,size:"md",variant:"ghost",rounded:!0,onClick:i,disabled:o===l-1,"aria-label":"Next image",className:"c-photo-viewer__nav-button c-photo-viewer__nav-button--next",icon:e(no,{name:"CaretRight",size:"md"})})]}):null),Jc=({imageRef:t,containerRef:n,src:a,alt:o,zoomLevel:l,dragPosition:c,isDragging:d,rotationAngle:u,isTransitioning:h=!1,onMouseDown:m,onMouseMove:p,onMouseUp:g,onWheel:f,onTouchStart:b,onTouchMove:v,onTouchEnd:S,onDoubleClick:y})=>{const E=i(null),A=n||E,[x,N]=r(!1);return s((()=>(N(!0),()=>N(!1))),[]),s((()=>{const e=A.current;if(!e)return;const t=t=>{x&&e&&f&&f(t)},n=t=>{x&&e&&b&&b(t)},a=t=>{x&&e&&v&&v(t)},r=t=>{x&&e&&S&&S(t)};return x&&(e.addEventListener("wheel",t,{passive:!1}),e.addEventListener("touchstart",n,{passive:!1}),e.addEventListener("touchmove",a,{passive:!1}),e.addEventListener("touchend",r,{passive:!1})),()=>{e.removeEventListener("wheel",t),e.removeEventListener("touchstart",n),e.removeEventListener("touchmove",a),e.removeEventListener("touchend",r)}}),[x,f,b,v,S,A]),e("div",{ref:A,className:"c-photo-viewer__image-container "+(h?"is-transitioning":""),style:{cursor:d?"grabbing":l>1?"grab":"default",opacity:h?.7:1,touchAction:"none"},onMouseDown:m,onMouseMove:p,onMouseUp:g,onMouseLeave:g,onDoubleClick:e=>{x&&y&&y(e)},children:e("img",{ref:t,src:a,alt:o,className:"c-photo-viewer__image",style:{transform:`scale(${l}) translate(${c.x}px, ${c.y}px) rotate(${u}deg)`,transition:d?"none":h?"opacity 0.15s ease-out":"transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94)",transformOrigin:"center center",willChange:d?"transform":"auto",touchAction:"none"},draggable:!1,onContextMenu:e=>e.preventDefault()})})},ed=({images:n,currentIndex:a,goToImage:r})=>n.length>1?e("div",{className:"c-photo-viewer__thumbnails",children:e("div",{className:"c-photo-viewer__thumbnails-container",children:n.map(((n,i)=>{const o=n.thumbnail||n.src,s=i===a;return e(Vo,{variant:"ghost",className:"c-photo-viewer__thumbnail "+(s?"is-active":""),onClick:()=>r(i),"aria-label":`View image ${i+1}${n.title?": "+n.title:""}`,"aria-current":s,children:t("div",{className:"c-photo-viewer__thumbnail-wrapper",children:[e("img",{loading:"lazy",src:o,alt:n.alt||"Thumbnail "+(i+1),className:"c-photo-viewer__thumbnail-img"}),s&&e("div",{className:"c-photo-viewer__thumbnail-indicator"})]})},i)}))})}):null,td=({show:n,image:a,onClose:r})=>n&&a?t("div",{className:"c-photo-viewer__info-panel",children:[t("div",{className:"c-photo-viewer__info-header",children:[e("h4",{className:"c-photo-viewer__info-panel-title",children:"Image Details"}),e(Vo,{iconOnly:!0,size:"sm",variant:"ghost",rounded:!0,onClick:r,"aria-label":"Close info panel",className:"c-photo-viewer__info-close",icon:e(no,{name:"X",size:"sm"})})]}),t("div",{className:"c-photo-viewer__info-content",children:[a.title&&e("div",{className:"c-photo-viewer__info-section",children:e("h5",{className:"c-photo-viewer__info-title",children:a.title})}),a.description&&e("div",{className:"c-photo-viewer__info-section",children:e("p",{className:"c-photo-viewer__info-description",children:a.description})}),(a.date||a.author)&&e("div",{className:"c-photo-viewer__info-section",children:t("div",{className:"c-photo-viewer__info-meta",children:[a.date&&t("div",{className:"c-photo-viewer__info-meta-item",children:[e(no,{name:"Calendar",size:14}),e("span",{children:a.date})]}),a.author&&t("div",{className:"c-photo-viewer__info-meta-item",children:[e(no,{name:"User",size:14}),e("span",{children:a.author})]})]})}),a.tags&&a.tags.length>0&&t("div",{className:"c-photo-viewer__info-section",children:[e("h6",{className:"c-photo-viewer__info-section-title",children:"Tags"}),e("div",{className:"c-photo-viewer__info-tags",children:a.tags.map(((t,n)=>e(oo,{label:t,variant:"secondary",size:"sm"},n)))})]})]})]}):null,nd=({images:n,startIndex:a=0,className:l="",disabled:c=!1,enableKeyboardNavigation:d=!0,enableGestures:h=!0,enableFullscreen:m=!0,thumbnailPosition:p="bottom",onImageChange:g,onClose:f})=>{const{currentIndex:b,zoomLevel:v,imagePosition:S,isDragging:y,isFullscreen:E,rotationAngle:A,showInfo:x,imageRef:N,containerRef:T,isTransitioning:_,setZoomLevel:C,setImagePosition:L,setIsDragging:I,setIsFullscreen:w,setRotationAngle:O,setShowInfo:R,closeModal:k,goToPrevious:M,goToNext:D,setCurrentIndex:P,handleMouseDown:B,handleMouseMove:z,handleMouseUp:U,handleWheel:F,handleTouchStart:G,handleTouchMove:V,handleTouchEnd:H,handleDoubleClick:$,resetImageState:Y}=(({images:e,startIndex:t=0,enableGestures:n=!0,onImageChange:a,onClose:l})=>{const[c,d]=r(t),[u,h]=r(!1),[m,p]=r(!1),[g,f]=r({x:0,y:0}),[b,v]=r(!1),[S,y]=r(!1),[E,A]=r({}),[x,N]=r(!1),[T,_]=r(!1),[C,L]=r({velocity:0,timestamp:0}),I=i(null),w=i(null),O=i([]),R=i(null),k=i(null),M=i(0),D=i(null),P=o(((e,t)=>{if(!T||!I.current||!w.current)return{minX:0,maxX:0,minY:0,maxY:0};const n=I.current,a=w.current;if(!n.naturalWidth&&!n.width)return{minX:0,maxX:0,minY:0,maxY:0};const r=n.naturalWidth||n.width||800,i=n.naturalHeight||n.height||600;try{const n=a.getBoundingClientRect();if(!n||0===n.width||0===n.height)return{minX:0,maxX:0,minY:0,maxY:0};const o=n.width,s=n.height,l=t*Math.PI/180,c=Math.abs(Math.cos(l)),d=Math.abs(Math.sin(l)),u=r/i;let h,m;o/s>u?(m=Math.min(.9*s,i),h=m*u):(h=Math.min(.9*o,r),m=h/u);const p=(h*d+m*c)*e,g=Math.max(0,((h*c+m*d)*e-o)/2),f=Math.max(0,(p-s)/2);return{minX:-g,maxX:g,minY:-f,maxY:f}}catch(o){return{minX:0,maxX:0,minY:0,maxY:0}}}),[T]),B=o(((e,t)=>({x:Math.max(t.minX,Math.min(t.maxX,e.x)),y:Math.max(t.minY,Math.min(t.maxY,e.y))})),[]);s((()=>(_(!0),0>t||t>=e.length?d(0):d(t),()=>_(!1))),[e,t]),s((()=>{u?document.body.classList.add("is-open-photoviewer"):document.body.classList.remove("is-open-photoviewer")}),[u]),s((()=>{u&&A((e=>e[c]?e:{...e,[c]:{zoomLevel:1,position:{x:0,y:0},rotation:0,bounds:{minX:0,maxX:0,minY:0,maxY:0}}}))}),[u,c]),s((()=>{a&&a(c)}),[c,a]),s((()=>{const e=I.current,t=w.current,n=()=>{T&&e&&t&&A((e=>{const t=e[c]||{zoomLevel:1,position:{x:0,y:0},rotation:0,bounds:{minX:0,maxX:0,minY:0,maxY:0}},n=P(t.zoomLevel,t.rotation),a=B(t.position,n);return{...e,[c]:{...t,bounds:n,position:a}}}))};if(!(e&&t&&e.complete&&T))return e&&t&&T?(e.addEventListener("load",n),()=>e.removeEventListener("load",n)):void 0;n()}),[c,P,B,T]),s((()=>{const e=()=>{T&&I.current&&w.current&&A((e=>{const t=e[c]||{zoomLevel:1,position:{x:0,y:0},rotation:0,bounds:{minX:0,maxX:0,minY:0,maxY:0}},n=P(t.zoomLevel,t.rotation),a=B(t.position,n);return{...e,[c]:{...t,bounds:n,position:a}}}))};return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)}),[c,P,B,T]);const z=o((()=>{h(!0)}),[]),U=o((()=>{h(!1),l&&l()}),[l]),F=o((()=>{c>0&&(N(!0),setTimeout((()=>{d((e=>e-1)),N(!1)}),150))}),[c]),G=o((()=>{c<e.length-1&&(N(!0),setTimeout((()=>{d((e=>e+1)),N(!1)}),150))}),[c,e.length]),V=o((e=>{A((t=>{const n=t[c]||{zoomLevel:1,position:{x:0,y:0},rotation:0,bounds:{minX:0,maxX:0,minY:0,maxY:0}},a="function"==typeof e?e(n.zoomLevel):e,r=Math.max(.1,Math.min(5,a)),i=P(r,n.rotation),o=B(n.position,i);return{...t,[c]:{...n,zoomLevel:r,bounds:i,position:o}}}))}),[c,P,B]),H=o((e=>{A((t=>{const n=t[c]||{zoomLevel:1,position:{x:0,y:0},rotation:0,bounds:{minX:0,maxX:0,minY:0,maxY:0}},a="function"==typeof e?e(n.position):e,r=B(a,n.bounds);return{...t,[c]:{...n,position:r}}}))}),[c,B]),$=o((e=>{A((t=>{const n=t[c]||{zoomLevel:1,position:{x:0,y:0},rotation:0,bounds:{minX:0,maxX:0,minY:0,maxY:0}},a=(("function"==typeof e?e(n.rotation):e)%360+360)%360,r=P(n.zoomLevel,a),i=B(n.position,r);return{...t,[c]:{...n,rotation:a,bounds:r,position:i}}}))}),[c,P,B]),Y=o((e=>{var t;if(!T||!e||!e.currentTarget)return;const n=e.currentTarget;if(n&&"function"==typeof n.getBoundingClientRect){if("undefined"!=typeof window&&(null==(t=window.location?.href)?void 0:Function.call.bind(Ra(t),t))?.("storybook"))try{const e=n.getBoundingClientRect();if(!e||0===e.width||0===e.height)return}catch(a){return}A((t=>{const a=t[c]||{zoomLevel:1,position:{x:0,y:0},rotation:0,bounds:{minX:0,maxX:0,minY:0,maxY:0}},r=/Mac|iPod|iPhone|iPad/.test(navigator.platform),i=e.ctrlKey&&r,o=Math.abs(e.deltaX)>0,s=!e.ctrlKey&&o&&r,l=!e.ctrlKey&&!o&&r,d=!r;let u,h=!1;if(i)u=-.02*e.deltaY,h=!0;else if(s){if(1>=a.zoomLevel)return t;u=-.003*e.deltaY,h=!0}else l?(u=-.004*e.deltaY,h=!0):d?(u=-.006*e.deltaY,h=!0):(u=-.005*e.deltaY,h=!0);h&&(e.preventDefault(),e.stopPropagation());const m=Date.now(),p=m-M.current;let g;M.current=m,i&&100>p&&(L({velocity:Math.abs(u)/p,timestamp:m}),D.current&&clearTimeout(D.current),D.current=setTimeout((()=>{const e=()=>{L((t=>{if(.001>t.velocity)return t;const n=.95*t.velocity,a=n*(u>0?1:-1);return A((e=>{const t=e[c]||{zoomLevel:1,position:{x:0,y:0},rotation:0,bounds:{minX:0,maxX:0,minY:0,maxY:0}},n=Math.max(.1,Math.min(5,t.zoomLevel+a));if(n===t.zoomLevel)return e;const r=P(n,t.rotation),i=B(t.position,r);return{...e,[c]:{...t,zoomLevel:n,bounds:r,position:i}}})),.001>n||requestAnimationFrame(e),{velocity:n,timestamp:Date.now()}}))};requestAnimationFrame(e)}),50));try{g=n.getBoundingClientRect()}catch(x){return t}if(!g||0===g.width||0===g.height)return t;const f=g.width/2,b=g.height/2,v=e.clientX-g.left-f,S=e.clientY-g.top-b,y=a.zoomLevel,E=Math.max(.1,Math.min(5,y+u));if(E!==y){const e=E/y,n=P(E,a.rotation),r={x:a.position.x+v*(1-e)*.5,y:a.position.y+S*(1-e)*.5},i=B(r,n);return{...t,[c]:{...a,zoomLevel:E,bounds:n,position:i}}}return t}))}}),[T,c,P,B]),K=o((e=>{if(!T||!e||!e.currentTarget)return;const t=e.currentTarget;t&&"function"==typeof t.getBoundingClientRect&&A((n=>{const a=n[c]||{zoomLevel:1,position:{x:0,y:0},rotation:0,bounds:{minX:0,maxX:0,minY:0,maxY:0}};let r;try{r=t.getBoundingClientRect()}catch(p){return n}if(!r||0===r.width||0===r.height)return n;const i=r.width/2,o=r.height/2,s=e.clientX-r.left-i,l=e.clientY-r.top-o;let d,u={x:0,y:0};1.5>a.zoomLevel?(d=2,u={x:.5*-s,y:.5*-l}):3>a.zoomLevel?(d=4,u={x:.75*-s,y:.75*-l}):(d=1,u={x:0,y:0});const h=P(d,a.rotation),m=B(u,h);return{...n,[c]:{...a,zoomLevel:d,bounds:h,position:m}}}))}),[T,c,P,B]),W=o((e=>{A((t=>{const n=t[c]||{zoomLevel:1,position:{x:0,y:0},rotation:0,bounds:{minX:0,maxX:0,minY:0,maxY:0}};return n.zoomLevel>1&&(e.preventDefault(),p(!0),f({x:e.clientX-n.position.x,y:e.clientY-n.position.y})),t}))}),[c]),j=o((e=>{m&&A((t=>{const n=t[c]||{zoomLevel:1,position:{x:0,y:0},rotation:0,bounds:{minX:0,maxX:0,minY:0,maxY:0}},a=Math.min(1,1/n.zoomLevel),r=(e.clientX-g.x)*a,i=(e.clientY-g.y)*a,o=B({x:r,y:i},n.bounds);return{...t,[c]:{...n,position:o}}}))}),[m,g,c,B]),q=o((()=>{p(!1)}),[]),Q=o((e=>{if(!n)return;const t=e.touches;t.length>1&&(e.preventDefault(),e.stopPropagation()),O.current=Array.from(t).map((e=>({x:e.clientX,y:e.clientY}))),A((e=>{const n=e[c]||{zoomLevel:1,position:{x:0,y:0},rotation:0,bounds:{minX:0,maxX:0,minY:0,maxY:0}};if(1===t.length&&n.zoomLevel>1){p(!0);const e=t[0];e&&f({x:e.clientX-n.position.x,y:e.clientY-n.position.y})}else if(2===t.length){const e=t[0],n=t[1];if(e&&n){const t=e.clientX-n.clientX,a=e.clientY-n.clientY;R.current=Math.sqrt(t*t+a*a),k.current={x:(e.clientX+n.clientX)/2,y:(e.clientY+n.clientY)/2}}}return e}))}),[n,c]),X=o((e=>{if(!n)return;const t=e.touches;t.length>1&&(e.preventDefault(),e.stopPropagation()),A((n=>{const a=n[c]||{zoomLevel:1,position:{x:0,y:0},rotation:0,bounds:{minX:0,maxX:0,minY:0,maxY:0}};a.zoomLevel>1&&1===t.length&&e.preventDefault();let r=null,i=0,o=null;if(1===t.length&&m&&a.zoomLevel>1){const e=t[0];if(e){const t=Math.min(1,1/a.zoomLevel);r={x:(e.clientX-g.x)*t,y:(e.clientY-g.y)*t}}if(r){const e=B(r,a.bounds);return{...n,[c]:{...a,position:e}}}}else if(2===t.length&&null!==R.current){const r=t[0],l=t[1];if(r&&l){const t=r.clientX-l.clientX,d=r.clientY-l.clientY,u=Math.sqrt(t*t+d*d);i=.005*(u-R.current),R.current=u,o={x:(r.clientX+l.clientX)/2,y:(r.clientY+l.clientY)/2};const h=a.zoomLevel,m=Math.max(.1,Math.min(5,h+i));if(m!==h&&k.current&&o){let t;try{t=e.currentTarget.getBoundingClientRect()}catch(s){return n}if(!t||0===t.width||0===t.height)return n;const r=t.width/2,i=t.height/2,l=o.x-t.left-r,d=o.y-t.top-i,u=m/h,p=P(m,a.rotation),g={x:a.position.x+l*(1-u)*.5,y:a.position.y+d*(1-u)*.5},f=B(g,p);return k.current=o,{...n,[c]:{...a,zoomLevel:m,bounds:p,position:f}}}o&&(k.current=o)}}return n}))}),[n,m,g,c,B,P]),Z=o((()=>{p(!1),R.current=null,k.current=null}),[]),J=E[c]||{zoomLevel:1,position:{x:0,y:0},rotation:0,bounds:{minX:0,maxX:0,minY:0,maxY:0}};return{currentIndex:c,isModalOpen:u,zoomLevel:J.zoomLevel,imagePosition:J.position,isDragging:m,isFullscreen:b,rotationAngle:J.rotation,showInfo:S,imageRef:I,containerRef:w,isTransitioning:x,setCurrentIndex:d,setZoomLevel:V,setImagePosition:H,setIsDragging:p,setIsFullscreen:v,setRotationAngle:$,setShowInfo:y,openModal:z,closeModal:U,goToPrevious:F,goToNext:G,handleWheel:Y,handleMouseDown:W,handleMouseMove:j,handleMouseUp:q,handleTouchStart:Q,handleTouchMove:X,handleTouchEnd:Z,handleDoubleClick:K,resetImageState:()=>{A((e=>({...e,[c]:{zoomLevel:1,position:{x:0,y:0},rotation:0,bounds:{minX:0,maxX:0,minY:0,maxY:0}}})))}}})({images:n,startIndex:a,enableGestures:h,onImageChange:g,onClose:f||(()=>{})}),K=u((()=>n.map((e=>"string"==typeof e?{src:e}:e))),[n]),W=K[b],j=u((()=>["c-photo-viewer","c-photo-viewer--thumbnails-"+p,y?"c-photo-viewer--dragging":"",E?"c-photo-viewer--fullscreen":"",x?"c-photo-viewer--info-open":"",c?"is-disabled":"",l].filter(Boolean).join(" ")),[y,E,x,c,p,l]);return s((()=>{const e=()=>{w(!!document.fullscreenElement)};return document.addEventListener("fullscreenchange",e),()=>document.removeEventListener("fullscreenchange",e)}),[w]),s((()=>(document.body.classList.add("is-open-photoviewer"),()=>{document.body.classList.remove("is-open-photoviewer")})),[]),n.length?t("div",{className:j,role:"dialog","aria-modal":"true","aria-label":"Photo viewer",children:[e("div",{className:"c-photo-viewer__backdrop",onClick:k}),t("div",{className:"c-photo-viewer__container",children:[e(Xc,{currentIndex:b,imagesLength:n.length,onZoomOut:()=>C((e=>Math.max(e-.25,.1))),onResetZoom:()=>{Y()},onZoomIn:()=>C((e=>Math.min(e+.25,5))),onToggleFullscreen:()=>{if(m){if(E)document.exitFullscreen&&document.exitFullscreen();else{const e=document.documentElement;e.requestFullscreen&&e.requestFullscreen()}w(!E)}},onClose:f||k,isFullscreen:E,zoomLevel:v,onRotate:()=>{O((e=>(e+90)%360))},onDownload:()=>{if(!W?.src)return;const e=document.createElement("a");e.href=W.src;const t=(W.title||"image-"+(b+1)).replace(/[^a-zA-Z0-9.-]/g,"_");e.download=t,document.body.appendChild(e),e.click(),document.body.removeChild(e)},onShare:async()=>{if(navigator.share&&W?.src)try{await navigator.share({title:W.title||"Shared Image",text:W.description||"Check out this image",url:W.src})}catch(e){}},showInfo:x,onToggleInfo:()=>R(!x),currentImage:W}),t("div",{className:"c-photo-viewer__content",children:[e(Zc,{show:n.length>1,onPrev:M,onNext:D,currentIndex:b,imagesLength:n.length,enableKeyboardNav:d,onClose:f||k}),W?.src&&e(Jc,{imageRef:N,containerRef:T,src:W.src,alt:W?.alt||"Image "+(b+1),zoomLevel:v,dragPosition:S,isDragging:y,rotationAngle:A,isTransitioning:_,onMouseDown:B,onMouseMove:z,onMouseUp:U,onWheel:F,onTouchStart:G,onTouchMove:V,onTouchEnd:H,onDoubleClick:$})]}),"none"!==p&&e(ed,{images:K,currentIndex:b,goToImage:P}),e(td,{show:x,image:W,onClose:()=>R(!1)})]})]}):null};nd.displayName="PhotoViewer";const ad=g({isOpen:!1,setIsOpen:()=>{},triggerRef:{current:null},popoverId:"",triggerType:"click"}),rd=({content:n,position:a="top",trigger:l="click",className:c="",style:d,delay:u=0,offset:h=12,defaultOpen:m=!1,isOpen:p,onOpenChange:g,closeOnClickOutside:f=!0,closeOnEscape:b=!0,id:v,children:S,glass:y})=>{const{isOpen:E,setIsOpen:A,triggerRef:x,popoverRef:N,arrowRef:T,popoverId:_,currentPosition:C,updatePosition:L}=(({position:e="top",trigger:t="click",offset:n=12,delay:a=0,defaultOpen:l=!1,isOpen:c,onOpenChange:d,closeOnClickOutside:u=!0,closeOnEscape:h=!0,id:m})=>{const[p,g]=r(l),[f,b]=r("auto"===e?"top":e),v=i(null),S=i(null),y=i(null),E=i(null),A=m||"popover-"+Math.random().toString(36).slice(2,11),x=void 0!==c,N=x?c:p,T=o((e=>{x||g(e),d&&d(e)}),[x,d]);s((()=>{if("hover"!==t||!v.current||!S.current)return;const e=()=>{null!==E.current&&(clearTimeout(E.current),E.current=null),a>0?E.current=setTimeout((()=>{T(!0)}),a):T(!0)},n=()=>{null!==E.current&&(clearTimeout(E.current),E.current=null),E.current=setTimeout((()=>{S.current?.matches(":hover")||T(!1)}),100)},r=()=>{null!==E.current&&(clearTimeout(E.current),E.current=null)},i=()=>{T(!1)};v.current.addEventListener("mouseenter",e),v.current.addEventListener("mouseleave",n),S.current.addEventListener("mouseenter",r),S.current.addEventListener("mouseleave",i);const o=v.current,s=S.current;return()=>{o&&(o.removeEventListener("mouseenter",e),o.removeEventListener("mouseleave",n)),s&&(s.removeEventListener("mouseenter",r),s.removeEventListener("mouseleave",i)),null!==E.current&&window.clearTimeout(E.current)}}),[t,a,N,T]);const _=o((t=>{if(!v.current||!S.current)return;const a=v.current.getBoundingClientRect(),r=S.current.getBoundingClientRect(),i=window.innerWidth,o=window.innerHeight,s=50>a.top||a.bottom>o-50||50>a.left||a.right>i-50;if("scroll"===t?.type&&!s)return;const l=a.top,c=o-a.bottom,d=a.left,u=i-a.right;let h="auto"===e?"top":e;if("auto"===e){const e=[{position:"top",space:l},{position:"right",space:u},{position:"bottom",space:c},{position:"left",space:d}];e.sort(((e,t)=>t.space-e.space)),h=e[0]?.position}else("top"===e&&l<r.height+n&&c>=r.height+n||"bottom"===e&&c<r.height+n&&l>=r.height+n||"left"===e&&d<r.width+n&&u>=r.width+n||"right"===e&&u<r.width+n&&d>=r.width+n)&&(h={top:"bottom",bottom:"top",left:"right",right:"left",auto:"bottom"}[e]);b(h);let m=0,p=0;switch(h){case"top":m=a.top-r.height-n,p=a.left+a.width/2-r.width/2;break;case"bottom":m=a.bottom+n,p=a.left+a.width/2-r.width/2;break;case"left":m=a.top+a.height/2-r.height/2,p=a.left-r.width-n;break;case"right":m=a.top+a.height/2-r.height/2,p=a.right+n}0>p?p=5:p+r.width>i&&(p=i-r.width-5),0>m?m=5:m+r.height>o&&(m=o-r.height-5);const g=m+window.scrollY,f=p+window.scrollX;S.current&&(S.current.style.position="absolute",S.current.style.top=g+"px",S.current.style.left=f+"px")}),[e,n]);return s((()=>{if(!N||!v.current||!S.current)return;_(),window.addEventListener("resize",_);let e=null;const t=t=>{e||(e=setTimeout((()=>{_(t),e=null}),100))};window.addEventListener("scroll",t,{passive:!0});const n=setInterval((()=>{_()}),500);return()=>{window.removeEventListener("resize",_),window.removeEventListener("scroll",t),e&&clearTimeout(e),clearInterval(n)}}),[N,_]),s((()=>{if(!N||!u)return;const e=e=>{S.current&&!S.current.contains(e.target)&&v.current&&!v.current.contains(e.target)&&T(!1)};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}}),[N,u,T]),s((()=>{if(!N||!h)return;const e=e=>{"Escape"===e.key&&T(!1)};return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}}),[N,h,T]),s((()=>()=>{null!==E.current&&window.clearTimeout(E.current)}),[]),{isOpen:N,setIsOpen:T,triggerRef:v,popoverRef:S,arrowRef:y,popoverId:A,currentPosition:f,updatePosition:_}})({position:a,trigger:l,offset:h,delay:u,defaultOpen:m,isOpen:p,onOpenChange:g,closeOnClickOutside:f,closeOnEscape:b,id:v});return t(ad.Provider,{value:{isOpen:E,setIsOpen:A,triggerRef:x,popoverId:_,triggerType:l},children:[S,"undefined"!=typeof document&&O(t("div",{ref:N,className:`c-popover c-popover--${C} ${E?qa.CLASSES.IS_OPEN:""} ${y?"c-popover--glass":""} ${c}`,style:d,id:_,role:"tooltip","aria-hidden":!E,children:[y?(()=>{const t={displacementScale:50,blurAmount:1,saturation:160,aberrationIntensity:.5,borderRadius:8,mode:"shader"},a=!0===y?t:{...t,...y};return e(Ri,{...a,style:d,children:e("div",{className:"c-popover__content",children:e("div",{className:"c-popover__content-inner",children:n})})})})():e("div",{className:"c-popover__content",children:e("div",{className:"c-popover__content-inner",children:n})}),e("div",{ref:T,className:"c-popover__arrow"})]}),document.body)]})};c((({children:e,trigger:t},n)=>{const{isOpen:r,setIsOpen:i,triggerRef:o,popoverId:s,triggerType:l}=a.useContext(ad),c=t||l,d=a.Children.only(e),u={ref:n||o,"aria-describedby":s,"aria-expanded":r};return"click"===c?u.onClick=()=>{i(!r)}:"hover"===c&&(u.onMouseEnter=()=>{i(!0)},u.onMouseLeave=()=>{i(!1)}),a.cloneElement(d,u)})).displayName="PopoverTrigger",rd.displayName="Popover";const id=(e,t,n)=>{if(!n)return t;const a=e.currentTarget.getBoundingClientRect(),r=a.left+a.width/2,i=e.clientX<r;return Math.max(.5,i?t-.5:t)},od=c((({value:n=0,defaultValue:a,maxValue:l=5,allowHalf:c=!1,readOnly:d=!1,size:u="md",variant:h,onChange:m,className:p="",style:g,label:f,id:b,useVanillaJS:v=!1,glass:S,...y},E)=>{const A=i(null),x=i(null),{currentValue:N,hoverValue:T,focusedIndex:_,setHoverValue:C,setFocused:L,handleKeyDown:I}=(({value:e=0,maxValue:t=5,allowHalf:n=!1,readOnly:a=!1,onChange:i})=>{const s=void 0!==i,[l,c]=r(e),[d,u]=r(null),[h,m]=r(null),p=s?e:l,g=o((e=>{a||u(e)}),[a]),f=o((()=>{a||u(null)}),[a]),b=o((e=>{a||(s||c(e),i?.(e))}),[a,i,s]),v=o(((e,r)=>{if(a)return;const o=n?.5:1;let l=p;switch(e.key){case"ArrowRight":case"ArrowUp":l=Math.min(t,p+o),e.preventDefault();break;case"ArrowLeft":case"ArrowDown":l=Math.max(0,p-o),e.preventDefault();break;case"Home":l=0,e.preventDefault();break;case"End":l=t,e.preventDefault();break;case" ":case"Enter":l=r,e.preventDefault();break;default:return}l!==p&&(s||c(l),i?.(l))}),[p,t,n,a,i,s]);return{currentValue:p,hoverValue:d,focusedIndex:h,handleMouseEnter:g,handleMouseLeave:f,handleClick:b,handleKeyDown:v,setFocused:m,setHoverValue:u,isControlled:s}})({value:void 0!==n?n:a,maxValue:l,allowHalf:c,readOnly:d,onChange:m}),w=Bc(A,E),O=o(((e,t)=>{d||C(id(e,t,!!c))}),[d,c,C]),R=o(((e,t)=>{!d&&c&&C(id(e,t,!!c))}),[d,c,C]),k=o((()=>{d||C(null)}),[d,C]),M=o(((e,t)=>{if(d)return;const n=id(e,t,!!c);m?.(n)}),[d,m,c]);s((()=>{if(!v||"undefined"==typeof window||!A.current)return;const e=x.current;return()=>{e&&e.destroy()}}),[v,n,a,l,c,d,u,h,m]),s((()=>{v&&x.current&&x.current.updateOptions({value:void 0!==n?n:a,maxValue:l,allowHalf:c,readOnly:d,size:u,variant:h})}),[v,n,a,l,c,d,u,h]);const D=["c-rating","sm"===u?sr.CLASSES.SMALL:"","lg"===u?sr.CLASSES.LARGE:"",h?"c-rating--"+h:"",p].filter(Boolean).join(" ");if(v)return e("div",{className:D,ref:w,id:b,...y});const P=null!==T?T:N,B=e("div",{className:D,ref:w,id:b,style:g,"data-readonly":d?"true":"false",onMouseLeave:k,role:d?"img":"radiogroup","aria-label":f||`Rating: ${N} out of ${l} stars`,...y,children:(()=>{const n=[],a=c?Math.floor(2*P)/2:Math.round(P),r=b||"rating-"+Math.random().toString(36).substring(2,9);for(let i=1;l>=i;i++){const o=c&&i-.5===a,s=["c-rating__star",i>Math.floor(a)?"":sr.CLASSES.FULL,o?sr.CLASSES.HALF:"",h?"c-rating__star--"+h:"",_===i?"c-rating__star--focused":""].filter(Boolean).join(" "),u=`${r}-star-${i}`;n.push(e("div",{id:u,className:s,"data-value":i,role:d?"presentation":"button",tabIndex:d?-1:0,"aria-label":`${i} ${1===i?"star":"stars"}`,"aria-checked":a>=i,"aria-setsize":l,"aria-posinset":i,onClick:e=>M(e,i),onMouseEnter:e=>O(e,i),onMouseMove:e=>R(e,i),onFocus:()=>L(i),onBlur:()=>L(null),onKeyDown:e=>I(e,i),children:t("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",focusable:"false",children:[e("path",{className:"c-rating__star-outline",d:"M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z",strokeWidth:"1"}),e("path",{className:"c-rating__star-full",d:"M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z"}),e("path",{className:"c-rating__star-half",d:"M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z",clipPath:`url(#half-star-clip-${r}-${i})`}),e("defs",{children:e("clipPath",{id:`half-star-clip-${r}-${i}`,children:e("rect",{x:"0",y:"0",width:"12",height:"24"})})})]})},i))}return n})()});if(S){const t={displacementScale:60,blurAmount:1,saturation:160,aberrationIntensity:.5,borderRadius:8,mode:"shader"},n=!0===S?t:{...t,...S};return e(Ri,{...n,children:B})}return B}));od.displayName="Rating";const sd=({productName:n,productImage:a,initialRating:o=0,maxRating:l=5,allowHalf:c=!0,ratingColor:d="warning",onSubmit:u,className:h="",style:m})=>{const[p,g]=r(o),[f,b]=r(""),[v,S]=r(!1),y=i(null),E=i(null);s((()=>{if("undefined"==typeof window||!y.current)return;const e=E.current;return()=>{e&&e.destroy()}}),[n,a,o,l,c,d,u]);const A=e=>{e.preventDefault(),u&&u(p,f),S(!0)},x=["c-product-review",h].filter(Boolean).join(" ");return v?e("div",{className:x,ref:y,style:m,children:t("div",{className:"c-product-review__success",children:[e("h3",{children:"Thank you for your review!"}),e("p",{children:"Your feedback helps us improve our products."}),e(Vo,{variant:"secondary",label:"Write another review",onClick:()=>{S(!1),g(0),b("")}})]})}):t("div",{className:x,ref:y,style:m,children:[t("div",{className:"c-product-review__header",children:[t("h3",{className:"c-product-review__title",children:["Review ",n]}),a&&e("div",{className:"c-product-review__image-wrapper",children:e("img",{src:a,alt:n,className:"c-product-review__image"})})]}),t("form",{className:"c-product-review__form",onSubmit:A,children:[t("div",{className:"c-product-review__rating-container",children:[e("label",{className:"c-product-review__label",children:"Your Rating"}),t("div",{className:"c-rating-container",children:[e(od,{value:p,onChange:g,allowHalf:c,maxValue:l,size:"lg",variant:d}),e("span",{className:"c-rating__value",children:p>0?p.toFixed(1):"Select a rating"})]})]}),t("div",{className:"c-product-review__comment-container",children:[e("label",{htmlFor:"review-comment",className:"c-product-review__label",children:"Your Review"}),e("textarea",{id:"review-comment",className:"c-product-review__textarea",value:f,onChange:e=>b(e.target.value),placeholder:"Share your experience with this product...",rows:5})]}),e("div",{className:"c-product-review__actions",children:e(Vo,{variant:"primary",label:"Submit Review",disabled:0===p,onClick:()=>A(new Event("click"))})})]})]})};sd.displayName="ProductReview";const ld=l(c((({value:t,variant:n="primary",size:a="md",className:r="",style:i,disabled:o=!1,"aria-label":s=Tr.DEFAULTS.ARIA_LABEL,glass:l},c)=>{const{progressValue:d,progressStyle:u,progressClasses:h}=(({value:e,variant:t="primary",size:n="md",className:a=""})=>{const r=Math.min(Math.max(e,0),100),i="c-progress";return{progressValue:r,progressStyle:{"--atomix-progress-percentage":r+"%"},progressClasses:[i,t?`${i}--${t}`:"",n?`${i}--${n}`:"",a||""].filter(Boolean).join(" ")}})({value:t,variant:n,size:a,className:r}),m=e("div",{ref:c,className:h+(l?" c-progress--glass":""),style:{...u,...i},role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":d,"aria-label":s,"aria-disabled":o,children:e("div",{className:Tr.CLASSES.BAR})});if(l){const t={displacementScale:30,blurAmount:.5,borderRadius:8,mode:"shader"},n=!0===l?t:{...t,...l};return e(Ri,{...n,children:m})}return m})));ld.displayName="Progress";const cd=({title:n,text:a,actions:r,imageSrc:i,imageAlt:o="Image",center:s=!1,breakout:l=!1,reverse:c=!1,contentColumns:d,backgroundImageSrc:u,showOverlay:h=!0,contentWidth:m,className:p="",style:g})=>{const{generateRiverClassNames:f,generateContentClass:b,generateVisualClass:v,hasBackgroundImage:S,hasForegroundImage:y,textContent:E}=Sl({title:n,text:a,imageSrc:i,imageAlt:o,center:s,breakout:l,reverse:c,backgroundImageSrc:u,showOverlay:h,contentWidth:m}),A={...m?{[nr.ATTRIBUTES.CONTENT_WIDTH]:m}:{},...g},x=()=>S?t("div",{className:nr.SELECTORS.BG.replace(".",""),children:[e("img",{src:u,alt:"Background",className:nr.SELECTORS.BG_IMAGE.replace(".","")}),h&&e("div",{className:nr.SELECTORS.OVERLAY.replace(".","")})]}):null,N=()=>y?e("div",{className:v(),children:e("div",{className:nr.SELECTORS.IMAGE_WRAPPER.replace(".",""),children:e("img",{src:i,alt:o,className:nr.SELECTORS.IMAGE.replace(".","")})})}):null;return d&&d.length>0?t("div",{className:f(p),style:A,children:[x(),e("div",{className:nr.SELECTORS.CONTAINER.replace(".","")+" o-container",children:t("div",{className:nr.SELECTORS.ROW.replace(".",""),children:[!c&&N(),t("div",{className:b(),children:[d.map(((t,n)=>e("div",{className:`${nr.SELECTORS.CONTENT_COL.replace(".","")} ${nr.SELECTORS["CONTENT_COL_"+t.type.toUpperCase()].replace(".","")}`,children:t.content},n))),r&&e("div",{className:nr.SELECTORS.ACTIONS.replace(".",""),children:r})]}),c&&N()]})})]}):t("div",{className:f(p),style:A,children:[x(),e("div",{className:nr.SELECTORS.CONTAINER.replace(".","")+" o-container",children:t("div",{className:nr.SELECTORS.ROW.replace(".",""),children:[!c&&N(),t("div",{className:b(),children:[n&&e("h2",{className:nr.SELECTORS.TITLE.replace(".",""),children:n}),E.map(((t,n)=>e("p",{className:nr.SELECTORS.TEXT.replace(".",""),children:t},n))),r&&e("div",{className:nr.SELECTORS.ACTIONS.replace(".",""),children:r})]}),c&&N()]})})]})};cd.displayName="River";const dd=({title:n,label:a,text:r,actions:o,alignment:l="left",backgroundImageSrc:c,showOverlay:d=!1,imageSrc:u,imageAlt:h="Section image",size:m="md",skeleton:p=!1,className:g="",style:f})=>{const b=i(null),v=i(null);s((()=>{if("undefined"==typeof window||!b.current)return;const e=v.current;return()=>{e&&e.destroy()}}),[l,c,d,m,p]);const S=["c-sectionintro","center"===l?tr.CLASSES.CENTER:"","sm"===m?tr.CLASSES.SMALL:"","lg"===m?tr.CLASSES.LARGE:"",c?"c-sectionintro--has-bg":"",g].filter(Boolean).join(" ");return p?e("div",{className:S,ref:b,style:f,children:t("div",{className:"c-sectionintro__container",children:[a&&e("div",{className:"c-sectionintro__label",children:e("span",{className:"c-skeleton u-w-25"})}),e("div",{className:"c-sectionintro__title",children:e("span",{className:"c-skeleton"})}),r&&t("div",{className:"c-sectionintro__text",children:[e("span",{className:"c-skeleton"}),e("span",{className:"c-skeleton"}),e("span",{className:"c-skeleton u-w-75"})]}),o&&e("div",{className:"c-sectionintro__actions",children:e("span",{className:"c-skeleton u-w-25"})}),u&&e("div",{className:"c-sectionintro__image-wrapper",children:e("div",{className:"c-sectionintro__image c-skeleton"})})]})}):t("div",{className:S,ref:b,style:f,children:[c?t("div",{className:"c-sectionintro__bg",children:[e("img",{src:c,alt:"Background",className:"c-sectionintro__bg-image"}),d&&e("div",{className:"c-sectionintro__overlay"})]}):null,a&&e("div",{className:"c-sectionintro__label",children:a}),e("h2",{className:"c-sectionintro__title",children:n}),r&&e("div",{className:"c-sectionintro__text",children:r}),o&&e("div",{className:"c-sectionintro__actions",children:o}),u&&e("div",{className:"c-sectionintro__image-wrapper",children:e("img",{src:u,alt:h,className:"c-sectionintro__image"})})]})};dd.displayName="SectionIntro";const ud=c(((n,a)=>{const{slides:l=[],height:c=300,width:d="100%",slidesToShow:h=1,spaceBetween:m=0,loop:p=!1,initialSlide:g=0,direction:f="horizontal",speed:b=300,allowTouchMove:v=!0,threshold:S=50,grabCursor:y=!0,autoplay:E,navigation:A,pagination:x,className:N,style:T,onSlideChange:_,...C}=n,L=Array.isArray(l)?l:[],I=function(e){const{slides:t,slidesToShow:n=1,spaceBetween:a=0,loop:l=!1,initialSlide:c=0,direction:d="horizontal",speed:h=300,allowTouchMove:m=!0,threshold:p=50,autoplay:g,onSlideChange:f}=e,b=u((()=>Array.isArray(t)?t:[]),[t]),v=i(null),S=i(null),y=i(!1),E=i(null),[A,x]=r(!1),N=i({isTransitioning:!1,loop:l,slides:b,slidesToShow:n,speed:h,onSlideChange:f}),[T,_]=r(c),[C,L]=r(0),[I,w]=r(!1),[O,R]=r(0),[k,M]=r(!1),[D,P]=r(0),[B,z]=r(0),U=u((()=>0===O?0:(O-a*(n-1))/n),[O,a,n]),F=u((()=>l&&0!==b.length?[...b.map(((e,t)=>({...e,id:"set1-"+(e.id||t)}))),...b.map(((e,t)=>({...e,id:"set2-"+(e.id||t)}))),...b.map(((e,t)=>({...e,id:"set3-"+(e.id||t)})))]:b),[b,l]),G=b.length,V=u((()=>0===U?0:-C*U+B),[U,C,B]);s((()=>{N.current={isTransitioning:I,loop:l,slides:b,slidesToShow:n,speed:h,onSlideChange:f}}),[I,l,b,n,h,f]),s((()=>{if(!g)return E.current&&(clearInterval(E.current),E.current=null),void x(!1);const e="boolean"==typeof g?{delay:3e3}:g,{delay:t=3e3,pauseOnMouseEnter:n=!1,disableOnInteraction:a=!1,reverseDirection:r=!1}=e;E.current&&clearInterval(E.current),E.current=setInterval((()=>{const{isTransitioning:e,loop:t,slides:n,slidesToShow:i,speed:o,onSlideChange:s}=N.current;_((l=>{if(e)return l;let c;if(a&&E.current&&(clearInterval(E.current),E.current=null,x(!1)),c=t?(l+1)%n.length:Math.min(l+1,n.length-i),r){const e=t?0===l?n.length-1:l-1:Math.max(l-1,0);return L(t?n.length+e:e),w(!0),z(0),setTimeout((()=>{w(!1),s?.(e)}),o),e}return L(t?n.length+c:c),w(!0),z(0),setTimeout((()=>{w(!1),s?.(c),t&&c>=2*n.length&&(y.current=!0,L(n.length+c),setTimeout((()=>{y.current=!1}),0))}),o),c}))}),t),x(!0);let i=null;const o=()=>{E.current&&(clearInterval(E.current),E.current=null,x(!1))},s=()=>{E.current&&clearInterval(E.current),E.current=setInterval((()=>{const{isTransitioning:e,loop:t,slides:n,slidesToShow:a,speed:r,onSlideChange:i}=N.current;_((o=>{if(e)return o;let s;return s=t?(o+1)%n.length:Math.min(o+1,n.length-a),L(t?n.length+s:s),w(!0),z(0),setTimeout((()=>{w(!1),i?.(s),t&&(s<2*n.length||(y.current=!0,L(n.length+s),setTimeout((()=>{y.current=!1}),0)))}),r),s}))}),t),x(!0)};return n&&v.current&&(i=v.current,i.addEventListener("mouseenter",o),i.addEventListener("mouseleave",s)),()=>{E.current&&(clearInterval(E.current),E.current=null),i&&(i.removeEventListener("mouseenter",o),i.removeEventListener("mouseleave",s)),x(!1)}}),[g,y]),s((()=>{L(l?b.length+c:c)}),[l,b.length,c]),s((()=>{const e=()=>{if(v.current){const e="horizontal"===d?v.current.offsetWidth:v.current.offsetHeight;R(e)}};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)}),[d]);const H=o((()=>{if(!I)if(g&&"object"==typeof g&&g.disableOnInteraction&&E.current&&(clearInterval(E.current),E.current=null,x(!1)),l){const e=(T+1)%b.length,t=C+1;_(e),L(t),w(!0),z(0),setTimeout((()=>{w(!1),f?.(e),t<2*b.length||(y.current=!0,L(b.length+e),setTimeout((()=>{y.current=!1}),0))}),h)}else{const e=Math.min(T+1,b.length-n);_(e),L(e),w(!0),z(0),setTimeout((()=>{w(!1),f?.(e)}),h)}}),[T,C,b.length,n,l,I,h,f,g]),$=o((()=>{if(!I)if(g&&"object"==typeof g&&g.disableOnInteraction&&E.current&&(clearInterval(E.current),E.current=null,x(!1)),l){const e=0===T?b.length-1:T-1,t=C-1;_(e),L(t),w(!0),z(0),setTimeout((()=>{w(!1),f?.(e),t<b.length&&(y.current=!0,L(b.length+e),setTimeout((()=>{y.current=!1}),0))}),h)}else{const e=Math.max(T-1,0);_(e),L(e),w(!0),z(0),setTimeout((()=>{w(!1),f?.(e)}),h)}}),[T,C,b.length,l,I,h,f,g]),Y=o((e=>{I||e===T||(g&&"object"==typeof g&&g.disableOnInteraction&&E.current&&(clearInterval(E.current),E.current=null,x(!1)),w(!0),z(0),_(e),L(l?b.length+e:e),setTimeout((()=>{w(!1),f?.(e)}),h))}),[T,I,h,f,l,b.length,g]),K=o((e=>{if(!m)return;g&&"object"==typeof g&&g.disableOnInteraction&&E.current&&(clearInterval(E.current),E.current=null,x(!1));const t="horizontal"===d?"touches"in e?e.touches[0]?.clientX||0:e.clientX:"touches"in e?e.touches[0]?.clientY||0:e.clientY;P(t),M(!0),z(0)}),[m,d,g]),W=o((e=>{if(!k||!m)return;const t="horizontal"===d?"touches"in e?e.touches[0]?.clientX||0:e.clientX:"touches"in e?e.touches[0]?.clientY||0:e.clientY,n=D-t;Math.abs(n)>10&&(e.preventDefault(),z(.5*-n))}),[k,D,m,d]),j=o((e=>{if(!k||!m)return;const t="horizontal"===d?"changedTouches"in e?e.changedTouches[0]?.clientX||0:e.clientX:"changedTouches"in e?e.changedTouches[0]?.clientY||0:e.clientY,n=D-t;M(!1),z(0),Math.abs(n)>p&&(n>0?H():$())}),[k,D,p,H,$,m,d]),q=l||T<b.length-n,Q=l||T>0;return{activeIndex:T,realIndex:T,previousIndex:T,isBeginning:!l&&0===T,isEnd:!l&&T>=b.length-n,progress:b.length>0?T/(b.length-1):0,autoplayRunning:A,transitioning:I,touching:k,translate:V,slidesPerView:n,slidesCount:b.length,isLocked:!1,destroyed:!1,size:O,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},allowSlideNext:q,allowSlidePrev:Q,allowTouchMove:m,animating:I,enabled:!0,initialized:!0,slideNext:H,slidePrev:$,goToSlide:Y,canSlideNext:q,canSlidePrev:Q,containerRef:v,wrapperRef:S,handleTouchStart:K,handleTouchMove:W,handleTouchEnd:j,allSlides:F,translateValue:V,slideWidth:U,currentSlidesToShow:n,loopedSlides:G,repositioningRef:y}}({slides:L,slidesToShow:h,spaceBetween:m,loop:p,initialSlide:g,direction:f,speed:b,allowTouchMove:v,threshold:S,autoplay:E,onSlideChange:_}),{containerRef:w,wrapperRef:O,allSlides:R,realIndex:k,translateValue:M,slideWidth:D,transitioning:P,touching:B,slideNext:z,slidePrev:U,goToSlide:F,canSlideNext:G,canSlidePrev:V,handleTouchStart:H,handleTouchMove:$,handleTouchEnd:Y,loopedSlides:K}=I,W=u((()=>0===D?0:R.length*(D+m)-m),[R.length,D,m]);if(0===L.length)return e("div",{className:"c-slider c-slider--empty",style:{height:c,width:d,...T},children:e("div",{className:"c-slider__empty-message",children:"No slides available"})});const j=["c-slider","vertical"===f&&"c-slider--vertical",y&&"c-slider--grab-cursor",B&&"c-slider--grabbing",p&&"c-slider--loop",N].filter(Boolean).join(" ");return t("div",{ref:a||w,className:j,style:{height:"number"==typeof c?c+"px":c,width:"number"==typeof d?d+"px":d,overflow:"hidden",position:"relative",cursor:y&&!B?"grab":B?"grabbing":"default",...T},onTouchStart:H,onTouchMove:$,onTouchEnd:Y,onMouseDown:H,onMouseMove:$,onMouseUp:Y,onMouseLeave:Y,onKeyDown:e=>{switch(e.key){case"ArrowLeft":"horizontal"===f&&(e.preventDefault(),U());break;case"ArrowRight":"horizontal"===f&&(e.preventDefault(),z());break;case"ArrowUp":"vertical"===f&&(e.preventDefault(),U());break;case"ArrowDown":"vertical"===f&&(e.preventDefault(),z())}},role:"region","aria-roledescription":"carousel","aria-label":C["aria-label"]||"Image slider",tabIndex:0,children:[e("div",{ref:O,className:"c-slider__wrapper","aria-live":E?"off":"polite",style:{display:"flex",flexDirection:"vertical"===f?"column":"row",width:"horizontal"===f?W+"px":"100%",height:"vertical"===f?W+"px":"100%",transform:"horizontal"===f?`translateX(${M}px)`:`translateY(${M}px)`,transition:P&&!I.repositioningRef?.current?`transform ${b}ms ease-out`:"none",willChange:"transform"},children:R.map(((n,a)=>t("div",{className:["c-slider__slide",(p?a%L.length===k:a===k)&&"c-slider__slide--active",n.isClone&&"c-slider__slide--duplicate"].filter(Boolean).join(" "),style:{width:"vertical"===f?"100%":D+"px",height:"vertical"===f?D+"px":"100%",flexShrink:0,marginRight:"horizontal"===f&&a<R.length-1?m+"px":0,marginBottom:"vertical"===f&&a<R.length-1?m+"px":0},children:[n.video?e("video",{src:n.video.src,poster:n.video.poster,autoPlay:n.video.autoplay,loop:n.video.loop,muted:n.video.muted,style:{width:"100%",height:"100%",objectFit:"cover"}}):n.backgroundImage?e("div",{style:{width:"100%",height:"100%",backgroundImage:`url(${n.backgroundImage})`,backgroundSize:"cover",backgroundPosition:"center"},children:n.content}):n.image?e("img",{src:n.image,alt:n.alt||n.title||"",style:{width:"100%",height:"100%",objectFit:"cover"}}):n.content,(n.title||n.description)&&t("div",{className:"c-slider__slide-content",children:[n.title&&e("h3",{children:n.title}),n.description&&e("p",{children:n.description})]})]},n.id||a)))}),A&&t("div",{className:"c-slider__navigation",children:[e("button",{type:"button",className:"c-slider__navigation-prev",onClick:U,disabled:!V,"aria-label":"Previous slide"}),e("button",{type:"button",className:"c-slider__navigation-next",onClick:z,disabled:!G,"aria-label":"Next slide"})]}),x&&e("div",{className:"c-slider__pagination",children:L.map(((t,n)=>e("button",{type:"button",className:"c-slider__pagination-bullet "+(n===k?"c-slider__pagination-bullet--active":""),onClick:()=>F(n),"aria-label":"Go to slide "+(n+1)},n)))})]})}));ud.displayName="Slider";const hd=c((({children:n,className:a="",number:r,title:i,active:o,completed:s,index:l,...c},d)=>{const u=["c-steps__item",o?Za.CLASSES.ACTIVE:"",s?Za.CLASSES.COMPLETED:"",a].filter(Boolean).join(" ");return t("div",{ref:d,className:u,"aria-current":o?"step":void 0,"data-index":l,...c,children:[e("div",{className:"c-steps__line"}),t("div",{className:"c-steps__content",children:[null!=r&&e("div",{className:"c-steps__number",children:r}),i&&e("div",{className:"c-steps__text",children:i}),n&&e("div",{className:"c-steps__custom-content",children:n})]})]})}));hd.displayName="StepsItem";const md=({items:t,activeIndex:n=0,vertical:a=!1,onStepChange:i,className:o="",style:l,glass:c,children:d})=>{const[u,g]=r(n);let f;s((()=>{u!==n&&g(n)}),[n,u]),f=t&&t.length>0?t.map(((t,n)=>e(hd,{index:n,number:t.number,title:t.text,active:u>=n,completed:u>n,children:t.content},"step-"+n))):h.map(d,((e,t)=>{if(m(e)){const n=e.props,a=n.active??u>=t,r=n.completed??u>t,i=n.number??t+1;return p(e,{index:t,active:a,completed:r,number:i})}return e}));const b=e("div",{className:`c-steps ${a?Za.CLASSES.VERTICAL:""} ${o}`,style:l,role:"navigation","aria-label":"Steps",children:f});if(c){const t={displacementScale:60,blurAmount:1,saturation:160,aberrationIntensity:.5,borderRadius:8,mode:"shader"},n=!0===c?t:{...t,...c};return e(Ri,{...n,children:b})}return b};md.displayName="Steps",md.Item=hd,md.Step=hd;const pd=g({currentTab:0,handleTabClick:()=>{},handleKeyDown:()=>{},totalTabs:0}),gd=c((({children:t,className:n="",onKeyDown:r,...i},o)=>{const{handleKeyDown:s}=f(pd),l=a.Children.count(t);return e("ul",{ref:o,className:("c-tabs__nav "+n).trim(),role:"tablist",onKeyDown:e=>{s(e,l),r?.(e)},...i,children:a.Children.map(t,((e,t)=>a.isValidElement(e)?a.cloneElement(e,{index:t}):e))})}));gd.displayName="TabsList";const fd=c((({children:t,className:n="",index:a,onClick:r,...i},o)=>{const{currentTab:s,handleTabClick:l}=f(pd),c=void 0!==a&&s===a;return e("li",{className:"c-tabs__nav-item",role:"presentation",children:e("button",{ref:o,id:"tab-nav-"+a,className:`c-tabs__nav-btn ${c?Xa.CLASSES.ACTIVE:""} ${n}`.trim(),onClick:e=>{void 0!==a&&l(a),r?.(e)},"data-tabindex":a,role:"tab","aria-selected":c,"aria-controls":"tab-panel-"+a,tabIndex:c?0:-1,type:"button",...i,children:t})})}));fd.displayName="TabsTrigger";const bd=c((({children:t,className:n="",...r},i)=>e("div",{ref:i,className:("c-tabs__panels "+n).trim(),...r,children:a.Children.map(t,((e,t)=>a.isValidElement(e)?a.cloneElement(e,{index:t}):e))})));bd.displayName="TabsPanels";const vd=c((({children:t,className:n="",index:a,style:r,...i},o)=>{const{currentTab:s}=f(pd),l=void 0!==a&&s===a;return e("div",{ref:o,className:`c-tabs__panel ${l?Xa.CLASSES.ACTIVE:""} ${n}`.trim(),"data-tabindex":a,id:"tab-panel-"+a,role:"tabpanel","aria-labelledby":"tab-nav-"+a,style:{height:l?"auto":"0px",opacity:l?1:0,overflow:"hidden",transition:"height 0.3s ease, opacity 0.3s ease",...r},...i,children:e("div",{className:"c-tabs__panel-body",children:t})})}));vd.displayName="TabsPanel";const Sd=l((({items:i,activeIndex:o=Xa.DEFAULTS.ACTIVE_INDEX,onTabChange:s,className:l="",style:c,glass:d,children:u})=>{const[h,m]=r(o),p=e=>{m(e),s&&s(e)},g=(e,t)=>{let n=h;switch(e.key){case"ArrowRight":n=(h+1)%t;break;case"ArrowLeft":n=(h-1+t)%t;break;case"Home":n=0;break;case"End":n=t-1;break;default:return}e.preventDefault(),p(n),setTimeout((()=>{const e=document.getElementById("tab-nav-"+n);e&&e.focus()}),0)};let f;if(i&&i.length>0)f=t(n,{children:[e("ul",{className:"c-tabs__nav",role:"tablist",onKeyDown:e=>g(e,i.length),children:i.map(((t,n)=>e("li",{className:"c-tabs__nav-item",role:"presentation",children:e("button",{id:"tab-nav-"+n,className:"c-tabs__nav-btn "+(n===h?Xa.CLASSES.ACTIVE:""),onClick:()=>p(n),"data-tabindex":n,role:"tab","aria-selected":n===h,"aria-controls":"tab-panel-"+n,tabIndex:n===h?0:-1,type:"button",children:t.label})},"tab-nav-"+n)))}),e("div",{className:"c-tabs__panels",children:i.map(((t,n)=>e("div",{className:"c-tabs__panel "+(n===h?Xa.CLASSES.ACTIVE:""),"data-tabindex":n,id:"tab-panel-"+n,role:"tabpanel","aria-labelledby":"tab-nav-"+n,style:{height:n===h?"auto":"0px",opacity:n===h?1:0,overflow:"hidden",transition:"height 0.3s ease, opacity 0.3s ease"},children:e("div",{className:"c-tabs__panel-body",children:t.content})},"tab-panel-"+n)))})]});else{const t=a.Children.toArray(u).find((e=>a.isValidElement(e)&&"TabsList"===e.type.displayName)),n=t?a.Children.count(t.props.children):0;f=e(pd.Provider,{value:{currentTab:h,handleTabClick:p,handleKeyDown:g,totalTabs:n},children:u})}const b=e("div",{className:"c-tabs js-atomix-tab "+l,style:c,children:f});if(d){const t={displacementScale:60,blurAmount:1,saturation:160,aberrationIntensity:.5,borderRadius:8,mode:"shader"},n=!0===d?t:{...t,...d};return e(Ri,{...n,children:b})}return b}));Sd.displayName="Tabs",Sd.List=gd,Sd.Trigger=fd,Sd.Panels=bd,Sd.Panel=vd;const yd=({quote:n,author:a,size:r="",skeleton:o=!1,className:l="",style:c})=>{const d=i(null),u=i(null);s((()=>{if("undefined"==typeof window||!d.current)return;const e=u.current;return()=>{e&&e.destroy()}}),[r,o]);const h=["c-testimonial","sm"===r?Ja.CLASSES.SMALL:"","lg"===r?Ja.CLASSES.LARGE:"",l].filter(Boolean).join(" ");return t("div",o?{className:h,ref:d,style:c,children:[t("blockquote",{className:"c-testimonial__quote",children:[e("span",{className:"c-skeleton"}),e("span",{className:"c-skeleton"}),e("span",{className:"c-skeleton u-w-75"}),e("span",{className:"c-skeleton u-w-25"})]}),t("div",{className:"c-testimonial__author",children:[e("span",{className:"c-testimonial__author-avatar c-avatar c-avatar--xxl c-avatar--circle c-skeleton"}),t("div",{className:"c-testimonial__info u-w-75",children:[e("p",{className:"c-testimonial__author-name",children:e("span",{className:"c-skeleton u-w-25"})}),e("p",{className:"c-testimonial__author-role",children:e("span",{className:"c-skeleton u-w-25"})})]})]})]}:{className:h,ref:d,style:c,children:[e("blockquote",{className:"c-testimonial__quote",children:n}),a&&t("div",{className:"c-testimonial__author",children:[a.avatarSrc&&e("img",{src:a.avatarSrc,alt:a.avatarAlt||a.name+"'s avatar",className:"c-testimonial__author-avatar c-avatar c-avatar--xxl c-avatar--circle"}),t("div",{className:"c-testimonial__info",children:[e("p",{className:"c-testimonial__author-name",children:a.name}),e("p",{className:"c-testimonial__author-role",children:a.role})]})]})]})};yd.displayName="Testimonial";const Ed=({items:n=[],title:a="Todo List",onAddTodo:i,onToggleTodo:o,onDeleteTodo:l,size:c="md",placeholder:d="Add a new todo",showCompleted:u=!0,className:h="",style:m,disabled:p=!1})=>{const{inputText:g,setInputText:f,addTodo:b,generateTodoClasses:v,generateItemClasses:S}=Ql({items:n,title:a,size:c,placeholder:d,showCompleted:u,disabled:p}),[y,E]=r(n);s((()=>{E(n)}),[n]);const A=u?y:y.filter((e=>!e.completed)),x=v({size:c,className:h,disabled:p});return t("div",{className:x,style:m,children:[a&&e("h2",{className:"c-todo__title",children:a}),e("form",{className:"c-todo__form",onSubmit:e=>{if(e.preventDefault(),p||!g.trim())return;const t={id:Vl(),text:g.trim(),completed:!1};E((e=>[...e,t])),i&&i(g),f("")},children:t("div",{className:"c-todo__form-group",children:[e("input",{type:"text",className:"c-todo__input c-input",placeholder:d,value:g,onChange:e=>f(e.target.value),disabled:p,"aria-label":"Add a new todo"}),e("button",{type:"submit",className:"c-todo__add-btn c-btn c-btn--primary",disabled:p||!g.trim(),"aria-label":"Add todo",children:e(no,{name:"Plus",size:"sm"})})]})}),e("ul",{className:"c-todo__list",children:0===A.length?e("li",{className:"c-todo__empty",children:"No items to display"}):A.map((n=>e("li",{className:S(n),children:t("div",{className:"c-todo__item-content",children:[t("label",{className:"c-todo__checkbox-label",children:[e("input",{type:"checkbox",className:"c-todo__checkbox c-checkbox",checked:n.completed,onChange:()=>(e=>{p||(E((t=>t.map((t=>t.id===e?{...t,completed:!t.completed}:t)))),o&&o(e))})(n.id),disabled:p,"aria-label":`Mark "${n.text}" as ${n.completed?"incomplete":"complete"}`}),e("span",{className:"c-todo__item-text",children:n.text})]}),e("button",{type:"button",className:"c-todo__delete-btn c-btn c-btn--error c-btn--sm",onClick:()=>(e=>{p||(E((t=>t.filter((t=>t.id!==e)))),l&&l(e))})(n.id),disabled:p,"aria-label":`Delete "${n.text}"`,children:e(no,{name:"Trash",size:"sm"})})]})},n.id)))})]})};Ed.displayName="Todo";const Ad=({checked:t,defaultChecked:n=!1,onChange:a,disabled:i=!1,className:s="",style:l,glass:c,"aria-label":d,"aria-describedby":u})=>{const h=void 0!==t,[m,p]=r(n),g=h?t:m,f=o((()=>{if(i)return;const e=!g;h||p(e),a?.(e)}),[i,g,h,a]),b=["c-toggle",g&&Qa.CLASSES.IS_ON,i&&"is-disabled",c&&"c-toggle--glass",s].filter(Boolean).join(" "),v=e("div",{className:b,style:l,onClick:f,onKeyDown:e=>{i||"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),f())},role:"switch","aria-checked":g,tabIndex:i?-1:0,"aria-disabled":i,"aria-label":d,"aria-describedby":u,children:e("div",{className:"c-toggle__switch"})});if(c){const t={displacementScale:60,blurAmount:1,saturation:160,aberrationIntensity:.5,borderRadius:8,mode:"shader"},n=!0===c?t:{...t,...c};return e(Ri,{...n,children:v})}return v};Ad.displayName="Toggle";const xd=l((({content:n,children:a,position:l=ja.DEFAULTS.POSITION,trigger:c=ja.DEFAULTS.TRIGGER,className:d="",style:u,delay:h=ja.DEFAULTS.DELAY,offset:m=ja.DEFAULTS.OFFSET,glass:p})=>{const{isVisible:g,isPositioned:f,tooltipId:b,triggerRef:v,tooltipRef:S,tooltipStyle:y,arrowStyle:E,triggerProps:A,wrapperProps:x}=(({position:e="top",trigger:t="hover",offset:n=10,delay:a=200})=>{const[l,c]=r(!1),[d,u]=r(!1),[h,m]=r({}),[p,g]=r({}),f=i(null),b=i(null),v=i(null),S="tooltip-"+Math.random().toString(36).slice(2,11),y=o((()=>{f.current&&clearTimeout(f.current),a>0?f.current=setTimeout((()=>{c(!0)}),a):c(!0)}),[a]),E=o((()=>{f.current&&clearTimeout(f.current),c(!1),u(!1)}),[]),A=o((()=>{l?E():y()}),[l,y,E]),x=o((()=>{if(!b.current||!v.current)return;const t=b.current.getBoundingClientRect(),a=v.current.getBoundingClientRect(),r=b.current.parentElement;if(!r)return;const i=r.getBoundingClientRect(),o=(e=>{const t=getComputedStyle(e).getPropertyValue("--atomix-tooltip-arrow-size").trim();if(!t)return 8;const n=t.match(/([\d.]+)rem/);if(n?.[1])return 16*parseFloat(n[1]);const a=t.match(/([\d.]+)px/);return a?.[1]?parseFloat(a[1]):8})(v.current),s=((e,t,n,a,r,i)=>{const o=n.width||0,s=n.height||0,l=t.width,c=t.height,d={"--atomix-tooltip-offset":r+"px"},u={};switch(e){case"top":d.top=t.top-a.top-s-r+"px",d.left=t.left-a.left+l/2-o/2+"px",u.bottom=i/-2+"px",u.left=o/2-i/2+"px";break;case"bottom":d.top=t.bottom-a.top+r+"px",d.left=t.left-a.left+l/2-o/2+"px",u.top=i/-2+"px",u.left=o/2-i/2+"px";break;case"left":d.right=a.right-t.left+r+"px",d.top=t.top-a.top+c/2-s/2+"px",u.right=i/-2+"px",u.top=s/2-i/2+"px";break;case"right":d.left=t.right-a.left+r+"px",d.top=t.top-a.top+c/2-s/2+"px",u.left=i/-2+"px",u.top=s/2-i/2+"px";break;case"top-left":d.bottom=a.bottom-t.top+r+"px",d.left=t.left-a.left+"px",u.bottom=i/-2+"px",u.left=i+"px";break;case"top-right":d.bottom=a.bottom-t.top+r+"px",d.right=a.right-t.right+"px",u.bottom=i/-2+"px",u.right=i+"px";break;case"bottom-left":d.top=t.bottom-a.top+r+"px",d.left=t.left-a.left+"px",u.top=i/-2+"px",u.left=i+"px";break;case"bottom-right":d.top=t.bottom-a.top+r+"px",d.right=a.right-t.right+"px",u.top=i/-2+"px",u.right=i+"px"}return{tooltip:d,arrow:u}})(e,t,a,i,n,o);m(s.tooltip),g(s.arrow),u(!0)}),[e,n]);s((()=>{if(!l||!b.current||!v.current)return;const e=requestAnimationFrame((()=>{x()})),t=()=>{x()};return window.addEventListener("resize",t),window.addEventListener("scroll",t,!0),()=>{cancelAnimationFrame(e),window.removeEventListener("resize",t),window.removeEventListener("scroll",t,!0)}}),[l,x]),s((()=>{if(!l)return;const e=e=>{"Escape"===e.key&&E()};return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}}),[l,E]);const N={"aria-describedby":l?S:void 0},T={};return"hover"===t?(T.onMouseEnter=y,T.onMouseLeave=E,N.onFocus=y,N.onBlur=E):"click"===t&&(N.onClick=A),{isVisible:l,isPositioned:d,tooltipId:S,triggerRef:b,tooltipRef:v,tooltipStyle:h,arrowStyle:p,showTooltip:y,hideTooltip:E,toggleTooltip:A,triggerProps:N,wrapperProps:T}})({position:l,trigger:c,offset:m,delay:h});return t("div",{className:"u-position-relative u-inline-block",style:u,...x,children:[e("div",{ref:v,className:`${ja.SELECTORS.TRIGGER.substring(1)}${d?" "+d:""}`,...A,children:a}),g&&e("div",{ref:S,id:b,role:"tooltip",className:`c-tooltip ${ja.SELECTORS.TOOLTIP.substring(1)} ${{top:"c-tooltip--top",bottom:"c-tooltip--bottom",left:"c-tooltip--left",right:"c-tooltip--right","top-left":"c-tooltip--top-left","top-right":"c-tooltip--top-right","bottom-left":"c-tooltip--bottom-left","bottom-right":"c-tooltip--bottom-right"}[l]||"c-tooltip--top"} ${p?"c-tooltip--glass":""}`,"data-tooltip-position":l,"data-tooltip-trigger":c,style:{...y,...f?{}:{left:"-9999px",top:"-9999px"}},children:(()=>{const a=t("div",{className:`c-tooltip__content ${ja.SELECTORS.CONTENT.substring(1)} ${g&&f&&"is-active"}`,children:[e("span",{className:ja.SELECTORS.ARROW.substring(1),style:E}),n]});if(p){const t={displacementScale:100,blurAmount:3},n=!0===p?t:{...t,...p};return e(Ri,{...n,children:a})}return a})()})]})}));xd.displayName="Tooltip";const Nd=({disabled:n=!1,size:a="md",maxSizeInMB:l=5,acceptedFileTypes:c=["application/pdf","application/vnd.ms-excel","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","image/jpeg","image/png"],multiple:d=!1,title:u="Drag and Drop files here",supportedFilesText:h="Files supported: PDF, XSLS, JPEG, PNG, Scanner",buttonText:m="Choose File",helperText:p=`Maximum size: ${l}MB`,icon:g=e("i",{className:"icon-lux-cloud-arrow-up-fill"}),uploadEndpoint:f,uploadMethod:b="POST",uploadHeaders:v={},uploadData:S={},chunkSizeInMB:y=0,maxRetries:E=3,retryDelay:A=1e3,autoUpload:x=!0,onFileSelect:N,onFileUpload:T,onFileUploadComplete:_,onFileUploadError:C,onUploadCancel:L,className:I="",style:w})=>{const O=i(null),R=i(null),k=i(null),[M,D]=r("idle"),[P,B]=r(!1),[z,U]=r(null),[F,G]=r(0),[V,H]=r(null),[$,Y]=r(null),[K,W]=r(null),j=i(0),q=()=>{O.current&&!n&&O.current.click()},Q=e=>{if(!e.length)return;const t=(d?e:[e[0]]).filter((e=>void 0!==e&&X(e)));if(t.length&&N&&N(t),t.length){const e=t[0];e&&(U(e),x&&ee(e))}},X=e=>{const t=1024*l*1024;return e.size>t?(D("error"),Y(`File too large. Maximum size is ${l}MB.`),!1):!(c?.length&&!c.some((t=>{if(t.endsWith("/*")){const n=t.split("/")[0];return e.type.startsWith(n+"/")}return e.type===t}))&&(D("error"),Y("File type not supported."),1))},Z=o(((e,t)=>{if(0>=e||0>=t)return"";const n=t/e*100-t;if(0>=n)return"Almost done...";const a=Math.ceil(n/1e3);return 60>a?`${a} second${1!==a?"s":""} left`:`${Math.floor(a/60)}m ${a%60}s left`}),[]),J=o(((e,t,n,a,r)=>new Promise(((i,o)=>{const s=t*a,l=Math.min(s+a,e.size),c=e.slice(s,l),d=new FormData;d.append("file",c,e.name),d.append("chunkIndex",t.toString()),d.append("totalChunks",n.toString()),d.append("fileName",e.name),d.append("fileSize",e.size.toString()),Object.entries(S).forEach((([e,t])=>{d.append(e,t)}));const u=new XMLHttpRequest;r[t]=u,u.upload.addEventListener("progress",(n=>{if(n.lengthComputable&&R.current){n.loaded,n.total;const r=(t*a+n.loaded)/e.size*100;G(Math.min(r,100));const i=k.current?Date.now()-k.current:0,o=Z(r,i);H(o),T&&T(e,r)}})),u.addEventListener("load",(()=>{if(u.status>=200&&300>u.status)try{const e=u.responseText?JSON.parse(u.responseText):{};i(e)}catch{i({})}else o(Error(`Upload failed with status ${u.status}: ${u.statusText}`))})),u.addEventListener("error",(()=>{o(Error("Network error occurred during upload"))})),u.addEventListener("abort",(()=>{o(Error("Upload was cancelled"))})),u.open(b,f),Object.entries(v).forEach((([e,t])=>{u.setRequestHeader(e,t)})),u.send(d)}))),[f,b,v,S,T,Z]),ee=o((async(e,t=0)=>{if(f){D("loading"),G(0),Y(null),W(null),k.current=Date.now();try{const a=y>0?1024*y*1024:e.size,r=y>0?Math.ceil(e.size/a):1;if(r>1){const i=[];R.current={xhr:null,abortController:new AbortController,file:e,retryCount:t,chunkXhrs:i};try{const t=[];for(let n=0;r>n;n++){if(!R.current)throw Error("Upload was cancelled");const o=await J(e,n,r,a,i);t.push(o)}D("success"),W("Upload successful"),G(100),H(null),k.current=null,_&&_(e,t),R.current=null}catch(n){throw i.forEach((e=>{e&&e.readyState!==XMLHttpRequest.DONE&&e.abort()})),n}}else await new Promise(((n,a)=>{const r=new FormData;r.append("file",e),Object.entries(S).forEach((([e,t])=>{r.append(e,t)}));const i=new XMLHttpRequest,o=new AbortController;i.upload.addEventListener("progress",(t=>{if(t.lengthComputable){const n=t.loaded/t.total*100;G(n);const a=k.current?Date.now()-k.current:0,r=Z(n,a);H(r),T&&T(e,n)}})),i.addEventListener("load",(()=>{if(i.status>=200&&300>i.status){D("success"),W("Upload successful"),G(100),H(null),k.current=null;try{const t=i.responseText?JSON.parse(i.responseText):{};_&&_(e,t)}catch{_&&_(e)}R.current=null,n()}else a(Error(`Upload failed with status ${i.status}: ${i.statusText}`))})),i.addEventListener("error",(()=>{a(Error("Network error occurred during upload"))})),i.addEventListener("abort",(()=>{D("idle"),G(0),H(null),k.current=null,R.current=null,L&&L(e),a(Error("Upload was cancelled"))})),i.open(b,f),Object.entries(v).forEach((([e,t])=>{i.setRequestHeader(e,t)})),R.current={xhr:i,abortController:o,file:e,retryCount:t},i.send(r)}))}catch(n){const a=n instanceof Error?n.message:"Upload failed";E>t&&!Ra(a).call(a,"cancelled")?(D("loading"),Y(`Upload failed. Retrying... (${t+1}/${E})`),setTimeout((()=>{ee(e,t+1)}),A)):(D("error"),Y(a),G(0),H(null),k.current=null,R.current=null,C&&C(e,a))}}else{D("loading"),G(0),k.current=Date.now();let n=0;const a=setInterval((()=>{if(n+=5,100>n){G(n);const t=Date.now()-(k.current||Date.now()),a=Z(n,t);H(a),T&&T(e,n)}else clearInterval(a),D("success"),W("Upload successful"),k.current=null,_&&_(e),R.current=null}),500);R.current={xhr:null,abortController:new AbortController,file:e,retryCount:t,intervalId:a}}}),[f,b,v,S,y,E,A,T,_,C,L,J,Z]),te=o((()=>{R.current&&(R.current.xhr&&R.current.xhr.abort(),R.current.chunkXhrs&&R.current.chunkXhrs.forEach((e=>{e&&e.readyState!==XMLHttpRequest.DONE&&e.abort()})),R.current.intervalId&&clearInterval(R.current.intervalId),R.current=null),D("idle"),U(null),G(0),H(null),Y(null),W(null),k.current=null}),[]),ne=o((()=>{R.current&&(R.current.xhr&&R.current.xhr.abort(),R.current.chunkXhrs&&R.current.chunkXhrs.forEach((e=>{e&&e.readyState!==XMLHttpRequest.DONE&&e.abort()})),R.current.intervalId&&clearInterval(R.current.intervalId),R.current.abortController.abort(),L&&R.current.file&&L(R.current.file)),R.current=null,te()}),[L,te]);s((()=>()=>{R.current&&(R.current.xhr&&R.current.xhr.abort(),R.current.chunkXhrs&&R.current.chunkXhrs.forEach((e=>{e&&e.readyState!==XMLHttpRequest.DONE&&e.abort()})),R.current.intervalId&&clearInterval(R.current.intervalId))}),[]);const ae=["c-upload","md"!==a&&"c-upload--"+a,P&&ar.CLASSES.DRAGGING,n&&ar.CLASSES.DISABLED,"loading"===M&&"c-upload--loading","success"===M&&"c-upload--success","error"===M&&"c-upload--error",I].filter(Boolean).join(" ");return t("div",{className:ae,style:w,onDragEnter:e=>{e.preventDefault(),e.stopPropagation(),n||(j.current++,1===j.current&&B(!0))},onDragLeave:e=>{e.preventDefault(),e.stopPropagation(),n||(j.current--,0===j.current&&B(!1))},onDragOver:e=>{e.preventDefault(),e.stopPropagation()},onDrop:e=>{if(e.preventDefault(),e.stopPropagation(),n)return;if(j.current=0,B(!1),!e.dataTransfer.files?.length)return;const t=Array.from(e.dataTransfer.files);Q(t)},children:[t("div",{className:"c-upload__inner",role:"button",tabIndex:n?-1:0,"aria-label":`${u}. ${h}. ${p}`,"aria-disabled":n,onKeyDown:e=>{"Enter"!==e.key&&" "!==e.key||n||(e.preventDefault(),q())},children:[e("input",{type:"file",ref:O,className:"c-upload__input",onChange:e=>{if(!e.target.files?.length)return;const t=Array.from(e.target.files);Q(t)},disabled:n,accept:c.join(","),multiple:d,"aria-hidden":"true"}),e("div",{className:"c-upload__icon",children:g}),e("h3",{className:"c-upload__title",children:u}),e("p",{className:"c-upload__text",children:h}),e("button",{type:"button",className:"c-upload__btn c-btn",onClick:q,disabled:n,children:m}),e("p",{className:"c-upload__helper-text",children:p})]}),"idle"!==M&&t("div",{className:"c-upload__loader",style:{"--upload-loader-percentage":F},children:[z&&t("div",{className:"c-upload__loader-status",children:[e("h5",{className:"c-upload__loader-title",children:z.name}),t("div",{className:"c-upload__loader-progress",children:[t("div",{className:"c-upload__loader-par",children:[F,"%"]}),e("div",{className:"c-upload__loader-time",children:V})]})]}),("loading"===M||"error"===M||"success"===M)&&t("div",{className:"c-upload__loader-control",children:["loading"===M&&e("div",{className:"c-upload__loader-bar",children:t("svg",{children:[e("circle",{cx:"10",cy:"10",r:"10"}),e("circle",{cx:"10",cy:"10",r:"10"})]})}),"loading"===M&&e("button",{type:"button",className:"c-upload__loader-cancel",onClick:ne,"aria-label":"Cancel upload",children:e("i",{className:"icon-lux-x"})}),("error"===M||"success"===M)&&e("button",{type:"button",className:"c-upload__loader-close",onClick:te,"aria-label":"Close upload progress",children:e("i",{className:"icon-lux-x"})})]}),$&&"error"===M&&t("div",{className:"c-upload__error-message",children:[$,R.current&&R.current.retryCount<E&&e("button",{type:"button",className:"c-upload__retry-btn",onClick:()=>{z&&ee(z,R.current?.retryCount||0)},children:"Retry"})]}),K&&"success"===M&&e("div",{className:"c-upload__success-message",children:K})]})]})};Nd.displayName="Upload";const Td=c((({src:a,type:l="video",youtubeId:c,poster:d,autoplay:u=!1,loop:h=!1,muted:m=!1,controls:p=!0,preload:g="metadata",width:f,height:b,aspectRatio:v="16:9",className:S="",onPlay:O,onPause:R,onEnded:k,onTimeUpdate:M,onVolumeChange:D,onFullscreenChange:P,onError:B,showDownload:z=!1,showShare:U=!1,showSettings:F=!0,playbackRates:G=[.5,.75,1,1.25,1.5,2],subtitles:V,quality:H,ambientMode:$=!1,glass:Y=!1,glassOpacity:K=1,glassContent:W,style:j,...q},Q)=>{const X=i(null),Z=i(null),J=i(null),ee=i(null),[te,ne]=r(8),ae="youtube"===l||c||a&&Hl(a),re=c||(ae&&a?$l(a):null),{isPlaying:ie,currentTime:oe,duration:se,volume:le,isMuted:ce,isFullscreen:de,isLoading:ue,playbackRate:he,currentQuality:me,showControls:pe,play:ge,pause:fe,togglePlay:be,seek:ve,setVolume:Se,toggleMute:ye,toggleFullscreen:Ee,togglePictureInPicture:Ae,setPlaybackRate:xe,setQuality:Ne,formatTime:Te,getProgressPercentage:_e,getBufferedPercentage:Ce}=function({videoRef:e,containerRef:t,onPlay:n,onPause:a,onEnded:l,onTimeUpdate:c,onVolumeChange:d,onFullscreenChange:u,onError:h,playbackRates:m=[.5,.75,1,1.25,1.5,2],quality:p}){const[g,f]=r(!1),[b,v]=r(0),[S,y]=r(0),[E,A]=r(1),[x,N]=r(!1),[T,_]=r(!1),[C,L]=r(!1),[I,w]=r(!1),[O,R]=r(0),[k,M]=r(1),[D,P]=r(p?.[0]||null),[B,z]=r(!0),U=i(null),F=o((()=>{U.current&&clearTimeout(U.current),z(!0);const e=setTimeout((()=>{g&&z(!1)}),3e3);U.current=e}),[g]),G=o((async()=>{if(e.current)try{await e.current.play(),f(!0),n?.()}catch(t){h?.(t),f(!1)}}),[e,n,h]),V=o((()=>{e.current&&(e.current.pause(),f(!1),a?.())}),[e,a]),H=o((()=>{g?V():G()}),[g,G,V]),$=o((t=>{e.current&&(e.current.currentTime=Math.max(0,Math.min(t,S)))}),[e,S]),Y=o((t=>{const n=Math.max(0,Math.min(1,t));e.current&&(e.current.volume=n,A(n),N(0===n),d?.(n))}),[e,d]),K=o((()=>{if(e.current){const t=!x;e.current.muted=t,N(t)}}),[e,x]),W=o((async()=>{if(t.current)try{T?document.exitFullscreen&&await document.exitFullscreen():t.current.requestFullscreen&&await t.current.requestFullscreen()}catch(e){}}),[t,T]),j=o((async()=>{if(e.current)try{C?document.exitPictureInPicture&&await document.exitPictureInPicture():e.current.requestPictureInPicture&&await e.current.requestPictureInPicture()}catch(t){}}),[e,C]),q=o((t=>{e.current&&Ra(m).call(m,t)&&(e.current.playbackRate=t,M(t))}),[e,m]),Q=o((t=>{if(e.current&&p){const n=e.current.currentTime,a=!e.current.paused,r=(t.src+"").replace(/[<>"']/g,"");r&&(r.startsWith("http://")||r.startsWith("https://")||r.startsWith("blob:")||r.startsWith("data:"))&&(e.current.src=r,e.current.currentTime=n,a&&e.current.play(),P(t))}}),[e,p]),X=o((e=>{const t=Math.floor(e/3600),n=Math.floor(e%3600/60),a=Math.floor(e%60);return t>0?`${t}:${n.toString().padStart(2,"0")}:${a.toString().padStart(2,"0")}`:`${n}:${a.toString().padStart(2,"0")}`}),[]),Z=o((()=>S>0?b/S*100:0),[b,S]),J=o((()=>S>0?O/S*100:0),[O,S]);s((()=>{const t=e.current;if(!t)return;const r=()=>w(!0),i=()=>w(!1),o=()=>{y(t.duration),A(t.volume),N(t.muted)},s=()=>{v(t.currentTime),c?.(t.currentTime)},u=()=>{t.buffered.length>0&&R(t.buffered.end(t.buffered.length-1))},m=()=>{f(!0),n?.()},p=()=>{f(!1),a?.()},g=()=>{f(!1),l?.()},b=()=>{A(t.volume),N(t.muted),d?.(t.volume)},S=e=>{w(!1),h?.(e)},E=()=>L(!0),x=()=>L(!1);return t.addEventListener("loadstart",r),t.addEventListener("canplay",i),t.addEventListener("loadedmetadata",o),t.addEventListener("timeupdate",s),t.addEventListener("progress",u),t.addEventListener("play",m),t.addEventListener("pause",p),t.addEventListener("ended",g),t.addEventListener("volumechange",b),t.addEventListener("error",S),t.addEventListener("enterpictureinpicture",E),t.addEventListener("leavepictureinpicture",x),()=>{t.removeEventListener("loadstart",r),t.removeEventListener("canplay",i),t.removeEventListener("loadedmetadata",o),t.removeEventListener("timeupdate",s),t.removeEventListener("progress",u),t.removeEventListener("play",m),t.removeEventListener("pause",p),t.removeEventListener("ended",g),t.removeEventListener("volumechange",b),t.removeEventListener("error",S),t.removeEventListener("enterpictureinpicture",E),t.removeEventListener("leavepictureinpicture",x)}}),[e,n,a,l,c,d,h]),s((()=>{const e=()=>{const e=!!document.fullscreenElement;_(e),u?.(e)};return document.addEventListener("fullscreenchange",e),()=>document.removeEventListener("fullscreenchange",e)}),[u]);const ee=o((e=>{if(t.current?.contains(document.activeElement))switch(e.code){case"Space":e.preventDefault(),H();break;case"ArrowLeft":e.preventDefault(),$(b-10);break;case"ArrowRight":e.preventDefault(),$(b+10);break;case"ArrowUp":e.preventDefault(),Y(Math.min(1,E+.1));break;case"ArrowDown":e.preventDefault(),Y(Math.max(0,E-.1));break;case"KeyM":e.preventDefault(),K();break;case"KeyF":e.preventDefault(),W()}}),[H,$,b,Y,E,K,W,t]);s((()=>(document.addEventListener("keydown",ee),()=>document.removeEventListener("keydown",ee))),[ee]);const te=o((()=>F()),[F]),ne=o((()=>{U.current&&clearTimeout(U.current),g&&z(!1)}),[g]);return s((()=>{const e=t.current;if(e)return e.addEventListener("mousemove",te),e.addEventListener("mouseleave",ne),()=>{e.removeEventListener("mousemove",te),e.removeEventListener("mouseleave",ne),U.current&&clearTimeout(U.current)}}),[t,te,ne]),{isPlaying:g,currentTime:b,duration:S,volume:E,isMuted:x,isFullscreen:T,isPictureInPicture:C,isLoading:I,buffered:O,playbackRate:k,currentQuality:D,showControls:B,play:G,pause:V,togglePlay:H,seek:$,setVolume:Y,toggleMute:K,toggleFullscreen:W,togglePictureInPicture:j,setPlaybackRate:q,setQuality:Q,formatTime:X,getProgressPercentage:Z,getBufferedPercentage:J}}({videoRef:X,containerRef:Z,onPlay:O,onPause:R,onEnded:k,onTimeUpdate:M,onVolumeChange:D,onFullscreenChange:P,onError:B,playbackRates:G,quality:H});!function({videoRef:e,canvasRef:t,enabled:n,blur:a=60,opacity:r=.6,scale:o=1.2}){const l=i(60);s((()=>{if(!n||!e.current||!t.current)return;const i=e.current,s=t.current,c=s.getContext("2d");if(!c)return;const d=()=>{if(!i||!s||!c)return;const e=i.getBoundingClientRect();s.width=e.width*o,s.height=e.height*o,c.filter=`blur(${a}px)`,c.globalAlpha=r;try{c.drawImage(i,0,0,s.width,s.height)}catch(t){}n&&(l.current=requestAnimationFrame(d))},u=()=>{n&&d()},h=()=>{l.current&&cancelAnimationFrame(l.current)};return i.addEventListener("play",u),i.addEventListener("pause",h),i.addEventListener("ended",h),i.paused||u(),()=>{i.removeEventListener("play",u),i.removeEventListener("pause",h),i.removeEventListener("ended",h),l.current&&cancelAnimationFrame(l.current)}}),[n,a,r,o,e,t])}({videoRef:X,canvasRef:J,enabled:$});const[Le,Ie]=r(!1),[we,Oe]=r("quality"),[Re,ke]=r(V?.find((e=>e.default))?.srcLang||null),[Me,De]=r({width:0,height:0}),Pe=o((e=>{const t=e.currentTarget.getBoundingClientRect(),n=(e.clientX-t.left)/t.width;ve(n*se)}),[se,ve]),Be=o((e=>{const t=e.currentTarget.getBoundingClientRect(),n=(e.clientX-t.left)/t.width;Se(n)}),[Se]),ze=o((()=>{if(a)try{var e;const t=new URL(a,window.location.origin);if(Ra(e=["http:","https:","blob:","data:"]).call(e,t.protocol)){const e=document.createElement("a");e.href=t.href,e.download="video",e.click()}}catch(t){}}),[a]),Ue=o((async()=>{if(navigator.share)try{await navigator.share({title:"Video",url:window.location.href})}catch(e){}}),[]),Fe=o((e=>{const t=X.current;if(t){const n=t.textTracks;for(let e=0;e<n.length;e++){const t=n[e];t&&(t.mode="hidden")}if(e)for(let t=0;t<n.length;t++){const a=n[t];if(a&&a.language===e){a.mode="showing";break}}ke(e)}}),[X]);s((()=>{const e=X.current;if(e&&V){const t=()=>{setTimeout((()=>{const e=V.find((e=>e.default));e&&Fe(e.srcLang)}),100)},n=()=>{if(e.textTracks.length>0){const e=V.find((e=>e.default));e&&Fe(e.srcLang)}};return e.addEventListener("loadeddata",t),e.addEventListener("canplay",n),()=>{e.removeEventListener("loadeddata",t),e.removeEventListener("canplay",n)}}}),[V,Fe,X]),s((()=>{const e=()=>{if(ae&&ee.current){const e=ee.current.getBoundingClientRect();De({width:e.width,height:e.height})}else if(X.current){const e=X.current.getBoundingClientRect();De({width:e.width,height:e.height})}},t=setTimeout(e,100),n=new ResizeObserver(e);if(ae&&ee.current){const a=ee.current;n.observe(a);const r=()=>e();return a.addEventListener("load",r),()=>{clearTimeout(t),n.disconnect(),a.removeEventListener("load",r)}}if(X.current){const a=X.current;n.observe(a);const r=()=>e();return a.addEventListener("loadedmetadata",r),()=>{clearTimeout(t),n.disconnect(),a.removeEventListener("loadedmetadata",r)}}return window.addEventListener("resize",e),()=>{clearTimeout(t),n.disconnect(),window.removeEventListener("resize",e)}}),[ae,X,ee]);const Ge=o((()=>{Z.current&&Z.current.focus()}),[]);s((()=>{const e=()=>{if(!Z.current)return;const e=window.getComputedStyle(Z.current),t=e.borderRadius||e.borderTopLeftRadius,n=parseFloat(t);isNaN(n)||ne(n)};e();let t=null;"undefined"!=typeof ResizeObserver&&Z.current&&(t=new ResizeObserver(e),t.observe(Z.current)),window.addEventListener("resize",e);const n=Z.current;return()=>{window.removeEventListener("resize",e),t&&n&&(t.unobserve(n),t.disconnect())}}),[]);const Ve=o((e=>{switch(e.key){case" ":case"k":e.preventDefault(),be();break;case"ArrowLeft":e.preventDefault(),ve(oe-10);break;case"ArrowRight":e.preventDefault(),ve(oe+10);break;case"ArrowUp":e.preventDefault(),Se(Math.min(1,le+.1));break;case"ArrowDown":e.preventDefault(),Se(Math.max(0,le-.1));break;case"m":e.preventDefault(),ye();break;case"f":e.preventDefault(),Ee()}}),[be,oe,ve,le,Se,ye,Ee]);return t("div",{ref:Z,className:`${Cr.CLASSES.BASE} ${ae?Cr.CLASSES.YOUTUBE:""} ${$?Cr.CLASSES.AMBIENT:""} ${Y?Cr.CLASSES.GLASS:""} ${S}`,style:{width:f,height:b,aspectRatio:v?v.replace(":","/"):void 0,...j},tabIndex:0,onClick:Ge,onKeyDown:Ve,role:"application","aria-label":"Video player",...q,children:[$&&e("canvas",{ref:J,className:Cr.CLASSES.AMBIENT_CANVAS,"aria-hidden":"true"}),ae&&re?e("iframe",{ref:ee,className:Cr.CLASSES.VIDEO,src:`https://www.youtube.com/embed/${re}?${new URLSearchParams({autoplay:u?"1":"0",loop:h?"1":"0",mute:m?"1":"0",controls:p?"1":"0",modestbranding:"1",rel:"0",...h&&{playlist:re}}).toString()}`,title:"YouTube video player",frameBorder:"0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",allowFullScreen:!0}):e("video",{ref:e=>{X&&X.current!==e&&(X.current=e),"function"==typeof Q?Q(e):Q&&Q.current!==e&&(Q.current=e)},className:Cr.CLASSES.VIDEO,src:a,poster:d,autoPlay:u,loop:h,muted:m,preload:g,controls:!1,crossOrigin:"anonymous",children:V&&V.map((t=>e("track",{kind:"subtitles",src:t.src,srcLang:t.srcLang,label:t.label,default:t.default},t.srcLang)))}),ue&&e("div",{className:Cr.CLASSES.LOADING,children:e("div",{className:Cr.CLASSES.SPINNER})}),Y&&e("div",{className:Cr.CLASSES.GLASS_OVERLAY,children:e(Ri,{..."boolean"==typeof Y?{}:Y,mouseContainer:Z,displacementScale:100,blurAmount:0,saturation:100,elasticity:0,children:!W&&e("div",{style:{width:Me.width>0?Me.width+"px":"100%",height:Me.height>0?Me.height+"px":"100%",display:"flex",alignItems:"center",justifyContent:"center",background:"transparent"}})})}),Y&&W&&e("div",{className:Cr.CLASSES.GLASS_CONTENT,style:{display:"flex",alignItems:"center",justifyContent:"center"},children:W}),p&&!ae&&t("div",{className:`${Cr.CLASSES.CONTROLS} ${pe?Cr.CLASSES.CONTROLS_VISIBLE:""}`,style:{zIndex:Y?3:"auto"},children:[e("div",{className:Cr.CLASSES.PROGRESS_CONTAINER,children:t("div",{className:Cr.CLASSES.PROGRESS_BAR,onClick:Pe,children:[e("div",{className:Cr.CLASSES.PROGRESS_BUFFERED,style:{width:Ce()+"%"}}),e("div",{className:Cr.CLASSES.PROGRESS_PLAYED,style:{width:_e()+"%"}}),e("div",{className:Cr.CLASSES.PROGRESS_THUMB,style:{left:_e()+"%"}})]})}),t("div",{className:Cr.CLASSES.CONTROLS_ROW,children:[t("div",{className:Cr.CLASSES.CONTROLS_LEFT,children:[e("button",{className:Cr.CLASSES.CONTROL_BUTTON,onClick:be,"aria-label":ie?"Pause":"Play",children:e(ie?y:E,{size:20})}),e("button",{className:Cr.CLASSES.CONTROL_BUTTON,onClick:()=>ve(oe-10),"aria-label":"Skip back 10 seconds",children:e(A,{size:20})}),e("button",{className:Cr.CLASSES.CONTROL_BUTTON,onClick:()=>ve(oe+10),"aria-label":"Skip forward 10 seconds",children:e(x,{size:20})}),t("div",{className:Cr.CLASSES.VOLUME_CONTAINER,children:[e("button",{className:Cr.CLASSES.CONTROL_BUTTON,onClick:ye,"aria-label":ce?"Unmute":"Mute",children:e(ce||0===le?N:T,{size:20})}),e("div",{className:Cr.CLASSES.VOLUME_SLIDER,children:e("div",{className:Cr.CLASSES.VOLUME_BAR,onClick:Be,children:e("div",{className:Cr.CLASSES.VOLUME_FILL,style:{width:100*le+"%"}})})})]}),t("div",{className:Cr.CLASSES.TIME_DISPLAY,children:[e("span",{children:Te(oe)}),e("span",{children:"/"}),e("span",{children:Te(se)})]})]}),t("div",{className:Cr.CLASSES.CONTROLS_RIGHT,children:[F&&t("div",{className:Cr.CLASSES.SETTINGS_CONTAINER,children:[e("button",{className:Cr.CLASSES.CONTROL_BUTTON,onClick:()=>Ie(!Le),"aria-label":"Settings",children:e(_,{size:20})}),Le&&t("div",{className:Cr.CLASSES.SETTINGS_MENU,children:[t("div",{className:Cr.CLASSES.SETTINGS_TABS,children:[H&&H.length>1&&e("button",{className:`${Cr.CLASSES.SETTINGS_TAB} ${"quality"===we?Cr.CLASSES.SETTINGS_TAB_ACTIVE:""}`,onClick:()=>Oe("quality"),children:"Quality"}),e("button",{className:`${Cr.CLASSES.SETTINGS_TAB} ${"speed"===we?Cr.CLASSES.SETTINGS_TAB_ACTIVE:""}`,onClick:()=>Oe("speed"),children:"Speed"}),e("button",{className:`${Cr.CLASSES.SETTINGS_TAB} ${"subtitles"===we?Cr.CLASSES.SETTINGS_TAB_ACTIVE:""}`,onClick:()=>Oe("subtitles"),children:"Subtitles"})]}),t("div",{className:Cr.CLASSES.SETTINGS_CONTENT,children:["quality"===we&&H&&e("div",{className:Cr.CLASSES.SETTINGS_OPTIONS,children:H.map((t=>e("button",{className:`${Cr.CLASSES.SETTINGS_OPTION} ${me?.label===t.label?Cr.CLASSES.SETTINGS_OPTION_ACTIVE:""}`,onClick:()=>Ne(t),children:t.label},t.label)))}),"speed"===we&&e("div",{className:Cr.CLASSES.SETTINGS_OPTIONS,children:G.map((e=>t("button",{className:`${Cr.CLASSES.SETTINGS_OPTION} ${he===e?Cr.CLASSES.SETTINGS_OPTION_ACTIVE:""}`,onClick:()=>xe(e),children:[e,"x"]},e)))}),"subtitles"===we&&e("div",{className:Cr.CLASSES.SETTINGS_OPTIONS,children:V&&V.length>0?t(n,{children:[e("button",{className:`${Cr.CLASSES.SETTINGS_OPTION} ${null===Re?Cr.CLASSES.SETTINGS_OPTION_ACTIVE:""}`,onClick:()=>Fe(null),children:"Off"}),V.map((t=>e("button",{className:`${Cr.CLASSES.SETTINGS_OPTION} ${Re===t.srcLang?Cr.CLASSES.SETTINGS_OPTION_ACTIVE:""}`,onClick:()=>Fe(t.srcLang),children:t.label},t.srcLang)))]}):e("div",{className:Cr.CLASSES.SETTINGS_OPTION,style:{opacity:.6,cursor:"default"},children:"No subtitles available"})})]})]})]}),z&&e("button",{className:Cr.CLASSES.CONTROL_BUTTON,onClick:ze,"aria-label":"Download video",children:e(C,{size:20})}),U&&e("button",{className:Cr.CLASSES.CONTROL_BUTTON,onClick:Ue,"aria-label":"Share video",children:e(L,{size:20})}),e("button",{className:Cr.CLASSES.CONTROL_BUTTON,onClick:Ae,"aria-label":"Picture in Picture",children:e("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"currentColor",children:e("path",{d:"M19 7h-8v6h8V7zm2-4H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H3V5h18v14z"})})}),e("button",{className:Cr.CLASSES.CONTROL_BUTTON,onClick:Ee,"aria-label":de?"Exit fullscreen":"Enter fullscreen",children:e(de?I:w,{size:20})})]})]})]})]})}));Td.displayName="VideoPlayer";var _d=Object.freeze({__proto__:null,Accordion:zi,AreaChart:ps,AtomixGlass:Ri,AtomixLogo:Ui,Avatar:ao,AvatarGroup:ro,Badge:oo,BarChart:fs,Block:co,Breadcrumb:ho,BubbleChart:bs,Button:Vo,ButtonGroup:Ho,Callout:Xo,CandlestickChart:vs,Card:as,Chart:cs,ChartRenderer:us,Checkbox:Ys,ColorModeToggle:zs,Countdown:Us,DataTable:el,DatePicker:il,DonutChart:Ss,Dropdown:Js,EdgePanel:ul,ElevationCard:rs,Footer:bc,FooterLink:Ac,FooterSection:Ec,FooterSocialLink:mc,Form:ml,FormGroup:gl,FunnelChart:ys,GaugeChart:Es,HeatmapChart:xs,Hero:Nc,Icon:no,Input:bl,LineChart:Ts,List:_c,ListGroup:Cc,MegaMenu:Wc,MegaMenuColumn:jc,MegaMenuLink:qc,Menu:Hc,MenuDivider:Kc,MenuItem:$c,Messages:Lc,Modal:Mc,MultiAxisChart:_s,Nav:Dc,NavDropdown:Qc,NavItem:zc,Navbar:Uc,Pagination:$s,PhotoViewer:nd,PieChart:Ls,Popover:rd,ProductReview:sd,Progress:ld,RadarChart:Is,Radio:lc,Rating:od,River:cd,ScatterChart:ws,SectionIntro:dd,Select:sc,SideMenu:Vc,SideMenuItem:Gc,SideMenuList:Fc,Slider:ud,Spinner:po,Steps:md,Tabs:Sd,Testimonial:yd,Textarea:cc,Todo:Ed,Toggle:Ad,Tooltip:xd,TreemapChart:Ms,Upload:Nd,VideoPlayer:Td,WaterfallChart:Ds}),Cd=Object.freeze({__proto__:null}),Ld=Object.freeze({__proto__:null,ACCORDION:Ga,ATOMIX_GLASS:Dr,AVATAR:yr,AVATAR_GROUP:Er,BADGE:Va,BLOCK:kr,BREADCRUMB:Ya,BUTTON:za,BUTTON_GROUP:Ua,CALLOUT:Fa,CARD:br,CHART:Or,CLASS_PREFIX:Da,CODE_SNIPPET:Rr,COUNTDOWN:Ka,DATA_TABLE_CLASSES:cr,DATA_TABLE_SELECTORS:dr,DATEPICKER:_r,DROPDOWN:Nr,EDGE_PANEL:lr,FOOTER:Mr,FORM:mr,FORM_GROUP:pr,HERO:Wa,INPUT:gr,LIST:Ha,LIST_GROUP:$a,MESSAGES:xr,MODAL:Ar,NAV:ir,NAVBAR:rr,PAGINATION_DEFAULTS:ur,PHOTOVIEWER:Lr,POPOVER:qa,PROGRESS:Tr,RADIO:fr,RATING:sr,RIVER:nr,SECTION_INTRO:tr,SELECT:vr,SIDE_MENU:or,SIZES:Ma,SLIDER:wr,SPINNER:er,STEPS:Za,TAB:Xa,TESTIMONIAL:Ja,TEXTAREA:Sr,THEME_COLORS:ka,THEME_NAMING:Pa,TODO:hr,TOGGLE:Qa,TOOLTIP:ja,TYPEDBUTTON:Ba,UPLOAD:ar,VIDEO_PLAYER:Cr,sliderConstants:Ir});const Id={primary:"#7c3aed",secondary:"#f3f4f6",success:"#22c55e",info:"#3b82f6",warning:"#eab308",error:"#ef4444",light:"#f9fafb",dark:"#1f2937","primary-rgb":"124, 58, 237","secondary-rgb":"243, 244, 246","success-rgb":"34, 197, 94","info-rgb":"59, 130, 246","warning-rgb":"234, 179, 8","error-rgb":"239, 68, 68","light-rgb":"249, 250, 251","dark-rgb":"31, 41, 55","gray-1":"#f9fafb","gray-2":"#f3f4f6","gray-3":"#e5e7eb","gray-4":"#d1d5db","gray-5":"#9ca3af","gray-6":"#6b7280","gray-7":"#4b5563","gray-8":"#374151","gray-9":"#1f2937","gray-10":"#111827","primary-1":"#f2e8fd","primary-2":"#e4d0fa","primary-3":"#d0b2f5","primary-4":"#b88cef","primary-5":"#9c63e9","primary-6":"#7c3aed","primary-7":"#6425ca","primary-8":"#501ba6","primary-9":"#3c1583","primary-10":"#2a0e60","red-1":"#fef2f2","red-2":"#fee2e2","red-3":"#fecaca","red-4":"#fca5a5","red-5":"#f87171","red-6":"#ef4444","red-7":"#dc2626","red-8":"#b91c1c","red-9":"#991b1b","red-10":"#7f1d1d","green-1":"#f0fdf4","green-2":"#dcfce7","green-3":"#bbf7d0","green-4":"#86efac","green-5":"#4ade80","green-6":"#22c55e","green-7":"#16a34a","green-8":"#15803d","green-9":"#166534","green-10":"#14532d","blue-1":"#eff6ff","blue-2":"#dbeafe","blue-3":"#bfdbfe","blue-4":"#93c5fd","blue-5":"#60a5fa","blue-6":"#3b82f6","blue-7":"#2563eb","blue-8":"#1d4ed8","blue-9":"#1e40af","blue-10":"#1e3a8a","yellow-1":"#fefce8","yellow-2":"#fef9c3","yellow-3":"#fef08a","yellow-4":"#fde047","yellow-5":"#facc15","yellow-6":"#eab308","yellow-7":"#ca8a04","yellow-8":"#a16207","yellow-9":"#854d0e","yellow-10":"#713f12","primary-text-emphasis":"#111827","secondary-text-emphasis":"#374151","tertiary-text-emphasis":"#6b7280","disabled-text-emphasis":"#9ca3af","invert-text-emphasis":"#111827","brand-text-emphasis":"#7c3aed","error-text-emphasis":"#ef4444","success-text-emphasis":"#22c55e","warning-text-emphasis":"#eab308","info-text-emphasis":"#3b82f6","light-text-emphasis":"#f9fafb","dark-text-emphasis":"#1f2937","primary-bg-subtle":"#ffffff","secondary-bg-subtle":"#e5e7eb","tertiary-bg-subtle":"#d1d5db","invert-bg-subtle":"#111827","brand-bg-subtle":"#e4d0fa","error-bg-subtle":"#fee2e2","success-bg-subtle":"#dcfce7","warning-bg-subtle":"#fef9c3","info-bg-subtle":"#dbeafe","light-bg-subtle":"#f3f4f6","dark-bg-subtle":"#1f2937","primary-border-subtle":"#e5e7eb","secondary-border-subtle":"#111827","success-border-subtle":"#22c55e","error-border-subtle":"#ef4444","warning-border-subtle":"#eab308","info-border-subtle":"#3b82f6","brand-border-subtle":"#7c3aed","light-border-subtle":"#f9fafb","dark-border-subtle":"#1f2937","primary-hover":"#7c3aed","secondary-hover":"#e5e7eb","light-hover":"#f3f4f6","dark-hover":"#4b5563","error-hover":"#b91c1c","success-hover":"#15803d","warning-hover":"#a16207","info-hover":"#1d4ed8","primary-gradient":"linear-gradient(135deg, #e4d0fa, #d0b2f5, #b88cef)","secondary-gradient":"linear-gradient(135deg, #f3f4f6, #e5e7eb, #d1d5db)","light-gradient":"linear-gradient(135deg, #f9fafb, #f3f4f6, #e5e7eb)","dark-gradient":"linear-gradient(135deg, #4b5563, #1f2937, #000000)","success-gradient":"linear-gradient(135deg, #dcfce7, #86efac, #4ade80)","info-gradient":"linear-gradient(135deg, #dbeafe, #bfdbfe, #60a5fa)","warning-gradient":"linear-gradient(135deg, #fef9c3, #fef08a, #facc15)","error-gradient":"linear-gradient(135deg, #fef2f2, #fee2e2, #fecaca)",gradient:"linear-gradient(135deg, #f9fafb, #f3f4f6, #e5e7eb)","font-sans-serif":'"Roboto", sans-serif',"font-monospace":'SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace',"body-font-family":'"Roboto", sans-serif',"body-font-size":"1rem","body-font-weight":"400","body-line-height":"1.2","body-color":"#111827","body-bg":"#ffffff","heading-color":"#111827","font-size-xl":"1.5rem","font-size-2xl":"2rem","display-1":"4rem","font-weight-light":"300","font-weight-normal":"400","font-weight-medium":"500","font-weight-semibold":"600","font-weight-bold":"700","font-weight-heavy":"800","font-weight-black":"900","line-height-base":"1.2","line-height-sm":"1.43","line-height-lg":"1.56","letter-spacing-h1":"-1px","letter-spacing-h2":"-1px","letter-spacing-h3":"-1px","letter-spacing-h4":"-0.5px","letter-spacing-h5":"-0.5px","letter-spacing-h6":"-0.5px","link-color":"#7c3aed","link-color-rgb":"124, 58, 237","link-decoration":"none","link-hover-color":"rgb(85.3674418605, 18.2930232558, 200.2069767442)","link-hover-color-rgb":"85.3674418605, 18.2930232558, 200.2069767442","highlight-bg":"#fef08a","code-color":"#f87171","border-width":"1px","border-style":"solid","border-color":"#e5e7eb","border-color-translucent":"rgba(229, 231, 235, 0.175)","border-radius":"0.5rem","border-radius-sm":"0.25rem","border-radius-lg":"0.625rem","border-radius-xl":"0.75rem","border-radius-xxl":"1rem","border-radius-2xl":"var(--atomix-border-radius-xxl)","border-radius-3xl":"1.5rem","border-radius-4xl":"2rem","border-radius-pill":"50rem","box-shadow":"0 8px 16px rgba(0, 0, 0, 0.15)","box-shadow-xs":"0px 1px 2px 0px rgba(45, 54, 67, 0.04), 0px 2px 4px 0px rgba(45, 54, 67, 0.08)","box-shadow-sm":"0 2px 4px rgba(0, 0, 0, 0.075)","box-shadow-lg":"0 16px 48px rgba(0, 0, 0, 0.175)","box-shadow-xl":"0px 16px 64px -8px rgba(45, 54, 67, 0.14)","box-shadow-inset":"inset 0 1px 2px rgba(0, 0, 0, 0.075)","focus-border-color":"#9c63e9","focus-ring-width":"3px","focus-ring-offset":"2px","focus-ring-opacity":"0.25","form-valid-color":"#22c55e","form-valid-border-color":"#22c55e","form-invalid-color":"#ef4444","form-invalid-border-color":"#ef4444","spacing-0":"0rem","spacing-1":"0.25rem","spacing-px-6":"0.375rem","spacing-2":"0.5rem","spacing-px-10":"0.625rem","spacing-3":"0.75rem","spacing-px-14":"0.875rem","spacing-4":"1rem","spacing-5":"1.25rem","spacing-px-22":"1.375rem","spacing-6":"1.5rem","spacing-7":"1.75rem","spacing-px-30":"1.875rem","spacing-8":"2rem","spacing-9":"2.25rem","spacing-10":"2.5rem","spacing-11":"2.75rem","spacing-12":"3rem","spacing-14":"3.5rem","spacing-16":"4rem","spacing-20":"5rem","spacing-24":"6rem","spacing-28":"7rem","spacing-32":"8rem","spacing-36":"9rem","spacing-40":"10rem","spacing-44":"11rem","spacing-48":"12rem","spacing-52":"13rem","spacing-56":"14rem","spacing-60":"15rem","spacing-64":"16rem","spacing-72":"18rem","spacing-80":"20rem","spacing-90":"22.5rem","spacing-200":"50rem","transition-duration-fast":"0.15s","transition-duration-base":"0.3s","transition-duration-slow":"0.5s","transition-duration-slower":"0.7s","easing-base":"cubic-bezier(0.23, 1, 0.32, 1)","easing-ease-in-out":"cubic-bezier(0.4, 0, 0.2, 1)","easing-ease-out":"cubic-bezier(0, 0, 0.2, 1)","easing-ease-in":"cubic-bezier(0.4, 0, 1, 1)","easing-ease-linear":"linear","transition-fast":"all 0.15s cubic-bezier(0.23, 1, 0.32, 1)","transition-base":"all 0.3s cubic-bezier(0.23, 1, 0.32, 1)","transition-slow":"all 0.5s cubic-bezier(0.23, 1, 0.32, 1)","z-n1":"-1","z-0":"0","z-1":"1","z-2":"2","z-3":"3","z-4":"4","z-5":"5","z-dropdown":"1000","z-sticky":"1020","z-fixed":"1030","z-modal":"1040","z-popover":"1050","z-tooltip":"1060","z-drawer":"1070","breakpoint-xs":"0","breakpoint-sm":"576px","breakpoint-md":"768px","breakpoint-lg":"992px","breakpoint-xl":"1200px","breakpoint-xxl":"1440px","interactive-vortex-enabled":"false","interactive-vortex-strength":"0.5","interactive-vortex-radius":"100","interactive-vortex-decay":"0.8","interactive-chromatic-enabled":"false","interactive-chromatic-mode":"lateral","interactive-chromatic-red-shift":"0.02","interactive-chromatic-green-shift":"0","interactive-chromatic-blue-shift":"-0.02","interactive-chromatic-edge-only":"false","interactive-chromatic-edge-threshold":"0.5","interactive-mouse-sensitivity":"1.0","interactive-mouse-trail-effect":"false","interactive-animation-speed-base":"1.0","interactive-animation-speed-multiplier":"1.0","optimization-breakpoint-mobile":"0px","optimization-breakpoint-tablet":"768px","optimization-breakpoint-desktop":"1024px","optimization-breakpoint-wide":"1440px","optimization-device-scaling-mobile":"0.5","optimization-device-scaling-tablet":"0.75","optimization-device-scaling-desktop":"1.0","optimization-performance-fps-target":"60","optimization-auto-scaling-enabled":"false","optimization-auto-scaling-low-end":"0.5","optimization-auto-scaling-mid-range":"0.75","optimization-auto-scaling-high-end":"1.0","visual-polish-border-iridescent-glow":"false","visual-polish-border-shimmer-effect":"false","visual-polish-border-beveled-edges":"false","visual-polish-border-pulsing-glow":"false","visual-polish-content-aware-blur-enabled":"false","visual-polish-content-aware-depth-detection":"false","visual-polish-content-aware-edge-preservation":"false","visual-polish-content-aware-variable-radius":"false","visual-polish-holographic-enabled":"false","visual-polish-holographic-rainbow-diffraction":"false","visual-polish-holographic-scanline-animation":"false","visual-polish-holographic-grid-overlay":"false","visual-polish-holographic-data-stream":"false","visual-polish-holographic-pulse-rings":"false"};function wd(e){return{...Id,...e}}function Od(e,t={}){const{selector:n=":root",prefix:a="atomix"}=t;return`${n} {\n${Object.entries(e).filter((([,e])=>void 0!==e)).map((([e,t])=>` --${a}-${e}: ${t};`)).join("\n")}\n}`}function Rd(e,t,n="atomix"){return Od(e,{selector:t,prefix:n})}function kd(e){const t={};if(e.palette){if(e.palette.primary){const n=e.palette.primary.main;t.primary=n;const a=Dd(n);a&&(t["primary-rgb"]=a)}if(e.palette.secondary){const n=e.palette.secondary.main;t.secondary=n;const a=Dd(n);a&&(t["secondary-rgb"]=a)}const n=["error","warning","info","success"];for(const a of n)if(e.palette[a]){const n=e.palette[a].main;t[a]=n;const r=Dd(n);r&&(t[a+"-rgb"]=r)}e.palette.background&&(t["body-bg"]=e.palette.background.default),e.palette.text&&(t["body-color"]=e.palette.text.primary)}if(e.typography&&(t["body-font-family"]=e.typography.fontFamily,t["body-font-size"]=e.typography.fontSize+"px",t["font-weight-normal"]=""+e.typography.fontWeightRegular,t["font-weight-bold"]=""+e.typography.fontWeightBold),"function"==typeof e.spacing&&(t["spacing-1"]=e.spacing(1),t["spacing-2"]=e.spacing(2),t["spacing-4"]=e.spacing(4)),e.breakpoints?.values&&(t["breakpoint-xs"]=e.breakpoints.values.xs+"px",t["breakpoint-sm"]=e.breakpoints.values.sm+"px",t["breakpoint-md"]=e.breakpoints.values.md+"px",t["breakpoint-lg"]=e.breakpoints.values.lg+"px",t["breakpoint-xl"]=e.breakpoints.values.xl+"px"),e.shadows&&(t["box-shadow"]=e.shadows[2],t["box-shadow-sm"]=e.shadows[1],t["box-shadow-lg"]=e.shadows[3]),e.transitions&&(t["transition-duration-base"]=e.transitions.duration.standard+"ms"),e.zIndex&&(t["z-modal"]=""+e.zIndex.modal,t["z-popover"]=""+e.zIndex.popover,t["z-tooltip"]=""+e.zIndex.tooltip),e.borderRadius){const n=e.borderRadius.base;t["border-radius"]="number"==typeof n?n+"px":n}if(e.custom){if(e.custom.interactiveEffects){const n=e.custom.interactiveEffects;n.vortex&&(t["interactive-vortex-enabled"]=(n.vortex.enabled??!1)+"",t["interactive-vortex-strength"]=(n.vortex.strength??.5)+"",t["interactive-vortex-radius"]=(n.vortex.radius??100)+"",t["interactive-vortex-decay"]=(n.vortex.decay??.8)+""),n.chromaticAberration&&(t["interactive-chromatic-enabled"]=(n.chromaticAberration.enabled??!1)+"",t["interactive-chromatic-mode"]=n.chromaticAberration.mode??"lateral",t["interactive-chromatic-red-shift"]=(n.chromaticAberration.redShift??.02)+"",t["interactive-chromatic-green-shift"]=(n.chromaticAberration.greenShift??0)+"",t["interactive-chromatic-blue-shift"]=(n.chromaticAberration.blueShift??-.02)+"",t["interactive-chromatic-edge-only"]=(n.chromaticAberration.edgeOnly??!1)+"",t["interactive-chromatic-edge-threshold"]=(n.chromaticAberration.edgeThreshold??.5)+""),n.mouseInteraction&&(t["interactive-mouse-sensitivity"]=(n.mouseInteraction.sensitivity??1)+"",t["interactive-mouse-trail-effect"]=(n.mouseInteraction.trailEffect??!1)+""),n.animationSpeed&&(t["interactive-animation-speed-base"]=(n.animationSpeed.base??1)+"",t["interactive-animation-speed-multiplier"]=(n.animationSpeed.timeMultiplier??1)+"")}if(e.custom.optimization){const n=e.custom.optimization;n.responsive&&(n.responsive.breakpoints&&(t["optimization-breakpoint-mobile"]=n.responsive.breakpoints.mobile??"0px",t["optimization-breakpoint-tablet"]=n.responsive.breakpoints.tablet??"768px",t["optimization-breakpoint-desktop"]=n.responsive.breakpoints.desktop??"1024px",t["optimization-breakpoint-wide"]=n.responsive.breakpoints.wide??"1440px"),n.responsive.deviceScaling&&(t["optimization-device-scaling-mobile"]=(n.responsive.deviceScaling.mobile??.5)+"",t["optimization-device-scaling-tablet"]=(n.responsive.deviceScaling.tablet??.75)+"",t["optimization-device-scaling-desktop"]=(n.responsive.deviceScaling.desktop??1)+"")),n.performance&&(t["optimization-performance-fps-target"]=(n.performance.fpsTarget??60)+"",t["optimization-auto-scaling-enabled"]=(n.performance.autoScaling??!1)+""),n.autoScaling&&(t["optimization-auto-scaling-enabled"]=(n.autoScaling.enabled??!1)+"",t["optimization-auto-scaling-low-end"]=(n.autoScaling.qualityThresholds?.lowEnd??.5)+"",t["optimization-auto-scaling-mid-range"]=(n.autoScaling.qualityThresholds?.midRange??.75)+"",t["optimization-auto-scaling-high-end"]=(n.autoScaling.qualityThresholds?.highEnd??1)+"")}if(e.custom.visualPolish){const n=e.custom.visualPolish;n.borders&&(t["visual-polish-border-iridescent-glow"]=(n.borders.iridescentGlow??!1)+"",t["visual-polish-border-shimmer-effect"]=(n.borders.shimmerEffect??!1)+"",t["visual-polish-border-beveled-edges"]=(n.borders.beveledEdges??!1)+"",t["visual-polish-border-pulsing-glow"]=(n.borders.pulsingGlow??!1)+""),n.contentAwareBlur&&(t["visual-polish-content-aware-blur-enabled"]=(n.contentAwareBlur.enabled??!1)+"",t["visual-polish-content-aware-depth-detection"]=(n.contentAwareBlur.depthDetection??!1)+"",t["visual-polish-content-aware-edge-preservation"]=(n.contentAwareBlur.edgePreservation??!1)+"",t["visual-polish-content-aware-variable-radius"]=(n.contentAwareBlur.variableRadius??!1)+""),n.holographicEffects&&(t["visual-polish-holographic-enabled"]=(n.holographicEffects.enabled??!1)+"",t["visual-polish-holographic-rainbow-diffraction"]=(n.holographicEffects.rainbowDiffraction??!1)+"",t["visual-polish-holographic-scanline-animation"]=(n.holographicEffects.scanlineAnimation??!1)+"",t["visual-polish-holographic-grid-overlay"]=(n.holographicEffects.gridOverlay??!1)+"",t["visual-polish-holographic-data-stream"]=(n.holographicEffects.dataStream??!1)+"",t["visual-polish-holographic-pulse-rings"]=(n.holographicEffects.pulseRings??!1)+"")}}return wd(t)}function Md(e){const t=e.prefix||"atomix",n=e.theme||{};let a={...Id};if(n.extend&&Object.entries(n.extend).forEach((([e,t])=>{"object"==typeof t&&null!==t&&Object.entries(t).forEach((([t,n])=>{const r=`${e}-${t}`;"string"==typeof n||"number"==typeof n?a[r]=n+"":"object"==typeof n&&null!==n&&Object.entries(n).forEach((([e,t])=>{"string"!=typeof t&&"number"!=typeof t||(a[`${r}-${e}`]=t+"")}))}))})),n.tokens&&(a={...a,...n.tokens}),e){if(e.interactiveEffects){const t=e.interactiveEffects;t.vortex&&(a["interactive-vortex-enabled"]=(t.vortex.enabled??!1)+"",a["interactive-vortex-strength"]=(t.vortex.strength??.5)+"",a["interactive-vortex-radius"]=(t.vortex.radius??100)+"",a["interactive-vortex-decay"]=(t.vortex.decay??.8)+"",a["interactive-vortex-curl-noise"]=(t.vortex.curlNoise??!1)+"",a["interactive-vortex-velocity-tracking"]=(t.vortex.velocityTracking??!1)+""),t.chromaticAberration&&(a["interactive-chromatic-enabled"]=(t.chromaticAberration.enabled??!1)+"",a["interactive-chromatic-mode"]=t.chromaticAberration.mode??"lateral",a["interactive-chromatic-red-shift"]=(t.chromaticAberration.redShift??.02)+"",a["interactive-chromatic-green-shift"]=(t.chromaticAberration.greenShift??0)+"",a["interactive-chromatic-blue-shift"]=(t.chromaticAberration.blueShift??-.02)+"",a["interactive-chromatic-edge-only"]=(t.chromaticAberration.edgeOnly??!1)+"",a["interactive-chromatic-edge-threshold"]=(t.chromaticAberration.edgeThreshold??.5)+""),t.mouseInteraction&&(a["interactive-mouse-sensitivity"]=(t.mouseInteraction.sensitivity??1)+"",a["interactive-mouse-trail-effect"]=(t.mouseInteraction.trailEffect??!1)+"",a["interactive-mouse-pressure-sensitivity"]=(t.mouseInteraction.pressureSensitivity??!1)+""),t.animationSpeed&&(a["interactive-animation-speed-base"]=(t.animationSpeed.base??1)+"",a["interactive-animation-speed-multiplier"]=(t.animationSpeed.timeMultiplier??1)+"")}if(e.optimization){const t=e.optimization;t.responsive&&(t.responsive.breakpoints&&(a["optimization-breakpoint-mobile"]=t.responsive.breakpoints.mobile??"0px",a["optimization-breakpoint-tablet"]=t.responsive.breakpoints.tablet??"768px",a["optimization-breakpoint-desktop"]=t.responsive.breakpoints.desktop??"1024px",a["optimization-breakpoint-wide"]=t.responsive.breakpoints.wide??"1440px"),t.responsive.deviceScaling&&(a["optimization-device-scaling-mobile"]=(t.responsive.deviceScaling.mobile??.5)+"",a["optimization-device-scaling-tablet"]=(t.responsive.deviceScaling.tablet??.75)+"",a["optimization-device-scaling-desktop"]=(t.responsive.deviceScaling.desktop??1)+"")),t.performance&&(a["optimization-performance-fps-target"]=(t.performance.fpsTarget??60)+"",a["optimization-auto-scaling-enabled"]=(t.performance.autoScaling??!1)+"",a["optimization-monitor-dashboard-enabled"]=(t.performance.monitorDashboard??!1)+""),t.autoScaling&&(a["optimization-auto-scaling-enabled"]=(t.autoScaling.enabled??!1)+"",a["optimization-auto-scaling-low-end"]=(t.autoScaling.qualityThresholds?.lowEnd??.5)+"",a["optimization-auto-scaling-mid-range"]=(t.autoScaling.qualityThresholds?.midRange??.75)+"",a["optimization-auto-scaling-high-end"]=(t.autoScaling.qualityThresholds?.highEnd??1)+"")}if(e.visualPolish){const t=e.visualPolish;t.borders&&(a["visual-polish-border-iridescent-glow"]=(t.borders.iridescentGlow??!1)+"",a["visual-polish-border-shimmer-effect"]=(t.borders.shimmerEffect??!1)+"",a["visual-polish-border-beveled-edges"]=(t.borders.beveledEdges??!1)+"",a["visual-polish-border-pulsing-glow"]=(t.borders.pulsingGlow??!1)+""),t.contentAwareBlur&&(a["visual-polish-content-aware-blur-enabled"]=(t.contentAwareBlur.enabled??!1)+"",a["visual-polish-content-aware-depth-detection"]=(t.contentAwareBlur.depthDetection??!1)+"",a["visual-polish-content-aware-edge-preservation"]=(t.contentAwareBlur.edgePreservation??!1)+"",a["visual-polish-content-aware-variable-radius"]=(t.contentAwareBlur.variableRadius??!1)+""),t.holographicEffects&&(a["visual-polish-holographic-enabled"]=(t.holographicEffects.enabled??!1)+"",a["visual-polish-holographic-rainbow-diffraction"]=(t.holographicEffects.rainbowDiffraction??!1)+"",a["visual-polish-holographic-scanline-animation"]=(t.holographicEffects.scanlineAnimation??!1)+"",a["visual-polish-holographic-grid-overlay"]=(t.holographicEffects.gridOverlay??!1)+"",a["visual-polish-holographic-data-stream"]=(t.holographicEffects.dataStream??!1)+"",a["visual-polish-holographic-pulse-rings"]=(t.holographicEffects.pulseRings??!1)+"")}}const r={};return Object.entries(a).forEach((([e,n])=>{const a=e.startsWith(t)?e:`${t}-${e}`;r[a]=n})),r}function Dd(e){e=e.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,((e,t,n,a)=>t+t+n+n+a+a));const t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return t&&t[1]&&t[2]&&t[3]?`${parseInt(t[1],16)}, ${parseInt(t[2],16)}, ${parseInt(t[3],16)}`:"0, 0, 0"}function Pd(e){const t={};return Object.entries(e).forEach((([e,n])=>{void 0!==n&&(t["--atomix-"+e]=n+"")})),t}function Bd(e){const t=[];if(e.prefix&&(/^[a-zA-Z][a-zA-Z0-9-]*$/.test(e.prefix)||t.push(`Invalid prefix "${e.prefix}". Prefix should start with a letter and contain only letters, numbers, and hyphens.\nExample: "myapp", "brand-ui", "enterprise"`),2>e.prefix.length&&t.push(`Prefix "${e.prefix}" is too short. Use at least 2 characters for clarity.\nExample: "app" instead of "a"`)),e.theme&&(e.theme.extend&&e.theme.tokens&&t.push("Both theme.extend and theme.tokens are defined. theme.tokens will take precedence and completely replace the default token system.\nIf you want to extend defaults, remove theme.tokens and use only theme.extend."),e.theme.extend)){const n=e.theme.extend,a=["colors","typography","spacing","borderRadius","shadows","zIndex","transitions","breakpoints"];Object.keys(n).forEach((e=>{Ra(a).call(a,e)||t.push(`Unknown theme property: "${e}"\nValid properties: ${a.join(", ")}\nDid you mean one of these? Check for typos.`)}))}if(e.interactiveEffects){const n=e.interactiveEffects;n.vortex&&(n.vortex.strength&&(0>n.vortex.strength||n.vortex.strength>10)&&t.push("Vortex strength should be between 0 and 10 for optimal performance"),n.vortex.radius&&0>n.vortex.radius&&t.push("Vortex radius should be a positive number"),!n.vortex.decay||n.vortex.decay>0&&1>=n.vortex.decay||t.push("Vortex decay should be between 0 and 1")),n.chromaticAberration&&(n.chromaticAberration.redShift&&Math.abs(n.chromaticAberration.redShift)>.1&&t.push("Chromatic red shift value seems unusually high (>0.1), verify this is intended"),n.chromaticAberration.blueShift&&Math.abs(n.chromaticAberration.blueShift)>.1&&t.push("Chromatic blue shift value seems unusually high (>0.1), verify this is intended"),n.chromaticAberration.edgeThreshold&&(0>n.chromaticAberration.edgeThreshold||n.chromaticAberration.edgeThreshold>1)&&t.push("Chromatic edge threshold should be between 0 and 1")),n.mouseInteraction&&n.mouseInteraction.sensitivity&&0>n.mouseInteraction.sensitivity&&t.push("Mouse sensitivity should be a positive number"),n.animationSpeed&&(n.animationSpeed.base&&0>=n.animationSpeed.base&&t.push("Animation base speed should be greater than 0"),n.animationSpeed.timeMultiplier&&0>=n.animationSpeed.timeMultiplier&&t.push("Animation time multiplier should be greater than 0"))}if(e.optimization){const n=e.optimization;if(n.responsive&&n.responsive.breakpoints){const e=n.responsive.breakpoints;e.mobile&&!zd(e.mobile)&&t.push("Mobile breakpoint value is not a valid CSS length"),e.tablet&&!zd(e.tablet)&&t.push("Tablet breakpoint value is not a valid CSS length"),e.desktop&&!zd(e.desktop)&&t.push("Desktop breakpoint value is not a valid CSS length"),e.wide&&!zd(e.wide)&&t.push("Wide breakpoint value is not a valid CSS length")}if(n.responsive&&n.responsive.deviceScaling){const e=n.responsive.deviceScaling;!e.mobile||e.mobile>0&&1>=e.mobile||t.push("Mobile device scaling should be between 0 and 1"),!e.tablet||e.tablet>0&&1>=e.tablet||t.push("Tablet device scaling should be between 0 and 1"),!e.desktop||e.desktop>0&&1>=e.desktop||t.push("Desktop device scaling should be between 0 and 1")}if(n.performance&&(!n.performance.fpsTarget||n.performance.fpsTarget>0&&240>=n.performance.fpsTarget||t.push("FPS target should be a reasonable value (typically 30-120)")),n.autoScaling&&n.autoScaling.qualityThresholds){const e=n.autoScaling.qualityThresholds;e.lowEnd&&(0>e.lowEnd||e.lowEnd>1)&&t.push("Auto-scaling low-end threshold should be between 0 and 1"),e.midRange&&(0>e.midRange||e.midRange>1)&&t.push("Auto-scaling mid-range threshold should be between 0 and 1"),e.highEnd&&(0>e.highEnd||e.highEnd>1)&&t.push("Auto-scaling high-end threshold should be between 0 and 1")}}if(e.visualPolish){const n=e.visualPolish;n.contentAwareBlur&&(void 0!==n.contentAwareBlur.edgePreservation&&"boolean"!=typeof n.contentAwareBlur.edgePreservation&&t.push("Content-aware blur edge preservation should be a boolean value"),void 0!==n.contentAwareBlur.depthDetection&&"boolean"!=typeof n.contentAwareBlur.depthDetection&&t.push("Content-aware blur depth detection should be a boolean value")),n.holographicEffects&&(void 0!==n.holographicEffects.enabled&&"boolean"!=typeof n.holographicEffects.enabled&&t.push("Holographic effects enabled should be a boolean value"),void 0!==n.holographicEffects.rainbowDiffraction&&"boolean"!=typeof n.holographicEffects.rainbowDiffraction&&t.push("Holographic rainbow diffraction should be a boolean value"))}var n;return e.ai&&(e.ai.provider&&!Ra(n=["openai","anthropic"]).call(n,e.ai.provider)&&t.push(`Unknown AI provider: "${e.ai.provider}". Supported: openai, anthropic`),e.ai.temperature&&(0>e.ai.temperature||e.ai.temperature>1)&&t.push("AI temperature should be between 0 and 1"),e.ai.maxTokens&&100>e.ai.maxTokens&&t.push("AI maxTokens should typically be 100 or more"),e.ai.rateLimit&&(e.ai.rateLimit.requests>0||t.push("AI rate limit requests should be greater than 0"),e.ai.rateLimit.windowMs>0||t.push("AI rate limit window should be greater than 0"))),e.telemetry&&e.telemetry.path&&!e.telemetry.path.endsWith(".json")&&t.push("Telemetry path should typically end with .json"),t}function zd(e){return/^(\d+(\.\d+)?)(px|em|rem|%|vw|vh|vmin|vmax|cm|mm|in|pt|pc|ex|ch)?$/.test(e)}function Ud(e={}){const{configPath:t,required:n=!1}=e,a={prefix:"atomix",theme:{extend:{}}};if("undefined"!=typeof window){if(n)throw Error('Config loading requires Node.js file system access.\n\nSolutions:\n1. Provide tokens explicitly to createTheme():\n const css = createTheme({ "--brand-primary": "#6366f1" });\n\n2. Use SSR framework (Next.js, Remix, Astro)\n\n3. Load config on server and pass to client\n\nSee examples/config-examples/browser-only.config.ts');return a}if(t)return Fd(t,n,a);const r=["atomix.config.ts","atomix.config.js","atomix.config.json"];for(const i of r){const e=Fd(i,!1,a);if(JSON.stringify(e)!==JSON.stringify(a))return e}if(n)throw Error('No Atomix configuration file found in project root.\n\nExpected one of:\n - atomix.config.ts (recommended)\n - atomix.config.js\n - atomix.config.json\n\nQuick Fix:\n1. Create a config file in your project root:\n touch atomix.config.ts\n\n2. Add basic configuration:\n import { defineConfig } from "@shohojdhara/atomix/config";\n export default defineConfig({ prefix: "myapp" });\n\n3. Or copy an example:\n cp node_modules/@shohojdhara/atomix/examples/config-examples/standard.config.ts ./atomix.config.ts');return a}function Fd(e,t,n){try{const t=require(e),n=t.default||t;if(n&&"object"==typeof n)return n;throw Error("Invalid config format")}catch(a){if(t)throw Error(`Failed to load config from ${e}: ${a.message}`);return n}}function Gd(e){if("undefined"!=typeof window)return null;const{existsSync:t}=require("fs"),{join:n}=require("path");if(e){const a=n(process.cwd(),e);return t(a)?a:null}const a=[n(process.cwd(),"atomix.config.ts"),n(process.cwd(),"atomix.config.js"),n(process.cwd(),"atomix.config.json")];for(const r of a)if(t(r))return r;return null}function Vd(e,t){let n,a;if(e)n=!0===e.__isJSTheme||e.palette&&e.typography?kd(e):e;else{const e=function(){if("undefined"!=typeof window)throw Error("loadThemeFromConfigSync: Not available in browser environment. Config loading requires Node.js/SSR environment.");let e;try{const{loadAtomixConfig:t}=require("../../config/loader");e=t}catch(i){throw Error("Config loader module not available")}const t=e({configPath:undefined,required:!0});if(!t?.theme)return wd({});if((n=t.theme)&&"object"==typeof n&&(n.palette||n.typography||n.spacing||n.breakpoints||n.colors))return kd(t.theme);var n;const a=t.theme;let r={};return a.tokens?r=a.tokens:a.extend&&(r=a.extend),t.interactiveEffects&&(t.interactiveEffects.vortex&&(r={...r,"interactive-vortex-enabled":(t.interactiveEffects.vortex.enabled??!1)+"","interactive-vortex-strength":(t.interactiveEffects.vortex.strength??.5)+"","interactive-vortex-radius":(t.interactiveEffects.vortex.radius??100)+"","interactive-vortex-decay":(t.interactiveEffects.vortex.decay??.8)+""}),t.interactiveEffects.chromaticAberration&&(r={...r,"interactive-chromatic-enabled":(t.interactiveEffects.chromaticAberration.enabled??!1)+"","interactive-chromatic-mode":t.interactiveEffects.chromaticAberration.mode??"lateral","interactive-chromatic-red-shift":(t.interactiveEffects.chromaticAberration.redShift??.02)+"","interactive-chromatic-green-shift":(t.interactiveEffects.chromaticAberration.greenShift??0)+"","interactive-chromatic-blue-shift":(t.interactiveEffects.chromaticAberration.blueShift??-.02)+"","interactive-chromatic-edge-only":(t.interactiveEffects.chromaticAberration.edgeOnly??!1)+"","interactive-chromatic-edge-threshold":(t.interactiveEffects.chromaticAberration.edgeThreshold??.5)+""}),t.interactiveEffects.mouseInteraction&&(r={...r,"interactive-mouse-sensitivity":(t.interactiveEffects.mouseInteraction.sensitivity??1)+"","interactive-mouse-trail-effect":(t.interactiveEffects.mouseInteraction.trailEffect??!1)+""}),t.interactiveEffects.animationSpeed&&(r={...r,"interactive-animation-speed-base":(t.interactiveEffects.animationSpeed.base??1)+"","interactive-animation-speed-multiplier":(t.interactiveEffects.animationSpeed.timeMultiplier??1)+""})),t.optimization&&(t.optimization.responsive&&(t.optimization.responsive.breakpoints&&(r={...r,"optimization-breakpoint-mobile":t.optimization.responsive.breakpoints.mobile??"0px","optimization-breakpoint-tablet":t.optimization.responsive.breakpoints.tablet??"768px","optimization-breakpoint-desktop":t.optimization.responsive.breakpoints.desktop??"1024px","optimization-breakpoint-wide":t.optimization.responsive.breakpoints.wide??"1440px"}),t.optimization.responsive.deviceScaling&&(r={...r,"optimization-device-scaling-mobile":(t.optimization.responsive.deviceScaling.mobile??.5)+"","optimization-device-scaling-tablet":(t.optimization.responsive.deviceScaling.tablet??.75)+"","optimization-device-scaling-desktop":(t.optimization.responsive.deviceScaling.desktop??1)+""})),t.optimization.performance&&(r={...r,"optimization-performance-fps-target":(t.optimization.performance.fpsTarget??60)+"","optimization-auto-scaling-enabled":(t.optimization.performance.autoScaling??!1)+""}),t.optimization.autoScaling&&(r={...r,"optimization-auto-scaling-enabled":(t.optimization.autoScaling.enabled??!1)+"","optimization-auto-scaling-low-end":(t.optimization.autoScaling.qualityThresholds?.lowEnd??.5)+"","optimization-auto-scaling-mid-range":(t.optimization.autoScaling.qualityThresholds?.midRange??.75)+"","optimization-auto-scaling-high-end":(t.optimization.autoScaling.qualityThresholds?.highEnd??1)+""})),t.visualPolish&&(t.visualPolish.borders&&(r={...r,"visual-polish-border-iridescent-glow":(t.visualPolish.borders.iridescentGlow??!1)+"","visual-polish-border-shimmer-effect":(t.visualPolish.borders.shimmerEffect??!1)+"","visual-polish-border-beveled-edges":(t.visualPolish.borders.beveledEdges??!1)+"","visual-polish-border-pulsing-glow":(t.visualPolish.borders.pulsingGlow??!1)+""}),t.visualPolish.contentAwareBlur&&(r={...r,"visual-polish-content-aware-blur-enabled":(t.visualPolish.contentAwareBlur.enabled??!1)+"","visual-polish-content-aware-depth-detection":(t.visualPolish.contentAwareBlur.depthDetection??!1)+"","visual-polish-content-aware-edge-preservation":(t.visualPolish.contentAwareBlur.edgePreservation??!1)+"","visual-polish-content-aware-variable-radius":(t.visualPolish.contentAwareBlur.variableRadius??!1)+""}),t.visualPolish.holographicEffects&&(r={...r,"visual-polish-holographic-enabled":(t.visualPolish.holographicEffects.enabled??!1)+"","visual-polish-holographic-rainbow-diffraction":(t.visualPolish.holographicEffects.rainbowDiffraction??!1)+"","visual-polish-holographic-scanline-animation":(t.visualPolish.holographicEffects.scanlineAnimation??!1)+"","visual-polish-holographic-grid-overlay":(t.visualPolish.holographicEffects.gridOverlay??!1)+"","visual-polish-holographic-data-stream":(t.visualPolish.holographicEffects.dataStream??!1)+"","visual-polish-holographic-pulse-rings":(t.visualPolish.holographicEffects.pulseRings??!1)+""})),wd(r)}();try{const e=Ud({configPath:"atomix.config.ts",required:!0});a=e?.prefix}catch(o){}n=e}const r=wd(n),i=t?.prefix??a??"atomix";return Od(r,{...t,prefix:i})}function Hd(e){return e&&"object"==typeof e&&!Array.isArray(e)&&"function"!=typeof e}function $d(...e){if(0===e.length)return{};if(1===e.length)return e[0];const[t,...n]=e,a={...t};for(const r of n)if(r)for(const e in r){if(!Object.prototype.hasOwnProperty.call(r,e))continue;const t=a[e],n=r[e];Hd(t)&&Hd(n)?a[e]=$d(t,n):a[e]=n}return a}function Yd(...e){return $d({},...e)}function Kd(e,t){return Yd(e,t)}function Wd(){return{}}function jd(e,t,n){e[t]=n}function qd(e,t){const n=t in e;return delete e[t],n}function Qd(e,t){return t in e}function Xd(e,t){return e[t]}function Zd(e){return Object.values(e)}function Jd(e){return Object.keys(e)}function eu(e){Object.keys(e).forEach((t=>delete e[t]))}function tu(e){return Object.keys(e).length}function nu(){return"undefined"!=typeof document}function au(e,t="atomix-theme"){if(!nu())return;let n=document.getElementById(t);n||(n=document.createElement("style"),n.id=t,n.setAttribute("data-atomix-theme","true"),document.head.appendChild(n)),n.textContent=e}function ru(e="atomix-theme"){if(!nu())return;const t=document.getElementById(e);t&&t.remove()}function iu(e="atomix-theme"){return!!nu()&&null!==document.getElementById(e)}var ou,su;"undefined"!=typeof process&&process.env,function(e){e.THEME_NOT_FOUND="THEME_NOT_FOUND",e.THEME_LOAD_FAILED="THEME_LOAD_FAILED",e.THEME_VALIDATION_FAILED="THEME_VALIDATION_FAILED",e.CONFIG_LOAD_FAILED="CONFIG_LOAD_FAILED",e.CONFIG_VALIDATION_FAILED="CONFIG_VALIDATION_FAILED",e.CIRCULAR_DEPENDENCY="CIRCULAR_DEPENDENCY",e.MISSING_DEPENDENCY="MISSING_DEPENDENCY",e.STORAGE_ERROR="STORAGE_ERROR",e.INVALID_THEME_NAME="INVALID_THEME_NAME",e.CSS_INJECTION_FAILED="CSS_INJECTION_FAILED",e.INVALID_COLOR_FORMAT="INVALID_COLOR_FORMAT",e.MISSING_REQUIRED_TOKEN="MISSING_REQUIRED_TOKEN",e.CONTRAST_VIOLATION="CONTRAST_VIOLATION",e.INVALID_TOKEN_TYPE="INVALID_TOKEN_TYPE",e.UNKNOWN_ERROR="UNKNOWN_ERROR"}(ou||(ou={}));class lu extends Error{constructor(e,t=ou.UNKNOWN_ERROR,n){super(e),this.name="ThemeError",this.code=t,this.context=n,this.timestamp=Date.now(),Error.captureStackTrace&&Error.captureStackTrace(this,lu)}toJSON(){return{name:this.name,message:this.message,code:this.code,context:this.context,timestamp:this.timestamp,stack:this.stack}}}!function(e){e[e.ERROR=0]="ERROR",e[e.WARN=1]="WARN",e[e.INFO=2]="INFO",e[e.DEBUG=3]="DEBUG"}(su||(su={}));class cu{constructor(e={}){this.config={level:e.level??("undefined"!=typeof process&&"production"===process.env?.NODE_ENV?su.WARN:su.INFO),enableConsole:e.enableConsole??!0,onError:e.onError,onWarn:e.onWarn,onInfo:e.onInfo,onDebug:e.onDebug}}error(e,t,n){if(this.config.level<su.ERROR)return;const a=t instanceof lu?t:new lu(e,ou.UNKNOWN_ERROR,n);this.config.enableConsole,this.config.onError?.(a,n)}warn(e,t){this.config.level<su.WARN||(this.config.enableConsole,this.config.onWarn?.(e,t))}info(e,t){this.config.level<su.INFO||(this.config.enableConsole,this.config.onInfo?.(e,t))}debug(e,t){this.config.level<su.DEBUG||(this.config.enableConsole,this.config.onDebug?.(e,t))}}let du=null;function uu(){return du||(du=new cu),du}const hu=()=>"undefined"!=typeof window&&"undefined"!=typeof document,mu=()=>!hu(),pu=e=>e.replace(/[<>"']/g,"").replace(/\.\./g,"").replace(/\/+/g,"/").replace(/^\/+|\/+$/g,""),gu=(e,t="/themes",n=!1,a=null)=>{if(!bu(e))throw new lu(`Invalid theme name: "${e}". Theme names must be lowercase alphanumeric with hyphens (e.g., "my-theme").`,ou.INVALID_THEME_NAME,{themeName:e,pattern:/^[a-z0-9]+(-[a-z0-9]+)*$/});const r=`${e}${n?".min.css":".css"}`;return a?`${pu(a)}/${r}`:`${pu(t)}/${r.replace(/^\//,"")}`},fu=(e,t)=>{mu()||(document.body&&document.body.setAttribute(e,t),document.documentElement.setAttribute(e,t))},bu=e=>!(!e||"string"!=typeof e)&&/^[a-z0-9]+(-[a-z0-9]+)*$/.test(e),vu=()=>({getItem:e=>{if(mu())return null;try{return localStorage.getItem(e)}catch{return null}},setItem:(e,t)=>{if(!mu())try{localStorage.setItem(e,t)}catch{}},removeItem:e=>{if(!mu())try{localStorage.removeItem(e)}catch{}},isAvailable:()=>{if(mu())return!1;try{const e="__atomix_storage_test__";return localStorage.setItem(e,e),localStorage.removeItem(e),!0}catch{return!1}}});var Su=Object.freeze({__proto__:null,applyThemeAttributes:fu,buildThemePath:gu,createLocalStorageAdapter:vu,isBrowser:hu,isServer:mu,isValidThemeName:bu,loadThemeCSS:(e,t)=>mu()?Promise.resolve():new Promise(((n,a)=>{if(document.getElementById(t))return void n();const r=document.createElement("link");r.id=t,r.rel="stylesheet",r.type="text/css",r.href=e,r.setAttribute("data-atomix-theme","true"),r.onload=()=>{n()},r.onerror=()=>{r.remove(),a(new lu(`Failed to load theme CSS from: ${e}. Please check that the file exists and is accessible.`,ou.THEME_LOAD_FAILED,{fullPath:e,linkId:t}))},document.head.appendChild(r)}))});function yu(e,t={}){const{selector:n=":root",storageKey:a="atomix-theme",enableTransition:r=!0,transitionDuration:i=300}=t,o="system"===e?xu():e,s=":root"===n?document.documentElement:document.querySelector(n);if(s){if(r){const e=s;e.style.transition=`all ${i}ms ease-in-out`,setTimeout((()=>{e.style.transition=""}),i)}s.classList.remove("atomix-theme-light","atomix-theme-dark"),s.classList.add("atomix-theme-"+o),s.setAttribute("data-theme",o),_u(o,{storageKey:a}),window.dispatchEvent(new CustomEvent("atomix-theme-change",{detail:{mode:o}}))}}function Eu(e={}){const t="dark"===Au(e.storageKey)?"light":"dark";return yu(t,e),t}function Au(e="atomix-theme"){return"undefined"==typeof window?"light":localStorage.getItem(e)||"light"}function xu(){return"undefined"==typeof window?"light":window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function Nu(e={}){const t=Au(e.storageKey);if(!t||"system"===t){const t=xu();return yu(t,e),t}return yu(t,e),t}function Tu(e){if("undefined"==typeof window)return()=>{};const t=window.matchMedia("(prefers-color-scheme: dark)"),n=t=>{e(t.matches?"dark":"light")};return t.addEventListener?(t.addEventListener("change",n),()=>t.removeEventListener("change",n)):(t.addListener(n),()=>t.removeListener(n))}function _u(e,t={}){if("undefined"==typeof window)return;const{storageKey:n="atomix-theme",storageType:a="localStorage"}=t;("localStorage"===a?localStorage:sessionStorage).setItem(n,e)}function Cu(e={}){if("undefined"==typeof window)return;const{storageKey:t="atomix-theme",storageType:n="localStorage"}=e;("localStorage"===n?localStorage:sessionStorage).removeItem(t)}function Lu(...e){return Do(e).call(e,((e,t)=>$d(e,t)),{})}function Iu(e,t){return $d({...e},t)}function wu(e,t){const n={};return t.forEach((t=>{e[t]&&(n[t]=e[t])})),n}function Ou(e,t){const n={...e};return t.forEach((e=>{delete n[e]})),n}function Ru(e){if(3===(e=e.replace(/^#/,"")).length&&(e=e.split("").map((e=>e+e)).join("")),6!==e.length)return null;const t=parseInt(e,16);return{r:t>>16&255,g:t>>8&255,b:255&t}}function ku(e,t,n){return"#"+[e,t,n].map((e=>{const t=e.toString(16);return 1===t.length?"0"+t:t})).join("")}function Mu(e){const t=Ru(e);if(!t)return 0;const[n,a,r]=[t.r,t.g,t.b].map((e=>(e/=255)>.03928?Math.pow((e+.055)/1.055,2.4):e/12.92));return.2126*(n??0)+.7152*(a??0)+.0722*(r??0)}function Du(e,t){const n=Mu(e),a=Mu(t);return(Math.max(n,a)+.05)/(Math.min(n,a)+.05)}function Pu(e,t,n="small"){return Du(e,t)>=("large"===n?3:4.5)}function Bu(e,t=3){return t>Du(e,"#FFFFFF")?"#000000":"#FFFFFF"}function zu(e,t=0){const n=Ru(e);if(!n)return e;const a=Math.max(0,Math.min(1,t)),r=Math.round(n.r+(255-n.r)*a),i=Math.round(n.g+(255-n.g)*a),o=Math.round(n.b+(255-n.b)*a);return ku(Math.min(255,r),Math.min(255,i),Math.min(255,o))}function Uu(e,t=0){const n=Ru(e);if(!n)return e;const a=Math.max(0,Math.min(1,t)),r=Math.round(n.r*(1-a)),i=Math.round(n.g*(1-a)),o=Math.round(n.b*(1-a));return ku(Math.max(0,r),Math.max(0,i),Math.max(0,o))}function Fu(e,t){const n=Ru(e);if(!n)return e;const a=Math.max(0,Math.min(1,t));return`rgba(${n.r}, ${n.g}, ${n.b}, ${a})`}function Gu(e,t=.15){return Mu(e)>.5?Uu(e,t):zu(e,t)}function Vu(e=4){return(...t)=>0===t.length?"0px":"function"==typeof e?e(...t):t.map((t=>{if("number"==typeof e)return t*e+"px";if(Array.isArray(e)){const n=e[t];return"number"==typeof n?n+"px":t+"px"}return t+"px"})).join(" ")}function Hu(e,t,n){const a={};if(!Ru(e))return a;for(let r=1;10>=r;r++){let i;i=6>r?zu(e,(6-r)/5*.8):6===r?e:Uu(e,(r-6)/4*.6),a[`${t}-${n}-${r}`]=i}return a}function $u(e,t={}){const{selector:n=":root",inject:a=!1,styleId:r="atomix-theme-variables",prefix:i="atomix"}=t,o={};if(Object.assign(o,function(e,t){const n={};if(["primary","secondary","error","warning","info","success","light","dark"].forEach((a=>{const r=e[a];if(r&&"object"==typeof r){n[`${t}-${a}`]=r.main;const e=Ru(r.main);if(e&&(n[`${t}-${a}-rgb`]=`${e.r}, ${e.g}, ${e.b}`),"light"!==a&&"dark"!==a){const e=Hu(r.main,t,a);Object.assign(n,e)}else n[`${t}-${a}-main`]=r.main,r.light&&(n[`${t}-${a}-light`]=r.light),r.dark&&(n[`${t}-${a}-dark`]=r.dark);r.dark&&(n[`${t}-${a}-hover`]=r.dark),n[`${t}-${a}-text-emphasis`]=Gu(r.main,.15),n[`${t}-${a}-bg-subtle`]=Fu(r.main,.1),n[`${t}-${a}-border-subtle`]=Fu(r.main,.2)}})),e.text?.primary){const a=Hu(e.text.primary,t,"gray");Object.assign(n,a)}if(e.error&&"object"==typeof e.error&&e.error.main){const a=Hu(e.error.main,t,"red");Object.assign(n,a)}if(e.success&&"object"==typeof e.success&&e.success.main){const a=Hu(e.success.main,t,"green");Object.assign(n,a)}if(e.info&&"object"==typeof e.info&&e.info.main){const a=Hu(e.info.main,t,"blue");Object.assign(n,a)}if(e.warning&&"object"==typeof e.warning&&e.warning.main){const a=Hu(e.warning.main,t,"yellow");Object.assign(n,a)}if(e.background&&(n[t+"-body-bg"]=e.background.default,e.background.default&&(n[t+"-primary-bg-subtle"]=e.background.default),e.background.paper&&(n[t+"-secondary-bg-subtle"]=e.background.paper,n[t+"-tertiary-bg-subtle"]=e.background.paper),e.background.subtle&&(n[t+"-invert-bg-subtle"]=e.background.subtle),e.primary&&(n[t+"-brand-bg-subtle"]=Fu(e.primary.main,.1))),e.text&&(n[t+"-body-color"]=e.text.primary,e.text.primary&&(n[t+"-primary-text-emphasis"]=e.text.primary),e.text.secondary&&(n[t+"-secondary-text-emphasis"]=e.text.secondary,n[t+"-tertiary-text-emphasis"]=e.text.secondary),e.text.disabled&&(n[t+"-disabled-text-emphasis"]=e.text.disabled),e.text.primary&&(n[t+"-invert-text-emphasis"]=e.text.primary)),e.primary&&(n[t+"-brand-text-emphasis"]=e.primary.main,n[t+"-brand-border-subtle"]=Fu(e.primary.main,.2)),e.light&&"object"==typeof e.light&&(n[t+"-light-border-subtle"]=Fu(e.light.main,.2)),e.dark&&"object"==typeof e.dark&&(n[t+"-dark-border-subtle"]=Fu(e.dark.main,.2)),e.text&&(n[t+"-heading-color"]=e.text.primary),e.primary){n[t+"-link-color"]=e.primary.main;const a=Ru(e.primary.main);a&&(n[t+"-link-color-rgb"]=`${a.r}, ${a.g}, ${a.b}`),n[t+"-link-hover-color"]=e.primary.dark||Uu(e.primary.main,.1);const r=Ru(e.primary.dark||Uu(e.primary.main,.1));r&&(n[t+"-link-hover-color-rgb"]=`${r.r}, ${r.g}, ${r.b}`),n[t+"-link-decoration"]="none"}if(e.text&&(n[t+"-border-color"]=Fu(e.text.primary,.1),n[t+"-border-color-translucent"]=Fu(e.text.primary,.15)),e.primary&&(n[t+"-focus-border-color"]=e.primary.main),e.success&&(n[t+"-form-valid-color"]=e.success.main,n[t+"-form-valid-border-color"]=Fu(e.success.main,.3)),e.error&&(n[t+"-form-invalid-color"]=e.error.main,n[t+"-form-invalid-border-color"]=Fu(e.error.main,.3)),e.warning?n[t+"-highlight-bg"]=Fu(e.warning.main,.2):n[t+"-highlight-bg"]="rgba(255, 235, 59, 0.2)",e.text&&(n[t+"-code-color"]=e.text.secondary),["primary","secondary","error","warning","info","success","light","dark"].forEach((a=>{const r=e[a];if(r&&"object"==typeof r){const e=zu(r.main,.6),i=zu(r.main,.3),o=r.main;n[`${t}-${a}-gradient`]=`linear-gradient(135deg, ${e}, ${i}, ${o})`}})),e.text?.primary){const a=zu(e.text.primary,.8),r=zu(e.text.primary,.6),i=zu(e.text.primary,.4);n[t+"-gradient"]=`linear-gradient(135deg, ${a}, ${r}, ${i})`}return n}(e.palette,i)),Object.assign(o,function(e,t){const n={};n[t+"-body-font-family"]=e.fontFamily,n[t+"-font-sans-serif"]=e.fontFamily,n[t+"-font-monospace"]='SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace';const a=e.fontSize||16;n[t+"-root-font-size"]=a+"px";const r=e.fontSize;n[t+"-body-font-size"]=r+"px",n[t+"-body-font-weight"]=e.fontWeightRegular+"",n[t+"-font-weight-light"]=(e.fontWeightLight??300)+"",n[t+"-font-weight-normal"]=(e.fontWeightRegular??400)+"",n[t+"-font-weight-medium"]=(e.fontWeightMedium??500)+"",n[t+"-font-weight-semibold"]=(e.fontWeightSemiBold??600)+"",n[t+"-font-weight-bold"]=(e.fontWeightBold??700)+"","fontWeightHeavy"in e&&(n[t+"-font-weight-heavy"]=(e.fontWeightHeavy||800)+""),"fontWeightBlack"in e&&(n[t+"-font-weight-black"]=(e.fontWeightBlack||900)+"");const i="number"==typeof e.body1?.lineHeight?e.body1.lineHeight:parseFloat((e.body1?.lineHeight||1.2)+"");n[t+"-body-line-height"]=i+"",n[t+"-line-height-base"]=i+"",n[t+"-line-height-sm"]="1.43",n[t+"-line-height-lg"]="1.56";const o=.75*r,s=.875*r,l=1*r,c=1.125*r,d=1.5*r,u=2*r;if(n[t+"-font-size-xs"]=o+"px",n[t+"-font-size-sm"]=s+"px",n[t+"-font-size-md"]=l+"px",n[t+"-font-size-lg"]=c+"px",n[t+"-font-size-xl"]=d+"px",n[t+"-font-size-2xl"]=u+"px","display1"in e){const a=e.display1;n[t+"-display-1"]="string"==typeof a?a:a+"px"}return["h1","h2","h3","h4","h5","h6"].forEach((a=>{const r=e[a];r?.letterSpacing&&(n[`${t}-letter-spacing-${a}`]=r.letterSpacing+"")})),n}(e.typography,i)),Object.assign(o,function(e,t){const n={};return e.md&&(n[t+"-box-shadow"]=e.md),e.xs&&(n[t+"-box-shadow-xs"]=e.xs),e.sm&&(n[t+"-box-shadow-sm"]=e.sm),e.lg&&(n[t+"-box-shadow-lg"]=e.lg),e.xl&&(n[t+"-box-shadow-xl"]=e.xl),e.inset?n[t+"-box-shadow-inset"]=e.inset:e.sm&&(n[t+"-box-shadow-inset"]=e.sm.replace(/^0\s/,"inset ")),n}(e.shadows,i)),Object.assign(o,function(e,t){const n={},a=e.duration.shortest||150,r=e.duration.standard||300,i=e.duration.complex||500,o=e.easing.easeInOut||"cubic-bezier(0.23, 1, 0.32, 1)";return n[t+"-transition-duration-fast"]=a/1e3+"s",n[t+"-transition-duration-base"]=r/1e3+"s",n[t+"-transition-duration-slow"]=i/1e3+"s",n[t+"-transition-duration-slower"]="0.7s",n[t+"-easing-base"]=o,n[t+"-easing-ease-in-out"]=e.easing.easeInOut||"cubic-bezier(0.4, 0, 0.2, 1)",n[t+"-easing-ease-out"]=e.easing.easeOut||"cubic-bezier(0, 0, 0.2, 1)",n[t+"-easing-ease-in"]=e.easing.easeIn||"cubic-bezier(0.4, 0, 1, 1)",n[t+"-easing-ease-linear"]="linear",n[t+"-transition-fast"]=`all ${a/1e3}s ${o}`,n[t+"-transition-base"]=`all ${r/1e3}s ${o}`,n[t+"-transition-slow"]=`all ${i/1e3}s ${o}`,n}(e.transitions,i)),Object.assign(o,function(e,t){const n={};return n[t+"-z-n1"]="-1",n[t+"-z-0"]="0",n[t+"-z-1"]="1",n[t+"-z-2"]="2",n[t+"-z-3"]="3",n[t+"-z-4"]="4",n[t+"-z-5"]="5",e.mobileStepper&&(n[t+"-z-dropdown"]=e.mobileStepper+""),e.appBar&&(n[t+"-z-sticky"]=e.appBar+""),n[t+"-z-fixed"]="1030",e.modal&&(n[t+"-z-modal"]=e.modal+""),e.speedDial&&(n[t+"-z-popover"]=e.speedDial+""),e.tooltip&&(n[t+"-z-tooltip"]=e.tooltip+""),e.drawer&&(n[t+"-z-drawer"]=e.drawer+""),e.snackbar&&(n[t+"-z-snackbar"]=e.snackbar+""),n}(e.zIndex,i)),Object.assign(o,function(e,t){const n={};return Object.entries(e.values).forEach((([a,r])=>{n[`${t}-breakpoint-${a}`]=`${r}${e.unit}`})),n}(e.breakpoints,i)),Object.assign(o,function(e,t){const n={};return Object.entries({0:0,1:1,"px-6":1.5,2:2,"px-10":2.5,3:3,"px-14":3.5,4:4,5:5,"px-22":5.5,6:6,7:7,"px-30":7.5,8:8,9:9,10:10,11:11,12:12,14:14,16:16,20:20,24:24,28:28,32:32,36:36,40:40,44:44,48:48,52:52,56:56,60:60,64:64,72:72,80:80,90:90,200:200}).forEach((([a,r])=>{const i=e(r),o=i.match(/([\d.]+)px/);if(o&&o[1]){const e=parseFloat(o[1])/16;n[`${t}-spacing-${a}`]=e+"rem"}else n[`${t}-spacing-${a}`]=i})),n}(e.spacing,i)),Object.assign(o,function(e,t){const n={};return n[t+"-border-width"]="1px",n[t+"-border-style"]="solid",!n[t+"-border-color"]&&e.text&&(n[t+"-border-color"]=Fu(e.text.primary,.1)),n}(e.palette,i)),Object.assign(o,function(e,t){const n={},a=(e,t)=>void 0===e?t:"number"==typeof e?e+"px":e+"";return n[t+"-border-radius"]=a(e.base,"0.5rem"),n[t+"-border-radius-sm"]=a(e.sm,"0.25rem"),n[t+"-border-radius-lg"]=a(e.lg,"0.625rem"),n[t+"-border-radius-xl"]=a(e.xl,"0.75rem"),n[t+"-border-radius-xxl"]=a(e.xxl,"1rem"),n[t+"-border-radius-3xl"]=a(e["3xl"],"1.5rem"),n[t+"-border-radius-4xl"]=a(e["4xl"],"2rem"),n[t+"-border-radius-pill"]=a(e.pill,"50rem"),n}(e.borderRadius,i)),Object.assign(o,function(e,t){const n={};return n[t+"-focus-ring-width"]="3px",n[t+"-focus-ring-offset"]="2px",n[t+"-focus-ring-opacity"]="0.25",n}(e.palette,i)),e.custom&&Object.keys(e.custom).length>0){const t=function(e,t="",n={}){const a=[{obj:e,prefix:t}];for(;a.length>0;){const{obj:e,prefix:t}=a.pop();for(const r in e){if(!Object.prototype.hasOwnProperty.call(e,r))continue;const i=e[r],o=t?`${t}-${r}`:r;if(i&&"object"==typeof i&&!Array.isArray(i)){if("function"==typeof i)continue;a.push({obj:i,prefix:o})}else"string"!=typeof i&&"number"!=typeof i||(n[o.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()]=i+"")}}return n}(e.custom,i+"-custom");Object.assign(o,t)}const s=`${n} {\n${Object.entries(o).map((([e,t])=>` --${e}: ${t};`)).join("\n")}\n}`;return a&&hu()&&function(e,t="atomix-theme-variables"){if(!hu())return;let n=document.getElementById(t);n||(n=document.createElement("style"),n.id=t,n.setAttribute("data-atomix-theme-vars","true"),document.head.appendChild(n)),n.textContent=e}(s,r),s}function Yu(e,t,n){let a=e;return t&&(a+="__"+t),n&&Object.entries(n).forEach((([e,t])=>{t&&(a+="--"+e,"string"==typeof t&&t!==e&&(a+="-"+t))})),a}function Ku(e,t={}){const{prefix:n="atomix",component:a,variant:r,state:i}=t,o=[n];return a&&o.push(a),r&&o.push(r),i&&o.push(i),o.push(e),"--"+o.join("-")}function Wu(e){const t={};for(const[n,a]of Object.entries(e))t[n]="object"==typeof a&&null!==a?Wu(a):a;return t}function ju(e){return e.replace(/[A-Z]/g,(e=>"-"+e.toLowerCase()))}function qu(e,t="atomix"){return`--${t}-${e.split(".").map((e=>ju(e))).join("-")}`}function Qu(e,t,n,a){const r=["atomix",e];return n&&r.push(n),a&&r.push(a),r.push(t),`var(${"--"+r.join("-")}, var(${"--atomix-"+t}, initial))`}function Xu(e,t,n,a){const r={};if(!t)return r;const i=["atomix",e];n&&i.push(n),a&&i.push(a);const o=i.join("-");return t.primary&&(r[`--${o}-color`]=t.primary),t["primary-9"]&&(r[`--${o}-color-hover`]=t["primary-9"]),t["body-color"]&&(r[`--${o}-color-disabled`]=t["body-color"]),t["body-font-family"]&&(r[`--${o}-font-family`]=t["body-font-family"]),t["body-font-size"]&&(r[`--${o}-font-size`]=t["body-font-size"]),t["spacing-1"]&&(r[`--${o}-spacing-sm`]=t["spacing-1"]),t["spacing-2"]&&(r[`--${o}-spacing-md`]=t["spacing-2"]),t["spacing-4"]&&(r[`--${o}-spacing-lg`]=t["spacing-4"]),r}function Zu(e,t={},n,a,r){return r?{...Xu(e,r,n,a),...t}:t}function Ju(e,t,n,a){return a=>Qu(e,a,t,n)}const eh=g(null);eh.displayName="ThemeContext";const th=uu(),nh={hex:/^#([A-Fa-f0-9]{3}|[A-Fa-f0-9]{4}|[A-Fa-f0-9]{6}|[A-Fa-f0-9]{8})$/,rgb:/^rgb\(\s*(\d{1,3}(?:\.\d+)?)\s*,\s*(\d{1,3}(?:\.\d+)?)\s*,\s*(\d{1,3}(?:\.\d+)?)\s*(?:,\s*([01]?\.?\d+))?\s*\)$/,rgba:/^rgba\(\s*(\d{1,3}(?:\.\d+)?)\s*,\s*(\d{1,3}(?:\.\d+)?)\s*,\s*(\d{1,3}(?:\.\d+)?)\s*,\s*([01]?\.?\d+)\s*\)$/,hsl:/^hsl\(\s*(\d{1,3})\s*,\s*(\d{1,3})%\s*,\s*(\d{1,3})%\s*\)$/,hsla:/^hsla\(\s*(\d{1,3})\s*,\s*(\d{1,3})%\s*,\s*(\d{1,3})%\s*,\s*([01]?\.?\d+)\s*\)$/},ah=["primary","secondary","success","info","warning","error","light","dark"],rh=["primary-text-emphasis","secondary-text-emphasis","tertiary-text-emphasis","disabled-text-emphasis"],ih=[{text:"primary-text-emphasis",background:"primary-bg-subtle",name:"Primary text on subtle background"},{text:"secondary-text-emphasis",background:"secondary-bg-subtle",name:"Secondary text on subtle background"},{text:"error-text-emphasis",background:"error-bg-subtle",name:"Error text on subtle background"},{text:"success-text-emphasis",background:"success-bg-subtle",name:"Success text on subtle background"}];function oh(e){const t=e.match(nh.rgb)||e.match(nh.rgba);if(!t)return null;const n=parseInt(t[1]??"0",10),a=parseInt(t[2]??"0",10),r=parseInt(t[3]??"0",10);return 0>n||n>255||0>a||a>255||0>r||r>255?null:{r:n,g:a,b:r}}function sh(e){const t=e.match(nh.hsl)||e.match(nh.hsla);if(!t)return null;let n=parseInt(t[1]??"0",10)/360,a=parseInt(t[2]??"0",10)/100,r=parseInt(t[3]??"0",10)/100;if(0>n||n>1||0>a||a>1||0>r||r>1)return null;const i=(e,t,n)=>(0>n&&(n+=1),n>1&&(n-=1),1/6>n?e+6*(t-e)*n:.5>n?t:2/3>n?e+(t-e)*(2/3-n)*6:e);let o,s,l;if(0===a)o=s=l=r;else{const e=.5>r?r*(1+a):r+a-r*a,t=2*r-e;o=i(t,e,n+1/3),s=i(t,e,n),l=i(t,e,n-1/3)}return{r:Math.round(255*o),g:Math.round(255*s),b:Math.round(255*l)}}function lh(e){return nh.hex.test(e)?function(e){const t=nh.hex.exec(e);if(!t||!t[1])return null;const n=t[1];let a,r,i;switch(n.length){case 3:case 4:a=parseInt((n[0]??"0")+(n[0]??"0"),16),r=parseInt((n[1]??"0")+(n[1]??"0"),16),i=parseInt((n[2]??"0")+(n[2]??"0"),16);break;case 6:case 8:a=parseInt(n.slice(0,2),16),r=parseInt(n.slice(2,4),16),i=parseInt(n.slice(4,6),16);break;default:return null}return{r:a,g:r,b:i}}(e):e.startsWith("rgb")?oh(e):e.startsWith("hsl")?sh(e):null}function ch(e,t,n){const a=e=>(e/=255)>.03928?Math.pow((e+.055)/1.055,2.4):e/12.92;return.2126*a(e)+.7152*a(t)+.0722*a(n)}function dh(e,t,n=!1){const a=function(e,t){const n=lh(e),a=lh(t);if(!n||!a)return null;const r=ch(n.r,n.g,n.b),i=ch(a.r,a.g,a.b);return(Math.max(r,i)+.05)/(Math.min(r,i)+.05)}(e,t);if(null===a)return{valid:!1,ratio:0,requiredRatio:n?3:4.5};const r=n?3:4.5;return{valid:a>=r,ratio:a,requiredRatio:r}}function uh(e,t={}){const n=[];t.skipRequiredTokens||n.push(function(e){const t=[],n=[];for(const a of ah)a in e||t.push(`Required color token '${a}' is missing`);for(const a of rh)a in e||t.push(`Required text emphasis token '${a}' is missing`);for(const a of ah){const t=a+"-rgb";t in e||n.push(`RGB version of '${a}' token '${t}' is missing`)}return{valid:0===t.length,errors:t,warnings:n}}(e)),t.skipColorValidation||n.push(function(e){const t=[],n=new Set(["primary","secondary","success","info","warning","error","light","dark","primary-text-emphasis","secondary-text-emphasis","tertiary-text-emphasis","disabled-text-emphasis","invert-text-emphasis","brand-text-emphasis","error-text-emphasis","success-text-emphasis","warning-text-emphasis","info-text-emphasis","light-text-emphasis","dark-text-emphasis","primary-bg-subtle","secondary-bg-subtle","tertiary-bg-subtle","invert-bg-subtle","brand-bg-subtle","error-bg-subtle","success-bg-subtle","warning-bg-subtle","info-bg-subtle","light-bg-subtle","dark-bg-subtle","primary-border-subtle","secondary-border-subtle","success-border-subtle","error-border-subtle","warning-border-subtle","info-border-subtle","brand-border-subtle","light-border-subtle","dark-border-subtle","primary-hover","secondary-hover","light-hover","dark-hover","error-hover","success-hover","warning-hover","info-hover",...Array.from({length:10},((e,t)=>["primary-"+(t+1),"red-"+(t+1),"green-"+(t+1),"blue-"+(t+1),"yellow-"+(t+1)])).flat(),...Array.from({length:10},((e,t)=>"gray-"+(t+1))),"body-color","heading-color","link-color","link-hover-color","highlight-bg","code-color","border-color","border-color-translucent","focus-border-color","form-valid-color","form-valid-border-color","form-invalid-color","form-invalid-border-color"]);for(const r of n){if(!(r in e))continue;const n=e[r];"string"==typeof n?(a=n,nh.hex.test(a)||(nh.rgb.test(a)||nh.rgba.test(a)?null!==oh(a):(nh.hsl.test(a)||nh.hsla.test(a))&&null!==sh(a))||t.push(`Token '${r}' has invalid color format: '${n}'`)):t.push(`Token '${r}' must be a string, got ${typeof n}`)}var a;return{valid:0===t.length,errors:t,warnings:[]}}(e)),t.skipAccessibility||n.push(function(e){const t=[],n=[];for(const a of ih){const r=e[a.text],i=e[a.background];if(!r||!i){n.push(`Cannot validate contrast for ${a.name}: missing tokens`);continue}const o=dh(r,i);if(!o.valid){const e=3===o.requiredRatio?"large text (AA)":"normal text (AA)";t.push(`${a.name}: contrast ratio ${o.ratio.toFixed(2)}:1 is below required ${o.requiredRatio}:1 for ${e}`)}}return{valid:0===t.length,errors:t,warnings:n}}(e));const a=n.flatMap((e=>e.errors)),r=n.flatMap((e=>e.warnings)),i=0===a.length;return i?r.length>0?th.warn(`DesignTokens validation passed with ${r.length} warnings`,{warnings:r}):th.debug("DesignTokens validation passed"):th.error("DesignTokens validation failed",Error(`Validation failed with ${a.length} errors and ${r.length} warnings`),{errors:a,warnings:r,tokenCount:Object.keys(e).length}),{valid:i,errors:a,warnings:r}}function hh(e){const t={...Id,...e};return{tokens:t,validation:uh(t)}}const mh=uu(),ph=({children:t,defaultTheme:n,themes:a={},basePath:l="/themes",cdnPath:c=null,useMinified:d=!1,storageKey:h="atomix-theme",dataAttribute:m="data-theme",enablePersistence:p=!0,onThemeChange:g,onError:f})=>{const b=i(g),v=i(f);s((()=>{b.current=g,v.current=f}),[g,f]);const S=o((e=>{b.current?.(e)}),[]),y=o(((e,t)=>{v.current?.(e,t)}),[]),E=u((()=>vu()),[]),A=u((()=>{if(p&&E.isAvailable()){const t=E.getItem(h);if(t){if(t.trim().startsWith("{"))try{return JSON.parse(t)}catch(e){return mh.error("Failed to parse stored theme tokens",e),t}return t}}return null!=n?n:"default"}),[n,p,h,E]),[x,N]=r((()=>"string"==typeof A?A:"tokens-theme")),[T,_]=r((()=>{if(A&&"string"!=typeof A){const{tokens:e,validation:t}=hh(A);if(t.valid)return e}if(n&&"string"!=typeof n){const{tokens:e,validation:t}=hh(n);if(t.valid)return e}return null})),[C,L]=r(!1),[I,w]=r(null),O=i(new Set),R=i({}),k=i(null);s((()=>{n&&"string"!=typeof n&&T&&!mu()&&au(Vd(T),"theme-tokens-theme")}),[n,T]),s((()=>{mu()||fu(x+"",m)}),[x,m]),s((()=>{p&&E.isAvailable()&&("tokens-theme"===x?T&&E.setItem(h,JSON.stringify(T)):E.setItem(h,x+""))}),[x,T,p,h,E]),s((()=>()=>{k.current&&(k.current.abort(),k.current=null),Object.entries(R.current).forEach((([e,t])=>{})),R.current={}}),[]);const M=o((async(e,t)=>{k.current&&k.current.abort();const n=new AbortController;k.current=n,L(!0),w(null);try{let r;if("string"!=typeof e){if(n.signal.aborted)return;const{tokens:a,validation:r}=hh(e);if(!r.valid){const e="Invalid DesignTokens provided: "+r.errors.join(", "),a=Error(e);if(mh.error("Theme validation failed",a,{errors:r.errors,warnings:r.warnings}),!1!==t?.fallbackOnError){mh.warn("Falling back to default theme due to validation errors");const{tokens:e}=hh({}),t=Vd(e),r="tokens-theme-fallback";if(n.signal.aborted)return;return ru("theme-"+x),au(t,"theme-"+r),_(e),N(r),S(e),y(a,r),void L(!1)}throw a}const i=Vd(a),o="tokens-theme";if(n.signal.aborted)return;if(ru("theme-"+x),au(i,"theme-"+o),n.signal.aborted)return;return _(a),N(o),S(a),void L(!1)}if(r=e,"string"==typeof e&&a[e]){if(R.current[e])try{if(await R.current[e],n.signal.aborted)return;return N(e),_(null),S(e),void L(!1)}catch{}const t=new Promise(((t,r)=>{(async()=>{try{if(n.signal.aborted)return void t();if(!a[e])throw Error("Theme metadata not found for theme: "+e);{const a=gu(e,l,d,c);if(n.signal.aborted)return void t();const{loadThemeCSS:r}=await Promise.resolve().then((function(){return Su}));if(await r(a,"theme-"+e),n.signal.aborted)return void t();ru("theme-"+x),O.current.add(e),N(e),_(null),S(e),t()}}catch(i){if(n.signal.aborted)return void t();const a=i instanceof Error?i:Error(i+"");w(a),y(a,e+""),r(a)}})()}));R.current[e]=t;try{await t}catch{}setTimeout((()=>{R.current[e]===t&&delete R.current[e]}),1e3)}else{if(n.signal.aborted)return;N(r),_(null),S(r)}}catch(r){if(n.signal.aborted)return;const t=r instanceof Error?r:Error(r+"");w(t),y(t,e+"")}finally{n.signal.aborted||L(!1)}}),[a,x,S,y,l,d,c]),D=o((e=>O.current.has(e)),[]),P=o((async e=>{if(a[e]&&!D(e)){L(!0);try{const t=gu(e,l,d,c);await fetch(t),O.current.add(e)}catch(t){const n=t instanceof Error?t:Error(t+"");w(n),y(n,e)}finally{L(!1)}}}),[a,D,y,l,d,c]),B=o((async(e,t)=>M("string"==typeof e&&t?t:e)),[M]),z=u((()=>({})),[]),U=u((()=>Object.entries(a).map((([e,t])=>({...t,name:e})))),[a]),F=u((()=>({theme:x,activeTokens:T,setTheme:M,updateTheme:B,availableThemes:U,isLoading:C,error:I,isThemeLoaded:D,preloadTheme:P,themeManager:z})),[x,T,M,B,U,C,I,D,P,z]);return e(eh.Provider,{value:F,children:t})};function gh(){const e=f(eh);if(!e)throw Error("useTheme must be used within a ThemeProvider");return{theme:e.theme,activeTokens:e.activeTokens,setTheme:e.setTheme,updateTheme:e.updateTheme,availableThemes:e.availableThemes,isLoading:e.isLoading,error:e.error,isThemeLoaded:e.isThemeLoaded,preloadTheme:e.preloadTheme}}function fh(){const{theme:e,activeTokens:t}=gh(),n=o(((e,t)=>{if("undefined"==typeof window)return t||"";const n="--atomix-"+e;return getComputedStyle(document.documentElement).getPropertyValue(n).trim()||t||""}),[]);return{theme:e,activeTokens:t,getToken:n,colors:{primary:n("primary","#3b82f6"),secondary:n("secondary","#10b981"),error:n("error","#ef4444"),success:n("success","#22c55e"),warning:n("warning","#eab308"),info:n("info","#3b82f6"),light:n("light","#f9fafb"),dark:n("dark","#111827")},spacing:{1:n("spacing-1","0.25rem"),2:n("spacing-2","0.5rem"),3:n("spacing-3","0.75rem"),4:n("spacing-4","1rem"),5:n("spacing-5","1.25rem"),6:n("spacing-6","1.5rem"),8:n("spacing-8","2rem"),10:n("spacing-10","2.5rem"),12:n("spacing-12","3rem"),16:n("spacing-16","4rem"),20:n("spacing-20","5rem")},borderRadius:{sm:n("border-radius-sm","0.25rem"),md:n("border-radius-md","0.5rem"),lg:n("border-radius-lg","0.75rem"),xl:n("border-radius-xl","1rem"),full:n("border-radius-full","9999px")},typography:{fontFamily:{sans:n("font-sans-serif","Inter, system-ui, sans-serif"),serif:n("font-serif","Georgia, serif"),mono:n("font-monospace","Fira Code, monospace")},fontSize:{xs:n("font-size-xs","0.75rem"),sm:n("font-size-sm","0.875rem"),md:n("font-size-md","1rem"),lg:n("font-size-lg","1.125rem"),xl:n("font-size-xl","1.25rem"),"2xl":n("font-size-2xl","1.5rem"),"3xl":n("font-size-3xl","1.875rem"),"4xl":n("font-size-4xl","2.25rem")},fontWeight:{light:n("font-weight-light","300"),normal:n("font-weight-normal","400"),medium:n("font-weight-medium","500"),semibold:n("font-weight-semibold","600"),bold:n("font-weight-bold","700")}},shadows:{sm:n("box-shadow-sm","0 1px 2px 0 rgba(0, 0, 0, 0.05)"),md:n("box-shadow-md","0 4px 6px -1px rgba(0, 0, 0, 0.1)"),lg:n("box-shadow-lg","0 10px 15px -3px rgba(0, 0, 0, 0.1)"),xl:n("box-shadow-xl","0 20px 25px -5px rgba(0, 0, 0, 0.1)"),inset:n("box-shadow-inset","inset 0 2px 4px 0 rgba(0, 0, 0, 0.06)")},transitions:{fast:n("transition-fast","150ms"),base:n("transition-base","200ms"),slow:n("transition-slow","300ms")}}}const bh=({error:n,errorInfo:a})=>{const r=n instanceof lu,i=r?n.code:ou.UNKNOWN_ERROR,o=r?n.context:void 0;return t("div",{style:{padding:"2rem",margin:"1rem",border:"1px solid #e0e0e0",borderRadius:"8px",backgroundColor:"#fafafa",color:"#333"},role:"alert",children:[e("h2",{style:{marginTop:0,color:"#d32f2f"},children:"Theme Error"}),t("p",{children:[e("strong",{children:"Error:"})," ",n.message]}),r&&t("p",{children:[e("strong",{children:"Error Code:"})," ",i]}),o&&Object.keys(o).length>0&&t("details",{style:{marginTop:"1rem"},children:[e("summary",{style:{cursor:"pointer",fontWeight:"bold"},children:"Error Context"}),e("pre",{style:{marginTop:"0.5rem",padding:"0.5rem",backgroundColor:"#f5f5f5",borderRadius:"4px",overflow:"auto"},children:JSON.stringify(o,null,2)})]}),("undefined"==typeof process||"development"===process.env?.NODE_ENV)&&a&&t("details",{style:{marginTop:"1rem"},children:[e("summary",{style:{cursor:"pointer",fontWeight:"bold"},children:"Stack Trace (Development Only)"}),e("pre",{style:{marginTop:"0.5rem",padding:"0.5rem",backgroundColor:"#f5f5f5",borderRadius:"4px",overflow:"auto",fontSize:"0.875rem"},children:a.componentStack})]}),e("button",{onClick:()=>window.location.reload(),style:{marginTop:"1rem",padding:"0.5rem 1rem",backgroundColor:"#1976d2",color:"white",border:"none",borderRadius:"4px",cursor:"pointer"},children:"Reload Page"})]})};class vh extends v{constructor(e){super(e),this.logger=uu(),this.state={hasError:!1,error:null,errorInfo:null}}static getDerivedStateFromError(e){return{hasError:!0,error:e}}componentDidCatch(e,t){const n=e instanceof lu?e:new lu(e.message,ou.UNKNOWN_ERROR,{componentStack:t.componentStack});if(this.logger.error("Theme error boundary caught an error",n,{componentStack:t.componentStack,errorBoundary:"ThemeErrorBoundary"}),this.setState({error:e,errorInfo:t}),this.props.onError)try{this.props.onError(e,t)}catch(a){this.logger.error("Error in onError callback",a instanceof Error?a:Error(a+""),{originalError:e.message})}}componentDidUpdate(e){this.props.resetOnPropsChange&&this.state.hasError&&e.children!==this.props.children&&this.setState({hasError:!1,error:null,errorInfo:null})}render(){return this.state.hasError&&this.state.error&&this.state.errorInfo?this.props.fallback?this.props.fallback(this.state.error,this.state.errorInfo):e(bh,{error:this.state.error,errorInfo:this.state.errorInfo}):this.props.children}}function Sh(e={}){const{initialMode:t="system",syncWithSystem:n=!1,storageKey:a="atomix-theme",enableTransition:i=!0,transitionDuration:l=300}=e,[c,d]=r((()=>{if("undefined"==typeof window)return t;const e=Au(a);return e&&"system"!==e?e:"system"===t?xu():t}));return s((()=>{"undefined"!=typeof window&&(Nu({storageKey:a,enableTransition:i,transitionDuration:l}),d(Au(a)))}),[a,i,l]),s((()=>{if(n)return Tu((e=>{d(e),yu(e,{storageKey:a,enableTransition:i,transitionDuration:l})}))}),[n,a,i,l]),{mode:c,isDark:"dark"===c,isLight:"light"===c,toggle:o((()=>{const e=Eu({storageKey:a,enableTransition:i,transitionDuration:l});return d(e),e}),[a,i,l]),setMode:o((e=>{yu(e,{storageKey:a,enableTransition:i,transitionDuration:l}),d(e)}),[a,i,l]),resetToSystem:o((()=>{const e=xu();yu(e,{storageKey:a,enableTransition:i,transitionDuration:l}),d(e)}),[a,i,l]),clearPreference:o((()=>{"undefined"!=typeof window&&localStorage.removeItem(a)}),[a])}}const yh=({className:a="",showLabel:r=!1,lightLabel:i="Light",darkLabel:o="Dark",iconSize:s=20,variant:l="icon",render:c,ariaLabel:d="Toggle theme",...u})=>{const{mode:h,isDark:m,toggle:p}=Sh(u);return c?e(n,{children:c({isDark:m,toggle:p,mode:h})}):"icon"===l?e("button",{onClick:p,className:"theme-toggle theme-toggle-icon "+a,"aria-label":d,title:m?o:i,style:{background:"none",border:"none",cursor:"pointer",padding:"8px",borderRadius:"50%",display:"flex",alignItems:"center",justifyContent:"center",transition:"all 0.3s ease-in-out"},children:m?t("svg",{width:s,height:s,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[e("circle",{cx:"12",cy:"12",r:"5"}),e("line",{x1:"12",y1:"1",x2:"12",y2:"3"}),e("line",{x1:"12",y1:"21",x2:"12",y2:"23"}),e("line",{x1:"4.22",y1:"4.22",x2:"5.64",y2:"5.64"}),e("line",{x1:"18.36",y1:"18.36",x2:"19.78",y2:"19.78"}),e("line",{x1:"1",y1:"12",x2:"3",y2:"12"}),e("line",{x1:"21",y1:"12",x2:"23",y2:"12"}),e("line",{x1:"4.22",y1:"19.78",x2:"5.64",y2:"18.36"}),e("line",{x1:"18.36",y1:"5.64",x2:"19.78",y2:"4.22"})]}):e("svg",{width:s,height:s,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:e("path",{d:"M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z"})})}):"button"===l?t("button",{onClick:p,className:"theme-toggle theme-toggle-button "+a,"aria-label":d,style:{display:"flex",alignItems:"center",gap:"8px",padding:"8px 16px",borderRadius:"8px",border:"1px solid currentColor",background:"transparent",color:"inherit",cursor:"pointer",fontSize:"14px",fontWeight:"500",transition:"all 0.3s ease-in-out"},children:[m?t("svg",{width:s,height:s,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[e("circle",{cx:"12",cy:"12",r:"5"}),e("line",{x1:"12",y1:"1",x2:"12",y2:"3"}),e("line",{x1:"12",y1:"21",x2:"12",y2:"23"}),e("line",{x1:"4.22",y1:"4.22",x2:"5.64",y2:"5.64"}),e("line",{x1:"18.36",y1:"18.36",x2:"19.78",y2:"19.78"}),e("line",{x1:"1",y1:"12",x2:"3",y2:"12"}),e("line",{x1:"21",y1:"12",x2:"23",y2:"12"}),e("line",{x1:"4.22",y1:"19.78",x2:"5.64",y2:"18.36"}),e("line",{x1:"18.36",y1:"5.64",x2:"19.78",y2:"4.22"})]}):e("svg",{width:s,height:s,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:e("path",{d:"M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z"})}),r&&e("span",{children:m?o:i})]}):"switch"===l?e("div",{className:"theme-toggle theme-toggle-switch "+a,role:"button",tabIndex:0,onClick:p,onKeyDown:e=>"Enter"===e.key&&p(),"aria-label":d,style:{position:"relative",width:"56px",height:"28px",borderRadius:"14px",background:m?"#4b5563":"#d1d5db",cursor:"pointer",transition:"background 0.3s ease-in-out",display:"flex",alignItems:"center",padding:"2px"},children:e("div",{style:{position:"absolute",left:m?"auto":"2px",right:m?"2px":"auto",width:"24px",height:"24px",borderRadius:"50%",background:"white",boxShadow:"0 2px 4px rgba(0, 0, 0, 0.2)",transition:"all 0.3s ease-in-out",display:"flex",alignItems:"center",justifyContent:"center"},children:m?e("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"#4b5563",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:e("path",{d:"M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z"})}):t("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"#f59e0b",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[e("circle",{cx:"12",cy:"12",r:"5"}),e("line",{x1:"12",y1:"1",x2:"12",y2:"3"}),e("line",{x1:"12",y1:"21",x2:"12",y2:"23"}),e("line",{x1:"4.22",y1:"4.22",x2:"5.64",y2:"5.64"}),e("line",{x1:"18.36",y1:"18.36",x2:"19.78",y2:"19.78"}),e("line",{x1:"1",y1:"12",x2:"3",y2:"12"}),e("line",{x1:"21",y1:"12",x2:"23",y2:"12"}),e("line",{x1:"4.22",y1:"19.78",x2:"5.64",y2:"18.36"}),e("line",{x1:"18.36",y1:"5.64",x2:"19.78",y2:"4.22"})]})})}):null};yh.displayName="ThemeToggle";class Eh{constructor(e=document.documentElement){this.styleId="atomix-theme-applicator",this.root=e}applyTheme(e){this.clearAppliedVars(),au(Vd(e,{selector:":root",prefix:"atomix"}),this.styleId)}applyGlobalCSSVars(e){Object.entries(e).forEach((([e,t])=>{this.root.style.setProperty(e,t+"")}))}clearAppliedVars(){ru(this.styleId)}removeTheme(){this.clearAppliedVars(),ru(this.styleId)}updateCSSVars(e){this.applyGlobalCSSVars(e)}}let Ah=null;function xh(){return Ah||(Ah=new Eh),Ah}function Nh(e){xh().applyTheme(e)}const Th={mobile:{width:375,height:667,label:"Mobile (375px)"},tablet:{width:768,height:1024,label:"Tablet (768px)"},desktop:{width:1280,height:720,label:"Desktop (1280px)"},custom:{width:1280,height:720,label:"Custom"}},_h=({theme:a,showDetails:i=!0,showPalette:o=!0,showTypography:l=!0,showSpacing:c=!1,children:d,className:h,style:m})=>{const[p,g]=r(""),[f,b]=r(!1),[v,S]=r("desktop"),[y,E]=r(1280),[A,x]=r(720),[N,T]=r({}),_=u((()=>"custom"===v?{width:y,height:A}:Th[v]),[v,y,A]),C=u((()=>f?{...a,palette:{...a.palette,background:{default:"#121212",subtle:"#1e1e1e"},text:{primary:"#ffffff",secondary:"rgba(255, 255, 255, 0.8)",disabled:"rgba(255, 255, 255, 0.5)"}}}:a),[a,f]);s((()=>{const e=$u(C,{selector:":root",prefix:"atomix-preview"});g(e)}),[C]);const L=e=>{(e=>{T((t=>({...t,[e]:!t[e]})))})(e),setTimeout((()=>{T((t=>{const n={...t};return delete n[e],n}))}),200)};return t("div",{className:"atomix-theme-preview "+(h||""),style:m,children:[t("div",{className:"preview-controls",children:[t("div",{className:"control-group",children:[e("label",{children:"Viewport:"}),t("select",{value:v,onChange:e=>S(e.target.value),children:[e("option",{value:"mobile",children:"Mobile (375px)"}),e("option",{value:"tablet",children:"Tablet (768px)"}),e("option",{value:"desktop",children:"Desktop (1280px)"}),e("option",{value:"custom",children:"Custom"})]})]}),"custom"===v&&t(n,{children:[t("div",{className:"control-group",children:[e("label",{children:"Width:"}),e("input",{type:"number",value:y,onChange:e=>E(parseInt(e.target.value)||1280),min:"320",max:"3840"})]}),t("div",{className:"control-group",children:[e("label",{children:"Height:"}),e("input",{type:"number",value:A,onChange:e=>x(parseInt(e.target.value)||720),min:"240",max:"2160"})]})]}),e("div",{className:"control-group",children:t("label",{children:[e("input",{type:"checkbox",checked:f,onChange:e=>b(e.target.checked)}),"Dark Mode"]})})]}),t("div",{className:"viewport-wrapper",style:{width:_.width+"px",height:_.height+"px",maxWidth:"100%"},children:[e("style",{children:p}),i&&t("div",{className:"theme-details",children:[e("h2",{children:C.name}),C.description&&e("p",{children:C.description}),C.author&&t("p",{children:[e("strong",{children:"Author:"})," ",C.author]}),C.version&&t("p",{children:[e("strong",{children:"Version:"})," ",C.version]}),C.status&&t("p",{children:[e("strong",{children:"Status:"})," ",C.status]}),C.tags&&C.tags.length>0&&t("p",{children:[e("strong",{children:"Tags:"})," ",C.tags.join(", ")]})]}),o&&t("div",{className:"theme-palette",children:[e("h3",{children:"Color Palette"}),e("div",{className:"color-grid",children:["primary","secondary","error","warning","info","success"].map((n=>{const a=C.palette[n];return a&&"object"==typeof a&&"main"in a?t("div",{className:"color-item",children:[e("div",{className:"color-swatch",style:{backgroundColor:a.main}}),t("div",{className:"color-info",children:[e("strong",{children:n}),e("code",{children:a.main})]})]},n):null}))}),e("h4",{children:"Background"}),e("div",{className:"color-grid",children:Object.entries(C.palette.background).map((([n,a])=>t("div",{className:"color-item",children:[e("div",{className:"color-swatch",style:{backgroundColor:a}}),t("div",{className:"color-info",children:[e("strong",{children:n}),e("code",{children:a})]})]},n)))}),e("h4",{children:"Text"}),e("div",{className:"color-grid",children:Object.entries(C.palette.text).map((([n,a])=>t("div",{className:"color-item",children:[e("div",{className:"color-swatch",style:{backgroundColor:a}}),t("div",{className:"color-info",children:[e("strong",{children:n}),e("code",{children:a})]})]},n)))})]}),l&&t("div",{className:"theme-typography",children:[e("h3",{children:"Typography"}),t("div",{className:"typography-info",children:[t("p",{children:[e("strong",{children:"Font Family:"})," ",e("code",{children:C.typography.fontFamily})]}),t("p",{children:[e("strong",{children:"Base Font Size:"})," ",t("code",{children:[C.typography.fontSize,"px"]})]})]}),t("div",{className:"typography-samples",children:[e("h1",{style:{fontSize:C.typography.h1.fontSize,fontWeight:C.typography.h1.fontWeight,lineHeight:C.typography.h1.lineHeight},children:"Heading 1"}),e("h2",{style:{fontSize:C.typography.h2.fontSize,fontWeight:C.typography.h2.fontWeight,lineHeight:C.typography.h2.lineHeight},children:"Heading 2"}),e("h3",{style:{fontSize:C.typography.h3.fontSize,fontWeight:C.typography.h3.fontWeight,lineHeight:C.typography.h3.lineHeight},children:"Heading 3"}),e("p",{style:{fontSize:C.typography.body1.fontSize,fontWeight:C.typography.body1.fontWeight,lineHeight:C.typography.body1.lineHeight},children:"Body 1: Lorem ipsum dolor sit amet, consectetur adipiscing elit."}),e("p",{style:{fontSize:C.typography.body2.fontSize,fontWeight:C.typography.body2.fontWeight,lineHeight:C.typography.body2.lineHeight},children:"Body 2: Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua."})]})]}),c&&t("div",{className:"theme-spacing",children:[e("h3",{children:"Spacing"}),e("div",{className:"spacing-samples",children:[1,2,3,4,6,8,12].map((n=>t("div",{className:"spacing-item",children:[e("div",{className:"spacing-box",style:{width:C.spacing(n),height:C.spacing(n),backgroundColor:C.palette.primary.main}}),t("code",{children:[n," = ",C.spacing(n)]})]},n)))})]}),t("div",{className:"theme-components",children:[e("h3",{children:"Sample Components"}),t("div",{className:"component-group",children:[e("h4",{children:"Buttons"}),t("div",{className:"button-group",children:[e("button",{className:"interactive-button "+(N["btn-primary"]?"active":""),onClick:()=>L("btn-primary"),onMouseEnter:()=>T((e=>({...e,"btn-primary-hover":!0}))),onMouseLeave:()=>T((e=>{const t={...e};return delete t["btn-primary-hover"],t})),style:{backgroundColor:N["btn-primary-hover"]&&C.palette.primary.dark||C.palette.primary.main,color:C.palette.primary.contrastText,border:"none",padding:C.spacing(1,2),borderRadius:C.borderRadius.base,cursor:"pointer",transform:N["btn-primary"]?"scale(0.95)":"scale(1)",transition:"all 0.2s ease"},children:"Primary Button"}),e("button",{className:"interactive-button "+(N["btn-secondary"]?"active":""),onClick:()=>L("btn-secondary"),onMouseEnter:()=>T((e=>({...e,"btn-secondary-hover":!0}))),onMouseLeave:()=>T((e=>{const t={...e};return delete t["btn-secondary-hover"],t})),style:{backgroundColor:N["btn-secondary-hover"]&&C.palette.secondary.dark||C.palette.secondary.main,color:C.palette.secondary.contrastText,border:"none",padding:C.spacing(1,2),borderRadius:C.borderRadius.base,cursor:"pointer",transform:N["btn-secondary"]?"scale(0.95)":"scale(1)",transition:"all 0.2s ease"},children:"Secondary Button"}),e("button",{className:"interactive-button "+(N["btn-outline"]?"active":""),onClick:()=>L("btn-outline"),onMouseEnter:()=>T((e=>({...e,"btn-outline-hover":!0}))),onMouseLeave:()=>T((e=>{const t={...e};return delete t["btn-outline-hover"],t})),onFocus:()=>T((e=>({...e,"btn-outline-focus":!0}))),onBlur:()=>T((e=>{const t={...e};return delete t["btn-outline-focus"],t})),style:{backgroundColor:"transparent",color:C.palette.primary.main,border:"2px solid "+(N["btn-outline-focus"]&&C.palette.primary.dark||C.palette.primary.main),padding:C.spacing(1,2),borderRadius:C.borderRadius.base,cursor:"pointer",transform:N["btn-outline"]?"scale(0.95)":"scale(1)",transition:"all 0.2s ease",outline:N["btn-outline-focus"]?"2px solid "+C.palette.primary.main:"none",outlineOffset:"2px"},children:"Outline Button"})]})]}),t("div",{className:"component-group",children:[e("h4",{children:"Card"}),t("div",{className:"interactive-card",onMouseEnter:()=>T((e=>({...e,"card-hover":!0}))),onMouseLeave:()=>T((e=>{const t={...e};return delete t["card-hover"],t})),style:{backgroundColor:C.palette.background.subtle,border:"1px solid "+C.palette.text.disabled,borderRadius:C.borderRadius.lg,padding:C.spacing(3),boxShadow:N["card-hover"]?C.shadows.lg:C.shadows.md,maxWidth:"300px",transition:"all 0.2s ease",cursor:"pointer"},children:[e("h5",{style:{margin:0,marginBottom:C.spacing(1)},children:"Card Title"}),e("p",{style:{margin:0,color:C.palette.text.secondary,fontSize:C.typography.body2.fontSize},children:"This is a sample card component showing how the theme colors and spacing work together."})]})]})]}),d&&t("div",{className:"theme-custom",children:[e("h3",{children:"Custom Components"}),d]})]}),e("style",{children:`\n .atomix-theme-preview {\n padding: 24px;\n font-family: ${C.typography.fontFamily};\n color: ${C.palette.text.primary};\n background-color: ${C.palette.background.default};\n }\n\n .preview-controls {\n display: flex;\n gap: 16px;\n align-items: center;\n padding: 16px;\n background: ${C.palette.background.subtle};\n border-radius: ${C.borderRadius.md};\n margin-bottom: 24px;\n flex-wrap: wrap;\n }\n\n .control-group {\n display: flex;\n align-items: center;\n gap: 8px;\n }\n\n .control-group label {\n font-size: 14px;\n color: ${C.palette.text.secondary};\n }\n\n .control-group select,\n .control-group input[type="number"] {\n padding: 6px 12px;\n border: 1px solid ${C.palette.text.disabled};\n border-radius: ${C.borderRadius.base};\n font-size: 14px;\n background: ${C.palette.background.default};\n color: ${C.palette.text.primary};\n }\n\n .control-group input[type="checkbox"] {\n margin-right: 4px;\n }\n\n .viewport-wrapper {\n border: 2px solid ${C.palette.text.disabled};\n border-radius: ${C.borderRadius.lg};\n overflow: auto;\n background: ${C.palette.background.default};\n margin: 0 auto;\n box-shadow: ${C.shadows.lg};\n }\n\n .theme-details {\n margin-bottom: 32px;\n padding: 16px;\n background-color: ${C.palette.background.subtle};\n border-radius: ${C.borderRadius.lg};\n }\n\n .theme-palette,\n .theme-typography,\n .theme-spacing,\n .theme-components {\n margin-bottom: 32px;\n padding: 16px;\n }\n\n .color-grid {\n display: grid;\n grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));\n gap: 16px;\n margin-bottom: 16px;\n }\n\n .color-item {\n display: flex;\n align-items: center;\n gap: 8px;\n }\n\n .color-swatch {\n width: 40px;\n height: 40px;\n border-radius: ${C.borderRadius.base};\n border: 1px solid ${C.palette.text.disabled};\n }\n\n .color-info {\n display: flex;\n flex-direction: column;\n gap: 4px;\n }\n\n .color-info code {\n font-size: 12px;\n color: ${C.palette.text.secondary};\n }\n\n .typography-samples {\n margin-top: 16px;\n }\n\n .typography-samples > * {\n margin: 8px 0;\n }\n\n .spacing-samples {\n display: flex;\n gap: 16px;\n flex-wrap: wrap;\n margin-top: 16px;\n }\n\n .spacing-item {\n display: flex;\n flex-direction: column;\n align-items: center;\n gap: 8px;\n }\n\n .spacing-box {\n border: 1px solid ${C.palette.text.disabled};\n }\n\n .component-group {\n margin-bottom: 24px;\n }\n\n .button-group {\n display: flex;\n gap: 12px;\n flex-wrap: wrap;\n }\n\n .interactive-button {\n transition: all 0.2s ease;\n }\n\n .interactive-button:focus-visible {\n outline: 2px solid ${C.palette.primary.main};\n outline-offset: 2px;\n }\n\n .interactive-card {\n transition: all 0.2s ease;\n }\n\n h3 {\n color: ${C.palette.text.primary};\n border-bottom: 2px solid ${C.palette.primary.main};\n padding-bottom: 8px;\n }\n\n h4 {\n color: ${C.palette.text.primary};\n margin-top: 24px;\n margin-bottom: 12px;\n }\n `})]})};class Ch{validate(e,t){const n=[],a=[],r=[],i=this.validatePalette(e.palette,t);n.push(...i.errors),a.push(...i.warnings),r.push(...i.a11yIssues);const o=this.validateTypography(e.typography);n.push(...o.errors),a.push(...o.warnings);const s=this.validateSpacing(e.spacing);n.push(...s.errors),a.push(...s.warnings);const l=this.validateBreakpoints(e.breakpoints);n.push(...l.errors),a.push(...l.warnings);const c=this.validateTransitions(e.transitions);n.push(...c.errors),a.push(...c.warnings);const d=this.validateZIndex(e.zIndex);n.push(...d.errors),a.push(...d.warnings);const u=this.validateBorderRadius(e.borderRadius);n.push(...u.errors),a.push(...u.warnings);const h=this.validateCustom(e.custom);return n.push(...h.errors),a.push(...h.warnings),{valid:0===n.length,errors:n,warnings:a,a11yIssues:r}}validatePalette(e,t){const n=[],a=[],r=[],i=t?.a11y?.contrastTarget||4.5;if(e.primary){const t=this.checkContrast(e.primary.main,e.primary.contrastText||"#000000");if(i>t){const o={type:"contrast",severity:3>t?"error":"warning",message:`Primary color contrast ratio (${t.toFixed(2)}) is below target (${i})`,property:"palette.primary",value:e.primary.main};r.push(o),3>t?n.push(o.message):a.push(o.message)}}if(e.text&&e.background){const t=this.checkContrast(e.background.default,e.text.primary);if(i>t){const o={type:"contrast",severity:3>t?"error":"warning",message:`Text color contrast ratio (${t.toFixed(2)}) is below target (${i})`,property:"palette.text.primary",value:e.text.primary};r.push(o),3>t?n.push(o.message):a.push(o.message)}}const o=["primary","secondary","error","warning","info","success"];for(const s of o){const t=e[s];t&&(this.isValidColor(t.main)||n.push(`Invalid color value for ${s}.main: ${t.main}`))}return{valid:0===n.length,errors:n,warnings:a,a11yIssues:r}}validateTypography(e){const t=[],n=[];return e.fontFamily&&"string"==typeof e.fontFamily||t.push("Typography must have a fontFamily"),e.fontSize&&"number"==typeof e.fontSize&&e.fontSize>0||t.push("Typography must have a valid fontSize"),e.fontSize&&12>e.fontSize&&n.push("Font size is below recommended minimum (12px) for accessibility"),{valid:0===t.length,errors:t,warnings:n,a11yIssues:[]}}validateSpacing(e){const t=[];if("function"!=typeof e)t.push("Spacing must be a function");else try{"string"!=typeof e(1)&&t.push("Spacing function must return a string")}catch(n){t.push("Spacing function error: "+(n instanceof Error?n.message:n+""))}return{valid:0===t.length,errors:t,warnings:[],a11yIssues:[]}}validateBreakpoints(e){const t=[],n=[];if(e.values){const a=["xs","sm","md","lg","xl"];for(const n of a)"number"!=typeof e.values[n]&&t.push(`Breakpoint ${n} must be a number`);const r=[e.values.xs,e.values.sm,e.values.md,e.values.lg,e.values.xl].filter((e=>"number"==typeof e));for(let e=1;e<r.length;e++){const t=r[e],a=r[e-1];if(null!=t&&null!=a&&a>=t){n.push("Breakpoint values should be in ascending order");break}}}else t.push("Breakpoints must have values");return{valid:0===t.length,errors:t,warnings:n,a11yIssues:[]}}checkContrast(e,t){try{return Du(e,t)}catch{return 0}}isValidColor(e){return!!/^#([0-9A-Fa-f]{3}|[0-9A-Fa-f]{6})$/.test(e)||!!/^rgba?\(/.test(e)||!!/^hsla?\(/.test(e)}validateTransitions(e){const t=[],n=[],a=[];if(!e)return t.push("Transitions configuration is required"),{valid:!1,errors:t,warnings:n,a11yIssues:a};if(e.duration){const a=["shortest","shorter","short","standard","complex","enteringScreen","leavingScreen"];for(const r of a){const a=e.duration[r];void 0!==a&&("number"!=typeof a||0>a?t.push(`Transition duration ${r} must be a non-negative number`):a>1e4&&n.push(`Transition duration ${r} (${a}ms) exceeds recommended maximum (10000ms)`))}}if(e.easing){const a=["easeInOut","easeOut","easeIn","sharp"],r=/^(linear|ease|ease-in|ease-out|ease-in-out|cubic-bezier\([^)]+\)|steps\([^)]+\))$/i;for(const i of a){const a=e.easing[i];void 0!==a&&("string"!=typeof a?t.push(`Transition easing ${i} must be a string`):r.test(a)||n.push(`Transition easing ${i} may not be a valid CSS easing function: ${a}`))}}return{valid:0===t.length,errors:t,warnings:n,a11yIssues:a}}validateZIndex(e){const t=[],n=[],a=[];if(!e)return t.push("Z-index configuration is required"),{valid:!1,errors:t,warnings:n,a11yIssues:a};const r=Object.entries(e).filter((([,e])=>"number"==typeof e));for(const[i,o]of Object.entries(e))void 0!==o&&("number"!=typeof o?t.push(`Z-index ${i} must be a number, got ${typeof o}`):0>o?t.push(`Z-index ${i} must be non-negative, got ${o}`):o>1e4&&n.push(`Z-index ${i} (${o}) exceeds recommended maximum (10000)`));for(let i=0;i<r.length;i++)for(let e=i+1;e<r.length;e++){const t=r[i],a=r[e];if(!t||!a)continue;const[o,s]=t,[l,c]=a,d=Math.abs(s-c);10>d&&d>0&&n.push(`Z-index values ${o} (${s}) and ${l} (${c}) are very close, potential layering conflicts`)}return{valid:0===t.length,errors:t,warnings:n,a11yIssues:a}}validateBorderRadius(e){const t=[],n=[],a=[];if(!e)return t.push("Border radius configuration is required"),{valid:!1,errors:t,warnings:n,a11yIssues:a};const r=["base","sm","md","lg","xl","xxl","3xl","4xl","pill"];for(const i of r){const a=e[i];if(void 0!==a){let e;if("number"==typeof a)e=a;else{if("string"!=typeof a){t.push(`Border radius ${i} must be a number or string, got ${typeof a}`);continue}{const n=a.match(/^([\d.]+)(px|rem|em|%)?$/);if(!n){t.push(`Border radius ${i} has invalid format: ${a}`);continue}const[,r]=n;if(!r){t.push(`Border radius ${i} has invalid numeric value: ${a}`);continue}e=parseFloat(r)}}0>e?t.push(`Border radius ${i} must be non-negative, got ${e}`):e>1e3&&n.push(`Border radius ${i} (${a}) exceeds recommended maximum (1000px)`)}}return{valid:0===t.length,errors:t,warnings:n,a11yIssues:a}}validateCustom(e){const t=[],n=[],a=[];if(!e||"object"!=typeof e)return{valid:!0,errors:t,warnings:n,a11yIssues:a};const r=new WeakSet;let i=0;const o=(e,t="custom")=>{if(i>10)n.push(`Custom property path ${t} exceeds maximum depth (10), potential circular reference`);else if(null!==e&&"object"==typeof e)if(r.has(e))n.push("Circular reference detected in custom property path: "+t);else{r.add(e),i++;try{for(const[a,r]of Object.entries(e)){const e=`${t}.${a}`;/^[a-zA-Z_$][a-zA-Z0-9_$]*$/.test(a)||n.push(`Custom property name "${a}" in ${t} does not follow naming conventions (should be valid identifier)`),null===r||"object"!=typeof r||Array.isArray(r)||o(r,e)}}finally{i--,r.delete(e)}}};return o(e),{valid:0===t.length,errors:t,warnings:n,a11yIssues:a}}}const Lh=({theme:n,showValidation:a=!0,showCSSVariables:l=!0,showStructure:c=!0,className:d,style:h})=>{const[m,p]=r("overview"),[g,f]=r(new Set(["palette"])),[b,v]=r(""),[S,y]=r(""),[E,A]=r(null),x=i(void 0);s((()=>(x.current&&clearTimeout(x.current),x.current=setTimeout((()=>{y(b)}),300),()=>{x.current&&clearTimeout(x.current)})),[b]);const N=u((()=>{if(!a)return null;try{return(new Ch).validate(n)}catch(e){return{valid:!1,errors:["Failed to validate theme: "+(e instanceof Error?e.message:e+"")],warnings:[],a11yIssues:[]}}}),[n,a]),T=u((()=>{if(!l)return"";try{return $u(n,{selector:":root",prefix:"atomix"})}catch(e){return`/* Error generating CSS variables: ${e instanceof Error?e.message:e+""} */`}}),[n,l]),_=u((()=>{const e=[],t=(n,a="",r=0)=>{if(10>=r)if(null!=n)if("object"!=typeof n||Array.isArray(n)){const t=a.toLowerCase(),r=S.toLowerCase(),i=!S||Ra(t).call(t,r);e.push({path:a,value:n,matches:i})}else Object.entries(n).forEach((([n,i])=>{if("__isJSTheme"===n)return;const o=a?`${a}.${n}`:n,s=o.toLowerCase(),l=S.toLowerCase(),c=!S||Ra(s).call(s,l);if("object"!=typeof i||null===i||Array.isArray(i)){const t="string"==typeof i?i.toLowerCase():(i+"").toLowerCase(),n=!S||Ra(t).call(t,l);e.push({path:o,value:i,matches:c||n})}else e.push({path:o,value:null,matches:c}),t(i,o,r+1)}));else e.push({path:a,value:n,matches:!1})};return t(n),e}),[n,S]),C=o((async e=>{try{await navigator.clipboard.writeText(e),A(e),setTimeout((()=>A(null)),2e3)}catch(t){const n=document.createElement("textarea");n.value=e,n.style.position="fixed",n.style.opacity="0",document.body.appendChild(n),n.select();try{document.execCommand("copy"),A(e),setTimeout((()=>A(null)),2e3)}catch{}document.body.removeChild(n)}}),[]),L=(t,n)=>n?t.split(RegExp(`(${n})`,"gi")).map(((t,a)=>t.toLowerCase()===n.toLowerCase()?e("mark",{className:"search-highlight",children:t},a):t)):t,I=(n,a=0,r="")=>null==n?e("span",{className:"value-null",children:"null"}):"string"==typeof n?t("span",{className:"value-string",children:['"',L(n,S),'"']}):"number"==typeof n?e("span",{className:"value-number",children:n}):"boolean"==typeof n?e("span",{className:"value-boolean",children:n+""}):"function"==typeof n?e("span",{className:"value-function",children:"function"}):Array.isArray(n)?t("div",{className:"value-array",children:["[",n.map(((e,i)=>t("div",{className:"array-item",children:[I(e,a+1,`${r}[${i}]`),i<n.length-1&&","]},i))),"]"]}):"object"==typeof n?t("div",{className:"value-object",style:{marginLeft:16*a},children:["{",Object.entries(n).map((([n,i])=>{const o=r?`${r}.${n}`:n;return t("div",{className:"object-property",children:[t("span",{className:"property-key clickable",onClick:()=>C(o),title:"Click to copy: "+o,children:[L(n,S),":"]})," ",I(i,a+1,o),E===o&&e("span",{className:"copy-feedback",children:"✓ Copied!"})]},n)})),"}"]}):e("span",{children:n+""});return t("div",{className:"atomix-theme-inspector "+(d||""),style:h,children:[t("div",{className:"inspector-tabs",children:[e("button",{className:"tab "+("overview"===m?"active":""),onClick:()=>p("overview"),children:"Overview"}),a&&t("button",{className:"tab "+("validation"===m?"active":""),onClick:()=>p("validation"),children:["Validation",N&&!N.valid&&e("span",{className:"tab-badge error",children:N.errors.length})]}),l&&e("button",{className:"tab "+("css"===m?"active":""),onClick:()=>p("css"),children:"CSS Variables"}),c&&e("button",{className:"tab "+("structure"===m?"active":""),onClick:()=>p("structure"),children:"Structure"})]}),t("div",{className:"inspector-content",children:["overview"===m&&t("div",{className:"inspector-overview",children:[t("div",{className:"theme-metadata",children:[e("h3",{children:"Theme Information"}),e("table",{children:t("tbody",{children:[t("tr",{children:[e("td",{children:e("strong",{children:"Name:"})}),e("td",{children:n.name})]}),n.description&&t("tr",{children:[e("td",{children:e("strong",{children:"Description:"})}),e("td",{children:n.description})]}),n.author&&t("tr",{children:[e("td",{children:e("strong",{children:"Author:"})}),e("td",{children:n.author})]}),n.version&&t("tr",{children:[e("td",{children:e("strong",{children:"Version:"})}),e("td",{children:n.version})]}),n.status&&t("tr",{children:[e("td",{children:e("strong",{children:"Status:"})}),e("td",{children:e("span",{className:"status-badge status-"+n.status,children:n.status})})]}),t("tr",{children:[e("td",{children:e("strong",{children:"Dark Mode:"})}),e("td",{children:n.supportsDarkMode?"Yes":"No"})]}),n.tags&&n.tags.length>0&&t("tr",{children:[e("td",{children:e("strong",{children:"Tags:"})}),e("td",{children:n.tags.map((t=>e("span",{className:"tag",children:t},t)))})]})]})})]}),t("div",{className:"theme-stats",children:[e("h3",{children:"Statistics"}),t("div",{className:"stats-grid",children:[t("div",{className:"stat-item",children:[e("div",{className:"stat-value",children:Object.keys(n.palette).length}),e("div",{className:"stat-label",children:"Palette Colors"})]}),t("div",{className:"stat-item",children:[e("div",{className:"stat-value",children:Object.keys(n.typography).length}),e("div",{className:"stat-label",children:"Typography Variants"})]}),t("div",{className:"stat-item",children:[e("div",{className:"stat-value",children:Object.keys(n.shadows).length}),e("div",{className:"stat-label",children:"Shadow Variants"})]}),t("div",{className:"stat-item",children:[e("div",{className:"stat-value",children:Object.keys(n.custom).length}),e("div",{className:"stat-label",children:"Custom Properties"})]})]})]})]}),"validation"===m&&(N?t("div",{className:"inspector-validation",children:[e("div",{className:"validation-status "+(N.valid?"valid":"invalid"),children:N.valid?"✅ Theme is valid":"❌ Theme has issues"}),N.errors.length>0&&t("div",{className:"validation-section",children:[e("h3",{children:"Errors"}),e("ul",{className:"validation-list error-list",children:N.errors.map(((t,n)=>e("li",{children:t},n)))})]}),N.warnings.length>0&&t("div",{className:"validation-section",children:[e("h3",{children:"Warnings"}),e("ul",{className:"validation-list warning-list",children:N.warnings.map(((t,n)=>e("li",{children:t},n)))})]}),N.a11yIssues.length>0&&t("div",{className:"validation-section",children:[e("h3",{children:"Accessibility Issues"}),e("ul",{className:"validation-list a11y-list",children:N.a11yIssues.map(((n,a)=>t("li",{className:"a11y-"+n.severity,children:[t("strong",{children:[n.type,":"]})," ",n.message,n.property&&e("code",{children:n.property})]},a)))})]})]}):null),"css"===m&&t("div",{className:"inspector-css",children:[t("div",{className:"css-header",children:[e("h3",{children:"Generated CSS Variables"}),e("button",{onClick:()=>navigator.clipboard?.writeText(T),className:"copy-button",children:"Copy to Clipboard"})]}),e("pre",{className:"css-code",children:e("code",{children:T})})]}),"structure"===m&&(()=>{const a=S?_.filter((e=>e.matches)):_;return t("div",{className:"inspector-structure",children:[t("div",{className:"structure-header-controls",children:[e("h3",{children:"Theme Structure"}),t("div",{className:"search-controls",children:[e("input",{type:"text",placeholder:"Search properties...",value:b,onChange:e=>v(e.target.value),className:"search-input"}),b&&e("button",{className:"clear-search",onClick:()=>v(""),title:"Clear search",children:"×"}),S&&t("span",{className:"search-results-count",children:[a.length," result",1!==a.length?"s":""]})]})]}),S&&0===a.length&&t("div",{className:"no-results",children:['No properties found matching "',S,'"']}),e("div",{className:"structure-tree",children:Object.entries(n).map((([n,a])=>{if("__isJSTheme"===n)return null;const r=g.has(n),i="object"==typeof a&&null!==a&&!Array.isArray(a),o=!S||_.some((e=>e.path.startsWith(n)&&e.matches));return S&&!o?null:t("div",{className:"structure-node",children:[t("div",{className:"structure-header",onClick:()=>i&&(e=>{const t=new Set(g);t.has(e)?t.delete(e):t.add(e),f(t)})(n),children:[i&&e("span",{className:"expand-icon "+(r?"expanded":""),children:"▶"}),e("span",{className:"property-name clickable",onClick:e=>{e.stopPropagation(),C(n)},title:"Click to copy: "+n,children:L(n,S)}),E===n&&e("span",{className:"copy-feedback",children:"✓ Copied!"}),e("span",{className:"property-type",children:Array.isArray(a)?"array":typeof a})]}),i&&r&&e("div",{className:"structure-children",children:I(a,0,n)}),!i&&e("div",{className:"structure-value",children:I(a,0,n)})]},n)}))})]})})()]}),e("style",{children:"\n .atomix-theme-inspector {\n border: 1px solid #e0e0e0;\n border-radius: 8px;\n background: white;\n font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;\n }\n\n .inspector-tabs {\n display: flex;\n border-bottom: 1px solid #e0e0e0;\n background: #f5f5f5;\n border-radius: 8px 8px 0 0;\n }\n\n .tab {\n padding: 12px 16px;\n border: none;\n background: none;\n cursor: pointer;\n border-bottom: 2px solid transparent;\n position: relative;\n }\n\n .tab:hover {\n background: #e0e0e0;\n }\n\n .tab.active {\n background: white;\n border-bottom-color: #2196f3;\n }\n\n .tab-badge {\n position: absolute;\n top: 4px;\n right: 4px;\n background: #f44336;\n color: white;\n border-radius: 10px;\n padding: 2px 6px;\n font-size: 10px;\n min-width: 16px;\n text-align: center;\n }\n\n .inspector-content {\n padding: 16px;\n max-height: 600px;\n overflow-y: auto;\n }\n\n .theme-metadata table {\n width: 100%;\n border-collapse: collapse;\n }\n\n .theme-metadata td {\n padding: 8px;\n border-bottom: 1px solid #f0f0f0;\n vertical-align: top;\n }\n\n .status-badge {\n padding: 4px 8px;\n border-radius: 4px;\n font-size: 12px;\n text-transform: uppercase;\n }\n\n .status-stable { background: #e8f5e8; color: #2e7d32; }\n .status-beta { background: #fff3e0; color: #f57c00; }\n .status-experimental { background: #fce4ec; color: #c2185b; }\n .status-deprecated { background: #ffebee; color: #d32f2f; }\n\n .tag {\n display: inline-block;\n background: #e3f2fd;\n color: #1976d2;\n padding: 2px 6px;\n border-radius: 4px;\n font-size: 12px;\n margin-right: 4px;\n }\n\n .stats-grid {\n display: grid;\n grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));\n gap: 16px;\n margin-top: 16px;\n }\n\n .stat-item {\n text-align: center;\n padding: 16px;\n background: #f5f5f5;\n border-radius: 8px;\n }\n\n .stat-value {\n font-size: 24px;\n font-weight: bold;\n color: #2196f3;\n }\n\n .stat-label {\n font-size: 12px;\n color: #666;\n margin-top: 4px;\n }\n\n .validation-status {\n padding: 12px;\n border-radius: 8px;\n margin-bottom: 16px;\n font-weight: bold;\n }\n\n .validation-status.valid {\n background: #e8f5e8;\n color: #2e7d32;\n }\n\n .validation-status.invalid {\n background: #ffebee;\n color: #d32f2f;\n }\n\n .validation-list {\n margin: 0;\n padding-left: 20px;\n }\n\n .validation-list li {\n margin-bottom: 8px;\n }\n\n .error-list li { color: #d32f2f; }\n .warning-list li { color: #f57c00; }\n .a11y-list li { color: #7b1fa2; }\n\n .css-header {\n display: flex;\n justify-content: space-between;\n align-items: center;\n margin-bottom: 16px;\n }\n\n .copy-button {\n padding: 8px 16px;\n background: #2196f3;\n color: white;\n border: none;\n border-radius: 4px;\n cursor: pointer;\n }\n\n .copy-button:hover {\n background: #1976d2;\n }\n\n .css-code {\n background: #f5f5f5;\n padding: 16px;\n border-radius: 8px;\n overflow-x: auto;\n font-family: 'Monaco', 'Menlo', monospace;\n font-size: 12px;\n line-height: 1.4;\n }\n\n .structure-header-controls {\n display: flex;\n justify-content: space-between;\n align-items: center;\n margin-bottom: 16px;\n flex-wrap: wrap;\n gap: 12px;\n }\n\n .structure-header-controls h3 {\n margin: 0;\n }\n\n .search-controls {\n display: flex;\n align-items: center;\n gap: 8px;\n }\n\n .search-input {\n padding: 8px 12px;\n border: 1px solid #e0e0e0;\n border-radius: 4px;\n font-size: 14px;\n width: 250px;\n }\n\n .search-input:focus {\n outline: none;\n border-color: #2196f3;\n }\n\n .clear-search {\n background: #f44336;\n color: white;\n border: none;\n border-radius: 50%;\n width: 24px;\n height: 24px;\n cursor: pointer;\n font-size: 18px;\n line-height: 1;\n display: flex;\n align-items: center;\n justify-content: center;\n }\n\n .clear-search:hover {\n background: #d32f2f;\n }\n\n .search-results-count {\n font-size: 12px;\n color: #666;\n padding: 4px 8px;\n background: #f5f5f5;\n border-radius: 4px;\n }\n\n .no-results {\n padding: 24px;\n text-align: center;\n color: #666;\n font-style: italic;\n }\n\n .search-highlight {\n background: #fff59d;\n padding: 2px 4px;\n border-radius: 2px;\n }\n\n .structure-node {\n margin-bottom: 8px;\n }\n\n .structure-header {\n display: flex;\n align-items: center;\n gap: 8px;\n cursor: pointer;\n padding: 4px;\n border-radius: 4px;\n }\n\n .structure-header:hover {\n background: #f0f0f0;\n }\n\n .expand-icon {\n transition: transform 0.2s;\n font-size: 12px;\n }\n\n .expand-icon.expanded {\n transform: rotate(90deg);\n }\n\n .property-name {\n font-weight: bold;\n color: #1976d2;\n }\n\n .property-name.clickable {\n cursor: pointer;\n text-decoration: underline;\n text-decoration-style: dotted;\n }\n\n .property-name.clickable:hover {\n color: #0d47a1;\n }\n\n .copy-feedback {\n font-size: 12px;\n color: #4caf50;\n margin-left: 8px;\n font-weight: normal;\n }\n\n .property-type {\n font-size: 12px;\n color: #666;\n background: #f0f0f0;\n padding: 2px 6px;\n border-radius: 4px;\n }\n\n .structure-children,\n .structure-value {\n margin-left: 24px;\n margin-top: 8px;\n }\n\n .value-string { color: #388e3c; }\n .value-number { color: #1976d2; }\n .value-boolean { color: #7b1fa2; }\n .value-null { color: #666; font-style: italic; }\n .value-function { color: #f57c00; font-style: italic; }\n\n .value-object {\n font-family: monospace;\n font-size: 12px;\n }\n\n .object-property {\n margin-left: 16px;\n }\n\n .property-key {\n color: #1976d2;\n font-weight: bold;\n }\n\n .property-key.clickable {\n cursor: pointer;\n text-decoration: underline;\n text-decoration-style: dotted;\n }\n\n .property-key.clickable:hover {\n color: #0d47a1;\n }\n "})]})},Ih=({themeA:a,themeB:o,showOnlyDifferences:l=!1,className:c,style:d})=>{const[h,m]=r(""),[p,g]=r(""),[f,b]=r("all"),[v,S]=r("all"),y=i(void 0);s((()=>(y.current&&clearTimeout(y.current),y.current=setTimeout((()=>{g(h)}),300),()=>{y.current&&clearTimeout(y.current)})),[h]);const E=u((()=>{const e=[],t=e=>e.split(".")[0]||"other",n=(a,r,i="")=>{const o=new Set([...Object.keys(a||{}),...Object.keys(r||{})]);for(const s of o){if("__isJSTheme"===s)continue;const o=i?`${i}.${s}`:s,l=a?.[s],c=r?.[s];void 0===l&&void 0!==c?e.push({path:o,valueA:void 0,valueB:c,type:"added",category:t(o)}):void 0!==l&&void 0===c?e.push({path:o,valueA:l,valueB:void 0,type:"removed",category:t(o)}):"object"!=typeof l||"object"!=typeof c||Array.isArray(l)||Array.isArray(c)?JSON.stringify(l)!==JSON.stringify(c)&&e.push({path:o,valueA:l,valueB:c,type:"changed",category:t(o)}):n(l,c,o)}};return n(a,o),e}),[a,o]),A=u((()=>{let e=E;if("all"!==f&&(e=e.filter((e=>e.type===f))),"all"!==v&&(e=e.filter((e=>e.category===v))),p){const t=p.toLowerCase();e=e.filter((e=>{var n,a,r;return Ra(n=e.path.toLowerCase()).call(n,t)||Ra(a=(e.valueA+"").toLowerCase()).call(a,t)||Ra(r=(e.valueB+"").toLowerCase()).call(r,t)}))}return e}),[E,f,v,p]),x=u((()=>{const e=new Set(E.map((e=>e.category)).filter(Boolean));return Array.from(e).sort()}),[E]),N=e=>void 0===e?"undefined":null===e?"null":"string"==typeof e?`"${e}"`:"object"==typeof e?JSON.stringify(e,null,2):e+"",T=e=>{switch(e){case"added":return"#4caf50";case"removed":return"#f44336";case"changed":return"#ff9800";default:return"#666"}},_=e=>{switch(e){case"added":return"rgba(76, 175, 80, 0.1)";case"removed":return"rgba(244, 67, 54, 0.1)";case"changed":return"rgba(255, 152, 0, 0.1)";default:return"transparent"}},C=(t,n)=>n?t.split(RegExp(`(${n})`,"gi")).map(((t,a)=>t.toLowerCase()===n.toLowerCase()?e("mark",{className:"search-highlight",children:t},a):t)):t,L=u((()=>({total:E.length,added:E.filter((e=>"added"===e.type)).length,removed:E.filter((e=>"removed"===e.type)).length,changed:E.filter((e=>"changed"===e.type)).length,filtered:A.length})),[E,A]);return t("div",{className:"atomix-theme-comparator "+(c||""),style:d,children:[t("div",{className:"comparator-header",children:[t("div",{className:"theme-column",children:[e("h3",{children:a.name}),a.version&&t("span",{className:"version",children:["v",a.version]})]}),e("div",{className:"vs-divider",children:"VS"}),t("div",{className:"theme-column",children:[e("h3",{children:o.name}),o.version&&t("span",{className:"version",children:["v",o.version]})]})]}),t("div",{className:"filter-controls",children:[t("div",{className:"filter-group",children:[e("label",{children:"Search:"}),e("input",{type:"text",placeholder:"Search differences...",value:h,onChange:e=>m(e.target.value),className:"search-input"}),h&&e("button",{className:"clear-search",onClick:()=>m(""),title:"Clear search",children:"×"})]}),t("div",{className:"filter-group",children:[e("label",{children:"Type:"}),t("select",{value:f,onChange:e=>b(e.target.value),className:"filter-select",children:[e("option",{value:"all",children:"All Types"}),e("option",{value:"added",children:"Added"}),e("option",{value:"removed",children:"Removed"}),e("option",{value:"changed",children:"Changed"})]})]}),x.length>0&&t("div",{className:"filter-group",children:[e("label",{children:"Category:"}),t("select",{value:v,onChange:e=>S(e.target.value),className:"filter-select",children:[e("option",{value:"all",children:"All Categories"}),x.map((t=>e("option",{value:t,children:t},t)))]})]}),(h||"all"!==f||"all"!==v)&&e("button",{className:"clear-filters",onClick:()=>{m(""),b("all"),S("all")},children:"Clear Filters"})]}),t("div",{className:"comparator-stats",children:[t("div",{className:"stat",children:[e("span",{className:"stat-value",children:L.total}),e("span",{className:"stat-label",children:"Total Differences"})]}),t("div",{className:"stat stat-added",children:[e("span",{className:"stat-value",style:{color:"#4caf50"},children:L.added}),e("span",{className:"stat-label",children:"Added"})]}),t("div",{className:"stat stat-removed",children:[e("span",{className:"stat-value",style:{color:"#f44336"},children:L.removed}),e("span",{className:"stat-label",children:"Removed"})]}),t("div",{className:"stat stat-changed",children:[e("span",{className:"stat-value",style:{color:"#ff9800"},children:L.changed}),e("span",{className:"stat-label",children:"Changed"})]}),L.filtered!==L.total&&t("div",{className:"stat stat-filtered",children:[e("span",{className:"stat-value",style:{color:"#2196f3"},children:L.filtered}),e("span",{className:"stat-label",children:"Filtered"})]})]}),0===A.length?e("div",{className:"no-differences",children:0===E.length?e(n,{children:"✅ Themes are identical"}):e(n,{children:"No differences match your filters. Try adjusting your search or filters."})}):t("div",{className:"differences-list",children:[t("h4",{children:["Differences (",A.length,")"]}),A.map(((n,r)=>t("div",{className:"difference-item difference-"+n.type,style:{backgroundColor:_(n.type)},children:[t("div",{className:"difference-header",children:[e("span",{className:"difference-type",style:{backgroundColor:T(n.type)},children:n.type}),e("code",{className:"difference-path",children:C(n.path,p)}),n.category&&e("span",{className:"difference-category",children:n.category})]}),t("div",{className:"difference-values",children:[t("div",{className:"value-column value-"+("added"===n.type?"empty":"filled"),children:[e("div",{className:"value-label",children:a.name}),e("pre",{className:"value-content",children:"added"===n.type?e("span",{className:"value-empty",children:"—"}):C(N(n.valueA),p)})]}),e("div",{className:"value-divider",children:"→"}),t("div",{className:"value-column value-"+("removed"===n.type?"empty":"filled"),children:[e("div",{className:"value-label",children:o.name}),e("pre",{className:"value-content",children:"removed"===n.type?e("span",{className:"value-empty",children:"—"}):C(N(n.valueB),p)})]})]})]},r)))]}),e("style",{children:"\n .atomix-theme-comparator {\n border: 1px solid #e0e0e0;\n border-radius: 8px;\n background: white;\n font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;\n padding: 24px;\n }\n\n .comparator-header {\n display: grid;\n grid-template-columns: 1fr auto 1fr;\n gap: 24px;\n align-items: center;\n margin-bottom: 24px;\n padding-bottom: 24px;\n border-bottom: 2px solid #e0e0e0;\n }\n\n .theme-column {\n text-align: center;\n }\n\n .theme-column h3 {\n margin: 0;\n font-size: 20px;\n color: #333;\n }\n\n .version {\n display: inline-block;\n margin-top: 4px;\n padding: 2px 8px;\n background: #e3f2fd;\n color: #1976d2;\n border-radius: 4px;\n font-size: 12px;\n }\n\n .vs-divider {\n font-weight: bold;\n font-size: 24px;\n color: #666;\n }\n\n .filter-controls {\n display: flex;\n gap: 16px;\n align-items: center;\n margin-bottom: 24px;\n padding: 16px;\n background: #f5f5f5;\n border-radius: 8px;\n flex-wrap: wrap;\n }\n\n .filter-group {\n display: flex;\n align-items: center;\n gap: 8px;\n }\n\n .filter-group label {\n font-size: 14px;\n font-weight: 500;\n color: #666;\n }\n\n .search-input {\n padding: 8px 12px;\n border: 1px solid #e0e0e0;\n border-radius: 4px;\n font-size: 14px;\n width: 250px;\n }\n\n .search-input:focus {\n outline: none;\n border-color: #2196f3;\n }\n\n .clear-search {\n background: #f44336;\n color: white;\n border: none;\n border-radius: 50%;\n width: 24px;\n height: 24px;\n cursor: pointer;\n font-size: 18px;\n line-height: 1;\n display: flex;\n align-items: center;\n justify-content: center;\n }\n\n .clear-search:hover {\n background: #d32f2f;\n }\n\n .filter-select {\n padding: 8px 12px;\n border: 1px solid #e0e0e0;\n border-radius: 4px;\n font-size: 14px;\n background: white;\n cursor: pointer;\n }\n\n .clear-filters {\n padding: 8px 16px;\n background: #666;\n color: white;\n border: none;\n border-radius: 4px;\n cursor: pointer;\n font-size: 14px;\n }\n\n .clear-filters:hover {\n background: #555;\n }\n\n .search-highlight {\n background: #fff59d;\n padding: 2px 4px;\n border-radius: 2px;\n }\n\n .comparator-stats {\n display: grid;\n grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));\n gap: 16px;\n margin-bottom: 24px;\n }\n\n .stat {\n text-align: center;\n padding: 16px;\n background: #f5f5f5;\n border-radius: 8px;\n }\n\n .stat-added {\n border-left: 4px solid #4caf50;\n }\n\n .stat-removed {\n border-left: 4px solid #f44336;\n }\n\n .stat-changed {\n border-left: 4px solid #ff9800;\n }\n\n .stat-filtered {\n border-left: 4px solid #2196f3;\n }\n\n .stat-value {\n display: block;\n font-size: 32px;\n font-weight: bold;\n color: #2196f3;\n }\n\n .stat-label {\n display: block;\n font-size: 12px;\n color: #666;\n margin-top: 4px;\n }\n\n .no-differences {\n text-align: center;\n padding: 48px;\n font-size: 18px;\n color: #4caf50;\n background: #e8f5e9;\n border-radius: 8px;\n }\n\n .differences-list h4 {\n margin: 0 0 16px 0;\n font-size: 18px;\n color: #333;\n }\n\n .difference-item {\n margin-bottom: 16px;\n border: 2px solid;\n border-radius: 8px;\n overflow: hidden;\n transition: all 0.2s ease;\n }\n\n .difference-added {\n border-color: #4caf50;\n }\n\n .difference-removed {\n border-color: #f44336;\n }\n\n .difference-changed {\n border-color: #ff9800;\n }\n\n .difference-header {\n display: flex;\n align-items: center;\n gap: 12px;\n padding: 12px;\n background: rgba(0, 0, 0, 0.05);\n }\n\n .difference-type {\n padding: 4px 8px;\n border-radius: 4px;\n font-size: 11px;\n font-weight: bold;\n color: white;\n text-transform: uppercase;\n }\n\n .difference-path {\n font-family: 'Monaco', 'Menlo', monospace;\n font-size: 13px;\n color: #1976d2;\n flex: 1;\n }\n\n .difference-category {\n font-size: 11px;\n padding: 2px 6px;\n background: rgba(0, 0, 0, 0.1);\n border-radius: 4px;\n color: #666;\n text-transform: uppercase;\n }\n\n .difference-values {\n display: grid;\n grid-template-columns: 1fr auto 1fr;\n gap: 16px;\n padding: 16px;\n align-items: start;\n }\n\n .value-column {\n min-width: 0;\n }\n\n .value-column.value-empty {\n opacity: 0.5;\n }\n\n .value-label {\n font-size: 12px;\n font-weight: bold;\n color: #666;\n margin-bottom: 8px;\n }\n\n .value-content {\n margin: 0;\n padding: 12px;\n background: rgba(255, 255, 255, 0.7);\n border-radius: 4px;\n font-family: 'Monaco', 'Menlo', monospace;\n font-size: 12px;\n overflow-x: auto;\n white-space: pre-wrap;\n word-break: break-all;\n }\n\n .value-empty {\n color: #999;\n font-style: italic;\n }\n\n .value-divider {\n font-size: 20px;\n color: #666;\n align-self: center;\n }\n "})]})},wh={primary:{main:"#7c3aed",light:"#d0b2f5",dark:"#3c1583",contrastText:"#ffffff"},secondary:{main:"#f3f4f6",light:"#ffffff",dark:"#e5e7eb",contrastText:"#1f2937"},error:{main:"#ef4444",light:"#fca5a5",dark:"#991b1b",contrastText:"#ffffff"},warning:{main:"#eab308",light:"#fde047",dark:"#854d0e",contrastText:"#000000"},info:{main:"#3b82f6",light:"#93c5fd",dark:"#1e40af",contrastText:"#ffffff"},success:{main:"#22c55e",light:"#86efac",dark:"#166534",contrastText:"#ffffff"},background:{default:"#ffffff",paper:"#f3f4f6",subtle:"#d1d5db"},text:{primary:"#111827",secondary:"#374151",disabled:"#9ca3af"}},Oh={fontFamily:'"Roboto", "Helvetica Neue", "Helvetica", "Arial", sans-serif',fontSize:16,fontWeightLight:300,fontWeightRegular:400,fontWeightMedium:500,fontWeightSemiBold:600,fontWeightBold:700,fontWeightHeavy:800,fontWeightBlack:900,h1:{fontSize:"2.5rem",fontWeight:700,lineHeight:1.3,letterSpacing:"-1px"},h2:{fontSize:"2rem",fontWeight:700,lineHeight:1.3,letterSpacing:"-1px"},h3:{fontSize:"1.5rem",fontWeight:700,lineHeight:1.3,letterSpacing:"-1px"},h4:{fontSize:"1.25rem",fontWeight:700,lineHeight:1.3,letterSpacing:"-0.5px"},h5:{fontSize:"1.125rem",fontWeight:700,lineHeight:1.3,letterSpacing:"-0.5px"},h6:{fontSize:"1rem",fontWeight:700,lineHeight:1.3,letterSpacing:"-0.5px"},body1:{fontSize:"1rem",fontWeight:400,lineHeight:1.2},body2:{fontSize:"0.875rem",fontWeight:400,lineHeight:1.2}},Rh={xs:"0px 1px 2px 0px rgba(45, 54, 67, 0.04), 0px 2px 4px 0px rgba(45, 54, 67, 0.08)",sm:"0 2px 4px rgba(0, 0, 0, 0.075)",md:"0 4px 8px rgba(0, 0, 0, 0.1)",lg:"0 16px 48px rgba(0, 0, 0, 0.175)",xl:"0px 16px 64px -8px rgba(45, 54, 67, 0.14)",inset:"inset 0 1px 2px rgba(0, 0, 0, 0.075)"},kh={duration:{shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195},easing:{easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"}},Mh={mobileStepper:1e3,speedDial:1050,appBar:1020,drawer:1070,modal:1040,snackbar:1080,tooltip:1060},Dh={base:"0.5rem",sm:"0.25rem",md:"0.25rem",lg:"0.625rem",xl:"0.75rem",xxl:"1rem","3xl":"1.5rem","4xl":"2rem",pill:"50rem"};function Ph(e){return"string"==typeof e?{main:e,light:zu(e,.15),dark:Uu(e,.15),contrastText:Bu(e)}:{main:e.main||"#000000",light:e.light||zu(e.main||"#000000",.15),dark:e.dark||Uu(e.main||"#000000",.15),contrastText:e.contrastText||Bu(e.main||"#000000")}}function Bh(...e){const t=Do(e).call(e,((e,t)=>$d(e,t||{})),{}),n={primary:Ph(t.palette?.primary||wh.primary),secondary:Ph(t.palette?.secondary||wh.secondary),error:Ph(t.palette?.error||wh.error),warning:Ph(t.palette?.warning||wh.warning),info:Ph(t.palette?.info||wh.info),success:Ph(t.palette?.success||wh.success),...t.palette?.light&&{light:Ph(t.palette.light)},...t.palette?.dark&&{dark:Ph(t.palette.dark)},background:{default:t.palette?.background?.default||wh.background.default,paper:t.palette?.background?.paper||wh.background.paper,subtle:t.palette?.background?.subtle||wh.background.subtle},text:{primary:t.palette?.text?.primary||wh.text.primary,secondary:t.palette?.text?.secondary||wh.text.secondary,disabled:t.palette?.text?.disabled||wh.text.disabled},...t.palette},a=$d({...Oh},t.typography||{}),r=Vu(t.spacing),i=function(e){const t={xs:0,sm:576,md:768,lg:992,xl:1200,xxl:1440,...e?.values},n=e?.unit||"px";return{values:t,unit:n,up:e=>`@media (min-width:${"number"==typeof e?e:t[e]??0}${n})`,down:e=>`@media (max-width:${("number"==typeof e?e:t[e]??0)-.05}${n})`,between:(e,a)=>{const r="number"==typeof e?e:t[e]??0,i="number"==typeof a?a:t[a]??0;return`@media (min-width:${r}${n}) and (max-width:${i-.05}${n})`}}}(t.breakpoints),o=$d({...Rh},t.shadows||{}),s=$d({...kh},t.transitions||{}),l=$d({...Mh},t.zIndex||{}),c=$d({...Dh},t.borderRadius||{});return{name:t.name||"Custom Theme",class:t.class,description:t.description,author:t.author,version:t.version||"1.0.0",tags:t.tags,supportsDarkMode:t.supportsDarkMode,status:t.status||"experimental",a11y:t.a11y,color:t.color||n.primary.main,features:t.features,dependencies:t.dependencies,palette:n,typography:a,spacing:r,breakpoints:i,shadows:o,transitions:s,zIndex:l,borderRadius:c,custom:t.custom||{},__isJSTheme:!0}}function zh(e={}){const{maxHistorySize:t=50,initialState:n}=e,[a,l]=r(n),c=i([n]),d=i(0),[u,h]=r(!1),[m,p]=r(!1),g=o((()=>{h(d.current>0),p(d.current<c.current.length-1)}),[]),f=o((e=>{d.current<c.current.length-1&&(c.current=c.current.slice(0,d.current+1)),c.current.push(e),d.current=c.current.length-1,c.current.length>t&&(c.current.shift(),d.current--),l(e),g()}),[t,g]),b=o((()=>{if(d.current>0){d.current--;const e=c.current[d.current];l(e),g()}}),[g]),v=o((()=>{if(d.current<c.current.length-1){d.current++;const e=c.current[d.current];l(e),g()}}),[g]),S=o((()=>{const e=c.current[d.current];c.current=[e],d.current=0,g()}),[g]),y=o((()=>({currentIndex:d.current,totalEntries:c.current.length})),[]);return s((()=>{g()}),[g]),{state:a,setState:f,undo:b,redo:v,canUndo:u,canRedo:m,clearHistory:S,getHistoryStats:y}}function Uh(e,t){if(e=e.trim(),"hex"===t&&e.startsWith("#"))return e;if("rgb"===t&&e.startsWith("rgb("))return e;if("rgba"===t&&e.startsWith("rgba("))return e;if("hsl"===t&&e.startsWith("hsl("))return e;if("hsla"===t&&e.startsWith("hsla("))return e;const n=document.createElement("div");n.style.color=e,document.body.appendChild(n);const a=window.getComputedStyle(n).color;document.body.removeChild(n);const r=a.match(/\d+/g);if(!r||3>r.length)return e;const i=parseInt(r[0],10),o=parseInt(r[1]||"0",10),s=parseInt(r[2]||"0",10),l=r[3]?parseFloat(r[3]):1;switch(t){case"hex":return"#"+[i,o,s].map((e=>e.toString(16).padStart(2,"0"))).join("");case"rgb":return`rgb(${i}, ${o}, ${s})`;case"rgba":return`rgba(${i}, ${o}, ${s}, ${l})`;case"hsl":case"hsla":{const e=function(e,t,n){const a=Math.max(e/=255,t/=255,n/=255),r=Math.min(e,t,n);let i=0,o=0;const s=(a+r)/2;if(a!==r){const l=a-r;switch(o=s>.5?l/(2-a-r):l/(a+r),a){case e:i=((t-n)/l+(n>t?6:0))/6;break;case t:i=((n-e)/l+2)/6;break;case n:i=((e-t)/l+4)/6}}return{h:Math.round(360*i),s:Math.round(100*o),l:Math.round(100*s)}}(i,o,s);return"hsl"===t?`hsl(${e.h}, ${e.s}%, ${e.l}%)`:`hsla(${e.h}, ${e.s}%, ${e.l}%, ${l})`}default:return e}}const Fh=({initialTheme:n,onChange:a,className:l,style:c})=>{const{state:d,setState:u,undo:h,redo:m,canUndo:p,canRedo:g}=zh({initialState:n,maxHistorySize:50}),[f,b]=r(JSON.stringify(n,null,2)),[v,S]=r(null),[y,E]=r("visual"),[A,x]=r("hex"),[N,T]=r(50),[_,C]=r(!1),L=i(null),I=i(null);s((()=>{const e=localStorage.getItem("atomix-editor-layout");if(e){const t=parseFloat(e);!isNaN(t)&&t>0&&100>t&&T(t)}}),[]),s((()=>{localStorage.setItem("atomix-editor-layout",N.toString())}),[N]);const w=o(((e,t=!0)=>{t?u(e):b(JSON.stringify(e,null,2)),a?.(e),S(null)}),[a,u]);s((()=>{b(JSON.stringify(d,null,2))}),[d]);const O=o((e=>{b(e);try{const t=Bh(JSON.parse(e));w(t,!1)}catch(t){S(t instanceof Error?t.message:"Invalid JSON")}}),[w]),R=i(void 0);s((()=>{if(!v){try{const e=Bh(JSON.parse(f));R.current&&clearTimeout(R.current),R.current=setTimeout((()=>{u(e)}),1e3)}catch{}return()=>{R.current&&clearTimeout(R.current)}}}),[f,v,u]);const k=o(((e,t)=>{const n={...d},a=e.split(".");let r=n;for(let o=0;o<a.length-1;o++){const e=a[o];e&&!r[e]&&(r[e]={}),e&&(r=r[e])}const i=a[a.length-1];i&&(r[i]=t),w(Bh(n))}),[d,w]),M=o((()=>{const e=JSON.stringify(d,null,2),t="data:application/json;charset=utf-8,"+encodeURIComponent(e),n=d.name.toLowerCase().replace(/\s+/g,"-")+"-theme.json",a=document.createElement("a");a.setAttribute("href",t),a.setAttribute("download",n),a.click()}),[d]),D=o((()=>{navigator.clipboard?.writeText(f)}),[f]);s((()=>{const e=e=>{const t=0>navigator.platform.toUpperCase().indexOf("MAC")?e.ctrlKey:e.metaKey;t&&"z"===e.key&&!e.shiftKey?(e.preventDefault(),p&&h()):t&&("y"===e.key||"z"===e.key&&e.shiftKey)?(e.preventDefault(),g&&m()):t&&"s"===e.key?(e.preventDefault(),M()):t&&"/"===e.key?(e.preventDefault(),E((e=>"visual"===e?"json":"visual"))):"Escape"===e.key&&S(null)};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)}),[p,g,h,m,M]);const P=o((e=>{e.preventDefault(),C(!0)}),[]);s((()=>{if(!_)return;const e=e=>{if(!L.current||!I.current)return;const t=L.current.parentElement;if(!t)return;const n=t.getBoundingClientRect(),a=(e.clientX-n.left)/n.width*100;T(Math.max(20,Math.min(80,a)))},t=()=>{C(!1)};return window.addEventListener("mousemove",e),window.addEventListener("mouseup",t),()=>{window.removeEventListener("mousemove",e),window.removeEventListener("mouseup",t)}}),[_]);const B=o((e=>Uh(e,A)),[A]);return t("div",{className:"atomix-theme-live-editor "+(l||""),style:c,children:[t("div",{className:"editor-header",children:[e("h2",{children:"Live Theme Editor"}),t("div",{className:"editor-controls",children:[t("div",{className:"history-controls",children:[e("button",{className:"history-button",onClick:h,disabled:!p,title:"Undo (Ctrl+Z)",children:"↶ Undo"}),e("button",{className:"history-button",onClick:m,disabled:!g,title:"Redo (Ctrl+Shift+Z)",children:"↷ Redo"})]}),t("div",{className:"mode-controls",children:[e("button",{className:"mode-button "+("visual"===y?"active":""),onClick:()=>E("visual"),title:"Visual Editor (Ctrl+/)",children:"Visual"}),e("button",{className:"mode-button "+("json"===y?"active":""),onClick:()=>E("json"),title:"JSON Editor (Ctrl+/)",children:"JSON"})]}),t("div",{className:"action-controls",children:[e("button",{className:"export-button",onClick:M,title:"Export (Ctrl+S)",children:"Export"}),e("button",{className:"copy-button",onClick:D,title:"Copy JSON",children:"Copy JSON"})]})]})]}),t("div",{className:"editor-content",ref:L,children:[e("div",{className:"editor-panel",style:{width:N+"%"},children:t("div","visual"===y?{className:"visual-editor",children:[t("div",{className:"editor-section",children:[e("h3",{children:"Colors"}),t("div",{className:"color-format-selector",children:[e("label",{children:"Color Format:"}),t("select",{value:A,onChange:e=>x(e.target.value),children:[e("option",{value:"hex",children:"HEX"}),e("option",{value:"rgb",children:"RGB"}),e("option",{value:"rgba",children:"RGBA"}),e("option",{value:"hsl",children:"HSL"}),e("option",{value:"hsla",children:"HSLA"})]})]}),t("div",{className:"editor-field",children:[e("label",{children:"Primary Color"}),t("div",{className:"color-input-group",children:[e("input",{type:"color",value:d.palette.primary.main,onChange:e=>k("palette.primary.main",e.target.value)}),e("input",{type:"text",value:B(d.palette.primary.main),onChange:e=>{const t=Uh(e.target.value,"hex");k("palette.primary.main",t)},placeholder:"#7AFFD7"})]})]}),t("div",{className:"editor-field",children:[e("label",{children:"Secondary Color"}),t("div",{className:"color-input-group",children:[e("input",{type:"color",value:d.palette.secondary.main,onChange:e=>k("palette.secondary.main",e.target.value)}),e("input",{type:"text",value:B(d.palette.secondary.main),onChange:e=>{const t=Uh(e.target.value,"hex");k("palette.secondary.main",t)},placeholder:"#FF5733"})]})]}),e("h3",{children:"Background"}),t("div",{className:"editor-field",children:[e("label",{children:"Default Background"}),t("div",{className:"color-input-group",children:[e("input",{type:"color",value:d.palette.background.default,onChange:e=>k("palette.background.default",e.target.value)}),e("input",{type:"text",value:B(d.palette.background.default),onChange:e=>{const t=Uh(e.target.value,"hex");k("palette.background.default",t)}})]})]})]}),t("div",{className:"editor-section",children:[e("h3",{children:"Typography"}),t("div",{className:"editor-field",children:[e("label",{children:"Font Family"}),e("input",{type:"text",value:d.typography.fontFamily,onChange:e=>k("typography.fontFamily",e.target.value),placeholder:"Inter, sans-serif"})]}),t("div",{className:"editor-field",children:[e("label",{children:"Base Font Size (px)"}),e("input",{type:"number",value:d.typography.fontSize,onChange:e=>k("typography.fontSize",parseInt(e.target.value)),min:"10",max:"24"})]})]})]}:{className:"json-editor",children:[e("textarea",{value:f,onChange:e=>O(e.target.value),spellCheck:!1}),v&&t("div",{className:"error-message",children:["❌ ",v,e("button",{className:"error-dismiss",onClick:()=>S(null),children:"×"})]})]})}),e("div",{className:"resizer "+(_?"resizing":""),onMouseDown:P}),t("div",{className:"preview-panel",ref:I,style:{width:100-N+"%"},children:[e("h3",{children:"Live Preview"}),e(_h,{theme:d,showDetails:!1,showPalette:!0,showTypography:!0})]})]}),e("style",{children:"\n .atomix-theme-live-editor {\n border: 1px solid #e0e0e0;\n border-radius: 8px;\n background: white;\n font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;\n }\n\n .editor-header {\n display: flex;\n justify-content: space-between;\n align-items: center;\n padding: 16px 24px;\n border-bottom: 1px solid #e0e0e0;\n background: #f5f5f5;\n border-radius: 8px 8px 0 0;\n }\n\n .editor-header h2 {\n margin: 0;\n font-size: 20px;\n color: #333;\n }\n\n .editor-controls {\n display: flex;\n gap: 12px;\n align-items: center;\n }\n\n .history-controls,\n .mode-controls,\n .action-controls {\n display: flex;\n gap: 8px;\n }\n\n .history-button,\n .mode-button,\n .export-button,\n .copy-button {\n padding: 8px 16px;\n border: 1px solid #e0e0e0;\n background: white;\n border-radius: 4px;\n cursor: pointer;\n font-size: 14px;\n transition: all 0.2s;\n }\n\n .history-button:hover:not(:disabled),\n .mode-button:hover,\n .export-button:hover,\n .copy-button:hover {\n background: #f5f5f5;\n }\n\n .history-button:disabled {\n opacity: 0.5;\n cursor: not-allowed;\n }\n\n .mode-button.active {\n background: #2196f3;\n color: white;\n border-color: #2196f3;\n }\n\n .export-button {\n background: #4caf50;\n color: white;\n border-color: #4caf50;\n }\n\n .copy-button {\n background: #ff9800;\n color: white;\n border-color: #ff9800;\n }\n\n .editor-content {\n display: flex;\n position: relative;\n min-height: 600px;\n }\n\n .editor-panel,\n .preview-panel {\n overflow-y: auto;\n padding: 24px;\n }\n\n .resizer {\n width: 4px;\n background: #e0e0e0;\n cursor: col-resize;\n position: relative;\n flex-shrink: 0;\n transition: background 0.2s;\n }\n\n .resizer:hover,\n .resizer.resizing {\n background: #2196f3;\n }\n\n .resizer::before {\n content: '';\n position: absolute;\n left: -2px;\n right: -2px;\n top: 0;\n bottom: 0;\n }\n\n .editor-panel h3,\n .preview-panel h3 {\n margin: 0 0 16px 0;\n font-size: 16px;\n color: #333;\n border-bottom: 2px solid #2196f3;\n padding-bottom: 8px;\n }\n\n .visual-editor {\n display: flex;\n flex-direction: column;\n gap: 24px;\n }\n\n .editor-section {\n display: flex;\n flex-direction: column;\n gap: 16px;\n }\n\n .color-format-selector {\n display: flex;\n align-items: center;\n gap: 8px;\n margin-bottom: 8px;\n }\n\n .color-format-selector label {\n font-size: 14px;\n font-weight: 500;\n color: #666;\n }\n\n .color-format-selector select {\n padding: 6px 12px;\n border: 1px solid #e0e0e0;\n border-radius: 4px;\n font-size: 14px;\n background: white;\n cursor: pointer;\n }\n\n .editor-field {\n display: flex;\n flex-direction: column;\n gap: 8px;\n }\n\n .editor-field label {\n font-size: 14px;\n font-weight: 500;\n color: #666;\n }\n\n .color-input-group {\n display: flex;\n gap: 8px;\n align-items: center;\n }\n\n .color-input-group input[type=\"color\"] {\n width: 50px;\n height: 40px;\n border: 1px solid #e0e0e0;\n border-radius: 4px;\n cursor: pointer;\n }\n\n .color-input-group input[type=\"text\"],\n .editor-field input[type=\"text\"],\n .editor-field input[type=\"number\"] {\n flex: 1;\n padding: 8px 12px;\n border: 1px solid #e0e0e0;\n border-radius: 4px;\n font-size: 14px;\n font-family: 'Monaco', 'Menlo', monospace;\n }\n\n .json-editor {\n height: 100%;\n display: flex;\n flex-direction: column;\n }\n\n .json-editor textarea {\n flex: 1;\n padding: 16px;\n border: 1px solid #e0e0e0;\n border-radius: 4px;\n font-family: 'Monaco', 'Menlo', monospace;\n font-size: 12px;\n line-height: 1.5;\n resize: none;\n }\n\n .error-message {\n padding: 12px;\n background: #ffebee;\n color: #d32f2f;\n border-radius: 4px;\n margin-top: 8px;\n font-size: 14px;\n display: flex;\n justify-content: space-between;\n align-items: center;\n }\n\n .error-dismiss {\n background: none;\n border: none;\n color: #d32f2f;\n font-size: 20px;\n cursor: pointer;\n padding: 0;\n width: 24px;\n height: 24px;\n display: flex;\n align-items: center;\n justify-content: center;\n }\n\n .error-dismiss:hover {\n background: rgba(211, 47, 47, 0.1);\n border-radius: 50%;\n }\n\n .preview-panel {\n border-left: 1px solid #e0e0e0;\n }\n "})]})},Gh=({initialTokens:n={},onTokensChange:a,className:i,style:l})=>{const[c,d]=r((()=>wd(n))),[h,m]=r("hex"),[p,g]=r("colors"),[f,b]=r("");s((()=>{const e=Vd(c,{selector:":root",prefix:"atomix-preview"});b(e),a?.(c)}),[c,a]);const v=u((()=>Bh({palette:{primary:{main:c.primary},secondary:{main:c.secondary},error:{main:c.error},warning:{main:c.warning},info:{main:c.info},success:{main:c.success},background:{default:"#ffffff",subtle:c["secondary-bg-subtle"]||"#f3f4f6"},text:{primary:c["primary-text-emphasis"]||"#111827",secondary:c["secondary-text-emphasis"]||"#374151",disabled:c["disabled-text-emphasis"]||"#9ca3af"}},typography:{fontFamily:c["body-font-family"]||'"Roboto", sans-serif',fontSize:parseInt(c["body-font-size"]||"16")},spacing:e=>.25*e+"rem"})),[c]),S=o(((e,t)=>{d((n=>({...n,[e]:t})))}),[]),y=o(((e,t)=>{const n=document.createElement("div");n.style.color=e,document.body.appendChild(n);const a=window.getComputedStyle(n).color;document.body.removeChild(n);const r=a.match(/\d+/g);if(!r||3>r.length)return e;const i=parseInt(r[0]||"0",10),o=parseInt(r[1]||"0",10),s=parseInt(r[2]||"0",10),l=r[3]?parseFloat(r[3]):1;switch(t){case"hex":return"#"+[i,o,s].map((e=>e.toString(16).padStart(2,"0"))).join("");case"rgb":return`rgb(${i}, ${o}, ${s})`;case"rgba":return`rgba(${i}, ${o}, ${s}, ${l})`;case"hsl":case"hsla":{const e=function(e,t,n){const a=Math.max(e/=255,t/=255,n/=255),r=Math.min(e,t,n);let i=0,o=0;const s=(a+r)/2;if(a!==r){const l=a-r;switch(o=s>.5?l/(2-a-r):l/(a+r),a){case e:i=((t-n)/l+(n>t?6:0))/6;break;case t:i=((n-e)/l+2)/6;break;case n:i=((e-t)/l+4)/6}}return{h:Math.round(360*i),s:Math.round(100*o),l:Math.round(100*s)}}(i,o,s);return"hsl"===t?`hsl(${e.h}, ${e.s}%, ${e.l}%)`:`hsla(${e.h}, ${e.s}%, ${e.l}%, ${l})`}default:return e}}),[]),E=o((()=>{const e=JSON.stringify(c,null,2),t="data:application/json;charset=utf-8,"+encodeURIComponent(e),n=document.createElement("a");n.setAttribute("href",t),n.setAttribute("download","design-tokens.json"),n.click()}),[c]),A=o((()=>{const e=Vd(c),t="data:text/css;charset=utf-8,"+encodeURIComponent(e),n=document.createElement("a");n.setAttribute("href",t),n.setAttribute("download","theme.css"),n.click()}),[c]),x=o((()=>{navigator.clipboard?.writeText(JSON.stringify(c,null,2))}),[c]),N=o((()=>{d(Id)}),[]),T=o((e=>{const t=e.target.files?.[0];if(!t)return;const n=new FileReader;n.onload=e=>{try{const t=e.target?.result,n=wd(JSON.parse(t));d(n)}catch(t){alert("Invalid JSON file. Please select a valid design tokens JSON file.")}},n.readAsText(t)}),[]),_={colors:{label:"Colors",tokens:["primary","secondary","success","info","warning","error","light","dark","primary-rgb","secondary-rgb","success-rgb","info-rgb","warning-rgb","error-rgb","light-rgb","dark-rgb","gray-1","gray-2","gray-3","gray-4","gray-5","gray-6","gray-7","gray-8","gray-9","gray-10","primary-1","primary-2","primary-3","primary-4","primary-5","primary-6","primary-7","primary-8","primary-9","primary-10","primary-text-emphasis","secondary-text-emphasis","tertiary-text-emphasis","disabled-text-emphasis","invert-text-emphasis","brand-text-emphasis","error-text-emphasis","success-text-emphasis","warning-text-emphasis","info-text-emphasis","light-text-emphasis","dark-text-emphasis","primary-bg-subtle","secondary-bg-subtle","tertiary-bg-subtle","invert-bg-subtle","brand-bg-subtle","error-bg-subtle","success-bg-subtle","warning-bg-subtle","info-bg-subtle","light-bg-subtle","dark-bg-subtle","primary-border-subtle","secondary-border-subtle","success-border-subtle","error-border-subtle","warning-border-subtle","info-border-subtle","brand-border-subtle","light-border-subtle","dark-border-subtle","primary-hover","secondary-hover","light-hover","dark-hover","error-hover","success-hover","warning-hover","info-hover","primary-gradient","secondary-gradient","light-gradient","dark-gradient","success-gradient","info-gradient","warning-gradient","error-gradient","gradient"]},typography:{label:"Typography",tokens:["font-sans-serif","font-monospace","body-font-family","body-font-size","body-font-weight","body-line-height","body-color","body-bg","heading-color","font-size-xl","font-size-2xl","display-1","font-weight-light","font-weight-normal","font-weight-medium","font-weight-semibold","font-weight-bold","font-weight-heavy","font-weight-black","line-height-base","line-height-sm","line-height-lg","letter-spacing-h1","letter-spacing-h2","letter-spacing-h3","letter-spacing-h4","letter-spacing-h5","letter-spacing-h6","link-color","link-color-rgb","link-decoration","link-hover-color","link-hover-color-rgb","highlight-bg","code-color"]},spacing:{label:"Spacing",tokens:["spacing-0","spacing-1","spacing-px-6","spacing-2","spacing-px-10","spacing-3","spacing-px-14","spacing-4","spacing-5","spacing-px-22","spacing-6","spacing-7","spacing-px-30","spacing-8","spacing-9","spacing-10","spacing-11","spacing-12","spacing-14","spacing-16","spacing-20","spacing-24","spacing-28","spacing-32","spacing-36","spacing-40","spacing-44","spacing-48","spacing-52","spacing-56","spacing-60","spacing-64","spacing-72","spacing-80","spacing-90","spacing-200"]},shadows:{label:"Shadows",tokens:["box-shadow","box-shadow-xs","box-shadow-sm","box-shadow-lg","box-shadow-xl","box-shadow-inset"]},borders:{label:"Borders",tokens:["border-width","border-style","border-color","border-color-translucent","border-radius","border-radius-sm","border-radius-lg","border-radius-xl","border-radius-xxl","border-radius-2xl","border-radius-3xl","border-radius-4xl","border-radius-pill","focus-border-color","focus-ring-width","focus-ring-offset","focus-ring-opacity","form-valid-color","form-valid-border-color","form-invalid-color","form-invalid-border-color"]},transitions:{label:"Transitions",tokens:["transition-duration-fast","transition-duration-base","transition-duration-slow","transition-duration-slower","easing-base","easing-ease-in-out","easing-ease-out","easing-ease-in","easing-ease-linear","transition-fast","transition-base","transition-slow"]},zindex:{label:"Z-Index",tokens:["z-n1","z-0","z-1","z-2","z-3","z-4","z-5","z-dropdown","z-sticky","z-fixed","z-modal","z-popover","z-tooltip","z-drawer"]},breakpoints:{label:"Breakpoints",tokens:["breakpoint-xs","breakpoint-sm","breakpoint-md","breakpoint-lg","breakpoint-xl","breakpoint-xxl"]}};return t("div",{className:"design-tokens-customizer "+(i||""),style:l,children:[t("div",{className:"customizer-header",children:[e("h2",{children:"Interactive Theme Customizer"}),t("div",{className:"customizer-controls",children:[t("select",{value:h,onChange:e=>m(e.target.value),children:[e("option",{value:"hex",children:"HEX"}),e("option",{value:"rgb",children:"RGB"}),e("option",{value:"rgba",children:"RGBA"}),e("option",{value:"hsl",children:"HSL"}),e("option",{value:"hsla",children:"HSLA"})]}),e("button",{onClick:N,children:"Reset to Defaults"}),t("label",{className:"file-input-button",children:["Load Tokens",e("input",{type:"file",accept:".json",onChange:T,style:{display:"none"}})]}),e("button",{onClick:x,children:"Copy Tokens"}),e("button",{onClick:E,children:"Export Tokens"}),e("button",{onClick:A,children:"Export Theme CSS"})]})]}),t("div",{className:"customizer-content",children:[e("div",{className:"customizer-sidebar",children:Object.entries(_).map((([t,n])=>e("button",{className:"category-button "+(p===t?"active":""),onClick:()=>g(t),children:n.label},t)))}),t("div",{className:"customizer-editor",children:[e("h3",{children:_[p].label}),e("div",{className:"tokens-grid",children:_[p].tokens.map((n=>{var a;const r=c[n]||"",i=Ra(n).call(n,"color")||Ra(n).call(n,"bg")||Ra(n).call(n,"gradient")||Ra(a=["primary","secondary","success","info","warning","error","light","dark"]).call(a,n)||n.match(/^(gray|primary|red|green|blue|yellow)-\d+$/);return t("div",{className:"token-item",children:[e("label",{children:n}),i?t("div",{className:"color-input-group",children:[e("input",{type:"color",value:r.startsWith("#")?r:y(r,"hex"),onChange:e=>S(n,e.target.value)}),e("input",{type:"text",value:y(r,h),onChange:e=>{const t=y(e.target.value,"hex");S(n,t)}})]}):e("input",{type:"text",value:r,onChange:e=>S(n,e.target.value)})]},n)}))})]}),t("div",{className:"customizer-preview",children:[e("h3",{children:"Live Preview"}),e("style",{children:f}),e(_h,{theme:v,showDetails:!1,showPalette:!0,showTypography:!0,showSpacing:!0})]})]}),e("style",{children:"\n .design-tokens-customizer {\n display: flex;\n flex-direction: column;\n height: 100vh;\n font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;\n }\n\n .customizer-header {\n display: flex;\n justify-content: space-between;\n align-items: center;\n padding: 16px 24px;\n border-bottom: 1px solid #e0e0e0;\n background: #f5f5f5;\n }\n\n .customizer-header h2 {\n margin: 0;\n font-size: 24px;\n color: #333;\n }\n\n .customizer-controls {\n display: flex;\n gap: 8px;\n align-items: center;\n }\n\n .customizer-controls select,\n .customizer-controls button {\n padding: 8px 12px;\n border: 1px solid #e0e0e0;\n border-radius: 4px;\n background: white;\n cursor: pointer;\n }\n\n .customizer-controls button:hover,\n .file-input-button:hover {\n background: #f0f0f0;\n }\n\n .file-input-button {\n padding: 8px 12px;\n border: 1px solid #e0e0e0;\n border-radius: 4px;\n background: white;\n cursor: pointer;\n font-size: 14px;\n display: inline-block;\n }\n\n .customizer-content {\n display: flex;\n flex: 1;\n overflow: hidden;\n }\n\n .customizer-sidebar {\n width: 200px;\n border-right: 1px solid #e0e0e0;\n padding: 16px;\n background: #fafafa;\n overflow-y: auto;\n }\n\n .category-button {\n display: block;\n width: 100%;\n padding: 12px;\n margin-bottom: 8px;\n border: none;\n background: white;\n border-radius: 4px;\n cursor: pointer;\n text-align: left;\n font-size: 14px;\n }\n\n .category-button:hover,\n .category-button.active {\n background: #e0e0e0;\n }\n\n .customizer-editor {\n flex: 1;\n padding: 24px;\n overflow-y: auto;\n }\n\n .customizer-editor h3 {\n margin-top: 0;\n margin-bottom: 16px;\n color: #333;\n }\n\n .tokens-grid {\n display: grid;\n grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));\n gap: 16px;\n }\n\n .token-item {\n display: flex;\n flex-direction: column;\n gap: 8px;\n }\n\n .token-item label {\n font-size: 14px;\n font-weight: 500;\n color: #666;\n }\n\n .color-input-group {\n display: flex;\n gap: 8px;\n align-items: center;\n }\n\n .color-input-group input[type=\"color\"] {\n width: 50px;\n height: 40px;\n border: 1px solid #e0e0e0;\n border-radius: 4px;\n cursor: pointer;\n }\n\n .color-input-group input[type=\"text\"],\n .token-item input[type=\"text\"] {\n flex: 1;\n padding: 8px 12px;\n border: 1px solid #e0e0e0;\n border-radius: 4px;\n font-size: 14px;\n font-family: 'Monaco', 'Menlo', monospace;\n }\n\n .customizer-preview {\n width: 400px;\n border-left: 1px solid #e0e0e0;\n padding: 24px;\n overflow-y: auto;\n background: #fafafa;\n }\n\n .customizer-preview h3 {\n margin-top: 0;\n margin-bottom: 16px;\n color: #333;\n }\n "})]})};function Vh(e){if(!e||"object"!=typeof e)return!1;const t=e;if("palette"in t||"typography"in t||"__isJSTheme"in t)return!1;const n=Object.keys(t);return 0!==n.length&&n.some((e=>/^[a-z]+(-[a-z0-9]+)*$/.test(e)&&"string"==typeof t[e]))}class Hh{constructor(e){this.frameCount=0,this.lastSampleTime=0,this.lastFpsUpdate=0,this.frameTimes=[],this.animationFrameId=null,this.isActive=!1,this.startTime=0,this.config={fpsTarget:e?.fpsTarget??60,sampleInterval:e?.sampleInterval??500,onUpdate:e?.onUpdate??(()=>{}),onDegraded:e?.onDegraded??(()=>{}),enableMemoryMonitoring:e?.enableMemoryMonitoring??("undefined"!=typeof window&&window.performance&&window.performance.memory)}}start(){this.isActive||(this.isActive=!0,this.frameCount=0,this.lastSampleTime=performance.now(),this.lastFpsUpdate=this.lastSampleTime,this.frameTimes=[],this.startTime=this.lastSampleTime,this.animationFrameId=requestAnimationFrame(this.onFrame.bind(this)))}stop(){this.animationFrameId&&(cancelAnimationFrame(this.animationFrameId),this.animationFrameId=null),this.isActive=!1}getMetrics(){var e;const t=performance.now(),n=t-this.lastFpsUpdate,a=n>0?Math.round(this.frameCount/n*1e3):0,r=this.frameTimes.length>0?Do(e=this.frameTimes).call(e,((e,t)=>e+t),0)/this.frameTimes.length:0,i=this.frameTimes.length>0?Math.max(...this.frameTimes):0;let o;if(this.config.enableMemoryMonitoring){const e=window.performance;e&&e.memory&&(o={usedJSHeapSize:e.memory.usedJSHeapSize,totalJSHeapSize:e.memory.totalJSHeapSize,jsHeapSizeLimit:e.memory.jsHeapSizeLimit})}return{fps:a,frameTime:r,peakFrameTime:i,memory:o,timestamp:t,isDegraded:a<.7*this.config.fpsTarget}}getFps(){return this.getMetrics().fps}isPerformanceDegraded(){return this.getMetrics().isDegraded}onFrame(e){if(!this.isActive)return;const t=e-this.lastSampleTime;if(this.frameTimes.push(t),this.frameTimes.length>60&&this.frameTimes.shift(),this.frameCount++,this.lastSampleTime=e,e-this.lastFpsUpdate>=this.config.sampleInterval){const t=this.getMetrics();this.config.onUpdate(t),t.isDegraded&&this.config.onDegraded(t),this.frameCount=0,this.lastFpsUpdate=e}this.animationFrameId=requestAnimationFrame(this.onFrame.bind(this))}async testFunctionPerformance(e,t=100){const n=[];for(let a=0;t>a;a++){const t=performance.now();e();const a=performance.now();n.push(a-t)}return Do(n).call(n,((e,t)=>e+t),0)/n.length}}function $h(e){return new Hh(e)}function Yh(e){const[t]=a.useState((()=>$h(e))),[n,r]=a.useState((()=>"undefined"!=typeof window?t.getMetrics():{fps:0,frameTime:0,peakFrameTime:0,timestamp:0,isDegraded:!1})),i=a.useCallback((()=>{"undefined"!=typeof window&&t.start()}),[t]),o=a.useCallback((()=>{"undefined"!=typeof window&&t.stop()}),[t]);return a.useEffect((()=>{if("undefined"==typeof window)return;const n=e?.onUpdate;return t.config.onUpdate=e=>{r(e),n?.(e)},()=>{t.stop()}}),[t,e?.onUpdate]),{metrics:n,start:i,stop:o}}class Kh{constructor(e){this.currentDevice="desktop",this.resizeHandler=null,this.observer=null,this.config=e,this.currentDevice=this.getCurrentDeviceType(),this.setupResizeListener()}getCurrentDeviceType(){if("undefined"==typeof window)return"desktop";const e=window.innerWidth;this.parsePxValue(this.config.breakpoints.mobile);const t=this.parsePxValue(this.config.breakpoints.tablet),n=this.parsePxValue(this.config.breakpoints.desktop),a=this.parsePxValue(this.config.breakpoints.wide);return t>e?"mobile":n>e?"tablet":a>e?"desktop":"wide"}getCurrentScalingFactor(){const e="wide"===this.currentDevice?"desktop":this.currentDevice;return this.config.deviceScaling[e]||1}scaleValue(e){return e*this.getCurrentScalingFactor()}isDevice(e){return this.currentDevice===e}isMobileOrSmaller(){return"mobile"===this.currentDevice}isTabletOrSmaller(){return"mobile"===this.currentDevice||"tablet"===this.currentDevice}isDesktopOrLarger(){return"desktop"===this.currentDevice||"wide"===this.currentDevice}updateConfig(e){this.config=e,this.currentDevice=this.getCurrentDeviceType()}destroy(){this.resizeHandler&&(window.removeEventListener("resize",this.resizeHandler),this.resizeHandler=null),this.observer&&(this.observer.disconnect(),this.observer=null)}parsePxValue(e){return e.endsWith("px")?parseFloat(e.slice(0,-2)):e.endsWith("rem")?16*parseFloat(e.slice(0,-3)):e.endsWith("em")?16*parseFloat(e.slice(0,-2)):parseFloat(e)||0}setupResizeListener(){if("undefined"==typeof window)return;let e=null;const t=()=>{e&&window.clearTimeout(e),e=window.setTimeout((()=>{const e=this.getCurrentDeviceType();e!==this.currentDevice&&(this.currentDevice=e)}),150)};this.resizeHandler=t,window.addEventListener("resize",t),"undefined"!=typeof ResizeObserver&&(this.observer=new ResizeObserver(t),this.observer.observe(document.body))}}function Wh(e){return new Kh(e)}function jh(e){const[t]=a.useState((()=>Wh(e))),[n,r]=a.useState((()=>"undefined"!=typeof window?t.getCurrentDeviceType():"desktop"));return a.useEffect((()=>{if("undefined"==typeof window)return;const e=()=>{const e=t.getCurrentDeviceType();e!==n&&r(e)};return r(t.getCurrentDeviceType()),window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e),t.destroy()}}),[t,n]),"undefined"==typeof window?{deviceType:"desktop",isMobile:!1,isTablet:!1,isDesktop:!0,isWide:!1,scaleValue:e=>e,getCurrentDeviceType:()=>"desktop",getCurrentScalingFactor:()=>1,isMobileOrSmaller:()=>!1,isTabletOrSmaller:()=>!0,isDesktopOrLarger:()=>!0}:{deviceType:n,isMobile:"mobile"===n,isTablet:"tablet"===n,isDesktop:"desktop"===n,isWide:"wide"===n,scaleValue:e=>t.scaleValue(e),getCurrentDeviceType:()=>t.getCurrentDeviceType(),getCurrentScalingFactor:()=>t.getCurrentScalingFactor(),isMobileOrSmaller:()=>t.isMobileOrSmaller(),isTabletOrSmaller:()=>t.isTabletOrSmaller(),isDesktopOrLarger:()=>t.isDesktopOrLarger()}}const qh=new Set(["ar","he","fa","ur","yi","ji","iw","ku","ps","sd"]),Qh={enabled:!1,direction:"ltr",dataAttribute:"data-direction",autoDetect:!1,locale:void 0};class Xh{constructor(e={}){this.listeners=new Set,this.config={...Qh,...e,locale:e.locale},this.config.autoDetect&&!this.config.locale&&(this.config.locale=this.detectLocale()),this.config.enabled&&this.config.locale&&qh.has(this.config.locale.toLowerCase())&&(this.config.direction="rtl"),this.config.enabled&&"undefined"!=typeof document&&this.applyDirection(this.config.direction)}detectLocale(){if("undefined"==typeof navigator)return"en";const e=((navigator.language||navigator.languages&&navigator.languages[0]||"en")+"").split("-");return e[0]?e[0].toLowerCase():"en"}isRTLLocale(e){return qh.has(e.toLowerCase())}getDirection(){return this.config.direction}isEnabled(){return this.config.enabled}setDirection(e){this.config.direction!==e&&(this.config.direction=e,this.applyDirection(e),this.notifyListeners(e))}toggleDirection(){const e="ltr"===this.config.direction?"rtl":"ltr";return this.setDirection(e),e}enable(){this.config.enabled||(this.config.enabled=!0,this.applyDirection(this.config.direction))}disable(){this.config.enabled&&(this.config.enabled=!1,this.applyDirection("ltr"))}setLocale(e){if(this.config.locale=e.toLowerCase(),this.config.autoDetect){const t=this.isRTLLocale(e);this.setDirection(t?"rtl":"ltr")}}getLocale(){return this.config.locale}applyDirection(e){if("undefined"==typeof document)return;const t=document.documentElement,n=document.body;t.setAttribute("dir",e),n?.setAttribute("dir",e),this.config.dataAttribute&&(t.setAttribute(this.config.dataAttribute,e),n?.setAttribute(this.config.dataAttribute,e)),t.style.setProperty("--atomix-direction",e),t.style.setProperty("--atomix-text-direction",e)}onDirectionChange(e){return this.listeners.add(e),()=>{this.listeners.delete(e)}}notifyListeners(e){this.listeners.forEach((t=>{try{t(e)}catch(n){uu().error("Error in RTL direction change listener",n instanceof Error?n:Error(n+""),{direction:e})}}))}getValue(e,t){return"rtl"===this.config.direction?t:e}getCSSProperty(e){return"rtl"===this.config.direction&&{left:"right",right:"left","margin-left":"margin-right","margin-right":"margin-left","padding-left":"padding-right","padding-right":"padding-left","border-left":"border-right","border-right":"border-left","border-left-width":"border-right-width","border-right-width":"border-left-width","text-align: left":"text-align: right","text-align: right":"text-align: left"}[e]||e}destroy(){if(this.listeners.clear(),"undefined"!=typeof document){const e=document.documentElement,t=document.body;e.removeAttribute("dir"),e.removeAttribute(this.config.dataAttribute),t?.removeAttribute("dir"),t?.removeAttribute(this.config.dataAttribute)}}}function Zh(e){return new Xh(e)}function Jh(e){return qh.has(e.toLowerCase())}function em(e){return Jh(e)?"rtl":"ltr"}function tm(e,t,n="ltr"){return"rtl"===n?t:e}function nm(e,t="atomix-theme"){au(e,t)}function am(e="atomix-theme"){ru(e)}const rm={"--atomix-button-bg":"background-color","--atomix-button-color":"text color","--atomix-button-padding-x":"horizontal padding","--atomix-button-padding-y":"vertical padding","--atomix-button-border-radius":"border radius","--atomix-button-border-width":"border width","--atomix-button-border-color":"border color","--atomix-button-font-size":"font size","--atomix-button-font-weight":"font weight","--atomix-button-font-family":"font family","--atomix-button-line-height":"line height","--atomix-button-min-width":"minimum width","--atomix-button-min-height":"minimum height","--atomix-button-transition":"transition","--atomix-button-hover-bg":"hover background","--atomix-button-hover-color":"hover text color","--atomix-button-hover-border-color":"hover border color","--atomix-button-active-bg":"active background","--atomix-button-active-color":"active text color","--atomix-button-focus-ring-color":"focus ring color","--atomix-button-focus-ring-width":"focus ring width","--atomix-button-disabled-opacity":"disabled opacity","--atomix-button-disabled-bg":"disabled background","--atomix-button-icon-size":"icon size","--atomix-button-icon-gap":"icon spacing","--atomix-button-spinner-size":"spinner size","--atomix-button-label-font-weight":"label font weight"},im={"--atomix-card-bg":"background color","--atomix-card-color":"text color","--atomix-card-padding":"padding","--atomix-card-border-radius":"border radius","--atomix-card-border-width":"border width","--atomix-card-border-color":"border color","--atomix-card-box-shadow":"box shadow","--atomix-card-width":"width","--atomix-card-max-width":"maximum width","--atomix-card-hover-bg":"hover background","--atomix-card-hover-shadow":"hover shadow","--atomix-card-hover-transform":"hover transform","--atomix-card-header-padding":"header padding","--atomix-card-header-bg":"header background","--atomix-card-header-border-bottom":"header border bottom","--atomix-card-body-padding":"body padding","--atomix-card-body-font-size":"body font size","--atomix-card-footer-padding":"footer padding","--atomix-card-footer-bg":"footer background","--atomix-card-footer-border-top":"footer border top","--atomix-card-title-font-size":"title font size","--atomix-card-title-font-weight":"title font weight","--atomix-card-title-color":"title color","--atomix-card-title-margin-bottom":"title margin bottom","--atomix-card-image-border-radius":"image border radius","--atomix-card-image-max-height":"image max height"},om={"--atomix-input-bg":"background color","--atomix-input-color":"text color","--atomix-input-padding-x":"horizontal padding","--atomix-input-padding-y":"vertical padding","--atomix-input-border-radius":"border radius","--atomix-input-border-width":"border width","--atomix-input-border-color":"border color","--atomix-input-font-size":"font size","--atomix-input-font-family":"font family","--atomix-input-line-height":"line height","--atomix-input-height":"height","--atomix-input-placeholder-color":"placeholder color","--atomix-input-hover-border-color":"hover border color","--atomix-input-focus-border-color":"focus border color","--atomix-input-focus-ring-color":"focus ring color","--atomix-input-focus-ring-width":"focus ring width","--atomix-input-disabled-bg":"disabled background","--atomix-input-disabled-opacity":"disabled opacity","--atomix-input-invalid-border-color":"invalid border color","--atomix-input-valid-border-color":"valid border color"},sm={"--atomix-modal-bg":"background color","--atomix-modal-color":"text color","--atomix-modal-padding":"padding","--atomix-modal-border-radius":"border radius","--atomix-modal-box-shadow":"box shadow","--atomix-modal-width":"width","--atomix-modal-max-width":"maximum width","--atomix-modal-max-height":"maximum height","--atomix-modal-backdrop-bg":"backdrop background","--atomix-modal-backdrop-opacity":"backdrop opacity","--atomix-modal-backdrop-blur":"backdrop blur","--atomix-modal-header-padding":"header padding","--atomix-modal-header-border-bottom":"header border bottom","--atomix-modal-title-font-size":"title font size","--atomix-modal-title-font-weight":"title font weight","--atomix-modal-body-padding":"body padding","--atomix-modal-body-font-size":"body font size","--atomix-modal-footer-padding":"footer padding","--atomix-modal-footer-border-top":"footer border top","--atomix-modal-footer-gap":"footer button gap","--atomix-modal-close-size":"close button size","--atomix-modal-close-color":"close button color","--atomix-modal-close-hover-color":"close button hover color"},lm={"--atomix-dropdown-bg":"background color","--atomix-dropdown-color":"text color","--atomix-dropdown-border-radius":"border radius","--atomix-dropdown-border-width":"border width","--atomix-dropdown-border-color":"border color","--atomix-dropdown-box-shadow":"box shadow","--atomix-dropdown-min-width":"minimum width","--atomix-dropdown-max-height":"maximum height","--atomix-dropdown-padding":"padding","--atomix-dropdown-item-padding":"item padding","--atomix-dropdown-item-font-size":"item font size","--atomix-dropdown-item-hover-bg":"item hover background","--atomix-dropdown-item-hover-color":"item hover color","--atomix-dropdown-item-active-bg":"item active background","--atomix-dropdown-item-active-color":"item active color","--atomix-dropdown-item-disabled-opacity":"item disabled opacity","--atomix-dropdown-divider-color":"divider color","--atomix-dropdown-divider-margin":"divider margin","--atomix-dropdown-header-padding":"header padding","--atomix-dropdown-header-font-size":"header font size","--atomix-dropdown-header-font-weight":"header font weight","--atomix-dropdown-header-color":"header color"},cm={"--atomix-badge-bg":"background color","--atomix-badge-color":"text color","--atomix-badge-padding-x":"horizontal padding","--atomix-badge-padding-y":"vertical padding","--atomix-badge-border-radius":"border radius","--atomix-badge-font-size":"font size","--atomix-badge-font-weight":"font weight","--atomix-badge-line-height":"line height","--atomix-badge-icon-size":"icon size","--atomix-badge-icon-gap":"icon spacing"},dm={"--atomix-tabs-bg":"background color","--atomix-tabs-border-color":"border color","--atomix-tabs-border-width":"border width","--atomix-tabs-nav-gap":"nav gap","--atomix-tabs-nav-padding":"nav padding","--atomix-tabs-btn-padding-x":"button horizontal padding","--atomix-tabs-btn-padding-y":"button vertical padding","--atomix-tabs-btn-color":"button color","--atomix-tabs-btn-font-size":"button font size","--atomix-tabs-btn-font-weight":"button font weight","--atomix-tabs-btn-hover-color":"button hover color","--atomix-tabs-btn-active-color":"button active color","--atomix-tabs-btn-active-border-color":"button active border color","--atomix-tabs-btn-active-border-width":"button active border width","--atomix-tabs-panel-padding":"panel padding","--atomix-tabs-panel-bg":"panel background"},um={"--atomix-progress-bg":"background color","--atomix-progress-height":"height","--atomix-progress-border-radius":"border radius","--atomix-progress-bar-bg":"bar background","--atomix-progress-bar-transition":"bar transition"},hm={"--atomix-tooltip-bg":"background color","--atomix-tooltip-color":"text color","--atomix-tooltip-padding-x":"horizontal padding","--atomix-tooltip-padding-y":"vertical padding","--atomix-tooltip-border-radius":"border radius","--atomix-tooltip-font-size":"font size","--atomix-tooltip-max-width":"maximum width","--atomix-tooltip-box-shadow":"box shadow","--atomix-tooltip-z-index":"z-index","--atomix-tooltip-arrow-size":"arrow size","--atomix-tooltip-arrow-color":"arrow color"},mm={"--atomix-checkbox-size":"checkbox size","--atomix-checkbox-bg":"background color","--atomix-checkbox-border-color":"border color","--atomix-checkbox-border-width":"border width","--atomix-checkbox-border-radius":"border radius","--atomix-checkbox-transition":"transition","--atomix-checkbox-checked-bg":"checked background","--atomix-checkbox-checked-border-color":"checked border color","--atomix-checkbox-hover-border-color":"hover border color","--atomix-checkbox-focus-ring-color":"focus ring color","--atomix-checkbox-focus-ring-width":"focus ring width","--atomix-checkbox-disabled-opacity":"disabled opacity","--atomix-checkbox-invalid-border-color":"invalid border color","--atomix-checkbox-icon-size":"icon size","--atomix-checkbox-icon-color":"icon color","--atomix-checkbox-label-gap":"label spacing","--atomix-checkbox-label-font-size":"label font size","--atomix-checkbox-label-color":"label color"},pm={"--atomix-radio-size":"radio size","--atomix-radio-bg":"background color","--atomix-radio-border-color":"border color","--atomix-radio-border-width":"border width","--atomix-radio-transition":"transition","--atomix-radio-checked-bg":"checked background","--atomix-radio-checked-border-color":"checked border color","--atomix-radio-hover-border-color":"hover border color","--atomix-radio-focus-ring-color":"focus ring color","--atomix-radio-focus-ring-width":"focus ring width","--atomix-radio-disabled-opacity":"disabled opacity","--atomix-radio-invalid-border-color":"invalid border color","--atomix-radio-dot-size":"dot size","--atomix-radio-dot-color":"dot color","--atomix-radio-label-gap":"label spacing","--atomix-radio-label-font-size":"label font size","--atomix-radio-label-color":"label color"},gm={Button:rm,Card:im,Input:om,Modal:sm,Dropdown:lm,Badge:cm,Tabs:dm,Progress:um,Tooltip:hm,Checkbox:mm,Radio:pm};function fm(e){return gm[e]}function bm(e,t){if(e||t)return e?t?{className:[e.className,t.className].filter(Boolean).join(" "),style:{...e.style,...t.style}}:e:t}function vm(e,t){const{theme:n}=gh(),a=u((()=>Ol(n?.components?.[e]?.cssVars||{},t.cssVars||{})),[n,e,t.cssVars]),r=u((()=>{const a=n?.components?.[e]?.parts||{},r=t.parts||{},i={};return new Set([...Object.keys(a),...Object.keys(r)]).forEach((e=>{i[e]=bm(a[e],r[e])})),i}),[n,e,t.parts]),i=u((()=>[n?.components?.[e]?.className||"",t.className||""].filter(Boolean).join(" ")),[n,e,t.className]),o=u((()=>({...t.style})),[t.style]),s=u((()=>{var e;return Do(e=Object.entries(a)).call(e,((e,[t,n])=>(e[t]="number"==typeof n?n+"px":n,e)),{})}),[a]);return{cssVars:a,parts:r,className:i,style:o,cssVarStyle:s}}function Sm(e){const{theme:t}=gh();return u((()=>t?.components?.[e]?.defaultProps||{}),[t,e])}function ym(e,t){return u((()=>({...e,...t})),[e,t])}function Em(e,t){var n;return{...Do(n=Object.entries(e)).call(n,((e,[t,n])=>(e[t]="number"==typeof n?n+"px":n,e)),{}),...t}}function Am(e){return e}function xm(e,t){const{performanceAnalysis:n=!0,compatibilityReport:a=!0}=t||{},r=[],i=[];let o="low";const s=Bd(e);r.push(...s),n&&(o=function(e){let t=0;if(e.interactiveEffects){const n=e.interactiveEffects;n.vortex?.enabled&&(t+=2),n.chromaticAberration?.enabled&&(t+=1),n.mouseInteraction?.trailEffect&&(t+=1),n.mouseInteraction?.pressureSensitivity&&(t+=1)}if(e.visualPolish){const n=e.visualPolish;n.borders?.iridescentGlow&&(t+=1),n.borders?.shimmerEffect&&(t+=1),n.contentAwareBlur?.enabled&&(t+=2),n.holographicEffects?.enabled&&(t+=2),n.holographicEffects?.scanlineAnimation&&(t+=1),n.holographicEffects?.dataStream&&(t+=1),n.holographicEffects?.pulseRings&&(t+=1)}return e.optimization?.autoScaling?.enabled&&(t-=1),6>t?3>t?"low":"medium":"high"}(e)),function(e,t){(e.interactiveEffects||e.visualPolish?.holographicEffects?.enabled)&&(e.optimization?.autoScaling?.enabled||t.push("Consider enabling auto-scaling in optimization settings to adjust effects based on device performance: optimization.autoScaling.enabled = true"),e.optimization?.performance?.fpsTarget||t.push("Set a target FPS in optimization.performance.fpsTarget to ensure smooth performance when using interactive effects")),e.optimization&&!e.optimization.responsive&&t.push("Consider adding responsive breakpoints in optimization.responsive.breakpoints to adapt advanced effects based on device type"),e.visualPolish?.holographicEffects?.enabled&&t.push("For better performance on lower-end devices, consider conditionally disabling holographic effects based on device capabilities"),e.visualPolish?.contentAwareBlur?.enabled&&t.push("Content-aware blur can be expensive; consider setting a maximum blur radius or using simpler blur techniques for mobile devices"),e.interactiveEffects?.chromaticAberration?.enabled&&(e.interactiveEffects.chromaticAberration.redShift&&Math.abs(e.interactiveEffects.chromaticAberration.redShift)>.05&&t.push("High chromatic aberration red shift values (>0.05) may cause discomfort for some users; consider reducing to improve accessibility"),e.interactiveEffects.chromaticAberration.blueShift&&Math.abs(e.interactiveEffects.chromaticAberration.blueShift)>.05&&t.push("High chromatic aberration blue shift values (>0.05) may cause discomfort for some users; consider reducing to improve accessibility"))}(e,i);const l=0===r.length,c=a?function(e){return{browsers:!(e.visualPolish?.holographicEffects?.enabled||e.visualPolish?.contentAwareBlur?.enabled||e.interactiveEffects?.vortex?.enabled||e.interactiveEffects?.chromaticAberration?.enabled),ssr:!0,frameworks:["react","vue","angular","svelte","vanillajs"]}}(e):{browsers:!0,ssr:!0,frameworks:["react","vue","angular","svelte","vanillajs"]};return{isValid:l,warnings:r,suggestions:i,performanceImpact:o,compatibility:c}}function Nm(e,t){const n=xm(e);n.warnings.length>0&&n.warnings.forEach((e=>{})),n.suggestions.length>0&&n.suggestions.forEach((e=>{}));const a=[];e.interactiveEffects&&a.push("Interactive Effects"),e.optimization&&a.push("Optimization"),e.visualPolish&&a.push("Visual Polish"),e.ai&&a.push("AI Integration"),e.tokenEngine&&a.push("Token Engine"),e.generator&&a.push("Component Generator"),a.length>0&&a.forEach((e=>{}))}function Tm(e){return Ud({configPath:e?.configPath,required:e?.required??!1})}function _m(e){return Bd(e)}const Cm=ac,Lm=ql,Im=Cd,wm=Ld,Om=Object.freeze({__proto__:null,DesignTokensCustomizer:Gh,RTLManager:Xh,ThemeApplicator:Eh,ThemeComparator:Ih,ThemeContext:eh,ThemeErrorBoundary:vh,ThemeInspector:Lh,ThemeLiveEditor:Fh,ThemePreview:_h,ThemeProvider:ph,ThemeToggle:yh,ThemeValidator:Ch,alpha:Fu,applyCSSVariables:Cl,applyComponentTheme:Zu,applyTheme:Nh,camelToKebab:ju,clearThemePreference:Cu,clearThemes:eu,configToTokens:Md,createPerformanceMonitor:$h,createRTLManager:Zh,createResponsiveUtil:Wh,createSpacing:Vu,createTheme:Vd,createThemeRegistry:Wd,createTokens:wd,cssVarsToStyle:wl,darken:Uu,deepMerge:$d,default:{createTheme:Vd,injectTheme:nm,removeTheme:am,ThemeProvider:ph,useTheme:gh,useThemeTokens:fh,ThemeContext:eh,ThemeErrorBoundary:vh,configToTokens:Md,designTokensToCSSVars:Pd,switchTheme:yu,toggleTheme:Eu,getCurrentTheme:Au,getSystemTheme:xu,initializeTheme:Nu,listenToSystemTheme:Tu,persistTheme:_u,clearThemePreference:Cu,mergeTokens:Lu,overrideTokens:Iu,pickTokens:wu,omitTokens:Ou,hexToRgb:Ru,rgbToHex:ku,getLuminance:Mu,getContrastRatio:Du,isAccessible:Pu,getContrastText:Bu,lighten:zu,darken:Uu,alpha:Fu,emphasize:Gu,createSpacing:Vu,createPerformanceMonitor:$h,usePerformanceMonitor:Yh,createResponsiveUtil:Wh,useResponsive:jh,ThemeToggle:yh,ThemeApplicator:Eh,applyTheme:Nh,getThemeApplicator:xh,createThemeRegistry:Wd,registerTheme:jd,unregisterTheme:qd,hasTheme:Qd,getTheme:Xd,getAllThemes:Zd,getThemeIds:Jd,clearThemes:eu,getThemeCount:tu,deepMerge:$d,mergeTheme:Yd,extendTheme:Kd,createTokens:wd,defaultTokens:Id,generateCSSVariables:Od,generateCSSVariablesForSelector:Rd,generateClassName:Yu,generateCSSVariableName:Ku,normalizeThemeTokens:Wu,camelToKebab:ju,themePropertyToCSSVar:qu,getComponentThemeValue:Qu,generateComponentCSSVars:Xu,applyComponentTheme:Zu,useComponentTheme:Ju,useThemeSwitcher:Sh,isDesignTokens:Vh,mapSCSSTokensToCSSVars:_l,applyCSSVariables:Cl,removeCSSVariables:Ll,getCSSVariable:Il,cssVarsToStyle:wl,mergeCSSVars:Ol,isValidCSSVariableName:Rl,extractComponentName:kl,injectCSS:au,removeCSS:ru,isCSSInjected:iu,RTLManager:Xh,createRTLManager:Zh,isRTLLocale:Jh,getDirectionFromLocale:em,rtlCSS:tm},defaultTokens:Id,designTokensToCSSVars:Pd,emphasize:Gu,extendTheme:Kd,extractComponentName:kl,generateCSSVariableName:Ku,generateCSSVariables:Od,generateCSSVariablesForSelector:Rd,generateClassName:Yu,generateComponentCSSVars:Xu,getAllThemes:Zd,getCSSVariable:Il,getComponentThemeValue:Qu,getContrastRatio:Du,getContrastText:Bu,getCurrentTheme:Au,getDirectionFromLocale:em,getLuminance:Mu,getSystemTheme:xu,getTheme:Xd,getThemeApplicator:xh,getThemeCount:tu,getThemeIds:Jd,hasTheme:Qd,hexToRgb:Ru,initializeTheme:Nu,injectCSS:au,injectTheme:nm,isAccessible:Pu,isCSSInjected:iu,isDesignTokens:Vh,isRTLLocale:Jh,isValidCSSVariableName:Rl,lighten:zu,listenToSystemTheme:Tu,mapSCSSTokensToCSSVars:_l,mergeCSSVars:Ol,mergeTheme:Yd,mergeTokens:Lu,normalizeThemeTokens:Wu,omitTokens:Ou,overrideTokens:Iu,persistTheme:_u,pickTokens:wu,registerTheme:jd,removeCSS:ru,removeCSSVariables:Ll,removeTheme:am,rgbToHex:ku,rtlCSS:tm,switchTheme:yu,themePropertyToCSSVar:qu,toggleTheme:Eu,unregisterTheme:qd,useComponentTheme:Ju,useHistory:zh,usePerformanceMonitor:Yh,useResponsive:jh,useTheme:gh,useThemeSwitcher:Sh,useThemeTokens:fh});function Rm(e,t,n){return Bh({name:e,palette:{primary:{main:t},secondary:n?{main:n}:void 0}})}function km(e){const t={name:e.name+" Dark",palette:{mode:"dark",primary:e.palette?.primary,secondary:e.palette?.secondary,error:e.palette?.error,warning:e.palette?.warning,info:e.palette?.info,success:e.palette?.success,background:{default:"#121212",paper:"#1e1e1e",subtle:"#1e1e1e"},text:{primary:"#ffffff",secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.38)"}}};return{...e,...t,palette:{...e.palette,...t.palette,background:{...e.palette?.background,...t.palette?.background},text:{...e.palette?.text,...t.palette?.text}}}}function Mm(e){const t=[];return e.name||t.push("Theme must have a name"),e.palette||t.push("Theme must have a palette"),e.palette&&!e.palette.primary&&t.push("Theme palette must have a primary color"),{valid:0===t.length,errors:t}}function Dm(e,t=":root"){return $u(e,{selector:t,prefix:"atomix"})}function Pm(e){return{name:e.name||"Custom Theme",description:e.description,author:e.author,version:e.version||"1.0.0",tags:e.tags||[],supportsDarkMode:"dark"===e.palette?.mode,status:"stable",color:e.palette?.primary?.main||"#7AFFD7"}}function Bm(e){var t;return"dark"===e.palette?.mode||!0===e.supportsDarkMode||!!(null==(t=e.a11y?.modes)?void 0:Function.call.bind(Ra(t),t))?.("dark")}function zm(e){return JSON.stringify(e,null,2)}function Um(e){try{return JSON.parse(e)}catch(t){throw Error("Invalid theme JSON")}}const Fm={..._d,...yc,composables:Cm,utils:Lm,constants:wm,types:Im};export{Ga as ACCORDION,Dr as ATOMIX_GLASS,yr as AVATAR,Er as AVATAR_GROUP,zi as Accordion,ps as AreaChart,Ri as AtomixGlass,Ui as AtomixLogo,ao as Avatar,ro as AvatarGroup,Va as BADGE,cm as BADGE_CSS_VARS,Ti as BALANCED_PRESET,kr as BLOCK,Ya as BREADCRUMB,za as BUTTON,rm as BUTTON_CSS_VARS,Ua as BUTTON_GROUP,oo as Badge,fs as BarChart,co as Block,ho as Breadcrumb,bs as BubbleChart,Vo as Button,Ho as ButtonGroup,Fa as CALLOUT,br as CARD,im as CARD_CSS_VARS,Or as CHART,mm as CHECKBOX_CSS_VARS,Da as CLASS_PREFIX,Rr as CODE_SNIPPET,gm as COMPONENT_CSS_VARS,Ka as COUNTDOWN,Xo as Callout,vs as CandlestickChart,as as Card,cs as Chart,us as ChartRenderer,Ys as Checkbox,zs as ColorModeToggle,so as Container,Us as Countdown,cr as DATA_TABLE_CLASSES,dr as DATA_TABLE_SELECTORS,_r as DATEPICKER,jl as DEFAULT_ATOMIX_FONTS,pi as DEFAULT_BREAKPOINTS,Nr as DROPDOWN,lm as DROPDOWN_CSS_VARS,el as DataTable,il as DatePicker,Gh as DesignTokensCustomizer,wi as DeviceDetector,Ss as DonutChart,Js as Dropdown,lr as EDGE_PANEL,ul as EdgePanel,rs as ElevationCard,Mr as FOOTER,mr as FORM,pr as FORM_GROUP,bc as Footer,Ac as FooterLink,Ec as FooterSection,mc as FooterSocialLink,ml as Form,gl as FormGroup,ys as FunnelChart,Es as GaugeChart,pc as Grid,gc as GridCol,Wa as HERO,xs as HeatmapChart,Nc as Hero,gr as INPUT,om as INPUT_CSS_VARS,no as Icon,bl as Input,Ha as LIST,$a as LIST_GROUP,Ts as LineChart,_c as List,Cc as ListGroup,xr as MESSAGES,Li as MOBILE_OPTIMIZED_BREAKPOINTS,Ar as MODAL,sm as MODAL_CSS_VARS,vc as MasonryGrid,Sc as MasonryGridItem,Wc as MegaMenu,jc as MegaMenuColumn,qc as MegaMenuLink,Hc as Menu,Kc as MenuDivider,$c as MenuItem,Lc as Messages,Mc as Modal,_s as MultiAxisChart,ir as NAV,rr as NAVBAR,Dc as Nav,Qc as NavDropdown,zc as NavItem,Uc as Navbar,ur as PAGINATION_DEFAULTS,Ni as PERFORMANCE_PRESET,Lr as PHOTOVIEWER,qa as POPOVER,Tr as PROGRESS,um as PROGRESS_CSS_VARS,$s as Pagination,Si as PerformanceOverlay,nd as PhotoViewer,Ls as PieChart,rd as Popover,sd as ProductReview,ld as Progress,_i as QUALITY_PRESET,fr as RADIO,pm as RADIO_CSS_VARS,sr as RATING,nr as RIVER,Xh as RTLManager,Is as RadarChart,lc as Radio,od as Rating,cd as River,fc as Row,tr as SECTION_INTRO,vr as SELECT,or as SIDE_MENU,Ma as SIZES,wr as SLIDER,er as SPINNER,Za as STEPS,ws as ScatterChart,dd as SectionIntro,sc as Select,Vc as SideMenu,Gc as SideMenuItem,Fc as SideMenuList,ud as Slider,po as Spinner,md as Steps,Xa as TAB,dm as TABS_CSS_VARS,Ja as TESTIMONIAL,Sr as TEXTAREA,ka as THEME_COLORS,Pa as THEME_NAMING,hr as TODO,Qa as TOGGLE,ja as TOOLTIP,hm as TOOLTIP_CSS_VARS,Ba as TYPEDBUTTON,Sd as Tabs,yd as Testimonial,cc as Textarea,Eh as ThemeApplicator,Ih as ThemeComparator,eh as ThemeContext,vh as ThemeErrorBoundary,Lh as ThemeInspector,Fh as ThemeLiveEditor,_h as ThemePreview,ph as ThemeProvider,yh as ThemeToggle,Ch as ThemeValidator,Ed as Todo,Ad as Toggle,xd as Tooltip,Ms as TreemapChart,ar as UPLOAD,Nd as Upload,Cr as VIDEO_PLAYER,Td as VideoPlayer,Ds as WaterfallChart,Fu as alpha,Cl as applyCSSVariables,Em as applyCSSVarsToStyle,Zu as applyComponentTheme,Dl as applyPartStyles,Nh as applyTheme,ju as camelToKebab,Cu as clearThemePreference,eu as clearThemes,Cm as composables,Md as configToTokens,wm as constants,bi as createBreakpoints,Pl as createCSSVarStyle,km as createDarkVariant,Gl as createDebugAttrs,Yl as createFontPreloadLink,Ul as createPartProps,$h as createPerformanceMonitor,Zh as createRTLManager,Wh as createResponsiveUtil,Uo as createSlotComponent,Fo as createSlotProps,Vu as createSpacing,Vd as createTheme,Wd as createThemeRegistry,wd as createTokens,wl as cssVarsToStyle,Uu as darken,$d as deepMerge,Fm as default,Id as defaultTokens,Am as defineConfig,Pd as designTokensToCSSVars,Gu as emphasize,zm as exportTheme,Kd as extendTheme,kl as extractComponentName,$l as extractYouTubeId,Ku as generateCSSVariableName,Od as generateCSSVariables,Rd as generateCSSVariablesForSelector,Yu as generateClassName,Xu as generateComponentCSSVars,Wl as generateFontPreloadTags,Vl as generateUUID,Zd as getAllThemes,Il as getCSSVariable,fm as getComponentCSSVars,Qu as getComponentThemeValue,Du as getContrastRatio,Bu as getContrastText,Au as getCurrentTheme,fi as getDefaultBreakpoints,Ci as getDevicePreset,em as getDirectionFromLocale,Mu as getLuminance,Ii as getMobileOptimizedParams,zl as getPartStyles,yi as getQualityMultipliers,xu as getSystemTheme,Xd as getTheme,xh as getThemeApplicator,tu as getThemeCount,Jd as getThemeIds,Pm as getThemeMetadata,Fl as hasCustomization,Qd as hasTheme,Ru as hexToRgb,Um as importTheme,Nu as initializeTheme,au as injectCSS,nm as injectTheme,Pu as isAccessible,iu as isCSSInjected,Vh as isDesignTokens,Jh as isRTLLocale,Bo as isSlot,Rl as isValidCSSVariableName,Hl as isYouTubeUrl,zu as lighten,Tu as listenToSystemTheme,Ud as loadAtomixConfig,Tm as loadConfig,_l as mapSCSSTokensToCSSVars,Ol as mergeCSSVars,Ml as mergeClassNames,Bl as mergeComponentProps,bm as mergePartStyles,zo as mergeSlots,Yd as mergeTheme,Lu as mergeTokens,Wu as normalizeThemeTokens,Ou as omitTokens,Iu as overrideTokens,_u as persistTheme,wu as pickTokens,Kl as preloadFonts,Nm as printConfigReport,Rm as quickTheme,jd as registerTheme,ru as removeCSS,Ll as removeCSSVariables,am as removeTheme,Po as renderSlot,Gd as resolveConfigPath,ku as rgbToHex,tm as rtlCSS,Ir as sliderConstants,Bm as supportsDarkMode,yu as switchTheme,Om as theme,qu as themePropertyToCSSVar,Dm as themeToCSS,Eu as toggleTheme,Im as types,qd as unregisterTheme,Pr as useAccordion,mi as useAtomixGlass,io as useBadge,gs as useBarChart,lo as useBlock,ec as useChartData,nc as useChartInteraction,tc as useChartScale,vm as useComponentCustomization,Sm as useComponentDefaultProps,Ju as useComponentTheme,ol as useEdgePanel,hl as useForm,pl as useFormGroup,vl as useHero,zh as useHistory,fl as useInput,Ns as useLineChart,ym as useMergedProps,El as useNav,xl as useNavDropdown,Al as useNavItem,yl as useNavbar,Cs as usePieChart,Xl as useRadio,jh as useResponsive,gi as useResponsiveGlass,Sl as useRiver,Zl as useSelect,Nl as useSideMenu,Tl as useSideMenuItem,Go as useSlot,mo as useSpinner,Jl as useTextarea,gh as useTheme,Sh as useThemeSwitcher,fh as useThemeTokens,Ql as useTodo,Lm as utils,_m as validateConfig,xm as validateConfiguration,Mm as validateTheme};
|
|
1
|
+
import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";import a,{useState as r,useRef as i,useCallback as o,useEffect as s,memo as l,forwardRef as c,useId as d,useMemo as u,Children as h,isValidElement as m,cloneElement as p,createContext as g,useContext as f,useImperativeHandle as b,Component as v}from"react";import*as S from"@phosphor-icons/react";import{Pause as y,Play as E,SkipBack as A,SkipForward as x,SpeakerX as N,SpeakerHigh as T,Gear as _,Download as C,Share as L,ArrowsIn as I,ArrowsOut as w}from"@phosphor-icons/react";import{createPortal as O}from"react-dom";var R="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function k(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var M=function(e){try{return!!e()}catch(t){return!0}},D=!M((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})),P=D,B=Function.prototype,z=B.call,U=P&&B.bind.bind(z,z),F=P?U:function(e){return function(){return z.apply(e,arguments)}},G=F({}.isPrototypeOf),V=function(e){return e&&e.Math===Math&&e},H=V("object"==typeof globalThis&&globalThis)||V("object"==typeof window&&window)||V("object"==typeof self&&self)||V("object"==typeof R&&R)||V("object"==typeof R&&R)||function(){return this}()||Function("return this")(),$=D,Y=Function.prototype,K=Y.apply,W=Y.call,j="object"==typeof Reflect&&Reflect.apply||($?W.bind(K):function(){return W.apply(K,arguments)}),q=F,Q=q({}.toString),X=q("".slice),Z=function(e){return X(Q(e),8,-1)},J=Z,ee=F,te=function(e){if("Function"===J(e))return ee(e)},ne="object"==typeof document&&document.all,ae=void 0===ne&&void 0!==ne?function(e){return"function"==typeof e||e===ne}:function(e){return"function"==typeof e},re={},ie=!M((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})),oe=D,se=Function.prototype.call,le=oe?se.bind(se):function(){return se.apply(se,arguments)},ce={},de={}.propertyIsEnumerable,ue=Object.getOwnPropertyDescriptor,he=ue&&!de.call({1:2},1);ce.f=he?function(e){var t=ue(this,e);return!!t&&t.enumerable}:de;var me,pe,ge=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},fe=M,be=Z,ve=Object,Se=F("".split),ye=fe((function(){return!ve("z").propertyIsEnumerable(0)}))?function(e){return"String"===be(e)?Se(e,""):ve(e)}:ve,Ee=function(e){return null==e},Ae=Ee,xe=TypeError,Ne=function(e){if(Ae(e))throw new xe("Can't call method on "+e);return e},Te=ye,_e=Ne,Ce=function(e){return Te(_e(e))},Le=ae,Ie=function(e){return"object"==typeof e?null!==e:Le(e)},we={},Oe=we,Re=H,ke=ae,Me=function(e){return ke(e)?e:void 0},De=H.navigator,Pe=De&&De.userAgent,Be=Pe?Pe+"":"",ze=H,Ue=Be,Fe=ze.process,Ge=ze.Deno,Ve=Fe&&Fe.versions||Ge&&Ge.version,He=Ve&&Ve.v8;He&&(pe=(me=He.split("."))[0]>0&&4>me[0]?1:+(me[0]+me[1])),!pe&&Ue&&((me=Ue.match(/Edge\/(\d+)/))&&74>me[1]||(me=Ue.match(/Chrome\/(\d+)/))&&(pe=+me[1]));var $e=pe,Ye=$e,Ke=M,We=H.String,je=!!Object.getOwnPropertySymbols&&!Ke((function(){var e=Symbol("symbol detection");return!We(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Ye&&41>Ye})),qe=je&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Qe=ae,Xe=G,Ze=Object,Je=qe?function(e){return"symbol"==typeof e}:function(e){var t=function(e,t){return 2>arguments.length?Me(Oe[e])||Me(Re[e]):Oe[e]&&Oe[e][t]||Re[e]&&Re[e][t]}("Symbol");return Qe(t)&&Xe(t.prototype,Ze(e))},et=String,tt=ae,nt=TypeError,at=function(e){if(tt(e))return e;throw new nt(function(e){try{return et(e)}catch(t){return"Object"}}(e)+" is not a function")},rt=at,it=Ee,ot=le,st=ae,lt=Ie,ct=TypeError,dt={exports:{}},ut=H,ht=Object.defineProperty,mt=H,pt="__core-js_shared__",gt=dt.exports=mt[pt]||function(e,t){try{ht(ut,e,{value:t,configurable:!0,writable:!0})}catch(n){ut[e]=t}return t}(pt,{});(gt.versions||(gt.versions=[])).push({version:"3.43.0",mode:"pure",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.43.0/LICENSE",source:"https://github.com/zloirock/core-js"});var ft=dt.exports,bt=Ne,vt=Object,St=function(e){return vt(bt(e))},yt=St,Et=F({}.hasOwnProperty),At=Object.hasOwn||function(e,t){return Et(yt(e),t)},xt=F,Nt=0,Tt=Math.random(),_t=xt(1.1.toString),Ct=At,Lt=je,It=qe,wt=H.Symbol,Ot=ft["wks"]||(ft.wks={}),Rt=It?wt.for||wt:wt&&wt.withoutSetter||function(e){return"Symbol("+(void 0===e?"":e)+")_"+_t(++Nt+Tt,36)},kt=function(e){return Ct(Ot,e)||(Ot[e]=Lt&&Ct(wt,e)?wt[e]:Rt("Symbol."+e)),Ot[e]},Mt=le,Dt=Ie,Pt=Je,Bt=TypeError,zt=kt("toPrimitive"),Ut=Je,Ft=function(e){var t=function(e,t){if(!Dt(e)||Pt(e))return e;var n,a,r=(a=e[zt],it(a)?void 0:rt(a));if(r){if(void 0===t&&(t="default"),n=Mt(r,e,t),!Dt(n)||Pt(n))return n;throw new Bt("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,a;if("string"===t&&st(n=e.toString)&&!lt(a=ot(n,e)))return a;if(st(n=e.valueOf)&&!lt(a=ot(n,e)))return a;if("string"!==t&&st(n=e.toString)&&!lt(a=ot(n,e)))return a;throw new ct("Can't convert object to primitive value")}(e,t)}(e,"string");return Ut(t)?t:t+""},Gt=Ie,Vt=H.document,Ht=Gt(Vt)&&Gt(Vt.createElement),$t=!ie&&!M((function(){return 7!==Object.defineProperty(Ht?Vt.createElement("div"):{},"a",{get:function(){return 7}}).a})),Yt=ie,Kt=le,Wt=ce,jt=ge,qt=Ce,Qt=Ft,Xt=At,Zt=$t,Jt=Object.getOwnPropertyDescriptor;re.f=Yt?Jt:function(e,t){if(e=qt(e),t=Qt(t),Zt)try{return Jt(e,t)}catch(n){}if(Xt(e,t))return jt(!Kt(Wt.f,e,t),e[t])};var en=M,tn=ae,nn=/#|\.prototype\./,an=function(e,t){var n=on[rn(e)];return n===ln||n!==sn&&(tn(t)?en(t):!!t)},rn=an.normalize=function(e){return(e+"").replace(nn,".").toLowerCase()},on=an.data={},sn=an.NATIVE="N",ln=an.POLYFILL="P",cn=an,dn=at,un=D,hn=te(te.bind),mn={},pn=ie&&M((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),gn=Ie,fn=String,bn=TypeError,vn=ie,Sn=$t,yn=pn,En=function(e){if(gn(e))return e;throw new bn(fn(e)+" is not an object")},An=Ft,xn=TypeError,Nn=Object.defineProperty,Tn=Object.getOwnPropertyDescriptor,_n="enumerable",Cn="configurable",Ln="writable";mn.f=vn?yn?function(e,t,n){if(En(e),t=An(t),En(n),"function"==typeof e&&"prototype"===t&&"value"in n&&Ln in n&&!n[Ln]){var a=Tn(e,t);a&&a[Ln]&&(e[t]=n.value,n={configurable:Cn in n?n[Cn]:a[Cn],enumerable:_n in n?n[_n]:a[_n],writable:!1})}return Nn(e,t,n)}:Nn:function(e,t,n){if(En(e),t=An(t),En(n),Sn)try{return Nn(e,t,n)}catch(a){}if("get"in n||"set"in n)throw new xn("Accessors not supported");return"value"in n&&(e[t]=n.value),e};var In=mn,wn=ge,On=ie?function(e,t,n){return In.f(e,t,wn(1,n))}:function(e,t,n){return e[t]=n,e},Rn=H,kn=j,Mn=te,Dn=ae,Pn=re.f,Bn=cn,zn=we,Un=function(e,t){return dn(e),void 0===t?e:un?hn(e,t):function(){return e.apply(t,arguments)}},Fn=On,Gn=At,Vn=function(e){var t=function(n,a,r){if(this instanceof t){switch(arguments.length){case 0:return new e;case 1:return new e(n);case 2:return new e(n,a)}return new e(n,a,r)}return kn(e,this,arguments)};return t.prototype=e.prototype,t},Hn=function(e,t){var n,a,r,i,o,s,l,c,d,u=e.target,h=e.global,m=e.stat,p=e.proto,g=h?Rn:m?Rn[u]:Rn[u]&&Rn[u].prototype,f=h?zn:zn[u]||Fn(zn,u,{})[u],b=f.prototype;for(i in t)a=!(n=Bn(h?i:u+(m?".":"#")+i,e.forced))&&g&&Gn(g,i),s=f[i],a&&(l=e.dontCallGetSet?(d=Pn(g,i))&&d.value:g[i]),o=a&&l?l:t[i],(n||p||typeof s!=typeof o)&&(c=e.bind&&a?Un(o,Rn):e.wrap&&a?Vn(o):p&&Dn(o)?Mn(o):o,(e.sham||o&&o.sham||s&&s.sham)&&Fn(c,"sham",!0),Fn(f,i,c),p&&(Gn(zn,r=u+"Prototype")||Fn(zn,r,{}),Fn(zn[r],i,o),e.real&&b&&(n||!b[i])&&Fn(b,i,o)))},$n=Math.ceil,Yn=Math.floor,Kn=Math.trunc||function(e){var t=+e;return(t>0?Yn:$n)(t)},Wn=function(e){var t=+e;return t!=t||0===t?0:Kn(t)},jn=Wn,qn=Math.max,Qn=Math.min,Xn=Wn,Zn=Math.min,Jn=function(e){return t=e.length,(n=Xn(t))>0?Zn(n,9007199254740991):0;var t,n},ea=Ce,ta=Jn,na=function(e){return function(t,n,a){var r=ea(t),i=ta(r);if(0===i)return!e&&-1;var o,s=function(e,t){var n=jn(e);return 0>n?qn(n+t,0):Qn(n,t)}(a,i);if(e&&n!=n){for(;i>s;)if((o=r[s++])!=o)return!0}else for(;i>s;s++)if((e||s in r)&&r[s]===n)return e||s||0;return!e&&-1}},aa=[na(!0),na(!1)][0];Hn({target:"Array",proto:!0,forced:M((function(){return!1}))},{includes:function(e){return aa(this,e,arguments.length>1?arguments[1]:void 0)}});var ra=H,ia=we,oa=function(e,t){var n=ia[e+"Prototype"],a=n&&n[t];if(a)return a;var r=ra[e],i=r&&r.prototype;return i&&i[t]},sa=oa("Array","includes"),la=Ie,ca=Z,da=kt("match"),ua=TypeError,ha={};ha[kt("toStringTag")]="z";var ma=ha+""=="[object z]",pa=ae,ga=Z,fa=kt("toStringTag"),ba=Object,va="Arguments"===ga(function(){return arguments}()),Sa=ma?ga:function(e){var t,n,a;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(n){}}(t=ba(e),fa))?n:va?ga(t):"Object"===(a=ga(t))&&pa(t.callee)?"Arguments":a},ya=String,Ea=kt("match"),Aa=Hn,xa=Ne,Na=function(e){if("Symbol"===Sa(e))throw new TypeError("Cannot convert a Symbol value to a string");return ya(e)},Ta=F("".indexOf);Aa({target:"String",proto:!0,forced:!function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[Ea]=!1,"/./"[e](t)}catch(a){}}return!1}("includes")},{includes:function(e){return!!~Ta(Na(xa(this)),Na(function(e){if(function(e){var t;return la(e)&&(void 0!==(t=e[da])?!!t:"RegExp"===ca(e))}(e))throw new ua("The method doesn't accept regular expressions");return e}(e)),arguments.length>1?arguments[1]:void 0)}});var _a=oa("String","includes"),Ca=G,La=sa,Ia=_a,wa=Array.prototype,Oa=String.prototype,Ra=k((function(e){var t=e.includes;return e===wa||Ca(wa,e)&&t===wa.includes?La:"string"==typeof e||e===Oa||Ca(Oa,e)&&t===Oa.includes?Ia:t}));const ka=["primary","secondary","success","info","warning","error","light","dark"],Ma=["sm","md","lg"],Da={COMPONENT:"c-",UTILITY:"u-",LAYOUT:"l-",OBJECT:"o-"},Pa={BUTTON_PREFIX:"btn",ICON_ELEMENT:"icon",LABEL_ELEMENT:"label",SPINNER_ELEMENT:"spinner"},Ba={BASE_CLASS:"c-typedbutton",VARIANT_PREFIX:"c-typedbutton--",CLASSES:{BASE:"c-typedbutton",DISABLED:"c-typedbutton--disabled",GLASS:"c-typedbutton--glass"}},za={BASE_CLASS:"c-btn",ICON_CLASS:"c-btn__icon",LABEL_CLASS:"c-btn__label",SPINNER_CLASS:"c-btn__spinner",VARIANT_PREFIX:"c-btn--",CLASSES:{BASE:"c-btn",LOADING:"c-btn--loading",FULL_WIDTH:"c-btn--full-width",BLOCK:"c-btn--block",ACTIVE:"c-btn--active",SELECTED:"c-btn--selected"}},Ua={BASE_CLASS:"c-btn-group",CLASSES:{BASE:"c-btn-group"}},Fa={BASE_CLASS:"c-callout",CONTENT_CLASS:"c-callout__content",ICON_CLASS:"c-callout__icon",MESSAGE_CLASS:"c-callout__message",TITLE_CLASS:"c-callout__title",TEXT_CLASS:"c-callout__text",ACTIONS_CLASS:"c-callout__actions",CLOSE_BTN_CLASS:"c-callout__close-btn",VARIANT_PREFIX:"c-callout--",CLASSES:{COMPACT:"c-callout--compact",TOAST:"c-callout--toast",HIDE:"is-hide"}},Ga={SELECTORS:{ACCORDION:".c-accordion",HEADER:".c-accordion__header",PANEL:".c-accordion__panel",BODY:".c-accordion__body"},CLASSES:{IS_OPEN:"is-open",IS_ANIMATING:"is-animating",IS_DISABLED:"is-disabled"},ATTRIBUTES:{ARIA_EXPANDED:"aria-expanded",ARIA_CONTROLS:"aria-controls",ARIA_HIDDEN:"aria-hidden",ROLE:"role"},CSS_VARS:{PANEL_HEIGHT:"--panel-height"}},Va={BASE_CLASS:"c-badge",ICON_CLASS:"c-badge__icon",VARIANT_PREFIX:"c-badge--",SIZE_PREFIX:"c-badge--"},Ha={BASE_CLASS:"c-list",ITEM_CLASS:"c-list__item",VARIANT_PREFIX:"c-list--",SIZE_PREFIX:"c-list--",CLASSES:{ORDERED:"c-list--ordered",INLINE:"c-list--inline"}},$a={BASE_CLASS:"c-list-group",ITEM_CLASS:"c-list-group__item",VARIANT_PREFIX:"c-list-group--",SIZE_PREFIX:"c-list-group--"},Ya={SELECTORS:{BREADCRUMB:".c-breadcrumb",ITEM:".c-breadcrumb__item",LINK:".c-breadcrumb__link"},CLASSES:{BASE:"c-breadcrumb",ITEM:"c-breadcrumb__item",LINK:"c-breadcrumb__link",ACTIVE:"is-active"},DEFAULTS:{DIVIDER:"›"}},Ka={SELECTORS:{COUNTDOWN:".c-countdown",TIME:".c-countdown__time",TIME_COUNT:".c-countdown__time-count",TIME_LABEL:".c-countdown__time-label",SEPARATOR:".c-countdown__separator"},CLASSES:{BASE:"c-countdown",FOCUSED:"c-countdown--focused"},DEFAULTS:{SEPARATOR:":",SHOW:["days","hours","minutes","seconds"]}},Wa={SELECTORS:{HERO:".c-hero",CONTAINER:".c-hero__container",GRID:".c-hero__grid",CONTENT:".c-hero__content",SUBTITLE:".c-hero__subtitle",TITLE:".c-hero__title",TEXT:".c-hero__text",ACTIONS:".c-hero__actions",IMAGE:".c-hero__image",BG:".c-hero__bg",BG_IMAGE:".c-hero__bg-image",OVERLAY:".c-hero__overlay",IMAGE_WRAPPER:".c-hero__image-wrapper",SLIDER:".c-hero__slider",SLIDER_ITEM:".c-hero__slider-item"},CLASSES:{CENTER:"c-hero--center",RIGHT:"c-hero--right",LEFT:"c-hero--left",FULL_VH:"c-hero--full-vh",SLIDER_FADE:"c-hero__slider--fade",SLIDER_SLIDE:"c-hero__slider--slide",SLIDER_CUSTOM:"c-hero__slider--custom",SLIDER_ITEM_ACTIVE:"c-hero__slider-item--active"}},ja={SELECTORS:{TOOLTIP:".js-atomix-tooltip",TRIGGER:".js-atomix-tooltip-trigger",CONTENT:".js-atomix-tooltip-content",ARROW:".c-tooltip__arrow"},CLASSES:{IS_ACTIVE:"is-active",TOP:"c-tooltip--top",BOTTOM:"c-tooltip--bottom",LEFT:"c-tooltip--left",RIGHT:"c-tooltip--right",TOP_LEFT:"c-tooltip--top-left",TOP_RIGHT:"c-tooltip--top-right",BOTTOM_LEFT:"c-tooltip--bottom-left",BOTTOM_RIGHT:"c-tooltip--bottom-right"},ATTRIBUTES:{POSITION:"data-tooltip-position",TRIGGER:"data-tooltip-trigger",CONTENT_ID:"data-tooltip-id"},DEFAULTS:{TRIGGER:"hover",POSITION:"top",OFFSET:10,DELAY:200}},qa={SELECTORS:{POPOVER:".js-atomix-popover",TRIGGER:".js-atomix-popover-trigger",CONTENT:".js-atomix-popover-content",CONTENT_INNER:".c-popover__content-inner",ARROW:".c-popover__arrow"},CLASSES:{IS_OPEN:"is-open",TOP:"c-popover--top",BOTTOM:"c-popover--bottom",LEFT:"c-popover--left",RIGHT:"c-popover--right",AUTO:"c-popover--auto"},ATTRIBUTES:{POSITION:"data-popover-position",TRIGGER:"data-popover-trigger",CONTENT_ID:"data-popover-id"},DEFAULTS:{TRIGGER:"click",POSITION:"top",OFFSET:12,DELAY:0}},Qa={SELECTORS:{TOGGLE:".c-toggle"},CLASSES:{IS_ON:"is-on"}},Xa={SELECTORS:{TAB:".js-atomix-tab",NAV_ITEMS:".c-tabs__nav-item",NAV_BTN:".c-tabs__nav-btn",PANELS:".c-tabs__panel",PANEL_BODIES:".c-tabs__panel-body"},CLASSES:{ACTIVE:"is-active"},DEFAULTS:{ACTIVE_INDEX:0}},Za={SELECTORS:{STEPS:".c-steps",ITEM:".c-steps__item",LINE:".c-steps__line",CONTENT:".c-steps__content",NUMBER:".c-steps__number",TEXT:".c-steps__text"},CLASSES:{ACTIVE:"is-active",VERTICAL:"c-steps--vertical",COMPLETED:"is-completed"}},Ja={SELECTORS:{TESTIMONIAL:".c-testimonial",QUOTE:".c-testimonial__quote",AUTHOR:".c-testimonial__author",AUTHOR_AVATAR:".c-testimonial__author-avatar",AUTHOR_INFO:".c-testimonial__info",AUTHOR_NAME:".c-testimonial__author-name",AUTHOR_ROLE:".c-testimonial__author-role"},CLASSES:{SMALL:"c-testimonial--sm",LARGE:"c-testimonial--lg"}},er={SELECTORS:{SPINNER:".c-spinner"},CLASSES:{PRIMARY:"c-spinner--primary",SECONDARY:"c-spinner--secondary",SUCCESS:"c-spinner--success",INFO:"c-spinner--info",WARNING:"c-spinner--warning",DANGER:"c-spinner--danger",LIGHT:"c-spinner--light",DARK:"c-spinner--dark",SMALL:"c-spinner--sm",LARGE:"c-spinner--lg"},VISUALLY_HIDDEN:"u-visually-hidden"},tr={SELECTORS:{SECTION_INTRO:".c-sectionintro",LABEL:".c-sectionintro__label",TITLE:".c-sectionintro__title",TEXT:".c-sectionintro__text",ACTIONS:".c-sectionintro__actions"},CLASSES:{CENTER:"c-sectionintro--center",LARGE:"c-sectionintro--lg",SMALL:"c-sectionintro--sm"}},nr={SELECTORS:{RIVER:".c-river",CONTAINER:".c-river__container",ROW:".c-river__row",CONTENT:".c-river__content",CONTENT_COL:".c-river__content-col",CONTENT_COL_TITLE:".c-river__content-col--title",CONTENT_COL_TEXT:".c-river__content-col--text",TITLE:".c-river__title",TEXT:".c-river__text",ACTIONS:".c-river__actions",VISUAL:".c-river__visual",IMAGE_WRAPPER:".c-river__image-wrapper",IMAGE:".c-river__image",BG:".c-river__bg",BG_IMAGE:".c-river__bg-image",OVERLAY:".c-river__overlay"},CLASSES:{CENTER:"c-river--center",BREAKOUT:"c-river--breakout",REVERSE:"c-river--reverse"},ATTRIBUTES:{CONTENT_WIDTH:"--river-content-width"}},ar={SELECTORS:{UPLOAD:".c-upload",INNER:".c-upload__inner",ICON:".c-upload__icon",TITLE:".c-upload__title",TEXT:".c-upload__text",BUTTON:".c-upload__btn",HELPER_TEXT:".c-upload__helper-text",LOADER:".c-upload__loader",LOADER_STATUS:".c-upload__loader-status",LOADER_TITLE:".c-upload__loader-title",LOADER_PROGRESS:".c-upload__loader-progress",LOADER_PAR:".c-upload__loader-par",LOADER_TIME:".c-upload__loader-time",LOADER_CONTROL:".c-upload__loader-control",LOADER_BAR:".c-upload__loader-bar",LOADER_CLOSE:".c-upload__loader-close"},CLASSES:{DISABLED:"c-upload--disabled",ERROR:"c-upload--error",SUCCESS:"c-upload--success",LOADING:"c-upload--loading",DRAGGING:"c-upload--dragging"},ATTRIBUTES:{PERCENTAGE:"--upload-loader-percentage"}},rr={SELECTORS:{NAVBAR:".c-navbar",CONTAINER:".c-navbar__container",BRAND:".c-navbar__brand",COLLAPSE:".c-navbar__collapse",TOGGLER:".c-navbar__toggler",TOGGLER_ICON:".c-navbar__toggler-icon"},CLASSES:{BASE:"c-navbar",CONTAINER:"c-navbar__container",BRAND:"c-navbar__brand",COLLAPSE:"c-navbar__collapse",TOGGLER:"c-navbar__toggler",TOGGLER_ICON:"c-navbar__toggler-icon",FIXED:"c-navbar--fixed",FIXED_BOTTOM:"c-navbar--fixed-bottom",COLLAPSIBLE:"c-navbar--collapsible",EXPANDED:"is-expanded",BACKDROP:"c-navbar__backdrop"},ATTRIBUTES:{NAVBAR:"data-navbar",COLLAPSIBLE:"data-collapsible",EXPANDED:"data-expanded",POSITION:"data-position",BACKDROP:"data-backdrop",AUTO_CLOSE:"data-auto-close",KEYBOARD:"data-keyboard"},DEFAULTS:{POSITION:"static",COLLAPSIBLE:!0,EXPANDED:!1,BACKDROP:!1,AUTO_CLOSE:!0,KEYBOARD:!0,ARIA_LABEL:"Main navigation"}},ir={SELECTORS:{NAV:".c-nav",ITEM:".c-nav__item",LINK:".c-nav__link",DROPDOWN:".c-nav__item--dropdown",DROPDOWN_MENU:".c-nav__dropdown-menu",MEGA_MENU:".c-nav__mega-menu",ICON:".c-nav__icon"},CLASSES:{END:"c-nav--end",CENTER:"c-nav--center",ACTIVE:"is-active",DISABLED:"is-disabled"}},or={SELECTORS:{SIDE_MENU:".c-side-menu",WRAPPER:".c-side-menu__wrapper",INNER:".c-side-menu__inner",TITLE:".c-side-menu__title",TOGGLER:".c-side-menu__toggler",TOGGLER_ICON:".c-side-menu__toggler-icon",LIST:".c-side-menu__list",ITEM:".c-side-menu__item",LINK:".c-side-menu__link",LINK_ICON:".c-side-menu__link-icon",LINK_TEXT:".c-side-menu__link-text"},CLASSES:{BASE:"c-side-menu",WRAPPER:"c-side-menu__wrapper",INNER:"c-side-menu__inner",TITLE:"c-side-menu__title",TOGGLER:"c-side-menu__toggler",TOGGLER_ICON:"c-side-menu__toggler-icon",LIST:"c-side-menu__list",ITEM:"c-side-menu__item",LINK:"c-side-menu__link",LINK_ICON:"c-side-menu__link-icon",LINK_TEXT:"c-side-menu__link-text",IS_OPEN:"is-open",ACTIVE:"is-active",DISABLED:"is-disabled"},ATTRIBUTES:{SIDE_MENU:"data-side-menu",COLLAPSIBLE:"data-collapsible",OPEN:"data-open",TITLE:"data-title"},DEFAULTS:{COLLAPSIBLE:!0,OPEN:!1,TOGGLE_ICON:"▶"}},sr={SELECTORS:{RATING:".c-rating",STAR:".c-rating__star",STAR_FULL:".c-rating__star-full",STAR_HALF:".c-rating__star-half"},CLASSES:{FULL:"c-rating__star--full",HALF:"c-rating__star--half",SMALL:"c-rating--sm",LARGE:"c-rating--lg"},ATTRIBUTES:{READONLY:"data-readonly",VALUE:"data-value"}},lr={SELECTORS:{PANEL:".c-edge-panel",BACKDROP:".c-edge-panel__backdrop",CONTAINER:".c-edge-panel__container",HEADER:".c-edge-panel__header",BODY:".c-edge-panel__body",CLOSE:".c-edge-panel__close"},CLASSES:{BASE:"c-edge-panel",START:"c-edge-panel--start",END:"c-edge-panel--end",TOP:"c-edge-panel--top",BOTTOM:"c-edge-panel--bottom",IS_OPEN:"is-open"},TRANSFORM_VALUES:{start:"translateX(-100%)",end:"translateX(100%)",top:"translateY(-100%)",bottom:"translateY(100%)"},ANIMATION_DURATION:300},cr={base:"c-data-table",container:"c-data-table-container",tableWrapper:"c-data-table-wrapper",header:"c-data-table__header",headerCell:"c-data-table__header-cell",headerContent:"c-data-table__header-content",headerActions:"c-data-table__header-actions",sortable:"c-data-table__header-cell--sortable",sortIcon:"c-data-table__sort-icon",row:"c-data-table__row",rowSelected:"c-data-table__row--selected",cell:"c-data-table__cell",selectionCell:"c-data-table__cell--selection",loadingCell:"c-data-table__loading-cell",loadingIndicator:"c-data-table__loading-indicator",emptyCell:"c-data-table__empty-cell",toolbar:"c-data-table-toolbar",toolbarLeft:"c-data-table-toolbar__left",toolbarRight:"c-data-table-toolbar__right",search:"c-data-table-search",searchInput:"c-data-table-search__input",columnFilter:"c-data-table__column-filter",pagination:"c-data-table__pagination-container",striped:"c-data-table--striped",bordered:"c-data-table--bordered",dense:"c-data-table--dense",loading:"c-data-table--loading",stickyHeader:"c-data-table--sticky-header",dragging:"c-data-table__header-cell--dragging",dragOver:"c-data-table__header-cell--drag-over",resizeHandle:"c-data-table__resize-handle",open:"is-open"},dr={TABLE:".c-data-table",HEADER:".c-data-table__header",HEADER_CELL:".c-data-table__header-cell",ROW:".c-data-table__row",CELL:".c-data-table__cell",PAGINATION:".c-data-table__pagination",PAGINATION_BUTTON:".c-data-table__pagination-button",SEARCH_INPUT:".c-data-table__search-input"},ur={currentPage:1,totalPages:1,siblingCount:1,showFirstLastButtons:!0,showPrevNextButtons:!0,size:"md"},hr={SELECTORS:{TODO:".c-todo",TITLE:".c-todo__title",LIST:".c-todo__list",ITEM:".c-todo__item",ITEM_CONTENT:".c-todo__item-content",ITEM_TEXT:".c-todo__item-text",ITEM_ACTIONS:".c-todo__item-actions",CHECKBOX:".c-todo__checkbox",DELETE_BUTTON:".c-todo__delete-btn",FORM:".c-todo__form",INPUT:".c-todo__input",ADD_BUTTON:".c-todo__add-btn"},CLASSES:{BASE:"c-todo",ITEM:"c-todo__item",COMPLETED:"c-todo__item--completed",SMALL:"c-todo--sm",LARGE:"c-todo--lg"}},mr={SELECTORS:{FORM:".c-form",GROUP:".c-form-group",LABEL:".c-form-group__label",HELPER:".c-form-group__helper",FIELD:".c-form-group__field",REQUIRED:".c-form-group__required"},CLASSES:{BASE:"c-form",DISABLED:"c-form--disabled"}},pr={SELECTORS:{GROUP:".c-form-group",LABEL:".c-form-group__label",FIELD:".c-form-group__field",HELPER:".c-form-group__helper",REQUIRED:".c-form-group__required"},CLASSES:{BASE:"c-form-group",SMALL:"c-form-group--sm",LARGE:"c-form-group--lg",INVALID:"c-form-group--invalid",VALID:"c-form-group--valid",DISABLED:"c-form-group--disabled"}},gr={SELECTORS:{INPUT:".c-input"},CLASSES:{BASE:"c-input",SMALL:"c-input--sm",LARGE:"c-input--lg",INVALID:"is-invalid",VALID:"is-valid",DISABLED:"is-disabled",FULL_WIDTH:"c-input--full-width",PREFIX_ICON:"c-input--prefix-icon",SUFFIX_ICON:"c-input--suffix-icon",CLEARABLE:"c-input--clearable",WITH_COUNTER:"c-input--with-counter",PASSWORD_TOGGLE:"c-input--password-toggle"},ELEMENTS:{WRAPPER:"c-input-wrapper",PREFIX:"c-input__prefix",SUFFIX:"c-input__suffix",CLEAR_BUTTON:"c-input__clear",PASSWORD_TOGGLE:"c-input__password-toggle",COUNTER:"c-input__counter",ERROR_MESSAGE:"c-input__error",HELPER_TEXT:"c-input__helper"}},fr={SELECTORS:{RADIO:".c-radio",INPUT:".c-radio__input",LABEL:".c-radio__label"},CLASSES:{BASE:"c-radio",INVALID:"is-error",VALID:"is-valid",DISABLED:"is-disabled"}},br={SELECTORS:{CARD:".c-card",HEADER:".c-card__header",BODY:".c-card__body",IMAGE:".c-card__image",TITLE:".c-card__title",TEXT:".c-card__text",ACTIONS:".c-card__actions",ICON:".c-card__icon",FOOTER:".c-card__footer"},CLASSES:{BASE:"c-card",SM:"c-card--sm",MD:"c-card--md",LG:"c-card--lg",ROW:"c-card--row",FLAT:"c-card--flat",FILLED:"c-card--filled",OUTLINED:"c-card--outlined",GHOST:"c-card--ghost",ELEVATED:"c-card--elevated",ELEVATION_NONE:"c-card--elevation-none",ELEVATION_SM:"c-card--elevation-sm",ELEVATION_MD:"c-card--elevation-md",ELEVATION_LG:"c-card--elevation-lg",ELEVATION_XL:"c-card--elevation-xl",ACTIVE:"is-active",DISABLED:"c-card--disabled",LOADING:"c-card--loading",SELECTED:"c-card--selected",INTERACTIVE:"c-card--interactive",FLIPPED:"is-flipped",FOCUSED:"is-focused",CLICKABLE:"is-clickable",GLASS:"c-card--glass"},DEFAULTS:{HOVER:!0,SIZE:"md",VARIANT:"primary",APPEARANCE:"filled",ELEVATION:"none"}},vr={SELECTORS:{SELECT:".c-select",SELECTED:".c-select__selected",SELECT_BODY:".c-select__body",SELECT_PANEL:".c-select__panel",SELECT_ITEMS:".c-select__items",SELECT_ITEM:".c-select__item",ITEM_LABEL:".c-select__item-label",ITEM_INPUT:".c-select__item-input",OPTION:"option"},CLASSES:{BASE:"c-select",SELECTED:"c-select__selected",SELECT_BODY:"c-select__body",SELECT_PANEL:"c-select__panel",SELECT_ITEMS:"c-select__items",SELECT_ITEM:"c-select__item",TOGGLE_ICON:"c-select__toggle-icon",ICON_CARET:"icon-atomix-caret-down",SMALL:"c-select--sm",LARGE:"c-select--lg",INVALID:"is-invalid",VALID:"is-valid",DISABLED:"is-disabled",IS_OPEN:"is-open"}},Sr={SELECTORS:{TEXTAREA:".c-textarea"},CLASSES:{BASE:"c-input c-input--textarea",SMALL:"c-input--sm",LARGE:"c-input--lg",INVALID:"is-invalid",VALID:"is-valid",DISABLED:"is-disabled"}},yr={SELECTORS:{AVATAR:".c-avatar",IMAGE:".c-avatar__image",INITIALS:".c-avatar__initials",ICON:".c-avatar__icon"},CLASSES:{BASE:"c-avatar",XS:"c-avatar--xs",SM:"c-avatar--sm",MD:"c-avatar--md",LG:"c-avatar--lg",XL:"c-avatar--xl",CIRCLE:"c-avatar--circle"}},Er={SELECTORS:{GROUP:".c-avatar-group",MORE:".c-avatar-group__more"},CLASSES:{BASE:"c-avatar-group",STACKED:"c-avatar-group--stacked",MORE:"c-avatar-group__more"}},Ar={SELECTORS:{MODAL:".c-modal",OPEN_BUTTON:".js-modal-open",CLOSE_BUTTONS:".js-modal-close",DIALOG:".c-modal__dialog",BACKDROP:".c-modal__backdrop"},CLASSES:{IS_OPEN:"is-open"},DEFAULT_OPTIONS:{openELm:".js-modal-open",closeELms:".js-modal-close",modalDialogELm:".c-modal__dialog",backdropELm:".c-modal__backdrop",backdrop:!0,keyboard:!0}},xr={SELECTORS:{MESSAGES:".c-messages",BODY:".c-messages__body",CONTENT:".c-messages__content",AVATAR:".c-messages__avatar",ITEMS:".c-messages__items",TEXT:".c-messages__text",FILE:".c-messages__file",IMAGE:".c-messages__image",FORM:".c-messages__form",INPUT:".c-messages__input"},CLASSES:{BASE:"c-messages",BODY:"c-messages__body",CONTENT:"c-messages__content",CONTENT_SELF:"c-messages__content--self",AVATAR:"c-messages__avatar",ITEMS:"c-messages__items",NAME:"c-messages__name",TEXT:"c-messages__text",TIME:"c-messages__time",FILE:"c-messages__file",FILE_ICON:"c-messages__file-icon",FILE_DETAILS:"c-messages__file-details",FILE_NAME:"c-messages__file-name",FILE_SIZE:"c-messages__file-size",IMAGE:"c-messages__image",FORM:"c-messages__form",INPUT_GROUP:"c-messages__input-group",INPUT:"c-messages__input",OPTIONS:"c-messages__options",OPTION:"c-messages__option c-btn",OPTION_ICON:"c-messages__option-icon",SUBMIT:"c-messages__submit"}},Nr={SELECTORS:{DROPDOWN:".c-dropdown",TOGGLE:".c-dropdown__toggle",MENU:".c-dropdown__menu",MENU_WRAPPER:".c-dropdown__menu-wrapper",MENU_INNER:".c-dropdown__menu-inner",MENU_ITEM:".c-dropdown__menu-item",DIVIDER:".c-dropdown__divider",HEADER:".c-dropdown__header"},CLASSES:{IS_OPEN:"is-open",IS_ACTIVE:"is-active",IS_DISABLED:"is-disabled"},DEFAULTS:{PLACEMENT:"bottom-start",TRIGGER:"click",OFFSET:4,MIN_WIDTH:180,ANIMATION_DURATION:"0.25s",ANIMATION_TIMING:"cubic-bezier(0.16, 1, 0.3, 1)"}},Tr={SELECTORS:{PROGRESS:".c-progress",BAR:".c-progress__bar"},CLASSES:{BASE:"c-progress",BAR:"c-progress__bar",SM:"c-progress--sm",MD:"c-progress--md",LG:"c-progress--lg"},ATTRIBUTES:{ARIA_VALUEMIN:"aria-valuemin",ARIA_VALUEMAX:"aria-valuemax",ARIA_VALUENOW:"aria-valuenow",ARIA_LABEL:"aria-label"},CSS_VARS:{PERCENTAGE:"--atomix-progress-percentage"},DEFAULTS:{ARIA_LABEL:"Progress bar"}},_r={SELECTORS:{DATEPICKER:".c-datepicker",INPUT:".c-datepicker__input",CALENDAR:".c-datepicker__calendar",DAY:".c-datepicker__day",MONTH:".c-datepicker__month",YEAR:".c-datepicker__year",HEADER:".c-datepicker__header",BODY:".c-datepicker__body",FOOTER:".c-datepicker__footer",WEEKDAYS:".c-datepicker__weekdays",TODAY_BUTTON:".c-datepicker__today-button",CLEAR_BUTTON:".c-datepicker__clear-button",CLOSE_BUTTON:".c-datepicker__close-button",NAV_BUTTON:".c-datepicker__nav-button",VIEW_SWITCH:".c-datepicker__view-switch"},CLASSES:{IS_OPEN:"is-open",IS_DISABLED:"is-disabled",IS_SELECTED:"is-selected",IS_TODAY:"is-today",INLINE:"c-datepicker--inline"},ATTRIBUTES:{FORMAT:"data-format",MIN_DATE:"data-min-date",MAX_DATE:"data-max-date",INLINE:"data-inline",PLACEMENT:"data-placement",CLEARABLE:"data-clearable",SHOW_TODAY:"data-show-today-button",SHOW_WEEK_NUMBERS:"data-show-week-numbers"},DEFAULTS:{FORMAT:"MM/dd/yyyy",PLACEMENT:"bottom-start",CLEARABLE:!0,SHOW_TODAY_BUTTON:!0,SHOW_WEEK_NUMBERS:!1,INLINE:!1}},Cr={SELECTORS:{VIDEO_PLAYER:".c-video-player",VIDEO:".c-video-player__video",CONTROLS:".c-video-player__controls",PROGRESS:".c-video-player__progress",VOLUME:".c-video-player__volume",SETTINGS:".c-video-player__settings"},CLASSES:{BASE:"c-video-player",VIDEO:"c-video-player__video",YOUTUBE:"c-video-player--youtube",LOADING:"c-video-player__loading",SPINNER:"c-video-player__spinner",CONTROLS:"c-video-player__controls",CONTROLS_VISIBLE:"c-video-player__controls--visible",PROGRESS_CONTAINER:"c-video-player__progress-container",PROGRESS_BAR:"c-video-player__progress-bar",PROGRESS_BUFFERED:"c-video-player__progress-buffered",PROGRESS_PLAYED:"c-video-player__progress-played",PROGRESS_THUMB:"c-video-player__progress-thumb",CONTROLS_ROW:"c-video-player__controls-row",CONTROLS_LEFT:"c-video-player__controls-left",CONTROLS_RIGHT:"c-video-player__controls-right",CONTROL_BUTTON:"c-video-player__control-button",VOLUME_CONTAINER:"c-video-player__volume-container",VOLUME_SLIDER:"c-video-player__volume-slider",VOLUME_BAR:"c-video-player__volume-bar",VOLUME_FILL:"c-video-player__volume-fill",TIME_DISPLAY:"c-video-player__time-display",SETTINGS_CONTAINER:"c-video-player__settings-container",SETTINGS_MENU:"c-video-player__settings-menu",SETTINGS_TABS:"c-video-player__settings-tabs",SETTINGS_TAB:"c-video-player__settings-tab",SETTINGS_TAB_ACTIVE:"c-video-player__settings-tab--active",SETTINGS_CONTENT:"c-video-player__settings-content",SETTINGS_OPTIONS:"c-video-player__settings-options",SETTINGS_OPTION:"c-video-player__settings-option",SETTINGS_OPTION_ACTIVE:"c-video-player__settings-option--active",AMBIENT:"c-video-player--ambient",AMBIENT_CANVAS:"c-video-player__ambient-canvas",GLASS:"c-video-player--glass",GLASS_OVERLAY:"c-video-player__glass-overlay",GLASS_CONTENT:"c-video-player__glass-content"},DEFAULTS:{CONTROLS_TIMEOUT:3e3,VOLUME:1,PLAYBACK_RATE:1,ASPECT_RATIO:"16:9"}},Lr={SELECTOR:".c-photo-viewer",CLASS:"c-photo-viewer",DEFAULTS:{startIndex:0,zoomLevel:1,fullscreen:!1}},Ir={classes:{container:"c-slider",containerModifierClass:"c-slider--",wrapper:"c-slider__wrapper",slide:"c-slider__slide",slideActive:"c-slider__slide--active",slidePrev:"c-slider__slide--prev",slideNext:"c-slider__slide--next",slideDuplicate:"c-slider__slide--duplicate",slideVisible:"c-slider__slide--visible",pagination:"c-slider__pagination",paginationBullet:"c-slider__pagination-bullet",paginationBulletActive:"c-slider__pagination-bullet--active",navigation:"c-slider__navigation",navigationPrev:"c-slider__navigation-prev",navigationNext:"c-slider__navigation-next",navigationDisabled:"c-slider__navigation--disabled",scrollbar:"c-slider__scrollbar",scrollbarDrag:"c-slider__scrollbar-drag",thumbs:"c-slider__thumbs",thumbsWrapper:"c-slider__thumbs-wrapper",thumbsSlide:"c-slider__thumbs-slide",thumbsSlideActive:"c-slider__thumbs-slide--active",zoomContainer:"c-slider__zoom-container",lazyPreloader:"c-slider__lazy-preloader"},defaults:{slidesToShow:1,slidesToScroll:1,spaceBetween:0,centeredSlides:!1,loop:!1,initialSlide:0,direction:"horizontal",speed:300,easing:"ease-out",allowTouchMove:!0,threshold:5,mousewheel:!1,keyboard:!1,grabCursor:!1,freeMode:!1,watchSlidesProgress:!1,watchOverflow:!0,resistanceRatio:.85,preventClicks:!0,preventClicksPropagation:!0,simulateTouch:!0,touchRatio:1,touchAngle:45,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,touchMoveStopPropagation:!0,touchStartPreventDefault:!0,touchReleaseOnEdges:!1,resistance:!0,passiveListeners:!0},breakpoints:{sm:576,md:768,lg:992,xl:1200,xxl:1400},events:{init:"slider:init",destroy:"slider:destroy",slideChange:"slider:slideChange",slideChangeTransitionStart:"slider:slideChangeTransitionStart",slideChangeTransitionEnd:"slider:slideChangeTransitionEnd",touchStart:"slider:touchStart",touchMove:"slider:touchMove",touchEnd:"slider:touchEnd",reachBeginning:"slider:reachBeginning",reachEnd:"slider:reachEnd",progress:"slider:progress",autoplayStart:"slider:autoplayStart",autoplayStop:"slider:autoplayStop",beforeResize:"slider:beforeResize",resize:"slider:resize"}},wr=Ir,Or={BASE_CLASS:"c-chart",ROOT_CLASS:"c-chart",HEADER_CLASS:"c-chart__header",HEADER_CONTENT_CLASS:"c-chart__header-content",TITLE_CLASS:"c-chart__title",SUBTITLE_CLASS:"c-chart__subtitle",TOOLBAR_CLASS:"c-chart__toolbar",ACTION_CLASS:"c-chart__action",EXPORT_GROUP_CLASS:"c-chart__export-group",EXPORT_DROPDOWN_CLASS:"c-chart__export-dropdown",EXPORT_OPTION_CLASS:"c-chart__export-option",SETTINGS_MENU_CLASS:"c-chart__settings-menu",TOOLBAR_GROUP_CLASS:"c-chart__toolbar-group",TOOLBAR_SEPARATOR_CLASS:"c-chart__toolbar-separator",TOOLBAR_LABEL_CLASS:"c-chart__toolbar-label",CONTENT_CLASS:"c-chart__content",CANVAS_CLASS:"c-chart__canvas",LEGEND_CLASS:"c-chart__legend",LEGEND_ITEM_CLASS:"c-chart__legend-item",LEGEND_LABEL_CLASS:"c-chart__legend-label",LEGEND_COLOR_CLASS:"c-chart__legend-color",TOOLTIP_CLASS:"c-chart__tooltip",TOOLTIP_TITLE_CLASS:"c-chart__tooltip-title",TOOLTIP_CONTENT_CLASS:"c-chart__tooltip-content",TOOLTIP_ITEM_CLASS:"c-chart__tooltip-item",TOOLTIP_LABEL_CLASS:"c-chart__tooltip-label",TOOLTIP_VALUE_CLASS:"c-chart__tooltip-value",AXIS_CLASS:"c-chart__axis",AXIS_LABEL_CLASS:"c-chart__axis-label",GRID_CLASS:"c-chart__grid",DATA_POINT_CLASS:"c-chart__data-point",CHART_SVG_CLASS:"c-chart__svg",LOADING_CLASS:"c-chart__loading",LOADING_SPINNER_CLASS:"c-chart__loading-spinner",LOADING_TEXT_CLASS:"c-chart__loading-text",ERROR_CLASS:"c-chart__error",ERROR_ICON_CLASS:"c-chart__error-icon",ERROR_CONTENT_CLASS:"c-chart__error-content",ERROR_MESSAGE_CLASS:"c-chart__error-message",ERROR_DETAILS_CLASS:"c-chart__error-details",EMPTY_CLASS:"c-chart__empty",EMPTY_ICON_CLASS:"c-chart__empty-icon",EMPTY_MESSAGE_CLASS:"c-chart__empty-message",EMPTY_DETAILS_CLASS:"c-chart__empty-details",DEFAULT_WIDTH:800,DEFAULT_HEIGHT:400,PIE_RADIUS_RATIO:.8,DEFAULT_COLORS:["var(--atomix-primary)","var(--atomix-secondary)","var(--atomix-success)","var(--atomix-info)","var(--atomix-warning)","var(--atomix-error)","var(--atomix-primary-5)","var(--atomix-primary-7)","var(--atomix-primary-3)","var(--atomix-gray-6)","var(--atomix-gray-8)","var(--atomix-gray-4)"],TYPE_PREFIX:"c-chart--",SIZE_PREFIX:"c-chart--",VARIANT_PREFIX:"c-chart--",LOADING_STATE_CLASS:"c-chart--loading",ERROR_STATE_CLASS:"c-chart--error",CLASSES:{LINE:"c-chart--line",AREA:"c-chart--area",BAR:"c-chart--bar",HORIZONTAL_BAR:"c-chart--horizontal-bar",PIE:"c-chart--pie",DONUT:"c-chart--donut",DOUGHNUT:"c-chart--doughnut",SCATTER:"c-chart--scatter",RADAR:"c-chart--radar",BUBBLE:"c-chart--bubble",CANDLESTICK:"c-chart--candlestick",GAUGE:"c-chart--gauge",FUNNEL:"c-chart--funnel",WATERFALL:"c-chart--waterfall",HEATMAP:"c-chart--heatmap",TREEMAP:"c-chart--treemap",SM:"c-chart--sm",MD:"c-chart--md",LG:"c-chart--lg",XL:"c-chart--xl",FULL:"c-chart--full",PRIMARY:"c-chart--primary",SECONDARY:"c-chart--secondary",SUCCESS:"c-chart--success",ERROR:"c-chart--error",WARNING:"c-chart--warning",INFO:"c-chart--info",LOADING:"c-chart--loading",INTERACTIVE:"c-chart--interactive",DISABLED:"c-chart--disabled",FULLSCREEN:"c-chart--fullscreen",MINIMIZED:"c-chart--minimized",ADVANCED:"c-chart--advanced",TOOLBAR_SM:"c-chart__toolbar--sm",TOOLBAR_MD:"c-chart__toolbar--md",TOOLBAR_LG:"c-chart__toolbar--lg",TOOLBAR_TOP:"c-chart__toolbar--top",TOOLBAR_BOTTOM:"c-chart__toolbar--bottom",TOOLBAR_LEFT:"c-chart__toolbar--left",TOOLBAR_RIGHT:"c-chart__toolbar--right",ACTION_ACTIVE:"c-chart__action--active",ACTION_DISABLED:"c-chart__action--disabled",ACTION_PRIMARY:"c-chart__action--primary",ACTION_SECONDARY:"c-chart__action--secondary",ACTION_SUCCESS:"c-chart__action--success",ACTION_INFO:"c-chart__action--info",ACTION_WARNING:"c-chart__action--warning",ACTION_ERROR:"c-chart__action--error"},TOOLBAR:{SIZES:["sm","md","lg"],POSITIONS:["top","bottom","left","right"],ACTION_VARIANTS:["primary","secondary","success","info","warning","error"]}},Rr={BASE_CLASS:"c-code-snippet",CONTAINER_CLASS:"c-code-snippet__container",HEADER_CLASS:"c-code-snippet__header",LANGUAGE_CLASS:"c-code-snippet__language",ACTIONS_CLASS:"c-code-snippet__actions",ACTION_CLASS:"c-code-snippet__action",CONTENT_CLASS:"c-code-snippet__content",CODE_CLASS:"c-code-snippet__content__code",LINE_NUMBER_CLASS:"c-code-snippet__content__line-number",COPY_FEEDBACK_CLASS:"c-code-snippet__copy-feedback",MODIFIERS:{FULLSCREEN:"c-code-snippet__container--fullscreen",WRAP:"c-code-snippet__content--wrap",LIGHT:"c-code-snippet__container--light",DARK:"c-code-snippet__container--dark"},ACTION_STATES:{ACTIVE:"c-code-snippet__action--active",DISABLED:"c-code-snippet__action--disabled"},COPY_FEEDBACK_STATES:{VISIBLE:"c-code-snippet__copy-feedback--visible"},THEMES:{LIGHT:"light",DARK:"dark",AUTO:"auto"},DEFAULTS:{SHOW_LINE_NUMBERS:!0,WRAP_LINES:!1,ENABLE_FULLSCREEN:!0,ENABLE_COPY:!0,SHOW_TOOLBAR:!0,THEME:"light"},ARIA_LABELS:{COPY:"Copy code to clipboard",WRAP_LINES:"Toggle line wrapping",FULLSCREEN:"Toggle fullscreen mode",LANGUAGE:"Code language"}},kr={BASE_CLASS:"o-block",SPACING_PREFIX:"o-block--",CLASSES:{SPACING_XS:"o-block--xs",SPACING_SM:"o-block--sm",SPACING_MD:"o-block--md",SPACING_LG:"o-block--lg",SPACING_XL:"o-block--xl",SPACING_NONE:"o-block--no-spacing",FULL_WIDTH:"o-block--full-width",BG_PRIMARY:"o-block--primary",BG_SECONDARY:"o-block--secondary",BG_TERTIARY:"o-block--tertiary",BG_INVERT:"o-block--invert",BG_BRAND:"o-block--brand",BG_ERROR:"o-block--error",BG_SUCCESS:"o-block--success",BG_WARNING:"o-block--warning",BG_INFO:"o-block--info",BG_LIGHT:"o-block--light",BG_DARK:"o-block--dark"},SPACING:{SIZES:["xs","sm","md","lg","xl","none"],DEFAULT:"md"}},Mr={SELECTORS:{FOOTER:".c-footer",CONTAINER:".c-footer__container",SECTIONS:".c-footer__sections",BRAND:".c-footer__brand",BRAND_LOGO:".c-footer__brand-logo",BRAND_NAME:".c-footer__brand-name",BRAND_DESCRIPTION:".c-footer__brand-description",SECTION:".c-footer__section",SECTION_HEADER:".c-footer__section-header",SECTION_TITLE:".c-footer__section-title",SECTION_CONTENT:".c-footer__section-content",SECTION_TOGGLE:".c-footer__section-toggle",LINK:".c-footer__link",SOCIAL:".c-footer__social",SOCIAL_LINK:".c-footer__social-link",NEWSLETTER:".c-footer__newsletter",NEWSLETTER_FORM:".c-footer__newsletter-form",NEWSLETTER_INPUT:".c-footer__newsletter-input",NEWSLETTER_BUTTON:".c-footer__newsletter-button",BOTTOM:".c-footer__bottom",COPYRIGHT:".c-footer__copyright",BACK_TO_TOP:".c-footer__back-to-top",DIVIDER:".c-footer__divider"},CLASSES:{BASE:"c-footer",CONTAINER:"c-footer__container",SECTIONS:"c-footer__sections",BRAND:"c-footer__brand",BRAND_LOGO:"c-footer__brand-logo",BRAND_NAME:"c-footer__brand-name",BRAND_DESCRIPTION:"c-footer__brand-description",SECTION:"c-footer__section",SECTION_HEADER:"c-footer__section-header",SECTION_TITLE:"c-footer__section-title",SECTION_CONTENT:"c-footer__section-content",SECTION_TOGGLE:"c-footer__section-toggle",SECTION_COLLAPSIBLE:"c-footer__section--collapsible",SECTION_COLLAPSED:"c-footer__section--collapsed",LINK:"c-footer__link",LINK_ACTIVE:"c-footer__link--active",LINK_DISABLED:"c-footer__link--disabled",SOCIAL:"c-footer__social",SOCIAL_LINK:"c-footer__social-link",NEWSLETTER:"c-footer__newsletter",NEWSLETTER_FORM:"c-footer__newsletter-form",NEWSLETTER_INPUT:"c-footer__newsletter-input",NEWSLETTER_BUTTON:"c-footer__newsletter-button",BOTTOM:"c-footer__bottom",COPYRIGHT:"c-footer__copyright",BACK_TO_TOP:"c-footer__back-to-top",DIVIDER:"c-footer__divider",COLUMNS:"c-footer--columns",CENTERED:"c-footer--centered",MINIMAL:"c-footer--minimal",STACKED:"c-footer--stacked",FLEXIBLE:"c-footer--flexible",SIDEBAR:"c-footer--sidebar",WIDE:"c-footer--wide",SM:"c-footer--sm",MD:"c-footer--md",LG:"c-footer--lg",STICKY:"c-footer--sticky"},DEFAULTS:{LAYOUT:"columns",VARIANT:"primary",SIZE:"md",SHOW_NEWSLETTER:!1,SHOW_BACK_TO_TOP:!1,SHOW_DIVIDER:!0,STICKY:!1,NEWSLETTER_TITLE:"Stay Updated",NEWSLETTER_DESCRIPTION:"Subscribe to our newsletter for the latest updates.",NEWSLETTER_PLACEHOLDER:"Enter your email",NEWSLETTER_BUTTON_TEXT:"Subscribe",BACK_TO_TOP_TEXT:"Back to Top"}},Dr={BASE_CLASS:"c-atomix-glass",CONTAINER_CLASS:"c-atomix-glass__container",INNER_CLASS:"c-atomix-glass__inner",FILTER_CLASS:"c-atomix-glass__filter",FILTER_OVERLAY_CLASS:"c-atomix-glass__filter-overlay",FILTER_SHADOW_CLASS:"c-atomix-glass__filter-shadow",CONTENT_CLASS:"c-atomix-glass__content",BORDER_BACKDROP_CLASS:"c-atomix-glass__border-backdrop",BORDER_1_CLASS:"c-atomix-glass__border-1",BORDER_2_CLASS:"c-atomix-glass__border-2",HOVER_1_CLASS:"c-atomix-glass__hover-1",HOVER_2_CLASS:"c-atomix-glass__hover-2",HOVER_3_CLASS:"c-atomix-glass__hover-3",BASE_LAYER_CLASS:"c-atomix-glass__base",OVERLAY_LAYER_CLASS:"c-atomix-glass__overlay",OVERLAY_HIGHLIGHT_CLASS:"c-atomix-glass__overlay-highlight",BACKGROUND_LAYER_CLASS:"c-atomix-glass__background-layer",BACKGROUND_LAYER_DARK_CLASS:"c-atomix-glass__background-layer--dark",BACKGROUND_LAYER_BLACK_CLASS:"c-atomix-glass__background-layer--black",BACKGROUND_LAYER_OVER_LIGHT_CLASS:"c-atomix-glass__background-layer--over-light",BACKGROUND_LAYER_HIDDEN_CLASS:"c-atomix-glass__background-layer--hidden",VARIANT_PREFIX:"c-atomix-glass--",MODE_PREFIX:"c-atomix-glass--",CLASSES:{BASE:"c-atomix-glass",CONTAINER:"c-atomix-glass__container",INNER:"c-atomix-glass__inner",FILTER:"c-atomix-glass__filter",CONTENT:"c-atomix-glass__content",ACTIVE:"active",OVER_LIGHT:"c-atomix-glass__container--over-light",STANDARD:"c-atomix-glass--standard",POLAR:"c-atomix-glass--polar",PROMINENT:"c-atomix-glass--prominent",SHADER:"c-atomix-glass--shader"},DEFAULTS:{DISPLACEMENT_SCALE:70,BLUR_AMOUNT:0,SATURATION:140,ABERRATION_INTENSITY:2,ELASTICITY:.15,CORNER_RADIUS:20,PADDING:"0",MODE:"standard",OVER_LIGHT:!1,ENABLE_OVER_LIGHT_LAYERS:!0,WITH_TIME_ANIMATION:!0,ANIMATION_SPEED:1,WITH_MULTI_LAYER_DISTORTION:!1,DISTORTION_OCTAVES:5,DISTORTION_LACUNARITY:2,DISTORTION_GAIN:.5,DISTORTION_QUALITY:"high"},CONSTANTS:{ACTIVATION_ZONE:200,LERP_FACTOR:.08,SMOOTHSTEP_POWER:2.5,MIN_BLUR:.1,MOUSE_INFLUENCE_DIVISOR:100,EDGE_FADE_PIXELS:2,DEFAULT_CORNER_RADIUS:16,MAX_SIZE:4096,PALETTE:{WHITE:"255, 255, 255",BLACK:"0, 0, 0"},GRADIENT:{BASE_ANGLE:135,ANGLE_MULTIPLIER:1.2,BORDER_STOP_1:{MIN:10,BASE:33,MULTIPLIER:.3},BORDER_STOP_2:{MAX:90,BASE:66,MULTIPLIER:.4},BORDER_OPACITY:{BASE_1:.12,BASE_2:.4,BASE_3:.32,BASE_4:.6,MULTIPLIER_LOW:.008,MULTIPLIER_HIGH:.012},CENTER_POSITION:50,HOVER_POSITION:{DIVISOR_1:2,DIVISOR_2:1.5,MULTIPLIER_3:1},BASE_LAYER_MULTIPLIER:.5},GRADIENT_OPACITY:{HOVER_1:{BLACK_START:.3,BLACK_MID:.1,BLACK_STOP:30,BLACK_END:60,WHITE_START:.5,WHITE_STOP:50},HOVER_2:{BLACK_START:.4,BLACK_MID:.15,BLACK_STOP:40,BLACK_END:80,WHITE_START:1,WHITE_STOP:80},HOVER_3:{BLACK_START:.5,BLACK_MID:.2,BLACK_STOP:50,BLACK_END:100,WHITE_START:1,WHITE_STOP:100}},BASE_GRADIENT:{ANGLE:135,BLACK_START_BASE:.15,BLACK_START_MULTIPLIER:.003,BLACK_MID_BASE:.1,BLACK_MID_MULTIPLIER:.002,BLACK_MID_STOP:50,BLACK_END_BASE:.18,BLACK_END_MULTIPLIER:.004,WHITE_OPACITY:.1},OVERLAY_GRADIENT:{BLACK_START_BASE:.12,BLACK_START_MULTIPLIER:.003,BLACK_MID:.06,BLACK_MID_STOP:40,BLACK_END_BASE:.15,BLACK_END_MULTIPLIER:.003,WHITE_OPACITY:.05},OVERLAY_HIGHLIGHT:{POSITION_X:20,POSITION_Y:20,WHITE_OPACITY:.4,STOP:60,OPACITY_MULTIPLIER:.7},MULTIPLIERS:{SHADER_DISPLACEMENT:.8,OVER_LIGHT_DISPLACEMENT:.6,SHADER_ABERRATION:.7},SATURATION:{HIGH_CONTRAST:200},ANIMATION:{BREATHING_CYCLE:2e3,FLOW_SPEED_X:.1,FLOW_SPEED_Y:.15,WAVE_SPEED:.05,WAVE_AMPLITUDE:.02},DISTORTION_QUALITY_PRESETS:{low:{octaves:2,lacunarity:2,gain:.5},medium:{octaves:4,lacunarity:2,gain:.5},high:{octaves:5,lacunarity:2,gain:.5},ultra:{octaves:7,lacunarity:2,gain:.5}}}};function Pr(e){const t={defaultOpen:!1,disabled:!1,iconPosition:"right",...e},n="boolean"==typeof t.isOpen,[a,l]=r(t.defaultOpen||!1),c=n?t.isOpen:a,[d,u]=r(c?"auto":"0px"),h=i(null),m=i(null),p=o((()=>{if(m.current&&h.current){const e=c?m.current.clientHeight+"px":"0px";h.current.style.setProperty(Ga.CSS_VARS.PANEL_HEIGHT,e),u(e)}}),[c]);return s((()=>{p()}),[c,p]),s((()=>{const e=()=>{c&&p()};return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)}),[c,p]),{state:{isOpen:c,panelHeight:d},toggle:()=>{if(!t.disabled){const e=!c;n||l(e),t.onOpenChange?.(e)}},updatePanelHeight:p,panelRef:h,contentRef:m,generateClassNames:(e="")=>`c-accordion ${c?Ga.CLASSES.IS_OPEN:""} ${t.disabled?Ga.CLASSES.IS_DISABLED:""} ${e}`.trim(),generateHeaderClassNames:()=>("c-accordion__header "+("left"===t.iconPosition?"c-accordion__header--icon-left":"")).trim()}}const{CONSTANTS:Br}=Dr,zr=(e,t)=>{if(!e||!t||"number"!=typeof e.x||"number"!=typeof e.y||"number"!=typeof t.x||"number"!=typeof t.y)return 0;const n=e.x-t.x,a=e.y-t.y;return Math.sqrt(n*n+a*a)},Ur=e=>e?{x:e.left+e.width/2,y:e.top+e.height/2}:{x:0,y:0},Fr=e=>{if(!e||"number"!=typeof e.x||"number"!=typeof e.y)return 0;const t=Math.sqrt(e.x*e.x+e.y*e.y)/Br.MOUSE_INFLUENCE_DIVISOR;return Math.min(.8,t)},Gr=e=>"number"!=typeof e||isNaN(e)?Br.MIN_BLUR:Math.max(Br.MIN_BLUR,Math.min(50,e)),Vr=e=>e&&"number"==typeof e.width&&"number"==typeof e.height&&e.width>0&&e.height>0&&e.width<=Br.MAX_SIZE&&e.height<=Br.MAX_SIZE,Hr=e=>{if("number"==typeof e)return Math.max(0,e);if("string"!=typeof e||!e.trim())return Br.DEFAULT_CORNER_RADIUS;const t=e.trim();if(t.endsWith("px")){const e=parseFloat(t);return isNaN(e)?Br.DEFAULT_CORNER_RADIUS:Math.max(0,e)}if(t.endsWith("rem")){const e=parseFloat(t);return isNaN(e)?Br.DEFAULT_CORNER_RADIUS:Math.max(0,16*e)}if(t.endsWith("em")){const e=parseFloat(t);return isNaN(e)?Br.DEFAULT_CORNER_RADIUS:Math.max(0,16*e)}if(t.endsWith("%")){const e=parseFloat(t);return isNaN(e)?Br.DEFAULT_CORNER_RADIUS:Math.max(0,e/100*200)}const n=parseFloat(t);return isNaN(n)?Br.DEFAULT_CORNER_RADIUS:Math.max(0,n)},$r=e=>{if(!e||!e.props)return null;if(e.props.style){const t=(e=>{if(!e)return null;const t=e.borderRadius||e.borderTopLeftRadius||e.borderTopRightRadius||e.borderBottomLeftRadius||e.borderBottomRightRadius;return void 0!==t?Hr(t):null})(e.props.style);if(null!==t&&t>0)return t}if(e.props.children){const t=Yr(e.props.children);if(t>0&&t!==Br.DEFAULT_CORNER_RADIUS)return t}return null},Yr=e=>{if(!e)return Br.DEFAULT_CORNER_RADIUS;try{const t=a.Children.toArray(e);for(let e=0;e<t.length;e++){const n=t[e];if(a.isValidElement(n)){const e=$r(n);if(null!==e)return e}}}catch(t){}return Br.DEFAULT_CORNER_RADIUS},Kr=(e,t,n)=>e+(t-e)*n,Wr=(e,t)=>t>0?t*(1-Math.exp(-e/t)):0,jr=(e,t,n,a,r)=>{switch(e){case"standard":default:return t;case"polar":return n;case"prominent":return a;case"shader":return r||t}},qr=new Map,Qr=({id:n,displacementScale:a,aberrationIntensity:r,mode:i,shaderMapUrl:o,blurAmount:s})=>e("svg",{style:{position:"absolute",width:"100%",height:"100%",inset:0},"aria-hidden":"true",children:t("defs",{children:[t("radialGradient",{id:n+"-edge-mask",cx:"50%",cy:"50%",r:"50%",children:[e("stop",{offset:"0%",stopColor:"black",stopOpacity:"0"}),e("stop",{offset:Math.max(30,80-2*r)+"%",stopColor:"black",stopOpacity:"0"}),e("stop",{offset:"100%",stopColor:"white",stopOpacity:"1"})]}),t("filter",{id:n,x:"-35%",y:"-35%",width:"170%",height:"170%",colorInterpolationFilters:"sRGB",children:[e("feImage",{id:n+"-image",x:"0",y:"0",width:"100%",height:"100%",result:"DISPLACEMENT_MAP",href:jr(i,"data:image/jpeg;base64,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cUAUAkEkziomgGgkoxZGgxZFQFQlYnQHRdPfj/10KCSCKESCNiVkViPSLpD0h6I0Q0I0A2IoBWBIJIBKBIJoJIJ2R2J0JWBUJ0JUB0XTv479dFZDYiglYigkhEgjZFQjRFQjRFQjQigFYigHYigmgEgmglYlYnQlQlYlQHQlQnQ9P/kf1yVkNiNCNkNiVENiNiViNEViNkVCVgKCViViViSCViSCVgdCViVCViVCdgVCVCdD1D+U/XBWQ2I0I2Q2JUQ2I0JWQ0I2JUQ2JUI2JUI2J0JWJWJWA2R0BWJ0I2JUJ2BUJUJ0P//EABkQAQEBAQEBAAAAAAAAAAAAAAECABEDEP/aAAgBAQABAgB1atWrVq1atWrVq1atWrVq1atWrVq1atWrVq+OrVq1atWrVq1atWrVq1atWrVq1atWrVq1atXxVppppppdWrVq1atWrVq1NNNNNNNNNNNPVWmmmmms6tWrVq1atWpppppppppppppp6q0000uc51atWrVq1ammmmmmmmmmmmmt1Vpppc5znVq1atWrVqaaaaaaaaaaaaaeqtNLnOc51atWrVq1ammmmmmmmmmmmmnqrS5znOc6tWrVq16222mmmmmmlVppp6tKuc5znOrVq1a9TbbbbTTTTTSq000qtLnOc5zq1atWrW0222200000qqqtKqrnOc5zq1atTbbbbbbbbTTTSqqqqqq5znOc6tTTTbbbbbbbbTTTSqqqqrlVznOctNNNtttttttttNNNNKqqqrqznKqrTTTTbbbbbbbbbTTTSqqqqrqznOc5aaaabbbbbbbbbaaaaVVVVVdWc5znVq1NNttttttttttNNKqqqqudWc5znVq16tbbbbbbbbbbTTSqqqq5XVnOc6tWrVrb1tttttttttNNKqqqqrWrK5VWmmm2230bbbbbbaaaXOc5zlVa1KuVVppptttt9G22222mmlzlVznK6tWVVWmmmm2222222222mlznOc5znLWppVVWmmm22222229bTWrOc5znOcq1qaaVpWmm222222229erVqznOc5znKtatStK0rTbTTbbbberXr1as5znOc5aVpppppWlabaabbbb1ta9WrVnOc5znU0rTTTTTTTTTbTTbbbTWvVq1as5znOdTTStNNNNNNNNNtNNtttN6tWvVq1ZznOrU00rTTTTTTTTTTTTTbTWvVq1atWrOc6tTTTStNNNNNNNNNNtNNtNa9WrVq1Z1Z1NNNNNK1q1NNNNNNNNNNNtNatWrVq1atWrU00000rWrVq1atWrVq1alaaa1atWrVq1NNNammmmla1atWrVq1aterVq16tWrVnVqa1NK1qaaaVX/xAAWEAADAAAAAAAAAAAAAAAAAAAhgJD/2gAIAQEAAz8AaExf/8QAGhEBAQEBAQEBAAAAAAAAAAAAAQISEQADEP/aAAgBAgEBAgDx48ePHjx48ePHjx48ePHjx48ePHjx48ePHj86IiIiIiInjx48ePHjx48IiIiIj0oooooooooRERER73ve60UUUUUUVrWiiiiiihERERER73ve97ooooorRWiiiiihKERERER73ve973RRRRWtFFFFFFCIiIiIiPe973ve60UUVrRRRRRRQiIlCIiI973ve973pRRWiiiiiiiiiiiiiiihEe973ve973RRWtFFFFFFFFFFFFFFFFFFa13ve973WitaKKKKKKKKKKKKKKKKKK1rWtd1rutFa1oooooooooooosssooorWta1rWta1rRRRRRRRRRRZZZZZZZZZWta1rWta1rRRRRRRRRZZZZZZZZZZZZe9a1rWta1rWitaKLLLLLLLLLLLLLLLLL3rWta1rWtFbLLLLLLLLLLLLLLLLLLLL3vWta1rWita1ssssssss+hZZZZZZZZe961rWta0Vre97LLLLLLLLLLLPoWWWWWXrWta1oorWta3ssss+hZZZZ9Cyyyyyyyyiita1orWta1ve9llllllllllllllllFFa0VorWta1ve9llllllllllllllllllFFFaK1rWta1rWiyyyyyyyyyyyyiiiiiiitFFa1rWta1oosoosssssoooosoooorRRRWta1rWta0UUUUUWUUUUUUUUUUUVoooorWta1rWtaKKKKKKmiiiiiiiiiiiiiiitd73ve61oSiiipoqaKKKKKKKKKK0UUUVrve973vREREZoSihEooooorRRRRWtd73ve9EREREREoSiiiiitFllllla73ve9ERERERESiiiiiitH0PoWWWWVrXe96IiIiMoiJRRRRRRWjwlFFllllFFd6IiIiIlCUUUUUUUUUePHjx48ePCIiIiIiIiUUUUUUUUUUUePHjx48ePHjx48ePHjx48IiUUUUUUJRRRX//xAAWEQADAAAAAAAAAAAAAAAAAAABYJD/2gAIAQIBAz8AtEV7/8QAFxEBAQEBAAAAAAAAAAAAAAAAAAECEP/aAAgBAwEBAgCtNNNNNNNNNNNNNNNNNNNNNNNNNNNNNcrTTTTTTTTTTTTTTTTTTTTTTTTTTTTTXKrTTTTTTTU000000000000000000001FVpppppqampqaaaaaaaaaaaaaaaaaaaa5Vaaaaampqampqammmmmmmmmmmlaaaaaaiq0001NTU1NTU1NTTTTTTTTTTSqqtNNNcqtNNSyzU1LNTU1NTTTTTTTTTSqqq001ytNLLLLNTU1NTU1NTbbbTTTTTSqqq001ytNLLLLLNTU1NTU3NttttNNNNNKqq001KrSyyyyyzU1NTU3Nzc02220000qqqqrSqqyyyyyzU1NTU3Nzc3NttttNNNKqqqqqqssssss1NTU3Nzc3NzbbbbTTTSqqqqqqrLLLLLNTU1Nzc3Nzc22220000qqqqqqqqssss1NTU3Nzc3NzbbbbbTTSqqqqqqqqqqzU1NTc3Nzc3Nzbc22000qqqqqqqqqqqtTU3Nzc3Nzc3NtzbTTSqqqqrKqqqqqtNNzc23Nzc3Nzc3NTU1KqqqrKqqqqqtNNNNttzc3Nzc3NzU1NLLLLLKqqqqqqqq0022223Nzc3NzU1NSyyyyyyqqqqqqqrTTbbbbc3Nzc3NTU1LLLLLLKsqqqqqqrTTTTbbbc3Nzc1NTUsssssssqqqqqqrTTTTTbbbTc3NTU1NTUsssssqqqqqqqq0000222023NTU1NTUsssssqqqqqqqq000000003NTU1NTU1LLLLLNKrTSqqqqtNNNNNNtNNTU1NSzUssss00qq0qqqqrTTTTTTTTTU1NTUs1LLLNNNKrTTTSqqq00000000001NTU1LNTU0000qtNNNKqqqtNNNNNNNNTU1NTUs1NNNNNKss1NNNK00qtK0000001NNTU0s000000qq000001NKrStNNNNK1NNNNStNNNNNKqtNNNNNNNK0000000rU0000rTTTTTSq00000rTTTTTTTTTTTTTTTTStNNNNKr/xAAUEQEAAAAAAAAAAAAAAAAAAACg/9oACAEDAQM/AAAf/9k=","data:image/jpeg;base64,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","data:image/png;base64,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",o),preserveAspectRatio:"xMidYMid slice"}),e("feColorMatrix",{in:"DISPLACEMENT_MAP",type:"matrix",values:"0.3 0.3 0.3 0 0\n 0.3 0.3 0.3 0 0\n 0.3 0.3 0.3 0 0\n 0 0 0 1 0",result:"EDGE_INTENSITY"}),e("feComponentTransfer",{in:"EDGE_INTENSITY",result:"EDGE_MASK",children:e("feFuncA",{type:"discrete",tableValues:`0 ${.05*r} 1`})}),e("feOffset",{in:"SourceGraphic",dx:"0",dy:"0",result:"CENTER_ORIGINAL"}),e("feDisplacementMap",{in:"SourceGraphic",in2:"DISPLACEMENT_MAP",scale:a*("shader"===i?1:-1),xChannelSelector:"R",yChannelSelector:"B",result:"RED_DISPLACED"}),e("feColorMatrix",{in:"RED_DISPLACED",type:"matrix",values:"1 0 0 0 0\n 0 0 0 0 0\n 0 0 0 0 0\n 0 0 0 1 0",result:"RED_CHANNEL"}),e("feDisplacementMap",{in:"SourceGraphic",in2:"DISPLACEMENT_MAP",scale:a*(("shader"===i?1:-1)-.02*r),xChannelSelector:"R",yChannelSelector:"B",result:"GREEN_DISPLACED"}),e("feColorMatrix",{in:"GREEN_DISPLACED",type:"matrix",values:"0 0 0 0 0\n 0 1 0 0 0\n 0 0 0 0 0\n 0 0 0 1 0",result:"GREEN_CHANNEL"}),e("feDisplacementMap",{in:"SourceGraphic",in2:"DISPLACEMENT_MAP",scale:a*(("shader"===i?1:-1)-.03*r),xChannelSelector:"R",yChannelSelector:"B",result:"BLUE_DISPLACED"}),e("feColorMatrix",{in:"BLUE_DISPLACED",type:"matrix",values:"0 0 0 0 0\n 0 0 0 0 0\n 0 0 1 0 0\n 0 0 0 1 0",result:"BLUE_CHANNEL"}),e("feBlend",{in:"GREEN_CHANNEL",in2:"BLUE_CHANNEL",mode:"screen",result:"GB_COMBINED"}),e("feBlend",{in:"RED_CHANNEL",in2:"GB_COMBINED",mode:"screen",result:"RGB_COMBINED"}),e("feGaussianBlur",{in:"RGB_COMBINED",result:"ABERRATED_BLURRED",stdDeviation:s*r*.05}),e("feComposite",{in:"ABERRATED_BLURRED",in2:"EDGE_MASK",operator:"in",result:"EDGE_ABERRATION"}),e("feComponentTransfer",{in:"EDGE_MASK",result:"INVERTED_MASK",children:e("feFuncA",{type:"table",tableValues:"1 0"})}),e("feComposite",{in:"CENTER_ORIGINAL",in2:"INVERTED_MASK",operator:"in",result:"CENTER_CLEAN"}),e("feComposite",{in:"EDGE_ABERRATION",in2:"CENTER_CLEAN",operator:"over"})]})]})});Qr.displayName="GlassFilter";const Xr=l(Qr,((e,t)=>e.id===t.id&&e.displacementScale===t.displacementScale&&e.aberrationIntensity===t.aberrationIntensity&&e.mode===t.mode&&e.shaderMapUrl===t.shaderMapUrl&&e.blurAmount===t.blurAmount)),Zr=c((({children:n,className:a="",style:o,displacementScale:l=25,blurAmount:c=.0625,saturation:h=180,aberrationIntensity:m=2,mouseOffset:p={x:0,y:0},onMouseEnter:g,onMouseLeave:f,onMouseDown:b,onMouseUp:v,isActive:S=!1,overLight:y=!1,overLightConfig:E={},borderRadius:A=0,padding:x="0 0",glassSize:N={width:0,height:0},onClick:T,mode:_="standard",effectiveWithoutEffects:C=!1,effectiveReducedMotion:L=!1,shaderVariant:I="liquidGlass",withLiquidBlur:w=!1,isFixedOrSticky:O=!1,shaderTime:R,withTimeAnimation:k=!1,animationSpeed:M=1,withMultiLayerDistortion:D=!1,distortionOctaves:P=3,distortionLacunarity:B=2,distortionGain:z=.5,distortionQuality:U="medium",contentRef:F},G)=>{const V=d(),H=u((()=>"atomix-glass-filter-"+V.replace(/:/g,"")),[V]),[$,Y]=r(""),K=i(null),W=i(null),j=i(null),q=i(null),Q=i(null);s((()=>{"shader"===_?Promise.resolve().then((function(){return eo})).then((e=>{W.current={ShaderDisplacementGenerator:e.ShaderDisplacementGenerator,fragmentShaders:e.fragmentShaders}})).catch((e=>{})):W.current=null}),[_]),s((()=>{if("shader"===_&&N&&Vr(N)){const e=`${N.width}x${N.height}-${I}`,t=(e=>{const t=qr.get(e);return t?(t.timestamp=Date.now(),t.url):null})(e);if(t)return void Y(t);j.current&&clearTimeout(j.current);const n=()=>{if(W.current)try{const{ShaderDisplacementGenerator:t,fragmentShaders:n}=W.current;K.current?.destroy();const a=n[I]??n.liquidGlass;K.current=new t({width:N.width,height:N.height,fragment:a}),q.current=setTimeout((()=>{const t=K.current?.updateShader()??"";t&&((e,t)=>{if(qr.size>=15){const e=Array.from(qr.entries());e.sort(((e,t)=>e[1].timestamp-t[1].timestamp));const t=e[0];t&&qr.delete(t[0])}qr.set(e,{url:t,timestamp:Date.now()}),"undefined"!=typeof process&&"production"===process.env?.NODE_ENV||qr.size})(e,t),Y(t)}),100)}catch(t){Y("")}else j.current=setTimeout(n,100)};j.current=setTimeout(n,500)}else Y("");return()=>{j.current&&(clearTimeout(j.current),j.current=null),q.current&&(clearTimeout(q.current),q.current=null);try{K.current?.destroy()}catch(e){}finally{K.current=null}}}),[_,N,I]),s((()=>{if("shader"!==_||!k||L||C)return void(null!==Q.current&&(cancelAnimationFrame(Q.current),Q.current=null));const e=1e3/Math.max(12,Math.min(60,Math.round(("ultra"===U?60:"high"===U?30:"medium"===U?24:20)*Math.max(.5,Math.min(2,M||1))/(D?Math.max(1,(P||3)/3+.25*Math.max(0,(B||2)-2)+Math.max(0,(z||.5)-.5)):1))));let t=0,n=!1;const a=r=>{if(!n){if(r-t>=e&&K.current){t=r;try{const e=K.current.updateShader();e&&Y(e)}catch(i){}}Q.current=requestAnimationFrame(a)}};return Q.current=requestAnimationFrame(a),()=>{n=!0,null!==Q.current&&(cancelAnimationFrame(Q.current),Q.current=null)}}),[_,k,M,l,D,P,B,z,U,L,C,N]);const[X,Z]=r(null);s((()=>{if(!G||"function"==typeof G)return;const e=G.current;if(e)try{Z(e.getBoundingClientRect())}catch(t){Z(null)}}),[G,N]);const J=u((()=>{const e={baseBlur:c,edgeBlur:1.25*c,centerBlur:1.1*c,flowBlur:1.2*c};if(!w||!X||!p||"number"!=typeof p.x||"number"!=typeof p.y||isNaN(p.x)||isNaN(p.y))return e;try{const e=Fr(p),t=2*c,n=Math.min(t,c+e*c*.15),a=Math.min(t,n*(.8+.15*e*.4)),r=Math.min(t,n*(.3+.1*e*.3)),i=Math.min(t,1.2*n);return{baseBlur:Gr(n),edgeBlur:Gr(a),centerBlur:Gr(r),flowBlur:Gr(i)}}catch(t){return e}}),[w,c,p,X]),ee=u((()=>{try{const e=h+20*(J.baseBlur||0),t="number"!=typeof J.baseBlur||isNaN(J.baseBlur)?0:J.baseBlur,n="number"!=typeof J.edgeBlur||isNaN(J.edgeBlur)?0:J.edgeBlur,a="number"!=typeof J.centerBlur||isNaN(J.centerBlur)?0:J.centerBlur,r="number"!=typeof J.flowBlur||isNaN(J.flowBlur)?0:J.flowBlur,i=X?X.width*X.height:0;return!w||L||C||i>18e4?{backdropFilter:`blur(${Gr(Math.max(t,.8*n,1.1*a,.9*r))}px) saturate(${Math.min(e,200)}%) contrast(${E?.contrast||1.05}) brightness(${E?.brightness||1.05})`}:{backdropFilter:`blur(${Gr(.4*t+.25*n+.15*a+.2*r)}px) saturate(${Math.min(e,200)}%) contrast(${E?.contrast||1}) brightness(${E?.brightness||1})`}}catch(e){return{backdropFilter:`blur(${c}px) saturate(${h}%) contrast(1.05) brightness(1.05)`}}}),[J,h,c,X,L,C,w,E]),te=u((()=>{try{const e=p&&"number"==typeof p.x&&!isNaN(p.x)?p.x:0,t=p&&"number"==typeof p.y&&!isNaN(p.y)?p.y:0;return{"--atomix-glass-container-radius":("number"!=typeof A||isNaN(A)?0:A)+"px","--atomix-glass-container-backdrop":ee?.backdropFilter||"none","--atomix-glass-container-shadow":y?[`inset 0 1px 0 rgba(255, 255, 255, ${(.4+.002*e)*(E?.shadowIntensity||1)})`,`inset 0 -1px 0 rgba(0, 0, 0, ${(.2+.001*Math.abs(t))*(E?.shadowIntensity||1)})`,`inset 0 0 20px rgba(0, 0, 0, ${(.08+.001*Math.abs(e+t))*(E?.shadowIntensity||1)})`,`0 2px 12px rgba(0, 0, 0, ${(.12+.002*Math.abs(t))*(E?.shadowIntensity||1)})`].join(", "):"0 0 20px rgba(0, 0, 0, 0.15) inset, 0 4px 8px rgba(0, 0, 0, 0.08) inset","--atomix-glass-container-shadow-opacity":C?0:1,"--atomix-glass-container-bg":y?`linear-gradient(${180+.5*e}deg, rgba(255, 255, 255, 0.1) 0%, transparent 20%, transparent 80%, rgba(0, 0, 0, 0.05) 100%)`:"none","--atomix-glass-container-text-shadow":y?"0px 1px 2px rgba(255, 255, 255, 0.15)":"0px 2px 12px rgba(0, 0, 0, 0.4)","--atomix-glass-container-box-shadow":y?"0px 16px 70px rgba(0, 0, 0, 0.75)":"0px 12px 40px rgba(0, 0, 0, 0.25)"}}catch(e){return{"--atomix-glass-container-padding":"0 0","--atomix-glass-container-radius":"0px","--atomix-glass-container-backdrop":"none","--atomix-glass-container-shadow":"none","--atomix-glass-container-shadow-opacity":1,"--atomix-glass-container-bg":"none","--atomix-glass-container-text-shadow":"none"}}}),[A,ee,p,y,C,E]);return e("div",{ref:e=>{"function"==typeof G?G(e):G&&(G.current=e)},className:`${Dr.CONTAINER_CLASS} ${a} ${S?Dr.CLASSES.ACTIVE:""} ${y?Dr.CLASSES.OVER_LIGHT:""}`,style:{...o,...te},onClick:T,children:t("div",{className:Dr.INNER_CLASS,onMouseEnter:g,onMouseLeave:f,onMouseDown:b,onMouseUp:v,children:[t("div",{className:Dr.FILTER_CLASS,children:[e(Xr,{blurAmount:c,mode:_,id:H,displacementScale:"number"!=typeof l||isNaN(l)?0:l,aberrationIntensity:"number"!=typeof m||isNaN(m)?0:m,shaderMapUrl:$}),e("div",{className:Dr.FILTER_OVERLAY_CLASS,style:{filter:`url(#${H})`}}),e("div",{className:Dr.FILTER_SHADOW_CLASS})]}),e("div",{ref:F,className:Dr.CONTENT_CLASS,children:n})]})})}));Zr.displayName="AtomixGlassContainer";const Jr=new class{constructor(){this.listeners=new Set,this.position={x:0,y:0},this.rafId=null,this.lastEvent=null,this.isTracking=!1,this.handleMouseMove=e=>{this.lastEvent=e,null===this.rafId&&(this.rafId=requestAnimationFrame((()=>{this.lastEvent&&(this.position={x:this.lastEvent.clientX,y:this.lastEvent.clientY},this.listeners.forEach((e=>{try{e(this.position)}catch(t){}}))),this.rafId=null})))}}subscribe(e){return this.listeners.add(e),1===this.listeners.size&&this.startTracking(),e(this.position),()=>{this.unsubscribe(e)}}unsubscribe(e){this.listeners.delete(e),0===this.listeners.size&&this.stopTracking()}startTracking(){this.isTracking||(this.isTracking=!0,document.addEventListener("mousemove",this.handleMouseMove,{passive:!0}))}stopTracking(){this.isTracking&&(this.isTracking=!1,document.removeEventListener("mousemove",this.handleMouseMove),null!==this.rafId&&(cancelAnimationFrame(this.rafId),this.rafId=null),this.lastEvent=null)}getPosition(){return{...this.position}}getSubscriberCount(){return this.listeners.size}},ei=(e,t,n)=>{if(!e&&!t)return;const{mouseOffset:a,globalMousePosition:r,glassSize:i,isHovered:o,isActive:s,isOverLight:l,baseOverLightConfig:c,effectiveBorderRadius:d,effectiveWithoutEffects:u,effectiveReducedMotion:h,elasticity:m,directionalScale:p,onClick:g,withLiquidBlur:f,blurAmount:b=Dr.DEFAULTS.BLUR_AMOUNT,saturation:v=Dr.DEFAULTS.SATURATION,padding:S=Dr.DEFAULTS.PADDING,isFixedOrSticky:y=!1}=n,E=Fr(a),A=o?1.4:1,x=s?1.6:1,N={opacity:c.opacity*A*x,contrast:Math.min(1.6,c.contrast+.1*E),brightness:Math.min(1.1,c.brightness+.05*E),shadowIntensity:Math.min(1.2,Math.max(.5,c.shadowIntensity+.2*E)),borderOpacity:Math.min(1,Math.max(.3,c.borderOpacity+.1*E)),saturationBoost:c.saturationBoost};let T=p,_={x:0,y:0};if(!u&&e){const t=e.getBoundingClientRect(),n=Ur(t);if(r.x&&r.y&&Vr(i)){const e=r.x-n.x,t=r.y-n.y,a=Math.max(0,Math.abs(e)-i.width/2),o=Math.max(0,Math.abs(t)-i.height/2),s=zr({x:a,y:o},{x:0,y:0}),c=s>Dr.CONSTANTS.ACTIVATION_ZONE?0:1-s/Dr.CONSTANTS.ACTIVATION_ZONE,d=(e=>{const t=Math.max(0,Math.min(1,e));return t*t*(3-2*t)})(c);if(_={x:e*m*.1*d,y:t*m*.1*d},!l&&s<=Dr.CONSTANTS.ACTIVATION_ZONE){const a=zr(r,n);if(a>0){const n=e/a,r=t/a,i=Math.min(a/300,1)*m*c,o=1+Math.abs(n)*i*.3-Math.abs(r)*i*.15,s=1+Math.abs(r)*i*.3-Math.abs(n)*i*.15,l=1-Wr(Math.max(0,1-o),.2),d=1-Wr(Math.max(0,1-s),.2);T=`scaleX(${Math.max(.85,l)}) scaleY(${Math.max(.85,d)})`}}}}const C=u?s&&g?"scale(0.98)":"scale(1)":`translate(${_.x}px, ${_.y}px) ${s&&g?"scale(0.96)":T}`;if(e){const t=a.x,n=a.y,r=Math.abs(t),i=Math.abs(n),c=Dr.CONSTANTS.GRADIENT,u=c.BASE_ANGLE+t*c.ANGLE_MULTIPLIER,h=Math.max(c.BORDER_STOP_1.MIN,c.BORDER_STOP_1.BASE+n*c.BORDER_STOP_1.MULTIPLIER),m=Math.min(c.BORDER_STOP_2.MAX,c.BORDER_STOP_2.BASE+n*c.BORDER_STOP_2.MULTIPLIER),p=[c.BORDER_OPACITY.BASE_1+r*c.BORDER_OPACITY.MULTIPLIER_LOW,c.BORDER_OPACITY.BASE_2+r*c.BORDER_OPACITY.MULTIPLIER_HIGH,c.BORDER_OPACITY.BASE_3+r*c.BORDER_OPACITY.MULTIPLIER_LOW,c.BORDER_OPACITY.BASE_4+r*c.BORDER_OPACITY.MULTIPLIER_HIGH],g=N.borderOpacity,f=Dr.CONSTANTS.PALETTE.WHITE,b=Dr.CONSTANTS.PALETTE.BLACK,v={hover1:{x:c.CENTER_POSITION+t/c.HOVER_POSITION.DIVISOR_1,y:c.CENTER_POSITION+n/c.HOVER_POSITION.DIVISOR_1},hover2:{x:c.CENTER_POSITION+t/c.HOVER_POSITION.DIVISOR_2,y:c.CENTER_POSITION+n/c.HOVER_POSITION.DIVISOR_2},hover3:{x:c.CENTER_POSITION+t*c.HOVER_POSITION.MULTIPLIER_3,y:c.CENTER_POSITION+n*c.HOVER_POSITION.MULTIPLIER_3}},S={x:c.CENTER_POSITION+t*c.BASE_LAYER_MULTIPLIER,y:c.CENTER_POSITION+n*c.BASE_LAYER_MULTIPLIER},y={hover1:o||s?.5:0,hover2:s?.5:0,hover3:o?.4:s?.8:0,base:l?N.opacity:0,over:l?1.1*N.opacity:0},E=e.style;E.setProperty("--atomix-glass-transform",C||"none"),E.setProperty("--atomix-glass-border-gradient-1",`linear-gradient(${u}deg, rgba(${f}, 0) 0%, rgba(${f}, ${(p[0]??1)*g}) ${h}%, rgba(${f}, ${(p[1]??1)*g}) ${m}%, rgba(${f}, 0) 100%)`),E.setProperty("--atomix-glass-border-gradient-2",`linear-gradient(${u}deg, rgba(${f}, 0) 0%, rgba(${f}, ${(p[2]??1)*g}) ${h}%, rgba(${f}, ${(p[3]??1)*g}) ${m}%, rgba(${f}, 0) 100%)`),E.setProperty("--atomix-glass-hover-1-gradient",l?`radial-gradient(circle at ${v.hover1.x}% ${v.hover1.y}%, rgba(${b}, ${Dr.CONSTANTS.GRADIENT_OPACITY.HOVER_1.BLACK_START}) 0%, rgba(${b}, ${Dr.CONSTANTS.GRADIENT_OPACITY.HOVER_1.BLACK_MID}) ${Dr.CONSTANTS.GRADIENT_OPACITY.HOVER_1.BLACK_STOP}%, rgba(${b}, 0) ${Dr.CONSTANTS.GRADIENT_OPACITY.HOVER_1.BLACK_END}%)`:`radial-gradient(circle at ${v.hover1.x}% ${v.hover1.y}%, rgba(${f}, ${Dr.CONSTANTS.GRADIENT_OPACITY.HOVER_1.WHITE_START}) 0%, rgba(${f}, 0) ${Dr.CONSTANTS.GRADIENT_OPACITY.HOVER_1.WHITE_STOP}%)`),E.setProperty("--atomix-glass-hover-2-gradient",l?`radial-gradient(circle at ${v.hover2.x}% ${v.hover2.y}%, rgba(${b}, ${Dr.CONSTANTS.GRADIENT_OPACITY.HOVER_2.BLACK_START}) 0%, rgba(${b}, ${Dr.CONSTANTS.GRADIENT_OPACITY.HOVER_2.BLACK_MID}) ${Dr.CONSTANTS.GRADIENT_OPACITY.HOVER_2.BLACK_STOP}%, rgba(${b}, 0) ${Dr.CONSTANTS.GRADIENT_OPACITY.HOVER_2.BLACK_END}%)`:`radial-gradient(circle at ${v.hover2.x}% ${v.hover2.y}%, rgba(${f}, ${Dr.CONSTANTS.GRADIENT_OPACITY.HOVER_2.WHITE_START}) 0%, rgba(${f}, 0) ${Dr.CONSTANTS.GRADIENT_OPACITY.HOVER_2.WHITE_STOP}%)`),E.setProperty("--atomix-glass-hover-3-gradient",l?`radial-gradient(circle at ${v.hover3.x}% ${v.hover3.y}%, rgba(${b}, ${Dr.CONSTANTS.GRADIENT_OPACITY.HOVER_3.BLACK_START}) 0%, rgba(${b}, ${Dr.CONSTANTS.GRADIENT_OPACITY.HOVER_3.BLACK_MID}) ${Dr.CONSTANTS.GRADIENT_OPACITY.HOVER_3.BLACK_STOP}%, rgba(${b}, 0) ${Dr.CONSTANTS.GRADIENT_OPACITY.HOVER_3.BLACK_END}%)`:`radial-gradient(circle at ${v.hover3.x}% ${v.hover3.y}%, rgba(${f}, ${Dr.CONSTANTS.GRADIENT_OPACITY.HOVER_3.WHITE_START}) 0%, rgba(${f}, 0) ${Dr.CONSTANTS.GRADIENT_OPACITY.HOVER_3.WHITE_STOP}%)`),E.setProperty("--atomix-glass-base-gradient",l?`linear-gradient(${Dr.CONSTANTS.BASE_GRADIENT.ANGLE}deg, rgba(${b}, ${Dr.CONSTANTS.BASE_GRADIENT.BLACK_START_BASE+t*Dr.CONSTANTS.BASE_GRADIENT.BLACK_START_MULTIPLIER}) 0%, rgba(${b}, ${Dr.CONSTANTS.BASE_GRADIENT.BLACK_MID_BASE+n*Dr.CONSTANTS.BASE_GRADIENT.BLACK_MID_MULTIPLIER}) ${Dr.CONSTANTS.BASE_GRADIENT.BLACK_MID_STOP}%, rgba(${b}, ${Dr.CONSTANTS.BASE_GRADIENT.BLACK_END_BASE+r*Dr.CONSTANTS.BASE_GRADIENT.BLACK_END_MULTIPLIER}) 100%)`:`rgba(${f}, ${Dr.CONSTANTS.BASE_GRADIENT.WHITE_OPACITY})`),E.setProperty("--atomix-glass-overlay-gradient",l?`radial-gradient(circle at ${S.x}% ${S.y}%, rgba(${b}, ${Dr.CONSTANTS.OVERLAY_GRADIENT.BLACK_START_BASE+r*Dr.CONSTANTS.OVERLAY_GRADIENT.BLACK_START_MULTIPLIER}) 0%, rgba(${b}, ${Dr.CONSTANTS.OVERLAY_GRADIENT.BLACK_MID}) ${Dr.CONSTANTS.OVERLAY_GRADIENT.BLACK_MID_STOP}%, rgba(${b}, ${Dr.CONSTANTS.OVERLAY_GRADIENT.BLACK_END_BASE+i*Dr.CONSTANTS.OVERLAY_GRADIENT.BLACK_END_MULTIPLIER}) 100%)`:`rgba(${f}, ${Dr.CONSTANTS.OVERLAY_GRADIENT.WHITE_OPACITY})`),E.setProperty("--atomix-glass-hover-1-opacity",y.hover1.toString()),E.setProperty("--atomix-glass-hover-2-opacity",y.hover2.toString()),E.setProperty("--atomix-glass-hover-3-opacity",y.hover3.toString()),E.setProperty("--atomix-glass-base-opacity",y.base.toString()),E.setProperty("--atomix-glass-overlay-opacity",y.over.toString()),E.setProperty("--atomix-glass-overlay-highlight-opacity",""+y.over*Dr.CONSTANTS.OVERLAY_HIGHLIGHT.OPACITY_MULTIPLIER),E.setProperty("--atomix-glass-blend-mode",l?"multiply":"overlay"),E.setProperty("--atomix-glass-radius",d+"px")}if(t){const e=a.x,n=a.y,r=.5,i=.2,o=.3,s=.4,c=.15,m=.1,p=2,g=t.getBoundingClientRect();let y={baseBlur:b,edgeBlur:b*r,centerBlur:b*i,flowBlur:b*o};if(f&&g){const e=Fr(a),t=b*p,n=Math.min(t,b+e*b*s),r=Math.min(t,n*(.8+e*c*.4)),i=Math.min(t,n*(.3+e*m*.3)),l=Math.min(t,n*o);y={baseBlur:Gr(n),edgeBlur:Gr(r),centerBlur:Gr(i),flowBlur:Gr(l)}}let E=`blur(${b}px) saturate(${v}%) contrast(1.05) brightness(1.05)`;const A=v+20*(y.baseBlur||0),x=g?g.width*g.height:0;E=!f||h||u||x>18e4?`blur(${Gr(Math.max(y.baseBlur,.8*y.edgeBlur,1.1*y.centerBlur,.9*y.flowBlur))}px) saturate(${Math.min(A,200)}%) contrast(${N.contrast}) brightness(${N.brightness})`:`blur(${Gr(.4*y.baseBlur+.25*y.edgeBlur+.15*y.centerBlur+.2*y.flowBlur)}px) saturate(${Math.min(A,200)}%) contrast(${N.contrast}) brightness(${N.brightness})`;const T=t.style;T.setProperty("--atomix-glass-container-padding",S),T.setProperty("--atomix-glass-container-radius",d+"px"),T.setProperty("--atomix-glass-container-backdrop",E),T.setProperty("--atomix-glass-container-shadow",l?[`inset 0 1px 0 rgba(255, 255, 255, ${(.4+.002*e)*(N.shadowIntensity||1)})`,`inset 0 -1px 0 rgba(0, 0, 0, ${(.2+.001*Math.abs(n))*(N.shadowIntensity||1)})`,`inset 0 0 20px rgba(0, 0, 0, ${(.08+.001*Math.abs(e+n))*(N.shadowIntensity||1)})`,`0 2px 12px rgba(0, 0, 0, ${(.12+.002*Math.abs(n))*(N.shadowIntensity||1)})`].join(", "):"0 0 20px rgba(0, 0, 0, 0.15) inset, 0 4px 8px rgba(0, 0, 0, 0.08) inset"),T.setProperty("--atomix-glass-container-shadow-opacity",u?"0":"1"),T.setProperty("--atomix-glass-container-bg",l?`linear-gradient(${180+.5*e}deg, rgba(255, 255, 255, 0.1) 0%, transparent 20%, transparent 80%, rgba(0, 0, 0, 0.05) 100%)`:"none"),T.setProperty("--atomix-glass-container-text-shadow",l?"0px 1px 2px rgba(255, 255, 255, 0.15)":"0px 2px 12px rgba(0, 0, 0, 0.4)"),T.setProperty("--atomix-glass-container-box-shadow",l?"0px 16px 70px rgba(0, 0, 0, 0.75)":"0px 12px 40px rgba(0, 0, 0, 0.25)")}};function ti(e,t){const n=255&Math.floor(e),a=255&Math.floor(t),r=e-Math.floor(e),i=t-Math.floor(t),o=ii(r),s=ii(i),l=li[n]+a&255,c=li[n+1]+a&255,d=si(li[l],r,i),u=si(li[c],r-1,i),h=si(li[l+1&255],r,i-1),m=si(li[c+1&255],r-1,i-1),p=oi(d,u,o),g=oi(h,m,o);return(oi(p,g,s)+1)/2}function ni(e){const t=(t,n,a=0)=>{let r=0,i=.5,o=1,s=.001*a;for(let l=0;l<e.octaves;l++)r+=ti(t*o+s,n*o+s)*i,o*=e.lacunarity,i*=e.gain;return r};return{fbm:t,fbmWithTime:(e,n,a)=>t(e,n,a)}}const ai=new Map;function ri(e,t,n){const a=`${n.octaves}-${n.lacunarity}-${n.gain}`;let r=ai.get(a);r||(r=ni(n),ai.set(a,r));const i=r.fbmWithTime(2*e.x+1e-4*t,2*e.y+15e-5*t,t);return{x:e.x+.04*(i-.5),y:e.y+.04*(i-.5)}}function ii(e){return e*e*e*(e*(6*e-15)+10)}function oi(e,t,n){return e+n*(t-e)}function si(e,t,n){const a=15&e,r=8>a?t:n,i=4>a?n:12===a||14===a?t:0;return(1&a?-r:r)+(2&a?-i:i)}const li=(()=>{const e=[];for(let t=0;256>t;t++)e[t]=Math.floor(256*Math.random());return[...e,...e]})(),{CONSTANTS:ci}=Dr,{CONSTANTS:di}=Dr,ui=new WeakMap,hi=(e,t,n,a)=>{e&&ui.set(e,{result:n,timestamp:Date.now(),config:t,threshold:a})};function mi({glassRef:e,contentRef:t,wrapperRef:n,borderRadius:a,globalMousePosition:l,mouseOffset:c,mouseContainer:d,overLight:h=Dr.DEFAULTS.OVER_LIGHT,reducedMotion:m=!1,highContrast:p=!1,withoutEffects:g=!1,elasticity:f=.05,onClick:b,debugBorderRadius:v=!1,debugOverLight:S=!1,children:y,blurAmount:E,saturation:A,padding:x,withLiquidBlur:N,isFixedOrSticky:T=!1,withTimeAnimation:_=Dr.DEFAULTS.WITH_TIME_ANIMATION,animationSpeed:C=Dr.DEFAULTS.ANIMATION_SPEED,withMultiLayerDistortion:L=Dr.DEFAULTS.WITH_MULTI_LAYER_DISTORTION,distortionOctaves:I=Dr.DEFAULTS.DISTORTION_OCTAVES,distortionLacunarity:w=Dr.DEFAULTS.DISTORTION_LACUNARITY,distortionGain:O=Dr.DEFAULTS.DISTORTION_GAIN,distortionQuality:R=Dr.DEFAULTS.DISTORTION_QUALITY}){const[k,M]=r(!1),[D,P]=r(!1),B=i(null),z=i({x:0,y:0}),U=i({x:0,y:0}),F=i({x:0,y:0}),G=i({x:0,y:0}),V=i(null),H=i(!1),[$,Y]=r(di.DEFAULT_CORNER_RADIUS),[K,W]=r(!1),[j,q]=r(!1),[Q,X]=r(!1),Z=i(null),J=i(0),ee=i(0),te=i(0),ne=u((()=>{const e=(t=R,Dr.CONSTANTS.DISTORTION_QUALITY_PRESETS[t]);var t;return{octaves:I??e.octaves,lacunarity:w??e.lacunarity,gain:O??e.gain}}),[R,I,w,O]),ae=u((()=>L?ni(ne):null),[L,ne]),re=u((()=>m||K),[m,K]),ie=u((()=>_&&!re),[_,re]);s((()=>{if(!ie||"undefined"==typeof window)return;let e=performance.now();const t=n=>{const a=n-e;e=n;const r=a*C;ee.current+=r,te.current=ee.current,Z.current=requestAnimationFrame(t)};return J.current=performance.now(),Z.current=requestAnimationFrame(t),()=>{null!==Z.current&&(cancelAnimationFrame(Z.current),Z.current=null)}}),[ie,C]);const oe=o((()=>te.current),[]),se=o((e=>ie&&ae?ri(e,te.current,ne):e),[ie,ae,ne]),le=u((()=>Math.max(0,void 0!==a?a:$)),[a,$]),{glassSize:ce}=function({glassRef:e,effectiveBorderRadius:t,cachedRectRef:n}){const[a,i]=r({width:270,height:69});return s((()=>{const a=e=>null!==e&&e instanceof HTMLElement&&e.isConnected;let r=null,o={width:0,height:0},s=t;const l=(n=!1)=>{null!==r&&cancelAnimationFrame(r),r=requestAnimationFrame((()=>{if(!a(e.current))return void(r=null);const l=e.current.getBoundingClientRect();if(0>=l.width||0>=l.height)return void(r=null);const c={width:Math.round(l.width),height:Math.round(l.height)},d=s!==t,u=Math.abs(c.width-o.width)>1||Math.abs(c.height-o.height)>1;var h;(n||d||u)&&Vr(h=c)&&h.width<=ci.MAX_SIZE&&h.height<=ci.MAX_SIZE&&(o=c,s=t,i(c)),r=null}))};let c=null;const d=()=>{c&&clearTimeout(c),c=setTimeout((()=>l(!1)),16)},u=setTimeout((()=>l(!0)),0);let h=null,m=null;if("undefined"!=typeof ResizeObserver&&a(e.current))try{h=new ResizeObserver((t=>{for(const a of t)if(a.target===e.current){e.current&&n&&(n.current=e.current.getBoundingClientRect()),m&&clearTimeout(m),m=setTimeout((()=>l(!1)),16);break}})),h.observe(e.current)}catch(p){}return window.addEventListener("resize",d,{passive:!0}),()=>{clearTimeout(u),null!==r&&cancelAnimationFrame(r),c&&clearTimeout(c),m&&clearTimeout(m),window.removeEventListener("resize",d),h?.disconnect()}}),[t,e,n]),{glassSize:a}}({glassRef:e,effectiveBorderRadius:le,cachedRectRef:B}),de=u((()=>p||j),[p,j]),ue=u((()=>g||re),[g,re]),he=l||z.current,me=c||U.current;s((()=>{const e=()=>{try{let e=null;if(t.current){const n=t.current.firstElementChild;if(n){const t=(e=>{if(!e||"undefined"==typeof window)return null;try{const t=window.getComputedStyle(e),n=t.borderRadius||t.borderTopLeftRadius||t.borderTopRightRadius||t.borderBottomLeftRadius||t.borderBottomRightRadius;if(n&&"0px"!==n&&"auto"!==n){const e=Hr(n);return e>0?e:null}return null}catch(t){return null}})(n);null!==t&&t>0&&(e=t)}}if(null===e){const t=Yr(y);t>0&&t!==di.DEFAULT_CORNER_RADIUS&&(e=t)}null!==e&&e>0&&Y(e)}catch(e){"undefined"==typeof process||process.env}};e();const n=setTimeout(e,100);return()=>clearTimeout(n)}),[y,v,t]),s((()=>{if("undefined"==typeof window||"function"!=typeof window.matchMedia)return;const e=window.matchMedia("(prefers-reduced-motion: reduce)"),t=window.matchMedia("(prefers-contrast: high)");W(e.matches),q(t.matches);const n=e=>{W(e.matches)},a=e=>{q(e.matches)};return e.addEventListener("change",n),t.addEventListener("change",a),()=>{e.removeEventListener("change",n),t.removeEventListener("change",a)}}),[]),s((()=>{if(("auto"===h||"object"==typeof h&&null!==h)&&e.current){const t=e.current,n=((e,t)=>{if(!e)return null;const n=ui.get(e);return n&&((e,t)=>{if("object"!=typeof e||null===e)return e===t;if("object"!=typeof t||null===t)return!1;const n=e,a=t,r=["threshold","opacity","contrast","brightness","saturationBoost"];for(const i of r){const e=n[i],t=a[i];if(void 0!==e||void 0!==t){if(void 0===e||void 0===t)return!1;if("number"==typeof e&&"number"==typeof t){if(Number.isNaN(e)&&Number.isNaN(t))continue;if(Number.isNaN(e)||Number.isNaN(t))return!1;if(Math.abs(e-t)>Number.EPSILON)return!1}else if(e!==t)return!1}}return!0})(n.config,t)?(n.timestamp=Date.now(),n.result):null})(t.parentElement,h);if(null!==n)return void X(n);const a=setTimeout((()=>{try{if(!t)return void X(!1);if("undefined"==typeof window||"function"!=typeof window.getComputedStyle)return void X(!1);let n=0,a=0,r=!1,i=t.parentElement,o=0;const s=20,l=10;for(;i&&l>a&&s>o;){try{const e=window.getComputedStyle(i);if(!e){i=i.parentElement,o++;continue}const t=e.backgroundColor,s=e.backgroundImage;if(t&&"rgba(0, 0, 0, 0)"!==t&&"transparent"!==t&&"initial"!==t&&"none"!==t){const e=t.match(/\d+/g);if(e&&e.length>=3){const t=Number(e[0]),i=Number(e[1]),o=Number(e[2]);if(!isNaN(t)&&!isNaN(i)&&!isNaN(o)&&(t>10||i>10||o>10)){const e=(.299*t+.587*i+.114*o)/255;!isNaN(e)&&isFinite(e)&&(n+=e,a++,r=!0)}}}s&&"none"!==s&&"initial"!==s&&(n+=.5,a++,r=!0)}catch(e){}if(!i)break;i=i.parentElement,o++}if(r&&a>0){const e=n/a;if(!isNaN(e)&&isFinite(e)){let n=.7;if("object"==typeof h&&null!==h){const e=h;if(void 0!==e.threshold){const t="number"!=typeof e.threshold||isNaN(e.threshold)?.7:e.threshold;n=Math.min(.9,Math.max(.1,t))}}const a=e>n;hi(t.parentElement,h,a,n),X(a)}else{const e=!1,n="object"==typeof h&&null!==h&&h.threshold||.7;hi(t.parentElement,h,e,n),X(e)}}else{const e=!1,n="object"==typeof h&&null!==h&&h.threshold||.7;hi(t.parentElement,h,e,n),X(e)}}catch(n){X(!1)}}),150);return()=>clearTimeout(a)}"boolean"==typeof h&&X(!1)}),[h,e]);const pe=o((()=>"boolean"==typeof h?h:("auto"===h||"object"==typeof h&&null!==h)&&Q),[h,Q]),ge=o(((e,t,n,a)=>"number"!=typeof e||isNaN(e)||!isFinite(e)?a:Math.min(n,Math.max(t,e))),[]),fe=u((()=>{const e=pe(),t=k?1.4:1,n=D?1.6:1,a={isOverLight:e,threshold:.7,opacity:e?Math.min(.6,Math.max(.2,.5*t*n)):0,contrast:1.4,brightness:.9,saturationBoost:1.3,shadowIntensity:.9,borderOpacity:.7};if("object"==typeof h&&null!==h){const e=h,r=ge(e.threshold,.1,1,a.threshold),i=ge(e.opacity,.1,1,a.opacity),o=ge(e.contrast,.5,2.5,a.contrast),s=ge(e.brightness,.5,2,a.brightness),l=ge(e.saturationBoost,.5,3,a.saturationBoost),c={...a,threshold:r,opacity:i*t*n,contrast:o,brightness:s,saturationBoost:l};return"undefined"==typeof process||process.env,c}return"undefined"==typeof process||process.env,a}),[h,pe,k,D,ge,S]),be=u((()=>ue||D&&b?"scale(0.98)":"scale(1)"),[ue,D,b]),ve=i(null),Se=o((()=>{H.current=!1,null!==V.current&&(cancelAnimationFrame(V.current),V.current=null)}),[]),ye=o((()=>{if(H.current)return;H.current=!0;const t=di.LERP_FACTOR,a=()=>{if(!H.current)return;if(!e.current)return void(H.current=!1);const r=U.current,i=F.current,o=i.x-r.x,s=i.y-r.y;if(.01>Math.abs(o)&&.01>Math.abs(s))return U.current={...i},z.current={...G.current},ei(n?.current||null,e.current,{mouseOffset:U.current,globalMousePosition:z.current,glassSize:ce,isHovered:k,isActive:D,isOverLight:fe.isOverLight,baseOverLightConfig:fe,effectiveBorderRadius:le,effectiveWithoutEffects:ue,effectiveReducedMotion:re,elasticity:f,directionalScale:D&&b?"scale(0.96)":"scale(1)",onClick:b,withLiquidBlur:N,blurAmount:E,saturation:A,padding:x,isFixedOrSticky:T}),void Se();U.current={x:Kr(r.x,i.x,t),y:Kr(r.y,i.y,t)};const l=z.current,c=G.current;z.current={x:Kr(l.x,c.x,t),y:Kr(l.y,c.y,t)},ei(n?.current||null,e.current,{mouseOffset:U.current,globalMousePosition:z.current,glassSize:ce,isHovered:k,isActive:D,isOverLight:fe.isOverLight,baseOverLightConfig:fe,effectiveBorderRadius:le,effectiveWithoutEffects:ue,effectiveReducedMotion:re,elasticity:f,directionalScale:D&&b?"scale(0.96)":"scale(1)",onClick:b,withLiquidBlur:N,blurAmount:E,saturation:A,padding:x,isFixedOrSticky:T}),V.current=requestAnimationFrame(a)};V.current=requestAnimationFrame(a)}),[e,n,ce,k,D,fe,le,ue,re,f,b,N,E,A,x,T,Se]),Ee=o((t=>{if(l&&c)return;if(ue)return;const n=d?.current||e.current;if(!n)return;let a=B.current;if(a&&0!==a.width&&0!==a.height||(a=n.getBoundingClientRect(),B.current=a),0===a.width||0===a.height)return;const r=Ur(a);F.current={x:(t.x-r.x)/a.width*100,y:(t.y-r.y)/a.height*100},G.current=t,H.current||ye()}),[d,e,l,c,ue,ye]);s((()=>{if(l&&c)return;if(ue)return;const t=Jr.subscribe(Ee);ye();const n=d?.current||e.current;let a=null;return n&&"undefined"!=typeof ResizeObserver&&(a=new ResizeObserver((()=>{null!==ve.current&&cancelAnimationFrame(ve.current),ve.current=requestAnimationFrame((()=>{const t=d?.current||e.current;t&&(B.current=t.getBoundingClientRect()),ve.current=null}))})),a.observe(n)),()=>{t(),Se(),null!==ve.current&&(cancelAnimationFrame(ve.current),ve.current=null),a&&a.disconnect()}}),[l,c,ue,Ee,ye,Se,d,e]),s((()=>{ei(n?.current||null,e.current,{mouseOffset:c||U.current,globalMousePosition:l||z.current,glassSize:ce,isHovered:k,isActive:D,isOverLight:fe.isOverLight,baseOverLightConfig:fe,effectiveBorderRadius:le,effectiveWithoutEffects:ue,effectiveReducedMotion:re,elasticity:f,directionalScale:D&&b?"scale(0.96)":"scale(1)",onClick:b,withLiquidBlur:N,blurAmount:E,saturation:A,padding:x})}),[k,D,ce,fe,le,ue,re,f,n,e,c,l,N,E,A,x,b]);const Ae=o((()=>M(!0)),[]),xe=o((()=>M(!1)),[]),Ne=o((()=>P(!0)),[]),Te=o((()=>P(!1)),[]),_e=o((e=>{!b||"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),b())}),[b]);return{isHovered:k,isActive:D,glassSize:ce,dynamicBorderRadius:$,effectiveBorderRadius:le,effectiveReducedMotion:re,effectiveHighContrast:de,effectiveWithoutEffects:ue,detectedOverLight:Q,globalMousePosition:he,mouseOffset:me,overLightConfig:fe,transformStyle:be,getShaderTime:oe,applyTimeBasedDistortion:se,handleMouseEnter:Ae,handleMouseLeave:xe,handleMouseDown:Ne,handleMouseUp:Te,handleKeyDown:_e}}const pi={mobile:{maxWidth:640,params:{distortionOctaves:3,displacementScale:.7,blurAmount:.8,animationSpeed:.8,chromaticIntensity:.5}},tablet:{minWidth:641,maxWidth:1024,params:{distortionOctaves:4,displacementScale:.85,blurAmount:.9,animationSpeed:.9,chromaticIntensity:.75}},desktop:{minWidth:1025,params:{distortionOctaves:5,displacementScale:1,blurAmount:1,animationSpeed:1,chromaticIntensity:1}}};function gi({baseParams:e,breakpoints:t=pi,enabled:n=!0,enablePerformanceAdjustment:a=!0,debug:l=!1}){const[c,d]=r(e),[u,h]=r("desktop"),[m,p]=r("high"),[g,f]=r(n),b=i(e),v=i(t);b.current=e,v.current=t;const S=o((()=>{if(!n||"undefined"==typeof window)return f(!1),d(b.current),void h("disabled");f(!0);const e=window.innerWidth,{name:t,params:r}=((e,t)=>{const n=Object.entries(t).filter((([e,t])=>void 0!==t.minWidth)).sort(((e,t)=>(t[1].minWidth||0)-(e[1].minWidth||0)));for(const[l,c]of n)if(e>=(c.minWidth||0))return{name:l,params:c.params};const a=Object.entries(t).filter((([e,t])=>void 0!==t.maxWidth)).sort(((e,t)=>(e[1].maxWidth||1/0)-(t[1].maxWidth||1/0)));for(const[l,c]of a)if(e<=(c.maxWidth||1/0))return{name:l,params:c.params};const r=Object.entries(t);if(0===r.length)return{name:"desktop",params:{distortionOctaves:5,displacementScale:1,blurAmount:1}};const i=r[0];if(!i)return{name:"desktop",params:{distortionOctaves:5,displacementScale:1,blurAmount:1}};const[o,s]=i;return{name:o,params:s.params}})(e,v.current);h(t);let i=((e,t)=>{const n={...e},a=["displacementScale","blurAmount","saturation","aberrationIntensity","animationSpeed","chromaticIntensity"];for(const i of a)void 0!==t[i]&&void 0!==e[i]&&(n[i]=e[i]*t[i]);const r=["distortionOctaves","distortionLacunarity","distortionGain"];for(const i of r)void 0!==t[i]&&(n[i]=t[i]);return n})(b.current,r);if(a){const e=(()=>{if("undefined"==typeof window||"undefined"==typeof navigator)return"high";const e=navigator.deviceMemory||4,t=navigator.hardwareConcurrency||4;return e>2&&t>2?4>e||4>t?"medium":"high":"low"})();p(e),i=((e,t)=>{if("high"===t)return e;const n="low"===t?.7:.85;return{...e,distortionOctaves:Math.max(2,Math.round((e.distortionOctaves||5)*n)),displacementScale:(e.displacementScale||1)*n,blurAmount:(e.blurAmount||1)*n,animationSpeed:(e.animationSpeed||1)*n,chromaticIntensity:(e.chromaticIntensity||1)*n}})(i,e)}d(i)}),[n,a,l]),y=(e=>{const t=i(null);return s((()=>()=>{t.current&&clearTimeout(t.current)}),[]),o(((...n)=>{t.current&&clearTimeout(t.current),t.current=setTimeout((()=>{e(...n)}),200)}),[e,200])})(S);return s((()=>{if(n)return S(),window.addEventListener("resize",y),()=>{window.removeEventListener("resize",y)}}),[n]),{responsiveParams:c,currentBreakpoint:u,performanceTier:m,isActive:g,recalculate:o((()=>{S()}),[S])}}function fi(){return{...pi}}function bi(e){return{...pi,...e}}function vi(e={}){const{enabled:t=!0,targetFps:n=60,minFps:a=45,scaleUpThreshold:l=58,lowFpsFrames:c=3,highFpsFrames:d=10,debug:u=!1,showOverlay:h=!1}=e,[m,p]=r({fps:0,frameTime:0,gpuMemory:null,qualityLevel:"medium",timestamp:0,isAutoScaling:!0,lowFpsCount:0}),[g,f]=r(!1),[b,v]=r(t),S=i(0),y=i(0),E=i(0),A=i(null),x=i(0),N=i(0),T=i("medium"),_=o((e=>{p((t=>({...t,...e,timestamp:performance.now()})))}),[]),C=o((e=>{if(g)return;const t=T.current;if(a>e)x.current++,N.current=0,x.current<c||"low"===t||(T.current="low",_({qualityLevel:"low",lowFpsCount:x.current}));else if(l>e)x.current=0,N.current=0;else if(N.current++,x.current=0,N.current>=d){const e="low"===t?"medium":"high";T.current=e,_({qualityLevel:e,lowFpsCount:0}),N.current=0}}),[g,a,l,c,d,u,_]),L=o((e=>{if(!b)return;S.current++;const t=e-E.current;if(E.current=e,e-y.current>=100){const n=e-y.current,a=Math.round(1e3*S.current/n);C(a),_({fps:a,frameTime:t,qualityLevel:T.current,lowFpsCount:x.current}),S.current=0,y.current=e}A.current=requestAnimationFrame(L)}),[b,C,_]);s((()=>{if(!b||"undefined"==typeof window)return;let e=!0;return(async()=>{const t=await new Promise((e=>{if("undefined"!=typeof window&&"undefined"!=typeof document)try{const r=document.createElement("canvas"),i=r.getContext("webgl")||r.getContext("experimental-webgl");if(i){const r=i.getExtension("WEBGL_debug_renderer_info");if(r){var t,n,a;const o=i.getParameter(r.UNMASKED_RENDERER_WEBGL);return void((null==(t=o)?void 0:Function.call.bind(Ra(t),t))?.("Integrated")?e(256):(null==(n=o)?void 0:Function.call.bind(Ra(n),n))?.("AMD")||(null==(a=o)?void 0:Function.call.bind(Ra(a),a))?.("NVIDIA")?e(512):e(null))}}}catch(r){}e(null)}));e&&_({gpuMemory:t})})(),()=>{e=!1}}),[b,_]),s((()=>{if(b)return y.current=performance.now(),E.current=performance.now(),A.current=requestAnimationFrame(L),()=>{null!==A.current&&(cancelAnimationFrame(A.current),A.current=null)};null!==A.current&&(cancelAnimationFrame(A.current),A.current=null)}),[b]);const I=o((e=>{f(!0),T.current=e,_({qualityLevel:e,isAutoScaling:!1})}),[_,u]),w=o((()=>{f(!1),x.current=0,N.current=0,_({isAutoScaling:!0,lowFpsCount:0})}),[_,u]),O=o((()=>{v((e=>!e))}),[]);var R,k;return{metrics:m,recommendedQuality:(R=m.fps,k=m.qualityLevel,58>R?45>R?"low":"high"===k?"high":"medium":"high"),isUnderperforming:m.fps<a,setQualityLevel:I,resetAutoScaling:w,toggleMonitoring:O}}function Si({metrics:e}){return null}function yi(e){switch(e){case"low":return{distortionOctaves:2,displacementScale:.6,blurAmount:.7,animationSpeed:.8,chromaticIntensity:.5};case"medium":return{distortionOctaves:4,displacementScale:.85,blurAmount:.9,animationSpeed:.95,chromaticIntensity:.75};case"high":return{distortionOctaves:5,displacementScale:1,blurAmount:1,animationSpeed:1,chromaticIntensity:1}}}const Ei=e=>{switch(e){case"high":return"var(--atomix-color-success, #4ade80)";case"medium":return"var(--atomix-color-warning, #fbbf24)";case"low":return"var(--atomix-color-danger, #ef4444)";default:return"#9ca3af"}},Ai=e=>58>e?45>e?"Critical":"Warning":"Optimal";if("undefined"!=typeof document){const e="perf-dashboard-keyframes";if(!document.getElementById(e)){const t=document.createElement("style");t.id=e,t.textContent="\n@keyframes perf-dashboard-pulse {\n 0%, 100% { opacity: 1; }\n 50% { opacity: 0.5; }\n}\n",document.head.appendChild(t)}}const xi=l((({metrics:n,isVisible:a=!0,onClose:r})=>{if(!a)return null;const i=58>(o=n.fps)?45>o?"var(--atomix-color-danger, #ef4444)":"var(--atomix-color-warning, #fbbf24)":"var(--atomix-color-success, #4ade80)";var o;const s=45>n.fps;return t("div",{className:"c-perf-dashboard u-position-fixed u-top-4 u-end-4 u-p-3 u-px-4 u-text-xs u-font-mono u-text-white u-rounded-md u-border u-border-white-alpha-10 u-shadow-lg",style:{zIndex:9999,minWidth:"12.5rem",backgroundColor:"rgba(17, 24, 39, 0.95)",backdropFilter:"blur(8px)",transition:"opacity 0.3s ease"},children:[t("div",{className:"u-flex u-items-center u-justify-between u-mb-2 u-pb-2 u-border-b u-border-white-alpha-10",children:[e("span",{className:"u-text-sm u-font-bold u-text-white",children:"Performance Monitor"}),r&&e("button",{className:"u-bg-transparent u-border-none u-p-0 u-line-height-1 u-text-base u-text-gray-400 u-cursor-pointer hover:u-text-white",onClick:r,"aria-label":"Close performance dashboard",style:{transition:"color 0.2s ease"},children:"×"})]}),t("div",{className:"u-flex u-items-center u-justify-between u-mb-1-5",children:[e("span",{className:"u-text-gray-400 u-me-3",children:"FPS"}),e("span",{className:"u-font-bold",style:{color:i},children:Math.round(n.fps)})]}),t("div",{className:"u-flex u-items-center u-justify-between u-mb-1-5",children:[e("span",{className:"u-text-gray-400 u-me-3",children:"Frame Time"}),t("span",{className:"u-font-bold",children:[n.frameTime.toFixed(2),"ms"]})]}),t("div",{className:"u-flex u-items-center u-justify-between u-mb-1-5",children:[e("span",{className:"u-text-gray-400 u-me-3",children:"Quality"}),e("span",{className:"u-font-bold u-text-uppercase",style:{fontSize:"0.6875rem",color:Ei(n.qualityLevel)},children:n.qualityLevel})]}),n.gpuMemory&&t("div",{className:"u-flex u-items-center u-justify-between u-mb-1-5",children:[e("span",{className:"u-text-gray-400 u-me-3",children:"GPU Memory"}),t("span",{className:"u-font-bold",children:["~",Math.round(n.gpuMemory/1024),"MB"]})]}),n.isAutoScaling&&e("div",{className:"u-mt-2 u-pt-2 u-border-t u-border-white-alpha-10 u-text-center",style:{fontSize:"0.625rem",color:"#6b7280"},children:"Auto-scaling active"}),t("div",{className:"u-flex u-items-center u-gap-2 u-mt-2 u-pt-2 u-border-t u-border-white-alpha-10",children:[e("div",{className:"u-rounded-full",style:{width:"0.5rem",height:"0.5rem",flexShrink:0,backgroundColor:i,...s&&{animation:"perf-dashboard-pulse 1s infinite"}}}),e("span",{className:"u-text-xs",style:{fontSize:"0.625rem",color:i},children:Ai(n.fps)})]})]})}));xi.displayName="PerformanceDashboard";const Ni={distortionOctaves:2,displacementScale:50,blurAmount:5,saturation:80,aberrationIntensity:.3,animationSpeed:.8,chromaticIntensity:.3,distortionLacunarity:1.5,distortionGain:.3},Ti={distortionOctaves:3,displacementScale:75,blurAmount:8,saturation:90,aberrationIntensity:.5,animationSpeed:1,chromaticIntensity:.5,distortionLacunarity:2,distortionGain:.4},_i={distortionOctaves:4,displacementScale:100,blurAmount:12,saturation:100,aberrationIntensity:.7,animationSpeed:1.2,chromaticIntensity:.7,distortionLacunarity:2.2,distortionGain:.5};function Ci(e){switch(e){case"performance":return Ni;case"balanced":default:return Ti;case"quality":return _i}}const Li={desktop:{minWidth:1024,params:{distortionOctaves:6,displacementScale:150,blurAmount:15,saturation:100,aberrationIntensity:1,animationSpeed:1,chromaticIntensity:1,distortionLacunarity:2.5,distortionGain:.6}},laptop:{minWidth:768,params:{..._i,distortionOctaves:5,displacementScale:120}},tablet:{minWidth:640,params:{...Ti,distortionOctaves:4,displacementScale:90}},mobile:{maxWidth:639,params:{...Ni,distortionOctaves:3,displacementScale:75,blurAmount:6}},mobileSmall:{maxWidth:375,params:{...Ni,distortionOctaves:2,displacementScale:50,blurAmount:4,saturation:70}}};function Ii(e){return 1024>e?768>e?640>e?375>e?Li.mobileSmall?.params||Ni:Li.mobile?.params||Ni:Li.tablet?.params||Ti:Li.laptop?.params||Ti:Li.desktop?.params||Ti}const wi={isMobile:()=>"undefined"!=typeof window&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),isTablet(){if("undefined"==typeof window)return!1;const e=window.innerWidth;return e>=640&&1024>e&&this.isMobile()},getRecommendedPreset(){return this.isMobile()?this.isTablet()?"balanced":"performance":"quality"},getPixelRatio:()=>"undefined"==typeof window?1:window.devicePixelRatio||1,hasTouchSupport:()=>"undefined"!=typeof window&&("ontouchstart"in window||navigator.maxTouchPoints>0)},Oi=c((function({children:r,displacementScale:o=Dr.DEFAULTS.DISPLACEMENT_SCALE,blurAmount:s=Dr.DEFAULTS.BLUR_AMOUNT,saturation:l=Dr.DEFAULTS.SATURATION,aberrationIntensity:c=Dr.DEFAULTS.ABERRATION_INTENSITY,elasticity:d=Dr.DEFAULTS.ELASTICITY,borderRadius:h,globalMousePosition:m,mouseOffset:p,mouseContainer:g=null,className:f="",padding:b=Dr.DEFAULTS.PADDING,overLight:v=Dr.DEFAULTS.OVER_LIGHT,style:S={},mode:y=Dr.DEFAULTS.MODE,onClick:E,shaderVariant:A="liquidGlass","aria-label":x,"aria-describedby":N,role:T,tabIndex:_,reducedMotion:C=!1,highContrast:L=!1,withoutEffects:I=!1,withLiquidBlur:w=!1,withBorder:O=!0,withOverLightLayers:R=Dr.DEFAULTS.ENABLE_OVER_LIGHT_LAYERS,debugPerformance:k=!1,debugOverLight:M=!1,height:D,width:P,withTimeAnimation:B=!1,animationSpeed:z=1,withMultiLayerDistortion:U=!1,distortionOctaves:F=3,distortionLacunarity:G=2,distortionGain:V=.5,distortionQuality:H="medium",devicePreset:$="balanced",disableResponsiveBreakpoints:Y=!1,isFixedOrSticky:K,...W},j){const q=i(null),Q=i(null),X=i(null),Z=u((()=>function(...e){return t=>{e.forEach((e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)}))}}(j,X)),[j]),{zIndex:J,...ee}=S,te=K||"fixed"===ee.position||"sticky"===ee.position,{isHovered:ne,isActive:ae,glassSize:re,effectiveBorderRadius:ie,effectiveReducedMotion:oe,effectiveHighContrast:se,effectiveWithoutEffects:le,overLightConfig:ce,globalMousePosition:de,mouseOffset:ue,transformStyle:he,getShaderTime:me,handleMouseEnter:pe,handleMouseLeave:ge,handleMouseDown:fe,handleMouseUp:be,handleKeyDown:ve}=mi({glassRef:q,contentRef:Q,wrapperRef:X,borderRadius:h,globalMousePosition:m,mouseOffset:p,mouseContainer:g,overLight:v,reducedMotion:C,highContrast:L,withoutEffects:I,elasticity:d,onClick:E,debugOverLight:M,debugPerformance:k,children:r,blurAmount:s,saturation:l,withLiquidBlur:w,padding:b,style:S,isFixedOrSticky:te,withTimeAnimation:B,animationSpeed:z,withMultiLayerDistortion:U,distortionOctaves:F,distortionLacunarity:G,distortionGain:V,distortionQuality:H});gi({baseParams:{...u((()=>Ci($)),[$]),distortionOctaves:Math.round((o||Dr.DEFAULTS.DISPLACEMENT_SCALE)/25),displacementScale:o||Dr.DEFAULTS.DISPLACEMENT_SCALE,blurAmount:s||Dr.DEFAULTS.BLUR_AMOUNT,saturation:l||Dr.DEFAULTS.SATURATION,aberrationIntensity:c||Dr.DEFAULTS.ABERRATION_INTENSITY,animationSpeed:1,chromaticIntensity:c||Dr.DEFAULTS.ABERRATION_INTENSITY},breakpoints:Li,enabled:!Y&&"undefined"!=typeof window,debug:!1});const{metrics:Se,toggleMonitoring:ye}=vi({enabled:k,debug:!1,showOverlay:!1});a.useEffect((()=>{k&&ye()}),[k]);const Ee=u((()=>ce.isOverLight),[ce.isOverLight]),Ae=R&&Ee,xe=u((()=>{if(!te)return{};const{position:e,top:t,left:n,right:a,bottom:r}=ee;return{...e&&{position:e},...void 0!==t&&{top:t},...void 0!==n&&{left:n},...void 0!==a&&{right:a},...void 0!==r&&{bottom:r}}}),[te,ee]);u((()=>{if(te){const{position:e,top:t,left:n,right:a,bottom:r,...i}=ee;return{...i}}return{...ee}}),[te,ee]);const Ne=[Dr.BASE_CLASS,oe&&Dr.BASE_CLASS+"--reduced-motion",se&&Dr.BASE_CLASS+"--high-contrast",le&&Dr.BASE_CLASS+"--disabled-effects",f].filter(Boolean).join(" "),Te=u((()=>({position:te?"absolute":ee.position||"absolute",top:te?ee.top??0:0,left:te?ee.left??0:0,right:te?ee.right??"auto":"auto",bottom:te?ee.bottom??"auto":"auto"})),[te,ee.position,ee.top,ee.left,ee.right,ee.bottom]),_e=u((()=>{Te.position;const e=(e,t)=>void 0!==e&&te?"number"==typeof e?e+"px":e:t>0&&te?t+"px":"100%",t=P??ee.width,n=D??ee.height;return{width:e(t,re.width),height:e(n,re.height)}}),[P,D,ee.width,ee.height,Te.position,re.width,re.height,te]),Ce=u((()=>{const e=ue.x,t=ue.y,n=Math.abs(e),a=Math.abs(t),r=Dr.CONSTANTS.GRADIENT;return{borderGradientAngle:r.BASE_ANGLE+e*r.ANGLE_MULTIPLIER,borderStop1:Math.max(r.BORDER_STOP_1.MIN,r.BORDER_STOP_1.BASE+t*r.BORDER_STOP_1.MULTIPLIER),borderStop2:Math.min(r.BORDER_STOP_2.MAX,r.BORDER_STOP_2.BASE+t*r.BORDER_STOP_2.MULTIPLIER),borderOpacities:[r.BORDER_OPACITY.BASE_1+n*r.BORDER_OPACITY.MULTIPLIER_LOW,r.BORDER_OPACITY.BASE_2+n*r.BORDER_OPACITY.MULTIPLIER_HIGH,r.BORDER_OPACITY.BASE_3+n*r.BORDER_OPACITY.MULTIPLIER_LOW,r.BORDER_OPACITY.BASE_4+n*r.BORDER_OPACITY.MULTIPLIER_HIGH],hoverPositions:{hover1:{x:r.CENTER_POSITION+e/r.HOVER_POSITION.DIVISOR_1,y:r.CENTER_POSITION+t/r.HOVER_POSITION.DIVISOR_1},hover2:{x:r.CENTER_POSITION+e/r.HOVER_POSITION.DIVISOR_2,y:r.CENTER_POSITION+t/r.HOVER_POSITION.DIVISOR_2},hover3:{x:r.CENTER_POSITION+e*r.HOVER_POSITION.MULTIPLIER_3,y:r.CENTER_POSITION+t*r.HOVER_POSITION.MULTIPLIER_3}},basePosition:{x:r.CENTER_POSITION+e*r.BASE_LAYER_MULTIPLIER,y:r.CENTER_POSITION+t*r.BASE_LAYER_MULTIPLIER},mx:e,my:t,absMx:n,absMy:a}}),[ue.x,ue.y]),Le=Math.max(0,Math.min(1,ce?.opacity??.4)),Ie=Math.max(0,Math.min(1,ce?.borderOpacity??1)),we=u((()=>({hover1:ne||ae?.5:0,hover2:ae?.5:0,hover3:ne?.4:ae?.8:0,base:Ee?Le||.4:0,over:Ee?1.1*(Le||.4):0})),[ne,ae,Ee,Le]),Oe=u((()=>{const e=Dr.CONSTANTS.PALETTE.WHITE,t=Dr.CONSTANTS.PALETTE.BLACK,{borderGradientAngle:n,borderStop1:a,borderStop2:r,borderOpacities:i,hoverPositions:o,basePosition:s,mx:l,my:c,absMx:d,absMy:u}=Ce;return{...void 0!==J&&{"--atomix-glass-base-z-index":J},"--atomix-glass-radius":ie+"px","--atomix-glass-transform":he||"none","--atomix-glass-container-position":""+(te?xe.position:Te.position),"--atomix-glass-position":""+(te?xe.position:Te.position),"--atomix-glass-top":(te?ee.top??0:0)+"px","--atomix-glass-left":(te?ee.left??0:0)+"px","--atomix-glass-right":te?ee.right??"auto":"auto","--atomix-glass-bottom":te?ee.bottom??"auto":"auto","--atomix-glass-width":_e.width,"--atomix-glass-height":_e.height,"--atomix-glass-border-width":"var(--atomix-spacing-0-5, 0.125rem)","--atomix-glass-blend-mode":Ee?"multiply":"overlay","--atomix-glass-border-gradient-1":`linear-gradient(${n}deg, rgba(${e}, 0) 0%, rgba(${e}, ${(i[0]??1)*Ie}) ${a}%, rgba(${e}, ${(i[1]??1)*Ie}) ${r}%, rgba(${e}, 0) 100%)`,"--atomix-glass-border-gradient-2":`linear-gradient(${n}deg, rgba(${e}, 0) 0%, rgba(${e}, ${(i[2]??1)*Ie}) ${a}%, rgba(${e}, ${(i[3]??1)*Ie}) ${r}%, rgba(${e}, 0) 100%)`,"--atomix-glass-hover-1-opacity":we.hover1,"--atomix-glass-hover-1-gradient":Ee?`radial-gradient(circle at ${o.hover1.x}% ${o.hover1.y}%, rgba(${t}, ${Dr.CONSTANTS.GRADIENT_OPACITY.HOVER_1.BLACK_START}) 0%, rgba(${t}, ${Dr.CONSTANTS.GRADIENT_OPACITY.HOVER_1.BLACK_MID}) ${Dr.CONSTANTS.GRADIENT_OPACITY.HOVER_1.BLACK_STOP}%, rgba(${t}, 0) ${Dr.CONSTANTS.GRADIENT_OPACITY.HOVER_1.BLACK_END}%)`:`radial-gradient(circle at ${o.hover1.x}% ${o.hover1.y}%, rgba(${e}, ${Dr.CONSTANTS.GRADIENT_OPACITY.HOVER_1.WHITE_START}) 0%, rgba(${e}, 0) ${Dr.CONSTANTS.GRADIENT_OPACITY.HOVER_1.WHITE_STOP}%)`,"--atomix-glass-hover-2-opacity":we.hover2,"--atomix-glass-hover-2-gradient":Ee?`radial-gradient(circle at ${o.hover2.x}% ${o.hover2.y}%, rgba(${t}, ${Dr.CONSTANTS.GRADIENT_OPACITY.HOVER_2.BLACK_START}) 0%, rgba(${t}, ${Dr.CONSTANTS.GRADIENT_OPACITY.HOVER_2.BLACK_MID}) ${Dr.CONSTANTS.GRADIENT_OPACITY.HOVER_2.BLACK_STOP}%, rgba(${t}, 0) ${Dr.CONSTANTS.GRADIENT_OPACITY.HOVER_2.BLACK_END}%)`:`radial-gradient(circle at ${o.hover2.x}% ${o.hover2.y}%, rgba(${e}, ${Dr.CONSTANTS.GRADIENT_OPACITY.HOVER_2.WHITE_START}) 0%, rgba(${e}, 0) ${Dr.CONSTANTS.GRADIENT_OPACITY.HOVER_2.WHITE_STOP}%)`,"--atomix-glass-hover-3-opacity":we.hover3,"--atomix-glass-hover-3-gradient":Ee?`radial-gradient(circle at ${o.hover3.x}% ${o.hover3.y}%, rgba(${t}, ${Dr.CONSTANTS.GRADIENT_OPACITY.HOVER_3.BLACK_START}) 0%, rgba(${t}, ${Dr.CONSTANTS.GRADIENT_OPACITY.HOVER_3.BLACK_MID}) ${Dr.CONSTANTS.GRADIENT_OPACITY.HOVER_3.BLACK_STOP}%, rgba(${t}, 0) ${Dr.CONSTANTS.GRADIENT_OPACITY.HOVER_3.BLACK_END}%)`:`radial-gradient(circle at ${o.hover3.x}% ${o.hover3.y}%, rgba(${e}, ${Dr.CONSTANTS.GRADIENT_OPACITY.HOVER_3.WHITE_START}) 0%, rgba(${e}, 0) ${Dr.CONSTANTS.GRADIENT_OPACITY.HOVER_3.WHITE_STOP}%)`,"--atomix-glass-base-opacity":we.base,"--atomix-glass-base-gradient":Ee?`linear-gradient(${Dr.CONSTANTS.BASE_GRADIENT.ANGLE}deg, rgba(${t}, ${Dr.CONSTANTS.BASE_GRADIENT.BLACK_START_BASE+l*Dr.CONSTANTS.BASE_GRADIENT.BLACK_START_MULTIPLIER}) 0%, rgba(${t}, ${Dr.CONSTANTS.BASE_GRADIENT.BLACK_MID_BASE+c*Dr.CONSTANTS.BASE_GRADIENT.BLACK_MID_MULTIPLIER}) ${Dr.CONSTANTS.BASE_GRADIENT.BLACK_MID_STOP}%, rgba(${t}, ${Dr.CONSTANTS.BASE_GRADIENT.BLACK_END_BASE+d*Dr.CONSTANTS.BASE_GRADIENT.BLACK_END_MULTIPLIER}) 100%)`:`rgba(${e}, ${Dr.CONSTANTS.BASE_GRADIENT.WHITE_OPACITY})`,"--atomix-glass-overlay-opacity":we.over,"--atomix-glass-overlay-gradient":Ee?`radial-gradient(circle at ${s.x}% ${s.y}%, rgba(${t}, ${Dr.CONSTANTS.OVERLAY_GRADIENT.BLACK_START_BASE+d*Dr.CONSTANTS.OVERLAY_GRADIENT.BLACK_START_MULTIPLIER}) 0%, rgba(${t}, ${Dr.CONSTANTS.OVERLAY_GRADIENT.BLACK_MID}) ${Dr.CONSTANTS.OVERLAY_GRADIENT.BLACK_MID_STOP}%, rgba(${t}, ${Dr.CONSTANTS.OVERLAY_GRADIENT.BLACK_END_BASE+u*Dr.CONSTANTS.OVERLAY_GRADIENT.BLACK_END_MULTIPLIER}) 100%)`:`rgba(${e}, ${Dr.CONSTANTS.OVERLAY_GRADIENT.WHITE_OPACITY})`,"--atomix-glass-overlay-highlight-opacity":we.over*Dr.CONSTANTS.OVERLAY_HIGHLIGHT.OPACITY_MULTIPLIER,"--atomix-glass-overlay-highlight-bg":`radial-gradient(circle at ${Dr.CONSTANTS.OVERLAY_HIGHLIGHT.POSITION_X}% ${Dr.CONSTANTS.OVERLAY_HIGHLIGHT.POSITION_Y}%, rgba(255, 255, 255, ${Dr.CONSTANTS.OVERLAY_HIGHLIGHT.WHITE_OPACITY}) 0%, transparent ${Dr.CONSTANTS.OVERLAY_HIGHLIGHT.STOP}%)`}}),[Ce,we,ie,he,_e,Ee,Ie,J,te,Te.position,xe.position,ee.top,ee.left,ee.right,ee.bottom]),Re=t=>e("div",{className:[Dr.BACKGROUND_LAYER_CLASS,"dark"===t?Dr.BACKGROUND_LAYER_DARK_CLASS:Dr.BACKGROUND_LAYER_BLACK_CLASS,Ee?Dr.BACKGROUND_LAYER_OVER_LIGHT_CLASS:Dr.BACKGROUND_LAYER_HIDDEN_CLASS].filter(Boolean).join(" ")});return t("div",{...W,ref:Z,className:Ne,style:{...Oe},role:T||(E?"button":void 0),tabIndex:E?_??0:_,"aria-label":x,"aria-describedby":N,"aria-disabled":!(!E||!le)||!E&&void 0,"aria-pressed":void 0,onKeyDown:E?ve:void 0,children:[e(Zr,{ref:q,contentRef:Q,className:f,style:{...ee},borderRadius:ie,displacementScale:le?0:"shader"===y?o*Dr.CONSTANTS.MULTIPLIERS.SHADER_DISPLACEMENT:Ee?o*Dr.CONSTANTS.MULTIPLIERS.OVER_LIGHT_DISPLACEMENT:o,blurAmount:le?0:s,saturation:se?Dr.CONSTANTS.SATURATION.HIGH_CONTRAST:Ee?l*ce.saturationBoost:l,aberrationIntensity:le?0:"shader"===y?c*Dr.CONSTANTS.MULTIPLIERS.SHADER_ABERRATION:c,glassSize:re,padding:b,mouseOffset:le?{x:0,y:0}:ue,globalMousePosition:le?{x:0,y:0}:de,onMouseEnter:pe,onMouseLeave:ge,onMouseDown:fe,onMouseUp:be,isHovered:ne,isActive:ae,overLight:Ee,overLightConfig:{contrast:ce.contrast,brightness:ce.brightness,shadowIntensity:ce.shadowIntensity,borderOpacity:ce.borderOpacity},onClick:E,mode:y,effectiveWithoutEffects:le,effectiveReducedMotion:oe,shaderVariant:A,withLiquidBlur:w,isFixedOrSticky:te,shaderTime:me(),withTimeAnimation:B,animationSpeed:z,withMultiLayerDistortion:U,distortionOctaves:F,distortionLacunarity:G,distortionGain:V,distortionQuality:H,children:r}),!!E&&t(n,{children:[e("div",{className:Dr.HOVER_1_CLASS}),e("div",{className:Dr.HOVER_2_CLASS}),e("div",{className:Dr.HOVER_3_CLASS})]}),Re("dark"),Re("black"),Ae&&t(n,{children:[e("div",{className:Dr.BASE_LAYER_CLASS}),e("div",{className:Dr.OVERLAY_LAYER_CLASS}),e("div",{className:Dr.OVERLAY_HIGHLIGHT_CLASS})]}),O&&t(n,{children:[e("span",{className:Dr.BORDER_BACKDROP_CLASS}),e("span",{className:Dr.BORDER_1_CLASS}),e("span",{className:Dr.BORDER_2_CLASS})]}),k&&Se&&e(xi,{metrics:Se,isVisible:!0,onClose:()=>{}})]})}));Oi.displayName="AtomixGlass";const Ri=l(Oi),ki=()=>e("i",{className:"c-accordion__icon","aria-hidden":"true",children:e("svg",{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","aria-hidden":"true",focusable:"false",children:e("polyline",{points:"6 9 12 15 18 9"})})}),Mi=c((({title:n,icon:a,iconPosition:r="right",isOpen:i,children:o,className:s="",...l},c)=>{const d=void 0===a?e(ki,{}):a;return t("button",{ref:c,type:"button",className:s,...l,children:[n&&e("span",{className:"c-accordion__title",children:n}),o,d]})}));Mi.displayName="AccordionHeader";const Di=c((({children:t,className:n="",panelRef:r,contentRef:i,...o},s)=>{const l=a.useMemo((()=>function(...e){return t=>{e.forEach((e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)}))}}(s,r)),[s,r]);return e("div",{ref:l,className:n,role:"region",...o,children:e("div",{className:Ga.SELECTORS.BODY.replace(".",""),ref:i,children:t})})}));Di.displayName="AccordionBody";const Pi=l((({title:r,children:i,defaultOpen:o=!1,isOpen:s,onOpenChange:l,disabled:c=!1,iconPosition:u="right",icon:h,className:m="",style:p,glass:g})=>{const f=d(),b="accordion-header-"+f,v="accordion-panel-"+f,{state:S,toggle:y,updatePanelHeight:E,panelRef:A,contentRef:x,generateClassNames:N,generateHeaderClassNames:T}=Pr({defaultOpen:o,disabled:c,iconPosition:u,isOpen:s,onOpenChange:l}),_=T(),C=Ga.SELECTORS.PANEL.replace(".",""),L=a.Children.toArray(i).some((e=>{var t;return a.isValidElement(e)&&Ra(t=["AccordionHeader","AccordionBody"]).call(t,e.type.displayName||"")})),I=e("div",{className:N(m)+(g?" c-accordion--glass":""),style:p,children:L?a.Children.map(i,(e=>{if(a.isValidElement(e)){const t=e.props;if("AccordionHeader"===e.type.displayName)return a.cloneElement(e,{id:b,className:`${_} ${t.className||""}`.trim(),onClick:e=>{y(),t?.onClick?.(e)},"aria-expanded":S.isOpen,"aria-controls":v,"aria-disabled":c,disabled:c,iconPosition:t.iconPosition||u});if("AccordionBody"===e.type.displayName)return a.cloneElement(e,{id:v,className:`${C} ${t.className||""}`.trim(),"aria-labelledby":b,panelRef:A,contentRef:x})}return e})):t(n,{children:[e(Mi,{id:b,className:_,onClick:y,"aria-expanded":S.isOpen,"aria-controls":v,"aria-disabled":c,disabled:c,title:r,icon:h,iconPosition:u}),e(Di,{id:v,className:C,"aria-labelledby":b,panelRef:A,contentRef:x,children:i})]})});if(g){const t={displacementScale:20,elasticity:0},n=!0===g?t:{...t,...g};return e(Ri,{...n,children:I})}return I}));Pi.displayName="Accordion";const Bi=Pi;Bi.Header=Mi,Bi.Body=Di;const zi=Bi,Ui=({height:n=24,width:a=24,color:r="currentColor",...i})=>t("svg",{width:a,height:n,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...i,children:[e("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z",fill:r}),e("path",{d:"M12 6c-3.31 0-6 2.69-6 6s2.69 6 6 6 6-2.69 6-6-2.69-6-6-6zm0 10c-2.21 0-4-1.79-4-4s1.79-4 4-4 4 1.79 4 4-1.79 4-4 4z",fill:r})]}),Fi=8e-4,Gi=4096,Vi=(e,t,n)=>{if("number"!=typeof e||"number"!=typeof t||"number"!=typeof n)return 0;const a=Math.max(0,Math.min(1,(n-e)/(t-e)));return a*a*(3-2*a)},Hi=(e,t)=>{if("number"!=typeof e||"number"!=typeof t||isNaN(e)||isNaN(t))return 0;const n=Math.max(Math.abs(e),Math.abs(t));if(0===n)return 0;const a=e/n,r=t/n;return n*Math.sqrt(a*a+r*r)},$i=(e,t,n,a,r)=>{if("number"!=typeof e||"number"!=typeof t||"number"!=typeof n||"number"!=typeof a||"number"!=typeof r)return 0;const i=Math.abs(e)-n+r,o=Math.abs(t)-a+r;return Math.min(Math.max(i,o),0)+Hi(Math.max(i,0),Math.max(o,0))-r},Yi=(e,t)=>({x:"number"!=typeof e||isNaN(e)?.5:Math.max(0,Math.min(1,e)),y:"number"!=typeof t||isNaN(t)?.5:Math.max(0,Math.min(1,t))}),Ki=e=>e&&"number"==typeof e.x&&"number"==typeof e.y&&!isNaN(e.x)&&!isNaN(e.y),Wi=(e,t,n)=>"number"!=typeof e||"number"!=typeof t||"number"!=typeof n||isNaN(e)?t:isNaN(t)?0:isNaN(n)?1:Math.max(t,Math.min(n,e)),ji=e=>{if("number"!=typeof e||isNaN(e))return 0;const t=Math.max(0,Math.min(1,e));return.5>t?4*t*t*t:1-Math.pow(-2*t+2,3)/2},qi=e=>"number"!=typeof e||isNaN(e)?0:1-Math.pow(1-Math.max(0,Math.min(1,e)),4),Qi=(e,t)=>{if("number"!=typeof e||"number"!=typeof t||isNaN(e)||isNaN(t))return 0;const n=255&Math.floor(e),a=255&Math.floor(t),r=e-Math.floor(e),i=t-Math.floor(t),o=ji(r),s=ji(i),l=(e,t)=>{if("number"!=typeof e||"number"!=typeof t)return 0;const n=43758.5453*Math.sin(12.9898*(e+57*t)+78.233);return n-Math.floor(n)},c=l(n,a),d=l(n+1,a),u=l(n,a+1),h=c+o*(d-c);return h+s*(u+o*(l(n+1,a+1)-u)-h)},Xi=(e,t,n=4)=>{if("number"!=typeof e||"number"!=typeof t||isNaN(e)||isNaN(t))return 0;const a=Math.max(1,Math.min(8,Math.floor(n)));let r=0,i=.5,o=1;for(let s=0;a>s;s++)r+=i*Qi(e*o,t*o),o*=2,i*=.5;return r},Zi=(e,t,n,a=0,r=0)=>{if("number"!=typeof e||"number"!=typeof t||"number"!=typeof n||"number"!=typeof a||"number"!=typeof r||isNaN(e)||isNaN(t)||isNaN(n)||isNaN(a)||isNaN(r))return{x:0,y:0};const i=Math.min(.02*n,.1);return{x:(e-a)*i,y:(t-r)*i}},Ji={liquidGlass:(e,t)=>{if(!Ki(e))return{x:.5,y:.5};const n=e.x-.5,a=e.y-.5,r=Date.now()*Fi,i=t&&Ki(t)?t.x-.5:0,o=t&&Ki(t)?t.y-.5:0,s=Hi(i,o),l=qi(1-Math.min(2*s,1)),c=Xi(12*(n+.5*i)+r,12*(a+.5*o)+.7*r,3)-.5,d=$i(n,a,.4,.3,.35),u=Vi(.8,0,d-.05),h=((e,t,n)=>{if("number"!=typeof e||"number"!=typeof t||isNaN(e)||isNaN(t)||isNaN(n))return{x:0,y:0};const a=Hi(e,t),r=Math.pow(Math.min(a,10),2)*n;return{x:e*(1+r),y:t*(1+r)}})(n,a,.4*.1),m=1.2*(h.x-n)*u,p=1.2*(h.y-a)*u,g=.018*Math.sin(8*(n+2*i)+2*r),f=.018*Math.cos(8*(a+2*o)+1.5*r),b=(.015*Math.sin(12*(n-i)+12*(a-o)+3*r)+.012*Math.cos(10*(n+i)-10*(a-o)-2*r))*l*s,v=(Math.sin(15*n+r)*Math.cos(15*a-r)*.008+Math.sin(20*n-.5*r)*Math.cos(20*a+.5*r)*.006)*u,S=.85*(g+f+.025*c),y=m+S+b+v,E=p+.8*S+.9*b+v,A=((e,t,n)=>{if("number"!=typeof e||"number"!=typeof t||"number"!=typeof n||isNaN(e)||isNaN(t)||isNaN(n))return{x:0,y:0};const a=Hi(e,t);if(0===a)return{x:0,y:0};const r=Math.atan2(t,e);return{x:Math.cos(r)*a*n,y:Math.sin(r)*a*n}})(n,a,.015*u),x=Vi(0,1,1.15*u),N=n+y+.5*A.x,T=a+E+.5*A.y;return Yi(Wi(N*x+.5,0,1),Wi(T*x+.5,0,1))},appleFluid:(e,t)=>{if(!Ki(e))return{x:.5,y:.5};const n=e.x-.5,a=e.y-.5,r=Date.now()*Fi*.6,i=t&&Ki(t)?t.x-.5:0,o=t&&Ki(t)?t.y-.5:0,s=Hi(i,o),l=qi(1-Math.min(1.5*s,1)),c=Xi(10*(n+.3*i)+r,10*(a+.3*o),5)-.5,d=Xi(10*(n-.3*i),10*(a-.3*o)+.8*r,5)-.5,u=$i(n,a,.42,.32,.38),h=Vi(.85,-.1,u),m=Math.sin(6*n+2*r)*Math.cos(4*a-r)*.025,p=Math.cos(4*n-r)*Math.sin(6*a+2*r)*.025,g=Math.atan2(a-o,n-i),f=l*s*.08,b=Math.cos(g+r)*f,v=a+(.035*d+p+Math.sin(g+r)*f)*h;return Yi(Wi(n+(.035*c+m+b)*h+.5,0,1),Wi(v+.5,0,1))},premiumGlass:(e,t)=>{if(!Ki(e))return{x:.5,y:.5};const n=e.x-.5,a=e.y-.5,r=Date.now()*Fi*.4,i=t&&Ki(t)?t.x-.5:0,o=t&&Ki(t)?t.y-.5:0,s=Hi(i,o),l=Hi(n,a),c=.3*Math.pow(Math.min(l,1),1.5),d=Math.atan2(a,n);let u=0,h=0;for(let S=0;3>S;S++){const e=5*(S+1),t=r*(1+.3*S),i=.01/(S+1);u+=Math.sin(n*e+t)*i,h+=Math.cos(a*e-t)*i}const m=Math.cos(d)*c*(1+.5*s),p=Math.sin(d)*c*(1+.5*s),g=Xi(8*n+r,8*a-r,2)-.5,f=$i(n,a,.43,.33,.36),b=Vi(.9,-.05,f),v=a+(p+h+.015*g)*b;return Yi(Wi(n+(m+u+.015*g)*b+.5,0,1),Wi(v+.5,0,1))},liquidMetal:(e,t)=>{if(!Ki(e))return{x:.5,y:.5};const n=e.x-.5,a=e.y-.5,r=Date.now()*Fi*1.2,i=t&&Ki(t)?t.x-.5:0,o=t&&Ki(t)?t.y-.5:0,s=Math.sin(20*n+4*r)*Math.cos(15*a-3*r)*.02,l=Math.cos(15*n-2*r)*Math.sin(20*a+5*r)*.015,c=.025*Xi(25*n+2*r,25*a-2*r,4),d=Math.atan2(a-o,n-i),u=Hi(n-i,a-o),h=.02*Math.sin(15*u-6*r)*qi(1-Math.min(2*u,1)),m=$i(n,a,.41,.31,.37),p=Vi(.88,-.08,m),g=n+(s+c+Math.cos(d)*h)*p,f=a+(l+.8*c+Math.sin(d)*h)*p;return Yi(Wi(g+.5,0,1),Wi(f+.5,0,1))},basiBasi:(e,t)=>{if(!Ki(e))return{x:.5,y:.5};const n=e.x-.5,a=e.y-.5,r=Date.now()*Fi*.5,i=t&&Ki(t)?t.x-.5:0,o=t&&Ki(t)?t.y-.5:0,s=Hi(i,o),l=qi(1-Math.min(1.2*s,1)),c=((e,t,n,a=1)=>"number"!=typeof e||"number"!=typeof t||"number"!=typeof n||"number"!=typeof a||isNaN(e)||isNaN(t)||isNaN(n)||isNaN(a)?.5:.5*(Math.sin(8*e+2*n)*Math.cos(8*t-2*n)*.5+Math.sin(8*(e+.5)*1.3-2*n*.8)*Math.cos(8*(t-.3)*1.3+2*n*.8)*.3+Math.sin(8*(e-.3)*.7+2*n*1.2)*Math.cos(8*(t+.4)*.7-2*n*1.2)*.2+1)*a)(n,a,r,.8),d=.02*(c-.5),u=Math.atan2(a,n),h=((e,t,n)=>{if("number"!=typeof e||"number"!=typeof t||"number"!=typeof n||isNaN(e)||isNaN(t)||isNaN(n)||isNaN(.025))return{r:{x:0,y:0},g:{x:0,y:0},b:{x:0,y:0}};const a=Hi(e,t),r=Math.min(.025*a,1),i=.8*r,o=1*r,s=1.2*r;return{r:{x:Math.cos(n)*i,y:Math.sin(n)*i},g:{x:Math.cos(n)*o,y:Math.sin(n)*o},b:{x:Math.cos(n)*s,y:Math.sin(n)*s}}})(n,a,u),m=(h.r.x+h.g.x+h.b.x)/3,p=(h.r.y+h.g.y+h.b.y)/3;let g=0,f=0;for(let $=0;7>$;$++){const e=Zi(n,a,($+1)/7,i,o),t=Xi((n+e.x)*(8+2*$)+r*(.5+.1*$),(a+e.y)*(8+2*$)-r*(.5+.1*$),3)-.5,s=1/($+1);g+=(e.x+.01*t)*s,f+=(e.y+.01*t)*s}g/=7,f/=7;const b=((e,t,n,a)=>"number"!=typeof e||"number"!=typeof t||"number"!=typeof a||isNaN(e)||isNaN(t)||isNaN(.5)||isNaN(a)?.5:Xi(5*e+.5*a,5*t-.5*a,3)*Math.exp(-1)*.5+.5)(n,a,0,r),v=Math.cos(u)*b*.015,S=Math.sin(u)*b*.015,y=((e,t,n,a=5)=>{if("number"!=typeof e||"number"!=typeof t||"number"!=typeof n||"number"!=typeof a||isNaN(e)||isNaN(t)||isNaN(n)||isNaN(a))return 0;const r=Math.max(1,Math.min(8,Math.floor(a)));let i=0,o=1,s=1;for(let l=0;r>l;l++)i+=Math.abs(Qi(e*s+n,t*s-n))*o,s*=2,o*=.5;return i})(6*n,6*a,r,6),E=.012*Math.cos(y*Math.PI*2),A=.012*Math.sin(y*Math.PI*2),x=((e,t,n)=>"number"!=typeof e||"number"!=typeof t||"number"!=typeof n||isNaN(e)||isNaN(t)||isNaN(n)?.5:.5*(.7*Xi(40*e+.3*n,40*t-.3*n,6)+.3*Xi(80*e,80*t,4)))(n,a,r),N=.008*(x-.5),T=.008*(x-.5),_=Hi(n,a),C=.35*Math.pow(Math.min(_,1),1.8)*(1+l*s*.8),L=Math.cos(u)*C,I=Math.sin(u)*C,w=Math.atan2(a-o,n-i),O=Hi(n-i,a-o),R=l*Math.sin(10*O-3*r)*.025,k=Math.cos(w+2*r)*R,M=Math.sin(w+2*r)*R,D=Math.sin(10*n+5*i+2.5*r)*Math.cos(8*a-2*r)*.018,P=Math.cos(8*n-2*r)*Math.sin(10*a+5*o+2.5*r)*.018,B=(.012*Math.sin(15*Math.min(_,10)-4*r)+.008*Math.cos(20*Math.min(_,10)+3*r))*l,z=Math.cos(u)*B,U=Math.sin(u)*B,F=$i(n,a,.44,.34,.39),G=Vi(.92,-.12,F),V=Vi(.85,.1,F),H=a+(1.2*I+.8*p+1.5*f+.9*S+1*A+.6*T+1.3*M+1.1*P+.7*U+.8*d)*G*V*.85;return Yi(Wi(n+(1.2*L+.8*m+1.5*g+.9*v+1*E+.6*N+1.3*k+1.1*D+.7*z+d)*G*V*.85+.5,0,1),Wi(H+.5,0,1))},plasma:(e,t)=>Ji.premiumGlass(e,t),waves:(e,t)=>Ji.liquidMetal(e,t),noise:(e,t)=>Ji.appleFluid(e,t)};var eo=Object.freeze({__proto__:null,ShaderDisplacementGenerator:class{constructor(e){if(this.options=e,this.canvasDPI=1,!this.validateOptions(e))throw Error("Invalid shader options provided");this.canvas=document.createElement("canvas"),this.canvas.width=Math.max(1,Math.min(Gi,Math.round(e.width*this.canvasDPI||256))),this.canvas.height=Math.max(1,Math.min(Gi,Math.round(e.height*this.canvasDPI||256))),this.canvas.style.display="none";const t=this.canvas.getContext("2d");if(!t)throw Error("AtomixGlass: Could not get 2D canvas context");this.context=t}validateOptions(e){try{return e&&"number"==typeof e.width&&e.width>0&&e.width<=Gi&&"number"==typeof e.height&&e.height>0&&e.height<=Gi&&"function"==typeof e.fragment}catch(t){return!1}}updateShader(e){try{const t=this.options.width*this.canvasDPI,n=this.options.height*this.canvasDPI;let a=0;const r=[];for(let l=0;n>l;l++)for(let i=0;t>i;i++){const o={x:i/t,y:l/n},s=this.options.fragment(o,e);let c=s.x*t-i,d=s.y*n-l;const u=Math.min(2*Math.min(i/t,(t-i)/t),2*Math.min(l/n,(n-l)/n));c*=Vi(0,.2,u),d*=Vi(0,.2,u),a=Math.max(a,Math.abs(c),Math.abs(d)),r.push(c,d)}a=Math.max(a,1);const i=this.context.createImageData(t,n),o=i.data;let s=0;for(let e=0;n>e;e++)for(let i=0;t>i;i++){const l=r[s++]||0,c=r[s++]||0,d=Math.min(1,Math.min(i,e,t-i-1,n-e-1)/2),u=l*d/a+.5,h=c*d/a+.5,m=4*(e*t+i);o[m]=Wi(255*u,0,255),o[m+1]=Wi(255*h,0,255),o[m+2]=Wi(255*h,0,255),o[m+3]=255}return this.context.putImageData(i,0,0),this.canvas.toDataURL()}catch(t){return""}}destroy(){try{this.context&&this.context.clearRect(0,0,this.canvas.width,this.canvas.height),this.canvas.width=0,this.canvas.height=0,this.canvas.remove()}catch(e){}}getScale(){return this.canvasDPI}},createFBMEngine:ni,fragmentShaders:Ji,liquidGlassWithTime:ri});const to={xs:16,sm:20,md:24,lg:32,xl:40},no=({name:t,size:n="md",weight:a="regular",color:r,className:i="",style:o,alt:s})=>{const l=S[t];return l?e("span",{className:`c-icon c-icon--${n} ${i}`,style:o,"aria-hidden":!s,title:s,children:e(l,{size:"string"==typeof n?to[n]||24:n,weight:a,color:r,"aria-label":s})}):null};no.displayName="Icon";const ao=l((({src:t,alt:n="User avatar",initials:a,icon:i,size:o="md",circle:s=!1,className:l="",disabled:c=!1,onClick:d,style:u,glass:h})=>{const[m,p]=r(!1),g=[yr.CLASSES.BASE,"md"!==o&&"c-avatar--"+o,s&&yr.CLASSES.CIRCLE,c&&"is-disabled",l].filter(Boolean).join(" ");return e("div",{className:g,onClick:d?e=>{!c&&d&&d(e)}:void 0,role:d?"button":void 0,tabIndex:d&&!c?0:void 0,"aria-disabled":c||void 0,style:u,children:t&&!m?e("img",{src:t,alt:n,className:"c-avatar__image",onError:()=>{p(!0)}}):e("span",a?{className:"c-avatar__initials",children:a}:i?{className:"c-avatar__icon",children:i}:{className:"c-avatar__icon",children:e(no,{name:"User",size:"xs"===o?"xs":"sm"===o?"sm":"md"})})})}));ao.displayName="Avatar";const ro=({children:n,max:a,stacked:r=!1,className:i="",style:o,moreText:s})=>{const l=[Er.CLASSES.BASE,r&&Er.CLASSES.STACKED,i].filter(Boolean).join(" "),c=h.toArray(n).filter((e=>m(e)&&e.type===ao)),d=void 0!==a&&c.length>a,u=d?c.slice(0,a):c,g=c.length-(a||0),f=m(c[0])?c[0].props:null,b=f?.size||"md",v=f?.circle||!1,S=[yr.CLASSES.BASE,Er.CLASSES.MORE,"md"!==b&&"c-avatar--"+b,v&&"c-avatar--circle"].filter(Boolean).join(" ");return t("div",{className:l,style:o,children:[u.map(((e,t)=>m(e)?p(e,{key:t,...e.props}):null)),d&&e("div",{className:S,children:s||"+"+g})]})};function io(e){const t={variant:"primary",size:"md",disabled:!1,...e};return{defaultProps:t,generateBadgeClass:e=>{const{variant:n=t.variant,size:a=t.size,disabled:r=t.disabled,className:i=""}=e;return`${Va.BASE_CLASS} ${n?`${Va.VARIANT_PREFIX}${n}`:""} ${"md"===a?"":`${Va.SIZE_PREFIX}${a}`} ${r?"c-badge--disabled":""} ${i}`.trim()}}}ro.displayName="AvatarGroup";const oo=l((({label:n,variant:a="primary",size:r="md",disabled:o=!1,icon:s,onRemove:l,"aria-label":c,className:d="",glass:u,style:h})=>{const{generateBadgeClass:m}=io({variant:a,size:r,disabled:o}),p=i(null),g=m({variant:a,size:r,disabled:o,className:`${d} ${u?"c-badge--glass":""}`.trim()}),f=t("span",{className:g,"aria-disabled":o,"aria-label":c,ref:p,style:h,children:[s&&e("span",{className:Va.ICON_CLASS,children:s}),e("span",{children:n}),l&&e("button",{type:"button",className:"c-badge__close",onClick:l,"aria-label":"Remove badge",disabled:o,children:"×"})]});if(u){const t={displacementScale:20,borderRadius:p.current?.getBoundingClientRect().width?p.current?.getBoundingClientRect().width/2:16,className:"c-badge--glass",elasticity:0},n=!0===u?t:{...t,...u};return e(Ri,{...n,children:f})}return f}));oo.displayName="Badge";const so=c((({children:t,className:n="",type:a,...r},i)=>{let o="o-container";return a&&(o="o-container-"+a),e("div",{ref:i,className:`${o} ${n}`.trim(),...r,children:t})}));so.displayName="Container";const lo=()=>({generateBlockClass:({spacing:e=kr.SPACING.DEFAULT,background:t="",fullWidth:n=!1,className:a=""})=>{const r=[kr.BASE_CLASS];if(e&&"none"!==e&&r.push(`${kr.SPACING_PREFIX}${e}`),t){const e=kr.CLASSES["BG_"+t.toUpperCase()];e&&r.push(e)}return n&&r.push(kr.CLASSES.FULL_WIDTH),a&&r.push(a),r.filter(Boolean).join(" ")}}),co=c((({children:t,as:n="section",spacing:a="md",container:r={},fullWidth:i=!1,className:o="",style:s,background:l="",...c},d)=>{const{generateBlockClass:u}=lo(),h=u({spacing:a,background:l,fullWidth:i,className:o});return e(n,{ref:d,className:h,style:s,...c,children:i?t:e(so,{type:r.type,className:r.className,children:t})})}));co.displayName="Block";const uo=c((({children:a,href:r,active:i,icon:o,onClick:s,className:l="",style:c,linkAs:d,linkProps:u={},...h},m)=>{const p=[Ya.CLASSES.ITEM,i?Ya.CLASSES.ACTIVE:"",l].filter(Boolean).join(" "),g=t(n,{children:[o&&e("span",{className:"c-breadcrumb__icon",children:o}),a]}),f={className:Ya.CLASSES.LINK,onClick:s,style:c,...u};return e("li",{ref:m,className:p,style:c,...h,children:r&&!i?d&&d?e(d,{href:r,to:r,...f,children:g}):e("a",{href:r,...f,children:g}):e("span",{className:Ya.CLASSES.LINK,children:g})})}));uo.displayName="BreadcrumbItem";const ho=l((function({items:t,divider:n,className:a="","aria-label":r="Breadcrumb",linkComponent:i,style:o,children:s}){const l=[Ya.CLASSES.BASE,a].filter(Boolean).join(" ");let c;if(t&&t.length>0)c=t.map(((n,a)=>{const r=a===t.length-1;return e(uo,{href:n.href,active:n.active||r,icon:n.icon,onClick:n.onClick,className:n.className,style:n.style,linkAs:i,children:n.label},a)}));else{const e=h.count(s);c=h.map(s,((t,n)=>{if(m(t)){const a=n===e-1,{active:r,linkAs:o,...s}=t.props;return p(t,{active:r??(!!a||void 0),linkAs:o??i})}return t}))}return e("nav",{"aria-label":r,style:o,children:e("ol",{className:l,children:c})})}));function mo(e){const t={variant:"primary",size:"md",fullscreen:!1,...e};return{defaultProps:t,generateSpinnerClass:e=>{const{variant:n=t.variant,size:a=t.size,fullscreen:r=t.fullscreen,className:i=""}=e,o="c-spinner";return`${o} ${n?`${o}--${n}`:""} ${"md"!==a?`${o}--${a}`:""} ${r?o+"--fullscreen":""} ${i}`.trim()}}}ho.displayName="Breadcrumb",ho.Item=uo;const po=l(c((({size:t="md",variant:n="primary",fullscreen:a=!1,className:r="",style:i,glass:o,"aria-label":s,role:l="status","aria-live":c="polite","aria-describe":d,...u},h)=>{const{generateSpinnerClass:m}=mo({size:t,variant:n,fullscreen:a}),p=m({size:t,variant:n,fullscreen:a,className:`${r} ${o?"c-spinner--glass":""}`.trim()}),g=e("div",{ref:h,className:p,style:i,role:l,"aria-label":s||"Loading","aria-live":c,"aria-describe":d,...u,children:e("span",{className:er.VISUALLY_HIDDEN,children:s||"Loading content..."})});if(o){const t={displacementScale:20,blurAmount:1,borderRadius:999,mode:"shader"},n=!0===o?t:{...t,...o};return e(Ri,{...n,children:g})}return g})));po.displayName="Spinner";class go{static setPrefix(e){this.prefix=e}static getPrefix(){return this.prefix}static camelToKebab(e){return e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}static kebabToCamel(e){return e.replace(/-([a-z])/g,(e=>e[1]?.toUpperCase()??""))}static cssVar(e){return`--${this.prefix}-${this.camelToKebab(e)}`}static bemClass(e,t,n){let a="c-"+e;return t&&(a+="__"+t),n&&(a+="--"+n),a}static variantClass(e,t){return`c-${e}--${t}`}static sizeClass(e,t){return`c-${e}--${t}`}static stateClass(e,t){return`c-${e}--${t}`}static utilityClass(e){return"u-"+e}static layoutClass(e){return"l-"+e}static objectClass(e){return"o-"+e}}go.prefix="atomix";var fo=at,bo=St,vo=ye,So=Jn,yo=TypeError,Eo="Reduce of empty array with no initial value",Ao=function(e){return function(t,n,a,r){var i=bo(t),o=vo(i),s=So(i);if(fo(n),0===s&&2>a)throw new yo(Eo);var l=e?s-1:0,c=e?-1:1;if(2>a)for(;;){if(l in o){r=o[l],l+=c;break}if(l+=c,e?0>l:l>=s)throw new yo(Eo)}for(;e?l>=0:s>l;l+=c)l in o&&(r=n(r,o[l],l,i));return r}},xo={left:Ao(!1),right:Ao(!0)},No=M,To=H,_o=Be,Co=Z,Lo=function(e){return _o.slice(0,e.length)===e},Io=Lo("Bun/")?"BUN":Lo("Cloudflare-Workers")?"CLOUDFLARE":Lo("Deno/")?"DENO":Lo("Node.js/")?"NODE":To.Bun&&"string"==typeof Bun.version?"BUN":To.Deno&&"object"==typeof Deno.version?"DENO":"process"===Co(To.process)?"NODE":To.window&&To.document?"BROWSER":"REST",wo=xo.left;Hn({target:"Array",proto:!0,forced:!("NODE"===Io)&&$e>79&&83>$e||!function(){var e=[].reduce;return!!e&&No((function(){e.call(null,(function(){return 1}),1)}))}()},{reduce:function(e){var t=arguments.length;return wo(this,e,t,t>1?arguments[1]:void 0)}});var Oo=oa("Array","reduce"),Ro=G,ko=Oo,Mo=Array.prototype,Do=k((function(e){var t=e.reduce;return e===Mo||Ro(Mo,e)&&t===Mo.reduce?ko:t}));function Po(t,n,r){if(!t)return r;if(a.isValidElement(t)||"string"==typeof t||"number"==typeof t)return t;if("object"==typeof t&&null!==t){const a=t;if(a.render&&"function"==typeof a.render)return a.render(n);if(a.component){const t=a.component;return e(t,{...n})}if(void 0!==a.children)return a.children}return r}function Bo(e){return"object"==typeof e&&null!==e&&("render"in e||"component"in e||"children"in e)}function zo(...e){const t=e.filter((e=>void 0!==e));if(0!==t.length)return 1===t.length?t[0]:Do(t).call(t,((e,t)=>({...e,...t})))}function Uo(t="div"){return function({slot:a,children:r,...i}){const o=i;return a?e(n,{children:Po(a,o,r)}):e(t,"string"==typeof t?{...i,children:r}:{...o,children:r})}}function Fo(e){return e}function Go(e,t,n){return a.useMemo((()=>Po(e,t,n)),[e,t,n])}const Vo=a.memo(c((({label:a,children:r,onClick:i,variant:s="primary",size:l="md",disabled:c=!1,loading:d=!1,loadingText:u,icon:h,iconName:m,iconSize:p="sm",iconPosition:g="start",iconOnly:f=!1,rounded:b=!1,fullWidth:v=!1,block:S=!1,active:y=!1,selected:E=!1,type:A="button",className:x="",as:N="button",href:T,target:_,glass:C,onHover:L,onFocus:I,onBlur:w,"aria-label":O,"aria-describedby":R,"aria-expanded":k,"aria-controls":M,tabIndex:D,style:P,linkComponent:B,slots:z,...U},F)=>{const G=c||d,V=!!T,H=m?e(no,{name:m,size:p}):h,$=[za.BASE_CLASS,go.variantClass(Pa.BUTTON_PREFIX,s),"md"!==l?go.sizeClass(Pa.BUTTON_PREFIX,l):"",f?go.stateClass(Pa.BUTTON_PREFIX,Pa.ICON_ELEMENT):"",b?go.stateClass(Pa.BUTTON_PREFIX,"rounded"):"",G?go.stateClass(Pa.BUTTON_PREFIX,"disabled"):"",C?go.stateClass(Pa.BUTTON_PREFIX,"glass"):"",d?za.CLASSES.LOADING:"",v?za.CLASSES.FULL_WIDTH:"",S?za.CLASSES.BLOCK:"",y?za.CLASSES.ACTIVE:"",E?za.CLASSES.SELECTED:"",x].filter(Boolean).join(" "),Y=o((e=>{G?e.preventDefault():i?.(e)}),[G,i]),K=o((e=>{G||L?.(e)}),[G,L]),W=o((e=>{G||I?.(e)}),[G,I]),j=o((e=>{G||w?.(e)}),[G,w]),q=d&&u?u:a||r,Q="sm"===l?"sm":"lg"===l?"md":"sm",X=O||(f?"string"==typeof a?a:"string"==typeof r?r:void 0:void 0),Z=t(n,{children:[d&&e("span",{className:go.bemClass(Pa.BUTTON_PREFIX,Pa.SPINNER_ELEMENT),"aria-hidden":"true",children:Po(z?.spinner,{className:go.bemClass(Pa.BUTTON_PREFIX,Pa.SPINNER_ELEMENT),size:Q,variant:"link"===s||"string"==typeof s&&s.startsWith("outline-")?"primary":"danger"===s?"error":s},e(po,{size:Q,variant:"link"===s||"string"==typeof s&&s.startsWith("outline-")?"primary":"danger"===s?"error":s}))}),H&&!d&&e("span",{className:go.bemClass(Pa.BUTTON_PREFIX,Pa.ICON_ELEMENT),"aria-hidden":"true",children:Po(z?.icon,{className:go.bemClass(Pa.BUTTON_PREFIX,Pa.ICON_ELEMENT),children:H,size:p},H)}),!f&&q&&e("span",{className:go.bemClass(Pa.BUTTON_PREFIX,Pa.LABEL_ELEMENT),children:Po(z?.label,{className:go.bemClass(Pa.BUTTON_PREFIX,Pa.LABEL_ELEMENT),children:q},q)})]}),J={className:$,onClick:Y,onMouseEnter:L?K:void 0,onFocus:I?W:void 0,onBlur:w?j:void 0,"aria-disabled":G,"aria-busy":d,"aria-label":X,"aria-describedby":R,"aria-expanded":k,"aria-controls":M,tabIndex:void 0!==D?D:G?-1:0,style:P,...U},ee=Po(z?.root,{className:$,children:Z,disabled:G,loading:d,onClick:Y,type:A,"aria-label":X,"aria-disabled":G,"aria-busy":d},(()=>{if(V){if(B){const t=B,n={...J,ref:F,href:G?void 0:T,to:G?void 0:T,target:_,rel:"_blank"===_?"noopener noreferrer":void 0};return e(t,{...n,children:Z})}return e("a",{...J,ref:F,href:G?void 0:T,target:_,rel:"_blank"===_?"noopener noreferrer":void 0,children:Z})}return e(N,{...J,ref:F,type:"button"===N?A:void 0,disabled:G,children:Z})})());if(C){const t={displacementScale:20,blurAmount:0,saturation:200,elasticity:0},n=!0===C?t:{...t,...C};return e(Ri,{...n,children:ee})}return ee})));Vo.displayName="Button";const Ho=({children:t,className:n="",style:a,"aria-label":r,role:i="group"})=>{const o=[Ua.CLASSES.BASE,n].filter(Boolean).join(" "),s=h.toArray(t).filter((e=>m(e)&&e.type===Vo));return e("div",{className:o,style:a,role:i,"aria-label":r,children:s.map(((e,t)=>m(e)?p(e,{key:t,...e.props}):null))})};Ho.displayName="ButtonGroup";const $o=c((({children:t,className:n="",...a},r)=>e("div",{ref:r,className:("c-callout__icon "+n).trim(),...a,children:t})));$o.displayName="CalloutIcon";const Yo=c((({children:t,className:n="",...a},r)=>e("div",{ref:r,className:("c-callout__message "+n).trim(),...a,children:t})));Yo.displayName="CalloutMessage";const Ko=c((({children:t,className:n="",...a},r)=>e("div",{ref:r,className:("c-callout__title "+n).trim(),...a,children:t})));Ko.displayName="CalloutTitle";const Wo=c((({children:t,className:n="",...a},r)=>e("div",{ref:r,className:("c-callout__text "+n).trim(),...a,children:t})));Wo.displayName="CalloutText";const jo=c((({children:t,className:n="",...a},r)=>e("div",{ref:r,className:("c-callout__actions "+n).trim(),...a,children:t})));jo.displayName="CalloutActions";const qo=c((({onClick:t,className:n="",...a},r)=>e("button",{ref:r,className:("c-callout__close-btn "+n).trim(),onClick:t,"aria-label":"Close",...a,children:e(no,{name:"X",size:"md"})})));qo.displayName="CalloutCloseButton";const Qo=c((({children:t,className:n="",...a},r)=>e("div",{ref:r,className:("c-callout__content "+n).trim(),...a,children:t})));Qo.displayName="CalloutContent";const Xo=l((({title:r,children:i,icon:o,variant:s="primary",onClose:l,actions:c,compact:d=!1,isToast:u=!1,glass:h,className:m,style:p,...g})=>{const{generateCalloutClass:f,handleClose:b}=function(e){const t={variant:"primary",compact:!1,isToast:!1,glass:!1,...e};return{defaultProps:t,generateCalloutClass:e=>{const{variant:n=t.variant,compact:a=t.compact,isToast:r=t.isToast,glass:i=t.glass,className:o=""}=e;return`c-callout ${n?"c-callout--"+n:""} ${a?"c-callout--compact":""} ${r?"c-callout--toast":""} ${i?"c-callout--glass":""} ${o}`.trim()},handleClose:e=>()=>{e&&e()}}}({variant:s,compact:d,isToast:u,glass:h,className:m,style:p}),v=()=>{var e,t;const n={role:"region"};return u?(n.role="alert",n["aria-live"]="polite"):Ra(e=["warning","error"]).call(e,s)?(n.role="alert",n["aria-live"]="assertive"):Ra(t=["info","success"]).call(t,s)&&(n.role="status",n["aria-live"]="polite"),n},S=a.Children.toArray(i).some((e=>{var t;return a.isValidElement(e)&&Ra(t=["CalloutIcon","CalloutMessage","CalloutTitle","CalloutText","CalloutActions","CalloutContent"]).call(t,e.type.displayName||"")}))?i:t(n,{children:[t("div",{className:"c-callout__content",children:[o&&e("div",{className:"c-callout__icon",children:o}),t("div",{className:"c-callout__message",children:[r&&e("div",{className:"c-callout__title",children:r}),i&&e("div",{className:"c-callout__text",children:i})]})]}),c&&e("div",{className:"c-callout__actions",children:c}),l&&e("button",{className:"c-callout__close-btn",onClick:b(l),"aria-label":"Close",children:e(no,{name:"X",size:"md"})})]});if(h){const t={displacementScale:30,borderRadius:8,elasticity:0},n=!0===h?t:{...t,...h};return e("div",{className:f({variant:s,compact:d,isToast:u,glass:h,className:m}),...v(),...g,style:p,children:e(Ri,{...n,children:e("div",{className:"c-callout__glass-content",style:{borderRadius:n.borderRadius},children:S})})})}return e("div",{className:f({variant:s,compact:d,isToast:u,glass:h,className:m}),...v(),...g,style:p,children:S})}));Xo.displayName="Callout",Xo.Icon=$o,Xo.Message=Yo,Xo.Title=Ko,Xo.Text=Wo,Xo.Actions=jo,Xo.CloseButton=qo,Xo.Content=Qo;const Zo=c((({title:n,subtitle:a,action:r,icon:i,children:o,className:s="",...l},c)=>{const d=`${br.SELECTORS.HEADER.substring(1)} ${s}`.trim();return t("div",{ref:c,className:d,...l,children:[i&&e("div",{className:br.SELECTORS.ICON.substring(1),children:i}),(n||a)&&t("div",{children:[n&&e("h3",{className:br.SELECTORS.TITLE.substring(1),children:n}),a&&e("p",{className:br.SELECTORS.TEXT.substring(1),children:a})]}),r&&e("div",{className:br.SELECTORS.ACTIONS.substring(1),children:r}),o]})}));Zo.displayName="CardHeader";const Jo=c((({scrollable:t=!1,maxHeight:n,children:a,className:r="",style:i,...o},s)=>{const l=`${br.SELECTORS.BODY.substring(1)} ${t?"c-card__body--scrollable":""} ${r}`.trim(),c={...i,...t&&n?{maxHeight:"number"==typeof n?n+"px":n,overflowY:"auto"}:{}};return e("div",{ref:s,className:l,style:c,...o,children:a})}));Jo.displayName="CardBody";const es=c((({align:t,children:n,className:a="",style:r,...i},o)=>{const s=`${br.SELECTORS.FOOTER.substring(1)} ${t?"c-card__footer--align-"+t:""} ${a}`.trim();return e("div",{ref:o,className:s,style:r,...i,children:n})}));es.displayName="CardFooter";const ts=a.memo(c((({size:a="md",variant:r="",appearance:i="filled",elevation:s="none",hoverable:l=!1,hoverElevation:c="md",row:d=!1,flat:h=!1,active:m=!1,disabled:p=!1,loading:g=!1,selected:f=!1,interactive:b=!1,header:v,image:S,imageAlt:y="Card image",title:E,text:A,actions:x,icon:N,footer:T,children:_,onClick:C,onHover:L,onFocus:I,href:w,target:O,linkComponent:R,glass:k,role:M,"aria-label":D,"aria-describedby":P,tabIndex:B,className:z="",style:U,...F},G)=>{const V=!!(C||w||b),H=p||g,$=u((()=>[br.CLASSES.BASE,"sm"===a?br.CLASSES.SM:"","md"===a?br.CLASSES.MD:"","lg"===a?br.CLASSES.LG:"",r?"c-card--"+r:"","filled"===i?br.CLASSES.FILLED:"","outlined"===i?br.CLASSES.OUTLINED:"","ghost"===i?br.CLASSES.GHOST:"","elevated"===i?br.CLASSES.ELEVATED:"","none"===s?br.CLASSES.ELEVATION_NONE:"","sm"===s?br.CLASSES.ELEVATION_SM:"","md"===s?br.CLASSES.ELEVATION_MD:"","lg"===s?br.CLASSES.ELEVATION_LG:"","xl"===s?br.CLASSES.ELEVATION_XL:"",l?"c-card--hoverable":"",l&&c?"c-card--hover-elevation-"+c:"",d?br.CLASSES.ROW:"",h?br.CLASSES.FLAT:"",m?br.CLASSES.ACTIVE:"",p?br.CLASSES.DISABLED:"",g?br.CLASSES.LOADING:"",f?br.CLASSES.SELECTED:"",b||V?br.CLASSES.INTERACTIVE:"",k?br.CLASSES.GLASS:"",z].filter(Boolean).join(" ")),[a,r,i,s,l,c,d,h,m,p,g,f,b,V,k,z]),Y=u((()=>M||(w?"link":V?"button":"article")),[M,w,V]),K=o((e=>{H?e.preventDefault():C?.(e)}),[H,C]),W=o((e=>{H?e.preventDefault():!V||"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),C&&C(e))}),[H,V,C]),j=o((e=>{H||L?.(e)}),[H,L]),q=o((e=>{H||I?.(e)}),[H,I]),Q=u((()=>void 0!==B?B:H?-1:V?0:void 0),[B,H,V]),X=u((()=>t(n,{children:[g&&e("div",{className:"c-card__loading","aria-label":"Loading",children:e("div",{className:"c-card__spinner"})}),(S||N||v)&&t("div",{className:br.SELECTORS.HEADER.substring(1),children:[v,S&&e("img",{src:S,alt:y,className:br.SELECTORS.IMAGE.substring(1),loading:"lazy"}),N&&e("div",{className:br.SELECTORS.ICON.substring(1),children:N})]}),t("div",{className:br.SELECTORS.BODY.substring(1),children:[E&&e("h3",{className:br.SELECTORS.TITLE.substring(1),children:E}),A&&e("p",{className:br.SELECTORS.TEXT.substring(1),children:A}),_]}),x&&e("div",{className:br.SELECTORS.ACTIONS.substring(1),children:x}),T&&e("div",{className:br.SELECTORS.FOOTER.substring(1),children:T})]})),[g,S,y,N,v,E,A,_,x,T]),Z={className:$,style:U,role:Y,"aria-label":D,"aria-describedby":P,"aria-disabled":!!H||void 0,tabIndex:Q,onClick:V?K:void 0,onKeyDown:V?W:void 0,onMouseEnter:L?j:void 0,onFocus:I?q:void 0,...F};if(w&&!H){let t;return t=R?e(R,{...Z,ref:G,href:w,to:w,target:O,rel:"_blank"===O?"noopener noreferrer":void 0,children:X}):e("a",{...Z,ref:G,href:w,target:O,rel:"_blank"===O?"noopener noreferrer":void 0,children:X}),k?e(Ri,{...!0===k?{}:k,elasticity:0,children:t}):t}const J=e("div",{...Z,ref:G,children:X});return k?e(Ri,{...!0===k?{}:k,elasticity:0,children:J}):J})));ts.displayName="Card";const ns=ts;ns.Header=Zo,ns.Body=Jo,ns.Footer=es;const as=ns,rs=({elevationClass:t="is-elevated",className:n="",style:a,children:s,onClick:l,...c})=>{const{getCardProps:d}=((e={})=>{const{elevationEffect:t=!1,elevationClass:n=br.CLASSES.ACTIVE,flipEffect:a=!1,flipTrigger:s="click",focusEffect:l=!1,clickable:c=!1,onClick:d}=e,u=i(null),h=i(null),m=i(null),[p,g]=r(!1),[f,b]=r(!1),[v,S]=r(!1),[y,E]=r(!1),A=o((e=>{a&&"click"===s&&g((e=>!e)),d&&d(e)}),[a,s,d]),x=o((e=>{"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),a&&"click"===s&&g((e=>!e)),d&&d(e))}),[a,s,d]),N=o((()=>{E(!0),t&&b(!0),a&&"hover"===s&&g(!0)}),[t,a,s]),T=o((()=>{E(!1),t&&b(!1),a&&"hover"===s&&g(!1)}),[t,a,s]),_=o((()=>{S(!0)}),[]),C=o((()=>{S(!1)}),[]),L=o((()=>({className:[br.CLASSES.BASE,f?n:"",p?br.CLASSES.FLIPPED:"",v&&l?br.CLASSES.FOCUSED:"",c?br.CLASSES.CLICKABLE:""].filter(Boolean).join(" "),ref:u,tabxwIndex:c||a?0:-1,role:c?"button":void 0,onMouseEnter:N,onMouseLeave:T,onFocus:_,onBlur:C,onClick:A,onKeyDown:x})),[f,p,v,n,l,c,N,T,_,C,A,x,a]);return{cardRef:u,frontRef:h,backRef:m,isFlipped:p,isElevated:f,isFocused:v,isHovered:y,handleClick:A,handleKeyDown:x,handleMouseEnter:N,handleMouseLeave:T,handleFocus:_,handleBlur:C,getCardProps:L}})({elevationEffect:!0,elevationClass:t,clickable:!!l,onClick:l,focusEffect:!0}),u=d();return e("div",{className:`${n} ${u.className}`,ref:u.ref,style:a,tabIndex:u.tabIndex,role:u.role,onMouseEnter:u.onMouseEnter,onMouseLeave:u.onMouseLeave,onFocus:u.onFocus,onBlur:u.onBlur,onClick:u.onClick,onKeyDown:u.onKeyDown,children:e(as,{...c,className:"",onClick:void 0,children:s})})};function is(e){const[t,n]=r({hoveredPoint:null,selectedPoints:[],zoomLevel:1,panOffset:{x:0,y:0},panEnabled:!1,isAnimating:!1,isDragging:!1,dragStart:null,crosshair:null,brushSelection:null,focusedPointIndex:0,touchState:{touches:[],lastDistance:0,isPinching:!1,isTouch:!1,lastTouchTime:0},penState:{isPen:!1,pressure:0,tiltX:0,tiltY:0}}),a=i(null);s((()=>{const e=a.current;return()=>{e&&cancelAnimationFrame(e)}}),[]);const l=o(((e,t,a,r,i,o)=>{n((n=>({...n,hoveredPoint:{datasetIndex:e,pointIndex:t,x:a,y:r,clientX:i,clientY:o}})))}),[]),c=o((()=>{n((e=>({...e,hoveredPoint:null})))}),[]),d=o(((e,t)=>{n((n=>{const a=n.selectedPoints.some((n=>n.datasetIndex===e&&n.pointIndex===t));return{...n,selectedPoints:a?n.selectedPoints.filter((n=>!(n.datasetIndex===e&&n.pointIndex===t))):[...n.selectedPoints,{datasetIndex:e,pointIndex:t}]}}))}),[]),u=o(((e,t,a)=>{n((n=>{const r=1-.001*e,i=Math.max(.1,Math.min(10,n.zoomLevel*r)),o=i/n.zoomLevel,s={x:t?t-(t-n.panOffset.x)*o:n.panOffset.x,y:a?a-(a-n.panOffset.y)*o:n.panOffset.y};return{...n,zoomLevel:i,panOffset:s}}))}),[]),h=o(((e,t)=>{n((n=>({...n,panOffset:{x:n.panOffset.x+e,y:n.panOffset.y+t}})))}),[]),m=o(((e,t)=>{n((n=>({...n,isDragging:!0,dragStart:{x:e,y:t}})))}),[]),p=o((()=>{n((e=>({...e,isDragging:!1,dragStart:null})))}),[]),g=o(((e,t)=>{n((n=>({...n,crosshair:{x:e,y:t}})))}),[]),f=o((()=>{n((e=>({...e,crosshair:null})))}),[]),b=o((e=>{const t=Array.from(e.touches).map((e=>({id:e.identifier,x:e.clientX,y:e.clientY})));n((n=>{const a={...n,touchState:{...n.touchState,touches:t,isTouch:!0,lastTouchTime:Date.now()}};if(1===t.length&&t[0]&&n.panEnabled){const n=e.target.getBoundingClientRect(),r=t[0].x-n.left,i=t[0].y-n.top;return{...a,isDragging:!0,dragStart:{x:r,y:i}}}if(2===t.length&&t[0]&&t[1]){const e=Math.sqrt(Math.pow(t[1].x-t[0].x,2)+Math.pow(t[1].y-t[0].y,2));return{...a,touchState:{...a.touchState,lastDistance:e,isPinching:!0},isDragging:!1}}return a}))}),[]),v=o((e=>{e.preventDefault();const t=Array.from(e.touches).map((e=>({id:e.identifier,x:e.clientX,y:e.clientY})));n((n=>{const a=e.target.getBoundingClientRect();if(1===t.length&&t[0]&&n.isDragging&&n.dragStart&&n.panEnabled){const e=t[0].x-a.left,r=t[0].y-a.top,i=n.touchState.touches[0];let o,s;i?(o=e-(i.x-a.left),s=r-(i.y-a.top)):(o=e-n.dragStart.x,s=r-n.dragStart.y);const l=.6,c=o*l,d=s*l;return Math.abs(c)>1||Math.abs(d)>1?{...n,panOffset:{x:n.panOffset.x+c,y:n.panOffset.y+d},touchState:{...n.touchState,touches:t}}:{...n,touchState:{...n.touchState,touches:t}}}if(2===t.length&&t[0]&&t[1]&&n.touchState.isPinching){const e=Math.sqrt(Math.pow(t[1].x-t[0].x,2)+Math.pow(t[1].y-t[0].y,2));if(n.touchState.lastDistance>0){const r=e/n.touchState.lastDistance,i=Math.max(.1,Math.min(10,n.zoomLevel*r)),o=(t[0].x+t[1].x)/2-a.left,s=(t[0].y+t[1].y)/2-a.top,l=i/n.zoomLevel,c={x:o-(o-n.panOffset.x)*l,y:s-(s-n.panOffset.y)*l};return{...n,zoomLevel:i,panOffset:c,touchState:{...n.touchState,touches:t,lastDistance:e}}}return{...n,touchState:{...n.touchState,touches:t,lastDistance:e}}}return{...n,touchState:{...n.touchState,touches:t}}}))}),[]),S=o((e=>{const t=Array.from(e.touches).map((e=>({id:e.identifier,x:e.clientX,y:e.clientY})));n((n=>{if(0===t.length)return{...n,isDragging:!1,dragStart:null,touchState:{...n.touchState,touches:[],isPinching:!1,lastDistance:0,isTouch:!1}};if(1===t.length&&n.panEnabled){const a=e.target.getBoundingClientRect(),r=t[0].x-a.left,i=t[0].y-a.top;return{...n,dragStart:{x:r,y:i},touchState:{...n.touchState,touches:t,isPinching:!1,lastDistance:0}}}if(2===t.length){const e=Math.sqrt(Math.pow(t[1].x-t[0].x,2)+Math.pow(t[1].y-t[0].y,2));return{...n,touchState:{...n.touchState,touches:t,lastDistance:e,isPinching:!0},isDragging:!1}}return{...n,touchState:{...n.touchState,touches:t}}}))}),[]),y=o((e=>{"pen"===e.pointerType&&n((t=>({...t,penState:{...t.penState,isPen:!0,pressure:e.pressure,tiltX:e.tiltX,tiltY:e.tiltY}})))}),[]),E=o((e=>{"pen"===e.pointerType&&n((t=>({...t,penState:{...t.penState,pressure:e.pressure,tiltX:e.tiltX,tiltY:e.tiltY}})))}),[]),A=o((e=>{"pen"===e.pointerType&&n((e=>({...e,penState:{...e.penState,isPen:!1,pressure:0,tiltX:0,tiltY:0}})))}),[]),x=o(((e,t=Or.DEFAULT_WIDTH,n=Or.DEFAULT_HEIGHT,a={top:20,right:20,bottom:30,left:40},r)=>{if(!e||0===e.length)return null;let i=0,o=1/0,s=-1/0,l=!1;for(const h of e)if(h.data){i+=h.data.length;const{min:e,max:t,hasValid:n}=os(h.data);n&&(o>e&&(o=e),t>s&&(s=t),l=!0)}if(0===i)return null;l||(o=0,s=0);const c=s-o||1,d=t-a.left-a.right,u=n-a.top-a.bottom;return{xScale:(e,t=i)=>t>1?a.left+e/(t-1)*d:a.left+d/2,yScale:e=>a.top+u-(e-o)/c*u,minValue:o,maxValue:s,valueRange:c,innerWidth:d,innerHeight:u,width:t,height:n,padding:a}}),[]),N=o((e=>{if(0>=e)return[];const t=[];for(let n=0;e>n;n++){const e=n%Or.DEFAULT_COLORS.length;t.push(Or.DEFAULT_COLORS[e])}return t}),[]),T=i(null);return{interactionState:t,setInteractionState:n,handlePointHover:l,handlePointLeave:c,handlePointClick:d,handleZoom:u,handlePan:h,handleDragStart:m,handleDragEnd:p,handleCrosshair:g,clearCrosshair:f,handleTouchStart:b,handleTouchMove:v,handleTouchEnd:S,handlePointerDown:y,handlePointerMove:E,handlePointerUp:A,calculateScales:x,getChartColors:N,svgRef:T}}function os(e){let t=1/0,n=-1/0,a=!1;if(e&&e.length>0)for(let r=0;r<e.length;r++){const i=e[r];if(i&&"number"==typeof i.value){const e=i.value;t>e&&(t=e),e>n&&(n=e),a=!0}}return{min:t,max:n,hasValid:a}}rs.displayName="ElevationCard";const ss=l(c((({chartType:n="line",groups:a=[],enableDefaults:l=!0,defaults:c={refresh:!0,export:!0,fullscreen:!0,settings:!0,zoom:!0,pan:!0,reset:!0},exportFormats:d=["png","svg","csv"],size:h="md",position:m="top",onRefresh:p,onExport:g,onFullscreen:f,onSettings:b,onZoomIn:v,onZoomOut:S,onZoomReset:y,onPanToggle:E,onReset:A,onGridToggle:x,onLegendToggle:N,onTooltipsToggle:T,onAnimationsToggle:_,state:C={},className:L="",...I},w)=>{const[O,R]=r(!1),[k,M]=r(!1),D=i(null),P=i(null),B=i(null),z=i(null),U=u((()=>a&&a.length>0?{refresh:c.refresh??!0,export:c.export??!0,fullscreen:c.fullscreen??!0,settings:c.settings??!0,zoom:a.some((e=>e.actions.some((e=>"zoom-in"===e.id||"zoom-out"===e.id)))),pan:a.some((e=>e.actions.some((e=>"pan"===e.id)))),reset:a.some((e=>e.actions.some((e=>"reset"===e.id)))),grid:c.grid??!0,legend:c.legend??!0,tooltips:c.tooltips??!0,animations:c.animations??!0}:c),[a,c]);s((()=>{const e=e=>{D.current&&!D.current.contains(e.target)&&B.current&&!B.current.contains(e.target)&&R(!1),P.current&&!P.current.contains(e.target)&&z.current&&!z.current.contains(e.target)&&M(!1)};if(O||k)return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}}),[O,k]),s((()=>{const e=e=>{e.target instanceof HTMLInputElement||e.target instanceof HTMLTextAreaElement||e.target instanceof HTMLElement&&e.target.isContentEditable||((e.ctrlKey||e.metaKey)&&"r"===e.key&&U.refresh&&p&&(e.preventDefault(),p()),(e.ctrlKey||e.metaKey)&&"e"===e.key&&U.export&&g&&(e.preventDefault(),R(!O)),"F11"===e.key&&U.fullscreen&&f&&(e.preventDefault(),f(!C.isFullscreen))," "===e.key&&U.pan&&E&&(e.preventDefault(),E(!C.panEnabled)),"r"!==e.key&&"R"!==e.key||e.ctrlKey||e.metaKey||!U.reset||(e.preventDefault(),y?.(),A?.()),"+"!==e.key&&"="!==e.key||U.zoom&&v&&(e.preventDefault(),v()),"-"!==e.key&&"_"!==e.key||U.zoom&&S&&(e.preventDefault(),S()),"Escape"===e.key&&(R(!1),M(!1)))};return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}}),[U,p,g,f,E,y,A,v,S,C,O]);const F=o((()=>{const e=[];return U.refresh&&p&&e.push({id:"refresh",label:"Refresh",icon:"ArrowClockwise",onClick:p,disabled:C.isRefreshing,tooltip:"Refresh chart data (Ctrl+R)",shortcut:"Ctrl+R"}),U.export&&g&&e.push({id:"export",label:"Export",icon:"Download",onClick:()=>R(!O),disabled:C.isExporting,variant:"primary",tooltip:"Export chart (Ctrl+E)",shortcut:"Ctrl+E"}),[{id:"data-actions",label:"Data",actions:e,separator:!0}]}),[U,p,g,C,O]),G=o((()=>{const e=[];return U.zoom&&(v||S)&&e.push({id:"zoom-in",label:"Zoom In",icon:"MagnifyingGlassPlus",onClick:()=>v?.(),tooltip:"Zoom in (+)",shortcut:"+"},{id:"zoom-out",label:"Zoom Out",icon:"MagnifyingGlassMinus",onClick:()=>S?.(),tooltip:"Zoom out (-)",shortcut:"-"}),U.pan&&E&&e.push({id:"pan",label:"Pan",icon:"ArrowsOutCardinal",onClick:()=>E?.(!C.panEnabled),active:C.panEnabled,tooltip:"Toggle pan mode (Space)",shortcut:"Space"}),U.reset&&(y||A)&&e.push({id:"reset",label:"Reset View",icon:"ArrowCounterClockwise",onClick:()=>{y?.(),A?.()},tooltip:"Reset view (R)",shortcut:"R"}),U.fullscreen&&f&&e.push({id:"fullscreen",label:C.isFullscreen?"Exit Fullscreen":"Fullscreen",icon:C.isFullscreen?"ArrowsIn":"ArrowsOut",onClick:()=>f?.(!C.isFullscreen),variant:"success",tooltip:(C.isFullscreen?"Exit":"Enter")+" fullscreen (F11)",shortcut:"F11"}),e.length>0?[{id:"view-actions",label:"View",actions:e,separator:!0}]:[]}),[U,v,S,E,y,A,f,C]),V=o((()=>{const e=[];return U.grid&&x&&e.push({id:"grid",label:"Grid",icon:"GridFour",onClick:()=>x(!C.showGrid),active:C.showGrid,tooltip:"Toggle grid lines"}),U.legend&&N&&e.push({id:"legend",label:"Legend",icon:"List",onClick:()=>N(!C.showLegend),active:C.showLegend,tooltip:"Toggle legend"}),U.tooltips&&T&&e.push({id:"tooltips",label:"Tooltips",icon:"CursorText",onClick:()=>T(!C.showTooltips),active:C.showTooltips,tooltip:"Toggle tooltips"}),U.animations&&_&&e.push({id:"animations",label:"Animations",icon:"Sparkle",onClick:()=>_(!C.animationsEnabled),active:C.animationsEnabled,tooltip:"Toggle animations"}),e.length>0?[{id:"display-actions",label:"Display",actions:e,separator:!0}]:[]}),[U,x,N,T,_,C]),H=o((()=>{const e=[];return U.settings&&b&&e.push({id:"settings",label:"Settings",icon:"Gear",onClick:()=>M(!k),active:k,tooltip:"Chart settings"}),e.length>0?[{id:"tool-actions",label:"Tools",actions:e}]:[]}),[U,b,k]),$=a&&a.length>0?a:l?[...F(),...G(),...V(),...H()]:[],Y=n=>{const a="export"===n.id?B:"settings"===n.id?z:null;return t("button",{ref:a,className:`${Or.ACTION_CLASS} ${n.variant?`${Or.ACTION_CLASS}--${n.variant}`:""} ${n.active?"is-active":""}`,onClick:()=>{if(n.onClick)n.onClick();else if("export"===n.id&&g)R(!O);else if("settings"===n.id&&b)M(!k);else switch(n.id){case"zoom-in":v?.();break;case"zoom-out":S?.();break;case"pan":E?.(!C.panEnabled);break;case"reset":y?.(),A?.();break;case"fullscreen":f?.(!C.isFullscreen);break;case"refresh":p?.()}},disabled:n.disabled,title:n.tooltip,type:"button","aria-label":n.label,"aria-pressed":n.active?"true":"false","aria-expanded":"export"===n.id?O:"settings"===n.id?k:void 0,children:[e(no,{name:n.icon,size:"sm"}),"lg"===h&&e("span",{className:Or.ACTION_CLASS+"-label",children:n.label})]},n.id)},K=`${Or.TOOLBAR_CLASS} ${Or.TOOLBAR_CLASS}--${h} ${Or.TOOLBAR_CLASS}--${m} ${L}`.trim();return e("div",{ref:w,className:K,...I,children:$.map(((a,r)=>t("div",{className:Or.TOOLBAR_CLASS+"-group",children:[a.separator&&r>0&&e("div",{className:Or.TOOLBAR_CLASS+"-separator"}),a.label&&"lg"===h&&e("span",{className:Or.TOOLBAR_CLASS+"-group-label",children:a.label}),t("div",{className:Or.TOOLBAR_CLASS+"-actions",children:[a.actions.map(Y),a.actions.some((e=>"export"===e.id))&&(O&&g?t("div",{ref:D,className:""+Or.EXPORT_DROPDOWN_CLASS,role:"menu","aria-label":"Export formats",children:[e("div",{className:Or.EXPORT_DROPDOWN_CLASS+"-title",children:"Export Formats"}),d.map((t=>e("button",{className:""+Or.EXPORT_OPTION_CLASS,onClick:()=>{g(t),R(!1)},disabled:C.isExporting,type:"button",role:"menuitem","aria-label":"Export as "+t.toUpperCase(),children:t.toUpperCase()},t)))]}):null),a.actions.some((e=>"settings"===e.id))&&(k?t("div",{ref:P,className:""+Or.SETTINGS_MENU_CLASS,role:"menu","aria-label":"Chart settings",children:[e("div",{className:Or.SETTINGS_MENU_CLASS+"-title",children:"Chart Settings"}),t("div",{className:Or.SETTINGS_MENU_CLASS+"-content",children:[U.grid&&x&&e("div",{className:Or.SETTINGS_MENU_CLASS+"-item",children:t("label",{className:Or.SETTINGS_MENU_CLASS+"-toggle",children:[e("input",{type:"checkbox",checked:C.showGrid??!1,onChange:e=>x(e.target.checked),"aria-label":"Toggle grid lines"}),e("span",{className:Or.SETTINGS_MENU_CLASS+"-label",children:"Show Grid"})]})}),U.legend&&N&&e("div",{className:Or.SETTINGS_MENU_CLASS+"-item",children:t("label",{className:Or.SETTINGS_MENU_CLASS+"-toggle",children:[e("input",{type:"checkbox",checked:C.showLegend??!1,onChange:e=>N(e.target.checked),"aria-label":"Toggle legend"}),e("span",{className:Or.SETTINGS_MENU_CLASS+"-label",children:"Show Legend"})]})}),U.tooltips&&T&&e("div",{className:Or.SETTINGS_MENU_CLASS+"-item",children:t("label",{className:Or.SETTINGS_MENU_CLASS+"-toggle",children:[e("input",{type:"checkbox",checked:C.showTooltips??!1,onChange:e=>T(e.target.checked),"aria-label":"Toggle tooltips"}),e("span",{className:Or.SETTINGS_MENU_CLASS+"-label",children:"Show Tooltips"})]})}),U.animations&&_&&e("div",{className:Or.SETTINGS_MENU_CLASS+"-item",children:t("label",{className:Or.SETTINGS_MENU_CLASS+"-toggle",children:[e("input",{type:"checkbox",checked:C.animationsEnabled??!1,onChange:e=>_(e.target.checked),"aria-label":"Toggle animations"}),e("span",{className:Or.SETTINGS_MENU_CLASS+"-label",children:"Enable Animations"})]})}),void 0!==C.zoomLevel&&t("div",{className:`${Or.SETTINGS_MENU_CLASS}-item ${Or.SETTINGS_MENU_CLASS}-item--info`,children:[e("span",{className:Or.SETTINGS_MENU_CLASS+"-label",children:"Zoom Level"}),t("span",{className:Or.SETTINGS_MENU_CLASS+"-value",children:[Math.round(100*(C.zoomLevel||1)),"%"]})]}),t("div",{className:`${Or.SETTINGS_MENU_CLASS}-item ${Or.SETTINGS_MENU_CLASS}-item--info`,children:[e("span",{className:Or.SETTINGS_MENU_CLASS+"-label",children:"Chart Type"}),e("span",{className:Or.SETTINGS_MENU_CLASS+"-value",children:n})]})]})]}):null)]})]},a.id)))})})));ss.displayName="ChartToolbar";const ls=g(null),cs=l(c((({children:n,type:a="line",size:l="md",variant:c="primary",title:d,subtitle:h,loading:m=!1,error:p,className:g="","aria-label":f,onFullscreen:b,onExport:v,onRefresh:S,showToolbar:y=!1,enableFullscreen:E=!1,enableExport:A=!1,enableRefresh:x=!1,exportFormats:N=["png","svg","csv"],datasets:T,config:_,toolbarConfig:C,customToolbarActions:L,customToolbarGroups:I,data:w,showLegend:O,interactive:R,fullscreen:k,onDataPointClick:M,onLegendItemClick:D,glass:P,...B},z)=>{const[U,F]=r(!1),[G,V]=r(!1),H=i(null),[$,Y]=r(1),[K,W]=r({x:0,y:0}),[j,q]=r(!1),Q=o((e=>{F(e),b?.(e)}),[b]),X=o((()=>{Y((e=>Math.min(1.2*e,5)))}),[]),Z=o((()=>{Y((e=>Math.max(e/1.2,.2)))}),[]),J=o((()=>{Y(1),W({x:0,y:0})}),[]),ee=o((e=>{q(e)}),[]),te=o((()=>{Y(1),W({x:0,y:0}),q(!1)}),[]),ne=u((()=>({onRefresh:S,onExport:v,onFullscreen:Q,onZoomIn:X,onZoomOut:Z,onZoomReset:J,onPanToggle:ee,onReset:te})),[S,v,Q,X,Z,J,ee,te]),{state:ae,handlers:re,toolbarGroups:ie}=function(e,t={},n={}){const[a,i]=r({isFullscreen:!1,isExporting:!1,isRefreshing:!1,zoomLevel:1,panEnabled:!1,showGrid:!0,showLegend:!0,showTooltips:!0,animationsEnabled:!0}),{enableDefaults:l=!0,defaults:c={},exportFormats:d=["png","svg","csv"],customActions:h=[],customGroups:m=[]}=t,p=o((()=>{const t={refresh:!0,export:!0,fullscreen:!0,settings:!0,grid:!0,legend:!0,tooltips:!0,animations:!0,zoom:!1,pan:!1,reset:!1};switch(e){case"interactive":case"advanced":case"line":case"area":case"bar":case"horizontal-bar":case"scatter":case"bubble":case"funnel":case"waterfall":case"candlestick":return{...t,zoom:!0,pan:!0,reset:!0};case"realtime":return{...t,refresh:!0,export:!1,animations:!1};case"pie":case"donut":case"gauge":return{...t,zoom:!1,pan:!1,grid:!1};default:return t}}),[e]),g=u((()=>({...p(),...c})),[p,c]),f=u((()=>({onRefresh:()=>{i((e=>({...e,isRefreshing:!0}))),n.onRefresh?.(),setTimeout((()=>{i((e=>({...e,isRefreshing:!1})))}),1e3)},onExport:async e=>{i((e=>({...e,isExporting:!0})));try{await(n.onExport?.(e))}finally{i((e=>({...e,isExporting:!1})))}},onFullscreen:e=>{i((t=>({...t,isFullscreen:e}))),n.onFullscreen?.(e)},onZoomIn:()=>{i((e=>({...e,zoomLevel:Math.min(1.2*e.zoomLevel,5)}))),n.onZoomIn?.()},onZoomOut:()=>{i((e=>({...e,zoomLevel:Math.max(e.zoomLevel/1.2,.2)}))),n.onZoomOut?.()},onZoomReset:()=>{i((e=>({...e,zoomLevel:1}))),n.onZoomReset?.()},onPanToggle:e=>{i((t=>({...t,panEnabled:e}))),n.onPanToggle?.(e)},onReset:()=>{i((e=>({...e,zoomLevel:1,panEnabled:!1}))),n.onReset?.()},onGridToggle:e=>{i((t=>({...t,showGrid:e}))),n.onGridToggle?.(e)},onLegendToggle:e=>{i((t=>({...t,showLegend:e}))),n.onLegendToggle?.(e)},onTooltipsToggle:e=>{i((t=>({...t,showTooltips:e}))),n.onTooltipsToggle?.(e)},onAnimationsToggle:e=>{i((t=>({...t,animationsEnabled:e}))),n.onAnimationsToggle?.(e)},onSettings:()=>{}})),[n]),b=o((()=>{const e=[],t=[];g.refresh&&t.push({id:"refresh",label:"Refresh",icon:"ArrowClockwise",onClick:f.onRefresh,disabled:a.isRefreshing,tooltip:"Refresh chart data"}),g.export&&t.push({id:"export",label:"Export",icon:"Download",onClick:()=>f.onExport("png"),disabled:a.isExporting,variant:"primary",tooltip:"Export chart"}),t.length>0&&e.push({id:"data-actions",label:"Data",actions:t,separator:!0});const n=[];g.zoom&&n.push({id:"zoom-in",label:"Zoom In",icon:"MagnifyingGlassPlus",onClick:f.onZoomIn,tooltip:"Zoom in"},{id:"zoom-out",label:"Zoom Out",icon:"MagnifyingGlassMinus",onClick:f.onZoomOut,tooltip:"Zoom out"}),g.pan&&n.push({id:"pan",label:"Pan",icon:"ArrowsOutCardinal",onClick:()=>f.onPanToggle(!a.panEnabled),active:a.panEnabled,tooltip:"Toggle pan mode"}),g.reset&&n.push({id:"reset",label:"Reset",icon:"ArrowCounterClockwise",onClick:f.onReset,tooltip:"Reset view"}),g.fullscreen&&n.push({id:"fullscreen",label:a.isFullscreen?"Exit Fullscreen":"Fullscreen",icon:a.isFullscreen?"ArrowsIn":"ArrowsOut",onClick:()=>f.onFullscreen(!a.isFullscreen),variant:"success",tooltip:(a.isFullscreen?"Exit":"Enter")+" fullscreen"}),n.length>0&&e.push({id:"view-actions",label:"View",actions:n,separator:!0});const r=[];if(g.grid&&r.push({id:"grid",label:"Grid",icon:"GridFour",onClick:()=>f.onGridToggle(!a.showGrid),active:a.showGrid,tooltip:"Toggle grid"}),g.legend&&r.push({id:"legend",label:"Legend",icon:"List",onClick:()=>f.onLegendToggle(!a.showLegend),active:a.showLegend,tooltip:"Toggle legend"}),g.tooltips&&r.push({id:"tooltips",label:"Tooltips",icon:"ChatCircle",onClick:()=>f.onTooltipsToggle(!a.showTooltips),active:a.showTooltips,tooltip:"Toggle tooltips"}),g.animations&&r.push({id:"animations",label:"Animations",icon:"Play",onClick:()=>f.onAnimationsToggle(!a.animationsEnabled),active:a.animationsEnabled,tooltip:"Toggle animations"}),r.length>0&&e.push({id:"display-actions",label:"Display",actions:r,separator:!0}),g.settings&&e.push({id:"settings-actions",label:"Settings",actions:[{id:"settings",label:"Settings",icon:"Gear",onClick:f.onSettings,tooltip:"Chart settings"}]}),e.push(...m),h.length>0)if(e.length>0){if(e.length>0){const t=e[e.length-1];t&&t.actions.push(...h)}}else e.push({id:"custom-actions",label:"Custom",actions:h});return e}),[g,a,f,h,m]);return s((()=>{const e=e=>{if(e.ctrlKey||e.metaKey)switch(e.key.toLowerCase()){case"r":g.refresh&&(e.preventDefault(),f.onRefresh());break;case"e":g.export&&(e.preventDefault(),f.onExport("png"));break;case"f":g.fullscreen&&(e.preventDefault(),f.onFullscreen(!a.isFullscreen))}else switch(e.key){case"+":case"=":g.zoom&&(e.preventDefault(),f.onZoomIn());break;case"-":g.zoom&&(e.preventDefault(),f.onZoomOut());break;case"r":g.reset&&(e.preventDefault(),f.onReset());break;case" ":g.pan&&(e.preventDefault(),f.onPanToggle(!a.panEnabled));break;case"F11":g.fullscreen&&(e.preventDefault(),f.onFullscreen(!a.isFullscreen))}};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)}),[g,a,f]),{state:a,setState:i,handlers:f,toolbarGroups:b(),config:{enableDefaults:l,defaults:g,exportFormats:d}}}(a,{enableDefaults:y,defaults:{refresh:x,export:A,fullscreen:E,grid:!0,legend:!0,tooltips:!0,animations:!0,settings:!0},exportFormats:N},ne);is(),s((()=>{Y(ae.zoomLevel)}),[ae.zoomLevel]),s((()=>{q(ae.panEnabled)}),[ae.panEnabled]),s((()=>{ae.zoomLevel}),[$,ae.zoomLevel]);const oe=ds({type:a,size:l,variant:c,loading:m,error:p,className:g,interactive:R,panEnabled:j});s((()=>{F(ae.isFullscreen),V(ae.isExporting)}),[ae.isFullscreen,ae.isExporting]);const se=`${oe}${U?" "+Or.CLASSES.FULLSCREEN:""}${P?" c-chart--glass":""}`,le=u((()=>({displacementScale:25,blurAmount:0,saturation:180,aberrationIntensity:1.5,elasticity:0,withLiquidBlur:!1,withBorder:!0,mode:"standard",mouseContainer:H,reducedMotion:!1})),[]),ce=u((()=>P?!0===P?le:{...le,...P}:null),[P,le]),de=u((()=>ce?.borderRadius||void 0),[ce?.borderRadius]),ue=u((()=>({zoomLevel:$,panOffset:K,panEnabled:j,onZoomIn:X,onZoomOut:Z,onZoomReset:J,onPanToggle:ee,onReset:te,setZoomLevel:Y,setPanOffset:W,setPanEnabled:q,toolbarState:{showTooltips:ae.showTooltips,showLegend:ae.showLegend,animationsEnabled:ae.animationsEnabled,showGrid:ae.showGrid}})),[$,K,j,X,Z,J,ee,te,q,ae.showTooltips,ae.showLegend,ae.animationsEnabled,ae.showGrid]),he=t("div",{ref:H,className:se,"aria-label":f||a+" chart",role:"img",tabIndex:0,...B,children:[(d||h||y)&&t("div",{className:Or.HEADER_CLASS+" u-flex u-justify-between u-items-start u-gap-4",children:[t("div",{className:Or.HEADER_CONTENT_CLASS+" u-flex-1",children:[d&&e("h3",{className:Or.TITLE_CLASS+" u-mb-1",children:d}),h&&e("p",{className:Or.SUBTITLE_CLASS+" u-mb-0",children:h})]}),(()=>{if(!y)return null;const t=!ie||0===ie.length;return e(ss,{chartType:a,groups:ie,defaults:{refresh:x,export:A,fullscreen:E,zoom:void 0!==ae.zoomLevel,pan:void 0!==ae.panEnabled,reset:!0,grid:!0,legend:!0,tooltips:!0,animations:!0,settings:!0},exportFormats:N,state:{isFullscreen:ae.isFullscreen,isExporting:ae.isExporting,isRefreshing:ae.isRefreshing,zoomLevel:$,panEnabled:j,showGrid:ae.showGrid,showLegend:ae.showLegend,showTooltips:ae.showTooltips,animationsEnabled:ae.animationsEnabled},...t?{onRefresh:re.onRefresh,onExport:re.onExport,onFullscreen:re.onFullscreen,onZoomIn:X,onZoomOut:Z,onZoomReset:J,onPanToggle:ee,onReset:te,onSettings:re.onSettings,onGridToggle:re.onGridToggle,onLegendToggle:re.onLegendToggle,onTooltipsToggle:re.onTooltipsToggle,onAnimationsToggle:re.onAnimationsToggle}:{}})})()]}),t("div",{className:Or.CONTENT_CLASS,children:[m&&t("div",{className:Or.LOADING_CLASS,children:[e("div",{className:Or.LOADING_SPINNER_CLASS}),e("span",{className:Or.LOADING_TEXT_CLASS,children:ae.isExporting?"Exporting chart...":ae.isRefreshing?"Refreshing chart...":"Loading chart..."})]}),p&&t("div",{className:Or.ERROR_CLASS,children:[e("div",{className:Or.ERROR_ICON_CLASS,children:"⚠"}),t("div",{className:Or.ERROR_CONTENT_CLASS,children:[e("div",{className:Or.ERROR_MESSAGE_CLASS,children:"Chart Error"}),e("div",{className:Or.ERROR_DETAILS_CLASS,children:p})]})]}),!m&&!p&&!n&&t("div",{className:Or.EMPTY_CLASS,children:[e("div",{className:Or.EMPTY_ICON_CLASS,children:"📊"}),e("div",{className:Or.EMPTY_MESSAGE_CLASS,children:"No data available"}),e("div",{className:Or.EMPTY_DETAILS_CLASS,children:"Add data to your chart to see visualizations"})]}),!m&&!p&&n&&e("div",{className:Or.CANVAS_CLASS,children:n})]})]}),me=ce?e(Ri,{...ce,borderRadius:de,style:{width:"100%",height:"100%",...ce.style},children:he}):he;return e(ls.Provider,{value:ue,children:e("div",{ref:z,style:{width:"100%",height:"100%"},children:me})})}))),ds=({type:e,size:t,variant:n,loading:a,error:r,className:i,interactive:o,panEnabled:s})=>{const l=[Or.ROOT_CLASS];if(e){const t=e.toUpperCase(),n=Or.CLASSES[t]||`${Or.TYPE_PREFIX}${e}`;l.push(n)}if(t){const e=t.toUpperCase(),n=Or.CLASSES[e]||`${Or.SIZE_PREFIX}${t}`;l.push(n)}if(n){const e=n.toUpperCase(),t=Or.CLASSES[e]||`${Or.VARIANT_PREFIX}${n}`;l.push(t)}return(o||s)&&l.push(Or.CLASSES.INTERACTIVE),a&&l.push(Or.LOADING_STATE_CLASS),r&&l.push(Or.ERROR_STATE_CLASS),i&&l.push(i),l.join(" ")};cs.displayName="Chart";const us=l(c((({datasets:a=[],config:l,width:c=Or.DEFAULT_WIDTH,height:d=Or.DEFAULT_HEIGHT,onDataPointClick:h,interactive:m=!0,enableRealTime:p=!1,enableAccessibility:g=!0,enablePerformanceOptimization:b=!0,renderContent:v},S)=>{const y=f(ls),{calculateScales:E,getChartColors:A}=is(),{processedData:x,isProcessing:N}=function(e,t){const[n,a]=r(e),[l,c]=r(!1),{enableDecimation:d=!1,maxDataPoints:u=1e3,enableRealTime:h=!1,realTimeInterval:m=1e3}=t||{},p=i(""),g=o((e=>e.map((e=>`${e.label}:${JSON.stringify(e.data)}`)).join("|")),[]);s((()=>{p.current=g(n)}),[n,g]);const f=o(((e,t)=>{if(!d||!e.length)return e;const n=e[0]?.data?.length||0;if(t>=n)return e;const a=Math.ceil(n/t);return e.map((e=>({...e,data:e.data?.filter(((e,t)=>t%a==0))||[]})))}),[d]),b=o(((e,t)=>{const n=[];for(let r=0;r<e.length;r++)if(t-1>r)n.push(null);else{var a;const i=Do(a=e.slice(r-t+1,r+1)).call(a,((e,t)=>e+t),0);n.push(i/t)}return n}),[]),v=o((e=>{const t=e.length;if(2>t)return e.map((()=>null));let n=0,a=0,r=0,i=0;for(let l=0;t>l;l++){const t=e[l],o="number"==typeof t?t:0;n+=l,a+=o,r+=l*o,i+=l*l}const o=(t*r-n*a)/(t*i-n*n),s=(a-o*n)/t;return e.map(((e,t)=>o*t+s))}),[]);return s((()=>{c(!0),(async()=>{let t=[...e];d&&u&&(t=f(t,u)),a(t),c(!1)})()}),[e,f,d,u]),s((()=>{if(!h)return;const e=setInterval((()=>{a((e=>g(e)===p.current?e:[...e]))}),m);return()=>clearInterval(e)}),[h,m,g]),{processedData:n,isProcessing:l,decimateData:f,calculateMovingAverage:b,calculateTrendLine:v,setProcessedData:a}}(a,{enableRealTime:p,enableDecimation:b,maxDataPoints:1e3}),{isOptimizing:T,memoizedScales:_}=function(e,t){const{enableVirtualization:n=!1,enableMemoization:a=!0,debounceMs:l=100}=t||{},[c,d]=r(!1),h=i(null),m=u((()=>a?e.map((e=>{const{min:t,max:n,hasValid:a}=os(e.data);return{label:e.label,dataLength:e.data?.length||0,minValue:a?t:0,maxValue:a?n:0}})):null),[e,a]),p=o((e=>{h.current&&clearTimeout(h.current),h.current=setTimeout((()=>{e(),d(!1)}),l),d(!0)}),[l]),g=o(((t,a,r)=>{if(!n)return{start:0,end:e[0]?.data?.length||0};const i=Math.floor(t/a),o=Math.min(i+Math.ceil(r/a)+1,e[0]?.data?.length||0);return{start:Math.max(0,i-1),end:o}}),[n,e]);return s((()=>()=>{h.current&&clearTimeout(h.current)}),[]),{isOptimizing:c,memoizedScales:m,debouncedUpdate:p,getVisibleRange:g}}(x,{enableVirtualization:!1,enableMemoization:b,debounceMs:100}),{announcement:C,focusedPoint:L}=function(e,t){const{enableKeyboardNavigation:n=!0,enableScreenReader:a=!0,announceDataChanges:i=!0}=t||{},[l,c]=r({datasetIndex:0,pointIndex:0}),[d,u]=r(""),h=o(((t,a)=>{if(!n||!e.length)return;const r=e.length-1,i=(e[l.datasetIndex]?.data?.length||1)-1;switch(t.key){case"ArrowLeft":t.preventDefault(),c((e=>({...e,pointIndex:Math.max(0,e.pointIndex-1)})));break;case"ArrowRight":t.preventDefault(),c((e=>({...e,pointIndex:Math.min(i,e.pointIndex+1)})));break;case"ArrowUp":t.preventDefault(),c((e=>({...e,datasetIndex:Math.max(0,e.datasetIndex-1)})));break;case"ArrowDown":t.preventDefault(),c((e=>({...e,datasetIndex:Math.min(r,e.datasetIndex+1)})));break;case"Home":t.preventDefault(),c((e=>({...e,pointIndex:0})));break;case"End":t.preventDefault(),c((e=>({...e,pointIndex:i})));break;case"Enter":case" ":t.preventDefault(),a?.(l.datasetIndex,l.pointIndex)}}),[n,e,l]),m=o((e=>{a&&(u(e),setTimeout((()=>u("")),1e3))}),[a]);s((()=>{if(!i||!e.length)return;const t=Do(e).call(e,((e,t)=>e+(t.data?.length||0)),0);m(`Chart updated with ${e.length} datasets and ${t} data points`)}),[e,i,m]);const p=o((()=>{if(!e.length)return"Empty chart";const t=e.map(((e,t)=>{const n=e.data?.length||0,{min:a,max:r,hasValid:i}=os(e.data),o=i?a:0,s=i?r:0;return`Dataset ${t+1}: ${e.label}, ${n} points, range ${o} to ${s}`})).join(". ");return`Chart with ${e.length} datasets. ${t}`}),[e]);return{focusedPoint:l,announcement:d,handleKeyDown:h,announceData:m,getAccessibleDescription:p,setFocusedPoint:c}}(x,{enableScreenReader:g,enableKeyboardNavigation:g,announceDataChanges:g}),I=i({isDragging:!1,dragStart:{x:0,y:0},lastPan:{x:0,y:0}}),[w,O]=r(null),R=i(null),k=i(null),[M,D]=r(!1),[P,B]=r({width:0,height:0});s((()=>{const e=k.current;if(!e)return;const t=()=>{const t=e.getBoundingClientRect();t.width>0&&t.height>0&&(B({width:Math.floor(t.width),height:Math.floor(t.height)}),D(!0))};t();const n=requestAnimationFrame((()=>{t()})),a=new ResizeObserver((e=>{for(const t of e){const{width:e,height:n}=t.contentRect;e>0&&n>0&&(B({width:Math.floor(e),height:Math.floor(n)}),D(!0))}}));return a.observe(e),()=>{cancelAnimationFrame(n),a.disconnect()}}),[]),s((()=>{c===Or.DEFAULT_WIDTH&&d===Or.DEFAULT_HEIGHT||(B({width:c,height:d}),D(!0))}),[c,d]);const z=o(((e,t,n,a,r,i)=>{O({datasetIndex:e,pointIndex:t,x:n,y:a,clientX:r,clientY:i})}),[]),U=o((()=>{O(null)}),[]),F=i(null),G=o((e=>{m&&y&&y.panEnabled&&I.current.isDragging&&(F.current||(F.current=requestAnimationFrame((()=>{const t=R.current;if(!t)return void(F.current=null);const n=t.getBoundingClientRect(),a=e.clientX-n.left,r=e.clientY-n.top,i=a-I.current.dragStart.x,o=r-I.current.dragStart.y;y.setPanOffset({x:I.current.lastPan.x+i,y:I.current.lastPan.y+o}),F.current=null}))))}),[m,y]),V=o((e=>{if(!m||!y||!y.panEnabled)return;const t=R.current;if(!t)return;const n=t.getBoundingClientRect(),a=e.clientX-n.left,r=e.clientY-n.top;I.current.isDragging=!0,I.current.dragStart={x:a,y:r},I.current.lastPan={...y.panOffset}}),[m,y]),H=o((()=>{I.current.isDragging=!1}),[]),$=u((()=>({onDataPointClick:h,onPointHover:z,onPointLeave:U,onMouseMove:G,onMouseDown:V,onMouseUp:H,onWheel:()=>{}})),[h,z,U,G,V,H]),Y=u((()=>({announcement:C,focusedPoint:L,getAccessibleDescription:()=>"Chart description"})),[C,L]),K=u((()=>y?`translate(${y.panOffset.x}px, ${y.panOffset.y}px) scale(${y.zoomLevel})`:""),[y]),W=u((()=>{if(!M||0===P.width||0===P.height)return null;const e=E(x,P.width,P.height,void 0,l);if(!e)return null;const t=A(x.length).filter((e=>void 0!==e));return{scales:e,colors:t,datasets:x.map(((e,n)=>({...e,color:e.color||t[n]})))}}),[x,l,P.width,P.height,M,E,A]);if(s((()=>()=>{F.current&&cancelAnimationFrame(F.current)}),[]),s((()=>{const e=R.current;if(!e||!m||!y)return;const t=e=>{if(void 0===y.zoomLevel)return;e.preventDefault();const t=.001*-e.deltaY,n=Math.max(.2,Math.min(5,y.zoomLevel+t));y.setZoomLevel(n)};return e.addEventListener("wheel",t,{passive:!1}),()=>{e.removeEventListener("wheel",t)}}),[m,y]),T)return t("div",{className:`${Or.CONTENT_CLASS} ${Or.LOADING_CLASS}`,children:[e("div",{className:Or.LOADING_SPINNER_CLASS}),e("span",{className:Or.LOADING_TEXT_CLASS,children:"Optimizing chart..."})]});if(!M||0===P.width||0===P.height)return e("div",{ref:k,className:Or.CANVAS_CLASS,style:{width:"100%",height:"100%",minHeight:"200px",display:"flex",alignItems:"center",justifyContent:"center"}});if(!W)return null;const j=P.width,q=P.height;return t(n,{children:[e("div",{ref:k,className:Or.CANVAS_CLASS,style:{width:"100%",height:"100%"},children:t("svg",{ref:R,width:j,height:q,viewBox:`0 0 ${j} ${q}`,preserveAspectRatio:"xMidYMid meet",role:"img","aria-label":"Chart visualization",tabIndex:0,style:{width:"100%",height:"100%",transform:K,transformOrigin:"center center",willChange:y?.panEnabled?"transform":"auto"},className:"c-chart__svg",onMouseMove:G,onMouseDown:V,onMouseUp:H,onMouseLeave:H,children:[t("g",{className:"c-chart__grid-group",children:[W.datasets[0]?.data.map(((t,n)=>e("line",{x1:W.scales.xScale(n,W.datasets[0]?.data.length),y1:0,x2:W.scales.xScale(n,W.datasets[0]?.data.length),y2:q,className:"c-chart__grid c-chart__grid--vertical"},"x-grid-"+n))),Array.from({length:5}).map(((t,n)=>{const a=W.scales.minValue+(W.scales.maxValue-W.scales.minValue)*(n/4);return e("line",{x1:0,y1:W.scales.yScale(a),x2:j,y2:W.scales.yScale(a),className:"c-chart__grid c-chart__grid--horizontal"},"y-grid-"+n)}))]}),v({scales:W.scales,colors:W.colors,datasets:W.datasets,interactionState:{hoveredIndex:w?.pointIndex??null,selectedIndex:null},handlers:$,accessibility:Y,hoveredPoint:w,toolbarState:y?{showTooltips:y.toolbarState?.showTooltips,showLegend:y.toolbarState?.showLegend,animationsEnabled:y.toolbarState?.animationsEnabled,showGrid:y.toolbarState?.showGrid}:void 0,config:l}),m&&y?.panEnabled&&t("g",{className:"c-chart__crosshair",children:[e("line",{x1:0,y1:q/2,x2:j,y2:q/2,className:"c-chart__crosshair-line c-chart__crosshair-line--horizontal"}),e("line",{x1:j/2,y1:0,x2:j/2,y2:q,className:"c-chart__crosshair-line c-chart__crosshair-line--vertical"})]})]})}),e("div",{"aria-live":"polite",className:"u-visually-hidden",children:C})]})})));us.displayName="ChartRenderer";const hs=l(c((({type:t,datasets:n=[],config:a={},renderContent:r,interactive:i=!0,enableRealTime:s=!1,enableAccessibility:l=!0,enablePerformanceOptimization:c=!0,onDataPointClick:d,...u},h)=>{const m=o((e=>r(e)),[r]);return e(cs,{ref:h,type:t,datasets:n,config:a,...u,children:e(us,{datasets:n,config:a,interactive:i,enableRealTime:s,enableAccessibility:l,enablePerformanceOptimization:c,onDataPointClick:d,renderContent:m})})})));hs.displayName="BaseChart";const ms=l((({dataPoint:a,datasetLabel:o,datasetColor:l,position:c,visible:d,customRenderer:u})=>{const h=i(null),[m,p]=r(c);return s((()=>{if(!d||!h.current)return;const e=h.current.getBoundingClientRect(),t=window.innerWidth,n=window.innerHeight;let a=c.x,r=c.y;a=a+e.width>t-16?c.x-e.width-12:c.x+12,r=r+e.height>n-16?c.y-e.height-12:c.y-e.height/2,a=Math.max(16,Math.min(a,t-e.width-16)),r=Math.max(16,Math.min(r,n-e.height-16)),p({x:a,y:r})}),[c,d]),d&&a?O(e("div",{ref:h,className:"c-chart__tooltip",style:{transform:`translate3d(${m.x}px, ${m.y}px, 0)`,opacity:d?1:0,visibility:d?"visible":"hidden",transition:"opacity 0.2s ease",position:"fixed",left:0,top:0,zIndex:1e3,pointerEvents:"none",willChange:"transform"},children:u?u(a):t(n,{children:[e("div",{className:"c-chart__tooltip-title",children:a.label}),t("div",{className:"c-chart__tooltip-content",children:[o&&t("div",{className:"c-chart__tooltip-dataset",children:[l&&e("div",{className:"c-chart__tooltip-color-indicator",style:{backgroundColor:l}}),t("span",{className:"c-chart__tooltip-dataset-label",children:[o,":"]}),e("span",{className:"c-chart__tooltip-value",children:a.value})]}),a.metadata&&e("div",{className:"c-chart__tooltip-metadata",children:Object.entries(a.metadata).map((([n,a])=>t("div",{className:"c-chart__tooltip-metadata-item",children:[t("span",{className:"c-chart__tooltip-metadata-key",children:[n,":"]}),e("span",{className:"c-chart__tooltip-metadata-value",children:a+""})]},n)))})]})]})}),document.body):null}));ms.displayName="ChartTooltip";const ps=l(c((({datasets:a=[],config:r={},areaOptions:i={},onDataPointClick:o,...s},l)=>{const c={showArea:!0,fillOpacity:.3,useGradient:!0,...i};return e(hs,{ref:l,type:"area",datasets:a,config:r,renderContent:({scales:a,colors:r,datasets:i,handlers:o,hoveredPoint:s,toolbarState:l,config:d})=>{if(!i.length)return null;const u=l?.showTooltips??d?.showTooltips??!0;return t(n,{children:[i.map(((n,i)=>{const l=n.color||r[i],d=n.data||[];if(0===d.length)return null;const u=d.map(((e,t)=>({x:a.xScale(t,d.length),y:a.yScale(e.value)}))),h=`M ${u.map((e=>`${e.x},${e.y}`)).join(" L ")} L ${u[u.length-1]?.x},${a.height} L ${u[0]?.x},${a.height} Z`;return t("g",{children:[e("path",{d:h,fill:l,fillOpacity:c.fillOpacity||.3,className:"c-chart__area-fill"}),d.map(((t,n)=>{const r=a.xScale(n,d.length),c=a.yScale(t.value),u=s?.datasetIndex===i&&s?.pointIndex===n;return e("circle",{cx:r,cy:c,r:u?6:4,fill:l,stroke:"white",strokeWidth:u?2:1,className:"c-chart__area-point "+(u?"c-chart__area-point--hovered":""),onClick:()=>o.onDataPointClick?.(t,i,n),onMouseEnter:e=>{const t=e.currentTarget.getBoundingClientRect();o.onPointHover(i,n,r,c,t.left+t.width/2,t.top+t.height/2)},onMouseLeave:o.onPointLeave,style:{cursor:"pointer"}},"point-"+n)}))]},"dataset-"+i)})),u&&s&&e(ms,{dataPoint:i[s.datasetIndex]?.data?.[s.pointIndex]??{label:"",value:0,color:""},datasetLabel:i[s.datasetIndex]?.label,datasetColor:i[s.datasetIndex]?.color||r[s.datasetIndex],position:{x:s.clientX,y:s.clientY},visible:!0})]})},onDataPointClick:o,...s})})));function gs(e,t={}){const[n,a]=r(null),[i,s]=r(0),[l,c]=r(!1),d=o(((e,n,a,r={top:20,right:30,bottom:40,left:50},i=!1)=>{if(!e.length)return[];const o=n-r.left-r.right,s=a-r.top-r.bottom,l=e[0]?.data?.length||0,c=e.length;if(0===l)return[];const d=e.flatMap((e=>e.data?.map((e=>e.value)).filter((e=>"number"==typeof e))||[])),u=Math.min(0,...d),h=Math.max(...d)-u,m=[],p=Array(l).fill(0);return e.forEach(((e,d)=>{e.data?.forEach(((e,g)=>{const f="number"==typeof e.value?e.value:0;if(isNaN(f)||!isFinite(f))return;let b,v,S,y;if(i){const e=s/l,n=e*(1-(t.groupPadding||.2));y=t.stacked?n:n/c,v=r.top+g*e+(e-n)/2,t.stacked||(v+=d*y*(1+(t.barPadding||.05))),b=r.left,S=(f-u)/h*o,t.stacked&&d>0?(b=r.left+(p[g]-u)/h*o,p[g]+=f):t.stacked&&(p[g]=f)}else{const e=o/l,n=e*(1-(t.groupPadding||.2));if(S=t.stacked?n:n/c,b=r.left+g*e+(e-n)/2,t.stacked||(b+=d*S*(1+(t.barPadding||.05))),y=(f-u)/h*s,v=a-r.bottom-y,t.stacked&&d>0){const e=(p[g]-u)/h*s;v=a-r.bottom-e-y,p[g]+=f}else t.stacked&&(p[g]=f)}if(t.minBarHeight&&(i?S:y)<t.minBarHeight&&(i?S=t.minBarHeight:(y=t.minBarHeight,v=a-r.bottom-y)),t.maxBarWidth&&(i?y:S)>t.maxBarWidth)if(i)y=t.maxBarWidth,v=r.top+g*(s/l)+(s/l-y)/2;else{S=t.maxBarWidth;const e=(n-r.left-r.right)/l;b=r.left+g*e+(e-S)/2}m.push({x:Math.max(b,0),y:Math.max(v,0),width:Math.max(S,0),height:Math.max(y,0),value:f,datasetIndex:d,pointIndex:g})}))})),m}),[t.stacked,t.groupPadding,t.barPadding,t.minBarHeight,t.maxBarWidth]),u=o((()=>{if(!t.enableAnimations)return;c(!0),s(0);const e=t.animationDuration||1e3,n=Date.now(),a=()=>{const t=Date.now()-n,r=Math.min(t/e,1);s(1-Math.pow(1-r,3)),1>r?requestAnimationFrame(a):c(!1)};requestAnimationFrame(a)}),[t.enableAnimations,t.animationDuration]),h=o(((e,t,n,r,i,o)=>{a({datasetIndex:e,pointIndex:t,chartX:n,chartY:r,clientX:i,clientY:o})}),[]),m=o((()=>{a(null)}),[]),p=o((e=>t.useGradients?e.map(((e,t)=>{const n=e.color||`var(--atomix-color-${t+1})`;return{id:"bar-gradient-"+t,stops:[{offset:"0%",color:n,opacity:.8},{offset:"100%",color:n,opacity:.4}]}})):[]),[t.useGradients]),g=o((e=>t.valueFormatter?t.valueFormatter(e):e.toString()),[t]);return{hoveredBar:n,animationProgress:i,isAnimating:l,calculateBarDimensions:d,generateGradients:p,getDataLabelPosition:o(((e,n=!1)=>{const{x:a,y:r,width:i,height:o}=e;switch(t.dataLabelPosition){case"inside":case"center":default:return{x:a+i/2,y:r+o/2};case"outside":return{x:n?a+i+5:a+i/2,y:n?r+o/2:r-5}}}),[t]),handleBarHover:h,handleBarLeave:m,startAnimation:u,formatValue:g,setHoveredBar:a,setAnimationProgress:s,setIsAnimating:c}}ps.displayName="AreaChart";const fs=l(c((({datasets:a=[],config:r={},barOptions:i={},horizontal:o=!1,onDataPointClick:s,...l},c)=>{const{calculateBarDimensions:d,handleBarHover:u,handleBarLeave:h,hoveredBar:m,formatValue:p}=gs(0,i);return e(hs,{ref:c,type:"bar",datasets:a,config:r,renderContent:({scales:a,colors:r,datasets:s,handlers:l,hoveredPoint:c,toolbarState:u,config:h})=>{if(!s.length)return null;const m=u?.showTooltips??h?.showTooltips??!0,g=d(s,a.width,a.height,a.padding,o);return t(n,{children:[g.map(((n,a)=>{const o=s[n.datasetIndex];if(!o)return null;const d=o.data?.[n.pointIndex],u=o.color||r[n.datasetIndex],h=c?.datasetIndex===n.datasetIndex&&c?.pointIndex===n.pointIndex;return t("g",{children:[e("rect",{x:n.x,y:n.y,width:n.width,height:n.height,fill:u,className:"c-chart__bar "+(h?"c-chart__bar--hovered":""),onClick:()=>d&&l.onDataPointClick?.(d,n.datasetIndex,n.pointIndex),onMouseEnter:e=>{const t=e.currentTarget.getBoundingClientRect();l.onPointHover(n.datasetIndex,n.pointIndex,n.x,n.y,t.left+t.width/2,t.top+t.height/2)},onMouseLeave:l.onPointLeave}),i.showValues&&e("text",{x:n.x+n.width/2,y:n.y-5,textAnchor:"middle",className:"c-chart__bar-value-label",children:p(n.value)})]},"bar-"+a)})),m&&c&&e(ms,{dataPoint:s[c.datasetIndex]?.data?.[c.pointIndex],datasetLabel:s[c.datasetIndex]?.label,datasetColor:s[c.datasetIndex]?.color,position:{x:c.clientX,y:c.clientY},visible:!0})]})},onDataPointClick:s,...l})})));fs.displayName="BarChart";const bs=l(c((({bubbleData:a=[],config:r={},bubbleOptions:i={},onDataPointClick:o,...s},l)=>{const{minBubbleSize:c=5,maxBubbleSize:d=50,bubbleOpacity:u=.7,showLabels:h=!0,labelPosition:m="center",enableAnimations:p=!0,animationDuration:g=1e3,showSizeLegend:f=!0,sizeLegendTitle:b="Size",colorScheme:v=["var(--atomix-primary)","var(--atomix-secondary)","var(--atomix-success)","var(--atomix-warning)","var(--atomix-error)","var(--atomix-info)"],sizeBasedColoring:S=!1}=i;return e(hs,{ref:l,type:"bubble",datasets:[{label:"Bubbles",data:a}],config:r,renderContent:({scales:r,colors:i,datasets:o,handlers:s,hoveredPoint:l,toolbarState:f,config:b})=>{if(!a.length)return null;const y=f?.showTooltips??b?.showTooltips??!0,E=a.map((e=>e.size)),A=Math.min(...E),x=Math.max(...E)-A||1,N=a.map(((n,a)=>{const i=c+(n.size-A)/x*(d-c),o=r.innerWidth-2*d,f=r.innerHeight-2*d,b=r.padding.left+d+n.x/100*o,y=r.padding.top+d+f-n.y/100*f;let E=n.color;if(!E)if(S){const e=Math.floor((v.length-1)*((n.size-A)/x));E=v[e]}else E=v[a%v.length];return t("g",{children:[e("circle",{cx:b,cy:y,r:i,fill:E,opacity:u,className:"c-chart__bubble "+(l?.pointIndex===a?"c-chart__bubble--hovered":""),style:p?{transition:`all ${g}ms ease`}:{},onClick:()=>s.onDataPointClick?.(n,0,a),onMouseEnter:e=>{const t=e.currentTarget.getBoundingClientRect();s.onPointHover(0,a,b,y,t.left+t.width/2,t.top+t.height/2)},onMouseLeave:s.onPointLeave}),h&&e("text",{x:b,y:y,textAnchor:"middle",dominantBaseline:"center"===m?"middle":"top"===m?"text-before-edge":"text-after-edge",className:"c-chart__bubble-label",children:n.label})]},"bubble-"+a)}));return t(n,{children:[N,y&&l&&l.pointIndex<a.length&&a[l.pointIndex]&&e(ms,{dataPoint:a[l.pointIndex],datasetLabel:"Bubbles",datasetColor:a[l.pointIndex]?.color||v[l.pointIndex%v.length],position:{x:l.clientX,y:l.clientY},visible:!0})]})},onDataPointClick:o,...s})})));bs.displayName="BubbleChart";const vs=l(c((({candlestickData:a=[],config:r={},candlestickOptions:i={},onDataPointClick:o,...s},l)=>{const{showVolume:c=!0,volumeHeightRatio:d=.2,upColor:u="var(--atomix-success-bg-subtle)",downColor:h="var(--atomix-error-bg-subtle)",wickColor:m="var(--atomix-brand-border-subtle)",borderColor:p="var(--atomix-primary-border-subtle)",showMovingAverages:g=!1,movingAveragePeriods:f=[7,21],movingAverageColors:b=["var(--atomix-warning-bg-subtle)","var(--atomix-warning-border-subtle)"],dateFormat:v="short",dateFormatter:S,showGrid:y=!0,gridColor:E="var(--atomix-brand-text-emphasis)",showTooltips:A=!0}=i;return e(hs,{ref:l,type:"candlestick",datasets:[{label:"Candlestick Data",data:a.map((e=>({label:e.date.toString(),value:e.close,metadata:{open:e.open,high:e.high,low:e.low,close:e.close,volume:e.volume}})))}],config:r,renderContent:({scales:r,colors:o,datasets:s,handlers:l,hoveredPoint:v,toolbarState:S,config:A})=>{if(!a.length)return null;const x=S?.showTooltips??A?.showTooltips??i.showTooltips??!0,N=40,T=r.width-80,_=r.height-80,C=c?_*d:0,L=_-C,I=a.map((e=>e.high)),w=a.map((e=>e.low)),O=Math.min(...w),R=Math.max(...I),k=R-O||1,M=a.map((e=>e.volume||0)),D=Math.max(...M)||1,P=[];if(y){for(let n=0;5>=n;n++){const t=N+n/5*L;P.push(e("line",{x1:N,y1:t,x2:N+T,y2:t,stroke:E,strokeWidth:"0.5",strokeDasharray:"4 2"},"price-grid-"+n))}const t=Math.max(1,Math.floor(a.length/10));for(let n=0;n<a.length;n+=t){const t=N+n/(a.length-1)*T;P.push(e("line",{x1:t,y1:N,x2:t,y2:N+L,stroke:E,strokeWidth:"0.5",strokeDasharray:"4 2"},"time-grid-"+n))}}const B=a.map(((n,r)=>{const i=n.close<n.open?h:u,o=N+r/(a.length-1)*T,s=N+(R-n.high)/k*L,c=N+(R-n.low)/k*L,d=N+(R-n.open)/k*L,g=N+(R-n.close)/k*L,f=Math.min(d,g),b=Math.abs(d-g),v=Math.max(1,T/a.length*.8);return t("g",{children:[e("line",{x1:o,y1:s,x2:o,y2:c,stroke:m,strokeWidth:"1",className:"c-chart__candlestick-wick"}),e("rect",{x:o-v/2,y:f,width:v,height:b||1,fill:i,stroke:p,strokeWidth:"1",className:"c-chart__candlestick-candle",onMouseEnter:e=>{const t=e.currentTarget.getBoundingClientRect();l.onPointHover(0,r,o,s,t.left+t.width/2,t.top+t.height/2)},onMouseLeave:l.onPointLeave,onClick:()=>l.onDataPointClick?.(n,0,r)})]},"candle-"+r)})),z=[];if(c){const t=N+L+20;a.forEach(((n,r)=>{if(!n.volume)return;const i=n.close<n.open?h:u,o=N+r/(a.length-1)*T,s=n.volume/D*(C-20),l=Math.max(1,T/a.length*.6);z.push(e("rect",{x:o-l/2,y:t+C-s,width:l,height:s,fill:i,fillOpacity:"0.7",className:"c-chart__candlestick-volume"},"volume-"+r))}))}const U=[];return g&&f.forEach(((t,n)=>{const r=((e,t)=>{const n=[];for(let r=0;r<e.length;r++){var a;if(t-1>r){n.push(NaN);continue}const i=Do(a=e.slice(r-t+1,r+1)).call(a,((e,t)=>e+t.close),0);n.push(i/t)}return n})(a,t),i=b?.[n]||"var(--atomix-warning)",o=r.map(((e,t)=>isNaN(e)?null:{x:N+t/(a.length-1)*T,y:N+(R-e)/k*L})).filter(Boolean);if(o.length>1){const n="M "+o.map((e=>`${e.x},${e.y}`)).join(" L ");U.push(e("path",{d:n,stroke:i,strokeWidth:"1",fill:"none",strokeDasharray:"5,5"},"ma-"+t))}})),t(n,{children:[P,B,z,U,x&&v&&a[v.pointIndex]&&e(ms,{dataPoint:a[v.pointIndex],datasetLabel:"Candlestick",position:{x:v.clientX,y:v.clientY},visible:!0})]})},onDataPointClick:o,...s})})));vs.displayName="CandlestickChart";const Ss=l(c((({datasets:a=[],config:r={},pieOptions:i={showValues:!1,showPercentages:!0,showLabels:!1,startAngle:0,sortByValue:!1,padAngle:1},donutOptions:o={innerRadiusRatio:.6,showTotal:!0,centerLabel:"Total",centerValue:void 0,roundedCorners:!0},onDataPointClick:s,...l},c)=>{const d=u((()=>a.length>0?a[0]:{label:"",data:[]}),[a]),h=u((()=>{if(!d?.data?.length)return null;const e=(d?.data||[]).filter((e=>"number"==typeof e.value&&!isNaN(e.value)&&isFinite(e.value)&&e.value>0));return e.length?{validDataPoints:e}:null}),[d]);return e(hs,{ref:c,type:"donut",datasets:a,config:r,renderContent:({scales:a,colors:r,datasets:s,handlers:l,hoveredPoint:c,toolbarState:u,config:m})=>{var p;if(!h)return null;const g=a.width,f=a.height,b=Math.min(g,f)/2*.8,v=b*(o.innerRadiusRatio??.6),S=g/2,y=f/2,E=["var(--atomix-primary-2)","var(--atomix-primary-3)","var(--atomix-primary-4)","var(--atomix-primary-5)","var(--atomix-primary-6)","var(--atomix-primary-7)","var(--atomix-primary-8)","var(--atomix-primary-9)"],A=d?.color?[d.color]:d?.data?.map(((e,t)=>E[t%E.length]))||E,x=Do(p=h.validDataPoints).call(p,((e,t)=>e+t.value),0),N=(i.padAngle||1)*Math.PI/180;let T=(i.startAngle||0)*Math.PI/180;const _=h.validDataPoints.map(((e,t)=>{const n=e.value/x*(2*Math.PI)-N,a=T,r=T+n,i=(a+r)/2,o=.75*b,s=S+Math.cos(i)*o,l=y+Math.sin(i)*o,c=S+v*Math.cos(a),d=y+v*Math.sin(a),u=n>Math.PI?1:0,h=[`M ${c} ${d}`,`L ${S+b*Math.cos(a)} ${y+b*Math.sin(a)}`,`A ${b} ${b} 0 ${u} 1 ${S+b*Math.cos(r)} ${y+b*Math.sin(r)}`,`L ${S+v*Math.cos(r)} ${y+v*Math.sin(r)}`,`A ${v} ${v} 0 ${u} 0 ${c} ${d}`,"Z"].join(" ");return T=r+N,{path:h,color:e.color||A[t],labelPosition:{x:s,y:l},dataPoint:e,value:e.value,percentage:e.value/x*100}})),C=u?.showTooltips??m?.showTooltips??!0;return t(n,{children:[_.map(((n,a)=>{const r=c?.pointIndex===a;return t("g",{children:[e("path",{d:n.path,fill:n.color,className:"c-chart__donut-slice "+(r?"c-chart__donut-slice--hovered":""),onClick:()=>l.onDataPointClick?.(n.dataPoint,0,a),onMouseEnter:e=>{const t=e.currentTarget.getBoundingClientRect();l.onPointHover(0,a,n.labelPosition.x,n.labelPosition.y,t.left+t.width/2,t.top+t.height/2)},onMouseLeave:l.onPointLeave}),i.showLabels&&e("text",{x:n.labelPosition.x,y:n.labelPosition.y,textAnchor:"middle",className:"c-chart__donut-label",children:n.dataPoint.label}),i.showPercentages&&t("text",{x:n.labelPosition.x,y:n.labelPosition.y+20,textAnchor:"middle",className:"c-chart__donut-percentage",children:[n.percentage.toFixed(1),"%"]})]},"slice-"+a)})),o.showTotal&&t("g",{children:[e("text",{x:S,y:y-10,textAnchor:"middle",dominantBaseline:"middle",className:"c-chart__donut-center-label",children:o.centerLabel}),e("text",{x:S,y:y+20,textAnchor:"middle",dominantBaseline:"middle",className:"c-chart__donut-center-value",children:void 0!==o.centerValue?o.centerValue:x.toLocaleString()})]}),C&&c&&c.pointIndex<_.length&&_[c.pointIndex]&&e(ms,{dataPoint:_[c.pointIndex].dataPoint,datasetLabel:d?.label,datasetColor:_[c.pointIndex]?.color,position:{x:c.clientX,y:c.clientY},visible:!0})]})},onDataPointClick:s,...l})})));Ss.displayName="DonutChart";const ys=l(c((({funnelData:a=[],config:r={},funnelOptions:i={},onDataPointClick:o,...s},l)=>{const{direction:c="vertical",showLabels:d=!0,showValues:u=!0,showPercentages:h=!1,labelPosition:m="outside",neckWidth:p=.3,neckHeight:g=.2,segmentGap:f=2,colorScheme:b=["var(--atomix-primary)","var(--atomix-secondary)","var(--atomix-success)","var(--atomix-warning)","var(--atomix-error)","var(--atomix-info)"],useGradient:v=!0,animate:S=!0,animationDuration:y=1e3,animationDelay:E=200,valueFormatter:A=e=>e.toLocaleString(),showConversionRates:x=!0,conversionRatePosition:N="between",proportional:T=!0,minSegmentRatio:_=.1}=i;return e(hs,{ref:l,type:"funnel",datasets:[{label:"Funnel Data",data:a}],config:r,renderContent:({scales:r,colors:i,datasets:o,handlers:s,hoveredPoint:l,toolbarState:m,config:g})=>{if(!a.length)return null;const v=m?.showTooltips??g?.showTooltips??!0,C=r.width-120,L=r.height-120,I=Math.max(...a.map((e=>e.value))),w=a.map(((e,t)=>{const n=e.value/I*100,r=t>0&&a[t-1]?e.value/a[t-1].value*100:100;return{...e,percentage:n,conversionRate:r,index:t}})),O=[];if("vertical"===c){const n=(L-(a.length-1)*f)/a.length;w.forEach(((r,i)=>{const o=60+i*(n+f);let l;if(T){const e=Math.max(r.percentage/100,_);l=C*e}else{const e=Math.max(1-i/(a.length-1)*(1-p),_);l=C*e}const c=60+(C-l)/2;let m=r.color||b[i%b.length];const g=w[i+1];let v;if(g)if(T){const e=Math.max(g.percentage/100,_);v=C*e}else{const e=Math.max(1-(i+1)/(a.length-1)*(1-p),_);v=C*e}else v=l*p;const L=60+(C-v)/2,I=o+n,R=`\n M ${c} ${o}\n L ${c+l} ${o}\n L ${L+v} ${I}\n L ${L} ${I}\n Z\n `;O.push(t("g",{children:[e("path",{d:R,fill:m,className:"c-chart__funnel-segment",style:{transition:S?`all ${y}ms cubic-bezier(0.25, 0.1, 0.25, 1) ${i*E}ms`:"none"},onClick:()=>s.onDataPointClick?.(r,0,i)}),(d||u||h)&&t("text",{x:c+l/2,y:o+n/2,textAnchor:"middle",dominantBaseline:"middle",className:"c-chart__funnel-label",children:[d&&r.label,u&&e("tspan",{x:c+l/2,dy:"1.2em",children:A(r.value)}),h&&t("tspan",{x:c+l/2,dy:"1.2em",children:[r.percentage.toFixed(1),"%"]})]})]},"segment-"+i)),x&&g&&"between"===N&&O.push(t("text",{x:c+l/2,y:o+n+f/2,textAnchor:"middle",className:"c-chart__funnel-conversion",children:["↓ ",r.conversionRate.toFixed(1),"%"]},"conversion-"+i))}))}return t(n,{children:[e("g",{children:O}),v&&l&&a[l.pointIndex]&&e(ms,{dataPoint:a[l.pointIndex],datasetLabel:"Funnel Data",datasetColor:a[l.pointIndex]?.color||i[l.pointIndex%i.length],position:{x:l.clientX,y:l.clientY},visible:!0})]})},onDataPointClick:o,...s})})));ys.displayName="FunnelChart";const Es=l(c((({value:n,min:a=0,max:r=100,config:i={},gaugeOptions:o={},onDataPointClick:s,...l},c)=>{const{startAngle:d=180,endAngle:u=0,thickness:h=.2,showNeedle:m=!0,needleColor:p="var(--atomix-brand-text-emphasis)",showValue:g=!0,valueFormatter:f=e=>e.toFixed(1),showMinMaxLabels:b=!0,showTicks:v=!0,majorTicks:S=5,minorTicks:y=4,colorZones:E=[],animate:A=!0,animationDuration:x=1e3,animationEasing:N="easeOutCubic",useGradient:T=!1,label:_="",labelPosition:C="bottom"}=o;return e(hs,{ref:c,type:"gauge",datasets:[{label:"Gauge Value",data:[{label:"Value",value:n}]}],config:i,renderContent:({scales:i,colors:o,datasets:s,handlers:l,hoveredPoint:c,toolbarState:T,config:L})=>{const I=i.width,w=T?.animationsEnabled??L?.animate??A,O=i.height,R=I/2,k=O/2,M=Math.min(I,O)/2*.9,D=-d*Math.PI/180,P=-u*Math.PI/180,B=P-D,z=Math.min(Math.max(n,a),r),U=D+(z-a)/(r-a)*B,F=(e,t,n,a,r,i)=>{const o=n*(1-i),s=e+n*Math.cos(a),l=t+n*Math.sin(a),c=e+n*Math.cos(r),d=t+n*Math.sin(r),u=e+o*Math.cos(r),h=t+o*Math.sin(r),m=e+o*Math.cos(a),p=t+o*Math.sin(a),g=Math.abs(r-a)>Math.PI?1:0,f=r>a?1:0;return`M ${s} ${l} \n A ${n} ${n} 0 ${g} ${f} ${c} ${d}\n L ${u} ${h}\n A ${o} ${o} 0 ${g} ${1-f} ${m} ${p}\n Z`},G=[];for(const t of E){const n=D+(t.from-a)/(r-a)*B,i=D+(t.to-a)/(r-a)*B;G.push(e("path",{d:F(R,k,M,n,i,h),fill:t.color},`zone-${t.from}-${t.to}`))}const V=[];if(v){const t=M*(1-h);for(let n=0;S>=n;n++){const i=a+n/S*(r-a),o=D+n/S*B,s=t-2,l=.05*M,c=R+s*Math.cos(o),d=k+s*Math.sin(o),u=R+(s-l)*Math.cos(o),h=k+(s-l)*Math.sin(o);if(V.push(e("line",{x1:c,y1:d,x2:u,y2:h,stroke:"var(--atomix-brand-border-subtle)",strokeWidth:"2"},"major-tick-"+n)),b){const t=s-l-15,a=R+t*Math.cos(o),r=k+t*Math.sin(o);V.push(e("text",{x:a,y:r,textAnchor:"middle",dominantBaseline:"central",fontSize:"12",fill:"var(--atomix-brand-text-emphasis)",children:i},"label-"+n))}}for(let n=0;S*y>=n;n++){if(n%y==0)continue;const a=D+n/(S*y)*B,r=t-2,i=.025*M,o=R+r*Math.cos(a),s=k+r*Math.sin(a),l=R+(r-i)*Math.cos(a),c=k+(r-i)*Math.sin(a);V.push(e("line",{x1:o,y1:s,x2:l,y2:c,stroke:"var(--atomix-brand-border-subtle)",strokeWidth:"1"},"minor-tick-"+n))}}const H=M*(1-h),$=m?t("g",{children:[e("line",{x1:R,y1:k,x2:R+(H-15)*Math.cos(U),y2:k+(H-15)*Math.sin(U),stroke:p,strokeWidth:"4",strokeLinecap:"round"}),e("circle",{cx:R,cy:k,r:"8",fill:p}),e("circle",{cx:R,cy:k,r:"3",fill:"var(--atomix-primary-bg, #fff)"})]}):null,Y=g?e("text",{x:R,y:k+35,textAnchor:"middle",fontSize:"32",fontWeight:"bold",fill:"var(--atomix-primary-text-emphasis)",children:f(z)}):null,K=_?e("text",{x:R,y:"top"===C?k-.7*M:k+.7*M+10,textAnchor:"middle",fontSize:"16",fill:"var(--atomix-brand-text-emphasis)",children:_}):null;return t("g",{children:[e("path",{d:F(R,k,M,D,P,h),fill:"var(--atomix-secondary-bg-subtle)"}),G,e("path",{d:F(R,k,M,D,U,h),fill:"var(--atomix-brand-bg-subtle)",style:{transition:w?`all ${x}ms ${N}`:"none"}}),V,$,Y,K]})},onDataPointClick:s,...l})})));Es.displayName="GaugeChart";const As={viridis:["#440154","#482777","#3f4a8a","#31678e","#26838f","#1f9d8a","#6cce5a","#b6de2b","#fee825"],plasma:["#0d0887","#5302a3","#8b0aa5","#b83289","#db5c68","#f48849","#febd2a","#f0f921"],inferno:["#000004","#1b0c41","#4b0c6b","#781c6d","#a52c60","#cf4446","#ed6925","#fb9b06","#fcffa4"],magma:["#000004","#1c1044","#4f127b","#812581","#b5367a","#e55964","#fb8761","#fec287","#fcfdbf"],blues:["var(--atomix-blue-1)","var(--atomix-blue-2)","var(--atomix-blue-3)","var(--atomix-blue-4)","var(--atomix-blue-5)","var(--atomix-blue-6)","var(--atomix-blue-7)","var(--atomix-blue-8)","var(--atomix-blue-9)"],reds:["var(--atomix-red-1)","var(--atomix-red-2)","var(--atomix-red-3)","var(--atomix-red-4)","var(--atomix-red-5)","var(--atomix-red-6)","var(--atomix-red-7)","var(--atomix-red-8)","var(--atomix-red-9)"],greens:["var(--atomix-green-1)","var(--atomix-green-2)","var(--atomix-green-3)","var(--atomix-green-4)","var(--atomix-green-5)","var(--atomix-green-6)","var(--atomix-green-7)","var(--atomix-green-8)","var(--atomix-green-9)"],github:["var(--atomix-gray-2)","var(--atomix-green-3)","var(--atomix-green-4)","var(--atomix-green-5)","var(--atomix-green-6)"]},xs=l(c((({data:a=[],config:i={},colorScale:s={scheme:"blues",steps:9},cellConfig:l={spacing:2,borderRadius:4,showLabels:!1},showColorLegend:c=!0,showGrid:d=!0,onDataPointClick:h,...m},p)=>{const[g,f]=r(null),b=u((()=>{if(!a.length)return{matrix:[],xLabels:[],yLabels:[]};const e=Array.from(new Set(a.map((e=>e.x)))).sort(),t=Array.from(new Set(a.map((e=>e.y)))).sort(),n=[];return t.forEach((t=>{const r=[];e.forEach((e=>{const n=a.find((n=>n.x===e&&n.y===t));r.push(n||null)})),n.push(r)})),{matrix:n,xLabels:e,yLabels:t}}),[a]),v=o((e=>{if(!b.matrix.length)return"var(--atomix-secondary-bg-subtle)";let t,n=s.min,r=s.max;if(void 0===n||void 0===r){const e=a.filter((e=>void 0!==e.value)).map((e=>e.value));void 0===n&&(n=Math.min(...e)),void 0===r&&(r=Math.max(...e))}if("custom"===s.scheme&&s.colors)t=s.colors;else{const e=s.scheme;t=As[e]||As.viridis}const i=s.steps||t.length,o=r-n;return 0===o?t[0]:t[Math.floor(Math.min(Math.floor((e-n)/o*i),i-1)/i*(t.length-1))]}),[b,s,a]),S=[{label:"Heatmap Data",data:a.map((e=>({...e,label:e.label||`${e.x}, ${e.y}`,value:e.value})))}];return e(hs,{ref:p,type:"heatmap",datasets:S,config:i,renderContent:({scales:r,colors:i,datasets:o,handlers:d,hoveredPoint:u,toolbarState:h,config:m})=>{const{matrix:p,xLabels:S,yLabels:y}=b,E=h?.showTooltips??m?.showTooltips??!0;if(!p.length)return null;const A=l.spacing??2,x=l.borderRadius??4,{width:N,height:T}=r,_=Math.max(0,N-60-(20+(c?60:0))),C=Math.max(0,T-20-40),L=Math.max(1,S.length),I=Math.max(1,y.length),w=Math.max(2,Math.floor((_-(L-1)*A)/L)),O=Math.max(2,Math.floor((C-(I-1)*A)/I)),R=l.width||w,k=l.height||O,M=L*R+(L-1)*A,D=I*k+(I-1)*A,P=60+Math.max(0,(_-M)/2),B=20+Math.max(0,(C-D)/2);return t(n,{children:[t("g",{children:[e("defs",{children:c&&(()=>{const t=As[s.scheme]||As.viridis;return t&&0!==t.length?e("linearGradient",{id:"heatmap-legend-gradient",x1:"0%",y1:"100%",x2:"0%",y2:"0%",children:t.map(((n,a)=>e("stop",{offset:a/(t.length-1)*100+"%",stopColor:n},a)))}):null})()}),p.map(((n,r)=>n.map(((n,i)=>{if(!n)return null;const o=P+i*(R+A),s=B+r*(k+A),c=v(n.value);return t("g",{children:[e("rect",{x:o,y:s,width:R,height:k,rx:x,ry:x,fill:c,className:"c-chart__heatmap-cell "+(g===n?"c-chart__heatmap-cell--hovered":""),onClick:()=>{n&&d.onDataPointClick?.({...n,label:n.label||`${n.x}, ${n.y}`,value:n.value},r,i)},onMouseEnter:e=>{f(n);const t=a.findIndex((e=>e.x===n.x&&e.y===n.y)),r=e.currentTarget.getBoundingClientRect();d.onPointHover(0,0>t?0:t,o,s,r.left+r.width/2,r.top+r.height/2)},onMouseLeave:()=>{f(null),d.onPointLeave()}}),l.showLabels&&n.label&&e("text",{x:o+R/2,y:s+k/2,textAnchor:"middle",dominantBaseline:"middle",className:"c-chart__heatmap-label",children:n.label})]},`cell-${r}-${i}`)})))),S.map(((t,n)=>{const a=P+n*(R+A)+R/2,r=B+p.length*(k+A)+20;return e("text",{x:a,y:r,textAnchor:"middle",className:"c-chart__heatmap-axis-label",children:t+""},"x-label-"+n)})),y.map(((t,n)=>e("text",{x:P-20,y:B+n*(k+A)+k/2,textAnchor:"end",dominantBaseline:"middle",className:"c-chart__heatmap-axis-label",children:t+""},"y-label-"+n))),c&&t("g",{transform:`translate(${P+M+20}, ${B})`,children:[e("rect",{x:"0",y:"0",width:"12",height:D,fill:"url(#heatmap-legend-gradient)",stroke:"var(--atomix-border-color)",className:"c-chart__grid",rx:x,ry:x}),e("text",{x:"-5",y:"-10",className:"c-chart__heatmap-legend-title",children:"Values"}),e("text",{x:"20",y:"8",textAnchor:"start",className:"c-chart__heatmap-legend-label",children:"High"}),e("text",{x:"20",y:D,textAnchor:"start",className:"c-chart__heatmap-legend-label",children:"Low"})]})]}),E&&u&&o[u.datasetIndex]?.data?.[u.pointIndex]&&e(ms,{dataPoint:o[u.datasetIndex].data[u.pointIndex],datasetLabel:o[u.datasetIndex]?.label,datasetColor:o[u.datasetIndex]?.color||i[u.datasetIndex%i.length],position:{x:u.clientX,y:u.clientY},visible:!0})]})},onDataPointClick:h,...m})})));function Ns(e,t={}){const[n,a]=r(1),[i,s]=r({x:0,y:0}),[l,c]=r(null),d=o(((e,t)=>{const n=[];for(let r=t-1;r<e.length;r++){var a;const i=Do(a=e.slice(r-t+1,r+1)).call(a,((e,t)=>e+t.value),0)/t,o=e[r];o&&n.push({label:o.label,value:i,color:"rgba(255, 255, 255, 0.5)"})}return n}),[]),h=o((e=>{const t=e.length;if(2>t)return e.map((()=>null));const n=Do(e).call(e,((e,t,n)=>e+n),0),a=Do(e).call(e,((e,t)=>e+t.value),0),r=(t*Do(e).call(e,((e,t,n)=>e+n*t.value),0)-n*a)/(t*Do(e).call(e,((e,t,n)=>e+n*n),0)-n*n),i=(a-r*n)/t;return e.map(((e,t)=>({label:e.label,value:r*t+i,color:"rgba(255, 255, 255, 0.3)"})))}),[]),m=o(((e,t=.4)=>{if(2>e.length)return"";const n=e.map(((n,a)=>{if(0===a||a===e.length-1)return{cp1x:n.x,cp1y:n.y,cp2x:n.x,cp2y:n.y};const r=e[a-1],i=e[a+1];if(!r||!i)return{cp1x:n.x,cp1y:n.y,cp2x:n.x,cp2y:n.y};const o=i.x-r.x,s=i.y-r.y;return{cp1x:n.x-o*t,cp1y:n.y-s*t,cp2x:n.x+o*t,cp2y:n.y+s*t}})),a=e[0];if(!a)return"";let r=`M ${a.x},${a.y}`;for(let i=1;i<e.length;i++){const t=n[i-1],a=n[i],o=e[i];t&&a&&o&&(r+=` C ${t.cp2x},${t.cp2y} ${a.cp1x},${a.cp1y} ${o.x},${o.y}`)}return r}),[]),p=o(((e,r,i)=>{if(!t.enableZoom)return;const o=Math.max(.1,Math.min(10,n*(e>0?.9:1.1)));a(o);const l=o/n;s((e=>({x:r-(r-e.x)*l,y:i-(i-e.y)*l})))}),[n,t.enableZoom]),g=o(((e,n)=>{t.enablePan&&s((t=>({x:t.x+e,y:t.y+n})))}),[t.enablePan]),f=o((()=>{a(1),s({x:0,y:0})}),[]),b=o(((e,t,n,a,r,i)=>{c({datasetIndex:e,pointIndex:t,x:n,y:a,clientX:r,clientY:i})}),[]),v=o((()=>{c(null)}),[]),S=u((()=>e.map((e=>{const n={...e};return t.showMovingAverages&&t.movingAveragePeriods&&(n.movingAverages=t.movingAveragePeriods.map((t=>({period:t,data:d(e.data,t)})))),t.showTrendLines&&(n.trendLine=h(e.data)),n}))),[e,t.showMovingAverages,t.movingAveragePeriods,t.showTrendLines,d,h]);return{zoomLevel:n,panOffset:i,hoveredPoint:l,processedDatasets:S,handleZoom:p,handlePan:g,resetView:f,handlePointHover:b,handlePointLeave:v,calculateMovingAverage:d,calculateTrendLine:h,generateSmoothPath:m,setZoomLevel:a,setPanOffset:s,setHoveredPoint:c}}xs.displayName="HeatmapChart";const Ts=l(c((({datasets:a=[],config:r={},lineOptions:i={},onDataPointClick:o,onRealTimeUpdate:s,onZoomChange:l,onPanChange:c,onBrushSelection:d,...u},h)=>{const m={showDataPoints:!0,lineWidth:2,pointRadius:4,smooth:!1,tension:.4,showArea:!1,fillOpacity:.3,showPointLabels:!1,...i},{processedDatasets:p,generateSmoothPath:g,calculateMovingAverage:f,handlePointHover:b,handlePointLeave:v,hoveredPoint:S}=Ns(a,m);return e(hs,{ref:h,type:"line",datasets:p,config:r,renderContent:({scales:a,colors:r,datasets:i,handlers:o,hoveredPoint:s,toolbarState:l,config:c})=>{if(!i.length)return null;const d=l?.showTooltips??c?.showTooltips??!0;return l?.animationsEnabled??c?.animate??m.smooth,t(n,{children:[i.map(((n,i)=>{const l=n.color||r[i],c=n.data?.length||0;if(0===c)return null;const d=n.data?.map(((e,t)=>({x:a.xScale(t,c),y:a.yScale(e.value)})))||[],u=m.smooth?g(d):"M "+d.map((e=>`${e.x},${e.y}`)).join(" L ");return t("g",{children:[m.showArea&&e("path",{d:`${u} L ${d[d.length-1]?.x||0},${a.yScale(0)} L ${d[0]?.x||0},${a.yScale(0)} Z`,fill:l,fillOpacity:m.fillOpacity||.3,className:"c-chart__area-path"}),e("path",{d:u,stroke:l,strokeWidth:m.lineWidth||2,fill:"none",strokeLinecap:"round",strokeLinejoin:"round",className:"c-chart__line-path"}),m.showDataPoints&&n.data?.map(((n,r)=>{const d=a.xScale(r,c),u=a.yScale(n.value),h=s?.datasetIndex===i&&s?.pointIndex===r;return t("g",{children:[e("circle",{cx:d,cy:u,r:h?1.5*m.pointRadius:m.pointRadius,fill:l,stroke:"white",strokeWidth:h?2:1,className:"c-chart__data-point "+(h?"c-chart__data-point--hovered":""),onMouseEnter:e=>{const t=e.currentTarget.getBoundingClientRect();o.onPointHover(i,r,d,u,t.left+t.width/2,t.top+t.height/2)},onMouseLeave:o.onPointLeave,onClick:()=>o.onDataPointClick?.(n,i,r),style:{cursor:"pointer"}}),m.showPointLabels&&e("text",{x:d,y:u-15,textAnchor:"middle",fontSize:"12",fill:l,className:"c-chart__point-label",children:n.value})]},"point-"+r)}))]},"dataset-"+i)})),d&&s&&i[s.datasetIndex]?.data?.[s.pointIndex]&&e(ms,{dataPoint:i[s.datasetIndex].data[s.pointIndex],datasetLabel:i[s.datasetIndex]?.label,datasetColor:i[s.datasetIndex]?.color,position:{x:s.clientX,y:s.clientY},visible:!0})]})},onDataPointClick:o,interactive:!0,enableAccessibility:!0,...u})})));Ts.displayName="LineChart";const _s=l(c((({datasets:n=[],config:a={},yAxes:r=[],xAxes:i=[],multiAxisOptions:o={},onDataPointClick:s,...l},c)=>{const{showLegend:d=!0,legendPosition:u="top",syncAxes:h=!1,axisPadding:m=20,showTooltips:p=!0,tooltipPosition:g="nearest",interpolation:f="linear",showArea:b=!1,areaOpacity:v=.3,showDataPoints:S=!0,pointRadius:y=4,spanGaps:E=!1}=o;return e(hs,{ref:c,type:"line",datasets:n,config:a,renderContent:({scales:a,colors:o,datasets:s,handlers:l,hoveredPoint:c,toolbarState:h,config:m})=>{if(!n.length)return null;const p=h?.showGrid??!0,g=60,f=a.width-120,E=a.height-120,A=r.length?r:[{id:"y-axis-1",position:"left",label:"Y Axis"}],x=i.length?i:[{id:"x-axis-1",position:"bottom",label:"X Axis"}],N={};n.forEach(((e,t)=>{const n=e.yAxisId||A[0]?.id||"y-axis-1";N[n]||(N[n]=[]),N[n].push({...e,index:t})}));const T={};Object.entries(N).forEach((([e,t])=>{const n=t.flatMap((e=>e.data.map((e=>e.value)))),a=Math.min(...n),r=Math.max(...n),i=r-a||1;T[e]={min:a,max:r,scale:E/i}}));const _=[];if(p)for(let t=0;5>=t;t++){const n=g+t/5*E;_.push(e("line",{x1:g,y1:n,x2:g+f,y2:n,className:"c-chart__grid"},"grid-"+t))}if(n.forEach(((t,n)=>{const a=t.yAxisId||A[0]?.id||"y-axis-1",r=T[a],i=t.color||o[n%o.length],s=t.data.map(((e,n)=>({x:g+n/(t.data.length-1)*f,y:r?g+E-(e.value-r.min)*r.scale:0})));let c="";if(s.length>0&&(c="M "+s.map((e=>`${e.x},${e.y}`)).join(" L ")),b&&c){const t=`${c} L ${g+f},${g+E} L 60,${g+E} Z`;_.push(e("path",{d:t,fill:i,fillOpacity:v},"area-"+n))}_.push(e("path",{d:c,stroke:i,fill:"none",className:"c-chart__data-line"},"line-"+n)),S&&s.forEach(((a,r)=>{const o=t.data[r];o&&_.push(e("circle",{cx:a.x,cy:a.y,r:y,fill:i,onClick:()=>l.onDataPointClick?.(o,n,r)},`point-${n}-${r}`))}))})),A.forEach((t=>{_.push(e("line",{x1:g,y1:g,x2:g,y2:g+E,stroke:t.color||"var(--atomix-text-primary)",className:"c-chart__axis-line"},"y-axis-"+t.id))})),x.forEach((t=>{_.push(e("line",{x1:g,y1:g+E,x2:g+f,y2:g+E,stroke:t.color||"var(--atomix-text-primary)",className:"c-chart__axis-line"},"x-axis-"+t.id))})),d){const r="top"===u?20:a.height-30;n.forEach(((a,i)=>{const s=a.color||o[i%o.length],l=g+i*f/n.length;_.push(t("g",{children:[e("rect",{x:l,y:r,width:"12",height:"12",fill:s,className:"c-chart__legend-item-color"}),e("text",{x:l+16,y:r+10,className:"c-chart__legend-item-text",children:a.label})]},"legend-"+i))}))}return e("g",{children:_})},onDataPointClick:s,...l})})));function Cs(e,t={}){const[n,a]=r(null),[i,s]=r(new Set),[l,c]=r(0),[d,h]=r(!1),m=u((()=>{const n=e.filter((e=>"number"==typeof e.value&&!isNaN(e.value)&&isFinite(e.value)&&e.value>0));return n.length?t.sortByValue?[...n].sort(((e,t)=>t.value-e.value)):n:[]}),[e,t.sortByValue]),p=u((()=>Do(m).call(m,((e,t)=>e+t.value),0)),[m]),g=u((()=>{if(!m.length||0>=p)return[];const e=400,n=200,a=150,r=a*(t.innerRadius||0),i=["#7AFFD7","#1AFFD2","#00E6C3","#4DFF9F","#1AFF85","#00E66B","#DD6061","#FF1A1A","#E60000","#FFCC00","#E6B800","#B38F00"];let o=(t.startAngle||0)*Math.PI/180;const s=(t.padAngle||1)*Math.PI/180;return m.map(((t,l)=>{const c=t.value/p,d=2*c*Math.PI-s,u=o+d,h=o+d/2,m=e+a*Math.cos(o),g=n+a*Math.sin(o),f=e+a*Math.cos(u),b=n+a*Math.sin(u),v=d>Math.PI?1:0;let S;S=r>0?[`M ${m},${g}`,`A 150,150 0 ${v},1 ${f},${b}`,`L ${e+r*Math.cos(u)},${n+r*Math.sin(u)}`,`A ${r},${r} 0 ${v},0 ${e+r*Math.cos(o)},${n+r*Math.sin(o)}`,"Z"].join(" "):["M 400,200",`L ${m},${g}`,`A 150,150 0 ${v},1 ${f},${b}`,"Z"].join(" ");const y=(a+r)/2||105,E=e+y*Math.cos(h),A=n+y*Math.sin(h),x={dataPoint:t,index:l,startAngle:o,endAngle:u,midAngle:h,color:t.color||i[l%i.length],percentage:100*c,value:t.value,label:t.label,path:S,labelPosition:{x:E,y:A}};return o=u+s,x}))}),[m,p,t.innerRadius,t.startAngle,t.padAngle]),f=o((()=>{if(!t.enableAnimations)return;h(!0),c(0);const e=t.animationDuration||1e3,n=Date.now(),a=()=>{const t=Date.now()-n,r=Math.min(t/e,1);c(1-Math.pow(1-r,3)),1>r?requestAnimationFrame(a):h(!1)};requestAnimationFrame(a)}),[t.enableAnimations,t.animationDuration]),b=o(((e,t,n)=>{a(e)}),[]),v=o((()=>{a(null)}),[]),S=o((e=>{t.enableSelection&&s((t=>{const n=new Set(t);return n.has(e)?n.delete(e):n.add(e),n}))}),[t.enableSelection]),y=o((e=>{if(t.labelFormatter)return t.labelFormatter(e.value,e.percentage,e.label);const n=[];return!1!==t.showLabels&&n.push(e.label),t.showPercentages&&n.push(Math.round(e.percentage)+"%"),t.showValues&&n.push(e.value.toString()),n.join(" - ")}),[t]),E=o(((e,n)=>n&&t.enableHoverEffects&&t.hoverOffset?`translate(${Math.cos(e.midAngle)*t.hoverOffset}, ${Math.sin(e.midAngle)*t.hoverOffset})`:""),[t.enableHoverEffects,t.hoverOffset]),A=o((e=>i.has(e)),[i]);return{processedData:m,slices:g,totalValue:p,hoveredSlice:n,selectedSlices:i,animationProgress:l,isAnimating:d,handleSliceHover:b,handleSliceLeave:v,handleSliceClick:S,startAnimation:f,formatLabel:y,getSliceTransform:E,isSliceSelected:A,setHoveredSlice:a,setSelectedSlices:s,setAnimationProgress:c,setIsAnimating:h}}_s.displayName="MultiAxisChart";const Ls=l(c((({datasets:a=[],config:r={},pieOptions:i={},onDataPointClick:o,...s},l)=>{const c=a[0]?.data||[],{slices:d,handleSliceHover:u,handleSliceLeave:h,handleSliceClick:m,formatLabel:p,hoveredSlice:g,selectedSlices:f}=Cs(c,i);return e(hs,{ref:l,type:"pie",datasets:a,config:r,renderContent:({scales:a,colors:r,datasets:o,handlers:s,hoveredPoint:l,toolbarState:u,config:h})=>{if(!d.length)return null;const g=a.width,f=a.height,b=g/2,v=f/2,S=Math.min(g,f)/2*.8,y=d.map((e=>{const t=b+S*Math.cos(e.startAngle),n=v+S*Math.sin(e.startAngle),a=b+S*Math.cos(e.endAngle),r=v+S*Math.sin(e.endAngle),i=e.endAngle-e.startAngle,o=[`M ${b},${v}`,`L ${t},${n}`,`A ${S},${S} 0 ${i>Math.PI?1:0},1 ${a},${r}`,"Z"].join(" "),s=.7*S,l=b+s*Math.cos(e.midAngle),c=v+s*Math.sin(e.midAngle);return{...e,path:o,labelPosition:{x:l,y:c}}})),E=u?.showTooltips??h?.showTooltips??!0;return t(n,{children:[y.map(((n,a)=>{const r=l?.pointIndex===a;return t("g",{children:[e("path",{d:n.path,fill:n.color,className:"c-chart__pie-slice "+(r?"c-chart__pie-slice--hovered":""),onClick:()=>{m(a),s.onDataPointClick?.(n.dataPoint,0,a)},onMouseEnter:e=>{const t=e.currentTarget.getBoundingClientRect();s.onPointHover(0,a,n.labelPosition.x,n.labelPosition.y,t.left+t.width/2,t.top+t.height/2)},onMouseLeave:s.onPointLeave}),i.showLabels&&e("text",{x:n.labelPosition.x,y:n.labelPosition.y,textAnchor:"middle",className:"c-chart__pie-label",children:p(n)})]},"slice-"+a)})),E&&l&&c[l.pointIndex]&&e(ms,{dataPoint:c[l.pointIndex],datasetLabel:o[0]?.label,datasetColor:d[l.pointIndex]?.color,position:{x:l.clientX,y:l.clientY},visible:!0})]})},onDataPointClick:o,...s})})));Ls.displayName="PieChart";const Is=l(c((({datasets:a=[],config:r={},radarOptions:i={},onDataPointClick:o,...s},l)=>{const{gridLevels:c=5,showGrid:d=!0,showAxisLabels:u=!0,fillArea:h=!0,fillOpacity:m=.3,showDataPoints:p=!0,pointRadius:g=4,lineWidth:f=2,smooth:b=!1,scaleType:v="linear",scaleMin:S=0,scaleMax:y}=i;return e(hs,{ref:l,type:"radar",datasets:a,config:r,renderContent:({scales:a,colors:r,datasets:i,handlers:o,hoveredPoint:s,toolbarState:l,config:v})=>{if(!i.length)return null;const E=l?.showTooltips??v?.showTooltips??!0,A=a.width/2,x=a.height/2,N=.8*Math.min(A,x),T=i[0];if(!T)return null;const _=T.data||[],C=2*Math.PI/_.length;let L=S,I=y;if(void 0===L||void 0===I){const e=i.flatMap((e=>e.data?.map((e=>e.value))||[]));void 0===L&&(L=Math.min(S,...e)),void 0===I&&(I=Math.max(y||0,...e))}const w=I-L,O=[];if(d){for(let t=1;c>=t;t++){const n=N*t/c;O.push(e("circle",{cx:A,cy:x,r:n,className:"c-chart__radar-grid-line",fill:"none",stroke:"var(--atomix-border-color)",strokeWidth:"1"},"grid-circle-"+t))}for(let t=0;t<_.length;t++){const n=t*C-Math.PI/2,a=A+N*Math.cos(n),r=x+N*Math.sin(n);O.push(e("line",{x1:A,y1:x,x2:a,y2:r,className:"c-chart__radar-grid-line",stroke:"var(--atomix-border-color)",strokeWidth:"1"},"grid-radial-"+t))}}const R=[];if(u)for(let t=0;t<_.length;t++){const n=t*C-Math.PI/2,a=A+(N+20)*Math.cos(n),r=x+(N+20)*Math.sin(n);R.push(e("text",{x:a,y:r,textAnchor:"middle",dominantBaseline:"middle",className:"c-chart__radar-axis-label",children:_[t]?.label},"label-"+t))}const k=i.map(((n,a)=>{const i=n.color||r[a%r.length],l=[];for(let e=0;e<n.data?.length;e++){const t=n.data[e]?.value||0,a=N*(w>0?(t-L)/w:0),r=e*C-Math.PI/2,i=A+a*Math.cos(r),o=x+a*Math.sin(r);l.push({x:i,y:o,value:t,point:n.data[e]})}if(0===l.length||!l[0])return null;let c="";if(b&&l.length>2){c=`M ${l[0].x},${l[0].y}`;for(let e=1;e<l.length;e++)l[e]&&(c+=` L ${l[e].x},${l[e].y}`);c+=` L ${l[0].x},${l[0].y} Z`}else{c=`M ${l[0].x},${l[0].y}`;for(let e=1;e<l.length;e++)l[e]&&(c+=` L ${l[e].x},${l[e].y}`);c+=` L ${l[0].x},${l[0].y} Z`}return t("g",{children:[h&&e("path",{d:c,fill:i,fillOpacity:m,className:"c-chart__radar-area"}),e("path",{d:c,fill:"none",stroke:i,strokeWidth:f,className:"c-chart__radar-line"}),p&&l.map(((t,n)=>{const r=s?.datasetIndex===a&&s?.pointIndex===n;return e("g",{children:e("circle",{cx:t.x,cy:t.y,r:r?1.5*g:g,fill:i,className:"c-chart__radar-point "+(r?"c-chart__radar-point--hovered":""),onClick:()=>{t.point&&o.onDataPointClick?.(t.point,a,n)},onMouseEnter:e=>{const r=e.currentTarget.getBoundingClientRect();o.onPointHover(a,n,t.x,t.y,r.left+r.width/2,r.top+r.height/2)},onMouseLeave:o.onPointLeave})},`point-${a}-${n}`)}))]},"dataset-"+a)}));return t(n,{children:[t("g",{children:[O,k,R]}),E&&s&&i[s.datasetIndex]?.data?.[s.pointIndex]&&e(ms,{dataPoint:i[s.datasetIndex].data[s.pointIndex],datasetLabel:i[s.datasetIndex]?.label,datasetColor:i[s.datasetIndex]?.color||r[s.datasetIndex],position:{x:s.clientX,y:s.clientY},visible:!0})]})},onDataPointClick:o,...s})})));Is.displayName="RadarChart";const ws=l(c((({datasets:a=[],config:r={},scatterOptions:i={pointRadius:4,showLabels:!1,enableHoverEffects:!0},onDataPointClick:o,...s},l)=>e(hs,{ref:l,type:"scatter",datasets:a,config:r,renderContent:({scales:a,colors:r,datasets:o,handlers:s,hoveredPoint:l,toolbarState:c,config:d})=>{if(!o.length)return null;const u=c?.showTooltips??d?.showTooltips??!0,h=[];return o.forEach(((n,o)=>{const l=n.color||r[o%r.length];n.data?.forEach(((r,c)=>{const d=void 0!==r.x?a.padding.left+r.x/100*a.innerWidth:a.xScale(c,n.data?.length),u=void 0!==r.y?a.padding.top+a.innerHeight-r.y/100*a.innerHeight:a.yScale(r.value);h.push(t("g",{children:[e("circle",{cx:d,cy:u,r:r.size||i.pointRadius||4,fill:r.color||l,className:"c-chart__scatter-point",onClick:()=>s.onDataPointClick?.(r,o,c),onMouseEnter:e=>{if(i.enableHoverEffects){const t=Math.max(0,1.5*(r.size||i.pointRadius||4));e.currentTarget.setAttribute("r",t+"")}const t=e.currentTarget.getBoundingClientRect();s.onPointHover(o,c,d,u,t.left+t.width/2,t.top+t.height/2)},onMouseLeave:e=>{if(i.enableHoverEffects){const t=Math.max(0,r.size||i.pointRadius||4);e.currentTarget.setAttribute("r",t+"")}s.onPointLeave()}}),i.showLabels&&r.label&&e("text",{x:d,y:u-10,textAnchor:"middle",className:"c-chart__scatter-label",children:(r.label+"").replace(/[<>&"']/g,(e=>({"<":"<",">":">","&":"&",'"':""","'":"'"}[e]||e)))})]},`point-${o}-${c}`))}))})),t(n,{children:[h,u&&l&&o[l.datasetIndex]?.data?.[l.pointIndex]&&e(ms,{dataPoint:o[l.datasetIndex].data[l.pointIndex],datasetLabel:o[l.datasetIndex]?.label,datasetColor:o[l.datasetIndex]?.color||r[l.datasetIndex],position:{x:l.clientX,y:l.clientY},visible:!0})]})},onDataPointClick:o,...s}))));ws.displayName="ScatterChart";const Os={scheme:"category"},Rs={showLabels:!0,minSize:1e3,fontSize:12},ks={},Ms=l(c((({data:a=[],algorithm:i="squarified",colorConfig:s=Os,labelConfig:l=Rs,onDataPointClick:c,config:d=ks,...h},m)=>{const[p,g]=r(null),[f,b]=r(null);r({x:0,y:0}),u((()=>{if(!a.length)return null;const e=new Map;a.forEach((t=>e.set(t.id,t)));const t=[],n=new Set,r=e=>{if(n.has(e.id))return e;n.add(e.id);const t=a.filter((t=>t.parent===e.id));var i;return t.length>0&&(e.children=t.map((e=>r(e))),e.value=Do(i=e.children).call(i,((e,t)=>e+t.value),0)),e};return a.forEach((n=>{n.parent&&e.has(n.parent)||t.push(r(n))})),1===t.length?t[0]:{id:"root",label:"Root",value:Do(t).call(t,((e,t)=>e+t.value),0),children:t}}),[a]);const v=o(((e,t,n)=>{if(e.color)return e.color;const{scheme:r,palette:i}=s,o=i||["var(--atomix-primary)","var(--atomix-error)","var(--atomix-success)","var(--atomix-warning)","var(--atomix-primary-5)","var(--atomix-info)","var(--atomix-success-5)","var(--atomix-warning-7)","var(--atomix-primary-3)","var(--atomix-primary-7)"];switch(r){case"category":default:return o[n%o.length];case"depth":{const e=["var(--atomix-blue-9)","var(--atomix-blue-6)","var(--atomix-blue-5)","var(--atomix-blue-4)","var(--atomix-blue-2)"];return e[Math.min(t,e.length-1)]}case"value":if(a.length>0){const t=Math.max(...a.map((e=>e.value))),n=Math.min(...a.map((e=>e.value))),r=(e.value-n)/(t-n);return`hsl(${220+100*r}, 70%, ${30+40*r}%)`}return o[0]}}),[s,a]),S=o(((e,t,n,a,r)=>{if(0===e.length)return;const i=Do(e).call(e,((e,t)=>e+t.value),0);if(1===e.length){const i=e[0];return void(i&&(i.x=t,i.y=n,i.width=a,i.height=r))}const o=[...e].sort(((e,t)=>t.value-e.value)),s=e=>Math.max(e.width/e.height,e.height/e.width);let l=[],c=[...o],d=t,u=n,h=a,m=r,p=i;for(;c.length>0;){const e=c.shift();if(!e)break;l.push(e);const t=Do(l).call(l,((e,t)=>e+t.value),0),n=p>0?t/p:0;let a,r;m>h?(a=h,r=m*n):(a=h*n,r=m);let i=!1;if(c.length>0){const e=c[0];if(!e)break;const n=[...l,e],o=Do(n).call(n,((e,t)=>e+t.value),0),d=p>0?o/p:0;let u,g;m>h?(u=h,g=m*d):(u=h*d,g=m),i=Math.max(...l.filter((e=>e)).map((e=>{const n=e.value/t;return s({width:m>h?a*n:a,height:m>h?r:r*n})})))>=Math.max(...n.filter((e=>e)).map((e=>{const t=e.value/o;return s({width:m>h?u*t:u,height:m>h?g:g*t})})))}if(!i){let e=d,n=u;l.forEach((i=>{const o=i.value/t;m>h?(i.x=e,i.y=n,i.width=h*o,i.height=r,e+=i.width):(i.x=e,i.y=n,i.width=a,i.height=m*o,n+=i.height)})),m>h?(u+=r,m-=r):(d+=a,h-=a),p-=t,l=[]}}}),[]),y=o((({scales:r,colors:o,datasets:s,handlers:c,hoveredPoint:d,toolbarState:u,config:h})=>{if(!a.length)return null;const m=u?.showTooltips??h?.showTooltips??!0,y=Math.max(0,r.width),E=Math.max(0,r.height),A=a.filter((e=>!e.children||0===e.children.length));if(!A.length)return null;const x=Do(A).call(A,((e,t)=>e+t.value),0),N=A.map(((e,t)=>({id:e.id,label:e.label,value:e.value,color:v(e,0,t)||"transparent",x:0,y:0,width:0,height:0,depth:0,children:[],originalData:e})));if("squarified"===i&&x>0)S(N,0,0,y,E);else{const e=Math.ceil(Math.sqrt(A.length)),t=Math.ceil(A.length/e),n=y/e,a=E/t;N.forEach(((t,r)=>{const i=r%e,o=Math.floor(r/e);t.x=0+i*n,t.y=0+o*a,t.width=n,t.height=a}))}return t(n,{children:[N.map((n=>{const r=p===n,i=f===n,o=n.width*n.height,s=l.showLabels&&o>=(l.minSize||1e3);return t("g",{children:[e("rect",{x:n.x+2,y:n.y+2,width:Math.max(0,n.width-4),height:Math.max(0,n.height-4),rx:6,ry:6,fill:n.color,className:`c-chart__treemap-node ${r?"c-chart__treemap-node--hovered":""} ${i?"c-chart__treemap-node--selected":""}`,onClick:()=>{b(n),c.onDataPointClick?.(n.originalData,0,0)},onMouseEnter:e=>{g(n);const t=e.currentTarget.getBoundingClientRect(),r=a.indexOf(n.originalData);c.onPointHover(0,0>r?0:r,n.x,n.y,t.left+t.width/2,t.top+t.height/2)},onMouseLeave:()=>{g(null),c.onPointLeave()}}),s&&e("text",{x:n.x+n.width/2,y:n.y+n.height/2,textAnchor:"middle",dominantBaseline:"middle",className:"c-chart__treemap-label",style:{fontSize:l.fontSize},children:n.label})]},n.id)})),m&&d&&s[d.datasetIndex]?.data?.[d.pointIndex]&&e(ms,{dataPoint:s[d.datasetIndex].data[d.pointIndex],datasetLabel:s[d.datasetIndex]?.label,datasetColor:s[d.datasetIndex]?.color||o[d.datasetIndex%o.length],position:{x:d.clientX,y:d.clientY},visible:!0})]})}),[a,i,v,S,l,p,f]),E=u((()=>[{label:"Treemap Data",data:a}]),[a]);return e(hs,{ref:m,type:"treemap",datasets:E,config:d,renderContent:y,onDataPointClick:c,interactive:!0,...h})})));Ms.displayName="TreemapChart";const Ds=l(c((({waterfallData:t=[],config:n={},waterfallOptions:a={},onDataPointClick:r,...i},o)=>{const{showConnectors:s=!0,connectorColor:l="var(--atomix-gray-1)",connectorStyle:c="dashed",showValues:d=!0,valuePosition:u="top",colors:h={positive:"var(--atomix-success)",negative:"var(--atomix-error)",total:"var(--atomix-primary)",subtotal:"var(--atomix-secondary)"},barWidth:m=.6,showCumulativeLine:p=!1,cumulativeLineColor:g="var(--atomix-primary)",animate:f=!0,animationDuration:b=1e3,animationDelay:v=100,valueFormatter:S=e=>e.toLocaleString(),showBaseline:y=!0,baselineColor:E="var(--atomix-gray-2)"}=a;return e(hs,{ref:o,type:"waterfall",datasets:[{label:"Waterfall Data",data:t}],config:n,renderContent:({scales:n,colors:a,datasets:r,handlers:i,hoveredPoint:o,toolbarState:b,config:A})=>{if(!t.length)return null;const x=b?.animationsEnabled??A?.animate??f,N=60,T=n.width-120,_=n.height-120;let C=0;const L=t.map(((e,t)=>{const n="total"===e.type||"subtotal"===e.type?0:C;let a;return"total"===e.type||"subtotal"===e.type?(a=e.value,C=e.value):(a=C+e.value,C=a),{...e,startValue:n,endValue:a,cumulativeValue:C,index:t}})),I=L.flatMap((e=>[e.startValue,e.endValue])),w=Math.min(0,...I),O=Math.max(...I)-w,R=T/t.length*m,k=T/t.length,M=e=>N+e*k+k/2,D=e=>N+_-(e-w)/O*_,P=[];if(y){const t=D(0);P.push(e("line",{x1:N,y1:t,x2:n.width-N,y2:t,stroke:E,className:"c-chart__axis-line",opacity:"0.7"},"baseline"))}if(L.forEach(((t,n)=>{const a=M(n),r=Math.min(D(t.startValue),D(t.endValue)),o=Math.max(D(t.startValue),D(t.endValue)),m=o-r;let p=t.color;if(p||(p="total"===t.type?h.total:"subtotal"===t.type?h.subtotal:0>t.value?h.negative:h.positive),P.push(e("rect",{x:a-R/2,y:r,width:R,height:Math.max(m,2),fill:p,className:"c-chart__waterfall-bar "+(x?"c-chart__waterfall-bar--animated":""),style:{animationDelay:x?n*v+"ms":"0ms"},onClick:()=>i.onDataPointClick?.(t,0,n),onMouseEnter:e=>{const t=e.currentTarget.getBoundingClientRect();i.onPointHover(0,n,a,r,t.left+t.width/2,t.top+t.height/2)},onMouseLeave:i.onPointLeave},"bar-"+n)),d){let i=r,s=t.value;i="center"===u?r+m/2:"bottom"===u?o+15:r-5,"total"!==t.type&&"subtotal"!==t.type||(s=t.endValue),P.push(e("text",{x:a,y:i,textAnchor:"middle",dominantBaseline:"center"===u?"middle":"auto",className:"c-chart__waterfall-value "+("center"===u?"c-chart__waterfall-value--center":"c-chart__waterfall-value--outside"),children:S(s)},"value-"+n))}if(s&&n<L.length-1){const r=L[n+1];if(r){const i=D(t.endValue),o=D(r.startValue),s=M(n+1);if(Math.abs(t.endValue-r.startValue)>.01){const t="dashed"===c?"5,5":"dotted"===c?"2,2":"none";P.push(e("line",{x1:a+R/2,y1:i,x2:s-R/2,y2:o,stroke:l,strokeDasharray:t,className:"c-chart__waterfall-connector"},"connector-"+n))}}}})),p){const t=L.map(((e,t)=>({x:M(t),y:D(e.cumulativeValue)}))),n="M "+t.map((e=>`${e.x},${e.y}`)).join(" L ");P.push(e("path",{d:n,fill:"none",stroke:g,className:"c-chart__waterfall-cumulative-line"},"cumulative-line")),t.forEach(((t,n)=>{P.push(e("circle",{cx:t.x,cy:t.y,r:"4",fill:g,className:"c-chart__waterfall-cumulative-point"},"line-point-"+n))}))}return P.push(e("line",{x1:N,y1:n.height-N,x2:n.width-N,y2:n.height-N,stroke:"var(--atomix-gray-4)",strokeWidth:"2"},"x-axis")),P.push(e("line",{x1:N,y1:N,x2:N,y2:n.height-N,stroke:"var(--atomix-gray-4)",className:"c-chart__axis-line"},"y-axis")),L.forEach(((t,a)=>{const r=N+a*k+k/2;P.push(e("text",{x:r,y:n.height-N+20,textAnchor:"middle",className:"c-chart__axis-label",fill:"var(--atomix-gray-6)",transform:`rotate(-45, ${r}, ${n.height-N+20})`,children:t.label},"x-label-"+a))})),e("g",{children:P})},onDataPointClick:r,...i})})));function Ps(e){const t=((e??"")+"").replace(/[\r\n\t]/g," ").replace(/"/g,'""');return/^[=+\-@]/.test(t)?"'"+t:t}Ds.displayName="WaterfallChart";const Bs={sm:16,md:24,lg:32},zs=({className:t="",style:n,value:a,defaultValue:i="light",onChange:l,lightIcon:c,darkIcon:d,size:u="md",disabled:h=!1,storageKey:m="atomix-color-mode",dataAttribute:p="data-atomix-color-mode",disableStorage:g=!1,disableSystemPreference:f=!1,"aria-label":b,showTooltip:v=!0})=>{const S=void 0!==a,[y,E]=r(i),A=S?a:y;s((()=>{if(!S&&"undefined"!=typeof window){if(!g)try{const e=localStorage.getItem(m);if("light"===e||"dark"===e)return void E(e)}catch(e){}!f&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches&&E("dark")}}),[S,g,f,m]),s((()=>{if("undefined"==typeof window)return;const e="dark"===A?"dark":"light";if(document.body.setAttribute(p,e),!g)try{localStorage.setItem(m,e)}catch(t){}}),[A,p,g,m]),s((()=>{if(S||f||"undefined"==typeof window)return;const e=window.matchMedia("(prefers-color-scheme: dark)"),t=e=>{if(g)E(e.matches?"dark":"light");else try{localStorage.getItem(m)||E(e.matches?"dark":"light")}catch(t){}};return e.addEventListener("change",t),()=>{e.removeEventListener("change",t)}}),[S,f,g,m]);const x=o((()=>{if(h)return;const e="light"===A?"dark":"light";S||E(e),l?.(e)}),[h,A,S,l]),N=Bs[u],T="light"===A?"dark":"light",_=b||`Switch to ${T} mode`,C=v?`Switch to ${T} mode`:void 0,L=e("svg",{viewBox:"0 0 24 24",width:N,height:N,fill:"currentColor","aria-hidden":"true",children:e("path",{d:"M9.37 5.51c-.18.64-.27 1.31-.27 1.99 0 4.08 3.32 7.4 7.4 7.4.68 0 1.35-.09 1.99-.27C17.45 17.19 14.93 19 12 19c-3.86 0-7-3.14-7-7 0-2.93 1.81-5.45 4.37-6.49zM12 3c-4.97 0-9 4.03-9 9s4.03 9 9 9 9-4.03 9-9c0-.46-.04-.92-.1-1.36-.98 1.37-2.58 2.26-4.4 2.26-2.98 0-5.4-2.42-5.4-5.4 0-1.81.89-3.42 2.26-4.4-.44-.06-.9-.1-1.36-.1z"})}),I=e("svg",{viewBox:"0 0 24 24",width:N,height:N,fill:"currentColor","aria-hidden":"true",children:e("path",{d:"M12 7c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5zM2 13h2c.55 0 1-.45 1-1s-.45-1-1-1H2c-.55 0-1 .45-1 1s.45 1 1 1zm18 0h2c.55 0 1-.45 1-1s-.45-1-1-1h-2c-.55 0-1 .45-1 1s.45 1 1 1zM11 2v2c0 .55.45 1 1 1s1-.45 1-1V2c0-.55-.45-1-1-1s-1 .45-1 1zm0 18v2c0 .55.45 1 1 1s1-.45 1-1v-2c0-.55-.45-1-1-1s-1 .45-1 1zM5.99 4.58c-.39-.39-1.03-.39-1.41 0-.39.39-.39 1.03 0 1.41l1.06 1.06c.39.39 1.03.39 1.41 0 .39-.39.39-1.03 0-1.41L5.99 4.58zm12.37 12.37c-.39-.39-1.03-.39-1.41 0-.39.39-.39 1.03 0 1.41l1.06 1.06c.39.39 1.03.39 1.41 0 .39-.39.39-1.03 0-1.41l-1.06-1.06zm1.06-10.96c.39-.39.39-1.03 0-1.41-.39-.39-1.03-.39-1.41 0l-1.06 1.06c-.39.39-.39 1.03 0 1.41.39.39 1.03.39 1.41 0l1.06-1.06zM7.05 18.36c.39-.39.39-1.03 0-1.41-.39-.39-1.03-.39-1.41 0l-1.06 1.06c-.39.39-.39 1.03 0 1.41.39.39 1.03.39 1.41 0l1.06-1.06z"})});return e("button",{type:"button",className:`c-color-mode-toggle c-color-mode-toggle--${u} ${h?"c-color-mode-toggle--disabled":""} ${t}`,onClick:x,disabled:h,"aria-label":_,"aria-pressed":"dark"===A,title:C,style:n,children:"light"===A?c||L:d||I})};zs.displayName="ColorModeToggle";const Us=c((({target:n,show:i=["days","hours","minutes","seconds"],separator:o=":",focused:l=!1,className:c="",style:d,onComplete:u},h)=>{const m="string"==typeof n?new Date(n):n,[p,g]=r((()=>new Date)),[f,b]=r(!1);s((()=>{if(f)return;const e=setInterval((()=>{g(new Date)}),1e3);return()=>clearInterval(e)}),[f]);const v=m.getTime()-p.getTime(),{days:S,hours:y,minutes:E,seconds:A}=function(e){const t=Math.max(0,Math.floor(e/1e3));return{days:Math.floor(t/86400),hours:Math.floor(t%86400/3600),minutes:Math.floor(t%3600/60),seconds:t%60}}(v);s((()=>{v>0||f||(b(!0),u&&u())}),[v,f,u]);const x=[];return Ra(i).call(i,"days")&&x.push({label:"Days",value:S}),Ra(i).call(i,"hours")&&x.push({label:"Hours",value:y}),Ra(i).call(i,"minutes")&&x.push({label:"Minutes",value:E}),Ra(i).call(i,"seconds")&&x.push({label:"Seconds",value:A}),e("div",{ref:h,className:`c-countdown${l?" c-countdown--focused":""} ${c}`.trim(),style:d,children:x.map(((n,r)=>t(a.Fragment,{children:[t("div",{className:"c-countdown__time",children:[e("span",{className:"c-countdown__time-count",children:(n.value+"").padStart(2,"0")}),e("span",{className:"c-countdown__time-label",children:n.label})]}),r<x.length-1&&e("span",{className:"c-countdown__separator",children:o})]},n.label)))})}));function Fs(e,t){return"function"==typeof t?t(e):"string"==typeof t?e[t]:e.id??e.key??JSON.stringify(e)}Us.displayName="Countdown";const Gs="...",Vs=(e,t)=>Array.from({length:t-e+1},((t,n)=>n+e)),Hs=l((({type:t,onClick:n,disabled:a,label:r,iconName:i})=>e("li",{className:`c-pagination__item c-pagination__item--${t} ${a?"is-disabled":""}`,"aria-disabled":a,children:e("button",{type:"button",className:"c-pagination__link",onClick:n,disabled:a,"aria-label":r,children:e(no,{name:i,size:"sm","aria-hidden":"true"})})}))),$s=l((({currentPage:n=ur.currentPage,totalPages:a=ur.totalPages,onPageChange:i,siblingCount:o=ur.siblingCount,showFirstLastButtons:s=ur.showFirstLastButtons,showPrevNextButtons:l=ur.showPrevNextButtons,showSearch:c=!1,searchPlaceholder:d="Go to page",size:h=ur.size,className:m="",style:p,"aria-label":g="Pagination",glass:f})=>{const{paginationRange:b,goToPage:v,nextPage:S,prevPage:y,firstPage:E,lastPage:A}=(({currentPage:e,totalPages:t,siblingCount:n=1,onPageChange:a})=>{const r=u((()=>{if(n+5>=t)return Vs(1,t);const a=Math.max(e-n,1),r=Math.min(e+n,t),i=a>2,o=t-2>r,s=t;if(!i&&o)return[...Vs(1,3+2*n),Gs,t];if(i&&!o){let e=Vs(t-(3+2*n)+1,t);return[1,Gs,...e]}if(i&&o){let e=Vs(a,r);return[1,Gs,...e,Gs,s]}return[]}),[t,n,e]),i=n=>{1>n||n>t||n===e||a(n)};return{paginationRange:r,currentPage:e,totalPages:t,goToPage:i,nextPage:()=>{i(e+1)},prevPage:()=>{i(e-1)},firstPage:()=>{i(1)},lastPage:()=>{i(t)},DOTS:Gs}})({currentPage:n,totalPages:a,siblingCount:o,onPageChange:i}),[x,N]=r(""),[T,_]=r("");if(0===n||2>b.length)return null;const C=t("nav",{className:`c-pagination c-pagination--${h} ${m}`,style:p,"aria-label":g,children:[t("ul",{className:"c-pagination__items",children:[s&&e(Hs,{type:"first",onClick:E,disabled:1===n,label:"Go to first page",iconName:"SkipBack"}),l&&e(Hs,{type:"prev",onClick:y,disabled:1===n,label:"Go to previous page",iconName:"CaretLeft"}),b.map(((t,a)=>{if(t===Gs)return e("li",{className:"c-pagination__item c-pagination__item--dots","aria-hidden":"true",children:"…"},"dots-"+a);const r=t===n;return e("li",{className:"c-pagination__item "+(r?"is-active":""),"aria-current":r?"page":void 0,children:e("button",{type:"button",className:"c-pagination__link",onClick:()=>v(t),"aria-label":"Page "+t,"aria-current":r?"page":void 0,children:t})},t)})),l&&e(Hs,{type:"next",onClick:S,disabled:n===a,label:"Go to next page",iconName:"CaretRight"}),s&&e(Hs,{type:"last",onClick:A,disabled:n===a,label:"Go to last page",iconName:"SkipForward"})]}),c&&t("form",{className:"c-pagination__search",onSubmit:e=>{e.preventDefault(),_("");const t=parseInt(x,10);isNaN(t)?_("Please enter a valid page number"):1>t||t>a?_("Page must be between 1 and "+a):t!==n?(v(t),N("")):_("You are already on this page")},"aria-label":"Jump to page",children:[t("div",{className:"c-pagination__search-wrapper",children:[t("label",{htmlFor:"pagination-search-"+n,className:"c-pagination__search-label",children:[e("span",{className:"c-pagination__search-label-text",children:"Go to page:"}),e("input",{id:"pagination-search-"+n,type:"text",inputMode:"numeric",pattern:"[0-9]*",className:"c-pagination__search-input "+(T?"is-error":""),placeholder:d,value:x,onChange:e=>{const t=e.target.value;(""===t||/^\d+$/.test(t))&&(N(t),_(""))},"aria-label":"Page number","aria-invalid":T?"true":"false","aria-describedby":T?"pagination-error-"+n:void 0})]}),e("button",{type:"submit",className:"c-pagination__search-button","aria-label":"Go to page",children:e(no,{name:"ArrowRight",size:"sm","aria-hidden":"true"})})]}),T&&e("div",{id:"pagination-error-"+n,className:"c-pagination__search-error",role:"alert",children:T})]})]});if(f){const t={displacementScale:60,blurAmount:1,saturation:160,aberrationIntensity:.5,borderRadius:8,mode:"shader"},n=!0===f?t:{...t,...f};return e(Ri,{...n,children:C})}return C}));$s.displayName="Pagination",Hs.displayName="PaginationNavButton";const Ys=a.memo(c((({label:n,checked:a,onChange:r,className:o="",style:l,disabled:c=!1,required:d=!1,id:u,name:h,value:m,invalid:p=!1,valid:g=!1,indeterminate:f=!1,"aria-label":v,"aria-describedby":S,onClick:y,glass:E,...A},x)=>{const N=i(null);b(x,(()=>N.current)),s((()=>{N.current&&(N.current.indeterminate=!!f)}),[f]);let T="";p?T="is-error":g&&(T="is-valid");const _=`c-checkbox ${T} ${c?"is-disabled":""} ${f?"c-checkbox--mixed":""} ${E?"c-checkbox--glass":""} ${o}`.trim(),C=e("input",{ref:N,type:"checkbox",className:"c-checkbox__input",checked:a,onChange:r,onClick:y,disabled:c,required:d,id:u,name:h,value:m,"aria-label":n?void 0:v,"aria-describedby":S,"aria-invalid":p,...A});let L;if(L=u&&n?t("div",{className:_,style:l,children:[C,e("label",{className:"c-checkbox__label",htmlFor:u,children:n})]}):n?t("label",{className:_,style:l,children:[C,e("span",{className:"c-checkbox__label",children:n})]}):e("div",{className:_,style:l,children:C}),E){const t={displacementScale:40,blurAmount:1,saturation:160,aberrationIntensity:.3,borderRadius:6,mode:"shader"},n=!0===E?t:{...t,...E};return e(Ri,{...n,children:L})}return L})));Ys.displayName="Checkbox";const Ks=g({isOpen:!1,close:()=>{},id:"",trigger:"click"}),Ws=c((({children:t,className:n="",...a},r)=>{const{glass:i}=f(Zs),{id:o}=f(Ks);return e("ul",{ref:r,id:o+"-menu",className:`c-dropdown__menu ${i?"c-dropdown__menu--glass":""} ${n}`.trim(),role:"menu","aria-labelledby":o+"-trigger",...a,children:t})}));Ws.displayName="DropdownMenu";const js=c((({children:t,className:n="",onClick:a,onKeyDown:r,...i},o)=>{const{isOpen:s,id:l}=f(Ks);return e("div",{ref:o,id:l+"-trigger",className:("c-dropdown__toggle "+n).trim(),onClick:a,onKeyDown:r,"aria-haspopup":"true","aria-expanded":s,"aria-controls":l+"-menu",tabIndex:0,role:"button",...i,children:t})}));js.displayName="DropdownTrigger";const qs=l((({children:n,href:a,target:r,active:i=!1,disabled:o=!1,icon:s,onClick:l,className:c="",linkComponent:d,...u})=>{const{close:h}=f(Ks),m=e=>{o?e.preventDefault():(l&&l(e),h())},p=["c-dropdown__menu-item",i?"is-active":"",o?"is-disabled":"",c].filter(Boolean).join(" "),g={href:a,to:a,target:r,className:p,onClick:m,role:"menuitem",tabIndex:0,...u};return e("li",a&&!o?{children:t(d||"a",{...g,children:[s&&e("span",{className:"c-dropdown__menu-item-icon",children:s}),n]})}:{children:t("button",{type:"button",className:p,onClick:m,disabled:o,role:"menuitem",tabIndex:0,...u,children:[s&&e("span",{className:"c-dropdown__menu-item-icon",children:s}),n]})})}));qs.displayName="DropdownItem";const Qs=l((({className:t=""})=>e("li",{className:"c-dropdown__divider "+t,role:"separator"})));Qs.displayName="DropdownDivider";const Xs=l((({children:t,className:n=""})=>e("li",{className:"c-dropdown__header "+n,children:t})));Xs.displayName="DropdownHeader";const Zs=g({}),Js=l((function({children:n,menu:l,placement:c="bottom-start",trigger:d="click",offset:u=Nr.DEFAULTS.OFFSET,isOpen:h,onOpenChange:m,closeOnClickOutside:p=!0,closeOnEscape:g=!0,maxHeight:f,minWidth:b=Nr.DEFAULTS.MIN_WIDTH,variant:v,className:S="",style:y,glass:E,...A}){const[x,N]=r(!1),T=void 0!==h,_=T?h:x,C=i(null),L=i(null),I=i(null),w=i("dropdown-"+Math.random().toString(36).substring(2,9)).current,O=o((e=>{T||N(e),m&&m(e)}),[T,m]),R=o((()=>O(!_)),[_,O]),k=o((()=>{O(!1),setTimeout((()=>{L.current?.focus()}),0)}),[O]);s((()=>{if(!_||!p)return;const e=e=>{C.current&&!C.current.contains(e.target)&&k()};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)}),[_,p,k]),s((()=>{if(!_||!g)return;const e=e=>{"Escape"===e.key&&k()};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)}),[_,g,k]);const M=o((e=>{if(!I.current)return;const t=I.current.querySelectorAll('[role="menuitem"]:not([disabled])');if(!t.length)return;const n=Array.from(t).findIndex((e=>e===document.activeElement));switch(e.key){case"ArrowDown":e.preventDefault(),n<t.length-1?t[n+1]?.focus():t[0]?.focus();break;case"ArrowUp":e.preventDefault(),n>0?t[n-1]?.focus():t[t.length-1]?.focus();break;case"Home":e.preventDefault(),t[0]?.focus();break;case"End":e.preventDefault(),t[t.length-1]?.focus()}}),[]),D=o((e=>{"click"===d&&(e.preventDefault(),e.stopPropagation(),R())}),[d,R]),P=o((e=>{"Enter"!==e.key&&" "!==e.key&&"ArrowDown"!==e.key||_?"Escape"===e.key&&_&&(e.preventDefault(),k()):(e.preventDefault(),O(!0),"ArrowDown"===e.key&&I.current&&setTimeout((()=>{const e=I.current?.querySelector('[role="menuitem"]');e?.focus()}),100))}),[_,O,k]),B=o((()=>{"hover"===d&&O(!0)}),[d,O]),z=["c-dropdown","click"===d?"c-dropdown--onclick":"",v?"c-dropdown--"+v:"",_?"is-open":"",E?"c-dropdown--glass":"",S].filter(Boolean).join(" "),U={};let F,G;f&&(U.maxHeight=f),void 0!==b&&(U.minWidth="number"==typeof b?b+"px":b),a.Children.toArray(n).some((e=>{var t;return a.isValidElement(e)&&Ra(t=["DropdownTrigger","DropdownMenu"]).call(t,e.type.displayName||"")}))?a.Children.forEach(n,(e=>{if(a.isValidElement(e)){const t=e.type;if("DropdownTrigger"===t.displayName){const t={ref:L,onClick:t=>{D(t),e.props.onClick?.(t)},onKeyDown:t=>{P(t),e.props.onKeyDown?.(t)},"aria-haspopup":"menu","aria-expanded":_,"aria-controls":w,tabIndex:0};F=a.cloneElement(e,t)}else"DropdownMenu"===t.displayName&&(G=e)}})):(F=e("div",{ref:L,className:"c-dropdown__toggle",onClick:D,onKeyDown:P,"aria-haspopup":"menu","aria-expanded":_,"aria-controls":w,tabIndex:0,children:n}),G=e("ul",{className:"c-dropdown__menu "+(E?"c-dropdown__menu--glass":""),children:l}));const V=e("div",{className:"c-dropdown__menu-inner",style:U,children:e(Zs.Provider,{value:{glass:E},children:e(Ks.Provider,{value:{isOpen:_,close:k,id:w,trigger:d},children:G})})});return t("div",{ref:C,className:z,style:y,onMouseEnter:"hover"===d?B:void 0,...A,children:[F,e("div",{ref:I,id:w,className:`c-dropdown__menu-wrapper c-dropdown__menu-wrapper--${c} ${_?"is-open":""} ${E?"is-glass":""}`,role:"menu","aria-orientation":"vertical","aria-hidden":!_,onKeyDown:M,children:E?(()=>{const t={displacementScale:20,elasticity:0},n=!0===E?t:{...t,...E};return e(Ri,{...n,children:V})})():V})]})}));Js.displayName="Dropdown",Js.Trigger=js,Js.Menu=Ws,Js.Item=qs,Js.Divider=Qs,Js.Header=Xs;const el=l((({data:a,columns:l,className:c,style:d,sortable:h=!1,filterable:m=!1,paginated:p=!1,pageSize:g=10,striped:f=!1,bordered:b=!1,dense:v=!1,loading:S=!1,emptyMessage:y="No data available",onRowClick:E,onSort:A,selectionMode:x="none",selectedRowIds:N,onSelectionChange:T,rowKey:_,resizable:C=!1,reorderable:L=!1,onColumnReorder:I,showColumnVisibility:w=!1,onColumnVisibilityChange:O,stickyHeader:R=!1,stickyHeaderOffset:k="0px",virtualScrolling:M=!1,estimatedRowHeight:D=50,overscan:P=5,exportable:B=!1,exportFormats:z=["csv","excel","json"],exportFilename:U="data-table",onExport:F,columnFilters:G=!1,...V})=>{const H=i(null),$=i(null),[Y,K]=r(null),[W,j]=r({}),[q,Q]=r(null),[X,Z]=r(null),{displayData:J,sortConfig:ee,currentPage:te,totalPages:ne,handleSort:ae,handlePageChange:re,handleSearch:ie,selectedRowIds:oe,selectedRows:se,handleRowSelect:le,handleSelectAll:ce,isAllSelected:de,isIndeterminate:ue,visibleColumns:he,columnVisibility:me,handleColumnVisibilityToggle:pe,columnFilterValues:ge,handleColumnFilterChange:fe,clearColumnFilters:be}=function({data:e=[],columns:t=[],sortable:n=!1,paginated:a=!1,pageSize:i=10,onSort:l,initialSortConfig:c,selectionMode:d="none",selectedRowIds:h,onSelectionChange:m,rowKey:p,columnFilters:g=!1,reorderable:f=!1,onColumnReorder:b,onColumnVisibilityChange:v}){const[S,y]=r(c||null),[E,A]=r(1),[x,N]=r(""),[T,_]=r([]),C=h??T,[L,I]=r((()=>t.map((e=>e.key)))),[w,O]=r((()=>{const e={};return t.forEach((t=>{e[t.key]=!1!==t.visible})),e})),[R,k]=r({});s((()=>{const e=t.map((e=>e.key)),n=new Set(L),a=new Set(e);e.length===L.length&&e.every((e=>n.has(e)))&&L.every((e=>a.has(e)))||I(e)}),[t,L]),s((()=>{O((e=>{const n={...e};return t.forEach((e=>{e.key in n||(n[e.key]=!1!==e.visible)})),n}))}),[t]);const M=u((()=>L.map((e=>t.find((t=>t.key===e)))).filter((e=>void 0!==e&&!1!==w[e.key]))),[t,L,w]),D=o((e=>{if(!n)return;let t="asc";S&&S.key===e&&"asc"===S.direction&&(t="desc");const a={key:e,direction:t};y(a),l&&l(a)}),[n,S,l]),P=o((e=>{1>e||A(e)}),[]),B=o((e=>{N(e),A(1)}),[]),z=o(((e,t)=>{k((n=>({...n,[e]:t}))),A(1)}),[]),U=o((()=>{k({}),A(1)}),[]),F=u((()=>g?Object.entries(R).filter((([,e])=>null!=e&&""!==e)).map((([e,n])=>{const a=t.find((t=>t.key===e));return a&&a.filterable?{key:e,value:n,lowercaseValue:"string"==typeof n?n.toLowerCase():(n+"").toLowerCase(),column:a}:null})).filter((e=>null!==e)):[]),[g,R,t]),G=u((()=>{if(!x&&0===F.length)return e;const t=x?x.toLowerCase():"";return e.filter((e=>{if(x&&!M.some((n=>{var a;const r=e[n.key];return null!=r&&Ra(a=(r+"").toLowerCase()).call(a,t)})))return!1;for(let t=0;t<F.length;t++){const a=F[t];if(!a)continue;const{key:r,value:i,lowercaseValue:o,column:s}=a,l=e[r];if(null==l)return!1;var n;if(s.filterFunction){if(!s.filterFunction(l,i))return!1}else if(!Ra(n=(l+"").toLowerCase()).call(n,o))return!1}return!0}))}),[e,M,x,F]),V=u((()=>S&&n?[...G].sort(((e,t)=>{const n=e[S.key],a=t[S.key];return null==n?"asc"===S.direction?-1:1:null==a?"asc"===S.direction?1:-1:"string"==typeof n&&"string"==typeof a?"asc"===S.direction?n.localeCompare(a):a.localeCompare(n):"asc"===S.direction?n>a?1:-1:n>a?-1:1})):G),[G,S,n]),H=u((()=>{if(!a)return V;const e=(E-1)*i;return V.slice(e,e+i)}),[V,a,E,i]),$=u((()=>a?Math.max(1,Math.ceil(V.length/i)):1),[V.length,a,i]),Y=u((()=>"none"===d||0===C.length?[]:V.filter((e=>Ra(C).call(C,Fs(e,p))))),[V,C,d,p]),K=o(((e,t)=>{if("none"===d)return;let n;if(n="single"===d?t?[e]:[]:t?[...C,e]:C.filter((t=>t!==e)),h||_(n),m){const e=V.filter((e=>Ra(n).call(n,Fs(e,p))));m(e,n)}}),[d,C,h,m,V,p]),W=o((e=>{if("multiple"!==d)return;const t=e?H.map((e=>Fs(e,p))):[];if(h||_(t),m){const e=V.filter((e=>Ra(t).call(t,Fs(e,p))));m(e,t)}}),[d,H,V,h,m,p]),j=u((()=>"multiple"===d&&0!==H.length&&H.every((e=>Ra(C).call(C,Fs(e,p))))),[d,H,C,p]),q=u((()=>{if("multiple"!==d||0===H.length)return!1;const e=H.filter((e=>Ra(C).call(C,Fs(e,p)))).length;return e>0&&e<H.length}),[d,H,C,p]),Q=o((e=>{O((t=>{const n={...t,[e]:!t[e]};if(v){const e=Object.entries(n).filter((([,e])=>e)).map((([e])=>e));v(e)}return n}))}),[v]);return o(((e,t)=>{const n=[...L],[a]=n.splice(e,1);a&&(n.splice(t,0,a),I(n),b&&b(n))}),[L,b]),s((()=>{A(1)}),[e]),s((()=>{E>$&&$>0&&A(Math.max(1,$))}),[E,$]),{displayData:H,sortConfig:S,currentPage:E,totalPages:$,handleSort:D,handlePageChange:P,handleSearch:B,selectedRowIds:C,selectedRows:Y,handleRowSelect:K,handleSelectAll:W,isAllSelected:j,isIndeterminate:q,columnOrder:L,visibleColumns:M,columnVisibility:w,handleColumnVisibilityToggle:Q,columnFilterValues:R,handleColumnFilterChange:z,clearColumnFilters:U}}({data:a,columns:l,sortable:h,paginated:p,pageSize:g,onSort:A,selectionMode:x,selectedRowIds:N,onSelectionChange:T,rowKey:_,columnFilters:G,reorderable:L,onColumnReorder:I,onColumnVisibilityChange:O});s((()=>{const e={};he.forEach((t=>{if(t.width){const n=parseInt(t.width,10);isNaN(n)||(e[t.key]=n)}})),j(e)}),[he]);const ve=o(((e,t)=>{t.preventDefault(),t.stopPropagation(),K(e);const n=t.clientX,a=W[e]||100,r=t=>{const r=t.clientX-n,i=Math.max(50,a+r);j((t=>({...t,[e]:i})))},i=()=>{K(null),document.removeEventListener("mousemove",r),document.removeEventListener("mouseup",i)};document.addEventListener("mousemove",r),document.addEventListener("mouseup",i)}),[W]),Se=o((e=>{Q(e)}),[]),ye=o(((e,t)=>{e.preventDefault(),Z(t)}),[]),Ee=o(((e,t)=>{if(e.preventDefault(),null!==q&&q!==t&&I){const e=[...he.map((e=>e.key))],[n]=e.splice(q,1);n&&(e.splice(t,0,n),I(e))}Q(null),Z(null)}),[q,he,I]),Ae=o((e=>{F?F(e,J):function(e,t,n,a){const r=a||"data-table";switch(e){case"csv":!function(e,t,n="data-table.csv"){if(!e.length||!t.length)return;const a=t.map((e=>e.title||e.key)),r=e.map((e=>t.map((t=>{const n=e[t.key];return t.render,n??""})))),i=[a.map((e=>`"${Ps(e)}"`)).join(","),...r.map((e=>e.map((e=>`"${Ps(e)}"`)).join(",")))].join("\n"),o=new Blob([i],{type:"text/csv;charset=utf-8;"}),s=URL.createObjectURL(o),l=document.createElement("a");l.download=n.endsWith(".csv")?n:n+".csv",l.href=s,l.click(),URL.revokeObjectURL(s)}(t,n,r);break;case"excel":!function(e,t,n="data-table.xlsx"){if(!e.length||!t.length)return;const a=t.map((e=>e.title||e.key)),r=e.map((e=>t.map((t=>e[t.key]??"")))),i=[a.map((e=>`"${Ps(e)}"`)).join(","),...r.map((e=>e.map((e=>`"${Ps(e)}"`)).join(",")))].join("\n"),o=new Blob([i],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"}),s=URL.createObjectURL(o),l=document.createElement("a");l.download=n.endsWith(".xlsx")?n:n+".xlsx",l.href=s,l.click(),URL.revokeObjectURL(s)}(t,n,r);break;case"json":!function(e,t="data-table.json"){if(!e.length)return;const n=JSON.stringify(e,null,2),a=new Blob([n],{type:"application/json;charset=utf-8;"}),r=URL.createObjectURL(a),i=document.createElement("a");i.download=t.endsWith(".json")?t:t+".json",i.href=r,i.click(),URL.revokeObjectURL(r)}(t,r)}}(e,J,he,U)}),[J,he,U,F]),xe=[cr.base,f&&cr.striped,b&&cr.bordered,v&&cr.dense,S&&cr.loading,R&&cr.stickyHeader,c].filter(Boolean).join(" "),Ne={...d,...R&&{"--sticky-header-offset":k}};return t("div",{className:cr.container,style:Ne,...V,children:[m||B||w||G?t("div",{className:cr.toolbar,children:[t("div",{className:cr.toolbarLeft,children:[m&&e("div",{className:cr.search,children:e("input",{type:"text",placeholder:"Search...",className:cr.searchInput+" c-input",onChange:e=>ie(e.target.value),"aria-label":"Search table"})}),G&&Object.keys(ge).length>0&&e(Vo,{size:"sm",variant:"secondary",onClick:be,children:"Clear Filters"})]}),t("div",{className:cr.toolbarRight,children:[w&&e(Js,{trigger:"click",placement:"bottom-end",menu:e(n,{children:l.map((n=>e(qs,{onClick:e=>{e.preventDefault(),e.stopPropagation(),pe(n.key)},children:t("label",{style:{display:"flex",alignItems:"center",cursor:"pointer",width:"100%"},children:[e(Ys,{checked:!1!==me[n.key],onChange:()=>pe(n.key),onClick:e=>e.stopPropagation()}),e("span",{style:{marginLeft:"0.5rem"},children:n.title})]})},n.key)))}),children:t(Vo,{size:"sm",variant:"secondary",children:[e(no,{name:"Columns",size:"sm"}),"Columns"]})}),B&&e(Js,{trigger:"click",placement:"bottom-end",menu:t(n,{children:[Ra(z).call(z,"csv")&&e(qs,{onClick:()=>Ae("csv"),children:"Export as CSV"}),Ra(z).call(z,"excel")&&e(qs,{onClick:()=>Ae("excel"),children:"Export as Excel"}),Ra(z).call(z,"json")&&e(qs,{onClick:()=>Ae("json"),children:"Export as JSON"})]}),children:t(Vo,{size:"sm",variant:"secondary",children:[e(no,{name:"Download",size:"sm"}),"Export"]})})]})]}):null,e("div",{className:cr.tableWrapper,children:t("table",{ref:H,className:xe,children:[e("thead",{ref:$,className:cr.header,style:R?{position:"sticky",top:k,zIndex:10}:void 0,children:t("tr",{children:["none"===x?null:e("th",{className:`${cr.headerCell} ${cr.selectionCell}`,style:{width:"48px"},children:"multiple"===x&&e(Ys,{checked:de,indeterminate:ue,onChange:e=>ce(e.target.checked),"aria-label":"Select all rows"})}),he.map(((n,a)=>{const r=q===a,i=X===a;return t("th",{className:[cr.headerCell,!1!==n.sortable&&h?cr.sortable:"",r?cr.dragging:"",i?cr.dragOver:""].filter(Boolean).join(" "),style:{...W[n.key]&&{width:W[n.key]+"px"},...n.width&&!W[n.key]&&{width:n.width}},onClick:()=>!1!==n.sortable&&h?ae(n.key):null,onDragStart:L?()=>Se(a):void 0,onDragOver:L?e=>ye(e,a):void 0,onDrop:L?e=>Ee(e,a):void 0,draggable:L,"aria-sort":ee?.key===n.key?"asc"===ee.direction?"ascending":"descending":void 0,children:[t("div",{className:cr.headerContent,children:[e("span",{children:n.title}),t("div",{className:cr.headerActions,children:[!1!==n.sortable&&h&&e("span",{className:cr.sortIcon,children:ee?.key===n.key?"asc"===ee.direction?e(no,{name:"CaretUp",size:"sm"}):e(no,{name:"CaretDown",size:"sm"}):null}),G&&!1!==n.filterable&&e("input",{type:"text",className:cr.columnFilter,placeholder:"Filter...",value:ge[n.key]||"",onChange:e=>fe(n.key,e.target.value),onClick:e=>e.stopPropagation(),"aria-label":"Filter "+n.title})]})]}),C&&!1!==n.resizable&&e("div",{className:cr.resizeHandle,onMouseDown:e=>ve(n.key,e)})]},"header-"+n.key)}))]})}),S?e("tbody",{children:e("tr",{children:e("td",{colSpan:he.length+("none"!==x?1:0),className:cr.loadingCell,children:e("div",{className:cr.loadingIndicator,children:e(po,{size:"md",variant:"primary"})})})})}):0===J.length?e("tbody",{children:e("tr",{children:e("td",{colSpan:he.length+("none"!==x?1:0),className:cr.emptyCell,children:y})})}):e("tbody",{children:J.map(((n,a)=>{const r=function(e,t){return"function"==typeof t?t(e):"string"==typeof t?e[t]:e.id??e.key??JSON.stringify(e)}(n,_),i=Ra(oe).call(oe,r);return t("tr",{className:[cr.row,i?cr.rowSelected:""].filter(Boolean).join(" "),onClick:E?()=>E(n):void 0,tabIndex:E?0:void 0,role:E?"button":void 0,children:["none"!==x&&e("td",{className:`${cr.cell} ${cr.selectionCell}`,children:"multiple"===x?e(Ys,{checked:i,onChange:e=>le(r,e.target.checked),onClick:e=>e.stopPropagation(),"aria-label":"Select row "+(a+1)}):e("input",{type:"radio",checked:i,onChange:()=>le(r,!0),onClick:e=>e.stopPropagation(),name:"data-table-row-selection","aria-label":"Select row "+(a+1),className:"c-data-table__radio"})}),he.map((t=>e("td",{className:cr.cell,style:{...W[t.key]&&{width:W[t.key]+"px"},...t.width&&!W[t.key]&&{width:t.width}},children:t.render?t.render(n[t.key],n):n[t.key]},`cell-${r}-${t.key}`)))]},"row-"+r)}))})]})}),p&&ne>1?e("div",{className:cr.pagination,children:e($s,{currentPage:te,totalPages:ne,onPageChange:re,showFirstLastButtons:!0,showPrevNextButtons:!0,size:"sm","aria-label":"Data table pagination",className:"c-data-table__pagination"})}):null]})}));function tl(e){const t=new Date;return t.setMonth(e),t.toLocaleString("default",{month:"long"})}function nl(e,t){return new Date(e,t+1,0).getDate()}function al(e,t){if(!e)return"";const n=e.getDate(),a=e.getMonth()+1,r=e.getFullYear();return t.replace("yyyy",r.toString()).replace("MM",a.toString().padStart(2,"0")).replace("M",a.toString()).replace("dd",n.toString().padStart(2,"0")).replace("d",n.toString())}function rl({value:e,onChange:t,selectionMode:n="single",startDate:a,endDate:l,onRangeChange:c,format:d="MM/dd/yyyy",minDate:h,maxDate:m,inline:p=!1}={}){const[g,f]=r(p),[b,v]=r(e?al(e,d):""),[S,y]=r(a&&l?`${al(a,d)} - ${al(l,d)}`:a?al(a,d)+" - Select end date":""),[E,A]=r(e||a||new Date),[x,N]=r("days"),[T,_]=r(!a||a&&l?"start":"end"),C=i(null),L=i(null),I=u((()=>new Date),[]),w=E.getMonth(),O=E.getFullYear(),R=nl(O,w),k=new Date(O,w,1).getDay();s((()=>{"single"===n?v(e?al(e,d):""):(y(a&&l?`${al(a,d)} - ${al(l,d)}`:a?al(a,d)+" - Select end date":""),_(!a||a&&l?"start":"end"))}),[e,a,l,d,n]);const M=o((e=>{const r=new Date(O,w,e);if(!(h&&h>r||m&&r>m))if("single"===n)t&&t(r),v(al(r,d)),p||f(!1);else if("start"===T)c&&c({startDate:r,endDate:null}),y(al(r,d)+" - Select end date"),_("end");else{if(!a)return;a>r?(c&&c({startDate:r,endDate:a}),y(`${al(r,d)} - ${al(a,d)}`)):(c&&c({startDate:a,endDate:r}),y(`${al(a,d)} - ${al(r,d)}`)),p||f(!1),_("start")}}),[O,w,h,m,t,c,d,p,n,T,a]),D=o((()=>{A(new Date(O,w-1,1))}),[O,w]),P=o((()=>{A(new Date(O,w+1,1))}),[O,w]),B=o((()=>{A(new Date(O-1,w,1))}),[O,w]),z=o((()=>{A(new Date(O+1,w,1))}),[O,w]),U=o((()=>{N("months")}),[]),F=o((()=>{N("years")}),[]),G=o((e=>{A(new Date(O,e,1)),N("days")}),[O]),V=o((e=>{A(new Date(e,w,1)),N("months")}),[w]),H=o((()=>{A(new Date(O-12,w,1))}),[O,w]),$=o((()=>{A(new Date(O+12,w,1))}),[O,w]),Y=o((()=>{N("days")}),[]),K=o((()=>{const e=new Date;A(e),"single"===n?M(e.getDate()):A(new Date)}),[M,n]),W=o((()=>{"single"===n?(v(""),t&&t(null)):(y(""),_("start"),c&&c({startDate:null,endDate:null}))}),[t,c,n]),j=o((e=>{if("single"===n){v(e.target.value);const n=new Date(e.target.value);isNaN(n.getTime())||(t&&t(n),A(n))}else{y(e.target.value);const t=e.target.value.split("-");if(2===t.length){const e=t[0]?.trim(),n=t[1]?.trim();if(!e||!n)return;const a=new Date(e);if(isNaN(a.getTime())||A(a),e&&n){const t=new Date(e),a=new Date(n);isNaN(t.getTime())||isNaN(a.getTime())||c&&c({startDate:t,endDate:a})}}}}),[t,c,n]),q=o((()=>{p||f(!0)}),[p]),Q=o((e=>{C.current&&!C.current.contains(e.target)&&L.current&&!L.current.contains(e.target)&&f(!1)}),[]);s((()=>(g&&!p?document.addEventListener("mousedown",Q):document.removeEventListener("mousedown",Q),()=>{document.removeEventListener("mousedown",Q)})),[g,Q,p]);const X=o((()=>{const e=[],t=nl(0===w?O-1:O,0===w?11:w-1);for(let a=k-1;a>=0;a--)e.push({day:t-a,month:0===w?11:w-1,year:0===w?O-1:O,isCurrentMonth:!1});for(let a=1;R>=a;a++)e.push({day:a,month:w,year:O,isCurrentMonth:!0});const n=42-e.length;for(let a=1;n>=a;a++)e.push({day:a,month:11===w?0:w+1,year:11===w?O+1:O,isCurrentMonth:!1});return e}),[R,k,w,O]),Z=o((()=>{const e=[];for(let t=0;12>t;t++)e.push({month:t,name:tl(t)});return e}),[]),J=o((()=>{const e=[],t=O-6;for(let n=0;12>n;n++)e.push(t+n);return e}),[O]),ee=o(((e,t,n)=>function(e,t,n){return!(!e||t&&t>e||n&&e>n)}(new Date(e,t,n),h,m)),[h,m]),te=o(((t,r,i)=>{if("single"===n)return!!e&&e.getFullYear()===t&&e.getMonth()===r&&e.getDate()===i;if(!a&&!l)return!1;if(a&&!l)return a.getFullYear()===t&&a.getMonth()===r&&a.getDate()===i;if(a&&l){const e=a.getFullYear()===t&&a.getMonth()===r&&a.getDate()===i,n=l.getFullYear()===t&&l.getMonth()===r&&l.getDate()===i;return e||n}return!1}),[e,n,a,l]),ne=o(((e,t,r)=>{if("range"!==n||!a||!l)return!1;const i=new Date(e,t,r);return i>a&&l>i}),[n,a,l]),ae=o(((e,t,n)=>I.getFullYear()===e&&I.getMonth()===t&&I.getDate()===n),[I]),re=o((e=>{const t=new Date(e.valueOf()),n=(e.getDay()+6)%7;t.setDate(t.getDate()-n+3);const a=t.valueOf();return t.setMonth(0,1),4!==t.getDay()&&t.setMonth(0,1+(4-t.getDay()+7)%7),1+Math.ceil((a-t.valueOf())/6048e5)}),[]);return{isOpen:g,inputValue:b,rangeInputValue:S,viewDate:E,viewMode:x,currentMonth:w,currentYear:O,selectionMode:n,rangeSelectionState:T,datePickerRef:C,inputRef:L,startDate:a,endDate:l,setIsOpen:f,handleDateSelect:M,handlePrevMonth:D,handleNextMonth:P,handlePrevYear:B,handleNextYear:z,handleTodayClick:K,handleClear:W,handleInputChange:j,handleInputFocus:q,switchToMonthView:U,switchToYearView:F,switchToDayView:Y,selectMonth:G,selectYear:V,handlePrevDecade:H,handleNextDecade:$,generateDays:X,generateMonths:Z,generateYears:J,isDateSelectable:ee,isDateSelected:te,isDateInSelectedRange:ne,isToday:ae,getWeekNumber:re}}el.displayName="DataTable";const il=c((({value:a,onChange:r,selectionMode:i="single",startDate:o,endDate:s,onRangeChange:l,format:c="MM/dd/yyyy",minDate:d,maxDate:u,placeholder:h="Select date...",disabled:m=!1,readOnly:p=!1,clearable:g=!0,showTodayButton:f=!0,showWeekNumbers:v=!1,inline:S=!1,id:y,name:E,className:A="",placement:x="bottom-start",inputClassName:N="",size:T="md",style:_,glass:C,...L},I)=>{const{isOpen:w,inputValue:O,rangeInputValue:R,viewMode:k,currentMonth:M,currentYear:D,selectionMode:P,rangeSelectionState:B,datePickerRef:z,inputRef:U,startDate:F,endDate:G,setIsOpen:V,handleInputChange:H,handleInputFocus:$,handleClear:Y,handleDateSelect:K,handleTodayClick:W,handlePrevMonth:j,handleNextMonth:q,handlePrevYear:Q,handleNextYear:X,switchToMonthView:Z,switchToYearView:J,switchToDayView:ee,selectMonth:te,selectYear:ne,handlePrevDecade:ae,handleNextDecade:re,generateDays:ie,generateMonths:oe,generateYears:se,isDateSelectable:le,isDateSelected:ce,isDateInSelectedRange:de,isToday:ue,getWeekNumber:he}=rl({value:a,onChange:r,selectionMode:i,startDate:o,endDate:s,onRangeChange:l,minDate:d,maxDate:u,format:c,inline:S});b(I,(()=>({open:()=>V(!0),close:()=>V(!1),clear:Y,focus:()=>U.current?.focus()})));const me=`c-datepicker ${A} ${S?"c-datepicker--inline":""}`.trim(),pe=`c-datepicker__input c-input c-input--${T} ${N}`.trim(),ge=y||"datepicker-"+Math.random().toString(36).substring(2,9),fe=ge+"-calendar",be="single"===i?O:R,ve=e=>["January","February","March","April","May","June","July","August","September","October","November","December"][e]||"",Se=()=>t(n,{children:[t("div",{className:"c-datepicker__header",children:["days"===k&&t(n,{children:[e("button",{type:"button",className:"c-datepicker__nav-button c-datepicker__nav-button--prev-year",onClick:Q,"aria-label":"Previous year",children:e(no,{name:"CaretDoubleLeft",size:"sm"})}),e("button",{type:"button",className:"c-datepicker__nav-button c-datepicker__nav-button--prev-month",onClick:j,"aria-label":"Previous month",children:e(no,{name:"CaretLeft",size:"sm"})}),t("button",{type:"button",className:"c-datepicker__view-switch",onClick:Z,"aria-label":`${ve(M)} ${D}`,children:[ve(M)," ",D]}),e("button",{type:"button",className:"c-datepicker__nav-button c-datepicker__nav-button--next-month",onClick:q,"aria-label":"Next month",children:e(no,{name:"CaretRight",size:"sm"})}),e("button",{type:"button",className:"c-datepicker__nav-button c-datepicker__nav-button--next-year",onClick:X,"aria-label":"Next year",children:e(no,{name:"CaretDoubleRight",size:"sm"})})]}),"months"===k&&t(n,{children:[e("button",{type:"button",className:"c-datepicker__nav-button c-datepicker__nav-button--prev-year",onClick:Q,"aria-label":"Previous year",children:e(no,{name:"CaretDoubleLeft",size:"sm"})}),e("button",{type:"button",className:"c-datepicker__view-switch",onClick:J,"aria-label":"Year "+D,children:D}),e("button",{type:"button",className:"c-datepicker__nav-button c-datepicker__nav-button--next-year",onClick:X,"aria-label":"Next year",children:e(no,{name:"CaretDoubleRight",size:"sm"})})]}),"years"===k&&(()=>{const a=se();return t(n,{children:[e("button",{type:"button",className:"c-datepicker__nav-button c-datepicker__nav-button--prev-decade",onClick:ae,"aria-label":"Previous decade",children:e(no,{name:"CaretDoubleLeft",size:"sm"})}),t("button",{type:"button",className:"c-datepicker__view-switch",onClick:ee,children:[a[0]," - ",a[a.length-1]]}),e("button",{type:"button",className:"c-datepicker__nav-button c-datepicker__nav-button--next-decade",onClick:re,"aria-label":"Next decade",children:e(no,{name:"CaretDoubleRight",size:"sm"})})]})})()]}),t("div",{className:"c-datepicker__body",children:["days"===k&&t(n,{children:[t("div",{className:"c-datepicker__weekdays"+(v?" c-datepicker__weekdays--has-weeknumber":""),role:"row",children:[v&&e("div",{className:"c-datepicker__weekday",children:"Wk"}),["Su","Mo","Tu","We","Th","Fr","Sa"].map((t=>e("div",{className:"c-datepicker__weekday",role:"columnheader",children:t},t)))]}),e("div",{className:"c-datepicker__days"+(v?" c-datepicker__days--has-weeknumber":""),role:"grid",children:(()=>{const t=[],n=ie();for(let a=0;a<n.length;a++){const r=n[a];if(!r)continue;const i=new Date(r.year,r.month,r.day),o=le(r.year,r.month,r.day),s=ce(r.year,r.month,r.day),l=ue(r.year,r.month,r.day),c=de(r.year,r.month,r.day);if(v&&a%7==0){const n=he(i);t.push(e("div",{className:"c-datepicker__weeknumber",role:"rowheader",children:n},"weeknumber-"+Math.floor(a/7)))}t.push(e("button",{type:"button",className:`c-datepicker__day\n ${r.isCurrentMonth?"":"c-datepicker__day--outside"}\n ${s?"c-datepicker__day--selected":""}\n ${c?"c-datepicker__day--in-range":""}\n ${l?"c-datepicker__day--today":""}\n ${o?"":"c-datepicker__day--disabled"}`,onClick:()=>o&&K(r.day),disabled:!o,tabIndex:r.isCurrentMonth?0:-1,"aria-label":i.toLocaleDateString(),"aria-selected":s?"true":"false",role:"gridcell",children:r.day},"day-"+a))}return t})()})]}),"months"===k&&e("div",{className:"c-datepicker__months",role:"grid",children:oe().map(((t,n)=>{const r=a&&a.getMonth()===t.month&&a.getFullYear()===D;return e("button",{type:"button",className:"c-datepicker__month "+(r?"c-datepicker__month--selected":""),onClick:()=>te(t.month),"aria-selected":r?"true":"false",role:"gridcell",children:t.name.substring(0,3)},"month-"+n)}))}),"years"===k&&e("div",{className:"c-datepicker__years",role:"grid",children:se().map(((t,n)=>{const r=a&&a.getFullYear()===t;return e("button",{type:"button",className:"c-datepicker__year "+(r?"c-datepicker__year--selected":""),onClick:()=>ne(t),"aria-selected":r?"true":"false",role:"gridcell",children:t},"year-"+n)}))})]}),"days"===k&&t("div",{className:"c-datepicker__footer",children:["range"===i&&t("div",{className:"c-datepicker__range-status c-badge c-badge--sm c-badge--info u-w-100",children:["Selecting ","start"===B?"start":"end"," date"]}),f&&e("button",{type:"button",className:"c-datepicker__today-button c-btn c-btn--sm c-btn--outline-primary",onClick:W,"aria-label":"Go to today",children:"Today"}),!S&&e("button",{type:"button",className:"c-datepicker__close-button c-btn c-btn--sm c-btn--outline-error",onClick:()=>V(!1),"aria-label":"Close calendar",children:"Close"})]})]});return t("div",{className:me,ref:z,style:_,...L,children:[!S&&t("div",{className:"c-datepicker__input-wrapper",children:[e("input",{id:ge,name:E,ref:U,type:"text",className:pe,placeholder:"single"===i?h:"start"===B?"Select start date...":F?al(F,c)+" - Select end date...":"Select date range...",value:be,onChange:H,onFocus:$,disabled:m,readOnly:p,"aria-haspopup":"dialog","aria-expanded":w,"aria-controls":fe}),g&&be&&e("button",{type:"button",className:"c-datepicker__clear-button",onClick:Y,"aria-label":"Clear date",children:e(no,{name:"X",size:"sm"})}),e("span",{className:"c-datepicker__calendar-icon","aria-hidden":"true",children:e(no,{name:"Calendar",size:"sm",color:"var(--atomix-secondary-text-emphasis)"})})]}),(w||S)&&e(n,{children:e("div",C?{id:fe,className:`c-datepicker__calendar c-datepicker__calendar--${x} c-datepicker__calendar--glass`,role:"dialog","aria-modal":S?void 0:"true","aria-label":"Date picker",children:e(Ri,{...!0===C?{displacementScale:20}:C,children:e("div",{className:"c-datepicker__glass-content",children:Se()})})}:{id:fe,className:"c-datepicker__calendar c-datepicker__calendar--"+x,role:"dialog","aria-modal":S?void 0:"true","aria-label":"Date picker",children:Se()})})]})}));function ol(e){const{position:t="start",mode:n="slide",isOpen:a=!1,backdrop:l=!0,closeOnBackdropClick:c=!0,closeOnEscape:d=!0,glass:u,onOpenChange:h,className:m=""}=e||{},[p,g]=r(a||!1),f=i(null),b=i(null),v=o((()=>{if(!f.current||"push"!==n)return;const e="top"===t||"bottom"===t?f.current.clientHeight:f.current.clientWidth;let a;switch(t){case"start":a="paddingLeft";break;case"end":a="paddingRight";break;default:a="padding"+(t.charAt(0).toUpperCase()+t.slice(1))}document.body.style[a]=e+"px",document.body.classList.add("is-pushed")}),[n,t]),S=o((()=>{if("push"!==n)return;let e;switch(t){case"start":e="paddingLeft";break;case"end":e="paddingRight";break;default:e="padding"+(t.charAt(0).toUpperCase()+t.slice(1))}document.body.style[e]="",document.body.classList.remove("is-pushed")}),[n,t]),y=o(((e=!1)=>{if(g(!0),document.body.classList.add("is-edgepanel-open"),f.current){if("none"!==n)if(e){f.current.classList.add("is-fade-animating"),f.current.offsetHeight;const e=f.current;setTimeout((()=>{e&&e.classList.remove("is-fade-animating")}),lr.ANIMATION_DURATION)}else{f.current.classList.add("is-animating"),f.current.offsetHeight;const e=f.current;setTimeout((()=>{e&&e.classList.remove("is-animating")}),lr.ANIMATION_DURATION)}e?(f.current.style.opacity="1",f.current.style.transform=""):f.current.style.transform="translate(0)","push"===n&&v()}h&&h(!0)}),[n,v,h]),E=o(((e=!1)=>{if(f.current){if("none"!==n)if(e){f.current.classList.add("is-fade-animating-out");const e=f.current;setTimeout((()=>{e&&e.classList.remove("is-fade-animating-out")}),lr.ANIMATION_DURATION)}else{f.current.classList.add("is-animating-out");const e=f.current;setTimeout((()=>{e&&e.classList.remove("is-animating-out")}),lr.ANIMATION_DURATION)}e?(f.current.style.opacity="0",f.current.style.transform=""):f.current.style.transform=t?lr.TRANSFORM_VALUES[t]:"","push"===n&&S(),setTimeout((()=>{g(!1),document.body.classList.remove("is-edgepanel-open"),h&&h(!1)}),"none"===n?0:lr.ANIMATION_DURATION)}else g(!1),document.body.classList.remove("is-edgepanel-open"),h&&h(!1)}),[n,t,h,S]),A=o((e=>{d&&"Escape"===e.key&&p&&E()}),[E,d,p]),x=o((e=>{c&&e.target===e.currentTarget&&E()}),[E,c]);return s((()=>(p&&d&&document.addEventListener("keydown",A),()=>{document.removeEventListener("keydown",A)})),[p,A,d]),s((()=>{f.current&&(p||"slide"!==n&&"push"!==n||!t||(f.current.style.transform=lr.TRANSFORM_VALUES[t],u&&(f.current.style.opacity="0")))}),[n,t,u,p]),s((()=>{void 0!==a&&a!==p&&(a?y(!!u):E(!!u))}),[a,E,p,y,u]),{isOpen:p,containerRef:f,backdropRef:b,generateEdgePanelClass:e=>{const{position:n=t,className:a=m,isOpen:r}=e,i=lr.CLASSES.BASE;return`${i} ${n?`${i}--${n}`:""} ${r??p?lr.CLASSES.IS_OPEN:""} ${a}`.trim()},openPanel:y,closePanel:E,handleBackdropClick:x}}il.displayName="DatePicker";const sl=c((({children:t,className:n="",...a},r)=>e("div",{ref:r,className:("c-edge-panel__header "+n).trim(),...a,children:t})));sl.displayName="EdgePanelHeader";const ll=c((({children:t,className:n="",...a},r)=>e("div",{ref:r,className:("c-edge-panel__body "+n).trim(),...a,children:t})));ll.displayName="EdgePanelBody";const cl=c((({children:t,className:n="",...a},r)=>e("div",{ref:r,className:("c-edge-panel__footer "+n).trim(),...a,children:t})));cl.displayName="EdgePanelFooter";const dl=c((({className:t="",onClick:n,...a},r)=>e("button",{ref:r,className:("c-edge-panel__close c-btn c-btn--icon "+t).trim(),onClick:n,"aria-label":"Close panel",...a,children:e(no,{name:"X"})})));dl.displayName="EdgePanelCloseButton";const ul=l((({title:r,children:o,position:s="start",mode:l="slide",isOpen:c=!1,onOpenChange:d,backdrop:u=!0,closeOnBackdropClick:h=!0,closeOnEscape:m=!0,className:p="",style:g,glass:f})=>{const{isOpen:b,containerRef:v,backdropRef:S,generateEdgePanelClass:y,closePanel:E,handleBackdropClick:A}=ol({position:s,mode:l,isOpen:c,onOpenChange:d,backdrop:u,closeOnBackdropClick:h,closeOnEscape:m,glass:f}),x=i(null),N=y({position:s,isOpen:c,className:f?p+" c-edge-panel--glass":p});if(!b&&!1===c)return null;const T={elasticity:0},_=!0===f?T:{...T,...f},C=a.Children.toArray(o).some((e=>{var t;return a.isValidElement(e)&&Ra(t=["EdgePanelHeader","EdgePanelBody","EdgePanelFooter"]).call(t,e.type.displayName||"")}))?o:t(n,{children:[t("div",{className:"c-edge-panel__header",children:[e("h4",{children:r}),e("button",{className:"c-edge-panel__close c-btn c-btn--icon",onClick:()=>E(),"aria-label":"Close panel",children:e(no,{name:"X"})})]}),e("div",{className:"c-edge-panel__body",children:o})]});return t("div",{className:N,"data-position":s,"data-mode":l,style:g,children:[u&&e("div",{ref:S,className:"c-edge-panel__backdrop",onClick:A}),e("div",{ref:v,className:"c-edge-panel__container",children:f?e(Ri,{..._,children:e("div",{ref:x,className:"c-edge-panel__glass-content",style:{borderRadius:v.current?.style.borderRadius},children:C})}):C})]})}));function hl(e){const t={disabled:!1,...e};return{defaultProps:t,generateFormClass:e=>{const{disabled:n=t.disabled,className:a=""}=e,r=n?mr.CLASSES.DISABLED:"";return`${mr.CLASSES.BASE} ${r} ${a}`.trim()},handleSubmit:e=>n=>{n.preventDefault(),!t.disabled&&e&&e(n)},handleReset:e=>n=>{!t.disabled&&e&&e(n)}}}ul.displayName="EdgePanel",ul.Header=sl,ul.Body=ll,ul.Footer=cl,ul.CloseButton=dl;const ml=({children:t,onSubmit:n,onReset:a,className:r="",style:i,disabled:o=!1,id:s,method:l="post",encType:c,noValidate:d=!1,autoComplete:u="on"})=>{const{generateFormClass:h,handleSubmit:m,handleReset:p}=hl({disabled:o}),g=h({className:r,disabled:o});return e("form",{id:s,className:g,style:i,onSubmit:m(n),onReset:p(a),method:l,encType:c,noValidate:d,autoComplete:u,children:t})};function pl(e){const t={size:"md",disabled:!1,invalid:!1,valid:!1,...e};return{defaultProps:t,generateFormGroupClass:e=>{const{size:n=t.size,disabled:a=t.disabled,invalid:r=t.invalid,valid:i=t.valid,className:o=""}=e,s="md"===n?"":"sm"===n?pr.CLASSES.SMALL:pr.CLASSES.LARGE,l=r?pr.CLASSES.INVALID:i?pr.CLASSES.VALID:"",c=a?pr.CLASSES.DISABLED:"";return`${pr.CLASSES.BASE} ${s} ${l} ${c} ${o}`.trim()}}}ml.displayName="Form";const gl=({children:n,label:a,helperText:r,htmlFor:i,className:o="",style:s,disabled:l=!1,required:c=!1,invalid:d=!1,valid:u=!1,size:h="md"})=>{const{generateFormGroupClass:m}=pl({size:h,disabled:l,invalid:d,valid:u}),p=m({className:o,disabled:l,invalid:d,valid:u,size:h});return t("div",{className:p,style:s,children:[a&&t("label",{className:"c-form-group__label",htmlFor:i,children:[a,c&&e("span",{className:"c-form-group__required",children:"*"})]}),e("div",{className:"c-form-group__field",children:n}),r&&e("div",{className:"c-form-group__helper",children:r})]})};function fl(e){const t={size:"md",disabled:!1,invalid:!1,valid:!1,...e};return{defaultProps:t,generateInputClass:e=>{const{size:n=t.size,variant:a=t.variant,disabled:r=t.disabled,invalid:i=t.invalid,valid:o=t.valid,className:s="",type:l}=e,c="md"===n?"":"sm"===n?gr.CLASSES.SMALL:gr.CLASSES.LARGE,d=a?"c-input--"+a:"",u="textarea"===l?"c-input--textarea":"";let h="";i?h=gr.CLASSES.INVALID:o&&(h=gr.CLASSES.VALID);const m=r?gr.CLASSES.DISABLED:"";return`${gr.CLASSES.BASE} ${c} ${d} ${u} ${h} ${m} ${s}`.trim()},generateWrapperClass:t=>{const{className:n=""}=t,{prefixIcon:a=!1,suffixIcon:r=!1,clearable:i=!1,showCounter:o=!1,showPasswordToggle:s=!1,fullWidth:l=!1}=e||{},c=[gr.ELEMENTS.WRAPPER];return a&&c.push(gr.CLASSES.PREFIX_ICON),(r||i||s)&&c.push(gr.CLASSES.SUFFIX_ICON),i&&c.push(gr.CLASSES.CLEARABLE),o&&c.push(gr.CLASSES.WITH_COUNTER),s&&c.push(gr.CLASSES.PASSWORD_TOGGLE),l&&c.push(gr.CLASSES.FULL_WIDTH),n&&c.push(n),c.filter(Boolean).join(" ")}}}gl.displayName="FormGroup";const bl=l(c((({type:t="text",value:n,defaultValue:a,onChange:r,onBlur:i,onFocus:o,placeholder:s,className:l="",style:c,disabled:d=!1,required:u=!1,readOnly:h=!1,id:m,name:p,autoComplete:g,autoFocus:f=!1,size:b="md",variant:v,invalid:S=!1,valid:y=!1,maxLength:E,minLength:A,pattern:x,min:N,max:T,step:_,"aria-label":C,"aria-describedby":L,glass:I},w)=>{const{generateInputClass:O}=fl({size:b,variant:v,disabled:d,invalid:S,valid:y}),R=O({className:`${l} ${I?"c-input--glass":""}`.trim(),size:b,variant:v,disabled:d,invalid:S,valid:y,type:t}),k=e("input",{ref:w,type:t,className:R,value:n,defaultValue:a,onChange:r,onBlur:i,onFocus:o,placeholder:s,disabled:d,required:u,readOnly:h,id:m,name:p,autoComplete:g,autoFocus:f,maxLength:E,minLength:A,pattern:x,min:N,max:T,step:_,"aria-label":C,"aria-describedby":L,"aria-invalid":S,style:I?{...c}:c});if(I){const t={displacementScale:60,blurAmount:1,saturation:180,aberrationIntensity:.2,borderRadius:12,mode:"shader"},n=!0===I?t:{...t,...I};return e(Ri,{...n,children:k})}return k})));function vl(e){const t=i(null),n=i(null),l=i(null),c={alignment:"left",imageColSize:7,contentColSize:5,imageAlt:"Hero image",showOverlay:!0,fullViewportHeight:!1,contentWidth:void 0,parallax:!1,parallaxIntensity:.5,headingLevel:"h1",reverseOnMobile:!1,...e},d=!!c.backgroundSlider,h=function(e){const{slides:t,autoplay:n,loop:l=!0,transition:c="fade",transitionDuration:d=1e3}=e,[h,m]=r(0),[p,g]=r(!1),f=i(null),b=i(!1),v=i(void 0),S=u((()=>t.map((()=>a.createRef()))),[t]),y=u((()=>t.map((()=>a.createRef()))),[t]),E=o((e=>{if(e===h||p)return;if(0>e||e>=t.length)return;g(!0),m(e);const n=y[e]?.current,a=t[e];n&&a&&"video"===a.type&&!1!==(a.videoOptions||{}).autoplay&&n.play().catch((()=>{}));const r=y[h]?.current,i=t[h];r&&i&&"video"===i.type&&r.pause(),setTimeout((()=>{g(!1)}),d)}),[h,p,t,y,d]),A=o((()=>{if(0===t.length)return;let e;e=l?(h+1)%t.length:Math.min(h+1,t.length-1),E(e)}),[h,t.length,l,E]);s((()=>{v.current=()=>{b.current||p||A()}}),[A,p]);const x=o((()=>{b.current=!0,f.current&&(clearInterval(f.current),f.current=null)}),[]),N=o((()=>{if(b.current&&n&&t.length>1){b.current=!1;const e="object"==typeof n?n.delay:3e3;f.current||(f.current=setInterval((()=>{v.current&&v.current()}),e))}}),[n,t.length]);return s((()=>{if(!n||1>=t.length)return;const e="object"==typeof n?n.delay:3e3;return f.current&&(clearInterval(f.current),f.current=null),b.current||(f.current=setInterval((()=>{v.current&&v.current()}),e)),()=>{f.current&&(clearInterval(f.current),f.current=null)}}),[n,t.length]),s((()=>{if(t.length>0&&"video"===t[h]?.type){const e=y[h]?.current;e&&!1!==(t[h].videoOptions||{}).autoplay&&e.play().catch((()=>{}))}}),[h,t,y]),s((()=>()=>{f.current&&(clearInterval(f.current),f.current=null)}),[]),{currentIndex:h,isTransitioning:p,slideRefs:S,videoRefs:y,handleSlideTransition:E,pauseAutoplay:x,resumeAutoplay:N}}(c.backgroundSlider||{slides:[],autoplay:{delay:5e3,pauseOnHover:!0},transition:"fade",transitionDuration:1e3}),m=d&&c.backgroundSlider?h:void 0,p=!!d||!!c.backgroundImageSrc||!!c.videoBackground,g=!!c.imageSrc,f=g&&"center"!==c.alignment,b=(e,t=.5)=>{if(!e)return;const n=Math.max(0,Math.min(1,t));e.classList.add("c-hero--parallax");const a=()=>{const t=window.pageYOffset*n,a=e.querySelector(Wa.SELECTORS.BG);a&&(a.style.transform=`translateY(${t}px)`)};l.current=a,window.addEventListener("scroll",a),a()},v=e=>{if(!e)return;e.classList.remove("c-hero--parallax");const t=e.querySelector(Wa.SELECTORS.BG);t&&(t.style.transform=""),l.current&&(window.removeEventListener("scroll",l.current),l.current=null)};return s((()=>{const e=t.current;return e&&c.parallax&&p&&!d&&b(e,c.parallaxIntensity),()=>{e&&l.current&&v(e)}}),[c.parallax,c.parallaxIntensity,p,d]),{generateHeroClassNames:(e="")=>{const t=[Wa.SELECTORS.HERO.replace(".","")];return"center"===c.alignment?t.push(Wa.CLASSES.CENTER):"right"===c.alignment?t.push(Wa.CLASSES.RIGHT):"left"===c.alignment&&t.push(Wa.CLASSES.LEFT),c.fullViewportHeight&&t.push(Wa.CLASSES.FULL_VH),c.parallax&&t.push("c-hero--parallax"),c.videoBackground&&t.push("c-hero--video"),e&&t.push(e),t.join(" ")},generateImageColClass:(e=c.imageColSize||7,t)=>{const n=["o-grid__col o-grid__col--md-"+e];return"left"===c.alignment&&n.push("u-mt-5 u-mt-md-0"),c.reverseOnMobile&&("right"===c.alignment||"center"===c.alignment?n.push("u-order-first u-order-md-last"):n.push("u-order-last u-order-md-first")),t&&n.push(t),n.join(" ")},generateContentColClass:(e=c.contentColSize||5,t)=>{const n=["o-grid__col o-grid__col--md-"+e];return c.reverseOnMobile&&("right"===c.alignment||"center"===c.alignment?n.push("u-order-last u-order-md-first"):n.push("u-order-first u-order-md-last")),t&&n.push(t),n.join(" ")},hasBackgroundImage:p,hasForegroundImage:g,useGridLayout:f,heroRef:t,videoRef:n,applyParallaxEffect:b,removeParallaxEffect:v,backgroundSlider:m,hasBackgroundSlider:d}}function Sl(e){const t={center:!1,breakout:!1,reverse:!1,imageAlt:"Image",showOverlay:!0,...e};return{generateRiverClassNames:(e="")=>{const n=[nr.SELECTORS.RIVER.replace(".","")];return t.center&&n.push(nr.CLASSES.CENTER),t.breakout&&n.push(nr.CLASSES.BREAKOUT),t.reverse&&n.push(nr.CLASSES.REVERSE),e&&n.push(e),n.join(" ")},generateContentClass:()=>nr.SELECTORS.CONTENT.replace(".",""),generateVisualClass:()=>nr.SELECTORS.VISUAL.replace(".",""),hasBackgroundImage:!!t.backgroundImageSrc,hasForegroundImage:!!t.imageSrc,textContent:"string"==typeof t.text?[t.text]:t.text||[]}}function yl(e){const t={position:"static",collapsible:!0,backdrop:!1,closeOnOutsideClick:!0,closeOnEscape:!0,"aria-label":"Main navigation",...e},[n,a]=r(t.expanded||!1);return{defaultProps:t,isExpanded:n,setIsExpanded:a,generateNavbarClass:e=>{const{position:n=t.position,variant:a,collapsible:r=t.collapsible,className:i=""}=e;return`c-navbar ${"static"!==n?"c-navbar--"+n:""} ${a?"c-navbar--"+a:""} ${r?"c-navbar--collapsible":""} ${i}`.trim()},generateContainerStyle:e=>e?{maxWidth:e}:{},generateCollapseClass:e=>("c-navbar__collapse "+(e?"is-expanded":"")).trim(),toggleExpanded:()=>{const e=!n;a(e),t.onToggle&&t.onToggle(e)},getExpandedState:e=>void 0!==e?e:n}}function El(e){const t={alignment:"start",variant:"default",...e};return{defaultProps:t,generateNavClass:e=>{const{alignment:n=t.alignment,variant:a=t.variant,className:r=""}=e;return`c-nav ${"start"!==n?"c-nav--"+n:""} ${"default"!==a?"c-nav--"+a:""} ${r}`.trim()}}}function Al(e){const t={dropdown:!1,megaMenu:!1,active:!1,...e};return{defaultProps:t,generateNavItemClass:e=>{const{dropdown:n=t.dropdown,megaMenu:a=t.megaMenu,active:r=t.active,disabled:i=t.disabled,className:o=""}=e;return`c-nav__item ${n&&!a?ir.SELECTORS.DROPDOWN.replace(".",""):""} ${a?"c-nav__item--mega-menu":""} ${r?ir.CLASSES.ACTIVE:""} ${i?ir.CLASSES.DISABLED:""} ${o}`.trim()},generateNavLinkClass:(e=!1,t=!1,n="")=>`c-nav__link ${e?ir.CLASSES.ACTIVE:""} ${t?"c-nav__link--disabled":""} ${n}`.trim(),handleClick:e=>n=>{!t.disabled&&e?e():n.preventDefault()}}}function xl(e){const t={alignment:"start",megaMenu:!1,...e},n=()=>null!==document.querySelector(".c-navbar--fixed-bottom");return{defaultProps:t,generateDropdownMenuClass:e=>{const{alignment:n=t.alignment,megaMenu:a=t.megaMenu,className:r=""}=e,i=a?ir.SELECTORS.MEGA_MENU.replace(".",""):ir.SELECTORS.DROPDOWN_MENU.replace(".","");let o="";return"center"===n?o=i+"--center":"end"===n&&(o=i+"--end"),`${i} ${o} ${r}`.trim()},isInFixedBottomNavbar:n,getIconName:(e=!1)=>n()?"CaretUp":"CaretDown"}}function Nl(e){const{collapsible:t=!0,collapsibleDesktop:n=!1,defaultCollapsedDesktop:a=!1,isOpen:o,onToggle:l,disabled:c=!1}=e||{},[d,u]=r(void 0!==a?!a:o||!1),h=i(null),m=i(null),p=i(null);s((()=>{void 0!==o?u(o):void 0!==a&&u(!a)}),[o,a]),s((()=>{const e=768>window.innerWidth?t:n,a=void 0!==o?o:d;if(e&&h.current&&m.current){const e=setTimeout((()=>{h.current&&m.current&&(h.current.style.height=a?m.current.scrollHeight+"px":"0px")}),0);return()=>clearTimeout(e)}!e&&h.current&&(h.current.style.height="auto")}),[t,n,o,d]),s((()=>{const e=()=>{if(768>window.innerWidth?t:n){if(h.current&&m.current){const e=void 0!==o?o:d;requestAnimationFrame((()=>{h.current&&m.current&&(h.current.style.height=e?m.current.scrollHeight+"px":"0px")}))}}else h.current&&(h.current.style.height="auto")},a=setTimeout(e,0);return window.addEventListener("resize",e),()=>{clearTimeout(a),window.removeEventListener("resize",e)}}),[t,n,o,l,d]),s((()=>{const e=768>window.innerWidth?t:n;if(e&&h.current&&m.current){const e=void 0!==o?o:d;requestAnimationFrame((()=>{h.current&&m.current&&(h.current.style.height=e?m.current.scrollHeight+"px":"0px")}))}else!e&&h.current&&(h.current.style.height="auto")}),[o,d,t,n]);const g=()=>{if(c)return;const e=void 0!==o?!o:!d;"function"==typeof l?l(e):u(e)},f=()=>void 0!==o?o:d;return{isOpenState:f(),wrapperRef:h,innerRef:m,sideMenuRef:p,generateSideMenuClass:e=>{const{className:t="",isOpen:n=!1}=e,a=n?or.CLASSES.IS_OPEN:"";return`${or.CLASSES.BASE} ${a} ${t}`.trim()},generateWrapperClass:()=>or.CLASSES.WRAPPER,handleToggle:g,handleDesktopCollapse:()=>{g()},getCurrentOpenState:f}}function Tl(e){const t={active:!1,disabled:!1,...e};return{defaultProps:t,generateSideMenuItemClass:()=>{const{active:e=t.active,disabled:n=t.disabled,className:a=""}=t,r=e?or.CLASSES.ACTIVE:"",i=n?or.CLASSES.DISABLED:"";return`${or.CLASSES.LINK} ${r} ${i} ${a}`.trim()},handleClick:e=>n=>{t.disabled?n.preventDefault():e&&e(n)}}}function _l(e,t={}){const n={},{prefix:a="atomix",separator:r="-"}=t;return Object.entries(e).forEach((([e,t])=>{const i=(e.startsWith("$")?e.slice(1):e).replace(/_/g,r);n[`--${a}${r}${i}`]=t+""})),n}function Cl(e,t){if("undefined"==typeof window)return;const n=t||document.documentElement;Object.entries(e).forEach((([e,t])=>{n.style.setProperty(e,t+"")}))}function Ll(e,t){if("undefined"==typeof window)return;const n=t||document.documentElement;e.forEach((e=>{n.style.removeProperty(e)}))}function Il(e,t){if("undefined"==typeof window)return null;const n=t||document.documentElement;return getComputedStyle(n).getPropertyValue(e).trim()||null}function wl(e){var t;return Do(t=Object.entries(e)).call(t,((e,[t,n])=>(e[t]="number"==typeof n?n+"px":n,e)),{})}function Ol(...e){return Do(e).call(e,((e,t)=>(t&&Object.assign(e,t),e)),{})}function Rl(e){return/^--[a-z0-9-]+$/.test(e)}function kl(e,t="atomix"){const n=RegExp(`^--${t}-([a-z0-9]+)-`),a=e.match(n);return a?a[1]??null:null}function Ml(...e){return e.filter(Boolean).join(" ")}function Dl(e,t){return t?{...e,className:Ml(e.className,t.className),style:{...e.style,...t.style}}:e}function Pl(e,t){return e?{...wl(e),...t}:t||{}}function Bl(e,t){const{className:n,style:a,cssVars:r,parts:i}=t,o=r?wl(r):{};return{...e,className:Ml(e.className,n),style:{...o,...e.style,...a}}}function zl(e,t){return e?.[t]}function Ul(e,t,n){return{...n,className:Ml(e,t?.className),style:{...t?.style,...n?.style}}}function Fl(e){return!!(e.parts||e.cssVars||e.slots)}function Gl(e,t){return"undefined"==typeof process||"development"!==process.env?.NODE_ENV?{}:{"data-component":e,...t&&{"data-variant":t}}}function Vl(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(e=>{const t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}))}function Hl(e){return/^(https?:\/\/)?(www\.)?(youtube\.com|youtu\.be)\/.+/.test(e)}function $l(e){if(!Hl(e))return null;const t=[/(?:youtube\.com\/watch\?v=|youtu\.be\/|youtube\.com\/embed\/)([^&\n?#]+)/,/youtube\.com\/.*[?&]v=([^&\n?#]+)/];for(const n of t){const t=e.match(n);if(t&&t[1])return t[1]}return null}function Yl(e){const{path:t,format:n="woff2",crossorigin:a="anonymous"}=e,r=document.createElement("link");return r.rel="preload",r.as="font",r.href=t,r.type="font/"+n,r.crossOrigin=a,r}function Kl(e){return e.map(Yl)}function Wl(e){return e.map((e=>{const{path:t,format:n="woff2",crossorigin:a="anonymous"}=e;return`<link rel="preload" as="font" href="${t}" type="font/${n}" crossorigin="${a}">`}))}bl.displayName="Input";const jl=[{family:"Nunito Sans",path:"/fonts/nunito-sans/nunito-sans-regular.woff2",weight:400,style:"normal",format:"woff2"},{family:"Nunito Sans",path:"/fonts/nunito-sans/nunito-sans-bold.woff2",weight:700,style:"normal",format:"woff2"},{family:"Nunito Sans",path:"/fonts/nunito-sans/nunito-sans-italic.woff2",weight:400,style:"italic",format:"woff2"},{family:"Nunito Sans",path:"/fonts/nunito-sans/nunito-sans-bold-italic.woff2",weight:700,style:"italic",format:"woff2"}];var ql=Object.freeze({__proto__:null,DEFAULT_ATOMIX_FONTS:jl,applyPartStyles:Dl,createCSSVarStyle:Pl,createDebugAttrs:Gl,createFontPreloadLink:Yl,createPartProps:Ul,extractYouTubeId:$l,generateFontPreloadTags:Wl,generateUUID:Vl,getPartStyles:zl,hasCustomization:Fl,isYouTubeUrl:Hl,mergeClassNames:Ml,mergeComponentProps:Bl,preloadFonts:Kl});function Ql(e){const t={items:[],title:"Todo List",size:"md",placeholder:"Add a new todo",showCompleted:!0,...e},[n,a]=r(t.items||[]),[i,o]=r(""),s=e=>{if(!e.trim())return null;const t={id:Vl(),text:e.trim(),completed:!1};return a((e=>[...e,t])),o(""),t};return{items:n,inputText:i,setInputText:o,addTodo:s,toggleTodo:e=>{let t=null;return a((n=>n.map((n=>n.id===e?(t={...n,completed:!n.completed},t):n)))),t},deleteTodo:e=>{const t=n.length;return a((t=>t.filter((t=>t.id!==e)))),n.length!==t},handleSubmit:(e,t)=>{if(e.preventDefault(),!i.trim())return;const n=s(i);n&&t&&t(n.text)},generateTodoClasses:e=>{const{size:n=t.size,className:a="",disabled:r=!1}=e,i="md"===n?"":"c-todo--"+n,o=r?"c-todo--disabled":"";return`${hr.CLASSES.BASE} ${i} ${o} ${a}`.trim()},generateItemClasses:e=>{const t=e.completed?hr.CLASSES.COMPLETED:"";return`${hr.CLASSES.ITEM} ${t}`.trim()},getFilteredItems:(e=!0)=>e?n:n.filter((e=>!e.completed))}}function Xl(e){const t={disabled:!1,invalid:!1,valid:!1,...e};return{defaultProps:t,generateRadioClass:e=>{const{disabled:n=t.disabled,invalid:a=t.invalid,valid:r=t.valid,className:i=""}=e;let o="";a?o=fr.CLASSES.INVALID:r&&(o=fr.CLASSES.VALID);const s=n?fr.CLASSES.DISABLED:"";return`${fr.CLASSES.BASE} ${o} ${s} ${i}`.trim()}}}function Zl(e){const t={size:"md",disabled:!1,invalid:!1,valid:!1,...e};return{defaultProps:t,generateSelectClass:e=>{const{size:n=t.size,disabled:a=t.disabled,invalid:r=t.invalid,valid:i=t.valid,className:o=""}=e,s="md"===n?"":"sm"===n?vr.CLASSES.SMALL:vr.CLASSES.LARGE;let l="";r?l=vr.CLASSES.INVALID:i&&(l=vr.CLASSES.VALID);const c=a?vr.CLASSES.DISABLED:"";return`${vr.CLASSES.BASE} ${s} ${l} ${c} ${o}`.trim()}}}function Jl(e){const t={size:"md",disabled:!1,invalid:!1,valid:!1,...e};return{defaultProps:t,generateTextareaClass:e=>{const{size:n=t.size,variant:a=t.variant,disabled:r=t.disabled,invalid:i=t.invalid,valid:o=t.valid,className:s=""}=e,l="md"===n?"":"sm"===n?Sr.CLASSES.SMALL:Sr.CLASSES.LARGE,c=a?"c-input--"+a:"";let d="";i?d=Sr.CLASSES.INVALID:o&&(d=Sr.CLASSES.VALID);const u=r?Sr.CLASSES.DISABLED:"";return`${Sr.CLASSES.BASE} ${l} ${c} ${d} ${u} ${s}`.trim()}}}function ec(e){const t=u((()=>e.length?e.map(((e,t)=>({...e,value:"number"==typeof e.value?e.value:0,label:e.label||"Point "+(t+1)}))):[]),[e]),n=u((()=>{if(!t.length)return{min:0,max:0,total:0,average:0};const e=t.map((e=>e.value)),n=Math.min(...e),a=Math.max(...e),r=Do(e).call(e,((e,t)=>e+t),0);return{min:n,max:a,total:r,average:r/e.length}}),[t]);return{data:t,stats:n,isEmpty:0===t.length}}function tc(e,t=400,n=300){return u((()=>{const a={top:20,right:20,bottom:40,left:40},r=t-a.left-a.right,i=n-a.top-a.bottom;if(!e.length)return{xScale:()=>a.left,yScale:()=>a.top+i,minValue:0,maxValue:0,valueRange:0,innerWidth:r,innerHeight:i,width:t,height:n,padding:a};const o=e.map((e=>e.value)),s=Math.min(0,...o),l=Math.max(...o),c=l-s||1;return{xScale:t=>a.left+t/Math.max(e.length-1,1)*r,yScale:e=>a.top+i-(e-s)/c*i,minValue:s,maxValue:l,valueRange:c,innerWidth:r,innerHeight:i,width:t,height:n,padding:a}}),[e,t,n])}function nc(){const[e,t]=r({hoveredIndex:null,selectedIndex:null});return{interaction:e,handlePointHover:o((e=>{t((t=>({...t,hoveredIndex:e})))}),[]),handlePointClick:o((e=>{t((t=>({...t,selectedIndex:t.selectedIndex===e?null:e})))}),[]),clearInteraction:o((()=>{t({hoveredIndex:null,selectedIndex:null})}),[])}}var ac=Object.freeze({__proto__:null,BALANCED_PRESET:Ti,DEFAULT_BREAKPOINTS:pi,DeviceDetector:wi,MOBILE_OPTIMIZED_BREAKPOINTS:Li,PERFORMANCE_PRESET:Ni,PerformanceOverlay:Si,QUALITY_PRESET:_i,createBreakpoints:bi,getDefaultBreakpoints:fi,getDevicePreset:Ci,getMobileOptimizedParams:Ii,getQualityMultipliers:yi,useAccordion:Pr,useAtomixGlass:mi,useBadge:io,useBarChart:gs,useBlock:lo,useChartData:ec,useChartInteraction:nc,useChartScale:tc,useEdgePanel:ol,useForm:hl,useFormGroup:pl,useHero:vl,useInput:fl,useLineChart:Ns,useNav:El,useNavDropdown:xl,useNavItem:Al,useNavbar:yl,usePerformanceMonitor:vi,usePieChart:Cs,useRadio:Xl,useResponsiveGlass:gi,useRiver:Sl,useSelect:Zl,useSideMenu:Nl,useSideMenuItem:Tl,useSpinner:mo,useTextarea:Jl,useTodo:Ql});const rc=g(null),ic=l((({value:n,children:a,disabled:r=!1,className:i="",style:o})=>{const l=f(rc),c="string"==typeof a?a:n;if(s((()=>{if(l)return l.registerOption({value:n,label:c,disabled:r}),()=>{l.unregisterOption(n)}}),[l,n,c,r]),!l)return null;const{selectedValue:d,onSelect:u}=l,h=Array.isArray(d)?Ra(d).call(d,n):d===n;return e("li",{className:`${vr.CLASSES.SELECT_ITEM} ${i}`.trim(),"data-value":n,onClick:e=>{e.preventDefault(),e.stopPropagation(),r||u(n,c)},style:o,role:"option","aria-selected":h,"aria-disabled":r,children:t("label",{className:"c-checkbox",style:{pointerEvents:"none"},children:[e("input",{type:"checkbox",className:"c-checkbox__input c-select__item-input",checked:h,readOnly:!0,disabled:r,tabIndex:-1}),e("div",{className:"c-select__item-label",children:a})]})})}));ic.displayName="SelectOption";const oc=({options:n,value:l,onChange:c,onBlur:d,onFocus:u,placeholder:h="Select an option",className:m="",style:p,disabled:g=!1,required:f=!1,id:b,name:v,size:S="md",invalid:y=!1,valid:E=!1,multiple:A=!1,"aria-label":x,"aria-describedby":N,glass:T,children:_})=>{const{generateSelectClass:C}=Zl({size:S,disabled:g,invalid:y,valid:E}),L=C({className:`${m} ${T?"c-select--glass":""}`.trim(),size:S,disabled:g,invalid:y,valid:E}),[I,w]=r(!1),[O,R]=r(h),k=i(null),M=i(null),D=i(null),P=i(null),[B,z]=r([]),U=o((e=>{z((t=>t.some((t=>t.value===e.value))?t:[...t,e]))}),[]),F=o((e=>{z((t=>t.filter((t=>t.value!==e))))}),[]),G=n&&n.length>0,V=G?n:B;s((()=>{if(l){const e=V.find((e=>e.value===l));e&&R(e.label)}else R(h)}),[l,V,h]),s((()=>{const e=e=>{k.current&&!k.current.contains(e.target)&&(w(!1),D.current&&(D.current.style.height="0px"))};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}}),[]);const H=()=>{g||(!I&&D.current&&M.current?D.current.style.height=M.current.clientHeight+"px":D.current&&(D.current.style.height="0px"),w(!I))},$=o((e=>{if(R(e.label),w(!1),D.current&&(D.current.style.height="0px"),P.current&&(P.current.value=e.value),c){const t={target:{name:v,value:e.value}};c(t)}}),[c,v]),Y=o(((e,t)=>{$({value:e,label:t})}),[$]),K=a.useMemo((()=>({registerOption:U,unregisterOption:F,selectedValue:l,onSelect:Y})),[U,F,l,Y]),W=e(rc.Provider,{value:K,children:t("div",{className:`${L} ${I?vr.CLASSES.IS_OPEN:""}`,ref:k,style:p,"aria-expanded":I,children:[t("select",{ref:P,value:l,onChange:c,onBlur:d,onFocus:u,disabled:g,required:f,id:b,name:v,multiple:A,"aria-label":x,"aria-describedby":N,"aria-invalid":y,style:{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",border:"0"},children:[h&&e("option",{value:"",disabled:!0,children:h}),V.map((t=>e("option",{value:t.value,disabled:t.disabled,children:t.label},t.value)))]}),e("div",{className:vr.CLASSES.SELECTED,onClick:H,onKeyDown:e=>{if(!g)switch(e.key){case"Enter":case" ":e.preventDefault(),H();break;case"Escape":I&&(e.preventDefault(),w(!1),D.current&&(D.current.style.height="0px"));break;case"ArrowDown":case"ArrowUp":I||(e.preventDefault(),H())}},"aria-disabled":g,tabIndex:g?-1:0,role:"combobox","aria-haspopup":"listbox","aria-expanded":I,"aria-controls":b?b+"-listbox":void 0,children:O}),e("i",{className:`${vr.CLASSES.ICON_CARET} ${vr.CLASSES.TOGGLE_ICON}`}),e("div",{className:vr.CLASSES.SELECT_BODY,ref:D,style:{height:0},children:e("div",{className:vr.CLASSES.SELECT_PANEL,ref:M,children:e("ul",{className:vr.CLASSES.SELECT_ITEMS,role:"listbox",id:b?b+"-listbox":void 0,"aria-labelledby":b,children:G?n.map(((n,a)=>e("li",{className:vr.CLASSES.SELECT_ITEM,"data-value":n.value,onClick:()=>!n.disabled&&$(n),role:"option","aria-selected":l===n.value,"aria-disabled":n.disabled,children:t("label",{htmlFor:"SelectItem"+a,className:"c-checkbox",children:[e("input",{type:"checkbox",id:"SelectItem"+a,className:"c-checkbox__input c-select__item-input",checked:l===n.value,readOnly:!0,disabled:n.disabled}),e("div",{className:"c-select__item-label",children:n.label})]})},n.value))):_})})})]})});if(T){const t={displacementScale:60,blurAmount:1,saturation:180,aberrationIntensity:.2,borderRadius:12,mode:"shader"},n=!0===T?t:{...t,...T};return e(Ri,{...n,children:W})}return W},sc=l(oc);sc.displayName="Select",sc.Option=ic;const lc=l((({label:n,checked:a=!1,onChange:r,className:i="",style:o,disabled:s=!1,required:l=!1,id:c,name:d,value:u,invalid:h=!1,valid:m=!1,"aria-label":p,"aria-describedby":g,glass:f})=>{const{generateRadioClass:b}=Xl({disabled:s,invalid:h,valid:m}),v=b({className:`${i} ${f?"c-radio--glass":""}`.trim(),disabled:s,invalid:h,valid:m}),S=t("div",{className:v,style:o,children:[e("input",{type:"radio",className:"c-radio__input",checked:a,onChange:r,disabled:s,required:l,id:c,name:d,value:u,"aria-label":n?void 0:p,"aria-describedby":g,"aria-invalid":h}),n&&e("label",{className:"c-radio__label",htmlFor:c,children:n})]});if(f){const t={displacementScale:40,blurAmount:1,saturation:160,aberrationIntensity:.3,borderRadius:6,mode:"shader"},n=!0===f?t:{...t,...f};return e(Ri,{...n,children:S})}return S}));lc.displayName="Radio";const cc=l(c((({value:t,defaultValue:n,onChange:a,onBlur:r,onFocus:i,placeholder:o,className:s="",style:l,disabled:c=!1,required:d=!1,readOnly:u=!1,id:h,name:m,rows:p=4,cols:g,maxLength:f,minLength:b,size:v="md",variant:S,invalid:y=!1,valid:E=!1,autoFocus:A=!1,"aria-label":x,"aria-describedby":N,glass:T},_)=>{const{generateTextareaClass:C}=Jl({size:v,variant:S,disabled:c,invalid:y,valid:E}),L=C({className:`${s} ${T?"c-input--glass":""}`.trim(),size:v,variant:S,disabled:c,invalid:y,valid:E}),I=e("textarea",{ref:_,className:L,value:t,defaultValue:n,onChange:a,onBlur:r,onFocus:i,placeholder:o,disabled:c,required:d,readOnly:u,id:h,name:m,rows:p,cols:g,maxLength:f,minLength:b,autoFocus:A,"aria-label":x,"aria-describedby":N,"aria-invalid":y,style:T?{...l}:l});if(T){const t={displacementScale:60,blurAmount:1,saturation:180,aberrationIntensity:1,borderRadius:8,mode:"shader"},n=!0===T?t:{...t,...T};return e(Ri,{...n,children:I})}return I})));cc.displayName="Textarea";const dc={facebook:"FacebookLogo",twitter:"TwitterLogo",instagram:"InstagramLogo",linkedin:"LinkedinLogo",youtube:"YoutubeLogo",github:"GithubLogo",discord:"DiscordLogo",tiktok:"TiktokLogo",pinterest:"PinterestLogo",snapchat:"SnapchatLogo",whatsapp:"WhatsappLogo",telegram:"TelegramLogo",reddit:"RedditLogo",twitch:"TwitchLogo",spotify:"SpotifyLogo",dribbble:"DribbbleLogo",behance:"BehanceLogo",medium:"MediumLogo",dev:"DevToLogo",codepen:"CodepenLogo"},uc={facebook:"Facebook",twitter:"Twitter",instagram:"Instagram",linkedin:"LinkedIn",youtube:"YouTube",github:"GitHub",discord:"Discord",tiktok:"TikTok",pinterest:"Pinterest",snapchat:"Snapchat",whatsapp:"WhatsApp",telegram:"Telegram",reddit:"Reddit",twitch:"Twitch",spotify:"Spotify",dribbble:"Dribbble",behance:"Behance",medium:"Medium",dev:"Dev.to",codepen:"CodePen"},hc=t=>{const n=dc[t];return e(no,n?{name:n}:{name:"Link"})},mc=c((({platform:n,url:a,icon:r,label:i,size:o="md",variant:s="default",disabled:l=!1,className:c="",...d},u)=>{const h=["c-footer__social-link","c-footer__social-link--"+n,"c-footer__social-link--"+o,"c-footer__social-link--"+s,l&&"c-footer__social-link--disabled",c].filter(Boolean).join(" "),m=i||"Follow us on "+(e=>uc[e]||e)(n);return t("a",{ref:u,href:l?void 0:a,className:h,target:"_blank",rel:"noopener noreferrer","aria-label":m,"aria-disabled":l,...d,children:[e("span",{className:"c-footer__social-link-icon",children:r||hc(n)}),e("span",{className:"c-footer__social-link-label u-visually-hidden",children:m})]})}));mc.displayName="FooterSocialLink";const pc=c((({children:t,className:n="",justifyContent:a,alignItems:r,noGutters:i,direction:o,wrap:s,...l},c)=>{const d=["o-grid"];return a&&d.push("u-justify-content-"+a),r&&d.push("u-align-items-"+r),i&&d.push("o-grid--no-gutters"),o&&d.push("u-flex-direction-"+o),s&&d.push("u-flex-wrap-"+s),n&&d.push(n),e("div",{ref:c,className:d.join(" "),...l,children:t})}));pc.displayName="Grid";const gc=c((({children:t,className:n="",xs:a,sm:r,md:i,lg:o,xl:s,xxl:l,offsetXs:c,offsetSm:d,offsetMd:u,offsetLg:h,offsetXl:m,offsetXxl:p,grow:g,shrink:f,basis:b,align:v,...S},y)=>{const E=a||r||i||o||s||l?["o-grid__col"]:["o-grid__col","o-grid__col--auto"],A=(e,t)=>{void 0!==e&&(!0!==e?!1!==e&&("xs"===t?"auto"===e?E.push("o-grid__col--auto"):E.push("o-grid__col--"+e):"auto"===e?E.push(`o-grid__col--${t}-auto`):E.push(`o-grid__col--${t}-${e}`)):E.push("xs"===t?"o-grid__col--auto":`o-grid__col--${t}-auto`))};return A(a,"xs"),A(r,"sm"),A(i,"md"),A(o,"lg"),A(s,"xl"),A(l,"xxl"),c&&E.push("o-grid__offset--"+c),d&&E.push("o-grid__offset--sm-"+d),u&&E.push("o-grid__offset--md-"+u),h&&E.push("o-grid__offset--lg-"+h),m&&E.push("o-grid__offset--xl-"+m),p&&E.push("o-grid__offset--xxl-"+p),void 0!==g&&E.push(g?"u-flex-grow-1":"u-flex-grow-0"),void 0!==f&&E.push(f?"u-flex-shrink-1":"u-flex-shrink-0"),b&&E.push("u-flex-basis-"+b),v&&E.push("u-align-self-"+v),n&&E.push(n),e("div",{ref:y,className:E.join(" "),...S,children:t})}));gc.displayName="GridCol";const fc=c((({children:t,className:n="",justifyContent:a,alignItems:r,noGutters:i,...o},s)=>{const l=["o-grid"];return a&&l.push("u-justify-content-"+a),r&&l.push("u-align-items-"+r),i&&l.push("o-grid--no-gutters"),n&&l.push(n),e("div",{ref:s,className:l.join(" "),...o,children:t})}));fc.displayName="Row";const bc=c((({brand:r,brandLogo:i,brandDescription:o,copyright:s,layout:l="columns",variant:c="primary",size:d="md",showNewsletter:h=!1,newsletterTitle:m="Stay Updated",newsletterDescription:p="Subscribe to our newsletter for the latest updates.",newsletterPlaceholder:g="Enter your email",newsletterButtonText:f="Subscribe",onNewsletterSubmit:b,socialLinks:v=[],showBackToTop:S=!1,backToTopText:y="Back to Top",onBackToTop:E,showDivider:A=!0,sticky:x=!1,children:N,className:T="",disabled:_=!1,glass:C,...L},I)=>{const{footerClass:w,containerClass:O,brandClass:R,sectionsClass:k,bottomClass:M,getResponsiveColumnProps:D,handleNewsletterSubmit:P,handleBackToTop:B}=function(e={}){const{layout:t=Mr.DEFAULTS.LAYOUT,variant:n=Mr.DEFAULTS.VARIANT,size:a=Mr.DEFAULTS.SIZE,sticky:r=Mr.DEFAULTS.STICKY,showNewsletter:i=Mr.DEFAULTS.SHOW_NEWSLETTER,showBackToTop:o=Mr.DEFAULTS.SHOW_BACK_TO_TOP,showDivider:s=Mr.DEFAULTS.SHOW_DIVIDER,socialLinks:l=[],onNewsletterSubmit:c,onBackToTop:d,glass:h=!1,className:m=""}=e,p=u((()=>{const e=t.toUpperCase(),o=a.toUpperCase();return[Mr.CLASSES.BASE,Mr.CLASSES[e]||Mr.CLASSES.COLUMNS,"c-footer--"+n,Mr.CLASSES[o]||Mr.CLASSES.MD,r&&Mr.CLASSES.STICKY,i&&"c-footer--with-newsletter",h&&"c-footer--glass",m].filter(Boolean).join(" ")}),[t,n,a,r,i,h,m]),g=Mr.CLASSES.CONTAINER,f=Mr.CLASSES.BRAND,b=u((()=>[Mr.CLASSES.SECTIONS,"columns"===t&&"c-footer__sections--columns","centered"===t&&"c-footer__sections--centered","stacked"===t&&"c-footer__sections--stacked"].filter(Boolean).join(" ")),[t]),v=Mr.CLASSES.BOTTOM,S=u((()=>function(e,t){switch(e){case"columns":default:return{brand:4,content:t?4:8,newsletter:t?4:0};case"centered":case"minimal":case"stacked":return{brand:12,content:12,newsletter:t?12:0};case"flexible":return{brand:"auto",content:"auto",newsletter:"auto"};case"sidebar":return{brand:3,content:9,newsletter:t?9:0};case"wide":return{brand:3,content:6,newsletter:t?3:0}}}(t,i)),[t,i]);return{footerClass:p,containerClass:g,brandClass:f,sectionsClass:b,bottomClass:v,columnSizes:S,getResponsiveColumnProps:e=>function(e,t,n){return"flexible"===t&&"auto"===n[e]?{xs:12,sm:!0,md:!0}:{xs:12,md:"columns"===t||"sidebar"===t||"wide"===t?n[e]:12}}(e,t,S),handleNewsletterSubmit:e=>{c?.(e)},handleBackToTop:()=>{d?d():window.scrollTo({top:0,behavior:"smooth"})},socialLinks:l,showNewsletter:i,showBackToTop:o,showDivider:s}}({layout:l,variant:c,size:d,sticky:x,showNewsletter:h,showBackToTop:S,showDivider:A,socialLinks:v,onNewsletterSubmit:b,onBackToTop:E,glass:!!C,className:T}),z=t("div",{className:O,children:[t(pc,{className:k,alignItems:"start",justifyContent:"centered"===l?"center":void 0,children:[r||i||o?t(gc,{...D("brand"),className:R,children:[i&&e("div",{className:"c-footer__brand-logo",children:"string"==typeof i?e("img",{src:i,alt:"Brand Logo"}):i}),r&&e("div",{className:"c-footer__brand-name",children:"string"==typeof r?e("h3",{children:r}):r}),o&&e("div",{className:"c-footer__brand-description",children:o}),v.length>0&&e("div",{className:"c-footer__social","data-testid":"footer-social-links",children:v.map(((t,n)=>e(mc,{platform:t.platform,url:t.url,icon:t.icon,label:t.label,size:d},`${t.platform}-${n}`)))})]}):null,N?e(gc,{...D("content"),className:"c-footer__content",children:e(pc,{className:"c-footer__sections",alignItems:"centered"===l||"stacked"===l?"center":void 0,children:a.Children.map(N,(e=>a.isValidElement(e)?a.cloneElement(e,{showNewsletter:h}):e))})}):null,h?t(gc,{...D("newsletter"),className:"c-footer__newsletter",children:[e("h4",{className:"c-footer__newsletter-title",children:m}),p&&e("p",{className:"c-footer__newsletter-description",children:p}),e(ml,{className:"c-footer__newsletter-form",onSubmit:e=>{e.preventDefault();const t=new FormData(e.currentTarget).get("email");t&&P(t)},children:t("div",{className:"c-footer__newsletter-input-group",children:[e(bl,{type:"email",name:"email",className:"c-footer__newsletter-input",placeholder:g,required:!0}),e(Vo,{type:"submit",className:"c-footer__newsletter-button",children:f})]})})]}):null]}),s||S?t(n,{children:[A&&e("hr",{className:"c-footer__divider"}),t("div",{className:M,children:[s&&e("div",{className:"c-footer__copyright",children:s}),S&&t(Vo,{variant:"ghost",className:"c-footer__back-to-top",onClick:B,disabled:_,"aria-label":y,children:[e("span",{className:"c-footer__back-to-top-icon",children:"↑"}),e("span",{className:"c-footer__back-to-top-text",children:y})]})]})]}):null]});return e("footer",{ref:I,className:w,...L,children:C?e(Ri,{...C,elasticity:0,children:e("div",{className:"c-footer__glass",children:z})}):z})}));bc.displayName="Footer";const vc=c((({children:t,className:n="",xs:l=1,sm:c,md:d,lg:u,xl:p,xxl:g,gap:f=16,animate:v=!0,imagesLoaded:S=!0,onLayoutComplete:y,onImageLoad:E,...A},x)=>{const[N,T]=r(l),[_,C]=r([]),[,L]=r(!1),[I,w]=r(!1),O=i(null),R=i([]),k=i(0),M=i(0),D=i(new Map);s((()=>{w(!!S)}),[N,S]),b(x,(()=>O.current));const P=o((()=>{const e=window.innerWidth;return 1400>e||void 0===g?1200>e||void 0===p?992>e||void 0===u?768>e||void 0===d?576>e||void 0===c?l:c:d:u:p:g}),[l,c,d,u,p,g]);s((()=>{const e=()=>T(P());return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)}),[P]);const[B,z]=r([]);s((()=>{const e=[];h.forEach(t,((t,n)=>{m(t)&&e.push({id:t.key?.toString()||"masonry-item-"+n,element:t,position:null,ref:a.createRef()})})),z(e)}),[t]);const U=o((()=>{if(!O.current||0===B.length)return;const e=(O.current.offsetWidth-f*(N-1))/N;R.current=Array(N).fill(0);const t=[];B.forEach(((n,a)=>{if(n.ref.current){const r=R.current.indexOf(Math.min(...R.current)),i=r*(e+f),o=R.current[r]??0,s=n.ref.current.offsetHeight;R.current[r]=o+s+f,t[a]={left:i,top:o,width:e,height:s}}})),C(t)}),[B,N,f]),F=o((e=>{if(D.current.get(e))return;if(D.current.set(e,!0),k.current+=1,O.current&&S){const t=e.closest(".o-masonry-grid > div");t&&(t.offsetHeight,t.classList.add("o-masonry-grid__item-loaded"),t.classList.remove("o-masonry-grid__item-loading"))}const t=()=>{const e=requestAnimationFrame((()=>{E?.(k.current,M.current),U()}));return()=>cancelAnimationFrame(e)},n=t();k.current>=M.current&&M.current>0&&(L(!0),w(!1),setTimeout((()=>n()),0),t(),y?.())}),[E,y,S,U]),G=o((()=>{if(!S||!O.current)return;D.current.clear(),k.current=0;const e=O.current.querySelectorAll("img");return M.current=e.length,0===e.length?(L(!0),w(!1),void y?.()):(w(!0),e.forEach((e=>{const t=e,n=e.closest(".o-masonry-grid > div");if(n&&n.classList.add("o-masonry-grid__item-loading"),e.complete)F(e);else{const n=()=>F(e);e.addEventListener("load",n),e.addEventListener("error",n),t._masonryLoadHandler=n}})),()=>{e.forEach((e=>{const t=e;t._masonryLoadHandler&&(e.removeEventListener("load",t._masonryLoadHandler),e.removeEventListener("error",t._masonryLoadHandler),delete t._masonryLoadHandler)}))})}),[S,F,y]);s((()=>{if(!O.current)return;let e=null,t=0;const n=new ResizeObserver((n=>{const a=n[0];if(!a)return;const r=a.contentRect.width;Math.abs(r-t)>1&&(e&&cancelAnimationFrame(e),e=requestAnimationFrame((()=>{U(),t=r})))}));return n.observe(O.current),()=>{n.disconnect(),e&&cancelAnimationFrame(e)}}),[U]),a.useLayoutEffect((()=>S?G():(U(),L(!0),void w(!1))),[B,N,U,S,G]),a.useEffect((()=>{const e=[];let t=null;const n=()=>{t&&cancelAnimationFrame(t),t=requestAnimationFrame(U)};return B.forEach((t=>{if(t.ref.current){const a=new ResizeObserver(n);a.observe(t.ref.current),e.push(a)}})),()=>{e.forEach((e=>e.disconnect())),t&&cancelAnimationFrame(t)}}),[B,U]);const V=R.current.length>0?Math.max(...R.current):0,H=["o-masonry-grid",n,v?"o-masonry-grid--animate":"",I?"o-masonry-grid--loading-images":""].filter(Boolean).join(" ");return e("div",{ref:O,className:H,style:{position:"relative",width:"100%",height:V+"px",...A.style},...A,children:B.map(((t,n)=>{const a=_[n];return e("div",a?{ref:t.ref,className:"o-masonry-grid__item",style:{position:"absolute",left:a.left+"px",top:a.top+"px",width:a.width+"px",opacity:1},children:t.element}:{ref:t.ref,style:{opacity:0,position:"absolute"},children:t.element},t.id)}))})}));vc.displayName="MasonryGrid";const Sc=c((({children:t,className:n="",...a},r)=>{const i=["o-masonry-grid__item-inner"];return n&&i.push(n),e("div",{ref:r,className:i.join(" "),...a,children:t})}));Sc.displayName="MasonryGridItem";var yc=Object.freeze({__proto__:null,Container:so,Grid:pc,GridCol:gc,MasonryGrid:vc,MasonryGridItem:Sc,Row:fc});const Ec=c((({title:n,icon:a,collapsible:i=!1,defaultCollapsed:o=!1,showNewsletter:s=!1,children:l,className:c="",...d},u)=>{const[h,m]=r(o),p=n?"footer-section-"+n.toString().toLowerCase().replace(/\s+/g,"-"):void 0,g=["c-footer__section",i&&"c-footer__section--collapsible",h&&"c-footer__section--collapsed",c].filter(Boolean).join(" ");return e(gc,{xs:12,md:s?6:3,className:"c-footer__section-col",children:t("div",{ref:u,className:g,...d,children:[n?e("div",i?{className:"c-footer__section-header",children:t("button",{type:"button",className:"c-footer__section-toggle",onClick:()=>{i&&m((e=>!e))},"aria-expanded":!h,"aria-controls":p,children:[a&&e("span",{className:"c-footer__section-icon",children:a}),e("h4",{className:"c-footer__section-title",children:n}),e("span",{className:"c-footer__section-chevron",children:h?"▼":"▲"})]})}:{className:"c-footer__section-header",children:t("div",{className:"c-footer__section-header-content",children:[a&&e("span",{className:"c-footer__section-icon",children:a}),e("h4",{className:"c-footer__section-title",children:n})]})}):null,e("div",{className:"c-footer__section-content",id:p,children:l})]})})}));Ec.displayName="FooterSection";const Ac=c((({href:a,icon:r,external:i=!1,active:o=!1,disabled:s=!1,onClick:l,children:c,className:d="",linkComponent:u,...h},m)=>{const p={className:["c-footer__link",o&&"c-footer__link--active",s&&"c-footer__link--disabled",d].filter(Boolean).join(" "),onClick:s?void 0:l,"aria-disabled":s,...i&&{target:"_blank",rel:"noopener noreferrer"},...h},g=t(n,{children:[r&&e("span",{className:"c-footer__link-icon",children:r}),e("span",{className:"c-footer__link-text",children:c}),i&&e("span",{className:"c-footer__link-external",children:"↗"})]});return u?e(u,{ref:m,...a&&!s?{href:a,to:a}:{},...p,children:g}):e("a",{ref:m,href:s?void 0:a,...p,children:g})}));Ac.displayName="FooterLink";const xc={displacementScale:60,blurAmount:3,saturation:180,aberrationIntensity:0,borderRadius:8,overLight:!1,mode:"standard"},Nc=({title:a,subtitle:r,text:i,imageSrc:o,imageAlt:s="Hero image",alignment:l="left",backgroundImageSrc:c,showOverlay:d=!0,fullViewportHeight:u=!1,actions:h,imageColSize:m=7,imageColClassName:p,imageColStyle:g,contentColSize:f=5,contentColClassName:b,contentColStyle:v,contentWidth:S,className:y="",style:E,parallax:A=!1,parallaxIntensity:x=.5,videoBackground:N,children:T,glass:_,videoOptions:C={autoplay:!0,loop:!0,muted:!0},backgroundSlider:L,headingLevel:I="h1",reverseOnMobile:w=!1,parts:O,backgroundElement:R,...k})=>{const M=I,{generateHeroClassNames:D,generateImageColClass:P,generateContentColClass:B,hasBackgroundImage:z,hasForegroundImage:U,useGridLayout:F,heroRef:G,videoRef:V,backgroundSlider:H,hasBackgroundSlider:$}=vl({title:a,alignment:l,imageColSize:m,contentColSize:f,imageSrc:o,backgroundImageSrc:c,showOverlay:d,fullViewportHeight:u,contentWidth:S,parallax:A,parallaxIntensity:x,videoBackground:N,backgroundSlider:L,reverseOnMobile:w}),Y={...S?{"--atomix-hero-content-width":S}:{},...E},K=()=>{if(!N)return null;const{autoplay:n,loop:a,muted:r,posterUrl:i}=C;return t("video",{ref:V,className:"c-hero__video",autoPlay:n,loop:a,muted:r,playsInline:!0,poster:i,children:[e("source",{src:N,type:"video/"+(N.split(".").pop()||"mp4")}),"Your browser does not support the video tag."]})},W=()=>{const o=t(n,{children:[r&&e("p",{className:`${Wa.SELECTORS.SUBTITLE.replace(".","")} ${O?.subtitle?.className||""}`.trim(),style:O?.subtitle?.style,children:r}),e(M,{className:`${Wa.SELECTORS.TITLE.replace(".","")} ${O?.title?.className||""}`.trim(),style:O?.title?.style,children:a}),i&&e("p",{className:`${Wa.SELECTORS.TEXT.replace(".","")} ${O?.text?.className||""}`.trim(),style:O?.text?.style,children:i}),h&&e("div",{className:`${Wa.SELECTORS.ACTIONS.replace(".","")} ${O?.actions?.className||""}`.trim(),style:O?.actions?.style,children:h})]}),s=_?(()=>{const t=!0===_?xc:{...xc,..._};return e(Ri,{...t,children:e("div",{className:"u-p-4",children:o})})})():o;return e("div",{className:`${Wa.SELECTORS.CONTENT.replace(".","")} ${O?.content?.className||""}`.trim(),style:O?.content?.style,children:s})},j=()=>U?e("div","center"===l?{className:`${Wa.SELECTORS.IMAGE_WRAPPER.replace(".","")} ${p||""} ${O?.imageWrapper?.className||""}`.trim(),style:{...g,...O?.imageWrapper?.style},children:e("img",{src:o,alt:s,className:`${Wa.SELECTORS.IMAGE.replace(".","")} ${O?.image?.className||""}`.trim(),style:O?.image?.style})}:{className:`${P(m,p)} ${O?.imageWrapper?.className||""}`.trim(),style:{...g,...O?.imageWrapper?.style},children:e("img",{src:o,alt:s,className:`${Wa.SELECTORS.IMAGE.replace(".","")} ${O?.image?.className||""}`.trim(),style:O?.image?.style})}):null;return t("div",{ref:G,className:`${D(y)} ${O?.root?.className||""}`.trim(),style:{...Y,...O?.root?.style},"data-parallax":A?"true":void 0,"data-parallax-intensity":A?x:void 0,...k,children:[R,(()=>{if($&&L&&H){const{slides:n,transition:a="fade",transitionDuration:r=1e3}=L,{currentIndex:i,slideRefs:o,videoRefs:s}=H;let l=Wa.CLASSES.SLIDER_FADE;return"slide"===a&&(l=Wa.CLASSES.SLIDER_SLIDE),t("div",{className:`${Wa.SELECTORS.SLIDER.replace(".","")} ${l}`,style:{"--slider-transition-duration":r+"ms"},onMouseEnter:()=>{L.autoplay?.pauseOnHover&&H.pauseAutoplay()},onMouseLeave:()=>{L.autoplay?.pauseOnHover&&H.resumeAutoplay()},children:[n.map(((n,a)=>{const r=a===i,l=o[a],c=s[a];return e("div",{ref:l,className:`${Wa.SELECTORS.SLIDER_ITEM.replace(".","")} ${r?Wa.CLASSES.SLIDER_ITEM_ACTIVE:""}`,"aria-hidden":!r,children:"video"===n.type?t("video",{ref:c,className:"c-hero__bg-video",src:n.src,poster:n.videoOptions?.posterUrl||n.alt,muted:n.videoOptions?.muted??!0,loop:n.videoOptions?.loop??!0,playsInline:!0,"aria-hidden":"true",autoPlay:!1!==n.videoOptions?.autoplay,children:[e("source",{src:n.src,type:"video/"+(n.src.split(".").pop()||"mp4")}),"Your browser does not support the video tag."]}):e("img",{src:n.src,alt:n.alt||"Background slide",className:Wa.SELECTORS.BG_IMAGE.replace(".","")})},a)})),d&&e("div",{className:`${Wa.SELECTORS.OVERLAY.replace(".","")} ${O?.overlay?.className||""}`.trim(),style:O?.overlay?.style})]})}return z||N?t("div",{className:`${Wa.SELECTORS.BG.replace(".","")} ${O?.background?.className||""}`.trim(),style:O?.background?.style,children:[c&&e("img",{src:c,alt:"Background",className:Wa.SELECTORS.BG_IMAGE.replace(".","")}),K(),d&&e("div",{className:`${Wa.SELECTORS.OVERLAY.replace(".","")} ${O?.overlay?.className||""}`.trim(),style:O?.overlay?.style})]}):null})(),e("div",{className:`${Wa.SELECTORS.CONTAINER.replace(".","")} o-container ${O?.container?.className||""}`.trim(),style:O?.container?.style,children:T?e("div",{className:`${Wa.SELECTORS.GRID.replace(".","")} ${O?.grid?.className||""}`.trim(),style:O?.grid?.style,children:T}):F?e("div",{className:`${Wa.SELECTORS.GRID.replace(".","")} o-grid ${O?.grid?.className||""}`.trim(),style:O?.grid?.style,children:t(n,"left"===l?{children:[e("div",{className:B(f,b),style:v,children:W()}),j()]}:{children:[j(),e("div",{className:B(f,b),style:v,children:W()})]})}):t(n,{children:[W(),j()]})})]})};Nc.Title=({children:t,className:n,level:a="h1",...r})=>e(a,{className:`${Wa.SELECTORS.TITLE.replace(".","")} ${n||""}`.trim(),...r,children:t}),Nc.Subtitle=({children:t,className:n,...a})=>e("p",{className:`${Wa.SELECTORS.SUBTITLE.replace(".","")} ${n||""}`.trim(),...a,children:t}),Nc.Text=({children:t,className:n,...a})=>e("p",{className:`${Wa.SELECTORS.TEXT.replace(".","")} ${n||""}`.trim(),...a,children:t}),Nc.Actions=({children:t,className:n,...a})=>e("div",{className:`${Wa.SELECTORS.ACTIONS.replace(".","")} ${n||""}`.trim(),...a,children:t}),Nc.Content=({children:t,className:n,style:a,glass:r,...i})=>{const o=`${Wa.SELECTORS.CONTENT.replace(".","")} ${n||""}`.trim(),s=r?e("div",{className:"u-p-4",children:t}):t,l=r?(()=>{const t=!0===r?xc:{...xc,...r};return e(Ri,{...t,children:s})})():s;return e("div",{className:o,style:a,...i,children:l})},Nc.Image=({src:t,alt:n="",className:a,wrapperClassName:r,wrapperStyle:i,...o})=>e("div",{className:`${Wa.SELECTORS.IMAGE_WRAPPER.replace(".","")} ${r||""}`.trim(),style:i,children:e("img",{src:t,alt:n,className:`${Wa.SELECTORS.IMAGE.replace(".","")} ${a||""}`.trim(),...o})}),Nc.Background=({className:n,style:a,src:r,children:i,...o})=>t("div",{className:`${Wa.SELECTORS.BG.replace(".","")} ${n||""}`.trim(),style:a,...o,children:[r&&e("img",{src:r,alt:"Background",className:Wa.SELECTORS.BG_IMAGE.replace(".","")}),i]}),Nc.displayName="Hero";const Tc=c((({children:t,className:n="",...a},r)=>e("li",{ref:r,className:`${Ha.ITEM_CLASS} ${n}`.trim(),...a,children:t})));Tc.displayName="ListItem";const _c=l((({children:t,variant:n="default",className:r="",style:i,...o})=>{var s;const l=[Ha.BASE_CLASS,"default"!==n&&"c-list--"+n,r].filter(Boolean).join(" "),c=Ra(s=["number","text"]).call(s,n)?"ol":"ul";return e(c,{className:l,style:i,...o,children:a.Children.map(t,(t=>a.isValidElement(t)&&t.type===Tc?t:e("li",{className:"c-list__item",children:t})))})}));_c.displayName="List",_c.Item=Tc;const Cc=({children:t,className:n="",style:r,variant:i="default"})=>{const o=[$a.BASE_CLASS,n].filter(Boolean).join(" "),s=a.Children.toArray(t).filter((e=>a.isValidElement(e)&&e.type===_c));return e("div",{className:o,style:r,children:s.map(((e,t)=>{const n=e.props;return a.cloneElement(e,{key:t,variant:n?.variant??i})}))})};Cc.displayName="ListGroup";const Lc=({messages:a=[],otherAvatar:i,selfAvatar:o,otherName:s,width:l="100%",onSendMessage:c,placeholder:d="Type a message",className:u="",style:h,bodyHeight:m,disabled:p=!1,id:g,glass:f})=>{const{inputValue:b,handleInputChange:v,handleSubmit:S,handleKeyDown:y}=(({onSendMessage:e}={})=>{const[t,n]=r(""),a=a=>{a.preventDefault(),t.trim()&&e&&(e(t.trim()),n(""))};return{inputValue:t,setInputValue:n,handleInputChange:e=>{n(e.target.value)},handleSubmit:a,handleKeyDown:e=>{"Enter"!==e.key||e.shiftKey||(e.preventDefault(),a(e))}}})({onSendMessage:c}),E=g||"messages-"+Math.random().toString(36).substr(2,9),A=E+"-input",x={displacementScale:150,borderRadius:12,elasticity:0,aberrationIntensity:2},N=`${xr.CLASSES.BASE} ${f?"c-messages--glass":""} ${p?"is-disabled":""} ${u}`,T=t(n,{children:[e("div",{className:xr.CLASSES.BODY,style:m?{"--atomix-messages-body-height":m}:void 0,children:a.map((n=>t("div",{className:`${xr.CLASSES.CONTENT} ${n.isSelf?xr.CLASSES.CONTENT_SELF:""}`,"aria-label":`${n.isSelf?"You":s||"Other person"} sent a message at ${n.time}`,children:[e(ao,{src:n.isSelf?o:i,size:"xl",circle:!0,className:xr.CLASSES.AVATAR,alt:n.isSelf?"Your avatar":(s||"Other person")+"'s avatar"}),t("div",{className:xr.CLASSES.ITEMS,children:[!n.isSelf&&s&&e("div",{className:xr.CLASSES.NAME,children:s}),n.text&&t("div",{className:xr.CLASSES.TEXT,children:[n.text,e("span",{className:xr.CLASSES.TIME,"aria-label":"Sent at "+n.time,children:n.time})]}),n.image&&e("img",{className:xr.CLASSES.IMAGE,src:n.image,alt:"Message attachment",loading:"lazy"}),n.file&&t("div",{className:xr.CLASSES.FILE,"aria-label":`File attachment: ${n.file.name}, size: ${n.file.size}`,children:[e("span",{className:xr.CLASSES.FILE_ICON,children:e(no,{name:"File","aria-hidden":"true"})}),t("div",{className:xr.CLASSES.FILE_DETAILS,children:[e("div",{className:xr.CLASSES.FILE_NAME,children:n.file.name}),e("div",{className:xr.CLASSES.FILE_SIZE,children:n.file.size})]})]})]})]},n.id)))}),t("form",{className:xr.CLASSES.FORM,onSubmit:S,"aria-label":"Message input form",children:[t("div",{className:xr.CLASSES.INPUT_GROUP,children:[e("label",{htmlFor:A,className:"u-visually-hidden",children:"Type a message"}),e("input",{id:A,type:"text",className:xr.CLASSES.INPUT,placeholder:d,value:b,onChange:v,onKeyDown:y,disabled:p,"aria-label":"Message input"}),t("div",{className:xr.CLASSES.OPTIONS,"aria-label":"Message options",children:[e("button",{type:"button",className:xr.CLASSES.OPTION,"aria-label":"Attach file",disabled:p,children:e(no,{name:"PaperclipHorizontal","aria-hidden":"true",className:xr.CLASSES.OPTION_ICON})}),e("button",{type:"button",className:xr.CLASSES.OPTION,"aria-label":"Attach image",disabled:p,children:e(no,{name:"Image","aria-hidden":"true",className:xr.CLASSES.OPTION_ICON})}),e("button",{type:"button",className:xr.CLASSES.OPTION,"aria-label":"Insert link",disabled:p,children:e(no,{name:"Link","aria-hidden":"true",className:xr.CLASSES.OPTION_ICON})})]})]}),e("button",{type:"submit",className:xr.CLASSES.SUBMIT,"aria-label":"Send message",disabled:p,children:e(no,{name:"PaperPlaneTilt","aria-hidden":"true",size:24})})]})]});if(f){const t=!0===f?x:{...x,...f};return e("div",{className:N,style:{"--atomix-messages-width":l,...h},id:E,"aria-label":"Chat messages",role:"log","aria-live":"polite",children:e(Ri,{...t,children:e("div",{className:"c-messages__glass-content",style:{borderRadius:t.borderRadius},children:T})})})}return e("div",{className:N,style:{"--atomix-messages-width":l,...h},id:E,"aria-label":"Chat messages",role:"log","aria-live":"polite",children:T})};Lc.displayName="Messages";const Ic=c((({title:n,subtitle:a,closeButton:r,onClose:i,children:o,className:s="",...l},c)=>t("div",{ref:c,className:("c-modal__header "+s).trim(),...l,children:[t("div",{className:"c-modal__header-content",children:[n&&e("h3",{className:"c-modal__title",children:n}),a&&e("p",{className:"c-modal__sub",children:a}),o]}),r&&e("button",{type:"button",className:"c-modal__close c-btn js-modal-close",onClick:i,"aria-label":"Close modal",children:e("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e("path",{d:"M16.0672 15.1828C16.1253 15.2409 16.1713 15.3098 16.2028 15.3857C16.2342 15.4615 16.2504 15.5429 16.2504 15.625C16.2504 15.7071 16.2342 15.7884 16.2028 15.8643C16.1713 15.9402 16.1253 16.0091 16.0672 16.0672C16.0091 16.1252 15.9402 16.1713 15.8643 16.2027C15.7885 16.2342 15.7071 16.2503 15.625 16.2503C15.5429 16.2503 15.4616 16.2342 15.3857 16.2027C15.3098 16.1713 15.2409 16.1252 15.1828 16.0672L10 10.8836L4.8172 16.0672C4.69992 16.1844 4.54086 16.2503 4.37501 16.2503C4.20916 16.2503 4.0501 16.1844 3.93282 16.0672C3.81555 15.9499 3.74966 15.7908 3.74966 15.625C3.74966 15.4591 3.81555 15.3001 3.93282 15.1828L9.11642 9.99998L3.93282 4.81717C3.81555 4.69989 3.74966 4.54083 3.74966 4.37498C3.74966 4.20913 3.81555 4.05007 3.93282 3.93279C4.0501 3.81552 4.20916 3.74963 4.37501 3.74963C4.54086 3.74963 4.69992 3.81552 4.8172 3.93279L10 9.11639L15.1828 3.93279C15.3001 3.81552 15.4592 3.74963 15.625 3.74963C15.7909 3.74963 15.9499 3.81552 16.0672 3.93279C16.1845 4.05007 16.2504 4.20913 16.2504 4.37498C16.2504 4.54083 16.1845 4.69989 16.0672 4.81717L10.8836 9.99998L16.0672 15.1828Z",fill:"#141414"})})})]})));Ic.displayName="ModalHeader";const wc=c((({children:t,className:n="",...a},r)=>e("div",{ref:r,className:("c-modal__body "+n).trim(),...a,children:t})));wc.displayName="ModalBody";const Oc=c((({children:t,className:n="",...a},r)=>e("div",{ref:r,className:("c-modal__footer "+n).trim(),...a,children:t})));Oc.displayName="ModalFooter";const Rc=l((({children:l,isOpen:c=!1,onOpenChange:u,onClose:h,onOpen:m,title:p,subtitle:g,size:f="md",backdrop:b=!0,keyboard:v=!0,className:S="",style:y,closeButton:E=!0,footer:A,glass:x,...N})=>{const T=i(null),_=i(null),C=i(null),{isOpen:L,open:I,close:w}=function({isOpen:e,onOpenChange:t,onOpen:n,onClose:a}={}){const[i,l]=r(!1),c=void 0!==e,d=c?!!e:i;s((()=>{c&&l(!!e)}),[e,c]);const u=o((e=>{c||l(e),t&&t(e),e&&n?n():!e&&a&&a()}),[c,t,n,a]),h=o((()=>{u(!0)}),[u]),m=o((()=>{u(!1)}),[u]),p=o((()=>{u(!d)}),[d,u]);return{isOpen:d,open:h,close:m,toggle:p}}({isOpen:c,onOpenChange:u,onClose:h,onOpen:m}),O=function(e){const t=i(null),n=i(null),a=o((()=>t.current?Array.from(t.current.querySelectorAll('a[href], button:not([disabled]), textarea:not([disabled]), input:not([disabled]), select:not([disabled]), [tabindex]:not([tabindex="-1"])')).filter((e=>{const t=window.getComputedStyle(e);return"none"!==t.display&&"hidden"!==t.visibility})):[]),[]),r=o((e=>{if("Tab"!==e.key)return;const t=a();if(0===t.length)return;const n=t[0],r=t[t.length-1];e.shiftKey?document.activeElement===n&&(e.preventDefault(),r.focus()):document.activeElement===r&&(e.preventDefault(),n.focus())}),[a]);return s((()=>{if(e){n.current=document.activeElement;const e=a();if(e.length>0&&e[0]){const t=e[0];setTimeout((()=>{t.focus()}),0)}document.addEventListener("keydown",r)}else n.current&&n.current.focus(),document.removeEventListener("keydown",r);return()=>{document.removeEventListener("keydown",r)}}),[e,a,r]),t}(L),R=d(),k="modal-title-"+R,M="modal-desc-"+R;s((()=>{if(!v)return;const e=e=>{"Escape"===e.key&&L&&w()};return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}}),[L,w,v]);const D=["c-modal",L?Ar.CLASSES.IS_OPEN:"",f?"c-modal--"+f:"",x?"c-modal--glass":"",S].filter(Boolean).join(" "),P=a.Children.toArray(l).some((e=>{var t;return a.isValidElement(e)&&Ra(t=["ModalHeader","ModalBody","ModalFooter"]).call(t,e.type.displayName||"")})),B=e("div",{className:"c-modal__content",ref:O,children:P?a.Children.map(l,(e=>a.isValidElement(e)&&"ModalHeader"===e.type.displayName?a.cloneElement(e,{...e.props,onClose:e.props.onClose||w,id:k}):e)):t(n,{children:[(p||E)&&e(Ic,{id:k,title:p,subtitle:g,closeButton:E,onClose:w}),e(wc,{id:M,children:l}),A&&e(Oc,{children:A})]})});return t("div",{ref:T,className:D,style:{display:L?"block":"none",...y},role:"dialog","aria-modal":"true","aria-hidden":!L,"aria-labelledby":k,"aria-describedby":M,...N,children:[e("div",{ref:C,className:"c-modal__backdrop",onClick:e=>{b&&e.target===e.currentTarget&&w()}}),e("div",{ref:_,className:"c-modal__dialog",children:x?(()=>{const t={displacementScale:document.querySelector(".c-modal---glass .c-modal__content")?.clientHeight,blurAmount:2.2,elasticity:0,mode:"shader",shaderMode:"premiumGlass"},n=!0===x?t:{...t,...x};return e(Ri,{...n,children:B})})():B})]})}));Rc.displayName="Modal";const kc=Rc;kc.Header=Ic,kc.Body=wc,kc.Footer=Oc;const Mc=kc,Dc=c((({children:t,alignment:n="start",variant:r="default",className:i="",disabled:o=!1,glass:s},l)=>{const{generateNavClass:c}=El({alignment:n,variant:r}),d=c({alignment:n,variant:r,className:i}),u=e("ul",{ref:l,className:d+(s?" c-nav--glass":""),role:"menubar","aria-orientation":"horizontal",children:a.Children.map(t,(e=>{if(a.isValidElement(e)){const t=e.props;return a.cloneElement(e,{...t,disabled:!!o||t?.disabled})}return e}))});if(s){const t={displacementScale:60,blurAmount:1.5,borderRadius:8,mode:"shader"},n=!0===s?t:{...t,...s};return e(Ri,{...n,children:u})}return u}));function Pc(e,t){"function"==typeof e?e(t):e&&(e.current=t)}function Bc(e,t){return a.useMemo((()=>null==e&&null==t?null:n=>{Pc(e,n),Pc(t,n)}),[e,t])}Dc.displayName="Nav";const zc=c((({children:n,dropdown:o=!1,megaMenu:l=!1,active:c=!1,href:d,target:u,onClick:h,className:m="",disabled:p=!1,"aria-expanded":g,linkComponent:f},b)=>{const{generateNavItemClass:v,generateNavLinkClass:S,handleClick:y}=Al({dropdown:o,megaMenu:l,active:c,disabled:p}),[E,A]=r(!1),x=i(null),N=Bc(b,x);s((()=>{if(!o&&!l||!E)return;const e=e=>{x.current&&!x.current.contains(e.target)&&(768>window.innerWidth||A(!1))};return document.addEventListener("click",e),()=>{document.removeEventListener("click",e)}}),[o,l,E]),s((()=>{if(!o&&!l)return;const e=()=>{window.innerWidth>=768&&E&&A(!1)};return window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}}),[o,l,E]);const T=v({dropdown:o,megaMenu:l,active:c,disabled:p,className:m})+(E?" is-active":""),_=S(c,p,o||l?"c-nav__dropdown-toggle":""),C=a.Children.toArray(n),L=void 0!==g?g:E,I={ref:N,href:d||"#",to:d||"#",target:u,className:_,onClick:o||l?e=>{(o||l)&&(e.preventDefault(),A(!E))}:y(h),"aria-disabled":p,"aria-expanded":o||l?L:void 0,"aria-current":!c||o||l?void 0:"page"};return t("li",{className:T,role:"menuitem","aria-haspopup":o||l,children:[e(f||"a",{...I,children:o||l?C[0]:n}),(o||l)&&C.length>1&&C[1]]})}));zc.displayName="NavItem";const Uc=c((({brand:n,children:a,variant:o,position:l="static",containerWidth:c,collapsible:d=!0,expanded:u,onToggle:h,className:m="",style:p,disabled:g=!1,backdrop:f=!1,closeOnOutsideClick:b=!0,closeOnEscape:v=!0,"aria-label":S="Main navigation",id:y,glass:E},A)=>{const{generateNavbarClass:x,generateContainerStyle:N,generateCollapseClass:T}=yl({position:l,collapsible:d,expanded:u,onToggle:h}),[_,C]=r(u||!1),L=i(null);s((()=>{void 0!==u&&C(u)}),[u]),s((()=>{const e=()=>{window.innerWidth>=768&&d&&("function"==typeof h?u&&h(!1):C(!1))};return window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}}),[d,u,h]),s((()=>{if(!_||!v)return;const e=e=>{"Escape"===e.key&&("function"==typeof h?h(!1):C(!1))};return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}}),[_,v,h]),s((()=>{if(!_||!b)return;const e=e=>{!L.current||L.current.contains(e.target)||e.target.closest(".c-navbar__toggler")||("function"==typeof h?h(!1):C(!1))};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}}),[_,b,h]);const I=x({position:l,variant:o,collapsible:d,className:m}),w=N(c),O=T(_),R=t("div",{className:"c-navbar__container",style:w,children:[n&&("string"==typeof n?e("a",{href:"/",className:"c-navbar__brand",children:n}):e("div",{className:"c-navbar__brand",children:n})),d&&e("button",{className:"c-navbar__toggler",onClick:()=>{if(g)return;const e=!_;"function"==typeof h?h(e):C(e)},"aria-expanded":_,"aria-label":"Toggle navigation","aria-controls":"navbar-collapse",disabled:g,type:"button",children:e("span",{className:"c-navbar__toggler-icon"})}),e("div",{id:"navbar-collapse",className:O,ref:L,children:a})]});if(E){const t={displacementScale:30,blurAmount:2,borderRadius:0,elasticity:0,mode:"shader",shaderVariant:"premiumGlass"},n=!0===E?t:{...t,...E};return e(Ri,{...n,style:{...("fixed"===l||"fixed-bottom"===l)&&{position:"fixed",top:"fixed"===l?0:void 0,bottom:"fixed-bottom"===l?0:void 0,left:0,right:0,zIndex:1030}},children:e("nav",{ref:A,className:I+" c-navbar--glass","aria-label":S,id:y,style:p,children:R})})}return e("nav",{ref:A,className:I,"aria-label":S,id:y,style:p,children:R})}));Uc.displayName="Navbar";const Fc=c((({children:t,className:n=""},r)=>e("ul",{ref:r,className:("c-side-menu__list "+n).trim(),role:"list",children:a.Children.map(t,((t,n)=>a.isValidElement(t)?e("li",{className:"c-side-menu__item",role:"listitem",children:t},n):t))})));Fc.displayName="SideMenuList";const Gc=c((({children:n,href:a,onClick:r,active:i=!1,disabled:o=!1,icon:s,className:l="",target:c,rel:d,linkComponent:u},h)=>{const{generateSideMenuItemClass:m,handleClick:p}=Tl({active:i,disabled:o,className:l}),g=m();if(a){if(u){const l={ref:h,className:g,onClick:o?e=>{e.preventDefault()}:r,"aria-disabled":o,"aria-current":i?"page":void 0,target:c,rel:d,tabIndex:o?-1:0,...o?{}:{href:a,to:a}};return t(u,{...l,children:[s&&e("span",{className:"c-side-menu__link-icon",children:s}),e("span",{className:"c-side-menu__link-text",children:n})]})}const l={ref:h,href:o?void 0:a,className:g,onClick:p(r),"aria-disabled":o,"aria-current":i?"page":void 0,target:c,rel:d,tabIndex:o?-1:0};return t("a",{...l,children:[s&&e("span",{className:"c-side-menu__link-icon",children:s}),e("span",{className:"c-side-menu__link-text",children:n})]})}return t("button",{ref:h,type:"button",className:g,onClick:p(r),disabled:o,"aria-current":i?"page":void 0,tabIndex:o?-1:0,children:[s&&e("span",{className:"c-side-menu__link-icon",children:s}),e("span",{className:"c-side-menu__link-text",children:n})]})}));Gc.displayName="SideMenuItem";const Vc=c((({title:a,children:l,menuItems:c=[],isOpen:d,onToggle:u,collapsible:h=!0,collapsibleDesktop:m=!1,defaultCollapsedDesktop:p=!1,className:g="",style:f,disabled:b=!1,toggleIcon:v,id:S,glass:y,linkComponent:E},A)=>{const{isOpenState:x,wrapperRef:N,innerRef:T,sideMenuRef:_,generateSideMenuClass:C,generateWrapperClass:L,handleToggle:I}=Nl({isOpen:d,onToggle:u,collapsible:h,collapsibleDesktop:m,defaultCollapsedDesktop:p,disabled:b}),[w,O]=r((()=>"undefined"!=typeof window&&768>window.innerWidth)),[R,k]=r((()=>{const e={};return c?.forEach(((t,n)=>{e[n]=!0})),e})),M=i({}),D=i({}),P=i(c?.length??0);s((()=>{const e=()=>{O(768>window.innerWidth)};return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)}),[]),s((()=>{const e=c?.length??0;P.current!==e&&(P.current=e,k((e=>{const t={};return c?.forEach(((n,a)=>{t[a]=e[a]??!0})),t})),Object.keys(M.current).forEach((t=>{const n=Number(t);e>n||(delete M.current[n],delete D.current[n])})))}),[c]);const B=o(((e,t)=>{const n=M.current[e],a=D.current[e];n&&a&&(n.style.height=t?a.scrollHeight+"px":"0px")}),[]);s((()=>{if(!c?.length)return;const e=setTimeout((()=>{c.forEach(((e,t)=>{const n=R[t]??!0;B(t,n)}))}),0);return()=>clearTimeout(e)}),[c,B]),s((()=>{if(!c?.length)return;const e=[];return Object.keys(R).forEach((t=>{const n=Number(t),a=R[n]??!0,r=requestAnimationFrame((()=>{B(n,a)}));e.push(r)})),()=>{e.forEach((e=>cancelAnimationFrame(e)))}}),[R,c,B]);const z=Bc(_,A),U=C({className:g,isOpen:x}),F=L(),G=e(no,{name:"CaretRight",size:"xs"}),V=w&&h||!w&&m,H=a&&!V,$=t(n,{children:[a&&V&&t("div",{className:"c-side-menu__toggler",onClick:I,role:"button",tabIndex:b?-1:0,"aria-expanded":x,"aria-controls":S?S+"-content":void 0,"aria-disabled":b,onKeyDown:e=>{"Enter"!==e.key&&" "!==e.key||b||(e.preventDefault(),I())},children:[e("span",{className:"c-side-menu__title",children:a}),e("span",{className:"c-side-menu__toggler-icon",children:v||G})]}),H&&e("h3",{className:"c-side-menu__title",children:a}),e("div",{ref:N,className:F,id:S?S+"-content":void 0,"aria-hidden":!!V&&!x,children:t("div",{ref:T,className:"c-side-menu__inner",children:[l,c?.map(((n,a)=>{const r=R[a]??!0,i=n.items&&n.items.length>0,o=i&&!b,s=()=>{o&&k((e=>({...e,[a]:!e[a]})))};return t("div",{className:"c-side-menu__item",children:[n.title&&t("div",{className:["c-side-menu__toggler",o&&"c-side-menu__toggler--nested",r&&"is-open"].filter(Boolean).join(" "),onClick:o?s:void 0,role:o?"button":void 0,tabIndex:o&&!b?0:void 0,"aria-expanded":o?r:void 0,"aria-disabled":b,onKeyDown:o?e=>{"Enter"!==e.key&&" "!==e.key||b||(e.preventDefault(),s())}:void 0,children:[e("span",{className:"c-side-menu__title",children:n.title}),o&&e("span",{className:"c-side-menu__toggler-icon",children:n.toggleIcon||e(no,{name:"CaretRight",size:"xs"})})]}),i&&e("div",{ref:e=>{M.current[a]=e},className:"c-side-menu__nested-wrapper",children:e("div",{ref:e=>{D.current[a]=e},className:"c-side-menu__nested-inner",children:e(Fc,{children:n.items?.map(((t,n)=>e(Gc,{href:t.href,onClick:t.onClick,active:t.active,disabled:t.disabled,icon:t.icon,linkComponent:E,children:t.title},n)))})})})]},a)}))]})})]});if(y){const t={displacementScale:70,blurAmount:2,borderRadius:12,mode:"shader"},n=!0===y?t:{...t,...y};return e(Ri,{...n,children:e("div",{ref:z,className:U+" c-side-menu--glass",id:S,style:f,children:$})})}return e("div",{ref:z,className:U,id:S,style:f,children:$})}));Vc.displayName="SideMenu";const Hc=c((({children:t,className:n="",style:r,disabled:i=!1},o)=>e("div",{ref:o,className:"c-menu "+n,style:r,children:e("ul",{className:"c-menu__list",role:"menu",children:a.Children.map(t,(e=>{if(a.isValidElement(e)){const t=e.props;return a.cloneElement(e,{...t,disabled:!!i||t?.disabled})}return e}))})})));Hc.displayName="Menu";const $c=c((({children:a,href:r="#",target:i,linkComponent:o,icon:s,active:l=!1,disabled:c=!1,onClick:d,className:u=""},h)=>{const m=`c-menu__item ${l?"is-active":""} ${c?"is-disabled":""} ${u}`,p={href:r,to:r,target:i,className:"c-menu__link",onClick:e=>{c?e.preventDefault():d&&d()},"aria-disabled":c,"aria-current":l?"page":void 0},g=t(n,{children:[s&&("string"==typeof s?s.startsWith("c-icon-")?e(no,{name:Yc(s.replace("c-icon-","")),size:"sm",className:"c-menu__icon"}):e("i",{className:"c-menu__icon "+s,children:"string"!=typeof s&&s}):e("span",{className:"c-menu__icon",children:s})),a]});return e("li",{ref:h,className:m,role:"menuitem",children:e(o||"a",{...p,children:g})})}));$c.displayName="MenuItem";const Yc=e=>({circle:"Circle","caret-down":"CaretDown","caret-up":"CaretUp","caret-right":"CaretRight",user:"User",settings:"Gear","sign-out":"SignOut",file:"File",bookmark:"Bookmark","question-circle":"Question",bell:"Bell",search:"MagnifyingGlass"}[e]||"Circle"),Kc=c((({className:t=""},n)=>e("li",{ref:n,className:"c-menu__divider "+t,role:"separator"})));Kc.displayName="MenuDivider";const Wc=c((({children:t,className:n="",style:r,disabled:i=!1},o)=>e("div",{ref:o,className:"c-menu c-menu--mega "+n,style:r,children:e("div",{className:"c-menu__container",children:e("div",{className:"c-menu__grid o-grid",children:a.Children.map(t,(e=>{if(a.isValidElement(e)){const t=e.props;return a.cloneElement(e,{...t,disabled:!!i||t?.disabled})}return e}))})})})));Wc.displayName="MegaMenu";const jc=c((({title:n,icon:r,children:i,width:o="auto",className:s="",disabled:l=!1},c)=>t("div",{ref:c,className:`o-grid__col o-grid__col--${o} ${s}`,children:[(n||r)&&t("div",{className:"c-menu__header",children:[r&&("string"==typeof r?r.startsWith("c-icon-")?e(no,{name:Yc(r.replace("c-icon-","")),size:"sm",className:"c-menu__header-icon"}):e("i",{className:"c-menu__header-icon "+r,children:"string"!=typeof r&&r}):e("span",{className:"c-menu__header-icon",children:r})),n&&e("div",{className:"c-menu__header-title",children:n})]}),e("ul",{className:"c-menu__subitems-list",role:"menu",children:a.Children.map(i,(t=>{if(a.isValidElement(t)){const n=t.props;return e("li",{className:"c-menu__subitem",role:"menuitem",children:a.cloneElement(t,{...n,disabled:!!l||n?.disabled})})}return null}))})]})));jc.displayName="MegaMenuColumn";const qc=c((({href:t,target:n,linkComponent:a,children:r,className:i="",disabled:o=!1,onClick:s},l)=>e(a||"a",{...{ref:l,href:t,to:t,target:n,className:`c-menu__subitem-link ${o?"is-disabled":""} ${i}`,onClick:e=>{o?e.preventDefault():s&&s()},"aria-disabled":o},children:r})));qc.displayName="MegaMenuLink";const Qc=c((({title:a,children:o,alignment:l="start",megaMenu:c=!1,className:d="",style:u,disabled:h=!1},m)=>{const{generateDropdownMenuClass:p,getIconName:g}=xl({alignment:l,megaMenu:c}),[f,b]=r(!1),v=i(null),S=p({alignment:l,megaMenu:c,className:d}),y=g(c);s((()=>{if(!f)return;const e=e=>{768>window.innerWidth||!v.current||v.current.contains(e.target)||b(!1)};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}}),[f]),s((()=>{if(!f)return;const e=e=>{"Escape"===e.key&&b(!1)};return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}}),[f]);const E=t(n,{children:[a,e(no,{name:y,size:"sm",className:"c-nav__icon"})]}),A=e(c?"div":"ul",{className:S,ref:v,"aria-hidden":!f,children:o});return t(zc,{dropdown:!c,megaMenu:c,disabled:h,className:f?"is-active":"",href:"#",onClick:()=>{h||b(!f)},"aria-expanded":f,style:u,children:[E,A]})}));Qc.displayName="NavDropdown";const Xc=({currentIndex:n,imagesLength:a,onZoomOut:r,onResetZoom:i,onZoomIn:o,onToggleFullscreen:s,onClose:l,isFullscreen:c,zoomLevel:d,onRotate:u,onDownload:h,onShare:m,showInfo:p,onToggleInfo:g,currentImage:f})=>t("div",{className:"c-photo-viewer__header",children:[t("div",{className:"c-photo-viewer__header-left",children:[e(oo,{label:`${n+1} / ${a}`,variant:"primary",size:"sm"}),f?.title&&e("h3",{className:"c-photo-viewer__image-title",children:f.title})]}),t("div",{className:"c-photo-viewer__actions",children:[e(Vo,{iconOnly:!0,size:"sm",variant:"ghost",rounded:!0,onClick:r,disabled:.1>=d,"aria-label":"Zoom out",className:"c-photo-viewer__action-button",icon:e(no,{name:"Minus",size:"sm"})}),e(Vo,{iconOnly:!0,size:"sm",variant:"ghost",rounded:!0,onClick:i,disabled:1===d,"aria-label":"Reset zoom",className:"c-photo-viewer__action-button",icon:e(no,{name:"MagnifyingGlass",size:"sm"})}),e(Vo,{iconOnly:!0,size:"sm",variant:"ghost",rounded:!0,onClick:o,disabled:d>=5,"aria-label":"Zoom in",className:"c-photo-viewer__action-button",icon:e(no,{name:"Plus",size:"sm"})}),e("div",{className:"c-photo-viewer__divider"}),e(Vo,{iconOnly:!0,size:"sm",variant:"ghost",rounded:!0,onClick:u,"aria-label":"Rotate image",className:"c-photo-viewer__action-button",icon:e(no,{name:"ArrowsClockwise",size:"sm"})}),e(Vo,{iconOnly:!0,size:"sm",variant:"ghost",rounded:!0,onClick:h,"aria-label":"Download image",className:"c-photo-viewer__action-button",icon:e(no,{name:"Download",size:"sm"})}),"share"in navigator&&"function"==typeof navigator.share&&e(Vo,{iconOnly:!0,size:"sm",variant:"ghost",rounded:!0,onClick:m,"aria-label":"Share image",className:"c-photo-viewer__action-button",icon:e(no,{name:"Share",size:"sm"})}),e(Vo,{iconOnly:!0,size:"sm",variant:"ghost",rounded:!0,onClick:g,"aria-label":"Toggle info panel",className:"c-photo-viewer__action-button "+(p?"is-active":""),icon:e(no,{name:"Info",size:"sm"})}),e("div",{className:"c-photo-viewer__divider"}),e(Vo,{iconOnly:!0,size:"sm",variant:"ghost",rounded:!0,onClick:s,"aria-label":c?"Exit fullscreen":"Enter fullscreen",className:"c-photo-viewer__action-button",icon:e(no,{name:c?"ArrowsIn":"ArrowsOut",size:"sm"})}),e(Vo,{iconOnly:!0,size:"sm",variant:"ghost",rounded:!0,onClick:l,"aria-label":"Close viewer",className:"c-photo-viewer__action-button c-photo-viewer__close-button",icon:e(no,{name:"X",size:"sm"})})]})]}),Zc=({show:a,onPrev:r,onNext:i,currentIndex:o,imagesLength:l,enableKeyboardNav:c,onClose:d})=>(s((()=>{if(!c)return;const e=e=>{"ArrowLeft"===e.key&&r(),"ArrowRight"===e.key&&i(),"Escape"===e.key&&d()};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)}),[c,r,i,d]),a?t(n,{children:[e(Vo,{iconOnly:!0,size:"md",variant:"ghost",rounded:!0,onClick:r,disabled:0===o,"aria-label":"Previous image",className:"c-photo-viewer__nav-button c-photo-viewer__nav-button--prev",icon:e(no,{name:"CaretLeft",size:"md"})}),e(Vo,{iconOnly:!0,size:"md",variant:"ghost",rounded:!0,onClick:i,disabled:o===l-1,"aria-label":"Next image",className:"c-photo-viewer__nav-button c-photo-viewer__nav-button--next",icon:e(no,{name:"CaretRight",size:"md"})})]}):null),Jc=({imageRef:t,containerRef:n,src:a,alt:o,zoomLevel:l,dragPosition:c,isDragging:d,rotationAngle:u,isTransitioning:h=!1,onMouseDown:m,onMouseMove:p,onMouseUp:g,onWheel:f,onTouchStart:b,onTouchMove:v,onTouchEnd:S,onDoubleClick:y})=>{const E=i(null),A=n||E,[x,N]=r(!1);return s((()=>(N(!0),()=>N(!1))),[]),s((()=>{const e=A.current;if(!e)return;const t=t=>{x&&e&&f&&f(t)},n=t=>{x&&e&&b&&b(t)},a=t=>{x&&e&&v&&v(t)},r=t=>{x&&e&&S&&S(t)};return x&&(e.addEventListener("wheel",t,{passive:!1}),e.addEventListener("touchstart",n,{passive:!1}),e.addEventListener("touchmove",a,{passive:!1}),e.addEventListener("touchend",r,{passive:!1})),()=>{e.removeEventListener("wheel",t),e.removeEventListener("touchstart",n),e.removeEventListener("touchmove",a),e.removeEventListener("touchend",r)}}),[x,f,b,v,S,A]),e("div",{ref:A,className:"c-photo-viewer__image-container "+(h?"is-transitioning":""),style:{cursor:d?"grabbing":l>1?"grab":"default",opacity:h?.7:1,touchAction:"none"},onMouseDown:m,onMouseMove:p,onMouseUp:g,onMouseLeave:g,onDoubleClick:e=>{x&&y&&y(e)},children:e("img",{ref:t,src:a,alt:o,className:"c-photo-viewer__image",style:{transform:`scale(${l}) translate(${c.x}px, ${c.y}px) rotate(${u}deg)`,transition:d?"none":h?"opacity 0.15s ease-out":"transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94)",transformOrigin:"center center",willChange:d?"transform":"auto",touchAction:"none"},draggable:!1,onContextMenu:e=>e.preventDefault()})})},ed=({images:n,currentIndex:a,goToImage:r})=>n.length>1?e("div",{className:"c-photo-viewer__thumbnails",children:e("div",{className:"c-photo-viewer__thumbnails-container",children:n.map(((n,i)=>{const o=n.thumbnail||n.src,s=i===a;return e(Vo,{variant:"ghost",className:"c-photo-viewer__thumbnail "+(s?"is-active":""),onClick:()=>r(i),"aria-label":`View image ${i+1}${n.title?": "+n.title:""}`,"aria-current":s,children:t("div",{className:"c-photo-viewer__thumbnail-wrapper",children:[e("img",{loading:"lazy",src:o,alt:n.alt||"Thumbnail "+(i+1),className:"c-photo-viewer__thumbnail-img"}),s&&e("div",{className:"c-photo-viewer__thumbnail-indicator"})]})},i)}))})}):null,td=({show:n,image:a,onClose:r})=>n&&a?t("div",{className:"c-photo-viewer__info-panel",children:[t("div",{className:"c-photo-viewer__info-header",children:[e("h4",{className:"c-photo-viewer__info-panel-title",children:"Image Details"}),e(Vo,{iconOnly:!0,size:"sm",variant:"ghost",rounded:!0,onClick:r,"aria-label":"Close info panel",className:"c-photo-viewer__info-close",icon:e(no,{name:"X",size:"sm"})})]}),t("div",{className:"c-photo-viewer__info-content",children:[a.title&&e("div",{className:"c-photo-viewer__info-section",children:e("h5",{className:"c-photo-viewer__info-title",children:a.title})}),a.description&&e("div",{className:"c-photo-viewer__info-section",children:e("p",{className:"c-photo-viewer__info-description",children:a.description})}),(a.date||a.author)&&e("div",{className:"c-photo-viewer__info-section",children:t("div",{className:"c-photo-viewer__info-meta",children:[a.date&&t("div",{className:"c-photo-viewer__info-meta-item",children:[e(no,{name:"Calendar",size:14}),e("span",{children:a.date})]}),a.author&&t("div",{className:"c-photo-viewer__info-meta-item",children:[e(no,{name:"User",size:14}),e("span",{children:a.author})]})]})}),a.tags&&a.tags.length>0&&t("div",{className:"c-photo-viewer__info-section",children:[e("h6",{className:"c-photo-viewer__info-section-title",children:"Tags"}),e("div",{className:"c-photo-viewer__info-tags",children:a.tags.map(((t,n)=>e(oo,{label:t,variant:"secondary",size:"sm"},n)))})]})]})]}):null,nd=({images:n,startIndex:a=0,className:l="",disabled:c=!1,enableKeyboardNavigation:d=!0,enableGestures:h=!0,enableFullscreen:m=!0,thumbnailPosition:p="bottom",onImageChange:g,onClose:f})=>{const{currentIndex:b,zoomLevel:v,imagePosition:S,isDragging:y,isFullscreen:E,rotationAngle:A,showInfo:x,imageRef:N,containerRef:T,isTransitioning:_,setZoomLevel:C,setImagePosition:L,setIsDragging:I,setIsFullscreen:w,setRotationAngle:O,setShowInfo:R,closeModal:k,goToPrevious:M,goToNext:D,setCurrentIndex:P,handleMouseDown:B,handleMouseMove:z,handleMouseUp:U,handleWheel:F,handleTouchStart:G,handleTouchMove:V,handleTouchEnd:H,handleDoubleClick:$,resetImageState:Y}=(({images:e,startIndex:t=0,enableGestures:n=!0,onImageChange:a,onClose:l})=>{const[c,d]=r(t),[u,h]=r(!1),[m,p]=r(!1),[g,f]=r({x:0,y:0}),[b,v]=r(!1),[S,y]=r(!1),[E,A]=r({}),[x,N]=r(!1),[T,_]=r(!1),[C,L]=r({velocity:0,timestamp:0}),I=i(null),w=i(null),O=i([]),R=i(null),k=i(null),M=i(0),D=i(null),P=o(((e,t)=>{if(!T||!I.current||!w.current)return{minX:0,maxX:0,minY:0,maxY:0};const n=I.current,a=w.current;if(!n.naturalWidth&&!n.width)return{minX:0,maxX:0,minY:0,maxY:0};const r=n.naturalWidth||n.width||800,i=n.naturalHeight||n.height||600;try{const n=a.getBoundingClientRect();if(!n||0===n.width||0===n.height)return{minX:0,maxX:0,minY:0,maxY:0};const o=n.width,s=n.height,l=t*Math.PI/180,c=Math.abs(Math.cos(l)),d=Math.abs(Math.sin(l)),u=r/i;let h,m;o/s>u?(m=Math.min(.9*s,i),h=m*u):(h=Math.min(.9*o,r),m=h/u);const p=(h*d+m*c)*e,g=Math.max(0,((h*c+m*d)*e-o)/2),f=Math.max(0,(p-s)/2);return{minX:-g,maxX:g,minY:-f,maxY:f}}catch(o){return{minX:0,maxX:0,minY:0,maxY:0}}}),[T]),B=o(((e,t)=>({x:Math.max(t.minX,Math.min(t.maxX,e.x)),y:Math.max(t.minY,Math.min(t.maxY,e.y))})),[]);s((()=>(_(!0),0>t||t>=e.length?d(0):d(t),()=>_(!1))),[e,t]),s((()=>{u?document.body.classList.add("is-open-photoviewer"):document.body.classList.remove("is-open-photoviewer")}),[u]),s((()=>{u&&A((e=>e[c]?e:{...e,[c]:{zoomLevel:1,position:{x:0,y:0},rotation:0,bounds:{minX:0,maxX:0,minY:0,maxY:0}}}))}),[u,c]),s((()=>{a&&a(c)}),[c,a]),s((()=>{const e=I.current,t=w.current,n=()=>{T&&e&&t&&A((e=>{const t=e[c]||{zoomLevel:1,position:{x:0,y:0},rotation:0,bounds:{minX:0,maxX:0,minY:0,maxY:0}},n=P(t.zoomLevel,t.rotation),a=B(t.position,n);return{...e,[c]:{...t,bounds:n,position:a}}}))};if(!(e&&t&&e.complete&&T))return e&&t&&T?(e.addEventListener("load",n),()=>e.removeEventListener("load",n)):void 0;n()}),[c,P,B,T]),s((()=>{const e=()=>{T&&I.current&&w.current&&A((e=>{const t=e[c]||{zoomLevel:1,position:{x:0,y:0},rotation:0,bounds:{minX:0,maxX:0,minY:0,maxY:0}},n=P(t.zoomLevel,t.rotation),a=B(t.position,n);return{...e,[c]:{...t,bounds:n,position:a}}}))};return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)}),[c,P,B,T]);const z=o((()=>{h(!0)}),[]),U=o((()=>{h(!1),l&&l()}),[l]),F=o((()=>{c>0&&(N(!0),setTimeout((()=>{d((e=>e-1)),N(!1)}),150))}),[c]),G=o((()=>{c<e.length-1&&(N(!0),setTimeout((()=>{d((e=>e+1)),N(!1)}),150))}),[c,e.length]),V=o((e=>{A((t=>{const n=t[c]||{zoomLevel:1,position:{x:0,y:0},rotation:0,bounds:{minX:0,maxX:0,minY:0,maxY:0}},a="function"==typeof e?e(n.zoomLevel):e,r=Math.max(.1,Math.min(5,a)),i=P(r,n.rotation),o=B(n.position,i);return{...t,[c]:{...n,zoomLevel:r,bounds:i,position:o}}}))}),[c,P,B]),H=o((e=>{A((t=>{const n=t[c]||{zoomLevel:1,position:{x:0,y:0},rotation:0,bounds:{minX:0,maxX:0,minY:0,maxY:0}},a="function"==typeof e?e(n.position):e,r=B(a,n.bounds);return{...t,[c]:{...n,position:r}}}))}),[c,B]),$=o((e=>{A((t=>{const n=t[c]||{zoomLevel:1,position:{x:0,y:0},rotation:0,bounds:{minX:0,maxX:0,minY:0,maxY:0}},a=(("function"==typeof e?e(n.rotation):e)%360+360)%360,r=P(n.zoomLevel,a),i=B(n.position,r);return{...t,[c]:{...n,rotation:a,bounds:r,position:i}}}))}),[c,P,B]),Y=o((e=>{var t;if(!T||!e||!e.currentTarget)return;const n=e.currentTarget;if(n&&"function"==typeof n.getBoundingClientRect){if("undefined"!=typeof window&&(null==(t=window.location?.href)?void 0:Function.call.bind(Ra(t),t))?.("storybook"))try{const e=n.getBoundingClientRect();if(!e||0===e.width||0===e.height)return}catch(a){return}A((t=>{const a=t[c]||{zoomLevel:1,position:{x:0,y:0},rotation:0,bounds:{minX:0,maxX:0,minY:0,maxY:0}},r=/Mac|iPod|iPhone|iPad/.test(navigator.platform),i=e.ctrlKey&&r,o=Math.abs(e.deltaX)>0,s=!e.ctrlKey&&o&&r,l=!e.ctrlKey&&!o&&r,d=!r;let u,h=!1;if(i)u=-.02*e.deltaY,h=!0;else if(s){if(1>=a.zoomLevel)return t;u=-.003*e.deltaY,h=!0}else l?(u=-.004*e.deltaY,h=!0):d?(u=-.006*e.deltaY,h=!0):(u=-.005*e.deltaY,h=!0);h&&(e.preventDefault(),e.stopPropagation());const m=Date.now(),p=m-M.current;let g;M.current=m,i&&100>p&&(L({velocity:Math.abs(u)/p,timestamp:m}),D.current&&clearTimeout(D.current),D.current=setTimeout((()=>{const e=()=>{L((t=>{if(.001>t.velocity)return t;const n=.95*t.velocity,a=n*(u>0?1:-1);return A((e=>{const t=e[c]||{zoomLevel:1,position:{x:0,y:0},rotation:0,bounds:{minX:0,maxX:0,minY:0,maxY:0}},n=Math.max(.1,Math.min(5,t.zoomLevel+a));if(n===t.zoomLevel)return e;const r=P(n,t.rotation),i=B(t.position,r);return{...e,[c]:{...t,zoomLevel:n,bounds:r,position:i}}})),.001>n||requestAnimationFrame(e),{velocity:n,timestamp:Date.now()}}))};requestAnimationFrame(e)}),50));try{g=n.getBoundingClientRect()}catch(x){return t}if(!g||0===g.width||0===g.height)return t;const f=g.width/2,b=g.height/2,v=e.clientX-g.left-f,S=e.clientY-g.top-b,y=a.zoomLevel,E=Math.max(.1,Math.min(5,y+u));if(E!==y){const e=E/y,n=P(E,a.rotation),r={x:a.position.x+v*(1-e)*.5,y:a.position.y+S*(1-e)*.5},i=B(r,n);return{...t,[c]:{...a,zoomLevel:E,bounds:n,position:i}}}return t}))}}),[T,c,P,B]),K=o((e=>{if(!T||!e||!e.currentTarget)return;const t=e.currentTarget;t&&"function"==typeof t.getBoundingClientRect&&A((n=>{const a=n[c]||{zoomLevel:1,position:{x:0,y:0},rotation:0,bounds:{minX:0,maxX:0,minY:0,maxY:0}};let r;try{r=t.getBoundingClientRect()}catch(p){return n}if(!r||0===r.width||0===r.height)return n;const i=r.width/2,o=r.height/2,s=e.clientX-r.left-i,l=e.clientY-r.top-o;let d,u={x:0,y:0};1.5>a.zoomLevel?(d=2,u={x:.5*-s,y:.5*-l}):3>a.zoomLevel?(d=4,u={x:.75*-s,y:.75*-l}):(d=1,u={x:0,y:0});const h=P(d,a.rotation),m=B(u,h);return{...n,[c]:{...a,zoomLevel:d,bounds:h,position:m}}}))}),[T,c,P,B]),W=o((e=>{A((t=>{const n=t[c]||{zoomLevel:1,position:{x:0,y:0},rotation:0,bounds:{minX:0,maxX:0,minY:0,maxY:0}};return n.zoomLevel>1&&(e.preventDefault(),p(!0),f({x:e.clientX-n.position.x,y:e.clientY-n.position.y})),t}))}),[c]),j=o((e=>{m&&A((t=>{const n=t[c]||{zoomLevel:1,position:{x:0,y:0},rotation:0,bounds:{minX:0,maxX:0,minY:0,maxY:0}},a=Math.min(1,1/n.zoomLevel),r=(e.clientX-g.x)*a,i=(e.clientY-g.y)*a,o=B({x:r,y:i},n.bounds);return{...t,[c]:{...n,position:o}}}))}),[m,g,c,B]),q=o((()=>{p(!1)}),[]),Q=o((e=>{if(!n)return;const t=e.touches;t.length>1&&(e.preventDefault(),e.stopPropagation()),O.current=Array.from(t).map((e=>({x:e.clientX,y:e.clientY}))),A((e=>{const n=e[c]||{zoomLevel:1,position:{x:0,y:0},rotation:0,bounds:{minX:0,maxX:0,minY:0,maxY:0}};if(1===t.length&&n.zoomLevel>1){p(!0);const e=t[0];e&&f({x:e.clientX-n.position.x,y:e.clientY-n.position.y})}else if(2===t.length){const e=t[0],n=t[1];if(e&&n){const t=e.clientX-n.clientX,a=e.clientY-n.clientY;R.current=Math.sqrt(t*t+a*a),k.current={x:(e.clientX+n.clientX)/2,y:(e.clientY+n.clientY)/2}}}return e}))}),[n,c]),X=o((e=>{if(!n)return;const t=e.touches;t.length>1&&(e.preventDefault(),e.stopPropagation()),A((n=>{const a=n[c]||{zoomLevel:1,position:{x:0,y:0},rotation:0,bounds:{minX:0,maxX:0,minY:0,maxY:0}};a.zoomLevel>1&&1===t.length&&e.preventDefault();let r=null,i=0,o=null;if(1===t.length&&m&&a.zoomLevel>1){const e=t[0];if(e){const t=Math.min(1,1/a.zoomLevel);r={x:(e.clientX-g.x)*t,y:(e.clientY-g.y)*t}}if(r){const e=B(r,a.bounds);return{...n,[c]:{...a,position:e}}}}else if(2===t.length&&null!==R.current){const r=t[0],l=t[1];if(r&&l){const t=r.clientX-l.clientX,d=r.clientY-l.clientY,u=Math.sqrt(t*t+d*d);i=.005*(u-R.current),R.current=u,o={x:(r.clientX+l.clientX)/2,y:(r.clientY+l.clientY)/2};const h=a.zoomLevel,m=Math.max(.1,Math.min(5,h+i));if(m!==h&&k.current&&o){let t;try{t=e.currentTarget.getBoundingClientRect()}catch(s){return n}if(!t||0===t.width||0===t.height)return n;const r=t.width/2,i=t.height/2,l=o.x-t.left-r,d=o.y-t.top-i,u=m/h,p=P(m,a.rotation),g={x:a.position.x+l*(1-u)*.5,y:a.position.y+d*(1-u)*.5},f=B(g,p);return k.current=o,{...n,[c]:{...a,zoomLevel:m,bounds:p,position:f}}}o&&(k.current=o)}}return n}))}),[n,m,g,c,B,P]),Z=o((()=>{p(!1),R.current=null,k.current=null}),[]),J=E[c]||{zoomLevel:1,position:{x:0,y:0},rotation:0,bounds:{minX:0,maxX:0,minY:0,maxY:0}};return{currentIndex:c,isModalOpen:u,zoomLevel:J.zoomLevel,imagePosition:J.position,isDragging:m,isFullscreen:b,rotationAngle:J.rotation,showInfo:S,imageRef:I,containerRef:w,isTransitioning:x,setCurrentIndex:d,setZoomLevel:V,setImagePosition:H,setIsDragging:p,setIsFullscreen:v,setRotationAngle:$,setShowInfo:y,openModal:z,closeModal:U,goToPrevious:F,goToNext:G,handleWheel:Y,handleMouseDown:W,handleMouseMove:j,handleMouseUp:q,handleTouchStart:Q,handleTouchMove:X,handleTouchEnd:Z,handleDoubleClick:K,resetImageState:()=>{A((e=>({...e,[c]:{zoomLevel:1,position:{x:0,y:0},rotation:0,bounds:{minX:0,maxX:0,minY:0,maxY:0}}})))}}})({images:n,startIndex:a,enableGestures:h,onImageChange:g,onClose:f||(()=>{})}),K=u((()=>n.map((e=>"string"==typeof e?{src:e}:e))),[n]),W=K[b],j=u((()=>["c-photo-viewer","c-photo-viewer--thumbnails-"+p,y?"c-photo-viewer--dragging":"",E?"c-photo-viewer--fullscreen":"",x?"c-photo-viewer--info-open":"",c?"is-disabled":"",l].filter(Boolean).join(" ")),[y,E,x,c,p,l]);return s((()=>{const e=()=>{w(!!document.fullscreenElement)};return document.addEventListener("fullscreenchange",e),()=>document.removeEventListener("fullscreenchange",e)}),[w]),s((()=>(document.body.classList.add("is-open-photoviewer"),()=>{document.body.classList.remove("is-open-photoviewer")})),[]),n.length?t("div",{className:j,role:"dialog","aria-modal":"true","aria-label":"Photo viewer",children:[e("div",{className:"c-photo-viewer__backdrop",onClick:k}),t("div",{className:"c-photo-viewer__container",children:[e(Xc,{currentIndex:b,imagesLength:n.length,onZoomOut:()=>C((e=>Math.max(e-.25,.1))),onResetZoom:()=>{Y()},onZoomIn:()=>C((e=>Math.min(e+.25,5))),onToggleFullscreen:()=>{if(m){if(E)document.exitFullscreen&&document.exitFullscreen();else{const e=document.documentElement;e.requestFullscreen&&e.requestFullscreen()}w(!E)}},onClose:f||k,isFullscreen:E,zoomLevel:v,onRotate:()=>{O((e=>(e+90)%360))},onDownload:()=>{if(!W?.src)return;const e=document.createElement("a");e.href=W.src;const t=(W.title||"image-"+(b+1)).replace(/[^a-zA-Z0-9.-]/g,"_");e.download=t,document.body.appendChild(e),e.click(),document.body.removeChild(e)},onShare:async()=>{if(navigator.share&&W?.src)try{await navigator.share({title:W.title||"Shared Image",text:W.description||"Check out this image",url:W.src})}catch(e){}},showInfo:x,onToggleInfo:()=>R(!x),currentImage:W}),t("div",{className:"c-photo-viewer__content",children:[e(Zc,{show:n.length>1,onPrev:M,onNext:D,currentIndex:b,imagesLength:n.length,enableKeyboardNav:d,onClose:f||k}),W?.src&&e(Jc,{imageRef:N,containerRef:T,src:W.src,alt:W?.alt||"Image "+(b+1),zoomLevel:v,dragPosition:S,isDragging:y,rotationAngle:A,isTransitioning:_,onMouseDown:B,onMouseMove:z,onMouseUp:U,onWheel:F,onTouchStart:G,onTouchMove:V,onTouchEnd:H,onDoubleClick:$})]}),"none"!==p&&e(ed,{images:K,currentIndex:b,goToImage:P}),e(td,{show:x,image:W,onClose:()=>R(!1)})]})]}):null};nd.displayName="PhotoViewer";const ad=g({isOpen:!1,setIsOpen:()=>{},triggerRef:{current:null},popoverId:"",triggerType:"click"}),rd=({content:n,position:a="top",trigger:l="click",className:c="",style:d,delay:u=0,offset:h=12,defaultOpen:m=!1,isOpen:p,onOpenChange:g,closeOnClickOutside:f=!0,closeOnEscape:b=!0,id:v,children:S,glass:y})=>{const{isOpen:E,setIsOpen:A,triggerRef:x,popoverRef:N,arrowRef:T,popoverId:_,currentPosition:C,updatePosition:L}=(({position:e="top",trigger:t="click",offset:n=12,delay:a=0,defaultOpen:l=!1,isOpen:c,onOpenChange:d,closeOnClickOutside:u=!0,closeOnEscape:h=!0,id:m})=>{const[p,g]=r(l),[f,b]=r("auto"===e?"top":e),v=i(null),S=i(null),y=i(null),E=i(null),A=m||"popover-"+Math.random().toString(36).slice(2,11),x=void 0!==c,N=x?c:p,T=o((e=>{x||g(e),d&&d(e)}),[x,d]);s((()=>{if("hover"!==t||!v.current||!S.current)return;const e=()=>{null!==E.current&&(clearTimeout(E.current),E.current=null),a>0?E.current=setTimeout((()=>{T(!0)}),a):T(!0)},n=()=>{null!==E.current&&(clearTimeout(E.current),E.current=null),E.current=setTimeout((()=>{S.current?.matches(":hover")||T(!1)}),100)},r=()=>{null!==E.current&&(clearTimeout(E.current),E.current=null)},i=()=>{T(!1)};v.current.addEventListener("mouseenter",e),v.current.addEventListener("mouseleave",n),S.current.addEventListener("mouseenter",r),S.current.addEventListener("mouseleave",i);const o=v.current,s=S.current;return()=>{o&&(o.removeEventListener("mouseenter",e),o.removeEventListener("mouseleave",n)),s&&(s.removeEventListener("mouseenter",r),s.removeEventListener("mouseleave",i)),null!==E.current&&window.clearTimeout(E.current)}}),[t,a,N,T]);const _=o((t=>{if(!v.current||!S.current)return;const a=v.current.getBoundingClientRect(),r=S.current.getBoundingClientRect(),i=window.innerWidth,o=window.innerHeight,s=50>a.top||a.bottom>o-50||50>a.left||a.right>i-50;if("scroll"===t?.type&&!s)return;const l=a.top,c=o-a.bottom,d=a.left,u=i-a.right;let h="auto"===e?"top":e;if("auto"===e){const e=[{position:"top",space:l},{position:"right",space:u},{position:"bottom",space:c},{position:"left",space:d}];e.sort(((e,t)=>t.space-e.space)),h=e[0]?.position}else("top"===e&&l<r.height+n&&c>=r.height+n||"bottom"===e&&c<r.height+n&&l>=r.height+n||"left"===e&&d<r.width+n&&u>=r.width+n||"right"===e&&u<r.width+n&&d>=r.width+n)&&(h={top:"bottom",bottom:"top",left:"right",right:"left",auto:"bottom"}[e]);b(h);let m=0,p=0;switch(h){case"top":m=a.top-r.height-n,p=a.left+a.width/2-r.width/2;break;case"bottom":m=a.bottom+n,p=a.left+a.width/2-r.width/2;break;case"left":m=a.top+a.height/2-r.height/2,p=a.left-r.width-n;break;case"right":m=a.top+a.height/2-r.height/2,p=a.right+n}0>p?p=5:p+r.width>i&&(p=i-r.width-5),0>m?m=5:m+r.height>o&&(m=o-r.height-5);const g=m+window.scrollY,f=p+window.scrollX;S.current&&(S.current.style.position="absolute",S.current.style.top=g+"px",S.current.style.left=f+"px")}),[e,n]);return s((()=>{if(!N||!v.current||!S.current)return;_(),window.addEventListener("resize",_);let e=null;const t=t=>{e||(e=setTimeout((()=>{_(t),e=null}),100))};window.addEventListener("scroll",t,{passive:!0});const n=setInterval((()=>{_()}),500);return()=>{window.removeEventListener("resize",_),window.removeEventListener("scroll",t),e&&clearTimeout(e),clearInterval(n)}}),[N,_]),s((()=>{if(!N||!u)return;const e=e=>{S.current&&!S.current.contains(e.target)&&v.current&&!v.current.contains(e.target)&&T(!1)};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}}),[N,u,T]),s((()=>{if(!N||!h)return;const e=e=>{"Escape"===e.key&&T(!1)};return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}}),[N,h,T]),s((()=>()=>{null!==E.current&&window.clearTimeout(E.current)}),[]),{isOpen:N,setIsOpen:T,triggerRef:v,popoverRef:S,arrowRef:y,popoverId:A,currentPosition:f,updatePosition:_}})({position:a,trigger:l,offset:h,delay:u,defaultOpen:m,isOpen:p,onOpenChange:g,closeOnClickOutside:f,closeOnEscape:b,id:v});return t(ad.Provider,{value:{isOpen:E,setIsOpen:A,triggerRef:x,popoverId:_,triggerType:l},children:[S,"undefined"!=typeof document&&O(t("div",{ref:N,className:`c-popover c-popover--${C} ${E?qa.CLASSES.IS_OPEN:""} ${y?"c-popover--glass":""} ${c}`,style:d,id:_,role:"tooltip","aria-hidden":!E,children:[y?(()=>{const t={displacementScale:50,blurAmount:1,saturation:160,aberrationIntensity:.5,borderRadius:8,mode:"shader"},a=!0===y?t:{...t,...y};return e(Ri,{...a,style:d,children:e("div",{className:"c-popover__content",children:e("div",{className:"c-popover__content-inner",children:n})})})})():e("div",{className:"c-popover__content",children:e("div",{className:"c-popover__content-inner",children:n})}),e("div",{ref:T,className:"c-popover__arrow"})]}),document.body)]})};c((({children:e,trigger:t},n)=>{const{isOpen:r,setIsOpen:i,triggerRef:o,popoverId:s,triggerType:l}=a.useContext(ad),c=t||l,d=a.Children.only(e),u={ref:n||o,"aria-describedby":s,"aria-expanded":r};return"click"===c?u.onClick=()=>{i(!r)}:"hover"===c&&(u.onMouseEnter=()=>{i(!0)},u.onMouseLeave=()=>{i(!1)}),a.cloneElement(d,u)})).displayName="PopoverTrigger",rd.displayName="Popover";const id=(e,t,n)=>{if(!n)return t;const a=e.currentTarget.getBoundingClientRect(),r=a.left+a.width/2,i=e.clientX<r;return Math.max(.5,i?t-.5:t)},od=c((({value:n=0,defaultValue:a,maxValue:l=5,allowHalf:c=!1,readOnly:d=!1,size:u="md",variant:h,onChange:m,className:p="",style:g,label:f,id:b,useVanillaJS:v=!1,glass:S,...y},E)=>{const A=i(null),x=i(null),{currentValue:N,hoverValue:T,focusedIndex:_,setHoverValue:C,setFocused:L,handleKeyDown:I}=(({value:e=0,maxValue:t=5,allowHalf:n=!1,readOnly:a=!1,onChange:i})=>{const s=void 0!==i,[l,c]=r(e),[d,u]=r(null),[h,m]=r(null),p=s?e:l,g=o((e=>{a||u(e)}),[a]),f=o((()=>{a||u(null)}),[a]),b=o((e=>{a||(s||c(e),i?.(e))}),[a,i,s]),v=o(((e,r)=>{if(a)return;const o=n?.5:1;let l=p;switch(e.key){case"ArrowRight":case"ArrowUp":l=Math.min(t,p+o),e.preventDefault();break;case"ArrowLeft":case"ArrowDown":l=Math.max(0,p-o),e.preventDefault();break;case"Home":l=0,e.preventDefault();break;case"End":l=t,e.preventDefault();break;case" ":case"Enter":l=r,e.preventDefault();break;default:return}l!==p&&(s||c(l),i?.(l))}),[p,t,n,a,i,s]);return{currentValue:p,hoverValue:d,focusedIndex:h,handleMouseEnter:g,handleMouseLeave:f,handleClick:b,handleKeyDown:v,setFocused:m,setHoverValue:u,isControlled:s}})({value:void 0!==n?n:a,maxValue:l,allowHalf:c,readOnly:d,onChange:m}),w=Bc(A,E),O=o(((e,t)=>{d||C(id(e,t,!!c))}),[d,c,C]),R=o(((e,t)=>{!d&&c&&C(id(e,t,!!c))}),[d,c,C]),k=o((()=>{d||C(null)}),[d,C]),M=o(((e,t)=>{if(d)return;const n=id(e,t,!!c);m?.(n)}),[d,m,c]);s((()=>{if(!v||"undefined"==typeof window||!A.current)return;const e=x.current;return()=>{e&&e.destroy()}}),[v,n,a,l,c,d,u,h,m]),s((()=>{v&&x.current&&x.current.updateOptions({value:void 0!==n?n:a,maxValue:l,allowHalf:c,readOnly:d,size:u,variant:h})}),[v,n,a,l,c,d,u,h]);const D=["c-rating","sm"===u?sr.CLASSES.SMALL:"","lg"===u?sr.CLASSES.LARGE:"",h?"c-rating--"+h:"",p].filter(Boolean).join(" ");if(v)return e("div",{className:D,ref:w,id:b,...y});const P=null!==T?T:N,B=e("div",{className:D,ref:w,id:b,style:g,"data-readonly":d?"true":"false",onMouseLeave:k,role:d?"img":"radiogroup","aria-label":f||`Rating: ${N} out of ${l} stars`,...y,children:(()=>{const n=[],a=c?Math.floor(2*P)/2:Math.round(P),r=b||"rating-"+Math.random().toString(36).substring(2,9);for(let i=1;l>=i;i++){const o=c&&i-.5===a,s=["c-rating__star",i>Math.floor(a)?"":sr.CLASSES.FULL,o?sr.CLASSES.HALF:"",h?"c-rating__star--"+h:"",_===i?"c-rating__star--focused":""].filter(Boolean).join(" "),u=`${r}-star-${i}`;n.push(e("div",{id:u,className:s,"data-value":i,role:d?"presentation":"button",tabIndex:d?-1:0,"aria-label":`${i} ${1===i?"star":"stars"}`,"aria-checked":a>=i,"aria-setsize":l,"aria-posinset":i,onClick:e=>M(e,i),onMouseEnter:e=>O(e,i),onMouseMove:e=>R(e,i),onFocus:()=>L(i),onBlur:()=>L(null),onKeyDown:e=>I(e,i),children:t("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",focusable:"false",children:[e("path",{className:"c-rating__star-outline",d:"M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z",strokeWidth:"1"}),e("path",{className:"c-rating__star-full",d:"M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z"}),e("path",{className:"c-rating__star-half",d:"M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z",clipPath:`url(#half-star-clip-${r}-${i})`}),e("defs",{children:e("clipPath",{id:`half-star-clip-${r}-${i}`,children:e("rect",{x:"0",y:"0",width:"12",height:"24"})})})]})},i))}return n})()});if(S){const t={displacementScale:60,blurAmount:1,saturation:160,aberrationIntensity:.5,borderRadius:8,mode:"shader"},n=!0===S?t:{...t,...S};return e(Ri,{...n,children:B})}return B}));od.displayName="Rating";const sd=({productName:n,productImage:a,initialRating:o=0,maxRating:l=5,allowHalf:c=!0,ratingColor:d="warning",onSubmit:u,className:h="",style:m})=>{const[p,g]=r(o),[f,b]=r(""),[v,S]=r(!1),y=i(null),E=i(null);s((()=>{if("undefined"==typeof window||!y.current)return;const e=E.current;return()=>{e&&e.destroy()}}),[n,a,o,l,c,d,u]);const A=e=>{e.preventDefault(),u&&u(p,f),S(!0)},x=["c-product-review",h].filter(Boolean).join(" ");return v?e("div",{className:x,ref:y,style:m,children:t("div",{className:"c-product-review__success",children:[e("h3",{children:"Thank you for your review!"}),e("p",{children:"Your feedback helps us improve our products."}),e(Vo,{variant:"secondary",label:"Write another review",onClick:()=>{S(!1),g(0),b("")}})]})}):t("div",{className:x,ref:y,style:m,children:[t("div",{className:"c-product-review__header",children:[t("h3",{className:"c-product-review__title",children:["Review ",n]}),a&&e("div",{className:"c-product-review__image-wrapper",children:e("img",{src:a,alt:n,className:"c-product-review__image"})})]}),t("form",{className:"c-product-review__form",onSubmit:A,children:[t("div",{className:"c-product-review__rating-container",children:[e("label",{className:"c-product-review__label",children:"Your Rating"}),t("div",{className:"c-rating-container",children:[e(od,{value:p,onChange:g,allowHalf:c,maxValue:l,size:"lg",variant:d}),e("span",{className:"c-rating__value",children:p>0?p.toFixed(1):"Select a rating"})]})]}),t("div",{className:"c-product-review__comment-container",children:[e("label",{htmlFor:"review-comment",className:"c-product-review__label",children:"Your Review"}),e("textarea",{id:"review-comment",className:"c-product-review__textarea",value:f,onChange:e=>b(e.target.value),placeholder:"Share your experience with this product...",rows:5})]}),e("div",{className:"c-product-review__actions",children:e(Vo,{variant:"primary",label:"Submit Review",disabled:0===p,onClick:()=>A(new Event("click"))})})]})]})};sd.displayName="ProductReview";const ld=l(c((({value:t,variant:n="primary",size:a="md",className:r="",style:i,disabled:o=!1,"aria-label":s=Tr.DEFAULTS.ARIA_LABEL,glass:l},c)=>{const{progressValue:d,progressStyle:u,progressClasses:h}=(({value:e,variant:t="primary",size:n="md",className:a=""})=>{const r=Math.min(Math.max(e,0),100),i="c-progress";return{progressValue:r,progressStyle:{"--atomix-progress-percentage":r+"%"},progressClasses:[i,t?`${i}--${t}`:"",n?`${i}--${n}`:"",a||""].filter(Boolean).join(" ")}})({value:t,variant:n,size:a,className:r}),m=e("div",{ref:c,className:h+(l?" c-progress--glass":""),style:{...u,...i},role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":d,"aria-label":s,"aria-disabled":o,children:e("div",{className:Tr.CLASSES.BAR})});if(l){const t={displacementScale:30,blurAmount:.5,borderRadius:8,mode:"shader"},n=!0===l?t:{...t,...l};return e(Ri,{...n,children:m})}return m})));ld.displayName="Progress";const cd=({title:n,text:a,actions:r,imageSrc:i,imageAlt:o="Image",center:s=!1,breakout:l=!1,reverse:c=!1,contentColumns:d,backgroundImageSrc:u,showOverlay:h=!0,contentWidth:m,className:p="",style:g})=>{const{generateRiverClassNames:f,generateContentClass:b,generateVisualClass:v,hasBackgroundImage:S,hasForegroundImage:y,textContent:E}=Sl({title:n,text:a,imageSrc:i,imageAlt:o,center:s,breakout:l,reverse:c,backgroundImageSrc:u,showOverlay:h,contentWidth:m}),A={...m?{[nr.ATTRIBUTES.CONTENT_WIDTH]:m}:{},...g},x=()=>S?t("div",{className:nr.SELECTORS.BG.replace(".",""),children:[e("img",{src:u,alt:"Background",className:nr.SELECTORS.BG_IMAGE.replace(".","")}),h&&e("div",{className:nr.SELECTORS.OVERLAY.replace(".","")})]}):null,N=()=>y?e("div",{className:v(),children:e("div",{className:nr.SELECTORS.IMAGE_WRAPPER.replace(".",""),children:e("img",{src:i,alt:o,className:nr.SELECTORS.IMAGE.replace(".","")})})}):null;return d&&d.length>0?t("div",{className:f(p),style:A,children:[x(),e("div",{className:nr.SELECTORS.CONTAINER.replace(".","")+" o-container",children:t("div",{className:nr.SELECTORS.ROW.replace(".",""),children:[!c&&N(),t("div",{className:b(),children:[d.map(((t,n)=>e("div",{className:`${nr.SELECTORS.CONTENT_COL.replace(".","")} ${nr.SELECTORS["CONTENT_COL_"+t.type.toUpperCase()].replace(".","")}`,children:t.content},n))),r&&e("div",{className:nr.SELECTORS.ACTIONS.replace(".",""),children:r})]}),c&&N()]})})]}):t("div",{className:f(p),style:A,children:[x(),e("div",{className:nr.SELECTORS.CONTAINER.replace(".","")+" o-container",children:t("div",{className:nr.SELECTORS.ROW.replace(".",""),children:[!c&&N(),t("div",{className:b(),children:[n&&e("h2",{className:nr.SELECTORS.TITLE.replace(".",""),children:n}),E.map(((t,n)=>e("p",{className:nr.SELECTORS.TEXT.replace(".",""),children:t},n))),r&&e("div",{className:nr.SELECTORS.ACTIONS.replace(".",""),children:r})]}),c&&N()]})})]})};cd.displayName="River";const dd=({title:n,label:a,text:r,actions:o,alignment:l="left",backgroundImageSrc:c,showOverlay:d=!1,imageSrc:u,imageAlt:h="Section image",size:m="md",skeleton:p=!1,className:g="",style:f})=>{const b=i(null),v=i(null);s((()=>{if("undefined"==typeof window||!b.current)return;const e=v.current;return()=>{e&&e.destroy()}}),[l,c,d,m,p]);const S=["c-sectionintro","center"===l?tr.CLASSES.CENTER:"","sm"===m?tr.CLASSES.SMALL:"","lg"===m?tr.CLASSES.LARGE:"",c?"c-sectionintro--has-bg":"",g].filter(Boolean).join(" ");return p?e("div",{className:S,ref:b,style:f,children:t("div",{className:"c-sectionintro__container",children:[a&&e("div",{className:"c-sectionintro__label",children:e("span",{className:"c-skeleton u-w-25"})}),e("div",{className:"c-sectionintro__title",children:e("span",{className:"c-skeleton"})}),r&&t("div",{className:"c-sectionintro__text",children:[e("span",{className:"c-skeleton"}),e("span",{className:"c-skeleton"}),e("span",{className:"c-skeleton u-w-75"})]}),o&&e("div",{className:"c-sectionintro__actions",children:e("span",{className:"c-skeleton u-w-25"})}),u&&e("div",{className:"c-sectionintro__image-wrapper",children:e("div",{className:"c-sectionintro__image c-skeleton"})})]})}):t("div",{className:S,ref:b,style:f,children:[c?t("div",{className:"c-sectionintro__bg",children:[e("img",{src:c,alt:"Background",className:"c-sectionintro__bg-image"}),d&&e("div",{className:"c-sectionintro__overlay"})]}):null,a&&e("div",{className:"c-sectionintro__label",children:a}),e("h2",{className:"c-sectionintro__title",children:n}),r&&e("div",{className:"c-sectionintro__text",children:r}),o&&e("div",{className:"c-sectionintro__actions",children:o}),u&&e("div",{className:"c-sectionintro__image-wrapper",children:e("img",{src:u,alt:h,className:"c-sectionintro__image"})})]})};dd.displayName="SectionIntro";const ud=c(((n,a)=>{const{slides:l=[],height:c=300,width:d="100%",slidesToShow:h=1,spaceBetween:m=0,loop:p=!1,initialSlide:g=0,direction:f="horizontal",speed:b=300,allowTouchMove:v=!0,threshold:S=50,grabCursor:y=!0,autoplay:E,navigation:A,pagination:x,className:N,style:T,onSlideChange:_,...C}=n,L=Array.isArray(l)?l:[],I=function(e){const{slides:t,slidesToShow:n=1,spaceBetween:a=0,loop:l=!1,initialSlide:c=0,direction:d="horizontal",speed:h=300,allowTouchMove:m=!0,threshold:p=50,autoplay:g,onSlideChange:f}=e,b=u((()=>Array.isArray(t)?t:[]),[t]),v=i(null),S=i(null),y=i(!1),E=i(null),[A,x]=r(!1),N=i({isTransitioning:!1,loop:l,slides:b,slidesToShow:n,speed:h,onSlideChange:f}),[T,_]=r(c),[C,L]=r(0),[I,w]=r(!1),[O,R]=r(0),[k,M]=r(!1),[D,P]=r(0),[B,z]=r(0),U=u((()=>0===O?0:(O-a*(n-1))/n),[O,a,n]),F=u((()=>l&&0!==b.length?[...b.map(((e,t)=>({...e,id:"set1-"+(e.id||t)}))),...b.map(((e,t)=>({...e,id:"set2-"+(e.id||t)}))),...b.map(((e,t)=>({...e,id:"set3-"+(e.id||t)})))]:b),[b,l]),G=b.length,V=u((()=>0===U?0:-C*U+B),[U,C,B]);s((()=>{N.current={isTransitioning:I,loop:l,slides:b,slidesToShow:n,speed:h,onSlideChange:f}}),[I,l,b,n,h,f]),s((()=>{if(!g)return E.current&&(clearInterval(E.current),E.current=null),void x(!1);const e="boolean"==typeof g?{delay:3e3}:g,{delay:t=3e3,pauseOnMouseEnter:n=!1,disableOnInteraction:a=!1,reverseDirection:r=!1}=e;E.current&&clearInterval(E.current),E.current=setInterval((()=>{const{isTransitioning:e,loop:t,slides:n,slidesToShow:i,speed:o,onSlideChange:s}=N.current;_((l=>{if(e)return l;let c;if(a&&E.current&&(clearInterval(E.current),E.current=null,x(!1)),c=t?(l+1)%n.length:Math.min(l+1,n.length-i),r){const e=t?0===l?n.length-1:l-1:Math.max(l-1,0);return L(t?n.length+e:e),w(!0),z(0),setTimeout((()=>{w(!1),s?.(e)}),o),e}return L(t?n.length+c:c),w(!0),z(0),setTimeout((()=>{w(!1),s?.(c),t&&c>=2*n.length&&(y.current=!0,L(n.length+c),setTimeout((()=>{y.current=!1}),0))}),o),c}))}),t),x(!0);let i=null;const o=()=>{E.current&&(clearInterval(E.current),E.current=null,x(!1))},s=()=>{E.current&&clearInterval(E.current),E.current=setInterval((()=>{const{isTransitioning:e,loop:t,slides:n,slidesToShow:a,speed:r,onSlideChange:i}=N.current;_((o=>{if(e)return o;let s;return s=t?(o+1)%n.length:Math.min(o+1,n.length-a),L(t?n.length+s:s),w(!0),z(0),setTimeout((()=>{w(!1),i?.(s),t&&(s<2*n.length||(y.current=!0,L(n.length+s),setTimeout((()=>{y.current=!1}),0)))}),r),s}))}),t),x(!0)};return n&&v.current&&(i=v.current,i.addEventListener("mouseenter",o),i.addEventListener("mouseleave",s)),()=>{E.current&&(clearInterval(E.current),E.current=null),i&&(i.removeEventListener("mouseenter",o),i.removeEventListener("mouseleave",s)),x(!1)}}),[g,y]),s((()=>{L(l?b.length+c:c)}),[l,b.length,c]),s((()=>{const e=()=>{if(v.current){const e="horizontal"===d?v.current.offsetWidth:v.current.offsetHeight;R(e)}};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)}),[d]);const H=o((()=>{if(!I)if(g&&"object"==typeof g&&g.disableOnInteraction&&E.current&&(clearInterval(E.current),E.current=null,x(!1)),l){const e=(T+1)%b.length,t=C+1;_(e),L(t),w(!0),z(0),setTimeout((()=>{w(!1),f?.(e),t<2*b.length||(y.current=!0,L(b.length+e),setTimeout((()=>{y.current=!1}),0))}),h)}else{const e=Math.min(T+1,b.length-n);_(e),L(e),w(!0),z(0),setTimeout((()=>{w(!1),f?.(e)}),h)}}),[T,C,b.length,n,l,I,h,f,g]),$=o((()=>{if(!I)if(g&&"object"==typeof g&&g.disableOnInteraction&&E.current&&(clearInterval(E.current),E.current=null,x(!1)),l){const e=0===T?b.length-1:T-1,t=C-1;_(e),L(t),w(!0),z(0),setTimeout((()=>{w(!1),f?.(e),t<b.length&&(y.current=!0,L(b.length+e),setTimeout((()=>{y.current=!1}),0))}),h)}else{const e=Math.max(T-1,0);_(e),L(e),w(!0),z(0),setTimeout((()=>{w(!1),f?.(e)}),h)}}),[T,C,b.length,l,I,h,f,g]),Y=o((e=>{I||e===T||(g&&"object"==typeof g&&g.disableOnInteraction&&E.current&&(clearInterval(E.current),E.current=null,x(!1)),w(!0),z(0),_(e),L(l?b.length+e:e),setTimeout((()=>{w(!1),f?.(e)}),h))}),[T,I,h,f,l,b.length,g]),K=o((e=>{if(!m)return;g&&"object"==typeof g&&g.disableOnInteraction&&E.current&&(clearInterval(E.current),E.current=null,x(!1));const t="horizontal"===d?"touches"in e?e.touches[0]?.clientX||0:e.clientX:"touches"in e?e.touches[0]?.clientY||0:e.clientY;P(t),M(!0),z(0)}),[m,d,g]),W=o((e=>{if(!k||!m)return;const t="horizontal"===d?"touches"in e?e.touches[0]?.clientX||0:e.clientX:"touches"in e?e.touches[0]?.clientY||0:e.clientY,n=D-t;Math.abs(n)>10&&(e.preventDefault(),z(.5*-n))}),[k,D,m,d]),j=o((e=>{if(!k||!m)return;const t="horizontal"===d?"changedTouches"in e?e.changedTouches[0]?.clientX||0:e.clientX:"changedTouches"in e?e.changedTouches[0]?.clientY||0:e.clientY,n=D-t;M(!1),z(0),Math.abs(n)>p&&(n>0?H():$())}),[k,D,p,H,$,m,d]),q=l||T<b.length-n,Q=l||T>0;return{activeIndex:T,realIndex:T,previousIndex:T,isBeginning:!l&&0===T,isEnd:!l&&T>=b.length-n,progress:b.length>0?T/(b.length-1):0,autoplayRunning:A,transitioning:I,touching:k,translate:V,slidesPerView:n,slidesCount:b.length,isLocked:!1,destroyed:!1,size:O,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},allowSlideNext:q,allowSlidePrev:Q,allowTouchMove:m,animating:I,enabled:!0,initialized:!0,slideNext:H,slidePrev:$,goToSlide:Y,canSlideNext:q,canSlidePrev:Q,containerRef:v,wrapperRef:S,handleTouchStart:K,handleTouchMove:W,handleTouchEnd:j,allSlides:F,translateValue:V,slideWidth:U,currentSlidesToShow:n,loopedSlides:G,repositioningRef:y}}({slides:L,slidesToShow:h,spaceBetween:m,loop:p,initialSlide:g,direction:f,speed:b,allowTouchMove:v,threshold:S,autoplay:E,onSlideChange:_}),{containerRef:w,wrapperRef:O,allSlides:R,realIndex:k,translateValue:M,slideWidth:D,transitioning:P,touching:B,slideNext:z,slidePrev:U,goToSlide:F,canSlideNext:G,canSlidePrev:V,handleTouchStart:H,handleTouchMove:$,handleTouchEnd:Y,loopedSlides:K}=I,W=u((()=>0===D?0:R.length*(D+m)-m),[R.length,D,m]);if(0===L.length)return e("div",{className:"c-slider c-slider--empty",style:{height:c,width:d,...T},children:e("div",{className:"c-slider__empty-message",children:"No slides available"})});const j=["c-slider","vertical"===f&&"c-slider--vertical",y&&"c-slider--grab-cursor",B&&"c-slider--grabbing",p&&"c-slider--loop",N].filter(Boolean).join(" ");return t("div",{ref:a||w,className:j,style:{height:"number"==typeof c?c+"px":c,width:"number"==typeof d?d+"px":d,overflow:"hidden",position:"relative",cursor:y&&!B?"grab":B?"grabbing":"default",...T},onTouchStart:H,onTouchMove:$,onTouchEnd:Y,onMouseDown:H,onMouseMove:$,onMouseUp:Y,onMouseLeave:Y,onKeyDown:e=>{switch(e.key){case"ArrowLeft":"horizontal"===f&&(e.preventDefault(),U());break;case"ArrowRight":"horizontal"===f&&(e.preventDefault(),z());break;case"ArrowUp":"vertical"===f&&(e.preventDefault(),U());break;case"ArrowDown":"vertical"===f&&(e.preventDefault(),z())}},role:"region","aria-roledescription":"carousel","aria-label":C["aria-label"]||"Image slider",tabIndex:0,children:[e("div",{ref:O,className:"c-slider__wrapper","aria-live":E?"off":"polite",style:{display:"flex",flexDirection:"vertical"===f?"column":"row",width:"horizontal"===f?W+"px":"100%",height:"vertical"===f?W+"px":"100%",transform:"horizontal"===f?`translateX(${M}px)`:`translateY(${M}px)`,transition:P&&!I.repositioningRef?.current?`transform ${b}ms ease-out`:"none",willChange:"transform"},children:R.map(((n,a)=>t("div",{className:["c-slider__slide",(p?a%L.length===k:a===k)&&"c-slider__slide--active",n.isClone&&"c-slider__slide--duplicate"].filter(Boolean).join(" "),style:{width:"vertical"===f?"100%":D+"px",height:"vertical"===f?D+"px":"100%",flexShrink:0,marginRight:"horizontal"===f&&a<R.length-1?m+"px":0,marginBottom:"vertical"===f&&a<R.length-1?m+"px":0},children:[n.video?e("video",{src:n.video.src,poster:n.video.poster,autoPlay:n.video.autoplay,loop:n.video.loop,muted:n.video.muted,style:{width:"100%",height:"100%",objectFit:"cover"}}):n.backgroundImage?e("div",{style:{width:"100%",height:"100%",backgroundImage:`url(${n.backgroundImage})`,backgroundSize:"cover",backgroundPosition:"center"},children:n.content}):n.image?e("img",{src:n.image,alt:n.alt||n.title||"",style:{width:"100%",height:"100%",objectFit:"cover"}}):n.content,(n.title||n.description)&&t("div",{className:"c-slider__slide-content",children:[n.title&&e("h3",{children:n.title}),n.description&&e("p",{children:n.description})]})]},n.id||a)))}),A&&t("div",{className:"c-slider__navigation",children:[e("button",{type:"button",className:"c-slider__navigation-prev",onClick:U,disabled:!V,"aria-label":"Previous slide"}),e("button",{type:"button",className:"c-slider__navigation-next",onClick:z,disabled:!G,"aria-label":"Next slide"})]}),x&&e("div",{className:"c-slider__pagination",children:L.map(((t,n)=>e("button",{type:"button",className:"c-slider__pagination-bullet "+(n===k?"c-slider__pagination-bullet--active":""),onClick:()=>F(n),"aria-label":"Go to slide "+(n+1)},n)))})]})}));ud.displayName="Slider";const hd=c((({children:n,className:a="",number:r,title:i,active:o,completed:s,index:l,...c},d)=>{const u=["c-steps__item",o?Za.CLASSES.ACTIVE:"",s?Za.CLASSES.COMPLETED:"",a].filter(Boolean).join(" ");return t("div",{ref:d,className:u,"aria-current":o?"step":void 0,"data-index":l,...c,children:[e("div",{className:"c-steps__line"}),t("div",{className:"c-steps__content",children:[null!=r&&e("div",{className:"c-steps__number",children:r}),i&&e("div",{className:"c-steps__text",children:i}),n&&e("div",{className:"c-steps__custom-content",children:n})]})]})}));hd.displayName="StepsItem";const md=({items:t,activeIndex:n=0,vertical:a=!1,onStepChange:i,className:o="",style:l,glass:c,children:d})=>{const[u,g]=r(n);let f;s((()=>{u!==n&&g(n)}),[n,u]),f=t&&t.length>0?t.map(((t,n)=>e(hd,{index:n,number:t.number,title:t.text,active:u>=n,completed:u>n,children:t.content},"step-"+n))):h.map(d,((e,t)=>{if(m(e)){const n=e.props,a=n.active??u>=t,r=n.completed??u>t,i=n.number??t+1;return p(e,{index:t,active:a,completed:r,number:i})}return e}));const b=e("div",{className:`c-steps ${a?Za.CLASSES.VERTICAL:""} ${o}`,style:l,role:"navigation","aria-label":"Steps",children:f});if(c){const t={displacementScale:60,blurAmount:1,saturation:160,aberrationIntensity:.5,borderRadius:8,mode:"shader"},n=!0===c?t:{...t,...c};return e(Ri,{...n,children:b})}return b};md.displayName="Steps",md.Item=hd,md.Step=hd;const pd=g({currentTab:0,handleTabClick:()=>{},handleKeyDown:()=>{},totalTabs:0}),gd=c((({children:t,className:n="",onKeyDown:r,...i},o)=>{const{handleKeyDown:s}=f(pd),l=a.Children.count(t);return e("ul",{ref:o,className:("c-tabs__nav "+n).trim(),role:"tablist",onKeyDown:e=>{s(e,l),r?.(e)},...i,children:a.Children.map(t,((e,t)=>a.isValidElement(e)?a.cloneElement(e,{index:t}):e))})}));gd.displayName="TabsList";const fd=c((({children:t,className:n="",index:a,onClick:r,...i},o)=>{const{currentTab:s,handleTabClick:l}=f(pd),c=void 0!==a&&s===a;return e("li",{className:"c-tabs__nav-item",role:"presentation",children:e("button",{ref:o,id:"tab-nav-"+a,className:`c-tabs__nav-btn ${c?Xa.CLASSES.ACTIVE:""} ${n}`.trim(),onClick:e=>{void 0!==a&&l(a),r?.(e)},"data-tabindex":a,role:"tab","aria-selected":c,"aria-controls":"tab-panel-"+a,tabIndex:c?0:-1,type:"button",...i,children:t})})}));fd.displayName="TabsTrigger";const bd=c((({children:t,className:n="",...r},i)=>e("div",{ref:i,className:("c-tabs__panels "+n).trim(),...r,children:a.Children.map(t,((e,t)=>a.isValidElement(e)?a.cloneElement(e,{index:t}):e))})));bd.displayName="TabsPanels";const vd=c((({children:t,className:n="",index:a,style:r,...i},o)=>{const{currentTab:s}=f(pd),l=void 0!==a&&s===a;return e("div",{ref:o,className:`c-tabs__panel ${l?Xa.CLASSES.ACTIVE:""} ${n}`.trim(),"data-tabindex":a,id:"tab-panel-"+a,role:"tabpanel","aria-labelledby":"tab-nav-"+a,style:{height:l?"auto":"0px",opacity:l?1:0,overflow:"hidden",transition:"height 0.3s ease, opacity 0.3s ease",...r},...i,children:e("div",{className:"c-tabs__panel-body",children:t})})}));vd.displayName="TabsPanel";const Sd=l((({items:i,activeIndex:o=Xa.DEFAULTS.ACTIVE_INDEX,onTabChange:s,className:l="",style:c,glass:d,children:u})=>{const[h,m]=r(o),p=e=>{m(e),s&&s(e)},g=(e,t)=>{let n=h;switch(e.key){case"ArrowRight":n=(h+1)%t;break;case"ArrowLeft":n=(h-1+t)%t;break;case"Home":n=0;break;case"End":n=t-1;break;default:return}e.preventDefault(),p(n),setTimeout((()=>{const e=document.getElementById("tab-nav-"+n);e&&e.focus()}),0)};let f;if(i&&i.length>0)f=t(n,{children:[e("ul",{className:"c-tabs__nav",role:"tablist",onKeyDown:e=>g(e,i.length),children:i.map(((t,n)=>e("li",{className:"c-tabs__nav-item",role:"presentation",children:e("button",{id:"tab-nav-"+n,className:"c-tabs__nav-btn "+(n===h?Xa.CLASSES.ACTIVE:""),onClick:()=>p(n),"data-tabindex":n,role:"tab","aria-selected":n===h,"aria-controls":"tab-panel-"+n,tabIndex:n===h?0:-1,type:"button",children:t.label})},"tab-nav-"+n)))}),e("div",{className:"c-tabs__panels",children:i.map(((t,n)=>e("div",{className:"c-tabs__panel "+(n===h?Xa.CLASSES.ACTIVE:""),"data-tabindex":n,id:"tab-panel-"+n,role:"tabpanel","aria-labelledby":"tab-nav-"+n,style:{height:n===h?"auto":"0px",opacity:n===h?1:0,overflow:"hidden",transition:"height 0.3s ease, opacity 0.3s ease"},children:e("div",{className:"c-tabs__panel-body",children:t.content})},"tab-panel-"+n)))})]});else{const t=a.Children.toArray(u).find((e=>a.isValidElement(e)&&"TabsList"===e.type.displayName)),n=t?a.Children.count(t.props.children):0;f=e(pd.Provider,{value:{currentTab:h,handleTabClick:p,handleKeyDown:g,totalTabs:n},children:u})}const b=e("div",{className:"c-tabs js-atomix-tab "+l,style:c,children:f});if(d){const t={displacementScale:60,blurAmount:1,saturation:160,aberrationIntensity:.5,borderRadius:8,mode:"shader"},n=!0===d?t:{...t,...d};return e(Ri,{...n,children:b})}return b}));Sd.displayName="Tabs",Sd.List=gd,Sd.Trigger=fd,Sd.Panels=bd,Sd.Panel=vd;const yd=({quote:n,author:a,size:r="",skeleton:o=!1,className:l="",style:c})=>{const d=i(null),u=i(null);s((()=>{if("undefined"==typeof window||!d.current)return;const e=u.current;return()=>{e&&e.destroy()}}),[r,o]);const h=["c-testimonial","sm"===r?Ja.CLASSES.SMALL:"","lg"===r?Ja.CLASSES.LARGE:"",l].filter(Boolean).join(" ");return t("div",o?{className:h,ref:d,style:c,children:[t("blockquote",{className:"c-testimonial__quote",children:[e("span",{className:"c-skeleton"}),e("span",{className:"c-skeleton"}),e("span",{className:"c-skeleton u-w-75"}),e("span",{className:"c-skeleton u-w-25"})]}),t("div",{className:"c-testimonial__author",children:[e("span",{className:"c-testimonial__author-avatar c-avatar c-avatar--xxl c-avatar--circle c-skeleton"}),t("div",{className:"c-testimonial__info u-w-75",children:[e("p",{className:"c-testimonial__author-name",children:e("span",{className:"c-skeleton u-w-25"})}),e("p",{className:"c-testimonial__author-role",children:e("span",{className:"c-skeleton u-w-25"})})]})]})]}:{className:h,ref:d,style:c,children:[e("blockquote",{className:"c-testimonial__quote",children:n}),a&&t("div",{className:"c-testimonial__author",children:[a.avatarSrc&&e("img",{src:a.avatarSrc,alt:a.avatarAlt||a.name+"'s avatar",className:"c-testimonial__author-avatar c-avatar c-avatar--xxl c-avatar--circle"}),t("div",{className:"c-testimonial__info",children:[e("p",{className:"c-testimonial__author-name",children:a.name}),e("p",{className:"c-testimonial__author-role",children:a.role})]})]})]})};yd.displayName="Testimonial";const Ed=({items:n=[],title:a="Todo List",onAddTodo:i,onToggleTodo:o,onDeleteTodo:l,size:c="md",placeholder:d="Add a new todo",showCompleted:u=!0,className:h="",style:m,disabled:p=!1})=>{const{inputText:g,setInputText:f,addTodo:b,generateTodoClasses:v,generateItemClasses:S}=Ql({items:n,title:a,size:c,placeholder:d,showCompleted:u,disabled:p}),[y,E]=r(n);s((()=>{E(n)}),[n]);const A=u?y:y.filter((e=>!e.completed)),x=v({size:c,className:h,disabled:p});return t("div",{className:x,style:m,children:[a&&e("h2",{className:"c-todo__title",children:a}),e("form",{className:"c-todo__form",onSubmit:e=>{if(e.preventDefault(),p||!g.trim())return;const t={id:Vl(),text:g.trim(),completed:!1};E((e=>[...e,t])),i&&i(g),f("")},children:t("div",{className:"c-todo__form-group",children:[e("input",{type:"text",className:"c-todo__input c-input",placeholder:d,value:g,onChange:e=>f(e.target.value),disabled:p,"aria-label":"Add a new todo"}),e("button",{type:"submit",className:"c-todo__add-btn c-btn c-btn--primary",disabled:p||!g.trim(),"aria-label":"Add todo",children:e(no,{name:"Plus",size:"sm"})})]})}),e("ul",{className:"c-todo__list",children:0===A.length?e("li",{className:"c-todo__empty",children:"No items to display"}):A.map((n=>e("li",{className:S(n),children:t("div",{className:"c-todo__item-content",children:[t("label",{className:"c-todo__checkbox-label",children:[e("input",{type:"checkbox",className:"c-todo__checkbox c-checkbox",checked:n.completed,onChange:()=>(e=>{p||(E((t=>t.map((t=>t.id===e?{...t,completed:!t.completed}:t)))),o&&o(e))})(n.id),disabled:p,"aria-label":`Mark "${n.text}" as ${n.completed?"incomplete":"complete"}`}),e("span",{className:"c-todo__item-text",children:n.text})]}),e("button",{type:"button",className:"c-todo__delete-btn c-btn c-btn--error c-btn--sm",onClick:()=>(e=>{p||(E((t=>t.filter((t=>t.id!==e)))),l&&l(e))})(n.id),disabled:p,"aria-label":`Delete "${n.text}"`,children:e(no,{name:"Trash",size:"sm"})})]})},n.id)))})]})};Ed.displayName="Todo";const Ad=({checked:t,defaultChecked:n=!1,onChange:a,disabled:i=!1,className:s="",style:l,glass:c,"aria-label":d,"aria-describedby":u})=>{const h=void 0!==t,[m,p]=r(n),g=h?t:m,f=o((()=>{if(i)return;const e=!g;h||p(e),a?.(e)}),[i,g,h,a]),b=["c-toggle",g&&Qa.CLASSES.IS_ON,i&&"is-disabled",c&&"c-toggle--glass",s].filter(Boolean).join(" "),v=e("div",{className:b,style:l,onClick:f,onKeyDown:e=>{i||"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),f())},role:"switch","aria-checked":g,tabIndex:i?-1:0,"aria-disabled":i,"aria-label":d,"aria-describedby":u,children:e("div",{className:"c-toggle__switch"})});if(c){const t={displacementScale:60,blurAmount:1,saturation:160,aberrationIntensity:.5,borderRadius:8,mode:"shader"},n=!0===c?t:{...t,...c};return e(Ri,{...n,children:v})}return v};Ad.displayName="Toggle";const xd=l((({content:n,children:a,position:l=ja.DEFAULTS.POSITION,trigger:c=ja.DEFAULTS.TRIGGER,className:d="",style:u,delay:h=ja.DEFAULTS.DELAY,offset:m=ja.DEFAULTS.OFFSET,glass:p})=>{const{isVisible:g,isPositioned:f,tooltipId:b,triggerRef:v,tooltipRef:S,tooltipStyle:y,arrowStyle:E,triggerProps:A,wrapperProps:x}=(({position:e="top",trigger:t="hover",offset:n=10,delay:a=200})=>{const[l,c]=r(!1),[d,u]=r(!1),[h,m]=r({}),[p,g]=r({}),f=i(null),b=i(null),v=i(null),S="tooltip-"+Math.random().toString(36).slice(2,11),y=o((()=>{f.current&&clearTimeout(f.current),a>0?f.current=setTimeout((()=>{c(!0)}),a):c(!0)}),[a]),E=o((()=>{f.current&&clearTimeout(f.current),c(!1),u(!1)}),[]),A=o((()=>{l?E():y()}),[l,y,E]),x=o((()=>{if(!b.current||!v.current)return;const t=b.current.getBoundingClientRect(),a=v.current.getBoundingClientRect(),r=b.current.parentElement;if(!r)return;const i=r.getBoundingClientRect(),o=(e=>{const t=getComputedStyle(e).getPropertyValue("--atomix-tooltip-arrow-size").trim();if(!t)return 8;const n=t.match(/([\d.]+)rem/);if(n?.[1])return 16*parseFloat(n[1]);const a=t.match(/([\d.]+)px/);return a?.[1]?parseFloat(a[1]):8})(v.current),s=((e,t,n,a,r,i)=>{const o=n.width||0,s=n.height||0,l=t.width,c=t.height,d={"--atomix-tooltip-offset":r+"px"},u={};switch(e){case"top":d.top=t.top-a.top-s-r+"px",d.left=t.left-a.left+l/2-o/2+"px",u.bottom=i/-2+"px",u.left=o/2-i/2+"px";break;case"bottom":d.top=t.bottom-a.top+r+"px",d.left=t.left-a.left+l/2-o/2+"px",u.top=i/-2+"px",u.left=o/2-i/2+"px";break;case"left":d.right=a.right-t.left+r+"px",d.top=t.top-a.top+c/2-s/2+"px",u.right=i/-2+"px",u.top=s/2-i/2+"px";break;case"right":d.left=t.right-a.left+r+"px",d.top=t.top-a.top+c/2-s/2+"px",u.left=i/-2+"px",u.top=s/2-i/2+"px";break;case"top-left":d.bottom=a.bottom-t.top+r+"px",d.left=t.left-a.left+"px",u.bottom=i/-2+"px",u.left=i+"px";break;case"top-right":d.bottom=a.bottom-t.top+r+"px",d.right=a.right-t.right+"px",u.bottom=i/-2+"px",u.right=i+"px";break;case"bottom-left":d.top=t.bottom-a.top+r+"px",d.left=t.left-a.left+"px",u.top=i/-2+"px",u.left=i+"px";break;case"bottom-right":d.top=t.bottom-a.top+r+"px",d.right=a.right-t.right+"px",u.top=i/-2+"px",u.right=i+"px"}return{tooltip:d,arrow:u}})(e,t,a,i,n,o);m(s.tooltip),g(s.arrow),u(!0)}),[e,n]);s((()=>{if(!l||!b.current||!v.current)return;const e=requestAnimationFrame((()=>{x()})),t=()=>{x()};return window.addEventListener("resize",t),window.addEventListener("scroll",t,!0),()=>{cancelAnimationFrame(e),window.removeEventListener("resize",t),window.removeEventListener("scroll",t,!0)}}),[l,x]),s((()=>{if(!l)return;const e=e=>{"Escape"===e.key&&E()};return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}}),[l,E]);const N={"aria-describedby":l?S:void 0},T={};return"hover"===t?(T.onMouseEnter=y,T.onMouseLeave=E,N.onFocus=y,N.onBlur=E):"click"===t&&(N.onClick=A),{isVisible:l,isPositioned:d,tooltipId:S,triggerRef:b,tooltipRef:v,tooltipStyle:h,arrowStyle:p,showTooltip:y,hideTooltip:E,toggleTooltip:A,triggerProps:N,wrapperProps:T}})({position:l,trigger:c,offset:m,delay:h});return t("div",{className:"u-position-relative u-inline-block",style:u,...x,children:[e("div",{ref:v,className:`${ja.SELECTORS.TRIGGER.substring(1)}${d?" "+d:""}`,...A,children:a}),g&&e("div",{ref:S,id:b,role:"tooltip",className:`c-tooltip ${ja.SELECTORS.TOOLTIP.substring(1)} ${{top:"c-tooltip--top",bottom:"c-tooltip--bottom",left:"c-tooltip--left",right:"c-tooltip--right","top-left":"c-tooltip--top-left","top-right":"c-tooltip--top-right","bottom-left":"c-tooltip--bottom-left","bottom-right":"c-tooltip--bottom-right"}[l]||"c-tooltip--top"} ${p?"c-tooltip--glass":""}`,"data-tooltip-position":l,"data-tooltip-trigger":c,style:{...y,...f?{}:{left:"-9999px",top:"-9999px"}},children:(()=>{const a=t("div",{className:`c-tooltip__content ${ja.SELECTORS.CONTENT.substring(1)} ${g&&f&&"is-active"}`,children:[e("span",{className:ja.SELECTORS.ARROW.substring(1),style:E}),n]});if(p){const t={displacementScale:100,blurAmount:3},n=!0===p?t:{...t,...p};return e(Ri,{...n,children:a})}return a})()})]})}));xd.displayName="Tooltip";const Nd=({disabled:n=!1,size:a="md",maxSizeInMB:l=5,acceptedFileTypes:c=["application/pdf","application/vnd.ms-excel","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","image/jpeg","image/png"],multiple:d=!1,title:u="Drag and Drop files here",supportedFilesText:h="Files supported: PDF, XSLS, JPEG, PNG, Scanner",buttonText:m="Choose File",helperText:p=`Maximum size: ${l}MB`,icon:g=e("i",{className:"icon-lux-cloud-arrow-up-fill"}),uploadEndpoint:f,uploadMethod:b="POST",uploadHeaders:v={},uploadData:S={},chunkSizeInMB:y=0,maxRetries:E=3,retryDelay:A=1e3,autoUpload:x=!0,onFileSelect:N,onFileUpload:T,onFileUploadComplete:_,onFileUploadError:C,onUploadCancel:L,className:I="",style:w})=>{const O=i(null),R=i(null),k=i(null),[M,D]=r("idle"),[P,B]=r(!1),[z,U]=r(null),[F,G]=r(0),[V,H]=r(null),[$,Y]=r(null),[K,W]=r(null),j=i(0),q=()=>{O.current&&!n&&O.current.click()},Q=e=>{if(!e.length)return;const t=(d?e:[e[0]]).filter((e=>void 0!==e&&X(e)));if(t.length&&N&&N(t),t.length){const e=t[0];e&&(U(e),x&&ee(e))}},X=e=>{const t=1024*l*1024;return e.size>t?(D("error"),Y(`File too large. Maximum size is ${l}MB.`),!1):!(c?.length&&!c.some((t=>{if(t.endsWith("/*")){const n=t.split("/")[0];return e.type.startsWith(n+"/")}return e.type===t}))&&(D("error"),Y("File type not supported."),1))},Z=o(((e,t)=>{if(0>=e||0>=t)return"";const n=t/e*100-t;if(0>=n)return"Almost done...";const a=Math.ceil(n/1e3);return 60>a?`${a} second${1!==a?"s":""} left`:`${Math.floor(a/60)}m ${a%60}s left`}),[]),J=o(((e,t,n,a,r)=>new Promise(((i,o)=>{const s=t*a,l=Math.min(s+a,e.size),c=e.slice(s,l),d=new FormData;d.append("file",c,e.name),d.append("chunkIndex",t.toString()),d.append("totalChunks",n.toString()),d.append("fileName",e.name),d.append("fileSize",e.size.toString()),Object.entries(S).forEach((([e,t])=>{d.append(e,t)}));const u=new XMLHttpRequest;r[t]=u,u.upload.addEventListener("progress",(n=>{if(n.lengthComputable&&R.current){n.loaded,n.total;const r=(t*a+n.loaded)/e.size*100;G(Math.min(r,100));const i=k.current?Date.now()-k.current:0,o=Z(r,i);H(o),T&&T(e,r)}})),u.addEventListener("load",(()=>{if(u.status>=200&&300>u.status)try{const e=u.responseText?JSON.parse(u.responseText):{};i(e)}catch{i({})}else o(Error(`Upload failed with status ${u.status}: ${u.statusText}`))})),u.addEventListener("error",(()=>{o(Error("Network error occurred during upload"))})),u.addEventListener("abort",(()=>{o(Error("Upload was cancelled"))})),u.open(b,f),Object.entries(v).forEach((([e,t])=>{u.setRequestHeader(e,t)})),u.send(d)}))),[f,b,v,S,T,Z]),ee=o((async(e,t=0)=>{if(f){D("loading"),G(0),Y(null),W(null),k.current=Date.now();try{const a=y>0?1024*y*1024:e.size,r=y>0?Math.ceil(e.size/a):1;if(r>1){const i=[];R.current={xhr:null,abortController:new AbortController,file:e,retryCount:t,chunkXhrs:i};try{const t=[];for(let n=0;r>n;n++){if(!R.current)throw Error("Upload was cancelled");const o=await J(e,n,r,a,i);t.push(o)}D("success"),W("Upload successful"),G(100),H(null),k.current=null,_&&_(e,t),R.current=null}catch(n){throw i.forEach((e=>{e&&e.readyState!==XMLHttpRequest.DONE&&e.abort()})),n}}else await new Promise(((n,a)=>{const r=new FormData;r.append("file",e),Object.entries(S).forEach((([e,t])=>{r.append(e,t)}));const i=new XMLHttpRequest,o=new AbortController;i.upload.addEventListener("progress",(t=>{if(t.lengthComputable){const n=t.loaded/t.total*100;G(n);const a=k.current?Date.now()-k.current:0,r=Z(n,a);H(r),T&&T(e,n)}})),i.addEventListener("load",(()=>{if(i.status>=200&&300>i.status){D("success"),W("Upload successful"),G(100),H(null),k.current=null;try{const t=i.responseText?JSON.parse(i.responseText):{};_&&_(e,t)}catch{_&&_(e)}R.current=null,n()}else a(Error(`Upload failed with status ${i.status}: ${i.statusText}`))})),i.addEventListener("error",(()=>{a(Error("Network error occurred during upload"))})),i.addEventListener("abort",(()=>{D("idle"),G(0),H(null),k.current=null,R.current=null,L&&L(e),a(Error("Upload was cancelled"))})),i.open(b,f),Object.entries(v).forEach((([e,t])=>{i.setRequestHeader(e,t)})),R.current={xhr:i,abortController:o,file:e,retryCount:t},i.send(r)}))}catch(n){const a=n instanceof Error?n.message:"Upload failed";E>t&&!Ra(a).call(a,"cancelled")?(D("loading"),Y(`Upload failed. Retrying... (${t+1}/${E})`),setTimeout((()=>{ee(e,t+1)}),A)):(D("error"),Y(a),G(0),H(null),k.current=null,R.current=null,C&&C(e,a))}}else{D("loading"),G(0),k.current=Date.now();let n=0;const a=setInterval((()=>{if(n+=5,100>n){G(n);const t=Date.now()-(k.current||Date.now()),a=Z(n,t);H(a),T&&T(e,n)}else clearInterval(a),D("success"),W("Upload successful"),k.current=null,_&&_(e),R.current=null}),500);R.current={xhr:null,abortController:new AbortController,file:e,retryCount:t,intervalId:a}}}),[f,b,v,S,y,E,A,T,_,C,L,J,Z]),te=o((()=>{R.current&&(R.current.xhr&&R.current.xhr.abort(),R.current.chunkXhrs&&R.current.chunkXhrs.forEach((e=>{e&&e.readyState!==XMLHttpRequest.DONE&&e.abort()})),R.current.intervalId&&clearInterval(R.current.intervalId),R.current=null),D("idle"),U(null),G(0),H(null),Y(null),W(null),k.current=null}),[]),ne=o((()=>{R.current&&(R.current.xhr&&R.current.xhr.abort(),R.current.chunkXhrs&&R.current.chunkXhrs.forEach((e=>{e&&e.readyState!==XMLHttpRequest.DONE&&e.abort()})),R.current.intervalId&&clearInterval(R.current.intervalId),R.current.abortController.abort(),L&&R.current.file&&L(R.current.file)),R.current=null,te()}),[L,te]);s((()=>()=>{R.current&&(R.current.xhr&&R.current.xhr.abort(),R.current.chunkXhrs&&R.current.chunkXhrs.forEach((e=>{e&&e.readyState!==XMLHttpRequest.DONE&&e.abort()})),R.current.intervalId&&clearInterval(R.current.intervalId))}),[]);const ae=["c-upload","md"!==a&&"c-upload--"+a,P&&ar.CLASSES.DRAGGING,n&&ar.CLASSES.DISABLED,"loading"===M&&"c-upload--loading","success"===M&&"c-upload--success","error"===M&&"c-upload--error",I].filter(Boolean).join(" ");return t("div",{className:ae,style:w,onDragEnter:e=>{e.preventDefault(),e.stopPropagation(),n||(j.current++,1===j.current&&B(!0))},onDragLeave:e=>{e.preventDefault(),e.stopPropagation(),n||(j.current--,0===j.current&&B(!1))},onDragOver:e=>{e.preventDefault(),e.stopPropagation()},onDrop:e=>{if(e.preventDefault(),e.stopPropagation(),n)return;if(j.current=0,B(!1),!e.dataTransfer.files?.length)return;const t=Array.from(e.dataTransfer.files);Q(t)},children:[t("div",{className:"c-upload__inner",role:"button",tabIndex:n?-1:0,"aria-label":`${u}. ${h}. ${p}`,"aria-disabled":n,onKeyDown:e=>{"Enter"!==e.key&&" "!==e.key||n||(e.preventDefault(),q())},children:[e("input",{type:"file",ref:O,className:"c-upload__input",onChange:e=>{if(!e.target.files?.length)return;const t=Array.from(e.target.files);Q(t)},disabled:n,accept:c.join(","),multiple:d,"aria-hidden":"true"}),e("div",{className:"c-upload__icon",children:g}),e("h3",{className:"c-upload__title",children:u}),e("p",{className:"c-upload__text",children:h}),e("button",{type:"button",className:"c-upload__btn c-btn",onClick:q,disabled:n,children:m}),e("p",{className:"c-upload__helper-text",children:p})]}),"idle"!==M&&t("div",{className:"c-upload__loader",style:{"--upload-loader-percentage":F},children:[z&&t("div",{className:"c-upload__loader-status",children:[e("h5",{className:"c-upload__loader-title",children:z.name}),t("div",{className:"c-upload__loader-progress",children:[t("div",{className:"c-upload__loader-par",children:[F,"%"]}),e("div",{className:"c-upload__loader-time",children:V})]})]}),("loading"===M||"error"===M||"success"===M)&&t("div",{className:"c-upload__loader-control",children:["loading"===M&&e("div",{className:"c-upload__loader-bar",children:t("svg",{children:[e("circle",{cx:"10",cy:"10",r:"10"}),e("circle",{cx:"10",cy:"10",r:"10"})]})}),"loading"===M&&e("button",{type:"button",className:"c-upload__loader-cancel",onClick:ne,"aria-label":"Cancel upload",children:e("i",{className:"icon-lux-x"})}),("error"===M||"success"===M)&&e("button",{type:"button",className:"c-upload__loader-close",onClick:te,"aria-label":"Close upload progress",children:e("i",{className:"icon-lux-x"})})]}),$&&"error"===M&&t("div",{className:"c-upload__error-message",children:[$,R.current&&R.current.retryCount<E&&e("button",{type:"button",className:"c-upload__retry-btn",onClick:()=>{z&&ee(z,R.current?.retryCount||0)},children:"Retry"})]}),K&&"success"===M&&e("div",{className:"c-upload__success-message",children:K})]})]})};Nd.displayName="Upload";const Td=c((({src:a,type:l="video",youtubeId:c,poster:d,autoplay:u=!1,loop:h=!1,muted:m=!1,controls:p=!0,preload:g="metadata",width:f,height:b,aspectRatio:v="16:9",className:S="",onPlay:O,onPause:R,onEnded:k,onTimeUpdate:M,onVolumeChange:D,onFullscreenChange:P,onError:B,showDownload:z=!1,showShare:U=!1,showSettings:F=!0,playbackRates:G=[.5,.75,1,1.25,1.5,2],subtitles:V,quality:H,ambientMode:$=!1,glass:Y=!1,glassOpacity:K=1,glassContent:W,style:j,...q},Q)=>{const X=i(null),Z=i(null),J=i(null),ee=i(null),[te,ne]=r(8),ae="youtube"===l||c||a&&Hl(a),re=c||(ae&&a?$l(a):null),{isPlaying:ie,currentTime:oe,duration:se,volume:le,isMuted:ce,isFullscreen:de,isLoading:ue,playbackRate:he,currentQuality:me,showControls:pe,play:ge,pause:fe,togglePlay:be,seek:ve,setVolume:Se,toggleMute:ye,toggleFullscreen:Ee,togglePictureInPicture:Ae,setPlaybackRate:xe,setQuality:Ne,formatTime:Te,getProgressPercentage:_e,getBufferedPercentage:Ce}=function({videoRef:e,containerRef:t,onPlay:n,onPause:a,onEnded:l,onTimeUpdate:c,onVolumeChange:d,onFullscreenChange:u,onError:h,playbackRates:m=[.5,.75,1,1.25,1.5,2],quality:p}){const[g,f]=r(!1),[b,v]=r(0),[S,y]=r(0),[E,A]=r(1),[x,N]=r(!1),[T,_]=r(!1),[C,L]=r(!1),[I,w]=r(!1),[O,R]=r(0),[k,M]=r(1),[D,P]=r(p?.[0]||null),[B,z]=r(!0),U=i(null),F=o((()=>{U.current&&clearTimeout(U.current),z(!0);const e=setTimeout((()=>{g&&z(!1)}),3e3);U.current=e}),[g]),G=o((async()=>{if(e.current)try{await e.current.play(),f(!0),n?.()}catch(t){h?.(t),f(!1)}}),[e,n,h]),V=o((()=>{e.current&&(e.current.pause(),f(!1),a?.())}),[e,a]),H=o((()=>{g?V():G()}),[g,G,V]),$=o((t=>{e.current&&(e.current.currentTime=Math.max(0,Math.min(t,S)))}),[e,S]),Y=o((t=>{const n=Math.max(0,Math.min(1,t));e.current&&(e.current.volume=n,A(n),N(0===n),d?.(n))}),[e,d]),K=o((()=>{if(e.current){const t=!x;e.current.muted=t,N(t)}}),[e,x]),W=o((async()=>{if(t.current)try{T?document.exitFullscreen&&await document.exitFullscreen():t.current.requestFullscreen&&await t.current.requestFullscreen()}catch(e){}}),[t,T]),j=o((async()=>{if(e.current)try{C?document.exitPictureInPicture&&await document.exitPictureInPicture():e.current.requestPictureInPicture&&await e.current.requestPictureInPicture()}catch(t){}}),[e,C]),q=o((t=>{e.current&&Ra(m).call(m,t)&&(e.current.playbackRate=t,M(t))}),[e,m]),Q=o((t=>{if(e.current&&p){const n=e.current.currentTime,a=!e.current.paused,r=(t.src+"").replace(/[<>"']/g,"");r&&(r.startsWith("http://")||r.startsWith("https://")||r.startsWith("blob:")||r.startsWith("data:"))&&(e.current.src=r,e.current.currentTime=n,a&&e.current.play(),P(t))}}),[e,p]),X=o((e=>{const t=Math.floor(e/3600),n=Math.floor(e%3600/60),a=Math.floor(e%60);return t>0?`${t}:${n.toString().padStart(2,"0")}:${a.toString().padStart(2,"0")}`:`${n}:${a.toString().padStart(2,"0")}`}),[]),Z=o((()=>S>0?b/S*100:0),[b,S]),J=o((()=>S>0?O/S*100:0),[O,S]);s((()=>{const t=e.current;if(!t)return;const r=()=>w(!0),i=()=>w(!1),o=()=>{y(t.duration),A(t.volume),N(t.muted)},s=()=>{v(t.currentTime),c?.(t.currentTime)},u=()=>{t.buffered.length>0&&R(t.buffered.end(t.buffered.length-1))},m=()=>{f(!0),n?.()},p=()=>{f(!1),a?.()},g=()=>{f(!1),l?.()},b=()=>{A(t.volume),N(t.muted),d?.(t.volume)},S=e=>{w(!1),h?.(e)},E=()=>L(!0),x=()=>L(!1);return t.addEventListener("loadstart",r),t.addEventListener("canplay",i),t.addEventListener("loadedmetadata",o),t.addEventListener("timeupdate",s),t.addEventListener("progress",u),t.addEventListener("play",m),t.addEventListener("pause",p),t.addEventListener("ended",g),t.addEventListener("volumechange",b),t.addEventListener("error",S),t.addEventListener("enterpictureinpicture",E),t.addEventListener("leavepictureinpicture",x),()=>{t.removeEventListener("loadstart",r),t.removeEventListener("canplay",i),t.removeEventListener("loadedmetadata",o),t.removeEventListener("timeupdate",s),t.removeEventListener("progress",u),t.removeEventListener("play",m),t.removeEventListener("pause",p),t.removeEventListener("ended",g),t.removeEventListener("volumechange",b),t.removeEventListener("error",S),t.removeEventListener("enterpictureinpicture",E),t.removeEventListener("leavepictureinpicture",x)}}),[e,n,a,l,c,d,h]),s((()=>{const e=()=>{const e=!!document.fullscreenElement;_(e),u?.(e)};return document.addEventListener("fullscreenchange",e),()=>document.removeEventListener("fullscreenchange",e)}),[u]);const ee=o((e=>{if(t.current?.contains(document.activeElement))switch(e.code){case"Space":e.preventDefault(),H();break;case"ArrowLeft":e.preventDefault(),$(b-10);break;case"ArrowRight":e.preventDefault(),$(b+10);break;case"ArrowUp":e.preventDefault(),Y(Math.min(1,E+.1));break;case"ArrowDown":e.preventDefault(),Y(Math.max(0,E-.1));break;case"KeyM":e.preventDefault(),K();break;case"KeyF":e.preventDefault(),W()}}),[H,$,b,Y,E,K,W,t]);s((()=>(document.addEventListener("keydown",ee),()=>document.removeEventListener("keydown",ee))),[ee]);const te=o((()=>F()),[F]),ne=o((()=>{U.current&&clearTimeout(U.current),g&&z(!1)}),[g]);return s((()=>{const e=t.current;if(e)return e.addEventListener("mousemove",te),e.addEventListener("mouseleave",ne),()=>{e.removeEventListener("mousemove",te),e.removeEventListener("mouseleave",ne),U.current&&clearTimeout(U.current)}}),[t,te,ne]),{isPlaying:g,currentTime:b,duration:S,volume:E,isMuted:x,isFullscreen:T,isPictureInPicture:C,isLoading:I,buffered:O,playbackRate:k,currentQuality:D,showControls:B,play:G,pause:V,togglePlay:H,seek:$,setVolume:Y,toggleMute:K,toggleFullscreen:W,togglePictureInPicture:j,setPlaybackRate:q,setQuality:Q,formatTime:X,getProgressPercentage:Z,getBufferedPercentage:J}}({videoRef:X,containerRef:Z,onPlay:O,onPause:R,onEnded:k,onTimeUpdate:M,onVolumeChange:D,onFullscreenChange:P,onError:B,playbackRates:G,quality:H});!function({videoRef:e,canvasRef:t,enabled:n,blur:a=60,opacity:r=.6,scale:o=1.2}){const l=i(60);s((()=>{if(!n||!e.current||!t.current)return;const i=e.current,s=t.current,c=s.getContext("2d");if(!c)return;const d=()=>{if(!i||!s||!c)return;const e=i.getBoundingClientRect();s.width=e.width*o,s.height=e.height*o,c.filter=`blur(${a}px)`,c.globalAlpha=r;try{c.drawImage(i,0,0,s.width,s.height)}catch(t){}n&&(l.current=requestAnimationFrame(d))},u=()=>{n&&d()},h=()=>{l.current&&cancelAnimationFrame(l.current)};return i.addEventListener("play",u),i.addEventListener("pause",h),i.addEventListener("ended",h),i.paused||u(),()=>{i.removeEventListener("play",u),i.removeEventListener("pause",h),i.removeEventListener("ended",h),l.current&&cancelAnimationFrame(l.current)}}),[n,a,r,o,e,t])}({videoRef:X,canvasRef:J,enabled:$});const[Le,Ie]=r(!1),[we,Oe]=r("quality"),[Re,ke]=r(V?.find((e=>e.default))?.srcLang||null),[Me,De]=r({width:0,height:0}),Pe=o((e=>{const t=e.currentTarget.getBoundingClientRect(),n=(e.clientX-t.left)/t.width;ve(n*se)}),[se,ve]),Be=o((e=>{const t=e.currentTarget.getBoundingClientRect(),n=(e.clientX-t.left)/t.width;Se(n)}),[Se]),ze=o((()=>{if(a)try{var e;const t=new URL(a,window.location.origin);if(Ra(e=["http:","https:","blob:","data:"]).call(e,t.protocol)){const e=document.createElement("a");e.href=t.href,e.download="video",e.click()}}catch(t){}}),[a]),Ue=o((async()=>{if(navigator.share)try{await navigator.share({title:"Video",url:window.location.href})}catch(e){}}),[]),Fe=o((e=>{const t=X.current;if(t){const n=t.textTracks;for(let e=0;e<n.length;e++){const t=n[e];t&&(t.mode="hidden")}if(e)for(let t=0;t<n.length;t++){const a=n[t];if(a&&a.language===e){a.mode="showing";break}}ke(e)}}),[X]);s((()=>{const e=X.current;if(e&&V){const t=()=>{setTimeout((()=>{const e=V.find((e=>e.default));e&&Fe(e.srcLang)}),100)},n=()=>{if(e.textTracks.length>0){const e=V.find((e=>e.default));e&&Fe(e.srcLang)}};return e.addEventListener("loadeddata",t),e.addEventListener("canplay",n),()=>{e.removeEventListener("loadeddata",t),e.removeEventListener("canplay",n)}}}),[V,Fe,X]),s((()=>{const e=()=>{if(ae&&ee.current){const e=ee.current.getBoundingClientRect();De({width:e.width,height:e.height})}else if(X.current){const e=X.current.getBoundingClientRect();De({width:e.width,height:e.height})}},t=setTimeout(e,100),n=new ResizeObserver(e);if(ae&&ee.current){const a=ee.current;n.observe(a);const r=()=>e();return a.addEventListener("load",r),()=>{clearTimeout(t),n.disconnect(),a.removeEventListener("load",r)}}if(X.current){const a=X.current;n.observe(a);const r=()=>e();return a.addEventListener("loadedmetadata",r),()=>{clearTimeout(t),n.disconnect(),a.removeEventListener("loadedmetadata",r)}}return window.addEventListener("resize",e),()=>{clearTimeout(t),n.disconnect(),window.removeEventListener("resize",e)}}),[ae,X,ee]);const Ge=o((()=>{Z.current&&Z.current.focus()}),[]);s((()=>{const e=()=>{if(!Z.current)return;const e=window.getComputedStyle(Z.current),t=e.borderRadius||e.borderTopLeftRadius,n=parseFloat(t);isNaN(n)||ne(n)};e();let t=null;"undefined"!=typeof ResizeObserver&&Z.current&&(t=new ResizeObserver(e),t.observe(Z.current)),window.addEventListener("resize",e);const n=Z.current;return()=>{window.removeEventListener("resize",e),t&&n&&(t.unobserve(n),t.disconnect())}}),[]);const Ve=o((e=>{switch(e.key){case" ":case"k":e.preventDefault(),be();break;case"ArrowLeft":e.preventDefault(),ve(oe-10);break;case"ArrowRight":e.preventDefault(),ve(oe+10);break;case"ArrowUp":e.preventDefault(),Se(Math.min(1,le+.1));break;case"ArrowDown":e.preventDefault(),Se(Math.max(0,le-.1));break;case"m":e.preventDefault(),ye();break;case"f":e.preventDefault(),Ee()}}),[be,oe,ve,le,Se,ye,Ee]);return t("div",{ref:Z,className:`${Cr.CLASSES.BASE} ${ae?Cr.CLASSES.YOUTUBE:""} ${$?Cr.CLASSES.AMBIENT:""} ${Y?Cr.CLASSES.GLASS:""} ${S}`,style:{width:f,height:b,aspectRatio:v?v.replace(":","/"):void 0,...j},tabIndex:0,onClick:Ge,onKeyDown:Ve,role:"application","aria-label":"Video player",...q,children:[$&&e("canvas",{ref:J,className:Cr.CLASSES.AMBIENT_CANVAS,"aria-hidden":"true"}),ae&&re?e("iframe",{ref:ee,className:Cr.CLASSES.VIDEO,src:`https://www.youtube.com/embed/${re}?${new URLSearchParams({autoplay:u?"1":"0",loop:h?"1":"0",mute:m?"1":"0",controls:p?"1":"0",modestbranding:"1",rel:"0",...h&&{playlist:re}}).toString()}`,title:"YouTube video player",frameBorder:"0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",allowFullScreen:!0}):e("video",{ref:e=>{X&&X.current!==e&&(X.current=e),"function"==typeof Q?Q(e):Q&&Q.current!==e&&(Q.current=e)},className:Cr.CLASSES.VIDEO,src:a,poster:d,autoPlay:u,loop:h,muted:m,preload:g,controls:!1,crossOrigin:"anonymous",children:V&&V.map((t=>e("track",{kind:"subtitles",src:t.src,srcLang:t.srcLang,label:t.label,default:t.default},t.srcLang)))}),ue&&e("div",{className:Cr.CLASSES.LOADING,children:e("div",{className:Cr.CLASSES.SPINNER})}),Y&&e("div",{className:Cr.CLASSES.GLASS_OVERLAY,children:e(Ri,{..."boolean"==typeof Y?{}:Y,mouseContainer:Z,displacementScale:100,blurAmount:0,saturation:100,elasticity:0,children:!W&&e("div",{style:{width:Me.width>0?Me.width+"px":"100%",height:Me.height>0?Me.height+"px":"100%",display:"flex",alignItems:"center",justifyContent:"center",background:"transparent"}})})}),Y&&W&&e("div",{className:Cr.CLASSES.GLASS_CONTENT,style:{display:"flex",alignItems:"center",justifyContent:"center"},children:W}),p&&!ae&&t("div",{className:`${Cr.CLASSES.CONTROLS} ${pe?Cr.CLASSES.CONTROLS_VISIBLE:""}`,style:{zIndex:Y?3:"auto"},children:[e("div",{className:Cr.CLASSES.PROGRESS_CONTAINER,children:t("div",{className:Cr.CLASSES.PROGRESS_BAR,onClick:Pe,children:[e("div",{className:Cr.CLASSES.PROGRESS_BUFFERED,style:{width:Ce()+"%"}}),e("div",{className:Cr.CLASSES.PROGRESS_PLAYED,style:{width:_e()+"%"}}),e("div",{className:Cr.CLASSES.PROGRESS_THUMB,style:{left:_e()+"%"}})]})}),t("div",{className:Cr.CLASSES.CONTROLS_ROW,children:[t("div",{className:Cr.CLASSES.CONTROLS_LEFT,children:[e("button",{className:Cr.CLASSES.CONTROL_BUTTON,onClick:be,"aria-label":ie?"Pause":"Play",children:e(ie?y:E,{size:20})}),e("button",{className:Cr.CLASSES.CONTROL_BUTTON,onClick:()=>ve(oe-10),"aria-label":"Skip back 10 seconds",children:e(A,{size:20})}),e("button",{className:Cr.CLASSES.CONTROL_BUTTON,onClick:()=>ve(oe+10),"aria-label":"Skip forward 10 seconds",children:e(x,{size:20})}),t("div",{className:Cr.CLASSES.VOLUME_CONTAINER,children:[e("button",{className:Cr.CLASSES.CONTROL_BUTTON,onClick:ye,"aria-label":ce?"Unmute":"Mute",children:e(ce||0===le?N:T,{size:20})}),e("div",{className:Cr.CLASSES.VOLUME_SLIDER,children:e("div",{className:Cr.CLASSES.VOLUME_BAR,onClick:Be,children:e("div",{className:Cr.CLASSES.VOLUME_FILL,style:{width:100*le+"%"}})})})]}),t("div",{className:Cr.CLASSES.TIME_DISPLAY,children:[e("span",{children:Te(oe)}),e("span",{children:"/"}),e("span",{children:Te(se)})]})]}),t("div",{className:Cr.CLASSES.CONTROLS_RIGHT,children:[F&&t("div",{className:Cr.CLASSES.SETTINGS_CONTAINER,children:[e("button",{className:Cr.CLASSES.CONTROL_BUTTON,onClick:()=>Ie(!Le),"aria-label":"Settings",children:e(_,{size:20})}),Le&&t("div",{className:Cr.CLASSES.SETTINGS_MENU,children:[t("div",{className:Cr.CLASSES.SETTINGS_TABS,children:[H&&H.length>1&&e("button",{className:`${Cr.CLASSES.SETTINGS_TAB} ${"quality"===we?Cr.CLASSES.SETTINGS_TAB_ACTIVE:""}`,onClick:()=>Oe("quality"),children:"Quality"}),e("button",{className:`${Cr.CLASSES.SETTINGS_TAB} ${"speed"===we?Cr.CLASSES.SETTINGS_TAB_ACTIVE:""}`,onClick:()=>Oe("speed"),children:"Speed"}),e("button",{className:`${Cr.CLASSES.SETTINGS_TAB} ${"subtitles"===we?Cr.CLASSES.SETTINGS_TAB_ACTIVE:""}`,onClick:()=>Oe("subtitles"),children:"Subtitles"})]}),t("div",{className:Cr.CLASSES.SETTINGS_CONTENT,children:["quality"===we&&H&&e("div",{className:Cr.CLASSES.SETTINGS_OPTIONS,children:H.map((t=>e("button",{className:`${Cr.CLASSES.SETTINGS_OPTION} ${me?.label===t.label?Cr.CLASSES.SETTINGS_OPTION_ACTIVE:""}`,onClick:()=>Ne(t),children:t.label},t.label)))}),"speed"===we&&e("div",{className:Cr.CLASSES.SETTINGS_OPTIONS,children:G.map((e=>t("button",{className:`${Cr.CLASSES.SETTINGS_OPTION} ${he===e?Cr.CLASSES.SETTINGS_OPTION_ACTIVE:""}`,onClick:()=>xe(e),children:[e,"x"]},e)))}),"subtitles"===we&&e("div",{className:Cr.CLASSES.SETTINGS_OPTIONS,children:V&&V.length>0?t(n,{children:[e("button",{className:`${Cr.CLASSES.SETTINGS_OPTION} ${null===Re?Cr.CLASSES.SETTINGS_OPTION_ACTIVE:""}`,onClick:()=>Fe(null),children:"Off"}),V.map((t=>e("button",{className:`${Cr.CLASSES.SETTINGS_OPTION} ${Re===t.srcLang?Cr.CLASSES.SETTINGS_OPTION_ACTIVE:""}`,onClick:()=>Fe(t.srcLang),children:t.label},t.srcLang)))]}):e("div",{className:Cr.CLASSES.SETTINGS_OPTION,style:{opacity:.6,cursor:"default"},children:"No subtitles available"})})]})]})]}),z&&e("button",{className:Cr.CLASSES.CONTROL_BUTTON,onClick:ze,"aria-label":"Download video",children:e(C,{size:20})}),U&&e("button",{className:Cr.CLASSES.CONTROL_BUTTON,onClick:Ue,"aria-label":"Share video",children:e(L,{size:20})}),e("button",{className:Cr.CLASSES.CONTROL_BUTTON,onClick:Ae,"aria-label":"Picture in Picture",children:e("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"currentColor",children:e("path",{d:"M19 7h-8v6h8V7zm2-4H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H3V5h18v14z"})})}),e("button",{className:Cr.CLASSES.CONTROL_BUTTON,onClick:Ee,"aria-label":de?"Exit fullscreen":"Enter fullscreen",children:e(de?I:w,{size:20})})]})]})]})]})}));Td.displayName="VideoPlayer";var _d=Object.freeze({__proto__:null,Accordion:zi,AreaChart:ps,AtomixGlass:Ri,AtomixLogo:Ui,Avatar:ao,AvatarGroup:ro,Badge:oo,BarChart:fs,Block:co,Breadcrumb:ho,BubbleChart:bs,Button:Vo,ButtonGroup:Ho,Callout:Xo,CandlestickChart:vs,Card:as,Chart:cs,ChartRenderer:us,Checkbox:Ys,ColorModeToggle:zs,Countdown:Us,DataTable:el,DatePicker:il,DonutChart:Ss,Dropdown:Js,EdgePanel:ul,ElevationCard:rs,Footer:bc,FooterLink:Ac,FooterSection:Ec,FooterSocialLink:mc,Form:ml,FormGroup:gl,FunnelChart:ys,GaugeChart:Es,HeatmapChart:xs,Hero:Nc,Icon:no,Input:bl,LineChart:Ts,List:_c,ListGroup:Cc,MegaMenu:Wc,MegaMenuColumn:jc,MegaMenuLink:qc,Menu:Hc,MenuDivider:Kc,MenuItem:$c,Messages:Lc,Modal:Mc,MultiAxisChart:_s,Nav:Dc,NavDropdown:Qc,NavItem:zc,Navbar:Uc,Pagination:$s,PhotoViewer:nd,PieChart:Ls,Popover:rd,ProductReview:sd,Progress:ld,RadarChart:Is,Radio:lc,Rating:od,River:cd,ScatterChart:ws,SectionIntro:dd,Select:sc,SideMenu:Vc,SideMenuItem:Gc,SideMenuList:Fc,Slider:ud,Spinner:po,Steps:md,Tabs:Sd,Testimonial:yd,Textarea:cc,Todo:Ed,Toggle:Ad,Tooltip:xd,TreemapChart:Ms,Upload:Nd,VideoPlayer:Td,WaterfallChart:Ds}),Cd=Object.freeze({__proto__:null}),Ld=Object.freeze({__proto__:null,ACCORDION:Ga,ATOMIX_GLASS:Dr,AVATAR:yr,AVATAR_GROUP:Er,BADGE:Va,BLOCK:kr,BREADCRUMB:Ya,BUTTON:za,BUTTON_GROUP:Ua,CALLOUT:Fa,CARD:br,CHART:Or,CLASS_PREFIX:Da,CODE_SNIPPET:Rr,COUNTDOWN:Ka,DATA_TABLE_CLASSES:cr,DATA_TABLE_SELECTORS:dr,DATEPICKER:_r,DROPDOWN:Nr,EDGE_PANEL:lr,FOOTER:Mr,FORM:mr,FORM_GROUP:pr,HERO:Wa,INPUT:gr,LIST:Ha,LIST_GROUP:$a,MESSAGES:xr,MODAL:Ar,NAV:ir,NAVBAR:rr,PAGINATION_DEFAULTS:ur,PHOTOVIEWER:Lr,POPOVER:qa,PROGRESS:Tr,RADIO:fr,RATING:sr,RIVER:nr,SECTION_INTRO:tr,SELECT:vr,SIDE_MENU:or,SIZES:Ma,SLIDER:wr,SPINNER:er,STEPS:Za,TAB:Xa,TESTIMONIAL:Ja,TEXTAREA:Sr,THEME_COLORS:ka,THEME_NAMING:Pa,TODO:hr,TOGGLE:Qa,TOOLTIP:ja,TYPEDBUTTON:Ba,UPLOAD:ar,VIDEO_PLAYER:Cr,sliderConstants:Ir});const Id={primary:"#7c3aed",secondary:"#f3f4f6",success:"#22c55e",info:"#3b82f6",warning:"#eab308",error:"#ef4444",light:"#f9fafb",dark:"#1f2937","primary-rgb":"124, 58, 237","secondary-rgb":"243, 244, 246","success-rgb":"34, 197, 94","info-rgb":"59, 130, 246","warning-rgb":"234, 179, 8","error-rgb":"239, 68, 68","light-rgb":"249, 250, 251","dark-rgb":"31, 41, 55","gray-1":"#f9fafb","gray-2":"#f3f4f6","gray-3":"#e5e7eb","gray-4":"#d1d5db","gray-5":"#9ca3af","gray-6":"#6b7280","gray-7":"#4b5563","gray-8":"#374151","gray-9":"#1f2937","gray-10":"#111827","primary-1":"#f2e8fd","primary-2":"#e4d0fa","primary-3":"#d0b2f5","primary-4":"#b88cef","primary-5":"#9c63e9","primary-6":"#7c3aed","primary-7":"#6425ca","primary-8":"#501ba6","primary-9":"#3c1583","primary-10":"#2a0e60","red-1":"#fef2f2","red-2":"#fee2e2","red-3":"#fecaca","red-4":"#fca5a5","red-5":"#f87171","red-6":"#ef4444","red-7":"#dc2626","red-8":"#b91c1c","red-9":"#991b1b","red-10":"#7f1d1d","green-1":"#f0fdf4","green-2":"#dcfce7","green-3":"#bbf7d0","green-4":"#86efac","green-5":"#4ade80","green-6":"#22c55e","green-7":"#16a34a","green-8":"#15803d","green-9":"#166534","green-10":"#14532d","blue-1":"#eff6ff","blue-2":"#dbeafe","blue-3":"#bfdbfe","blue-4":"#93c5fd","blue-5":"#60a5fa","blue-6":"#3b82f6","blue-7":"#2563eb","blue-8":"#1d4ed8","blue-9":"#1e40af","blue-10":"#1e3a8a","yellow-1":"#fefce8","yellow-2":"#fef9c3","yellow-3":"#fef08a","yellow-4":"#fde047","yellow-5":"#facc15","yellow-6":"#eab308","yellow-7":"#ca8a04","yellow-8":"#a16207","yellow-9":"#854d0e","yellow-10":"#713f12","primary-text-emphasis":"#111827","secondary-text-emphasis":"#374151","tertiary-text-emphasis":"#6b7280","disabled-text-emphasis":"#9ca3af","invert-text-emphasis":"#111827","brand-text-emphasis":"#7c3aed","error-text-emphasis":"#ef4444","success-text-emphasis":"#22c55e","warning-text-emphasis":"#eab308","info-text-emphasis":"#3b82f6","light-text-emphasis":"#f9fafb","dark-text-emphasis":"#1f2937","primary-bg-subtle":"#ffffff","secondary-bg-subtle":"#e5e7eb","tertiary-bg-subtle":"#d1d5db","invert-bg-subtle":"#111827","brand-bg-subtle":"#e4d0fa","error-bg-subtle":"#fee2e2","success-bg-subtle":"#dcfce7","warning-bg-subtle":"#fef9c3","info-bg-subtle":"#dbeafe","light-bg-subtle":"#f3f4f6","dark-bg-subtle":"#1f2937","primary-border-subtle":"#e5e7eb","secondary-border-subtle":"#111827","success-border-subtle":"#22c55e","error-border-subtle":"#ef4444","warning-border-subtle":"#eab308","info-border-subtle":"#3b82f6","brand-border-subtle":"#7c3aed","light-border-subtle":"#f9fafb","dark-border-subtle":"#1f2937","primary-hover":"#7c3aed","secondary-hover":"#e5e7eb","light-hover":"#f3f4f6","dark-hover":"#4b5563","error-hover":"#b91c1c","success-hover":"#15803d","warning-hover":"#a16207","info-hover":"#1d4ed8","primary-gradient":"linear-gradient(135deg, #e4d0fa, #d0b2f5, #b88cef)","secondary-gradient":"linear-gradient(135deg, #f3f4f6, #e5e7eb, #d1d5db)","light-gradient":"linear-gradient(135deg, #f9fafb, #f3f4f6, #e5e7eb)","dark-gradient":"linear-gradient(135deg, #4b5563, #1f2937, #000000)","success-gradient":"linear-gradient(135deg, #dcfce7, #86efac, #4ade80)","info-gradient":"linear-gradient(135deg, #dbeafe, #bfdbfe, #60a5fa)","warning-gradient":"linear-gradient(135deg, #fef9c3, #fef08a, #facc15)","error-gradient":"linear-gradient(135deg, #fef2f2, #fee2e2, #fecaca)",gradient:"linear-gradient(135deg, #f9fafb, #f3f4f6, #e5e7eb)","font-sans-serif":'"Roboto", sans-serif',"font-monospace":'SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace',"body-font-family":'"Roboto", sans-serif',"body-font-size":"1rem","body-font-weight":"400","body-line-height":"1.2","body-color":"#111827","body-bg":"#ffffff","heading-color":"#111827","font-size-xl":"1.5rem","font-size-2xl":"2rem","display-1":"4rem","font-weight-light":"300","font-weight-normal":"400","font-weight-medium":"500","font-weight-semibold":"600","font-weight-bold":"700","font-weight-heavy":"800","font-weight-black":"900","line-height-base":"1.2","line-height-sm":"1.43","line-height-lg":"1.56","letter-spacing-h1":"-1px","letter-spacing-h2":"-1px","letter-spacing-h3":"-1px","letter-spacing-h4":"-0.5px","letter-spacing-h5":"-0.5px","letter-spacing-h6":"-0.5px","link-color":"#7c3aed","link-color-rgb":"124, 58, 237","link-decoration":"none","link-hover-color":"rgb(85.3674418605, 18.2930232558, 200.2069767442)","link-hover-color-rgb":"85.3674418605, 18.2930232558, 200.2069767442","highlight-bg":"#fef08a","code-color":"#f87171","border-width":"1px","border-style":"solid","border-color":"#e5e7eb","border-color-translucent":"rgba(229, 231, 235, 0.175)","border-radius":"0.5rem","border-radius-sm":"0.25rem","border-radius-lg":"0.625rem","border-radius-xl":"0.75rem","border-radius-xxl":"1rem","border-radius-2xl":"var(--atomix-border-radius-xxl)","border-radius-3xl":"1.5rem","border-radius-4xl":"2rem","border-radius-pill":"50rem","box-shadow":"0 8px 16px rgba(0, 0, 0, 0.15)","box-shadow-xs":"0px 1px 2px 0px rgba(45, 54, 67, 0.04), 0px 2px 4px 0px rgba(45, 54, 67, 0.08)","box-shadow-sm":"0 2px 4px rgba(0, 0, 0, 0.075)","box-shadow-lg":"0 16px 48px rgba(0, 0, 0, 0.175)","box-shadow-xl":"0px 16px 64px -8px rgba(45, 54, 67, 0.14)","box-shadow-inset":"inset 0 1px 2px rgba(0, 0, 0, 0.075)","focus-border-color":"#9c63e9","focus-ring-width":"3px","focus-ring-offset":"2px","focus-ring-opacity":"0.25","form-valid-color":"#22c55e","form-valid-border-color":"#22c55e","form-invalid-color":"#ef4444","form-invalid-border-color":"#ef4444","spacing-0":"0rem","spacing-1":"0.25rem","spacing-px-6":"0.375rem","spacing-2":"0.5rem","spacing-px-10":"0.625rem","spacing-3":"0.75rem","spacing-px-14":"0.875rem","spacing-4":"1rem","spacing-5":"1.25rem","spacing-px-22":"1.375rem","spacing-6":"1.5rem","spacing-7":"1.75rem","spacing-px-30":"1.875rem","spacing-8":"2rem","spacing-9":"2.25rem","spacing-10":"2.5rem","spacing-11":"2.75rem","spacing-12":"3rem","spacing-14":"3.5rem","spacing-16":"4rem","spacing-20":"5rem","spacing-24":"6rem","spacing-28":"7rem","spacing-32":"8rem","spacing-36":"9rem","spacing-40":"10rem","spacing-44":"11rem","spacing-48":"12rem","spacing-52":"13rem","spacing-56":"14rem","spacing-60":"15rem","spacing-64":"16rem","spacing-72":"18rem","spacing-80":"20rem","spacing-90":"22.5rem","spacing-200":"50rem","transition-duration-fast":"0.15s","transition-duration-base":"0.3s","transition-duration-slow":"0.5s","transition-duration-slower":"0.7s","easing-base":"cubic-bezier(0.23, 1, 0.32, 1)","easing-ease-in-out":"cubic-bezier(0.4, 0, 0.2, 1)","easing-ease-out":"cubic-bezier(0, 0, 0.2, 1)","easing-ease-in":"cubic-bezier(0.4, 0, 1, 1)","easing-ease-linear":"linear","transition-fast":"all 0.15s cubic-bezier(0.23, 1, 0.32, 1)","transition-base":"all 0.3s cubic-bezier(0.23, 1, 0.32, 1)","transition-slow":"all 0.5s cubic-bezier(0.23, 1, 0.32, 1)","z-n1":"-1","z-0":"0","z-1":"1","z-2":"2","z-3":"3","z-4":"4","z-5":"5","z-dropdown":"1000","z-sticky":"1020","z-fixed":"1030","z-modal":"1040","z-popover":"1050","z-tooltip":"1060","z-drawer":"1070","breakpoint-xs":"0","breakpoint-sm":"576px","breakpoint-md":"768px","breakpoint-lg":"992px","breakpoint-xl":"1200px","breakpoint-xxl":"1440px","interactive-vortex-enabled":"false","interactive-vortex-strength":"0.5","interactive-vortex-radius":"100","interactive-vortex-decay":"0.8","interactive-chromatic-enabled":"false","interactive-chromatic-mode":"lateral","interactive-chromatic-red-shift":"0.02","interactive-chromatic-green-shift":"0","interactive-chromatic-blue-shift":"-0.02","interactive-chromatic-edge-only":"false","interactive-chromatic-edge-threshold":"0.5","interactive-mouse-sensitivity":"1.0","interactive-mouse-trail-effect":"false","interactive-animation-speed-base":"1.0","interactive-animation-speed-multiplier":"1.0","optimization-breakpoint-mobile":"0px","optimization-breakpoint-tablet":"768px","optimization-breakpoint-desktop":"1024px","optimization-breakpoint-wide":"1440px","optimization-device-scaling-mobile":"0.5","optimization-device-scaling-tablet":"0.75","optimization-device-scaling-desktop":"1.0","optimization-performance-fps-target":"60","optimization-auto-scaling-enabled":"false","optimization-auto-scaling-low-end":"0.5","optimization-auto-scaling-mid-range":"0.75","optimization-auto-scaling-high-end":"1.0","visual-polish-border-iridescent-glow":"false","visual-polish-border-shimmer-effect":"false","visual-polish-border-beveled-edges":"false","visual-polish-border-pulsing-glow":"false","visual-polish-content-aware-blur-enabled":"false","visual-polish-content-aware-depth-detection":"false","visual-polish-content-aware-edge-preservation":"false","visual-polish-content-aware-variable-radius":"false","visual-polish-holographic-enabled":"false","visual-polish-holographic-rainbow-diffraction":"false","visual-polish-holographic-scanline-animation":"false","visual-polish-holographic-grid-overlay":"false","visual-polish-holographic-data-stream":"false","visual-polish-holographic-pulse-rings":"false"};function wd(e){return{...Id,...e}}function Od(e,t={}){const{selector:n=":root",prefix:a="atomix"}=t;return`${n} {\n${Object.entries(e).filter((([,e])=>void 0!==e)).map((([e,t])=>` --${a}-${e}: ${t};`)).join("\n")}\n}`}function Rd(e,t,n="atomix"){return Od(e,{selector:t,prefix:n})}function kd(e){const t={};if(e.palette){if(e.palette.primary){const n=e.palette.primary.main;t.primary=n;const a=Dd(n);a&&(t["primary-rgb"]=a)}if(e.palette.secondary){const n=e.palette.secondary.main;t.secondary=n;const a=Dd(n);a&&(t["secondary-rgb"]=a)}const n=["error","warning","info","success"];for(const a of n)if(e.palette[a]){const n=e.palette[a].main;t[a]=n;const r=Dd(n);r&&(t[a+"-rgb"]=r)}e.palette.background&&(t["body-bg"]=e.palette.background.default),e.palette.text&&(t["body-color"]=e.palette.text.primary)}if(e.typography&&(t["body-font-family"]=e.typography.fontFamily,t["body-font-size"]=e.typography.fontSize+"px",t["font-weight-normal"]=""+e.typography.fontWeightRegular,t["font-weight-bold"]=""+e.typography.fontWeightBold),"function"==typeof e.spacing&&(t["spacing-1"]=e.spacing(1),t["spacing-2"]=e.spacing(2),t["spacing-4"]=e.spacing(4)),e.breakpoints?.values&&(t["breakpoint-xs"]=e.breakpoints.values.xs+"px",t["breakpoint-sm"]=e.breakpoints.values.sm+"px",t["breakpoint-md"]=e.breakpoints.values.md+"px",t["breakpoint-lg"]=e.breakpoints.values.lg+"px",t["breakpoint-xl"]=e.breakpoints.values.xl+"px"),e.shadows&&(t["box-shadow"]=e.shadows[2],t["box-shadow-sm"]=e.shadows[1],t["box-shadow-lg"]=e.shadows[3]),e.transitions&&(t["transition-duration-base"]=e.transitions.duration.standard+"ms"),e.zIndex&&(t["z-modal"]=""+e.zIndex.modal,t["z-popover"]=""+e.zIndex.popover,t["z-tooltip"]=""+e.zIndex.tooltip),e.borderRadius){const n=e.borderRadius.base;t["border-radius"]="number"==typeof n?n+"px":n}if(e.custom){if(e.custom.interactiveEffects){const n=e.custom.interactiveEffects;n.vortex&&(t["interactive-vortex-enabled"]=(n.vortex.enabled??!1)+"",t["interactive-vortex-strength"]=(n.vortex.strength??.5)+"",t["interactive-vortex-radius"]=(n.vortex.radius??100)+"",t["interactive-vortex-decay"]=(n.vortex.decay??.8)+""),n.chromaticAberration&&(t["interactive-chromatic-enabled"]=(n.chromaticAberration.enabled??!1)+"",t["interactive-chromatic-mode"]=n.chromaticAberration.mode??"lateral",t["interactive-chromatic-red-shift"]=(n.chromaticAberration.redShift??.02)+"",t["interactive-chromatic-green-shift"]=(n.chromaticAberration.greenShift??0)+"",t["interactive-chromatic-blue-shift"]=(n.chromaticAberration.blueShift??-.02)+"",t["interactive-chromatic-edge-only"]=(n.chromaticAberration.edgeOnly??!1)+"",t["interactive-chromatic-edge-threshold"]=(n.chromaticAberration.edgeThreshold??.5)+""),n.mouseInteraction&&(t["interactive-mouse-sensitivity"]=(n.mouseInteraction.sensitivity??1)+"",t["interactive-mouse-trail-effect"]=(n.mouseInteraction.trailEffect??!1)+""),n.animationSpeed&&(t["interactive-animation-speed-base"]=(n.animationSpeed.base??1)+"",t["interactive-animation-speed-multiplier"]=(n.animationSpeed.timeMultiplier??1)+"")}if(e.custom.optimization){const n=e.custom.optimization;n.responsive&&(n.responsive.breakpoints&&(t["optimization-breakpoint-mobile"]=n.responsive.breakpoints.mobile??"0px",t["optimization-breakpoint-tablet"]=n.responsive.breakpoints.tablet??"768px",t["optimization-breakpoint-desktop"]=n.responsive.breakpoints.desktop??"1024px",t["optimization-breakpoint-wide"]=n.responsive.breakpoints.wide??"1440px"),n.responsive.deviceScaling&&(t["optimization-device-scaling-mobile"]=(n.responsive.deviceScaling.mobile??.5)+"",t["optimization-device-scaling-tablet"]=(n.responsive.deviceScaling.tablet??.75)+"",t["optimization-device-scaling-desktop"]=(n.responsive.deviceScaling.desktop??1)+"")),n.performance&&(t["optimization-performance-fps-target"]=(n.performance.fpsTarget??60)+"",t["optimization-auto-scaling-enabled"]=(n.performance.autoScaling??!1)+""),n.autoScaling&&(t["optimization-auto-scaling-enabled"]=(n.autoScaling.enabled??!1)+"",t["optimization-auto-scaling-low-end"]=(n.autoScaling.qualityThresholds?.lowEnd??.5)+"",t["optimization-auto-scaling-mid-range"]=(n.autoScaling.qualityThresholds?.midRange??.75)+"",t["optimization-auto-scaling-high-end"]=(n.autoScaling.qualityThresholds?.highEnd??1)+"")}if(e.custom.visualPolish){const n=e.custom.visualPolish;n.borders&&(t["visual-polish-border-iridescent-glow"]=(n.borders.iridescentGlow??!1)+"",t["visual-polish-border-shimmer-effect"]=(n.borders.shimmerEffect??!1)+"",t["visual-polish-border-beveled-edges"]=(n.borders.beveledEdges??!1)+"",t["visual-polish-border-pulsing-glow"]=(n.borders.pulsingGlow??!1)+""),n.contentAwareBlur&&(t["visual-polish-content-aware-blur-enabled"]=(n.contentAwareBlur.enabled??!1)+"",t["visual-polish-content-aware-depth-detection"]=(n.contentAwareBlur.depthDetection??!1)+"",t["visual-polish-content-aware-edge-preservation"]=(n.contentAwareBlur.edgePreservation??!1)+"",t["visual-polish-content-aware-variable-radius"]=(n.contentAwareBlur.variableRadius??!1)+""),n.holographicEffects&&(t["visual-polish-holographic-enabled"]=(n.holographicEffects.enabled??!1)+"",t["visual-polish-holographic-rainbow-diffraction"]=(n.holographicEffects.rainbowDiffraction??!1)+"",t["visual-polish-holographic-scanline-animation"]=(n.holographicEffects.scanlineAnimation??!1)+"",t["visual-polish-holographic-grid-overlay"]=(n.holographicEffects.gridOverlay??!1)+"",t["visual-polish-holographic-data-stream"]=(n.holographicEffects.dataStream??!1)+"",t["visual-polish-holographic-pulse-rings"]=(n.holographicEffects.pulseRings??!1)+"")}}return wd(t)}function Md(e){const t=e.prefix||"atomix",n=e.theme||{};let a={...Id};if(n.extend&&Object.entries(n.extend).forEach((([e,t])=>{"object"==typeof t&&null!==t&&Object.entries(t).forEach((([t,n])=>{const r=`${e}-${t}`;"string"==typeof n||"number"==typeof n?a[r]=n+"":"object"==typeof n&&null!==n&&Object.entries(n).forEach((([e,t])=>{"string"!=typeof t&&"number"!=typeof t||(a[`${r}-${e}`]=t+"")}))}))})),n.tokens&&(a={...a,...n.tokens}),e){if(e.interactiveEffects){const t=e.interactiveEffects;t.vortex&&(a["interactive-vortex-enabled"]=(t.vortex.enabled??!1)+"",a["interactive-vortex-strength"]=(t.vortex.strength??.5)+"",a["interactive-vortex-radius"]=(t.vortex.radius??100)+"",a["interactive-vortex-decay"]=(t.vortex.decay??.8)+"",a["interactive-vortex-curl-noise"]=(t.vortex.curlNoise??!1)+"",a["interactive-vortex-velocity-tracking"]=(t.vortex.velocityTracking??!1)+""),t.chromaticAberration&&(a["interactive-chromatic-enabled"]=(t.chromaticAberration.enabled??!1)+"",a["interactive-chromatic-mode"]=t.chromaticAberration.mode??"lateral",a["interactive-chromatic-red-shift"]=(t.chromaticAberration.redShift??.02)+"",a["interactive-chromatic-green-shift"]=(t.chromaticAberration.greenShift??0)+"",a["interactive-chromatic-blue-shift"]=(t.chromaticAberration.blueShift??-.02)+"",a["interactive-chromatic-edge-only"]=(t.chromaticAberration.edgeOnly??!1)+"",a["interactive-chromatic-edge-threshold"]=(t.chromaticAberration.edgeThreshold??.5)+""),t.mouseInteraction&&(a["interactive-mouse-sensitivity"]=(t.mouseInteraction.sensitivity??1)+"",a["interactive-mouse-trail-effect"]=(t.mouseInteraction.trailEffect??!1)+"",a["interactive-mouse-pressure-sensitivity"]=(t.mouseInteraction.pressureSensitivity??!1)+""),t.animationSpeed&&(a["interactive-animation-speed-base"]=(t.animationSpeed.base??1)+"",a["interactive-animation-speed-multiplier"]=(t.animationSpeed.timeMultiplier??1)+"")}if(e.optimization){const t=e.optimization;t.responsive&&(t.responsive.breakpoints&&(a["optimization-breakpoint-mobile"]=t.responsive.breakpoints.mobile??"0px",a["optimization-breakpoint-tablet"]=t.responsive.breakpoints.tablet??"768px",a["optimization-breakpoint-desktop"]=t.responsive.breakpoints.desktop??"1024px",a["optimization-breakpoint-wide"]=t.responsive.breakpoints.wide??"1440px"),t.responsive.deviceScaling&&(a["optimization-device-scaling-mobile"]=(t.responsive.deviceScaling.mobile??.5)+"",a["optimization-device-scaling-tablet"]=(t.responsive.deviceScaling.tablet??.75)+"",a["optimization-device-scaling-desktop"]=(t.responsive.deviceScaling.desktop??1)+"")),t.performance&&(a["optimization-performance-fps-target"]=(t.performance.fpsTarget??60)+"",a["optimization-auto-scaling-enabled"]=(t.performance.autoScaling??!1)+"",a["optimization-monitor-dashboard-enabled"]=(t.performance.monitorDashboard??!1)+""),t.autoScaling&&(a["optimization-auto-scaling-enabled"]=(t.autoScaling.enabled??!1)+"",a["optimization-auto-scaling-low-end"]=(t.autoScaling.qualityThresholds?.lowEnd??.5)+"",a["optimization-auto-scaling-mid-range"]=(t.autoScaling.qualityThresholds?.midRange??.75)+"",a["optimization-auto-scaling-high-end"]=(t.autoScaling.qualityThresholds?.highEnd??1)+"")}if(e.visualPolish){const t=e.visualPolish;t.borders&&(a["visual-polish-border-iridescent-glow"]=(t.borders.iridescentGlow??!1)+"",a["visual-polish-border-shimmer-effect"]=(t.borders.shimmerEffect??!1)+"",a["visual-polish-border-beveled-edges"]=(t.borders.beveledEdges??!1)+"",a["visual-polish-border-pulsing-glow"]=(t.borders.pulsingGlow??!1)+""),t.contentAwareBlur&&(a["visual-polish-content-aware-blur-enabled"]=(t.contentAwareBlur.enabled??!1)+"",a["visual-polish-content-aware-depth-detection"]=(t.contentAwareBlur.depthDetection??!1)+"",a["visual-polish-content-aware-edge-preservation"]=(t.contentAwareBlur.edgePreservation??!1)+"",a["visual-polish-content-aware-variable-radius"]=(t.contentAwareBlur.variableRadius??!1)+""),t.holographicEffects&&(a["visual-polish-holographic-enabled"]=(t.holographicEffects.enabled??!1)+"",a["visual-polish-holographic-rainbow-diffraction"]=(t.holographicEffects.rainbowDiffraction??!1)+"",a["visual-polish-holographic-scanline-animation"]=(t.holographicEffects.scanlineAnimation??!1)+"",a["visual-polish-holographic-grid-overlay"]=(t.holographicEffects.gridOverlay??!1)+"",a["visual-polish-holographic-data-stream"]=(t.holographicEffects.dataStream??!1)+"",a["visual-polish-holographic-pulse-rings"]=(t.holographicEffects.pulseRings??!1)+"")}}const r={};return Object.entries(a).forEach((([e,n])=>{const a=e.startsWith(t)?e:`${t}-${e}`;r[a]=n})),r}function Dd(e){e=e.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,((e,t,n,a)=>t+t+n+n+a+a));const t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return t&&t[1]&&t[2]&&t[3]?`${parseInt(t[1],16)}, ${parseInt(t[2],16)}, ${parseInt(t[3],16)}`:"0, 0, 0"}function Pd(e){const t={};return Object.entries(e).forEach((([e,n])=>{void 0!==n&&(t["--atomix-"+e]=n+"")})),t}function Bd(e){const t=[];if(e.prefix&&(/^[a-zA-Z][a-zA-Z0-9-]*$/.test(e.prefix)||t.push(`Invalid prefix "${e.prefix}". Prefix should start with a letter and contain only letters, numbers, and hyphens.\nExample: "myapp", "brand-ui", "enterprise"`),2>e.prefix.length&&t.push(`Prefix "${e.prefix}" is too short. Use at least 2 characters for clarity.\nExample: "app" instead of "a"`)),e.theme&&(e.theme.extend&&e.theme.tokens&&t.push("Both theme.extend and theme.tokens are defined. theme.tokens will take precedence and completely replace the default token system.\nIf you want to extend defaults, remove theme.tokens and use only theme.extend."),e.theme.extend)){const n=e.theme.extend,a=["colors","typography","spacing","borderRadius","shadows","zIndex","transitions","breakpoints"];Object.keys(n).forEach((e=>{Ra(a).call(a,e)||t.push(`Unknown theme property: "${e}"\nValid properties: ${a.join(", ")}\nDid you mean one of these? Check for typos.`)}))}if(e.interactiveEffects){const n=e.interactiveEffects;n.vortex&&(n.vortex.strength&&(0>n.vortex.strength||n.vortex.strength>10)&&t.push("Vortex strength should be between 0 and 10 for optimal performance"),n.vortex.radius&&0>n.vortex.radius&&t.push("Vortex radius should be a positive number"),!n.vortex.decay||n.vortex.decay>0&&1>=n.vortex.decay||t.push("Vortex decay should be between 0 and 1")),n.chromaticAberration&&(n.chromaticAberration.redShift&&Math.abs(n.chromaticAberration.redShift)>.1&&t.push("Chromatic red shift value seems unusually high (>0.1), verify this is intended"),n.chromaticAberration.blueShift&&Math.abs(n.chromaticAberration.blueShift)>.1&&t.push("Chromatic blue shift value seems unusually high (>0.1), verify this is intended"),n.chromaticAberration.edgeThreshold&&(0>n.chromaticAberration.edgeThreshold||n.chromaticAberration.edgeThreshold>1)&&t.push("Chromatic edge threshold should be between 0 and 1")),n.mouseInteraction&&n.mouseInteraction.sensitivity&&0>n.mouseInteraction.sensitivity&&t.push("Mouse sensitivity should be a positive number"),n.animationSpeed&&(n.animationSpeed.base&&0>=n.animationSpeed.base&&t.push("Animation base speed should be greater than 0"),n.animationSpeed.timeMultiplier&&0>=n.animationSpeed.timeMultiplier&&t.push("Animation time multiplier should be greater than 0"))}if(e.optimization){const n=e.optimization;if(n.responsive&&n.responsive.breakpoints){const e=n.responsive.breakpoints;e.mobile&&!zd(e.mobile)&&t.push("Mobile breakpoint value is not a valid CSS length"),e.tablet&&!zd(e.tablet)&&t.push("Tablet breakpoint value is not a valid CSS length"),e.desktop&&!zd(e.desktop)&&t.push("Desktop breakpoint value is not a valid CSS length"),e.wide&&!zd(e.wide)&&t.push("Wide breakpoint value is not a valid CSS length")}if(n.responsive&&n.responsive.deviceScaling){const e=n.responsive.deviceScaling;!e.mobile||e.mobile>0&&1>=e.mobile||t.push("Mobile device scaling should be between 0 and 1"),!e.tablet||e.tablet>0&&1>=e.tablet||t.push("Tablet device scaling should be between 0 and 1"),!e.desktop||e.desktop>0&&1>=e.desktop||t.push("Desktop device scaling should be between 0 and 1")}if(n.performance&&(!n.performance.fpsTarget||n.performance.fpsTarget>0&&240>=n.performance.fpsTarget||t.push("FPS target should be a reasonable value (typically 30-120)")),n.autoScaling&&n.autoScaling.qualityThresholds){const e=n.autoScaling.qualityThresholds;e.lowEnd&&(0>e.lowEnd||e.lowEnd>1)&&t.push("Auto-scaling low-end threshold should be between 0 and 1"),e.midRange&&(0>e.midRange||e.midRange>1)&&t.push("Auto-scaling mid-range threshold should be between 0 and 1"),e.highEnd&&(0>e.highEnd||e.highEnd>1)&&t.push("Auto-scaling high-end threshold should be between 0 and 1")}}if(e.visualPolish){const n=e.visualPolish;n.contentAwareBlur&&(void 0!==n.contentAwareBlur.edgePreservation&&"boolean"!=typeof n.contentAwareBlur.edgePreservation&&t.push("Content-aware blur edge preservation should be a boolean value"),void 0!==n.contentAwareBlur.depthDetection&&"boolean"!=typeof n.contentAwareBlur.depthDetection&&t.push("Content-aware blur depth detection should be a boolean value")),n.holographicEffects&&(void 0!==n.holographicEffects.enabled&&"boolean"!=typeof n.holographicEffects.enabled&&t.push("Holographic effects enabled should be a boolean value"),void 0!==n.holographicEffects.rainbowDiffraction&&"boolean"!=typeof n.holographicEffects.rainbowDiffraction&&t.push("Holographic rainbow diffraction should be a boolean value"))}var n;return e.ai&&(e.ai.provider&&!Ra(n=["openai","anthropic"]).call(n,e.ai.provider)&&t.push(`Unknown AI provider: "${e.ai.provider}". Supported: openai, anthropic`),e.ai.temperature&&(0>e.ai.temperature||e.ai.temperature>1)&&t.push("AI temperature should be between 0 and 1"),e.ai.maxTokens&&100>e.ai.maxTokens&&t.push("AI maxTokens should typically be 100 or more"),e.ai.rateLimit&&(e.ai.rateLimit.requests>0||t.push("AI rate limit requests should be greater than 0"),e.ai.rateLimit.windowMs>0||t.push("AI rate limit window should be greater than 0"))),e.telemetry&&e.telemetry.path&&!e.telemetry.path.endsWith(".json")&&t.push("Telemetry path should typically end with .json"),t}function zd(e){return/^(\d+(\.\d+)?)(px|em|rem|%|vw|vh|vmin|vmax|cm|mm|in|pt|pc|ex|ch)?$/.test(e)}function Ud(e={}){const{configPath:t,required:n=!1}=e,a={prefix:"atomix",theme:{extend:{}}};if("undefined"!=typeof window){if(n)throw Error('Config loading requires Node.js file system access.\n\nSolutions:\n1. Provide tokens explicitly to createTheme():\n const css = createTheme({ "--brand-primary": "#6366f1" });\n\n2. Use SSR framework (Next.js, Remix, Astro)\n\n3. Load config on server and pass to client\n\nSee examples/config-examples/browser-only.config.ts');return a}if(t)return Fd(t,n,a);const r=["atomix.config.ts","atomix.config.js","atomix.config.json"];for(const i of r){const e=Fd(i,!1,a);if(JSON.stringify(e)!==JSON.stringify(a))return e}if(n)throw Error('No Atomix configuration file found in project root.\n\nExpected one of:\n - atomix.config.ts (recommended)\n - atomix.config.js\n - atomix.config.json\n\nQuick Fix:\n1. Create a config file in your project root:\n touch atomix.config.ts\n\n2. Add basic configuration:\n import { defineConfig } from "@shohojdhara/atomix/config";\n export default defineConfig({ prefix: "myapp" });\n\n3. Or copy an example:\n cp node_modules/@shohojdhara/atomix/examples/config-examples/standard.config.ts ./atomix.config.ts');return a}function Fd(e,t,n){try{const t="undefined"!=typeof require?require:void 0;if(!t)return n;const a=t(e),r=a.default||a;if(r&&"object"==typeof r)return r;throw Error("Invalid config format")}catch(a){if(t)throw Error(`Failed to load config from ${e}: ${a.message}`);return n}}function Gd(e){if("undefined"!=typeof window)return null;let t,n;try{const e="undefined"!=typeof require?require:void 0;e&&(t=e("fs"),n=e("path"))}catch(o){return null}if(!t||!n)return null;const{existsSync:a}=t,{join:r}=n;if(e){const t=r(process.cwd(),e);return a(t)?t:null}const i=[r(process.cwd(),"atomix.config.ts"),r(process.cwd(),"atomix.config.js"),r(process.cwd(),"atomix.config.json")];for(const s of i)if(a(s))return s;return null}function Vd(e,t){let n,a;if(e)n=!0===e.__isJSTheme||e.palette&&e.typography?kd(e):e;else{const e=function(){if("undefined"!=typeof window)throw Error("loadThemeFromConfigSync: Not available in browser environment. Config loading requires Node.js/SSR environment.");let e;try{const t="undefined"!=typeof require?require:void 0;if(!t)throw Error("require is not available");const{loadAtomixConfig:n}=t("../../config/loader");e=n}catch(i){throw Error("Config loader module not available")}const t=e({configPath:undefined,required:!0});if(!t?.theme)return wd({});if((n=t.theme)&&"object"==typeof n&&(n.palette||n.typography||n.spacing||n.breakpoints||n.colors))return kd(t.theme);var n;const a=t.theme;let r={};return a.tokens?r=a.tokens:a.extend&&(r=a.extend),t.interactiveEffects&&(t.interactiveEffects.vortex&&(r={...r,"interactive-vortex-enabled":(t.interactiveEffects.vortex.enabled??!1)+"","interactive-vortex-strength":(t.interactiveEffects.vortex.strength??.5)+"","interactive-vortex-radius":(t.interactiveEffects.vortex.radius??100)+"","interactive-vortex-decay":(t.interactiveEffects.vortex.decay??.8)+""}),t.interactiveEffects.chromaticAberration&&(r={...r,"interactive-chromatic-enabled":(t.interactiveEffects.chromaticAberration.enabled??!1)+"","interactive-chromatic-mode":t.interactiveEffects.chromaticAberration.mode??"lateral","interactive-chromatic-red-shift":(t.interactiveEffects.chromaticAberration.redShift??.02)+"","interactive-chromatic-green-shift":(t.interactiveEffects.chromaticAberration.greenShift??0)+"","interactive-chromatic-blue-shift":(t.interactiveEffects.chromaticAberration.blueShift??-.02)+"","interactive-chromatic-edge-only":(t.interactiveEffects.chromaticAberration.edgeOnly??!1)+"","interactive-chromatic-edge-threshold":(t.interactiveEffects.chromaticAberration.edgeThreshold??.5)+""}),t.interactiveEffects.mouseInteraction&&(r={...r,"interactive-mouse-sensitivity":(t.interactiveEffects.mouseInteraction.sensitivity??1)+"","interactive-mouse-trail-effect":(t.interactiveEffects.mouseInteraction.trailEffect??!1)+""}),t.interactiveEffects.animationSpeed&&(r={...r,"interactive-animation-speed-base":(t.interactiveEffects.animationSpeed.base??1)+"","interactive-animation-speed-multiplier":(t.interactiveEffects.animationSpeed.timeMultiplier??1)+""})),t.optimization&&(t.optimization.responsive&&(t.optimization.responsive.breakpoints&&(r={...r,"optimization-breakpoint-mobile":t.optimization.responsive.breakpoints.mobile??"0px","optimization-breakpoint-tablet":t.optimization.responsive.breakpoints.tablet??"768px","optimization-breakpoint-desktop":t.optimization.responsive.breakpoints.desktop??"1024px","optimization-breakpoint-wide":t.optimization.responsive.breakpoints.wide??"1440px"}),t.optimization.responsive.deviceScaling&&(r={...r,"optimization-device-scaling-mobile":(t.optimization.responsive.deviceScaling.mobile??.5)+"","optimization-device-scaling-tablet":(t.optimization.responsive.deviceScaling.tablet??.75)+"","optimization-device-scaling-desktop":(t.optimization.responsive.deviceScaling.desktop??1)+""})),t.optimization.performance&&(r={...r,"optimization-performance-fps-target":(t.optimization.performance.fpsTarget??60)+"","optimization-auto-scaling-enabled":(t.optimization.performance.autoScaling??!1)+""}),t.optimization.autoScaling&&(r={...r,"optimization-auto-scaling-enabled":(t.optimization.autoScaling.enabled??!1)+"","optimization-auto-scaling-low-end":(t.optimization.autoScaling.qualityThresholds?.lowEnd??.5)+"","optimization-auto-scaling-mid-range":(t.optimization.autoScaling.qualityThresholds?.midRange??.75)+"","optimization-auto-scaling-high-end":(t.optimization.autoScaling.qualityThresholds?.highEnd??1)+""})),t.visualPolish&&(t.visualPolish.borders&&(r={...r,"visual-polish-border-iridescent-glow":(t.visualPolish.borders.iridescentGlow??!1)+"","visual-polish-border-shimmer-effect":(t.visualPolish.borders.shimmerEffect??!1)+"","visual-polish-border-beveled-edges":(t.visualPolish.borders.beveledEdges??!1)+"","visual-polish-border-pulsing-glow":(t.visualPolish.borders.pulsingGlow??!1)+""}),t.visualPolish.contentAwareBlur&&(r={...r,"visual-polish-content-aware-blur-enabled":(t.visualPolish.contentAwareBlur.enabled??!1)+"","visual-polish-content-aware-depth-detection":(t.visualPolish.contentAwareBlur.depthDetection??!1)+"","visual-polish-content-aware-edge-preservation":(t.visualPolish.contentAwareBlur.edgePreservation??!1)+"","visual-polish-content-aware-variable-radius":(t.visualPolish.contentAwareBlur.variableRadius??!1)+""}),t.visualPolish.holographicEffects&&(r={...r,"visual-polish-holographic-enabled":(t.visualPolish.holographicEffects.enabled??!1)+"","visual-polish-holographic-rainbow-diffraction":(t.visualPolish.holographicEffects.rainbowDiffraction??!1)+"","visual-polish-holographic-scanline-animation":(t.visualPolish.holographicEffects.scanlineAnimation??!1)+"","visual-polish-holographic-grid-overlay":(t.visualPolish.holographicEffects.gridOverlay??!1)+"","visual-polish-holographic-data-stream":(t.visualPolish.holographicEffects.dataStream??!1)+"","visual-polish-holographic-pulse-rings":(t.visualPolish.holographicEffects.pulseRings??!1)+""})),wd(r)}();try{const e=Ud({configPath:"atomix.config.ts",required:!0});a=e?.prefix}catch(o){}n=e}const r=wd(n),i=t?.prefix??a??"atomix";return Od(r,{...t,prefix:i})}function Hd(e){return e&&"object"==typeof e&&!Array.isArray(e)&&"function"!=typeof e}function $d(...e){if(0===e.length)return{};if(1===e.length)return e[0];const[t,...n]=e,a={...t};for(const r of n)if(r)for(const e in r){if(!Object.prototype.hasOwnProperty.call(r,e))continue;const t=a[e],n=r[e];Hd(t)&&Hd(n)?a[e]=$d(t,n):a[e]=n}return a}function Yd(...e){return $d({},...e)}function Kd(e,t){return Yd(e,t)}function Wd(){return{}}function jd(e,t,n){e[t]=n}function qd(e,t){const n=t in e;return delete e[t],n}function Qd(e,t){return t in e}function Xd(e,t){return e[t]}function Zd(e){return Object.values(e)}function Jd(e){return Object.keys(e)}function eu(e){Object.keys(e).forEach((t=>delete e[t]))}function tu(e){return Object.keys(e).length}function nu(){return"undefined"!=typeof document}function au(e,t="atomix-theme"){if(!nu())return;let n=document.getElementById(t);n||(n=document.createElement("style"),n.id=t,n.setAttribute("data-atomix-theme","true"),document.head.appendChild(n)),n.textContent=e}function ru(e="atomix-theme"){if(!nu())return;const t=document.getElementById(e);t&&t.remove()}function iu(e="atomix-theme"){return!!nu()&&null!==document.getElementById(e)}var ou,su;"undefined"!=typeof process&&process.env,function(e){e.THEME_NOT_FOUND="THEME_NOT_FOUND",e.THEME_LOAD_FAILED="THEME_LOAD_FAILED",e.THEME_VALIDATION_FAILED="THEME_VALIDATION_FAILED",e.CONFIG_LOAD_FAILED="CONFIG_LOAD_FAILED",e.CONFIG_VALIDATION_FAILED="CONFIG_VALIDATION_FAILED",e.CIRCULAR_DEPENDENCY="CIRCULAR_DEPENDENCY",e.MISSING_DEPENDENCY="MISSING_DEPENDENCY",e.STORAGE_ERROR="STORAGE_ERROR",e.INVALID_THEME_NAME="INVALID_THEME_NAME",e.CSS_INJECTION_FAILED="CSS_INJECTION_FAILED",e.INVALID_COLOR_FORMAT="INVALID_COLOR_FORMAT",e.MISSING_REQUIRED_TOKEN="MISSING_REQUIRED_TOKEN",e.CONTRAST_VIOLATION="CONTRAST_VIOLATION",e.INVALID_TOKEN_TYPE="INVALID_TOKEN_TYPE",e.UNKNOWN_ERROR="UNKNOWN_ERROR"}(ou||(ou={}));class lu extends Error{constructor(e,t=ou.UNKNOWN_ERROR,n){super(e),this.name="ThemeError",this.code=t,this.context=n,this.timestamp=Date.now(),Error.captureStackTrace&&Error.captureStackTrace(this,lu)}toJSON(){return{name:this.name,message:this.message,code:this.code,context:this.context,timestamp:this.timestamp,stack:this.stack}}}!function(e){e[e.ERROR=0]="ERROR",e[e.WARN=1]="WARN",e[e.INFO=2]="INFO",e[e.DEBUG=3]="DEBUG"}(su||(su={}));class cu{constructor(e={}){this.config={level:e.level??("undefined"!=typeof process&&"production"===process.env?.NODE_ENV?su.WARN:su.INFO),enableConsole:e.enableConsole??!0,onError:e.onError,onWarn:e.onWarn,onInfo:e.onInfo,onDebug:e.onDebug}}error(e,t,n){if(this.config.level<su.ERROR)return;const a=t instanceof lu?t:new lu(e,ou.UNKNOWN_ERROR,n);this.config.enableConsole,this.config.onError?.(a,n)}warn(e,t){this.config.level<su.WARN||(this.config.enableConsole,this.config.onWarn?.(e,t))}info(e,t){this.config.level<su.INFO||(this.config.enableConsole,this.config.onInfo?.(e,t))}debug(e,t){this.config.level<su.DEBUG||(this.config.enableConsole,this.config.onDebug?.(e,t))}}let du=null;function uu(){return du||(du=new cu),du}const hu=()=>"undefined"!=typeof window&&"undefined"!=typeof document,mu=()=>!hu(),pu=e=>e.replace(/[<>"']/g,"").replace(/\.\./g,"").replace(/\/+/g,"/").replace(/^\/+|\/+$/g,""),gu=(e,t="/themes",n=!1,a=null)=>{if(!bu(e))throw new lu(`Invalid theme name: "${e}". Theme names must be lowercase alphanumeric with hyphens (e.g., "my-theme").`,ou.INVALID_THEME_NAME,{themeName:e,pattern:/^[a-z0-9]+(-[a-z0-9]+)*$/});const r=`${e}${n?".min.css":".css"}`;return a?`${pu(a)}/${r}`:`${pu(t)}/${r.replace(/^\//,"")}`},fu=(e,t)=>{mu()||(document.body&&document.body.setAttribute(e,t),document.documentElement.setAttribute(e,t))},bu=e=>!(!e||"string"!=typeof e)&&/^[a-z0-9]+(-[a-z0-9]+)*$/.test(e),vu=()=>({getItem:e=>{if(mu())return null;try{return localStorage.getItem(e)}catch{return null}},setItem:(e,t)=>{if(!mu())try{localStorage.setItem(e,t)}catch{}},removeItem:e=>{if(!mu())try{localStorage.removeItem(e)}catch{}},isAvailable:()=>{if(mu())return!1;try{const e="__atomix_storage_test__";return localStorage.setItem(e,e),localStorage.removeItem(e),!0}catch{return!1}}});var Su=Object.freeze({__proto__:null,applyThemeAttributes:fu,buildThemePath:gu,createLocalStorageAdapter:vu,isBrowser:hu,isServer:mu,isValidThemeName:bu,loadThemeCSS:(e,t)=>mu()?Promise.resolve():new Promise(((n,a)=>{if(document.getElementById(t))return void n();const r=document.createElement("link");r.id=t,r.rel="stylesheet",r.type="text/css",r.href=e,r.setAttribute("data-atomix-theme","true"),r.onload=()=>{n()},r.onerror=()=>{r.remove(),a(new lu(`Failed to load theme CSS from: ${e}. Please check that the file exists and is accessible.`,ou.THEME_LOAD_FAILED,{fullPath:e,linkId:t}))},document.head.appendChild(r)}))});function yu(e,t={}){const{selector:n=":root",storageKey:a="atomix-theme",enableTransition:r=!0,transitionDuration:i=300}=t,o="system"===e?xu():e,s=":root"===n?document.documentElement:document.querySelector(n);if(s){if(r){const e=s;e.style.transition=`all ${i}ms ease-in-out`,setTimeout((()=>{e.style.transition=""}),i)}s.classList.remove("atomix-theme-light","atomix-theme-dark"),s.classList.add("atomix-theme-"+o),s.setAttribute("data-theme",o),_u(o,{storageKey:a}),window.dispatchEvent(new CustomEvent("atomix-theme-change",{detail:{mode:o}}))}}function Eu(e={}){const t="dark"===Au(e.storageKey)?"light":"dark";return yu(t,e),t}function Au(e="atomix-theme"){return"undefined"==typeof window?"light":localStorage.getItem(e)||"light"}function xu(){return"undefined"==typeof window?"light":window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function Nu(e={}){const t=Au(e.storageKey);if(!t||"system"===t){const t=xu();return yu(t,e),t}return yu(t,e),t}function Tu(e){if("undefined"==typeof window)return()=>{};const t=window.matchMedia("(prefers-color-scheme: dark)"),n=t=>{e(t.matches?"dark":"light")};return t.addEventListener?(t.addEventListener("change",n),()=>t.removeEventListener("change",n)):(t.addListener(n),()=>t.removeListener(n))}function _u(e,t={}){if("undefined"==typeof window)return;const{storageKey:n="atomix-theme",storageType:a="localStorage"}=t;("localStorage"===a?localStorage:sessionStorage).setItem(n,e)}function Cu(e={}){if("undefined"==typeof window)return;const{storageKey:t="atomix-theme",storageType:n="localStorage"}=e;("localStorage"===n?localStorage:sessionStorage).removeItem(t)}function Lu(...e){return Do(e).call(e,((e,t)=>$d(e,t)),{})}function Iu(e,t){return $d({...e},t)}function wu(e,t){const n={};return t.forEach((t=>{e[t]&&(n[t]=e[t])})),n}function Ou(e,t){const n={...e};return t.forEach((e=>{delete n[e]})),n}function Ru(e){if(3===(e=e.replace(/^#/,"")).length&&(e=e.split("").map((e=>e+e)).join("")),6!==e.length)return null;const t=parseInt(e,16);return{r:t>>16&255,g:t>>8&255,b:255&t}}function ku(e,t,n){return"#"+[e,t,n].map((e=>{const t=e.toString(16);return 1===t.length?"0"+t:t})).join("")}function Mu(e){const t=Ru(e);if(!t)return 0;const[n,a,r]=[t.r,t.g,t.b].map((e=>(e/=255)>.03928?Math.pow((e+.055)/1.055,2.4):e/12.92));return.2126*(n??0)+.7152*(a??0)+.0722*(r??0)}function Du(e,t){const n=Mu(e),a=Mu(t);return(Math.max(n,a)+.05)/(Math.min(n,a)+.05)}function Pu(e,t,n="small"){return Du(e,t)>=("large"===n?3:4.5)}function Bu(e,t=3){return t>Du(e,"#FFFFFF")?"#000000":"#FFFFFF"}function zu(e,t=0){const n=Ru(e);if(!n)return e;const a=Math.max(0,Math.min(1,t)),r=Math.round(n.r+(255-n.r)*a),i=Math.round(n.g+(255-n.g)*a),o=Math.round(n.b+(255-n.b)*a);return ku(Math.min(255,r),Math.min(255,i),Math.min(255,o))}function Uu(e,t=0){const n=Ru(e);if(!n)return e;const a=Math.max(0,Math.min(1,t)),r=Math.round(n.r*(1-a)),i=Math.round(n.g*(1-a)),o=Math.round(n.b*(1-a));return ku(Math.max(0,r),Math.max(0,i),Math.max(0,o))}function Fu(e,t){const n=Ru(e);if(!n)return e;const a=Math.max(0,Math.min(1,t));return`rgba(${n.r}, ${n.g}, ${n.b}, ${a})`}function Gu(e,t=.15){return Mu(e)>.5?Uu(e,t):zu(e,t)}function Vu(e=4){return(...t)=>0===t.length?"0px":"function"==typeof e?e(...t):t.map((t=>{if("number"==typeof e)return t*e+"px";if(Array.isArray(e)){const n=e[t];return"number"==typeof n?n+"px":t+"px"}return t+"px"})).join(" ")}function Hu(e,t,n){const a={};if(!Ru(e))return a;for(let r=1;10>=r;r++){let i;i=6>r?zu(e,(6-r)/5*.8):6===r?e:Uu(e,(r-6)/4*.6),a[`${t}-${n}-${r}`]=i}return a}function $u(e,t={}){const{selector:n=":root",inject:a=!1,styleId:r="atomix-theme-variables",prefix:i="atomix"}=t,o={};if(Object.assign(o,function(e,t){const n={};if(["primary","secondary","error","warning","info","success","light","dark"].forEach((a=>{const r=e[a];if(r&&"object"==typeof r){n[`${t}-${a}`]=r.main;const e=Ru(r.main);if(e&&(n[`${t}-${a}-rgb`]=`${e.r}, ${e.g}, ${e.b}`),"light"!==a&&"dark"!==a){const e=Hu(r.main,t,a);Object.assign(n,e)}else n[`${t}-${a}-main`]=r.main,r.light&&(n[`${t}-${a}-light`]=r.light),r.dark&&(n[`${t}-${a}-dark`]=r.dark);r.dark&&(n[`${t}-${a}-hover`]=r.dark),n[`${t}-${a}-text-emphasis`]=Gu(r.main,.15),n[`${t}-${a}-bg-subtle`]=Fu(r.main,.1),n[`${t}-${a}-border-subtle`]=Fu(r.main,.2)}})),e.text?.primary){const a=Hu(e.text.primary,t,"gray");Object.assign(n,a)}if(e.error&&"object"==typeof e.error&&e.error.main){const a=Hu(e.error.main,t,"red");Object.assign(n,a)}if(e.success&&"object"==typeof e.success&&e.success.main){const a=Hu(e.success.main,t,"green");Object.assign(n,a)}if(e.info&&"object"==typeof e.info&&e.info.main){const a=Hu(e.info.main,t,"blue");Object.assign(n,a)}if(e.warning&&"object"==typeof e.warning&&e.warning.main){const a=Hu(e.warning.main,t,"yellow");Object.assign(n,a)}if(e.background&&(n[t+"-body-bg"]=e.background.default,e.background.default&&(n[t+"-primary-bg-subtle"]=e.background.default),e.background.paper&&(n[t+"-secondary-bg-subtle"]=e.background.paper,n[t+"-tertiary-bg-subtle"]=e.background.paper),e.background.subtle&&(n[t+"-invert-bg-subtle"]=e.background.subtle),e.primary&&(n[t+"-brand-bg-subtle"]=Fu(e.primary.main,.1))),e.text&&(n[t+"-body-color"]=e.text.primary,e.text.primary&&(n[t+"-primary-text-emphasis"]=e.text.primary),e.text.secondary&&(n[t+"-secondary-text-emphasis"]=e.text.secondary,n[t+"-tertiary-text-emphasis"]=e.text.secondary),e.text.disabled&&(n[t+"-disabled-text-emphasis"]=e.text.disabled),e.text.primary&&(n[t+"-invert-text-emphasis"]=e.text.primary)),e.primary&&(n[t+"-brand-text-emphasis"]=e.primary.main,n[t+"-brand-border-subtle"]=Fu(e.primary.main,.2)),e.light&&"object"==typeof e.light&&(n[t+"-light-border-subtle"]=Fu(e.light.main,.2)),e.dark&&"object"==typeof e.dark&&(n[t+"-dark-border-subtle"]=Fu(e.dark.main,.2)),e.text&&(n[t+"-heading-color"]=e.text.primary),e.primary){n[t+"-link-color"]=e.primary.main;const a=Ru(e.primary.main);a&&(n[t+"-link-color-rgb"]=`${a.r}, ${a.g}, ${a.b}`),n[t+"-link-hover-color"]=e.primary.dark||Uu(e.primary.main,.1);const r=Ru(e.primary.dark||Uu(e.primary.main,.1));r&&(n[t+"-link-hover-color-rgb"]=`${r.r}, ${r.g}, ${r.b}`),n[t+"-link-decoration"]="none"}if(e.text&&(n[t+"-border-color"]=Fu(e.text.primary,.1),n[t+"-border-color-translucent"]=Fu(e.text.primary,.15)),e.primary&&(n[t+"-focus-border-color"]=e.primary.main),e.success&&(n[t+"-form-valid-color"]=e.success.main,n[t+"-form-valid-border-color"]=Fu(e.success.main,.3)),e.error&&(n[t+"-form-invalid-color"]=e.error.main,n[t+"-form-invalid-border-color"]=Fu(e.error.main,.3)),e.warning?n[t+"-highlight-bg"]=Fu(e.warning.main,.2):n[t+"-highlight-bg"]="rgba(255, 235, 59, 0.2)",e.text&&(n[t+"-code-color"]=e.text.secondary),["primary","secondary","error","warning","info","success","light","dark"].forEach((a=>{const r=e[a];if(r&&"object"==typeof r){const e=zu(r.main,.6),i=zu(r.main,.3),o=r.main;n[`${t}-${a}-gradient`]=`linear-gradient(135deg, ${e}, ${i}, ${o})`}})),e.text?.primary){const a=zu(e.text.primary,.8),r=zu(e.text.primary,.6),i=zu(e.text.primary,.4);n[t+"-gradient"]=`linear-gradient(135deg, ${a}, ${r}, ${i})`}return n}(e.palette,i)),Object.assign(o,function(e,t){const n={};n[t+"-body-font-family"]=e.fontFamily,n[t+"-font-sans-serif"]=e.fontFamily,n[t+"-font-monospace"]='SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace';const a=e.fontSize||16;n[t+"-root-font-size"]=a+"px";const r=e.fontSize;n[t+"-body-font-size"]=r+"px",n[t+"-body-font-weight"]=e.fontWeightRegular+"",n[t+"-font-weight-light"]=(e.fontWeightLight??300)+"",n[t+"-font-weight-normal"]=(e.fontWeightRegular??400)+"",n[t+"-font-weight-medium"]=(e.fontWeightMedium??500)+"",n[t+"-font-weight-semibold"]=(e.fontWeightSemiBold??600)+"",n[t+"-font-weight-bold"]=(e.fontWeightBold??700)+"","fontWeightHeavy"in e&&(n[t+"-font-weight-heavy"]=(e.fontWeightHeavy||800)+""),"fontWeightBlack"in e&&(n[t+"-font-weight-black"]=(e.fontWeightBlack||900)+"");const i="number"==typeof e.body1?.lineHeight?e.body1.lineHeight:parseFloat((e.body1?.lineHeight||1.2)+"");n[t+"-body-line-height"]=i+"",n[t+"-line-height-base"]=i+"",n[t+"-line-height-sm"]="1.43",n[t+"-line-height-lg"]="1.56";const o=.75*r,s=.875*r,l=1*r,c=1.125*r,d=1.5*r,u=2*r;if(n[t+"-font-size-xs"]=o+"px",n[t+"-font-size-sm"]=s+"px",n[t+"-font-size-md"]=l+"px",n[t+"-font-size-lg"]=c+"px",n[t+"-font-size-xl"]=d+"px",n[t+"-font-size-2xl"]=u+"px","display1"in e){const a=e.display1;n[t+"-display-1"]="string"==typeof a?a:a+"px"}return["h1","h2","h3","h4","h5","h6"].forEach((a=>{const r=e[a];r?.letterSpacing&&(n[`${t}-letter-spacing-${a}`]=r.letterSpacing+"")})),n}(e.typography,i)),Object.assign(o,function(e,t){const n={};return e.md&&(n[t+"-box-shadow"]=e.md),e.xs&&(n[t+"-box-shadow-xs"]=e.xs),e.sm&&(n[t+"-box-shadow-sm"]=e.sm),e.lg&&(n[t+"-box-shadow-lg"]=e.lg),e.xl&&(n[t+"-box-shadow-xl"]=e.xl),e.inset?n[t+"-box-shadow-inset"]=e.inset:e.sm&&(n[t+"-box-shadow-inset"]=e.sm.replace(/^0\s/,"inset ")),n}(e.shadows,i)),Object.assign(o,function(e,t){const n={},a=e.duration.shortest||150,r=e.duration.standard||300,i=e.duration.complex||500,o=e.easing.easeInOut||"cubic-bezier(0.23, 1, 0.32, 1)";return n[t+"-transition-duration-fast"]=a/1e3+"s",n[t+"-transition-duration-base"]=r/1e3+"s",n[t+"-transition-duration-slow"]=i/1e3+"s",n[t+"-transition-duration-slower"]="0.7s",n[t+"-easing-base"]=o,n[t+"-easing-ease-in-out"]=e.easing.easeInOut||"cubic-bezier(0.4, 0, 0.2, 1)",n[t+"-easing-ease-out"]=e.easing.easeOut||"cubic-bezier(0, 0, 0.2, 1)",n[t+"-easing-ease-in"]=e.easing.easeIn||"cubic-bezier(0.4, 0, 1, 1)",n[t+"-easing-ease-linear"]="linear",n[t+"-transition-fast"]=`all ${a/1e3}s ${o}`,n[t+"-transition-base"]=`all ${r/1e3}s ${o}`,n[t+"-transition-slow"]=`all ${i/1e3}s ${o}`,n}(e.transitions,i)),Object.assign(o,function(e,t){const n={};return n[t+"-z-n1"]="-1",n[t+"-z-0"]="0",n[t+"-z-1"]="1",n[t+"-z-2"]="2",n[t+"-z-3"]="3",n[t+"-z-4"]="4",n[t+"-z-5"]="5",e.mobileStepper&&(n[t+"-z-dropdown"]=e.mobileStepper+""),e.appBar&&(n[t+"-z-sticky"]=e.appBar+""),n[t+"-z-fixed"]="1030",e.modal&&(n[t+"-z-modal"]=e.modal+""),e.speedDial&&(n[t+"-z-popover"]=e.speedDial+""),e.tooltip&&(n[t+"-z-tooltip"]=e.tooltip+""),e.drawer&&(n[t+"-z-drawer"]=e.drawer+""),e.snackbar&&(n[t+"-z-snackbar"]=e.snackbar+""),n}(e.zIndex,i)),Object.assign(o,function(e,t){const n={};return Object.entries(e.values).forEach((([a,r])=>{n[`${t}-breakpoint-${a}`]=`${r}${e.unit}`})),n}(e.breakpoints,i)),Object.assign(o,function(e,t){const n={};return Object.entries({0:0,1:1,"px-6":1.5,2:2,"px-10":2.5,3:3,"px-14":3.5,4:4,5:5,"px-22":5.5,6:6,7:7,"px-30":7.5,8:8,9:9,10:10,11:11,12:12,14:14,16:16,20:20,24:24,28:28,32:32,36:36,40:40,44:44,48:48,52:52,56:56,60:60,64:64,72:72,80:80,90:90,200:200}).forEach((([a,r])=>{const i=e(r),o=i.match(/([\d.]+)px/);if(o&&o[1]){const e=parseFloat(o[1])/16;n[`${t}-spacing-${a}`]=e+"rem"}else n[`${t}-spacing-${a}`]=i})),n}(e.spacing,i)),Object.assign(o,function(e,t){const n={};return n[t+"-border-width"]="1px",n[t+"-border-style"]="solid",!n[t+"-border-color"]&&e.text&&(n[t+"-border-color"]=Fu(e.text.primary,.1)),n}(e.palette,i)),Object.assign(o,function(e,t){const n={},a=(e,t)=>void 0===e?t:"number"==typeof e?e+"px":e+"";return n[t+"-border-radius"]=a(e.base,"0.5rem"),n[t+"-border-radius-sm"]=a(e.sm,"0.25rem"),n[t+"-border-radius-lg"]=a(e.lg,"0.625rem"),n[t+"-border-radius-xl"]=a(e.xl,"0.75rem"),n[t+"-border-radius-xxl"]=a(e.xxl,"1rem"),n[t+"-border-radius-3xl"]=a(e["3xl"],"1.5rem"),n[t+"-border-radius-4xl"]=a(e["4xl"],"2rem"),n[t+"-border-radius-pill"]=a(e.pill,"50rem"),n}(e.borderRadius,i)),Object.assign(o,function(e,t){const n={};return n[t+"-focus-ring-width"]="3px",n[t+"-focus-ring-offset"]="2px",n[t+"-focus-ring-opacity"]="0.25",n}(e.palette,i)),e.custom&&Object.keys(e.custom).length>0){const t=function(e,t="",n={}){const a=[{obj:e,prefix:t}];for(;a.length>0;){const{obj:e,prefix:t}=a.pop();for(const r in e){if(!Object.prototype.hasOwnProperty.call(e,r))continue;const i=e[r],o=t?`${t}-${r}`:r;if(i&&"object"==typeof i&&!Array.isArray(i)){if("function"==typeof i)continue;a.push({obj:i,prefix:o})}else"string"!=typeof i&&"number"!=typeof i||(n[o.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()]=i+"")}}return n}(e.custom,i+"-custom");Object.assign(o,t)}const s=`${n} {\n${Object.entries(o).map((([e,t])=>` --${e}: ${t};`)).join("\n")}\n}`;return a&&hu()&&function(e,t="atomix-theme-variables"){if(!hu())return;let n=document.getElementById(t);n||(n=document.createElement("style"),n.id=t,n.setAttribute("data-atomix-theme-vars","true"),document.head.appendChild(n)),n.textContent=e}(s,r),s}function Yu(e,t,n){let a=e;return t&&(a+="__"+t),n&&Object.entries(n).forEach((([e,t])=>{t&&(a+="--"+e,"string"==typeof t&&t!==e&&(a+="-"+t))})),a}function Ku(e,t={}){const{prefix:n="atomix",component:a,variant:r,state:i}=t,o=[n];return a&&o.push(a),r&&o.push(r),i&&o.push(i),o.push(e),"--"+o.join("-")}function Wu(e){const t={};for(const[n,a]of Object.entries(e))t[n]="object"==typeof a&&null!==a?Wu(a):a;return t}function ju(e){return e.replace(/[A-Z]/g,(e=>"-"+e.toLowerCase()))}function qu(e,t="atomix"){return`--${t}-${e.split(".").map((e=>ju(e))).join("-")}`}function Qu(e,t,n,a){const r=["atomix",e];return n&&r.push(n),a&&r.push(a),r.push(t),`var(${"--"+r.join("-")}, var(${"--atomix-"+t}, initial))`}function Xu(e,t,n,a){const r={};if(!t)return r;const i=["atomix",e];n&&i.push(n),a&&i.push(a);const o=i.join("-");return t.primary&&(r[`--${o}-color`]=t.primary),t["primary-9"]&&(r[`--${o}-color-hover`]=t["primary-9"]),t["body-color"]&&(r[`--${o}-color-disabled`]=t["body-color"]),t["body-font-family"]&&(r[`--${o}-font-family`]=t["body-font-family"]),t["body-font-size"]&&(r[`--${o}-font-size`]=t["body-font-size"]),t["spacing-1"]&&(r[`--${o}-spacing-sm`]=t["spacing-1"]),t["spacing-2"]&&(r[`--${o}-spacing-md`]=t["spacing-2"]),t["spacing-4"]&&(r[`--${o}-spacing-lg`]=t["spacing-4"]),r}function Zu(e,t={},n,a,r){return r?{...Xu(e,r,n,a),...t}:t}function Ju(e,t,n,a){return a=>Qu(e,a,t,n)}const eh=g(null);eh.displayName="ThemeContext";const th=uu(),nh={hex:/^#([A-Fa-f0-9]{3}|[A-Fa-f0-9]{4}|[A-Fa-f0-9]{6}|[A-Fa-f0-9]{8})$/,rgb:/^rgb\(\s*(\d{1,3}(?:\.\d+)?)\s*,\s*(\d{1,3}(?:\.\d+)?)\s*,\s*(\d{1,3}(?:\.\d+)?)\s*(?:,\s*([01]?\.?\d+))?\s*\)$/,rgba:/^rgba\(\s*(\d{1,3}(?:\.\d+)?)\s*,\s*(\d{1,3}(?:\.\d+)?)\s*,\s*(\d{1,3}(?:\.\d+)?)\s*,\s*([01]?\.?\d+)\s*\)$/,hsl:/^hsl\(\s*(\d{1,3})\s*,\s*(\d{1,3})%\s*,\s*(\d{1,3})%\s*\)$/,hsla:/^hsla\(\s*(\d{1,3})\s*,\s*(\d{1,3})%\s*,\s*(\d{1,3})%\s*,\s*([01]?\.?\d+)\s*\)$/},ah=["primary","secondary","success","info","warning","error","light","dark"],rh=["primary-text-emphasis","secondary-text-emphasis","tertiary-text-emphasis","disabled-text-emphasis"],ih=[{text:"primary-text-emphasis",background:"primary-bg-subtle",name:"Primary text on subtle background"},{text:"secondary-text-emphasis",background:"secondary-bg-subtle",name:"Secondary text on subtle background"},{text:"error-text-emphasis",background:"error-bg-subtle",name:"Error text on subtle background"},{text:"success-text-emphasis",background:"success-bg-subtle",name:"Success text on subtle background"}];function oh(e){const t=e.match(nh.rgb)||e.match(nh.rgba);if(!t)return null;const n=parseInt(t[1]??"0",10),a=parseInt(t[2]??"0",10),r=parseInt(t[3]??"0",10);return 0>n||n>255||0>a||a>255||0>r||r>255?null:{r:n,g:a,b:r}}function sh(e){const t=e.match(nh.hsl)||e.match(nh.hsla);if(!t)return null;let n=parseInt(t[1]??"0",10)/360,a=parseInt(t[2]??"0",10)/100,r=parseInt(t[3]??"0",10)/100;if(0>n||n>1||0>a||a>1||0>r||r>1)return null;const i=(e,t,n)=>(0>n&&(n+=1),n>1&&(n-=1),1/6>n?e+6*(t-e)*n:.5>n?t:2/3>n?e+(t-e)*(2/3-n)*6:e);let o,s,l;if(0===a)o=s=l=r;else{const e=.5>r?r*(1+a):r+a-r*a,t=2*r-e;o=i(t,e,n+1/3),s=i(t,e,n),l=i(t,e,n-1/3)}return{r:Math.round(255*o),g:Math.round(255*s),b:Math.round(255*l)}}function lh(e){return nh.hex.test(e)?function(e){const t=nh.hex.exec(e);if(!t||!t[1])return null;const n=t[1];let a,r,i;switch(n.length){case 3:case 4:a=parseInt((n[0]??"0")+(n[0]??"0"),16),r=parseInt((n[1]??"0")+(n[1]??"0"),16),i=parseInt((n[2]??"0")+(n[2]??"0"),16);break;case 6:case 8:a=parseInt(n.slice(0,2),16),r=parseInt(n.slice(2,4),16),i=parseInt(n.slice(4,6),16);break;default:return null}return{r:a,g:r,b:i}}(e):e.startsWith("rgb")?oh(e):e.startsWith("hsl")?sh(e):null}function ch(e,t,n){const a=e=>(e/=255)>.03928?Math.pow((e+.055)/1.055,2.4):e/12.92;return.2126*a(e)+.7152*a(t)+.0722*a(n)}function dh(e,t,n=!1){const a=function(e,t){const n=lh(e),a=lh(t);if(!n||!a)return null;const r=ch(n.r,n.g,n.b),i=ch(a.r,a.g,a.b);return(Math.max(r,i)+.05)/(Math.min(r,i)+.05)}(e,t);if(null===a)return{valid:!1,ratio:0,requiredRatio:n?3:4.5};const r=n?3:4.5;return{valid:a>=r,ratio:a,requiredRatio:r}}function uh(e,t={}){const n=[];t.skipRequiredTokens||n.push(function(e){const t=[],n=[];for(const a of ah)a in e||t.push(`Required color token '${a}' is missing`);for(const a of rh)a in e||t.push(`Required text emphasis token '${a}' is missing`);for(const a of ah){const t=a+"-rgb";t in e||n.push(`RGB version of '${a}' token '${t}' is missing`)}return{valid:0===t.length,errors:t,warnings:n}}(e)),t.skipColorValidation||n.push(function(e){const t=[],n=new Set(["primary","secondary","success","info","warning","error","light","dark","primary-text-emphasis","secondary-text-emphasis","tertiary-text-emphasis","disabled-text-emphasis","invert-text-emphasis","brand-text-emphasis","error-text-emphasis","success-text-emphasis","warning-text-emphasis","info-text-emphasis","light-text-emphasis","dark-text-emphasis","primary-bg-subtle","secondary-bg-subtle","tertiary-bg-subtle","invert-bg-subtle","brand-bg-subtle","error-bg-subtle","success-bg-subtle","warning-bg-subtle","info-bg-subtle","light-bg-subtle","dark-bg-subtle","primary-border-subtle","secondary-border-subtle","success-border-subtle","error-border-subtle","warning-border-subtle","info-border-subtle","brand-border-subtle","light-border-subtle","dark-border-subtle","primary-hover","secondary-hover","light-hover","dark-hover","error-hover","success-hover","warning-hover","info-hover",...Array.from({length:10},((e,t)=>["primary-"+(t+1),"red-"+(t+1),"green-"+(t+1),"blue-"+(t+1),"yellow-"+(t+1)])).flat(),...Array.from({length:10},((e,t)=>"gray-"+(t+1))),"body-color","heading-color","link-color","link-hover-color","highlight-bg","code-color","border-color","border-color-translucent","focus-border-color","form-valid-color","form-valid-border-color","form-invalid-color","form-invalid-border-color"]);for(const r of n){if(!(r in e))continue;const n=e[r];"string"==typeof n?(a=n,nh.hex.test(a)||(nh.rgb.test(a)||nh.rgba.test(a)?null!==oh(a):(nh.hsl.test(a)||nh.hsla.test(a))&&null!==sh(a))||t.push(`Token '${r}' has invalid color format: '${n}'`)):t.push(`Token '${r}' must be a string, got ${typeof n}`)}var a;return{valid:0===t.length,errors:t,warnings:[]}}(e)),t.skipAccessibility||n.push(function(e){const t=[],n=[];for(const a of ih){const r=e[a.text],i=e[a.background];if(!r||!i){n.push(`Cannot validate contrast for ${a.name}: missing tokens`);continue}const o=dh(r,i);if(!o.valid){const e=3===o.requiredRatio?"large text (AA)":"normal text (AA)";t.push(`${a.name}: contrast ratio ${o.ratio.toFixed(2)}:1 is below required ${o.requiredRatio}:1 for ${e}`)}}return{valid:0===t.length,errors:t,warnings:n}}(e));const a=n.flatMap((e=>e.errors)),r=n.flatMap((e=>e.warnings)),i=0===a.length;return i?r.length>0?th.warn(`DesignTokens validation passed with ${r.length} warnings`,{warnings:r}):th.debug("DesignTokens validation passed"):th.error("DesignTokens validation failed",Error(`Validation failed with ${a.length} errors and ${r.length} warnings`),{errors:a,warnings:r,tokenCount:Object.keys(e).length}),{valid:i,errors:a,warnings:r}}function hh(e){const t={...Id,...e};return{tokens:t,validation:uh(t)}}const mh=uu(),ph=({children:t,defaultTheme:n,themes:a={},basePath:l="/themes",cdnPath:c=null,useMinified:d=!1,storageKey:h="atomix-theme",dataAttribute:m="data-theme",enablePersistence:p=!0,onThemeChange:g,onError:f})=>{const b=i(g),v=i(f);s((()=>{b.current=g,v.current=f}),[g,f]);const S=o((e=>{b.current?.(e)}),[]),y=o(((e,t)=>{v.current?.(e,t)}),[]),E=u((()=>vu()),[]),A=u((()=>{if(p&&E.isAvailable()){const t=E.getItem(h);if(t){if(t.trim().startsWith("{"))try{return JSON.parse(t)}catch(e){return mh.error("Failed to parse stored theme tokens",e),t}return t}}return null!=n?n:"default"}),[n,p,h,E]),[x,N]=r((()=>"string"==typeof A?A:"tokens-theme")),[T,_]=r((()=>{if(A&&"string"!=typeof A){const{tokens:e,validation:t}=hh(A);if(t.valid)return e}if(n&&"string"!=typeof n){const{tokens:e,validation:t}=hh(n);if(t.valid)return e}return null})),[C,L]=r(!1),[I,w]=r(null),O=i(new Set),R=i({}),k=i(null);s((()=>{n&&"string"!=typeof n&&T&&!mu()&&au(Vd(T),"theme-tokens-theme")}),[n,T]),s((()=>{mu()||fu(x+"",m)}),[x,m]),s((()=>{p&&E.isAvailable()&&("tokens-theme"===x?T&&E.setItem(h,JSON.stringify(T)):E.setItem(h,x+""))}),[x,T,p,h,E]),s((()=>()=>{k.current&&(k.current.abort(),k.current=null),Object.entries(R.current).forEach((([e,t])=>{})),R.current={}}),[]);const M=o((async(e,t)=>{k.current&&k.current.abort();const n=new AbortController;k.current=n,L(!0),w(null);try{let r;if("string"!=typeof e){if(n.signal.aborted)return;const{tokens:a,validation:r}=hh(e);if(!r.valid){const e="Invalid DesignTokens provided: "+r.errors.join(", "),a=Error(e);if(mh.error("Theme validation failed",a,{errors:r.errors,warnings:r.warnings}),!1!==t?.fallbackOnError){mh.warn("Falling back to default theme due to validation errors");const{tokens:e}=hh({}),t=Vd(e),r="tokens-theme-fallback";if(n.signal.aborted)return;return ru("theme-"+x),au(t,"theme-"+r),_(e),N(r),S(e),y(a,r),void L(!1)}throw a}const i=Vd(a),o="tokens-theme";if(n.signal.aborted)return;if(ru("theme-"+x),au(i,"theme-"+o),n.signal.aborted)return;return _(a),N(o),S(a),void L(!1)}if(r=e,"string"==typeof e&&a[e]){if(R.current[e])try{if(await R.current[e],n.signal.aborted)return;return N(e),_(null),S(e),void L(!1)}catch{}const t=new Promise(((t,r)=>{(async()=>{try{if(n.signal.aborted)return void t();if(!a[e])throw Error("Theme metadata not found for theme: "+e);{const a=gu(e,l,d,c);if(n.signal.aborted)return void t();const{loadThemeCSS:r}=await Promise.resolve().then((function(){return Su}));if(await r(a,"theme-"+e),n.signal.aborted)return void t();ru("theme-"+x),O.current.add(e),N(e),_(null),S(e),t()}}catch(i){if(n.signal.aborted)return void t();const a=i instanceof Error?i:Error(i+"");w(a),y(a,e+""),r(a)}})()}));R.current[e]=t;try{await t}catch{}setTimeout((()=>{R.current[e]===t&&delete R.current[e]}),1e3)}else{if(n.signal.aborted)return;N(r),_(null),S(r)}}catch(r){if(n.signal.aborted)return;const t=r instanceof Error?r:Error(r+"");w(t),y(t,e+"")}finally{n.signal.aborted||L(!1)}}),[a,x,S,y,l,d,c]),D=o((e=>O.current.has(e)),[]),P=o((async e=>{if(a[e]&&!D(e)){L(!0);try{const t=gu(e,l,d,c);await fetch(t),O.current.add(e)}catch(t){const n=t instanceof Error?t:Error(t+"");w(n),y(n,e)}finally{L(!1)}}}),[a,D,y,l,d,c]),B=o((async(e,t)=>M("string"==typeof e&&t?t:e)),[M]),z=u((()=>({})),[]),U=u((()=>Object.entries(a).map((([e,t])=>({...t,name:e})))),[a]),F=u((()=>({theme:x,activeTokens:T,setTheme:M,updateTheme:B,availableThemes:U,isLoading:C,error:I,isThemeLoaded:D,preloadTheme:P,themeManager:z})),[x,T,M,B,U,C,I,D,P,z]);return e(eh.Provider,{value:F,children:t})};function gh(){const e=f(eh);if(!e)throw Error("useTheme must be used within a ThemeProvider");return{theme:e.theme,activeTokens:e.activeTokens,setTheme:e.setTheme,updateTheme:e.updateTheme,availableThemes:e.availableThemes,isLoading:e.isLoading,error:e.error,isThemeLoaded:e.isThemeLoaded,preloadTheme:e.preloadTheme}}function fh(){const{theme:e,activeTokens:t}=gh(),n=o(((e,t)=>{if("undefined"==typeof window)return t||"";const n="--atomix-"+e;return getComputedStyle(document.documentElement).getPropertyValue(n).trim()||t||""}),[]);return{theme:e,activeTokens:t,getToken:n,colors:{primary:n("primary","#3b82f6"),secondary:n("secondary","#10b981"),error:n("error","#ef4444"),success:n("success","#22c55e"),warning:n("warning","#eab308"),info:n("info","#3b82f6"),light:n("light","#f9fafb"),dark:n("dark","#111827")},spacing:{1:n("spacing-1","0.25rem"),2:n("spacing-2","0.5rem"),3:n("spacing-3","0.75rem"),4:n("spacing-4","1rem"),5:n("spacing-5","1.25rem"),6:n("spacing-6","1.5rem"),8:n("spacing-8","2rem"),10:n("spacing-10","2.5rem"),12:n("spacing-12","3rem"),16:n("spacing-16","4rem"),20:n("spacing-20","5rem")},borderRadius:{sm:n("border-radius-sm","0.25rem"),md:n("border-radius-md","0.5rem"),lg:n("border-radius-lg","0.75rem"),xl:n("border-radius-xl","1rem"),full:n("border-radius-full","9999px")},typography:{fontFamily:{sans:n("font-sans-serif","Inter, system-ui, sans-serif"),serif:n("font-serif","Georgia, serif"),mono:n("font-monospace","Fira Code, monospace")},fontSize:{xs:n("font-size-xs","0.75rem"),sm:n("font-size-sm","0.875rem"),md:n("font-size-md","1rem"),lg:n("font-size-lg","1.125rem"),xl:n("font-size-xl","1.25rem"),"2xl":n("font-size-2xl","1.5rem"),"3xl":n("font-size-3xl","1.875rem"),"4xl":n("font-size-4xl","2.25rem")},fontWeight:{light:n("font-weight-light","300"),normal:n("font-weight-normal","400"),medium:n("font-weight-medium","500"),semibold:n("font-weight-semibold","600"),bold:n("font-weight-bold","700")}},shadows:{sm:n("box-shadow-sm","0 1px 2px 0 rgba(0, 0, 0, 0.05)"),md:n("box-shadow-md","0 4px 6px -1px rgba(0, 0, 0, 0.1)"),lg:n("box-shadow-lg","0 10px 15px -3px rgba(0, 0, 0, 0.1)"),xl:n("box-shadow-xl","0 20px 25px -5px rgba(0, 0, 0, 0.1)"),inset:n("box-shadow-inset","inset 0 2px 4px 0 rgba(0, 0, 0, 0.06)")},transitions:{fast:n("transition-fast","150ms"),base:n("transition-base","200ms"),slow:n("transition-slow","300ms")}}}const bh=({error:n,errorInfo:a})=>{const r=n instanceof lu,i=r?n.code:ou.UNKNOWN_ERROR,o=r?n.context:void 0;return t("div",{style:{padding:"2rem",margin:"1rem",border:"1px solid #e0e0e0",borderRadius:"8px",backgroundColor:"#fafafa",color:"#333"},role:"alert",children:[e("h2",{style:{marginTop:0,color:"#d32f2f"},children:"Theme Error"}),t("p",{children:[e("strong",{children:"Error:"})," ",n.message]}),r&&t("p",{children:[e("strong",{children:"Error Code:"})," ",i]}),o&&Object.keys(o).length>0&&t("details",{style:{marginTop:"1rem"},children:[e("summary",{style:{cursor:"pointer",fontWeight:"bold"},children:"Error Context"}),e("pre",{style:{marginTop:"0.5rem",padding:"0.5rem",backgroundColor:"#f5f5f5",borderRadius:"4px",overflow:"auto"},children:JSON.stringify(o,null,2)})]}),("undefined"==typeof process||"development"===process.env?.NODE_ENV)&&a&&t("details",{style:{marginTop:"1rem"},children:[e("summary",{style:{cursor:"pointer",fontWeight:"bold"},children:"Stack Trace (Development Only)"}),e("pre",{style:{marginTop:"0.5rem",padding:"0.5rem",backgroundColor:"#f5f5f5",borderRadius:"4px",overflow:"auto",fontSize:"0.875rem"},children:a.componentStack})]}),e("button",{onClick:()=>window.location.reload(),style:{marginTop:"1rem",padding:"0.5rem 1rem",backgroundColor:"#1976d2",color:"white",border:"none",borderRadius:"4px",cursor:"pointer"},children:"Reload Page"})]})};class vh extends v{constructor(e){super(e),this.logger=uu(),this.state={hasError:!1,error:null,errorInfo:null}}static getDerivedStateFromError(e){return{hasError:!0,error:e}}componentDidCatch(e,t){const n=e instanceof lu?e:new lu(e.message,ou.UNKNOWN_ERROR,{componentStack:t.componentStack});if(this.logger.error("Theme error boundary caught an error",n,{componentStack:t.componentStack,errorBoundary:"ThemeErrorBoundary"}),this.setState({error:e,errorInfo:t}),this.props.onError)try{this.props.onError(e,t)}catch(a){this.logger.error("Error in onError callback",a instanceof Error?a:Error(a+""),{originalError:e.message})}}componentDidUpdate(e){this.props.resetOnPropsChange&&this.state.hasError&&e.children!==this.props.children&&this.setState({hasError:!1,error:null,errorInfo:null})}render(){return this.state.hasError&&this.state.error&&this.state.errorInfo?this.props.fallback?this.props.fallback(this.state.error,this.state.errorInfo):e(bh,{error:this.state.error,errorInfo:this.state.errorInfo}):this.props.children}}function Sh(e={}){const{initialMode:t="system",syncWithSystem:n=!1,storageKey:a="atomix-theme",enableTransition:i=!0,transitionDuration:l=300}=e,[c,d]=r((()=>{if("undefined"==typeof window)return t;const e=Au(a);return e&&"system"!==e?e:"system"===t?xu():t}));return s((()=>{"undefined"!=typeof window&&(Nu({storageKey:a,enableTransition:i,transitionDuration:l}),d(Au(a)))}),[a,i,l]),s((()=>{if(n)return Tu((e=>{d(e),yu(e,{storageKey:a,enableTransition:i,transitionDuration:l})}))}),[n,a,i,l]),{mode:c,isDark:"dark"===c,isLight:"light"===c,toggle:o((()=>{const e=Eu({storageKey:a,enableTransition:i,transitionDuration:l});return d(e),e}),[a,i,l]),setMode:o((e=>{yu(e,{storageKey:a,enableTransition:i,transitionDuration:l}),d(e)}),[a,i,l]),resetToSystem:o((()=>{const e=xu();yu(e,{storageKey:a,enableTransition:i,transitionDuration:l}),d(e)}),[a,i,l]),clearPreference:o((()=>{"undefined"!=typeof window&&localStorage.removeItem(a)}),[a])}}const yh=({className:a="",showLabel:r=!1,lightLabel:i="Light",darkLabel:o="Dark",iconSize:s=20,variant:l="icon",render:c,ariaLabel:d="Toggle theme",...u})=>{const{mode:h,isDark:m,toggle:p}=Sh(u);return c?e(n,{children:c({isDark:m,toggle:p,mode:h})}):"icon"===l?e("button",{onClick:p,className:"theme-toggle theme-toggle-icon "+a,"aria-label":d,title:m?o:i,style:{background:"none",border:"none",cursor:"pointer",padding:"8px",borderRadius:"50%",display:"flex",alignItems:"center",justifyContent:"center",transition:"all 0.3s ease-in-out"},children:m?t("svg",{width:s,height:s,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[e("circle",{cx:"12",cy:"12",r:"5"}),e("line",{x1:"12",y1:"1",x2:"12",y2:"3"}),e("line",{x1:"12",y1:"21",x2:"12",y2:"23"}),e("line",{x1:"4.22",y1:"4.22",x2:"5.64",y2:"5.64"}),e("line",{x1:"18.36",y1:"18.36",x2:"19.78",y2:"19.78"}),e("line",{x1:"1",y1:"12",x2:"3",y2:"12"}),e("line",{x1:"21",y1:"12",x2:"23",y2:"12"}),e("line",{x1:"4.22",y1:"19.78",x2:"5.64",y2:"18.36"}),e("line",{x1:"18.36",y1:"5.64",x2:"19.78",y2:"4.22"})]}):e("svg",{width:s,height:s,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:e("path",{d:"M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z"})})}):"button"===l?t("button",{onClick:p,className:"theme-toggle theme-toggle-button "+a,"aria-label":d,style:{display:"flex",alignItems:"center",gap:"8px",padding:"8px 16px",borderRadius:"8px",border:"1px solid currentColor",background:"transparent",color:"inherit",cursor:"pointer",fontSize:"14px",fontWeight:"500",transition:"all 0.3s ease-in-out"},children:[m?t("svg",{width:s,height:s,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[e("circle",{cx:"12",cy:"12",r:"5"}),e("line",{x1:"12",y1:"1",x2:"12",y2:"3"}),e("line",{x1:"12",y1:"21",x2:"12",y2:"23"}),e("line",{x1:"4.22",y1:"4.22",x2:"5.64",y2:"5.64"}),e("line",{x1:"18.36",y1:"18.36",x2:"19.78",y2:"19.78"}),e("line",{x1:"1",y1:"12",x2:"3",y2:"12"}),e("line",{x1:"21",y1:"12",x2:"23",y2:"12"}),e("line",{x1:"4.22",y1:"19.78",x2:"5.64",y2:"18.36"}),e("line",{x1:"18.36",y1:"5.64",x2:"19.78",y2:"4.22"})]}):e("svg",{width:s,height:s,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:e("path",{d:"M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z"})}),r&&e("span",{children:m?o:i})]}):"switch"===l?e("div",{className:"theme-toggle theme-toggle-switch "+a,role:"button",tabIndex:0,onClick:p,onKeyDown:e=>"Enter"===e.key&&p(),"aria-label":d,style:{position:"relative",width:"56px",height:"28px",borderRadius:"14px",background:m?"#4b5563":"#d1d5db",cursor:"pointer",transition:"background 0.3s ease-in-out",display:"flex",alignItems:"center",padding:"2px"},children:e("div",{style:{position:"absolute",left:m?"auto":"2px",right:m?"2px":"auto",width:"24px",height:"24px",borderRadius:"50%",background:"white",boxShadow:"0 2px 4px rgba(0, 0, 0, 0.2)",transition:"all 0.3s ease-in-out",display:"flex",alignItems:"center",justifyContent:"center"},children:m?e("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"#4b5563",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:e("path",{d:"M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z"})}):t("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"#f59e0b",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[e("circle",{cx:"12",cy:"12",r:"5"}),e("line",{x1:"12",y1:"1",x2:"12",y2:"3"}),e("line",{x1:"12",y1:"21",x2:"12",y2:"23"}),e("line",{x1:"4.22",y1:"4.22",x2:"5.64",y2:"5.64"}),e("line",{x1:"18.36",y1:"18.36",x2:"19.78",y2:"19.78"}),e("line",{x1:"1",y1:"12",x2:"3",y2:"12"}),e("line",{x1:"21",y1:"12",x2:"23",y2:"12"}),e("line",{x1:"4.22",y1:"19.78",x2:"5.64",y2:"18.36"}),e("line",{x1:"18.36",y1:"5.64",x2:"19.78",y2:"4.22"})]})})}):null};yh.displayName="ThemeToggle";class Eh{constructor(e=document.documentElement){this.styleId="atomix-theme-applicator",this.root=e}applyTheme(e){this.clearAppliedVars(),au(Vd(e,{selector:":root",prefix:"atomix"}),this.styleId)}applyGlobalCSSVars(e){Object.entries(e).forEach((([e,t])=>{this.root.style.setProperty(e,t+"")}))}clearAppliedVars(){ru(this.styleId)}removeTheme(){this.clearAppliedVars(),ru(this.styleId)}updateCSSVars(e){this.applyGlobalCSSVars(e)}}let Ah=null;function xh(){return Ah||(Ah=new Eh),Ah}function Nh(e){xh().applyTheme(e)}const Th={mobile:{width:375,height:667,label:"Mobile (375px)"},tablet:{width:768,height:1024,label:"Tablet (768px)"},desktop:{width:1280,height:720,label:"Desktop (1280px)"},custom:{width:1280,height:720,label:"Custom"}},_h=({theme:a,showDetails:i=!0,showPalette:o=!0,showTypography:l=!0,showSpacing:c=!1,children:d,className:h,style:m})=>{const[p,g]=r(""),[f,b]=r(!1),[v,S]=r("desktop"),[y,E]=r(1280),[A,x]=r(720),[N,T]=r({}),_=u((()=>"custom"===v?{width:y,height:A}:Th[v]),[v,y,A]),C=u((()=>f?{...a,palette:{...a.palette,background:{default:"#121212",subtle:"#1e1e1e"},text:{primary:"#ffffff",secondary:"rgba(255, 255, 255, 0.8)",disabled:"rgba(255, 255, 255, 0.5)"}}}:a),[a,f]);s((()=>{const e=$u(C,{selector:":root",prefix:"atomix-preview"});g(e)}),[C]);const L=e=>{(e=>{T((t=>({...t,[e]:!t[e]})))})(e),setTimeout((()=>{T((t=>{const n={...t};return delete n[e],n}))}),200)};return t("div",{className:"atomix-theme-preview "+(h||""),style:m,children:[t("div",{className:"preview-controls",children:[t("div",{className:"control-group",children:[e("label",{children:"Viewport:"}),t("select",{value:v,onChange:e=>S(e.target.value),children:[e("option",{value:"mobile",children:"Mobile (375px)"}),e("option",{value:"tablet",children:"Tablet (768px)"}),e("option",{value:"desktop",children:"Desktop (1280px)"}),e("option",{value:"custom",children:"Custom"})]})]}),"custom"===v&&t(n,{children:[t("div",{className:"control-group",children:[e("label",{children:"Width:"}),e("input",{type:"number",value:y,onChange:e=>E(parseInt(e.target.value)||1280),min:"320",max:"3840"})]}),t("div",{className:"control-group",children:[e("label",{children:"Height:"}),e("input",{type:"number",value:A,onChange:e=>x(parseInt(e.target.value)||720),min:"240",max:"2160"})]})]}),e("div",{className:"control-group",children:t("label",{children:[e("input",{type:"checkbox",checked:f,onChange:e=>b(e.target.checked)}),"Dark Mode"]})})]}),t("div",{className:"viewport-wrapper",style:{width:_.width+"px",height:_.height+"px",maxWidth:"100%"},children:[e("style",{children:p}),i&&t("div",{className:"theme-details",children:[e("h2",{children:C.name}),C.description&&e("p",{children:C.description}),C.author&&t("p",{children:[e("strong",{children:"Author:"})," ",C.author]}),C.version&&t("p",{children:[e("strong",{children:"Version:"})," ",C.version]}),C.status&&t("p",{children:[e("strong",{children:"Status:"})," ",C.status]}),C.tags&&C.tags.length>0&&t("p",{children:[e("strong",{children:"Tags:"})," ",C.tags.join(", ")]})]}),o&&t("div",{className:"theme-palette",children:[e("h3",{children:"Color Palette"}),e("div",{className:"color-grid",children:["primary","secondary","error","warning","info","success"].map((n=>{const a=C.palette[n];return a&&"object"==typeof a&&"main"in a?t("div",{className:"color-item",children:[e("div",{className:"color-swatch",style:{backgroundColor:a.main}}),t("div",{className:"color-info",children:[e("strong",{children:n}),e("code",{children:a.main})]})]},n):null}))}),e("h4",{children:"Background"}),e("div",{className:"color-grid",children:Object.entries(C.palette.background).map((([n,a])=>t("div",{className:"color-item",children:[e("div",{className:"color-swatch",style:{backgroundColor:a}}),t("div",{className:"color-info",children:[e("strong",{children:n}),e("code",{children:a})]})]},n)))}),e("h4",{children:"Text"}),e("div",{className:"color-grid",children:Object.entries(C.palette.text).map((([n,a])=>t("div",{className:"color-item",children:[e("div",{className:"color-swatch",style:{backgroundColor:a}}),t("div",{className:"color-info",children:[e("strong",{children:n}),e("code",{children:a})]})]},n)))})]}),l&&t("div",{className:"theme-typography",children:[e("h3",{children:"Typography"}),t("div",{className:"typography-info",children:[t("p",{children:[e("strong",{children:"Font Family:"})," ",e("code",{children:C.typography.fontFamily})]}),t("p",{children:[e("strong",{children:"Base Font Size:"})," ",t("code",{children:[C.typography.fontSize,"px"]})]})]}),t("div",{className:"typography-samples",children:[e("h1",{style:{fontSize:C.typography.h1.fontSize,fontWeight:C.typography.h1.fontWeight,lineHeight:C.typography.h1.lineHeight},children:"Heading 1"}),e("h2",{style:{fontSize:C.typography.h2.fontSize,fontWeight:C.typography.h2.fontWeight,lineHeight:C.typography.h2.lineHeight},children:"Heading 2"}),e("h3",{style:{fontSize:C.typography.h3.fontSize,fontWeight:C.typography.h3.fontWeight,lineHeight:C.typography.h3.lineHeight},children:"Heading 3"}),e("p",{style:{fontSize:C.typography.body1.fontSize,fontWeight:C.typography.body1.fontWeight,lineHeight:C.typography.body1.lineHeight},children:"Body 1: Lorem ipsum dolor sit amet, consectetur adipiscing elit."}),e("p",{style:{fontSize:C.typography.body2.fontSize,fontWeight:C.typography.body2.fontWeight,lineHeight:C.typography.body2.lineHeight},children:"Body 2: Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua."})]})]}),c&&t("div",{className:"theme-spacing",children:[e("h3",{children:"Spacing"}),e("div",{className:"spacing-samples",children:[1,2,3,4,6,8,12].map((n=>t("div",{className:"spacing-item",children:[e("div",{className:"spacing-box",style:{width:C.spacing(n),height:C.spacing(n),backgroundColor:C.palette.primary.main}}),t("code",{children:[n," = ",C.spacing(n)]})]},n)))})]}),t("div",{className:"theme-components",children:[e("h3",{children:"Sample Components"}),t("div",{className:"component-group",children:[e("h4",{children:"Buttons"}),t("div",{className:"button-group",children:[e("button",{className:"interactive-button "+(N["btn-primary"]?"active":""),onClick:()=>L("btn-primary"),onMouseEnter:()=>T((e=>({...e,"btn-primary-hover":!0}))),onMouseLeave:()=>T((e=>{const t={...e};return delete t["btn-primary-hover"],t})),style:{backgroundColor:N["btn-primary-hover"]&&C.palette.primary.dark||C.palette.primary.main,color:C.palette.primary.contrastText,border:"none",padding:C.spacing(1,2),borderRadius:C.borderRadius.base,cursor:"pointer",transform:N["btn-primary"]?"scale(0.95)":"scale(1)",transition:"all 0.2s ease"},children:"Primary Button"}),e("button",{className:"interactive-button "+(N["btn-secondary"]?"active":""),onClick:()=>L("btn-secondary"),onMouseEnter:()=>T((e=>({...e,"btn-secondary-hover":!0}))),onMouseLeave:()=>T((e=>{const t={...e};return delete t["btn-secondary-hover"],t})),style:{backgroundColor:N["btn-secondary-hover"]&&C.palette.secondary.dark||C.palette.secondary.main,color:C.palette.secondary.contrastText,border:"none",padding:C.spacing(1,2),borderRadius:C.borderRadius.base,cursor:"pointer",transform:N["btn-secondary"]?"scale(0.95)":"scale(1)",transition:"all 0.2s ease"},children:"Secondary Button"}),e("button",{className:"interactive-button "+(N["btn-outline"]?"active":""),onClick:()=>L("btn-outline"),onMouseEnter:()=>T((e=>({...e,"btn-outline-hover":!0}))),onMouseLeave:()=>T((e=>{const t={...e};return delete t["btn-outline-hover"],t})),onFocus:()=>T((e=>({...e,"btn-outline-focus":!0}))),onBlur:()=>T((e=>{const t={...e};return delete t["btn-outline-focus"],t})),style:{backgroundColor:"transparent",color:C.palette.primary.main,border:"2px solid "+(N["btn-outline-focus"]&&C.palette.primary.dark||C.palette.primary.main),padding:C.spacing(1,2),borderRadius:C.borderRadius.base,cursor:"pointer",transform:N["btn-outline"]?"scale(0.95)":"scale(1)",transition:"all 0.2s ease",outline:N["btn-outline-focus"]?"2px solid "+C.palette.primary.main:"none",outlineOffset:"2px"},children:"Outline Button"})]})]}),t("div",{className:"component-group",children:[e("h4",{children:"Card"}),t("div",{className:"interactive-card",onMouseEnter:()=>T((e=>({...e,"card-hover":!0}))),onMouseLeave:()=>T((e=>{const t={...e};return delete t["card-hover"],t})),style:{backgroundColor:C.palette.background.subtle,border:"1px solid "+C.palette.text.disabled,borderRadius:C.borderRadius.lg,padding:C.spacing(3),boxShadow:N["card-hover"]?C.shadows.lg:C.shadows.md,maxWidth:"300px",transition:"all 0.2s ease",cursor:"pointer"},children:[e("h5",{style:{margin:0,marginBottom:C.spacing(1)},children:"Card Title"}),e("p",{style:{margin:0,color:C.palette.text.secondary,fontSize:C.typography.body2.fontSize},children:"This is a sample card component showing how the theme colors and spacing work together."})]})]})]}),d&&t("div",{className:"theme-custom",children:[e("h3",{children:"Custom Components"}),d]})]}),e("style",{children:`\n .atomix-theme-preview {\n padding: 24px;\n font-family: ${C.typography.fontFamily};\n color: ${C.palette.text.primary};\n background-color: ${C.palette.background.default};\n }\n\n .preview-controls {\n display: flex;\n gap: 16px;\n align-items: center;\n padding: 16px;\n background: ${C.palette.background.subtle};\n border-radius: ${C.borderRadius.md};\n margin-bottom: 24px;\n flex-wrap: wrap;\n }\n\n .control-group {\n display: flex;\n align-items: center;\n gap: 8px;\n }\n\n .control-group label {\n font-size: 14px;\n color: ${C.palette.text.secondary};\n }\n\n .control-group select,\n .control-group input[type="number"] {\n padding: 6px 12px;\n border: 1px solid ${C.palette.text.disabled};\n border-radius: ${C.borderRadius.base};\n font-size: 14px;\n background: ${C.palette.background.default};\n color: ${C.palette.text.primary};\n }\n\n .control-group input[type="checkbox"] {\n margin-right: 4px;\n }\n\n .viewport-wrapper {\n border: 2px solid ${C.palette.text.disabled};\n border-radius: ${C.borderRadius.lg};\n overflow: auto;\n background: ${C.palette.background.default};\n margin: 0 auto;\n box-shadow: ${C.shadows.lg};\n }\n\n .theme-details {\n margin-bottom: 32px;\n padding: 16px;\n background-color: ${C.palette.background.subtle};\n border-radius: ${C.borderRadius.lg};\n }\n\n .theme-palette,\n .theme-typography,\n .theme-spacing,\n .theme-components {\n margin-bottom: 32px;\n padding: 16px;\n }\n\n .color-grid {\n display: grid;\n grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));\n gap: 16px;\n margin-bottom: 16px;\n }\n\n .color-item {\n display: flex;\n align-items: center;\n gap: 8px;\n }\n\n .color-swatch {\n width: 40px;\n height: 40px;\n border-radius: ${C.borderRadius.base};\n border: 1px solid ${C.palette.text.disabled};\n }\n\n .color-info {\n display: flex;\n flex-direction: column;\n gap: 4px;\n }\n\n .color-info code {\n font-size: 12px;\n color: ${C.palette.text.secondary};\n }\n\n .typography-samples {\n margin-top: 16px;\n }\n\n .typography-samples > * {\n margin: 8px 0;\n }\n\n .spacing-samples {\n display: flex;\n gap: 16px;\n flex-wrap: wrap;\n margin-top: 16px;\n }\n\n .spacing-item {\n display: flex;\n flex-direction: column;\n align-items: center;\n gap: 8px;\n }\n\n .spacing-box {\n border: 1px solid ${C.palette.text.disabled};\n }\n\n .component-group {\n margin-bottom: 24px;\n }\n\n .button-group {\n display: flex;\n gap: 12px;\n flex-wrap: wrap;\n }\n\n .interactive-button {\n transition: all 0.2s ease;\n }\n\n .interactive-button:focus-visible {\n outline: 2px solid ${C.palette.primary.main};\n outline-offset: 2px;\n }\n\n .interactive-card {\n transition: all 0.2s ease;\n }\n\n h3 {\n color: ${C.palette.text.primary};\n border-bottom: 2px solid ${C.palette.primary.main};\n padding-bottom: 8px;\n }\n\n h4 {\n color: ${C.palette.text.primary};\n margin-top: 24px;\n margin-bottom: 12px;\n }\n `})]})};class Ch{validate(e,t){const n=[],a=[],r=[],i=this.validatePalette(e.palette,t);n.push(...i.errors),a.push(...i.warnings),r.push(...i.a11yIssues);const o=this.validateTypography(e.typography);n.push(...o.errors),a.push(...o.warnings);const s=this.validateSpacing(e.spacing);n.push(...s.errors),a.push(...s.warnings);const l=this.validateBreakpoints(e.breakpoints);n.push(...l.errors),a.push(...l.warnings);const c=this.validateTransitions(e.transitions);n.push(...c.errors),a.push(...c.warnings);const d=this.validateZIndex(e.zIndex);n.push(...d.errors),a.push(...d.warnings);const u=this.validateBorderRadius(e.borderRadius);n.push(...u.errors),a.push(...u.warnings);const h=this.validateCustom(e.custom);return n.push(...h.errors),a.push(...h.warnings),{valid:0===n.length,errors:n,warnings:a,a11yIssues:r}}validatePalette(e,t){const n=[],a=[],r=[],i=t?.a11y?.contrastTarget||4.5;if(e.primary){const t=this.checkContrast(e.primary.main,e.primary.contrastText||"#000000");if(i>t){const o={type:"contrast",severity:3>t?"error":"warning",message:`Primary color contrast ratio (${t.toFixed(2)}) is below target (${i})`,property:"palette.primary",value:e.primary.main};r.push(o),3>t?n.push(o.message):a.push(o.message)}}if(e.text&&e.background){const t=this.checkContrast(e.background.default,e.text.primary);if(i>t){const o={type:"contrast",severity:3>t?"error":"warning",message:`Text color contrast ratio (${t.toFixed(2)}) is below target (${i})`,property:"palette.text.primary",value:e.text.primary};r.push(o),3>t?n.push(o.message):a.push(o.message)}}const o=["primary","secondary","error","warning","info","success"];for(const s of o){const t=e[s];t&&(this.isValidColor(t.main)||n.push(`Invalid color value for ${s}.main: ${t.main}`))}return{valid:0===n.length,errors:n,warnings:a,a11yIssues:r}}validateTypography(e){const t=[],n=[];return e.fontFamily&&"string"==typeof e.fontFamily||t.push("Typography must have a fontFamily"),e.fontSize&&"number"==typeof e.fontSize&&e.fontSize>0||t.push("Typography must have a valid fontSize"),e.fontSize&&12>e.fontSize&&n.push("Font size is below recommended minimum (12px) for accessibility"),{valid:0===t.length,errors:t,warnings:n,a11yIssues:[]}}validateSpacing(e){const t=[];if("function"!=typeof e)t.push("Spacing must be a function");else try{"string"!=typeof e(1)&&t.push("Spacing function must return a string")}catch(n){t.push("Spacing function error: "+(n instanceof Error?n.message:n+""))}return{valid:0===t.length,errors:t,warnings:[],a11yIssues:[]}}validateBreakpoints(e){const t=[],n=[];if(e.values){const a=["xs","sm","md","lg","xl"];for(const n of a)"number"!=typeof e.values[n]&&t.push(`Breakpoint ${n} must be a number`);const r=[e.values.xs,e.values.sm,e.values.md,e.values.lg,e.values.xl].filter((e=>"number"==typeof e));for(let e=1;e<r.length;e++){const t=r[e],a=r[e-1];if(null!=t&&null!=a&&a>=t){n.push("Breakpoint values should be in ascending order");break}}}else t.push("Breakpoints must have values");return{valid:0===t.length,errors:t,warnings:n,a11yIssues:[]}}checkContrast(e,t){try{return Du(e,t)}catch{return 0}}isValidColor(e){return!!/^#([0-9A-Fa-f]{3}|[0-9A-Fa-f]{6})$/.test(e)||!!/^rgba?\(/.test(e)||!!/^hsla?\(/.test(e)}validateTransitions(e){const t=[],n=[],a=[];if(!e)return t.push("Transitions configuration is required"),{valid:!1,errors:t,warnings:n,a11yIssues:a};if(e.duration){const a=["shortest","shorter","short","standard","complex","enteringScreen","leavingScreen"];for(const r of a){const a=e.duration[r];void 0!==a&&("number"!=typeof a||0>a?t.push(`Transition duration ${r} must be a non-negative number`):a>1e4&&n.push(`Transition duration ${r} (${a}ms) exceeds recommended maximum (10000ms)`))}}if(e.easing){const a=["easeInOut","easeOut","easeIn","sharp"],r=/^(linear|ease|ease-in|ease-out|ease-in-out|cubic-bezier\([^)]+\)|steps\([^)]+\))$/i;for(const i of a){const a=e.easing[i];void 0!==a&&("string"!=typeof a?t.push(`Transition easing ${i} must be a string`):r.test(a)||n.push(`Transition easing ${i} may not be a valid CSS easing function: ${a}`))}}return{valid:0===t.length,errors:t,warnings:n,a11yIssues:a}}validateZIndex(e){const t=[],n=[],a=[];if(!e)return t.push("Z-index configuration is required"),{valid:!1,errors:t,warnings:n,a11yIssues:a};const r=Object.entries(e).filter((([,e])=>"number"==typeof e));for(const[i,o]of Object.entries(e))void 0!==o&&("number"!=typeof o?t.push(`Z-index ${i} must be a number, got ${typeof o}`):0>o?t.push(`Z-index ${i} must be non-negative, got ${o}`):o>1e4&&n.push(`Z-index ${i} (${o}) exceeds recommended maximum (10000)`));for(let i=0;i<r.length;i++)for(let e=i+1;e<r.length;e++){const t=r[i],a=r[e];if(!t||!a)continue;const[o,s]=t,[l,c]=a,d=Math.abs(s-c);10>d&&d>0&&n.push(`Z-index values ${o} (${s}) and ${l} (${c}) are very close, potential layering conflicts`)}return{valid:0===t.length,errors:t,warnings:n,a11yIssues:a}}validateBorderRadius(e){const t=[],n=[],a=[];if(!e)return t.push("Border radius configuration is required"),{valid:!1,errors:t,warnings:n,a11yIssues:a};const r=["base","sm","md","lg","xl","xxl","3xl","4xl","pill"];for(const i of r){const a=e[i];if(void 0!==a){let e;if("number"==typeof a)e=a;else{if("string"!=typeof a){t.push(`Border radius ${i} must be a number or string, got ${typeof a}`);continue}{const n=a.match(/^([\d.]+)(px|rem|em|%)?$/);if(!n){t.push(`Border radius ${i} has invalid format: ${a}`);continue}const[,r]=n;if(!r){t.push(`Border radius ${i} has invalid numeric value: ${a}`);continue}e=parseFloat(r)}}0>e?t.push(`Border radius ${i} must be non-negative, got ${e}`):e>1e3&&n.push(`Border radius ${i} (${a}) exceeds recommended maximum (1000px)`)}}return{valid:0===t.length,errors:t,warnings:n,a11yIssues:a}}validateCustom(e){const t=[],n=[],a=[];if(!e||"object"!=typeof e)return{valid:!0,errors:t,warnings:n,a11yIssues:a};const r=new WeakSet;let i=0;const o=(e,t="custom")=>{if(i>10)n.push(`Custom property path ${t} exceeds maximum depth (10), potential circular reference`);else if(null!==e&&"object"==typeof e)if(r.has(e))n.push("Circular reference detected in custom property path: "+t);else{r.add(e),i++;try{for(const[a,r]of Object.entries(e)){const e=`${t}.${a}`;/^[a-zA-Z_$][a-zA-Z0-9_$]*$/.test(a)||n.push(`Custom property name "${a}" in ${t} does not follow naming conventions (should be valid identifier)`),null===r||"object"!=typeof r||Array.isArray(r)||o(r,e)}}finally{i--,r.delete(e)}}};return o(e),{valid:0===t.length,errors:t,warnings:n,a11yIssues:a}}}const Lh=({theme:n,showValidation:a=!0,showCSSVariables:l=!0,showStructure:c=!0,className:d,style:h})=>{const[m,p]=r("overview"),[g,f]=r(new Set(["palette"])),[b,v]=r(""),[S,y]=r(""),[E,A]=r(null),x=i(void 0);s((()=>(x.current&&clearTimeout(x.current),x.current=setTimeout((()=>{y(b)}),300),()=>{x.current&&clearTimeout(x.current)})),[b]);const N=u((()=>{if(!a)return null;try{return(new Ch).validate(n)}catch(e){return{valid:!1,errors:["Failed to validate theme: "+(e instanceof Error?e.message:e+"")],warnings:[],a11yIssues:[]}}}),[n,a]),T=u((()=>{if(!l)return"";try{return $u(n,{selector:":root",prefix:"atomix"})}catch(e){return`/* Error generating CSS variables: ${e instanceof Error?e.message:e+""} */`}}),[n,l]),_=u((()=>{const e=[],t=(n,a="",r=0)=>{if(10>=r)if(null!=n)if("object"!=typeof n||Array.isArray(n)){const t=a.toLowerCase(),r=S.toLowerCase(),i=!S||Ra(t).call(t,r);e.push({path:a,value:n,matches:i})}else Object.entries(n).forEach((([n,i])=>{if("__isJSTheme"===n)return;const o=a?`${a}.${n}`:n,s=o.toLowerCase(),l=S.toLowerCase(),c=!S||Ra(s).call(s,l);if("object"!=typeof i||null===i||Array.isArray(i)){const t="string"==typeof i?i.toLowerCase():(i+"").toLowerCase(),n=!S||Ra(t).call(t,l);e.push({path:o,value:i,matches:c||n})}else e.push({path:o,value:null,matches:c}),t(i,o,r+1)}));else e.push({path:a,value:n,matches:!1})};return t(n),e}),[n,S]),C=o((async e=>{try{await navigator.clipboard.writeText(e),A(e),setTimeout((()=>A(null)),2e3)}catch(t){const n=document.createElement("textarea");n.value=e,n.style.position="fixed",n.style.opacity="0",document.body.appendChild(n),n.select();try{document.execCommand("copy"),A(e),setTimeout((()=>A(null)),2e3)}catch{}document.body.removeChild(n)}}),[]),L=(t,n)=>n?t.split(RegExp(`(${n})`,"gi")).map(((t,a)=>t.toLowerCase()===n.toLowerCase()?e("mark",{className:"search-highlight",children:t},a):t)):t,I=(n,a=0,r="")=>null==n?e("span",{className:"value-null",children:"null"}):"string"==typeof n?t("span",{className:"value-string",children:['"',L(n,S),'"']}):"number"==typeof n?e("span",{className:"value-number",children:n}):"boolean"==typeof n?e("span",{className:"value-boolean",children:n+""}):"function"==typeof n?e("span",{className:"value-function",children:"function"}):Array.isArray(n)?t("div",{className:"value-array",children:["[",n.map(((e,i)=>t("div",{className:"array-item",children:[I(e,a+1,`${r}[${i}]`),i<n.length-1&&","]},i))),"]"]}):"object"==typeof n?t("div",{className:"value-object",style:{marginLeft:16*a},children:["{",Object.entries(n).map((([n,i])=>{const o=r?`${r}.${n}`:n;return t("div",{className:"object-property",children:[t("span",{className:"property-key clickable",onClick:()=>C(o),title:"Click to copy: "+o,children:[L(n,S),":"]})," ",I(i,a+1,o),E===o&&e("span",{className:"copy-feedback",children:"✓ Copied!"})]},n)})),"}"]}):e("span",{children:n+""});return t("div",{className:"atomix-theme-inspector "+(d||""),style:h,children:[t("div",{className:"inspector-tabs",children:[e("button",{className:"tab "+("overview"===m?"active":""),onClick:()=>p("overview"),children:"Overview"}),a&&t("button",{className:"tab "+("validation"===m?"active":""),onClick:()=>p("validation"),children:["Validation",N&&!N.valid&&e("span",{className:"tab-badge error",children:N.errors.length})]}),l&&e("button",{className:"tab "+("css"===m?"active":""),onClick:()=>p("css"),children:"CSS Variables"}),c&&e("button",{className:"tab "+("structure"===m?"active":""),onClick:()=>p("structure"),children:"Structure"})]}),t("div",{className:"inspector-content",children:["overview"===m&&t("div",{className:"inspector-overview",children:[t("div",{className:"theme-metadata",children:[e("h3",{children:"Theme Information"}),e("table",{children:t("tbody",{children:[t("tr",{children:[e("td",{children:e("strong",{children:"Name:"})}),e("td",{children:n.name})]}),n.description&&t("tr",{children:[e("td",{children:e("strong",{children:"Description:"})}),e("td",{children:n.description})]}),n.author&&t("tr",{children:[e("td",{children:e("strong",{children:"Author:"})}),e("td",{children:n.author})]}),n.version&&t("tr",{children:[e("td",{children:e("strong",{children:"Version:"})}),e("td",{children:n.version})]}),n.status&&t("tr",{children:[e("td",{children:e("strong",{children:"Status:"})}),e("td",{children:e("span",{className:"status-badge status-"+n.status,children:n.status})})]}),t("tr",{children:[e("td",{children:e("strong",{children:"Dark Mode:"})}),e("td",{children:n.supportsDarkMode?"Yes":"No"})]}),n.tags&&n.tags.length>0&&t("tr",{children:[e("td",{children:e("strong",{children:"Tags:"})}),e("td",{children:n.tags.map((t=>e("span",{className:"tag",children:t},t)))})]})]})})]}),t("div",{className:"theme-stats",children:[e("h3",{children:"Statistics"}),t("div",{className:"stats-grid",children:[t("div",{className:"stat-item",children:[e("div",{className:"stat-value",children:Object.keys(n.palette).length}),e("div",{className:"stat-label",children:"Palette Colors"})]}),t("div",{className:"stat-item",children:[e("div",{className:"stat-value",children:Object.keys(n.typography).length}),e("div",{className:"stat-label",children:"Typography Variants"})]}),t("div",{className:"stat-item",children:[e("div",{className:"stat-value",children:Object.keys(n.shadows).length}),e("div",{className:"stat-label",children:"Shadow Variants"})]}),t("div",{className:"stat-item",children:[e("div",{className:"stat-value",children:Object.keys(n.custom).length}),e("div",{className:"stat-label",children:"Custom Properties"})]})]})]})]}),"validation"===m&&(N?t("div",{className:"inspector-validation",children:[e("div",{className:"validation-status "+(N.valid?"valid":"invalid"),children:N.valid?"✅ Theme is valid":"❌ Theme has issues"}),N.errors.length>0&&t("div",{className:"validation-section",children:[e("h3",{children:"Errors"}),e("ul",{className:"validation-list error-list",children:N.errors.map(((t,n)=>e("li",{children:t},n)))})]}),N.warnings.length>0&&t("div",{className:"validation-section",children:[e("h3",{children:"Warnings"}),e("ul",{className:"validation-list warning-list",children:N.warnings.map(((t,n)=>e("li",{children:t},n)))})]}),N.a11yIssues.length>0&&t("div",{className:"validation-section",children:[e("h3",{children:"Accessibility Issues"}),e("ul",{className:"validation-list a11y-list",children:N.a11yIssues.map(((n,a)=>t("li",{className:"a11y-"+n.severity,children:[t("strong",{children:[n.type,":"]})," ",n.message,n.property&&e("code",{children:n.property})]},a)))})]})]}):null),"css"===m&&t("div",{className:"inspector-css",children:[t("div",{className:"css-header",children:[e("h3",{children:"Generated CSS Variables"}),e("button",{onClick:()=>navigator.clipboard?.writeText(T),className:"copy-button",children:"Copy to Clipboard"})]}),e("pre",{className:"css-code",children:e("code",{children:T})})]}),"structure"===m&&(()=>{const a=S?_.filter((e=>e.matches)):_;return t("div",{className:"inspector-structure",children:[t("div",{className:"structure-header-controls",children:[e("h3",{children:"Theme Structure"}),t("div",{className:"search-controls",children:[e("input",{type:"text",placeholder:"Search properties...",value:b,onChange:e=>v(e.target.value),className:"search-input"}),b&&e("button",{className:"clear-search",onClick:()=>v(""),title:"Clear search",children:"×"}),S&&t("span",{className:"search-results-count",children:[a.length," result",1!==a.length?"s":""]})]})]}),S&&0===a.length&&t("div",{className:"no-results",children:['No properties found matching "',S,'"']}),e("div",{className:"structure-tree",children:Object.entries(n).map((([n,a])=>{if("__isJSTheme"===n)return null;const r=g.has(n),i="object"==typeof a&&null!==a&&!Array.isArray(a),o=!S||_.some((e=>e.path.startsWith(n)&&e.matches));return S&&!o?null:t("div",{className:"structure-node",children:[t("div",{className:"structure-header",onClick:()=>i&&(e=>{const t=new Set(g);t.has(e)?t.delete(e):t.add(e),f(t)})(n),children:[i&&e("span",{className:"expand-icon "+(r?"expanded":""),children:"▶"}),e("span",{className:"property-name clickable",onClick:e=>{e.stopPropagation(),C(n)},title:"Click to copy: "+n,children:L(n,S)}),E===n&&e("span",{className:"copy-feedback",children:"✓ Copied!"}),e("span",{className:"property-type",children:Array.isArray(a)?"array":typeof a})]}),i&&r&&e("div",{className:"structure-children",children:I(a,0,n)}),!i&&e("div",{className:"structure-value",children:I(a,0,n)})]},n)}))})]})})()]}),e("style",{children:"\n .atomix-theme-inspector {\n border: 1px solid #e0e0e0;\n border-radius: 8px;\n background: white;\n font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;\n }\n\n .inspector-tabs {\n display: flex;\n border-bottom: 1px solid #e0e0e0;\n background: #f5f5f5;\n border-radius: 8px 8px 0 0;\n }\n\n .tab {\n padding: 12px 16px;\n border: none;\n background: none;\n cursor: pointer;\n border-bottom: 2px solid transparent;\n position: relative;\n }\n\n .tab:hover {\n background: #e0e0e0;\n }\n\n .tab.active {\n background: white;\n border-bottom-color: #2196f3;\n }\n\n .tab-badge {\n position: absolute;\n top: 4px;\n right: 4px;\n background: #f44336;\n color: white;\n border-radius: 10px;\n padding: 2px 6px;\n font-size: 10px;\n min-width: 16px;\n text-align: center;\n }\n\n .inspector-content {\n padding: 16px;\n max-height: 600px;\n overflow-y: auto;\n }\n\n .theme-metadata table {\n width: 100%;\n border-collapse: collapse;\n }\n\n .theme-metadata td {\n padding: 8px;\n border-bottom: 1px solid #f0f0f0;\n vertical-align: top;\n }\n\n .status-badge {\n padding: 4px 8px;\n border-radius: 4px;\n font-size: 12px;\n text-transform: uppercase;\n }\n\n .status-stable { background: #e8f5e8; color: #2e7d32; }\n .status-beta { background: #fff3e0; color: #f57c00; }\n .status-experimental { background: #fce4ec; color: #c2185b; }\n .status-deprecated { background: #ffebee; color: #d32f2f; }\n\n .tag {\n display: inline-block;\n background: #e3f2fd;\n color: #1976d2;\n padding: 2px 6px;\n border-radius: 4px;\n font-size: 12px;\n margin-right: 4px;\n }\n\n .stats-grid {\n display: grid;\n grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));\n gap: 16px;\n margin-top: 16px;\n }\n\n .stat-item {\n text-align: center;\n padding: 16px;\n background: #f5f5f5;\n border-radius: 8px;\n }\n\n .stat-value {\n font-size: 24px;\n font-weight: bold;\n color: #2196f3;\n }\n\n .stat-label {\n font-size: 12px;\n color: #666;\n margin-top: 4px;\n }\n\n .validation-status {\n padding: 12px;\n border-radius: 8px;\n margin-bottom: 16px;\n font-weight: bold;\n }\n\n .validation-status.valid {\n background: #e8f5e8;\n color: #2e7d32;\n }\n\n .validation-status.invalid {\n background: #ffebee;\n color: #d32f2f;\n }\n\n .validation-list {\n margin: 0;\n padding-left: 20px;\n }\n\n .validation-list li {\n margin-bottom: 8px;\n }\n\n .error-list li { color: #d32f2f; }\n .warning-list li { color: #f57c00; }\n .a11y-list li { color: #7b1fa2; }\n\n .css-header {\n display: flex;\n justify-content: space-between;\n align-items: center;\n margin-bottom: 16px;\n }\n\n .copy-button {\n padding: 8px 16px;\n background: #2196f3;\n color: white;\n border: none;\n border-radius: 4px;\n cursor: pointer;\n }\n\n .copy-button:hover {\n background: #1976d2;\n }\n\n .css-code {\n background: #f5f5f5;\n padding: 16px;\n border-radius: 8px;\n overflow-x: auto;\n font-family: 'Monaco', 'Menlo', monospace;\n font-size: 12px;\n line-height: 1.4;\n }\n\n .structure-header-controls {\n display: flex;\n justify-content: space-between;\n align-items: center;\n margin-bottom: 16px;\n flex-wrap: wrap;\n gap: 12px;\n }\n\n .structure-header-controls h3 {\n margin: 0;\n }\n\n .search-controls {\n display: flex;\n align-items: center;\n gap: 8px;\n }\n\n .search-input {\n padding: 8px 12px;\n border: 1px solid #e0e0e0;\n border-radius: 4px;\n font-size: 14px;\n width: 250px;\n }\n\n .search-input:focus {\n outline: none;\n border-color: #2196f3;\n }\n\n .clear-search {\n background: #f44336;\n color: white;\n border: none;\n border-radius: 50%;\n width: 24px;\n height: 24px;\n cursor: pointer;\n font-size: 18px;\n line-height: 1;\n display: flex;\n align-items: center;\n justify-content: center;\n }\n\n .clear-search:hover {\n background: #d32f2f;\n }\n\n .search-results-count {\n font-size: 12px;\n color: #666;\n padding: 4px 8px;\n background: #f5f5f5;\n border-radius: 4px;\n }\n\n .no-results {\n padding: 24px;\n text-align: center;\n color: #666;\n font-style: italic;\n }\n\n .search-highlight {\n background: #fff59d;\n padding: 2px 4px;\n border-radius: 2px;\n }\n\n .structure-node {\n margin-bottom: 8px;\n }\n\n .structure-header {\n display: flex;\n align-items: center;\n gap: 8px;\n cursor: pointer;\n padding: 4px;\n border-radius: 4px;\n }\n\n .structure-header:hover {\n background: #f0f0f0;\n }\n\n .expand-icon {\n transition: transform 0.2s;\n font-size: 12px;\n }\n\n .expand-icon.expanded {\n transform: rotate(90deg);\n }\n\n .property-name {\n font-weight: bold;\n color: #1976d2;\n }\n\n .property-name.clickable {\n cursor: pointer;\n text-decoration: underline;\n text-decoration-style: dotted;\n }\n\n .property-name.clickable:hover {\n color: #0d47a1;\n }\n\n .copy-feedback {\n font-size: 12px;\n color: #4caf50;\n margin-left: 8px;\n font-weight: normal;\n }\n\n .property-type {\n font-size: 12px;\n color: #666;\n background: #f0f0f0;\n padding: 2px 6px;\n border-radius: 4px;\n }\n\n .structure-children,\n .structure-value {\n margin-left: 24px;\n margin-top: 8px;\n }\n\n .value-string { color: #388e3c; }\n .value-number { color: #1976d2; }\n .value-boolean { color: #7b1fa2; }\n .value-null { color: #666; font-style: italic; }\n .value-function { color: #f57c00; font-style: italic; }\n\n .value-object {\n font-family: monospace;\n font-size: 12px;\n }\n\n .object-property {\n margin-left: 16px;\n }\n\n .property-key {\n color: #1976d2;\n font-weight: bold;\n }\n\n .property-key.clickable {\n cursor: pointer;\n text-decoration: underline;\n text-decoration-style: dotted;\n }\n\n .property-key.clickable:hover {\n color: #0d47a1;\n }\n "})]})},Ih=({themeA:a,themeB:o,showOnlyDifferences:l=!1,className:c,style:d})=>{const[h,m]=r(""),[p,g]=r(""),[f,b]=r("all"),[v,S]=r("all"),y=i(void 0);s((()=>(y.current&&clearTimeout(y.current),y.current=setTimeout((()=>{g(h)}),300),()=>{y.current&&clearTimeout(y.current)})),[h]);const E=u((()=>{const e=[],t=e=>e.split(".")[0]||"other",n=(a,r,i="")=>{const o=new Set([...Object.keys(a||{}),...Object.keys(r||{})]);for(const s of o){if("__isJSTheme"===s)continue;const o=i?`${i}.${s}`:s,l=a?.[s],c=r?.[s];void 0===l&&void 0!==c?e.push({path:o,valueA:void 0,valueB:c,type:"added",category:t(o)}):void 0!==l&&void 0===c?e.push({path:o,valueA:l,valueB:void 0,type:"removed",category:t(o)}):"object"!=typeof l||"object"!=typeof c||Array.isArray(l)||Array.isArray(c)?JSON.stringify(l)!==JSON.stringify(c)&&e.push({path:o,valueA:l,valueB:c,type:"changed",category:t(o)}):n(l,c,o)}};return n(a,o),e}),[a,o]),A=u((()=>{let e=E;if("all"!==f&&(e=e.filter((e=>e.type===f))),"all"!==v&&(e=e.filter((e=>e.category===v))),p){const t=p.toLowerCase();e=e.filter((e=>{var n,a,r;return Ra(n=e.path.toLowerCase()).call(n,t)||Ra(a=(e.valueA+"").toLowerCase()).call(a,t)||Ra(r=(e.valueB+"").toLowerCase()).call(r,t)}))}return e}),[E,f,v,p]),x=u((()=>{const e=new Set(E.map((e=>e.category)).filter(Boolean));return Array.from(e).sort()}),[E]),N=e=>void 0===e?"undefined":null===e?"null":"string"==typeof e?`"${e}"`:"object"==typeof e?JSON.stringify(e,null,2):e+"",T=e=>{switch(e){case"added":return"#4caf50";case"removed":return"#f44336";case"changed":return"#ff9800";default:return"#666"}},_=e=>{switch(e){case"added":return"rgba(76, 175, 80, 0.1)";case"removed":return"rgba(244, 67, 54, 0.1)";case"changed":return"rgba(255, 152, 0, 0.1)";default:return"transparent"}},C=(t,n)=>n?t.split(RegExp(`(${n})`,"gi")).map(((t,a)=>t.toLowerCase()===n.toLowerCase()?e("mark",{className:"search-highlight",children:t},a):t)):t,L=u((()=>({total:E.length,added:E.filter((e=>"added"===e.type)).length,removed:E.filter((e=>"removed"===e.type)).length,changed:E.filter((e=>"changed"===e.type)).length,filtered:A.length})),[E,A]);return t("div",{className:"atomix-theme-comparator "+(c||""),style:d,children:[t("div",{className:"comparator-header",children:[t("div",{className:"theme-column",children:[e("h3",{children:a.name}),a.version&&t("span",{className:"version",children:["v",a.version]})]}),e("div",{className:"vs-divider",children:"VS"}),t("div",{className:"theme-column",children:[e("h3",{children:o.name}),o.version&&t("span",{className:"version",children:["v",o.version]})]})]}),t("div",{className:"filter-controls",children:[t("div",{className:"filter-group",children:[e("label",{children:"Search:"}),e("input",{type:"text",placeholder:"Search differences...",value:h,onChange:e=>m(e.target.value),className:"search-input"}),h&&e("button",{className:"clear-search",onClick:()=>m(""),title:"Clear search",children:"×"})]}),t("div",{className:"filter-group",children:[e("label",{children:"Type:"}),t("select",{value:f,onChange:e=>b(e.target.value),className:"filter-select",children:[e("option",{value:"all",children:"All Types"}),e("option",{value:"added",children:"Added"}),e("option",{value:"removed",children:"Removed"}),e("option",{value:"changed",children:"Changed"})]})]}),x.length>0&&t("div",{className:"filter-group",children:[e("label",{children:"Category:"}),t("select",{value:v,onChange:e=>S(e.target.value),className:"filter-select",children:[e("option",{value:"all",children:"All Categories"}),x.map((t=>e("option",{value:t,children:t},t)))]})]}),(h||"all"!==f||"all"!==v)&&e("button",{className:"clear-filters",onClick:()=>{m(""),b("all"),S("all")},children:"Clear Filters"})]}),t("div",{className:"comparator-stats",children:[t("div",{className:"stat",children:[e("span",{className:"stat-value",children:L.total}),e("span",{className:"stat-label",children:"Total Differences"})]}),t("div",{className:"stat stat-added",children:[e("span",{className:"stat-value",style:{color:"#4caf50"},children:L.added}),e("span",{className:"stat-label",children:"Added"})]}),t("div",{className:"stat stat-removed",children:[e("span",{className:"stat-value",style:{color:"#f44336"},children:L.removed}),e("span",{className:"stat-label",children:"Removed"})]}),t("div",{className:"stat stat-changed",children:[e("span",{className:"stat-value",style:{color:"#ff9800"},children:L.changed}),e("span",{className:"stat-label",children:"Changed"})]}),L.filtered!==L.total&&t("div",{className:"stat stat-filtered",children:[e("span",{className:"stat-value",style:{color:"#2196f3"},children:L.filtered}),e("span",{className:"stat-label",children:"Filtered"})]})]}),0===A.length?e("div",{className:"no-differences",children:0===E.length?e(n,{children:"✅ Themes are identical"}):e(n,{children:"No differences match your filters. Try adjusting your search or filters."})}):t("div",{className:"differences-list",children:[t("h4",{children:["Differences (",A.length,")"]}),A.map(((n,r)=>t("div",{className:"difference-item difference-"+n.type,style:{backgroundColor:_(n.type)},children:[t("div",{className:"difference-header",children:[e("span",{className:"difference-type",style:{backgroundColor:T(n.type)},children:n.type}),e("code",{className:"difference-path",children:C(n.path,p)}),n.category&&e("span",{className:"difference-category",children:n.category})]}),t("div",{className:"difference-values",children:[t("div",{className:"value-column value-"+("added"===n.type?"empty":"filled"),children:[e("div",{className:"value-label",children:a.name}),e("pre",{className:"value-content",children:"added"===n.type?e("span",{className:"value-empty",children:"—"}):C(N(n.valueA),p)})]}),e("div",{className:"value-divider",children:"→"}),t("div",{className:"value-column value-"+("removed"===n.type?"empty":"filled"),children:[e("div",{className:"value-label",children:o.name}),e("pre",{className:"value-content",children:"removed"===n.type?e("span",{className:"value-empty",children:"—"}):C(N(n.valueB),p)})]})]})]},r)))]}),e("style",{children:"\n .atomix-theme-comparator {\n border: 1px solid #e0e0e0;\n border-radius: 8px;\n background: white;\n font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;\n padding: 24px;\n }\n\n .comparator-header {\n display: grid;\n grid-template-columns: 1fr auto 1fr;\n gap: 24px;\n align-items: center;\n margin-bottom: 24px;\n padding-bottom: 24px;\n border-bottom: 2px solid #e0e0e0;\n }\n\n .theme-column {\n text-align: center;\n }\n\n .theme-column h3 {\n margin: 0;\n font-size: 20px;\n color: #333;\n }\n\n .version {\n display: inline-block;\n margin-top: 4px;\n padding: 2px 8px;\n background: #e3f2fd;\n color: #1976d2;\n border-radius: 4px;\n font-size: 12px;\n }\n\n .vs-divider {\n font-weight: bold;\n font-size: 24px;\n color: #666;\n }\n\n .filter-controls {\n display: flex;\n gap: 16px;\n align-items: center;\n margin-bottom: 24px;\n padding: 16px;\n background: #f5f5f5;\n border-radius: 8px;\n flex-wrap: wrap;\n }\n\n .filter-group {\n display: flex;\n align-items: center;\n gap: 8px;\n }\n\n .filter-group label {\n font-size: 14px;\n font-weight: 500;\n color: #666;\n }\n\n .search-input {\n padding: 8px 12px;\n border: 1px solid #e0e0e0;\n border-radius: 4px;\n font-size: 14px;\n width: 250px;\n }\n\n .search-input:focus {\n outline: none;\n border-color: #2196f3;\n }\n\n .clear-search {\n background: #f44336;\n color: white;\n border: none;\n border-radius: 50%;\n width: 24px;\n height: 24px;\n cursor: pointer;\n font-size: 18px;\n line-height: 1;\n display: flex;\n align-items: center;\n justify-content: center;\n }\n\n .clear-search:hover {\n background: #d32f2f;\n }\n\n .filter-select {\n padding: 8px 12px;\n border: 1px solid #e0e0e0;\n border-radius: 4px;\n font-size: 14px;\n background: white;\n cursor: pointer;\n }\n\n .clear-filters {\n padding: 8px 16px;\n background: #666;\n color: white;\n border: none;\n border-radius: 4px;\n cursor: pointer;\n font-size: 14px;\n }\n\n .clear-filters:hover {\n background: #555;\n }\n\n .search-highlight {\n background: #fff59d;\n padding: 2px 4px;\n border-radius: 2px;\n }\n\n .comparator-stats {\n display: grid;\n grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));\n gap: 16px;\n margin-bottom: 24px;\n }\n\n .stat {\n text-align: center;\n padding: 16px;\n background: #f5f5f5;\n border-radius: 8px;\n }\n\n .stat-added {\n border-left: 4px solid #4caf50;\n }\n\n .stat-removed {\n border-left: 4px solid #f44336;\n }\n\n .stat-changed {\n border-left: 4px solid #ff9800;\n }\n\n .stat-filtered {\n border-left: 4px solid #2196f3;\n }\n\n .stat-value {\n display: block;\n font-size: 32px;\n font-weight: bold;\n color: #2196f3;\n }\n\n .stat-label {\n display: block;\n font-size: 12px;\n color: #666;\n margin-top: 4px;\n }\n\n .no-differences {\n text-align: center;\n padding: 48px;\n font-size: 18px;\n color: #4caf50;\n background: #e8f5e9;\n border-radius: 8px;\n }\n\n .differences-list h4 {\n margin: 0 0 16px 0;\n font-size: 18px;\n color: #333;\n }\n\n .difference-item {\n margin-bottom: 16px;\n border: 2px solid;\n border-radius: 8px;\n overflow: hidden;\n transition: all 0.2s ease;\n }\n\n .difference-added {\n border-color: #4caf50;\n }\n\n .difference-removed {\n border-color: #f44336;\n }\n\n .difference-changed {\n border-color: #ff9800;\n }\n\n .difference-header {\n display: flex;\n align-items: center;\n gap: 12px;\n padding: 12px;\n background: rgba(0, 0, 0, 0.05);\n }\n\n .difference-type {\n padding: 4px 8px;\n border-radius: 4px;\n font-size: 11px;\n font-weight: bold;\n color: white;\n text-transform: uppercase;\n }\n\n .difference-path {\n font-family: 'Monaco', 'Menlo', monospace;\n font-size: 13px;\n color: #1976d2;\n flex: 1;\n }\n\n .difference-category {\n font-size: 11px;\n padding: 2px 6px;\n background: rgba(0, 0, 0, 0.1);\n border-radius: 4px;\n color: #666;\n text-transform: uppercase;\n }\n\n .difference-values {\n display: grid;\n grid-template-columns: 1fr auto 1fr;\n gap: 16px;\n padding: 16px;\n align-items: start;\n }\n\n .value-column {\n min-width: 0;\n }\n\n .value-column.value-empty {\n opacity: 0.5;\n }\n\n .value-label {\n font-size: 12px;\n font-weight: bold;\n color: #666;\n margin-bottom: 8px;\n }\n\n .value-content {\n margin: 0;\n padding: 12px;\n background: rgba(255, 255, 255, 0.7);\n border-radius: 4px;\n font-family: 'Monaco', 'Menlo', monospace;\n font-size: 12px;\n overflow-x: auto;\n white-space: pre-wrap;\n word-break: break-all;\n }\n\n .value-empty {\n color: #999;\n font-style: italic;\n }\n\n .value-divider {\n font-size: 20px;\n color: #666;\n align-self: center;\n }\n "})]})},wh={primary:{main:"#7c3aed",light:"#d0b2f5",dark:"#3c1583",contrastText:"#ffffff"},secondary:{main:"#f3f4f6",light:"#ffffff",dark:"#e5e7eb",contrastText:"#1f2937"},error:{main:"#ef4444",light:"#fca5a5",dark:"#991b1b",contrastText:"#ffffff"},warning:{main:"#eab308",light:"#fde047",dark:"#854d0e",contrastText:"#000000"},info:{main:"#3b82f6",light:"#93c5fd",dark:"#1e40af",contrastText:"#ffffff"},success:{main:"#22c55e",light:"#86efac",dark:"#166534",contrastText:"#ffffff"},background:{default:"#ffffff",paper:"#f3f4f6",subtle:"#d1d5db"},text:{primary:"#111827",secondary:"#374151",disabled:"#9ca3af"}},Oh={fontFamily:'"Roboto", "Helvetica Neue", "Helvetica", "Arial", sans-serif',fontSize:16,fontWeightLight:300,fontWeightRegular:400,fontWeightMedium:500,fontWeightSemiBold:600,fontWeightBold:700,fontWeightHeavy:800,fontWeightBlack:900,h1:{fontSize:"2.5rem",fontWeight:700,lineHeight:1.3,letterSpacing:"-1px"},h2:{fontSize:"2rem",fontWeight:700,lineHeight:1.3,letterSpacing:"-1px"},h3:{fontSize:"1.5rem",fontWeight:700,lineHeight:1.3,letterSpacing:"-1px"},h4:{fontSize:"1.25rem",fontWeight:700,lineHeight:1.3,letterSpacing:"-0.5px"},h5:{fontSize:"1.125rem",fontWeight:700,lineHeight:1.3,letterSpacing:"-0.5px"},h6:{fontSize:"1rem",fontWeight:700,lineHeight:1.3,letterSpacing:"-0.5px"},body1:{fontSize:"1rem",fontWeight:400,lineHeight:1.2},body2:{fontSize:"0.875rem",fontWeight:400,lineHeight:1.2}},Rh={xs:"0px 1px 2px 0px rgba(45, 54, 67, 0.04), 0px 2px 4px 0px rgba(45, 54, 67, 0.08)",sm:"0 2px 4px rgba(0, 0, 0, 0.075)",md:"0 4px 8px rgba(0, 0, 0, 0.1)",lg:"0 16px 48px rgba(0, 0, 0, 0.175)",xl:"0px 16px 64px -8px rgba(45, 54, 67, 0.14)",inset:"inset 0 1px 2px rgba(0, 0, 0, 0.075)"},kh={duration:{shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195},easing:{easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"}},Mh={mobileStepper:1e3,speedDial:1050,appBar:1020,drawer:1070,modal:1040,snackbar:1080,tooltip:1060},Dh={base:"0.5rem",sm:"0.25rem",md:"0.25rem",lg:"0.625rem",xl:"0.75rem",xxl:"1rem","3xl":"1.5rem","4xl":"2rem",pill:"50rem"};function Ph(e){return"string"==typeof e?{main:e,light:zu(e,.15),dark:Uu(e,.15),contrastText:Bu(e)}:{main:e.main||"#000000",light:e.light||zu(e.main||"#000000",.15),dark:e.dark||Uu(e.main||"#000000",.15),contrastText:e.contrastText||Bu(e.main||"#000000")}}function Bh(...e){const t=Do(e).call(e,((e,t)=>$d(e,t||{})),{}),n={primary:Ph(t.palette?.primary||wh.primary),secondary:Ph(t.palette?.secondary||wh.secondary),error:Ph(t.palette?.error||wh.error),warning:Ph(t.palette?.warning||wh.warning),info:Ph(t.palette?.info||wh.info),success:Ph(t.palette?.success||wh.success),...t.palette?.light&&{light:Ph(t.palette.light)},...t.palette?.dark&&{dark:Ph(t.palette.dark)},background:{default:t.palette?.background?.default||wh.background.default,paper:t.palette?.background?.paper||wh.background.paper,subtle:t.palette?.background?.subtle||wh.background.subtle},text:{primary:t.palette?.text?.primary||wh.text.primary,secondary:t.palette?.text?.secondary||wh.text.secondary,disabled:t.palette?.text?.disabled||wh.text.disabled},...t.palette},a=$d({...Oh},t.typography||{}),r=Vu(t.spacing),i=function(e){const t={xs:0,sm:576,md:768,lg:992,xl:1200,xxl:1440,...e?.values},n=e?.unit||"px";return{values:t,unit:n,up:e=>`@media (min-width:${"number"==typeof e?e:t[e]??0}${n})`,down:e=>`@media (max-width:${("number"==typeof e?e:t[e]??0)-.05}${n})`,between:(e,a)=>{const r="number"==typeof e?e:t[e]??0,i="number"==typeof a?a:t[a]??0;return`@media (min-width:${r}${n}) and (max-width:${i-.05}${n})`}}}(t.breakpoints),o=$d({...Rh},t.shadows||{}),s=$d({...kh},t.transitions||{}),l=$d({...Mh},t.zIndex||{}),c=$d({...Dh},t.borderRadius||{});return{name:t.name||"Custom Theme",class:t.class,description:t.description,author:t.author,version:t.version||"1.0.0",tags:t.tags,supportsDarkMode:t.supportsDarkMode,status:t.status||"experimental",a11y:t.a11y,color:t.color||n.primary.main,features:t.features,dependencies:t.dependencies,palette:n,typography:a,spacing:r,breakpoints:i,shadows:o,transitions:s,zIndex:l,borderRadius:c,custom:t.custom||{},__isJSTheme:!0}}function zh(e={}){const{maxHistorySize:t=50,initialState:n}=e,[a,l]=r(n),c=i([n]),d=i(0),[u,h]=r(!1),[m,p]=r(!1),g=o((()=>{h(d.current>0),p(d.current<c.current.length-1)}),[]),f=o((e=>{d.current<c.current.length-1&&(c.current=c.current.slice(0,d.current+1)),c.current.push(e),d.current=c.current.length-1,c.current.length>t&&(c.current.shift(),d.current--),l(e),g()}),[t,g]),b=o((()=>{if(d.current>0){d.current--;const e=c.current[d.current];l(e),g()}}),[g]),v=o((()=>{if(d.current<c.current.length-1){d.current++;const e=c.current[d.current];l(e),g()}}),[g]),S=o((()=>{const e=c.current[d.current];c.current=[e],d.current=0,g()}),[g]),y=o((()=>({currentIndex:d.current,totalEntries:c.current.length})),[]);return s((()=>{g()}),[g]),{state:a,setState:f,undo:b,redo:v,canUndo:u,canRedo:m,clearHistory:S,getHistoryStats:y}}function Uh(e,t){if(e=e.trim(),"hex"===t&&e.startsWith("#"))return e;if("rgb"===t&&e.startsWith("rgb("))return e;if("rgba"===t&&e.startsWith("rgba("))return e;if("hsl"===t&&e.startsWith("hsl("))return e;if("hsla"===t&&e.startsWith("hsla("))return e;const n=document.createElement("div");n.style.color=e,document.body.appendChild(n);const a=window.getComputedStyle(n).color;document.body.removeChild(n);const r=a.match(/\d+/g);if(!r||3>r.length)return e;const i=parseInt(r[0],10),o=parseInt(r[1]||"0",10),s=parseInt(r[2]||"0",10),l=r[3]?parseFloat(r[3]):1;switch(t){case"hex":return"#"+[i,o,s].map((e=>e.toString(16).padStart(2,"0"))).join("");case"rgb":return`rgb(${i}, ${o}, ${s})`;case"rgba":return`rgba(${i}, ${o}, ${s}, ${l})`;case"hsl":case"hsla":{const e=function(e,t,n){const a=Math.max(e/=255,t/=255,n/=255),r=Math.min(e,t,n);let i=0,o=0;const s=(a+r)/2;if(a!==r){const l=a-r;switch(o=s>.5?l/(2-a-r):l/(a+r),a){case e:i=((t-n)/l+(n>t?6:0))/6;break;case t:i=((n-e)/l+2)/6;break;case n:i=((e-t)/l+4)/6}}return{h:Math.round(360*i),s:Math.round(100*o),l:Math.round(100*s)}}(i,o,s);return"hsl"===t?`hsl(${e.h}, ${e.s}%, ${e.l}%)`:`hsla(${e.h}, ${e.s}%, ${e.l}%, ${l})`}default:return e}}const Fh=({initialTheme:n,onChange:a,className:l,style:c})=>{const{state:d,setState:u,undo:h,redo:m,canUndo:p,canRedo:g}=zh({initialState:n,maxHistorySize:50}),[f,b]=r(JSON.stringify(n,null,2)),[v,S]=r(null),[y,E]=r("visual"),[A,x]=r("hex"),[N,T]=r(50),[_,C]=r(!1),L=i(null),I=i(null);s((()=>{const e=localStorage.getItem("atomix-editor-layout");if(e){const t=parseFloat(e);!isNaN(t)&&t>0&&100>t&&T(t)}}),[]),s((()=>{localStorage.setItem("atomix-editor-layout",N.toString())}),[N]);const w=o(((e,t=!0)=>{t?u(e):b(JSON.stringify(e,null,2)),a?.(e),S(null)}),[a,u]);s((()=>{b(JSON.stringify(d,null,2))}),[d]);const O=o((e=>{b(e);try{const t=Bh(JSON.parse(e));w(t,!1)}catch(t){S(t instanceof Error?t.message:"Invalid JSON")}}),[w]),R=i(void 0);s((()=>{if(!v){try{const e=Bh(JSON.parse(f));R.current&&clearTimeout(R.current),R.current=setTimeout((()=>{u(e)}),1e3)}catch{}return()=>{R.current&&clearTimeout(R.current)}}}),[f,v,u]);const k=o(((e,t)=>{const n={...d},a=e.split(".");let r=n;for(let o=0;o<a.length-1;o++){const e=a[o];e&&!r[e]&&(r[e]={}),e&&(r=r[e])}const i=a[a.length-1];i&&(r[i]=t),w(Bh(n))}),[d,w]),M=o((()=>{const e=JSON.stringify(d,null,2),t="data:application/json;charset=utf-8,"+encodeURIComponent(e),n=d.name.toLowerCase().replace(/\s+/g,"-")+"-theme.json",a=document.createElement("a");a.setAttribute("href",t),a.setAttribute("download",n),a.click()}),[d]),D=o((()=>{navigator.clipboard?.writeText(f)}),[f]);s((()=>{const e=e=>{const t=0>navigator.platform.toUpperCase().indexOf("MAC")?e.ctrlKey:e.metaKey;t&&"z"===e.key&&!e.shiftKey?(e.preventDefault(),p&&h()):t&&("y"===e.key||"z"===e.key&&e.shiftKey)?(e.preventDefault(),g&&m()):t&&"s"===e.key?(e.preventDefault(),M()):t&&"/"===e.key?(e.preventDefault(),E((e=>"visual"===e?"json":"visual"))):"Escape"===e.key&&S(null)};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)}),[p,g,h,m,M]);const P=o((e=>{e.preventDefault(),C(!0)}),[]);s((()=>{if(!_)return;const e=e=>{if(!L.current||!I.current)return;const t=L.current.parentElement;if(!t)return;const n=t.getBoundingClientRect(),a=(e.clientX-n.left)/n.width*100;T(Math.max(20,Math.min(80,a)))},t=()=>{C(!1)};return window.addEventListener("mousemove",e),window.addEventListener("mouseup",t),()=>{window.removeEventListener("mousemove",e),window.removeEventListener("mouseup",t)}}),[_]);const B=o((e=>Uh(e,A)),[A]);return t("div",{className:"atomix-theme-live-editor "+(l||""),style:c,children:[t("div",{className:"editor-header",children:[e("h2",{children:"Live Theme Editor"}),t("div",{className:"editor-controls",children:[t("div",{className:"history-controls",children:[e("button",{className:"history-button",onClick:h,disabled:!p,title:"Undo (Ctrl+Z)",children:"↶ Undo"}),e("button",{className:"history-button",onClick:m,disabled:!g,title:"Redo (Ctrl+Shift+Z)",children:"↷ Redo"})]}),t("div",{className:"mode-controls",children:[e("button",{className:"mode-button "+("visual"===y?"active":""),onClick:()=>E("visual"),title:"Visual Editor (Ctrl+/)",children:"Visual"}),e("button",{className:"mode-button "+("json"===y?"active":""),onClick:()=>E("json"),title:"JSON Editor (Ctrl+/)",children:"JSON"})]}),t("div",{className:"action-controls",children:[e("button",{className:"export-button",onClick:M,title:"Export (Ctrl+S)",children:"Export"}),e("button",{className:"copy-button",onClick:D,title:"Copy JSON",children:"Copy JSON"})]})]})]}),t("div",{className:"editor-content",ref:L,children:[e("div",{className:"editor-panel",style:{width:N+"%"},children:t("div","visual"===y?{className:"visual-editor",children:[t("div",{className:"editor-section",children:[e("h3",{children:"Colors"}),t("div",{className:"color-format-selector",children:[e("label",{children:"Color Format:"}),t("select",{value:A,onChange:e=>x(e.target.value),children:[e("option",{value:"hex",children:"HEX"}),e("option",{value:"rgb",children:"RGB"}),e("option",{value:"rgba",children:"RGBA"}),e("option",{value:"hsl",children:"HSL"}),e("option",{value:"hsla",children:"HSLA"})]})]}),t("div",{className:"editor-field",children:[e("label",{children:"Primary Color"}),t("div",{className:"color-input-group",children:[e("input",{type:"color",value:d.palette.primary.main,onChange:e=>k("palette.primary.main",e.target.value)}),e("input",{type:"text",value:B(d.palette.primary.main),onChange:e=>{const t=Uh(e.target.value,"hex");k("palette.primary.main",t)},placeholder:"#7AFFD7"})]})]}),t("div",{className:"editor-field",children:[e("label",{children:"Secondary Color"}),t("div",{className:"color-input-group",children:[e("input",{type:"color",value:d.palette.secondary.main,onChange:e=>k("palette.secondary.main",e.target.value)}),e("input",{type:"text",value:B(d.palette.secondary.main),onChange:e=>{const t=Uh(e.target.value,"hex");k("palette.secondary.main",t)},placeholder:"#FF5733"})]})]}),e("h3",{children:"Background"}),t("div",{className:"editor-field",children:[e("label",{children:"Default Background"}),t("div",{className:"color-input-group",children:[e("input",{type:"color",value:d.palette.background.default,onChange:e=>k("palette.background.default",e.target.value)}),e("input",{type:"text",value:B(d.palette.background.default),onChange:e=>{const t=Uh(e.target.value,"hex");k("palette.background.default",t)}})]})]})]}),t("div",{className:"editor-section",children:[e("h3",{children:"Typography"}),t("div",{className:"editor-field",children:[e("label",{children:"Font Family"}),e("input",{type:"text",value:d.typography.fontFamily,onChange:e=>k("typography.fontFamily",e.target.value),placeholder:"Inter, sans-serif"})]}),t("div",{className:"editor-field",children:[e("label",{children:"Base Font Size (px)"}),e("input",{type:"number",value:d.typography.fontSize,onChange:e=>k("typography.fontSize",parseInt(e.target.value)),min:"10",max:"24"})]})]})]}:{className:"json-editor",children:[e("textarea",{value:f,onChange:e=>O(e.target.value),spellCheck:!1}),v&&t("div",{className:"error-message",children:["❌ ",v,e("button",{className:"error-dismiss",onClick:()=>S(null),children:"×"})]})]})}),e("div",{className:"resizer "+(_?"resizing":""),onMouseDown:P}),t("div",{className:"preview-panel",ref:I,style:{width:100-N+"%"},children:[e("h3",{children:"Live Preview"}),e(_h,{theme:d,showDetails:!1,showPalette:!0,showTypography:!0})]})]}),e("style",{children:"\n .atomix-theme-live-editor {\n border: 1px solid #e0e0e0;\n border-radius: 8px;\n background: white;\n font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;\n }\n\n .editor-header {\n display: flex;\n justify-content: space-between;\n align-items: center;\n padding: 16px 24px;\n border-bottom: 1px solid #e0e0e0;\n background: #f5f5f5;\n border-radius: 8px 8px 0 0;\n }\n\n .editor-header h2 {\n margin: 0;\n font-size: 20px;\n color: #333;\n }\n\n .editor-controls {\n display: flex;\n gap: 12px;\n align-items: center;\n }\n\n .history-controls,\n .mode-controls,\n .action-controls {\n display: flex;\n gap: 8px;\n }\n\n .history-button,\n .mode-button,\n .export-button,\n .copy-button {\n padding: 8px 16px;\n border: 1px solid #e0e0e0;\n background: white;\n border-radius: 4px;\n cursor: pointer;\n font-size: 14px;\n transition: all 0.2s;\n }\n\n .history-button:hover:not(:disabled),\n .mode-button:hover,\n .export-button:hover,\n .copy-button:hover {\n background: #f5f5f5;\n }\n\n .history-button:disabled {\n opacity: 0.5;\n cursor: not-allowed;\n }\n\n .mode-button.active {\n background: #2196f3;\n color: white;\n border-color: #2196f3;\n }\n\n .export-button {\n background: #4caf50;\n color: white;\n border-color: #4caf50;\n }\n\n .copy-button {\n background: #ff9800;\n color: white;\n border-color: #ff9800;\n }\n\n .editor-content {\n display: flex;\n position: relative;\n min-height: 600px;\n }\n\n .editor-panel,\n .preview-panel {\n overflow-y: auto;\n padding: 24px;\n }\n\n .resizer {\n width: 4px;\n background: #e0e0e0;\n cursor: col-resize;\n position: relative;\n flex-shrink: 0;\n transition: background 0.2s;\n }\n\n .resizer:hover,\n .resizer.resizing {\n background: #2196f3;\n }\n\n .resizer::before {\n content: '';\n position: absolute;\n left: -2px;\n right: -2px;\n top: 0;\n bottom: 0;\n }\n\n .editor-panel h3,\n .preview-panel h3 {\n margin: 0 0 16px 0;\n font-size: 16px;\n color: #333;\n border-bottom: 2px solid #2196f3;\n padding-bottom: 8px;\n }\n\n .visual-editor {\n display: flex;\n flex-direction: column;\n gap: 24px;\n }\n\n .editor-section {\n display: flex;\n flex-direction: column;\n gap: 16px;\n }\n\n .color-format-selector {\n display: flex;\n align-items: center;\n gap: 8px;\n margin-bottom: 8px;\n }\n\n .color-format-selector label {\n font-size: 14px;\n font-weight: 500;\n color: #666;\n }\n\n .color-format-selector select {\n padding: 6px 12px;\n border: 1px solid #e0e0e0;\n border-radius: 4px;\n font-size: 14px;\n background: white;\n cursor: pointer;\n }\n\n .editor-field {\n display: flex;\n flex-direction: column;\n gap: 8px;\n }\n\n .editor-field label {\n font-size: 14px;\n font-weight: 500;\n color: #666;\n }\n\n .color-input-group {\n display: flex;\n gap: 8px;\n align-items: center;\n }\n\n .color-input-group input[type=\"color\"] {\n width: 50px;\n height: 40px;\n border: 1px solid #e0e0e0;\n border-radius: 4px;\n cursor: pointer;\n }\n\n .color-input-group input[type=\"text\"],\n .editor-field input[type=\"text\"],\n .editor-field input[type=\"number\"] {\n flex: 1;\n padding: 8px 12px;\n border: 1px solid #e0e0e0;\n border-radius: 4px;\n font-size: 14px;\n font-family: 'Monaco', 'Menlo', monospace;\n }\n\n .json-editor {\n height: 100%;\n display: flex;\n flex-direction: column;\n }\n\n .json-editor textarea {\n flex: 1;\n padding: 16px;\n border: 1px solid #e0e0e0;\n border-radius: 4px;\n font-family: 'Monaco', 'Menlo', monospace;\n font-size: 12px;\n line-height: 1.5;\n resize: none;\n }\n\n .error-message {\n padding: 12px;\n background: #ffebee;\n color: #d32f2f;\n border-radius: 4px;\n margin-top: 8px;\n font-size: 14px;\n display: flex;\n justify-content: space-between;\n align-items: center;\n }\n\n .error-dismiss {\n background: none;\n border: none;\n color: #d32f2f;\n font-size: 20px;\n cursor: pointer;\n padding: 0;\n width: 24px;\n height: 24px;\n display: flex;\n align-items: center;\n justify-content: center;\n }\n\n .error-dismiss:hover {\n background: rgba(211, 47, 47, 0.1);\n border-radius: 50%;\n }\n\n .preview-panel {\n border-left: 1px solid #e0e0e0;\n }\n "})]})},Gh=({initialTokens:n={},onTokensChange:a,className:i,style:l})=>{const[c,d]=r((()=>wd(n))),[h,m]=r("hex"),[p,g]=r("colors"),[f,b]=r("");s((()=>{const e=Vd(c,{selector:":root",prefix:"atomix-preview"});b(e),a?.(c)}),[c,a]);const v=u((()=>Bh({palette:{primary:{main:c.primary},secondary:{main:c.secondary},error:{main:c.error},warning:{main:c.warning},info:{main:c.info},success:{main:c.success},background:{default:"#ffffff",subtle:c["secondary-bg-subtle"]||"#f3f4f6"},text:{primary:c["primary-text-emphasis"]||"#111827",secondary:c["secondary-text-emphasis"]||"#374151",disabled:c["disabled-text-emphasis"]||"#9ca3af"}},typography:{fontFamily:c["body-font-family"]||'"Roboto", sans-serif',fontSize:parseInt(c["body-font-size"]||"16")},spacing:e=>.25*e+"rem"})),[c]),S=o(((e,t)=>{d((n=>({...n,[e]:t})))}),[]),y=o(((e,t)=>{const n=document.createElement("div");n.style.color=e,document.body.appendChild(n);const a=window.getComputedStyle(n).color;document.body.removeChild(n);const r=a.match(/\d+/g);if(!r||3>r.length)return e;const i=parseInt(r[0]||"0",10),o=parseInt(r[1]||"0",10),s=parseInt(r[2]||"0",10),l=r[3]?parseFloat(r[3]):1;switch(t){case"hex":return"#"+[i,o,s].map((e=>e.toString(16).padStart(2,"0"))).join("");case"rgb":return`rgb(${i}, ${o}, ${s})`;case"rgba":return`rgba(${i}, ${o}, ${s}, ${l})`;case"hsl":case"hsla":{const e=function(e,t,n){const a=Math.max(e/=255,t/=255,n/=255),r=Math.min(e,t,n);let i=0,o=0;const s=(a+r)/2;if(a!==r){const l=a-r;switch(o=s>.5?l/(2-a-r):l/(a+r),a){case e:i=((t-n)/l+(n>t?6:0))/6;break;case t:i=((n-e)/l+2)/6;break;case n:i=((e-t)/l+4)/6}}return{h:Math.round(360*i),s:Math.round(100*o),l:Math.round(100*s)}}(i,o,s);return"hsl"===t?`hsl(${e.h}, ${e.s}%, ${e.l}%)`:`hsla(${e.h}, ${e.s}%, ${e.l}%, ${l})`}default:return e}}),[]),E=o((()=>{const e=JSON.stringify(c,null,2),t="data:application/json;charset=utf-8,"+encodeURIComponent(e),n=document.createElement("a");n.setAttribute("href",t),n.setAttribute("download","design-tokens.json"),n.click()}),[c]),A=o((()=>{const e=Vd(c),t="data:text/css;charset=utf-8,"+encodeURIComponent(e),n=document.createElement("a");n.setAttribute("href",t),n.setAttribute("download","theme.css"),n.click()}),[c]),x=o((()=>{navigator.clipboard?.writeText(JSON.stringify(c,null,2))}),[c]),N=o((()=>{d(Id)}),[]),T=o((e=>{const t=e.target.files?.[0];if(!t)return;const n=new FileReader;n.onload=e=>{try{const t=e.target?.result,n=wd(JSON.parse(t));d(n)}catch(t){alert("Invalid JSON file. Please select a valid design tokens JSON file.")}},n.readAsText(t)}),[]),_={colors:{label:"Colors",tokens:["primary","secondary","success","info","warning","error","light","dark","primary-rgb","secondary-rgb","success-rgb","info-rgb","warning-rgb","error-rgb","light-rgb","dark-rgb","gray-1","gray-2","gray-3","gray-4","gray-5","gray-6","gray-7","gray-8","gray-9","gray-10","primary-1","primary-2","primary-3","primary-4","primary-5","primary-6","primary-7","primary-8","primary-9","primary-10","primary-text-emphasis","secondary-text-emphasis","tertiary-text-emphasis","disabled-text-emphasis","invert-text-emphasis","brand-text-emphasis","error-text-emphasis","success-text-emphasis","warning-text-emphasis","info-text-emphasis","light-text-emphasis","dark-text-emphasis","primary-bg-subtle","secondary-bg-subtle","tertiary-bg-subtle","invert-bg-subtle","brand-bg-subtle","error-bg-subtle","success-bg-subtle","warning-bg-subtle","info-bg-subtle","light-bg-subtle","dark-bg-subtle","primary-border-subtle","secondary-border-subtle","success-border-subtle","error-border-subtle","warning-border-subtle","info-border-subtle","brand-border-subtle","light-border-subtle","dark-border-subtle","primary-hover","secondary-hover","light-hover","dark-hover","error-hover","success-hover","warning-hover","info-hover","primary-gradient","secondary-gradient","light-gradient","dark-gradient","success-gradient","info-gradient","warning-gradient","error-gradient","gradient"]},typography:{label:"Typography",tokens:["font-sans-serif","font-monospace","body-font-family","body-font-size","body-font-weight","body-line-height","body-color","body-bg","heading-color","font-size-xl","font-size-2xl","display-1","font-weight-light","font-weight-normal","font-weight-medium","font-weight-semibold","font-weight-bold","font-weight-heavy","font-weight-black","line-height-base","line-height-sm","line-height-lg","letter-spacing-h1","letter-spacing-h2","letter-spacing-h3","letter-spacing-h4","letter-spacing-h5","letter-spacing-h6","link-color","link-color-rgb","link-decoration","link-hover-color","link-hover-color-rgb","highlight-bg","code-color"]},spacing:{label:"Spacing",tokens:["spacing-0","spacing-1","spacing-px-6","spacing-2","spacing-px-10","spacing-3","spacing-px-14","spacing-4","spacing-5","spacing-px-22","spacing-6","spacing-7","spacing-px-30","spacing-8","spacing-9","spacing-10","spacing-11","spacing-12","spacing-14","spacing-16","spacing-20","spacing-24","spacing-28","spacing-32","spacing-36","spacing-40","spacing-44","spacing-48","spacing-52","spacing-56","spacing-60","spacing-64","spacing-72","spacing-80","spacing-90","spacing-200"]},shadows:{label:"Shadows",tokens:["box-shadow","box-shadow-xs","box-shadow-sm","box-shadow-lg","box-shadow-xl","box-shadow-inset"]},borders:{label:"Borders",tokens:["border-width","border-style","border-color","border-color-translucent","border-radius","border-radius-sm","border-radius-lg","border-radius-xl","border-radius-xxl","border-radius-2xl","border-radius-3xl","border-radius-4xl","border-radius-pill","focus-border-color","focus-ring-width","focus-ring-offset","focus-ring-opacity","form-valid-color","form-valid-border-color","form-invalid-color","form-invalid-border-color"]},transitions:{label:"Transitions",tokens:["transition-duration-fast","transition-duration-base","transition-duration-slow","transition-duration-slower","easing-base","easing-ease-in-out","easing-ease-out","easing-ease-in","easing-ease-linear","transition-fast","transition-base","transition-slow"]},zindex:{label:"Z-Index",tokens:["z-n1","z-0","z-1","z-2","z-3","z-4","z-5","z-dropdown","z-sticky","z-fixed","z-modal","z-popover","z-tooltip","z-drawer"]},breakpoints:{label:"Breakpoints",tokens:["breakpoint-xs","breakpoint-sm","breakpoint-md","breakpoint-lg","breakpoint-xl","breakpoint-xxl"]}};return t("div",{className:"design-tokens-customizer "+(i||""),style:l,children:[t("div",{className:"customizer-header",children:[e("h2",{children:"Interactive Theme Customizer"}),t("div",{className:"customizer-controls",children:[t("select",{value:h,onChange:e=>m(e.target.value),children:[e("option",{value:"hex",children:"HEX"}),e("option",{value:"rgb",children:"RGB"}),e("option",{value:"rgba",children:"RGBA"}),e("option",{value:"hsl",children:"HSL"}),e("option",{value:"hsla",children:"HSLA"})]}),e("button",{onClick:N,children:"Reset to Defaults"}),t("label",{className:"file-input-button",children:["Load Tokens",e("input",{type:"file",accept:".json",onChange:T,style:{display:"none"}})]}),e("button",{onClick:x,children:"Copy Tokens"}),e("button",{onClick:E,children:"Export Tokens"}),e("button",{onClick:A,children:"Export Theme CSS"})]})]}),t("div",{className:"customizer-content",children:[e("div",{className:"customizer-sidebar",children:Object.entries(_).map((([t,n])=>e("button",{className:"category-button "+(p===t?"active":""),onClick:()=>g(t),children:n.label},t)))}),t("div",{className:"customizer-editor",children:[e("h3",{children:_[p].label}),e("div",{className:"tokens-grid",children:_[p].tokens.map((n=>{var a;const r=c[n]||"",i=Ra(n).call(n,"color")||Ra(n).call(n,"bg")||Ra(n).call(n,"gradient")||Ra(a=["primary","secondary","success","info","warning","error","light","dark"]).call(a,n)||n.match(/^(gray|primary|red|green|blue|yellow)-\d+$/);return t("div",{className:"token-item",children:[e("label",{children:n}),i?t("div",{className:"color-input-group",children:[e("input",{type:"color",value:r.startsWith("#")?r:y(r,"hex"),onChange:e=>S(n,e.target.value)}),e("input",{type:"text",value:y(r,h),onChange:e=>{const t=y(e.target.value,"hex");S(n,t)}})]}):e("input",{type:"text",value:r,onChange:e=>S(n,e.target.value)})]},n)}))})]}),t("div",{className:"customizer-preview",children:[e("h3",{children:"Live Preview"}),e("style",{children:f}),e(_h,{theme:v,showDetails:!1,showPalette:!0,showTypography:!0,showSpacing:!0})]})]}),e("style",{children:"\n .design-tokens-customizer {\n display: flex;\n flex-direction: column;\n height: 100vh;\n font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;\n }\n\n .customizer-header {\n display: flex;\n justify-content: space-between;\n align-items: center;\n padding: 16px 24px;\n border-bottom: 1px solid #e0e0e0;\n background: #f5f5f5;\n }\n\n .customizer-header h2 {\n margin: 0;\n font-size: 24px;\n color: #333;\n }\n\n .customizer-controls {\n display: flex;\n gap: 8px;\n align-items: center;\n }\n\n .customizer-controls select,\n .customizer-controls button {\n padding: 8px 12px;\n border: 1px solid #e0e0e0;\n border-radius: 4px;\n background: white;\n cursor: pointer;\n }\n\n .customizer-controls button:hover,\n .file-input-button:hover {\n background: #f0f0f0;\n }\n\n .file-input-button {\n padding: 8px 12px;\n border: 1px solid #e0e0e0;\n border-radius: 4px;\n background: white;\n cursor: pointer;\n font-size: 14px;\n display: inline-block;\n }\n\n .customizer-content {\n display: flex;\n flex: 1;\n overflow: hidden;\n }\n\n .customizer-sidebar {\n width: 200px;\n border-right: 1px solid #e0e0e0;\n padding: 16px;\n background: #fafafa;\n overflow-y: auto;\n }\n\n .category-button {\n display: block;\n width: 100%;\n padding: 12px;\n margin-bottom: 8px;\n border: none;\n background: white;\n border-radius: 4px;\n cursor: pointer;\n text-align: left;\n font-size: 14px;\n }\n\n .category-button:hover,\n .category-button.active {\n background: #e0e0e0;\n }\n\n .customizer-editor {\n flex: 1;\n padding: 24px;\n overflow-y: auto;\n }\n\n .customizer-editor h3 {\n margin-top: 0;\n margin-bottom: 16px;\n color: #333;\n }\n\n .tokens-grid {\n display: grid;\n grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));\n gap: 16px;\n }\n\n .token-item {\n display: flex;\n flex-direction: column;\n gap: 8px;\n }\n\n .token-item label {\n font-size: 14px;\n font-weight: 500;\n color: #666;\n }\n\n .color-input-group {\n display: flex;\n gap: 8px;\n align-items: center;\n }\n\n .color-input-group input[type=\"color\"] {\n width: 50px;\n height: 40px;\n border: 1px solid #e0e0e0;\n border-radius: 4px;\n cursor: pointer;\n }\n\n .color-input-group input[type=\"text\"],\n .token-item input[type=\"text\"] {\n flex: 1;\n padding: 8px 12px;\n border: 1px solid #e0e0e0;\n border-radius: 4px;\n font-size: 14px;\n font-family: 'Monaco', 'Menlo', monospace;\n }\n\n .customizer-preview {\n width: 400px;\n border-left: 1px solid #e0e0e0;\n padding: 24px;\n overflow-y: auto;\n background: #fafafa;\n }\n\n .customizer-preview h3 {\n margin-top: 0;\n margin-bottom: 16px;\n color: #333;\n }\n "})]})};function Vh(e){if(!e||"object"!=typeof e)return!1;const t=e;if("palette"in t||"typography"in t||"__isJSTheme"in t)return!1;const n=Object.keys(t);return 0!==n.length&&n.some((e=>/^[a-z]+(-[a-z0-9]+)*$/.test(e)&&"string"==typeof t[e]))}class Hh{constructor(e){this.frameCount=0,this.lastSampleTime=0,this.lastFpsUpdate=0,this.frameTimes=[],this.animationFrameId=null,this.isActive=!1,this.startTime=0,this.config={fpsTarget:e?.fpsTarget??60,sampleInterval:e?.sampleInterval??500,onUpdate:e?.onUpdate??(()=>{}),onDegraded:e?.onDegraded??(()=>{}),enableMemoryMonitoring:e?.enableMemoryMonitoring??("undefined"!=typeof window&&window.performance&&window.performance.memory)}}start(){this.isActive||(this.isActive=!0,this.frameCount=0,this.lastSampleTime=performance.now(),this.lastFpsUpdate=this.lastSampleTime,this.frameTimes=[],this.startTime=this.lastSampleTime,this.animationFrameId=requestAnimationFrame(this.onFrame.bind(this)))}stop(){this.animationFrameId&&(cancelAnimationFrame(this.animationFrameId),this.animationFrameId=null),this.isActive=!1}getMetrics(){var e;const t=performance.now(),n=t-this.lastFpsUpdate,a=n>0?Math.round(this.frameCount/n*1e3):0,r=this.frameTimes.length>0?Do(e=this.frameTimes).call(e,((e,t)=>e+t),0)/this.frameTimes.length:0,i=this.frameTimes.length>0?Math.max(...this.frameTimes):0;let o;if(this.config.enableMemoryMonitoring){const e=window.performance;e&&e.memory&&(o={usedJSHeapSize:e.memory.usedJSHeapSize,totalJSHeapSize:e.memory.totalJSHeapSize,jsHeapSizeLimit:e.memory.jsHeapSizeLimit})}return{fps:a,frameTime:r,peakFrameTime:i,memory:o,timestamp:t,isDegraded:a<.7*this.config.fpsTarget}}getFps(){return this.getMetrics().fps}isPerformanceDegraded(){return this.getMetrics().isDegraded}onFrame(e){if(!this.isActive)return;const t=e-this.lastSampleTime;if(this.frameTimes.push(t),this.frameTimes.length>60&&this.frameTimes.shift(),this.frameCount++,this.lastSampleTime=e,e-this.lastFpsUpdate>=this.config.sampleInterval){const t=this.getMetrics();this.config.onUpdate(t),t.isDegraded&&this.config.onDegraded(t),this.frameCount=0,this.lastFpsUpdate=e}this.animationFrameId=requestAnimationFrame(this.onFrame.bind(this))}async testFunctionPerformance(e,t=100){const n=[];for(let a=0;t>a;a++){const t=performance.now();e();const a=performance.now();n.push(a-t)}return Do(n).call(n,((e,t)=>e+t),0)/n.length}}function $h(e){return new Hh(e)}function Yh(e){const[t]=a.useState((()=>$h(e))),[n,r]=a.useState((()=>"undefined"!=typeof window?t.getMetrics():{fps:0,frameTime:0,peakFrameTime:0,timestamp:0,isDegraded:!1})),i=a.useCallback((()=>{"undefined"!=typeof window&&t.start()}),[t]),o=a.useCallback((()=>{"undefined"!=typeof window&&t.stop()}),[t]);return a.useEffect((()=>{if("undefined"==typeof window)return;const n=e?.onUpdate;return t.config.onUpdate=e=>{r(e),n?.(e)},()=>{t.stop()}}),[t,e?.onUpdate]),{metrics:n,start:i,stop:o}}class Kh{constructor(e){this.currentDevice="desktop",this.resizeHandler=null,this.observer=null,this.config=e,this.currentDevice=this.getCurrentDeviceType(),this.setupResizeListener()}getCurrentDeviceType(){if("undefined"==typeof window)return"desktop";const e=window.innerWidth;this.parsePxValue(this.config.breakpoints.mobile);const t=this.parsePxValue(this.config.breakpoints.tablet),n=this.parsePxValue(this.config.breakpoints.desktop),a=this.parsePxValue(this.config.breakpoints.wide);return t>e?"mobile":n>e?"tablet":a>e?"desktop":"wide"}getCurrentScalingFactor(){const e="wide"===this.currentDevice?"desktop":this.currentDevice;return this.config.deviceScaling[e]||1}scaleValue(e){return e*this.getCurrentScalingFactor()}isDevice(e){return this.currentDevice===e}isMobileOrSmaller(){return"mobile"===this.currentDevice}isTabletOrSmaller(){return"mobile"===this.currentDevice||"tablet"===this.currentDevice}isDesktopOrLarger(){return"desktop"===this.currentDevice||"wide"===this.currentDevice}updateConfig(e){this.config=e,this.currentDevice=this.getCurrentDeviceType()}destroy(){this.resizeHandler&&(window.removeEventListener("resize",this.resizeHandler),this.resizeHandler=null),this.observer&&(this.observer.disconnect(),this.observer=null)}parsePxValue(e){return e.endsWith("px")?parseFloat(e.slice(0,-2)):e.endsWith("rem")?16*parseFloat(e.slice(0,-3)):e.endsWith("em")?16*parseFloat(e.slice(0,-2)):parseFloat(e)||0}setupResizeListener(){if("undefined"==typeof window)return;let e=null;const t=()=>{e&&window.clearTimeout(e),e=window.setTimeout((()=>{const e=this.getCurrentDeviceType();e!==this.currentDevice&&(this.currentDevice=e)}),150)};this.resizeHandler=t,window.addEventListener("resize",t),"undefined"!=typeof ResizeObserver&&(this.observer=new ResizeObserver(t),this.observer.observe(document.body))}}function Wh(e){return new Kh(e)}function jh(e){const[t]=a.useState((()=>Wh(e))),[n,r]=a.useState((()=>"undefined"!=typeof window?t.getCurrentDeviceType():"desktop"));return a.useEffect((()=>{if("undefined"==typeof window)return;const e=()=>{const e=t.getCurrentDeviceType();e!==n&&r(e)};return r(t.getCurrentDeviceType()),window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e),t.destroy()}}),[t,n]),"undefined"==typeof window?{deviceType:"desktop",isMobile:!1,isTablet:!1,isDesktop:!0,isWide:!1,scaleValue:e=>e,getCurrentDeviceType:()=>"desktop",getCurrentScalingFactor:()=>1,isMobileOrSmaller:()=>!1,isTabletOrSmaller:()=>!0,isDesktopOrLarger:()=>!0}:{deviceType:n,isMobile:"mobile"===n,isTablet:"tablet"===n,isDesktop:"desktop"===n,isWide:"wide"===n,scaleValue:e=>t.scaleValue(e),getCurrentDeviceType:()=>t.getCurrentDeviceType(),getCurrentScalingFactor:()=>t.getCurrentScalingFactor(),isMobileOrSmaller:()=>t.isMobileOrSmaller(),isTabletOrSmaller:()=>t.isTabletOrSmaller(),isDesktopOrLarger:()=>t.isDesktopOrLarger()}}const qh=new Set(["ar","he","fa","ur","yi","ji","iw","ku","ps","sd"]),Qh={enabled:!1,direction:"ltr",dataAttribute:"data-direction",autoDetect:!1,locale:void 0};class Xh{constructor(e={}){this.listeners=new Set,this.config={...Qh,...e,locale:e.locale},this.config.autoDetect&&!this.config.locale&&(this.config.locale=this.detectLocale()),this.config.enabled&&this.config.locale&&qh.has(this.config.locale.toLowerCase())&&(this.config.direction="rtl"),this.config.enabled&&"undefined"!=typeof document&&this.applyDirection(this.config.direction)}detectLocale(){if("undefined"==typeof navigator)return"en";const e=((navigator.language||navigator.languages&&navigator.languages[0]||"en")+"").split("-");return e[0]?e[0].toLowerCase():"en"}isRTLLocale(e){return qh.has(e.toLowerCase())}getDirection(){return this.config.direction}isEnabled(){return this.config.enabled}setDirection(e){this.config.direction!==e&&(this.config.direction=e,this.applyDirection(e),this.notifyListeners(e))}toggleDirection(){const e="ltr"===this.config.direction?"rtl":"ltr";return this.setDirection(e),e}enable(){this.config.enabled||(this.config.enabled=!0,this.applyDirection(this.config.direction))}disable(){this.config.enabled&&(this.config.enabled=!1,this.applyDirection("ltr"))}setLocale(e){if(this.config.locale=e.toLowerCase(),this.config.autoDetect){const t=this.isRTLLocale(e);this.setDirection(t?"rtl":"ltr")}}getLocale(){return this.config.locale}applyDirection(e){if("undefined"==typeof document)return;const t=document.documentElement,n=document.body;t.setAttribute("dir",e),n?.setAttribute("dir",e),this.config.dataAttribute&&(t.setAttribute(this.config.dataAttribute,e),n?.setAttribute(this.config.dataAttribute,e)),t.style.setProperty("--atomix-direction",e),t.style.setProperty("--atomix-text-direction",e)}onDirectionChange(e){return this.listeners.add(e),()=>{this.listeners.delete(e)}}notifyListeners(e){this.listeners.forEach((t=>{try{t(e)}catch(n){uu().error("Error in RTL direction change listener",n instanceof Error?n:Error(n+""),{direction:e})}}))}getValue(e,t){return"rtl"===this.config.direction?t:e}getCSSProperty(e){return"rtl"===this.config.direction&&{left:"right",right:"left","margin-left":"margin-right","margin-right":"margin-left","padding-left":"padding-right","padding-right":"padding-left","border-left":"border-right","border-right":"border-left","border-left-width":"border-right-width","border-right-width":"border-left-width","text-align: left":"text-align: right","text-align: right":"text-align: left"}[e]||e}destroy(){if(this.listeners.clear(),"undefined"!=typeof document){const e=document.documentElement,t=document.body;e.removeAttribute("dir"),e.removeAttribute(this.config.dataAttribute),t?.removeAttribute("dir"),t?.removeAttribute(this.config.dataAttribute)}}}function Zh(e){return new Xh(e)}function Jh(e){return qh.has(e.toLowerCase())}function em(e){return Jh(e)?"rtl":"ltr"}function tm(e,t,n="ltr"){return"rtl"===n?t:e}function nm(e,t="atomix-theme"){au(e,t)}function am(e="atomix-theme"){ru(e)}const rm={"--atomix-button-bg":"background-color","--atomix-button-color":"text color","--atomix-button-padding-x":"horizontal padding","--atomix-button-padding-y":"vertical padding","--atomix-button-border-radius":"border radius","--atomix-button-border-width":"border width","--atomix-button-border-color":"border color","--atomix-button-font-size":"font size","--atomix-button-font-weight":"font weight","--atomix-button-font-family":"font family","--atomix-button-line-height":"line height","--atomix-button-min-width":"minimum width","--atomix-button-min-height":"minimum height","--atomix-button-transition":"transition","--atomix-button-hover-bg":"hover background","--atomix-button-hover-color":"hover text color","--atomix-button-hover-border-color":"hover border color","--atomix-button-active-bg":"active background","--atomix-button-active-color":"active text color","--atomix-button-focus-ring-color":"focus ring color","--atomix-button-focus-ring-width":"focus ring width","--atomix-button-disabled-opacity":"disabled opacity","--atomix-button-disabled-bg":"disabled background","--atomix-button-icon-size":"icon size","--atomix-button-icon-gap":"icon spacing","--atomix-button-spinner-size":"spinner size","--atomix-button-label-font-weight":"label font weight"},im={"--atomix-card-bg":"background color","--atomix-card-color":"text color","--atomix-card-padding":"padding","--atomix-card-border-radius":"border radius","--atomix-card-border-width":"border width","--atomix-card-border-color":"border color","--atomix-card-box-shadow":"box shadow","--atomix-card-width":"width","--atomix-card-max-width":"maximum width","--atomix-card-hover-bg":"hover background","--atomix-card-hover-shadow":"hover shadow","--atomix-card-hover-transform":"hover transform","--atomix-card-header-padding":"header padding","--atomix-card-header-bg":"header background","--atomix-card-header-border-bottom":"header border bottom","--atomix-card-body-padding":"body padding","--atomix-card-body-font-size":"body font size","--atomix-card-footer-padding":"footer padding","--atomix-card-footer-bg":"footer background","--atomix-card-footer-border-top":"footer border top","--atomix-card-title-font-size":"title font size","--atomix-card-title-font-weight":"title font weight","--atomix-card-title-color":"title color","--atomix-card-title-margin-bottom":"title margin bottom","--atomix-card-image-border-radius":"image border radius","--atomix-card-image-max-height":"image max height"},om={"--atomix-input-bg":"background color","--atomix-input-color":"text color","--atomix-input-padding-x":"horizontal padding","--atomix-input-padding-y":"vertical padding","--atomix-input-border-radius":"border radius","--atomix-input-border-width":"border width","--atomix-input-border-color":"border color","--atomix-input-font-size":"font size","--atomix-input-font-family":"font family","--atomix-input-line-height":"line height","--atomix-input-height":"height","--atomix-input-placeholder-color":"placeholder color","--atomix-input-hover-border-color":"hover border color","--atomix-input-focus-border-color":"focus border color","--atomix-input-focus-ring-color":"focus ring color","--atomix-input-focus-ring-width":"focus ring width","--atomix-input-disabled-bg":"disabled background","--atomix-input-disabled-opacity":"disabled opacity","--atomix-input-invalid-border-color":"invalid border color","--atomix-input-valid-border-color":"valid border color"},sm={"--atomix-modal-bg":"background color","--atomix-modal-color":"text color","--atomix-modal-padding":"padding","--atomix-modal-border-radius":"border radius","--atomix-modal-box-shadow":"box shadow","--atomix-modal-width":"width","--atomix-modal-max-width":"maximum width","--atomix-modal-max-height":"maximum height","--atomix-modal-backdrop-bg":"backdrop background","--atomix-modal-backdrop-opacity":"backdrop opacity","--atomix-modal-backdrop-blur":"backdrop blur","--atomix-modal-header-padding":"header padding","--atomix-modal-header-border-bottom":"header border bottom","--atomix-modal-title-font-size":"title font size","--atomix-modal-title-font-weight":"title font weight","--atomix-modal-body-padding":"body padding","--atomix-modal-body-font-size":"body font size","--atomix-modal-footer-padding":"footer padding","--atomix-modal-footer-border-top":"footer border top","--atomix-modal-footer-gap":"footer button gap","--atomix-modal-close-size":"close button size","--atomix-modal-close-color":"close button color","--atomix-modal-close-hover-color":"close button hover color"},lm={"--atomix-dropdown-bg":"background color","--atomix-dropdown-color":"text color","--atomix-dropdown-border-radius":"border radius","--atomix-dropdown-border-width":"border width","--atomix-dropdown-border-color":"border color","--atomix-dropdown-box-shadow":"box shadow","--atomix-dropdown-min-width":"minimum width","--atomix-dropdown-max-height":"maximum height","--atomix-dropdown-padding":"padding","--atomix-dropdown-item-padding":"item padding","--atomix-dropdown-item-font-size":"item font size","--atomix-dropdown-item-hover-bg":"item hover background","--atomix-dropdown-item-hover-color":"item hover color","--atomix-dropdown-item-active-bg":"item active background","--atomix-dropdown-item-active-color":"item active color","--atomix-dropdown-item-disabled-opacity":"item disabled opacity","--atomix-dropdown-divider-color":"divider color","--atomix-dropdown-divider-margin":"divider margin","--atomix-dropdown-header-padding":"header padding","--atomix-dropdown-header-font-size":"header font size","--atomix-dropdown-header-font-weight":"header font weight","--atomix-dropdown-header-color":"header color"},cm={"--atomix-badge-bg":"background color","--atomix-badge-color":"text color","--atomix-badge-padding-x":"horizontal padding","--atomix-badge-padding-y":"vertical padding","--atomix-badge-border-radius":"border radius","--atomix-badge-font-size":"font size","--atomix-badge-font-weight":"font weight","--atomix-badge-line-height":"line height","--atomix-badge-icon-size":"icon size","--atomix-badge-icon-gap":"icon spacing"},dm={"--atomix-tabs-bg":"background color","--atomix-tabs-border-color":"border color","--atomix-tabs-border-width":"border width","--atomix-tabs-nav-gap":"nav gap","--atomix-tabs-nav-padding":"nav padding","--atomix-tabs-btn-padding-x":"button horizontal padding","--atomix-tabs-btn-padding-y":"button vertical padding","--atomix-tabs-btn-color":"button color","--atomix-tabs-btn-font-size":"button font size","--atomix-tabs-btn-font-weight":"button font weight","--atomix-tabs-btn-hover-color":"button hover color","--atomix-tabs-btn-active-color":"button active color","--atomix-tabs-btn-active-border-color":"button active border color","--atomix-tabs-btn-active-border-width":"button active border width","--atomix-tabs-panel-padding":"panel padding","--atomix-tabs-panel-bg":"panel background"},um={"--atomix-progress-bg":"background color","--atomix-progress-height":"height","--atomix-progress-border-radius":"border radius","--atomix-progress-bar-bg":"bar background","--atomix-progress-bar-transition":"bar transition"},hm={"--atomix-tooltip-bg":"background color","--atomix-tooltip-color":"text color","--atomix-tooltip-padding-x":"horizontal padding","--atomix-tooltip-padding-y":"vertical padding","--atomix-tooltip-border-radius":"border radius","--atomix-tooltip-font-size":"font size","--atomix-tooltip-max-width":"maximum width","--atomix-tooltip-box-shadow":"box shadow","--atomix-tooltip-z-index":"z-index","--atomix-tooltip-arrow-size":"arrow size","--atomix-tooltip-arrow-color":"arrow color"},mm={"--atomix-checkbox-size":"checkbox size","--atomix-checkbox-bg":"background color","--atomix-checkbox-border-color":"border color","--atomix-checkbox-border-width":"border width","--atomix-checkbox-border-radius":"border radius","--atomix-checkbox-transition":"transition","--atomix-checkbox-checked-bg":"checked background","--atomix-checkbox-checked-border-color":"checked border color","--atomix-checkbox-hover-border-color":"hover border color","--atomix-checkbox-focus-ring-color":"focus ring color","--atomix-checkbox-focus-ring-width":"focus ring width","--atomix-checkbox-disabled-opacity":"disabled opacity","--atomix-checkbox-invalid-border-color":"invalid border color","--atomix-checkbox-icon-size":"icon size","--atomix-checkbox-icon-color":"icon color","--atomix-checkbox-label-gap":"label spacing","--atomix-checkbox-label-font-size":"label font size","--atomix-checkbox-label-color":"label color"},pm={"--atomix-radio-size":"radio size","--atomix-radio-bg":"background color","--atomix-radio-border-color":"border color","--atomix-radio-border-width":"border width","--atomix-radio-transition":"transition","--atomix-radio-checked-bg":"checked background","--atomix-radio-checked-border-color":"checked border color","--atomix-radio-hover-border-color":"hover border color","--atomix-radio-focus-ring-color":"focus ring color","--atomix-radio-focus-ring-width":"focus ring width","--atomix-radio-disabled-opacity":"disabled opacity","--atomix-radio-invalid-border-color":"invalid border color","--atomix-radio-dot-size":"dot size","--atomix-radio-dot-color":"dot color","--atomix-radio-label-gap":"label spacing","--atomix-radio-label-font-size":"label font size","--atomix-radio-label-color":"label color"},gm={Button:rm,Card:im,Input:om,Modal:sm,Dropdown:lm,Badge:cm,Tabs:dm,Progress:um,Tooltip:hm,Checkbox:mm,Radio:pm};function fm(e){return gm[e]}function bm(e,t){if(e||t)return e?t?{className:[e.className,t.className].filter(Boolean).join(" "),style:{...e.style,...t.style}}:e:t}function vm(e,t){const{theme:n}=gh(),a=u((()=>Ol(n?.components?.[e]?.cssVars||{},t.cssVars||{})),[n,e,t.cssVars]),r=u((()=>{const a=n?.components?.[e]?.parts||{},r=t.parts||{},i={};return new Set([...Object.keys(a),...Object.keys(r)]).forEach((e=>{i[e]=bm(a[e],r[e])})),i}),[n,e,t.parts]),i=u((()=>[n?.components?.[e]?.className||"",t.className||""].filter(Boolean).join(" ")),[n,e,t.className]),o=u((()=>({...t.style})),[t.style]),s=u((()=>{var e;return Do(e=Object.entries(a)).call(e,((e,[t,n])=>(e[t]="number"==typeof n?n+"px":n,e)),{})}),[a]);return{cssVars:a,parts:r,className:i,style:o,cssVarStyle:s}}function Sm(e){const{theme:t}=gh();return u((()=>t?.components?.[e]?.defaultProps||{}),[t,e])}function ym(e,t){return u((()=>({...e,...t})),[e,t])}function Em(e,t){var n;return{...Do(n=Object.entries(e)).call(n,((e,[t,n])=>(e[t]="number"==typeof n?n+"px":n,e)),{}),...t}}function Am(e){return e}function xm(e,t){const{performanceAnalysis:n=!0,compatibilityReport:a=!0}=t||{},r=[],i=[];let o="low";const s=Bd(e);r.push(...s),n&&(o=function(e){let t=0;if(e.interactiveEffects){const n=e.interactiveEffects;n.vortex?.enabled&&(t+=2),n.chromaticAberration?.enabled&&(t+=1),n.mouseInteraction?.trailEffect&&(t+=1),n.mouseInteraction?.pressureSensitivity&&(t+=1)}if(e.visualPolish){const n=e.visualPolish;n.borders?.iridescentGlow&&(t+=1),n.borders?.shimmerEffect&&(t+=1),n.contentAwareBlur?.enabled&&(t+=2),n.holographicEffects?.enabled&&(t+=2),n.holographicEffects?.scanlineAnimation&&(t+=1),n.holographicEffects?.dataStream&&(t+=1),n.holographicEffects?.pulseRings&&(t+=1)}return e.optimization?.autoScaling?.enabled&&(t-=1),6>t?3>t?"low":"medium":"high"}(e)),function(e,t){(e.interactiveEffects||e.visualPolish?.holographicEffects?.enabled)&&(e.optimization?.autoScaling?.enabled||t.push("Consider enabling auto-scaling in optimization settings to adjust effects based on device performance: optimization.autoScaling.enabled = true"),e.optimization?.performance?.fpsTarget||t.push("Set a target FPS in optimization.performance.fpsTarget to ensure smooth performance when using interactive effects")),e.optimization&&!e.optimization.responsive&&t.push("Consider adding responsive breakpoints in optimization.responsive.breakpoints to adapt advanced effects based on device type"),e.visualPolish?.holographicEffects?.enabled&&t.push("For better performance on lower-end devices, consider conditionally disabling holographic effects based on device capabilities"),e.visualPolish?.contentAwareBlur?.enabled&&t.push("Content-aware blur can be expensive; consider setting a maximum blur radius or using simpler blur techniques for mobile devices"),e.interactiveEffects?.chromaticAberration?.enabled&&(e.interactiveEffects.chromaticAberration.redShift&&Math.abs(e.interactiveEffects.chromaticAberration.redShift)>.05&&t.push("High chromatic aberration red shift values (>0.05) may cause discomfort for some users; consider reducing to improve accessibility"),e.interactiveEffects.chromaticAberration.blueShift&&Math.abs(e.interactiveEffects.chromaticAberration.blueShift)>.05&&t.push("High chromatic aberration blue shift values (>0.05) may cause discomfort for some users; consider reducing to improve accessibility"))}(e,i);const l=0===r.length,c=a?function(e){return{browsers:!(e.visualPolish?.holographicEffects?.enabled||e.visualPolish?.contentAwareBlur?.enabled||e.interactiveEffects?.vortex?.enabled||e.interactiveEffects?.chromaticAberration?.enabled),ssr:!0,frameworks:["react","vue","angular","svelte","vanillajs"]}}(e):{browsers:!0,ssr:!0,frameworks:["react","vue","angular","svelte","vanillajs"]};return{isValid:l,warnings:r,suggestions:i,performanceImpact:o,compatibility:c}}function Nm(e,t){const n=xm(e);n.warnings.length>0&&n.warnings.forEach((e=>{})),n.suggestions.length>0&&n.suggestions.forEach((e=>{}));const a=[];e.interactiveEffects&&a.push("Interactive Effects"),e.optimization&&a.push("Optimization"),e.visualPolish&&a.push("Visual Polish"),e.ai&&a.push("AI Integration"),e.tokenEngine&&a.push("Token Engine"),e.generator&&a.push("Component Generator"),a.length>0&&a.forEach((e=>{}))}function Tm(e){return Ud({configPath:e?.configPath,required:e?.required??!1})}function _m(e){return Bd(e)}const Cm=ac,Lm=ql,Im=Cd,wm=Ld,Om=Object.freeze({__proto__:null,DesignTokensCustomizer:Gh,RTLManager:Xh,ThemeApplicator:Eh,ThemeComparator:Ih,ThemeContext:eh,ThemeErrorBoundary:vh,ThemeInspector:Lh,ThemeLiveEditor:Fh,ThemePreview:_h,ThemeProvider:ph,ThemeToggle:yh,ThemeValidator:Ch,alpha:Fu,applyCSSVariables:Cl,applyComponentTheme:Zu,applyTheme:Nh,camelToKebab:ju,clearThemePreference:Cu,clearThemes:eu,configToTokens:Md,createPerformanceMonitor:$h,createRTLManager:Zh,createResponsiveUtil:Wh,createSpacing:Vu,createTheme:Vd,createThemeRegistry:Wd,createTokens:wd,cssVarsToStyle:wl,darken:Uu,deepMerge:$d,default:{createTheme:Vd,injectTheme:nm,removeTheme:am,ThemeProvider:ph,useTheme:gh,useThemeTokens:fh,ThemeContext:eh,ThemeErrorBoundary:vh,configToTokens:Md,designTokensToCSSVars:Pd,switchTheme:yu,toggleTheme:Eu,getCurrentTheme:Au,getSystemTheme:xu,initializeTheme:Nu,listenToSystemTheme:Tu,persistTheme:_u,clearThemePreference:Cu,mergeTokens:Lu,overrideTokens:Iu,pickTokens:wu,omitTokens:Ou,hexToRgb:Ru,rgbToHex:ku,getLuminance:Mu,getContrastRatio:Du,isAccessible:Pu,getContrastText:Bu,lighten:zu,darken:Uu,alpha:Fu,emphasize:Gu,createSpacing:Vu,createPerformanceMonitor:$h,usePerformanceMonitor:Yh,createResponsiveUtil:Wh,useResponsive:jh,ThemeToggle:yh,ThemeApplicator:Eh,applyTheme:Nh,getThemeApplicator:xh,createThemeRegistry:Wd,registerTheme:jd,unregisterTheme:qd,hasTheme:Qd,getTheme:Xd,getAllThemes:Zd,getThemeIds:Jd,clearThemes:eu,getThemeCount:tu,deepMerge:$d,mergeTheme:Yd,extendTheme:Kd,createTokens:wd,defaultTokens:Id,generateCSSVariables:Od,generateCSSVariablesForSelector:Rd,generateClassName:Yu,generateCSSVariableName:Ku,normalizeThemeTokens:Wu,camelToKebab:ju,themePropertyToCSSVar:qu,getComponentThemeValue:Qu,generateComponentCSSVars:Xu,applyComponentTheme:Zu,useComponentTheme:Ju,useThemeSwitcher:Sh,isDesignTokens:Vh,mapSCSSTokensToCSSVars:_l,applyCSSVariables:Cl,removeCSSVariables:Ll,getCSSVariable:Il,cssVarsToStyle:wl,mergeCSSVars:Ol,isValidCSSVariableName:Rl,extractComponentName:kl,injectCSS:au,removeCSS:ru,isCSSInjected:iu,RTLManager:Xh,createRTLManager:Zh,isRTLLocale:Jh,getDirectionFromLocale:em,rtlCSS:tm},defaultTokens:Id,designTokensToCSSVars:Pd,emphasize:Gu,extendTheme:Kd,extractComponentName:kl,generateCSSVariableName:Ku,generateCSSVariables:Od,generateCSSVariablesForSelector:Rd,generateClassName:Yu,generateComponentCSSVars:Xu,getAllThemes:Zd,getCSSVariable:Il,getComponentThemeValue:Qu,getContrastRatio:Du,getContrastText:Bu,getCurrentTheme:Au,getDirectionFromLocale:em,getLuminance:Mu,getSystemTheme:xu,getTheme:Xd,getThemeApplicator:xh,getThemeCount:tu,getThemeIds:Jd,hasTheme:Qd,hexToRgb:Ru,initializeTheme:Nu,injectCSS:au,injectTheme:nm,isAccessible:Pu,isCSSInjected:iu,isDesignTokens:Vh,isRTLLocale:Jh,isValidCSSVariableName:Rl,lighten:zu,listenToSystemTheme:Tu,mapSCSSTokensToCSSVars:_l,mergeCSSVars:Ol,mergeTheme:Yd,mergeTokens:Lu,normalizeThemeTokens:Wu,omitTokens:Ou,overrideTokens:Iu,persistTheme:_u,pickTokens:wu,registerTheme:jd,removeCSS:ru,removeCSSVariables:Ll,removeTheme:am,rgbToHex:ku,rtlCSS:tm,switchTheme:yu,themePropertyToCSSVar:qu,toggleTheme:Eu,unregisterTheme:qd,useComponentTheme:Ju,useHistory:zh,usePerformanceMonitor:Yh,useResponsive:jh,useTheme:gh,useThemeSwitcher:Sh,useThemeTokens:fh});function Rm(e,t,n){return Bh({name:e,palette:{primary:{main:t},secondary:n?{main:n}:void 0}})}function km(e){const t={name:e.name+" Dark",palette:{mode:"dark",primary:e.palette?.primary,secondary:e.palette?.secondary,error:e.palette?.error,warning:e.palette?.warning,info:e.palette?.info,success:e.palette?.success,background:{default:"#121212",paper:"#1e1e1e",subtle:"#1e1e1e"},text:{primary:"#ffffff",secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.38)"}}};return{...e,...t,palette:{...e.palette,...t.palette,background:{...e.palette?.background,...t.palette?.background},text:{...e.palette?.text,...t.palette?.text}}}}function Mm(e){const t=[];return e.name||t.push("Theme must have a name"),e.palette||t.push("Theme must have a palette"),e.palette&&!e.palette.primary&&t.push("Theme palette must have a primary color"),{valid:0===t.length,errors:t}}function Dm(e,t=":root"){return $u(e,{selector:t,prefix:"atomix"})}function Pm(e){return{name:e.name||"Custom Theme",description:e.description,author:e.author,version:e.version||"1.0.0",tags:e.tags||[],supportsDarkMode:"dark"===e.palette?.mode,status:"stable",color:e.palette?.primary?.main||"#7AFFD7"}}function Bm(e){var t;return"dark"===e.palette?.mode||!0===e.supportsDarkMode||!!(null==(t=e.a11y?.modes)?void 0:Function.call.bind(Ra(t),t))?.("dark")}function zm(e){return JSON.stringify(e,null,2)}function Um(e){try{return JSON.parse(e)}catch(t){throw Error("Invalid theme JSON")}}const Fm={..._d,...yc,composables:Cm,utils:Lm,constants:wm,types:Im};export{Ga as ACCORDION,Dr as ATOMIX_GLASS,yr as AVATAR,Er as AVATAR_GROUP,zi as Accordion,ps as AreaChart,Ri as AtomixGlass,Ui as AtomixLogo,ao as Avatar,ro as AvatarGroup,Va as BADGE,cm as BADGE_CSS_VARS,Ti as BALANCED_PRESET,kr as BLOCK,Ya as BREADCRUMB,za as BUTTON,rm as BUTTON_CSS_VARS,Ua as BUTTON_GROUP,oo as Badge,fs as BarChart,co as Block,ho as Breadcrumb,bs as BubbleChart,Vo as Button,Ho as ButtonGroup,Fa as CALLOUT,br as CARD,im as CARD_CSS_VARS,Or as CHART,mm as CHECKBOX_CSS_VARS,Da as CLASS_PREFIX,Rr as CODE_SNIPPET,gm as COMPONENT_CSS_VARS,Ka as COUNTDOWN,Xo as Callout,vs as CandlestickChart,as as Card,cs as Chart,us as ChartRenderer,Ys as Checkbox,zs as ColorModeToggle,so as Container,Us as Countdown,cr as DATA_TABLE_CLASSES,dr as DATA_TABLE_SELECTORS,_r as DATEPICKER,jl as DEFAULT_ATOMIX_FONTS,pi as DEFAULT_BREAKPOINTS,Nr as DROPDOWN,lm as DROPDOWN_CSS_VARS,el as DataTable,il as DatePicker,Gh as DesignTokensCustomizer,wi as DeviceDetector,Ss as DonutChart,Js as Dropdown,lr as EDGE_PANEL,ul as EdgePanel,rs as ElevationCard,Mr as FOOTER,mr as FORM,pr as FORM_GROUP,bc as Footer,Ac as FooterLink,Ec as FooterSection,mc as FooterSocialLink,ml as Form,gl as FormGroup,ys as FunnelChart,Es as GaugeChart,pc as Grid,gc as GridCol,Wa as HERO,xs as HeatmapChart,Nc as Hero,gr as INPUT,om as INPUT_CSS_VARS,no as Icon,bl as Input,Ha as LIST,$a as LIST_GROUP,Ts as LineChart,_c as List,Cc as ListGroup,xr as MESSAGES,Li as MOBILE_OPTIMIZED_BREAKPOINTS,Ar as MODAL,sm as MODAL_CSS_VARS,vc as MasonryGrid,Sc as MasonryGridItem,Wc as MegaMenu,jc as MegaMenuColumn,qc as MegaMenuLink,Hc as Menu,Kc as MenuDivider,$c as MenuItem,Lc as Messages,Mc as Modal,_s as MultiAxisChart,ir as NAV,rr as NAVBAR,Dc as Nav,Qc as NavDropdown,zc as NavItem,Uc as Navbar,ur as PAGINATION_DEFAULTS,Ni as PERFORMANCE_PRESET,Lr as PHOTOVIEWER,qa as POPOVER,Tr as PROGRESS,um as PROGRESS_CSS_VARS,$s as Pagination,Si as PerformanceOverlay,nd as PhotoViewer,Ls as PieChart,rd as Popover,sd as ProductReview,ld as Progress,_i as QUALITY_PRESET,fr as RADIO,pm as RADIO_CSS_VARS,sr as RATING,nr as RIVER,Xh as RTLManager,Is as RadarChart,lc as Radio,od as Rating,cd as River,fc as Row,tr as SECTION_INTRO,vr as SELECT,or as SIDE_MENU,Ma as SIZES,wr as SLIDER,er as SPINNER,Za as STEPS,ws as ScatterChart,dd as SectionIntro,sc as Select,Vc as SideMenu,Gc as SideMenuItem,Fc as SideMenuList,ud as Slider,po as Spinner,md as Steps,Xa as TAB,dm as TABS_CSS_VARS,Ja as TESTIMONIAL,Sr as TEXTAREA,ka as THEME_COLORS,Pa as THEME_NAMING,hr as TODO,Qa as TOGGLE,ja as TOOLTIP,hm as TOOLTIP_CSS_VARS,Ba as TYPEDBUTTON,Sd as Tabs,yd as Testimonial,cc as Textarea,Eh as ThemeApplicator,Ih as ThemeComparator,eh as ThemeContext,vh as ThemeErrorBoundary,Lh as ThemeInspector,Fh as ThemeLiveEditor,_h as ThemePreview,ph as ThemeProvider,yh as ThemeToggle,Ch as ThemeValidator,Ed as Todo,Ad as Toggle,xd as Tooltip,Ms as TreemapChart,ar as UPLOAD,Nd as Upload,Cr as VIDEO_PLAYER,Td as VideoPlayer,Ds as WaterfallChart,Fu as alpha,Cl as applyCSSVariables,Em as applyCSSVarsToStyle,Zu as applyComponentTheme,Dl as applyPartStyles,Nh as applyTheme,ju as camelToKebab,Cu as clearThemePreference,eu as clearThemes,Cm as composables,Md as configToTokens,wm as constants,bi as createBreakpoints,Pl as createCSSVarStyle,km as createDarkVariant,Gl as createDebugAttrs,Yl as createFontPreloadLink,Ul as createPartProps,$h as createPerformanceMonitor,Zh as createRTLManager,Wh as createResponsiveUtil,Uo as createSlotComponent,Fo as createSlotProps,Vu as createSpacing,Vd as createTheme,Wd as createThemeRegistry,wd as createTokens,wl as cssVarsToStyle,Uu as darken,$d as deepMerge,Fm as default,Id as defaultTokens,Am as defineConfig,Pd as designTokensToCSSVars,Gu as emphasize,zm as exportTheme,Kd as extendTheme,kl as extractComponentName,$l as extractYouTubeId,Ku as generateCSSVariableName,Od as generateCSSVariables,Rd as generateCSSVariablesForSelector,Yu as generateClassName,Xu as generateComponentCSSVars,Wl as generateFontPreloadTags,Vl as generateUUID,Zd as getAllThemes,Il as getCSSVariable,fm as getComponentCSSVars,Qu as getComponentThemeValue,Du as getContrastRatio,Bu as getContrastText,Au as getCurrentTheme,fi as getDefaultBreakpoints,Ci as getDevicePreset,em as getDirectionFromLocale,Mu as getLuminance,Ii as getMobileOptimizedParams,zl as getPartStyles,yi as getQualityMultipliers,xu as getSystemTheme,Xd as getTheme,xh as getThemeApplicator,tu as getThemeCount,Jd as getThemeIds,Pm as getThemeMetadata,Fl as hasCustomization,Qd as hasTheme,Ru as hexToRgb,Um as importTheme,Nu as initializeTheme,au as injectCSS,nm as injectTheme,Pu as isAccessible,iu as isCSSInjected,Vh as isDesignTokens,Jh as isRTLLocale,Bo as isSlot,Rl as isValidCSSVariableName,Hl as isYouTubeUrl,zu as lighten,Tu as listenToSystemTheme,Ud as loadAtomixConfig,Tm as loadConfig,_l as mapSCSSTokensToCSSVars,Ol as mergeCSSVars,Ml as mergeClassNames,Bl as mergeComponentProps,bm as mergePartStyles,zo as mergeSlots,Yd as mergeTheme,Lu as mergeTokens,Wu as normalizeThemeTokens,Ou as omitTokens,Iu as overrideTokens,_u as persistTheme,wu as pickTokens,Kl as preloadFonts,Nm as printConfigReport,Rm as quickTheme,jd as registerTheme,ru as removeCSS,Ll as removeCSSVariables,am as removeTheme,Po as renderSlot,Gd as resolveConfigPath,ku as rgbToHex,tm as rtlCSS,Ir as sliderConstants,Bm as supportsDarkMode,yu as switchTheme,Om as theme,qu as themePropertyToCSSVar,Dm as themeToCSS,Eu as toggleTheme,Im as types,qd as unregisterTheme,Pr as useAccordion,mi as useAtomixGlass,io as useBadge,gs as useBarChart,lo as useBlock,ec as useChartData,nc as useChartInteraction,tc as useChartScale,vm as useComponentCustomization,Sm as useComponentDefaultProps,Ju as useComponentTheme,ol as useEdgePanel,hl as useForm,pl as useFormGroup,vl as useHero,zh as useHistory,fl as useInput,Ns as useLineChart,ym as useMergedProps,El as useNav,xl as useNavDropdown,Al as useNavItem,yl as useNavbar,Cs as usePieChart,Xl as useRadio,jh as useResponsive,gi as useResponsiveGlass,Sl as useRiver,Zl as useSelect,Nl as useSideMenu,Tl as useSideMenuItem,Go as useSlot,mo as useSpinner,Jl as useTextarea,gh as useTheme,Sh as useThemeSwitcher,fh as useThemeTokens,Ql as useTodo,Lm as utils,_m as validateConfig,xm as validateConfiguration,Mm as validateTheme};
|
|
2
2
|
//# sourceMappingURL=index.min.js.map
|