@texturehq/edges 2.5.2 → 2.5.3
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/index.cjs +9 -9
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +45 -2
- package/dist/index.d.ts +45 -2
- package/dist/index.js +9 -9
- package/dist/index.js.map +1 -1
- package/dist/styles.css +7 -0
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
'use strict';var reactAriaComponents=require('react-aria-components'),Oe=require('react'),tailwindMerge=require('tailwind-merge'),jsxRuntime=require('react/jsx-runtime'),Up=require('@phosphor-icons/react'),luxon=require('luxon'),reactVirtual=require('@tanstack/react-virtual'),H0=require('@phosphor-icons/react/ssr'),reactAria=require('react-aria'),reactStately=require('react-stately'),lucideReact=require('lucide-react'),framerMotion=require('framer-motion'),Ww=require('react-ace'),reactColorful=require('react-colorful'),curve=require('@visx/curve'),shape=require('@visx/shape'),gradient=require('@visx/gradient'),group=require('@visx/group'),scale=require('@visx/scale'),d3Array=require('d3-array'),axis=require('@visx/axis'),responsive=require('@visx/responsive'),zoom=require('@visx/zoom'),nk=require('papaparse'),brush=require('@visx/brush'),pattern=require('@visx/pattern'),d3Scale=require('d3-scale'),d3Time=require('d3-time'),date=require('@internationalized/date'),core=require('@dnd-kit/core'),sortable=require('@dnd-kit/sortable'),utilities=require('@dnd-kit/utilities'),reactDom=require('react-dom'),sM=require('react-map-gl'),server=require('react-dom/server'),SD=require('@tiptap/extension-link'),react=require('@tiptap/react'),menus=require('@tiptap/react/menus'),TD=require('@tiptap/starter-kit'),zE=require('fuse.js');var _documentCurrentScript=typeof document!=='undefined'?document.currentScript:null;function _interopDefault(e){return e&&e.__esModule?e:{default:e}}function _interopNamespace(e){if(e&&e.__esModule)return e;var n=Object.create(null);if(e){Object.keys(e).forEach(function(k){if(k!=='default'){var d=Object.getOwnPropertyDescriptor(e,k);Object.defineProperty(n,k,d.get?d:{enumerable:true,get:function(){return e[k]}});}})}n.default=e;return Object.freeze(n)}var Oe__namespace=/*#__PURE__*/_interopNamespace(Oe);var Up__namespace=/*#__PURE__*/_interopNamespace(Up);var H0__namespace=/*#__PURE__*/_interopNamespace(H0);var Ww__default=/*#__PURE__*/_interopDefault(Ww);var nk__default=/*#__PURE__*/_interopDefault(nk);var sM__default=/*#__PURE__*/_interopDefault(sM);var SD__default=/*#__PURE__*/_interopDefault(SD);var TD__default=/*#__PURE__*/_interopDefault(TD);var zE__default=/*#__PURE__*/_interopDefault(zE);var mv=Object.create;var wc=Object.defineProperty;var fv=Object.getOwnPropertyDescriptor;var gv=Object.getOwnPropertyNames;var bv=Object.getPrototypeOf,xv=Object.prototype.hasOwnProperty;var hv=(e,t,r)=>t in e?wc(e,t,{enumerable:true,configurable:true,writable:true,value:r}):e[t]=r;var yv=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var vv=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of gv(t))!xv.call(e,n)&&n!==r&&wc(e,n,{get:()=>t[n],enumerable:!(o=fv(t,n))||o.enumerable});return e};var Op=(e,t,r)=>(r=e!=null?mv(bv(e)):{},vv(wc(r,"default",{value:e,enumerable:true}),e));var ja=(e,t,r)=>hv(e,typeof t!="symbol"?t+"":t,r);var iu=yv((nu,au)=>{(function(e,t){typeof define=="function"&&define.amd?define([],t):typeof nu<"u"?t():(t(),e.FileSaver={});})(nu,function(){function e(s,c){return typeof c>"u"?c={autoBom:false}:typeof c!="object"&&(console.warn("Deprecated: Expected third argument to be a object"),c={autoBom:!c}),c.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(s.type)?new Blob(["\uFEFF",s],{type:s.type}):s}function t(s,c,l){var u=new XMLHttpRequest;u.open("GET",s),u.responseType="blob",u.onload=function(){i(u.response,c,l);},u.onerror=function(){console.error("could not download file");},u.send();}function r(s){var c=new XMLHttpRequest;c.open("HEAD",s,false);try{c.send();}catch{}return 200<=c.status&&299>=c.status}function o(s){try{s.dispatchEvent(new MouseEvent("click"));}catch{var c=document.createEvent("MouseEvents");c.initMouseEvent("click",true,true,window,0,0,0,80,20,false,false,false,false,0,null),s.dispatchEvent(c);}}var n=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof global=="object"&&global.global===global?global:void 0,a=n.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),i=n.saveAs||(typeof window!="object"||window!==n?function(){}:"download"in HTMLAnchorElement.prototype&&!a?function(s,c,l){var u=n.URL||n.webkitURL,d=document.createElement("a");c=c||s.name||"download",d.download=c,d.rel="noopener",typeof s=="string"?(d.href=s,d.origin===location.origin?o(d):r(d.href)?t(s,c,l):o(d,d.target="_blank")):(d.href=u.createObjectURL(s),setTimeout(function(){u.revokeObjectURL(d.href);},4e4),setTimeout(function(){o(d);},0));}:"msSaveOrOpenBlob"in navigator?function(s,c,l){if(c=c||s.name||"download",typeof s!="string")navigator.msSaveOrOpenBlob(e(s,l),c);else if(r(s))t(s,c,l);else {var u=document.createElement("a");u.href=s,u.target="_blank",setTimeout(function(){o(u);});}}:function(s,c,l,u){if(u=u||open("","_blank"),u&&(u.document.title=u.document.body.innerText="downloading..."),typeof s=="string")return t(s,c,l);var d=s.type==="application/octet-stream",m=/constructor/i.test(n.HTMLElement)||n.safari,p=/CriOS\/[\d]+/.test(navigator.userAgent);if((p||d&&m||a)&&typeof FileReader<"u"){var g=new FileReader;g.onloadend=function(){var b=g.result;b=p?b:b.replace(/^data:[^;]*;/,"data:attachment/file;"),u?u.location.href=b:location=b,u=null;},g.readAsDataURL(s);}else {var f=n.URL||n.webkitURL,h=f.createObjectURL(s);u?u.location=h:location.href=h,u=null,setTimeout(function(){f.revokeObjectURL(h);},4e4);}});n.saveAs=i.saveAs=i,typeof au<"u"&&(au.exports=i);});});function Jt(e,t=false){let[r,o]=Oe.useState(t);return Oe.useEffect(()=>{if(typeof window>"u")return;let n=window.matchMedia(e);o(n.matches);let a=i=>{o(i.matches);};return n.addEventListener("change",a),()=>{n.removeEventListener("change",a);}},[e]),r}var sn={sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"};function Xt(e="base"){let t=Jt(`(min-width: ${sn.sm})`,e!=="base"),r=Jt(`(min-width: ${sn.md})`,["md","lg","xl","2xl"].includes(e)),o=Jt(`(min-width: ${sn.lg})`,["lg","xl","2xl"].includes(e)),n=Jt(`(min-width: ${sn.xl})`,["xl","2xl"].includes(e)),a=Jt(`(min-width: ${sn["2xl"]})`,e==="2xl"),i=!r,s=r,c="base";return a?c="2xl":n?c="xl":o?c="lg":r?c="md":t&&(c="sm"),{current:c,isSm:t,isMd:r,isLg:o,isXl:n,is2Xl:a,isMobile:i,isDesktop:s}}function rt(e,t){let r=Oe.forwardRef(({size:o=24,color:n="currentColor",className:a,mirrored:i,alt:s,...c},l)=>{let u=!!s||"aria-label"in c;return jsxRuntime.jsx("svg",{ref:l,xmlns:"http://www.w3.org/2000/svg",width:o,height:o,viewBox:"0 0 256 256",fill:n,className:a,transform:i?"scale(-1, 1)":void 0,"aria-hidden":u?void 0:true,role:u?"img":void 0,"aria-label":s,...c,children:t})});return r.displayName=e,r}var ts=()=>jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("path",{d:"M12 128h44M200 128h44",fill:"none",stroke:"currentColor",strokeWidth:"16",strokeLinecap:"round"}),jsxRuntime.jsx("circle",{cx:"76",cy:"128",r:"20",fill:"none",stroke:"currentColor",strokeWidth:"16"}),jsxRuntime.jsx("circle",{cx:"180",cy:"128",r:"20",fill:"none",stroke:"currentColor",strokeWidth:"16"})]}),Hp=()=>jsxRuntime.jsx("path",{d:"M166 120 88 70",fill:"none",stroke:"currentColor",strokeWidth:"16",strokeLinecap:"round"}),Wp=()=>jsxRuntime.jsx("path",{d:"M162 122 92 128",fill:"none",stroke:"currentColor",strokeWidth:"16",strokeLinecap:"round"}),Gp=()=>jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("path",{d:"M112 85.7 A32 32 0 1 1 144 85.7",fill:"none",stroke:"currentColor",strokeWidth:"16",strokeLinecap:"round"}),jsxRuntime.jsx("circle",{cx:"128",cy:"58",r:"8",fill:"currentColor",stroke:"none"})]}),kv=rt("TextureRecloser",jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("rect",{x:"36",y:"36",width:"184",height:"184",fill:"none",stroke:"currentColor",strokeWidth:"16"}),jsxRuntime.jsx("text",{x:"128",y:"126",textAnchor:"middle",dominantBaseline:"central",fontFamily:"ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif",fontSize:"140",fontWeight:"700",fill:"currentColor",stroke:"none",children:"R"})]})),Tv=rt("TextureFuse",jsxRuntime.jsx("path",{d:"M20 128h72q18 -84 36 0q18 84 36 0h72",fill:"none",stroke:"currentColor",strokeWidth:"16",strokeLinecap:"round",strokeLinejoin:"round"})),Pv=rt("TextureBreaker",jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("rect",{x:"36",y:"36",width:"184",height:"184",fill:"none",stroke:"currentColor",strokeWidth:"16"}),jsxRuntime.jsx("text",{x:"128",y:"126",textAnchor:"middle",dominantBaseline:"central",fontFamily:"ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif",fontSize:"140",fontWeight:"700",fill:"currentColor",stroke:"none",children:"B"})]})),Rv=rt("TextureSource",jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("path",{d:"M4 128h40M212 128h40",fill:"none",stroke:"currentColor",strokeWidth:"16",strokeLinecap:"round"}),jsxRuntime.jsx("circle",{cx:"128",cy:"128",r:"84",fill:"none",stroke:"currentColor",strokeWidth:"16"}),jsxRuntime.jsx("path",{d:"M92 128q18 -84 36 0q18 84 36 0",fill:"none",stroke:"currentColor",strokeWidth:"16",strokeLinecap:"round",strokeLinejoin:"round"})]})),Mv=rt("TextureCapacitor",jsxRuntime.jsx(jsxRuntime.Fragment,{children:jsxRuntime.jsx("path",{d:"M4 128h106M146 128h106M110 72v112M146 72v112",fill:"none",stroke:"currentColor",strokeWidth:"16",strokeLinecap:"round"})})),Dv=rt("TextureRegulator",jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("circle",{cx:"128",cy:"128",r:"92",fill:"none",stroke:"currentColor",strokeWidth:"16"}),jsxRuntime.jsx("text",{x:"128",y:"126",textAnchor:"middle",dominantBaseline:"central",fontFamily:"ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif",fontSize:"128",fontWeight:"700",fill:"currentColor",stroke:"none",children:"V"})]})),Ev=rt("TextureSwitch",jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(ts,{}),jsxRuntime.jsx(Hp,{})]})),Lv=rt("TextureSwitchClosed",jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(ts,{}),jsxRuntime.jsx(Wp,{})]})),Av=rt("TextureOpenPoint",jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("path",{d:"M112 52 C 74 92, 74 164, 112 204",fill:"none",stroke:"currentColor",strokeWidth:"18",strokeLinecap:"round"}),jsxRuntime.jsx("path",{d:"M144 52 C 182 92, 182 164, 144 204",fill:"none",stroke:"currentColor",strokeWidth:"18",strokeLinecap:"round"})]})),Iv=rt("TextureSectionalizerOpen",jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(ts,{}),jsxRuntime.jsx(Hp,{}),jsxRuntime.jsx(Gp,{})]})),Fv=rt("TextureSectionalizerClosed",jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(ts,{}),jsxRuntime.jsx(Wp,{}),jsxRuntime.jsx(Gp,{})]})),Bv=rt("TextureTransformer",jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("path",{d:"M40 64H88A22 22 0 0 1 88 108A22 22 0 0 1 88 152A22 22 0 0 1 88 196H40",fill:"none",stroke:"currentColor",strokeWidth:"16",strokeLinecap:"round",strokeLinejoin:"round"}),jsxRuntime.jsx("path",{d:"M216 64H168A22 22 0 0 0 168 108A22 22 0 0 0 168 152A22 22 0 0 0 168 196H216",fill:"none",stroke:"currentColor",strokeWidth:"16",strokeLinecap:"round",strokeLinejoin:"round"})]})),aa={1:[128],2:[110,146],3:[92,128,164]},Nc=e=>jsxRuntime.jsx("path",{d:`M24 ${e}h208`,fill:"none",stroke:"currentColor",strokeWidth:"16",strokeLinecap:"round"},e),kc=e=>jsxRuntime.jsx("path",{d:`M24 ${e}h208`,fill:"none",stroke:"currentColor",strokeWidth:"16",strokeLinecap:"round",pathLength:100,strokeDasharray:"20 20"},e),Vv=rt("TextureSinglePhaseOverheadLine",jsxRuntime.jsx(jsxRuntime.Fragment,{children:aa[1].map(Nc)})),zv=rt("TextureTwoPhaseOverheadLine",jsxRuntime.jsx(jsxRuntime.Fragment,{children:aa[2].map(Nc)})),Ov=rt("TextureThreePhaseOverheadLine",jsxRuntime.jsx(jsxRuntime.Fragment,{children:aa[3].map(Nc)})),Hv=rt("TextureSinglePhaseUndergroundLine",jsxRuntime.jsx(jsxRuntime.Fragment,{children:aa[1].map(kc)})),Wv=rt("TextureTwoPhaseUndergroundLine",jsxRuntime.jsx(jsxRuntime.Fragment,{children:aa[2].map(kc)})),Gv=rt("TextureThreePhaseUndergroundLine",jsxRuntime.jsx(jsxRuntime.Fragment,{children:aa[3].map(kc)})),Uv=rt("TextureSupportStructure",jsxRuntime.jsx("circle",{cx:"128",cy:"128",r:"40",fill:"currentColor",stroke:"none"})),ia={TextureRecloser:kv,TextureFuse:Tv,TextureBreaker:Pv,TextureSource:Rv,TextureCapacitor:Mv,TextureRegulator:Dv,TextureSwitch:Ev,TextureSwitchClosed:Lv,TextureOpenPoint:Av,TextureSectionalizerOpen:Iv,TextureSectionalizerClosed:Fv,TextureTransformer:Bv,TextureSinglePhaseOverheadLine:Vv,TextureTwoPhaseOverheadLine:zv,TextureThreePhaseOverheadLine:Ov,TextureSinglePhaseUndergroundLine:Hv,TextureTwoPhaseUndergroundLine:Wv,TextureThreePhaseUndergroundLine:Gv,TextureSupportStructure:Uv};if(process.env.NODE_ENV==="development")for(let e of Object.keys(ia))e in Up__namespace&&console.error(`Custom icon "${e}" collides with a Phosphor icon of the same name. Rename it (use the "Texture" prefix) to keep the icon namespace unambiguous.`);var sa={xs:16,sm:20,md:24,lg:32,xl:40,"2xl":48},B=Oe.memo(({name:e,size:t="md",color:r,weight:o="regular",className:n,ariaLabel:a,...i})=>{let s=ia[e]??Up__namespace[e];if(!s)return process.env.NODE_ENV==="development"&&console.error(`Icon "${e}" not found in @phosphor-icons/react or the custom icon registry`),null;let c=typeof t=="string"&&t in sa?sa[t]:t,l=tailwindMerge.twMerge("inline-block flex-shrink-0",!r&&"text-current",n);return jsxRuntime.jsx(s,{...i,size:c,color:r,weight:o,className:l,"aria-label":a||`${e} icon`,"data-testid":`icon-${e}`})});B.displayName="Icon";var Kv=Oe.memo(({variant:e="subtle",shape:t="square",containerSize:r,containerClassName:o,size:n="md",className:a,name:i,color:s,weight:c,ariaLabel:l,ref:u,...d})=>{let m=typeof n=="string"&&n in sa?sa[n]:n,p=r?typeof r=="string"&&r in sa?sa[r]:r:m*1.75,g=tailwindMerge.twMerge("inline-flex items-center justify-center flex-shrink-0",t==="circle"?"rounded-full":"rounded-lg",e==="subtle"&&"bg-background-muted",e==="solid"&&"bg-action-brand text-[color:var(--color-action-brand-text)]",e==="outline"&&"border-2 border-current",o);return jsxRuntime.jsx("div",{className:g,style:{width:p,height:p},children:jsxRuntime.jsx(B,{...d,name:i,size:n,color:s,weight:c,className:a,ariaLabel:l})})});Kv.displayName="IconWithContainer";function cr({transparent:e=false,className:t,children:r,...o}){return jsxRuntime.jsx(reactAriaComponents.ModalOverlay,{...o,className:reactAriaComponents.composeRenderProps(t,(n,a)=>tailwindMerge.twMerge("fixed inset-0 z-50","outline-none focus:outline-none focus-visible:outline-none ring-0 focus:ring-0 focus-visible:ring-0",e?"bg-transparent":["bg-gradient-to-br from-background-modal/20 via-background-modal/15 to-background-modal/20","backdrop-blur-[2px]","supports-[backdrop-filter]:bg-background-modal/15"].join(" "),a.isEntering&&["animate-in fade-in","duration-300 ease-out"].join(" "),a.isExiting&&["animate-out fade-out","duration-200 ease-in"].join(" "),n)),children:r})}function tC({isEntering:e,isExiting:t,className:r="",disableGroup:o=false}){let n=[!o&&"group","bg-background-surface","forced-colors:bg-[Canvas]","shadow-lg","rounded-[var(--control-border-radius)]","bg-clip-padding","border","border-border-default","outline-none"].filter(Boolean).join(" "),a=e?["animate-in","fade-in","placement-bottom:slide-in-from-top-1","placement-top:slide-in-from-bottom-1","placement-left:slide-in-from-right-1","placement-right:slide-in-from-left-1","ease-out","duration-200"].join(" "):"",i=t?["animate-out","fade-out","placement-bottom:slide-out-to-top-1","placement-top:slide-out-to-bottom-1","placement-left:slide-out-to-right-1","placement-right:slide-out-to-left-1","ease-in","duration-150"].join(" "):"";return [n,a,i,r].filter(Boolean).join(" ")}function st({children:e,showArrow:t=false,withBackdrop:r=false,className:o,isDismissable:n=true,disableGroup:a=false,...i}){let c=reactAriaComponents.useSlottedContext(reactAriaComponents.PopoverContext)?.trigger==="SubmenuTrigger",l=t?12:8;l=c?l-6:l;let u=jsxRuntime.jsxs(reactAriaComponents.Popover,{offset:l,...i,className:reactAriaComponents.composeRenderProps(o,(d,m)=>tC({...m,className:d,disableGroup:a})),children:[t&&jsxRuntime.jsx(reactAriaComponents.OverlayArrow,{children:jsxRuntime.jsx("svg",{width:12,height:12,viewBox:"0 0 12 12",className:"block fill-background-surface stroke-border-default stroke-1 group-placement-left:-rotate-90 group-placement-right:rotate-90 group-placement-bottom:rotate-180 forced-colors:fill-[Canvas] forced-colors:stroke-[ButtonBorder]",children:jsxRuntime.jsx("path",{d:"M0 0 L6 6 L12 0"})})}),e]});return r?jsxRuntime.jsx(cr,{isDismissable:n,children:jsxRuntime.jsx(reactAriaComponents.Modal,{className:"outline-none focus:outline-none focus-visible:outline-none ring-0 focus:ring-0 focus-visible:ring-0",isDismissable:n,children:u})}):u}function rs(e=true){let[t,r]=Oe.useState(null);return Oe.useEffect(()=>{if(!e){r(null);return}let o=typeof window<"u"?window.visualViewport:null;if(!o)return;let n=()=>{let a=Math.max(0,window.innerHeight-o.height-(o.offsetTop??0));r({height:o.height,keyboardOffset:a});};return n(),o.addEventListener("resize",n),o.addEventListener("scroll",n),()=>{o.removeEventListener("resize",n),o.removeEventListener("scroll",n);}},[e]),t}var iC={"--color-brand-primary":["--color-action-brand","--color-text-link-default","--action-brand-background"],"--color-brand-dark":["--color-action-brand-hover","--color-text-link-hover","--action-brand-hover"],"--color-action-brand":["--color-text-link-default","--action-brand-background"],"--color-action-brand-hover":["--color-text-link-hover","--action-brand-hover"]};function Jp(e){let t={...e};for(let[r,o]of Object.entries(iC))if(e[r])for(let n of o)e[n]||(t[n]=e[r]);return t}function Xp(e){return e.replace(/[{}<>]/g,"")}function jp(e){return Object.entries(e).map(([t,r])=>`${Xp(t)}: ${Xp(r)};`).join(" ")}function Qp({variables:e,darkVariables:t,children:r}){let n=Oe.useId().replace(/:/g,""),a=e&&Object.keys(e).length>0,i=t&&Object.keys(t).length>0;if(!a&&!i)return jsxRuntime.jsx(jsxRuntime.Fragment,{children:r});let s=a?Jp(e):null,c=i?Jp(t):null,l=s?`[data-brand-scope="${n}"] { ${jp(s)} }`:"",u=c?`.theme-dark [data-brand-scope="${n}"] { ${jp(c)} }`:"",d=[l,u].filter(Boolean).join(`
|
|
2
|
-
`);return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("style",{dangerouslySetInnerHTML:{__html:d}}),jsxRuntime.jsx("div",{"data-brand-scope":n,children:r})]})}var la=new Map,lC=8;function cC(e){if(!e.startsWith("var("))return e;let t=e.slice(4,e.lastIndexOf(")")).trim(),r=t.indexOf(",");return (r===-1?t:t.slice(0,r)).trim()}var Tt=(e,t="#000000")=>typeof window>"u"?t:Zp(e,t,0);function Zp(e,t,r){if(r>lC)return t;let o=e.startsWith("var(")?cC(e):e.startsWith("--")?e:`--${e}`;if(!e.startsWith("--")&&!e.startsWith("var(")&&!o.startsWith("--color-")&&(o=`--color-${o.slice(2)}`),la.has(o))return la.get(o);try{let n=document.body||document.documentElement,i=getComputedStyle(n).getPropertyValue(o).trim();if(i){if(i.startsWith("var(")){let l=Zp(i,t,r+1);return la.set(o,l),l}return la.set(o,i),i}let s=document.createElement("div");s.style.color=`var(${o})`,document.body.appendChild(s);let c=getComputedStyle(s).color;return document.body.removeChild(s),c&&c!=="rgb(0, 0, 0)"?(la.set(o,c),c):t}catch(n){return console.warn(`Failed to resolve color for ${e}:`,n),t}}var os=()=>{la.clear();},ln=()=>{let e=[];for(let t=1;t<=12;t++){let r=Tt(`--color-viz-categorical-${t}`,"");r&&e.push(r);}return e.length===0?_p():e},_p=()=>["#5424db","#d92361","#e86a00","#5d89ff","#9a47e2","#f24cb8","#0ba286","#9c28af","#036e45","#52a119","#ff513d","#046691"],Qa=()=>Tt("--color-viz-default","#444ae1"),dC=(e,t)=>{let r={},o=ln();return e.forEach((n,a)=>{t&&t[n]?r[n]=t[n]:r[n]=o[a%o.length];}),r},$p=e=>{let t=e.match(/\d+/g);if(!t||t.length<3)return true;let[r,o,n]=t.map(Number);return (.299*r+.587*o+.114*n)/255>.5},uC=e=>$p(e)?Tt("--color-text-primary","#333333"):Tt("--color-text-inverse","#ffffff"),em=(e,t)=>{if(!e||typeof e!="object")return console.warn("[Colors] Invalid GeoJSON data provided to extractUniqueValues"),[];if(!("type"in e)||e.type!=="FeatureCollection"&&e.type!=="Feature")return console.warn("[Colors] Data is not valid GeoJSON (missing type or invalid type)"),[];let r=new Set,o="features"in e?e.features:[e];if(!Array.isArray(o)||o.length===0)return console.warn("[Colors] No features found in GeoJSON data"),[];let n=0;return o.forEach(a=>{if(!(!a||typeof a!="object")&&a.properties&&t in a.properties){n++;let i=a.properties[t];i!=null&&r.add(i);}}),n===0&&console.warn(`[Colors] Property "${t}" not found on any features. Available properties: ${o[0]?.properties?Object.keys(o[0].properties).join(", "):"none"}`),Array.from(r).sort()},Rc=e=>{let t=ln(),r={};return e.forEach((o,n)=>{r[o]=t[n%t.length];}),r};var Mc=(e,t)=>{if(!e||typeof e!="object")return console.warn("[Colors] Invalid GeoJSON data provided to extractNumericValues"),[];if(!("type"in e)||e.type!=="FeatureCollection"&&e.type!=="Feature")return console.warn("[Colors] Data is not valid GeoJSON (missing type or invalid type)"),[];let r="features"in e?e.features:[e];if(!Array.isArray(r)||r.length===0)return console.warn("[Colors] No features found in GeoJSON data"),[];let o=new Set,n=0;return r.forEach(a=>{if(!(!a||typeof a!="object")&&a.properties&&t in a.properties){n++;let i=a.properties[t];typeof i=="number"&&!isNaN(i)&&o.add(i);}}),n===0&&console.warn(`[Colors] Property "${t}" not found on any features. Available properties: ${r[0]?.properties?Object.keys(r[0].properties).join(", "):"none"}`),Array.from(o).sort((a,i)=>a-i)},Dc=e=>e.length===0?(console.warn("[Colors] Cannot calculate bounds from empty array"),{min:0,max:1}):{min:e[0],max:e[e.length-1]},tm=(e,t)=>{if(typeof t=="number")return t;if(e.length===0)return console.warn("[Colors] Cannot calculate center from empty array, defaulting to 0"),0;if(t==="median"){let r=Math.floor(e.length/2);return e.length%2===0?(e[r-1]+e[r])/2:e[r]}return e.reduce((r,o)=>r+o,0)/e.length},Ec=(e="viridis")=>{let o=`viz-sequential-${{redYellowGreen:"red-yellow-green"}[e]||e}`,n=[];for(let a=1;a<=10;a++){let i=`${o}-${a}`,s=Tt(i);n.push(s);}return n},Lc=(e="redYellowBlue")=>{let o=`viz-diverging-${{orangeYellowSeafoam:"orange-yellow-seafoam",redYellowBlue:"red-yellow-blue",redBlue:"red-blue"}[e]||e}`,n=[];for(let a=1;a<=10;a++){let i=`${o}-${a}`,s=Tt(i);n.push(s);}return n},Za=(e,t,r,o="viridis")=>{let n=Ec(o);if(e<=t)return n[0];if(e>=r)return n[n.length-1];if(t===r)return n[Math.floor(n.length/2)];let i=(e-t)/(r-t)*(n.length-1),s=Math.floor(i);return n[s]},_a=(e,t,r,o,n="redYellowBlue")=>{let a=Lc(n),i=4;if(e<=t)return a[0];if(e>=r)return a[a.length-1];if(e===o||t===r)return a[i];if(e<o){let c=(e-t)/(o-t)*i,l=Math.floor(c);return a[Math.min(l,i)]}else {let s=(e-o)/(r-o),c=i+s*(a.length-1-i),l=Math.floor(c);return a[Math.min(l,a.length-1)]}};var Ac=Oe.createContext({mode:"system",colorMode:"light",isDarkTheme:false,toggleTheme:()=>{}}),Bt=()=>Oe.useContext(Ac);function bC(){return typeof window>"u"?"light":window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function nm(){if(typeof window>"u")return "system";let e=localStorage.getItem("colorModePreference");return e==="light"||e==="dark"||e==="system"?e:"system"}function am(e){return e==="system"?bC():e}var sm=({children:e})=>{let[t,r]=Oe.useState(nm),[o,n]=Oe.useState(()=>am(nm())),a=o==="dark",i=Oe.useCallback(c=>{c==="dark"?(document.documentElement.classList.add("theme-dark"),document.body.classList.add("theme-dark")):(document.documentElement.classList.remove("theme-dark"),document.body.classList.remove("theme-dark")),os();},[]);Oe.useEffect(()=>{os();let c=am(t);if(n(c),i(c),t==="system"){let l=window.matchMedia("(prefers-color-scheme: dark)"),u=d=>{let m=d.matches?"dark":"light";n(m),i(m);};return l.addEventListener("change",u),()=>{l.removeEventListener("change",u);}}},[t,i]);let s=Oe.useCallback(()=>{r(c=>{let l=c==="system"?"light":c==="light"?"dark":"system";return localStorage.setItem("colorModePreference",l),l});},[]);return jsxRuntime.jsx(Ac.Provider,{value:{mode:t,colorMode:o,isDarkTheme:a,toggleTheme:s},children:e})};function jt(...e){return e.filter(Boolean).join(" ")}var Ic=class{constructor(){ja(this,"formatters",new Map);}register(t,r){this.formatters.set(t,r);}format(t,r,...o){let n=this.formatters.get(t);return n?n(r,...o):(console.warn(`No formatter registered for key: ${t}`),null)}has(t){return this.formatters.has(t)}keys(){return Array.from(this.formatters.keys())}unregister(t){this.formatters.delete(t);}clear(){this.formatters.clear();}},oe=new Ic;var Do=(e,t="Yes",r="No")=>e==null?null:e?t:r,xC=e=>Do(e,"Enabled","Disabled"),hC=e=>Do(e,"On","Off"),yC=e=>Do(e,"Active","Inactive"),vC=e=>Do(e,"True","False"),CC=e=>Do(e,"\u2713","\u2717"),Eo=e=>{if(e==null)return null;if(typeof e=="boolean")return e;if(typeof e=="string"){let t=e.toLowerCase().trim();return t==="true"||t==="yes"||t==="1"||t==="on"||t==="enabled"?true:t==="false"||t==="no"||t==="0"||t==="off"||t==="disabled"?false:null}return typeof e=="number"?e!==0:null},lm=(e,t)=>{if(t.hideWhenNull&&e==null)return null;if(e==null)return t.nullText??null;let r=Eo(e);return r===null?t.nullText??null:Do(r,t.trueText??"Yes",t.falseText??"No")};oe.register("boolean",(e,t,r)=>{let o=Eo(e);return o!==null?Do(o,typeof t=="string"?t:"Yes",typeof r=="string"?r:"No"):null});oe.register("yesNo",e=>{let t=Eo(e);return t!==null?Do(t,"Yes","No"):null});oe.register("enabledDisabled",e=>{let t=Eo(e);return t!==null?xC(t):null});oe.register("onOff",e=>{let t=Eo(e);return t!==null?hC(t):null});oe.register("activeInactive",e=>{let t=Eo(e);return t!==null?yC(t):null});oe.register("trueFalse",e=>{let t=Eo(e);return t!==null?vC(t):null});oe.register("checkmark",e=>{let t=Eo(e);return t!==null?CC(t):null});var me=e=>e==null,cm=(e,t=0)=>me(e)?null:`${e.toFixed(t)}%`,dm=(e,t=0)=>cm(e,t)??"\u2014",SC=e=>me(e)?null:Math.round(e).toString(),wC=(e,t=1)=>me(e)?null:e.toFixed(t),NC=(e,t,r=true)=>{if(me(e))return null;let o={useGrouping:r};return t!==void 0&&(o.minimumFractionDigits=t,o.maximumFractionDigits=t),new Intl.NumberFormat("en-US",o).format(e)},kC=(e,t="short")=>me(e)?null:new Intl.NumberFormat("en-US",{notation:"compact",compactDisplay:t}).format(e),TC=(e,t=2)=>me(e)?null:e.toExponential(t),um=(e,t="USD",r)=>{if(me(e))return null;let o={style:"currency",currency:t,currencyDisplay:r?.currencyDisplay??"symbol",useGrouping:r?.thousandsSeparator??true};return r?.minimumFractionDigits!==void 0&&(o.minimumFractionDigits=r.minimumFractionDigits),r?.maximumFractionDigits!==void 0&&(o.maximumFractionDigits=r.maximumFractionDigits),new Intl.NumberFormat("en-US",o).format(e)},pm=(e,t)=>{if(t.hideWhenNull&&e==null||t.hideWhenZero&&e===0)return null;if(e==null)return t.nullText??null;let r=typeof e=="string"?parseFloat(e):Number(e);if(isNaN(r))return t.nullText??null;let o={useGrouping:t.thousandsSeparator??false};return t.decimals!==void 0&&(o.minimumFractionDigits=t.decimals,o.maximumFractionDigits=t.decimals),t.notation&&(o.notation=t.notation,t.notation==="compact"&&t.compactDisplay&&(o.compactDisplay=t.compactDisplay)),t.sign&&(o.signDisplay=t.sign),new Intl.NumberFormat("en-US",o).format(r)},mm=(e,t)=>{if(t.hideWhenNull&&e==null||t.hideWhenZero&&e===0)return null;if(e==null)return t.nullText??null;let r=typeof e=="string"?parseFloat(e):Number(e);return isNaN(r)?t.nullText??null:um(r,t.currency,t)};oe.register("percentage",(e,t)=>typeof e=="number"?cm(e,typeof t=="number"?t:0):null);oe.register("integer",e=>typeof e=="number"?SC(e):null);oe.register("float",(e,t)=>typeof e=="number"?wC(e,typeof t=="number"?t:1):null);oe.register("number",(e,t,r)=>{let o=typeof e=="string"?parseFloat(e):Number(e);return isNaN(o)?null:NC(o,typeof t=="number"?t:void 0,typeof r=="boolean"?r:true)});oe.register("compact",(e,t)=>typeof e=="number"?kC(e,t==="long"?"long":"short"):null);oe.register("scientific",(e,t)=>typeof e=="number"?TC(e,typeof t=="number"?t:2):null);oe.register("currency",(e,t,r)=>typeof e=="number"?um(e,typeof t=="string"?t:"USD",typeof r=="object"&&r!==null?r:{}):null);function _L(e,t=1){return me(e)?null:Math.abs(e)>=1e3?`${(e/1e3).toFixed(t)} MWh`:`${e.toFixed(t)} kWh`}function $L(e,t=1){return me(e)?null:Math.abs(e)>=1e3?`${(e/1e3).toFixed(t)} MW`:`${e.toFixed(t)} kW`}function Xr({value:e,formatter:t,emptyClassName:r="text-text-secondary",emptyText:o="\u2014"}){if(e==null)return jsxRuntime.jsx("span",{className:r,children:o});if(typeof t=="function")return t(e);if(t&&typeof t=="object"){let n=Br(e,t);return e instanceof Date&&n?jsxRuntime.jsx("time",{dateTime:e.toISOString(),title:e.toISOString(),children:n}):n||jsxRuntime.jsx("span",{className:r,children:o})}if(!t){if(typeof e=="string")return e;if(e instanceof Date){let n=Br(e,{type:"date"});return jsxRuntime.jsx("time",{dateTime:e.toISOString(),title:e.toISOString(),children:n})}if(typeof e=="number")return Br(e,{type:"number"});if(typeof e=="boolean")return Br(e,{type:"boolean"})}return String(e)}function oA(e,t,r){return Oe__namespace.default.useCallback(o=>Xr({value:o,formatter:e,emptyClassName:t,emptyText:r}),[e,t,r])}var Fc=(e,t=0)=>{if(me(e))return null;let r=e*1e3;return t===0?`${Math.round(r)} mA`:`${r.toFixed(t)} mA`},as=(e,t=1)=>me(e)?null:`${e.toFixed(t)} A`,Bc=(e,t=2)=>me(e)?null:`${(e/1e3).toFixed(t)} kA`,RC=(e,t)=>{if(me(e))return null;let r=Math.abs(e);return r>=1e3?Bc(e,t??2):r<1?Fc(e,t??0):as(e,t??1)},Vc=(e,t)=>{if(t.hideWhenNull&&e==null||t.hideWhenZero&&e===0)return null;if(e==null)return t.nullText??null;let r=typeof e=="string"?parseFloat(e):Number(e);if(isNaN(r))return t.nullText??null;let o=t.decimals;if(t.unit)switch(t.unit){case "kA":return Bc(r,o??2);case "mA":return Fc(r,o??0);case "A":return as(r,o??1)}return t.autoScale!==false?RC(r,o):as(r,o??1)};oe.register("current",Vc);var lA=Fc,cA=as,dA=Bc;var cn=e=>{if(e==null)return null;if(e instanceof Date)return luxon.DateTime.fromJSDate(e);if(typeof e=="string"){let t=luxon.DateTime.fromISO(e);return t.isValid?t:null}if(typeof e=="number"){let t=luxon.DateTime.fromMillis(e);return t.isValid?t:null}return null},MC=(e,t=false,r)=>{if(!e)return null;let o=cn(e);if(!o)return "Invalid Date";let n=r?o.setZone(r):o;return t?n.toLocaleString(luxon.DateTime.DATETIME_SHORT):n.toLocaleString(luxon.DateTime.DATE_SHORT)},is=e=>{if(!e)return null;let t=cn(e);return t?t.toRelative():"Invalid Date"},DC=(e,t)=>{if(!e)return null;let r=cn(e);return r?(t?r.setZone(t):r).toLocaleString(luxon.DateTime.DATETIME_MED_WITH_WEEKDAY):"Invalid Date"},EC=e=>{if(!e)return null;let t=cn(e);return t?t.toISO():null},LC=(e,t,r)=>{if(!e)return null;let o=cn(e);return o?(r?o.setZone(r):o).toFormat(t):"Invalid Date"},fA=e=>{let t=cn(e);return t?{year:t.year,month:t.month,day:t.day,weekday:t.weekday,hour:t.hour,minute:t.minute,second:t.second,millisecond:t.millisecond,weekdayShort:t.weekdayShort,weekdayLong:t.weekdayLong,monthShort:t.monthShort,monthLong:t.monthLong}:null},fm=(e,t)=>{if(t.hideWhenNull&&e==null)return null;if(e==null)return t.nullText??null;let r=cn(e);if(!r)return t.nullText??"Invalid Date";let o=t.timezone?r.setZone(t.timezone):r;if(t.relative)return o.toRelative();if(t.format)return o.toFormat(t.format);if(t.dateStyle||t.timeStyle){let n={};if(t.dateStyle)switch(t.dateStyle){case "short":n.date=luxon.DateTime.DATE_SHORT;break;case "medium":n.date=luxon.DateTime.DATE_MED;break;case "long":n.date=luxon.DateTime.DATE_FULL;break;case "full":n.date=luxon.DateTime.DATE_HUGE;break}if(t.timeStyle)switch(t.timeStyle){case "short":n.time=luxon.DateTime.TIME_SIMPLE;break;case "medium":n.time=luxon.DateTime.TIME_WITH_SECONDS;break;case "long":case "full":n.time=luxon.DateTime.TIME_WITH_SHORT_OFFSET;break}if(n.date&&n.time)return o.toLocaleString({...n.date,...n.time});if(n.date)return o.toLocaleString(n.date);if(n.time)return o.toLocaleString(n.time)}return o.toLocaleString(luxon.DateTime.DATETIME_SHORT)};oe.register("date",(e,t,r)=>MC(e,typeof t=="boolean"?t:false,typeof r=="string"?r:void 0));oe.register("relativeTime",e=>is(e));oe.register("fullDateTime",(e,t)=>DC(e,typeof t=="string"?t:void 0));oe.register("isoString",e=>EC(e));oe.register("customDateFormat",(e,t,r)=>typeof t=="string"?LC(e,t,typeof r=="string"?r:void 0):null);var zc=(e,t=1)=>me(e)?null:`${e.toFixed(t)} m`,AC=(e,t=1)=>me(e)?null:`${(e*100).toFixed(t)} cm`,IC=(e,t=0)=>me(e)?null:`${(e*1e3).toFixed(t)} mm`,Oc=(e,t=1)=>me(e)?null:`${(e/1e3).toFixed(t)} km`,Hc=(e,t=0)=>me(e)?null:`${e.toFixed(t)} ft`,FC=(e,t=1)=>me(e)?null:`${e.toFixed(t)} in`,Wc=(e,t=1)=>me(e)?null:`${e.toFixed(t)} mi`,Gc=(e,t=0)=>me(e)?null:`${e.toFixed(t)} yd`,hA=(e,t=1)=>me(e)?null:`${e.toFixed(t)} nm`,yA=e=>e*3.28084,vA=e=>e/3.28084,CA=e=>e*1.60934,SA=e=>e/1.60934,wA=e=>e/5280,gm=e=>e*5280,NA=e=>e/1609.34,kA=e=>e*1609.34,TA=e=>e*.9144,PA=e=>e/.9144,RA=e=>e*2.54,MA=e=>e/2.54,bm=(e,t=false,r=1)=>{if(me(e))return null;let o=Math.abs(e);return t?o>=1e3?Oc(e,r):o<.01?IC(e,0):o<1?AC(e,r):zc(e,r):o<.01?Hc(gm(e),0):o<.1?Gc(gm(e)/3,0):Wc(e,r)},xm=(e,t)=>{if(t.hideWhenNull&&e==null||t.hideWhenZero&&e===0)return null;if(e==null)return t.nullText??null;let r=typeof e=="string"?parseFloat(e):Number(e);if(isNaN(r))return t.nullText??null;let o=t.decimals??1;if(t.autoScale){let n=t.unit==="m"||t.unit==="km";return bm(r,n,o)}switch(t.unit){case "km":return Oc(r,o);case "ft":return Hc(r,o);case "mi":return Wc(r,o);case "yd":return Gc(r,o);default:return zc(r,o)}};oe.register("miles",(e,t)=>typeof e=="number"?Wc(e,typeof t=="number"?t:1):null);oe.register("kilometers",(e,t)=>typeof e=="number"?Oc(e,typeof t=="number"?t:1):null);oe.register("meters",(e,t)=>typeof e=="number"?zc(e,typeof t=="number"?t:1):null);oe.register("feet",(e,t)=>typeof e=="number"?Hc(e,typeof t=="number"?t:0):null);oe.register("yards",(e,t)=>typeof e=="number"?Gc(e,typeof t=="number"?t:0):null);oe.register("inches",(e,t)=>typeof e=="number"?FC(e,typeof t=="number"?t:1):null);oe.register("autoScaleDistance",(e,t,r)=>typeof e=="number"?bm(e,typeof t=="boolean"?t:false,typeof r=="number"?r:1):null);var Uc=(e,t=1)=>me(e)?null:`${e.toFixed(t)} Wh`,Kc=(e,t=1)=>me(e)?null:`${(e/1e3).toFixed(t)} kWh`,hm=(e,t=1)=>me(e)?null:`${(e/1e6).toFixed(t)} MWh`,ym=(e,t=1)=>me(e)?null:`${(e/1e9).toFixed(t)} GWh`,Yc=e=>{let t=Math.abs(e);return t>=1e9?"GWh":t>=1e6?"MWh":t>=1e3?"kWh":"Wh"},vm=(e,t=1)=>{if(me(e))return null;switch(Yc(e)){case "GWh":return ym(e,t);case "MWh":return hm(e,t);case "kWh":return Kc(e,t);default:return Uc(e,t)}},Jc={Wh:1,kWh:1e3,MWh:1e6,GWh:1e9},Xc=(e,t)=>{if(t.hideWhenNull&&e==null||t.hideWhenZero&&e===0)return null;if(e==null)return t.nullText??null;let r=typeof e=="string"?parseFloat(e):Number(e);if(isNaN(r))return t.nullText??null;let o=t.sourceUnit?r*Jc[t.sourceUnit]:r,n=t.decimals??1;if(t.unit)switch(t.unit){case "GWh":return ym(o,n);case "MWh":return hm(o,n);case "kWh":return Kc(o,n);case "Wh":return Uc(o,n)}return t.autoScale!==false?vm(o,n):Uc(o,n)};oe.register("kWh",e=>typeof e=="number"?Kc(e):null);oe.register("autoScaleEnergy",(e,t)=>typeof e=="number"?vm(e,typeof t=="number"?t:1):null);oe.register("energy",Xc);var ss=e=>{if(!e)return null;let t=e.replace(/\D/g,"");return t.length===10?t.replace(/(\d{3})(\d{3})(\d{4})/,"($1) $2-$3"):t.length===11&&t.startsWith("1")?t.replace(/1(\d{3})(\d{3})(\d{4})/,"+1 ($1) $2-$3"):e},jc=e=>{if(!e)return null;let t=e.replace(/[^\d+]/g,"");return t.startsWith("+")?t.length===12&&t.startsWith("+1")?t.replace(/\+1(\d{3})(\d{3})(\d{4})/,"+1 ($1) $2-$3"):t.length===13&&t.startsWith("+44")?t.replace(/\+44(\d{2})(\d{4})(\d{4})/,"+44 $1 $2 $3"):t.replace(/(\+\d{1,3})(\d{3,4})(\d{3,4})(\d{3,4})?/,"$1 $2 $3 $4").trim():ss(e)},ca=e=>e?e.startsWith("+")||e.length>11?jc(e):ss(e):null,Cm=(e,t)=>{if(t.hideWhenNull&&e==null)return null;if(e==null)return t.nullText??null;let r=String(e);if(t.international)return jc(r);switch(t.country){case "US":case "CA":return ss(r);default:return ca(r)}};oe.register("phoneNumber",e=>typeof e=="string"?ca(e):null);oe.register("usPhone",e=>typeof e=="string"?ss(e):null);oe.register("internationalPhone",e=>typeof e=="string"?jc(e):null);var ls=(e,t=0)=>me(e)?null:t===0?`${Math.round(e)} W`:`${e.toFixed(t)} W`,qc=(e,t=1)=>me(e)?null:`${(e/1e3).toFixed(t)} kW`,Qc=(e,t=1)=>me(e)?null:`${(e/1e6).toFixed(t)} MW`,Zc=(e,t=2)=>me(e)?null:`${(e/1e9).toFixed(t)} GW`,BC=(e,t)=>{if(me(e))return null;let r=Math.abs(e);return r>=1e9?Zc(e,t??2):r>=1e6?Qc(e,t??1):r>=1e3?qc(e,t??1):ls(e,t??0)},_c=(e,t)=>{if(t.hideWhenNull&&e==null||t.hideWhenZero&&e===0)return null;if(e==null)return t.nullText??null;let r=typeof e=="string"?parseFloat(e):Number(e);if(isNaN(r))return t.nullText??null;let o=t.decimals;if(t.unit)switch(t.unit){case "GW":return Zc(r,o??2);case "MW":return Qc(r,o??1);case "kW":return qc(r,o??1);case "W":return ls(r,o??0)}return t.autoScale!==false?BC(r,o):ls(r,o??0)};oe.register("power",_c);var zA=ls,OA=qc,HA=Qc,WA=Zc;var $c=(e,t=1)=>me(e)?null:`${(e*1e3).toFixed(t)} m\u03A9`,cs=(e,t=1)=>me(e)?null:`${e.toFixed(t)} \u03A9`,Sm=(e,t=1)=>me(e)?null:`${(e/1e3).toFixed(t)} k\u03A9`,wm=(e,t=2)=>me(e)?null:`${(e/1e6).toFixed(t)} M\u03A9`,VC=(e,t)=>{if(me(e))return null;let r=Math.abs(e);return r>=1e6?wm(e,t??2):r>=1e3?Sm(e,t??1):r<1?$c(e,t??1):cs(e,t??1)},ed=(e,t)=>{if(t.hideWhenNull&&e==null||t.hideWhenZero&&e===0)return null;if(e==null)return t.nullText??null;let r=typeof e=="string"?parseFloat(e):Number(e);if(isNaN(r))return t.nullText??null;let o=t.decimals;if(t.unit)switch(t.unit){case "M\u03A9":return wm(r,o??2);case "k\u03A9":return Sm(r,o??1);case "m\u03A9":return $c(r,o??1);case "\u03A9":return cs(r,o??1)}return t.autoScale!==false?VC(r,o):cs(r,o??1)};oe.register("resistance",ed);oe.register("ohms",e=>typeof e=="number"?cs(e):null);oe.register("milliohms",e=>typeof e=="number"?$c(e):null);var Nm=e=>{switch(e){case "FAHRENHEIT":return "F";case "CELSIUS":return "C";case "KELVIN":return "K";default:return "F"}},km=(e,t=0)=>me(e)?null:`${e.toFixed(t)}\xB0F`,Tm=(e,t=true,r=0)=>me(e)?null:`${(t?(e-32)*(5/9):e).toFixed(r)}\xB0C`,Pm=(e,t=true,r=0)=>me(e)?null:`${(t?(e-32)*(5/9)+273.15:e+273.15).toFixed(r)}K`,zC=e=>e*9/5+32,OC=e=>(e-32)*(5/9),jA=e=>e+273.15,HC=e=>e-273.15,qA=e=>OC(e)+273.15,QA=e=>zC(HC(e)),Rm=(e,t="F",r=0)=>{if(me(e))return null;switch(typeof t=="string"&&t.length>1?Nm(t):t){case "C":return Tm(e,true,r);case "K":return Pm(e,true,r);default:return km(e,r)}},Mm=(e,t)=>{if(t.hideWhenNull&&e==null)return null;if(e==null)return t.nullText??null;let r=typeof e=="string"?parseFloat(e):Number(e);if(isNaN(r))return t.nullText??null;let o=t.decimals??0,n=t.unit??"F";if(t.showUnit===false)switch(typeof n=="string"&&n.length>1?Nm(n):n){case "C":return ((r-32)*.5555555555555556).toFixed(o);case "K":return ((r-32)*.5555555555555556+273.15).toFixed(o);default:return r.toFixed(o)}return Rm(r,n,o)};oe.register("temperature",(e,t,r)=>typeof e=="number"?Rm(e,typeof t=="string"?t:"F",typeof r=="number"?r:0):null);oe.register("fahrenheit",(e,t)=>typeof e=="number"?km(e,typeof t=="number"?t:0):null);oe.register("celsius",(e,t,r)=>typeof e=="number"?Tm(e,typeof t=="boolean"?t:true,typeof r=="number"?r:0):null);oe.register("kelvin",(e,t,r)=>typeof e=="number"?Pm(e,typeof t=="boolean"?t:true,typeof r=="number"?r:0):null);var WC=(e,t)=>!!(t.hideWhenNull&&e==null||t.hideWhenZero&&e===0),Dm=e=>e?.toUpperCase()??"",Em=e=>e?.toLowerCase()??"",Lm=e=>e?e.charAt(0).toUpperCase()+e.slice(1).toLowerCase():"",Am=e=>{if(!e)return "";let t=new Set(["a","an","the","and","but","or","for","nor","on","at","of","to","with","in","as","by"]);return e.toLowerCase().split(/\s+/).map((r,o)=>t.has(r)&&o!==0?r:r.charAt(0).toUpperCase()+r.slice(1)).join(" ")},Im=e=>e?e.split(/\s+/).map(t=>t.charAt(0).toUpperCase()+t.slice(1).toLowerCase()).join(" "):"",Fm=e=>e?e.charAt(0).toUpperCase()+e.slice(1):"",Bm=e=>e?e.replace(/([A-Z])/g," $1").replace(/^./,t=>t.toUpperCase()).trim():"",Vm=e=>e?e.toLowerCase().split("_").map(t=>Fm(t)).join(" "):"",GC=e=>e?e.includes("_")?Vm(e):e.toUpperCase()===e?Fm(e.toLowerCase()):Bm(e):"",da=(e,t=16)=>{if(!e)return "";if(t<5||e.length<=t)return e;let r=t-3,o=Math.ceil(r/2),n=Math.floor(r/2);return `${e.slice(0,o)}...${e.slice(-n)}`},ds=(e,t=8)=>e?e.length<=t?e:`...${e.slice(-t)}`:"",us=(e,t=16,r="...")=>e?e.length<=t?e:e.slice(0,t)+r:"",UC=e=>{if(!e)return "";let t=e.toString(),r=t.slice(-4),o=t.length-4;return o>0?"*".repeat(o)+r:t},zm=(e,t)=>{if(WC(e,t))return null;if(e==null)return t.nullText??null;let r=String(e);if(t.transform&&(Array.isArray(t.transform)?t.transform:[t.transform]).forEach(n=>{switch(n){case "uppercase":r=Dm(r);break;case "lowercase":r=Em(r);break;case "capitalize":r=Im(r);break;case "titleCase":r=Am(r);break;case "sentenceCase":r=Lm(r);break}}),t.truncate){let{length:o,position:n,ellipsis:a="..."}=t.truncate;switch(n){case "start":r=ds(r,o);break;case "middle":r=da(r,o);break;case "end":r=us(r,o,a);break}}return r};oe.register("uppercase",e=>Dm(String(e)));oe.register("lowercase",e=>Em(String(e)));oe.register("sentenceCase",e=>Lm(String(e)));oe.register("titleCase",e=>Am(String(e)));oe.register("capitalize",e=>Im(String(e)));oe.register("camelCaseToWords",e=>Bm(String(e)));oe.register("snakeCaseToWords",e=>Vm(String(e)));oe.register("enumToSentenceCase",e=>GC(String(e)));oe.register("truncateMiddle",(e,t)=>da(String(e),typeof t=="number"?t:16));oe.register("truncateStart",(e,t)=>ds(String(e),typeof t=="number"?t:8));oe.register("truncateEnd",(e,t,r)=>us(String(e),typeof t=="number"?t:16,typeof r=="string"?r:"..."));oe.register("secret",e=>UC(String(e)));var td=(e,t=0)=>{if(me(e))return null;let r=e*1e3;return t===0?`${Math.round(r)} mV`:`${r.toFixed(t)} mV`},ps=(e,t=0)=>me(e)?null:t===0?`${Math.round(e)} V`:`${e.toFixed(t)} V`,rd=(e,t=1)=>me(e)?null:`${(e/1e3).toFixed(t)} kV`,KC=(e,t)=>{if(me(e))return null;let r=Math.abs(e);return r>=1e3?rd(e,t??1):r<1?td(e,t??0):ps(e,t??0)},od=(e,t)=>{if(t.hideWhenNull&&e==null||t.hideWhenZero&&e===0)return null;if(e==null)return t.nullText??null;let r=typeof e=="string"?parseFloat(e):Number(e);if(isNaN(r))return t.nullText??null;let o=t.decimals;if(t.unit)switch(t.unit){case "kV":return rd(r,o??1);case "mV":return td(r,o??0);case "V":return ps(r,o??0)}return t.autoScale!==false?KC(r,o):ps(r,o??0)};oe.register("voltage",od);var r5=td,o5=ps,n5=rd;var YC=(e,t)=>{if(e==null)return t.nullText??null;if(t.hideWhenNull&&e===null)return null;let r=typeof e=="number"?e:Number(e);return Number.isNaN(r)?t.nullText??null:dm(r,t.decimals??0)},Br=(e,t)=>{switch(t.type){case "text":return zm(e,t);case "number":return pm(e,t);case "percentage":return YC(e,t);case "currency":return mm(e,t);case "date":return fm(e,t);case "boolean":return lm(e,t);case "energy":return Xc(e,t);case "power":return _c(e,t);case "voltage":return od(e,t);case "current":return Vc(e,t);case "resistance":return ed(e,t);case "temperature":return Mm(e,t);case "distance":return xm(e,t);case "phone":return Cm(e,t);case "custom":{let r=t;return r.hideWhenNull&&e==null?null:e==null?r.nullText??null:r.formatter(e,r.options)}default:return e!=null?String(e):null}};var ua={power:"W",energy:"Wh",voltage:"V",current:"A",resistance:"\u03A9",distance:"m"},JC=new Set(["number","power","energy","voltage","current","resistance","temperature","distance","percentage"]);function nd(e){if(!e)return null;switch(e.type){case "percentage":return "%";case "power":return e.unit??ua.power;case "energy":return e.unit??e.sourceUnit??ua.energy;case "voltage":return e.unit??ua.voltage;case "current":return e.unit??ua.current;case "resistance":return e.unit??ua.resistance;case "temperature":{let t=typeof e.unit=="string"?e.unit:"F";return t==="C"||t==="CELSIUS"?"\xB0C":t==="F"||t==="FAHRENHEIT"?"\xB0F":t==="K"||t==="KELVIN"?"K":t}case "distance":return e.unit??ua.distance;default:return null}}function Om(e,t){if(!JC.has(t.type))return null;let r;if(typeof e=="number")r=e;else if(typeof e=="string"){let n=parseFloat(e);if(Number.isNaN(n))return null;r=n;}else return null;let o=nd(t);if(o!==null){let n;if(t.type==="percentage")n=t;else if(t.type==="energy")n=t.unit?{...t,autoScale:false}:{...t,unit:t.sourceUnit??"Wh",autoScale:false};else if(t.type==="temperature")n={...t};else {let s=t.unit;n={...t,unit:s??o,autoScale:false};}let a=Br(r,n);if(!a)return "";if(typeof a=="string"&&a.startsWith("device."))return null;let i=String(a);return i.endsWith(` ${o}`)?i.slice(0,-(o.length+1)):i.endsWith(o)?i.slice(0,-o.length):i}if(t.type==="number"){let n=Br(r,t);return n?String(n):""}return String(r)}var C5=(e,t)=>({type:e,...t});function un(e){return e instanceof Date&&!Number.isNaN(e.getTime())}function dn(e,t){return un(e)?t.format(e):""}function Hm(e){if(!un(e.start)||!un(e.end))return ()=>"";if((e.end.getTime()-e.start.getTime())/(1e3*60*60)<=720){let i=new Intl.DateTimeFormat("en",{month:"short",day:"numeric",hour:"numeric",minute:"2-digit"});return s=>dn(s,i)}let r=e.start.getFullYear(),o=e.end.getFullYear(),n=r!==o,a=new Intl.DateTimeFormat("en",{month:"short",day:"numeric",hour:"numeric",minute:"2-digit",...n&&{year:"numeric"}});return i=>dn(i,a)}var XC=864e5;function Wm(e,t){let r=t?.compact??false,o=e<5*XC,n=a=>{let i=a.getHours(),s=i>=12?"PM":"AM";return {displayHour:i%12||12,period:s}};return a=>{if(!un(a))return "";let i=a.getHours()===0&&a.getMinutes()===0&&a.getSeconds()===0&&a.getMilliseconds()===0;if(i&&a.getDate()===1)return a.getMonth()===0?String(a.getFullYear()):a.toLocaleDateString("en",{month:"short"});if(i){let u=a.getDate();if(o){let d=a.toLocaleDateString("en",{weekday:"short"});return r?`${d.charAt(0)}${u}`:`${d} ${u}`}return r?`${a.getMonth()+1}/${u}`:`${a.toLocaleDateString("en",{month:"short"})} ${u}`}let{displayHour:s,period:c}=n(a);if(a.getMinutes()===0&&a.getSeconds()===0)return r?`${s}${c.charAt(0).toLowerCase()}`:`${s} ${c}`;let l=String(a.getMinutes()).padStart(2,"0");return r?`${s}:${l}${c.charAt(0).toLowerCase()}`:`${s}:${l} ${c}`}}function ad(e,t){if(!un(e.start)||!un(e.end))return ()=>"";let r=(e.end.getTime()-e.start.getTime())/(1e3*60*60),o=t?.compact??false,n=l=>u=>un(u)?l(u):"";if(r<=24){if(o)return n(u=>{let d=u.getHours(),m=d>=12?"pm":"am";return `${d%12||12}${m}`});let l=new Intl.DateTimeFormat("en",{hour:"numeric",minute:"2-digit"});return u=>dn(u,l)}if(r<=48){if(o)return n(u=>{let d=u.getMonth()+1,m=u.getDate(),p=u.getHours(),g=p>=12?"p":"a",f=p%12||12;return `${d}/${m} ${f}${g}`});let l=new Intl.DateTimeFormat("en",{month:"short",day:"numeric",hour:"numeric"});return u=>dn(u,l)}if(r<=168){if(o)return n(u=>{let d=u.getDate();return `${u.toLocaleDateString("en",{weekday:"short"}).charAt(0)}${d}`});let l=new Intl.DateTimeFormat("en",{weekday:"short",day:"numeric"});return u=>dn(u,l)}if(r<=720){if(o)return n(u=>{let d=u.getMonth()+1,m=u.getDate();return `${d}/${m}`});let l=new Intl.DateTimeFormat("en",{month:"short",day:"numeric"});return u=>dn(u,l)}let a=e.start.getFullYear(),i=e.end.getFullYear(),s=a!==i;if(o)return n(l=>{let u=l.getMonth()+1,d=l.getDate(),m=s?`/${l.getFullYear().toString().slice(-2)}`:"";return `${u}/${d}${m}`});let c=new Intl.DateTimeFormat("en",{month:"short",day:"numeric",...s&&{year:"numeric"}});return l=>dn(l,c)}var jr={displayXl:"text-display-xl",displayLg:"text-display-lg",displayMd:"text-display-md",displaySm:"text-display-sm",headingXl:"text-heading-xl",headingLg:"text-heading-lg",headingMd:"text-heading-md",headingSm:"text-heading-sm",bodyLg:"text-body-lg",bodyMd:"text-body-md",bodySm:"text-body-sm",labelLg:"text-label-lg",labelMd:"text-label-md",labelSm:"text-label-sm",code:"text-code",agent:"text-agent"};function ft(e,...t){return jt(jr[e],...t)}function Je(e=false){return `${e?"outline outline-1 outline-border-input data-[focus-visible]:outline-2 data-[focus-visible]:outline-action-default data-[focus-visible]:outline-offset-0 invalid:outline-2 invalid:outline-feedback-error-border group-invalid:outline-2 group-invalid:outline-feedback-error-border forced-colors:focus:outline-[Highlight] forced-colors:focus:outline-2 forced-colors:focus:outline-offset-2":"outline-none data-[focus-visible]:outline data-[focus-visible]:outline-2 data-[focus-visible]:outline-action-default data-[focus-visible]:outline-offset-0 invalid:outline-2 invalid:outline-feedback-error-border group-invalid:outline-2 group-invalid:outline-feedback-error-border forced-colors:focus:outline-[Highlight] forced-colors:focus:outline-2 forced-colors:focus:outline-offset-2"}`}function ke(e,t){return reactAriaComponents.composeRenderProps(e,r=>tailwindMerge.twMerge(t,r))}var Ge={sm:{text:"text-[length:var(--control-text-sm)]",height:"h-[var(--control-sm-height)]",padding:"px-[var(--control-padding-sm)]",paddingY:"py-[var(--control-gap-sm)]",gap:"gap-[var(--control-gap-sm)]"},md:{text:"text-[length:var(--control-text-md)]",height:"h-[var(--control-md-height)]",padding:"px-[var(--control-padding-md)]",paddingY:"py-[var(--control-gap-md)]",gap:"gap-[var(--control-gap-md)]"},lg:{text:"text-[length:var(--control-text-lg)]",height:"h-[var(--control-lg-height)]",padding:"px-[var(--control-padding-lg)]",paddingY:"py-[var(--control-gap-lg)]",gap:"gap-[var(--control-gap-lg)]"},xl:{text:"text-[length:var(--control-text-xl)]",height:"h-[var(--control-xl-height)]",padding:"px-[var(--control-padding-xl)]",paddingY:"py-[var(--control-gap-xl)]",gap:"gap-[var(--control-gap-xl)]"}};var _C="flex font-medium justify-center items-center gap-2 text-center transition rounded-[var(--control-border-radius)] whitespace-nowrap box-border",$C="bg-action-primary text-[color:var(--color-action-primary-text)] hover:bg-action-primary-hover forced-colors:bg-[ButtonText] forced-colors:text-[ButtonFace] border-2 border-transparent",e0={primary:$C,secondary:"bg-action-secondary text-[color:var(--color-action-secondary-text)] border-2 border-border-muted hover:bg-action-secondary-hover forced-colors:border-[ButtonBorder] forced-colors:bg-[ButtonFace] forced-colors:text-[ButtonText]",ghost:"border-none text-text-primary hover:bg-text-primary/5 forced-colors:text-[ButtonText] forced-colors:hover:bg-[ButtonFace]",destructive:"bg-transparent text-feedback-error-text border-2 border-border-muted hover:bg-feedback-error-background/50 forced-colors:border-[ButtonBorder] forced-colors:bg-[ButtonFace] forced-colors:text-[Mark]",link:"!text-action-primary hover:text-action-primary/90 hover:underline hover:decoration-2 hover:underline-offset-4",icon:"border-none text-text-primary hover:bg-background-hover hover:text-text-primary forced-colors:text-[ButtonText] forced-colors:hover:bg-[ButtonFace] p-1 flex-shrink-0 rounded-[var(--control-border-radius)]",unstyled:"bg-transparent"},Um={full:"w-full",default:"w-fit"},t0="opacity-50 cursor-not-allowed pointer-events-none",r0="opacity-100 cursor-pointer",o0={"top-right":"-right-2 -top-2","top-left":"-left-2 -top-2","bottom-right":"-right-2 -bottom-2","bottom-left":"-left-2 -bottom-2"},n0={primary:"bg-action-primary text-[color:var(--color-action-primary-text)]",destructive:"bg-feedback-error-border text-text-inverse"};function a0(e){return !e||e==="default"||e==="brand"?"primary":e}function i0(e){let{variant:t="primary",size:r="md",isDisabled:o,fullWidth:n=false,isLoading:a=false}=e,i=a0(t),s=i==="unstyled"?"":`${_C} ${e0[i]}`;i!=="unstyled"&&(s+=` ${Ge[r].text} ${Ge[r].height} ${Ge[r].padding} ${Ge[r].gap}`),o||a?s+=` ${t0}`:s+=` ${r0}`,n?s+=` ${Um.full}`:s+=` ${Um.default}`;let c=i==="primary"?"focus-visible:outline-action-primary":void 0;return [s,Je(),c].filter(Boolean).join(" ")}function Z(e){let{icon:t,children:r,isLoading:o=false,loadingText:n,loadingIndicator:a,size:i="md",iconPosition:s="left",iconWeight:c,href:l,className:u,badgeNumber:d,badgeVariant:m="primary",badgePosition:p="top-right",style:g,target:f,rel:h,...b}=e,x=t?jsxRuntime.jsx(B,{name:t,size:i,weight:c}):null,y=jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[s==="left"&&x,typeof r=="function"?null:r,s==="right"&&x]}),v=jsxRuntime.jsxs("div",{className:"relative inline-flex items-center justify-center",children:[jsxRuntime.jsx("div",{className:"absolute inset-0 flex items-center justify-center",children:a||jsxRuntime.jsx(B,{name:"CircleNotch",size:i,className:"animate-spin","aria-hidden":"true"})}),jsxRuntime.jsx("div",{className:"invisible","aria-hidden":"true",children:y}),n&&jsxRuntime.jsx("span",{className:"sr-only",role:"status","aria-live":"polite",children:n})]}),S=(d??0)>0,w=tailwindMerge.twMerge(i0(e),u),N=l?{href:l,target:f,rel:h,...b}:{};if(l){let{onPress:k,onPressStart:P,onPressEnd:A,onPressChange:D,onPressUp:L,onAuxClick:R,onContextMenu:H,onDoubleClick:G,...Y}=b;Object.assign(N,Y);}let T=l?jsxRuntime.jsx(reactAriaComponents.Link,{...N,...o&&{"aria-busy":true},style:S?void 0:g,className:w,children:o?v:typeof r=="function"?(function(k){return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[s==="left"&&x,r(k),s==="right"&&x]})}):y}):jsxRuntime.jsx(reactAriaComponents.Button,{...b,...o&&{"aria-busy":true},style:S?void 0:g,className:w,children:o?v:typeof r=="function"?(function(k){return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[s==="left"&&x,r(k),s==="right"&&x]})}):y});return S?jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("relative flex",u),style:g,children:[T,jsxRuntime.jsx("span",{className:`absolute ${o0[p]} flex h-5 w-5 items-center justify-center rounded-full ${n0[m]} text-xs font-medium`,"aria-label":`${d} items`,children:d})]}):T}function sd({action:e,defaultVariant:t,defaultSize:r="lg"}){let o=!!e.formId;return jsxRuntime.jsx(Z,{type:o?"submit":"button",form:o?e.formId:void 0,size:e.size||r,variant:e.variant||t,onPress:o?void 0:e.onPress,isLoading:e.isLoading,isDisabled:e.isDisabled,children:e.label})}function Ao({primaryAction:e,secondaryAction:t,tertiaryAction:r,footerContent:o}){let n=e||t||r;return !n&&!o?null:jsxRuntime.jsxs("div",{className:`flex w-full flex-col items-center justify-center border-t p-4 ${o?"h-28":""}`,children:[o&&jsxRuntime.jsx("div",{className:"flex h-10 justify-center",children:o}),n&&jsxRuntime.jsxs("div",{className:"flex w-full items-center justify-between gap-3",children:[jsxRuntime.jsx("div",{children:r&&jsxRuntime.jsx(sd,{action:r,defaultVariant:"destructive"})}),jsxRuntime.jsxs("div",{className:"flex items-center gap-3",children:[t&&jsxRuntime.jsx(sd,{action:t,defaultVariant:"secondary"}),e&&jsxRuntime.jsx(sd,{action:e,defaultVariant:"primary"})]})]})]})}var s0={heading:{sm:jr.headingSm,md:jr.headingMd,lg:jr.headingLg,xl:jr.headingXl},display:{sm:jr.displaySm,md:jr.displayMd,lg:jr.displayLg,xl:jr.displayXl}},l0={page:"h-16 leading-[62px]"};function Qt({tag:e="h1",variant:t="heading",size:r="lg",height:o,className:n="",children:a}){let i=r==="xs"?"sm":r,s=s0[t][i],c=o?l0[o]:"";return jsxRuntime.jsx(e,{className:jt(s,"text-text-primary",c,n),children:a})}var Ht=({title:e,onClose:t,hideCloseIcon:r=false,titleAlign:o="left",hasBackArrow:n=false,onBack:a,headerContent:i})=>jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("relative flex h-16 w-full flex-shrink-0 items-center justify-between border-b px-6",e&&"border-b",o==="center"?"justify-center":""),children:[n&&jsxRuntime.jsx(Z,{variant:"icon",onPress:a,className:"absolute left-6","aria-label":"Go back",children:jsxRuntime.jsx(B,{name:"CaretLeft","data-testid":"back-arrow"})}),i||jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[e&&jsxRuntime.jsx(Qt,{size:"xs",children:e}),t&&!r&&jsxRuntime.jsx(Z,{variant:"icon",onPress:t,"aria-label":"Close dialog",children:jsxRuntime.jsx(B,{name:"X","data-testid":"close-button"})})]})]});var J=({width:e,height:t,variant:r="rect",animation:o="pulse",gradient:n=false,flex:a=false,stack:i,responsive:s,delay:c=0,adjustAnimationSpeedBasedOnWidth:l=false,ariaLabel:u,className:d,"data-testid":m})=>{let[p,g]=Oe.useState(c===0);if(Oe.useEffect(()=>{if(c>0){let S=setTimeout(()=>g(true),c);return ()=>clearTimeout(S)}},[c]),!p)return null;let f=n?"bg-gradient-to-r from-[var(--color-skeleton-base)] via-[var(--color-skeleton-highlight)] to-[var(--color-skeleton-base)]":"bg-[var(--color-skeleton-base)]",h=l&&e?(()=>{let S=typeof e=="number"?e:parseFloat(String(e));return isNaN(S)?"":`animation-duration-[${Math.max(.8,S/100)}s]`})():"",b=o==="pulse"?`animate-pulse ${h}`:o==="wave"?`relative overflow-hidden before:absolute before:inset-0 before:bg-gradient-to-r before:from-transparent before:via-[var(--color-skeleton-wave)] before:to-transparent before:animate-wave ${h}`:"",x="rounded-sm";r==="circle"&&(x="rounded-full"),r==="text"&&(x="h-4 w-full rounded-sm");let y=a?"flex-1 min-w-0":"",v=s?Object.entries(s).map(([S,w])=>`${S}:w-[${w}]`).join(" "):"";return i?jsxRuntime.jsx("div",{className:"space-y-2","data-testid":m,children:i.map((S,w)=>jsxRuntime.jsx("div",{className:tailwindMerge.twMerge(f,b,x,y,v,d),style:{width:S,height:t}},w))}):jsxRuntime.jsx("div",{className:tailwindMerge.twMerge(f,b,x,y,v,d),style:{width:e,height:t},role:"presentation","aria-hidden":!u,"aria-label":u??void 0,"data-testid":m})},Jm=({count:e=1,children:t,className:r,"data-testid":o})=>jsxRuntime.jsx("div",{className:r,"data-testid":o,children:Array.from({length:e}).map((n,a)=>jsxRuntime.jsx("div",{children:t},a))});var f0={outlined:"bg-background-surface border border-border-default",elevated:"bg-background-surface border-0 shadow-md",filled:"bg-background-muted border-0",ghost:"bg-transparent border-0 shadow-none"},g0="rounded-lg",cd={square:"aspect-square",video:"aspect-video",wide:"aspect-[2/1]",auto:""},b0={start:"justify-start",end:"justify-end",center:"justify-center",between:"justify-between"};function Ue({variant:e="outlined",className:t,children:r,isLoading:o=false,layout:n="default"}){return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("w-full overflow-hidden",f0[e],g0,n==="flex"&&"flex flex-col",t),"data-testid":"card",children:o?jsxRuntime.jsx(J,{width:"100%",height:"100%",className:"rounded-none"}):r})}function dd({title:e,subtitle:t,actions:r,className:o,isLoading:n=false}){return n?jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("p-6 pb-4",o),children:[jsxRuntime.jsxs("div",{className:"flex justify-between items-start mb-1",children:[jsxRuntime.jsx(J,{width:120,height:20}),jsxRuntime.jsx(J,{width:24,height:24})]}),t&&jsxRuntime.jsx(J,{width:200,height:16})]}):!e&&!t&&!r?null:jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("p-6 pb-4",o),children:jsxRuntime.jsxs("div",{className:"flex justify-between items-start gap-4",children:[jsxRuntime.jsxs("div",{className:"min-w-0 flex-1",children:[e&&jsxRuntime.jsx("div",{className:"mb-1",children:typeof e=="string"?jsxRuntime.jsx(Qt,{tag:"h3",size:"sm",className:"text-text-primary",children:e}):e}),t&&jsxRuntime.jsx("div",{className:ft("bodySm","text-text-secondary"),children:t})]}),r&&jsxRuntime.jsx("div",{className:"flex-shrink-0",children:r})]})})}function ud({src:e,alt:t,aspectRatio:r="auto",className:o,children:n,isLoading:a=false}){return a?jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("bg-background-muted",cd[r],o),children:jsxRuntime.jsx(J,{width:"100%",height:"100%"})}):n?jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("overflow-hidden",cd[r],o),children:n}):e?jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("overflow-hidden",cd[r],o),children:jsxRuntime.jsx("img",{src:e,alt:t||"",className:"w-full h-full object-cover",loading:"lazy"})}):null}function pd({className:e,children:t,isLoading:r=false,fill:o=false}){let a=e?.match(/p(?:t|b|l|r|x|y)?-(?:\d+(?:\.\d+)?|px|\[.+?\])/)?"":"px-6 py-4";return r?jsxRuntime.jsx("div",{className:tailwindMerge.twMerge(a,o&&"flex-1 flex flex-col min-h-0",e),children:jsxRuntime.jsxs("div",{className:"space-y-2",children:[jsxRuntime.jsx(J,{width:"100%",height:16}),jsxRuntime.jsx(J,{width:"80%",height:16}),jsxRuntime.jsx(J,{width:"60%",height:16})]})}):t?jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("px-6 py-4 text-text-primary",o&&"flex-1 flex flex-col min-h-0",e),children:t}):null}function md({className:e,children:t,align:r="end",isLoading:o=false}){return o?jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("px-6 py-4 flex gap-2 justify-end",e),children:[jsxRuntime.jsx(J,{width:80,height:32}),jsxRuntime.jsx(J,{width:60,height:32})]}):t?jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("px-6 py-4 flex items-center gap-2",b0[r],e),children:t}):null}Ue.Header=dd;Ue.Media=ud;Ue.Content=pd;Ue.Footer=md;var Vr=class extends Oe.Component{constructor(){super(...arguments);ja(this,"state",{hasError:false});ja(this,"handleRetry",()=>{this.setState({hasError:false,error:void 0}),typeof window<"u"&&window.location.reload();});}static getDerivedStateFromError(r){return {hasError:true,error:r}}componentDidCatch(r,o){console.error("Error Boundary caught an error:",r,o);}render(){return this.state.hasError?this.props.fallback?this.props.fallback:jsxRuntime.jsxs(Ue,{children:[this.props.title&&jsxRuntime.jsx(Ue.Header,{title:this.props.title}),jsxRuntime.jsx(Ue.Content,{children:jsxRuntime.jsxs("div",{className:"flex flex-col items-center justify-center gap-4","data-testid":"error-boundary",children:[jsxRuntime.jsx("p",{className:"text-feedback-error-text",children:this.state.error?.message||"Something went wrong"}),jsxRuntime.jsx("button",{className:"rounded bg-action-default px-4 py-2 text-[color:var(--color-action-default-text)] hover:bg-action-default-hover",onClick:this.handleRetry,children:"Retry"})]})})]}):this.props.children}};var v0=.3,C0=.5;function lt({children:e,title:t,headerContent:r,titleAlign:o="left",hideCloseIcon:n=false,hasBackArrow:a=false,onBack:i,isOpen:s,onClose:c,isDismissable:l=true,transparentOverlay:u=false,primaryAction:d,secondaryAction:m,footerContent:p,maxHeight:g="80vh",height:f,maxWidth:h="640px",contentPadding:b=true,showHandle:x=true,animationVariant:y="scale",className:v}){let[S,w]=Oe.useState(false),[N,T]=Oe.useState(0),[k,P]=Oe.useState(false),A=rs(s),D=A?.height??null,L=A?.keyboardOffset??0,R=Oe.useRef(null),H=Oe.useRef(null),G=Oe.useRef(null),Y=Oe.useRef({isDragging:false,startY:0,startTime:0,pointerId:null});Oe.useEffect(()=>{if(s){let M=setTimeout(()=>{w(true),setTimeout(()=>w(false),600);},400);return ()=>clearTimeout(M)}},[s]),Oe.useEffect(()=>{s||(T(0),P(false),Y.current={isDragging:false,startY:0,startTime:0,pointerId:null});},[s]),Oe.useEffect(()=>{let M=H.current;if(!M||!s)return;let W=null,I=C=>{let F=C.target;F&&["INPUT","TEXTAREA","SELECT"].includes(F.tagName)&&(W&&clearTimeout(W),W=setTimeout(()=>{F.scrollIntoView({block:"nearest",behavior:"smooth"});},320));};return M.addEventListener("focusin",I),()=>{M.removeEventListener("focusin",I),W&&clearTimeout(W);}},[s]);let U=Oe.useCallback(M=>{l&&(M.pointerType!=="touch"&&M.pointerType!=="pen"||(G.current&&(clearTimeout(G.current),G.current=null),Y.current={isDragging:true,startY:M.clientY,startTime:Date.now(),pointerId:M.pointerId},P(false),M.currentTarget.setPointerCapture(M.pointerId)));},[l]),q=Oe.useCallback(M=>{let{isDragging:W,startY:I,pointerId:C}=Y.current;if(!W||M.pointerId!==C)return;let F=M.clientY-I;T(Math.max(0,F));},[]),j=Oe.useCallback(M=>{let{isDragging:W,startY:I,startTime:C,pointerId:F}=Y.current;if(!W||M.pointerId!==F)return;let O=M.clientY-I,K=Date.now()-C,te=O/K;Y.current={isDragging:false,startY:0,startTime:0,pointerId:null};let _=(R.current?.getBoundingClientRect().height??0)*v0;(O>_||te>C0&&O>50)&&l?(c?.(),T(0)):(P(true),T(0),G.current=setTimeout(()=>{P(false),G.current=null;},200));},[l,c]);if(!s)return null;let Q=t||r,E=d||m||p;return jsxRuntime.jsx(Vr,{children:jsxRuntime.jsx(cr,{isOpen:s,onOpenChange:M=>{M||c?.();},isDismissable:l,transparent:u,style:{paddingBottom:L>0?`${L}px`:void 0,transition:"padding-bottom 0.25s ease-out"},className:"flex items-end justify-center p-0 sm:p-4",children:jsxRuntime.jsx(reactAriaComponents.Modal,{className:"w-full max-w-full p-0 sm:p-2 outline-none focus:outline-none focus-visible:outline-none ring-0 focus:ring-0 focus-visible:ring-0",isDismissable:l,children:jsxRuntime.jsx("div",{ref:R,className:tailwindMerge.twMerge("w-full",k&&"transition-transform duration-200"),style:{transform:N>0?`translateY(${N}px)`:void 0},children:jsxRuntime.jsxs(reactAriaComponents.Dialog,{className:tailwindMerge.twMerge("relative flex w-full flex-col overflow-hidden","bg-background-surface","shadow-2xl shadow-black/30 dark:shadow-black/60","border-t border-x border-border-default/40","outline-none focus:outline-none focus-visible:outline-none ring-0 focus:ring-0 focus-visible:ring-0 focus:shadow-none","origin-bottom",y==="scale"?"animate-[tray-enter-scale_400ms_cubic-bezier(0.32,0.72,0,1)]":"animate-[tray-enter_400ms_cubic-bezier(0.32,0.72,0,1)]",y==="scale"?"data-[exiting]:animate-[tray-exit-scale_250ms_cubic-bezier(0.32,0,0.67,0)]":"data-[exiting]:animate-[tray-exit_250ms_cubic-bezier(0.32,0,0.67,0)]",v),style:{maxWidth:h,...f?{height:f}:{maxHeight:/\d/.test(g)?D!==null?`min(${g}, ${Math.max(D-8,0)}px, 100dvh)`:`min(${g}, 100dvh)`:g}},children:[x&&jsxRuntime.jsx("div",{className:"absolute top-0 left-0 right-0 h-8 z-10 flex justify-center items-start pt-2 touch-none cursor-grab active:cursor-grabbing",onPointerDown:U,onPointerMove:q,onPointerUp:j,onPointerCancel:j,children:jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("h-1 w-12 rounded-full bg-border-muted transition-all duration-300","hover:bg-border-default hover:w-16",S&&"animate-[handle-wiggle_0.6s_ease-in-out]")})}),Q&&(a?jsxRuntime.jsx(Ht,{title:t,headerContent:r,titleAlign:o,hideCloseIcon:n||!c,hasBackArrow:true,onBack:i??(()=>{}),onClose:c||(()=>{})}):jsxRuntime.jsx(Ht,{title:t,headerContent:r,titleAlign:o,hideCloseIcon:n||!c,onClose:c||(()=>{})})),jsxRuntime.jsx("div",{ref:H,className:tailwindMerge.twMerge("flex-1 min-h-0 overflow-y-auto overscroll-contain",b?"p-4":"p-0"),children:e}),E&&jsxRuntime.jsx(Ao,{primaryAction:d,secondaryAction:m,footerContent:p})]})})})})})}lt.displayName="Tray";function fa({children:e,items:t,className:r,align:o="left",textAlign:n="left",size:a="md",onAction:i,header:s,footer:c,useMobileTray:l=true,popoverClassName:u}){let[d,m]=Oe.useState(false),{isMobile:p}=Xt();if(l&&p){let f=Oe__namespace.default.isValidElement(e)?Oe__namespace.default.cloneElement(e,{onPress:()=>m(true)}):e,x=(y=>{if(typeof y=="string")return y;if(Oe__namespace.default.isValidElement(y)){let v=y.props;if(typeof v.children=="string")return v.children;if(Array.isArray(v.children))return v.children.find(w=>typeof w=="string")||""}return ""})(e)||"Actions";return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("div",{className:r,children:f}),jsxRuntime.jsx(lt,{isOpen:d,onClose:()=>m(false),title:x,contentPadding:false,headerContent:s,footerContent:c,children:jsxRuntime.jsx("div",{className:"flex flex-col",children:t.map(y=>{let v=y.href&&!y.disabled?"a":"button";return jsxRuntime.jsxs(v,{...y.href&&!y.disabled?{href:y.href}:{},onClick:()=>{y.disabled||(y.onAction?y.onAction():i?.(y),m(false));},disabled:y.disabled,"data-testid":y.testId,className:tailwindMerge.twMerge("flex w-full items-center text-start transition-colors",!y.noPadding&&"px-6 py-3","border-b border-border-muted last:border-0",y.variant==="destructive"?"text-feedback-error-text hover:bg-feedback-error-background active:bg-feedback-error-background/80":"text-text-primary hover:bg-background-hover active:bg-background-hover/80",y.disabled&&"opacity-50 cursor-not-allowed"),children:[y.iconName&&jsxRuntime.jsx(B,{name:y.iconName,size:20,className:"mr-3 flex-shrink-0"}),jsxRuntime.jsx("div",{className:"flex flex-1 flex-col",children:y.render?y.render():jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("span",{className:y.subtitle?"font-medium":"",children:y.name}),y.subtitle&&jsxRuntime.jsx("span",{className:"text-sm text-text-secondary",children:y.subtitle})]})})]},y.id)})})})]})}return jsxRuntime.jsx("div",{className:r,children:jsxRuntime.jsxs(reactAriaComponents.MenuTrigger,{children:[e,jsxRuntime.jsx(st,{className:tailwindMerge.twMerge("w-fit min-w-[180px] overflow-auto rounded-[var(--control-border-radius)] border border-border-default","bg-background-surface shadow-lg","animate-in fade-in zoom-in-97","duration-200 ease-out","data-[exiting]:animate-out data-[exiting]:fade-out data-[exiting]:zoom-out-97","data-[exiting]:duration-150 data-[exiting]:ease-in",o==="right"?"origin-top-right":"origin-top-left",u),placement:o==="right"?"bottom end":"bottom start",children:jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("flex min-w-[180px] flex-col gap-1",u),children:[s?jsxRuntime.jsx("div",{className:"px-3 pb-2 pt-3",children:s}):null,jsxRuntime.jsx(reactAriaComponents.Menu,{className:"!outline-none",children:t.map(f=>jsxRuntime.jsx(T0,{id:f.id,href:f.href,onAction:()=>{f.onAction?f.onAction():i?.(f);},textAlign:n,size:a,iconName:f.iconName,isDisabled:f.disabled,variant:f.variant,subtitle:f.subtitle,render:f.render,noPadding:f.noPadding,"data-testid":f.testId,children:f.name},f.id))}),c?jsxRuntime.jsx("div",{className:"px-3 pb-3 pt-2",children:c}):null]})})]})})}function T0({textAlign:e="left",iconName:t,size:r="md",isDisabled:o,children:n,variant:a="default",subtitle:i,render:s,noPadding:c,...l}){let u={sm:"px-3 py-2 text-sm",md:i?"px-4 py-2.5 text-base":"px-4 py-2 text-base"},d="text-text-primary hover:bg-background-hover data-[focused]:bg-background-hover data-[focus-visible]:ring-2 data-[focus-visible]:ring-action-primary data-[focus-visible]:ring-inset",m={primary:d,default:d,destructive:"text-feedback-error-text hover:bg-feedback-error-background data-[focused]:bg-feedback-error-background data-[focus-visible]:ring-2 data-[focus-visible]:ring-feedback-error-border data-[focus-visible]:ring-inset"};return s?jsxRuntime.jsx(reactAriaComponents.MenuItem,{...l,isDisabled:o,className:tailwindMerge.twMerge("group box-border flex w-full cursor-pointer items-center rounded-sm outline-none transition-colors",!c&&u[r],m[a],e==="right"?"justify-end":"justify-start",o&&"pointer-events-none opacity-50"),children:s()}):jsxRuntime.jsxs(reactAriaComponents.MenuItem,{...l,isDisabled:o,className:tailwindMerge.twMerge("group box-border flex w-full cursor-pointer items-center rounded-sm outline-none transition-colors",!c&&u[r],m[a],e==="right"?"justify-end":"justify-start",o&&"pointer-events-none opacity-50"),children:[t&&e==="left"&&jsxRuntime.jsx(B,{name:t,size:r==="sm"?16:20,className:"mr-3 flex-shrink-0"}),jsxRuntime.jsxs("div",{className:"flex flex-1 flex-col",children:[jsxRuntime.jsx("span",{className:i?"font-medium":"",children:n}),i&&jsxRuntime.jsx("span",{className:"text-sm text-text-secondary",children:i})]}),t&&e==="right"&&jsxRuntime.jsx(B,{name:t,size:r==="sm"?16:20,className:"ml-3 flex-shrink-0"})]})}var fo=({className:e,size:t=24,color:r="text-action-brand"})=>jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("inline-block animate-spin rounded-full border-2 border-solid border-current border-r-transparent",r,e),style:{width:t,height:t},role:"status","aria-label":"loading",children:jsxRuntime.jsx("span",{className:"sr-only",children:"Loading..."})});function wr({state:e,message:t,className:r,customIndicator:o}){if(e!=="loading-more")return null;let n=jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("flex items-center justify-center gap-2 py-4","text-text-secondary",r),"aria-label":t||"Loading",children:[jsxRuntime.jsx(fo,{size:20,color:"text-text-secondary"}),t&&jsxRuntime.jsx("span",{className:"text-sm","aria-hidden":"true",children:t})]});return o||n}function Io({items:e,onLoadMore:t,hasMore:r,isLoading:o=false,loadingState:n,enableVirtualization:a,estimatedItemSize:i=50,overscan:s=5,scrollElement:c,loadMoreThreshold:l=100}){let u=Oe.useRef(null),d=Oe.useRef(null),m=Oe.useRef(false),[p,g]=Oe.useState(0);Oe.useEffect(()=>{d.current&&(c||u.current)&&g(T=>T+1);},[c,e.length]);let f=n||(o?e.length===0?"loading":"loading-more":"idle"),h=f==="loading",b=f==="loading-more",x=a!==void 0?a:e.length>=100,y=reactVirtual.useVirtualizer({count:e.length,getScrollElement:()=>c||u.current,estimateSize:()=>i,overscan:s}),v=x?y:null,S=x?y.getVirtualItems():[];Oe.useEffect(()=>{let T=d.current,k=c||u.current;if(!T||!k||!r||o||!t)return;let P=new IntersectionObserver(A=>{let[D]=A;D?.isIntersecting&&!m.current&&r&&t&&(m.current=true,Promise.resolve(t()).finally(()=>{m.current=false;}));},{root:k,rootMargin:`0px 0px ${l}px 0px`,threshold:0});return P.observe(T),()=>{P.disconnect();}},[r,o,t,c,l,p]);let w=Oe.useCallback((T,k)=>{v?v.scrollToIndex(T,k):u.current&&u.current.children[T]?.scrollIntoView({behavior:"smooth",block:k?.align||"start"});},[v]),N=Oe.useCallback(()=>{v?v.scrollToIndex(0,{align:"start"}):u.current&&u.current.scrollTo({top:0,behavior:"smooth"});},[v]);return {virtualizer:v,virtualItems:S,computedLoadingState:f,isInitialLoad:h,isLoadingMore:b,scrollRef:u,loadMoreRef:d,scrollToIndex:w,scrollToTop:N}}var ga=Oe.createContext({variant:"timeline",size:"md"});function rf(){return Oe.useContext(ga)}function bs(e){return Oe.isValidElement(e)&&e.type===ys}function B0(e){return Oe.isValidElement(e)&&e.type===hs}function vd({variant:e="timeline",size:t="md",className:r,children:o,items:n,renderItem:a,isLoading:i=false,loadingState:s,error:c=null,renderLoadingSkeleton:l,loadingSkeletonCount:u=5,emptyMessage:d="No activity found.",onLoadMore:m,hasMore:p=false,enableVirtualization:g,estimatedItemSize:f,loadingIndicator:h,height:b,maxHeight:x,...y}){let v=Oe.useRef(null),{isMobile:S}=Xt(),w=S?"stacked":e,N=n!==void 0&&a!==void 0,{scrollRef:T,loadMoreRef:k,virtualizer:P,virtualItems:A,isLoadingMore:D,computedLoadingState:L}=Io({items:n||[],onLoadMore:N?m:void 0,hasMore:N?p:false,isLoading:i,loadingState:s,enableVirtualization:N?g:false,estimatedItemSize:f||(w==="stacked"?120:150),overscan:5}),R=N&&T?T:v,H=Oe.useMemo(()=>({variant:w,size:t}),[w,t]),G=w==="timeline"?t==="sm"?"gap-4":"gap-6":"gap-0",Y=w==="stacked"?"divide-y divide-border-subtle rounded-lg border border-border-subtle bg-background-surface":"",U={};if(N&&m&&(b?(U.height=typeof b=="number"?`${b}px`:b,U.overflowY="auto"):x?(U.maxHeight=typeof x=="number"?`${x}px`:x,U.overflowY="auto"):(U.height="600px",U.overflowY="auto")),N){let Q=L==="loading"||i&&(!n||n.length===0);if(Q){let M=l?jsxRuntime.jsx(jsxRuntime.Fragment,{children:Array.from({length:u}).map((W,I)=>jsxRuntime.jsx("div",{children:l()},`skeleton-${I}`))}):jsxRuntime.jsx(jsxRuntime.Fragment,{children:Array.from({length:u}).map((W,I)=>{let C=t==="sm"?"gap-2":"gap-3";if(w==="timeline"){let F=t==="sm"?"pt-3":"pt-4",O=t==="sm"?"p-3":"p-4";return jsxRuntime.jsxs("div",{className:"group relative grid items-start gap-4 grid-cols-[3rem_1fr]",children:[jsxRuntime.jsxs("div",{className:`relative flex h-full flex-col items-center ${F}`,children:[jsxRuntime.jsx(J,{width:32,height:32,variant:"circle"}),I<u-1&&jsxRuntime.jsx("span",{className:"absolute top-[2rem] left-1/2 w-0 border-l-2 border-dotted -translate-x-1/2 h-[calc(100%+2.5rem)] border-border-muted"})]}),jsxRuntime.jsxs("div",{className:`min-w-0 flex flex-col ${C} ${O} rounded-md border border-border-subtle bg-background-surface`,children:[jsxRuntime.jsxs("div",{className:"flex items-center justify-between gap-3",children:[jsxRuntime.jsx(J,{width:"50%",height:16}),jsxRuntime.jsx(J,{width:"15%",height:12})]}),jsxRuntime.jsx(J,{width:"85%",height:t==="sm"?14:15}),jsxRuntime.jsx(J,{width:"70%",height:t==="sm"?14:15})]})]},`skeleton-${I}`)}else return jsxRuntime.jsxs("div",{className:`flex flex-col ${t==="sm"?"px-3 py-3":"px-4 py-4"}`,children:[jsxRuntime.jsxs("div",{className:"flex items-center gap-3",children:[jsxRuntime.jsx(J,{width:24,height:24,variant:"circle"}),jsxRuntime.jsx(J,{width:"50%",height:16})]}),jsxRuntime.jsxs("div",{className:`mt-3 flex flex-col ${C}`,children:[jsxRuntime.jsx(J,{width:"85%",height:t==="sm"?14:15}),jsxRuntime.jsx(J,{width:"70%",height:t==="sm"?14:15}),jsxRuntime.jsx(J,{width:"20%",height:12})]})]},`skeleton-${I}`)})});return jsxRuntime.jsx(ga.Provider,{value:H,children:jsxRuntime.jsx("div",{ref:R,"data-slot":"feed","data-variant":w,className:tailwindMerge.twMerge("flex flex-col",G,Y,r),style:U,...y,children:M})})}if(c)return jsxRuntime.jsx(ga.Provider,{value:H,children:jsxRuntime.jsx("div",{ref:R,"data-slot":"feed","data-variant":w,className:tailwindMerge.twMerge("flex flex-col",G,Y,r),style:U,...y,children:jsxRuntime.jsx("div",{className:"p-4 text-center text-feedback-error-text",children:c})})});if(!n||n.length===0)return jsxRuntime.jsx(ga.Provider,{value:H,children:jsxRuntime.jsx("div",{ref:R,"data-slot":"feed","data-variant":w,className:tailwindMerge.twMerge("flex flex-col",G,Y,r),style:U,...y,children:jsxRuntime.jsx("div",{className:"p-4 text-center text-text-secondary",children:d})})});let E=P?A?.map(M=>({virtualItem:M,item:n[M.index],index:M.index}))||[]:n.map((M,W)=>({item:M,index:W,virtualItem:null}));return jsxRuntime.jsx(ga.Provider,{value:H,children:jsxRuntime.jsxs("div",{ref:R,"data-slot":"feed","data-variant":w,className:tailwindMerge.twMerge("flex flex-col",G,Y,r),style:{...U,position:P?"relative":void 0},...y,children:[P?jsxRuntime.jsxs("div",{style:{height:`${P.getTotalSize()}px`,position:"relative"},children:[E.map(({item:M,index:W,virtualItem:I})=>{if(!M||!I)return null;let C=a(M,W),F=w==="timeline"&&Oe.isValidElement(C)&&bs(C)?Oe.cloneElement(C,{showConnector:W!==n.length-1}):C;return jsxRuntime.jsx("div",{style:{position:"absolute",top:0,left:0,width:"100%",transform:`translateY(${I.start}px)`},"data-index":I.index,ref:P.measureElement,children:F},`item-${W}`)}),D&&jsxRuntime.jsx("div",{style:{position:"absolute",top:`${P.getTotalSize()}px`,left:0,width:"100%"},children:h||jsxRuntime.jsx(wr,{state:"loading-more"})})]}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[E.map(({item:M,index:W})=>{let I=a(M,W);if(w==="timeline"&&Oe.isValidElement(I)&&bs(I)){let C=W===n.length-1;return jsxRuntime.jsx("div",{children:Oe.cloneElement(I,{showConnector:!C})},`item-${W}`)}return jsxRuntime.jsx("div",{children:I},`item-${W}`)}),D&&(h||jsxRuntime.jsx(wr,{state:"loading-more"}))]}),m&&p&&!Q&&jsxRuntime.jsx("div",{ref:k,style:P?{position:"absolute",top:`${P.getTotalSize()}px`,left:0,width:"100%",height:1}:{height:1,width:"100%"}})]})})}let q=Oe.Children.toArray(o),j=q.map((Q,E)=>{if(bs(Q)){let M=Q.props.showConnector??(w==="timeline"&&E<q.length-1),W=w==="timeline"&&E>0;return Oe.cloneElement(Q,{showConnector:M,showIncomingConnector:W})}if(B0(Q)){let M=E===q.length-1;return Oe.cloneElement(Q,{__isLastGroup:M,__isFirstGroup:E===0})}return Q});return jsxRuntime.jsx(ga.Provider,{value:H,children:jsxRuntime.jsx("div",{"data-slot":"feed","data-variant":w,className:tailwindMerge.twMerge("flex flex-col",G,Y,r),...y,children:j})})}vd.displayName="ActivityFeed";function hs(e){let{variant:t,size:r}=rf(),{title:o,description:n,actions:a,children:i,className:s,__isLastGroup:c=false,__isFirstGroup:l=false,...u}=e,d=Oe.Children.toArray(i),m=d.map((f,h)=>{if(bs(f)){let b=f.props.showConnector??(t==="timeline"&&!(c&&h===d.length-1));return Oe.cloneElement(f,{showConnector:b,showIncomingConnector:t==="timeline"&&!(l&&h===0)})}return f}),p=t==="timeline"?"pl-[3rem]":r==="sm"?"px-3":"px-4",g=r==="sm"?"gap-3":"gap-4";return jsxRuntime.jsxs("section",{"data-slot":"group",className:tailwindMerge.twMerge("flex flex-col",s),...u,children:[(o||n||a)&&jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("mb-2 flex flex-wrap items-end justify-between gap-2",p),children:[jsxRuntime.jsxs("div",{className:"flex min-w-0 flex-col gap-1",children:[o&&jsxRuntime.jsx("span",{className:"text-xs font-semibold uppercase tracking-wide text-text-secondary",children:o}),n&&jsxRuntime.jsx("span",{className:"text-sm text-text-secondary",children:n})]}),a&&jsxRuntime.jsx("div",{className:"flex flex-shrink-0 items-center gap-2",children:a})]}),jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("flex flex-col",g),children:m})]})}hs.displayName="ActivityFeedGroup";var ef={neutral:"bg-background-muted text-text-secondary border-border-muted",brand:"bg-background-muted text-action-brand border-action-brand/30",success:"bg-background-muted text-feedback-success-text border-feedback-success-border/40",warning:"bg-background-muted text-feedback-warning-text border-feedback-warning-border/40",danger:"bg-background-muted text-feedback-error-text border-feedback-error-border/40",info:"bg-background-muted text-feedback-info-text border-feedback-info-border/40"},V0={neutral:"bg-background-subtle",brand:"bg-action-brand/5",success:"bg-feedback-success-background",warning:"bg-feedback-warning-background",danger:"bg-feedback-error-background",info:"bg-feedback-info-background"},z0={neutral:"border-border-muted",brand:"border-action-brand",success:"border-feedback-success-border",warning:"border-feedback-warning-border",danger:"border-feedback-error-border",info:"border-feedback-info-border"};function ys(e){let{variant:t,size:r}=rf(),{title:o,description:n,timestamp:a,meta:i,media:s,actions:c,visual:l,icon:u,iconWeight:d,tone:m="neutral",surface:p,isHighlighted:g=false,showConnector:f=true,hideIndicator:h=false,interactive:b,className:x,children:y,onKeyDown:v,showIncomingConnector:S,...w}=e,N=l??(u?jsxRuntime.jsx(B,{name:u,weight:d||"fill",className:"h-4 w-4"}):null),T=p??(t==="stacked"?"minimal":"subtle"),k=r==="sm"?"gap-2":"gap-3",P="text-xs text-text-secondary",A=r==="sm"?"text-sm":"text-[15px]",D="text-xs text-text-secondary",L=b??typeof w.onClick=="function",R=E=>{if(!L){v?.(E);return}E.key===" "?E.preventDefault():E.key==="Enter"&&(E.preventDefault(),E.currentTarget.click()),v?.(E);},H=E=>{L&&E.key===" "&&(E.preventDefault(),E.currentTarget.click());},G=L?tailwindMerge.twMerge("group cursor-pointer",Je()):void 0,U=jsxRuntime.jsxs("div",{"data-slot":"connector",className:tailwindMerge.twMerge("relative flex h-full flex-col items-center",T==="minimal"?r==="sm"?"pt-2":"pt-3":r==="sm"?"pt-3":"pt-4"),children:[jsxRuntime.jsx("span",{"data-slot":"indicator",className:tailwindMerge.twMerge("relative z-10 flex h-8 w-8 flex-shrink-0 items-center justify-center rounded-full border text-sm font-medium shadow-sm ring-2 ring-background-surface",ef[m]),children:N}),t==="timeline"&&f&&jsxRuntime.jsx("span",{"data-slot":"separator",className:"absolute top-[2rem] left-1/2 w-0 border-l-2 border-dotted -translate-x-1/2 h-[calc(100%+2.5rem)] border-border-muted"})]}),q=g?tailwindMerge.twMerge(V0[m],T==="minimal"?"rounded-md border border-border-muted":z0[m]):"";if(t==="stacked")return jsxRuntime.jsxs("div",{"data-slot":"item","data-variant":"stacked",role:L?"button":void 0,tabIndex:L?0:void 0,className:tailwindMerge.twMerge("flex flex-col",r==="sm"?"px-3 py-3":"px-4 py-4",{minimal:"",subtle:"bg-background-subtle",solid:"bg-background-muted"}[T],q,G,L?"transition-colors hover:bg-background-subtle/80":"",x),onKeyDown:R,onKeyUp:H,...w,children:[jsxRuntime.jsxs("div",{className:"flex items-center gap-3",children:[!h&&jsxRuntime.jsx("span",{"data-slot":"indicator",className:tailwindMerge.twMerge("flex h-6 w-6 flex-shrink-0 items-center justify-center rounded-full border text-sm font-medium shadow-sm ring-2 ring-background-surface",ef[m]),children:N}),jsxRuntime.jsx("div",{"data-slot":"title",className:"min-w-0 flex-1 text-sm font-semibold text-text-primary",children:o})]}),jsxRuntime.jsxs("div",{"data-slot":"content",className:tailwindMerge.twMerge("mt-3 flex flex-col",k),children:[n&&jsxRuntime.jsx("div",{"data-slot":"description",className:tailwindMerge.twMerge("text-text-secondary",A),children:n}),i&&jsxRuntime.jsx("div",{className:D,children:i}),s&&jsxRuntime.jsx("div",{className:"flex flex-col gap-2 text-sm text-text-secondary",children:s}),y,c&&jsxRuntime.jsx("div",{className:"flex flex-wrap gap-2 pt-1",children:c}),a&&jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("-mt-1.5",P),children:a})]})]});let j=T==="minimal"?r==="sm"?"py-2":"py-3":r==="sm"?"p-3":"p-4",Q={minimal:"",subtle:"rounded-md border border-border-subtle bg-background-surface",solid:"rounded-md bg-background-muted shadow-sm"};return jsxRuntime.jsxs("div",{"data-slot":"item","data-variant":"timeline",role:L?"button":void 0,tabIndex:L?0:void 0,className:tailwindMerge.twMerge("group relative grid items-start gap-4 grid-cols-[3rem_1fr]",G,x),onKeyDown:R,onKeyUp:H,...w,children:[h?jsxRuntime.jsx("div",{}):U,jsxRuntime.jsxs("div",{"data-slot":"content",className:tailwindMerge.twMerge("min-w-0 flex flex-col",k,j,Q[T],q,L?"transition-colors group-hover:bg-background-subtle/70":""),children:[jsxRuntime.jsxs("div",{className:"flex items-center justify-between gap-3",children:[jsxRuntime.jsx("div",{"data-slot":"title",className:"min-w-0 flex-1 text-sm font-semibold text-text-primary",children:o}),a&&jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("flex-shrink-0",P),children:a})]}),n&&jsxRuntime.jsx("div",{"data-slot":"description",className:tailwindMerge.twMerge("text-text-secondary",A),children:n}),i&&jsxRuntime.jsx("div",{className:D,children:i}),s&&jsxRuntime.jsx("div",{className:"flex flex-col gap-2 text-sm text-text-secondary",children:s}),y,c&&jsxRuntime.jsx("div",{className:"flex flex-wrap gap-2 pt-2",children:c})]})]})}ys.displayName="ActivityItem";function Nr({isOpen:e,onClose:t,title:r,headerContent:o,titleAlign:n="left",hideCloseIcon:a=false,hasBackArrow:i=false,onBack:s,children:c,primaryAction:l,secondaryAction:u,tertiaryAction:d,footerContent:m,transparentOverlay:p=false,maxWidth:g="600px",minWidth:f="400px",maxHeight:h="85vh",height:b,mobileMaxHeight:x="90vh",mobileHeight:y,contentPadding:v=true,className:S}){let w=Jt("(max-width: 767px)"),N=rs(w&&e===void 0),T=N?.height??null,k=N?.keyboardOffset??0,P=Oe.useRef(null),A=Oe.useCallback(()=>{P.current&&P.current.scrollTop!==0&&(P.current.scrollTop=0);},[]),D=Oe.useRef(null),L=Oe.useRef(null);Oe.useEffect(()=>{let U=L.current;if(!U||!w)return;let q=null,j=Q=>{let E=Q.target;E&&["INPUT","TEXTAREA","SELECT"].includes(E.tagName)&&(q&&clearTimeout(q),q=setTimeout(()=>{E.scrollIntoView({block:"nearest",behavior:"smooth"});},320));};return U.addEventListener("focusin",j),()=>{U.removeEventListener("focusin",j),q&&clearTimeout(q);}},[w]);let R=Oe.useCallback(()=>{D.current&&D.current.scrollTop!==0&&(D.current.scrollTop=0);},[]);if(e===false)return null;let H=r||o,G=l||u||d||m,Y=e!==void 0;return w?Y?jsxRuntime.jsx(lt,{isOpen:e,onClose:t,title:r,headerContent:o,titleAlign:n,hideCloseIcon:a,hasBackArrow:i,onBack:s,primaryAction:l,secondaryAction:u,footerContent:m,transparentOverlay:p,maxHeight:x,height:y,maxWidth:g,contentPadding:v,showHandle:true,animationVariant:"scale",className:S,children:c}):jsxRuntime.jsx(Vr,{children:jsxRuntime.jsx(cr,{isDismissable:true,transparent:p,style:{paddingBottom:k>0?`${k}px`:void 0,transition:"padding-bottom 0.25s ease-out"},className:"flex items-end justify-center",children:jsxRuntime.jsx(reactAriaComponents.Modal,{className:"w-full p-0 outline-none focus:outline-none focus-visible:outline-none ring-0 focus:ring-0 focus-visible:ring-0",children:jsxRuntime.jsxs(reactAriaComponents.Dialog,{ref:P,onScroll:A,className:tailwindMerge.twMerge("relative flex w-full flex-col","bg-background-surface","shadow-2xl shadow-black/20","border-t border-x border-border-default/40","rounded-t-xl","overflow-hidden","animate-in slide-in-from-bottom","duration-300 ease-out","data-[exiting]:animate-out data-[exiting]:slide-out-to-bottom","data-[exiting]:duration-200 data-[exiting]:ease-in",S),style:{...y?{height:y}:{maxHeight:/\d/.test(x)?T!==null?`min(${x}, ${Math.max(T-8,0)}px, 100dvh)`:`min(${x}, 100dvh)`:x}},children:[jsxRuntime.jsx("div",{className:"flex justify-center pt-2",children:jsxRuntime.jsx("div",{className:"h-1.5 w-12 rounded-full bg-border-muted"})}),H&&(i?jsxRuntime.jsx(Ht,{title:r,headerContent:o,titleAlign:n,hideCloseIcon:a||!t,hasBackArrow:true,onBack:s,onClose:t||(()=>{})}):jsxRuntime.jsx(Ht,{title:r,headerContent:o,titleAlign:n,hideCloseIcon:a||!t,onClose:t||(()=>{})})),jsxRuntime.jsx("div",{ref:L,className:tailwindMerge.twMerge("flex-1 min-h-0 overflow-y-auto overscroll-contain",v?"px-6 py-6":"p-0"),children:c}),G&&jsxRuntime.jsx(Ao,{primaryAction:l,secondaryAction:u,tertiaryAction:d,footerContent:m})]})})})}):jsxRuntime.jsx(Vr,{children:jsxRuntime.jsx(cr,{...Y?{isOpen:e,onOpenChange:U=>{!U&&t&&t();}}:{},isDismissable:true,transparent:p,className:"flex items-center justify-center",children:jsxRuntime.jsx(reactAriaComponents.Modal,{className:"w-full p-4 outline-none focus:outline-none focus-visible:outline-none ring-0 focus:ring-0 focus-visible:ring-0",style:{maxWidth:g},children:jsxRuntime.jsxs(reactAriaComponents.Dialog,{ref:D,onScroll:R,className:tailwindMerge.twMerge("relative flex w-full flex-col","bg-background-surface","shadow-2xl shadow-black/20","border border-border-default/50","rounded-md","overflow-hidden","outline-none focus:outline-none focus-visible:outline-none ring-0 focus:ring-0","animate-in fade-in zoom-in-96 slide-in-from-bottom-2","duration-300 ease-out","data-[exiting]:animate-out data-[exiting]:fade-out data-[exiting]:zoom-out-95","data-[exiting]:duration-200 data-[exiting]:ease-in",S),style:{minWidth:f,...b?{height:b}:{maxHeight:h}},children:[H&&(i?jsxRuntime.jsx(Ht,{title:r,headerContent:o,titleAlign:n,hideCloseIcon:a||!t,hasBackArrow:true,onBack:s,onClose:t||(()=>{})}):jsxRuntime.jsx(Ht,{title:r,headerContent:o,titleAlign:n,hideCloseIcon:a||!t,onClose:t||(()=>{})})),jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("flex-1 min-h-0 overflow-y-auto",v?"px-6 py-6":"p-0"),children:c}),G&&jsxRuntime.jsx(Ao,{primaryAction:l,secondaryAction:u,tertiaryAction:d,footerContent:m})]})})})})}function cf({isOpen:e,onClose:t,title:r,message:o,confirmLabel:n="OK",confirmVariant:a="primary",maxWidth:i="400px",minWidth:s="320px"}){return jsxRuntime.jsx(Nr,{isOpen:e,onClose:t,title:r,maxWidth:i,minWidth:s,primaryAction:{label:n,onPress:t,variant:a},children:jsxRuntime.jsx("div",{className:"text-text-primary",children:o})})}var Fo={xs:16,sm:20,md:24,lg:32,xl:40,"2xl":48},dr=Oe.memo(({name:e,size:t="md",color:r,weight:o="regular",className:n,ariaLabel:a,...i})=>{let s=H0__namespace[e];if(!s)return null;let c=typeof t=="string"?t in Fo?Fo[t]:Fo.md:t,l=tailwindMerge.twMerge("inline-block flex-shrink-0",!r&&"text-current",n);return jsxRuntime.jsx(s,{...i,size:c,color:r,weight:o,className:l,"aria-label":a||`${e} icon`,"data-testid":`icon-${e}`})});dr.displayName="IconSSR";var W0=Oe.memo(({variant:e="subtle",shape:t="square",containerSize:r,containerClassName:o,size:n="md",className:a,name:i,color:s,weight:c,ariaLabel:l,ref:u,...d})=>{let m=typeof n=="string"?n in Fo?Fo[n]:Fo.md:n,p=r?typeof r=="string"?r in Fo?Fo[r]:m*1.75:r:m*1.75,g=tailwindMerge.twMerge("inline-flex items-center justify-center flex-shrink-0",t==="circle"?"rounded-full":"rounded-lg",e==="subtle"&&"bg-background-muted",e==="solid"&&"bg-action-brand text-[color:var(--color-action-brand-text)]",e==="outline"&&"border-2 border-current",o);return jsxRuntime.jsx("div",{className:g,style:{width:p,height:p},children:jsxRuntime.jsx(dr,{...d,name:i,size:n,color:s,weight:c,className:a,ariaLabel:l})})});W0.displayName="IconSSRWithContainer";var ba=({className:e,showWordmark:t=true,width:r,fill:o})=>{let n,a;if(o?o.startsWith("fill-")?a=o:n=o:e?a=e:n="var(--color-text-primary)",t){let c=r||270,l=c/270*80;return jsxRuntime.jsxs("svg",{width:c,height:l,viewBox:"0 0 270 80",xmlns:"http://www.w3.org/2000/svg",className:a,style:n?{fill:n}:void 0,children:[jsxRuntime.jsxs("g",{clipPath:"url(#clip0_796_283)",children:[jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0.223654 20.2934C0.417233 19.8234 0.873598 19.517 1.37984 19.517H20.5909C21.282 19.517 21.8422 20.0798 21.8422 20.774V40.049C21.8422 40.5572 21.5375 41.0155 21.0702 41.2102C20.6028 41.405 20.0647 41.2977 19.7067 40.9385L0.495628 21.6635C0.137428 21.3041 0.030075 20.7633 0.223654 20.2934ZM4.40349 22.0311L19.3396 37.017V22.0311H4.40349Z"}),jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M38.6458 20.2934C38.8394 19.8234 39.2958 19.517 39.802 19.517H59.013C59.7041 19.517 60.2642 20.0798 60.2642 20.774V40.049C60.2642 40.5572 59.9597 41.0155 59.4923 41.2102C59.025 41.405 58.4867 41.2977 58.1289 40.9385L38.9178 21.6635C38.5595 21.3041 38.4522 20.7633 38.6458 20.2934ZM42.8255 22.0311L57.7618 37.017V22.0311H42.8255Z"}),jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M19.4347 58.8447C19.6283 58.3747 20.0847 58.0685 20.5909 58.0685H39.802C40.493 58.0685 41.0532 58.6312 41.0532 59.3255V78.6005C41.0532 79.1087 40.7486 79.567 40.2813 79.7617C39.8139 79.9562 39.2757 79.849 38.9178 79.49L19.7067 60.215C19.3485 59.8555 19.2411 59.3147 19.4347 58.8447ZM23.6146 60.5825L38.5508 75.5682V60.5825H23.6146Z"}),jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M39.3227 58.1643C39.79 57.9695 40.3283 58.0768 40.6861 58.436L59.8972 77.711C60.2555 78.0703 60.3628 78.6113 60.1692 79.081C59.9756 79.551 59.5192 79.8575 59.013 79.8575H39.802C39.1109 79.8575 38.5508 79.2948 38.5508 78.6005V59.3255C38.5508 58.8173 38.8554 58.359 39.3227 58.1643ZM41.0532 62.3575V77.3433H55.9893L41.0532 62.3575Z"}),jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M39.3227 19.6129C39.79 19.4182 40.3283 19.5254 40.6861 19.8846L59.8972 39.1595C60.2555 39.519 60.3628 40.0598 60.1692 40.5298C59.9756 40.9995 59.5192 41.306 59.013 41.306H39.802C39.1109 41.306 38.5508 40.7433 38.5508 40.049V20.7741C38.5508 20.2658 38.8554 19.8075 39.3227 19.6129ZM41.0532 23.8061V38.792H55.9893L41.0532 23.8061Z"}),jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M39.3227 38.8885C39.79 38.694 40.3283 38.8012 40.6861 39.1602L59.8972 58.4352C60.2555 58.7945 60.3628 59.3355 60.1692 59.8055C59.9756 60.2752 59.5192 60.5817 59.013 60.5817H39.802C39.1109 60.5817 38.5508 60.019 38.5508 59.3247V40.0497C38.5508 39.5415 38.8554 39.0832 39.3227 38.8885ZM41.0532 43.0817V58.0675H55.9893L41.0532 43.0817Z"}),jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M38.6458 39.569C38.8394 39.0992 39.2958 38.7927 39.802 38.7927H59.013C59.7041 38.7927 60.2642 39.3555 60.2642 40.0497V59.3247C60.2642 59.833 59.9597 60.2912 59.4923 60.486C59.025 60.6805 58.4867 60.5732 58.1289 60.2142L38.9178 40.9392C38.5595 40.5797 38.4522 40.039 38.6458 39.569ZM42.8255 41.3067L57.7618 56.2927V41.3067H42.8255Z"}),jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M38.6458 58.8447C38.8394 58.3747 39.2958 58.0685 39.802 58.0685H59.013C59.7041 58.0685 60.2642 58.6312 60.2642 59.3255V78.6005C60.2642 79.1087 59.9597 79.567 59.4923 79.7617C59.025 79.9562 58.4867 79.849 58.1289 79.49L38.9178 60.215C38.5595 59.8555 38.4522 59.3147 38.6458 58.8447ZM42.8255 60.5825L57.7618 75.5682V60.5825H42.8255Z"}),jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M58.5338 19.6129C59.0011 19.4182 59.5394 19.5254 59.8972 19.8846L79.1083 39.1595C79.4666 39.519 79.5739 40.0598 79.3803 40.5298C79.1867 40.9995 78.7303 41.306 78.2241 41.306H59.013C58.322 41.306 57.7618 40.7433 57.7618 40.049V20.7741C57.7618 20.2658 58.0664 19.8075 58.5338 19.6129ZM60.2643 23.8061V38.792H75.2006L60.2643 23.8061Z"}),jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M58.5338 0.338803C59.0011 0.144135 59.5394 0.251385 59.8972 0.610565L79.1083 19.8855C79.4666 20.2449 79.5739 20.7857 79.3803 21.2556C79.1867 21.7256 78.7303 22.032 78.2241 22.032H59.013C58.322 22.032 57.7618 21.4692 57.7618 20.775V1.50003C57.7618 0.99174 58.0664 0.533468 58.5338 0.338803ZM60.2643 4.53208V19.5179H75.2006L60.2643 4.53208Z"}),jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M57.8569 20.2934C58.0505 19.8234 58.5069 19.517 59.013 19.517H78.2241C78.9151 19.517 79.4753 20.0798 79.4753 20.774V40.049C79.4753 40.5572 79.1707 41.0155 78.7034 41.2102C78.236 41.405 77.6978 41.2977 77.3399 40.9385L58.1289 21.6635C57.7705 21.3041 57.6633 20.7633 57.8569 20.2934ZM62.0365 22.0311L76.9729 37.017V22.0311H62.0365Z"}),jsxRuntime.jsx("path",{d:"M269.838 49.4457H249.005C249.266 51.801 250.162 53.6985 251.695 55.1377C253.225 56.577 255.134 57.2967 257.416 57.2967C259.307 57.2967 260.887 56.8715 262.159 56.021C263.463 55.1377 264.408 53.9927 264.996 52.5862H269.251C268.502 54.9415 267.084 56.937 264.996 58.5725C262.943 60.208 260.414 61.026 257.416 61.026C255.069 61.026 252.917 60.4697 250.961 59.3575C249.037 58.2127 247.504 56.6587 246.363 54.696C245.255 52.7332 244.7 50.558 244.7 48.17C244.7 45.782 245.255 43.6067 246.363 41.644C247.504 39.6812 249.037 38.1437 250.961 37.0315C252.917 35.8867 255.069 35.3142 257.416 35.3142C259.73 35.3142 261.833 35.8702 263.724 36.9825C265.615 38.0947 267.098 39.6485 268.176 41.644C269.283 43.6395 269.838 45.913 269.838 48.4645V49.4457ZM257.416 39.0432C255.263 39.0432 253.439 39.6812 251.939 40.957C250.47 42.2327 249.542 43.9337 249.152 46.06H265.583C265.192 43.9992 264.262 42.3145 262.796 41.006C261.36 39.6975 259.568 39.0432 257.416 39.0432Z"}),jsxRuntime.jsx("path",{d:"M228.356 60.5352V35.8049H232.219V39.7794H232.464C233.05 38.5689 233.963 37.5712 235.202 36.7862C236.474 35.9684 237.974 35.5594 239.701 35.5594H243.125V39.4359H239.701C237.517 39.4359 235.757 40.1554 234.42 41.5949C233.083 43.0342 232.414 44.9152 232.414 47.2377V60.5352H228.356Z"}),jsxRuntime.jsx("path",{d:"M208.607 61.0259C205.64 61.0259 203.326 60.1262 201.663 58.3272C200 56.4952 199.169 53.8947 199.169 50.5252V35.8047H203.228V49.8874C203.228 52.2427 203.766 54.0744 204.842 55.3829C205.95 56.6587 207.532 57.2967 209.586 57.2967C211.02 57.2967 212.308 56.9694 213.449 56.3152C214.623 55.6284 215.536 54.6959 216.188 53.5184C216.84 52.3407 217.166 50.9997 217.166 49.4949V35.8047H221.225V60.5352H217.313V56.5607H217.068C216.286 57.9019 215.161 58.9814 213.694 59.7992C212.226 60.6169 210.531 61.0259 208.607 61.0259Z"}),jsxRuntime.jsx("path",{d:"M186.736 39.534V56.806H194.756V60.5352H182.677V39.534H177.199V35.8047H182.677V29.5732H186.736V35.8047H193.24V39.534H186.736Z"}),jsxRuntime.jsx("path",{d:"M156.585 60.5352H151.988L158.394 48.0227L152.33 35.8047H156.976L162.062 46.0599H165.388L170.474 35.8047H175.022L168.958 48.0227L175.365 60.5352H170.67L165.29 49.7892H162.013L156.585 60.5352Z"}),jsxRuntime.jsx("path",{d:"M150.138 49.1315H129.304C129.565 51.4867 130.461 53.3842 131.994 54.8235C133.526 56.2627 135.433 56.9825 137.715 56.9825C139.606 56.9825 141.188 56.5572 142.459 55.7067C143.763 54.8235 144.709 53.6785 145.296 52.272H149.551C148.801 54.6272 147.382 56.6227 145.296 58.2582C143.242 59.8937 140.715 60.7118 137.715 60.7118C135.368 60.7118 133.216 60.1555 131.26 59.0432C129.336 57.8985 127.804 56.3445 126.663 54.3817C125.554 52.419 125 50.2437 125 47.8557C125 45.4677 125.554 43.2925 126.663 41.3298C127.804 39.367 129.336 37.8295 131.26 36.7173C133.216 35.5725 135.368 35 137.715 35C140.03 35 142.133 35.556 144.024 36.6682C145.915 37.7805 147.399 39.3342 148.475 41.3298C149.583 43.3252 150.138 45.5987 150.138 48.1502V49.1315ZM137.715 38.729C135.564 38.729 133.738 39.367 132.238 40.6427C130.771 41.9185 129.842 43.6195 129.45 45.7458H145.883C145.491 43.685 144.562 42.0002 143.095 40.6917C141.661 39.3832 139.867 38.729 137.715 38.729Z"}),jsxRuntime.jsx("path",{d:"M116.961 60.5353H112.559V30.4072H101.164V26.1875H128.307V30.4072H116.961V60.5353Z"})]}),jsxRuntime.jsx("defs",{children:jsxRuntime.jsx("clipPath",{id:"clip0_796_283",children:jsxRuntime.jsx("rect",{width:"270",height:"80",fill:"white"})})})]})}let i=r||80;return jsxRuntime.jsxs("svg",{width:i,height:i,viewBox:"0 0 80 80",xmlns:"http://www.w3.org/2000/svg",className:a,style:n?{fill:n}:void 0,children:[jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0.223654 20.2934C0.417233 19.8234 0.873598 19.517 1.37984 19.517H20.5909C21.282 19.517 21.8422 20.0798 21.8422 20.774V40.049C21.8422 40.5572 21.5375 41.0155 21.0702 41.2102C20.6028 41.405 20.0647 41.2977 19.7067 40.9385L0.495628 21.6635C0.137428 21.3041 0.030075 20.7633 0.223654 20.2934ZM4.40349 22.0311L19.3396 37.017V22.0311H4.40349Z"}),jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M38.6458 20.2934C38.8394 19.8234 39.2958 19.517 39.802 19.517H59.013C59.7041 19.517 60.2642 20.0798 60.2642 20.774V40.049C60.2642 40.5572 59.9597 41.0155 59.4923 41.2102C59.025 41.405 58.4867 41.2977 58.1289 40.9385L38.9178 21.6635C38.5595 21.3041 38.4522 20.7633 38.6458 20.2934ZM42.8255 22.0311L57.7618 37.017V22.0311H42.8255Z"}),jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M19.4347 58.8447C19.6283 58.3747 20.0847 58.0685 20.5909 58.0685H39.802C40.493 58.0685 41.0532 58.6312 41.0532 59.3255V78.6005C41.0532 79.1087 40.7486 79.567 40.2813 79.7617C39.8139 79.9562 39.2757 79.849 38.9178 79.49L19.7067 60.215C19.3485 59.8555 19.2411 59.3147 19.4347 58.8447ZM23.6146 60.5825L38.5508 75.5682V60.5825H23.6146Z"}),jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M39.3227 58.1643C39.79 57.9695 40.3283 58.0768 40.6861 58.436L59.8972 77.711C60.2555 78.0703 60.3628 78.6113 60.1692 79.081C59.9756 79.551 59.5192 79.8575 59.013 79.8575H39.802C39.1109 79.8575 38.5508 79.2948 38.5508 78.6005V59.3255C38.5508 58.8173 38.8554 58.359 39.3227 58.1643ZM41.0532 62.3575V77.3433H55.9893L41.0532 62.3575Z"}),jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M39.3227 19.6129C39.79 19.4182 40.3283 19.5254 40.6861 19.8846L59.8972 39.1595C60.2555 39.519 60.3628 40.0598 60.1692 40.5298C59.9756 40.9995 59.5192 41.306 59.013 41.306H39.802C39.1109 41.306 38.5508 40.7433 38.5508 40.049V20.7741C38.5508 20.2658 38.8554 19.8075 39.3227 19.6129ZM41.0532 23.8061V38.792H55.9893L41.0532 23.8061Z"}),jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M39.3227 38.8885C39.79 38.694 40.3283 38.8012 40.6861 39.1602L59.8972 58.4352C60.2555 58.7945 60.3628 59.3355 60.1692 59.8055C59.9756 60.2752 59.5192 60.5817 59.013 60.5817H39.802C39.1109 60.5817 38.5508 60.019 38.5508 59.3247V40.0497C38.5508 39.5415 38.8554 39.0832 39.3227 38.8885ZM41.0532 43.0817V58.0675H55.9893L41.0532 43.0817Z"}),jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M38.6458 39.569C38.8394 39.0992 39.2958 38.7927 39.802 38.7927H59.013C59.7041 38.7927 60.2642 39.3555 60.2642 40.0497V59.3247C60.2642 59.833 59.9597 60.2912 59.4923 60.486C59.025 60.6805 58.4867 60.5732 58.1289 60.2142L38.9178 40.9392C38.5595 40.5797 38.4522 40.039 38.6458 39.569ZM42.8255 41.3067L57.7618 56.2927V41.3067H42.8255Z"}),jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M38.6458 58.8447C38.8394 58.3747 39.2958 58.0685 39.802 58.0685H59.013C59.7041 58.0685 60.2642 58.6312 60.2642 59.3255V78.6005C60.2642 79.1087 59.9597 79.567 59.4923 79.7617C59.025 79.9562 58.4867 79.849 58.1289 79.49L38.9178 60.215C38.5595 59.8555 38.4522 59.3147 38.6458 58.8447ZM42.8255 60.5825L57.7618 75.5682V60.5825H42.8255Z"}),jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M58.5338 19.6129C59.0011 19.4182 59.5394 19.5254 59.8972 19.8846L79.1083 39.1595C79.4666 39.519 79.5739 40.0598 79.3803 40.5298C79.1867 40.9995 78.7303 41.306 78.2241 41.306H59.013C58.322 41.306 57.7618 40.7433 57.7618 40.049V20.7741C57.7618 20.2658 58.0664 19.8075 58.5338 19.6129ZM60.2643 23.8061V38.792H75.2006L60.2643 23.8061Z"}),jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M58.5338 0.338803C59.0011 0.144135 59.5394 0.251385 59.8972 0.610565L79.1083 19.8855C79.4666 20.2449 79.5739 20.7857 79.3803 21.2556C79.1867 21.7256 78.7303 22.032 78.2241 22.032H59.013C58.322 22.032 57.7618 21.4692 57.7618 20.775V1.50003C57.7618 0.99174 58.0664 0.533468 58.5338 0.338803ZM60.2643 4.53208V19.5179H75.2006L60.2643 4.53208Z"}),jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M57.8569 20.2934C58.0505 19.8234 58.5069 19.517 59.013 19.517H78.2241C78.9151 19.517 79.4753 20.0798 79.4753 20.774V40.049C79.4753 40.5572 79.1707 41.0155 78.7034 41.2102C78.236 41.405 77.6978 41.2977 77.3399 40.9385L58.1289 21.6635C57.7705 21.3041 57.6633 20.7633 57.8569 20.2934ZM62.0365 22.0311L76.9729 37.017V22.0311H62.0365Z"})]})};var Cs=({topItems:e=[],bottomItems:t=[],bottomContent:r,logo:o,showLogo:n=true,linkComponent:a="a",className:i="",mobileMenuId:s="app-mobile-menu",sidebarCollapseId:c="app-sidebar-collapse"})=>{let l=p=>p.length>0&&"items"in p[0],u=p=>l(p)?p:[{id:"default-section",items:p}],d=(p,g,f)=>jsxRuntime.jsxs("div",{className:"space-y-0.5",children:[p.title&&jsxRuntime.jsx("div",{className:"px-6 py-1 text-xs font-medium text-text-secondary uppercase tracking-wider",children:p.title}),jsxRuntime.jsx("div",{className:"space-y-0.5",children:p.items.map(h=>m(h))}),g<f-1&&jsxRuntime.jsx("div",{className:"border-b border-border-subtle mx-6 my-2"})]},p.id),m=(p,g=false)=>{if(p.children&&p.children.length>0){let b=`category-${p.id}`;return jsxRuntime.jsxs("div",{className:"group/category",children:[jsxRuntime.jsx("input",{type:"checkbox",id:b,className:"peer/category hidden",defaultChecked:p.isExpanded,"aria-hidden":"true"}),jsxRuntime.jsxs("label",{htmlFor:b,className:"flex items-center gap-3 px-6 py-1 text-text-primary hover:bg-background-hover hover:text-text-primary cursor-pointer transition-all duration-200",children:[p.icon&&jsxRuntime.jsx("span",{className:"flex-shrink-0 w-3.5 h-3.5 flex items-center justify-center transition-all duration-200",children:p.icon}),jsxRuntime.jsx("span",{className:"transition-all duration-200",children:p.label}),jsxRuntime.jsx("span",{className:"flex-1"}),jsxRuntime.jsx("svg",{className:"w-4 h-4 transform transition-transform duration-200 peer-checked/category:rotate-180 ml-auto",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntime.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 9l-7 7-7-7"})})]}),jsxRuntime.jsx("div",{className:"hidden peer-checked/category:block bg-background-subtle border-l-2 border-border-subtle ml-6",children:p.children.map(x=>m(x,true))})]},p.id)}let f={href:p.href||"#",className:`flex items-center gap-3 transition-all duration-200 hover:bg-background-hover ${g?"pl-8 pr-6 py-1 text-sm":"px-6 py-1"} ${p.isActive?`bg-action-brand/10 text-action-brand ${g?"":"border-l-2 border-action-brand"}`:"text-text-primary hover:text-text-primary"}`,"aria-current":p.isActive?"page":void 0},h=jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[p.icon&&!g&&jsxRuntime.jsx("span",{className:"flex-shrink-0 w-3.5 h-3.5 flex items-center justify-center transition-all duration-200",children:p.icon}),jsxRuntime.jsx("span",{className:"transition-all duration-200",children:p.label})]});return a==="a"?jsxRuntime.jsx("a",{...f,children:h},p.id):jsxRuntime.jsx(a,{...f,children:h},p.id)};return jsxRuntime.jsxs("div",{className:`flex flex-col h-full ${i}`,children:[jsxRuntime.jsxs("div",{className:"flex items-center justify-between h-[60px] px-6 border-b border-border-default",children:[n&&jsxRuntime.jsx("div",{className:"relative top-[-1px] transition-all duration-200",children:o||jsxRuntime.jsx(ba,{showWordmark:true,width:120})}),jsxRuntime.jsx("label",{htmlFor:c,className:"hidden md:flex items-center justify-center w-8 h-8 rounded hover:bg-background-hover cursor-pointer transition-all duration-200 relative top-[-1px]","aria-label":"Collapse sidebar",children:jsxRuntime.jsx(dr,{name:"Sidebar",size:"sm"})}),jsxRuntime.jsx("label",{htmlFor:s,className:"md:hidden flex items-center justify-center w-8 h-8 rounded hover:bg-background-hover cursor-pointer transition-colors","aria-label":"Close menu",children:jsxRuntime.jsx("svg",{className:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntime.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})})]}),jsxRuntime.jsxs("nav",{className:"flex-1 flex flex-col overflow-hidden",children:[e&&e.length>0&&jsxRuntime.jsx("div",{className:"flex-1 overflow-y-auto py-2 scrollbar-hide",children:u(e).map((p,g,f)=>d(p,g,f.length))}),t&&t.length>0&&jsxRuntime.jsx("div",{className:"flex-shrink-0 border-t bg-background-muted/30",children:jsxRuntime.jsx("div",{className:"mt-2 pb-2 space-y-0.5",children:t.map(p=>m(p))})}),r&&jsxRuntime.jsx("div",{className:"flex-shrink-0 border-t border-border-default",children:jsxRuntime.jsx("div",{children:r})})]})]})};function gn(e){return e.id??e.href??e.label}function Nd(e,t,r=[]){for(let o of e){if(o.href===t||o.id===t)return o.children?.length&&o.pushOnSelect!==false?[...r,gn(o)]:r;if(o.children?.length){let n=Nd(o.children,t,[...r,gn(o)]);if(n)return n}}return null}function ff(e,t){let r=[],o=e;for(let n of t){let a=o.find(i=>gn(i)===n);if(!a)break;r.push(a),o=a.children??[];}return r}function U0(e,t,r){let o=t.length>0?[...e,...t]:e,n=[{path:[],items:e,bottomItems:t.length>0?t:void 0}],a=ff(o,r),i=[];for(let s of a){if(!s.children?.length)break;i=[...i,gn(s)],n.push({path:i,parent:s,items:s.children});}return n}var K0=({href:e,...t})=>jsxRuntime.jsx("a",{href:e,...t}),pf=[];function Y0(e){let t=[];for(let r of e){let o=r.items??[];o.length!==0&&(t.length>0&&t.push({id:`__divider__${r.id}`,label:"",divider:true}),r.title&&t.push({id:`__group__${r.id}`,label:r.title,groupLabel:true}),t.push(...o));}return t}function J0(e,t){if(process.env.NODE_ENV==="production"||t.length===0)return;let r=new Map;for(let o of e)o.id&&r.set(o.id,"id"),o.href&&!r.has(o.href)&&r.set(o.href,"href");for(let o of t){let n=null;o.id&&r.has(o.id)?n=r.get(o.id)==="id"?`id "${o.id}"`:`id "${o.id}" (matches an items \`href\`)`:o.href&&r.has(o.href)&&(n=r.get(o.href)==="href"?`href "${o.href}"`:`href "${o.href}" (matches an items \`id\`)`),n&&console.warn(`[StackNav] L1 ${n} appears in both \`items\` and \`bottomItems\`. Stack tokens and value lookups will resolve to the \`items\` entry, making the bottomItems entry unreachable. L1 ids and hrefs must be unique across both arrays.`);}}function X0(e){if(!e)return {};let t={};return e.background!==void 0&&(t["--edges-stack-nav-background"]=e.background),e.activeBackground!==void 0&&(t["--edges-stack-nav-row-active-background"]=e.activeBackground),e.activeColor!==void 0&&(t["--edges-stack-nav-row-active-color"]=e.activeColor),e.hoverBackground!==void 0&&(t["--edges-stack-nav-row-hover-background"]=e.hoverBackground),e.borderColor!==void 0&&(t["--edges-stack-nav-border-color"]=e.borderColor),t}function Ss({items:e,groups:t,bottomItems:r,value:o,defaultStack:n,stack:a,onStackChange:i,onSelect:s,linkComponent:c=K0,showLogo:l=false,logo:u,header:d,footer:m,mobileMenuId:p,sidebarCollapseId:g,rootLabel:f,sticky:h=true,width:b=260,ariaLabel:x="Navigation",theme:y,animated:v=true,style:S,className:w}){process.env.NODE_ENV!=="production"&&t&&e&&console.warn("[StackNav] Both `items` and `groups` were provided. `groups` takes precedence and `items` is ignored.");let N=Oe__namespace.useMemo(()=>t?Y0(t):e??pf,[t,e]),T=r??pf,k=Oe__namespace.useMemo(()=>T.length>0?[...N,...T]:N,[N,T]);Oe__namespace.useEffect(()=>{J0(N,T);},[N,T]);let[P,A]=Oe__namespace.useState(()=>a!==void 0?a:n!==void 0?n:o?Nd(k,o)??[]:[]),D=a??P,L=Oe__namespace.useCallback(E=>{a===void 0&&A(E),i?.(E);},[a,i]),R=Oe__namespace.useRef(false);Oe__namespace.useEffect(()=>{if(a!==void 0||!R.current&&(R.current=true,n!==void 0)||!o)return;let E=Nd(k,o);A(M=>{let W=E??[];return Z0(M,W)?M:W});},[o,k,a,n]);let H=Oe__namespace.useMemo(()=>U0(N,T,D),[N,T,D]),G=Oe__namespace.useCallback((E,M)=>{E.children?.length&&L([...M,gn(E)]);},[L]),Y=Oe__namespace.useCallback(()=>{L(D.slice(0,-1));},[D,L]),U=Oe__namespace.useCallback((E,M)=>{let W=ff(k,D);if(s?.(M,W),!!M.children?.length){let C=H[H.length-1]?.path??[];G(M,C);}M.href||E.preventDefault();},[k,D,s,G,H]),q=Oe__namespace.useCallback(E=>o?E.href===o||E.id===o:false,[o]),j=h?"sticky top-0 h-[100dvh]":"",Q={...b!=null?{width:b}:{},...X0(y),...S};return jsxRuntime.jsxs("aside",{role:"navigation","aria-label":x,"data-edges-stack-nav":"",className:tailwindMerge.twMerge("edges-stack-nav flex flex-col flex-shrink-0 overflow-hidden",v&&"edges-stack-nav--animated",j,w),style:Q,children:[l?jsxRuntime.jsxs("div",{className:"edges-stack-nav__logo",children:[jsxRuntime.jsx("div",{className:"relative top-[-1px]",children:u??jsxRuntime.jsx(ba,{showWordmark:true,width:120})}),g?jsxRuntime.jsx("label",{htmlFor:g,className:"hidden md:flex items-center justify-center w-8 h-8 rounded hover:bg-background-hover cursor-pointer transition-all duration-200 relative top-[-1px]","aria-label":"Collapse sidebar",children:jsxRuntime.jsx(dr,{name:"Sidebar",size:"sm"})}):null,p?jsxRuntime.jsx("label",{htmlFor:p,className:"md:hidden flex items-center justify-center w-8 h-8 rounded hover:bg-background-hover cursor-pointer transition-colors","aria-label":"Close menu",children:jsxRuntime.jsx("svg",{className:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntime.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})}):null]}):null,d?jsxRuntime.jsx("div",{className:"edges-stack-nav__header",children:d}):null,jsxRuntime.jsx("div",{className:"relative flex-1 overflow-hidden",children:H.map((E,M)=>{let W=E.path.length,I=M===H.length-1,C=M<H.length-1,F=W===0?"__root__":E.path.join("/");return jsxRuntime.jsx(j0,{pane:E,parentPath:E.path.slice(0,-1),depth:W,isTop:I,isAbove:C,rootLabel:f,LinkComponent:c,isActive:q,onSelect:U,onBack:Y,animated:v},F)})}),m?jsxRuntime.jsx("div",{className:"edges-stack-nav__footer",children:m}):null]})}function j0({pane:e,depth:t,isTop:r,isAbove:o,rootLabel:n,LinkComponent:a,isActive:i,onSelect:s,onBack:c,animated:l}){let u=r?"edges-stack-nav__pane--top":o?"edges-stack-nav__pane--above":"edges-stack-nav__pane--below";return jsxRuntime.jsxs("nav",{"aria-label":e.parent?.label??n??"Navigation","aria-hidden":r?void 0:true,inert:r?void 0:true,className:tailwindMerge.twMerge("edges-stack-nav__pane absolute inset-0 flex flex-col gap-px overflow-y-auto px-2 py-3",!l&&"edges-stack-nav__pane--instant",u),children:[t>0&&e.parent?jsxRuntime.jsxs("button",{type:"button",className:"edges-stack-nav__back edges-stack-nav__row flex w-full cursor-pointer items-center gap-2 rounded-sm border-0 bg-transparent px-3 py-2 mb-2 text-left text-sm font-semibold text-text-primary",onClick:c,"aria-label":`Back from ${e.parent.label}`,children:[jsxRuntime.jsx(Q0,{}),jsxRuntime.jsx("span",{children:e.parent.label})]}):n?jsxRuntime.jsx("div",{className:"px-3 pb-1.5 text-[10px] font-semibold uppercase tracking-[0.08em] text-text-secondary",children:n}):null,e.items.map(d=>jsxRuntime.jsx(mf,{item:d,LinkComponent:a,isActive:i(d),onSelect:s},gn(d))),e.bottomItems&&e.bottomItems.length>0?jsxRuntime.jsx("div",{className:"edges-stack-nav__bottom-items mt-auto flex flex-col gap-px pt-3",children:e.bottomItems.map(d=>jsxRuntime.jsx(mf,{item:d,LinkComponent:a,isActive:i(d),onSelect:s},gn(d)))}):null]})}function mf({item:e,LinkComponent:t,isActive:r,onSelect:o}){if(e.divider)return jsxRuntime.jsx("div",{className:"edges-stack-nav__divider my-2",role:"separator"});if(e.groupLabel)return jsxRuntime.jsx("div",{className:"px-3 pt-6 pb-1.5 text-[10px] font-semibold uppercase tracking-[0.08em] text-text-secondary",children:e.label});let n=!!e.children?.length,a=tailwindMerge.twMerge("edges-stack-nav__row flex items-center justify-between gap-3 rounded-sm px-3 py-2 text-sm font-normal text-text-primary no-underline cursor-pointer text-left bg-transparent border-0 transition-colors",r&&"edges-stack-nav__row--active font-semibold"),i=jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsxs("span",{className:"flex min-w-0 items-center gap-2",children:[e.leading??e.icon?jsxRuntime.jsx("span",{className:"inline-flex items-center flex-shrink-0",children:e.leading??e.icon}):null,jsxRuntime.jsx("span",{className:"truncate",children:e.label})]}),jsxRuntime.jsxs("span",{className:"flex flex-shrink-0 items-center gap-2 text-text-secondary",children:[e.trailing,n?jsxRuntime.jsx(q0,{}):null]})]});return e.href?jsxRuntime.jsx(t,{href:e.href,"aria-label":e.ariaLabel,className:a,"aria-current":r?"page":void 0,onClick:s=>o(s,e),children:i}):jsxRuntime.jsx("button",{type:"button",className:a,"aria-label":e.ariaLabel,onClick:s=>{o(s,e);},children:i})}function q0(){return jsxRuntime.jsx("svg",{width:12,height:12,viewBox:"0 0 12 12",fill:"none","aria-hidden":"true",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round",children:jsxRuntime.jsx("path",{d:"M4.5 3 7.5 6 4.5 9"})})}function Q0(){return jsxRuntime.jsx("svg",{width:14,height:14,viewBox:"0 0 14 14",fill:"none","aria-hidden":"true",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round",children:jsxRuntime.jsx("path",{d:"M8.5 3 4.5 7 8.5 11"})})}function Z0(e,t){if(e===t)return true;if(e.length!==t.length)return false;for(let r=0;r<e.length;r+=1)if(e[r]!==t[r])return false;return true}var ni=({rightContent:e,centerContent:t,showMobileMenu:r=true,avatar:o,showColorModeSwitcher:n=false,toggleTheme:a,isDarkThemeEnabled:i=false,colorMode:s,actions:c,className:l="",mobileMenuId:u="app-mobile-menu"})=>{let d=()=>{switch(s||(i?"dark":"light")){case "system":return jsxRuntime.jsx(dr,{name:"Monitor",size:"sm"});case "light":return jsxRuntime.jsx(dr,{name:"Sun",size:"sm"});case "dark":return jsxRuntime.jsx(dr,{name:"Moon",size:"sm"})}},m=()=>{switch(s||(i?"dark":"light")){case "system":return "Switch to light mode";case "light":return "Switch to dark mode";case "dark":return "Switch to system mode";default:return "Toggle theme"}};return jsxRuntime.jsx("header",{className:`h-[60px] bg-background-surface border-b ${l}`,children:jsxRuntime.jsxs("div",{className:"relative flex h-full items-center",children:[jsxRuntime.jsx("div",{className:"flex items-center h-full flex-shrink-0",children:r&&jsxRuntime.jsx("label",{htmlFor:u,className:"md:hidden cursor-pointer","aria-label":"Open menu",children:jsxRuntime.jsx("div",{className:"flex h-full w-14 flex-col items-center justify-center border-r hover:bg-background-hover transition-colors",children:jsxRuntime.jsx(dr,{name:"List",size:"sm"})})})}),t&&jsxRuntime.jsx("div",{className:"flex-1 flex justify-end md:justify-center md:px-4 min-w-0",children:jsxRuntime.jsx("div",{className:"w-full md:max-w-4xl min-w-0",children:t})}),!t&&jsxRuntime.jsx("div",{className:"flex-1"}),jsxRuntime.jsxs("div",{className:"flex items-center gap-4 pr-4 flex-shrink-0 ml-4",children:[e,n&&a&&jsxRuntime.jsx("button",{type:"button",onClick:a,className:"flex items-center justify-center w-8 h-8 rounded hover:bg-background-hover transition-colors","aria-label":m(),children:d()}),c,o&&jsxRuntime.jsx("div",{className:"flex items-center",children:o})]})]})})};function bf({sideNav:e,stackNav:t,topNav:r,children:o,contentPaddingX:n,contentPaddingY:a,showSidebarBorder:i=true,mainClassName:s,enableJsEnhancements:c=false}){let l="app-mobile-menu",u="app-sidebar-collapse";return Oe.useEffect(()=>{if(!c)return;let d=document.getElementById(u),m=document.getElementById(l),p=document.querySelector("[data-app-shell]"),g=document.getElementById("app-sidebar");if(!d||!p||!g)return;let f=null,h=false;try{let P=localStorage.getItem("sidebar-collapsed");P!==null&&(d.checked=P==="true");}catch{}let b=()=>{try{localStorage.setItem("sidebar-collapsed",String(d.checked));}catch{}d.checked?h=true:(f&&(clearTimeout(f),f=null),p.removeAttribute("data-peek"),h=false);};d.addEventListener("change",b);let x=P=>{P.key==="Escape"&&(m&&(m.checked=false),p.removeAttribute("data-peek"));};document.addEventListener("keydown",x);let y=null;m&&(y=()=>{document.body.style.overflow=m.checked?"hidden":"";},m.addEventListener("change",y));let v=P=>{let D=P.target.closest("a");D&&D.href&&window.innerWidth<768&&m&&setTimeout(()=>{m.checked=false,document.body.style.overflow="";},100);};g.addEventListener("click",v);let S=16,w=200,N=()=>{f&&(clearTimeout(f),f=null),p.getAttribute("data-peek")!=="true"&&p.setAttribute("data-peek","true");},T=()=>{f&&clearTimeout(f),f=setTimeout(()=>{p.removeAttribute("data-peek"),f=null;},w);},k=P=>{if(window.innerWidth<768||!d.checked)return;let A=g.contains(P.target);if(h&&!A&&(h=false),h)return;P.clientX<=S||A?N():p.getAttribute("data-peek")==="true"&&T();};return document.addEventListener("mousemove",k),()=>{d.removeEventListener("change",b),document.removeEventListener("keydown",x),m&&y&&m.removeEventListener("change",y),g.removeEventListener("click",v),document.removeEventListener("mousemove",k),f&&clearTimeout(f);}},[c,l,u]),jsxRuntime.jsxs("div",{className:"min-h-[100dvh] bg-background text-text-primary relative","data-app-shell":"",children:[jsxRuntime.jsx("input",{type:"checkbox",id:u,className:"sr-only peer/sidebar","aria-hidden":"true"}),jsxRuntime.jsx("a",{href:"#app-content",className:"sr-only focus:not-sr-only focus:absolute focus:left-4 focus:top-4 z-50 rounded px-3 py-2 bg-background-surface shadow",children:"Skip to content"}),jsxRuntime.jsx(ni,{...r,mobileMenuId:l,className:["sticky top-0 flex-shrink-0 z-30 md:hidden",r?.className].filter(Boolean).join(" ")}),jsxRuntime.jsxs("div",{className:"flex w-full h-[calc(100dvh-60px)] md:h-[100dvh] relative overflow-hidden",children:[jsxRuntime.jsx("input",{type:"checkbox",id:l,className:"sr-only peer/mobile","aria-hidden":"true"}),jsxRuntime.jsx("label",{htmlFor:l,className:"fixed inset-0 bg-background-modal z-[55] opacity-0 pointer-events-none peer-checked/mobile:opacity-100 peer-checked/mobile:pointer-events-auto transition-opacity md:hidden","aria-label":"Close menu"}),jsxRuntime.jsx("div",{"aria-hidden":"true","data-peek-zone":"",className:"hidden md:block fixed left-0 top-0 bottom-0 w-4 z-[70] pointer-events-none"}),jsxRuntime.jsx("label",{htmlFor:u,"data-expand-rail":"",className:"hidden fixed left-3 top-3 z-[75] items-center justify-center w-9 h-9 rounded-md bg-background-surface border border-border-default shadow-sm hover:bg-background-hover cursor-pointer transition-all duration-200","aria-label":"Expand sidebar",children:jsxRuntime.jsx(dr,{name:"Sidebar",size:"sm"})}),jsxRuntime.jsx("aside",{id:"app-sidebar","data-app-sidebar":"",className:["bg-background-surface","border-r border-border-default","transition-transform duration-300 ease-in-out md:transition-[transform,width] md:duration-300 md:ease-in-out","fixed md:relative","left-0 top-0 bottom-0","z-[60] md:z-10","w-full md:w-64","h-[100dvh] md:h-full","-translate-x-full","peer-checked/mobile:translate-x-0","md:translate-x-0",i?"":"!border-r-0",(t??e)?.className||""].filter(Boolean).join(" "),children:t?jsxRuntime.jsx(Ss,{...t,mobileMenuId:l,sidebarCollapseId:u,sticky:false,width:null,className:["h-full !border-r-0",t.className].filter(Boolean).join(" ")}):jsxRuntime.jsx(Cs,{...e,mobileMenuId:l,sidebarCollapseId:u,className:"h-full"})}),jsxRuntime.jsxs("div",{className:"flex-1 flex flex-col h-full overflow-hidden",children:[jsxRuntime.jsx("div",{className:"sticky top-0 flex-shrink-0 hidden md:block z-20","data-top-nav-wrapper":"",children:jsxRuntime.jsx(ni,{...r,className:r?.className})}),jsxRuntime.jsx("main",{id:"app-content",className:["flex-1 overflow-y-auto overflow-x-hidden bg-background-body scrollbar-visible",n,a,s||""].join(" "),role:"main",children:o})]})]}),jsxRuntime.jsx("style",{dangerouslySetInnerHTML:{__html:`
|
|
1
|
+
'use strict';var reactAriaComponents=require('react-aria-components'),Oe=require('react'),tailwindMerge=require('tailwind-merge'),jsxRuntime=require('react/jsx-runtime'),Kp=require('@phosphor-icons/react'),luxon=require('luxon'),reactVirtual=require('@tanstack/react-virtual'),K0=require('@phosphor-icons/react/ssr'),reactAria=require('react-aria'),reactStately=require('react-stately'),lucideReact=require('lucide-react'),framerMotion=require('framer-motion'),Yw=require('react-ace'),reactColorful=require('react-colorful'),curve=require('@visx/curve'),shape=require('@visx/shape'),gradient=require('@visx/gradient'),group=require('@visx/group'),scale=require('@visx/scale'),d3Array=require('d3-array'),axis=require('@visx/axis'),responsive=require('@visx/responsive'),zoom=require('@visx/zoom'),lk=require('papaparse'),brush=require('@visx/brush'),pattern=require('@visx/pattern'),d3Scale=require('d3-scale'),d3Time=require('d3-time'),date=require('@internationalized/date'),core=require('@dnd-kit/core'),sortable=require('@dnd-kit/sortable'),utilities=require('@dnd-kit/utilities'),reactDom=require('react-dom'),vM=require('react-map-gl'),server=require('react-dom/server'),FD=require('@tiptap/extension-link'),react=require('@tiptap/react'),menus=require('@tiptap/react/menus'),OD=require('@tiptap/starter-kit'),ZE=require('fuse.js');var _documentCurrentScript=typeof document!=='undefined'?document.currentScript:null;function _interopDefault(e){return e&&e.__esModule?e:{default:e}}function _interopNamespace(e){if(e&&e.__esModule)return e;var n=Object.create(null);if(e){Object.keys(e).forEach(function(k){if(k!=='default'){var d=Object.getOwnPropertyDescriptor(e,k);Object.defineProperty(n,k,d.get?d:{enumerable:true,get:function(){return e[k]}});}})}n.default=e;return Object.freeze(n)}var Oe__namespace=/*#__PURE__*/_interopNamespace(Oe);var Kp__namespace=/*#__PURE__*/_interopNamespace(Kp);var K0__namespace=/*#__PURE__*/_interopNamespace(K0);var Yw__default=/*#__PURE__*/_interopDefault(Yw);var lk__default=/*#__PURE__*/_interopDefault(lk);var vM__default=/*#__PURE__*/_interopDefault(vM);var FD__default=/*#__PURE__*/_interopDefault(FD);var OD__default=/*#__PURE__*/_interopDefault(OD);var ZE__default=/*#__PURE__*/_interopDefault(ZE);var xv=Object.create;var kc=Object.defineProperty;var hv=Object.getOwnPropertyDescriptor;var yv=Object.getOwnPropertyNames;var vv=Object.getPrototypeOf,Cv=Object.prototype.hasOwnProperty;var Sv=(e,t,r)=>t in e?kc(e,t,{enumerable:true,configurable:true,writable:true,value:r}):e[t]=r;var wv=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var Nv=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of yv(t))!Cv.call(e,n)&&n!==r&&kc(e,n,{get:()=>t[n],enumerable:!(o=hv(t,n))||o.enumerable});return e};var Hp=(e,t,r)=>(r=e!=null?xv(vv(e)):{},Nv(kc(r,"default",{value:e,enumerable:true}),e));var qa=(e,t,r)=>Sv(e,typeof t!="symbol"?t+"":t,r);var lu=wv((iu,su)=>{(function(e,t){typeof define=="function"&&define.amd?define([],t):typeof iu<"u"?t():(t(),e.FileSaver={});})(iu,function(){function e(s,c){return typeof c>"u"?c={autoBom:false}:typeof c!="object"&&(console.warn("Deprecated: Expected third argument to be a object"),c={autoBom:!c}),c.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(s.type)?new Blob(["\uFEFF",s],{type:s.type}):s}function t(s,c,l){var u=new XMLHttpRequest;u.open("GET",s),u.responseType="blob",u.onload=function(){i(u.response,c,l);},u.onerror=function(){console.error("could not download file");},u.send();}function r(s){var c=new XMLHttpRequest;c.open("HEAD",s,false);try{c.send();}catch{}return 200<=c.status&&299>=c.status}function o(s){try{s.dispatchEvent(new MouseEvent("click"));}catch{var c=document.createEvent("MouseEvents");c.initMouseEvent("click",true,true,window,0,0,0,80,20,false,false,false,false,0,null),s.dispatchEvent(c);}}var n=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof global=="object"&&global.global===global?global:void 0,a=n.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),i=n.saveAs||(typeof window!="object"||window!==n?function(){}:"download"in HTMLAnchorElement.prototype&&!a?function(s,c,l){var u=n.URL||n.webkitURL,d=document.createElement("a");c=c||s.name||"download",d.download=c,d.rel="noopener",typeof s=="string"?(d.href=s,d.origin===location.origin?o(d):r(d.href)?t(s,c,l):o(d,d.target="_blank")):(d.href=u.createObjectURL(s),setTimeout(function(){u.revokeObjectURL(d.href);},4e4),setTimeout(function(){o(d);},0));}:"msSaveOrOpenBlob"in navigator?function(s,c,l){if(c=c||s.name||"download",typeof s!="string")navigator.msSaveOrOpenBlob(e(s,l),c);else if(r(s))t(s,c,l);else {var u=document.createElement("a");u.href=s,u.target="_blank",setTimeout(function(){o(u);});}}:function(s,c,l,u){if(u=u||open("","_blank"),u&&(u.document.title=u.document.body.innerText="downloading..."),typeof s=="string")return t(s,c,l);var d=s.type==="application/octet-stream",m=/constructor/i.test(n.HTMLElement)||n.safari,p=/CriOS\/[\d]+/.test(navigator.userAgent);if((p||d&&m||a)&&typeof FileReader<"u"){var g=new FileReader;g.onloadend=function(){var b=g.result;b=p?b:b.replace(/^data:[^;]*;/,"data:attachment/file;"),u?u.location.href=b:location=b,u=null;},g.readAsDataURL(s);}else {var f=n.URL||n.webkitURL,h=f.createObjectURL(s);u?u.location=h:location.href=h,u=null,setTimeout(function(){f.revokeObjectURL(h);},4e4);}});n.saveAs=i.saveAs=i,typeof su<"u"&&(su.exports=i);});});function Jt(e,t=false){let[r,o]=Oe.useState(t);return Oe.useEffect(()=>{if(typeof window>"u")return;let n=window.matchMedia(e);o(n.matches);let a=i=>{o(i.matches);};return n.addEventListener("change",a),()=>{n.removeEventListener("change",a);}},[e]),r}var ln={sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"};function Xt(e="base"){let t=Jt(`(min-width: ${ln.sm})`,e!=="base"),r=Jt(`(min-width: ${ln.md})`,["md","lg","xl","2xl"].includes(e)),o=Jt(`(min-width: ${ln.lg})`,["lg","xl","2xl"].includes(e)),n=Jt(`(min-width: ${ln.xl})`,["xl","2xl"].includes(e)),a=Jt(`(min-width: ${ln["2xl"]})`,e==="2xl"),i=!r,s=r,c="base";return a?c="2xl":n?c="xl":o?c="lg":r?c="md":t&&(c="sm"),{current:c,isSm:t,isMd:r,isLg:o,isXl:n,is2Xl:a,isMobile:i,isDesktop:s}}function rt(e,t){let r=Oe.forwardRef(({size:o=24,color:n="currentColor",className:a,mirrored:i,alt:s,...c},l)=>{let u=!!s||"aria-label"in c;return jsxRuntime.jsx("svg",{ref:l,xmlns:"http://www.w3.org/2000/svg",width:o,height:o,viewBox:"0 0 256 256",fill:n,className:a,transform:i?"scale(-1, 1)":void 0,"aria-hidden":u?void 0:true,role:u?"img":void 0,"aria-label":s,...c,children:t})});return r.displayName=e,r}var rs=()=>jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("path",{d:"M12 128h44M200 128h44",fill:"none",stroke:"currentColor",strokeWidth:"16",strokeLinecap:"round"}),jsxRuntime.jsx("circle",{cx:"76",cy:"128",r:"20",fill:"none",stroke:"currentColor",strokeWidth:"16"}),jsxRuntime.jsx("circle",{cx:"180",cy:"128",r:"20",fill:"none",stroke:"currentColor",strokeWidth:"16"})]}),Wp=()=>jsxRuntime.jsx("path",{d:"M166 120 88 70",fill:"none",stroke:"currentColor",strokeWidth:"16",strokeLinecap:"round"}),Gp=()=>jsxRuntime.jsx("path",{d:"M162 122 92 128",fill:"none",stroke:"currentColor",strokeWidth:"16",strokeLinecap:"round"}),Up=()=>jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("path",{d:"M112 85.7 A32 32 0 1 1 144 85.7",fill:"none",stroke:"currentColor",strokeWidth:"16",strokeLinecap:"round"}),jsxRuntime.jsx("circle",{cx:"128",cy:"58",r:"8",fill:"currentColor",stroke:"none"})]}),Mv=rt("TextureRecloser",jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("rect",{x:"36",y:"36",width:"184",height:"184",fill:"none",stroke:"currentColor",strokeWidth:"16"}),jsxRuntime.jsx("text",{x:"128",y:"126",textAnchor:"middle",dominantBaseline:"central",fontFamily:"ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif",fontSize:"140",fontWeight:"700",fill:"currentColor",stroke:"none",children:"R"})]})),Dv=rt("TextureFuse",jsxRuntime.jsx("path",{d:"M20 128h72q18 -84 36 0q18 84 36 0h72",fill:"none",stroke:"currentColor",strokeWidth:"16",strokeLinecap:"round",strokeLinejoin:"round"})),Ev=rt("TextureBreaker",jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("rect",{x:"36",y:"36",width:"184",height:"184",fill:"none",stroke:"currentColor",strokeWidth:"16"}),jsxRuntime.jsx("text",{x:"128",y:"126",textAnchor:"middle",dominantBaseline:"central",fontFamily:"ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif",fontSize:"140",fontWeight:"700",fill:"currentColor",stroke:"none",children:"B"})]})),Lv=rt("TextureSource",jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("path",{d:"M4 128h40M212 128h40",fill:"none",stroke:"currentColor",strokeWidth:"16",strokeLinecap:"round"}),jsxRuntime.jsx("circle",{cx:"128",cy:"128",r:"84",fill:"none",stroke:"currentColor",strokeWidth:"16"}),jsxRuntime.jsx("path",{d:"M92 128q18 -84 36 0q18 84 36 0",fill:"none",stroke:"currentColor",strokeWidth:"16",strokeLinecap:"round",strokeLinejoin:"round"})]})),Av=rt("TextureCapacitor",jsxRuntime.jsx(jsxRuntime.Fragment,{children:jsxRuntime.jsx("path",{d:"M4 128h106M146 128h106M110 72v112M146 72v112",fill:"none",stroke:"currentColor",strokeWidth:"16",strokeLinecap:"round"})})),Iv=rt("TextureRegulator",jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("circle",{cx:"128",cy:"128",r:"92",fill:"none",stroke:"currentColor",strokeWidth:"16"}),jsxRuntime.jsx("text",{x:"128",y:"126",textAnchor:"middle",dominantBaseline:"central",fontFamily:"ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif",fontSize:"128",fontWeight:"700",fill:"currentColor",stroke:"none",children:"V"})]})),Fv=rt("TextureSwitch",jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(rs,{}),jsxRuntime.jsx(Wp,{})]})),Bv=rt("TextureSwitchClosed",jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(rs,{}),jsxRuntime.jsx(Gp,{})]})),Vv=rt("TextureOpenPoint",jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("path",{d:"M112 52 C 74 92, 74 164, 112 204",fill:"none",stroke:"currentColor",strokeWidth:"18",strokeLinecap:"round"}),jsxRuntime.jsx("path",{d:"M144 52 C 182 92, 182 164, 144 204",fill:"none",stroke:"currentColor",strokeWidth:"18",strokeLinecap:"round"})]})),zv=rt("TextureSectionalizerOpen",jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(rs,{}),jsxRuntime.jsx(Wp,{}),jsxRuntime.jsx(Up,{})]})),Ov=rt("TextureSectionalizerClosed",jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(rs,{}),jsxRuntime.jsx(Gp,{}),jsxRuntime.jsx(Up,{})]})),Hv=rt("TextureTransformer",jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("path",{d:"M40 64H88A22 22 0 0 1 88 108A22 22 0 0 1 88 152A22 22 0 0 1 88 196H40",fill:"none",stroke:"currentColor",strokeWidth:"16",strokeLinecap:"round",strokeLinejoin:"round"}),jsxRuntime.jsx("path",{d:"M216 64H168A22 22 0 0 0 168 108A22 22 0 0 0 168 152A22 22 0 0 0 168 196H216",fill:"none",stroke:"currentColor",strokeWidth:"16",strokeLinecap:"round",strokeLinejoin:"round"})]})),ia={1:[128],2:[110,146],3:[92,128,164]},Tc=e=>jsxRuntime.jsx("path",{d:`M24 ${e}h208`,fill:"none",stroke:"currentColor",strokeWidth:"16",strokeLinecap:"round"},e),Pc=e=>jsxRuntime.jsx("path",{d:`M24 ${e}h208`,fill:"none",stroke:"currentColor",strokeWidth:"16",strokeLinecap:"round",pathLength:100,strokeDasharray:"20 20"},e),Wv=rt("TextureSinglePhaseOverheadLine",jsxRuntime.jsx(jsxRuntime.Fragment,{children:ia[1].map(Tc)})),Gv=rt("TextureTwoPhaseOverheadLine",jsxRuntime.jsx(jsxRuntime.Fragment,{children:ia[2].map(Tc)})),Uv=rt("TextureThreePhaseOverheadLine",jsxRuntime.jsx(jsxRuntime.Fragment,{children:ia[3].map(Tc)})),Kv=rt("TextureSinglePhaseUndergroundLine",jsxRuntime.jsx(jsxRuntime.Fragment,{children:ia[1].map(Pc)})),Yv=rt("TextureTwoPhaseUndergroundLine",jsxRuntime.jsx(jsxRuntime.Fragment,{children:ia[2].map(Pc)})),Jv=rt("TextureThreePhaseUndergroundLine",jsxRuntime.jsx(jsxRuntime.Fragment,{children:ia[3].map(Pc)})),Xv=rt("TextureSupportStructure",jsxRuntime.jsx("circle",{cx:"128",cy:"128",r:"40",fill:"currentColor",stroke:"none"})),sa={TextureRecloser:Mv,TextureFuse:Dv,TextureBreaker:Ev,TextureSource:Lv,TextureCapacitor:Av,TextureRegulator:Iv,TextureSwitch:Fv,TextureSwitchClosed:Bv,TextureOpenPoint:Vv,TextureSectionalizerOpen:zv,TextureSectionalizerClosed:Ov,TextureTransformer:Hv,TextureSinglePhaseOverheadLine:Wv,TextureTwoPhaseOverheadLine:Gv,TextureThreePhaseOverheadLine:Uv,TextureSinglePhaseUndergroundLine:Kv,TextureTwoPhaseUndergroundLine:Yv,TextureThreePhaseUndergroundLine:Jv,TextureSupportStructure:Xv};if(process.env.NODE_ENV==="development")for(let e of Object.keys(sa))e in Kp__namespace&&console.error(`Custom icon "${e}" collides with a Phosphor icon of the same name. Rename it (use the "Texture" prefix) to keep the icon namespace unambiguous.`);var la={xs:16,sm:20,md:24,lg:32,xl:40,"2xl":48},B=Oe.memo(({name:e,size:t="md",color:r,weight:o="regular",className:n,ariaLabel:a,...i})=>{let s=sa[e]??Kp__namespace[e];if(!s)return process.env.NODE_ENV==="development"&&console.error(`Icon "${e}" not found in @phosphor-icons/react or the custom icon registry`),null;let c=typeof t=="string"&&t in la?la[t]:t,l=tailwindMerge.twMerge("inline-block flex-shrink-0",!r&&"text-current",n);return jsxRuntime.jsx(s,{...i,size:c,color:r,weight:o,className:l,"aria-label":a||`${e} icon`,"data-testid":`icon-${e}`})});B.displayName="Icon";var jv=Oe.memo(({variant:e="subtle",shape:t="square",containerSize:r,containerClassName:o,size:n="md",className:a,name:i,color:s,weight:c,ariaLabel:l,ref:u,...d})=>{let m=typeof n=="string"&&n in la?la[n]:n,p=r?typeof r=="string"&&r in la?la[r]:r:m*1.75,g=tailwindMerge.twMerge("inline-flex items-center justify-center flex-shrink-0",t==="circle"?"rounded-full":"rounded-lg",e==="subtle"&&"bg-background-muted",e==="solid"&&"bg-action-brand text-[color:var(--color-action-brand-text)]",e==="outline"&&"border-2 border-current",o);return jsxRuntime.jsx("div",{className:g,style:{width:p,height:p},children:jsxRuntime.jsx(B,{...d,name:i,size:n,color:s,weight:c,className:a,ariaLabel:l})})});jv.displayName="IconWithContainer";function cr({transparent:e=false,className:t,children:r,...o}){return jsxRuntime.jsx(reactAriaComponents.ModalOverlay,{...o,className:reactAriaComponents.composeRenderProps(t,(n,a)=>tailwindMerge.twMerge("fixed inset-0 z-50","outline-none focus:outline-none focus-visible:outline-none ring-0 focus:ring-0 focus-visible:ring-0",e?"bg-transparent":["bg-gradient-to-br from-background-modal/20 via-background-modal/15 to-background-modal/20","backdrop-blur-[2px]","supports-[backdrop-filter]:bg-background-modal/15"].join(" "),a.isEntering&&["animate-in fade-in","duration-300 ease-out"].join(" "),a.isExiting&&["animate-out fade-out","duration-200 ease-in"].join(" "),n)),children:r})}function aC({isEntering:e,isExiting:t,className:r="",disableGroup:o=false}){let n=[!o&&"group","bg-background-surface","forced-colors:bg-[Canvas]","shadow-lg","rounded-[var(--control-border-radius)]","bg-clip-padding","border","border-border-default","outline-none"].filter(Boolean).join(" "),a=e?["animate-in","fade-in","placement-bottom:slide-in-from-top-1","placement-top:slide-in-from-bottom-1","placement-left:slide-in-from-right-1","placement-right:slide-in-from-left-1","ease-out","duration-200"].join(" "):"",i=t?["animate-out","fade-out","placement-bottom:slide-out-to-top-1","placement-top:slide-out-to-bottom-1","placement-left:slide-out-to-right-1","placement-right:slide-out-to-left-1","ease-in","duration-150"].join(" "):"";return [n,a,i,r].filter(Boolean).join(" ")}function lt({children:e,showArrow:t=false,withBackdrop:r=false,className:o,isDismissable:n=true,disableGroup:a=false,...i}){let c=reactAriaComponents.useSlottedContext(reactAriaComponents.PopoverContext)?.trigger==="SubmenuTrigger",l=t?12:8;l=c?l-6:l;let u=jsxRuntime.jsxs(reactAriaComponents.Popover,{offset:l,...i,className:reactAriaComponents.composeRenderProps(o,(d,m)=>aC({...m,className:d,disableGroup:a})),children:[t&&jsxRuntime.jsx(reactAriaComponents.OverlayArrow,{children:jsxRuntime.jsx("svg",{width:12,height:12,viewBox:"0 0 12 12",className:"block fill-background-surface stroke-border-default stroke-1 group-placement-left:-rotate-90 group-placement-right:rotate-90 group-placement-bottom:rotate-180 forced-colors:fill-[Canvas] forced-colors:stroke-[ButtonBorder]",children:jsxRuntime.jsx("path",{d:"M0 0 L6 6 L12 0"})})}),e]});return r?jsxRuntime.jsx(cr,{isDismissable:n,children:jsxRuntime.jsx(reactAriaComponents.Modal,{className:"outline-none focus:outline-none focus-visible:outline-none ring-0 focus:ring-0 focus-visible:ring-0",isDismissable:n,children:u})}):u}function os(e=true){let[t,r]=Oe.useState(null);return Oe.useEffect(()=>{if(!e){r(null);return}let o=typeof window<"u"?window.visualViewport:null;if(!o)return;let n=()=>{let a=Math.max(0,window.innerHeight-o.height-(o.offsetTop??0));r({height:o.height,keyboardOffset:a});};return n(),o.addEventListener("resize",n),o.addEventListener("scroll",n),()=>{o.removeEventListener("resize",n),o.removeEventListener("scroll",n);}},[e]),t}var dC={"--color-brand-primary":["--color-action-brand","--color-text-link-default","--action-brand-background"],"--color-brand-dark":["--color-action-brand-hover","--color-text-link-hover","--action-brand-hover"],"--color-action-brand":["--color-text-link-default","--action-brand-background"],"--color-action-brand-hover":["--color-text-link-hover","--action-brand-hover"]};function Xp(e){let t={...e};for(let[r,o]of Object.entries(dC))if(e[r])for(let n of o)e[n]||(t[n]=e[r]);return t}function jp(e){return e.replace(/[{}<>]/g,"")}function qp(e){return Object.entries(e).map(([t,r])=>`${jp(t)}: ${jp(r)};`).join(" ")}function Zp({variables:e,darkVariables:t,children:r}){let n=Oe.useId().replace(/:/g,""),a=e&&Object.keys(e).length>0,i=t&&Object.keys(t).length>0;if(!a&&!i)return jsxRuntime.jsx(jsxRuntime.Fragment,{children:r});let s=a?Xp(e):null,c=i?Xp(t):null,l=s?`[data-brand-scope="${n}"] { ${qp(s)} }`:"",u=c?`.theme-dark [data-brand-scope="${n}"] { ${qp(c)} }`:"",d=[l,u].filter(Boolean).join(`
|
|
2
|
+
`);return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("style",{dangerouslySetInnerHTML:{__html:d}}),jsxRuntime.jsx("div",{"data-brand-scope":n,children:r})]})}var ca=new Map,pC=8;function mC(e){if(!e.startsWith("var("))return e;let t=e.slice(4,e.lastIndexOf(")")).trim(),r=t.indexOf(",");return (r===-1?t:t.slice(0,r)).trim()}var Pt=(e,t="#000000")=>typeof window>"u"?t:_p(e,t,0);function _p(e,t,r){if(r>pC)return t;let o=e.startsWith("var(")?mC(e):e.startsWith("--")?e:`--${e}`;if(!e.startsWith("--")&&!e.startsWith("var(")&&!o.startsWith("--color-")&&(o=`--color-${o.slice(2)}`),ca.has(o))return ca.get(o);try{let n=document.body||document.documentElement,i=getComputedStyle(n).getPropertyValue(o).trim();if(i){if(i.startsWith("var(")){let l=_p(i,t,r+1);return ca.set(o,l),l}return ca.set(o,i),i}let s=document.createElement("div");s.style.color=`var(${o})`,document.body.appendChild(s);let c=getComputedStyle(s).color;return document.body.removeChild(s),c&&c!=="rgb(0, 0, 0)"?(ca.set(o,c),c):t}catch(n){return console.warn(`Failed to resolve color for ${e}:`,n),t}}var ns=()=>{ca.clear();},cn=()=>{let e=[];for(let t=1;t<=12;t++){let r=Pt(`--color-viz-categorical-${t}`,"");r&&e.push(r);}return e.length===0?$p():e},$p=()=>["#5424db","#d92361","#e86a00","#5d89ff","#9a47e2","#f24cb8","#0ba286","#9c28af","#036e45","#52a119","#ff513d","#046691"],Za=()=>Pt("--color-viz-default","#444ae1"),fC=(e,t)=>{let r={},o=cn();return e.forEach((n,a)=>{t&&t[n]?r[n]=t[n]:r[n]=o[a%o.length];}),r},em=e=>{let t=e.match(/\d+/g);if(!t||t.length<3)return true;let[r,o,n]=t.map(Number);return (.299*r+.587*o+.114*n)/255>.5},gC=e=>em(e)?Pt("--color-text-primary","#333333"):Pt("--color-text-inverse","#ffffff"),tm=(e,t)=>{if(!e||typeof e!="object")return console.warn("[Colors] Invalid GeoJSON data provided to extractUniqueValues"),[];if(!("type"in e)||e.type!=="FeatureCollection"&&e.type!=="Feature")return console.warn("[Colors] Data is not valid GeoJSON (missing type or invalid type)"),[];let r=new Set,o="features"in e?e.features:[e];if(!Array.isArray(o)||o.length===0)return console.warn("[Colors] No features found in GeoJSON data"),[];let n=0;return o.forEach(a=>{if(!(!a||typeof a!="object")&&a.properties&&t in a.properties){n++;let i=a.properties[t];i!=null&&r.add(i);}}),n===0&&console.warn(`[Colors] Property "${t}" not found on any features. Available properties: ${o[0]?.properties?Object.keys(o[0].properties).join(", "):"none"}`),Array.from(r).sort()},Dc=e=>{let t=cn(),r={};return e.forEach((o,n)=>{r[o]=t[n%t.length];}),r};var Ec=(e,t)=>{if(!e||typeof e!="object")return console.warn("[Colors] Invalid GeoJSON data provided to extractNumericValues"),[];if(!("type"in e)||e.type!=="FeatureCollection"&&e.type!=="Feature")return console.warn("[Colors] Data is not valid GeoJSON (missing type or invalid type)"),[];let r="features"in e?e.features:[e];if(!Array.isArray(r)||r.length===0)return console.warn("[Colors] No features found in GeoJSON data"),[];let o=new Set,n=0;return r.forEach(a=>{if(!(!a||typeof a!="object")&&a.properties&&t in a.properties){n++;let i=a.properties[t];typeof i=="number"&&!isNaN(i)&&o.add(i);}}),n===0&&console.warn(`[Colors] Property "${t}" not found on any features. Available properties: ${r[0]?.properties?Object.keys(r[0].properties).join(", "):"none"}`),Array.from(o).sort((a,i)=>a-i)},Lc=e=>e.length===0?(console.warn("[Colors] Cannot calculate bounds from empty array"),{min:0,max:1}):{min:e[0],max:e[e.length-1]},rm=(e,t)=>{if(typeof t=="number")return t;if(e.length===0)return console.warn("[Colors] Cannot calculate center from empty array, defaulting to 0"),0;if(t==="median"){let r=Math.floor(e.length/2);return e.length%2===0?(e[r-1]+e[r])/2:e[r]}return e.reduce((r,o)=>r+o,0)/e.length},Ac=(e="viridis")=>{let o=`viz-sequential-${{redYellowGreen:"red-yellow-green"}[e]||e}`,n=[];for(let a=1;a<=10;a++){let i=`${o}-${a}`,s=Pt(i);n.push(s);}return n},Ic=(e="redYellowBlue")=>{let o=`viz-diverging-${{orangeYellowSeafoam:"orange-yellow-seafoam",redYellowBlue:"red-yellow-blue",redBlue:"red-blue"}[e]||e}`,n=[];for(let a=1;a<=10;a++){let i=`${o}-${a}`,s=Pt(i);n.push(s);}return n},_a=(e,t,r,o="viridis")=>{let n=Ac(o);if(e<=t)return n[0];if(e>=r)return n[n.length-1];if(t===r)return n[Math.floor(n.length/2)];let i=(e-t)/(r-t)*(n.length-1),s=Math.floor(i);return n[s]},$a=(e,t,r,o,n="redYellowBlue")=>{let a=Ic(n),i=4;if(e<=t)return a[0];if(e>=r)return a[a.length-1];if(e===o||t===r)return a[i];if(e<o){let c=(e-t)/(o-t)*i,l=Math.floor(c);return a[Math.min(l,i)]}else {let s=(e-o)/(r-o),c=i+s*(a.length-1-i),l=Math.floor(c);return a[Math.min(l,a.length-1)]}};var Fc=Oe.createContext({mode:"system",colorMode:"light",isDarkTheme:false,toggleTheme:()=>{}}),Vt=()=>Oe.useContext(Fc);function vC(){return typeof window>"u"?"light":window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function am(){if(typeof window>"u")return "system";let e=localStorage.getItem("colorModePreference");return e==="light"||e==="dark"||e==="system"?e:"system"}function im(e){return e==="system"?vC():e}var lm=({children:e})=>{let[t,r]=Oe.useState(am),[o,n]=Oe.useState(()=>im(am())),a=o==="dark",i=Oe.useCallback(c=>{c==="dark"?(document.documentElement.classList.add("theme-dark"),document.body.classList.add("theme-dark")):(document.documentElement.classList.remove("theme-dark"),document.body.classList.remove("theme-dark")),ns();},[]);Oe.useEffect(()=>{ns();let c=im(t);if(n(c),i(c),t==="system"){let l=window.matchMedia("(prefers-color-scheme: dark)"),u=d=>{let m=d.matches?"dark":"light";n(m),i(m);};return l.addEventListener("change",u),()=>{l.removeEventListener("change",u);}}},[t,i]);let s=Oe.useCallback(()=>{r(c=>{let l=c==="system"?"light":c==="light"?"dark":"system";return localStorage.setItem("colorModePreference",l),l});},[]);return jsxRuntime.jsx(Fc.Provider,{value:{mode:t,colorMode:o,isDarkTheme:a,toggleTheme:s},children:e})};function jt(...e){return e.filter(Boolean).join(" ")}var Bc=class{constructor(){qa(this,"formatters",new Map);}register(t,r){this.formatters.set(t,r);}format(t,r,...o){let n=this.formatters.get(t);return n?n(r,...o):(console.warn(`No formatter registered for key: ${t}`),null)}has(t){return this.formatters.has(t)}keys(){return Array.from(this.formatters.keys())}unregister(t){this.formatters.delete(t);}clear(){this.formatters.clear();}},oe=new Bc;var Eo=(e,t="Yes",r="No")=>e==null?null:e?t:r,CC=e=>Eo(e,"Enabled","Disabled"),SC=e=>Eo(e,"On","Off"),wC=e=>Eo(e,"Active","Inactive"),NC=e=>Eo(e,"True","False"),kC=e=>Eo(e,"\u2713","\u2717"),Lo=e=>{if(e==null)return null;if(typeof e=="boolean")return e;if(typeof e=="string"){let t=e.toLowerCase().trim();return t==="true"||t==="yes"||t==="1"||t==="on"||t==="enabled"?true:t==="false"||t==="no"||t==="0"||t==="off"||t==="disabled"?false:null}return typeof e=="number"?e!==0:null},cm=(e,t)=>{if(t.hideWhenNull&&e==null)return null;if(e==null)return t.nullText??null;let r=Lo(e);return r===null?t.nullText??null:Eo(r,t.trueText??"Yes",t.falseText??"No")};oe.register("boolean",(e,t,r)=>{let o=Lo(e);return o!==null?Eo(o,typeof t=="string"?t:"Yes",typeof r=="string"?r:"No"):null});oe.register("yesNo",e=>{let t=Lo(e);return t!==null?Eo(t,"Yes","No"):null});oe.register("enabledDisabled",e=>{let t=Lo(e);return t!==null?CC(t):null});oe.register("onOff",e=>{let t=Lo(e);return t!==null?SC(t):null});oe.register("activeInactive",e=>{let t=Lo(e);return t!==null?wC(t):null});oe.register("trueFalse",e=>{let t=Lo(e);return t!==null?NC(t):null});oe.register("checkmark",e=>{let t=Lo(e);return t!==null?kC(t):null});var me=e=>e==null,dm=(e,t=0)=>me(e)?null:`${e.toFixed(t)}%`,um=(e,t=0)=>dm(e,t)??"\u2014",TC=e=>me(e)?null:Math.round(e).toString(),PC=(e,t=1)=>me(e)?null:e.toFixed(t),RC=(e,t,r=true)=>{if(me(e))return null;let o={useGrouping:r};return t!==void 0&&(o.minimumFractionDigits=t,o.maximumFractionDigits=t),new Intl.NumberFormat("en-US",o).format(e)},MC=(e,t="short")=>me(e)?null:new Intl.NumberFormat("en-US",{notation:"compact",compactDisplay:t}).format(e),DC=(e,t=2)=>me(e)?null:e.toExponential(t),pm=(e,t="USD",r)=>{if(me(e))return null;let o={style:"currency",currency:t,currencyDisplay:r?.currencyDisplay??"symbol",useGrouping:r?.thousandsSeparator??true};return r?.minimumFractionDigits!==void 0&&(o.minimumFractionDigits=r.minimumFractionDigits),r?.maximumFractionDigits!==void 0&&(o.maximumFractionDigits=r.maximumFractionDigits),new Intl.NumberFormat("en-US",o).format(e)},mm=(e,t)=>{if(t.hideWhenNull&&e==null||t.hideWhenZero&&e===0)return null;if(e==null)return t.nullText??null;let r=typeof e=="string"?parseFloat(e):Number(e);if(isNaN(r))return t.nullText??null;let o={useGrouping:t.thousandsSeparator??false};return t.decimals!==void 0&&(o.minimumFractionDigits=t.decimals,o.maximumFractionDigits=t.decimals),t.notation&&(o.notation=t.notation,t.notation==="compact"&&t.compactDisplay&&(o.compactDisplay=t.compactDisplay)),t.sign&&(o.signDisplay=t.sign),new Intl.NumberFormat("en-US",o).format(r)},fm=(e,t)=>{if(t.hideWhenNull&&e==null||t.hideWhenZero&&e===0)return null;if(e==null)return t.nullText??null;let r=typeof e=="string"?parseFloat(e):Number(e);return isNaN(r)?t.nullText??null:pm(r,t.currency,t)};oe.register("percentage",(e,t)=>typeof e=="number"?dm(e,typeof t=="number"?t:0):null);oe.register("integer",e=>typeof e=="number"?TC(e):null);oe.register("float",(e,t)=>typeof e=="number"?PC(e,typeof t=="number"?t:1):null);oe.register("number",(e,t,r)=>{let o=typeof e=="string"?parseFloat(e):Number(e);return isNaN(o)?null:RC(o,typeof t=="number"?t:void 0,typeof r=="boolean"?r:true)});oe.register("compact",(e,t)=>typeof e=="number"?MC(e,t==="long"?"long":"short"):null);oe.register("scientific",(e,t)=>typeof e=="number"?DC(e,typeof t=="number"?t:2):null);oe.register("currency",(e,t,r)=>typeof e=="number"?pm(e,typeof t=="string"?t:"USD",typeof r=="object"&&r!==null?r:{}):null);function uA(e,t=1){return me(e)?null:Math.abs(e)>=1e3?`${(e/1e3).toFixed(t)} MWh`:`${e.toFixed(t)} kWh`}function pA(e,t=1){return me(e)?null:Math.abs(e)>=1e3?`${(e/1e3).toFixed(t)} MW`:`${e.toFixed(t)} kW`}function jr({value:e,formatter:t,emptyClassName:r="text-text-secondary",emptyText:o="\u2014"}){if(e==null)return jsxRuntime.jsx("span",{className:r,children:o});if(typeof t=="function")return t(e);if(t&&typeof t=="object"){let n=Vr(e,t);return e instanceof Date&&n?jsxRuntime.jsx("time",{dateTime:e.toISOString(),title:e.toISOString(),children:n}):n||jsxRuntime.jsx("span",{className:r,children:o})}if(!t){if(typeof e=="string")return e;if(e instanceof Date){let n=Vr(e,{type:"date"});return jsxRuntime.jsx("time",{dateTime:e.toISOString(),title:e.toISOString(),children:n})}if(typeof e=="number")return Vr(e,{type:"number"});if(typeof e=="boolean")return Vr(e,{type:"boolean"})}return String(e)}function bA(e,t,r){return Oe__namespace.default.useCallback(o=>jr({value:o,formatter:e,emptyClassName:t,emptyText:r}),[e,t,r])}var Vc=(e,t=0)=>{if(me(e))return null;let r=e*1e3;return t===0?`${Math.round(r)} mA`:`${r.toFixed(t)} mA`},is=(e,t=1)=>me(e)?null:`${e.toFixed(t)} A`,zc=(e,t=2)=>me(e)?null:`${(e/1e3).toFixed(t)} kA`,LC=(e,t)=>{if(me(e))return null;let r=Math.abs(e);return r>=1e3?zc(e,t??2):r<1?Vc(e,t??0):is(e,t??1)},Oc=(e,t)=>{if(t.hideWhenNull&&e==null||t.hideWhenZero&&e===0)return null;if(e==null)return t.nullText??null;let r=typeof e=="string"?parseFloat(e):Number(e);if(isNaN(r))return t.nullText??null;let o=t.decimals;if(t.unit)switch(t.unit){case "kA":return zc(r,o??2);case "mA":return Vc(r,o??0);case "A":return is(r,o??1)}return t.autoScale!==false?LC(r,o):is(r,o??1)};oe.register("current",Oc);var CA=Vc,SA=is,wA=zc;var dn=e=>{if(e==null)return null;if(e instanceof Date)return luxon.DateTime.fromJSDate(e);if(typeof e=="string"){let t=luxon.DateTime.fromISO(e);return t.isValid?t:null}if(typeof e=="number"){let t=luxon.DateTime.fromMillis(e);return t.isValid?t:null}return null},AC=(e,t=false,r)=>{if(!e)return null;let o=dn(e);if(!o)return "Invalid Date";let n=r?o.setZone(r):o;return t?n.toLocaleString(luxon.DateTime.DATETIME_SHORT):n.toLocaleString(luxon.DateTime.DATE_SHORT)},ss=e=>{if(!e)return null;let t=dn(e);return t?t.toRelative():"Invalid Date"},IC=(e,t)=>{if(!e)return null;let r=dn(e);return r?(t?r.setZone(t):r).toLocaleString(luxon.DateTime.DATETIME_MED_WITH_WEEKDAY):"Invalid Date"},FC=e=>{if(!e)return null;let t=dn(e);return t?t.toISO():null},BC=(e,t,r)=>{if(!e)return null;let o=dn(e);return o?(r?o.setZone(r):o).toFormat(t):"Invalid Date"},PA=e=>{let t=dn(e);return t?{year:t.year,month:t.month,day:t.day,weekday:t.weekday,hour:t.hour,minute:t.minute,second:t.second,millisecond:t.millisecond,weekdayShort:t.weekdayShort,weekdayLong:t.weekdayLong,monthShort:t.monthShort,monthLong:t.monthLong}:null},gm=(e,t)=>{if(t.hideWhenNull&&e==null)return null;if(e==null)return t.nullText??null;let r=dn(e);if(!r)return t.nullText??"Invalid Date";let o=t.timezone?r.setZone(t.timezone):r;if(t.relative)return o.toRelative();if(t.format)return o.toFormat(t.format);if(t.dateStyle||t.timeStyle){let n={};if(t.dateStyle)switch(t.dateStyle){case "short":n.date=luxon.DateTime.DATE_SHORT;break;case "medium":n.date=luxon.DateTime.DATE_MED;break;case "long":n.date=luxon.DateTime.DATE_FULL;break;case "full":n.date=luxon.DateTime.DATE_HUGE;break}if(t.timeStyle)switch(t.timeStyle){case "short":n.time=luxon.DateTime.TIME_SIMPLE;break;case "medium":n.time=luxon.DateTime.TIME_WITH_SECONDS;break;case "long":case "full":n.time=luxon.DateTime.TIME_WITH_SHORT_OFFSET;break}if(n.date&&n.time)return o.toLocaleString({...n.date,...n.time});if(n.date)return o.toLocaleString(n.date);if(n.time)return o.toLocaleString(n.time)}return o.toLocaleString(luxon.DateTime.DATETIME_SHORT)};oe.register("date",(e,t,r)=>AC(e,typeof t=="boolean"?t:false,typeof r=="string"?r:void 0));oe.register("relativeTime",e=>ss(e));oe.register("fullDateTime",(e,t)=>IC(e,typeof t=="string"?t:void 0));oe.register("isoString",e=>FC(e));oe.register("customDateFormat",(e,t,r)=>typeof t=="string"?BC(e,t,typeof r=="string"?r:void 0):null);var Hc=(e,t=1)=>me(e)?null:`${e.toFixed(t)} m`,VC=(e,t=1)=>me(e)?null:`${(e*100).toFixed(t)} cm`,zC=(e,t=0)=>me(e)?null:`${(e*1e3).toFixed(t)} mm`,Wc=(e,t=1)=>me(e)?null:`${(e/1e3).toFixed(t)} km`,Gc=(e,t=0)=>me(e)?null:`${e.toFixed(t)} ft`,OC=(e,t=1)=>me(e)?null:`${e.toFixed(t)} in`,Uc=(e,t=1)=>me(e)?null:`${e.toFixed(t)} mi`,Kc=(e,t=0)=>me(e)?null:`${e.toFixed(t)} yd`,EA=(e,t=1)=>me(e)?null:`${e.toFixed(t)} nm`,LA=e=>e*3.28084,AA=e=>e/3.28084,IA=e=>e*1.60934,FA=e=>e/1.60934,BA=e=>e/5280,bm=e=>e*5280,VA=e=>e/1609.34,zA=e=>e*1609.34,OA=e=>e*.9144,HA=e=>e/.9144,WA=e=>e*2.54,GA=e=>e/2.54,xm=(e,t=false,r=1)=>{if(me(e))return null;let o=Math.abs(e);return t?o>=1e3?Wc(e,r):o<.01?zC(e,0):o<1?VC(e,r):Hc(e,r):o<.01?Gc(bm(e),0):o<.1?Kc(bm(e)/3,0):Uc(e,r)},hm=(e,t)=>{if(t.hideWhenNull&&e==null||t.hideWhenZero&&e===0)return null;if(e==null)return t.nullText??null;let r=typeof e=="string"?parseFloat(e):Number(e);if(isNaN(r))return t.nullText??null;let o=t.decimals??1;if(t.autoScale){let n=t.unit==="m"||t.unit==="km";return xm(r,n,o)}switch(t.unit){case "km":return Wc(r,o);case "ft":return Gc(r,o);case "mi":return Uc(r,o);case "yd":return Kc(r,o);default:return Hc(r,o)}};oe.register("miles",(e,t)=>typeof e=="number"?Uc(e,typeof t=="number"?t:1):null);oe.register("kilometers",(e,t)=>typeof e=="number"?Wc(e,typeof t=="number"?t:1):null);oe.register("meters",(e,t)=>typeof e=="number"?Hc(e,typeof t=="number"?t:1):null);oe.register("feet",(e,t)=>typeof e=="number"?Gc(e,typeof t=="number"?t:0):null);oe.register("yards",(e,t)=>typeof e=="number"?Kc(e,typeof t=="number"?t:0):null);oe.register("inches",(e,t)=>typeof e=="number"?OC(e,typeof t=="number"?t:1):null);oe.register("autoScaleDistance",(e,t,r)=>typeof e=="number"?xm(e,typeof t=="boolean"?t:false,typeof r=="number"?r:1):null);var Yc=(e,t=1)=>me(e)?null:`${e.toFixed(t)} Wh`,Jc=(e,t=1)=>me(e)?null:`${(e/1e3).toFixed(t)} kWh`,ym=(e,t=1)=>me(e)?null:`${(e/1e6).toFixed(t)} MWh`,vm=(e,t=1)=>me(e)?null:`${(e/1e9).toFixed(t)} GWh`,Xc=e=>{let t=Math.abs(e);return t>=1e9?"GWh":t>=1e6?"MWh":t>=1e3?"kWh":"Wh"},Cm=(e,t=1)=>{if(me(e))return null;switch(Xc(e)){case "GWh":return vm(e,t);case "MWh":return ym(e,t);case "kWh":return Jc(e,t);default:return Yc(e,t)}},jc={Wh:1,kWh:1e3,MWh:1e6,GWh:1e9},qc=(e,t)=>{if(t.hideWhenNull&&e==null||t.hideWhenZero&&e===0)return null;if(e==null)return t.nullText??null;let r=typeof e=="string"?parseFloat(e):Number(e);if(isNaN(r))return t.nullText??null;let o=t.sourceUnit?r*jc[t.sourceUnit]:r,n=t.decimals??1;if(t.unit)switch(t.unit){case "GWh":return vm(o,n);case "MWh":return ym(o,n);case "kWh":return Jc(o,n);case "Wh":return Yc(o,n)}return t.autoScale!==false?Cm(o,n):Yc(o,n)};oe.register("kWh",e=>typeof e=="number"?Jc(e):null);oe.register("autoScaleEnergy",(e,t)=>typeof e=="number"?Cm(e,typeof t=="number"?t:1):null);oe.register("energy",qc);var ls=e=>{if(!e)return null;let t=e.replace(/\D/g,"");return t.length===10?t.replace(/(\d{3})(\d{3})(\d{4})/,"($1) $2-$3"):t.length===11&&t.startsWith("1")?t.replace(/1(\d{3})(\d{3})(\d{4})/,"+1 ($1) $2-$3"):e},Qc=e=>{if(!e)return null;let t=e.replace(/[^\d+]/g,"");return t.startsWith("+")?t.length===12&&t.startsWith("+1")?t.replace(/\+1(\d{3})(\d{3})(\d{4})/,"+1 ($1) $2-$3"):t.length===13&&t.startsWith("+44")?t.replace(/\+44(\d{2})(\d{4})(\d{4})/,"+44 $1 $2 $3"):t.replace(/(\+\d{1,3})(\d{3,4})(\d{3,4})(\d{3,4})?/,"$1 $2 $3 $4").trim():ls(e)},da=e=>e?e.startsWith("+")||e.length>11?Qc(e):ls(e):null,Sm=(e,t)=>{if(t.hideWhenNull&&e==null)return null;if(e==null)return t.nullText??null;let r=String(e);if(t.international)return Qc(r);switch(t.country){case "US":case "CA":return ls(r);default:return da(r)}};oe.register("phoneNumber",e=>typeof e=="string"?da(e):null);oe.register("usPhone",e=>typeof e=="string"?ls(e):null);oe.register("internationalPhone",e=>typeof e=="string"?Qc(e):null);var cs=(e,t=0)=>me(e)?null:t===0?`${Math.round(e)} W`:`${e.toFixed(t)} W`,Zc=(e,t=1)=>me(e)?null:`${(e/1e3).toFixed(t)} kW`,_c=(e,t=1)=>me(e)?null:`${(e/1e6).toFixed(t)} MW`,$c=(e,t=2)=>me(e)?null:`${(e/1e9).toFixed(t)} GW`,HC=(e,t)=>{if(me(e))return null;let r=Math.abs(e);return r>=1e9?$c(e,t??2):r>=1e6?_c(e,t??1):r>=1e3?Zc(e,t??1):cs(e,t??0)},ed=(e,t)=>{if(t.hideWhenNull&&e==null||t.hideWhenZero&&e===0)return null;if(e==null)return t.nullText??null;let r=typeof e=="string"?parseFloat(e):Number(e);if(isNaN(r))return t.nullText??null;let o=t.decimals;if(t.unit)switch(t.unit){case "GW":return $c(r,o??2);case "MW":return _c(r,o??1);case "kW":return Zc(r,o??1);case "W":return cs(r,o??0)}return t.autoScale!==false?HC(r,o):cs(r,o??0)};oe.register("power",ed);var ZA=cs,_A=Zc,$A=_c,e5=$c;var td=(e,t=1)=>me(e)?null:`${(e*1e3).toFixed(t)} m\u03A9`,ds=(e,t=1)=>me(e)?null:`${e.toFixed(t)} \u03A9`,wm=(e,t=1)=>me(e)?null:`${(e/1e3).toFixed(t)} k\u03A9`,Nm=(e,t=2)=>me(e)?null:`${(e/1e6).toFixed(t)} M\u03A9`,WC=(e,t)=>{if(me(e))return null;let r=Math.abs(e);return r>=1e6?Nm(e,t??2):r>=1e3?wm(e,t??1):r<1?td(e,t??1):ds(e,t??1)},rd=(e,t)=>{if(t.hideWhenNull&&e==null||t.hideWhenZero&&e===0)return null;if(e==null)return t.nullText??null;let r=typeof e=="string"?parseFloat(e):Number(e);if(isNaN(r))return t.nullText??null;let o=t.decimals;if(t.unit)switch(t.unit){case "M\u03A9":return Nm(r,o??2);case "k\u03A9":return wm(r,o??1);case "m\u03A9":return td(r,o??1);case "\u03A9":return ds(r,o??1)}return t.autoScale!==false?WC(r,o):ds(r,o??1)};oe.register("resistance",rd);oe.register("ohms",e=>typeof e=="number"?ds(e):null);oe.register("milliohms",e=>typeof e=="number"?td(e):null);var km=e=>{switch(e){case "FAHRENHEIT":return "F";case "CELSIUS":return "C";case "KELVIN":return "K";default:return "F"}},Tm=(e,t=0)=>me(e)?null:`${e.toFixed(t)}\xB0F`,Pm=(e,t=true,r=0)=>me(e)?null:`${(t?(e-32)*(5/9):e).toFixed(r)}\xB0C`,Rm=(e,t=true,r=0)=>me(e)?null:`${(t?(e-32)*(5/9)+273.15:e+273.15).toFixed(r)}K`,GC=e=>e*9/5+32,UC=e=>(e-32)*(5/9),s5=e=>e+273.15,KC=e=>e-273.15,l5=e=>UC(e)+273.15,c5=e=>GC(KC(e)),Mm=(e,t="F",r=0)=>{if(me(e))return null;switch(typeof t=="string"&&t.length>1?km(t):t){case "C":return Pm(e,true,r);case "K":return Rm(e,true,r);default:return Tm(e,r)}},Dm=(e,t)=>{if(t.hideWhenNull&&e==null)return null;if(e==null)return t.nullText??null;let r=typeof e=="string"?parseFloat(e):Number(e);if(isNaN(r))return t.nullText??null;let o=t.decimals??0,n=t.unit??"F";if(t.showUnit===false)switch(typeof n=="string"&&n.length>1?km(n):n){case "C":return ((r-32)*.5555555555555556).toFixed(o);case "K":return ((r-32)*.5555555555555556+273.15).toFixed(o);default:return r.toFixed(o)}return Mm(r,n,o)};oe.register("temperature",(e,t,r)=>typeof e=="number"?Mm(e,typeof t=="string"?t:"F",typeof r=="number"?r:0):null);oe.register("fahrenheit",(e,t)=>typeof e=="number"?Tm(e,typeof t=="number"?t:0):null);oe.register("celsius",(e,t,r)=>typeof e=="number"?Pm(e,typeof t=="boolean"?t:true,typeof r=="number"?r:0):null);oe.register("kelvin",(e,t,r)=>typeof e=="number"?Rm(e,typeof t=="boolean"?t:true,typeof r=="number"?r:0):null);var YC=(e,t)=>!!(t.hideWhenNull&&e==null||t.hideWhenZero&&e===0),Em=e=>e?.toUpperCase()??"",Lm=e=>e?.toLowerCase()??"",Am=e=>e?e.charAt(0).toUpperCase()+e.slice(1).toLowerCase():"",Im=e=>{if(!e)return "";let t=new Set(["a","an","the","and","but","or","for","nor","on","at","of","to","with","in","as","by"]);return e.toLowerCase().split(/\s+/).map((r,o)=>t.has(r)&&o!==0?r:r.charAt(0).toUpperCase()+r.slice(1)).join(" ")},Fm=e=>e?e.split(/\s+/).map(t=>t.charAt(0).toUpperCase()+t.slice(1).toLowerCase()).join(" "):"",Bm=e=>e?e.charAt(0).toUpperCase()+e.slice(1):"",Vm=e=>e?e.replace(/([A-Z])/g," $1").replace(/^./,t=>t.toUpperCase()).trim():"",zm=e=>e?e.toLowerCase().split("_").map(t=>Bm(t)).join(" "):"",JC=e=>e?e.includes("_")?zm(e):e.toUpperCase()===e?Bm(e.toLowerCase()):Vm(e):"",ua=(e,t=16)=>{if(!e)return "";if(t<5||e.length<=t)return e;let r=t-3,o=Math.ceil(r/2),n=Math.floor(r/2);return `${e.slice(0,o)}...${e.slice(-n)}`},us=(e,t=8)=>e?e.length<=t?e:`...${e.slice(-t)}`:"",ps=(e,t=16,r="...")=>e?e.length<=t?e:e.slice(0,t)+r:"",XC=e=>{if(!e)return "";let t=e.toString(),r=t.slice(-4),o=t.length-4;return o>0?"*".repeat(o)+r:t},Om=(e,t)=>{if(YC(e,t))return null;if(e==null)return t.nullText??null;let r=String(e);if(t.transform&&(Array.isArray(t.transform)?t.transform:[t.transform]).forEach(n=>{switch(n){case "uppercase":r=Em(r);break;case "lowercase":r=Lm(r);break;case "capitalize":r=Fm(r);break;case "titleCase":r=Im(r);break;case "sentenceCase":r=Am(r);break}}),t.truncate){let{length:o,position:n,ellipsis:a="..."}=t.truncate;switch(n){case "start":r=us(r,o);break;case "middle":r=ua(r,o);break;case "end":r=ps(r,o,a);break}}return r};oe.register("uppercase",e=>Em(String(e)));oe.register("lowercase",e=>Lm(String(e)));oe.register("sentenceCase",e=>Am(String(e)));oe.register("titleCase",e=>Im(String(e)));oe.register("capitalize",e=>Fm(String(e)));oe.register("camelCaseToWords",e=>Vm(String(e)));oe.register("snakeCaseToWords",e=>zm(String(e)));oe.register("enumToSentenceCase",e=>JC(String(e)));oe.register("truncateMiddle",(e,t)=>ua(String(e),typeof t=="number"?t:16));oe.register("truncateStart",(e,t)=>us(String(e),typeof t=="number"?t:8));oe.register("truncateEnd",(e,t,r)=>ps(String(e),typeof t=="number"?t:16,typeof r=="string"?r:"..."));oe.register("secret",e=>XC(String(e)));var od=(e,t=0)=>{if(me(e))return null;let r=e*1e3;return t===0?`${Math.round(r)} mV`:`${r.toFixed(t)} mV`},ms=(e,t=0)=>me(e)?null:t===0?`${Math.round(e)} V`:`${e.toFixed(t)} V`,nd=(e,t=1)=>me(e)?null:`${(e/1e3).toFixed(t)} kV`,jC=(e,t)=>{if(me(e))return null;let r=Math.abs(e);return r>=1e3?nd(e,t??1):r<1?od(e,t??0):ms(e,t??0)},ad=(e,t)=>{if(t.hideWhenNull&&e==null||t.hideWhenZero&&e===0)return null;if(e==null)return t.nullText??null;let r=typeof e=="string"?parseFloat(e):Number(e);if(isNaN(r))return t.nullText??null;let o=t.decimals;if(t.unit)switch(t.unit){case "kV":return nd(r,o??1);case "mV":return od(r,o??0);case "V":return ms(r,o??0)}return t.autoScale!==false?jC(r,o):ms(r,o??0)};oe.register("voltage",ad);var g5=od,b5=ms,x5=nd;var qC=(e,t)=>{if(e==null)return t.nullText??null;if(t.hideWhenNull&&e===null)return null;let r=typeof e=="number"?e:Number(e);return Number.isNaN(r)?t.nullText??null:um(r,t.decimals??0)},Vr=(e,t)=>{switch(t.type){case "text":return Om(e,t);case "number":return mm(e,t);case "percentage":return qC(e,t);case "currency":return fm(e,t);case "date":return gm(e,t);case "boolean":return cm(e,t);case "energy":return qc(e,t);case "power":return ed(e,t);case "voltage":return ad(e,t);case "current":return Oc(e,t);case "resistance":return rd(e,t);case "temperature":return Dm(e,t);case "distance":return hm(e,t);case "phone":return Sm(e,t);case "custom":{let r=t;return r.hideWhenNull&&e==null?null:e==null?r.nullText??null:r.formatter(e,r.options)}default:return e!=null?String(e):null}};var pa={power:"W",energy:"Wh",voltage:"V",current:"A",resistance:"\u03A9",distance:"m"},QC=new Set(["number","power","energy","voltage","current","resistance","temperature","distance","percentage"]);function id(e){if(!e)return null;switch(e.type){case "percentage":return "%";case "power":return e.unit??pa.power;case "energy":return e.unit??e.sourceUnit??pa.energy;case "voltage":return e.unit??pa.voltage;case "current":return e.unit??pa.current;case "resistance":return e.unit??pa.resistance;case "temperature":{let t=typeof e.unit=="string"?e.unit:"F";return t==="C"||t==="CELSIUS"?"\xB0C":t==="F"||t==="FAHRENHEIT"?"\xB0F":t==="K"||t==="KELVIN"?"K":t}case "distance":return e.unit??pa.distance;default:return null}}function Hm(e,t){if(!QC.has(t.type))return null;let r;if(typeof e=="number")r=e;else if(typeof e=="string"){let n=parseFloat(e);if(Number.isNaN(n))return null;r=n;}else return null;let o=id(t);if(o!==null){let n;if(t.type==="percentage")n=t;else if(t.type==="energy")n=t.unit?{...t,autoScale:false}:{...t,unit:t.sourceUnit??"Wh",autoScale:false};else if(t.type==="temperature")n={...t};else {let s=t.unit;n={...t,unit:s??o,autoScale:false};}let a=Vr(r,n);if(!a)return "";if(typeof a=="string"&&a.startsWith("device."))return null;let i=String(a);return i.endsWith(` ${o}`)?i.slice(0,-(o.length+1)):i.endsWith(o)?i.slice(0,-o.length):i}if(t.type==="number"){let n=Vr(r,t);return n?String(n):""}return String(r)}var I5=(e,t)=>({type:e,...t});function pn(e){return e instanceof Date&&!Number.isNaN(e.getTime())}function un(e,t){return pn(e)?t.format(e):""}function Wm(e){if(!pn(e.start)||!pn(e.end))return ()=>"";if((e.end.getTime()-e.start.getTime())/(1e3*60*60)<=720){let i=new Intl.DateTimeFormat("en",{month:"short",day:"numeric",hour:"numeric",minute:"2-digit"});return s=>un(s,i)}let r=e.start.getFullYear(),o=e.end.getFullYear(),n=r!==o,a=new Intl.DateTimeFormat("en",{month:"short",day:"numeric",hour:"numeric",minute:"2-digit",...n&&{year:"numeric"}});return i=>un(i,a)}var ZC=864e5;function Gm(e,t){let r=t?.compact??false,o=e<5*ZC,n=a=>{let i=a.getHours(),s=i>=12?"PM":"AM";return {displayHour:i%12||12,period:s}};return a=>{if(!pn(a))return "";let i=a.getHours()===0&&a.getMinutes()===0&&a.getSeconds()===0&&a.getMilliseconds()===0;if(i&&a.getDate()===1)return a.getMonth()===0?String(a.getFullYear()):a.toLocaleDateString("en",{month:"short"});if(i){let u=a.getDate();if(o){let d=a.toLocaleDateString("en",{weekday:"short"});return r?`${d.charAt(0)}${u}`:`${d} ${u}`}return r?`${a.getMonth()+1}/${u}`:`${a.toLocaleDateString("en",{month:"short"})} ${u}`}let{displayHour:s,period:c}=n(a);if(a.getMinutes()===0&&a.getSeconds()===0)return r?`${s}${c.charAt(0).toLowerCase()}`:`${s} ${c}`;let l=String(a.getMinutes()).padStart(2,"0");return r?`${s}:${l}${c.charAt(0).toLowerCase()}`:`${s}:${l} ${c}`}}function sd(e,t){if(!pn(e.start)||!pn(e.end))return ()=>"";let r=(e.end.getTime()-e.start.getTime())/(1e3*60*60),o=t?.compact??false,n=l=>u=>pn(u)?l(u):"";if(r<=24){if(o)return n(u=>{let d=u.getHours(),m=d>=12?"pm":"am";return `${d%12||12}${m}`});let l=new Intl.DateTimeFormat("en",{hour:"numeric",minute:"2-digit"});return u=>un(u,l)}if(r<=48){if(o)return n(u=>{let d=u.getMonth()+1,m=u.getDate(),p=u.getHours(),g=p>=12?"p":"a",f=p%12||12;return `${d}/${m} ${f}${g}`});let l=new Intl.DateTimeFormat("en",{month:"short",day:"numeric",hour:"numeric"});return u=>un(u,l)}if(r<=168){if(o)return n(u=>{let d=u.getDate();return `${u.toLocaleDateString("en",{weekday:"short"}).charAt(0)}${d}`});let l=new Intl.DateTimeFormat("en",{weekday:"short",day:"numeric"});return u=>un(u,l)}if(r<=720){if(o)return n(u=>{let d=u.getMonth()+1,m=u.getDate();return `${d}/${m}`});let l=new Intl.DateTimeFormat("en",{month:"short",day:"numeric"});return u=>un(u,l)}let a=e.start.getFullYear(),i=e.end.getFullYear(),s=a!==i;if(o)return n(l=>{let u=l.getMonth()+1,d=l.getDate(),m=s?`/${l.getFullYear().toString().slice(-2)}`:"";return `${u}/${d}${m}`});let c=new Intl.DateTimeFormat("en",{month:"short",day:"numeric",...s&&{year:"numeric"}});return l=>un(l,c)}var qr={displayXl:"text-display-xl",displayLg:"text-display-lg",displayMd:"text-display-md",displaySm:"text-display-sm",headingXl:"text-heading-xl",headingLg:"text-heading-lg",headingMd:"text-heading-md",headingSm:"text-heading-sm",bodyLg:"text-body-lg",bodyMd:"text-body-md",bodySm:"text-body-sm",labelLg:"text-label-lg",labelMd:"text-label-md",labelSm:"text-label-sm",code:"text-code",agent:"text-agent"};function gt(e,...t){return jt(qr[e],...t)}function Je(e=false){return `${e?"outline outline-1 outline-border-input data-[focus-visible]:outline-2 data-[focus-visible]:outline-action-default data-[focus-visible]:outline-offset-0 invalid:outline-2 invalid:outline-feedback-error-border group-invalid:outline-2 group-invalid:outline-feedback-error-border forced-colors:focus:outline-[Highlight] forced-colors:focus:outline-2 forced-colors:focus:outline-offset-2":"outline-none data-[focus-visible]:outline data-[focus-visible]:outline-2 data-[focus-visible]:outline-action-default data-[focus-visible]:outline-offset-0 invalid:outline-2 invalid:outline-feedback-error-border group-invalid:outline-2 group-invalid:outline-feedback-error-border forced-colors:focus:outline-[Highlight] forced-colors:focus:outline-2 forced-colors:focus:outline-offset-2"}`}function ke(e,t){return reactAriaComponents.composeRenderProps(e,r=>tailwindMerge.twMerge(t,r))}var Ge={sm:{text:"text-[length:var(--control-text-sm)]",height:"h-[var(--control-sm-height)]",padding:"px-[var(--control-padding-sm)]",paddingY:"py-[var(--control-gap-sm)]",gap:"gap-[var(--control-gap-sm)]"},md:{text:"text-[length:var(--control-text-md)]",height:"h-[var(--control-md-height)]",padding:"px-[var(--control-padding-md)]",paddingY:"py-[var(--control-gap-md)]",gap:"gap-[var(--control-gap-md)]"},lg:{text:"text-[length:var(--control-text-lg)]",height:"h-[var(--control-lg-height)]",padding:"px-[var(--control-padding-lg)]",paddingY:"py-[var(--control-gap-lg)]",gap:"gap-[var(--control-gap-lg)]"},xl:{text:"text-[length:var(--control-text-xl)]",height:"h-[var(--control-xl-height)]",padding:"px-[var(--control-padding-xl)]",paddingY:"py-[var(--control-gap-xl)]",gap:"gap-[var(--control-gap-xl)]"}};var r0="flex font-medium justify-center items-center gap-2 text-center transition rounded-[var(--control-border-radius)] whitespace-nowrap box-border",o0="bg-action-primary text-[color:var(--color-action-primary-text)] hover:bg-action-primary-hover forced-colors:bg-[ButtonText] forced-colors:text-[ButtonFace] border-2 border-transparent",n0={primary:o0,secondary:"bg-action-secondary text-[color:var(--color-action-secondary-text)] border-2 border-border-muted hover:bg-action-secondary-hover forced-colors:border-[ButtonBorder] forced-colors:bg-[ButtonFace] forced-colors:text-[ButtonText]",ghost:"border-none text-text-primary hover:bg-text-primary/5 forced-colors:text-[ButtonText] forced-colors:hover:bg-[ButtonFace]",destructive:"bg-transparent text-feedback-error-text border-2 border-border-muted hover:bg-feedback-error-background/50 forced-colors:border-[ButtonBorder] forced-colors:bg-[ButtonFace] forced-colors:text-[Mark]",link:"!text-action-primary hover:text-action-primary/90 hover:underline hover:decoration-2 hover:underline-offset-4",icon:"border-none text-text-primary hover:bg-background-hover hover:text-text-primary forced-colors:text-[ButtonText] forced-colors:hover:bg-[ButtonFace] p-1 flex-shrink-0 rounded-[var(--control-border-radius)]",unstyled:"bg-transparent"},Km={full:"w-full",default:"w-fit"},a0="opacity-50 cursor-not-allowed pointer-events-none",i0="opacity-100 cursor-pointer",s0={"top-right":"-right-2 -top-2","top-left":"-left-2 -top-2","bottom-right":"-right-2 -bottom-2","bottom-left":"-left-2 -bottom-2"},l0={primary:"bg-action-primary text-[color:var(--color-action-primary-text)]",destructive:"bg-feedback-error-border text-text-inverse"};function c0(e){return !e||e==="default"||e==="brand"?"primary":e}function d0(e){let{variant:t="primary",size:r="md",isDisabled:o,fullWidth:n=false,isLoading:a=false}=e,i=c0(t),s=i==="unstyled"?"":`${r0} ${n0[i]}`;i!=="unstyled"&&(s+=` ${Ge[r].text} ${Ge[r].height} ${Ge[r].padding} ${Ge[r].gap}`),o||a?s+=` ${a0}`:s+=` ${i0}`,n?s+=` ${Km.full}`:s+=` ${Km.default}`;let c=i==="primary"?"focus-visible:outline-action-primary":void 0;return [s,Je(),c].filter(Boolean).join(" ")}function Z(e){let{icon:t,children:r,isLoading:o=false,loadingText:n,loadingIndicator:a,size:i="md",iconPosition:s="left",iconWeight:c,href:l,className:u,badgeNumber:d,badgeVariant:m="primary",badgePosition:p="top-right",style:g,target:f,rel:h,...b}=e,x=t?jsxRuntime.jsx(B,{name:t,size:i,weight:c}):null,y=jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[s==="left"&&x,typeof r=="function"?null:r,s==="right"&&x]}),v=jsxRuntime.jsxs("div",{className:"relative inline-flex items-center justify-center",children:[jsxRuntime.jsx("div",{className:"absolute inset-0 flex items-center justify-center",children:a||jsxRuntime.jsx(B,{name:"CircleNotch",size:i,className:"animate-spin","aria-hidden":"true"})}),jsxRuntime.jsx("div",{className:"invisible","aria-hidden":"true",children:y}),n&&jsxRuntime.jsx("span",{className:"sr-only",role:"status","aria-live":"polite",children:n})]}),S=(d??0)>0,w=tailwindMerge.twMerge(d0(e),u),N=l?{href:l,target:f,rel:h,...b}:{};if(l){let{onPress:k,onPressStart:T,onPressEnd:A,onPressChange:M,onPressUp:E,onAuxClick:P,onContextMenu:O,onDoubleClick:G,...K}=b;Object.assign(N,K);}let R=l?jsxRuntime.jsx(reactAriaComponents.Link,{...N,...o&&{"aria-busy":true},style:S?void 0:g,className:w,children:o?v:typeof r=="function"?(function(k){return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[s==="left"&&x,r(k),s==="right"&&x]})}):y}):jsxRuntime.jsx(reactAriaComponents.Button,{...b,...o&&{"aria-busy":true},style:S?void 0:g,className:w,children:o?v:typeof r=="function"?(function(k){return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[s==="left"&&x,r(k),s==="right"&&x]})}):y});return S?jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("relative flex",u),style:g,children:[R,jsxRuntime.jsx("span",{className:`absolute ${s0[p]} flex h-5 w-5 items-center justify-center rounded-full ${l0[m]} text-xs font-medium`,"aria-label":`${d} items`,children:d})]}):R}function cd({action:e,defaultVariant:t,defaultSize:r="lg"}){let o=!!e.formId;return jsxRuntime.jsx(Z,{type:o?"submit":"button",form:o?e.formId:void 0,size:e.size||r,variant:e.variant||t,onPress:o?void 0:e.onPress,isLoading:e.isLoading,isDisabled:e.isDisabled,children:e.label})}function Io({primaryAction:e,secondaryAction:t,tertiaryAction:r,footerContent:o}){let n=e||t||r;return !n&&!o?null:jsxRuntime.jsxs("div",{className:`flex w-full flex-col items-center justify-center border-t p-4 ${o?"h-28":""}`,children:[o&&jsxRuntime.jsx("div",{className:"flex h-10 justify-center",children:o}),n&&jsxRuntime.jsxs("div",{className:"flex w-full items-center justify-between gap-3",children:[jsxRuntime.jsx("div",{children:r&&jsxRuntime.jsx(cd,{action:r,defaultVariant:"destructive"})}),jsxRuntime.jsxs("div",{className:"flex items-center gap-3",children:[t&&jsxRuntime.jsx(cd,{action:t,defaultVariant:"secondary"}),e&&jsxRuntime.jsx(cd,{action:e,defaultVariant:"primary"})]})]})]})}var u0={heading:{sm:qr.headingSm,md:qr.headingMd,lg:qr.headingLg,xl:qr.headingXl},display:{sm:qr.displaySm,md:qr.displayMd,lg:qr.displayLg,xl:qr.displayXl}},p0={page:"h-16 leading-[62px]"};function Qt({tag:e="h1",variant:t="heading",size:r="lg",height:o,className:n="",children:a}){let i=r==="xs"?"sm":r,s=u0[t][i],c=o?p0[o]:"";return jsxRuntime.jsx(e,{className:jt(s,"text-text-primary",c,n),children:a})}var Ht=({title:e,onClose:t,hideCloseIcon:r=false,titleAlign:o="left",hasBackArrow:n=false,onBack:a,headerContent:i})=>jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("relative flex h-16 w-full flex-shrink-0 items-center justify-between border-b px-6",e&&"border-b",o==="center"?"justify-center":""),children:[n&&jsxRuntime.jsx(Z,{variant:"icon",onPress:a,className:"absolute left-6","aria-label":"Go back",children:jsxRuntime.jsx(B,{name:"CaretLeft","data-testid":"back-arrow"})}),i||jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[e&&jsxRuntime.jsx(Qt,{size:"xs",children:e}),t&&!r&&jsxRuntime.jsx(Z,{variant:"icon",onPress:t,"aria-label":"Close dialog",children:jsxRuntime.jsx(B,{name:"X","data-testid":"close-button"})})]})]});var J=({width:e,height:t,variant:r="rect",animation:o="pulse",gradient:n=false,flex:a=false,stack:i,responsive:s,delay:c=0,adjustAnimationSpeedBasedOnWidth:l=false,ariaLabel:u,className:d,"data-testid":m})=>{let[p,g]=Oe.useState(c===0);if(Oe.useEffect(()=>{if(c>0){let S=setTimeout(()=>g(true),c);return ()=>clearTimeout(S)}},[c]),!p)return null;let f=n?"bg-gradient-to-r from-[var(--color-skeleton-base)] via-[var(--color-skeleton-highlight)] to-[var(--color-skeleton-base)]":"bg-[var(--color-skeleton-base)]",h=l&&e?(()=>{let S=typeof e=="number"?e:parseFloat(String(e));return isNaN(S)?"":`animation-duration-[${Math.max(.8,S/100)}s]`})():"",b=o==="pulse"?`animate-pulse ${h}`:o==="wave"?`relative overflow-hidden before:absolute before:inset-0 before:bg-gradient-to-r before:from-transparent before:via-[var(--color-skeleton-wave)] before:to-transparent before:animate-wave ${h}`:"",x="rounded-sm";r==="circle"&&(x="rounded-full"),r==="text"&&(x="h-4 w-full rounded-sm");let y=a?"flex-1 min-w-0":"",v=s?Object.entries(s).map(([S,w])=>`${S}:w-[${w}]`).join(" "):"";return i?jsxRuntime.jsx("div",{className:"space-y-2","data-testid":m,children:i.map((S,w)=>jsxRuntime.jsx("div",{className:tailwindMerge.twMerge(f,b,x,y,v,d),style:{width:S,height:t}},w))}):jsxRuntime.jsx("div",{className:tailwindMerge.twMerge(f,b,x,y,v,d),style:{width:e,height:t},role:"presentation","aria-hidden":!u,"aria-label":u??void 0,"data-testid":m})},Xm=({count:e=1,children:t,className:r,"data-testid":o})=>jsxRuntime.jsx("div",{className:r,"data-testid":o,children:Array.from({length:e}).map((n,a)=>jsxRuntime.jsx("div",{children:t},a))});var h0={outlined:"bg-background-surface border border-border-default",elevated:"bg-background-surface border-0 shadow-md",filled:"bg-background-muted border-0",ghost:"bg-transparent border-0 shadow-none"},y0="rounded-lg",ud={square:"aspect-square",video:"aspect-video",wide:"aspect-[2/1]",auto:""},v0={start:"justify-start",end:"justify-end",center:"justify-center",between:"justify-between"};function Ue({variant:e="outlined",className:t,children:r,isLoading:o=false,layout:n="default"}){return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("w-full overflow-hidden",h0[e],y0,n==="flex"&&"flex flex-col",t),"data-testid":"card",children:o?jsxRuntime.jsx(J,{width:"100%",height:"100%",className:"rounded-none"}):r})}function pd({title:e,subtitle:t,actions:r,className:o,isLoading:n=false}){return n?jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("p-6 pb-4",o),children:[jsxRuntime.jsxs("div",{className:"flex justify-between items-start mb-1",children:[jsxRuntime.jsx(J,{width:120,height:20}),jsxRuntime.jsx(J,{width:24,height:24})]}),t&&jsxRuntime.jsx(J,{width:200,height:16})]}):!e&&!t&&!r?null:jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("p-6 pb-4",o),children:jsxRuntime.jsxs("div",{className:"flex justify-between items-start gap-4",children:[jsxRuntime.jsxs("div",{className:"min-w-0 flex-1",children:[e&&jsxRuntime.jsx("div",{className:"mb-1",children:typeof e=="string"?jsxRuntime.jsx(Qt,{tag:"h3",size:"sm",className:"text-text-primary",children:e}):e}),t&&jsxRuntime.jsx("div",{className:gt("bodySm","text-text-secondary"),children:t})]}),r&&jsxRuntime.jsx("div",{className:"flex-shrink-0",children:r})]})})}function md({src:e,alt:t,aspectRatio:r="auto",className:o,children:n,isLoading:a=false}){return a?jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("bg-background-muted",ud[r],o),children:jsxRuntime.jsx(J,{width:"100%",height:"100%"})}):n?jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("overflow-hidden",ud[r],o),children:n}):e?jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("overflow-hidden",ud[r],o),children:jsxRuntime.jsx("img",{src:e,alt:t||"",className:"w-full h-full object-cover",loading:"lazy"})}):null}function fd({className:e,children:t,isLoading:r=false,fill:o=false}){let a=e?.match(/p(?:t|b|l|r|x|y)?-(?:\d+(?:\.\d+)?|px|\[.+?\])/)?"":"px-6 py-4";return r?jsxRuntime.jsx("div",{className:tailwindMerge.twMerge(a,o&&"flex-1 flex flex-col min-h-0",e),children:jsxRuntime.jsxs("div",{className:"space-y-2",children:[jsxRuntime.jsx(J,{width:"100%",height:16}),jsxRuntime.jsx(J,{width:"80%",height:16}),jsxRuntime.jsx(J,{width:"60%",height:16})]})}):t?jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("px-6 py-4 text-text-primary",o&&"flex-1 flex flex-col min-h-0",e),children:t}):null}function gd({className:e,children:t,align:r="end",isLoading:o=false}){return o?jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("px-6 py-4 flex gap-2 justify-end",e),children:[jsxRuntime.jsx(J,{width:80,height:32}),jsxRuntime.jsx(J,{width:60,height:32})]}):t?jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("px-6 py-4 flex items-center gap-2",v0[r],e),children:t}):null}Ue.Header=pd;Ue.Media=md;Ue.Content=fd;Ue.Footer=gd;var zr=class extends Oe.Component{constructor(){super(...arguments);qa(this,"state",{hasError:false});qa(this,"handleRetry",()=>{this.setState({hasError:false,error:void 0}),typeof window<"u"&&window.location.reload();});}static getDerivedStateFromError(r){return {hasError:true,error:r}}componentDidCatch(r,o){console.error("Error Boundary caught an error:",r,o);}render(){return this.state.hasError?this.props.fallback?this.props.fallback:jsxRuntime.jsxs(Ue,{children:[this.props.title&&jsxRuntime.jsx(Ue.Header,{title:this.props.title}),jsxRuntime.jsx(Ue.Content,{children:jsxRuntime.jsxs("div",{className:"flex flex-col items-center justify-center gap-4","data-testid":"error-boundary",children:[jsxRuntime.jsx("p",{className:"text-feedback-error-text",children:this.state.error?.message||"Something went wrong"}),jsxRuntime.jsx("button",{className:"rounded bg-action-default px-4 py-2 text-[color:var(--color-action-default-text)] hover:bg-action-default-hover",onClick:this.handleRetry,children:"Retry"})]})})]}):this.props.children}};var N0=.3,k0=.5;function ct({children:e,title:t,headerContent:r,titleAlign:o="left",hideCloseIcon:n=false,hasBackArrow:a=false,onBack:i,isOpen:s,onClose:c,isDismissable:l=true,transparentOverlay:u=false,primaryAction:d,secondaryAction:m,footerContent:p,maxHeight:g="80vh",height:f,maxWidth:h="640px",contentPadding:b=true,showHandle:x=true,animationVariant:y="scale",className:v}){let[S,w]=Oe.useState(false),[N,R]=Oe.useState(0),[k,T]=Oe.useState(false),A=os(s),M=A?.height??null,E=A?.keyboardOffset??0,P=Oe.useRef(null),O=Oe.useRef(null),G=Oe.useRef(null),K=Oe.useRef({isDragging:false,startY:0,startTime:0,pointerId:null});Oe.useEffect(()=>{if(s){let D=setTimeout(()=>{w(true),setTimeout(()=>w(false),600);},400);return ()=>clearTimeout(D)}},[s]),Oe.useEffect(()=>{s||(R(0),T(false),K.current={isDragging:false,startY:0,startTime:0,pointerId:null});},[s]),Oe.useEffect(()=>{let D=O.current;if(!D||!s)return;let U=null,I=C=>{let F=C.target;F&&["INPUT","TEXTAREA","SELECT"].includes(F.tagName)&&(U&&clearTimeout(U),U=setTimeout(()=>{F.scrollIntoView({block:"nearest",behavior:"smooth"});},320));};return D.addEventListener("focusin",I),()=>{D.removeEventListener("focusin",I),U&&clearTimeout(U);}},[s]);let W=Oe.useCallback(D=>{l&&(D.pointerType!=="touch"&&D.pointerType!=="pen"||(G.current&&(clearTimeout(G.current),G.current=null),K.current={isDragging:true,startY:D.clientY,startTime:Date.now(),pointerId:D.pointerId},T(false),D.currentTarget.setPointerCapture(D.pointerId)));},[l]),q=Oe.useCallback(D=>{let{isDragging:U,startY:I,pointerId:C}=K.current;if(!U||D.pointerId!==C)return;let F=D.clientY-I;R(Math.max(0,F));},[]),j=Oe.useCallback(D=>{let{isDragging:U,startY:I,startTime:C,pointerId:F}=K.current;if(!U||D.pointerId!==F)return;let H=D.clientY-I,Y=Date.now()-C,te=H/Y;K.current={isDragging:false,startY:0,startTime:0,pointerId:null};let _=(P.current?.getBoundingClientRect().height??0)*N0;(H>_||te>k0&&H>50)&&l?(c?.(),R(0)):(T(true),R(0),G.current=setTimeout(()=>{T(false),G.current=null;},200));},[l,c]);if(!s)return null;let Q=t||r,L=d||m||p;return jsxRuntime.jsx(zr,{children:jsxRuntime.jsx(cr,{isOpen:s,onOpenChange:D=>{D||c?.();},isDismissable:l,transparent:u,style:{paddingBottom:E>0?`${E}px`:void 0,transition:"padding-bottom 0.25s ease-out"},className:"flex items-end justify-center p-0 sm:p-4",children:jsxRuntime.jsx(reactAriaComponents.Modal,{className:"w-full max-w-full p-0 sm:p-2 outline-none focus:outline-none focus-visible:outline-none ring-0 focus:ring-0 focus-visible:ring-0",isDismissable:l,children:jsxRuntime.jsx("div",{ref:P,className:tailwindMerge.twMerge("w-full",k&&"transition-transform duration-200"),style:{transform:N>0?`translateY(${N}px)`:void 0},children:jsxRuntime.jsxs(reactAriaComponents.Dialog,{className:tailwindMerge.twMerge("relative flex w-full flex-col overflow-hidden","bg-background-surface","shadow-2xl shadow-black/30 dark:shadow-black/60","border-t border-x border-border-default/40","outline-none focus:outline-none focus-visible:outline-none ring-0 focus:ring-0 focus-visible:ring-0 focus:shadow-none","origin-bottom",y==="scale"?"animate-[tray-enter-scale_400ms_cubic-bezier(0.32,0.72,0,1)]":"animate-[tray-enter_400ms_cubic-bezier(0.32,0.72,0,1)]",y==="scale"?"data-[exiting]:animate-[tray-exit-scale_250ms_cubic-bezier(0.32,0,0.67,0)]":"data-[exiting]:animate-[tray-exit_250ms_cubic-bezier(0.32,0,0.67,0)]",v),style:{maxWidth:h,...f?{height:f}:{maxHeight:/\d/.test(g)?M!==null?`min(${g}, ${Math.max(M-8,0)}px, 100dvh)`:`min(${g}, 100dvh)`:g}},children:[x&&jsxRuntime.jsx("div",{className:"absolute top-0 left-0 right-0 h-8 z-10 flex justify-center items-start pt-2 touch-none cursor-grab active:cursor-grabbing",onPointerDown:W,onPointerMove:q,onPointerUp:j,onPointerCancel:j,children:jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("h-1 w-12 rounded-full bg-border-muted transition-all duration-300","hover:bg-border-default hover:w-16",S&&"animate-[handle-wiggle_0.6s_ease-in-out]")})}),Q&&(a?jsxRuntime.jsx(Ht,{title:t,headerContent:r,titleAlign:o,hideCloseIcon:n||!c,hasBackArrow:true,onBack:i??(()=>{}),onClose:c||(()=>{})}):jsxRuntime.jsx(Ht,{title:t,headerContent:r,titleAlign:o,hideCloseIcon:n||!c,onClose:c||(()=>{})})),jsxRuntime.jsx("div",{ref:O,className:tailwindMerge.twMerge("flex-1 min-h-0 overflow-y-auto overscroll-contain",b?"p-4":"p-0"),children:e}),L&&jsxRuntime.jsx(Io,{primaryAction:d,secondaryAction:m,footerContent:p})]})})})})})}ct.displayName="Tray";function ga({children:e,items:t,className:r,align:o="left",textAlign:n="left",size:a="md",onAction:i,header:s,footer:c,useMobileTray:l=true,popoverClassName:u}){let[d,m]=Oe.useState(false),{isMobile:p}=Xt();if(l&&p){let f=Oe__namespace.default.isValidElement(e)?Oe__namespace.default.cloneElement(e,{onPress:()=>m(true)}):e,x=(y=>{if(typeof y=="string")return y;if(Oe__namespace.default.isValidElement(y)){let v=y.props;if(typeof v.children=="string")return v.children;if(Array.isArray(v.children))return v.children.find(w=>typeof w=="string")||""}return ""})(e)||"Actions";return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("div",{className:r,children:f}),jsxRuntime.jsx(ct,{isOpen:d,onClose:()=>m(false),title:x,contentPadding:false,headerContent:s,footerContent:c,children:jsxRuntime.jsx("div",{className:"flex flex-col",children:t.map(y=>{let v=y.href&&!y.disabled?"a":"button";return jsxRuntime.jsxs(v,{...y.href&&!y.disabled?{href:y.href}:{},onClick:()=>{y.disabled||(y.onAction?y.onAction():i?.(y),m(false));},disabled:y.disabled,"data-testid":y.testId,className:tailwindMerge.twMerge("flex w-full items-center text-start transition-colors",!y.noPadding&&"px-6 py-3","border-b border-border-muted last:border-0",y.variant==="destructive"?"text-feedback-error-text hover:bg-feedback-error-background active:bg-feedback-error-background/80":"text-text-primary hover:bg-background-hover active:bg-background-hover/80",y.disabled&&"opacity-50 cursor-not-allowed"),children:[y.iconName&&jsxRuntime.jsx(B,{name:y.iconName,size:20,className:"mr-3 flex-shrink-0"}),jsxRuntime.jsx("div",{className:"flex flex-1 flex-col",children:y.render?y.render():jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("span",{className:y.subtitle?"font-medium":"",children:y.name}),y.subtitle&&jsxRuntime.jsx("span",{className:"text-sm text-text-secondary",children:y.subtitle})]})})]},y.id)})})})]})}return jsxRuntime.jsx("div",{className:r,children:jsxRuntime.jsxs(reactAriaComponents.MenuTrigger,{children:[e,jsxRuntime.jsx(lt,{className:tailwindMerge.twMerge("w-fit min-w-[180px] overflow-auto rounded-[var(--control-border-radius)] border border-border-default","bg-background-surface shadow-lg","animate-in fade-in zoom-in-97","duration-200 ease-out","data-[exiting]:animate-out data-[exiting]:fade-out data-[exiting]:zoom-out-97","data-[exiting]:duration-150 data-[exiting]:ease-in",o==="right"?"origin-top-right":"origin-top-left",u),placement:o==="right"?"bottom end":"bottom start",children:jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("flex min-w-[180px] flex-col gap-1",u),children:[s?jsxRuntime.jsx("div",{className:"px-3 pb-2 pt-3",children:s}):null,jsxRuntime.jsx(reactAriaComponents.Menu,{className:"!outline-none",children:t.map(f=>jsxRuntime.jsx(D0,{id:f.id,href:f.href,onAction:()=>{f.onAction?f.onAction():i?.(f);},textAlign:n,size:a,iconName:f.iconName,isDisabled:f.disabled,variant:f.variant,subtitle:f.subtitle,render:f.render,noPadding:f.noPadding,"data-testid":f.testId,children:f.name},f.id))}),c?jsxRuntime.jsx("div",{className:"px-3 pb-3 pt-2",children:c}):null]})})]})})}function D0({textAlign:e="left",iconName:t,size:r="md",isDisabled:o,children:n,variant:a="default",subtitle:i,render:s,noPadding:c,...l}){let u={sm:"px-3 py-2 text-sm",md:i?"px-4 py-2.5 text-base":"px-4 py-2 text-base"},d="text-text-primary hover:bg-background-hover data-[focused]:bg-background-hover data-[focus-visible]:ring-2 data-[focus-visible]:ring-action-primary data-[focus-visible]:ring-inset",m={primary:d,default:d,destructive:"text-feedback-error-text hover:bg-feedback-error-background data-[focused]:bg-feedback-error-background data-[focus-visible]:ring-2 data-[focus-visible]:ring-feedback-error-border data-[focus-visible]:ring-inset"};return s?jsxRuntime.jsx(reactAriaComponents.MenuItem,{...l,isDisabled:o,className:tailwindMerge.twMerge("group box-border flex w-full cursor-pointer items-center rounded-sm outline-none transition-colors",!c&&u[r],m[a],e==="right"?"justify-end":"justify-start",o&&"pointer-events-none opacity-50"),children:s()}):jsxRuntime.jsxs(reactAriaComponents.MenuItem,{...l,isDisabled:o,className:tailwindMerge.twMerge("group box-border flex w-full cursor-pointer items-center rounded-sm outline-none transition-colors",!c&&u[r],m[a],e==="right"?"justify-end":"justify-start",o&&"pointer-events-none opacity-50"),children:[t&&e==="left"&&jsxRuntime.jsx(B,{name:t,size:r==="sm"?16:20,className:"mr-3 flex-shrink-0"}),jsxRuntime.jsxs("div",{className:"flex flex-1 flex-col",children:[jsxRuntime.jsx("span",{className:i?"font-medium":"",children:n}),i&&jsxRuntime.jsx("span",{className:"text-sm text-text-secondary",children:i})]}),t&&e==="right"&&jsxRuntime.jsx(B,{name:t,size:r==="sm"?16:20,className:"ml-3 flex-shrink-0"})]})}var go=({className:e,size:t=24,color:r="text-action-brand"})=>jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("inline-block animate-spin rounded-full border-2 border-solid border-current border-r-transparent",r,e),style:{width:t,height:t},role:"status","aria-label":"loading",children:jsxRuntime.jsx("span",{className:"sr-only",children:"Loading..."})});function Nr({state:e,message:t,className:r,customIndicator:o}){if(e!=="loading-more")return null;let n=jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("flex items-center justify-center gap-2 py-4","text-text-secondary",r),"aria-label":t||"Loading",children:[jsxRuntime.jsx(go,{size:20,color:"text-text-secondary"}),t&&jsxRuntime.jsx("span",{className:"text-sm","aria-hidden":"true",children:t})]});return o||n}function Fo({items:e,onLoadMore:t,hasMore:r,isLoading:o=false,loadingState:n,enableVirtualization:a,estimatedItemSize:i=50,overscan:s=5,scrollElement:c,loadMoreThreshold:l=100}){let u=Oe.useRef(null),d=Oe.useRef(null),m=Oe.useRef(false),[p,g]=Oe.useState(0);Oe.useEffect(()=>{d.current&&(c||u.current)&&g(R=>R+1);},[c,e.length]);let f=n||(o?e.length===0?"loading":"loading-more":"idle"),h=f==="loading",b=f==="loading-more",x=a!==void 0?a:e.length>=100,y=reactVirtual.useVirtualizer({count:e.length,getScrollElement:()=>c||u.current,estimateSize:()=>i,overscan:s}),v=x?y:null,S=x?y.getVirtualItems():[];Oe.useEffect(()=>{let R=d.current,k=c||u.current;if(!R||!k||!r||o||!t)return;let T=new IntersectionObserver(A=>{let[M]=A;M?.isIntersecting&&!m.current&&r&&t&&(m.current=true,Promise.resolve(t()).finally(()=>{m.current=false;}));},{root:k,rootMargin:`0px 0px ${l}px 0px`,threshold:0});return T.observe(R),()=>{T.disconnect();}},[r,o,t,c,l,p]);let w=Oe.useCallback((R,k)=>{v?v.scrollToIndex(R,k):u.current&&u.current.children[R]?.scrollIntoView({behavior:"smooth",block:k?.align||"start"});},[v]),N=Oe.useCallback(()=>{v?v.scrollToIndex(0,{align:"start"}):u.current&&u.current.scrollTo({top:0,behavior:"smooth"});},[v]);return {virtualizer:v,virtualItems:S,computedLoadingState:f,isInitialLoad:h,isLoadingMore:b,scrollRef:u,loadMoreRef:d,scrollToIndex:w,scrollToTop:N}}var ba=Oe.createContext({variant:"timeline",size:"md"});function of(){return Oe.useContext(ba)}function xs(e){return Oe.isValidElement(e)&&e.type===vs}function H0(e){return Oe.isValidElement(e)&&e.type===ys}function Sd({variant:e="timeline",size:t="md",className:r,children:o,items:n,renderItem:a,isLoading:i=false,loadingState:s,error:c=null,renderLoadingSkeleton:l,loadingSkeletonCount:u=5,emptyMessage:d="No activity found.",onLoadMore:m,hasMore:p=false,enableVirtualization:g,estimatedItemSize:f,loadingIndicator:h,height:b,maxHeight:x,...y}){let v=Oe.useRef(null),{isMobile:S}=Xt(),w=S?"stacked":e,N=n!==void 0&&a!==void 0,{scrollRef:R,loadMoreRef:k,virtualizer:T,virtualItems:A,isLoadingMore:M,computedLoadingState:E}=Fo({items:n||[],onLoadMore:N?m:void 0,hasMore:N?p:false,isLoading:i,loadingState:s,enableVirtualization:N?g:false,estimatedItemSize:f||(w==="stacked"?120:150),overscan:5}),P=N&&R?R:v,O=Oe.useMemo(()=>({variant:w,size:t}),[w,t]),G=w==="timeline"?t==="sm"?"gap-4":"gap-6":"gap-0",K=w==="stacked"?"divide-y divide-border-subtle rounded-lg border border-border-subtle bg-background-surface":"",W={};if(N&&m&&(b?(W.height=typeof b=="number"?`${b}px`:b,W.overflowY="auto"):x?(W.maxHeight=typeof x=="number"?`${x}px`:x,W.overflowY="auto"):(W.height="600px",W.overflowY="auto")),N){let Q=E==="loading"||i&&(!n||n.length===0);if(Q){let D=l?jsxRuntime.jsx(jsxRuntime.Fragment,{children:Array.from({length:u}).map((U,I)=>jsxRuntime.jsx("div",{children:l()},`skeleton-${I}`))}):jsxRuntime.jsx(jsxRuntime.Fragment,{children:Array.from({length:u}).map((U,I)=>{let C=t==="sm"?"gap-2":"gap-3";if(w==="timeline"){let F=t==="sm"?"pt-3":"pt-4",H=t==="sm"?"p-3":"p-4";return jsxRuntime.jsxs("div",{className:"group relative grid items-start gap-4 grid-cols-[3rem_1fr]",children:[jsxRuntime.jsxs("div",{className:`relative flex h-full flex-col items-center ${F}`,children:[jsxRuntime.jsx(J,{width:32,height:32,variant:"circle"}),I<u-1&&jsxRuntime.jsx("span",{className:"absolute top-[2rem] left-1/2 w-0 border-l-2 border-dotted -translate-x-1/2 h-[calc(100%+2.5rem)] border-border-muted"})]}),jsxRuntime.jsxs("div",{className:`min-w-0 flex flex-col ${C} ${H} rounded-md border border-border-subtle bg-background-surface`,children:[jsxRuntime.jsxs("div",{className:"flex items-center justify-between gap-3",children:[jsxRuntime.jsx(J,{width:"50%",height:16}),jsxRuntime.jsx(J,{width:"15%",height:12})]}),jsxRuntime.jsx(J,{width:"85%",height:t==="sm"?14:15}),jsxRuntime.jsx(J,{width:"70%",height:t==="sm"?14:15})]})]},`skeleton-${I}`)}else return jsxRuntime.jsxs("div",{className:`flex flex-col ${t==="sm"?"px-3 py-3":"px-4 py-4"}`,children:[jsxRuntime.jsxs("div",{className:"flex items-center gap-3",children:[jsxRuntime.jsx(J,{width:24,height:24,variant:"circle"}),jsxRuntime.jsx(J,{width:"50%",height:16})]}),jsxRuntime.jsxs("div",{className:`mt-3 flex flex-col ${C}`,children:[jsxRuntime.jsx(J,{width:"85%",height:t==="sm"?14:15}),jsxRuntime.jsx(J,{width:"70%",height:t==="sm"?14:15}),jsxRuntime.jsx(J,{width:"20%",height:12})]})]},`skeleton-${I}`)})});return jsxRuntime.jsx(ba.Provider,{value:O,children:jsxRuntime.jsx("div",{ref:P,"data-slot":"feed","data-variant":w,className:tailwindMerge.twMerge("flex flex-col",G,K,r),style:W,...y,children:D})})}if(c)return jsxRuntime.jsx(ba.Provider,{value:O,children:jsxRuntime.jsx("div",{ref:P,"data-slot":"feed","data-variant":w,className:tailwindMerge.twMerge("flex flex-col",G,K,r),style:W,...y,children:jsxRuntime.jsx("div",{className:"p-4 text-center text-feedback-error-text",children:c})})});if(!n||n.length===0)return jsxRuntime.jsx(ba.Provider,{value:O,children:jsxRuntime.jsx("div",{ref:P,"data-slot":"feed","data-variant":w,className:tailwindMerge.twMerge("flex flex-col",G,K,r),style:W,...y,children:jsxRuntime.jsx("div",{className:"p-4 text-center text-text-secondary",children:d})})});let L=T?A?.map(D=>({virtualItem:D,item:n[D.index],index:D.index}))||[]:n.map((D,U)=>({item:D,index:U,virtualItem:null}));return jsxRuntime.jsx(ba.Provider,{value:O,children:jsxRuntime.jsxs("div",{ref:P,"data-slot":"feed","data-variant":w,className:tailwindMerge.twMerge("flex flex-col",G,K,r),style:{...W,position:T?"relative":void 0},...y,children:[T?jsxRuntime.jsxs("div",{style:{height:`${T.getTotalSize()}px`,position:"relative"},children:[L.map(({item:D,index:U,virtualItem:I})=>{if(!D||!I)return null;let C=a(D,U),F=w==="timeline"&&Oe.isValidElement(C)&&xs(C)?Oe.cloneElement(C,{showConnector:U!==n.length-1}):C;return jsxRuntime.jsx("div",{style:{position:"absolute",top:0,left:0,width:"100%",transform:`translateY(${I.start}px)`},"data-index":I.index,ref:T.measureElement,children:F},`item-${U}`)}),M&&jsxRuntime.jsx("div",{style:{position:"absolute",top:`${T.getTotalSize()}px`,left:0,width:"100%"},children:h||jsxRuntime.jsx(Nr,{state:"loading-more"})})]}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[L.map(({item:D,index:U})=>{let I=a(D,U);if(w==="timeline"&&Oe.isValidElement(I)&&xs(I)){let C=U===n.length-1;return jsxRuntime.jsx("div",{children:Oe.cloneElement(I,{showConnector:!C})},`item-${U}`)}return jsxRuntime.jsx("div",{children:I},`item-${U}`)}),M&&(h||jsxRuntime.jsx(Nr,{state:"loading-more"}))]}),m&&p&&!Q&&jsxRuntime.jsx("div",{ref:k,style:T?{position:"absolute",top:`${T.getTotalSize()}px`,left:0,width:"100%",height:1}:{height:1,width:"100%"}})]})})}let q=Oe.Children.toArray(o),j=q.map((Q,L)=>{if(xs(Q)){let D=Q.props.showConnector??(w==="timeline"&&L<q.length-1),U=w==="timeline"&&L>0;return Oe.cloneElement(Q,{showConnector:D,showIncomingConnector:U})}if(H0(Q)){let D=L===q.length-1;return Oe.cloneElement(Q,{__isLastGroup:D,__isFirstGroup:L===0})}return Q});return jsxRuntime.jsx(ba.Provider,{value:O,children:jsxRuntime.jsx("div",{"data-slot":"feed","data-variant":w,className:tailwindMerge.twMerge("flex flex-col",G,K,r),...y,children:j})})}Sd.displayName="ActivityFeed";function ys(e){let{variant:t,size:r}=of(),{title:o,description:n,actions:a,children:i,className:s,__isLastGroup:c=false,__isFirstGroup:l=false,...u}=e,d=Oe.Children.toArray(i),m=d.map((f,h)=>{if(xs(f)){let b=f.props.showConnector??(t==="timeline"&&!(c&&h===d.length-1));return Oe.cloneElement(f,{showConnector:b,showIncomingConnector:t==="timeline"&&!(l&&h===0)})}return f}),p=t==="timeline"?"pl-[3rem]":r==="sm"?"px-3":"px-4",g=r==="sm"?"gap-3":"gap-4";return jsxRuntime.jsxs("section",{"data-slot":"group",className:tailwindMerge.twMerge("flex flex-col",s),...u,children:[(o||n||a)&&jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("mb-2 flex flex-wrap items-end justify-between gap-2",p),children:[jsxRuntime.jsxs("div",{className:"flex min-w-0 flex-col gap-1",children:[o&&jsxRuntime.jsx("span",{className:"text-xs font-semibold uppercase tracking-wide text-text-secondary",children:o}),n&&jsxRuntime.jsx("span",{className:"text-sm text-text-secondary",children:n})]}),a&&jsxRuntime.jsx("div",{className:"flex flex-shrink-0 items-center gap-2",children:a})]}),jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("flex flex-col",g),children:m})]})}ys.displayName="ActivityFeedGroup";var tf={neutral:"bg-background-muted text-text-secondary border-border-muted",brand:"bg-background-muted text-action-brand border-action-brand/30",success:"bg-background-muted text-feedback-success-text border-feedback-success-border/40",warning:"bg-background-muted text-feedback-warning-text border-feedback-warning-border/40",danger:"bg-background-muted text-feedback-error-text border-feedback-error-border/40",info:"bg-background-muted text-feedback-info-text border-feedback-info-border/40"},W0={neutral:"bg-background-subtle",brand:"bg-action-brand/5",success:"bg-feedback-success-background",warning:"bg-feedback-warning-background",danger:"bg-feedback-error-background",info:"bg-feedback-info-background"},G0={neutral:"border-border-muted",brand:"border-action-brand",success:"border-feedback-success-border",warning:"border-feedback-warning-border",danger:"border-feedback-error-border",info:"border-feedback-info-border"};function vs(e){let{variant:t,size:r}=of(),{title:o,description:n,timestamp:a,meta:i,media:s,actions:c,visual:l,icon:u,iconWeight:d,tone:m="neutral",surface:p,isHighlighted:g=false,showConnector:f=true,hideIndicator:h=false,interactive:b,className:x,children:y,onKeyDown:v,showIncomingConnector:S,...w}=e,N=l??(u?jsxRuntime.jsx(B,{name:u,weight:d||"fill",className:"h-4 w-4"}):null),R=p??(t==="stacked"?"minimal":"subtle"),k=r==="sm"?"gap-2":"gap-3",T="text-xs text-text-secondary",A=r==="sm"?"text-sm":"text-[15px]",M="text-xs text-text-secondary",E=b??typeof w.onClick=="function",P=L=>{if(!E){v?.(L);return}L.key===" "?L.preventDefault():L.key==="Enter"&&(L.preventDefault(),L.currentTarget.click()),v?.(L);},O=L=>{E&&L.key===" "&&(L.preventDefault(),L.currentTarget.click());},G=E?tailwindMerge.twMerge("group cursor-pointer",Je()):void 0,W=jsxRuntime.jsxs("div",{"data-slot":"connector",className:tailwindMerge.twMerge("relative flex h-full flex-col items-center",R==="minimal"?r==="sm"?"pt-2":"pt-3":r==="sm"?"pt-3":"pt-4"),children:[jsxRuntime.jsx("span",{"data-slot":"indicator",className:tailwindMerge.twMerge("relative z-10 flex h-8 w-8 flex-shrink-0 items-center justify-center rounded-full border text-sm font-medium shadow-sm ring-2 ring-background-surface",tf[m]),children:N}),t==="timeline"&&f&&jsxRuntime.jsx("span",{"data-slot":"separator",className:"absolute top-[2rem] left-1/2 w-0 border-l-2 border-dotted -translate-x-1/2 h-[calc(100%+2.5rem)] border-border-muted"})]}),q=g?tailwindMerge.twMerge(W0[m],R==="minimal"?"rounded-md border border-border-muted":G0[m]):"";if(t==="stacked")return jsxRuntime.jsxs("div",{"data-slot":"item","data-variant":"stacked",role:E?"button":void 0,tabIndex:E?0:void 0,className:tailwindMerge.twMerge("flex flex-col",r==="sm"?"px-3 py-3":"px-4 py-4",{minimal:"",subtle:"bg-background-subtle",solid:"bg-background-muted"}[R],q,G,E?"transition-colors hover:bg-background-subtle/80":"",x),onKeyDown:P,onKeyUp:O,...w,children:[jsxRuntime.jsxs("div",{className:"flex items-center gap-3",children:[!h&&jsxRuntime.jsx("span",{"data-slot":"indicator",className:tailwindMerge.twMerge("flex h-6 w-6 flex-shrink-0 items-center justify-center rounded-full border text-sm font-medium shadow-sm ring-2 ring-background-surface",tf[m]),children:N}),jsxRuntime.jsx("div",{"data-slot":"title",className:"min-w-0 flex-1 text-sm font-semibold text-text-primary",children:o})]}),jsxRuntime.jsxs("div",{"data-slot":"content",className:tailwindMerge.twMerge("mt-3 flex flex-col",k),children:[n&&jsxRuntime.jsx("div",{"data-slot":"description",className:tailwindMerge.twMerge("text-text-secondary",A),children:n}),i&&jsxRuntime.jsx("div",{className:M,children:i}),s&&jsxRuntime.jsx("div",{className:"flex flex-col gap-2 text-sm text-text-secondary",children:s}),y,c&&jsxRuntime.jsx("div",{className:"flex flex-wrap gap-2 pt-1",children:c}),a&&jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("-mt-1.5",T),children:a})]})]});let j=R==="minimal"?r==="sm"?"py-2":"py-3":r==="sm"?"p-3":"p-4",Q={minimal:"",subtle:"rounded-md border border-border-subtle bg-background-surface",solid:"rounded-md bg-background-muted shadow-sm"};return jsxRuntime.jsxs("div",{"data-slot":"item","data-variant":"timeline",role:E?"button":void 0,tabIndex:E?0:void 0,className:tailwindMerge.twMerge("group relative grid items-start gap-4 grid-cols-[3rem_1fr]",G,x),onKeyDown:P,onKeyUp:O,...w,children:[h?jsxRuntime.jsx("div",{}):W,jsxRuntime.jsxs("div",{"data-slot":"content",className:tailwindMerge.twMerge("min-w-0 flex flex-col",k,j,Q[R],q,E?"transition-colors group-hover:bg-background-subtle/70":""),children:[jsxRuntime.jsxs("div",{className:"flex items-center justify-between gap-3",children:[jsxRuntime.jsx("div",{"data-slot":"title",className:"min-w-0 flex-1 text-sm font-semibold text-text-primary",children:o}),a&&jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("flex-shrink-0",T),children:a})]}),n&&jsxRuntime.jsx("div",{"data-slot":"description",className:tailwindMerge.twMerge("text-text-secondary",A),children:n}),i&&jsxRuntime.jsx("div",{className:M,children:i}),s&&jsxRuntime.jsx("div",{className:"flex flex-col gap-2 text-sm text-text-secondary",children:s}),y,c&&jsxRuntime.jsx("div",{className:"flex flex-wrap gap-2 pt-2",children:c})]})]})}vs.displayName="ActivityItem";function kr({isOpen:e,onClose:t,title:r,headerContent:o,titleAlign:n="left",hideCloseIcon:a=false,hasBackArrow:i=false,onBack:s,children:c,primaryAction:l,secondaryAction:u,tertiaryAction:d,footerContent:m,transparentOverlay:p=false,maxWidth:g="600px",minWidth:f="400px",maxHeight:h="85vh",height:b,mobileMaxHeight:x="90vh",mobileHeight:y,contentPadding:v=true,className:S}){let w=Jt("(max-width: 767px)"),N=os(w&&e===void 0),R=N?.height??null,k=N?.keyboardOffset??0,T=Oe.useRef(null),A=Oe.useCallback(()=>{T.current&&T.current.scrollTop!==0&&(T.current.scrollTop=0);},[]),M=Oe.useRef(null),E=Oe.useRef(null);Oe.useEffect(()=>{let W=E.current;if(!W||!w)return;let q=null,j=Q=>{let L=Q.target;L&&["INPUT","TEXTAREA","SELECT"].includes(L.tagName)&&(q&&clearTimeout(q),q=setTimeout(()=>{L.scrollIntoView({block:"nearest",behavior:"smooth"});},320));};return W.addEventListener("focusin",j),()=>{W.removeEventListener("focusin",j),q&&clearTimeout(q);}},[w]);let P=Oe.useCallback(()=>{M.current&&M.current.scrollTop!==0&&(M.current.scrollTop=0);},[]);if(e===false)return null;let O=r||o,G=l||u||d||m,K=e!==void 0;return w?K?jsxRuntime.jsx(ct,{isOpen:e,onClose:t,title:r,headerContent:o,titleAlign:n,hideCloseIcon:a,hasBackArrow:i,onBack:s,primaryAction:l,secondaryAction:u,footerContent:m,transparentOverlay:p,maxHeight:x,height:y,maxWidth:g,contentPadding:v,showHandle:true,animationVariant:"scale",className:S,children:c}):jsxRuntime.jsx(zr,{children:jsxRuntime.jsx(cr,{isDismissable:true,transparent:p,style:{paddingBottom:k>0?`${k}px`:void 0,transition:"padding-bottom 0.25s ease-out"},className:"flex items-end justify-center",children:jsxRuntime.jsx(reactAriaComponents.Modal,{className:"w-full p-0 outline-none focus:outline-none focus-visible:outline-none ring-0 focus:ring-0 focus-visible:ring-0",children:jsxRuntime.jsxs(reactAriaComponents.Dialog,{ref:T,onScroll:A,className:tailwindMerge.twMerge("relative flex w-full flex-col","bg-background-surface","shadow-2xl shadow-black/20","border-t border-x border-border-default/40","rounded-t-xl","overflow-hidden","animate-in slide-in-from-bottom","duration-300 ease-out","data-[exiting]:animate-out data-[exiting]:slide-out-to-bottom","data-[exiting]:duration-200 data-[exiting]:ease-in",S),style:{...y?{height:y}:{maxHeight:/\d/.test(x)?R!==null?`min(${x}, ${Math.max(R-8,0)}px, 100dvh)`:`min(${x}, 100dvh)`:x}},children:[jsxRuntime.jsx("div",{className:"flex justify-center pt-2",children:jsxRuntime.jsx("div",{className:"h-1.5 w-12 rounded-full bg-border-muted"})}),O&&(i?jsxRuntime.jsx(Ht,{title:r,headerContent:o,titleAlign:n,hideCloseIcon:a||!t,hasBackArrow:true,onBack:s,onClose:t||(()=>{})}):jsxRuntime.jsx(Ht,{title:r,headerContent:o,titleAlign:n,hideCloseIcon:a||!t,onClose:t||(()=>{})})),jsxRuntime.jsx("div",{ref:E,className:tailwindMerge.twMerge("flex-1 min-h-0 overflow-y-auto overscroll-contain",v?"px-6 py-6":"p-0"),children:c}),G&&jsxRuntime.jsx(Io,{primaryAction:l,secondaryAction:u,tertiaryAction:d,footerContent:m})]})})})}):jsxRuntime.jsx(zr,{children:jsxRuntime.jsx(cr,{...K?{isOpen:e,onOpenChange:W=>{!W&&t&&t();}}:{},isDismissable:true,transparent:p,className:"flex items-center justify-center",children:jsxRuntime.jsx(reactAriaComponents.Modal,{className:"w-full p-4 outline-none focus:outline-none focus-visible:outline-none ring-0 focus:ring-0 focus-visible:ring-0",style:{maxWidth:g},children:jsxRuntime.jsxs(reactAriaComponents.Dialog,{ref:M,onScroll:P,className:tailwindMerge.twMerge("relative flex w-full flex-col","bg-background-surface","shadow-2xl shadow-black/20","border border-border-default/50","rounded-md","overflow-hidden","outline-none focus:outline-none focus-visible:outline-none ring-0 focus:ring-0","animate-in fade-in zoom-in-96 slide-in-from-bottom-2","duration-300 ease-out","data-[exiting]:animate-out data-[exiting]:fade-out data-[exiting]:zoom-out-95","data-[exiting]:duration-200 data-[exiting]:ease-in",S),style:{minWidth:f,...b?{height:b}:{maxHeight:h}},children:[O&&(i?jsxRuntime.jsx(Ht,{title:r,headerContent:o,titleAlign:n,hideCloseIcon:a||!t,hasBackArrow:true,onBack:s,onClose:t||(()=>{})}):jsxRuntime.jsx(Ht,{title:r,headerContent:o,titleAlign:n,hideCloseIcon:a||!t,onClose:t||(()=>{})})),jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("flex-1 min-h-0 overflow-y-auto",v?"px-6 py-6":"p-0"),children:c}),G&&jsxRuntime.jsx(Io,{primaryAction:l,secondaryAction:u,tertiaryAction:d,footerContent:m})]})})})})}function df({isOpen:e,onClose:t,title:r,message:o,confirmLabel:n="OK",confirmVariant:a="primary",maxWidth:i="400px",minWidth:s="320px"}){return jsxRuntime.jsx(kr,{isOpen:e,onClose:t,title:r,maxWidth:i,minWidth:s,primaryAction:{label:n,onPress:t,variant:a},children:jsxRuntime.jsx("div",{className:"text-text-primary",children:o})})}var Bo={xs:16,sm:20,md:24,lg:32,xl:40,"2xl":48},dr=Oe.memo(({name:e,size:t="md",color:r,weight:o="regular",className:n,ariaLabel:a,...i})=>{let s=K0__namespace[e];if(!s)return null;let c=typeof t=="string"?t in Bo?Bo[t]:Bo.md:t,l=tailwindMerge.twMerge("inline-block flex-shrink-0",!r&&"text-current",n);return jsxRuntime.jsx(s,{...i,size:c,color:r,weight:o,className:l,"aria-label":a||`${e} icon`,"data-testid":`icon-${e}`})});dr.displayName="IconSSR";var Y0=Oe.memo(({variant:e="subtle",shape:t="square",containerSize:r,containerClassName:o,size:n="md",className:a,name:i,color:s,weight:c,ariaLabel:l,ref:u,...d})=>{let m=typeof n=="string"?n in Bo?Bo[n]:Bo.md:n,p=r?typeof r=="string"?r in Bo?Bo[r]:m*1.75:r:m*1.75,g=tailwindMerge.twMerge("inline-flex items-center justify-center flex-shrink-0",t==="circle"?"rounded-full":"rounded-lg",e==="subtle"&&"bg-background-muted",e==="solid"&&"bg-action-brand text-[color:var(--color-action-brand-text)]",e==="outline"&&"border-2 border-current",o);return jsxRuntime.jsx("div",{className:g,style:{width:p,height:p},children:jsxRuntime.jsx(dr,{...d,name:i,size:n,color:s,weight:c,className:a,ariaLabel:l})})});Y0.displayName="IconSSRWithContainer";var xa=({className:e,showWordmark:t=true,width:r,fill:o})=>{let n,a;if(o?o.startsWith("fill-")?a=o:n=o:e?a=e:n="var(--color-text-primary)",t){let c=r||270,l=c/270*80;return jsxRuntime.jsxs("svg",{width:c,height:l,viewBox:"0 0 270 80",xmlns:"http://www.w3.org/2000/svg",className:a,style:n?{fill:n}:void 0,children:[jsxRuntime.jsxs("g",{clipPath:"url(#clip0_796_283)",children:[jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0.223654 20.2934C0.417233 19.8234 0.873598 19.517 1.37984 19.517H20.5909C21.282 19.517 21.8422 20.0798 21.8422 20.774V40.049C21.8422 40.5572 21.5375 41.0155 21.0702 41.2102C20.6028 41.405 20.0647 41.2977 19.7067 40.9385L0.495628 21.6635C0.137428 21.3041 0.030075 20.7633 0.223654 20.2934ZM4.40349 22.0311L19.3396 37.017V22.0311H4.40349Z"}),jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M38.6458 20.2934C38.8394 19.8234 39.2958 19.517 39.802 19.517H59.013C59.7041 19.517 60.2642 20.0798 60.2642 20.774V40.049C60.2642 40.5572 59.9597 41.0155 59.4923 41.2102C59.025 41.405 58.4867 41.2977 58.1289 40.9385L38.9178 21.6635C38.5595 21.3041 38.4522 20.7633 38.6458 20.2934ZM42.8255 22.0311L57.7618 37.017V22.0311H42.8255Z"}),jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M19.4347 58.8447C19.6283 58.3747 20.0847 58.0685 20.5909 58.0685H39.802C40.493 58.0685 41.0532 58.6312 41.0532 59.3255V78.6005C41.0532 79.1087 40.7486 79.567 40.2813 79.7617C39.8139 79.9562 39.2757 79.849 38.9178 79.49L19.7067 60.215C19.3485 59.8555 19.2411 59.3147 19.4347 58.8447ZM23.6146 60.5825L38.5508 75.5682V60.5825H23.6146Z"}),jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M39.3227 58.1643C39.79 57.9695 40.3283 58.0768 40.6861 58.436L59.8972 77.711C60.2555 78.0703 60.3628 78.6113 60.1692 79.081C59.9756 79.551 59.5192 79.8575 59.013 79.8575H39.802C39.1109 79.8575 38.5508 79.2948 38.5508 78.6005V59.3255C38.5508 58.8173 38.8554 58.359 39.3227 58.1643ZM41.0532 62.3575V77.3433H55.9893L41.0532 62.3575Z"}),jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M39.3227 19.6129C39.79 19.4182 40.3283 19.5254 40.6861 19.8846L59.8972 39.1595C60.2555 39.519 60.3628 40.0598 60.1692 40.5298C59.9756 40.9995 59.5192 41.306 59.013 41.306H39.802C39.1109 41.306 38.5508 40.7433 38.5508 40.049V20.7741C38.5508 20.2658 38.8554 19.8075 39.3227 19.6129ZM41.0532 23.8061V38.792H55.9893L41.0532 23.8061Z"}),jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M39.3227 38.8885C39.79 38.694 40.3283 38.8012 40.6861 39.1602L59.8972 58.4352C60.2555 58.7945 60.3628 59.3355 60.1692 59.8055C59.9756 60.2752 59.5192 60.5817 59.013 60.5817H39.802C39.1109 60.5817 38.5508 60.019 38.5508 59.3247V40.0497C38.5508 39.5415 38.8554 39.0832 39.3227 38.8885ZM41.0532 43.0817V58.0675H55.9893L41.0532 43.0817Z"}),jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M38.6458 39.569C38.8394 39.0992 39.2958 38.7927 39.802 38.7927H59.013C59.7041 38.7927 60.2642 39.3555 60.2642 40.0497V59.3247C60.2642 59.833 59.9597 60.2912 59.4923 60.486C59.025 60.6805 58.4867 60.5732 58.1289 60.2142L38.9178 40.9392C38.5595 40.5797 38.4522 40.039 38.6458 39.569ZM42.8255 41.3067L57.7618 56.2927V41.3067H42.8255Z"}),jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M38.6458 58.8447C38.8394 58.3747 39.2958 58.0685 39.802 58.0685H59.013C59.7041 58.0685 60.2642 58.6312 60.2642 59.3255V78.6005C60.2642 79.1087 59.9597 79.567 59.4923 79.7617C59.025 79.9562 58.4867 79.849 58.1289 79.49L38.9178 60.215C38.5595 59.8555 38.4522 59.3147 38.6458 58.8447ZM42.8255 60.5825L57.7618 75.5682V60.5825H42.8255Z"}),jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M58.5338 19.6129C59.0011 19.4182 59.5394 19.5254 59.8972 19.8846L79.1083 39.1595C79.4666 39.519 79.5739 40.0598 79.3803 40.5298C79.1867 40.9995 78.7303 41.306 78.2241 41.306H59.013C58.322 41.306 57.7618 40.7433 57.7618 40.049V20.7741C57.7618 20.2658 58.0664 19.8075 58.5338 19.6129ZM60.2643 23.8061V38.792H75.2006L60.2643 23.8061Z"}),jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M58.5338 0.338803C59.0011 0.144135 59.5394 0.251385 59.8972 0.610565L79.1083 19.8855C79.4666 20.2449 79.5739 20.7857 79.3803 21.2556C79.1867 21.7256 78.7303 22.032 78.2241 22.032H59.013C58.322 22.032 57.7618 21.4692 57.7618 20.775V1.50003C57.7618 0.99174 58.0664 0.533468 58.5338 0.338803ZM60.2643 4.53208V19.5179H75.2006L60.2643 4.53208Z"}),jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M57.8569 20.2934C58.0505 19.8234 58.5069 19.517 59.013 19.517H78.2241C78.9151 19.517 79.4753 20.0798 79.4753 20.774V40.049C79.4753 40.5572 79.1707 41.0155 78.7034 41.2102C78.236 41.405 77.6978 41.2977 77.3399 40.9385L58.1289 21.6635C57.7705 21.3041 57.6633 20.7633 57.8569 20.2934ZM62.0365 22.0311L76.9729 37.017V22.0311H62.0365Z"}),jsxRuntime.jsx("path",{d:"M269.838 49.4457H249.005C249.266 51.801 250.162 53.6985 251.695 55.1377C253.225 56.577 255.134 57.2967 257.416 57.2967C259.307 57.2967 260.887 56.8715 262.159 56.021C263.463 55.1377 264.408 53.9927 264.996 52.5862H269.251C268.502 54.9415 267.084 56.937 264.996 58.5725C262.943 60.208 260.414 61.026 257.416 61.026C255.069 61.026 252.917 60.4697 250.961 59.3575C249.037 58.2127 247.504 56.6587 246.363 54.696C245.255 52.7332 244.7 50.558 244.7 48.17C244.7 45.782 245.255 43.6067 246.363 41.644C247.504 39.6812 249.037 38.1437 250.961 37.0315C252.917 35.8867 255.069 35.3142 257.416 35.3142C259.73 35.3142 261.833 35.8702 263.724 36.9825C265.615 38.0947 267.098 39.6485 268.176 41.644C269.283 43.6395 269.838 45.913 269.838 48.4645V49.4457ZM257.416 39.0432C255.263 39.0432 253.439 39.6812 251.939 40.957C250.47 42.2327 249.542 43.9337 249.152 46.06H265.583C265.192 43.9992 264.262 42.3145 262.796 41.006C261.36 39.6975 259.568 39.0432 257.416 39.0432Z"}),jsxRuntime.jsx("path",{d:"M228.356 60.5352V35.8049H232.219V39.7794H232.464C233.05 38.5689 233.963 37.5712 235.202 36.7862C236.474 35.9684 237.974 35.5594 239.701 35.5594H243.125V39.4359H239.701C237.517 39.4359 235.757 40.1554 234.42 41.5949C233.083 43.0342 232.414 44.9152 232.414 47.2377V60.5352H228.356Z"}),jsxRuntime.jsx("path",{d:"M208.607 61.0259C205.64 61.0259 203.326 60.1262 201.663 58.3272C200 56.4952 199.169 53.8947 199.169 50.5252V35.8047H203.228V49.8874C203.228 52.2427 203.766 54.0744 204.842 55.3829C205.95 56.6587 207.532 57.2967 209.586 57.2967C211.02 57.2967 212.308 56.9694 213.449 56.3152C214.623 55.6284 215.536 54.6959 216.188 53.5184C216.84 52.3407 217.166 50.9997 217.166 49.4949V35.8047H221.225V60.5352H217.313V56.5607H217.068C216.286 57.9019 215.161 58.9814 213.694 59.7992C212.226 60.6169 210.531 61.0259 208.607 61.0259Z"}),jsxRuntime.jsx("path",{d:"M186.736 39.534V56.806H194.756V60.5352H182.677V39.534H177.199V35.8047H182.677V29.5732H186.736V35.8047H193.24V39.534H186.736Z"}),jsxRuntime.jsx("path",{d:"M156.585 60.5352H151.988L158.394 48.0227L152.33 35.8047H156.976L162.062 46.0599H165.388L170.474 35.8047H175.022L168.958 48.0227L175.365 60.5352H170.67L165.29 49.7892H162.013L156.585 60.5352Z"}),jsxRuntime.jsx("path",{d:"M150.138 49.1315H129.304C129.565 51.4867 130.461 53.3842 131.994 54.8235C133.526 56.2627 135.433 56.9825 137.715 56.9825C139.606 56.9825 141.188 56.5572 142.459 55.7067C143.763 54.8235 144.709 53.6785 145.296 52.272H149.551C148.801 54.6272 147.382 56.6227 145.296 58.2582C143.242 59.8937 140.715 60.7118 137.715 60.7118C135.368 60.7118 133.216 60.1555 131.26 59.0432C129.336 57.8985 127.804 56.3445 126.663 54.3817C125.554 52.419 125 50.2437 125 47.8557C125 45.4677 125.554 43.2925 126.663 41.3298C127.804 39.367 129.336 37.8295 131.26 36.7173C133.216 35.5725 135.368 35 137.715 35C140.03 35 142.133 35.556 144.024 36.6682C145.915 37.7805 147.399 39.3342 148.475 41.3298C149.583 43.3252 150.138 45.5987 150.138 48.1502V49.1315ZM137.715 38.729C135.564 38.729 133.738 39.367 132.238 40.6427C130.771 41.9185 129.842 43.6195 129.45 45.7458H145.883C145.491 43.685 144.562 42.0002 143.095 40.6917C141.661 39.3832 139.867 38.729 137.715 38.729Z"}),jsxRuntime.jsx("path",{d:"M116.961 60.5353H112.559V30.4072H101.164V26.1875H128.307V30.4072H116.961V60.5353Z"})]}),jsxRuntime.jsx("defs",{children:jsxRuntime.jsx("clipPath",{id:"clip0_796_283",children:jsxRuntime.jsx("rect",{width:"270",height:"80",fill:"white"})})})]})}let i=r||80;return jsxRuntime.jsxs("svg",{width:i,height:i,viewBox:"0 0 80 80",xmlns:"http://www.w3.org/2000/svg",className:a,style:n?{fill:n}:void 0,children:[jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0.223654 20.2934C0.417233 19.8234 0.873598 19.517 1.37984 19.517H20.5909C21.282 19.517 21.8422 20.0798 21.8422 20.774V40.049C21.8422 40.5572 21.5375 41.0155 21.0702 41.2102C20.6028 41.405 20.0647 41.2977 19.7067 40.9385L0.495628 21.6635C0.137428 21.3041 0.030075 20.7633 0.223654 20.2934ZM4.40349 22.0311L19.3396 37.017V22.0311H4.40349Z"}),jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M38.6458 20.2934C38.8394 19.8234 39.2958 19.517 39.802 19.517H59.013C59.7041 19.517 60.2642 20.0798 60.2642 20.774V40.049C60.2642 40.5572 59.9597 41.0155 59.4923 41.2102C59.025 41.405 58.4867 41.2977 58.1289 40.9385L38.9178 21.6635C38.5595 21.3041 38.4522 20.7633 38.6458 20.2934ZM42.8255 22.0311L57.7618 37.017V22.0311H42.8255Z"}),jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M19.4347 58.8447C19.6283 58.3747 20.0847 58.0685 20.5909 58.0685H39.802C40.493 58.0685 41.0532 58.6312 41.0532 59.3255V78.6005C41.0532 79.1087 40.7486 79.567 40.2813 79.7617C39.8139 79.9562 39.2757 79.849 38.9178 79.49L19.7067 60.215C19.3485 59.8555 19.2411 59.3147 19.4347 58.8447ZM23.6146 60.5825L38.5508 75.5682V60.5825H23.6146Z"}),jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M39.3227 58.1643C39.79 57.9695 40.3283 58.0768 40.6861 58.436L59.8972 77.711C60.2555 78.0703 60.3628 78.6113 60.1692 79.081C59.9756 79.551 59.5192 79.8575 59.013 79.8575H39.802C39.1109 79.8575 38.5508 79.2948 38.5508 78.6005V59.3255C38.5508 58.8173 38.8554 58.359 39.3227 58.1643ZM41.0532 62.3575V77.3433H55.9893L41.0532 62.3575Z"}),jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M39.3227 19.6129C39.79 19.4182 40.3283 19.5254 40.6861 19.8846L59.8972 39.1595C60.2555 39.519 60.3628 40.0598 60.1692 40.5298C59.9756 40.9995 59.5192 41.306 59.013 41.306H39.802C39.1109 41.306 38.5508 40.7433 38.5508 40.049V20.7741C38.5508 20.2658 38.8554 19.8075 39.3227 19.6129ZM41.0532 23.8061V38.792H55.9893L41.0532 23.8061Z"}),jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M39.3227 38.8885C39.79 38.694 40.3283 38.8012 40.6861 39.1602L59.8972 58.4352C60.2555 58.7945 60.3628 59.3355 60.1692 59.8055C59.9756 60.2752 59.5192 60.5817 59.013 60.5817H39.802C39.1109 60.5817 38.5508 60.019 38.5508 59.3247V40.0497C38.5508 39.5415 38.8554 39.0832 39.3227 38.8885ZM41.0532 43.0817V58.0675H55.9893L41.0532 43.0817Z"}),jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M38.6458 39.569C38.8394 39.0992 39.2958 38.7927 39.802 38.7927H59.013C59.7041 38.7927 60.2642 39.3555 60.2642 40.0497V59.3247C60.2642 59.833 59.9597 60.2912 59.4923 60.486C59.025 60.6805 58.4867 60.5732 58.1289 60.2142L38.9178 40.9392C38.5595 40.5797 38.4522 40.039 38.6458 39.569ZM42.8255 41.3067L57.7618 56.2927V41.3067H42.8255Z"}),jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M38.6458 58.8447C38.8394 58.3747 39.2958 58.0685 39.802 58.0685H59.013C59.7041 58.0685 60.2642 58.6312 60.2642 59.3255V78.6005C60.2642 79.1087 59.9597 79.567 59.4923 79.7617C59.025 79.9562 58.4867 79.849 58.1289 79.49L38.9178 60.215C38.5595 59.8555 38.4522 59.3147 38.6458 58.8447ZM42.8255 60.5825L57.7618 75.5682V60.5825H42.8255Z"}),jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M58.5338 19.6129C59.0011 19.4182 59.5394 19.5254 59.8972 19.8846L79.1083 39.1595C79.4666 39.519 79.5739 40.0598 79.3803 40.5298C79.1867 40.9995 78.7303 41.306 78.2241 41.306H59.013C58.322 41.306 57.7618 40.7433 57.7618 40.049V20.7741C57.7618 20.2658 58.0664 19.8075 58.5338 19.6129ZM60.2643 23.8061V38.792H75.2006L60.2643 23.8061Z"}),jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M58.5338 0.338803C59.0011 0.144135 59.5394 0.251385 59.8972 0.610565L79.1083 19.8855C79.4666 20.2449 79.5739 20.7857 79.3803 21.2556C79.1867 21.7256 78.7303 22.032 78.2241 22.032H59.013C58.322 22.032 57.7618 21.4692 57.7618 20.775V1.50003C57.7618 0.99174 58.0664 0.533468 58.5338 0.338803ZM60.2643 4.53208V19.5179H75.2006L60.2643 4.53208Z"}),jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M57.8569 20.2934C58.0505 19.8234 58.5069 19.517 59.013 19.517H78.2241C78.9151 19.517 79.4753 20.0798 79.4753 20.774V40.049C79.4753 40.5572 79.1707 41.0155 78.7034 41.2102C78.236 41.405 77.6978 41.2977 77.3399 40.9385L58.1289 21.6635C57.7705 21.3041 57.6633 20.7633 57.8569 20.2934ZM62.0365 22.0311L76.9729 37.017V22.0311H62.0365Z"})]})};var Ss=({topItems:e=[],bottomItems:t=[],bottomContent:r,logo:o,showLogo:n=true,linkComponent:a="a",className:i="",mobileMenuId:s="app-mobile-menu",sidebarCollapseId:c="app-sidebar-collapse"})=>{let l=p=>p.length>0&&"items"in p[0],u=p=>l(p)?p:[{id:"default-section",items:p}],d=(p,g,f)=>jsxRuntime.jsxs("div",{className:"space-y-0.5",children:[p.title&&jsxRuntime.jsx("div",{className:"px-6 py-1 text-xs font-medium text-text-secondary uppercase tracking-wider",children:p.title}),jsxRuntime.jsx("div",{className:"space-y-0.5",children:p.items.map(h=>m(h))}),g<f-1&&jsxRuntime.jsx("div",{className:"border-b border-border-subtle mx-6 my-2"})]},p.id),m=(p,g=false)=>{if(p.children&&p.children.length>0){let b=`category-${p.id}`;return jsxRuntime.jsxs("div",{className:"group/category",children:[jsxRuntime.jsx("input",{type:"checkbox",id:b,className:"peer/category hidden",defaultChecked:p.isExpanded,"aria-hidden":"true"}),jsxRuntime.jsxs("label",{htmlFor:b,className:"flex items-center gap-3 px-6 py-1 text-text-primary hover:bg-background-hover hover:text-text-primary cursor-pointer transition-all duration-200",children:[p.icon&&jsxRuntime.jsx("span",{className:"flex-shrink-0 w-3.5 h-3.5 flex items-center justify-center transition-all duration-200",children:p.icon}),jsxRuntime.jsx("span",{className:"transition-all duration-200",children:p.label}),jsxRuntime.jsx("span",{className:"flex-1"}),jsxRuntime.jsx("svg",{className:"w-4 h-4 transform transition-transform duration-200 peer-checked/category:rotate-180 ml-auto",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntime.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 9l-7 7-7-7"})})]}),jsxRuntime.jsx("div",{className:"hidden peer-checked/category:block bg-background-subtle border-l-2 border-border-subtle ml-6",children:p.children.map(x=>m(x,true))})]},p.id)}let f={href:p.href||"#",className:`flex items-center gap-3 transition-all duration-200 hover:bg-background-hover ${g?"pl-8 pr-6 py-1 text-sm":"px-6 py-1"} ${p.isActive?`bg-action-brand/10 text-action-brand ${g?"":"border-l-2 border-action-brand"}`:"text-text-primary hover:text-text-primary"}`,"aria-current":p.isActive?"page":void 0},h=jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[p.icon&&!g&&jsxRuntime.jsx("span",{className:"flex-shrink-0 w-3.5 h-3.5 flex items-center justify-center transition-all duration-200",children:p.icon}),jsxRuntime.jsx("span",{className:"transition-all duration-200",children:p.label})]});return a==="a"?jsxRuntime.jsx("a",{...f,children:h},p.id):jsxRuntime.jsx(a,{...f,children:h},p.id)};return jsxRuntime.jsxs("div",{className:`flex flex-col h-full ${i}`,children:[jsxRuntime.jsxs("div",{className:"flex items-center justify-between h-[60px] px-6 border-b border-border-default",children:[n&&jsxRuntime.jsx("div",{className:"relative top-[-1px] transition-all duration-200",children:o||jsxRuntime.jsx(xa,{showWordmark:true,width:120})}),jsxRuntime.jsx("label",{htmlFor:c,className:"hidden md:flex items-center justify-center w-8 h-8 rounded hover:bg-background-hover cursor-pointer transition-all duration-200 relative top-[-1px]","aria-label":"Collapse sidebar",children:jsxRuntime.jsx(dr,{name:"Sidebar",size:"sm"})}),jsxRuntime.jsx("label",{htmlFor:s,className:"md:hidden flex items-center justify-center w-8 h-8 rounded hover:bg-background-hover cursor-pointer transition-colors","aria-label":"Close menu",children:jsxRuntime.jsx("svg",{className:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntime.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})})]}),jsxRuntime.jsxs("nav",{className:"flex-1 flex flex-col overflow-hidden",children:[e&&e.length>0&&jsxRuntime.jsx("div",{className:"flex-1 overflow-y-auto py-2 scrollbar-hide",children:u(e).map((p,g,f)=>d(p,g,f.length))}),t&&t.length>0&&jsxRuntime.jsx("div",{className:"flex-shrink-0 border-t bg-background-muted/30",children:jsxRuntime.jsx("div",{className:"mt-2 pb-2 space-y-0.5",children:t.map(p=>m(p))})}),r&&jsxRuntime.jsx("div",{className:"flex-shrink-0 border-t border-border-default",children:jsxRuntime.jsx("div",{children:r})})]})]})};function bn(e){return e.id??e.href??e.label}function Td(e,t,r=[]){for(let o of e){if(o.href===t||o.id===t)return o.children?.length&&o.pushOnSelect!==false?[...r,bn(o)]:r;if(o.children?.length){let n=Td(o.children,t,[...r,bn(o)]);if(n)return n}}return null}function gf(e,t){let r=[],o=e;for(let n of t){let a=o.find(i=>bn(i)===n);if(!a)break;r.push(a),o=a.children??[];}return r}function X0(e,t,r){let o=t.length>0?[...e,...t]:e,n=[{path:[],items:e,bottomItems:t.length>0?t:void 0}],a=gf(o,r),i=[];for(let s of a){if(!s.children?.length)break;i=[...i,bn(s)],n.push({path:i,parent:s,items:s.children});}return n}var j0=({href:e,...t})=>jsxRuntime.jsx("a",{href:e,...t}),mf=[];function q0(e){let t=[];for(let r of e){let o=r.items??[];o.length!==0&&(t.length>0&&t.push({id:`__divider__${r.id}`,label:"",divider:true}),r.title&&t.push({id:`__group__${r.id}`,label:r.title,groupLabel:true}),t.push(...o));}return t}function Q0(e,t){if(process.env.NODE_ENV==="production"||t.length===0)return;let r=new Map;for(let o of e)o.id&&r.set(o.id,"id"),o.href&&!r.has(o.href)&&r.set(o.href,"href");for(let o of t){let n=null;o.id&&r.has(o.id)?n=r.get(o.id)==="id"?`id "${o.id}"`:`id "${o.id}" (matches an items \`href\`)`:o.href&&r.has(o.href)&&(n=r.get(o.href)==="href"?`href "${o.href}"`:`href "${o.href}" (matches an items \`id\`)`),n&&console.warn(`[StackNav] L1 ${n} appears in both \`items\` and \`bottomItems\`. Stack tokens and value lookups will resolve to the \`items\` entry, making the bottomItems entry unreachable. L1 ids and hrefs must be unique across both arrays.`);}}function Z0(e){if(!e)return {};let t={};return e.background!==void 0&&(t["--edges-stack-nav-background"]=e.background),e.activeBackground!==void 0&&(t["--edges-stack-nav-row-active-background"]=e.activeBackground),e.activeColor!==void 0&&(t["--edges-stack-nav-row-active-color"]=e.activeColor),e.hoverBackground!==void 0&&(t["--edges-stack-nav-row-hover-background"]=e.hoverBackground),e.borderColor!==void 0&&(t["--edges-stack-nav-border-color"]=e.borderColor),t}function ws({items:e,groups:t,bottomItems:r,value:o,defaultStack:n,stack:a,onStackChange:i,onSelect:s,linkComponent:c=j0,showLogo:l=false,logo:u,header:d,footer:m,mobileMenuId:p,sidebarCollapseId:g,rootLabel:f,sticky:h=true,width:b=260,ariaLabel:x="Navigation",theme:y,animated:v=true,style:S,className:w}){process.env.NODE_ENV!=="production"&&t&&e&&console.warn("[StackNav] Both `items` and `groups` were provided. `groups` takes precedence and `items` is ignored.");let N=Oe__namespace.useMemo(()=>t?q0(t):e??mf,[t,e]),R=r??mf,k=Oe__namespace.useMemo(()=>R.length>0?[...N,...R]:N,[N,R]);Oe__namespace.useEffect(()=>{Q0(N,R);},[N,R]);let[T,A]=Oe__namespace.useState(()=>a!==void 0?a:n!==void 0?n:o?Td(k,o)??[]:[]),M=a??T,E=Oe__namespace.useCallback(L=>{a===void 0&&A(L),i?.(L);},[a,i]),P=Oe__namespace.useRef(false);Oe__namespace.useEffect(()=>{if(a!==void 0||!P.current&&(P.current=true,n!==void 0)||!o)return;let L=Td(k,o);A(D=>{let U=L??[];return tS(D,U)?D:U});},[o,k,a,n]);let O=Oe__namespace.useMemo(()=>X0(N,R,M),[N,R,M]),G=Oe__namespace.useCallback((L,D)=>{L.children?.length&&E([...D,bn(L)]);},[E]),K=Oe__namespace.useCallback(()=>{E(M.slice(0,-1));},[M,E]),W=Oe__namespace.useCallback((L,D)=>{let U=gf(k,M);if(s?.(D,U),!!D.children?.length){let C=O[O.length-1]?.path??[];G(D,C);}D.href||L.preventDefault();},[k,M,s,G,O]),q=Oe__namespace.useCallback(L=>o?L.href===o||L.id===o:false,[o]),j=h?"sticky top-0 h-[100dvh]":"",Q={...b!=null?{width:b}:{},...Z0(y),...S};return jsxRuntime.jsxs("aside",{role:"navigation","aria-label":x,"data-edges-stack-nav":"",className:tailwindMerge.twMerge("edges-stack-nav flex flex-col flex-shrink-0 overflow-hidden",v&&"edges-stack-nav--animated",j,w),style:Q,children:[l?jsxRuntime.jsxs("div",{className:"edges-stack-nav__logo",children:[jsxRuntime.jsx("div",{className:"relative top-[-1px]",children:u??jsxRuntime.jsx(xa,{showWordmark:true,width:120})}),g?jsxRuntime.jsx("label",{htmlFor:g,className:"hidden md:flex items-center justify-center w-8 h-8 rounded hover:bg-background-hover cursor-pointer transition-all duration-200 relative top-[-1px]","aria-label":"Collapse sidebar",children:jsxRuntime.jsx(dr,{name:"Sidebar",size:"sm"})}):null,p?jsxRuntime.jsx("label",{htmlFor:p,className:"md:hidden flex items-center justify-center w-8 h-8 rounded hover:bg-background-hover cursor-pointer transition-colors","aria-label":"Close menu",children:jsxRuntime.jsx("svg",{className:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntime.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})}):null]}):null,d?jsxRuntime.jsx("div",{className:"edges-stack-nav__header",children:d}):null,jsxRuntime.jsx("div",{className:"relative flex-1 overflow-hidden",children:O.map((L,D)=>{let U=L.path.length,I=D===O.length-1,C=D<O.length-1,F=U===0?"__root__":L.path.join("/");return jsxRuntime.jsx(_0,{pane:L,parentPath:L.path.slice(0,-1),depth:U,isTop:I,isAbove:C,rootLabel:f,LinkComponent:c,isActive:q,onSelect:W,onBack:K,animated:v},F)})}),m?jsxRuntime.jsx("div",{className:"edges-stack-nav__footer",children:m}):null]})}function _0({pane:e,depth:t,isTop:r,isAbove:o,rootLabel:n,LinkComponent:a,isActive:i,onSelect:s,onBack:c,animated:l}){let u=r?"edges-stack-nav__pane--top":o?"edges-stack-nav__pane--above":"edges-stack-nav__pane--below";return jsxRuntime.jsxs("nav",{"aria-label":e.parent?.label??n??"Navigation","aria-hidden":r?void 0:true,inert:r?void 0:true,className:tailwindMerge.twMerge("edges-stack-nav__pane absolute inset-0 flex flex-col gap-px overflow-y-auto px-2 py-3",!l&&"edges-stack-nav__pane--instant",u),children:[t>0&&e.parent?jsxRuntime.jsxs("button",{type:"button",className:"edges-stack-nav__back edges-stack-nav__row flex w-full cursor-pointer items-center gap-2 rounded-sm border-0 bg-transparent px-3 py-2 mb-2 text-left text-sm font-semibold text-text-primary",onClick:c,"aria-label":`Back from ${e.parent.label}`,children:[jsxRuntime.jsx(eS,{}),jsxRuntime.jsx("span",{children:e.parent.label})]}):n?jsxRuntime.jsx("div",{className:"px-3 pb-1.5 text-[10px] font-semibold uppercase tracking-[0.08em] text-text-secondary",children:n}):null,e.items.map(d=>jsxRuntime.jsx(ff,{item:d,LinkComponent:a,isActive:i(d),onSelect:s},bn(d))),e.bottomItems&&e.bottomItems.length>0?jsxRuntime.jsx("div",{className:"edges-stack-nav__bottom-items mt-auto flex flex-col gap-px pt-3",children:e.bottomItems.map(d=>jsxRuntime.jsx(ff,{item:d,LinkComponent:a,isActive:i(d),onSelect:s},bn(d)))}):null]})}function ff({item:e,LinkComponent:t,isActive:r,onSelect:o}){if(e.divider)return jsxRuntime.jsx("div",{className:"edges-stack-nav__divider my-2",role:"separator"});if(e.groupLabel)return jsxRuntime.jsx("div",{className:"px-3 pt-6 pb-1.5 text-[10px] font-semibold uppercase tracking-[0.08em] text-text-secondary",children:e.label});let n=!!e.children?.length,a=tailwindMerge.twMerge("edges-stack-nav__row flex items-center justify-between gap-3 rounded-sm px-3 py-2 text-sm font-normal text-text-primary no-underline cursor-pointer text-left bg-transparent border-0 transition-colors",r&&"edges-stack-nav__row--active font-semibold"),i=jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsxs("span",{className:"flex min-w-0 items-center gap-2",children:[e.leading??e.icon?jsxRuntime.jsx("span",{className:"inline-flex items-center flex-shrink-0",children:e.leading??e.icon}):null,jsxRuntime.jsx("span",{className:"truncate",children:e.label})]}),jsxRuntime.jsxs("span",{className:"flex flex-shrink-0 items-center gap-2 text-text-secondary",children:[e.trailing,n?jsxRuntime.jsx($0,{}):null]})]});return e.href?jsxRuntime.jsx(t,{href:e.href,"aria-label":e.ariaLabel,className:a,"aria-current":r?"page":void 0,onClick:s=>o(s,e),children:i}):jsxRuntime.jsx("button",{type:"button",className:a,"aria-label":e.ariaLabel,onClick:s=>{o(s,e);},children:i})}function $0(){return jsxRuntime.jsx("svg",{width:12,height:12,viewBox:"0 0 12 12",fill:"none","aria-hidden":"true",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round",children:jsxRuntime.jsx("path",{d:"M4.5 3 7.5 6 4.5 9"})})}function eS(){return jsxRuntime.jsx("svg",{width:14,height:14,viewBox:"0 0 14 14",fill:"none","aria-hidden":"true",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round",children:jsxRuntime.jsx("path",{d:"M8.5 3 4.5 7 8.5 11"})})}function tS(e,t){if(e===t)return true;if(e.length!==t.length)return false;for(let r=0;r<e.length;r+=1)if(e[r]!==t[r])return false;return true}var ai=({rightContent:e,centerContent:t,showMobileMenu:r=true,avatar:o,showColorModeSwitcher:n=false,toggleTheme:a,isDarkThemeEnabled:i=false,colorMode:s,actions:c,className:l="",mobileMenuId:u="app-mobile-menu"})=>{let d=()=>{switch(s||(i?"dark":"light")){case "system":return jsxRuntime.jsx(dr,{name:"Monitor",size:"sm"});case "light":return jsxRuntime.jsx(dr,{name:"Sun",size:"sm"});case "dark":return jsxRuntime.jsx(dr,{name:"Moon",size:"sm"})}},m=()=>{switch(s||(i?"dark":"light")){case "system":return "Switch to light mode";case "light":return "Switch to dark mode";case "dark":return "Switch to system mode";default:return "Toggle theme"}};return jsxRuntime.jsx("header",{className:`h-[60px] bg-background-surface border-b ${l}`,children:jsxRuntime.jsxs("div",{className:"relative flex h-full items-center",children:[jsxRuntime.jsx("div",{className:"flex items-center h-full flex-shrink-0",children:r&&jsxRuntime.jsx("label",{htmlFor:u,className:"md:hidden cursor-pointer","aria-label":"Open menu",children:jsxRuntime.jsx("div",{className:"flex h-full w-14 flex-col items-center justify-center border-r hover:bg-background-hover transition-colors",children:jsxRuntime.jsx(dr,{name:"List",size:"sm"})})})}),t&&jsxRuntime.jsx("div",{className:"flex-1 flex justify-end md:justify-center md:px-4 min-w-0",children:jsxRuntime.jsx("div",{className:"w-full md:max-w-4xl min-w-0",children:t})}),!t&&jsxRuntime.jsx("div",{className:"flex-1"}),jsxRuntime.jsxs("div",{className:"flex items-center gap-4 pr-4 flex-shrink-0 ml-4",children:[e,n&&a&&jsxRuntime.jsx("button",{type:"button",onClick:a,className:"flex items-center justify-center w-8 h-8 rounded hover:bg-background-hover transition-colors","aria-label":m(),children:d()}),c,o&&jsxRuntime.jsx("div",{className:"flex items-center",children:o})]})]})})};function xf({sideNav:e,stackNav:t,topNav:r,children:o,contentPaddingX:n,contentPaddingY:a,showSidebarBorder:i=true,mainClassName:s,enableJsEnhancements:c=false}){let l="app-mobile-menu",u="app-sidebar-collapse";return Oe.useEffect(()=>{if(!c)return;let d=document.getElementById(u),m=document.getElementById(l),p=document.querySelector("[data-app-shell]"),g=document.getElementById("app-sidebar");if(!d||!p||!g)return;let f=null,h=false;try{let T=localStorage.getItem("sidebar-collapsed");T!==null&&(d.checked=T==="true");}catch{}let b=()=>{try{localStorage.setItem("sidebar-collapsed",String(d.checked));}catch{}d.checked?h=true:(f&&(clearTimeout(f),f=null),p.removeAttribute("data-peek"),h=false);};d.addEventListener("change",b);let x=T=>{T.key==="Escape"&&(m&&(m.checked=false),p.removeAttribute("data-peek"));};document.addEventListener("keydown",x);let y=null;m&&(y=()=>{document.body.style.overflow=m.checked?"hidden":"";},m.addEventListener("change",y));let v=T=>{let M=T.target.closest("a");M&&M.href&&window.innerWidth<768&&m&&setTimeout(()=>{m.checked=false,document.body.style.overflow="";},100);};g.addEventListener("click",v);let S=16,w=200,N=()=>{f&&(clearTimeout(f),f=null),p.getAttribute("data-peek")!=="true"&&p.setAttribute("data-peek","true");},R=()=>{f&&clearTimeout(f),f=setTimeout(()=>{p.removeAttribute("data-peek"),f=null;},w);},k=T=>{if(window.innerWidth<768||!d.checked)return;let A=g.contains(T.target);if(h&&!A&&(h=false),h)return;T.clientX<=S||A?N():p.getAttribute("data-peek")==="true"&&R();};return document.addEventListener("mousemove",k),()=>{d.removeEventListener("change",b),document.removeEventListener("keydown",x),m&&y&&m.removeEventListener("change",y),g.removeEventListener("click",v),document.removeEventListener("mousemove",k),f&&clearTimeout(f);}},[c,l,u]),jsxRuntime.jsxs("div",{className:"min-h-[100dvh] bg-background text-text-primary relative","data-app-shell":"",children:[jsxRuntime.jsx("input",{type:"checkbox",id:u,className:"sr-only peer/sidebar","aria-hidden":"true"}),jsxRuntime.jsx("a",{href:"#app-content",className:"sr-only focus:not-sr-only focus:absolute focus:left-4 focus:top-4 z-50 rounded px-3 py-2 bg-background-surface shadow",children:"Skip to content"}),jsxRuntime.jsx(ai,{...r,mobileMenuId:l,className:["sticky top-0 flex-shrink-0 z-30 md:hidden",r?.className].filter(Boolean).join(" ")}),jsxRuntime.jsxs("div",{className:"flex w-full h-[calc(100dvh-60px)] md:h-[100dvh] relative overflow-hidden",children:[jsxRuntime.jsx("input",{type:"checkbox",id:l,className:"sr-only peer/mobile","aria-hidden":"true"}),jsxRuntime.jsx("label",{htmlFor:l,className:"fixed inset-0 bg-background-modal z-[55] opacity-0 pointer-events-none peer-checked/mobile:opacity-100 peer-checked/mobile:pointer-events-auto transition-opacity md:hidden","aria-label":"Close menu"}),jsxRuntime.jsx("div",{"aria-hidden":"true","data-peek-zone":"",className:"hidden md:block fixed left-0 top-0 bottom-0 w-4 z-[70] pointer-events-none"}),jsxRuntime.jsx("label",{htmlFor:u,"data-expand-rail":"",className:"hidden fixed left-3 top-3 z-[75] items-center justify-center w-9 h-9 rounded-md bg-background-surface border border-border-default shadow-sm hover:bg-background-hover cursor-pointer transition-all duration-200","aria-label":"Expand sidebar",children:jsxRuntime.jsx(dr,{name:"Sidebar",size:"sm"})}),jsxRuntime.jsx("aside",{id:"app-sidebar","data-app-sidebar":"",className:["bg-background-surface","border-r border-border-default","transition-transform duration-300 ease-in-out md:transition-[transform,width] md:duration-300 md:ease-in-out","fixed md:relative","left-0 top-0 bottom-0","z-[60] md:z-10","w-full md:w-64","h-[100dvh] md:h-full","-translate-x-full","peer-checked/mobile:translate-x-0","md:translate-x-0",i?"":"!border-r-0",(t??e)?.className||""].filter(Boolean).join(" "),children:t?jsxRuntime.jsx(ws,{...t,mobileMenuId:l,sidebarCollapseId:u,sticky:false,width:null,className:["h-full !border-r-0",t.className].filter(Boolean).join(" ")}):jsxRuntime.jsx(Ss,{...e,mobileMenuId:l,sidebarCollapseId:u,className:"h-full"})}),jsxRuntime.jsxs("div",{className:"flex-1 flex flex-col h-full overflow-hidden",children:[jsxRuntime.jsx("div",{className:"sticky top-0 flex-shrink-0 hidden md:block z-20","data-top-nav-wrapper":"",children:jsxRuntime.jsx(ai,{...r,className:r?.className})}),jsxRuntime.jsx("main",{id:"app-content",className:["flex-1 overflow-y-auto overflow-x-hidden bg-background-body scrollbar-visible",n,a,s||""].join(" "),role:"main",children:o})]})]}),jsxRuntime.jsx("style",{dangerouslySetInnerHTML:{__html:`
|
|
3
3
|
@media (min-width: 768px) {
|
|
4
4
|
/* Collapsed: hide the rail offscreen, surface the floating expand
|
|
5
5
|
button, and let the edge zone receive hover events. */
|
|
@@ -24,8 +24,8 @@
|
|
|
24
24
|
z-index: 50;
|
|
25
25
|
}
|
|
26
26
|
}
|
|
27
|
-
`}})]})}function Bo(e,t=300){let[r,o]=Oe.useState(e);return Oe.useEffect(()=>{let n=setTimeout(()=>o(e),t);return ()=>clearTimeout(n)},[e,t]),r}function ws(e,t=300){let[r,o]=Oe.useState(false);return Oe.useEffect(()=>{if(e){let n=setTimeout(()=>{o(true);},t);return ()=>clearTimeout(n)}o(false);},[e,t]),r}var lS=({isEntering:e,isExiting:t,className:r})=>["max-w-[200px] group bg-action-default border border-action-default-hover text-[color:var(--color-action-default-text)] text-sm rounded-lg drop-shadow-lg will-change-transform px-3 py-1",e?"animate-in fade-in placement-bottom:slide-in-from-top-0.5 placement-top:slide-in-from-bottom-0.5 placement-left:slide-in-from-right-0.5 placement-right:slide-in-from-left-0.5 ease-out duration-200":"",t?"animate-out fade-out placement-bottom:slide-out-to-top-0.5 placement-top:slide-out-to-bottom-0.5 placement-left:slide-out-to-right-0.5 placement-right:slide-out-to-left-0.5 ease-in duration-150":"",r].filter(Boolean).join(" ");function Zt({children:e,content:t,...r}){return jsxRuntime.jsxs(reactAriaComponents.TooltipTrigger,{delay:200,children:[e,jsxRuntime.jsxs(reactAriaComponents.Tooltip,{...r,offset:10,className:reactAriaComponents.composeRenderProps(r.className,(o,n)=>lS({...n,className:o})),children:[jsxRuntime.jsx(reactAriaComponents.OverlayArrow,{children:jsxRuntime.jsx("svg",{width:8,height:8,viewBox:"0 0 8 8",className:"fill-action-default stroke-action-default-hover group-placement-left:-rotate-90 group-placement-right:rotate-90 group-placement-bottom:rotate-180 forced-colors:fill-[Canvas] forced-colors:stroke-[ButtonBorder]",children:jsxRuntime.jsx("path",{d:"M0 0 L4 4 L8 0"})})}),t]})]})}function Tr(){let[e,t]=Oe__namespace.default.useState(false),r=Oe__namespace.default.useCallback((n,a)=>{t(true),a?.(n);},[]),o=Oe__namespace.default.useCallback((n,a)=>{t(false),a?.(n);},[]);return {isFocused:e,handleFocus:r,handleBlur:o}}var ht=Oe__namespace.default.forwardRef(({children:e,className:t},r)=>jsxRuntime.jsx("div",{ref:r,className:tailwindMerge.twMerge("relative w-full",t),children:e}));ht.displayName="InputWrapper";function ai({onClick:e,size:t="md",className:r}){return jsxRuntime.jsx("button",{type:"button",onClick:o=>{o.preventDefault(),o.stopPropagation(),e();},className:tailwindMerge.twMerge("absolute right-2 top-[48%] -translate-y-1/2 transform text-text-secondary hover:text-text-primary cursor-pointer",r),"aria-label":"Clear input",onMouseDown:o=>{o.preventDefault(),o.stopPropagation();},children:jsxRuntime.jsx(B,{name:"X",size:t==="sm"?16:20})})}function Vo(e){let{isInvalid:t,isDisabled:r,isFocused:o}=e,n="border rounded-[var(--control-border-radius)] !outline-none ";return r?`${n} border-border-muted`:t&&o?`${n} border-feedback-error-border shadow-[inset_0_0_0_1px_var(--color-feedback-error-border)]`:t?`${n} border-feedback-error-border`:o?`${n} border-border-focus shadow-[inset_0_0_0_1px_var(--color-border-focus)]`:`${n} border-border-input`}function hf(e){return e.isDisabled?"bg-background-muted":e.transparent?"bg-transparent":"bg-background-input"}function cS(e){return e==="sm"?"!text-base md:!text-[length:var(--control-text-sm)]":e==="md"?"!text-base md:!text-[length:var(--control-text-md)]":""}function Vt(e){let{isInvalid:t,isDisabled:r,isFocused:o,transparent:n,size:a="md",className:i}=e;return tailwindMerge.twMerge("w-full",Vo({isInvalid:t,isDisabled:r,isFocused:o}),hf({transparent:n,isDisabled:r}),Ge[a].text,Ge[a].height,Ge[a].padding,cS(a),i)}function dS(e){let{size:t="md",isFocusWithin:r,isInvalid:o,isDisabled:n,transparent:a,className:i}=e;return tailwindMerge.twMerge("group flex items-center rounded-[var(--control-border-radius)] overflow-hidden",hf({transparent:a,isDisabled:n}),Ge[t].height,Vo({isFocused:r,isInvalid:o,isDisabled:n}),i)}function ze({children:e,size:t="md",tooltip:r,description:o,descriptionPlacement:n="below",isRequired:a,className:i,htmlFor:s}){let c=r||o&&n==="tooltip",l=r||o,u=o&&n==="inline",d=jsxRuntime.jsxs("label",{htmlFor:s,className:tailwindMerge.twMerge(Ge[t].text,"!text-text-label font-semibold flex items-center gap-1",i),children:[e,a&&jsxRuntime.jsx("span",{children:"*"}),c&&jsxRuntime.jsx("span",{className:"inline-flex items-center text-text-secondary",children:jsxRuntime.jsx(B,{name:"Info",size:t==="sm"?16:20})}),u&&jsxRuntime.jsx("span",{className:"text-text-secondary font-normal ml-1",children:o})]});return c&&l?jsxRuntime.jsx(Zt,{content:l,children:d}):d}function Te({size:e="md",className:t,children:r,...o}){return jsxRuntime.jsx("div",{...o,className:tailwindMerge.twMerge("leading-[2.25] text-text-secondary",Ge[e].text,t),children:r})}function be({children:e,size:t="md",className:r}){return jsxRuntime.jsx("div",{role:"alert",className:tailwindMerge.twMerge(Ge[t].text,"text-feedback-error-text",r),children:e})}function ks({size:e="md",isInvalid:t,isDisabled:r,isFocused:o,transparent:n,className:a,...i}){return jsxRuntime.jsx("input",{className:Vt({isInvalid:t,isDisabled:r,isFocused:o,transparent:n,size:e,className:a}),...i})}function yf(e){let{children:t,...r}=e;return jsxRuntime.jsx("div",{...r,className:dS(e),children:typeof t=="function"?t(e):t})}var Ld=Oe.createContext("md");function Nf(){return Oe.useContext(Ld)}function Md(e="md"){let t=e==="sm"?"!text-base md:!text-[length:var(--control-text-sm)]":e==="md"?"!text-base md:!text-[length:var(--control-text-md)]":"";return `flex-1 text-start data-[placeholder]:text-text-disabled overflow-hidden text-ellipsis whitespace-nowrap ${Ge[e].text} ${t}`}function bS(){let e=Oe__namespace.default.useCallback((r,o)=>{o?.(r);},[]),t=Oe__namespace.default.useCallback((r,o)=>{o?.(r);},[]);return {handleFocus:e,handleBlur:t}}function go({label:e,description:t,errorMessage:r,children:o,items:n,renderItem:a,renderSelectedValue:i,size:s="md",selectedKey:c,defaultSelectedKey:l,onSelectionChange:u,placeholder:d,showErrors:m=false,tooltip:p,isRequired:g,transparent:f,reserveErrorSpace:h=false,placement:b="bottom start",shouldFlip:x=true,menuWidth:y="match",descriptionPlacement:v="below",useMobileTray:S=true,...w}){let[N,T]=Oe.useState(null),[k,P]=Oe.useState(null),[A,D]=Oe.useState(false),L=c??N??l,{handleFocus:R,handleBlur:H}=bS(),{isMobile:G}=Xt(),Y=S&&G,U=Oe__namespace.default.useMemo(()=>!i||!L||!n?null:Array.from(n).find(W=>W.id===L)??null,[i,L,n]),q=M=>{u&&M!==null&&u(M),u||T(M);},j=Oe.useRef(null),Q=Oe.useRef(null),E=()=>{Y&&D(!A);};return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(reactAriaComponents.Select,{...w,selectedKey:L,defaultSelectedKey:l,onSelectionChange:q,placeholder:d,className:ke(w.className,"group flex w-full flex-col"),ref:j,onOpenChange:M=>{Y||(M&&Q.current?P(Q.current.offsetWidth):M||j.current?.blur());},children:({isDisabled:M,isInvalid:W,isOpen:I})=>jsxRuntime.jsxs("div",{className:"flex flex-col",children:[e&&jsxRuntime.jsx(ze,{size:s,tooltip:p,description:v==="tooltip"||v==="inline"?t:void 0,descriptionPlacement:v,isRequired:g,children:e}),jsxRuntime.jsx(ht,{children:jsxRuntime.jsx("div",{ref:Q,children:jsxRuntime.jsxs(Z,{variant:"unstyled",className:tailwindMerge.twMerge(Vt({isInvalid:W||m&&!!r,isDisabled:M,isFocused:Y?A:I,transparent:f,size:s}),"flex items-center text-start gap-4 cursor-pointer pl-[var(--control-padding-sm)]"),onFocus:C=>R(C,w.onFocus),onBlur:C=>H(C,w.onBlur),onPress:Y?E:void 0,"data-open":Y?A:I,children:[i&&U?jsxRuntime.jsx("div",{className:Md(s),children:i(U)}):Y&&L?jsxRuntime.jsx("div",{className:Md(s),children:n?Array.from(n).find(O=>O.id===L)?.label:String(L)}):jsxRuntime.jsx(reactAriaComponents.SelectValue,{className:Md(s)}),jsxRuntime.jsx(B,{name:"CaretDown","aria-hidden":true,className:tailwindMerge.twMerge("h-4 w-4 text-text-primary group-disabled:text-text-disabled forced-colors:text-[ButtonText] transition-transform",(Y?A:I)&&"rotate-180")})]})})}),h?jsxRuntime.jsx("div",{className:"mt-1 min-h-[20px]",children:m?jsxRuntime.jsx(be,{size:s,className:"text-feedback-error-text",children:typeof r=="function"&&w.validationResult?r(w.validationResult):typeof r=="string"?r:null}):t&&v==="below"?jsxRuntime.jsx(Te,{size:s,children:t}):null}):jsxRuntime.jsx(jsxRuntime.Fragment,{children:m?jsxRuntime.jsx(be,{size:s,className:"mt-1 text-feedback-error-text",children:typeof r=="function"&&w.validationResult?r(w.validationResult):typeof r=="string"?r:null}):t&&v==="below"?jsxRuntime.jsx(Te,{size:s,className:"mt-1",children:t}):null}),Y?null:jsxRuntime.jsx(st,{className:"bg-background-input shadow-xl border border-border-input/20 backdrop-blur-sm rounded-[var(--control-border-radius)]",style:{width:y==="match"&&k?`${k}px`:void 0,minWidth:y==="auto"&&k?`${k}px`:void 0,maxWidth:y==="auto"?"min(600px, 90vw)":void 0},placement:b,shouldFlip:x,children:jsxRuntime.jsx(Ld.Provider,{value:"md",children:jsxRuntime.jsx(reactAriaComponents.ListBox,{items:n,className:"w-full max-h-[300px] overflow-auto bg-background-input p-0 outline-0",children:a&&n?C=>jsxRuntime.jsx(_t,{id:C.id,textValue:C.label,children:jsxRuntime.jsx("span",{className:"overflow-hidden text-ellipsis whitespace-nowrap min-w-0 flex-1",children:a(C)})},C.id):o})})})]})}),Y&&jsxRuntime.jsx(lt,{isOpen:A,onClose:()=>D(false),title:e??"Select an option",contentPadding:false,children:jsxRuntime.jsx(Ld.Provider,{value:"md",children:jsxRuntime.jsx(reactAriaComponents.ListBox,{items:n,className:"w-full bg-background-surface p-0 outline-0 [&_[role=option]]:border-b [&_[role=option]]:border-border-default [&_[role=option]:last-child]:border-0 [&_[role=option]]:!px-6 [&_[role=option]]:!py-4 [&_[role=option]]:rounded-none",selectionMode:"single",selectedKeys:L!=null?[L]:[],onSelectionChange:M=>{let W=Array.from(M)[0];W!=null&&(q(W),D(false));},children:a&&n?M=>jsxRuntime.jsx(_t,{id:M.id,textValue:M.label,children:jsxRuntime.jsx("span",{className:"overflow-hidden text-ellipsis whitespace-nowrap min-w-0 flex-1",children:a(M)})},M.id):o})})})]})}function _t({size:e,className:t,...r}){let o=Nf(),n=e??o;return jsxRuntime.jsx(reactAriaComponents.ListBoxItem,{...r,className:tailwindMerge.twMerge("flex cursor-default items-center gap-2 rounded-sm px-3 outline-none text-text-primary data-[focused]:bg-background-hover data-[focus-visible]:ring-2 data-[focus-visible]:ring-action-default data-[focus-visible]:ring-inset data-[selected]:bg-background-selected data-[selected]:font-medium overflow-hidden",Ge[n].paddingY,Ge[n].text,t)})}var RS=[],MS={sm:"h-4 w-4",md:"h-5 w-5",lg:"h-6 w-6",xl:"h-7 w-7"},DS={sm:"pl-8",md:"pl-10",lg:"pl-11",xl:"pl-13"},Tf={sm:"py-1",md:"py-2",lg:"py-3",xl:"py-4"},Id=(e,t,r)=>{if(e==null||e==="")return "";let n=(r?r.flatMap(a=>a.items):t||[]).find(a=>a.id===e);return n?n.name:""};async function ES(e,t,r){try{let o=e.url.replace("{q}",t),n=new URLSearchParams;e.extraParams&&Object.entries(e.extraParams).forEach(([c,l])=>{n.append(c,l.toString());});let a=`${o}${n.toString()?"?"+n.toString():""}`,i=await fetch(a,{method:"GET",headers:e.headers,signal:r});if(!i.ok)throw new Error(`HTTP error! status: ${i.status}`);let s=await i.json();return {items:e.transformResponse(s)}}catch(o){if(o instanceof Error&&o.name==="AbortError")return {items:[]};console.error("Error in REST request:",o);let n=o instanceof Error?o.message:"Unknown error occurred";return {items:[],error:n}}}async function LS(e,t,r){try{let o=e.graphqlQuery.replace(`$${e.variableKey||"filter"}`,`"${t}"`),n=await fetch(e.url,{method:"POST",headers:{"Content-Type":"application/json",...e.headers},body:JSON.stringify({query:o}),signal:r});if(!n.ok)throw new Error(`HTTP error! status: ${n.status}`);let a=await n.json();if(a.errors)throw new Error(a.errors[0]?.message||"GraphQL error occurred");return e.responsePath&&(a=e.responsePath.split(".").reduce((i,s)=>i?.[s],a)),{items:e.transformResponse(a)}}catch(o){if(o instanceof Error&&o.name==="AbortError")return {items:[]};console.error("Error in GraphQL request:",o);let n=o instanceof Error?o.message:"Unknown error occurred";return {items:[],error:n}}}function Rs({label:e,staticItems:t=RS,sections:r,selectedKey:o,defaultSelectedKey:n,onSelectionChange:a,requestConfig:i,defaultFilter:s,placeholder:c,errorMessage:l,description:u,size:d="md",tooltip:m,isRequired:p,isDisabled:g,isInvalid:f,validationResult:h,showErrors:b=true,renderItem:x,renderLeftIcon:y,renderSection:v,autoFocus:S=false,reserveErrorSpace:w=false,hideChevron:N=false,useMobileTray:T=true,className:k}){let P=Oe__namespace.default.useRef(null),A=Oe__namespace.default.useRef(null),[D,L]=Oe__namespace.default.useState(),[R,H]=Oe.useState(()=>Id(o||n,t,r)),[G,Y]=Oe.useState(false),[U,q]=Oe.useState(false),j=Bo(R),{contains:Q}=reactAria.useFilter({sensitivity:"base"}),[E,M]=Oe.useState(),{isMobile:W}=Xt(),I=T&&W,C=Ge[d].text,F=reactStately.useAsyncList({async load({signal:re,filterText:ce=""}){if(!i)return {items:[]};if(!i.url||i.shouldLoad&&!i.shouldLoad(ce))return {items:[]};try{let xe;return i.requestType==="GraphQL"?xe=await LS(i,ce,re):xe=await ES(i,ce,re),M(xe.error),{items:xe.items}}catch(xe){return xe instanceof Error&&xe.name==="AbortError"?{items:[]}:(console.error("Error loading items:",xe),M(xe instanceof Error?xe.message:"Unknown error occurred"),{items:[]})}},initialFilterText:""}),O=i&&j!==""?F:null,K=false,te=Oe.useRef("");Oe.useEffect(()=>{S&&Y(true);},[S]),Oe.useEffect(()=>{let re=Id(o,t,r);re!==R&&H(re);},[o,t,r]),Oe.useEffect(()=>{let re=()=>{P.current&&L(P.current.offsetWidth);};return re(),window.addEventListener("resize",re),()=>window.removeEventListener("resize",re)},[]),Oe.useEffect(()=>{j===""?te.current="":O&&j!==te.current&&(te.current=j,O.setFilterText(j));},[j,O]),K=ws(!!O?.isLoading,300);let de=Oe__namespace.default.useMemo(()=>{if(!I||!R)return O?O.items:t;let re=O?O.items:t,ce=s??(i?()=>true:Q);return re.filter(xe=>ce(xe.name,R))},[I,R,O,t,s,Q]),_=re=>{let ce=Id(re,t,r);H(ce),a&&a(re);},ae=re=>{H(re);},fe=()=>{I&&q(true);};return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(reactAriaComponents.ComboBox,{onSelectionChange:_,selectedKey:o||void 0,defaultSelectedKey:n||void 0,items:O?O.items:r?r.flatMap(re=>re.items):t,className:ke(k,"group flex flex-col w-full"),menuTrigger:I?"manual":i?"input":"focus",allowsEmptyCollection:!!i,isDisabled:g,isInvalid:f||!!l,inputValue:R,onInputChange:ae,autoFocus:S&&!I,defaultFilter:s??(i?()=>true:Q),"aria-label":e||c||"Autocomplete",children:re=>jsxRuntime.jsxs("div",{className:"flex flex-col",children:[e&&jsxRuntime.jsx(ze,{size:d,tooltip:m,isRequired:p,children:e}),jsxRuntime.jsxs(ht,{ref:P,children:[y?jsxRuntime.jsx("div",{className:"pointer-events-none absolute left-3 top-[45%] -translate-y-1/2 z-10",children:y(K)}):jsxRuntime.jsx("div",{className:"pointer-events-none absolute left-3 top-1/2 -translate-y-1/2 z-10 flex items-center",children:K?jsxRuntime.jsx(fo,{size:16,color:"text-text-secondary"}):jsxRuntime.jsx(B,{name:"MagnifyingGlass",className:`${MS[d]} text-text-secondary`})}),jsxRuntime.jsx(reactAriaComponents.Input,{className:Vt({isInvalid:f||!!l,isDisabled:g,isFocused:G||(I?U:re.isOpen),size:d,className:tailwindMerge.twMerge(DS[d],R&&!g||!N&&!R?"pr-10":"pr-3",I&&"cursor-pointer",k)}),placeholder:c,disabled:g,onFocus:ce=>{Y(true),I&&(ce.currentTarget.blur(),fe());},onBlur:()=>{Y(false);},onClick:I?fe:void 0,readOnly:I,"aria-label":e||c||"Autocomplete"}),R&&!g&&jsxRuntime.jsx(ai,{onClick:()=>{H(""),a?.(null);},size:d}),!N&&!R&&jsxRuntime.jsx(reactAriaComponents.Button,{className:"absolute right-3 top-[46%] -translate-y-1/2 transform text-text-secondary hover:text-text-primary","aria-label":"Toggle menu",isDisabled:g,children:({isPressed:ce})=>jsxRuntime.jsx(B,{name:ce?"CaretUp":"CaretDown",className:"h-4 w-4"})})]}),w?jsxRuntime.jsx("div",{className:"mt-1 min-h-[20px]",children:b&&E?jsxRuntime.jsx(be,{size:d,className:"text-feedback-error-text",children:E}):b&&typeof l=="string"?jsxRuntime.jsx(be,{size:d,className:"text-feedback-error-text",children:l}):b&&typeof l=="function"&&h?jsxRuntime.jsx(be,{size:d,className:"text-feedback-error-text",children:l(h)}):u?jsxRuntime.jsx(Te,{size:d,children:u}):null}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[u&&jsxRuntime.jsx(Te,{size:d,className:"mt-1",children:u}),b&&E&&jsxRuntime.jsx(be,{size:d,className:"text-feedback-error-text mt-1",children:E}),b&&typeof l=="string"&&jsxRuntime.jsx(be,{size:d,className:"text-feedback-error-text mt-1",children:l}),b&&typeof l=="function"&&h&&jsxRuntime.jsx(be,{size:d,className:"text-feedback-error-text mt-1",children:l(h)})]}),!I&&jsxRuntime.jsx(st,{className:"bg-background-input shadow-xl border border-border-input/20 backdrop-blur-sm ring-1 ring-black/5 rounded-[var(--control-border-radius)]",style:{minWidth:D?`${D}px`:void 0,zIndex:9999},children:jsxRuntime.jsx(reactAriaComponents.ListBox,{"aria-label":e||c||"Suggestions",className:`max-h-[300px] overflow-auto bg-background-input outline-none ${C}`,children:r?r.map(ce=>{let xe=ce.items.map(he=>jsxRuntime.jsx(_t,{id:he.id,textValue:he.name,size:d,className:`flex cursor-default items-center gap-2 px-3 ${Tf[d]} text-text-primary outline-none data-[focused]:bg-background-hover data-[selected]:bg-background-selected data-[selected]:font-medium data-[focus-visible]:ring-0`,children:x?x(he):he.name},he.id));if(v){let he=v(ce,xe);return Oe__namespace.default.isValidElement(he)&&he.type===reactAriaComponents.ListBoxSection?he:jsxRuntime.jsx(reactAriaComponents.ListBoxSection,{children:he},ce.name)}return jsxRuntime.jsxs(reactAriaComponents.ListBoxSection,{children:[jsxRuntime.jsx(reactAriaComponents.Header,{className:"px-3 py-1 text-sm font-bold text-text-secondary",children:ce.name}),xe]},ce.name)}):ce=>jsxRuntime.jsx(_t,{id:ce.id,textValue:ce.name,size:d,className:`flex cursor-default items-center gap-2 px-3 ${Tf[d]} text-text-primary outline-none data-[focused]:bg-background-hover data-[selected]:bg-background-selected data-[selected]:font-medium data-[focus-visible]:ring-0`,children:x?x(ce):ce.name},ce.id)})})]})}),I&&jsxRuntime.jsx(lt,{isOpen:U,onClose:()=>q(false),title:e??c??"Search",contentPadding:false,height:"80vh",children:jsxRuntime.jsxs("div",{className:"flex flex-col h-full",children:[jsxRuntime.jsx("div",{className:"p-4 border-b border-border-default",children:jsxRuntime.jsxs(ht,{children:[jsxRuntime.jsx("div",{className:"pointer-events-none absolute left-3 top-[45%] -translate-y-1/2 z-10 flex items-center",children:K?jsxRuntime.jsx(fo,{size:16,color:"text-text-secondary"}):jsxRuntime.jsx(B,{name:"MagnifyingGlass",className:"h-4 w-4 text-text-secondary"})}),jsxRuntime.jsx("input",{ref:A,type:"text",value:R,onChange:re=>ae(re.target.value),placeholder:c,autoFocus:true,className:Vt({isInvalid:false,isDisabled:false,isFocused:true,size:"md",className:"pl-10 pr-10"})}),R&&jsxRuntime.jsx(ai,{onClick:()=>{H(""),a?.(null);},size:"md"})]})}),jsxRuntime.jsx("div",{className:"flex-1 overflow-auto",children:jsxRuntime.jsx(reactAriaComponents.ListBox,{"aria-label":e||c||"Suggestions",items:de,selectedKeys:o?[o]:[],selectionMode:"single",onSelectionChange:re=>{let ce=Array.from(re)[0];ce&&(_(ce),q(false));},className:"bg-background-input outline-none",children:re=>jsxRuntime.jsx(_t,{id:re.id,textValue:re.name,size:"md",className:"flex cursor-default items-center gap-2 px-4 py-3 text-text-primary outline-none data-[focused]:bg-background-hover data-[selected]:bg-background-selected data-[selected]:font-medium data-[focus-visible]:ring-0",children:x?x(re):re.name},re.id)})})]})})]})}function bo({src:e,alt:t,firstName:r,lastName:o,fullName:n,onClick:a,size:i="md",shape:s="circle",variant:c="user",className:l,status:u,bordered:d=false,piiEntity:m}){let[p,g]=Oe.useState(false),f=Oe.useCallback(()=>g(true),[]);Oe.useEffect(()=>{g(false);},[e]);let h={xs:"h-6 w-6 text-xs",sm:"h-8 w-8 text-sm",md:"h-10 w-10 text-base",lg:"h-12 w-12 text-lg",xl:"h-16 w-16 text-xl"},b={xs:"h-1.5 w-1.5",sm:"h-2 w-2",md:"h-2.5 w-2.5",lg:"h-3 w-3",xl:"h-4 w-4"},x={xs:"bottom-0 right-0",sm:"bottom-0 right-0",md:"bottom-0 right-0",lg:"bottom-0.5 right-0.5",xl:"bottom-1 right-1"},y={online:"bg-feedback-success-background border-feedback-success-border",offline:"bg-text-secondary border-border-muted",away:"bg-feedback-warning-background border-feedback-warning-border",busy:"bg-feedback-error-background border-feedback-error-border"},v={user:"bg-feedback-info-background text-feedback-info-text",team:"bg-feedback-info-background text-feedback-info-text",organization:"bg-feedback-success-background text-feedback-success-text"},S=s==="circle"?"rounded-full":"rounded-md",w=tailwindMerge.twMerge("relative inline-flex items-center justify-center overflow-hidden transition-opacity outline-none",h[i],S,a&&"cursor-pointer hover:opacity-80",d&&"ring-2 ring-background-surface",l),T=(()=>{if(r||o){let D=r?.[0]||"",L=o?.[0]||"";return (D+L).toUpperCase()}if(n){let D=n.split(" "),L=D[0]?.[0]||"",R=D[D.length-1]?.[0]||"";return L===R?L.toUpperCase():(L+R).toUpperCase()}return ""})(),k=()=>{let D={xs:14,sm:16,md:20,lg:24,xl:32}[i];switch(c){case "team":return jsxRuntime.jsx(lucideReact.Users,{size:D});case "organization":return jsxRuntime.jsx(lucideReact.Building2,{size:D});default:return jsxRuntime.jsx(lucideReact.User,{size:D})}},P=D=>{if(m)return c==="organization"?D?"organization-logo":"initials":D?"avatar":"initials"},A=()=>e&&!p?jsxRuntime.jsx("img",{src:e,alt:t||n||"Avatar",className:"h-full w-full object-cover",onError:f,"data-pii-type":P(true),"data-pii-entity":m}):T?jsxRuntime.jsx("span",{className:"font-semibold","data-pii-type":P(false),"data-pii-entity":m,children:T}):k();return jsxRuntime.jsxs("div",{className:"relative inline-block",children:[jsxRuntime.jsx("div",{"data-avatar":true,className:tailwindMerge.twMerge(w,!e||p?v[c]:""),onClick:a,role:a?"button":void 0,tabIndex:a?0:void 0,children:A()}),u&&jsxRuntime.jsx("span",{className:tailwindMerge.twMerge("absolute border-2 border-background-surface",S,b[i],x[i],y[u]),"aria-label":`Status: ${u}`})]})}var HS={default:"bg-feedback-info-background text-feedback-info-text",success:"bg-feedback-success-background text-feedback-success-text",error:"bg-feedback-error-background text-feedback-error-text",warning:"bg-feedback-warning-background text-feedback-warning-text",info:"bg-feedback-info-background text-feedback-info-text",primary:"bg-action-primary/10 text-action-primary border border-action-primary/20",brand:"bg-action-primary/10 text-action-primary border border-action-primary/20",secondary:"bg-action-secondary text-[color:var(--color-action-secondary-text)] border border-border-muted",neutral:"bg-background-muted text-text-secondary",charging:"bg-state-charging text-state-charging-text",discharging:"bg-state-discharging text-state-discharging-text",heat:"bg-state-heat text-state-heat-text",cool:"bg-state-cool text-state-cool-text",eco:"bg-state-eco text-state-eco-text",auto:"bg-state-auto text-state-auto-text",on:"bg-state-on text-state-on-text",off:"bg-state-off text-state-off-text",idle:"bg-state-idle text-state-idle-text",unknown:"bg-state-unknown text-state-unknown-text",connected:"bg-feedback-success-background text-feedback-success-text",disconnected:"bg-feedback-error-background text-feedback-error-text",importing:"bg-state-importing text-state-importing-text",exporting:"bg-state-exporting text-state-exporting-text"},WS={xs:"px-1.5 py-0.5 text-xs",sm:"px-2.5 py-1.5 text-xs",md:"px-3.5 py-2 text-sm",lg:"px-4 py-2.5 text-base"},GS={pill:"rounded-full",rounded:"rounded-lg",square:"rounded-sm"},US={xs:"w-1 h-1",sm:"w-1.5 h-1.5",md:"w-2 h-2",lg:"w-2.5 h-2.5"};function nt({children:e,variant:t="default",size:r="sm",shape:o="square",dot:n=false,dotPosition:a="left",dotPulse:i=false,title:s,className:c}){let l=n&&jsxRuntime.jsx("span",{className:tailwindMerge.twMerge("rounded-full bg-current opacity-75",US[r],i&&"animate-pulse"),"aria-hidden":"true"});return jsxRuntime.jsxs("span",{title:s,className:tailwindMerge.twMerge("inline-flex items-center gap-1.5 font-medium",WS[r],GS[o],HS[t],c),children:[n&&a==="left"&&l,e,n&&a==="right"&&l]})}var Ze=({href:e,children:t,className:r="",external:o=false,title:n,variant:a="secondary",onClick:i,asButton:s=false,onPress:c,showArrow:l=false,alwaysUnderlined:u=false,LinkComponent:d,"data-pii-type":m,"data-pii-entity":p})=>{let g={...m&&{"data-pii-type":m},...p&&{"data-pii-entity":p}},f=o?{target:"_blank",rel:"noopener noreferrer"}:{},v=`${`${u?"underline decoration-1 underline-offset-4 decoration-current":"hover:underline hover:decoration-1 hover:underline-offset-4 hover:decoration-current"} cursor-pointer`} ${{primary:"text-action-primary hover:text-action-primary-hover visited:text-action-primary",secondary:"text-text-link-default hover:text-text-link-hover visited:text-text-link-default",muted:"text-text-secondary hover:text-text-secondary visited:text-text-secondary",unstyled:""}[a==="brand"?"primary":a==="default"?"secondary":a]} ${r}`,S=jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[t,l&&jsxRuntime.jsxs("span",{children:["\xA0","\u2192"]})]});return s?jsxRuntime.jsx("button",{type:"button",className:v,onClick:c,title:n,...g,children:S}):d&&e?jsxRuntime.jsx(d,{href:e,className:v,title:n,onClick:i,...f,...g,children:S}):jsxRuntime.jsx("a",{href:e||"#",className:v,...f,...g,title:n,onClick:i,children:S})};var $S={info:{subtle:{container:"bg-feedback-info-background border-l-4 border-l-feedback-info-border",iconColor:"text-feedback-info-border",titleColor:"text-text-primary",bodyColor:"text-text-primary"},bold:{container:"bg-feedback-info-border border-feedback-info-border",iconColor:"text-text-inverse",titleColor:"text-text-inverse",bodyColor:"text-text-inverse/90"},icon:lucideReact.Info},success:{subtle:{container:"bg-feedback-success-background border-l-4 border-l-feedback-success-border",iconColor:"text-feedback-success-border",titleColor:"text-text-primary",bodyColor:"text-text-primary"},bold:{container:"bg-feedback-success-border border-feedback-success-border",iconColor:"text-text-inverse",titleColor:"text-text-inverse",bodyColor:"text-text-inverse/90"},icon:lucideReact.CheckCircle},warning:{subtle:{container:"bg-feedback-warning-background border-l-4 border-l-feedback-warning-border",iconColor:"text-feedback-warning-border",titleColor:"text-text-primary",bodyColor:"text-text-primary"},bold:{container:"bg-feedback-warning-border border-feedback-warning-border",iconColor:"text-text-inverse",titleColor:"text-text-inverse",bodyColor:"text-text-inverse/90"},icon:lucideReact.AlertCircle},error:{subtle:{container:"bg-feedback-error-background border-l-4 border-l-feedback-error-border",iconColor:"text-feedback-error-border",titleColor:"text-text-primary",bodyColor:"text-text-primary"},bold:{container:"bg-feedback-error-border border-feedback-error-border",iconColor:"text-text-inverse",titleColor:"text-text-inverse",bodyColor:"text-text-inverse/90"},icon:lucideReact.XCircle},discovery:{subtle:{container:"bg-background-muted border-l-4 border-l-action-brand",iconColor:"text-action-brand",titleColor:"text-text-primary",bodyColor:"text-text-primary"},bold:{container:"bg-action-brand border-action-brand",iconColor:"text-text-inverse",titleColor:"text-text-inverse",bodyColor:"text-text-inverse/90"},icon:lucideReact.Lightbulb}};function Ds({variant:e="info",appearance:t="subtle",title:r,children:o,dismissible:n=false,onDismiss:a,primaryAction:i,secondaryAction:s,icon:c,hideIcon:l=false,className:u,testId:d}){let m=$S[e],p=m[t],g=m.icon,f=!!(i||s),h=!!(r||o);return jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("flex gap-3 rounded-sm border p-4",p.container,u),role:"region","aria-live":"polite","data-testid":d,children:[!l&&jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("flex-shrink-0",p.iconColor),"aria-hidden":"true",children:c||jsxRuntime.jsx(g,{className:"h-5 w-5"})}),jsxRuntime.jsxs("div",{className:"flex min-w-0 flex-1 flex-col gap-3",children:[h&&jsxRuntime.jsxs("div",{className:"flex-1",children:[r&&jsxRuntime.jsx("div",{className:jt(ft("headingSm"),p.titleColor),children:r}),o&&jsxRuntime.jsx("div",{className:jt(ft("bodySm"),r?"mt-1":"",p.bodyColor),children:o})]}),f&&jsxRuntime.jsxs("div",{className:"flex flex-wrap items-center gap-3",children:[i&&(i.asLink?jsxRuntime.jsx(Ze,{asButton:true,onPress:i.onPress,variant:t==="bold"?"unstyled":"default",className:t==="bold"?"text-text-inverse hover:text-text-inverse/80":"",children:i.label}):jsxRuntime.jsx(Z,{size:"sm",variant:"primary",onPress:i.onPress,className:t==="bold"?"bg-background-surface text-text-primary hover:bg-background-surface/90":"",children:i.label})),s&&(s.asLink?jsxRuntime.jsx(Ze,{asButton:true,onPress:s.onPress,variant:t==="bold"?"unstyled":"default",className:t==="bold"?"text-text-inverse hover:text-text-inverse/80":"",children:s.label}):jsxRuntime.jsx(Z,{size:"sm",variant:"secondary",onPress:s.onPress,className:t==="bold"?"border-text-inverse/30 text-text-inverse hover:bg-text-inverse/10":"",children:s.label}))]})]}),n&&jsxRuntime.jsx("button",{type:"button",onClick:a,className:tailwindMerge.twMerge("flex h-8 w-8 flex-shrink-0 items-center justify-center self-start rounded-md transition-colors hover:bg-background-modal/10",p.iconColor,Je()),"aria-label":"Dismiss banner",children:jsxRuntime.jsx(lucideReact.X,{className:"h-4 w-4"})})]})}function Df({isOpen:e=true,position:t="sticky",className:r,...o}){let n=t==="fixed"?"fixed top-0 left-0 right-0 z-50":"sticky top-0 z-50",a=r?`${r} !rounded-none`:"!rounded-none";return jsxRuntime.jsx(framerMotion.AnimatePresence,{children:e&&jsxRuntime.jsx(framerMotion.motion.div,{initial:{height:0,opacity:0},animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},transition:{duration:.2,ease:"easeInOut"},className:n,children:jsxRuntime.jsx(Ds,{...o,className:a})})})}function xa(){let[e,t]=Oe.useState({width:0,height:0}),r=Oe.useRef(null),o=Oe.useRef(void 0),n=Oe.useCallback(a=>{if(r.current&&(r.current.disconnect(),r.current=null),o.current&&(cancelAnimationFrame(o.current),o.current=void 0),!a){t({width:0,height:0});return}let i=a.getBoundingClientRect();t({width:i.width,height:i.height}),r.current=new ResizeObserver(s=>{o.current&&cancelAnimationFrame(o.current),o.current=requestAnimationFrame(c=>{for(let l of s){let{width:u,height:d}=l.contentRect;t(m=>m.width!==u||m.height!==d?{width:u,height:d}:m);}});}),r.current.observe(a);},[]);return Oe.useEffect(()=>()=>{o.current&&cancelAnimationFrame(o.current),r.current&&r.current.disconnect();},[]),{ref:n,width:e.width,height:e.height}}function zo({value:e,children:t,className:r,size:o="sm",iconPosition:n="right"}){let[a,i]=Oe.useState(false),l=jsxRuntime.jsx(Z,{variant:"icon",size:o,onPress:()=>{let d=e||(typeof t=="string"?t:"");navigator.clipboard.writeText(d),i(true),setTimeout(()=>{i(false);},2e3);},className:"!px-2 relative",style:{top:"0.5px"},children:jsxRuntime.jsx(B,{name:"Copy",size:o==="sm"?14:16})}),u=a?jsxRuntime.jsx(Zt,{content:"Copied!",children:l}):l;return jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("inline-flex items-center gap-0.5",r),children:[n==="left"&&u,t,n==="right"&&u]})}function Es(e){let{children:t,maxWidth:r=600,className:o,...n}=e,{ref:a,width:i}=xa(),[s,c]=Oe__namespace.default.useState(false),[l,u]=Oe__namespace.default.useState(false),d=Oe__namespace.default.useRef(false),m=Oe__namespace.default.useMemo(()=>t&&!e.items&&typeof t!="function"?Oe__namespace.default.Children.toArray(t):null,[t,e.items]);if(Oe__namespace.default.useEffect(()=>{m&&m.length>=4&&i>0&&!d.current?(d.current=true,c(i>r),u(true)):(!m||m&&m.length<4)&&u(true);let p=setTimeout(()=>{l||u(true);},100);return ()=>clearTimeout(p)},[i,r,m,l]),m&&s&&m.length>=4){let p=m[0],g=m.slice(1,-2),f=m.slice(-2),h=g.map(b=>{if(Oe__namespace.default.isValidElement(b)){let x=b.props;if(typeof x.children=="string")return {label:x.children,href:x.href}}return {label:"..."}});return jsxRuntime.jsxs(reactAriaComponents.Breadcrumbs,{...n,ref:a,className:tailwindMerge.twMerge("flex gap-2",l?"opacity-100":"opacity-0",o),children:[p,jsxRuntime.jsx(lw,{items:h}),f]})}return jsxRuntime.jsx(reactAriaComponents.Breadcrumbs,{...n,ref:a,className:tailwindMerge.twMerge("flex gap-2",l?"opacity-100":"opacity-0",o),children:t})}function lw({items:e}){let t=e.map((r,o)=>({id:`breadcrumb-${o}`,name:r.label,href:r.href}));return jsxRuntime.jsx(reactAriaComponents.Breadcrumb,{className:"flex items-center gap-2",children:jsxRuntime.jsxs("span",{className:"flex items-center gap-2",children:[jsxRuntime.jsx(fa,{items:t,align:"left",size:"sm",children:jsxRuntime.jsx(Z,{variant:"icon",size:"sm",icon:"DotsThree","aria-label":"Show hidden breadcrumbs",className:"px-0.5"})}),jsxRuntime.jsx(lucideReact.ChevronRight,{className:"h-4 w-4 text-text-secondary"})]})})}function Ls(e){let{className:t,children:r,href:o,copyable:n,copyValue:a,...i}=e;return jsxRuntime.jsx(reactAriaComponents.Breadcrumb,{className:ke(t,"flex items-center gap-2"),...i,children:s=>{let c=s.isCurrent,l=typeof r=="function"?r(s):r;return jsxRuntime.jsx(jsxRuntime.Fragment,{children:c?n?jsxRuntime.jsx(zo,{value:a||(typeof l=="string"?l:void 0),size:"sm",iconPosition:"right",children:jsxRuntime.jsx("span",{className:"max-w-[200px] truncate font-semibold text-text-primary sm:max-w-none",children:l})}):jsxRuntime.jsx("span",{className:"max-w-[200px] truncate font-semibold text-text-primary sm:max-w-none",children:l}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(Ze,{variant:"muted",href:o,className:"max-w-[150px] truncate sm:max-w-[300px] md:max-w-none",children:l}),jsxRuntime.jsx(lucideReact.ChevronRight,{className:"h-4 w-4 shrink-0 text-text-secondary"})]})})}})}function hw({isSelected:e,isDisabled:t}){let r=[Je,"w-9 h-9 text-sm cursor-default rounded-sm flex items-center justify-center forced-color-adjust-none font-semibold"];return t?r.push("text-text-disabled forced-colors:text-[GrayText]"):e?r.push("bg-action-default text-text-inverse invalid:bg-feedback-error-border forced-colors:bg-[Highlight] forced-colors:invalid:bg-[Mark] forced-colors:text-[HighlightText]"):r.push("text-text-primary hover:bg-background-hover pressed:bg-background-selected"),r.join(" ")}function ha({errorMessage:e,...t}){return jsxRuntime.jsxs(reactAriaComponents.Calendar,{...t,children:[jsxRuntime.jsx(As,{}),jsxRuntime.jsxs(reactAriaComponents.CalendarGrid,{className:"border-separate [border-spacing:0] [&_td]:p-0 [&_td]:!border-0",children:[jsxRuntime.jsx(Is,{}),jsxRuntime.jsx(reactAriaComponents.CalendarGridBody,{children:r=>jsxRuntime.jsx(reactAriaComponents.CalendarCell,{date:r,className:({isSelected:o,isDisabled:n})=>`${hw({isSelected:o,isDisabled:n})} border-0`})})]}),e&&jsxRuntime.jsx(reactAriaComponents.Text,{slot:"errorMessage",className:"text-sm text-feedback-error-text",children:e})]})}function As(){let{direction:e}=reactAriaComponents.useLocale(),t=18;return jsxRuntime.jsxs("header",{className:"flex w-full items-center gap-1 px-1 pb-4",children:[jsxRuntime.jsx(Z,{variant:"icon",slot:"previous",className:"pl-0",children:e==="rtl"?jsxRuntime.jsx(B,{name:"CaretRight","aria-hidden":true,size:t}):jsxRuntime.jsx(B,{name:"CaretLeft","aria-hidden":true,size:t})}),jsxRuntime.jsx(reactAriaComponents.Heading,{className:"text-md mx-2 flex-1 text-center font-semibold text-text-primary"}),jsxRuntime.jsx(Z,{variant:"icon",slot:"next",className:"pr-0",children:e==="rtl"?jsxRuntime.jsx(B,{name:"CaretLeft","aria-hidden":true,size:t}):jsxRuntime.jsx(B,{name:"CaretRight","aria-hidden":true,size:t})})]})}function Is(){return jsxRuntime.jsx(reactAriaComponents.CalendarGridHeader,{children:e=>jsxRuntime.jsx(reactAriaComponents.CalendarHeaderCell,{className:"text-xs font-semibold text-text-secondary",children:e})})}var Vf=Oe__namespace.createContext(null);function Oo(){let e=Oe__namespace.useContext(Vf);if(!e)throw new Error("Carousel components must be used within a CarouselRoot");return e}function zf({page:e,defaultPage:t=0,onPageChange:r,orientation:o="horizontal",loop:n=false,autoplay:a=false,autoplayDelay:i=4e3,allowMouseDrag:s=false,spacing:c="1rem",slidesPerView:l=1,slidesPerMove:u=1,className:d,children:m,...p}){let g=e!==void 0,[f,h]=Oe__namespace.useState(t),b=g?e:f,x=Oe__namespace.useRef(null),[y,v]=Oe__namespace.useState(0),[S,w]=Oe__namespace.useState(typeof a=="boolean"?a:!!a),[N,T]=Oe__namespace.useState(false),k=Oe__namespace.useRef(null),P=Oe__namespace.useRef(null),A=typeof a=="object"&&a!==null&&a.delay?a.delay:i;Oe__namespace.useEffect(()=>{if(x.current){let C=Math.max(1,Math.floor(Number(l)||1)),F=x.current.children;if(F.length===0){v(0);return}let O=Math.ceil(F.length/C);v(O);}},[m,l]);let D=Oe__namespace.useRef(-1);Oe__namespace.useEffect(()=>{if(b!==D.current&&x.current){let C=Array.from(x.current.children);if(C.length===0)return;let F=b*l,O=Math.min(F,C.length-1),K=C[O];K&&typeof K.scrollIntoView=="function"&&(K.scrollIntoView({behavior:"smooth",block:o==="vertical"?"start":"nearest",inline:o==="horizontal"?"start":"nearest"}),D.current=b);}},[b,l,o]);let L=Oe__namespace.useCallback(C=>{let F=C;n?F<0?F=y-1:F>=y&&(F=0):F=Math.max(0,Math.min(C,y-1)),g||h(F),r?.(F);},[g,n,r,y]),R=Oe__namespace.useCallback(()=>{L(b+u);},[b,L,u]),H=Oe__namespace.useCallback(()=>{L(b-u);},[b,L,u]),G=Oe__namespace.useRef(R);Oe__namespace.useEffect(()=>{G.current=R;},[R]);let Y=y>0&&(n||b<y-1),U=y>0&&(n||b>0),q=Oe__namespace.useCallback(()=>{w(C=>!C);},[]);Oe__namespace.useEffect(()=>{if(S&&y>1)return k.current=setInterval(()=>{G.current();},A),()=>{k.current&&(clearInterval(k.current),k.current=null);}},[S,y,A]);let j=Oe__namespace.useCallback(()=>{k.current&&(clearInterval(k.current),k.current=null);},[]),Q=Oe__namespace.useCallback(()=>{S&&y>1&&(k.current=setInterval(()=>{G.current();},A));},[S,y,A]),E=Oe__namespace.useCallback(C=>{if(!s)return;T(true);let F="touches"in C&&C.touches&&C.touches.length>0?C.touches[0].clientX:"clientX"in C?C.clientX:0,O="touches"in C&&C.touches&&C.touches.length>0?C.touches[0].clientY:"clientY"in C?C.clientY:0;P.current={x:F,y:O};},[s]),M=Oe__namespace.useCallback(C=>{if(!N||!P.current)return;let F="touches"in C&&C.touches&&C.touches.length>0?C.touches[0].clientX:"clientX"in C?C.clientX:0,O="touches"in C&&C.touches&&C.touches.length>0?C.touches[0].clientY:"clientY"in C?C.clientY:0,K=F-P.current.x,te=O-P.current.y,de=50;o==="horizontal"&&Math.abs(K)>de?(K>0?H():R(),T(false),P.current=null):o==="vertical"&&Math.abs(te)>de&&(te>0?H():R(),T(false),P.current=null);},[N,o,R,H]),W=Oe__namespace.useCallback(()=>{T(false),P.current=null;},[]),I={currentPage:b,totalPages:y,orientation:o,loop:n,spacing:c,slidesPerView:l,goToPage:L,goToNext:R,goToPrev:H,canGoNext:Y,canGoPrev:U,isAutoplayActive:S,toggleAutoplay:q,itemsRef:x,isDragging:N,allowMouseDrag:s,handleDragStart:E,handleDragMove:M,handleDragEnd:W};return jsxRuntime.jsx(Vf.Provider,{value:I,children:jsxRuntime.jsx("div",{...p,className:tailwindMerge.twMerge("relative w-full",o==="vertical"?"h-full":"",d),onMouseEnter:j,onMouseLeave:Q,children:m})})}function Of({className:e,children:t,...r}){let{itemsRef:o,orientation:n,spacing:a,isDragging:i,allowMouseDrag:s,handleDragStart:c,handleDragMove:l,handleDragEnd:u}=Oo();return jsxRuntime.jsx("div",{ref:o,...r,className:tailwindMerge.twMerge("flex overflow-x-auto overflow-y-hidden snap-x snap-mandatory scrollbar-hide scroll-smooth",n==="vertical"&&"flex-col overflow-y-auto overflow-x-hidden snap-y",s&&i&&"cursor-grabbing select-none",s&&!i&&"cursor-grab",e),style:{gap:a,"--carousel-spacing":a,...r.style},onMouseDown:c,onMouseMove:l,onMouseUp:u,onMouseLeave:u,onTouchStart:c,onTouchMove:l,onTouchEnd:u,children:t})}function Hf({index:e,className:t,children:r,...o}){let{orientation:n,slidesPerView:a}=Oo();return jsxRuntime.jsx("div",{...o,"data-index":e,className:tailwindMerge.twMerge("shrink-0 snap-start",n==="horizontal"?"h-full":"w-full",t),style:{width:n==="horizontal"?`calc((100% - (${a-1} * var(--carousel-spacing, 1rem))) / ${a})`:void 0,height:n==="vertical"?`calc((100% - (${a-1} * var(--carousel-spacing, 1rem))) / ${a})`:void 0,...o.style},children:r})}function Wf({className:e,children:t,...r}){return jsxRuntime.jsx("div",{...r,className:tailwindMerge.twMerge("flex items-center justify-center gap-4 mt-4",e),children:t})}function Gf({className:e,children:t,...r}){let{goToPrev:o,canGoPrev:n}=Oo();return jsxRuntime.jsx("button",{type:"button",...r,onClick:a=>{o(),r.onClick?.(a);},disabled:!n||r.disabled,"aria-label":"Previous slide",className:tailwindMerge.twMerge("inline-flex items-center justify-center rounded-md","h-10 w-10","bg-background-input border border-border-input","text-text-primary hover:bg-background-muted","transition-colors duration-200","disabled:opacity-40 disabled:cursor-not-allowed","focus-visible:outline focus-visible:outline-2 focus-visible:outline-action-default",e),children:t||jsxRuntime.jsx(B,{name:"CaretLeft",size:"sm"})})}function Uf({className:e,children:t,...r}){let{goToNext:o,canGoNext:n}=Oo();return jsxRuntime.jsx("button",{type:"button",...r,onClick:a=>{o(),r.onClick?.(a);},disabled:!n||r.disabled,"aria-label":"Next slide",className:tailwindMerge.twMerge("inline-flex items-center justify-center rounded-md","h-10 w-10","bg-background-input border border-border-input","text-text-primary hover:bg-background-muted","transition-colors duration-200","disabled:opacity-40 disabled:cursor-not-allowed","focus-visible:outline focus-visible:outline-2 focus-visible:outline-action-default",e),children:t||jsxRuntime.jsx(B,{name:"CaretRight",size:"sm"})})}function Gd({index:e,className:t,children:r,...o}){let{currentPage:n,goToPage:a}=Oo(),i=n===e;return jsxRuntime.jsx("button",{type:"button",...o,onClick:s=>{a(e),o.onClick?.(s);},"aria-label":`Go to slide ${e+1}`,"aria-current":i,className:tailwindMerge.twMerge("h-2 rounded-full transition-all duration-200",i?"w-6 bg-action-brand":"w-2 bg-border-muted hover:bg-border-input","focus-visible:outline focus-visible:outline-2 focus-visible:outline-action-default",t),children:r})}function Kf({className:e,...t}){let{totalPages:r}=Oo();return jsxRuntime.jsx("div",{...t,className:tailwindMerge.twMerge("flex items-center gap-2",e),role:"group","aria-label":"Carousel indicators",children:Array.from({length:r},(o,n)=>jsxRuntime.jsx(Gd,{index:n},n))})}function Yf({className:e,children:t,...r}){let{isAutoplayActive:o,toggleAutoplay:n}=Oo();return jsxRuntime.jsx("button",{type:"button",...r,onClick:a=>{n(),r.onClick?.(a);},"aria-label":o?"Pause autoplay":"Start autoplay",className:tailwindMerge.twMerge("inline-flex items-center justify-center rounded-md","h-10 w-10","bg-background-input border border-border-input","text-text-primary hover:bg-background-muted","transition-colors duration-200","focus-visible:outline focus-visible:outline-2 focus-visible:outline-action-default",e),children:t||jsxRuntime.jsx(B,{name:o?"Pause":"Play",size:"sm"})})}function Jf({className:e,...t}){let{currentPage:r,totalPages:o}=Oo();return jsxRuntime.jsxs("div",{...t,className:tailwindMerge.twMerge("text-sm text-text-secondary tabular-nums",e),"aria-live":"polite","aria-atomic":"true",children:[r+1," / ",o]})}var kw="focus:ring-action-primary",Tw="bg-action-primary border-action-primary text-[color:var(--color-action-primary-text)] hover:bg-action-primary-hover hover:border-action-primary-hover";function Ud(e){return jsxRuntime.jsxs(reactAriaComponents.CheckboxGroup,{...e,className:ke(e.className,"flex flex-col gap-2"),children:[jsxRuntime.jsx(ze,{children:e.label}),e.children,e.description&&jsxRuntime.jsx(Te,{children:e.description}),jsxRuntime.jsx(be,{children:typeof e.errorMessage=="function"?void 0:e.errorMessage})]})}function Pw({isDisabled:e}){return `relative flex gap-2 items-center group text-sm transition ${e?"text-text-disabled":"text-text-secondary"}`}function Rw({isSelected:e,isInvalid:t,isDisabled:r,isIndeterminate:o}){let n="w-5 h-5 flex-shrink-0 rounded-[var(--control-border-radius)] flex items-center justify-center border-2 transition ring-offset-2 focus:ring-2",a=kw,i="";return r?i="border-border-muted bg-background-muted":t?i="border-feedback-error-border bg-feedback-error-background":e||o?i=Tw:i="bg-background-input border-border-input hover:border-border-focus",`${n} ${a} ${i}`}var Xf="w-4 h-4 text-current group-disabled:text-text-disabled";function Cn(e){let{children:t,variant:r,...o}=e;return jsxRuntime.jsx(reactAriaComponents.Checkbox,{...o,className:reactAriaComponents.composeRenderProps(e.className,(n,a)=>`${Pw(a)} ${n||""}`),children:n=>{let{isSelected:a,isIndeterminate:i,...s}=n,c=jsxRuntime.jsx("div",{className:Rw({isSelected:a,isIndeterminate:i,...s}),children:i?jsxRuntime.jsx(lucideReact.Minus,{"aria-hidden":true,className:Xf}):a?jsxRuntime.jsx(lucideReact.Check,{"aria-hidden":true,className:Xf}):null});return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[c,typeof t=="function"?t(n):t]})}})}var Ew={primary:"bg-action-primary/10 text-action-primary border border-action-primary/20 hover:bg-action-primary/15",secondary:"bg-action-secondary text-[color:var(--color-action-secondary-text)] border border-border-muted hover:bg-action-secondary-hover",info:"bg-feedback-info-background text-feedback-info-text border border-feedback-info-border hover:bg-feedback-info-background/80"};function qf(e){return !e||e==="default"?"secondary":e==="brand"?"primary":e}var Lw={xs:"px-1.5 py-[2px] gap-0.5",sm:"px-2 py-1 gap-1",md:"px-3 py-1.5 gap-1.5",lg:"px-3 py-2 gap-2",xl:"px-4 py-2.5 gap-2"},Aw="opacity-75 cursor-not-allowed pointer-events-none";function Qf(e){let{variant:t,size:r,isDisabled:o,isClickable:n,className:a}=e,i=r==="xs"?"text-xs":Ge[r].text;return tailwindMerge.twMerge("inline-flex items-center justify-center rounded-full font-medium transition-colors","whitespace-nowrap select-none",Lw[r],i,Ew[t],n&&!o&&"cursor-pointer",o&&Aw,a)}function $r({children:e,onRemove:t,removeLabel:r="Remove",size:o="md",variant:n="secondary",isRemovable:a=true,isDisabled:i=false,className:s,onClick:c}){let l=!!c&&!i,u=a&&t&&!i,d=h=>{h.stopPropagation(),h.preventDefault(),t&&!i&&t();},m=()=>{c&&!i&&c();},p=o==="xs"?10:o==="sm"?12:o==="md"?14:16,f=jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("span",{className:"truncate",children:e}),u?l?jsxRuntime.jsx("span",{onClick:d,onKeyDown:h=>{(h.key==="Enter"||h.key===" ")&&(h.preventDefault(),d(h));},role:"button",tabIndex:0,className:"flex-shrink-0 rounded-full p-0.5 hover:bg-text-primary/10 transition-colors cursor-pointer","aria-label":r,title:r,children:jsxRuntime.jsx(B,{name:"X",size:p,className:"text-current opacity-70 hover:opacity-100"})}):jsxRuntime.jsx("button",{type:"button",onClick:d,className:"flex-shrink-0 rounded-full p-0.5 hover:bg-text-primary/10 transition-colors cursor-pointer","aria-label":r,title:r,tabIndex:-1,children:jsxRuntime.jsx(B,{name:"X",size:p,className:"text-current opacity-70 hover:opacity-100"})}):null]});return l?jsxRuntime.jsx("button",{type:"button",onClick:m,className:Qf({variant:qf(n),size:o,isDisabled:i,isClickable:l,className:s}),disabled:i,children:f}):jsxRuntime.jsx("span",{className:Qf({variant:qf(n),size:o,isDisabled:i,isClickable:l,className:s}),children:f})}function $f({label:e,description:t,errorMessage:r,size:o="md",tooltip:n,isRequired:a=false,isDisabled:i=false,isInvalid:s=false,validationResult:c,placeholder:l="Add items...",selectedItems:u=[],onItemsChange:d,staticItems:m,fetchSuggestions:p,chipVariant:g="secondary",showErrors:f=true,className:h}){let[b,x]=Oe.useState(""),[y,v]=Oe.useState([]),[S,w]=Oe.useState(false),[N,T]=Oe.useState(false),[k,P]=Oe.useState(-1),A=Bo(b,300),D=Oe.useRef(null),L=Oe.useRef(null),{isFocused:R,handleFocus:H,handleBlur:G}=Tr(),Y=Oe.useId(),U=Oe.useCallback(I=>{if(!d||!I.trim())return;let C=I.trim();if(u.includes(C)){x(""),T(false),v([]),P(-1);return}d([...u,C]),x(""),T(false),v([]),P(-1),D.current?.focus();},[u,d]),q=Oe.useCallback(I=>{d&&d(u.filter(C=>C!==I));},[u,d]);Oe.useEffect(()=>{if(!p)return;let I=true;return (async()=>{let F=A.trim();if(!F){I&&(w(false),v([]),T(false));return}w(true);try{let O=await p(F);if(!I)return;v(O),T(!0);}catch(O){if(!I)return;console.error("Error fetching suggestions:",O),v([]),T(false);}finally{I&&w(false);}})(),()=>{I=false;}},[A,p]),Oe.useEffect(()=>{if(p||!m)return;if(!A.trim()){v([]),T(false);return}let I=m.filter(C=>C.name.toLowerCase().includes(A.toLowerCase())).map(C=>C.id);v(I),T(I.length>0||A.trim().length>0);},[A,m,p]);let j=Oe.useMemo(()=>{let I=y.filter(C=>!u.includes(C));return b.trim()&&!I.includes(b.trim())&&!u.includes(b.trim())?[...I,`Create tag: "${b.trim()}"`]:I},[y,b,u]),Q=Oe.useCallback(I=>{x(I.target.value),P(-1),I.target.value&&T(true);},[]),E=Oe.useCallback(I=>{i||(I.startsWith("Create tag:")?U(b):U(I));},[U,b,i]),M=Oe.useCallback(I=>{if(!i)switch(I.key){case "Enter":case ",":if(I.preventDefault(),k>=0&&k<j.length){let C=j[k];C.startsWith("Create tag:")?U(b):U(C);}else b.trim()&&U(b.trim());break;case "Backspace":!b&&u.length>0&&(I.preventDefault(),q(u[u.length-1]));break;case "ArrowDown":I.preventDefault(),N&&P(C=>C<j.length-1?C+1:C);break;case "ArrowUp":I.preventDefault(),N&&P(C=>C>0?C-1:-1);break;case "Escape":T(false),P(-1);break}},[i,b,u,j,k,N,U,q]);Oe.useEffect(()=>{let I=C=>{L.current&&C.target instanceof Node&&!L.current.contains(C.target)&&T(false);};return document.addEventListener("mousedown",I),()=>document.removeEventListener("mousedown",I)},[]);let W=()=>tailwindMerge.twMerge("flex items-center gap-1.5 rounded-md overflow-x-auto overflow-y-hidden","[&::-webkit-scrollbar]:hidden [-ms-overflow-style:none] [scrollbar-width:none]",Vo({isInvalid:s,isDisabled:i,isFocused:R}),"bg-background-input",o==="sm"&&"px-2 py-1 h-[32px]",o==="md"&&"px-2.5 py-1.5 h-[40px]",o==="lg"&&"px-3 py-2 h-[44px]",o==="xl"&&"px-3.5 py-2.5 h-[48px]",i&&"opacity-50 cursor-not-allowed bg-background-muted");return jsxRuntime.jsxs("div",{ref:L,className:tailwindMerge.twMerge("relative flex flex-col gap-1",h),children:[e&&jsxRuntime.jsx(ze,{size:o,tooltip:n,isRequired:a,children:e}),jsxRuntime.jsx(ht,{children:jsxRuntime.jsxs("div",{className:W(),onClick:()=>!i&&D.current?.focus(),children:[u.map(I=>jsxRuntime.jsx($r,{variant:g,size:"xs",onRemove:()=>q(I),isDisabled:i,className:"shrink-0 max-h-full",children:I},I)),jsxRuntime.jsx("input",{ref:D,type:"text",role:"combobox","aria-expanded":N,"aria-haspopup":"listbox","aria-controls":Y,"aria-autocomplete":"list",value:b,onChange:Q,onKeyDown:M,onFocus:I=>H(I),onBlur:I=>G(I),placeholder:u.length===0?l:"",disabled:i,className:"flex-1 min-w-[120px] h-full !border-0 !outline-none !ring-0 bg-transparent text-text-primary text-sm placeholder:text-text-disabled disabled:cursor-not-allowed focus:!ring-0 focus:!outline-none focus:!border-0 focus-visible:!ring-0 focus-visible:!outline-none focus-visible:!border-0",style:{boxShadow:"none",WebkitAppearance:"none",appearance:"none",border:"none",outline:"none"}})]})}),N&&(b||j.length>0)&&jsxRuntime.jsx("div",{id:Y,role:"listbox",className:tailwindMerge.twMerge("absolute z-50 mt-1 rounded-lg border border-border-default","max-h-60 overflow-auto bg-background-surface shadow-lg","left-0 right-0 top-full"),children:S?jsxRuntime.jsx("div",{className:"px-3 py-2 text-sm text-text-secondary",children:"Loading..."}):j.length>0?j.map((I,C)=>jsxRuntime.jsx("div",{role:"option","aria-selected":C===k,className:tailwindMerge.twMerge("cursor-pointer px-3 py-2 text-sm transition-colors","hover:bg-background-hover",C===k&&"bg-background-selected",I.startsWith("Create tag:")&&"italic text-text-secondary"),onClick:()=>E(I),children:I},I)):b&&jsxRuntime.jsx("div",{className:"px-3 py-2 text-sm text-text-secondary",children:"No suggestions found"})}),t&&jsxRuntime.jsx(Te,{size:o,className:"mt-1",children:t}),f&&typeof r=="string"&&jsxRuntime.jsx(be,{size:o,className:"text-feedback-error-text mt-1",children:r}),f&&typeof r=="function"&&c&&jsxRuntime.jsx(be,{size:o,className:"text-feedback-error-text mt-1",children:r(c)})]})}var Uw={json:()=>import('ace-builds/src-noconflict/mode-json'),javascript:()=>import('ace-builds/src-noconflict/mode-javascript'),typescript:()=>import('ace-builds/src-noconflict/mode-typescript'),html:()=>import('ace-builds/src-noconflict/mode-html'),css:()=>import('ace-builds/src-noconflict/mode-css'),markdown:()=>import('ace-builds/src-noconflict/mode-markdown'),yaml:()=>import('ace-builds/src-noconflict/mode-yaml'),xml:()=>import('ace-builds/src-noconflict/mode-xml'),python:()=>import('ace-builds/src-noconflict/mode-python'),sql:()=>import('ace-builds/src-noconflict/mode-sql')},Kw={github:()=>import('ace-builds/src-noconflict/theme-github'),github_dark:()=>import('ace-builds/src-noconflict/theme-github_dark')},Yw={"ext-language-tools":()=>import('ace-builds/src-noconflict/ext-language_tools')},ci=new Set;async function Yd(e,t){ci.has(e)||(await t(),ci.add(e));}async function Jw(e,t,r){await Promise.all([Yd(`language:${e}`,Uw[e]),Yd(`theme:${t}`,Kw[t]),r?Yd("extension:language-tools",Yw["ext-language-tools"]):void 0]);}function tg(e,t,r){let o=ci.has(`language:${e}`)&&ci.has(`theme:${t}`);return r?o&&ci.has("extension:language-tools"):o}function rg({value:e,readOnly:t=false,onChange:r,language:o="json",theme:n="github_dark",height:a,width:i="100%",className:s,lineHeight:c=19,minLines:l=3,maxLines:u=50,showLineNumbers:d=true,showGutter:m=true,fontSize:p=14,wrapEnabled:g=false}){let f=Oe.useRef(null),[h,b]=Oe.useState(()=>tg(o,n,!t)),x=Oe.useMemo(()=>{if(a)return a;let y=(e.match(/\n/g)||[]).length+1;return `${Math.max(l,Math.min(y,u))*c+10}px`},[e,a,c,l,u]);return Oe.useEffect(()=>{let y=false,v=!t;return tg(o,n,v)?(b(true),()=>{y=true;}):(b(false),Jw(o,n,v).then(()=>{y||b(true);}).catch(S=>{y||b(true),console.error("Failed to load Ace editor resources",S);}),()=>{y=true;})},[o,t,n]),Oe.useEffect(()=>{h&&f.current?.editor&&f.current.editor.resize();},[x,h]),jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("overflow-hidden rounded-md border border-border-input",s),style:{width:i,height:x},children:h?jsxRuntime.jsx(Ww__default.default,{ref:f,mode:o,theme:n,value:e,onChange:r,readOnly:t,width:"100%",height:"100%",fontSize:p,showPrintMargin:false,showGutter:m,highlightActiveLine:!t,setOptions:{useWorker:true,showLineNumbers:d,tabSize:2,enableBasicAutocompletion:!t,enableLiveAutocompletion:!t,enableSnippets:!t,showFoldWidgets:true,wrap:g},editorProps:{$blockScrolling:true}}):jsxRuntime.jsx("div",{className:"flex h-full w-full items-center justify-center bg-surface-muted text-foreground-muted",children:"Loading editor\u2026"})})}var ng=Oe__namespace.createContext({variant:"contained",density:"comfortable",showDividers:true}),ag=Oe__namespace.createContext(null),Zw={contained:"rounded-lg border border-border-default bg-background-surface overflow-hidden",bordered:"rounded-lg border border-border-default bg-background-surface",plain:"bg-transparent"},og={true:"divide-y divide-border-default",false:"gap-3"},_w={comfortable:"px-5 py-3",compact:"px-4 py-2.5"},$w={comfortable:"px-5 pt-0",compact:"px-4 pt-0"},eN={comfortable:"h-4 w-4",compact:"h-3.5 w-3.5"};function qd(){return Oe__namespace.useContext(ng)}function tN(e){let t=Oe__namespace.useContext(ag);if(!t)throw new Error(`${e} must be used within a <CollapseItem>`);return t}function rN({variant:e,showDividers:t,className:r}){let o="group/collapse-item w-full transition-colors",n={contained:"bg-background-surface",bordered:"bg-background-surface",plain:"bg-transparent"},a=t?"":"rounded-lg border border-border-default bg-background-surface overflow-hidden";return tailwindMerge.twMerge(o,n[e],a,r)}function oN({isDisabled:e,isPressed:t,density:r,variant:o,showDividers:n,className:a}){let i="group/collapse-header flex w-full items-start gap-4 text-left transition-colors duration-150",s=e?"cursor-not-allowed text-text-disabled":"cursor-pointer text-text-primary",c=t&&!e?"bg-background-hover":"",l=_w[r];return tailwindMerge.twMerge(i,Je(),l,s,c,o==="plain"&&n?"px-0":"",a)}function nN({density:e,showDividers:t,className:r}){let o="text-text-primary",n=$w[e];return tailwindMerge.twMerge(o,n,t?"":"rounded-b-lg",r)}function ya({variant:e="contained",density:t="comfortable",showDividers:r=true,className:o,...n}){let a=Oe__namespace.useMemo(()=>({variant:e,density:t,showDividers:r}),[e,t,r]),i=tailwindMerge.twMerge("flex w-full flex-col",Zw[e],r?og.true:og.false,e==="plain"&&r?"border-y border-border-default/60":"");return jsxRuntime.jsx(ng.Provider,{value:a,children:jsxRuntime.jsx(reactAriaComponents.DisclosureGroup,{...n,className:ke(o,i)})})}function Wo({className:e,children:t,...r}){let{variant:o,showDividers:n}=qd();return jsxRuntime.jsx(reactAriaComponents.Disclosure,{...r,className:reactAriaComponents.composeRenderProps(e,a=>rN({variant:o,showDividers:n,className:a})),children:a=>jsxRuntime.jsx(ag.Provider,{value:a,children:t})})}Wo.displayName="CollapseItem";function Go({title:e,description:t,startContent:r,endContent:o,indicator:n,indicatorPosition:a="end",showIndicator:i=true,keepIndicatorSpace:s=false,children:c,className:l,...u}){let d=tN("CollapseHeader"),{density:m,variant:p,showDividers:g}=qd(),f=eN[m];return jsxRuntime.jsx(reactAriaComponents.Button,{...u,slot:"trigger","data-expanded":d.isExpanded?"true":void 0,className:reactAriaComponents.composeRenderProps(l,(h,b)=>oN({isDisabled:b.isDisabled??false,isPressed:b.isPressed??false,density:m,variant:p,showDividers:g,className:h})),children:h=>{let b=h.isDisabled??false,x=i?typeof n=="function"?n({isExpanded:d.isExpanded,isDisabled:b}):n??jsxRuntime.jsx(B,{name:"CaretDown",size:m==="compact"?"xs":"sm",weight:"bold","aria-hidden":"true",className:tailwindMerge.twMerge("text-text-secondary transition-transform duration-200",d.isExpanded?"rotate-180":"rotate-0")}):null,y=x?jsxRuntime.jsx("span",{className:tailwindMerge.twMerge("flex flex-shrink-0 items-center justify-center text-text-secondary",f),"aria-hidden":"true",children:x}):s?jsxRuntime.jsx("span",{className:tailwindMerge.twMerge("flex flex-shrink-0 items-center justify-center",f),"aria-hidden":"true"}):null;return jsxRuntime.jsxs("div",{className:"flex w-full items-center gap-4",children:[a==="start"&&y,r&&jsxRuntime.jsx("div",{className:"flex flex-shrink-0 items-center text-text-secondary",children:r}),jsxRuntime.jsxs("div",{className:"flex min-w-0 flex-1 items-start gap-3",children:[c??jsxRuntime.jsxs("div",{className:"flex min-w-0 flex-1 flex-col gap-1 text-left",children:[e&&jsxRuntime.jsx("span",{className:"truncate font-medium text-text-primary",children:e}),t&&jsxRuntime.jsx("span",{className:"text-sm text-text-secondary",children:t})]}),o&&jsxRuntime.jsx("div",{className:"flex flex-shrink-0 items-center text-sm text-text-secondary",children:o})]}),a==="end"&&y]})}})}Go.displayName="CollapseHeader";function Uo({className:e,children:t,...r}){let{density:o,showDividers:n}=qd();return jsxRuntime.jsx(reactAriaComponents.DisclosurePanel,{...r,className:reactAriaComponents.composeRenderProps(e,a=>nN({density:o,showDividers:n,className:a})),children:t})}Uo.displayName="CollapseContent";function va(e){if(!e)return false;let t=e.startsWith("#")?e.slice(1):e;return /^[0-9A-Fa-f]{3}$|^[0-9A-Fa-f]{6}$/.test(t)}function Zd(e){if(!e)return "";let t=e.startsWith("#")?e.slice(1):e;return t.length===3&&(t=t.split("").map(r=>r+r).join("")),`#${t.toUpperCase()}`}function lN({label:e,description:t,errorMessage:r,size:o="md",tooltip:n,isRequired:a,transparent:i,className:s,validationResult:c,value:l,defaultValue:u,onChange:d,placeholder:m="#000000",showColorSwatch:p=true,reserveErrorSpace:g=true,...f}){let[h,b]=Oe.useState(u||""),[x,y]=Oe.useState(l||u||""),[v,S]=Oe.useState(false),[w,N]=Oe.useState(null),{isFocused:T,handleFocus:k,handleBlur:P}=Tr(),A=l!==void 0?l:h;Oe.useEffect(()=>{l!==void 0&&y(l);},[l]);let D=A?!va(A):false,L=Oe.useCallback(G=>{if(y(G),va(G)){let Y=Zd(G);d?d(Y):b(Y);}else G===""&&(d?d(""):b(""));},[d]),R=Oe.useCallback(G=>{let Y=Zd(G);y(Y),d?d(Y):b(Y);},[d]),H=Oe.useCallback(G=>{if(va(x)){let Y=Zd(x);y(Y),d&&Y!==A?d(Y):!d&&Y!==h&&b(Y);}P(G,f.onBlur);},[x,A,h,d,P,f.onBlur]);return jsxRuntime.jsx(reactAriaComponents.TextField,{...f,isRequired:a,className:ke(s,"group flex flex-col"),children:({isDisabled:G})=>jsxRuntime.jsxs("div",{className:"flex flex-col",children:[e&&jsxRuntime.jsx(ze,{size:o,tooltip:n,isRequired:a,children:e}),jsxRuntime.jsx(ht,{children:jsxRuntime.jsxs("div",{className:"flex gap-2",children:[jsxRuntime.jsxs("div",{className:"flex-1 relative",children:[jsxRuntime.jsx(ks,{size:o,disabled:G,type:"text",value:x,placeholder:m,onFocus:Y=>k(Y,f.onFocus),onBlur:H,onChange:Y=>L(Y.target.value),className:tailwindMerge.twMerge(Vt({isInvalid:D,isDisabled:G,isFocused:T,size:o,transparent:i}),p?"pr-12":"pr-3","pl-3")}),p&&jsxRuntime.jsx("div",{className:"absolute right-3 top-1/2 -translate-y-1/2 pointer-events-none",style:{width:Ge[o].height},children:jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("w-6 h-6 rounded border shadow-sm",va(A)?"border-border-default":"border-border-default bg-background-muted"),style:va(A)?{backgroundColor:A}:void 0,"aria-hidden":"true",children:!va(A)&&jsxRuntime.jsx("div",{className:"w-full h-full flex items-center justify-center",children:jsxRuntime.jsx("div",{className:"w-3 h-3 rounded-full border-2 border-border-muted"})})})})]}),jsxRuntime.jsx("div",{ref:N,children:jsxRuntime.jsx(Z,{variant:"secondary",size:o,icon:"Palette",onPress:()=>S(!v),isDisabled:G,className:"flex-shrink-0",children:"Pick"})})]})}),g?jsxRuntime.jsx("div",{className:"mt-1 min-h-[20px]",children:typeof r=="string"?jsxRuntime.jsx(be,{size:o,children:r}):typeof r=="function"&&c?jsxRuntime.jsx(be,{size:o,children:r(c)}):t?jsxRuntime.jsx(Te,{size:o,children:t}):null}):jsxRuntime.jsx(jsxRuntime.Fragment,{children:typeof r=="string"?jsxRuntime.jsx(be,{size:o,className:"mt-1",children:r}):typeof r=="function"&&c?jsxRuntime.jsx(be,{size:o,className:"mt-1",children:r(c)}):t?jsxRuntime.jsx(Te,{size:o,className:"mt-1",children:t}):null}),v&&w&&jsxRuntime.jsx(st,{triggerRef:{current:w},isOpen:v,onOpenChange:S,placement:"bottom end",className:"bg-background-input shadow-xl border border-border-input/20 backdrop-blur-sm rounded-lg p-4",children:jsxRuntime.jsxs("div",{className:"flex flex-col gap-4",children:[jsxRuntime.jsx(reactColorful.HexColorPicker,{color:A||"#000000",onChange:R,style:{width:"200px",height:"200px"}}),jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[jsxRuntime.jsx("div",{className:"w-10 h-10 rounded border border-border-default shadow-sm flex-shrink-0",style:{backgroundColor:A||"#000000"}}),jsxRuntime.jsx("div",{className:"flex-1 text-text-primary text-[length:var(--control-text-sm)] font-mono",children:A||"#000000"})]})]})})]})})}function lg({isOpen:e,onClose:t,onConfirm:r,title:o,message:n,confirmLabel:a="Confirm",cancelLabel:i="Cancel",confirmVariant:s,isDestructive:c=false,isLoading:l=false,maxWidth:u="500px",minWidth:d="400px"}){return jsxRuntime.jsx(Nr,{isOpen:e,onClose:t,title:o,maxWidth:u,minWidth:d,primaryAction:{label:a,onPress:()=>{r();},variant:s??(c?"destructive":"primary"),isLoading:l},secondaryAction:{label:i,onPress:t,variant:"secondary",isDisabled:l},children:jsxRuntime.jsx("div",{className:"text-text-primary",children:n})})}function cg({isConnected:e,connectedAt:t,disconnectedAt:r,showTimestamp:o=false,isLoading:n,size:a="sm",shape:i="pill",...s}){if(n)return jsxRuntime.jsx(J,{className:"inline-flex h-6 w-24"});let c=e?"Connected":"Disconnected",l=e?"success":"neutral",u=null;if(o){if(e&&t)u=is(t);else if(!e&&r){let d=is(r);u=d?`Offline ${d}`:null;}}return jsxRuntime.jsxs("div",{className:"inline-flex flex-col gap-1",children:[jsxRuntime.jsx(nt,{variant:l,size:a,shape:i,dot:e,dotPulse:e,...s,children:c}),u&&jsxRuntime.jsx("span",{className:"text-xs text-text-secondary",children:u})]})}function dg({firstName:e,lastName:t,email:r,phone:o,avatarUrl:n,href:a,LinkComponent:i,variant:s="outlined",layout:c="horizontal",showEmail:l=true,showPhone:u=false,isLoading:d=false,className:m,contentClassName:p,piiEntity:g}){let f=`${e} ${t}`.trim(),h=({children:x,className:y})=>a?i?jsxRuntime.jsx(i,{href:a,className:y,children:x}):jsxRuntime.jsx(Ze,{href:a,variant:"unstyled",className:tailwindMerge.twMerge("hover:underline",y),asButton:false,children:x}):jsxRuntime.jsx("span",{className:y,children:x}),b=c==="vertical";return d?jsxRuntime.jsx(Ue,{variant:s,className:tailwindMerge.twMerge("flex flex-col",m),children:jsxRuntime.jsx(Ue.Content,{className:"flex items-center flex-1",children:jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("w-full",b?"flex flex-col items-center gap-4":"flex items-center gap-4"),children:[jsxRuntime.jsx(J,{width:56,height:56,className:"rounded flex-shrink-0"}),jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge(b?"w-full text-center":"flex-1","space-y-2"),children:[jsxRuntime.jsx(J,{width:"70%",height:20,className:tailwindMerge.twMerge(b&&"mx-auto")}),jsxRuntime.jsx(J,{width:"100%",height:16,className:tailwindMerge.twMerge(b&&"mx-auto")})]})]})})}):jsxRuntime.jsx(Ue,{variant:s,className:tailwindMerge.twMerge("group/card flex flex-col",m),children:jsxRuntime.jsx(Ue.Content,{className:tailwindMerge.twMerge("flex items-center flex-1",a&&"cursor-pointer",p),children:jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("relative w-full",b?"flex flex-col items-center gap-4 text-center":"flex items-center gap-4"),children:[jsxRuntime.jsx(bo,{firstName:e,lastName:t,src:n,size:"xl",variant:"user",shape:"square",className:"flex-shrink-0",piiEntity:g}),jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge(b?"w-full":"flex-1 min-w-0"),children:[a&&jsxRuntime.jsx(h,{className:"after:absolute after:inset-0",children:jsxRuntime.jsx("span",{className:"sr-only",children:f})}),jsxRuntime.jsx("span",{className:"text-lg font-semibold leading-tight text-text-primary block mb-1.5 group-hover/card:text-text-brand transition-colors","data-pii-type":g?"full-name":void 0,"data-pii-entity":g,children:f}),jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("space-y-0.5",b&&"flex flex-col items-center"),children:[l&&r&&jsxRuntime.jsxs("div",{className:"flex items-center gap-2.5 text-text-primary",children:[jsxRuntime.jsx(B,{name:"Envelope",size:16,className:"text-text-secondary flex-shrink-0"}),jsxRuntime.jsx(Ze,{href:`mailto:${r}`,variant:"unstyled",className:tailwindMerge.twMerge("text-sm leading-relaxed text-text-primary relative z-20",b?"":"truncate"),"data-pii-type":g?"email":void 0,"data-pii-entity":g,children:r})]}),u&&o&&jsxRuntime.jsxs("div",{className:"flex items-center gap-2.5 text-text-primary",children:[jsxRuntime.jsx(B,{name:"Phone",size:16,className:"text-text-secondary flex-shrink-0"}),jsxRuntime.jsx(Ze,{href:`tel:${o}`,variant:"unstyled",className:tailwindMerge.twMerge("text-sm leading-relaxed text-text-primary relative z-20",b?"":"truncate"),"data-pii-type":g?"phone":void 0,"data-pii-entity":g,children:ca(o)})]})]})]})]})})})}function Vs({firstName:e,lastName:t,email:r,avatarUrl:o,layout:n="stacked",size:a="md",href:i,LinkComponent:s,linkVariant:c="unstyled",emphasis:l="normal",showEmail:u=false,badge:d,avatarShape:m,isLoading:p=false,className:g,piiEntity:f}){let h=m??(n==="inline"?"circle":"square"),x={xs:{avatarSize:"xs",gap:"gap-1.5",textSize:"text-xs",secondaryTextSize:"text-xs",skeletonAvatar:24,skeletonText:80,skeletonSecondary:60},sm:{avatarSize:"sm",gap:"gap-2",textSize:"text-sm",secondaryTextSize:"text-xs",skeletonAvatar:32,skeletonText:96,skeletonSecondary:72},md:{avatarSize:"md",gap:"gap-3",textSize:"text-base",secondaryTextSize:"text-sm",skeletonAvatar:40,skeletonText:128,skeletonSecondary:96},lg:{avatarSize:"lg",gap:"gap-3",textSize:"text-lg",secondaryTextSize:"text-base",skeletonAvatar:48,skeletonText:160,skeletonSecondary:120}}[a],y=`${e} ${t}`.trim(),S={strong:"font-semibold text-text-primary",high:"font-semibold text-text-primary",normal:"text-text-primary",low:"text-text-secondary"}[l],w=({children:N,className:T})=>i?s?jsxRuntime.jsx(s,{href:i,className:T,children:N}):jsxRuntime.jsx(Ze,{href:i,variant:c,className:tailwindMerge.twMerge("hover:underline",T),asButton:false,children:N}):jsxRuntime.jsx("span",{className:T,children:N});return p?n==="inline"?jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("flex items-center",x.gap,g),children:[jsxRuntime.jsx(J,{width:x.skeletonAvatar,height:x.skeletonAvatar,className:"flex-shrink-0 rounded-full"}),jsxRuntime.jsx(J,{width:x.skeletonText,height:x.skeletonAvatar*.5})]}):jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("flex items-center",x.gap,g),children:[jsxRuntime.jsx(J,{width:x.skeletonAvatar,height:x.skeletonAvatar,className:"flex-shrink-0 rounded-full"}),jsxRuntime.jsxs("div",{className:"flex flex-col gap-1",children:[jsxRuntime.jsx(J,{width:x.skeletonText,height:16}),u&&jsxRuntime.jsx(J,{width:x.skeletonSecondary,height:12})]})]}):n==="inline"?jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("flex items-center",x.gap,g),children:[jsxRuntime.jsxs(w,{className:tailwindMerge.twMerge("flex items-center",x.gap),children:[jsxRuntime.jsx(bo,{firstName:e,lastName:t,src:o,size:x.avatarSize,variant:"user",shape:h,className:"flex-shrink-0",piiEntity:f}),jsxRuntime.jsx("span",{className:tailwindMerge.twMerge("leading-normal truncate hover:text-text-primary",S,x.textSize,i&&"hover:underline hover:decoration-1 hover:underline-offset-4"),"data-pii-type":f?"full-name":void 0,"data-pii-entity":f,children:y})]}),d]}):jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("flex items-center justify-start",x.gap,g),children:[jsxRuntime.jsx(bo,{firstName:e,lastName:t,src:o,size:x.avatarSize,variant:"user",shape:h,className:"flex-shrink-0",piiEntity:f}),jsxRuntime.jsxs("div",{className:"flex flex-col items-start min-w-0",children:[jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[jsxRuntime.jsx(w,{className:tailwindMerge.twMerge("leading-normal truncate hover:text-text-primary",S,x.textSize,i&&"hover:underline hover:decoration-1 hover:underline-offset-4"),children:jsxRuntime.jsx("span",{"data-pii-type":f?"full-name":void 0,"data-pii-entity":f,children:y})}),d]}),u&&r&&jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("text-text-secondary leading-normal truncate",x.secondaryTextSize),"data-pii-type":f?"email":void 0,"data-pii-entity":f,children:r})]})]})}var $d=Oe.createContext(null);function ug(e){let t=Oe.useContext($d),r=Oe.useRef(null),o=e??r,[n,a]=Oe.useState(()=>t||{current:"xl",isSm:true,isMd:true,isLg:true,isXl:true,is2Xl:false,isMobile:false,isDesktop:true});return Oe.useEffect(()=>{if(t){a(t);return}let i=o.current;if(!i||typeof ResizeObserver>"u")return;let s=()=>{let l=i.offsetWidth,u=l>=640,d=l>=768,m=l>=1024,p=l>=1280,g=l>=1536,f="base";g?f="2xl":p?f="xl":m?f="lg":d?f="md":u&&(f="sm"),a({current:f,isSm:u,isMd:d,isLg:m,isXl:p,is2Xl:g,isMobile:!d,isDesktop:d});};s();let c=new ResizeObserver(s);return c.observe(i),()=>c.disconnect()},[t,o]),n}function mg({children:e,className:t}){let r=Oe.useRef(null),[o,n]=Oe.useState({current:"base",isSm:false,isMd:false,isLg:false,isXl:false,is2Xl:false,isMobile:true,isDesktop:false});return Oe.useEffect(()=>{let a=r.current;if(!a||typeof ResizeObserver>"u")return;let i=()=>{let c=a.offsetWidth,l=c>=640,u=c>=768,d=c>=1024,m=c>=1280,p=c>=1536,g="base";p?g="2xl":m?g="xl":d?g="lg":u?g="md":l&&(g="sm"),n({current:g,isSm:l,isMd:u,isLg:d,isXl:m,is2Xl:p,isMobile:!u,isDesktop:u});};i();let s=new ResizeObserver(i);return s.observe(a),()=>s.disconnect()},[]),jsxRuntime.jsx($d.Provider,{value:o,children:jsxRuntime.jsx("div",{ref:r,className:t,style:{width:"100%"},children:e})})}var zs={duration:.5,ease:"easeInOut"},Pr=Oe.createContext(null),kn=()=>{let e=Oe.useContext(Pr);if(!e)throw new Error("useChartContext must be used within a ChartContextProvider");return e};function Os(e,t){if(t<=0||e.length<2)return e;let r=[e[0]];for(let o=1;o<e.length;o++)e[o].xValue.getTime()-e[o-1].xValue.getTime()>t&&r.push(null),r.push(e[o]);return r}var Yo=({data:e,color:t="var(--color-viz-default)",baseline:r,fillOpacity:o=.1,showLine:n=true,maxGapMs:a,animate:i=true})=>{let s=Oe.useId(),c=Oe.useId(),{xScale:l,yScale:u,animationSettings:d}=kn(),m=l.range(),p=u.range(),g=(v,S)=>typeof r=="function"?r(v,S):r??0,f=v=>v.chartYValue??v.yValue,h=a!=null?Os(e,a):e,b=i?void 0:"non-scaling-stroke",x={transformOrigin:`0 ${p[0]}px`,transformBox:"fill-box",isolation:"isolate"},y=jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[r===void 0?jsxRuntime.jsx(shape.AreaClosed,{data:h,x:v=>v?l(v.xValue):0,y:v=>v?u(f(v)):0,yScale:u,defined:v=>v!=null,fill:`url(#${s})`,curve:curve.curveLinear}):jsxRuntime.jsx(shape.Area,{data:h,x:v=>v?l(v.xValue):0,y0:(v,S)=>v?u(g(v,S)):0,y1:v=>v?u(f(v)):0,defined:v=>v!=null,fill:t,fillOpacity:o,curve:curve.curveLinear}),n?jsxRuntime.jsx(shape.LinePath,{data:h,x:v=>v?l(v.xValue):0,y:v=>v?u(f(v)):0,defined:v=>v!=null,stroke:t,strokeWidth:3,vectorEffect:b,curve:curve.curveLinear}):null]});return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsxs("defs",{children:[jsxRuntime.jsxs("linearGradient",{id:s,x1:"0%",y1:"0%",x2:"0%",y2:"100%",children:[jsxRuntime.jsx("stop",{offset:"50%",stopColor:t,stopOpacity:o}),jsxRuntime.jsx("stop",{offset:"100%",stopColor:t,stopOpacity:0})]}),i&&jsxRuntime.jsx("clipPath",{id:c,children:jsxRuntime.jsx("rect",{x:m[0],y:p[1],width:m[1]-m[0],height:p[0]-p[1]})})]}),i?jsxRuntime.jsx("g",{clipPath:`url(#${c})`,children:jsxRuntime.jsx(framerMotion.motion.g,{initial:{scaleY:0},animate:{scaleY:1},transition:{duration:d.duration,ease:d.ease},style:x,children:y})}):jsxRuntime.jsx("g",{style:x,children:y})]})};var Ws=({data:e,color:t="var(--color-viz-default)",opacity:r=1,categoryColors:o={}})=>{let{xScale:n,yScale:a,animationSettings:i}=kn(),s=Oe.useId(),c=n.range(),l=a.range(),u=[...e].sort((p,g)=>p.xValue.getTime()-g.xValue.getTime());if(u.length===0)return null;let d=u.length>1?u[1].xValue.getTime()-u[0].xValue.getTime():15*6e4,m=Math.abs(n(new Date(u[0].xValue.getTime()+d))-n(u[0].xValue));return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("defs",{children:jsxRuntime.jsx("clipPath",{id:s,children:jsxRuntime.jsx("rect",{x:c[0],y:l[1],width:c[1]-c[0],height:l[0]-l[1]})})}),jsxRuntime.jsx("g",{clipPath:`url(#${s})`,children:jsxRuntime.jsx(framerMotion.motion.g,{initial:{scaleY:0},animate:{scaleY:1},transition:{duration:i.duration,ease:i.ease},style:{transformOrigin:`0 ${a(0)}px`,isolation:"isolate"},children:u.map((p,g)=>{let f=n(p.xValue),h=p.chartYValue??p.yValue,b=p.baselineValue??0,x=a(h),y=a(b),v=Math.min(x,y),S=Math.abs(x-y),w=u[g+1],N=w?Math.abs(n(w.xValue)-f):m,T=p.category&&o[p.category]?o[p.category]:t;return jsxRuntime.jsx(shape.Bar,{x:f-N/2,y:v,width:N,height:S,fill:T,opacity:r,rx:1},p.xValue.getTime())})})})]})};function IN(e){return e>=1e9?"GW":e>=1e6?"MW":e>=1e3?"kW":"W"}function FN(e){return e>=1e3?"kA":e<1?"mA":"A"}function BN(e){return e>=1e3?"kV":e<1?"mV":"V"}function VN(e){return e>=1e6?"M\u03A9":e>=1e3?"k\u03A9":e<1?"m\u03A9":"\u03A9"}function Sa(e,t){if(typeof e!="object"||e===null)return e;switch(e.type){case "energy":{if(e.unit||e.autoScale===false)return e;let r=e.sourceUnit?Jc[e.sourceUnit]:1;return {...e,unit:Yc(t*r)}}case "power":return e.unit||e.autoScale===false?e:{...e,unit:IN(t)};case "current":return e.unit||e.autoScale===false?e:{...e,unit:FN(t)};case "voltage":return e.unit||e.autoScale===false?e:{...e,unit:BN(t)};case "resistance":return e.unit||e.autoScale===false?e:{...e,unit:VN(t)};default:return e}}var zN=e=>e.baselineValue??0,Ie={top:8,right:0,bottom:50,left:60};function Or(e={type:"number"}){let t=i=>{if(i==null)return "-";let s=Xr({value:i,formatter:e});if(s===null)return "-";if(typeof s=="string")return s;if(typeof s=="number")return s.toString();if(typeof s=="object"&&s!==null&&"props"in s){let c=u=>{if(u==null)return "";if(typeof u=="string")return u;if(typeof u=="number")return u.toString();if(typeof u=="object"&&"props"in u){let d=u.props;if(d?.children)return Array.isArray(d.children)?d.children.map(c).join(""):c(d.children)}return ""};return c(s)||i.toString()}return i.toString()},r=i=>{if(i==null)return "-";if(typeof e=="string"){let s=Xr({value:i,formatter:e});return s===null?"-":String(s)}if(typeof e=="object"&&e.type)switch(e.type){case "energy":case "power":case "voltage":case "current":case "resistance":case "temperature":case "distance":return t(i);case "currency":return t(i);default:return t(i)}return t(i)},o,n,a;return typeof e=="object"&&e.type&&e.type==="number"&&("min"in e&&(o=e.min),"max"in e&&(n=e.max)),{format:t,tickFormat:r,min:o,max:n,tickInterval:a}}var tu=(e,t)=>{let r=d3Array.extent(e,o=>o.xValue);return scale.scaleTime({range:[Ie.left,t-Ie.right],domain:r,nice:true})},ui=(e,t,r,o)=>{let n=Or(r);if(o)return scale.scaleLinear({range:[t-Ie.bottom,Ie.top],domain:o,nice:true});let a=d3Array.min(e,l=>Math.min(l.yValue,l.chartYValue??l.yValue,l.baselineValue??l.yValue))||0,i=d3Array.max(e,l=>Math.max(l.yValue,l.chartYValue??l.yValue,l.baselineValue??l.yValue))||0,s=n.min!==void 0?n.min:a>=0?0:a*1.1,c=n.max!==void 0?n.max:i<=0?0:i*1.1;return scale.scaleLinear({range:[t-Ie.bottom,Ie.top],domain:[s,c],nice:true})};function ON(e,t=12,r="system-ui"){if(typeof window>"u"||typeof document>"u")return e.length*(t*.6);let o=document.createElement("canvas"),n=null;try{n=o.getContext("2d");}catch{return e.length*(t*.6)}return n?(n.font=`${t}px ${r}`,n.measureText(e).width):e.length*(t*.6)}function wa(e,t=12,r="system-ui"){return e.length===0?0:Math.max(...e.map(o=>ON(o,t,r)))}function pi(e){return e instanceof Date&&!Number.isNaN(e.getTime())}function HN(e,t,r=12,o=false){if(!pi(t[0])||!pi(t[1]))return console.warn("ChartAxis: Invalid date in domain, skipping tick calculation"),[];let n=t[0].getTime(),a=t[1].getTime(),i=a-n;if(i===0||i<1e3)return [t[0]];let s=ad({start:t[0],end:t[1]},{compact:o}),l=[t[0],new Date((t[0].getTime()+t[1].getTime())/2),t[1]].map(x=>s(x)),u=wa(l,r),m=u+u,p=Math.floor(e/m),g=Math.max(2,Math.min(8,p));if(g<=2)return [t[0],t[1]];let f=[t[0]],h=i/36e5,b;h<=1?b=6e4:h<=6?b=5*6e4:h<=48?b=60*6e4:h<=168?b=360*6e4:b=1440*6e4;for(let x=1;x<g-1;x++){let y=x/(g-1),v=n+i*y,S=Math.round(v/b)*b,w=f[f.length-1].getTime(),N=S>w?S:w+b;if(N>=a)break;f.push(new Date(N));}return f.push(t[1]),f}var WN=({top:e,scale:t,width:r})=>{let o=t.domain(),n=[o[0],o[o.length-1]],a=pi(n[0])&&pi(n[1]),i=r<400,s=a?n[0].getTime():0,c=a?n[1].getTime():0,l=Oe.useMemo(()=>a?ad({start:n[0],end:n[1]},{compact:i}):()=>"",[s,c,i,a]),u=Oe.useMemo(()=>HN(r,n,12,i),[r,s,c,i]);return u.length===0?null:jsxRuntime.jsx(axis.Axis,{orientation:"bottom",top:e,scale:t,tickValues:u,tickFormat:d=>{let m=d;return pi(m)?l(m):""},stroke:"var(--color-border-muted)",tickStroke:"var(--color-border-muted)",tickLabelProps:(d,m,p)=>({fill:"var(--color-text-secondary)",fontSize:12,textAnchor:m===0?"start":m===p.length-1?"end":"middle"}),rangePadding:0})};function Na(e,t=12){let r=t*2.5,o=Math.floor(e/r);return Math.max(2,Math.min(6,o))}var ru=12,GN=({left:e,scale:t,yFormatter:r,height:o})=>{let n=Or(r),a=Oe.useMemo(()=>!o||o<=0?5:Na(o),[o]);return jsxRuntime.jsx(axis.Axis,{orientation:"left",left:e,scale:t,numTicks:a,tickFormat:i=>(n.tickFormat||n.format)(i),stroke:"var(--color-border-muted)",tickStroke:"var(--color-border-muted)",tickLabelProps:i=>{let s={fill:"var(--color-text-secondary)",fontSize:ru,textAnchor:"end"},c=t(i),[l,u]=t.range(),d=Math.min(l,u),m=Math.max(l,u);return c-d<ru/2?{...s,verticalAnchor:"start"}:m-c<ru/2?{...s,verticalAnchor:"end"}:{...s,dy:"0.33em"}}})},UN=({top:e,scale:t})=>jsxRuntime.jsx(axis.Axis,{orientation:"bottom",top:e,scale:t,stroke:"var(--color-border-muted)",tickStroke:"var(--color-border-muted)",tickLabelProps:()=>({fill:"var(--color-text-secondary)",fontSize:12,textAnchor:"middle",dy:"0.25em"})}),KN=({left:e,scale:t})=>jsxRuntime.jsx(axis.Axis,{orientation:"left",left:e,scale:t,stroke:"var(--color-border-muted)",tickStroke:"var(--color-border-muted)",tickLabelProps:()=>({fill:"var(--color-text-secondary)",fontSize:12,textAnchor:"end",dx:"-0.25em",dy:"0.33em"})}),YN=({top:e,scale:t,yFormatter:r,width:o})=>{let n=Or(r),a=Oe.useMemo(()=>{if(!o||o<=0)return 5;let s=Math.floor(o/60);return Math.max(2,Math.min(8,s))},[o]);return jsxRuntime.jsx(axis.Axis,{orientation:"bottom",top:e,scale:t,numTicks:a,tickFormat:i=>(n.tickFormat||n.format)(i),stroke:"var(--color-border-muted)",tickStroke:"var(--color-border-muted)",tickLabelProps:()=>({fill:"var(--color-text-secondary)",fontSize:12,textAnchor:"middle",dy:"0.25em"})})},Rr={Bottom:WN,Left:GN,CategoryBottom:UN,CategoryLeft:KN,NumericBottom:YN};var Jo=({data:e,formatter:t,label:r,categoryLabels:o})=>{if(!e)return null;let n=Oe__namespace.default.useContext(Pr),a=o??n?.categoryLabels,i=n?.xScale,s=n?.width,c=n?.height,l=Or(t),u=x=>{if(x.baselineValue===void 0)return l.format(x.value);let y=Math.min(x.baselineValue,x.value),v=Math.max(x.baselineValue,x.value);return `${l.format(y)} \u2013 ${l.format(v)}`},d=Oe__namespace.default.useRef(null),[m,p]=Oe__namespace.default.useState({x:0,y:0,translate:"translate(-50%, -100%)"});Oe__namespace.default.useEffect(()=>{if(!d.current)return;let y=d.current.getBoundingClientRect(),v=s??window.innerWidth,S=c??window.innerHeight,w=e.x,N=e.y,T=16,k=e.x+y.width+T<=v,P=e.x-y.width-T>=0,A;e.position==="left"?A=P||!k:A=!k&&P;let D=A?"translate(calc(-100% - 16px), -50%)":"translate(16px, -50%)";if(!k&&!P){let L=v-e.x,R=e.x;L<=R?(w=v,D="translate(-100%, -50%)"):(w=0,D="translate(0, -50%)");}N-y.height/2<0?N=y.height/2:N+y.height/2>S&&(N=S-y.height/2),p({x:w,y:N,translate:D});},[e.x,e.y,e.position,s,c]);let g=i?.domain(),h=g&&g.length===2&&g.every(x=>x instanceof Date)?Hm({start:g[0],end:g[1]}):null,b=r||(h&&e.xValue instanceof Date?h(e.xValue):String(e.xValue));return jsxRuntime.jsx(framerMotion.AnimatePresence,{children:jsxRuntime.jsxs(framerMotion.motion.div,{ref:d,role:"tooltip","aria-live":"polite",initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},"data-testid":"tooltip",className:"pointer-events-none absolute z-50 rounded-lg bg-background-surface p-4 text-sm shadow-xl ring-1 ring-border-default whitespace-nowrap",style:{left:m.x,top:m.y,transform:m.translate},children:[jsxRuntime.jsx("div",{className:"mb-1 font-medium text-text-primary",children:b}),e.isEvent?jsxRuntime.jsxs("div",{className:"space-y-2",children:[e.series.length>1&&jsxRuntime.jsx("ul",{className:"list-none p-0 border-b border-border-default pb-2",children:e.series.slice(0,-1).map(x=>jsxRuntime.jsxs("li",{className:"py-0.5",children:[jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[jsxRuntime.jsxs("span",{className:"font-medium text-text-primary",children:[x.label,":"]}),jsxRuntime.jsx("span",{className:"text-text-secondary",children:u(x)})]}),x.category&&jsxRuntime.jsxs("div",{className:"mt-0.5 flex items-center gap-2",children:[jsxRuntime.jsx("div",{className:"h-3 w-3",style:{backgroundColor:x.categoryColor||x.color,borderRadius:"1px"}}),jsxRuntime.jsx("span",{className:"text-sm text-text-secondary",children:a?.[x.category]||x.category})]}),x.extraTooltipRows&&x.extraTooltipRows.length>0&&jsxRuntime.jsx("div",{className:"mt-0.5 space-y-0.5",children:x.extraTooltipRows.map(y=>jsxRuntime.jsxs("div",{className:"flex items-center gap-2 text-sm text-text-secondary",children:[jsxRuntime.jsxs("span",{children:[y.label,":"]}),jsxRuntime.jsx("span",{className:"font-medium text-text-primary",children:y.value})]},y.label))})]},x.label))}),(()=>{let x=e.series[e.series.length-1],y=e.eventItems?.length?e.eventItems:[{label:x.label,color:x.color,metadata:e.eventMetadata}];return jsxRuntime.jsx("div",{className:"space-y-2",children:y.map((v,S)=>jsxRuntime.jsxs("div",{children:[jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[jsxRuntime.jsx("div",{className:"h-2 w-2 rounded-full",style:{backgroundColor:v.color}}),jsxRuntime.jsx("span",{className:"font-medium text-text-primary",children:v.label})]}),v.metadata&&Object.keys(v.metadata).length>0&&jsxRuntime.jsx("div",{className:"ml-4 mt-1 space-y-0.5 text-xs text-text-secondary",children:Object.entries(v.metadata).map(([w,N])=>jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[jsxRuntime.jsxs("span",{className:"capitalize",children:[w,":"]}),jsxRuntime.jsx("span",{className:"font-medium",children:N})]},w))})]},`${v.label}-${S}`))})})()]}):jsxRuntime.jsx("ul",{className:"list-none p-0",children:e.series.map(x=>jsxRuntime.jsxs("li",{className:"py-0.5",children:[jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[jsxRuntime.jsxs("span",{className:"font-medium text-text-primary",children:[x.label,":"]}),jsxRuntime.jsx("span",{className:"text-text-secondary",children:u(x)})]}),x.category&&jsxRuntime.jsxs("div",{className:"mt-0.5 flex items-center gap-2",children:[jsxRuntime.jsx("div",{className:"h-3 w-3",style:{backgroundColor:x.categoryColor||x.color,borderRadius:"1px"}}),jsxRuntime.jsx("span",{className:"text-sm text-text-secondary",children:a?.[x.category]||x.category})]}),x.extraTooltipRows&&x.extraTooltipRows.length>0&&jsxRuntime.jsx("div",{className:"mt-0.5 space-y-0.5",children:x.extraTooltipRows.map(y=>jsxRuntime.jsxs("div",{className:"flex items-center gap-2 text-sm text-text-secondary",children:[jsxRuntime.jsxs("span",{children:[y.label,":"]}),jsxRuntime.jsx("span",{className:"font-medium text-text-primary",children:y.value})]},y.label))})]},x.label))})]})})};var ek={top:20,right:20,bottom:50,left:60},wg=({data:e,width:t,height:r,margin:o=ek,color:n,yFormatter:a={type:"number"},showGrid:i=true,showAxes:s=true,animate:c=true,barRadius:l=4,barPadding:u=.3,onBarClick:d,onBarHover:m,activeIndex:p,className:g,style:f,"aria-label":h="Category bar chart",orientation:b="vertical",showTooltip:x=true})=>{let[y,v]=Oe.useState(null),[S,w]=Oe.useState(null),[N,T]=Oe.useState(null),[k,P]=Oe.useState(t??600),[A,D]=Oe.useState(r??300),L=Oe.useRef(null),R=p??y,H=Oe.useId(),G=n||"var(--color-viz-default)";Oe.useEffect(()=>{if(t!==void 0&&r!==void 0){P(t),D(r);return}if(!L.current)return;let E=new ResizeObserver(M=>{for(let W of M)t===void 0&&P(W.contentRect.width),r===void 0&&D(W.contentRect.height);});return E.observe(L.current),t===void 0&&P(L.current.offsetWidth),r===void 0&&D(L.current.offsetHeight||300),()=>{E.disconnect();}},[t,r]);let{xScale:Y,yScale:U,innerWidth:q,innerHeight:j}=Oe.useMemo(()=>{let E=k-o.left-o.right,M=A-o.top-o.bottom;if(b==="horizontal"){let I=d3Array.max(e,C=>C.value)||0;return {xScale:scale.scaleLinear({range:[0,E],domain:[0,I*1.1],nice:true}),yScale:scale.scaleBand({range:[0,M],domain:e.map(C=>C.label),padding:u}),innerWidth:E,innerHeight:M}}let W=d3Array.max(e,I=>I.value)||0;return {xScale:scale.scaleBand({range:[0,E],domain:e.map(I=>I.label),padding:u}),yScale:scale.scaleLinear({range:[M,0],domain:[0,W*1.1],nice:true}),innerWidth:E,innerHeight:M}},[e,k,A,o,u,b]);if(e.length===0)return jsxRuntime.jsx("div",{ref:L,className:tailwindMerge.twMerge("flex h-full min-h-[200px] w-full items-center justify-center rounded-lg border border-dashed border-border-default bg-background-surface text-sm font-medium text-text-secondary",g),style:r!==void 0?{height:r,...f}:f,children:"No data available"});let Q=(E,M)=>{if(v(E),m?.(M,E),E!==null&&M){let W,I;if(b==="horizontal"){let F=Y(M.value),O=U(M.label)||0,K=U.bandwidth();W=o.left+F,I=o.top+O+K/2;}else {let F=Y,O=U,K=F(M.label)??0,te=F.bandwidth(),de=O(M.value);W=o.left+K+te/2,I=o.top+de;}let C=W>k/2;T(M.label),w({xValue:new Date,series:[{label:"Value",value:M.value,color:M.color||G}],x:W,y:I,position:C?"left":"right"});}else w(null),T(null);};return jsxRuntime.jsxs("div",{ref:L,className:tailwindMerge.twMerge("relative h-full w-full overflow-hidden rounded-lg bg-background-surface",g),style:r!==void 0?{height:r,...f}:f,"aria-label":h,role:"img",children:[jsxRuntime.jsxs("svg",{width:k,height:A,children:[jsxRuntime.jsx("defs",{children:jsxRuntime.jsx(gradient.LinearGradient,{id:`${H}-bar`,from:G,to:G,toOpacity:.85})}),jsxRuntime.jsxs(group.Group,{left:o.left,top:o.top,children:[i&&jsxRuntime.jsx("g",{className:"grid-lines",children:(b==="horizontal"?Y.ticks(5):U.ticks(5)).map(E=>{let M=b==="horizontal"?0:U(E),W=b==="horizontal"?Y(E):0;return jsxRuntime.jsx("line",{x1:b==="horizontal"?W:0,y1:b==="horizontal"?0:M,x2:b==="horizontal"?W:q,y2:b==="horizontal"?j:M,stroke:"var(--color-border-default)",strokeOpacity:.5,strokeDasharray:"2,3"},E)})}),e.map((E,M)=>{let W=R===M||R==null,I=E.color||`url(#${H}-bar)`;if(b==="horizontal"){let _=Y(E.value),ae=U.bandwidth(),fe=U(E.label)||0;return jsxRuntime.jsx(framerMotion.motion.rect,{x:0,y:fe,width:_,height:ae,fill:I,rx:l,ry:l,initial:c?{width:0,opacity:.5}:void 0,animate:{width:_,opacity:W?1:.5},transition:{duration:.5,delay:M*.05,ease:"easeOut",opacity:{duration:.15,delay:0}},style:{cursor:d||m?"pointer":"default"},onMouseEnter:()=>Q(M,E),onMouseLeave:()=>Q(null,null),onClick:()=>d?.(E,M)},E.label)}let C=Y,F=U,O=C.bandwidth(),K=C(E.label)??0,te=F(E.value),de=Math.max(0,j-te);return c?jsxRuntime.jsx(framerMotion.motion.rect,{x:K,width:O,fill:I,rx:l,ry:l,initial:{y:j,height:0,opacity:.5},animate:{y:te,height:de,opacity:W?1:.5},transition:{duration:.5,delay:M*.05,ease:"easeOut",opacity:{duration:.15,delay:0}},style:{cursor:d||m?"pointer":"default"},onMouseEnter:()=>Q(M,E),onMouseLeave:()=>Q(null,null),onClick:()=>d?.(E,M)},E.label):jsxRuntime.jsx("rect",{x:K,y:te,width:O,height:de,fill:I,rx:l,ry:l,opacity:W?1:.5,style:{cursor:d||m?"pointer":"default",transition:"opacity 150ms ease-out"},onMouseEnter:()=>Q(M,E),onMouseLeave:()=>Q(null,null),onClick:()=>d?.(E,M)},E.label)}),s&&b==="vertical"&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(Rr.CategoryBottom,{top:j,scale:Y}),jsxRuntime.jsx(Rr.Left,{left:0,scale:U,yFormatter:a,height:j})]}),s&&b==="horizontal"&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(Rr.NumericBottom,{top:j,scale:Y,yFormatter:a,width:q}),jsxRuntime.jsx(Rr.CategoryLeft,{left:0,scale:U})]})]})]}),x&&jsxRuntime.jsx(Jo,{data:S,formatter:a,label:N??void 0})]})};var Ng=({item:e,onToggle:t})=>{let r=jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("div",{className:"h-3 w-3 shrink-0",style:{backgroundColor:e.fill,borderRadius:"1px",opacity:e.isHidden?.35:1}}),jsxRuntime.jsx("span",{className:`text-sm whitespace-nowrap ${e.isHidden?"text-text-disabled line-through":"text-text-secondary"}`,children:e.category})]});return t?jsxRuntime.jsx("button",{type:"button",className:"flex items-center gap-2 shrink-0 rounded-sm focus:outline-none focus:ring-2 focus:ring-border-focus disabled:cursor-not-allowed disabled:opacity-60","aria-pressed":!e.isHidden,"aria-label":`${e.isHidden?"Show":"Hide"} ${e.category}`,disabled:e.isDisabled,onClick:()=>t(e.category),children:r}):jsxRuntime.jsx("div",{className:"flex items-center gap-2 shrink-0",children:r})},ok=({items:e,onToggle:t})=>e.length===0?null:jsxRuntime.jsx("div",{className:"flex items-center gap-3 flex-wrap",children:e.map(r=>jsxRuntime.jsx(Ng,{item:r,onToggle:t},r.category))}),Ta=({items:e,onExport:t,marginLeft:r=0,marginRight:o=0,isZoomed:n=false,onResetZoom:a,onLegendItemToggle:i})=>{let[s,c]=Oe__namespace.default.useState(false),[l,u]=Oe__namespace.default.useState(null),[d,m]=Oe__namespace.default.useState(false),[p,g]=Oe__namespace.default.useState(false),f=Oe__namespace.default.useCallback(async b=>{c(true),u(b),g(false);try{await t(b);}catch(x){console.error("Export failed:",x);}finally{c(false),u(null);}},[t]),h=Oe__namespace.default.useCallback(async b=>{await f(b);},[f]);return jsxRuntime.jsxs("div",{className:"mt-4 flex items-center justify-between gap-3 min-h-[32px]",style:{marginLeft:r,marginRight:o},children:[jsxRuntime.jsx("div",{className:"hidden sm:block flex-1 min-w-0",children:jsxRuntime.jsx(ok,{items:e,onToggle:i})}),jsxRuntime.jsx("div",{className:"sm:hidden flex items-center gap-3",children:e.length>0&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("button",{onClick:()=>m(true),className:"text-sm text-text-secondary hover:text-text-primary transition-colors underline decoration-dotted underline-offset-4",children:"Legend"}),jsxRuntime.jsx(lt,{isOpen:d,onClose:()=>m(false),title:"Legend",children:jsxRuntime.jsx("div",{className:"grid grid-cols-1 gap-3 p-4",children:e.map(b=>jsxRuntime.jsx(Ng,{item:b,onToggle:i},b.category))})})]})}),jsxRuntime.jsxs("div",{className:"sm:hidden flex items-center gap-2 shrink-0",children:[n&&a&&jsxRuntime.jsx(Z,{variant:"secondary",size:"sm",onPress:a,children:jsxRuntime.jsx(B,{name:"ArrowsOut",size:16})}),jsxRuntime.jsx(Z,{variant:"secondary",size:"sm",onPress:()=>g(true),isDisabled:s,children:jsxRuntime.jsx(B,{name:"Export",size:16})}),jsxRuntime.jsx(lt,{isOpen:p,onClose:()=>g(false),title:"Export Chart",contentPadding:false,children:jsxRuntime.jsxs("div",{className:"flex flex-col",children:[jsxRuntime.jsxs("button",{onClick:()=>f("csv"),disabled:s,className:"flex items-center gap-3 px-6 py-4 text-left hover:bg-background-hover active:bg-background-muted transition-colors disabled:opacity-50 disabled:cursor-not-allowed",children:[jsxRuntime.jsx(B,{name:"List",size:20,className:"text-text-secondary"}),jsxRuntime.jsx("span",{className:"text-sm text-text-primary",children:l==="csv"?"Exporting...":"Export as CSV"})]}),jsxRuntime.jsxs("button",{onClick:()=>f("svg"),disabled:s,className:"flex items-center gap-3 px-6 py-4 text-left hover:bg-background-hover active:bg-background-muted transition-colors disabled:opacity-50 disabled:cursor-not-allowed",children:[jsxRuntime.jsx(B,{name:"Code",size:20,className:"text-text-secondary"}),jsxRuntime.jsx("span",{className:"text-sm text-text-primary",children:l==="svg"?"Exporting...":"Export as SVG"})]}),jsxRuntime.jsxs("button",{onClick:()=>f("png"),disabled:s,className:"flex items-center gap-3 px-6 py-4 text-left hover:bg-background-hover active:bg-background-muted transition-colors disabled:opacity-50 disabled:cursor-not-allowed",children:[jsxRuntime.jsx(B,{name:"DownloadSimple",size:20,className:"text-text-secondary"}),jsxRuntime.jsx("span",{className:"text-sm text-text-primary",children:l==="png"?"Exporting...":"Export as PNG"})]})]})})]}),jsxRuntime.jsxs("div",{className:"hidden sm:flex items-center gap-2 shrink-0",children:[n&&a&&jsxRuntime.jsxs(Z,{variant:"secondary",size:"sm",onPress:a,children:[jsxRuntime.jsx(B,{name:"ArrowsOut",size:16}),jsxRuntime.jsx("span",{className:"hidden sm:inline",children:"Reset Zoom"})]}),jsxRuntime.jsxs(reactAriaComponents.DialogTrigger,{children:[jsxRuntime.jsxs(Z,{variant:"secondary",size:"sm",isDisabled:s,children:[jsxRuntime.jsx(B,{name:"Export",size:16}),s?"Exporting...":"Export"]}),jsxRuntime.jsx(st,{placement:"top end",className:"min-w-48 p-1 bg-background-surface rounded-lg shadow-xl ring-1 ring-border-default",children:jsxRuntime.jsxs(reactAriaComponents.Menu,{onAction:h,className:"outline-none",children:[jsxRuntime.jsx(reactAriaComponents.MenuItem,{id:"csv",className:"flex items-center gap-2 px-3 py-2 text-sm text-text-primary rounded cursor-pointer hover:bg-background-hover focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-border-focus focus-visible:ring-offset-1 focus-visible:ring-offset-background-surface data-[focused]:bg-background-hover data-[focused]:ring-2 data-[focused]:ring-border-focus data-[focused]:ring-offset-1 data-[focused]:ring-offset-background-surface",isDisabled:s,children:jsxRuntime.jsxs("span",{className:"flex items-center gap-2",children:[jsxRuntime.jsx(B,{name:"List",size:14}),l==="csv"?"Exporting...":"Export as CSV"]})}),jsxRuntime.jsx(reactAriaComponents.MenuItem,{id:"svg",className:"flex items-center gap-2 px-3 py-2 text-sm text-text-primary rounded cursor-pointer hover:bg-background-hover focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-border-focus focus-visible:ring-offset-1 focus-visible:ring-offset-background-surface data-[focused]:bg-background-hover data-[focused]:ring-2 data-[focused]:ring-border-focus data-[focused]:ring-offset-1 data-[focused]:ring-offset-background-surface",isDisabled:s,children:jsxRuntime.jsxs("span",{className:"flex items-center gap-2",children:[jsxRuntime.jsx(B,{name:"Code",size:14}),l==="svg"?"Exporting...":"Export as SVG"]})}),jsxRuntime.jsx(reactAriaComponents.MenuItem,{id:"png",className:"flex items-center gap-2 px-3 py-2 text-sm text-text-primary rounded cursor-pointer hover:bg-background-hover focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-border-focus focus-visible:ring-offset-1 focus-visible:ring-offset-background-surface data-[focused]:bg-background-hover data-[focused]:ring-2 data-[focused]:ring-border-focus data-[focused]:ring-offset-1 data-[focused]:ring-offset-background-surface",isDisabled:s,children:jsxRuntime.jsxs("span",{className:"flex items-center gap-2",children:[jsxRuntime.jsx(B,{name:"DownloadSimple",size:14}),l==="png"?"Exporting...":"Export as PNG"]})})]})})]})]})]})};var Ks=Op(iu());var Tg=["stroke","fill","color","stop-color","flood-color","lighting-color"],Pg=/var\s*\(/;function Rg(e,t){let r=[e,...Array.from(e.querySelectorAll("*"))],o=[t,...Array.from(t.querySelectorAll("*"))],n=Math.min(r.length,o.length);for(let a=0;a<n;a++){let i=r[a],s=o[a];if(!(i instanceof Element)||!(s instanceof Element))continue;let c=window.getComputedStyle(i);for(let l of Tg){let u=s.getAttribute(l);if(u&&Pg.test(u)){let d=c.getPropertyValue(l);d&&s.setAttribute(l,d.trim());}}if(s instanceof HTMLElement||s instanceof SVGElement)for(let l of Tg){let u=l,d=s.style.getPropertyValue(u);if(d&&Pg.test(d)){let m=c.getPropertyValue(u);m&&s.style.setProperty(u,m.trim());}}}}function su(e,t,r=true){let o=e||"chart";if(r){let n=new Date().toISOString().replace(/[:.]/g,"-").slice(0,-5);return `${o}-${n}.${t}`}return `${o}.${t}`}async function lu(e,t,r={},o){let n=Array.isArray(t[0])?t:[t];try{switch(e){case "csv":await ak(n,r);break;case "svg":await ik(o,r);break;case "png":await sk(o,r);break;default:throw new Error(`Unsupported export type: ${e}`)}}catch(a){throw console.error("Export failed:",a),new Error(`Failed to export chart as ${e}: ${a instanceof Error?a.message:"Unknown error"}`)}}async function ak(e,t){try{let r=t.yFormat?nd(t.yFormat):null,o=t.yFormat,n=m=>{if(m==null||m==="")return "";if(!o)return typeof m=="number"?m:String(m);let p=Om(m,o);return p===null?typeof m=="number"?m:String(m):p},a=new Map;e.forEach(m=>{m.forEach(p=>{let g=p.xValue.getTime();a.has(g)||a.set(g,p.xValue);});});let i=Array.from(a.values()).sort((m,p)=>m.getTime()-p.getTime()),s=e.map((m,p)=>{let g=t.seriesLabels?.[p]||`Series ${p+1}`;return r&&!g.includes(`(${r})`)?`${g} (${r})`:g}),c=i.map(m=>{let p={[t.xLabel||"Date"]:m.toLocaleString("en-US",{year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"})};return e.forEach((g,f)=>{let h=s[f],b=g.find(x=>x.xValue.getTime()===m.getTime());p[h]=b?n(b.yValue):"",b?.category&&(p[`${h} Category`]=b.category);}),p}),l=nk__default.default.unparse(c,{header:!0,skipEmptyLines:!0}),u=new Blob([l],{type:"text/csv;charset=utf-8;"}),d=su(t.filename||"chart-data","csv",t.timestamp!==!1);(0,Ks.saveAs)(u,d);}catch(r){throw new Error(`CSV export failed: ${r instanceof Error?r.message:"Unknown error"}`)}}async function ik(e,t){if(!e.current)throw new Error("SVG element not found");try{let r=e.current,o=r.cloneNode(!0);if(Rg(r,o),!o.querySelector("rect[data-background]")){let l=document.createElementNS("http://www.w3.org/2000/svg","rect");l.setAttribute("width",o.getAttribute("width")||"100%"),l.setAttribute("height",o.getAttribute("height")||"100%"),l.setAttribute("fill","white"),l.setAttribute("data-background","true"),o.insertBefore(l,o.firstChild);}let i=new XMLSerializer().serializeToString(o);i.includes("<?xml")||(i=`<?xml version="1.0" encoding="UTF-8"?>
|
|
28
|
-
`+i),i.includes("xmlns=")||(i=i.replace("<svg",'<svg xmlns="http://www.w3.org/2000/svg"'));let s=new Blob([i],{type:"image/svg+xml;charset=utf-8"}),c=su(t.filename||"chart","svg",t.timestamp!==!1);(0,Ks.saveAs)(s,c);}catch(r){throw new Error(`SVG export failed: ${r instanceof Error?r.message:"Unknown error"}`)}}async function sk(e,t,r=2){if(!e.current)throw new Error("SVG element not found");let o="";try{let n=e.current,a=n.getBoundingClientRect(),i=n.cloneNode(!0);Rg(n,i),i.setAttribute("width",String(a.width)),i.setAttribute("height",String(a.height)),i.removeAttribute("transform");let s=i.getElementsByTagName("text");Array.from(s).forEach(m=>{m.style.fontFamily||(m.style.fontFamily="system-ui, -apple-system, sans-serif"),m.style.fontSize||(m.style.fontSize="12px");});let c=document.createElementNS("http://www.w3.org/2000/svg","rect");c.setAttribute("width",String(a.width)),c.setAttribute("height",String(a.height)),c.setAttribute("fill","white"),i.insertBefore(c,i.firstChild);let u=new XMLSerializer().serializeToString(i);u.includes("xmlns=")||(u=u.replace("<svg",'<svg xmlns="http://www.w3.org/2000/svg"'));let d=new Blob([u],{type:"image/svg+xml;charset=utf-8"});return o=URL.createObjectURL(d),new Promise((m,p)=>{let g=new Image,f=setTimeout(()=>{o&&URL.revokeObjectURL(o),p(new Error("Image loading timeout"));},1e4);g.onload=()=>{clearTimeout(f);try{let h=document.createElement("canvas");h.width=a.width*r,h.height=a.height*r;let b=h.getContext("2d");if(!b)throw new Error("Canvas context not available");b.imageSmoothingEnabled=!0,b.imageSmoothingQuality="high",b.scale(r,r),b.fillStyle="white",b.fillRect(0,0,a.width,a.height),b.drawImage(g,0,0,a.width,a.height),h.toBlob(x=>{if(x){let y=su(t.filename||"chart","png",t.timestamp!==!1);(0,Ks.saveAs)(x,y),m();}else p(new Error("Failed to create PNG blob"));o&&URL.revokeObjectURL(o);},"image/png",1);}catch(h){o&&URL.revokeObjectURL(o),p(h);}},g.onerror=()=>{clearTimeout(f),o&&URL.revokeObjectURL(o),p(new Error("Failed to load SVG as image"));},g.src=o;})}catch(n){throw o&&URL.revokeObjectURL(o),new Error(`PNG export failed: ${n instanceof Error?n.message:"Unknown error"}`)}}function lk(e){if(typeof window>"u")return false;switch(e){case "csv":return true;case "svg":return typeof XMLSerializer<"u";case "png":return typeof HTMLCanvasElement<"u"&&typeof HTMLCanvasElement.prototype.toBlob=="function";default:return false}}function ck(e){return {csv:"CSV Spreadsheet",svg:"SVG Vector Image",png:"PNG Image"}[e]||"Unknown Format"}function Ys({datasets:e,metadata:t,svgRef:r}){return Oe.useCallback(async o=>{try{await lu(o,e,t,r);}catch(n){throw console.error("Chart export failed:",n),n}},[e,t,r])}var cu=({data:e,seriesMetadata:t,width:r,height:o,onBrushChange:n,brushRegion:a,margin:i=Ie,yDomain:s})=>{let c=Oe.useRef(null),l=Oe.useRef(false),u=Oe.useMemo(()=>e.flat(),[e]),d=Oe.useMemo(()=>({top:10,bottom:15,left:i.left,right:i.right}),[i]),m=r-d.left-d.right,p=Oe.useMemo(()=>{if(u.length===0)return scale.scaleTime({domain:[new Date,new Date],range:[0,m]});let x=new Date(Math.min(...u.map(v=>v.xValue.getTime()))),y=new Date(Math.max(...u.map(v=>v.xValue.getTime())));return scale.scaleTime({domain:[x,y],range:[0,m]})},[u,m]),g=Oe.useMemo(()=>{let x=u.length>0?Math.max(0,...u.map(y=>y.yValue)):1;return scale.scaleLinear({domain:s??[0,x],range:[o-d.bottom,d.top]})},[u,o,s,d.top,d.bottom]),f=x=>{if(l.current)return;if(!x){n(null);return}let{x0:y,x1:v}=x;if(y===v)return;let S=new Date(y),w=new Date(v);if(!(Number.isNaN(S.getTime())||Number.isNaN(w.getTime()))){if(u.length>0){let N=Math.min(...u.map(D=>D.xValue.getTime())),T=Math.max(...u.map(D=>D.xValue.getTime())),P=(T-N)*.05;if(Math.abs(S.getTime()-N)<P&&Math.abs(w.getTime()-T)<P){n(null);return}}n([S,w]);}},h=Oe.useMemo(()=>{if(u.length!==0)return {start:{x:0,y:d.top},end:{x:m,y:o-d.bottom}}},[m,o,u]);Oe.useEffect(()=>{if(!c.current||u.length===0)return;let x=c.current.state;if(x?.isBrushing||x?.activeHandle)return;let y=Math.min(...u.map(k=>k.xValue.getTime())),v=Math.max(...u.map(k=>k.xValue.getTime())),S=a?a[0]:new Date(y),w=a?a[1]:new Date(v),N=c.current.state?.extent;if(N){let k=p.invert(N.x0),P=p.invert(N.x1),A=Math.abs(k.getTime()-S.getTime()),D=Math.abs(P.getTime()-w.getTime());if(A<1e3&&D<1e3)return}l.current=true;let T=k=>{let P=c.current.getExtent({x:p(S),y:d.top},{x:p(w),y:o-d.bottom});return {...k,start:{y:P.y0,x:P.x0},end:{y:P.y1,x:P.x1},extent:P}};c.current.updateBrush(T),setTimeout(()=>{l.current=false;},50);},[a,p,o,u]);let b={fill:"url(#brush_pattern)",fillOpacity:.15,stroke:"var(--color-border-focus)",strokeWidth:1.5,strokeOpacity:.3};return jsxRuntime.jsx("div",{className:"mt-2",children:jsxRuntime.jsxs("svg",{width:r,height:o,children:[jsxRuntime.jsx(pattern.PatternLines,{id:"brush_pattern",height:8,width:8,stroke:"var(--color-text-secondary)",strokeWidth:1,orientation:["diagonal"]}),jsxRuntime.jsxs("g",{transform:`translate(${d.left}, 0)`,children:[e.map((x,y)=>jsxRuntime.jsx(shape.LinePath,{data:x,x:v=>p(v.xValue),y:v=>g(v.yValue),stroke:t[y]?.color||"var(--color-gray-500)",strokeWidth:1.5,opacity:.8},`brush-series-${y}`)),jsxRuntime.jsx(brush.Brush,{xScale:p,yScale:g,width:m,height:o-d.top-d.bottom,margin:{top:d.top,bottom:d.bottom,left:0,right:0},handleSize:8,innerRef:c,resizeTriggerAreas:["left","right"],brushDirection:"horizontal",initialBrushPosition:h,onChange:f,onClick:()=>n(null),selectedBoxStyle:b,useWindowMoveEvents:true})]})]})})};function ho(e){switch(e){case "command":return Tt("--color-action-brand","#111111");case "success":return Tt("--color-feedback-success-border","#278a4a");case "warning":return Tt("--color-feedback-warning-border","#c88420");case "error":return Tt("--color-feedback-error-border","#c42d2d");case "alert":return Tt("--color-feedback-warning-border","#c88420");default:return Tt("--color-text-secondary","#525250")}}function Xs({events:e,color:t,showLabels:r=false}){let o=Oe.useContext(Pr),[n,a]=Oe.useState(null);if(!o)return console.warn("ChartEventMarkers must be used within a ChartContainer"),null;let{xScale:i,yScale:s,height:c,tooltip:l,datasets:u,seriesMetadata:d,seriesTypes:m,categoryColors:p}=o,g=e.filter(b=>{let x=i(b.timestamp);return x>=Ie.left&&x<=i.range()[1]}),f=Oe.useCallback((b,x)=>{a(x);let y=i(b.timestamp),v=y>(i.range()[1]-Ie.right-Ie.left)/2+Ie.left,S=[];u&&d&&u.forEach((T,k)=>{if(T.length===0)return;let P=d3Array.bisector(H=>H.xValue).left,A=P(T,b.timestamp),D=T[A-1],L=T[A],R;if(!D)R=L;else if(!L)R=D;else {let H=Math.abs(b.timestamp.getTime()-D.xValue.getTime()),G=Math.abs(b.timestamp.getTime()-L.xValue.getTime());R=H<G?D:L;}R&&d[k]&&S.push({label:d[k].label,value:R.yValue,color:d[k].color,type:m?.[k]||"line",...R.category&&{category:R.category,categoryColor:p?.[R.category]}});});let N=g.filter(T=>Math.abs(i(T.timestamp)-y)<=10).map(T=>({label:T.label,color:t||ho(T.type),metadata:T.metadata}));S.push({label:N.length>1?`${N.length} events`:b.label,value:0,color:t||ho(b.type),type:"event"}),l.show({xValue:b.timestamp,series:S,x:y,y:S.length>1&&typeof S[0].value=="number"?s(S[0].value):c/2,position:v?"left":"right",isEvent:true,eventMetadata:b.metadata,eventItems:N});},[i,s,c,l,t,u,d,m,p,g]),h=Oe.useCallback(()=>{a(null),l.hide();},[l]);return g.length===0?null:jsxRuntime.jsx("g",{className:"chart-event-markers","data-testid":"chart-event-markers",children:g.map((b,x)=>{let y=i(b.timestamp),v=t||ho(b.type),S=n===x;return jsxRuntime.jsxs("g",{children:[jsxRuntime.jsx("line",{x1:y,y1:Ie.top,x2:y,y2:c-Ie.bottom,stroke:v,strokeWidth:S?3:2,strokeDasharray:"4 4",strokeOpacity:S?.9:.6,pointerEvents:"none"}),jsxRuntime.jsx("circle",{cx:y,cy:Ie.top,r:S?5:4,fill:v,stroke:"var(--color-background-surface)",strokeWidth:2,pointerEvents:"none"}),jsxRuntime.jsx("circle",{cx:y,cy:c-Ie.bottom,r:S?5:4,fill:v,stroke:"var(--color-background-surface)",strokeWidth:2,pointerEvents:"none"}),r&&jsxRuntime.jsx("text",{x:y,y:Ie.top-8,textAnchor:"middle",fill:"var(--color-text-secondary)",fontSize:11,fontWeight:500,pointerEvents:"none",children:b.label}),jsxRuntime.jsx("rect",{x:y-10,y:Ie.top,width:20,height:c-Ie.top-Ie.bottom,fill:"transparent",style:{cursor:"pointer"},onMouseEnter:()=>f(b,x),onMouseLeave:h})]},`${b.timestamp.getTime()}-${x}`)})})}function js({spans:e,opacity:t=.25,color:r}){let o=Oe.useContext(Pr),[n,a]=Oe.useState(null),i=o?.xScale,s=o?.height,c=o?.tooltip,[l,u]=i?.domain()??[new Date(0),new Date(0)],[d,m]=i?.range()??[0,0],p=Oe.useCallback((S,w)=>{if(!i||!c)return;a(w);let N=S.start<l?l:S.start,T=S.end>u?u:S.end,k=(i(N)+i(T))/2,P=k>(m-d)/2+d,D=e.filter(L=>L.end>L.start&&L.start<S.end&&L.end>S.start).map(L=>({label:L.label,color:L.color??r??ho(L.type),metadata:L.metadata}));c.show({xValue:S.start,series:[{label:D.length>1?`${D.length} scheduled commands`:S.label,value:0,color:S.color??r??ho(S.type),type:"event"}],x:k,y:(s??0)/2,position:P?"left":"right",isEvent:true,eventMetadata:S.metadata,eventItems:D});},[i,s,c,r,l,u,d,m,e]),g=Oe.useCallback(()=>{a(null),c?.hide();},[c]);if(!o)return console.warn("ChartEventSpans must be used within a ChartContainer"),null;let{xScale:f,height:h}=o,b=Ie.top,y=h-Ie.bottom-b,v=e.filter(S=>S.end>S.start);return v.length===0?null:jsxRuntime.jsx("g",{className:"chart-event-spans","data-testid":"chart-event-spans",children:v.map((S,w)=>{let N=S.start<l?l:S.start,T=S.end>u?u:S.end;if(N>=u||T<=l)return null;let k=f(N),A=f(T)-k;if(A<=0)return null;let D=S.color??r??ho(S.type);return jsxRuntime.jsx("rect",{x:k,y:b,width:A,height:y,fill:D,fillOpacity:n===w?Math.min((t??.25)*1.8,1):t??.25,pointerEvents:"all",style:{cursor:"pointer"},onMouseEnter:()=>p(S,w),onMouseLeave:g},`${S.start.getTime()}-${S.end.getTime()}-${w}`)})})}var Tn=({data:e,color:t="var(--color-viz-default)",strokeWidth:r=3,strokeDasharray:o,categoryColors:n={},maxGapMs:a,animate:i=true})=>{let{xScale:s,yScale:c,animationSettings:l}=kn(),u=c.range(),d=Object.keys(n).length>0,m=y=>y.category?n[y.category]??t:t,p=y=>y.chartYValue??y.yValue,g=e.length===1?e[0]:void 0,f=a!=null?Os(e,a):e,h=i?void 0:"non-scaling-stroke",b=g?jsxRuntime.jsx("circle",{cx:s(g.xValue),cy:c(p(g)),r,fill:d?m(g):t}):d?e.slice(0,-1).map((y,v)=>{let S=e[v+1];return a!=null&&a>0&&S.xValue.getTime()-y.xValue.getTime()>a?null:jsxRuntime.jsx(shape.LinePath,{data:[y,S],x:w=>s(w.xValue),y:w=>c(p(w)),stroke:m(y),strokeWidth:r,strokeDasharray:o,strokeLinecap:"round",vectorEffect:h,curve:curve.curveLinear},`${y.xValue.getTime()}-${S.xValue.getTime()}`)}):jsxRuntime.jsx(shape.LinePath,{data:f,x:y=>y?s(y.xValue):0,y:y=>y?c(p(y)):0,defined:y=>y!=null,stroke:t,strokeWidth:r,strokeDasharray:o,strokeLinecap:"round",vectorEffect:h,curve:curve.curveLinear}),x={transformOrigin:`0 ${u[0]}px`,transformBox:"fill-box",isolation:"isolate"};return i?jsxRuntime.jsx(framerMotion.motion.g,{initial:{scaleY:0},animate:{scaleY:1},transition:{duration:l.duration,ease:l.ease},style:x,children:b}):jsxRuntime.jsx("g",{style:x,children:b})};var Hg=e=>e.type===Yo||e.type===Tn||e.type===Ws,Mk=e=>e.type===Xs||e.type===js,Dk=(e,t,r)=>{if(!e.tooltipRange||e.baseline===void 0)return;let o=typeof e.baseline=="function"?e.baseline(t,r):e.baseline;return typeof o=="number"&&Number.isFinite(o)&&o!==t.yValue?o:void 0},Ek=d3Array.bisector(e=>e.xValue).left,Lk=()=>jsxRuntime.jsx("div",{className:"flex h-full items-center justify-center",children:jsxRuntime.jsx("p",{className:"text-text-secondary",children:"No data available"})}),Ak=()=>jsxRuntime.jsxs("div",{className:"flex h-full flex-col gap-4 p-4",children:[jsxRuntime.jsx(J,{className:"h-full w-full"}),jsxRuntime.jsxs("div",{className:"flex gap-4",children:[jsxRuntime.jsx(J,{className:"h-4 w-24"}),jsxRuntime.jsx(J,{className:"h-4 w-24"})]})]}),Ik=({parentWidth:e,parentHeight:t,yFormatter:r={type:"number"},yDomain:o,referenceLines:n,isLoading:a=false,enableZoom:i=false,enableBrush:s=false,brushHeight:c=60,onZoomChange:l,zoomDomain:u,hiddenSeriesLabels:d,onHiddenSeriesChange:m,hideBottomBar:p=false,children:g})=>{let f=d!==void 0,h=u!==void 0,[b,x]=Oe.useState(null),[y,v]=Oe.useState(null),S=h?u:y,[w,N]=Oe.useState(()=>new Set),T=f?d:w,k=Oe.useRef(null),P=Oe.useId(),A=Oe.useRef(0),D=Oe.useRef(""),L=Oe.useRef(null),{colorMode:R}=Bt(),H=Oe.useMemo(()=>ln(),[R]),G=Oe.useMemo(()=>Qa(),[R]),{datasets:Y,seriesMetadata:U,categoryInfo:q,categoryColors:j,categoryLabels:Q,seriesTypes:E}=Oe.useMemo(()=>{let pe=Oe.Children.toArray(g).filter(Ee=>Oe.isValidElement(Ee)&&Hg(Ee)),Fe=pe.filter(Ee=>Ee.props.data).length,Ne=[],Ve=[],tt=[],pt=null,Ae=null;pe.forEach((Ee,Ct)=>{let Pe=Ee.props;if(!Pe.data)return;Ne.push(Pe.data);let na=("color"in Pe&&Pe.color?Pe.color:void 0)||(Fe===1?G:H[Ct%H.length]),an=Ee.type===Yo;Ve.push({label:"label"in Pe&&Pe.label||`Series ${Ne.length}`,color:na,...an&&"baseline"in Pe&&Pe.baseline!==void 0?{baseline:Pe.baseline,tooltipRange:"tooltipRange"in Pe&&Pe.tooltipRange||false}:{}});let Sc=an?"area":Ee.type===Tn?"line":"bar";tt.push(Sc),"categoryColors"in Pe&&Pe.categoryColors&&(pt=Pe.categoryColors),"categoryLabels"in Pe&&Pe.categoryLabels&&(Ae=Pe.categoryLabels);});let mt=null;if(pt){let Ee=new Set;Ne.forEach(Ct=>{Ct.forEach(Pe=>{Pe.category&&Ee.add(Pe.category);});}),mt=Array.from(Ee).map(Ct=>({label:Ae?.[Ct]||Ct,color:pt[Ct]||"#6b7280"}));}return {datasets:Ne,seriesMetadata:Ve,categoryInfo:mt,categoryColors:pt,categoryLabels:Ae,seriesTypes:tt}},[g,G,H,R]),M=e,W=p?0:60,I=s?c+8:0,C=t-W-I,F=Math.max(100,C),O=Oe.useCallback(X=>X?T.has(X):false,[T]),K=Oe.useMemo(()=>U.map((X,pe)=>O(X.label)?null:pe).filter(X=>X!==null),[U,O]),te=Oe.useMemo(()=>K.map(X=>Y[X]).filter(X=>!!X),[Y,K]),de=Oe.useMemo(()=>K.map(X=>U[X]).filter(X=>!!X),[U,K]),_=Oe.useMemo(()=>K.map(X=>E[X]).filter(X=>!!X),[E,K]),ae=_.findIndex(X=>X==="bar"),fe=ae!==-1,re=Oe.useCallback((X,pe)=>{let Fe=X.has(pe);if(!Fe&&U.reduce((tt,pt)=>X.has(pt.label)||pt.label===pe?tt:tt+1,0)<1)return X;let Ne=new Set(X);return Fe?Ne.delete(pe):Ne.add(pe),Ne},[U]),ce=Oe.useCallback(X=>{if(f){let pe=d;if(!pe.has(X)&&U.reduce((Ve,tt)=>pe.has(tt.label)||tt.label===X?Ve:Ve+1,0)<1){x(null);return}m?.(Ne=>re(Ne,X));}else N(pe=>re(pe,X));x(null);},[f,d,m,U,re]),xe=Oe.useMemo(()=>U.map(X=>X.label).join(""),[U]),he=Oe.useRef(xe);Oe.useEffect(()=>{he.current!==xe&&(he.current=xe,f||N(X=>X.size===0?X:new Set));},[xe,f]);let De=Oe.useMemo(()=>te.flat(),[te]),$e=Oe.useMemo(()=>{if(De.length===0)return null;let X=[...De].sort((pe,Fe)=>pe.xValue.getTime()-Fe.xValue.getTime());return [X[0].xValue,X[X.length-1].xValue]},[De]),lr=S||$e,$=Oe.useCallback(X=>{h?l?.(X):v(X);},[h,l]),ee=Oe.useMemo(()=>lr?Y.map(pe=>pe.filter(Fe=>Fe.xValue>=lr[0]&&Fe.xValue<=lr[1])):Y,[Y,lr]),ne=Oe.useMemo(()=>K.map(X=>ee[X]??[]),[K,ee]);Oe.useEffect(()=>{l&&l(S);},[S,l]);let V=Oe.useMemo(()=>K.flatMap(X=>ee[X]??[]),[ee,K]),z=Oe.useMemo(()=>ui(V,F,r,o),[V,F,r,o]),se=Oe.useRef(JSON.stringify(r)),ie=Oe.useRef(null),le=Oe.useMemo(()=>{let[X,pe]=z.domain(),Fe=Math.max(Math.abs(X),Math.abs(pe)),Ne=JSON.stringify(r);if(Ne!==se.current&&(se.current=Ne,ie.current=null),ie.current!==null)return ie.current;if(Fe===0)return Sa(r,0);let Ve=Sa(r,Fe);return ie.current=Ve,Ve},[z,r]),We=Oe.useMemo(()=>{let X=F-Ie.top-Ie.bottom;return Na(X)},[F]),ue=Oe.useMemo(()=>{let X=Or(le),pe=X.tickFormat||X.format,Ne=z.ticks(We).map(pt=>pe(pt)),Ve=wa(Ne,12,"system-ui"),tt=Math.ceil(Ve)+12;return {...Ie,left:Math.max(tt,30),right:8}},[z,le,We]),et=Oe.useMemo(()=>lr?scale.scaleTime({domain:lr,range:[ue.left,M-ue.right]}):tu(De,M),[lr,De,M,ue]),mo=Oe.useCallback(X=>{if(!$e)return;let{scaleX:pe,translateX:Fe}=X,Ne=M-ue.left-ue.right,[Ve,tt]=$e,pt=tt.getTime()-Ve.getTime();if(pt<=0){$(null);return}let Ae=-Fe,mt=Ae+Ne,Ee=Ne*pe/pt,Ct=Ae/Ee,Pe=mt/Ee,nn=new Date(Ve.getTime()+Ct),na=new Date(Ve.getTime()+Pe),an=Math.abs(nn.getTime()-Ve.getTime()),Sc=Math.abs(na.getTime()-tt.getTime()),zp=pt*.02;an<zp&&Sc<zp?$(null):$([nn,na]);},[$e,M,ue,$]),Cr=Oe.useCallback(X=>{let{left:pe}=k.current?.getBoundingClientRect()||{left:0},Fe=X.clientX-pe;if(X.timeStamp-(A.current||0)<16)return;A.current=X.timeStamp;let Ne=et.invert(Fe),Ve=ne.map((Ae,mt)=>{if(!Ae||Ae.length===0)return null;let Ee=Ek(Ae,Ne,1);if(Ee===0)return {point:Ae[0],index:0,datasetIndex:mt};if(Ee>=Ae.length)return {point:Ae[Ae.length-1],index:Ae.length-1,datasetIndex:mt};let Ct=Ae[Ee-1],Pe=Ae[Ee];if(!Ct||!Pe)return null;let nn=Math.abs(Ct.xValue.getTime()-Ne.getTime()),na=Math.abs(Pe.xValue.getTime()-Ne.getTime()),an=nn<na;return {point:an?Ct:Pe,index:an?Ee-1:Ee,datasetIndex:mt}}).filter(Ae=>Ae!==null&&de[Ae.datasetIndex]!==void 0).map(({point:Ae,index:mt,datasetIndex:Ee})=>({label:de[Ee].label,value:Ae.yValue,baselineValue:Dk(de[Ee],Ae,mt),color:de[Ee].color,point:Ae,type:_[Ee]}));if(Ve.length===0){x(null);return}let tt=et(Ve[0].point.xValue),pt=tt>(M-ue.right-ue.left)/2+ue.left;x({xValue:Ve[0].point.xValue,series:Ve.map(({label:Ae,value:mt,baselineValue:Ee,color:Ct,point:Pe,type:nn})=>({label:Ae,value:mt,...Ee!==void 0?{baselineValue:Ee}:{},chartY:Pe.chartYValue??mt,showMarker:Pe.showTooltipMarker??true,color:Ct,type:nn,category:Pe.category,categoryColor:Pe.category&&j?j[Pe.category]:void 0,...Pe.extraTooltipRows&&Pe.extraTooltipRows.length>0?{extraTooltipRows:Pe.extraTooltipRows}:{}})),x:tt,y:z(Ve[0].point.chartYValue??Ve[0].value),position:pt?"left":"right"});},[ne,de,_,et,z,M,j,ue]),yc=()=>{x(null);},vc=Oe.useCallback(()=>{$(null),L.current&&L.current.reset();},[$]),es=Oe.useCallback(X=>{if(!(L.current&&$e))return;let[pe,Fe]=$e,Ne=Fe.getTime()-pe.getTime();if(Ne<=0){L.current.reset();return}if(!X){L.current.reset();return}let[Ve,tt]=X,pt=tt.getTime()-Ve.getTime();if(pt<=0){L.current.reset();return}let Ae=Ne/pt,mt=M-ue.left-ue.right,Ct=-((Ve.getTime()-pe.getTime())/Ne)*mt*Ae;L.current.setTransformMatrix({scaleX:Ae,scaleY:1,translateX:Ct,translateY:0,skewX:0,skewY:0});},[$e,M,ue]),iv=Oe.useCallback(X=>{$(X),es(X);},[$,es]);Oe.useEffect(()=>{h&&es(u??null);},[h,u,es]);let sv={width:M,height:F,xScale:et,yScale:z,yFormatter:le,animationSettings:zs,tooltip:{data:b,show:x,hide:()=>x(null)},datasets:ne,seriesMetadata:de,seriesTypes:_,categoryColors:j||void 0,categoryLabels:Q||void 0},lv=Oe.Children.toArray(g),Ip=0,Fp=[],Bp=[],Cc=[];lv.forEach(X=>{if(!Oe.isValidElement(X)){Cc.push(X);return}if(Mk(X))Bp.push(X);else if(Hg(X)){let pe=Ip;Ip++;let Fe=X.props,Ne=U[pe]?.label;if(O(Ne))return;Fp.push(Oe__namespace.default.cloneElement(X,{...Fe,data:ee[pe]||Fe.data,color:U[pe]?.color}));}else Cc.push(X);});let cv=K.length,dv=(q||U).map(X=>{let pe=!q&&O(X.label);return {category:X.label,fill:X.color,isHidden:pe,isDisabled:!q&&!pe&&cv<=1}}),uv=typeof r=="object"&&r!==null&&typeof r.type=="string",pv=Ys({datasets:te,metadata:{xLabel:"Date",yLabel:"Value",seriesLabels:de.map(X=>X.label),timestamp:true,...uv?{yFormat:r}:{}},svgRef:k});if(a)return jsxRuntime.jsx(Ak,{});if(Y.length===0)return jsxRuntime.jsx(Lk,{});let Vp=jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("title",{children:"Data chart visualization"}),jsxRuntime.jsx("g",{children:z.ticks(We).map(X=>{let pe=Math.abs(X)<Number.EPSILON;return jsxRuntime.jsx(shape.Line,{from:{x:ue.left,y:z(X)},to:{x:M-ue.right,y:z(X)},stroke:pe?"var(--color-border-default)":"var(--color-border-muted)",strokeWidth:pe?1.5:1},`grid-line-${X}`)})}),jsxRuntime.jsx("defs",{children:jsxRuntime.jsx("clipPath",{id:P,children:jsxRuntime.jsx("rect",{x:et.range()[0],y:z.range()[1],width:et.range()[1]-et.range()[0],height:z.range()[0]-z.range()[1]})})}),jsxRuntime.jsx("g",{clipPath:`url(#${P})`,children:Fp}),Cc,n&&n.length>0&&jsxRuntime.jsx("g",{children:n.map(X=>{let pe=z(X.value),Fe=X.color??"var(--color-error-base)";return jsxRuntime.jsxs("g",{children:[jsxRuntime.jsx(shape.Line,{from:{x:ue.left,y:pe},to:{x:M-ue.right,y:pe},stroke:Fe,strokeWidth:1.5,strokeDasharray:"6 4"}),X.label&&jsxRuntime.jsx("text",{x:M-ue.right-4,y:pe-4,textAnchor:"end",fontSize:11,fill:Fe,children:X.label})]},`ref-line-${X.value}`)})}),jsxRuntime.jsx(Rr.Bottom,{top:F-ue.bottom,scale:et,width:M-ue.left-ue.right}),jsxRuntime.jsx(Rr.Left,{left:ue.left,scale:z,yFormatter:le,height:F-ue.top-ue.bottom}),b&&!b.isEvent&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[fe?(()=>{let X=te[ae]??[];if(X.length===0)return null;let pe=[...X].sort((Ee,Ct)=>Ee.xValue.getTime()-Ct.xValue.getTime()),Fe=pe.findIndex(Ee=>Ee.xValue.getTime()===b.xValue.getTime()),Ne=pe[Fe+1],Ve=pe.length>1&&Ne?Ne.xValue.getTime()-b.xValue.getTime():15*6e4,tt=Math.abs(et(new Date(b.xValue.getTime()+Ve))-et(b.xValue)),Ae=et(b.xValue)-tt/2,mt=z.range();return jsxRuntime.jsx("rect",{x:Ae,y:mt[1],width:tt,height:mt[0]-mt[1],className:"fill-background-muted",opacity:.5,pointerEvents:"none",style:{transition:"all 100ms ease-out"}})})():null,b.series.filter(X=>X.type!=="bar"&&X.showMarker!==false).map(X=>jsxRuntime.jsxs("g",{children:[jsxRuntime.jsx("circle",{cx:et(b.xValue),cy:z(X.chartY??X.value),r:8,fill:"white",stroke:X.color,strokeWidth:2,style:{transition:"all 100ms ease-out"}}),jsxRuntime.jsx("circle",{cx:et(b.xValue),cy:z(X.chartY??X.value),r:4,fill:X.color,style:{transition:"all 100ms ease-out"}})]},`highlight-${X.label}`))]}),jsxRuntime.jsx("rect",{x:ue.left,y:ue.top,width:M-ue.left-ue.right,height:F-ue.top-ue.bottom,fill:"transparent",style:{cursor:i?"grab":"crosshair",touchAction:"none"},onMouseMove:Cr,onMouseLeave:yc}),Bp]});return jsxRuntime.jsx("div",{className:"relative flex h-full flex-col",children:jsxRuntime.jsxs(Pr.Provider,{value:sv,children:[i?jsxRuntime.jsx(zoom.Zoom,{width:M,height:F,scaleXMin:1,scaleXMax:20,scaleYMin:1,scaleYMax:1,constrain:X=>{let{scaleX:pe,translateX:Fe}=X,Ne=Math.max(1,Math.min(20,pe)),Ve=1,tt=M-ue.left-ue.right,pt=0,Ae=tt*(1-Ne),mt=Math.max(Ae,Math.min(pt,Fe));return {...X,scaleX:Ne,scaleY:Ve,translateX:mt,translateY:0}},children:X=>{if(L.current=X,X.transformMatrix){let{scaleX:pe,translateX:Fe}=X.transformMatrix,Ne=`${pe.toFixed(4)}-${Fe.toFixed(2)}`;Ne!==D.current&&(D.current=Ne,setTimeout(()=>{mo(X.transformMatrix);},0));}return jsxRuntime.jsx("svg",{width:M,height:F,className:"overflow-visible",ref:pe=>{k.current=pe,X.containerRef.current!==pe&&(X.containerRef.current=pe);},role:"img","aria-label":"Data chart",style:{cursor:X.isDragging?"grabbing":"grab",touchAction:"none"},onMouseDown:X.dragStart,onMouseMove:X.dragMove,onMouseUp:X.dragEnd,onMouseLeave:()=>{X.isDragging&&X.dragEnd();},onTouchStart:X.dragStart,onTouchMove:X.dragMove,onTouchEnd:X.dragEnd,children:Vp})}}):jsxRuntime.jsx("svg",{width:M,height:F,className:"overflow-visible",ref:k,role:"img","aria-label":"Data chart",children:Vp}),jsxRuntime.jsx(Jo,{data:b,formatter:le}),s&&$e&&jsxRuntime.jsx(cu,{data:te,seriesMetadata:de,width:M,height:c,onBrushChange:iv,brushRegion:S,margin:ue,...o?{yDomain:o}:{}}),!p&&jsxRuntime.jsx(Ta,{onExport:pv,items:dv,marginLeft:0,marginRight:ue.right,isZoomed:S!==null,onResetZoom:vc,onLegendItemToggle:q?void 0:ce})]})})},Gg=responsive.withParentSize(Ik);var Hk=e=>e.toLocaleString(),Wk=e=>`${Math.round(e*100)}%`,Jg=({data:e,width:t=800,height:r=400,padding:o=0,barGap:n=30,formatValue:a=Hk,formatPercentage:i=Wk,color:s,showScale:c=true,showOverallConversion:l=true,overallConversionLabel:u="Overall Conversion:",activeStageId:d,onStageClick:m,onStageHover:p,className:g,style:f,"aria-label":h="Funnel chart"})=>{let[b,x]=Oe.useState(null),[y,v]=Oe.useState(t),S=Oe.useRef(null),w=d??b,N=Oe.useId(),T=s||"var(--color-viz-default)";Oe.useEffect(()=>{if(!S.current)return;let R=new ResizeObserver(H=>{for(let G of H)v(G.contentRect.width);});return R.observe(S.current),()=>{R.disconnect();}},[]);let{layout:k,overallConversion:P}=Oe.useMemo(()=>{if(e.length===0)return {layout:[],overallConversion:0};let R=e[0].value,H=l?60:0,G=r-o*2-H,Y=(e.length-1)*n,U=(G-Y)/e.length,q=e.map((Q,E)=>{let M=o+H+E*(U+n),W=R===0?0:Q.value/R,I=W,C=E===0?null:e[E-1].value,F=C==null||C===0?0:1-Q.value/C;return {stage:Q,index:E,y:M,barHeight:U,widthPercent:W,conversionRate:I,dropOff:F}}),j=R===0?0:e[e.length-1].value/R;return {layout:q,overallConversion:j,maxValue:R}},[e,y,r,o,n,c,l]);if(e.length===0)return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("flex h-full min-h-[280px] w-full items-center justify-center rounded-lg border border-dashed border-border-default bg-background-surface text-sm font-medium text-text-secondary",g),style:{width:t,height:r,...f},children:"No funnel data available"});let A=c?60:0,D=o+A,L=y-o*2-A;return jsxRuntime.jsx("div",{ref:S,className:tailwindMerge.twMerge("relative w-full overflow-hidden rounded-lg bg-background-surface",g),style:{height:r,...f},"aria-label":h,role:"img",children:jsxRuntime.jsxs("svg",{width:"100%",height:r,className:"relative",children:[jsxRuntime.jsxs("defs",{children:[jsxRuntime.jsx(gradient.LinearGradient,{id:`${N}-bar`,from:T,to:T,toOpacity:.85}),jsxRuntime.jsx(gradient.LinearGradient,{id:`${N}-bg`,from:T,to:T,fromOpacity:.01,toOpacity:.15,x1:"0",y1:"0",x2:"1",y2:"0"})]}),l&&jsxRuntime.jsxs("text",{x:D,y:o+20,className:"fill-text-primary text-sm font-medium",children:[jsxRuntime.jsx("tspan",{className:"fill-text-secondary",children:u})," ",i(P)]}),c&&jsxRuntime.jsx("g",{children:k.map(R=>{let H=R.y+R.barHeight/2;return jsxRuntime.jsx("text",{x:o+A-12,y:H,textAnchor:"end",dominantBaseline:"middle",className:"fill-text-secondary text-xs",children:i(R.conversionRate)},R.stage.id)})}),k.map(R=>{let H=w===R.stage.id,G=L*R.widthPercent;return jsxRuntime.jsxs("g",{children:[jsxRuntime.jsx("rect",{x:D,y:R.y,width:L,height:R.barHeight,fill:`url(#${N}-bg)`,rx:4}),jsxRuntime.jsx(framerMotion.motion.rect,{x:D,y:R.y,width:G,height:R.barHeight,fill:`url(#${N}-bar)`,rx:4,initial:{width:0},animate:{width:G},transition:{duration:.6,delay:R.index*.1,ease:"easeOut"},opacity:H||w==null?1:.5,style:{cursor:m||p?"pointer":"default",transition:"opacity 150ms ease"},onMouseEnter:()=>{x(R.stage.id),p?.(R.stage);},onMouseLeave:()=>{x(null),p?.(null);},onClick:()=>m?.(R.stage)}),jsxRuntime.jsx("rect",{x:D+10,y:R.y+R.barHeight/2-10,width:70,height:20,className:"fill-background-surface stroke-border-default",strokeWidth:1,rx:4,style:{pointerEvents:"none"}}),jsxRuntime.jsx("text",{x:D+16,y:R.y+R.barHeight/2+4,className:"fill-text-primary text-xs font-semibold",style:{pointerEvents:"none"},children:a(R.stage.value)}),jsxRuntime.jsxs("text",{x:D,y:R.y-8,className:"fill-text-secondary text-xs",style:{pointerEvents:"none"},children:[jsxRuntime.jsx("tspan",{children:R.index+1})," ",R.stage.label]}),R.stage.secondaryValue&&jsxRuntime.jsx("text",{x:D+16,y:R.y-24,className:"fill-text-secondary text-xs",style:{pointerEvents:"none"},children:R.stage.secondaryValue}),R.index>0&&R.dropOff>0&&jsxRuntime.jsxs("text",{x:D+L,y:R.y-8,textAnchor:"end",className:"fill-text-secondary text-xs",children:[i(R.dropOff)," drop"]}),R.stage.annotation&&jsxRuntime.jsxs("g",{children:[jsxRuntime.jsx("rect",{x:D+G+8,y:R.y+8,width:60,height:24,rx:3,className:"fill-background-muted"}),jsxRuntime.jsx("text",{x:D+G+16,y:R.y+20,className:"fill-text-secondary text-xs font-medium",children:R.stage.annotation})]})]},R.stage.id)})]})})};function Xg(){let e=new Map;return {publish(t,r){for(let[o,n]of e)o!==t&&n(r);},subscribe(t,r){return e.set(t,r),()=>{e.delete(t);}}}}var Uk=d3Array.bisector(e=>e.xValue).left,Kk=(e,t,r)=>{if(!e.tooltipRange||e.baseline===void 0)return;let o=typeof e.baseline=="function"?e.baseline(t,r):e.baseline;return typeof o=="number"&&Number.isFinite(o)&&o!==t.yValue?o:void 0};function jg(e){let{mouseX:t,datasets:r,seriesMetadata:o,seriesTypes:n,xScale:a,yScale:i,plotLeft:s,plotRight:c}=e,l=a.invert(t),u=r.map((p,g)=>{if(!p||p.length===0)return null;let f=Uk(p,l,1);if(f===0)return {point:p[0],index:0,datasetIndex:g};if(f>=p.length)return {point:p[p.length-1],index:p.length-1,datasetIndex:g};let h=p[f-1],b=p[f];if(!h||!b)return null;let x=Math.abs(h.xValue.getTime()-l.getTime()),y=Math.abs(b.xValue.getTime()-l.getTime()),v=x<y;return {point:v?h:b,index:v?f-1:f,datasetIndex:g}}).filter(p=>p!==null&&o[p.datasetIndex]!==void 0).map(({point:p,index:g,datasetIndex:f})=>({label:o[f].label,value:p.yValue,baselineValue:Kk(o[f],p,g),color:o[f].color,point:p,type:n[f]}));if(u.length===0)return null;let d=a(u[0].point.xValue),m=d>(s+c)/2;return {xValue:u[0].point.xValue,series:u.map(({label:p,value:g,baselineValue:f,color:h,point:b,type:x})=>({label:p,value:g,...f!==void 0?{baselineValue:f}:{},chartY:b.chartYValue??g,showMarker:b.showTooltipMarker??true,color:h,type:x,...b.category!==void 0?{category:b.category}:{},...b.extraTooltipRows&&b.extraTooltipRows.length>0?{extraTooltipRows:b.extraTooltipRows}:{}})),x:d,y:i(u[0].point.chartYValue??u[0].value),position:m?"left":"right"}}var Zg=e=>e instanceof Date&&!Number.isNaN(e.getTime()),jk=160;function qs(e,t,r){let[o,n]=Oe.useState(null);Oe.useImperativeHandle(r,()=>({setPreview:n}),[]);let[a,i]=e.range(),s=Oe.useMemo(()=>o?d3Scale.scaleTime().domain([new Date(o[0]),new Date(o[1])]).range([a,i]):e,[o,e,a,i]),c=s.domain(),l=c[0],u=c[c.length-1],d=Zg(l)&&Zg(u),m=t<400,p=Math.max(2,Math.min(8,Math.floor(t/(m?70:110)))),g=Oe.useMemo(()=>{if(!d)return [];let f=i-a;if(f<=0)return s.ticks(p);let[h,b]=s.domain(),x=h.getTime(),y=b.getTime(),v=(y-x)/f,S=Math.min(jk,f),w=S*v,N=d3Scale.scaleTime().domain([new Date(x-w),new Date(y+w)]).range([a-S,i+S]),T=d3Time.timeTickInterval(h,b,p);if(T)return N.ticks(T);let k=Math.max(2,Math.round(p*(f+2*S)/f));return N.ticks(k)},[s,p,d,a,i]);return {activeScale:s,ticks:g,start:l,end:u,valid:d,compact:m,rangeStart:a,rangeEnd:i}}var _k=6,_g=20,mu=Oe.forwardRef(({top:e,scale:t,width:r},o)=>{let{activeScale:n,ticks:a,start:i,end:s,valid:c,compact:l,rangeStart:u,rangeEnd:d}=qs(t,r,o),m=a.length>=2?a[1].getTime()-a[0].getTime():s.getTime()-i.getTime(),p=Oe.useMemo(()=>c?Wm(m,{compact:l}):()=>"",[m,l,c]),g=Oe.useId(),f=Math.min(u,d),h=Math.abs(d-u);return jsxRuntime.jsxs("g",{children:[jsxRuntime.jsx("line",{x1:u,x2:d,y1:e,y2:e,stroke:"var(--color-border-muted)",strokeWidth:1}),a.length>0&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("defs",{children:jsxRuntime.jsx("clipPath",{id:g,children:jsxRuntime.jsx("rect",{x:f,y:e-4,width:h,height:_g+16})})}),jsxRuntime.jsx("g",{clipPath:`url(#${g})`,children:a.map(b=>jsxRuntime.jsxs("g",{transform:`translate(${n(b)},${e})`,children:[jsxRuntime.jsx("line",{x1:0,x2:0,y1:0,y2:_k,stroke:"var(--color-border-muted)",strokeWidth:1}),jsxRuntime.jsx("text",{x:0,y:_g,textAnchor:"middle",fontSize:12,fill:"var(--color-text-secondary)",children:p(b)})]},b.getTime()))})]})]})});mu.displayName="LiveTimeAxisBottom";var fu=Oe.forwardRef(({scale:e,width:t,top:r,bottom:o},n)=>{let{activeScale:a,ticks:i,rangeStart:s,rangeEnd:c}=qs(e,t,n),l=Oe.useId(),u=Math.min(s,c),d=Math.abs(c-s);return jsxRuntime.jsxs("g",{"aria-hidden":"true",children:[jsxRuntime.jsx("defs",{children:jsxRuntime.jsx("clipPath",{id:l,children:jsxRuntime.jsx("rect",{x:u,y:r,width:d,height:o-r})})}),jsxRuntime.jsx("g",{clipPath:`url(#${l})`,children:i.map(m=>{let p=a(m);return jsxRuntime.jsx("line",{x1:p,x2:p,y1:r,y2:o,stroke:"var(--color-border-muted)",strokeWidth:1},m.getTime())})})]})});fu.displayName="LiveTimeGridlines";function Qs(e,t,r){let o=e[1]-e[0],n=t/Math.max(1,r)*o;return [e[0]-n,e[1]-n]}function $g(e,t,r){let o=e[1]-e[0],n=e[0]+t*o,a=o/r,i=n-t*a;return [i,i+a]}function gu(e,t,r=16,o=800){return t===1?e*r:t===2?e*o:e}var eb=(e,t,r,o,n)=>{let a=t!==1?$g(e,r,t):e;return o!==0&&(a=Qs(a,o,n)),a},tb=(e,t)=>{if(!t)return e;let r=e[1]-e[0];if(r>=t[1]-t[0])return [t[0],t[1]];let[o,n]=e;return n>t[1]&&(n=t[1],o=n-r),o<t[0]&&(o=t[0],n=o+r),[o,n]},nT=e=>typeof requestAnimationFrame=="function"?requestAnimationFrame(e):setTimeout(()=>e(0),0),aT=e=>{typeof cancelAnimationFrame=="function"?cancelAnimationFrame(e):clearTimeout(e);};function rb(e){let{groupRef:t}=e,r=Oe.useRef({xDomain:e.xDomain,plotWidthPx:e.plotWidthPx,plotLeftPx:e.plotLeftPx??0});r.current={xDomain:e.xDomain,plotWidthPx:e.plotWidthPx,plotLeftPx:e.plotLeftPx??0};let o=Oe.useRef(e.onCommit);o.current=e.onCommit;let n=Oe.useRef(e.panBoundsMs);n.current=e.panBoundsMs;let a=Oe.useRef(e.settleMs??140);a.current=e.settleMs??140;let i=Oe.useRef(e.zoomIntent??(D=>D.ctrlKey));i.current=e.zoomIntent??(D=>D.ctrlKey);let s=Oe.useRef(e.onGestureStart);s.current=e.onGestureStart;let c=Oe.useRef(e.onFramePreview);c.current=e.onFramePreview;let l=Oe.useRef(null),u=Oe.useRef({scale:1,cursorFrac:.5,panDxPx:0,timer:null}),d=Oe.useRef(null),m=Oe.useRef(null),p=Oe.useRef(false),g=Oe.useCallback((D,L,R)=>{m.current={translateX:D,scaleX:L,preview:R},d.current==null&&(d.current=nT(()=>{d.current=null;let H=m.current;H!=null&&(t.current?.setAttribute("transform",`translate(${H.translateX},0) scale(${H.scaleX},1)`),c.current?.(H.preview));}));},[t]),f=Oe.useCallback(()=>{d.current!=null&&(aT(d.current),d.current=null),m.current=null,t.current?.removeAttribute("transform"),c.current?.(null);},[t]),h=Oe.useCallback(()=>{p.current||(p.current=true,s.current?.());},[]),b=Oe.useCallback(()=>{p.current=false;},[]),x=Oe.useCallback(()=>{u.current.timer!=null&&(clearTimeout(u.current.timer),u.current.timer=null);},[]),y=Oe.useCallback(()=>{u.current={scale:1,cursorFrac:.5,panDxPx:0,timer:null};},[]),v=Oe.useCallback(()=>{let{xDomain:D,plotWidthPx:L}=r.current,{scale:R,cursorFrac:H,panDxPx:G}=u.current;R===1&&G===0||o.current(tb(eb(D,R,H,G,L),n.current));},[]),S=Oe.useCallback(()=>{u.current.timer!=null&&(x(),v(),y(),f());},[x,v,y,f]),w=Oe.useCallback(D=>{S(),D.currentTarget.setPointerCapture?.(D.pointerId),l.current={startX:D.clientX,dxPx:0},h();},[S,h]),N=Oe.useCallback(D=>{if(!l.current)return;l.current.dxPx=D.clientX-l.current.startX;let{xDomain:L,plotWidthPx:R}=r.current;g(l.current.dxPx,1,Qs(L,l.current.dxPx,R));},[g]),T=Oe.useCallback(D=>{if(!l.current)return;let{dxPx:L}=l.current;l.current=null,f(),b(),L!==0&&o.current(tb(Qs(r.current.xDomain,L,r.current.plotWidthPx),n.current));},[f,b]),k=Oe.useCallback(()=>{l.current&&(l.current=null,f(),b());},[f,b]),P=Oe.useRef(null),A=Oe.useCallback(D=>{if(P.current?.(),P.current=null,!D)return;let L=R=>{if(l.current)return;let{plotWidthPx:H,plotLeftPx:G}=r.current,Y=gu(R.deltaY,R.deltaMode),U=gu(R.deltaX,R.deltaMode),q=i.current(R);if(!q&&U===0)return;if(R.preventDefault(),h(),q){let M=Math.min(1,Math.max(0,(R.clientX-D.getBoundingClientRect().left)/Math.max(1,H)));u.current.scale*=Math.exp(-Y/200),u.current.cursorFrac=M;}else u.current.panDxPx-=U;let{scale:j,cursorFrac:Q,panDxPx:E}=u.current;g((G+Q*H)*(1-j)+E,j,eb(r.current.xDomain,j,Q,E,H)),x(),u.current.timer=setTimeout(()=>{v(),y(),f(),b();},a.current);};D.addEventListener("wheel",L,{passive:false}),P.current=()=>D.removeEventListener("wheel",L);},[g,f,x,v,y,h,b]);return Oe.useEffect(()=>()=>{P.current?.(),P.current=null,f(),u.current.timer!=null&&clearTimeout(u.current.timer);},[f]),{onPointerDown:w,onPointerMove:N,onPointerUp:T,onPointerCancel:k,wheelTargetRef:A,gestureActiveRef:p}}var ib=e=>e.type===Yo||e.type===Tn,uT=({children:e,viewport:t,panBounds:r,onViewportChange:o,onPlotWidthChange:n,yFormatter:a={type:"number"},yDomain:i,referenceLines:s,cameraSync:c,parentWidth:l=0,parentHeight:u=0})=>{let[d,m]=Oe.useState(null),p=Oe.useRef(null),g=Oe.useRef(0),f=Oe.useId(),h=Oe.useRef(null),b=Oe.useRef(null),x=Oe.useRef(null),{colorMode:y}=Bt(),v=Oe.useMemo(()=>ln(),[y]),S=Oe.useMemo(()=>Qa(),[y]),{datasets:w,seriesMetadata:N,seriesTypes:T}=Oe.useMemo(()=>{let $=Oe.Children.toArray(e).filter(se=>Oe.isValidElement(se)&&ib(se)),ee=$.filter(se=>se.props.data).length,ne=[],V=[],z=[];return $.forEach((se,ie)=>{let le=se.props;if(!le.data)return;ne.push(le.data);let ue=("color"in le&&le.color?le.color:void 0)||(ee===1?S:v[ie%v.length]),et=se.type===Yo;V.push({label:"label"in le&&le.label||`Series ${ne.length}`,color:ue,...et&&"baseline"in le&&le.baseline!==void 0?{baseline:le.baseline,tooltipRange:"tooltipRange"in le&&le.tooltipRange||false}:{}}),z.push(et?"area":"line");}),{datasets:ne,seriesMetadata:V,seriesTypes:z}},[e,S,v]),k=l,P=Math.max(100,u-60),A=Oe.useMemo(()=>[new Date(t.startMs),new Date(t.endMs)],[t.startMs,t.endMs]),D=Oe.useMemo(()=>{let $=w.flat(),ee=$.filter(ne=>{let V=ne.xValue.getTime();return V>=t.startMs&&V<=t.endMs});return ee.length>0?ee:$},[w,t.startMs,t.endMs]),L=Oe.useMemo(()=>{let $=ui(D,P,a,i);if(!i){let[ee,ne]=$.domain();ne>ee&&$.domain([ee,ne+(ne-ee)*.05]);}return $},[D,P,a,i]),R=Oe.useRef(JSON.stringify(a)),H=Oe.useRef(null),G=Oe.useMemo(()=>{let[$,ee]=L.domain(),ne=Math.max(Math.abs($),Math.abs(ee)),V=JSON.stringify(a);if(V!==R.current&&(R.current=V,H.current=null),H.current!==null)return H.current;if(ne===0)return Sa(a,0);let z=Sa(a,ne);return H.current=z,z},[L,a]),Y=Oe.useMemo(()=>{let $=P-Ie.top-Ie.bottom;return Na($)},[P]),U=Oe.useMemo(()=>{let $=Or(G),ee=$.tickFormat||$.format,V=L.ticks(Y).map(ie=>ee(ie)),z=wa(V,12,"system-ui"),se=Math.ceil(z)+12;return {...Ie,left:Math.max(se,30)}},[L,G,Y]),q=Oe.useMemo(()=>scale.scaleTime({domain:A,range:[U.left,k-U.right]}),[A,k,U]),j=Oe.useMemo(()=>[t.startMs,t.endMs],[t.startMs,t.endMs]),Q=Oe.useMemo(()=>r?[r.startMs,r.endMs]:void 0,[r]),E=Oe.useCallback($=>{o({startMs:$[0],endMs:$[1]});},[o]),M=k-U.left-U.right,W=Oe.useCallback(()=>m(null),[]),I=Oe.useRef({}),C=Oe.useRef(c);C.current=c;let F=Oe.useCallback($=>{b.current?.setPreview($),x.current?.setPreview($),C.current?.publish(I.current,$);},[]),{onPointerDown:O,onPointerMove:K,onPointerUp:te,onPointerCancel:de,wheelTargetRef:_,gestureActiveRef:ae}=rb({xDomain:j,plotWidthPx:M,plotLeftPx:U.left,groupRef:h,onCommit:E,onGestureStart:W,onFramePreview:F,...Q?{panBoundsMs:Q}:{}}),fe=Oe.useRef({startMs:t.startMs,endMs:t.endMs,left:0,width:0});fe.current={startMs:t.startMs,endMs:t.endMs,left:U.left,width:M},Oe.useEffect(()=>{if(!c)return;let $=()=>{h.current?.removeAttribute("transform"),b.current?.setPreview(null),x.current?.setPreview(null);},ee=V=>{if(ae.current)return;if(V==null){$();return}let{startMs:z,endMs:se,left:ie,width:le}=fe.current,We=se-z,ue=V[1]-V[0];if(We<=0||ue<=0||le<=0)return;let et=We/ue,mo=ie*(1-et)+(z-V[0])*le/ue;h.current?.setAttribute("transform",`translate(${mo},0) scale(${et},1)`),b.current?.setPreview(V),x.current?.setPreview(V);},ne=c.subscribe(I.current,ee);return ()=>{ne(),ae.current||$();}},[c,ae]),Oe.useEffect(()=>{n?.(Math.max(0,k-U.left-U.right));},[k,U,n]);let re=Oe.useCallback($=>{if(ae.current)return;let{left:ee}=p.current?.getBoundingClientRect()||{left:0},ne=$.clientX-ee;$.timeStamp-(g.current||0)<16||(g.current=$.timeStamp,m(jg({mouseX:ne,datasets:w,seriesMetadata:N,seriesTypes:T,xScale:q,yScale:L,plotLeft:U.left,plotRight:k-U.right})));},[w,N,T,q,L,k,U,ae]),ce=Oe.useCallback(()=>m(null),[]),xe={width:k,height:P,xScale:q,yScale:L,yFormatter:G,animationSettings:zs,tooltip:{data:d,show:m,hide:()=>m(null)},datasets:w,seriesMetadata:N,seriesTypes:T},he=0,De=[];Oe.Children.toArray(e).forEach($=>{if(!Oe.isValidElement($)){De.push($);return}if(ib($)){let ee=he;he++;let ne=$.props;De.push(Oe__namespace.default.cloneElement($,{...ne,color:N[ee]?.color,animate:false}));}else De.push($);});let $e=N.map($=>({category:$.label,fill:$.color})),Mo=Ys({datasets:w,metadata:{xLabel:"Date",yLabel:"Value",seriesLabels:N.map($=>$.label),timestamp:true},svgRef:p}),lr=jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("title",{children:"Data chart visualization"}),jsxRuntime.jsx("g",{children:L.ticks(Y).map($=>{let ee=Math.abs($)<Number.EPSILON;return jsxRuntime.jsx(shape.Line,{from:{x:U.left,y:L($)},to:{x:k-U.right,y:L($)},stroke:ee?"var(--color-border-default)":"var(--color-border-muted)",strokeWidth:ee?1.5:1},`grid-line-${$}`)})}),jsxRuntime.jsx(fu,{ref:x,scale:q,width:k-U.left-U.right,top:L.range()[1],bottom:L.range()[0]}),jsxRuntime.jsx("defs",{children:jsxRuntime.jsx("clipPath",{id:f,children:jsxRuntime.jsx("rect",{x:q.range()[0],y:L.range()[1],width:q.range()[1]-q.range()[0],height:L.range()[0]-L.range()[1]})})}),jsxRuntime.jsx("g",{clipPath:`url(#${f})`,children:jsxRuntime.jsx("g",{"data-camera-plot-group":"",ref:h,children:De})}),s&&s.length>0&&jsxRuntime.jsx("g",{children:s.map($=>{let ee=L($.value),ne=$.color??"var(--color-error-base)";return jsxRuntime.jsxs("g",{children:[jsxRuntime.jsx(shape.Line,{from:{x:U.left,y:ee},to:{x:k-U.right,y:ee},stroke:ne,strokeWidth:1.5,strokeDasharray:"6 4"}),$.label&&jsxRuntime.jsx("text",{x:k-U.right-4,y:ee-4,textAnchor:"end",fontSize:11,fill:ne,children:$.label})]},`ref-line-${$.value}`)})}),jsxRuntime.jsx(mu,{ref:b,top:P-U.bottom,scale:q,width:k-U.left-U.right}),jsxRuntime.jsx(Rr.Left,{left:U.left,scale:L,yFormatter:G,height:P-U.top-U.bottom}),d&&!d.isEvent&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(shape.Line,{"data-testid":"chart-hover-crosshair",from:{x:q(d.xValue),y:L.range()[1]},to:{x:q(d.xValue),y:L.range()[0]},stroke:"var(--color-text-secondary)",strokeWidth:1,strokeDasharray:"3 3",opacity:.7}),d.series.filter($=>$.type!=="bar"&&$.showMarker!==false).map($=>jsxRuntime.jsxs("g",{children:[jsxRuntime.jsx("circle",{cx:q(d.xValue),cy:L($.chartY??$.value),r:8,fill:"white",stroke:$.color,strokeWidth:2,style:{transition:"all 100ms ease-out"}}),jsxRuntime.jsx("circle",{cx:q(d.xValue),cy:L($.chartY??$.value),r:4,fill:$.color,style:{transition:"all 100ms ease-out"}})]},`highlight-${$.label}`))]}),jsxRuntime.jsx("rect",{"data-camera-surface":"",x:U.left,y:U.top,width:k-U.left-U.right,height:P-U.top-U.bottom,fill:"transparent",style:{cursor:"grab",touchAction:"none"},onMouseMove:re,onMouseLeave:ce,onPointerDown:O,onPointerMove:K,onPointerUp:te,onPointerCancel:de,ref:_})]});return jsxRuntime.jsx("div",{className:"relative flex h-full flex-col",children:jsxRuntime.jsxs(Pr.Provider,{value:xe,children:[jsxRuntime.jsx("svg",{width:k,height:P,className:"overflow-visible",ref:p,role:"img","aria-label":"Data chart",children:lr}),jsxRuntime.jsx(Jo,{data:d,formatter:G}),jsxRuntime.jsx(Ta,{onExport:Mo,items:$e,marginLeft:0,marginRight:U.right})]})})},Zs=responsive.withParentSize(uT);function _s(e,t,r,o){if(r.length===0)throw new Error("tierForViewport: resolution ladder is empty");let n=[...r].sort((s,c)=>s.bucketMs-c.bucketMs),a=e/Math.max(1,t*o.targetPointsPerPx),i=Math.max(o.nativeMs,a);return n.find(s=>s.bucketMs>=i)??n[n.length-1]}function pT(e,t){return Math.floor(e/t.tileSpanMs)}function Xo(e,t,r){let o=pT(e.startMs,t)-r,n=Math.ceil(e.endMs/t.tileSpanMs)-1+r,a=[];for(let i=o;i<=n;i++)a.push({tierId:t.id,index:i,startMs:i*t.tileSpanMs,endMs:(i+1)*t.tileSpanMs});return a}var rr=(e,t)=>`${e}:${t}`;var lb={erroredTiles:0};function xu(e,t){let r=new Map,o=new Map,n=new Map,a=0;for(let u of e){let d=t.get(rr(u.tierId,u.index));if(d){if(d.status==="error"){a+=1;continue}if(d.data){for(let m of d.data.line)r.set(m.xValue.getTime(),m);for(let m of d.data.band??[])o.set(m.xValue.getTime(),m);for(let[m,p]of Object.entries(d.data.lines??{})){let g=n.get(m);g||(g=new Map,n.set(m,g));for(let f of p)g.set(f.xValue.getTime(),f);}}}}let i=(u,d)=>u.xValue.getTime()-d.xValue.getTime(),s=[...r.values()].sort(i),c=[...o.values()].sort(i),l=Object.fromEntries([...n.entries()].map(([u,d])=>[u,[...d.values()].sort(i)]));return {line:s,band:c,lines:l,coverage:{earliestMs:s.length?s[0].xValue.getTime():void 0,latestMs:s.length?s[s.length-1].xValue.getTime():void 0,erroredTiles:a}}}function mT(e,t,r){let o=Xo(e,t,0);return o.length===0?false:o.every(n=>{let a=r.get(rr(n.tierId,n.index));return a!=null&&(a.status==="loaded"||a.status==="empty")})}function cb(e,t,r){return Xo(e,t,0).some(n=>{let a=r.get(rr(n.tierId,n.index));return a?.status==="loaded"&&(a.data?.line.length??0)>0})}function fT(e,t){if(!e.line.length)return false;let r=e.coverage.earliestMs,o=e.coverage.latestMs;return r==null||o==null?false:r<t.endMs&&o>t.startMs}function db({viewport:e,targetTier:t,ladder:r,store:o,overscanTiles:n,prev:a}){let i=mT(e,t,o);if(i&&cb(e,t,o)){let c=Xo(e,t,n),{line:l,band:u,lines:d,coverage:m}=xu(c,o);return {line:l,band:u,lines:d,renderTier:t,targetTier:t,isFallback:false,isStale:false,coverage:m}}let s=r.findIndex(c=>c.id===t.id);for(let c=s+1;c<r.length;c++){let l=r[c];if(cb(e,l,o)){let u=Xo(e,l,n),{line:d,band:m,lines:p,coverage:g}=xu(u,o);return {line:d,band:m,lines:p,renderTier:l,targetTier:t,isFallback:true,isStale:false,coverage:g}}}if(i){let c=Xo(e,t,n),{line:l,band:u,lines:d,coverage:m}=xu(c,o);return {line:l,band:u,lines:d,renderTier:t,targetTier:t,isFallback:false,isStale:false,coverage:m}}return a?fT(a,e)?{...a,targetTier:t,isFallback:true,isStale:false}:{line:a.line,band:a.band,lines:a.lines,renderTier:null,targetTier:t,isFallback:true,isStale:true,coverage:lb}:{line:[],band:[],lines:{},renderTier:null,targetTier:t,isFallback:false,isStale:false,coverage:lb}}var ub=new Map;function pb(e,t){switch(t.type){case "reset":return new Map;case "request":{let r=new Map(e);for(let o of t.ids){let n=r.get(o);(!n||n.status==="error")&&r.set(o,{status:"loading"});}return r}case "fulfilled":{let r=new Map(e);return r.set(t.id,{status:t.data.line.length>0?"loaded":"empty",data:t.data}),r}case "failed":{let r=new Map(e);return r.set(t.id,{status:"error",error:t.error}),r}default:return e}}function fb({refs:e,refsKey:t,store:r,tier:o,viewport:n,fetchTile:a,dispatch:i,concurrency:s,maxFutureMs:c}){let l=Oe.useRef(e);l.current=e;let u=Oe.useRef(n);u.current=n;let d=Oe.useRef(new Map),m=Oe.useCallback(()=>{for(let p of d.current.values())p.ac.abort();d.current.clear();},[]);return Oe.useEffect(()=>{for(let[b,x]of d.current)x.tierId!==o.id&&(x.ac.abort(),d.current.delete(b));let p=l.current.filter(b=>{let x=rr(b.tierId,b.index),y=r.get(x);return y?y.status==="loading"&&!d.current.has(x):true}),g=(u.current.startMs+u.current.endMs)/2;p.sort((b,x)=>Math.abs((b.startMs+b.endMs)/2-g)-Math.abs((x.startMs+x.endMs)/2-g));let f=Math.max(0,s-d.current.size),h=p.slice(0,f);if(h.length!==0){i({type:"request",ids:h.map(b=>rr(b.tierId,b.index))});for(let b of h){let x=rr(b.tierId,b.index),y=new AbortController;d.current.set(x,{ac:y,tierId:b.tierId});let v=c!=null?Math.min(b.endMs,c):b.endMs;a(o,b.startMs,v,y.signal).then(S=>{y.signal.aborted||i({type:"fulfilled",id:x,data:S});}).catch(S=>{if(!y.signal.aborted){let w=S instanceof Error?S.message:String(S);i({type:"failed",id:x,error:new Error(`tile fetch failed (tile ${x}, tier ${o.id}): ${w}`)});}}).finally(()=>{d.current.delete(x);});}}},[t,r,a,o,i,s,c]),Oe.useEffect(()=>m,[m]),{abortAll:m}}var xb=1.3,xT=25e4,hT=3;function yT(e,t,r){let o=t.tileSpanMs/t.bucketMs,n=Math.max(1,Math.floor(xT/o/r));return Math.min(Math.max(1,Math.ceil(.5*e/t.tileSpanMs)),n)}function yb(e){let{fetchTile:t,ladder:r,nativeMs:o,viewport:n,widthPx:a,maxFutureMs:i,targetPointsPerPx:s=1,concurrency:c=3,tileCostSeriesCount:l=hT,resetKey:u}=e,d=Oe.useMemo(()=>({targetPointsPerPx:s,nativeMs:o}),[s,o]),[m,p]=Oe.useState(()=>_s(n.endMs-n.startMs,Math.max(1,a),r,d)),[g,f]=Oe.useReducer(pb,ub),h=Oe.useRef(n.endMs-n.startMs),b=Oe.useRef(d);Oe.useEffect(()=>{let G=n.endMs-n.startMs,Y=_s(G,Math.max(1,a),r,d);if(Y.id===m.id){b.current=d;return}let q=_s(G,Math.max(1,a),r,b.current).id!==Y.id,j=G/h.current;(q||j>xb||j<1/xb)&&(h.current=G,b.current=d,p(Y));},[n,a,r,m.id,d]);let x=n.endMs-n.startMs,y=Oe.useMemo(()=>yT(x,m,l),[x,m,l]),v=Oe.useMemo(()=>Xo(n,m,y),[n,m,y]),S=Oe.useMemo(()=>v.map(G=>rr(G.tierId,G.index)).join(","),[v]),w=Oe.useRef(v);w.current=v;let N=Oe.useRef(n);N.current=n;let T=Oe.useRef(g);T.current=g;let{abortAll:k}=fb({refs:v,refsKey:S,store:g,tier:m,viewport:n,fetchTile:t,dispatch:f,concurrency:c,...i!=null?{maxFutureMs:i}:{}}),P=Oe.useRef(null),A=Oe.useRef(false);Oe.useEffect(()=>{if(!A.current){A.current=true;return}k(),P.current=null,f({type:"reset"});},[k,u]);let D=Oe.useMemo(()=>w.current.map(G=>`${rr(G.tierId,G.index)}:${g.get(rr(G.tierId,G.index))?.status??"\u2205"}`).join("|"),[S,g]),L=Oe.useMemo(()=>{let G=db({viewport:N.current,targetTier:m,ladder:r,store:T.current,overscanTiles:y,prev:P.current});return P.current=G,G},[D,m,r,y,n.startMs,n.endMs]),R=Oe.useMemo(()=>w.current.some(G=>T.current.get(rr(G.tierId,G.index))?.status==="loading"),[D]),H=Oe.useMemo(()=>{let G=w.current[0];return G?T.current.get(rr(G.tierId,G.index))?.status==="empty":false},[D]);return {tier:m,series:L,loading:R,atDataStart:H}}function yu(e){let{initialViewport:t,...r}=e,[o,n]=Oe.useState(t),a=yb({...r,viewport:o}),i=Oe.useCallback(c=>n(c),[]),s=Oe.useCallback(c=>n(c),[]);return {viewport:o,onViewportChange:i,jumpTo:s,...a}}var vT={sm:"gap-4 px-6 py-8",md:"gap-5 px-8 py-12",lg:"gap-6 px-10 py-16"},CT={sm:"xs",md:"sm",lg:"md"},ST={sm:ft("bodySm"),md:ft("bodySm"),lg:ft("bodyMd")},wT={sm:"h-10 w-10",md:"h-12 w-12",lg:"h-16 w-16"},NT={sm:20,md:24,lg:32},kT={center:"items-center text-center [&_.empty-state-actions]:justify-center [&_.empty-state-actions]:text-center",start:"items-start text-left [&_.empty-state-actions]:justify-start [&_.empty-state-actions]:text-left"},TT={mesh:"radial-gradient(at 20% 20%, rgba(68, 74, 225, 0.06) 0px, transparent 45%), radial-gradient(at 80% 80%, rgba(68, 74, 225, 0.045) 0px, transparent 45%), radial-gradient(at 50% 50%, rgba(68, 74, 225, 0.03) 0px, transparent 50%)","top-fade":"linear-gradient(to bottom, rgba(68, 74, 225, 0.06) 0%, rgba(68, 74, 225, 0.02) 60%, transparent 100%)",center:"radial-gradient(ellipse 600px 400px at center, rgba(68, 74, 225, 0.06) 0px, transparent 60%)",corners:"radial-gradient(at 0% 0%, rgba(68, 74, 225, 0.06) 0px, transparent 40%), radial-gradient(at 100% 100%, rgba(68, 74, 225, 0.045) 0px, transparent 40%)",bottom:"radial-gradient(ellipse 700px 300px at 50% 100%, rgba(68, 74, 225, 0.06) 0px, transparent 60%)",asymmetric:"radial-gradient(at 15% 30%, rgba(68, 74, 225, 0.06) 0px, transparent 45%), radial-gradient(at 85% 70%, rgba(68, 74, 225, 0.04) 0px, transparent 50%)"};function $s({icon:e,title:t,description:r,primaryAction:o,secondaryAction:n,actions:a,size:i="md",alignment:s="center",variant:c="default",spotlightPattern:l="mesh",fullHeight:u=false,className:d}){let m=i==="sm"?"sm":"md",p=c==="spotlight",g=p?{background:TT[l]}:void 0,f=()=>a?jsxRuntime.jsx("div",{className:"empty-state-actions mt-2 flex flex-wrap items-center gap-3",children:a}):o||n?jsxRuntime.jsxs("div",{className:"empty-state-actions mt-2 flex flex-col gap-3",children:[o&&(o.href?jsxRuntime.jsx(Z,{variant:"secondary",size:m,onPress:o.onPress,isDisabled:o.isDisabled,isLoading:o.isLoading,href:o.href,children:o.label}):jsxRuntime.jsx(Z,{variant:"secondary",size:m,onPress:o.onPress,isDisabled:o.isDisabled,isLoading:o.isLoading,children:o.label})),n&&jsxRuntime.jsx(Ze,{href:n.href||"#",variant:"muted",onPress:n.onPress,className:ft("labelMd"),children:n.label})]}):null;return jsxRuntime.jsxs("section",{"data-testid":"empty-state",role:"status","aria-live":"polite",className:tailwindMerge.twMerge("flex w-full flex-col rounded-xl text-text-primary",vT[i],kT[s],u?"h-full justify-center":"",p?"relative overflow-hidden":"",d),style:g,children:[e&&jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("flex items-center justify-center rounded-full border border-border-muted bg-background-muted text-text-secondary",wT[i]),children:jsxRuntime.jsx(B,{name:e,size:NT[i]})}),jsxRuntime.jsx(Qt,{size:CT[i],tag:"h2",className:"text-text-secondary",children:t}),r&&jsxRuntime.jsx("p",{className:tailwindMerge.twMerge("max-w-xs text-text-secondary whitespace-pre-line",ST[i]),children:r}),f()]})}function LT({selectionState:e,isDisabled:t}){let r=`${Je} w-full h-full flex items-center justify-center rounded-sm forced-color-adjust-none font-semibold`,o={none:"text-text-primary group-hover:bg-background-muted group-pressed:bg-background-muted",middle:["bg-background-selected group-hover:bg-background-muted forced-colors:group-hover:bg-[Highlight]","group-invalid:group-hover:bg-feedback-error-background forced-colors:group-invalid:group-hover:bg-[Mark]","group-pressed:bg-background-muted forced-colors:group-pressed:bg-[Highlight] forced-colors:text-[HighlightText]","group-invalid:group-pressed:bg-feedback-error-background forced-colors:group-invalid:group-pressed:bg-[Mark]"].join(" "),cap:"bg-action-default text-[color:var(--color-action-default-text)] group-invalid:bg-feedback-error-border forced-colors:bg-[Highlight] forced-colors:group-invalid:bg-[Mark] forced-colors:text-[HighlightText]"},n=t?"text-text-disabled forced-colors:text-text-disabled font-light":"";return [r,o[e],n].filter(Boolean).join(" ")}function Ma({errorMessage:e,...t}){return jsxRuntime.jsxs(reactAriaComponents.RangeCalendar,{...t,children:[jsxRuntime.jsx(As,{}),jsxRuntime.jsxs(reactAriaComponents.CalendarGrid,{className:"w-full border-separate [border-spacing:0] [&_td]:p-0 [&_td]:!border-0",children:[jsxRuntime.jsx(Is,{}),jsxRuntime.jsx(reactAriaComponents.CalendarGridBody,{children:r=>jsxRuntime.jsx(reactAriaComponents.CalendarCell,{date:r,className:"selection-start:rounded-s-full selection-end:rounded-e-full [td:last-child_&]:rounded-e-end group h-9 w-9 cursor-default text-sm border-0 outside-month:text-text-disabled invalid:selected:bg-feedback-error-background forced-colors:selected:bg-[Highlight] forced-colors:selected:text-[HighlightText] forced-colors:invalid:selected:bg-[Mark] [td:first-child_&]:rounded-s-full [&]:border-0",children:({formattedDate:o,isSelected:n,isSelectionStart:a,isSelectionEnd:i,isFocusVisible:s,isDisabled:c})=>jsxRuntime.jsx("span",{className:LT({selectionState:n&&(a||i)?"cap":n?"middle":"none",isDisabled:c}),children:o})})})]}),e&&jsxRuntime.jsx(reactAriaComponents.Text,{slot:"errorMessage",className:"text-sm text-feedback-error-text",children:e})]})}function Sb(e){return e==="brand"?"primary":e==="default"||e==="secondary"||!e?"subtle":e}var IT={sm:"h-[var(--control-sm-height)] text-xs",md:"h-[var(--control-md-height)] text-sm",lg:"h-[var(--control-lg-height)] text-base",xl:"h-[var(--control-xl-height)] text-lg"},FT={sm:14,md:16,lg:18,xl:20},BT=({isSelected:e,isFirst:t,isLast:r,isDisabled:o,variant:n="subtle"})=>{let a=Sb(n),i=a==="primary"?"focus-visible:outline-action-primary":"focus-visible:outline-[color:var(--color-action-secondary-text)]";return a==="subtle"?tailwindMerge.twMerge(Je(),"focus-visible:outline-[color:var(--color-action-secondary-text)]","px-3 text-center transition cursor-pointer forced-color-adjust-none -ml-px first:ml-0 flex items-center justify-center h-full gap-2",e?"bg-background-muted text-text-primary font-medium forced-colors:!bg-[Highlight] forced-colors:!text-[HighlightText]":"text-text-secondary hover:bg-background-hover pressed:bg-background-hover forced-colors:!bg-[ButtonFace] forced-colors:!text-[ButtonText]",!r&&"border-r border-border-muted",o&&"bg-background-muted text-text-disabled forced-colors:!bg-[ButtonFace] forced-colors:!text-[GrayText] border-border-muted forced-colors:border-[GrayText] cursor-not-allowed"):tailwindMerge.twMerge(Je(),i,"px-3 text-center transition cursor-pointer forced-color-adjust-none -ml-px first:ml-0 flex items-center justify-center h-full gap-2",e?"bg-action-primary text-[color:var(--color-action-primary-text)] font-semibold forced-colors:!bg-[Highlight] forced-colors:!text-[HighlightText]":"text-text-secondary hover:bg-background-hover pressed:bg-background-hover forced-colors:!bg-[ButtonFace] forced-colors:!text-[ButtonText] hover:font-semibold",!r&&"border-r border-border-muted",o&&"bg-background-muted text-text-disabled forced-colors:!bg-[ButtonFace] forced-colors:!text-[GrayText] border-border-muted forced-colors:border-[GrayText] cursor-not-allowed")};function tl({options:e,value:t,onChange:r,size:o="md",className:n,isDisabled:a,variant:i="subtle",iconOnly:s=false,"aria-label":c}){return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("inline-flex overflow-hidden rounded-[var(--control-border-radius)]",Sb(i)==="subtle"?"border border-border-muted":"border-2 border-border-muted",IT[o],n),role:"group","aria-label":c,children:e.map((l,u)=>{let d=s&&!!l.icon;return jsxRuntime.jsxs(reactAriaComponents.ToggleButton,{isSelected:t===l.id,onChange:()=>r(l.id),className:BT({isSelected:t===l.id,isFirst:u===0,isLast:u===e.length-1,isDisabled:a,variant:i}),isDisabled:a,"aria-label":l.label,children:[l.icon&&jsxRuntime.jsx(B,{name:l.icon,size:FT[o]}),d?jsxRuntime.jsx("span",{className:"sr-only",children:l.label}):jsxRuntime.jsx("span",{className:"inline-flex flex-col items-center after:content-[attr(data-label)] after:font-semibold after:h-0 after:overflow-hidden after:invisible","data-label":l.label,children:l.label})]},l.id)})})}function WT(e){return e instanceof Date&&!Number.isNaN(e.getTime())}function wu(e){return WT(e)?e:(console.warn("Invalid date detected in TimeControls, using fallback:",e),new Date)}var Pb={FIVE_MINUTES:0,FIFTEEN_MINUTES:1,HOUR:2,DAY:3,WEEK:4,MONTH:5,YEAR:6},GT=[{id:"FIFTEEN_MINUTES",label:"15m"},{id:"HOUR",label:"1h"},{id:"DAY",label:"1d"},{id:"WEEK",label:"1w"}];function rl({dateRange:e,onDateRangeChange:t,windowSize:r,onWindowSizeChange:o,showWindowSize:n=true,showRangeSelector:a=true,allowDatePicker:i=false,lockWindowSize:s=false,restrictToSingleDay:c=false,presetRanges:l=[],windowSizeOptions:u=GT,autoAdjustWindowSize:d=false,className:m}){let[p,g]=Oe.useState(0),f=Oe.useRef(null),[h,b]=Oe.useState(false),x=E=>{let W=(E.before.getTime()-E.after.getTime())/(1e3*60*60);return W<=24?"FIFTEEN_MINUTES":W<=72||W<=168?"HOUR":("DAY")};Oe.useEffect(()=>{if(d&&!h&&o){let E=x(e);o(E);}},[e,d,h,o]);let y=E=>l.find(M=>{let W=M.getRange();return Math.abs(W.after.getTime()-E.after.getTime())<1e3*60*60*24&&Math.abs(W.before.getTime()-E.before.getTime())<1e3*60*60*24})?.id,[v,S]=Oe.useState(()=>y(e)),w=wu(e.after),N=wu(e.before),T=new Date(N);T.setDate(T.getDate()-1);let k={start:date.fromDate(w,date.getLocalTimeZone()),end:date.fromDate(T,date.getLocalTimeZone())};Oe.useEffect(()=>{let E=new ResizeObserver(M=>{for(let W of M)g(W.contentRect.width);});return f.current&&E.observe(f.current),()=>{f.current&&E.unobserve(f.current);}},[]);let P=[...u].sort((E,M)=>Pb[E.id]-Pb[M.id]),A=E=>{let M=E.toString(),W=l.find(I=>I.id===M);W&&(S(M),b(false),t(W.getRange(),{presetId:M}));},D=E=>{if(E?.start&&E?.end){S(void 0);let M=new Date(E.start.year,E.start.month-1,E.start.day,0,0,0,0),W=new Date(E.end.year,E.end.month-1,E.end.day+1,0,0,0,0);t({after:M,before:W});}},L=E=>{if(E){S(void 0);let M=new Date(E.year,E.month-1,E.day,0,0,0,0),W=new Date(E.year,E.month-1,E.day+1,0,0,0,0);t({after:M,before:W});}},R=E=>{o&&(b(true),o(E.toString()));},H=()=>{if(l.length>0){let E=l[0];S(E.id),b(false),t(E.getRange(),{presetId:E.id});}},G=(E,M=0)=>{let W=wu(E),I=new Date(W);return M!==0&&I.setDate(I.getDate()+M),I.toLocaleDateString("en-US")},Y=P.map(E=>({id:E.id,label:E.label,value:E.id})),U=l.map(E=>({id:E.id,label:E.label,value:E.id})),q=s?jsxRuntime.jsx("div",{className:"flex items-center rounded-md border border-border-muted bg-background-muted px-3 py-2 text-sm text-text-secondary",children:P.find(E=>E.id===r)?.label||r}):jsxRuntime.jsx(go,{className:"w-full md:w-auto",selectedKey:r,onSelectionChange:R,items:Y,size:"md","aria-label":"Select Window Size",children:E=>jsxRuntime.jsx(_t,{id:E.id,"aria-label":E.label,size:"md",children:E.label},E.id)}),j=c?jsxRuntime.jsx("div",{className:"flex items-center",children:jsxRuntime.jsxs(reactAriaComponents.DialogTrigger,{children:[jsxRuntime.jsxs(Z,{className:"border-l pl-2 pr-2 hover:border-border-default hover:bg-background-muted hover:text-text-link-hover",variant:"secondary",children:[jsxRuntime.jsx(B,{name:"CalendarBlank",size:18}),jsxRuntime.jsx("span",{className:"ml-2 hidden md:block",children:G(e.after)})]}),jsxRuntime.jsx(st,{className:"w-auto p-3",disableGroup:true,children:jsxRuntime.jsx(ha,{"aria-label":"Select date",value:date.parseDate(w.toISOString().split("T")[0]),onChange:L})})]})}):jsxRuntime.jsxs("div",{className:"flex items-center",children:[jsxRuntime.jsxs(reactAriaComponents.DialogTrigger,{children:[jsxRuntime.jsxs(Z,{className:"rounded-r-none border-l pl-2 pr-2 hover:border-border-default hover:bg-background-muted hover:text-text-link-hover",variant:"secondary",children:[jsxRuntime.jsx(B,{name:"CalendarBlank",size:18}),!v&&jsxRuntime.jsx("span",{className:"ml-2 hidden md:block",children:`${G(e.after)} - ${G(e.before,-1)}`})]}),jsxRuntime.jsx(st,{className:"w-auto p-3",disableGroup:true,children:jsxRuntime.jsx(Ma,{"aria-label":"Date range calendar",value:k,onChange:D})})]}),!v&&jsxRuntime.jsx(Z,{variant:"ghost",size:"md",onPress:H,children:"Reset"})]}),Q=p<600;return jsxRuntime.jsx("div",{ref:f,className:tailwindMerge.twMerge("flex w-full flex-wrap items-center justify-between gap-4",m),children:Q?jsxRuntime.jsxs("div",{className:"flex w-full justify-between",children:[jsxRuntime.jsxs("div",{className:"flex items-center",children:[i&&j,a&&v!==void 0&&jsxRuntime.jsx(go,{selectedKey:v,onSelectionChange:A,items:U,size:"md","aria-label":"Select Date Range",children:E=>jsxRuntime.jsx(_t,{id:E.id,size:"md",children:E.label},E.id)})]}),jsxRuntime.jsx("div",{className:"flex items-center",children:n&&r&&q})]}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsxs("div",{className:"flex items-center gap-4",children:[i&&j,a&&v!==void 0&&jsxRuntime.jsx(tl,{options:l.map(E=>({id:E.id,label:E.label})),value:v,onChange:A,size:"sm",variant:"secondary","aria-label":"Select Date Range"})]}),jsxRuntime.jsx("div",{className:"flex items-center",children:n&&r&&q})]})})}var XT=1440*60*1e3,jT=6e4,Ln=(e,t)=>({startMs:t-e*XT,endMs:t}),Da=e=>({after:new Date(e.startMs),before:new Date(e.endMs)});function Rb({source:e,initialRange:t,viewportEnd:r,yFormatter:o,yDomain:n,referenceLines:a,emptyState:i,presetRanges:s,tierToWindow:c,windowSizeOptions:l,height:u=360,hint:d,dataBounds:m,children:p}){let[g,f]=Oe.useState(900),h=m?.endMs,[b,x]=Oe.useState(()=>h??Date.now());Oe.useEffect(()=>{if(h!=null){x(h);return}x(Date.now());let fe=setInterval(()=>x(Date.now()),jT);return ()=>clearInterval(fe)},[h]);let y=r?.getTime()??h,v=t?.days??30,S=Oe.useMemo(()=>Ln(v,y??Date.now()),[v,y]),w=b,N=Oe.useMemo(()=>({startMs:m?.startMs??0,endMs:b}),[m?.startMs,b]),T=fe=>{let re=Math.min(fe.endMs-fe.startMs,N.endMs-N.startMs),ce=Math.max(Math.min(fe.endMs,N.endMs),N.startMs+re);return {startMs:ce-re,endMs:ce}},[k,P]=Oe.useState(null),[A,D]=Oe.useState(null),L=k??S,R=yu({fetchTile:e.fetchTile,ladder:e.ladder,nativeMs:e.nativeMs,initialViewport:S,widthPx:g,maxFutureMs:w,tileCostSeriesCount:e.tileCostSeriesCount,resetKey:e.resetKey}),H=Oe.useMemo(()=>[{id:"5y",label:"5 years",getRange:()=>Da(Ln(5*365,y??Date.now()))},{id:"year",label:"Year",getRange:()=>Da(Ln(365,y??Date.now()))},{id:"month",label:"Month",getRange:()=>Da(Ln(30,y??Date.now()))},{id:"week",label:"Week",getRange:()=>Da(Ln(7,y??Date.now()))},{id:"day",label:"24h",getRange:()=>Da(Ln(1,y??Date.now()))}],[y]),G=s??H,Y=()=>{if(A&&"presetId"in A){let fe=G.find(re=>re.id===A.presetId);if(fe){let re=fe.getRange();return {startMs:re.after.getTime(),endMs:re.before.getTime()}}}return A&&"range"in A?A.range:Ln(v,y??Date.now())},{line:U,coverage:q,renderTier:j,targetTier:Q,isFallback:E,isStale:M}=R.series,W=j?j.bucketMs*1.5:0,I=fe=>fe==null?"\u2014":new Date(fe).toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"}),C=(fe,re)=>{let ce=re-fe<1728e5?{month:"short",day:"numeric",hour:"numeric",minute:"2-digit"}:{month:"short",day:"numeric",year:"numeric"},xe=new Intl.DateTimeFormat("en-US",ce);return `${xe.format(new Date(fe))} \u2013 ${xe.format(new Date(re))}`},F=R.viewport.startMs!==L.startMs||R.viewport.endMs!==L.endMs,O=M||R.loading&&q.earliestMs==null,K=(R.viewport.endMs-R.viewport.startMs)*.03,te=!O&&q.earliestMs!=null&&q.earliestMs>R.viewport.startMs+K,de=!R.loading&&q.earliestMs==null&&q.latestMs==null&&U.length===0&&!M,_=p({series:R.series,gapMs:W}),ae=Oe.isValidElement(_)&&_.type===Oe.Fragment?_.props.children:_;return jsxRuntime.jsxs("div",{className:"flex flex-col gap-3",children:[jsxRuntime.jsx(rl,{dateRange:Da(R.viewport),onDateRangeChange:(fe,re)=>{let ce=T({startMs:fe.after.getTime(),endMs:fe.before.getTime()});D(re?.presetId?{presetId:re.presetId}:{range:ce}),P(ce),R.jumpTo(ce);},windowSize:c[Q.id],windowSizeOptions:l,lockWindowSize:true,presetRanges:G}),jsxRuntime.jsxs("div",{className:"flex flex-wrap items-center gap-3 text-xs text-text-secondary",children:[jsxRuntime.jsxs("span",{children:["Window"," ",jsxRuntime.jsx("span",{className:"font-medium text-text-primary",children:C(R.viewport.startMs,R.viewport.endMs)})]}),jsxRuntime.jsx("span",{className:"text-text-tertiary",children:"\u2022"}),jsxRuntime.jsxs("span",{children:["Resolution ",jsxRuntime.jsx("span",{className:"font-medium text-text-primary",children:j?.id??Q.id}),E&&jsxRuntime.jsxs("span",{className:"text-text-tertiary",children:[" \xB7 loading ",Q.id]})]}),R.loading&&jsxRuntime.jsx("span",{className:"text-text-tertiary",children:"loading\u2026"}),te&&jsxRuntime.jsxs("span",{className:"text-text-tertiary",children:["showing available history from ",I(q.earliestMs)]}),!te&&!O&&R.atDataStart&&jsxRuntime.jsx("span",{className:"text-text-tertiary",children:"no earlier data loaded"}),F&&jsxRuntime.jsx(Z,{variant:"ghost",size:"sm",onPress:()=>{let fe=T(Y());P(fe),R.jumpTo(fe);},children:"\u27F2 Reset"})]}),jsxRuntime.jsx("div",{className:"relative overflow-hidden rounded-md border border-border-subtle",style:{height:u},children:de?jsxRuntime.jsx($s,{title:i.title,description:i.description}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(Zs,{viewport:R.viewport,panBounds:N,onViewportChange:R.onViewportChange,onPlotWidthChange:f,...o&&{yFormatter:o},...n&&{yDomain:n},...a&&{referenceLines:a},children:ae}),R.loading&&jsxRuntime.jsx("div",{className:"pointer-events-none absolute inset-x-0 top-0 h-0.5 animate-pulse bg-[var(--color-viz-categorical-1)] opacity-60"})]})}),d&&jsxRuntime.jsx("p",{className:"text-xs text-text-tertiary",children:d})]})}function Si({count:e,label:t="results",isLoading:r=false,className:o=""}){if(r)return jsxRuntime.jsx("div",{className:`flex items-center ${o}`,children:jsxRuntime.jsx(J,{width:80,height:16})});let n=t.endsWith("s")?t.slice(0,-1):t,a=e===1?n:t;return jsxRuntime.jsxs("div",{className:`text-sm text-text-secondary whitespace-nowrap ${o}`,children:[e.toLocaleString()," ",a]})}var e1=e=>{let t=Vt({isInvalid:e.isInvalid,isDisabled:e.isDisabled,isFocused:e.isFocused,transparent:e.transparent,size:e.size}),r=[e.showSearchIcon?"":"pl-3",e.isClearable&&e.hasValue||e.isPassword?"pr-8":"pr-3"].join(" ");return tailwindMerge.twMerge(t,r,e.className)};function Er({label:e,description:t,errorMessage:r,size:o="md",tooltip:n,isRequired:a,transparent:i,showSearchIcon:s,isClearable:c,onClear:l,type:u,validationResult:d,reserveErrorSpace:m=true,isLoading:p=false,descriptionPlacement:g="below",...f}){let[h,b]=Oe__namespace.default.useState(false),{isFocused:x,handleFocus:y,handleBlur:v}=Tr(),S=u==="password",w=ws(p,300);return jsxRuntime.jsx(reactAriaComponents.TextField,{...f,isRequired:a,className:ke(f.className,"group flex flex-col"),children:({isDisabled:N,isInvalid:T})=>jsxRuntime.jsxs("div",{className:"flex flex-col",children:[e&&jsxRuntime.jsx(ze,{size:o,tooltip:n,description:g==="tooltip"||g==="inline"?t:void 0,descriptionPlacement:g,isRequired:a,children:e}),jsxRuntime.jsxs(ht,{children:[s&&jsxRuntime.jsx("div",{className:"pointer-events-none absolute top-1/2 -translate-y-1/2 transform flex items-center z-10",style:{left:9},children:(()=>{let k={sm:14,md:16,lg:18,xl:20}[o];return w?jsxRuntime.jsx(fo,{size:k,color:"text-text-secondary"}):jsxRuntime.jsx(B,{name:"MagnifyingGlass",size:k,className:`transition-colors ${x?"text-action-brand":"text-text-secondary"}`})})()}),jsxRuntime.jsx(ks,{size:o,disabled:N,type:S?h?"text":"password":u,name:f.name,autoComplete:f.autoComplete,value:f.value,defaultValue:f.defaultValue,placeholder:f.placeholder,onFocus:k=>y(k,f.onFocus),onBlur:k=>v(k,f.onBlur),onChange:k=>f.onChange?.(k.target.value),style:s?{paddingLeft:{sm:28,md:32,lg:36,xl:37}[o]}:void 0,className:e1({isInvalid:T,isDisabled:N,isFocused:x,size:o,transparent:i,showSearchIcon:s,isClearable:c,hasValue:!!f.value,isPassword:S,className:typeof f.className=="string"?f.className:void 0})}),c&&f.value&&!N&&jsxRuntime.jsx(ai,{onClick:()=>{l?l():f.onChange&&f.onChange("");},size:o}),S&&!N&&jsxRuntime.jsx("button",{type:"button",onClick:()=>b(!h),className:"absolute right-3 top-1/2 -translate-y-1/2 transform text-text-secondary hover:text-text-primary","aria-label":h?"Hide password":"Show password",onMouseDown:k=>{k.preventDefault(),k.stopPropagation();},children:jsxRuntime.jsx(B,{name:h?"EyeSlash":"Eye",size:o==="sm"?16:20,className:"text-text-primary"})})]}),m?jsxRuntime.jsx("div",{className:"mt-1 min-h-[20px]",children:typeof r=="string"?jsxRuntime.jsx(be,{size:o,children:r}):typeof r=="function"&&d?jsxRuntime.jsx(be,{size:o,children:r(d)}):t&&g==="below"?jsxRuntime.jsx(Te,{size:o,children:t}):null}):jsxRuntime.jsx(jsxRuntime.Fragment,{children:typeof r=="string"?jsxRuntime.jsx(be,{size:o,className:"mt-1",children:r}):typeof r=="function"&&d?jsxRuntime.jsx(be,{size:o,className:"mt-1",children:r(d)}):t&&g==="below"?jsxRuntime.jsx(Te,{size:o,className:"mt-1",children:t}):null})]})})}function In({value:e,onChange:t,onClear:r,placeholder:o="Search...",size:n="sm",className:a="",isLoading:i=false}){return jsxRuntime.jsx("div",{className:`flex-1 min-w-0 sm:max-w-sm ${a}`,children:jsxRuntime.jsx(Er,{value:e,onChange:t,placeholder:o,showSearchIcon:true,isClearable:!!e&&!!r,onClear:r,size:n,"aria-label":o,reserveErrorSpace:false,isLoading:i})})}function wi({value:e,options:t,onChange:r,direction:o,onDirectionChange:n,showLabel:a=true,size:i="sm",className:s="",compact:c=false}){let[l,u]=Oe.useState(false),d=o!==void 0&&n!==void 0,m=t.find(p=>p.value===e);return c?jsxRuntime.jsxs("div",{className:`flex items-center gap-2 ${s}`,children:[jsxRuntime.jsx(Z,{variant:"secondary",size:i,icon:"ArrowsDownUp","aria-label":`Sort by: ${m?.label||"Select"}`,onPress:()=>u(true)}),jsxRuntime.jsx(lt,{isOpen:l,onClose:()=>u(false),title:"Sort by",contentPadding:false,children:jsxRuntime.jsx(reactAriaComponents.ListBox,{items:t.map(p=>({id:p.value,label:p.label,value:p.value})),className:"w-full bg-background-surface p-0 outline-0 [&_[role=option]]:border-b [&_[role=option]]:border-border-default [&_[role=option]:last-child]:border-0 [&_[role=option]]:!px-6 [&_[role=option]]:!py-4 [&_[role=option]]:rounded-none",selectionMode:"single",selectedKeys:e?[e]:[],onSelectionChange:p=>{let g=Array.from(p)[0];g!=null&&(r(g),u(false));},children:p=>jsxRuntime.jsx(_t,{id:p.id,textValue:p.label,children:jsxRuntime.jsx("span",{className:"overflow-hidden text-ellipsis whitespace-nowrap min-w-0 flex-1",children:p.label})},p.id)})})]}):jsxRuntime.jsxs("div",{className:`flex items-center gap-2 ${s}`,children:[a&&jsxRuntime.jsx("span",{className:"text-sm text-text-secondary whitespace-nowrap",children:"Sort by:"}),jsxRuntime.jsx(go,{selectedKey:e,onSelectionChange:p=>r(p),size:i,className:"min-w-32",items:t.map(p=>({id:p.value,label:p.label,value:p.value})),renderItem:p=>p.label,"aria-label":"Sort by",reserveErrorSpace:false}),d&&jsxRuntime.jsx(Z,{variant:"ghost",size:i,onClick:()=>n(o==="asc"?"desc":"asc"),"aria-label":`Sort ${o==="asc"?"descending":"ascending"}`,className:"p-1.5",children:o==="asc"?jsxRuntime.jsx(lucideReact.ArrowUp,{className:"w-4 h-4"}):jsxRuntime.jsx(lucideReact.ArrowDown,{className:"w-4 h-4"})})]})}function Ab({search:e,searchMobileMode:t="expanded",filters:r=[],onRemoveFilter:o,onClearAllFilters:n,onManageFilters:a,exportControl:i,maxVisibleFilterChips:s=3,sort:c,resultsCount:l,leftControls:u,onManageColumns:d,columnPicker:m,customControls:p,actions:g,interactionMode:f="auto",sticky:h,stickyTop:b="0",zIndex:x=10,className:y="",style:v}){let S=r.length>0;if(!(e||S||a||c||l||u||d||m||p||g||i))return null;let N=h?"sticky bg-background-surface":"",T=h?{top:b,zIndex:x}:{};return jsxRuntime.jsxs("div",{className:`@container flex flex-col gap-3 bg-background-surface py-3 border-b border-border-default ${N} ${y}`,style:{...v,...T},children:[jsxRuntime.jsxs("div",{className:"hidden @[640px]:flex @[640px]:items-center @[640px]:justify-between @[640px]:gap-4",children:[jsxRuntime.jsxs("div",{className:"flex items-center gap-3 flex-1 min-w-0",children:[u,u&&l&&jsxRuntime.jsx("div",{className:"h-4 w-px bg-border-default"}),l&&jsxRuntime.jsx(Si,{count:l.count,label:l.label,isLoading:l.isLoading}),l&&c&&jsxRuntime.jsx("div",{className:"h-4 w-px bg-border-default"}),c&&jsxRuntime.jsx(wi,{value:c.value,options:c.options,onChange:c.onChange,showLabel:c.showLabel,direction:c.direction,onDirectionChange:c.onDirectionChange}),d?jsxRuntime.jsx(Z,{variant:"secondary",size:"sm",icon:"Columns",onClick:d,children:"Columns"}):m,S&&o&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[r.slice(0,s).map(k=>jsxRuntime.jsxs($r,{variant:"primary",size:"sm",onRemove:()=>o(k.id),isRemovable:true,children:[k.label,": ",k.value]},k.id)),r.length>s&&a&&jsxRuntime.jsxs(Z,{variant:"ghost",size:"sm",onClick:a,className:"text-text-secondary hover:text-text-primary whitespace-nowrap",children:["+",r.length-s," more"]}),n&&jsxRuntime.jsx(Z,{variant:"ghost",size:"sm",onClick:n,className:"text-text-secondary hover:text-text-primary whitespace-nowrap",children:"Clear all"})]})]}),jsxRuntime.jsx("div",{className:"flex items-center gap-3 flex-shrink-0",children:p||jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[g&&g.items.length>0&&jsxRuntime.jsx(jsxRuntime.Fragment,{children:g.items.map(k=>jsxRuntime.jsx(Z,{variant:k.variant||"secondary",size:"sm",icon:k.icon,onPress:k.onClick,isDisabled:k.disabled,children:k.label},k.id))}),e&&jsxRuntime.jsx("div",{className:"w-64",children:jsxRuntime.jsx(In,{value:e.value,onChange:e.onChange,onClear:e.onClear,placeholder:e.placeholder,isLoading:e.isLoading})}),a&&jsxRuntime.jsx(Z,{variant:"secondary",size:"sm",icon:"Sliders",badgeNumber:r.length>0?r.length:void 0,onClick:a,children:"Filters"}),i&&jsxRuntime.jsx(Z,{variant:"secondary",size:"sm",icon:"Upload",onClick:i.onClick,isDisabled:i.isDisabled,children:i.label})]})})]}),jsxRuntime.jsxs("div",{className:"@[640px]:hidden",children:[jsxRuntime.jsx("div",{className:"flex flex-col gap-3 mb-3",children:jsxRuntime.jsx("div",{className:"flex items-center gap-3",children:p?jsxRuntime.jsx("div",{className:"flex-1",children:p}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[g&&g.items.length>0&&jsxRuntime.jsx(fa,{items:g.items.map(k=>({id:k.id,name:k.label,iconName:k.icon,variant:k.variant==="destructive"?"destructive":"primary",disabled:k.disabled,onAction:k.onClick})),align:"left",size:"sm",children:jsxRuntime.jsx(Z,{variant:"secondary",size:"sm",icon:"DotsThreeVertical","aria-label":g.menuLabel||"Actions"})}),e&&jsxRuntime.jsx("div",{className:"flex-1",children:jsxRuntime.jsx(In,{value:e.value,onChange:e.onChange,onClear:e.onClear,placeholder:e.placeholder,isLoading:e.isLoading})}),a&&jsxRuntime.jsx(Z,{variant:"secondary",size:"sm",icon:"Sliders",badgeNumber:r.length>0?r.length:void 0,onClick:a,"aria-label":`Filters${r.length>0?` (${r.length} active)`:""}`}),i&&jsxRuntime.jsx(Z,{variant:"secondary",size:"sm",icon:"Upload",onClick:i.onClick,isDisabled:i.isDisabled,children:i.label})]})})}),jsxRuntime.jsxs("div",{className:"flex items-center justify-between gap-3",children:[jsxRuntime.jsxs("div",{className:"flex items-center gap-3",children:[u,l&&jsxRuntime.jsx(Si,{count:l.count,label:l.label,isLoading:l.isLoading})]}),jsxRuntime.jsx("div",{className:"flex items-center gap-2",children:c&&jsxRuntime.jsx(wi,{value:c.value,options:c.options,onChange:c.onChange,showLabel:false,direction:c.direction,onDirectionChange:c.onDirectionChange,compact:f!=="desktop"})})]})]})]})}function Ib({filters:e,onRemove:t,onClearAll:r,onManageFilters:o,maxVisibleChips:n=3,mode:a="chips",showManageButton:i=true,size:s="sm",className:c=""}){let l=e.length>0,u=e.slice(0,n),d=Math.max(0,e.length-n),m=d>0,p=a==="button"&&!!o,g=a==="chips"&&i&&!!o;if(!l&&!p&&!g)return null;let f=p&&jsxRuntime.jsxs(Z,{variant:"secondary",size:s,onClick:o,className:"whitespace-nowrap",children:[e.length," ",e.length===1?"filter":"filters"]}),h=jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[g&&jsxRuntime.jsx(Z,{variant:"secondary",size:s,icon:"Sliders",onClick:o,className:"whitespace-nowrap",children:"Filters"}),l&&u.map(x=>jsxRuntime.jsxs($r,{variant:"secondary",size:s,onRemove:()=>t(x.id),isRemovable:true,children:[x.label,": ",x.value]},x.id)),l&&m&&o&&jsxRuntime.jsxs(Z,{variant:"ghost",size:s,onClick:o,className:"text-text-secondary hover:text-text-primary whitespace-nowrap",children:["+",d," more"]}),l&&r&&jsxRuntime.jsx(Z,{variant:"ghost",size:s,onClick:r,className:"text-text-secondary hover:text-text-primary whitespace-nowrap",children:"Clear all"})]}),b=a==="button"?f:h;return jsxRuntime.jsx("div",{className:`flex flex-wrap items-center gap-2 ${c}`,children:b})}function s1(e,t,r){return {field:e,operator:t,value:r}}function l1(e,t="AND"){return {logic:t,conditions:e}}function Ni(){return {logic:"AND",conditions:[]}}function il(e){return !e||e.conditions.length===0?true:e.conditions.every(t=>"conditions"in t?il(t):false)}function c1(e,t){if(!e)return [];let r=new Map(t?.map(i=>[i.field,i])),o=new Map;function n(i){if("conditions"in i)i.conditions.forEach(s=>n(s));else {let s=o.get(i.field)||[];s.push(i),o.set(i.field,s);}}e.conditions.forEach(i=>n(i));let a=[];for(let[i,s]of o.entries()){let c=r.get(i),l=c?.label||i,u=[],d=[],m=[];for(let p of s)p.operator==="in"&&Array.isArray(p.value)?u.push(...p.value):p.operator==="eq"?typeof p.value!="boolean"&&!Array.isArray(p.value)?u.push(p.value):m.push(p):["gte","gt","lte","lt"].includes(p.operator)?d.push({operator:p.operator,value:typeof p.value=="boolean"||Array.isArray(p.value)?String(p.value):p.value}):m.push(p);if(u.length>0){let g=Array.from(new Set(u)).map(f=>c?.values?.find(b=>String(b.value)===String(f))?.label??f);a.push({id:`${i}-in`,label:l,value:g.join(", ")});}if(d.length>0){let p=d.find(f=>f.operator==="gte"||f.operator==="gt"),g=d.find(f=>f.operator==="lte"||f.operator==="lt");if(p&&g){let f=p.operator==="gte"?"\u2265":">",h=g.operator==="lte"?"\u2264":"<";a.push({id:`${i}-range`,label:l,value:`${f} ${p.value} and ${h} ${g.value}`});}else for(let f of d){let h;f.operator==="gte"?h="\u2265":f.operator==="gt"?h=">":f.operator==="lte"?h="\u2264":h="<",a.push({id:`${i}-${f.operator}`,label:l,value:`${h} ${f.value}`});}}for(let p of m){let g;p.operator==="neq"?g=`\u2260 ${p.value}`:p.operator==="contains"?g=`contains "${p.value}"`:p.operator==="startsWith"?g=`starts with "${p.value}"`:p.operator==="endsWith"?g=`ends with "${p.value}"`:g=String(p.value),a.push({id:`${i}-${p.operator}`,label:l,value:g});}}return a}function Qo(e,t){let r=e||Ni();return {...r,conditions:[...r.conditions,t]}}function Fn(e,t){if(!e)return Ni();let r=e.conditions.filter(o=>"conditions"in o?Fn(o,t).conditions.length>0:o.field!==t);return {...e,conditions:r}}function Bn(e){if(!e)return [];let t=new Set;function r(o){"conditions"in o?o.conditions.forEach(r):t.add(o.field);}return e.conditions.forEach(r),Array.from(t)}function Bb({label:e,description:t,errorMessage:r,size:o="md",tooltip:n,isRequired:a,isDisabled:i,isInvalid:s,showCalendar:c=true,reserveErrorSpace:l=true,validationResult:u,className:d,...m}){let[p,g]=Oe.useState(false),f=h=>{m.onChange&&h&&m.onChange(h),g(false);};return jsxRuntime.jsxs(reactAriaComponents.DateField,{...m,isDisabled:i,isRequired:a,isInvalid:s,className:ke(d,"flex flex-col gap-1"),children:[e&&jsxRuntime.jsx(ze,{size:o,tooltip:n,isRequired:a,children:e}),jsxRuntime.jsx(ht,{children:jsxRuntime.jsxs("div",{className:"relative w-full",children:[jsxRuntime.jsx(ki,{size:o,isDisabled:i,isInvalid:s,hasCalendar:c}),c&&!i&&jsxRuntime.jsxs(reactAriaComponents.DialogTrigger,{isOpen:p,onOpenChange:g,children:[jsxRuntime.jsx(Z,{variant:"unstyled",className:"absolute right-2 top-1/2 -translate-y-1/2 flex h-8 w-8 items-center justify-center rounded hover:bg-background-hover text-text-secondary hover:text-text-primary transition-colors","aria-label":"Open calendar",children:jsxRuntime.jsx(B,{name:"Calendar",size:18})}),jsxRuntime.jsx(reactAriaComponents.Popover,{className:"bg-background-surface rounded-lg border border-border-default shadow-xl",children:jsxRuntime.jsx(reactAriaComponents.Dialog,{className:"p-4 outline-none",children:jsxRuntime.jsx(ha,{value:m.value,onChange:f,minValue:m.minValue,maxValue:m.maxValue,isDisabled:i,isReadOnly:m.isReadOnly,isDateUnavailable:m.isDateUnavailable})})})]})]})}),l?jsxRuntime.jsx("div",{className:"mt-1 min-h-[20px]",children:typeof r=="string"?jsxRuntime.jsx(be,{size:o,children:r}):typeof r=="function"&&u?jsxRuntime.jsx(be,{size:o,children:r(u)}):t?jsxRuntime.jsx(Te,{size:o,children:t}):null}):jsxRuntime.jsx(jsxRuntime.Fragment,{children:typeof r=="string"?jsxRuntime.jsx(be,{size:o,className:"mt-1",children:r}):typeof r=="function"&&u?jsxRuntime.jsx(be,{size:o,className:"mt-1",children:r(u)}):t?jsxRuntime.jsx(Te,{size:o,className:"mt-1",children:t}):null})]})}function x1({isPlaceholder:e,isDisabled:t,size:r="md"}){return tailwindMerge.twMerge("inline-block box-content px-0.5 rounded outline-none tabular-nums text-center transition-colors",{sm:"text-base md:text-xs",md:"text-base md:text-sm",lg:"text-base",xl:"text-lg"}[r],e?"text-text-disabled italic":"text-text-primary",t?"text-text-disabled cursor-not-allowed":"cursor-text",!t&&"hover:bg-background-hover","data-[focused]:bg-background-selected data-[focused]:text-text-primary")}function ki({size:e="md",isDisabled:t,isInvalid:r,hasCalendar:o,className:n,...a}){return jsxRuntime.jsx(reactAriaComponents.DateInput,{className:tailwindMerge.twMerge(Vo({isInvalid:r,isDisabled:t}),"px-3 py-2 flex items-center gap-0.5 w-full",o&&"pr-10",n),...a,children:i=>jsxRuntime.jsx(reactAriaComponents.DateSegment,{segment:i,className:x1({isPlaceholder:i.isPlaceholder,isDisabled:!i.isEditable||t,size:e})})})}function sl({label:e,description:t,errorMessage:r,...o}){return jsxRuntime.jsxs(reactAriaComponents.DateRangePicker,{...o,className:ke(o.className,"group flex flex-col gap-1"),children:[e&&jsxRuntime.jsx(ze,{children:e}),jsxRuntime.jsxs(yf,{className:"w-auto min-w-[208px]",children:[jsxRuntime.jsx(ki,{slot:"start",className:"px-2 py-1.5 text-sm"}),jsxRuntime.jsx("span",{"aria-hidden":"true",className:"text-text-primary group-disabled:text-text-disabled forced-colors:text-[ButtonText] group-disabled:forced-colors:text-[GrayText]",children:"\u2013"}),jsxRuntime.jsx(ki,{slot:"end",className:"flex-1 px-2 py-1.5 text-sm"}),jsxRuntime.jsx(Z,{variant:"icon",className:"mr-1 w-6 rounded outline-offset-0",children:jsxRuntime.jsx(lucideReact.CalendarIcon,{"aria-hidden":true,className:"h-4 w-4"})})]}),t&&jsxRuntime.jsx(Te,{children:t}),typeof r=="string"?jsxRuntime.jsx(be,{children:r}):null,jsxRuntime.jsx(st,{children:jsxRuntime.jsx(Ma,{})})]})}var T1=e=>{let t=Vt({isInvalid:e.isInvalid,isDisabled:e.isDisabled,isFocused:e.isFocused,transparent:e.transparent,size:e.size});return tailwindMerge.twMerge(t,"pr-9","[appearance:textfield] [&::-webkit-outer-spin-button]:appearance-none [&::-webkit-inner-spin-button]:appearance-none",e.className)};function Ti({label:e,description:t,errorMessage:r,size:o="md",tooltip:n,isRequired:a,transparent:i,validationResult:s,reserveErrorSpace:c=true,descriptionPlacement:l="below",...u}){let d=Oe.useId(),{isFocused:m,handleFocus:p,handleBlur:g}=Tr();return jsxRuntime.jsx(reactAriaComponents.NumberField,{...u,id:d,isRequired:a,className:ke(u.className,"group flex flex-col gap-1"),step:u.step??1,onChange:f=>{typeof f=="number"&&(u.maxValue!=null&&f>u.maxValue?u.onChange?.(u.maxValue):u.minValue!=null&&f<u.minValue?u.onChange?.(u.minValue):u.onChange?.(f));},isInvalid:!!r||typeof u.value=="number"&&(u.maxValue!=null&&u.value>u.maxValue||u.minValue!=null&&u.value<u.minValue),children:({isDisabled:f,isInvalid:h})=>jsxRuntime.jsxs("div",{className:"flex flex-col gap-1",children:[e&&jsxRuntime.jsx(ze,{size:o,tooltip:n,description:l==="tooltip"||l==="inline"?t:void 0,descriptionPlacement:l,isRequired:a,htmlFor:d,children:e}),jsxRuntime.jsx("div",{className:"relative",children:jsxRuntime.jsxs(reactAriaComponents.Group,{className:"relative",children:[jsxRuntime.jsx(reactAriaComponents.Input,{onFocus:x=>p(x,u.onFocus),onBlur:x=>g(x,u.onBlur),className:T1({isInvalid:h||!!r,isDisabled:f,isFocused:m,transparent:i,size:o,className:typeof u.className=="string"?u.className:void 0})}),jsxRuntime.jsxs("div",{className:"absolute inset-y-[2px] right-[2px] flex flex-col divide-y divide-border-default border-l border-border-default overflow-hidden rounded-r-[calc(var(--control-border-radius)-2px)]",children:[jsxRuntime.jsx(reactAriaComponents.Button,{slot:"increment",isDisabled:f,className:"flex h-1/2 w-7 items-center justify-center bg-background-input hover:bg-background-input-hover active:bg-background-input-active disabled:cursor-not-allowed disabled:opacity-50",children:jsxRuntime.jsx(B,{name:"CaretUp",size:14})}),jsxRuntime.jsx(reactAriaComponents.Button,{slot:"decrement",isDisabled:f,className:"flex h-1/2 w-7 items-center justify-center bg-background-input hover:bg-background-input-hover active:bg-background-input-active disabled:cursor-not-allowed disabled:opacity-50",children:jsxRuntime.jsx(B,{name:"CaretDown",size:14})})]})]})}),c?jsxRuntime.jsx("div",{className:"mt-1 min-h-[20px]",children:r?jsxRuntime.jsx(be,{size:o,children:typeof r=="function"?r(s):r}):t&&l==="below"?jsxRuntime.jsx(Te,{size:o,children:t}):null}):jsxRuntime.jsx(jsxRuntime.Fragment,{children:r?jsxRuntime.jsx(be,{size:o,className:"mt-1",children:typeof r=="function"?r(s):r}):t&&l==="below"?jsxRuntime.jsx(Te,{size:o,className:"mt-1",children:t}):null})]})})}var Mu={sm:{track:"h-4 w-7",handle:"h-3.5 w-3.5",text:"text-xs"},md:{track:"h-5 w-9",handle:"h-4 w-4",text:"text-sm"},lg:{track:"h-6 w-11",handle:"h-5 w-5",text:"text-base"},xl:{track:"h-7 w-14",handle:"h-6 w-6",text:"text-lg"}};function M1({isSelected:e,isDisabled:t,size:r="md"}){let o="flex px-px items-center shrink-0 cursor-default rounded-full transition duration-200 ease-in-out shadow-inner border border-transparent",n=Mu[r].track,a=Je,i="focus-visible:outline-action-primary",s="";return e?s="bg-action-primary forced-colors:!bg-[Highlight] group-pressed:bg-action-primary-hover":s="bg-border-input group-pressed:bg-border-focus",[o,n,a,i,s,t?"bg-background-muted forced-colors:group-selected:!bg-[GrayText] forced-colors:border-[GrayText]":""].filter(Boolean).join(" ")}function D1({isSelected:e,isDisabled:t,size:r="md"}){let o="transform rounded-full bg-background-surface outline-none shadow transition duration-200 ease-in-out",n=Mu[r].handle;return [o,n,e?"translate-x-[100%]":"translate-x-0",t?"forced-colors:outline-[GrayText]":""].filter(Boolean).join(" ")}function ll({children:e,variant:t="primary",size:r="md",...o}){return jsxRuntime.jsx(reactAriaComponents.Switch,{...o,className:ke(o.className,`relative group flex items-center gap-2 ${Mu[r].text} text-text-primary transition disabled:text-text-disabled forced-colors:disabled:text-[GrayText]`),children:n=>jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("div",{className:M1({...n,size:r}),children:jsxRuntime.jsx("span",{className:D1({...n,size:r})})}),e]})})}function Ob(e){return new Intl.NumberFormat("en-US").format(e)}function Hb({isOpen:e,onClose:t,facetConfigs:r,facetCounts:o={},currentFilters:n,onApply:a,onClear:i,title:s="Filters",resultCount:c}){let[l,u]=Oe.useState(n),[d,m]=Oe.useState({}),[p,g]=Oe.useState({}),[f,h]=Oe.useState(null),{isMobile:b}=Xt(),x=Oe.useMemo(()=>r.some(C=>C.group),[r]),{groups:y,ungroupedFacets:v,facetsByGroup:S}=Oe.useMemo(()=>{let C=new Set,F=[],O={};for(let K of r)K.group?(C.has(K.group)||(C.add(K.group),O[K.group]=[]),O[K.group].push(K)):F.push(K);return {groups:Array.from(C),ungroupedFacets:F,facetsByGroup:O}},[r]);Oe.useEffect(()=>{e&&(u(n),m({}),g({}),h(!b&&y.length>0?y[0]:null));},[e,n,y,b]);let w=Oe.useMemo(()=>!l||il(l)?0:Bn(l).length,[l]),N=()=>{a(l),t();},T=()=>{let C=Ni();u(C),i?i():a(C),t();},k=C=>{if(!l)return [];if(!Bn(l).includes(C))return [];let O=[];function K(te){if(te)for(let de of te.conditions)"conditions"in de?K(de):de.field===C&&de.operator==="in"&&Array.isArray(de.value)&&O.push(...de.value.map(String));}return K(l),O},P=(C,F,O)=>{let K=Fn(l,C);F!==void 0&&(K=Qo(K,{field:C,operator:"gte",value:F})),O!==void 0&&(K=Qo(K,{field:C,operator:"lte",value:O})),u(K);},A=C=>{if(!l)return;let F;function O(K){if(K)for(let te of K.conditions)"conditions"in te?O(te):te.field===C&&te.operator==="eq"&&typeof te.value=="boolean"&&(F=te.value);}return O(l),F},D=(C,F)=>{let O=Fn(l,C);F!==void 0&&(O=Qo(O,{field:C,operator:"eq",value:F})),u(O);},L=(C,F,O)=>{let K=Fn(l,C);F&&(K=Qo(K,{field:C,operator:"gte",value:F.toString()})),O&&(K=Qo(K,{field:C,operator:"lte",value:O.toString()})),u(K);},R=C=>{let F=S[C]||[],O=l?Bn(l):[];return F.filter(K=>O.includes(K.field)).length},H="pr-9 bg-background-muted/50",G="border-t border-border-muted",Y="text-sm font-medium text-text-link-default",U=C=>jsxRuntime.jsx("span",{className:Y,children:C}),q=C=>{let F=o[C.field]||{},O=d[C.field]||"",K=[];C.values?K=C.values.map(_=>({value:String(_.value),label:_.label,count:F[String(_.value)]})):K=Object.entries(F).map(([_,ae])=>({value:_,label:_,count:ae}));let te=K.length;if(O){let _=O.toLowerCase();K=K.filter(ae=>ae.label.toLowerCase().includes(_));}K.sort((_,ae)=>_.count!==void 0&&ae.count!==void 0&&ae.count!==_.count?ae.count-_.count:_.label.localeCompare(ae.label));let de=C.type||"string";if(de==="string"||!C.type){let _=k(C.field),ae=C.searchThreshold??10,fe=C.maxVisibleOptions??50,re=p[C.field]??false,ce=re||K.length<=fe?K:K.slice(0,fe),xe=K.length>fe&&!re;return jsxRuntime.jsxs(Wo,{id:C.field,children:[jsxRuntime.jsx(Go,{title:C.label,description:C.description,className:H,endContent:_.length>0?U(`${_.length} selected`):void 0}),jsxRuntime.jsx(Uo,{className:G,children:jsxRuntime.jsxs("div",{className:"space-y-4 pt-4 pb-4",children:[te>ae&&jsxRuntime.jsx(In,{value:O,onChange:he=>m(De=>({...De,[C.field]:he})),onClear:()=>m(he=>({...he,[C.field]:""})),placeholder:`Search ${C.label.toLowerCase()}...`,size:"sm",className:"w-full !max-w-none pr-4"}),jsxRuntime.jsx(Ud,{value:_,onChange:he=>{let De=Fn(l,C.field);he.length>0&&(De=Qo(De,{field:C.field,operator:"in",value:he})),u(De);},children:jsxRuntime.jsx("div",{className:"space-y-1.5",children:ce.map(he=>jsxRuntime.jsx("div",{className:"rounded-md py-2 pr-4 transition-colors hover:bg-background-hover",children:jsxRuntime.jsx(Cn,{value:he.value,children:jsxRuntime.jsxs("div",{className:"flex items-center justify-between gap-3 flex-1",children:[C.renderLabel?C.renderLabel(he.value,he.label):jsxRuntime.jsx("span",{className:"text-sm font-medium text-text-primary",children:he.label}),he.count!==void 0&&jsxRuntime.jsx("span",{className:"text-xs font-medium text-text-secondary tabular-nums",children:Ob(he.count)})]})})},he.value))})}),xe&&jsxRuntime.jsx("div",{className:"pt-2 border-t border-border-muted",children:jsxRuntime.jsxs(Z,{variant:"ghost",size:"sm",onPress:()=>g(he=>({...he,[C.field]:true})),className:"w-full",children:["Show all ",K.length," options"]})}),re&&K.length>fe&&jsxRuntime.jsx("div",{className:"pt-2 border-t border-border-muted",children:jsxRuntime.jsx(Z,{variant:"ghost",size:"sm",onPress:()=>g(he=>({...he,[C.field]:false})),className:"w-full",children:"Show less"})})]})})]},C.field)}if(de==="number"){let _,ae,fe=ce=>{if(ce)for(let xe of ce.conditions)"conditions"in xe?fe(xe):xe.field===C.field&&(xe.operator==="gte"&&typeof xe.value=="number"&&(_=xe.value),xe.operator==="lte"&&typeof xe.value=="number"&&(ae=xe.value));};fe(l);let re=_!==void 0||ae!==void 0;return jsxRuntime.jsxs(Wo,{id:C.field,children:[jsxRuntime.jsx(Go,{title:C.label,description:C.description,className:H,endContent:re?U(_!==void 0&&ae!==void 0?`${_} - ${ae}`:_!==void 0?`\u2265 ${_}`:`\u2264 ${ae}`):void 0}),jsxRuntime.jsx(Uo,{className:G,children:jsxRuntime.jsxs("div",{className:"grid grid-cols-2 gap-4 pt-4 pb-4",children:[jsxRuntime.jsx(Ti,{label:"Min",value:_,onChange:ce=>P(C.field,ce,ae)},`${C.field}-min`),jsxRuntime.jsx(Ti,{label:"Max",value:ae,onChange:ce=>P(C.field,_,ce)},`${C.field}-max`)]})})]},C.field)}if(de==="boolean"){let _=A(C.field);return jsxRuntime.jsxs(Wo,{id:C.field,children:[jsxRuntime.jsx(Go,{title:C.label,description:C.description,className:H,endContent:_!==void 0?U(_?"Yes":"No"):void 0}),jsxRuntime.jsx(Uo,{className:G,children:jsxRuntime.jsxs("div",{className:"flex items-center justify-between pt-4 pb-4",children:[jsxRuntime.jsx("span",{className:"text-sm font-medium text-text-primary",children:_!==void 0?_?"Enabled":"Disabled":"No filter applied"}),jsxRuntime.jsx(ll,{size:"lg",isSelected:_??false,onChange:ae=>D(C.field,ae?true:void 0),children:_?"Yes":"No"})]})})]},C.field)}if(de==="date"){let _,ae,fe=De=>{if(De)for(let $e of De.conditions)"conditions"in $e?fe($e):$e.field===C.field&&($e.operator==="gte"&&(_=String($e.value)),$e.operator==="lte"&&(ae=String($e.value)));};fe(l);let re=_!==void 0||ae!==void 0,ce=De=>{if(De)try{return /^\d{4}-\d{2}-\d{2}$/.test(De)?date.parseDate(De):void 0}catch{return}},xe=ce(_),he=ce(ae);return jsxRuntime.jsxs(Wo,{id:C.field,children:[jsxRuntime.jsx(Go,{title:C.label,description:C.description,className:H,endContent:re?U("Date range selected"):void 0}),jsxRuntime.jsx(Uo,{className:G,children:jsxRuntime.jsx("div",{className:"pt-4 pb-4",children:jsxRuntime.jsx(sl,{label:"Date Range",value:xe&&he?{start:xe,end:he}:void 0,onChange:De=>{De?L(C.field,De.start,De.end):L(C.field,void 0,void 0);}})})})]},C.field)}return null},j=()=>jsxRuntime.jsxs("div",{className:"flex flex-col",children:[v.map(C=>{let O=(l?Bn(l):[]).includes(C.field);return jsxRuntime.jsxs("button",{type:"button",onClick:()=>h(`__ungrouped__${C.field}`),className:"flex items-center justify-between px-6 py-3 text-left hover:bg-background-hover border-b border-border-muted transition-colors",children:[jsxRuntime.jsx("span",{className:"text-sm font-medium text-text-primary",children:C.label}),jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[O&&jsxRuntime.jsx("span",{className:Y,children:"1 active"}),jsxRuntime.jsx(B,{name:"CaretRight",size:"sm",className:"text-text-secondary"})]})]},C.field)}),y.map(C=>{let F=R(C);return jsxRuntime.jsxs("button",{type:"button",onClick:()=>h(C),className:"flex items-center justify-between px-6 py-3 text-left hover:bg-background-hover border-b border-border-muted transition-colors",children:[jsxRuntime.jsx("span",{className:"text-sm font-medium text-text-primary",children:C}),jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[F>0&&jsxRuntime.jsxs("span",{className:Y,children:[F," active"]}),jsxRuntime.jsx(B,{name:"CaretRight",size:"sm",className:"text-text-secondary"})]})]},C)})]}),Q=C=>{if(C.startsWith("__ungrouped__")){let O=C.replace("__ungrouped__",""),K=v.find(te=>te.field===O);return K?jsxRuntime.jsx(ya,{variant:"contained",density:"comfortable",showDividers:true,defaultExpandedKeys:[K.field],children:q(K)}):null}let F=S[C]||[];return F.length===0?null:jsxRuntime.jsx(ya,{variant:"contained",density:"comfortable",showDividers:true,defaultExpandedKeys:[F[0].field],children:F.map(O=>q(O))})},E=()=>{if(f){let C=f.startsWith("__ungrouped__")&&v.find(F=>F.field===f.replace("__ungrouped__",""))?.label||f;return jsxRuntime.jsxs("div",{className:"flex flex-col h-full",children:[jsxRuntime.jsxs("button",{type:"button",onClick:()=>h(null),className:"flex items-center gap-2 px-4 py-3 border-b border-border-muted hover:bg-background-hover transition-colors",children:[jsxRuntime.jsx(B,{name:"CaretLeft",size:"sm",className:"text-text-secondary"}),jsxRuntime.jsx("span",{className:"text-sm font-medium text-text-primary",children:C})]}),jsxRuntime.jsx("div",{className:"flex-1 overflow-y-auto",children:Q(f)})]})}return j()},M=()=>jsxRuntime.jsxs("div",{className:"flex h-full",children:[jsxRuntime.jsxs("div",{className:"w-48 flex-shrink-0 border-r border-border-muted overflow-y-auto bg-background-muted/30",children:[v.map(C=>{let O=(l?Bn(l):[]).includes(C.field),K=f===`__ungrouped__${C.field}`;return jsxRuntime.jsxs("button",{type:"button",onClick:()=>h(`__ungrouped__${C.field}`),className:`flex items-center justify-between w-full px-4 py-3 text-left border-b border-border-muted transition-colors ${K?"bg-background-selected":"hover:bg-background-hover"}`,children:[jsxRuntime.jsx("span",{className:`text-sm truncate ${K?"font-semibold text-text-primary":"font-medium text-text-primary"}`,children:C.label}),O&&jsxRuntime.jsx("span",{className:"w-2 h-2 rounded-full bg-action-primary flex-shrink-0 ml-2"})]},C.field)}),y.map(C=>{let F=R(C),O=f===C;return jsxRuntime.jsxs("button",{type:"button",onClick:()=>h(C),className:`flex items-center justify-between w-full px-4 py-3 text-left border-b border-border-muted transition-colors ${O?"bg-background-selected":"hover:bg-background-hover"}`,children:[jsxRuntime.jsx("span",{className:`text-sm truncate ${O?"font-semibold text-text-primary":"font-medium text-text-primary"}`,children:C}),F>0&&jsxRuntime.jsx("span",{className:"w-2 h-2 rounded-full bg-action-primary flex-shrink-0 ml-2"})]},C)})]}),jsxRuntime.jsx("div",{className:"flex-1 overflow-y-auto",children:f?Q(f):jsxRuntime.jsx("div",{className:"flex items-center justify-center h-full text-text-secondary text-sm",children:"Select a category to view filters"})})]}),W=()=>jsxRuntime.jsx(ya,{variant:"contained",density:"comfortable",showDividers:true,defaultExpandedKeys:[r[0].field],children:r.map(C=>q(C))});return jsxRuntime.jsx(Nr,{isOpen:e,onClose:t,title:x&&b&&f?f.startsWith("__ungrouped__")?v.find(C=>C.field===f.replace("__ungrouped__",""))?.label||s:f:w>0?`${s} (${w} active)`:s,hideCloseIcon:false,primaryAction:{label:"Apply filters",onPress:N,variant:"primary"},secondaryAction:{label:"Clear all",onPress:T},maxWidth:x?"800px":"700px",height:"600px",mobileHeight:"85vh",contentPadding:false,footerContent:c!==void 0?jsxRuntime.jsxs("div",{className:"text-sm text-text-secondary text-center",children:[jsxRuntime.jsx("span",{className:"font-semibold text-text-primary",children:Ob(c)})," ",c===1?"result":"results"," with current filters"]}):void 0,children:r.length===0?jsxRuntime.jsx("div",{className:"py-12 text-center",children:jsxRuntime.jsx("div",{className:"text-sm font-medium text-text-secondary",children:"No filters available"})}):x?b?E():M():W()})}function Eu(e="left"){switch(e){case "center":return "justify-center text-center";case "right":return "justify-end text-right";default:return "justify-start text-left"}}function Lr(e="normal",t){return tailwindMerge.twMerge({strong:"font-semibold text-text-primary",high:"font-semibold text-text-primary",normal:"text-text-primary",low:"text-text-secondary"}[e],t&&"hover:text-action-primary cursor-pointer transition-colors")}function Me(e="left",t){return tailwindMerge.twMerge("flex items-center gap-1 min-w-0 overflow-hidden",Eu(e),t)}function ul(e,t="\u2014"){return e==null||e===""?t:String(e)}var Zo={xs:"h-4 w-12",sm:"h-4 w-20",md:"h-4 w-24",lg:"h-4 w-32",xl:"h-4 w-40"};function nr(e="normal"){return {strong:Zo.lg,high:Zo.lg,normal:Zo.md,low:Zo.sm}[e]}function Se(e,t){return typeof e=="function"?e(t):e}function Wb(e="neutral",t="sm"){return tailwindMerge.twMerge("inline-flex items-center rounded-full font-medium",t==="sm"?"px-2 py-0.5 text-xs":"px-2.5 py-1 text-sm",{success:"bg-feedback-success-background text-feedback-success-text",error:"bg-feedback-error-background text-feedback-error-text",warning:"bg-feedback-warning-background text-feedback-warning-text",info:"bg-feedback-info-background text-feedback-info-text",neutral:"bg-background-muted text-text-secondary"}[e])}function Gb(e){return e?"success":"neutral"}function pl(e,t=false){return t?e>0?"text-feedback-success-text":e<0?"text-feedback-error-text":"text-text-primary":"text-text-primary"}function Lu(e="hover",t="secondary"){let r={primary:"text-action-primary hover:text-action-primary-hover visited:text-action-primary",secondary:"text-text-link-default hover:text-text-link-hover visited:text-text-link-default",default:"text-text-link-default hover:text-text-link-hover visited:text-text-link-default",brand:"text-action-primary hover:text-action-primary-hover visited:text-action-primary",muted:"text-text-secondary hover:text-text-secondary visited:text-text-secondary",unstyled:""},o={visible:"underline underline-offset-4 decoration-1 cursor-pointer",hover:"hover:underline hover:underline-offset-4 hover:decoration-1 cursor-pointer transition-colors",none:"cursor-pointer"},n=r[t],a=o[e]||"";return `${n} ${a}`.trim()}function no(e,t,r,o="hover",n="secondary",a,i){if(!t)return e;let s=typeof t=="function"&&r?t(r):t,c=Lu(o,n);return jsxRuntime.jsx("a",{href:s,className:tailwindMerge.twMerge(c,a==="strong"||a==="high"?"font-semibold":"",i),onClick:u=>{u.metaKey||u.ctrlKey;},children:e})}function Ub({row:e,context:t,actions:r,align:o="right",size:n="sm"}){let{isLoading:a}=t;if(a)return jsxRuntime.jsx(J,{className:Zo.sm});let s=(typeof r=="function"?r(e):r).filter(l=>!Se(l.hidden,e));if(s.length===0)return null;let c=Me(o);return jsxRuntime.jsx("div",{className:c,children:s.map(l=>{let u=Se(l.disabled,e);return l.variant==="icon"||!l.label?jsxRuntime.jsx(Z,{variant:"icon",size:n,onPress:()=>{l.onClick(e);},isDisabled:u,"aria-label":l.label||l.id,children:jsxRuntime.jsx(B,{name:l.icon||"DotsThree",size:n==="sm"?16:20})},l.id):jsxRuntime.jsxs(Z,{variant:l.variant||"secondary",size:n,onPress:()=>{l.onClick(e);},isDisabled:u,children:[l.icon&&jsxRuntime.jsx(B,{name:l.icon,size:n==="sm"?14:16}),l.label]},l.id)})})}function Yb({value:e,row:t,context:r,variant:o="default",label:n,size:a="sm",shape:i="square",dot:s,dotPosition:c="left",dotPulse:l,align:u="left",emptyText:d="\u2014",className:m,maxVisible:p=2,maxLabelLength:g}){let{isLoading:f}=r,h=(w,N)=>{if(!g||w.length<=g)return jsxRuntime.jsx(jsxRuntime.Fragment,{children:w});let T=w.slice(0,g-1)+"\u2026";return jsxRuntime.jsx(Zt,{content:N,children:jsxRuntime.jsx("span",{children:T})})};if(f)return jsxRuntime.jsx(J,{className:nr("normal")});if(e==null||e==="")return jsxRuntime.jsx("div",{className:Me(u,"text-text-secondary"),children:d});if(Array.isArray(e)&&e.length===0)return jsxRuntime.jsx("div",{className:Me(u,"text-text-secondary"),children:d});let b=Me(u,m);if(Array.isArray(e)){let w=e.slice(0,p),N=e.slice(p),T=N.length>0;return jsxRuntime.jsx("div",{className:b,children:jsxRuntime.jsxs("div",{className:"flex items-center gap-1",children:[w.map((k,P)=>{let A=typeof o=="function"?o(k,t):o,D=typeof n=="function"?n(k,t):n!==void 0?n:String(k),L=typeof s=="function"?s(k,t):s,R=typeof l=="function"?l(k,t):l;return jsxRuntime.jsx("span",{className:"flex-shrink-0 whitespace-nowrap",children:jsxRuntime.jsx(nt,{variant:A,size:a,shape:i,dot:L,dotPosition:c,dotPulse:R,children:h(D,D)})},P)}),T&&jsxRuntime.jsx(Zt,{content:N.join(", "),children:jsxRuntime.jsx("span",{className:"flex-shrink-0 whitespace-nowrap",children:jsxRuntime.jsxs(nt,{variant:"neutral",size:a,shape:i,children:["+",N.length]})})})]})})}let x=typeof o=="function"?o(e,t):o,y=typeof n=="function"?n(e,t):n!==void 0?n:String(e),v=typeof s=="function"?s(e,t):s,S=typeof l=="function"?l(e,t):l;return jsxRuntime.jsx("div",{className:b,children:jsxRuntime.jsx(nt,{variant:x,size:a,shape:i,dot:v,dotPosition:c,dotPulse:S,children:h(y,y)})})}function Jb({value:e,context:t,format:r="icon",trueText:o="Yes",falseText:n="No",trueIcon:a="Check",falseIcon:i="X",showFalse:s=true,align:c="center",emphasis:l="normal",className:u}){let{isLoading:d}=t;if(d)return jsxRuntime.jsx(J,{className:nr(l)});let m=!!e;if(!m&&!s)return jsxRuntime.jsx("div",{className:Me(c,u)});let p=Me(c,u);switch(r){case "icon":return jsxRuntime.jsx("div",{className:p,children:jsxRuntime.jsx(B,{name:m?a:i,size:16,className:m?"text-feedback-success-text":"text-text-disabled"})});case "text":return jsxRuntime.jsx("div",{className:p,children:jsxRuntime.jsx("span",{className:Lr(l),children:m?o:n})});case "badge":return jsxRuntime.jsx("div",{className:p,children:jsxRuntime.jsx(nt,{variant:m?"success":"neutral",size:"sm",children:m?o:n})});default:return null}}function jb({row:e,context:t,firstName:r,lastName:o,email:n,avatarUrl:a,layout:i="stacked",size:s="sm",href:c,LinkComponent:l,linkVariant:u="secondary",showEmail:d=false,badge:m,emphasis:p="normal",align:g="left",className:f,piiEntity:h}){let{isLoading:b}=t,x=Se(r,e),y=Se(o,e),v=Se(n,e),S=Se(a,e),w=Se(c,e),N=typeof m=="function"?m(e):m,T=Se(h,e),k=Me(g,f);return jsxRuntime.jsx("div",{className:k,children:jsxRuntime.jsx(Vs,{firstName:x,lastName:y,email:v,avatarUrl:S,layout:i,size:s,href:w,LinkComponent:l,linkVariant:u,showEmail:d,badge:N,emphasis:p,isLoading:b,piiEntity:T})})}function qb({value:e,row:t,context:r,render:o,className:n}){let a=o(e,t,r);return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("h-full w-full",n),children:a})}function Qb({value:e,row:t,context:r,format:o="date",customFormat:n,emptyText:a="\u2014",align:i="left",emphasis:s="normal",href:c,linkBehavior:l="hover",className:u}){let{isLoading:d}=r;if(d)return jsxRuntime.jsx(J,{className:nr(s)});if(!e)return jsxRuntime.jsx("div",{className:Me(i,"text-text-secondary"),children:a});let m=e instanceof Date?e:new Date(e);if(isNaN(m.getTime()))return jsxRuntime.jsx("div",{className:Me(i,"text-text-secondary"),children:a});let p;switch(o){case "date":p=m.toLocaleDateString("en-US",{year:"numeric",month:"short",day:"numeric"});break;case "time":p=m.toLocaleTimeString("en-US",{hour:"2-digit",minute:"2-digit"});break;case "datetime":p=m.toLocaleString("en-US",{year:"numeric",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"});break;case "relative":p=W1(m);break;case "custom":p=n?m.toLocaleString("en-US",n):m.toISOString();break;default:p=m.toLocaleDateString();}let g=Me(i,tailwindMerge.twMerge(Lr(s),u)),f=Se(c,t);return f?jsxRuntime.jsx("div",{className:g,children:no(p,f,t,l)}):jsxRuntime.jsx("div",{className:g,children:p})}function W1(e){let r=new Date().getTime()-e.getTime(),o=Math.floor(r/1e3),n=Math.floor(o/60),a=Math.floor(n/60),i=Math.floor(a/24);return o<60?"just now":n<60?`${n} minute${n!==1?"s":""} ago`:a<24?`${a} hour${a!==1?"s":""} ago`:i<7?`${i} day${i!==1?"s":""} ago`:e.toLocaleDateString("en-US",{year:"numeric",month:"short",day:"numeric"})}function ml({manufacturer:e,model:t,deviceType:r,deviceTypeIconName:o,logoUrl:n,layout:a="stacked",size:i="md",href:s,LinkComponent:c,linkVariant:l="unstyled",showDeviceTypeIcon:u=true,showLogo:d=true,emphasis:m="normal",isLoading:p=false,className:g,piiEntity:f}){let[h,b]=Oe.useState(false),x=o||(r?U1(r):"DeviceMobile"),v={xs:{iconSize:28,logoSize:"w-7 h-7",gap:"gap-1.5",textSize:"text-xs",secondaryTextSize:"text-xs",iconInTextSize:12,skeletonIcon:28,skeletonText:80,skeletonSecondary:60},sm:{iconSize:32,logoSize:"w-8 h-8",gap:"gap-2",textSize:"text-sm",secondaryTextSize:"text-xs",iconInTextSize:14,skeletonIcon:32,skeletonText:96,skeletonSecondary:72},md:{iconSize:32,logoSize:"w-9 h-9",gap:"gap-3",textSize:"text-base",secondaryTextSize:"text-sm",iconInTextSize:16,skeletonIcon:36,skeletonText:128,skeletonSecondary:96},lg:{iconSize:40,logoSize:"w-10 h-10",gap:"gap-3",textSize:"text-lg",secondaryTextSize:"text-base",iconInTextSize:18,skeletonIcon:40,skeletonText:160,skeletonSecondary:120}}[i],S=n&&!h&&d,N={strong:"font-semibold text-text-primary",high:"font-semibold text-text-primary",normal:"text-text-primary",low:"text-text-secondary"}[m],T=({children:k,className:P})=>s?c?jsxRuntime.jsx(c,{href:s,className:P,children:k}):jsxRuntime.jsx(Ze,{href:s,variant:l,className:tailwindMerge.twMerge("hover:underline",P),asButton:false,children:k}):jsxRuntime.jsx("span",{className:P,children:k});if(p)return a==="inline"?jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("flex items-center",v.gap,g),children:[jsxRuntime.jsx(J,{width:v.skeletonIcon,height:v.skeletonIcon,className:"flex-shrink-0 rounded"}),jsxRuntime.jsx(J,{width:v.skeletonText,height:v.skeletonIcon*.6})]}):jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("flex items-center",v.gap,g),children:[jsxRuntime.jsx(J,{width:v.skeletonIcon,height:v.skeletonIcon,className:"flex-shrink-0"}),jsxRuntime.jsxs("div",{className:"flex flex-col gap-1",children:[jsxRuntime.jsx(J,{width:v.skeletonText,height:16}),jsxRuntime.jsx(J,{width:v.skeletonSecondary,height:12})]})]});if(a==="inline"){let k=`${e} ${t}`;return jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("flex items-center",v.gap,g),children:[jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("flex-shrink-0 flex items-center justify-center rounded border border-border-muted",v.logoSize),children:S?jsxRuntime.jsx("img",{src:n,alt:`${e} logo`,className:"w-full h-full object-contain",onError:()=>b(true)}):jsxRuntime.jsx(B,{name:x,size:v.iconSize*.6,className:"text-text-secondary"})}),jsxRuntime.jsx(T,{className:tailwindMerge.twMerge("truncate leading-normal hover:text-text-primary",N,v.textSize,s&&"hover:underline hover:decoration-1 hover:underline-offset-4"),children:jsxRuntime.jsx("span",{"data-pii-type":f?"device-name":void 0,"data-pii-entity":f,children:k})})]})}return jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("flex items-center justify-start",v.gap,g),children:[d&&jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("flex-shrink-0 flex items-center justify-center rounded border border-border-muted",v.logoSize),children:S?jsxRuntime.jsx("img",{src:n,alt:`${e} logo`,className:"w-full h-full object-contain",onError:()=>b(true)}):jsxRuntime.jsx(B,{name:x,size:v.iconSize*.6,className:"text-text-secondary"})}),jsxRuntime.jsxs("div",{className:"flex flex-col items-start min-w-0",children:[jsxRuntime.jsx(T,{className:tailwindMerge.twMerge("truncate leading-normal hover:text-text-primary",N,v.textSize,s&&"hover:underline hover:decoration-1 hover:underline-offset-4"),children:jsxRuntime.jsx("span",{"data-pii-type":f?"device-name":void 0,"data-pii-entity":f,children:e})}),jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("flex items-center gap-1.5 text-text-secondary leading-normal",v.secondaryTextSize),children:[u&&jsxRuntime.jsx(B,{name:x,size:v.iconInTextSize,className:"flex-shrink-0"}),jsxRuntime.jsx("span",{className:"truncate","data-pii-type":f?"device-name":void 0,"data-pii-entity":f,children:t})]})]})]})}function U1(e){switch(e){case "battery":return "BatteryHigh";case "charger":return "ChargingStation";case "inverter":return "Power";case "thermostat":return "ThermometerSimple";case "vehicle":return "CarSimple";case "water_heater":return "DropHalfBottom";case "meter":return "Gauge";default:return "DeviceMobile"}}function _b({row:e,context:t,manufacturer:r,model:o,deviceType:n,logoUrl:a,layout:i="stacked",size:s="sm",href:c,LinkComponent:l,linkVariant:u="secondary",showDeviceTypeIcon:d=true,showLogo:m=true,emphasis:p="normal",align:g="left",className:f,piiEntity:h}){let{isLoading:b}=t,x=Se(r,e),y=Se(o,e),v=Se(n,e),S=Se(a,e),w=Se(c,e),N=Se(h,e),T=Me(g,f);return jsxRuntime.jsx("div",{className:T,children:jsxRuntime.jsx(ml,{manufacturer:x,model:y,deviceType:v,logoUrl:S,layout:i,size:s,href:w,LinkComponent:l,linkVariant:u,showDeviceTypeIcon:d,showLogo:m,emphasis:p,isLoading:b,piiEntity:N})})}var _G={charging:"percentage",discharging:"percentage",on:"kW",idle:void 0,off:void 0,heat:"temperature",cool:"temperature",auto:"temperature",eco:"temperature",unknown:void 0,connected:void 0,disconnected:void 0},K1=["charging","discharging","heat","cool","on","connected"],Y1={unknown:"Unknown",on:"On",off:"Off",idle:"Idle",charging:"Charging",discharging:"Discharging",heat:"Heating",eco:"Eco Mode",cool:"Cooling",auto:"Auto",connected:"Connected",disconnected:"Disconnected"};function Au(e){return K1.includes(e)}function Iu(e){return Y1[e]}function zn({state:e,label:t,icon:r,isLoading:o,size:n="sm",shape:a="pill",dot:i,dotPulse:s,fixedWidth:c,className:l,...u}){if(o)return jsxRuntime.jsx(J,{className:"inline-flex h-6 w-20"});let d=t??Iu(e),m=Au(e);return jsxRuntime.jsxs(nt,{variant:e,size:n,shape:a,dot:i??m,dotPulse:s??m,className:c?`w-28 justify-center ${l||""}`:l,...u,children:[r&&jsxRuntime.jsx(B,{name:r,size:n==="sm"?12:n==="md"?14:16}),d]})}var X1={importing:"Importing",exporting:"Exporting"};function ex(e){return X1[e]}function gl({state:e,label:t,showIcon:r=false,isLoading:o,size:n="sm",shape:a="pill",fixedWidth:i,className:s,...c}){if(o)return jsxRuntime.jsx(J,{className:"inline-flex h-6 w-24"});let l=t??ex(e),u=e==="exporting"?"ArrowUp":"ArrowDown",d=n==="sm"?12:n==="md"?14:16;return r?jsxRuntime.jsx(nt,{variant:e,size:n,shape:a,className:`w-6 justify-center ${s||""}`,...c,children:jsxRuntime.jsx(B,{name:u,size:d})}):jsxRuntime.jsx(nt,{variant:e,size:n,shape:a,className:i?`w-28 justify-center ${s||""}`:s,...c,children:l})}function bl({state:e,stateLabel:t,metric:r,metricFormatter:o,secondaryState:n,layout:a="horizontal",isLoading:i,size:s="sm",shape:c="pill",icon:l,fixedWidth:u,secondaryStateIconOnly:d=false,className:m}){if(i)return jsxRuntime.jsx(J,{className:tailwindMerge.twMerge("inline-flex h-6 w-32",m)});let p=r!=null&&o?Br(r,o):null,g=a==="horizontal",f=o&&!p;return jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("inline-flex items-center",g?"gap-2":"flex-col gap-1",m),children:[(p||f)&&jsxRuntime.jsx("span",{className:tailwindMerge.twMerge("font-medium inline-block",p?"text-text-primary":"text-text-secondary",s==="sm"&&"text-xs min-w-12",s==="md"&&"text-sm min-w-14",s==="lg"&&"text-base min-w-16"),children:p||"\u2014"}),jsxRuntime.jsx(zn,{state:e,label:t,icon:l,size:s,shape:c,fixedWidth:u}),n&&jsxRuntime.jsx(jsxRuntime.Fragment,{children:n==="importing"||n==="exporting"?jsxRuntime.jsx(gl,{state:n,size:s,shape:c,fixedWidth:u,showIcon:d}):jsxRuntime.jsx(zn,{state:n,size:s,shape:c,fixedWidth:u})})]})}function tx({value:e,row:t,context:r,metric:o,metricFormatter:n,secondaryState:a,size:i="sm",shape:s="pill",label:c,icon:l,fixedWidth:u=true,align:d="left",compact:m=false,className:p}){let{isLoading:g}=r;if(g){let v={pill:"rounded-full",rounded:"rounded-lg",square:"rounded-sm"}[s],S=o!=null||n!=null;return jsxRuntime.jsx("div",{className:"flex items-center gap-2",children:S?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(J,{className:"h-4 w-12"}),jsxRuntime.jsx(J,{className:`h-6 w-24 ${v}`}),jsxRuntime.jsx(J,{className:`h-6 w-20 ${v}`})]}):jsxRuntime.jsx(J,{className:`h-6 w-24 ${v}`})})}if(!e)return jsxRuntime.jsx("div",{className:Me(d,p),children:jsxRuntime.jsx("span",{className:"text-text-secondary",children:"\u2014"})});let f=Se(o,t),h=Se(a,t),b=typeof c=="function"?c(e,t):c,x=Me(d,p);return f!=null||n?jsxRuntime.jsx("div",{className:tailwindMerge.twMerge(x),children:jsxRuntime.jsx(bl,{state:e,stateLabel:b,metric:f,metricFormatter:n,secondaryState:h||void 0,size:i,shape:s,icon:l,fixedWidth:u,secondaryStateIconOnly:m,layout:"horizontal"})}):jsxRuntime.jsx("div",{className:x,children:jsxRuntime.jsx(zn,{state:e,label:b,icon:l,size:i,shape:s,fixedWidth:u})})}function ox({value:e,row:t,context:r,formatter:o,align:n="left",emphasis:a="normal",href:i,linkBehavior:s="hover",className:c,emptyText:l="\u2014",emptyClassName:u="text-text-secondary"}){let{isLoading:d}=r;if(d)return jsxRuntime.jsx(J,{className:nr(a)});let m=Xr({value:e,formatter:o,emptyText:l,emptyClassName:u}),p=Lr(a),g=Me(n,tailwindMerge.twMerge(p,c)),f=jsxRuntime.jsx("div",{className:g,children:m}),h=Se(i,t);return h?no(f,h,t,s):f}var Bu=Oe__namespace.default.memo(({value:e,min:t,max:r,color:o="var(--color-viz-default)",backgroundColor:n="var(--color-background-muted)",colorScale:a,showLabel:i=true,formatLabel:s,height:c=20,minWidth:l=4,segments:u,segmentGap:d=2,barWidth:m,context:p})=>{let g=Oe.useMemo(()=>r===t?100:Math.max(0,Math.min(100,(e-t)/(r-t)*100)),[e,t,r]),f=Oe.useMemo(()=>o==="auto"&&a?a.type==="diverging"&&a.center!==void 0?_a(e,t,r,a.center,a.scheme):Za(e,t,r,a.scheme):o,[o,a,e,t,r]);if(p.isLoading)return jsxRuntime.jsx("div",{className:"flex items-center gap-2 w-full",style:{height:c},children:jsxRuntime.jsx("div",{className:"h-full flex-1 animate-pulse bg-border-default rounded"})});if(u&&u>0){let x=`calc((100% - ${d*(u-1)}px) / ${u})`,y=Math.ceil(g/100*u),v={height:c,...m&&{width:typeof m=="number"?`${m}px`:m,flexShrink:0}};return jsxRuntime.jsxs("div",{className:"flex items-center gap-2 w-full",children:[jsxRuntime.jsx("div",{className:`flex gap-0.5 ${m?"":"flex-1"}`,style:v,children:Array.from({length:u}).map((S,w)=>{let N=w<y;return jsxRuntime.jsx("div",{className:"rounded-sm",style:{width:x,backgroundColor:N?f:n==="none"?"transparent":n,marginRight:w<u-1?`${d}px`:0}},w)})}),i&&jsxRuntime.jsx("span",{className:"text-sm text-text-primary whitespace-nowrap",children:s?s(e):e.toLocaleString()})]})}let h={height:c,backgroundColor:n==="none"?"transparent":n,...m&&{width:typeof m=="number"?`${m}px`:m,flexShrink:0}};return jsxRuntime.jsxs("div",{className:"flex items-center gap-2 w-full",children:[jsxRuntime.jsx("div",{className:`relative rounded-sm ${m?"":"flex-1"}`,style:h,children:jsxRuntime.jsx("div",{className:"absolute left-0 top-0 h-full rounded-sm",style:{width:`${g}%`,minWidth:g>0?l:0,backgroundColor:f}})}),i&&jsxRuntime.jsx("span",{className:"text-sm text-text-primary whitespace-nowrap",children:s?s(e):e.toLocaleString()})]})});Bu.displayName="HorizontalBarCell";var Vu=Oe__namespace.default.memo(({value:e,data:t,color:r="var(--color-viz-default)",categoryColors:o,context:n,width:a,height:i=40})=>{let s=e||t||[],c=h=>"xValue"in h?h.xValue:h.x,l=h=>"yValue"in h?h.yValue:h.y,u=a||100,d=i,{xScale:m,yScale:p,barWidth:g}=Oe.useMemo(()=>{if(s.length===0)return {xScale:scale.scaleTime({range:[0,u],domain:[new Date,new Date]}),yScale:scale.scaleLinear({range:[d,0],domain:[0,1]}),barWidth:2};let h=d3Array.extent(s,N=>c(N)),b=d3Array.min(s,N=>l(N))??0,x=d3Array.max(s,N=>l(N))??0,y=b<0?b:0,v=scale.scaleTime({range:[0,u],domain:h}),S=scale.scaleLinear({range:[d,0],domain:[y,x*1.05]}),w=s.length>1?u/s.length*.8:8;return {xScale:v,yScale:S,barWidth:Math.max(2,w)}},[s,u,d]);if(n.isLoading)return jsxRuntime.jsx("div",{className:"flex items-center gap-0.5",style:{width:u,height:d},children:Array.from({length:5}).map((h,b)=>jsxRuntime.jsx("div",{className:"flex-1 animate-pulse bg-border-default rounded"},b))});if(!s||s.length===0)return jsxRuntime.jsx("div",{className:"flex items-center justify-center text-text-secondary text-xs",style:{width:u,height:d},children:"No data"});let f=p(0);return jsxRuntime.jsx("svg",{width:u,height:d,children:s.map((h,b)=>{let x=l(h),y=m(c(h)),v=p(x),S=Math.abs(f-v),w=h.category&&o?.[h.category]?o[h.category]:r;return jsxRuntime.jsx(shape.Bar,{x:y-g/2,y:x>=0?v:f,width:g,height:S,fill:w,rx:1},`bar-${b}`)})})});Vu.displayName="MiniBarCell";function lx({value:e,row:t,context:r,format:o="number",decimals:n=0,prefix:a,suffix:i,emptyText:s="\u2014",align:c="right",emphasis:l="normal",href:u,linkBehavior:d="hover",showPositiveSign:m=false,colorCode:p=false,className:g}){let{isLoading:f}=r;if(f)return jsxRuntime.jsx(J,{className:nr(l)});if(e==null||isNaN(Number(e)))return jsxRuntime.jsx("div",{className:Me(c,"text-text-secondary"),children:s});let h=Number(e),b;switch(o){case "currency":b=new Intl.NumberFormat("en-US",{style:"currency",currency:"USD",minimumFractionDigits:n,maximumFractionDigits:n}).format(h);break;case "percent":b=new Intl.NumberFormat("en-US",{style:"percent",minimumFractionDigits:n,maximumFractionDigits:n}).format(h/100);break;case "compact":b=new Intl.NumberFormat("en-US",{notation:"compact",minimumFractionDigits:n>0?1:0,maximumFractionDigits:n}).format(h);break;default:b=new Intl.NumberFormat("en-US",{minimumFractionDigits:n,maximumFractionDigits:n}).format(h);}let y=`${m&&h>0?"+":""}${b}`,v=p?pl(h,true):Lr(l),S=Me(c,tailwindMerge.twMerge(v,g)),w=jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[a&&jsxRuntime.jsx("span",{className:"text-text-secondary",children:a}),jsxRuntime.jsx("span",{children:y}),i&&jsxRuntime.jsx("span",{className:"text-text-secondary",children:i})]}),N=Se(u,t);return N?jsxRuntime.jsx("div",{className:S,children:no(w,N,t,d)}):jsxRuntime.jsx("div",{className:S,children:w})}var zu=Oe__namespace.default.memo(({value:e,showLabel:t=true,color:r="var(--color-viz-categorical-1)",backgroundColor:o="var(--color-background-muted)",height:n=20,segments:a,segmentGap:i=2,colorScale:s,context:c})=>{let l=Oe.useMemo(()=>Math.max(0,Math.min(100,e)),[e]),u=Oe.useMemo(()=>r==="auto"&&s?s.type==="diverging"&&s.center!==void 0?_a(e,0,100,s.center,s.scheme):Za(e,0,100,s.scheme):r,[r,s,e]);if(c.isLoading)return jsxRuntime.jsx("div",{className:"flex items-center gap-2",style:{height:n},children:jsxRuntime.jsx("div",{className:"h-full w-full animate-pulse bg-border-default rounded"})});if(a&&a>0){let m=`calc((100% - ${i*(a-1)}px) / ${a})`,p=Math.ceil(l/100*a);return jsxRuntime.jsxs("div",{className:"flex items-center gap-2 w-full",children:[jsxRuntime.jsx("div",{className:"flex gap-0.5 flex-1",style:{height:n},children:Array.from({length:a}).map((g,f)=>{let h=f<p,b=u;if(r==="auto"&&s&&h){let x=(f+1)/a*100;s.type==="diverging"&&s.center!==void 0?b=_a(x,0,100,s.center,s.scheme):b=Za(x,0,100,s.scheme);}return jsxRuntime.jsx("div",{className:"rounded-sm",style:{width:m,backgroundColor:h?b:o==="none"?"transparent":o,marginRight:f<a-1?`${i}px`:0}},f)})}),t&&jsxRuntime.jsxs("span",{className:"text-sm text-text-primary whitespace-nowrap",children:[l.toFixed(0),"%"]})]})}return jsxRuntime.jsxs("div",{className:"flex items-center gap-2 w-full",children:[jsxRuntime.jsx("div",{className:"relative flex-1 rounded-sm",style:{height:n,backgroundColor:o==="none"?"transparent":o},children:jsxRuntime.jsx("div",{className:"absolute left-0 top-0 h-full rounded-sm transition-all duration-300",style:{width:`${l}%`,backgroundColor:u}})}),t&&jsxRuntime.jsxs("span",{className:"text-sm text-text-primary whitespace-nowrap",children:[l.toFixed(0),"%"]})]})});zu.displayName="PercentBarCell";function dx({row:e,context:t,isSelected:r=false,onSelect:o,isDisabled:n=false,align:a="center"}){let{isLoading:i}=t;if(i)return jsxRuntime.jsx("div",{className:Me(a),children:jsxRuntime.jsx(J,{className:"h-4 w-4 rounded"})});let s=Se(n,e),c=Me(a);return jsxRuntime.jsx("div",{className:c,children:jsxRuntime.jsx(Cn,{isSelected:r,onChange:l=>{o?.(e,l);},isDisabled:s,"aria-label":"Select row"})})}function yl({streetAddress:e,city:t,state:r,postalCode:o,layout:n="stacked",size:a="md",href:i,LinkComponent:s,linkVariant:c="unstyled",emphasis:l="normal",isLoading:u=false,className:d,piiEntity:m}){let g={xs:{iconSize:16,iconContainerSize:"w-7 h-7",gap:"gap-1.5",textSize:"text-xs",secondaryTextSize:"text-xs",skeletonIconStacked:28,skeletonIconInline:16,skeletonText:80,skeletonSecondary:60},sm:{iconSize:20,iconContainerSize:"w-8 h-8",gap:"gap-2",textSize:"text-sm",secondaryTextSize:"text-xs",skeletonIconStacked:32,skeletonIconInline:20,skeletonText:96,skeletonSecondary:72},md:{iconSize:24,iconContainerSize:"w-9 h-9",gap:"gap-3",textSize:"text-base",secondaryTextSize:"text-sm",skeletonIconStacked:36,skeletonIconInline:24,skeletonText:128,skeletonSecondary:96},lg:{iconSize:28,iconContainerSize:"w-10 h-10",gap:"gap-3",textSize:"text-lg",secondaryTextSize:"text-base",skeletonIconStacked:40,skeletonIconInline:28,skeletonText:160,skeletonSecondary:120}}[a],h={strong:"font-semibold text-text-primary",high:"font-semibold text-text-primary",normal:"text-text-primary",low:"text-text-secondary"}[l],b=[];t&&b.push(t),r&&o?b.push(`${r} ${o}`):r?b.push(r):o&&b.push(o);let x=b.join(", "),y=({children:S,className:w})=>i?s?jsxRuntime.jsx(s,{href:i,className:w,children:S}):jsxRuntime.jsx(Ze,{href:i,variant:c,className:tailwindMerge.twMerge("hover:underline",w),asButton:false,children:S}):jsxRuntime.jsx("span",{className:w,children:S});if(u)return n==="inline"?jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("flex items-center",g.gap,d),children:[jsxRuntime.jsx(J,{width:g.skeletonIconInline,height:g.skeletonIconInline,className:"flex-shrink-0 rounded"}),jsxRuntime.jsx(J,{width:g.skeletonText,height:g.skeletonIconInline*.8})]}):jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("flex items-center",g.gap,d),children:[jsxRuntime.jsx(J,{width:g.skeletonIconStacked,height:g.skeletonIconStacked,className:"flex-shrink-0 rounded"}),jsxRuntime.jsxs("div",{className:"flex flex-col gap-1",children:[jsxRuntime.jsx(J,{width:g.skeletonText,height:16}),jsxRuntime.jsx(J,{width:g.skeletonSecondary,height:12})]})]});if(n==="inline")return jsxRuntime.jsxs(y,{className:tailwindMerge.twMerge("flex items-center",g.gap,i&&"hover:bg-background-hover transition-colors",d),children:[jsxRuntime.jsx(B,{name:"MapPin",size:g.iconSize,className:"text-text-secondary flex-shrink-0"}),jsxRuntime.jsx("span",{className:tailwindMerge.twMerge("leading-normal truncate hover:text-text-primary",h,g.textSize,i&&"hover:underline hover:decoration-1 hover:underline-offset-4"),"data-pii-type":m?"address":void 0,"data-pii-entity":m,children:e})]});let v=()=>{if(m){if(t&&r&&o)return "city-state-zip";if(t&&r)return "city-state";if(t)return "city";if(r)return "state";if(o)return "postal-code"}};return jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("flex items-center justify-start",g.gap,d),children:[jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("flex-shrink-0 flex items-center justify-center rounded border border-border-muted",g.iconContainerSize),children:jsxRuntime.jsx(B,{name:"MapPin",size:g.iconSize,className:"text-text-secondary"})}),jsxRuntime.jsxs("div",{className:"flex flex-col items-start min-w-0",children:[jsxRuntime.jsx(y,{className:tailwindMerge.twMerge("leading-normal truncate hover:text-text-primary",h,g.textSize,i&&"hover:underline hover:decoration-1 hover:underline-offset-4"),children:jsxRuntime.jsx("span",{"data-pii-type":m?"address":void 0,"data-pii-entity":m,children:e})}),x&&jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("text-text-secondary leading-normal truncate",g.secondaryTextSize),"data-pii-type":v(),"data-pii-entity":m,children:x})]})]})}function px({row:e,context:t,streetAddress:r,city:o,state:n,postalCode:a,layout:i="stacked",size:s="sm",href:c,LinkComponent:l,linkVariant:u="secondary",emphasis:d="normal",align:m="left",className:p,piiEntity:g}){let{isLoading:f}=t,h=Se(r,e),b=Se(o,e),x=Se(n,e),y=Se(a,e),v=Se(c,e),S=Se(g,e),w=Me(m,p);return jsxRuntime.jsx("div",{className:w,children:jsxRuntime.jsx(yl,{streetAddress:h,city:b,state:x,postalCode:y,layout:i,size:s,href:v,LinkComponent:l,linkVariant:u,emphasis:d,isLoading:f,piiEntity:S})})}var Ou=Oe__namespace.default.memo(({value:e,data:t,type:r="line",color:o="var(--color-viz-default)",strokeWidth:n=2,categoryColors:a,context:i,width:s,height:c=40})=>{let l=e||t||[],u=s||100,d=c,{xScale:m,yScale:p}=Oe.useMemo(()=>{if(l.length===0)return {xScale:scale.scaleTime({range:[0,u],domain:[new Date,new Date]}),yScale:scale.scaleLinear({range:[d,0],domain:[0,1]})};let f=d3Array.extent(l,y=>y.xValue),h=d3Array.min(l,y=>y.yValue)||0,b=d3Array.max(l,y=>y.yValue)||0,x=(b-h)*.1||1;return {xScale:scale.scaleTime({range:[0,u],domain:f}),yScale:scale.scaleLinear({range:[d,0],domain:[h-x,b+x]})}},[l,u,d]);if(i.isLoading)return jsxRuntime.jsx("div",{className:"flex items-center",style:{width:u,height:d},children:jsxRuntime.jsx("div",{className:"h-1 w-full animate-pulse bg-border-default rounded"})});if(!l||l.length===0)return jsxRuntime.jsx("div",{className:"flex items-center justify-center text-text-secondary text-xs",style:{width:u,height:d},children:"No data"});let g=a&&l[0]?.category&&a[l[0].category]?a[l[0].category]:o;return jsxRuntime.jsxs("svg",{width:u,height:d,className:"overflow-visible",children:[(r==="area"||r==="both")&&jsxRuntime.jsx(shape.AreaClosed,{data:l,x:f=>m(f.xValue),y:f=>p(f.yValue),yScale:p,fill:g,fillOpacity:.15,curve:curve.curveLinear}),(r==="line"||r==="both")&&jsxRuntime.jsx(shape.LinePath,{data:l,x:f=>m(f.xValue),y:f=>p(f.yValue),stroke:g,strokeWidth:n,strokeLinecap:"round",curve:curve.curveLinear})]})});Ou.displayName="SparklineCell";function bx({value:e,row:t,context:r,prefix:o,suffix:n,emptyText:a="\u2014",href:i,linkBehavior:s="hover",linkVariant:c="secondary",emphasis:l="normal",truncate:u=true,copyable:d=false,align:m="left",className:p,piiType:g,piiEntity:f}){let{isLoading:h}=r;if(h)return jsxRuntime.jsx(J,{className:nr(l)});let b=ul(e,a),x=Se(i,t),y=Se(f,t),v=b,S=false,w=false;if(u&&b&&typeof b=="string")if(typeof u=="boolean")w=true;else {let{position:R="end",length:H=16,ellipsis:G="...",tooltip:Y=true}=u;if(b.length>H){switch(R){case "start":v=ds(b,H);break;case "middle":v=da(b,H);break;case "end":v=us(b,H,G);break}S=Y;}}let N=g&&y?{"data-pii-type":g,"data-pii-entity":y}:{},T=Object.keys(N).length>0,k=jsxRuntime.jsx("span",{className:w?"truncate":"",...N,children:v}),P=S?jsxRuntime.jsx(Zt,{content:T?jsxRuntime.jsx("span",{...N,children:String(b)}):String(b),children:k}):k,A=jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[o&&jsxRuntime.jsx("span",{className:"text-text-secondary",children:o}),P,n&&jsxRuntime.jsx("span",{className:"text-text-secondary",children:n})]}),D=A;if(d&&b&&b!==a){let R=typeof d=="function"?d(t):String(b);D=jsxRuntime.jsx(zo,{value:R,size:"sm",children:A});}if(x){let R=Me(m,p);return jsxRuntime.jsx("div",{className:R,children:no(D,x,t,s,c,l)})}let L=Me(m,tailwindMerge.twMerge(Lr(l),p));return jsxRuntime.jsx("div",{className:L,children:D})}var SP={sm:"sm:hidden",md:"md:hidden",lg:"lg:hidden",xl:"xl:hidden"},wP={sm:"hidden sm:grid",md:"hidden md:grid",lg:"hidden lg:grid",xl:"hidden xl:grid"};function vl(e,t){return t.accessor?typeof t.accessor=="function"?t.accessor(e):e[t.accessor]:null}function Cl(e,t,r,o){if(r.cell){let n=r.cell,a=typeof r.cellProps=="function"?r.cellProps(e,t):r.cellProps;return jsxRuntime.jsx(n,{value:e,row:t,context:o,...a})}return r.render?r.render(e,t,o):e?.toString()??"\u2014"}function wl({row:e,columns:t,density:r,isLoading:o,onClick:n}){let a=t.filter(d=>d.mobile!==false).map(d=>{let m=d.mobile===false?null:d.mobile;return {...d,mobilePriority:m?.priority??2,mobileFormat:m?.format??"secondary",showLabel:m?.label??m?.format==="secondary",icon:m?.icon}}).sort((d,m)=>d.mobilePriority-m.mobilePriority),i=a.filter(d=>d.mobilePriority===1||d.mobileFormat==="primary"),s=a.filter(d=>d.mobilePriority===2&&d.mobileFormat!=="primary"),c=a.filter(d=>d.mobileFormat==="badge"),l={isLoading:!!o,rowIndex:0,columnIndex:0,density:r};return jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("border-b border-border-default bg-background-surface transition-colors",n&&"cursor-pointer hover:bg-background-hover active:bg-background-pressed",{compact:"px-3 py-2",default:"px-4 py-3",relaxed:"px-4 py-4"}[r]),onClick:n,role:n?"button":void 0,tabIndex:n?0:void 0,children:[i.length>0&&jsxRuntime.jsxs("div",{className:"mb-2 flex items-start justify-between",children:[jsxRuntime.jsx("div",{className:"flex-1",children:i.map(d=>{let m=vl(e,d);return jsxRuntime.jsx("div",{className:"font-medium text-text-primary [&>*]:!justify-start [&>*]:!text-left",children:Cl(m,e,d,l)},d.id)})}),c.length>0&&jsxRuntime.jsx("div",{className:"ml-2 flex flex-wrap gap-1",children:c.map(d=>{let m=vl(e,d);return jsxRuntime.jsx("div",{className:"inline-flex",children:Cl(m,e,d,l)},d.id)})})]}),s.length>0&&jsxRuntime.jsx("div",{className:"space-y-1",children:s.map(d=>{let m=vl(e,d),p=d.showLabel&&d.label;return jsxRuntime.jsxs("div",{className:"flex items-center text-sm text-text-secondary",children:[d.icon&&jsxRuntime.jsx(B,{name:d.icon,className:"mr-1.5 h-4 w-4 flex-shrink-0"}),p&&jsxRuntime.jsxs("span",{className:"mr-1 font-medium",children:[d.label,":"]}),jsxRuntime.jsx("span",{className:"truncate [&>*]:!justify-start [&>*]:!text-left",children:Cl(m,e,d,l)})]},d.id)})})]})}function Nl({row:e,columns:t,density:r,isLoading:o,onClick:n}){let a=t.filter(c=>c.mobile!==false),i={isLoading:!!o,rowIndex:0,columnIndex:0,density:r};return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("border-b border-border-default bg-background-surface transition-colors",n&&"cursor-pointer hover:bg-background-hover active:bg-background-pressed",{compact:"px-3 py-2",default:"px-4 py-3",relaxed:"px-4 py-4"}[r]),onClick:n,role:n?"button":void 0,tabIndex:n?0:void 0,children:jsxRuntime.jsx("div",{className:"space-y-2",children:a.map((c,l)=>{let u=vl(e,c),d=l===0;return jsxRuntime.jsxs("div",{children:[!d&&jsxRuntime.jsx("div",{className:"text-xs text-text-secondary",children:c.label}),jsxRuntime.jsx("div",{className:tailwindMerge.twMerge(d?"font-medium text-text-primary":"text-sm text-text-primary","[&>*]:!justify-start [&>*]:!text-left"),children:Cl(u,e,c,i)})]},c.id)})})})}function xx(e="md"){return {mobile:SP[e],desktop:wP[e]}}function hx({density:e}){return jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("border-b border-border-default bg-background-surface",{compact:"px-3 py-2",default:"px-4 py-3",relaxed:"px-4 py-4"}[e]),children:[jsxRuntime.jsx("div",{className:"mb-2 h-5 w-3/4 animate-pulse rounded bg-background-muted"}),jsxRuntime.jsxs("div",{className:"space-y-1",children:[jsxRuntime.jsx("div",{className:"h-4 w-1/2 animate-pulse rounded bg-background-muted"}),jsxRuntime.jsx("div",{className:"h-4 w-2/3 animate-pulse rounded bg-background-muted"})]})]})}var BP={compact:"py-1.5 px-3 text-sm",default:"py-3 px-4 text-sm",relaxed:"py-4 px-4 text-base"},VP={left:"text-left justify-start",center:"text-center justify-center",right:"text-right justify-end"};function zP(e){let t={};return e.width!==void 0&&(t.width=typeof e.width=="number"?`${e.width}px`:e.width),e.minWidth!==void 0&&(t.minWidth=typeof e.minWidth=="number"?`${e.minWidth}px`:e.minWidth),e.maxWidth!==void 0&&(t.maxWidth=typeof e.maxWidth=="number"?`${e.maxWidth}px`:e.maxWidth),e.flex!==void 0&&(t.flex=`${e.flex} 1 0`),t}function OP({column:e,sortConfig:t,onSort:r,stickyHeader:o,stickyFirstColumn:n,isFirstColumn:a,density:i="default",isLoading:s=false}){let c=e.reorderable!==false,{attributes:l,listeners:u,setNodeRef:d,transform:m,transition:p,isDragging:g}=sortable.useSortable({id:e.id,disabled:!c||s}),f=t?.columnId===e.id,h=f?t.direction:null,b=n&&a,x={...zP(e),transform:utilities.CSS.Transform.toString(m),transition:p,opacity:g?.8:1,zIndex:g?50:void 0};return jsxRuntime.jsx("div",{ref:d,className:tailwindMerge.twMerge("flex items-center border-b border-border-default bg-background-surface",e.sortable?"gap-2":"gap-1",BP[i],VP[e.align||"left"],o&&"sticky top-0 z-10",b&&"sticky left-0 z-20 shadow-[2px_0_4px_-2px_rgba(0,0,0,0.1)]",o&&b&&"z-30",e.sortable&&!s&&"hover:bg-background-hover",s&&"cursor-not-allowed opacity-60",f?"font-bold text-text-primary":"font-medium text-text-secondary",g&&"bg-background-hover"),style:x,role:"columnheader","aria-sort":f?h==="asc"?"ascending":"descending":"none","aria-disabled":s,...l,...u,children:s?jsxRuntime.jsx(J,{className:"h-4 w-24"}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("span",{className:"flex-1 truncate cursor-pointer",onClick:()=>!s&&e.sortable&&r(e.id),children:e.label}),e.sortable&&jsxRuntime.jsx("button",{type:"button",className:"flex flex-shrink-0 cursor-pointer",onClick:()=>!s&&r(e.id),"aria-label":`Sort by ${e.label}`,children:f?jsxRuntime.jsx(B,{name:h==="asc"?"CaretUp":"CaretDown",size:14,weight:"bold",className:"text-text-primary"}):jsxRuntime.jsx(B,{name:"CaretUpDown",size:12,className:"text-text-secondary opacity-40"})})]})})}function vx({columns:e,columnOrder:t,onColumnOrderChange:r,sortConfig:o,onSort:n,stickyHeader:a,stickyFirstColumn:i,density:s="default",isLoading:c=false}){let l=core.useSensors(core.useSensor(core.PointerSensor,{activationConstraint:{distance:5}}),core.useSensor(core.KeyboardSensor,{coordinateGetter:sortable.sortableKeyboardCoordinates})),u=new Map(e.map(p=>[p.id,p])),d=p=>{let{active:g,over:f}=p;if(f&&g.id!==f.id){let h=t.indexOf(g.id),b=t.indexOf(f.id);if(u.get(f.id)?.reorderable===false)return;let y=0;for(let N=0;N<t.length&&u.get(t[N])?.reorderable===false;N++)y=N+1;if(b<y)return;let v=Math.min(h,b),S=Math.max(h,b);for(let N=v;N<=S;N++){if(N===h)continue;if(u.get(t[N])?.reorderable===false)return}let w=sortable.arrayMove(t,h,b);r(w);}},m=t.map(p=>u.get(p)).filter(p=>p!==void 0);return jsxRuntime.jsx(core.DndContext,{sensors:l,collisionDetection:core.closestCenter,onDragEnd:d,children:jsxRuntime.jsx(sortable.SortableContext,{items:t,strategy:sortable.horizontalListSortingStrategy,children:jsxRuntime.jsx("div",{className:"contents",role:"rowgroup",children:m.map((p,g)=>jsxRuntime.jsx(OP,{column:p,sortConfig:o,onSort:n,stickyHeader:a,stickyFirstColumn:i,isFirstColumn:g===0,density:s,isLoading:c},p.id))})})})}var Uu={compact:"py-1.5 px-3 text-sm",default:"py-3 px-4 text-sm",relaxed:"py-4 px-4 text-base"},Ku={left:"text-left justify-start",center:"text-center justify-center",right:"text-right justify-end"},YP={full:"w-full",auto:"w-auto inline-block",contained:"w-full max-w-6xl mx-auto"},JP={auto:"table-auto",fixed:"table-fixed",responsive:"table-auto"};function Yu(e){let t={};return e.width!==void 0&&(t.width=typeof e.width=="number"?`${e.width}px`:e.width),e.minWidth!==void 0&&(t.minWidth=typeof e.minWidth=="number"?`${e.minWidth}px`:e.minWidth),e.maxWidth!==void 0&&(t.maxWidth=typeof e.maxWidth=="number"?`${e.maxWidth}px`:e.maxWidth),e.flex!==void 0&&(t.flex=`${e.flex} 1 0`),t}function XP(e,t){return t.accessor?typeof t.accessor=="function"?t.accessor(e):e[t.accessor]:null}function jP({column:e,sortConfig:t,onSort:r,stickyHeader:o,stickyFirstColumn:n,isFirstColumn:a,density:i="default",isLoading:s=false}){let c=t?.columnId===e.id,l=c?t.direction:null,u=n&&a;return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("flex items-center border-b border-border-default bg-background-surface",e.sortable?"gap-2":"gap-1",Uu[i],Ku[e.align||"left"],o&&"sticky top-0 z-10",u&&"sticky left-0 z-20 shadow-[2px_0_4px_-2px_rgba(0,0,0,0.1)]",o&&u&&"z-30",e.sortable&&!s&&"cursor-pointer hover:bg-background-hover",s&&"cursor-not-allowed opacity-60",c?"font-bold text-text-primary":"font-medium text-text-secondary"),onClick:()=>!s&&e.sortable&&r(e.id),role:"columnheader","aria-sort":c?l==="asc"?"ascending":"descending":"none","aria-disabled":s,style:Yu(e),children:s?jsxRuntime.jsx(J,{className:"h-4 w-24"}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("span",{className:"truncate",children:e.label}),e.sortable&&jsxRuntime.jsx("div",{className:"flex flex-shrink-0",children:c?jsxRuntime.jsx(B,{name:l==="asc"?"CaretUp":"CaretDown",size:14,weight:"bold",className:"text-text-primary"}):jsxRuntime.jsx(B,{name:"CaretUpDown",size:12,className:"text-text-secondary opacity-40"})})]})})}function qP({column:e,row:t,rowIndex:r,columnIndex:o,isHovered:n,density:a="default",className:i,stickyFirstColumn:s}){let c=s&&o===0,l=XP(t,e),u={isLoading:false,isHovered:n,rowIndex:r,columnIndex:o,density:a},d;if(e.cell){let m=e.cell,p=typeof e.cellProps=="function"?e.cellProps(l,t):e.cellProps;d=jsxRuntime.jsx(m,{value:l,row:t,context:u,...p});}else e.render?d=e.render(l,t,u):d=jsxRuntime.jsx("span",{className:"truncate",children:l?.toString()??""});if(e.popover){let m=e.popover,p,g="top",f=false,h="hover";typeof m=="string"?p=m:typeof m=="function"?p=m(l,t):(p=typeof m.content=="function"?m.content(l,t):m.content,g=m.placement||"top",f=m.showArrow??false,h=m.trigger||"hover"),d=jsxRuntime.jsxs(reactAriaComponents.DialogTrigger,{...h==="hover"?{trigger:"longPress"}:{},children:[jsxRuntime.jsx("div",{className:"cursor-help",children:d}),jsxRuntime.jsx(st,{placement:g,showArrow:f,children:jsxRuntime.jsx("div",{className:"p-2",children:p})})]});}return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("flex items-center border-b border-border-default bg-background-surface",e.noCellPadding?"":Uu[a],Ku[e.align||"left"],c&&"sticky left-0 z-10 shadow-[2px_0_4px_-2px_rgba(0,0,0,0.1)]",i),role:"cell",style:Yu(e),children:d})}function QP({column:e,rowIndex:t,columnIndex:r,density:o="default",stickyFirstColumn:n}){let a=n&&r===0,i={isLoading:true,rowIndex:t,columnIndex:r,density:o},s;if(e.cell){let c=e.cell,l=typeof e.cellProps=="function"?e.cellProps(null,{}):e.cellProps;s=jsxRuntime.jsx(c,{value:null,row:{},context:i,...l});}else e.render?s=e.render(null,{},i):s=jsxRuntime.jsx(J,{className:"h-4 w-full max-w-[200px]"});return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("flex items-center border-b border-border-default bg-background-surface",e.noCellPadding?"":Uu[o],Ku[e.align||"left"],a&&"sticky left-0 z-10 shadow-[2px_0_4px_-2px_rgba(0,0,0,0.1)]"),role:"cell",style:Yu(e),children:s})}function ZP(e,t){let r=new Set(["BUTTON","A","INPUT","SELECT","TEXTAREA"]),o=new Set(["button","link","checkbox","switch","menuitem","option"]),n=e;for(;n&&n!==t;){if(r.has(n.tagName))return true;let a=n.getAttribute("role");if(a&&o.has(a))return true;n=n.parentElement;}return false}function Cx({columns:e,row:t,rowIndex:r,density:o="default",onClick:n,stickyFirstColumn:a}){let[i,s]=Oe.useState(false),c=Oe.useCallback(l=>{if(!n)return;let u=l.target,d=l.currentTarget;ZP(u,d)||n(t);},[n,t]);return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("contents group",n&&"cursor-pointer"),role:"row",onClick:c,onMouseEnter:()=>s(true),onMouseLeave:()=>s(false),children:e.map((l,u)=>jsxRuntime.jsx(qP,{column:l,row:t,rowIndex:r,columnIndex:u,isHovered:i,density:o,className:n?"group-hover:bg-background-hover":"",stickyFirstColumn:a},l.id))})}function Sx({columns:e,rowIndex:t,density:r="default",stickyFirstColumn:o}){return jsxRuntime.jsx("div",{className:"contents",role:"row",children:e.map((n,a)=>jsxRuntime.jsx(QP,{column:n,rowIndex:t,columnIndex:a,density:r,stickyFirstColumn:o},n.id))})}function wx({columns:e,data:t,className:r,density:o="default",width:n="full",height:a,maxHeight:i,layout:s="auto",mobileRenderer:c="auto",customMobileRowRender:l,mobileBreakpoint:u="md",isLoading:d=false,loadingState:m,loadingRowCount:p=5,onLoadMore:g,hasMore:f=false,enableVirtualization:h,estimatedRowHeight:b,loadingIndicator:x,stickyHeader:y=false,stickyFirstColumn:v=false,onRowClick:S,getRowId:w,hideHeader:N=false,sortConfig:T,onSort:k,"aria-label":P,enableColumnReorder:A=false,columnOrder:D,onColumnOrderChange:L}){let[R,H]=Oe.useState(null),G=T!==void 0,Y=G?T:R,U=Oe.useRef(null),q=Oe.useMemo(()=>e.map(ee=>ee.id),[e]),[j,Q]=Oe.useState(q),E=D!==void 0,M=E?D:j;Oe.useEffect(()=>{E||Q(ee=>{let ne=e.map(le=>le.id),V=new Set(ne),z=new Set(ee),se=ee.filter(le=>V.has(le)),ie=ne.filter(le=>!z.has(le));return [...se,...ie]});},[e,E]);let W=Oe.useCallback(ee=>{E||Q(ee),L?.(ee);},[E,L]),I=Oe.useMemo(()=>{if(!A&&!D)return e;let ee=new Map(e.map(ne=>[ne.id,ne]));return M.map(ne=>ee.get(ne)).filter(ne=>ne!==void 0)},[e,M,A,D]),C=Io({items:t,onLoadMore:g,hasMore:f,isLoading:d,loadingState:m,enableVirtualization:h,estimatedItemSize:b||(o==="compact"?40:o==="relaxed"?60:48),overscan:5}),F=g?C:null,O=F?.scrollRef??U,{loadMoreRef:K,virtualizer:te,virtualItems:de,isLoadingMore:_,computedLoadingState:ae}=F||{},{gridTemplateColumns:fe,totalMinWidth:re}=Oe.useMemo(()=>{let ee=0;return {gridTemplateColumns:I.map(V=>{if(V.minWidth?ee+=typeof V.minWidth=="number"?V.minWidth:0:V.width&&typeof V.width=="number"&&(ee+=V.width),V.width)return typeof V.width=="number"?`${V.width}px`:V.width;if(V.flex)return `${V.flex}fr`;if(V.minWidth&&V.maxWidth){let z=typeof V.minWidth=="number"?`${V.minWidth}px`:V.minWidth,se=typeof V.maxWidth=="number"?`${V.maxWidth}px`:V.maxWidth;return `minmax(${z}, ${se})`}return V.minWidth?`minmax(${typeof V.minWidth=="number"?`${V.minWidth}px`:V.minWidth}, 1fr)`:V.maxWidth?`minmax(0, ${typeof V.maxWidth=="number"?`${V.maxWidth}px`:V.maxWidth})`:"1fr"}).join(" "),totalMinWidth:ee}},[I]),ce=Oe.useCallback(ee=>{if(!e.find(z=>z.id===ee)?.sortable)return;let V;Y?.columnId===ee?V={columnId:ee,direction:Y.direction==="asc"?"desc":"asc"}:V={columnId:ee,direction:"asc"},G||H(V),k?.(V);},[e,Y,k,G]),xe=ae==="loading"||d&&t.length===0,he={};a?(he.height=typeof a=="number"?`${a}px`:a,he.overflowY="auto"):i?(he.maxHeight=typeof i=="number"?`${i}px`:i,he.overflowY="auto"):g&&(he.height="600px",he.overflowY="auto");let De=tailwindMerge.twMerge(YP[n],!g&&(s==="responsive"?"overflow-x-auto scrollbar-visible":"overflow-auto scrollbar-visible"),r),$e=xx(u),Mo=c!=="none",lr=(ee,ne)=>Mo?c==="custom"&&l?l(ee,ne):jsxRuntime.jsx(c==="cards"?Nl:wl,{row:ee,columns:I,density:o,isLoading:d,onClick:S?()=>S(ee):void 0}):null,$=te?de?.map(ee=>({virtualItem:ee,row:t[ee.index],index:ee.index}))||[]:t.map((ee,ne)=>({row:ee,index:ne,virtualItem:null}));return jsxRuntime.jsxs("div",{ref:O,className:De,style:{...he,position:te?"relative":void 0},children:[jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("grid border-separate border-spacing-0",JP[s],n==="auto"?"inline-grid w-auto":"w-full",Mo&&$e.desktop),role:"table","aria-label":P,style:{gridTemplateColumns:fe,minWidth:re>0?`${re}px`:void 0},children:[!N&&(A?jsxRuntime.jsx(vx,{columns:e,columnOrder:M,onColumnOrderChange:W,sortConfig:Y,onSort:ce,stickyHeader:y,stickyFirstColumn:v,density:o,isLoading:xe}):jsxRuntime.jsx("div",{className:"contents",role:"rowgroup",children:I.map((ee,ne)=>jsxRuntime.jsx(jP,{column:ee,sortConfig:Y,onSort:ce,stickyHeader:y,stickyFirstColumn:v,isFirstColumn:ne===0,density:o,isLoading:xe},ee.id))})),te?jsxRuntime.jsx("div",{className:"col-span-full",style:{gridColumn:"1 / -1",height:`${te.getTotalSize()}px`,position:"relative"},role:"rowgroup",children:xe?Array.from({length:p}).map((ee,ne)=>jsxRuntime.jsx("div",{className:"contents",children:jsxRuntime.jsx(Sx,{columns:I,rowIndex:ne,density:o,stickyFirstColumn:v})},`loading-${ne}`)):t.length>0?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[$.map(({row:ee,index:ne,virtualItem:V})=>{if(!ee||!V)return null;let z=w?w(ee):`row-${ne}`;return jsxRuntime.jsx("div",{style:{position:"absolute",top:0,left:0,width:"100%",display:"grid",gridTemplateColumns:fe,transform:`translateY(${V.start}px)`},"data-index":V.index,ref:te.measureElement,children:jsxRuntime.jsx(Cx,{columns:I,row:ee,rowIndex:ne,density:o,onClick:S,stickyFirstColumn:v})},z)}),_&&jsxRuntime.jsx("div",{style:{position:"absolute",top:`${te.getTotalSize()}px`,left:0,width:"100%"},children:x||jsxRuntime.jsx(wr,{state:"loading-more"})})]}):jsxRuntime.jsx("div",{className:"py-12 text-center text-text-secondary",children:"No data available"})}):jsxRuntime.jsx("div",{className:"contents",role:"rowgroup",children:xe?Array.from({length:p}).map((ee,ne)=>jsxRuntime.jsx(Sx,{columns:I,rowIndex:ne,density:o,stickyFirstColumn:v},`loading-${ne}`)):t.length>0?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[$.map(({row:ee,index:ne})=>{if(!ee)return null;let V=w?w(ee):`row-${ne}`;return jsxRuntime.jsx(Cx,{columns:I,row:ee,rowIndex:ne,density:o,onClick:S,stickyFirstColumn:v},V)}),_&&jsxRuntime.jsx("div",{className:"col-span-full",style:{gridColumn:"1 / -1"},children:x||jsxRuntime.jsx(wr,{state:"loading-more"})})]}):jsxRuntime.jsx("div",{className:"col-span-full py-12 text-center text-text-secondary",role:"row",children:jsxRuntime.jsx("div",{role:"cell",children:"No data available"})})})]}),Mo&&jsxRuntime.jsx("div",{className:$e.mobile,children:xe?Array.from({length:p}).map((ee,ne)=>jsxRuntime.jsx(hx,{density:o},`mobile-loading-${ne}`)):t.length>0?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[$.map(({row:ee,index:ne})=>{if(!ee)return null;let V=w?w(ee):`mobile-row-${ne}`;return jsxRuntime.jsx("div",{className:"border-b border-border-default last:border-b-0",children:lr(ee,ne)},V)}),_&&(x||jsxRuntime.jsx(wr,{state:"loading-more"}))]}):jsxRuntime.jsx("div",{className:"py-12 text-center text-text-secondary",children:"No data available"})}),g&&f&&!xe&&(te?jsxRuntime.jsx("div",{ref:K,style:{position:"absolute",top:`${te.getTotalSize()}px`,left:0,width:"100%",height:1}}):jsxRuntime.jsx("div",{ref:K,className:"h-px w-full"}))]})}function kx({status:e,alertCount:t,showCount:r=false,isLoading:o,size:n="sm",shape:a="pill",...i}){if(o)return jsxRuntime.jsx(J,{className:"inline-flex h-6 w-20"});let s={healthy:"success",warning:"warning",error:"error",unknown:"neutral"},c={healthy:"Healthy",warning:"Warning",error:"Error",unknown:"Unknown"},l=e==="warning"||e==="error",u=r&&t?`${c[e]} (${t})`:c[e];return jsxRuntime.jsx(nt,{variant:s[e],size:n,shape:a,dot:l,dotPulse:l,...i,children:u})}var $P={battery:"BatteryHigh",charger:"ChargingStation",thermostat:"ThermometerSimple",inverter:"Power",vehicle:"Car",water_heater:"DropHalfBottom",meter:"Gauge",gateway:"WifiHigh",other:"Cube",unknown:"Question"},e2={battery:"Battery",charger:"Charger",thermostat:"Thermostat",inverter:"Inverter",vehicle:"Vehicle",water_heater:"Water Heater",meter:"Meter",gateway:"Gateway",other:"Other",unknown:"Unknown"};function Px({deviceType:e,iconName:t,size:r="md",showLabel:o=false,className:n}){let a=t||(e?$P[e]:"Question"),i=e?e2[e]:void 0;return jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("inline-flex items-center",o?"flex-col gap-1":"gap-0",n),children:[jsxRuntime.jsx(B,{name:a,size:r}),o&&i&&jsxRuntime.jsx("span",{className:"text-xs text-text-secondary",children:i})]})}function Ei({children:e,title:t,headerContent:r,titleAlign:o="left",hideCloseIcon:n=false,hasBackArrow:a=false,onBack:i,isOpen:s,slideInFrom:c="right",transparentOverlay:l=false,onClose:u,className:d,primaryAction:m,secondaryAction:p,tertiaryAction:g,footerContent:f,contentPadding:h=true,maxWidth:b="400px"}){if(!s)return null;let x=t||r,y=m||p||g||f;return jsxRuntime.jsx(Vr,{children:jsxRuntime.jsx(cr,{isOpen:s,onOpenChange:v=>!v&&u?.(),isDismissable:true,transparent:l,children:jsxRuntime.jsx(reactAriaComponents.Modal,{className:"outline-none focus:outline-none focus-visible:outline-none ring-0 focus:ring-0 focus-visible:ring-0",children:jsxRuntime.jsxs(reactAriaComponents.Dialog,{className:tailwindMerge.twMerge("fixed top-0 bottom-0 flex flex-col bg-background-surface shadow-xl overflow-hidden",c==="right"?"right-0":"left-0",c==="right"?"animate-in slide-in-from-right duration-300 ease-out":"animate-in slide-in-from-left duration-300 ease-out","data-[exiting]:animate-out",c==="right"?"data-[exiting]:slide-out-to-right":"data-[exiting]:slide-out-to-left","data-[exiting]:duration-200 data-[exiting]:ease-in","outline-none focus-visible:outline focus-visible:outline-2 focus-visible:outline-action-default focus-visible:outline-offset-0",d),style:{maxWidth:b,width:"100%"},children:[x&&(a&&i?jsxRuntime.jsx(Ht,{title:t,headerContent:r,titleAlign:o,hideCloseIcon:n,hasBackArrow:true,onBack:i,onClose:u}):jsxRuntime.jsx(Ht,{title:t,headerContent:r,titleAlign:o,hideCloseIcon:n,onClose:u})),jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("flex-1 overflow-y-auto overscroll-contain",h?"px-6 py-6":"p-0"),children:e}),y&&jsxRuntime.jsx(Ao,{primaryAction:m,secondaryAction:p,tertiaryAction:g,footerContent:f})]})})})})}Ei.displayName="Drawer";function Mx({status:e,programName:t,isLoading:r,size:o="sm",shape:n="pill",...a}){if(r)return jsxRuntime.jsx(J,{className:"inline-flex h-6 w-20"});let i={enrolled:"success",eligible:"info",pending:"warning",not_eligible:"neutral",opted_out:"neutral"},s={enrolled:"Enrolled",eligible:"Eligible",pending:"Pending",not_eligible:"Not Eligible",opted_out:"Opted Out"},c=jsxRuntime.jsx(nt,{variant:i[e],size:o,shape:n,...a,children:s[e]});return t?jsxRuntime.jsx(Zt,{content:t,children:c}):c}function Ex({value:e,onChange:t,onUrlChange:r,accept:o="image/*",maxSize:n,isDisabled:a=false,onUpload:i,className:s,showPreview:c=true,placeholder:l="Drop files here or click to browse"}){let[u,d]=Oe.useState(false),[m,p]=Oe.useState(false),[g,f]=Oe.useState(null),[h,b]=Oe.useState(e),x=Oe.useRef(null),y=async w=>{if(f(null),n&&w.size>n){f(`File size must be less than ${(n/1024/1024).toFixed(2)}MB`);return}if(c&&w.type.startsWith("image/")){let N=new FileReader;N.onloadend=()=>{b(N.result);},N.readAsDataURL(w);}if(i){p(true);try{let N=await i(w);b(N),r?.(N);}catch(N){f("Failed to upload file"),console.error("Upload error:",N);}finally{p(false);}}t?.(w,h);},v=async w=>{try{let N=w.items;if(N.length>0){let T=N[0];if(T.kind==="file"){let k=await T.getFile();k&&y(k);}}}catch(N){f("Failed to upload file"),console.error("Upload error:",N);}finally{d(false);}},S=()=>{b(void 0),f(null),t?.(null),r?.(""),x.current&&(x.current.value="");};return jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("w-full",s),children:[jsxRuntime.jsxs(reactAriaComponents.DropZone,{className:tailwindMerge.twMerge("relative flex min-h-[200px] w-full flex-col items-center justify-center rounded-lg border-2 border-dashed transition-colors",u?"border-action-brand bg-action-brand/5":"border-border-muted hover:border-border-default",a&&"pointer-events-none opacity-50",g&&"border-feedback-error-border bg-feedback-error-background/50"),onDrop:v,onDropEnter:()=>d(true),onDropExit:()=>d(false),children:[h?jsxRuntime.jsxs("div",{className:"relative flex h-full w-full items-center justify-center p-4",children:[c&&(h.startsWith("data:image")||h.startsWith("http"))?jsxRuntime.jsx("img",{src:h,alt:"Preview",className:"max-h-48 max-w-full rounded-md object-contain"}):jsxRuntime.jsxs("div",{className:"flex flex-col items-center gap-2",children:[jsxRuntime.jsx(lucideReact.Image,{className:"h-12 w-12 text-text-secondary"}),jsxRuntime.jsx("span",{className:"text-sm text-text-secondary",children:"File uploaded"})]}),!a&&jsxRuntime.jsx(Z,{variant:"icon",size:"sm",onPress:S,className:"absolute right-2 top-2 bg-background-surface shadow-md",children:jsxRuntime.jsx(lucideReact.X,{className:"h-4 w-4"})})]}):jsxRuntime.jsxs("div",{className:"flex flex-col items-center gap-4 p-6",children:[jsxRuntime.jsx(lucideReact.Upload,{className:"h-12 w-12 text-text-secondary"}),jsxRuntime.jsxs("div",{className:"text-center",children:[jsxRuntime.jsx("p",{className:"text-sm text-text-primary",children:l}),jsxRuntime.jsx("p",{className:"mt-1 text-xs text-text-secondary",children:o==="image/*"?"PNG, JPG, GIF up to 10MB":`Accepts ${o}`})]}),jsxRuntime.jsx(reactAriaComponents.FileTrigger,{acceptedFileTypes:o.split(","),onSelect:w=>{let N=Array.from(w||[]);N.length>0&&y(N[0]);},children:jsxRuntime.jsx(Z,{variant:"secondary",size:"sm",isDisabled:a,children:"Choose File"})})]}),m&&jsxRuntime.jsx("div",{className:"absolute inset-0 flex items-center justify-center rounded-lg bg-background-surface/80",children:jsxRuntime.jsxs("div",{className:"flex flex-col items-center gap-2",children:[jsxRuntime.jsx("div",{className:"h-8 w-8 animate-spin rounded-full border-2 border-action-brand border-t-transparent"}),jsxRuntime.jsx("span",{className:"text-sm text-text-secondary",children:"Uploading..."})]})})]}),g&&jsxRuntime.jsx("p",{className:"mt-2 text-sm text-feedback-error-text",children:g})]})}function Ax({version:e,isLatest:t,updateAvailable:r,isLoading:o,size:n="sm",shape:a="rounded",...i}){if(o)return jsxRuntime.jsx(J,{className:"inline-flex h-6 w-16"});let s="neutral",c=e;return t?s="success":r&&(s="warning",c=`${e} (Update)`),jsxRuntime.jsx(nt,{variant:s,size:n,shape:a,...i,children:c})}function Fa(e){return jsxRuntime.jsx(reactAriaComponents.Form,{validationBehavior:"aria",...e,className:tailwindMerge.twMerge("flex flex-col gap-6",e.className)})}function Fx({placeholder:e="Search...",value:t,onChange:r,isOpen:o,onOpenChange:n,trigger:a,children:i,showShortcutHint:s=true,showInput:c=true,className:l}){let[u,d]=Oe.useState(false),m=Jt("(max-width: 767px)"),p=o!==void 0?o:u,g=Oe.useCallback(x=>{n?n(x):d(x);},[n]);Oe.useEffect(()=>{let x=y=>{(y.metaKey||y.ctrlKey)&&y.key==="k"&&(y.preventDefault(),g(!p)),y.key==="Escape"&&p&&g(false);};return window.addEventListener("keydown",x),()=>window.removeEventListener("keydown",x)},[p,g]);let f=Oe.useCallback(x=>{r?.(x);},[r]),h=jsxRuntime.jsxs("button",{type:"button",className:"flex items-center gap-2 px-3 py-2 text-sm text-text-secondary hover:text-text-primary hover:bg-background-hover rounded-md transition-colors","aria-label":"Open search",children:[jsxRuntime.jsx(B,{name:"MagnifyingGlass",size:18}),!m&&s&&jsxRuntime.jsxs("span",{className:"hidden md:flex items-center gap-1 text-xs",children:[jsxRuntime.jsx("kbd",{className:"px-1.5 py-0.5 bg-background-muted border border-border-muted rounded text-xs",children:navigator.platform.includes("Mac")?"\u2318":"Ctrl"}),jsxRuntime.jsx("kbd",{className:"px-1.5 py-0.5 bg-background-muted border border-border-muted rounded text-xs",children:"K"})]})]}),b=a===null||Oe.isValidElement(a)&&a.type===Oe.Fragment&&!a.props.children;return m?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[!b&&(a?jsxRuntime.jsx("button",{type:"button",onClick:()=>g(true),className:"appearance-none bg-transparent border-none p-0 cursor-pointer",children:a}):jsxRuntime.jsx("button",{type:"button",onClick:()=>g(true),className:"appearance-none bg-transparent border-none p-0 cursor-pointer",children:h})),jsxRuntime.jsx(lt,{isOpen:p,onClose:()=>g(false),hideCloseIcon:false,contentPadding:false,maxHeight:"90vh",children:jsxRuntime.jsxs("div",{className:"flex flex-col h-full",children:[c&&jsxRuntime.jsx("div",{className:"p-4 border-b border-border-muted flex-shrink-0",children:jsxRuntime.jsx(Er,{value:t,onChange:f,placeholder:e,showSearchIcon:true,isClearable:!!t,onClear:()=>r?.(""),reserveErrorSpace:false,className:l,autoFocus:true})}),jsxRuntime.jsx("div",{className:"flex-1 min-h-0 overflow-hidden",children:i})]})})]}):b?null:jsxRuntime.jsxs(reactAriaComponents.DialogTrigger,{isOpen:p,onOpenChange:g,children:[a||h,jsxRuntime.jsx(st,{placement:"bottom",className:"w-[600px] max-w-[90vw] bg-background-surface shadow-xl border border-border-default rounded-lg overflow-hidden",children:jsxRuntime.jsxs("div",{className:"flex flex-col",children:[c&&jsxRuntime.jsx("div",{className:"p-4 border-b border-border-muted",children:jsxRuntime.jsx(Er,{value:t,onChange:f,placeholder:e,showSearchIcon:true,isClearable:!!t,onClear:()=>r?.(""),reserveErrorSpace:false,className:l,autoFocus:true})}),jsxRuntime.jsx("div",{className:"max-h-[500px] overflow-hidden",children:i})]})})]})}function zx({placeholder:e="Search...",value:t,onChange:r,isOpen:o,onOpenChange:n,children:a,maxHeight:i="400px",variant:s="default",className:c}){let[l,u]=Oe.useState(false),d=Jt("(max-width: 767px)"),m=Oe.useRef(null),p=Oe.useRef(null),g=o!==void 0?o:l,f=Oe.useCallback(P=>{n?n(P):u(P);},[n]);Oe.useEffect(()=>{let P=A=>{(A.metaKey||A.ctrlKey)&&A.key==="k"&&(A.preventDefault(),f(!g)),A.key==="Escape"&&g&&f(false);};return window.addEventListener("keydown",P),()=>window.removeEventListener("keydown",P)},[g,f]),Oe.useEffect(()=>{g&&!d&&m.current&&setTimeout(()=>{m.current?.querySelector("input")?.focus();},0);},[g,d]),Oe.useEffect(()=>{if(!g||d)return;let P=A=>{let D=A.target,L=m.current?.contains(D),R=p.current?.contains(D);!L&&!R&&f(false);};return document.addEventListener("mousedown",P,true),()=>document.removeEventListener("mousedown",P,true)},[g,d,f]);let h=P=>{r?.(P);},b=Oe.useCallback(()=>{f(false);},[f]),x=Oe.useCallback(()=>{r?.("");},[r]),[y,v]=Oe.useState(null);Oe.useEffect(()=>{if(g&&!d&&m.current){let P=null,A=()=>{let L=m.current?.getBoundingClientRect();L&&v({top:L.bottom+8,left:L.left,width:L.width});},D=()=>{P===null&&(P=requestAnimationFrame(()=>{A(),P=null;}));};return A(),window.addEventListener("resize",D),window.addEventListener("scroll",D,true),()=>{window.removeEventListener("resize",D),window.removeEventListener("scroll",D,true),P!==null&&cancelAnimationFrame(P);}}},[g,d]);let S=Oe.useCallback(()=>{f(true);},[f]);if(d)return jsxRuntime.jsxs("div",{className:c,children:[jsxRuntime.jsx("button",{type:"button",onClick:S,className:"flex items-center justify-center w-10 h-10 rounded-lg hover:bg-background-hover transition-colors","aria-label":"Open search",children:jsxRuntime.jsx(B,{name:"MagnifyingGlass",size:"md"})}),jsxRuntime.jsxs(lt,{isOpen:g,onClose:b,contentPadding:false,height:"80vh",children:[jsxRuntime.jsxs("div",{className:"flex items-center gap-2 px-4 pt-4",children:[jsxRuntime.jsx("div",{className:"flex-1",children:jsxRuntime.jsx(Er,{value:t,onChange:h,placeholder:e,showSearchIcon:true,isClearable:!!t,onClear:x,reserveErrorSpace:false,autoFocus:true})}),jsxRuntime.jsx(Z,{variant:"icon",onPress:b,"aria-label":"Close search",className:"flex-shrink-0",children:jsxRuntime.jsx(B,{name:"X",size:"md"})})]}),jsxRuntime.jsx("div",{className:"mt-4",children:a})]})]},"mobile");let w=P=>{let D=P.target.tagName==="INPUT";if(P.key==="ArrowDown"&&g&&D){P.preventDefault();let L=p.current?.querySelector("[data-search-result]");L&&L.focus();}},N=P=>{let A=P.target;if(!A.hasAttribute("data-search-result"))return;let L=Array.from(p.current?.querySelectorAll("[data-search-result]")||[]),R=L.indexOf(A);if(P.key==="ArrowDown"){P.preventDefault(),P.stopPropagation();let H=Math.min(R+1,L.length-1);L[H]?.focus();}else if(P.key==="ArrowUp")if(P.preventDefault(),P.stopPropagation(),R===0)m.current?.querySelector("input")?.focus();else {let H=Math.max(R-1,0);L[H]?.focus();}else P.key==="Escape"&&(P.preventDefault(),P.stopPropagation(),f(false),m.current?.querySelector("input")?.focus());},T=g&&y&&typeof document<"u"?reactDom.createPortal(jsxRuntime.jsx("div",{ref:p,style:{position:"fixed",top:`${y.top}px`,left:`${y.left}px`,width:`${y.width}px`,zIndex:9999},role:"listbox",onKeyDown:N,children:jsxRuntime.jsx("div",{className:"bg-background-surface shadow-2xl border border-border-default rounded-lg overflow-hidden animate-in fade-in zoom-in-95 duration-200",children:jsxRuntime.jsx("div",{className:"overflow-y-auto",style:{maxHeight:i},children:a})})}),document.body):null,k=s==="elevated"?"bg-background-muted/50 border-border-subtle/50 focus-within:bg-background-body focus-within:border-border-focus focus-within:shadow-md backdrop-blur-sm transition-all duration-200":"";return jsxRuntime.jsxs("div",{ref:m,className:`relative w-full ${c||""}`,onKeyDown:w,children:[jsxRuntime.jsx(Er,{value:t,onChange:h,placeholder:e,showSearchIcon:true,isClearable:!!t,onClear:()=>r?.(""),reserveErrorSpace:false,className:k,onFocus:()=>f(true)}),T]},"desktop")}function Ox({message:e="No results found",suggestion:t,icon:r="MagnifyingGlass",className:o=""}){return jsxRuntime.jsxs("div",{className:`flex flex-col items-center justify-center py-12 px-4 text-center ${o}`,children:[jsxRuntime.jsx("div",{className:"text-text-secondary mb-3",children:jsxRuntime.jsx(B,{name:r,size:48})}),jsxRuntime.jsx("p",{className:"text-base font-medium text-text-primary mb-1",children:e}),t&&jsxRuntime.jsx("p",{className:"text-sm text-text-secondary max-w-xs",children:t})]})}function Wx({count:e=3,className:t=""}){return jsxRuntime.jsx("div",{className:`flex flex-col ${t}`,children:Array.from({length:e}).map((r,o)=>jsxRuntime.jsxs("div",{className:"flex items-center gap-3 px-4 py-2.5",children:[jsxRuntime.jsx(J,{width:20,height:20,variant:"circle"}),jsxRuntime.jsxs("div",{className:"flex-1 min-w-0 space-y-2",children:[jsxRuntime.jsx(J,{width:"60%",height:16}),jsxRuntime.jsx(J,{width:"40%",height:12})]}),jsxRuntime.jsx(J,{width:16,height:16})]},o))})}function Ux({title:e,count:t,isLoading:r,footer:o,children:n,className:a}){return jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("flex flex-col",a),children:[jsxRuntime.jsxs("div",{className:"flex items-baseline gap-1.5 px-4 pt-4 pb-2 border-t border-border-muted first:border-t-0",children:[jsxRuntime.jsx("h3",{className:"text-sm font-semibold text-text-primary",children:e}),!r&&t!==void 0&&jsxRuntime.jsx("span",{className:"text-xs text-text-secondary",children:t}),r&&jsxRuntime.jsx("span",{className:"text-xs text-text-secondary animate-pulse",children:"Loading..."})]}),jsxRuntime.jsx("div",{className:"flex flex-col",children:n}),o&&jsxRuntime.jsx("div",{className:"px-4 py-2 border-t border-border-subtle",children:o})]})}function Kx({id:e,title:t,subtitle:r,metadata:o,icon:n,customIcon:a,onSelect:i,isFocused:s=false,className:c,testId:l}){return jsxRuntime.jsxs("div",{role:"option",tabIndex:0,onClick:()=>{i?.(e);},onKeyDown:m=>{let p=m.currentTarget;switch(m.key){case "Enter":case " ":{m.preventDefault(),i?.(e);break}case "ArrowDown":{m.preventDefault();let g=Array.from(document.querySelectorAll("[data-search-result]")),f=g.indexOf(p);f!==-1&&f<g.length-1&&g[f+1].focus();break}case "ArrowUp":{m.preventDefault();let g=Array.from(document.querySelectorAll("[data-search-result]")),f=g.indexOf(p);if(f>0)g[f-1].focus();else {let h=document.querySelector('input[type="text"][placeholder*="Search"]');h&&h.focus();}break}case "Escape":{m.preventDefault();let g=document.querySelector('input[type="text"][placeholder*="Search"]');g&&g.focus();break}}},"data-testid":l,"data-search-result":true,className:tailwindMerge.twMerge("group flex items-center gap-3 px-4 py-3 cursor-pointer outline-none transition-colors","text-text-primary hover:bg-background-hover","focus-visible:bg-background-muted focus-visible:outline-none","data-[focused]:bg-background-hover",s&&"bg-background-hover",c),"data-focused":s||void 0,children:[a?jsxRuntime.jsx("div",{className:"flex-shrink-0",children:a}):n?jsxRuntime.jsx("div",{className:"flex-shrink-0 text-text-secondary",children:jsxRuntime.jsx(B,{name:n,size:20})}):null,jsxRuntime.jsxs("div",{className:"flex-1 min-w-0",children:[jsxRuntime.jsxs("div",{className:"flex items-baseline gap-2",children:[jsxRuntime.jsx("span",{className:"font-medium text-text-primary truncate",children:t}),o&&jsxRuntime.jsx("span",{className:"text-xs text-text-secondary flex-shrink-0",children:o})]}),r&&jsxRuntime.jsx("div",{className:"text-sm text-text-secondary truncate mt-0.5",children:r})]}),jsxRuntime.jsx("div",{className:"flex-shrink-0 opacity-0 group-hover:opacity-100 group-focus-visible:opacity-100 group-data-[focused]:opacity-100 transition-opacity",children:jsxRuntime.jsx(B,{name:"ArrowRight",size:16,className:"text-text-secondary"})})]})}function Yx({children:e,maxHeight:t="400px",className:r}){return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("overflow-y-auto overscroll-contain","divide-y divide-border-muted",r),style:{maxHeight:t},children:e})}function Xx({placeholder:e="Search...",onClick:t,showShortcut:r=true,variant:o="default",className:n=""}){let a=typeof navigator<"u"&&navigator.platform.includes("Mac");return jsxRuntime.jsxs("button",{type:"button",onClick:t,className:`
|
|
27
|
+
`}})]})}function Vo(e,t=300){let[r,o]=Oe.useState(e);return Oe.useEffect(()=>{let n=setTimeout(()=>o(e),t);return ()=>clearTimeout(n)},[e,t]),r}function Ns(e,t=300){let[r,o]=Oe.useState(false);return Oe.useEffect(()=>{if(e){let n=setTimeout(()=>{o(true);},t);return ()=>clearTimeout(n)}o(false);},[e,t]),r}var pS=({isEntering:e,isExiting:t,className:r})=>["max-w-[200px] group bg-action-default border border-action-default-hover text-[color:var(--color-action-default-text)] text-sm rounded-lg drop-shadow-lg will-change-transform px-3 py-1",e?"animate-in fade-in placement-bottom:slide-in-from-top-0.5 placement-top:slide-in-from-bottom-0.5 placement-left:slide-in-from-right-0.5 placement-right:slide-in-from-left-0.5 ease-out duration-200":"",t?"animate-out fade-out placement-bottom:slide-out-to-top-0.5 placement-top:slide-out-to-bottom-0.5 placement-left:slide-out-to-right-0.5 placement-right:slide-out-to-left-0.5 ease-in duration-150":"",r].filter(Boolean).join(" ");function Zt({children:e,content:t,...r}){return jsxRuntime.jsxs(reactAriaComponents.TooltipTrigger,{delay:200,children:[e,jsxRuntime.jsxs(reactAriaComponents.Tooltip,{...r,offset:10,className:reactAriaComponents.composeRenderProps(r.className,(o,n)=>pS({...n,className:o})),children:[jsxRuntime.jsx(reactAriaComponents.OverlayArrow,{children:jsxRuntime.jsx("svg",{width:8,height:8,viewBox:"0 0 8 8",className:"fill-action-default stroke-action-default-hover group-placement-left:-rotate-90 group-placement-right:rotate-90 group-placement-bottom:rotate-180 forced-colors:fill-[Canvas] forced-colors:stroke-[ButtonBorder]",children:jsxRuntime.jsx("path",{d:"M0 0 L4 4 L8 0"})})}),t]})]})}function Pr(){let[e,t]=Oe__namespace.default.useState(false),r=Oe__namespace.default.useCallback((n,a)=>{t(true),a?.(n);},[]),o=Oe__namespace.default.useCallback((n,a)=>{t(false),a?.(n);},[]);return {isFocused:e,handleFocus:r,handleBlur:o}}var yt=Oe__namespace.default.forwardRef(({children:e,className:t},r)=>jsxRuntime.jsx("div",{ref:r,className:tailwindMerge.twMerge("relative w-full",t),children:e}));yt.displayName="InputWrapper";function ii({onClick:e,size:t="md",className:r}){return jsxRuntime.jsx("button",{type:"button",onClick:o=>{o.preventDefault(),o.stopPropagation(),e();},className:tailwindMerge.twMerge("absolute right-2 top-[48%] -translate-y-1/2 transform text-text-secondary hover:text-text-primary cursor-pointer",r),"aria-label":"Clear input",onMouseDown:o=>{o.preventDefault(),o.stopPropagation();},children:jsxRuntime.jsx(B,{name:"X",size:t==="sm"?16:20})})}function zo(e){let{isInvalid:t,isDisabled:r,isFocused:o}=e,n="border rounded-[var(--control-border-radius)] !outline-none ";return r?`${n} border-border-muted`:t&&o?`${n} border-feedback-error-border shadow-[inset_0_0_0_1px_var(--color-feedback-error-border)]`:t?`${n} border-feedback-error-border`:o?`${n} border-border-focus shadow-[inset_0_0_0_1px_var(--color-border-focus)]`:`${n} border-border-input`}function yf(e){return e.isDisabled?"bg-background-muted":e.transparent?"bg-transparent":"bg-background-input"}function mS(e){return e==="sm"?"!text-base md:!text-[length:var(--control-text-sm)]":e==="md"?"!text-base md:!text-[length:var(--control-text-md)]":""}function zt(e){let{isInvalid:t,isDisabled:r,isFocused:o,transparent:n,size:a="md",className:i}=e;return tailwindMerge.twMerge("w-full",zo({isInvalid:t,isDisabled:r,isFocused:o}),yf({transparent:n,isDisabled:r}),Ge[a].text,Ge[a].height,Ge[a].padding,mS(a),i)}function fS(e){let{size:t="md",isFocusWithin:r,isInvalid:o,isDisabled:n,transparent:a,className:i}=e;return tailwindMerge.twMerge("group flex items-center rounded-[var(--control-border-radius)] overflow-hidden",yf({transparent:a,isDisabled:n}),Ge[t].height,zo({isFocused:r,isInvalid:o,isDisabled:n}),i)}function ze({children:e,size:t="md",tooltip:r,description:o,descriptionPlacement:n="below",isRequired:a,className:i,htmlFor:s}){let c=r||o&&n==="tooltip",l=r||o,u=o&&n==="inline",d=jsxRuntime.jsxs("label",{htmlFor:s,className:tailwindMerge.twMerge(Ge[t].text,"!text-text-label font-semibold flex items-center gap-1",i),children:[e,a&&jsxRuntime.jsx("span",{children:"*"}),c&&jsxRuntime.jsx("span",{className:"inline-flex items-center text-text-secondary",children:jsxRuntime.jsx(B,{name:"Info",size:t==="sm"?16:20})}),u&&jsxRuntime.jsx("span",{className:"text-text-secondary font-normal ml-1",children:o})]});return c&&l?jsxRuntime.jsx(Zt,{content:l,children:d}):d}function Te({size:e="md",className:t,children:r,...o}){return jsxRuntime.jsx("div",{...o,className:tailwindMerge.twMerge("leading-[2.25] text-text-secondary",Ge[e].text,t),children:r})}function be({children:e,size:t="md",className:r}){return jsxRuntime.jsx("div",{role:"alert",className:tailwindMerge.twMerge(Ge[t].text,"text-feedback-error-text",r),children:e})}function Ts({size:e="md",isInvalid:t,isDisabled:r,isFocused:o,transparent:n,className:a,...i}){return jsxRuntime.jsx("input",{className:zt({isInvalid:t,isDisabled:r,isFocused:o,transparent:n,size:e,className:a}),...i})}function vf(e){let{children:t,...r}=e;return jsxRuntime.jsx("div",{...r,className:fS(e),children:typeof t=="function"?t(e):t})}var Id=Oe.createContext("md");function kf(){return Oe.useContext(Id)}function Ed(e="md"){let t=e==="sm"?"!text-base md:!text-[length:var(--control-text-sm)]":e==="md"?"!text-base md:!text-[length:var(--control-text-md)]":"";return `flex-1 text-start data-[placeholder]:text-text-disabled overflow-hidden text-ellipsis whitespace-nowrap ${Ge[e].text} ${t}`}function vS(){let e=Oe__namespace.default.useCallback((r,o)=>{o?.(r);},[]),t=Oe__namespace.default.useCallback((r,o)=>{o?.(r);},[]);return {handleFocus:e,handleBlur:t}}function bo({label:e,description:t,errorMessage:r,children:o,items:n,renderItem:a,renderSelectedValue:i,size:s="md",selectedKey:c,defaultSelectedKey:l,onSelectionChange:u,placeholder:d,showErrors:m=false,tooltip:p,isRequired:g,transparent:f,reserveErrorSpace:h=false,placement:b="bottom start",shouldFlip:x=true,menuWidth:y="match",descriptionPlacement:v="below",useMobileTray:S=true,...w}){let[N,R]=Oe.useState(null),[k,T]=Oe.useState(null),[A,M]=Oe.useState(false),E=c??N??l,{handleFocus:P,handleBlur:O}=vS(),{isMobile:G}=Xt(),K=S&&G,W=Oe__namespace.default.useMemo(()=>!i||!E||!n?null:Array.from(n).find(U=>U.id===E)??null,[i,E,n]),q=D=>{u&&D!==null&&u(D),u||R(D);},j=Oe.useRef(null),Q=Oe.useRef(null),L=()=>{K&&M(!A);};return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(reactAriaComponents.Select,{...w,selectedKey:E,defaultSelectedKey:l,onSelectionChange:q,placeholder:d,className:ke(w.className,"group flex w-full flex-col"),ref:j,onOpenChange:D=>{K||(D&&Q.current?T(Q.current.offsetWidth):D||j.current?.blur());},children:({isDisabled:D,isInvalid:U,isOpen:I})=>jsxRuntime.jsxs("div",{className:"flex flex-col",children:[e&&jsxRuntime.jsx(ze,{size:s,tooltip:p,description:v==="tooltip"||v==="inline"?t:void 0,descriptionPlacement:v,isRequired:g,children:e}),jsxRuntime.jsx(yt,{children:jsxRuntime.jsx("div",{ref:Q,children:jsxRuntime.jsxs(Z,{variant:"unstyled",className:tailwindMerge.twMerge(zt({isInvalid:U||m&&!!r,isDisabled:D,isFocused:K?A:I,transparent:f,size:s}),"flex items-center text-start gap-4 cursor-pointer pl-[var(--control-padding-sm)]"),onFocus:C=>P(C,w.onFocus),onBlur:C=>O(C,w.onBlur),onPress:K?L:void 0,"data-open":K?A:I,children:[i&&W?jsxRuntime.jsx("div",{className:Ed(s),children:i(W)}):K&&E?jsxRuntime.jsx("div",{className:Ed(s),children:n?Array.from(n).find(H=>H.id===E)?.label:String(E)}):jsxRuntime.jsx(reactAriaComponents.SelectValue,{className:Ed(s)}),jsxRuntime.jsx(B,{name:"CaretDown","aria-hidden":true,className:tailwindMerge.twMerge("h-4 w-4 text-text-primary group-disabled:text-text-disabled forced-colors:text-[ButtonText] transition-transform",(K?A:I)&&"rotate-180")})]})})}),h?jsxRuntime.jsx("div",{className:"mt-1 min-h-[20px]",children:m?jsxRuntime.jsx(be,{size:s,className:"text-feedback-error-text",children:typeof r=="function"&&w.validationResult?r(w.validationResult):typeof r=="string"?r:null}):t&&v==="below"?jsxRuntime.jsx(Te,{size:s,children:t}):null}):jsxRuntime.jsx(jsxRuntime.Fragment,{children:m?jsxRuntime.jsx(be,{size:s,className:"mt-1 text-feedback-error-text",children:typeof r=="function"&&w.validationResult?r(w.validationResult):typeof r=="string"?r:null}):t&&v==="below"?jsxRuntime.jsx(Te,{size:s,className:"mt-1",children:t}):null}),K?null:jsxRuntime.jsx(lt,{className:"bg-background-input shadow-xl border border-border-input/20 backdrop-blur-sm rounded-[var(--control-border-radius)]",style:{width:y==="match"&&k?`${k}px`:void 0,minWidth:y==="auto"&&k?`${k}px`:void 0,maxWidth:y==="auto"?"min(600px, 90vw)":void 0},placement:b,shouldFlip:x,children:jsxRuntime.jsx(Id.Provider,{value:"md",children:jsxRuntime.jsx(reactAriaComponents.ListBox,{items:n,className:"w-full max-h-[300px] overflow-auto bg-background-input p-0 outline-0",children:a&&n?C=>jsxRuntime.jsx(_t,{id:C.id,textValue:C.label,children:jsxRuntime.jsx("span",{className:"overflow-hidden text-ellipsis whitespace-nowrap min-w-0 flex-1",children:a(C)})},C.id):o})})})]})}),K&&jsxRuntime.jsx(ct,{isOpen:A,onClose:()=>M(false),title:e??"Select an option",contentPadding:false,children:jsxRuntime.jsx(Id.Provider,{value:"md",children:jsxRuntime.jsx(reactAriaComponents.ListBox,{items:n,className:"w-full bg-background-surface p-0 outline-0 [&_[role=option]]:border-b [&_[role=option]]:border-border-default [&_[role=option]:last-child]:border-0 [&_[role=option]]:!px-6 [&_[role=option]]:!py-4 [&_[role=option]]:rounded-none",selectionMode:"single",selectedKeys:E!=null?[E]:[],onSelectionChange:D=>{let U=Array.from(D)[0];U!=null&&(q(U),M(false));},children:a&&n?D=>jsxRuntime.jsx(_t,{id:D.id,textValue:D.label,children:jsxRuntime.jsx("span",{className:"overflow-hidden text-ellipsis whitespace-nowrap min-w-0 flex-1",children:a(D)})},D.id):o})})})]})}function _t({size:e,className:t,...r}){let o=kf(),n=e??o;return jsxRuntime.jsx(reactAriaComponents.ListBoxItem,{...r,className:tailwindMerge.twMerge("flex cursor-default items-center gap-2 rounded-sm px-3 outline-none text-text-primary data-[focused]:bg-background-hover data-[focus-visible]:ring-2 data-[focus-visible]:ring-action-default data-[focus-visible]:ring-inset data-[selected]:bg-background-selected data-[selected]:font-medium overflow-hidden",Ge[n].paddingY,Ge[n].text,t)})}var LS=[],AS={sm:"h-4 w-4",md:"h-5 w-5",lg:"h-6 w-6",xl:"h-7 w-7"},IS={sm:"pl-8",md:"pl-10",lg:"pl-11",xl:"pl-13"},Pf={sm:"py-1",md:"py-2",lg:"py-3",xl:"py-4"},Bd=(e,t,r)=>{if(e==null||e==="")return "";let n=(r?r.flatMap(a=>a.items):t||[]).find(a=>a.id===e);return n?n.name:""};async function FS(e,t,r){try{let o=e.url.replace("{q}",t),n=new URLSearchParams;e.extraParams&&Object.entries(e.extraParams).forEach(([c,l])=>{n.append(c,l.toString());});let a=`${o}${n.toString()?"?"+n.toString():""}`,i=await fetch(a,{method:"GET",headers:e.headers,signal:r});if(!i.ok)throw new Error(`HTTP error! status: ${i.status}`);let s=await i.json();return {items:e.transformResponse(s)}}catch(o){if(o instanceof Error&&o.name==="AbortError")return {items:[]};console.error("Error in REST request:",o);let n=o instanceof Error?o.message:"Unknown error occurred";return {items:[],error:n}}}async function BS(e,t,r){try{let o=e.graphqlQuery.replace(`$${e.variableKey||"filter"}`,`"${t}"`),n=await fetch(e.url,{method:"POST",headers:{"Content-Type":"application/json",...e.headers},body:JSON.stringify({query:o}),signal:r});if(!n.ok)throw new Error(`HTTP error! status: ${n.status}`);let a=await n.json();if(a.errors)throw new Error(a.errors[0]?.message||"GraphQL error occurred");return e.responsePath&&(a=e.responsePath.split(".").reduce((i,s)=>i?.[s],a)),{items:e.transformResponse(a)}}catch(o){if(o instanceof Error&&o.name==="AbortError")return {items:[]};console.error("Error in GraphQL request:",o);let n=o instanceof Error?o.message:"Unknown error occurred";return {items:[],error:n}}}function Ms({label:e,staticItems:t=LS,sections:r,selectedKey:o,defaultSelectedKey:n,onSelectionChange:a,requestConfig:i,defaultFilter:s,placeholder:c,errorMessage:l,description:u,size:d="md",tooltip:m,isRequired:p,isDisabled:g,isInvalid:f,validationResult:h,showErrors:b=true,renderItem:x,renderLeftIcon:y,renderSection:v,autoFocus:S=false,reserveErrorSpace:w=false,hideChevron:N=false,useMobileTray:R=true,className:k}){let T=Oe__namespace.default.useRef(null),A=Oe__namespace.default.useRef(null),[M,E]=Oe__namespace.default.useState(),[P,O]=Oe.useState(()=>Bd(o||n,t,r)),[G,K]=Oe.useState(false),[W,q]=Oe.useState(false),j=Vo(P),{contains:Q}=reactAria.useFilter({sensitivity:"base"}),[L,D]=Oe.useState(),{isMobile:U}=Xt(),I=R&&U,C=Ge[d].text,F=reactStately.useAsyncList({async load({signal:re,filterText:ce=""}){if(!i)return {items:[]};if(!i.url||i.shouldLoad&&!i.shouldLoad(ce))return {items:[]};try{let xe;return i.requestType==="GraphQL"?xe=await BS(i,ce,re):xe=await FS(i,ce,re),D(xe.error),{items:xe.items}}catch(xe){return xe instanceof Error&&xe.name==="AbortError"?{items:[]}:(console.error("Error loading items:",xe),D(xe instanceof Error?xe.message:"Unknown error occurred"),{items:[]})}},initialFilterText:""}),H=i&&j!==""?F:null,Y=false,te=Oe.useRef("");Oe.useEffect(()=>{S&&K(true);},[S]),Oe.useEffect(()=>{let re=Bd(o,t,r);re!==P&&O(re);},[o,t,r]),Oe.useEffect(()=>{let re=()=>{T.current&&E(T.current.offsetWidth);};return re(),window.addEventListener("resize",re),()=>window.removeEventListener("resize",re)},[]),Oe.useEffect(()=>{j===""?te.current="":H&&j!==te.current&&(te.current=j,H.setFilterText(j));},[j,H]),Y=Ns(!!H?.isLoading,300);let de=Oe__namespace.default.useMemo(()=>{if(!I||!P)return H?H.items:t;let re=H?H.items:t,ce=s??(i?()=>true:Q);return re.filter(xe=>ce(xe.name,P))},[I,P,H,t,s,Q]),_=re=>{let ce=Bd(re,t,r);O(ce),a&&a(re);},ae=re=>{O(re);},fe=()=>{I&&q(true);};return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(reactAriaComponents.ComboBox,{onSelectionChange:_,selectedKey:o||void 0,defaultSelectedKey:n||void 0,items:H?H.items:r?r.flatMap(re=>re.items):t,className:ke(k,"group flex flex-col w-full"),menuTrigger:I?"manual":i?"input":"focus",allowsEmptyCollection:!!i,isDisabled:g,isInvalid:f||!!l,inputValue:P,onInputChange:ae,autoFocus:S&&!I,defaultFilter:s??(i?()=>true:Q),"aria-label":e||c||"Autocomplete",children:re=>jsxRuntime.jsxs("div",{className:"flex flex-col",children:[e&&jsxRuntime.jsx(ze,{size:d,tooltip:m,isRequired:p,children:e}),jsxRuntime.jsxs(yt,{ref:T,children:[y?jsxRuntime.jsx("div",{className:"pointer-events-none absolute left-3 top-[45%] -translate-y-1/2 z-10",children:y(Y)}):jsxRuntime.jsx("div",{className:"pointer-events-none absolute left-3 top-1/2 -translate-y-1/2 z-10 flex items-center",children:Y?jsxRuntime.jsx(go,{size:16,color:"text-text-secondary"}):jsxRuntime.jsx(B,{name:"MagnifyingGlass",className:`${AS[d]} text-text-secondary`})}),jsxRuntime.jsx(reactAriaComponents.Input,{className:zt({isInvalid:f||!!l,isDisabled:g,isFocused:G||(I?W:re.isOpen),size:d,className:tailwindMerge.twMerge(IS[d],P&&!g||!N&&!P?"pr-10":"pr-3",I&&"cursor-pointer",k)}),placeholder:c,disabled:g,onFocus:ce=>{K(true),I&&(ce.currentTarget.blur(),fe());},onBlur:()=>{K(false);},onClick:I?fe:void 0,readOnly:I,"aria-label":e||c||"Autocomplete"}),P&&!g&&jsxRuntime.jsx(ii,{onClick:()=>{O(""),a?.(null);},size:d}),!N&&!P&&jsxRuntime.jsx(reactAriaComponents.Button,{className:"absolute right-3 top-[46%] -translate-y-1/2 transform text-text-secondary hover:text-text-primary","aria-label":"Toggle menu",isDisabled:g,children:({isPressed:ce})=>jsxRuntime.jsx(B,{name:ce?"CaretUp":"CaretDown",className:"h-4 w-4"})})]}),w?jsxRuntime.jsx("div",{className:"mt-1 min-h-[20px]",children:b&&L?jsxRuntime.jsx(be,{size:d,className:"text-feedback-error-text",children:L}):b&&typeof l=="string"?jsxRuntime.jsx(be,{size:d,className:"text-feedback-error-text",children:l}):b&&typeof l=="function"&&h?jsxRuntime.jsx(be,{size:d,className:"text-feedback-error-text",children:l(h)}):u?jsxRuntime.jsx(Te,{size:d,children:u}):null}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[u&&jsxRuntime.jsx(Te,{size:d,className:"mt-1",children:u}),b&&L&&jsxRuntime.jsx(be,{size:d,className:"text-feedback-error-text mt-1",children:L}),b&&typeof l=="string"&&jsxRuntime.jsx(be,{size:d,className:"text-feedback-error-text mt-1",children:l}),b&&typeof l=="function"&&h&&jsxRuntime.jsx(be,{size:d,className:"text-feedback-error-text mt-1",children:l(h)})]}),!I&&jsxRuntime.jsx(lt,{className:"bg-background-input shadow-xl border border-border-input/20 backdrop-blur-sm ring-1 ring-black/5 rounded-[var(--control-border-radius)]",style:{minWidth:M?`${M}px`:void 0,zIndex:9999},children:jsxRuntime.jsx(reactAriaComponents.ListBox,{"aria-label":e||c||"Suggestions",className:`max-h-[300px] overflow-auto bg-background-input outline-none ${C}`,children:r?r.map(ce=>{let xe=ce.items.map(he=>jsxRuntime.jsx(_t,{id:he.id,textValue:he.name,size:d,className:`flex cursor-default items-center gap-2 px-3 ${Pf[d]} text-text-primary outline-none data-[focused]:bg-background-hover data-[selected]:bg-background-selected data-[selected]:font-medium data-[focus-visible]:ring-0`,children:x?x(he):he.name},he.id));if(v){let he=v(ce,xe);return Oe__namespace.default.isValidElement(he)&&he.type===reactAriaComponents.ListBoxSection?he:jsxRuntime.jsx(reactAriaComponents.ListBoxSection,{children:he},ce.name)}return jsxRuntime.jsxs(reactAriaComponents.ListBoxSection,{children:[jsxRuntime.jsx(reactAriaComponents.Header,{className:"px-3 py-1 text-sm font-bold text-text-secondary",children:ce.name}),xe]},ce.name)}):ce=>jsxRuntime.jsx(_t,{id:ce.id,textValue:ce.name,size:d,className:`flex cursor-default items-center gap-2 px-3 ${Pf[d]} text-text-primary outline-none data-[focused]:bg-background-hover data-[selected]:bg-background-selected data-[selected]:font-medium data-[focus-visible]:ring-0`,children:x?x(ce):ce.name},ce.id)})})]})}),I&&jsxRuntime.jsx(ct,{isOpen:W,onClose:()=>q(false),title:e??c??"Search",contentPadding:false,height:"80vh",children:jsxRuntime.jsxs("div",{className:"flex flex-col h-full",children:[jsxRuntime.jsx("div",{className:"p-4 border-b border-border-default",children:jsxRuntime.jsxs(yt,{children:[jsxRuntime.jsx("div",{className:"pointer-events-none absolute left-3 top-[45%] -translate-y-1/2 z-10 flex items-center",children:Y?jsxRuntime.jsx(go,{size:16,color:"text-text-secondary"}):jsxRuntime.jsx(B,{name:"MagnifyingGlass",className:"h-4 w-4 text-text-secondary"})}),jsxRuntime.jsx("input",{ref:A,type:"text",value:P,onChange:re=>ae(re.target.value),placeholder:c,autoFocus:true,className:zt({isInvalid:false,isDisabled:false,isFocused:true,size:"md",className:"pl-10 pr-10"})}),P&&jsxRuntime.jsx(ii,{onClick:()=>{O(""),a?.(null);},size:"md"})]})}),jsxRuntime.jsx("div",{className:"flex-1 overflow-auto",children:jsxRuntime.jsx(reactAriaComponents.ListBox,{"aria-label":e||c||"Suggestions",items:de,selectedKeys:o?[o]:[],selectionMode:"single",onSelectionChange:re=>{let ce=Array.from(re)[0];ce&&(_(ce),q(false));},className:"bg-background-input outline-none",children:re=>jsxRuntime.jsx(_t,{id:re.id,textValue:re.name,size:"md",className:"flex cursor-default items-center gap-2 px-4 py-3 text-text-primary outline-none data-[focused]:bg-background-hover data-[selected]:bg-background-selected data-[selected]:font-medium data-[focus-visible]:ring-0",children:x?x(re):re.name},re.id)})})]})})]})}function xo({src:e,alt:t,firstName:r,lastName:o,fullName:n,onClick:a,size:i="md",shape:s="circle",variant:c="user",className:l,status:u,bordered:d=false,piiEntity:m}){let[p,g]=Oe.useState(false),f=Oe.useCallback(()=>g(true),[]);Oe.useEffect(()=>{g(false);},[e]);let h={xs:"h-6 w-6 text-xs",sm:"h-8 w-8 text-sm",md:"h-10 w-10 text-base",lg:"h-12 w-12 text-lg",xl:"h-16 w-16 text-xl"},b={xs:"h-1.5 w-1.5",sm:"h-2 w-2",md:"h-2.5 w-2.5",lg:"h-3 w-3",xl:"h-4 w-4"},x={xs:"bottom-0 right-0",sm:"bottom-0 right-0",md:"bottom-0 right-0",lg:"bottom-0.5 right-0.5",xl:"bottom-1 right-1"},y={online:"bg-feedback-success-background border-feedback-success-border",offline:"bg-text-secondary border-border-muted",away:"bg-feedback-warning-background border-feedback-warning-border",busy:"bg-feedback-error-background border-feedback-error-border"},v={user:"bg-feedback-info-background text-feedback-info-text",team:"bg-feedback-info-background text-feedback-info-text",organization:"bg-feedback-success-background text-feedback-success-text"},S=s==="circle"?"rounded-full":"rounded-md",w=tailwindMerge.twMerge("relative inline-flex items-center justify-center overflow-hidden transition-opacity outline-none",h[i],S,a&&"cursor-pointer hover:opacity-80",d&&"ring-2 ring-background-surface",l),R=(()=>{if(r||o){let M=r?.[0]||"",E=o?.[0]||"";return (M+E).toUpperCase()}if(n){let M=n.split(" "),E=M[0]?.[0]||"",P=M[M.length-1]?.[0]||"";return E===P?E.toUpperCase():(E+P).toUpperCase()}return ""})(),k=()=>{let M={xs:14,sm:16,md:20,lg:24,xl:32}[i];switch(c){case "team":return jsxRuntime.jsx(lucideReact.Users,{size:M});case "organization":return jsxRuntime.jsx(lucideReact.Building2,{size:M});default:return jsxRuntime.jsx(lucideReact.User,{size:M})}},T=M=>{if(m)return c==="organization"?M?"organization-logo":"initials":M?"avatar":"initials"},A=()=>e&&!p?jsxRuntime.jsx("img",{src:e,alt:t||n||"Avatar",className:"h-full w-full object-cover",onError:f,"data-pii-type":T(true),"data-pii-entity":m}):R?jsxRuntime.jsx("span",{className:"font-semibold","data-pii-type":T(false),"data-pii-entity":m,children:R}):k();return jsxRuntime.jsxs("div",{className:"relative inline-block",children:[jsxRuntime.jsx("div",{"data-avatar":true,className:tailwindMerge.twMerge(w,!e||p?v[c]:""),onClick:a,role:a?"button":void 0,tabIndex:a?0:void 0,children:A()}),u&&jsxRuntime.jsx("span",{className:tailwindMerge.twMerge("absolute border-2 border-background-surface",S,b[i],x[i],y[u]),"aria-label":`Status: ${u}`})]})}var KS={default:"bg-feedback-info-background text-feedback-info-text",success:"bg-feedback-success-background text-feedback-success-text",error:"bg-feedback-error-background text-feedback-error-text",warning:"bg-feedback-warning-background text-feedback-warning-text",info:"bg-feedback-info-background text-feedback-info-text",primary:"bg-action-primary/10 text-action-primary border border-action-primary/20",brand:"bg-action-primary/10 text-action-primary border border-action-primary/20",secondary:"bg-action-secondary text-[color:var(--color-action-secondary-text)] border border-border-muted",neutral:"bg-background-muted text-text-secondary",charging:"bg-state-charging text-state-charging-text",discharging:"bg-state-discharging text-state-discharging-text",heat:"bg-state-heat text-state-heat-text",cool:"bg-state-cool text-state-cool-text",eco:"bg-state-eco text-state-eco-text",auto:"bg-state-auto text-state-auto-text",on:"bg-state-on text-state-on-text",off:"bg-state-off text-state-off-text",idle:"bg-state-idle text-state-idle-text",unknown:"bg-state-unknown text-state-unknown-text",connected:"bg-feedback-success-background text-feedback-success-text",disconnected:"bg-feedback-error-background text-feedback-error-text",importing:"bg-state-importing text-state-importing-text",exporting:"bg-state-exporting text-state-exporting-text"},YS={xs:"px-1.5 py-0.5 text-xs",sm:"px-2.5 py-1.5 text-xs",md:"px-3.5 py-2 text-sm",lg:"px-4 py-2.5 text-base"},JS={pill:"rounded-full",rounded:"rounded-lg",square:"rounded-sm"},XS={xs:"w-1 h-1",sm:"w-1.5 h-1.5",md:"w-2 h-2",lg:"w-2.5 h-2.5"};function nt({children:e,variant:t="default",size:r="sm",shape:o="square",dot:n=false,dotPosition:a="left",dotPulse:i=false,title:s,className:c}){let l=n&&jsxRuntime.jsx("span",{className:tailwindMerge.twMerge("rounded-full bg-current opacity-75",XS[r],i&&"animate-pulse"),"aria-hidden":"true"});return jsxRuntime.jsxs("span",{title:s,className:tailwindMerge.twMerge("inline-flex items-center gap-1.5 font-medium",YS[r],JS[o],KS[t],c),children:[n&&a==="left"&&l,e,n&&a==="right"&&l]})}var Ze=({href:e,children:t,className:r="",external:o=false,title:n,variant:a="secondary",onClick:i,asButton:s=false,onPress:c,showArrow:l=false,alwaysUnderlined:u=false,LinkComponent:d,"data-pii-type":m,"data-pii-entity":p})=>{let g={...m&&{"data-pii-type":m},...p&&{"data-pii-entity":p}},f=o?{target:"_blank",rel:"noopener noreferrer"}:{},v=`${`${u?"underline decoration-1 underline-offset-4 decoration-current":"hover:underline hover:decoration-1 hover:underline-offset-4 hover:decoration-current"} cursor-pointer`} ${{primary:"text-action-primary hover:text-action-primary-hover visited:text-action-primary",secondary:"text-text-link-default hover:text-text-link-hover visited:text-text-link-default",muted:"text-text-secondary hover:text-text-secondary visited:text-text-secondary",unstyled:""}[a==="brand"?"primary":a==="default"?"secondary":a]} ${r}`,S=jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[t,l&&jsxRuntime.jsxs("span",{children:["\xA0","\u2192"]})]});return s?jsxRuntime.jsx("button",{type:"button",className:v,onClick:c,title:n,...g,children:S}):d&&e?jsxRuntime.jsx(d,{href:e,className:v,title:n,onClick:i,...f,...g,children:S}):jsxRuntime.jsx("a",{href:e||"#",className:v,...f,...g,title:n,onClick:i,children:S})};var ow={info:{subtle:{container:"bg-feedback-info-background border-l-4 border-l-feedback-info-border",iconColor:"text-feedback-info-border",titleColor:"text-text-primary",bodyColor:"text-text-primary"},bold:{container:"bg-feedback-info-border border-feedback-info-border",iconColor:"text-text-inverse",titleColor:"text-text-inverse",bodyColor:"text-text-inverse/90"},icon:lucideReact.Info},success:{subtle:{container:"bg-feedback-success-background border-l-4 border-l-feedback-success-border",iconColor:"text-feedback-success-border",titleColor:"text-text-primary",bodyColor:"text-text-primary"},bold:{container:"bg-feedback-success-border border-feedback-success-border",iconColor:"text-text-inverse",titleColor:"text-text-inverse",bodyColor:"text-text-inverse/90"},icon:lucideReact.CheckCircle},warning:{subtle:{container:"bg-feedback-warning-background border-l-4 border-l-feedback-warning-border",iconColor:"text-feedback-warning-border",titleColor:"text-text-primary",bodyColor:"text-text-primary"},bold:{container:"bg-feedback-warning-border border-feedback-warning-border",iconColor:"text-text-inverse",titleColor:"text-text-inverse",bodyColor:"text-text-inverse/90"},icon:lucideReact.AlertCircle},error:{subtle:{container:"bg-feedback-error-background border-l-4 border-l-feedback-error-border",iconColor:"text-feedback-error-border",titleColor:"text-text-primary",bodyColor:"text-text-primary"},bold:{container:"bg-feedback-error-border border-feedback-error-border",iconColor:"text-text-inverse",titleColor:"text-text-inverse",bodyColor:"text-text-inverse/90"},icon:lucideReact.XCircle},discovery:{subtle:{container:"bg-background-muted border-l-4 border-l-action-brand",iconColor:"text-action-brand",titleColor:"text-text-primary",bodyColor:"text-text-primary"},bold:{container:"bg-action-brand border-action-brand",iconColor:"text-text-inverse",titleColor:"text-text-inverse",bodyColor:"text-text-inverse/90"},icon:lucideReact.Lightbulb}};function Es({variant:e="info",appearance:t="subtle",title:r,children:o,dismissible:n=false,onDismiss:a,primaryAction:i,secondaryAction:s,icon:c,hideIcon:l=false,className:u,testId:d}){let m=ow[e],p=m[t],g=m.icon,f=!!(i||s),h=!!(r||o);return jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("flex gap-3 rounded-sm border p-4",p.container,u),role:"region","aria-live":"polite","data-testid":d,children:[!l&&jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("flex-shrink-0",p.iconColor),"aria-hidden":"true",children:c||jsxRuntime.jsx(g,{className:"h-5 w-5"})}),jsxRuntime.jsxs("div",{className:"flex min-w-0 flex-1 flex-col gap-3",children:[h&&jsxRuntime.jsxs("div",{className:"flex-1",children:[r&&jsxRuntime.jsx("div",{className:jt(gt("headingSm"),p.titleColor),children:r}),o&&jsxRuntime.jsx("div",{className:jt(gt("bodySm"),r?"mt-1":"",p.bodyColor),children:o})]}),f&&jsxRuntime.jsxs("div",{className:"flex flex-wrap items-center gap-3",children:[i&&(i.asLink?jsxRuntime.jsx(Ze,{asButton:true,onPress:i.onPress,variant:t==="bold"?"unstyled":"default",className:t==="bold"?"text-text-inverse hover:text-text-inverse/80":"",children:i.label}):jsxRuntime.jsx(Z,{size:"sm",variant:"primary",onPress:i.onPress,className:t==="bold"?"bg-background-surface text-text-primary hover:bg-background-surface/90":"",children:i.label})),s&&(s.asLink?jsxRuntime.jsx(Ze,{asButton:true,onPress:s.onPress,variant:t==="bold"?"unstyled":"default",className:t==="bold"?"text-text-inverse hover:text-text-inverse/80":"",children:s.label}):jsxRuntime.jsx(Z,{size:"sm",variant:"secondary",onPress:s.onPress,className:t==="bold"?"border-text-inverse/30 text-text-inverse hover:bg-text-inverse/10":"",children:s.label}))]})]}),n&&jsxRuntime.jsx("button",{type:"button",onClick:a,className:tailwindMerge.twMerge("flex h-8 w-8 flex-shrink-0 items-center justify-center self-start rounded-md transition-colors hover:bg-background-modal/10",p.iconColor,Je()),"aria-label":"Dismiss banner",children:jsxRuntime.jsx(lucideReact.X,{className:"h-4 w-4"})})]})}function Ef({isOpen:e=true,position:t="sticky",className:r,...o}){let n=t==="fixed"?"fixed top-0 left-0 right-0 z-50":"sticky top-0 z-50",a=r?`${r} !rounded-none`:"!rounded-none";return jsxRuntime.jsx(framerMotion.AnimatePresence,{children:e&&jsxRuntime.jsx(framerMotion.motion.div,{initial:{height:0,opacity:0},animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},transition:{duration:.2,ease:"easeInOut"},className:n,children:jsxRuntime.jsx(Es,{...o,className:a})})})}function ha(){let[e,t]=Oe.useState({width:0,height:0}),r=Oe.useRef(null),o=Oe.useRef(void 0),n=Oe.useCallback(a=>{if(r.current&&(r.current.disconnect(),r.current=null),o.current&&(cancelAnimationFrame(o.current),o.current=void 0),!a){t({width:0,height:0});return}let i=a.getBoundingClientRect();t({width:i.width,height:i.height}),r.current=new ResizeObserver(s=>{o.current&&cancelAnimationFrame(o.current),o.current=requestAnimationFrame(c=>{for(let l of s){let{width:u,height:d}=l.contentRect;t(m=>m.width!==u||m.height!==d?{width:u,height:d}:m);}});}),r.current.observe(a);},[]);return Oe.useEffect(()=>()=>{o.current&&cancelAnimationFrame(o.current),r.current&&r.current.disconnect();},[]),{ref:n,width:e.width,height:e.height}}function Oo({value:e,children:t,className:r,size:o="sm",iconPosition:n="right"}){let[a,i]=Oe.useState(false),l=jsxRuntime.jsx(Z,{variant:"icon",size:o,onPress:()=>{let d=e||(typeof t=="string"?t:"");navigator.clipboard.writeText(d),i(true),setTimeout(()=>{i(false);},2e3);},className:"!px-2 relative",style:{top:"0.5px"},children:jsxRuntime.jsx(B,{name:"Copy",size:o==="sm"?14:16})}),u=a?jsxRuntime.jsx(Zt,{content:"Copied!",children:l}):l;return jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("inline-flex items-center gap-0.5",r),children:[n==="left"&&u,t,n==="right"&&u]})}function Ls(e){let{children:t,maxWidth:r=600,className:o,...n}=e,{ref:a,width:i}=ha(),[s,c]=Oe__namespace.default.useState(false),[l,u]=Oe__namespace.default.useState(false),d=Oe__namespace.default.useRef(false),m=Oe__namespace.default.useMemo(()=>t&&!e.items&&typeof t!="function"?Oe__namespace.default.Children.toArray(t):null,[t,e.items]);if(Oe__namespace.default.useEffect(()=>{m&&m.length>=4&&i>0&&!d.current?(d.current=true,c(i>r),u(true)):(!m||m&&m.length<4)&&u(true);let p=setTimeout(()=>{l||u(true);},100);return ()=>clearTimeout(p)},[i,r,m,l]),m&&s&&m.length>=4){let p=m[0],g=m.slice(1,-2),f=m.slice(-2),h=g.map(b=>{if(Oe__namespace.default.isValidElement(b)){let x=b.props;if(typeof x.children=="string")return {label:x.children,href:x.href}}return {label:"..."}});return jsxRuntime.jsxs(reactAriaComponents.Breadcrumbs,{...n,ref:a,className:tailwindMerge.twMerge("flex gap-2",l?"opacity-100":"opacity-0",o),children:[p,jsxRuntime.jsx(pw,{items:h}),f]})}return jsxRuntime.jsx(reactAriaComponents.Breadcrumbs,{...n,ref:a,className:tailwindMerge.twMerge("flex gap-2",l?"opacity-100":"opacity-0",o),children:t})}function pw({items:e}){let t=e.map((r,o)=>({id:`breadcrumb-${o}`,name:r.label,href:r.href}));return jsxRuntime.jsx(reactAriaComponents.Breadcrumb,{className:"flex items-center gap-2",children:jsxRuntime.jsxs("span",{className:"flex items-center gap-2",children:[jsxRuntime.jsx(ga,{items:t,align:"left",size:"sm",children:jsxRuntime.jsx(Z,{variant:"icon",size:"sm",icon:"DotsThree","aria-label":"Show hidden breadcrumbs",className:"px-0.5"})}),jsxRuntime.jsx(lucideReact.ChevronRight,{className:"h-4 w-4 text-text-secondary"})]})})}function As(e){let{className:t,children:r,href:o,copyable:n,copyValue:a,...i}=e;return jsxRuntime.jsx(reactAriaComponents.Breadcrumb,{className:ke(t,"flex items-center gap-2"),...i,children:s=>{let c=s.isCurrent,l=typeof r=="function"?r(s):r;return jsxRuntime.jsx(jsxRuntime.Fragment,{children:c?n?jsxRuntime.jsx(Oo,{value:a||(typeof l=="string"?l:void 0),size:"sm",iconPosition:"right",children:jsxRuntime.jsx("span",{className:"max-w-[200px] truncate font-semibold text-text-primary sm:max-w-none",children:l})}):jsxRuntime.jsx("span",{className:"max-w-[200px] truncate font-semibold text-text-primary sm:max-w-none",children:l}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(Ze,{variant:"muted",href:o,className:"max-w-[150px] truncate sm:max-w-[300px] md:max-w-none",children:l}),jsxRuntime.jsx(lucideReact.ChevronRight,{className:"h-4 w-4 shrink-0 text-text-secondary"})]})})}})}function Sw({isSelected:e,isDisabled:t}){let r=[Je,"w-9 h-9 text-sm cursor-default rounded-sm flex items-center justify-center forced-color-adjust-none font-semibold"];return t?r.push("text-text-disabled forced-colors:text-[GrayText]"):e?r.push("bg-action-default text-text-inverse invalid:bg-feedback-error-border forced-colors:bg-[Highlight] forced-colors:invalid:bg-[Mark] forced-colors:text-[HighlightText]"):r.push("text-text-primary hover:bg-background-hover pressed:bg-background-selected"),r.join(" ")}function ya({errorMessage:e,...t}){return jsxRuntime.jsxs(reactAriaComponents.Calendar,{...t,children:[jsxRuntime.jsx(Is,{}),jsxRuntime.jsxs(reactAriaComponents.CalendarGrid,{className:"border-separate [border-spacing:0] [&_td]:p-0 [&_td]:!border-0",children:[jsxRuntime.jsx(Fs,{}),jsxRuntime.jsx(reactAriaComponents.CalendarGridBody,{children:r=>jsxRuntime.jsx(reactAriaComponents.CalendarCell,{date:r,className:({isSelected:o,isDisabled:n})=>`${Sw({isSelected:o,isDisabled:n})} border-0`})})]}),e&&jsxRuntime.jsx(reactAriaComponents.Text,{slot:"errorMessage",className:"text-sm text-feedback-error-text",children:e})]})}function Is(){let{direction:e}=reactAriaComponents.useLocale(),t=18;return jsxRuntime.jsxs("header",{className:"flex w-full items-center gap-1 px-1 pb-4",children:[jsxRuntime.jsx(Z,{variant:"icon",slot:"previous",className:"pl-0",children:e==="rtl"?jsxRuntime.jsx(B,{name:"CaretRight","aria-hidden":true,size:t}):jsxRuntime.jsx(B,{name:"CaretLeft","aria-hidden":true,size:t})}),jsxRuntime.jsx(reactAriaComponents.Heading,{className:"text-md mx-2 flex-1 text-center font-semibold text-text-primary"}),jsxRuntime.jsx(Z,{variant:"icon",slot:"next",className:"pr-0",children:e==="rtl"?jsxRuntime.jsx(B,{name:"CaretLeft","aria-hidden":true,size:t}):jsxRuntime.jsx(B,{name:"CaretRight","aria-hidden":true,size:t})})]})}function Fs(){return jsxRuntime.jsx(reactAriaComponents.CalendarGridHeader,{children:e=>jsxRuntime.jsx(reactAriaComponents.CalendarHeaderCell,{className:"text-xs font-semibold text-text-secondary",children:e})})}var zf=Oe__namespace.createContext(null);function Ho(){let e=Oe__namespace.useContext(zf);if(!e)throw new Error("Carousel components must be used within a CarouselRoot");return e}function Of({page:e,defaultPage:t=0,onPageChange:r,orientation:o="horizontal",loop:n=false,autoplay:a=false,autoplayDelay:i=4e3,allowMouseDrag:s=false,spacing:c="1rem",slidesPerView:l=1,slidesPerMove:u=1,className:d,children:m,...p}){let g=e!==void 0,[f,h]=Oe__namespace.useState(t),b=g?e:f,x=Oe__namespace.useRef(null),[y,v]=Oe__namespace.useState(0),[S,w]=Oe__namespace.useState(typeof a=="boolean"?a:!!a),[N,R]=Oe__namespace.useState(false),k=Oe__namespace.useRef(null),T=Oe__namespace.useRef(null),A=typeof a=="object"&&a!==null&&a.delay?a.delay:i;Oe__namespace.useEffect(()=>{if(x.current){let C=Math.max(1,Math.floor(Number(l)||1)),F=x.current.children;if(F.length===0){v(0);return}let H=Math.ceil(F.length/C);v(H);}},[m,l]);let M=Oe__namespace.useRef(-1);Oe__namespace.useEffect(()=>{if(b!==M.current&&x.current){let C=Array.from(x.current.children);if(C.length===0)return;let F=b*l,H=Math.min(F,C.length-1),Y=C[H];Y&&typeof Y.scrollIntoView=="function"&&(Y.scrollIntoView({behavior:"smooth",block:o==="vertical"?"start":"nearest",inline:o==="horizontal"?"start":"nearest"}),M.current=b);}},[b,l,o]);let E=Oe__namespace.useCallback(C=>{let F=C;n?F<0?F=y-1:F>=y&&(F=0):F=Math.max(0,Math.min(C,y-1)),g||h(F),r?.(F);},[g,n,r,y]),P=Oe__namespace.useCallback(()=>{E(b+u);},[b,E,u]),O=Oe__namespace.useCallback(()=>{E(b-u);},[b,E,u]),G=Oe__namespace.useRef(P);Oe__namespace.useEffect(()=>{G.current=P;},[P]);let K=y>0&&(n||b<y-1),W=y>0&&(n||b>0),q=Oe__namespace.useCallback(()=>{w(C=>!C);},[]);Oe__namespace.useEffect(()=>{if(S&&y>1)return k.current=setInterval(()=>{G.current();},A),()=>{k.current&&(clearInterval(k.current),k.current=null);}},[S,y,A]);let j=Oe__namespace.useCallback(()=>{k.current&&(clearInterval(k.current),k.current=null);},[]),Q=Oe__namespace.useCallback(()=>{S&&y>1&&(k.current=setInterval(()=>{G.current();},A));},[S,y,A]),L=Oe__namespace.useCallback(C=>{if(!s)return;R(true);let F="touches"in C&&C.touches&&C.touches.length>0?C.touches[0].clientX:"clientX"in C?C.clientX:0,H="touches"in C&&C.touches&&C.touches.length>0?C.touches[0].clientY:"clientY"in C?C.clientY:0;T.current={x:F,y:H};},[s]),D=Oe__namespace.useCallback(C=>{if(!N||!T.current)return;let F="touches"in C&&C.touches&&C.touches.length>0?C.touches[0].clientX:"clientX"in C?C.clientX:0,H="touches"in C&&C.touches&&C.touches.length>0?C.touches[0].clientY:"clientY"in C?C.clientY:0,Y=F-T.current.x,te=H-T.current.y,de=50;o==="horizontal"&&Math.abs(Y)>de?(Y>0?O():P(),R(false),T.current=null):o==="vertical"&&Math.abs(te)>de&&(te>0?O():P(),R(false),T.current=null);},[N,o,P,O]),U=Oe__namespace.useCallback(()=>{R(false),T.current=null;},[]),I={currentPage:b,totalPages:y,orientation:o,loop:n,spacing:c,slidesPerView:l,goToPage:E,goToNext:P,goToPrev:O,canGoNext:K,canGoPrev:W,isAutoplayActive:S,toggleAutoplay:q,itemsRef:x,isDragging:N,allowMouseDrag:s,handleDragStart:L,handleDragMove:D,handleDragEnd:U};return jsxRuntime.jsx(zf.Provider,{value:I,children:jsxRuntime.jsx("div",{...p,className:tailwindMerge.twMerge("relative w-full",o==="vertical"?"h-full":"",d),onMouseEnter:j,onMouseLeave:Q,children:m})})}function Hf({className:e,children:t,...r}){let{itemsRef:o,orientation:n,spacing:a,isDragging:i,allowMouseDrag:s,handleDragStart:c,handleDragMove:l,handleDragEnd:u}=Ho();return jsxRuntime.jsx("div",{ref:o,...r,className:tailwindMerge.twMerge("flex overflow-x-auto overflow-y-hidden snap-x snap-mandatory scrollbar-hide scroll-smooth",n==="vertical"&&"flex-col overflow-y-auto overflow-x-hidden snap-y",s&&i&&"cursor-grabbing select-none",s&&!i&&"cursor-grab",e),style:{gap:a,"--carousel-spacing":a,...r.style},onMouseDown:c,onMouseMove:l,onMouseUp:u,onMouseLeave:u,onTouchStart:c,onTouchMove:l,onTouchEnd:u,children:t})}function Wf({index:e,className:t,children:r,...o}){let{orientation:n,slidesPerView:a}=Ho();return jsxRuntime.jsx("div",{...o,"data-index":e,className:tailwindMerge.twMerge("shrink-0 snap-start",n==="horizontal"?"h-full":"w-full",t),style:{width:n==="horizontal"?`calc((100% - (${a-1} * var(--carousel-spacing, 1rem))) / ${a})`:void 0,height:n==="vertical"?`calc((100% - (${a-1} * var(--carousel-spacing, 1rem))) / ${a})`:void 0,...o.style},children:r})}function Gf({className:e,children:t,...r}){return jsxRuntime.jsx("div",{...r,className:tailwindMerge.twMerge("flex items-center justify-center gap-4 mt-4",e),children:t})}function Uf({className:e,children:t,...r}){let{goToPrev:o,canGoPrev:n}=Ho();return jsxRuntime.jsx("button",{type:"button",...r,onClick:a=>{o(),r.onClick?.(a);},disabled:!n||r.disabled,"aria-label":"Previous slide",className:tailwindMerge.twMerge("inline-flex items-center justify-center rounded-md","h-10 w-10","bg-background-input border border-border-input","text-text-primary hover:bg-background-muted","transition-colors duration-200","disabled:opacity-40 disabled:cursor-not-allowed","focus-visible:outline focus-visible:outline-2 focus-visible:outline-action-default",e),children:t||jsxRuntime.jsx(B,{name:"CaretLeft",size:"sm"})})}function Kf({className:e,children:t,...r}){let{goToNext:o,canGoNext:n}=Ho();return jsxRuntime.jsx("button",{type:"button",...r,onClick:a=>{o(),r.onClick?.(a);},disabled:!n||r.disabled,"aria-label":"Next slide",className:tailwindMerge.twMerge("inline-flex items-center justify-center rounded-md","h-10 w-10","bg-background-input border border-border-input","text-text-primary hover:bg-background-muted","transition-colors duration-200","disabled:opacity-40 disabled:cursor-not-allowed","focus-visible:outline focus-visible:outline-2 focus-visible:outline-action-default",e),children:t||jsxRuntime.jsx(B,{name:"CaretRight",size:"sm"})})}function Kd({index:e,className:t,children:r,...o}){let{currentPage:n,goToPage:a}=Ho(),i=n===e;return jsxRuntime.jsx("button",{type:"button",...o,onClick:s=>{a(e),o.onClick?.(s);},"aria-label":`Go to slide ${e+1}`,"aria-current":i,className:tailwindMerge.twMerge("h-2 rounded-full transition-all duration-200",i?"w-6 bg-action-brand":"w-2 bg-border-muted hover:bg-border-input","focus-visible:outline focus-visible:outline-2 focus-visible:outline-action-default",t),children:r})}function Yf({className:e,...t}){let{totalPages:r}=Ho();return jsxRuntime.jsx("div",{...t,className:tailwindMerge.twMerge("flex items-center gap-2",e),role:"group","aria-label":"Carousel indicators",children:Array.from({length:r},(o,n)=>jsxRuntime.jsx(Kd,{index:n},n))})}function Jf({className:e,children:t,...r}){let{isAutoplayActive:o,toggleAutoplay:n}=Ho();return jsxRuntime.jsx("button",{type:"button",...r,onClick:a=>{n(),r.onClick?.(a);},"aria-label":o?"Pause autoplay":"Start autoplay",className:tailwindMerge.twMerge("inline-flex items-center justify-center rounded-md","h-10 w-10","bg-background-input border border-border-input","text-text-primary hover:bg-background-muted","transition-colors duration-200","focus-visible:outline focus-visible:outline-2 focus-visible:outline-action-default",e),children:t||jsxRuntime.jsx(B,{name:o?"Pause":"Play",size:"sm"})})}function Xf({className:e,...t}){let{currentPage:r,totalPages:o}=Ho();return jsxRuntime.jsxs("div",{...t,className:tailwindMerge.twMerge("text-sm text-text-secondary tabular-nums",e),"aria-live":"polite","aria-atomic":"true",children:[r+1," / ",o]})}var Mw="focus:ring-action-primary",Dw="bg-action-primary border-action-primary text-[color:var(--color-action-primary-text)] hover:bg-action-primary-hover hover:border-action-primary-hover";function Yd(e){return jsxRuntime.jsxs(reactAriaComponents.CheckboxGroup,{...e,className:ke(e.className,"flex flex-col gap-2"),children:[jsxRuntime.jsx(ze,{children:e.label}),e.children,e.description&&jsxRuntime.jsx(Te,{children:e.description}),jsxRuntime.jsx(be,{children:typeof e.errorMessage=="function"?void 0:e.errorMessage})]})}function Ew({isDisabled:e}){return `relative flex gap-2 items-center group text-sm transition ${e?"text-text-disabled":"text-text-secondary"}`}function Lw({isSelected:e,isInvalid:t,isDisabled:r,isIndeterminate:o}){let n="w-5 h-5 flex-shrink-0 rounded-[var(--control-border-radius)] flex items-center justify-center border-2 transition ring-offset-2 focus:ring-2",a=Mw,i="";return r?i="border-border-muted bg-background-muted":t?i="border-feedback-error-border bg-feedback-error-background":e||o?i=Dw:i="bg-background-input border-border-input hover:border-border-focus",`${n} ${a} ${i}`}var jf="w-4 h-4 text-current group-disabled:text-text-disabled";function Sn(e){let{children:t,variant:r,...o}=e;return jsxRuntime.jsx(reactAriaComponents.Checkbox,{...o,className:reactAriaComponents.composeRenderProps(e.className,(n,a)=>`${Ew(a)} ${n||""}`),children:n=>{let{isSelected:a,isIndeterminate:i,...s}=n,c=jsxRuntime.jsx("div",{className:Lw({isSelected:a,isIndeterminate:i,...s}),children:i?jsxRuntime.jsx(lucideReact.Minus,{"aria-hidden":true,className:jf}):a?jsxRuntime.jsx(lucideReact.Check,{"aria-hidden":true,className:jf}):null});return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[c,typeof t=="function"?t(n):t]})}})}var Fw={primary:"bg-action-primary/10 text-action-primary border border-action-primary/20 hover:bg-action-primary/15",secondary:"bg-action-secondary text-[color:var(--color-action-secondary-text)] border border-border-muted hover:bg-action-secondary-hover",info:"bg-feedback-info-background text-feedback-info-text border border-feedback-info-border hover:bg-feedback-info-background/80"};function Qf(e){return !e||e==="default"?"secondary":e==="brand"?"primary":e}var Bw={xs:"px-1.5 py-[2px] gap-0.5",sm:"px-2 py-1 gap-1",md:"px-3 py-1.5 gap-1.5",lg:"px-3 py-2 gap-2",xl:"px-4 py-2.5 gap-2"},Vw="opacity-75 cursor-not-allowed pointer-events-none";function Zf(e){let{variant:t,size:r,isDisabled:o,isClickable:n,className:a}=e,i=r==="xs"?"text-xs":Ge[r].text;return tailwindMerge.twMerge("inline-flex items-center justify-center rounded-full font-medium transition-colors","whitespace-nowrap select-none",Bw[r],i,Fw[t],n&&!o&&"cursor-pointer",o&&Vw,a)}function eo({children:e,onRemove:t,removeLabel:r="Remove",size:o="md",variant:n="secondary",isRemovable:a=true,isDisabled:i=false,className:s,onClick:c}){let l=!!c&&!i,u=a&&t&&!i,d=h=>{h.stopPropagation(),h.preventDefault(),t&&!i&&t();},m=()=>{c&&!i&&c();},p=o==="xs"?10:o==="sm"?12:o==="md"?14:16,f=jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("span",{className:"truncate",children:e}),u?l?jsxRuntime.jsx("span",{onClick:d,onKeyDown:h=>{(h.key==="Enter"||h.key===" ")&&(h.preventDefault(),d(h));},role:"button",tabIndex:0,className:"flex-shrink-0 rounded-full p-0.5 hover:bg-text-primary/10 transition-colors cursor-pointer","aria-label":r,title:r,children:jsxRuntime.jsx(B,{name:"X",size:p,className:"text-current opacity-70 hover:opacity-100"})}):jsxRuntime.jsx("button",{type:"button",onClick:d,className:"flex-shrink-0 rounded-full p-0.5 hover:bg-text-primary/10 transition-colors cursor-pointer","aria-label":r,title:r,tabIndex:-1,children:jsxRuntime.jsx(B,{name:"X",size:p,className:"text-current opacity-70 hover:opacity-100"})}):null]});return l?jsxRuntime.jsx("button",{type:"button",onClick:m,className:Zf({variant:Qf(n),size:o,isDisabled:i,isClickable:l,className:s}),disabled:i,children:f}):jsxRuntime.jsx("span",{className:Zf({variant:Qf(n),size:o,isDisabled:i,isClickable:l,className:s}),children:f})}function eg({label:e,description:t,errorMessage:r,size:o="md",tooltip:n,isRequired:a=false,isDisabled:i=false,isInvalid:s=false,validationResult:c,placeholder:l="Add items...",selectedItems:u=[],onItemsChange:d,staticItems:m,fetchSuggestions:p,chipVariant:g="secondary",showErrors:f=true,className:h}){let[b,x]=Oe.useState(""),[y,v]=Oe.useState([]),[S,w]=Oe.useState(false),[N,R]=Oe.useState(false),[k,T]=Oe.useState(-1),A=Vo(b,300),M=Oe.useRef(null),E=Oe.useRef(null),{isFocused:P,handleFocus:O,handleBlur:G}=Pr(),K=Oe.useId(),W=Oe.useCallback(I=>{if(!d||!I.trim())return;let C=I.trim();if(u.includes(C)){x(""),R(false),v([]),T(-1);return}d([...u,C]),x(""),R(false),v([]),T(-1),M.current?.focus();},[u,d]),q=Oe.useCallback(I=>{d&&d(u.filter(C=>C!==I));},[u,d]);Oe.useEffect(()=>{if(!p)return;let I=true;return (async()=>{let F=A.trim();if(!F){I&&(w(false),v([]),R(false));return}w(true);try{let H=await p(F);if(!I)return;v(H),R(!0);}catch(H){if(!I)return;console.error("Error fetching suggestions:",H),v([]),R(false);}finally{I&&w(false);}})(),()=>{I=false;}},[A,p]),Oe.useEffect(()=>{if(p||!m)return;if(!A.trim()){v([]),R(false);return}let I=m.filter(C=>C.name.toLowerCase().includes(A.toLowerCase())).map(C=>C.id);v(I),R(I.length>0||A.trim().length>0);},[A,m,p]);let j=Oe.useMemo(()=>{let I=y.filter(C=>!u.includes(C));return b.trim()&&!I.includes(b.trim())&&!u.includes(b.trim())?[...I,`Create tag: "${b.trim()}"`]:I},[y,b,u]),Q=Oe.useCallback(I=>{x(I.target.value),T(-1),I.target.value&&R(true);},[]),L=Oe.useCallback(I=>{i||(I.startsWith("Create tag:")?W(b):W(I));},[W,b,i]),D=Oe.useCallback(I=>{if(!i)switch(I.key){case "Enter":case ",":if(I.preventDefault(),k>=0&&k<j.length){let C=j[k];C.startsWith("Create tag:")?W(b):W(C);}else b.trim()&&W(b.trim());break;case "Backspace":!b&&u.length>0&&(I.preventDefault(),q(u[u.length-1]));break;case "ArrowDown":I.preventDefault(),N&&T(C=>C<j.length-1?C+1:C);break;case "ArrowUp":I.preventDefault(),N&&T(C=>C>0?C-1:-1);break;case "Escape":R(false),T(-1);break}},[i,b,u,j,k,N,W,q]);Oe.useEffect(()=>{let I=C=>{E.current&&C.target instanceof Node&&!E.current.contains(C.target)&&R(false);};return document.addEventListener("mousedown",I),()=>document.removeEventListener("mousedown",I)},[]);let U=()=>tailwindMerge.twMerge("flex items-center gap-1.5 rounded-md overflow-x-auto overflow-y-hidden","[&::-webkit-scrollbar]:hidden [-ms-overflow-style:none] [scrollbar-width:none]",zo({isInvalid:s,isDisabled:i,isFocused:P}),"bg-background-input",o==="sm"&&"px-2 py-1 h-[32px]",o==="md"&&"px-2.5 py-1.5 h-[40px]",o==="lg"&&"px-3 py-2 h-[44px]",o==="xl"&&"px-3.5 py-2.5 h-[48px]",i&&"opacity-50 cursor-not-allowed bg-background-muted");return jsxRuntime.jsxs("div",{ref:E,className:tailwindMerge.twMerge("relative flex flex-col gap-1",h),children:[e&&jsxRuntime.jsx(ze,{size:o,tooltip:n,isRequired:a,children:e}),jsxRuntime.jsx(yt,{children:jsxRuntime.jsxs("div",{className:U(),onClick:()=>!i&&M.current?.focus(),children:[u.map(I=>jsxRuntime.jsx(eo,{variant:g,size:"xs",onRemove:()=>q(I),isDisabled:i,className:"shrink-0 max-h-full",children:I},I)),jsxRuntime.jsx("input",{ref:M,type:"text",role:"combobox","aria-expanded":N,"aria-haspopup":"listbox","aria-controls":K,"aria-autocomplete":"list",value:b,onChange:Q,onKeyDown:D,onFocus:I=>O(I),onBlur:I=>G(I),placeholder:u.length===0?l:"",disabled:i,className:"flex-1 min-w-[120px] h-full !border-0 !outline-none !ring-0 bg-transparent text-text-primary text-sm placeholder:text-text-disabled disabled:cursor-not-allowed focus:!ring-0 focus:!outline-none focus:!border-0 focus-visible:!ring-0 focus-visible:!outline-none focus-visible:!border-0",style:{boxShadow:"none",WebkitAppearance:"none",appearance:"none",border:"none",outline:"none"}})]})}),N&&(b||j.length>0)&&jsxRuntime.jsx("div",{id:K,role:"listbox",className:tailwindMerge.twMerge("absolute z-50 mt-1 rounded-lg border border-border-default","max-h-60 overflow-auto bg-background-surface shadow-lg","left-0 right-0 top-full"),children:S?jsxRuntime.jsx("div",{className:"px-3 py-2 text-sm text-text-secondary",children:"Loading..."}):j.length>0?j.map((I,C)=>jsxRuntime.jsx("div",{role:"option","aria-selected":C===k,className:tailwindMerge.twMerge("cursor-pointer px-3 py-2 text-sm transition-colors","hover:bg-background-hover",C===k&&"bg-background-selected",I.startsWith("Create tag:")&&"italic text-text-secondary"),onClick:()=>L(I),children:I},I)):b&&jsxRuntime.jsx("div",{className:"px-3 py-2 text-sm text-text-secondary",children:"No suggestions found"})}),t&&jsxRuntime.jsx(Te,{size:o,className:"mt-1",children:t}),f&&typeof r=="string"&&jsxRuntime.jsx(be,{size:o,className:"text-feedback-error-text mt-1",children:r}),f&&typeof r=="function"&&c&&jsxRuntime.jsx(be,{size:o,className:"text-feedback-error-text mt-1",children:r(c)})]})}var Xw={json:()=>import('ace-builds/src-noconflict/mode-json'),javascript:()=>import('ace-builds/src-noconflict/mode-javascript'),typescript:()=>import('ace-builds/src-noconflict/mode-typescript'),html:()=>import('ace-builds/src-noconflict/mode-html'),css:()=>import('ace-builds/src-noconflict/mode-css'),markdown:()=>import('ace-builds/src-noconflict/mode-markdown'),yaml:()=>import('ace-builds/src-noconflict/mode-yaml'),xml:()=>import('ace-builds/src-noconflict/mode-xml'),python:()=>import('ace-builds/src-noconflict/mode-python'),sql:()=>import('ace-builds/src-noconflict/mode-sql')},jw={github:()=>import('ace-builds/src-noconflict/theme-github'),github_dark:()=>import('ace-builds/src-noconflict/theme-github_dark')},qw={"ext-language-tools":()=>import('ace-builds/src-noconflict/ext-language_tools')},di=new Set;async function Xd(e,t){di.has(e)||(await t(),di.add(e));}async function Qw(e,t,r){await Promise.all([Xd(`language:${e}`,Xw[e]),Xd(`theme:${t}`,jw[t]),r?Xd("extension:language-tools",qw["ext-language-tools"]):void 0]);}function rg(e,t,r){let o=di.has(`language:${e}`)&&di.has(`theme:${t}`);return r?o&&di.has("extension:language-tools"):o}function og({value:e,readOnly:t=false,onChange:r,language:o="json",theme:n="github_dark",height:a,width:i="100%",className:s,lineHeight:c=19,minLines:l=3,maxLines:u=50,showLineNumbers:d=true,showGutter:m=true,fontSize:p=14,wrapEnabled:g=false}){let f=Oe.useRef(null),[h,b]=Oe.useState(()=>rg(o,n,!t)),x=Oe.useMemo(()=>{if(a)return a;let y=(e.match(/\n/g)||[]).length+1;return `${Math.max(l,Math.min(y,u))*c+10}px`},[e,a,c,l,u]);return Oe.useEffect(()=>{let y=false,v=!t;return rg(o,n,v)?(b(true),()=>{y=true;}):(b(false),Qw(o,n,v).then(()=>{y||b(true);}).catch(S=>{y||b(true),console.error("Failed to load Ace editor resources",S);}),()=>{y=true;})},[o,t,n]),Oe.useEffect(()=>{h&&f.current?.editor&&f.current.editor.resize();},[x,h]),jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("overflow-hidden rounded-md border border-border-input",s),style:{width:i,height:x},children:h?jsxRuntime.jsx(Yw__default.default,{ref:f,mode:o,theme:n,value:e,onChange:r,readOnly:t,width:"100%",height:"100%",fontSize:p,showPrintMargin:false,showGutter:m,highlightActiveLine:!t,setOptions:{useWorker:true,showLineNumbers:d,tabSize:2,enableBasicAutocompletion:!t,enableLiveAutocompletion:!t,enableSnippets:!t,showFoldWidgets:true,wrap:g},editorProps:{$blockScrolling:true}}):jsxRuntime.jsx("div",{className:"flex h-full w-full items-center justify-center bg-surface-muted text-foreground-muted",children:"Loading editor\u2026"})})}var ag=Oe__namespace.createContext({variant:"contained",density:"comfortable",showDividers:true}),ig=Oe__namespace.createContext(null),tN={contained:"rounded-lg border border-border-default bg-background-surface overflow-hidden",bordered:"rounded-lg border border-border-default bg-background-surface",plain:"bg-transparent"},ng={true:"divide-y divide-border-default",false:"gap-3"},rN={comfortable:"px-5 py-3",compact:"px-4 py-2.5"},oN={comfortable:"px-5 pt-0",compact:"px-4 pt-0"},nN={comfortable:"h-4 w-4",compact:"h-3.5 w-3.5"};function Zd(){return Oe__namespace.useContext(ag)}function aN(e){let t=Oe__namespace.useContext(ig);if(!t)throw new Error(`${e} must be used within a <CollapseItem>`);return t}function iN({variant:e,showDividers:t,className:r}){let o="group/collapse-item w-full transition-colors",n={contained:"bg-background-surface",bordered:"bg-background-surface",plain:"bg-transparent"},a=t?"":"rounded-lg border border-border-default bg-background-surface overflow-hidden";return tailwindMerge.twMerge(o,n[e],a,r)}function sN({isDisabled:e,isPressed:t,density:r,variant:o,showDividers:n,className:a}){let i="group/collapse-header flex w-full items-start gap-4 text-left transition-colors duration-150",s=e?"cursor-not-allowed text-text-disabled":"cursor-pointer text-text-primary",c=t&&!e?"bg-background-hover":"",l=rN[r];return tailwindMerge.twMerge(i,Je(),l,s,c,o==="plain"&&n?"px-0":"",a)}function lN({density:e,showDividers:t,className:r}){let o="text-text-primary",n=oN[e];return tailwindMerge.twMerge(o,n,t?"":"rounded-b-lg",r)}function va({variant:e="contained",density:t="comfortable",showDividers:r=true,className:o,...n}){let a=Oe__namespace.useMemo(()=>({variant:e,density:t,showDividers:r}),[e,t,r]),i=tailwindMerge.twMerge("flex w-full flex-col",tN[e],r?ng.true:ng.false,e==="plain"&&r?"border-y border-border-default/60":"");return jsxRuntime.jsx(ag.Provider,{value:a,children:jsxRuntime.jsx(reactAriaComponents.DisclosureGroup,{...n,className:ke(o,i)})})}function Go({className:e,children:t,...r}){let{variant:o,showDividers:n}=Zd();return jsxRuntime.jsx(reactAriaComponents.Disclosure,{...r,className:reactAriaComponents.composeRenderProps(e,a=>iN({variant:o,showDividers:n,className:a})),children:a=>jsxRuntime.jsx(ig.Provider,{value:a,children:t})})}Go.displayName="CollapseItem";function Uo({title:e,description:t,startContent:r,endContent:o,indicator:n,indicatorPosition:a="end",showIndicator:i=true,keepIndicatorSpace:s=false,children:c,className:l,...u}){let d=aN("CollapseHeader"),{density:m,variant:p,showDividers:g}=Zd(),f=nN[m];return jsxRuntime.jsx(reactAriaComponents.Button,{...u,slot:"trigger","data-expanded":d.isExpanded?"true":void 0,className:reactAriaComponents.composeRenderProps(l,(h,b)=>sN({isDisabled:b.isDisabled??false,isPressed:b.isPressed??false,density:m,variant:p,showDividers:g,className:h})),children:h=>{let b=h.isDisabled??false,x=i?typeof n=="function"?n({isExpanded:d.isExpanded,isDisabled:b}):n??jsxRuntime.jsx(B,{name:"CaretDown",size:m==="compact"?"xs":"sm",weight:"bold","aria-hidden":"true",className:tailwindMerge.twMerge("text-text-secondary transition-transform duration-200",d.isExpanded?"rotate-180":"rotate-0")}):null,y=x?jsxRuntime.jsx("span",{className:tailwindMerge.twMerge("flex flex-shrink-0 items-center justify-center text-text-secondary",f),"aria-hidden":"true",children:x}):s?jsxRuntime.jsx("span",{className:tailwindMerge.twMerge("flex flex-shrink-0 items-center justify-center",f),"aria-hidden":"true"}):null;return jsxRuntime.jsxs("div",{className:"flex w-full items-center gap-4",children:[a==="start"&&y,r&&jsxRuntime.jsx("div",{className:"flex flex-shrink-0 items-center text-text-secondary",children:r}),jsxRuntime.jsxs("div",{className:"flex min-w-0 flex-1 items-start gap-3",children:[c??jsxRuntime.jsxs("div",{className:"flex min-w-0 flex-1 flex-col gap-1 text-left",children:[e&&jsxRuntime.jsx("span",{className:"truncate font-medium text-text-primary",children:e}),t&&jsxRuntime.jsx("span",{className:"text-sm text-text-secondary",children:t})]}),o&&jsxRuntime.jsx("div",{className:"flex flex-shrink-0 items-center text-sm text-text-secondary",children:o})]}),a==="end"&&y]})}})}Uo.displayName="CollapseHeader";function Ko({className:e,children:t,...r}){let{density:o,showDividers:n}=Zd();return jsxRuntime.jsx(reactAriaComponents.DisclosurePanel,{...r,className:reactAriaComponents.composeRenderProps(e,a=>lN({density:o,showDividers:n,className:a})),children:t})}Ko.displayName="CollapseContent";function Ca(e){if(!e)return false;let t=e.startsWith("#")?e.slice(1):e;return /^[0-9A-Fa-f]{3}$|^[0-9A-Fa-f]{6}$/.test(t)}function $d(e){if(!e)return "";let t=e.startsWith("#")?e.slice(1):e;return t.length===3&&(t=t.split("").map(r=>r+r).join("")),`#${t.toUpperCase()}`}function pN({label:e,description:t,errorMessage:r,size:o="md",tooltip:n,isRequired:a,transparent:i,className:s,validationResult:c,value:l,defaultValue:u,onChange:d,placeholder:m="#000000",showColorSwatch:p=true,reserveErrorSpace:g=true,...f}){let[h,b]=Oe.useState(u||""),[x,y]=Oe.useState(l||u||""),[v,S]=Oe.useState(false),[w,N]=Oe.useState(null),{isFocused:R,handleFocus:k,handleBlur:T}=Pr(),A=l!==void 0?l:h;Oe.useEffect(()=>{l!==void 0&&y(l);},[l]);let M=A?!Ca(A):false,E=Oe.useCallback(G=>{if(y(G),Ca(G)){let K=$d(G);d?d(K):b(K);}else G===""&&(d?d(""):b(""));},[d]),P=Oe.useCallback(G=>{let K=$d(G);y(K),d?d(K):b(K);},[d]),O=Oe.useCallback(G=>{if(Ca(x)){let K=$d(x);y(K),d&&K!==A?d(K):!d&&K!==h&&b(K);}T(G,f.onBlur);},[x,A,h,d,T,f.onBlur]);return jsxRuntime.jsx(reactAriaComponents.TextField,{...f,isRequired:a,className:ke(s,"group flex flex-col"),children:({isDisabled:G})=>jsxRuntime.jsxs("div",{className:"flex flex-col",children:[e&&jsxRuntime.jsx(ze,{size:o,tooltip:n,isRequired:a,children:e}),jsxRuntime.jsx(yt,{children:jsxRuntime.jsxs("div",{className:"flex gap-2",children:[jsxRuntime.jsxs("div",{className:"flex-1 relative",children:[jsxRuntime.jsx(Ts,{size:o,disabled:G,type:"text",value:x,placeholder:m,onFocus:K=>k(K,f.onFocus),onBlur:O,onChange:K=>E(K.target.value),className:tailwindMerge.twMerge(zt({isInvalid:M,isDisabled:G,isFocused:R,size:o,transparent:i}),p?"pr-12":"pr-3","pl-3")}),p&&jsxRuntime.jsx("div",{className:"absolute right-3 top-1/2 -translate-y-1/2 pointer-events-none",style:{width:Ge[o].height},children:jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("w-6 h-6 rounded border shadow-sm",Ca(A)?"border-border-default":"border-border-default bg-background-muted"),style:Ca(A)?{backgroundColor:A}:void 0,"aria-hidden":"true",children:!Ca(A)&&jsxRuntime.jsx("div",{className:"w-full h-full flex items-center justify-center",children:jsxRuntime.jsx("div",{className:"w-3 h-3 rounded-full border-2 border-border-muted"})})})})]}),jsxRuntime.jsx("div",{ref:N,children:jsxRuntime.jsx(Z,{variant:"secondary",size:o,icon:"Palette",onPress:()=>S(!v),isDisabled:G,className:"flex-shrink-0",children:"Pick"})})]})}),g?jsxRuntime.jsx("div",{className:"mt-1 min-h-[20px]",children:typeof r=="string"?jsxRuntime.jsx(be,{size:o,children:r}):typeof r=="function"&&c?jsxRuntime.jsx(be,{size:o,children:r(c)}):t?jsxRuntime.jsx(Te,{size:o,children:t}):null}):jsxRuntime.jsx(jsxRuntime.Fragment,{children:typeof r=="string"?jsxRuntime.jsx(be,{size:o,className:"mt-1",children:r}):typeof r=="function"&&c?jsxRuntime.jsx(be,{size:o,className:"mt-1",children:r(c)}):t?jsxRuntime.jsx(Te,{size:o,className:"mt-1",children:t}):null}),v&&w&&jsxRuntime.jsx(lt,{triggerRef:{current:w},isOpen:v,onOpenChange:S,placement:"bottom end",className:"bg-background-input shadow-xl border border-border-input/20 backdrop-blur-sm rounded-lg p-4",children:jsxRuntime.jsxs("div",{className:"flex flex-col gap-4",children:[jsxRuntime.jsx(reactColorful.HexColorPicker,{color:A||"#000000",onChange:P,style:{width:"200px",height:"200px"}}),jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[jsxRuntime.jsx("div",{className:"w-10 h-10 rounded border border-border-default shadow-sm flex-shrink-0",style:{backgroundColor:A||"#000000"}}),jsxRuntime.jsx("div",{className:"flex-1 text-text-primary text-[length:var(--control-text-sm)] font-mono",children:A||"#000000"})]})]})})]})})}function cg({isOpen:e,onClose:t,onConfirm:r,title:o,message:n,confirmLabel:a="Confirm",cancelLabel:i="Cancel",confirmVariant:s,isDestructive:c=false,isLoading:l=false,maxWidth:u="500px",minWidth:d="400px"}){return jsxRuntime.jsx(kr,{isOpen:e,onClose:t,title:o,maxWidth:u,minWidth:d,primaryAction:{label:a,onPress:()=>{r();},variant:s??(c?"destructive":"primary"),isLoading:l},secondaryAction:{label:i,onPress:t,variant:"secondary",isDisabled:l},children:jsxRuntime.jsx("div",{className:"text-text-primary",children:n})})}function dg({isConnected:e,connectedAt:t,disconnectedAt:r,showTimestamp:o=false,isLoading:n,size:a="sm",shape:i="pill",...s}){if(n)return jsxRuntime.jsx(J,{className:"inline-flex h-6 w-24"});let c=e?"Connected":"Disconnected",l=e?"success":"neutral",u=null;if(o){if(e&&t)u=ss(t);else if(!e&&r){let d=ss(r);u=d?`Offline ${d}`:null;}}return jsxRuntime.jsxs("div",{className:"inline-flex flex-col gap-1",children:[jsxRuntime.jsx(nt,{variant:l,size:a,shape:i,dot:e,dotPulse:e,...s,children:c}),u&&jsxRuntime.jsx("span",{className:"text-xs text-text-secondary",children:u})]})}function ug({firstName:e,lastName:t,email:r,phone:o,avatarUrl:n,href:a,LinkComponent:i,variant:s="outlined",layout:c="horizontal",showEmail:l=true,showPhone:u=false,isLoading:d=false,className:m,contentClassName:p,piiEntity:g}){let f=`${e} ${t}`.trim(),h=({children:x,className:y})=>a?i?jsxRuntime.jsx(i,{href:a,className:y,children:x}):jsxRuntime.jsx(Ze,{href:a,variant:"unstyled",className:tailwindMerge.twMerge("hover:underline",y),asButton:false,children:x}):jsxRuntime.jsx("span",{className:y,children:x}),b=c==="vertical";return d?jsxRuntime.jsx(Ue,{variant:s,className:tailwindMerge.twMerge("flex flex-col",m),children:jsxRuntime.jsx(Ue.Content,{className:"flex items-center flex-1",children:jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("w-full",b?"flex flex-col items-center gap-4":"flex items-center gap-4"),children:[jsxRuntime.jsx(J,{width:56,height:56,className:"rounded flex-shrink-0"}),jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge(b?"w-full text-center":"flex-1","space-y-2"),children:[jsxRuntime.jsx(J,{width:"70%",height:20,className:tailwindMerge.twMerge(b&&"mx-auto")}),jsxRuntime.jsx(J,{width:"100%",height:16,className:tailwindMerge.twMerge(b&&"mx-auto")})]})]})})}):jsxRuntime.jsx(Ue,{variant:s,className:tailwindMerge.twMerge("group/card flex flex-col",m),children:jsxRuntime.jsx(Ue.Content,{className:tailwindMerge.twMerge("flex items-center flex-1",a&&"cursor-pointer",p),children:jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("relative w-full",b?"flex flex-col items-center gap-4 text-center":"flex items-center gap-4"),children:[jsxRuntime.jsx(xo,{firstName:e,lastName:t,src:n,size:"xl",variant:"user",shape:"square",className:"flex-shrink-0",piiEntity:g}),jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge(b?"w-full":"flex-1 min-w-0"),children:[a&&jsxRuntime.jsx(h,{className:"after:absolute after:inset-0",children:jsxRuntime.jsx("span",{className:"sr-only",children:f})}),jsxRuntime.jsx("span",{className:"text-lg font-semibold leading-tight text-text-primary block mb-1.5 group-hover/card:text-text-brand transition-colors","data-pii-type":g?"full-name":void 0,"data-pii-entity":g,children:f}),jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("space-y-0.5",b&&"flex flex-col items-center"),children:[l&&r&&jsxRuntime.jsxs("div",{className:"flex items-center gap-2.5 text-text-primary",children:[jsxRuntime.jsx(B,{name:"Envelope",size:16,className:"text-text-secondary flex-shrink-0"}),jsxRuntime.jsx(Ze,{href:`mailto:${r}`,variant:"unstyled",className:tailwindMerge.twMerge("text-sm leading-relaxed text-text-primary relative z-20",b?"":"truncate"),"data-pii-type":g?"email":void 0,"data-pii-entity":g,children:r})]}),u&&o&&jsxRuntime.jsxs("div",{className:"flex items-center gap-2.5 text-text-primary",children:[jsxRuntime.jsx(B,{name:"Phone",size:16,className:"text-text-secondary flex-shrink-0"}),jsxRuntime.jsx(Ze,{href:`tel:${o}`,variant:"unstyled",className:tailwindMerge.twMerge("text-sm leading-relaxed text-text-primary relative z-20",b?"":"truncate"),"data-pii-type":g?"phone":void 0,"data-pii-entity":g,children:da(o)})]})]})]})]})})})}function zs({firstName:e,lastName:t,email:r,avatarUrl:o,layout:n="stacked",size:a="md",href:i,LinkComponent:s,linkVariant:c="unstyled",emphasis:l="normal",showEmail:u=false,badge:d,avatarShape:m,isLoading:p=false,className:g,piiEntity:f}){let h=m??(n==="inline"?"circle":"square"),x={xs:{avatarSize:"xs",gap:"gap-1.5",textSize:"text-xs",secondaryTextSize:"text-xs",skeletonAvatar:24,skeletonText:80,skeletonSecondary:60},sm:{avatarSize:"sm",gap:"gap-2",textSize:"text-sm",secondaryTextSize:"text-xs",skeletonAvatar:32,skeletonText:96,skeletonSecondary:72},md:{avatarSize:"md",gap:"gap-3",textSize:"text-base",secondaryTextSize:"text-sm",skeletonAvatar:40,skeletonText:128,skeletonSecondary:96},lg:{avatarSize:"lg",gap:"gap-3",textSize:"text-lg",secondaryTextSize:"text-base",skeletonAvatar:48,skeletonText:160,skeletonSecondary:120}}[a],y=`${e} ${t}`.trim(),S={strong:"font-semibold text-text-primary",high:"font-semibold text-text-primary",normal:"text-text-primary",low:"text-text-secondary"}[l],w=({children:N,className:R})=>i?s?jsxRuntime.jsx(s,{href:i,className:R,children:N}):jsxRuntime.jsx(Ze,{href:i,variant:c,className:tailwindMerge.twMerge("hover:underline",R),asButton:false,children:N}):jsxRuntime.jsx("span",{className:R,children:N});return p?n==="inline"?jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("flex items-center",x.gap,g),children:[jsxRuntime.jsx(J,{width:x.skeletonAvatar,height:x.skeletonAvatar,className:"flex-shrink-0 rounded-full"}),jsxRuntime.jsx(J,{width:x.skeletonText,height:x.skeletonAvatar*.5})]}):jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("flex items-center",x.gap,g),children:[jsxRuntime.jsx(J,{width:x.skeletonAvatar,height:x.skeletonAvatar,className:"flex-shrink-0 rounded-full"}),jsxRuntime.jsxs("div",{className:"flex flex-col gap-1",children:[jsxRuntime.jsx(J,{width:x.skeletonText,height:16}),u&&jsxRuntime.jsx(J,{width:x.skeletonSecondary,height:12})]})]}):n==="inline"?jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("flex items-center",x.gap,g),children:[jsxRuntime.jsxs(w,{className:tailwindMerge.twMerge("flex items-center",x.gap),children:[jsxRuntime.jsx(xo,{firstName:e,lastName:t,src:o,size:x.avatarSize,variant:"user",shape:h,className:"flex-shrink-0",piiEntity:f}),jsxRuntime.jsx("span",{className:tailwindMerge.twMerge("leading-normal truncate hover:text-text-primary",S,x.textSize,i&&"hover:underline hover:decoration-1 hover:underline-offset-4"),"data-pii-type":f?"full-name":void 0,"data-pii-entity":f,children:y})]}),d]}):jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("flex items-center justify-start",x.gap,g),children:[jsxRuntime.jsx(xo,{firstName:e,lastName:t,src:o,size:x.avatarSize,variant:"user",shape:h,className:"flex-shrink-0",piiEntity:f}),jsxRuntime.jsxs("div",{className:"flex flex-col items-start min-w-0",children:[jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[jsxRuntime.jsx(w,{className:tailwindMerge.twMerge("leading-normal truncate hover:text-text-primary",S,x.textSize,i&&"hover:underline hover:decoration-1 hover:underline-offset-4"),children:jsxRuntime.jsx("span",{"data-pii-type":f?"full-name":void 0,"data-pii-entity":f,children:y})}),d]}),u&&r&&jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("text-text-secondary leading-normal truncate",x.secondaryTextSize),"data-pii-type":f?"email":void 0,"data-pii-entity":f,children:r})]})]})}var tu=Oe.createContext(null);function pg(e){let t=Oe.useContext(tu),r=Oe.useRef(null),o=e??r,[n,a]=Oe.useState(()=>t||{current:"xl",isSm:true,isMd:true,isLg:true,isXl:true,is2Xl:false,isMobile:false,isDesktop:true});return Oe.useEffect(()=>{if(t){a(t);return}let i=o.current;if(!i||typeof ResizeObserver>"u")return;let s=()=>{let l=i.offsetWidth,u=l>=640,d=l>=768,m=l>=1024,p=l>=1280,g=l>=1536,f="base";g?f="2xl":p?f="xl":m?f="lg":d?f="md":u&&(f="sm"),a({current:f,isSm:u,isMd:d,isLg:m,isXl:p,is2Xl:g,isMobile:!d,isDesktop:d});};s();let c=new ResizeObserver(s);return c.observe(i),()=>c.disconnect()},[t,o]),n}function fg({children:e,className:t}){let r=Oe.useRef(null),[o,n]=Oe.useState({current:"base",isSm:false,isMd:false,isLg:false,isXl:false,is2Xl:false,isMobile:true,isDesktop:false});return Oe.useEffect(()=>{let a=r.current;if(!a||typeof ResizeObserver>"u")return;let i=()=>{let c=a.offsetWidth,l=c>=640,u=c>=768,d=c>=1024,m=c>=1280,p=c>=1536,g="base";p?g="2xl":m?g="xl":d?g="lg":u?g="md":l&&(g="sm"),n({current:g,isSm:l,isMd:u,isLg:d,isXl:m,is2Xl:p,isMobile:!u,isDesktop:u});};i();let s=new ResizeObserver(i);return s.observe(a),()=>s.disconnect()},[]),jsxRuntime.jsx(tu.Provider,{value:o,children:jsxRuntime.jsx("div",{ref:r,className:t,style:{width:"100%"},children:e})})}var Os={duration:.5,ease:"easeInOut"},Rr=Oe.createContext(null),Tn=()=>{let e=Oe.useContext(Rr);if(!e)throw new Error("useChartContext must be used within a ChartContextProvider");return e};function Hs(e,t){if(t<=0||e.length<2)return e;let r=[e[0]];for(let o=1;o<e.length;o++)e[o].xValue.getTime()-e[o-1].xValue.getTime()>t&&r.push(null),r.push(e[o]);return r}var Jo=({data:e,color:t="var(--color-viz-default)",baseline:r,fillOpacity:o=.1,showLine:n=true,maxGapMs:a,animate:i=true})=>{let s=Oe.useId(),c=Oe.useId(),{xScale:l,yScale:u,animationSettings:d}=Tn(),m=l.range(),p=u.range(),g=(v,S)=>typeof r=="function"?r(v,S):r??0,f=v=>v.chartYValue??v.yValue,h=a!=null?Hs(e,a):e,b=i?void 0:"non-scaling-stroke",x={transformOrigin:`0 ${p[0]}px`,transformBox:"fill-box",isolation:"isolate"},y=jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[r===void 0?jsxRuntime.jsx(shape.AreaClosed,{data:h,x:v=>v?l(v.xValue):0,y:v=>v?u(f(v)):0,yScale:u,defined:v=>v!=null,fill:`url(#${s})`,curve:curve.curveLinear}):jsxRuntime.jsx(shape.Area,{data:h,x:v=>v?l(v.xValue):0,y0:(v,S)=>v?u(g(v,S)):0,y1:v=>v?u(f(v)):0,defined:v=>v!=null,fill:t,fillOpacity:o,curve:curve.curveLinear}),n?jsxRuntime.jsx(shape.LinePath,{data:h,x:v=>v?l(v.xValue):0,y:v=>v?u(f(v)):0,defined:v=>v!=null,stroke:t,strokeWidth:3,vectorEffect:b,curve:curve.curveLinear}):null]});return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsxs("defs",{children:[jsxRuntime.jsxs("linearGradient",{id:s,x1:"0%",y1:"0%",x2:"0%",y2:"100%",children:[jsxRuntime.jsx("stop",{offset:"50%",stopColor:t,stopOpacity:o}),jsxRuntime.jsx("stop",{offset:"100%",stopColor:t,stopOpacity:0})]}),i&&jsxRuntime.jsx("clipPath",{id:c,children:jsxRuntime.jsx("rect",{x:m[0],y:p[1],width:m[1]-m[0],height:p[0]-p[1]})})]}),i?jsxRuntime.jsx("g",{clipPath:`url(#${c})`,children:jsxRuntime.jsx(framerMotion.motion.g,{initial:{scaleY:0},animate:{scaleY:1},transition:{duration:d.duration,ease:d.ease},style:x,children:y})}):jsxRuntime.jsx("g",{style:x,children:y})]})};var Gs=({data:e,color:t="var(--color-viz-default)",opacity:r=1,categoryColors:o={}})=>{let{xScale:n,yScale:a,animationSettings:i}=Tn(),s=Oe.useId(),c=n.range(),l=a.range(),u=[...e].sort((p,g)=>p.xValue.getTime()-g.xValue.getTime());if(u.length===0)return null;let d=u.length>1?u[1].xValue.getTime()-u[0].xValue.getTime():15*6e4,m=Math.abs(n(new Date(u[0].xValue.getTime()+d))-n(u[0].xValue));return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("defs",{children:jsxRuntime.jsx("clipPath",{id:s,children:jsxRuntime.jsx("rect",{x:c[0],y:l[1],width:c[1]-c[0],height:l[0]-l[1]})})}),jsxRuntime.jsx("g",{clipPath:`url(#${s})`,children:jsxRuntime.jsx(framerMotion.motion.g,{initial:{scaleY:0},animate:{scaleY:1},transition:{duration:i.duration,ease:i.ease},style:{transformOrigin:`0 ${a(0)}px`,isolation:"isolate"},children:u.map((p,g)=>{let f=n(p.xValue),h=p.chartYValue??p.yValue,b=p.baselineValue??0,x=a(h),y=a(b),v=Math.min(x,y),S=Math.abs(x-y),w=u[g+1],N=w?Math.abs(n(w.xValue)-f):m,R=p.category&&o[p.category]?o[p.category]:t;return jsxRuntime.jsx(shape.Bar,{x:f-N/2,y:v,width:N,height:S,fill:R,opacity:r,rx:1},p.xValue.getTime())})})})]})};function zN(e){return e>=1e9?"GW":e>=1e6?"MW":e>=1e3?"kW":"W"}function ON(e){return e>=1e3?"kA":e<1?"mA":"A"}function HN(e){return e>=1e3?"kV":e<1?"mV":"V"}function WN(e){return e>=1e6?"M\u03A9":e>=1e3?"k\u03A9":e<1?"m\u03A9":"\u03A9"}function wa(e,t){if(typeof e!="object"||e===null)return e;switch(e.type){case "energy":{if(e.unit||e.autoScale===false)return e;let r=e.sourceUnit?jc[e.sourceUnit]:1;return {...e,unit:Xc(t*r)}}case "power":return e.unit||e.autoScale===false?e:{...e,unit:zN(t)};case "current":return e.unit||e.autoScale===false?e:{...e,unit:ON(t)};case "voltage":return e.unit||e.autoScale===false?e:{...e,unit:HN(t)};case "resistance":return e.unit||e.autoScale===false?e:{...e,unit:WN(t)};default:return e}}var GN=e=>e.baselineValue??0,Ie={top:8,right:0,bottom:50,left:60};function Hr(e={type:"number"}){let t=i=>{if(i==null)return "-";let s=jr({value:i,formatter:e});if(s===null)return "-";if(typeof s=="string")return s;if(typeof s=="number")return s.toString();if(typeof s=="object"&&s!==null&&"props"in s){let c=u=>{if(u==null)return "";if(typeof u=="string")return u;if(typeof u=="number")return u.toString();if(typeof u=="object"&&"props"in u){let d=u.props;if(d?.children)return Array.isArray(d.children)?d.children.map(c).join(""):c(d.children)}return ""};return c(s)||i.toString()}return i.toString()},r=i=>{if(i==null)return "-";if(typeof e=="string"){let s=jr({value:i,formatter:e});return s===null?"-":String(s)}if(typeof e=="object"&&e.type)switch(e.type){case "energy":case "power":case "voltage":case "current":case "resistance":case "temperature":case "distance":return t(i);case "currency":return t(i);default:return t(i)}return t(i)},o,n,a;return typeof e=="object"&&e.type&&e.type==="number"&&("min"in e&&(o=e.min),"max"in e&&(n=e.max)),{format:t,tickFormat:r,min:o,max:n,tickInterval:a}}var ou=(e,t)=>{let r=d3Array.extent(e,o=>o.xValue);return scale.scaleTime({range:[Ie.left,t-Ie.right],domain:r,nice:true})},pi=(e,t,r,o)=>{let n=Hr(r);if(o)return scale.scaleLinear({range:[t-Ie.bottom,Ie.top],domain:o,nice:true});let a=d3Array.min(e,l=>Math.min(l.yValue,l.chartYValue??l.yValue,l.baselineValue??l.yValue))||0,i=d3Array.max(e,l=>Math.max(l.yValue,l.chartYValue??l.yValue,l.baselineValue??l.yValue))||0,s=n.min!==void 0?n.min:a>=0?0:a*1.1,c=n.max!==void 0?n.max:i<=0?0:i*1.1;return scale.scaleLinear({range:[t-Ie.bottom,Ie.top],domain:[s,c],nice:true})};function UN(e,t=12,r="system-ui"){if(typeof window>"u"||typeof document>"u")return e.length*(t*.6);let o=document.createElement("canvas"),n=null;try{n=o.getContext("2d");}catch{return e.length*(t*.6)}return n?(n.font=`${t}px ${r}`,n.measureText(e).width):e.length*(t*.6)}function Na(e,t=12,r="system-ui"){return e.length===0?0:Math.max(...e.map(o=>UN(o,t,r)))}function mi(e){return e instanceof Date&&!Number.isNaN(e.getTime())}function KN(e,t,r=12,o=false){if(!mi(t[0])||!mi(t[1]))return console.warn("ChartAxis: Invalid date in domain, skipping tick calculation"),[];let n=t[0].getTime(),a=t[1].getTime(),i=a-n;if(i===0||i<1e3)return [t[0]];let s=sd({start:t[0],end:t[1]},{compact:o}),l=[t[0],new Date((t[0].getTime()+t[1].getTime())/2),t[1]].map(x=>s(x)),u=Na(l,r),m=u+u,p=Math.floor(e/m),g=Math.max(2,Math.min(8,p));if(g<=2)return [t[0],t[1]];let f=[t[0]],h=i/36e5,b;h<=1?b=6e4:h<=6?b=5*6e4:h<=48?b=60*6e4:h<=168?b=360*6e4:b=1440*6e4;for(let x=1;x<g-1;x++){let y=x/(g-1),v=n+i*y,S=Math.round(v/b)*b,w=f[f.length-1].getTime(),N=S>w?S:w+b;if(N>=a)break;f.push(new Date(N));}return f.push(t[1]),f}var YN=({top:e,scale:t,width:r})=>{let o=t.domain(),n=[o[0],o[o.length-1]],a=mi(n[0])&&mi(n[1]),i=r<400,s=a?n[0].getTime():0,c=a?n[1].getTime():0,l=Oe.useMemo(()=>a?sd({start:n[0],end:n[1]},{compact:i}):()=>"",[s,c,i,a]),u=Oe.useMemo(()=>KN(r,n,12,i),[r,s,c,i]);return u.length===0?null:jsxRuntime.jsx(axis.Axis,{orientation:"bottom",top:e,scale:t,tickValues:u,tickFormat:d=>{let m=d;return mi(m)?l(m):""},stroke:"var(--color-border-muted)",tickStroke:"var(--color-border-muted)",tickLabelProps:(d,m,p)=>({fill:"var(--color-text-secondary)",fontSize:12,textAnchor:m===0?"start":m===p.length-1?"end":"middle"}),rangePadding:0})};function ka(e,t=12){let r=t*2.5,o=Math.floor(e/r);return Math.max(2,Math.min(6,o))}var nu=12,JN=({left:e,scale:t,yFormatter:r,height:o})=>{let n=Hr(r),a=Oe.useMemo(()=>!o||o<=0?5:ka(o),[o]);return jsxRuntime.jsx(axis.Axis,{orientation:"left",left:e,scale:t,numTicks:a,tickFormat:i=>(n.tickFormat||n.format)(i),stroke:"var(--color-border-muted)",tickStroke:"var(--color-border-muted)",tickLabelProps:i=>{let s={fill:"var(--color-text-secondary)",fontSize:nu,textAnchor:"end"},c=t(i),[l,u]=t.range(),d=Math.min(l,u),m=Math.max(l,u);return c-d<nu/2?{...s,verticalAnchor:"start"}:m-c<nu/2?{...s,verticalAnchor:"end"}:{...s,dy:"0.33em"}}})},XN=({top:e,scale:t})=>jsxRuntime.jsx(axis.Axis,{orientation:"bottom",top:e,scale:t,stroke:"var(--color-border-muted)",tickStroke:"var(--color-border-muted)",tickLabelProps:()=>({fill:"var(--color-text-secondary)",fontSize:12,textAnchor:"middle",dy:"0.25em"})}),jN=({left:e,scale:t})=>jsxRuntime.jsx(axis.Axis,{orientation:"left",left:e,scale:t,stroke:"var(--color-border-muted)",tickStroke:"var(--color-border-muted)",tickLabelProps:()=>({fill:"var(--color-text-secondary)",fontSize:12,textAnchor:"end",dx:"-0.25em",dy:"0.33em"})}),qN=({top:e,scale:t,yFormatter:r,width:o})=>{let n=Hr(r),a=Oe.useMemo(()=>{if(!o||o<=0)return 5;let s=Math.floor(o/60);return Math.max(2,Math.min(8,s))},[o]);return jsxRuntime.jsx(axis.Axis,{orientation:"bottom",top:e,scale:t,numTicks:a,tickFormat:i=>(n.tickFormat||n.format)(i),stroke:"var(--color-border-muted)",tickStroke:"var(--color-border-muted)",tickLabelProps:()=>({fill:"var(--color-text-secondary)",fontSize:12,textAnchor:"middle",dy:"0.25em"})})},Mr={Bottom:YN,Left:JN,CategoryBottom:XN,CategoryLeft:jN,NumericBottom:qN};var Xo=({data:e,formatter:t,label:r,categoryLabels:o})=>{if(!e)return null;let n=Oe__namespace.default.useContext(Rr),a=o??n?.categoryLabels,i=n?.xScale,s=n?.width,c=n?.height,l=Hr(t),u=x=>{if(x.baselineValue===void 0)return l.format(x.value);let y=Math.min(x.baselineValue,x.value),v=Math.max(x.baselineValue,x.value);return `${l.format(y)} \u2013 ${l.format(v)}`},d=Oe__namespace.default.useRef(null),[m,p]=Oe__namespace.default.useState({x:0,y:0,translate:"translate(-50%, -100%)"});Oe__namespace.default.useEffect(()=>{if(!d.current)return;let y=d.current.getBoundingClientRect(),v=s??window.innerWidth,S=c??window.innerHeight,w=e.x,N=e.y,R=16,k=e.x+y.width+R<=v,T=e.x-y.width-R>=0,A;e.position==="left"?A=T||!k:A=!k&&T;let M=A?"translate(calc(-100% - 16px), -50%)":"translate(16px, -50%)";if(!k&&!T){let E=v-e.x,P=e.x;E<=P?(w=v,M="translate(-100%, -50%)"):(w=0,M="translate(0, -50%)");}N-y.height/2<0?N=y.height/2:N+y.height/2>S&&(N=S-y.height/2),p({x:w,y:N,translate:M});},[e.x,e.y,e.position,s,c]);let g=i?.domain(),h=g&&g.length===2&&g.every(x=>x instanceof Date)?Wm({start:g[0],end:g[1]}):null,b=r||(h&&e.xValue instanceof Date?h(e.xValue):String(e.xValue));return jsxRuntime.jsx(framerMotion.AnimatePresence,{children:jsxRuntime.jsxs(framerMotion.motion.div,{ref:d,role:"tooltip","aria-live":"polite",initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},"data-testid":"tooltip",className:"pointer-events-none absolute z-50 rounded-lg bg-background-surface p-4 text-sm shadow-xl ring-1 ring-border-default whitespace-nowrap",style:{left:m.x,top:m.y,transform:m.translate},children:[jsxRuntime.jsx("div",{className:"mb-1 font-medium text-text-primary",children:b}),e.isEvent?jsxRuntime.jsxs("div",{className:"space-y-2",children:[e.series.length>1&&jsxRuntime.jsx("ul",{className:"list-none p-0 border-b border-border-default pb-2",children:e.series.slice(0,-1).map(x=>jsxRuntime.jsxs("li",{className:"py-0.5",children:[jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[jsxRuntime.jsxs("span",{className:"font-medium text-text-primary",children:[x.label,":"]}),jsxRuntime.jsx("span",{className:"text-text-secondary",children:u(x)})]}),x.category&&jsxRuntime.jsxs("div",{className:"mt-0.5 flex items-center gap-2",children:[jsxRuntime.jsx("div",{className:"h-3 w-3",style:{backgroundColor:x.categoryColor||x.color,borderRadius:"1px"}}),jsxRuntime.jsx("span",{className:"text-sm text-text-secondary",children:a?.[x.category]||x.category})]}),x.extraTooltipRows&&x.extraTooltipRows.length>0&&jsxRuntime.jsx("div",{className:"mt-0.5 space-y-0.5",children:x.extraTooltipRows.map(y=>jsxRuntime.jsxs("div",{className:"flex items-center gap-2 text-sm text-text-secondary",children:[jsxRuntime.jsxs("span",{children:[y.label,":"]}),jsxRuntime.jsx("span",{className:"font-medium text-text-primary",children:y.value})]},y.label))})]},x.label))}),(()=>{let x=e.series[e.series.length-1],y=e.eventItems?.length?e.eventItems:[{label:x.label,color:x.color,metadata:e.eventMetadata}];return jsxRuntime.jsx("div",{className:"space-y-2",children:y.map((v,S)=>jsxRuntime.jsxs("div",{children:[jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[jsxRuntime.jsx("div",{className:"h-2 w-2 rounded-full",style:{backgroundColor:v.color}}),jsxRuntime.jsx("span",{className:"font-medium text-text-primary",children:v.label})]}),v.metadata&&Object.keys(v.metadata).length>0&&jsxRuntime.jsx("div",{className:"ml-4 mt-1 space-y-0.5 text-xs text-text-secondary",children:Object.entries(v.metadata).map(([w,N])=>jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[jsxRuntime.jsxs("span",{className:"capitalize",children:[w,":"]}),jsxRuntime.jsx("span",{className:"font-medium",children:N})]},w))})]},`${v.label}-${S}`))})})()]}):jsxRuntime.jsx("ul",{className:"list-none p-0",children:e.series.map(x=>jsxRuntime.jsxs("li",{className:"py-0.5",children:[jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[jsxRuntime.jsxs("span",{className:"font-medium text-text-primary",children:[x.label,":"]}),jsxRuntime.jsx("span",{className:"text-text-secondary",children:u(x)})]}),x.category&&jsxRuntime.jsxs("div",{className:"mt-0.5 flex items-center gap-2",children:[jsxRuntime.jsx("div",{className:"h-3 w-3",style:{backgroundColor:x.categoryColor||x.color,borderRadius:"1px"}}),jsxRuntime.jsx("span",{className:"text-sm text-text-secondary",children:a?.[x.category]||x.category})]}),x.extraTooltipRows&&x.extraTooltipRows.length>0&&jsxRuntime.jsx("div",{className:"mt-0.5 space-y-0.5",children:x.extraTooltipRows.map(y=>jsxRuntime.jsxs("div",{className:"flex items-center gap-2 text-sm text-text-secondary",children:[jsxRuntime.jsxs("span",{children:[y.label,":"]}),jsxRuntime.jsx("span",{className:"font-medium text-text-primary",children:y.value})]},y.label))})]},x.label))})]})})};var nk={top:20,right:20,bottom:50,left:60},Ng=({data:e,width:t,height:r,margin:o=nk,color:n,yFormatter:a={type:"number"},showGrid:i=true,showAxes:s=true,animate:c=true,barRadius:l=4,barPadding:u=.3,onBarClick:d,onBarHover:m,activeIndex:p,className:g,style:f,"aria-label":h="Category bar chart",orientation:b="vertical",showTooltip:x=true})=>{let[y,v]=Oe.useState(null),[S,w]=Oe.useState(null),[N,R]=Oe.useState(null),[k,T]=Oe.useState(t??600),[A,M]=Oe.useState(r??300),E=Oe.useRef(null),P=p??y,O=Oe.useId(),G=n||"var(--color-viz-default)";Oe.useEffect(()=>{if(t!==void 0&&r!==void 0){T(t),M(r);return}if(!E.current)return;let L=new ResizeObserver(D=>{for(let U of D)t===void 0&&T(U.contentRect.width),r===void 0&&M(U.contentRect.height);});return L.observe(E.current),t===void 0&&T(E.current.offsetWidth),r===void 0&&M(E.current.offsetHeight||300),()=>{L.disconnect();}},[t,r]);let{xScale:K,yScale:W,innerWidth:q,innerHeight:j}=Oe.useMemo(()=>{let L=k-o.left-o.right,D=A-o.top-o.bottom;if(b==="horizontal"){let I=d3Array.max(e,C=>C.value)||0;return {xScale:scale.scaleLinear({range:[0,L],domain:[0,I*1.1],nice:true}),yScale:scale.scaleBand({range:[0,D],domain:e.map(C=>C.label),padding:u}),innerWidth:L,innerHeight:D}}let U=d3Array.max(e,I=>I.value)||0;return {xScale:scale.scaleBand({range:[0,L],domain:e.map(I=>I.label),padding:u}),yScale:scale.scaleLinear({range:[D,0],domain:[0,U*1.1],nice:true}),innerWidth:L,innerHeight:D}},[e,k,A,o,u,b]);if(e.length===0)return jsxRuntime.jsx("div",{ref:E,className:tailwindMerge.twMerge("flex h-full min-h-[200px] w-full items-center justify-center rounded-lg border border-dashed border-border-default bg-background-surface text-sm font-medium text-text-secondary",g),style:r!==void 0?{height:r,...f}:f,children:"No data available"});let Q=(L,D)=>{if(v(L),m?.(D,L),L!==null&&D){let U,I;if(b==="horizontal"){let F=K(D.value),H=W(D.label)||0,Y=W.bandwidth();U=o.left+F,I=o.top+H+Y/2;}else {let F=K,H=W,Y=F(D.label)??0,te=F.bandwidth(),de=H(D.value);U=o.left+Y+te/2,I=o.top+de;}let C=U>k/2;R(D.label),w({xValue:new Date,series:[{label:"Value",value:D.value,color:D.color||G}],x:U,y:I,position:C?"left":"right"});}else w(null),R(null);};return jsxRuntime.jsxs("div",{ref:E,className:tailwindMerge.twMerge("relative h-full w-full overflow-hidden rounded-lg bg-background-surface",g),style:r!==void 0?{height:r,...f}:f,"aria-label":h,role:"img",children:[jsxRuntime.jsxs("svg",{width:k,height:A,children:[jsxRuntime.jsx("defs",{children:jsxRuntime.jsx(gradient.LinearGradient,{id:`${O}-bar`,from:G,to:G,toOpacity:.85})}),jsxRuntime.jsxs(group.Group,{left:o.left,top:o.top,children:[i&&jsxRuntime.jsx("g",{className:"grid-lines",children:(b==="horizontal"?K.ticks(5):W.ticks(5)).map(L=>{let D=b==="horizontal"?0:W(L),U=b==="horizontal"?K(L):0;return jsxRuntime.jsx("line",{x1:b==="horizontal"?U:0,y1:b==="horizontal"?0:D,x2:b==="horizontal"?U:q,y2:b==="horizontal"?j:D,stroke:"var(--color-border-default)",strokeOpacity:.5,strokeDasharray:"2,3"},L)})}),e.map((L,D)=>{let U=P===D||P==null,I=L.color||`url(#${O}-bar)`;if(b==="horizontal"){let _=K(L.value),ae=W.bandwidth(),fe=W(L.label)||0;return jsxRuntime.jsx(framerMotion.motion.rect,{x:0,y:fe,width:_,height:ae,fill:I,rx:l,ry:l,initial:c?{width:0,opacity:.5}:void 0,animate:{width:_,opacity:U?1:.5},transition:{duration:.5,delay:D*.05,ease:"easeOut",opacity:{duration:.15,delay:0}},style:{cursor:d||m?"pointer":"default"},onMouseEnter:()=>Q(D,L),onMouseLeave:()=>Q(null,null),onClick:()=>d?.(L,D)},L.label)}let C=K,F=W,H=C.bandwidth(),Y=C(L.label)??0,te=F(L.value),de=Math.max(0,j-te);return c?jsxRuntime.jsx(framerMotion.motion.rect,{x:Y,width:H,fill:I,rx:l,ry:l,initial:{y:j,height:0,opacity:.5},animate:{y:te,height:de,opacity:U?1:.5},transition:{duration:.5,delay:D*.05,ease:"easeOut",opacity:{duration:.15,delay:0}},style:{cursor:d||m?"pointer":"default"},onMouseEnter:()=>Q(D,L),onMouseLeave:()=>Q(null,null),onClick:()=>d?.(L,D)},L.label):jsxRuntime.jsx("rect",{x:Y,y:te,width:H,height:de,fill:I,rx:l,ry:l,opacity:U?1:.5,style:{cursor:d||m?"pointer":"default",transition:"opacity 150ms ease-out"},onMouseEnter:()=>Q(D,L),onMouseLeave:()=>Q(null,null),onClick:()=>d?.(L,D)},L.label)}),s&&b==="vertical"&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(Mr.CategoryBottom,{top:j,scale:K}),jsxRuntime.jsx(Mr.Left,{left:0,scale:W,yFormatter:a,height:j})]}),s&&b==="horizontal"&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(Mr.NumericBottom,{top:j,scale:K,yFormatter:a,width:q}),jsxRuntime.jsx(Mr.CategoryLeft,{left:0,scale:W})]})]})]}),x&&jsxRuntime.jsx(Xo,{data:S,formatter:a,label:N??void 0})]})};var kg=({item:e,onToggle:t})=>{let r=jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("div",{className:"h-3 w-3 shrink-0",style:{backgroundColor:e.fill,borderRadius:"1px",opacity:e.isHidden?.35:1}}),jsxRuntime.jsx("span",{className:`text-sm whitespace-nowrap ${e.isHidden?"text-text-disabled line-through":"text-text-secondary"}`,children:e.category})]});return t?jsxRuntime.jsx("button",{type:"button",className:"flex items-center gap-2 shrink-0 rounded-sm focus:outline-none focus:ring-2 focus:ring-border-focus disabled:cursor-not-allowed disabled:opacity-60","aria-pressed":!e.isHidden,"aria-label":`${e.isHidden?"Show":"Hide"} ${e.category}`,disabled:e.isDisabled,onClick:()=>t(e.category),children:r}):jsxRuntime.jsx("div",{className:"flex items-center gap-2 shrink-0",children:r})},sk=({items:e,onToggle:t})=>e.length===0?null:jsxRuntime.jsx("div",{className:"flex items-center gap-3 flex-wrap",children:e.map(r=>jsxRuntime.jsx(kg,{item:r,onToggle:t},r.category))}),Pa=({items:e,onExport:t,marginLeft:r=0,marginRight:o=0,isZoomed:n=false,onResetZoom:a,onLegendItemToggle:i})=>{let[s,c]=Oe__namespace.default.useState(false),[l,u]=Oe__namespace.default.useState(null),[d,m]=Oe__namespace.default.useState(false),[p,g]=Oe__namespace.default.useState(false),f=Oe__namespace.default.useCallback(async b=>{c(true),u(b),g(false);try{await t(b);}catch(x){console.error("Export failed:",x);}finally{c(false),u(null);}},[t]),h=Oe__namespace.default.useCallback(async b=>{await f(b);},[f]);return jsxRuntime.jsxs("div",{className:"mt-4 flex items-center justify-between gap-3 min-h-[32px]",style:{marginLeft:r,marginRight:o},children:[jsxRuntime.jsx("div",{className:"hidden sm:block flex-1 min-w-0",children:jsxRuntime.jsx(sk,{items:e,onToggle:i})}),jsxRuntime.jsx("div",{className:"sm:hidden flex items-center gap-3",children:e.length>0&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("button",{onClick:()=>m(true),className:"text-sm text-text-secondary hover:text-text-primary transition-colors underline decoration-dotted underline-offset-4",children:"Legend"}),jsxRuntime.jsx(ct,{isOpen:d,onClose:()=>m(false),title:"Legend",children:jsxRuntime.jsx("div",{className:"grid grid-cols-1 gap-3 p-4",children:e.map(b=>jsxRuntime.jsx(kg,{item:b,onToggle:i},b.category))})})]})}),jsxRuntime.jsxs("div",{className:"sm:hidden flex items-center gap-2 shrink-0",children:[n&&a&&jsxRuntime.jsx(Z,{variant:"secondary",size:"sm",onPress:a,children:jsxRuntime.jsx(B,{name:"ArrowsOut",size:16})}),jsxRuntime.jsx(Z,{variant:"secondary",size:"sm",onPress:()=>g(true),isDisabled:s,children:jsxRuntime.jsx(B,{name:"Export",size:16})}),jsxRuntime.jsx(ct,{isOpen:p,onClose:()=>g(false),title:"Export Chart",contentPadding:false,children:jsxRuntime.jsxs("div",{className:"flex flex-col",children:[jsxRuntime.jsxs("button",{onClick:()=>f("csv"),disabled:s,className:"flex items-center gap-3 px-6 py-4 text-left hover:bg-background-hover active:bg-background-muted transition-colors disabled:opacity-50 disabled:cursor-not-allowed",children:[jsxRuntime.jsx(B,{name:"List",size:20,className:"text-text-secondary"}),jsxRuntime.jsx("span",{className:"text-sm text-text-primary",children:l==="csv"?"Exporting...":"Export as CSV"})]}),jsxRuntime.jsxs("button",{onClick:()=>f("svg"),disabled:s,className:"flex items-center gap-3 px-6 py-4 text-left hover:bg-background-hover active:bg-background-muted transition-colors disabled:opacity-50 disabled:cursor-not-allowed",children:[jsxRuntime.jsx(B,{name:"Code",size:20,className:"text-text-secondary"}),jsxRuntime.jsx("span",{className:"text-sm text-text-primary",children:l==="svg"?"Exporting...":"Export as SVG"})]}),jsxRuntime.jsxs("button",{onClick:()=>f("png"),disabled:s,className:"flex items-center gap-3 px-6 py-4 text-left hover:bg-background-hover active:bg-background-muted transition-colors disabled:opacity-50 disabled:cursor-not-allowed",children:[jsxRuntime.jsx(B,{name:"DownloadSimple",size:20,className:"text-text-secondary"}),jsxRuntime.jsx("span",{className:"text-sm text-text-primary",children:l==="png"?"Exporting...":"Export as PNG"})]})]})})]}),jsxRuntime.jsxs("div",{className:"hidden sm:flex items-center gap-2 shrink-0",children:[n&&a&&jsxRuntime.jsxs(Z,{variant:"secondary",size:"sm",onPress:a,children:[jsxRuntime.jsx(B,{name:"ArrowsOut",size:16}),jsxRuntime.jsx("span",{className:"hidden sm:inline",children:"Reset Zoom"})]}),jsxRuntime.jsxs(reactAriaComponents.DialogTrigger,{children:[jsxRuntime.jsxs(Z,{variant:"secondary",size:"sm",isDisabled:s,children:[jsxRuntime.jsx(B,{name:"Export",size:16}),s?"Exporting...":"Export"]}),jsxRuntime.jsx(lt,{placement:"top end",className:"min-w-48 p-1 bg-background-surface rounded-lg shadow-xl ring-1 ring-border-default",children:jsxRuntime.jsxs(reactAriaComponents.Menu,{onAction:h,className:"outline-none",children:[jsxRuntime.jsx(reactAriaComponents.MenuItem,{id:"csv",className:"flex items-center gap-2 px-3 py-2 text-sm text-text-primary rounded cursor-pointer hover:bg-background-hover focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-border-focus focus-visible:ring-offset-1 focus-visible:ring-offset-background-surface data-[focused]:bg-background-hover data-[focused]:ring-2 data-[focused]:ring-border-focus data-[focused]:ring-offset-1 data-[focused]:ring-offset-background-surface",isDisabled:s,children:jsxRuntime.jsxs("span",{className:"flex items-center gap-2",children:[jsxRuntime.jsx(B,{name:"List",size:14}),l==="csv"?"Exporting...":"Export as CSV"]})}),jsxRuntime.jsx(reactAriaComponents.MenuItem,{id:"svg",className:"flex items-center gap-2 px-3 py-2 text-sm text-text-primary rounded cursor-pointer hover:bg-background-hover focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-border-focus focus-visible:ring-offset-1 focus-visible:ring-offset-background-surface data-[focused]:bg-background-hover data-[focused]:ring-2 data-[focused]:ring-border-focus data-[focused]:ring-offset-1 data-[focused]:ring-offset-background-surface",isDisabled:s,children:jsxRuntime.jsxs("span",{className:"flex items-center gap-2",children:[jsxRuntime.jsx(B,{name:"Code",size:14}),l==="svg"?"Exporting...":"Export as SVG"]})}),jsxRuntime.jsx(reactAriaComponents.MenuItem,{id:"png",className:"flex items-center gap-2 px-3 py-2 text-sm text-text-primary rounded cursor-pointer hover:bg-background-hover focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-border-focus focus-visible:ring-offset-1 focus-visible:ring-offset-background-surface data-[focused]:bg-background-hover data-[focused]:ring-2 data-[focused]:ring-border-focus data-[focused]:ring-offset-1 data-[focused]:ring-offset-background-surface",isDisabled:s,children:jsxRuntime.jsxs("span",{className:"flex items-center gap-2",children:[jsxRuntime.jsx(B,{name:"DownloadSimple",size:14}),l==="png"?"Exporting...":"Export as PNG"]})})]})})]})]})]})};var Ys=Hp(lu());var Pg=["stroke","fill","color","stop-color","flood-color","lighting-color"],Rg=/var\s*\(/;function Mg(e,t){let r=[e,...Array.from(e.querySelectorAll("*"))],o=[t,...Array.from(t.querySelectorAll("*"))],n=Math.min(r.length,o.length);for(let a=0;a<n;a++){let i=r[a],s=o[a];if(!(i instanceof Element)||!(s instanceof Element))continue;let c=window.getComputedStyle(i);for(let l of Pg){let u=s.getAttribute(l);if(u&&Rg.test(u)){let d=c.getPropertyValue(l);d&&s.setAttribute(l,d.trim());}}if(s instanceof HTMLElement||s instanceof SVGElement)for(let l of Pg){let u=l,d=s.style.getPropertyValue(u);if(d&&Rg.test(d)){let m=c.getPropertyValue(u);m&&s.style.setProperty(u,m.trim());}}}}function cu(e,t,r=true){let o=e||"chart";if(r){let n=new Date().toISOString().replace(/[:.]/g,"-").slice(0,-5);return `${o}-${n}.${t}`}return `${o}.${t}`}async function du(e,t,r={},o){let n=Array.isArray(t[0])?t:[t];try{switch(e){case "csv":await ck(n,r);break;case "svg":await dk(o,r);break;case "png":await uk(o,r);break;default:throw new Error(`Unsupported export type: ${e}`)}}catch(a){throw console.error("Export failed:",a),new Error(`Failed to export chart as ${e}: ${a instanceof Error?a.message:"Unknown error"}`)}}async function ck(e,t){try{let r=t.yFormat?id(t.yFormat):null,o=t.yFormat,n=m=>{if(m==null||m==="")return "";if(!o)return typeof m=="number"?m:String(m);let p=Hm(m,o);return p===null?typeof m=="number"?m:String(m):p},a=new Map;e.forEach(m=>{m.forEach(p=>{let g=p.xValue.getTime();a.has(g)||a.set(g,p.xValue);});});let i=Array.from(a.values()).sort((m,p)=>m.getTime()-p.getTime()),s=e.map((m,p)=>{let g=t.seriesLabels?.[p]||`Series ${p+1}`;return r&&!g.includes(`(${r})`)?`${g} (${r})`:g}),c=i.map(m=>{let p={[t.xLabel||"Date"]:m.toLocaleString("en-US",{year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"})};return e.forEach((g,f)=>{let h=s[f],b=g.find(x=>x.xValue.getTime()===m.getTime());p[h]=b?n(b.yValue):"",b?.category&&(p[`${h} Category`]=b.category);}),p}),l=lk__default.default.unparse(c,{header:!0,skipEmptyLines:!0}),u=new Blob([l],{type:"text/csv;charset=utf-8;"}),d=cu(t.filename||"chart-data","csv",t.timestamp!==!1);(0,Ys.saveAs)(u,d);}catch(r){throw new Error(`CSV export failed: ${r instanceof Error?r.message:"Unknown error"}`)}}async function dk(e,t){if(!e.current)throw new Error("SVG element not found");try{let r=e.current,o=r.cloneNode(!0);if(Mg(r,o),!o.querySelector("rect[data-background]")){let l=document.createElementNS("http://www.w3.org/2000/svg","rect");l.setAttribute("width",o.getAttribute("width")||"100%"),l.setAttribute("height",o.getAttribute("height")||"100%"),l.setAttribute("fill","white"),l.setAttribute("data-background","true"),o.insertBefore(l,o.firstChild);}let i=new XMLSerializer().serializeToString(o);i.includes("<?xml")||(i=`<?xml version="1.0" encoding="UTF-8"?>
|
|
28
|
+
`+i),i.includes("xmlns=")||(i=i.replace("<svg",'<svg xmlns="http://www.w3.org/2000/svg"'));let s=new Blob([i],{type:"image/svg+xml;charset=utf-8"}),c=cu(t.filename||"chart","svg",t.timestamp!==!1);(0,Ys.saveAs)(s,c);}catch(r){throw new Error(`SVG export failed: ${r instanceof Error?r.message:"Unknown error"}`)}}async function uk(e,t,r=2){if(!e.current)throw new Error("SVG element not found");let o="";try{let n=e.current,a=n.getBoundingClientRect(),i=n.cloneNode(!0);Mg(n,i),i.setAttribute("width",String(a.width)),i.setAttribute("height",String(a.height)),i.removeAttribute("transform");let s=i.getElementsByTagName("text");Array.from(s).forEach(m=>{m.style.fontFamily||(m.style.fontFamily="system-ui, -apple-system, sans-serif"),m.style.fontSize||(m.style.fontSize="12px");});let c=document.createElementNS("http://www.w3.org/2000/svg","rect");c.setAttribute("width",String(a.width)),c.setAttribute("height",String(a.height)),c.setAttribute("fill","white"),i.insertBefore(c,i.firstChild);let u=new XMLSerializer().serializeToString(i);u.includes("xmlns=")||(u=u.replace("<svg",'<svg xmlns="http://www.w3.org/2000/svg"'));let d=new Blob([u],{type:"image/svg+xml;charset=utf-8"});return o=URL.createObjectURL(d),new Promise((m,p)=>{let g=new Image,f=setTimeout(()=>{o&&URL.revokeObjectURL(o),p(new Error("Image loading timeout"));},1e4);g.onload=()=>{clearTimeout(f);try{let h=document.createElement("canvas");h.width=a.width*r,h.height=a.height*r;let b=h.getContext("2d");if(!b)throw new Error("Canvas context not available");b.imageSmoothingEnabled=!0,b.imageSmoothingQuality="high",b.scale(r,r),b.fillStyle="white",b.fillRect(0,0,a.width,a.height),b.drawImage(g,0,0,a.width,a.height),h.toBlob(x=>{if(x){let y=cu(t.filename||"chart","png",t.timestamp!==!1);(0,Ys.saveAs)(x,y),m();}else p(new Error("Failed to create PNG blob"));o&&URL.revokeObjectURL(o);},"image/png",1);}catch(h){o&&URL.revokeObjectURL(o),p(h);}},g.onerror=()=>{clearTimeout(f),o&&URL.revokeObjectURL(o),p(new Error("Failed to load SVG as image"));},g.src=o;})}catch(n){throw o&&URL.revokeObjectURL(o),new Error(`PNG export failed: ${n instanceof Error?n.message:"Unknown error"}`)}}function pk(e){if(typeof window>"u")return false;switch(e){case "csv":return true;case "svg":return typeof XMLSerializer<"u";case "png":return typeof HTMLCanvasElement<"u"&&typeof HTMLCanvasElement.prototype.toBlob=="function";default:return false}}function mk(e){return {csv:"CSV Spreadsheet",svg:"SVG Vector Image",png:"PNG Image"}[e]||"Unknown Format"}function Js({datasets:e,metadata:t,svgRef:r}){return Oe.useCallback(async o=>{try{await du(o,e,t,r);}catch(n){throw console.error("Chart export failed:",n),n}},[e,t,r])}var uu=({data:e,seriesMetadata:t,width:r,height:o,onBrushChange:n,brushRegion:a,margin:i=Ie,yDomain:s})=>{let c=Oe.useRef(null),l=Oe.useRef(false),u=Oe.useMemo(()=>e.flat(),[e]),d=Oe.useMemo(()=>({top:10,bottom:15,left:i.left,right:i.right}),[i]),m=r-d.left-d.right,p=Oe.useMemo(()=>{if(u.length===0)return scale.scaleTime({domain:[new Date,new Date],range:[0,m]});let x=new Date(Math.min(...u.map(v=>v.xValue.getTime()))),y=new Date(Math.max(...u.map(v=>v.xValue.getTime())));return scale.scaleTime({domain:[x,y],range:[0,m]})},[u,m]),g=Oe.useMemo(()=>{let x=u.length>0?Math.max(0,...u.map(y=>y.yValue)):1;return scale.scaleLinear({domain:s??[0,x],range:[o-d.bottom,d.top]})},[u,o,s,d.top,d.bottom]),f=x=>{if(l.current)return;if(!x){n(null);return}let{x0:y,x1:v}=x;if(y===v)return;let S=new Date(y),w=new Date(v);if(!(Number.isNaN(S.getTime())||Number.isNaN(w.getTime()))){if(u.length>0){let N=Math.min(...u.map(M=>M.xValue.getTime())),R=Math.max(...u.map(M=>M.xValue.getTime())),T=(R-N)*.05;if(Math.abs(S.getTime()-N)<T&&Math.abs(w.getTime()-R)<T){n(null);return}}n([S,w]);}},h=Oe.useMemo(()=>{if(u.length!==0)return {start:{x:0,y:d.top},end:{x:m,y:o-d.bottom}}},[m,o,u]);Oe.useEffect(()=>{if(!c.current||u.length===0)return;let x=c.current.state;if(x?.isBrushing||x?.activeHandle)return;let y=Math.min(...u.map(k=>k.xValue.getTime())),v=Math.max(...u.map(k=>k.xValue.getTime())),S=a?a[0]:new Date(y),w=a?a[1]:new Date(v),N=c.current.state?.extent;if(N){let k=p.invert(N.x0),T=p.invert(N.x1),A=Math.abs(k.getTime()-S.getTime()),M=Math.abs(T.getTime()-w.getTime());if(A<1e3&&M<1e3)return}l.current=true;let R=k=>{let T=c.current.getExtent({x:p(S),y:d.top},{x:p(w),y:o-d.bottom});return {...k,start:{y:T.y0,x:T.x0},end:{y:T.y1,x:T.x1},extent:T}};c.current.updateBrush(R),setTimeout(()=>{l.current=false;},50);},[a,p,o,u]);let b={fill:"url(#brush_pattern)",fillOpacity:.15,stroke:"var(--color-border-focus)",strokeWidth:1.5,strokeOpacity:.3};return jsxRuntime.jsx("div",{className:"mt-2",children:jsxRuntime.jsxs("svg",{width:r,height:o,children:[jsxRuntime.jsx(pattern.PatternLines,{id:"brush_pattern",height:8,width:8,stroke:"var(--color-text-secondary)",strokeWidth:1,orientation:["diagonal"]}),jsxRuntime.jsxs("g",{transform:`translate(${d.left}, 0)`,children:[e.map((x,y)=>jsxRuntime.jsx(shape.LinePath,{data:x,x:v=>p(v.xValue),y:v=>g(v.yValue),stroke:t[y]?.color||"var(--color-gray-500)",strokeWidth:1.5,opacity:.8},`brush-series-${y}`)),jsxRuntime.jsx(brush.Brush,{xScale:p,yScale:g,width:m,height:o-d.top-d.bottom,margin:{top:d.top,bottom:d.bottom,left:0,right:0},handleSize:8,innerRef:c,resizeTriggerAreas:["left","right"],brushDirection:"horizontal",initialBrushPosition:h,onChange:f,onClick:()=>n(null),selectedBoxStyle:b,useWindowMoveEvents:true})]})]})})};function yo(e){switch(e){case "command":return Pt("--color-action-brand","#111111");case "success":return Pt("--color-feedback-success-border","#278a4a");case "warning":return Pt("--color-feedback-warning-border","#c88420");case "error":return Pt("--color-feedback-error-border","#c42d2d");case "alert":return Pt("--color-feedback-warning-border","#c88420");default:return Pt("--color-text-secondary","#525250")}}function js({events:e,color:t,showLabels:r=false}){let o=Oe.useContext(Rr),[n,a]=Oe.useState(null);if(!o)return console.warn("ChartEventMarkers must be used within a ChartContainer"),null;let{xScale:i,yScale:s,height:c,tooltip:l,datasets:u,seriesMetadata:d,seriesTypes:m,categoryColors:p}=o,g=e.filter(b=>{let x=i(b.timestamp);return x>=Ie.left&&x<=i.range()[1]}),f=Oe.useCallback((b,x)=>{a(x);let y=i(b.timestamp),v=y>(i.range()[1]-Ie.right-Ie.left)/2+Ie.left,S=[];u&&d&&u.forEach((R,k)=>{if(R.length===0)return;let T=d3Array.bisector(O=>O.xValue).left,A=T(R,b.timestamp),M=R[A-1],E=R[A],P;if(!M)P=E;else if(!E)P=M;else {let O=Math.abs(b.timestamp.getTime()-M.xValue.getTime()),G=Math.abs(b.timestamp.getTime()-E.xValue.getTime());P=O<G?M:E;}P&&d[k]&&S.push({label:d[k].label,value:P.yValue,color:d[k].color,type:m?.[k]||"line",...P.category&&{category:P.category,categoryColor:p?.[P.category]}});});let N=g.filter(R=>Math.abs(i(R.timestamp)-y)<=10).map(R=>({label:R.label,color:t||yo(R.type),metadata:R.metadata}));S.push({label:N.length>1?`${N.length} events`:b.label,value:0,color:t||yo(b.type),type:"event"}),l.show({xValue:b.timestamp,series:S,x:y,y:S.length>1&&typeof S[0].value=="number"?s(S[0].value):c/2,position:v?"left":"right",isEvent:true,eventMetadata:b.metadata,eventItems:N});},[i,s,c,l,t,u,d,m,p,g]),h=Oe.useCallback(()=>{a(null),l.hide();},[l]);return g.length===0?null:jsxRuntime.jsx("g",{className:"chart-event-markers","data-testid":"chart-event-markers",children:g.map((b,x)=>{let y=i(b.timestamp),v=t||yo(b.type),S=n===x;return jsxRuntime.jsxs("g",{children:[jsxRuntime.jsx("line",{x1:y,y1:Ie.top,x2:y,y2:c-Ie.bottom,stroke:v,strokeWidth:S?3:2,strokeDasharray:"4 4",strokeOpacity:S?.9:.6,pointerEvents:"none"}),jsxRuntime.jsx("circle",{cx:y,cy:Ie.top,r:S?5:4,fill:v,stroke:"var(--color-background-surface)",strokeWidth:2,pointerEvents:"none"}),jsxRuntime.jsx("circle",{cx:y,cy:c-Ie.bottom,r:S?5:4,fill:v,stroke:"var(--color-background-surface)",strokeWidth:2,pointerEvents:"none"}),r&&jsxRuntime.jsx("text",{x:y,y:Ie.top-8,textAnchor:"middle",fill:"var(--color-text-secondary)",fontSize:11,fontWeight:500,pointerEvents:"none",children:b.label}),jsxRuntime.jsx("rect",{x:y-10,y:Ie.top,width:20,height:c-Ie.top-Ie.bottom,fill:"transparent",style:{cursor:"pointer"},onMouseEnter:()=>f(b,x),onMouseLeave:h})]},`${b.timestamp.getTime()}-${x}`)})})}function qs({spans:e,opacity:t=.25,color:r}){let o=Oe.useContext(Rr),[n,a]=Oe.useState(null),i=o?.xScale,s=o?.height,c=o?.tooltip,[l,u]=i?.domain()??[new Date(0),new Date(0)],[d,m]=i?.range()??[0,0],p=Oe.useCallback((S,w)=>{if(!i||!c)return;a(w);let N=S.start<l?l:S.start,R=S.end>u?u:S.end,k=(i(N)+i(R))/2,T=k>(m-d)/2+d,M=e.filter(E=>E.end>E.start&&E.start<S.end&&E.end>S.start).map(E=>({label:E.label,color:E.color??r??yo(E.type),metadata:E.metadata}));c.show({xValue:S.start,series:[{label:M.length>1?`${M.length} scheduled commands`:S.label,value:0,color:S.color??r??yo(S.type),type:"event"}],x:k,y:(s??0)/2,position:T?"left":"right",isEvent:true,eventMetadata:S.metadata,eventItems:M});},[i,s,c,r,l,u,d,m,e]),g=Oe.useCallback(()=>{a(null),c?.hide();},[c]);if(!o)return console.warn("ChartEventSpans must be used within a ChartContainer"),null;let{xScale:f,height:h}=o,b=Ie.top,y=h-Ie.bottom-b,v=e.filter(S=>S.end>S.start);return v.length===0?null:jsxRuntime.jsx("g",{className:"chart-event-spans","data-testid":"chart-event-spans",children:v.map((S,w)=>{let N=S.start<l?l:S.start,R=S.end>u?u:S.end;if(N>=u||R<=l)return null;let k=f(N),A=f(R)-k;if(A<=0)return null;let M=S.color??r??yo(S.type);return jsxRuntime.jsx("rect",{x:k,y:b,width:A,height:y,fill:M,fillOpacity:n===w?Math.min((t??.25)*1.8,1):t??.25,pointerEvents:"all",style:{cursor:"pointer"},onMouseEnter:()=>p(S,w),onMouseLeave:g},`${S.start.getTime()}-${S.end.getTime()}-${w}`)})})}var Pn=({data:e,color:t="var(--color-viz-default)",strokeWidth:r=3,strokeDasharray:o,categoryColors:n={},maxGapMs:a,animate:i=true})=>{let{xScale:s,yScale:c,animationSettings:l}=Tn(),u=c.range(),d=Object.keys(n).length>0,m=y=>y.category?n[y.category]??t:t,p=y=>y.chartYValue??y.yValue,g=e.length===1?e[0]:void 0,f=a!=null?Hs(e,a):e,h=i?void 0:"non-scaling-stroke",b=g?jsxRuntime.jsx("circle",{cx:s(g.xValue),cy:c(p(g)),r,fill:d?m(g):t}):d?e.slice(0,-1).map((y,v)=>{let S=e[v+1];return a!=null&&a>0&&S.xValue.getTime()-y.xValue.getTime()>a?null:jsxRuntime.jsx(shape.LinePath,{data:[y,S],x:w=>s(w.xValue),y:w=>c(p(w)),stroke:m(y),strokeWidth:r,strokeDasharray:o,strokeLinecap:"round",vectorEffect:h,curve:curve.curveLinear},`${y.xValue.getTime()}-${S.xValue.getTime()}`)}):jsxRuntime.jsx(shape.LinePath,{data:f,x:y=>y?s(y.xValue):0,y:y=>y?c(p(y)):0,defined:y=>y!=null,stroke:t,strokeWidth:r,strokeDasharray:o,strokeLinecap:"round",vectorEffect:h,curve:curve.curveLinear}),x={transformOrigin:`0 ${u[0]}px`,transformBox:"fill-box",isolation:"isolate"};return i?jsxRuntime.jsx(framerMotion.motion.g,{initial:{scaleY:0},animate:{scaleY:1},transition:{duration:l.duration,ease:l.ease},style:x,children:b}):jsxRuntime.jsx("g",{style:x,children:b})};var Wg=e=>e.type===Jo||e.type===Pn||e.type===Gs,Ak=e=>e.type===js||e.type===qs,Ik=(e,t,r)=>{if(!e.tooltipRange||e.baseline===void 0)return;let o=typeof e.baseline=="function"?e.baseline(t,r):e.baseline;return typeof o=="number"&&Number.isFinite(o)&&o!==t.yValue?o:void 0},Fk=d3Array.bisector(e=>e.xValue).left,Bk=()=>jsxRuntime.jsx("div",{className:"flex h-full items-center justify-center",children:jsxRuntime.jsx("p",{className:"text-text-secondary",children:"No data available"})}),Vk=()=>jsxRuntime.jsxs("div",{className:"flex h-full flex-col gap-4 p-4",children:[jsxRuntime.jsx(J,{className:"h-full w-full"}),jsxRuntime.jsxs("div",{className:"flex gap-4",children:[jsxRuntime.jsx(J,{className:"h-4 w-24"}),jsxRuntime.jsx(J,{className:"h-4 w-24"})]})]}),zk=({parentWidth:e,parentHeight:t,yFormatter:r={type:"number"},yDomain:o,referenceLines:n,isLoading:a=false,enableZoom:i=false,enableBrush:s=false,brushHeight:c=60,onZoomChange:l,zoomDomain:u,hiddenSeriesLabels:d,onHiddenSeriesChange:m,hideBottomBar:p=false,children:g})=>{let f=d!==void 0,h=u!==void 0,[b,x]=Oe.useState(null),[y,v]=Oe.useState(null),S=h?u:y,[w,N]=Oe.useState(()=>new Set),R=f?d:w,k=Oe.useRef(null),T=Oe.useId(),A=Oe.useRef(0),M=Oe.useRef(""),E=Oe.useRef(null),{colorMode:P}=Vt(),O=Oe.useMemo(()=>cn(),[P]),G=Oe.useMemo(()=>Za(),[P]),{datasets:K,seriesMetadata:W,categoryInfo:q,categoryColors:j,categoryLabels:Q,seriesTypes:L}=Oe.useMemo(()=>{let pe=Oe.Children.toArray(g).filter(Ee=>Oe.isValidElement(Ee)&&Wg(Ee)),Fe=pe.filter(Ee=>Ee.props.data).length,Ne=[],Ve=[],tt=[],mt=null,Ae=null;pe.forEach((Ee,St)=>{let Pe=Ee.props;if(!Pe.data)return;Ne.push(Pe.data);let aa=("color"in Pe&&Pe.color?Pe.color:void 0)||(Fe===1?G:O[St%O.length]),sn=Ee.type===Jo;Ve.push({label:"label"in Pe&&Pe.label||`Series ${Ne.length}`,color:aa,...sn&&"baseline"in Pe&&Pe.baseline!==void 0?{baseline:Pe.baseline,tooltipRange:"tooltipRange"in Pe&&Pe.tooltipRange||false}:{}});let Nc=sn?"area":Ee.type===Pn?"line":"bar";tt.push(Nc),"categoryColors"in Pe&&Pe.categoryColors&&(mt=Pe.categoryColors),"categoryLabels"in Pe&&Pe.categoryLabels&&(Ae=Pe.categoryLabels);});let ft=null;if(mt){let Ee=new Set;Ne.forEach(St=>{St.forEach(Pe=>{Pe.category&&Ee.add(Pe.category);});}),ft=Array.from(Ee).map(St=>({label:Ae?.[St]||St,color:mt[St]||"#6b7280"}));}return {datasets:Ne,seriesMetadata:Ve,categoryInfo:ft,categoryColors:mt,categoryLabels:Ae,seriesTypes:tt}},[g,G,O,P]),D=e,U=p?0:60,I=s?c+8:0,C=t-U-I,F=Math.max(100,C),H=Oe.useCallback(X=>X?R.has(X):false,[R]),Y=Oe.useMemo(()=>W.map((X,pe)=>H(X.label)?null:pe).filter(X=>X!==null),[W,H]),te=Oe.useMemo(()=>Y.map(X=>K[X]).filter(X=>!!X),[K,Y]),de=Oe.useMemo(()=>Y.map(X=>W[X]).filter(X=>!!X),[W,Y]),_=Oe.useMemo(()=>Y.map(X=>L[X]).filter(X=>!!X),[L,Y]),ae=_.findIndex(X=>X==="bar"),fe=ae!==-1,re=Oe.useCallback((X,pe)=>{let Fe=X.has(pe);if(!Fe&&W.reduce((tt,mt)=>X.has(mt.label)||mt.label===pe?tt:tt+1,0)<1)return X;let Ne=new Set(X);return Fe?Ne.delete(pe):Ne.add(pe),Ne},[W]),ce=Oe.useCallback(X=>{if(f){let pe=d;if(!pe.has(X)&&W.reduce((Ve,tt)=>pe.has(tt.label)||tt.label===X?Ve:Ve+1,0)<1){x(null);return}m?.(Ne=>re(Ne,X));}else N(pe=>re(pe,X));x(null);},[f,d,m,W,re]),xe=Oe.useMemo(()=>W.map(X=>X.label).join(""),[W]),he=Oe.useRef(xe);Oe.useEffect(()=>{he.current!==xe&&(he.current=xe,f||N(X=>X.size===0?X:new Set));},[xe,f]);let De=Oe.useMemo(()=>te.flat(),[te]),$e=Oe.useMemo(()=>{if(De.length===0)return null;let X=[...De].sort((pe,Fe)=>pe.xValue.getTime()-Fe.xValue.getTime());return [X[0].xValue,X[X.length-1].xValue]},[De]),lr=S||$e,$=Oe.useCallback(X=>{h?l?.(X):v(X);},[h,l]),ee=Oe.useMemo(()=>lr?K.map(pe=>pe.filter(Fe=>Fe.xValue>=lr[0]&&Fe.xValue<=lr[1])):K,[K,lr]),ne=Oe.useMemo(()=>Y.map(X=>ee[X]??[]),[Y,ee]);Oe.useEffect(()=>{l&&l(S);},[S,l]);let V=Oe.useMemo(()=>Y.flatMap(X=>ee[X]??[]),[ee,Y]),z=Oe.useMemo(()=>pi(V,F,r,o),[V,F,r,o]),se=Oe.useRef(JSON.stringify(r)),ie=Oe.useRef(null),le=Oe.useMemo(()=>{let[X,pe]=z.domain(),Fe=Math.max(Math.abs(X),Math.abs(pe)),Ne=JSON.stringify(r);if(Ne!==se.current&&(se.current=Ne,ie.current=null),ie.current!==null)return ie.current;if(Fe===0)return wa(r,0);let Ve=wa(r,Fe);return ie.current=Ve,Ve},[z,r]),We=Oe.useMemo(()=>{let X=F-Ie.top-Ie.bottom;return ka(X)},[F]),ue=Oe.useMemo(()=>{let X=Hr(le),pe=X.tickFormat||X.format,Ne=z.ticks(We).map(mt=>pe(mt)),Ve=Na(Ne,12,"system-ui"),tt=Math.ceil(Ve)+12;return {...Ie,left:Math.max(tt,30),right:8}},[z,le,We]),et=Oe.useMemo(()=>lr?scale.scaleTime({domain:lr,range:[ue.left,D-ue.right]}):ou(De,D),[lr,De,D,ue]),fo=Oe.useCallback(X=>{if(!$e)return;let{scaleX:pe,translateX:Fe}=X,Ne=D-ue.left-ue.right,[Ve,tt]=$e,mt=tt.getTime()-Ve.getTime();if(mt<=0){$(null);return}let Ae=-Fe,ft=Ae+Ne,Ee=Ne*pe/mt,St=Ae/Ee,Pe=ft/Ee,an=new Date(Ve.getTime()+St),aa=new Date(Ve.getTime()+Pe),sn=Math.abs(an.getTime()-Ve.getTime()),Nc=Math.abs(aa.getTime()-tt.getTime()),Op=mt*.02;sn<Op&&Nc<Op?$(null):$([an,aa]);},[$e,D,ue,$]),Sr=Oe.useCallback(X=>{let{left:pe}=k.current?.getBoundingClientRect()||{left:0},Fe=X.clientX-pe;if(X.timeStamp-(A.current||0)<16)return;A.current=X.timeStamp;let Ne=et.invert(Fe),Ve=ne.map((Ae,ft)=>{if(!Ae||Ae.length===0)return null;let Ee=Fk(Ae,Ne,1);if(Ee===0)return {point:Ae[0],index:0,datasetIndex:ft};if(Ee>=Ae.length)return {point:Ae[Ae.length-1],index:Ae.length-1,datasetIndex:ft};let St=Ae[Ee-1],Pe=Ae[Ee];if(!St||!Pe)return null;let an=Math.abs(St.xValue.getTime()-Ne.getTime()),aa=Math.abs(Pe.xValue.getTime()-Ne.getTime()),sn=an<aa;return {point:sn?St:Pe,index:sn?Ee-1:Ee,datasetIndex:ft}}).filter(Ae=>Ae!==null&&de[Ae.datasetIndex]!==void 0).map(({point:Ae,index:ft,datasetIndex:Ee})=>({label:de[Ee].label,value:Ae.yValue,baselineValue:Ik(de[Ee],Ae,ft),color:de[Ee].color,point:Ae,type:_[Ee]}));if(Ve.length===0){x(null);return}let tt=et(Ve[0].point.xValue),mt=tt>(D-ue.right-ue.left)/2+ue.left;x({xValue:Ve[0].point.xValue,series:Ve.map(({label:Ae,value:ft,baselineValue:Ee,color:St,point:Pe,type:an})=>({label:Ae,value:ft,...Ee!==void 0?{baselineValue:Ee}:{},chartY:Pe.chartYValue??ft,showMarker:Pe.showTooltipMarker??true,color:St,type:an,category:Pe.category,categoryColor:Pe.category&&j?j[Pe.category]:void 0,...Pe.extraTooltipRows&&Pe.extraTooltipRows.length>0?{extraTooltipRows:Pe.extraTooltipRows}:{}})),x:tt,y:z(Ve[0].point.chartYValue??Ve[0].value),position:mt?"left":"right"});},[ne,de,_,et,z,D,j,ue]),Cc=()=>{x(null);},Sc=Oe.useCallback(()=>{$(null),E.current&&E.current.reset();},[$]),ts=Oe.useCallback(X=>{if(!(E.current&&$e))return;let[pe,Fe]=$e,Ne=Fe.getTime()-pe.getTime();if(Ne<=0){E.current.reset();return}if(!X){E.current.reset();return}let[Ve,tt]=X,mt=tt.getTime()-Ve.getTime();if(mt<=0){E.current.reset();return}let Ae=Ne/mt,ft=D-ue.left-ue.right,St=-((Ve.getTime()-pe.getTime())/Ne)*ft*Ae;E.current.setTransformMatrix({scaleX:Ae,scaleY:1,translateX:St,translateY:0,skewX:0,skewY:0});},[$e,D,ue]),dv=Oe.useCallback(X=>{$(X),ts(X);},[$,ts]);Oe.useEffect(()=>{h&&ts(u??null);},[h,u,ts]);let uv={width:D,height:F,xScale:et,yScale:z,yFormatter:le,animationSettings:Os,tooltip:{data:b,show:x,hide:()=>x(null)},datasets:ne,seriesMetadata:de,seriesTypes:_,categoryColors:j||void 0,categoryLabels:Q||void 0},pv=Oe.Children.toArray(g),Fp=0,Bp=[],Vp=[],wc=[];pv.forEach(X=>{if(!Oe.isValidElement(X)){wc.push(X);return}if(Ak(X))Vp.push(X);else if(Wg(X)){let pe=Fp;Fp++;let Fe=X.props,Ne=W[pe]?.label;if(H(Ne))return;Bp.push(Oe__namespace.default.cloneElement(X,{...Fe,data:ee[pe]||Fe.data,color:W[pe]?.color}));}else wc.push(X);});let mv=Y.length,fv=(q||W).map(X=>{let pe=!q&&H(X.label);return {category:X.label,fill:X.color,isHidden:pe,isDisabled:!q&&!pe&&mv<=1}}),gv=typeof r=="object"&&r!==null&&typeof r.type=="string",bv=Js({datasets:te,metadata:{xLabel:"Date",yLabel:"Value",seriesLabels:de.map(X=>X.label),timestamp:true,...gv?{yFormat:r}:{}},svgRef:k});if(a)return jsxRuntime.jsx(Vk,{});if(K.length===0)return jsxRuntime.jsx(Bk,{});let zp=jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("title",{children:"Data chart visualization"}),jsxRuntime.jsx("g",{children:z.ticks(We).map(X=>{let pe=Math.abs(X)<Number.EPSILON;return jsxRuntime.jsx(shape.Line,{from:{x:ue.left,y:z(X)},to:{x:D-ue.right,y:z(X)},stroke:pe?"var(--color-border-default)":"var(--color-border-muted)",strokeWidth:pe?1.5:1},`grid-line-${X}`)})}),jsxRuntime.jsx("defs",{children:jsxRuntime.jsx("clipPath",{id:T,children:jsxRuntime.jsx("rect",{x:et.range()[0],y:z.range()[1],width:et.range()[1]-et.range()[0],height:z.range()[0]-z.range()[1]})})}),jsxRuntime.jsx("g",{clipPath:`url(#${T})`,children:Bp}),wc,n&&n.length>0&&jsxRuntime.jsx("g",{children:n.map(X=>{let pe=z(X.value),Fe=X.color??"var(--color-error-base)";return jsxRuntime.jsxs("g",{children:[jsxRuntime.jsx(shape.Line,{from:{x:ue.left,y:pe},to:{x:D-ue.right,y:pe},stroke:Fe,strokeWidth:1.5,strokeDasharray:"6 4"}),X.label&&jsxRuntime.jsx("text",{x:D-ue.right-4,y:pe-4,textAnchor:"end",fontSize:11,fill:Fe,children:X.label})]},`ref-line-${X.value}`)})}),jsxRuntime.jsx(Mr.Bottom,{top:F-ue.bottom,scale:et,width:D-ue.left-ue.right}),jsxRuntime.jsx(Mr.Left,{left:ue.left,scale:z,yFormatter:le,height:F-ue.top-ue.bottom}),b&&!b.isEvent&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[fe?(()=>{let X=te[ae]??[];if(X.length===0)return null;let pe=[...X].sort((Ee,St)=>Ee.xValue.getTime()-St.xValue.getTime()),Fe=pe.findIndex(Ee=>Ee.xValue.getTime()===b.xValue.getTime()),Ne=pe[Fe+1],Ve=pe.length>1&&Ne?Ne.xValue.getTime()-b.xValue.getTime():15*6e4,tt=Math.abs(et(new Date(b.xValue.getTime()+Ve))-et(b.xValue)),Ae=et(b.xValue)-tt/2,ft=z.range();return jsxRuntime.jsx("rect",{x:Ae,y:ft[1],width:tt,height:ft[0]-ft[1],className:"fill-background-muted",opacity:.5,pointerEvents:"none",style:{transition:"all 100ms ease-out"}})})():null,b.series.filter(X=>X.type!=="bar"&&X.showMarker!==false).map(X=>jsxRuntime.jsxs("g",{children:[jsxRuntime.jsx("circle",{cx:et(b.xValue),cy:z(X.chartY??X.value),r:8,fill:"white",stroke:X.color,strokeWidth:2,style:{transition:"all 100ms ease-out"}}),jsxRuntime.jsx("circle",{cx:et(b.xValue),cy:z(X.chartY??X.value),r:4,fill:X.color,style:{transition:"all 100ms ease-out"}})]},`highlight-${X.label}`))]}),jsxRuntime.jsx("rect",{x:ue.left,y:ue.top,width:D-ue.left-ue.right,height:F-ue.top-ue.bottom,fill:"transparent",style:{cursor:i?"grab":"crosshair",touchAction:"none"},onMouseMove:Sr,onMouseLeave:Cc}),Vp]});return jsxRuntime.jsx("div",{className:"relative flex h-full flex-col",children:jsxRuntime.jsxs(Rr.Provider,{value:uv,children:[i?jsxRuntime.jsx(zoom.Zoom,{width:D,height:F,scaleXMin:1,scaleXMax:20,scaleYMin:1,scaleYMax:1,constrain:X=>{let{scaleX:pe,translateX:Fe}=X,Ne=Math.max(1,Math.min(20,pe)),Ve=1,tt=D-ue.left-ue.right,mt=0,Ae=tt*(1-Ne),ft=Math.max(Ae,Math.min(mt,Fe));return {...X,scaleX:Ne,scaleY:Ve,translateX:ft,translateY:0}},children:X=>{if(E.current=X,X.transformMatrix){let{scaleX:pe,translateX:Fe}=X.transformMatrix,Ne=`${pe.toFixed(4)}-${Fe.toFixed(2)}`;Ne!==M.current&&(M.current=Ne,setTimeout(()=>{fo(X.transformMatrix);},0));}return jsxRuntime.jsx("svg",{width:D,height:F,className:"overflow-visible",ref:pe=>{k.current=pe,X.containerRef.current!==pe&&(X.containerRef.current=pe);},role:"img","aria-label":"Data chart",style:{cursor:X.isDragging?"grabbing":"grab",touchAction:"none"},onMouseDown:X.dragStart,onMouseMove:X.dragMove,onMouseUp:X.dragEnd,onMouseLeave:()=>{X.isDragging&&X.dragEnd();},onTouchStart:X.dragStart,onTouchMove:X.dragMove,onTouchEnd:X.dragEnd,children:zp})}}):jsxRuntime.jsx("svg",{width:D,height:F,className:"overflow-visible",ref:k,role:"img","aria-label":"Data chart",children:zp}),jsxRuntime.jsx(Xo,{data:b,formatter:le}),s&&$e&&jsxRuntime.jsx(uu,{data:te,seriesMetadata:de,width:D,height:c,onBrushChange:dv,brushRegion:S,margin:ue,...o?{yDomain:o}:{}}),!p&&jsxRuntime.jsx(Pa,{onExport:bv,items:fv,marginLeft:0,marginRight:ue.right,isZoomed:S!==null,onResetZoom:Sc,onLegendItemToggle:q?void 0:ce})]})})},Ug=responsive.withParentSize(zk);var Kk=e=>e.toLocaleString(),Yk=e=>`${Math.round(e*100)}%`,Xg=({data:e,width:t=800,height:r=400,padding:o=0,barGap:n=30,formatValue:a=Kk,formatPercentage:i=Yk,color:s,showScale:c=true,showOverallConversion:l=true,overallConversionLabel:u="Overall Conversion:",activeStageId:d,onStageClick:m,onStageHover:p,className:g,style:f,"aria-label":h="Funnel chart"})=>{let[b,x]=Oe.useState(null),[y,v]=Oe.useState(t),S=Oe.useRef(null),w=d??b,N=Oe.useId(),R=s||"var(--color-viz-default)";Oe.useEffect(()=>{if(!S.current)return;let P=new ResizeObserver(O=>{for(let G of O)v(G.contentRect.width);});return P.observe(S.current),()=>{P.disconnect();}},[]);let{layout:k,overallConversion:T}=Oe.useMemo(()=>{if(e.length===0)return {layout:[],overallConversion:0};let P=e[0].value,O=l?60:0,G=r-o*2-O,K=(e.length-1)*n,W=(G-K)/e.length,q=e.map((Q,L)=>{let D=o+O+L*(W+n),U=P===0?0:Q.value/P,I=U,C=L===0?null:e[L-1].value,F=C==null||C===0?0:1-Q.value/C;return {stage:Q,index:L,y:D,barHeight:W,widthPercent:U,conversionRate:I,dropOff:F}}),j=P===0?0:e[e.length-1].value/P;return {layout:q,overallConversion:j,maxValue:P}},[e,y,r,o,n,c,l]);if(e.length===0)return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("flex h-full min-h-[280px] w-full items-center justify-center rounded-lg border border-dashed border-border-default bg-background-surface text-sm font-medium text-text-secondary",g),style:{width:t,height:r,...f},children:"No funnel data available"});let A=c?60:0,M=o+A,E=y-o*2-A;return jsxRuntime.jsx("div",{ref:S,className:tailwindMerge.twMerge("relative w-full overflow-hidden rounded-lg bg-background-surface",g),style:{height:r,...f},"aria-label":h,role:"img",children:jsxRuntime.jsxs("svg",{width:"100%",height:r,className:"relative",children:[jsxRuntime.jsxs("defs",{children:[jsxRuntime.jsx(gradient.LinearGradient,{id:`${N}-bar`,from:R,to:R,toOpacity:.85}),jsxRuntime.jsx(gradient.LinearGradient,{id:`${N}-bg`,from:R,to:R,fromOpacity:.01,toOpacity:.15,x1:"0",y1:"0",x2:"1",y2:"0"})]}),l&&jsxRuntime.jsxs("text",{x:M,y:o+20,className:"fill-text-primary text-sm font-medium",children:[jsxRuntime.jsx("tspan",{className:"fill-text-secondary",children:u})," ",i(T)]}),c&&jsxRuntime.jsx("g",{children:k.map(P=>{let O=P.y+P.barHeight/2;return jsxRuntime.jsx("text",{x:o+A-12,y:O,textAnchor:"end",dominantBaseline:"middle",className:"fill-text-secondary text-xs",children:i(P.conversionRate)},P.stage.id)})}),k.map(P=>{let O=w===P.stage.id,G=E*P.widthPercent;return jsxRuntime.jsxs("g",{children:[jsxRuntime.jsx("rect",{x:M,y:P.y,width:E,height:P.barHeight,fill:`url(#${N}-bg)`,rx:4}),jsxRuntime.jsx(framerMotion.motion.rect,{x:M,y:P.y,width:G,height:P.barHeight,fill:`url(#${N}-bar)`,rx:4,initial:{width:0},animate:{width:G},transition:{duration:.6,delay:P.index*.1,ease:"easeOut"},opacity:O||w==null?1:.5,style:{cursor:m||p?"pointer":"default",transition:"opacity 150ms ease"},onMouseEnter:()=>{x(P.stage.id),p?.(P.stage);},onMouseLeave:()=>{x(null),p?.(null);},onClick:()=>m?.(P.stage)}),jsxRuntime.jsx("rect",{x:M+10,y:P.y+P.barHeight/2-10,width:70,height:20,className:"fill-background-surface stroke-border-default",strokeWidth:1,rx:4,style:{pointerEvents:"none"}}),jsxRuntime.jsx("text",{x:M+16,y:P.y+P.barHeight/2+4,className:"fill-text-primary text-xs font-semibold",style:{pointerEvents:"none"},children:a(P.stage.value)}),jsxRuntime.jsxs("text",{x:M,y:P.y-8,className:"fill-text-secondary text-xs",style:{pointerEvents:"none"},children:[jsxRuntime.jsx("tspan",{children:P.index+1})," ",P.stage.label]}),P.stage.secondaryValue&&jsxRuntime.jsx("text",{x:M+16,y:P.y-24,className:"fill-text-secondary text-xs",style:{pointerEvents:"none"},children:P.stage.secondaryValue}),P.index>0&&P.dropOff>0&&jsxRuntime.jsxs("text",{x:M+E,y:P.y-8,textAnchor:"end",className:"fill-text-secondary text-xs",children:[i(P.dropOff)," drop"]}),P.stage.annotation&&jsxRuntime.jsxs("g",{children:[jsxRuntime.jsx("rect",{x:M+G+8,y:P.y+8,width:60,height:24,rx:3,className:"fill-background-muted"}),jsxRuntime.jsx("text",{x:M+G+16,y:P.y+20,className:"fill-text-secondary text-xs font-medium",children:P.stage.annotation})]})]},P.stage.id)})]})})};function jg(){let e=new Map;return {publish(t,r){for(let[o,n]of e)o!==t&&n(r);},subscribe(t,r){return e.set(t,r),()=>{e.delete(t);}}}}var Xk=d3Array.bisector(e=>e.xValue).left,jk=(e,t,r)=>{if(!e.tooltipRange||e.baseline===void 0)return;let o=typeof e.baseline=="function"?e.baseline(t,r):e.baseline;return typeof o=="number"&&Number.isFinite(o)&&o!==t.yValue?o:void 0};function qg(e){let{mouseX:t,datasets:r,seriesMetadata:o,seriesTypes:n,xScale:a,yScale:i,plotLeft:s,plotRight:c}=e,l=a.invert(t),u=r.map((p,g)=>{if(!p||p.length===0)return null;let f=Xk(p,l,1);if(f===0)return {point:p[0],index:0,datasetIndex:g};if(f>=p.length)return {point:p[p.length-1],index:p.length-1,datasetIndex:g};let h=p[f-1],b=p[f];if(!h||!b)return null;let x=Math.abs(h.xValue.getTime()-l.getTime()),y=Math.abs(b.xValue.getTime()-l.getTime()),v=x<y;return {point:v?h:b,index:v?f-1:f,datasetIndex:g}}).filter(p=>p!==null&&o[p.datasetIndex]!==void 0).map(({point:p,index:g,datasetIndex:f})=>({label:o[f].label,value:p.yValue,baselineValue:jk(o[f],p,g),color:o[f].color,point:p,type:n[f]}));if(u.length===0)return null;let d=a(u[0].point.xValue),m=d>(s+c)/2;return {xValue:u[0].point.xValue,series:u.map(({label:p,value:g,baselineValue:f,color:h,point:b,type:x})=>({label:p,value:g,...f!==void 0?{baselineValue:f}:{},chartY:b.chartYValue??g,showMarker:b.showTooltipMarker??true,color:h,type:x,...b.category!==void 0?{category:b.category}:{},...b.extraTooltipRows&&b.extraTooltipRows.length>0?{extraTooltipRows:b.extraTooltipRows}:{}})),x:d,y:i(u[0].point.chartYValue??u[0].value),position:m?"left":"right"}}var _g=e=>e instanceof Date&&!Number.isNaN(e.getTime()),_k=160;function Qs(e,t,r){let[o,n]=Oe.useState(null);Oe.useImperativeHandle(r,()=>({setPreview:n}),[]);let[a,i]=e.range(),s=Oe.useMemo(()=>o?d3Scale.scaleTime().domain([new Date(o[0]),new Date(o[1])]).range([a,i]):e,[o,e,a,i]),c=s.domain(),l=c[0],u=c[c.length-1],d=_g(l)&&_g(u),m=t<400,p=Math.max(2,Math.min(8,Math.floor(t/(m?70:110)))),g=Oe.useMemo(()=>{if(!d)return [];let f=i-a;if(f<=0)return s.ticks(p);let[h,b]=s.domain(),x=h.getTime(),y=b.getTime(),v=(y-x)/f,S=Math.min(_k,f),w=S*v,N=d3Scale.scaleTime().domain([new Date(x-w),new Date(y+w)]).range([a-S,i+S]),R=d3Time.timeTickInterval(h,b,p);if(R)return N.ticks(R);let k=Math.max(2,Math.round(p*(f+2*S)/f));return N.ticks(k)},[s,p,d,a,i]);return {activeScale:s,ticks:g,start:l,end:u,valid:d,compact:m,rangeStart:a,rangeEnd:i}}var rT=6,$g=20,gu=Oe.forwardRef(({top:e,scale:t,width:r},o)=>{let{activeScale:n,ticks:a,start:i,end:s,valid:c,compact:l,rangeStart:u,rangeEnd:d}=Qs(t,r,o),m=a.length>=2?a[1].getTime()-a[0].getTime():s.getTime()-i.getTime(),p=Oe.useMemo(()=>c?Gm(m,{compact:l}):()=>"",[m,l,c]),g=Oe.useId(),f=Math.min(u,d),h=Math.abs(d-u);return jsxRuntime.jsxs("g",{children:[jsxRuntime.jsx("line",{x1:u,x2:d,y1:e,y2:e,stroke:"var(--color-border-muted)",strokeWidth:1}),a.length>0&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("defs",{children:jsxRuntime.jsx("clipPath",{id:g,children:jsxRuntime.jsx("rect",{x:f,y:e-4,width:h,height:$g+16})})}),jsxRuntime.jsx("g",{clipPath:`url(#${g})`,children:a.map(b=>jsxRuntime.jsxs("g",{transform:`translate(${n(b)},${e})`,children:[jsxRuntime.jsx("line",{x1:0,x2:0,y1:0,y2:rT,stroke:"var(--color-border-muted)",strokeWidth:1}),jsxRuntime.jsx("text",{x:0,y:$g,textAnchor:"middle",fontSize:12,fill:"var(--color-text-secondary)",children:p(b)})]},b.getTime()))})]})]})});gu.displayName="LiveTimeAxisBottom";var bu=Oe.forwardRef(({scale:e,width:t,top:r,bottom:o},n)=>{let{activeScale:a,ticks:i,rangeStart:s,rangeEnd:c}=Qs(e,t,n),l=Oe.useId(),u=Math.min(s,c),d=Math.abs(c-s);return jsxRuntime.jsxs("g",{"aria-hidden":"true",children:[jsxRuntime.jsx("defs",{children:jsxRuntime.jsx("clipPath",{id:l,children:jsxRuntime.jsx("rect",{x:u,y:r,width:d,height:o-r})})}),jsxRuntime.jsx("g",{clipPath:`url(#${l})`,children:i.map(m=>{let p=a(m);return jsxRuntime.jsx("line",{x1:p,x2:p,y1:r,y2:o,stroke:"var(--color-border-muted)",strokeWidth:1},m.getTime())})})]})});bu.displayName="LiveTimeGridlines";function Zs(e,t,r){let o=e[1]-e[0],n=t/Math.max(1,r)*o;return [e[0]-n,e[1]-n]}function eb(e,t,r){let o=e[1]-e[0],n=e[0]+t*o,a=o/r,i=n-t*a;return [i,i+a]}function xu(e,t,r=16,o=800){return t===1?e*r:t===2?e*o:e}var tb=(e,t,r,o,n)=>{let a=t!==1?eb(e,r,t):e;return o!==0&&(a=Zs(a,o,n)),a},rb=(e,t)=>{if(!t)return e;let r=e[1]-e[0];if(r>=t[1]-t[0])return [t[0],t[1]];let[o,n]=e;return n>t[1]&&(n=t[1],o=n-r),o<t[0]&&(o=t[0],n=o+r),[o,n]},lT=e=>typeof requestAnimationFrame=="function"?requestAnimationFrame(e):setTimeout(()=>e(0),0),cT=e=>{typeof cancelAnimationFrame=="function"?cancelAnimationFrame(e):clearTimeout(e);};function ob(e){let{groupRef:t}=e,r=Oe.useRef({xDomain:e.xDomain,plotWidthPx:e.plotWidthPx,plotLeftPx:e.plotLeftPx??0});r.current={xDomain:e.xDomain,plotWidthPx:e.plotWidthPx,plotLeftPx:e.plotLeftPx??0};let o=Oe.useRef(e.onCommit);o.current=e.onCommit;let n=Oe.useRef(e.panBoundsMs);n.current=e.panBoundsMs;let a=Oe.useRef(e.settleMs??140);a.current=e.settleMs??140;let i=Oe.useRef(e.zoomIntent??(M=>M.ctrlKey));i.current=e.zoomIntent??(M=>M.ctrlKey);let s=Oe.useRef(e.onGestureStart);s.current=e.onGestureStart;let c=Oe.useRef(e.onFramePreview);c.current=e.onFramePreview;let l=Oe.useRef(null),u=Oe.useRef({scale:1,cursorFrac:.5,panDxPx:0,timer:null}),d=Oe.useRef(null),m=Oe.useRef(null),p=Oe.useRef(false),g=Oe.useCallback((M,E,P)=>{m.current={translateX:M,scaleX:E,preview:P},d.current==null&&(d.current=lT(()=>{d.current=null;let O=m.current;O!=null&&(t.current?.setAttribute("transform",`translate(${O.translateX},0) scale(${O.scaleX},1)`),c.current?.(O.preview));}));},[t]),f=Oe.useCallback(()=>{d.current!=null&&(cT(d.current),d.current=null),m.current=null,t.current?.removeAttribute("transform"),c.current?.(null);},[t]),h=Oe.useCallback(()=>{p.current||(p.current=true,s.current?.());},[]),b=Oe.useCallback(()=>{p.current=false;},[]),x=Oe.useCallback(()=>{u.current.timer!=null&&(clearTimeout(u.current.timer),u.current.timer=null);},[]),y=Oe.useCallback(()=>{u.current={scale:1,cursorFrac:.5,panDxPx:0,timer:null};},[]),v=Oe.useCallback(()=>{let{xDomain:M,plotWidthPx:E}=r.current,{scale:P,cursorFrac:O,panDxPx:G}=u.current;P===1&&G===0||o.current(rb(tb(M,P,O,G,E),n.current));},[]),S=Oe.useCallback(()=>{u.current.timer!=null&&(x(),v(),y(),f());},[x,v,y,f]),w=Oe.useCallback(M=>{S(),M.currentTarget.setPointerCapture?.(M.pointerId),l.current={startX:M.clientX,dxPx:0},h();},[S,h]),N=Oe.useCallback(M=>{if(!l.current)return;l.current.dxPx=M.clientX-l.current.startX;let{xDomain:E,plotWidthPx:P}=r.current;g(l.current.dxPx,1,Zs(E,l.current.dxPx,P));},[g]),R=Oe.useCallback(M=>{if(!l.current)return;let{dxPx:E}=l.current;l.current=null,f(),b(),E!==0&&o.current(rb(Zs(r.current.xDomain,E,r.current.plotWidthPx),n.current));},[f,b]),k=Oe.useCallback(()=>{l.current&&(l.current=null,f(),b());},[f,b]),T=Oe.useRef(null),A=Oe.useCallback(M=>{if(T.current?.(),T.current=null,!M)return;let E=P=>{if(l.current)return;let{plotWidthPx:O,plotLeftPx:G}=r.current,K=xu(P.deltaY,P.deltaMode),W=xu(P.deltaX,P.deltaMode),q=i.current(P);if(!q&&W===0)return;if(P.preventDefault(),h(),q){let D=Math.min(1,Math.max(0,(P.clientX-M.getBoundingClientRect().left)/Math.max(1,O)));u.current.scale*=Math.exp(-K/200),u.current.cursorFrac=D;}else u.current.panDxPx-=W;let{scale:j,cursorFrac:Q,panDxPx:L}=u.current;g((G+Q*O)*(1-j)+L,j,tb(r.current.xDomain,j,Q,L,O)),x(),u.current.timer=setTimeout(()=>{v(),y(),f(),b();},a.current);};M.addEventListener("wheel",E,{passive:false}),T.current=()=>M.removeEventListener("wheel",E);},[g,f,x,v,y,h,b]);return Oe.useEffect(()=>()=>{T.current?.(),T.current=null,f(),u.current.timer!=null&&clearTimeout(u.current.timer);},[f]),{onPointerDown:w,onPointerMove:N,onPointerUp:R,onPointerCancel:k,wheelTargetRef:A,gestureActiveRef:p}}var sb=e=>e.type===Jo||e.type===Pn,gT=({children:e,viewport:t,panBounds:r,onViewportChange:o,onPlotWidthChange:n,yFormatter:a={type:"number"},yDomain:i,referenceLines:s,cameraSync:c,parentWidth:l=0,parentHeight:u=0})=>{let[d,m]=Oe.useState(null),p=Oe.useRef(null),g=Oe.useRef(0),f=Oe.useId(),h=Oe.useRef(null),b=Oe.useRef(null),x=Oe.useRef(null),{colorMode:y}=Vt(),v=Oe.useMemo(()=>cn(),[y]),S=Oe.useMemo(()=>Za(),[y]),{datasets:w,seriesMetadata:N,seriesTypes:R}=Oe.useMemo(()=>{let $=Oe.Children.toArray(e).filter(se=>Oe.isValidElement(se)&&sb(se)),ee=$.filter(se=>se.props.data).length,ne=[],V=[],z=[];return $.forEach((se,ie)=>{let le=se.props;if(!le.data)return;ne.push(le.data);let ue=("color"in le&&le.color?le.color:void 0)||(ee===1?S:v[ie%v.length]),et=se.type===Jo;V.push({label:"label"in le&&le.label||`Series ${ne.length}`,color:ue,...et&&"baseline"in le&&le.baseline!==void 0?{baseline:le.baseline,tooltipRange:"tooltipRange"in le&&le.tooltipRange||false}:{}}),z.push(et?"area":"line");}),{datasets:ne,seriesMetadata:V,seriesTypes:z}},[e,S,v]),k=l,T=Math.max(100,u-60),A=Oe.useMemo(()=>[new Date(t.startMs),new Date(t.endMs)],[t.startMs,t.endMs]),M=Oe.useMemo(()=>{let $=w.flat(),ee=$.filter(ne=>{let V=ne.xValue.getTime();return V>=t.startMs&&V<=t.endMs});return ee.length>0?ee:$},[w,t.startMs,t.endMs]),E=Oe.useMemo(()=>{let $=pi(M,T,a,i);if(!i){let[ee,ne]=$.domain();ne>ee&&$.domain([ee,ne+(ne-ee)*.05]);}return $},[M,T,a,i]),P=Oe.useRef(JSON.stringify(a)),O=Oe.useRef(null),G=Oe.useMemo(()=>{let[$,ee]=E.domain(),ne=Math.max(Math.abs($),Math.abs(ee)),V=JSON.stringify(a);if(V!==P.current&&(P.current=V,O.current=null),O.current!==null)return O.current;if(ne===0)return wa(a,0);let z=wa(a,ne);return O.current=z,z},[E,a]),K=Oe.useMemo(()=>{let $=T-Ie.top-Ie.bottom;return ka($)},[T]),W=Oe.useMemo(()=>{let $=Hr(G),ee=$.tickFormat||$.format,V=E.ticks(K).map(ie=>ee(ie)),z=Na(V,12,"system-ui"),se=Math.ceil(z)+12;return {...Ie,left:Math.max(se,30)}},[E,G,K]),q=Oe.useMemo(()=>scale.scaleTime({domain:A,range:[W.left,k-W.right]}),[A,k,W]),j=Oe.useMemo(()=>[t.startMs,t.endMs],[t.startMs,t.endMs]),Q=Oe.useMemo(()=>r?[r.startMs,r.endMs]:void 0,[r]),L=Oe.useCallback($=>{o({startMs:$[0],endMs:$[1]});},[o]),D=k-W.left-W.right,U=Oe.useCallback(()=>m(null),[]),I=Oe.useRef({}),C=Oe.useRef(c);C.current=c;let F=Oe.useCallback($=>{b.current?.setPreview($),x.current?.setPreview($),C.current?.publish(I.current,$);},[]),{onPointerDown:H,onPointerMove:Y,onPointerUp:te,onPointerCancel:de,wheelTargetRef:_,gestureActiveRef:ae}=ob({xDomain:j,plotWidthPx:D,plotLeftPx:W.left,groupRef:h,onCommit:L,onGestureStart:U,onFramePreview:F,...Q?{panBoundsMs:Q}:{}}),fe=Oe.useRef({startMs:t.startMs,endMs:t.endMs,left:0,width:0});fe.current={startMs:t.startMs,endMs:t.endMs,left:W.left,width:D},Oe.useEffect(()=>{if(!c)return;let $=()=>{h.current?.removeAttribute("transform"),b.current?.setPreview(null),x.current?.setPreview(null);},ee=V=>{if(ae.current)return;if(V==null){$();return}let{startMs:z,endMs:se,left:ie,width:le}=fe.current,We=se-z,ue=V[1]-V[0];if(We<=0||ue<=0||le<=0)return;let et=We/ue,fo=ie*(1-et)+(z-V[0])*le/ue;h.current?.setAttribute("transform",`translate(${fo},0) scale(${et},1)`),b.current?.setPreview(V),x.current?.setPreview(V);},ne=c.subscribe(I.current,ee);return ()=>{ne(),ae.current||$();}},[c,ae]),Oe.useEffect(()=>{n?.(Math.max(0,k-W.left-W.right));},[k,W,n]);let re=Oe.useCallback($=>{if(ae.current)return;let{left:ee}=p.current?.getBoundingClientRect()||{left:0},ne=$.clientX-ee;$.timeStamp-(g.current||0)<16||(g.current=$.timeStamp,m(qg({mouseX:ne,datasets:w,seriesMetadata:N,seriesTypes:R,xScale:q,yScale:E,plotLeft:W.left,plotRight:k-W.right})));},[w,N,R,q,E,k,W,ae]),ce=Oe.useCallback(()=>m(null),[]),xe={width:k,height:T,xScale:q,yScale:E,yFormatter:G,animationSettings:Os,tooltip:{data:d,show:m,hide:()=>m(null)},datasets:w,seriesMetadata:N,seriesTypes:R},he=0,De=[];Oe.Children.toArray(e).forEach($=>{if(!Oe.isValidElement($)){De.push($);return}if(sb($)){let ee=he;he++;let ne=$.props;De.push(Oe__namespace.default.cloneElement($,{...ne,color:N[ee]?.color,animate:false}));}else De.push($);});let $e=N.map($=>({category:$.label,fill:$.color})),Do=Js({datasets:w,metadata:{xLabel:"Date",yLabel:"Value",seriesLabels:N.map($=>$.label),timestamp:true},svgRef:p}),lr=jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("title",{children:"Data chart visualization"}),jsxRuntime.jsx("g",{children:E.ticks(K).map($=>{let ee=Math.abs($)<Number.EPSILON;return jsxRuntime.jsx(shape.Line,{from:{x:W.left,y:E($)},to:{x:k-W.right,y:E($)},stroke:ee?"var(--color-border-default)":"var(--color-border-muted)",strokeWidth:ee?1.5:1},`grid-line-${$}`)})}),jsxRuntime.jsx(bu,{ref:x,scale:q,width:k-W.left-W.right,top:E.range()[1],bottom:E.range()[0]}),jsxRuntime.jsx("defs",{children:jsxRuntime.jsx("clipPath",{id:f,children:jsxRuntime.jsx("rect",{x:q.range()[0],y:E.range()[1],width:q.range()[1]-q.range()[0],height:E.range()[0]-E.range()[1]})})}),jsxRuntime.jsx("g",{clipPath:`url(#${f})`,children:jsxRuntime.jsx("g",{"data-camera-plot-group":"",ref:h,children:De})}),s&&s.length>0&&jsxRuntime.jsx("g",{children:s.map($=>{let ee=E($.value),ne=$.color??"var(--color-error-base)";return jsxRuntime.jsxs("g",{children:[jsxRuntime.jsx(shape.Line,{from:{x:W.left,y:ee},to:{x:k-W.right,y:ee},stroke:ne,strokeWidth:1.5,strokeDasharray:"6 4"}),$.label&&jsxRuntime.jsx("text",{x:k-W.right-4,y:ee-4,textAnchor:"end",fontSize:11,fill:ne,children:$.label})]},`ref-line-${$.value}`)})}),jsxRuntime.jsx(gu,{ref:b,top:T-W.bottom,scale:q,width:k-W.left-W.right}),jsxRuntime.jsx(Mr.Left,{left:W.left,scale:E,yFormatter:G,height:T-W.top-W.bottom}),d&&!d.isEvent&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(shape.Line,{"data-testid":"chart-hover-crosshair",from:{x:q(d.xValue),y:E.range()[1]},to:{x:q(d.xValue),y:E.range()[0]},stroke:"var(--color-text-secondary)",strokeWidth:1,strokeDasharray:"3 3",opacity:.7}),d.series.filter($=>$.type!=="bar"&&$.showMarker!==false).map($=>jsxRuntime.jsxs("g",{children:[jsxRuntime.jsx("circle",{cx:q(d.xValue),cy:E($.chartY??$.value),r:8,fill:"white",stroke:$.color,strokeWidth:2,style:{transition:"all 100ms ease-out"}}),jsxRuntime.jsx("circle",{cx:q(d.xValue),cy:E($.chartY??$.value),r:4,fill:$.color,style:{transition:"all 100ms ease-out"}})]},`highlight-${$.label}`))]}),jsxRuntime.jsx("rect",{"data-camera-surface":"",x:W.left,y:W.top,width:k-W.left-W.right,height:T-W.top-W.bottom,fill:"transparent",style:{cursor:"grab",touchAction:"none"},onMouseMove:re,onMouseLeave:ce,onPointerDown:H,onPointerMove:Y,onPointerUp:te,onPointerCancel:de,ref:_})]});return jsxRuntime.jsx("div",{className:"relative flex h-full flex-col",children:jsxRuntime.jsxs(Rr.Provider,{value:xe,children:[jsxRuntime.jsx("svg",{width:k,height:T,className:"overflow-visible",ref:p,role:"img","aria-label":"Data chart",children:lr}),jsxRuntime.jsx(Xo,{data:d,formatter:G}),jsxRuntime.jsx(Pa,{onExport:Do,items:$e,marginLeft:0,marginRight:W.right})]})})},_s=responsive.withParentSize(gT);function $s(e,t,r,o){if(r.length===0)throw new Error("tierForViewport: resolution ladder is empty");let n=[...r].sort((s,c)=>s.bucketMs-c.bucketMs),a=e/Math.max(1,t*o.targetPointsPerPx),i=Math.max(o.nativeMs,a);return n.find(s=>s.bucketMs>=i)??n[n.length-1]}function bT(e,t){return Math.floor(e/t.tileSpanMs)}function jo(e,t,r){let o=bT(e.startMs,t)-r,n=Math.ceil(e.endMs/t.tileSpanMs)-1+r,a=[];for(let i=o;i<=n;i++)a.push({tierId:t.id,index:i,startMs:i*t.tileSpanMs,endMs:(i+1)*t.tileSpanMs});return a}var rr=(e,t)=>`${e}:${t}`;var cb={erroredTiles:0};function yu(e,t){let r=new Map,o=new Map,n=new Map,a=0;for(let u of e){let d=t.get(rr(u.tierId,u.index));if(d){if(d.status==="error"){a+=1;continue}if(d.data){for(let m of d.data.line)r.set(m.xValue.getTime(),m);for(let m of d.data.band??[])o.set(m.xValue.getTime(),m);for(let[m,p]of Object.entries(d.data.lines??{})){let g=n.get(m);g||(g=new Map,n.set(m,g));for(let f of p)g.set(f.xValue.getTime(),f);}}}}let i=(u,d)=>u.xValue.getTime()-d.xValue.getTime(),s=[...r.values()].sort(i),c=[...o.values()].sort(i),l=Object.fromEntries([...n.entries()].map(([u,d])=>[u,[...d.values()].sort(i)]));return {line:s,band:c,lines:l,coverage:{earliestMs:s.length?s[0].xValue.getTime():void 0,latestMs:s.length?s[s.length-1].xValue.getTime():void 0,erroredTiles:a}}}function xT(e,t,r){let o=jo(e,t,0);return o.length===0?false:o.every(n=>{let a=r.get(rr(n.tierId,n.index));return a!=null&&(a.status==="loaded"||a.status==="empty")})}function db(e,t,r){return jo(e,t,0).some(n=>{let a=r.get(rr(n.tierId,n.index));return a?.status==="loaded"&&(a.data?.line.length??0)>0})}function hT(e,t){if(!e.line.length)return false;let r=e.coverage.earliestMs,o=e.coverage.latestMs;return r==null||o==null?false:r<t.endMs&&o>t.startMs}function ub({viewport:e,targetTier:t,ladder:r,store:o,overscanTiles:n,prev:a}){let i=xT(e,t,o);if(i&&db(e,t,o)){let c=jo(e,t,n),{line:l,band:u,lines:d,coverage:m}=yu(c,o);return {line:l,band:u,lines:d,renderTier:t,targetTier:t,isFallback:false,isStale:false,coverage:m}}let s=r.findIndex(c=>c.id===t.id);for(let c=s+1;c<r.length;c++){let l=r[c];if(db(e,l,o)){let u=jo(e,l,n),{line:d,band:m,lines:p,coverage:g}=yu(u,o);return {line:d,band:m,lines:p,renderTier:l,targetTier:t,isFallback:true,isStale:false,coverage:g}}}if(i){let c=jo(e,t,n),{line:l,band:u,lines:d,coverage:m}=yu(c,o);return {line:l,band:u,lines:d,renderTier:t,targetTier:t,isFallback:false,isStale:false,coverage:m}}return a?hT(a,e)?{...a,targetTier:t,isFallback:true,isStale:false}:{line:a.line,band:a.band,lines:a.lines,renderTier:null,targetTier:t,isFallback:true,isStale:true,coverage:cb}:{line:[],band:[],lines:{},renderTier:null,targetTier:t,isFallback:false,isStale:false,coverage:cb}}var pb=new Map;function mb(e,t){switch(t.type){case "reset":return new Map;case "request":{let r=new Map(e);for(let o of t.ids){let n=r.get(o);(!n||n.status==="error")&&r.set(o,{status:"loading"});}return r}case "fulfilled":{let r=new Map(e);return r.set(t.id,{status:t.data.line.length>0?"loaded":"empty",data:t.data}),r}case "failed":{let r=new Map(e);return r.set(t.id,{status:"error",error:t.error}),r}default:return e}}function gb({refs:e,refsKey:t,store:r,tier:o,viewport:n,fetchTile:a,dispatch:i,concurrency:s,maxFutureMs:c}){let l=Oe.useRef(e);l.current=e;let u=Oe.useRef(n);u.current=n;let d=Oe.useRef(new Map),m=Oe.useCallback(()=>{for(let p of d.current.values())p.ac.abort();d.current.clear();},[]);return Oe.useEffect(()=>{for(let[b,x]of d.current)x.tierId!==o.id&&(x.ac.abort(),d.current.delete(b));let p=l.current.filter(b=>{let x=rr(b.tierId,b.index),y=r.get(x);return y?y.status==="loading"&&!d.current.has(x):true}),g=(u.current.startMs+u.current.endMs)/2;p.sort((b,x)=>Math.abs((b.startMs+b.endMs)/2-g)-Math.abs((x.startMs+x.endMs)/2-g));let f=Math.max(0,s-d.current.size),h=p.slice(0,f);if(h.length!==0){i({type:"request",ids:h.map(b=>rr(b.tierId,b.index))});for(let b of h){let x=rr(b.tierId,b.index),y=new AbortController;d.current.set(x,{ac:y,tierId:b.tierId});let v=c!=null?Math.min(b.endMs,c):b.endMs;a(o,b.startMs,v,y.signal).then(S=>{y.signal.aborted||i({type:"fulfilled",id:x,data:S});}).catch(S=>{if(!y.signal.aborted){let w=S instanceof Error?S.message:String(S);i({type:"failed",id:x,error:new Error(`tile fetch failed (tile ${x}, tier ${o.id}): ${w}`)});}}).finally(()=>{d.current.delete(x);});}}},[t,r,a,o,i,s,c]),Oe.useEffect(()=>m,[m]),{abortAll:m}}var hb=1.3,CT=25e4,ST=3;function wT(e,t,r){let o=t.tileSpanMs/t.bucketMs,n=Math.max(1,Math.floor(CT/o/r));return Math.min(Math.max(1,Math.ceil(.5*e/t.tileSpanMs)),n)}function vb(e){let{fetchTile:t,ladder:r,nativeMs:o,viewport:n,widthPx:a,maxFutureMs:i,targetPointsPerPx:s=1,concurrency:c=3,tileCostSeriesCount:l=ST,resetKey:u}=e,d=Oe.useMemo(()=>({targetPointsPerPx:s,nativeMs:o}),[s,o]),[m,p]=Oe.useState(()=>$s(n.endMs-n.startMs,Math.max(1,a),r,d)),[g,f]=Oe.useReducer(mb,pb),h=Oe.useRef(n.endMs-n.startMs),b=Oe.useRef(d);Oe.useEffect(()=>{let G=n.endMs-n.startMs,K=$s(G,Math.max(1,a),r,d);if(K.id===m.id){b.current=d;return}let q=$s(G,Math.max(1,a),r,b.current).id!==K.id,j=G/h.current;(q||j>hb||j<1/hb)&&(h.current=G,b.current=d,p(K));},[n,a,r,m.id,d]);let x=n.endMs-n.startMs,y=Oe.useMemo(()=>wT(x,m,l),[x,m,l]),v=Oe.useMemo(()=>jo(n,m,y),[n,m,y]),S=Oe.useMemo(()=>v.map(G=>rr(G.tierId,G.index)).join(","),[v]),w=Oe.useRef(v);w.current=v;let N=Oe.useRef(n);N.current=n;let R=Oe.useRef(g);R.current=g;let{abortAll:k}=gb({refs:v,refsKey:S,store:g,tier:m,viewport:n,fetchTile:t,dispatch:f,concurrency:c,...i!=null?{maxFutureMs:i}:{}}),T=Oe.useRef(null),A=Oe.useRef(false);Oe.useEffect(()=>{if(!A.current){A.current=true;return}k(),T.current=null,f({type:"reset"});},[k,u]);let M=Oe.useMemo(()=>w.current.map(G=>`${rr(G.tierId,G.index)}:${g.get(rr(G.tierId,G.index))?.status??"\u2205"}`).join("|"),[S,g]),E=Oe.useMemo(()=>{let G=ub({viewport:N.current,targetTier:m,ladder:r,store:R.current,overscanTiles:y,prev:T.current});return T.current=G,G},[M,m,r,y,n.startMs,n.endMs]),P=Oe.useMemo(()=>w.current.some(G=>R.current.get(rr(G.tierId,G.index))?.status==="loading"),[M]),O=Oe.useMemo(()=>{let G=w.current[0];return G?R.current.get(rr(G.tierId,G.index))?.status==="empty":false},[M]);return {tier:m,series:E,loading:P,atDataStart:O}}function Cu(e){let{initialViewport:t,...r}=e,[o,n]=Oe.useState(t),a=vb({...r,viewport:o}),i=Oe.useCallback(c=>n(c),[]),s=Oe.useCallback(c=>n(c),[]);return {viewport:o,onViewportChange:i,jumpTo:s,...a}}var NT={sm:"gap-4 px-6 py-8",md:"gap-5 px-8 py-12",lg:"gap-6 px-10 py-16"},kT={sm:"xs",md:"sm",lg:"md"},TT={sm:gt("bodySm"),md:gt("bodySm"),lg:gt("bodyMd")},PT={sm:"h-10 w-10",md:"h-12 w-12",lg:"h-16 w-16"},RT={sm:20,md:24,lg:32},MT={center:"items-center text-center [&_.empty-state-actions]:justify-center [&_.empty-state-actions]:text-center",start:"items-start text-left [&_.empty-state-actions]:justify-start [&_.empty-state-actions]:text-left"},DT={mesh:"radial-gradient(at 20% 20%, rgba(68, 74, 225, 0.06) 0px, transparent 45%), radial-gradient(at 80% 80%, rgba(68, 74, 225, 0.045) 0px, transparent 45%), radial-gradient(at 50% 50%, rgba(68, 74, 225, 0.03) 0px, transparent 50%)","top-fade":"linear-gradient(to bottom, rgba(68, 74, 225, 0.06) 0%, rgba(68, 74, 225, 0.02) 60%, transparent 100%)",center:"radial-gradient(ellipse 600px 400px at center, rgba(68, 74, 225, 0.06) 0px, transparent 60%)",corners:"radial-gradient(at 0% 0%, rgba(68, 74, 225, 0.06) 0px, transparent 40%), radial-gradient(at 100% 100%, rgba(68, 74, 225, 0.045) 0px, transparent 40%)",bottom:"radial-gradient(ellipse 700px 300px at 50% 100%, rgba(68, 74, 225, 0.06) 0px, transparent 60%)",asymmetric:"radial-gradient(at 15% 30%, rgba(68, 74, 225, 0.06) 0px, transparent 45%), radial-gradient(at 85% 70%, rgba(68, 74, 225, 0.04) 0px, transparent 50%)"};function el({icon:e,title:t,description:r,primaryAction:o,secondaryAction:n,actions:a,size:i="md",alignment:s="center",variant:c="default",spotlightPattern:l="mesh",fullHeight:u=false,className:d}){let m=i==="sm"?"sm":"md",p=c==="spotlight",g=p?{background:DT[l]}:void 0,f=()=>a?jsxRuntime.jsx("div",{className:"empty-state-actions mt-2 flex flex-wrap items-center gap-3",children:a}):o||n?jsxRuntime.jsxs("div",{className:"empty-state-actions mt-2 flex flex-col gap-3",children:[o&&(o.href?jsxRuntime.jsx(Z,{variant:"secondary",size:m,onPress:o.onPress,isDisabled:o.isDisabled,isLoading:o.isLoading,href:o.href,children:o.label}):jsxRuntime.jsx(Z,{variant:"secondary",size:m,onPress:o.onPress,isDisabled:o.isDisabled,isLoading:o.isLoading,children:o.label})),n&&jsxRuntime.jsx(Ze,{href:n.href||"#",variant:"muted",onPress:n.onPress,className:gt("labelMd"),children:n.label})]}):null;return jsxRuntime.jsxs("section",{"data-testid":"empty-state",role:"status","aria-live":"polite",className:tailwindMerge.twMerge("flex w-full flex-col rounded-xl text-text-primary",NT[i],MT[s],u?"h-full justify-center":"",p?"relative overflow-hidden":"",d),style:g,children:[e&&jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("flex items-center justify-center rounded-full border border-border-muted bg-background-muted text-text-secondary",PT[i]),children:jsxRuntime.jsx(B,{name:e,size:RT[i]})}),jsxRuntime.jsx(Qt,{size:kT[i],tag:"h2",className:"text-text-secondary",children:t}),r&&jsxRuntime.jsx("p",{className:tailwindMerge.twMerge("max-w-xs text-text-secondary whitespace-pre-line",TT[i]),children:r}),f()]})}function BT({selectionState:e,isDisabled:t}){let r=`${Je} w-full h-full flex items-center justify-center rounded-sm forced-color-adjust-none font-semibold`,o={none:"text-text-primary group-hover:bg-background-muted group-pressed:bg-background-muted",middle:["bg-background-selected group-hover:bg-background-muted forced-colors:group-hover:bg-[Highlight]","group-invalid:group-hover:bg-feedback-error-background forced-colors:group-invalid:group-hover:bg-[Mark]","group-pressed:bg-background-muted forced-colors:group-pressed:bg-[Highlight] forced-colors:text-[HighlightText]","group-invalid:group-pressed:bg-feedback-error-background forced-colors:group-invalid:group-pressed:bg-[Mark]"].join(" "),cap:"bg-action-default text-[color:var(--color-action-default-text)] group-invalid:bg-feedback-error-border forced-colors:bg-[Highlight] forced-colors:group-invalid:bg-[Mark] forced-colors:text-[HighlightText]"},n=t?"text-text-disabled forced-colors:text-text-disabled font-light":"";return [r,o[e],n].filter(Boolean).join(" ")}function Da({errorMessage:e,...t}){return jsxRuntime.jsxs(reactAriaComponents.RangeCalendar,{...t,children:[jsxRuntime.jsx(Is,{}),jsxRuntime.jsxs(reactAriaComponents.CalendarGrid,{className:"w-full border-separate [border-spacing:0] [&_td]:p-0 [&_td]:!border-0",children:[jsxRuntime.jsx(Fs,{}),jsxRuntime.jsx(reactAriaComponents.CalendarGridBody,{children:r=>jsxRuntime.jsx(reactAriaComponents.CalendarCell,{date:r,className:"selection-start:rounded-s-full selection-end:rounded-e-full [td:last-child_&]:rounded-e-end group h-9 w-9 cursor-default text-sm border-0 outside-month:text-text-disabled invalid:selected:bg-feedback-error-background forced-colors:selected:bg-[Highlight] forced-colors:selected:text-[HighlightText] forced-colors:invalid:selected:bg-[Mark] [td:first-child_&]:rounded-s-full [&]:border-0",children:({formattedDate:o,isSelected:n,isSelectionStart:a,isSelectionEnd:i,isFocusVisible:s,isDisabled:c})=>jsxRuntime.jsx("span",{className:BT({selectionState:n&&(a||i)?"cap":n?"middle":"none",isDisabled:c}),children:o})})})]}),e&&jsxRuntime.jsx(reactAriaComponents.Text,{slot:"errorMessage",className:"text-sm text-feedback-error-text",children:e})]})}function wb(e){return e==="brand"?"primary":e==="default"||e==="secondary"||!e?"subtle":e}var zT={sm:"h-[var(--control-sm-height)] text-xs",md:"h-[var(--control-md-height)] text-sm",lg:"h-[var(--control-lg-height)] text-base",xl:"h-[var(--control-xl-height)] text-lg"},OT={sm:14,md:16,lg:18,xl:20},HT=({isSelected:e,isFirst:t,isLast:r,isDisabled:o,variant:n="subtle"})=>{let a=wb(n),i=a==="primary"?"focus-visible:outline-action-primary":"focus-visible:outline-[color:var(--color-action-secondary-text)]";return a==="subtle"?tailwindMerge.twMerge(Je(),"focus-visible:outline-[color:var(--color-action-secondary-text)]","px-3 text-center transition cursor-pointer forced-color-adjust-none -ml-px first:ml-0 flex items-center justify-center h-full gap-2",e?"bg-background-muted text-text-primary font-medium forced-colors:!bg-[Highlight] forced-colors:!text-[HighlightText]":"text-text-secondary hover:bg-background-hover pressed:bg-background-hover forced-colors:!bg-[ButtonFace] forced-colors:!text-[ButtonText]",!r&&"border-r border-border-muted",o&&"bg-background-muted text-text-disabled forced-colors:!bg-[ButtonFace] forced-colors:!text-[GrayText] border-border-muted forced-colors:border-[GrayText] cursor-not-allowed"):tailwindMerge.twMerge(Je(),i,"px-3 text-center transition cursor-pointer forced-color-adjust-none -ml-px first:ml-0 flex items-center justify-center h-full gap-2",e?"bg-action-primary text-[color:var(--color-action-primary-text)] font-semibold forced-colors:!bg-[Highlight] forced-colors:!text-[HighlightText]":"text-text-secondary hover:bg-background-hover pressed:bg-background-hover forced-colors:!bg-[ButtonFace] forced-colors:!text-[ButtonText] hover:font-semibold",!r&&"border-r border-border-muted",o&&"bg-background-muted text-text-disabled forced-colors:!bg-[ButtonFace] forced-colors:!text-[GrayText] border-border-muted forced-colors:border-[GrayText] cursor-not-allowed")};function rl({options:e,value:t,onChange:r,size:o="md",className:n,isDisabled:a,variant:i="subtle",iconOnly:s=false,"aria-label":c}){return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("inline-flex overflow-hidden rounded-[var(--control-border-radius)]",wb(i)==="subtle"?"border border-border-muted":"border-2 border-border-muted",zT[o],n),role:"group","aria-label":c,children:e.map((l,u)=>{let d=s&&!!l.icon;return jsxRuntime.jsxs(reactAriaComponents.ToggleButton,{isSelected:t===l.id,onChange:()=>r(l.id),className:HT({isSelected:t===l.id,isFirst:u===0,isLast:u===e.length-1,isDisabled:a,variant:i}),isDisabled:a,"aria-label":l.label,children:[l.icon&&jsxRuntime.jsx(B,{name:l.icon,size:OT[o]}),d?jsxRuntime.jsx("span",{className:"sr-only",children:l.label}):jsxRuntime.jsx("span",{className:"inline-flex flex-col items-center after:content-[attr(data-label)] after:font-semibold after:h-0 after:overflow-hidden after:invisible","data-label":l.label,children:l.label})]},l.id)})})}function YT(e){return e instanceof Date&&!Number.isNaN(e.getTime())}function ku(e){return YT(e)?e:(console.warn("Invalid date detected in TimeControls, using fallback:",e),new Date)}var Rb={FIVE_MINUTES:0,FIFTEEN_MINUTES:1,HOUR:2,DAY:3,WEEK:4,MONTH:5,YEAR:6},JT=[{id:"FIFTEEN_MINUTES",label:"15m"},{id:"HOUR",label:"1h"},{id:"DAY",label:"1d"},{id:"WEEK",label:"1w"}];function ol({dateRange:e,onDateRangeChange:t,windowSize:r,onWindowSizeChange:o,showWindowSize:n=true,showRangeSelector:a=true,allowDatePicker:i=false,lockWindowSize:s=false,restrictToSingleDay:c=false,presetRanges:l=[],windowSizeOptions:u=JT,autoAdjustWindowSize:d=false,className:m}){let[p,g]=Oe.useState(0),f=Oe.useRef(null),[h,b]=Oe.useState(false),x=L=>{let U=(L.before.getTime()-L.after.getTime())/(1e3*60*60);return U<=24?"FIFTEEN_MINUTES":U<=72||U<=168?"HOUR":("DAY")};Oe.useEffect(()=>{if(d&&!h&&o){let L=x(e);o(L);}},[e,d,h,o]);let y=L=>l.find(D=>{let U=D.getRange();return Math.abs(U.after.getTime()-L.after.getTime())<1e3*60*60*24&&Math.abs(U.before.getTime()-L.before.getTime())<1e3*60*60*24})?.id,[v,S]=Oe.useState(()=>y(e)),w=ku(e.after),N=ku(e.before),R=new Date(N);R.setDate(R.getDate()-1);let k={start:date.fromDate(w,date.getLocalTimeZone()),end:date.fromDate(R,date.getLocalTimeZone())};Oe.useEffect(()=>{let L=new ResizeObserver(D=>{for(let U of D)g(U.contentRect.width);});return f.current&&L.observe(f.current),()=>{f.current&&L.unobserve(f.current);}},[]);let T=[...u].sort((L,D)=>Rb[L.id]-Rb[D.id]),A=L=>{let D=L.toString(),U=l.find(I=>I.id===D);U&&(S(D),b(false),t(U.getRange(),{presetId:D}));},M=L=>{if(L?.start&&L?.end){S(void 0);let D=new Date(L.start.year,L.start.month-1,L.start.day,0,0,0,0),U=new Date(L.end.year,L.end.month-1,L.end.day+1,0,0,0,0);t({after:D,before:U});}},E=L=>{if(L){S(void 0);let D=new Date(L.year,L.month-1,L.day,0,0,0,0),U=new Date(L.year,L.month-1,L.day+1,0,0,0,0);t({after:D,before:U});}},P=L=>{o&&(b(true),o(L.toString()));},O=()=>{if(l.length>0){let L=l[0];S(L.id),b(false),t(L.getRange(),{presetId:L.id});}},G=(L,D=0)=>{let U=ku(L),I=new Date(U);return D!==0&&I.setDate(I.getDate()+D),I.toLocaleDateString("en-US")},K=T.map(L=>({id:L.id,label:L.label,value:L.id})),W=l.map(L=>({id:L.id,label:L.label,value:L.id})),q=s?jsxRuntime.jsx("div",{className:"flex items-center rounded-md border border-border-muted bg-background-muted px-3 py-2 text-sm text-text-secondary",children:T.find(L=>L.id===r)?.label||r}):jsxRuntime.jsx(bo,{className:"w-full md:w-auto",selectedKey:r,onSelectionChange:P,items:K,size:"md","aria-label":"Select Window Size",children:L=>jsxRuntime.jsx(_t,{id:L.id,"aria-label":L.label,size:"md",children:L.label},L.id)}),j=c?jsxRuntime.jsx("div",{className:"flex items-center",children:jsxRuntime.jsxs(reactAriaComponents.DialogTrigger,{children:[jsxRuntime.jsxs(Z,{className:"border-l pl-2 pr-2 hover:border-border-default hover:bg-background-muted hover:text-text-link-hover",variant:"secondary",children:[jsxRuntime.jsx(B,{name:"CalendarBlank",size:18}),jsxRuntime.jsx("span",{className:"ml-2 hidden md:block",children:G(e.after)})]}),jsxRuntime.jsx(lt,{className:"w-auto p-3",disableGroup:true,children:jsxRuntime.jsx(ya,{"aria-label":"Select date",value:date.parseDate(w.toISOString().split("T")[0]),onChange:E})})]})}):jsxRuntime.jsxs("div",{className:"flex items-center",children:[jsxRuntime.jsxs(reactAriaComponents.DialogTrigger,{children:[jsxRuntime.jsxs(Z,{className:"rounded-r-none border-l pl-2 pr-2 hover:border-border-default hover:bg-background-muted hover:text-text-link-hover",variant:"secondary",children:[jsxRuntime.jsx(B,{name:"CalendarBlank",size:18}),!v&&jsxRuntime.jsx("span",{className:"ml-2 hidden md:block",children:`${G(e.after)} - ${G(e.before,-1)}`})]}),jsxRuntime.jsx(lt,{className:"w-auto p-3",disableGroup:true,children:jsxRuntime.jsx(Da,{"aria-label":"Date range calendar",value:k,onChange:M})})]}),!v&&jsxRuntime.jsx(Z,{variant:"ghost",size:"md",onPress:O,children:"Reset"})]}),Q=p<600;return jsxRuntime.jsx("div",{ref:f,className:tailwindMerge.twMerge("flex w-full flex-wrap items-center justify-between gap-4",m),children:Q?jsxRuntime.jsxs("div",{className:"flex w-full justify-between",children:[jsxRuntime.jsxs("div",{className:"flex items-center",children:[i&&j,a&&v!==void 0&&jsxRuntime.jsx(bo,{selectedKey:v,onSelectionChange:A,items:W,size:"md","aria-label":"Select Date Range",children:L=>jsxRuntime.jsx(_t,{id:L.id,size:"md",children:L.label},L.id)})]}),jsxRuntime.jsx("div",{className:"flex items-center",children:n&&r&&q})]}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsxs("div",{className:"flex items-center gap-4",children:[i&&j,a&&v!==void 0&&jsxRuntime.jsx(rl,{options:l.map(L=>({id:L.id,label:L.label})),value:v,onChange:A,size:"sm",variant:"secondary","aria-label":"Select Date Range"})]}),jsxRuntime.jsx("div",{className:"flex items-center",children:n&&r&&q})]})})}var ZT=1440*60*1e3,_T=6e4,An=(e,t)=>({startMs:t-e*ZT,endMs:t}),Ea=e=>({after:new Date(e.startMs),before:new Date(e.endMs)});function Mb({source:e,initialRange:t,viewportEnd:r,yFormatter:o,yDomain:n,referenceLines:a,emptyState:i,presetRanges:s,tierToWindow:c,windowSizeOptions:l,height:u=360,hint:d,dataBounds:m,children:p}){let[g,f]=Oe.useState(900),h=m?.endMs,[b,x]=Oe.useState(()=>h??Date.now());Oe.useEffect(()=>{if(h!=null){x(h);return}x(Date.now());let fe=setInterval(()=>x(Date.now()),_T);return ()=>clearInterval(fe)},[h]);let y=r?.getTime()??h,v=t?.days??30,S=Oe.useMemo(()=>An(v,y??Date.now()),[v,y]),w=b,N=Oe.useMemo(()=>({startMs:m?.startMs??0,endMs:b}),[m?.startMs,b]),R=fe=>{let re=Math.min(fe.endMs-fe.startMs,N.endMs-N.startMs),ce=Math.max(Math.min(fe.endMs,N.endMs),N.startMs+re);return {startMs:ce-re,endMs:ce}},[k,T]=Oe.useState(null),[A,M]=Oe.useState(null),E=k??S,P=Cu({fetchTile:e.fetchTile,ladder:e.ladder,nativeMs:e.nativeMs,initialViewport:S,widthPx:g,maxFutureMs:w,tileCostSeriesCount:e.tileCostSeriesCount,resetKey:e.resetKey}),O=Oe.useMemo(()=>[{id:"5y",label:"5 years",getRange:()=>Ea(An(5*365,y??Date.now()))},{id:"year",label:"Year",getRange:()=>Ea(An(365,y??Date.now()))},{id:"month",label:"Month",getRange:()=>Ea(An(30,y??Date.now()))},{id:"week",label:"Week",getRange:()=>Ea(An(7,y??Date.now()))},{id:"day",label:"24h",getRange:()=>Ea(An(1,y??Date.now()))}],[y]),G=s??O,K=()=>{if(A&&"presetId"in A){let fe=G.find(re=>re.id===A.presetId);if(fe){let re=fe.getRange();return {startMs:re.after.getTime(),endMs:re.before.getTime()}}}return A&&"range"in A?A.range:An(v,y??Date.now())},{line:W,coverage:q,renderTier:j,targetTier:Q,isFallback:L,isStale:D}=P.series,U=j?j.bucketMs*1.5:0,I=fe=>fe==null?"\u2014":new Date(fe).toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"}),C=(fe,re)=>{let ce=re-fe<1728e5?{month:"short",day:"numeric",hour:"numeric",minute:"2-digit"}:{month:"short",day:"numeric",year:"numeric"},xe=new Intl.DateTimeFormat("en-US",ce);return `${xe.format(new Date(fe))} \u2013 ${xe.format(new Date(re))}`},F=P.viewport.startMs!==E.startMs||P.viewport.endMs!==E.endMs,H=D||P.loading&&q.earliestMs==null,Y=(P.viewport.endMs-P.viewport.startMs)*.03,te=!H&&q.earliestMs!=null&&q.earliestMs>P.viewport.startMs+Y,de=!P.loading&&q.earliestMs==null&&q.latestMs==null&&W.length===0&&!D,_=p({series:P.series,gapMs:U}),ae=Oe.isValidElement(_)&&_.type===Oe.Fragment?_.props.children:_;return jsxRuntime.jsxs("div",{className:"flex flex-col gap-3",children:[jsxRuntime.jsx(ol,{dateRange:Ea(P.viewport),onDateRangeChange:(fe,re)=>{let ce=R({startMs:fe.after.getTime(),endMs:fe.before.getTime()});M(re?.presetId?{presetId:re.presetId}:{range:ce}),T(ce),P.jumpTo(ce);},windowSize:c[Q.id],windowSizeOptions:l,lockWindowSize:true,presetRanges:G}),jsxRuntime.jsxs("div",{className:"flex flex-wrap items-center gap-3 text-xs text-text-secondary",children:[jsxRuntime.jsxs("span",{children:["Window"," ",jsxRuntime.jsx("span",{className:"font-medium text-text-primary",children:C(P.viewport.startMs,P.viewport.endMs)})]}),jsxRuntime.jsx("span",{className:"text-text-tertiary",children:"\u2022"}),jsxRuntime.jsxs("span",{children:["Resolution ",jsxRuntime.jsx("span",{className:"font-medium text-text-primary",children:j?.id??Q.id}),L&&jsxRuntime.jsxs("span",{className:"text-text-tertiary",children:[" \xB7 loading ",Q.id]})]}),P.loading&&jsxRuntime.jsx("span",{className:"text-text-tertiary",children:"loading\u2026"}),te&&jsxRuntime.jsxs("span",{className:"text-text-tertiary",children:["showing available history from ",I(q.earliestMs)]}),!te&&!H&&P.atDataStart&&jsxRuntime.jsx("span",{className:"text-text-tertiary",children:"no earlier data loaded"}),F&&jsxRuntime.jsx(Z,{variant:"ghost",size:"sm",onPress:()=>{let fe=R(K());T(fe),P.jumpTo(fe);},children:"\u27F2 Reset"})]}),jsxRuntime.jsx("div",{className:"relative overflow-hidden rounded-md border border-border-subtle",style:{height:u},children:de?jsxRuntime.jsx(el,{title:i.title,description:i.description}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(_s,{viewport:P.viewport,panBounds:N,onViewportChange:P.onViewportChange,onPlotWidthChange:f,...o&&{yFormatter:o},...n&&{yDomain:n},...a&&{referenceLines:a},children:ae}),P.loading&&jsxRuntime.jsx("div",{className:"pointer-events-none absolute inset-x-0 top-0 h-0.5 animate-pulse bg-[var(--color-viz-categorical-1)] opacity-60"})]})}),d&&jsxRuntime.jsx("p",{className:"text-xs text-text-tertiary",children:d})]})}function wi({count:e,label:t="results",isLoading:r=false,className:o=""}){if(r)return jsxRuntime.jsx("div",{className:`flex items-center ${o}`,children:jsxRuntime.jsx(J,{width:80,height:16})});let n=t.endsWith("s")?t.slice(0,-1):t,a=e===1?n:t;return jsxRuntime.jsxs("div",{className:`text-sm text-text-secondary whitespace-nowrap ${o}`,children:[e.toLocaleString()," ",a]})}var n1=e=>{let t=zt({isInvalid:e.isInvalid,isDisabled:e.isDisabled,isFocused:e.isFocused,transparent:e.transparent,size:e.size}),r=[e.showSearchIcon?"":"pl-3",e.isClearable&&e.hasValue||e.isPassword?"pr-8":"pr-3"].join(" ");return tailwindMerge.twMerge(t,r,e.className)};function Lr({label:e,description:t,errorMessage:r,size:o="md",tooltip:n,isRequired:a,transparent:i,showSearchIcon:s,isClearable:c,onClear:l,type:u,validationResult:d,reserveErrorSpace:m=true,isLoading:p=false,descriptionPlacement:g="below",...f}){let[h,b]=Oe__namespace.default.useState(false),{isFocused:x,handleFocus:y,handleBlur:v}=Pr(),S=u==="password",w=Ns(p,300);return jsxRuntime.jsx(reactAriaComponents.TextField,{...f,isRequired:a,className:ke(f.className,"group flex flex-col"),children:({isDisabled:N,isInvalid:R})=>jsxRuntime.jsxs("div",{className:"flex flex-col",children:[e&&jsxRuntime.jsx(ze,{size:o,tooltip:n,description:g==="tooltip"||g==="inline"?t:void 0,descriptionPlacement:g,isRequired:a,children:e}),jsxRuntime.jsxs(yt,{children:[s&&jsxRuntime.jsx("div",{className:"pointer-events-none absolute top-1/2 -translate-y-1/2 transform flex items-center z-10",style:{left:9},children:(()=>{let k={sm:14,md:16,lg:18,xl:20}[o];return w?jsxRuntime.jsx(go,{size:k,color:"text-text-secondary"}):jsxRuntime.jsx(B,{name:"MagnifyingGlass",size:k,className:`transition-colors ${x?"text-action-brand":"text-text-secondary"}`})})()}),jsxRuntime.jsx(Ts,{size:o,disabled:N,type:S?h?"text":"password":u,name:f.name,autoComplete:f.autoComplete,value:f.value,defaultValue:f.defaultValue,placeholder:f.placeholder,onFocus:k=>y(k,f.onFocus),onBlur:k=>v(k,f.onBlur),onChange:k=>f.onChange?.(k.target.value),style:s?{paddingLeft:{sm:28,md:32,lg:36,xl:37}[o]}:void 0,className:n1({isInvalid:R,isDisabled:N,isFocused:x,size:o,transparent:i,showSearchIcon:s,isClearable:c,hasValue:!!f.value,isPassword:S,className:typeof f.className=="string"?f.className:void 0})}),c&&f.value&&!N&&jsxRuntime.jsx(ii,{onClick:()=>{l?l():f.onChange&&f.onChange("");},size:o}),S&&!N&&jsxRuntime.jsx("button",{type:"button",onClick:()=>b(!h),className:"absolute right-3 top-1/2 -translate-y-1/2 transform text-text-secondary hover:text-text-primary","aria-label":h?"Hide password":"Show password",onMouseDown:k=>{k.preventDefault(),k.stopPropagation();},children:jsxRuntime.jsx(B,{name:h?"EyeSlash":"Eye",size:o==="sm"?16:20,className:"text-text-primary"})})]}),m?jsxRuntime.jsx("div",{className:"mt-1 min-h-[20px]",children:typeof r=="string"?jsxRuntime.jsx(be,{size:o,children:r}):typeof r=="function"&&d?jsxRuntime.jsx(be,{size:o,children:r(d)}):t&&g==="below"?jsxRuntime.jsx(Te,{size:o,children:t}):null}):jsxRuntime.jsx(jsxRuntime.Fragment,{children:typeof r=="string"?jsxRuntime.jsx(be,{size:o,className:"mt-1",children:r}):typeof r=="function"&&d?jsxRuntime.jsx(be,{size:o,className:"mt-1",children:r(d)}):t&&g==="below"?jsxRuntime.jsx(Te,{size:o,className:"mt-1",children:t}):null})]})})}function Fn({value:e,onChange:t,onClear:r,placeholder:o="Search...",size:n="sm",className:a="",isLoading:i=false}){return jsxRuntime.jsx("div",{className:`flex-1 min-w-0 sm:max-w-sm ${a}`,children:jsxRuntime.jsx(Lr,{value:e,onChange:t,placeholder:o,showSearchIcon:true,isClearable:!!e&&!!r,onClear:r,size:n,"aria-label":o,reserveErrorSpace:false,isLoading:i})})}function Ni({value:e,options:t,onChange:r,direction:o,onDirectionChange:n,showLabel:a=true,size:i="sm",className:s="",compact:c=false}){let[l,u]=Oe.useState(false),d=o!==void 0&&n!==void 0,m=t.find(p=>p.value===e);return c?jsxRuntime.jsxs("div",{className:`flex items-center gap-2 ${s}`,children:[jsxRuntime.jsx(Z,{variant:"secondary",size:i,icon:"ArrowsDownUp","aria-label":`Sort by: ${m?.label||"Select"}`,onPress:()=>u(true)}),jsxRuntime.jsx(ct,{isOpen:l,onClose:()=>u(false),title:"Sort by",contentPadding:false,children:jsxRuntime.jsx(reactAriaComponents.ListBox,{items:t.map(p=>({id:p.value,label:p.label,value:p.value})),className:"w-full bg-background-surface p-0 outline-0 [&_[role=option]]:border-b [&_[role=option]]:border-border-default [&_[role=option]:last-child]:border-0 [&_[role=option]]:!px-6 [&_[role=option]]:!py-4 [&_[role=option]]:rounded-none",selectionMode:"single",selectedKeys:e?[e]:[],onSelectionChange:p=>{let g=Array.from(p)[0];g!=null&&(r(g),u(false));},children:p=>jsxRuntime.jsx(_t,{id:p.id,textValue:p.label,children:jsxRuntime.jsx("span",{className:"overflow-hidden text-ellipsis whitespace-nowrap min-w-0 flex-1",children:p.label})},p.id)})})]}):jsxRuntime.jsxs("div",{className:`flex items-center gap-2 ${s}`,children:[a&&jsxRuntime.jsx("span",{className:"text-sm text-text-secondary whitespace-nowrap",children:"Sort by:"}),jsxRuntime.jsx(bo,{selectedKey:e,onSelectionChange:p=>r(p),size:i,className:"min-w-32",items:t.map(p=>({id:p.value,label:p.label,value:p.value})),renderItem:p=>p.label,"aria-label":"Sort by",reserveErrorSpace:false}),d&&jsxRuntime.jsx(Z,{variant:"ghost",size:i,onClick:()=>n(o==="asc"?"desc":"asc"),"aria-label":`Sort ${o==="asc"?"descending":"ascending"}`,className:"p-1.5",children:o==="asc"?jsxRuntime.jsx(lucideReact.ArrowUp,{className:"w-4 h-4"}):jsxRuntime.jsx(lucideReact.ArrowDown,{className:"w-4 h-4"})})]})}function Ib({search:e,searchMobileMode:t="expanded",filters:r=[],onRemoveFilter:o,onClearAllFilters:n,onManageFilters:a,exportControl:i,maxVisibleFilterChips:s=3,sort:c,resultsCount:l,leftControls:u,onManageColumns:d,columnPicker:m,customControls:p,actions:g,interactionMode:f="auto",sticky:h,stickyTop:b="0",zIndex:x=10,className:y="",style:v}){let S=r.length>0;if(!(e||S||a||c||l||u||d||m||p||g||i))return null;let N=h?"sticky bg-background-surface":"",R=h?{top:b,zIndex:x}:{};return jsxRuntime.jsxs("div",{className:`@container flex flex-col gap-3 bg-background-surface py-3 border-b border-border-default ${N} ${y}`,style:{...v,...R},children:[jsxRuntime.jsxs("div",{className:"hidden @[640px]:flex @[640px]:items-center @[640px]:justify-between @[640px]:gap-4",children:[jsxRuntime.jsxs("div",{className:"flex items-center gap-3 flex-1 min-w-0",children:[u,u&&l&&jsxRuntime.jsx("div",{className:"h-4 w-px bg-border-default"}),l&&jsxRuntime.jsx(wi,{count:l.count,label:l.label,isLoading:l.isLoading}),l&&c&&jsxRuntime.jsx("div",{className:"h-4 w-px bg-border-default"}),c&&jsxRuntime.jsx(Ni,{value:c.value,options:c.options,onChange:c.onChange,showLabel:c.showLabel,direction:c.direction,onDirectionChange:c.onDirectionChange}),d?jsxRuntime.jsx(Z,{variant:"secondary",size:"sm",icon:"Columns",onClick:d,children:"Columns"}):m,S&&o&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[r.slice(0,s).map(k=>jsxRuntime.jsxs(eo,{variant:"primary",size:"sm",onRemove:()=>o(k.id),isRemovable:true,children:[k.label,": ",k.value]},k.id)),r.length>s&&a&&jsxRuntime.jsxs(Z,{variant:"ghost",size:"sm",onClick:a,className:"text-text-secondary hover:text-text-primary whitespace-nowrap",children:["+",r.length-s," more"]}),n&&jsxRuntime.jsx(Z,{variant:"ghost",size:"sm",onClick:n,className:"text-text-secondary hover:text-text-primary whitespace-nowrap",children:"Clear all"})]})]}),jsxRuntime.jsx("div",{className:"flex items-center gap-3 flex-shrink-0",children:p||jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[g&&g.items.length>0&&jsxRuntime.jsx(jsxRuntime.Fragment,{children:g.items.map(k=>jsxRuntime.jsx(Z,{variant:k.variant||"secondary",size:"sm",icon:k.icon,onPress:k.onClick,isDisabled:k.disabled,children:k.label},k.id))}),e&&jsxRuntime.jsx("div",{className:"w-64",children:jsxRuntime.jsx(Fn,{value:e.value,onChange:e.onChange,onClear:e.onClear,placeholder:e.placeholder,isLoading:e.isLoading})}),a&&jsxRuntime.jsx(Z,{variant:"secondary",size:"sm",icon:"Sliders",badgeNumber:r.length>0?r.length:void 0,onClick:a,children:"Filters"}),i&&jsxRuntime.jsx(Z,{variant:"secondary",size:"sm",icon:"Upload",onClick:i.onClick,isDisabled:i.isDisabled,children:i.label})]})})]}),jsxRuntime.jsxs("div",{className:"@[640px]:hidden",children:[jsxRuntime.jsx("div",{className:"flex flex-col gap-3 mb-3",children:jsxRuntime.jsx("div",{className:"flex items-center gap-3",children:p?jsxRuntime.jsx("div",{className:"flex-1",children:p}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[g&&g.items.length>0&&jsxRuntime.jsx(ga,{items:g.items.map(k=>({id:k.id,name:k.label,iconName:k.icon,variant:k.variant==="destructive"?"destructive":"primary",disabled:k.disabled,onAction:k.onClick})),align:"left",size:"sm",children:jsxRuntime.jsx(Z,{variant:"secondary",size:"sm",icon:"DotsThreeVertical","aria-label":g.menuLabel||"Actions"})}),e&&jsxRuntime.jsx("div",{className:"flex-1",children:jsxRuntime.jsx(Fn,{value:e.value,onChange:e.onChange,onClear:e.onClear,placeholder:e.placeholder,isLoading:e.isLoading})}),a&&jsxRuntime.jsx(Z,{variant:"secondary",size:"sm",icon:"Sliders",badgeNumber:r.length>0?r.length:void 0,onClick:a,"aria-label":`Filters${r.length>0?` (${r.length} active)`:""}`}),i&&jsxRuntime.jsx(Z,{variant:"secondary",size:"sm",icon:"Upload",onClick:i.onClick,isDisabled:i.isDisabled,children:i.label})]})})}),jsxRuntime.jsxs("div",{className:"flex items-center justify-between gap-3",children:[jsxRuntime.jsxs("div",{className:"flex items-center gap-3",children:[u,l&&jsxRuntime.jsx(wi,{count:l.count,label:l.label,isLoading:l.isLoading})]}),jsxRuntime.jsx("div",{className:"flex items-center gap-2",children:c&&jsxRuntime.jsx(Ni,{value:c.value,options:c.options,onChange:c.onChange,showLabel:false,direction:c.direction,onDirectionChange:c.onDirectionChange,compact:f!=="desktop"})})]})]})]})}function Fb({filters:e,onRemove:t,onClearAll:r,onManageFilters:o,maxVisibleChips:n=3,mode:a="chips",showManageButton:i=true,size:s="sm",className:c=""}){let l=e.length>0,u=e.slice(0,n),d=Math.max(0,e.length-n),m=d>0,p=a==="button"&&!!o,g=a==="chips"&&i&&!!o;if(!l&&!p&&!g)return null;let f=p&&jsxRuntime.jsxs(Z,{variant:"secondary",size:s,onClick:o,className:"whitespace-nowrap",children:[e.length," ",e.length===1?"filter":"filters"]}),h=jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[g&&jsxRuntime.jsx(Z,{variant:"secondary",size:s,icon:"Sliders",onClick:o,className:"whitespace-nowrap",children:"Filters"}),l&&u.map(x=>jsxRuntime.jsxs(eo,{variant:"secondary",size:s,onRemove:()=>t(x.id),isRemovable:true,children:[x.label,": ",x.value]},x.id)),l&&m&&o&&jsxRuntime.jsxs(Z,{variant:"ghost",size:s,onClick:o,className:"text-text-secondary hover:text-text-primary whitespace-nowrap",children:["+",d," more"]}),l&&r&&jsxRuntime.jsx(Z,{variant:"ghost",size:s,onClick:r,className:"text-text-secondary hover:text-text-primary whitespace-nowrap",children:"Clear all"})]}),b=a==="button"?f:h;return jsxRuntime.jsx("div",{className:`flex flex-wrap items-center gap-2 ${c}`,children:b})}function u1(e,t,r){return {field:e,operator:t,value:r}}function p1(e,t="AND"){return {logic:t,conditions:e}}function ki(){return {logic:"AND",conditions:[]}}function sl(e){return !e||e.conditions.length===0?true:e.conditions.every(t=>"conditions"in t?sl(t):false)}function m1(e,t){if(!e)return [];let r=new Map(t?.map(i=>[i.field,i])),o=new Map;function n(i){if("conditions"in i)i.conditions.forEach(s=>n(s));else {let s=o.get(i.field)||[];s.push(i),o.set(i.field,s);}}e.conditions.forEach(i=>n(i));let a=[];for(let[i,s]of o.entries()){let c=r.get(i),l=c?.label||i,u=[],d=[],m=[];for(let p of s)p.operator==="in"&&Array.isArray(p.value)?u.push(...p.value):p.operator==="eq"?typeof p.value!="boolean"&&!Array.isArray(p.value)?u.push(p.value):m.push(p):["gte","gt","lte","lt"].includes(p.operator)?d.push({operator:p.operator,value:typeof p.value=="boolean"||Array.isArray(p.value)?String(p.value):p.value}):m.push(p);if(u.length>0){let g=Array.from(new Set(u)).map(f=>c?.values?.find(b=>String(b.value)===String(f))?.label??f);a.push({id:`${i}-in`,label:l,value:g.join(", ")});}if(d.length>0){let p=d.find(f=>f.operator==="gte"||f.operator==="gt"),g=d.find(f=>f.operator==="lte"||f.operator==="lt");if(p&&g){let f=p.operator==="gte"?"\u2265":">",h=g.operator==="lte"?"\u2264":"<";a.push({id:`${i}-range`,label:l,value:`${f} ${p.value} and ${h} ${g.value}`});}else for(let f of d){let h;f.operator==="gte"?h="\u2265":f.operator==="gt"?h=">":f.operator==="lte"?h="\u2264":h="<",a.push({id:`${i}-${f.operator}`,label:l,value:`${h} ${f.value}`});}}for(let p of m){let g;p.operator==="neq"?g=`\u2260 ${p.value}`:p.operator==="contains"?g=`contains "${p.value}"`:p.operator==="startsWith"?g=`starts with "${p.value}"`:p.operator==="endsWith"?g=`ends with "${p.value}"`:g=String(p.value),a.push({id:`${i}-${p.operator}`,label:l,value:g});}}return a}function Zo(e,t){let r=e||ki();return {...r,conditions:[...r.conditions,t]}}function Bn(e,t){if(!e)return ki();let r=e.conditions.filter(o=>"conditions"in o?Bn(o,t).conditions.length>0:o.field!==t);return {...e,conditions:r}}function Vn(e){if(!e)return [];let t=new Set;function r(o){"conditions"in o?o.conditions.forEach(r):t.add(o.field);}return e.conditions.forEach(r),Array.from(t)}function Vb({label:e,description:t,errorMessage:r,size:o="md",tooltip:n,isRequired:a,isDisabled:i,isInvalid:s,showCalendar:c=true,reserveErrorSpace:l=true,validationResult:u,className:d,...m}){let[p,g]=Oe.useState(false),f=h=>{m.onChange&&h&&m.onChange(h),g(false);};return jsxRuntime.jsxs(reactAriaComponents.DateField,{...m,isDisabled:i,isRequired:a,isInvalid:s,className:ke(d,"flex flex-col gap-1"),children:[e&&jsxRuntime.jsx(ze,{size:o,tooltip:n,isRequired:a,children:e}),jsxRuntime.jsx(yt,{children:jsxRuntime.jsxs("div",{className:"relative w-full",children:[jsxRuntime.jsx(Ti,{size:o,isDisabled:i,isInvalid:s,hasCalendar:c}),c&&!i&&jsxRuntime.jsxs(reactAriaComponents.DialogTrigger,{isOpen:p,onOpenChange:g,children:[jsxRuntime.jsx(Z,{variant:"unstyled",className:"absolute right-2 top-1/2 -translate-y-1/2 flex h-8 w-8 items-center justify-center rounded hover:bg-background-hover text-text-secondary hover:text-text-primary transition-colors","aria-label":"Open calendar",children:jsxRuntime.jsx(B,{name:"Calendar",size:18})}),jsxRuntime.jsx(reactAriaComponents.Popover,{className:"bg-background-surface rounded-lg border border-border-default shadow-xl",children:jsxRuntime.jsx(reactAriaComponents.Dialog,{className:"p-4 outline-none",children:jsxRuntime.jsx(ya,{value:m.value,onChange:f,minValue:m.minValue,maxValue:m.maxValue,isDisabled:i,isReadOnly:m.isReadOnly,isDateUnavailable:m.isDateUnavailable})})})]})]})}),l?jsxRuntime.jsx("div",{className:"mt-1 min-h-[20px]",children:typeof r=="string"?jsxRuntime.jsx(be,{size:o,children:r}):typeof r=="function"&&u?jsxRuntime.jsx(be,{size:o,children:r(u)}):t?jsxRuntime.jsx(Te,{size:o,children:t}):null}):jsxRuntime.jsx(jsxRuntime.Fragment,{children:typeof r=="string"?jsxRuntime.jsx(be,{size:o,className:"mt-1",children:r}):typeof r=="function"&&u?jsxRuntime.jsx(be,{size:o,className:"mt-1",children:r(u)}):t?jsxRuntime.jsx(Te,{size:o,className:"mt-1",children:t}):null})]})}function C1({isPlaceholder:e,isDisabled:t,size:r="md"}){return tailwindMerge.twMerge("inline-block box-content px-0.5 rounded outline-none tabular-nums text-center transition-colors",{sm:"text-base md:text-xs",md:"text-base md:text-sm",lg:"text-base",xl:"text-lg"}[r],e?"text-text-disabled italic":"text-text-primary",t?"text-text-disabled cursor-not-allowed":"cursor-text",!t&&"hover:bg-background-hover","data-[focused]:bg-background-selected data-[focused]:text-text-primary")}function Ti({size:e="md",isDisabled:t,isInvalid:r,hasCalendar:o,className:n,...a}){return jsxRuntime.jsx(reactAriaComponents.DateInput,{className:tailwindMerge.twMerge(zo({isInvalid:r,isDisabled:t}),"px-3 py-2 flex items-center gap-0.5 w-full",o&&"pr-10",n),...a,children:i=>jsxRuntime.jsx(reactAriaComponents.DateSegment,{segment:i,className:C1({isPlaceholder:i.isPlaceholder,isDisabled:!i.isEditable||t,size:e})})})}function ll({label:e,description:t,errorMessage:r,...o}){return jsxRuntime.jsxs(reactAriaComponents.DateRangePicker,{...o,className:ke(o.className,"group flex flex-col gap-1"),children:[e&&jsxRuntime.jsx(ze,{children:e}),jsxRuntime.jsxs(vf,{className:"w-auto min-w-[208px]",children:[jsxRuntime.jsx(Ti,{slot:"start",className:"px-2 py-1.5 text-sm"}),jsxRuntime.jsx("span",{"aria-hidden":"true",className:"text-text-primary group-disabled:text-text-disabled forced-colors:text-[ButtonText] group-disabled:forced-colors:text-[GrayText]",children:"\u2013"}),jsxRuntime.jsx(Ti,{slot:"end",className:"flex-1 px-2 py-1.5 text-sm"}),jsxRuntime.jsx(Z,{variant:"icon",className:"mr-1 w-6 rounded outline-offset-0",children:jsxRuntime.jsx(lucideReact.CalendarIcon,{"aria-hidden":true,className:"h-4 w-4"})})]}),t&&jsxRuntime.jsx(Te,{children:t}),typeof r=="string"?jsxRuntime.jsx(be,{children:r}):null,jsxRuntime.jsx(lt,{children:jsxRuntime.jsx(Da,{})})]})}var D1=e=>{let t=zt({isInvalid:e.isInvalid,isDisabled:e.isDisabled,isFocused:e.isFocused,transparent:e.transparent,size:e.size});return tailwindMerge.twMerge(t,"pr-9","[appearance:textfield] [&::-webkit-outer-spin-button]:appearance-none [&::-webkit-inner-spin-button]:appearance-none",e.className)};function Pi({label:e,description:t,errorMessage:r,size:o="md",tooltip:n,isRequired:a,transparent:i,validationResult:s,reserveErrorSpace:c=true,descriptionPlacement:l="below",...u}){let d=Oe.useId(),{isFocused:m,handleFocus:p,handleBlur:g}=Pr();return jsxRuntime.jsx(reactAriaComponents.NumberField,{...u,id:d,isRequired:a,className:ke(u.className,"group flex flex-col gap-1"),step:u.step??1,onChange:f=>{typeof f=="number"&&(u.maxValue!=null&&f>u.maxValue?u.onChange?.(u.maxValue):u.minValue!=null&&f<u.minValue?u.onChange?.(u.minValue):u.onChange?.(f));},isInvalid:!!r||typeof u.value=="number"&&(u.maxValue!=null&&u.value>u.maxValue||u.minValue!=null&&u.value<u.minValue),children:({isDisabled:f,isInvalid:h})=>jsxRuntime.jsxs("div",{className:"flex flex-col gap-1",children:[e&&jsxRuntime.jsx(ze,{size:o,tooltip:n,description:l==="tooltip"||l==="inline"?t:void 0,descriptionPlacement:l,isRequired:a,htmlFor:d,children:e}),jsxRuntime.jsx("div",{className:"relative",children:jsxRuntime.jsxs(reactAriaComponents.Group,{className:"relative",children:[jsxRuntime.jsx(reactAriaComponents.Input,{onFocus:x=>p(x,u.onFocus),onBlur:x=>g(x,u.onBlur),className:D1({isInvalid:h||!!r,isDisabled:f,isFocused:m,transparent:i,size:o,className:typeof u.className=="string"?u.className:void 0})}),jsxRuntime.jsxs("div",{className:"absolute inset-y-[2px] right-[2px] flex flex-col divide-y divide-border-default border-l border-border-default overflow-hidden rounded-r-[calc(var(--control-border-radius)-2px)]",children:[jsxRuntime.jsx(reactAriaComponents.Button,{slot:"increment",isDisabled:f,className:"flex h-1/2 w-7 items-center justify-center bg-background-input hover:bg-background-input-hover active:bg-background-input-active disabled:cursor-not-allowed disabled:opacity-50",children:jsxRuntime.jsx(B,{name:"CaretUp",size:14})}),jsxRuntime.jsx(reactAriaComponents.Button,{slot:"decrement",isDisabled:f,className:"flex h-1/2 w-7 items-center justify-center bg-background-input hover:bg-background-input-hover active:bg-background-input-active disabled:cursor-not-allowed disabled:opacity-50",children:jsxRuntime.jsx(B,{name:"CaretDown",size:14})})]})]})}),c?jsxRuntime.jsx("div",{className:"mt-1 min-h-[20px]",children:r?jsxRuntime.jsx(be,{size:o,children:typeof r=="function"?r(s):r}):t&&l==="below"?jsxRuntime.jsx(Te,{size:o,children:t}):null}):jsxRuntime.jsx(jsxRuntime.Fragment,{children:r?jsxRuntime.jsx(be,{size:o,className:"mt-1",children:typeof r=="function"?r(s):r}):t&&l==="below"?jsxRuntime.jsx(Te,{size:o,className:"mt-1",children:t}):null})]})})}var Eu={sm:{track:"h-4 w-7",handle:"h-3.5 w-3.5",text:"text-xs"},md:{track:"h-5 w-9",handle:"h-4 w-4",text:"text-sm"},lg:{track:"h-6 w-11",handle:"h-5 w-5",text:"text-base"},xl:{track:"h-7 w-14",handle:"h-6 w-6",text:"text-lg"}};function A1({isSelected:e,isDisabled:t,size:r="md"}){let o="flex px-px items-center shrink-0 cursor-default rounded-full transition duration-200 ease-in-out shadow-inner border border-transparent",n=Eu[r].track,a=Je,i="focus-visible:outline-action-primary",s="";return e?s="bg-action-primary forced-colors:!bg-[Highlight] group-pressed:bg-action-primary-hover":s="bg-border-input group-pressed:bg-border-focus",[o,n,a,i,s,t?"bg-background-muted forced-colors:group-selected:!bg-[GrayText] forced-colors:border-[GrayText]":""].filter(Boolean).join(" ")}function I1({isSelected:e,isDisabled:t,size:r="md"}){let o="transform rounded-full bg-background-surface outline-none shadow transition duration-200 ease-in-out",n=Eu[r].handle;return [o,n,e?"translate-x-[100%]":"translate-x-0",t?"forced-colors:outline-[GrayText]":""].filter(Boolean).join(" ")}function cl({children:e,variant:t="primary",size:r="md",...o}){return jsxRuntime.jsx(reactAriaComponents.Switch,{...o,className:ke(o.className,`relative group flex items-center gap-2 ${Eu[r].text} text-text-primary transition disabled:text-text-disabled forced-colors:disabled:text-[GrayText]`),children:n=>jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("div",{className:A1({...n,size:r}),children:jsxRuntime.jsx("span",{className:I1({...n,size:r})})}),e]})})}function Hb(e){return new Intl.NumberFormat("en-US").format(e)}function Wb({isOpen:e,onClose:t,facetConfigs:r,facetCounts:o={},currentFilters:n,onApply:a,onClear:i,title:s="Filters",resultCount:c}){let[l,u]=Oe.useState(n),[d,m]=Oe.useState({}),[p,g]=Oe.useState({}),[f,h]=Oe.useState(null),{isMobile:b}=Xt(),x=Oe.useMemo(()=>r.some(C=>C.group),[r]),{groups:y,ungroupedFacets:v,facetsByGroup:S}=Oe.useMemo(()=>{let C=new Set,F=[],H={};for(let Y of r)Y.group?(C.has(Y.group)||(C.add(Y.group),H[Y.group]=[]),H[Y.group].push(Y)):F.push(Y);return {groups:Array.from(C),ungroupedFacets:F,facetsByGroup:H}},[r]);Oe.useEffect(()=>{e&&(u(n),m({}),g({}),h(!b&&y.length>0?y[0]:null));},[e,n,y,b]);let w=Oe.useMemo(()=>!l||sl(l)?0:Vn(l).length,[l]),N=()=>{a(l),t();},R=()=>{let C=ki();u(C),i?i():a(C),t();},k=C=>{if(!l)return [];if(!Vn(l).includes(C))return [];let H=[];function Y(te){if(te)for(let de of te.conditions)"conditions"in de?Y(de):de.field===C&&de.operator==="in"&&Array.isArray(de.value)&&H.push(...de.value.map(String));}return Y(l),H},T=(C,F,H)=>{let Y=Bn(l,C);F!==void 0&&(Y=Zo(Y,{field:C,operator:"gte",value:F})),H!==void 0&&(Y=Zo(Y,{field:C,operator:"lte",value:H})),u(Y);},A=C=>{if(!l)return;let F;function H(Y){if(Y)for(let te of Y.conditions)"conditions"in te?H(te):te.field===C&&te.operator==="eq"&&typeof te.value=="boolean"&&(F=te.value);}return H(l),F},M=(C,F)=>{let H=Bn(l,C);F!==void 0&&(H=Zo(H,{field:C,operator:"eq",value:F})),u(H);},E=(C,F,H)=>{let Y=Bn(l,C);F&&(Y=Zo(Y,{field:C,operator:"gte",value:F.toString()})),H&&(Y=Zo(Y,{field:C,operator:"lte",value:H.toString()})),u(Y);},P=C=>{let F=S[C]||[],H=l?Vn(l):[];return F.filter(Y=>H.includes(Y.field)).length},O="pr-9 bg-background-muted/50",G="border-t border-border-muted",K="text-sm font-medium text-text-link-default",W=C=>jsxRuntime.jsx("span",{className:K,children:C}),q=C=>{let F=o[C.field]||{},H=d[C.field]||"",Y=[];C.values?Y=C.values.map(_=>({value:String(_.value),label:_.label,count:F[String(_.value)]})):Y=Object.entries(F).map(([_,ae])=>({value:_,label:_,count:ae}));let te=Y.length;if(H){let _=H.toLowerCase();Y=Y.filter(ae=>ae.label.toLowerCase().includes(_));}Y.sort((_,ae)=>_.count!==void 0&&ae.count!==void 0&&ae.count!==_.count?ae.count-_.count:_.label.localeCompare(ae.label));let de=C.type||"string";if(de==="string"||!C.type){let _=k(C.field),ae=C.searchThreshold??10,fe=C.maxVisibleOptions??50,re=p[C.field]??false,ce=re||Y.length<=fe?Y:Y.slice(0,fe),xe=Y.length>fe&&!re;return jsxRuntime.jsxs(Go,{id:C.field,children:[jsxRuntime.jsx(Uo,{title:C.label,description:C.description,className:O,endContent:_.length>0?W(`${_.length} selected`):void 0}),jsxRuntime.jsx(Ko,{className:G,children:jsxRuntime.jsxs("div",{className:"space-y-4 pt-4 pb-4",children:[te>ae&&jsxRuntime.jsx(Fn,{value:H,onChange:he=>m(De=>({...De,[C.field]:he})),onClear:()=>m(he=>({...he,[C.field]:""})),placeholder:`Search ${C.label.toLowerCase()}...`,size:"sm",className:"w-full !max-w-none pr-4"}),jsxRuntime.jsx(Yd,{value:_,onChange:he=>{let De=Bn(l,C.field);he.length>0&&(De=Zo(De,{field:C.field,operator:"in",value:he})),u(De);},children:jsxRuntime.jsx("div",{className:"space-y-1.5",children:ce.map(he=>jsxRuntime.jsx("div",{className:"rounded-md py-2 pr-4 transition-colors hover:bg-background-hover",children:jsxRuntime.jsx(Sn,{value:he.value,children:jsxRuntime.jsxs("div",{className:"flex items-center justify-between gap-3 flex-1",children:[C.renderLabel?C.renderLabel(he.value,he.label):jsxRuntime.jsx("span",{className:"text-sm font-medium text-text-primary",children:he.label}),he.count!==void 0&&jsxRuntime.jsx("span",{className:"text-xs font-medium text-text-secondary tabular-nums",children:Hb(he.count)})]})})},he.value))})}),xe&&jsxRuntime.jsx("div",{className:"pt-2 border-t border-border-muted",children:jsxRuntime.jsxs(Z,{variant:"ghost",size:"sm",onPress:()=>g(he=>({...he,[C.field]:true})),className:"w-full",children:["Show all ",Y.length," options"]})}),re&&Y.length>fe&&jsxRuntime.jsx("div",{className:"pt-2 border-t border-border-muted",children:jsxRuntime.jsx(Z,{variant:"ghost",size:"sm",onPress:()=>g(he=>({...he,[C.field]:false})),className:"w-full",children:"Show less"})})]})})]},C.field)}if(de==="number"){let _,ae,fe=ce=>{if(ce)for(let xe of ce.conditions)"conditions"in xe?fe(xe):xe.field===C.field&&(xe.operator==="gte"&&typeof xe.value=="number"&&(_=xe.value),xe.operator==="lte"&&typeof xe.value=="number"&&(ae=xe.value));};fe(l);let re=_!==void 0||ae!==void 0;return jsxRuntime.jsxs(Go,{id:C.field,children:[jsxRuntime.jsx(Uo,{title:C.label,description:C.description,className:O,endContent:re?W(_!==void 0&&ae!==void 0?`${_} - ${ae}`:_!==void 0?`\u2265 ${_}`:`\u2264 ${ae}`):void 0}),jsxRuntime.jsx(Ko,{className:G,children:jsxRuntime.jsxs("div",{className:"grid grid-cols-2 gap-4 pt-4 pb-4",children:[jsxRuntime.jsx(Pi,{label:"Min",value:_,onChange:ce=>T(C.field,ce,ae)},`${C.field}-min`),jsxRuntime.jsx(Pi,{label:"Max",value:ae,onChange:ce=>T(C.field,_,ce)},`${C.field}-max`)]})})]},C.field)}if(de==="boolean"){let _=A(C.field);return jsxRuntime.jsxs(Go,{id:C.field,children:[jsxRuntime.jsx(Uo,{title:C.label,description:C.description,className:O,endContent:_!==void 0?W(_?"Yes":"No"):void 0}),jsxRuntime.jsx(Ko,{className:G,children:jsxRuntime.jsxs("div",{className:"flex items-center justify-between pt-4 pb-4",children:[jsxRuntime.jsx("span",{className:"text-sm font-medium text-text-primary",children:_!==void 0?_?"Enabled":"Disabled":"No filter applied"}),jsxRuntime.jsx(cl,{size:"lg",isSelected:_??false,onChange:ae=>M(C.field,ae?true:void 0),children:_?"Yes":"No"})]})})]},C.field)}if(de==="date"){let _,ae,fe=De=>{if(De)for(let $e of De.conditions)"conditions"in $e?fe($e):$e.field===C.field&&($e.operator==="gte"&&(_=String($e.value)),$e.operator==="lte"&&(ae=String($e.value)));};fe(l);let re=_!==void 0||ae!==void 0,ce=De=>{if(De)try{return /^\d{4}-\d{2}-\d{2}$/.test(De)?date.parseDate(De):void 0}catch{return}},xe=ce(_),he=ce(ae);return jsxRuntime.jsxs(Go,{id:C.field,children:[jsxRuntime.jsx(Uo,{title:C.label,description:C.description,className:O,endContent:re?W("Date range selected"):void 0}),jsxRuntime.jsx(Ko,{className:G,children:jsxRuntime.jsx("div",{className:"pt-4 pb-4",children:jsxRuntime.jsx(ll,{label:"Date Range",value:xe&&he?{start:xe,end:he}:void 0,onChange:De=>{De?E(C.field,De.start,De.end):E(C.field,void 0,void 0);}})})})]},C.field)}return null},j=()=>jsxRuntime.jsxs("div",{className:"flex flex-col",children:[v.map(C=>{let H=(l?Vn(l):[]).includes(C.field);return jsxRuntime.jsxs("button",{type:"button",onClick:()=>h(`__ungrouped__${C.field}`),className:"flex items-center justify-between px-6 py-3 text-left hover:bg-background-hover border-b border-border-muted transition-colors",children:[jsxRuntime.jsx("span",{className:"text-sm font-medium text-text-primary",children:C.label}),jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[H&&jsxRuntime.jsx("span",{className:K,children:"1 active"}),jsxRuntime.jsx(B,{name:"CaretRight",size:"sm",className:"text-text-secondary"})]})]},C.field)}),y.map(C=>{let F=P(C);return jsxRuntime.jsxs("button",{type:"button",onClick:()=>h(C),className:"flex items-center justify-between px-6 py-3 text-left hover:bg-background-hover border-b border-border-muted transition-colors",children:[jsxRuntime.jsx("span",{className:"text-sm font-medium text-text-primary",children:C}),jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[F>0&&jsxRuntime.jsxs("span",{className:K,children:[F," active"]}),jsxRuntime.jsx(B,{name:"CaretRight",size:"sm",className:"text-text-secondary"})]})]},C)})]}),Q=C=>{if(C.startsWith("__ungrouped__")){let H=C.replace("__ungrouped__",""),Y=v.find(te=>te.field===H);return Y?jsxRuntime.jsx(va,{variant:"contained",density:"comfortable",showDividers:true,defaultExpandedKeys:[Y.field],children:q(Y)}):null}let F=S[C]||[];return F.length===0?null:jsxRuntime.jsx(va,{variant:"contained",density:"comfortable",showDividers:true,defaultExpandedKeys:[F[0].field],children:F.map(H=>q(H))})},L=()=>{if(f){let C=f.startsWith("__ungrouped__")&&v.find(F=>F.field===f.replace("__ungrouped__",""))?.label||f;return jsxRuntime.jsxs("div",{className:"flex flex-col h-full",children:[jsxRuntime.jsxs("button",{type:"button",onClick:()=>h(null),className:"flex items-center gap-2 px-4 py-3 border-b border-border-muted hover:bg-background-hover transition-colors",children:[jsxRuntime.jsx(B,{name:"CaretLeft",size:"sm",className:"text-text-secondary"}),jsxRuntime.jsx("span",{className:"text-sm font-medium text-text-primary",children:C})]}),jsxRuntime.jsx("div",{className:"flex-1 overflow-y-auto",children:Q(f)})]})}return j()},D=()=>jsxRuntime.jsxs("div",{className:"flex h-full",children:[jsxRuntime.jsxs("div",{className:"w-48 flex-shrink-0 border-r border-border-muted overflow-y-auto bg-background-muted/30",children:[v.map(C=>{let H=(l?Vn(l):[]).includes(C.field),Y=f===`__ungrouped__${C.field}`;return jsxRuntime.jsxs("button",{type:"button",onClick:()=>h(`__ungrouped__${C.field}`),className:`flex items-center justify-between w-full px-4 py-3 text-left border-b border-border-muted transition-colors ${Y?"bg-background-selected":"hover:bg-background-hover"}`,children:[jsxRuntime.jsx("span",{className:`text-sm truncate ${Y?"font-semibold text-text-primary":"font-medium text-text-primary"}`,children:C.label}),H&&jsxRuntime.jsx("span",{className:"w-2 h-2 rounded-full bg-action-primary flex-shrink-0 ml-2"})]},C.field)}),y.map(C=>{let F=P(C),H=f===C;return jsxRuntime.jsxs("button",{type:"button",onClick:()=>h(C),className:`flex items-center justify-between w-full px-4 py-3 text-left border-b border-border-muted transition-colors ${H?"bg-background-selected":"hover:bg-background-hover"}`,children:[jsxRuntime.jsx("span",{className:`text-sm truncate ${H?"font-semibold text-text-primary":"font-medium text-text-primary"}`,children:C}),F>0&&jsxRuntime.jsx("span",{className:"w-2 h-2 rounded-full bg-action-primary flex-shrink-0 ml-2"})]},C)})]}),jsxRuntime.jsx("div",{className:"flex-1 overflow-y-auto",children:f?Q(f):jsxRuntime.jsx("div",{className:"flex items-center justify-center h-full text-text-secondary text-sm",children:"Select a category to view filters"})})]}),U=()=>jsxRuntime.jsx(va,{variant:"contained",density:"comfortable",showDividers:true,defaultExpandedKeys:[r[0].field],children:r.map(C=>q(C))});return jsxRuntime.jsx(kr,{isOpen:e,onClose:t,title:x&&b&&f?f.startsWith("__ungrouped__")?v.find(C=>C.field===f.replace("__ungrouped__",""))?.label||s:f:w>0?`${s} (${w} active)`:s,hideCloseIcon:false,primaryAction:{label:"Apply filters",onPress:N,variant:"primary"},secondaryAction:{label:"Clear all",onPress:R},maxWidth:x?"800px":"700px",height:"600px",mobileHeight:"85vh",contentPadding:false,footerContent:c!==void 0?jsxRuntime.jsxs("div",{className:"text-sm text-text-secondary text-center",children:[jsxRuntime.jsx("span",{className:"font-semibold text-text-primary",children:Hb(c)})," ",c===1?"result":"results"," with current filters"]}):void 0,children:r.length===0?jsxRuntime.jsx("div",{className:"py-12 text-center",children:jsxRuntime.jsx("div",{className:"text-sm font-medium text-text-secondary",children:"No filters available"})}):x?b?L():D():U()})}function Au(e="left"){switch(e){case "center":return "justify-center text-center";case "right":return "justify-end text-right";default:return "justify-start text-left"}}function Ar(e="normal",t){return tailwindMerge.twMerge({strong:"font-semibold text-text-primary",high:"font-semibold text-text-primary",normal:"text-text-primary",low:"text-text-secondary"}[e],t&&"hover:text-action-primary cursor-pointer transition-colors")}function Me(e="left",t){return tailwindMerge.twMerge("flex items-center gap-1 min-w-0 overflow-hidden",Au(e),t)}function pl(e,t="\u2014"){return e==null||e===""?t:String(e)}var _o={xs:"h-4 w-12",sm:"h-4 w-20",md:"h-4 w-24",lg:"h-4 w-32",xl:"h-4 w-40"};function nr(e="normal"){return {strong:_o.lg,high:_o.lg,normal:_o.md,low:_o.sm}[e]}function Se(e,t){return typeof e=="function"?e(t):e}function Gb(e="neutral",t="sm"){return tailwindMerge.twMerge("inline-flex items-center rounded-full font-medium",t==="sm"?"px-2 py-0.5 text-xs":"px-2.5 py-1 text-sm",{success:"bg-feedback-success-background text-feedback-success-text",error:"bg-feedback-error-background text-feedback-error-text",warning:"bg-feedback-warning-background text-feedback-warning-text",info:"bg-feedback-info-background text-feedback-info-text",neutral:"bg-background-muted text-text-secondary"}[e])}function Ub(e){return e?"success":"neutral"}function ml(e,t=false){return t?e>0?"text-feedback-success-text":e<0?"text-feedback-error-text":"text-text-primary":"text-text-primary"}function Iu(e="hover",t="secondary"){let r={primary:"text-action-primary hover:text-action-primary-hover visited:text-action-primary",secondary:"text-text-link-default hover:text-text-link-hover visited:text-text-link-default",default:"text-text-link-default hover:text-text-link-hover visited:text-text-link-default",brand:"text-action-primary hover:text-action-primary-hover visited:text-action-primary",muted:"text-text-secondary hover:text-text-secondary visited:text-text-secondary",unstyled:""},o={visible:"underline underline-offset-4 decoration-1 cursor-pointer",hover:"hover:underline hover:underline-offset-4 hover:decoration-1 cursor-pointer transition-colors",none:"cursor-pointer"},n=r[t],a=o[e]||"";return `${n} ${a}`.trim()}function ao(e,t,r,o="hover",n="secondary",a,i){if(!t)return e;let s=typeof t=="function"&&r?t(r):t,c=Iu(o,n);return jsxRuntime.jsx("a",{href:s,className:tailwindMerge.twMerge(c,a==="strong"||a==="high"?"font-semibold":"",i),onClick:u=>{u.metaKey||u.ctrlKey;},children:e})}function Kb({row:e,context:t,actions:r,align:o="right",size:n="sm"}){let{isLoading:a}=t;if(a)return jsxRuntime.jsx(J,{className:_o.sm});let s=(typeof r=="function"?r(e):r).filter(l=>!Se(l.hidden,e));if(s.length===0)return null;let c=Me(o);return jsxRuntime.jsx("div",{className:c,children:s.map(l=>{let u=Se(l.disabled,e);return l.variant==="icon"||!l.label?jsxRuntime.jsx(Z,{variant:"icon",size:n,onPress:()=>{l.onClick(e);},isDisabled:u,"aria-label":l.label||l.id,children:jsxRuntime.jsx(B,{name:l.icon||"DotsThree",size:n==="sm"?16:20})},l.id):jsxRuntime.jsxs(Z,{variant:l.variant||"secondary",size:n,onPress:()=>{l.onClick(e);},isDisabled:u,children:[l.icon&&jsxRuntime.jsx(B,{name:l.icon,size:n==="sm"?14:16}),l.label]},l.id)})})}function Jb({value:e,row:t,context:r,variant:o="default",label:n,size:a="sm",shape:i="square",dot:s,dotPosition:c="left",dotPulse:l,align:u="left",emptyText:d="\u2014",className:m,maxVisible:p=2,maxLabelLength:g}){let{isLoading:f}=r,h=(w,N)=>{if(!g||w.length<=g)return jsxRuntime.jsx(jsxRuntime.Fragment,{children:w});let R=w.slice(0,g-1)+"\u2026";return jsxRuntime.jsx(Zt,{content:N,children:jsxRuntime.jsx("span",{children:R})})};if(f)return jsxRuntime.jsx(J,{className:nr("normal")});if(e==null||e==="")return jsxRuntime.jsx("div",{className:Me(u,"text-text-secondary"),children:d});if(Array.isArray(e)&&e.length===0)return jsxRuntime.jsx("div",{className:Me(u,"text-text-secondary"),children:d});let b=Me(u,m);if(Array.isArray(e)){let w=e.slice(0,p),N=e.slice(p),R=N.length>0;return jsxRuntime.jsx("div",{className:b,children:jsxRuntime.jsxs("div",{className:"flex items-center gap-1",children:[w.map((k,T)=>{let A=typeof o=="function"?o(k,t):o,M=typeof n=="function"?n(k,t):n!==void 0?n:String(k),E=typeof s=="function"?s(k,t):s,P=typeof l=="function"?l(k,t):l;return jsxRuntime.jsx("span",{className:"flex-shrink-0 whitespace-nowrap",children:jsxRuntime.jsx(nt,{variant:A,size:a,shape:i,dot:E,dotPosition:c,dotPulse:P,children:h(M,M)})},T)}),R&&jsxRuntime.jsx(Zt,{content:N.join(", "),children:jsxRuntime.jsx("span",{className:"flex-shrink-0 whitespace-nowrap",children:jsxRuntime.jsxs(nt,{variant:"neutral",size:a,shape:i,children:["+",N.length]})})})]})})}let x=typeof o=="function"?o(e,t):o,y=typeof n=="function"?n(e,t):n!==void 0?n:String(e),v=typeof s=="function"?s(e,t):s,S=typeof l=="function"?l(e,t):l;return jsxRuntime.jsx("div",{className:b,children:jsxRuntime.jsx(nt,{variant:x,size:a,shape:i,dot:v,dotPosition:c,dotPulse:S,children:h(y,y)})})}function Xb({value:e,context:t,format:r="icon",trueText:o="Yes",falseText:n="No",trueIcon:a="Check",falseIcon:i="X",showFalse:s=true,align:c="center",emphasis:l="normal",className:u}){let{isLoading:d}=t;if(d)return jsxRuntime.jsx(J,{className:nr(l)});let m=!!e;if(!m&&!s)return jsxRuntime.jsx("div",{className:Me(c,u)});let p=Me(c,u);switch(r){case "icon":return jsxRuntime.jsx("div",{className:p,children:jsxRuntime.jsx(B,{name:m?a:i,size:16,className:m?"text-feedback-success-text":"text-text-disabled"})});case "text":return jsxRuntime.jsx("div",{className:p,children:jsxRuntime.jsx("span",{className:Ar(l),children:m?o:n})});case "badge":return jsxRuntime.jsx("div",{className:p,children:jsxRuntime.jsx(nt,{variant:m?"success":"neutral",size:"sm",children:m?o:n})});default:return null}}function qb({row:e,context:t,firstName:r,lastName:o,email:n,avatarUrl:a,layout:i="stacked",size:s="sm",href:c,LinkComponent:l,linkVariant:u="secondary",showEmail:d=false,badge:m,emphasis:p="normal",align:g="left",className:f,piiEntity:h}){let{isLoading:b}=t,x=Se(r,e),y=Se(o,e),v=Se(n,e),S=Se(a,e),w=Se(c,e),N=typeof m=="function"?m(e):m,R=Se(h,e),k=Me(g,f);return jsxRuntime.jsx("div",{className:k,children:jsxRuntime.jsx(zs,{firstName:x,lastName:y,email:v,avatarUrl:S,layout:i,size:s,href:w,LinkComponent:l,linkVariant:u,showEmail:d,badge:N,emphasis:p,isLoading:b,piiEntity:R})})}function Qb({value:e,row:t,context:r,render:o,className:n}){let a=o(e,t,r);return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("h-full w-full",n),children:a})}function Zb({value:e,row:t,context:r,format:o="date",customFormat:n,emptyText:a="\u2014",align:i="left",emphasis:s="normal",href:c,linkBehavior:l="hover",className:u}){let{isLoading:d}=r;if(d)return jsxRuntime.jsx(J,{className:nr(s)});if(!e)return jsxRuntime.jsx("div",{className:Me(i,"text-text-secondary"),children:a});let m=e instanceof Date?e:new Date(e);if(isNaN(m.getTime()))return jsxRuntime.jsx("div",{className:Me(i,"text-text-secondary"),children:a});let p;switch(o){case "date":p=m.toLocaleDateString("en-US",{year:"numeric",month:"short",day:"numeric"});break;case "time":p=m.toLocaleTimeString("en-US",{hour:"2-digit",minute:"2-digit"});break;case "datetime":p=m.toLocaleString("en-US",{year:"numeric",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"});break;case "relative":p=Y1(m);break;case "custom":p=n?m.toLocaleString("en-US",n):m.toISOString();break;default:p=m.toLocaleDateString();}let g=Me(i,tailwindMerge.twMerge(Ar(s),u)),f=Se(c,t);return f?jsxRuntime.jsx("div",{className:g,children:ao(p,f,t,l)}):jsxRuntime.jsx("div",{className:g,children:p})}function Y1(e){let r=new Date().getTime()-e.getTime(),o=Math.floor(r/1e3),n=Math.floor(o/60),a=Math.floor(n/60),i=Math.floor(a/24);return o<60?"just now":n<60?`${n} minute${n!==1?"s":""} ago`:a<24?`${a} hour${a!==1?"s":""} ago`:i<7?`${i} day${i!==1?"s":""} ago`:e.toLocaleDateString("en-US",{year:"numeric",month:"short",day:"numeric"})}function fl({manufacturer:e,model:t,deviceType:r,deviceTypeIconName:o,logoUrl:n,layout:a="stacked",size:i="md",href:s,LinkComponent:c,linkVariant:l="unstyled",showDeviceTypeIcon:u=true,showLogo:d=true,emphasis:m="normal",isLoading:p=false,className:g,piiEntity:f}){let[h,b]=Oe.useState(false),x=o||(r?X1(r):"DeviceMobile"),v={xs:{iconSize:28,logoSize:"w-7 h-7",gap:"gap-1.5",textSize:"text-xs",secondaryTextSize:"text-xs",iconInTextSize:12,skeletonIcon:28,skeletonText:80,skeletonSecondary:60},sm:{iconSize:32,logoSize:"w-8 h-8",gap:"gap-2",textSize:"text-sm",secondaryTextSize:"text-xs",iconInTextSize:14,skeletonIcon:32,skeletonText:96,skeletonSecondary:72},md:{iconSize:32,logoSize:"w-9 h-9",gap:"gap-3",textSize:"text-base",secondaryTextSize:"text-sm",iconInTextSize:16,skeletonIcon:36,skeletonText:128,skeletonSecondary:96},lg:{iconSize:40,logoSize:"w-10 h-10",gap:"gap-3",textSize:"text-lg",secondaryTextSize:"text-base",iconInTextSize:18,skeletonIcon:40,skeletonText:160,skeletonSecondary:120}}[i],S=n&&!h&&d,N={strong:"font-semibold text-text-primary",high:"font-semibold text-text-primary",normal:"text-text-primary",low:"text-text-secondary"}[m],R=({children:k,className:T})=>s?c?jsxRuntime.jsx(c,{href:s,className:T,children:k}):jsxRuntime.jsx(Ze,{href:s,variant:l,className:tailwindMerge.twMerge("hover:underline",T),asButton:false,children:k}):jsxRuntime.jsx("span",{className:T,children:k});if(p)return a==="inline"?jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("flex items-center",v.gap,g),children:[jsxRuntime.jsx(J,{width:v.skeletonIcon,height:v.skeletonIcon,className:"flex-shrink-0 rounded"}),jsxRuntime.jsx(J,{width:v.skeletonText,height:v.skeletonIcon*.6})]}):jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("flex items-center",v.gap,g),children:[jsxRuntime.jsx(J,{width:v.skeletonIcon,height:v.skeletonIcon,className:"flex-shrink-0"}),jsxRuntime.jsxs("div",{className:"flex flex-col gap-1",children:[jsxRuntime.jsx(J,{width:v.skeletonText,height:16}),jsxRuntime.jsx(J,{width:v.skeletonSecondary,height:12})]})]});if(a==="inline"){let k=`${e} ${t}`;return jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("flex items-center",v.gap,g),children:[jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("flex-shrink-0 flex items-center justify-center rounded border border-border-muted",v.logoSize),children:S?jsxRuntime.jsx("img",{src:n,alt:`${e} logo`,className:"w-full h-full object-contain",onError:()=>b(true)}):jsxRuntime.jsx(B,{name:x,size:v.iconSize*.6,className:"text-text-secondary"})}),jsxRuntime.jsx(R,{className:tailwindMerge.twMerge("truncate leading-normal hover:text-text-primary",N,v.textSize,s&&"hover:underline hover:decoration-1 hover:underline-offset-4"),children:jsxRuntime.jsx("span",{"data-pii-type":f?"device-name":void 0,"data-pii-entity":f,children:k})})]})}return jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("flex items-center justify-start",v.gap,g),children:[d&&jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("flex-shrink-0 flex items-center justify-center rounded border border-border-muted",v.logoSize),children:S?jsxRuntime.jsx("img",{src:n,alt:`${e} logo`,className:"w-full h-full object-contain",onError:()=>b(true)}):jsxRuntime.jsx(B,{name:x,size:v.iconSize*.6,className:"text-text-secondary"})}),jsxRuntime.jsxs("div",{className:"flex flex-col items-start min-w-0",children:[jsxRuntime.jsx(R,{className:tailwindMerge.twMerge("truncate leading-normal hover:text-text-primary",N,v.textSize,s&&"hover:underline hover:decoration-1 hover:underline-offset-4"),children:jsxRuntime.jsx("span",{"data-pii-type":f?"device-name":void 0,"data-pii-entity":f,children:e})}),jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("flex items-center gap-1.5 text-text-secondary leading-normal",v.secondaryTextSize),children:[u&&jsxRuntime.jsx(B,{name:x,size:v.iconInTextSize,className:"flex-shrink-0"}),jsxRuntime.jsx("span",{className:"truncate","data-pii-type":f?"device-name":void 0,"data-pii-entity":f,children:t})]})]})]})}function X1(e){switch(e){case "battery":return "BatteryHigh";case "charger":return "ChargingStation";case "inverter":return "Power";case "thermostat":return "ThermometerSimple";case "vehicle":return "CarSimple";case "water_heater":return "DropHalfBottom";case "meter":return "Gauge";default:return "DeviceMobile"}}function $b({row:e,context:t,manufacturer:r,model:o,deviceType:n,logoUrl:a,layout:i="stacked",size:s="sm",href:c,LinkComponent:l,linkVariant:u="secondary",showDeviceTypeIcon:d=true,showLogo:m=true,emphasis:p="normal",align:g="left",className:f,piiEntity:h}){let{isLoading:b}=t,x=Se(r,e),y=Se(o,e),v=Se(n,e),S=Se(a,e),w=Se(c,e),N=Se(h,e),R=Me(g,f);return jsxRuntime.jsx("div",{className:R,children:jsxRuntime.jsx(fl,{manufacturer:x,model:y,deviceType:v,logoUrl:S,layout:i,size:s,href:w,LinkComponent:l,linkVariant:u,showDeviceTypeIcon:d,showLogo:m,emphasis:p,isLoading:b,piiEntity:N})})}var uU={charging:"percentage",discharging:"percentage",on:"kW",idle:void 0,off:void 0,heat:"temperature",cool:"temperature",auto:"temperature",eco:"temperature",unknown:void 0,connected:void 0,disconnected:void 0},j1=["charging","discharging","heat","cool","on","connected"],q1={unknown:"Unknown",on:"On",off:"Off",idle:"Idle",charging:"Charging",discharging:"Discharging",heat:"Heating",eco:"Eco Mode",cool:"Cooling",auto:"Auto",connected:"Connected",disconnected:"Disconnected"};function Fu(e){return j1.includes(e)}function Bu(e){return q1[e]}function On({state:e,label:t,icon:r,isLoading:o,size:n="sm",shape:a="pill",dot:i,dotPulse:s,fixedWidth:c,className:l,...u}){if(o)return jsxRuntime.jsx(J,{className:"inline-flex h-6 w-20"});let d=t??Bu(e),m=Fu(e);return jsxRuntime.jsxs(nt,{variant:e,size:n,shape:a,dot:i??m,dotPulse:s??m,className:c?`w-28 justify-center ${l||""}`:l,...u,children:[r&&jsxRuntime.jsx(B,{name:r,size:n==="sm"?12:n==="md"?14:16}),d]})}var Z1={importing:"Importing",exporting:"Exporting"};function tx(e){return Z1[e]}function bl({state:e,label:t,showIcon:r=false,isLoading:o,size:n="sm",shape:a="pill",fixedWidth:i,className:s,...c}){if(o)return jsxRuntime.jsx(J,{className:"inline-flex h-6 w-24"});let l=t??tx(e),u=e==="exporting"?"ArrowUp":"ArrowDown",d=n==="sm"?12:n==="md"?14:16;return r?jsxRuntime.jsx(nt,{variant:e,size:n,shape:a,className:`w-6 justify-center ${s||""}`,...c,children:jsxRuntime.jsx(B,{name:u,size:d})}):jsxRuntime.jsx(nt,{variant:e,size:n,shape:a,className:i?`w-28 justify-center ${s||""}`:s,...c,children:l})}function xl({state:e,stateLabel:t,metric:r,metricFormatter:o,secondaryState:n,layout:a="horizontal",isLoading:i,size:s="sm",shape:c="pill",icon:l,fixedWidth:u,secondaryStateIconOnly:d=false,className:m}){if(i)return jsxRuntime.jsx(J,{className:tailwindMerge.twMerge("inline-flex h-6 w-32",m)});let p=r!=null&&o?Vr(r,o):null,g=a==="horizontal",f=o&&!p;return jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("inline-flex items-center",g?"gap-2":"flex-col gap-1",m),children:[(p||f)&&jsxRuntime.jsx("span",{className:tailwindMerge.twMerge("font-medium inline-block",p?"text-text-primary":"text-text-secondary",s==="sm"&&"text-xs min-w-12",s==="md"&&"text-sm min-w-14",s==="lg"&&"text-base min-w-16"),children:p||"\u2014"}),jsxRuntime.jsx(On,{state:e,label:t,icon:l,size:s,shape:c,fixedWidth:u}),n&&jsxRuntime.jsx(jsxRuntime.Fragment,{children:n==="importing"||n==="exporting"?jsxRuntime.jsx(bl,{state:n,size:s,shape:c,fixedWidth:u,showIcon:d}):jsxRuntime.jsx(On,{state:n,size:s,shape:c,fixedWidth:u})})]})}function rx({value:e,row:t,context:r,metric:o,metricFormatter:n,secondaryState:a,size:i="sm",shape:s="pill",label:c,icon:l,fixedWidth:u=true,align:d="left",compact:m=false,className:p}){let{isLoading:g}=r;if(g){let v={pill:"rounded-full",rounded:"rounded-lg",square:"rounded-sm"}[s],S=o!=null||n!=null;return jsxRuntime.jsx("div",{className:"flex items-center gap-2",children:S?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(J,{className:"h-4 w-12"}),jsxRuntime.jsx(J,{className:`h-6 w-24 ${v}`}),jsxRuntime.jsx(J,{className:`h-6 w-20 ${v}`})]}):jsxRuntime.jsx(J,{className:`h-6 w-24 ${v}`})})}if(!e)return jsxRuntime.jsx("div",{className:Me(d,p),children:jsxRuntime.jsx("span",{className:"text-text-secondary",children:"\u2014"})});let f=Se(o,t),h=Se(a,t),b=typeof c=="function"?c(e,t):c,x=Me(d,p);return f!=null||n?jsxRuntime.jsx("div",{className:tailwindMerge.twMerge(x),children:jsxRuntime.jsx(xl,{state:e,stateLabel:b,metric:f,metricFormatter:n,secondaryState:h||void 0,size:i,shape:s,icon:l,fixedWidth:u,secondaryStateIconOnly:m,layout:"horizontal"})}):jsxRuntime.jsx("div",{className:x,children:jsxRuntime.jsx(On,{state:e,label:b,icon:l,size:i,shape:s,fixedWidth:u})})}function nx({value:e,row:t,context:r,formatter:o,align:n="left",emphasis:a="normal",href:i,linkBehavior:s="hover",className:c,emptyText:l="\u2014",emptyClassName:u="text-text-secondary"}){let{isLoading:d}=r;if(d)return jsxRuntime.jsx(J,{className:nr(a)});let m=jr({value:e,formatter:o,emptyText:l,emptyClassName:u}),p=Ar(a),g=Me(n,tailwindMerge.twMerge(p,c)),f=jsxRuntime.jsx("div",{className:g,children:m}),h=Se(i,t);return h?ao(f,h,t,s):f}var zu=Oe__namespace.default.memo(({value:e,min:t,max:r,color:o="var(--color-viz-default)",backgroundColor:n="var(--color-background-muted)",colorScale:a,showLabel:i=true,formatLabel:s,height:c=20,minWidth:l=4,segments:u,segmentGap:d=2,barWidth:m,context:p})=>{let g=Oe.useMemo(()=>r===t?100:Math.max(0,Math.min(100,(e-t)/(r-t)*100)),[e,t,r]),f=Oe.useMemo(()=>o==="auto"&&a?a.type==="diverging"&&a.center!==void 0?$a(e,t,r,a.center,a.scheme):_a(e,t,r,a.scheme):o,[o,a,e,t,r]);if(p.isLoading)return jsxRuntime.jsx("div",{className:"flex items-center gap-2 w-full",style:{height:c},children:jsxRuntime.jsx("div",{className:"h-full flex-1 animate-pulse bg-border-default rounded"})});if(u&&u>0){let x=`calc((100% - ${d*(u-1)}px) / ${u})`,y=Math.ceil(g/100*u),v={height:c,...m&&{width:typeof m=="number"?`${m}px`:m,flexShrink:0}};return jsxRuntime.jsxs("div",{className:"flex items-center gap-2 w-full",children:[jsxRuntime.jsx("div",{className:`flex gap-0.5 ${m?"":"flex-1"}`,style:v,children:Array.from({length:u}).map((S,w)=>{let N=w<y;return jsxRuntime.jsx("div",{className:"rounded-sm",style:{width:x,backgroundColor:N?f:n==="none"?"transparent":n,marginRight:w<u-1?`${d}px`:0}},w)})}),i&&jsxRuntime.jsx("span",{className:"text-sm text-text-primary whitespace-nowrap",children:s?s(e):e.toLocaleString()})]})}let h={height:c,backgroundColor:n==="none"?"transparent":n,...m&&{width:typeof m=="number"?`${m}px`:m,flexShrink:0}};return jsxRuntime.jsxs("div",{className:"flex items-center gap-2 w-full",children:[jsxRuntime.jsx("div",{className:`relative rounded-sm ${m?"":"flex-1"}`,style:h,children:jsxRuntime.jsx("div",{className:"absolute left-0 top-0 h-full rounded-sm",style:{width:`${g}%`,minWidth:g>0?l:0,backgroundColor:f}})}),i&&jsxRuntime.jsx("span",{className:"text-sm text-text-primary whitespace-nowrap",children:s?s(e):e.toLocaleString()})]})});zu.displayName="HorizontalBarCell";var Ou=Oe__namespace.default.memo(({value:e,data:t,color:r="var(--color-viz-default)",categoryColors:o,context:n,width:a,height:i=40})=>{let s=e||t||[],c=h=>"xValue"in h?h.xValue:h.x,l=h=>"yValue"in h?h.yValue:h.y,u=a||100,d=i,{xScale:m,yScale:p,barWidth:g}=Oe.useMemo(()=>{if(s.length===0)return {xScale:scale.scaleTime({range:[0,u],domain:[new Date,new Date]}),yScale:scale.scaleLinear({range:[d,0],domain:[0,1]}),barWidth:2};let h=d3Array.extent(s,N=>c(N)),b=d3Array.min(s,N=>l(N))??0,x=d3Array.max(s,N=>l(N))??0,y=b<0?b:0,v=scale.scaleTime({range:[0,u],domain:h}),S=scale.scaleLinear({range:[d,0],domain:[y,x*1.05]}),w=s.length>1?u/s.length*.8:8;return {xScale:v,yScale:S,barWidth:Math.max(2,w)}},[s,u,d]);if(n.isLoading)return jsxRuntime.jsx("div",{className:"flex items-center gap-0.5",style:{width:u,height:d},children:Array.from({length:5}).map((h,b)=>jsxRuntime.jsx("div",{className:"flex-1 animate-pulse bg-border-default rounded"},b))});if(!s||s.length===0)return jsxRuntime.jsx("div",{className:"flex items-center justify-center text-text-secondary text-xs",style:{width:u,height:d},children:"No data"});let f=p(0);return jsxRuntime.jsx("svg",{width:u,height:d,children:s.map((h,b)=>{let x=l(h),y=m(c(h)),v=p(x),S=Math.abs(f-v),w=h.category&&o?.[h.category]?o[h.category]:r;return jsxRuntime.jsx(shape.Bar,{x:y-g/2,y:x>=0?v:f,width:g,height:S,fill:w,rx:1},`bar-${b}`)})})});Ou.displayName="MiniBarCell";function cx({value:e,row:t,context:r,format:o="number",decimals:n=0,prefix:a,suffix:i,emptyText:s="\u2014",align:c="right",emphasis:l="normal",href:u,linkBehavior:d="hover",showPositiveSign:m=false,colorCode:p=false,className:g}){let{isLoading:f}=r;if(f)return jsxRuntime.jsx(J,{className:nr(l)});if(e==null||isNaN(Number(e)))return jsxRuntime.jsx("div",{className:Me(c,"text-text-secondary"),children:s});let h=Number(e),b;switch(o){case "currency":b=new Intl.NumberFormat("en-US",{style:"currency",currency:"USD",minimumFractionDigits:n,maximumFractionDigits:n}).format(h);break;case "percent":b=new Intl.NumberFormat("en-US",{style:"percent",minimumFractionDigits:n,maximumFractionDigits:n}).format(h/100);break;case "compact":b=new Intl.NumberFormat("en-US",{notation:"compact",minimumFractionDigits:n>0?1:0,maximumFractionDigits:n}).format(h);break;default:b=new Intl.NumberFormat("en-US",{minimumFractionDigits:n,maximumFractionDigits:n}).format(h);}let y=`${m&&h>0?"+":""}${b}`,v=p?ml(h,true):Ar(l),S=Me(c,tailwindMerge.twMerge(v,g)),w=jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[a&&jsxRuntime.jsx("span",{className:"text-text-secondary",children:a}),jsxRuntime.jsx("span",{children:y}),i&&jsxRuntime.jsx("span",{className:"text-text-secondary",children:i})]}),N=Se(u,t);return N?jsxRuntime.jsx("div",{className:S,children:ao(w,N,t,d)}):jsxRuntime.jsx("div",{className:S,children:w})}var Hu=Oe__namespace.default.memo(({value:e,showLabel:t=true,color:r="var(--color-viz-categorical-1)",backgroundColor:o="var(--color-background-muted)",height:n=20,segments:a,segmentGap:i=2,colorScale:s,context:c})=>{let l=Oe.useMemo(()=>Math.max(0,Math.min(100,e)),[e]),u=Oe.useMemo(()=>r==="auto"&&s?s.type==="diverging"&&s.center!==void 0?$a(e,0,100,s.center,s.scheme):_a(e,0,100,s.scheme):r,[r,s,e]);if(c.isLoading)return jsxRuntime.jsx("div",{className:"flex items-center gap-2",style:{height:n},children:jsxRuntime.jsx("div",{className:"h-full w-full animate-pulse bg-border-default rounded"})});if(a&&a>0){let m=`calc((100% - ${i*(a-1)}px) / ${a})`,p=Math.ceil(l/100*a);return jsxRuntime.jsxs("div",{className:"flex items-center gap-2 w-full",children:[jsxRuntime.jsx("div",{className:"flex gap-0.5 flex-1",style:{height:n},children:Array.from({length:a}).map((g,f)=>{let h=f<p,b=u;if(r==="auto"&&s&&h){let x=(f+1)/a*100;s.type==="diverging"&&s.center!==void 0?b=$a(x,0,100,s.center,s.scheme):b=_a(x,0,100,s.scheme);}return jsxRuntime.jsx("div",{className:"rounded-sm",style:{width:m,backgroundColor:h?b:o==="none"?"transparent":o,marginRight:f<a-1?`${i}px`:0}},f)})}),t&&jsxRuntime.jsxs("span",{className:"text-sm text-text-primary whitespace-nowrap",children:[l.toFixed(0),"%"]})]})}return jsxRuntime.jsxs("div",{className:"flex items-center gap-2 w-full",children:[jsxRuntime.jsx("div",{className:"relative flex-1 rounded-sm",style:{height:n,backgroundColor:o==="none"?"transparent":o},children:jsxRuntime.jsx("div",{className:"absolute left-0 top-0 h-full rounded-sm transition-all duration-300",style:{width:`${l}%`,backgroundColor:u}})}),t&&jsxRuntime.jsxs("span",{className:"text-sm text-text-primary whitespace-nowrap",children:[l.toFixed(0),"%"]})]})});Hu.displayName="PercentBarCell";function ux({row:e,context:t,isSelected:r=false,onSelect:o,isDisabled:n=false,align:a="center"}){let{isLoading:i}=t;if(i)return jsxRuntime.jsx("div",{className:Me(a),children:jsxRuntime.jsx(J,{className:"h-4 w-4 rounded"})});let s=Se(n,e),c=Me(a);return jsxRuntime.jsx("div",{className:c,children:jsxRuntime.jsx(Sn,{isSelected:r,onChange:l=>{o?.(e,l);},isDisabled:s,"aria-label":"Select row"})})}function vl({streetAddress:e,city:t,state:r,postalCode:o,layout:n="stacked",size:a="md",href:i,LinkComponent:s,linkVariant:c="unstyled",emphasis:l="normal",isLoading:u=false,className:d,piiEntity:m}){let g={xs:{iconSize:16,iconContainerSize:"w-7 h-7",gap:"gap-1.5",textSize:"text-xs",secondaryTextSize:"text-xs",skeletonIconStacked:28,skeletonIconInline:16,skeletonText:80,skeletonSecondary:60},sm:{iconSize:20,iconContainerSize:"w-8 h-8",gap:"gap-2",textSize:"text-sm",secondaryTextSize:"text-xs",skeletonIconStacked:32,skeletonIconInline:20,skeletonText:96,skeletonSecondary:72},md:{iconSize:24,iconContainerSize:"w-9 h-9",gap:"gap-3",textSize:"text-base",secondaryTextSize:"text-sm",skeletonIconStacked:36,skeletonIconInline:24,skeletonText:128,skeletonSecondary:96},lg:{iconSize:28,iconContainerSize:"w-10 h-10",gap:"gap-3",textSize:"text-lg",secondaryTextSize:"text-base",skeletonIconStacked:40,skeletonIconInline:28,skeletonText:160,skeletonSecondary:120}}[a],h={strong:"font-semibold text-text-primary",high:"font-semibold text-text-primary",normal:"text-text-primary",low:"text-text-secondary"}[l],b=[];t&&b.push(t),r&&o?b.push(`${r} ${o}`):r?b.push(r):o&&b.push(o);let x=b.join(", "),y=({children:S,className:w})=>i?s?jsxRuntime.jsx(s,{href:i,className:w,children:S}):jsxRuntime.jsx(Ze,{href:i,variant:c,className:tailwindMerge.twMerge("hover:underline",w),asButton:false,children:S}):jsxRuntime.jsx("span",{className:w,children:S});if(u)return n==="inline"?jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("flex items-center",g.gap,d),children:[jsxRuntime.jsx(J,{width:g.skeletonIconInline,height:g.skeletonIconInline,className:"flex-shrink-0 rounded"}),jsxRuntime.jsx(J,{width:g.skeletonText,height:g.skeletonIconInline*.8})]}):jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("flex items-center",g.gap,d),children:[jsxRuntime.jsx(J,{width:g.skeletonIconStacked,height:g.skeletonIconStacked,className:"flex-shrink-0 rounded"}),jsxRuntime.jsxs("div",{className:"flex flex-col gap-1",children:[jsxRuntime.jsx(J,{width:g.skeletonText,height:16}),jsxRuntime.jsx(J,{width:g.skeletonSecondary,height:12})]})]});if(n==="inline")return jsxRuntime.jsxs(y,{className:tailwindMerge.twMerge("flex items-center",g.gap,i&&"hover:bg-background-hover transition-colors",d),children:[jsxRuntime.jsx(B,{name:"MapPin",size:g.iconSize,className:"text-text-secondary flex-shrink-0"}),jsxRuntime.jsx("span",{className:tailwindMerge.twMerge("leading-normal truncate hover:text-text-primary",h,g.textSize,i&&"hover:underline hover:decoration-1 hover:underline-offset-4"),"data-pii-type":m?"address":void 0,"data-pii-entity":m,children:e})]});let v=()=>{if(m){if(t&&r&&o)return "city-state-zip";if(t&&r)return "city-state";if(t)return "city";if(r)return "state";if(o)return "postal-code"}};return jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("flex items-center justify-start",g.gap,d),children:[jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("flex-shrink-0 flex items-center justify-center rounded border border-border-muted",g.iconContainerSize),children:jsxRuntime.jsx(B,{name:"MapPin",size:g.iconSize,className:"text-text-secondary"})}),jsxRuntime.jsxs("div",{className:"flex flex-col items-start min-w-0",children:[jsxRuntime.jsx(y,{className:tailwindMerge.twMerge("leading-normal truncate hover:text-text-primary",h,g.textSize,i&&"hover:underline hover:decoration-1 hover:underline-offset-4"),children:jsxRuntime.jsx("span",{"data-pii-type":m?"address":void 0,"data-pii-entity":m,children:e})}),x&&jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("text-text-secondary leading-normal truncate",g.secondaryTextSize),"data-pii-type":v(),"data-pii-entity":m,children:x})]})]})}function mx({row:e,context:t,streetAddress:r,city:o,state:n,postalCode:a,layout:i="stacked",size:s="sm",href:c,LinkComponent:l,linkVariant:u="secondary",emphasis:d="normal",align:m="left",className:p,piiEntity:g}){let{isLoading:f}=t,h=Se(r,e),b=Se(o,e),x=Se(n,e),y=Se(a,e),v=Se(c,e),S=Se(g,e),w=Me(m,p);return jsxRuntime.jsx("div",{className:w,children:jsxRuntime.jsx(vl,{streetAddress:h,city:b,state:x,postalCode:y,layout:i,size:s,href:v,LinkComponent:l,linkVariant:u,emphasis:d,isLoading:f,piiEntity:S})})}var Wu=Oe__namespace.default.memo(({value:e,data:t,type:r="line",color:o="var(--color-viz-default)",strokeWidth:n=2,categoryColors:a,context:i,width:s,height:c=40})=>{let l=e||t||[],u=s||100,d=c,{xScale:m,yScale:p}=Oe.useMemo(()=>{if(l.length===0)return {xScale:scale.scaleTime({range:[0,u],domain:[new Date,new Date]}),yScale:scale.scaleLinear({range:[d,0],domain:[0,1]})};let f=d3Array.extent(l,y=>y.xValue),h=d3Array.min(l,y=>y.yValue)||0,b=d3Array.max(l,y=>y.yValue)||0,x=(b-h)*.1||1;return {xScale:scale.scaleTime({range:[0,u],domain:f}),yScale:scale.scaleLinear({range:[d,0],domain:[h-x,b+x]})}},[l,u,d]);if(i.isLoading)return jsxRuntime.jsx("div",{className:"flex items-center",style:{width:u,height:d},children:jsxRuntime.jsx("div",{className:"h-1 w-full animate-pulse bg-border-default rounded"})});if(!l||l.length===0)return jsxRuntime.jsx("div",{className:"flex items-center justify-center text-text-secondary text-xs",style:{width:u,height:d},children:"No data"});let g=a&&l[0]?.category&&a[l[0].category]?a[l[0].category]:o;return jsxRuntime.jsxs("svg",{width:u,height:d,className:"overflow-visible",children:[(r==="area"||r==="both")&&jsxRuntime.jsx(shape.AreaClosed,{data:l,x:f=>m(f.xValue),y:f=>p(f.yValue),yScale:p,fill:g,fillOpacity:.15,curve:curve.curveLinear}),(r==="line"||r==="both")&&jsxRuntime.jsx(shape.LinePath,{data:l,x:f=>m(f.xValue),y:f=>p(f.yValue),stroke:g,strokeWidth:n,strokeLinecap:"round",curve:curve.curveLinear})]})});Wu.displayName="SparklineCell";function xx({value:e,row:t,context:r,prefix:o,suffix:n,emptyText:a="\u2014",href:i,linkBehavior:s="hover",linkVariant:c="secondary",emphasis:l="normal",truncate:u=true,copyable:d=false,align:m="left",className:p,piiType:g,piiEntity:f}){let{isLoading:h}=r;if(h)return jsxRuntime.jsx(J,{className:nr(l)});let b=pl(e,a),x=Se(i,t),y=Se(f,t),v=b,S=false,w=false;if(u&&b&&typeof b=="string")if(typeof u=="boolean")w=true;else {let{position:P="end",length:O=16,ellipsis:G="...",tooltip:K=true}=u;if(b.length>O){switch(P){case "start":v=us(b,O);break;case "middle":v=ua(b,O);break;case "end":v=ps(b,O,G);break}S=K;}}let N=g&&y?{"data-pii-type":g,"data-pii-entity":y}:{},R=Object.keys(N).length>0,k=jsxRuntime.jsx("span",{className:w?"truncate":"",...N,children:v}),T=S?jsxRuntime.jsx(Zt,{content:R?jsxRuntime.jsx("span",{...N,children:String(b)}):String(b),children:k}):k,A=jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[o&&jsxRuntime.jsx("span",{className:"text-text-secondary",children:o}),T,n&&jsxRuntime.jsx("span",{className:"text-text-secondary",children:n})]}),M=A;if(d&&b&&b!==a){let P=typeof d=="function"?d(t):String(b);M=jsxRuntime.jsx(Oo,{value:P,size:"sm",children:A});}if(x){let P=Me(m,p);return jsxRuntime.jsx("div",{className:P,children:ao(M,x,t,s,c,l)})}let E=Me(m,tailwindMerge.twMerge(Ar(l),p));return jsxRuntime.jsx("div",{className:E,children:M})}var TP={sm:"sm:hidden",md:"md:hidden",lg:"lg:hidden",xl:"xl:hidden"},PP={sm:"hidden sm:grid",md:"hidden md:grid",lg:"hidden lg:grid",xl:"hidden xl:grid"};function Cl(e,t){return t.accessor?typeof t.accessor=="function"?t.accessor(e):e[t.accessor]:null}function Sl(e,t,r,o){if(r.cell){let n=r.cell,a=typeof r.cellProps=="function"?r.cellProps(e,t):r.cellProps;return jsxRuntime.jsx(n,{value:e,row:t,context:o,...a})}return r.render?r.render(e,t,o):e?.toString()??"\u2014"}function Nl({row:e,columns:t,density:r,isLoading:o,onClick:n}){let a=t.filter(d=>d.mobile!==false).map(d=>{let m=d.mobile===false?null:d.mobile;return {...d,mobilePriority:m?.priority??2,mobileFormat:m?.format??"secondary",showLabel:m?.label??m?.format==="secondary",icon:m?.icon}}).sort((d,m)=>d.mobilePriority-m.mobilePriority),i=a.filter(d=>d.mobilePriority===1||d.mobileFormat==="primary"),s=a.filter(d=>d.mobilePriority===2&&d.mobileFormat!=="primary"),c=a.filter(d=>d.mobileFormat==="badge"),l={isLoading:!!o,rowIndex:0,columnIndex:0,density:r};return jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("border-b border-border-default bg-background-surface transition-colors",n&&"cursor-pointer hover:bg-background-hover active:bg-background-pressed",{compact:"px-3 py-2",default:"px-4 py-3",relaxed:"px-4 py-4"}[r]),onClick:n,role:n?"button":void 0,tabIndex:n?0:void 0,children:[i.length>0&&jsxRuntime.jsxs("div",{className:"mb-2 flex items-start justify-between",children:[jsxRuntime.jsx("div",{className:"flex-1",children:i.map(d=>{let m=Cl(e,d);return jsxRuntime.jsx("div",{className:"font-medium text-text-primary [&>*]:!justify-start [&>*]:!text-left",children:Sl(m,e,d,l)},d.id)})}),c.length>0&&jsxRuntime.jsx("div",{className:"ml-2 flex flex-wrap gap-1",children:c.map(d=>{let m=Cl(e,d);return jsxRuntime.jsx("div",{className:"inline-flex",children:Sl(m,e,d,l)},d.id)})})]}),s.length>0&&jsxRuntime.jsx("div",{className:"space-y-1",children:s.map(d=>{let m=Cl(e,d),p=d.showLabel&&d.label;return jsxRuntime.jsxs("div",{className:"flex items-center text-sm text-text-secondary",children:[d.icon&&jsxRuntime.jsx(B,{name:d.icon,className:"mr-1.5 h-4 w-4 flex-shrink-0"}),p&&jsxRuntime.jsxs("span",{className:"mr-1 font-medium",children:[d.label,":"]}),jsxRuntime.jsx("span",{className:"truncate [&>*]:!justify-start [&>*]:!text-left",children:Sl(m,e,d,l)})]},d.id)})})]})}function kl({row:e,columns:t,density:r,isLoading:o,onClick:n}){let a=t.filter(c=>c.mobile!==false),i={isLoading:!!o,rowIndex:0,columnIndex:0,density:r};return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("border-b border-border-default bg-background-surface transition-colors",n&&"cursor-pointer hover:bg-background-hover active:bg-background-pressed",{compact:"px-3 py-2",default:"px-4 py-3",relaxed:"px-4 py-4"}[r]),onClick:n,role:n?"button":void 0,tabIndex:n?0:void 0,children:jsxRuntime.jsx("div",{className:"space-y-2",children:a.map((c,l)=>{let u=Cl(e,c),d=l===0;return jsxRuntime.jsxs("div",{children:[!d&&jsxRuntime.jsx("div",{className:"text-xs text-text-secondary",children:c.label}),jsxRuntime.jsx("div",{className:tailwindMerge.twMerge(d?"font-medium text-text-primary":"text-sm text-text-primary","[&>*]:!justify-start [&>*]:!text-left"),children:Sl(u,e,c,i)})]},c.id)})})})}function hx(e="md"){return {mobile:TP[e],desktop:PP[e]}}function yx({density:e}){return jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("border-b border-border-default bg-background-surface",{compact:"px-3 py-2",default:"px-4 py-3",relaxed:"px-4 py-4"}[e]),children:[jsxRuntime.jsx("div",{className:"mb-2 h-5 w-3/4 animate-pulse rounded bg-background-muted"}),jsxRuntime.jsxs("div",{className:"space-y-1",children:[jsxRuntime.jsx("div",{className:"h-4 w-1/2 animate-pulse rounded bg-background-muted"}),jsxRuntime.jsx("div",{className:"h-4 w-2/3 animate-pulse rounded bg-background-muted"})]})]})}var HP={compact:"py-1.5 px-3 text-sm",default:"py-3 px-4 text-sm",relaxed:"py-4 px-4 text-base"},WP={left:"text-left justify-start",center:"text-center justify-center",right:"text-right justify-end"};function GP(e){let t={};return e.width!==void 0&&(t.width=typeof e.width=="number"?`${e.width}px`:e.width),e.minWidth!==void 0&&(t.minWidth=typeof e.minWidth=="number"?`${e.minWidth}px`:e.minWidth),e.maxWidth!==void 0&&(t.maxWidth=typeof e.maxWidth=="number"?`${e.maxWidth}px`:e.maxWidth),e.flex!==void 0&&(t.flex=`${e.flex} 1 0`),t}function UP({column:e,sortConfig:t,onSort:r,stickyHeader:o,stickyFirstColumn:n,isFirstColumn:a,density:i="default",isLoading:s=false}){let c=e.reorderable!==false,{attributes:l,listeners:u,setNodeRef:d,transform:m,transition:p,isDragging:g}=sortable.useSortable({id:e.id,disabled:!c||s}),f=t?.columnId===e.id,h=f?t.direction:null,b=n&&a,x={...GP(e),transform:utilities.CSS.Transform.toString(m),transition:p,opacity:g?.8:1,zIndex:g?50:void 0};return jsxRuntime.jsx("div",{ref:d,className:tailwindMerge.twMerge("flex items-center border-b border-border-default bg-background-surface",e.sortable?"gap-2":"gap-1",HP[i],WP[e.align||"left"],o&&"sticky top-0 z-10",b&&"sticky left-0 z-20 shadow-[2px_0_4px_-2px_rgba(0,0,0,0.1)]",o&&b&&"z-30",e.sortable&&!s&&"hover:bg-background-hover",s&&"cursor-not-allowed opacity-60",f?"font-bold text-text-primary":"font-medium text-text-secondary",g&&"bg-background-hover"),style:x,role:"columnheader","aria-sort":f?h==="asc"?"ascending":"descending":"none","aria-disabled":s,...l,...u,children:s?jsxRuntime.jsx(J,{className:"h-4 w-24"}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("span",{className:"flex-1 truncate cursor-pointer",onClick:()=>!s&&e.sortable&&r(e.id),children:e.label}),e.sortable&&jsxRuntime.jsx("button",{type:"button",className:"flex flex-shrink-0 cursor-pointer",onClick:()=>!s&&r(e.id),"aria-label":`Sort by ${e.label}`,children:f?jsxRuntime.jsx(B,{name:h==="asc"?"CaretUp":"CaretDown",size:14,weight:"bold",className:"text-text-primary"}):jsxRuntime.jsx(B,{name:"CaretUpDown",size:12,className:"text-text-secondary opacity-40"})})]})})}function Cx({columns:e,columnOrder:t,onColumnOrderChange:r,sortConfig:o,onSort:n,stickyHeader:a,stickyFirstColumn:i,density:s="default",isLoading:c=false}){let l=core.useSensors(core.useSensor(core.PointerSensor,{activationConstraint:{distance:5}}),core.useSensor(core.KeyboardSensor,{coordinateGetter:sortable.sortableKeyboardCoordinates})),u=new Map(e.map(p=>[p.id,p])),d=p=>{let{active:g,over:f}=p;if(f&&g.id!==f.id){let h=t.indexOf(g.id),b=t.indexOf(f.id);if(u.get(f.id)?.reorderable===false)return;let y=0;for(let N=0;N<t.length&&u.get(t[N])?.reorderable===false;N++)y=N+1;if(b<y)return;let v=Math.min(h,b),S=Math.max(h,b);for(let N=v;N<=S;N++){if(N===h)continue;if(u.get(t[N])?.reorderable===false)return}let w=sortable.arrayMove(t,h,b);r(w);}},m=t.map(p=>u.get(p)).filter(p=>p!==void 0);return jsxRuntime.jsx(core.DndContext,{sensors:l,collisionDetection:core.closestCenter,onDragEnd:d,children:jsxRuntime.jsx(sortable.SortableContext,{items:t,strategy:sortable.horizontalListSortingStrategy,children:jsxRuntime.jsx("div",{className:"contents",role:"rowgroup",children:m.map((p,g)=>jsxRuntime.jsx(UP,{column:p,sortConfig:o,onSort:n,stickyHeader:a,stickyFirstColumn:i,isFirstColumn:g===0,density:s,isLoading:c},p.id))})})})}var Yu={compact:"py-1.5 px-3 text-sm",default:"py-3 px-4 text-sm",relaxed:"py-4 px-4 text-base"},Ju={left:"text-left justify-start",center:"text-center justify-center",right:"text-right justify-end"},qP={full:"w-full",auto:"w-auto inline-block",contained:"w-full max-w-6xl mx-auto"},QP={auto:"table-auto",fixed:"table-fixed",responsive:"table-auto"};function Xu(e){let t={};return e.width!==void 0&&(t.width=typeof e.width=="number"?`${e.width}px`:e.width),e.minWidth!==void 0&&(t.minWidth=typeof e.minWidth=="number"?`${e.minWidth}px`:e.minWidth),e.maxWidth!==void 0&&(t.maxWidth=typeof e.maxWidth=="number"?`${e.maxWidth}px`:e.maxWidth),e.flex!==void 0&&(t.flex=`${e.flex} 1 0`),t}function ZP(e,t){return t.accessor?typeof t.accessor=="function"?t.accessor(e):e[t.accessor]:null}function _P({column:e,sortConfig:t,onSort:r,stickyHeader:o,stickyFirstColumn:n,isFirstColumn:a,density:i="default",isLoading:s=false}){let c=t?.columnId===e.id,l=c?t.direction:null,u=n&&a;return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("flex items-center border-b border-border-default bg-background-surface",e.sortable?"gap-2":"gap-1",Yu[i],Ju[e.align||"left"],o&&"sticky top-0 z-10",u&&"sticky left-0 z-20 shadow-[2px_0_4px_-2px_rgba(0,0,0,0.1)]",o&&u&&"z-30",e.sortable&&!s&&"cursor-pointer hover:bg-background-hover",s&&"cursor-not-allowed opacity-60",c?"font-bold text-text-primary":"font-medium text-text-secondary"),onClick:()=>!s&&e.sortable&&r(e.id),role:"columnheader","aria-sort":c?l==="asc"?"ascending":"descending":"none","aria-disabled":s,style:Xu(e),children:s?jsxRuntime.jsx(J,{className:"h-4 w-24"}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("span",{className:"truncate",children:e.label}),e.sortable&&jsxRuntime.jsx("div",{className:"flex flex-shrink-0",children:c?jsxRuntime.jsx(B,{name:l==="asc"?"CaretUp":"CaretDown",size:14,weight:"bold",className:"text-text-primary"}):jsxRuntime.jsx(B,{name:"CaretUpDown",size:12,className:"text-text-secondary opacity-40"})})]})})}function $P({column:e,row:t,rowIndex:r,columnIndex:o,isHovered:n,density:a="default",className:i,stickyFirstColumn:s}){let c=s&&o===0,l=ZP(t,e),u={isLoading:false,isHovered:n,rowIndex:r,columnIndex:o,density:a},d;if(e.cell){let m=e.cell,p=typeof e.cellProps=="function"?e.cellProps(l,t):e.cellProps;d=jsxRuntime.jsx(m,{value:l,row:t,context:u,...p});}else e.render?d=e.render(l,t,u):d=jsxRuntime.jsx("span",{className:"truncate",children:l?.toString()??""});if(e.popover){let m=e.popover,p,g="top",f=false,h="hover";typeof m=="string"?p=m:typeof m=="function"?p=m(l,t):(p=typeof m.content=="function"?m.content(l,t):m.content,g=m.placement||"top",f=m.showArrow??false,h=m.trigger||"hover"),d=jsxRuntime.jsxs(reactAriaComponents.DialogTrigger,{...h==="hover"?{trigger:"longPress"}:{},children:[jsxRuntime.jsx("div",{className:"cursor-help",children:d}),jsxRuntime.jsx(lt,{placement:g,showArrow:f,children:jsxRuntime.jsx("div",{className:"p-2",children:p})})]});}return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("flex items-center border-b border-border-default bg-background-surface",e.noCellPadding?"":Yu[a],Ju[e.align||"left"],c&&"sticky left-0 z-10 shadow-[2px_0_4px_-2px_rgba(0,0,0,0.1)]",i),role:"cell",style:Xu(e),children:d})}function e2({column:e,rowIndex:t,columnIndex:r,density:o="default",stickyFirstColumn:n}){let a=n&&r===0,i={isLoading:true,rowIndex:t,columnIndex:r,density:o},s;if(e.cell){let c=e.cell,l=typeof e.cellProps=="function"?e.cellProps(null,{}):e.cellProps;s=jsxRuntime.jsx(c,{value:null,row:{},context:i,...l});}else e.render?s=e.render(null,{},i):s=jsxRuntime.jsx(J,{className:"h-4 w-full max-w-[200px]"});return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("flex items-center border-b border-border-default bg-background-surface",e.noCellPadding?"":Yu[o],Ju[e.align||"left"],a&&"sticky left-0 z-10 shadow-[2px_0_4px_-2px_rgba(0,0,0,0.1)]"),role:"cell",style:Xu(e),children:s})}function t2(e,t){let r=new Set(["BUTTON","A","INPUT","SELECT","TEXTAREA"]),o=new Set(["button","link","checkbox","switch","menuitem","option"]),n=e;for(;n&&n!==t;){if(r.has(n.tagName))return true;let a=n.getAttribute("role");if(a&&o.has(a))return true;n=n.parentElement;}return false}function Sx({columns:e,row:t,rowIndex:r,density:o="default",onClick:n,stickyFirstColumn:a}){let[i,s]=Oe.useState(false),c=Oe.useCallback(l=>{if(!n)return;let u=l.target,d=l.currentTarget;t2(u,d)||n(t);},[n,t]);return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("contents group",n&&"cursor-pointer"),role:"row",onClick:c,onMouseEnter:()=>s(true),onMouseLeave:()=>s(false),children:e.map((l,u)=>jsxRuntime.jsx($P,{column:l,row:t,rowIndex:r,columnIndex:u,isHovered:i,density:o,className:n?"group-hover:bg-background-hover":"",stickyFirstColumn:a},l.id))})}function wx({columns:e,rowIndex:t,density:r="default",stickyFirstColumn:o}){return jsxRuntime.jsx("div",{className:"contents",role:"row",children:e.map((n,a)=>jsxRuntime.jsx(e2,{column:n,rowIndex:t,columnIndex:a,density:r,stickyFirstColumn:o},n.id))})}function Nx({columns:e,data:t,className:r,density:o="default",width:n="full",height:a,maxHeight:i,layout:s="auto",mobileRenderer:c="auto",customMobileRowRender:l,mobileBreakpoint:u="md",isLoading:d=false,loadingState:m,loadingRowCount:p=5,onLoadMore:g,hasMore:f=false,enableVirtualization:h,estimatedRowHeight:b,loadingIndicator:x,stickyHeader:y=false,stickyFirstColumn:v=false,onRowClick:S,getRowId:w,hideHeader:N=false,sortConfig:R,onSort:k,"aria-label":T,enableColumnReorder:A=false,columnOrder:M,onColumnOrderChange:E}){let[P,O]=Oe.useState(null),G=R!==void 0,K=G?R:P,W=Oe.useRef(null),q=Oe.useMemo(()=>e.map(ee=>ee.id),[e]),[j,Q]=Oe.useState(q),L=M!==void 0,D=L?M:j;Oe.useEffect(()=>{L||Q(ee=>{let ne=e.map(le=>le.id),V=new Set(ne),z=new Set(ee),se=ee.filter(le=>V.has(le)),ie=ne.filter(le=>!z.has(le));return [...se,...ie]});},[e,L]);let U=Oe.useCallback(ee=>{L||Q(ee),E?.(ee);},[L,E]),I=Oe.useMemo(()=>{if(!A&&!M)return e;let ee=new Map(e.map(ne=>[ne.id,ne]));return D.map(ne=>ee.get(ne)).filter(ne=>ne!==void 0)},[e,D,A,M]),C=Fo({items:t,onLoadMore:g,hasMore:f,isLoading:d,loadingState:m,enableVirtualization:h,estimatedItemSize:b||(o==="compact"?40:o==="relaxed"?60:48),overscan:5}),F=g?C:null,H=F?.scrollRef??W,{loadMoreRef:Y,virtualizer:te,virtualItems:de,isLoadingMore:_,computedLoadingState:ae}=F||{},{gridTemplateColumns:fe,totalMinWidth:re}=Oe.useMemo(()=>{let ee=0;return {gridTemplateColumns:I.map(V=>{if(V.minWidth?ee+=typeof V.minWidth=="number"?V.minWidth:0:V.width&&typeof V.width=="number"&&(ee+=V.width),V.width)return typeof V.width=="number"?`${V.width}px`:V.width;if(V.flex)return `${V.flex}fr`;if(V.minWidth&&V.maxWidth){let z=typeof V.minWidth=="number"?`${V.minWidth}px`:V.minWidth,se=typeof V.maxWidth=="number"?`${V.maxWidth}px`:V.maxWidth;return `minmax(${z}, ${se})`}return V.minWidth?`minmax(${typeof V.minWidth=="number"?`${V.minWidth}px`:V.minWidth}, 1fr)`:V.maxWidth?`minmax(0, ${typeof V.maxWidth=="number"?`${V.maxWidth}px`:V.maxWidth})`:"1fr"}).join(" "),totalMinWidth:ee}},[I]),ce=Oe.useCallback(ee=>{if(!e.find(z=>z.id===ee)?.sortable)return;let V;K?.columnId===ee?V={columnId:ee,direction:K.direction==="asc"?"desc":"asc"}:V={columnId:ee,direction:"asc"},G||O(V),k?.(V);},[e,K,k,G]),xe=ae==="loading"||d&&t.length===0,he={};a?(he.height=typeof a=="number"?`${a}px`:a,he.overflowY="auto"):i?(he.maxHeight=typeof i=="number"?`${i}px`:i,he.overflowY="auto"):g&&(he.height="600px",he.overflowY="auto");let De=tailwindMerge.twMerge(qP[n],!g&&(s==="responsive"?"overflow-x-auto scrollbar-visible":"overflow-auto scrollbar-visible"),r),$e=hx(u),Do=c!=="none",lr=(ee,ne)=>Do?c==="custom"&&l?l(ee,ne):jsxRuntime.jsx(c==="cards"?kl:Nl,{row:ee,columns:I,density:o,isLoading:d,onClick:S?()=>S(ee):void 0}):null,$=te?de?.map(ee=>({virtualItem:ee,row:t[ee.index],index:ee.index}))||[]:t.map((ee,ne)=>({row:ee,index:ne,virtualItem:null}));return jsxRuntime.jsxs("div",{ref:H,className:De,style:{...he,position:te?"relative":void 0},children:[jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("grid border-separate border-spacing-0",QP[s],n==="auto"?"inline-grid w-auto":"w-full",Do&&$e.desktop),role:"table","aria-label":T,style:{gridTemplateColumns:fe,minWidth:re>0?`${re}px`:void 0},children:[!N&&(A?jsxRuntime.jsx(Cx,{columns:e,columnOrder:D,onColumnOrderChange:U,sortConfig:K,onSort:ce,stickyHeader:y,stickyFirstColumn:v,density:o,isLoading:xe}):jsxRuntime.jsx("div",{className:"contents",role:"rowgroup",children:I.map((ee,ne)=>jsxRuntime.jsx(_P,{column:ee,sortConfig:K,onSort:ce,stickyHeader:y,stickyFirstColumn:v,isFirstColumn:ne===0,density:o,isLoading:xe},ee.id))})),te?jsxRuntime.jsx("div",{className:"col-span-full",style:{gridColumn:"1 / -1",height:`${te.getTotalSize()}px`,position:"relative"},role:"rowgroup",children:xe?Array.from({length:p}).map((ee,ne)=>jsxRuntime.jsx("div",{className:"contents",children:jsxRuntime.jsx(wx,{columns:I,rowIndex:ne,density:o,stickyFirstColumn:v})},`loading-${ne}`)):t.length>0?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[$.map(({row:ee,index:ne,virtualItem:V})=>{if(!ee||!V)return null;let z=w?w(ee):`row-${ne}`;return jsxRuntime.jsx("div",{style:{position:"absolute",top:0,left:0,width:"100%",display:"grid",gridTemplateColumns:fe,transform:`translateY(${V.start}px)`},"data-index":V.index,ref:te.measureElement,children:jsxRuntime.jsx(Sx,{columns:I,row:ee,rowIndex:ne,density:o,onClick:S,stickyFirstColumn:v})},z)}),_&&jsxRuntime.jsx("div",{style:{position:"absolute",top:`${te.getTotalSize()}px`,left:0,width:"100%"},children:x||jsxRuntime.jsx(Nr,{state:"loading-more"})})]}):jsxRuntime.jsx("div",{className:"py-12 text-center text-text-secondary",children:"No data available"})}):jsxRuntime.jsx("div",{className:"contents",role:"rowgroup",children:xe?Array.from({length:p}).map((ee,ne)=>jsxRuntime.jsx(wx,{columns:I,rowIndex:ne,density:o,stickyFirstColumn:v},`loading-${ne}`)):t.length>0?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[$.map(({row:ee,index:ne})=>{if(!ee)return null;let V=w?w(ee):`row-${ne}`;return jsxRuntime.jsx(Sx,{columns:I,row:ee,rowIndex:ne,density:o,onClick:S,stickyFirstColumn:v},V)}),_&&jsxRuntime.jsx("div",{className:"col-span-full",style:{gridColumn:"1 / -1"},children:x||jsxRuntime.jsx(Nr,{state:"loading-more"})})]}):jsxRuntime.jsx("div",{className:"col-span-full py-12 text-center text-text-secondary",role:"row",children:jsxRuntime.jsx("div",{role:"cell",children:"No data available"})})})]}),Do&&jsxRuntime.jsx("div",{className:$e.mobile,children:xe?Array.from({length:p}).map((ee,ne)=>jsxRuntime.jsx(yx,{density:o},`mobile-loading-${ne}`)):t.length>0?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[$.map(({row:ee,index:ne})=>{if(!ee)return null;let V=w?w(ee):`mobile-row-${ne}`;return jsxRuntime.jsx("div",{className:"border-b border-border-default last:border-b-0",children:lr(ee,ne)},V)}),_&&(x||jsxRuntime.jsx(Nr,{state:"loading-more"}))]}):jsxRuntime.jsx("div",{className:"py-12 text-center text-text-secondary",children:"No data available"})}),g&&f&&!xe&&(te?jsxRuntime.jsx("div",{ref:Y,style:{position:"absolute",top:`${te.getTotalSize()}px`,left:0,width:"100%",height:1}}):jsxRuntime.jsx("div",{ref:Y,className:"h-px w-full"}))]})}function Tx({status:e,alertCount:t,showCount:r=false,isLoading:o,size:n="sm",shape:a="pill",...i}){if(o)return jsxRuntime.jsx(J,{className:"inline-flex h-6 w-20"});let s={healthy:"success",warning:"warning",error:"error",unknown:"neutral"},c={healthy:"Healthy",warning:"Warning",error:"Error",unknown:"Unknown"},l=e==="warning"||e==="error",u=r&&t?`${c[e]} (${t})`:c[e];return jsxRuntime.jsx(nt,{variant:s[e],size:n,shape:a,dot:l,dotPulse:l,...i,children:u})}var o2={battery:"BatteryHigh",charger:"ChargingStation",thermostat:"ThermometerSimple",inverter:"Power",vehicle:"Car",water_heater:"DropHalfBottom",meter:"Gauge",gateway:"WifiHigh",other:"Cube",unknown:"Question"},n2={battery:"Battery",charger:"Charger",thermostat:"Thermostat",inverter:"Inverter",vehicle:"Vehicle",water_heater:"Water Heater",meter:"Meter",gateway:"Gateway",other:"Other",unknown:"Unknown"};function Rx({deviceType:e,iconName:t,size:r="md",showLabel:o=false,className:n}){let a=t||(e?o2[e]:"Question"),i=e?n2[e]:void 0;return jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("inline-flex items-center",o?"flex-col gap-1":"gap-0",n),children:[jsxRuntime.jsx(B,{name:a,size:r}),o&&i&&jsxRuntime.jsx("span",{className:"text-xs text-text-secondary",children:i})]})}function Li({children:e,title:t,headerContent:r,titleAlign:o="left",hideCloseIcon:n=false,hasBackArrow:a=false,onBack:i,isOpen:s,slideInFrom:c="right",transparentOverlay:l=false,onClose:u,className:d,primaryAction:m,secondaryAction:p,tertiaryAction:g,footerContent:f,contentPadding:h=true,maxWidth:b="400px"}){if(!s)return null;let x=t||r,y=m||p||g||f;return jsxRuntime.jsx(zr,{children:jsxRuntime.jsx(cr,{isOpen:s,onOpenChange:v=>!v&&u?.(),isDismissable:true,transparent:l,children:jsxRuntime.jsx(reactAriaComponents.Modal,{className:"outline-none focus:outline-none focus-visible:outline-none ring-0 focus:ring-0 focus-visible:ring-0",children:jsxRuntime.jsxs(reactAriaComponents.Dialog,{className:tailwindMerge.twMerge("fixed top-0 bottom-0 flex flex-col bg-background-surface shadow-xl overflow-hidden",c==="right"?"right-0":"left-0",c==="right"?"animate-in slide-in-from-right duration-300 ease-out":"animate-in slide-in-from-left duration-300 ease-out","data-[exiting]:animate-out",c==="right"?"data-[exiting]:slide-out-to-right":"data-[exiting]:slide-out-to-left","data-[exiting]:duration-200 data-[exiting]:ease-in","outline-none focus-visible:outline focus-visible:outline-2 focus-visible:outline-action-default focus-visible:outline-offset-0",d),style:{maxWidth:b,width:"100%"},children:[x&&(a&&i?jsxRuntime.jsx(Ht,{title:t,headerContent:r,titleAlign:o,hideCloseIcon:n,hasBackArrow:true,onBack:i,onClose:u}):jsxRuntime.jsx(Ht,{title:t,headerContent:r,titleAlign:o,hideCloseIcon:n,onClose:u})),jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("flex-1 overflow-y-auto overscroll-contain",h?"px-6 py-6":"p-0"),children:e}),y&&jsxRuntime.jsx(Io,{primaryAction:m,secondaryAction:p,tertiaryAction:g,footerContent:f})]})})})})}Li.displayName="Drawer";function Dx({status:e,programName:t,isLoading:r,size:o="sm",shape:n="pill",...a}){if(r)return jsxRuntime.jsx(J,{className:"inline-flex h-6 w-20"});let i={enrolled:"success",eligible:"info",pending:"warning",not_eligible:"neutral",opted_out:"neutral"},s={enrolled:"Enrolled",eligible:"Eligible",pending:"Pending",not_eligible:"Not Eligible",opted_out:"Opted Out"},c=jsxRuntime.jsx(nt,{variant:i[e],size:o,shape:n,...a,children:s[e]});return t?jsxRuntime.jsx(Zt,{content:t,children:c}):c}function Lx({value:e,onChange:t,onUrlChange:r,accept:o="image/*",maxSize:n,isDisabled:a=false,onUpload:i,className:s,showPreview:c=true,placeholder:l="Drop files here or click to browse"}){let[u,d]=Oe.useState(false),[m,p]=Oe.useState(false),[g,f]=Oe.useState(null),[h,b]=Oe.useState(e),x=Oe.useRef(null),y=async w=>{if(f(null),n&&w.size>n){f(`File size must be less than ${(n/1024/1024).toFixed(2)}MB`);return}if(c&&w.type.startsWith("image/")){let N=new FileReader;N.onloadend=()=>{b(N.result);},N.readAsDataURL(w);}if(i){p(true);try{let N=await i(w);b(N),r?.(N);}catch(N){f("Failed to upload file"),console.error("Upload error:",N);}finally{p(false);}}t?.(w,h);},v=async w=>{try{let N=w.items;if(N.length>0){let R=N[0];if(R.kind==="file"){let k=await R.getFile();k&&y(k);}}}catch(N){f("Failed to upload file"),console.error("Upload error:",N);}finally{d(false);}},S=()=>{b(void 0),f(null),t?.(null),r?.(""),x.current&&(x.current.value="");};return jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("w-full",s),children:[jsxRuntime.jsxs(reactAriaComponents.DropZone,{className:tailwindMerge.twMerge("relative flex min-h-[200px] w-full flex-col items-center justify-center rounded-lg border-2 border-dashed transition-colors",u?"border-action-brand bg-action-brand/5":"border-border-muted hover:border-border-default",a&&"pointer-events-none opacity-50",g&&"border-feedback-error-border bg-feedback-error-background/50"),onDrop:v,onDropEnter:()=>d(true),onDropExit:()=>d(false),children:[h?jsxRuntime.jsxs("div",{className:"relative flex h-full w-full items-center justify-center p-4",children:[c&&(h.startsWith("data:image")||h.startsWith("http"))?jsxRuntime.jsx("img",{src:h,alt:"Preview",className:"max-h-48 max-w-full rounded-md object-contain"}):jsxRuntime.jsxs("div",{className:"flex flex-col items-center gap-2",children:[jsxRuntime.jsx(lucideReact.Image,{className:"h-12 w-12 text-text-secondary"}),jsxRuntime.jsx("span",{className:"text-sm text-text-secondary",children:"File uploaded"})]}),!a&&jsxRuntime.jsx(Z,{variant:"icon",size:"sm",onPress:S,className:"absolute right-2 top-2 bg-background-surface shadow-md",children:jsxRuntime.jsx(lucideReact.X,{className:"h-4 w-4"})})]}):jsxRuntime.jsxs("div",{className:"flex flex-col items-center gap-4 p-6",children:[jsxRuntime.jsx(lucideReact.Upload,{className:"h-12 w-12 text-text-secondary"}),jsxRuntime.jsxs("div",{className:"text-center",children:[jsxRuntime.jsx("p",{className:"text-sm text-text-primary",children:l}),jsxRuntime.jsx("p",{className:"mt-1 text-xs text-text-secondary",children:o==="image/*"?"PNG, JPG, GIF up to 10MB":`Accepts ${o}`})]}),jsxRuntime.jsx(reactAriaComponents.FileTrigger,{acceptedFileTypes:o.split(","),onSelect:w=>{let N=Array.from(w||[]);N.length>0&&y(N[0]);},children:jsxRuntime.jsx(Z,{variant:"secondary",size:"sm",isDisabled:a,children:"Choose File"})})]}),m&&jsxRuntime.jsx("div",{className:"absolute inset-0 flex items-center justify-center rounded-lg bg-background-surface/80",children:jsxRuntime.jsxs("div",{className:"flex flex-col items-center gap-2",children:[jsxRuntime.jsx("div",{className:"h-8 w-8 animate-spin rounded-full border-2 border-action-brand border-t-transparent"}),jsxRuntime.jsx("span",{className:"text-sm text-text-secondary",children:"Uploading..."})]})})]}),g&&jsxRuntime.jsx("p",{className:"mt-2 text-sm text-feedback-error-text",children:g})]})}function Ix({version:e,isLatest:t,updateAvailable:r,isLoading:o,size:n="sm",shape:a="rounded",...i}){if(o)return jsxRuntime.jsx(J,{className:"inline-flex h-6 w-16"});let s="neutral",c=e;return t?s="success":r&&(s="warning",c=`${e} (Update)`),jsxRuntime.jsx(nt,{variant:s,size:n,shape:a,...i,children:c})}function Ba(e){return jsxRuntime.jsx(reactAriaComponents.Form,{validationBehavior:"aria",...e,className:tailwindMerge.twMerge("flex flex-col gap-6",e.className)})}function Bx({placeholder:e="Search...",value:t,onChange:r,isOpen:o,onOpenChange:n,trigger:a,children:i,showShortcutHint:s=true,showInput:c=true,className:l}){let[u,d]=Oe.useState(false),m=Jt("(max-width: 767px)"),p=o!==void 0?o:u,g=Oe.useCallback(x=>{n?n(x):d(x);},[n]);Oe.useEffect(()=>{let x=y=>{(y.metaKey||y.ctrlKey)&&y.key==="k"&&(y.preventDefault(),g(!p)),y.key==="Escape"&&p&&g(false);};return window.addEventListener("keydown",x),()=>window.removeEventListener("keydown",x)},[p,g]);let f=Oe.useCallback(x=>{r?.(x);},[r]),h=jsxRuntime.jsxs("button",{type:"button",className:"flex items-center gap-2 px-3 py-2 text-sm text-text-secondary hover:text-text-primary hover:bg-background-hover rounded-md transition-colors","aria-label":"Open search",children:[jsxRuntime.jsx(B,{name:"MagnifyingGlass",size:18}),!m&&s&&jsxRuntime.jsxs("span",{className:"hidden md:flex items-center gap-1 text-xs",children:[jsxRuntime.jsx("kbd",{className:"px-1.5 py-0.5 bg-background-muted border border-border-muted rounded text-xs",children:navigator.platform.includes("Mac")?"\u2318":"Ctrl"}),jsxRuntime.jsx("kbd",{className:"px-1.5 py-0.5 bg-background-muted border border-border-muted rounded text-xs",children:"K"})]})]}),b=a===null||Oe.isValidElement(a)&&a.type===Oe.Fragment&&!a.props.children;return m?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[!b&&(a?jsxRuntime.jsx("button",{type:"button",onClick:()=>g(true),className:"appearance-none bg-transparent border-none p-0 cursor-pointer",children:a}):jsxRuntime.jsx("button",{type:"button",onClick:()=>g(true),className:"appearance-none bg-transparent border-none p-0 cursor-pointer",children:h})),jsxRuntime.jsx(ct,{isOpen:p,onClose:()=>g(false),hideCloseIcon:false,contentPadding:false,maxHeight:"90vh",children:jsxRuntime.jsxs("div",{className:"flex flex-col h-full",children:[c&&jsxRuntime.jsx("div",{className:"p-4 border-b border-border-muted flex-shrink-0",children:jsxRuntime.jsx(Lr,{value:t,onChange:f,placeholder:e,showSearchIcon:true,isClearable:!!t,onClear:()=>r?.(""),reserveErrorSpace:false,className:l,autoFocus:true})}),jsxRuntime.jsx("div",{className:"flex-1 min-h-0 overflow-hidden",children:i})]})})]}):b?null:jsxRuntime.jsxs(reactAriaComponents.DialogTrigger,{isOpen:p,onOpenChange:g,children:[a||h,jsxRuntime.jsx(lt,{placement:"bottom",className:"w-[600px] max-w-[90vw] bg-background-surface shadow-xl border border-border-default rounded-lg overflow-hidden",children:jsxRuntime.jsxs("div",{className:"flex flex-col",children:[c&&jsxRuntime.jsx("div",{className:"p-4 border-b border-border-muted",children:jsxRuntime.jsx(Lr,{value:t,onChange:f,placeholder:e,showSearchIcon:true,isClearable:!!t,onClear:()=>r?.(""),reserveErrorSpace:false,className:l,autoFocus:true})}),jsxRuntime.jsx("div",{className:"max-h-[500px] overflow-hidden",children:i})]})})]})}function Ox({placeholder:e="Search...",value:t,onChange:r,isOpen:o,onOpenChange:n,children:a,maxHeight:i="400px",variant:s="default",className:c}){let[l,u]=Oe.useState(false),d=Jt("(max-width: 767px)"),m=Oe.useRef(null),p=Oe.useRef(null),g=o!==void 0?o:l,f=Oe.useCallback(T=>{n?n(T):u(T);},[n]);Oe.useEffect(()=>{let T=A=>{(A.metaKey||A.ctrlKey)&&A.key==="k"&&(A.preventDefault(),f(!g)),A.key==="Escape"&&g&&f(false);};return window.addEventListener("keydown",T),()=>window.removeEventListener("keydown",T)},[g,f]),Oe.useEffect(()=>{g&&!d&&m.current&&setTimeout(()=>{m.current?.querySelector("input")?.focus();},0);},[g,d]),Oe.useEffect(()=>{if(!g||d)return;let T=A=>{let M=A.target,E=m.current?.contains(M),P=p.current?.contains(M);!E&&!P&&f(false);};return document.addEventListener("mousedown",T,true),()=>document.removeEventListener("mousedown",T,true)},[g,d,f]);let h=T=>{r?.(T);},b=Oe.useCallback(()=>{f(false);},[f]),x=Oe.useCallback(()=>{r?.("");},[r]),[y,v]=Oe.useState(null);Oe.useEffect(()=>{if(g&&!d&&m.current){let T=null,A=()=>{let E=m.current?.getBoundingClientRect();E&&v({top:E.bottom+8,left:E.left,width:E.width});},M=()=>{T===null&&(T=requestAnimationFrame(()=>{A(),T=null;}));};return A(),window.addEventListener("resize",M),window.addEventListener("scroll",M,true),()=>{window.removeEventListener("resize",M),window.removeEventListener("scroll",M,true),T!==null&&cancelAnimationFrame(T);}}},[g,d]);let S=Oe.useCallback(()=>{f(true);},[f]);if(d)return jsxRuntime.jsxs("div",{className:c,children:[jsxRuntime.jsx("button",{type:"button",onClick:S,className:"flex items-center justify-center w-10 h-10 rounded-lg hover:bg-background-hover transition-colors","aria-label":"Open search",children:jsxRuntime.jsx(B,{name:"MagnifyingGlass",size:"md"})}),jsxRuntime.jsxs(ct,{isOpen:g,onClose:b,contentPadding:false,height:"80vh",children:[jsxRuntime.jsxs("div",{className:"flex items-center gap-2 px-4 pt-4",children:[jsxRuntime.jsx("div",{className:"flex-1",children:jsxRuntime.jsx(Lr,{value:t,onChange:h,placeholder:e,showSearchIcon:true,isClearable:!!t,onClear:x,reserveErrorSpace:false,autoFocus:true})}),jsxRuntime.jsx(Z,{variant:"icon",onPress:b,"aria-label":"Close search",className:"flex-shrink-0",children:jsxRuntime.jsx(B,{name:"X",size:"md"})})]}),jsxRuntime.jsx("div",{className:"mt-4",children:a})]})]},"mobile");let w=T=>{let M=T.target.tagName==="INPUT";if(T.key==="ArrowDown"&&g&&M){T.preventDefault();let E=p.current?.querySelector("[data-search-result]");E&&E.focus();}},N=T=>{let A=T.target;if(!A.hasAttribute("data-search-result"))return;let E=Array.from(p.current?.querySelectorAll("[data-search-result]")||[]),P=E.indexOf(A);if(T.key==="ArrowDown"){T.preventDefault(),T.stopPropagation();let O=Math.min(P+1,E.length-1);E[O]?.focus();}else if(T.key==="ArrowUp")if(T.preventDefault(),T.stopPropagation(),P===0)m.current?.querySelector("input")?.focus();else {let O=Math.max(P-1,0);E[O]?.focus();}else T.key==="Escape"&&(T.preventDefault(),T.stopPropagation(),f(false),m.current?.querySelector("input")?.focus());},R=g&&y&&typeof document<"u"?reactDom.createPortal(jsxRuntime.jsx("div",{ref:p,style:{position:"fixed",top:`${y.top}px`,left:`${y.left}px`,width:`${y.width}px`,zIndex:9999},role:"listbox",onKeyDown:N,children:jsxRuntime.jsx("div",{className:"bg-background-surface shadow-2xl border border-border-default rounded-lg overflow-hidden animate-in fade-in zoom-in-95 duration-200",children:jsxRuntime.jsx("div",{className:"overflow-y-auto",style:{maxHeight:i},children:a})})}),document.body):null,k=s==="elevated"?"bg-background-muted/50 border-border-subtle/50 focus-within:bg-background-body focus-within:border-border-focus focus-within:shadow-md backdrop-blur-sm transition-all duration-200":"";return jsxRuntime.jsxs("div",{ref:m,className:`relative w-full ${c||""}`,onKeyDown:w,children:[jsxRuntime.jsx(Lr,{value:t,onChange:h,placeholder:e,showSearchIcon:true,isClearable:!!t,onClear:()=>r?.(""),reserveErrorSpace:false,className:k,onFocus:()=>f(true)}),R]},"desktop")}function Hx({message:e="No results found",suggestion:t,icon:r="MagnifyingGlass",className:o=""}){return jsxRuntime.jsxs("div",{className:`flex flex-col items-center justify-center py-12 px-4 text-center ${o}`,children:[jsxRuntime.jsx("div",{className:"text-text-secondary mb-3",children:jsxRuntime.jsx(B,{name:r,size:48})}),jsxRuntime.jsx("p",{className:"text-base font-medium text-text-primary mb-1",children:e}),t&&jsxRuntime.jsx("p",{className:"text-sm text-text-secondary max-w-xs",children:t})]})}function Gx({count:e=3,className:t=""}){return jsxRuntime.jsx("div",{className:`flex flex-col ${t}`,children:Array.from({length:e}).map((r,o)=>jsxRuntime.jsxs("div",{className:"flex items-center gap-3 px-4 py-2.5",children:[jsxRuntime.jsx(J,{width:20,height:20,variant:"circle"}),jsxRuntime.jsxs("div",{className:"flex-1 min-w-0 space-y-2",children:[jsxRuntime.jsx(J,{width:"60%",height:16}),jsxRuntime.jsx(J,{width:"40%",height:12})]}),jsxRuntime.jsx(J,{width:16,height:16})]},o))})}function Kx({title:e,count:t,isLoading:r,footer:o,children:n,className:a}){return jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("flex flex-col",a),children:[jsxRuntime.jsxs("div",{className:"flex items-baseline gap-1.5 px-4 pt-4 pb-2 border-t border-border-muted first:border-t-0",children:[jsxRuntime.jsx("h3",{className:"text-sm font-semibold text-text-primary",children:e}),!r&&t!==void 0&&jsxRuntime.jsx("span",{className:"text-xs text-text-secondary",children:t}),r&&jsxRuntime.jsx("span",{className:"text-xs text-text-secondary animate-pulse",children:"Loading..."})]}),jsxRuntime.jsx("div",{className:"flex flex-col",children:n}),o&&jsxRuntime.jsx("div",{className:"px-4 py-2 border-t border-border-subtle",children:o})]})}function Yx({id:e,title:t,subtitle:r,metadata:o,icon:n,customIcon:a,onSelect:i,isFocused:s=false,className:c,testId:l}){return jsxRuntime.jsxs("div",{role:"option",tabIndex:0,onClick:()=>{i?.(e);},onKeyDown:m=>{let p=m.currentTarget;switch(m.key){case "Enter":case " ":{m.preventDefault(),i?.(e);break}case "ArrowDown":{m.preventDefault();let g=Array.from(document.querySelectorAll("[data-search-result]")),f=g.indexOf(p);f!==-1&&f<g.length-1&&g[f+1].focus();break}case "ArrowUp":{m.preventDefault();let g=Array.from(document.querySelectorAll("[data-search-result]")),f=g.indexOf(p);if(f>0)g[f-1].focus();else {let h=document.querySelector('input[type="text"][placeholder*="Search"]');h&&h.focus();}break}case "Escape":{m.preventDefault();let g=document.querySelector('input[type="text"][placeholder*="Search"]');g&&g.focus();break}}},"data-testid":l,"data-search-result":true,className:tailwindMerge.twMerge("group flex items-center gap-3 px-4 py-3 cursor-pointer outline-none transition-colors","text-text-primary hover:bg-background-hover","focus-visible:bg-background-muted focus-visible:outline-none","data-[focused]:bg-background-hover",s&&"bg-background-hover",c),"data-focused":s||void 0,children:[a?jsxRuntime.jsx("div",{className:"flex-shrink-0",children:a}):n?jsxRuntime.jsx("div",{className:"flex-shrink-0 text-text-secondary",children:jsxRuntime.jsx(B,{name:n,size:20})}):null,jsxRuntime.jsxs("div",{className:"flex-1 min-w-0",children:[jsxRuntime.jsxs("div",{className:"flex items-baseline gap-2",children:[jsxRuntime.jsx("span",{className:"font-medium text-text-primary truncate",children:t}),o&&jsxRuntime.jsx("span",{className:"text-xs text-text-secondary flex-shrink-0",children:o})]}),r&&jsxRuntime.jsx("div",{className:"text-sm text-text-secondary truncate mt-0.5",children:r})]}),jsxRuntime.jsx("div",{className:"flex-shrink-0 opacity-0 group-hover:opacity-100 group-focus-visible:opacity-100 group-data-[focused]:opacity-100 transition-opacity",children:jsxRuntime.jsx(B,{name:"ArrowRight",size:16,className:"text-text-secondary"})})]})}function Jx({children:e,maxHeight:t="400px",className:r}){return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("overflow-y-auto overscroll-contain","divide-y divide-border-muted",r),style:{maxHeight:t},children:e})}function jx({placeholder:e="Search...",onClick:t,showShortcut:r=true,variant:o="default",className:n=""}){let a=typeof navigator<"u"&&navigator.platform.includes("Mac");return jsxRuntime.jsxs("button",{type:"button",onClick:t,className:`
|
|
29
29
|
flex items-center gap-3 w-full px-4 py-2.5 rounded-lg
|
|
30
30
|
transition-all duration-200 cursor-text
|
|
31
31
|
${{default:`
|
|
@@ -37,12 +37,12 @@
|
|
|
37
37
|
backdrop-blur-sm
|
|
38
38
|
`}[o]}
|
|
39
39
|
${n}
|
|
40
|
-
`,"aria-label":"Open search",children:[jsxRuntime.jsx(B,{name:"MagnifyingGlass",size:18,className:"flex-shrink-0 transition-colors text-text-secondary"}),jsxRuntime.jsx("span",{className:`flex-1 text-left text-sm transition-colors ${o==="elevated"?"text-text-secondary font-normal":"text-text-disabled"}`,children:e}),r&&jsxRuntime.jsxs("div",{className:"hidden sm:flex items-center gap-1 flex-shrink-0",children:[jsxRuntime.jsx("kbd",{className:`px-2 py-1 text-xs font-medium rounded transition-colors ${o==="elevated"?"bg-background-surface/80 border border-border-muted text-text-secondary":"bg-background-muted border border-border-muted"}`,children:a?"\u2318":"Ctrl"}),jsxRuntime.jsx("kbd",{className:`px-2 py-1 text-xs font-medium rounded transition-colors ${o==="elevated"?"bg-background-surface/80 border border-border-muted text-text-secondary":"bg-background-muted border border-border-muted"}`,children:"K"})]})]})}var T2={1:"grid-cols-1",2:"grid-cols-2",3:"grid-cols-3",4:"grid-cols-4",5:"grid-cols-5",6:"grid-cols-6",7:"grid-cols-7",8:"grid-cols-8",9:"grid-cols-9",10:"grid-cols-10",11:"grid-cols-11",12:"grid-cols-12",none:"grid-cols-none"},P2={sm:{1:"sm:grid-cols-1",2:"sm:grid-cols-2",3:"sm:grid-cols-3",4:"sm:grid-cols-4",5:"sm:grid-cols-5",6:"sm:grid-cols-6",7:"sm:grid-cols-7",8:"sm:grid-cols-8",9:"sm:grid-cols-9",10:"sm:grid-cols-10",11:"sm:grid-cols-11",12:"sm:grid-cols-12",none:"sm:grid-cols-none"},md:{1:"md:grid-cols-1",2:"md:grid-cols-2",3:"md:grid-cols-3",4:"md:grid-cols-4",5:"md:grid-cols-5",6:"md:grid-cols-6",7:"md:grid-cols-7",8:"md:grid-cols-8",9:"md:grid-cols-9",10:"md:grid-cols-10",11:"md:grid-cols-11",12:"md:grid-cols-12",none:"md:grid-cols-none"},lg:{1:"lg:grid-cols-1",2:"lg:grid-cols-2",3:"lg:grid-cols-3",4:"lg:grid-cols-4",5:"lg:grid-cols-5",6:"lg:grid-cols-6",7:"lg:grid-cols-7",8:"lg:grid-cols-8",9:"lg:grid-cols-9",10:"lg:grid-cols-10",11:"lg:grid-cols-11",12:"lg:grid-cols-12",none:"lg:grid-cols-none"},xl:{1:"xl:grid-cols-1",2:"xl:grid-cols-2",3:"xl:grid-cols-3",4:"xl:grid-cols-4",5:"xl:grid-cols-5",6:"xl:grid-cols-6",7:"xl:grid-cols-7",8:"xl:grid-cols-8",9:"xl:grid-cols-9",10:"xl:grid-cols-10",11:"xl:grid-cols-11",12:"xl:grid-cols-12",none:"xl:grid-cols-none"},"2xl":{1:"2xl:grid-cols-1",2:"2xl:grid-cols-2",3:"2xl:grid-cols-3",4:"2xl:grid-cols-4",5:"2xl:grid-cols-5",6:"2xl:grid-cols-6",7:"2xl:grid-cols-7",8:"2xl:grid-cols-8",9:"2xl:grid-cols-9",10:"2xl:grid-cols-10",11:"2xl:grid-cols-11",12:"2xl:grid-cols-12",none:"2xl:grid-cols-none"}},R2={none:"gap-0",xs:"gap-x-2 gap-y-1",sm:"gap-x-3 gap-y-2",md:"gap-x-4 gap-y-3",lg:"gap-x-6 gap-y-4",xl:"gap-x-8 gap-y-6","2xl":"gap-x-12 gap-y-8"},M2={none:"gap-x-0",xs:"gap-x-2",sm:"gap-x-3",md:"gap-x-4",lg:"gap-x-6",xl:"gap-x-8","2xl":"gap-x-12"},D2={none:"gap-y-0",xs:"gap-y-1",sm:"gap-y-2",md:"gap-y-3",lg:"gap-y-4",xl:"gap-y-6","2xl":"gap-y-8"},E2={start:"items-start",center:"items-center",end:"items-end",stretch:"items-stretch",baseline:"items-baseline"},L2={start:"justify-start",center:"justify-center",end:"justify-end",between:"justify-between",around:"justify-around",evenly:"justify-evenly"},A2={row:"grid-flow-row",col:"grid-flow-col",dense:"grid-flow-dense","row-dense":"grid-flow-row-dense","col-dense":"grid-flow-col-dense"},I2={1:"col-span-1",2:"col-span-2",3:"col-span-3",4:"col-span-4",5:"col-span-5",6:"col-span-6",7:"col-span-7",8:"col-span-8",9:"col-span-9",10:"col-span-10",11:"col-span-11",12:"col-span-12",full:"col-span-full",auto:"col-auto"},F2={sm:{1:"sm:col-span-1",2:"sm:col-span-2",3:"sm:col-span-3",4:"sm:col-span-4",5:"sm:col-span-5",6:"sm:col-span-6",7:"sm:col-span-7",8:"sm:col-span-8",9:"sm:col-span-9",10:"sm:col-span-10",11:"sm:col-span-11",12:"sm:col-span-12",full:"sm:col-span-full",auto:"sm:col-auto"},md:{1:"md:col-span-1",2:"md:col-span-2",3:"md:col-span-3",4:"md:col-span-4",5:"md:col-span-5",6:"md:col-span-6",7:"md:col-span-7",8:"md:col-span-8",9:"md:col-span-9",10:"md:col-span-10",11:"md:col-span-11",12:"md:col-span-12",full:"md:col-span-full",auto:"md:col-auto"},lg:{1:"lg:col-span-1",2:"lg:col-span-2",3:"lg:col-span-3",4:"lg:col-span-4",5:"lg:col-span-5",6:"lg:col-span-6",7:"lg:col-span-7",8:"lg:col-span-8",9:"lg:col-span-9",10:"lg:col-span-10",11:"lg:col-span-11",12:"lg:col-span-12",full:"lg:col-span-full",auto:"lg:col-auto"},xl:{1:"xl:col-span-1",2:"xl:col-span-2",3:"xl:col-span-3",4:"xl:col-span-4",5:"xl:col-span-5",6:"xl:col-span-6",7:"xl:col-span-7",8:"xl:col-span-8",9:"xl:col-span-9",10:"xl:col-span-10",11:"xl:col-span-11",12:"xl:col-span-12",full:"xl:col-span-full",auto:"xl:col-auto"},"2xl":{1:"2xl:col-span-1",2:"2xl:col-span-2",3:"2xl:col-span-3",4:"2xl:col-span-4",5:"2xl:col-span-5",6:"2xl:col-span-6",7:"2xl:col-span-7",8:"2xl:col-span-8",9:"2xl:col-span-9",10:"2xl:col-span-10",11:"2xl:col-span-11",12:"2xl:col-span-12",full:"2xl:col-span-full",auto:"2xl:col-auto"}};function qx(e,t,r){if(!e)return "";if(typeof e!="object")return t[e]||"";let o=[];return "base"in e&&e.base!==void 0&&o.push(t[e.base]),Object.entries(r).forEach(([n,a])=>{let i=e[n];i!==void 0&&o.push(a[i]);}),o.join(" ")}function ju({cols:e=1,gap:t="md",gapX:r,gapY:o,align:n="stretch",justify:a="start",flow:i="row",autoFit:s,autoFill:c,className:l,children:u}){let d=tailwindMerge.twMerge("grid",s||c?"":qx(e,T2,P2),!r&&!o&&R2[t],r&&M2[r],o&&D2[o],E2[n],L2[a],A2[i],l),m={};return s?m.gridTemplateColumns=`repeat(auto-fit, minmax(${s}, 1fr))`:c&&(m.gridTemplateColumns=`repeat(auto-fill, minmax(${c}, 1fr))`),jsxRuntime.jsx("div",{className:d,style:m,children:u})}function B2({span:e,className:t,children:r}){let o=tailwindMerge.twMerge(qx(e,I2,F2),t);return jsxRuntime.jsx("div",{className:o,children:r})}ju.Item=B2;function V2(e,t){return Oe__namespace.default.isValidElement(e)?e:Xr({value:e,formatter:t,emptyClassName:"text-text-secondary",emptyText:"\u2014"})}function z2(e){if(e.thresholds&&e.value!==null&&e.value!==void 0){for(let t of e.thresholds)if(t.when(e.value))return t.tone}return e.tone}var O2={neutral:"text-text-primary",success:"text-feedback-success",warning:"text-feedback-warning",error:"text-feedback-error",info:"text-feedback-info"},H2=24,W2=20;function G2({item:e,dense:t,valueAlign:r}){let o=z2(e),n=o?O2[o]:"",a=e.stackOnMobile,i=typeof e.value=="string"&&e.value.length>H2&&!e.formatter&&!Oe__namespace.default.isValidElement(e.value),s=V2(e.value,e.formatter),c=i?da(e.value,W2):null,l=typeof e.copyable=="function"?e.copyable(e.value):String(e.value),u=e.piiType&&e.piiEntity?{"data-pii-type":e.piiType,"data-pii-entity":e.piiEntity}:{},d=Object.keys(u).length>0,m=i?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(Zt,{content:d?jsxRuntime.jsx("span",{...u,children:String(e.value)}):String(e.value),children:jsxRuntime.jsx("span",{className:tailwindMerge.twMerge("md:hidden",e.href?"hover:underline cursor-pointer":""),...u,children:c})}),jsxRuntime.jsx("span",{className:tailwindMerge.twMerge("hidden md:inline",e.href?"hover:underline cursor-pointer":""),...u,children:s})]}):jsxRuntime.jsx("span",{className:e.href?"hover:underline cursor-pointer":"",...u,children:s}),p=e.copyable?jsxRuntime.jsx(zo,{value:l,size:"sm",children:jsxRuntime.jsx("span",{className:"sr-only",children:"Copy"})}):null,g=e.copyable&&(e.copyIconPosition==="left"||!e.copyIconPosition),f=e.copyable&&e.copyIconPosition==="right",b=jsxRuntime.jsxs("dd",{className:tailwindMerge.twMerge(t?"text-sm":"text-base","font-medium",a?r==="start"?"text-left":"text-left sm:text-right":r==="start"?"text-left":"text-right",n,e.disabled&&"opacity-50","overflow-hidden min-w-0"),children:[jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("inline-flex items-center gap-1 max-w-full",r==="start"?"justify-start":"justify-end"),children:[jsxRuntime.jsxs("span",{className:"inline-flex items-center gap-1 min-w-0",children:[m,e.iconRight]}),f&&p]}),e.meta&&jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("text-xs text-text-secondary mt-0.5",r==="start"?"text-left":"text-right"),children:e.meta})]}),x=jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsxs("dt",{className:tailwindMerge.twMerge(t?"text-xs":"text-sm","text-text-secondary truncate","flex items-center gap-1",e.disabled&&"opacity-50"),children:[e.iconLeft,jsxRuntime.jsx("span",{title:typeof e.label=="string"?e.label:void 0,children:e.label}),e.tooltip&&jsxRuntime.jsx(B,{name:"Question",size:10,className:"text-text-secondary","aria-label":"More information"})]}),g&&jsxRuntime.jsx("div",{className:"flex items-center",children:p}),e.href?jsxRuntime.jsx("a",{href:e.href,onClick:e.onAction,className:"block",children:b}):b]});return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("grid",a?"items-start sm:items-center":g?"items-center":"items-start",a?g?"grid-cols-1 gap-y-1 sm:grid-cols-[minmax(120px,1fr)_auto_auto] sm:gap-x-1 sm:gap-y-0":t?"grid-cols-1 gap-y-1 sm:grid-cols-[minmax(120px,1fr)_1fr] sm:gap-x-2 sm:gap-y-0":"grid-cols-1 gap-y-1 sm:grid-cols-[minmax(120px,1fr)_1fr] sm:gap-x-4 sm:gap-y-0":g?"grid-cols-[minmax(120px,1fr)_auto_auto] gap-x-1":t?"grid-cols-[minmax(120px,1fr)_1fr] gap-x-2":"grid-cols-[minmax(120px,1fr)_1fr] gap-x-4"),children:x})}function Ll({items:e,layout:t="one-column",dense:r=false,valueAlign:o="end",showDividers:n=false,skeleton:a=false,empty:i=false,error:s,className:c}){return a?jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("grid",t==="two-column"?"md:grid-cols-2 gap-x-6":"grid-cols-1",r?"gap-y-1":"gap-y-2",c),children:Array.from({length:e.length||4}).map((l,u)=>jsxRuntime.jsxs("div",{className:"grid grid-cols-[1fr_auto] items-start gap-x-4",children:[jsxRuntime.jsx(J,{className:"h-4 w-24"}),jsxRuntime.jsx(J,{className:"h-5 w-16"})]},u))}):s?jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("text-sm text-feedback-error",c),children:s}):i||!e.length?jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("text-sm text-text-secondary",c),children:"No data available"}):jsxRuntime.jsx("dl",{className:tailwindMerge.twMerge("grid",t==="two-column"?"md:grid-cols-2 gap-x-6":"grid-cols-1",r?"gap-y-1":"gap-y-2",c),children:e.map((l,u)=>jsxRuntime.jsxs(Oe__namespace.default.Fragment,{children:[n&&u>0&&t==="one-column"&&jsxRuntime.jsx("div",{className:"col-span-full border-t border-border-default -mt-1 mb-1"}),jsxRuntime.jsx(G2,{item:l,dense:r,valueAlign:o})]},l.id))})}function _x({node:e,renderNodeList:t}){let r=e.children||[],o=e.metadata&&Object.keys(e.metadata).length>0;return jsxRuntime.jsxs("div",{className:"flex flex-col h-full",children:[jsxRuntime.jsx("div",{className:"flex-shrink-0 px-4 py-4",children:jsxRuntime.jsx("h3",{className:"font-semibold text-text-primary text-lg",children:e.name})}),o&&jsxRuntime.jsx("div",{className:"flex-shrink-0 border-y border-border-default px-4 py-4 bg-background-muted",children:jsxRuntime.jsx(Ll,{items:Object.entries(e.metadata||{}).map(([n,a])=>({id:n,label:n,value:a??"\u2014"})),dense:true,layout:"one-column",valueAlign:"end",showDividers:true})}),r.length>0&&jsxRuntime.jsx("div",{className:"flex-1 overflow-auto",children:t(r,false)})]})}var at={xs:{node:"px-2 py-2 text-xs",icon:"xs",bullet:24,spacing:{x:8,y:8}},sm:{node:"px-3 py-2.5 text-sm",icon:"xs",bullet:28,spacing:{x:12,y:10}},md:{node:"px-4 py-3 text-base",icon:"sm",bullet:32,spacing:{x:16,y:12}}};var Qu=Oe__namespace.createContext(null);function $x(){let e=Oe__namespace.useContext(Qu);if(!e)throw new Error("Hierarchy components must be used within HierarchyExplorer");return e}function th({node:e,renderNode:t}){let{selectedId:r,selectNode:o,navigateToNode:n,variant:a,size:i,showBullets:s,rootNodeId:c,stickyRootNode:l,navigationStack:u,setRootNodeSticky:d,useSplitLayout:m}=$x(),p=Oe__namespace.useRef(null),g=Oe__namespace.useRef(null),f=r===e.id,h=e.disabled||false,b=!!(e.children&&e.children.length>0),x=!!(e.metadata&&Object.keys(e.metadata).length>0),y=b||x,v=c!==void 0&&e.id!==void 0&&c===e.id&&u.length===0;Oe__namespace.useLayoutEffect(()=>{v&&l&&p.current&&g.current===null&&requestAnimationFrame(()=>{p.current&&(g.current=p.current.offsetTop);});},[v,l]),Oe__namespace.useEffect(()=>{if(!v||!l||!p.current)return;let A=p.current.parentElement;for(;A;){let L=window.getComputedStyle(A).overflowY;if(L==="auto"||L==="scroll")break;A=A.parentElement;}if(!A)return;let D=()=>{if(!p.current||g.current===null)return;let L=A.getBoundingClientRect(),R=A.scrollTop,H=L.height,G=p.current.offsetHeight,U=g.current-R,q=U+G,j=U<0,Q=q>H;j?d("top",e):Q?d("bottom",e):d(null,null);};return A.addEventListener("scroll",D),D(),()=>{A.removeEventListener("scroll",D);}},[v,l,e,d]);let S=()=>{h||(m?o(e):y?n(e):o(e));},w=A=>{h||(A.key==="Enter"||A.key===" ")&&(A.preventDefault(),S());},N={isSelected:f,isDisabled:h,hasChildren:b,hasMetadata:x,level:0},T=tailwindMerge.twMerge("relative cursor-pointer group",h&&"opacity-50 cursor-not-allowed"),k=tailwindMerge.twMerge("absolute inset-0 transition-colors",v&&!f&&!h&&"group-hover:bg-background-hover",v&&f&&!h&&a==="subtle"&&"bg-background-selected group-hover:bg-background-hover",v&&f&&h&&a==="subtle"&&"bg-background-selected",v&&f&&!h&&a==="solid"&&"bg-action-brand group-hover:bg-action-brand-hover",v&&f&&h&&a==="solid"&&"bg-action-brand",!v&&a==="subtle"&&!f&&!h&&"group-hover:bg-background-hover",!v&&a==="subtle"&&f&&!h&&"bg-background-selected group-hover:bg-background-hover",!v&&a==="subtle"&&f&&h&&"bg-background-selected",!v&&a==="solid"&&!f&&!h&&"group-hover:bg-background-hover",!v&&a==="solid"&&f&&!h&&"bg-action-brand group-hover:bg-action-brand-hover",!v&&a==="solid"&&f&&h&&"bg-action-brand"),P=tailwindMerge.twMerge("relative flex items-center gap-2 text-text-primary hover:text-text-primary transition-colors",at[i].node,v&&!f&&"font-semibold",a==="subtle"&&f&&"text-text-link-default",a==="solid"&&f&&"text-[color:var(--color-action-brand-text)]");return jsxRuntime.jsxs("div",{ref:p,className:T,onClick:S,onKeyDown:w,role:"treeitem","aria-selected":f,"aria-disabled":h,tabIndex:0,"data-node-id":e.id,children:[jsxRuntime.jsx("div",{className:k}),jsxRuntime.jsxs("div",{className:P,children:[s&&jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("relative rounded-full flex items-center justify-center flex-shrink-0 z-20",v&&"bg-action-brand border-action-brand",!v&&"bg-background-muted border border-border-default"),style:{width:at[i].bullet,height:at[i].bullet},children:e.icon&&jsxRuntime.jsx(B,{name:e.icon,size:at[i].icon,weight:v?"fill":"regular",className:v?"text-[color:var(--color-action-brand-text)]":"text-text-primary"})}),jsxRuntime.jsx("div",{className:"flex-1 min-w-0",children:t?t(e,N):jsxRuntime.jsx("span",{className:"truncate",children:e.name})}),y&&!m&&jsxRuntime.jsx("div",{className:"flex-shrink-0",children:jsxRuntime.jsx(B,{name:"CaretRight",size:at[i].icon,className:"text-text-secondary"})})]})]})}function oh({items:e,showConnector:t=false,scrollContainerRef:r,showBullets:o,size:n,renderNode:a}){return jsxRuntime.jsxs("div",{className:"relative",ref:t&&r?r:void 0,children:[o&&e.length>0&&t&&jsxRuntime.jsx("div",{className:"absolute w-px bg-text-secondary z-10 pointer-events-none",style:{left:`${at[n].spacing.x+at[n].bullet/2}px`,top:`${at[n].spacing.y+at[n].bullet/2}px`,bottom:`${at[n].spacing.y+at[n].bullet/2}px`},"aria-hidden":"true"}),e.map(i=>jsxRuntime.jsx(th,{node:i,renderNode:a},i.id))]})}function Fi({children:e,mode:t="sync",presenceKey:r}){let o=r!==void 0&&Oe__namespace.default.isValidElement(e)?Oe__namespace.default.cloneElement(e,{key:r}):r!==void 0?jsxRuntime.jsx("div",{children:e},r):e;return jsxRuntime.jsx(framerMotion.AnimatePresence,{mode:t,children:o})}function ih(){let[e,t]=Oe.useState(()=>typeof window>"u"?false:window.matchMedia("(prefers-reduced-motion: reduce)").matches);return Oe.useEffect(()=>{let r=window.matchMedia("(prefers-reduced-motion: reduce)");t(r.matches);let o=n=>{t(n.matches);};return r.addEventListener("change",o),()=>{r.removeEventListener("change",o);}},[]),e}var q2={instant:0,fast:150,normal:250,slow:350,slower:500},Zu={xs:"4px",sm:"8px",md:"16px"};function Q2(e){return e?typeof e=="string"&&e in Zu?Zu[e]:typeof e=="number"?`${e}px`:e:Zu.sm}function Bi({children:e,direction:t,distance:r="sm",duration:o="normal",delay:n=0,className:a}){let i=ih(),s=typeof o=="number"?o:q2[o],c=Q2(r),l=p=>{switch(t){case "left":return {x:`-${p}`};case "right":return {x:p};case "up":return {y:`-${p}`};case "down":return {y:p}}},u=i?{opacity:0}:{opacity:0,...l(c)},d={opacity:1,x:0,y:0},m=i?{opacity:0}:{opacity:0,...l(c)};return jsxRuntime.jsx(framerMotion.motion.div,{className:a,initial:u,animate:d,exit:m,transition:{duration:i?0:s/1e3,delay:i?0:n/1e3,ease:[.4,0,.2,1]},children:e})}function Fl({navigationStack:e,onNavigateBack:t,size:r}){let o=e.length===1?"Back to main":`Back to ${e[e.length-2]?.name}`;return jsxRuntime.jsx("div",{className:"sticky top-0 z-10 bg-background-surface border-b border-border-default flex-shrink-0",children:jsxRuntime.jsxs("button",{type:"button",onClick:t,className:tailwindMerge.twMerge("w-full flex items-center gap-2 transition-colors text-left group",at[r].node),children:[jsxRuntime.jsx(B,{name:"CaretLeft",size:at[r].icon,className:"text-text-secondary group-hover:text-text-primary transition-colors"}),jsxRuntime.jsx("span",{className:"font-medium text-text-primary group-hover:text-text-link-hover transition-colors",children:o})]})})}function Bl({node:e,position:t,selectedId:r,variant:o,size:n,showBullets:a}){let i=r===e.id;return jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("absolute z-30 left-0 right-0 border-border-default transition-all duration-200 bg-background-surface",at[n].node,i?o==="subtle"?"text-text-link-default":"bg-action-brand text-[color:var(--color-action-brand-text)]":"font-semibold",t==="top"&&"top-0 border-b shadow-[0_4px_6px_-1px_rgba(0,0,0,0.1)]",t==="bottom"&&"bottom-0 border-t shadow-[0_-4px_6px_-1px_rgba(0,0,0,0.1)]"),children:[i&&o==="subtle"&&jsxRuntime.jsx("div",{className:"absolute inset-0 bg-background-selected"}),jsxRuntime.jsxs("div",{className:"flex items-center gap-2 cursor-pointer relative z-10",children:[a&&jsxRuntime.jsx("div",{className:"flex-shrink-0 rounded-full flex items-center justify-center bg-action-brand border-action-brand",style:{width:at[n].bullet,height:at[n].bullet},children:e.icon&&jsxRuntime.jsx(B,{name:e.icon,size:at[n].icon,weight:"fill",className:"text-[color:var(--color-action-brand-text)]"})}),jsxRuntime.jsx("div",{className:"flex-1 min-w-0",children:jsxRuntime.jsx("span",{className:"truncate",children:e.name})})]})]})}function lh({currentItems:e,currentParent:t,navigationStack:r,selectedId:o,variant:n,size:a,showBullets:i,slideDirection:s,viewKey:c,hasHeight:l,rootNodeStickyState:u,renderNodeList:d,renderDetailContent:m,onNavigateBack:p}){return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[r.length===0&&u.position&&u.node&&jsxRuntime.jsx(Bl,{node:u.node,position:u.position,selectedId:o,variant:n,size:a,showBullets:i}),r.length>0&&jsxRuntime.jsx(Fl,{navigationStack:r,onNavigateBack:p,size:a}),jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("relative",l&&"overflow-auto h-full"),children:jsxRuntime.jsx(Fi,{mode:"wait",presenceKey:c,children:r.length===0?d(e,true):jsxRuntime.jsx(Bi,{direction:s,distance:"100%",duration:"normal",children:m(t)})})})]})}function $u(e,t){for(let r of e){if(r.id===t)return r;if(r.children&&r.children.length>0){let o=$u(r.children,t);if(o)return o}}return null}function Vl(e){if(e!==void 0)return typeof e=="number"?`${e}px`:e}function ch(e,t){if(process.env.NODE_ENV!=="development")return;let r=new Set,o=(n,a="root")=>{for(let i=0;i<n.length;i++){let s=n[i],c=`${a}[${i}]`;s.id?r.has(s.id)?console.warn(`[HierarchyExplorer] Duplicate node ID found: "${s.id}". Each node must have a unique ID.`):r.add(s.id):console.warn(`[HierarchyExplorer] Node at ${c} is missing an "id" field. Node name: "${s.name||"(unnamed)"}"`),s.children&&o(s.children,`${c}.children`);}};o(e),t&&!r.has(t)&&console.warn(`[HierarchyExplorer] Root node ID "${t}" not found in data. No node will be highlighted as root.`);}function uh({data:e,currentItems:t,navigationStack:r,selectedId:o,variant:n,size:a,showBullets:i,rootNodeStickyState:s,renderNodeList:c,renderDetailContent:l,renderEmptyState:u,onNavigateBack:d}){let m=o?$u(e,o):null;return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsxs("div",{className:"flex-1 min-w-0 border-r border-border-default flex flex-col relative",children:[r.length===0&&s.position&&s.node&&jsxRuntime.jsx(Bl,{node:s.node,position:s.position,selectedId:o,variant:n,size:a,showBullets:i}),r.length>0&&jsxRuntime.jsx(Fl,{navigationStack:r,onNavigateBack:d,size:a}),jsxRuntime.jsx("div",{className:"flex-1 overflow-auto",children:c(t,r.length===0)})]}),jsxRuntime.jsx("div",{className:"flex-1 min-w-0 overflow-auto bg-background-body",children:jsxRuntime.jsx(Fi,{mode:"wait",presenceKey:m?.id||"empty",children:m?jsxRuntime.jsx(Bi,{direction:"left",duration:"fast",children:l(m)}):u?u():jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("text-text-secondary text-center",at[a].node,"py-8"),children:"Select an item to view details"})})})]})}function ph({data:e,renderNode:t,onNodeSelect:r,onNavigate:o,selectedId:n,rootNodeId:a,stickyRootNode:i=true,height:s,minHeight:c,maxHeight:l,variant:u="subtle",size:d="md",showBullets:m=true,layout:p="auto",splitBreakpoint:g=768,renderEmptyState:f,renderDetailView:h,className:b,"aria-label":x="Hierarchy explorer"}){let[y,v]=Oe__namespace.useState(null),[S,w]=Oe__namespace.useState([]),[N,T]=Oe__namespace.useState("left"),[k,P]=Oe__namespace.useState({position:null,node:null}),{ref:A,width:D}=xa(),L=Oe__namespace.useMemo(()=>p==="split"?true:p==="single"?false:D>=g,[p,D,g]),R=n!==void 0?n:y;Oe__namespace.useEffect(()=>{ch(e,a);},[e,a]);let H=S.length>0?S[S.length-1]:null,G=H?H.children||[]:e,Y=Oe__namespace.useCallback(O=>{T("left"),w(K=>[...K,O]),o?.(O,[...S,O]);},[S,o]),U=Oe__namespace.useCallback(()=>{T("right"),w(O=>{let K=O.slice(0,-1);return o?.(K.length>0?K[K.length-1]:null,K),K});},[o]),q=Oe__namespace.useCallback(O=>{n===void 0&&v(O.id),r?.(O,[...S,O]);},[n,S,r]),j=Oe__namespace.useCallback((O,K)=>{P({position:O,node:K});},[]),Q=Oe__namespace.useMemo(()=>({selectedId:R,selectNode:q,navigateToNode:Y,navigateBack:U,rootNodeId:a,stickyRootNode:i,variant:u,size:d,showBullets:m,onNodeSelect:r,onNavigate:o,navigationStack:S,setRootNodeSticky:j,useSplitLayout:L}),[R,q,Y,U,a,i,u,d,m,r,o,S,j,L]),E=Oe__namespace.useRef(null);Oe__namespace.useEffect(()=>{if(!a||!E.current||S.length>0||L)return;let O=E.current,K=setTimeout(()=>{let te=O.querySelector(`[data-node-id="${a}"]`);te&&te.scrollIntoView({behavior:"auto",block:"center",inline:"nearest"});},100);return ()=>clearTimeout(K)},[a,S.length,L]);let M={height:Vl(s),minHeight:Vl(c),maxHeight:Vl(l)},W=s!==void 0||l!==void 0,I=H?H.id:"root",C=Oe__namespace.useCallback((O,K=false)=>jsxRuntime.jsx(oh,{items:O,showConnector:K,scrollContainerRef:K?E:null,showBullets:m,size:d,renderNode:t}),[m,d,t]),F=Oe__namespace.useCallback(O=>O?h?h(O,C):jsxRuntime.jsx(_x,{node:O,renderNodeList:C}):null,[h,C]);return jsxRuntime.jsx(Qu.Provider,{value:Q,children:jsxRuntime.jsx("div",{ref:A,className:tailwindMerge.twMerge("select-none bg-background-surface rounded-lg border border-border-default relative",W&&"overflow-hidden",!W&&"h-full flex flex-col",L&&!W&&"flex-row",L&&W&&"flex",b),style:M,role:"tree","aria-label":x,children:L?jsxRuntime.jsx(uh,{data:e,currentItems:G,navigationStack:S,selectedId:R,variant:u,size:d,showBullets:m,rootNodeStickyState:k,renderNodeList:C,renderDetailContent:F,renderEmptyState:f,onNavigateBack:U}):jsxRuntime.jsx(lh,{currentItems:G,currentParent:H,navigationStack:S,selectedId:R,variant:u,size:d,showBullets:m,slideDirection:N,viewKey:I,hasHeight:W,rootNodeStickyState:k,renderNodeList:C,renderDetailContent:F,onNavigateBack:U})})})}function uR({isEntering:e,isExiting:t,className:r=""}){let o=["group","bg-background-surface","forced-colors:bg-[Canvas]","text-text-primary","shadow-lg","rounded-[var(--control-border-radius)]","bg-clip-padding","border","border-border-default","outline-none","p-4","min-w-[260px]","max-w-[360px]"].filter(Boolean).join(" "),n=e?["animate-in","fade-in","zoom-in-95","placement-bottom:slide-in-from-top-1","placement-top:slide-in-from-bottom-1","placement-left:slide-in-from-right-1","placement-right:slide-in-from-left-1","ease-out","duration-200"].join(" "):"",a=t?["animate-out","fade-out","zoom-out-95","placement-bottom:slide-out-to-top-1","placement-top:slide-out-to-bottom-1","placement-left:slide-out-to-right-1","placement-right:slide-out-to-left-1","ease-in","duration-150"].join(" "):"";return [o,n,a,r].filter(Boolean).join(" ")}var mh=({children:e,delay:t=700,closeDelay:r=0,isOpen:o,defaultOpen:n,onOpenChange:a,isDisabled:i=false,...s})=>jsxRuntime.jsx(reactAriaComponents.TooltipTrigger,{delay:t,closeDelay:r,isOpen:o,defaultOpen:n,onOpenChange:a,isDisabled:i,...s,children:e}),fh=({children:e,className:t,showArrow:r=false,offset:o,...n})=>jsxRuntime.jsxs(reactAriaComponents.Tooltip,{...n,offset:o??(r?12:8),className:reactAriaComponents.composeRenderProps(t,(i,s)=>uR({...s,className:i})),children:[r&&jsxRuntime.jsx(reactAriaComponents.OverlayArrow,{children:jsxRuntime.jsx("svg",{width:12,height:12,viewBox:"0 0 12 12",className:"block fill-background-surface stroke-border-default stroke-1 group-placement-left:-rotate-90 group-placement-right:rotate-90 group-placement-bottom:rotate-180 forced-colors:fill-[Canvas] forced-colors:stroke-[ButtonBorder]",children:jsxRuntime.jsx("path",{d:"M0 0 L6 6 L12 0"})})}),e]});fh.displayName="HoverCardContent";var pR=Object.assign(mh,{Root:mh,Content:fh});function fR(e,t){return Xr({value:e,formatter:t,emptyClassName:"text-text-secondary",emptyText:"\u2014"})}function gR(e,t="upIsGood"){if(e===0)return "text-text-secondary";let r=e>0;return t==="upIsGood"?r?"text-feedback-success":"text-feedback-error":r?"text-feedback-error":"text-feedback-success"}function bR({points:e,className:t,ariaLabel:r}){let i=e.map(p=>typeof p.y=="number"?p.y:0);if(i.length===0)return null;let s=Math.min(...i),l=Math.max(...i)-s,u=p=>l===0?20/2:18-(p-s)/l*16,d=60/Math.max(e.length-1,1),m=e.map((p,g)=>{let f=2+g*d,h=u(typeof p.y=="number"?p.y:0);return `${g===0?"M":"L"} ${f} ${h}`}).join(" ");return jsxRuntime.jsx("svg",{width:64,height:20,role:"img","aria-label":r,className:tailwindMerge.twMerge("overflow-visible",t),children:jsxRuntime.jsx("path",{d:m,fill:"none",strokeWidth:"1.5",className:"stroke-border-muted"})})}function gh({label:e,value:t,formatter:r,delta:o,deltaPeriodLabel:n,deltaIntent:a="upIsGood",trend:i,status:s,helpText:c,size:l="md",orientation:u="vertical",isLoading:d,empty:m,error:p,onClick:g,className:f,labelClassName:h,renderValue:b,renderDelta:x,renderTrend:y}){let S={sm:{label:ft("labelSm"),value:ft("displaySm"),delta:ft("labelSm"),gap:"gap-1"},md:{label:ft("labelMd"),value:ft("displayMd"),delta:ft("bodySm"),gap:"gap-2"},lg:{label:ft("labelLg"),value:ft("displayLg"),delta:ft("bodyMd"),gap:"gap-3"}}[l],w=d?jsxRuntime.jsx(J,{className:"h-7 w-20"}):m?jsxRuntime.jsx("span",{className:"text-text-secondary",children:"\u2014"}):p?jsxRuntime.jsx("span",{className:ft("bodySm","text-feedback-error"),children:typeof p=="string"?p:"Error"}):b?b(t):fR(t,r),N=x?x(o):o!==void 0&&!d&&!m&&!p?jsxRuntime.jsxs("div",{className:jt(S.delta,gR(o,a),"flex items-center gap-1"),children:[o>0&&jsxRuntime.jsx(B,{name:"ArrowUp",size:12}),o<0&&jsxRuntime.jsx(B,{name:"ArrowDown",size:12}),o===0&&jsxRuntime.jsx(B,{name:"Minus",size:12}),jsxRuntime.jsxs("span",{children:[o>0?"+":"",Math.abs(o).toFixed(1),"%"]}),n&&jsxRuntime.jsxs("span",{className:"text-text-secondary",children:["\xB7 ",n]})]}):d&&o!==void 0?jsxRuntime.jsx(J,{className:"h-4 w-24"}):null,T=y?y(i):i&&i.length>0&&!d&&!p?jsxRuntime.jsx(bR,{points:i,ariaLabel:`${e} trend`,className:m?"opacity-30":""}):d&&i!==void 0?jsxRuntime.jsx(J,{className:"h-5 w-16"}):null;return jsxRuntime.jsxs("section",{className:tailwindMerge.twMerge("flex min-w-0",u==="horizontal"?`items-center ${S.gap}`:`flex-col ${S.gap}`,g&&"cursor-pointer hover:bg-background-muted rounded-lg px-3 py-2 -mx-3 -my-2 transition-colors",f),"aria-labelledby":`kpi-${e}`,onClick:g,children:[jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[jsxRuntime.jsx("h3",{id:`kpi-${e}`,className:tailwindMerge.twMerge(jt(S.label,"text-text-secondary truncate"),h),children:d?jsxRuntime.jsx(J,{className:"h-4 w-24"}):e}),c&&!d&&jsxRuntime.jsx(B,{name:"Question",size:12,className:"text-text-secondary cursor-help","aria-label":"Help"})]}),jsxRuntime.jsxs("div",{className:"flex items-baseline gap-2",children:[jsxRuntime.jsx("output",{className:jt(S.value,p?"text-feedback-error":"text-text-primary"),"aria-label":`Value: ${t}`,children:w}),s&&!d&&!p&&jsxRuntime.jsx(nt,{variant:s.tone||"neutral",size:"sm",children:s.value})]}),(N||T)&&jsxRuntime.jsxs("div",{className:"flex items-center gap-3",children:[N,T]})]})}var bh={xs:"gap-2",sm:"gap-3",md:"gap-4",lg:"gap-6",xl:"gap-8"},xh={start:"items-start",center:"items-center",stretch:"items-stretch"};function hh(e){if(typeof e=="number")return `grid-cols-${e}`;let t=[];return e.base!==void 0&&t.push(`grid-cols-${e.base}`),e.sm!==void 0&&t.push(`sm:grid-cols-${e.sm}`),e.md!==void 0&&t.push(`md:grid-cols-${e.md}`),e.lg!==void 0&&t.push(`lg:grid-cols-${e.lg}`),e.xl!==void 0&&t.push(`xl:grid-cols-${e.xl}`),e["2xl"]!==void 0&&t.push(`2xl:grid-cols-${e["2xl"]}`),t.join(" ")}function op({children:e,cols:t={base:1,sm:2,md:3,lg:4},gap:r="md",align:o="stretch",equalizeHeights:n=true,header:a,isLoading:i,scrollOnMobile:s=false,scrollItemMinWidth:c="140px",className:l}){let u=i?Oe__namespace.default.Children.map(e,p=>Oe__namespace.default.isValidElement(p)&&p.type&&typeof p.type!="string"&&"displayName"in p.type?Oe__namespace.default.cloneElement(p,{isLoading:true}):p):e,d=s?Oe__namespace.default.Children.map(u,p=>jsxRuntime.jsx("div",{className:"shrink-0",style:{minWidth:c},children:p})):u,m=s?tailwindMerge.twMerge("flex overflow-x-auto pb-2 -mb-2",bh[r],"sm:grid sm:overflow-visible sm:pb-0 sm:-mb-0",hh({...typeof t=="object"?t:{base:t},base:void 0}),xh[o],n&&"sm:auto-rows-fr"):tailwindMerge.twMerge("grid",hh(t),bh[r],xh[o],n&&"auto-rows-fr","w-full");return jsxRuntime.jsxs("section",{className:tailwindMerge.twMerge("w-full",l),"aria-label":"Key metrics",children:[a&&jsxRuntime.jsx("div",{className:"mb-4",children:a}),jsxRuntime.jsx("div",{className:m,children:s?d:u})]})}op.displayName="KpiGroup";function Ch({items:e,renderItem:t,selectedId:r,onSelect:o,onHoverChange:n,isLoading:a=false,loadingState:i,error:s=null,renderLoadingSkeleton:c,loadingSkeletonCount:l=5,emptyMessage:u="No results found.",variant:d="relaxed",showDividers:m=true,onLoadMore:p,hasMore:g=false,enableVirtualization:f,estimatedItemSize:h=60,loadingIndicator:b,"aria-label":x,className:y="",style:v}){let[S,w]=Oe.useState(null),N=Oe.useRef(null),T=Oe.useRef(new Map),{scrollRef:k,loadMoreRef:P,virtualizer:A,virtualItems:D,isLoadingMore:L,computedLoadingState:R}=Io({items:e,onLoadMore:p,hasMore:g,isLoading:a,loadingState:i,enableVirtualization:f,estimatedItemSize:h,overscan:5}),H=k??N,G=Oe.useCallback((C,F)=>{o?.(C,F);},[o]),Y=Oe.useCallback((C,F)=>{w(C),n?.(C,F);},[n]),U=Oe.useCallback((C,F)=>{let O=C?.id;return typeof O=="string"&&O?O:`item-${F}`},[]),q=Oe.useCallback(C=>{if(!H.current||e.length===0)return;let F=document.activeElement,O=e.findIndex((_,ae)=>{let fe=U(_,ae),re=T.current.get(fe);return re&&(re===F||re.contains(F))}),K=O;switch(C.key){case "ArrowDown":C.preventDefault(),K=O===-1?0:Math.min(O+1,e.length-1);break;case "ArrowUp":C.preventDefault(),K=O===-1?0:Math.max(O-1,0);break;case "Home":C.preventDefault(),K=0;break;case "End":C.preventDefault(),K=e.length-1;break;default:return}let te=U(e[K],K);T.current.get(te)?.focus();},[e,U,H]),j=["flex flex-col","bg-background-surface","focus:outline-none focus:ring-2 focus:ring-border-focus focus:ring-offset-2"],Q={dense:"gap-0",relaxed:"gap-0"},E=m?"divide-y divide-border-muted":"",M=[...j,Q[d],E,y].filter(Boolean).join(" ");if(R==="loading"||a&&e.length===0){let C=c?jsxRuntime.jsx(jsxRuntime.Fragment,{children:Array.from({length:l}).map((F,O)=>jsxRuntime.jsx("div",{children:c()},`skeleton-${O}`))}):jsxRuntime.jsx(Jm,{count:l,className:"space-y-0",children:jsxRuntime.jsxs("div",{className:"flex items-center gap-3 px-4 py-3",children:[jsxRuntime.jsx(J,{width:16,height:16,variant:"circle"}),jsxRuntime.jsxs("div",{className:"flex-1 space-y-2",children:[jsxRuntime.jsx(J,{width:"75%",height:16}),jsxRuntime.jsx(J,{width:"50%",height:14})]}),jsxRuntime.jsx(J,{width:60,height:20})]})});return jsxRuntime.jsx("div",{ref:H,className:M,style:v,role:"listbox","aria-label":x,"aria-busy":"true","aria-live":"polite",children:C})}if(s)return jsxRuntime.jsx("div",{ref:H,className:M,style:v,role:"listbox","aria-label":x,"aria-live":"polite",children:jsxRuntime.jsx("div",{className:"p-4 text-center text-feedback-error-text",children:s})});if(e.length===0)return jsxRuntime.jsx("div",{ref:H,className:M,style:v,role:"listbox","aria-label":x,"aria-live":"polite",children:jsxRuntime.jsx("div",{className:"p-4 text-center text-text-secondary",children:u})});let I=A?D?.map(C=>({virtualItem:C,item:e[C.index],index:C.index}))||[]:e.map((C,F)=>({item:C,index:F,virtualItem:null}));return jsxRuntime.jsxs("div",{ref:H,className:M,style:{...v,...p&&{overflow:"auto",height:v?.height||"600px"}},role:"listbox","aria-label":x,"aria-live":"polite",onKeyDown:q,tabIndex:0,children:[A&&jsxRuntime.jsxs("div",{style:{height:`${A.getTotalSize()}px`,width:"100%",position:"relative"},children:[I.map(({virtualItem:C,item:F,index:O})=>{if(!C)return null;let K=U(F,O),te=r===K,de=S===K,_={id:K,role:"option","aria-selected":te,"aria-current":te?"page":void 0,tabIndex:te||r==null&&O===0?0:-1,onClick:ae=>G(ae,F),onMouseEnter:ae=>Y(ae,F),onMouseLeave:ae=>Y(null),onFocus:ae=>Y(ae,F),onBlur:ae=>Y(null),ref:ae=>{ae?T.current.set(K,ae):T.current.delete(K);}};return jsxRuntime.jsx("div",{"data-index":C.index,ref:A.measureElement,style:{position:"absolute",top:0,left:0,width:"100%",transform:`translateY(${C.start}px)`},children:t({item:F,index:O,isSelected:te,isHovered:de,rowProps:_})},K)}),p&&g&&jsxRuntime.jsx("div",{ref:P,style:{position:"absolute",top:`${A.getTotalSize()}px`,left:0,width:"100%",height:1,pointerEvents:"none"}}),L&&jsxRuntime.jsx("div",{style:{position:"absolute",top:`${A.getTotalSize()}px`,left:0,width:"100%"},children:b||jsxRuntime.jsx(wr,{state:"loading-more"})})]}),!A&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[I.map(({item:C,index:F})=>{let O=U(C,F),K=r===O,te=S===O,de={id:O,role:"option","aria-selected":K,"aria-current":K?"page":void 0,tabIndex:K||r==null&&F===0?0:-1,onClick:_=>G(_,C),onMouseEnter:_=>Y(_,C),onMouseLeave:_=>Y(null),onFocus:_=>Y(_,C),onBlur:_=>Y(null),ref:_=>{_?T.current.set(O,_):T.current.delete(O);}};return jsxRuntime.jsx("div",{children:t({item:C,index:F,isSelected:K,isHovered:te,rowProps:de})},O)}),p&&g&&jsxRuntime.jsx("div",{ref:P,style:{height:1}}),L&&(b||jsxRuntime.jsx(wr,{state:"loading-more"}))]})]})}function wh({id:e,title:t,subtitle:r,meta:o,leading:n,trailing:a,isSelected:i=false,isHovered:s=false,disabled:c=false,href:l,size:u="md",onClick:d,onMouseEnter:m,onMouseLeave:p,className:g="",style:f,piiTitleType:h,piiSubtitleType:b,piiEntity:x}){let y=()=>{!c&&d&&d(e);},v=()=>{!c&&m&&m(e);},S=()=>{!c&&p&&p(e);},N={sm:{container:"px-3 py-2 gap-2",title:"text-sm leading-tight",subtitle:"text-xs leading-tight",meta:"text-xs leading-tight",subtitleSpacing:"mt-1",metaSpacing:"mt-1"},md:{container:"px-4 py-3 gap-3",title:"text-base leading-tight",subtitle:"text-sm leading-tight",meta:"text-sm leading-tight",subtitleSpacing:"mt-1",metaSpacing:"mt-1"},lg:{container:"px-4 py-4 gap-3",title:"text-lg leading-tight",subtitle:"text-base leading-tight",meta:"text-sm leading-tight",subtitleSpacing:"mt-1",metaSpacing:"mt-1"},xl:{container:"px-5 py-5 gap-4",title:"text-xl leading-tight",subtitle:"text-base leading-tight",meta:"text-base leading-tight",subtitleSpacing:"mt-1.5",metaSpacing:"mt-1.5"}}[u],T=["flex items-center w-full text-left transition-all duration-200 ease-in-out",N.container,"border-l-2 border-l-transparent","rounded-sm",Je()],k=[s&&!i&&"bg-background-hover",i&&"bg-action-default/5 border-l-action-default shadow-sm",c&&"opacity-50 cursor-not-allowed",!c&&!i&&"hover:bg-background-hover"],P=[...T,...k,g].filter(Boolean).join(" "),A=jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[n&&jsxRuntime.jsx("div",{className:"flex-shrink-0 flex items-center justify-center",children:n}),jsxRuntime.jsx("div",{className:"flex-1 min-w-0",children:jsxRuntime.jsx("div",{className:"flex items-start justify-between gap-2",children:jsxRuntime.jsxs("div",{className:"flex-1 min-w-0",children:[jsxRuntime.jsx("div",{className:`text-text-primary font-medium truncate ${N.title}`,title:typeof t=="string"?t:void 0,"data-pii-type":h&&x?h:void 0,"data-pii-entity":h&&x?x:void 0,children:t}),r&&jsxRuntime.jsx("div",{className:`text-text-secondary truncate ${N.subtitle} ${N.subtitleSpacing}`,title:typeof r=="string"?r:void 0,"data-pii-type":b&&x?b:void 0,"data-pii-entity":b&&x?x:void 0,children:r}),o&&jsxRuntime.jsx("div",{className:`text-text-secondary ${N.meta} ${N.metaSpacing}`,children:o})]})})}),a&&jsxRuntime.jsx("div",{className:"flex-shrink-0",children:a})]});return l?jsxRuntime.jsx("a",{href:l,className:P,style:f,onMouseEnter:v,onMouseLeave:S,"aria-selected":i,"aria-current":i?"page":void 0,tabIndex:c?-1:0,children:A}):jsxRuntime.jsx("button",{type:"button",className:P,style:f,onClick:y,onMouseEnter:v,onMouseLeave:S,disabled:c,"aria-selected":i,tabIndex:c?-1:0,children:A})}function Nh({header:e,children:t,footer:r,width:o="md",tone:n="neutral",elevation:a="sm",showDivider:i=true,"aria-label":s,"aria-labelledby":c,className:l="",style:u}){let d={sm:"w-64",md:"w-80",lg:"w-96",xl:"w-[28rem]","2xl":"w-[32rem]",auto:"w-auto"},m={neutral:"bg-background-surface",subtle:"bg-background-subtle",brand:"bg-background-brand"},p={none:"",sm:"shadow-sm",md:"shadow-md"},g=tailwindMerge.twMerge("flex flex-col h-full",d[o],m[n],p[a],i&&"border-r border-border-muted",l);return jsxRuntime.jsxs("div",{className:g,style:u,role:"complementary","aria-label":s,"aria-labelledby":c,children:[e&&jsxRuntime.jsx("div",{className:"flex-shrink-0 sticky top-0 z-10 bg-inherit border-b border-border-muted",children:e}),jsxRuntime.jsx("div",{className:"flex-1 overflow-y-auto overflow-x-hidden",children:t}),r&&jsxRuntime.jsx("div",{className:"flex-shrink-0 border-t border-border-muted bg-inherit",children:r})]})}function wR({children:e,...t}){return jsxRuntime.jsx(reactAriaComponents.ListBox,{...t,className:ke(t.className,"outline-0"),children:e})}function Wl(){try{if(typeof process<"u"){let e=process.env.MAPBOX_ACCESS_TOKEN;if(e)return e}}catch{}try{if(typeof process<"u"){let e=process.env.NEXT_PUBLIC_MAPBOX_ACCESS_TOKEN;if(e)return e}}catch{}try{let e=undefined.VITE_MAPBOX_ACCESS_TOKEN;if(e)return e}catch{}}function Gl(e,t){let[r,o]=Oe.useState(()=>{if(typeof window>"u")return t;try{let i=window.localStorage.getItem(e);return i?JSON.parse(i):t}catch(i){return console.error(`Error reading localStorage key "${e}":`,i),t}});Oe.useEffect(()=>{if(!(typeof window>"u"))try{window.localStorage.setItem(e,JSON.stringify(r));}catch(i){console.error(`Error writing to localStorage key "${e}":`,i);}},[e,r]);let n=Oe.useCallback(i=>{try{o(s=>i instanceof Function?i(s):i);}catch(s){console.error(`Error setting value for localStorage key "${e}":`,s);}},[e]),a=Oe.useCallback(()=>{try{typeof window<"u"&&window.localStorage.removeItem(e),o(t);}catch(i){console.error(`Error removing localStorage key "${e}":`,i);}},[e,t]);return [r,n,a]}var ap=[{type:"navigation",position:"bottom-right",showCompass:true,showGeolocate:true,showResetZoom:true}];function Th(e="top-right"){switch(e){case "top-left":return "absolute top-4 left-4 z-10";case "top-right":return "absolute top-4 right-4 z-10";case "bottom-left":return "absolute bottom-4 left-4 z-10";case "bottom-right":return "absolute bottom-4 right-4 z-10";default:return "absolute top-4 right-4 z-10"}}var RR="h-12 w-12 md:h-10 md:w-10 p-0 bg-background-surface hover:bg-background-hover shadow-lg border border-border";function Ph(e){return tailwindMerge.twMerge(RR,e)}var Rh="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJcAAACXCAYAAAAYn8l5AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAABtCSURBVHgB7Z2Jkty0GoV7hlz2HcIeSPGkPCmELRC2sO8kN5+L03XmR7IlW3LbSZ+qrp7pdtuydPTvki9u3Lhx/7ASLi4uDvfv973cvXv3Dn/++efh2rVrx2vyAo899tjwThu8Hfo+1d5SLLkv2vXzzz8fnnvuucPff/99eFhw7bAi/vnnn8Pl5eWVz3IDOHewGKgnnnjiCoEgHH///vvvh8cff3z4nrbE63lb+LvFQHMe2jR2P7p2bNMe4f24Grk02LkOjCQTCfmNE3KKdLo5l1jCk08+efjtt98OP/300yAlUgRTW3RdiLkEJZOEa4hccfItuWaN5O2B1cg1daNxEHzg4wCj8koGLXVOCMbnP/zww+GZZ54ZpIoGV8eLoC3IVYNWZPDzRIncG36t5dNkZ5CKfPHFFw9//PHH4ddffz3aYi7tJGkjkXvZjCJy6/P7/bRAzaTeJblaSJO//vrr8PTTTw/2F1IMSCX5gHAtV1VzpEBJe//3v/8NNl4vKdNDKo4dM5gVhxXR21OsgWwc3l944YXBFsPglxQDfM9rjXbTDqnnhwWrkStlYJ8aag8Ekv31448/DpJK3021me9RnU7KiOhktAh9zMWaE3zVUMSWgdSAIHiRxJ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glalt0Mq5G+Zzha8dbY+rvA7Erz2Jf1VQQm9t9zxzU0kLlDp2uX9IwZVZxyO2G19y9ieD165lH9Fosk8DI5sufSSLSZBQSF3maHFuDcVGsLHjqrgKZLUX5JqjGehdg3ULYhq7fAkpy5voaGxxtFgmygtNBJMSfalN4Ghq0DVGhNw+TbZUJBvl6KdlImJXLsphrcJtyi/rBx7bNiPF3drqCfiaI7S/0yAfzPgdNJKqQ+lwh1XfSmYClPT+R2b/03chQhh/fQH7Dav+EOO2oojEn8WdyuYzZbw6+e/WpX6eGYK0xR3BJhumCL/0lYS1EWShiFKXp4HOjIdwcvzNzjuNg4uobmh3lmZNljg+RHIokP7iJ+//S9/0JF4UWgALQSUifcPn+AvCxKcp8u7vR5XAiSC3WYDByQWZ1myzFUtOgbu577+f5ZPq/B5Pf+nAAAAAElFTkSuQmCC";function rn({position:e="top-right",className:t,style:r,children:o}){return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge(Th(e),t),style:r,children:o})}function vr({icon:e,iconSize:t=24,onPress:r,isDisabled:o=false,className:n,iconClassName:a="text-text-primary",variant:i="secondary",isActive:s=false,ariaLabel:c,iconWeight:l="regular",...u}){let d=tailwindMerge.twMerge(Ph(),s&&"bg-action-brand hover:bg-action-brand-hover border-action-brand",n),m=tailwindMerge.twMerge(a,s&&"text-text-inverse");return jsxRuntime.jsx(Z,{...u,className:d,onPress:r,variant:i,size:"sm",isDisabled:o,"aria-label":c,"aria-pressed":s||void 0,type:"button",children:jsxRuntime.jsx(B,{name:e,size:t,className:m,weight:l})})}var IR=e=>[{id:"streets",name:"Streets",description:"Standard street map with traffic data",preview:e?Eh:Lh},{id:"satellite",name:"Satellite",description:"Aerial imagery with street labels",preview:Dh},{id:"neutral",name:"Neutral",description:"Clean design with light/dark variants",preview:e?Rh:Mh}];function FR({type:e,color:t}){let r="inline-block",o=t?{backgroundColor:t}:{};switch(e){case "dot":return jsxRuntime.jsx("span",{className:`${r} h-3 w-3 rounded-full border border-border`,style:o});case "line":return jsxRuntime.jsx("span",{className:`${r} h-0.5 w-6 rounded-full`,style:o});case "polygon":return jsxRuntime.jsx("span",{className:`${r} h-3 w-4 rounded-sm border border-border`,style:o});case "pin":return jsxRuntime.jsx("span",{className:`${r} h-3 w-3 rounded-full rounded-bl-none border border-border transform rotate-45`,style:o});default:return null}}function Fh({position:e="bottom-left",className:t,style:r,currentMapType:o="streets",onMapTypeChange:n,layers:a=[],onLayerToggle:i,onClearAll:s,onLayerVariantChange:c}){let{isDarkTheme:l}=Bt(),{isMobile:u}=Xt(),[d,m]=Oe.useState(false),p=IR(l),g=b=>{n?.(b);},f=a.filter(b=>b.legend),h=jsxRuntime.jsxs("div",{className:u?"space-y-6 pb-6":"space-y-6",children:[jsxRuntime.jsxs("div",{children:[jsxRuntime.jsx("div",{className:"text-sm font-semibold text-text-primary mb-3",children:"Map type"}),jsxRuntime.jsx("div",{className:"grid grid-cols-3 gap-3",children:p.map(b=>jsxRuntime.jsxs("button",{type:"button",onClick:()=>g(b.id),className:"flex flex-col items-center space-y-2 p-3 rounded-lg text-center hover:bg-background-muted transition-colors border border-transparent "+(o===b.id?"bg-background-muted border-border":"hover:border-border"),children:[jsxRuntime.jsx("div",{className:"w-12 h-12 rounded-lg overflow-hidden bg-background-surface "+(o===b.id?"border-2 border-action-default":"border border-border-default"),children:jsxRuntime.jsx("img",{src:b.preview,alt:`${b.name} map preview`,className:"w-full h-full object-cover"})}),jsxRuntime.jsx("div",{className:"text-sm "+(o===b.id?"font-bold text-text-primary":"font-normal text-text-secondary"),children:b.name})]},b.id))})]}),f.length>0&&jsxRuntime.jsxs("div",{children:[jsxRuntime.jsxs("div",{className:"flex items-center justify-between mb-3",children:[jsxRuntime.jsx("div",{className:"text-sm font-semibold text-text-primary",children:"Map details"}),s&&jsxRuntime.jsx("button",{type:"button",onClick:s,className:"text-xs text-text-secondary hover:text-text-primary transition-colors",children:"Clear all"})]}),jsxRuntime.jsx("div",{className:"space-y-2",children:f.map(b=>{let x=b.visible!==false,y=b.legend?.variants;return jsxRuntime.jsxs("div",{className:y?"space-y-1.5":void 0,children:[jsxRuntime.jsx(Cn,{isSelected:x,onChange:()=>i?.(b.id),children:jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[b.legend&&jsxRuntime.jsx(FR,{type:b.legend.swatch,color:b.legend.color}),jsxRuntime.jsx("span",{className:"text-sm text-text-primary",children:b.legend?.label})]})}),y&&jsxRuntime.jsx("div",{className:"pl-6",children:jsxRuntime.jsx(go,{"aria-label":`${b.legend?.label} mode`,size:"sm",isDisabled:!x,items:y.options.map(v=>({...v,value:v.id})),renderItem:v=>v.label,selectedKey:y.selectedId,onSelectionChange:v=>c?.(b.id,String(v))})})]},b.id)})})]})]});return jsxRuntime.jsx(rn,{position:e,className:t,style:r,children:jsxRuntime.jsx("div",{className:"relative",children:u?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(vr,{icon:"Stack",ariaLabel:"Map layers and settings",onPress:()=>m(true)}),jsxRuntime.jsx(lt,{isOpen:d,onClose:()=>m(false),title:"Map layers",animationVariant:"scale",children:h})]}):jsxRuntime.jsxs(reactAriaComponents.DialogTrigger,{children:[jsxRuntime.jsx(vr,{icon:"Stack",ariaLabel:"Map layers and settings"}),jsxRuntime.jsx(st,{placement:"top start",children:jsxRuntime.jsx(reactAriaComponents.Dialog,{"aria-label":"Map layers and settings",className:"p-4 min-w-80 bg-background-surface border border-border rounded-lg shadow-xl focus:outline-none focus:ring-0",children:h})})]})})})}function Vh({position:e="top-right",className:t,style:r,onToggle:o,isActive:n=false}){return jsxRuntime.jsx(rn,{position:e,className:tailwindMerge.twMerge("md:hidden",t),style:r,children:jsxRuntime.jsx(vr,{icon:"ListDashes",onPress:o,isActive:n,ariaLabel:n?"Hide list view":"Show list view"})})}var OR={sm:"gap-2",md:"gap-4",lg:"gap-6"};function Ul({position:e="top-right",className:t,style:r,children:o,orientation:n="vertical",spacing:a="md"}){return jsxRuntime.jsx(rn,{position:e,style:r,children:jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("flex",n==="vertical"?"flex-col":"flex-row",OR[a],t),children:o})})}function Oh({mapRef:e,position:t="bottom-right",className:r,style:o,showCompass:n=true,showGeolocate:a=true,showResetZoom:i=true,onResetZoom:s,onCompassClick:c,onGeolocateClick:l}){let[u,d]=Oe.useState(false),m=Oe.useRef(true);Oe.useEffect(()=>()=>{m.current=false;},[]);let p=()=>{c?c():e.current&&e.current.easeTo({bearing:0,duration:500});},g=async()=>{if(!u)if(l)l();else {if(!navigator.geolocation){console.warn("Geolocation is not supported by this browser.");return}if(navigator.permissions?.query)try{if((await navigator.permissions.query({name:"geolocation"})).state==="denied"){console.warn("Geolocation permission was previously denied. Please enable location services in your browser settings.");return}}catch{}d(true),navigator.geolocation.getCurrentPosition(y=>{if(!m.current)return;let{latitude:v,longitude:S}=y.coords;e.current&&e.current.flyTo({center:[S,v],zoom:15,duration:2e3}),d(false);},y=>{if(m.current){switch(console.warn("Geolocation error:",{code:y.code,message:y.message,PERMISSION_DENIED:y.PERMISSION_DENIED,POSITION_UNAVAILABLE:y.POSITION_UNAVAILABLE,TIMEOUT:y.TIMEOUT}),y.code){case y.PERMISSION_DENIED:console.warn("Location access denied. Please enable location services in your browser settings.");break;case y.POSITION_UNAVAILABLE:console.warn("Location information unavailable.");break;case y.TIMEOUT:console.warn("Location request timed out.");break;default:console.warn("Error getting location:",y.message);break}d(false);}},{enableHighAccuracy:true,timeout:1e4,maximumAge:0});}};if(!n&&!a&&!i)return null;let f=!i&&n,h=!i&&!n&&a,b=!a&&n;return jsxRuntime.jsxs(Ul,{position:t,className:r,style:o,spacing:"sm",children:[i&&jsxRuntime.jsx(vr,{icon:"ArrowsOut",onPress:s,ariaLabel:"Reset zoom to show all points",className:tailwindMerge.twMerge(!(!a&&!n&&i)&&"rounded-b-none",n&&"border-b-0")}),n&&jsxRuntime.jsx(vr,{icon:"Compass",onPress:p,ariaLabel:"Reset map orientation",className:tailwindMerge.twMerge(!f&&"rounded-t-none border-t-0",!b&&"rounded-b-none border-b-0")}),a&&jsxRuntime.jsx(vr,{icon:u?"Spinner":"NavigationArrow",onPress:g,isDisabled:u,ariaLabel:"Go to my location",iconClassName:tailwindMerge.twMerge("text-text-primary",u&&"animate-spin"),className:tailwindMerge.twMerge(!h&&"rounded-t-none border-t-0",!h&&n&&"lg:rounded-t lg:border-t")})]})}function Uh({position:e="top-left",className:t,style:r,onSearch:o,placeholder:n="Search places...",showSearchInput:a=true}){let[i,s]=Oe.useState(false),[c,l]=Oe.useState(""),u=()=>{a?s(!i):o&&o("");},d=p=>{p.preventDefault(),o&&c.trim()&&(o(c.trim()),s(false));},m=p=>{p.key==="Escape"&&s(false);};return jsxRuntime.jsx(rn,{position:e,className:t,style:r,children:jsxRuntime.jsxs("div",{className:"relative",children:[jsxRuntime.jsx(vr,{icon:"MagnifyingGlass",onPress:u,ariaLabel:"Search"}),i&&a&&jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("absolute top-12 left-0 min-w-64","bg-background-surface border border-border rounded-lg shadow-xl p-3"),children:jsxRuntime.jsx("form",{onSubmit:d,children:jsxRuntime.jsxs("div",{className:"flex items-center space-x-2",children:[jsxRuntime.jsx("input",{type:"text",value:c,onChange:p=>l(p.target.value),onKeyDown:m,placeholder:n,className:tailwindMerge.twMerge("flex-1 px-3 py-2 text-sm rounded border","bg-background border-border text-text-primary placeholder:text-text-secondary","focus:outline-none focus:ring-2 focus:ring-action-brand"),autoFocus:true}),jsxRuntime.jsx(Z,{type:"submit",variant:"primary",size:"sm",className:"px-3 py-2",children:"Search"})]})})})]})})}var KR={navigation:"bottom-right",layers:"bottom-left",search:"top-left",list:"top-right",custom:"top-right"};function sp(e){return e.position??KR[e.type]}function Kh(e,t,r){let o=sp(e),n=e.id??`${e.type}-${t}`;switch(e.type){case "navigation":{let i=e.showResetZoom!==false&&r.showResetButton;return jsxRuntime.jsx(Oh,{mapRef:r.mapRef,position:o,showCompass:e.showCompass,showGeolocate:e.showGeolocate,showResetZoom:i,onResetZoom:e.onResetZoom,onCompassClick:e.onCompassClick,onGeolocateClick:e.onGeolocateClick,style:e.style,className:e.className},n)}case "layers":return jsxRuntime.jsx(Fh,{position:o,currentMapType:e.currentMapType,onMapTypeChange:e.onMapTypeChange,layers:e.layers??r.layers,onLayerToggle:e.onLayerToggle,onClearAll:e.onClearAll,onLayerVariantChange:e.onLayerVariantChange,style:e.style,className:e.className},n);case "search":return jsxRuntime.jsx(Uh,{position:o,onSearch:e.onSearch,placeholder:e.placeholder,showSearchInput:e.showSearchInput,style:e.style,className:e.className},n);case "list":return jsxRuntime.jsx(Vh,{position:o,onToggle:e.onToggle,isActive:e.isActive,style:e.style,className:e.className},n);case "custom":return jsxRuntime.jsx("div",{children:e.render(r)},n);default:return null}}function lp(e,t){let r=e.reduce((n,a,i)=>{let s=sp(a);return n[s]||(n[s]=[]),n[s].push({control:a,index:i}),n},{}),o=[];for(let[n,a]of Object.entries(r)){if(a.length===1){o.push(Kh(a[0].control,a[0].index,t));continue}let i={position:"static",top:"auto",right:"auto",bottom:"auto",left:"auto"};o.push(jsxRuntime.jsx(Ul,{position:n,spacing:"sm",children:a.map(({control:s,index:c})=>{let l={...s,style:{...s.style,...i}};return Kh(l,c,t)})},`group-${n}`));}return o}var cp={vector:e=>({kind:"vector",...e}),geojson:e=>({kind:"geojson",...e}),customPins:e=>({kind:"customPins",...e}),raster:e=>({kind:"raster",...e}),clusteredVector:e=>({kind:"clusteredVector",...e})};function dp(e){return e.kind==="vector"}function up(e){return e.kind==="geojson"}function pp(e){return e.kind==="customPins"}function mp(e){return e.kind==="raster"}function Hi(e,t="streets"){let r=[...e].sort((o,n)=>(o.z??0)-(n.z??0));return jsxRuntime.jsx(jsxRuntime.Fragment,{children:r.map(o=>{if(!o.visible&&o.visible!==void 0)return null;switch(o.kind){case "vector":return jsxRuntime.jsx(JR,{spec:o,mapType:t},o.id);case "geojson":return jsxRuntime.jsx(jR,{spec:o,mapType:t},o.id);case "customPins":return jsxRuntime.jsx(qR,{spec:o,mapType:t},o.id);case "raster":return jsxRuntime.jsx(QR,{spec:o},o.id);case "clusteredVector":return jsxRuntime.jsx(XR,{spec:o,mapType:t},o.id);default:return console.warn("[Layers] Unknown layer kind:",o.kind),null}})})}function JR({spec:e,mapType:t}){let{colorMode:r}=Bt(),o=Oe.useMemo(()=>{let c=jh(e.style,e.renderAs,r,t);if(e.hideChipWhen&&e.renderAs==="circle"){let l=c,u=l["circle-opacity"]??1,d=l["circle-stroke-opacity"]??1;return {...c,"circle-opacity":["case",e.hideChipWhen,0,u],"circle-stroke-opacity":["case",e.hideChipWhen,0,d]}}return c},[e.style,e.renderAs,e.hideChipWhen,r,t]),n=Oe.useMemo(()=>({visibility:e.visible===false?"none":"visible"}),[e.visible]),a={id:e.id,type:Xh(e.renderAs),"source-layer":e.sourceLayer,paint:o,layout:n};e.filter!==void 0&&(a.filter=e.filter),e.minZoom!==void 0&&(a.minzoom=e.minZoom),e.maxZoom!==void 0&&(a.maxzoom=e.maxZoom);let i=e.tileset.startsWith("mapbox://"),s={id:`${e.id}-source`,type:"vector"};return e.promoteId!==void 0&&(s.promoteId=e.promoteId),i?s.url=e.tileset:(s.tiles=[e.tileset],s.minzoom=0,s.maxzoom=22),jsxRuntime.jsx(sM.Source,{...s,children:jsxRuntime.jsx(sM.Layer,{...a})},e.tileset)}function XR({spec:e}){let{colorMode:t,isDarkTheme:r}=Bt(),o=1.25,n=9,a=3,i=n*1.4,s=.2,c=[0,5],l=Oe.useMemo(()=>r?{clusters:e.clusterStyle?.color?Ar(e.clusterStyle.color):"#000000",shadow:e.clusterStyle?.shadowColor||"rgba(0, 0, 0, 0.5)",point:{fill:e.pointStyle?.color?Ar(e.pointStyle.color):"#000000",stroke:e.pointStyle?.borderColor||"#ffffff",shadow:"rgba(0, 0, 0, 0.5)"},text:{onCluster:"#ffffff"},selected:{fill:e.selectedStyle?.color?Ar(e.selectedStyle.color):"#444ae1"}}:{clusters:e.clusterStyle?.color?Ar(e.clusterStyle.color):"#000000",shadow:e.clusterStyle?.shadowColor||"rgba(0, 0, 0, 0.3)",point:{fill:e.pointStyle?.color?Ar(e.pointStyle.color):"#000000",stroke:e.pointStyle?.borderColor||"#ffffff",shadow:"rgba(0, 0, 0, 0.3)"},text:{onCluster:"#ffffff"},selected:{fill:e.selectedStyle?.color?Ar(e.selectedStyle.color):"#444ae1"}},[r,t,e.clusterStyle,e.pointStyle,e.selectedStyle]),u=10,d=30,m=Math.log(2),p=Math.log(2e3),g=(e.clusterStyle?.sizes?.length??0)>0,f=Oe.useMemo(()=>g?e.clusterStyle.sizes.map(({threshold:S,radius:w})=>({threshold:S,radius:w,color:l.clusters})):[{threshold:30,radius:20,color:l.clusters},{threshold:200,radius:35,color:l.clusters},{threshold:1e3,radius:50,color:l.clusters}],[g,e.clusterStyle?.sizes,l.clusters]),h=S=>g?["step",["get","point_count"],S[0].radius,...S.flatMap(({threshold:w,radius:N})=>[w,N])]:["interpolate",["linear"],["ln",["max",2,["get","point_count"]]],m,u,p,d],b=S=>g?["step",["get","point_count"],S[0].radius*o,...S.flatMap(({threshold:w,radius:N})=>[w,N*o])]:["interpolate",["linear"],["ln",["max",2,["get","point_count"]]],m,u*o,p,d*o],x=e.tileset.startsWith("mapbox://"),y={id:`${e.id}-source`,type:"vector"};x?y.url=e.tileset:(y.tiles=[e.tileset],y.minzoom=0,y.maxzoom=22);let v=Oe.useMemo(()=>{let S=e.pointStyle?.radius??n,w=e.pointStyle?.borderWidth??a,N=e.selectedStyle?.radius??n*1.5,T=k=>{let P={...k};return e.minZoom!==void 0&&(P.minzoom=e.minZoom),e.maxZoom!==void 0&&(P.maxzoom=e.maxZoom),P};return [T({id:`${e.id}-cluster-shadows`,type:"circle","source-layer":e.sourceLayer,filter:["==",["get","cluster"],true],paint:{"circle-radius":b(f),"circle-color":l.shadow,"circle-blur":.5,"circle-translate":[0,8]}}),T({id:`${e.id}-points-shadow`,type:"circle","source-layer":e.sourceLayer,filter:["all",["!=",["get","cluster"],true],["!=",["get","id"],e.selectedId||"selected"]],paint:{"circle-radius":i,"circle-color":l.point.shadow,"circle-blur":s,"circle-translate":c}}),T({id:`${e.id}-clusters`,type:"circle","source-layer":e.sourceLayer,filter:["==",["get","cluster"],true],paint:{"circle-radius":h(f),"circle-color":["step",["get","point_count"],f[0].color,...f.flatMap(({threshold:k,color:P})=>[k,P])]}}),T({id:`${e.id}-cluster-count`,type:"symbol","source-layer":e.sourceLayer,filter:["==",["get","cluster"],true],layout:{"text-field":["case",["has","point_count_abbreviated"],["get","point_count_abbreviated"],["to-string",["get","point_count"]]],"text-font":["DIN Offc Pro Medium","Arial Unicode MS Bold"],"text-size":14,"text-offset":[0,.1]},paint:{"text-color":l.text.onCluster}}),T({id:`${e.id}-points`,type:"circle","source-layer":e.sourceLayer,filter:["all",["!=",["get","cluster"],true],["!=",["get","id"],e.selectedId||"selected"]],paint:{"circle-radius":S,"circle-color":l.point.fill,"circle-stroke-width":w,"circle-stroke-color":l.point.stroke}}),T({id:`${e.id}-selected-point`,type:"circle","source-layer":e.sourceLayer,filter:["==",["get","id"],e.selectedId||"selected"],paint:{"circle-radius":N,"circle-color":l.selected.fill,"circle-stroke-width":w,"circle-stroke-color":"#ffffff"}}),...e.pointStyle?.icon?[T({id:`${e.id}-points-icon`,type:"symbol","source-layer":e.sourceLayer,filter:["all",["!=",["get","cluster"],true],["!=",["get","id"],e.selectedId||"selected"]],layout:{"icon-image":e.pointStyle.icon.name,"icon-size":Yh(S,e.pointStyle.icon.size),"icon-allow-overlap":true,"icon-ignore-placement":true}}),T({id:`${e.id}-selected-point-icon`,type:"symbol","source-layer":e.sourceLayer,filter:["==",["get","id"],e.selectedId||"selected"],layout:{"icon-image":e.pointStyle.icon.name,"icon-size":Yh(N,e.pointStyle.icon.size),"icon-allow-overlap":true,"icon-ignore-placement":true}})]:[]]},[e.id,e.sourceLayer,e.selectedId,e.minZoom,e.maxZoom,e.pointStyle,e.selectedStyle,f,l,n,a,i,s]);return jsxRuntime.jsx(sM.Source,{...y,children:v.map(S=>jsxRuntime.jsx(sM.Layer,{...S},S.id))},e.tileset)}function jR({spec:e,mapType:t}){let{colorMode:r}=Bt(),o=Oe.useMemo(()=>typeof e.data=="string"?null:e.data,[e.data]),n=Oe.useMemo(()=>jh(e.style,e.renderAs,r,t,o),[e.style,e.renderAs,r,t,o]),a=Oe.useMemo(()=>({visibility:e.visible===false?"none":"visible"}),[e.visible]),i=Oe.useMemo(()=>(typeof e.data=="string",e.data),[e.data]),s={id:`${e.id}-source`,type:"geojson",data:i};e.cluster?.enabled&&(s.cluster=true,s.clusterRadius=e.cluster.radius??50,s.clusterMaxZoom=e.cluster.maxZoom??14);let c={id:e.id,type:Xh(e.renderAs),paint:n,layout:a};return e.minZoom!==void 0&&(c.minzoom=e.minZoom),e.maxZoom!==void 0&&(c.maxzoom=e.maxZoom),jsxRuntime.jsx(sM.Source,{...s,children:jsxRuntime.jsx(sM.Layer,{...c})})}function qR({spec:e,mapType:t}){let r=e.pin;return jsxRuntime.jsx(jsxRuntime.Fragment,{children:e.data.map((o,n)=>{let[a,i]=e.getPosition(o),s=e.pinProps?e.pinProps(o):{};return jsxRuntime.jsx(sM.Marker,{longitude:a,latitude:i,anchor:"bottom",children:jsxRuntime.jsx(r,{...s})},`${e.id}-${n}`)})})}function QR({spec:e}){let t=Oe.useMemo(()=>{if(!e.style)return {};let n={};return e.style.opacity!==void 0&&(n["raster-opacity"]=e.style.opacity),e.style.brightnessMin!==void 0&&(n["raster-brightness-min"]=e.style.brightnessMin),e.style.brightnessMax!==void 0&&(n["raster-brightness-max"]=e.style.brightnessMax),e.style.contrast!==void 0&&(n["raster-contrast"]=e.style.contrast),e.style.saturation!==void 0&&(n["raster-saturation"]=e.style.saturation),e.style.hueRotate!==void 0&&(n["raster-hue-rotate"]=e.style.hueRotate),e.style.fadeDuration!==void 0&&(n["raster-fade-duration"]=e.style.fadeDuration),n},[e.style]),r={id:`${e.id}-source`,type:"raster",tiles:[e.tileset]};e.tileSize&&(r.tileSize=e.tileSize);let o={id:e.id,type:"raster",paint:t};return e.minZoom!==void 0&&(o.minzoom=e.minZoom),e.maxZoom!==void 0&&(o.maxzoom=e.maxZoom),jsxRuntime.jsx(sM.Source,{...r,children:jsxRuntime.jsx(sM.Layer,{...o})},e.tileset)}var Kr="#666";function Yh(e,t){let r=t??64;return e*2/r}function Xh(e){switch(e){case "line":return "line";case "fill":return "fill";case "circle":return "circle";case "symbol":return "symbol";case "heatmap":return "heatmap";default:return "circle"}}function jh(e,t,r,o,n){if(!e)return {};let a={};if(e.color){let i=Ar(e.color,r,n);switch(t){case "line":a["line-color"]=i;break;case "fill":a["fill-color"]=i;break;case "circle":a["circle-color"]=i;break}}if(e.width&&t==="line"&&(a["line-width"]=Yl(e.width)),e.radius&&t==="circle"&&(a["circle-radius"]=Yl(e.radius)),e.opacity!==void 0)switch(t){case "line":a["line-opacity"]=e.opacity;break;case "fill":a["fill-opacity"]=e.opacity;break;case "circle":a["circle-opacity"]=e.opacity;break}if(e.fillOpacity!==void 0&&t==="fill"&&(a["fill-opacity"]=e.fillOpacity),t==="fill"&&e.borderWidth&&(a["fill-outline-color"]=e.borderColor?Ar(e.borderColor,r,n):Ar(e.color||"#000",r,n)),t==="circle"&&e.borderWidth){a["circle-stroke-width"]=e.borderWidth;let i=e.borderColor?Ar(e.borderColor,r,n):Tt(`map-${o}-border`,"#ffffff");a["circle-stroke-color"]=i;}return t==="heatmap"&&(e.weight!==void 0&&(a["heatmap-weight"]=typeof e.weight=="string"?["get",e.weight]:Yl(e.weight)),e.intensity!==void 0&&(a["heatmap-intensity"]=e.intensity),e.radius!==void 0&&(a["heatmap-radius"]=Yl(e.radius)),e.opacity!==void 0&&(a["heatmap-opacity"]=e.opacity)),a}function ZR(e,t){let r=e.by,o=e.mapping,n=["match",["get",r]];for(let[i,s]of Object.entries(o))n.push(i),n.push(Ar(s));let a=e.fallback?Ar(e.fallback):Kr;return n.push(a),n}function _R(e,t){let r=em(t,e);r.length>20&&console.warn(`[Layers] Categorical auto-assignment found ${r.length} unique values for property "${e}". The 6-color palette will repeat ${Math.ceil(r.length/6)} times. Consider using explicit color mapping or reducing categories.`);let o=Rc(r),n=["match",["get",e]];for(let[a,i]of Object.entries(o))n.push(a),n.push(i);return n.push(Kr),n}function $R(e,t="viridis",r,o){let n=Mc(r,e),a;if(o&&o!=="auto")a=o;else {if(a=Dc(n),n.length===0)return console.warn(`[Layers] No numeric values found for property "${e}"`),Kr;console.log(`[Layers] Auto-calculated sequential scale for "${e}": ${a.min} to ${a.max}`);}let i=Ec(t),s=["interpolate",["linear"],["get",e]];return i.forEach((c,l)=>{let u=l/(i.length-1),d=a.min+u*(a.max-a.min);s.push(d,c);}),s}function eM(e,t="redYellowBlue",r,o,n){let a=Mc(r,e),i=tm(a,o),s;if(n&&n!=="auto")s=n;else {if(s=Dc(a),a.length===0)return console.warn(`[Layers] No numeric values found for property "${e}"`),Kr;console.log(`[Layers] Auto-calculated diverging scale for "${e}": ${s.min} \u2190 ${i} \u2192 ${s.max}`);}let c=Lc(t),l=4,u=["interpolate",["linear"],["get",e]];for(let d=0;d<=l;d++){let m=d/l,p=s.min+m*(i-s.min);u.push(p,c[d]);}for(let d=l+1;d<c.length;d++){let m=(d-l)/(c.length-1-l),p=i+m*(s.max-i);u.push(p,c[d]);}return u}function Jh(e){if(!(e.startsWith("var(")||e.startsWith("--")||e.startsWith("color-")))return e;let r=Tt(e,Kr);return r.includes("var(")?Kr:r}function Ar(e,t,r){if(typeof e=="string")return Jh(e);if("token"in e)return Tt(e.token,Kr);if("hex"in e)return Jh(e.hex);if("by"in e){if("palette"in e){if(e.palette==="categorical")return r?_R(e.by,r):(console.warn("[Layers] Categorical auto-assignment requires GeoJSON data (not URL-based data)"),Kr);if(e.palette==="sequential")return r?$R(e.by,e.scheme,r,e.scale):(console.warn("[Layers] Sequential palette requires GeoJSON data (not URL-based data)"),Kr);if(e.palette==="diverging")return r?eM(e.by,e.scheme,r,e.center,e.scale):(console.warn("[Layers] Diverging palette requires GeoJSON data (not URL-based data)"),Kr)}if("mapping"in e)return ZR(e)}return Kr}function Yl(e){return typeof e=="number"?e:"byZoom"in e?["interpolate",["linear"],["zoom"],...e.byZoom.flatMap(([t,r])=>[t,r])]:e}var jl=null;function ql(){return typeof window>"u"||process.env.NODE_ENV==="test"||typeof process<"u"&&process.env?.CHROMATIC||typeof ({ url: (typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('index.cjs', document.baseURI).href)) })<"u"&&undefined?.CHROMATIC?Promise.resolve():(jl||(jl=import('mapbox-gl/dist/mapbox-gl.css').then(()=>{}).catch(t=>{console.error("Failed to load Mapbox CSS",t),jl=null;})),jl)}function Ql(){return jsxRuntime.jsx("div",{className:"absolute inset-0 z-50 bg-background-surface/90 backdrop-blur-sm pointer-events-none","data-testid":"map-loading-overlay",children:jsxRuntime.jsx("div",{className:"absolute inset-0 opacity-20",children:jsxRuntime.jsx("div",{className:"h-full w-full",style:{backgroundImage:`
|
|
40
|
+
`,"aria-label":"Open search",children:[jsxRuntime.jsx(B,{name:"MagnifyingGlass",size:18,className:"flex-shrink-0 transition-colors text-text-secondary"}),jsxRuntime.jsx("span",{className:`flex-1 text-left text-sm transition-colors ${o==="elevated"?"text-text-secondary font-normal":"text-text-disabled"}`,children:e}),r&&jsxRuntime.jsxs("div",{className:"hidden sm:flex items-center gap-1 flex-shrink-0",children:[jsxRuntime.jsx("kbd",{className:`px-2 py-1 text-xs font-medium rounded transition-colors ${o==="elevated"?"bg-background-surface/80 border border-border-muted text-text-secondary":"bg-background-muted border border-border-muted"}`,children:a?"\u2318":"Ctrl"}),jsxRuntime.jsx("kbd",{className:`px-2 py-1 text-xs font-medium rounded transition-colors ${o==="elevated"?"bg-background-surface/80 border border-border-muted text-text-secondary":"bg-background-muted border border-border-muted"}`,children:"K"})]})]})}var D2={1:"grid-cols-1",2:"grid-cols-2",3:"grid-cols-3",4:"grid-cols-4",5:"grid-cols-5",6:"grid-cols-6",7:"grid-cols-7",8:"grid-cols-8",9:"grid-cols-9",10:"grid-cols-10",11:"grid-cols-11",12:"grid-cols-12",none:"grid-cols-none"},E2={sm:{1:"sm:grid-cols-1",2:"sm:grid-cols-2",3:"sm:grid-cols-3",4:"sm:grid-cols-4",5:"sm:grid-cols-5",6:"sm:grid-cols-6",7:"sm:grid-cols-7",8:"sm:grid-cols-8",9:"sm:grid-cols-9",10:"sm:grid-cols-10",11:"sm:grid-cols-11",12:"sm:grid-cols-12",none:"sm:grid-cols-none"},md:{1:"md:grid-cols-1",2:"md:grid-cols-2",3:"md:grid-cols-3",4:"md:grid-cols-4",5:"md:grid-cols-5",6:"md:grid-cols-6",7:"md:grid-cols-7",8:"md:grid-cols-8",9:"md:grid-cols-9",10:"md:grid-cols-10",11:"md:grid-cols-11",12:"md:grid-cols-12",none:"md:grid-cols-none"},lg:{1:"lg:grid-cols-1",2:"lg:grid-cols-2",3:"lg:grid-cols-3",4:"lg:grid-cols-4",5:"lg:grid-cols-5",6:"lg:grid-cols-6",7:"lg:grid-cols-7",8:"lg:grid-cols-8",9:"lg:grid-cols-9",10:"lg:grid-cols-10",11:"lg:grid-cols-11",12:"lg:grid-cols-12",none:"lg:grid-cols-none"},xl:{1:"xl:grid-cols-1",2:"xl:grid-cols-2",3:"xl:grid-cols-3",4:"xl:grid-cols-4",5:"xl:grid-cols-5",6:"xl:grid-cols-6",7:"xl:grid-cols-7",8:"xl:grid-cols-8",9:"xl:grid-cols-9",10:"xl:grid-cols-10",11:"xl:grid-cols-11",12:"xl:grid-cols-12",none:"xl:grid-cols-none"},"2xl":{1:"2xl:grid-cols-1",2:"2xl:grid-cols-2",3:"2xl:grid-cols-3",4:"2xl:grid-cols-4",5:"2xl:grid-cols-5",6:"2xl:grid-cols-6",7:"2xl:grid-cols-7",8:"2xl:grid-cols-8",9:"2xl:grid-cols-9",10:"2xl:grid-cols-10",11:"2xl:grid-cols-11",12:"2xl:grid-cols-12",none:"2xl:grid-cols-none"}},L2={none:"gap-0",xs:"gap-x-2 gap-y-1",sm:"gap-x-3 gap-y-2",md:"gap-x-4 gap-y-3",lg:"gap-x-6 gap-y-4",xl:"gap-x-8 gap-y-6","2xl":"gap-x-12 gap-y-8"},A2={none:"gap-x-0",xs:"gap-x-2",sm:"gap-x-3",md:"gap-x-4",lg:"gap-x-6",xl:"gap-x-8","2xl":"gap-x-12"},I2={none:"gap-y-0",xs:"gap-y-1",sm:"gap-y-2",md:"gap-y-3",lg:"gap-y-4",xl:"gap-y-6","2xl":"gap-y-8"},F2={start:"items-start",center:"items-center",end:"items-end",stretch:"items-stretch",baseline:"items-baseline"},B2={start:"justify-start",center:"justify-center",end:"justify-end",between:"justify-between",around:"justify-around",evenly:"justify-evenly"},V2={row:"grid-flow-row",col:"grid-flow-col",dense:"grid-flow-dense","row-dense":"grid-flow-row-dense","col-dense":"grid-flow-col-dense"},z2={1:"col-span-1",2:"col-span-2",3:"col-span-3",4:"col-span-4",5:"col-span-5",6:"col-span-6",7:"col-span-7",8:"col-span-8",9:"col-span-9",10:"col-span-10",11:"col-span-11",12:"col-span-12",full:"col-span-full",auto:"col-auto"},O2={sm:{1:"sm:col-span-1",2:"sm:col-span-2",3:"sm:col-span-3",4:"sm:col-span-4",5:"sm:col-span-5",6:"sm:col-span-6",7:"sm:col-span-7",8:"sm:col-span-8",9:"sm:col-span-9",10:"sm:col-span-10",11:"sm:col-span-11",12:"sm:col-span-12",full:"sm:col-span-full",auto:"sm:col-auto"},md:{1:"md:col-span-1",2:"md:col-span-2",3:"md:col-span-3",4:"md:col-span-4",5:"md:col-span-5",6:"md:col-span-6",7:"md:col-span-7",8:"md:col-span-8",9:"md:col-span-9",10:"md:col-span-10",11:"md:col-span-11",12:"md:col-span-12",full:"md:col-span-full",auto:"md:col-auto"},lg:{1:"lg:col-span-1",2:"lg:col-span-2",3:"lg:col-span-3",4:"lg:col-span-4",5:"lg:col-span-5",6:"lg:col-span-6",7:"lg:col-span-7",8:"lg:col-span-8",9:"lg:col-span-9",10:"lg:col-span-10",11:"lg:col-span-11",12:"lg:col-span-12",full:"lg:col-span-full",auto:"lg:col-auto"},xl:{1:"xl:col-span-1",2:"xl:col-span-2",3:"xl:col-span-3",4:"xl:col-span-4",5:"xl:col-span-5",6:"xl:col-span-6",7:"xl:col-span-7",8:"xl:col-span-8",9:"xl:col-span-9",10:"xl:col-span-10",11:"xl:col-span-11",12:"xl:col-span-12",full:"xl:col-span-full",auto:"xl:col-auto"},"2xl":{1:"2xl:col-span-1",2:"2xl:col-span-2",3:"2xl:col-span-3",4:"2xl:col-span-4",5:"2xl:col-span-5",6:"2xl:col-span-6",7:"2xl:col-span-7",8:"2xl:col-span-8",9:"2xl:col-span-9",10:"2xl:col-span-10",11:"2xl:col-span-11",12:"2xl:col-span-12",full:"2xl:col-span-full",auto:"2xl:col-auto"}};function Qx(e,t,r){if(!e)return "";if(typeof e!="object")return t[e]||"";let o=[];return "base"in e&&e.base!==void 0&&o.push(t[e.base]),Object.entries(r).forEach(([n,a])=>{let i=e[n];i!==void 0&&o.push(a[i]);}),o.join(" ")}function Qu({cols:e=1,gap:t="md",gapX:r,gapY:o,align:n="stretch",justify:a="start",flow:i="row",autoFit:s,autoFill:c,className:l,children:u}){let d=tailwindMerge.twMerge("grid",s||c?"":Qx(e,D2,E2),!r&&!o&&L2[t],r&&A2[r],o&&I2[o],F2[n],B2[a],V2[i],l),m={};return s?m.gridTemplateColumns=`repeat(auto-fit, minmax(${s}, 1fr))`:c&&(m.gridTemplateColumns=`repeat(auto-fill, minmax(${c}, 1fr))`),jsxRuntime.jsx("div",{className:d,style:m,children:u})}function H2({span:e,className:t,children:r}){let o=tailwindMerge.twMerge(Qx(e,z2,O2),t);return jsxRuntime.jsx("div",{className:o,children:r})}Qu.Item=H2;function W2(e,t){return Oe__namespace.default.isValidElement(e)?e:jr({value:e,formatter:t,emptyClassName:"text-text-secondary",emptyText:"\u2014"})}function G2(e){if(e.thresholds&&e.value!==null&&e.value!==void 0){for(let t of e.thresholds)if(t.when(e.value))return t.tone}return e.tone}var U2={neutral:"text-text-primary",success:"text-feedback-success",warning:"text-feedback-warning",error:"text-feedback-error",info:"text-feedback-info"},K2=24,Y2=20;function J2({item:e,dense:t,valueAlign:r}){let o=G2(e),n=o?U2[o]:"",a=e.stackOnMobile,i=typeof e.value=="string"&&e.value.length>K2&&!e.formatter&&!Oe__namespace.default.isValidElement(e.value),s=W2(e.value,e.formatter),c=i?ua(e.value,Y2):null,l=typeof e.copyable=="function"?e.copyable(e.value):String(e.value),u=e.piiType&&e.piiEntity?{"data-pii-type":e.piiType,"data-pii-entity":e.piiEntity}:{},d=Object.keys(u).length>0,m=i?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(Zt,{content:d?jsxRuntime.jsx("span",{...u,children:String(e.value)}):String(e.value),children:jsxRuntime.jsx("span",{className:tailwindMerge.twMerge("md:hidden",e.href?"hover:underline cursor-pointer":""),...u,children:c})}),jsxRuntime.jsx("span",{className:tailwindMerge.twMerge("hidden md:inline",e.href?"hover:underline cursor-pointer":""),...u,children:s})]}):jsxRuntime.jsx("span",{className:e.href?"hover:underline cursor-pointer":"",...u,children:s}),p=e.copyable?jsxRuntime.jsx(Oo,{value:l,size:"sm",children:jsxRuntime.jsx("span",{className:"sr-only",children:"Copy"})}):null,g=e.copyable&&(e.copyIconPosition==="left"||!e.copyIconPosition),f=e.copyable&&e.copyIconPosition==="right",b=jsxRuntime.jsxs("dd",{className:tailwindMerge.twMerge(t?"text-sm":"text-base","font-medium",a?r==="start"?"text-left":"text-left sm:text-right":r==="start"?"text-left":"text-right",n,e.disabled&&"opacity-50","overflow-hidden min-w-0"),children:[jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("inline-flex items-center gap-1 max-w-full",r==="start"?"justify-start":"justify-end"),children:[jsxRuntime.jsxs("span",{className:"inline-flex items-center gap-1 min-w-0",children:[m,e.iconRight]}),f&&p]}),e.meta&&jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("text-xs text-text-secondary mt-0.5",r==="start"?"text-left":"text-right"),children:e.meta})]}),x=jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsxs("dt",{className:tailwindMerge.twMerge(t?"text-xs":"text-sm","text-text-secondary truncate","flex items-center gap-1",e.disabled&&"opacity-50"),children:[e.iconLeft,jsxRuntime.jsx("span",{title:typeof e.label=="string"?e.label:void 0,children:e.label}),e.tooltip&&jsxRuntime.jsx(B,{name:"Question",size:10,className:"text-text-secondary","aria-label":"More information"})]}),g&&jsxRuntime.jsx("div",{className:"flex items-center",children:p}),e.href?jsxRuntime.jsx("a",{href:e.href,onClick:e.onAction,className:"block",children:b}):b]});return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("grid",a?"items-start sm:items-center":g?"items-center":"items-start",a?g?"grid-cols-1 gap-y-1 sm:grid-cols-[minmax(120px,1fr)_auto_auto] sm:gap-x-1 sm:gap-y-0":t?"grid-cols-1 gap-y-1 sm:grid-cols-[minmax(120px,1fr)_1fr] sm:gap-x-2 sm:gap-y-0":"grid-cols-1 gap-y-1 sm:grid-cols-[minmax(120px,1fr)_1fr] sm:gap-x-4 sm:gap-y-0":g?"grid-cols-[minmax(120px,1fr)_auto_auto] gap-x-1":t?"grid-cols-[minmax(120px,1fr)_1fr] gap-x-2":"grid-cols-[minmax(120px,1fr)_1fr] gap-x-4"),children:x})}function Al({items:e,layout:t="one-column",dense:r=false,valueAlign:o="end",showDividers:n=false,skeleton:a=false,empty:i=false,error:s,className:c}){return a?jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("grid",t==="two-column"?"md:grid-cols-2 gap-x-6":"grid-cols-1",r?"gap-y-1":"gap-y-2",c),children:Array.from({length:e.length||4}).map((l,u)=>jsxRuntime.jsxs("div",{className:"grid grid-cols-[1fr_auto] items-start gap-x-4",children:[jsxRuntime.jsx(J,{className:"h-4 w-24"}),jsxRuntime.jsx(J,{className:"h-5 w-16"})]},u))}):s?jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("text-sm text-feedback-error",c),children:s}):i||!e.length?jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("text-sm text-text-secondary",c),children:"No data available"}):jsxRuntime.jsx("dl",{className:tailwindMerge.twMerge("grid",t==="two-column"?"md:grid-cols-2 gap-x-6":"grid-cols-1",r?"gap-y-1":"gap-y-2",c),children:e.map((l,u)=>jsxRuntime.jsxs(Oe__namespace.default.Fragment,{children:[n&&u>0&&t==="one-column"&&jsxRuntime.jsx("div",{className:"col-span-full border-t border-border-default -mt-1 mb-1"}),jsxRuntime.jsx(J2,{item:l,dense:r,valueAlign:o})]},l.id))})}function $x({node:e,renderNodeList:t}){let r=e.children||[],o=e.metadata&&Object.keys(e.metadata).length>0;return jsxRuntime.jsxs("div",{className:"flex flex-col h-full",children:[jsxRuntime.jsx("div",{className:"flex-shrink-0 px-4 py-4",children:jsxRuntime.jsx("h3",{className:"font-semibold text-text-primary text-lg",children:e.name})}),o&&jsxRuntime.jsx("div",{className:"flex-shrink-0 border-y border-border-default px-4 py-4 bg-background-muted",children:jsxRuntime.jsx(Al,{items:Object.entries(e.metadata||{}).map(([n,a])=>({id:n,label:n,value:a??"\u2014"})),dense:true,layout:"one-column",valueAlign:"end",showDividers:true})}),r.length>0&&jsxRuntime.jsx("div",{className:"flex-1 overflow-auto",children:t(r,false)})]})}var at={xs:{node:"px-2 py-2 text-xs",icon:"xs",bullet:24,spacing:{x:8,y:8}},sm:{node:"px-3 py-2.5 text-sm",icon:"xs",bullet:28,spacing:{x:12,y:10}},md:{node:"px-4 py-3 text-base",icon:"sm",bullet:32,spacing:{x:16,y:12}}};var _u=Oe__namespace.createContext(null);function eh(){let e=Oe__namespace.useContext(_u);if(!e)throw new Error("Hierarchy components must be used within HierarchyExplorer");return e}function rh({node:e,renderNode:t}){let{selectedId:r,selectNode:o,navigateToNode:n,variant:a,size:i,showBullets:s,rootNodeId:c,stickyRootNode:l,navigationStack:u,setRootNodeSticky:d,useSplitLayout:m}=eh(),p=Oe__namespace.useRef(null),g=Oe__namespace.useRef(null),f=r===e.id,h=e.disabled||false,b=!!(e.children&&e.children.length>0),x=!!(e.metadata&&Object.keys(e.metadata).length>0),y=b||x,v=c!==void 0&&e.id!==void 0&&c===e.id&&u.length===0;Oe__namespace.useLayoutEffect(()=>{v&&l&&p.current&&g.current===null&&requestAnimationFrame(()=>{p.current&&(g.current=p.current.offsetTop);});},[v,l]),Oe__namespace.useEffect(()=>{if(!v||!l||!p.current)return;let A=p.current.parentElement;for(;A;){let E=window.getComputedStyle(A).overflowY;if(E==="auto"||E==="scroll")break;A=A.parentElement;}if(!A)return;let M=()=>{if(!p.current||g.current===null)return;let E=A.getBoundingClientRect(),P=A.scrollTop,O=E.height,G=p.current.offsetHeight,W=g.current-P,q=W+G,j=W<0,Q=q>O;j?d("top",e):Q?d("bottom",e):d(null,null);};return A.addEventListener("scroll",M),M(),()=>{A.removeEventListener("scroll",M);}},[v,l,e,d]);let S=()=>{h||(m?o(e):y?n(e):o(e));},w=A=>{h||(A.key==="Enter"||A.key===" ")&&(A.preventDefault(),S());},N={isSelected:f,isDisabled:h,hasChildren:b,hasMetadata:x,level:0},R=tailwindMerge.twMerge("relative cursor-pointer group",h&&"opacity-50 cursor-not-allowed"),k=tailwindMerge.twMerge("absolute inset-0 transition-colors",v&&!f&&!h&&"group-hover:bg-background-hover",v&&f&&!h&&a==="subtle"&&"bg-background-selected group-hover:bg-background-hover",v&&f&&h&&a==="subtle"&&"bg-background-selected",v&&f&&!h&&a==="solid"&&"bg-action-brand group-hover:bg-action-brand-hover",v&&f&&h&&a==="solid"&&"bg-action-brand",!v&&a==="subtle"&&!f&&!h&&"group-hover:bg-background-hover",!v&&a==="subtle"&&f&&!h&&"bg-background-selected group-hover:bg-background-hover",!v&&a==="subtle"&&f&&h&&"bg-background-selected",!v&&a==="solid"&&!f&&!h&&"group-hover:bg-background-hover",!v&&a==="solid"&&f&&!h&&"bg-action-brand group-hover:bg-action-brand-hover",!v&&a==="solid"&&f&&h&&"bg-action-brand"),T=tailwindMerge.twMerge("relative flex items-center gap-2 text-text-primary hover:text-text-primary transition-colors",at[i].node,v&&!f&&"font-semibold",a==="subtle"&&f&&"text-text-link-default",a==="solid"&&f&&"text-[color:var(--color-action-brand-text)]");return jsxRuntime.jsxs("div",{ref:p,className:R,onClick:S,onKeyDown:w,role:"treeitem","aria-selected":f,"aria-disabled":h,tabIndex:0,"data-node-id":e.id,children:[jsxRuntime.jsx("div",{className:k}),jsxRuntime.jsxs("div",{className:T,children:[s&&jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("relative rounded-full flex items-center justify-center flex-shrink-0 z-20",v&&"bg-action-brand border-action-brand",!v&&"bg-background-muted border border-border-default"),style:{width:at[i].bullet,height:at[i].bullet},children:e.icon&&jsxRuntime.jsx(B,{name:e.icon,size:at[i].icon,weight:v?"fill":"regular",className:v?"text-[color:var(--color-action-brand-text)]":"text-text-primary"})}),jsxRuntime.jsx("div",{className:"flex-1 min-w-0",children:t?t(e,N):jsxRuntime.jsx("span",{className:"truncate",children:e.name})}),y&&!m&&jsxRuntime.jsx("div",{className:"flex-shrink-0",children:jsxRuntime.jsx(B,{name:"CaretRight",size:at[i].icon,className:"text-text-secondary"})})]})]})}function nh({items:e,showConnector:t=false,scrollContainerRef:r,showBullets:o,size:n,renderNode:a}){return jsxRuntime.jsxs("div",{className:"relative",ref:t&&r?r:void 0,children:[o&&e.length>0&&t&&jsxRuntime.jsx("div",{className:"absolute w-px bg-text-secondary z-10 pointer-events-none",style:{left:`${at[n].spacing.x+at[n].bullet/2}px`,top:`${at[n].spacing.y+at[n].bullet/2}px`,bottom:`${at[n].spacing.y+at[n].bullet/2}px`},"aria-hidden":"true"}),e.map(i=>jsxRuntime.jsx(rh,{node:i,renderNode:a},i.id))]})}function Bi({children:e,mode:t="sync",presenceKey:r}){let o=r!==void 0&&Oe__namespace.default.isValidElement(e)?Oe__namespace.default.cloneElement(e,{key:r}):r!==void 0?jsxRuntime.jsx("div",{children:e},r):e;return jsxRuntime.jsx(framerMotion.AnimatePresence,{mode:t,children:o})}function sh(){let[e,t]=Oe.useState(()=>typeof window>"u"?false:window.matchMedia("(prefers-reduced-motion: reduce)").matches);return Oe.useEffect(()=>{let r=window.matchMedia("(prefers-reduced-motion: reduce)");t(r.matches);let o=n=>{t(n.matches);};return r.addEventListener("change",o),()=>{r.removeEventListener("change",o);}},[]),e}var $2={instant:0,fast:150,normal:250,slow:350,slower:500},$u={xs:"4px",sm:"8px",md:"16px"};function eR(e){return e?typeof e=="string"&&e in $u?$u[e]:typeof e=="number"?`${e}px`:e:$u.sm}function Vi({children:e,direction:t,distance:r="sm",duration:o="normal",delay:n=0,className:a}){let i=sh(),s=typeof o=="number"?o:$2[o],c=eR(r),l=p=>{switch(t){case "left":return {x:`-${p}`};case "right":return {x:p};case "up":return {y:`-${p}`};case "down":return {y:p}}},u=i?{opacity:0}:{opacity:0,...l(c)},d={opacity:1,x:0,y:0},m=i?{opacity:0}:{opacity:0,...l(c)};return jsxRuntime.jsx(framerMotion.motion.div,{className:a,initial:u,animate:d,exit:m,transition:{duration:i?0:s/1e3,delay:i?0:n/1e3,ease:[.4,0,.2,1]},children:e})}function Bl({navigationStack:e,onNavigateBack:t,size:r}){let o=e.length===1?"Back to main":`Back to ${e[e.length-2]?.name}`;return jsxRuntime.jsx("div",{className:"sticky top-0 z-10 bg-background-surface border-b border-border-default flex-shrink-0",children:jsxRuntime.jsxs("button",{type:"button",onClick:t,className:tailwindMerge.twMerge("w-full flex items-center gap-2 transition-colors text-left group",at[r].node),children:[jsxRuntime.jsx(B,{name:"CaretLeft",size:at[r].icon,className:"text-text-secondary group-hover:text-text-primary transition-colors"}),jsxRuntime.jsx("span",{className:"font-medium text-text-primary group-hover:text-text-link-hover transition-colors",children:o})]})})}function Vl({node:e,position:t,selectedId:r,variant:o,size:n,showBullets:a}){let i=r===e.id;return jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("absolute z-30 left-0 right-0 border-border-default transition-all duration-200 bg-background-surface",at[n].node,i?o==="subtle"?"text-text-link-default":"bg-action-brand text-[color:var(--color-action-brand-text)]":"font-semibold",t==="top"&&"top-0 border-b shadow-[0_4px_6px_-1px_rgba(0,0,0,0.1)]",t==="bottom"&&"bottom-0 border-t shadow-[0_-4px_6px_-1px_rgba(0,0,0,0.1)]"),children:[i&&o==="subtle"&&jsxRuntime.jsx("div",{className:"absolute inset-0 bg-background-selected"}),jsxRuntime.jsxs("div",{className:"flex items-center gap-2 cursor-pointer relative z-10",children:[a&&jsxRuntime.jsx("div",{className:"flex-shrink-0 rounded-full flex items-center justify-center bg-action-brand border-action-brand",style:{width:at[n].bullet,height:at[n].bullet},children:e.icon&&jsxRuntime.jsx(B,{name:e.icon,size:at[n].icon,weight:"fill",className:"text-[color:var(--color-action-brand-text)]"})}),jsxRuntime.jsx("div",{className:"flex-1 min-w-0",children:jsxRuntime.jsx("span",{className:"truncate",children:e.name})})]})]})}function ch({currentItems:e,currentParent:t,navigationStack:r,selectedId:o,variant:n,size:a,showBullets:i,slideDirection:s,viewKey:c,hasHeight:l,rootNodeStickyState:u,renderNodeList:d,renderDetailContent:m,onNavigateBack:p}){return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[r.length===0&&u.position&&u.node&&jsxRuntime.jsx(Vl,{node:u.node,position:u.position,selectedId:o,variant:n,size:a,showBullets:i}),r.length>0&&jsxRuntime.jsx(Bl,{navigationStack:r,onNavigateBack:p,size:a}),jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("relative",l&&"overflow-auto h-full"),children:jsxRuntime.jsx(Bi,{mode:"wait",presenceKey:c,children:r.length===0?d(e,true):jsxRuntime.jsx(Vi,{direction:s,distance:"100%",duration:"normal",children:m(t)})})})]})}function tp(e,t){for(let r of e){if(r.id===t)return r;if(r.children&&r.children.length>0){let o=tp(r.children,t);if(o)return o}}return null}function zl(e){if(e!==void 0)return typeof e=="number"?`${e}px`:e}function dh(e,t){if(process.env.NODE_ENV!=="development")return;let r=new Set,o=(n,a="root")=>{for(let i=0;i<n.length;i++){let s=n[i],c=`${a}[${i}]`;s.id?r.has(s.id)?console.warn(`[HierarchyExplorer] Duplicate node ID found: "${s.id}". Each node must have a unique ID.`):r.add(s.id):console.warn(`[HierarchyExplorer] Node at ${c} is missing an "id" field. Node name: "${s.name||"(unnamed)"}"`),s.children&&o(s.children,`${c}.children`);}};o(e),t&&!r.has(t)&&console.warn(`[HierarchyExplorer] Root node ID "${t}" not found in data. No node will be highlighted as root.`);}function ph({data:e,currentItems:t,navigationStack:r,selectedId:o,variant:n,size:a,showBullets:i,rootNodeStickyState:s,renderNodeList:c,renderDetailContent:l,renderEmptyState:u,onNavigateBack:d}){let m=o?tp(e,o):null;return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsxs("div",{className:"flex-1 min-w-0 border-r border-border-default flex flex-col relative",children:[r.length===0&&s.position&&s.node&&jsxRuntime.jsx(Vl,{node:s.node,position:s.position,selectedId:o,variant:n,size:a,showBullets:i}),r.length>0&&jsxRuntime.jsx(Bl,{navigationStack:r,onNavigateBack:d,size:a}),jsxRuntime.jsx("div",{className:"flex-1 overflow-auto",children:c(t,r.length===0)})]}),jsxRuntime.jsx("div",{className:"flex-1 min-w-0 overflow-auto bg-background-body",children:jsxRuntime.jsx(Bi,{mode:"wait",presenceKey:m?.id||"empty",children:m?jsxRuntime.jsx(Vi,{direction:"left",duration:"fast",children:l(m)}):u?u():jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("text-text-secondary text-center",at[a].node,"py-8"),children:"Select an item to view details"})})})]})}function mh({data:e,renderNode:t,onNodeSelect:r,onNavigate:o,selectedId:n,rootNodeId:a,stickyRootNode:i=true,height:s,minHeight:c,maxHeight:l,variant:u="subtle",size:d="md",showBullets:m=true,layout:p="auto",splitBreakpoint:g=768,renderEmptyState:f,renderDetailView:h,className:b,"aria-label":x="Hierarchy explorer"}){let[y,v]=Oe__namespace.useState(null),[S,w]=Oe__namespace.useState([]),[N,R]=Oe__namespace.useState("left"),[k,T]=Oe__namespace.useState({position:null,node:null}),{ref:A,width:M}=ha(),E=Oe__namespace.useMemo(()=>p==="split"?true:p==="single"?false:M>=g,[p,M,g]),P=n!==void 0?n:y;Oe__namespace.useEffect(()=>{dh(e,a);},[e,a]);let O=S.length>0?S[S.length-1]:null,G=O?O.children||[]:e,K=Oe__namespace.useCallback(H=>{R("left"),w(Y=>[...Y,H]),o?.(H,[...S,H]);},[S,o]),W=Oe__namespace.useCallback(()=>{R("right"),w(H=>{let Y=H.slice(0,-1);return o?.(Y.length>0?Y[Y.length-1]:null,Y),Y});},[o]),q=Oe__namespace.useCallback(H=>{n===void 0&&v(H.id),r?.(H,[...S,H]);},[n,S,r]),j=Oe__namespace.useCallback((H,Y)=>{T({position:H,node:Y});},[]),Q=Oe__namespace.useMemo(()=>({selectedId:P,selectNode:q,navigateToNode:K,navigateBack:W,rootNodeId:a,stickyRootNode:i,variant:u,size:d,showBullets:m,onNodeSelect:r,onNavigate:o,navigationStack:S,setRootNodeSticky:j,useSplitLayout:E}),[P,q,K,W,a,i,u,d,m,r,o,S,j,E]),L=Oe__namespace.useRef(null);Oe__namespace.useEffect(()=>{if(!a||!L.current||S.length>0||E)return;let H=L.current,Y=setTimeout(()=>{let te=H.querySelector(`[data-node-id="${a}"]`);te&&te.scrollIntoView({behavior:"auto",block:"center",inline:"nearest"});},100);return ()=>clearTimeout(Y)},[a,S.length,E]);let D={height:zl(s),minHeight:zl(c),maxHeight:zl(l)},U=s!==void 0||l!==void 0,I=O?O.id:"root",C=Oe__namespace.useCallback((H,Y=false)=>jsxRuntime.jsx(nh,{items:H,showConnector:Y,scrollContainerRef:Y?L:null,showBullets:m,size:d,renderNode:t}),[m,d,t]),F=Oe__namespace.useCallback(H=>H?h?h(H,C):jsxRuntime.jsx($x,{node:H,renderNodeList:C}):null,[h,C]);return jsxRuntime.jsx(_u.Provider,{value:Q,children:jsxRuntime.jsx("div",{ref:A,className:tailwindMerge.twMerge("select-none bg-background-surface rounded-lg border border-border-default relative",U&&"overflow-hidden",!U&&"h-full flex flex-col",E&&!U&&"flex-row",E&&U&&"flex",b),style:D,role:"tree","aria-label":x,children:E?jsxRuntime.jsx(ph,{data:e,currentItems:G,navigationStack:S,selectedId:P,variant:u,size:d,showBullets:m,rootNodeStickyState:k,renderNodeList:C,renderDetailContent:F,renderEmptyState:f,onNavigateBack:W}):jsxRuntime.jsx(ch,{currentItems:G,currentParent:O,navigationStack:S,selectedId:P,variant:u,size:d,showBullets:m,slideDirection:N,viewKey:I,hasHeight:U,rootNodeStickyState:k,renderNodeList:C,renderDetailContent:F,onNavigateBack:W})})})}function gR({isEntering:e,isExiting:t,className:r=""}){let o=["group","bg-background-surface","forced-colors:bg-[Canvas]","text-text-primary","shadow-lg","rounded-[var(--control-border-radius)]","bg-clip-padding","border","border-border-default","outline-none","p-4","min-w-[260px]","max-w-[360px]"].filter(Boolean).join(" "),n=e?["animate-in","fade-in","zoom-in-95","placement-bottom:slide-in-from-top-1","placement-top:slide-in-from-bottom-1","placement-left:slide-in-from-right-1","placement-right:slide-in-from-left-1","ease-out","duration-200"].join(" "):"",a=t?["animate-out","fade-out","zoom-out-95","placement-bottom:slide-out-to-top-1","placement-top:slide-out-to-bottom-1","placement-left:slide-out-to-right-1","placement-right:slide-out-to-left-1","ease-in","duration-150"].join(" "):"";return [o,n,a,r].filter(Boolean).join(" ")}var fh=({children:e,delay:t=700,closeDelay:r=0,isOpen:o,defaultOpen:n,onOpenChange:a,isDisabled:i=false,...s})=>jsxRuntime.jsx(reactAriaComponents.TooltipTrigger,{delay:t,closeDelay:r,isOpen:o,defaultOpen:n,onOpenChange:a,isDisabled:i,...s,children:e}),gh=({children:e,className:t,showArrow:r=false,offset:o,...n})=>jsxRuntime.jsxs(reactAriaComponents.Tooltip,{...n,offset:o??(r?12:8),className:reactAriaComponents.composeRenderProps(t,(i,s)=>gR({...s,className:i})),children:[r&&jsxRuntime.jsx(reactAriaComponents.OverlayArrow,{children:jsxRuntime.jsx("svg",{width:12,height:12,viewBox:"0 0 12 12",className:"block fill-background-surface stroke-border-default stroke-1 group-placement-left:-rotate-90 group-placement-right:rotate-90 group-placement-bottom:rotate-180 forced-colors:fill-[Canvas] forced-colors:stroke-[ButtonBorder]",children:jsxRuntime.jsx("path",{d:"M0 0 L6 6 L12 0"})})}),e]});gh.displayName="HoverCardContent";var bR=Object.assign(fh,{Root:fh,Content:gh});var yR={md:{fontFamily:"var(--font-family-brand)",fontSize:24,lineHeight:1,letterSpacing:"-0.02em"},lg:{fontFamily:"var(--font-family-brand)",fontSize:34,lineHeight:1.1}},vR={md:{fontSize:12},lg:{fontSize:16}},CR={fontSize:11};function SR(e,t){return jr({value:e,formatter:t,emptyClassName:"text-text-secondary",emptyText:"\u2014"})}function wR(e,t="upIsGood"){if(e===0)return "text-text-secondary";let r=e>0;return t==="upIsGood"?r?"text-feedback-success":"text-feedback-error":r?"text-feedback-error":"text-feedback-success"}function NR({points:e,className:t,ariaLabel:r}){let i=e.map(p=>typeof p.y=="number"?p.y:0);if(i.length===0)return null;let s=Math.min(...i),l=Math.max(...i)-s,u=p=>l===0?20/2:18-(p-s)/l*16,d=60/Math.max(e.length-1,1),m=e.map((p,g)=>{let f=2+g*d,h=u(typeof p.y=="number"?p.y:0);return `${g===0?"M":"L"} ${f} ${h}`}).join(" ");return jsxRuntime.jsx("svg",{width:64,height:20,role:"img","aria-label":r,className:tailwindMerge.twMerge("overflow-visible",t),children:jsxRuntime.jsx("path",{d:m,fill:"none",strokeWidth:"1.5",className:"stroke-border-muted"})})}var bh=100,jn=30,xh=1.5,hh=4,kR=12;function TR(e,t){if(e.length<=t)return e;let r=(e.length-1)/(t-1),o=[];for(let n=0;n<t;n++)o.push(e[Math.round(n*r)]);return o}function PR(e){if(e.length<2)return e.length===1?`M ${e[0][0]} ${e[0][1]}`:"";let t=`M ${e[0][0]} ${e[0][1]}`;for(let r=0;r<e.length-1;r++){let o=e[r-1]??e[r],n=e[r],a=e[r+1],i=e[r+2]??a,s=n[0]+(a[0]-o[0])/6,c=n[1]+(a[1]-o[1])/6,l=a[0]-(i[0]-n[0])/6,u=a[1]-(i[1]-n[1])/6;t+=` C ${s} ${c} ${l} ${u} ${a[0]} ${a[1]}`;}return t}function RR({points:e,gradientId:t,tone:r,className:o}){if(!e||e.length<2)return null;let n=TR(e,kR),a=n.map(h=>typeof h.y=="number"?h.y:0),i=Math.min(...a),c=Math.max(...a)-i,l=h=>c===0?jn/2:jn-hh-(h-i)/c*(jn-2*hh),u=(bh-2*xh)/Math.max(n.length-1,1),d=n.map((h,b)=>[xh+b*u,l(typeof h.y=="number"?h.y:0)]),m=PR(d),p=d[d.length-1],g=d[0],f=`${m} L ${p[0]} ${jn} L ${g[0]} ${jn} Z`;return jsxRuntime.jsxs("svg",{width:"100%",height:jn,viewBox:`0 0 ${bh} ${jn}`,preserveAspectRatio:"none",role:"img","aria-label":"Trend",className:tailwindMerge.twMerge("mt-2 block w-full",r,o),children:[jsxRuntime.jsx("defs",{children:jsxRuntime.jsxs("linearGradient",{id:t,x1:"0",y1:"0",x2:"0",y2:"1",children:[jsxRuntime.jsx("stop",{offset:"0%",stopColor:"currentColor",stopOpacity:.22}),jsxRuntime.jsx("stop",{offset:"100%",stopColor:"currentColor",stopOpacity:0})]})}),jsxRuntime.jsx("path",{d:f,fill:`url(#${t})`,stroke:"none"}),jsxRuntime.jsx("path",{d:m,fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",vectorEffect:"non-scaling-stroke"})]})}function yh({label:e,value:t,formatter:r,delta:o,deltaPeriodLabel:n,deltaIntent:a="upIsGood",trend:i,status:s,helpText:c,size:l="md",orientation:u="vertical",isLoading:d,empty:m,error:p,onClick:g,className:f,labelClassName:h,renderValue:b,renderDelta:x,renderTrend:y,unit:v,sub:S,dashed:w,labelVariant:N="default",sparkVariant:R="line",sparkTone:k,tileValueSize:T}){let A=Oe.useId(),E={sm:{label:gt("labelSm"),value:gt("displaySm"),delta:gt("labelSm"),gap:"gap-1"},md:{label:gt("labelMd"),value:gt("displayMd"),delta:gt("bodySm"),gap:"gap-2"},lg:{label:gt("labelLg"),value:gt("displayLg"),delta:gt("bodyMd"),gap:"gap-3"}}[l],P=N==="mono-caps"?"font-mono uppercase tracking-[0.05em] text-[10px]":"",O=j=>T?jsxRuntime.jsxs("span",{style:yR[T],className:w?"opacity-45":void 0,children:[j,v?jsxRuntime.jsxs("span",{className:"text-text-secondary",style:vR[T],children:[" ",v]}):null]}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[j,v?jsxRuntime.jsxs("span",{className:"text-text-secondary",children:[" ",v]}):null]}),G=d?jsxRuntime.jsx(J,{className:"h-7 w-20"}):m?jsxRuntime.jsx("span",{className:"text-text-secondary",children:"\u2014"}):p?jsxRuntime.jsx("span",{className:gt("bodySm","text-feedback-error"),children:typeof p=="string"?p:"Error"}):w?O("\u2014"):b?b(t):O(T?t:SR(t,r)),K=x?x(o):o!==void 0&&!d&&!m&&!p&&!w?jsxRuntime.jsxs("div",{className:jt(E.delta,wR(o,a),"flex items-center gap-1"),children:[o>0&&jsxRuntime.jsx(B,{name:"ArrowUp",size:12}),o<0&&jsxRuntime.jsx(B,{name:"ArrowDown",size:12}),o===0&&jsxRuntime.jsx(B,{name:"Minus",size:12}),jsxRuntime.jsxs("span",{children:[o>0?"+":"",Math.abs(o).toFixed(1),"%"]}),n&&jsxRuntime.jsxs("span",{className:"text-text-secondary",children:["\xB7 ",n]})]}):d&&o!==void 0?jsxRuntime.jsx(J,{className:"h-4 w-24"}):null,W=y?y(i):i&&i.length>0&&!d&&!p&&!w?R==="area"?jsxRuntime.jsx(RR,{points:i,gradientId:A,tone:k,className:m?"opacity-30":""}):jsxRuntime.jsx(NR,{points:i,ariaLabel:`${e} trend`,className:m?"opacity-30":""}):d&&i!==void 0?jsxRuntime.jsx(J,{className:"h-5 w-16"}):null,q=S&&!d&&!p?jsxRuntime.jsx("div",{className:"text-text-secondary",style:CR,children:S}):null;return jsxRuntime.jsxs("section",{className:tailwindMerge.twMerge("flex min-w-0",u==="horizontal"?`items-center ${E.gap}`:`flex-col ${E.gap}`,g&&"cursor-pointer hover:bg-background-muted rounded-lg px-3 py-2 -mx-3 -my-2 transition-colors",f),"aria-labelledby":`kpi-${e}`,onClick:g,children:[jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[jsxRuntime.jsx("h3",{id:`kpi-${e}`,className:tailwindMerge.twMerge(jt(E.label,"text-text-secondary truncate"),P,h),children:d?jsxRuntime.jsx(J,{className:"h-4 w-24"}):e}),c&&!d&&jsxRuntime.jsx(B,{name:"Question",size:12,className:"text-text-secondary cursor-help","aria-label":"Help"})]}),jsxRuntime.jsxs("div",{className:"flex items-baseline gap-2",children:[jsxRuntime.jsx("output",{className:jt(T?void 0:E.value,p?"text-feedback-error":"text-text-primary"),"aria-label":`Value: ${t}`,children:G}),s&&!d&&!p&&jsxRuntime.jsx(nt,{variant:s.tone||"neutral",size:"sm",children:s.value})]}),q,(K||W)&&jsxRuntime.jsxs("div",{className:"flex items-center gap-3",children:[K,W]})]})}var vh={xs:"gap-2",sm:"gap-3",md:"gap-4",lg:"gap-6",xl:"gap-8"},Ch={start:"items-start",center:"items-center",stretch:"items-stretch"};function Sh(e){if(typeof e=="number")return `grid-cols-${e}`;let t=[];return e.base!==void 0&&t.push(`grid-cols-${e.base}`),e.sm!==void 0&&t.push(`sm:grid-cols-${e.sm}`),e.md!==void 0&&t.push(`md:grid-cols-${e.md}`),e.lg!==void 0&&t.push(`lg:grid-cols-${e.lg}`),e.xl!==void 0&&t.push(`xl:grid-cols-${e.xl}`),e["2xl"]!==void 0&&t.push(`2xl:grid-cols-${e["2xl"]}`),t.join(" ")}function np({children:e,cols:t={base:1,sm:2,md:3,lg:4},gap:r="md",align:o="stretch",equalizeHeights:n=true,header:a,isLoading:i,scrollOnMobile:s=false,scrollItemMinWidth:c="140px",className:l}){let u=i?Oe__namespace.default.Children.map(e,p=>Oe__namespace.default.isValidElement(p)&&p.type&&typeof p.type!="string"&&"displayName"in p.type?Oe__namespace.default.cloneElement(p,{isLoading:true}):p):e,d=s?Oe__namespace.default.Children.map(u,p=>jsxRuntime.jsx("div",{className:"shrink-0",style:{minWidth:c},children:p})):u,m=s?tailwindMerge.twMerge("flex overflow-x-auto pb-2 -mb-2",vh[r],"sm:grid sm:overflow-visible sm:pb-0 sm:-mb-0",Sh({...typeof t=="object"?t:{base:t},base:void 0}),Ch[o],n&&"sm:auto-rows-fr"):tailwindMerge.twMerge("grid",Sh(t),vh[r],Ch[o],n&&"auto-rows-fr","w-full");return jsxRuntime.jsxs("section",{className:tailwindMerge.twMerge("w-full",l),"aria-label":"Key metrics",children:[a&&jsxRuntime.jsx("div",{className:"mb-4",children:a}),jsxRuntime.jsx("div",{className:m,children:s?d:u})]})}np.displayName="KpiGroup";function kh({items:e,renderItem:t,selectedId:r,onSelect:o,onHoverChange:n,isLoading:a=false,loadingState:i,error:s=null,renderLoadingSkeleton:c,loadingSkeletonCount:l=5,emptyMessage:u="No results found.",variant:d="relaxed",showDividers:m=true,onLoadMore:p,hasMore:g=false,enableVirtualization:f,estimatedItemSize:h=60,loadingIndicator:b,"aria-label":x,className:y="",style:v}){let[S,w]=Oe.useState(null),N=Oe.useRef(null),R=Oe.useRef(new Map),{scrollRef:k,loadMoreRef:T,virtualizer:A,virtualItems:M,isLoadingMore:E,computedLoadingState:P}=Fo({items:e,onLoadMore:p,hasMore:g,isLoading:a,loadingState:i,enableVirtualization:f,estimatedItemSize:h,overscan:5}),O=k??N,G=Oe.useCallback((C,F)=>{o?.(C,F);},[o]),K=Oe.useCallback((C,F)=>{w(C),n?.(C,F);},[n]),W=Oe.useCallback((C,F)=>{let H=C?.id;return typeof H=="string"&&H?H:`item-${F}`},[]),q=Oe.useCallback(C=>{if(!O.current||e.length===0)return;let F=document.activeElement,H=e.findIndex((_,ae)=>{let fe=W(_,ae),re=R.current.get(fe);return re&&(re===F||re.contains(F))}),Y=H;switch(C.key){case "ArrowDown":C.preventDefault(),Y=H===-1?0:Math.min(H+1,e.length-1);break;case "ArrowUp":C.preventDefault(),Y=H===-1?0:Math.max(H-1,0);break;case "Home":C.preventDefault(),Y=0;break;case "End":C.preventDefault(),Y=e.length-1;break;default:return}let te=W(e[Y],Y);R.current.get(te)?.focus();},[e,W,O]),j=["flex flex-col","bg-background-surface","focus:outline-none focus:ring-2 focus:ring-border-focus focus:ring-offset-2"],Q={dense:"gap-0",relaxed:"gap-0"},L=m?"divide-y divide-border-muted":"",D=[...j,Q[d],L,y].filter(Boolean).join(" ");if(P==="loading"||a&&e.length===0){let C=c?jsxRuntime.jsx(jsxRuntime.Fragment,{children:Array.from({length:l}).map((F,H)=>jsxRuntime.jsx("div",{children:c()},`skeleton-${H}`))}):jsxRuntime.jsx(Xm,{count:l,className:"space-y-0",children:jsxRuntime.jsxs("div",{className:"flex items-center gap-3 px-4 py-3",children:[jsxRuntime.jsx(J,{width:16,height:16,variant:"circle"}),jsxRuntime.jsxs("div",{className:"flex-1 space-y-2",children:[jsxRuntime.jsx(J,{width:"75%",height:16}),jsxRuntime.jsx(J,{width:"50%",height:14})]}),jsxRuntime.jsx(J,{width:60,height:20})]})});return jsxRuntime.jsx("div",{ref:O,className:D,style:v,role:"listbox","aria-label":x,"aria-busy":"true","aria-live":"polite",children:C})}if(s)return jsxRuntime.jsx("div",{ref:O,className:D,style:v,role:"listbox","aria-label":x,"aria-live":"polite",children:jsxRuntime.jsx("div",{className:"p-4 text-center text-feedback-error-text",children:s})});if(e.length===0)return jsxRuntime.jsx("div",{ref:O,className:D,style:v,role:"listbox","aria-label":x,"aria-live":"polite",children:jsxRuntime.jsx("div",{className:"p-4 text-center text-text-secondary",children:u})});let I=A?M?.map(C=>({virtualItem:C,item:e[C.index],index:C.index}))||[]:e.map((C,F)=>({item:C,index:F,virtualItem:null}));return jsxRuntime.jsxs("div",{ref:O,className:D,style:{...v,...p&&{overflow:"auto",height:v?.height||"600px"}},role:"listbox","aria-label":x,"aria-live":"polite",onKeyDown:q,tabIndex:0,children:[A&&jsxRuntime.jsxs("div",{style:{height:`${A.getTotalSize()}px`,width:"100%",position:"relative"},children:[I.map(({virtualItem:C,item:F,index:H})=>{if(!C)return null;let Y=W(F,H),te=r===Y,de=S===Y,_={id:Y,role:"option","aria-selected":te,"aria-current":te?"page":void 0,tabIndex:te||r==null&&H===0?0:-1,onClick:ae=>G(ae,F),onMouseEnter:ae=>K(ae,F),onMouseLeave:ae=>K(null),onFocus:ae=>K(ae,F),onBlur:ae=>K(null),ref:ae=>{ae?R.current.set(Y,ae):R.current.delete(Y);}};return jsxRuntime.jsx("div",{"data-index":C.index,ref:A.measureElement,style:{position:"absolute",top:0,left:0,width:"100%",transform:`translateY(${C.start}px)`},children:t({item:F,index:H,isSelected:te,isHovered:de,rowProps:_})},Y)}),p&&g&&jsxRuntime.jsx("div",{ref:T,style:{position:"absolute",top:`${A.getTotalSize()}px`,left:0,width:"100%",height:1,pointerEvents:"none"}}),E&&jsxRuntime.jsx("div",{style:{position:"absolute",top:`${A.getTotalSize()}px`,left:0,width:"100%"},children:b||jsxRuntime.jsx(Nr,{state:"loading-more"})})]}),!A&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[I.map(({item:C,index:F})=>{let H=W(C,F),Y=r===H,te=S===H,de={id:H,role:"option","aria-selected":Y,"aria-current":Y?"page":void 0,tabIndex:Y||r==null&&F===0?0:-1,onClick:_=>G(_,C),onMouseEnter:_=>K(_,C),onMouseLeave:_=>K(null),onFocus:_=>K(_,C),onBlur:_=>K(null),ref:_=>{_?R.current.set(H,_):R.current.delete(H);}};return jsxRuntime.jsx("div",{children:t({item:C,index:F,isSelected:Y,isHovered:te,rowProps:de})},H)}),p&&g&&jsxRuntime.jsx("div",{ref:T,style:{height:1}}),E&&(b||jsxRuntime.jsx(Nr,{state:"loading-more"}))]})]})}function Ph({id:e,title:t,subtitle:r,meta:o,leading:n,trailing:a,isSelected:i=false,isHovered:s=false,disabled:c=false,href:l,size:u="md",onClick:d,onMouseEnter:m,onMouseLeave:p,className:g="",style:f,piiTitleType:h,piiSubtitleType:b,piiEntity:x}){let y=()=>{!c&&d&&d(e);},v=()=>{!c&&m&&m(e);},S=()=>{!c&&p&&p(e);},N={sm:{container:"px-3 py-2 gap-2",title:"text-sm leading-tight",subtitle:"text-xs leading-tight",meta:"text-xs leading-tight",subtitleSpacing:"mt-1",metaSpacing:"mt-1"},md:{container:"px-4 py-3 gap-3",title:"text-base leading-tight",subtitle:"text-sm leading-tight",meta:"text-sm leading-tight",subtitleSpacing:"mt-1",metaSpacing:"mt-1"},lg:{container:"px-4 py-4 gap-3",title:"text-lg leading-tight",subtitle:"text-base leading-tight",meta:"text-sm leading-tight",subtitleSpacing:"mt-1",metaSpacing:"mt-1"},xl:{container:"px-5 py-5 gap-4",title:"text-xl leading-tight",subtitle:"text-base leading-tight",meta:"text-base leading-tight",subtitleSpacing:"mt-1.5",metaSpacing:"mt-1.5"}}[u],R=["flex items-center w-full text-left transition-all duration-200 ease-in-out",N.container,"border-l-2 border-l-transparent","rounded-sm",Je()],k=[s&&!i&&"bg-background-hover",i&&"bg-action-default/5 border-l-action-default shadow-sm",c&&"opacity-50 cursor-not-allowed",!c&&!i&&"hover:bg-background-hover"],T=[...R,...k,g].filter(Boolean).join(" "),A=jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[n&&jsxRuntime.jsx("div",{className:"flex-shrink-0 flex items-center justify-center",children:n}),jsxRuntime.jsx("div",{className:"flex-1 min-w-0",children:jsxRuntime.jsx("div",{className:"flex items-start justify-between gap-2",children:jsxRuntime.jsxs("div",{className:"flex-1 min-w-0",children:[jsxRuntime.jsx("div",{className:`text-text-primary font-medium truncate ${N.title}`,title:typeof t=="string"?t:void 0,"data-pii-type":h&&x?h:void 0,"data-pii-entity":h&&x?x:void 0,children:t}),r&&jsxRuntime.jsx("div",{className:`text-text-secondary truncate ${N.subtitle} ${N.subtitleSpacing}`,title:typeof r=="string"?r:void 0,"data-pii-type":b&&x?b:void 0,"data-pii-entity":b&&x?x:void 0,children:r}),o&&jsxRuntime.jsx("div",{className:`text-text-secondary ${N.meta} ${N.metaSpacing}`,children:o})]})})}),a&&jsxRuntime.jsx("div",{className:"flex-shrink-0",children:a})]});return l?jsxRuntime.jsx("a",{href:l,className:T,style:f,onMouseEnter:v,onMouseLeave:S,"aria-selected":i,"aria-current":i?"page":void 0,tabIndex:c?-1:0,children:A}):jsxRuntime.jsx("button",{type:"button",className:T,style:f,onClick:y,onMouseEnter:v,onMouseLeave:S,disabled:c,"aria-selected":i,tabIndex:c?-1:0,children:A})}function Rh({header:e,children:t,footer:r,width:o="md",tone:n="neutral",elevation:a="sm",showDivider:i=true,"aria-label":s,"aria-labelledby":c,className:l="",style:u}){let d={sm:"w-64",md:"w-80",lg:"w-96",xl:"w-[28rem]","2xl":"w-[32rem]",auto:"w-auto"},m={neutral:"bg-background-surface",subtle:"bg-background-subtle",brand:"bg-background-brand"},p={none:"",sm:"shadow-sm",md:"shadow-md"},g=tailwindMerge.twMerge("flex flex-col h-full",d[o],m[n],p[a],i&&"border-r border-border-muted",l);return jsxRuntime.jsxs("div",{className:g,style:u,role:"complementary","aria-label":s,"aria-labelledby":c,children:[e&&jsxRuntime.jsx("div",{className:"flex-shrink-0 sticky top-0 z-10 bg-inherit border-b border-border-muted",children:e}),jsxRuntime.jsx("div",{className:"flex-1 overflow-y-auto overflow-x-hidden",children:t}),r&&jsxRuntime.jsx("div",{className:"flex-shrink-0 border-t border-border-muted bg-inherit",children:r})]})}function BR({children:e,...t}){return jsxRuntime.jsx(reactAriaComponents.ListBox,{...t,className:ke(t.className,"outline-0"),children:e})}function Ul(){try{if(typeof process<"u"){let e=process.env.MAPBOX_ACCESS_TOKEN;if(e)return e}}catch{}try{if(typeof process<"u"){let e=process.env.NEXT_PUBLIC_MAPBOX_ACCESS_TOKEN;if(e)return e}}catch{}try{let e=undefined.VITE_MAPBOX_ACCESS_TOKEN;if(e)return e}catch{}}function Kl(e,t){let[r,o]=Oe.useState(()=>{if(typeof window>"u")return t;try{let i=window.localStorage.getItem(e);return i?JSON.parse(i):t}catch(i){return console.error(`Error reading localStorage key "${e}":`,i),t}});Oe.useEffect(()=>{if(!(typeof window>"u"))try{window.localStorage.setItem(e,JSON.stringify(r));}catch(i){console.error(`Error writing to localStorage key "${e}":`,i);}},[e,r]);let n=Oe.useCallback(i=>{try{o(s=>i instanceof Function?i(s):i);}catch(s){console.error(`Error setting value for localStorage key "${e}":`,s);}},[e]),a=Oe.useCallback(()=>{try{typeof window<"u"&&window.localStorage.removeItem(e),o(t);}catch(i){console.error(`Error removing localStorage key "${e}":`,i);}},[e,t]);return [r,n,a]}var ip=[{type:"navigation",position:"bottom-right",showCompass:true,showGeolocate:true,showResetZoom:true}];function Dh(e="top-right"){switch(e){case "top-left":return "absolute top-4 left-4 z-10";case "top-right":return "absolute top-4 right-4 z-10";case "bottom-left":return "absolute bottom-4 left-4 z-10";case "bottom-right":return "absolute bottom-4 right-4 z-10";default:return "absolute top-4 right-4 z-10"}}var WR="h-12 w-12 md:h-10 md:w-10 p-0 bg-background-surface hover:bg-background-hover shadow-lg border border-border";function Eh(e){return tailwindMerge.twMerge(WR,e)}var Lh="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJcAAACXCAYAAAAYn8l5AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAABtCSURBVHgB7Z2Jkty0GoV7hlz2HcIeSPGkPCmELRC2sO8kN5+L03XmR7IlW3LbSZ+qrp7pdtuydPTvki9u3Lhx/7ASLi4uDvfv973cvXv3Dn/++efh2rVrx2vyAo899tjwThu8Hfo+1d5SLLkv2vXzzz8fnnvuucPff/99eFhw7bAi/vnnn8Pl5eWVz3IDOHewGKgnnnjiCoEgHH///vvvh8cff3z4nrbE63lb+LvFQHMe2jR2P7p2bNMe4f24Grk02LkOjC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ecCzV91hAQDS0eIgtArWU3vewVLXA0yoopUDTc2EZI7fBKeaQkH7gdmvMEgw11AkbR5N6amqujqnCAkYbl8gHs4wFShtxY9vm9oFqdwubeWeqKTznacNJ/CbCpqTjwKTE7jMs3QHaRzUkyvCvTdKQmzuGyfyqHEKJkOQJmBwazq0Nl88X77Dk09SoHR6YU2RxMUSDP8fw6bxvv7AnkLrBK/29eNS5r4U+x8EA6nBlsj0ETm9gjUO7p5DqPDOkOIptbQgNDeH/unQWDz/ZdA0zBOJ/f1sXQI6QyPqxtnMII3/NEh9kJGEBI+zqmyVwLXglLm+u3o6W6t8oiBZc1pwpF3Z/Tq1kX1oKDcglalt0Mq5G+Zzha8dbY+rvA7Erz2Jf1VQQm9t9zxzU0kLlDp2uX9IwZVZxyO2G19y9ieD165lH9Fosk8DI5sufSSLSZBQSF3maHFuDcVGsLHjqrgKZLUX5JqjGehdg3ULYhq7fAkpy5voaGxxtFgmygtNBJMSfalN4Ghq0DVGhNw+TbZUJBvl6KdlImJXLsphrcJtyi/rBx7bNiPF3drqCfiaI7S/0yAfzPgdNJKqQ+lwh1XfSmYClPT+R2b/03chQhh/fQH7Dav+EOO2oojEn8WdyuYzZbw6+e/WpX6eGYK0xR3BJhumCL/0lYS1EWShiFKXp4HOjIdwcvzNzjuNg4uobmh3lmZNljg+RHIokP7iJ+//S9/0JF4UWgALQSUifcPn+AvCxKcp8u7vR5XAiSC3WYDByQWZ1myzFUtOgbu577+f5ZPq/B5Pf+nAAAAAElFTkSuQmCC";function on({position:e="top-right",className:t,style:r,children:o}){return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge(Dh(e),t),style:r,children:o})}function Cr({icon:e,iconSize:t=24,onPress:r,isDisabled:o=false,className:n,iconClassName:a="text-text-primary",variant:i="secondary",isActive:s=false,ariaLabel:c,iconWeight:l="regular",...u}){let d=tailwindMerge.twMerge(Eh(),s&&"bg-action-brand hover:bg-action-brand-hover border-action-brand",n),m=tailwindMerge.twMerge(a,s&&"text-text-inverse");return jsxRuntime.jsx(Z,{...u,className:d,onPress:r,variant:i,size:"sm",isDisabled:o,"aria-label":c,"aria-pressed":s||void 0,type:"button",children:jsxRuntime.jsx(B,{name:e,size:t,className:m,weight:l})})}var XR=e=>[{id:"streets",name:"Streets",description:"Standard street map with traffic data",preview:e?Fh:Bh},{id:"satellite",name:"Satellite",description:"Aerial imagery with street labels",preview:Ih},{id:"neutral",name:"Neutral",description:"Clean design with light/dark variants",preview:e?Lh:Ah}];function jR({type:e,color:t}){let r="inline-block",o=t?{backgroundColor:t}:{};switch(e){case "dot":return jsxRuntime.jsx("span",{className:`${r} h-3 w-3 rounded-full border border-border`,style:o});case "line":return jsxRuntime.jsx("span",{className:`${r} h-0.5 w-6 rounded-full`,style:o});case "polygon":return jsxRuntime.jsx("span",{className:`${r} h-3 w-4 rounded-sm border border-border`,style:o});case "pin":return jsxRuntime.jsx("span",{className:`${r} h-3 w-3 rounded-full rounded-bl-none border border-border transform rotate-45`,style:o});default:return null}}function Oh({position:e="bottom-left",className:t,style:r,currentMapType:o="streets",onMapTypeChange:n,layers:a=[],onLayerToggle:i,onClearAll:s,onLayerVariantChange:c}){let{isDarkTheme:l}=Vt(),{isMobile:u}=Xt(),[d,m]=Oe.useState(false),p=XR(l),g=b=>{n?.(b);},f=a.filter(b=>b.legend),h=jsxRuntime.jsxs("div",{className:u?"space-y-6 pb-6":"space-y-6",children:[jsxRuntime.jsxs("div",{children:[jsxRuntime.jsx("div",{className:"text-sm font-semibold text-text-primary mb-3",children:"Map type"}),jsxRuntime.jsx("div",{className:"grid grid-cols-3 gap-3",children:p.map(b=>jsxRuntime.jsxs("button",{type:"button",onClick:()=>g(b.id),className:"flex flex-col items-center space-y-2 p-3 rounded-lg text-center hover:bg-background-muted transition-colors border border-transparent "+(o===b.id?"bg-background-muted border-border":"hover:border-border"),children:[jsxRuntime.jsx("div",{className:"w-12 h-12 rounded-lg overflow-hidden bg-background-surface "+(o===b.id?"border-2 border-action-default":"border border-border-default"),children:jsxRuntime.jsx("img",{src:b.preview,alt:`${b.name} map preview`,className:"w-full h-full object-cover"})}),jsxRuntime.jsx("div",{className:"text-sm "+(o===b.id?"font-bold text-text-primary":"font-normal text-text-secondary"),children:b.name})]},b.id))})]}),f.length>0&&jsxRuntime.jsxs("div",{children:[jsxRuntime.jsxs("div",{className:"flex items-center justify-between mb-3",children:[jsxRuntime.jsx("div",{className:"text-sm font-semibold text-text-primary",children:"Map details"}),s&&jsxRuntime.jsx("button",{type:"button",onClick:s,className:"text-xs text-text-secondary hover:text-text-primary transition-colors",children:"Clear all"})]}),jsxRuntime.jsx("div",{className:"space-y-2",children:f.map(b=>{let x=b.visible!==false,y=b.legend?.variants;return jsxRuntime.jsxs("div",{className:y?"space-y-1.5":void 0,children:[jsxRuntime.jsx(Sn,{isSelected:x,onChange:()=>i?.(b.id),children:jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[b.legend&&jsxRuntime.jsx(jR,{type:b.legend.swatch,color:b.legend.color}),jsxRuntime.jsx("span",{className:"text-sm text-text-primary",children:b.legend?.label})]})}),y&&jsxRuntime.jsx("div",{className:"pl-6",children:jsxRuntime.jsx(bo,{"aria-label":`${b.legend?.label} mode`,size:"sm",isDisabled:!x,items:y.options.map(v=>({...v,value:v.id})),renderItem:v=>v.label,selectedKey:y.selectedId,onSelectionChange:v=>c?.(b.id,String(v))})})]},b.id)})})]})]});return jsxRuntime.jsx(on,{position:e,className:t,style:r,children:jsxRuntime.jsx("div",{className:"relative",children:u?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(Cr,{icon:"Stack",ariaLabel:"Map layers and settings",onPress:()=>m(true)}),jsxRuntime.jsx(ct,{isOpen:d,onClose:()=>m(false),title:"Map layers",animationVariant:"scale",children:h})]}):jsxRuntime.jsxs(reactAriaComponents.DialogTrigger,{children:[jsxRuntime.jsx(Cr,{icon:"Stack",ariaLabel:"Map layers and settings"}),jsxRuntime.jsx(lt,{placement:"top start",children:jsxRuntime.jsx(reactAriaComponents.Dialog,{"aria-label":"Map layers and settings",className:"p-4 min-w-80 bg-background-surface border border-border rounded-lg shadow-xl focus:outline-none focus:ring-0",children:h})})]})})})}function Wh({position:e="top-right",className:t,style:r,onToggle:o,isActive:n=false}){return jsxRuntime.jsx(on,{position:e,className:tailwindMerge.twMerge("md:hidden",t),style:r,children:jsxRuntime.jsx(Cr,{icon:"ListDashes",onPress:o,isActive:n,ariaLabel:n?"Hide list view":"Show list view"})})}var _R={sm:"gap-2",md:"gap-4",lg:"gap-6"};function Yl({position:e="top-right",className:t,style:r,children:o,orientation:n="vertical",spacing:a="md"}){return jsxRuntime.jsx(on,{position:e,style:r,children:jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("flex",n==="vertical"?"flex-col":"flex-row",_R[a],t),children:o})})}function Uh({mapRef:e,position:t="bottom-right",className:r,style:o,showCompass:n=true,showGeolocate:a=true,showResetZoom:i=true,onResetZoom:s,onCompassClick:c,onGeolocateClick:l}){let[u,d]=Oe.useState(false),m=Oe.useRef(true);Oe.useEffect(()=>()=>{m.current=false;},[]);let p=()=>{c?c():e.current&&e.current.easeTo({bearing:0,duration:500});},g=async()=>{if(!u)if(l)l();else {if(!navigator.geolocation){console.warn("Geolocation is not supported by this browser.");return}if(navigator.permissions?.query)try{if((await navigator.permissions.query({name:"geolocation"})).state==="denied"){console.warn("Geolocation permission was previously denied. Please enable location services in your browser settings.");return}}catch{}d(true),navigator.geolocation.getCurrentPosition(y=>{if(!m.current)return;let{latitude:v,longitude:S}=y.coords;e.current&&e.current.flyTo({center:[S,v],zoom:15,duration:2e3}),d(false);},y=>{if(m.current){switch(console.warn("Geolocation error:",{code:y.code,message:y.message,PERMISSION_DENIED:y.PERMISSION_DENIED,POSITION_UNAVAILABLE:y.POSITION_UNAVAILABLE,TIMEOUT:y.TIMEOUT}),y.code){case y.PERMISSION_DENIED:console.warn("Location access denied. Please enable location services in your browser settings.");break;case y.POSITION_UNAVAILABLE:console.warn("Location information unavailable.");break;case y.TIMEOUT:console.warn("Location request timed out.");break;default:console.warn("Error getting location:",y.message);break}d(false);}},{enableHighAccuracy:true,timeout:1e4,maximumAge:0});}};if(!n&&!a&&!i)return null;let f=!i&&n,h=!i&&!n&&a,b=!a&&n;return jsxRuntime.jsxs(Yl,{position:t,className:r,style:o,spacing:"sm",children:[i&&jsxRuntime.jsx(Cr,{icon:"ArrowsOut",onPress:s,ariaLabel:"Reset zoom to show all points",className:tailwindMerge.twMerge(!(!a&&!n&&i)&&"rounded-b-none",n&&"border-b-0")}),n&&jsxRuntime.jsx(Cr,{icon:"Compass",onPress:p,ariaLabel:"Reset map orientation",className:tailwindMerge.twMerge(!f&&"rounded-t-none border-t-0",!b&&"rounded-b-none border-b-0")}),a&&jsxRuntime.jsx(Cr,{icon:u?"Spinner":"NavigationArrow",onPress:g,isDisabled:u,ariaLabel:"Go to my location",iconClassName:tailwindMerge.twMerge("text-text-primary",u&&"animate-spin"),className:tailwindMerge.twMerge(!h&&"rounded-t-none border-t-0",!h&&n&&"lg:rounded-t lg:border-t")})]})}function Xh({position:e="top-left",className:t,style:r,onSearch:o,placeholder:n="Search places...",showSearchInput:a=true}){let[i,s]=Oe.useState(false),[c,l]=Oe.useState(""),u=()=>{a?s(!i):o&&o("");},d=p=>{p.preventDefault(),o&&c.trim()&&(o(c.trim()),s(false));},m=p=>{p.key==="Escape"&&s(false);};return jsxRuntime.jsx(on,{position:e,className:t,style:r,children:jsxRuntime.jsxs("div",{className:"relative",children:[jsxRuntime.jsx(Cr,{icon:"MagnifyingGlass",onPress:u,ariaLabel:"Search"}),i&&a&&jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("absolute top-12 left-0 min-w-64","bg-background-surface border border-border rounded-lg shadow-xl p-3"),children:jsxRuntime.jsx("form",{onSubmit:d,children:jsxRuntime.jsxs("div",{className:"flex items-center space-x-2",children:[jsxRuntime.jsx("input",{type:"text",value:c,onChange:p=>l(p.target.value),onKeyDown:m,placeholder:n,className:tailwindMerge.twMerge("flex-1 px-3 py-2 text-sm rounded border","bg-background border-border text-text-primary placeholder:text-text-secondary","focus:outline-none focus:ring-2 focus:ring-action-brand"),autoFocus:true}),jsxRuntime.jsx(Z,{type:"submit",variant:"primary",size:"sm",className:"px-3 py-2",children:"Search"})]})})})]})})}var oM={navigation:"bottom-right",layers:"bottom-left",search:"top-left",list:"top-right",custom:"top-right"};function lp(e){return e.position??oM[e.type]}function jh(e,t,r){let o=lp(e),n=e.id??`${e.type}-${t}`;switch(e.type){case "navigation":{let i=e.showResetZoom!==false&&r.showResetButton;return jsxRuntime.jsx(Uh,{mapRef:r.mapRef,position:o,showCompass:e.showCompass,showGeolocate:e.showGeolocate,showResetZoom:i,onResetZoom:e.onResetZoom,onCompassClick:e.onCompassClick,onGeolocateClick:e.onGeolocateClick,style:e.style,className:e.className},n)}case "layers":return jsxRuntime.jsx(Oh,{position:o,currentMapType:e.currentMapType,onMapTypeChange:e.onMapTypeChange,layers:e.layers??r.layers,onLayerToggle:e.onLayerToggle,onClearAll:e.onClearAll,onLayerVariantChange:e.onLayerVariantChange,style:e.style,className:e.className},n);case "search":return jsxRuntime.jsx(Xh,{position:o,onSearch:e.onSearch,placeholder:e.placeholder,showSearchInput:e.showSearchInput,style:e.style,className:e.className},n);case "list":return jsxRuntime.jsx(Wh,{position:o,onToggle:e.onToggle,isActive:e.isActive,style:e.style,className:e.className},n);case "custom":return jsxRuntime.jsx("div",{children:e.render(r)},n);default:return null}}function cp(e,t){let r=e.reduce((n,a,i)=>{let s=lp(a);return n[s]||(n[s]=[]),n[s].push({control:a,index:i}),n},{}),o=[];for(let[n,a]of Object.entries(r)){if(a.length===1){o.push(jh(a[0].control,a[0].index,t));continue}let i={position:"static",top:"auto",right:"auto",bottom:"auto",left:"auto"};o.push(jsxRuntime.jsx(Yl,{position:n,spacing:"sm",children:a.map(({control:s,index:c})=>{let l={...s,style:{...s.style,...i}};return jh(l,c,t)})},`group-${n}`));}return o}var dp={vector:e=>({kind:"vector",...e}),geojson:e=>({kind:"geojson",...e}),customPins:e=>({kind:"customPins",...e}),raster:e=>({kind:"raster",...e}),clusteredVector:e=>({kind:"clusteredVector",...e})};function up(e){return e.kind==="vector"}function pp(e){return e.kind==="geojson"}function mp(e){return e.kind==="customPins"}function fp(e){return e.kind==="raster"}function Wi(e,t="streets"){let r=[...e].sort((o,n)=>(o.z??0)-(n.z??0));return jsxRuntime.jsx(jsxRuntime.Fragment,{children:r.map(o=>{if(!o.visible&&o.visible!==void 0)return null;switch(o.kind){case "vector":return jsxRuntime.jsx(aM,{spec:o,mapType:t},o.id);case "geojson":return jsxRuntime.jsx(sM,{spec:o,mapType:t},o.id);case "customPins":return jsxRuntime.jsx(lM,{spec:o,mapType:t},o.id);case "raster":return jsxRuntime.jsx(cM,{spec:o},o.id);case "clusteredVector":return jsxRuntime.jsx(iM,{spec:o,mapType:t},o.id);default:return console.warn("[Layers] Unknown layer kind:",o.kind),null}})})}function aM({spec:e,mapType:t}){let{colorMode:r}=Vt(),o=Oe.useMemo(()=>{let c=_h(e.style,e.renderAs,r,t);if(e.hideChipWhen&&e.renderAs==="circle"){let l=c,u=l["circle-opacity"]??1,d=l["circle-stroke-opacity"]??1;return {...c,"circle-opacity":["case",e.hideChipWhen,0,u],"circle-stroke-opacity":["case",e.hideChipWhen,0,d]}}return c},[e.style,e.renderAs,e.hideChipWhen,r,t]),n=Oe.useMemo(()=>({visibility:e.visible===false?"none":"visible"}),[e.visible]),a={id:e.id,type:Zh(e.renderAs),"source-layer":e.sourceLayer,paint:o,layout:n};e.filter!==void 0&&(a.filter=e.filter),e.minZoom!==void 0&&(a.minzoom=e.minZoom),e.maxZoom!==void 0&&(a.maxzoom=e.maxZoom);let i=e.tileset.startsWith("mapbox://"),s={id:`${e.id}-source`,type:"vector"};return e.promoteId!==void 0&&(s.promoteId=e.promoteId),i?s.url=e.tileset:(s.tiles=[e.tileset],s.minzoom=0,s.maxzoom=22),jsxRuntime.jsx(vM.Source,{...s,children:jsxRuntime.jsx(vM.Layer,{...a})},e.tileset)}function iM({spec:e}){let{colorMode:t,isDarkTheme:r}=Vt(),o=1.25,n=9,a=3,i=n*1.4,s=.2,c=[0,5],l=Oe.useMemo(()=>r?{clusters:e.clusterStyle?.color?Ir(e.clusterStyle.color):"#000000",shadow:e.clusterStyle?.shadowColor||"rgba(0, 0, 0, 0.5)",point:{fill:e.pointStyle?.color?Ir(e.pointStyle.color):"#000000",stroke:e.pointStyle?.borderColor||"#ffffff",shadow:"rgba(0, 0, 0, 0.5)"},text:{onCluster:"#ffffff"},selected:{fill:e.selectedStyle?.color?Ir(e.selectedStyle.color):"#444ae1"}}:{clusters:e.clusterStyle?.color?Ir(e.clusterStyle.color):"#000000",shadow:e.clusterStyle?.shadowColor||"rgba(0, 0, 0, 0.3)",point:{fill:e.pointStyle?.color?Ir(e.pointStyle.color):"#000000",stroke:e.pointStyle?.borderColor||"#ffffff",shadow:"rgba(0, 0, 0, 0.3)"},text:{onCluster:"#ffffff"},selected:{fill:e.selectedStyle?.color?Ir(e.selectedStyle.color):"#444ae1"}},[r,t,e.clusterStyle,e.pointStyle,e.selectedStyle]),u=10,d=30,m=Math.log(2),p=Math.log(2e3),g=(e.clusterStyle?.sizes?.length??0)>0,f=Oe.useMemo(()=>g?e.clusterStyle.sizes.map(({threshold:S,radius:w})=>({threshold:S,radius:w,color:l.clusters})):[{threshold:30,radius:20,color:l.clusters},{threshold:200,radius:35,color:l.clusters},{threshold:1e3,radius:50,color:l.clusters}],[g,e.clusterStyle?.sizes,l.clusters]),h=S=>g?["step",["get","point_count"],S[0].radius,...S.flatMap(({threshold:w,radius:N})=>[w,N])]:["interpolate",["linear"],["ln",["max",2,["get","point_count"]]],m,u,p,d],b=S=>g?["step",["get","point_count"],S[0].radius*o,...S.flatMap(({threshold:w,radius:N})=>[w,N*o])]:["interpolate",["linear"],["ln",["max",2,["get","point_count"]]],m,u*o,p,d*o],x=e.tileset.startsWith("mapbox://"),y={id:`${e.id}-source`,type:"vector"};x?y.url=e.tileset:(y.tiles=[e.tileset],y.minzoom=0,y.maxzoom=22);let v=Oe.useMemo(()=>{let S=e.pointStyle?.radius??n,w=e.pointStyle?.borderWidth??a,N=e.selectedStyle?.radius??n*1.5,R=k=>{let T={...k};return e.minZoom!==void 0&&(T.minzoom=e.minZoom),e.maxZoom!==void 0&&(T.maxzoom=e.maxZoom),T};return [R({id:`${e.id}-cluster-shadows`,type:"circle","source-layer":e.sourceLayer,filter:["==",["get","cluster"],true],paint:{"circle-radius":b(f),"circle-color":l.shadow,"circle-blur":.5,"circle-translate":[0,8]}}),R({id:`${e.id}-points-shadow`,type:"circle","source-layer":e.sourceLayer,filter:["all",["!=",["get","cluster"],true],["!=",["get","id"],e.selectedId||"selected"]],paint:{"circle-radius":i,"circle-color":l.point.shadow,"circle-blur":s,"circle-translate":c}}),R({id:`${e.id}-clusters`,type:"circle","source-layer":e.sourceLayer,filter:["==",["get","cluster"],true],paint:{"circle-radius":h(f),"circle-color":["step",["get","point_count"],f[0].color,...f.flatMap(({threshold:k,color:T})=>[k,T])]}}),R({id:`${e.id}-cluster-count`,type:"symbol","source-layer":e.sourceLayer,filter:["==",["get","cluster"],true],layout:{"text-field":["case",["has","point_count_abbreviated"],["get","point_count_abbreviated"],["to-string",["get","point_count"]]],"text-font":["DIN Offc Pro Medium","Arial Unicode MS Bold"],"text-size":14,"text-offset":[0,.1]},paint:{"text-color":l.text.onCluster}}),R({id:`${e.id}-points`,type:"circle","source-layer":e.sourceLayer,filter:["all",["!=",["get","cluster"],true],["!=",["get","id"],e.selectedId||"selected"]],paint:{"circle-radius":S,"circle-color":l.point.fill,"circle-stroke-width":w,"circle-stroke-color":l.point.stroke}}),R({id:`${e.id}-selected-point`,type:"circle","source-layer":e.sourceLayer,filter:["==",["get","id"],e.selectedId||"selected"],paint:{"circle-radius":N,"circle-color":l.selected.fill,"circle-stroke-width":w,"circle-stroke-color":"#ffffff"}}),...e.pointStyle?.icon?[R({id:`${e.id}-points-icon`,type:"symbol","source-layer":e.sourceLayer,filter:["all",["!=",["get","cluster"],true],["!=",["get","id"],e.selectedId||"selected"]],layout:{"icon-image":e.pointStyle.icon.name,"icon-size":qh(S,e.pointStyle.icon.size),"icon-allow-overlap":true,"icon-ignore-placement":true}}),R({id:`${e.id}-selected-point-icon`,type:"symbol","source-layer":e.sourceLayer,filter:["==",["get","id"],e.selectedId||"selected"],layout:{"icon-image":e.pointStyle.icon.name,"icon-size":qh(N,e.pointStyle.icon.size),"icon-allow-overlap":true,"icon-ignore-placement":true}})]:[]]},[e.id,e.sourceLayer,e.selectedId,e.minZoom,e.maxZoom,e.pointStyle,e.selectedStyle,f,l,n,a,i,s]);return jsxRuntime.jsx(vM.Source,{...y,children:v.map(S=>jsxRuntime.jsx(vM.Layer,{...S},S.id))},e.tileset)}function sM({spec:e,mapType:t}){let{colorMode:r}=Vt(),o=Oe.useMemo(()=>typeof e.data=="string"?null:e.data,[e.data]),n=Oe.useMemo(()=>_h(e.style,e.renderAs,r,t,o),[e.style,e.renderAs,r,t,o]),a=Oe.useMemo(()=>({visibility:e.visible===false?"none":"visible"}),[e.visible]),i=Oe.useMemo(()=>(typeof e.data=="string",e.data),[e.data]),s={id:`${e.id}-source`,type:"geojson",data:i};e.cluster?.enabled&&(s.cluster=true,s.clusterRadius=e.cluster.radius??50,s.clusterMaxZoom=e.cluster.maxZoom??14);let c={id:e.id,type:Zh(e.renderAs),paint:n,layout:a};return e.minZoom!==void 0&&(c.minzoom=e.minZoom),e.maxZoom!==void 0&&(c.maxzoom=e.maxZoom),jsxRuntime.jsx(vM.Source,{...s,children:jsxRuntime.jsx(vM.Layer,{...c})})}function lM({spec:e,mapType:t}){let r=e.pin;return jsxRuntime.jsx(jsxRuntime.Fragment,{children:e.data.map((o,n)=>{let[a,i]=e.getPosition(o),s=e.pinProps?e.pinProps(o):{};return jsxRuntime.jsx(vM.Marker,{longitude:a,latitude:i,anchor:"bottom",children:jsxRuntime.jsx(r,{...s})},`${e.id}-${n}`)})})}function cM({spec:e}){let t=Oe.useMemo(()=>{if(!e.style)return {};let n={};return e.style.opacity!==void 0&&(n["raster-opacity"]=e.style.opacity),e.style.brightnessMin!==void 0&&(n["raster-brightness-min"]=e.style.brightnessMin),e.style.brightnessMax!==void 0&&(n["raster-brightness-max"]=e.style.brightnessMax),e.style.contrast!==void 0&&(n["raster-contrast"]=e.style.contrast),e.style.saturation!==void 0&&(n["raster-saturation"]=e.style.saturation),e.style.hueRotate!==void 0&&(n["raster-hue-rotate"]=e.style.hueRotate),e.style.fadeDuration!==void 0&&(n["raster-fade-duration"]=e.style.fadeDuration),n},[e.style]),r={id:`${e.id}-source`,type:"raster",tiles:[e.tileset]};e.tileSize&&(r.tileSize=e.tileSize);let o={id:e.id,type:"raster",paint:t};return e.minZoom!==void 0&&(o.minzoom=e.minZoom),e.maxZoom!==void 0&&(o.maxzoom=e.maxZoom),jsxRuntime.jsx(vM.Source,{...r,children:jsxRuntime.jsx(vM.Layer,{...o})},e.tileset)}var Yr="#666";function qh(e,t){let r=t??64;return e*2/r}function Zh(e){switch(e){case "line":return "line";case "fill":return "fill";case "circle":return "circle";case "symbol":return "symbol";case "heatmap":return "heatmap";default:return "circle"}}function _h(e,t,r,o,n){if(!e)return {};let a={};if(e.color){let i=Ir(e.color,r,n);switch(t){case "line":a["line-color"]=i;break;case "fill":a["fill-color"]=i;break;case "circle":a["circle-color"]=i;break}}if(e.width&&t==="line"&&(a["line-width"]=Xl(e.width)),e.radius&&t==="circle"&&(a["circle-radius"]=Xl(e.radius)),e.opacity!==void 0)switch(t){case "line":a["line-opacity"]=e.opacity;break;case "fill":a["fill-opacity"]=e.opacity;break;case "circle":a["circle-opacity"]=e.opacity;break}if(e.fillOpacity!==void 0&&t==="fill"&&(a["fill-opacity"]=e.fillOpacity),t==="fill"&&e.borderWidth&&(a["fill-outline-color"]=e.borderColor?Ir(e.borderColor,r,n):Ir(e.color||"#000",r,n)),t==="circle"&&e.borderWidth){a["circle-stroke-width"]=e.borderWidth;let i=e.borderColor?Ir(e.borderColor,r,n):Pt(`map-${o}-border`,"#ffffff");a["circle-stroke-color"]=i;}return t==="heatmap"&&(e.weight!==void 0&&(a["heatmap-weight"]=typeof e.weight=="string"?["get",e.weight]:Xl(e.weight)),e.intensity!==void 0&&(a["heatmap-intensity"]=e.intensity),e.radius!==void 0&&(a["heatmap-radius"]=Xl(e.radius)),e.opacity!==void 0&&(a["heatmap-opacity"]=e.opacity)),a}function dM(e,t){let r=e.by,o=e.mapping,n=["match",["get",r]];for(let[i,s]of Object.entries(o))n.push(i),n.push(Ir(s));let a=e.fallback?Ir(e.fallback):Yr;return n.push(a),n}function uM(e,t){let r=tm(t,e);r.length>20&&console.warn(`[Layers] Categorical auto-assignment found ${r.length} unique values for property "${e}". The 6-color palette will repeat ${Math.ceil(r.length/6)} times. Consider using explicit color mapping or reducing categories.`);let o=Dc(r),n=["match",["get",e]];for(let[a,i]of Object.entries(o))n.push(a),n.push(i);return n.push(Yr),n}function pM(e,t="viridis",r,o){let n=Ec(r,e),a;if(o&&o!=="auto")a=o;else {if(a=Lc(n),n.length===0)return console.warn(`[Layers] No numeric values found for property "${e}"`),Yr;console.log(`[Layers] Auto-calculated sequential scale for "${e}": ${a.min} to ${a.max}`);}let i=Ac(t),s=["interpolate",["linear"],["get",e]];return i.forEach((c,l)=>{let u=l/(i.length-1),d=a.min+u*(a.max-a.min);s.push(d,c);}),s}function mM(e,t="redYellowBlue",r,o,n){let a=Ec(r,e),i=rm(a,o),s;if(n&&n!=="auto")s=n;else {if(s=Lc(a),a.length===0)return console.warn(`[Layers] No numeric values found for property "${e}"`),Yr;console.log(`[Layers] Auto-calculated diverging scale for "${e}": ${s.min} \u2190 ${i} \u2192 ${s.max}`);}let c=Ic(t),l=4,u=["interpolate",["linear"],["get",e]];for(let d=0;d<=l;d++){let m=d/l,p=s.min+m*(i-s.min);u.push(p,c[d]);}for(let d=l+1;d<c.length;d++){let m=(d-l)/(c.length-1-l),p=i+m*(s.max-i);u.push(p,c[d]);}return u}function Qh(e){if(!(e.startsWith("var(")||e.startsWith("--")||e.startsWith("color-")))return e;let r=Pt(e,Yr);return r.includes("var(")?Yr:r}function Ir(e,t,r){if(typeof e=="string")return Qh(e);if("token"in e)return Pt(e.token,Yr);if("hex"in e)return Qh(e.hex);if("by"in e){if("palette"in e){if(e.palette==="categorical")return r?uM(e.by,r):(console.warn("[Layers] Categorical auto-assignment requires GeoJSON data (not URL-based data)"),Yr);if(e.palette==="sequential")return r?pM(e.by,e.scheme,r,e.scale):(console.warn("[Layers] Sequential palette requires GeoJSON data (not URL-based data)"),Yr);if(e.palette==="diverging")return r?mM(e.by,e.scheme,r,e.center,e.scale):(console.warn("[Layers] Diverging palette requires GeoJSON data (not URL-based data)"),Yr)}if("mapping"in e)return dM(e)}return Yr}function Xl(e){return typeof e=="number"?e:"byZoom"in e?["interpolate",["linear"],["zoom"],...e.byZoom.flatMap(([t,r])=>[t,r])]:e}var Ql=null;function Zl(){return typeof window>"u"||process.env.NODE_ENV==="test"||typeof process<"u"&&process.env?.CHROMATIC||typeof ({ url: (typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('index.cjs', document.baseURI).href)) })<"u"&&undefined?.CHROMATIC?Promise.resolve():(Ql||(Ql=import('mapbox-gl/dist/mapbox-gl.css').then(()=>{}).catch(t=>{console.error("Failed to load Mapbox CSS",t),Ql=null;})),Ql)}function _l(){return jsxRuntime.jsx("div",{className:"absolute inset-0 z-50 bg-background-surface/90 backdrop-blur-sm pointer-events-none","data-testid":"map-loading-overlay",children:jsxRuntime.jsx("div",{className:"absolute inset-0 opacity-20",children:jsxRuntime.jsx("div",{className:"h-full w-full",style:{backgroundImage:`
|
|
41
41
|
linear-gradient(rgba(0,0,0,0.15) 1px, transparent 1px),
|
|
42
42
|
linear-gradient(90deg, rgba(0,0,0,0.15) 1px, transparent 1px)
|
|
43
|
-
`,backgroundSize:"30px 30px"}})})})}var Zh="color-mix(in srgb, var(--color-map-neutral-border) 8%, transparent)",tM={backgroundImage:`linear-gradient(to right, ${Zh} 1px, transparent 1px), linear-gradient(to bottom, ${Zh} 1px, transparent 1px)`,backgroundSize:"24px 24px"},rM={backgroundColor:"color-mix(in srgb, var(--color-map-marker-default) 12%, transparent)"};function Zl({style:e,className:t,message:r="Map requires Mapbox token",schematic:o=false,showMarker:n=true}){return o?jsxRuntime.jsxs("div",{style:e,"data-testid":"map-schematic",className:tailwindMerge.twMerge("relative overflow-hidden border border-map-neutral-border bg-background-muted",t),children:[jsxRuntime.jsx("div",{"aria-hidden":"true",className:"absolute inset-0",style:tM}),n?jsxRuntime.jsxs("div",{className:"absolute inset-0 flex items-center justify-center",children:[jsxRuntime.jsx("span",{"aria-hidden":"true",className:"absolute h-24 w-24 rounded-full",style:rM}),jsxRuntime.jsx(B,{name:"MapPin",size:36,weight:"fill",className:"relative text-map-marker-default"})]}):null]}):jsxRuntime.jsx("div",{style:e,className:tailwindMerge.twMerge("flex items-center justify-center bg-background-muted text-text-secondary",t),children:jsxRuntime.jsxs("div",{className:"text-center",children:[jsxRuntime.jsx(B,{name:"MapPin",size:48,className:"mx-auto mb-2 opacity-50"}),jsxRuntime.jsx("p",{className:"text-sm",children:r})]})})}var _h={streets:"streets",satellite:"satellite",neutral:"neutral"},_l="streets";function $l(e,t){switch(e){case "streets":return t?"mapbox://styles/victor-texture/clzwxtrng005s01p93rtr04op":"mapbox://styles/mapbox/streets-v12";case "satellite":return "mapbox://styles/mapbox/satellite-streets-v12";case "neutral":return t?"mapbox://styles/mapbox/dark-v11":"mapbox://styles/mapbox/light-v11";default:return t?"mapbox://styles/victor-texture/clzwxtrng005s01p93rtr04op":"mapbox://styles/mapbox/streets-v12"}}function $h({longitude:e,latitude:t,showPulse:r=true,accuracy:o}){return jsxRuntime.jsx(sM.Marker,{longitude:e,latitude:t,anchor:"center",children:jsxRuntime.jsxs("div",{className:"relative flex items-center justify-center",children:[r&&jsxRuntime.jsx("div",{className:"absolute h-12 w-12 animate-[ping_2s_ease-in-out_infinite] rounded-full bg-action-brand opacity-30",style:{animationDelay:"0s"}}),jsxRuntime.jsx("div",{className:"relative z-10 flex h-5 w-5 items-center justify-center rounded-full bg-background-surface shadow-lg",children:jsxRuntime.jsx("div",{className:"h-3 w-3 rounded-full bg-action-brand"})}),o&&o>0&&jsxRuntime.jsx("div",{className:"pointer-events-none absolute rounded-full border border-action-brand/20 bg-action-brand/10",style:{width:`${Math.min(o/2,100)}px`,height:`${Math.min(o/2,100)}px`}})]})})}var Ui=Oe__namespace.default.forwardRef(({initialViewState:e,viewState:t,onViewStateChange:r,scrollEnabled:o=true,className:n,previewMode:a=false,previewModeCta:i,onPreviewModePress:s,mapType:c=_l,layers:l=[],mapboxAccessToken:u,transformRequest:d,isLoading:m=false,onLoad:p,controls:g="default",showUserLocation:f=true,onUserLocationChange:h,children:b,additionalInteractiveLayerIds:x=[],onMapClick:y,showMarker:v=false,markerLocation:S},w)=>{let N=u??Wl();if(!N)return jsxRuntime.jsx("div",{className:`relative ${n||""}`,style:{width:"100%",height:"100%"},children:jsxRuntime.jsx(Zl,{className:"w-full h-full",message:"Map unavailable"})});let{isDarkTheme:T}=Bt(),k=Oe.useRef(null),P=Oe.useRef(null),[A,D]=Oe.useState(false),[L,R]=Oe.useState(false);Oe.useEffect(()=>{ql();},[]);let[H,G]=Oe.useState(false),Y=Oe.useRef(0),[U,q]=Oe.useState(null),[j,Q]=Oe.useState(null),E=Oe.useRef(null),M=Oe.useRef(null),[W,I]=Gl("interactiveMap.trackingLocation",false),[C,F]=Oe.useState(false);Oe.useEffect(()=>{if(!navigator.geolocation){F(true);return}if(W){if(!navigator.permissions?.query){F(true);return}navigator.permissions.query({name:"geolocation"}).then(V=>{V.state!=="granted"&&I(false),F(true);}).catch(()=>{F(true);});}else F(true);},[]),Oe.useEffect(()=>{let V=setTimeout(()=>{A||R(true);},200);return ()=>clearTimeout(V)},[A]),Oe.useEffect(()=>{M.current=null;},[c,T]),Oe.useEffect(()=>{if(A)return;let V=setInterval(()=>{if(k.current?.loaded()){D(true),R(false);let z=k.current.getMap?.();z&&M.current!==z&&(M.current=z,p?.()),clearInterval(V);}},200);return ()=>clearInterval(V)},[A,p]),Oe.useEffect(()=>{if(C){if(!W||a){E.current!==null&&(navigator.geolocation.clearWatch(E.current),E.current=null);return}if(!navigator.geolocation){console.warn("Geolocation is not supported by this browser.");return}return E.current=navigator.geolocation.watchPosition(V=>{let z={latitude:V.coords.latitude,longitude:V.coords.longitude,accuracy:V.coords.accuracy};Q(z),h?.(z);},V=>{console.warn("Geolocation error:",V.message),Q(null),h?.(null);},{enableHighAccuracy:true,maximumAge:3e4,timeout:3e4}),()=>{E.current!==null&&(navigator.geolocation.clearWatch(E.current),E.current=null);}}},[W,a,h,C]);let O=Oe.useCallback(()=>{D(true),R(false);let V=k.current?.getMap?.();V&&M.current!==V&&(M.current=V,p?.());},[p]),K=Oe.useCallback(()=>{k.current&&e&&(G(false),Y.current=0,k.current.flyTo({center:[e.longitude||0,e.latitude||0],zoom:e.zoom||0,bearing:e.bearing||0,pitch:e.pitch||0,duration:1e3}));},[e]),te=Oe.useMemo(()=>g===false||g===null?[]:g==="default"||g===void 0?ap:g,[g]),de=Oe.useCallback(()=>{if(!navigator.geolocation){console.warn("Geolocation is not supported by this browser.");return}I(true),navigator.geolocation.getCurrentPosition(V=>{let{latitude:z,longitude:se}=V.coords;k.current&&k.current.jumpTo({center:[se,z],zoom:15});},V=>{console.warn("Geolocation error:",V.message),V.code===V.PERMISSION_DENIED&&I(false);},{enableHighAccuracy:true,timeout:1e4,maximumAge:0});},[]),_=Oe.useMemo(()=>{if(a)return null;let V=te.map(z=>z.type==="navigation"?{...z,onResetZoom:z.onResetZoom||K,onGeolocateClick:z.onGeolocateClick||de}:z);return lp(V,{mapRef:k,layers:l,showResetButton:H})},[te,k,a,l,K,H,de]),ae=Oe.useMemo(()=>{let V=[];return l.filter(z=>z.events?.onClick||z.events?.onMouseEnter||z.events?.onMouseLeave||z.tooltip).forEach(z=>{z.kind==="clusteredVector"?(V.push(`${z.id}-clusters`),V.push(`${z.id}-points`),V.push(`${z.id}-selected-point`)):V.push(z.id);}),[...V,...x]},[l,x]),fe=Oe.useMemo(()=>{let V=new Map;return l.forEach(z=>{z.events&&(V.set(z.id,z.events),z.kind==="clusteredVector"&&(V.set(`${z.id}-clusters`,z.events),V.set(`${z.id}-points`,z.events),V.set(`${z.id}-selected-point`,z.events)));}),V},[l]),re=Oe.useMemo(()=>{let V=new Map;return l.forEach(z=>{z.tooltip&&(V.set(z.id,z.tooltip),z.kind==="clusteredVector"&&(V.set(`${z.id}-clusters`,z.tooltip),V.set(`${z.id}-points`,z.tooltip),V.set(`${z.id}-selected-point`,z.tooltip)));}),V},[l]),ce=Oe.useMemo(()=>{let V=new Map;return l.forEach(z=>{z.kind==="clusteredVector"&&(V.set(z.id,z),V.set(`${z.id}-clusters`,z),V.set(`${z.id}-points`,z),V.set(`${z.id}-selected-point`,z));}),V},[l]),xe=Oe.useMemo(()=>{if(!v)return null;let V=S?.longitude??t?.longitude??e?.longitude,z=S?.latitude??t?.latitude??e?.latitude;return V===void 0||z===void 0?null:{longitude:V,latitude:z}},[v,S,t,e]),he=Oe.useCallback(V=>{if(a)return;let z=V.features?.[0];if(!z||!z.layer)return;let se=z.layer.id,ie=fe.get(se),le=re.get(se),We;z.geometry.type==="Point"?We=z.geometry.coordinates:We=[V.lngLat.lng,V.lngLat.lat];let ue={id:z.id??z.properties?.id,lngLat:We,properties:z.properties||{},layerId:se},et=ce.get(se),mo=z.properties?.cluster===true;if(et&&mo){let Cr=k.current;if(Cr){let yc=Cr.getZoom(),vc=Math.min(yc+3,18);Cr.flyTo({center:We,zoom:vc,duration:1e3});}return}if(ie?.onClick&&ie.onClick(ue),le&&le.trigger==="click"){let Cr;et&&"cluster"in le?le.point&&(Cr=le.point(ue)):"content"in le&&(Cr=typeof le.content=="function"?le.content(ue):le.content),Cr&&q({feature:ue,content:Cr,bare:le.bare});}y&&y(V);},[fe,re,a,y,ce,k,ae]),De=Oe.useCallback(V=>{let z=V.features?.[0];if(!z||!z.layer)return null;let se=z.layer.id,ie=re.get(se);if(!ie||ie.trigger!=="hover"&&ie.trigger!==void 0)return null;let le;z.geometry.type==="Point"?le=z.geometry.coordinates:le=[V.lngLat.lng,V.lngLat.lat];let We={id:z.id??z.properties?.id,lngLat:le,properties:z.properties||{},layerId:se},ue;if(ce.get(se)&&"cluster"in ie){let mo=z.properties?.cluster===true;if(mo&&ie.cluster){let Cr=z.properties?.point_count||0;ue=ie.cluster(Cr,We);}else !mo&&ie.point?ue=ie.point(We):ue=mo?`${z.properties?.point_count||0} items`:null;}else "content"in ie&&(ue=typeof ie.content=="function"?ie.content(We):ie.content);return ue?{feature:We,content:ue,bare:ie.bare}:null},[re,ce]),$e=Oe.useCallback(V=>{if(a)return;let z=V.features?.[0];if(!z||!z.layer)return;let se=z.layer.id,ie=fe.get(se);if(ie?.onMouseEnter){let We;z.geometry.type==="Point"?We=z.geometry.coordinates:We=[V.lngLat.lng,V.lngLat.lat];let ue={id:z.id??z.properties?.id,lngLat:We,properties:z.properties||{},layerId:se};ie.onMouseEnter(ue);}let le=De(V);le&&q(le),k.current&&(k.current.getCanvas().style.cursor="pointer");},[fe,a,k,De]),Mo=Oe.useCallback(V=>{if(a)return;let z=V.features?.[0];if(!z||!z.layer)return;let se=De(V);if(se){q(ie=>ie&&ie.feature.layerId===se.feature.layerId&&ie.feature.id===se.feature.id?ie:se);return}q(ie=>{if(!ie)return ie;let le=re.get(ie.feature.layerId);return le&&(le.trigger==="hover"||le.trigger===void 0)?null:ie});},[a,De,re]),lr=Oe.useCallback(()=>{if(!a){if(fe.forEach(V=>{V.onMouseLeave?.();}),U){let V=U.feature.layerId,z=l.find(se=>se.id===V);if(!z){let se=V.replace(/-(?:clusters|points|selected-point|cluster-shadows|points-shadow|cluster-count)$/,"");z=l.find(ie=>ie.id===se);}z?.tooltip&&(z.tooltip.trigger||"hover")==="hover"&&q(null);}k.current&&(k.current.getCanvas().style.cursor="");}},[fe,a,k,U,l]),$=Oe.useCallback((V,z)=>{for(let se of l)if(se.tooltip&&!(z&&se.id!==z)){if(se.kind==="geojson"){if(typeof se.data=="string")continue;let ie=se.data,We=(ie.type==="FeatureCollection"?ie.features:[ie]).find(ue=>ue.id===V);if(We&&We.geometry.type==="Point")return {id:We.id,lngLat:We.geometry.coordinates,properties:We.properties||{},layerId:se.id}}else if(se.kind==="customPins"){let ie=se.data.find(le=>le.id===V||le._id===V||le.key===V);if(ie)return {id:V,lngLat:se.getPosition(ie),properties:ie,layerId:se.id}}}return null},[l]);Oe.useImperativeHandle(w,()=>({showTooltip:(V,z)=>{let se=$(V,z);if(!se)return;let ie=l.find(le=>le.id===se.layerId);if(ie?.tooltip&&"content"in ie.tooltip){let le=typeof ie.tooltip.content=="function"?ie.tooltip.content(se):ie.tooltip.content;q({feature:se,content:le,bare:ie.tooltip.bare});}},hideTooltip:()=>{q(null);},getMap:()=>k.current,markMapAsMoved:()=>{G(true);}}),[$,l]);let ee=(V,z)=>d?d(V,z):{url:V},ne=m||L;return jsxRuntime.jsx("div",{ref:P,className:tailwindMerge.twMerge("relative flex h-full w-full overflow-hidden",a&&"cursor-pointer",n),onClick:a?s:void 0,children:jsxRuntime.jsxs("div",{style:{flex:1},children:[jsxRuntime.jsxs(sM__default.default,{ref:k,initialViewState:e,...t&&t,style:{width:"100%",height:"100%"},mapStyle:$l(c,T),styleDiffing:false,mapboxAccessToken:N,transformRequest:ee,onLoad:O,onMove:a?void 0:V=>{if(V.originalEvent&&A){let z=V.originalEvent.type,se=Math.abs((V.viewState.latitude??0)-(e?.latitude??0)),ie=Math.abs((V.viewState.longitude??0)-(e?.longitude??0)),le=Math.abs((V.viewState.zoom??0)-(e?.zoom??0));e&&(se>1e-4||ie>1e-4||le>.1)&&(z==="mousemove"||z==="touchmove"||z==="pointermove"?G(true):(z==="wheel"||z==="mousewheel")&&(Y.current+=1,Y.current>=3&&G(true)));}r?.(V.viewState);},onClick:a?void 0:he,onMouseMove:a?void 0:Mo,onMouseEnter:a?void 0:$e,onMouseLeave:a?void 0:lr,interactiveLayerIds:a?[]:ae,scrollZoom:a?false:o,dragPan:!a,dragRotate:!a,doubleClickZoom:!a,interactive:!a,attributionControl:false,children:[jsxRuntime.jsx(sM.AttributionControl,{position:"top-left"}),_,Hi(l,c),b,xe&&jsxRuntime.jsx(sM.Marker,{longitude:xe.longitude,latitude:xe.latitude,anchor:"bottom",children:jsxRuntime.jsx(B,{name:"MapPin",size:36,className:"text-map-marker-default",weight:"fill"})}),f&&j&&jsxRuntime.jsx($h,{longitude:j.longitude,latitude:j.latitude,accuracy:j.accuracy}),U&&jsxRuntime.jsx(sM.Popup,{longitude:U.feature.lngLat[0],latitude:U.feature.lngLat[1],offset:15,closeButton:false,closeOnClick:false,className:U.bare?"map-tooltip map-tooltip-bare":"map-tooltip",maxWidth:"none",children:U.content})]},`map-${c}-${T}`),ne&&jsxRuntime.jsx(Ql,{}),a&&i&&jsxRuntime.jsx("div",{className:"absolute bottom-8 right-8 z-10",children:i})]})})});Ui.displayName="InteractiveMap";async function ty(e,t,r,o={}){if(e.hasImage(t))return;let n=o.size??64,a=o.color??"#2c2a26",i=o.weight??"regular",s=server.renderToStaticMarkup(Oe.createElement(r,{size:n,color:a,weight:i})),c=`data:image/svg+xml;charset=utf-8,${encodeURIComponent(s)}`;await new Promise((l,u)=>{let d=new Image(n,n);d.onload=()=>{try{e.hasImage(t)||e.addImage(t,d,{sdf:!1}),l();}catch(m){u(m instanceof Error?m:new Error(`Failed to addImage "${t}": ${String(m)}`));}},d.onerror=m=>{u(m instanceof Error?m:new Error(`Failed to load icon "${t}"`));},d.src=c;});}function Ua({width:e="100%",height:t="100%",initialViewState:r={longitude:-122.4194,latitude:37.7749,zoom:14},isLoading:o=false,mapType:n="streets",layers:a=[],mapboxAccessToken:i,showMarker:s=true,showAttribution:c=false,onLoad:l,className:u,showExpandToggle:d=false,expandedMapTitle:m="Explore map",expandedMapAddressLabel:p,schematicPlaceholder:g=false}){let f=i??Wl(),{isDarkTheme:h}=Bt(),[b,x]=Oe.useState(false),[y,v]=Oe.useState(false),[S,w]=Oe.useState(false),N=Oe.useRef(null),T=Oe.useRef(null),k=Oe.useCallback(()=>w(true),[]),P=Oe.useCallback(()=>w(false),[]);Oe.useEffect(()=>{ql();},[]);let A={width:typeof e=="number"?`${e}px`:e,height:typeof t=="number"?`${t}px`:t};Oe.useEffect(()=>{let R=setTimeout(()=>{b||v(true);},200);return ()=>clearTimeout(R)},[b]);let D=Oe.useCallback(()=>{x(true),v(false),l?.();},[l]);Oe.useEffect(()=>{if(!T.current)return;let R=new ResizeObserver(()=>{N.current&&N.current.resize();});return R.observe(T.current),()=>{R.disconnect();}},[]);let L=o||y;return f?jsxRuntime.jsxs("div",{ref:T,style:A,className:`relative ${u||""}`,children:[jsxRuntime.jsxs(sM__default.default,{ref:N,mapboxAccessToken:f,initialViewState:r,style:{width:"100%",height:"100%"},mapStyle:$l(n,h),onLoad:D,scrollZoom:false,dragPan:false,dragRotate:false,doubleClickZoom:false,touchZoomRotate:false,interactive:false,attributionControl:false,children:[c&&jsxRuntime.jsx(sM.AttributionControl,{position:"top-left"}),Hi(a,n),s&&r.longitude!==void 0&&r.latitude!==void 0&&jsxRuntime.jsx(sM.Marker,{longitude:r.longitude,latitude:r.latitude,anchor:"bottom",children:jsxRuntime.jsx(B,{name:"MapPin",size:36,className:"text-map-marker-default",weight:"fill"})})]}),d&&jsxRuntime.jsx("div",{className:"absolute top-4 right-4 z-20",children:jsxRuntime.jsx(vr,{icon:"ArrowsOutSimple",ariaLabel:"Expand map to fullscreen",onPress:k})}),d&&jsxRuntime.jsx(Nr,{isOpen:S,onClose:P,title:m,contentPadding:false,maxWidth:"min(1100px, 100vw)",minWidth:"min(360px, 100vw)",height:"80vh",mobileHeight:"82vh",children:jsxRuntime.jsxs("div",{className:"flex flex-col h-full",children:[jsxRuntime.jsx("div",{className:"flex-1 min-h-0 overflow-hidden sm:mx-4 sm:mt-4 sm:rounded-xl sm:border sm:border-border-default",children:jsxRuntime.jsx(Ui,{initialViewState:r,mapType:n,mapboxAccessToken:f,showMarker:s,markerLocation:r.longitude!==void 0&&r.latitude!==void 0?{latitude:r.latitude,longitude:r.longitude}:void 0,layers:a})}),p&&jsxRuntime.jsx("p",{className:"text-sm text-text-secondary px-4 py-3 flex-shrink-0",children:p})]})}),L&&jsxRuntime.jsx(Ql,{})]}):jsxRuntime.jsx(Zl,{style:A,className:u,schematic:g,showMarker:s})}var yM={xs:{bar:"h-1 w-14",text:"text-xs",icon:"h-2.5 w-2.5"},sm:{bar:"h-1.5 w-48",text:"text-xs",icon:"h-3 w-3"},md:{bar:"h-2 w-64",text:"text-sm",icon:"h-4 w-4"},lg:{bar:"h-3 w-80",text:"text-base",icon:"h-5 w-5"}};function oy({label:e,size:t="md",variant:r="default",showWarningIndicator:o=true,warningThreshold:n=80,hideValueText:a=false,className:i,...s}){let c=yM[t],l=a&&e&&!s["aria-label"]&&!s["aria-labelledby"]?{"aria-label":e}:{};return jsxRuntime.jsx(reactAriaComponents.Meter,{...s,...l,className:ke(i,"flex flex-col gap-1"),children:({percentage:u,valueText:d})=>{let m=o&&u>=n,p=r==="default"?vM(u):r;return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[!a&&jsxRuntime.jsxs("div",{className:"flex justify-between gap-2",children:[e&&jsxRuntime.jsx(ze,{children:e}),jsxRuntime.jsxs("span",{className:tailwindMerge.twMerge(c.text,m?"text-feedback-error-text":"text-text-secondary"),children:[m&&jsxRuntime.jsx(lucideReact.AlertTriangle,{"aria-label":"Warning: High value",className:tailwindMerge.twMerge("inline-block align-text-bottom mr-1",c.icon)}),d]})]}),jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("relative rounded-full bg-background-muted","ring-1 ring-inset ring-border-muted",c.bar),children:jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("absolute left-0 top-0 h-full rounded-full transition-all duration-300","forced-colors:bg-[Highlight]",CM(p)),style:{width:`${Math.min(100,Math.max(0,u))}%`},role:"presentation","aria-hidden":"true"})})]})}})}function vM(e){return e<50?"success":e<70?"info":e<90?"warning":"error"}function CM(e){switch(e){case "success":return "bg-feedback-success-text";case "warning":return "bg-feedback-warning-text";case "error":return "bg-feedback-error-text";case "info":return "bg-feedback-info-text";case "neutral":return "bg-text-subtle";default:return "bg-action-brand"}}var tc="bg-background-surface border-l-[3px] border-y border-r border-border-default text-text-primary",TM={success:{container:tc,iconName:"CheckCircle",iconColor:"text-feedback-success-text",borderColor:"var(--color-feedback-success-border)"},error:{container:tc,iconName:"XCircle",iconColor:"text-feedback-error-text",borderColor:"var(--color-feedback-error-border)"},warning:{container:tc,iconName:"Warning",iconColor:"text-feedback-warning-text",borderColor:"var(--color-feedback-warning-border)"},info:{container:tc,iconName:"Info",iconColor:"text-feedback-info-text",borderColor:"var(--color-feedback-info-border)"}};function oc({id:e,message:t,variant:r="info",duration:o=5e3,dismissible:n=true,onDismiss:a,className:i}){let{container:s,iconName:c,iconColor:l,borderColor:u}=TM[r];return Oe.useEffect(()=>{if(o>0){let d=setTimeout(()=>{a?.();},o);return ()=>clearTimeout(d)}},[o,a]),jsxRuntime.jsxs(framerMotion.motion.div,{layout:true,initial:{opacity:0,y:-20,scale:.95},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,scale:.95,transition:{duration:.2}},className:tailwindMerge.twMerge("pointer-events-auto flex items-center gap-3 rounded-lg p-4 shadow-lg",s,i),style:{borderLeftColor:u},children:[jsxRuntime.jsx(B,{name:c,size:20,className:l}),jsxRuntime.jsx("p",{className:"flex-1 select-text text-sm font-medium",children:t}),n&&jsxRuntime.jsx("button",{type:"button",onClick:a,className:"flex-shrink-0 rounded-md p-1 transition-colors hover:bg-background-hover","aria-label":"Dismiss notification",children:jsxRuntime.jsx(B,{name:"X",size:16})})]})}var AM={"top-left":"top-4 left-4 items-start","top-center":"top-4 left-1/2 -translate-x-1/2 items-start","top-right":"top-4 right-4 items-end","bottom-left":"bottom-4 left-4 items-start","bottom-center":"bottom-4 left-1/2 -translate-x-1/2 items-start","bottom-right":"bottom-4 right-4 items-end"};function nc({notices:e,onDismiss:t,position:r="bottom-center",className:o}){let[n,a]=Oe.useState(false);if(Oe.useEffect(()=>{a(true);},[]),!n)return null;let i=jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("pointer-events-none fixed z-50 flex flex-col gap-2",AM[r],o),"aria-live":"polite","aria-atomic":"true",children:jsxRuntime.jsx(framerMotion.AnimatePresence,{mode:"sync",children:e.map(s=>jsxRuntime.jsx(oc,{id:s.id,message:s.message,variant:s.variant,duration:s.duration,dismissible:s.dismissible,onDismiss:()=>t(s.id)},s.id))})});return reactDom.createPortal(i,document.body)}var ny=Oe.createContext(void 0);function ay({children:e,position:t="bottom-center",maxNotices:r=5,defaultDuration:o=5e3,defaultDismissible:n=true}){let[a,i]=Oe.useState([]),s=Oe.useCallback((d,m)=>{let p=`notice-${Date.now()}-${Math.random()}`,g={id:p,message:d,variant:m?.variant||"info",duration:m?.duration??o,dismissible:m?.dismissible??n};return i(f=>{let h=[...f,g];return h.length>r?h.slice(-r):h}),p},[r,o,n]),c=Oe.useCallback(d=>{i(m=>m.filter(p=>p.id!==d));},[]),l=Oe.useCallback(()=>{i([]);},[]),u={notices:a,addNotice:s,removeNotice:c,clearNotices:l};return jsxRuntime.jsxs(ny.Provider,{value:u,children:[e,jsxRuntime.jsx(nc,{notices:a,onDismiss:c,position:t})]})}function iy(){let e=Oe.useContext(ny);if(!e)throw new Error("useNoticeContext must be used within a NoticeProvider");return e}function sy(){let{addNotice:e,removeNotice:t,clearNotices:r}=iy(),o=Oe.useCallback((c,l)=>e(c,l),[e]),n=Oe.useCallback((c,l)=>e(c,{...l,variant:"success"}),[e]),a=Oe.useCallback((c,l)=>e(c,{...l,variant:"error"}),[e]),i=Oe.useCallback((c,l)=>e(c,{...l,variant:"warning"}),[e]),s=Oe.useCallback((c,l)=>e(c,{...l,variant:"info"}),[e]);return {show:o,success:n,error:a,warning:i,info:s,dismiss:t,clear:r}}var HM={plain:"",contained:"bg-background-surface rounded-lg border border-border-default p-6",bordered:"border-y border-border-default py-6"},WM={none:"",sm:"my-4",md:"my-6 md:my-8",lg:"my-8 md:my-12"};function Ka({id:e,title:t,description:r,actions:o,variant:n="plain",spacing:a="none",withDivider:i=false,headingAs:s="h2",className:c,children:l}){let u=Oe__namespace.default.useId(),d=e?`${e}-heading`:u,m=t||r||o;return jsxRuntime.jsxs("section",{id:e,className:tailwindMerge.twMerge(WM[a],HM[n],c),"aria-labelledby":t?d:void 0,children:[m&&jsxRuntime.jsxs("header",{id:d,className:tailwindMerge.twMerge("flex flex-col sm:flex-row sm:items-start sm:justify-between gap-4",i&&"border-b border-border-default pb-4 mb-6",!i&&l&&"mb-6"),children:[jsxRuntime.jsxs("div",{className:"min-w-0 flex-1",children:[t&&jsxRuntime.jsx(Qt,{tag:s,size:"md",className:"text-text-primary",children:t}),r&&jsxRuntime.jsx("p",{className:"mt-2 text-base text-text-secondary",children:r})]}),o&&jsxRuntime.jsx("div",{className:"flex-shrink-0",children:o})]}),l&&jsxRuntime.jsx("div",{className:"",children:l})]})}Ka.displayName="Section";function sc({sections:e,activeSection:t,onSectionChange:r,orientation:o="responsive",className:n,scrollBehavior:a="smooth",stickyTop:i="1.5rem",heading:s,sectionIdPrefix:c="section-",filterSection:l,scrollContainerId:u}){let d=Oe__namespace.useRef(null),m=Oe__namespace.useRef(null),[p,g]=Oe__namespace.useState(e[0]?.id||null),f=t??p,h=Oe__namespace.useCallback(()=>u?document.getElementById(u):null,[u]),b=Oe__namespace.useCallback(w=>document.getElementById(`${c}${w}`)??document.getElementById(w),[c]);Oe__namespace.useEffect(()=>{let w=window.location.hash;if(!w)return;let N=w.slice(1),T=N.startsWith(c)?N.slice(c.length):N,k=e.find(P=>P.id===T);k&&requestAnimationFrame(()=>{let P=b(k.id);if(!P)return;let A=h();if(A){let D=A.getBoundingClientRect(),L=P.getBoundingClientRect(),R=A.scrollTop+(L.top-D.top);A.scrollTo({top:Math.max(0,R),behavior:"instant"});}else P.scrollIntoView({behavior:"instant",block:"start"});r?r(k.id):g(k.id);});},[]),Oe__namespace.useEffect(()=>{if(t!==void 0&&r)return;let w=P=>{if(!P)return false;let A=window.getComputedStyle(P);return A.display!=="none"&&A.visibility!=="hidden"&&A.opacity!=="0"},N=()=>{let P=w(d.current),A=w(m.current);if(!P&&!A)return null;let D=h(),L=new IntersectionObserver(R=>{R.forEach(H=>{if(H.isIntersecting){let G=H.target.id.replace(c,"");r?r(G):g(G);}});},{root:D??void 0,rootMargin:"-20% 0px -70% 0px",threshold:0});return e.forEach(R=>{let H=b(R.id);H&&L.observe(H);}),L},T=N(),k=()=>{T&&T.disconnect(),T=N();};return window.addEventListener("resize",k),()=>{T&&T.disconnect(),window.removeEventListener("resize",k);}},[e,c,t,r,o,h,b]);let x=Oe__namespace.useMemo(()=>l?e.filter(l):e,[e,l]),y=Oe__namespace.useCallback((w,N)=>{w.preventDefault();let T=b(N);if(T){let k=h();if(k){let P=k.getBoundingClientRect(),A=T.getBoundingClientRect(),D=k.scrollTop+(A.top-P.top),L=Math.max(0,k.scrollHeight-k.clientHeight);k.scrollTo({top:Math.max(0,Math.min(D,L)),behavior:a});}else {let P=T.getBoundingClientRect().top+window.scrollY,A=Math.max(0,document.documentElement.scrollHeight-window.innerHeight),D=Math.max(0,Math.min(P,A));window.scrollTo({top:D,behavior:a});}window.history.pushState&&window.history.pushState(null,"",`#${c}${N}`),r?r(N):g(N);}},[c,a,r,h,b]);if(x.length===0)return null;let v=o==="vertical"?"":o==="horizontal"?"hidden":"hidden lg:block",S=o==="horizontal"?"":o==="vertical"?"hidden":"lg:hidden";return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("nav",{ref:d,className:tailwindMerge.twMerge(v,n),"aria-label":"Section navigation",children:jsxRuntime.jsxs("div",{className:"space-y-1",style:{position:"sticky",top:i},children:[s?jsxRuntime.jsx("div",{className:"px-3 pb-2 text-label-sm font-semibold uppercase tracking-wide text-text-tertiary",children:s}):null,x.map(w=>{let N=f===w.id;return jsxRuntime.jsx("a",{href:`#${c}${w.id}`,onClick:T=>y(T,w.id),className:tailwindMerge.twMerge("block w-full text-left px-3 py-2 rounded-md text-sm transition-colors no-underline",N?"bg-background-muted text-text-primary font-semibold":"text-text-secondary hover:text-text-primary hover:bg-background-hover"),"aria-current":N?"page":void 0,children:jsxRuntime.jsxs("span",{className:"flex items-center justify-between gap-2",children:[jsxRuntime.jsx("span",{children:w.label}),w.count!==void 0&&jsxRuntime.jsx("span",{className:"text-xs tabular-nums text-text-secondary",children:w.count})]})},w.id)})]})}),jsxRuntime.jsx("nav",{ref:m,className:tailwindMerge.twMerge(S,"overflow-x-auto scrollbar-hide sticky top-0 z-10 py-4 -mt-4",n),"aria-label":"Section navigation",children:jsxRuntime.jsx("div",{className:"flex gap-2 min-w-max",children:x.map(w=>{let N=f===w.id;return jsxRuntime.jsx("a",{href:`#${c}${w.id}`,onClick:T=>y(T,w.id),className:tailwindMerge.twMerge("inline-block px-4 py-2 rounded-md text-sm whitespace-nowrap transition-colors no-underline",N?"bg-background-muted text-text-primary font-semibold":"text-text-secondary hover:text-text-primary hover:bg-background-hover"),"aria-current":N?"page":void 0,children:jsxRuntime.jsxs("span",{className:"flex items-center gap-2",children:[jsxRuntime.jsx("span",{children:w.label}),w.count!==void 0&&jsxRuntime.jsxs("span",{className:"text-xs tabular-nums text-text-secondary",children:["(",w.count,")"]})]})},w.id)})})})]})}function cy(e){return "primary"}var lc=Oe__namespace.createContext({variant:"primary"});function XM({orientation:e,className:t=""}){return `flex flex-col w-full ${{horizontal:"",vertical:"flex-row"}[e]||""} ${t}`.trim()}function dc({variant:e="primary",...t}){let r=cy();return jsxRuntime.jsx(lc.Provider,{value:{variant:r},children:jsxRuntime.jsx("div",{className:"w-full h-auto",children:jsxRuntime.jsx(reactAriaComponents.Tabs,{...t,className:reactAriaComponents.composeRenderProps(t.className,(o,n)=>XM({...n,className:o}))})})})}function jM({orientation:e,sticky:t=false,className:r=""}){let o="flex gap-10 relative after:absolute after:bottom-0 after:left-0 after:right-0 after:h-[2px] after:bg-border-muted",n={horizontal:"flex-row w-full flex-nowrap overflow-x-auto scrollbar-hide",vertical:"flex-col items-start"},a=t?"sticky top-0 bg-background-surface z-10":"";return `${o} ${n[e]||""} ${a} ${r}`.trim()}function uc({variant:e,sticky:t=false,...r}){let o=Oe__namespace.useContext(lc),n=cy(e??o.variant);return jsxRuntime.jsx(lc.Provider,{value:{variant:n},children:jsxRuntime.jsx(reactAriaComponents.TabList,{...r,className:reactAriaComponents.composeRenderProps(r.className,(a,i)=>jM({...i,sticky:t,className:a||""}))})})}function qM({isSelected:e,isDisabled:t,variant:r,className:o=""}){let n="flex items-center cursor-default px-1 py-2 font-medium transition-all hover:cursor-pointer relative shrink-0 whitespace-nowrap",a=`${Je()} ${r==="primary"?"focus-visible:outline-action-primary":""}`.trim(),i="";return t?i="text-text-disabled forced-colors:text-[GrayText] cursor-not-allowed":e?i="text-action-primary border-b-2 border-action-primary z-10 forced-colors:bg-[Highlight]":i="text-text-disabled hover:text-text-secondary",`${n} ${a} ${i} ${o}`.trim()}function pc(e){let{variant:t}=Oe__namespace.useContext(lc);return jsxRuntime.jsx(reactAriaComponents.Tab,{...e,"data-testid":e.id?`tab-${e.id}`:void 0,className:reactAriaComponents.composeRenderProps(e.className,(r,o)=>qM({...o,className:r,isSelected:o.isSelected,variant:t}))})}function QM({className:e=""}){let t="block w-full mt-4 text-text-primary",r=Je();return `${t} ${r} ${e}`.trim()}function dy(e){return jsxRuntime.jsx(reactAriaComponents.TabPanel,{...e,className:reactAriaComponents.composeRenderProps(e.className,(t,r)=>QM({...r,className:t||""}))})}function Qn({children:e,maxWidth:t=1400,paddingXClass:r="px-4 md:px-6",paddingYClass:o="pt-8 pb-14 md:pt-12 md:pb-28",className:n}){return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge(`w-full ${r} ${o}`,n),style:{marginInline:"auto",maxWidth:t},children:e})}function ZM({title:e,subtitle:t,breadcrumbs:r,breadcrumbsNode:o,media:n,actions:a,metadata:i,headingAs:s,sticky:c,stickyTop:l="0",zIndex:u=10,isLoading:d=false,className:m}){let p=c?"sticky bg-background-body":"",g=c?{top:l,zIndex:u}:{};return d?jsxRuntime.jsxs("header",{className:tailwindMerge.twMerge("mb-8 md:mb-12",p,m),style:g,"aria-labelledby":"page-title",children:[o||r?.length?jsxRuntime.jsx("div",{className:"mb-2 md:mb-4",children:jsxRuntime.jsx(J,{className:"h-4 w-32"})}):null,jsxRuntime.jsxs("div",{className:"flex flex-col md:flex-row md:items-start md:justify-between gap-4",children:[jsxRuntime.jsxs("div",{className:"min-w-0 flex-1",children:[jsxRuntime.jsx("div",{id:"page-title",children:jsxRuntime.jsx(J,{className:"h-8 w-64"})}),t?jsxRuntime.jsx(J,{className:"mt-2 h-5 w-48"}):null,i?jsxRuntime.jsx(J,{className:"mt-2 h-4 w-40"}):null,a?.length?jsxRuntime.jsx("div",{className:"mt-6 flex flex-col items-stretch gap-3 md:hidden",children:a.map((f,h)=>jsxRuntime.jsx(J,{className:"h-9 w-full"},h))}):null]}),a?.length?jsxRuntime.jsx("div",{className:"hidden md:flex md:items-start gap-2 shrink-0",children:a.map((f,h)=>jsxRuntime.jsx(J,{className:"h-9 w-24"},h))}):null]}),n?jsxRuntime.jsx("div",{className:"mt-4 md:mt-6",children:jsxRuntime.jsx(J,{className:"h-64 w-full"})}):null]}):jsxRuntime.jsxs("header",{className:tailwindMerge.twMerge("mb-8 md:mb-12",p,m),style:g,"aria-labelledby":"page-title",children:[o?jsxRuntime.jsx("div",{className:"mb-2 md:mb-4",children:o}):r?.length?jsxRuntime.jsx("div",{className:"mb-2 md:mb-4",children:jsxRuntime.jsx(Es,{children:r.map((f,h)=>{let{label:b,...x}=f;return jsxRuntime.jsx(Ls,{...x,children:b},`${b}-${h}`)})})}):null,jsxRuntime.jsxs("div",{className:"flex flex-col md:flex-row md:items-start md:justify-between gap-4",children:[jsxRuntime.jsxs("div",{className:"min-w-0 flex-1",children:[jsxRuntime.jsx("div",{id:"page-title",children:jsxRuntime.jsx(Qt,{tag:s||"h1",size:"xl",children:e})}),t?jsxRuntime.jsx("p",{className:"mt-2 text-base md:text-lg text-text-secondary",children:t}):null,i?jsxRuntime.jsx("div",{className:"mt-2 text-sm text-text-secondary",children:i}):null,a?.length?jsxRuntime.jsx("div",{className:"mt-6 flex flex-col items-stretch gap-3 md:hidden",children:a.map((f,h)=>jsxRuntime.jsx(Oe__namespace.default.Fragment,{children:f},h))}):null]}),a?.length?jsxRuntime.jsx("div",{className:"hidden md:flex md:items-start gap-2 shrink-0",children:a.map((f,h)=>jsxRuntime.jsx(Oe__namespace.default.Fragment,{children:f},h))}):null]}),n?jsxRuntime.jsx("div",{className:"mt-4 md:mt-6",children:n}):null]})}function _M({tabs:e,value:t,defaultValue:r,onChange:o,className:n,children:a}){let i=s=>{o?.(s);};return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("mb-3 md:mb-4 border-b-2 border-border-muted",n),children:jsxRuntime.jsxs(dc,{selectedKey:t,defaultSelectedKey:r||e[0]?.id,onSelectionChange:i,children:[jsxRuntime.jsx(uc,{className:"after:bg-transparent",children:e.map(s=>jsxRuntime.jsx(pc,{id:s.id,isDisabled:s.disabled,children:s.label},s.id))}),a]})})}function $M({children:e,className:t,withSectionNav:r,navWidth:o="240px",gap:n="2rem",activeSection:a,onSectionChange:i,scrollBehavior:s,sectionIdPrefix:c="section-",scrollContainerId:l,navHeading:u,navStickyTop:d}){return r?jsxRuntime.jsx(tD,{position:r,navWidth:o,gap:n,activeSection:a,onSectionChange:i,scrollBehavior:s,sectionIdPrefix:c,scrollContainerId:l,navHeading:u,navStickyTop:d,className:t,children:e}):jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("w-full space-y-8 md:space-y-12",t),children:e})}function eD({children:e,sticky:t=true,className:r}){return jsxRuntime.jsx("aside",{className:tailwindMerge.twMerge(t?"lg:sticky lg:top-20":"",r),children:e})}function tD({activeSection:e,onSectionChange:t,position:r,navWidth:o,gap:n,children:a,className:i,scrollBehavior:s,sectionIdPrefix:c,scrollContainerId:l,navHeading:u,navStickyTop:d}){let m=Oe__namespace.default.useMemo(()=>{let y=[];return Oe__namespace.default.Children.forEach(a,v=>{if(Oe__namespace.default.isValidElement(v)&&(v.type===Ka||typeof v.type=="object"&&v.type?.displayName==="Section"||typeof v.type=="function"&&v.type?.displayName==="Section")){let S=v.props;S.id?y.push({id:S.id,label:S.navLabel||(typeof S.title=="string"?S.title:`Section ${S.id}`)}):process.env.NODE_ENV==="development"&&console.warn("Section component used within PageLayout.Content with withSectionNav must have an id prop");}}),y},[a]),p=Oe__namespace.default.useMemo(()=>{let y=Oe__namespace.default.Children.map(a,v=>{if(Oe__namespace.default.isValidElement(v)&&(v.type===Ka||typeof v.type=="object"&&v.type?.displayName==="Section"||typeof v.type=="function"&&v.type?.displayName==="Section")){let S=v.props;if(S.id)return Oe__namespace.default.cloneElement(v,{...S,id:`${c}${S.id}`})}return v});return jsxRuntime.jsx("div",{className:"space-y-8 md:space-y-12",children:y})},[a,c]),g=(y,v)=>jsxRuntime.jsx(sc,{sections:m,activeSection:e,onSectionChange:t,orientation:y,scrollBehavior:s,sectionIdPrefix:c,scrollContainerId:l,heading:u,className:v});if(r==="above")return jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("space-y-4",i),children:[jsxRuntime.jsx("div",{className:"sticky top-0 z-10 bg-background-body",children:g("horizontal")}),p]});let f=r==="left"?"var(--nav-width) 1fr":"1fr var(--nav-width)",h=d?"":"top-20",b=d?{top:d}:void 0,x=tailwindMerge.twMerge("hidden lg:block sticky self-start",h);return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("div",{className:"lg:hidden sticky top-0 z-10 mt-3 mb-4 bg-background-body border-b border-border-default shadow-sm",children:g("horizontal","py-3 mt-0")}),jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("lg:grid",i),style:{gridTemplateColumns:f,gap:n,"--nav-width":o},children:[r==="left"&&jsxRuntime.jsx("nav",{className:x,style:b,children:g("vertical")}),p,r==="right"&&jsxRuntime.jsx("nav",{className:x,style:b,children:g("vertical")})]})]})}function rD({children:e,className:t}){return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("flex-1 overflow-auto min-h-0",t),children:e})}Qn.Header=ZM;Qn.Tabs=_M;Qn.Content=$M;Qn.Aside=eD;Qn.ScrollableContent=rD;function nD(e){return typeof e=="object"&&e!==null&&"features"in e&&Array.isArray(e.features)&&"type"in e&&typeof e.type=="string"}var aD=process.env.NEXT_PUBLIC_MAPBOX_ACCESS_TOKEN||"";function my({label:e,selectedKey:t,defaultSelectedKey:r,onSelectionChange:o,placeholder:n="Enter a location...",errorMessage:a,description:i,size:s="md",tooltip:c,isRequired:l,isDisabled:u,showErrors:d=true,autoFocus:m=false,onSelect:p,searchTypes:g=["place","address"],defaultFilter:f,validationResult:h,countryRestrictions:b,proximity:x="ip",hideCountry:y=false,showIcon:v=true,useMobileTray:S=true,className:w}){let N=Oe.useRef(new WeakMap),T=Oe.useRef([]),k={requestType:"REST",method:"GET",url:"https://api.mapbox.com/geocoding/v5/mapbox.places/{q}.json",extraParams:{access_token:aD,types:g.join(","),limit:"5",...b?.length?{country:b.join(",").toLowerCase()}:{},...x?{proximity:x==="ip"?"ip":x.join(",")}:{}},shouldLoad:D=>D.length>0,transformResponse:D=>{if(!nD(D))return [];let L=D.features.map(R=>{let H={id:R.id,name:R.place_name};return N.current.set(H,{type:R.place_type[0],center:R.center,context:R.context,address:R.address,text:R.text,properties:R.properties}),H});return L.length>0&&(T.current=L),L}},P=D=>{let L=N.current.get(D),R=D.name.split(", "),H=R[0],G=R.slice(1);y&&G.length>0&&(G=G.slice(0,-1));let Y=G.join(", ");return jsxRuntime.jsxs("div",{className:"flex items-center gap-3 py-0.5",children:[v&&jsxRuntime.jsx(B,{name:L?.type==="address"?"MapPin":L?.type==="place"?"Buildings":L?.type==="region"?"MapPinArea":L?.type==="country"?"Flag":"Circle",className:"h-5 w-5 flex-shrink-0 text-text-secondary"}),jsxRuntime.jsxs("div",{className:"flex min-w-0 flex-col",children:[jsxRuntime.jsx("span",{className:"truncate font-medium text-text-primary",children:H}),Y&&jsxRuntime.jsx("span",{className:"truncate text-sm text-text-secondary",children:Y})]})]})},A=D=>D?jsxRuntime.jsx(B,{name:"CircleNotch",className:"h-4 w-4 animate-spin text-text-secondary"}):jsxRuntime.jsx(B,{name:"MagnifyingGlass",className:"h-4 w-4 text-text-secondary"});return jsxRuntime.jsx(Rs,{"data-testid":"autocomplete","data-config":JSON.stringify({types:g.join(","),country:b?.join(",")?.toLowerCase(),proximity:x==="ip"?"ip":x?.join(",")}),label:e||void 0,selectedKey:t,defaultSelectedKey:r,onSelectionChange:D=>{if(o?.(D),D){let R=T.current.find(H=>H.id===D);if(R){let H=N.current.get(R);H&&p({id:R.id,place_name:R.name,place_type:[H.type],center:H.center,context:H.context,address:H.address,text:H.text,properties:H.properties});}}},requestConfig:k,placeholder:n,errorMessage:a,description:i,size:s,tooltip:c,isRequired:l,isDisabled:u,showErrors:d,autoFocus:m,renderItem:P,renderLeftIcon:A,defaultFilter:f,validationResult:h,hideChevron:true,useMobileTray:S,className:w})}function gy({label:e,rightLabel:t,progressWidth:r=64,hideLabels:o=false,...n}){return jsxRuntime.jsx(reactAriaComponents.ProgressBar,{...n,className:ke(n.className,"flex flex-col gap-1"),children:({percentage:a,valueText:i,isIndeterminate:s})=>jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[!o&&jsxRuntime.jsxs("div",{className:"flex items-center justify-between gap-2",children:[jsxRuntime.jsx("span",{className:"text-sm text-text-primary",children:e}),jsxRuntime.jsx("span",{className:"text-sm text-text-primary",children:t||i})]}),jsxRuntime.jsx("div",{className:`relative h-2 w-${r} overflow-hidden rounded-full bg-background-muted outline-none`,children:jsxRuntime.jsx("div",{className:`absolute top-0 h-full rounded-full bg-action-default forced-colors:bg-[Highlight] ${s?"left-full duration-1000 ease-out animate-in slide-out-to-right-full repeat-infinite [--tw-enter-translate-x:calc(-16rem-100%)]":"left-0"}`,style:{width:(s?40:a)+"%"}})})]})})}function by({as:e="div",size:t="md",tone:r="editorial",className:o="",children:n,...a}){let i=t==="md"?"":`prose-${t}`,s=r==="editorial"?"":`prose-${r}`;return jsxRuntime.jsx(e,{className:jt("prose",i,s,o),...a,children:n})}function pD(e="2"){return {1:"p-2 text-xs",2:"p-3 text-sm",3:"p-4 text-base"}[e]}function mD(e){return e?"border-action-primary text-action-primary":"border-border text-text-primary"}function fD(){return "opacity-50 cursor-not-allowed"}function xy({value:e,isDisabled:t,className:r,children:o,size:n="2",variant:a="primary"}){return jsxRuntime.jsx(reactAriaComponents.Radio,{value:e,isDisabled:t,className:ke(r,"relative flex items-center justify-center cursor-pointer transition-all duration-200 focus:outline-none focus:ring-2 focus:ring-action-primary focus:ring-offset-2 rounded-lg min-h-[44px]"),children:({isSelected:s,isDisabled:c})=>jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("flex items-center justify-center w-full h-full transition-all duration-200 rounded-lg border-2 bg-background-surface",!(t||c)&&!s&&"hover:bg-background-hover hover:border-border-hover",pD(n),mD(s),(t||c)&&fD(),r),children:o})})}function hy({value:e,defaultValue:t,onChange:r,isDisabled:o,isReadOnly:n,isRequired:a,className:i,children:s,size:c="2",variant:l="primary",columns:u="repeat(auto-fit, minmax(160px, 1fr))",gap:d="1"}){return jsxRuntime.jsx(reactAriaComponents.RadioGroup,{value:e,defaultValue:t,onChange:r,isDisabled:o,isReadOnly:n,isRequired:a,className:ke(i,"grid"),style:{gridTemplateColumns:/^\d+$/.test(String(u))?`repeat(${u}, minmax(0, 1fr))`:u,gap:d==="1"?"0.25rem":d==="2"?"0.5rem":d==="3"?"0.75rem":d==="4"?"1rem":typeof d=="number"?`${d}px`:d},children:Oe__namespace.default.Children.map(s,m=>Oe__namespace.default.isValidElement(m)?Oe__namespace.default.cloneElement(m,{size:c,variant:l}):m)})}function yD(e){return "primary"}var yy=Oe.createContext({variant:"primary"});function vy(e){let{variant:t="primary",...r}=e,o=yD();return jsxRuntime.jsx(yy.Provider,{value:{variant:o},children:jsxRuntime.jsxs(reactAriaComponents.RadioGroup,{...r,className:ke(e.className,"group flex flex-col gap-2"),children:[jsxRuntime.jsx(ze,{children:e.label}),jsxRuntime.jsx("div",{className:`flex ${r.orientation==="horizontal"?"flex-row gap-4":"flex-col gap-2"}`,children:e.children}),e.description&&jsxRuntime.jsx(Te,{children:e.description}),jsxRuntime.jsx(be,{children:typeof e.errorMessage=="function"&&e.validationResult?e.errorMessage(e.validationResult):typeof e.errorMessage=="string"?e.errorMessage:null})]})})}function vD({isSelected:e,isInvalid:t,isDisabled:r}){let n=[Je(),"focus-visible:outline-action-primary","w-5 h-5 rounded-full border-2 bg-background-surface transition-all"];return r?n.push("border-border-muted forced-colors:!border-[GrayText]"):t?n.push("border-feedback-error-border group-pressed:border-feedback-error-border dark:group-pressed:border-feedback-error-border forced-colors:!border-[Mark]"):e?n.push("border-[7px] border-action-primary forced-colors:!border-[Highlight] group-pressed:border-action-primary-hover dark:group-pressed:border-action-primary-hover"):n.push("border-border-default group-pressed:border-border-focus dark:group-pressed:border-border-focus"),n.join(" ")}function Cy(e){return Oe.useContext(yy),jsxRuntime.jsx(reactAriaComponents.Radio,{...e,className:ke(e.className,"relative group flex items-center gap-2 text-sm text-text-primary transition disabled:text-text-secondary dark:text-text-primary dark:disabled:text-text-secondary forced-colors:disabled:text-[GrayText]"),children:t=>jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("div",{className:vD(t)}),e.children]})})}var DD={sm:{toolbar:"p-1.5",contentWrapper:"min-h-[100px]",contentPadding:"p-3",placeholderPos:"left-3 top-3",prose:"prose-xs",h1:"[&_.ProseMirror_h1]:mb-2 [&_.ProseMirror_h1]:text-base [&_.ProseMirror_h1]:font-bold",h2:"[&_.ProseMirror_h2]:mb-1.5 [&_.ProseMirror_h2]:text-sm [&_.ProseMirror_h2]:font-semibold",p:"[&_.ProseMirror_p]:mb-1",list:"[&_.ProseMirror_ul]:mb-1 [&_.ProseMirror_ul]:ml-4 [&_.ProseMirror_ol]:mb-1 [&_.ProseMirror_ol]:ml-4",li:"[&_.ProseMirror_li]:mb-0.5",placeholderText:"text-xs"},md:{toolbar:"p-2",contentWrapper:"min-h-[200px]",contentPadding:"p-4",placeholderPos:"left-4 top-4",prose:"prose-sm",h1:"[&_.ProseMirror_h1]:mb-4 [&_.ProseMirror_h1]:text-2xl [&_.ProseMirror_h1]:font-bold",h2:"[&_.ProseMirror_h2]:mb-3 [&_.ProseMirror_h2]:text-xl [&_.ProseMirror_h2]:font-semibold",p:"[&_.ProseMirror_p]:mb-2",list:"[&_.ProseMirror_ul]:mb-2 [&_.ProseMirror_ul]:ml-6 [&_.ProseMirror_ol]:mb-2 [&_.ProseMirror_ol]:ml-6",li:"[&_.ProseMirror_li]:mb-1",placeholderText:"text-sm"},lg:{toolbar:"p-2.5",contentWrapper:"min-h-[250px]",contentPadding:"p-5",placeholderPos:"left-5 top-5",prose:"prose-base",h1:"[&_.ProseMirror_h1]:mb-5 [&_.ProseMirror_h1]:text-3xl [&_.ProseMirror_h1]:font-bold",h2:"[&_.ProseMirror_h2]:mb-4 [&_.ProseMirror_h2]:text-2xl [&_.ProseMirror_h2]:font-semibold",p:"[&_.ProseMirror_p]:mb-3",list:"[&_.ProseMirror_ul]:mb-3 [&_.ProseMirror_ul]:ml-6 [&_.ProseMirror_ol]:mb-3 [&_.ProseMirror_ol]:ml-6",li:"[&_.ProseMirror_li]:mb-1.5",placeholderText:"text-base"},xl:{toolbar:"p-3",contentWrapper:"min-h-[300px]",contentPadding:"p-6",placeholderPos:"left-6 top-6",prose:"prose-lg",h1:"[&_.ProseMirror_h1]:mb-6 [&_.ProseMirror_h1]:text-4xl [&_.ProseMirror_h1]:font-bold",h2:"[&_.ProseMirror_h2]:mb-5 [&_.ProseMirror_h2]:text-3xl [&_.ProseMirror_h2]:font-semibold",p:"[&_.ProseMirror_p]:mb-3",list:"[&_.ProseMirror_ul]:mb-3 [&_.ProseMirror_ul]:ml-8 [&_.ProseMirror_ol]:mb-3 [&_.ProseMirror_ol]:ml-8",li:"[&_.ProseMirror_li]:mb-2",placeholderText:"text-lg"}},Xa=({isActive:e=false,onPress:t,children:r})=>jsxRuntime.jsx(Z,{variant:e?"secondary":"ghost",size:"sm",onPress:t,className:"p-1",children:r});function ED({initialUrl:e,isOpen:t,onClose:r,onSubmit:o}){let[n,a]=Oe.useState(e);return Oe__namespace.default.useEffect(()=>{a(e);},[e]),jsxRuntime.jsx(cr,{isDismissable:true,isOpen:t,onOpenChange:s=>!s&&r(),children:jsxRuntime.jsx(reactAriaComponents.Modal,{className:"flex items-center justify-center p-4 outline-none focus:outline-none focus-visible:outline-none ring-0 focus:ring-0 focus-visible:ring-0",children:jsxRuntime.jsx(reactAriaComponents.Dialog,{className:"relative bg-background-surface rounded-lg shadow-xl max-w-md w-full",children:jsxRuntime.jsxs("form",{onSubmit:s=>{s.preventDefault(),o(n),r();},children:[jsxRuntime.jsx(Ht,{title:"Insert Link",onClose:r}),jsxRuntime.jsx("div",{className:"p-6",children:jsxRuntime.jsx(Er,{label:"URL",type:"url",value:n,onChange:a,autoFocus:true,className:"w-full"})}),jsxRuntime.jsxs("div",{className:"flex justify-end gap-2 border-t border-border-muted p-4",children:[jsxRuntime.jsx(Z,{variant:"secondary",onPress:r,children:"Cancel"}),jsxRuntime.jsx(Z,{type:"submit",children:"Save"})]})]})})})})}function Ny({initialContent:e="",onChange:t,className:r,isDisabled:o=false,placeholder:n="Start typing...",id:a,size:i="md",headingLevels:s=[1,2]}){let c=DD[i],[l,u]=Oe.useState(false),d=react.useEditor({immediatelyRender:false,extensions:[TD__default.default.configure({heading:s.length>0?{levels:s}:false}),SD__default.default.configure({openOnClick:false,HTMLAttributes:{class:"text-text-link-default hover:text-text-link-hover underline decoration-text-link-default/30 hover:decoration-text-link-hover cursor-pointer"}})],content:e,editable:!o,onUpdate:({editor:g})=>{t?.(g.getHTML());},editorProps:{attributes:{class:tailwindMerge.twMerge(`prose ${c.prose} max-w-none`,"focus:outline-none","[&>*:first-child]:mt-0 [&>*:last-child]:mb-0")}}}),m=()=>{u(true);},p=g=>{g===""?d?.chain().focus().unsetLink().run():d?.chain().focus().setLink({href:g}).run();};return d?jsxRuntime.jsxs("div",{id:a,"data-richtexteditor":true,className:tailwindMerge.twMerge("flex flex-col rounded-md border border-border-input bg-background-input","outline-none focus-within:outline-none focus-within:border-border-input focus-within:ring-0 focus-within:shadow-none",o&&"opacity-50",r),style:{outline:"none"},children:[!o&&d&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsxs(menus.BubbleMenu,{editor:d,shouldShow:({editor:g})=>g.isActive("link")&&!l,className:"flex items-center gap-1 rounded-md border border-border-input bg-background-surface p-1 shadow-md",children:[jsxRuntime.jsxs(Z,{variant:"ghost",size:"sm",className:"h-8 px-2",onPress:()=>{let g=d.getAttributes("link").href;g&&window.open(g,"_blank","noopener,noreferrer");},children:[jsxRuntime.jsx(B,{name:"ArrowSquareOut",className:"mr-1 h-4 w-4"}),"Open"]}),jsxRuntime.jsxs(Z,{variant:"ghost",size:"sm",className:"h-8 px-2",onPress:m,children:[jsxRuntime.jsx(B,{name:"PencilSimple",className:"mr-1 h-4 w-4"}),"Edit"]}),jsxRuntime.jsxs(Z,{variant:"ghost",size:"sm",className:"h-8 px-2",onPress:()=>d.chain().focus().unsetLink().run(),children:[jsxRuntime.jsx(B,{name:"X",className:"mr-1 h-4 w-4"}),"Remove"]})]}),jsxRuntime.jsx(ED,{isOpen:l,onClose:()=>u(false),onSubmit:p,initialUrl:d.getAttributes("link").href||""})]}),jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("flex items-center gap-1 border-b border-border-input",c.toolbar),children:[s.map(g=>jsxRuntime.jsx(Xa,{isActive:d.isActive("heading",{level:g}),onPress:()=>d.chain().focus().toggleHeading({level:g}).run(),children:jsxRuntime.jsxs("span",{className:"text-xs font-bold",children:["H",g]})},g)),jsxRuntime.jsx(Xa,{isActive:d.isActive("bold"),onPress:()=>d.chain().focus().toggleBold().run(),children:jsxRuntime.jsx("span",{className:"text-xs font-bold",children:"B"})}),jsxRuntime.jsx(Xa,{isActive:d.isActive("italic"),onPress:()=>d.chain().focus().toggleItalic().run(),children:jsxRuntime.jsx("span",{className:"text-xs italic",children:"I"})}),jsxRuntime.jsx("div",{className:"mx-1 h-4 w-px bg-border-muted"}),jsxRuntime.jsx(Xa,{isActive:d.isActive("bulletList"),onPress:()=>d.chain().focus().toggleBulletList().run(),children:jsxRuntime.jsx(B,{name:"ListBullets",className:"h-4 w-4"})}),jsxRuntime.jsx(Xa,{isActive:d.isActive("orderedList"),onPress:()=>d.chain().focus().toggleOrderedList().run(),children:jsxRuntime.jsx(B,{name:"ListNumbers",className:"h-4 w-4"})}),jsxRuntime.jsx("div",{className:"mx-1 h-4 w-px bg-border-muted"}),jsxRuntime.jsx(Xa,{isActive:d.isActive("link"),onPress:m,children:jsxRuntime.jsx(B,{name:"PaperclipHorizontal",className:"h-4 w-4"})})]}),jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("relative w-full outline-none focus:outline-none",c.contentWrapper),children:[jsxRuntime.jsx(react.EditorContent,{editor:d,className:tailwindMerge.twMerge("w-full outline-none focus:outline-none",c.contentPadding,"[&_.ProseMirror]:min-h-[inherit]","[&_.ProseMirror]:outline-none [&_.ProseMirror]:focus:outline-none",c.h1,c.h2,c.p,"[&_.ProseMirror_ul]:list-disc","[&_.ProseMirror_ol]:list-decimal",c.list,c.li,"[&_.ProseMirror_blockquote]:border-l-4 [&_.ProseMirror_blockquote]:border-border-muted [&_.ProseMirror_blockquote]:pl-4 [&_.ProseMirror_blockquote]:italic","[&_.ProseMirror_code]:rounded [&_.ProseMirror_code]:bg-background-muted [&_.ProseMirror_code]:px-1 [&_.ProseMirror_code]:py-0.5 [&_.ProseMirror_code]:font-mono [&_.ProseMirror_code]:text-sm","[&_.ProseMirror_pre]:rounded-md [&_.ProseMirror_pre]:bg-background-muted [&_.ProseMirror_pre]:p-3 [&_.ProseMirror_pre]:font-mono [&_.ProseMirror_pre]:text-sm","[&_.ProseMirror_hr]:border-border-muted",o&&"pointer-events-none")}),d.isEmpty&&!o&&jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("pointer-events-none absolute text-text-secondary",c.placeholderPos,c.placeholderText),children:n})]})]}):null}function ky({streetAddress:e,city:t,state:r,postalCode:o,longitude:n,latitude:a,href:i,LinkComponent:s,variant:c="outlined",layout:l="stacked",showMap:u=true,mapHeight:d=200,mapboxAccessToken:m,isLoading:p=false,className:g,contentClassName:f,showMapExpandToggle:h=false,expandedMapTitle:b="Explore map",expandedMapAddressLabel:x,piiEntity:y}){let v=[];t&&v.push(t),r&&o?v.push(`${r} ${o}`):r?v.push(r):o&&v.push(o);let S=v.join(", "),w=x||[e,S].filter(Boolean).join(", "),N=u&&n!==void 0&&a!==void 0,T=({children:P,className:A})=>i?s?jsxRuntime.jsx(s,{href:i,className:A,children:P}):jsxRuntime.jsx(Ze,{href:i,variant:"unstyled",className:tailwindMerge.twMerge("hover:underline",A),asButton:false,children:P}):jsxRuntime.jsx("span",{className:A,children:P});if(p){let P=l==="row";return jsxRuntime.jsxs(Ue,{variant:c,className:tailwindMerge.twMerge(P?"flex flex-col md:flex-row":"flex flex-col",g),children:[N&&jsxRuntime.jsx(Ue.Media,{aspectRatio:"auto",className:tailwindMerge.twMerge(P&&"md:order-2 md:flex-[2] md:min-w-0"),children:jsxRuntime.jsx(J,{width:"100%",height:d})}),jsxRuntime.jsxs(Ue.Content,{className:tailwindMerge.twMerge("space-y-2 px-4 md:px-6",P&&"md:order-1 md:flex-[1] md:flex-shrink-0 md:flex md:flex-col md:justify-center"),children:[jsxRuntime.jsx(J,{width:"100%",height:16}),jsxRuntime.jsx(J,{width:"80%",height:16})]})]})}let k=l==="row";return jsxRuntime.jsxs(Ue,{variant:c,className:tailwindMerge.twMerge("group/card relative",i&&"cursor-pointer",k?"flex flex-col md:flex-row":"flex flex-col",g),children:[i&&jsxRuntime.jsx(T,{className:"after:absolute after:inset-0 after:z-10",children:jsxRuntime.jsx("span",{className:"sr-only",children:e})}),N&&jsxRuntime.jsx(Ue.Media,{aspectRatio:"auto",className:tailwindMerge.twMerge(k&&"md:order-2 md:flex-[2] md:min-w-0"),children:jsxRuntime.jsx(Ua,{height:d,initialViewState:{longitude:n,latitude:a,zoom:14},showMarker:true,mapboxAccessToken:m,showExpandToggle:h,expandedMapTitle:b,expandedMapAddressLabel:w})}),jsxRuntime.jsx(Ue.Content,{className:tailwindMerge.twMerge("px-4 md:px-6",k&&"md:order-1 md:flex-[1] md:flex-shrink-0 md:flex md:flex-col md:justify-center",f),children:jsxRuntime.jsxs("div",{className:"flex flex-col gap-1 min-w-0 text-left",children:[jsxRuntime.jsx("span",{className:"text-xl font-semibold leading-tight text-text-primary group-hover/card:text-text-brand transition-colors","data-pii-type":y?"address":void 0,"data-pii-entity":y,children:e}),S&&jsxRuntime.jsx("span",{className:"text-lg font-normal leading-relaxed text-text-secondary","data-pii-type":y?"city-state-zip":void 0,"data-pii-entity":y,children:S})]})})]})}function Py({site:e,contact:t,LinkComponent:r,variant:o="outlined",layout:n="stacked",showMap:a=true,mapHeight:i=200,mapboxAccessToken:s,showEmail:c=true,showPhone:l=false,isLoading:u=false,className:d,contentClassName:m,fullHeight:p=false,showMapExpandToggle:g=false,expandedMapTitle:f="Explore map",expandedMapAddressLabel:h}){let b=[];e.city&&b.push(e.city),e.state&&e.postalCode?b.push(`${e.state} ${e.postalCode}`):e.state?b.push(e.state):e.postalCode&&b.push(e.postalCode);let x=b.join(", "),y=h||[e.streetAddress,x].filter(Boolean).join(", "),v=a&&e.longitude!==void 0&&e.latitude!==void 0,S=t?`${t.firstName} ${t.lastName}`.trim():"",w=({children:T,href:k,className:P})=>k?r?jsxRuntime.jsx(r,{href:k,className:P,children:T}):jsxRuntime.jsx(Ze,{href:k,variant:"unstyled",className:tailwindMerge.twMerge("hover:underline",P),asButton:false,children:T}):jsxRuntime.jsx("span",{className:P,children:T});if(u){let T=n==="row";return jsxRuntime.jsxs(Ue,{variant:o,className:tailwindMerge.twMerge(p&&"h-full",T?"flex flex-col md:flex-row":"flex flex-col",d),children:[v&&jsxRuntime.jsx(Ue.Media,{aspectRatio:"auto",className:tailwindMerge.twMerge(T&&"md:order-2 md:flex-[2] md:min-w-0",p&&"flex-1"),children:jsxRuntime.jsx(J,{width:"100%",height:p?"100%":i})}),jsxRuntime.jsxs(Ue.Content,{className:tailwindMerge.twMerge("space-y-4 px-4 py-4",T&&"md:order-1 md:flex-[1] md:flex-shrink-0 md:flex md:flex-col md:justify-center"),children:[jsxRuntime.jsxs("div",{className:"space-y-2",children:[jsxRuntime.jsx(J,{width:"100%",height:16}),jsxRuntime.jsx(J,{width:"80%",height:16})]}),t&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("div",{className:"border-t border-border-default"}),jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[jsxRuntime.jsx(J,{width:40,height:40,className:"rounded flex-shrink-0"}),jsxRuntime.jsxs("div",{className:"flex-1 space-y-1",children:[jsxRuntime.jsx(J,{width:"50%",height:14}),jsxRuntime.jsx(J,{width:"100%",height:12})]})]})]})]})]})}let N=n==="row";return jsxRuntime.jsxs(Ue,{variant:o,className:tailwindMerge.twMerge("group/card relative",e.href&&"cursor-pointer",p&&"h-full",N?"flex flex-col md:flex-row":"flex flex-col",d),children:[e.href&&jsxRuntime.jsx(w,{href:e.href,className:"after:absolute after:inset-0 after:z-10",children:jsxRuntime.jsx("span",{className:"sr-only",children:e.streetAddress})}),v&&jsxRuntime.jsx(Ue.Media,{aspectRatio:"auto",className:tailwindMerge.twMerge(N&&"md:order-2 md:flex-[2] md:min-w-0",p&&"flex-1"),children:jsxRuntime.jsx(Ua,{height:p?"100%":i,initialViewState:{longitude:e.longitude,latitude:e.latitude,zoom:14},showMarker:true,mapboxAccessToken:s,showExpandToggle:g,expandedMapTitle:f,expandedMapAddressLabel:y})}),jsxRuntime.jsxs(Ue.Content,{className:tailwindMerge.twMerge("space-y-4 px-4 py-4",N&&"md:order-1 md:flex-[1] md:flex-shrink-0 md:flex md:flex-col md:justify-center",m),children:[jsxRuntime.jsxs("div",{className:"flex flex-col gap-1 min-w-0 text-left",children:[jsxRuntime.jsx("span",{className:"text-xl font-semibold leading-tight text-text-primary group-hover/card:text-text-brand transition-colors","data-pii-type":e.piiEntity?"address":void 0,"data-pii-entity":e.piiEntity,children:e.streetAddress}),x&&jsxRuntime.jsx("span",{className:"text-lg font-normal leading-relaxed text-text-secondary","data-pii-type":e.piiEntity?"city-state-zip":void 0,"data-pii-entity":e.piiEntity,children:x})]}),t&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("div",{className:"border-t border-border-default"}),jsxRuntime.jsxs("div",{className:"flex items-center gap-2 relative",children:[jsxRuntime.jsx(bo,{firstName:t.firstName,lastName:t.lastName,src:t.avatarUrl,size:"md",variant:"user",shape:"square",className:"flex-shrink-0",piiEntity:t.piiEntity}),jsxRuntime.jsxs("div",{className:"flex-1 min-w-0",children:[t.href?jsxRuntime.jsx(w,{href:t.href,className:"text-sm font-semibold leading-tight text-text-primary block mb-0.5 hover:text-text-brand transition-colors relative z-20",children:jsxRuntime.jsx("span",{"data-pii-type":t.piiEntity?"full-name":void 0,"data-pii-entity":t.piiEntity,children:S})}):jsxRuntime.jsx("span",{className:"text-sm font-semibold leading-tight text-text-primary block mb-0.5","data-pii-type":t.piiEntity?"full-name":void 0,"data-pii-entity":t.piiEntity,children:S}),jsxRuntime.jsxs("div",{className:"space-y-0.5",children:[c&&t.email&&jsxRuntime.jsxs("div",{className:"flex items-center gap-1.5 text-text-primary",children:[jsxRuntime.jsx(B,{name:"Envelope",size:12,className:"text-text-secondary flex-shrink-0"}),jsxRuntime.jsx(Ze,{href:`mailto:${t.email}`,variant:"unstyled",className:"text-xs leading-tight truncate text-text-primary relative z-20","data-pii-type":t.piiEntity?"email":void 0,"data-pii-entity":t.piiEntity,children:t.email})]}),l&&t.phone&&jsxRuntime.jsxs("div",{className:"flex items-center gap-1.5 text-text-primary",children:[jsxRuntime.jsx(B,{name:"Phone",size:12,className:"text-text-secondary flex-shrink-0"}),jsxRuntime.jsx(Ze,{href:`tel:${t.phone}`,variant:"unstyled",className:"text-xs leading-tight truncate text-text-primary relative z-20","data-pii-type":t.piiEntity?"phone":void 0,"data-pii-entity":t.piiEntity,children:ca(t.phone)})]})]})]})]})]})]})]})}function Ry({label:e,description:t,tooltip:r,errorMessage:o,size:n="md",className:a,value:i,defaultValue:s=0,onChange:c,min:l=0,max:u=100,step:d=1,disabled:m,showValue:p=true}){let g=typeof i=="number",[f,h]=Oe__namespace.default.useState(s),b=g?i:f,x=Math.min(Math.max(b,l),u),y=Math.max(u-l,1e-5),v=(x-l)/y*100;return jsxRuntime.jsxs("div",{className:ke(a,"group flex w-full flex-col gap-1"),children:[e&&jsxRuntime.jsx(ze,{size:n,tooltip:r,className:"mb-1",children:e}),jsxRuntime.jsxs("div",{className:"flex items-center gap-3",children:[jsxRuntime.jsxs("div",{className:"relative w-full select-none",children:[jsxRuntime.jsx("div",{className:"h-1.5 w-full rounded-full bg-background-muted"}),jsxRuntime.jsx("div",{className:"pointer-events-none absolute left-0 top-1/2 h-1.5 -translate-y-1/2 rounded-full bg-action-brand",style:{width:`${v}%`},"aria-hidden":true}),jsxRuntime.jsx("input",{type:"range",min:l,max:u,step:d,value:b,disabled:m,"aria-invalid":!!o,onChange:S=>{let w=Number(S.currentTarget.value);g||h(w),c?.(w);},className:tailwindMerge.twMerge("absolute inset-0 w-full cursor-pointer appearance-none bg-transparent outline-none","[&::-webkit-slider-thumb]:appearance-none [&::-webkit-slider-thumb]:h-4 [&::-webkit-slider-thumb]:w-4 [&::-webkit-slider-thumb]:rounded-full [&::-webkit-slider-thumb]:bg-background-input [&::-webkit-slider-thumb]:border [&::-webkit-slider-thumb]:border-border-input","hover:[&::-webkit-slider-thumb]:shadow-sm focus-visible:[&::-webkit-slider-thumb]:outline-2 focus-visible:[&::-webkit-slider-thumb]:outline-action-default","[&::-moz-range-thumb]:h-4 [&::-moz-range-thumb]:w-4 [&::-moz-range-thumb]:rounded-full [&::-moz-range-thumb]:bg-background-input [&::-moz-range-thumb]:border [&::-moz-range-thumb]:border-border-input","hover:[&::-moz-range-thumb]:shadow-sm focus-visible:[&::-moz-range-thumb]:outline-2 focus-visible:[&::-moz-range-thumb]:outline-action-default",m?"cursor-not-allowed opacity-60":void 0)})]}),p&&jsxRuntime.jsx("div",{className:"min-w-10 text-right text-sm text-text-primary tabular-nums",children:Math.round(x)})]}),t&&jsxRuntime.jsx(Te,{className:"mt-2 text-text-secondary",children:t}),o&&jsxRuntime.jsx(be,{className:"mt-1",children:o})]})}var VD=Oe__namespace.default.createContext({orientation:"horizontal",isResizing:false});function Dy(e,t){return e===void 0?t:e}function zD(e,t){return typeof e=="number"?e:typeof e=="string"&&e.endsWith("%")?Number.parseFloat(e)/100*t:Number.parseFloat(e.toString())}function fc({asideWidth:e,asideHeight:t,minAsideWidth:r=240,minAsideHeight:o=200,minMainWidth:n=400,minMainHeight:a=300,orientation:i="horizontal",resizable:s=false,onAsideResize:c,onResizeStart:l,onResizeEnd:u,className:d,dividerClassName:m,children:p}){let g=Oe.useRef(null),[f,h]=Oe.useState(false),b=i==="horizontal"?400:300,x=Dy(i==="horizontal"?e:t,b),[y,v]=Oe.useState(null),S=Oe.useCallback(D=>{if(!g.current||!f)return;let L=g.current.getBoundingClientRect(),R=i==="horizontal"?L.width:L.height,H=i==="horizontal"?D.clientX:D.clientY,Y=(i==="horizontal"?L.right:L.bottom)-H,U=R-Y,q=i==="horizontal"?r:o,j=i==="horizontal"?n:a;Y<q||U<j||(v(Y),c?.(Y));},[f,i,r,o,n,a,c]),w=Oe.useCallback(()=>{h(false),u?.();},[u]),N=Oe.useCallback(D=>{D.preventDefault(),D.stopPropagation(),h(true),l?.();},[l]);Oe.useEffect(()=>{if(f)return document.addEventListener("mousemove",S),document.addEventListener("mouseup",w),document.body.style.cursor=i==="horizontal"?"col-resize":"row-resize",document.body.style.userSelect="none",()=>{document.removeEventListener("mousemove",S),document.removeEventListener("mouseup",w),document.body.style.cursor="",document.body.style.userSelect="";}},[f,S,w,i]);let T=Oe__namespace.default.Children.toArray(p).find(D=>Oe__namespace.default.isValidElement(D)&&D.type===Ly),k=Oe__namespace.default.Children.toArray(p).find(D=>Oe__namespace.default.isValidElement(D)&&D.type===Ay),P=y??x,A=typeof P=="number"?`${P}px`:P;return jsxRuntime.jsx(VD.Provider,{value:{orientation:i,isResizing:f},children:jsxRuntime.jsxs("div",{ref:g,className:tailwindMerge.twMerge("flex w-full h-full",i==="horizontal"?"flex-row":"flex-col",d),children:[jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("overflow-auto flex-1",i==="horizontal"?"h-full":"w-full"),children:T}),s&&jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("relative group flex-shrink-0",i==="horizontal"?"w-2 -mx-1 cursor-col-resize":"h-2 -my-1 cursor-row-resize",m),onMouseDown:N,role:"separator","aria-orientation":i,"aria-label":"Resize divider",tabIndex:0,onKeyDown:D=>{if(!g.current)return;let L=g.current.getBoundingClientRect(),R=i==="horizontal"?L.width:L.height,H=y??zD(x,R),G=20,Y=i==="horizontal"?r:o,U=i==="horizontal"?n:a;if(i==="horizontal"){if(D.key==="ArrowLeft"){let q=Math.min(H+G,R-U);v(q),c?.(q);}else if(D.key==="ArrowRight"){let q=Math.max(H-G,Y);v(q),c?.(q);}}else if(D.key==="ArrowUp"){let q=Math.min(H+G,R-U);v(q),c?.(q);}else if(D.key==="ArrowDown"){let q=Math.max(H-G,Y);v(q),c?.(q);}},children:[jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("absolute bg-border-default transition-all",i==="horizontal"?"left-1/2 -translate-x-1/2 w-px h-full group-hover:w-1":"top-1/2 -translate-y-1/2 h-px w-full group-hover:h-1","group-hover:bg-action-brand/50",f&&"bg-action-brand",f&&(i==="horizontal"?"w-1":"h-1"))}),jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("absolute",i==="horizontal"?"top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-1 h-8":"top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-8 h-1","bg-border-muted rounded-full opacity-0 group-hover:opacity-100 transition-opacity")})]}),jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("overflow-auto flex-shrink-0",i==="horizontal"?"h-full":"w-full"),style:{[i==="horizontal"?"width":"height"]:A},children:k})]})})}function Ly({className:e,children:t}){return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("w-full h-full",e),children:t})}function Ay({className:e,children:t}){return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("w-full h-full",e),children:t})}fc.Main=Ly;fc.Aside=Ay;var HD=e=>{let t=Vt({isInvalid:e.isInvalid,isDisabled:e.isDisabled,isFocused:e.isFocused,transparent:e.transparent,size:e.size}),r=`min-h-[100px] py-2 ${e.isDisabled?"resize-none":e.isResizable?"resize-y":"resize-none"}`;return tailwindMerge.twMerge(t,r,e.className)};function Iy({label:e,description:t,errorMessage:r,size:o="md",tooltip:n,required:a,transparent:i,isInvalid:s,isDisabled:c,isResizable:l=false,className:u,validationResult:d,reserveErrorSpace:m=true,...p}){let{isFocused:g,handleFocus:f,handleBlur:h}=Tr();return jsxRuntime.jsx("div",{className:"group flex flex-col",children:jsxRuntime.jsxs("div",{className:"flex flex-col",children:[e&&jsxRuntime.jsx(ze,{size:o,tooltip:n,isRequired:a,children:e}),jsxRuntime.jsx(ht,{children:jsxRuntime.jsx("textarea",{...p,required:a,onFocus:b=>{p.onFocus&&p.onFocus(b),f(b);},onBlur:b=>{p.onBlur&&p.onBlur(b),h(b);},className:HD({isInvalid:s,isDisabled:c,isResizable:l,isFocused:g,size:o,transparent:i,className:u}),disabled:c})}),m?jsxRuntime.jsx("div",{className:"mt-1 min-h-[20px]",children:typeof r=="string"?jsxRuntime.jsx(be,{size:o,children:r}):typeof r=="function"&&d?jsxRuntime.jsx(be,{size:o,children:r(d)}):t?jsxRuntime.jsx(Te,{size:o,children:t}):null}):jsxRuntime.jsx(jsxRuntime.Fragment,{children:typeof r=="string"?jsxRuntime.jsx(be,{size:o,className:"mt-1",children:r}):typeof r=="function"&&d?jsxRuntime.jsx(be,{size:o,className:"mt-1",children:r(d)}):t?jsxRuntime.jsx(Te,{size:o,className:"mt-1",children:t}):null})]})})}function zy({label:e,description:t,errorMessage:r,size:o="md",tooltip:n,required:a,transparent:i,isInvalid:s,isDisabled:c,isResizable:l=false,className:u,validationResult:d,value:m="",onChange:p,chips:g=[],onChipsChange:f,triggerPattern:h="{{",onTriggerDetected:b,onTriggerDismissed:x,renderChip:y,chipVariant:v="primary",chipSize:S,...w}){let N=Oe.useRef(null),{isFocused:T,handleFocus:k,handleBlur:P}=Tr(),A=S||"sm",D=Oe.useRef(null),L=Oe.useCallback(j=>{let Q="",E=M=>{if(M.nodeType===Node.TEXT_NODE){if(!M.parentElement?.closest("[data-chip-id]")){let I=M.textContent||"";Q+=I;}}else if(M.nodeType===Node.ELEMENT_NODE){let W=M;if(W.hasAttribute("data-chip-id")){let I=W.getAttribute("data-chip-id");Q+=`{{${I}}}`;return}else if(W.tagName==="BR"){Q+=`
|
|
44
|
-
`;return}else
|
|
43
|
+
`,backgroundSize:"30px 30px"}})})})}var ty="color-mix(in srgb, var(--color-map-neutral-border) 8%, transparent)",fM={backgroundImage:`linear-gradient(to right, ${ty} 1px, transparent 1px), linear-gradient(to bottom, ${ty} 1px, transparent 1px)`,backgroundSize:"24px 24px"},gM={backgroundColor:"color-mix(in srgb, var(--color-map-marker-default) 12%, transparent)"};function $l({style:e,className:t,message:r="Map requires Mapbox token",schematic:o=false,showMarker:n=true}){return o?jsxRuntime.jsxs("div",{style:e,"data-testid":"map-schematic",className:tailwindMerge.twMerge("relative overflow-hidden border border-map-neutral-border bg-background-muted",t),children:[jsxRuntime.jsx("div",{"aria-hidden":"true",className:"absolute inset-0",style:fM}),n?jsxRuntime.jsxs("div",{className:"absolute inset-0 flex items-center justify-center",children:[jsxRuntime.jsx("span",{"aria-hidden":"true",className:"absolute h-24 w-24 rounded-full",style:gM}),jsxRuntime.jsx(B,{name:"MapPin",size:36,weight:"fill",className:"relative text-map-marker-default"})]}):null]}):jsxRuntime.jsx("div",{style:e,className:tailwindMerge.twMerge("flex items-center justify-center bg-background-muted text-text-secondary",t),children:jsxRuntime.jsxs("div",{className:"text-center",children:[jsxRuntime.jsx(B,{name:"MapPin",size:48,className:"mx-auto mb-2 opacity-50"}),jsxRuntime.jsx("p",{className:"text-sm",children:r})]})})}var ry={streets:"streets",satellite:"satellite",neutral:"neutral"},ec="streets";function tc(e,t){switch(e){case "streets":return t?"mapbox://styles/victor-texture/clzwxtrng005s01p93rtr04op":"mapbox://styles/mapbox/streets-v12";case "satellite":return "mapbox://styles/mapbox/satellite-streets-v12";case "neutral":return t?"mapbox://styles/mapbox/dark-v11":"mapbox://styles/mapbox/light-v11";default:return t?"mapbox://styles/victor-texture/clzwxtrng005s01p93rtr04op":"mapbox://styles/mapbox/streets-v12"}}function oy({longitude:e,latitude:t,showPulse:r=true,accuracy:o}){return jsxRuntime.jsx(vM.Marker,{longitude:e,latitude:t,anchor:"center",children:jsxRuntime.jsxs("div",{className:"relative flex items-center justify-center",children:[r&&jsxRuntime.jsx("div",{className:"absolute h-12 w-12 animate-[ping_2s_ease-in-out_infinite] rounded-full bg-action-brand opacity-30",style:{animationDelay:"0s"}}),jsxRuntime.jsx("div",{className:"relative z-10 flex h-5 w-5 items-center justify-center rounded-full bg-background-surface shadow-lg",children:jsxRuntime.jsx("div",{className:"h-3 w-3 rounded-full bg-action-brand"})}),o&&o>0&&jsxRuntime.jsx("div",{className:"pointer-events-none absolute rounded-full border border-action-brand/20 bg-action-brand/10",style:{width:`${Math.min(o/2,100)}px`,height:`${Math.min(o/2,100)}px`}})]})})}var Ki=Oe__namespace.default.forwardRef(({initialViewState:e,viewState:t,onViewStateChange:r,scrollEnabled:o=true,className:n,previewMode:a=false,previewModeCta:i,onPreviewModePress:s,mapType:c=ec,layers:l=[],mapboxAccessToken:u,transformRequest:d,isLoading:m=false,onLoad:p,controls:g="default",showUserLocation:f=true,onUserLocationChange:h,children:b,additionalInteractiveLayerIds:x=[],onMapClick:y,showMarker:v=false,markerLocation:S},w)=>{let N=u??Ul();if(!N)return jsxRuntime.jsx("div",{className:`relative ${n||""}`,style:{width:"100%",height:"100%"},children:jsxRuntime.jsx($l,{className:"w-full h-full",message:"Map unavailable"})});let{isDarkTheme:R}=Vt(),k=Oe.useRef(null),T=Oe.useRef(null),[A,M]=Oe.useState(false),[E,P]=Oe.useState(false);Oe.useEffect(()=>{Zl();},[]);let[O,G]=Oe.useState(false),K=Oe.useRef(0),[W,q]=Oe.useState(null),[j,Q]=Oe.useState(null),L=Oe.useRef(null),D=Oe.useRef(null),[U,I]=Kl("interactiveMap.trackingLocation",false),[C,F]=Oe.useState(false);Oe.useEffect(()=>{if(!navigator.geolocation){F(true);return}if(U){if(!navigator.permissions?.query){F(true);return}navigator.permissions.query({name:"geolocation"}).then(V=>{V.state!=="granted"&&I(false),F(true);}).catch(()=>{F(true);});}else F(true);},[]),Oe.useEffect(()=>{let V=setTimeout(()=>{A||P(true);},200);return ()=>clearTimeout(V)},[A]),Oe.useEffect(()=>{D.current=null;},[c,R]),Oe.useEffect(()=>{if(A)return;let V=setInterval(()=>{if(k.current?.loaded()){M(true),P(false);let z=k.current.getMap?.();z&&D.current!==z&&(D.current=z,p?.()),clearInterval(V);}},200);return ()=>clearInterval(V)},[A,p]),Oe.useEffect(()=>{if(C){if(!U||a){L.current!==null&&(navigator.geolocation.clearWatch(L.current),L.current=null);return}if(!navigator.geolocation){console.warn("Geolocation is not supported by this browser.");return}return L.current=navigator.geolocation.watchPosition(V=>{let z={latitude:V.coords.latitude,longitude:V.coords.longitude,accuracy:V.coords.accuracy};Q(z),h?.(z);},V=>{console.warn("Geolocation error:",V.message),Q(null),h?.(null);},{enableHighAccuracy:true,maximumAge:3e4,timeout:3e4}),()=>{L.current!==null&&(navigator.geolocation.clearWatch(L.current),L.current=null);}}},[U,a,h,C]);let H=Oe.useCallback(()=>{M(true),P(false);let V=k.current?.getMap?.();V&&D.current!==V&&(D.current=V,p?.());},[p]),Y=Oe.useCallback(()=>{k.current&&e&&(G(false),K.current=0,k.current.flyTo({center:[e.longitude||0,e.latitude||0],zoom:e.zoom||0,bearing:e.bearing||0,pitch:e.pitch||0,duration:1e3}));},[e]),te=Oe.useMemo(()=>g===false||g===null?[]:g==="default"||g===void 0?ip:g,[g]),de=Oe.useCallback(()=>{if(!navigator.geolocation){console.warn("Geolocation is not supported by this browser.");return}I(true),navigator.geolocation.getCurrentPosition(V=>{let{latitude:z,longitude:se}=V.coords;k.current&&k.current.jumpTo({center:[se,z],zoom:15});},V=>{console.warn("Geolocation error:",V.message),V.code===V.PERMISSION_DENIED&&I(false);},{enableHighAccuracy:true,timeout:1e4,maximumAge:0});},[]),_=Oe.useMemo(()=>{if(a)return null;let V=te.map(z=>z.type==="navigation"?{...z,onResetZoom:z.onResetZoom||Y,onGeolocateClick:z.onGeolocateClick||de}:z);return cp(V,{mapRef:k,layers:l,showResetButton:O})},[te,k,a,l,Y,O,de]),ae=Oe.useMemo(()=>{let V=[];return l.filter(z=>z.events?.onClick||z.events?.onMouseEnter||z.events?.onMouseLeave||z.tooltip).forEach(z=>{z.kind==="clusteredVector"?(V.push(`${z.id}-clusters`),V.push(`${z.id}-points`),V.push(`${z.id}-selected-point`)):V.push(z.id);}),[...V,...x]},[l,x]),fe=Oe.useMemo(()=>{let V=new Map;return l.forEach(z=>{z.events&&(V.set(z.id,z.events),z.kind==="clusteredVector"&&(V.set(`${z.id}-clusters`,z.events),V.set(`${z.id}-points`,z.events),V.set(`${z.id}-selected-point`,z.events)));}),V},[l]),re=Oe.useMemo(()=>{let V=new Map;return l.forEach(z=>{z.tooltip&&(V.set(z.id,z.tooltip),z.kind==="clusteredVector"&&(V.set(`${z.id}-clusters`,z.tooltip),V.set(`${z.id}-points`,z.tooltip),V.set(`${z.id}-selected-point`,z.tooltip)));}),V},[l]),ce=Oe.useMemo(()=>{let V=new Map;return l.forEach(z=>{z.kind==="clusteredVector"&&(V.set(z.id,z),V.set(`${z.id}-clusters`,z),V.set(`${z.id}-points`,z),V.set(`${z.id}-selected-point`,z));}),V},[l]),xe=Oe.useMemo(()=>{if(!v)return null;let V=S?.longitude??t?.longitude??e?.longitude,z=S?.latitude??t?.latitude??e?.latitude;return V===void 0||z===void 0?null:{longitude:V,latitude:z}},[v,S,t,e]),he=Oe.useCallback(V=>{if(a)return;let z=V.features?.[0];if(!z||!z.layer)return;let se=z.layer.id,ie=fe.get(se),le=re.get(se),We;z.geometry.type==="Point"?We=z.geometry.coordinates:We=[V.lngLat.lng,V.lngLat.lat];let ue={id:z.id??z.properties?.id,lngLat:We,properties:z.properties||{},layerId:se},et=ce.get(se),fo=z.properties?.cluster===true;if(et&&fo){let Sr=k.current;if(Sr){let Cc=Sr.getZoom(),Sc=Math.min(Cc+3,18);Sr.flyTo({center:We,zoom:Sc,duration:1e3});}return}if(ie?.onClick&&ie.onClick(ue),le&&le.trigger==="click"){let Sr;et&&"cluster"in le?le.point&&(Sr=le.point(ue)):"content"in le&&(Sr=typeof le.content=="function"?le.content(ue):le.content),Sr&&q({feature:ue,content:Sr,bare:le.bare});}y&&y(V);},[fe,re,a,y,ce,k,ae]),De=Oe.useCallback(V=>{let z=V.features?.[0];if(!z||!z.layer)return null;let se=z.layer.id,ie=re.get(se);if(!ie||ie.trigger!=="hover"&&ie.trigger!==void 0)return null;let le;z.geometry.type==="Point"?le=z.geometry.coordinates:le=[V.lngLat.lng,V.lngLat.lat];let We={id:z.id??z.properties?.id,lngLat:le,properties:z.properties||{},layerId:se},ue;if(ce.get(se)&&"cluster"in ie){let fo=z.properties?.cluster===true;if(fo&&ie.cluster){let Sr=z.properties?.point_count||0;ue=ie.cluster(Sr,We);}else !fo&&ie.point?ue=ie.point(We):ue=fo?`${z.properties?.point_count||0} items`:null;}else "content"in ie&&(ue=typeof ie.content=="function"?ie.content(We):ie.content);return ue?{feature:We,content:ue,bare:ie.bare}:null},[re,ce]),$e=Oe.useCallback(V=>{if(a)return;let z=V.features?.[0];if(!z||!z.layer)return;let se=z.layer.id,ie=fe.get(se);if(ie?.onMouseEnter){let We;z.geometry.type==="Point"?We=z.geometry.coordinates:We=[V.lngLat.lng,V.lngLat.lat];let ue={id:z.id??z.properties?.id,lngLat:We,properties:z.properties||{},layerId:se};ie.onMouseEnter(ue);}let le=De(V);le&&q(le),k.current&&(k.current.getCanvas().style.cursor="pointer");},[fe,a,k,De]),Do=Oe.useCallback(V=>{if(a)return;let z=V.features?.[0];if(!z||!z.layer)return;let se=De(V);if(se){q(ie=>ie&&ie.feature.layerId===se.feature.layerId&&ie.feature.id===se.feature.id?ie:se);return}q(ie=>{if(!ie)return ie;let le=re.get(ie.feature.layerId);return le&&(le.trigger==="hover"||le.trigger===void 0)?null:ie});},[a,De,re]),lr=Oe.useCallback(()=>{if(!a){if(fe.forEach(V=>{V.onMouseLeave?.();}),W){let V=W.feature.layerId,z=l.find(se=>se.id===V);if(!z){let se=V.replace(/-(?:clusters|points|selected-point|cluster-shadows|points-shadow|cluster-count)$/,"");z=l.find(ie=>ie.id===se);}z?.tooltip&&(z.tooltip.trigger||"hover")==="hover"&&q(null);}k.current&&(k.current.getCanvas().style.cursor="");}},[fe,a,k,W,l]),$=Oe.useCallback((V,z)=>{for(let se of l)if(se.tooltip&&!(z&&se.id!==z)){if(se.kind==="geojson"){if(typeof se.data=="string")continue;let ie=se.data,We=(ie.type==="FeatureCollection"?ie.features:[ie]).find(ue=>ue.id===V);if(We&&We.geometry.type==="Point")return {id:We.id,lngLat:We.geometry.coordinates,properties:We.properties||{},layerId:se.id}}else if(se.kind==="customPins"){let ie=se.data.find(le=>le.id===V||le._id===V||le.key===V);if(ie)return {id:V,lngLat:se.getPosition(ie),properties:ie,layerId:se.id}}}return null},[l]);Oe.useImperativeHandle(w,()=>({showTooltip:(V,z)=>{let se=$(V,z);if(!se)return;let ie=l.find(le=>le.id===se.layerId);if(ie?.tooltip&&"content"in ie.tooltip){let le=typeof ie.tooltip.content=="function"?ie.tooltip.content(se):ie.tooltip.content;q({feature:se,content:le,bare:ie.tooltip.bare});}},hideTooltip:()=>{q(null);},getMap:()=>k.current,markMapAsMoved:()=>{G(true);}}),[$,l]);let ee=(V,z)=>d?d(V,z):{url:V},ne=m||E;return jsxRuntime.jsx("div",{ref:T,className:tailwindMerge.twMerge("relative flex h-full w-full overflow-hidden",a&&"cursor-pointer",n),onClick:a?s:void 0,children:jsxRuntime.jsxs("div",{style:{flex:1},children:[jsxRuntime.jsxs(vM__default.default,{ref:k,initialViewState:e,...t&&t,style:{width:"100%",height:"100%"},mapStyle:tc(c,R),styleDiffing:false,mapboxAccessToken:N,transformRequest:ee,onLoad:H,onMove:a?void 0:V=>{if(V.originalEvent&&A){let z=V.originalEvent.type,se=Math.abs((V.viewState.latitude??0)-(e?.latitude??0)),ie=Math.abs((V.viewState.longitude??0)-(e?.longitude??0)),le=Math.abs((V.viewState.zoom??0)-(e?.zoom??0));e&&(se>1e-4||ie>1e-4||le>.1)&&(z==="mousemove"||z==="touchmove"||z==="pointermove"?G(true):(z==="wheel"||z==="mousewheel")&&(K.current+=1,K.current>=3&&G(true)));}r?.(V.viewState);},onClick:a?void 0:he,onMouseMove:a?void 0:Do,onMouseEnter:a?void 0:$e,onMouseLeave:a?void 0:lr,interactiveLayerIds:a?[]:ae,scrollZoom:a?false:o,dragPan:!a,dragRotate:!a,doubleClickZoom:!a,interactive:!a,attributionControl:false,children:[jsxRuntime.jsx(vM.AttributionControl,{position:"top-left"}),_,Wi(l,c),b,xe&&jsxRuntime.jsx(vM.Marker,{longitude:xe.longitude,latitude:xe.latitude,anchor:"bottom",children:jsxRuntime.jsx(B,{name:"MapPin",size:36,className:"text-map-marker-default",weight:"fill"})}),f&&j&&jsxRuntime.jsx(oy,{longitude:j.longitude,latitude:j.latitude,accuracy:j.accuracy}),W&&jsxRuntime.jsx(vM.Popup,{longitude:W.feature.lngLat[0],latitude:W.feature.lngLat[1],offset:15,closeButton:false,closeOnClick:false,className:W.bare?"map-tooltip map-tooltip-bare":"map-tooltip",maxWidth:"none",children:W.content})]},`map-${c}-${R}`),ne&&jsxRuntime.jsx(_l,{}),a&&i&&jsxRuntime.jsx("div",{className:"absolute bottom-8 right-8 z-10",children:i})]})})});Ki.displayName="InteractiveMap";async function ay(e,t,r,o={}){if(e.hasImage(t))return;let n=o.size??64,a=o.color??"#2c2a26",i=o.weight??"regular",s=server.renderToStaticMarkup(Oe.createElement(r,{size:n,color:a,weight:i})),c=`data:image/svg+xml;charset=utf-8,${encodeURIComponent(s)}`;await new Promise((l,u)=>{let d=new Image(n,n);d.onload=()=>{try{e.hasImage(t)||e.addImage(t,d,{sdf:!1}),l();}catch(m){u(m instanceof Error?m:new Error(`Failed to addImage "${t}": ${String(m)}`));}},d.onerror=m=>{u(m instanceof Error?m:new Error(`Failed to load icon "${t}"`));},d.src=c;});}function Ka({width:e="100%",height:t="100%",initialViewState:r={longitude:-122.4194,latitude:37.7749,zoom:14},isLoading:o=false,mapType:n="streets",layers:a=[],mapboxAccessToken:i,showMarker:s=true,showAttribution:c=false,onLoad:l,className:u,showExpandToggle:d=false,expandedMapTitle:m="Explore map",expandedMapAddressLabel:p,schematicPlaceholder:g=false}){let f=i??Ul(),{isDarkTheme:h}=Vt(),[b,x]=Oe.useState(false),[y,v]=Oe.useState(false),[S,w]=Oe.useState(false),N=Oe.useRef(null),R=Oe.useRef(null),k=Oe.useCallback(()=>w(true),[]),T=Oe.useCallback(()=>w(false),[]);Oe.useEffect(()=>{Zl();},[]);let A={width:typeof e=="number"?`${e}px`:e,height:typeof t=="number"?`${t}px`:t};Oe.useEffect(()=>{let P=setTimeout(()=>{b||v(true);},200);return ()=>clearTimeout(P)},[b]);let M=Oe.useCallback(()=>{x(true),v(false),l?.();},[l]);Oe.useEffect(()=>{if(!R.current)return;let P=new ResizeObserver(()=>{N.current&&N.current.resize();});return P.observe(R.current),()=>{P.disconnect();}},[]);let E=o||y;return f?jsxRuntime.jsxs("div",{ref:R,style:A,className:`relative ${u||""}`,children:[jsxRuntime.jsxs(vM__default.default,{ref:N,mapboxAccessToken:f,initialViewState:r,style:{width:"100%",height:"100%"},mapStyle:tc(n,h),onLoad:M,scrollZoom:false,dragPan:false,dragRotate:false,doubleClickZoom:false,touchZoomRotate:false,interactive:false,attributionControl:false,children:[c&&jsxRuntime.jsx(vM.AttributionControl,{position:"top-left"}),Wi(a,n),s&&r.longitude!==void 0&&r.latitude!==void 0&&jsxRuntime.jsx(vM.Marker,{longitude:r.longitude,latitude:r.latitude,anchor:"bottom",children:jsxRuntime.jsx(B,{name:"MapPin",size:36,className:"text-map-marker-default",weight:"fill"})})]}),d&&jsxRuntime.jsx("div",{className:"absolute top-4 right-4 z-20",children:jsxRuntime.jsx(Cr,{icon:"ArrowsOutSimple",ariaLabel:"Expand map to fullscreen",onPress:k})}),d&&jsxRuntime.jsx(kr,{isOpen:S,onClose:T,title:m,contentPadding:false,maxWidth:"min(1100px, 100vw)",minWidth:"min(360px, 100vw)",height:"80vh",mobileHeight:"82vh",children:jsxRuntime.jsxs("div",{className:"flex flex-col h-full",children:[jsxRuntime.jsx("div",{className:"flex-1 min-h-0 overflow-hidden sm:mx-4 sm:mt-4 sm:rounded-xl sm:border sm:border-border-default",children:jsxRuntime.jsx(Ki,{initialViewState:r,mapType:n,mapboxAccessToken:f,showMarker:s,markerLocation:r.longitude!==void 0&&r.latitude!==void 0?{latitude:r.latitude,longitude:r.longitude}:void 0,layers:a})}),p&&jsxRuntime.jsx("p",{className:"text-sm text-text-secondary px-4 py-3 flex-shrink-0",children:p})]})}),E&&jsxRuntime.jsx(_l,{})]}):jsxRuntime.jsx($l,{style:A,className:u,schematic:g,showMarker:s})}var LM={xs:{bar:"h-1 w-14",text:"text-xs",icon:"h-2.5 w-2.5"},sm:{bar:"h-1.5 w-48",text:"text-xs",icon:"h-3 w-3"},md:{bar:"h-2 w-64",text:"text-sm",icon:"h-4 w-4"},lg:{bar:"h-3 w-80",text:"text-base",icon:"h-5 w-5"}};function sy({label:e,size:t="md",variant:r="default",showWarningIndicator:o=true,warningThreshold:n=80,hideValueText:a=false,className:i,...s}){let c=LM[t],l=a&&e&&!s["aria-label"]&&!s["aria-labelledby"]?{"aria-label":e}:{};return jsxRuntime.jsx(reactAriaComponents.Meter,{...s,...l,className:ke(i,"flex flex-col gap-1"),children:({percentage:u,valueText:d})=>{let m=o&&u>=n,p=r==="default"?AM(u):r;return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[!a&&jsxRuntime.jsxs("div",{className:"flex justify-between gap-2",children:[e&&jsxRuntime.jsx(ze,{children:e}),jsxRuntime.jsxs("span",{className:tailwindMerge.twMerge(c.text,m?"text-feedback-error-text":"text-text-secondary"),children:[m&&jsxRuntime.jsx(lucideReact.AlertTriangle,{"aria-label":"Warning: High value",className:tailwindMerge.twMerge("inline-block align-text-bottom mr-1",c.icon)}),d]})]}),jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("relative rounded-full bg-background-muted","ring-1 ring-inset ring-border-muted",c.bar),children:jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("absolute left-0 top-0 h-full rounded-full transition-all duration-300","forced-colors:bg-[Highlight]",IM(p)),style:{width:`${Math.min(100,Math.max(0,u))}%`},role:"presentation","aria-hidden":"true"})})]})}})}function AM(e){return e<50?"success":e<70?"info":e<90?"warning":"error"}function IM(e){switch(e){case "success":return "bg-feedback-success-text";case "warning":return "bg-feedback-warning-text";case "error":return "bg-feedback-error-text";case "info":return "bg-feedback-info-text";case "neutral":return "bg-text-subtle";default:return "bg-action-brand"}}var oc="bg-background-surface border-l-[3px] border-y border-r border-border-default text-text-primary",OM={success:{container:oc,iconName:"CheckCircle",iconColor:"text-feedback-success-text",borderColor:"var(--color-feedback-success-border)"},error:{container:oc,iconName:"XCircle",iconColor:"text-feedback-error-text",borderColor:"var(--color-feedback-error-border)"},warning:{container:oc,iconName:"Warning",iconColor:"text-feedback-warning-text",borderColor:"var(--color-feedback-warning-border)"},info:{container:oc,iconName:"Info",iconColor:"text-feedback-info-text",borderColor:"var(--color-feedback-info-border)"}};function ac({id:e,message:t,variant:r="info",duration:o=5e3,dismissible:n=true,onDismiss:a,className:i}){let{container:s,iconName:c,iconColor:l,borderColor:u}=OM[r];return Oe.useEffect(()=>{if(o>0){let d=setTimeout(()=>{a?.();},o);return ()=>clearTimeout(d)}},[o,a]),jsxRuntime.jsxs(framerMotion.motion.div,{layout:true,initial:{opacity:0,y:-20,scale:.95},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,scale:.95,transition:{duration:.2}},className:tailwindMerge.twMerge("pointer-events-auto flex items-center gap-3 rounded-lg p-4 shadow-lg",s,i),style:{borderLeftColor:u},children:[jsxRuntime.jsx(B,{name:c,size:20,className:l}),jsxRuntime.jsx("p",{className:"flex-1 select-text text-sm font-medium",children:t}),n&&jsxRuntime.jsx("button",{type:"button",onClick:a,className:"flex-shrink-0 rounded-md p-1 transition-colors hover:bg-background-hover","aria-label":"Dismiss notification",children:jsxRuntime.jsx(B,{name:"X",size:16})})]})}var JM={"top-left":"top-4 left-4 items-start","top-center":"top-4 left-1/2 -translate-x-1/2 items-start","top-right":"top-4 right-4 items-end","bottom-left":"bottom-4 left-4 items-start","bottom-center":"bottom-4 left-1/2 -translate-x-1/2 items-start","bottom-right":"bottom-4 right-4 items-end"};function ic({notices:e,onDismiss:t,position:r="bottom-center",className:o}){let[n,a]=Oe.useState(false);if(Oe.useEffect(()=>{a(true);},[]),!n)return null;let i=jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("pointer-events-none fixed z-50 flex flex-col gap-2",JM[r],o),"aria-live":"polite","aria-atomic":"true",children:jsxRuntime.jsx(framerMotion.AnimatePresence,{mode:"sync",children:e.map(s=>jsxRuntime.jsx(ac,{id:s.id,message:s.message,variant:s.variant,duration:s.duration,dismissible:s.dismissible,onDismiss:()=>t(s.id)},s.id))})});return reactDom.createPortal(i,document.body)}var ly=Oe.createContext(void 0);function cy({children:e,position:t="bottom-center",maxNotices:r=5,defaultDuration:o=5e3,defaultDismissible:n=true}){let[a,i]=Oe.useState([]),s=Oe.useCallback((d,m)=>{let p=`notice-${Date.now()}-${Math.random()}`,g={id:p,message:d,variant:m?.variant||"info",duration:m?.duration??o,dismissible:m?.dismissible??n};return i(f=>{let h=[...f,g];return h.length>r?h.slice(-r):h}),p},[r,o,n]),c=Oe.useCallback(d=>{i(m=>m.filter(p=>p.id!==d));},[]),l=Oe.useCallback(()=>{i([]);},[]),u={notices:a,addNotice:s,removeNotice:c,clearNotices:l};return jsxRuntime.jsxs(ly.Provider,{value:u,children:[e,jsxRuntime.jsx(ic,{notices:a,onDismiss:c,position:t})]})}function dy(){let e=Oe.useContext(ly);if(!e)throw new Error("useNoticeContext must be used within a NoticeProvider");return e}function uy(){let{addNotice:e,removeNotice:t,clearNotices:r}=dy(),o=Oe.useCallback((c,l)=>e(c,l),[e]),n=Oe.useCallback((c,l)=>e(c,{...l,variant:"success"}),[e]),a=Oe.useCallback((c,l)=>e(c,{...l,variant:"error"}),[e]),i=Oe.useCallback((c,l)=>e(c,{...l,variant:"warning"}),[e]),s=Oe.useCallback((c,l)=>e(c,{...l,variant:"info"}),[e]);return {show:o,success:n,error:a,warning:i,info:s,dismiss:t,clear:r}}var $M={plain:"",contained:"bg-background-surface rounded-lg border border-border-default p-6",bordered:"border-y border-border-default py-6"},eD={none:"",sm:"my-4",md:"my-6 md:my-8",lg:"my-8 md:my-12"};function Ya({id:e,title:t,description:r,actions:o,variant:n="plain",spacing:a="none",withDivider:i=false,headingAs:s="h2",className:c,children:l}){let u=Oe__namespace.default.useId(),d=e?`${e}-heading`:u,m=t||r||o;return jsxRuntime.jsxs("section",{id:e,className:tailwindMerge.twMerge(eD[a],$M[n],c),"aria-labelledby":t?d:void 0,children:[m&&jsxRuntime.jsxs("header",{id:d,className:tailwindMerge.twMerge("flex flex-col sm:flex-row sm:items-start sm:justify-between gap-4",i&&"border-b border-border-default pb-4 mb-6",!i&&l&&"mb-6"),children:[jsxRuntime.jsxs("div",{className:"min-w-0 flex-1",children:[t&&jsxRuntime.jsx(Qt,{tag:s,size:"md",className:"text-text-primary",children:t}),r&&jsxRuntime.jsx("p",{className:"mt-2 text-base text-text-secondary",children:r})]}),o&&jsxRuntime.jsx("div",{className:"flex-shrink-0",children:o})]}),l&&jsxRuntime.jsx("div",{className:"",children:l})]})}Ya.displayName="Section";function cc({sections:e,activeSection:t,onSectionChange:r,orientation:o="responsive",className:n,scrollBehavior:a="smooth",stickyTop:i="1.5rem",heading:s,sectionIdPrefix:c="section-",filterSection:l,scrollContainerId:u}){let d=Oe__namespace.useRef(null),m=Oe__namespace.useRef(null),[p,g]=Oe__namespace.useState(e[0]?.id||null),f=t??p,h=Oe__namespace.useCallback(()=>u?document.getElementById(u):null,[u]),b=Oe__namespace.useCallback(w=>document.getElementById(`${c}${w}`)??document.getElementById(w),[c]);Oe__namespace.useEffect(()=>{let w=window.location.hash;if(!w)return;let N=w.slice(1),R=N.startsWith(c)?N.slice(c.length):N,k=e.find(T=>T.id===R);k&&requestAnimationFrame(()=>{let T=b(k.id);if(!T)return;let A=h();if(A){let M=A.getBoundingClientRect(),E=T.getBoundingClientRect(),P=A.scrollTop+(E.top-M.top);A.scrollTo({top:Math.max(0,P),behavior:"instant"});}else T.scrollIntoView({behavior:"instant",block:"start"});r?r(k.id):g(k.id);});},[]),Oe__namespace.useEffect(()=>{if(t!==void 0&&r)return;let w=T=>{if(!T)return false;let A=window.getComputedStyle(T);return A.display!=="none"&&A.visibility!=="hidden"&&A.opacity!=="0"},N=()=>{let T=w(d.current),A=w(m.current);if(!T&&!A)return null;let M=h(),E=new IntersectionObserver(P=>{P.forEach(O=>{if(O.isIntersecting){let G=O.target.id.replace(c,"");r?r(G):g(G);}});},{root:M??void 0,rootMargin:"-20% 0px -70% 0px",threshold:0});return e.forEach(P=>{let O=b(P.id);O&&E.observe(O);}),E},R=N(),k=()=>{R&&R.disconnect(),R=N();};return window.addEventListener("resize",k),()=>{R&&R.disconnect(),window.removeEventListener("resize",k);}},[e,c,t,r,o,h,b]);let x=Oe__namespace.useMemo(()=>l?e.filter(l):e,[e,l]),y=Oe__namespace.useCallback((w,N)=>{w.preventDefault();let R=b(N);if(R){let k=h();if(k){let T=k.getBoundingClientRect(),A=R.getBoundingClientRect(),M=k.scrollTop+(A.top-T.top),E=Math.max(0,k.scrollHeight-k.clientHeight);k.scrollTo({top:Math.max(0,Math.min(M,E)),behavior:a});}else {let T=R.getBoundingClientRect().top+window.scrollY,A=Math.max(0,document.documentElement.scrollHeight-window.innerHeight),M=Math.max(0,Math.min(T,A));window.scrollTo({top:M,behavior:a});}window.history.pushState&&window.history.pushState(null,"",`#${c}${N}`),r?r(N):g(N);}},[c,a,r,h,b]);if(x.length===0)return null;let v=o==="vertical"?"":o==="horizontal"?"hidden":"hidden lg:block",S=o==="horizontal"?"":o==="vertical"?"hidden":"lg:hidden";return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("nav",{ref:d,className:tailwindMerge.twMerge(v,n),"aria-label":"Section navigation",children:jsxRuntime.jsxs("div",{className:"space-y-1",style:{position:"sticky",top:i},children:[s?jsxRuntime.jsx("div",{className:"px-3 pb-2 text-label-sm font-semibold uppercase tracking-wide text-text-tertiary",children:s}):null,x.map(w=>{let N=f===w.id;return jsxRuntime.jsx("a",{href:`#${c}${w.id}`,onClick:R=>y(R,w.id),className:tailwindMerge.twMerge("block w-full text-left px-3 py-2 rounded-md text-sm transition-colors no-underline",N?"bg-background-muted text-text-primary font-semibold":"text-text-secondary hover:text-text-primary hover:bg-background-hover"),"aria-current":N?"page":void 0,children:jsxRuntime.jsxs("span",{className:"flex items-center justify-between gap-2",children:[jsxRuntime.jsx("span",{children:w.label}),w.count!==void 0&&jsxRuntime.jsx("span",{className:"text-xs tabular-nums text-text-secondary",children:w.count})]})},w.id)})]})}),jsxRuntime.jsx("nav",{ref:m,className:tailwindMerge.twMerge(S,"overflow-x-auto scrollbar-hide sticky top-0 z-10 py-4 -mt-4",n),"aria-label":"Section navigation",children:jsxRuntime.jsx("div",{className:"flex gap-2 min-w-max",children:x.map(w=>{let N=f===w.id;return jsxRuntime.jsx("a",{href:`#${c}${w.id}`,onClick:R=>y(R,w.id),className:tailwindMerge.twMerge("inline-block px-4 py-2 rounded-md text-sm whitespace-nowrap transition-colors no-underline",N?"bg-background-muted text-text-primary font-semibold":"text-text-secondary hover:text-text-primary hover:bg-background-hover"),"aria-current":N?"page":void 0,children:jsxRuntime.jsxs("span",{className:"flex items-center gap-2",children:[jsxRuntime.jsx("span",{children:w.label}),w.count!==void 0&&jsxRuntime.jsxs("span",{className:"text-xs tabular-nums text-text-secondary",children:["(",w.count,")"]})]})},w.id)})})})]})}function my(e){return "primary"}var dc=Oe__namespace.createContext({variant:"primary"});function iD({orientation:e,className:t=""}){return `flex flex-col w-full ${{horizontal:"",vertical:"flex-row"}[e]||""} ${t}`.trim()}function pc({variant:e="primary",...t}){let r=my();return jsxRuntime.jsx(dc.Provider,{value:{variant:r},children:jsxRuntime.jsx("div",{className:"w-full h-auto",children:jsxRuntime.jsx(reactAriaComponents.Tabs,{...t,className:reactAriaComponents.composeRenderProps(t.className,(o,n)=>iD({...n,className:o}))})})})}function sD({orientation:e,sticky:t=false,className:r=""}){let o="flex gap-10 relative after:absolute after:bottom-0 after:left-0 after:right-0 after:h-[2px] after:bg-border-muted",n={horizontal:"flex-row w-full flex-nowrap overflow-x-auto scrollbar-hide",vertical:"flex-col items-start"},a=t?"sticky top-0 bg-background-surface z-10":"";return `${o} ${n[e]||""} ${a} ${r}`.trim()}function mc({variant:e,sticky:t=false,...r}){let o=Oe__namespace.useContext(dc),n=my(e??o.variant);return jsxRuntime.jsx(dc.Provider,{value:{variant:n},children:jsxRuntime.jsx(reactAriaComponents.TabList,{...r,className:reactAriaComponents.composeRenderProps(r.className,(a,i)=>sD({...i,sticky:t,className:a||""}))})})}function lD({isSelected:e,isDisabled:t,variant:r,className:o=""}){let n="flex items-center cursor-default px-1 py-2 font-medium transition-all hover:cursor-pointer relative shrink-0 whitespace-nowrap",a=`${Je()} ${r==="primary"?"focus-visible:outline-action-primary":""}`.trim(),i="";return t?i="text-text-disabled forced-colors:text-[GrayText] cursor-not-allowed":e?i="text-action-primary border-b-2 border-action-primary z-10 forced-colors:bg-[Highlight]":i="text-text-disabled hover:text-text-secondary",`${n} ${a} ${i} ${o}`.trim()}function fc(e){let{variant:t}=Oe__namespace.useContext(dc);return jsxRuntime.jsx(reactAriaComponents.Tab,{...e,"data-testid":e.id?`tab-${e.id}`:void 0,className:reactAriaComponents.composeRenderProps(e.className,(r,o)=>lD({...o,className:r,isSelected:o.isSelected,variant:t}))})}function cD({className:e=""}){let t="block w-full mt-4 text-text-primary",r=Je();return `${t} ${r} ${e}`.trim()}function fy(e){return jsxRuntime.jsx(reactAriaComponents.TabPanel,{...e,className:reactAriaComponents.composeRenderProps(e.className,(t,r)=>cD({...r,className:t||""}))})}function Zn({children:e,maxWidth:t=1400,paddingXClass:r="px-4 md:px-6",paddingYClass:o="pt-8 pb-14 md:pt-12 md:pb-28",className:n}){return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge(`w-full ${r} ${o}`,n),style:{marginInline:"auto",maxWidth:t},children:e})}function dD({title:e,subtitle:t,breadcrumbs:r,breadcrumbsNode:o,media:n,actions:a,metadata:i,headingAs:s,sticky:c,stickyTop:l="0",zIndex:u=10,isLoading:d=false,className:m}){let p=c?"sticky bg-background-body":"",g=c?{top:l,zIndex:u}:{};return d?jsxRuntime.jsxs("header",{className:tailwindMerge.twMerge("mb-8 md:mb-12",p,m),style:g,"aria-labelledby":"page-title",children:[o||r?.length?jsxRuntime.jsx("div",{className:"mb-2 md:mb-4",children:jsxRuntime.jsx(J,{className:"h-4 w-32"})}):null,jsxRuntime.jsxs("div",{className:"flex flex-col md:flex-row md:items-start md:justify-between gap-4",children:[jsxRuntime.jsxs("div",{className:"min-w-0 flex-1",children:[jsxRuntime.jsx("div",{id:"page-title",children:jsxRuntime.jsx(J,{className:"h-8 w-64"})}),t?jsxRuntime.jsx(J,{className:"mt-2 h-5 w-48"}):null,i?jsxRuntime.jsx(J,{className:"mt-2 h-4 w-40"}):null,a?.length?jsxRuntime.jsx("div",{className:"mt-6 flex flex-col items-stretch gap-3 md:hidden",children:a.map((f,h)=>jsxRuntime.jsx(J,{className:"h-9 w-full"},h))}):null]}),a?.length?jsxRuntime.jsx("div",{className:"hidden md:flex md:items-start gap-2 shrink-0",children:a.map((f,h)=>jsxRuntime.jsx(J,{className:"h-9 w-24"},h))}):null]}),n?jsxRuntime.jsx("div",{className:"mt-4 md:mt-6",children:jsxRuntime.jsx(J,{className:"h-64 w-full"})}):null]}):jsxRuntime.jsxs("header",{className:tailwindMerge.twMerge("mb-8 md:mb-12",p,m),style:g,"aria-labelledby":"page-title",children:[o?jsxRuntime.jsx("div",{className:"mb-2 md:mb-4",children:o}):r?.length?jsxRuntime.jsx("div",{className:"mb-2 md:mb-4",children:jsxRuntime.jsx(Ls,{children:r.map((f,h)=>{let{label:b,...x}=f;return jsxRuntime.jsx(As,{...x,children:b},`${b}-${h}`)})})}):null,jsxRuntime.jsxs("div",{className:"flex flex-col md:flex-row md:items-start md:justify-between gap-4",children:[jsxRuntime.jsxs("div",{className:"min-w-0 flex-1",children:[jsxRuntime.jsx("div",{id:"page-title",children:jsxRuntime.jsx(Qt,{tag:s||"h1",size:"xl",children:e})}),t?jsxRuntime.jsx("p",{className:"mt-2 text-base md:text-lg text-text-secondary",children:t}):null,i?jsxRuntime.jsx("div",{className:"mt-2 text-sm text-text-secondary",children:i}):null,a?.length?jsxRuntime.jsx("div",{className:"mt-6 flex flex-col items-stretch gap-3 md:hidden",children:a.map((f,h)=>jsxRuntime.jsx(Oe__namespace.default.Fragment,{children:f},h))}):null]}),a?.length?jsxRuntime.jsx("div",{className:"hidden md:flex md:items-start gap-2 shrink-0",children:a.map((f,h)=>jsxRuntime.jsx(Oe__namespace.default.Fragment,{children:f},h))}):null]}),n?jsxRuntime.jsx("div",{className:"mt-4 md:mt-6",children:n}):null]})}function uD({tabs:e,value:t,defaultValue:r,onChange:o,className:n,children:a}){let i=s=>{o?.(s);};return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("mb-3 md:mb-4 border-b-2 border-border-muted",n),children:jsxRuntime.jsxs(pc,{selectedKey:t,defaultSelectedKey:r||e[0]?.id,onSelectionChange:i,children:[jsxRuntime.jsx(mc,{className:"after:bg-transparent",children:e.map(s=>jsxRuntime.jsx(fc,{id:s.id,isDisabled:s.disabled,children:s.label},s.id))}),a]})})}function pD({children:e,className:t,withSectionNav:r,navWidth:o="240px",gap:n="2rem",activeSection:a,onSectionChange:i,scrollBehavior:s,sectionIdPrefix:c="section-",scrollContainerId:l,navHeading:u,navStickyTop:d}){return r?jsxRuntime.jsx(fD,{position:r,navWidth:o,gap:n,activeSection:a,onSectionChange:i,scrollBehavior:s,sectionIdPrefix:c,scrollContainerId:l,navHeading:u,navStickyTop:d,className:t,children:e}):jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("w-full space-y-8 md:space-y-12",t),children:e})}function mD({children:e,sticky:t=true,className:r}){return jsxRuntime.jsx("aside",{className:tailwindMerge.twMerge(t?"lg:sticky lg:top-20":"",r),children:e})}function fD({activeSection:e,onSectionChange:t,position:r,navWidth:o,gap:n,children:a,className:i,scrollBehavior:s,sectionIdPrefix:c,scrollContainerId:l,navHeading:u,navStickyTop:d}){let m=Oe__namespace.default.useMemo(()=>{let y=[];return Oe__namespace.default.Children.forEach(a,v=>{if(Oe__namespace.default.isValidElement(v)&&(v.type===Ya||typeof v.type=="object"&&v.type?.displayName==="Section"||typeof v.type=="function"&&v.type?.displayName==="Section")){let S=v.props;S.id?y.push({id:S.id,label:S.navLabel||(typeof S.title=="string"?S.title:`Section ${S.id}`)}):process.env.NODE_ENV==="development"&&console.warn("Section component used within PageLayout.Content with withSectionNav must have an id prop");}}),y},[a]),p=Oe__namespace.default.useMemo(()=>{let y=Oe__namespace.default.Children.map(a,v=>{if(Oe__namespace.default.isValidElement(v)&&(v.type===Ya||typeof v.type=="object"&&v.type?.displayName==="Section"||typeof v.type=="function"&&v.type?.displayName==="Section")){let S=v.props;if(S.id)return Oe__namespace.default.cloneElement(v,{...S,id:`${c}${S.id}`})}return v});return jsxRuntime.jsx("div",{className:"space-y-8 md:space-y-12",children:y})},[a,c]),g=(y,v)=>jsxRuntime.jsx(cc,{sections:m,activeSection:e,onSectionChange:t,orientation:y,scrollBehavior:s,sectionIdPrefix:c,scrollContainerId:l,heading:u,className:v});if(r==="above")return jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("space-y-4",i),children:[jsxRuntime.jsx("div",{className:"sticky top-0 z-10 bg-background-body",children:g("horizontal")}),p]});let f=r==="left"?"var(--nav-width) 1fr":"1fr var(--nav-width)",h=d?"":"top-20",b=d?{top:d}:void 0,x=tailwindMerge.twMerge("hidden lg:block sticky self-start",h);return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("div",{className:"lg:hidden sticky top-0 z-10 mt-3 mb-4 bg-background-body border-b border-border-default shadow-sm",children:g("horizontal","py-3 mt-0")}),jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("lg:grid",i),style:{gridTemplateColumns:f,gap:n,"--nav-width":o},children:[r==="left"&&jsxRuntime.jsx("nav",{className:x,style:b,children:g("vertical")}),p,r==="right"&&jsxRuntime.jsx("nav",{className:x,style:b,children:g("vertical")})]})]})}function gD({children:e,className:t}){return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("flex-1 overflow-auto min-h-0",t),children:e})}Zn.Header=dD;Zn.Tabs=uD;Zn.Content=pD;Zn.Aside=mD;Zn.ScrollableContent=gD;function xD(e){return typeof e=="object"&&e!==null&&"features"in e&&Array.isArray(e.features)&&"type"in e&&typeof e.type=="string"}var hD=process.env.NEXT_PUBLIC_MAPBOX_ACCESS_TOKEN||"";function xy({label:e,selectedKey:t,defaultSelectedKey:r,onSelectionChange:o,placeholder:n="Enter a location...",errorMessage:a,description:i,size:s="md",tooltip:c,isRequired:l,isDisabled:u,showErrors:d=true,autoFocus:m=false,onSelect:p,searchTypes:g=["place","address"],defaultFilter:f,validationResult:h,countryRestrictions:b,proximity:x="ip",hideCountry:y=false,showIcon:v=true,useMobileTray:S=true,className:w}){let N=Oe.useRef(new WeakMap),R=Oe.useRef([]),k={requestType:"REST",method:"GET",url:"https://api.mapbox.com/geocoding/v5/mapbox.places/{q}.json",extraParams:{access_token:hD,types:g.join(","),limit:"5",...b?.length?{country:b.join(",").toLowerCase()}:{},...x?{proximity:x==="ip"?"ip":x.join(",")}:{}},shouldLoad:M=>M.length>0,transformResponse:M=>{if(!xD(M))return [];let E=M.features.map(P=>{let O={id:P.id,name:P.place_name};return N.current.set(O,{type:P.place_type[0],center:P.center,context:P.context,address:P.address,text:P.text,properties:P.properties}),O});return E.length>0&&(R.current=E),E}},T=M=>{let E=N.current.get(M),P=M.name.split(", "),O=P[0],G=P.slice(1);y&&G.length>0&&(G=G.slice(0,-1));let K=G.join(", ");return jsxRuntime.jsxs("div",{className:"flex items-center gap-3 py-0.5",children:[v&&jsxRuntime.jsx(B,{name:E?.type==="address"?"MapPin":E?.type==="place"?"Buildings":E?.type==="region"?"MapPinArea":E?.type==="country"?"Flag":"Circle",className:"h-5 w-5 flex-shrink-0 text-text-secondary"}),jsxRuntime.jsxs("div",{className:"flex min-w-0 flex-col",children:[jsxRuntime.jsx("span",{className:"truncate font-medium text-text-primary",children:O}),K&&jsxRuntime.jsx("span",{className:"truncate text-sm text-text-secondary",children:K})]})]})},A=M=>M?jsxRuntime.jsx(B,{name:"CircleNotch",className:"h-4 w-4 animate-spin text-text-secondary"}):jsxRuntime.jsx(B,{name:"MagnifyingGlass",className:"h-4 w-4 text-text-secondary"});return jsxRuntime.jsx(Ms,{"data-testid":"autocomplete","data-config":JSON.stringify({types:g.join(","),country:b?.join(",")?.toLowerCase(),proximity:x==="ip"?"ip":x?.join(",")}),label:e||void 0,selectedKey:t,defaultSelectedKey:r,onSelectionChange:M=>{if(o?.(M),M){let P=R.current.find(O=>O.id===M);if(P){let O=N.current.get(P);O&&p({id:P.id,place_name:P.name,place_type:[O.type],center:O.center,context:O.context,address:O.address,text:O.text,properties:O.properties});}}},requestConfig:k,placeholder:n,errorMessage:a,description:i,size:s,tooltip:c,isRequired:l,isDisabled:u,showErrors:d,autoFocus:m,renderItem:T,renderLeftIcon:A,defaultFilter:f,validationResult:h,hideChevron:true,useMobileTray:S,className:w})}function yy({label:e,rightLabel:t,progressWidth:r=64,hideLabels:o=false,...n}){return jsxRuntime.jsx(reactAriaComponents.ProgressBar,{...n,className:ke(n.className,"flex flex-col gap-1"),children:({percentage:a,valueText:i,isIndeterminate:s})=>jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[!o&&jsxRuntime.jsxs("div",{className:"flex items-center justify-between gap-2",children:[jsxRuntime.jsx("span",{className:"text-sm text-text-primary",children:e}),jsxRuntime.jsx("span",{className:"text-sm text-text-primary",children:t||i})]}),jsxRuntime.jsx("div",{className:`relative h-2 w-${r} overflow-hidden rounded-full bg-background-muted outline-none`,children:jsxRuntime.jsx("div",{className:`absolute top-0 h-full rounded-full bg-action-default forced-colors:bg-[Highlight] ${s?"left-full duration-1000 ease-out animate-in slide-out-to-right-full repeat-infinite [--tw-enter-translate-x:calc(-16rem-100%)]":"left-0"}`,style:{width:(s?40:a)+"%"}})})]})})}function vy({as:e="div",size:t="md",tone:r="editorial",className:o="",children:n,...a}){let i=t==="md"?"":`prose-${t}`,s=r==="editorial"?"":`prose-${r}`;return jsxRuntime.jsx(e,{className:jt("prose",i,s,o),...a,children:n})}function kD(e="2"){return {1:"p-2 text-xs",2:"p-3 text-sm",3:"p-4 text-base"}[e]}function TD(e){return e?"border-action-primary text-action-primary":"border-border text-text-primary"}function PD(){return "opacity-50 cursor-not-allowed"}function Cy({value:e,isDisabled:t,className:r,children:o,size:n="2",variant:a="primary"}){return jsxRuntime.jsx(reactAriaComponents.Radio,{value:e,isDisabled:t,className:ke(r,"relative flex items-center justify-center cursor-pointer transition-all duration-200 focus:outline-none focus:ring-2 focus:ring-action-primary focus:ring-offset-2 rounded-lg min-h-[44px]"),children:({isSelected:s,isDisabled:c})=>jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("flex items-center justify-center w-full h-full transition-all duration-200 rounded-lg border-2 bg-background-surface",!(t||c)&&!s&&"hover:bg-background-hover hover:border-border-hover",kD(n),TD(s),(t||c)&&PD(),r),children:o})})}function Sy({value:e,defaultValue:t,onChange:r,isDisabled:o,isReadOnly:n,isRequired:a,className:i,children:s,size:c="2",variant:l="primary",columns:u="repeat(auto-fit, minmax(160px, 1fr))",gap:d="1"}){return jsxRuntime.jsx(reactAriaComponents.RadioGroup,{value:e,defaultValue:t,onChange:r,isDisabled:o,isReadOnly:n,isRequired:a,className:ke(i,"grid"),style:{gridTemplateColumns:/^\d+$/.test(String(u))?`repeat(${u}, minmax(0, 1fr))`:u,gap:d==="1"?"0.25rem":d==="2"?"0.5rem":d==="3"?"0.75rem":d==="4"?"1rem":typeof d=="number"?`${d}px`:d},children:Oe__namespace.default.Children.map(s,m=>Oe__namespace.default.isValidElement(m)?Oe__namespace.default.cloneElement(m,{size:c,variant:l}):m)})}function LD(e){return "primary"}var wy=Oe.createContext({variant:"primary"});function Ny(e){let{variant:t="primary",...r}=e,o=LD();return jsxRuntime.jsx(wy.Provider,{value:{variant:o},children:jsxRuntime.jsxs(reactAriaComponents.RadioGroup,{...r,className:ke(e.className,"group flex flex-col gap-2"),children:[jsxRuntime.jsx(ze,{children:e.label}),jsxRuntime.jsx("div",{className:`flex ${r.orientation==="horizontal"?"flex-row gap-4":"flex-col gap-2"}`,children:e.children}),e.description&&jsxRuntime.jsx(Te,{children:e.description}),jsxRuntime.jsx(be,{children:typeof e.errorMessage=="function"&&e.validationResult?e.errorMessage(e.validationResult):typeof e.errorMessage=="string"?e.errorMessage:null})]})})}function AD({isSelected:e,isInvalid:t,isDisabled:r}){let n=[Je(),"focus-visible:outline-action-primary","w-5 h-5 rounded-full border-2 bg-background-surface transition-all"];return r?n.push("border-border-muted forced-colors:!border-[GrayText]"):t?n.push("border-feedback-error-border group-pressed:border-feedback-error-border dark:group-pressed:border-feedback-error-border forced-colors:!border-[Mark]"):e?n.push("border-[7px] border-action-primary forced-colors:!border-[Highlight] group-pressed:border-action-primary-hover dark:group-pressed:border-action-primary-hover"):n.push("border-border-default group-pressed:border-border-focus dark:group-pressed:border-border-focus"),n.join(" ")}function ky(e){return Oe.useContext(wy),jsxRuntime.jsx(reactAriaComponents.Radio,{...e,className:ke(e.className,"relative group flex items-center gap-2 text-sm text-text-primary transition disabled:text-text-secondary dark:text-text-primary dark:disabled:text-text-secondary forced-colors:disabled:text-[GrayText]"),children:t=>jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("div",{className:AD(t)}),e.children]})})}var UD={sm:{toolbar:"p-1.5",contentWrapper:"min-h-[100px]",contentPadding:"p-3",placeholderPos:"left-3 top-3",prose:"prose-xs",h1:"[&_.ProseMirror_h1]:mb-2 [&_.ProseMirror_h1]:text-base [&_.ProseMirror_h1]:font-bold",h2:"[&_.ProseMirror_h2]:mb-1.5 [&_.ProseMirror_h2]:text-sm [&_.ProseMirror_h2]:font-semibold",p:"[&_.ProseMirror_p]:mb-1",list:"[&_.ProseMirror_ul]:mb-1 [&_.ProseMirror_ul]:ml-4 [&_.ProseMirror_ol]:mb-1 [&_.ProseMirror_ol]:ml-4",li:"[&_.ProseMirror_li]:mb-0.5",placeholderText:"text-xs"},md:{toolbar:"p-2",contentWrapper:"min-h-[200px]",contentPadding:"p-4",placeholderPos:"left-4 top-4",prose:"prose-sm",h1:"[&_.ProseMirror_h1]:mb-4 [&_.ProseMirror_h1]:text-2xl [&_.ProseMirror_h1]:font-bold",h2:"[&_.ProseMirror_h2]:mb-3 [&_.ProseMirror_h2]:text-xl [&_.ProseMirror_h2]:font-semibold",p:"[&_.ProseMirror_p]:mb-2",list:"[&_.ProseMirror_ul]:mb-2 [&_.ProseMirror_ul]:ml-6 [&_.ProseMirror_ol]:mb-2 [&_.ProseMirror_ol]:ml-6",li:"[&_.ProseMirror_li]:mb-1",placeholderText:"text-sm"},lg:{toolbar:"p-2.5",contentWrapper:"min-h-[250px]",contentPadding:"p-5",placeholderPos:"left-5 top-5",prose:"prose-base",h1:"[&_.ProseMirror_h1]:mb-5 [&_.ProseMirror_h1]:text-3xl [&_.ProseMirror_h1]:font-bold",h2:"[&_.ProseMirror_h2]:mb-4 [&_.ProseMirror_h2]:text-2xl [&_.ProseMirror_h2]:font-semibold",p:"[&_.ProseMirror_p]:mb-3",list:"[&_.ProseMirror_ul]:mb-3 [&_.ProseMirror_ul]:ml-6 [&_.ProseMirror_ol]:mb-3 [&_.ProseMirror_ol]:ml-6",li:"[&_.ProseMirror_li]:mb-1.5",placeholderText:"text-base"},xl:{toolbar:"p-3",contentWrapper:"min-h-[300px]",contentPadding:"p-6",placeholderPos:"left-6 top-6",prose:"prose-lg",h1:"[&_.ProseMirror_h1]:mb-6 [&_.ProseMirror_h1]:text-4xl [&_.ProseMirror_h1]:font-bold",h2:"[&_.ProseMirror_h2]:mb-5 [&_.ProseMirror_h2]:text-3xl [&_.ProseMirror_h2]:font-semibold",p:"[&_.ProseMirror_p]:mb-3",list:"[&_.ProseMirror_ul]:mb-3 [&_.ProseMirror_ul]:ml-8 [&_.ProseMirror_ol]:mb-3 [&_.ProseMirror_ol]:ml-8",li:"[&_.ProseMirror_li]:mb-2",placeholderText:"text-lg"}},ja=({isActive:e=false,onPress:t,children:r})=>jsxRuntime.jsx(Z,{variant:e?"secondary":"ghost",size:"sm",onPress:t,className:"p-1",children:r});function KD({initialUrl:e,isOpen:t,onClose:r,onSubmit:o}){let[n,a]=Oe.useState(e);return Oe__namespace.default.useEffect(()=>{a(e);},[e]),jsxRuntime.jsx(cr,{isDismissable:true,isOpen:t,onOpenChange:s=>!s&&r(),children:jsxRuntime.jsx(reactAriaComponents.Modal,{className:"flex items-center justify-center p-4 outline-none focus:outline-none focus-visible:outline-none ring-0 focus:ring-0 focus-visible:ring-0",children:jsxRuntime.jsx(reactAriaComponents.Dialog,{className:"relative bg-background-surface rounded-lg shadow-xl max-w-md w-full",children:jsxRuntime.jsxs("form",{onSubmit:s=>{s.preventDefault(),o(n),r();},children:[jsxRuntime.jsx(Ht,{title:"Insert Link",onClose:r}),jsxRuntime.jsx("div",{className:"p-6",children:jsxRuntime.jsx(Lr,{label:"URL",type:"url",value:n,onChange:a,autoFocus:true,className:"w-full"})}),jsxRuntime.jsxs("div",{className:"flex justify-end gap-2 border-t border-border-muted p-4",children:[jsxRuntime.jsx(Z,{variant:"secondary",onPress:r,children:"Cancel"}),jsxRuntime.jsx(Z,{type:"submit",children:"Save"})]})]})})})})}function Ry({initialContent:e="",onChange:t,className:r,isDisabled:o=false,placeholder:n="Start typing...",id:a,size:i="md",headingLevels:s=[1,2]}){let c=UD[i],[l,u]=Oe.useState(false),d=react.useEditor({immediatelyRender:false,extensions:[OD__default.default.configure({heading:s.length>0?{levels:s}:false}),FD__default.default.configure({openOnClick:false,HTMLAttributes:{class:"text-text-link-default hover:text-text-link-hover underline decoration-text-link-default/30 hover:decoration-text-link-hover cursor-pointer"}})],content:e,editable:!o,onUpdate:({editor:g})=>{t?.(g.getHTML());},editorProps:{attributes:{class:tailwindMerge.twMerge(`prose ${c.prose} max-w-none`,"focus:outline-none","[&>*:first-child]:mt-0 [&>*:last-child]:mb-0")}}}),m=()=>{u(true);},p=g=>{g===""?d?.chain().focus().unsetLink().run():d?.chain().focus().setLink({href:g}).run();};return d?jsxRuntime.jsxs("div",{id:a,"data-richtexteditor":true,className:tailwindMerge.twMerge("flex flex-col rounded-md border border-border-input bg-background-input","outline-none focus-within:outline-none focus-within:border-border-input focus-within:ring-0 focus-within:shadow-none",o&&"opacity-50",r),style:{outline:"none"},children:[!o&&d&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsxs(menus.BubbleMenu,{editor:d,shouldShow:({editor:g})=>g.isActive("link")&&!l,className:"flex items-center gap-1 rounded-md border border-border-input bg-background-surface p-1 shadow-md",children:[jsxRuntime.jsxs(Z,{variant:"ghost",size:"sm",className:"h-8 px-2",onPress:()=>{let g=d.getAttributes("link").href;g&&window.open(g,"_blank","noopener,noreferrer");},children:[jsxRuntime.jsx(B,{name:"ArrowSquareOut",className:"mr-1 h-4 w-4"}),"Open"]}),jsxRuntime.jsxs(Z,{variant:"ghost",size:"sm",className:"h-8 px-2",onPress:m,children:[jsxRuntime.jsx(B,{name:"PencilSimple",className:"mr-1 h-4 w-4"}),"Edit"]}),jsxRuntime.jsxs(Z,{variant:"ghost",size:"sm",className:"h-8 px-2",onPress:()=>d.chain().focus().unsetLink().run(),children:[jsxRuntime.jsx(B,{name:"X",className:"mr-1 h-4 w-4"}),"Remove"]})]}),jsxRuntime.jsx(KD,{isOpen:l,onClose:()=>u(false),onSubmit:p,initialUrl:d.getAttributes("link").href||""})]}),jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("flex items-center gap-1 border-b border-border-input",c.toolbar),children:[s.map(g=>jsxRuntime.jsx(ja,{isActive:d.isActive("heading",{level:g}),onPress:()=>d.chain().focus().toggleHeading({level:g}).run(),children:jsxRuntime.jsxs("span",{className:"text-xs font-bold",children:["H",g]})},g)),jsxRuntime.jsx(ja,{isActive:d.isActive("bold"),onPress:()=>d.chain().focus().toggleBold().run(),children:jsxRuntime.jsx("span",{className:"text-xs font-bold",children:"B"})}),jsxRuntime.jsx(ja,{isActive:d.isActive("italic"),onPress:()=>d.chain().focus().toggleItalic().run(),children:jsxRuntime.jsx("span",{className:"text-xs italic",children:"I"})}),jsxRuntime.jsx("div",{className:"mx-1 h-4 w-px bg-border-muted"}),jsxRuntime.jsx(ja,{isActive:d.isActive("bulletList"),onPress:()=>d.chain().focus().toggleBulletList().run(),children:jsxRuntime.jsx(B,{name:"ListBullets",className:"h-4 w-4"})}),jsxRuntime.jsx(ja,{isActive:d.isActive("orderedList"),onPress:()=>d.chain().focus().toggleOrderedList().run(),children:jsxRuntime.jsx(B,{name:"ListNumbers",className:"h-4 w-4"})}),jsxRuntime.jsx("div",{className:"mx-1 h-4 w-px bg-border-muted"}),jsxRuntime.jsx(ja,{isActive:d.isActive("link"),onPress:m,children:jsxRuntime.jsx(B,{name:"PaperclipHorizontal",className:"h-4 w-4"})})]}),jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("relative w-full outline-none focus:outline-none",c.contentWrapper),children:[jsxRuntime.jsx(react.EditorContent,{editor:d,className:tailwindMerge.twMerge("w-full outline-none focus:outline-none",c.contentPadding,"[&_.ProseMirror]:min-h-[inherit]","[&_.ProseMirror]:outline-none [&_.ProseMirror]:focus:outline-none",c.h1,c.h2,c.p,"[&_.ProseMirror_ul]:list-disc","[&_.ProseMirror_ol]:list-decimal",c.list,c.li,"[&_.ProseMirror_blockquote]:border-l-4 [&_.ProseMirror_blockquote]:border-border-muted [&_.ProseMirror_blockquote]:pl-4 [&_.ProseMirror_blockquote]:italic","[&_.ProseMirror_code]:rounded [&_.ProseMirror_code]:bg-background-muted [&_.ProseMirror_code]:px-1 [&_.ProseMirror_code]:py-0.5 [&_.ProseMirror_code]:font-mono [&_.ProseMirror_code]:text-sm","[&_.ProseMirror_pre]:rounded-md [&_.ProseMirror_pre]:bg-background-muted [&_.ProseMirror_pre]:p-3 [&_.ProseMirror_pre]:font-mono [&_.ProseMirror_pre]:text-sm","[&_.ProseMirror_hr]:border-border-muted",o&&"pointer-events-none")}),d.isEmpty&&!o&&jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("pointer-events-none absolute text-text-secondary",c.placeholderPos,c.placeholderText),children:n})]})]}):null}function My({streetAddress:e,city:t,state:r,postalCode:o,longitude:n,latitude:a,href:i,LinkComponent:s,variant:c="outlined",layout:l="stacked",showMap:u=true,mapHeight:d=200,mapboxAccessToken:m,isLoading:p=false,className:g,contentClassName:f,showMapExpandToggle:h=false,expandedMapTitle:b="Explore map",expandedMapAddressLabel:x,piiEntity:y}){let v=[];t&&v.push(t),r&&o?v.push(`${r} ${o}`):r?v.push(r):o&&v.push(o);let S=v.join(", "),w=x||[e,S].filter(Boolean).join(", "),N=u&&n!==void 0&&a!==void 0,R=({children:T,className:A})=>i?s?jsxRuntime.jsx(s,{href:i,className:A,children:T}):jsxRuntime.jsx(Ze,{href:i,variant:"unstyled",className:tailwindMerge.twMerge("hover:underline",A),asButton:false,children:T}):jsxRuntime.jsx("span",{className:A,children:T});if(p){let T=l==="row";return jsxRuntime.jsxs(Ue,{variant:c,className:tailwindMerge.twMerge(T?"flex flex-col md:flex-row":"flex flex-col",g),children:[N&&jsxRuntime.jsx(Ue.Media,{aspectRatio:"auto",className:tailwindMerge.twMerge(T&&"md:order-2 md:flex-[2] md:min-w-0"),children:jsxRuntime.jsx(J,{width:"100%",height:d})}),jsxRuntime.jsxs(Ue.Content,{className:tailwindMerge.twMerge("space-y-2 px-4 md:px-6",T&&"md:order-1 md:flex-[1] md:flex-shrink-0 md:flex md:flex-col md:justify-center"),children:[jsxRuntime.jsx(J,{width:"100%",height:16}),jsxRuntime.jsx(J,{width:"80%",height:16})]})]})}let k=l==="row";return jsxRuntime.jsxs(Ue,{variant:c,className:tailwindMerge.twMerge("group/card relative",i&&"cursor-pointer",k?"flex flex-col md:flex-row":"flex flex-col",g),children:[i&&jsxRuntime.jsx(R,{className:"after:absolute after:inset-0 after:z-10",children:jsxRuntime.jsx("span",{className:"sr-only",children:e})}),N&&jsxRuntime.jsx(Ue.Media,{aspectRatio:"auto",className:tailwindMerge.twMerge(k&&"md:order-2 md:flex-[2] md:min-w-0"),children:jsxRuntime.jsx(Ka,{height:d,initialViewState:{longitude:n,latitude:a,zoom:14},showMarker:true,mapboxAccessToken:m,showExpandToggle:h,expandedMapTitle:b,expandedMapAddressLabel:w})}),jsxRuntime.jsx(Ue.Content,{className:tailwindMerge.twMerge("px-4 md:px-6",k&&"md:order-1 md:flex-[1] md:flex-shrink-0 md:flex md:flex-col md:justify-center",f),children:jsxRuntime.jsxs("div",{className:"flex flex-col gap-1 min-w-0 text-left",children:[jsxRuntime.jsx("span",{className:"text-xl font-semibold leading-tight text-text-primary group-hover/card:text-text-brand transition-colors","data-pii-type":y?"address":void 0,"data-pii-entity":y,children:e}),S&&jsxRuntime.jsx("span",{className:"text-lg font-normal leading-relaxed text-text-secondary","data-pii-type":y?"city-state-zip":void 0,"data-pii-entity":y,children:S})]})})]})}function Ey({site:e,contact:t,LinkComponent:r,variant:o="outlined",layout:n="stacked",showMap:a=true,mapHeight:i=200,mapboxAccessToken:s,showEmail:c=true,showPhone:l=false,isLoading:u=false,className:d,contentClassName:m,fullHeight:p=false,showMapExpandToggle:g=false,expandedMapTitle:f="Explore map",expandedMapAddressLabel:h}){let b=[];e.city&&b.push(e.city),e.state&&e.postalCode?b.push(`${e.state} ${e.postalCode}`):e.state?b.push(e.state):e.postalCode&&b.push(e.postalCode);let x=b.join(", "),y=h||[e.streetAddress,x].filter(Boolean).join(", "),v=a&&e.longitude!==void 0&&e.latitude!==void 0,S=t?`${t.firstName} ${t.lastName}`.trim():"",w=({children:R,href:k,className:T})=>k?r?jsxRuntime.jsx(r,{href:k,className:T,children:R}):jsxRuntime.jsx(Ze,{href:k,variant:"unstyled",className:tailwindMerge.twMerge("hover:underline",T),asButton:false,children:R}):jsxRuntime.jsx("span",{className:T,children:R});if(u){let R=n==="row";return jsxRuntime.jsxs(Ue,{variant:o,className:tailwindMerge.twMerge(p&&"h-full",R?"flex flex-col md:flex-row":"flex flex-col",d),children:[v&&jsxRuntime.jsx(Ue.Media,{aspectRatio:"auto",className:tailwindMerge.twMerge(R&&"md:order-2 md:flex-[2] md:min-w-0",p&&"flex-1"),children:jsxRuntime.jsx(J,{width:"100%",height:p?"100%":i})}),jsxRuntime.jsxs(Ue.Content,{className:tailwindMerge.twMerge("space-y-4 px-4 py-4",R&&"md:order-1 md:flex-[1] md:flex-shrink-0 md:flex md:flex-col md:justify-center"),children:[jsxRuntime.jsxs("div",{className:"space-y-2",children:[jsxRuntime.jsx(J,{width:"100%",height:16}),jsxRuntime.jsx(J,{width:"80%",height:16})]}),t&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("div",{className:"border-t border-border-default"}),jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[jsxRuntime.jsx(J,{width:40,height:40,className:"rounded flex-shrink-0"}),jsxRuntime.jsxs("div",{className:"flex-1 space-y-1",children:[jsxRuntime.jsx(J,{width:"50%",height:14}),jsxRuntime.jsx(J,{width:"100%",height:12})]})]})]})]})]})}let N=n==="row";return jsxRuntime.jsxs(Ue,{variant:o,className:tailwindMerge.twMerge("group/card relative",e.href&&"cursor-pointer",p&&"h-full",N?"flex flex-col md:flex-row":"flex flex-col",d),children:[e.href&&jsxRuntime.jsx(w,{href:e.href,className:"after:absolute after:inset-0 after:z-10",children:jsxRuntime.jsx("span",{className:"sr-only",children:e.streetAddress})}),v&&jsxRuntime.jsx(Ue.Media,{aspectRatio:"auto",className:tailwindMerge.twMerge(N&&"md:order-2 md:flex-[2] md:min-w-0",p&&"flex-1"),children:jsxRuntime.jsx(Ka,{height:p?"100%":i,initialViewState:{longitude:e.longitude,latitude:e.latitude,zoom:14},showMarker:true,mapboxAccessToken:s,showExpandToggle:g,expandedMapTitle:f,expandedMapAddressLabel:y})}),jsxRuntime.jsxs(Ue.Content,{className:tailwindMerge.twMerge("space-y-4 px-4 py-4",N&&"md:order-1 md:flex-[1] md:flex-shrink-0 md:flex md:flex-col md:justify-center",m),children:[jsxRuntime.jsxs("div",{className:"flex flex-col gap-1 min-w-0 text-left",children:[jsxRuntime.jsx("span",{className:"text-xl font-semibold leading-tight text-text-primary group-hover/card:text-text-brand transition-colors","data-pii-type":e.piiEntity?"address":void 0,"data-pii-entity":e.piiEntity,children:e.streetAddress}),x&&jsxRuntime.jsx("span",{className:"text-lg font-normal leading-relaxed text-text-secondary","data-pii-type":e.piiEntity?"city-state-zip":void 0,"data-pii-entity":e.piiEntity,children:x})]}),t&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("div",{className:"border-t border-border-default"}),jsxRuntime.jsxs("div",{className:"flex items-center gap-2 relative",children:[jsxRuntime.jsx(xo,{firstName:t.firstName,lastName:t.lastName,src:t.avatarUrl,size:"md",variant:"user",shape:"square",className:"flex-shrink-0",piiEntity:t.piiEntity}),jsxRuntime.jsxs("div",{className:"flex-1 min-w-0",children:[t.href?jsxRuntime.jsx(w,{href:t.href,className:"text-sm font-semibold leading-tight text-text-primary block mb-0.5 hover:text-text-brand transition-colors relative z-20",children:jsxRuntime.jsx("span",{"data-pii-type":t.piiEntity?"full-name":void 0,"data-pii-entity":t.piiEntity,children:S})}):jsxRuntime.jsx("span",{className:"text-sm font-semibold leading-tight text-text-primary block mb-0.5","data-pii-type":t.piiEntity?"full-name":void 0,"data-pii-entity":t.piiEntity,children:S}),jsxRuntime.jsxs("div",{className:"space-y-0.5",children:[c&&t.email&&jsxRuntime.jsxs("div",{className:"flex items-center gap-1.5 text-text-primary",children:[jsxRuntime.jsx(B,{name:"Envelope",size:12,className:"text-text-secondary flex-shrink-0"}),jsxRuntime.jsx(Ze,{href:`mailto:${t.email}`,variant:"unstyled",className:"text-xs leading-tight truncate text-text-primary relative z-20","data-pii-type":t.piiEntity?"email":void 0,"data-pii-entity":t.piiEntity,children:t.email})]}),l&&t.phone&&jsxRuntime.jsxs("div",{className:"flex items-center gap-1.5 text-text-primary",children:[jsxRuntime.jsx(B,{name:"Phone",size:12,className:"text-text-secondary flex-shrink-0"}),jsxRuntime.jsx(Ze,{href:`tel:${t.phone}`,variant:"unstyled",className:"text-xs leading-tight truncate text-text-primary relative z-20","data-pii-type":t.piiEntity?"phone":void 0,"data-pii-entity":t.piiEntity,children:da(t.phone)})]})]})]})]})]})]})]})}function Ly({label:e,description:t,tooltip:r,errorMessage:o,size:n="md",className:a,value:i,defaultValue:s=0,onChange:c,min:l=0,max:u=100,step:d=1,disabled:m,showValue:p=true}){let g=typeof i=="number",[f,h]=Oe__namespace.default.useState(s),b=g?i:f,x=Math.min(Math.max(b,l),u),y=Math.max(u-l,1e-5),v=(x-l)/y*100;return jsxRuntime.jsxs("div",{className:ke(a,"group flex w-full flex-col gap-1"),children:[e&&jsxRuntime.jsx(ze,{size:n,tooltip:r,className:"mb-1",children:e}),jsxRuntime.jsxs("div",{className:"flex items-center gap-3",children:[jsxRuntime.jsxs("div",{className:"relative w-full select-none",children:[jsxRuntime.jsx("div",{className:"h-1.5 w-full rounded-full bg-background-muted"}),jsxRuntime.jsx("div",{className:"pointer-events-none absolute left-0 top-1/2 h-1.5 -translate-y-1/2 rounded-full bg-action-brand",style:{width:`${v}%`},"aria-hidden":true}),jsxRuntime.jsx("input",{type:"range",min:l,max:u,step:d,value:b,disabled:m,"aria-invalid":!!o,onChange:S=>{let w=Number(S.currentTarget.value);g||h(w),c?.(w);},className:tailwindMerge.twMerge("absolute inset-0 w-full cursor-pointer appearance-none bg-transparent outline-none","[&::-webkit-slider-thumb]:appearance-none [&::-webkit-slider-thumb]:h-4 [&::-webkit-slider-thumb]:w-4 [&::-webkit-slider-thumb]:rounded-full [&::-webkit-slider-thumb]:bg-background-input [&::-webkit-slider-thumb]:border [&::-webkit-slider-thumb]:border-border-input","hover:[&::-webkit-slider-thumb]:shadow-sm focus-visible:[&::-webkit-slider-thumb]:outline-2 focus-visible:[&::-webkit-slider-thumb]:outline-action-default","[&::-moz-range-thumb]:h-4 [&::-moz-range-thumb]:w-4 [&::-moz-range-thumb]:rounded-full [&::-moz-range-thumb]:bg-background-input [&::-moz-range-thumb]:border [&::-moz-range-thumb]:border-border-input","hover:[&::-moz-range-thumb]:shadow-sm focus-visible:[&::-moz-range-thumb]:outline-2 focus-visible:[&::-moz-range-thumb]:outline-action-default",m?"cursor-not-allowed opacity-60":void 0)})]}),p&&jsxRuntime.jsx("div",{className:"min-w-10 text-right text-sm text-text-primary tabular-nums",children:Math.round(x)})]}),t&&jsxRuntime.jsx(Te,{className:"mt-2 text-text-secondary",children:t}),o&&jsxRuntime.jsx(be,{className:"mt-1",children:o})]})}var QD=Oe__namespace.default.createContext({orientation:"horizontal",isResizing:false});function Iy(e,t){return e===void 0?t:e}function ZD(e,t){return typeof e=="number"?e:typeof e=="string"&&e.endsWith("%")?Number.parseFloat(e)/100*t:Number.parseFloat(e.toString())}function bc({asideWidth:e,asideHeight:t,minAsideWidth:r=240,minAsideHeight:o=200,minMainWidth:n=400,minMainHeight:a=300,orientation:i="horizontal",resizable:s=false,onAsideResize:c,onResizeStart:l,onResizeEnd:u,className:d,dividerClassName:m,children:p}){let g=Oe.useRef(null),[f,h]=Oe.useState(false),b=i==="horizontal"?400:300,x=Iy(i==="horizontal"?e:t,b),[y,v]=Oe.useState(null),S=Oe.useCallback(M=>{if(!g.current||!f)return;let E=g.current.getBoundingClientRect(),P=i==="horizontal"?E.width:E.height,O=i==="horizontal"?M.clientX:M.clientY,K=(i==="horizontal"?E.right:E.bottom)-O,W=P-K,q=i==="horizontal"?r:o,j=i==="horizontal"?n:a;K<q||W<j||(v(K),c?.(K));},[f,i,r,o,n,a,c]),w=Oe.useCallback(()=>{h(false),u?.();},[u]),N=Oe.useCallback(M=>{M.preventDefault(),M.stopPropagation(),h(true),l?.();},[l]);Oe.useEffect(()=>{if(f)return document.addEventListener("mousemove",S),document.addEventListener("mouseup",w),document.body.style.cursor=i==="horizontal"?"col-resize":"row-resize",document.body.style.userSelect="none",()=>{document.removeEventListener("mousemove",S),document.removeEventListener("mouseup",w),document.body.style.cursor="",document.body.style.userSelect="";}},[f,S,w,i]);let R=Oe__namespace.default.Children.toArray(p).find(M=>Oe__namespace.default.isValidElement(M)&&M.type===By),k=Oe__namespace.default.Children.toArray(p).find(M=>Oe__namespace.default.isValidElement(M)&&M.type===Vy),T=y??x,A=typeof T=="number"?`${T}px`:T;return jsxRuntime.jsx(QD.Provider,{value:{orientation:i,isResizing:f},children:jsxRuntime.jsxs("div",{ref:g,className:tailwindMerge.twMerge("flex w-full h-full",i==="horizontal"?"flex-row":"flex-col",d),children:[jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("overflow-auto flex-1",i==="horizontal"?"h-full":"w-full"),children:R}),s&&jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("relative group flex-shrink-0",i==="horizontal"?"w-2 -mx-1 cursor-col-resize":"h-2 -my-1 cursor-row-resize",m),onMouseDown:N,role:"separator","aria-orientation":i,"aria-label":"Resize divider",tabIndex:0,onKeyDown:M=>{if(!g.current)return;let E=g.current.getBoundingClientRect(),P=i==="horizontal"?E.width:E.height,O=y??ZD(x,P),G=20,K=i==="horizontal"?r:o,W=i==="horizontal"?n:a;if(i==="horizontal"){if(M.key==="ArrowLeft"){let q=Math.min(O+G,P-W);v(q),c?.(q);}else if(M.key==="ArrowRight"){let q=Math.max(O-G,K);v(q),c?.(q);}}else if(M.key==="ArrowUp"){let q=Math.min(O+G,P-W);v(q),c?.(q);}else if(M.key==="ArrowDown"){let q=Math.max(O-G,K);v(q),c?.(q);}},children:[jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("absolute bg-border-default transition-all",i==="horizontal"?"left-1/2 -translate-x-1/2 w-px h-full group-hover:w-1":"top-1/2 -translate-y-1/2 h-px w-full group-hover:h-1","group-hover:bg-action-brand/50",f&&"bg-action-brand",f&&(i==="horizontal"?"w-1":"h-1"))}),jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("absolute",i==="horizontal"?"top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-1 h-8":"top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-8 h-1","bg-border-muted rounded-full opacity-0 group-hover:opacity-100 transition-opacity")})]}),jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("overflow-auto flex-shrink-0",i==="horizontal"?"h-full":"w-full"),style:{[i==="horizontal"?"width":"height"]:A},children:k})]})})}function By({className:e,children:t}){return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("w-full h-full",e),children:t})}function Vy({className:e,children:t}){return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("w-full h-full",e),children:t})}bc.Main=By;bc.Aside=Vy;var $D=e=>{let t=zt({isInvalid:e.isInvalid,isDisabled:e.isDisabled,isFocused:e.isFocused,transparent:e.transparent,size:e.size}),r=`min-h-[100px] py-2 ${e.isDisabled?"resize-none":e.isResizable?"resize-y":"resize-none"}`;return tailwindMerge.twMerge(t,r,e.className)};function zy({label:e,description:t,errorMessage:r,size:o="md",tooltip:n,required:a,transparent:i,isInvalid:s,isDisabled:c,isResizable:l=false,className:u,validationResult:d,reserveErrorSpace:m=true,...p}){let{isFocused:g,handleFocus:f,handleBlur:h}=Pr();return jsxRuntime.jsx("div",{className:"group flex flex-col",children:jsxRuntime.jsxs("div",{className:"flex flex-col",children:[e&&jsxRuntime.jsx(ze,{size:o,tooltip:n,isRequired:a,children:e}),jsxRuntime.jsx(yt,{children:jsxRuntime.jsx("textarea",{...p,required:a,onFocus:b=>{p.onFocus&&p.onFocus(b),f(b);},onBlur:b=>{p.onBlur&&p.onBlur(b),h(b);},className:$D({isInvalid:s,isDisabled:c,isResizable:l,isFocused:g,size:o,transparent:i,className:u}),disabled:c})}),m?jsxRuntime.jsx("div",{className:"mt-1 min-h-[20px]",children:typeof r=="string"?jsxRuntime.jsx(be,{size:o,children:r}):typeof r=="function"&&d?jsxRuntime.jsx(be,{size:o,children:r(d)}):t?jsxRuntime.jsx(Te,{size:o,children:t}):null}):jsxRuntime.jsx(jsxRuntime.Fragment,{children:typeof r=="string"?jsxRuntime.jsx(be,{size:o,className:"mt-1",children:r}):typeof r=="function"&&d?jsxRuntime.jsx(be,{size:o,className:"mt-1",children:r(d)}):t?jsxRuntime.jsx(Te,{size:o,className:"mt-1",children:t}):null})]})})}function Gy({label:e,description:t,errorMessage:r,size:o="md",tooltip:n,required:a,transparent:i,isInvalid:s,isDisabled:c,isResizable:l=false,className:u,validationResult:d,value:m="",onChange:p,chips:g=[],onChipsChange:f,triggerPattern:h="{{",onTriggerDetected:b,onTriggerDismissed:x,renderChip:y,chipVariant:v="primary",chipSize:S,...w}){let N=Oe.useRef(null),{isFocused:R,handleFocus:k,handleBlur:T}=Pr(),A=S||"sm",M=Oe.useRef(null),E=Oe.useCallback(j=>{let Q="",L=D=>{if(D.nodeType===Node.TEXT_NODE){if(!D.parentElement?.closest("[data-chip-id]")){let I=D.textContent||"";Q+=I;}}else if(D.nodeType===Node.ELEMENT_NODE){let U=D;if(U.hasAttribute("data-chip-id")){let I=U.getAttribute("data-chip-id");Q+=`{{${I}}}`;return}else if(U.tagName==="BR"){Q+=`
|
|
44
|
+
`;return}else U.tagName;}for(let U=0;U<D.childNodes.length;U++)L(D.childNodes[U]);};return L(j),Q},[]),P=Oe.useCallback((j,Q)=>{let L=document.createTreeWalker(j,NodeFilter.SHOW_TEXT,{acceptNode:F=>{let H=F.parentElement;return H&&H.closest("[data-chip-id]")?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT}}),D=L.nextNode(),U=Math.max(0,Q);for(;D;){let F=D.nodeValue||"";if(F.length>=U){let H=document.createRange();H.setStart(D,U),H.collapse(true);let Y=window.getSelection();Y?.removeAllRanges(),Y?.addRange(H);return}U-=F.length,D=L.nextNode();}let I=window.getSelection(),C=document.createRange();C.selectNodeContents(j),C.collapse(false),I?.removeAllRanges(),I?.addRange(C);},[]);Oe.useEffect(()=>{N.current&&!m&&N.current.textContent!==""&&(N.current.textContent="");},[m]),Oe.useLayoutEffect(()=>{if(N.current){if(m===""){if(R)try{N.current.focus({preventScroll:!0}),P(N.current,0);}catch{}return}if(M.current!=null)try{P(N.current,M.current);}finally{M.current=null;}}},[m,P,R]);let O=Oe.useCallback((j,Q)=>{if(p?.(j),j===""){x?.();return}if(h&&b&&Q!==void 0){let L=j.slice(0,Q),D=typeof h=="string"?new RegExp(`\\${h}([^\\s]*)$`):h,U=L.match(D);if(U){let I=U[1]||"",C=Q-U[0].length;b({query:I,position:Q,startIndex:C});}else x?.();}},[p,h,b,x]),G=Oe.useCallback(j=>{if(!f||!p)return;let Q=g.filter(D=>D.id!==j);f(Q);let L=m.replace(new RegExp(`\\{\\{${j}\\}\\}`,"g"),"");p(L);},[g,f,m,p]),K=Oe.useCallback(j=>y?y(j,()=>G(j.id)):jsxRuntime.jsx(eo,{variant:v,size:A,onRemove:c?void 0:()=>G(j.id),isDisabled:c,className:"py-0.5 px-1.5 gap-1 text-xs leading-none rounded-md",children:j.label},j.id),[y,v,A,G,c]),W=()=>{let j=zt({isInvalid:s,isDisabled:c,isFocused:R,transparent:i,size:o}),Q=`min-h-[100px] py-2 px-3 ${c?"resize-none":l?"resize-y":"resize-none"}`,L=tailwindMerge.twMerge("focus:outline-none overflow-auto","[&_[data-chip-id]::selection]:bg-action-primary/20","[&:empty]:before:content-[attr(data-placeholder)] [&:empty]:before:text-text-disabled [&:empty]:before:pointer-events-none");return tailwindMerge.twMerge(j,Q,L,u)},q=()=>m?m.split(/(\{\{[^}]+\}\})/g).map((Q,L)=>{let D=Q.match(/\{\{([^}]+)\}\}/);if(D){let U=D[1],I=g.find(C=>C.id===U);if(I)return jsxRuntime.jsx("span",{className:"inline-block align-baseline cursor-pointer",contentEditable:false,suppressContentEditableWarning:true,"data-chip-id":U,style:{userSelect:"none",verticalAlign:"baseline",lineHeight:"1"},onClick:C=>{C.preventDefault();let F=window.getSelection(),H=document.createRange();H.selectNode(C.currentTarget),F?.removeAllRanges(),F?.addRange(H);},children:K(I)},`chip-${U}-${L}`)}return Q.includes(`
|
|
45
45
|
`)?Q.split(`
|
|
46
|
-
`).map((
|
|
47
|
-
`).length-1&&jsxRuntime.jsx("br",{})]},`line-${E}-${I}`)):Q}):null;return jsxRuntime.jsx("div",{className:"group flex flex-col",children:jsxRuntime.jsxs("div",{className:"flex flex-col",children:[e&&jsxRuntime.jsx(ze,{size:o,tooltip:n,isRequired:a,children:e}),jsxRuntime.jsx(ht,{children:jsxRuntime.jsx("div",{ref:N,contentEditable:!c,suppressContentEditableWarning:true,onInput:j=>{if(c)return;let Q=j.target,E=Q.querySelector("[data-chip-id]")!==null,M;if(E?(M=L(Q),M=M.replace(/(\{\{[^}]+\}\})\s{2,}/g,"$1 ").replace(/\s{2,}(\{\{[^}]+\}\})/g," $1")):M=Q.textContent||"",M===""){try{let C=document.createRange();C.selectNodeContents(Q),C.collapse(!0);let F=window.getSelection();F?.removeAllRanges(),F?.addRange(C),D.current=0;}catch{}H("",0);return}if(M===m)return;let W=window.getSelection(),I=0;if(W&&W.rangeCount>0)try{let C=W.getRangeAt(0);if(E){let F=0,O=!1,K=te=>{if(O)return !0;if(te===C.startContainer)return F+=C.startOffset,O=!0,!0;if(te.nodeType===Node.TEXT_NODE){if(!te.parentElement?.closest("[data-chip-id]")){if(te.contains(C.startContainer))return F+=C.startOffset,O=!0,!0;F+=(te.textContent||"").length;}}else if(te.nodeType===Node.ELEMENT_NODE){let de=te;if(de.hasAttribute("data-chip-id")){if(de.contains(C.startContainer)||de===C.startContainer){let ae=de.getAttribute("data-chip-id");return F+=`{{${ae}}}`.length,O=!0,!0}let _=de.getAttribute("data-chip-id");return F+=`{{${_}}}`.length,!1}else if(de.tagName==="BR")return de===C.startContainer?(O=!0,!0):(F+=1,!1)}for(let de=0;de<te.childNodes.length;de++)if(K(te.childNodes[de]))return !0;return !1};K(Q),I=F;}else {let F=document.createRange();F.setStart(Q,0),F.setEnd(C.startContainer,C.startOffset),I=F.toString().length;}}catch{I=M.length;}D.current=I,H(M,I);},onKeyDown:j=>{if(c)return;let Q=window.getSelection();if(!(!Q||Q.rangeCount===0))try{let E=Q.getRangeAt(0),M=E.commonAncestorContainer;if(j.key==="ArrowLeft"||j.key==="ArrowRight"){let W=M.nodeType===Node.TEXT_NODE?M.parentElement?.closest("[data-chip-id]"):M.closest("[data-chip-id]");if(W){j.preventDefault();try{let I=document.createRange(),C=window.getSelection();j.key==="ArrowLeft"?I.setStartBefore(W):I.setStartAfter(W),I.collapse(!0),C?.removeAllRanges(),C?.addRange(I);}catch{}}}if(j.key==="Backspace"){let W=null;if(W=(M.nodeType===Node.TEXT_NODE?M.parentElement?.closest("[data-chip-id]"):M.closest("[data-chip-id]"))||null,!W)if(M.nodeType===Node.TEXT_NODE){let I=M;if(E.startOffset===0&&I.parentElement){let C=I.previousSibling;if(C&&C.nodeType===Node.ELEMENT_NODE){let F=C.closest("[data-chip-id]");F&&(W=F);}}}else {let I=M;if(E.startOffset>0){let C=I.childNodes[E.startOffset-1];if(C&&C.nodeType===Node.ELEMENT_NODE){let F=C.closest("[data-chip-id]");F&&(W=F);}}}if(W){j.preventDefault(),j.stopPropagation();let I=W.getAttribute("data-chip-id");if(!I)return;let C=`{{${I}}}`,F=m.indexOf(C);if(F!==-1){let O=m.slice(0,F)+m.slice(F+C.length),K=g.filter(te=>te.id!==I);D.current=F;try{window.getSelection()?.removeAllRanges();}catch{}f?.(K),p?.(O);}}}}catch{}},onFocus:j=>{c||(w.onFocus&&w.onFocus(j),k(j));},onBlur:j=>{c||(w.onBlur&&w.onBlur(j),P(j));},className:U(),style:{whiteSpace:"pre-wrap",wordBreak:"break-word",...w.style},"data-placeholder":w.placeholder,children:q()},m===""?"empty":"content")}),t&&jsxRuntime.jsx(Te,{size:o,className:"mt-3",children:t}),typeof r=="string"&&jsxRuntime.jsx(be,{size:o,className:"mt-1",children:r}),typeof r=="function"&&d&&jsxRuntime.jsx(be,{size:o,className:"mt-1",children:r(d)})]})})}function qD({isPlaceholder:e,isDisabled:t,size:r="md"}){return tailwindMerge.twMerge("inline-block box-content px-0.5 rounded outline-none tabular-nums text-center transition-colors",{sm:"text-base md:text-xs",md:"text-base md:text-sm",lg:"text-base",xl:"text-lg"}[r],e?"text-text-disabled italic":"text-text-primary",t?"text-text-disabled cursor-not-allowed":"cursor-text",!t&&"hover:bg-background-hover","data-[focused]:bg-background-selected data-[focused]:text-text-primary")}function Hy({label:e,description:t,errorMessage:r,size:o="md",tooltip:n,isRequired:a,isDisabled:i,isInvalid:s,reserveErrorSpace:c=true,validationResult:l,className:u,descriptionPlacement:d="below",...m}){return jsxRuntime.jsxs(reactAriaComponents.TimeField,{...m,isDisabled:i,isRequired:a,isInvalid:s,className:ke(u,"flex flex-col gap-1"),children:[e&&jsxRuntime.jsx(ze,{size:o,tooltip:n,description:d==="tooltip"||d==="inline"?t:void 0,descriptionPlacement:d,isRequired:a,children:e}),jsxRuntime.jsx(ht,{children:jsxRuntime.jsx(reactAriaComponents.DateInput,{className:tailwindMerge.twMerge(Vo({isInvalid:s,isDisabled:i}),"px-3 py-2 flex items-center gap-0.5 w-full"),children:p=>jsxRuntime.jsx(reactAriaComponents.DateSegment,{segment:p,className:qD({isPlaceholder:p.isPlaceholder,isDisabled:!p.isEditable||i,size:o})})})}),c?jsxRuntime.jsx("div",{className:"mt-1 min-h-[20px]",children:typeof r=="string"?jsxRuntime.jsx(be,{size:o,children:r}):typeof r=="function"&&l?jsxRuntime.jsx(be,{size:o,children:r(l)}):t&&d==="below"?jsxRuntime.jsx(Te,{size:o,children:t}):null}):jsxRuntime.jsx(jsxRuntime.Fragment,{children:typeof r=="string"?jsxRuntime.jsx(be,{size:o,className:"mt-1",children:r}):typeof r=="function"&&l?jsxRuntime.jsx(be,{size:o,className:"mt-1",children:r(l)}):t&&d==="below"?jsxRuntime.jsx(Te,{size:o,className:"mt-1",children:t}):null})]})}function Wy({children:e,className:t=""}){return jsxRuntime.jsx("div",{className:`flex flex-col ${t}`.trim(),role:"list",children:e})}function Gy({children:e,variant:t="default",icon:r,label:o,isLast:n=false,className:a=""}){let s={default:{dot:"bg-border-default border-border-default",line:"bg-border-default",label:"text-text-secondary",content:"text-text-primary"},active:{dot:"bg-text-primary border-text-primary",line:"bg-border-default",label:"text-text-secondary",content:"text-text-primary font-medium"},muted:{dot:"bg-border-muted border-border-muted",line:"bg-border-muted",label:"text-text-secondary",content:"text-text-secondary"},success:{dot:"bg-feedback-success-border border-feedback-success-border",line:"bg-border-default",label:"text-text-secondary",content:"text-text-primary"},error:{dot:"bg-feedback-error-border border-feedback-error-border",line:"bg-border-default",label:"text-text-secondary",content:"text-text-primary"},warning:{dot:"bg-feedback-warning-border border-feedback-warning-border",line:"bg-border-default",label:"text-text-secondary",content:"text-text-primary"},info:{dot:"bg-feedback-info-border border-feedback-info-border",line:"bg-border-default",label:"text-text-secondary",content:"text-text-primary"}}[t];return jsxRuntime.jsxs("div",{className:`flex gap-3 ${a}`.trim(),role:"listitem",children:[jsxRuntime.jsxs("div",{className:"flex flex-col items-center",style:{width:"20px"},children:[jsxRuntime.jsx("div",{className:`flex items-center justify-center rounded-full border-2 ${s.dot}`,style:{width:"20px",height:"20px",flexShrink:0},children:r&&jsxRuntime.jsx(B,{name:r,size:12,className:"text-background-body"})}),!n&&jsxRuntime.jsx("div",{className:`w-0.5 flex-1 ${s.line}`,style:{minHeight:"24px"}})]}),jsxRuntime.jsxs("div",{className:"flex-1 pb-6",children:[o&&jsxRuntime.jsx("div",{className:`text-xs mb-1 ${s.label}`,children:o}),jsxRuntime.jsx("div",{className:`text-sm ${s.content}`,children:e})]})]})}function eE(e){return "primary"}var tE="flex font-medium justify-center items-center gap-2 text-center transition whitespace-nowrap box-border",Uy={primary:{selected:"bg-action-primary text-[color:var(--color-action-primary-text)] hover:bg-action-primary-hover forced-colors:bg-[ButtonText] forced-colors:text-[ButtonFace] border-2 border-transparent",unselected:"bg-transparent text-action-primary border-2 border-border-muted hover:bg-text-primary/[0.05] forced-colors:border-[ButtonBorder] forced-colors:bg-[ButtonFace] forced-colors:text-[ButtonText]"}},rE="opacity-[--control-hover-opacity] cursor-not-allowed pointer-events-none grayscale",oE="opacity-100 cursor-pointer",nE={"top-right":"-right-2 -top-2","top-left":"-left-2 -top-2","bottom-right":"-right-2 -bottom-2","bottom-left":"-left-2 -bottom-2"},aE={primary:"bg-action-primary text-[color:var(--color-action-primary-text)]",destructive:"bg-feedback-error-border text-text-inverse"};function iE(e){let{variant:t="primary",size:r="md",isDisabled:o,isSelected:n,borderRadius:a,borderRight:i,borderLeft:s}=e,c=eE(),l=`${tE} ${n?Uy[c].selected:Uy[c].unselected}`;return l+=` ${Ge[r].text} ${Ge[r].height} ${Ge[r].padding} ${Ge[r].gap}`,l+=` ${o?rE:oE}`,a==="left"&&(l+=" rounded-l-sm"),a==="right"&&(l+=" rounded-r-sm"),i&&(l+=" border-r"),s&&(l+=" border-l"),l+=` ${Je()}`,(l+=" focus-visible:outline-action-primary"),tailwindMerge.twMerge(l)}function Yy(e){let{className:t,children:r,onPress:o,icon:n,iconPosition:a="left",iconWeight:i,isLoading:s=false,loadingText:c,loadingIndicator:l,size:u="md",badgeNumber:d,badgeVariant:m="primary",badgePosition:p="top-right",...g}=e,f=n?jsxRuntime.jsx(B,{name:n,size:u,weight:i}):null,h=()=>{let x=jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[a==="left"&&f,r,a==="right"&&f]});return s?jsxRuntime.jsxs("div",{className:"relative inline-flex items-center justify-center",children:[jsxRuntime.jsx("div",{className:"absolute inset-0 flex items-center justify-center",children:l||jsxRuntime.jsx(B,{name:"CircleNotch",size:u,className:"animate-spin","aria-hidden":"true"})}),jsxRuntime.jsx("div",{className:"invisible","aria-hidden":"true",children:x}),c&&jsxRuntime.jsx("span",{className:"sr-only",role:"status","aria-live":"polite",children:c})]}):x},b=jsxRuntime.jsx(reactAriaComponents.ToggleButton,{onPress:o,...g,className:tailwindMerge.twMerge(iE(e),t),"aria-busy":s,children:h()});return d&&d>0?jsxRuntime.jsxs("div",{className:"relative",children:[b,jsxRuntime.jsx("span",{className:`absolute ${nE[p]} flex h-5 w-5 items-center justify-center rounded-full ${aE[m]} text-xs`,"aria-label":`${d} items`,children:d})]}):b}var lE={open:{className:"text-feedback-success-border",token:"--color-feedback-success-border",label:"Open"},closed:{className:"text-feedback-error-border",token:"--color-feedback-error-border",label:"Closed"}},cE={platform:{label:"Platform",description:"Core product objects that structure the Texture workspace.",icon:"Stack",order:0},grid:{label:"Grid Elements",description:"Physical utility-grid infrastructure imported from a customer's GIS export.",icon:"TreeStructure",order:1},device:{label:"Devices",description:"Behind-the-meter connected energy devices.",icon:"Lightning",order:2}},dE=["energized","customerName","gs_max_continuous_current"],it={TRANSFORMER:[{key:"capacityKva",label:"kVA Rating",format:{type:"power",unit:"kVA",decimals:0}},{key:"primaryRatedVoltage",label:"Primary Voltage",format:{type:"voltage",unit:"V",decimals:0}}],CONSUMER:[{key:"meterNumber",label:"Meter Number",format:{type:"text"}}],SOURCE:[{key:"busVoltage",label:"Bus Voltage",format:{type:"voltage",unit:"V",decimals:0}},{key:"nominalVoltage",label:"Nominal Voltage",format:{type:"voltage",unit:"V",decimals:0}},{key:"substationNumber",label:"Substation Number",format:{type:"text"}}],SWITCH:[{key:"switchId",label:"Switch ID",format:{type:"text"}},{key:"ratedCurrent",label:"Rated Current",format:{type:"number",unit:"A",decimals:0}},{key:"normalState",label:"Normal State",format:{type:"text"}}],CAPACITOR:[{key:"unitSizeKvar",label:"Capacity",format:{type:"power",unit:"kVar",decimals:1}},{key:"nominalVoltage",label:"Nominal Voltage",format:{type:"voltage",unit:"V",decimals:0}}],OVERCURRENT_DEVICE:[{key:"ratedCurrent",label:"Rated Current",format:{type:"number",unit:"A",decimals:0}},{key:"deviceType",label:"Device Type",format:{type:"text"}}],REGULATOR:[{key:"outputVoltagePhA",label:"Output Voltage Phase A",format:{type:"voltage",unit:"V",decimals:0}},{key:"outputVoltagePhB",label:"Output Voltage Phase B",format:{type:"voltage",unit:"V",decimals:0}},{key:"outputVoltagePhC",label:"Output Voltage Phase C",format:{type:"voltage",unit:"V",decimals:0}},{key:"ratedPower",label:"Rated Power",format:{type:"power",unit:"kVA",decimals:1}}],OVERHEAD_LINE:[{key:"impedanceLength",label:"Length",format:{type:"distance",unit:"ft",decimals:0}},{key:"conductorDescPhA",label:"Conductor Phase A",format:{type:"text"}},{key:"conductorDescPhB",label:"Conductor Phase B",format:{type:"text"}},{key:"conductorDescPhC",label:"Conductor Phase C",format:{type:"text"}}],UNDERGROUND_LINE:[{key:"impedanceLength",label:"Length",format:{type:"distance",unit:"ft",decimals:0}},{key:"conductorDescPhA",label:"Conductor Phase A",format:{type:"text"}},{key:"conductorDescPhB",label:"Conductor Phase B",format:{type:"text"}},{key:"conductorDescPhC",label:"Conductor Phase C",format:{type:"text"}}],NODE:[{key:"nominalVoltage",label:"Nominal Voltage",format:{type:"voltage",unit:"V",decimals:0}}],GENERATOR:[{key:"ratedPower",label:"Rated Power",format:{type:"power",unit:"kW",decimals:1}},{key:"outputVoltage",label:"Output Voltage",format:{type:"voltage",unit:"V",decimals:0}}],MOTOR:[{key:"ratedPower",label:"Rated Power",format:{type:"power",unit:"kW",decimals:1}},{key:"voltage",label:"Voltage",format:{type:"voltage",unit:"V",decimals:0}}]},oa={app:{icon:"AppWindow",category:"platform",archetype:"platform",detailPage:false,label:{singular:"App",plural:"Apps"},description:"Workspace tools and third-party integrations"},site:{icon:"MapPin",category:"platform",archetype:"platform",detailPage:true,label:{singular:"Site",plural:"Sites"},description:"Physical location housing energy systems"},device:{icon:"ShareNetwork",category:"platform",archetype:"platform",detailPage:false,label:{singular:"Device",plural:"Devices"},description:"Connected, controllable energy device"},customer:{icon:"Users",category:"platform",archetype:"platform",detailPage:true,label:{singular:"Customer",plural:"Customers"},description:"End customer or owner of one or more sites"},contact:{icon:"Users",category:"platform",archetype:"platform",detailPage:false,label:{singular:"Contact",plural:"Contacts"},description:"Person associated with a customer or site"},program:{icon:"ClipboardText",category:"platform",archetype:"platform",detailPage:false,label:{singular:"Program",plural:"Programs"},description:"Demand-response or virtual power plant program"},workflow:{icon:"FlowArrow",category:"platform",archetype:"platform",detailPage:false,label:{singular:"Workflow",plural:"Workflows"},description:"Automated rule that runs in response to events"},collection:{icon:"Stack",category:"platform",archetype:"platform",detailPage:false,label:{singular:"Collection",plural:"Collections"},description:"Named group of related entities or records"},board:{icon:"SquaresFour",category:"platform",archetype:"platform",detailPage:false,label:{singular:"Board",plural:"Boards"},description:"Dashboard for monitoring metrics and devices"},report:{icon:"ChartLine",category:"platform",archetype:"platform",detailPage:false,label:{singular:"Report",plural:"Reports"},description:"Saved analytics view or generated report"},event:{icon:"ClockCounterClockwise",category:"platform",archetype:"platform",detailPage:false,label:{singular:"Event",plural:"Events"},description:"Recorded system event or logged activity"},alert:{icon:"Warning",category:"platform",archetype:"platform",detailPage:false,label:{singular:"Alert",plural:"Alerts"},description:"Notification raised when attention is needed"},monitor:{icon:"Pulse",category:"platform",archetype:"platform",detailPage:false,label:{singular:"Monitor",plural:"Monitors"},description:"Rule that watches a metric against a threshold"},command:{icon:"Play",category:"platform",archetype:"platform",detailPage:false,label:{singular:"Command",plural:"Commands"},description:"Control action issued to a connected device"},source:{icon:"TextureSource",category:"grid",archetype:"grid-energized",detailPage:true,properties:{statList:it.SOURCE},label:{singular:"Source",plural:"Sources"},description:"Upstream feed where the network originates"},substation:{icon:"TextureSource",category:"grid",archetype:"grid-energized",detailPage:true,properties:{statList:it.SOURCE},label:{singular:"Substation",plural:"Substations"},description:"Facility that steps down transmission voltage"},capacitor:{icon:"TextureCapacitor",category:"grid",archetype:"grid-energized",detailPage:true,properties:{statList:it.CAPACITOR},label:{singular:"Capacitor",plural:"Capacitors"},description:"Capacitor bank for power-factor and voltage support"},switch:{icon:"TextureSwitchClosed",category:"grid",archetype:"grid-energized",detailPage:true,properties:{statList:it.SWITCH},label:{singular:"Switch",plural:"Switches"},description:"Sectionalizing or disconnect switch on the line",states:{open:{icon:"TextureSwitch",color:"open"},closed:{icon:"TextureSwitchClosed",color:"closed"}}},sectionalizer:{icon:"TextureSectionalizerClosed",category:"grid",archetype:"grid-energized",detailPage:true,properties:{statList:it.SWITCH},label:{singular:"Sectionalizer",plural:"Sectionalizers"},description:"Counts upstream recloser trips and opens to isolate a faulted section",states:{open:{icon:"TextureSectionalizerOpen",color:"open"},closed:{icon:"TextureSectionalizerClosed",color:"closed"}}},relay:{icon:"Cpu",category:"grid",archetype:"grid-energized",detailPage:true,properties:{statList:it.NODE},label:{singular:"Relay",plural:"Relays"},description:"Microprocessor relay that senses faults and trips devices"},transformer:{icon:"TextureTransformer",category:"grid",archetype:"grid-energized",detailPage:true,properties:{statList:it.TRANSFORMER},label:{singular:"Transformer",plural:"Transformers"},description:"Transformer that steps voltage up or down"},meter:{icon:"Gauge",category:"grid",archetype:"grid-energized",detailPage:true,properties:{statList:it.CONSUMER},label:{singular:"Meter",plural:"Meters"},description:"Revenue meter at the point of consumption",fusedMetricId:"power",fields:{headlineMetrics:[{id:"power",label:"device.meter.fields.power",source:{kind:"state",path:"state.phaseARealPower"},format:{type:"power",unit:"kW",decimals:2},icon:"Pulse"},{id:"consumption",label:"device.meter.fields.consumption",source:{kind:"state",path:"state.latestKwhUsage"},format:{type:"energy",sourceUnit:"kWh",decimals:2},icon:"Lightning"},{id:"voltage",label:"device.meter.fields.voltage",source:{kind:"state",path:"state.phaseAVoltage"},format:{type:"voltage",decimals:1},icon:"Lightning"},{id:"current",label:"device.meter.fields.current",source:{kind:"state",path:"state.phaseACurrent"},format:{type:"current",decimals:2},icon:"Lightning"}]}},consumer:{icon:"Gauge",category:"grid",archetype:"grid-energized",detailPage:true,properties:{statList:it.CONSUMER},label:{singular:"Consumer",plural:"Consumers"},description:"Service point or customer premise on the grid"},singlePhaseOverheadLine:{icon:"TextureSinglePhaseOverheadLine",category:"grid",archetype:"grid-line",detailPage:true,properties:{statList:it.OVERHEAD_LINE},label:{singular:"Single-Phase Overhead Line",plural:"Single-Phase Overhead Lines"},description:"Overhead line carrying one phase conductor"},twoPhaseOverheadLine:{icon:"TextureTwoPhaseOverheadLine",category:"grid",archetype:"grid-line",detailPage:true,properties:{statList:it.OVERHEAD_LINE},label:{singular:"Two-Phase Overhead Line",plural:"Two-Phase Overhead Lines"},description:"Overhead line carrying two phase conductors"},threePhaseOverheadLine:{icon:"TextureThreePhaseOverheadLine",category:"grid",archetype:"grid-line",detailPage:true,properties:{statList:it.OVERHEAD_LINE},label:{singular:"Three-Phase Overhead Line",plural:"Three-Phase Overhead Lines"},description:"Overhead line carrying three phase conductors"},singlePhaseUndergroundLine:{icon:"TextureSinglePhaseUndergroundLine",category:"grid",archetype:"grid-line",detailPage:true,properties:{statList:it.UNDERGROUND_LINE},label:{singular:"Single-Phase Underground Line",plural:"Single-Phase Underground Lines"},description:"Buried line carrying one phase conductor"},twoPhaseUndergroundLine:{icon:"TextureTwoPhaseUndergroundLine",category:"grid",archetype:"grid-line",detailPage:true,properties:{statList:it.UNDERGROUND_LINE},label:{singular:"Two-Phase Underground Line",plural:"Two-Phase Underground Lines"},description:"Buried line carrying two phase conductors"},threePhaseUndergroundLine:{icon:"TextureThreePhaseUndergroundLine",category:"grid",archetype:"grid-line",detailPage:true,properties:{statList:it.UNDERGROUND_LINE},label:{singular:"Three-Phase Underground Line",plural:"Three-Phase Underground Lines"},description:"Buried line carrying three phase conductors"},motorSwitch:{icon:"Diamond",category:"grid",archetype:"grid-energized",detailPage:true,properties:{statList:it.MOTOR},label:{singular:"Motor Switch",plural:"Motor Switches"},description:"Motor-operated switch or motor load element"},recloser:{icon:"TextureRecloser",category:"grid",archetype:"grid-energized",detailPage:true,properties:{statList:it.OVERCURRENT_DEVICE},label:{singular:"Recloser",plural:"Reclosers"},description:"Auto-reclosing device that clears transient faults",states:{open:{color:"open"},closed:{color:"closed"}}},fuse:{icon:"TextureFuse",category:"grid",archetype:"grid-energized",detailPage:true,properties:{statList:it.OVERCURRENT_DEVICE},label:{singular:"Fuse",plural:"Fuses"},description:"Fusible element providing overcurrent protection"},breaker:{icon:"TextureBreaker",category:"grid",archetype:"grid-energized",detailPage:true,properties:{statList:it.OVERCURRENT_DEVICE},label:{singular:"Breaker",plural:"Breakers"},description:"Circuit breaker that interrupts fault current",states:{open:{color:"open"},closed:{color:"closed"}}},generator:{icon:"Wind",category:"grid",archetype:"grid-energized",detailPage:true,properties:{statList:it.GENERATOR},label:{singular:"Generator",plural:"Generators"},description:"Distributed generation unit feeding the grid"},regulator:{icon:"TextureRegulator",category:"grid",archetype:"grid-energized",detailPage:true,properties:{statList:it.REGULATOR},label:{singular:"Regulator",plural:"Regulators"},description:"Voltage regulator that holds line voltage in range"},supportStructure:{icon:"TextureSupportStructure",category:"grid",archetype:"grid-line",detailPage:true,properties:{statList:it.NODE},label:{singular:"Support Structure",plural:"Support Structures"},description:"Structure carrying overhead line equipment"},battery:{icon:"BatteryHigh",category:"device",archetype:"device",detailPage:true,label:{singular:"Battery",plural:"Batteries"},description:"Behind-the-meter battery or storage system",fusedMetricId:"soc",fields:{headlineMetrics:[{id:"power",label:"device.battery.fields.power",source:{kind:"state",path:"state.gridPower"},format:{type:"power",decimals:1},icon:"Lightning"},{id:"soc",label:"device.battery.fields.soc",source:{kind:"state",path:"state.chargePercentage"},format:{type:"percentage",decimals:0},icon:"BatteryCharging"},{id:"backupReserve",label:"device.battery.fields.backupReserve",source:{kind:"state",path:"state.backupReserve"},format:{type:"percentage",decimals:0},icon:"BatteryCharging"},{id:"loadPower",label:"device.battery.fields.loadPower",source:{kind:"state",path:"state.loadPower"},format:{type:"power",decimals:1},icon:"Lightning"}]},stateRules:{primaryState:{label:"device.battery.fields.status",fieldPath:"state.chargingState",mapping:{charging:"charging",discharging:"discharging",idle:"idle",unknown:"unknown"},fallback:"unknown"},secondaryState:{label:"device.battery.fields.gridState",fieldPath:"state.gridStatus",mapping:{importing:"importing",exporting:"exporting",idle:"importing",unknown:"importing"},fallback:"importing"}}},evCharger:{icon:"ChargingStation",category:"device",archetype:"device",detailPage:true,label:{singular:"EV Charger",plural:"EV Chargers"},description:"Electric-vehicle charging station or port",fusedMetricId:"power",fields:{headlineMetrics:[{id:"power",label:"device.evCharger.fields.power",source:{kind:"state",path:"state.chargerWattage"},format:{type:"power",decimals:1},icon:"Lightning"},{id:"isPluggedIn",label:"device.evCharger.fields.isPluggedIn",source:{kind:"state",path:"state.isPluggedIn"},format:{type:"boolean",trueText:"Yes",falseText:"No"},icon:"Plug"},{id:"voltage",label:"device.evCharger.fields.voltage",source:{kind:"state",path:"state.chargerVoltage"},format:{type:"voltage",decimals:1},icon:"Lightning"},{id:"current",label:"device.evCharger.fields.current",source:{kind:"state",path:"state.chargerCurrent"},format:{type:"current",decimals:1},icon:"Lightning"}]},stateRules:{primaryState:{label:"device.evCharger.fields.status",fieldPath:"state.chargingState",mapping:{charging:"charging",discharging:"discharging",idle:"idle",unknown:"unknown"},fallback:"unknown"}}},inverter:{icon:"Sun",category:"device",archetype:"device",detailPage:true,label:{singular:"Solar / Inverter",plural:"Solar / Inverters"},description:"Solar PV inverter and its connected array",fusedMetricId:"power",fields:{headlineMetrics:[{id:"power",label:"device.inverter.fields.power",source:{kind:"state",path:"state.power"},format:{type:"power",decimals:0},icon:"Lightning"},{id:"gridPower",label:"device.inverter.fields.gridPower",source:{kind:"state",path:"state.gridPower"},format:{type:"power",decimals:0},icon:"GridFour"},{id:"generatedEnergy",label:"device.inverter.fields.generatedEnergy",source:{kind:"state",path:"state.generatedEnergy"},format:{type:"energy",decimals:1},icon:"Lightning"},{id:"lifetimeEnergyGenerated",label:"device.inverter.fields.lifetimeEnergyGenerated",source:{kind:"state",path:"state.lifetimeEnergyGenerated"},format:{type:"energy",decimals:0},icon:"Lightning"}]},stateRules:{primaryState:{label:"device.inverter.fields.gridStatus",fieldPath:"state.gridStatus",mapping:{exporting:"exporting",importing:"importing",idle:"idle"},fallback:"unknown"}}},thermostat:{icon:"Thermometer",category:"device",archetype:"device",detailPage:true,label:{singular:"Thermostat",plural:"Thermostats"},description:"Smart thermostat or connected HVAC control",fusedMetricId:"ambientTemperature",fields:{headlineMetrics:[{id:"ambientTemperature",label:"device.thermostat.fields.ambientTemperature",source:{kind:"state",path:"state.ambientTemperature"},format:{type:"temperature",decimals:0},icon:"Thermometer"},{id:"heatTarget",label:"device.thermostat.fields.heatTarget",source:{kind:"state",path:"state.heatTarget"},format:{type:"temperature",decimals:0},icon:"Flame"},{id:"coolTarget",label:"device.thermostat.fields.coolTarget",source:{kind:"state",path:"state.coolTarget"},format:{type:"temperature",decimals:0},icon:"Snowflake"},{id:"fanMode",label:"device.thermostat.fields.fanMode",source:{kind:"state",path:"state.fanMode"},format:{type:"text"}}]},stateRules:{primaryState:{label:"device.thermostat.fields.operatingMode",fieldPath:"state.operatingMode",mapping:{heat:"heat",cool:"cool",auto:"auto",off:"off",eco:"eco",unknown:"unknown"},fallback:"unknown"}}},vehicle:{icon:"Car",category:"device",archetype:"device",detailPage:true,label:{singular:"EV",plural:"EVs"},description:"Electric vehicle managed as a flexible load",fusedMetricId:"chargePercentage",fields:{headlineMetrics:[{id:"chargePercentage",label:"device.vehicle.fields.chargePercentage",source:{kind:"state",path:"state.chargePercentage"},format:{type:"percentage",decimals:0},icon:"BatteryCharging"},{id:"range",label:"device.vehicle.fields.range",source:{kind:"state",path:"state.range"},format:{type:"distance",unit:"mi",decimals:0},icon:"GasPump"},{id:"chargeLimit",label:"device.vehicle.fields.chargeLimit",source:{kind:"state",path:"state.chargeLimit"},format:{type:"percentage",decimals:0},icon:"BatteryCharging"},{id:"isPluggedIn",label:"device.vehicle.fields.isPluggedIn",source:{kind:"state",path:"state.isPluggedIn"},format:{type:"boolean",trueText:"Yes",falseText:"No"},icon:"Plug"}]},stateRules:{primaryState:{label:"device.vehicle.fields.status",fieldPath:"state.chargingState",mapping:{charging:"charging",discharging:"discharging",idle:"idle",unknown:"unknown"},fallback:"unknown"}}},waterHeater:{icon:"Drop",category:"device",archetype:"device",detailPage:true,label:{singular:"Water Heater",plural:"Water Heaters"},description:"Connected or smart electric water heater"}},uE={source:"SOURCE",substation:"SOURCE",capacitor:"CAPACITOR",switch:"SWITCH",sectionalizer:"SWITCH",relay:"NODE",transformer:"TRANSFORMER",meter:"CONSUMER",consumer:"CONSUMER",singlePhaseOverheadLine:"OVERHEAD_LINE",twoPhaseOverheadLine:"OVERHEAD_LINE",threePhaseOverheadLine:"OVERHEAD_LINE",singlePhaseUndergroundLine:"UNDERGROUND_LINE",twoPhaseUndergroundLine:"UNDERGROUND_LINE",threePhaseUndergroundLine:"UNDERGROUND_LINE",motorSwitch:"MOTOR",recloser:"OVERCURRENT_DEVICE",fuse:"OVERCURRENT_DEVICE",breaker:"OVERCURRENT_DEVICE",generator:"GENERATOR",regulator:"REGULATOR",supportStructure:"NODE"};function gc(e){return oa[e]}function pE(e){return oa[e].icon}function mE(e,t=false){return t?oa[e].label.plural:oa[e].label.singular}function fE(e){return oa[e].category}var gE={min:2,max:4};function bE(e){let t=oa[e];if(!t)throw new Error(`archetypeFor: unknown entity type "${String(e)}"`);return t.archetype}function xE(e){return gc(e).detailPage}function hE(e){return (gc(e).fields?.headlineMetrics.length??0)>0}function Jy(e){return gc(e).properties?.statList??[]}function yE(e){return Jy(e).length>0}function vE({formId:e="dialog-form",onSubmit:t,primaryLabel:r="Save",secondaryLabel:o="Cancel",onCancel:n,primaryVariant:a,secondaryVariant:i="secondary",children:s,title:c,...l}){return jsxRuntime.jsx(Nr,{title:c,primaryAction:{label:r,onPress:()=>{let d=document.getElementById(e);d&&d.requestSubmit();},variant:a},secondaryAction:n?{label:o,onPress:n,variant:i}:void 0,...l,children:jsxRuntime.jsx(Fa,{id:e,onSubmit:t,children:s})})}function CE({formId:e="drawer-form",onSubmit:t,primaryLabel:r="Save",secondaryLabel:o="Cancel",onCancel:n,primaryVariant:a,secondaryVariant:i="secondary",children:s,...c}){return jsxRuntime.jsx(Ei,{primaryAction:{label:r,onPress:()=>{let u=document.getElementById(e);u&&u.requestSubmit();},variant:a},secondaryAction:n?{label:o,onPress:n,variant:i}:void 0,...c,children:jsxRuntime.jsx(Fa,{id:e,onSubmit:t,className:"mt-2",children:s})})}function wE({align:e="end",className:t,...r}){return jsxRuntime.jsx("div",{...r,className:tailwindMerge.twMerge("flex gap-2",e==="start"?"justify-start":e==="between"?"justify-between":"justify-end",t)})}var TE={sm:"gap-2",md:"gap-4",lg:"gap-6"};function PE(e){if(!e)return "";let t=e.base?`grid-cols-${e.base}`:"",r=e.md?`md:grid-cols-${e.md}`:"",o=e.lg?`lg:grid-cols-${e.lg}`:"";return [t,r,o].filter(Boolean).join(" ")}function RE({cols:e={base:1},gap:t="lg",className:r,...o}){return jsxRuntime.jsx("div",{...o,className:tailwindMerge.twMerge("grid",PE(e),TE[t],r)})}function EE({title:e,description:t,showDivider:r,className:o,children:n,...a}){return jsxRuntime.jsxs("section",{...a,className:tailwindMerge.twMerge("flex flex-col",o),children:[(e||t)&&jsxRuntime.jsxs("div",{className:"flex flex-col gap-1 mb-6",children:[typeof e=="string"?jsxRuntime.jsx(Qt,{tag:"h3",size:"sm",children:e}):e,t?jsxRuntime.jsx(Te,{size:"lg",children:t}):null]}),jsxRuntime.jsx("div",{className:"flex flex-col gap-6",children:n}),r&&jsxRuntime.jsx("hr",{className:"mt-2 border-border-muted"})]})}function LE(){return jsxRuntime.jsx("hr",{className:"border-border-muted"})}function AE({steps:e,currentStepId:t,onStepClick:r,className:o}){let n=e.findIndex(a=>a.id===t);return jsxRuntime.jsx("nav",{"aria-label":"Progress",className:tailwindMerge.twMerge("w-full",o),children:jsxRuntime.jsx("div",{className:"relative mb-12",children:jsxRuntime.jsx("ol",{className:"relative flex items-start justify-between",children:e.map((a,i)=>{let s=a.id===t,c=i<n,l=r&&(c||s);return jsxRuntime.jsxs("li",{className:"relative flex flex-col items-center",style:{flex:`1 1 ${100/e.length}%`},children:[jsxRuntime.jsx("button",{type:"button",disabled:!l,onClick:()=>l&&r?.(a.id),className:tailwindMerge.twMerge("relative z-10 flex h-10 w-10 flex-shrink-0 items-center justify-center rounded-full border-2 transition-colors bg-background-body",c&&"border-action-primary bg-action-primary text-text-inverse hover:bg-action-primary/90",s&&"border-action-primary bg-background-body text-action-primary",!c&&!s&&"border-border-default bg-background-body text-text-secondary",l&&"cursor-pointer",!l&&"cursor-default"),"aria-current":s?"step":void 0,children:c?jsxRuntime.jsx(B,{name:"Check",size:20,weight:"bold"}):jsxRuntime.jsx("span",{className:"text-sm font-semibold",children:i+1})}),i<e.length-1&&jsxRuntime.jsx("div",{className:"absolute top-5 h-0.5 transition-colors",style:{left:"50%",width:"100%",marginLeft:"20px",backgroundColor:i<n?"var(--color-action-primary)":"var(--color-border-default)"}}),jsxRuntime.jsxs("div",{className:"mt-3 flex flex-col items-center text-center w-32",children:[jsxRuntime.jsx("span",{className:tailwindMerge.twMerge("text-sm font-medium",s&&"text-text-default",c&&"text-text-primary",!s&&!c&&"text-text-secondary"),children:a.title}),a.description&&jsxRuntime.jsx("span",{className:"mt-1 text-xs text-text-secondary",children:a.description})]})]},a.id)})})})})}function FE({formId:e,show:t,isSubmitting:r,onCancel:o,primaryLabel:n="Save changes",secondaryLabel:a="Cancel",className:i}){return t?jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("fixed inset-x-0 bottom-0 z-40 border-t border-border-muted bg-background-surface/95 backdrop-blur supports-[backdrop-filter]:bg-background-surface/70",i),children:jsxRuntime.jsxs("div",{className:"mx-auto flex max-w-screen-lg items-center justify-between gap-3 p-3",children:[jsxRuntime.jsx("div",{className:"text-sm text-text-secondary",children:"You have unsaved changes"}),jsxRuntime.jsxs("div",{className:"flex gap-2",children:[jsxRuntime.jsx(Z,{variant:"secondary",onPress:o,children:a}),jsxRuntime.jsx(Z,{type:"submit",form:e,isDisabled:!!r,children:r?"Saving...":n})]})]})}):null}function BE({when:e,message:t="You have unsaved changes. Leave anyway?"}){return Oe__namespace.useEffect(()=>{if(!e)return;let r=o=>(o.preventDefault(),o.returnValue=t,t);return window.addEventListener("beforeunload",r),()=>window.removeEventListener("beforeunload",r)},[e,t]),null}function VE({steps:e,initialStepId:t,canNavigate:r}){if(e.length===0)throw new Error("useWizard: steps array cannot be empty");let[o,n]=Oe__namespace.useState(t||e[0].id),a=e.findIndex(d=>d.id===o),i=a>0,s=a<e.length-1,c=async d=>d===o?true:r&&!await r(o,d)?false:(n(d),true);return {steps:e,currentStepId:o,setCurrentStepId:c,next:async()=>!s||a===-1?false:c(e[a+1].id),prev:async()=>!i||a===-1?false:c(e[a-1].id),hasNext:s,hasPrev:i,stepIndex:a}}function $i(e,t){return t.split(".").reduce((r,o)=>r?.[o],e)}function OE(e,t){let r=$i(e,t.field),o=t.value;switch(t.operator){case "eq":return r===o;case "neq":return r!==o;case "in":return Array.isArray(o)?Array.isArray(r)?r.some(n=>o.includes(n)):o.includes(r):false;case "nin":return Array.isArray(o)?Array.isArray(r)?!r.some(n=>o.includes(n)):!o.includes(r):false;case "gt":return r instanceof Date&&typeof o=="string"?r>new Date(o):r>o;case "gte":return r instanceof Date&&typeof o=="string"?r>=new Date(o):r>=o;case "lt":return r instanceof Date&&typeof o=="string"?r<new Date(o):r<o;case "lte":return r instanceof Date&&typeof o=="string"?r<=new Date(o):r<=o;case "contains":return typeof r!="string"?false:r.toLowerCase().includes(String(o).toLowerCase());case "startsWith":return typeof r!="string"?false:r.toLowerCase().startsWith(String(o).toLowerCase());case "endsWith":return typeof r!="string"?false:r.toLowerCase().endsWith(String(o).toLowerCase());default:return false}}function ev(e,t){if(t.conditions.length===0)return true;let r=t.conditions.map(o=>"conditions"in o?ev(e,o):OE(e,o));return t.logic==="AND"?r.every(Boolean):r.some(Boolean)}function HE(e,t){return !t||t.conditions.length===0?e:e.filter(r=>ev(r,t))}function WE(e,t,r){if(e==null&&t==null)return 0;if(e==null)return r==="asc"?1:-1;if(t==null)return r==="asc"?-1:1;if(e instanceof Date&&t instanceof Date){let o=e.getTime()-t.getTime();return r==="asc"?o:-o}if(typeof e=="string"&&typeof t=="string"){let o=e.toLowerCase().localeCompare(t.toLowerCase());return r==="asc"?o:-o}return e<t?r==="asc"?-1:1:e>t?r==="asc"?1:-1:0}function GE(e,t){return t?[...e].sort((r,o)=>{let n=$i(r,t.field),a=$i(o,t.field);return WE(n,a,t.direction)}):e}function UE(e,t){if(!t||!t.query.trim())return e;let{query:r,fields:o,fuzzy:n=true,threshold:a=.3}=t;if(n)return new zE__default.default(e,{keys:o,threshold:a,ignoreLocation:true,includeScore:true}).search(r).map(l=>l.item);let i=r.toLowerCase();return e.filter(s=>o.some(c=>{let l=$i(s,c);return l==null?false:String(l).toLowerCase().includes(i)}))}function KE(e,t){let r={};for(let o of t){if(r[o.field]={},o.values)for(let n of o.values)r[o.field][String(n.value)]=0;for(let n of e){let a=$i(n,o.field);if(a!=null)if(Array.isArray(a))for(let i of a){let s=String(i);r[o.field][s]=(r[o.field][s]||0)+1;}else {let i=String(a);r[o.field][i]=(r[o.field][i]||0)+1;}}}return r}function Ep({data:e,filters:t,sort:r,search:o,facetConfigs:n=[]}){let a=UE(e,o||null);a=HE(a,t||null);let i=KE(a,n);return a=GE(a,r||null),{data:a,facetCounts:i,resultCount:a.length}}function xc({data:e,filters:t,sort:r,search:o,facetConfigs:n=[]}){return Oe.useMemo(()=>Ep({data:e,filters:t,sort:r,search:o,facetConfigs:n}),[e,t,r,o,n])}function hc({filters:e,sort:t,search:r,onStateChange:o,searchDebounce:n=300}){let a=Bo(r,n),i=Oe.useRef(true);Oe.useEffect(()=>{if(i.current){i.current=false;return}o({filters:e,sort:t,search:a});},[e,t,a,o]);}function tv(e){return e.mode==="client"?xc({data:e.data,filters:e.filters,sort:e.sort,search:e.search,facetConfigs:e.facetConfigs}):(hc({filters:e.filters,sort:e.sort,search:e.search,onStateChange:e.onStateChange,searchDebounce:e.searchDebounce}),{data:e.data,facetCounts:e.facetCounts||{},resultCount:e.resultCount??e.data.length})}var rv=Op(iu());function qE(e,t,r=true){let o=e;if(r){let n=new Date().toISOString().replace(/[:.]/g,"-").slice(0,-5);return `${o}-${n}.${t}`}return `${o}.${t}`}function QE(e,t){return t.accessor?typeof t.accessor=="function"?t.accessor(e):e[t.accessor]:null}function ov(e,t){let r=QE(t,e);return e.exportValue?e.exportValue(r,t)??"":r==null?"":r instanceof Date?r.toISOString():typeof r=="object"?JSON.stringify(r):r}function Lp(e){return e.filter(t=>t.exportable!==false)}function nv(e){let t=e.map(n=>n.exportLabel||n.label),r=new Set,o=[];for(let n of t)r.has(n)?o.includes(n)||o.push(n):r.add(n);if(o.length>0)throw new Error(`Duplicate export headers found: ${o.join(", ")}. Use exportLabel to provide unique headers.`)}async function Ap(e){let{columns:t,data:r,metadata:o={}}=e;try{let n=Lp(t);if(n.length===0)throw new Error("No exportable columns found");nv(n);let a=r.map(l=>{let u={};for(let d of n){let m=d.exportLabel||d.label;u[m]=ov(d,l);}return u}),i=nk__default.default.unparse(a,{header:!0,skipEmptyLines:!0}),s=new Blob([i],{type:"text/csv;charset=utf-8;"}),c=qE(o.filename||"table-data","csv",o.timestamp!==!1);(0,rv.saveAs)(s,c);}catch(n){throw new Error(`CSV export failed: ${n instanceof Error?n.message:"Unknown error"}`)}}function ZE(e){let{columns:t,data:r}=e,o=Lp(t);return nv(o),r.map(n=>{let a={};for(let i of o){let s=i.exportLabel||i.label;a[s]=ov(i,n);}return a})}function _E(e){return Lp(e).map(t=>t.exportLabel||t.label)}function av({columns:e,data:t,metadata:r}){let n=e.filter(i=>i.exportable!==false).length>0&&t.length>0;return {exportCSV:Oe.useCallback(async()=>{try{await Ap({columns:e,data:t,metadata:r});}catch(i){throw console.error("Table export failed:",i),i}},[e,t,r]),canExport:n}}function doe(e){switch(e){case "charging":case "on":return "success";case "discharging":return "warning";case "heat":case "cool":return "info";case "off":case "idle":case "eco":case "auto":return "neutral";default:return "neutral"}}Object.defineProperty(exports,"DialogTrigger",{enumerable:true,get:function(){return reactAriaComponents.DialogTrigger}});exports.ABSENT_GRID_FIELDS=dE;exports.ActionCell=Ub;exports.ActionMenu=fa;exports.ActivityFeed=vd;exports.ActivityFeedGroup=hs;exports.ActivityItem=ys;exports.Alert=cf;exports.AppShell=bf;exports.AreaSeries=Yo;exports.AutoMobileRenderer=wl;exports.Autocomplete=Rs;exports.Avatar=bo;exports.BREAKPOINTS=sn;exports.Badge=nt;exports.BadgeCell=Yb;exports.Banner=Ds;exports.BarSeries=Ws;exports.BooleanCell=Jb;exports.BrandProvider=Qp;exports.BreadcrumbItem=Ls;exports.Breadcrumbs=Es;exports.Button=Z;exports.CUSTOM_ICON_REGISTRY=ia;exports.Calendar=ha;exports.Card=Ue;exports.CardContent=pd;exports.CardFooter=md;exports.CardHeader=dd;exports.CardMedia=ud;exports.CardMobileRenderer=Nl;exports.CarouselAutoplayTrigger=Yf;exports.CarouselControl=Wf;exports.CarouselIndicator=Gd;exports.CarouselIndicatorGroup=Kf;exports.CarouselItem=Hf;exports.CarouselItemGroup=Of;exports.CarouselNextTrigger=Uf;exports.CarouselPrevTrigger=Gf;exports.CarouselProgressText=Jf;exports.CarouselRoot=zf;exports.CategoryBarChart=wg;exports.ChartAxis=Rr;exports.ChartBottomBar=Ta;exports.ChartContainer=Gg;exports.ChartContext=Pr;exports.ChartEventMarkers=Xs;exports.ChartEventSpans=js;exports.ChartTooltip=Jo;exports.Checkbox=Cn;exports.CheckboxGroup=Ud;exports.Chip=$r;exports.ChipInputField=$f;exports.ClearButton=ai;exports.CodeEditor=rg;exports.Collapse=ya;exports.CollapseContent=Uo;exports.CollapseHeader=Go;exports.CollapseItem=Wo;exports.ColorField=lN;exports.ColorModeProvider=sm;exports.CommandPalette=Fx;exports.Confirm=lg;exports.ConnectionStatusBadge=cg;exports.ContactCard=dg;exports.ContactMetaCell=jb;exports.ContactMetaDisplay=Vs;exports.ContainerQueryProvider=mg;exports.CopyToClipboard=zo;exports.CustomCell=qb;exports.DEFAULT_MAP_TYPE=_l;exports.DataControls=Ab;exports.DataTable=wx;exports.DateCell=Qb;exports.DateField=Bb;exports.DateRangePicker=sl;exports.Description=Te;exports.DeviceHealthBadge=kx;exports.DeviceMetaCell=_b;exports.DeviceMetaDisplay=ml;exports.DeviceStateBadge=zn;exports.DeviceStateCell=tx;exports.DeviceStateWithMetric=bl;exports.DeviceTypeIcon=Px;exports.Dialog=Nr;exports.DialogForm=vE;exports.DialogHeader=Ht;exports.Drawer=Ei;exports.DrawerForm=CE;exports.ENTITY_CATEGORY_CONFIG=cE;exports.ENTITY_CONFIG=oa;exports.EmptyState=$s;exports.EnrollmentStatusBadge=Mx;exports.ErrorBoundary=Vr;exports.FieldError=be;exports.FieldGroup=yf;exports.FileUpload=Ex;exports.FilterChips=Ib;exports.FilterDialog=Hb;exports.FirmwareVersionBadge=Ax;exports.Form=Fa;exports.FormActions=wE;exports.FormDivider=LE;exports.FormGrid=RE;exports.FormSection=EE;exports.FormStepper=AE;exports.FormatRegistry=oe;exports.FormattedCell=ox;exports.FunnelSeries=Jg;exports.GRID_ELEMENT_TYPE_BY_ENTITY=uE;exports.GRID_STATE_COLORS=lE;exports.GRID_STAT_LIST=it;exports.GlobalSearch=zx;exports.Grid=ju;exports.GridStateBadge=gl;exports.HEADLINE_METRIC_BOUNDS=gE;exports.Heading=Qt;exports.HierarchyExplorer=ph;exports.HorizontalBarCell=Bu;exports.HoverCard=pR;exports.Icon=B;exports.InfiniteScrollIndicator=wr;exports.Input=ks;exports.InputWrapper=ht;exports.InteractiveMap=Ui;exports.Kpi=gh;exports.KpiGroup=op;exports.Label=ze;exports.LineSeries=Tn;exports.List=Ch;exports.ListBox=wR;exports.ListBoxItem=_t;exports.ListItem=wh;exports.ListPane=Nh;exports.Loader=fo;exports.Logo=ba;exports.MAP_TYPES=_h;exports.Meter=oy;exports.MiniBarCell=Vu;exports.ModalBackdrop=cr;exports.Notice=oc;exports.NoticeContainer=nc;exports.NoticeProvider=ay;exports.NumberCell=lx;exports.NumberField=Ti;exports.PageBanner=Df;exports.PageLayout=Qn;exports.PercentBarCell=zu;exports.PlaceSearch=my;exports.Popover=st;exports.ProgressBar=gy;exports.Prose=by;exports.Radio=Cy;exports.RadioCard=xy;exports.RadioCardGroup=hy;exports.RadioGroup=vy;exports.RangeCalendar=Ma;exports.ResultsCount=Si;exports.RichTextEditor=Ny;exports.SKELETON_SIZES=Zo;exports.SOURCE_UNIT_TO_WH=Jc;exports.SaveBar=FE;exports.SearchControl=In;exports.SearchEmptyState=Ox;exports.SearchLoadingState=Wx;exports.SearchResultGroup=Ux;exports.SearchResultItem=Kx;exports.SearchResultsList=Yx;exports.SearchTrigger=Xx;exports.Section=Ka;exports.SectionNav=sc;exports.SegmentedControl=tl;exports.Select=go;exports.SelectCell=dx;exports.SideNav=Cs;exports.SiteCard=ky;exports.SiteContactCard=Py;exports.SiteMetaCell=px;exports.SiteMetaDisplay=yl;exports.Skeleton=J;exports.Slider=Ry;exports.SortControl=wi;exports.SparklineCell=Ou;exports.SplitPane=fc;exports.StackNav=Ss;exports.StatList=Ll;exports.StaticMap=Ua;exports.Switch=ll;exports.Tab=pc;exports.TabList=uc;exports.TabPanel=dy;exports.Tabs=dc;exports.TextArea=Iy;exports.TextAreaWithChips=zy;exports.TextCell=bx;exports.TextField=Er;exports.TextLink=Ze;exports.TiledTimeSeriesChart=Zs;exports.TiledTimeSeriesExplorer=Rb;exports.TimeControls=rl;exports.TimeField=Hy;exports.Timeline=Wy;exports.TimelineItem=Gy;exports.ToggleButton=Yy;exports.Tooltip=Zt;exports.TopNav=ni;exports.Tray=lt;exports.UnsavedChangesPrompt=BE;exports.activeDeviceStates=K1;exports.addFilterCondition=Qo;exports.applyDataOperations=Ep;exports.archetypeFor=bE;exports.assembleSeries=db;exports.autoScaleCurrent=RC;exports.autoScaleDistance=bm;exports.autoScaleEnergy=vm;exports.autoScalePower=BC;exports.autoScaleResistance=VC;exports.autoScaleVoltage=KC;exports.baselineFromPoint=zN;exports.camelCaseToWords=Bm;exports.capitalize=Im;exports.celsiusToFahrenheit=zC;exports.celsiusToKelvin=jA;exports.centimetersToInches=MA;exports.clearColorCache=os;exports.createCategoryColorMap=dC;exports.createEmptyFilter=Ni;exports.createFilter=s1;exports.createFilters=l1;exports.createFormat=C5;exports.createTextureIcon=rt;exports.createTiledCameraSyncGroup=Xg;exports.createXScale=tu;exports.createYScale=ui;exports.csvUnitFor=nd;exports.csvValueFor=Om;exports.defaultMargin=Ie;exports.deviceStateLabels=Y1;exports.deviceStateMetricFormats=_G;exports.emptyStore=ub;exports.entityHasDetailPage=xE;exports.entityHasStatList=yE;exports.entityShowsNow=hE;exports.enumToSentenceCase=GC;exports.exportChart=lu;exports.exportTableAsCSV=Ap;exports.fahrenheitToCelsius=OC;exports.fahrenheitToKelvin=qA;exports.feetToMeters=vA;exports.feetToMiles=wA;exports.filterToChips=c1;exports.formatBoolean=lm;exports.formatCapacity=_L;exports.formatComponentValue=Xr;exports.formatCurrency=mm;exports.formatCurrent=Vc;exports.formatDate=fm;exports.formatDistance=xm;exports.formatEmptyValue=ul;exports.formatEnergy=Xc;exports.formatFieldValue=Br;exports.formatInternationalPhone=jc;exports.formatNumber=pm;exports.formatPercent=dm;exports.formatPhone=Cm;exports.formatPhoneNumber=ca;exports.formatPower=_c;exports.formatPowerRating=$L;exports.formatResistance=ed;exports.formatTemperature=Mm;exports.formatText=zm;exports.formatUSPhone=ss;exports.formatVoltage=od;exports.getBadgeClasses=Wb;exports.getBooleanBadgeVariant=Gb;exports.getCellAlignmentClasses=Eu;exports.getCellContainerClasses=Me;exports.getCellTextClasses=Lr;exports.getContrastingTextColor=uC;exports.getDateParts=fA;exports.getDefaultChartColor=Qa;exports.getDefaultColors=_p;exports.getDeviceStateDisplayLabel=Iu;exports.getDeviceStateLabel=Iu;exports.getEntityCategory=fE;exports.getEntityConfig=gc;exports.getEntityIcon=pE;exports.getEntityLabel=mE;exports.getEntityStatList=Jy;exports.getEventColor=ho;exports.getExportFormatName=ck;exports.getExportHeaders=_E;exports.getFieldGroupStyles=dS;exports.getFilterFields=Bn;exports.getGridStateLabel=ex;exports.getInputBackgroundStyles=hf;exports.getInputBaseStyles=Vt;exports.getInputStateStyles=Vo;exports.getLinkClasses=Lu;exports.getNumericColorClasses=pl;exports.getResolvedColor=Tt;exports.getSkeletonSize=nr;exports.getStateTone=doe;exports.getThemeCategoricalColors=ln;exports.getYFormatSettings=Or;exports.gridStateLabels=X1;exports.inchesToCentimeters=RA;exports.isActiveDeviceState=Au;exports.isActiveState=Au;exports.isCustomPinsLayer=pp;exports.isExportSupported=lk;exports.isFilterEmpty=il;exports.isGeoJsonLayer=up;exports.isLightColor=$p;exports.isNil=me;exports.isRasterLayer=mp;exports.isVectorLayer=dp;exports.kelvinToCelsius=HC;exports.kelvinToFahrenheit=QA;exports.kilometersToMiles=SA;exports.layer=cp;exports.mapValuesToCategoricalColors=Rc;exports.metersToFeet=yA;exports.metersToMiles=NA;exports.metersToYards=PA;exports.milesToFeet=gm;exports.milesToKilometers=CA;exports.milesToMeters=kA;exports.parseBoolean=Eo;exports.pickEnergyUnit=Yc;exports.prepareTableDataForExport=ZE;exports.registerPhosphorIcon=ty;exports.removeFilterCondition=Fn;exports.resolveValue=Se;exports.snakeCaseToWords=Vm;exports.temperatureStringToSymbol=Nm;exports.tierForViewport=_s;exports.tileIndexAt=pT;exports.tileKey=rr;exports.tileReducer=pb;exports.tilesForViewport=Xo;exports.toA=cA;exports.toActiveInactive=yC;exports.toAmps=as;exports.toBoolean=Do;exports.toCelsius=Tm;exports.toCentimeters=AC;exports.toCheckmark=CC;exports.toCompactNumber=kC;exports.toCurrency=um;exports.toCustomDateFormat=LC;exports.toDateString=MC;exports.toEnabledDisabled=xC;exports.toFahrenheit=km;exports.toFeet=Hc;exports.toFloat=wC;exports.toFormattedNumber=NC;exports.toFullDateTime=DC;exports.toGW=WA;exports.toGWh=ym;exports.toGigawatts=Zc;exports.toISOString=EC;exports.toInches=FC;exports.toInteger=SC;exports.toKA=dA;exports.toKV=n5;exports.toKW=OA;exports.toKelvin=Pm;exports.toKiloamps=Bc;exports.toKilohms=Sm;exports.toKilometers=Oc;exports.toKilovolts=rd;exports.toKilowatts=qc;exports.toLowerCase=Em;exports.toMA=lA;exports.toMV=r5;exports.toMW=HA;exports.toMWh=hm;exports.toMegawatts=Qc;exports.toMegohms=wm;exports.toMeters=zc;exports.toMiles=Wc;exports.toMilliamps=Fc;exports.toMillimeters=IC;exports.toMilliohms=$c;exports.toMillivolts=td;exports.toNauticalMiles=hA;exports.toOhms=cs;exports.toOnOff=hC;exports.toPercentage=cm;exports.toRelativeTime=is;exports.toScientificNotation=TC;exports.toSecret=UC;exports.toSentenceCase=Lm;exports.toTemperature=Rm;exports.toTitleCase=Am;exports.toTrueFalse=vC;exports.toUpperCase=Dm;exports.toV=o5;exports.toVolts=ps;exports.toW=zA;exports.toWatts=ls;exports.toWh=Uc;exports.toYards=Gc;exports.tokWh=Kc;exports.truncateEnd=us;exports.truncateMiddle=da;exports.truncateStart=ds;exports.typeRole=ft;exports.typographyRole=jr;exports.ucFirst=Fm;exports.useBreakpoint=Xt;exports.useChartContext=kn;exports.useClientDataControls=xc;exports.useColorMode=Bt;exports.useComponentFormatter=oA;exports.useContainerBreakpoint=ug;exports.useDataControls=tv;exports.useDebounce=Bo;exports.useElementSize=xa;exports.useInfiniteScroll=Io;exports.useInputFocus=Tr;exports.useLocalStorage=Gl;exports.useMediaQuery=Jt;exports.useNotice=sy;exports.useServerDataControls=hc;exports.useTableExport=av;exports.useTileWindow=yb;exports.useTiledTimeSeries=yu;exports.useWizard=VE;exports.wrapWithLink=no;exports.yardsToMeters=TA;//# sourceMappingURL=index.cjs.map
|
|
46
|
+
`).map((U,I)=>jsxRuntime.jsxs(Oe__namespace.default.Fragment,{children:[U,I<Q.split(`
|
|
47
|
+
`).length-1&&jsxRuntime.jsx("br",{})]},`line-${L}-${I}`)):Q}):null;return jsxRuntime.jsx("div",{className:"group flex flex-col",children:jsxRuntime.jsxs("div",{className:"flex flex-col",children:[e&&jsxRuntime.jsx(ze,{size:o,tooltip:n,isRequired:a,children:e}),jsxRuntime.jsx(yt,{children:jsxRuntime.jsx("div",{ref:N,contentEditable:!c,suppressContentEditableWarning:true,onInput:j=>{if(c)return;let Q=j.target,L=Q.querySelector("[data-chip-id]")!==null,D;if(L?(D=E(Q),D=D.replace(/(\{\{[^}]+\}\})\s{2,}/g,"$1 ").replace(/\s{2,}(\{\{[^}]+\}\})/g," $1")):D=Q.textContent||"",D===""){try{let C=document.createRange();C.selectNodeContents(Q),C.collapse(!0);let F=window.getSelection();F?.removeAllRanges(),F?.addRange(C),M.current=0;}catch{}O("",0);return}if(D===m)return;let U=window.getSelection(),I=0;if(U&&U.rangeCount>0)try{let C=U.getRangeAt(0);if(L){let F=0,H=!1,Y=te=>{if(H)return !0;if(te===C.startContainer)return F+=C.startOffset,H=!0,!0;if(te.nodeType===Node.TEXT_NODE){if(!te.parentElement?.closest("[data-chip-id]")){if(te.contains(C.startContainer))return F+=C.startOffset,H=!0,!0;F+=(te.textContent||"").length;}}else if(te.nodeType===Node.ELEMENT_NODE){let de=te;if(de.hasAttribute("data-chip-id")){if(de.contains(C.startContainer)||de===C.startContainer){let ae=de.getAttribute("data-chip-id");return F+=`{{${ae}}}`.length,H=!0,!0}let _=de.getAttribute("data-chip-id");return F+=`{{${_}}}`.length,!1}else if(de.tagName==="BR")return de===C.startContainer?(H=!0,!0):(F+=1,!1)}for(let de=0;de<te.childNodes.length;de++)if(Y(te.childNodes[de]))return !0;return !1};Y(Q),I=F;}else {let F=document.createRange();F.setStart(Q,0),F.setEnd(C.startContainer,C.startOffset),I=F.toString().length;}}catch{I=D.length;}M.current=I,O(D,I);},onKeyDown:j=>{if(c)return;let Q=window.getSelection();if(!(!Q||Q.rangeCount===0))try{let L=Q.getRangeAt(0),D=L.commonAncestorContainer;if(j.key==="ArrowLeft"||j.key==="ArrowRight"){let U=D.nodeType===Node.TEXT_NODE?D.parentElement?.closest("[data-chip-id]"):D.closest("[data-chip-id]");if(U){j.preventDefault();try{let I=document.createRange(),C=window.getSelection();j.key==="ArrowLeft"?I.setStartBefore(U):I.setStartAfter(U),I.collapse(!0),C?.removeAllRanges(),C?.addRange(I);}catch{}}}if(j.key==="Backspace"){let U=null;if(U=(D.nodeType===Node.TEXT_NODE?D.parentElement?.closest("[data-chip-id]"):D.closest("[data-chip-id]"))||null,!U)if(D.nodeType===Node.TEXT_NODE){let I=D;if(L.startOffset===0&&I.parentElement){let C=I.previousSibling;if(C&&C.nodeType===Node.ELEMENT_NODE){let F=C.closest("[data-chip-id]");F&&(U=F);}}}else {let I=D;if(L.startOffset>0){let C=I.childNodes[L.startOffset-1];if(C&&C.nodeType===Node.ELEMENT_NODE){let F=C.closest("[data-chip-id]");F&&(U=F);}}}if(U){j.preventDefault(),j.stopPropagation();let I=U.getAttribute("data-chip-id");if(!I)return;let C=`{{${I}}}`,F=m.indexOf(C);if(F!==-1){let H=m.slice(0,F)+m.slice(F+C.length),Y=g.filter(te=>te.id!==I);M.current=F;try{window.getSelection()?.removeAllRanges();}catch{}f?.(Y),p?.(H);}}}}catch{}},onFocus:j=>{c||(w.onFocus&&w.onFocus(j),k(j));},onBlur:j=>{c||(w.onBlur&&w.onBlur(j),T(j));},className:W(),style:{whiteSpace:"pre-wrap",wordBreak:"break-word",...w.style},"data-placeholder":w.placeholder,children:q()},m===""?"empty":"content")}),t&&jsxRuntime.jsx(Te,{size:o,className:"mt-3",children:t}),typeof r=="string"&&jsxRuntime.jsx(be,{size:o,className:"mt-1",children:r}),typeof r=="function"&&d&&jsxRuntime.jsx(be,{size:o,className:"mt-1",children:r(d)})]})})}function lE({isPlaceholder:e,isDisabled:t,size:r="md"}){return tailwindMerge.twMerge("inline-block box-content px-0.5 rounded outline-none tabular-nums text-center transition-colors",{sm:"text-base md:text-xs",md:"text-base md:text-sm",lg:"text-base",xl:"text-lg"}[r],e?"text-text-disabled italic":"text-text-primary",t?"text-text-disabled cursor-not-allowed":"cursor-text",!t&&"hover:bg-background-hover","data-[focused]:bg-background-selected data-[focused]:text-text-primary")}function Ky({label:e,description:t,errorMessage:r,size:o="md",tooltip:n,isRequired:a,isDisabled:i,isInvalid:s,reserveErrorSpace:c=true,validationResult:l,className:u,descriptionPlacement:d="below",...m}){return jsxRuntime.jsxs(reactAriaComponents.TimeField,{...m,isDisabled:i,isRequired:a,isInvalid:s,className:ke(u,"flex flex-col gap-1"),children:[e&&jsxRuntime.jsx(ze,{size:o,tooltip:n,description:d==="tooltip"||d==="inline"?t:void 0,descriptionPlacement:d,isRequired:a,children:e}),jsxRuntime.jsx(yt,{children:jsxRuntime.jsx(reactAriaComponents.DateInput,{className:tailwindMerge.twMerge(zo({isInvalid:s,isDisabled:i}),"px-3 py-2 flex items-center gap-0.5 w-full"),children:p=>jsxRuntime.jsx(reactAriaComponents.DateSegment,{segment:p,className:lE({isPlaceholder:p.isPlaceholder,isDisabled:!p.isEditable||i,size:o})})})}),c?jsxRuntime.jsx("div",{className:"mt-1 min-h-[20px]",children:typeof r=="string"?jsxRuntime.jsx(be,{size:o,children:r}):typeof r=="function"&&l?jsxRuntime.jsx(be,{size:o,children:r(l)}):t&&d==="below"?jsxRuntime.jsx(Te,{size:o,children:t}):null}):jsxRuntime.jsx(jsxRuntime.Fragment,{children:typeof r=="string"?jsxRuntime.jsx(be,{size:o,className:"mt-1",children:r}):typeof r=="function"&&l?jsxRuntime.jsx(be,{size:o,className:"mt-1",children:r(l)}):t&&d==="below"?jsxRuntime.jsx(Te,{size:o,className:"mt-1",children:t}):null})]})}function Yy({children:e,className:t=""}){return jsxRuntime.jsx("div",{className:`flex flex-col ${t}`.trim(),role:"list",children:e})}function Jy({children:e,variant:t="default",icon:r,label:o,isLast:n=false,className:a=""}){let s={default:{dot:"bg-border-default border-border-default",line:"bg-border-default",label:"text-text-secondary",content:"text-text-primary"},active:{dot:"bg-text-primary border-text-primary",line:"bg-border-default",label:"text-text-secondary",content:"text-text-primary font-medium"},muted:{dot:"bg-border-muted border-border-muted",line:"bg-border-muted",label:"text-text-secondary",content:"text-text-secondary"},success:{dot:"bg-feedback-success-border border-feedback-success-border",line:"bg-border-default",label:"text-text-secondary",content:"text-text-primary"},error:{dot:"bg-feedback-error-border border-feedback-error-border",line:"bg-border-default",label:"text-text-secondary",content:"text-text-primary"},warning:{dot:"bg-feedback-warning-border border-feedback-warning-border",line:"bg-border-default",label:"text-text-secondary",content:"text-text-primary"},info:{dot:"bg-feedback-info-border border-feedback-info-border",line:"bg-border-default",label:"text-text-secondary",content:"text-text-primary"}}[t];return jsxRuntime.jsxs("div",{className:`flex gap-3 ${a}`.trim(),role:"listitem",children:[jsxRuntime.jsxs("div",{className:"flex flex-col items-center",style:{width:"20px"},children:[jsxRuntime.jsx("div",{className:`flex items-center justify-center rounded-full border-2 ${s.dot}`,style:{width:"20px",height:"20px",flexShrink:0},children:r&&jsxRuntime.jsx(B,{name:r,size:12,className:"text-background-body"})}),!n&&jsxRuntime.jsx("div",{className:`w-0.5 flex-1 ${s.line}`,style:{minHeight:"24px"}})]}),jsxRuntime.jsxs("div",{className:"flex-1 pb-6",children:[o&&jsxRuntime.jsx("div",{className:`text-xs mb-1 ${s.label}`,children:o}),jsxRuntime.jsx("div",{className:`text-sm ${s.content}`,children:e})]})]})}function mE(e){return "primary"}var fE="flex font-medium justify-center items-center gap-2 text-center transition whitespace-nowrap box-border",Xy={primary:{selected:"bg-action-primary text-[color:var(--color-action-primary-text)] hover:bg-action-primary-hover forced-colors:bg-[ButtonText] forced-colors:text-[ButtonFace] border-2 border-transparent",unselected:"bg-transparent text-action-primary border-2 border-border-muted hover:bg-text-primary/[0.05] forced-colors:border-[ButtonBorder] forced-colors:bg-[ButtonFace] forced-colors:text-[ButtonText]"}},gE="opacity-[--control-hover-opacity] cursor-not-allowed pointer-events-none grayscale",bE="opacity-100 cursor-pointer",xE={"top-right":"-right-2 -top-2","top-left":"-left-2 -top-2","bottom-right":"-right-2 -bottom-2","bottom-left":"-left-2 -bottom-2"},hE={primary:"bg-action-primary text-[color:var(--color-action-primary-text)]",destructive:"bg-feedback-error-border text-text-inverse"};function yE(e){let{variant:t="primary",size:r="md",isDisabled:o,isSelected:n,borderRadius:a,borderRight:i,borderLeft:s}=e,c=mE(),l=`${fE} ${n?Xy[c].selected:Xy[c].unselected}`;return l+=` ${Ge[r].text} ${Ge[r].height} ${Ge[r].padding} ${Ge[r].gap}`,l+=` ${o?gE:bE}`,a==="left"&&(l+=" rounded-l-sm"),a==="right"&&(l+=" rounded-r-sm"),i&&(l+=" border-r"),s&&(l+=" border-l"),l+=` ${Je()}`,(l+=" focus-visible:outline-action-primary"),tailwindMerge.twMerge(l)}function qy(e){let{className:t,children:r,onPress:o,icon:n,iconPosition:a="left",iconWeight:i,isLoading:s=false,loadingText:c,loadingIndicator:l,size:u="md",badgeNumber:d,badgeVariant:m="primary",badgePosition:p="top-right",...g}=e,f=n?jsxRuntime.jsx(B,{name:n,size:u,weight:i}):null,h=()=>{let x=jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[a==="left"&&f,r,a==="right"&&f]});return s?jsxRuntime.jsxs("div",{className:"relative inline-flex items-center justify-center",children:[jsxRuntime.jsx("div",{className:"absolute inset-0 flex items-center justify-center",children:l||jsxRuntime.jsx(B,{name:"CircleNotch",size:u,className:"animate-spin","aria-hidden":"true"})}),jsxRuntime.jsx("div",{className:"invisible","aria-hidden":"true",children:x}),c&&jsxRuntime.jsx("span",{className:"sr-only",role:"status","aria-live":"polite",children:c})]}):x},b=jsxRuntime.jsx(reactAriaComponents.ToggleButton,{onPress:o,...g,className:tailwindMerge.twMerge(yE(e),t),"aria-busy":s,children:h()});return d&&d>0?jsxRuntime.jsxs("div",{className:"relative",children:[b,jsxRuntime.jsx("span",{className:`absolute ${xE[p]} flex h-5 w-5 items-center justify-center rounded-full ${hE[m]} text-xs`,"aria-label":`${d} items`,children:d})]}):b}var CE={open:{className:"text-feedback-success-border",token:"--color-feedback-success-border",label:"Open"},closed:{className:"text-feedback-error-border",token:"--color-feedback-error-border",label:"Closed"}},SE={platform:{label:"Platform",description:"Core product objects that structure the Texture workspace.",icon:"Stack",order:0},grid:{label:"Grid Elements",description:"Physical utility-grid infrastructure imported from a customer's GIS export.",icon:"TreeStructure",order:1},device:{label:"Devices",description:"Behind-the-meter connected energy devices.",icon:"Lightning",order:2}},wE=["energized","customerName","gs_max_continuous_current"],st={TRANSFORMER:[{key:"capacityKva",label:"kVA Rating",format:{type:"power",unit:"kVA",decimals:0}},{key:"primaryRatedVoltage",label:"Primary Voltage",format:{type:"voltage",unit:"V",decimals:0}}],CONSUMER:[{key:"meterNumber",label:"Meter Number",format:{type:"text"}}],SOURCE:[{key:"busVoltage",label:"Bus Voltage",format:{type:"voltage",unit:"V",decimals:0}},{key:"nominalVoltage",label:"Nominal Voltage",format:{type:"voltage",unit:"V",decimals:0}},{key:"substationNumber",label:"Substation Number",format:{type:"text"}}],SWITCH:[{key:"switchId",label:"Switch ID",format:{type:"text"}},{key:"ratedCurrent",label:"Rated Current",format:{type:"number",unit:"A",decimals:0}},{key:"normalState",label:"Normal State",format:{type:"text"}}],CAPACITOR:[{key:"unitSizeKvar",label:"Capacity",format:{type:"power",unit:"kVar",decimals:1}},{key:"nominalVoltage",label:"Nominal Voltage",format:{type:"voltage",unit:"V",decimals:0}}],OVERCURRENT_DEVICE:[{key:"ratedCurrent",label:"Rated Current",format:{type:"number",unit:"A",decimals:0}},{key:"deviceType",label:"Device Type",format:{type:"text"}}],REGULATOR:[{key:"outputVoltagePhA",label:"Output Voltage Phase A",format:{type:"voltage",unit:"V",decimals:0}},{key:"outputVoltagePhB",label:"Output Voltage Phase B",format:{type:"voltage",unit:"V",decimals:0}},{key:"outputVoltagePhC",label:"Output Voltage Phase C",format:{type:"voltage",unit:"V",decimals:0}},{key:"ratedPower",label:"Rated Power",format:{type:"power",unit:"kVA",decimals:1}}],OVERHEAD_LINE:[{key:"impedanceLength",label:"Length",format:{type:"distance",unit:"ft",decimals:0}},{key:"conductorDescPhA",label:"Conductor Phase A",format:{type:"text"}},{key:"conductorDescPhB",label:"Conductor Phase B",format:{type:"text"}},{key:"conductorDescPhC",label:"Conductor Phase C",format:{type:"text"}}],UNDERGROUND_LINE:[{key:"impedanceLength",label:"Length",format:{type:"distance",unit:"ft",decimals:0}},{key:"conductorDescPhA",label:"Conductor Phase A",format:{type:"text"}},{key:"conductorDescPhB",label:"Conductor Phase B",format:{type:"text"}},{key:"conductorDescPhC",label:"Conductor Phase C",format:{type:"text"}}],NODE:[{key:"nominalVoltage",label:"Nominal Voltage",format:{type:"voltage",unit:"V",decimals:0}}],GENERATOR:[{key:"ratedPower",label:"Rated Power",format:{type:"power",unit:"kW",decimals:1}},{key:"outputVoltage",label:"Output Voltage",format:{type:"voltage",unit:"V",decimals:0}}],MOTOR:[{key:"ratedPower",label:"Rated Power",format:{type:"power",unit:"kW",decimals:1}},{key:"voltage",label:"Voltage",format:{type:"voltage",unit:"V",decimals:0}}]},na={app:{icon:"AppWindow",category:"platform",archetype:"platform",detailPage:false,label:{singular:"App",plural:"Apps"},description:"Workspace tools and third-party integrations"},site:{icon:"MapPin",category:"platform",archetype:"platform",detailPage:true,label:{singular:"Site",plural:"Sites"},description:"Physical location housing energy systems"},device:{icon:"ShareNetwork",category:"platform",archetype:"platform",detailPage:false,label:{singular:"Device",plural:"Devices"},description:"Connected, controllable energy device"},customer:{icon:"Users",category:"platform",archetype:"platform",detailPage:true,label:{singular:"Customer",plural:"Customers"},description:"End customer or owner of one or more sites"},contact:{icon:"Users",category:"platform",archetype:"platform",detailPage:false,label:{singular:"Contact",plural:"Contacts"},description:"Person associated with a customer or site"},program:{icon:"ClipboardText",category:"platform",archetype:"platform",detailPage:false,label:{singular:"Program",plural:"Programs"},description:"Demand-response or virtual power plant program"},workflow:{icon:"FlowArrow",category:"platform",archetype:"platform",detailPage:false,label:{singular:"Workflow",plural:"Workflows"},description:"Automated rule that runs in response to events"},collection:{icon:"Stack",category:"platform",archetype:"platform",detailPage:false,label:{singular:"Collection",plural:"Collections"},description:"Named group of related entities or records"},board:{icon:"SquaresFour",category:"platform",archetype:"platform",detailPage:false,label:{singular:"Board",plural:"Boards"},description:"Dashboard for monitoring metrics and devices"},report:{icon:"ChartLine",category:"platform",archetype:"platform",detailPage:false,label:{singular:"Report",plural:"Reports"},description:"Saved analytics view or generated report"},event:{icon:"ClockCounterClockwise",category:"platform",archetype:"platform",detailPage:false,label:{singular:"Event",plural:"Events"},description:"Recorded system event or logged activity"},alert:{icon:"Warning",category:"platform",archetype:"platform",detailPage:false,label:{singular:"Alert",plural:"Alerts"},description:"Notification raised when attention is needed"},monitor:{icon:"Pulse",category:"platform",archetype:"platform",detailPage:false,label:{singular:"Monitor",plural:"Monitors"},description:"Rule that watches a metric against a threshold"},command:{icon:"Play",category:"platform",archetype:"platform",detailPage:false,label:{singular:"Command",plural:"Commands"},description:"Control action issued to a connected device"},source:{icon:"TextureSource",category:"grid",archetype:"grid-energized",detailPage:true,properties:{statList:st.SOURCE},label:{singular:"Source",plural:"Sources"},description:"Upstream feed where the network originates"},substation:{icon:"TextureSource",category:"grid",archetype:"grid-energized",detailPage:true,properties:{statList:st.SOURCE},label:{singular:"Substation",plural:"Substations"},description:"Facility that steps down transmission voltage"},capacitor:{icon:"TextureCapacitor",category:"grid",archetype:"grid-energized",detailPage:true,properties:{statList:st.CAPACITOR},label:{singular:"Capacitor",plural:"Capacitors"},description:"Capacitor bank for power-factor and voltage support"},switch:{icon:"TextureSwitchClosed",category:"grid",archetype:"grid-energized",detailPage:true,properties:{statList:st.SWITCH},label:{singular:"Switch",plural:"Switches"},description:"Sectionalizing or disconnect switch on the line",states:{open:{icon:"TextureSwitch",color:"open"},closed:{icon:"TextureSwitchClosed",color:"closed"}}},sectionalizer:{icon:"TextureSectionalizerClosed",category:"grid",archetype:"grid-energized",detailPage:true,properties:{statList:st.SWITCH},label:{singular:"Sectionalizer",plural:"Sectionalizers"},description:"Counts upstream recloser trips and opens to isolate a faulted section",states:{open:{icon:"TextureSectionalizerOpen",color:"open"},closed:{icon:"TextureSectionalizerClosed",color:"closed"}}},relay:{icon:"Cpu",category:"grid",archetype:"grid-energized",detailPage:true,properties:{statList:st.NODE},label:{singular:"Relay",plural:"Relays"},description:"Microprocessor relay that senses faults and trips devices"},transformer:{icon:"TextureTransformer",category:"grid",archetype:"grid-energized",detailPage:true,properties:{statList:st.TRANSFORMER},label:{singular:"Transformer",plural:"Transformers"},description:"Transformer that steps voltage up or down"},meter:{icon:"Gauge",category:"grid",archetype:"grid-energized",detailPage:true,properties:{statList:st.CONSUMER},label:{singular:"Meter",plural:"Meters"},description:"Revenue meter at the point of consumption",fusedMetricId:"power",fields:{headlineMetrics:[{id:"power",label:"device.meter.fields.power",source:{kind:"state",path:"state.phaseARealPower"},format:{type:"power",unit:"kW",decimals:2},icon:"Pulse"},{id:"consumption",label:"device.meter.fields.consumption",source:{kind:"state",path:"state.latestKwhUsage"},format:{type:"energy",sourceUnit:"kWh",decimals:2},icon:"Lightning"},{id:"voltage",label:"device.meter.fields.voltage",source:{kind:"state",path:"state.phaseAVoltage"},format:{type:"voltage",decimals:1},icon:"Lightning"},{id:"current",label:"device.meter.fields.current",source:{kind:"state",path:"state.phaseACurrent"},format:{type:"current",decimals:2},icon:"Lightning"}]}},consumer:{icon:"Gauge",category:"grid",archetype:"grid-energized",detailPage:true,properties:{statList:st.CONSUMER},label:{singular:"Consumer",plural:"Consumers"},description:"Service point or customer premise on the grid"},singlePhaseOverheadLine:{icon:"TextureSinglePhaseOverheadLine",category:"grid",archetype:"grid-line",detailPage:true,properties:{statList:st.OVERHEAD_LINE},label:{singular:"Single-Phase Overhead Line",plural:"Single-Phase Overhead Lines"},description:"Overhead line carrying one phase conductor"},twoPhaseOverheadLine:{icon:"TextureTwoPhaseOverheadLine",category:"grid",archetype:"grid-line",detailPage:true,properties:{statList:st.OVERHEAD_LINE},label:{singular:"Two-Phase Overhead Line",plural:"Two-Phase Overhead Lines"},description:"Overhead line carrying two phase conductors"},threePhaseOverheadLine:{icon:"TextureThreePhaseOverheadLine",category:"grid",archetype:"grid-line",detailPage:true,properties:{statList:st.OVERHEAD_LINE},label:{singular:"Three-Phase Overhead Line",plural:"Three-Phase Overhead Lines"},description:"Overhead line carrying three phase conductors"},singlePhaseUndergroundLine:{icon:"TextureSinglePhaseUndergroundLine",category:"grid",archetype:"grid-line",detailPage:true,properties:{statList:st.UNDERGROUND_LINE},label:{singular:"Single-Phase Underground Line",plural:"Single-Phase Underground Lines"},description:"Buried line carrying one phase conductor"},twoPhaseUndergroundLine:{icon:"TextureTwoPhaseUndergroundLine",category:"grid",archetype:"grid-line",detailPage:true,properties:{statList:st.UNDERGROUND_LINE},label:{singular:"Two-Phase Underground Line",plural:"Two-Phase Underground Lines"},description:"Buried line carrying two phase conductors"},threePhaseUndergroundLine:{icon:"TextureThreePhaseUndergroundLine",category:"grid",archetype:"grid-line",detailPage:true,properties:{statList:st.UNDERGROUND_LINE},label:{singular:"Three-Phase Underground Line",plural:"Three-Phase Underground Lines"},description:"Buried line carrying three phase conductors"},motorSwitch:{icon:"Diamond",category:"grid",archetype:"grid-energized",detailPage:true,properties:{statList:st.MOTOR},label:{singular:"Motor Switch",plural:"Motor Switches"},description:"Motor-operated switch or motor load element"},recloser:{icon:"TextureRecloser",category:"grid",archetype:"grid-energized",detailPage:true,properties:{statList:st.OVERCURRENT_DEVICE},label:{singular:"Recloser",plural:"Reclosers"},description:"Auto-reclosing device that clears transient faults",states:{open:{color:"open"},closed:{color:"closed"}}},fuse:{icon:"TextureFuse",category:"grid",archetype:"grid-energized",detailPage:true,properties:{statList:st.OVERCURRENT_DEVICE},label:{singular:"Fuse",plural:"Fuses"},description:"Fusible element providing overcurrent protection"},breaker:{icon:"TextureBreaker",category:"grid",archetype:"grid-energized",detailPage:true,properties:{statList:st.OVERCURRENT_DEVICE},label:{singular:"Breaker",plural:"Breakers"},description:"Circuit breaker that interrupts fault current",states:{open:{color:"open"},closed:{color:"closed"}}},generator:{icon:"Wind",category:"grid",archetype:"grid-energized",detailPage:true,properties:{statList:st.GENERATOR},label:{singular:"Generator",plural:"Generators"},description:"Distributed generation unit feeding the grid"},regulator:{icon:"TextureRegulator",category:"grid",archetype:"grid-energized",detailPage:true,properties:{statList:st.REGULATOR},label:{singular:"Regulator",plural:"Regulators"},description:"Voltage regulator that holds line voltage in range"},supportStructure:{icon:"TextureSupportStructure",category:"grid",archetype:"grid-line",detailPage:true,properties:{statList:st.NODE},label:{singular:"Support Structure",plural:"Support Structures"},description:"Structure carrying overhead line equipment"},battery:{icon:"BatteryHigh",category:"device",archetype:"device",detailPage:true,label:{singular:"Battery",plural:"Batteries"},description:"Behind-the-meter battery or storage system",fusedMetricId:"soc",fields:{headlineMetrics:[{id:"power",label:"device.battery.fields.power",source:{kind:"state",path:"state.gridPower"},format:{type:"power",decimals:1},icon:"Lightning"},{id:"soc",label:"device.battery.fields.soc",source:{kind:"state",path:"state.chargePercentage"},format:{type:"percentage",decimals:0},icon:"BatteryCharging"},{id:"backupReserve",label:"device.battery.fields.backupReserve",source:{kind:"state",path:"state.backupReserve"},format:{type:"percentage",decimals:0},icon:"BatteryCharging"},{id:"loadPower",label:"device.battery.fields.loadPower",source:{kind:"state",path:"state.loadPower"},format:{type:"power",decimals:1},icon:"Lightning"}]},stateRules:{primaryState:{label:"device.battery.fields.status",fieldPath:"state.chargingState",mapping:{charging:"charging",discharging:"discharging",idle:"idle",unknown:"unknown"},fallback:"unknown"},secondaryState:{label:"device.battery.fields.gridState",fieldPath:"state.gridStatus",mapping:{importing:"importing",exporting:"exporting",idle:"importing",unknown:"importing"},fallback:"importing"}}},evCharger:{icon:"ChargingStation",category:"device",archetype:"device",detailPage:true,label:{singular:"EV Charger",plural:"EV Chargers"},description:"Electric-vehicle charging station or port",fusedMetricId:"power",fields:{headlineMetrics:[{id:"power",label:"device.evCharger.fields.power",source:{kind:"state",path:"state.chargerWattage"},format:{type:"power",decimals:1},icon:"Lightning"},{id:"isPluggedIn",label:"device.evCharger.fields.isPluggedIn",source:{kind:"state",path:"state.isPluggedIn"},format:{type:"boolean",trueText:"Yes",falseText:"No"},icon:"Plug"},{id:"voltage",label:"device.evCharger.fields.voltage",source:{kind:"state",path:"state.chargerVoltage"},format:{type:"voltage",decimals:1},icon:"Lightning"},{id:"current",label:"device.evCharger.fields.current",source:{kind:"state",path:"state.chargerCurrent"},format:{type:"current",decimals:1},icon:"Lightning"}]},stateRules:{primaryState:{label:"device.evCharger.fields.status",fieldPath:"state.chargingState",mapping:{charging:"charging",discharging:"discharging",idle:"idle",unknown:"unknown"},fallback:"unknown"}}},inverter:{icon:"Sun",category:"device",archetype:"device",detailPage:true,label:{singular:"Solar / Inverter",plural:"Solar / Inverters"},description:"Solar PV inverter and its connected array",fusedMetricId:"power",fields:{headlineMetrics:[{id:"power",label:"device.inverter.fields.power",source:{kind:"state",path:"state.power"},format:{type:"power",decimals:0},icon:"Lightning"},{id:"gridPower",label:"device.inverter.fields.gridPower",source:{kind:"state",path:"state.gridPower"},format:{type:"power",decimals:0},icon:"GridFour"},{id:"generatedEnergy",label:"device.inverter.fields.generatedEnergy",source:{kind:"state",path:"state.generatedEnergy"},format:{type:"energy",decimals:1},icon:"Lightning"},{id:"lifetimeEnergyGenerated",label:"device.inverter.fields.lifetimeEnergyGenerated",source:{kind:"state",path:"state.lifetimeEnergyGenerated"},format:{type:"energy",decimals:0},icon:"Lightning"}]},stateRules:{primaryState:{label:"device.inverter.fields.gridStatus",fieldPath:"state.gridStatus",mapping:{exporting:"exporting",importing:"importing",idle:"idle"},fallback:"unknown"}}},thermostat:{icon:"Thermometer",category:"device",archetype:"device",detailPage:true,label:{singular:"Thermostat",plural:"Thermostats"},description:"Smart thermostat or connected HVAC control",fusedMetricId:"ambientTemperature",fields:{headlineMetrics:[{id:"ambientTemperature",label:"device.thermostat.fields.ambientTemperature",source:{kind:"state",path:"state.ambientTemperature"},format:{type:"temperature",decimals:0},icon:"Thermometer"},{id:"heatTarget",label:"device.thermostat.fields.heatTarget",source:{kind:"state",path:"state.heatTarget"},format:{type:"temperature",decimals:0},icon:"Flame"},{id:"coolTarget",label:"device.thermostat.fields.coolTarget",source:{kind:"state",path:"state.coolTarget"},format:{type:"temperature",decimals:0},icon:"Snowflake"},{id:"fanMode",label:"device.thermostat.fields.fanMode",source:{kind:"state",path:"state.fanMode"},format:{type:"text"}}]},stateRules:{primaryState:{label:"device.thermostat.fields.operatingMode",fieldPath:"state.operatingMode",mapping:{heat:"heat",cool:"cool",auto:"auto",off:"off",eco:"eco",unknown:"unknown"},fallback:"unknown"}}},vehicle:{icon:"Car",category:"device",archetype:"device",detailPage:true,label:{singular:"EV",plural:"EVs"},description:"Electric vehicle managed as a flexible load",fusedMetricId:"chargePercentage",fields:{headlineMetrics:[{id:"chargePercentage",label:"device.vehicle.fields.chargePercentage",source:{kind:"state",path:"state.chargePercentage"},format:{type:"percentage",decimals:0},icon:"BatteryCharging"},{id:"range",label:"device.vehicle.fields.range",source:{kind:"state",path:"state.range"},format:{type:"distance",unit:"mi",decimals:0},icon:"GasPump"},{id:"chargeLimit",label:"device.vehicle.fields.chargeLimit",source:{kind:"state",path:"state.chargeLimit"},format:{type:"percentage",decimals:0},icon:"BatteryCharging"},{id:"isPluggedIn",label:"device.vehicle.fields.isPluggedIn",source:{kind:"state",path:"state.isPluggedIn"},format:{type:"boolean",trueText:"Yes",falseText:"No"},icon:"Plug"}]},stateRules:{primaryState:{label:"device.vehicle.fields.status",fieldPath:"state.chargingState",mapping:{charging:"charging",discharging:"discharging",idle:"idle",unknown:"unknown"},fallback:"unknown"}}},waterHeater:{icon:"Drop",category:"device",archetype:"device",detailPage:true,label:{singular:"Water Heater",plural:"Water Heaters"},description:"Connected or smart electric water heater"}},NE={source:"SOURCE",substation:"SOURCE",capacitor:"CAPACITOR",switch:"SWITCH",sectionalizer:"SWITCH",relay:"NODE",transformer:"TRANSFORMER",meter:"CONSUMER",consumer:"CONSUMER",singlePhaseOverheadLine:"OVERHEAD_LINE",twoPhaseOverheadLine:"OVERHEAD_LINE",threePhaseOverheadLine:"OVERHEAD_LINE",singlePhaseUndergroundLine:"UNDERGROUND_LINE",twoPhaseUndergroundLine:"UNDERGROUND_LINE",threePhaseUndergroundLine:"UNDERGROUND_LINE",motorSwitch:"MOTOR",recloser:"OVERCURRENT_DEVICE",fuse:"OVERCURRENT_DEVICE",breaker:"OVERCURRENT_DEVICE",generator:"GENERATOR",regulator:"REGULATOR",supportStructure:"NODE"};function xc(e){return na[e]}function kE(e){return na[e].icon}function TE(e,t=false){return t?na[e].label.plural:na[e].label.singular}function PE(e){return na[e].category}var RE={min:2,max:4};function ME(e){let t=na[e];if(!t)throw new Error(`archetypeFor: unknown entity type "${String(e)}"`);return t.archetype}function DE(e){return xc(e).detailPage}function EE(e){return (xc(e).fields?.headlineMetrics.length??0)>0}function Qy(e){return xc(e).properties?.statList??[]}function LE(e){return Qy(e).length>0}function AE({formId:e="dialog-form",onSubmit:t,primaryLabel:r="Save",secondaryLabel:o="Cancel",onCancel:n,primaryVariant:a,secondaryVariant:i="secondary",children:s,title:c,...l}){return jsxRuntime.jsx(kr,{title:c,primaryAction:{label:r,onPress:()=>{let d=document.getElementById(e);d&&d.requestSubmit();},variant:a},secondaryAction:n?{label:o,onPress:n,variant:i}:void 0,...l,children:jsxRuntime.jsx(Ba,{id:e,onSubmit:t,children:s})})}function IE({formId:e="drawer-form",onSubmit:t,primaryLabel:r="Save",secondaryLabel:o="Cancel",onCancel:n,primaryVariant:a,secondaryVariant:i="secondary",children:s,...c}){return jsxRuntime.jsx(Li,{primaryAction:{label:r,onPress:()=>{let u=document.getElementById(e);u&&u.requestSubmit();},variant:a},secondaryAction:n?{label:o,onPress:n,variant:i}:void 0,...c,children:jsxRuntime.jsx(Ba,{id:e,onSubmit:t,className:"mt-2",children:s})})}function BE({align:e="end",className:t,...r}){return jsxRuntime.jsx("div",{...r,className:tailwindMerge.twMerge("flex gap-2",e==="start"?"justify-start":e==="between"?"justify-between":"justify-end",t)})}var OE={sm:"gap-2",md:"gap-4",lg:"gap-6"};function HE(e){if(!e)return "";let t=e.base?`grid-cols-${e.base}`:"",r=e.md?`md:grid-cols-${e.md}`:"",o=e.lg?`lg:grid-cols-${e.lg}`:"";return [t,r,o].filter(Boolean).join(" ")}function WE({cols:e={base:1},gap:t="lg",className:r,...o}){return jsxRuntime.jsx("div",{...o,className:tailwindMerge.twMerge("grid",HE(e),OE[t],r)})}function KE({title:e,description:t,showDivider:r,className:o,children:n,...a}){return jsxRuntime.jsxs("section",{...a,className:tailwindMerge.twMerge("flex flex-col",o),children:[(e||t)&&jsxRuntime.jsxs("div",{className:"flex flex-col gap-1 mb-6",children:[typeof e=="string"?jsxRuntime.jsx(Qt,{tag:"h3",size:"sm",children:e}):e,t?jsxRuntime.jsx(Te,{size:"lg",children:t}):null]}),jsxRuntime.jsx("div",{className:"flex flex-col gap-6",children:n}),r&&jsxRuntime.jsx("hr",{className:"mt-2 border-border-muted"})]})}function YE(){return jsxRuntime.jsx("hr",{className:"border-border-muted"})}function JE({steps:e,currentStepId:t,onStepClick:r,className:o}){let n=e.findIndex(a=>a.id===t);return jsxRuntime.jsx("nav",{"aria-label":"Progress",className:tailwindMerge.twMerge("w-full",o),children:jsxRuntime.jsx("div",{className:"relative mb-12",children:jsxRuntime.jsx("ol",{className:"relative flex items-start justify-between",children:e.map((a,i)=>{let s=a.id===t,c=i<n,l=r&&(c||s);return jsxRuntime.jsxs("li",{className:"relative flex flex-col items-center",style:{flex:`1 1 ${100/e.length}%`},children:[jsxRuntime.jsx("button",{type:"button",disabled:!l,onClick:()=>l&&r?.(a.id),className:tailwindMerge.twMerge("relative z-10 flex h-10 w-10 flex-shrink-0 items-center justify-center rounded-full border-2 transition-colors bg-background-body",c&&"border-action-primary bg-action-primary text-text-inverse hover:bg-action-primary/90",s&&"border-action-primary bg-background-body text-action-primary",!c&&!s&&"border-border-default bg-background-body text-text-secondary",l&&"cursor-pointer",!l&&"cursor-default"),"aria-current":s?"step":void 0,children:c?jsxRuntime.jsx(B,{name:"Check",size:20,weight:"bold"}):jsxRuntime.jsx("span",{className:"text-sm font-semibold",children:i+1})}),i<e.length-1&&jsxRuntime.jsx("div",{className:"absolute top-5 h-0.5 transition-colors",style:{left:"50%",width:"100%",marginLeft:"20px",backgroundColor:i<n?"var(--color-action-primary)":"var(--color-border-default)"}}),jsxRuntime.jsxs("div",{className:"mt-3 flex flex-col items-center text-center w-32",children:[jsxRuntime.jsx("span",{className:tailwindMerge.twMerge("text-sm font-medium",s&&"text-text-default",c&&"text-text-primary",!s&&!c&&"text-text-secondary"),children:a.title}),a.description&&jsxRuntime.jsx("span",{className:"mt-1 text-xs text-text-secondary",children:a.description})]})]},a.id)})})})})}function jE({formId:e,show:t,isSubmitting:r,onCancel:o,primaryLabel:n="Save changes",secondaryLabel:a="Cancel",className:i}){return t?jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("fixed inset-x-0 bottom-0 z-40 border-t border-border-muted bg-background-surface/95 backdrop-blur supports-[backdrop-filter]:bg-background-surface/70",i),children:jsxRuntime.jsxs("div",{className:"mx-auto flex max-w-screen-lg items-center justify-between gap-3 p-3",children:[jsxRuntime.jsx("div",{className:"text-sm text-text-secondary",children:"You have unsaved changes"}),jsxRuntime.jsxs("div",{className:"flex gap-2",children:[jsxRuntime.jsx(Z,{variant:"secondary",onPress:o,children:a}),jsxRuntime.jsx(Z,{type:"submit",form:e,isDisabled:!!r,children:r?"Saving...":n})]})]})}):null}function qE({when:e,message:t="You have unsaved changes. Leave anyway?"}){return Oe__namespace.useEffect(()=>{if(!e)return;let r=o=>(o.preventDefault(),o.returnValue=t,t);return window.addEventListener("beforeunload",r),()=>window.removeEventListener("beforeunload",r)},[e,t]),null}function QE({steps:e,initialStepId:t,canNavigate:r}){if(e.length===0)throw new Error("useWizard: steps array cannot be empty");let[o,n]=Oe__namespace.useState(t||e[0].id),a=e.findIndex(d=>d.id===o),i=a>0,s=a<e.length-1,c=async d=>d===o?true:r&&!await r(o,d)?false:(n(d),true);return {steps:e,currentStepId:o,setCurrentStepId:c,next:async()=>!s||a===-1?false:c(e[a+1].id),prev:async()=>!i||a===-1?false:c(e[a-1].id),hasNext:s,hasPrev:i,stepIndex:a}}function es(e,t){return t.split(".").reduce((r,o)=>r?.[o],e)}function _E(e,t){let r=es(e,t.field),o=t.value;switch(t.operator){case "eq":return r===o;case "neq":return r!==o;case "in":return Array.isArray(o)?Array.isArray(r)?r.some(n=>o.includes(n)):o.includes(r):false;case "nin":return Array.isArray(o)?Array.isArray(r)?!r.some(n=>o.includes(n)):!o.includes(r):false;case "gt":return r instanceof Date&&typeof o=="string"?r>new Date(o):r>o;case "gte":return r instanceof Date&&typeof o=="string"?r>=new Date(o):r>=o;case "lt":return r instanceof Date&&typeof o=="string"?r<new Date(o):r<o;case "lte":return r instanceof Date&&typeof o=="string"?r<=new Date(o):r<=o;case "contains":return typeof r!="string"?false:r.toLowerCase().includes(String(o).toLowerCase());case "startsWith":return typeof r!="string"?false:r.toLowerCase().startsWith(String(o).toLowerCase());case "endsWith":return typeof r!="string"?false:r.toLowerCase().endsWith(String(o).toLowerCase());default:return false}}function nv(e,t){if(t.conditions.length===0)return true;let r=t.conditions.map(o=>"conditions"in o?nv(e,o):_E(e,o));return t.logic==="AND"?r.every(Boolean):r.some(Boolean)}function $E(e,t){return !t||t.conditions.length===0?e:e.filter(r=>nv(r,t))}function eL(e,t,r){if(e==null&&t==null)return 0;if(e==null)return r==="asc"?1:-1;if(t==null)return r==="asc"?-1:1;if(e instanceof Date&&t instanceof Date){let o=e.getTime()-t.getTime();return r==="asc"?o:-o}if(typeof e=="string"&&typeof t=="string"){let o=e.toLowerCase().localeCompare(t.toLowerCase());return r==="asc"?o:-o}return e<t?r==="asc"?-1:1:e>t?r==="asc"?1:-1:0}function tL(e,t){return t?[...e].sort((r,o)=>{let n=es(r,t.field),a=es(o,t.field);return eL(n,a,t.direction)}):e}function rL(e,t){if(!t||!t.query.trim())return e;let{query:r,fields:o,fuzzy:n=true,threshold:a=.3}=t;if(n)return new ZE__default.default(e,{keys:o,threshold:a,ignoreLocation:true,includeScore:true}).search(r).map(l=>l.item);let i=r.toLowerCase();return e.filter(s=>o.some(c=>{let l=es(s,c);return l==null?false:String(l).toLowerCase().includes(i)}))}function oL(e,t){let r={};for(let o of t){if(r[o.field]={},o.values)for(let n of o.values)r[o.field][String(n.value)]=0;for(let n of e){let a=es(n,o.field);if(a!=null)if(Array.isArray(a))for(let i of a){let s=String(i);r[o.field][s]=(r[o.field][s]||0)+1;}else {let i=String(a);r[o.field][i]=(r[o.field][i]||0)+1;}}}return r}function Lp({data:e,filters:t,sort:r,search:o,facetConfigs:n=[]}){let a=rL(e,o||null);a=$E(a,t||null);let i=oL(a,n);return a=tL(a,r||null),{data:a,facetCounts:i,resultCount:a.length}}function yc({data:e,filters:t,sort:r,search:o,facetConfigs:n=[]}){return Oe.useMemo(()=>Lp({data:e,filters:t,sort:r,search:o,facetConfigs:n}),[e,t,r,o,n])}function vc({filters:e,sort:t,search:r,onStateChange:o,searchDebounce:n=300}){let a=Vo(r,n),i=Oe.useRef(true);Oe.useEffect(()=>{if(i.current){i.current=false;return}o({filters:e,sort:t,search:a});},[e,t,a,o]);}function av(e){return e.mode==="client"?yc({data:e.data,filters:e.filters,sort:e.sort,search:e.search,facetConfigs:e.facetConfigs}):(vc({filters:e.filters,sort:e.sort,search:e.search,onStateChange:e.onStateChange,searchDebounce:e.searchDebounce}),{data:e.data,facetCounts:e.facetCounts||{},resultCount:e.resultCount??e.data.length})}var iv=Hp(lu());function lL(e,t,r=true){let o=e;if(r){let n=new Date().toISOString().replace(/[:.]/g,"-").slice(0,-5);return `${o}-${n}.${t}`}return `${o}.${t}`}function cL(e,t){return t.accessor?typeof t.accessor=="function"?t.accessor(e):e[t.accessor]:null}function sv(e,t){let r=cL(t,e);return e.exportValue?e.exportValue(r,t)??"":r==null?"":r instanceof Date?r.toISOString():typeof r=="object"?JSON.stringify(r):r}function Ap(e){return e.filter(t=>t.exportable!==false)}function lv(e){let t=e.map(n=>n.exportLabel||n.label),r=new Set,o=[];for(let n of t)r.has(n)?o.includes(n)||o.push(n):r.add(n);if(o.length>0)throw new Error(`Duplicate export headers found: ${o.join(", ")}. Use exportLabel to provide unique headers.`)}async function Ip(e){let{columns:t,data:r,metadata:o={}}=e;try{let n=Ap(t);if(n.length===0)throw new Error("No exportable columns found");lv(n);let a=r.map(l=>{let u={};for(let d of n){let m=d.exportLabel||d.label;u[m]=sv(d,l);}return u}),i=lk__default.default.unparse(a,{header:!0,skipEmptyLines:!0}),s=new Blob([i],{type:"text/csv;charset=utf-8;"}),c=lL(o.filename||"table-data","csv",o.timestamp!==!1);(0,iv.saveAs)(s,c);}catch(n){throw new Error(`CSV export failed: ${n instanceof Error?n.message:"Unknown error"}`)}}function dL(e){let{columns:t,data:r}=e,o=Ap(t);return lv(o),r.map(n=>{let a={};for(let i of o){let s=i.exportLabel||i.label;a[s]=sv(i,n);}return a})}function uL(e){return Ap(e).map(t=>t.exportLabel||t.label)}function cv({columns:e,data:t,metadata:r}){let n=e.filter(i=>i.exportable!==false).length>0&&t.length>0;return {exportCSV:Oe.useCallback(async()=>{try{await Ip({columns:e,data:t,metadata:r});}catch(i){throw console.error("Table export failed:",i),i}},[e,t,r]),canExport:n}}function koe(e){switch(e){case "charging":case "on":return "success";case "discharging":return "warning";case "heat":case "cool":return "info";case "off":case "idle":case "eco":case "auto":return "neutral";default:return "neutral"}}Object.defineProperty(exports,"DialogTrigger",{enumerable:true,get:function(){return reactAriaComponents.DialogTrigger}});exports.ABSENT_GRID_FIELDS=wE;exports.ActionCell=Kb;exports.ActionMenu=ga;exports.ActivityFeed=Sd;exports.ActivityFeedGroup=ys;exports.ActivityItem=vs;exports.Alert=df;exports.AppShell=xf;exports.AreaSeries=Jo;exports.AutoMobileRenderer=Nl;exports.Autocomplete=Ms;exports.Avatar=xo;exports.BREAKPOINTS=ln;exports.Badge=nt;exports.BadgeCell=Jb;exports.Banner=Es;exports.BarSeries=Gs;exports.BooleanCell=Xb;exports.BrandProvider=Zp;exports.BreadcrumbItem=As;exports.Breadcrumbs=Ls;exports.Button=Z;exports.CUSTOM_ICON_REGISTRY=sa;exports.Calendar=ya;exports.Card=Ue;exports.CardContent=fd;exports.CardFooter=gd;exports.CardHeader=pd;exports.CardMedia=md;exports.CardMobileRenderer=kl;exports.CarouselAutoplayTrigger=Jf;exports.CarouselControl=Gf;exports.CarouselIndicator=Kd;exports.CarouselIndicatorGroup=Yf;exports.CarouselItem=Wf;exports.CarouselItemGroup=Hf;exports.CarouselNextTrigger=Kf;exports.CarouselPrevTrigger=Uf;exports.CarouselProgressText=Xf;exports.CarouselRoot=Of;exports.CategoryBarChart=Ng;exports.ChartAxis=Mr;exports.ChartBottomBar=Pa;exports.ChartContainer=Ug;exports.ChartContext=Rr;exports.ChartEventMarkers=js;exports.ChartEventSpans=qs;exports.ChartTooltip=Xo;exports.Checkbox=Sn;exports.CheckboxGroup=Yd;exports.Chip=eo;exports.ChipInputField=eg;exports.ClearButton=ii;exports.CodeEditor=og;exports.Collapse=va;exports.CollapseContent=Ko;exports.CollapseHeader=Uo;exports.CollapseItem=Go;exports.ColorField=pN;exports.ColorModeProvider=lm;exports.CommandPalette=Bx;exports.Confirm=cg;exports.ConnectionStatusBadge=dg;exports.ContactCard=ug;exports.ContactMetaCell=qb;exports.ContactMetaDisplay=zs;exports.ContainerQueryProvider=fg;exports.CopyToClipboard=Oo;exports.CustomCell=Qb;exports.DEFAULT_MAP_TYPE=ec;exports.DataControls=Ib;exports.DataTable=Nx;exports.DateCell=Zb;exports.DateField=Vb;exports.DateRangePicker=ll;exports.Description=Te;exports.DeviceHealthBadge=Tx;exports.DeviceMetaCell=$b;exports.DeviceMetaDisplay=fl;exports.DeviceStateBadge=On;exports.DeviceStateCell=rx;exports.DeviceStateWithMetric=xl;exports.DeviceTypeIcon=Rx;exports.Dialog=kr;exports.DialogForm=AE;exports.DialogHeader=Ht;exports.Drawer=Li;exports.DrawerForm=IE;exports.ENTITY_CATEGORY_CONFIG=SE;exports.ENTITY_CONFIG=na;exports.EmptyState=el;exports.EnrollmentStatusBadge=Dx;exports.ErrorBoundary=zr;exports.FieldError=be;exports.FieldGroup=vf;exports.FileUpload=Lx;exports.FilterChips=Fb;exports.FilterDialog=Wb;exports.FirmwareVersionBadge=Ix;exports.Form=Ba;exports.FormActions=BE;exports.FormDivider=YE;exports.FormGrid=WE;exports.FormSection=KE;exports.FormStepper=JE;exports.FormatRegistry=oe;exports.FormattedCell=nx;exports.FunnelSeries=Xg;exports.GRID_ELEMENT_TYPE_BY_ENTITY=NE;exports.GRID_STATE_COLORS=CE;exports.GRID_STAT_LIST=st;exports.GlobalSearch=Ox;exports.Grid=Qu;exports.GridStateBadge=bl;exports.HEADLINE_METRIC_BOUNDS=RE;exports.Heading=Qt;exports.HierarchyExplorer=mh;exports.HorizontalBarCell=zu;exports.HoverCard=bR;exports.Icon=B;exports.InfiniteScrollIndicator=Nr;exports.Input=Ts;exports.InputWrapper=yt;exports.InteractiveMap=Ki;exports.Kpi=yh;exports.KpiGroup=np;exports.Label=ze;exports.LineSeries=Pn;exports.List=kh;exports.ListBox=BR;exports.ListBoxItem=_t;exports.ListItem=Ph;exports.ListPane=Rh;exports.Loader=go;exports.Logo=xa;exports.MAP_TYPES=ry;exports.Meter=sy;exports.MiniBarCell=Ou;exports.ModalBackdrop=cr;exports.Notice=ac;exports.NoticeContainer=ic;exports.NoticeProvider=cy;exports.NumberCell=cx;exports.NumberField=Pi;exports.PageBanner=Ef;exports.PageLayout=Zn;exports.PercentBarCell=Hu;exports.PlaceSearch=xy;exports.Popover=lt;exports.ProgressBar=yy;exports.Prose=vy;exports.Radio=ky;exports.RadioCard=Cy;exports.RadioCardGroup=Sy;exports.RadioGroup=Ny;exports.RangeCalendar=Da;exports.ResultsCount=wi;exports.RichTextEditor=Ry;exports.SKELETON_SIZES=_o;exports.SOURCE_UNIT_TO_WH=jc;exports.SaveBar=jE;exports.SearchControl=Fn;exports.SearchEmptyState=Hx;exports.SearchLoadingState=Gx;exports.SearchResultGroup=Kx;exports.SearchResultItem=Yx;exports.SearchResultsList=Jx;exports.SearchTrigger=jx;exports.Section=Ya;exports.SectionNav=cc;exports.SegmentedControl=rl;exports.Select=bo;exports.SelectCell=ux;exports.SideNav=Ss;exports.SiteCard=My;exports.SiteContactCard=Ey;exports.SiteMetaCell=mx;exports.SiteMetaDisplay=vl;exports.Skeleton=J;exports.Slider=Ly;exports.SortControl=Ni;exports.SparklineCell=Wu;exports.SplitPane=bc;exports.StackNav=ws;exports.StatList=Al;exports.StaticMap=Ka;exports.Switch=cl;exports.Tab=fc;exports.TabList=mc;exports.TabPanel=fy;exports.Tabs=pc;exports.TextArea=zy;exports.TextAreaWithChips=Gy;exports.TextCell=xx;exports.TextField=Lr;exports.TextLink=Ze;exports.TiledTimeSeriesChart=_s;exports.TiledTimeSeriesExplorer=Mb;exports.TimeControls=ol;exports.TimeField=Ky;exports.Timeline=Yy;exports.TimelineItem=Jy;exports.ToggleButton=qy;exports.Tooltip=Zt;exports.TopNav=ai;exports.Tray=ct;exports.UnsavedChangesPrompt=qE;exports.activeDeviceStates=j1;exports.addFilterCondition=Zo;exports.applyDataOperations=Lp;exports.archetypeFor=ME;exports.assembleSeries=ub;exports.autoScaleCurrent=LC;exports.autoScaleDistance=xm;exports.autoScaleEnergy=Cm;exports.autoScalePower=HC;exports.autoScaleResistance=WC;exports.autoScaleVoltage=jC;exports.baselineFromPoint=GN;exports.camelCaseToWords=Vm;exports.capitalize=Fm;exports.celsiusToFahrenheit=GC;exports.celsiusToKelvin=s5;exports.centimetersToInches=GA;exports.clearColorCache=ns;exports.createCategoryColorMap=fC;exports.createEmptyFilter=ki;exports.createFilter=u1;exports.createFilters=p1;exports.createFormat=I5;exports.createTextureIcon=rt;exports.createTiledCameraSyncGroup=jg;exports.createXScale=ou;exports.createYScale=pi;exports.csvUnitFor=id;exports.csvValueFor=Hm;exports.defaultMargin=Ie;exports.deviceStateLabels=q1;exports.deviceStateMetricFormats=uU;exports.emptyStore=pb;exports.entityHasDetailPage=DE;exports.entityHasStatList=LE;exports.entityShowsNow=EE;exports.enumToSentenceCase=JC;exports.exportChart=du;exports.exportTableAsCSV=Ip;exports.fahrenheitToCelsius=UC;exports.fahrenheitToKelvin=l5;exports.feetToMeters=AA;exports.feetToMiles=BA;exports.filterToChips=m1;exports.formatBoolean=cm;exports.formatCapacity=uA;exports.formatComponentValue=jr;exports.formatCurrency=fm;exports.formatCurrent=Oc;exports.formatDate=gm;exports.formatDistance=hm;exports.formatEmptyValue=pl;exports.formatEnergy=qc;exports.formatFieldValue=Vr;exports.formatInternationalPhone=Qc;exports.formatNumber=mm;exports.formatPercent=um;exports.formatPhone=Sm;exports.formatPhoneNumber=da;exports.formatPower=ed;exports.formatPowerRating=pA;exports.formatResistance=rd;exports.formatTemperature=Dm;exports.formatText=Om;exports.formatUSPhone=ls;exports.formatVoltage=ad;exports.getBadgeClasses=Gb;exports.getBooleanBadgeVariant=Ub;exports.getCellAlignmentClasses=Au;exports.getCellContainerClasses=Me;exports.getCellTextClasses=Ar;exports.getContrastingTextColor=gC;exports.getDateParts=PA;exports.getDefaultChartColor=Za;exports.getDefaultColors=$p;exports.getDeviceStateDisplayLabel=Bu;exports.getDeviceStateLabel=Bu;exports.getEntityCategory=PE;exports.getEntityConfig=xc;exports.getEntityIcon=kE;exports.getEntityLabel=TE;exports.getEntityStatList=Qy;exports.getEventColor=yo;exports.getExportFormatName=mk;exports.getExportHeaders=uL;exports.getFieldGroupStyles=fS;exports.getFilterFields=Vn;exports.getGridStateLabel=tx;exports.getInputBackgroundStyles=yf;exports.getInputBaseStyles=zt;exports.getInputStateStyles=zo;exports.getLinkClasses=Iu;exports.getNumericColorClasses=ml;exports.getResolvedColor=Pt;exports.getSkeletonSize=nr;exports.getStateTone=koe;exports.getThemeCategoricalColors=cn;exports.getYFormatSettings=Hr;exports.gridStateLabels=Z1;exports.inchesToCentimeters=WA;exports.isActiveDeviceState=Fu;exports.isActiveState=Fu;exports.isCustomPinsLayer=mp;exports.isExportSupported=pk;exports.isFilterEmpty=sl;exports.isGeoJsonLayer=pp;exports.isLightColor=em;exports.isNil=me;exports.isRasterLayer=fp;exports.isVectorLayer=up;exports.kelvinToCelsius=KC;exports.kelvinToFahrenheit=c5;exports.kilometersToMiles=FA;exports.layer=dp;exports.mapValuesToCategoricalColors=Dc;exports.metersToFeet=LA;exports.metersToMiles=VA;exports.metersToYards=HA;exports.milesToFeet=bm;exports.milesToKilometers=IA;exports.milesToMeters=zA;exports.parseBoolean=Lo;exports.pickEnergyUnit=Xc;exports.prepareTableDataForExport=dL;exports.registerPhosphorIcon=ay;exports.removeFilterCondition=Bn;exports.resolveValue=Se;exports.snakeCaseToWords=zm;exports.temperatureStringToSymbol=km;exports.tierForViewport=$s;exports.tileIndexAt=bT;exports.tileKey=rr;exports.tileReducer=mb;exports.tilesForViewport=jo;exports.toA=SA;exports.toActiveInactive=wC;exports.toAmps=is;exports.toBoolean=Eo;exports.toCelsius=Pm;exports.toCentimeters=VC;exports.toCheckmark=kC;exports.toCompactNumber=MC;exports.toCurrency=pm;exports.toCustomDateFormat=BC;exports.toDateString=AC;exports.toEnabledDisabled=CC;exports.toFahrenheit=Tm;exports.toFeet=Gc;exports.toFloat=PC;exports.toFormattedNumber=RC;exports.toFullDateTime=IC;exports.toGW=e5;exports.toGWh=vm;exports.toGigawatts=$c;exports.toISOString=FC;exports.toInches=OC;exports.toInteger=TC;exports.toKA=wA;exports.toKV=x5;exports.toKW=_A;exports.toKelvin=Rm;exports.toKiloamps=zc;exports.toKilohms=wm;exports.toKilometers=Wc;exports.toKilovolts=nd;exports.toKilowatts=Zc;exports.toLowerCase=Lm;exports.toMA=CA;exports.toMV=g5;exports.toMW=$A;exports.toMWh=ym;exports.toMegawatts=_c;exports.toMegohms=Nm;exports.toMeters=Hc;exports.toMiles=Uc;exports.toMilliamps=Vc;exports.toMillimeters=zC;exports.toMilliohms=td;exports.toMillivolts=od;exports.toNauticalMiles=EA;exports.toOhms=ds;exports.toOnOff=SC;exports.toPercentage=dm;exports.toRelativeTime=ss;exports.toScientificNotation=DC;exports.toSecret=XC;exports.toSentenceCase=Am;exports.toTemperature=Mm;exports.toTitleCase=Im;exports.toTrueFalse=NC;exports.toUpperCase=Em;exports.toV=b5;exports.toVolts=ms;exports.toW=ZA;exports.toWatts=cs;exports.toWh=Yc;exports.toYards=Kc;exports.tokWh=Jc;exports.truncateEnd=ps;exports.truncateMiddle=ua;exports.truncateStart=us;exports.typeRole=gt;exports.typographyRole=qr;exports.ucFirst=Bm;exports.useBreakpoint=Xt;exports.useChartContext=Tn;exports.useClientDataControls=yc;exports.useColorMode=Vt;exports.useComponentFormatter=bA;exports.useContainerBreakpoint=pg;exports.useDataControls=av;exports.useDebounce=Vo;exports.useElementSize=ha;exports.useInfiniteScroll=Fo;exports.useInputFocus=Pr;exports.useLocalStorage=Kl;exports.useMediaQuery=Jt;exports.useNotice=uy;exports.useServerDataControls=vc;exports.useTableExport=cv;exports.useTileWindow=vb;exports.useTiledTimeSeries=Cu;exports.useWizard=QE;exports.wrapWithLink=ao;exports.yardsToMeters=OA;//# sourceMappingURL=index.cjs.map
|
|
48
48
|
//# sourceMappingURL=index.cjs.map
|