@texturehq/edges 1.27.0 → 1.28.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (34) hide show
  1. package/dist/{RichTextEditor-CZCqHSPF.d.cts → RichTextEditor-7jc4jO7e.d.cts} +1 -1
  2. package/dist/{RichTextEditor-CZCqHSPF.d.ts → RichTextEditor-7jc4jO7e.d.ts} +1 -1
  3. package/dist/{TimeField-CQgcvUgy.d.ts → TimeField-BbLIbv0J.d.ts} +2 -2
  4. package/dist/{TimeField-07gPbQ8f.d.cts → TimeField-BqhXKWUT.d.cts} +2 -2
  5. package/dist/{colors-DKozNGNs.d.ts → colors-CvEXhBTp.d.cts} +3 -2
  6. package/dist/{colors-CY0JrRSg.d.cts → colors-Edrb81dY.d.ts} +3 -2
  7. package/dist/components.manifest.json +14 -3
  8. package/dist/form/index.d.cts +1 -1
  9. package/dist/form/index.d.ts +1 -1
  10. package/dist/generated/tailwind-tokens-dark.css +1 -0
  11. package/dist/generated/tailwind-tokens-light.css +1 -0
  12. package/dist/{index-rh1icNsb.d.cts → index-BdDvAxFM.d.cts} +1 -1
  13. package/dist/{index-rh1icNsb.d.ts → index-BdDvAxFM.d.ts} +1 -1
  14. package/dist/index.cjs +45 -9
  15. package/dist/index.cjs.map +1 -1
  16. package/dist/index.d.cts +117 -11
  17. package/dist/index.d.ts +117 -11
  18. package/dist/index.js +45 -9
  19. package/dist/index.js.map +1 -1
  20. package/dist/rhf/index.cjs.map +1 -1
  21. package/dist/rhf/index.d.cts +2 -2
  22. package/dist/rhf/index.d.ts +2 -2
  23. package/dist/rhf/index.js.map +1 -1
  24. package/dist/server.cjs +1 -1
  25. package/dist/server.cjs.map +1 -1
  26. package/dist/server.d.cts +2 -2
  27. package/dist/server.d.ts +2 -2
  28. package/dist/server.js +1 -1
  29. package/dist/server.js.map +1 -1
  30. package/dist/styles/animations.css +20 -0
  31. package/dist/styles/utilities.css +43 -0
  32. package/dist/styles.css +46 -0
  33. package/dist/utilities.manifest.json +1 -1
  34. package/package.json +4 -1
package/dist/index.cjs CHANGED
@@ -1,5 +1,6 @@
1
- 'use strict';var reactAriaComponents=require('react-aria-components'),De=require('react'),fileSaver=require('file-saver'),Sh=require('papaparse'),Dh=require('fuse.js'),reactVirtual=require('@tanstack/react-virtual'),jsxRuntime=require('react/jsx-runtime'),luxon=require('luxon'),tailwindMerge=require('tailwind-merge'),My=require('@phosphor-icons/react'),K0=require('@phosphor-icons/react/dist/ssr'),reactStately=require('react-stately'),lucideReact=require('lucide-react'),framerMotion=require('framer-motion'),i1=require('react-ace'),reactColorful=require('react-colorful'),curve=require('@visx/curve'),shape=require('@visx/shape'),axis=require('@visx/axis'),scale=require('@visx/scale'),d3Array=require('d3-array'),responsive=require('@visx/responsive'),zoom=require('@visx/zoom'),brush=require('@visx/brush'),pattern=require('@visx/pattern'),gradient=require('@visx/gradient'),reactDom=require('react-dom'),Lk=require('react-map-gl'),zT=require('@tiptap/extension-link'),react=require('@tiptap/react'),menus=require('@tiptap/react/menus'),GT=require('@tiptap/starter-kit');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 De__namespace=/*#__PURE__*/_interopNamespace(De);var Sh__default=/*#__PURE__*/_interopDefault(Sh);var Dh__default=/*#__PURE__*/_interopDefault(Dh);var My__namespace=/*#__PURE__*/_interopNamespace(My);var K0__namespace=/*#__PURE__*/_interopNamespace(K0);var i1__default=/*#__PURE__*/_interopDefault(i1);var Lk__default=/*#__PURE__*/_interopDefault(Lk);var zT__default=/*#__PURE__*/_interopDefault(zT);var GT__default=/*#__PURE__*/_interopDefault(GT);var hh=Object.defineProperty;var yh=(e,t,r)=>t in e?hh(e,t,{enumerable:true,configurable:true,writable:true,value:r}):e[t]=r;var jn=(e,t,r)=>yh(e,typeof t!="symbol"?t+"":t,r);function St(e,t=false){let[r,o]=De.useState(t);return De.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 So={sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"};function Nt(e="base"){let t=St(`(min-width: ${So.sm})`,e!=="base"),r=St(`(min-width: ${So.md})`,["md","lg","xl","2xl"].includes(e)),o=St(`(min-width: ${So.lg})`,["lg","xl","2xl"].includes(e)),n=St(`(min-width: ${So.xl})`,["xl","2xl"].includes(e)),a=St(`(min-width: ${So["2xl"]})`,e==="2xl"),i=!r,s=r,l="base";return a?l="2xl":n?l="xl":o?l="lg":r?l="md":t&&(l="sm"),{current:l,isSm:t,isMd:r,isLg:o,isXl:n,is2Xl:a,isMobile:i,isDesktop:s}}function Nl(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 wl(e,t,r={},o){let n=Array.isArray(t[0])?t:[t];try{switch(e){case "csv":await Nh(n,r);break;case "svg":await wh(o,r);break;case "png":await kh(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 Nh(e,t){try{let r=new Map;e.forEach(l=>{l.forEach(c=>{let u=c.xValue.getTime();r.has(u)||r.set(u,c.xValue);});});let n=Array.from(r.values()).sort((l,c)=>l.getTime()-c.getTime()).map(l=>{let c={[t.xLabel||"Date"]:l.toLocaleString("en-US",{year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"})};return e.forEach((u,d)=>{let m=t.seriesLabels?.[d]||`Series ${d+1}`,p=u.find(g=>g.xValue.getTime()===l.getTime());c[m]=p?p.yValue:"",p?.category&&(c[`${m} Category`]=p.category);}),c}),a=Sh__default.default.unparse(n,{header:!0,skipEmptyLines:!0}),i=new Blob([a],{type:"text/csv;charset=utf-8;"}),s=Nl(t.filename||"chart-data","csv",t.timestamp!==!1);fileSaver.saveAs(i,s);}catch(r){throw new Error(`CSV export failed: ${r instanceof Error?r.message:"Unknown error"}`)}}async function wh(e,t){if(!e.current)throw new Error("SVG element not found");try{let o=e.current.cloneNode(!0);if(!o.querySelector("rect[data-background]")){let c=document.createElementNS("http://www.w3.org/2000/svg","rect");c.setAttribute("width",o.getAttribute("width")||"100%"),c.setAttribute("height",o.getAttribute("height")||"100%"),c.setAttribute("fill","white"),c.setAttribute("data-background","true"),o.insertBefore(c,o.firstChild);}let i=new XMLSerializer().serializeToString(o);i.includes("<?xml")||(i=`<?xml version="1.0" encoding="UTF-8"?>
2
- `+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"}),l=Nl(t.filename||"chart","svg",t.timestamp!==!1);fileSaver.saveAs(s,l);}catch(r){throw new Error(`SVG export failed: ${r instanceof Error?r.message:"Unknown error"}`)}}async function kh(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);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 l=document.createElementNS("http://www.w3.org/2000/svg","rect");l.setAttribute("width",String(a.width)),l.setAttribute("height",String(a.height)),l.setAttribute("fill","white"),i.insertBefore(l,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 b=document.createElement("canvas");b.width=a.width*r,b.height=a.height*r;let x=b.getContext("2d");if(!x)throw new Error("Canvas context not available");x.imageSmoothingEnabled=!0,x.imageSmoothingQuality="high",x.scale(r,r),x.fillStyle="white",x.fillRect(0,0,a.width,a.height),x.drawImage(g,0,0,a.width,a.height),b.toBlob(v=>{if(v){let y=Nl(t.filename||"chart","png",t.timestamp!==!1);fileSaver.saveAs(v,y),m();}else p(new Error("Failed to create PNG blob"));o&&URL.revokeObjectURL(o);},"image/png",1);}catch(b){o&&URL.revokeObjectURL(o),p(b);}},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 Th(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 Ph(e){return {csv:"CSV Spreadsheet",svg:"SVG Vector Image",png:"PNG Image"}[e]||"Unknown Format"}function Lu({datasets:e,metadata:t,svgRef:r}){return De.useCallback(async o=>{try{await wl(o,e,t,r);}catch(n){throw console.error("Chart export failed:",n),n}},[e,t,r])}function Qn(e,t){return t.split(".").reduce((r,o)=>r?.[o],e)}function Ah(e,t){let r=Qn(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)?o.includes(r):false;case "nin":return Array.isArray(o)?!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 Mu(e,t){if(t.conditions.length===0)return true;let r=t.conditions.map(o=>"conditions"in o?Mu(e,o):Ah(e,o));return t.logic==="AND"?r.every(Boolean):r.some(Boolean)}function Lh(e,t){return !t||t.conditions.length===0?e:e.filter(r=>Mu(r,t))}function Mh(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 Eh(e,t){return t?[...e].sort((r,o)=>{let n=Qn(r,t.field),a=Qn(o,t.field);return Mh(n,a,t.direction)}):e}function Ih(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 Dh__default.default(e,{keys:o,threshold:a,ignoreLocation:true,includeScore:true}).search(r).map(c=>c.item);let i=r.toLowerCase();return e.filter(s=>o.some(l=>{let c=Qn(s,l);return c==null?false:String(c).toLowerCase().includes(i)}))}function Fh(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=Qn(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 Eu({data:e,filters:t,sort:r,search:o,facetConfigs:n=[]}){let a=Ih(e,o||null);a=Lh(a,t||null);let i=Fh(a,n);return a=Eh(a,r||null),{data:a,facetCounts:i,resultCount:a.length}}function ai({data:e,filters:t,sort:r,search:o,facetConfigs:n=[]}){return De.useMemo(()=>Eu({data:e,filters:t,sort:r,search:o,facetConfigs:n}),[e,t,r,o,n])}function Jr(e,t=300){let[r,o]=De.useState(e);return De.useEffect(()=>{let n=setTimeout(()=>o(e),t);return ()=>clearTimeout(n)},[e,t]),r}function ii({filters:e,sort:t,search:r,onStateChange:o,searchDebounce:n=300}){let a=Jr(r,n),i=De.useRef(true);De.useEffect(()=>{if(i.current){i.current=false;return}o({filters:e,sort:t,search:a});},[e,t,a,o]);}function Iu(e){return e.mode==="client"?ai({data:e.data,filters:e.filters,sort:e.sort,search:e.search,facetConfigs:e.facetConfigs}):(ii({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})}function si(e,t=300){let[r,o]=De.useState(false);return De.useEffect(()=>{if(e){let n=setTimeout(()=>{o(true);},t);return ()=>clearTimeout(n)}o(false);},[e,t]),r}function bn(){let[e,t]=De.useState({width:0,height:0}),r=De.useRef(null),o=De.useRef(void 0),n=De.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(l=>{for(let c of s){let{width:u,height:d}=c.contentRect;t(m=>m.width!==u||m.height!==d?{width:u,height:d}:m);}});}),r.current.observe(a);},[]);return De.useEffect(()=>()=>{o.current&&cancelAnimationFrame(o.current),r.current&&r.current.disconnect();},[]),{ref:n,width:e.width,height:e.height}}function qr({items:e,onLoadMore:t,hasMore:r,isLoading:o=false,loadingState:n,enableVirtualization:a,estimatedItemSize:i=50,overscan:s=5,scrollElement:l,loadMoreThreshold:c=100}){let u=De.useRef(null),d=De.useRef(null),m=De.useRef(false),[p,g]=De.useState(0);De.useEffect(()=>{d.current&&(l||u.current)&&g(L=>L+1);},[l,e.length]);let f=n||(o?e.length===0?"loading":"loading-more":"idle"),b=f==="loading",x=f==="loading-more",v=a!==void 0?a:e.length>=100,y=reactVirtual.useVirtualizer({count:e.length,getScrollElement:()=>l||u.current,estimateSize:()=>i,overscan:s}),C=v?y:null,S=v?y.getVirtualItems():[];De.useEffect(()=>{let L=d.current,D=l||u.current;if(!L||!D||!r||o||!t)return;let A=new IntersectionObserver(P=>{let[T]=P;T?.isIntersecting&&!m.current&&r&&t&&(m.current=true,Promise.resolve(t()).finally(()=>{m.current=false;}));},{root:D,rootMargin:`0px 0px ${c}px 0px`,threshold:0});return A.observe(L),()=>{A.disconnect();}},[r,o,t,l,c,p]);let w=De.useCallback((L,D)=>{C?C.scrollToIndex(L,D):u.current&&u.current.children[L]?.scrollIntoView({behavior:"smooth",block:D?.align||"start"});},[C]),N=De.useCallback(()=>{C?C.scrollToIndex(0,{align:"start"}):u.current&&u.current.scrollTo({top:0,behavior:"smooth"});},[C]);return {virtualizer:C,virtualItems:S,computedLoadingState:f,isInitialLoad:b,isLoadingMore:x,scrollRef:u,loadMoreRef:d,scrollToIndex:w,scrollToTop:N}}function li(e,t){let[r,o]=De.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}});De.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=De.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=De.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]}function $h(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 _h(e,t){return t.accessor?typeof t.accessor=="function"?t.accessor(e):e[t.accessor]:null}function Ou(e,t){let r=_h(t,e);return e.exportValue?e.exportValue(r,t)??"":r==null?"":r instanceof Date?r.toISOString():typeof r=="object"?JSON.stringify(r):r}function Tl(e){return e.filter(t=>t.exportable!==false)}function Hu(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 Pl(e){let{columns:t,data:r,metadata:o={}}=e;try{let n=Tl(t);if(n.length===0)throw new Error("No exportable columns found");Hu(n);let a=r.map(c=>{let u={};for(let d of n){let m=d.exportLabel||d.label;u[m]=Ou(d,c);}return u}),i=Sh__default.default.unparse(a,{header:!0,skipEmptyLines:!0}),s=new Blob([i],{type:"text/csv;charset=utf-8;"}),l=$h(o.filename||"table-data","csv",o.timestamp!==!1);fileSaver.saveAs(s,l);}catch(n){throw new Error(`CSV export failed: ${n instanceof Error?n.message:"Unknown error"}`)}}function ey(e){let{columns:t,data:r}=e,o=Tl(t);return Hu(o),r.map(n=>{let a={};for(let i of o){let s=i.exportLabel||i.label;a[s]=Ou(i,n);}return a})}function ty(e){return Tl(e).map(t=>t.exportLabel||t.label)}function Gu({columns:e,data:t,metadata:r}){let n=e.filter(i=>i.exportable!==false).length>0&&t.length>0;return {exportCSV:De.useCallback(async()=>{try{await Pl({columns:e,data:t,metadata:r});}catch(i){throw console.error("Table export failed:",i),i}},[e,t,r]),canExport:n}}var Rl=class{constructor(){jn(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();}},te=new Rl;var Zr=(e,t="Yes",r="No")=>e==null?null:e?t:r,oy=e=>Zr(e,"Enabled","Disabled"),ny=e=>Zr(e,"On","Off"),ay=e=>Zr(e,"Active","Inactive"),iy=e=>Zr(e,"True","False"),sy=e=>Zr(e,"\u2713","\u2717"),Xr=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},Wu=(e,t)=>{if(t.hideWhenNull&&e==null)return null;if(e==null)return t.nullText??null;let r=Xr(e);return r===null?t.nullText??null:Zr(r,t.trueText??"Yes",t.falseText??"No")};te.register("boolean",(e,t,r)=>{let o=Xr(e);return o!==null?Zr(o,typeof t=="string"?t:"Yes",typeof r=="string"?r:"No"):null});te.register("yesNo",e=>{let t=Xr(e);return t!==null?Zr(t,"Yes","No"):null});te.register("enabledDisabled",e=>{let t=Xr(e);return t!==null?oy(t):null});te.register("onOff",e=>{let t=Xr(e);return t!==null?ny(t):null});te.register("activeInactive",e=>{let t=Xr(e);return t!==null?ay(t):null});te.register("trueFalse",e=>{let t=Xr(e);return t!==null?iy(t):null});te.register("checkmark",e=>{let t=Xr(e);return t!==null?sy(t):null});var re=e=>e==null,Uu=(e,t=0)=>re(e)?null:`${e.toFixed(t)}%`,Ku=(e,t=0)=>Uu(e,t)??"\u2014",ly=e=>re(e)?null:Math.round(e).toString(),cy=(e,t=1)=>re(e)?null:e.toFixed(t),dy=(e,t,r=true)=>{if(re(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)},uy=(e,t="short")=>re(e)?null:new Intl.NumberFormat("en-US",{notation:"compact",compactDisplay:t}).format(e),py=(e,t=2)=>re(e)?null:e.toExponential(t),Yu=(e,t="USD",r)=>{if(re(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)},Ju=(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)},qu=(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:Yu(r,t.currency,t)};te.register("percentage",(e,t)=>typeof e=="number"?Uu(e,typeof t=="number"?t:0):null);te.register("integer",e=>typeof e=="number"?ly(e):null);te.register("float",(e,t)=>typeof e=="number"?cy(e,typeof t=="number"?t:1):null);te.register("number",(e,t,r)=>{let o=typeof e=="string"?parseFloat(e):Number(e);return isNaN(o)?null:dy(o,typeof t=="number"?t:void 0,typeof r=="boolean"?r:true)});te.register("compact",(e,t)=>typeof e=="number"?uy(e,t==="long"?"long":"short"):null);te.register("scientific",(e,t)=>typeof e=="number"?py(e,typeof t=="number"?t:2):null);te.register("currency",(e,t,r)=>typeof e=="number"?Yu(e,typeof t=="string"?t:"USD",typeof r=="object"&&r!==null?r:{}):null);function t5(e,t=1){return re(e)?null:Math.abs(e)>=1e3?`${(e/1e3).toFixed(t)} MWh`:`${e.toFixed(t)} kWh`}function r5(e,t=1){return re(e)?null:Math.abs(e)>=1e3?`${(e/1e3).toFixed(t)} MW`:`${e.toFixed(t)} kW`}function gr({value:e,formatter:t,emptyClassName:r="text-text-muted",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=No(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=No(e,{type:"date"});return jsxRuntime.jsx("time",{dateTime:e.toISOString(),title:e.toISOString(),children:n})}if(typeof e=="number")return No(e,{type:"number"});if(typeof e=="boolean")return No(e,{type:"boolean"})}return String(e)}function i5(e,t,r){return De__namespace.default.useCallback(o=>gr({value:o,formatter:e,emptyClassName:t,emptyText:r}),[e,t,r])}var Dl=(e,t=0)=>{if(re(e))return null;let r=e*1e3;return t===0?`${Math.round(r)} mA`:`${r.toFixed(t)} mA`},di=(e,t=1)=>re(e)?null:`${e.toFixed(t)} A`,Al=(e,t=2)=>re(e)?null:`${(e/1e3).toFixed(t)} kA`,fy=(e,t)=>{if(re(e))return null;let r=Math.abs(e);return r>=1e3?Al(e,t??2):r<1?Dl(e,t??0):di(e,t??1)},Ll=(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 Al(r,o??2);case "mA":return Dl(r,o??0);case "A":return di(r,o??1)}return t.autoScale!==false?fy(r,o):di(r,o??1)};te.register("current",Ll);var u5=Dl,p5=di,m5=Al;var wo=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},gy=(e,t=false,r)=>{if(!e)return null;let o=wo(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)},ui=e=>{if(!e)return null;let t=wo(e);return t?t.toRelative():"Invalid Date"},by=(e,t)=>{if(!e)return null;let r=wo(e);return r?(t?r.setZone(t):r).toLocaleString(luxon.DateTime.DATETIME_MED_WITH_WEEKDAY):"Invalid Date"},xy=e=>{if(!e)return null;let t=wo(e);return t?t.toISO():null},hy=(e,t,r)=>{if(!e)return null;let o=wo(e);return o?(r?o.setZone(r):o).toFormat(t):"Invalid Date"},x5=e=>{let t=wo(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},Zu=(e,t)=>{if(t.hideWhenNull&&e==null)return null;if(e==null)return t.nullText??null;let r=wo(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)};te.register("date",(e,t,r)=>gy(e,typeof t=="boolean"?t:false,typeof r=="string"?r:void 0));te.register("relativeTime",e=>ui(e));te.register("fullDateTime",(e,t)=>by(e,typeof t=="string"?t:void 0));te.register("isoString",e=>xy(e));te.register("customDateFormat",(e,t,r)=>typeof t=="string"?hy(e,t,typeof r=="string"?r:void 0):null);var Ml=(e,t=1)=>re(e)?null:`${e.toFixed(t)} m`,yy=(e,t=1)=>re(e)?null:`${(e*100).toFixed(t)} cm`,vy=(e,t=0)=>re(e)?null:`${(e*1e3).toFixed(t)} mm`,El=(e,t=1)=>re(e)?null:`${(e/1e3).toFixed(t)} km`,Il=(e,t=0)=>re(e)?null:`${e.toFixed(t)} ft`,Cy=(e,t=1)=>re(e)?null:`${e.toFixed(t)} in`,Fl=(e,t=1)=>re(e)?null:`${e.toFixed(t)} mi`,Bl=(e,t=0)=>re(e)?null:`${e.toFixed(t)} yd`,C5=(e,t=1)=>re(e)?null:`${e.toFixed(t)} nm`,S5=e=>e*3.28084,N5=e=>e/3.28084,w5=e=>e*1.60934,k5=e=>e/1.60934,T5=e=>e/5280,Xu=e=>e*5280,P5=e=>e/1609.34,R5=e=>e*1609.34,D5=e=>e*.9144,A5=e=>e/.9144,L5=e=>e*2.54,M5=e=>e/2.54,ju=(e,t=false,r=1)=>{if(re(e))return null;let o=Math.abs(e);return t?o>=1e3?El(e,r):o<.01?vy(e,0):o<1?yy(e,r):Ml(e,r):o<.01?Il(Xu(e),0):o<.1?Bl(Xu(e)/3,0):Fl(e,r)},Qu=(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 ju(r,n,o)}switch(t.unit){case "km":return El(r,o);case "ft":return Il(r,o);case "mi":return Fl(r,o);case "yd":return Bl(r,o);default:return Ml(r,o)}};te.register("miles",(e,t)=>typeof e=="number"?Fl(e,typeof t=="number"?t:1):null);te.register("kilometers",(e,t)=>typeof e=="number"?El(e,typeof t=="number"?t:1):null);te.register("meters",(e,t)=>typeof e=="number"?Ml(e,typeof t=="number"?t:1):null);te.register("feet",(e,t)=>typeof e=="number"?Il(e,typeof t=="number"?t:0):null);te.register("yards",(e,t)=>typeof e=="number"?Bl(e,typeof t=="number"?t:0):null);te.register("inches",(e,t)=>typeof e=="number"?Cy(e,typeof t=="number"?t:1):null);te.register("autoScaleDistance",(e,t,r)=>typeof e=="number"?ju(e,typeof t=="boolean"?t:false,typeof r=="number"?r:1):null);var zl=(e,t=1)=>re(e)?null:`${e.toFixed(t)} Wh`,Vl=(e,t=1)=>re(e)?null:`${(e/1e3).toFixed(t)} kWh`,$u=(e,t=1)=>re(e)?null:`${(e/1e6).toFixed(t)} MWh`,_u=(e,t=1)=>re(e)?null:`${(e/1e9).toFixed(t)} GWh`,ep=(e,t=1)=>{if(re(e))return null;let r=Math.abs(e);return r>=1e9?_u(e,t):r>=1e6?$u(e,t):r>=1e3?Vl(e,t):zl(e,t)},Ol=(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.unit)switch(t.unit){case "GWh":return _u(r,o);case "MWh":return $u(r,o);case "kWh":return Vl(r,o);case "Wh":return zl(r,o)}return t.autoScale!==false?ep(r,o):zl(r,o)};te.register("kWh",e=>typeof e=="number"?Vl(e):null);te.register("autoScaleEnergy",(e,t)=>typeof e=="number"?ep(e,typeof t=="number"?t:1):null);te.register("energy",Ol);var pi=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},Hl=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():pi(e)},xn=e=>e?e.startsWith("+")||e.length>11?Hl(e):pi(e):null,tp=(e,t)=>{if(t.hideWhenNull&&e==null)return null;if(e==null)return t.nullText??null;let r=String(e);if(t.international)return Hl(r);switch(t.country){case "US":case "CA":return pi(r);default:return xn(r)}};te.register("phoneNumber",e=>typeof e=="string"?xn(e):null);te.register("usPhone",e=>typeof e=="string"?pi(e):null);te.register("internationalPhone",e=>typeof e=="string"?Hl(e):null);var mi=(e,t=0)=>re(e)?null:t===0?`${Math.round(e)} W`:`${e.toFixed(t)} W`,Gl=(e,t=1)=>re(e)?null:`${(e/1e3).toFixed(t)} kW`,Wl=(e,t=1)=>re(e)?null:`${(e/1e6).toFixed(t)} MW`,Ul=(e,t=2)=>re(e)?null:`${(e/1e9).toFixed(t)} GW`,Sy=(e,t)=>{if(re(e))return null;let r=Math.abs(e);return r>=1e9?Ul(e,t??2):r>=1e6?Wl(e,t??1):r>=1e3?Gl(e,t??1):mi(e,t??0)},Kl=(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 Ul(r,o??2);case "MW":return Wl(r,o??1);case "kW":return Gl(r,o??1);case "W":return mi(r,o??0)}return t.autoScale!==false?Sy(r,o):mi(r,o??0)};te.register("power",Kl);var G5=mi,W5=Gl,U5=Wl,K5=Ul;var Yl=(e,t=1)=>re(e)?null:`${(e*1e3).toFixed(t)} m\u03A9`,fi=(e,t=1)=>re(e)?null:`${e.toFixed(t)} \u03A9`,rp=(e,t=1)=>re(e)?null:`${(e/1e3).toFixed(t)} k\u03A9`,op=(e,t=2)=>re(e)?null:`${(e/1e6).toFixed(t)} M\u03A9`,Ny=(e,t)=>{if(re(e))return null;let r=Math.abs(e);return r>=1e6?op(e,t??2):r>=1e3?rp(e,t??1):r<1?Yl(e,t??1):fi(e,t??1)},Jl=(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 op(r,o??2);case "k\u03A9":return rp(r,o??1);case "m\u03A9":return Yl(r,o??1);case "\u03A9":return fi(r,o??1)}return t.autoScale!==false?Ny(r,o):fi(r,o??1)};te.register("resistance",Jl);te.register("ohms",e=>typeof e=="number"?fi(e):null);te.register("milliohms",e=>typeof e=="number"?Yl(e):null);var np=e=>{switch(e){case "FAHRENHEIT":return "F";case "CELSIUS":return "C";case "KELVIN":return "K";default:return "F"}},ap=(e,t=0)=>re(e)?null:`${e.toFixed(t)}\xB0F`,ip=(e,t=true,r=0)=>re(e)?null:`${(t?(e-32)*(5/9):e).toFixed(r)}\xB0C`,sp=(e,t=true,r=0)=>re(e)?null:`${(t?(e-32)*(5/9)+273.15:e+273.15).toFixed(r)}K`,wy=e=>e*9/5+32,ky=e=>(e-32)*(5/9),Q5=e=>e+273.15,Ty=e=>e-273.15,$5=e=>ky(e)+273.15,_5=e=>wy(Ty(e)),lp=(e,t="F",r=0)=>{if(re(e))return null;switch(typeof t=="string"&&t.length>1?np(t):t){case "C":return ip(e,true,r);case "K":return sp(e,true,r);default:return ap(e,r)}},cp=(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?np(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 lp(r,n,o)};te.register("temperature",(e,t,r)=>typeof e=="number"?lp(e,typeof t=="string"?t:"F",typeof r=="number"?r:0):null);te.register("fahrenheit",(e,t)=>typeof e=="number"?ap(e,typeof t=="number"?t:0):null);te.register("celsius",(e,t,r)=>typeof e=="number"?ip(e,typeof t=="boolean"?t:true,typeof r=="number"?r:0):null);te.register("kelvin",(e,t,r)=>typeof e=="number"?sp(e,typeof t=="boolean"?t:true,typeof r=="number"?r:0):null);var Py=(e,t)=>!!(t.hideWhenNull&&e==null||t.hideWhenZero&&e===0),dp=e=>e?.toUpperCase()??"",up=e=>e?.toLowerCase()??"",pp=e=>e?e.charAt(0).toUpperCase()+e.slice(1).toLowerCase():"",mp=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(" ")},fp=e=>e?e.split(/\s+/).map(t=>t.charAt(0).toUpperCase()+t.slice(1).toLowerCase()).join(" "):"",gp=e=>e?e.charAt(0).toUpperCase()+e.slice(1):"",bp=e=>e?e.replace(/([A-Z])/g," $1").replace(/^./,t=>t.toUpperCase()).trim():"",xp=e=>e?e.toLowerCase().split("_").map(t=>gp(t)).join(" "):"",Ry=e=>e?e.includes("_")?xp(e):e.toUpperCase()===e?gp(e.toLowerCase()):bp(e):"",hn=(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)}`},gi=(e,t=8)=>e?e.length<=t?e:`...${e.slice(-t)}`:"",bi=(e,t=16,r="...")=>e?e.length<=t?e:e.slice(0,t)+r:"",Dy=e=>{if(!e)return "";let t=e.toString(),r=t.slice(-4),o=t.length-4;return o>0?"*".repeat(o)+r:t},hp=(e,t)=>{if(Py(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=dp(r);break;case "lowercase":r=up(r);break;case "capitalize":r=fp(r);break;case "titleCase":r=mp(r);break;case "sentenceCase":r=pp(r);break}}),t.truncate){let{length:o,position:n,ellipsis:a="..."}=t.truncate;switch(n){case "start":r=gi(r,o);break;case "middle":r=hn(r,o);break;case "end":r=bi(r,o,a);break}}return r};te.register("uppercase",e=>dp(String(e)));te.register("lowercase",e=>up(String(e)));te.register("sentenceCase",e=>pp(String(e)));te.register("titleCase",e=>mp(String(e)));te.register("capitalize",e=>fp(String(e)));te.register("camelCaseToWords",e=>bp(String(e)));te.register("snakeCaseToWords",e=>xp(String(e)));te.register("enumToSentenceCase",e=>Ry(String(e)));te.register("truncateMiddle",(e,t)=>hn(String(e),typeof t=="number"?t:16));te.register("truncateStart",(e,t)=>gi(String(e),typeof t=="number"?t:8));te.register("truncateEnd",(e,t,r)=>bi(String(e),typeof t=="number"?t:16,typeof r=="string"?r:"..."));te.register("secret",e=>Dy(String(e)));var ql=(e,t=0)=>{if(re(e))return null;let r=e*1e3;return t===0?`${Math.round(r)} mV`:`${r.toFixed(t)} mV`},xi=(e,t=0)=>re(e)?null:t===0?`${Math.round(e)} V`:`${e.toFixed(t)} V`,Zl=(e,t=1)=>re(e)?null:`${(e/1e3).toFixed(t)} kV`,Ay=(e,t)=>{if(re(e))return null;let r=Math.abs(e);return r>=1e3?Zl(e,t??1):r<1?ql(e,t??0):xi(e,t??0)},Xl=(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 Zl(r,o??1);case "mV":return ql(r,o??0);case "V":return xi(r,o??0)}return t.autoScale!==false?Ay(r,o):xi(r,o??0)};te.register("voltage",Xl);var a3=ql,i3=xi,s3=Zl;var Ly=(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:Ku(r,t.decimals??0)},No=(e,t)=>{switch(t.type){case "text":return hp(e,t);case "number":return Ju(e,t);case "percentage":return Ly(e,t);case "currency":return qu(e,t);case "date":return Zu(e,t);case "boolean":return Wu(e,t);case "energy":return Ol(e,t);case "power":return Kl(e,t);case "voltage":return Xl(e,t);case "current":return Ll(e,t);case "resistance":return Jl(e,t);case "temperature":return cp(e,t);case "distance":return Qu(e,t);case "phone":return tp(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}},C3=(e,t)=>({type:e,...t});var yn={xs:16,sm:20,md:24,lg:32,xl:40,"2xl":48},k=De.memo(({name:e,size:t="md",color:r,weight:o="regular",className:n,ariaLabel:a,...i})=>{let s=My__namespace[e];if(!s)return process.env.NODE_ENV==="development"&&console.error(`Icon "${e}" not found in @phosphor-icons/react`),null;let l=typeof t=="string"&&t in yn?yn[t]:t,c=tailwindMerge.twMerge("inline-block flex-shrink-0",!r&&"text-current",n);return jsxRuntime.jsx(s,{...i,size:l,color:r,weight:o,className:c,"aria-label":a||`${e} icon`,"data-testid":`icon-${e}`})});k.displayName="Icon";var Cp=De.memo(({variant:e="subtle",shape:t="square",containerSize:r,containerClassName:o,size:n="md",className:a,name:i,color:s,weight:l,ariaLabel:c,ref:u,...d})=>{let m=typeof n=="string"&&n in yn?yn[n]:n,p=r?typeof r=="string"&&r in yn?yn[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-gray-100 dark:bg-gray-800",e==="solid"&&"bg-brand text-white",e==="outline"&&"border-2 border-current",o);return jsxRuntime.jsx("div",{className:g,style:{width:p,height:p},children:jsxRuntime.jsx(k,{...d,name:i,size:n,color:s,weight:l,className:a,ariaLabel:c})})});Cp.displayName="IconWithContainer";function Vt({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-black/20 via-black/15 to-black/20","backdrop-blur-[2px]","supports-[backdrop-filter]:bg-black/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 Uy({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 qe({children:e,showArrow:t=false,withBackdrop:r=false,className:o,isDismissable:n=true,disableGroup:a=false,...i}){let l=reactAriaComponents.useSlottedContext(reactAriaComponents.PopoverContext)?.trigger==="SubmenuTrigger",c=t?12:8;c=l?c-6:c;let u=jsxRuntime.jsxs(reactAriaComponents.Popover,{offset:c,...i,className:reactAriaComponents.composeRenderProps(o,(d,m)=>Uy({...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(Vt,{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}var Yy={"--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"]};function Np({variables:e,children:t}){if(!e||Object.keys(e).length===0)return jsxRuntime.jsx(jsxRuntime.Fragment,{children:t});let r={...e};for(let[o,n]of Object.entries(Yy))if(e[o])for(let a of n)e[a]||(r[a]=e[o]);return jsxRuntime.jsx("div",{style:r,children:t})}var _n=new Map,ct=(e,t="#000000")=>{if(typeof window>"u")return t;let r=e.startsWith("var(")?e.slice(4,-1):e.startsWith("--")?e:`--${e}`;if(!e.startsWith("--")&&!e.startsWith("var(")&&!r.startsWith("--color-")&&(r=`--color-${r.slice(2)}`),_n.has(r))return _n.get(r);try{let o=document.body||document.documentElement,a=getComputedStyle(o).getPropertyValue(r).trim();if(a)return _n.set(r,a),a;let i=document.createElement("div");i.style.color=`var(${r})`,document.body.appendChild(i);let s=getComputedStyle(i).color;return document.body.removeChild(i),s&&s!=="rgb(0, 0, 0)"?(_n.set(r,s),s):t}catch(o){return console.warn(`Failed to resolve color for ${e}:`,o),t}},hi=()=>{_n.clear();},ea=()=>{let e=[];for(let t=1;t<=6;t++){let r=ct(`--color-viz-categorical-${t}`);r&&e.push(r);}return e.length===0?wp():e},wp=()=>["#444ae1","#10b981","#f59e0b","#ef4444","#8b5cf6","#06b6d4","#ec4899","#f97316","#14b8a6","#6366f1"],Ql=()=>ct("--color-viz-default","#444ae1"),qy=(e,t)=>{let r={},o=ea();return e.forEach((n,a)=>{t&&t[n]?r[n]=t[n]:r[n]=o[a%o.length];}),r};var kp=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},Zy=e=>kp(e)?ct("--text-body","#333333"):ct("--neutral-white","#ffffff"),Tp=(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()},Pp=e=>{let t=ea(),r={};return e.forEach((o,n)=>{r[o]=t[n%t.length];}),r};var $l=(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)},_l=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]},Rp=(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=ct(i);n.push(s);}return n},tc=(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=ct(i);n.push(s);}return n},ta=(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]},ra=(e,t,r,o,n="redYellowBlue")=>{let a=tc(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 l=(e-t)/(o-t)*i,c=Math.floor(l);return a[Math.min(c,i)]}else {let s=(e-o)/(r-o),l=i+s*(a.length-1-i),c=Math.floor(l);return a[Math.min(c,a.length-1)]}};var rc=De.createContext({mode:"system",colorMode:"light",isDarkTheme:false,toggleTheme:()=>{}}),kt=()=>De.useContext(rc);function _y(){return typeof window>"u"?"light":window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function Lp(){if(typeof window>"u")return "system";let e=localStorage.getItem("colorModePreference");return e==="light"||e==="dark"||e==="system"?e:"system"}function Mp(e){return e==="system"?_y():e}var Ip=({children:e})=>{let[t,r]=De.useState(Lp),[o,n]=De.useState(()=>Mp(Lp())),a=o==="dark",i=De.useCallback(l=>{l==="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")),hi();},[]);De.useEffect(()=>{hi();let l=Mp(t);if(n(l),i(l),t==="system"){let c=window.matchMedia("(prefers-color-scheme: dark)"),u=d=>{let m=d.matches?"dark":"light";n(m),i(m);};return c.addEventListener("change",u),()=>{c.removeEventListener("change",u);}}},[t,i]);let s=De.useCallback(()=>{r(l=>{let c=l==="system"?"light":l==="light"?"dark":"system";return localStorage.setItem("colorModePreference",c),c});},[]);return jsxRuntime.jsx(rc.Provider,{value:{mode:t,colorMode:o,isDarkTheme:a,toggleTheme:s},children:e})};function vn(e){return e instanceof Date&&!Number.isNaN(e.getTime())}function jr(e,t){return vn(e)?t.format(e):""}function Fp(e){if(!vn(e.start)||!vn(e.end))return ()=>"";let t=(e.end.getTime()-e.start.getTime())/(1e3*60*60);if(t<=72){let i=new Intl.DateTimeFormat("en",{month:"short",day:"numeric",hour:"numeric",minute:"2-digit"});return s=>jr(s,i)}if(t<=720){let i=new Intl.DateTimeFormat("en",{month:"short",day:"numeric"});return s=>jr(s,i)}let r=e.start.getFullYear(),o=e.end.getFullYear(),n=r!==o,a=new Intl.DateTimeFormat("en",{month:"short",day:"numeric",...n&&{year:"numeric"}});return i=>jr(i,a)}function oc(e,t){if(!vn(e.start)||!vn(e.end))return ()=>"";let r=(e.end.getTime()-e.start.getTime())/(1e3*60*60),o=t?.compact??false,n=c=>u=>vn(u)?c(u):"";if(r<=24){if(o)return n(u=>{let d=u.getHours(),m=d>=12?"pm":"am";return `${d%12||12}${m}`});let c=new Intl.DateTimeFormat("en",{hour:"numeric",minute:"2-digit"});return u=>jr(u,c)}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 c=new Intl.DateTimeFormat("en",{month:"short",day:"numeric",hour:"numeric"});return u=>jr(u,c)}if(r<=168){if(o)return n(u=>{let d=u.getDate();return `${u.toLocaleDateString("en",{weekday:"short"}).charAt(0)}${d}`});let c=new Intl.DateTimeFormat("en",{weekday:"short",day:"numeric"});return u=>jr(u,c)}if(r<=720){if(o)return n(u=>{let d=u.getMonth()+1,m=u.getDate();return `${d}/${m}`});let c=new Intl.DateTimeFormat("en",{month:"short",day:"numeric"});return u=>jr(u,c)}let a=e.start.getFullYear(),i=e.end.getFullYear(),s=a!==i;if(o)return n(c=>{let u=c.getMonth()+1,d=c.getDate(),m=s?`/${c.getFullYear().toString().slice(-2)}`:"";return `${u}/${d}${m}`});let l=new Intl.DateTimeFormat("en",{month:"short",day:"numeric",...s&&{year:"numeric"}});return c=>jr(c,l)}function Ie(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 xe(e,t){return reactAriaComponents.composeRenderProps(e,r=>tailwindMerge.twMerge(t,r))}var Ae={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 n0="flex font-medium justify-center items-center gap-2 text-center transition rounded-[var(--control-border-radius)] whitespace-nowrap box-border",a0={default:"bg-action-default text-[color:var(--color-action-default-text)] hover:bg-action-default-hover forced-colors:bg-[ButtonText] forced-colors:text-[ButtonFace] border-2 border-transparent",brand:"bg-action-brand text-[color:var(--color-action-brand-text)] hover:bg-action-brand-hover forced-colors:bg-[ButtonText] forced-colors:text-[ButtonFace] border-2 border-transparent",secondary:"bg-transparent text-text-body border-2 border-border-muted hover:bg-text-body/5 forced-colors:border-[ButtonBorder] forced-colors:bg-[ButtonFace] forced-colors:text-[ButtonText]",ghost:"border-none text-text-body hover:bg-text-body/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-brand hover:text-action-brand/90 hover:underline hover:decoration-2 hover:underline-offset-4",icon:"border-none text-text-body hover:bg-background-hover hover:text-text-heading forced-colors:text-[ButtonText] forced-colors:hover:bg-[ButtonFace] p-1 flex-shrink-0 rounded-[var(--control-border-radius)]",unstyled:"bg-transparent"},zp={full:"w-full",default:"w-fit"},i0="opacity-50 cursor-not-allowed pointer-events-none",s0="opacity-100 cursor-pointer",l0={"top-right":"-right-2 -top-2","top-left":"-left-2 -top-2","bottom-right":"-right-2 -bottom-2","bottom-left":"-left-2 -bottom-2"},c0={primary:"bg-action-brand text-white",destructive:"bg-action-destructive text-white"};function d0(e){return e?e==="primary"?"brand":e:"default"}function u0(e){let{variant:t="default",size:r="md",isDisabled:o,fullWidth:n=false,isLoading:a=false}=e,i=d0(t),s=i==="unstyled"?"":`${n0} ${a0[i]}`;i!=="unstyled"&&(s+=` ${Ae[r].text} ${Ae[r].height} ${Ae[r].padding} ${Ae[r].gap}`),o||a?s+=` ${i0}`:s+=` ${s0}`,n?s+=` ${zp.full}`:s+=` ${zp.default}`;let l=i==="brand"?"focus-visible:outline-action-brand":void 0;return [s,Ie(),l].filter(Boolean).join(" ")}function _(e){let{icon:t,children:r,isLoading:o=false,loadingText:n,loadingIndicator:a,size:i="md",iconPosition:s="left",iconWeight:l,href:c,className:u,badgeNumber:d,badgeVariant:m="primary",badgePosition:p="top-right",style:g,target:f,rel:b,...x}=e,v=t?jsxRuntime.jsx(k,{name:t,size:i,weight:l}):null,y=jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[s==="left"&&v,typeof r=="function"?null:r,s==="right"&&v]}),C=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(k,{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(u0(e),u),N=c?{href:c,target:f,rel:b,...x}:{};if(c){let{onPress:D,onPressStart:A,onPressEnd:P,onPressChange:T,onPressUp:E,onAuxClick:R,onContextMenu:J,onDoubleClick:X,...q}=x;Object.assign(N,q);}let L=c?jsxRuntime.jsx(reactAriaComponents.Link,{...N,...o&&{"aria-busy":true},style:S?void 0:g,className:w,children:o?C:typeof r=="function"?(function(D){return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[s==="left"&&v,r(D),s==="right"&&v]})}):y}):jsxRuntime.jsx(reactAriaComponents.Button,{...x,...o&&{"aria-busy":true},style:S?void 0:g,className:w,children:o?C:typeof r=="function"?(function(D){return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[s==="left"&&v,r(D),s==="right"&&v]})}):y});return S?jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("relative flex",u),style:g,children:[L,jsxRuntime.jsx("span",{className:`absolute ${l0[p]} flex h-5 w-5 items-center justify-center rounded-full ${c0[m]} text-xs font-medium`,"aria-label":`${d} items`,children:d})]}):L}function ac({action:e,defaultVariant:t,defaultSize:r="lg"}){let o=!!e.formId;return jsxRuntime.jsx(_,{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 $r({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(ac,{action:r,defaultVariant:"destructive"})}),jsxRuntime.jsxs("div",{className:"flex items-center gap-3",children:[t&&jsxRuntime.jsx(ac,{action:t,defaultVariant:"secondary"}),e&&jsxRuntime.jsx(ac,{action:e,defaultVariant:"default"})]})]})]})}var m0={xs:"text-base md:text-lg font-semibold",sm:"text-lg md:text-xl font-semibold",md:"text-xl md:text-2xl font-semibold",lg:"text-2xl md:text-3xl font-semibold",xl:"text-3xl md:text-4xl font-semibold"},f0={page:"h-16 leading-[62px]"};function Tt({tag:e="h1",size:t="lg",height:r,className:o="",children:n}){let a=m0[t],i=r?f0[r]:"";return jsxRuntime.jsx(e,{className:tailwindMerge.twMerge(a,i,o),children:n})}var xt=({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(_,{variant:"icon",onPress:a,className:"absolute left-6","aria-label":"Go back",children:jsxRuntime.jsx(k,{name:"CaretLeft","data-testid":"back-arrow"})}),i||jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[e&&jsxRuntime.jsx(Tt,{size:"xs",children:e}),t&&!r&&jsxRuntime.jsx(_,{variant:"icon",onPress:t,"aria-label":"Close dialog",children:jsxRuntime.jsx(k,{name:"X","data-testid":"close-button"})})]})]});var V=({width:e,height:t,variant:r="rect",animation:o="pulse",gradient:n=false,flex:a=false,stack:i,responsive:s,delay:l=0,adjustAnimationSpeedBasedOnWidth:c=false,ariaLabel:u,className:d,"data-testid":m})=>{let[p,g]=De.useState(l===0);if(De.useEffect(()=>{if(l>0){let S=setTimeout(()=>g(true),l);return ()=>clearTimeout(S)}},[l]),!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)]",b=c&&e?(()=>{let S=typeof e=="number"?e:parseFloat(String(e));return isNaN(S)?"":`animation-duration-[${Math.max(.8,S/100)}s]`})():"",x=o==="pulse"?`animate-pulse ${b}`: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 ${b}`:"",v="rounded-sm";r==="circle"&&(v="rounded-full"),r==="text"&&(v="h-4 w-full rounded-sm");let y=a?"flex-1 min-w-0":"",C=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,x,v,y,C,d),style:{width:S,height:t}},w))}):jsxRuntime.jsx("div",{className:tailwindMerge.twMerge(f,x,v,y,C,d),style:{width:e,height:t},role:"presentation","aria-hidden":!u,"aria-label":u??void 0,"data-testid":m})},Hp=({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 v0={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"},C0="rounded-lg",sc={square:"aspect-square",video:"aspect-video",wide:"aspect-[2/1]",auto:""},S0={start:"justify-start",end:"justify-end",center:"justify-center",between:"justify-between"};function Le({variant:e="outlined",className:t,children:r,isLoading:o=false,layout:n="default"}){return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("w-full overflow-hidden",v0[e],C0,n==="flex"&&"flex flex-col",t),"data-testid":"card",children:o?jsxRuntime.jsx(V,{width:"100%",height:"100%",className:"rounded-none"}):r})}function lc({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(V,{width:120,height:20}),jsxRuntime.jsx(V,{width:24,height:24})]}),t&&jsxRuntime.jsx(V,{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(Tt,{tag:"h3",size:"sm",className:"text-text-heading",children:e}):e}),t&&jsxRuntime.jsx("div",{className:"text-sm text-text-muted",children:t})]}),r&&jsxRuntime.jsx("div",{className:"flex-shrink-0",children:r})]})})}function cc({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",sc[r],o),children:jsxRuntime.jsx(V,{width:"100%",height:"100%"})}):n?jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("overflow-hidden",sc[r],o),children:n}):e?jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("overflow-hidden",sc[r],o),children:jsxRuntime.jsx("img",{src:e,alt:t||"",className:"w-full h-full object-cover",loading:"lazy"})}):null}function dc({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(V,{width:"100%",height:16}),jsxRuntime.jsx(V,{width:"80%",height:16}),jsxRuntime.jsx(V,{width:"60%",height:16})]})}):t?jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("px-6 py-4 text-text-body",o&&"flex-1 flex flex-col min-h-0",e),children:t}):null}function uc({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(V,{width:80,height:32}),jsxRuntime.jsx(V,{width:60,height:32})]}):t?jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("px-6 py-4 flex items-center gap-2",S0[r],e),children:t}):null}Le.Header=lc;Le.Media=cc;Le.Content=dc;Le.Footer=uc;var nr=class extends De.Component{constructor(){super(...arguments);jn(this,"state",{hasError:false});jn(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(Le,{children:[this.props.title&&jsxRuntime.jsx(Le.Header,{title:this.props.title}),jsxRuntime.jsx(Le.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-red-500",children:this.state.error?.message||"Something went wrong"}),jsxRuntime.jsx("button",{className:"rounded bg-blue-500 px-4 py-2 text-white hover:bg-blue-600",onClick:this.handleRetry,children:"Retry"})]})})]}):this.props.children}};var T0=.3,P0=.5;function Ze({children:e,title:t,headerContent:r,titleAlign:o="left",hideCloseIcon:n=false,hasBackArrow:a=false,onBack:i,isOpen:s,onClose:l,isDismissable:c=true,transparentOverlay:u=false,primaryAction:d,secondaryAction:m,footerContent:p,maxHeight:g="80vh",height:f,maxWidth:b="640px",contentPadding:x=true,showHandle:v=true,animationVariant:y="scale",className:C}){let[S,w]=De.useState(false),[N,L]=De.useState(0),[D,A]=De.useState(false),P=De.useRef(null),T=De.useRef(null),E=De.useRef({isDragging:false,startY:0,startTime:0,pointerId:null});De.useEffect(()=>{if(s){let j=setTimeout(()=>{w(true),setTimeout(()=>w(false),600);},400);return ()=>clearTimeout(j)}},[s]),De.useEffect(()=>{s||(L(0),A(false),E.current={isDragging:false,startY:0,startTime:0,pointerId:null});},[s]);let R=De.useCallback(j=>{c&&(j.pointerType!=="touch"&&j.pointerType!=="pen"||(T.current&&(clearTimeout(T.current),T.current=null),E.current={isDragging:true,startY:j.clientY,startTime:Date.now(),pointerId:j.pointerId},A(false),j.currentTarget.setPointerCapture(j.pointerId)));},[c]),J=De.useCallback(j=>{let{isDragging:M,startY:W,pointerId:U}=E.current;if(!M||j.pointerId!==U)return;let I=j.clientY-W;L(Math.max(0,I));},[]),X=De.useCallback(j=>{let{isDragging:M,startY:W,startTime:U,pointerId:I}=E.current;if(!M||j.pointerId!==I)return;let Y=j.clientY-W,F=Date.now()-U,h=Y/F;E.current={isDragging:false,startY:0,startTime:0,pointerId:null};let B=(P.current?.getBoundingClientRect().height??0)*T0;(Y>B||h>P0&&Y>50)&&c?(l?.(),L(0)):(A(true),L(0),T.current=setTimeout(()=>{A(false),T.current=null;},200));},[c,l]);if(!s)return null;let q=t||r,$=d||m||p;return jsxRuntime.jsx(nr,{children:jsxRuntime.jsx(Vt,{isOpen:s,onOpenChange:j=>{j||l?.();},isDismissable:c,transparent:u,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:c,children:jsxRuntime.jsx("div",{ref:P,className:tailwindMerge.twMerge("w-full",D&&"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)]",C),style:{maxWidth:b,...f?{height:f}:{maxHeight:g}},children:[v&&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:R,onPointerMove:J,onPointerUp:X,onPointerCancel:X,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(xt,{title:t,headerContent:r,titleAlign:o,hideCloseIcon:n||!l,hasBackArrow:true,onBack:i??(()=>{}),onClose:l||(()=>{})}):jsxRuntime.jsx(xt,{title:t,headerContent:r,titleAlign:o,hideCloseIcon:n||!l,onClose:l||(()=>{})})),jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("flex-1 min-h-0 overflow-y-auto overscroll-contain",x?"p-4":"p-0"),children:e}),$&&jsxRuntime.jsx($r,{primaryAction:d,secondaryAction:m,footerContent:p})]})})})})})}Ze.displayName="Tray";function Nn({children:e,items:t,className:r,align:o="left",textAlign:n="left",size:a="md",onAction:i,header:s,footer:l,useMobileTray:c=true,popoverClassName:u}){let[d,m]=De.useState(false),{isMobile:p}=Nt();if(c&&p){let f=De__namespace.default.isValidElement(e)?De__namespace.default.cloneElement(e,{onPress:()=>m(true)}):e,v=(y=>{if(typeof y=="string")return y;if(De__namespace.default.isValidElement(y)){let C=y.props;if(typeof C.children=="string")return C.children;if(Array.isArray(C.children))return C.children.find(w=>typeof w=="string")||""}return ""})(e)||"Actions";return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("div",{className:r,children:f}),jsxRuntime.jsx(Ze,{isOpen:d,onClose:()=>m(false),title:v,contentPadding:false,headerContent:s,footerContent:l,children:jsxRuntime.jsx("div",{className:"flex flex-col",children:t.map(y=>jsxRuntime.jsxs("button",{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-body hover:bg-background-hover active:bg-background-hover/80",y.disabled&&"opacity-50 cursor-not-allowed"),children:[y.iconName&&jsxRuntime.jsx(k,{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-muted",children:y.subtitle})]})})]},y.id))})})]})}return jsxRuntime.jsx("div",{className:r,children:jsxRuntime.jsxs(reactAriaComponents.MenuTrigger,{children:[e,jsxRuntime.jsx(qe,{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(M0,{id:f.id,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))}),l?jsxRuntime.jsx("div",{className:"px-3 pb-3 pt-2",children:l}):null]})})]})})}function M0({textAlign:e="left",iconName:t,size:r="md",isDisabled:o,children:n,variant:a="default",subtitle:i,render:s,noPadding:l,...c}){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={default:"text-text-body hover:bg-background-hover data-[focused]:bg-background-hover data-[focus-visible]:ring-2 data-[focus-visible]:ring-action-default data-[focus-visible]:ring-inset",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,{...c,isDisabled:o,className:tailwindMerge.twMerge("group box-border flex w-full cursor-pointer items-center rounded-sm outline-none transition-colors",!l&&u[r],d[a],e==="right"?"justify-end":"justify-start",o&&"pointer-events-none opacity-50"),children:s()}):jsxRuntime.jsxs(reactAriaComponents.MenuItem,{...c,isDisabled:o,className:tailwindMerge.twMerge("group box-border flex w-full cursor-pointer items-center rounded-sm outline-none transition-colors",!l&&u[r],d[a],e==="right"?"justify-end":"justify-start",o&&"pointer-events-none opacity-50"),children:[t&&e==="left"&&jsxRuntime.jsx(k,{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-muted",children:i})]}),t&&e==="right"&&jsxRuntime.jsx(k,{name:t,size:r==="sm"?16:20,className:"ml-3 flex-shrink-0"})]})}var Lr=({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 qt({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-muted",r),"aria-label":t||"Loading",children:[jsxRuntime.jsx(Lr,{size:20,color:"text-text-muted"}),t&&jsxRuntime.jsx("span",{className:"text-sm","aria-hidden":"true",children:t})]});return o||n}var wn=De.createContext({variant:"timeline",size:"md"});function Xp(){return De.useContext(wn)}function Ci(e){return De.isValidElement(e)&&e.type===wi}function H0(e){return De.isValidElement(e)&&e.type===Ni}function xc({variant:e="timeline",size:t="md",className:r,children:o,items:n,renderItem:a,isLoading:i=false,loadingState:s,error:l=null,renderLoadingSkeleton:c,loadingSkeletonCount:u=5,emptyMessage:d="No activity found.",onLoadMore:m,hasMore:p=false,enableVirtualization:g,estimatedItemSize:f,loadingIndicator:b,height:x,maxHeight:v,...y}){let C=De.useRef(null),{isMobile:S}=Nt(),w=S?"stacked":e,N=n!==void 0&&a!==void 0,{scrollRef:L,loadMoreRef:D,virtualizer:A,virtualItems:P,isLoadingMore:T,computedLoadingState:E}=qr({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&&L?L:C,J=De.useMemo(()=>({variant:w,size:t}),[w,t]),X=w==="timeline"?t==="sm"?"gap-4":"gap-6":"gap-0",q=w==="stacked"?"divide-y divide-border-subtle rounded-lg border border-border-subtle bg-background-surface":"",$={};if(N&&m&&(x?($.height=typeof x=="number"?`${x}px`:x,$.overflowY="auto"):v?($.maxHeight=typeof v=="number"?`${v}px`:v,$.overflowY="auto"):($.height="600px",$.overflowY="auto")),N){let W=E==="loading"||i&&(!n||n.length===0);if(W){let I=c?jsxRuntime.jsx(jsxRuntime.Fragment,{children:Array.from({length:u}).map((Y,F)=>jsxRuntime.jsx("div",{children:c()},`skeleton-${F}`))}):jsxRuntime.jsx(jsxRuntime.Fragment,{children:Array.from({length:u}).map((Y,F)=>{let h=t==="sm"?"gap-2":"gap-3";if(w==="timeline"){let z=t==="sm"?"pt-3":"pt-4",B=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 ${z}`,children:[jsxRuntime.jsx(V,{width:32,height:32,variant:"circle"}),F<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 ${h} ${B} rounded-md border border-border-subtle bg-background-surface`,children:[jsxRuntime.jsxs("div",{className:"flex items-center justify-between gap-3",children:[jsxRuntime.jsx(V,{width:"50%",height:16}),jsxRuntime.jsx(V,{width:"15%",height:12})]}),jsxRuntime.jsx(V,{width:"85%",height:t==="sm"?14:15}),jsxRuntime.jsx(V,{width:"70%",height:t==="sm"?14:15})]})]},`skeleton-${F}`)}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(V,{width:24,height:24,variant:"circle"}),jsxRuntime.jsx(V,{width:"50%",height:16})]}),jsxRuntime.jsxs("div",{className:`mt-3 flex flex-col ${h}`,children:[jsxRuntime.jsx(V,{width:"85%",height:t==="sm"?14:15}),jsxRuntime.jsx(V,{width:"70%",height:t==="sm"?14:15}),jsxRuntime.jsx(V,{width:"20%",height:12})]})]},`skeleton-${F}`)})});return jsxRuntime.jsx(wn.Provider,{value:J,children:jsxRuntime.jsx("div",{ref:R,"data-slot":"feed","data-variant":w,className:tailwindMerge.twMerge("flex flex-col",X,q,r),style:$,...y,children:I})})}if(l)return jsxRuntime.jsx(wn.Provider,{value:J,children:jsxRuntime.jsx("div",{ref:R,"data-slot":"feed","data-variant":w,className:tailwindMerge.twMerge("flex flex-col",X,q,r),style:$,...y,children:jsxRuntime.jsx("div",{className:"p-4 text-center text-action-destructive",children:l})})});if(!n||n.length===0)return jsxRuntime.jsx(wn.Provider,{value:J,children:jsxRuntime.jsx("div",{ref:R,"data-slot":"feed","data-variant":w,className:tailwindMerge.twMerge("flex flex-col",X,q,r),style:$,...y,children:jsxRuntime.jsx("div",{className:"p-4 text-center text-text-muted",children:d})})});let U=A?P?.map(I=>({virtualItem:I,item:n[I.index],index:I.index}))||[]:n.map((I,Y)=>({item:I,index:Y,virtualItem:null}));return jsxRuntime.jsx(wn.Provider,{value:J,children:jsxRuntime.jsxs("div",{ref:R,"data-slot":"feed","data-variant":w,className:tailwindMerge.twMerge("flex flex-col",X,q,r),style:{...$,position:A?"relative":void 0},...y,children:[A?jsxRuntime.jsxs("div",{style:{height:`${A.getTotalSize()}px`,position:"relative"},children:[U.map(({item:I,index:Y,virtualItem:F})=>{if(!I||!F)return null;let h=a(I,Y),z=w==="timeline"&&De.isValidElement(h)&&Ci(h)?De.cloneElement(h,{showConnector:Y!==n.length-1}):h;return jsxRuntime.jsx("div",{style:{position:"absolute",top:0,left:0,width:"100%",transform:`translateY(${F.start}px)`},"data-index":F.index,ref:A.measureElement,children:z},`item-${Y}`)}),T&&jsxRuntime.jsx("div",{style:{position:"absolute",top:`${A.getTotalSize()}px`,left:0,width:"100%"},children:b||jsxRuntime.jsx(qt,{state:"loading-more"})})]}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[U.map(({item:I,index:Y})=>{let F=a(I,Y);if(w==="timeline"&&De.isValidElement(F)&&Ci(F)){let h=Y===n.length-1;return jsxRuntime.jsx("div",{children:De.cloneElement(F,{showConnector:!h})},`item-${Y}`)}return jsxRuntime.jsx("div",{children:F},`item-${Y}`)}),T&&(b||jsxRuntime.jsx(qt,{state:"loading-more"}))]}),m&&p&&!W&&jsxRuntime.jsx("div",{ref:D,style:A?{position:"absolute",top:`${A.getTotalSize()}px`,left:0,width:"100%",height:1}:{height:1,width:"100%"}})]})})}let j=De.Children.toArray(o),M=j.map((W,U)=>{if(Ci(W)){let I=W.props.showConnector??(w==="timeline"&&U<j.length-1),Y=w==="timeline"&&U>0;return De.cloneElement(W,{showConnector:I,showIncomingConnector:Y})}if(H0(W)){let I=U===j.length-1;return De.cloneElement(W,{__isLastGroup:I,__isFirstGroup:U===0})}return W});return jsxRuntime.jsx(wn.Provider,{value:J,children:jsxRuntime.jsx("div",{"data-slot":"feed","data-variant":w,className:tailwindMerge.twMerge("flex flex-col",X,q,r),...y,children:M})})}xc.displayName="ActivityFeed";function Ni(e){let{variant:t,size:r}=Xp(),{title:o,description:n,actions:a,children:i,className:s,__isLastGroup:l=false,__isFirstGroup:c=false,...u}=e,d=De.Children.toArray(i),m=d.map((f,b)=>{if(Ci(f)){let x=f.props.showConnector??(t==="timeline"&&!(l&&b===d.length-1));return De.cloneElement(f,{showConnector:x,showIncomingConnector:t==="timeline"&&!(c&&b===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-muted",children:o}),n&&jsxRuntime.jsx("span",{className:"text-sm text-text-muted",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})]})}Ni.displayName="ActivityFeedGroup";var qp={neutral:"bg-background-muted text-text-muted 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"},G0={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"},W0={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 wi(e){let{variant:t,size:r}=Xp(),{title:o,description:n,timestamp:a,meta:i,media:s,actions:l,visual:c,icon:u,iconWeight:d,tone:m="neutral",surface:p,isHighlighted:g=false,showConnector:f=true,hideIndicator:b=false,interactive:x,className:v,children:y,onKeyDown:C,showIncomingConnector:S,...w}=e,N=c??(u?jsxRuntime.jsx(k,{name:u,weight:d||"fill",className:"h-4 w-4"}):null),L=p??(t==="stacked"?"minimal":"subtle"),D=r==="sm"?"gap-2":"gap-3",A="text-xs text-text-subtle",P=r==="sm"?"text-sm":"text-[15px]",T="text-xs text-text-muted",E=x??typeof w.onClick=="function",R=U=>{if(!E){C?.(U);return}U.key===" "?U.preventDefault():U.key==="Enter"&&(U.preventDefault(),U.currentTarget.click()),C?.(U);},J=U=>{E&&U.key===" "&&(U.preventDefault(),U.currentTarget.click());},X=E?tailwindMerge.twMerge("group cursor-pointer",Ie()):void 0,$=jsxRuntime.jsxs("div",{"data-slot":"connector",className:tailwindMerge.twMerge("relative flex h-full flex-col items-center",L==="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",qp[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"})]}),j=g?tailwindMerge.twMerge(G0[m],L==="minimal"?"rounded-md border border-border-muted":W0[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"}[L],j,X,E?"transition-colors hover:bg-background-subtle/80":"",v),onKeyDown:R,onKeyUp:J,...w,children:[jsxRuntime.jsxs("div",{className:"flex items-center gap-3",children:[!b&&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",qp[m]),children:N}),jsxRuntime.jsx("div",{"data-slot":"title",className:"min-w-0 flex-1 text-sm font-semibold text-text-body",children:o})]}),jsxRuntime.jsxs("div",{"data-slot":"content",className:tailwindMerge.twMerge("mt-3 flex flex-col",D),children:[n&&jsxRuntime.jsx("div",{"data-slot":"description",className:tailwindMerge.twMerge("text-text-muted",P),children:n}),i&&jsxRuntime.jsx("div",{className:T,children:i}),s&&jsxRuntime.jsx("div",{className:"flex flex-col gap-2 text-sm text-text-muted",children:s}),y,l&&jsxRuntime.jsx("div",{className:"flex flex-wrap gap-2 pt-1",children:l}),a&&jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("-mt-1.5",A),children:a})]})]});let M=L==="minimal"?r==="sm"?"py-2":"py-3":r==="sm"?"p-3":"p-4",W={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]",X,v),onKeyDown:R,onKeyUp:J,...w,children:[b?jsxRuntime.jsx("div",{}):$,jsxRuntime.jsxs("div",{"data-slot":"content",className:tailwindMerge.twMerge("min-w-0 flex flex-col",D,M,W[L],j,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-body",children:o}),a&&jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("flex-shrink-0",A),children:a})]}),n&&jsxRuntime.jsx("div",{"data-slot":"description",className:tailwindMerge.twMerge("text-text-muted",P),children:n}),i&&jsxRuntime.jsx("div",{className:T,children:i}),s&&jsxRuntime.jsx("div",{className:"flex flex-col gap-2 text-sm text-text-muted",children:s}),y,l&&jsxRuntime.jsx("div",{className:"flex flex-wrap gap-2 pt-2",children:l})]})]})}wi.displayName="ActivityItem";function Zt({isOpen:e,onClose:t,title:r,headerContent:o,titleAlign:n="left",hideCloseIcon:a=false,hasBackArrow:i=false,onBack:s,children:l,primaryAction:c,secondaryAction:u,tertiaryAction:d,footerContent:m,transparentOverlay:p=false,maxWidth:g="600px",minWidth:f="400px",maxHeight:b="85vh",height:x,mobileMaxHeight:v="90vh",mobileHeight:y,contentPadding:C=true,className:S}){let w=St("(max-width: 767px)"),N=De.useRef(null),L=De.useCallback(()=>{N.current&&N.current.scrollTop!==0&&(N.current.scrollTop=0);},[]),D=De.useRef(null),A=De.useCallback(()=>{D.current&&D.current.scrollTop!==0&&(D.current.scrollTop=0);},[]);if(e===false)return null;let P=r||o,T=c||u||d||m,E=e!==void 0;return w?E?jsxRuntime.jsx(Ze,{isOpen:e,onClose:t,title:r,headerContent:o,titleAlign:n,hideCloseIcon:a,hasBackArrow:i,onBack:s,primaryAction:c,secondaryAction:u,footerContent:m,transparentOverlay:p,maxHeight:v,height:y,maxWidth:g,contentPadding:C,showHandle:true,animationVariant:"scale",className:S,children:l}):jsxRuntime.jsx(nr,{children:jsxRuntime.jsx(Vt,{isDismissable:true,transparent:p,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:N,onScroll:L,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","max-h-[90vh]","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:v}},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"})}),P&&(i?jsxRuntime.jsx(xt,{title:r,headerContent:o,titleAlign:n,hideCloseIcon:a||!t,hasBackArrow:true,onBack:s,onClose:t||(()=>{})}):jsxRuntime.jsx(xt,{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 overscroll-contain",C?"px-6 py-6":"p-0"),children:l}),T&&jsxRuntime.jsx($r,{primaryAction:c,secondaryAction:u,tertiaryAction:d,footerContent:m})]})})})}):jsxRuntime.jsx(nr,{children:jsxRuntime.jsx(Vt,{...E?{isOpen:e,onOpenChange:R=>{!R&&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:A,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,...x?{height:x}:{maxHeight:b}},children:[P&&(i?jsxRuntime.jsx(xt,{title:r,headerContent:o,titleAlign:n,hideCloseIcon:a||!t,hasBackArrow:true,onBack:s,onClose:t||(()=>{})}):jsxRuntime.jsx(xt,{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",C?"px-6 py-6":"p-0"),children:l}),T&&jsxRuntime.jsx($r,{primaryAction:c,secondaryAction:u,tertiaryAction:d,footerContent:m})]})})})})}function rm({isOpen:e,onClose:t,title:r,message:o,confirmLabel:n="OK",confirmVariant:a="primary",maxWidth:i="400px",minWidth:s="320px"}){return jsxRuntime.jsx(Zt,{isOpen:e,onClose:t,title:r,maxWidth:i,minWidth:s,primaryAction:{label:n,onPress:t,variant:a},children:jsxRuntime.jsx("div",{className:"text-text-body",children:o})})}var Ti=({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-body)",t){let l=r||270,c=l/270*80;return jsxRuntime.jsxs("svg",{width:l,height:c,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 Pi=({topItems:e=[],bottomItems:t=[],bottomContent:r,logo:o,showLogo:n=true,linkComponent:a="a",className:i="",mobileMenuId:s="app-mobile-menu",sidebarCollapseId:l="app-sidebar-collapse"})=>{let c=p=>p.length>0&&"items"in p[0],u=p=>c(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-subtle uppercase tracking-wider","data-collapse-hide":"",children:p.title}),jsxRuntime.jsx("div",{className:"space-y-0.5",children:p.items.map(b=>m(b))}),g<f-1&&jsxRuntime.jsx("div",{className:"border-b border-border-subtle mx-6 my-2","data-collapse-hide":""})]},p.id),m=(p,g=false)=>{if(p.children&&p.children.length>0){let x=`category-${p.id}`;return jsxRuntime.jsxs("div",{className:"group/category",children:[jsxRuntime.jsx("input",{type:"checkbox",id:x,className:"peer/category hidden",defaultChecked:p.isExpanded,"aria-hidden":"true"}),jsxRuntime.jsxs("label",{htmlFor:x,className:"flex items-center gap-3 px-6 py-1 text-text-body hover:bg-background-hover hover:text-text-heading cursor-pointer transition-all duration-200","data-collapse-center":"",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","data-collapse-icon":"",children:p.icon}),jsxRuntime.jsx("span",{className:"transition-all duration-200","data-collapse-hide":"",children:p.label}),jsxRuntime.jsx("span",{className:"flex-1","data-collapse-hide":""}),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","data-collapse-hide":"",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","data-collapse-hide-category":"",children:p.children.map(v=>m(v,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-body hover:text-text-heading"}`,"aria-current":p.isActive?"page":void 0,"data-collapse-center":g?void 0:""},b=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","data-collapse-icon":"",children:p.icon}),jsxRuntime.jsx("span",{className:"transition-all duration-200","data-collapse-hide":"",children:p.label})]});return a==="a"?jsxRuntime.jsx("a",{...f,children:b},p.id):jsxRuntime.jsx(a,{...f,children:b},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","data-collapse-hide":"",children:o||jsxRuntime.jsx(Ti,{showWordmark:true,width:120})}),jsxRuntime.jsx("label",{htmlFor:l,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":"Toggle sidebar","data-collapse-toggle":"",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:"M4 6h16M4 12h16M4 18h16"})})}),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",{"data-collapse-hide":"",children:r})})]})]})};var _r={xs:16,sm:20,md:24,lg:32,xl:40,"2xl":48},Po=De.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 l=typeof t=="string"?t in _r?_r[t]:_r.md:t,c=tailwindMerge.twMerge("inline-block flex-shrink-0",!r&&"text-current",n);return jsxRuntime.jsx(s,{...i,size:l,color:r,weight:o,className:c,"aria-label":a||`${e} icon`,"data-testid":`icon-${e}`})});Po.displayName="IconSSR";var Y0=De.memo(({variant:e="subtle",shape:t="square",containerSize:r,containerClassName:o,size:n="md",className:a,name:i,color:s,weight:l,ariaLabel:c,ref:u,...d})=>{let m=typeof n=="string"?n in _r?_r[n]:_r.md:n,p=r?typeof r=="string"?r in _r?_r[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-gray-100 dark:bg-gray-800",e==="solid"&&"bg-brand text-white",e==="outline"&&"border-2 border-current",o);return jsxRuntime.jsx("div",{className:g,style:{width:p,height:p},children:jsxRuntime.jsx(Po,{...d,name:i,size:n,color:s,weight:l,className:a,ariaLabel:c})})});Y0.displayName="IconSSRWithContainer";var la=({rightContent:e,centerContent:t,showMobileMenu:r=true,avatar:o,showColorModeSwitcher:n=false,toggleTheme:a,isDarkThemeEnabled:i=false,colorMode:s,actions:l,className:c="",mobileMenuId:u="app-mobile-menu"})=>{let d=()=>{switch(s||(i?"dark":"light")){case "system":return jsxRuntime.jsx(Po,{name:"Monitor",size:"sm"});case "light":return jsxRuntime.jsx(Po,{name:"Sun",size:"sm"});case "dark":return jsxRuntime.jsx(Po,{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 ${c}`,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(Po,{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()}),l,o&&jsxRuntime.jsx("div",{className:"flex items-center",children:o})]})]})})};function im({sideNav:e,topNav:t,children:r,contentPaddingX:o,contentPaddingY:n,showSidebarBorder:a=true,mainClassName:i,enableJsEnhancements:s=false}){let l="app-mobile-menu",c="app-sidebar-collapse";return jsxRuntime.jsxs("div",{className:"min-h-[100dvh] bg-background text-text-body relative",children:[jsxRuntime.jsx("input",{type:"checkbox",id:c,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(la,{...t,mobileMenuId:l,className:["sticky top-0 flex-shrink-0 z-30 md:hidden",t?.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-black/50 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("aside",{id:"app-sidebar",className:["bg-background-surface","border-r border-border-default","transition-all duration-300 ease-in-out","fixed md:relative","left-0 top-0 bottom-0","z-[60] md:z-10","w-80 md:w-64","h-[100dvh] md:h-full","-translate-x-full","peer-checked/mobile:translate-x-0","md:translate-x-0",a?"":"!border-r-0",e?.className||""].filter(Boolean).join(" "),children:jsxRuntime.jsx(Pi,{...e,mobileMenuId:l,sidebarCollapseId:c,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",children:jsxRuntime.jsx(la,{...t,className:t?.className})}),jsxRuntime.jsx("main",{id:"app-content",className:["flex-1 overflow-y-auto overflow-x-hidden bg-background-body",o,n,i||""].join(" "),role:"main",children:r})]})]}),jsxRuntime.jsx("style",{dangerouslySetInnerHTML:{__html:`
1
+ 'use strict';var reactAriaComponents=require('react-aria-components'),Ee=require('react'),fileSaver=require('file-saver'),jy=require('papaparse'),ev=require('fuse.js'),reactVirtual=require('@tanstack/react-virtual'),jsxRuntime=require('react/jsx-runtime'),luxon=require('luxon'),tailwindMerge=require('tailwind-merge'),o0=require('@phosphor-icons/react'),gC=require('@phosphor-icons/react/ssr'),reactStately=require('react-stately'),lucideReact=require('lucide-react'),framerMotion=require('framer-motion'),A1=require('react-ace'),reactColorful=require('react-colorful'),curve=require('@visx/curve'),shape=require('@visx/shape'),gradient=require('@visx/gradient'),scale=require('@visx/scale'),d3Array=require('d3-array'),axis=require('@visx/axis'),responsive=require('@visx/responsive'),zoom=require('@visx/zoom'),brush=require('@visx/brush'),pattern=require('@visx/pattern'),core=require('@dnd-kit/core'),sortable=require('@dnd-kit/sortable'),utilities=require('@dnd-kit/utilities'),reactDom=require('react-dom'),KP=require('react-map-gl'),Q5=require('@tiptap/extension-link'),react=require('@tiptap/react'),menus=require('@tiptap/react/menus'),t4=require('@tiptap/starter-kit');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 Ee__namespace=/*#__PURE__*/_interopNamespace(Ee);var jy__default=/*#__PURE__*/_interopDefault(jy);var ev__default=/*#__PURE__*/_interopDefault(ev);var o0__namespace=/*#__PURE__*/_interopNamespace(o0);var gC__namespace=/*#__PURE__*/_interopNamespace(gC);var A1__default=/*#__PURE__*/_interopDefault(A1);var KP__default=/*#__PURE__*/_interopDefault(KP);var Q5__default=/*#__PURE__*/_interopDefault(Q5);var t4__default=/*#__PURE__*/_interopDefault(t4);var Vy=Object.create;var _l=Object.defineProperty;var Oy=Object.getOwnPropertyDescriptor;var Hy=Object.getOwnPropertyNames;var Wy=Object.getPrototypeOf,Gy=Object.prototype.hasOwnProperty;var Uy=(e,t,r)=>t in e?_l(e,t,{enumerable:true,configurable:true,writable:true,value:r}):e[t]=r;var cr=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var Yy=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of Hy(t))!Gy.call(e,n)&&n!==r&&_l(e,n,{get:()=>t[n],enumerable:!(o=Oy(t,n))||o.enumerable});return e};var vp=(e,t,r)=>(r=e!=null?Vy(Wy(e)):{},Yy(!e||!e.__esModule?_l(r,"default",{value:e,enumerable:true}):r,e));var la=(e,t,r)=>Uy(e,typeof t!="symbol"?t+"":t,r);var gg=cr(Le=>{var ct=typeof Symbol=="function"&&Symbol.for,qd=ct?Symbol.for("react.element"):60103,Zd=ct?Symbol.for("react.portal"):60106,hs=ct?Symbol.for("react.fragment"):60107,ys=ct?Symbol.for("react.strict_mode"):60108,vs=ct?Symbol.for("react.profiler"):60114,Cs=ct?Symbol.for("react.provider"):60109,Ss=ct?Symbol.for("react.context"):60110,Xd=ct?Symbol.for("react.async_mode"):60111,ws=ct?Symbol.for("react.concurrent_mode"):60111,Ns=ct?Symbol.for("react.forward_ref"):60112,Ts=ct?Symbol.for("react.suspense"):60113,p2=ct?Symbol.for("react.suspense_list"):60120,ks=ct?Symbol.for("react.memo"):60115,Ps=ct?Symbol.for("react.lazy"):60116,m2=ct?Symbol.for("react.block"):60121,f2=ct?Symbol.for("react.fundamental"):60117,g2=ct?Symbol.for("react.responder"):60118,b2=ct?Symbol.for("react.scope"):60119;function jt(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case qd:switch(e=e.type,e){case Xd:case ws:case hs:case vs:case ys:case Ts:return e;default:switch(e=e&&e.$$typeof,e){case Ss:case Ns:case Ps:case ks:case Cs:return e;default:return t}}case Zd:return t}}}function fg(e){return jt(e)===ws}Le.AsyncMode=Xd;Le.ConcurrentMode=ws;Le.ContextConsumer=Ss;Le.ContextProvider=Cs;Le.Element=qd;Le.ForwardRef=Ns;Le.Fragment=hs;Le.Lazy=Ps;Le.Memo=ks;Le.Portal=Zd;Le.Profiler=vs;Le.StrictMode=ys;Le.Suspense=Ts;Le.isAsyncMode=function(e){return fg(e)||jt(e)===Xd};Le.isConcurrentMode=fg;Le.isContextConsumer=function(e){return jt(e)===Ss};Le.isContextProvider=function(e){return jt(e)===Cs};Le.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===qd};Le.isForwardRef=function(e){return jt(e)===Ns};Le.isFragment=function(e){return jt(e)===hs};Le.isLazy=function(e){return jt(e)===Ps};Le.isMemo=function(e){return jt(e)===ks};Le.isPortal=function(e){return jt(e)===Zd};Le.isProfiler=function(e){return jt(e)===vs};Le.isStrictMode=function(e){return jt(e)===ys};Le.isSuspense=function(e){return jt(e)===Ts};Le.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===hs||e===ws||e===vs||e===ys||e===Ts||e===p2||typeof e=="object"&&e!==null&&(e.$$typeof===Ps||e.$$typeof===ks||e.$$typeof===Cs||e.$$typeof===Ss||e.$$typeof===Ns||e.$$typeof===f2||e.$$typeof===g2||e.$$typeof===b2||e.$$typeof===m2)};Le.typeOf=jt;});var bg=cr(Ie=>{process.env.NODE_ENV!=="production"&&(function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,o=e?Symbol.for("react.fragment"):60107,n=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,i=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,u=e?Symbol.for("react.suspense"):60113,m=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,f=e?Symbol.for("react.block"):60121,b=e?Symbol.for("react.fundamental"):60117,x=e?Symbol.for("react.responder"):60118,v=e?Symbol.for("react.scope"):60119;function y(X){return typeof X=="string"||typeof X=="function"||X===o||X===c||X===a||X===n||X===u||X===m||typeof X=="object"&&X!==null&&(X.$$typeof===g||X.$$typeof===p||X.$$typeof===i||X.$$typeof===s||X.$$typeof===d||X.$$typeof===b||X.$$typeof===x||X.$$typeof===v||X.$$typeof===f)}function C(X){if(typeof X=="object"&&X!==null){var te=X.$$typeof;switch(te){case t:var Ne=X.type;switch(Ne){case l:case c:case o:case a:case n:case u:return Ne;default:var ae=Ne&&Ne.$$typeof;switch(ae){case s:case d:case g:case p:case i:return ae;default:return te}}case r:return te}}}var N=l,P=c,T=s,B=i,A=t,I=d,L=o,M=g,S=p,w=r,G=a,K=n,z=u,j=false;function Z(X){return j||(j=true,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),R(X)||C(X)===l}function R(X){return C(X)===c}function V(X){return C(X)===s}function D(X){return C(X)===i}function k(X){return typeof X=="object"&&X!==null&&X.$$typeof===t}function Y(X){return C(X)===d}function E(X){return C(X)===o}function h(X){return C(X)===g}function U(X){return C(X)===p}function H(X){return C(X)===r}function q(X){return C(X)===a}function re(X){return C(X)===n}function ue(X){return C(X)===u}Ie.AsyncMode=N,Ie.ConcurrentMode=P,Ie.ContextConsumer=T,Ie.ContextProvider=B,Ie.Element=A,Ie.ForwardRef=I,Ie.Fragment=L,Ie.Lazy=M,Ie.Memo=S,Ie.Portal=w,Ie.Profiler=G,Ie.StrictMode=K,Ie.Suspense=z,Ie.isAsyncMode=Z,Ie.isConcurrentMode=R,Ie.isContextConsumer=V,Ie.isContextProvider=D,Ie.isElement=k,Ie.isForwardRef=Y,Ie.isFragment=E,Ie.isLazy=h,Ie.isMemo=U,Ie.isPortal=H,Ie.isProfiler=q,Ie.isStrictMode=re,Ie.isSuspense=ue,Ie.isValidElementType=y,Ie.typeOf=C;})();});var $d=cr((AF,Qd)=>{process.env.NODE_ENV==="production"?Qd.exports=gg():Qd.exports=bg();});var yg=cr((MF,hg)=>{var xg=Object.getOwnPropertySymbols,x2=Object.prototype.hasOwnProperty,h2=Object.prototype.propertyIsEnumerable;function y2(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function v2(){try{if(!Object.assign)return !1;var e=new String("abc");if(e[5]="de",Object.getOwnPropertyNames(e)[0]==="5")return !1;for(var t={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;var o=Object.getOwnPropertyNames(t).map(function(a){return t[a]});if(o.join("")!=="0123456789")return !1;var n={};return "abcdefghijklmnopqrst".split("").forEach(function(a){n[a]=a;}),Object.keys(Object.assign({},n)).join("")==="abcdefghijklmnopqrst"}catch{return false}}hg.exports=v2()?Object.assign:function(e,t){for(var r,o=y2(e),n,a=1;a<arguments.length;a++){r=Object(arguments[a]);for(var i in r)x2.call(r,i)&&(o[i]=r[i]);if(xg){n=xg(r);for(var s=0;s<n.length;s++)h2.call(r,n[s])&&(o[n[s]]=r[n[s]]);}}return o};});var Rs=cr((LF,vg)=>{var C2="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";vg.exports=C2;});var _d=cr((IF,Cg)=>{Cg.exports=Function.call.bind(Object.prototype.hasOwnProperty);});var kg=cr((FF,Tg)=>{var eu=function(){};process.env.NODE_ENV!=="production"&&(Sg=Rs(),Ds={},wg=_d(),eu=function(e){var t="Warning: "+e;typeof console<"u"&&console.error(t);try{throw new Error(t)}catch{}});var Sg,Ds,wg;function Ng(e,t,r,o,n){if(process.env.NODE_ENV!=="production"){for(var a in e)if(wg(e,a)){var i;try{if(typeof e[a]!="function"){var s=Error((o||"React class")+": "+r+" type `"+a+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[a]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw s.name="Invariant Violation",s}i=e[a](t,a,o,r,null,Sg);}catch(c){i=c;}if(i&&!(i instanceof Error)&&eu((o||"React class")+": type specification of "+r+" `"+a+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof i+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),i instanceof Error&&!(i.message in Ds)){Ds[i.message]=true;var l=n?n():"";eu("Failed "+r+" type: "+i.message+(l??""));}}}}Ng.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(Ds={});};Tg.exports=Ng;});var Dg=cr((BF,Rg)=>{var S2=$d(),w2=yg(),Wn=Rs(),tu=_d(),Pg=kg(),Gn=function(){};process.env.NODE_ENV!=="production"&&(Gn=function(e){var t="Warning: "+e;typeof console<"u"&&console.error(t);try{throw new Error(t)}catch{}});function Es(){return null}Rg.exports=function(e,t){var r=typeof Symbol=="function"&&Symbol.iterator,o="@@iterator";function n(S){var w=S&&(r&&S[r]||S[o]);if(typeof w=="function")return w}var a="<<anonymous>>",i={array:d("array"),bigint:d("bigint"),bool:d("boolean"),func:d("function"),number:d("number"),object:d("object"),string:d("string"),symbol:d("symbol"),any:u(),arrayOf:m,element:p(),elementType:g(),instanceOf:f,node:y(),objectOf:x,oneOf:b,oneOfType:v,shape:N,exact:P};function s(S,w){return S===w?S!==0||1/S===1/w:S!==S&&w!==w}function l(S,w){this.message=S,this.data=w&&typeof w=="object"?w:{},this.stack="";}l.prototype=Error.prototype;function c(S){if(process.env.NODE_ENV!=="production")var w={},G=0;function K(j,Z,R,V,D,k,Y){if(V=V||a,k=k||R,Y!==Wn){if(t){var E=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw E.name="Invariant Violation",E}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var h=V+":"+R;!w[h]&&G<3&&(Gn("You are manually calling a React.PropTypes validation function for the `"+k+"` prop on `"+V+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),w[h]=true,G++);}}return Z[R]==null?j?Z[R]===null?new l("The "+D+" `"+k+"` is marked as required "+("in `"+V+"`, but its value is `null`.")):new l("The "+D+" `"+k+"` is marked as required in "+("`"+V+"`, but its value is `undefined`.")):null:S(Z,R,V,D,k)}var z=K.bind(null,false);return z.isRequired=K.bind(null,true),z}function d(S){function w(G,K,z,j,Z,R){var V=G[K],D=A(V);if(D!==S){var k=I(V);return new l("Invalid "+j+" `"+Z+"` of type "+("`"+k+"` supplied to `"+z+"`, expected ")+("`"+S+"`."),{expectedType:S})}return null}return c(w)}function u(){return c(Es)}function m(S){function w(G,K,z,j,Z){if(typeof S!="function")return new l("Property `"+Z+"` of component `"+z+"` has invalid PropType notation inside arrayOf.");var R=G[K];if(!Array.isArray(R)){var V=A(R);return new l("Invalid "+j+" `"+Z+"` of type "+("`"+V+"` supplied to `"+z+"`, expected an array."))}for(var D=0;D<R.length;D++){var k=S(R,D,z,j,Z+"["+D+"]",Wn);if(k instanceof Error)return k}return null}return c(w)}function p(){function S(w,G,K,z,j){var Z=w[G];if(!e(Z)){var R=A(Z);return new l("Invalid "+z+" `"+j+"` of type "+("`"+R+"` supplied to `"+K+"`, expected a single ReactElement."))}return null}return c(S)}function g(){function S(w,G,K,z,j){var Z=w[G];if(!S2.isValidElementType(Z)){var R=A(Z);return new l("Invalid "+z+" `"+j+"` of type "+("`"+R+"` supplied to `"+K+"`, expected a single ReactElement type."))}return null}return c(S)}function f(S){function w(G,K,z,j,Z){if(!(G[K]instanceof S)){var R=S.name||a,V=M(G[K]);return new l("Invalid "+j+" `"+Z+"` of type "+("`"+V+"` supplied to `"+z+"`, expected ")+("instance of `"+R+"`."))}return null}return c(w)}function b(S){if(!Array.isArray(S))return process.env.NODE_ENV!=="production"&&(arguments.length>1?Gn("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):Gn("Invalid argument supplied to oneOf, expected an array.")),Es;function w(G,K,z,j,Z){for(var R=G[K],V=0;V<S.length;V++)if(s(R,S[V]))return null;var D=JSON.stringify(S,function(Y,E){var h=I(E);return h==="symbol"?String(E):E});return new l("Invalid "+j+" `"+Z+"` of value `"+String(R)+"` "+("supplied to `"+z+"`, expected one of "+D+"."))}return c(w)}function x(S){function w(G,K,z,j,Z){if(typeof S!="function")return new l("Property `"+Z+"` of component `"+z+"` has invalid PropType notation inside objectOf.");var R=G[K],V=A(R);if(V!=="object")return new l("Invalid "+j+" `"+Z+"` of type "+("`"+V+"` supplied to `"+z+"`, expected an object."));for(var D in R)if(tu(R,D)){var k=S(R,D,z,j,Z+"."+D,Wn);if(k instanceof Error)return k}return null}return c(w)}function v(S){if(!Array.isArray(S))return process.env.NODE_ENV!=="production"&&Gn("Invalid argument supplied to oneOfType, expected an instance of array."),Es;for(var w=0;w<S.length;w++){var G=S[w];if(typeof G!="function")return Gn("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+L(G)+" at index "+w+"."),Es}function K(z,j,Z,R,V){for(var D=[],k=0;k<S.length;k++){var Y=S[k],E=Y(z,j,Z,R,V,Wn);if(E==null)return null;E.data&&tu(E.data,"expectedType")&&D.push(E.data.expectedType);}var h=D.length>0?", expected one of type ["+D.join(", ")+"]":"";return new l("Invalid "+R+" `"+V+"` supplied to "+("`"+Z+"`"+h+"."))}return c(K)}function y(){function S(w,G,K,z,j){return T(w[G])?null:new l("Invalid "+z+" `"+j+"` supplied to "+("`"+K+"`, expected a ReactNode."))}return c(S)}function C(S,w,G,K,z){return new l((S||"React class")+": "+w+" type `"+G+"."+K+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+z+"`.")}function N(S){function w(G,K,z,j,Z){var R=G[K],V=A(R);if(V!=="object")return new l("Invalid "+j+" `"+Z+"` of type `"+V+"` "+("supplied to `"+z+"`, expected `object`."));for(var D in S){var k=S[D];if(typeof k!="function")return C(z,j,Z,D,I(k));var Y=k(R,D,z,j,Z+"."+D,Wn);if(Y)return Y}return null}return c(w)}function P(S){function w(G,K,z,j,Z){var R=G[K],V=A(R);if(V!=="object")return new l("Invalid "+j+" `"+Z+"` of type `"+V+"` "+("supplied to `"+z+"`, expected `object`."));var D=w2({},G[K],S);for(var k in D){var Y=S[k];if(tu(S,k)&&typeof Y!="function")return C(z,j,Z,k,I(Y));if(!Y)return new l("Invalid "+j+" `"+Z+"` key `"+k+"` supplied to `"+z+"`.\nBad object: "+JSON.stringify(G[K],null," ")+`
2
+ Valid keys: `+JSON.stringify(Object.keys(S),null," "));var E=Y(R,k,z,j,Z+"."+k,Wn);if(E)return E}return null}return c(w)}function T(S){switch(typeof S){case "number":case "string":case "undefined":return true;case "boolean":return !S;case "object":if(Array.isArray(S))return S.every(T);if(S===null||e(S))return true;var w=n(S);if(w){var G=w.call(S),K;if(w!==S.entries){for(;!(K=G.next()).done;)if(!T(K.value))return false}else for(;!(K=G.next()).done;){var z=K.value;if(z&&!T(z[1]))return false}}else return false;return true;default:return false}}function B(S,w){return S==="symbol"?true:w?w["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&w instanceof Symbol:false}function A(S){var w=typeof S;return Array.isArray(S)?"array":S instanceof RegExp?"object":B(w,S)?"symbol":w}function I(S){if(typeof S>"u"||S===null)return ""+S;var w=A(S);if(w==="object"){if(S instanceof Date)return "date";if(S instanceof RegExp)return "regexp"}return w}function L(S){var w=I(S);switch(w){case "array":case "object":return "an "+w;case "boolean":case "date":case "regexp":return "a "+w;default:return w}}function M(S){return !S.constructor||!S.constructor.name?a:S.constructor.name}return i.checkPropTypes=Pg,i.resetWarningCache=Pg.resetWarningCache,i.PropTypes=i,i};});var Lg=cr((zF,Mg)=>{var N2=Rs();function Eg(){}function Ag(){}Ag.resetWarningCache=Eg;Mg.exports=function(){function e(o,n,a,i,s,l){if(l!==N2){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}e.isRequired=e;function t(){return e}var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:Ag,resetWarningCache:Eg};return r.PropTypes=r,r};});var Bg=cr((VF,ru)=>{process.env.NODE_ENV!=="production"?(Ig=$d(),Fg=true,ru.exports=Dg()(Ig.isElement,Fg)):ru.exports=Lg()();var Ig,Fg;});var zg=cr((OF,As)=>{(function(){var e={}.hasOwnProperty;function t(){for(var n="",a=0;a<arguments.length;a++){var i=arguments[a];i&&(n=o(n,r(i)));}return n}function r(n){if(typeof n=="string"||typeof n=="number")return n;if(typeof n!="object")return "";if(Array.isArray(n))return t.apply(null,n);if(n.toString!==Object.prototype.toString&&!n.toString.toString().includes("[native code]"))return n.toString();var a="";for(var i in n)e.call(n,i)&&n[i]&&(a=o(a,i));return a}function o(n,a){return a?n?n+" "+a:n+a:n}typeof As<"u"&&As.exports?(t.default=t,As.exports=t):typeof define=="function"&&typeof define.amd=="object"&&define.amd?define("classnames",[],function(){return t}):window.classNames=t;})();});function Tt(e,t=false){let[r,o]=Ee.useState(t);return Ee.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 Ao={sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"};function kt(e="base"){let t=Tt(`(min-width: ${Ao.sm})`,e!=="base"),r=Tt(`(min-width: ${Ao.md})`,["md","lg","xl","2xl"].includes(e)),o=Tt(`(min-width: ${Ao.lg})`,["lg","xl","2xl"].includes(e)),n=Tt(`(min-width: ${Ao.xl})`,["xl","2xl"].includes(e)),a=Tt(`(min-width: ${Ao["2xl"]})`,e==="2xl"),i=!r,s=r,l="base";return a?l="2xl":n?l="xl":o?l="lg":r?l="md":t&&(l="sm"),{current:l,isSm:t,isMd:r,isLg:o,isXl:n,is2Xl:a,isMobile:i,isDesktop:s}}function tc(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 rc(e,t,r={},o){let n=Array.isArray(t[0])?t:[t];try{switch(e){case "csv":await qy(n,r);break;case "svg":await Zy(o,r);break;case "png":await Xy(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 qy(e,t){try{let r=new Map;e.forEach(l=>{l.forEach(c=>{let d=c.xValue.getTime();r.has(d)||r.set(d,c.xValue);});});let n=Array.from(r.values()).sort((l,c)=>l.getTime()-c.getTime()).map(l=>{let c={[t.xLabel||"Date"]:l.toLocaleString("en-US",{year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"})};return e.forEach((d,u)=>{let m=t.seriesLabels?.[u]||`Series ${u+1}`,p=d.find(g=>g.xValue.getTime()===l.getTime());c[m]=p?p.yValue:"",p?.category&&(c[`${m} Category`]=p.category);}),c}),a=jy__default.default.unparse(n,{header:!0,skipEmptyLines:!0}),i=new Blob([a],{type:"text/csv;charset=utf-8;"}),s=tc(t.filename||"chart-data","csv",t.timestamp!==!1);fileSaver.saveAs(i,s);}catch(r){throw new Error(`CSV export failed: ${r instanceof Error?r.message:"Unknown error"}`)}}async function Zy(e,t){if(!e.current)throw new Error("SVG element not found");try{let o=e.current.cloneNode(!0);if(!o.querySelector("rect[data-background]")){let c=document.createElementNS("http://www.w3.org/2000/svg","rect");c.setAttribute("width",o.getAttribute("width")||"100%"),c.setAttribute("height",o.getAttribute("height")||"100%"),c.setAttribute("fill","white"),c.setAttribute("data-background","true"),o.insertBefore(c,o.firstChild);}let i=new XMLSerializer().serializeToString(o);i.includes("<?xml")||(i=`<?xml version="1.0" encoding="UTF-8"?>
3
+ `+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"}),l=tc(t.filename||"chart","svg",t.timestamp!==!1);fileSaver.saveAs(s,l);}catch(r){throw new Error(`SVG export failed: ${r instanceof Error?r.message:"Unknown error"}`)}}async function Xy(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);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 l=document.createElementNS("http://www.w3.org/2000/svg","rect");l.setAttribute("width",String(a.width)),l.setAttribute("height",String(a.height)),l.setAttribute("fill","white"),i.insertBefore(l,i.firstChild);let d=new XMLSerializer().serializeToString(i);d.includes("xmlns=")||(d=d.replace("<svg",'<svg xmlns="http://www.w3.org/2000/svg"'));let u=new Blob([d],{type:"image/svg+xml;charset=utf-8"});return o=URL.createObjectURL(u),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 b=document.createElement("canvas");b.width=a.width*r,b.height=a.height*r;let x=b.getContext("2d");if(!x)throw new Error("Canvas context not available");x.imageSmoothingEnabled=!0,x.imageSmoothingQuality="high",x.scale(r,r),x.fillStyle="white",x.fillRect(0,0,a.width,a.height),x.drawImage(g,0,0,a.width,a.height),b.toBlob(v=>{if(v){let y=tc(t.filename||"chart","png",t.timestamp!==!1);fileSaver.saveAs(v,y),m();}else p(new Error("Failed to create PNG blob"));o&&URL.revokeObjectURL(o);},"image/png",1);}catch(b){o&&URL.revokeObjectURL(o),p(b);}},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 Qy(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 $y(e){return {csv:"CSV Spreadsheet",svg:"SVG Vector Image",png:"PNG Image"}[e]||"Unknown Format"}function Cp({datasets:e,metadata:t,svgRef:r}){return Ee.useCallback(async o=>{try{await rc(o,e,t,r);}catch(n){throw console.error("Chart export failed:",n),n}},[e,t,r])}function ca(e,t){return t.split(".").reduce((r,o)=>r?.[o],e)}function tv(e,t){let r=ca(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)?o.includes(r):false;case "nin":return Array.isArray(o)?!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 Sp(e,t){if(t.conditions.length===0)return true;let r=t.conditions.map(o=>"conditions"in o?Sp(e,o):tv(e,o));return t.logic==="AND"?r.every(Boolean):r.some(Boolean)}function rv(e,t){return !t||t.conditions.length===0?e:e.filter(r=>Sp(r,t))}function ov(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 nv(e,t){return t?[...e].sort((r,o)=>{let n=ca(r,t.field),a=ca(o,t.field);return ov(n,a,t.direction)}):e}function av(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 ev__default.default(e,{keys:o,threshold:a,ignoreLocation:true,includeScore:true}).search(r).map(c=>c.item);let i=r.toLowerCase();return e.filter(s=>o.some(l=>{let c=ca(s,l);return c==null?false:String(c).toLowerCase().includes(i)}))}function iv(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=ca(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 wp({data:e,filters:t,sort:r,search:o,facetConfigs:n=[]}){let a=av(e,o||null);a=rv(a,t||null);let i=iv(a,n);return a=nv(a,r||null),{data:a,facetCounts:i,resultCount:a.length}}function Ci({data:e,filters:t,sort:r,search:o,facetConfigs:n=[]}){return Ee.useMemo(()=>wp({data:e,filters:t,sort:r,search:o,facetConfigs:n}),[e,t,r,o,n])}function to(e,t=300){let[r,o]=Ee.useState(e);return Ee.useEffect(()=>{let n=setTimeout(()=>o(e),t);return ()=>clearTimeout(n)},[e,t]),r}function Si({filters:e,sort:t,search:r,onStateChange:o,searchDebounce:n=300}){let a=to(r,n),i=Ee.useRef(true);Ee.useEffect(()=>{if(i.current){i.current=false;return}o({filters:e,sort:t,search:a});},[e,t,a,o]);}function Np(e){return e.mode==="client"?Ci({data:e.data,filters:e.filters,sort:e.sort,search:e.search,facetConfigs:e.facetConfigs}):(Si({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})}function wi(e,t=300){let[r,o]=Ee.useState(false);return Ee.useEffect(()=>{if(e){let n=setTimeout(()=>{o(true);},t);return ()=>clearTimeout(n)}o(false);},[e,t]),r}function kn(){let[e,t]=Ee.useState({width:0,height:0}),r=Ee.useRef(null),o=Ee.useRef(void 0),n=Ee.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(l=>{for(let c of s){let{width:d,height:u}=c.contentRect;t(m=>m.width!==d||m.height!==u?{width:d,height:u}:m);}});}),r.current.observe(a);},[]);return Ee.useEffect(()=>()=>{o.current&&cancelAnimationFrame(o.current),r.current&&r.current.disconnect();},[]),{ref:n,width:e.width,height:e.height}}function ro({items:e,onLoadMore:t,hasMore:r,isLoading:o=false,loadingState:n,enableVirtualization:a,estimatedItemSize:i=50,overscan:s=5,scrollElement:l,loadMoreThreshold:c=100}){let d=Ee.useRef(null),u=Ee.useRef(null),m=Ee.useRef(false),[p,g]=Ee.useState(0);Ee.useEffect(()=>{u.current&&(l||d.current)&&g(B=>B+1);},[l,e.length]);let f=n||(o?e.length===0?"loading":"loading-more":"idle"),b=f==="loading",x=f==="loading-more",v=a!==void 0?a:e.length>=100,y=reactVirtual.useVirtualizer({count:e.length,getScrollElement:()=>l||d.current,estimateSize:()=>i,overscan:s}),C=v?y:null,N=v?y.getVirtualItems():[];Ee.useEffect(()=>{let B=u.current,A=l||d.current;if(!B||!A||!r||o||!t)return;let I=new IntersectionObserver(L=>{let[M]=L;M?.isIntersecting&&!m.current&&r&&t&&(m.current=true,Promise.resolve(t()).finally(()=>{m.current=false;}));},{root:A,rootMargin:`0px 0px ${c}px 0px`,threshold:0});return I.observe(B),()=>{I.disconnect();}},[r,o,t,l,c,p]);let P=Ee.useCallback((B,A)=>{C?C.scrollToIndex(B,A):d.current&&d.current.children[B]?.scrollIntoView({behavior:"smooth",block:A?.align||"start"});},[C]),T=Ee.useCallback(()=>{C?C.scrollToIndex(0,{align:"start"}):d.current&&d.current.scrollTo({top:0,behavior:"smooth"});},[C]);return {virtualizer:C,virtualItems:N,computedLoadingState:f,isInitialLoad:b,isLoadingMore:x,scrollRef:d,loadMoreRef:u,scrollToIndex:P,scrollToTop:T}}function Ni(e,t){let[r,o]=Ee.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}});Ee.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=Ee.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=Ee.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]}function wv(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 Nv(e,t){return t.accessor?typeof t.accessor=="function"?t.accessor(e):e[t.accessor]:null}function Dp(e,t){let r=Nv(t,e);return e.exportValue?e.exportValue(r,t)??"":r==null?"":r instanceof Date?r.toISOString():typeof r=="object"?JSON.stringify(r):r}function nc(e){return e.filter(t=>t.exportable!==false)}function Ep(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 ac(e){let{columns:t,data:r,metadata:o={}}=e;try{let n=nc(t);if(n.length===0)throw new Error("No exportable columns found");Ep(n);let a=r.map(c=>{let d={};for(let u of n){let m=u.exportLabel||u.label;d[m]=Dp(u,c);}return d}),i=jy__default.default.unparse(a,{header:!0,skipEmptyLines:!0}),s=new Blob([i],{type:"text/csv;charset=utf-8;"}),l=wv(o.filename||"table-data","csv",o.timestamp!==!1);fileSaver.saveAs(s,l);}catch(n){throw new Error(`CSV export failed: ${n instanceof Error?n.message:"Unknown error"}`)}}function Tv(e){let{columns:t,data:r}=e,o=nc(t);return Ep(o),r.map(n=>{let a={};for(let i of o){let s=i.exportLabel||i.label;a[s]=Dp(i,n);}return a})}function kv(e){return nc(e).map(t=>t.exportLabel||t.label)}function Ap({columns:e,data:t,metadata:r}){let n=e.filter(i=>i.exportable!==false).length>0&&t.length>0;return {exportCSV:Ee.useCallback(async()=>{try{await ac({columns:e,data:t,metadata:r});}catch(i){throw console.error("Table export failed:",i),i}},[e,t,r]),canExport:n}}var ic=class{constructor(){la(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();}},ee=new ic;var oo=(e,t="Yes",r="No")=>e==null?null:e?t:r,Rv=e=>oo(e,"Enabled","Disabled"),Dv=e=>oo(e,"On","Off"),Ev=e=>oo(e,"Active","Inactive"),Av=e=>oo(e,"True","False"),Mv=e=>oo(e,"\u2713","\u2717"),no=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},Mp=(e,t)=>{if(t.hideWhenNull&&e==null)return null;if(e==null)return t.nullText??null;let r=no(e);return r===null?t.nullText??null:oo(r,t.trueText??"Yes",t.falseText??"No")};ee.register("boolean",(e,t,r)=>{let o=no(e);return o!==null?oo(o,typeof t=="string"?t:"Yes",typeof r=="string"?r:"No"):null});ee.register("yesNo",e=>{let t=no(e);return t!==null?oo(t,"Yes","No"):null});ee.register("enabledDisabled",e=>{let t=no(e);return t!==null?Rv(t):null});ee.register("onOff",e=>{let t=no(e);return t!==null?Dv(t):null});ee.register("activeInactive",e=>{let t=no(e);return t!==null?Ev(t):null});ee.register("trueFalse",e=>{let t=no(e);return t!==null?Av(t):null});ee.register("checkmark",e=>{let t=no(e);return t!==null?Mv(t):null});var ie=e=>e==null,Lp=(e,t=0)=>ie(e)?null:`${e.toFixed(t)}%`,Ip=(e,t=0)=>Lp(e,t)??"\u2014",Lv=e=>ie(e)?null:Math.round(e).toString(),Iv=(e,t=1)=>ie(e)?null:e.toFixed(t),Fv=(e,t,r=true)=>{if(ie(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)},Bv=(e,t="short")=>ie(e)?null:new Intl.NumberFormat("en-US",{notation:"compact",compactDisplay:t}).format(e),zv=(e,t=2)=>ie(e)?null:e.toExponential(t),Fp=(e,t="USD",r)=>{if(ie(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)},Bp=(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)},zp=(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:Fp(r,t.currency,t)};ee.register("percentage",(e,t)=>typeof e=="number"?Lp(e,typeof t=="number"?t:0):null);ee.register("integer",e=>typeof e=="number"?Lv(e):null);ee.register("float",(e,t)=>typeof e=="number"?Iv(e,typeof t=="number"?t:1):null);ee.register("number",(e,t,r)=>{let o=typeof e=="string"?parseFloat(e):Number(e);return isNaN(o)?null:Fv(o,typeof t=="number"?t:void 0,typeof r=="boolean"?r:true)});ee.register("compact",(e,t)=>typeof e=="number"?Bv(e,t==="long"?"long":"short"):null);ee.register("scientific",(e,t)=>typeof e=="number"?zv(e,typeof t=="number"?t:2):null);ee.register("currency",(e,t,r)=>typeof e=="number"?Fp(e,typeof t=="string"?t:"USD",typeof r=="object"&&r!==null?r:{}):null);function gR(e,t=1){return ie(e)?null:Math.abs(e)>=1e3?`${(e/1e3).toFixed(t)} MWh`:`${e.toFixed(t)} kWh`}function bR(e,t=1){return ie(e)?null:Math.abs(e)>=1e3?`${(e/1e3).toFixed(t)} MW`:`${e.toFixed(t)} kW`}function Cr({value:e,formatter:t,emptyClassName:r="text-text-muted",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=Mo(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=Mo(e,{type:"date"});return jsxRuntime.jsx("time",{dateTime:e.toISOString(),title:e.toISOString(),children:n})}if(typeof e=="number")return Mo(e,{type:"number"});if(typeof e=="boolean")return Mo(e,{type:"boolean"})}return String(e)}function vR(e,t,r){return Ee__namespace.default.useCallback(o=>Cr({value:o,formatter:e,emptyClassName:t,emptyText:r}),[e,t,r])}var sc=(e,t=0)=>{if(ie(e))return null;let r=e*1e3;return t===0?`${Math.round(r)} mA`:`${r.toFixed(t)} mA`},ki=(e,t=1)=>ie(e)?null:`${e.toFixed(t)} A`,lc=(e,t=2)=>ie(e)?null:`${(e/1e3).toFixed(t)} kA`,Ov=(e,t)=>{if(ie(e))return null;let r=Math.abs(e);return r>=1e3?lc(e,t??2):r<1?sc(e,t??0):ki(e,t??1)},cc=(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 lc(r,o??2);case "mA":return sc(r,o??0);case "A":return ki(r,o??1)}return t.autoScale!==false?Ov(r,o):ki(r,o??1)};ee.register("current",cc);var TR=sc,kR=ki,PR=lc;var Lo=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},Hv=(e,t=false,r)=>{if(!e)return null;let o=Lo(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)},Pi=e=>{if(!e)return null;let t=Lo(e);return t?t.toRelative():"Invalid Date"},Wv=(e,t)=>{if(!e)return null;let r=Lo(e);return r?(t?r.setZone(t):r).toLocaleString(luxon.DateTime.DATETIME_MED_WITH_WEEKDAY):"Invalid Date"},Gv=e=>{if(!e)return null;let t=Lo(e);return t?t.toISO():null},Uv=(e,t,r)=>{if(!e)return null;let o=Lo(e);return o?(r?o.setZone(r):o).toFormat(t):"Invalid Date"},AR=e=>{let t=Lo(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},Vp=(e,t)=>{if(t.hideWhenNull&&e==null)return null;if(e==null)return t.nullText??null;let r=Lo(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)};ee.register("date",(e,t,r)=>Hv(e,typeof t=="boolean"?t:false,typeof r=="string"?r:void 0));ee.register("relativeTime",e=>Pi(e));ee.register("fullDateTime",(e,t)=>Wv(e,typeof t=="string"?t:void 0));ee.register("isoString",e=>Gv(e));ee.register("customDateFormat",(e,t,r)=>typeof t=="string"?Uv(e,t,typeof r=="string"?r:void 0):null);var dc=(e,t=1)=>ie(e)?null:`${e.toFixed(t)} m`,Yv=(e,t=1)=>ie(e)?null:`${(e*100).toFixed(t)} cm`,Kv=(e,t=0)=>ie(e)?null:`${(e*1e3).toFixed(t)} mm`,uc=(e,t=1)=>ie(e)?null:`${(e/1e3).toFixed(t)} km`,pc=(e,t=0)=>ie(e)?null:`${e.toFixed(t)} ft`,Jv=(e,t=1)=>ie(e)?null:`${e.toFixed(t)} in`,mc=(e,t=1)=>ie(e)?null:`${e.toFixed(t)} mi`,fc=(e,t=0)=>ie(e)?null:`${e.toFixed(t)} yd`,FR=(e,t=1)=>ie(e)?null:`${e.toFixed(t)} nm`,BR=e=>e*3.28084,zR=e=>e/3.28084,VR=e=>e*1.60934,OR=e=>e/1.60934,HR=e=>e/5280,Op=e=>e*5280,WR=e=>e/1609.34,GR=e=>e*1609.34,UR=e=>e*.9144,YR=e=>e/.9144,KR=e=>e*2.54,JR=e=>e/2.54,Hp=(e,t=false,r=1)=>{if(ie(e))return null;let o=Math.abs(e);return t?o>=1e3?uc(e,r):o<.01?Kv(e,0):o<1?Yv(e,r):dc(e,r):o<.01?pc(Op(e),0):o<.1?fc(Op(e)/3,0):mc(e,r)},Wp=(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 Hp(r,n,o)}switch(t.unit){case "km":return uc(r,o);case "ft":return pc(r,o);case "mi":return mc(r,o);case "yd":return fc(r,o);default:return dc(r,o)}};ee.register("miles",(e,t)=>typeof e=="number"?mc(e,typeof t=="number"?t:1):null);ee.register("kilometers",(e,t)=>typeof e=="number"?uc(e,typeof t=="number"?t:1):null);ee.register("meters",(e,t)=>typeof e=="number"?dc(e,typeof t=="number"?t:1):null);ee.register("feet",(e,t)=>typeof e=="number"?pc(e,typeof t=="number"?t:0):null);ee.register("yards",(e,t)=>typeof e=="number"?fc(e,typeof t=="number"?t:0):null);ee.register("inches",(e,t)=>typeof e=="number"?Jv(e,typeof t=="number"?t:1):null);ee.register("autoScaleDistance",(e,t,r)=>typeof e=="number"?Hp(e,typeof t=="boolean"?t:false,typeof r=="number"?r:1):null);var gc=(e,t=1)=>ie(e)?null:`${e.toFixed(t)} Wh`,bc=(e,t=1)=>ie(e)?null:`${(e/1e3).toFixed(t)} kWh`,Gp=(e,t=1)=>ie(e)?null:`${(e/1e6).toFixed(t)} MWh`,Up=(e,t=1)=>ie(e)?null:`${(e/1e9).toFixed(t)} GWh`,Yp=(e,t=1)=>{if(ie(e))return null;let r=Math.abs(e);return r>=1e9?Up(e,t):r>=1e6?Gp(e,t):r>=1e3?bc(e,t):gc(e,t)},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.decimals??1;if(t.unit)switch(t.unit){case "GWh":return Up(r,o);case "MWh":return Gp(r,o);case "kWh":return bc(r,o);case "Wh":return gc(r,o)}return t.autoScale!==false?Yp(r,o):gc(r,o)};ee.register("kWh",e=>typeof e=="number"?bc(e):null);ee.register("autoScaleEnergy",(e,t)=>typeof e=="number"?Yp(e,typeof t=="number"?t:1):null);ee.register("energy",xc);var Ri=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},hc=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():Ri(e)},Pn=e=>e?e.startsWith("+")||e.length>11?hc(e):Ri(e):null,Kp=(e,t)=>{if(t.hideWhenNull&&e==null)return null;if(e==null)return t.nullText??null;let r=String(e);if(t.international)return hc(r);switch(t.country){case "US":case "CA":return Ri(r);default:return Pn(r)}};ee.register("phoneNumber",e=>typeof e=="string"?Pn(e):null);ee.register("usPhone",e=>typeof e=="string"?Ri(e):null);ee.register("internationalPhone",e=>typeof e=="string"?hc(e):null);var Di=(e,t=0)=>ie(e)?null:t===0?`${Math.round(e)} W`:`${e.toFixed(t)} W`,yc=(e,t=1)=>ie(e)?null:`${(e/1e3).toFixed(t)} kW`,vc=(e,t=1)=>ie(e)?null:`${(e/1e6).toFixed(t)} MW`,Cc=(e,t=2)=>ie(e)?null:`${(e/1e9).toFixed(t)} GW`,jv=(e,t)=>{if(ie(e))return null;let r=Math.abs(e);return r>=1e9?Cc(e,t??2):r>=1e6?vc(e,t??1):r>=1e3?yc(e,t??1):Di(e,t??0)},Sc=(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 Cc(r,o??2);case "MW":return vc(r,o??1);case "kW":return yc(r,o??1);case "W":return Di(r,o??0)}return t.autoScale!==false?jv(r,o):Di(r,o??0)};ee.register("power",Sc);var tD=Di,rD=yc,oD=vc,nD=Cc;var wc=(e,t=1)=>ie(e)?null:`${(e*1e3).toFixed(t)} m\u03A9`,Ei=(e,t=1)=>ie(e)?null:`${e.toFixed(t)} \u03A9`,Jp=(e,t=1)=>ie(e)?null:`${(e/1e3).toFixed(t)} k\u03A9`,jp=(e,t=2)=>ie(e)?null:`${(e/1e6).toFixed(t)} M\u03A9`,qv=(e,t)=>{if(ie(e))return null;let r=Math.abs(e);return r>=1e6?jp(e,t??2):r>=1e3?Jp(e,t??1):r<1?wc(e,t??1):Ei(e,t??1)},Nc=(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 jp(r,o??2);case "k\u03A9":return Jp(r,o??1);case "m\u03A9":return wc(r,o??1);case "\u03A9":return Ei(r,o??1)}return t.autoScale!==false?qv(r,o):Ei(r,o??1)};ee.register("resistance",Nc);ee.register("ohms",e=>typeof e=="number"?Ei(e):null);ee.register("milliohms",e=>typeof e=="number"?wc(e):null);var qp=e=>{switch(e){case "FAHRENHEIT":return "F";case "CELSIUS":return "C";case "KELVIN":return "K";default:return "F"}},Zp=(e,t=0)=>ie(e)?null:`${e.toFixed(t)}\xB0F`,Xp=(e,t=true,r=0)=>ie(e)?null:`${(t?(e-32)*(5/9):e).toFixed(r)}\xB0C`,Qp=(e,t=true,r=0)=>ie(e)?null:`${(t?(e-32)*(5/9)+273.15:e+273.15).toFixed(r)}K`,Zv=e=>e*9/5+32,Xv=e=>(e-32)*(5/9),uD=e=>e+273.15,Qv=e=>e-273.15,pD=e=>Xv(e)+273.15,mD=e=>Zv(Qv(e)),$p=(e,t="F",r=0)=>{if(ie(e))return null;switch(typeof t=="string"&&t.length>1?qp(t):t){case "C":return Xp(e,true,r);case "K":return Qp(e,true,r);default:return Zp(e,r)}},_p=(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?qp(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 $p(r,n,o)};ee.register("temperature",(e,t,r)=>typeof e=="number"?$p(e,typeof t=="string"?t:"F",typeof r=="number"?r:0):null);ee.register("fahrenheit",(e,t)=>typeof e=="number"?Zp(e,typeof t=="number"?t:0):null);ee.register("celsius",(e,t,r)=>typeof e=="number"?Xp(e,typeof t=="boolean"?t:true,typeof r=="number"?r:0):null);ee.register("kelvin",(e,t,r)=>typeof e=="number"?Qp(e,typeof t=="boolean"?t:true,typeof r=="number"?r:0):null);var $v=(e,t)=>!!(t.hideWhenNull&&e==null||t.hideWhenZero&&e===0),em=e=>e?.toUpperCase()??"",tm=e=>e?.toLowerCase()??"",rm=e=>e?e.charAt(0).toUpperCase()+e.slice(1).toLowerCase():"",om=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(" ")},nm=e=>e?e.split(/\s+/).map(t=>t.charAt(0).toUpperCase()+t.slice(1).toLowerCase()).join(" "):"",am=e=>e?e.charAt(0).toUpperCase()+e.slice(1):"",im=e=>e?e.replace(/([A-Z])/g," $1").replace(/^./,t=>t.toUpperCase()).trim():"",sm=e=>e?e.toLowerCase().split("_").map(t=>am(t)).join(" "):"",_v=e=>e?e.includes("_")?sm(e):e.toUpperCase()===e?am(e.toLowerCase()):im(e):"",Rn=(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)}`},Ai=(e,t=8)=>e?e.length<=t?e:`...${e.slice(-t)}`:"",Mi=(e,t=16,r="...")=>e?e.length<=t?e:e.slice(0,t)+r:"",e0=e=>{if(!e)return "";let t=e.toString(),r=t.slice(-4),o=t.length-4;return o>0?"*".repeat(o)+r:t},lm=(e,t)=>{if($v(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=tm(r);break;case "capitalize":r=nm(r);break;case "titleCase":r=om(r);break;case "sentenceCase":r=rm(r);break}}),t.truncate){let{length:o,position:n,ellipsis:a="..."}=t.truncate;switch(n){case "start":r=Ai(r,o);break;case "middle":r=Rn(r,o);break;case "end":r=Mi(r,o,a);break}}return r};ee.register("uppercase",e=>em(String(e)));ee.register("lowercase",e=>tm(String(e)));ee.register("sentenceCase",e=>rm(String(e)));ee.register("titleCase",e=>om(String(e)));ee.register("capitalize",e=>nm(String(e)));ee.register("camelCaseToWords",e=>im(String(e)));ee.register("snakeCaseToWords",e=>sm(String(e)));ee.register("enumToSentenceCase",e=>_v(String(e)));ee.register("truncateMiddle",(e,t)=>Rn(String(e),typeof t=="number"?t:16));ee.register("truncateStart",(e,t)=>Ai(String(e),typeof t=="number"?t:8));ee.register("truncateEnd",(e,t,r)=>Mi(String(e),typeof t=="number"?t:16,typeof r=="string"?r:"..."));ee.register("secret",e=>e0(String(e)));var Tc=(e,t=0)=>{if(ie(e))return null;let r=e*1e3;return t===0?`${Math.round(r)} mV`:`${r.toFixed(t)} mV`},Li=(e,t=0)=>ie(e)?null:t===0?`${Math.round(e)} V`:`${e.toFixed(t)} V`,kc=(e,t=1)=>ie(e)?null:`${(e/1e3).toFixed(t)} kV`,t0=(e,t)=>{if(ie(e))return null;let r=Math.abs(e);return r>=1e3?kc(e,t??1):r<1?Tc(e,t??0):Li(e,t??0)},Pc=(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 kc(r,o??1);case "mV":return Tc(r,o??0);case "V":return Li(r,o??0)}return t.autoScale!==false?t0(r,o):Li(r,o??0)};ee.register("voltage",Pc);var yD=Tc,vD=Li,CD=kc;var r0=(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:Ip(r,t.decimals??0)},Mo=(e,t)=>{switch(t.type){case "text":return lm(e,t);case "number":return Bp(e,t);case "percentage":return r0(e,t);case "currency":return zp(e,t);case "date":return Vp(e,t);case "boolean":return Mp(e,t);case "energy":return xc(e,t);case "power":return Sc(e,t);case "voltage":return Pc(e,t);case "current":return cc(e,t);case "resistance":return Nc(e,t);case "temperature":return _p(e,t);case "distance":return Wp(e,t);case "phone":return Kp(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}},FD=(e,t)=>({type:e,...t});var Dn={xs:16,sm:20,md:24,lg:32,xl:40,"2xl":48},F=Ee.memo(({name:e,size:t="md",color:r,weight:o="regular",className:n,ariaLabel:a,...i})=>{let s=o0__namespace[e];if(!s)return process.env.NODE_ENV==="development"&&console.error(`Icon "${e}" not found in @phosphor-icons/react`),null;let l=typeof t=="string"&&t in Dn?Dn[t]:t,c=tailwindMerge.twMerge("inline-block flex-shrink-0",!r&&"text-current",n);return jsxRuntime.jsx(s,{...i,size:l,color:r,weight:o,className:c,"aria-label":a||`${e} icon`,"data-testid":`icon-${e}`})});F.displayName="Icon";var um=Ee.memo(({variant:e="subtle",shape:t="square",containerSize:r,containerClassName:o,size:n="md",className:a,name:i,color:s,weight:l,ariaLabel:c,ref:d,...u})=>{let m=typeof n=="string"&&n in Dn?Dn[n]:n,p=r?typeof r=="string"&&r in Dn?Dn[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-gray-100 dark:bg-gray-800",e==="solid"&&"bg-brand text-white",e==="outline"&&"border-2 border-current",o);return jsxRuntime.jsx("div",{className:g,style:{width:p,height:p},children:jsxRuntime.jsx(F,{...u,name:i,size:n,color:s,weight:l,className:a,ariaLabel:c})})});um.displayName="IconWithContainer";function Wt({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-black/20 via-black/15 to-black/20","backdrop-blur-[2px]","supports-[backdrop-filter]:bg-black/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 f0({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 Ze({children:e,showArrow:t=false,withBackdrop:r=false,className:o,isDismissable:n=true,disableGroup:a=false,...i}){let l=reactAriaComponents.useSlottedContext(reactAriaComponents.PopoverContext)?.trigger==="SubmenuTrigger",c=t?12:8;c=l?c-6:c;let d=jsxRuntime.jsxs(reactAriaComponents.Popover,{offset:c,...i,className:reactAriaComponents.composeRenderProps(o,(u,m)=>f0({...m,className:u,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(Wt,{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:d})}):d}var b0={"--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"]};function mm({variables:e,children:t}){if(!e||Object.keys(e).length===0)return jsxRuntime.jsx(jsxRuntime.Fragment,{children:t});let r={...e};for(let[o,n]of Object.entries(b0))if(e[o])for(let a of n)e[a]||(r[a]=e[o]);return jsxRuntime.jsx("div",{style:r,children:t})}var ua=new Map,pt=(e,t="#000000")=>{if(typeof window>"u")return t;let r=e.startsWith("var(")?e.slice(4,-1):e.startsWith("--")?e:`--${e}`;if(!e.startsWith("--")&&!e.startsWith("var(")&&!r.startsWith("--color-")&&(r=`--color-${r.slice(2)}`),ua.has(r))return ua.get(r);try{let o=document.body||document.documentElement,a=getComputedStyle(o).getPropertyValue(r).trim();if(a)return ua.set(r,a),a;let i=document.createElement("div");i.style.color=`var(${r})`,document.body.appendChild(i);let s=getComputedStyle(i).color;return document.body.removeChild(i),s&&s!=="rgb(0, 0, 0)"?(ua.set(r,s),s):t}catch(o){return console.warn(`Failed to resolve color for ${e}:`,o),t}},Ii=()=>{ua.clear();},pa=()=>{let e=[];for(let t=1;t<=6;t++){let r=pt(`--color-viz-categorical-${t}`);r&&e.push(r);}return e.length===0?fm():e},fm=()=>["#444ae1","#10b981","#f59e0b","#ef4444","#8b5cf6","#06b6d4","#ec4899","#f97316","#14b8a6","#6366f1"],Dc=()=>pt("--color-viz-default","#444ae1"),h0=(e,t)=>{let r={},o=pa();return e.forEach((n,a)=>{t&&t[n]?r[n]=t[n]:r[n]=o[a%o.length];}),r};var gm=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},y0=e=>gm(e)?pt("--text-body","#333333"):pt("--neutral-white","#ffffff"),bm=(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()},xm=e=>{let t=pa(),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)},Ac=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]},hm=(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},Mc=(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},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=pt(i);n.push(s);}return n},ma=(e,t,r,o="viridis")=>{let n=Mc(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]},fa=(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 l=(e-t)/(o-t)*i,c=Math.floor(l);return a[Math.min(c,i)]}else {let s=(e-o)/(r-o),l=i+s*(a.length-1-i),c=Math.floor(l);return a[Math.min(c,a.length-1)]}};var Ic=Ee.createContext({mode:"system",colorMode:"light",isDarkTheme:false,toggleTheme:()=>{}}),Rt=()=>Ee.useContext(Ic);function N0(){return typeof window>"u"?"light":window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function Cm(){if(typeof window>"u")return "system";let e=localStorage.getItem("colorModePreference");return e==="light"||e==="dark"||e==="system"?e:"system"}function Sm(e){return e==="system"?N0():e}var Nm=({children:e})=>{let[t,r]=Ee.useState(Cm),[o,n]=Ee.useState(()=>Sm(Cm())),a=o==="dark",i=Ee.useCallback(l=>{l==="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")),Ii();},[]);Ee.useEffect(()=>{Ii();let l=Sm(t);if(n(l),i(l),t==="system"){let c=window.matchMedia("(prefers-color-scheme: dark)"),d=u=>{let m=u.matches?"dark":"light";n(m),i(m);};return c.addEventListener("change",d),()=>{c.removeEventListener("change",d);}}},[t,i]);let s=Ee.useCallback(()=>{r(l=>{let c=l==="system"?"light":l==="light"?"dark":"system";return localStorage.setItem("colorModePreference",c),c});},[]);return jsxRuntime.jsx(Ic.Provider,{value:{mode:t,colorMode:o,isDarkTheme:a,toggleTheme:s},children:e})};function En(e){return e instanceof Date&&!Number.isNaN(e.getTime())}function ao(e,t){return En(e)?t.format(e):""}function Tm(e){if(!En(e.start)||!En(e.end))return ()=>"";let t=(e.end.getTime()-e.start.getTime())/(1e3*60*60);if(t<=72){let i=new Intl.DateTimeFormat("en",{month:"short",day:"numeric",hour:"numeric",minute:"2-digit"});return s=>ao(s,i)}if(t<=720){let i=new Intl.DateTimeFormat("en",{month:"short",day:"numeric"});return s=>ao(s,i)}let r=e.start.getFullYear(),o=e.end.getFullYear(),n=r!==o,a=new Intl.DateTimeFormat("en",{month:"short",day:"numeric",...n&&{year:"numeric"}});return i=>ao(i,a)}function Fc(e,t){if(!En(e.start)||!En(e.end))return ()=>"";let r=(e.end.getTime()-e.start.getTime())/(1e3*60*60),o=t?.compact??false,n=c=>d=>En(d)?c(d):"";if(r<=24){if(o)return n(d=>{let u=d.getHours(),m=u>=12?"pm":"am";return `${u%12||12}${m}`});let c=new Intl.DateTimeFormat("en",{hour:"numeric",minute:"2-digit"});return d=>ao(d,c)}if(r<=48){if(o)return n(d=>{let u=d.getMonth()+1,m=d.getDate(),p=d.getHours(),g=p>=12?"p":"a",f=p%12||12;return `${u}/${m} ${f}${g}`});let c=new Intl.DateTimeFormat("en",{month:"short",day:"numeric",hour:"numeric"});return d=>ao(d,c)}if(r<=168){if(o)return n(d=>{let u=d.getDate();return `${d.toLocaleDateString("en",{weekday:"short"}).charAt(0)}${u}`});let c=new Intl.DateTimeFormat("en",{weekday:"short",day:"numeric"});return d=>ao(d,c)}if(r<=720){if(o)return n(d=>{let u=d.getMonth()+1,m=d.getDate();return `${u}/${m}`});let c=new Intl.DateTimeFormat("en",{month:"short",day:"numeric"});return d=>ao(d,c)}let a=e.start.getFullYear(),i=e.end.getFullYear(),s=a!==i;if(o)return n(c=>{let d=c.getMonth()+1,u=c.getDate(),m=s?`/${c.getFullYear().toString().slice(-2)}`:"";return `${d}/${u}${m}`});let l=new Intl.DateTimeFormat("en",{month:"short",day:"numeric",...s&&{year:"numeric"}});return c=>ao(c,l)}function ze(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 he(e,t){return reactAriaComponents.composeRenderProps(e,r=>tailwindMerge.twMerge(t,r))}var Ae={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 D0="flex font-medium justify-center items-center gap-2 text-center transition rounded-[var(--control-border-radius)] whitespace-nowrap box-border",E0={default:"bg-action-default text-[color:var(--color-action-default-text)] hover:bg-action-default-hover forced-colors:bg-[ButtonText] forced-colors:text-[ButtonFace] border-2 border-transparent",brand:"bg-action-brand text-[color:var(--color-action-brand-text)] hover:bg-action-brand-hover forced-colors:bg-[ButtonText] forced-colors:text-[ButtonFace] border-2 border-transparent",secondary:"bg-transparent text-text-body border-2 border-border-muted hover:bg-text-body/5 forced-colors:border-[ButtonBorder] forced-colors:bg-[ButtonFace] forced-colors:text-[ButtonText]",ghost:"border-none text-text-body hover:bg-text-body/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-brand hover:text-action-brand/90 hover:underline hover:decoration-2 hover:underline-offset-4",icon:"border-none text-text-body hover:bg-background-hover hover:text-text-heading forced-colors:text-[ButtonText] forced-colors:hover:bg-[ButtonFace] p-1 flex-shrink-0 rounded-[var(--control-border-radius)]",unstyled:"bg-transparent"},Pm={full:"w-full",default:"w-fit"},A0="opacity-50 cursor-not-allowed pointer-events-none",M0="opacity-100 cursor-pointer",L0={"top-right":"-right-2 -top-2","top-left":"-left-2 -top-2","bottom-right":"-right-2 -bottom-2","bottom-left":"-left-2 -bottom-2"},I0={primary:"bg-action-brand text-white",destructive:"bg-action-destructive text-white"};function F0(e){return e?e==="primary"?"brand":e:"default"}function B0(e){let{variant:t="default",size:r="md",isDisabled:o,fullWidth:n=false,isLoading:a=false}=e,i=F0(t),s=i==="unstyled"?"":`${D0} ${E0[i]}`;i!=="unstyled"&&(s+=` ${Ae[r].text} ${Ae[r].height} ${Ae[r].padding} ${Ae[r].gap}`),o||a?s+=` ${A0}`:s+=` ${M0}`,n?s+=` ${Pm.full}`:s+=` ${Pm.default}`;let l=i==="brand"?"focus-visible:outline-action-brand":void 0;return [s,ze(),l].filter(Boolean).join(" ")}function _(e){let{icon:t,children:r,isLoading:o=false,loadingText:n,loadingIndicator:a,size:i="md",iconPosition:s="left",iconWeight:l,href:c,className:d,badgeNumber:u,badgeVariant:m="primary",badgePosition:p="top-right",style:g,target:f,rel:b,...x}=e,v=t?jsxRuntime.jsx(F,{name:t,size:i,weight:l}):null,y=jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[s==="left"&&v,typeof r=="function"?null:r,s==="right"&&v]}),C=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(F,{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})]}),N=(u??0)>0,P=tailwindMerge.twMerge(B0(e),d),T=c?{href:c,target:f,rel:b,...x}:{};if(c){let{onPress:A,onPressStart:I,onPressEnd:L,onPressChange:M,onPressUp:S,onAuxClick:w,onContextMenu:G,onDoubleClick:K,...z}=x;Object.assign(T,z);}let B=c?jsxRuntime.jsx(reactAriaComponents.Link,{...T,...o&&{"aria-busy":true},style:N?void 0:g,className:P,children:o?C:typeof r=="function"?(function(A){return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[s==="left"&&v,r(A),s==="right"&&v]})}):y}):jsxRuntime.jsx(reactAriaComponents.Button,{...x,...o&&{"aria-busy":true},style:N?void 0:g,className:P,children:o?C:typeof r=="function"?(function(A){return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[s==="left"&&v,r(A),s==="right"&&v]})}):y});return N?jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("relative flex",d),style:g,children:[B,jsxRuntime.jsx("span",{className:`absolute ${L0[p]} flex h-5 w-5 items-center justify-center rounded-full ${I0[m]} text-xs font-medium`,"aria-label":`${u} items`,children:u})]}):B}function zc({action:e,defaultVariant:t,defaultSize:r="lg"}){let o=!!e.formId;return jsxRuntime.jsx(_,{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 so({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(zc,{action:r,defaultVariant:"destructive"})}),jsxRuntime.jsxs("div",{className:"flex items-center gap-3",children:[t&&jsxRuntime.jsx(zc,{action:t,defaultVariant:"secondary"}),e&&jsxRuntime.jsx(zc,{action:e,defaultVariant:"default"})]})]})]})}var V0={xs:"text-base md:text-lg font-semibold",sm:"text-lg md:text-xl font-semibold",md:"text-xl md:text-2xl font-semibold",lg:"text-2xl md:text-3xl font-semibold",xl:"text-3xl md:text-4xl font-semibold"},O0={page:"h-16 leading-[62px]"};function Dt({tag:e="h1",size:t="lg",height:r,className:o="",children:n}){let a=V0[t],i=r?O0[r]:"";return jsxRuntime.jsx(e,{className:tailwindMerge.twMerge(a,i,o),children:n})}var vt=({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(_,{variant:"icon",onPress:a,className:"absolute left-6","aria-label":"Go back",children:jsxRuntime.jsx(F,{name:"CaretLeft","data-testid":"back-arrow"})}),i||jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[e&&jsxRuntime.jsx(Dt,{size:"xs",children:e}),t&&!r&&jsxRuntime.jsx(_,{variant:"icon",onPress:t,"aria-label":"Close dialog",children:jsxRuntime.jsx(F,{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:l=0,adjustAnimationSpeedBasedOnWidth:c=false,ariaLabel:d,className:u,"data-testid":m})=>{let[p,g]=Ee.useState(l===0);if(Ee.useEffect(()=>{if(l>0){let N=setTimeout(()=>g(true),l);return ()=>clearTimeout(N)}},[l]),!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)]",b=c&&e?(()=>{let N=typeof e=="number"?e:parseFloat(String(e));return isNaN(N)?"":`animation-duration-[${Math.max(.8,N/100)}s]`})():"",x=o==="pulse"?`animate-pulse ${b}`: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 ${b}`:"",v="rounded-sm";r==="circle"&&(v="rounded-full"),r==="text"&&(v="h-4 w-full rounded-sm");let y=a?"flex-1 min-w-0":"",C=s?Object.entries(s).map(([N,P])=>`${N}:w-[${P}]`).join(" "):"";return i?jsxRuntime.jsx("div",{className:"space-y-2","data-testid":m,children:i.map((N,P)=>jsxRuntime.jsx("div",{className:tailwindMerge.twMerge(f,x,v,y,C,u),style:{width:N,height:t}},P))}):jsxRuntime.jsx("div",{className:tailwindMerge.twMerge(f,x,v,y,C,u),style:{width:e,height:t},role:"presentation","aria-hidden":!d,"aria-label":d??void 0,"data-testid":m})},Em=({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 K0={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"},J0="rounded-lg",Oc={square:"aspect-square",video:"aspect-video",wide:"aspect-[2/1]",auto:""},j0={start:"justify-start",end:"justify-end",center:"justify-center",between:"justify-between"};function Me({variant:e="outlined",className:t,children:r,isLoading:o=false,layout:n="default"}){return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("w-full overflow-hidden",K0[e],J0,n==="flex"&&"flex flex-col",t),"data-testid":"card",children:o?jsxRuntime.jsx(J,{width:"100%",height:"100%",className:"rounded-none"}):r})}function Hc({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(Dt,{tag:"h3",size:"sm",className:"text-text-heading",children:e}):e}),t&&jsxRuntime.jsx("div",{className:"text-sm text-text-muted",children:t})]}),r&&jsxRuntime.jsx("div",{className:"flex-shrink-0",children:r})]})})}function Wc({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",Oc[r],o),children:jsxRuntime.jsx(J,{width:"100%",height:"100%"})}):n?jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("overflow-hidden",Oc[r],o),children:n}):e?jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("overflow-hidden",Oc[r],o),children:jsxRuntime.jsx("img",{src:e,alt:t||"",className:"w-full h-full object-cover",loading:"lazy"})}):null}function Gc({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-body",o&&"flex-1 flex flex-col min-h-0",e),children:t}):null}function Uc({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",j0[r],e),children:t}):null}Me.Header=Hc;Me.Media=Wc;Me.Content=Gc;Me.Footer=Uc;var dr=class extends Ee.Component{constructor(){super(...arguments);la(this,"state",{hasError:false});la(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(Me,{children:[this.props.title&&jsxRuntime.jsx(Me.Header,{title:this.props.title}),jsxRuntime.jsx(Me.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-red-500",children:this.state.error?.message||"Something went wrong"}),jsxRuntime.jsx("button",{className:"rounded bg-blue-500 px-4 py-2 text-white hover:bg-blue-600",onClick:this.handleRetry,children:"Retry"})]})})]}):this.props.children}};var Q0=.3,$0=.5;function Xe({children:e,title:t,headerContent:r,titleAlign:o="left",hideCloseIcon:n=false,hasBackArrow:a=false,onBack:i,isOpen:s,onClose:l,isDismissable:c=true,transparentOverlay:d=false,primaryAction:u,secondaryAction:m,footerContent:p,maxHeight:g="80vh",height:f,maxWidth:b="640px",contentPadding:x=true,showHandle:v=true,animationVariant:y="scale",className:C}){let[N,P]=Ee.useState(false),[T,B]=Ee.useState(0),[A,I]=Ee.useState(false),L=Ee.useRef(null),M=Ee.useRef(null),S=Ee.useRef({isDragging:false,startY:0,startTime:0,pointerId:null});Ee.useEffect(()=>{if(s){let Z=setTimeout(()=>{P(true),setTimeout(()=>P(false),600);},400);return ()=>clearTimeout(Z)}},[s]),Ee.useEffect(()=>{s||(B(0),I(false),S.current={isDragging:false,startY:0,startTime:0,pointerId:null});},[s]);let w=Ee.useCallback(Z=>{c&&(Z.pointerType!=="touch"&&Z.pointerType!=="pen"||(M.current&&(clearTimeout(M.current),M.current=null),S.current={isDragging:true,startY:Z.clientY,startTime:Date.now(),pointerId:Z.pointerId},I(false),Z.currentTarget.setPointerCapture(Z.pointerId)));},[c]),G=Ee.useCallback(Z=>{let{isDragging:R,startY:V,pointerId:D}=S.current;if(!R||Z.pointerId!==D)return;let k=Z.clientY-V;B(Math.max(0,k));},[]),K=Ee.useCallback(Z=>{let{isDragging:R,startY:V,startTime:D,pointerId:k}=S.current;if(!R||Z.pointerId!==k)return;let Y=Z.clientY-V,E=Date.now()-D,h=Y/E;S.current={isDragging:false,startY:0,startTime:0,pointerId:null};let H=(L.current?.getBoundingClientRect().height??0)*Q0;(Y>H||h>$0&&Y>50)&&c?(l?.(),B(0)):(I(true),B(0),M.current=setTimeout(()=>{I(false),M.current=null;},200));},[c,l]);if(!s)return null;let z=t||r,j=u||m||p;return jsxRuntime.jsx(dr,{children:jsxRuntime.jsx(Wt,{isOpen:s,onOpenChange:Z=>{Z||l?.();},isDismissable:c,transparent:d,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:c,children:jsxRuntime.jsx("div",{ref:L,className:tailwindMerge.twMerge("w-full",A&&"transition-transform duration-200"),style:{transform:T>0?`translateY(${T}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)]",C),style:{maxWidth:b,...f?{height:f}:{maxHeight:g}},children:[v&&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:G,onPointerUp:K,onPointerCancel:K,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",N&&"animate-[handle-wiggle_0.6s_ease-in-out]")})}),z&&(a?jsxRuntime.jsx(vt,{title:t,headerContent:r,titleAlign:o,hideCloseIcon:n||!l,hasBackArrow:true,onBack:i??(()=>{}),onClose:l||(()=>{})}):jsxRuntime.jsx(vt,{title:t,headerContent:r,titleAlign:o,hideCloseIcon:n||!l,onClose:l||(()=>{})})),jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("flex-1 min-h-0 overflow-y-auto overscroll-contain",x?"p-4":"p-0"),children:e}),j&&jsxRuntime.jsx(so,{primaryAction:u,secondaryAction:m,footerContent:p})]})})})})})}Xe.displayName="Tray";function Ln({children:e,items:t,className:r,align:o="left",textAlign:n="left",size:a="md",onAction:i,header:s,footer:l,useMobileTray:c=true,popoverClassName:d}){let[u,m]=Ee.useState(false),{isMobile:p}=kt();if(c&&p){let f=Ee__namespace.default.isValidElement(e)?Ee__namespace.default.cloneElement(e,{onPress:()=>m(true)}):e,v=(y=>{if(typeof y=="string")return y;if(Ee__namespace.default.isValidElement(y)){let C=y.props;if(typeof C.children=="string")return C.children;if(Array.isArray(C.children))return C.children.find(P=>typeof P=="string")||""}return ""})(e)||"Actions";return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("div",{className:r,children:f}),jsxRuntime.jsx(Xe,{isOpen:u,onClose:()=>m(false),title:v,contentPadding:false,headerContent:s,footerContent:l,children:jsxRuntime.jsx("div",{className:"flex flex-col",children:t.map(y=>jsxRuntime.jsxs("button",{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-body hover:bg-background-hover active:bg-background-hover/80",y.disabled&&"opacity-50 cursor-not-allowed"),children:[y.iconName&&jsxRuntime.jsx(F,{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-muted",children:y.subtitle})]})})]},y.id))})})]})}return jsxRuntime.jsx("div",{className:r,children:jsxRuntime.jsxs(reactAriaComponents.MenuTrigger,{children:[e,jsxRuntime.jsx(Ze,{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",d),placement:o==="right"?"bottom end":"bottom start",children:jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("flex min-w-[180px] flex-col gap-1",d),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(oC,{id:f.id,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))}),l?jsxRuntime.jsx("div",{className:"px-3 pb-3 pt-2",children:l}):null]})})]})})}function oC({textAlign:e="left",iconName:t,size:r="md",isDisabled:o,children:n,variant:a="default",subtitle:i,render:s,noPadding:l,...c}){let d={sm:"px-3 py-2 text-sm",md:i?"px-4 py-2.5 text-base":"px-4 py-2 text-base"},u={default:"text-text-body hover:bg-background-hover data-[focused]:bg-background-hover data-[focus-visible]:ring-2 data-[focus-visible]:ring-action-default data-[focus-visible]:ring-inset",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,{...c,isDisabled:o,className:tailwindMerge.twMerge("group box-border flex w-full cursor-pointer items-center rounded-sm outline-none transition-colors",!l&&d[r],u[a],e==="right"?"justify-end":"justify-start",o&&"pointer-events-none opacity-50"),children:s()}):jsxRuntime.jsxs(reactAriaComponents.MenuItem,{...c,isDisabled:o,className:tailwindMerge.twMerge("group box-border flex w-full cursor-pointer items-center rounded-sm outline-none transition-colors",!l&&d[r],u[a],e==="right"?"justify-end":"justify-start",o&&"pointer-events-none opacity-50"),children:[t&&e==="left"&&jsxRuntime.jsx(F,{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-muted",children:i})]}),t&&e==="right"&&jsxRuntime.jsx(F,{name:t,size:r==="sm"?16:20,className:"ml-3 flex-shrink-0"})]})}var Hr=({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 $t({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-muted",r),"aria-label":t||"Loading",children:[jsxRuntime.jsx(Hr,{size:20,color:"text-text-muted"}),t&&jsxRuntime.jsx("span",{className:"text-sm","aria-hidden":"true",children:t})]});return o||n}var In=Ee.createContext({variant:"timeline",size:"md"});function Om(){return Ee.useContext(In)}function zi(e){return Ee.isValidElement(e)&&e.type===Hi}function uC(e){return Ee.isValidElement(e)&&e.type===Oi}function Zc({variant:e="timeline",size:t="md",className:r,children:o,items:n,renderItem:a,isLoading:i=false,loadingState:s,error:l=null,renderLoadingSkeleton:c,loadingSkeletonCount:d=5,emptyMessage:u="No activity found.",onLoadMore:m,hasMore:p=false,enableVirtualization:g,estimatedItemSize:f,loadingIndicator:b,height:x,maxHeight:v,...y}){let C=Ee.useRef(null),{isMobile:N}=kt(),P=N?"stacked":e,T=n!==void 0&&a!==void 0,{scrollRef:B,loadMoreRef:A,virtualizer:I,virtualItems:L,isLoadingMore:M,computedLoadingState:S}=ro({items:n||[],onLoadMore:T?m:void 0,hasMore:T?p:false,isLoading:i,loadingState:s,enableVirtualization:T?g:false,estimatedItemSize:f||(P==="stacked"?120:150),overscan:5}),w=T&&B?B:C,G=Ee.useMemo(()=>({variant:P,size:t}),[P,t]),K=P==="timeline"?t==="sm"?"gap-4":"gap-6":"gap-0",z=P==="stacked"?"divide-y divide-border-subtle rounded-lg border border-border-subtle bg-background-surface":"",j={};if(T&&m&&(x?(j.height=typeof x=="number"?`${x}px`:x,j.overflowY="auto"):v?(j.maxHeight=typeof v=="number"?`${v}px`:v,j.overflowY="auto"):(j.height="600px",j.overflowY="auto")),T){let V=S==="loading"||i&&(!n||n.length===0);if(V){let k=c?jsxRuntime.jsx(jsxRuntime.Fragment,{children:Array.from({length:d}).map((Y,E)=>jsxRuntime.jsx("div",{children:c()},`skeleton-${E}`))}):jsxRuntime.jsx(jsxRuntime.Fragment,{children:Array.from({length:d}).map((Y,E)=>{let h=t==="sm"?"gap-2":"gap-3";if(P==="timeline"){let U=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 ${U}`,children:[jsxRuntime.jsx(J,{width:32,height:32,variant:"circle"}),E<d-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 ${h} ${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-${E}`)}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 ${h}`,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-${E}`)})});return jsxRuntime.jsx(In.Provider,{value:G,children:jsxRuntime.jsx("div",{ref:w,"data-slot":"feed","data-variant":P,className:tailwindMerge.twMerge("flex flex-col",K,z,r),style:j,...y,children:k})})}if(l)return jsxRuntime.jsx(In.Provider,{value:G,children:jsxRuntime.jsx("div",{ref:w,"data-slot":"feed","data-variant":P,className:tailwindMerge.twMerge("flex flex-col",K,z,r),style:j,...y,children:jsxRuntime.jsx("div",{className:"p-4 text-center text-action-destructive",children:l})})});if(!n||n.length===0)return jsxRuntime.jsx(In.Provider,{value:G,children:jsxRuntime.jsx("div",{ref:w,"data-slot":"feed","data-variant":P,className:tailwindMerge.twMerge("flex flex-col",K,z,r),style:j,...y,children:jsxRuntime.jsx("div",{className:"p-4 text-center text-text-muted",children:u})})});let D=I?L?.map(k=>({virtualItem:k,item:n[k.index],index:k.index}))||[]:n.map((k,Y)=>({item:k,index:Y,virtualItem:null}));return jsxRuntime.jsx(In.Provider,{value:G,children:jsxRuntime.jsxs("div",{ref:w,"data-slot":"feed","data-variant":P,className:tailwindMerge.twMerge("flex flex-col",K,z,r),style:{...j,position:I?"relative":void 0},...y,children:[I?jsxRuntime.jsxs("div",{style:{height:`${I.getTotalSize()}px`,position:"relative"},children:[D.map(({item:k,index:Y,virtualItem:E})=>{if(!k||!E)return null;let h=a(k,Y),U=P==="timeline"&&Ee.isValidElement(h)&&zi(h)?Ee.cloneElement(h,{showConnector:Y!==n.length-1}):h;return jsxRuntime.jsx("div",{style:{position:"absolute",top:0,left:0,width:"100%",transform:`translateY(${E.start}px)`},"data-index":E.index,ref:I.measureElement,children:U},`item-${Y}`)}),M&&jsxRuntime.jsx("div",{style:{position:"absolute",top:`${I.getTotalSize()}px`,left:0,width:"100%"},children:b||jsxRuntime.jsx($t,{state:"loading-more"})})]}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[D.map(({item:k,index:Y})=>{let E=a(k,Y);if(P==="timeline"&&Ee.isValidElement(E)&&zi(E)){let h=Y===n.length-1;return jsxRuntime.jsx("div",{children:Ee.cloneElement(E,{showConnector:!h})},`item-${Y}`)}return jsxRuntime.jsx("div",{children:E},`item-${Y}`)}),M&&(b||jsxRuntime.jsx($t,{state:"loading-more"}))]}),m&&p&&!V&&jsxRuntime.jsx("div",{ref:A,style:I?{position:"absolute",top:`${I.getTotalSize()}px`,left:0,width:"100%",height:1}:{height:1,width:"100%"}})]})})}let Z=Ee.Children.toArray(o),R=Z.map((V,D)=>{if(zi(V)){let k=V.props.showConnector??(P==="timeline"&&D<Z.length-1),Y=P==="timeline"&&D>0;return Ee.cloneElement(V,{showConnector:k,showIncomingConnector:Y})}if(uC(V)){let k=D===Z.length-1;return Ee.cloneElement(V,{__isLastGroup:k,__isFirstGroup:D===0})}return V});return jsxRuntime.jsx(In.Provider,{value:G,children:jsxRuntime.jsx("div",{"data-slot":"feed","data-variant":P,className:tailwindMerge.twMerge("flex flex-col",K,z,r),...y,children:R})})}Zc.displayName="ActivityFeed";function Oi(e){let{variant:t,size:r}=Om(),{title:o,description:n,actions:a,children:i,className:s,__isLastGroup:l=false,__isFirstGroup:c=false,...d}=e,u=Ee.Children.toArray(i),m=u.map((f,b)=>{if(zi(f)){let x=f.props.showConnector??(t==="timeline"&&!(l&&b===u.length-1));return Ee.cloneElement(f,{showConnector:x,showIncomingConnector:t==="timeline"&&!(c&&b===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),...d,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-muted",children:o}),n&&jsxRuntime.jsx("span",{className:"text-sm text-text-muted",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})]})}Oi.displayName="ActivityFeedGroup";var zm={neutral:"bg-background-muted text-text-muted 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"},pC={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"},mC={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 Hi(e){let{variant:t,size:r}=Om(),{title:o,description:n,timestamp:a,meta:i,media:s,actions:l,visual:c,icon:d,iconWeight:u,tone:m="neutral",surface:p,isHighlighted:g=false,showConnector:f=true,hideIndicator:b=false,interactive:x,className:v,children:y,onKeyDown:C,showIncomingConnector:N,...P}=e,T=c??(d?jsxRuntime.jsx(F,{name:d,weight:u||"fill",className:"h-4 w-4"}):null),B=p??(t==="stacked"?"minimal":"subtle"),A=r==="sm"?"gap-2":"gap-3",I="text-xs text-text-subtle",L=r==="sm"?"text-sm":"text-[15px]",M="text-xs text-text-muted",S=x??typeof P.onClick=="function",w=D=>{if(!S){C?.(D);return}D.key===" "?D.preventDefault():D.key==="Enter"&&(D.preventDefault(),D.currentTarget.click()),C?.(D);},G=D=>{S&&D.key===" "&&(D.preventDefault(),D.currentTarget.click());},K=S?tailwindMerge.twMerge("group cursor-pointer",ze()):void 0,j=jsxRuntime.jsxs("div",{"data-slot":"connector",className:tailwindMerge.twMerge("relative flex h-full flex-col items-center",B==="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",zm[m]),children:T}),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"})]}),Z=g?tailwindMerge.twMerge(pC[m],B==="minimal"?"rounded-md border border-border-muted":mC[m]):"";if(t==="stacked")return jsxRuntime.jsxs("div",{"data-slot":"item","data-variant":"stacked",role:S?"button":void 0,tabIndex:S?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"}[B],Z,K,S?"transition-colors hover:bg-background-subtle/80":"",v),onKeyDown:w,onKeyUp:G,...P,children:[jsxRuntime.jsxs("div",{className:"flex items-center gap-3",children:[!b&&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",zm[m]),children:T}),jsxRuntime.jsx("div",{"data-slot":"title",className:"min-w-0 flex-1 text-sm font-semibold text-text-body",children:o})]}),jsxRuntime.jsxs("div",{"data-slot":"content",className:tailwindMerge.twMerge("mt-3 flex flex-col",A),children:[n&&jsxRuntime.jsx("div",{"data-slot":"description",className:tailwindMerge.twMerge("text-text-muted",L),children:n}),i&&jsxRuntime.jsx("div",{className:M,children:i}),s&&jsxRuntime.jsx("div",{className:"flex flex-col gap-2 text-sm text-text-muted",children:s}),y,l&&jsxRuntime.jsx("div",{className:"flex flex-wrap gap-2 pt-1",children:l}),a&&jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("-mt-1.5",I),children:a})]})]});let R=B==="minimal"?r==="sm"?"py-2":"py-3":r==="sm"?"p-3":"p-4",V={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:S?"button":void 0,tabIndex:S?0:void 0,className:tailwindMerge.twMerge("group relative grid items-start gap-4 grid-cols-[3rem_1fr]",K,v),onKeyDown:w,onKeyUp:G,...P,children:[b?jsxRuntime.jsx("div",{}):j,jsxRuntime.jsxs("div",{"data-slot":"content",className:tailwindMerge.twMerge("min-w-0 flex flex-col",A,R,V[B],Z,S?"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-body",children:o}),a&&jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("flex-shrink-0",I),children:a})]}),n&&jsxRuntime.jsx("div",{"data-slot":"description",className:tailwindMerge.twMerge("text-text-muted",L),children:n}),i&&jsxRuntime.jsx("div",{className:M,children:i}),s&&jsxRuntime.jsx("div",{className:"flex flex-col gap-2 text-sm text-text-muted",children:s}),y,l&&jsxRuntime.jsx("div",{className:"flex flex-wrap gap-2 pt-2",children:l})]})]})}Hi.displayName="ActivityItem";function _t({isOpen:e,onClose:t,title:r,headerContent:o,titleAlign:n="left",hideCloseIcon:a=false,hasBackArrow:i=false,onBack:s,children:l,primaryAction:c,secondaryAction:d,tertiaryAction:u,footerContent:m,transparentOverlay:p=false,maxWidth:g="600px",minWidth:f="400px",maxHeight:b="85vh",height:x,mobileMaxHeight:v="90vh",mobileHeight:y,contentPadding:C=true,className:N}){let P=Tt("(max-width: 767px)"),T=Ee.useRef(null),B=Ee.useCallback(()=>{T.current&&T.current.scrollTop!==0&&(T.current.scrollTop=0);},[]),A=Ee.useRef(null),I=Ee.useCallback(()=>{A.current&&A.current.scrollTop!==0&&(A.current.scrollTop=0);},[]);if(e===false)return null;let L=r||o,M=c||d||u||m,S=e!==void 0;return P?S?jsxRuntime.jsx(Xe,{isOpen:e,onClose:t,title:r,headerContent:o,titleAlign:n,hideCloseIcon:a,hasBackArrow:i,onBack:s,primaryAction:c,secondaryAction:d,footerContent:m,transparentOverlay:p,maxHeight:v,height:y,maxWidth:g,contentPadding:C,showHandle:true,animationVariant:"scale",className:N,children:l}):jsxRuntime.jsx(dr,{children:jsxRuntime.jsx(Wt,{isDismissable:true,transparent:p,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:B,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","max-h-[90vh]","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",N),style:{...y?{height:y}:{maxHeight:v}},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"})}),L&&(i?jsxRuntime.jsx(vt,{title:r,headerContent:o,titleAlign:n,hideCloseIcon:a||!t,hasBackArrow:true,onBack:s,onClose:t||(()=>{})}):jsxRuntime.jsx(vt,{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 overscroll-contain",C?"px-6 py-6":"p-0"),children:l}),M&&jsxRuntime.jsx(so,{primaryAction:c,secondaryAction:d,tertiaryAction:u,footerContent:m})]})})})}):jsxRuntime.jsx(dr,{children:jsxRuntime.jsx(Wt,{...S?{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:A,onScroll:I,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",N),style:{minWidth:f,...x?{height:x}:{maxHeight:b}},children:[L&&(i?jsxRuntime.jsx(vt,{title:r,headerContent:o,titleAlign:n,hideCloseIcon:a||!t,hasBackArrow:true,onBack:s,onClose:t||(()=>{})}):jsxRuntime.jsx(vt,{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",C?"px-6 py-6":"p-0"),children:l}),M&&jsxRuntime.jsx(so,{primaryAction:c,secondaryAction:d,tertiaryAction:u,footerContent:m})]})})})})}function Jm({isOpen:e,onClose:t,title:r,message:o,confirmLabel:n="OK",confirmVariant:a="primary",maxWidth:i="400px",minWidth:s="320px"}){return jsxRuntime.jsx(_t,{isOpen:e,onClose:t,title:r,maxWidth:i,minWidth:s,primaryAction:{label:n,onPress:t,variant:a},children:jsxRuntime.jsx("div",{className:"text-text-body",children:o})})}var Gi=({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-body)",t){let l=r||270,c=l/270*80;return jsxRuntime.jsxs("svg",{width:l,height:c,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 Ui=({topItems:e=[],bottomItems:t=[],bottomContent:r,logo:o,showLogo:n=true,linkComponent:a="a",className:i="",mobileMenuId:s="app-mobile-menu",sidebarCollapseId:l="app-sidebar-collapse"})=>{let c=p=>p.length>0&&"items"in p[0],d=p=>c(p)?p:[{id:"default-section",items:p}],u=(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-subtle uppercase tracking-wider","data-collapse-hide":"",children:p.title}),jsxRuntime.jsx("div",{className:"space-y-0.5",children:p.items.map(b=>m(b))}),g<f-1&&jsxRuntime.jsx("div",{className:"border-b border-border-subtle mx-6 my-2","data-collapse-hide":""})]},p.id),m=(p,g=false)=>{if(p.children&&p.children.length>0){let x=`category-${p.id}`;return jsxRuntime.jsxs("div",{className:"group/category",children:[jsxRuntime.jsx("input",{type:"checkbox",id:x,className:"peer/category hidden",defaultChecked:p.isExpanded,"aria-hidden":"true"}),jsxRuntime.jsxs("label",{htmlFor:x,className:"flex items-center gap-3 px-6 py-1 text-text-body hover:bg-background-hover hover:text-text-heading cursor-pointer transition-all duration-200","data-collapse-center":"",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","data-collapse-icon":"",children:p.icon}),jsxRuntime.jsx("span",{className:"transition-all duration-200","data-collapse-hide":"",children:p.label}),jsxRuntime.jsx("span",{className:"flex-1","data-collapse-hide":""}),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","data-collapse-hide":"",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","data-collapse-hide-category":"",children:p.children.map(v=>m(v,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-body hover:text-text-heading"}`,"aria-current":p.isActive?"page":void 0,"data-collapse-center":g?void 0:""},b=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","data-collapse-icon":"",children:p.icon}),jsxRuntime.jsx("span",{className:"transition-all duration-200","data-collapse-hide":"",children:p.label})]});return a==="a"?jsxRuntime.jsx("a",{...f,children:b},p.id):jsxRuntime.jsx(a,{...f,children:b},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","data-collapse-hide":"",children:o||jsxRuntime.jsx(Gi,{showWordmark:true,width:120})}),jsxRuntime.jsx("label",{htmlFor:l,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":"Toggle sidebar","data-collapse-toggle":"",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:"M4 6h16M4 12h16M4 18h16"})})}),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:d(e).map((p,g,f)=>u(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",{"data-collapse-hide":"",children:r})})]})]})};var lo={xs:16,sm:20,md:24,lg:32,xl:40,"2xl":48},Bo=Ee.memo(({name:e,size:t="md",color:r,weight:o="regular",className:n,ariaLabel:a,...i})=>{let s=gC__namespace[e];if(!s)return null;let l=typeof t=="string"?t in lo?lo[t]:lo.md:t,c=tailwindMerge.twMerge("inline-block flex-shrink-0",!r&&"text-current",n);return jsxRuntime.jsx(s,{...i,size:l,color:r,weight:o,className:c,"aria-label":a||`${e} icon`,"data-testid":`icon-${e}`})});Bo.displayName="IconSSR";var bC=Ee.memo(({variant:e="subtle",shape:t="square",containerSize:r,containerClassName:o,size:n="md",className:a,name:i,color:s,weight:l,ariaLabel:c,ref:d,...u})=>{let m=typeof n=="string"?n in lo?lo[n]:lo.md:n,p=r?typeof r=="string"?r in lo?lo[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-gray-100 dark:bg-gray-800",e==="solid"&&"bg-brand text-white",e==="outline"&&"border-2 border-current",o);return jsxRuntime.jsx("div",{className:g,style:{width:p,height:p},children:jsxRuntime.jsx(Bo,{...u,name:i,size:n,color:s,weight:l,className:a,ariaLabel:c})})});bC.displayName="IconSSRWithContainer";var va=({rightContent:e,centerContent:t,showMobileMenu:r=true,avatar:o,showColorModeSwitcher:n=false,toggleTheme:a,isDarkThemeEnabled:i=false,colorMode:s,actions:l,className:c="",mobileMenuId:d="app-mobile-menu"})=>{let u=()=>{switch(s||(i?"dark":"light")){case "system":return jsxRuntime.jsx(Bo,{name:"Monitor",size:"sm"});case "light":return jsxRuntime.jsx(Bo,{name:"Sun",size:"sm"});case "dark":return jsxRuntime.jsx(Bo,{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 ${c}`,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:d,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(Bo,{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:u()}),l,o&&jsxRuntime.jsx("div",{className:"flex items-center",children:o})]})]})})};function Xm({sideNav:e,topNav:t,children:r,contentPaddingX:o,contentPaddingY:n,showSidebarBorder:a=true,mainClassName:i,enableJsEnhancements:s=false}){let l="app-mobile-menu",c="app-sidebar-collapse";return jsxRuntime.jsxs("div",{className:"min-h-[100dvh] bg-background text-text-body relative",children:[jsxRuntime.jsx("input",{type:"checkbox",id:c,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(va,{...t,mobileMenuId:l,className:["sticky top-0 flex-shrink-0 z-30 md:hidden",t?.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-black/50 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("aside",{id:"app-sidebar",className:["bg-background-surface","border-r border-border-default","transition-all duration-300 ease-in-out","fixed md:relative","left-0 top-0 bottom-0","z-[60] md:z-10","w-80 md:w-64","h-[100dvh] md:h-full","-translate-x-full","peer-checked/mobile:translate-x-0","md:translate-x-0",a?"":"!border-r-0",e?.className||""].filter(Boolean).join(" "),children:jsxRuntime.jsx(Ui,{...e,mobileMenuId:l,sidebarCollapseId:c,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",children:jsxRuntime.jsx(va,{...t,className:t?.className})}),jsxRuntime.jsx("main",{id:"app-content",className:["flex-1 overflow-y-auto overflow-x-hidden bg-background-body",o,n,i||""].join(" "),role:"main",children:r})]})]}),jsxRuntime.jsx("style",{dangerouslySetInnerHTML:{__html:`
3
4
  @media (min-width: 768px) {
4
5
  /* Collapse sidebar width */
5
6
  #${c}:checked ~ * #app-sidebar {
@@ -90,7 +91,7 @@
90
91
  });
91
92
  }
92
93
  })();
93
- `}})]})}var Ri={prefix:String(Math.round(Math.random()*1e10)),current:0},sm=De__namespace.default.createContext(Ri),Z0=De__namespace.default.createContext(false);var X0=!!(typeof window<"u"&&window.document&&window.document.createElement),Cc=new WeakMap;function j0(e=false){let t=De.useContext(sm),r=De.useRef(null);if(r.current===null&&!e){var o,n;let a=(n=De__namespace.default.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||n===void 0||(o=n.ReactCurrentOwner)===null||o===void 0?void 0:o.current;if(a){let i=Cc.get(a);i==null?Cc.set(a,{id:t.current,state:a.memoizedState}):a.memoizedState!==i.state&&(t.current=i.id,Cc.delete(a));}r.current=++t.current;}return r.current}function Q0(e){let t=De.useContext(sm);t===Ri&&!X0&&process.env.NODE_ENV!=="production"&&console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");let r=j0(!!e),o=t===Ri&&process.env.NODE_ENV==="test"?"react-aria":`react-aria${t.prefix}`;return e||`${o}-${r}`}function $0(e){let t=De__namespace.default.useId(),[r]=De.useState(Di()),o=r||process.env.NODE_ENV==="test"?"react-aria":`react-aria${Ri.prefix}`;return e||`${o}-${t}`}typeof De__namespace.default.useId=="function"?$0:Q0;function ev(){return false}function tv(){return true}function rv(e){return ()=>{}}function Di(){return typeof De__namespace.default.useSyncExternalStore=="function"?De__namespace.default.useSyncExternalStore(rv,ev,tv):De.useContext(Z0)}function lm(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Ai(e,t,r){lm(e,t),t.set(e,r);}var ov=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),nv=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function Nc(e){if(Intl.Locale){let r=new Intl.Locale(e).maximize(),o=typeof r.getTextInfo=="function"?r.getTextInfo():r.textInfo;if(o)return o.direction==="rtl";if(r.script)return ov.has(r.script)}let t=e.split("-")[0];return nv.has(t)}var dm=Symbol.for("react-aria.i18n.locale");function um(){let e=typeof window<"u"&&window[dm]||typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e]);}catch{e="en-US";}return {locale:e,direction:Nc(e)?"rtl":"ltr"}}var wc=um(),ca=new Set;function cm(){wc=um();for(let e of ca)e(wc);}function pm(){let e=Di(),[t,r]=De.useState(wc);return De.useEffect(()=>(ca.size===0&&window.addEventListener("languagechange",cm),ca.add(r),()=>{ca.delete(r),ca.size===0&&window.removeEventListener("languagechange",cm);}),[]),e?{locale:typeof window<"u"&&window[dm]||"en-US",direction:"ltr"}:t}var cv=De__namespace.default.createContext(null);function kc(){let e=pm();return De.useContext(cv)||e}function Li(e,t){return e-t*Math.floor(e/t)}var mm=1721426;function Mi(e,t,r,o){t=Ii(e,t);let n=t-1,a=-2;return r<=2?a=0:Ei(t)&&(a=-1),mm-1+365*n+Math.floor(n/4)-Math.floor(n/100)+Math.floor(n/400)+Math.floor((367*r-362)/12+a+o)}function Ei(e){return e%4===0&&(e%100!==0||e%400===0)}function Ii(e,t){return e==="BC"?1-t:t}function dv(e){let t="AD";return e<=0&&(t="BC",e=1-e),[t,e]}var uv={standard:[31,28,31,30,31,30,31,31,30,31,30,31],leapyear:[31,29,31,30,31,30,31,31,30,31,30,31]},jt=class{fromJulianDay(t){let r=t,o=r-mm,n=Math.floor(o/146097),a=Li(o,146097),i=Math.floor(a/36524),s=Li(a,36524),l=Math.floor(s/1461),c=Li(s,1461),u=Math.floor(c/365),d=n*400+i*100+l*4+u+(i!==4&&u!==4?1:0),[m,p]=dv(d),g=r-Mi(m,p,1,1),f=2;r<Mi(m,p,3,1)?f=0:Ei(p)&&(f=1);let b=Math.floor(((g+f)*12+373)/367),x=r-Mi(m,p,b,1)+1;return new Do(m,p,b,x)}toJulianDay(t){return Mi(t.era,t.year,t.month,t.day)}getDaysInMonth(t){return uv[Ei(t.year)?"leapyear":"standard"][t.month-1]}getMonthsInYear(t){return 12}getDaysInYear(t){return Ei(t.year)?366:365}getYearsInEra(t){return 9999}getEras(){return ["BC","AD"]}isInverseEra(t){return t.era==="BC"}balanceDate(t){t.year<=0&&(t.era=t.era==="BC"?"AD":"BC",t.year=1-t.year);}constructor(){this.identifier="gregory";}};function Pc(e,t){var r,o,n,a;return (a=(n=(r=e.isEqual)===null||r===void 0?void 0:r.call(e,t))!==null&&n!==void 0?n:(o=t.isEqual)===null||o===void 0?void 0:o.call(t,e))!==null&&a!==void 0?a:e.identifier===t.identifier}function Rc(e,t){return e.calendar.toJulianDay(e)-t.calendar.toJulianDay(t)}function gm(e,t){return fm(e)-fm(t)}function fm(e){return e.hour*36e5+e.minute*6e4+e.second*1e3+e.millisecond}var Tc=null;function Ao(){return Tc==null&&(Tc=new Intl.DateTimeFormat().resolvedOptions().timeZone),Tc}function eo(e){e=Ht(e,new jt);let t=Ii(e.era,e.year);return hm(t,e.month,e.day,e.hour,e.minute,e.second,e.millisecond)}function hm(e,t,r,o,n,a,i){let s=new Date;return s.setUTCHours(o,n,a,i),s.setUTCFullYear(e,t-1,r),s.getTime()}function Dc(e,t){if(t==="UTC")return 0;if(e>0&&t===Ao())return new Date(e).getTimezoneOffset()*-6e4;let{year:r,month:o,day:n,hour:a,minute:i,second:s}=ym(e,t);return hm(r,o,n,a,i,s,0)-Math.floor(e/1e3)*1e3}var bm=new Map;function ym(e,t){let r=bm.get(t);r||(r=new Intl.DateTimeFormat("en-US",{timeZone:t,hour12:false,era:"short",year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"}),bm.set(t,r));let o=r.formatToParts(new Date(e)),n={};for(let a of o)a.type!=="literal"&&(n[a.type]=a.value);return {year:n.era==="BC"||n.era==="B"?-n.year+1:+n.year,month:+n.month,day:+n.day,hour:n.hour==="24"?0:+n.hour,minute:+n.minute,second:+n.second}}var xm=864e5;function pv(e,t,r,o){return (r===o?[r]:[r,o]).filter(a=>mv(e,t,a))}function mv(e,t,r){let o=ym(r,t);return e.year===o.year&&e.month===o.month&&e.day===o.day&&e.hour===o.hour&&e.minute===o.minute&&e.second===o.second}function ar(e,t,r="compatible"){let o=hr(e);if(t==="UTC")return eo(o);if(t===Ao()&&r==="compatible"){o=Ht(o,new jt);let l=new Date,c=Ii(o.era,o.year);return l.setFullYear(c,o.month-1,o.day),l.setHours(o.hour,o.minute,o.second,o.millisecond),l.getTime()}let n=eo(o),a=Dc(n-xm,t),i=Dc(n+xm,t),s=pv(o,t,n-a,n-i);if(s.length===1)return s[0];if(s.length>1)switch(r){case "compatible":case "earlier":return s[0];case "later":return s[s.length-1];case "reject":throw new RangeError("Multiple possible absolute times found")}switch(r){case "earlier":return Math.min(n-a,n-i);case "compatible":case "later":return Math.max(n-a,n-i);case "reject":throw new RangeError("No such absolute time found")}}function Ac(e,t,r="compatible"){return new Date(ar(e,t,r))}function Qt(e,t){let r=Dc(e,t),o=new Date(e+r),n=o.getUTCFullYear(),a=o.getUTCMonth()+1,i=o.getUTCDate(),s=o.getUTCHours(),l=o.getUTCMinutes(),c=o.getUTCSeconds(),u=o.getUTCMilliseconds();return new kn(n<1?"BC":"AD",n<1?-n+1:n,a,i,t,r,s,l,c,u)}function Fi(e,t){return Qt(e.getTime(),t)}function hr(e,t){let r=0,o=0,n=0,a=0;if("timeZone"in e)({hour:r,minute:o,second:n,millisecond:a}=e);else if("hour"in e&&true)return e;return new da(e.calendar,e.era,e.year,e.month,e.day,r,o,n,a)}function Ht(e,t){if(Pc(e.calendar,t))return e;let r=t.fromJulianDay(e.calendar.toJulianDay(e)),o=e.copy();return o.calendar=t,o.era=r.era,o.year=r.year,o.month=r.month,o.day=r.day,Mr(o),o}function Lc(e,t,r){if(e instanceof kn)return e.timeZone===t?e:Mc(e,t);let o=ar(e,t,r);return Qt(o,t)}function vm(e){let t=eo(e)-e.offset;return new Date(t)}function Mc(e,t){let r=eo(e)-e.offset;return Ht(Qt(r,t),e.calendar)}var ua=36e5;function ma(e,t){let r=e.copy(),o="hour"in r?xv(r,t):0;Ec(r,t.years||0),r.calendar.balanceYearMonth&&r.calendar.balanceYearMonth(r,e),r.month+=t.months||0,Ic(r),Cm(r),r.day+=(t.weeks||0)*7,r.day+=t.days||0,r.day+=o,gv(r),r.calendar.balanceDate&&r.calendar.balanceDate(r),r.year<1&&(r.year=1,r.month=1,r.day=1);let n=r.calendar.getYearsInEra(r);if(r.year>n){var a,i;let l=(a=(i=r.calendar).isInverseEra)===null||a===void 0?void 0:a.call(i,r);r.year=n,r.month=l?1:r.calendar.getMonthsInYear(r),r.day=l?1:r.calendar.getDaysInMonth(r);}r.month<1&&(r.month=1,r.day=1);let s=r.calendar.getMonthsInYear(r);return r.month>s&&(r.month=s,r.day=r.calendar.getDaysInMonth(r)),r.day=Math.max(1,Math.min(r.calendar.getDaysInMonth(r),r.day)),r}function Ec(e,t){var r,o;!((r=(o=e.calendar).isInverseEra)===null||r===void 0)&&r.call(o,e)&&(t=-t),e.year+=t;}function Ic(e){for(;e.month<1;)Ec(e,-1),e.month+=e.calendar.getMonthsInYear(e);let t=0;for(;e.month>(t=e.calendar.getMonthsInYear(e));)e.month-=t,Ec(e,1);}function gv(e){for(;e.day<1;)e.month--,Ic(e),e.day+=e.calendar.getDaysInMonth(e);for(;e.day>e.calendar.getDaysInMonth(e);)e.day-=e.calendar.getDaysInMonth(e),e.month++,Ic(e);}function Cm(e){e.month=Math.max(1,Math.min(e.calendar.getMonthsInYear(e),e.month)),e.day=Math.max(1,Math.min(e.calendar.getDaysInMonth(e),e.day));}function Mr(e){e.calendar.constrainDate&&e.calendar.constrainDate(e),e.year=Math.max(1,Math.min(e.calendar.getYearsInEra(e),e.year)),Cm(e);}function Sm(e){let t={};for(let r in e)typeof e[r]=="number"&&(t[r]=-e[r]);return t}function Fc(e,t){return ma(e,Sm(t))}function zi(e,t){let r=e.copy();return t.era!=null&&(r.era=t.era),t.year!=null&&(r.year=t.year),t.month!=null&&(r.month=t.month),t.day!=null&&(r.day=t.day),Mr(r),r}function pa(e,t){let r=e.copy();return t.hour!=null&&(r.hour=t.hour),t.minute!=null&&(r.minute=t.minute),t.second!=null&&(r.second=t.second),t.millisecond!=null&&(r.millisecond=t.millisecond),Nm(r),r}function bv(e){e.second+=Math.floor(e.millisecond/1e3),e.millisecond=Bi(e.millisecond,1e3),e.minute+=Math.floor(e.second/60),e.second=Bi(e.second,60),e.hour+=Math.floor(e.minute/60),e.minute=Bi(e.minute,60);let t=Math.floor(e.hour/24);return e.hour=Bi(e.hour,24),t}function Nm(e){e.millisecond=Math.max(0,Math.min(e.millisecond,1e3)),e.second=Math.max(0,Math.min(e.second,59)),e.minute=Math.max(0,Math.min(e.minute,59)),e.hour=Math.max(0,Math.min(e.hour,23));}function Bi(e,t){let r=e%t;return r<0&&(r+=t),r}function xv(e,t){return e.hour+=t.hours||0,e.minute+=t.minutes||0,e.second+=t.seconds||0,e.millisecond+=t.milliseconds||0,bv(e)}function Vi(e,t,r,o){let n=e.copy();switch(t){case "era":{let s=e.calendar.getEras(),l=s.indexOf(e.era);if(l<0)throw new Error("Invalid era: "+e.era);l=Er(l,r,0,s.length-1,o?.round),n.era=s[l],Mr(n);break}case "year":var a,i;!((a=(i=n.calendar).isInverseEra)===null||a===void 0)&&a.call(i,n)&&(r=-r),n.year=Er(e.year,r,-1/0,9999,o?.round),n.year===-1/0&&(n.year=1),n.calendar.balanceYearMonth&&n.calendar.balanceYearMonth(n,e);break;case "month":n.month=Er(e.month,r,1,e.calendar.getMonthsInYear(e),o?.round);break;case "day":n.day=Er(e.day,r,1,e.calendar.getDaysInMonth(e),o?.round);break;default:throw new Error("Unsupported field "+t)}return e.calendar.balanceDate&&e.calendar.balanceDate(n),Mr(n),n}function Bc(e,t,r,o){let n=e.copy();switch(t){case "hour":{let a=e.hour,i=0,s=23;if(o?.hourCycle===12){let l=a>=12;i=l?12:0,s=l?23:11;}n.hour=Er(a,r,i,s,o?.round);break}case "minute":n.minute=Er(e.minute,r,0,59,o?.round);break;case "second":n.second=Er(e.second,r,0,59,o?.round);break;case "millisecond":n.millisecond=Er(e.millisecond,r,0,999,o?.round);break;default:throw new Error("Unsupported field "+t)}return n}function Er(e,t,r,o,n=false){if(n){e+=Math.sign(t),e<r&&(e=o);let a=Math.abs(t);t>0?e=Math.ceil(e/a)*a:e=Math.floor(e/a)*a,e>o&&(e=r);}else e+=t,e<r?e=o-(r-e-1):e>o&&(e=r+(e-o-1));return e}function zc(e,t){let r;if(t.years!=null&&t.years!==0||t.months!=null&&t.months!==0||t.weeks!=null&&t.weeks!==0||t.days!=null&&t.days!==0){let n=ma(hr(e),{years:t.years,months:t.months,weeks:t.weeks,days:t.days});r=ar(n,e.timeZone);}else r=eo(e)-e.offset;r+=t.milliseconds||0,r+=(t.seconds||0)*1e3,r+=(t.minutes||0)*6e4,r+=(t.hours||0)*36e5;let o=Qt(r,e.timeZone);return Ht(o,e.calendar)}function wm(e,t){return zc(e,Sm(t))}function km(e,t,r,o){switch(t){case "hour":{let n=0,a=23;if(o?.hourCycle===12){let g=e.hour>=12;n=g?12:0,a=g?23:11;}let i=hr(e),s=Ht(pa(i,{hour:n}),new jt),l=[ar(s,e.timeZone,"earlier"),ar(s,e.timeZone,"later")].filter(g=>Qt(g,e.timeZone).day===s.day)[0],c=Ht(pa(i,{hour:a}),new jt),u=[ar(c,e.timeZone,"earlier"),ar(c,e.timeZone,"later")].filter(g=>Qt(g,e.timeZone).day===c.day).pop(),d=eo(e)-e.offset,m=Math.floor(d/ua),p=d%ua;return d=Er(m,r,Math.floor(l/ua),Math.floor(u/ua),o?.round)*ua+p,Ht(Qt(d,e.timeZone),e.calendar)}case "minute":case "second":case "millisecond":return Bc(e,t,r,o);case "era":case "year":case "month":case "day":{let n=Vi(hr(e),t,r,o),a=ar(n,e.timeZone);return Ht(Qt(a,e.timeZone),e.calendar)}default:throw new Error("Unsupported field "+t)}}function Tm(e,t,r){let o=hr(e),n=pa(zi(o,t),t);if(n.compare(o)===0)return e;let a=ar(n,e.timeZone,r);return Ht(Qt(a,e.timeZone),e.calendar)}var hv=/^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})$/;var yv=/^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})(?:T(\d{2}))?(?::(\d{2}))?(?::(\d{2}))?(\.\d+)?(?:(?:([+-]\d{2})(?::?(\d{2}))?)|Z)$/;function fa(e){let t=e.match(hv);if(!t)throw yv.test(e)?new Error(`Invalid ISO 8601 date string: ${e}. Use parseAbsolute() instead.`):new Error("Invalid ISO 8601 date string: "+e);let r=new Do(Vc(t[1],0,9999),Vc(t[2],1,12),1);return r.day=Vc(t[3],1,r.calendar.getDaysInMonth(r)),r}function Vc(e,t,r){let o=Number(e);if(o<t||o>r)throw new RangeError(`Value out of range: ${t} <= ${o} <= ${r}`);return o}function Pm(e){return `${String(e.hour).padStart(2,"0")}:${String(e.minute).padStart(2,"0")}:${String(e.second).padStart(2,"0")}${e.millisecond?String(e.millisecond/1e3).slice(1):""}`}function Oc(e){let t=Ht(e,new jt),r;return t.era==="BC"?r=t.year===1?"0000":"-"+String(Math.abs(1-t.year)).padStart(6,"00"):r=String(t.year).padStart(4,"0"),`${r}-${String(t.month).padStart(2,"0")}-${String(t.day).padStart(2,"0")}`}function Hc(e){return `${Oc(e)}T${Pm(e)}`}function Cv(e){let t=Math.sign(e)<0?"-":"+";e=Math.abs(e);let r=Math.floor(e/36e5),o=Math.floor(e%36e5/6e4),n=Math.floor(e%36e5%6e4/1e3),a=`${t}${String(r).padStart(2,"0")}:${String(o).padStart(2,"0")}`;return n!==0&&(a+=`:${String(n).padStart(2,"0")}`),a}function Rm(e){return `${Hc(e)}${Cv(e.offset)}[${e.timeZone}]`}function Gc(e){let t=typeof e[0]=="object"?e.shift():new jt,r;if(typeof e[0]=="string")r=e.shift();else {let i=t.getEras();r=i[i.length-1];}let o=e.shift(),n=e.shift(),a=e.shift();return [t,r,o,n,a]}var Sv=new WeakMap,Do=class e{copy(){return this.era?new e(this.calendar,this.era,this.year,this.month,this.day):new e(this.calendar,this.year,this.month,this.day)}add(t){return ma(this,t)}subtract(t){return Fc(this,t)}set(t){return zi(this,t)}cycle(t,r,o){return Vi(this,t,r,o)}toDate(t){return Ac(this,t)}toString(){return Oc(this)}compare(t){return Rc(this,t)}constructor(...t){Ai(this,Sv,{writable:true,value:void 0});let[r,o,n,a,i]=Gc(t);this.calendar=r,this.era=o,this.year=n,this.month=a,this.day=i,Mr(this);}};var Nv=new WeakMap,da=class e{copy(){return this.era?new e(this.calendar,this.era,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond):new e(this.calendar,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond)}add(t){return ma(this,t)}subtract(t){return Fc(this,t)}set(t){return zi(pa(this,t),t)}cycle(t,r,o){switch(t){case "era":case "year":case "month":case "day":return Vi(this,t,r,o);default:return Bc(this,t,r,o)}}toDate(t,r){return Ac(this,t,r)}toString(){return Hc(this)}compare(t){let r=Rc(this,t);return r===0?gm(this,hr(t)):r}constructor(...t){Ai(this,Nv,{writable:true,value:void 0});let[r,o,n,a,i]=Gc(t);this.calendar=r,this.era=o,this.year=n,this.month=a,this.day=i,this.hour=t.shift()||0,this.minute=t.shift()||0,this.second=t.shift()||0,this.millisecond=t.shift()||0,Mr(this);}},wv=new WeakMap,kn=class e{copy(){return this.era?new e(this.calendar,this.era,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond):new e(this.calendar,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond)}add(t){return zc(this,t)}subtract(t){return wm(this,t)}set(t,r){return Tm(this,t,r)}cycle(t,r,o){return km(this,t,r,o)}toDate(){return vm(this)}toString(){return Rm(this)}toAbsoluteString(){return this.toDate().toISOString()}compare(t){return this.toDate().getTime()-Lc(t,this.timeZone).toDate().getTime()}constructor(...t){Ai(this,wv,{writable:true,value:void 0});let[r,o,n,a,i]=Gc(t),s=t.shift(),l=t.shift();this.calendar=r,this.era=o,this.year=n,this.month=a,this.day=i,this.timeZone=s,this.offset=l,this.hour=t.shift()||0,this.minute=t.shift()||0,this.second=t.shift()||0,this.millisecond=t.shift()||0,Mr(this);}};var Wc=new Map;function Uc(e){let{locale:t}=kc(),r=t+(e?Object.entries(e).sort((n,a)=>n[0]<a[0]?-1:1).join():"");if(Wc.has(r))return Wc.get(r);let o=new Intl.Collator(t,e);return Wc.set(r,o),o}function Oi(e){let t=Uc({usage:"search",...e}),r=De.useCallback((a,i)=>i.length===0?true:(a=a.normalize("NFC"),i=i.normalize("NFC"),t.compare(a.slice(0,i.length),i)===0),[t]),o=De.useCallback((a,i)=>i.length===0?true:(a=a.normalize("NFC"),i=i.normalize("NFC"),t.compare(a.slice(-i.length),i)===0),[t]),n=De.useCallback((a,i)=>{if(i.length===0)return true;a=a.normalize("NFC"),i=i.normalize("NFC");let s=0,l=i.length;for(;s+l<=a.length;s++){let c=a.slice(s,s+l);if(t.compare(i,c)===0)return true}return false},[t]);return De.useMemo(()=>({startsWith:r,endsWith:o,contains:n}),[r,o,n])}var Av=({isEntering:e,isExiting:t,className:r})=>["max-w-[200px] group bg-slate-700 dark:bg-slate-600 border border-slate-800 dark:border-white/10 shadow-[inset_0_1px_0_0_theme(colors.gray.600)] dark:shadow-none text-white 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 Pt({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)=>Av({...n,className:o})),children:[jsxRuntime.jsx(reactAriaComponents.OverlayArrow,{children:jsxRuntime.jsx("svg",{width:8,height:8,viewBox:"0 0 8 8",className:"fill-slate-700 stroke-gray-800 group-placement-left:-rotate-90 group-placement-right:rotate-90 group-placement-bottom:rotate-180 dark:fill-slate-600 dark:stroke-white/10 forced-colors:fill-[Canvas] forced-colors:stroke-[ButtonBorder]",children:jsxRuntime.jsx("path",{d:"M0 0 L4 4 L8 0"})})}),t]})]})}function _t(){let[e,t]=De__namespace.default.useState(false),r=De__namespace.default.useCallback((n,a)=>{t(true),a?.(n);},[]),o=De__namespace.default.useCallback((n,a)=>{t(false),a?.(n);},[]);return {isFocused:e,handleFocus:r,handleBlur:o}}var tt=De__namespace.default.forwardRef(({children:e,className:t},r)=>jsxRuntime.jsx("div",{ref:r,className:tailwindMerge.twMerge("relative w-full",t),children:e}));tt.displayName="InputWrapper";function ga({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-muted hover:text-text-body cursor-pointer",r),"aria-label":"Clear input",onMouseDown:o=>{o.preventDefault(),o.stopPropagation();},children:jsxRuntime.jsx(k,{name:"X",size:t==="sm"?16:20})})}function to(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 Am(e){return e.isDisabled?"bg-background-muted":e.transparent?"bg-transparent":"bg-background-input"}function Lv(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 ft(e){let{isInvalid:t,isDisabled:r,isFocused:o,transparent:n,size:a="md",className:i}=e;return tailwindMerge.twMerge("w-full",to({isInvalid:t,isDisabled:r,isFocused:o}),Am({transparent:n,isDisabled:r}),Ae[a].text,Ae[a].height,Ae[a].padding,Lv(a),i)}function Mv(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",Am({transparent:a,isDisabled:n}),Ae[t].height,to({isFocused:r,isInvalid:o,isDisabled:n}),i)}function Re({children:e,size:t="md",tooltip:r,description:o,descriptionPlacement:n="below",isRequired:a,className:i,htmlFor:s}){let l=r||o&&n==="tooltip",c=r||o,u=o&&n==="inline",d=jsxRuntime.jsxs("label",{htmlFor:s,className:tailwindMerge.twMerge(Ae[t].text,"!text-text-label font-semibold flex items-center gap-1",i),children:[e,a&&jsxRuntime.jsx("span",{children:"*"}),l&&jsxRuntime.jsx("span",{className:"text-text-muted",children:jsxRuntime.jsx(k,{name:"Info",size:t==="sm"?16:20})}),u&&jsxRuntime.jsx("span",{className:"text-text-caption font-normal ml-1",children:o})]});return l&&c?jsxRuntime.jsx(Pt,{content:c,children:d}):d}function he({size:e="md",className:t,children:r,...o}){return jsxRuntime.jsx("div",{...o,className:tailwindMerge.twMerge("leading-[2.25] text-text-caption",Ae[e].text,t),children:r})}function se({children:e,size:t="md",className:r}){return jsxRuntime.jsx("div",{role:"alert",className:tailwindMerge.twMerge(Ae[t].text,"text-feedback-error-text",r),children:e})}function Gi({size:e="md",isInvalid:t,isDisabled:r,isFocused:o,transparent:n,className:a,...i}){return jsxRuntime.jsx("input",{className:ft({isInvalid:t,isDisabled:r,isFocused:o,transparent:n,size:e,className:a}),...i})}function Lm(e){let{children:t,...r}=e;return jsxRuntime.jsx("div",{...r,className:Mv(e),children:typeof t=="function"?t(e):t})}function Fv({children:e,...t}){return jsxRuntime.jsx(reactAriaComponents.ListBox,{...t,className:xe(t.className,"outline-0"),children:e})}var jc=De.createContext("md");function Bm(){return De.useContext(jc)}function qc(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-placeholder overflow-hidden text-ellipsis whitespace-nowrap ${Ae[e].text} ${t}`}function Gv(){let e=De__namespace.default.useCallback((r,o)=>{o?.(r);},[]),t=De__namespace.default.useCallback((r,o)=>{o?.(r);},[]);return {handleFocus:e,handleBlur:t}}function Mo({label:e,description:t,errorMessage:r,children:o,items:n,renderItem:a,renderSelectedValue:i,size:s="md",selectedKey:l,defaultSelectedKey:c,onSelectionChange:u,placeholder:d,showErrors:m=false,tooltip:p,isRequired:g,transparent:f,reserveErrorSpace:b=false,placement:x="bottom start",shouldFlip:v=true,menuWidth:y="match",descriptionPlacement:C="below",useMobileTray:S=true,...w}){let[N,L]=De.useState(null),[D,A]=De.useState(null),[P,T]=De.useState(false),E=l??N??c,{handleFocus:R,handleBlur:J}=Gv(),{isMobile:X}=Nt(),q=S&&X,$=De__namespace.default.useMemo(()=>!i||!E||!n?null:Array.from(n).find(Y=>Y.id===E)??null,[i,E,n]),j=I=>{u&&I!==null&&u(I),u||L(I);},M=De.useRef(null),W=De.useRef(null),U=()=>{q&&T(!P);};return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(reactAriaComponents.Select,{...w,selectedKey:E,defaultSelectedKey:c,onSelectionChange:j,placeholder:d,className:xe(w.className,"group flex w-full flex-col"),ref:M,onOpenChange:I=>{q||(I&&W.current?A(W.current.offsetWidth):I||M.current?.blur());},children:({isDisabled:I,isInvalid:Y,isOpen:F})=>jsxRuntime.jsxs("div",{className:"flex flex-col",children:[e&&jsxRuntime.jsx(Re,{size:s,tooltip:p,description:C==="tooltip"||C==="inline"?t:void 0,descriptionPlacement:C,isRequired:g,children:e}),jsxRuntime.jsx(tt,{children:jsxRuntime.jsx("div",{ref:W,children:jsxRuntime.jsxs(_,{variant:"unstyled",className:tailwindMerge.twMerge(ft({isInvalid:Y||m&&!!r,isDisabled:I,isFocused:q?P:F,transparent:f,size:s}),"flex items-center text-start gap-4 cursor-pointer pl-[var(--control-padding-sm)]"),onFocus:h=>R(h,w.onFocus),onBlur:h=>J(h,w.onBlur),onPress:q?U:void 0,"data-open":q?P:F,children:[i&&$?jsxRuntime.jsx("div",{className:qc(s),children:i($)}):q&&E?jsxRuntime.jsx("div",{className:qc(s),children:n?Array.from(n).find(B=>B.id===E)?.label:String(E)}):jsxRuntime.jsx(reactAriaComponents.SelectValue,{className:qc(s)}),jsxRuntime.jsx(k,{name:"CaretDown","aria-hidden":true,className:tailwindMerge.twMerge("h-4 w-4 text-text-body group-disabled:text-gray-200 forced-colors:text-[ButtonText] transition-transform",(q?P:F)&&"rotate-180")})]})})}),b?jsxRuntime.jsx("div",{className:"mt-1 min-h-[20px]",children:m?jsxRuntime.jsx(se,{size:s,className:"text-feedback-error-text",children:typeof r=="function"&&w.validationResult?r(w.validationResult):typeof r=="string"?r:null}):t&&C==="below"?jsxRuntime.jsx(he,{size:s,children:t}):null}):jsxRuntime.jsx(jsxRuntime.Fragment,{children:m?jsxRuntime.jsx(se,{size:s,className:"mt-1 text-feedback-error-text",children:typeof r=="function"&&w.validationResult?r(w.validationResult):typeof r=="string"?r:null}):t&&C==="below"?jsxRuntime.jsx(he,{size:s,className:"mt-1",children:t}):null}),q?null:jsxRuntime.jsx(qe,{className:"bg-background-input shadow-xl border border-border-input/20 backdrop-blur-sm rounded-[var(--control-border-radius)]",style:{width:y==="match"&&D?`${D}px`:void 0,minWidth:y==="auto"&&D?`${D}px`:void 0,maxWidth:y==="auto"?"min(600px, 90vw)":void 0},placement:x,shouldFlip:v,children:jsxRuntime.jsx(jc.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?h=>jsxRuntime.jsx(Rt,{id:h.id,textValue:h.label,children:jsxRuntime.jsx("span",{className:"overflow-hidden text-ellipsis whitespace-nowrap min-w-0 flex-1",children:a(h)})},h.id):o})})})]})}),q&&jsxRuntime.jsx(Ze,{isOpen:P,onClose:()=>T(false),title:e??"Select an option",contentPadding:false,children:jsxRuntime.jsx(jc.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:I=>{let Y=Array.from(I)[0];Y!=null&&(j(Y),T(false));},children:a&&n?I=>jsxRuntime.jsx(Rt,{id:I.id,textValue:I.label,children:jsxRuntime.jsx("span",{className:"overflow-hidden text-ellipsis whitespace-nowrap min-w-0 flex-1",children:a(I)})},I.id):o})})})]})}function Rt({size:e,className:t,...r}){let o=Bm(),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-body 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",Ae[n].paddingY,Ae[n].text,t)})}var $v=[],_v={sm:"h-4 w-4",md:"h-5 w-5",lg:"h-6 w-6",xl:"h-7 w-7"},eC={sm:"pl-8",md:"pl-10",lg:"pl-11",xl:"pl-13"},Vm={sm:"py-1",md:"py-2",lg:"py-3",xl:"py-4"},$c=(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 tC(e,t,r){try{let o=e.url.replace("{q}",t),n=new URLSearchParams;e.extraParams&&Object.entries(e.extraParams).forEach(([l,c])=>{n.append(l,c.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 rC(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 Yi({label:e,staticItems:t=$v,sections:r,selectedKey:o,defaultSelectedKey:n,onSelectionChange:a,requestConfig:i,defaultFilter:s,placeholder:l,errorMessage:c,description:u,size:d="md",tooltip:m,isRequired:p,isDisabled:g,isInvalid:f,validationResult:b,showErrors:x=true,renderItem:v,renderLeftIcon:y,renderSection:C,autoFocus:S=false,reserveErrorSpace:w=false,hideChevron:N=false,useMobileTray:L=true,className:D}){let A=De__namespace.default.useRef(null),P=De__namespace.default.useRef(null),[T,E]=De__namespace.default.useState(),[R,J]=De.useState(()=>$c(o||n,t,r)),[X,q]=De.useState(false),[$,j]=De.useState(false),M=Jr(R),{contains:W}=Oi({sensitivity:"base"}),[U,I]=De.useState(),{isMobile:Y}=Nt(),F=L&&Y,h=Ae[d].text,z=reactStately.useAsyncList({async load({signal:ne,filterText:ue=""}){if(!i)return {items:[]};if(!i.url||i.shouldLoad&&!i.shouldLoad(ue))return {items:[]};try{let ve;return i.requestType==="GraphQL"?ve=await rC(i,ue,ne):ve=await tC(i,ue,ne),I(ve.error),{items:ve.items}}catch(ve){return ve instanceof Error&&ve.name==="AbortError"?{items:[]}:(console.error("Error loading items:",ve),I(ve instanceof Error?ve.message:"Unknown error occurred"),{items:[]})}},initialFilterText:""}),B=i&&M!==""?z:null,G=false,oe=De.useRef("");De.useEffect(()=>{S&&q(true);},[S]),De.useEffect(()=>{let ne=$c(o,t,r);ne!==R&&J(ne);},[o,t,r]),De.useEffect(()=>{let ne=()=>{A.current&&E(A.current.offsetWidth);};return ne(),window.addEventListener("resize",ne),()=>window.removeEventListener("resize",ne)},[]),De.useEffect(()=>{M===""?oe.current="":B&&M!==oe.current&&(oe.current=M,B.setFilterText(M));},[M,B]),G=si(!!B?.isLoading,300);let me=De__namespace.default.useMemo(()=>{if(!F||!R)return B?B.items:t;let ne=B?B.items:t,ue=s||W;return ne.filter(ve=>ue(ve.name,R))},[F,R,B,t,s,W]),O=ne=>{let ue=$c(ne,t,r);J(ue),a&&a(ne);},Q=ne=>{J(ne);},fe=()=>{F&&j(true);};return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(reactAriaComponents.ComboBox,{onSelectionChange:O,selectedKey:o||void 0,defaultSelectedKey:n||void 0,defaultItems:r?r.flatMap(ne=>ne.items):t,items:B?B.items:void 0,className:xe(D,"group flex flex-col w-full"),menuTrigger:F?"manual":"focus",isDisabled:g,isInvalid:f||!!c,inputValue:R,onInputChange:Q,autoFocus:S&&!F,defaultFilter:s||W,"aria-label":e||l||"Autocomplete",children:ne=>jsxRuntime.jsxs("div",{className:"flex flex-col",children:[e&&jsxRuntime.jsx(Re,{size:d,tooltip:m,isRequired:p,children:e}),jsxRuntime.jsxs(tt,{ref:A,children:[y?jsxRuntime.jsx("div",{className:"pointer-events-none absolute left-3 top-[45%] -translate-y-1/2 z-10",children:y(G)}):jsxRuntime.jsx("div",{className:"pointer-events-none absolute left-3 top-1/2 -translate-y-1/2 z-10 flex items-center",children:G?jsxRuntime.jsx(Lr,{size:16,color:"text-text-muted"}):jsxRuntime.jsx(k,{name:"MagnifyingGlass",className:`${_v[d]} text-text-muted`})}),jsxRuntime.jsx(reactAriaComponents.Input,{className:ft({isInvalid:f||!!c,isDisabled:g,isFocused:X||(F?$:ne.isOpen),size:d,className:tailwindMerge.twMerge(eC[d],R&&!g||!N&&!R?"pr-10":"pr-3",F&&"cursor-pointer",D)}),placeholder:l,disabled:g,onFocus:ue=>{q(true),F&&(ue.currentTarget.blur(),fe());},onBlur:()=>{q(false);},onClick:F?fe:void 0,readOnly:F,"aria-label":e||l||"Autocomplete"}),R&&!g&&jsxRuntime.jsx(ga,{onClick:()=>{J(""),a?.(null);},size:d}),!N&&!R&&jsxRuntime.jsx(reactAriaComponents.Button,{className:"absolute right-3 top-[46%] -translate-y-1/2 transform text-text-muted hover:text-text-body","aria-label":"Toggle menu",isDisabled:g,children:({isPressed:ue})=>jsxRuntime.jsx(k,{name:ue?"CaretUp":"CaretDown",className:"h-4 w-4"})})]}),w?jsxRuntime.jsx("div",{className:"mt-1 min-h-[20px]",children:x&&U?jsxRuntime.jsx(se,{size:d,className:"text-feedback-error-text",children:U}):x&&typeof c=="string"?jsxRuntime.jsx(se,{size:d,className:"text-feedback-error-text",children:c}):x&&typeof c=="function"&&b?jsxRuntime.jsx(se,{size:d,className:"text-feedback-error-text",children:c(b)}):u?jsxRuntime.jsx(he,{size:d,children:u}):null}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[u&&jsxRuntime.jsx(he,{size:d,className:"mt-1",children:u}),x&&U&&jsxRuntime.jsx(se,{size:d,className:"text-feedback-error-text mt-1",children:U}),x&&typeof c=="string"&&jsxRuntime.jsx(se,{size:d,className:"text-feedback-error-text mt-1",children:c}),x&&typeof c=="function"&&b&&jsxRuntime.jsx(se,{size:d,className:"text-feedback-error-text mt-1",children:c(b)})]}),!F&&jsxRuntime.jsx(qe,{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:T?`${T}px`:void 0},children:jsxRuntime.jsx(reactAriaComponents.ListBox,{className:`max-h-[300px] overflow-auto bg-background-input outline-none ${h}`,children:r?r.map(ue=>{let ve=ue.items.map(K=>jsxRuntime.jsx(Rt,{id:K.id,textValue:K.name,size:d,className:`flex cursor-default items-center gap-2 px-3 ${Vm[d]} text-text-body outline-none data-[focused]:bg-background-hover data-[selected]:bg-background-selected data-[selected]:font-medium data-[focus-visible]:ring-0`,children:v?v(K):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[K.name,jsxRuntime.jsx(k,{name:"X",className:"ml-auto h-4 w-4 text-text-muted opacity-0 data-[focused]:opacity-100 data-[selected]:opacity-100"})]})},K.id));if(C){let K=C(ue,ve);return De__namespace.default.isValidElement(K)&&K.type===reactAriaComponents.ListBoxSection?K:jsxRuntime.jsx(reactAriaComponents.ListBoxSection,{children:K},ue.name)}return jsxRuntime.jsxs(reactAriaComponents.ListBoxSection,{children:[jsxRuntime.jsx(reactAriaComponents.Header,{className:"px-3 py-1 text-sm font-bold text-text-muted",children:ue.name}),ve]},ue.name)}):ue=>jsxRuntime.jsx(Rt,{id:ue.id,textValue:ue.name,size:d,className:`flex cursor-default items-center gap-2 px-3 ${Vm[d]} text-text-body outline-none data-[focused]:bg-background-hover data-[selected]:bg-background-selected data-[selected]:font-medium data-[focus-visible]:ring-0`,children:v?v(ue):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[ue.name,jsxRuntime.jsx(k,{name:"X",className:"ml-auto h-4 w-4 text-text-muted opacity-0 data-[focused]:opacity-100 data-[selected]:opacity-100"})]})},ue.id)})})]})}),F&&jsxRuntime.jsx(Ze,{isOpen:$,onClose:()=>j(false),title:e??l??"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(tt,{children:[jsxRuntime.jsx("div",{className:"pointer-events-none absolute left-3 top-[45%] -translate-y-1/2 z-10 flex items-center",children:G?jsxRuntime.jsx(Lr,{size:16,color:"text-text-muted"}):jsxRuntime.jsx(k,{name:"MagnifyingGlass",className:"h-4 w-4 text-text-muted"})}),jsxRuntime.jsx("input",{ref:P,type:"text",value:R,onChange:ne=>Q(ne.target.value),placeholder:l,autoFocus:true,className:ft({isInvalid:false,isDisabled:false,isFocused:true,size:"md",className:"pl-10 pr-10"})}),R&&jsxRuntime.jsx(ga,{onClick:()=>{J(""),a?.(null);},size:"md"})]})}),jsxRuntime.jsx("div",{className:"flex-1 overflow-auto",children:jsxRuntime.jsx(reactAriaComponents.ListBox,{items:me,selectedKeys:o?[o]:[],selectionMode:"single",onSelectionChange:ne=>{let ue=Array.from(ne)[0];ue&&(O(ue),j(false));},className:"bg-background-input outline-none",children:ne=>jsxRuntime.jsx(Rt,{id:ne.id,textValue:ne.name,size:"md",className:"flex cursor-default items-center gap-2 px-4 py-3 text-text-body outline-none data-[focused]:bg-background-hover data-[selected]:bg-background-selected data-[selected]:font-medium data-[focus-visible]:ring-0",children:v?v(ne):ne.name},ne.id)})})]})})]})}function Fr({src:e,alt:t,firstName:r,lastName:o,fullName:n,onClick:a,size:i="md",shape:s="circle",variant:l="user",className:c,status:u,bordered:d=false,piiEntity:m}){let[p,g]=De.useState(false),f=De.useCallback(()=>g(true),[]);De.useEffect(()=>{g(false);},[e]);let b={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"},x={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"},v={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-muted border-border-muted",away:"bg-feedback-warning-background border-feedback-warning-border",busy:"bg-feedback-error-background border-feedback-error-border"},C={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",b[i],S,a&&"cursor-pointer hover:opacity-80",d&&"ring-2 ring-background-surface",c),L=(()=>{if(r||o){let T=r?.[0]||"",E=o?.[0]||"";return (T+E).toUpperCase()}if(n){let T=n.split(" "),E=T[0]?.[0]||"",R=T[T.length-1]?.[0]||"";return E===R?E.toUpperCase():(E+R).toUpperCase()}return ""})(),D=()=>{let T={xs:14,sm:16,md:20,lg:24,xl:32}[i];switch(l){case "team":return jsxRuntime.jsx(lucideReact.Users,{size:T});case "organization":return jsxRuntime.jsx(lucideReact.Building2,{size:T});default:return jsxRuntime.jsx(lucideReact.User,{size:T})}},A=T=>{if(m)return l==="organization"?T?"organization-logo":"initials":T?"avatar":"initials"},P=()=>e&&!p?jsxRuntime.jsx("img",{src:e,alt:t||n||"Avatar",className:"h-full w-full object-cover",onError:f,"data-pii-type":A(true),"data-pii-entity":m}):L?jsxRuntime.jsx("span",{className:"font-semibold","data-pii-type":A(false),"data-pii-entity":m,children:L}):D();return jsxRuntime.jsxs("div",{className:"relative inline-block",children:[jsxRuntime.jsx("div",{"data-avatar":true,className:tailwindMerge.twMerge(w,!e||p?C[l]:""),onClick:a,role:a?"button":void 0,tabIndex:a?0:void 0,children:P()}),u&&jsxRuntime.jsx("span",{className:tailwindMerge.twMerge("absolute border-2 border-background-surface",S,x[i],v[i],y[u]),"aria-label":`Status: ${u}`})]})}var dC={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-brand/10 text-action-brand",brand:"bg-action-brand/10 text-action-brand",secondary:"bg-action-default/10 text-action-default",neutral:"bg-background-muted text-text-muted",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",importing:"bg-state-importing text-state-importing-text",exporting:"bg-state-exporting text-state-exporting-text"},uC={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"},pC={pill:"rounded-full",rounded:"rounded-lg",square:"rounded-sm"},mC={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 We({children:e,variant:t="default",size:r="sm",shape:o="square",dot:n=false,dotPosition:a="left",dotPulse:i=false,className:s}){let l=n&&jsxRuntime.jsx("span",{className:tailwindMerge.twMerge("rounded-full bg-current opacity-75",mC[r],i&&"animate-pulse"),"aria-hidden":"true"});return jsxRuntime.jsxs("span",{className:tailwindMerge.twMerge("inline-flex items-center gap-1.5 font-medium",uC[r],pC[o],dC[t],s),children:[n&&a==="left"&&l,e,n&&a==="right"&&l]})}var Oe=({href:e,children:t,className:r="",external:o=false,title:n,variant:a="default",onClick:i,asButton:s=false,onPress:l,showArrow:c=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"}:{},y=`${`${u?"underline decoration-1 underline-offset-4 decoration-current":"hover:underline hover:decoration-1 hover:underline-offset-4 hover:decoration-current"} cursor-pointer`} ${{default:"text-action-primary hover:text-action-primary-hover visited:text-action-primary",brand:"text-action-brand hover:text-action-brand-hover visited:text-action-brand",muted:"text-text-muted hover:text-text-muted visited:text-text-muted",unstyled:""}[a]} ${r}`,C=jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[t,c&&jsxRuntime.jsxs("span",{children:["\xA0","\u2192"]})]});return s?jsxRuntime.jsx("button",{type:"button",className:y,onClick:l,title:n,...g,children:C}):d&&e?jsxRuntime.jsx(d,{href:e,className:y,title:n,onClick:i,...f,...g,children:C}):jsxRuntime.jsx("a",{href:e||"#",className:y,...f,...g,title:n,onClick:i,children:C})};var NC={info:{subtle:{container:"bg-feedback-info-background border-l-4 border-l-feedback-info-border",iconColor:"text-feedback-info-icon",titleColor:"text-text-heading",bodyColor:"text-text-body"},bold:{container:"bg-feedback-info-icon border-feedback-info-icon",iconColor:"text-white",titleColor:"text-white",bodyColor:"text-white/90"},icon:lucideReact.Info},success:{subtle:{container:"bg-feedback-success-background border-l-4 border-l-feedback-success-border",iconColor:"text-feedback-success-icon",titleColor:"text-text-heading",bodyColor:"text-text-body"},bold:{container:"bg-feedback-success-icon border-feedback-success-icon",iconColor:"text-white",titleColor:"text-white",bodyColor:"text-white/90"},icon:lucideReact.CheckCircle},warning:{subtle:{container:"bg-feedback-warning-background border-l-4 border-l-feedback-warning-border",iconColor:"text-feedback-warning-icon",titleColor:"text-text-heading",bodyColor:"text-text-body"},bold:{container:"bg-feedback-warning-icon border-feedback-warning-icon",iconColor:"text-white",titleColor:"text-white",bodyColor:"text-white/90"},icon:lucideReact.AlertCircle},error:{subtle:{container:"bg-feedback-error-background border-l-4 border-l-feedback-error-border",iconColor:"text-feedback-error-icon",titleColor:"text-text-heading",bodyColor:"text-text-body"},bold:{container:"bg-feedback-error-icon border-feedback-error-icon",iconColor:"text-white",titleColor:"text-white",bodyColor:"text-white/90"},icon:lucideReact.XCircle},discovery:{subtle:{container:"bg-brand-light border-l-4 border-l-brand-primary",iconColor:"text-brand-primary",titleColor:"text-text-heading",bodyColor:"text-text-body"},bold:{container:"bg-brand-primary border-brand-primary",iconColor:"text-white",titleColor:"text-white",bodyColor:"text-white/90"},icon:lucideReact.Lightbulb}};function qi({variant:e="info",appearance:t="subtle",title:r,children:o,dismissible:n=false,onDismiss:a,primaryAction:i,secondaryAction:s,icon:l,hideIcon:c=false,className:u,testId:d}){let m=NC[e],p=m[t],g=m.icon,f=!!(i||s),b=!!(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:[!c&&jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("flex-shrink-0",p.iconColor),"aria-hidden":"true",children:l||jsxRuntime.jsx(g,{className:"h-5 w-5"})}),jsxRuntime.jsxs("div",{className:"flex min-w-0 flex-1 flex-col gap-3",children:[b&&jsxRuntime.jsxs("div",{className:"flex-1",children:[r&&jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("text-sm font-semibold leading-5",p.titleColor),children:r}),o&&jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("text-sm leading-5",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(Oe,{asButton:true,onPress:i.onPress,variant:t==="bold"?"unstyled":"default",className:t==="bold"?"text-white hover:text-white/80":"",children:i.label}):jsxRuntime.jsx(_,{size:"sm",variant:"default",onPress:i.onPress,className:t==="bold"?"bg-white text-text-heading hover:bg-white/90":"",children:i.label})),s&&(s.asLink?jsxRuntime.jsx(Oe,{asButton:true,onPress:s.onPress,variant:t==="bold"?"unstyled":"default",className:t==="bold"?"text-white hover:text-white/80":"",children:s.label}):jsxRuntime.jsx(_,{size:"sm",variant:"secondary",onPress:s.onPress,className:t==="bold"?"border-white/30 text-white hover:bg-white/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-black/10",p.iconColor,Ie()),"aria-label":"Dismiss banner",children:jsxRuntime.jsx(lucideReact.X,{className:"h-4 w-4"})})]})}function Gm({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(qi,{...o,className:a})})})}function ro({value:e,children:t,className:r,size:o="sm",iconPosition:n="right"}){let[a,i]=De.useState(false),c=jsxRuntime.jsx(_,{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(k,{name:"Copy",size:o==="sm"?14:16})}),u=a?jsxRuntime.jsx(Pt,{content:"Copied!",children:c}):c;return jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("inline-flex items-center gap-0.5",r),children:[n==="left"&&u,t,n==="right"&&u]})}function Zi(e){let{children:t,maxWidth:r=600,className:o,...n}=e,{ref:a,width:i}=bn(),[s,l]=De__namespace.default.useState(false),[c,u]=De__namespace.default.useState(false),d=De__namespace.default.useRef(false),m=De__namespace.default.useMemo(()=>t&&!e.items&&typeof t!="function"?De__namespace.default.Children.toArray(t):null,[t,e.items]);if(De__namespace.default.useEffect(()=>{m&&m.length>=4&&i>0&&!d.current?(d.current=true,l(i>r),u(true)):(!m||m&&m.length<4)&&u(true);let p=setTimeout(()=>{c||u(true);},100);return ()=>clearTimeout(p)},[i,r,m,c]),m&&s&&m.length>=4){let p=m[0],g=m.slice(1,-2),f=m.slice(-2),b=g.map(x=>{if(De__namespace.default.isValidElement(x)){let v=x.props;if(typeof v.children=="string")return {label:v.children,href:v.href}}return {label:"..."}});return jsxRuntime.jsxs(reactAriaComponents.Breadcrumbs,{...n,ref:a,className:tailwindMerge.twMerge("flex gap-2",c?"opacity-100":"opacity-0",o),children:[p,jsxRuntime.jsx(DC,{items:b}),f]})}return jsxRuntime.jsx(reactAriaComponents.Breadcrumbs,{...n,ref:a,className:tailwindMerge.twMerge("flex gap-2",c?"opacity-100":"opacity-0",o),children:t})}function DC({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(Nn,{items:t,align:"left",size:"sm",children:jsxRuntime.jsx(_,{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-muted"})]})})}function Xi(e){let{className:t,children:r,href:o,copyable:n,copyValue:a,...i}=e;return jsxRuntime.jsx(reactAriaComponents.Breadcrumb,{className:xe(t,"flex items-center gap-2"),...i,children:s=>{let l=s.isCurrent,c=typeof r=="function"?r(s):r;return jsxRuntime.jsx(jsxRuntime.Fragment,{children:l?n?jsxRuntime.jsx(ro,{value:a||(typeof c=="string"?c:void 0),size:"sm",iconPosition:"right",children:jsxRuntime.jsx("span",{className:"max-w-[200px] truncate font-semibold text-text-body sm:max-w-none",children:c})}):jsxRuntime.jsx("span",{className:"max-w-[200px] truncate font-semibold text-text-body sm:max-w-none",children:c}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(Oe,{variant:"muted",href:o,className:"max-w-[150px] truncate sm:max-w-[300px] md:max-w-none",children:c}),jsxRuntime.jsx(lucideReact.ChevronRight,{className:"h-4 w-4 shrink-0 text-text-muted"})]})})}})}function OC({isSelected:e,isDisabled:t}){let r=[Ie,"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-onPrimary invalid:bg-feedback-error-border forced-colors:bg-[Highlight] forced-colors:invalid:bg-[Mark] forced-colors:text-[HighlightText]"):r.push("text-text-body hover:bg-background-hover pressed:bg-background-selected"),r.join(" ")}function Tn({errorMessage:e,...t}){return jsxRuntime.jsxs(reactAriaComponents.Calendar,{...t,children:[jsxRuntime.jsx(ji,{}),jsxRuntime.jsxs(reactAriaComponents.CalendarGrid,{className:"border-separate [border-spacing:0] [&_td]:p-0 [&_td]:!border-0",children:[jsxRuntime.jsx(Qi,{}),jsxRuntime.jsx(reactAriaComponents.CalendarGridBody,{children:r=>jsxRuntime.jsx(reactAriaComponents.CalendarCell,{date:r,className:({isSelected:o,isDisabled:n})=>`${OC({isSelected:o,isDisabled:n})} border-0`})})]}),e&&jsxRuntime.jsx(reactAriaComponents.Text,{slot:"errorMessage",className:"text-sm text-red-600",children:e})]})}function ji(){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(_,{variant:"icon",slot:"previous",className:"pl-0",children:e==="rtl"?jsxRuntime.jsx(k,{name:"CaretRight","aria-hidden":true,size:t}):jsxRuntime.jsx(k,{name:"CaretLeft","aria-hidden":true,size:t})}),jsxRuntime.jsx(reactAriaComponents.Heading,{className:"text-md mx-2 flex-1 text-center font-semibold text-zinc-900 dark:text-zinc-200"}),jsxRuntime.jsx(_,{variant:"icon",slot:"next",className:"pr-0",children:e==="rtl"?jsxRuntime.jsx(k,{name:"CaretLeft","aria-hidden":true,size:t}):jsxRuntime.jsx(k,{name:"CaretRight","aria-hidden":true,size:t})})]})}function Qi(){return jsxRuntime.jsx(reactAriaComponents.CalendarGridHeader,{children:e=>jsxRuntime.jsx(reactAriaComponents.CalendarHeaderCell,{className:"text-xs font-semibold text-text-caption",children:e})})}var qm=De__namespace.createContext(null);function oo(){let e=De__namespace.useContext(qm);if(!e)throw new Error("Carousel components must be used within a CarouselRoot");return e}function Zm({page:e,defaultPage:t=0,onPageChange:r,orientation:o="horizontal",loop:n=false,autoplay:a=false,autoplayDelay:i=4e3,allowMouseDrag:s=false,spacing:l="1rem",slidesPerView:c=1,slidesPerMove:u=1,className:d,children:m,...p}){let g=e!==void 0,[f,b]=De__namespace.useState(t),x=g?e:f,v=De__namespace.useRef(null),[y,C]=De__namespace.useState(0),[S,w]=De__namespace.useState(typeof a=="boolean"?a:!!a),[N,L]=De__namespace.useState(false),D=De__namespace.useRef(null),A=De__namespace.useRef(null),P=typeof a=="object"&&a!==null&&a.delay?a.delay:i;De__namespace.useEffect(()=>{if(v.current){let h=Math.max(1,Math.floor(Number(c)||1)),z=v.current.children;if(z.length===0){C(0);return}let B=Math.ceil(z.length/h);C(B);}},[m,c]);let T=De__namespace.useRef(-1);De__namespace.useEffect(()=>{if(x!==T.current&&v.current){let h=Array.from(v.current.children);if(h.length===0)return;let z=x*c,B=Math.min(z,h.length-1),G=h[B];G&&typeof G.scrollIntoView=="function"&&(G.scrollIntoView({behavior:"smooth",block:o==="vertical"?"start":"nearest",inline:o==="horizontal"?"start":"nearest"}),T.current=x);}},[x,c,o]);let E=De__namespace.useCallback(h=>{let z=h;n?z<0?z=y-1:z>=y&&(z=0):z=Math.max(0,Math.min(h,y-1)),g||b(z),r?.(z);},[g,n,r,y]),R=De__namespace.useCallback(()=>{E(x+u);},[x,E,u]),J=De__namespace.useCallback(()=>{E(x-u);},[x,E,u]),X=De__namespace.useRef(R);De__namespace.useEffect(()=>{X.current=R;},[R]);let q=y>0&&(n||x<y-1),$=y>0&&(n||x>0),j=De__namespace.useCallback(()=>{w(h=>!h);},[]);De__namespace.useEffect(()=>{if(S&&y>1)return D.current=setInterval(()=>{X.current();},P),()=>{D.current&&(clearInterval(D.current),D.current=null);}},[S,y,P]);let M=De__namespace.useCallback(()=>{D.current&&(clearInterval(D.current),D.current=null);},[]),W=De__namespace.useCallback(()=>{S&&y>1&&(D.current=setInterval(()=>{X.current();},P));},[S,y,P]),U=De__namespace.useCallback(h=>{if(!s)return;L(true);let z="touches"in h&&h.touches&&h.touches.length>0?h.touches[0].clientX:"clientX"in h?h.clientX:0,B="touches"in h&&h.touches&&h.touches.length>0?h.touches[0].clientY:"clientY"in h?h.clientY:0;A.current={x:z,y:B};},[s]),I=De__namespace.useCallback(h=>{if(!N||!A.current)return;let z="touches"in h&&h.touches&&h.touches.length>0?h.touches[0].clientX:"clientX"in h?h.clientX:0,B="touches"in h&&h.touches&&h.touches.length>0?h.touches[0].clientY:"clientY"in h?h.clientY:0,G=z-A.current.x,oe=B-A.current.y,me=50;o==="horizontal"&&Math.abs(G)>me?(G>0?J():R(),L(false),A.current=null):o==="vertical"&&Math.abs(oe)>me&&(oe>0?J():R(),L(false),A.current=null);},[N,o,R,J]),Y=De__namespace.useCallback(()=>{L(false),A.current=null;},[]),F={currentPage:x,totalPages:y,orientation:o,loop:n,spacing:l,slidesPerView:c,goToPage:E,goToNext:R,goToPrev:J,canGoNext:q,canGoPrev:$,isAutoplayActive:S,toggleAutoplay:j,itemsRef:v,isDragging:N,allowMouseDrag:s,handleDragStart:U,handleDragMove:I,handleDragEnd:Y};return jsxRuntime.jsx(qm.Provider,{value:F,children:jsxRuntime.jsx("div",{...p,className:tailwindMerge.twMerge("relative w-full",o==="vertical"?"h-full":"",d),onMouseEnter:M,onMouseLeave:W,children:m})})}function Xm({className:e,children:t,...r}){let{itemsRef:o,orientation:n,spacing:a,isDragging:i,allowMouseDrag:s,handleDragStart:l,handleDragMove:c,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:l,onMouseMove:c,onMouseUp:u,onMouseLeave:u,onTouchStart:l,onTouchMove:c,onTouchEnd:u,children:t})}function jm({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 Qm({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 $m({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-body 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(k,{name:"CaretLeft",size:"sm"})})}function _m({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-body 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(k,{name:"CaretRight",size:"sm"})})}function ad({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 ef({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(ad,{index:n},n))})}function tf({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-body 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(k,{name:o?"Pause":"Play",size:"sm"})})}function rf({className:e,...t}){let{currentPage:r,totalPages:o}=oo();return jsxRuntime.jsxs("div",{...t,className:tailwindMerge.twMerge("text-sm text-text-muted tabular-nums",e),"aria-live":"polite","aria-atomic":"true",children:[r+1," / ",o]})}function id(e){return jsxRuntime.jsxs(reactAriaComponents.CheckboxGroup,{...e,className:xe(e.className,"flex flex-col gap-2"),children:[jsxRuntime.jsx(Re,{children:e.label}),e.children,e.description&&jsxRuntime.jsx(he,{children:e.description}),jsxRuntime.jsx(se,{children:typeof e.errorMessage=="function"?void 0:e.errorMessage})]})}function JC({isDisabled:e}){return `flex gap-2 items-center group text-sm transition ${e?"text-text-disabled":"text-text-caption"}`}function qC({isSelected:e,isInvalid:t,isDisabled:r,isIndeterminate:o,variant:n="default"}){let a="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",i=n==="brand"?"focus:ring-action-brand":"focus:ring-action-default",s="";if(r)s="border-border-muted bg-background-muted";else if(t)s="border-feedback-error-border bg-feedback-error-background";else if(e||o){let l=n==="brand"?"action-brand":"action-default";s=`bg-${l} border-${l} hover:bg-${l}-hover hover:border-${l}-hover`;}else s="bg-background-input border-border-input hover:border-border-focus";return `${a} ${i} ${s}`}var of="w-4 h-4 text-text-onPrimary group-disabled:text-text-disabled";function Bo(e){let{children:t,variant:r="default",...o}=e;return jsxRuntime.jsx(reactAriaComponents.Checkbox,{...o,className:reactAriaComponents.composeRenderProps(e.className,(n,a)=>`${JC(a)} ${n||""}`),children:n=>{let{isSelected:a,isIndeterminate:i,...s}=n,l=jsxRuntime.jsx("div",{className:qC({isSelected:a,isIndeterminate:i,variant:r,...s}),children:i?jsxRuntime.jsx(lucideReact.Minus,{"aria-hidden":true,className:of}):a?jsxRuntime.jsx(lucideReact.Check,{"aria-hidden":true,className:of}):null});return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[l,typeof t=="function"?t(n):t]})}})}var jC={default:"bg-background-muted text-action-default border border-border-muted hover:bg-background-hover",brand:"bg-action-brand/10 text-action-brand border border-action-brand/20 hover:bg-action-brand/15",secondary:"bg-background-input text-text-body border border-border-input hover:bg-background-hover",info:"bg-feedback-info-background text-feedback-info-text border border-feedback-info-border hover:bg-feedback-info-background/80"},QC={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"},$C="opacity-75 cursor-not-allowed pointer-events-none";function af(e){let{variant:t,size:r,isDisabled:o,isClickable:n,className:a}=e,i=r==="xs"?"text-xs":Ae[r].text;return tailwindMerge.twMerge("inline-flex items-center justify-center rounded-full font-medium transition-colors","whitespace-nowrap select-none",QC[r],i,jC[t],n&&!o&&"cursor-pointer",o&&$C,a)}function Cr({children:e,onRemove:t,size:r="md",variant:o="default",isRemovable:n=true,isDisabled:a=false,className:i,onClick:s}){let l=!!s&&!a,c=n&&t&&!a,u=f=>{f.stopPropagation(),f.preventDefault(),t&&!a&&t();},d=()=>{s&&!a&&s();},m=r==="xs"?10:r==="sm"?12:r==="md"?14:16,g=jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("span",{className:"truncate",children:e}),c?l?jsxRuntime.jsx("span",{onClick:u,onKeyDown:f=>{(f.key==="Enter"||f.key===" ")&&(f.preventDefault(),u(f));},role:"button",tabIndex:0,className:"flex-shrink-0 rounded-full p-0.5 hover:bg-black/10 transition-colors cursor-pointer","aria-label":"Remove",children:jsxRuntime.jsx(k,{name:"X",size:m,className:"text-current opacity-70 hover:opacity-100"})}):jsxRuntime.jsx("button",{type:"button",onClick:u,className:"flex-shrink-0 rounded-full p-0.5 hover:bg-black/10 transition-colors cursor-pointer","aria-label":"Remove",tabIndex:-1,children:jsxRuntime.jsx(k,{name:"X",size:m,className:"text-current opacity-70 hover:opacity-100"})}):null]});return l?jsxRuntime.jsx("button",{type:"button",onClick:d,className:af({variant:o,size:r,isDisabled:a,isClickable:l,className:i}),disabled:a,children:g}):jsxRuntime.jsx("span",{className:af({variant:o,size:r,isDisabled:a,isClickable:l,className:i}),children:g})}function cf({label:e,description:t,errorMessage:r,size:o="md",tooltip:n,isRequired:a=false,isDisabled:i=false,isInvalid:s=false,validationResult:l,placeholder:c="Add items...",selectedItems:u=[],onItemsChange:d,staticItems:m,fetchSuggestions:p,chipVariant:g="default",showErrors:f=true,className:b}){let[x,v]=De.useState(""),[y,C]=De.useState([]),[S,w]=De.useState(false),[N,L]=De.useState(false),[D,A]=De.useState(-1),P=Jr(x,300),T=De.useRef(null),E=De.useRef(null),{isFocused:R,handleFocus:J,handleBlur:X}=_t(),q=De.useId(),$=De.useCallback(F=>{if(!d||!F.trim())return;let h=F.trim();if(u.includes(h)){v(""),L(false),C([]),A(-1);return}d([...u,h]),v(""),L(false),C([]),A(-1),T.current?.focus();},[u,d]),j=De.useCallback(F=>{d&&d(u.filter(h=>h!==F));},[u,d]);De.useEffect(()=>{if(!p)return;let F=true;return (async()=>{let z=P.trim();if(!z){F&&(w(false),C([]),L(false));return}w(true);try{let B=await p(z);if(!F)return;C(B),L(!0);}catch(B){if(!F)return;console.error("Error fetching suggestions:",B),C([]),L(false);}finally{F&&w(false);}})(),()=>{F=false;}},[P,p]),De.useEffect(()=>{if(p||!m)return;if(!P.trim()){C([]),L(false);return}let F=m.filter(h=>h.name.toLowerCase().includes(P.toLowerCase())).map(h=>h.id);C(F),L(F.length>0||P.trim().length>0);},[P,m,p]);let M=De.useMemo(()=>{let F=y.filter(h=>!u.includes(h));return x.trim()&&!F.includes(x.trim())&&!u.includes(x.trim())?[...F,`Create tag: "${x.trim()}"`]:F},[y,x,u]),W=De.useCallback(F=>{v(F.target.value),A(-1),F.target.value&&L(true);},[]),U=De.useCallback(F=>{i||(F.startsWith("Create tag:")?$(x):$(F));},[$,x,i]),I=De.useCallback(F=>{if(!i)switch(F.key){case "Enter":case ",":if(F.preventDefault(),D>=0&&D<M.length){let h=M[D];h.startsWith("Create tag:")?$(x):$(h);}else x.trim()&&$(x.trim());break;case "Backspace":!x&&u.length>0&&(F.preventDefault(),j(u[u.length-1]));break;case "ArrowDown":F.preventDefault(),N&&A(h=>h<M.length-1?h+1:h);break;case "ArrowUp":F.preventDefault(),N&&A(h=>h>0?h-1:-1);break;case "Escape":L(false),A(-1);break}},[i,x,u,M,D,N,$,j]);De.useEffect(()=>{let F=h=>{E.current&&h.target instanceof Node&&!E.current.contains(h.target)&&L(false);};return document.addEventListener("mousedown",F),()=>document.removeEventListener("mousedown",F)},[]);let Y=()=>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]",to({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:E,className:tailwindMerge.twMerge("relative flex flex-col gap-1",b),children:[e&&jsxRuntime.jsx(Re,{size:o,tooltip:n,isRequired:a,children:e}),jsxRuntime.jsx(tt,{children:jsxRuntime.jsxs("div",{className:Y(),onClick:()=>!i&&T.current?.focus(),children:[u.map(F=>jsxRuntime.jsx(Cr,{variant:g,size:"xs",onRemove:()=>j(F),isDisabled:i,className:"shrink-0 max-h-full",children:F},F)),jsxRuntime.jsx("input",{ref:T,type:"text",role:"combobox","aria-expanded":N,"aria-haspopup":"listbox","aria-controls":q,"aria-autocomplete":"list",value:x,onChange:W,onKeyDown:I,onFocus:F=>J(F),onBlur:F=>X(F),placeholder:u.length===0?c:"",disabled:i,className:"flex-1 min-w-[120px] h-full !border-0 !outline-none !ring-0 bg-transparent text-text-body text-sm placeholder:text-text-placeholder 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&&(x||M.length>0)&&jsxRuntime.jsx("div",{id:q,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-muted",children:"Loading..."}):M.length>0?M.map((F,h)=>jsxRuntime.jsx("div",{role:"option","aria-selected":h===D,className:tailwindMerge.twMerge("cursor-pointer px-3 py-2 text-sm transition-colors","hover:bg-background-hover",h===D&&"bg-background-selected",F.startsWith("Create tag:")&&"italic text-text-muted"),onClick:()=>U(F),children:F},F)):x&&jsxRuntime.jsx("div",{className:"px-3 py-2 text-sm text-text-muted",children:"No suggestions found"})}),t&&jsxRuntime.jsx(he,{size:o,className:"mt-1",children:t}),f&&typeof r=="string"&&jsxRuntime.jsx(se,{size:o,className:"text-feedback-error-text mt-1",children:r}),f&&typeof r=="function"&&l&&jsxRuntime.jsx(se,{size:o,className:"text-feedback-error-text mt-1",children:r(l)})]})}var l1={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')},c1={github:()=>import('ace-builds/src-noconflict/theme-github'),github_dark:()=>import('ace-builds/src-noconflict/theme-github_dark')},d1={"ext-language-tools":()=>import('ace-builds/src-noconflict/ext-language_tools')},va=new Set;async function ld(e,t){va.has(e)||(await t(),va.add(e));}async function u1(e,t,r){await Promise.all([ld(`language:${e}`,l1[e]),ld(`theme:${t}`,c1[t]),r?ld("extension:language-tools",d1["ext-language-tools"]):void 0]);}function uf(e,t,r){let o=va.has(`language:${e}`)&&va.has(`theme:${t}`);return r?o&&va.has("extension:language-tools"):o}function pf({value:e,readOnly:t=false,onChange:r,language:o="json",theme:n="github_dark",height:a,width:i="100%",className:s,lineHeight:l=19,minLines:c=3,maxLines:u=50,showLineNumbers:d=true,showGutter:m=true,fontSize:p=14,wrapEnabled:g=false}){let f=De.useRef(null),[b,x]=De.useState(()=>uf(o,n,!t)),v=De.useMemo(()=>{if(a)return a;let y=(e.match(/\n/g)||[]).length+1;return `${Math.max(c,Math.min(y,u))*l+10}px`},[e,a,l,c,u]);return De.useEffect(()=>{let y=false,C=!t;return uf(o,n,C)?(x(true),()=>{y=true;}):(x(false),u1(o,n,C).then(()=>{y||x(true);}).catch(S=>{y||x(true),console.error("Failed to load Ace editor resources",S);}),()=>{y=true;})},[o,t,n]),De.useEffect(()=>{b&&f.current?.editor&&f.current.editor.resize();},[v,b]),jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("overflow-hidden rounded-md border border-border-input",s),style:{width:i,height:v},children:b?jsxRuntime.jsx(i1__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 ff=De__namespace.createContext({variant:"contained",density:"comfortable",showDividers:true}),gf=De__namespace.createContext(null),b1={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"},mf={true:"divide-y divide-border-default",false:"gap-3"},x1={comfortable:"px-5 py-3",compact:"px-4 py-2.5"},h1={comfortable:"px-5 pt-0",compact:"px-4 pt-0"},y1={comfortable:"h-5 w-5",compact:"h-4 w-4"};function pd(){return De__namespace.useContext(ff)}function v1(e){let t=De__namespace.useContext(gf);if(!t)throw new Error(`${e} must be used within a <CollapseItem>`);return t}function C1({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 S1({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-body",l=t&&!e?"bg-background-hover":"",c=x1[r];return tailwindMerge.twMerge(i,Ie(),c,s,l,o==="plain"&&n?"px-0":"",a)}function N1({density:e,showDividers:t,className:r}){let o="text-text-body",n=h1[e];return tailwindMerge.twMerge(o,n,t?"":"rounded-b-lg",r)}function Pn({variant:e="contained",density:t="comfortable",showDividers:r=true,className:o,...n}){let a=De__namespace.useMemo(()=>({variant:e,density:t,showDividers:r}),[e,t,r]),i=tailwindMerge.twMerge("flex w-full flex-col",b1[e],r?mf.true:mf.false,e==="plain"&&r?"border-y border-border-default/60":"");return jsxRuntime.jsx(ff.Provider,{value:a,children:jsxRuntime.jsx(reactAriaComponents.DisclosureGroup,{...n,className:xe(o,i)})})}function ao({className:e,children:t,...r}){let{variant:o,showDividers:n}=pd();return jsxRuntime.jsx(reactAriaComponents.Disclosure,{...r,className:reactAriaComponents.composeRenderProps(e,a=>C1({variant:o,showDividers:n,className:a})),children:a=>jsxRuntime.jsx(gf.Provider,{value:a,children:t})})}ao.displayName="CollapseItem";function io({title:e,description:t,startContent:r,endContent:o,indicator:n,indicatorPosition:a="end",showIndicator:i=true,keepIndicatorSpace:s=false,children:l,className:c,...u}){let d=v1("CollapseHeader"),{density:m,variant:p,showDividers:g}=pd(),f=y1[m];return jsxRuntime.jsx(reactAriaComponents.Button,{...u,slot:"trigger","data-expanded":d.isExpanded?"true":void 0,className:reactAriaComponents.composeRenderProps(c,(b,x)=>S1({isDisabled:x.isDisabled??false,isPressed:x.isPressed??false,density:m,variant:p,showDividers:g,className:b})),children:b=>{let x=b.isDisabled??false,v=i?typeof n=="function"?n({isExpanded:d.isExpanded,isDisabled:x}):n??jsxRuntime.jsx(k,{name:"CaretDown",size:m==="compact"?"sm":"md",weight:"bold","aria-hidden":"true",className:tailwindMerge.twMerge("text-text-muted transition-transform duration-200",d.isExpanded?"rotate-180":"rotate-0")}):null,y=v?jsxRuntime.jsx("span",{className:tailwindMerge.twMerge("flex flex-shrink-0 items-center justify-center text-text-muted",f),"aria-hidden":"true",children:v}):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-muted",children:r}),jsxRuntime.jsxs("div",{className:"flex min-w-0 flex-1 items-start gap-3",children:[l??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-heading",children:e}),t&&jsxRuntime.jsx("span",{className:"text-sm text-text-muted",children:t})]}),o&&jsxRuntime.jsx("div",{className:"flex flex-shrink-0 items-center text-sm text-text-muted",children:o})]}),a==="end"&&y]})}})}io.displayName="CollapseHeader";function so({className:e,children:t,...r}){let{density:o,showDividers:n}=pd();return jsxRuntime.jsx(reactAriaComponents.DisclosurePanel,{...r,className:reactAriaComponents.composeRenderProps(e,a=>N1({density:o,showDividers:n,className:a})),children:t})}so.displayName="CollapseContent";function Rn(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 fd(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 P1({label:e,description:t,errorMessage:r,size:o="md",tooltip:n,isRequired:a,transparent:i,className:s,validationResult:l,value:c,defaultValue:u,onChange:d,placeholder:m="#000000",showColorSwatch:p=true,reserveErrorSpace:g=true,...f}){let[b,x]=De.useState(u||""),[v,y]=De.useState(c||u||""),[C,S]=De.useState(false),[w,N]=De.useState(null),{isFocused:L,handleFocus:D,handleBlur:A}=_t(),P=c!==void 0?c:b;De.useEffect(()=>{c!==void 0&&y(c);},[c]);let T=P?!Rn(P):false,E=De.useCallback(X=>{if(y(X),Rn(X)){let q=fd(X);d?d(q):x(q);}else X===""&&(d?d(""):x(""));},[d]),R=De.useCallback(X=>{let q=fd(X);y(q),d?d(q):x(q);},[d]),J=De.useCallback(X=>{if(Rn(v)){let q=fd(v);y(q),d&&q!==P?d(q):!d&&q!==b&&x(q);}A(X,f.onBlur);},[v,P,b,d,A,f.onBlur]);return jsxRuntime.jsx(reactAriaComponents.TextField,{...f,isRequired:a,className:xe(s,"group flex flex-col"),children:({isDisabled:X})=>jsxRuntime.jsxs("div",{className:"flex flex-col",children:[e&&jsxRuntime.jsx(Re,{size:o,tooltip:n,isRequired:a,children:e}),jsxRuntime.jsx(tt,{children:jsxRuntime.jsxs("div",{className:"flex gap-2",children:[jsxRuntime.jsxs("div",{className:"flex-1 relative",children:[jsxRuntime.jsx(Gi,{size:o,disabled:X,type:"text",value:v,placeholder:m,onFocus:q=>D(q,f.onFocus),onBlur:J,onChange:q=>E(q.target.value),className:tailwindMerge.twMerge(ft({isInvalid:T,isDisabled:X,isFocused:L,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:Ae[o].height},children:jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("w-6 h-6 rounded border shadow-sm",Rn(P)?"border-border-default":"border-border-default bg-background-muted"),style:Rn(P)?{backgroundColor:P}:void 0,"aria-hidden":"true",children:!Rn(P)&&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(_,{variant:"secondary",size:o,icon:"Palette",onPress:()=>S(!C),isDisabled:X,className:"flex-shrink-0",children:"Pick"})})]})}),g?jsxRuntime.jsx("div",{className:"mt-1 min-h-[20px]",children:typeof r=="string"?jsxRuntime.jsx(se,{size:o,children:r}):typeof r=="function"&&l?jsxRuntime.jsx(se,{size:o,children:r(l)}):t?jsxRuntime.jsx(he,{size:o,children:t}):null}):jsxRuntime.jsx(jsxRuntime.Fragment,{children:typeof r=="string"?jsxRuntime.jsx(se,{size:o,className:"mt-1",children:r}):typeof r=="function"&&l?jsxRuntime.jsx(se,{size:o,className:"mt-1",children:r(l)}):t?jsxRuntime.jsx(he,{size:o,className:"mt-1",children:t}):null}),C&&w&&jsxRuntime.jsx(qe,{triggerRef:{current:w},isOpen:C,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:P||"#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:P||"#000000"}}),jsxRuntime.jsx("div",{className:"flex-1 text-text-body text-[length:var(--control-text-sm)] font-mono",children:P||"#000000"})]})]})})]})})}function hf({isOpen:e,onClose:t,onConfirm:r,title:o,message:n,confirmLabel:a="Confirm",cancelLabel:i="Cancel",confirmVariant:s,isDestructive:l=false,isLoading:c=false,maxWidth:u="500px",minWidth:d="400px"}){return jsxRuntime.jsx(Zt,{isOpen:e,onClose:t,title:o,maxWidth:u,minWidth:d,primaryAction:{label:a,onPress:()=>{r();},variant:s??(l?"destructive":"primary"),isLoading:c},secondaryAction:{label:i,onPress:t,variant:"secondary",isDisabled:c},children:jsxRuntime.jsx("div",{className:"text-text-body",children:n})})}function yf({isConnected:e,connectedAt:t,disconnectedAt:r,showTimestamp:o=false,isLoading:n,size:a="sm",shape:i="pill",...s}){if(n)return jsxRuntime.jsx(V,{className:"inline-flex h-6 w-24"});let l=e?"Connected":"Disconnected",c=e?"success":"neutral",u=null;if(o){if(e&&t)u=ui(t);else if(!e&&r){let d=ui(r);u=d?`Offline ${d}`:null;}}return jsxRuntime.jsxs("div",{className:"inline-flex flex-col gap-1",children:[jsxRuntime.jsx(We,{variant:c,size:a,shape:i,dot:e,dotPulse:e,...s,children:l}),u&&jsxRuntime.jsx("span",{className:"text-xs text-text-muted",children:u})]})}function vf({firstName:e,lastName:t,email:r,phone:o,avatarUrl:n,href:a,LinkComponent:i,variant:s="outlined",layout:l="horizontal",showEmail:c=true,showPhone:u=false,isLoading:d=false,className:m,contentClassName:p,piiEntity:g}){let f=`${e} ${t}`.trim(),b=({children:v,className:y})=>a?i?jsxRuntime.jsx(i,{href:a,className:y,children:v}):jsxRuntime.jsx(Oe,{href:a,variant:"unstyled",className:tailwindMerge.twMerge("hover:underline",y),asButton:false,children:v}):jsxRuntime.jsx("span",{className:y,children:v}),x=l==="vertical";return d?jsxRuntime.jsx(Le,{variant:s,className:tailwindMerge.twMerge("flex flex-col",m),children:jsxRuntime.jsx(Le.Content,{className:"flex items-center flex-1",children:jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("w-full",x?"flex flex-col items-center gap-4":"flex items-center gap-4"),children:[jsxRuntime.jsx(V,{width:56,height:56,className:"rounded flex-shrink-0"}),jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge(x?"w-full text-center":"flex-1","space-y-2"),children:[jsxRuntime.jsx(V,{width:"70%",height:20,className:tailwindMerge.twMerge(x&&"mx-auto")}),jsxRuntime.jsx(V,{width:"100%",height:16,className:tailwindMerge.twMerge(x&&"mx-auto")})]})]})})}):jsxRuntime.jsx(Le,{variant:s,className:tailwindMerge.twMerge("group/card flex flex-col",m),children:jsxRuntime.jsx(Le.Content,{className:tailwindMerge.twMerge("flex items-center flex-1",a&&"cursor-pointer",p),children:jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("relative w-full",x?"flex flex-col items-center gap-4 text-center":"flex items-center gap-4"),children:[jsxRuntime.jsx(Fr,{firstName:e,lastName:t,src:n,size:"xl",variant:"user",shape:"square",className:"flex-shrink-0",piiEntity:g}),jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge(x?"w-full":"flex-1 min-w-0"),children:[a&&jsxRuntime.jsx(b,{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-heading 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",x&&"flex flex-col items-center"),children:[c&&r&&jsxRuntime.jsxs("div",{className:"flex items-center gap-2.5 text-text-body",children:[jsxRuntime.jsx(k,{name:"Envelope",size:16,className:"text-text-muted flex-shrink-0"}),jsxRuntime.jsx(Oe,{href:`mailto:${r}`,variant:"unstyled",className:tailwindMerge.twMerge("text-sm leading-relaxed text-text-body relative z-20",x?"":"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-body",children:[jsxRuntime.jsx(k,{name:"Phone",size:16,className:"text-text-muted flex-shrink-0"}),jsxRuntime.jsx(Oe,{href:`tel:${o}`,variant:"unstyled",className:tailwindMerge.twMerge("text-sm leading-relaxed text-text-body relative z-20",x?"":"truncate"),"data-pii-type":g?"phone":void 0,"data-pii-entity":g,children:xn(o)})]})]})]})]})})})}function es({firstName:e,lastName:t,email:r,avatarUrl:o,layout:n="stacked",size:a="md",href:i,LinkComponent:s,linkVariant:l="unstyled",emphasis:c="normal",showEmail:u=false,badge:d,avatarShape:m,isLoading:p=false,className:g,piiEntity:f}){let b=m??(n==="inline"?"circle":"square"),v={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-body",high:"font-semibold text-text-body",normal:"text-text-body",low:"text-text-muted"}[c],w=({children:N,className:L})=>i?s?jsxRuntime.jsx(s,{href:i,className:L,children:N}):jsxRuntime.jsx(Oe,{href:i,variant:l,className:tailwindMerge.twMerge("hover:underline",L),asButton:false,children:N}):jsxRuntime.jsx("span",{className:L,children:N});return p?n==="inline"?jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("flex items-center",v.gap,g),children:[jsxRuntime.jsx(V,{width:v.skeletonAvatar,height:v.skeletonAvatar,className:"flex-shrink-0 rounded-full"}),jsxRuntime.jsx(V,{width:v.skeletonText,height:v.skeletonAvatar*.5})]}):jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("flex items-center",v.gap,g),children:[jsxRuntime.jsx(V,{width:v.skeletonAvatar,height:v.skeletonAvatar,className:"flex-shrink-0 rounded-full"}),jsxRuntime.jsxs("div",{className:"flex flex-col gap-1",children:[jsxRuntime.jsx(V,{width:v.skeletonText,height:16}),u&&jsxRuntime.jsx(V,{width:v.skeletonSecondary,height:12})]})]}):n==="inline"?jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("flex items-center",v.gap,g),children:[jsxRuntime.jsxs(w,{className:tailwindMerge.twMerge("flex items-center",v.gap),children:[jsxRuntime.jsx(Fr,{firstName:e,lastName:t,src:o,size:v.avatarSize,variant:"user",shape:b,className:"flex-shrink-0",piiEntity:f}),jsxRuntime.jsx("span",{className:tailwindMerge.twMerge("leading-normal truncate hover:text-text-body",S,v.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",v.gap,g),children:[jsxRuntime.jsx(Fr,{firstName:e,lastName:t,src:o,size:v.avatarSize,variant:"user",shape:b,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-body",S,v.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-caption leading-normal truncate",v.secondaryTextSize),"data-pii-type":f?"email":void 0,"data-pii-entity":f,children:r})]})]})}var Cf={duration:.5,ease:"easeInOut"},Dn=De.createContext(null),zr=()=>{let e=De.useContext(Dn);if(!e)throw new Error("useChartContext must be used within a ChartContextProvider");return e};var Sa=({data:e,color:t="var(--color-viz-default)"})=>{let r=De.useId(),o=De.useId(),{xScale:n,yScale:a,animationSettings:i}=zr(),s=n.range(),l=a.range();return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsxs("defs",{children:[jsxRuntime.jsxs("linearGradient",{id:r,x1:"0%",y1:"0%",x2:"0%",y2:"100%",children:[jsxRuntime.jsx("stop",{offset:"50%",stopColor:t,stopOpacity:.1}),jsxRuntime.jsx("stop",{offset:"100%",stopColor:t,stopOpacity:0})]}),jsxRuntime.jsx("clipPath",{id:o,children:jsxRuntime.jsx("rect",{x:s[0],y:l[1],width:s[1]-s[0],height:l[0]-l[1]})})]}),jsxRuntime.jsx("g",{clipPath:`url(#${o})`,children:jsxRuntime.jsxs(framerMotion.motion.g,{initial:{scaleY:0},animate:{scaleY:1},transition:{duration:i.duration,ease:i.ease},style:{transformOrigin:`0 ${l[0]}px`,transformBox:"fill-box",isolation:"isolate"},children:[jsxRuntime.jsx(shape.AreaClosed,{data:e,x:c=>n(c.xValue),y:c=>a(c.yValue),yScale:a,fill:`url(#${r})`,curve:curve.curveLinear}),jsxRuntime.jsx(shape.LinePath,{data:e,x:c=>n(c.xValue),y:c=>a(c.yValue),stroke:t,strokeWidth:3,curve:curve.curveLinear})]})})]})};var Ln=({data:e,color:t="var(--color-viz-default)",opacity:r=1,categoryColors:o={}})=>{let{xScale:n,yScale:a,animationSettings:i}=zr(),s=De.useId(),l=n.range(),c=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:l[0],y:c[1],width:l[1]-l[0],height:c[0]-c[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 ${c[0]}px`,transformBox:"fill-box",isolation:"isolate"},children:u.map((p,g)=>{let f=n(p.xValue),b=a(p.yValue),x=c[0]-b,v=u[g+1],y=v?Math.abs(n(v.xValue)-f):m,C=p.category&&o[p.category]?o[p.category]:t;return jsxRuntime.jsx(shape.Bar,{x:f-y/2,y:b,width:y,height:x,fill:C,opacity:r,rx:1},p.xValue.getTime())})})})]})};var He={top:0,right:0,bottom:50,left:60};function co(e={type:"number"}){let t=i=>{if(i==null)return "-";let s=gr({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 l=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(l).join(""):l(d.children)}return ""};return l(s)||i.toString()}return i.toString()},r=i=>{if(i==null)return "-";if(typeof e=="string"){let s=gr({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 bd=(e,t)=>{let r=d3Array.extent(e,o=>o.xValue);return scale.scaleTime({range:[He.left,t-He.right],domain:r,nice:true})},xd=(e,t,r)=>{let o=co(r),n=d3Array.min(e,l=>l.yValue)||0,a=d3Array.max(e,l=>l.yValue)||0,i=o.min!==void 0?o.min:n>=0?0:n*1.1,s=o.max!==void 0?o.max:a<=0?0:a*1.1;return scale.scaleLinear({range:[t-He.bottom,He.top],domain:[i,s],nice:true})};function J1(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 rs(e,t=12,r="system-ui"){return e.length===0?0:Math.max(...e.map(o=>J1(o,t,r)))}function Na(e){return e instanceof Date&&!Number.isNaN(e.getTime())}function q1(e,t,r=12,o=false){if(!Na(t[0])||!Na(t[1]))return console.warn("ChartAxis: Invalid date in domain, skipping tick calculation"),[];let n=t[0].getTime(),i=t[1].getTime()-n;if(i===0||i<1e3)return [t[0]];let s=oc({start:t[0],end:t[1]},{compact:o}),c=[t[0],new Date((t[0].getTime()+t[1].getTime())/2),t[1]].map(b=>s(b)),u=rs(c,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]];for(let b=1;b<g-1;b++){let x=b/(g-1),v=n+i*x;f.push(new Date(v));}return f.push(t[1]),f}var Z1=({top:e,scale:t,width:r})=>{let o=t.domain(),n=[o[0],o[o.length-1]],a=Na(n[0])&&Na(n[1]),i=r<400,s=a?n[0].getTime():0,l=a?n[1].getTime():0,c=De.useMemo(()=>a?oc({start:n[0],end:n[1]},{compact:i}):()=>"",[s,l,i,a]),u=De.useMemo(()=>q1(r,n,12,i),[r,s,l,i]);return u.length===0?null:jsxRuntime.jsx(axis.Axis,{orientation:"bottom",top:e,scale:t,tickValues:u,tickFormat:d=>{let m=d;return Na(m)?c(m):""},stroke:"var(--color-border-muted)",tickStroke:"var(--color-border-muted)",tickLabelProps:(d,m,p)=>({fill:"var(--color-text-caption)",fontSize:12,textAnchor:m===0?"start":m===p.length-1?"end":"middle"}),rangePadding:0})};function os(e,t=12){let r=t*2.5,o=Math.floor(e/r);return Math.max(2,Math.min(6,o))}var X1=({left:e,scale:t,yFormatter:r,height:o})=>{let n=co(r),a=De.useMemo(()=>!o||o<=0?5:os(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:()=>({fill:"var(--color-text-caption)",fontSize:12,textAnchor:"end",dy:"0.33em"})})},wa={Bottom:Z1,Left:X1};var Tf=({item:e})=>jsxRuntime.jsxs("div",{className:"flex items-center gap-2 shrink-0",children:[jsxRuntime.jsx("div",{className:"h-3 w-3 shrink-0",style:{backgroundColor:e.fill,borderRadius:"1px"}}),jsxRuntime.jsx("span",{className:"text-sm text-text-caption whitespace-nowrap",children:e.category})]}),$1=({items:e})=>e.length===0?null:jsxRuntime.jsx("div",{className:"flex items-center gap-3 flex-wrap",children:e.map(t=>jsxRuntime.jsx(Tf,{item:t},t.category))}),ns=({items:e,onExport:t,marginLeft:r=0,marginRight:o=0,isZoomed:n=false,onResetZoom:a})=>{let[i,s]=De__namespace.default.useState(false),[l,c]=De__namespace.default.useState(null),[u,d]=De__namespace.default.useState(false),[m,p]=De__namespace.default.useState(false),g=De__namespace.default.useCallback(async b=>{s(true),c(b),p(false);try{await t(b);}catch(x){console.error("Export failed:",x);}finally{s(false),c(null);}},[t]),f=De__namespace.default.useCallback(async b=>{await g(b);},[g]);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($1,{items:e})}),jsxRuntime.jsx("div",{className:"sm:hidden flex items-center gap-3",children:e.length>0&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("button",{onClick:()=>d(true),className:"text-sm text-text-muted hover:text-text-body transition-colors underline decoration-dotted underline-offset-4",children:"Legend"}),jsxRuntime.jsx(Ze,{isOpen:u,onClose:()=>d(false),title:"Legend",children:jsxRuntime.jsx("div",{className:"grid grid-cols-1 gap-3 p-4",children:e.map(b=>jsxRuntime.jsx(Tf,{item:b},b.category))})})]})}),jsxRuntime.jsxs("div",{className:"sm:hidden flex items-center gap-2 shrink-0",children:[n&&a&&jsxRuntime.jsx(_,{variant:"secondary",size:"sm",onPress:a,children:jsxRuntime.jsx(k,{name:"ArrowsOut",size:16})}),jsxRuntime.jsx(_,{variant:"secondary",size:"sm",onPress:()=>p(true),isDisabled:i,children:jsxRuntime.jsx(k,{name:"Export",size:16})}),jsxRuntime.jsx(Ze,{isOpen:m,onClose:()=>p(false),title:"Export Chart",contentPadding:false,children:jsxRuntime.jsxs("div",{className:"flex flex-col",children:[jsxRuntime.jsxs("button",{onClick:()=>g("csv"),disabled:i,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(k,{name:"List",size:20,className:"text-text-muted"}),jsxRuntime.jsx("span",{className:"text-sm text-text-body",children:l==="csv"?"Exporting...":"Export as CSV"})]}),jsxRuntime.jsxs("button",{onClick:()=>g("svg"),disabled:i,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(k,{name:"Code",size:20,className:"text-text-muted"}),jsxRuntime.jsx("span",{className:"text-sm text-text-body",children:l==="svg"?"Exporting...":"Export as SVG"})]}),jsxRuntime.jsxs("button",{onClick:()=>g("png"),disabled:i,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(k,{name:"DownloadSimple",size:20,className:"text-text-muted"}),jsxRuntime.jsx("span",{className:"text-sm text-text-body",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(_,{variant:"secondary",size:"sm",onPress:a,children:[jsxRuntime.jsx(k,{name:"ArrowsOut",size:16}),jsxRuntime.jsx("span",{className:"hidden sm:inline",children:"Reset Zoom"})]}),jsxRuntime.jsxs(reactAriaComponents.DialogTrigger,{children:[jsxRuntime.jsxs(_,{variant:"secondary",size:"sm",isDisabled:i,children:[jsxRuntime.jsx(k,{name:"Export",size:16}),i?"Exporting...":"Export"]}),jsxRuntime.jsx(qe,{placement:"top end",className:"min-w-48 p-1 bg-white dark:bg-gray-800 rounded-lg shadow-xl ring-1 ring-gray-200 dark:ring-gray-700",children:jsxRuntime.jsxs(reactAriaComponents.Menu,{onAction:f,className:"outline-none",children:[jsxRuntime.jsx(reactAriaComponents.MenuItem,{id:"csv",className:"flex items-center gap-2 px-3 py-2 text-sm text-gray-700 hover:bg-gray-100 dark:text-gray-300 dark:hover:bg-gray-700 rounded cursor-pointer outline-none",isDisabled:i,children:jsxRuntime.jsxs("span",{className:"flex items-center gap-2",children:[jsxRuntime.jsx(k,{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-gray-700 hover:bg-gray-100 dark:text-gray-300 dark:hover:bg-gray-700 rounded cursor-pointer outline-none",isDisabled:i,children:jsxRuntime.jsxs("span",{className:"flex items-center gap-2",children:[jsxRuntime.jsx(k,{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-gray-700 hover:bg-gray-100 dark:text-gray-300 dark:hover:bg-gray-700 rounded cursor-pointer outline-none",isDisabled:i,children:jsxRuntime.jsxs("span",{className:"flex items-center gap-2",children:[jsxRuntime.jsx(k,{name:"DownloadSimple",size:14}),l==="png"?"Exporting...":"Export as PNG"]})})]})})]})]})]})};var vd=({data:e,seriesMetadata:t,width:r,height:o,onBrushChange:n,brushRegion:a,margin:i=He})=>{let s=De.useRef(null),l=De.useRef(false),c=De.useMemo(()=>e.flat(),[e]),u=De.useMemo(()=>({top:10,bottom:15,left:i.left,right:i.right}),[i]),d=r-u.left-u.right,m=De.useMemo(()=>{if(c.length===0)return scale.scaleTime({domain:[new Date,new Date],range:[0,d]});let x=new Date(Math.min(...c.map(y=>y.xValue.getTime()))),v=new Date(Math.max(...c.map(y=>y.xValue.getTime())));return scale.scaleTime({domain:[x,v],range:[0,d]})},[c,d]),p=De.useMemo(()=>{let x=c.length>0?Math.max(0,...c.map(v=>v.yValue)):1;return scale.scaleLinear({domain:[0,x],range:[o-u.bottom,u.top]})},[c,o]),g=x=>{if(l.current)return;if(!x){n(null);return}let{x0:v,x1:y}=x;if(v===y)return;let C=new Date(v),S=new Date(y);if(!(Number.isNaN(C.getTime())||Number.isNaN(S.getTime()))){if(c.length>0){let w=Math.min(...c.map(P=>P.xValue.getTime())),N=Math.max(...c.map(P=>P.xValue.getTime())),D=(N-w)*.05;if(Math.abs(C.getTime()-w)<D&&Math.abs(S.getTime()-N)<D){n(null);return}}n([C,S]);}},f=De.useMemo(()=>{if(c.length!==0)return {start:{x:0,y:u.top},end:{x:d,y:o-u.bottom}}},[d,o,c]);De.useEffect(()=>{if(!s.current||c.length===0)return;let x=s.current.state;if(x?.isBrushing||x?.activeHandle)return;let v=Math.min(...c.map(L=>L.xValue.getTime())),y=Math.max(...c.map(L=>L.xValue.getTime())),C=a?a[0]:new Date(v),S=a?a[1]:new Date(y),w=s.current.state?.extent;if(w){let L=m.invert(w.x0),D=m.invert(w.x1),A=Math.abs(L.getTime()-C.getTime()),P=Math.abs(D.getTime()-S.getTime());if(A<1e3&&P<1e3)return}l.current=true;let N=L=>{let D=s.current.getExtent({x:m(C),y:u.top},{x:m(S),y:o-u.bottom});return {...L,start:{y:D.y0,x:D.x0},end:{y:D.y1,x:D.x1},extent:D}};s.current.updateBrush(N),setTimeout(()=>{l.current=false;},50);},[a,m,o,c]);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-muted)",strokeWidth:1,orientation:["diagonal"]}),jsxRuntime.jsxs("g",{transform:`translate(${u.left}, 0)`,children:[e.map((x,v)=>jsxRuntime.jsx(shape.LinePath,{data:x,x:y=>m(y.xValue),y:y=>p(y.yValue),stroke:t[v]?.color||"var(--color-gray-500)",strokeWidth:1.5,opacity:.8},`brush-series-${v}`)),jsxRuntime.jsx(brush.Brush,{xScale:m,yScale:p,width:d,height:o-u.top-u.bottom,margin:{top:u.top,bottom:u.bottom,left:0,right:0},handleSize:8,innerRef:s,resizeTriggerAreas:["left","right"],brushDirection:"horizontal",initialBrushPosition:f,onChange:g,onClick:()=>n(null),selectedBoxStyle:b,useWindowMoveEvents:true})]})]})})};function Lf(e){switch(e){case "command":return ct("--color-action-primary","#3b82f6");case "success":return ct("--color-feedback-success","#10b981");case "warning":return ct("--color-feedback-warning","#f59e0b");case "error":return ct("--color-feedback-error","#ef4444");case "alert":return ct("--color-feedback-warning","#f59e0b");default:return ct("--color-action-secondary","#6b7280")}}function is({events:e,color:t,showLabels:r=false}){let o=De.useContext(Dn),[n,a]=De.useState(null);if(!o)return console.warn("ChartEventMarkers must be used within a ChartContainer"),null;let{xScale:i,yScale:s,height:l,tooltip:c,datasets:u,seriesMetadata:d,seriesTypes:m,categoryColors:p}=o,g=e.filter(x=>{let v=i(x.timestamp);return v>=He.left&&v<=i.range()[1]}),f=De.useCallback((x,v)=>{a(v);let y=i(x.timestamp),C=y>(i.range()[1]-He.right-He.left)/2+He.left,S=[];u&&d&&u.forEach((w,N)=>{if(w.length===0)return;let L=d3Array.bisector(E=>E.xValue).left,D=L(w,x.timestamp),A=w[D-1],P=w[D],T;if(!A)T=P;else if(!P)T=A;else {let E=Math.abs(x.timestamp.getTime()-A.xValue.getTime()),R=Math.abs(x.timestamp.getTime()-P.xValue.getTime());T=E<R?A:P;}T&&d[N]&&S.push({label:d[N].label,value:T.yValue,color:d[N].color,type:m?.[N]||"line",...T.category&&{category:T.category,categoryColor:p?.[T.category]}});}),S.push({label:x.label,value:0,color:t||Lf(x.type),type:"event"}),c.show({xValue:x.timestamp,series:S,x:y,y:S.length>1&&typeof S[0].value=="number"?s(S[0].value):l/2,position:C?"left":"right",isEvent:true,eventMetadata:x.metadata});},[i,s,l,c,t,u,d,m,p]),b=De.useCallback(()=>{a(null),c.hide();},[c]);return g.length===0?null:jsxRuntime.jsx("g",{className:"chart-event-markers","data-testid":"chart-event-markers",children:g.map((x,v)=>{let y=i(x.timestamp),C=t||Lf(x.type),S=n===v;return jsxRuntime.jsxs("g",{children:[jsxRuntime.jsx("line",{x1:y,y1:He.top,x2:y,y2:l-He.bottom,stroke:C,strokeWidth:S?3:2,strokeDasharray:"4 4",strokeOpacity:S?.9:.6,pointerEvents:"none"}),jsxRuntime.jsx("circle",{cx:y,cy:He.top,r:S?5:4,fill:C,stroke:"var(--color-background-surface)",strokeWidth:2,pointerEvents:"none"}),jsxRuntime.jsx("circle",{cx:y,cy:l-He.bottom,r:S?5:4,fill:C,stroke:"var(--color-background-surface)",strokeWidth:2,pointerEvents:"none"}),r&&jsxRuntime.jsx("text",{x:y,y:He.top-8,textAnchor:"middle",fill:"var(--color-text-caption)",fontSize:11,fontWeight:500,pointerEvents:"none",children:x.label}),jsxRuntime.jsx("rect",{x:y-10,y:He.top,width:20,height:l-He.top-He.bottom,fill:"transparent",style:{cursor:"pointer"},onMouseEnter:()=>f(x,v),onMouseLeave:b})]},`${x.timestamp.getTime()}-${v}`)})})}var ss=({data:e,formatter:t})=>{if(!e)return null;let{categoryLabels:r,xScale:o}=zr(),n=co(t),a=De__namespace.default.useRef(null),[i,s]=De__namespace.default.useState({x:0,y:0,translate:"translate(-50%, -100%)"});De__namespace.default.useEffect(()=>{if(!a.current)return;let m=a.current.getBoundingClientRect(),p=window.innerHeight,g=window.innerWidth,f=e.x,b=e.y,x=e.position==="left"?"translate(calc(-100% - 16px), -50%)":"translate(16px, -50%)";e.position==="left"&&f-m.width-16<0?x="translate(16px, -50%)":e.position==="right"&&f+m.width+16>g&&(x="translate(calc(-100% - 16px), -50%)"),b-m.height/2<0?b=m.height/2:b+m.height/2>p&&(b=p-m.height/2),s({x:f,y:b,translate:x});},[e.x,e.y,e.position]);let l=o.domain(),u=l.length===2&&l.every(d=>d instanceof Date)?Fp({start:l[0],end:l[1]}):()=>String(e.xValue);return jsxRuntime.jsx(framerMotion.AnimatePresence,{children:jsxRuntime.jsxs(framerMotion.motion.div,{ref:a,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:i.x,top:i.y,transform:i.translate},children:[jsxRuntime.jsx("time",{className:"mb-1 font-medium text-text-body",children:u(e.xValue)}),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(d=>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-body",children:[d.label,":"]}),jsxRuntime.jsx("span",{className:"text-text-muted",children:n.format(d.value)})]}),d.category&&jsxRuntime.jsxs("div",{className:"mt-0.5 flex items-center gap-2",children:[jsxRuntime.jsx("div",{className:"h-3 w-3",style:{backgroundColor:d.categoryColor||d.color,borderRadius:"1px"}}),jsxRuntime.jsx("span",{className:"text-sm text-text-muted",children:r?.[d.category]||d.category})]})]},d.label))}),(()=>{let d=e.series[e.series.length-1];return 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:d.color}}),jsxRuntime.jsx("span",{className:"font-medium text-text-body",children:d.label})]}),e.eventMetadata&&Object.keys(e.eventMetadata).length>0&&jsxRuntime.jsx("div",{className:"ml-4 mt-1 space-y-0.5 text-xs text-text-muted",children:Object.entries(e.eventMetadata).map(([m,p])=>jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[jsxRuntime.jsxs("span",{className:"capitalize",children:[m,":"]}),jsxRuntime.jsx("span",{className:"font-medium",children:p})]},m))})]})})()]}):jsxRuntime.jsx("ul",{className:"list-none p-0",children:e.series.map(d=>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-body",children:[d.label,":"]}),jsxRuntime.jsx("span",{className:"text-text-muted",children:n.format(d.value)})]}),d.category&&jsxRuntime.jsxs("div",{className:"mt-0.5 flex items-center gap-2",children:[jsxRuntime.jsx("div",{className:"h-3 w-3",style:{backgroundColor:d.categoryColor||d.color,borderRadius:"1px"}}),jsxRuntime.jsx("span",{className:"text-sm text-text-muted",children:r?.[d.category]||d.category})]})]},d.label))})]})})};var Ta=({data:e,color:t="var(--color-viz-default)",strokeWidth:r=3,strokeDasharray:o})=>{let{xScale:n,yScale:a,animationSettings:i}=zr(),s=a.range();return jsxRuntime.jsx(framerMotion.motion.g,{initial:{scaleY:0},animate:{scaleY:1},transition:{duration:i.duration,ease:i.ease},style:{transformOrigin:`0 ${s[0]}px`,transformBox:"fill-box",isolation:"isolate"},children:jsxRuntime.jsx(shape.LinePath,{data:e,x:l=>n(l.xValue),y:l=>a(l.yValue),stroke:t,strokeWidth:r,strokeDasharray:o,strokeLinecap:"round",curve:curve.curveLinear})})};var Bf=e=>e.type===Sa||e.type===Ta||e.type===Ln,CS=e=>e.type===is,SS=d3Array.bisector(e=>e.xValue).left,NS=()=>jsxRuntime.jsx("div",{className:"flex h-full items-center justify-center",children:jsxRuntime.jsx("p",{className:"text-gray-500",children:"No data available"})}),wS=()=>jsxRuntime.jsxs("div",{className:"flex h-full flex-col gap-4 p-4",children:[jsxRuntime.jsx(V,{className:"h-full w-full"}),jsxRuntime.jsxs("div",{className:"flex gap-4",children:[jsxRuntime.jsx(V,{className:"h-4 w-24"}),jsxRuntime.jsx(V,{className:"h-4 w-24"})]})]}),kS=({parentWidth:e,parentHeight:t,yFormatter:r={type:"number"},isLoading:o=false,enableZoom:n=false,enableBrush:a=false,brushHeight:i=60,onZoomChange:s,children:l})=>{let[c,u]=De.useState(null),[d,m]=De.useState(null),p=De.useRef(null),g=De.useRef(0),f=De.useRef(""),b=De.useRef(null),{colorMode:x}=kt(),v=De.useMemo(()=>ea(),[x]),y=De.useMemo(()=>Ql(),[x]),{datasets:C,seriesMetadata:S,categoryInfo:w,categoryColors:N,categoryLabels:L,hasBarSeries:D,firstBarSeriesIndex:A,seriesTypes:P}=De.useMemo(()=>{let le=De.Children.toArray(l).filter(Ce=>De.isValidElement(Ce)&&Bf(Ce)),Ne=le.filter(Ce=>Ce.props.data).length,Be=le.some(Ce=>Ce.type===Ln),Me=[],Z=[],H=[],ee=null,ce=null,ie=null;le.forEach((Ce,Je)=>{let ze=Ce.props;if(!ze.data)return;Me.push(ze.data);let Co=("color"in ze&&ze.color?ze.color:void 0)||(Ne===1?y:v[Je%v.length]);Z.push({label:"label"in ze&&ze.label||`Series ${Me.length}`,color:Co});let gn=Ce.type===Sa?"area":Ce.type===Ta?"line":"bar";H.push(gn),"categoryColors"in ze&&ze.categoryColors&&(ee=ze.categoryColors),"categoryLabels"in ze&&ze.categoryLabels&&(ce=ze.categoryLabels),Ce.type===Ln&&ie===null&&(ie=Me.length-1);});let we=null;if(ee){let Ce=new Set;Me.forEach(Je=>{Je.forEach(ze=>{ze.category&&Ce.add(ze.category);});}),we=Array.from(Ce).map(Je=>({label:ce?.[Je]||Je,color:ee[Je]||"#6b7280"}));}return {datasets:Me,seriesMetadata:Z,categoryInfo:we,categoryColors:ee,categoryLabels:ce,hasBarSeries:Be,firstBarSeriesIndex:ie,seriesTypes:H}},[l,y,v,x]),T=e,E=a?i+8:0,R=t-60-24-E,J=Math.max(100,R),X=De.useMemo(()=>C.flat(),[C]),q=De.useMemo(()=>{if(X.length===0)return null;let K=[...X].sort((le,Ne)=>le.xValue.getTime()-Ne.xValue.getTime());return [K[0].xValue,K[K.length-1].xValue]},[X]),$=d||q,j=De.useMemo(()=>$?C.map(le=>le.filter(Ne=>Ne.xValue>=$[0]&&Ne.xValue<=$[1])):C,[C,$]);De.useEffect(()=>{s&&s(d);},[d,s]);let M=De.useMemo(()=>j.flat(),[j]),W=De.useMemo(()=>xd(M,J,r),[M,J,r]),U=De.useMemo(()=>{let K=J-He.top-He.bottom;return os(K)},[J]),I=De.useMemo(()=>{let K=co(r),le=K.tickFormat||K.format,Be=W.ticks(U).map(H=>le(H)),Me=rs(Be,12,"system-ui"),Z=Math.ceil(Me)+12;return {...He,left:Math.max(Z,30)}},[W,r,U]),Y=De.useMemo(()=>$?scale.scaleTime({domain:$,range:[I.left,T-I.right]}):bd(X,T),[$,X,T,I]),F=De.useCallback(K=>{if(!q)return;let{scaleX:le,translateX:Ne}=K,Be=T-I.left-I.right,[Me,Z]=q,H=Z.getTime()-Me.getTime();if(H<=0){m(null);return}let ee=-Ne,ce=ee+Be,ie=Be*le/H,we=ee/ie,Ce=ce/ie,Je=new Date(Me.getTime()+we),ze=new Date(Me.getTime()+Ce),mt=Math.abs(Je.getTime()-Me.getTime()),Co=Math.abs(ze.getTime()-Z.getTime()),gn=H*.02;mt<gn&&Co<gn?m(null):m([Je,ze]);},[q,T,I]),h=De.useCallback(K=>{let{left:le}=p.current?.getBoundingClientRect()||{left:0},Ne=K.clientX-le;if(K.timeStamp-(g.current||0)<16)return;g.current=K.timeStamp;let Be=Y.invert(Ne),Me=C.map((ee,ce)=>{if(!ee||ee.length===0)return null;let ie=SS(ee,Be,1);if(ie===0)return {point:ee[0],datasetIndex:ce};if(ie>=ee.length)return {point:ee[ee.length-1],datasetIndex:ce};let we=ee[ie-1],Ce=ee[ie];if(!we||!Ce)return null;let Je=Math.abs(we.xValue.getTime()-Be.getTime()),ze=Math.abs(Ce.xValue.getTime()-Be.getTime());return {point:Je<ze?we:Ce,datasetIndex:ce}}).filter(ee=>ee!==null&&S[ee.datasetIndex]!==void 0).map(({point:ee,datasetIndex:ce})=>({label:S[ce].label,value:ee.yValue,color:S[ce].color,point:ee,type:P[ce]}));if(Me.length===0){u(null);return}let Z=Y(Me[0].point.xValue),H=Z>(T-I.right-I.left)/2+I.left;u({xValue:Me[0].point.xValue,series:Me.map(({label:ee,value:ce,color:ie,point:we,type:Ce})=>({label:ee,value:ce,color:ie,type:Ce,category:we.category,categoryColor:we.category&&N?N[we.category]:void 0})),x:Z,y:W(Me[0].value),position:H?"left":"right"});},[C,j,S,P,Y,W,T,N,I]),z=()=>{u(null);},B=De.useCallback(()=>{m(null),b.current&&b.current.reset();},[]),G=De.useCallback(K=>{if(m(K),b.current&&q){let[le,Ne]=q,Be=Ne.getTime()-le.getTime();if(Be<=0){b.current.reset();return}if(!K)b.current.reset();else {let[Me,Z]=K,H=Z.getTime()-Me.getTime();if(H<=0){b.current.reset();return}let ee=Be/H,ce=T-I.left-I.right,we=-((Me.getTime()-le.getTime())/Be)*ce*ee;b.current.setTransformMatrix({scaleX:ee,scaleY:1,translateX:we,translateY:0,skewX:0,skewY:0});}}},[q,T,I]),oe={width:T,height:J,xScale:Y,yScale:W,yFormatter:r,animationSettings:Cf,tooltip:{data:c,show:u,hide:()=>u(null)},datasets:j,seriesMetadata:S,seriesTypes:P,categoryColors:N||void 0,categoryLabels:L||void 0},me=De.Children.toArray(l),O=0,Q=[],fe=[];me.forEach(K=>{if(!De.isValidElement(K)){Q.push(K);return}if(CS(K))fe.push(K);else if(Bf(K)){let le=O;O++;let Ne=K.props;Q.push(De__namespace.default.cloneElement(K,{...Ne,data:j[le]||Ne.data,color:S[le]?.color}));}else Q.push(K);});let ne=(w||S).map(K=>({category:K.label,fill:K.color})),ue=Lu({datasets:C,metadata:{xLabel:"Date",yLabel:"Value",seriesLabels:S.map(K=>K.label),timestamp:true},svgRef:p});if(o)return jsxRuntime.jsx(wS,{});if(C.length===0)return jsxRuntime.jsx(NS,{});let ve=jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("title",{children:"Data chart visualization"}),jsxRuntime.jsx("g",{children:W.ticks(U).map(K=>jsxRuntime.jsx(shape.Line,{from:{x:I.left,y:W(K)},to:{x:T-I.right,y:W(K)},stroke:"var(--color-border-muted)",strokeWidth:1},`grid-line-${K}`))}),Q,jsxRuntime.jsx(wa.Bottom,{top:J-I.bottom,scale:Y,width:T-I.left-I.right}),jsxRuntime.jsx(wa.Left,{left:I.left,scale:W,yFormatter:r,height:J-I.top-I.bottom}),c&&!c.isEvent&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[D&&A!==null?(()=>{let K=j[A]??[];if(K.length===0)return null;let le=[...K].sort((ie,we)=>ie.xValue.getTime()-we.xValue.getTime()),Ne=le.findIndex(ie=>ie.xValue.getTime()===c.xValue.getTime()),Be=le[Ne+1],Me=le.length>1&&Be?Be.xValue.getTime()-c.xValue.getTime():15*6e4,Z=Math.abs(Y(new Date(c.xValue.getTime()+Me))-Y(c.xValue)),ee=Y(c.xValue)-Z/2,ce=W.range();return jsxRuntime.jsx("rect",{x:ee,y:ce[1],width:Z,height:ce[0]-ce[1],className:"fill-background-muted",opacity:.5,pointerEvents:"none",style:{transition:"all 100ms ease-out"}})})():null,c.series.filter(K=>K.type!=="bar").map(K=>jsxRuntime.jsxs("g",{children:[jsxRuntime.jsx("circle",{cx:Y(c.xValue),cy:W(K.value),r:8,fill:"white",stroke:K.color,strokeWidth:2,style:{transition:"all 100ms ease-out"}}),jsxRuntime.jsx("circle",{cx:Y(c.xValue),cy:W(K.value),r:4,fill:K.color,style:{transition:"all 100ms ease-out"}})]},`highlight-${K.label}`))]}),jsxRuntime.jsx("rect",{x:I.left,y:I.top,width:T-I.left-I.right,height:J-I.top-I.bottom,fill:"transparent",style:{cursor:n?"grab":"crosshair"},onMouseMove:h,onMouseLeave:z}),fe]});return jsxRuntime.jsx("div",{className:"relative flex h-full flex-col pb-6",children:jsxRuntime.jsxs(Dn.Provider,{value:oe,children:[n?jsxRuntime.jsx(zoom.Zoom,{width:T,height:J,scaleXMin:1,scaleXMax:20,scaleYMin:1,scaleYMax:1,constrain:K=>{let{scaleX:le,translateX:Ne}=K,Be=Math.max(1,Math.min(20,le)),Me=1,Z=T-I.left-I.right,H=0,ee=Z*(1-Be),ce=Math.max(ee,Math.min(H,Ne));return {...K,scaleX:Be,scaleY:Me,translateX:ce,translateY:0}},children:K=>{if(b.current=K,K.transformMatrix){let{scaleX:le,translateX:Ne}=K.transformMatrix,Be=`${le.toFixed(4)}-${Ne.toFixed(2)}`;Be!==f.current&&(f.current=Be,setTimeout(()=>{F(K.transformMatrix);},0));}return jsxRuntime.jsx("svg",{width:T,height:J,className:"overflow-visible",ref:le=>{p.current=le,K.containerRef.current!==le&&(K.containerRef.current=le);},role:"img","aria-label":"Data chart",style:{cursor:K.isDragging?"grabbing":"grab",touchAction:"none"},onMouseDown:K.dragStart,onMouseMove:K.dragMove,onMouseUp:K.dragEnd,onMouseLeave:()=>{K.isDragging&&K.dragEnd();},onTouchStart:K.dragStart,onTouchMove:K.dragMove,onTouchEnd:K.dragEnd,children:ve})}}):jsxRuntime.jsx("svg",{width:T,height:J,className:"overflow-visible",ref:p,role:"img","aria-label":"Data chart",children:ve}),jsxRuntime.jsx(ss,{data:c,formatter:r}),a&&q&&jsxRuntime.jsx(vd,{data:C,seriesMetadata:S,width:T,height:i,onBrushChange:G,brushRegion:d,margin:I}),jsxRuntime.jsx(ns,{onExport:ue,items:ne,marginLeft:0,marginRight:I.right,isZoomed:d!==null,onResetZoom:B})]})})},Vf=responsive.withParentSize(kS);var LS=e=>e.toLocaleString(),MS=e=>`${Math.round(e*100)}%`,Wf=({data:e,width:t=800,height:r=400,padding:o=0,barGap:n=30,formatValue:a=LS,formatPercentage:i=MS,color:s,showScale:l=true,showOverallConversion:c=true,overallConversionLabel:u="Overall Conversion:",activeStageId:d,onStageClick:m,onStageHover:p,className:g,style:f,"aria-label":b="Funnel chart"})=>{let[x,v]=De.useState(null),[y,C]=De.useState(t),S=De.useRef(null),w=d??x,N=De.useId(),L=s||"var(--color-viz-default)";De.useEffect(()=>{if(!S.current)return;let R=new ResizeObserver(J=>{for(let X of J)C(X.contentRect.width);});return R.observe(S.current),()=>{R.disconnect();}},[]);let{layout:D,overallConversion:A}=De.useMemo(()=>{if(e.length===0)return {layout:[],overallConversion:0};let R=e[0].value,J=c?60:0,X=r-o*2-J,q=(e.length-1)*n,$=(X-q)/e.length,j=e.map((W,U)=>{let I=o+J+U*($+n),Y=R===0?0:W.value/R,F=Y,h=U===0?null:e[U-1].value,z=h==null||h===0?0:1-W.value/h;return {stage:W,index:U,y:I,barHeight:$,widthPercent:Y,conversionRate:F,dropOff:z}}),M=R===0?0:e[e.length-1].value/R;return {layout:j,overallConversion:M,maxValue:R}},[e,y,r,o,n,l,c]);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-gray-300 bg-background-surface text-sm font-medium text-text-muted dark:border-gray-700",g),style:{width:t,height:r,...f},children:"No funnel data available"});let P=l?60:0,T=o+P,E=y-o*2-P;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":b,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:L,to:L,toOpacity:.85}),jsxRuntime.jsx(gradient.LinearGradient,{id:`${N}-bg`,from:L,to:L,fromOpacity:.01,toOpacity:.15,x1:"0",y1:"0",x2:"1",y2:"0"})]}),c&&jsxRuntime.jsxs("text",{x:T,y:o+20,className:"fill-text-body text-sm font-medium",children:[jsxRuntime.jsx("tspan",{className:"fill-text-muted",children:u})," ",i(A)]}),l&&jsxRuntime.jsx("g",{children:D.map(R=>{let J=R.y+R.barHeight/2;return jsxRuntime.jsx("text",{x:o+P-12,y:J,textAnchor:"end",dominantBaseline:"middle",className:"fill-text-caption text-xs",children:i(R.conversionRate)},R.stage.id)})}),D.map(R=>{let J=w===R.stage.id,X=E*R.widthPercent;return jsxRuntime.jsxs("g",{children:[jsxRuntime.jsx("rect",{x:T,y:R.y,width:E,height:R.barHeight,fill:`url(#${N}-bg)`,rx:4}),jsxRuntime.jsx(framerMotion.motion.rect,{x:T,y:R.y,width:X,height:R.barHeight,fill:`url(#${N}-bar)`,rx:4,initial:{width:0},animate:{width:X},transition:{duration:.6,delay:R.index*.1,ease:"easeOut"},opacity:J||w==null?1:.5,style:{cursor:m||p?"pointer":"default",transition:"opacity 150ms ease"},onMouseEnter:()=>{v(R.stage.id),p?.(R.stage);},onMouseLeave:()=>{v(null),p?.(null);},onClick:()=>m?.(R.stage)}),jsxRuntime.jsx("rect",{x:T+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:T+16,y:R.y+R.barHeight/2+4,className:"fill-text-heading text-xs font-semibold",style:{pointerEvents:"none"},children:a(R.stage.value)}),jsxRuntime.jsxs("text",{x:T,y:R.y-8,className:"fill-text-muted text-xs",style:{pointerEvents:"none"},children:[jsxRuntime.jsx("tspan",{children:R.index+1})," ",R.stage.label]}),R.stage.secondaryValue&&jsxRuntime.jsx("text",{x:T+16,y:R.y-24,className:"fill-text-muted text-xs",style:{pointerEvents:"none"},children:R.stage.secondaryValue}),R.index>0&&R.dropOff>0&&jsxRuntime.jsxs("text",{x:T+E,y:R.y-8,textAnchor:"end",className:"fill-text-muted text-xs",children:[i(R.dropOff)," drop"]}),R.stage.annotation&&jsxRuntime.jsxs("g",{children:[jsxRuntime.jsx("rect",{x:T+X+8,y:R.y+8,width:60,height:24,rx:3,className:"fill-background-muted"}),jsxRuntime.jsx("text",{x:T+X+16,y:R.y+20,className:"fill-text-caption text-xs font-medium",children:R.stage.annotation})]})]},R.stage.id)})]})})};function ES(e,t,r){return {field:e,operator:t,value:r}}function IS(e,t="AND"){return {logic:t,conditions:e}}function Pa(){return {logic:"AND",conditions:[]}}function ds(e){return !e||e.conditions.length===0?true:e.conditions.every(t=>"conditions"in t?ds(t):false)}function FS(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 l=r.get(i),c=l?.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=>l?.values?.find(x=>String(x.value)===String(f))?.label??f);a.push({id:`${i}-in`,label:c,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":">",b=g.operator==="lte"?"\u2264":"<";a.push({id:`${i}-range`,label:c,value:`${f} ${p.value} and ${b} ${g.value}`});}else for(let f of d){let b;f.operator==="gte"?b="\u2265":f.operator==="gt"?b=">":f.operator==="lte"?b="\u2264":b="<",a.push({id:`${i}-${f.operator}`,label:c,value:`${b} ${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:c,value:g});}}return a}function uo(e,t){let r=e||Pa();return {...r,conditions:[...r.conditions,t]}}function Wo(e,t){if(!e)return Pa();let r=e.conditions.filter(o=>"conditions"in o?Wo(o,t).conditions.length>0:o.field!==t);return {...e,conditions:r}}function Uo(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 Ra({count:e,label:t="results",isLoading:r=false,className:o=""}){if(r)return jsxRuntime.jsx("div",{className:`flex items-center ${o}`,children:jsxRuntime.jsx(V,{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-muted whitespace-nowrap ${o}`,children:[e.toLocaleString()," ",a]})}var HS=e=>{let t=ft({isInvalid:e.isInvalid,isDisabled:e.isDisabled,isFocused:e.isFocused,transparent:e.transparent,size:e.size}),r=[e.showSearchIcon?"pl-8":"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:l,onClear:c,type:u,validationResult:d,reserveErrorSpace:m=true,isLoading:p=false,descriptionPlacement:g="below",...f}){let[b,x]=De__namespace.default.useState(false),{isFocused:v,handleFocus:y,handleBlur:C}=_t(),S=u==="password",w=si(p,300);return jsxRuntime.jsx(reactAriaComponents.TextField,{...f,isRequired:a,className:xe(f.className,"group flex flex-col"),children:({isDisabled:N,isInvalid:L})=>jsxRuntime.jsxs("div",{className:"flex flex-col",children:[e&&jsxRuntime.jsx(Re,{size:o,tooltip:n,description:g==="tooltip"||g==="inline"?t:void 0,descriptionPlacement:g,isRequired:a,children:e}),jsxRuntime.jsxs(tt,{children:[s&&jsxRuntime.jsx("div",{className:"pointer-events-none absolute left-2 top-[45%] -translate-y-1/2 transform flex items-center z-10",children:w?jsxRuntime.jsx(Lr,{size:16,color:"text-text-muted"}):jsxRuntime.jsx(k,{name:"MagnifyingGlass",className:`h-4 w-4 transition-colors ${v?"text-action-brand":"text-text-muted"}`})}),jsxRuntime.jsx(Gi,{size:o,disabled:N,type:S?b?"text":"password":u,value:f.value,defaultValue:f.defaultValue,placeholder:f.placeholder,onFocus:D=>y(D,f.onFocus),onBlur:D=>C(D,f.onBlur),onChange:D=>f.onChange?.(D.target.value),className:HS({isInvalid:L,isDisabled:N,isFocused:v,size:o,transparent:i,showSearchIcon:s,isClearable:l,hasValue:!!f.value,isPassword:S,className:typeof f.className=="string"?f.className:void 0})}),l&&f.value&&!N&&jsxRuntime.jsx(ga,{onClick:()=>{c?c():f.onChange&&f.onChange("");},size:o}),S&&!N&&jsxRuntime.jsx("button",{type:"button",onClick:()=>x(!b),className:"absolute right-3 top-1/2 -translate-y-1/2 transform text-text-muted hover:text-text-body","aria-label":b?"Hide password":"Show password",onMouseDown:D=>{D.preventDefault(),D.stopPropagation();},children:jsxRuntime.jsx(k,{name:b?"EyeSlash":"Eye",size:o==="sm"?16:20,className:"text-text-body"})})]}),m?jsxRuntime.jsx("div",{className:"mt-1 min-h-[20px]",children:typeof r=="string"?jsxRuntime.jsx(se,{size:o,children:r}):typeof r=="function"&&d?jsxRuntime.jsx(se,{size:o,children:r(d)}):t&&g==="below"?jsxRuntime.jsx(he,{size:o,children:t}):null}):jsxRuntime.jsx(jsxRuntime.Fragment,{children:typeof r=="string"?jsxRuntime.jsx(se,{size:o,className:"mt-1",children:r}):typeof r=="function"&&d?jsxRuntime.jsx(se,{size:o,className:"mt-1",children:r(d)}):t&&g==="below"?jsxRuntime.jsx(he,{size:o,className:"mt-1",children:t}):null})]})})}function Ko({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 Da({value:e,options:t,onChange:r,direction:o,onDirectionChange:n,showLabel:a=true,size:i="sm",className:s="",compact:l=false}){let[c,u]=De.useState(false),d=o!==void 0&&n!==void 0,m=t.find(p=>p.value===e);return l?jsxRuntime.jsxs("div",{className:`flex items-center gap-2 ${s}`,children:[jsxRuntime.jsx(_,{variant:"secondary",size:i,icon:"ArrowsDownUp","aria-label":`Sort by: ${m?.label||"Select"}`,onPress:()=>u(true)}),jsxRuntime.jsx(Ze,{isOpen:c,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(Rt,{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-muted whitespace-nowrap",children:"Sort by:"}),jsxRuntime.jsx(Mo,{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(_,{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 qf({search:e,searchMobileMode:t="expanded",filters:r=[],onRemoveFilter:o,onClearAllFilters:n,onManageFilters:a,maxVisibleFilterChips:i=3,sort:s,resultsCount:l,leftControls:c,onManageColumns:u,columnPicker:d,customControls:m,actions:p,sticky:g,stickyTop:f="0",zIndex:b=10,className:x="",style:v}){let y=r.length>0;if(!(e||y||a||s||l||c||u||d||m||p))return null;let S=g?"sticky bg-background-surface":"",w=g?{top:f,zIndex:b}:{};return jsxRuntime.jsxs("div",{className:`@container flex flex-col gap-3 bg-background-surface py-3 border-b border-border-default ${S} ${x}`,style:{...v,...w},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:[c,c&&l&&jsxRuntime.jsx("div",{className:"h-4 w-px bg-border-default"}),l&&jsxRuntime.jsx(Ra,{count:l.count,label:l.label,isLoading:l.isLoading}),l&&s&&jsxRuntime.jsx("div",{className:"h-4 w-px bg-border-default"}),s&&jsxRuntime.jsx(Da,{value:s.value,options:s.options,onChange:s.onChange,showLabel:s.showLabel,direction:s.direction,onDirectionChange:s.onDirectionChange}),u?jsxRuntime.jsx(_,{variant:"secondary",size:"sm",icon:"Columns",onClick:u,children:"Columns"}):d,y&&o&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[r.slice(0,i).map(N=>jsxRuntime.jsxs(Cr,{variant:"brand",size:"sm",onRemove:()=>o(N.id),isRemovable:true,children:[N.label,": ",N.value]},N.id)),r.length>i&&a&&jsxRuntime.jsxs(_,{variant:"ghost",size:"sm",onClick:a,className:"text-text-muted hover:text-text-body whitespace-nowrap",children:["+",r.length-i," more"]}),n&&jsxRuntime.jsx(_,{variant:"ghost",size:"sm",onClick:n,className:"text-text-muted hover:text-text-body whitespace-nowrap",children:"Clear all"})]})]}),jsxRuntime.jsx("div",{className:"flex items-center gap-3 flex-shrink-0",children:m||jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[p&&p.items.length>0&&jsxRuntime.jsx(jsxRuntime.Fragment,{children:p.items.map(N=>jsxRuntime.jsx(_,{variant:N.variant||"secondary",size:"sm",icon:N.icon,onPress:N.onClick,isDisabled:N.disabled,children:N.label},N.id))}),e&&jsxRuntime.jsx("div",{className:"w-64",children:jsxRuntime.jsx(Ko,{value:e.value,onChange:e.onChange,onClear:e.onClear,placeholder:e.placeholder,isLoading:e.isLoading})}),a&&jsxRuntime.jsx(_,{variant:"secondary",size:"sm",icon:"Sliders",badgeNumber:r.length>0?r.length:void 0,onClick:a,children:"Filters"})]})})]}),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:m?jsxRuntime.jsx("div",{className:"flex-1",children:m}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[p&&p.items.length>0&&jsxRuntime.jsx(Nn,{items:p.items.map(N=>({id:N.id,name:N.label,iconName:N.icon,variant:N.variant==="destructive"?"destructive":"default",disabled:N.disabled,onAction:N.onClick})),align:"left",size:"sm",children:jsxRuntime.jsx(_,{variant:"secondary",size:"sm",icon:"DotsThreeVertical","aria-label":p.menuLabel||"Actions"})}),e&&jsxRuntime.jsx("div",{className:"flex-1",children:jsxRuntime.jsx(Ko,{value:e.value,onChange:e.onChange,onClear:e.onClear,placeholder:e.placeholder,isLoading:e.isLoading})}),a&&jsxRuntime.jsx(_,{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)`:""}`})]})})}),jsxRuntime.jsxs("div",{className:"flex items-center justify-between gap-3",children:[jsxRuntime.jsxs("div",{className:"flex items-center gap-3",children:[c,l&&jsxRuntime.jsx(Ra,{count:l.count,label:l.label,isLoading:l.isLoading})]}),jsxRuntime.jsx("div",{className:"flex items-center gap-2",children:s&&jsxRuntime.jsx(Da,{value:s.value,options:s.options,onChange:s.onChange,showLabel:false,direction:s.direction,onDirectionChange:s.onDirectionChange,compact:true})})]})]})]})}function Zf({filters:e,onRemove:t,onClearAll:r,onManageFilters:o,maxVisibleChips:n=3,mode:a="chips",showManageButton:i=true,size:s="sm",className:l=""}){let c=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(!c&&!p&&!g)return null;let f=p&&jsxRuntime.jsxs(_,{variant:"secondary",size:s,onClick:o,className:"whitespace-nowrap",children:[e.length," ",e.length===1?"filter":"filters"]}),b=jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[g&&jsxRuntime.jsx(_,{variant:"secondary",size:s,icon:"Sliders",onClick:o,className:"whitespace-nowrap",children:"Filters"}),c&&u.map(v=>jsxRuntime.jsxs(Cr,{variant:"secondary",size:s,onRemove:()=>t(v.id),isRemovable:true,children:[v.label,": ",v.value]},v.id)),c&&m&&o&&jsxRuntime.jsxs(_,{variant:"ghost",size:s,onClick:o,className:"text-text-muted hover:text-text-body whitespace-nowrap",children:["+",d," more"]}),c&&r&&jsxRuntime.jsx(_,{variant:"ghost",size:s,onClick:r,className:"text-text-muted hover:text-text-body whitespace-nowrap",children:"Clear all"})]}),x=a==="button"?f:b;return jsxRuntime.jsx("div",{className:`flex flex-wrap items-center gap-2 ${l}`,children:x})}function jf({label:e,description:t,errorMessage:r,size:o="md",tooltip:n,isRequired:a,isDisabled:i,isInvalid:s,showCalendar:l=true,reserveErrorSpace:c=true,validationResult:u,className:d,...m}){let[p,g]=De.useState(false),f=b=>{m.onChange&&b&&m.onChange(b),g(false);};return jsxRuntime.jsxs(reactAriaComponents.DateField,{...m,isDisabled:i,isRequired:a,isInvalid:s,className:xe(d,"flex flex-col gap-1"),children:[e&&jsxRuntime.jsx(Re,{size:o,tooltip:n,isRequired:a,children:e}),jsxRuntime.jsx(tt,{children:jsxRuntime.jsxs("div",{className:"relative w-full",children:[jsxRuntime.jsx(Aa,{size:o,isDisabled:i,isInvalid:s,hasCalendar:l}),l&&!i&&jsxRuntime.jsxs(reactAriaComponents.DialogTrigger,{isOpen:p,onOpenChange:g,children:[jsxRuntime.jsx(_,{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-muted hover:text-text-body transition-colors","aria-label":"Open calendar",children:jsxRuntime.jsx(k,{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(Tn,{value:m.value,onChange:f,minValue:m.minValue,maxValue:m.maxValue,isDisabled:i,isReadOnly:m.isReadOnly,isDateUnavailable:m.isDateUnavailable})})})]})]})}),c?jsxRuntime.jsx("div",{className:"mt-1 min-h-[20px]",children:typeof r=="string"?jsxRuntime.jsx(se,{size:o,children:r}):typeof r=="function"&&u?jsxRuntime.jsx(se,{size:o,children:r(u)}):t?jsxRuntime.jsx(he,{size:o,children:t}):null}):jsxRuntime.jsx(jsxRuntime.Fragment,{children:typeof r=="string"?jsxRuntime.jsx(se,{size:o,className:"mt-1",children:r}):typeof r=="function"&&u?jsxRuntime.jsx(se,{size:o,className:"mt-1",children:r(u)}):t?jsxRuntime.jsx(he,{size:o,className:"mt-1",children:t}):null})]})}function e2({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-placeholder italic":"text-text-body",t?"text-text-disabled cursor-not-allowed":"cursor-text",!t&&"hover:bg-background-hover","data-[focused]:bg-background-selected data-[focused]:text-text-body")}function Aa({size:e="md",isDisabled:t,isInvalid:r,hasCalendar:o,className:n,...a}){return jsxRuntime.jsx(reactAriaComponents.DateInput,{className:tailwindMerge.twMerge(to({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:e2({isPlaceholder:i.isPlaceholder,isDisabled:!i.isEditable||t,size:e})})})}function s2({selectionState:e,isDisabled:t}){let r=`${Ie} w-full h-full flex items-center justify-center rounded-sm forced-color-adjust-none font-semibold`,o={none:"text-text-body group-hover:bg-background-muted group-pressed:bg-background-muted",middle:["bg-gray-100 dark:bg-zinc-700 group-hover:bg-gray-200 dark:group-hover:bg-zinc-600 forced-colors:group-hover:bg-[Highlight]","group-invalid:group-hover:bg-red-200 forced-colors:group-invalid:group-hover:bg-[Mark]","group-pressed:bg-gray-200 dark:group-pressed:bg-zinc-600 forced-colors:group-pressed:bg-[Highlight] forced-colors:text-[HighlightText]","group-invalid:group-pressed:bg-red-300 forced-colors:group-invalid:group-pressed:bg-[Mark]"].join(" "),cap:"bg-zinc-900 dark:bg-zinc-100 text-white dark:text-zinc-900 group-invalid:bg-red-600 forced-colors:bg-[Highlight] forced-colors:group-invalid:bg-[Mark] forced-colors:text-white"},n=t?"text-textFaint dark:text-zinc-600 forced-colors:text-textFaint font-light":"";return [r,o[e],n].filter(Boolean).join(" ")}function Bn({errorMessage:e,...t}){return jsxRuntime.jsxs(reactAriaComponents.RangeCalendar,{...t,children:[jsxRuntime.jsx(ji,{}),jsxRuntime.jsxs(reactAriaComponents.CalendarGrid,{className:"w-full border-separate [border-spacing:0] [&_td]:p-0 [&_td]:!border-0",children:[jsxRuntime.jsx(Qi,{}),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-gray-300 invalid:selected:bg-red-100 forced-colors:selected:bg-[Highlight] forced-colors:selected:text-white 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:l})=>jsxRuntime.jsx("span",{className:s2({selectionState:n&&(a||i)?"cap":n?"middle":"none",isDisabled:l}),children:o})})})]}),e&&jsxRuntime.jsx(reactAriaComponents.Text,{slot:"errorMessage",className:"text-sm text-red-600",children:e})]})}function ms({label:e,description:t,errorMessage:r,...o}){return jsxRuntime.jsxs(reactAriaComponents.DateRangePicker,{...o,className:xe(o.className,"group flex flex-col gap-1"),children:[e&&jsxRuntime.jsx(Re,{children:e}),jsxRuntime.jsxs(Lm,{className:"w-auto min-w-[208px]",children:[jsxRuntime.jsx(Aa,{slot:"start",className:"px-2 py-1.5 text-sm"}),jsxRuntime.jsx("span",{"aria-hidden":"true",className:"text-gray-800 group-disabled:text-gray-200 dark:text-zinc-200 group-disabled:dark:text-zinc-600 forced-colors:text-[ButtonText] group-disabled:forced-colors:text-[GrayText]",children:"\u2013"}),jsxRuntime.jsx(Aa,{slot:"end",className:"flex-1 px-2 py-1.5 text-sm"}),jsxRuntime.jsx(_,{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(he,{children:t}),typeof r=="string"?jsxRuntime.jsx(se,{children:r}):null,jsxRuntime.jsx(qe,{children:jsxRuntime.jsx(Bn,{})})]})}var g2=e=>{let t=ft({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 La({label:e,description:t,errorMessage:r,size:o="md",tooltip:n,isRequired:a,transparent:i,validationResult:s,reserveErrorSpace:l=true,descriptionPlacement:c="below",...u}){let d=De.useId(),{isFocused:m,handleFocus:p,handleBlur:g}=_t();return jsxRuntime.jsx(reactAriaComponents.NumberField,{...u,id:d,isRequired:a,className:xe(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:b})=>jsxRuntime.jsxs("div",{className:"flex flex-col gap-1",children:[e&&jsxRuntime.jsx(Re,{size:o,tooltip:n,description:c==="tooltip"||c==="inline"?t:void 0,descriptionPlacement:c,isRequired:a,htmlFor:d,children:e}),jsxRuntime.jsx("div",{className:"relative",children:jsxRuntime.jsxs(reactAriaComponents.Group,{className:"relative",children:[jsxRuntime.jsx(reactAriaComponents.Input,{onFocus:v=>p(v,u.onFocus),onBlur:v=>g(v,u.onBlur),className:g2({isInvalid:b||!!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(k,{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(k,{name:"CaretDown",size:14})})]})]})}),l?jsxRuntime.jsx("div",{className:"mt-1 min-h-[20px]",children:r?jsxRuntime.jsx(se,{size:o,children:typeof r=="function"?r(s):r}):t&&c==="below"?jsxRuntime.jsx(he,{size:o,children:t}):null}):jsxRuntime.jsx(jsxRuntime.Fragment,{children:r?jsxRuntime.jsx(se,{size:o,className:"mt-1",children:typeof r=="function"?r(s):r}):t&&c==="below"?jsxRuntime.jsx(he,{size:o,className:"mt-1",children:t}):null})]})})}var Td={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 h2({isSelected:e,isDisabled:t,variant:r="default",size:o="md"}){let n="flex px-px items-center shrink-0 cursor-default rounded-full transition duration-200 ease-in-out shadow-inner border border-transparent",a=Td[o].track,i=Ie,s=r==="brand"?"focus-visible:outline-action-brand":"focus-visible:outline-action-default",l="";return e?r==="brand"?l="bg-action-brand forced-colors:!bg-[Highlight] group-pressed:bg-action-brand-hover":l="bg-action-default forced-colors:!bg-[Highlight] group-pressed:bg-action-default-hover":l="bg-gray-400 dark:bg-zinc-400 group-pressed:bg-gray-500 dark:group-pressed:bg-zinc-300",[n,a,i,s,l,t?"bg-gray-200 dark:bg-zinc-700 forced-colors:group-selected:!bg-[GrayText] forced-colors:border-[GrayText]":""].filter(Boolean).join(" ")}function y2({isSelected:e,isDisabled:t,size:r="md"}){let o="transform rounded-full bg-white dark:bg-zinc-900 outline-none shadow transition duration-200 ease-in-out",n=Td[r].handle;return [o,n,e?"translate-x-[100%]":"translate-x-0",t?"forced-colors:outline-[GrayText]":""].filter(Boolean).join(" ")}function fs({children:e,variant:t="default",size:r="md",...o}){return jsxRuntime.jsx(reactAriaComponents.Switch,{...o,className:xe(o.className,`group flex items-center gap-2 ${Td[r].text} text-gray-800 transition disabled:text-gray-300 dark:text-zinc-200 dark:disabled:text-zinc-600 forced-colors:disabled:text-[GrayText]`),children:n=>jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("div",{className:h2({...n,variant:t,size:r}),children:jsxRuntime.jsx("span",{className:y2({...n,size:r})})}),e]})})}function eg(e){return new Intl.NumberFormat("en-US").format(e)}function tg({isOpen:e,onClose:t,facetConfigs:r,facetCounts:o={},currentFilters:n,onApply:a,onClear:i,title:s="Filters",resultCount:l}){let[c,u]=De.useState(n),[d,m]=De.useState({}),[p,g]=De.useState({}),[f,b]=De.useState(null),{isMobile:x}=Nt(),v=De.useMemo(()=>r.some(h=>h.group),[r]),{groups:y,ungroupedFacets:C,facetsByGroup:S}=De.useMemo(()=>{let h=new Set,z=[],B={};for(let G of r)G.group?(h.has(G.group)||(h.add(G.group),B[G.group]=[]),B[G.group].push(G)):z.push(G);return {groups:Array.from(h),ungroupedFacets:z,facetsByGroup:B}},[r]);De.useEffect(()=>{e&&(u(n),m({}),g({}),b(!x&&y.length>0?y[0]:null));},[e,n,y,x]);let w=De.useMemo(()=>!c||ds(c)?0:Uo(c).length,[c]),N=()=>{a(c),t();},L=()=>{let h=Pa();u(h),i?i():a(h),t();},D=h=>{if(!c)return [];if(!Uo(c).includes(h))return [];let B=[];function G(oe){if(oe)for(let me of oe.conditions)"conditions"in me?G(me):me.field===h&&me.operator==="in"&&Array.isArray(me.value)&&B.push(...me.value.map(String));}return G(c),B},A=(h,z,B)=>{let G=Wo(c,h);z!==void 0&&(G=uo(G,{field:h,operator:"gte",value:z})),B!==void 0&&(G=uo(G,{field:h,operator:"lte",value:B})),u(G);},P=h=>{if(!c)return;let z;function B(G){if(G)for(let oe of G.conditions)"conditions"in oe?B(oe):oe.field===h&&oe.operator==="eq"&&typeof oe.value=="boolean"&&(z=oe.value);}return B(c),z},T=(h,z)=>{let B=Wo(c,h);z!==void 0&&(B=uo(B,{field:h,operator:"eq",value:z})),u(B);},E=(h,z,B)=>{let G=Wo(c,h);z&&(G=uo(G,{field:h,operator:"gte",value:z.toString()})),B&&(G=uo(G,{field:h,operator:"lte",value:B.toString()})),u(G);},R=h=>{let z=S[h]||[],B=c?Uo(c):[];return z.filter(G=>B.includes(G.field)).length},J="pr-9 bg-background-muted/50",X="border-t border-border-muted",q="text-sm font-medium text-brand-primary",$=h=>jsxRuntime.jsx("span",{className:q,children:h}),j=h=>{let z=o[h.field]||{},B=d[h.field]||"",G=[];h.values?G=h.values.map(O=>({value:String(O.value),label:O.label,count:z[String(O.value)]})):G=Object.entries(z).map(([O,Q])=>({value:O,label:O,count:Q}));let oe=G.length;if(B){let O=B.toLowerCase();G=G.filter(Q=>Q.label.toLowerCase().includes(O));}G.sort((O,Q)=>O.count!==void 0&&Q.count!==void 0&&Q.count!==O.count?Q.count-O.count:O.label.localeCompare(Q.label));let me=h.type||"string";if(me==="string"||!h.type){let O=D(h.field),Q=h.searchThreshold??10,fe=h.maxVisibleOptions??50,ne=p[h.field]??false,ue=ne||G.length<=fe?G:G.slice(0,fe),ve=G.length>fe&&!ne;return jsxRuntime.jsxs(ao,{id:h.field,children:[jsxRuntime.jsx(io,{title:h.label,description:h.description,className:J,endContent:O.length>0?$(`${O.length} selected`):void 0}),jsxRuntime.jsx(so,{className:X,children:jsxRuntime.jsxs("div",{className:"space-y-4 pt-4 pb-4",children:[oe>Q&&jsxRuntime.jsx(Ko,{value:B,onChange:K=>m(le=>({...le,[h.field]:K})),onClear:()=>m(K=>({...K,[h.field]:""})),placeholder:`Search ${h.label.toLowerCase()}...`,size:"sm",className:"w-full !max-w-none pr-4"}),jsxRuntime.jsx(id,{value:O,onChange:K=>{let le=Wo(c,h.field);K.length>0&&(le=uo(le,{field:h.field,operator:"in",value:K})),u(le);},children:jsxRuntime.jsx("div",{className:"space-y-1.5",children:ue.map(K=>jsxRuntime.jsx("div",{className:"rounded-md py-2 pr-4 transition-colors hover:bg-background-hover",children:jsxRuntime.jsx(Bo,{value:K.value,children:jsxRuntime.jsxs("div",{className:"flex items-center justify-between gap-3 flex-1",children:[h.renderLabel?h.renderLabel(K.value,K.label):jsxRuntime.jsx("span",{className:"text-sm font-medium text-text-body",children:K.label}),K.count!==void 0&&jsxRuntime.jsx("span",{className:"text-xs font-medium text-text-muted tabular-nums",children:eg(K.count)})]})})},K.value))})}),ve&&jsxRuntime.jsx("div",{className:"pt-2 border-t border-border-muted",children:jsxRuntime.jsxs(_,{variant:"ghost",size:"sm",onPress:()=>g(K=>({...K,[h.field]:true})),className:"w-full",children:["Show all ",G.length," options"]})}),ne&&G.length>fe&&jsxRuntime.jsx("div",{className:"pt-2 border-t border-border-muted",children:jsxRuntime.jsx(_,{variant:"ghost",size:"sm",onPress:()=>g(K=>({...K,[h.field]:false})),className:"w-full",children:"Show less"})})]})})]},h.field)}if(me==="number"){let O,Q,fe=ue=>{if(ue)for(let ve of ue.conditions)"conditions"in ve?fe(ve):ve.field===h.field&&(ve.operator==="gte"&&typeof ve.value=="number"&&(O=ve.value),ve.operator==="lte"&&typeof ve.value=="number"&&(Q=ve.value));};fe(c);let ne=O!==void 0||Q!==void 0;return jsxRuntime.jsxs(ao,{id:h.field,children:[jsxRuntime.jsx(io,{title:h.label,description:h.description,className:J,endContent:ne?$(O!==void 0&&Q!==void 0?`${O} - ${Q}`:O!==void 0?`\u2265 ${O}`:`\u2264 ${Q}`):void 0}),jsxRuntime.jsx(so,{className:X,children:jsxRuntime.jsxs("div",{className:"grid grid-cols-2 gap-4 pt-4 pb-4",children:[jsxRuntime.jsx(La,{label:"Min",value:O,onChange:ue=>A(h.field,ue,Q)},`${h.field}-min`),jsxRuntime.jsx(La,{label:"Max",value:Q,onChange:ue=>A(h.field,O,ue)},`${h.field}-max`)]})})]},h.field)}if(me==="boolean"){let O=P(h.field);return jsxRuntime.jsxs(ao,{id:h.field,children:[jsxRuntime.jsx(io,{title:h.label,description:h.description,className:J,endContent:O!==void 0?$(O?"Yes":"No"):void 0}),jsxRuntime.jsx(so,{className:X,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-body",children:O!==void 0?O?"Enabled":"Disabled":"No filter applied"}),jsxRuntime.jsx(fs,{size:"lg",isSelected:O??false,onChange:Q=>T(h.field,Q?true:void 0),children:O?"Yes":"No"})]})})]},h.field)}if(me==="date"){let O,Q,fe=le=>{if(le)for(let Ne of le.conditions)"conditions"in Ne?fe(Ne):Ne.field===h.field&&(Ne.operator==="gte"&&(O=String(Ne.value)),Ne.operator==="lte"&&(Q=String(Ne.value)));};fe(c);let ne=O!==void 0||Q!==void 0,ue=le=>{if(le)try{return /^\d{4}-\d{2}-\d{2}$/.test(le)?fa(le):void 0}catch{return}},ve=ue(O),K=ue(Q);return jsxRuntime.jsxs(ao,{id:h.field,children:[jsxRuntime.jsx(io,{title:h.label,description:h.description,className:J,endContent:ne?$("Date range selected"):void 0}),jsxRuntime.jsx(so,{className:X,children:jsxRuntime.jsx("div",{className:"pt-4 pb-4",children:jsxRuntime.jsx(ms,{label:"Date Range",value:ve&&K?{start:ve,end:K}:void 0,onChange:le=>{le?E(h.field,le.start,le.end):E(h.field,void 0,void 0);}})})})]},h.field)}return null},M=()=>jsxRuntime.jsxs("div",{className:"flex flex-col",children:[C.map(h=>{let B=(c?Uo(c):[]).includes(h.field);return jsxRuntime.jsxs("button",{type:"button",onClick:()=>b(`__ungrouped__${h.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-body",children:h.label}),jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[B&&jsxRuntime.jsx("span",{className:q,children:"1 active"}),jsxRuntime.jsx(k,{name:"CaretRight",size:"sm",className:"text-text-muted"})]})]},h.field)}),y.map(h=>{let z=R(h);return jsxRuntime.jsxs("button",{type:"button",onClick:()=>b(h),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-body",children:h}),jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[z>0&&jsxRuntime.jsxs("span",{className:q,children:[z," active"]}),jsxRuntime.jsx(k,{name:"CaretRight",size:"sm",className:"text-text-muted"})]})]},h)})]}),W=h=>{if(h.startsWith("__ungrouped__")){let B=h.replace("__ungrouped__",""),G=C.find(oe=>oe.field===B);return G?jsxRuntime.jsx(Pn,{variant:"contained",density:"comfortable",showDividers:true,defaultExpandedKeys:[G.field],children:j(G)}):null}let z=S[h]||[];return z.length===0?null:jsxRuntime.jsx(Pn,{variant:"contained",density:"comfortable",showDividers:true,defaultExpandedKeys:[z[0].field],children:z.map(B=>j(B))})},U=()=>{if(f){let h=f.startsWith("__ungrouped__")&&C.find(z=>z.field===f.replace("__ungrouped__",""))?.label||f;return jsxRuntime.jsxs("div",{className:"flex flex-col h-full",children:[jsxRuntime.jsxs("button",{type:"button",onClick:()=>b(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(k,{name:"CaretLeft",size:"sm",className:"text-text-muted"}),jsxRuntime.jsx("span",{className:"text-sm font-medium text-text-body",children:h})]}),jsxRuntime.jsx("div",{className:"flex-1 overflow-y-auto",children:W(f)})]})}return M()},I=()=>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:[C.map(h=>{let B=(c?Uo(c):[]).includes(h.field),G=f===`__ungrouped__${h.field}`;return jsxRuntime.jsxs("button",{type:"button",onClick:()=>b(`__ungrouped__${h.field}`),className:`flex items-center justify-between w-full px-4 py-3 text-left border-b border-border-muted transition-colors ${G?"bg-brand-primary/10":"hover:bg-background-hover"}`,children:[jsxRuntime.jsx("span",{className:`text-sm truncate ${G?"font-semibold text-text-body":"font-medium text-text-body"}`,children:h.label}),B&&jsxRuntime.jsx("span",{className:"w-2 h-2 rounded-full bg-brand-primary flex-shrink-0 ml-2"})]},h.field)}),y.map(h=>{let z=R(h),B=f===h;return jsxRuntime.jsxs("button",{type:"button",onClick:()=>b(h),className:`flex items-center justify-between w-full px-4 py-3 text-left border-b border-border-muted transition-colors ${B?"bg-brand-primary/10":"hover:bg-background-hover"}`,children:[jsxRuntime.jsx("span",{className:`text-sm truncate ${B?"font-semibold text-text-body":"font-medium text-text-body"}`,children:h}),z>0&&jsxRuntime.jsx("span",{className:"w-2 h-2 rounded-full bg-brand-primary flex-shrink-0 ml-2"})]},h)})]}),jsxRuntime.jsx("div",{className:"flex-1 overflow-y-auto",children:f?W(f):jsxRuntime.jsx("div",{className:"flex items-center justify-center h-full text-text-muted text-sm",children:"Select a category to view filters"})})]}),Y=()=>jsxRuntime.jsx(Pn,{variant:"contained",density:"comfortable",showDividers:true,defaultExpandedKeys:[r[0].field],children:r.map(h=>j(h))});return jsxRuntime.jsx(Zt,{isOpen:e,onClose:t,title:v&&x&&f?f.startsWith("__ungrouped__")?C.find(h=>h.field===f.replace("__ungrouped__",""))?.label||s:f:w>0?`${s} (${w} active)`:s,hideCloseIcon:false,primaryAction:{label:"Apply filters",onPress:N,variant:"default"},secondaryAction:{label:"Clear all",onPress:L},maxWidth:v?"800px":"700px",height:"600px",contentPadding:false,footerContent:l!==void 0?jsxRuntime.jsxs("div",{className:"text-sm text-text-muted text-center",children:[jsxRuntime.jsx("span",{className:"font-semibold text-text-body",children:eg(l)})," ",l===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-muted",children:"No filters available"})}):v?x?U():I():Y()})}function Rd(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 tr(e="normal",t){return tailwindMerge.twMerge({strong:"font-semibold text-text-body",high:"font-semibold text-text-body",normal:"text-text-body",low:"text-text-muted"}[e],t&&"hover:text-action-brand cursor-pointer transition-colors")}function Se(e="left",t){return tailwindMerge.twMerge("flex items-center gap-1 min-w-0 overflow-hidden",Rd(e),t)}function xs(e,t="\u2014"){return e==null||e===""?t:String(e)}var po={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 Ft(e="normal"){return {strong:po.lg,high:po.lg,normal:po.md,low:po.sm}[e]}function ge(e,t){return typeof e=="function"?e(t):e}function rg(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-green-100 text-green-800",error:"bg-red-100 text-red-800",warning:"bg-yellow-100 text-yellow-800",info:"bg-blue-100 text-blue-800",neutral:"bg-gray-100 text-gray-800"}[e])}function og(e){return e?"success":"neutral"}function hs(e,t=false){return t?e>0?"text-green-600":e<0?"text-red-600":"text-text-body":"text-text-body"}function Dd(e="hover",t="default"){let r={default:"text-action-primary hover:text-action-primary-hover visited:text-action-primary",brand:"text-action-brand hover:text-action-brand-hover visited:text-action-brand",muted:"text-text-muted hover:text-text-muted visited:text-text-muted",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 wr(e,t,r,o="hover",n="default",a,i){if(!t)return e;let s=typeof t=="function"&&r?t(r):t,l=Dd(o,n);return jsxRuntime.jsx("a",{href:s,className:tailwindMerge.twMerge(l,a==="strong"||a==="high"?"font-semibold":"",i),onClick:u=>{u.metaKey||u.ctrlKey;},children:e})}function ng({row:e,context:t,actions:r,align:o="right",size:n="sm"}){let{isLoading:a}=t;if(a)return jsxRuntime.jsx(V,{className:po.sm});let s=(typeof r=="function"?r(e):r).filter(c=>!ge(c.hidden,e));if(s.length===0)return null;let l=Se(o);return jsxRuntime.jsx("div",{className:l,children:s.map(c=>{let u=ge(c.disabled,e);return c.variant==="icon"||!c.label?jsxRuntime.jsx(_,{variant:"icon",size:n,onPress:()=>{c.onClick(e);},isDisabled:u,"aria-label":c.label||c.id,children:jsxRuntime.jsx(k,{name:c.icon||"DotsThree",size:n==="sm"?16:20})},c.id):jsxRuntime.jsxs(_,{variant:c.variant||"secondary",size:n,onPress:()=>{c.onClick(e);},isDisabled:u,children:[c.icon&&jsxRuntime.jsx(k,{name:c.icon,size:n==="sm"?14:16}),c.label]},c.id)})})}function ig({value:e,row:t,context:r,variant:o="default",label:n,size:a="sm",shape:i="square",dot:s,dotPosition:l="left",dotPulse:c,align:u="left",emptyText:d="\u2014",className:m,maxVisible:p=2,maxLabelLength:g}){let{isLoading:f}=r,b=(w,N)=>{if(!g||w.length<=g)return jsxRuntime.jsx(jsxRuntime.Fragment,{children:w});let L=w.slice(0,g-1)+"\u2026";return jsxRuntime.jsx(Pt,{content:N,children:jsxRuntime.jsx("span",{children:L})})};if(f)return jsxRuntime.jsx(V,{className:Ft("normal")});if(e==null||e==="")return jsxRuntime.jsx("div",{className:Se(u,"text-text-muted"),children:d});if(Array.isArray(e)&&e.length===0)return jsxRuntime.jsx("div",{className:Se(u,"text-text-muted"),children:d});let x=Se(u,m);if(Array.isArray(e)){let w=e.slice(0,p),N=e.slice(p),L=N.length>0;return jsxRuntime.jsx("div",{className:x,children:jsxRuntime.jsxs("div",{className:"flex items-center gap-1",children:[w.map((D,A)=>{let P=typeof o=="function"?o(D,t):o,T=typeof n=="function"?n(D,t):n!==void 0?n:String(D),E=typeof s=="function"?s(D,t):s,R=typeof c=="function"?c(D,t):c;return jsxRuntime.jsx("span",{className:"flex-shrink-0 whitespace-nowrap",children:jsxRuntime.jsx(We,{variant:P,size:a,shape:i,dot:E,dotPosition:l,dotPulse:R,children:b(T,T)})},A)}),L&&jsxRuntime.jsx(Pt,{content:N.join(", "),children:jsxRuntime.jsx("span",{className:"flex-shrink-0 whitespace-nowrap",children:jsxRuntime.jsxs(We,{variant:"neutral",size:a,shape:i,children:["+",N.length]})})})]})})}let v=typeof o=="function"?o(e,t):o,y=typeof n=="function"?n(e,t):n!==void 0?n:String(e),C=typeof s=="function"?s(e,t):s,S=typeof c=="function"?c(e,t):c;return jsxRuntime.jsx("div",{className:x,children:jsxRuntime.jsx(We,{variant:v,size:a,shape:i,dot:C,dotPosition:l,dotPulse:S,children:b(y,y)})})}function sg({value:e,context:t,format:r="icon",trueText:o="Yes",falseText:n="No",trueIcon:a="Check",falseIcon:i="X",showFalse:s=true,align:l="center",emphasis:c="normal",className:u}){let{isLoading:d}=t;if(d)return jsxRuntime.jsx(V,{className:Ft(c)});let m=!!e;if(!m&&!s)return jsxRuntime.jsx("div",{className:Se(l,u)});let p=Se(l,u);switch(r){case "icon":return jsxRuntime.jsx("div",{className:p,children:jsxRuntime.jsx(k,{name:m?a:i,size:16,className:m?"text-green-600":"text-gray-400"})});case "text":return jsxRuntime.jsx("div",{className:p,children:jsxRuntime.jsx("span",{className:tr(c),children:m?o:n})});case "badge":return jsxRuntime.jsx("div",{className:p,children:jsxRuntime.jsx(We,{variant:m?"success":"neutral",size:"sm",children:m?o:n})});default:return null}}function cg({row:e,context:t,firstName:r,lastName:o,email:n,avatarUrl:a,layout:i="stacked",size:s="sm",href:l,LinkComponent:c,linkVariant:u="default",showEmail:d=false,badge:m,emphasis:p="normal",align:g="left",className:f,piiEntity:b}){let{isLoading:x}=t,v=ge(r,e),y=ge(o,e),C=ge(n,e),S=ge(a,e),w=ge(l,e),N=typeof m=="function"?m(e):m,L=ge(b,e),D=Se(g,f);return jsxRuntime.jsx("div",{className:D,children:jsxRuntime.jsx(es,{firstName:v,lastName:y,email:C,avatarUrl:S,layout:i,size:s,href:w,LinkComponent:c,linkVariant:u,showEmail:d,badge:N,emphasis:p,isLoading:x,piiEntity:L})})}function dg({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 ug({value:e,row:t,context:r,format:o="date",customFormat:n,emptyText:a="\u2014",align:i="left",emphasis:s="normal",href:l,linkBehavior:c="hover",className:u}){let{isLoading:d}=r;if(d)return jsxRuntime.jsx(V,{className:Ft(s)});if(!e)return jsxRuntime.jsx("div",{className:Se(i,"text-text-muted"),children:a});let m=e instanceof Date?e:new Date(e);if(isNaN(m.getTime()))return jsxRuntime.jsx("div",{className:Se(i,"text-text-muted"),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=D2(m);break;case "custom":p=n?m.toLocaleString("en-US",n):m.toISOString();break;default:p=m.toLocaleDateString();}let g=Se(i,tailwindMerge.twMerge(tr(s),u)),f=ge(l,t);return f?jsxRuntime.jsx("div",{className:g,children:wr(p,f,t,c)}):jsxRuntime.jsx("div",{className:g,children:p})}function D2(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 ys({manufacturer:e,model:t,deviceType:r,deviceTypeIconName:o,logoUrl:n,layout:a="stacked",size:i="md",href:s,LinkComponent:l,linkVariant:c="unstyled",showDeviceTypeIcon:u=true,showLogo:d=true,emphasis:m="normal",isLoading:p=false,className:g}){let[f,b]=De.useState(false),x=o||(r?L2(r):"DeviceMobile"),y={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],C=n&&!f&&d,w={strong:"font-semibold text-text-body",high:"font-semibold text-text-body",normal:"text-text-body",low:"text-text-muted"}[m],N=({children:L,className:D})=>s?l?jsxRuntime.jsx(l,{href:s,className:D,children:L}):jsxRuntime.jsx(Oe,{href:s,variant:c,className:tailwindMerge.twMerge("hover:underline",D),asButton:false,children:L}):jsxRuntime.jsx("span",{className:D,children:L});if(p)return a==="inline"?jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("flex items-center",y.gap,g),children:[jsxRuntime.jsx(V,{width:y.skeletonIcon,height:y.skeletonIcon,className:"flex-shrink-0 rounded"}),jsxRuntime.jsx(V,{width:y.skeletonText,height:y.skeletonIcon*.6})]}):jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("flex items-center",y.gap,g),children:[jsxRuntime.jsx(V,{width:y.skeletonIcon,height:y.skeletonIcon,className:"flex-shrink-0"}),jsxRuntime.jsxs("div",{className:"flex flex-col gap-1",children:[jsxRuntime.jsx(V,{width:y.skeletonText,height:16}),jsxRuntime.jsx(V,{width:y.skeletonSecondary,height:12})]})]});if(a==="inline"){let L=`${e} ${t}`;return jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("flex items-center",y.gap,g),children:[jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("flex-shrink-0 flex items-center justify-center rounded border border-border-muted",y.logoSize),children:C?jsxRuntime.jsx("img",{src:n,alt:`${e} logo`,className:"w-full h-full object-contain",onError:()=>b(true)}):jsxRuntime.jsx(k,{name:x,size:y.iconSize*.6,className:"text-text-muted"})}),jsxRuntime.jsx(N,{className:tailwindMerge.twMerge("truncate leading-normal hover:text-text-body",w,y.textSize,s&&"hover:underline hover:decoration-1 hover:underline-offset-4"),children:L})]})}return jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("flex items-center justify-start",y.gap,g),children:[d&&jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("flex-shrink-0 flex items-center justify-center rounded border border-border-muted",y.logoSize),children:C?jsxRuntime.jsx("img",{src:n,alt:`${e} logo`,className:"w-full h-full object-contain",onError:()=>b(true)}):jsxRuntime.jsx(k,{name:x,size:y.iconSize*.6,className:"text-text-muted"})}),jsxRuntime.jsxs("div",{className:"flex flex-col items-start min-w-0",children:[jsxRuntime.jsx(N,{className:tailwindMerge.twMerge("truncate leading-normal hover:text-text-body",w,y.textSize,s&&"hover:underline hover:decoration-1 hover:underline-offset-4"),children:e}),jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("flex items-center gap-1.5 text-text-muted leading-normal",y.secondaryTextSize),children:[u&&jsxRuntime.jsx(k,{name:x,size:y.iconInTextSize,className:"flex-shrink-0"}),jsxRuntime.jsx("span",{className:"truncate",children:t})]})]})]})}function L2(e){switch(e){case "battery":return "BatteryHigh";case "charger":return "ChargingStation";case "inverter":return "Power";case "thermostat":return "ThermometerSimple";case "vehicle":return "CarSimple";default:return "DeviceMobile"}}function mg({row:e,context:t,manufacturer:r,model:o,deviceType:n,logoUrl:a,layout:i="stacked",size:s="sm",href:l,LinkComponent:c,linkVariant:u="default",showDeviceTypeIcon:d=true,showLogo:m=true,emphasis:p="normal",align:g="left",className:f}){let{isLoading:b}=t,x=ge(r,e),v=ge(o,e),y=ge(n,e),C=ge(a,e),S=ge(l,e),w=Se(g,f);return jsxRuntime.jsx("div",{className:w,children:jsxRuntime.jsx(ys,{manufacturer:x,model:v,deviceType:y,logoUrl:C,layout:i,size:s,href:S,LinkComponent:c,linkVariant:u,showDeviceTypeIcon:d,showLogo:m,emphasis:p,isLoading:b})})}var mV={charging:"percentage",discharging:"percentage",on:"kW",idle:void 0,off:void 0,heat:"temperature",cool:"temperature",auto:"temperature",eco:"temperature",unknown:void 0},M2=["charging","discharging","heat","cool","on"],E2={unknown:"Unknown",on:"On",off:"Off",idle:"Idle",charging:"Charging",discharging:"Discharging",heat:"Heating",eco:"Eco Mode",cool:"Cooling",auto:"Auto"};function Ad(e){return M2.includes(e)}function Ld(e){return E2[e]}function Jo({state:e,label:t,icon:r,isLoading:o,size:n="sm",shape:a="pill",dot:i,dotPulse:s,fixedWidth:l,className:c,...u}){if(o)return jsxRuntime.jsx(V,{className:"inline-flex h-6 w-20"});let d=t??Ld(e),m=Ad(e);return jsxRuntime.jsxs(We,{variant:e,size:n,shape:a,dot:i??m,dotPulse:s??m,className:l?`w-28 justify-center ${c||""}`:c,...u,children:[r&&jsxRuntime.jsx(k,{name:r,size:n==="sm"?12:n==="md"?14:16}),d]})}var F2={importing:"Importing",exporting:"Exporting"};function gg(e){return F2[e]}function Cs({state:e,label:t,showIcon:r=false,isLoading:o,size:n="sm",shape:a="pill",fixedWidth:i,className:s,...l}){if(o)return jsxRuntime.jsx(V,{className:"inline-flex h-6 w-24"});let c=t??gg(e),u=e==="exporting"?"ArrowUp":"ArrowDown",d=n==="sm"?12:n==="md"?14:16;return r?jsxRuntime.jsx(We,{variant:e,size:n,shape:a,className:`w-6 justify-center ${s||""}`,...l,children:jsxRuntime.jsx(k,{name:u,size:d})}):jsxRuntime.jsx(We,{variant:e,size:n,shape:a,className:i?`w-28 justify-center ${s||""}`:s,...l,children:c})}function Ss({state:e,stateLabel:t,metric:r,metricFormatter:o,secondaryState:n,layout:a="horizontal",isLoading:i,size:s="sm",shape:l="pill",icon:c,fixedWidth:u,secondaryStateIconOnly:d=false,className:m}){if(i)return jsxRuntime.jsx(V,{className:tailwindMerge.twMerge("inline-flex h-6 w-32",m)});let p=r!=null&&o?No(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-body":"text-text-caption",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(Jo,{state:e,label:t,icon:c,size:s,shape:l,fixedWidth:u}),n&&jsxRuntime.jsx(jsxRuntime.Fragment,{children:n==="importing"||n==="exporting"?jsxRuntime.jsx(Cs,{state:n,size:s,shape:l,fixedWidth:u,showIcon:d}):jsxRuntime.jsx(Jo,{state:n,size:s,shape:l,fixedWidth:u})})]})}function bg({value:e,row:t,context:r,metric:o,metricFormatter:n,secondaryState:a,size:i="sm",shape:s="pill",label:l,icon:c,fixedWidth:u=true,align:d="left",compact:m=false,className:p}){let{isLoading:g}=r;if(g){let C={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(V,{className:"h-4 w-12"}),jsxRuntime.jsx(V,{className:`h-6 w-24 ${C}`}),jsxRuntime.jsx(V,{className:`h-6 w-20 ${C}`})]}):jsxRuntime.jsx(V,{className:`h-6 w-24 ${C}`})})}if(!e)return jsxRuntime.jsx("div",{className:Se(d,p),children:jsxRuntime.jsx("span",{className:"text-text-muted",children:"\u2014"})});let f=ge(o,t),b=ge(a,t),x=typeof l=="function"?l(e,t):l,v=Se(d,p);return f!=null||n?jsxRuntime.jsx("div",{className:tailwindMerge.twMerge(v),children:jsxRuntime.jsx(Ss,{state:e,stateLabel:x,metric:f,metricFormatter:n,secondaryState:b||void 0,size:i,shape:s,icon:c,fixedWidth:u,secondaryStateIconOnly:m,layout:"horizontal"})}):jsxRuntime.jsx("div",{className:v,children:jsxRuntime.jsx(Jo,{state:e,label:x,icon:c,size:i,shape:s,fixedWidth:u})})}function hg({value:e,row:t,context:r,formatter:o,align:n="left",emphasis:a="normal",href:i,linkBehavior:s="hover",className:l,emptyText:c="\u2014",emptyClassName:u="text-text-muted"}){let{isLoading:d}=r;if(d)return jsxRuntime.jsx(V,{className:Ft(a)});let m=gr({value:e,formatter:o,emptyText:c,emptyClassName:u}),p=tr(a),g=Se(n,tailwindMerge.twMerge(p,l)),f=jsxRuntime.jsx("div",{className:g,children:m}),b=ge(i,t);return b?wr(f,b,t,s):f}var Ed=De__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:l=20,minWidth:c=4,segments:u,segmentGap:d=2,barWidth:m,context:p})=>{let g=De.useMemo(()=>r===t?100:Math.max(0,Math.min(100,(e-t)/(r-t)*100)),[e,t,r]),f=De.useMemo(()=>o==="auto"&&a?a.type==="diverging"&&a.center!==void 0?ra(e,t,r,a.center,a.scheme):ta(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:l},children:jsxRuntime.jsx("div",{className:"h-full flex-1 animate-pulse bg-border-default rounded"})});if(u&&u>0){let v=`calc((100% - ${d*(u-1)}px) / ${u})`,y=Math.ceil(g/100*u),C={height:l,...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:C,children:Array.from({length:u}).map((S,w)=>{let N=w<y;return jsxRuntime.jsx("div",{className:"rounded-sm",style:{width:v,backgroundColor:N?f:n==="none"?"transparent":n,marginRight:w<u-1?`${d}px`:0}},w)})}),i&&jsxRuntime.jsx("span",{className:"text-sm text-text-body whitespace-nowrap",children:s?s(e):e.toLocaleString()})]})}let b={height:l,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:b,children:jsxRuntime.jsx("div",{className:"absolute left-0 top-0 h-full rounded-sm",style:{width:`${g}%`,minWidth:g>0?c:0,backgroundColor:f}})}),i&&jsxRuntime.jsx("span",{className:"text-sm text-text-body whitespace-nowrap",children:s?s(e):e.toLocaleString()})]})});Ed.displayName="HorizontalBarCell";var Id=De__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||[],l=b=>"xValue"in b?b.xValue:b.x,c=b=>"yValue"in b?b.yValue:b.y,u=a||100,d=i,{xScale:m,yScale:p,barWidth:g}=De.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 b=d3Array.extent(s,N=>l(N)),x=d3Array.min(s,N=>c(N))??0,v=d3Array.max(s,N=>c(N))??0,y=x<0?x:0,C=scale.scaleTime({range:[0,u],domain:b}),S=scale.scaleLinear({range:[d,0],domain:[y,v*1.05]}),w=s.length>1?u/s.length*.8:8;return {xScale:C,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((b,x)=>jsxRuntime.jsx("div",{className:"flex-1 animate-pulse bg-border-default rounded"},x))});if(!s||s.length===0)return jsxRuntime.jsx("div",{className:"flex items-center justify-center text-text-muted 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((b,x)=>{let v=c(b),y=m(l(b)),C=p(v),S=Math.abs(f-C),w=b.category&&o?.[b.category]?o[b.category]:r;return jsxRuntime.jsx(shape.Bar,{x:y-g/2,y:v>=0?C:f,width:g,height:S,fill:w,rx:1},`bar-${x}`)})})});Id.displayName="MiniBarCell";function Ng({value:e,row:t,context:r,format:o="number",decimals:n=0,prefix:a,suffix:i,emptyText:s="\u2014",align:l="right",emphasis:c="normal",href:u,linkBehavior:d="hover",showPositiveSign:m=false,colorCode:p=false,className:g}){let{isLoading:f}=r;if(f)return jsxRuntime.jsx(V,{className:Ft(c)});if(e==null||isNaN(Number(e)))return jsxRuntime.jsx("div",{className:Se(l,"text-text-muted"),children:s});let b=Number(e),x;switch(o){case "currency":x=new Intl.NumberFormat("en-US",{style:"currency",currency:"USD",minimumFractionDigits:n,maximumFractionDigits:n}).format(b);break;case "percent":x=new Intl.NumberFormat("en-US",{style:"percent",minimumFractionDigits:n,maximumFractionDigits:n}).format(b/100);break;case "compact":x=new Intl.NumberFormat("en-US",{notation:"compact",minimumFractionDigits:n>0?1:0,maximumFractionDigits:n}).format(b);break;default:x=new Intl.NumberFormat("en-US",{minimumFractionDigits:n,maximumFractionDigits:n}).format(b);}let y=`${m&&b>0?"+":""}${x}`,C=p?hs(b,true):tr(c),S=Se(l,tailwindMerge.twMerge(C,g)),w=jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[a&&jsxRuntime.jsx("span",{className:"text-text-muted",children:a}),jsxRuntime.jsx("span",{children:y}),i&&jsxRuntime.jsx("span",{className:"text-text-muted",children:i})]}),N=ge(u,t);return N?jsxRuntime.jsx("div",{className:S,children:wr(w,N,t,d)}):jsxRuntime.jsx("div",{className:S,children:w})}var Fd=De__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:l})=>{let c=De.useMemo(()=>Math.max(0,Math.min(100,e)),[e]),u=De.useMemo(()=>r==="auto"&&s?s.type==="diverging"&&s.center!==void 0?ra(e,0,100,s.center,s.scheme):ta(e,0,100,s.scheme):r,[r,s,e]);if(l.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(c/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 b=f<p,x=u;if(r==="auto"&&s&&b){let v=(f+1)/a*100;s.type==="diverging"&&s.center!==void 0?x=ra(v,0,100,s.center,s.scheme):x=ta(v,0,100,s.scheme);}return jsxRuntime.jsx("div",{className:"rounded-sm",style:{width:m,backgroundColor:b?x:o==="none"?"transparent":o,marginRight:f<a-1?`${i}px`:0}},f)})}),t&&jsxRuntime.jsxs("span",{className:"text-sm text-text-body whitespace-nowrap",children:[c.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:`${c}%`,backgroundColor:u}})}),t&&jsxRuntime.jsxs("span",{className:"text-sm text-text-body whitespace-nowrap",children:[c.toFixed(0),"%"]})]})});Fd.displayName="PercentBarCell";function kg({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:Se(a),children:jsxRuntime.jsx(V,{className:"h-4 w-4 rounded"})});let s=ge(n,e),l=Se(a);return jsxRuntime.jsx("div",{className:l,children:jsxRuntime.jsx(Bo,{isSelected:r,onChange:c=>{o?.(e,c);},isDisabled:s,"aria-label":"Select row"})})}function ks({streetAddress:e,city:t,state:r,postalCode:o,layout:n="stacked",size:a="md",href:i,LinkComponent:s,linkVariant:l="unstyled",emphasis:c="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],b={strong:"font-semibold text-text-body",high:"font-semibold text-text-body",normal:"text-text-body",low:"text-text-muted"}[c],x=[];t&&x.push(t),r&&o?x.push(`${r} ${o}`):r?x.push(r):o&&x.push(o);let v=x.join(", "),y=({children:S,className:w})=>i?s?jsxRuntime.jsx(s,{href:i,className:w,children:S}):jsxRuntime.jsx(Oe,{href:i,variant:l,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(V,{width:g.skeletonIconInline,height:g.skeletonIconInline,className:"flex-shrink-0 rounded"}),jsxRuntime.jsx(V,{width:g.skeletonText,height:g.skeletonIconInline*.8})]}):jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("flex items-center",g.gap,d),children:[jsxRuntime.jsx(V,{width:g.skeletonIconStacked,height:g.skeletonIconStacked,className:"flex-shrink-0 rounded"}),jsxRuntime.jsxs("div",{className:"flex flex-col gap-1",children:[jsxRuntime.jsx(V,{width:g.skeletonText,height:16}),jsxRuntime.jsx(V,{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(k,{name:"MapPin",size:g.iconSize,className:"text-text-muted flex-shrink-0"}),jsxRuntime.jsx("span",{className:tailwindMerge.twMerge("leading-normal truncate hover:text-text-body",b,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 C=()=>{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(k,{name:"MapPin",size:g.iconSize,className:"text-text-muted"})}),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-body",b,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})}),v&&jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("text-text-caption leading-normal truncate",g.secondaryTextSize),"data-pii-type":C(),"data-pii-entity":m,children:v})]})]})}function Pg({row:e,context:t,streetAddress:r,city:o,state:n,postalCode:a,layout:i="stacked",size:s="sm",href:l,LinkComponent:c,linkVariant:u="default",emphasis:d="normal",align:m="left",className:p,piiEntity:g}){let{isLoading:f}=t,b=ge(r,e),x=ge(o,e),v=ge(n,e),y=ge(a,e),C=ge(l,e),S=ge(g,e),w=Se(m,p);return jsxRuntime.jsx("div",{className:w,children:jsxRuntime.jsx(ks,{streetAddress:b,city:x,state:v,postalCode:y,layout:i,size:s,href:C,LinkComponent:c,linkVariant:u,emphasis:d,isLoading:f,piiEntity:S})})}var Bd=De__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:l=40})=>{let c=e||t||[],u=s||100,d=l,{xScale:m,yScale:p}=De.useMemo(()=>{if(c.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(c,y=>y.xValue),b=d3Array.min(c,y=>y.yValue)||0,x=d3Array.max(c,y=>y.yValue)||0,v=(x-b)*.1||1;return {xScale:scale.scaleTime({range:[0,u],domain:f}),yScale:scale.scaleLinear({range:[d,0],domain:[b-v,x+v]})}},[c,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(!c||c.length===0)return jsxRuntime.jsx("div",{className:"flex items-center justify-center text-text-muted text-xs",style:{width:u,height:d},children:"No data"});let g=a&&c[0]?.category&&a[c[0].category]?a[c[0].category]:o;return jsxRuntime.jsxs("svg",{width:u,height:d,className:"overflow-visible",children:[(r==="area"||r==="both")&&jsxRuntime.jsx(shape.AreaClosed,{data:c,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:c,x:f=>m(f.xValue),y:f=>p(f.yValue),stroke:g,strokeWidth:n,strokeLinecap:"round",curve:curve.curveLinear})]})});Bd.displayName="SparklineCell";function Lg({value:e,row:t,context:r,prefix:o,suffix:n,emptyText:a="\u2014",href:i,linkBehavior:s="hover",linkVariant:l="default",emphasis:c="normal",truncate:u=true,copyable:d=false,align:m="left",className:p,piiType:g,piiEntity:f}){let{isLoading:b}=r;if(b)return jsxRuntime.jsx(V,{className:Ft(c)});let x=xs(e,a),v=ge(i,t),y=ge(f,t),C=x,S=false,w=false;if(u&&x&&typeof x=="string")if(typeof u=="boolean")w=true;else {let{position:R="end",length:J=16,ellipsis:X="...",tooltip:q=true}=u;if(x.length>J){switch(R){case "start":C=gi(x,J);break;case "middle":C=hn(x,J);break;case "end":C=bi(x,J,X);break}S=q;}}let N=g&&y?{"data-pii-type":g,"data-pii-entity":y}:{},L=Object.keys(N).length>0,D=jsxRuntime.jsx("span",{className:w?"truncate":"",...N,children:C}),A=S?jsxRuntime.jsx(Pt,{content:L?jsxRuntime.jsx("span",{...N,children:String(x)}):String(x),children:D}):D,P=jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[o&&jsxRuntime.jsx("span",{className:"text-text-muted",children:o}),A,n&&jsxRuntime.jsx("span",{className:"text-text-muted",children:n})]}),T=P;if(d&&x&&x!==a){let R=typeof d=="function"?d(t):String(x);T=jsxRuntime.jsx(ro,{value:R,size:"sm",children:P});}if(v){let R=Se(m,p);return jsxRuntime.jsx("div",{className:R,children:wr(T,v,t,s,l,c)})}let E=Se(m,tailwindMerge.twMerge(tr(c),p));return jsxRuntime.jsx("div",{className:E,children:T})}var dN={sm:"sm:hidden",md:"md:hidden",lg:"lg:hidden",xl:"xl:hidden"},uN={sm:"hidden sm:grid",md:"hidden md:grid",lg:"hidden lg:grid",xl:"hidden xl:grid"};function Ts(e,t){return t.accessor?typeof t.accessor=="function"?t.accessor(e):e[t.accessor]:null}function Ps(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 Ds({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"),l=a.filter(d=>d.mobileFormat==="badge"),c={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=Ts(e,d);return jsxRuntime.jsx("div",{className:"font-medium text-text-body [&>*]:!justify-start [&>*]:!text-left",children:Ps(m,e,d,c)},d.id)})}),l.length>0&&jsxRuntime.jsx("div",{className:"ml-2 flex flex-wrap gap-1",children:l.map(d=>{let m=Ts(e,d);return jsxRuntime.jsx("div",{className:"inline-flex",children:Ps(m,e,d,c)},d.id)})})]}),s.length>0&&jsxRuntime.jsx("div",{className:"space-y-1",children:s.map(d=>{let m=Ts(e,d),p=d.showLabel&&d.label;return jsxRuntime.jsxs("div",{className:"flex items-center text-sm text-text-muted",children:[d.icon&&jsxRuntime.jsx(k,{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:Ps(m,e,d,c)})]},d.id)})})]})}function As({row:e,columns:t,density:r,isLoading:o,onClick:n}){let a=t.filter(l=>l.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((l,c)=>{let u=Ts(e,l),d=c===0;return jsxRuntime.jsxs("div",{children:[!d&&jsxRuntime.jsx("div",{className:"text-xs text-text-muted",children:l.label}),jsxRuntime.jsx("div",{className:tailwindMerge.twMerge(d?"font-medium text-text-body":"text-sm text-text-body","[&>*]:!justify-start [&>*]:!text-left"),children:Ps(u,e,l,i)})]},l.id)})})})}function Mg(e="md"){return {mobile:dN[e],desktop:uN[e]}}function Eg({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 zd={compact:"py-1.5 px-3 text-sm",default:"py-3 px-4 text-sm",relaxed:"py-4 px-4 text-base"},Vd={left:"text-left justify-start",center:"text-center justify-center",right:"text-right justify-end"},gN={full:"w-full",auto:"w-auto inline-block",contained:"w-full max-w-6xl mx-auto"},bN={auto:"table-auto",fixed:"table-fixed",responsive:"table-auto"};function Od(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 xN(e,t){return t.accessor?typeof t.accessor=="function"?t.accessor(e):e[t.accessor]:null}function hN({column:e,sortConfig:t,onSort:r,stickyHeader:o,stickyFirstColumn:n,isFirstColumn:a,density:i="default",isLoading:s=false}){let l=t?.columnId===e.id,c=l?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",zd[i],Vd[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",l?"font-bold text-text-body":"font-medium text-text-muted"),onClick:()=>!s&&e.sortable&&r(e.id),role:"columnheader","aria-sort":l?c==="asc"?"ascending":"descending":"none","aria-disabled":s,style:Od(e),children:s?jsxRuntime.jsx(V,{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:l?jsxRuntime.jsx(k,{name:c==="asc"?"CaretUp":"CaretDown",size:14,weight:"bold",className:"text-text-body"}):jsxRuntime.jsx(k,{name:"CaretUpDown",size:12,className:"text-text-muted opacity-40"})})]})})}function yN({column:e,row:t,rowIndex:r,columnIndex:o,isHovered:n,density:a="default",className:i,stickyFirstColumn:s}){let l=s&&o===0,c=xN(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(c,t):e.cellProps;d=jsxRuntime.jsx(m,{value:c,row:t,context:u,...p});}else e.render?d=e.render(c,t,u):d=jsxRuntime.jsx("span",{className:"truncate",children:c?.toString()??""});if(e.popover){let m=e.popover,p,g="top",f=false,b="hover";typeof m=="string"?p=m:typeof m=="function"?p=m(c,t):(p=typeof m.content=="function"?m.content(c,t):m.content,g=m.placement||"top",f=m.showArrow??false,b=m.trigger||"hover"),d=jsxRuntime.jsxs(reactAriaComponents.DialogTrigger,{...b==="hover"?{trigger:"longPress"}:{},children:[jsxRuntime.jsx("div",{className:"cursor-help",children:d}),jsxRuntime.jsx(qe,{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?"":zd[a],Vd[e.align||"left"],l&&"sticky left-0 z-10 shadow-[2px_0_4px_-2px_rgba(0,0,0,0.1)]",i),role:"cell",style:Od(e),children:d})}function vN({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 l=e.cell,c=typeof e.cellProps=="function"?e.cellProps(null,{}):e.cellProps;s=jsxRuntime.jsx(l,{value:null,row:{},context:i,...c});}else e.render?s=e.render(null,{},i):s=jsxRuntime.jsx(V,{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?"":zd[o],Vd[e.align||"left"],a&&"sticky left-0 z-10 shadow-[2px_0_4px_-2px_rgba(0,0,0,0.1)]"),role:"cell",style:Od(e),children:s})}function CN(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 Ig({columns:e,row:t,rowIndex:r,density:o="default",onClick:n,stickyFirstColumn:a}){let[i,s]=De.useState(false),l=De.useCallback(c=>{if(!n)return;let u=c.target,d=c.currentTarget;CN(u,d)||n(t);},[n,t]);return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("contents group",n&&"cursor-pointer"),role:"row",onClick:l,onMouseEnter:()=>s(true),onMouseLeave:()=>s(false),children:e.map((c,u)=>jsxRuntime.jsx(yN,{column:c,row:t,rowIndex:r,columnIndex:u,isHovered:i,density:o,className:n?"group-hover:bg-background-hover":"",stickyFirstColumn:a},c.id))})}function Fg({columns:e,rowIndex:t,density:r="default",stickyFirstColumn:o}){return jsxRuntime.jsx("div",{className:"contents",role:"row",children:e.map((n,a)=>jsxRuntime.jsx(vN,{column:n,rowIndex:t,columnIndex:a,density:r,stickyFirstColumn:o},n.id))})}function Vg({columns:e,data:t,className:r,density:o="default",width:n="full",height:a,maxHeight:i,layout:s="auto",mobileRenderer:l="auto",customMobileRowRender:c,mobileBreakpoint:u="md",isLoading:d=false,loadingState:m,loadingRowCount:p=5,onLoadMore:g,hasMore:f=false,enableVirtualization:b,estimatedRowHeight:x,loadingIndicator:v,stickyHeader:y=false,stickyFirstColumn:C=false,onRowClick:S,getRowId:w,hideHeader:N=false,sortConfig:L,onSort:D,"aria-label":A}){let[P,T]=De.useState(null),E=L!==void 0,R=E?L:P,J=De.useRef(null),X=g?qr({items:t,onLoadMore:g,hasMore:f,isLoading:d,loadingState:m,enableVirtualization:b,estimatedItemSize:x||(o==="compact"?40:o==="relaxed"?60:48),overscan:5}):null,q=X?.scrollRef??J,{loadMoreRef:$,virtualizer:j,virtualItems:M,isLoadingMore:W,computedLoadingState:U}=X||{},I=De.useMemo(()=>e.map(O=>{if(O.width)return typeof O.width=="number"?`${O.width}px`:O.width;if(O.flex)return `${O.flex}fr`;if(O.minWidth&&O.maxWidth){let Q=typeof O.minWidth=="number"?`${O.minWidth}px`:O.minWidth,fe=typeof O.maxWidth=="number"?`${O.maxWidth}px`:O.maxWidth;return `minmax(${Q}, ${fe})`}return O.minWidth?`minmax(${typeof O.minWidth=="number"?`${O.minWidth}px`:O.minWidth}, 1fr)`:O.maxWidth?`minmax(0, ${typeof O.maxWidth=="number"?`${O.maxWidth}px`:O.maxWidth})`:"1fr"}).join(" "),[e]),Y=De.useCallback(O=>{if(!e.find(ne=>ne.id===O)?.sortable)return;let fe;R?.columnId===O?fe={columnId:O,direction:R.direction==="asc"?"desc":"asc"}:fe={columnId:O,direction:"asc"},E||T(fe),D?.(fe);},[e,R,D,E]),F=U==="loading"||d&&t.length===0,h={};a?(h.height=typeof a=="number"?`${a}px`:a,h.overflowY="auto"):i?(h.maxHeight=typeof i=="number"?`${i}px`:i,h.overflowY="auto"):g&&(h.height="600px",h.overflowY="auto");let z=tailwindMerge.twMerge(gN[n],!g&&(s==="responsive"?"overflow-x-auto":"overflow-auto"),r),B=Mg(u),G=l!=="none",oe=(O,Q)=>G?l==="custom"&&c?c(O,Q):jsxRuntime.jsx(l==="cards"?As:Ds,{row:O,columns:e,density:o,isLoading:d,onClick:S?()=>S(O):void 0}):null,me=j?M?.map(O=>({virtualItem:O,row:t[O.index],index:O.index}))||[]:t.map((O,Q)=>({row:O,index:Q,virtualItem:null}));return jsxRuntime.jsxs("div",{ref:q,className:z,style:{...h,position:j?"relative":void 0},children:[jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("grid border-separate border-spacing-0",bN[s],n==="auto"?"inline-grid w-auto":"w-full",G&&B.desktop),role:"table","aria-label":A,style:{gridTemplateColumns:I},children:[!N&&jsxRuntime.jsx("div",{className:"contents",role:"rowgroup",children:e.map((O,Q)=>jsxRuntime.jsx(hN,{column:O,sortConfig:R,onSort:Y,stickyHeader:y,stickyFirstColumn:C,isFirstColumn:Q===0,density:o,isLoading:F},O.id))}),j?jsxRuntime.jsx("div",{className:"col-span-full",style:{gridColumn:"1 / -1",height:`${j.getTotalSize()}px`,position:"relative"},role:"rowgroup",children:F?Array.from({length:p}).map((O,Q)=>jsxRuntime.jsx("div",{className:"contents",children:jsxRuntime.jsx(Fg,{columns:e,rowIndex:Q,density:o,stickyFirstColumn:C})},`loading-${Q}`)):t.length>0?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[me.map(({row:O,index:Q,virtualItem:fe})=>{if(!O||!fe)return null;let ne=w?w(O):`row-${Q}`;return jsxRuntime.jsx("div",{style:{position:"absolute",top:0,left:0,width:"100%",display:"grid",gridTemplateColumns:I,transform:`translateY(${fe.start}px)`},"data-index":fe.index,ref:j.measureElement,children:jsxRuntime.jsx(Ig,{columns:e,row:O,rowIndex:Q,density:o,onClick:S,stickyFirstColumn:C})},ne)}),W&&jsxRuntime.jsx("div",{style:{position:"absolute",top:`${j.getTotalSize()}px`,left:0,width:"100%"},children:v||jsxRuntime.jsx(qt,{state:"loading-more"})})]}):jsxRuntime.jsx("div",{className:"py-12 text-center text-text-muted",children:"No data available"})}):jsxRuntime.jsx("div",{className:"contents",role:"rowgroup",children:F?Array.from({length:p}).map((O,Q)=>jsxRuntime.jsx(Fg,{columns:e,rowIndex:Q,density:o,stickyFirstColumn:C},`loading-${Q}`)):t.length>0?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[me.map(({row:O,index:Q})=>{if(!O)return null;let fe=w?w(O):`row-${Q}`;return jsxRuntime.jsx(Ig,{columns:e,row:O,rowIndex:Q,density:o,onClick:S,stickyFirstColumn:C},fe)}),W&&jsxRuntime.jsx("div",{className:"col-span-full",style:{gridColumn:"1 / -1"},children:v||jsxRuntime.jsx(qt,{state:"loading-more"})})]}):jsxRuntime.jsx("div",{className:"col-span-full py-12 text-center text-text-muted",role:"row",children:jsxRuntime.jsx("div",{role:"cell",children:"No data available"})})})]}),G&&jsxRuntime.jsx("div",{className:B.mobile,children:F?Array.from({length:p}).map((O,Q)=>jsxRuntime.jsx(Eg,{density:o},`mobile-loading-${Q}`)):t.length>0?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[me.map(({row:O,index:Q})=>{if(!O)return null;let fe=w?w(O):`mobile-row-${Q}`;return jsxRuntime.jsx("div",{className:"border-b border-border-default last:border-b-0",children:oe(O,Q)},fe)}),W&&(v||jsxRuntime.jsx(qt,{state:"loading-more"}))]}):jsxRuntime.jsx("div",{className:"py-12 text-center text-text-muted",children:"No data available"})}),g&&f&&!F&&(j?jsxRuntime.jsx("div",{ref:$,style:{position:"absolute",top:`${j.getTotalSize()}px`,left:0,width:"100%",height:1}}):jsxRuntime.jsx("div",{ref:$,className:"h-px w-full"}))]})}function Hg({status:e,alertCount:t,showCount:r=false,isLoading:o,size:n="sm",shape:a="pill",...i}){if(o)return jsxRuntime.jsx(V,{className:"inline-flex h-6 w-20"});let s={healthy:"success",warning:"warning",error:"error",unknown:"neutral"},l={healthy:"Healthy",warning:"Warning",error:"Error",unknown:"Unknown"},c=e==="warning"||e==="error",u=r&&t?`${l[e]} (${t})`:l[e];return jsxRuntime.jsx(We,{variant:s[e],size:n,shape:a,dot:c,dotPulse:c,...i,children:u})}var NN={battery:"BatteryHigh",charger:"ChargingStation",thermostat:"ThermometerSimple",inverter:"Power",vehicle:"Car",meter:"Gauge",gateway:"WifiHigh",other:"Cube",unknown:"Question"},wN={battery:"Battery",charger:"Charger",thermostat:"Thermostat",inverter:"Inverter",vehicle:"Vehicle",meter:"Meter",gateway:"Gateway",other:"Other",unknown:"Unknown"};function Wg({deviceType:e,iconName:t,size:r="md",showLabel:o=false,className:n}){let a=t||(e?NN[e]:"Question"),i=e?wN[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(k,{name:a,size:r}),o&&i&&jsxRuntime.jsx("span",{className:"text-xs text-text-muted",children:i})]})}function Ba({children:e,title:t,headerContent:r,titleAlign:o="left",hideCloseIcon:n=false,hasBackArrow:a=false,onBack:i,isOpen:s,slideInFrom:l="right",transparentOverlay:c=false,onClose:u,className:d,primaryAction:m,secondaryAction:p,footerContent:g,contentPadding:f=true,maxWidth:b="400px"}){if(!s)return null;let x=t||r,v=m||p||g;return jsxRuntime.jsx(nr,{children:jsxRuntime.jsx(Vt,{isOpen:s,onOpenChange:y=>!y&&u?.(),isDismissable:true,transparent:c,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",l==="right"?"right-0":"left-0",l==="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",l==="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(xt,{title:t,headerContent:r,titleAlign:o,hideCloseIcon:n,hasBackArrow:true,onBack:i,onClose:u}):jsxRuntime.jsx(xt,{title:t,headerContent:r,titleAlign:o,hideCloseIcon:n,onClose:u})),jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("flex-1 overflow-y-auto overscroll-contain",f?"px-6 py-6":"p-0"),children:e}),v&&jsxRuntime.jsx($r,{primaryAction:m,secondaryAction:p,footerContent:g})]})})})})}Ba.displayName="Drawer";var DN={sm:"gap-4 px-6 py-8",md:"gap-5 px-8 py-12",lg:"gap-6 px-10 py-16"},AN={sm:"xs",md:"sm",lg:"md"},LN={sm:"text-sm leading-5",md:"text-sm leading-5",lg:"text-base leading-6"},MN={sm:"h-10 w-10",md:"h-12 w-12",lg:"h-16 w-16"},EN={sm:20,md:24,lg:32},IN={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"},FN={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 Yg({icon:e,title:t,description:r,primaryAction:o,secondaryAction:n,actions:a,size:i="md",alignment:s="center",variant:l="default",spotlightPattern:c="mesh",fullHeight:u=false,className:d}){let m=i==="sm"?"sm":"md",p=l==="spotlight",g=p?{background:FN[c]}: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(_,{variant:"secondary",size:m,onPress:o.onPress,isDisabled:o.isDisabled,isLoading:o.isLoading,href:o.href,children:o.label}):jsxRuntime.jsx(_,{variant:"secondary",size:m,onPress:o.onPress,isDisabled:o.isDisabled,isLoading:o.isLoading,children:o.label})),n&&jsxRuntime.jsx(Oe,{href:n.href||"#",variant:"muted",onPress:n.onPress,className:"text-sm",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-body",DN[i],IN[s],u?"h-full pt-[15vh]":"",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-muted",MN[i]),children:jsxRuntime.jsx(k,{name:e,size:EN[i]})}),jsxRuntime.jsx(Tt,{size:AN[i],tag:"h2",className:"text-text-muted leading-tight",children:t}),r&&jsxRuntime.jsx("p",{className:tailwindMerge.twMerge("max-w-xs text-text-muted whitespace-pre-line",LN[i]),children:r}),f()]})}function Jg({status:e,programName:t,isLoading:r,size:o="sm",shape:n="pill",...a}){if(r)return jsxRuntime.jsx(V,{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"},l=jsxRuntime.jsx(We,{variant:i[e],size:o,shape:n,...a,children:s[e]});return t?jsxRuntime.jsx(Pt,{content:t,children:l}):l}function Zg({value:e,onChange:t,onUrlChange:r,accept:o="image/*",maxSize:n,isDisabled:a=false,onUpload:i,className:s,showPreview:l=true,placeholder:c="Drop files here or click to browse"}){let[u,d]=De.useState(false),[m,p]=De.useState(false),[g,f]=De.useState(null),[b,x]=De.useState(e),v=De.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(l&&w.type.startsWith("image/")){let N=new FileReader;N.onloadend=()=>{x(N.result);},N.readAsDataURL(w);}if(i){p(true);try{let N=await i(w);x(N),r?.(N);}catch(N){f("Failed to upload file"),console.error("Upload error:",N);}finally{p(false);}}t?.(w,b);},C=async w=>{try{let N=w.items;if(N.length>0){let L=N[0];if(L.kind==="file"){let D=await L.getFile();D&&y(D);}}}catch(N){f("Failed to upload file"),console.error("Upload error:",N);}finally{d(false);}},S=()=>{x(void 0),f(null),t?.(null),r?.(""),v.current&&(v.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:C,onDropEnter:()=>d(true),onDropExit:()=>d(false),children:[b?jsxRuntime.jsxs("div",{className:"relative flex h-full w-full items-center justify-center p-4",children:[l&&b.startsWith("data:image")?jsxRuntime.jsx("img",{src:b,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-muted"}),jsxRuntime.jsx("span",{className:"text-sm text-text-muted",children:"File uploaded"})]}),!a&&jsxRuntime.jsx(_,{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-muted"}),jsxRuntime.jsxs("div",{className:"text-center",children:[jsxRuntime.jsx("p",{className:"text-sm text-text-body",children:c}),jsxRuntime.jsx("p",{className:"mt-1 text-xs text-text-muted",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(_,{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-muted",children:"Uploading..."})]})})]}),g&&jsxRuntime.jsx("p",{className:"mt-2 text-sm text-feedback-error-text",children:g})]})}function jg({version:e,isLatest:t,updateAvailable:r,isLoading:o,size:n="sm",shape:a="rounded",...i}){if(o)return jsxRuntime.jsx(V,{className:"inline-flex h-6 w-16"});let s="neutral",l=e;return t?s="success":r&&(s="warning",l=`${e} (Update)`),jsxRuntime.jsx(We,{variant:s,size:n,shape:a,...i,children:l})}function Gn(e){return jsxRuntime.jsx(reactAriaComponents.Form,{validationBehavior:"aria",...e,className:tailwindMerge.twMerge("flex flex-col gap-6",e.className)})}function $g({placeholder:e="Search...",value:t,onChange:r,isOpen:o,onOpenChange:n,trigger:a,children:i,showShortcutHint:s=true,showInput:l=true,className:c}){let[u,d]=De.useState(false),m=St("(max-width: 767px)"),p=o!==void 0?o:u,g=De.useCallback(v=>{n?n(v):d(v);},[n]);De.useEffect(()=>{let v=y=>{(y.metaKey||y.ctrlKey)&&y.key==="k"&&(y.preventDefault(),g(!p)),y.key==="Escape"&&p&&g(false);};return window.addEventListener("keydown",v),()=>window.removeEventListener("keydown",v)},[p,g]);let f=De.useCallback(v=>{r?.(v);},[r]),b=jsxRuntime.jsxs("button",{type:"button",className:"flex items-center gap-2 px-3 py-2 text-sm text-text-muted hover:text-text-body hover:bg-background-hover rounded-md transition-colors","aria-label":"Open search",children:[jsxRuntime.jsx(k,{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"})]})]}),x=a===null||De.isValidElement(a)&&a.type===De.Fragment&&!a.props.children;return m?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[!x&&(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:b})),jsxRuntime.jsx(Ze,{isOpen:p,onClose:()=>g(false),hideCloseIcon:false,contentPadding:false,maxHeight:"90vh",children:jsxRuntime.jsxs("div",{className:"flex flex-col h-full",children:[l&&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:c,autoFocus:true})}),jsxRuntime.jsx("div",{className:"flex-1 min-h-0 overflow-hidden",children:i})]})})]}):x?null:jsxRuntime.jsxs(reactAriaComponents.DialogTrigger,{isOpen:p,onOpenChange:g,children:[a||b,jsxRuntime.jsx(qe,{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:[l&&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:c,autoFocus:true})}),jsxRuntime.jsx("div",{className:"max-h-[500px] overflow-hidden",children:i})]})})]})}function tb({placeholder:e="Search...",value:t,onChange:r,isOpen:o,onOpenChange:n,children:a,maxHeight:i="400px",variant:s="default",className:l}){let[c,u]=De.useState(false),d=St("(max-width: 767px)"),m=De.useRef(null),p=De.useRef(null),g=o!==void 0?o:c,f=De.useCallback(A=>{n?n(A):u(A);},[n]);De.useEffect(()=>{let A=P=>{(P.metaKey||P.ctrlKey)&&P.key==="k"&&(P.preventDefault(),f(!g)),P.key==="Escape"&&g&&f(false);};return window.addEventListener("keydown",A),()=>window.removeEventListener("keydown",A)},[g,f]),De.useEffect(()=>{g&&!d&&m.current&&setTimeout(()=>{m.current?.querySelector("input")?.focus();},0);},[g,d]),De.useEffect(()=>{if(!g||d)return;let A=P=>{let T=P.target,E=m.current?.contains(T),R=p.current?.contains(T);!E&&!R&&f(false);};return document.addEventListener("mousedown",A,true),()=>document.removeEventListener("mousedown",A,true)},[g,d,f]);let b=A=>{r?.(A);},x=De.useCallback(()=>{f(false);},[f]),v=De.useCallback(()=>{r?.("");},[r]),[y,C]=De.useState(null);De.useEffect(()=>{if(g&&!d&&m.current){let A=null,P=()=>{let E=m.current?.getBoundingClientRect();E&&C({top:E.bottom+8,left:E.left,width:E.width});},T=()=>{A===null&&(A=requestAnimationFrame(()=>{P(),A=null;}));};return P(),window.addEventListener("resize",T),window.addEventListener("scroll",T,true),()=>{window.removeEventListener("resize",T),window.removeEventListener("scroll",T,true),A!==null&&cancelAnimationFrame(A);}}},[g,d]);let S=De.useCallback(()=>{f(true);},[f]);if(d)return jsxRuntime.jsxs("div",{className:l,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(k,{name:"MagnifyingGlass",size:"md"})}),jsxRuntime.jsxs(Ze,{isOpen:g,onClose:x,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:b,placeholder:e,showSearchIcon:true,isClearable:!!t,onClear:v,reserveErrorSpace:false,autoFocus:true})}),jsxRuntime.jsx(_,{variant:"icon",onPress:x,"aria-label":"Close search",className:"flex-shrink-0",children:jsxRuntime.jsx(k,{name:"X",size:"md"})})]}),jsxRuntime.jsx("div",{className:"mt-4",children:a})]})]},"mobile");let w=A=>{let T=A.target.tagName==="INPUT";if(A.key==="ArrowDown"&&g&&T){A.preventDefault();let E=p.current?.querySelector("[data-search-result]");E&&E.focus();}},N=A=>{let P=A.target;if(!P.hasAttribute("data-search-result"))return;let E=Array.from(p.current?.querySelectorAll("[data-search-result]")||[]),R=E.indexOf(P);if(A.key==="ArrowDown"){A.preventDefault(),A.stopPropagation();let J=Math.min(R+1,E.length-1);E[J]?.focus();}else if(A.key==="ArrowUp")if(A.preventDefault(),A.stopPropagation(),R===0)m.current?.querySelector("input")?.focus();else {let J=Math.max(R-1,0);E[J]?.focus();}else A.key==="Escape"&&(A.preventDefault(),A.stopPropagation(),f(false),m.current?.querySelector("input")?.focus());},L=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,D=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 ${l||""}`,onKeyDown:w,children:[jsxRuntime.jsx(er,{value:t,onChange:b,placeholder:e,showSearchIcon:true,isClearable:!!t,onClear:()=>r?.(""),reserveErrorSpace:false,className:D,onFocus:()=>f(true)}),L]},"desktop")}function rb({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-muted mb-3",children:jsxRuntime.jsx(k,{name:r,size:48})}),jsxRuntime.jsx("p",{className:"text-base font-medium text-text-body mb-1",children:e}),t&&jsxRuntime.jsx("p",{className:"text-sm text-text-muted max-w-xs",children:t})]})}function nb({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(V,{width:20,height:20,variant:"circle"}),jsxRuntime.jsxs("div",{className:"flex-1 min-w-0 space-y-2",children:[jsxRuntime.jsx(V,{width:"60%",height:16}),jsxRuntime.jsx(V,{width:"40%",height:12})]}),jsxRuntime.jsx(V,{width:16,height:16})]},o))})}function ib({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-heading",children:e}),!r&&t!==void 0&&jsxRuntime.jsx("span",{className:"text-xs text-text-muted",children:t}),r&&jsxRuntime.jsx("span",{className:"text-xs text-text-muted 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 sb({id:e,title:t,subtitle:r,metadata:o,icon:n,customIcon:a,onSelect:i,isFocused:s=false,className:l,testId:c}){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 b=document.querySelector('input[type="text"][placeholder*="Search"]');b&&b.focus();}break}case "Escape":{m.preventDefault();let g=document.querySelector('input[type="text"][placeholder*="Search"]');g&&g.focus();break}}},"data-testid":c,"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-body hover:bg-background-hover","focus-visible:bg-brand-light focus-visible:outline-none","data-[focused]:bg-background-hover",s&&"bg-background-hover",l),"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-muted",children:jsxRuntime.jsx(k,{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-heading truncate",children:t}),o&&jsxRuntime.jsx("span",{className:"text-xs text-text-muted flex-shrink-0",children:o})]}),r&&jsxRuntime.jsx("div",{className:"text-sm text-text-muted 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(k,{name:"ArrowRight",size:16,className:"text-text-muted"})})]})}function lb({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 db({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:`
94
+ `}})]})}var Yi={prefix:String(Math.round(Math.random()*1e10)),current:0},Qm=Ee__namespace.default.createContext(Yi),yC=Ee__namespace.default.createContext(false);var vC=!!(typeof window<"u"&&window.document&&window.document.createElement),_c=new WeakMap;function CC(e=false){let t=Ee.useContext(Qm),r=Ee.useRef(null);if(r.current===null&&!e){var o,n;let a=(n=Ee__namespace.default.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||n===void 0||(o=n.ReactCurrentOwner)===null||o===void 0?void 0:o.current;if(a){let i=_c.get(a);i==null?_c.set(a,{id:t.current,state:a.memoizedState}):a.memoizedState!==i.state&&(t.current=i.id,_c.delete(a));}r.current=++t.current;}return r.current}function SC(e){let t=Ee.useContext(Qm);t===Yi&&!vC&&process.env.NODE_ENV!=="production"&&console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");let r=CC(!!e),o=t===Yi&&process.env.NODE_ENV==="test"?"react-aria":`react-aria${t.prefix}`;return e||`${o}-${r}`}function wC(e){let t=Ee__namespace.default.useId(),[r]=Ee.useState(Ki()),o=r||process.env.NODE_ENV==="test"?"react-aria":`react-aria${Yi.prefix}`;return e||`${o}-${t}`}typeof Ee__namespace.default.useId=="function"?wC:SC;function TC(){return false}function kC(){return true}function PC(e){return ()=>{}}function Ki(){return typeof Ee__namespace.default.useSyncExternalStore=="function"?Ee__namespace.default.useSyncExternalStore(PC,TC,kC):Ee.useContext(yC)}function $m(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Ji(e,t,r){$m(e,t),t.set(e,r);}var RC=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),DC=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function td(e){if(Intl.Locale){let r=new Intl.Locale(e).maximize(),o=typeof r.getTextInfo=="function"?r.getTextInfo():r.textInfo;if(o)return o.direction==="rtl";if(r.script)return RC.has(r.script)}let t=e.split("-")[0];return DC.has(t)}var ef=Symbol.for("react-aria.i18n.locale");function tf(){let e=typeof window<"u"&&window[ef]||typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e]);}catch{e="en-US";}return {locale:e,direction:td(e)?"rtl":"ltr"}}var rd=tf(),Ca=new Set;function _m(){rd=tf();for(let e of Ca)e(rd);}function rf(){let e=Ki(),[t,r]=Ee.useState(rd);return Ee.useEffect(()=>(Ca.size===0&&window.addEventListener("languagechange",_m),Ca.add(r),()=>{Ca.delete(r),Ca.size===0&&window.removeEventListener("languagechange",_m);}),[]),e?{locale:typeof window<"u"&&window[ef]||"en-US",direction:"ltr"}:t}var IC=Ee__namespace.default.createContext(null);function od(){let e=rf();return Ee.useContext(IC)||e}function ji(e,t){return e-t*Math.floor(e/t)}var of=1721426;function qi(e,t,r,o){t=Xi(e,t);let n=t-1,a=-2;return r<=2?a=0:Zi(t)&&(a=-1),of-1+365*n+Math.floor(n/4)-Math.floor(n/100)+Math.floor(n/400)+Math.floor((367*r-362)/12+a+o)}function Zi(e){return e%4===0&&(e%100!==0||e%400===0)}function Xi(e,t){return e==="BC"?1-t:t}function FC(e){let t="AD";return e<=0&&(t="BC",e=1-e),[t,e]}var BC={standard:[31,28,31,30,31,30,31,31,30,31,30,31],leapyear:[31,29,31,30,31,30,31,31,30,31,30,31]},tr=class{fromJulianDay(t){let r=t,o=r-of,n=Math.floor(o/146097),a=ji(o,146097),i=Math.floor(a/36524),s=ji(a,36524),l=Math.floor(s/1461),c=ji(s,1461),d=Math.floor(c/365),u=n*400+i*100+l*4+d+(i!==4&&d!==4?1:0),[m,p]=FC(u),g=r-qi(m,p,1,1),f=2;r<qi(m,p,3,1)?f=0:Zi(p)&&(f=1);let b=Math.floor(((g+f)*12+373)/367),x=r-qi(m,p,b,1)+1;return new Vo(m,p,b,x)}toJulianDay(t){return qi(t.era,t.year,t.month,t.day)}getDaysInMonth(t){return BC[Zi(t.year)?"leapyear":"standard"][t.month-1]}getMonthsInYear(t){return 12}getDaysInYear(t){return Zi(t.year)?366:365}getMaximumMonthsInYear(){return 12}getMaximumDaysInMonth(){return 31}getYearsInEra(t){return 9999}getEras(){return ["BC","AD"]}isInverseEra(t){return t.era==="BC"}balanceDate(t){t.year<=0&&(t.era=t.era==="BC"?"AD":"BC",t.year=1-t.year);}constructor(){this.identifier="gregory";}};function ad(e,t){var r,o,n,a;return (a=(n=(r=e.isEqual)===null||r===void 0?void 0:r.call(e,t))!==null&&n!==void 0?n:(o=t.isEqual)===null||o===void 0?void 0:o.call(t,e))!==null&&a!==void 0?a:e.identifier===t.identifier}function id(e,t){return e.calendar.toJulianDay(e)-t.calendar.toJulianDay(t)}function af(e,t){return nf(e)-nf(t)}function nf(e){return e.hour*36e5+e.minute*6e4+e.second*1e3+e.millisecond}var nd=null;function Oo(){return nd==null&&(nd=new Intl.DateTimeFormat().resolvedOptions().timeZone),nd}function co(e){e=Ut(e,new tr);let t=Xi(e.era,e.year);return cf(t,e.month,e.day,e.hour,e.minute,e.second,e.millisecond)}function cf(e,t,r,o,n,a,i){let s=new Date;return s.setUTCHours(o,n,a,i),s.setUTCFullYear(e,t-1,r),s.getTime()}function sd(e,t){if(t==="UTC")return 0;if(e>0&&t===Oo())return new Date(e).getTimezoneOffset()*-6e4;let{year:r,month:o,day:n,hour:a,minute:i,second:s}=df(e,t);return cf(r,o,n,a,i,s,0)-Math.floor(e/1e3)*1e3}var sf=new Map;function df(e,t){let r=sf.get(t);r||(r=new Intl.DateTimeFormat("en-US",{timeZone:t,hour12:false,era:"short",year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"}),sf.set(t,r));let o=r.formatToParts(new Date(e)),n={};for(let a of o)a.type!=="literal"&&(n[a.type]=a.value);return {year:n.era==="BC"||n.era==="B"?-n.year+1:+n.year,month:+n.month,day:+n.day,hour:n.hour==="24"?0:+n.hour,minute:+n.minute,second:+n.second}}var lf=864e5;function zC(e,t,r,o){return (r===o?[r]:[r,o]).filter(a=>VC(e,t,a))}function VC(e,t,r){let o=df(r,t);return e.year===o.year&&e.month===o.month&&e.day===o.day&&e.hour===o.hour&&e.minute===o.minute&&e.second===o.second}function ur(e,t,r="compatible"){let o=Nr(e);if(t==="UTC")return co(o);if(t===Oo()&&r==="compatible"){o=Ut(o,new tr);let l=new Date,c=Xi(o.era,o.year);return l.setFullYear(c,o.month-1,o.day),l.setHours(o.hour,o.minute,o.second,o.millisecond),l.getTime()}let n=co(o),a=sd(n-lf,t),i=sd(n+lf,t),s=zC(o,t,n-a,n-i);if(s.length===1)return s[0];if(s.length>1)switch(r){case "compatible":case "earlier":return s[0];case "later":return s[s.length-1];case "reject":throw new RangeError("Multiple possible absolute times found")}switch(r){case "earlier":return Math.min(n-a,n-i);case "compatible":case "later":return Math.max(n-a,n-i);case "reject":throw new RangeError("No such absolute time found")}}function ld(e,t,r="compatible"){return new Date(ur(e,t,r))}function rr(e,t){let r=sd(e,t),o=new Date(e+r),n=o.getUTCFullYear(),a=o.getUTCMonth()+1,i=o.getUTCDate(),s=o.getUTCHours(),l=o.getUTCMinutes(),c=o.getUTCSeconds(),d=o.getUTCMilliseconds();return new Fn(n<1?"BC":"AD",n<1?-n+1:n,a,i,t,r,s,l,c,d)}function Qi(e,t){return rr(e.getTime(),t)}function Nr(e,t){let r=0,o=0,n=0,a=0;if("timeZone"in e)({hour:r,minute:o,second:n,millisecond:a}=e);else if("hour"in e&&true)return e;return new Sa(e.calendar,e.era,e.year,e.month,e.day,r,o,n,a)}function Ut(e,t){if(ad(e.calendar,t))return e;let r=t.fromJulianDay(e.calendar.toJulianDay(e)),o=e.copy();return o.calendar=t,o.era=r.era,o.year=r.year,o.month=r.month,o.day=r.day,Wr(o),o}function cd(e,t,r){if(e instanceof Fn)return e.timeZone===t?e:dd(e,t);let o=ur(e,t,r);return rr(o,t)}function uf(e){let t=co(e)-e.offset;return new Date(t)}function dd(e,t){let r=co(e)-e.offset;return Ut(rr(r,t),e.calendar)}var wa=36e5;function Ta(e,t){let r=e.copy(),o="hour"in r?GC(r,t):0;ud(r,t.years||0),r.calendar.balanceYearMonth&&r.calendar.balanceYearMonth(r,e),r.month+=t.months||0,pd(r),pf(r),r.day+=(t.weeks||0)*7,r.day+=t.days||0,r.day+=o,HC(r),r.calendar.balanceDate&&r.calendar.balanceDate(r),r.year<1&&(r.year=1,r.month=1,r.day=1);let n=r.calendar.getYearsInEra(r);if(r.year>n){var a,i;let l=(a=(i=r.calendar).isInverseEra)===null||a===void 0?void 0:a.call(i,r);r.year=n,r.month=l?1:r.calendar.getMonthsInYear(r),r.day=l?1:r.calendar.getDaysInMonth(r);}r.month<1&&(r.month=1,r.day=1);let s=r.calendar.getMonthsInYear(r);return r.month>s&&(r.month=s,r.day=r.calendar.getDaysInMonth(r)),r.day=Math.max(1,Math.min(r.calendar.getDaysInMonth(r),r.day)),r}function ud(e,t){var r,o;!((r=(o=e.calendar).isInverseEra)===null||r===void 0)&&r.call(o,e)&&(t=-t),e.year+=t;}function pd(e){for(;e.month<1;)ud(e,-1),e.month+=e.calendar.getMonthsInYear(e);let t=0;for(;e.month>(t=e.calendar.getMonthsInYear(e));)e.month-=t,ud(e,1);}function HC(e){for(;e.day<1;)e.month--,pd(e),e.day+=e.calendar.getDaysInMonth(e);for(;e.day>e.calendar.getDaysInMonth(e);)e.day-=e.calendar.getDaysInMonth(e),e.month++,pd(e);}function pf(e){e.month=Math.max(1,Math.min(e.calendar.getMonthsInYear(e),e.month)),e.day=Math.max(1,Math.min(e.calendar.getDaysInMonth(e),e.day));}function Wr(e){e.calendar.constrainDate&&e.calendar.constrainDate(e),e.year=Math.max(1,Math.min(e.calendar.getYearsInEra(e),e.year)),pf(e);}function mf(e){let t={};for(let r in e)typeof e[r]=="number"&&(t[r]=-e[r]);return t}function md(e,t){return Ta(e,mf(t))}function _i(e,t){let r=e.copy();return t.era!=null&&(r.era=t.era),t.year!=null&&(r.year=t.year),t.month!=null&&(r.month=t.month),t.day!=null&&(r.day=t.day),Wr(r),r}function Na(e,t){let r=e.copy();return t.hour!=null&&(r.hour=t.hour),t.minute!=null&&(r.minute=t.minute),t.second!=null&&(r.second=t.second),t.millisecond!=null&&(r.millisecond=t.millisecond),ff(r),r}function WC(e){e.second+=Math.floor(e.millisecond/1e3),e.millisecond=$i(e.millisecond,1e3),e.minute+=Math.floor(e.second/60),e.second=$i(e.second,60),e.hour+=Math.floor(e.minute/60),e.minute=$i(e.minute,60);let t=Math.floor(e.hour/24);return e.hour=$i(e.hour,24),t}function ff(e){e.millisecond=Math.max(0,Math.min(e.millisecond,1e3)),e.second=Math.max(0,Math.min(e.second,59)),e.minute=Math.max(0,Math.min(e.minute,59)),e.hour=Math.max(0,Math.min(e.hour,23));}function $i(e,t){let r=e%t;return r<0&&(r+=t),r}function GC(e,t){return e.hour+=t.hours||0,e.minute+=t.minutes||0,e.second+=t.seconds||0,e.millisecond+=t.milliseconds||0,WC(e)}function es(e,t,r,o){let n=e.copy();switch(t){case "era":{let s=e.calendar.getEras(),l=s.indexOf(e.era);if(l<0)throw new Error("Invalid era: "+e.era);l=Gr(l,r,0,s.length-1,o?.round),n.era=s[l],Wr(n);break}case "year":var a,i;!((a=(i=n.calendar).isInverseEra)===null||a===void 0)&&a.call(i,n)&&(r=-r),n.year=Gr(e.year,r,-1/0,9999,o?.round),n.year===-1/0&&(n.year=1),n.calendar.balanceYearMonth&&n.calendar.balanceYearMonth(n,e);break;case "month":n.month=Gr(e.month,r,1,e.calendar.getMonthsInYear(e),o?.round);break;case "day":n.day=Gr(e.day,r,1,e.calendar.getDaysInMonth(e),o?.round);break;default:throw new Error("Unsupported field "+t)}return e.calendar.balanceDate&&e.calendar.balanceDate(n),Wr(n),n}function fd(e,t,r,o){let n=e.copy();switch(t){case "hour":{let a=e.hour,i=0,s=23;if(o?.hourCycle===12){let l=a>=12;i=l?12:0,s=l?23:11;}n.hour=Gr(a,r,i,s,o?.round);break}case "minute":n.minute=Gr(e.minute,r,0,59,o?.round);break;case "second":n.second=Gr(e.second,r,0,59,o?.round);break;case "millisecond":n.millisecond=Gr(e.millisecond,r,0,999,o?.round);break;default:throw new Error("Unsupported field "+t)}return n}function Gr(e,t,r,o,n=false){if(n){e+=Math.sign(t),e<r&&(e=o);let a=Math.abs(t);t>0?e=Math.ceil(e/a)*a:e=Math.floor(e/a)*a,e>o&&(e=r);}else e+=t,e<r?e=o-(r-e-1):e>o&&(e=r+(e-o-1));return e}function gd(e,t){let r;if(t.years!=null&&t.years!==0||t.months!=null&&t.months!==0||t.weeks!=null&&t.weeks!==0||t.days!=null&&t.days!==0){let n=Ta(Nr(e),{years:t.years,months:t.months,weeks:t.weeks,days:t.days});r=ur(n,e.timeZone);}else r=co(e)-e.offset;r+=t.milliseconds||0,r+=(t.seconds||0)*1e3,r+=(t.minutes||0)*6e4,r+=(t.hours||0)*36e5;let o=rr(r,e.timeZone);return Ut(o,e.calendar)}function gf(e,t){return gd(e,mf(t))}function bf(e,t,r,o){switch(t){case "hour":{let n=0,a=23;if(o?.hourCycle===12){let g=e.hour>=12;n=g?12:0,a=g?23:11;}let i=Nr(e),s=Ut(Na(i,{hour:n}),new tr),l=[ur(s,e.timeZone,"earlier"),ur(s,e.timeZone,"later")].filter(g=>rr(g,e.timeZone).day===s.day)[0],c=Ut(Na(i,{hour:a}),new tr),d=[ur(c,e.timeZone,"earlier"),ur(c,e.timeZone,"later")].filter(g=>rr(g,e.timeZone).day===c.day).pop(),u=co(e)-e.offset,m=Math.floor(u/wa),p=u%wa;return u=Gr(m,r,Math.floor(l/wa),Math.floor(d/wa),o?.round)*wa+p,Ut(rr(u,e.timeZone),e.calendar)}case "minute":case "second":case "millisecond":return fd(e,t,r,o);case "era":case "year":case "month":case "day":{let n=es(Nr(e),t,r,o),a=ur(n,e.timeZone);return Ut(rr(a,e.timeZone),e.calendar)}default:throw new Error("Unsupported field "+t)}}function xf(e,t,r){let o=Nr(e),n=Na(_i(o,t),t);if(n.compare(o)===0)return e;let a=ur(n,e.timeZone,r);return Ut(rr(a,e.timeZone),e.calendar)}var UC=/^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})$/;var YC=/^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})(?:T(\d{2}))?(?::(\d{2}))?(?::(\d{2}))?(\.\d+)?(?:(?:([+-]\d{2})(?::?(\d{2}))?)|Z)$/;function ka(e){let t=e.match(UC);if(!t)throw YC.test(e)?new Error(`Invalid ISO 8601 date string: ${e}. Use parseAbsolute() instead.`):new Error("Invalid ISO 8601 date string: "+e);let r=new Vo(bd(t[1],0,9999),bd(t[2],1,12),1);return r.day=bd(t[3],1,r.calendar.getDaysInMonth(r)),r}function bd(e,t,r){let o=Number(e);if(o<t||o>r)throw new RangeError(`Value out of range: ${t} <= ${o} <= ${r}`);return o}function hf(e){return `${String(e.hour).padStart(2,"0")}:${String(e.minute).padStart(2,"0")}:${String(e.second).padStart(2,"0")}${e.millisecond?String(e.millisecond/1e3).slice(1):""}`}function xd(e){let t=Ut(e,new tr),r;return t.era==="BC"?r=t.year===1?"0000":"-"+String(Math.abs(1-t.year)).padStart(6,"00"):r=String(t.year).padStart(4,"0"),`${r}-${String(t.month).padStart(2,"0")}-${String(t.day).padStart(2,"0")}`}function hd(e){return `${xd(e)}T${hf(e)}`}function JC(e){let t=Math.sign(e)<0?"-":"+";e=Math.abs(e);let r=Math.floor(e/36e5),o=Math.floor(e%36e5/6e4),n=Math.floor(e%36e5%6e4/1e3),a=`${t}${String(r).padStart(2,"0")}:${String(o).padStart(2,"0")}`;return n!==0&&(a+=`:${String(n).padStart(2,"0")}`),a}function yf(e){return `${hd(e)}${JC(e.offset)}[${e.timeZone}]`}function yd(e){let t=typeof e[0]=="object"?e.shift():new tr,r;if(typeof e[0]=="string")r=e.shift();else {let i=t.getEras();r=i[i.length-1];}let o=e.shift(),n=e.shift(),a=e.shift();return [t,r,o,n,a]}var jC=new WeakMap,Vo=class e{copy(){return this.era?new e(this.calendar,this.era,this.year,this.month,this.day):new e(this.calendar,this.year,this.month,this.day)}add(t){return Ta(this,t)}subtract(t){return md(this,t)}set(t){return _i(this,t)}cycle(t,r,o){return es(this,t,r,o)}toDate(t){return ld(this,t)}toString(){return xd(this)}compare(t){return id(this,t)}constructor(...t){Ji(this,jC,{writable:true,value:void 0});let[r,o,n,a,i]=yd(t);this.calendar=r,this.era=o,this.year=n,this.month=a,this.day=i,Wr(this);}};var qC=new WeakMap,Sa=class e{copy(){return this.era?new e(this.calendar,this.era,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond):new e(this.calendar,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond)}add(t){return Ta(this,t)}subtract(t){return md(this,t)}set(t){return _i(Na(this,t),t)}cycle(t,r,o){switch(t){case "era":case "year":case "month":case "day":return es(this,t,r,o);default:return fd(this,t,r,o)}}toDate(t,r){return ld(this,t,r)}toString(){return hd(this)}compare(t){let r=id(this,t);return r===0?af(this,Nr(t)):r}constructor(...t){Ji(this,qC,{writable:true,value:void 0});let[r,o,n,a,i]=yd(t);this.calendar=r,this.era=o,this.year=n,this.month=a,this.day=i,this.hour=t.shift()||0,this.minute=t.shift()||0,this.second=t.shift()||0,this.millisecond=t.shift()||0,Wr(this);}},ZC=new WeakMap,Fn=class e{copy(){return this.era?new e(this.calendar,this.era,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond):new e(this.calendar,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond)}add(t){return gd(this,t)}subtract(t){return gf(this,t)}set(t,r){return xf(this,t,r)}cycle(t,r,o){return bf(this,t,r,o)}toDate(){return uf(this)}toString(){return yf(this)}toAbsoluteString(){return this.toDate().toISOString()}compare(t){return this.toDate().getTime()-cd(t,this.timeZone).toDate().getTime()}constructor(...t){Ji(this,ZC,{writable:true,value:void 0});let[r,o,n,a,i]=yd(t),s=t.shift(),l=t.shift();this.calendar=r,this.era=o,this.year=n,this.month=a,this.day=i,this.timeZone=s,this.offset=l,this.hour=t.shift()||0,this.minute=t.shift()||0,this.second=t.shift()||0,this.millisecond=t.shift()||0,Wr(this);}};var vd=new Map;function Cd(e){let{locale:t}=od(),r=t+(e?Object.entries(e).sort((n,a)=>n[0]<a[0]?-1:1).join():"");if(vd.has(r))return vd.get(r);let o=new Intl.Collator(t,e);return vd.set(r,o),o}function ts(e){let t=Cd({usage:"search",...e}),r=Ee.useCallback((a,i)=>i.length===0?true:(a=a.normalize("NFC"),i=i.normalize("NFC"),t.compare(a.slice(0,i.length),i)===0),[t]),o=Ee.useCallback((a,i)=>i.length===0?true:(a=a.normalize("NFC"),i=i.normalize("NFC"),t.compare(a.slice(-i.length),i)===0),[t]),n=Ee.useCallback((a,i)=>{if(i.length===0)return true;a=a.normalize("NFC"),i=i.normalize("NFC");let s=0,l=i.length;for(;s+l<=a.length;s++){let c=a.slice(s,s+l);if(t.compare(i,c)===0)return true}return false},[t]);return Ee.useMemo(()=>({startsWith:r,endsWith:o,contains:n}),[r,o,n])}var tS=({isEntering:e,isExiting:t,className:r})=>["max-w-[200px] group bg-slate-700 dark:bg-slate-600 border border-slate-800 dark:border-white/10 shadow-[inset_0_1px_0_0_theme(colors.gray.600)] dark:shadow-none text-white 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 Et({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)=>tS({...n,className:o})),children:[jsxRuntime.jsx(reactAriaComponents.OverlayArrow,{children:jsxRuntime.jsx("svg",{width:8,height:8,viewBox:"0 0 8 8",className:"fill-slate-700 stroke-gray-800 group-placement-left:-rotate-90 group-placement-right:rotate-90 group-placement-bottom:rotate-180 dark:fill-slate-600 dark:stroke-white/10 forced-colors:fill-[Canvas] forced-colors:stroke-[ButtonBorder]",children:jsxRuntime.jsx("path",{d:"M0 0 L4 4 L8 0"})})}),t]})]})}function nr(){let[e,t]=Ee__namespace.default.useState(false),r=Ee__namespace.default.useCallback((n,a)=>{t(true),a?.(n);},[]),o=Ee__namespace.default.useCallback((n,a)=>{t(false),a?.(n);},[]);return {isFocused:e,handleFocus:r,handleBlur:o}}var ot=Ee__namespace.default.forwardRef(({children:e,className:t},r)=>jsxRuntime.jsx("div",{ref:r,className:tailwindMerge.twMerge("relative w-full",t),children:e}));ot.displayName="InputWrapper";function Pa({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-muted hover:text-text-body cursor-pointer",r),"aria-label":"Clear input",onMouseDown:o=>{o.preventDefault(),o.stopPropagation();},children:jsxRuntime.jsx(F,{name:"X",size:t==="sm"?16:20})})}function uo(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 Cf(e){return e.isDisabled?"bg-background-muted":e.transparent?"bg-transparent":"bg-background-input"}function rS(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 xt(e){let{isInvalid:t,isDisabled:r,isFocused:o,transparent:n,size:a="md",className:i}=e;return tailwindMerge.twMerge("w-full",uo({isInvalid:t,isDisabled:r,isFocused:o}),Cf({transparent:n,isDisabled:r}),Ae[a].text,Ae[a].height,Ae[a].padding,rS(a),i)}function oS(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",Cf({transparent:a,isDisabled:n}),Ae[t].height,uo({isFocused:r,isInvalid:o,isDisabled:n}),i)}function De({children:e,size:t="md",tooltip:r,description:o,descriptionPlacement:n="below",isRequired:a,className:i,htmlFor:s}){let l=r||o&&n==="tooltip",c=r||o,d=o&&n==="inline",u=jsxRuntime.jsxs("label",{htmlFor:s,className:tailwindMerge.twMerge(Ae[t].text,"!text-text-label font-semibold flex items-center gap-1",i),children:[e,a&&jsxRuntime.jsx("span",{children:"*"}),l&&jsxRuntime.jsx("span",{className:"text-text-muted",children:jsxRuntime.jsx(F,{name:"Info",size:t==="sm"?16:20})}),d&&jsxRuntime.jsx("span",{className:"text-text-caption font-normal ml-1",children:o})]});return l&&c?jsxRuntime.jsx(Et,{content:c,children:u}):u}function ye({size:e="md",className:t,children:r,...o}){return jsxRuntime.jsx("div",{...o,className:tailwindMerge.twMerge("leading-[2.25] text-text-caption",Ae[e].text,t),children:r})}function ce({children:e,size:t="md",className:r}){return jsxRuntime.jsx("div",{role:"alert",className:tailwindMerge.twMerge(Ae[t].text,"text-feedback-error-text",r),children:e})}function os({size:e="md",isInvalid:t,isDisabled:r,isFocused:o,transparent:n,className:a,...i}){return jsxRuntime.jsx("input",{className:xt({isInvalid:t,isDisabled:r,isFocused:o,transparent:n,size:e,className:a}),...i})}function Sf(e){let{children:t,...r}=e;return jsxRuntime.jsx("div",{...r,className:oS(e),children:typeof t=="function"?t(e):t})}function iS({children:e,...t}){return jsxRuntime.jsx(reactAriaComponents.ListBox,{...t,className:he(t.className,"outline-0"),children:e})}var Rd=Ee.createContext("md");function Pf(){return Ee.useContext(Rd)}function Td(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-placeholder overflow-hidden text-ellipsis whitespace-nowrap ${Ae[e].text} ${t}`}function pS(){let e=Ee__namespace.default.useCallback((r,o)=>{o?.(r);},[]),t=Ee__namespace.default.useCallback((r,o)=>{o?.(r);},[]);return {handleFocus:e,handleBlur:t}}function Wo({label:e,description:t,errorMessage:r,children:o,items:n,renderItem:a,renderSelectedValue:i,size:s="md",selectedKey:l,defaultSelectedKey:c,onSelectionChange:d,placeholder:u,showErrors:m=false,tooltip:p,isRequired:g,transparent:f,reserveErrorSpace:b=false,placement:x="bottom start",shouldFlip:v=true,menuWidth:y="match",descriptionPlacement:C="below",useMobileTray:N=true,...P}){let[T,B]=Ee.useState(null),[A,I]=Ee.useState(null),[L,M]=Ee.useState(false),S=l??T??c,{handleFocus:w,handleBlur:G}=pS(),{isMobile:K}=kt(),z=N&&K,j=Ee__namespace.default.useMemo(()=>!i||!S||!n?null:Array.from(n).find(Y=>Y.id===S)??null,[i,S,n]),Z=k=>{d&&k!==null&&d(k),d||B(k);},R=Ee.useRef(null),V=Ee.useRef(null),D=()=>{z&&M(!L);};return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(reactAriaComponents.Select,{...P,selectedKey:S,defaultSelectedKey:c,onSelectionChange:Z,placeholder:u,className:he(P.className,"group flex w-full flex-col"),ref:R,onOpenChange:k=>{z||(k&&V.current?I(V.current.offsetWidth):k||R.current?.blur());},children:({isDisabled:k,isInvalid:Y,isOpen:E})=>jsxRuntime.jsxs("div",{className:"flex flex-col",children:[e&&jsxRuntime.jsx(De,{size:s,tooltip:p,description:C==="tooltip"||C==="inline"?t:void 0,descriptionPlacement:C,isRequired:g,children:e}),jsxRuntime.jsx(ot,{children:jsxRuntime.jsx("div",{ref:V,children:jsxRuntime.jsxs(_,{variant:"unstyled",className:tailwindMerge.twMerge(xt({isInvalid:Y||m&&!!r,isDisabled:k,isFocused:z?L:E,transparent:f,size:s}),"flex items-center text-start gap-4 cursor-pointer pl-[var(--control-padding-sm)]"),onFocus:h=>w(h,P.onFocus),onBlur:h=>G(h,P.onBlur),onPress:z?D:void 0,"data-open":z?L:E,children:[i&&j?jsxRuntime.jsx("div",{className:Td(s),children:i(j)}):z&&S?jsxRuntime.jsx("div",{className:Td(s),children:n?Array.from(n).find(H=>H.id===S)?.label:String(S)}):jsxRuntime.jsx(reactAriaComponents.SelectValue,{className:Td(s)}),jsxRuntime.jsx(F,{name:"CaretDown","aria-hidden":true,className:tailwindMerge.twMerge("h-4 w-4 text-text-body group-disabled:text-gray-200 forced-colors:text-[ButtonText] transition-transform",(z?L:E)&&"rotate-180")})]})})}),b?jsxRuntime.jsx("div",{className:"mt-1 min-h-[20px]",children:m?jsxRuntime.jsx(ce,{size:s,className:"text-feedback-error-text",children:typeof r=="function"&&P.validationResult?r(P.validationResult):typeof r=="string"?r:null}):t&&C==="below"?jsxRuntime.jsx(ye,{size:s,children:t}):null}):jsxRuntime.jsx(jsxRuntime.Fragment,{children:m?jsxRuntime.jsx(ce,{size:s,className:"mt-1 text-feedback-error-text",children:typeof r=="function"&&P.validationResult?r(P.validationResult):typeof r=="string"?r:null}):t&&C==="below"?jsxRuntime.jsx(ye,{size:s,className:"mt-1",children:t}):null}),z?null:jsxRuntime.jsx(Ze,{className:"bg-background-input shadow-xl border border-border-input/20 backdrop-blur-sm rounded-[var(--control-border-radius)]",style:{width:y==="match"&&A?`${A}px`:void 0,minWidth:y==="auto"&&A?`${A}px`:void 0,maxWidth:y==="auto"?"min(600px, 90vw)":void 0},placement:x,shouldFlip:v,children:jsxRuntime.jsx(Rd.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?h=>jsxRuntime.jsx(At,{id:h.id,textValue:h.label,children:jsxRuntime.jsx("span",{className:"overflow-hidden text-ellipsis whitespace-nowrap min-w-0 flex-1",children:a(h)})},h.id):o})})})]})}),z&&jsxRuntime.jsx(Xe,{isOpen:L,onClose:()=>M(false),title:e??"Select an option",contentPadding:false,children:jsxRuntime.jsx(Rd.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:S!=null?[S]:[],onSelectionChange:k=>{let Y=Array.from(k)[0];Y!=null&&(Z(Y),M(false));},children:a&&n?k=>jsxRuntime.jsx(At,{id:k.id,textValue:k.label,children:jsxRuntime.jsx("span",{className:"overflow-hidden text-ellipsis whitespace-nowrap min-w-0 flex-1",children:a(k)})},k.id):o})})})]})}function At({size:e,className:t,...r}){let o=Pf(),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-body 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",Ae[n].paddingY,Ae[n].text,t)})}var wS=[],NS={sm:"h-4 w-4",md:"h-5 w-5",lg:"h-6 w-6",xl:"h-7 w-7"},TS={sm:"pl-8",md:"pl-10",lg:"pl-11",xl:"pl-13"},Df={sm:"py-1",md:"py-2",lg:"py-3",xl:"py-4"},Ed=(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 kS(e,t,r){try{let o=e.url.replace("{q}",t),n=new URLSearchParams;e.extraParams&&Object.entries(e.extraParams).forEach(([l,c])=>{n.append(l,c.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 PS(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 ss({label:e,staticItems:t=wS,sections:r,selectedKey:o,defaultSelectedKey:n,onSelectionChange:a,requestConfig:i,defaultFilter:s,placeholder:l,errorMessage:c,description:d,size:u="md",tooltip:m,isRequired:p,isDisabled:g,isInvalid:f,validationResult:b,showErrors:x=true,renderItem:v,renderLeftIcon:y,renderSection:C,autoFocus:N=false,reserveErrorSpace:P=false,hideChevron:T=false,useMobileTray:B=true,className:A}){let I=Ee__namespace.default.useRef(null),L=Ee__namespace.default.useRef(null),[M,S]=Ee__namespace.default.useState(),[w,G]=Ee.useState(()=>Ed(o||n,t,r)),[K,z]=Ee.useState(false),[j,Z]=Ee.useState(false),R=to(w),{contains:V}=ts({sensitivity:"base"}),[D,k]=Ee.useState(),{isMobile:Y}=kt(),E=B&&Y,h=Ae[u].text,U=reactStately.useAsyncList({async load({signal:ae,filterText:de=""}){if(!i)return {items:[]};if(!i.url||i.shouldLoad&&!i.shouldLoad(de))return {items:[]};try{let fe;return i.requestType==="GraphQL"?fe=await PS(i,de,ae):fe=await kS(i,de,ae),k(fe.error),{items:fe.items}}catch(fe){return fe instanceof Error&&fe.name==="AbortError"?{items:[]}:(console.error("Error loading items:",fe),k(fe instanceof Error?fe.message:"Unknown error occurred"),{items:[]})}},initialFilterText:""}),H=i&&R!==""?U:null,q=false,re=Ee.useRef("");Ee.useEffect(()=>{N&&z(true);},[N]),Ee.useEffect(()=>{let ae=Ed(o,t,r);ae!==w&&G(ae);},[o,t,r]),Ee.useEffect(()=>{let ae=()=>{I.current&&S(I.current.offsetWidth);};return ae(),window.addEventListener("resize",ae),()=>window.removeEventListener("resize",ae)},[]),Ee.useEffect(()=>{R===""?re.current="":H&&R!==re.current&&(re.current=R,H.setFilterText(R));},[R,H]),q=wi(!!H?.isLoading,300);let ue=Ee__namespace.default.useMemo(()=>{if(!E||!w)return H?H.items:t;let ae=H?H.items:t,de=s||V;return ae.filter(fe=>de(fe.name,w))},[E,w,H,t,s,V]),X=ae=>{let de=Ed(ae,t,r);G(de),a&&a(ae);},te=ae=>{G(ae);},Ne=()=>{E&&Z(true);};return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(reactAriaComponents.ComboBox,{onSelectionChange:X,selectedKey:o||void 0,defaultSelectedKey:n||void 0,defaultItems:r?r.flatMap(ae=>ae.items):t,items:H?H.items:void 0,className:he(A,"group flex flex-col w-full"),menuTrigger:E?"manual":"focus",isDisabled:g,isInvalid:f||!!c,inputValue:w,onInputChange:te,autoFocus:N&&!E,defaultFilter:s||V,"aria-label":e||l||"Autocomplete",children:ae=>jsxRuntime.jsxs("div",{className:"flex flex-col",children:[e&&jsxRuntime.jsx(De,{size:u,tooltip:m,isRequired:p,children:e}),jsxRuntime.jsxs(ot,{ref:I,children:[y?jsxRuntime.jsx("div",{className:"pointer-events-none absolute left-3 top-[45%] -translate-y-1/2 z-10",children:y(q)}):jsxRuntime.jsx("div",{className:"pointer-events-none absolute left-3 top-1/2 -translate-y-1/2 z-10 flex items-center",children:q?jsxRuntime.jsx(Hr,{size:16,color:"text-text-muted"}):jsxRuntime.jsx(F,{name:"MagnifyingGlass",className:`${NS[u]} text-text-muted`})}),jsxRuntime.jsx(reactAriaComponents.Input,{className:xt({isInvalid:f||!!c,isDisabled:g,isFocused:K||(E?j:ae.isOpen),size:u,className:tailwindMerge.twMerge(TS[u],w&&!g||!T&&!w?"pr-10":"pr-3",E&&"cursor-pointer",A)}),placeholder:l,disabled:g,onFocus:de=>{z(true),E&&(de.currentTarget.blur(),Ne());},onBlur:()=>{z(false);},onClick:E?Ne:void 0,readOnly:E,"aria-label":e||l||"Autocomplete"}),w&&!g&&jsxRuntime.jsx(Pa,{onClick:()=>{G(""),a?.(null);},size:u}),!T&&!w&&jsxRuntime.jsx(reactAriaComponents.Button,{className:"absolute right-3 top-[46%] -translate-y-1/2 transform text-text-muted hover:text-text-body","aria-label":"Toggle menu",isDisabled:g,children:({isPressed:de})=>jsxRuntime.jsx(F,{name:de?"CaretUp":"CaretDown",className:"h-4 w-4"})})]}),P?jsxRuntime.jsx("div",{className:"mt-1 min-h-[20px]",children:x&&D?jsxRuntime.jsx(ce,{size:u,className:"text-feedback-error-text",children:D}):x&&typeof c=="string"?jsxRuntime.jsx(ce,{size:u,className:"text-feedback-error-text",children:c}):x&&typeof c=="function"&&b?jsxRuntime.jsx(ce,{size:u,className:"text-feedback-error-text",children:c(b)}):d?jsxRuntime.jsx(ye,{size:u,children:d}):null}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[d&&jsxRuntime.jsx(ye,{size:u,className:"mt-1",children:d}),x&&D&&jsxRuntime.jsx(ce,{size:u,className:"text-feedback-error-text mt-1",children:D}),x&&typeof c=="string"&&jsxRuntime.jsx(ce,{size:u,className:"text-feedback-error-text mt-1",children:c}),x&&typeof c=="function"&&b&&jsxRuntime.jsx(ce,{size:u,className:"text-feedback-error-text mt-1",children:c(b)})]}),!E&&jsxRuntime.jsx(Ze,{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},children:jsxRuntime.jsx(reactAriaComponents.ListBox,{className:`max-h-[300px] overflow-auto bg-background-input outline-none ${h}`,children:r?r.map(de=>{let fe=de.items.map($=>jsxRuntime.jsx(At,{id:$.id,textValue:$.name,size:u,className:`flex cursor-default items-center gap-2 px-3 ${Df[u]} text-text-body outline-none data-[focused]:bg-background-hover data-[selected]:bg-background-selected data-[selected]:font-medium data-[focus-visible]:ring-0`,children:v?v($):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[$.name,jsxRuntime.jsx(F,{name:"X",className:"ml-auto h-4 w-4 text-text-muted opacity-0 data-[focused]:opacity-100 data-[selected]:opacity-100"})]})},$.id));if(C){let $=C(de,fe);return Ee__namespace.default.isValidElement($)&&$.type===reactAriaComponents.ListBoxSection?$:jsxRuntime.jsx(reactAriaComponents.ListBoxSection,{children:$},de.name)}return jsxRuntime.jsxs(reactAriaComponents.ListBoxSection,{children:[jsxRuntime.jsx(reactAriaComponents.Header,{className:"px-3 py-1 text-sm font-bold text-text-muted",children:de.name}),fe]},de.name)}):de=>jsxRuntime.jsx(At,{id:de.id,textValue:de.name,size:u,className:`flex cursor-default items-center gap-2 px-3 ${Df[u]} text-text-body outline-none data-[focused]:bg-background-hover data-[selected]:bg-background-selected data-[selected]:font-medium data-[focus-visible]:ring-0`,children:v?v(de):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[de.name,jsxRuntime.jsx(F,{name:"X",className:"ml-auto h-4 w-4 text-text-muted opacity-0 data-[focused]:opacity-100 data-[selected]:opacity-100"})]})},de.id)})})]})}),E&&jsxRuntime.jsx(Xe,{isOpen:j,onClose:()=>Z(false),title:e??l??"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(ot,{children:[jsxRuntime.jsx("div",{className:"pointer-events-none absolute left-3 top-[45%] -translate-y-1/2 z-10 flex items-center",children:q?jsxRuntime.jsx(Hr,{size:16,color:"text-text-muted"}):jsxRuntime.jsx(F,{name:"MagnifyingGlass",className:"h-4 w-4 text-text-muted"})}),jsxRuntime.jsx("input",{ref:L,type:"text",value:w,onChange:ae=>te(ae.target.value),placeholder:l,autoFocus:true,className:xt({isInvalid:false,isDisabled:false,isFocused:true,size:"md",className:"pl-10 pr-10"})}),w&&jsxRuntime.jsx(Pa,{onClick:()=>{G(""),a?.(null);},size:"md"})]})}),jsxRuntime.jsx("div",{className:"flex-1 overflow-auto",children:jsxRuntime.jsx(reactAriaComponents.ListBox,{items:ue,selectedKeys:o?[o]:[],selectionMode:"single",onSelectionChange:ae=>{let de=Array.from(ae)[0];de&&(X(de),Z(false));},className:"bg-background-input outline-none",children:ae=>jsxRuntime.jsx(At,{id:ae.id,textValue:ae.name,size:"md",className:"flex cursor-default items-center gap-2 px-4 py-3 text-text-body outline-none data-[focused]:bg-background-hover data-[selected]:bg-background-selected data-[selected]:font-medium data-[focus-visible]:ring-0",children:v?v(ae):ae.name},ae.id)})})]})})]})}function Yr({src:e,alt:t,firstName:r,lastName:o,fullName:n,onClick:a,size:i="md",shape:s="circle",variant:l="user",className:c,status:d,bordered:u=false,piiEntity:m}){let[p,g]=Ee.useState(false),f=Ee.useCallback(()=>g(true),[]);Ee.useEffect(()=>{g(false);},[e]);let b={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"},x={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"},v={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-muted border-border-muted",away:"bg-feedback-warning-background border-feedback-warning-border",busy:"bg-feedback-error-background border-feedback-error-border"},C={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"},N=s==="circle"?"rounded-full":"rounded-md",P=tailwindMerge.twMerge("relative inline-flex items-center justify-center overflow-hidden transition-opacity outline-none",b[i],N,a&&"cursor-pointer hover:opacity-80",u&&"ring-2 ring-background-surface",c),B=(()=>{if(r||o){let M=r?.[0]||"",S=o?.[0]||"";return (M+S).toUpperCase()}if(n){let M=n.split(" "),S=M[0]?.[0]||"",w=M[M.length-1]?.[0]||"";return S===w?S.toUpperCase():(S+w).toUpperCase()}return ""})(),A=()=>{let M={xs:14,sm:16,md:20,lg:24,xl:32}[i];switch(l){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})}},I=M=>{if(m)return l==="organization"?M?"organization-logo":"initials":M?"avatar":"initials"},L=()=>e&&!p?jsxRuntime.jsx("img",{src:e,alt:t||n||"Avatar",className:"h-full w-full object-cover",onError:f,"data-pii-type":I(true),"data-pii-entity":m}):B?jsxRuntime.jsx("span",{className:"font-semibold","data-pii-type":I(false),"data-pii-entity":m,children:B}):A();return jsxRuntime.jsxs("div",{className:"relative inline-block",children:[jsxRuntime.jsx("div",{"data-avatar":true,className:tailwindMerge.twMerge(P,!e||p?C[l]:""),onClick:a,role:a?"button":void 0,tabIndex:a?0:void 0,children:L()}),d&&jsxRuntime.jsx("span",{className:tailwindMerge.twMerge("absolute border-2 border-background-surface",N,x[i],v[i],y[d]),"aria-label":`Status: ${d}`})]})}var FS={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-brand/10 text-action-brand",brand:"bg-action-brand/10 text-action-brand",secondary:"bg-action-default/10 text-action-default",neutral:"bg-background-muted text-text-muted",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",importing:"bg-state-importing text-state-importing-text",exporting:"bg-state-exporting text-state-exporting-text"},BS={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"},zS={pill:"rounded-full",rounded:"rounded-lg",square:"rounded-sm"},VS={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 Ye({children:e,variant:t="default",size:r="sm",shape:o="square",dot:n=false,dotPosition:a="left",dotPulse:i=false,className:s}){let l=n&&jsxRuntime.jsx("span",{className:tailwindMerge.twMerge("rounded-full bg-current opacity-75",VS[r],i&&"animate-pulse"),"aria-hidden":"true"});return jsxRuntime.jsxs("span",{className:tailwindMerge.twMerge("inline-flex items-center gap-1.5 font-medium",BS[r],zS[o],FS[t],s),children:[n&&a==="left"&&l,e,n&&a==="right"&&l]})}var We=({href:e,children:t,className:r="",external:o=false,title:n,variant:a="default",onClick:i,asButton:s=false,onPress:l,showArrow:c=false,alwaysUnderlined:d=false,LinkComponent:u,"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"}:{},y=`${`${d?"underline decoration-1 underline-offset-4 decoration-current":"hover:underline hover:decoration-1 hover:underline-offset-4 hover:decoration-current"} cursor-pointer`} ${{default:"text-action-primary hover:text-action-primary-hover visited:text-action-primary",brand:"text-action-brand hover:text-action-brand-hover visited:text-action-brand",muted:"text-text-muted hover:text-text-muted visited:text-text-muted",unstyled:""}[a]} ${r}`,C=jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[t,c&&jsxRuntime.jsxs("span",{children:["\xA0","\u2192"]})]});return s?jsxRuntime.jsx("button",{type:"button",className:y,onClick:l,title:n,...g,children:C}):u&&e?jsxRuntime.jsx(u,{href:e,className:y,title:n,onClick:i,...f,...g,children:C}):jsxRuntime.jsx("a",{href:e||"#",className:y,...f,...g,title:n,onClick:i,children:C})};var qS={info:{subtle:{container:"bg-feedback-info-background border-l-4 border-l-feedback-info-border",iconColor:"text-feedback-info-icon",titleColor:"text-text-heading",bodyColor:"text-text-body"},bold:{container:"bg-feedback-info-icon border-feedback-info-icon",iconColor:"text-white",titleColor:"text-white",bodyColor:"text-white/90"},icon:lucideReact.Info},success:{subtle:{container:"bg-feedback-success-background border-l-4 border-l-feedback-success-border",iconColor:"text-feedback-success-icon",titleColor:"text-text-heading",bodyColor:"text-text-body"},bold:{container:"bg-feedback-success-icon border-feedback-success-icon",iconColor:"text-white",titleColor:"text-white",bodyColor:"text-white/90"},icon:lucideReact.CheckCircle},warning:{subtle:{container:"bg-feedback-warning-background border-l-4 border-l-feedback-warning-border",iconColor:"text-feedback-warning-icon",titleColor:"text-text-heading",bodyColor:"text-text-body"},bold:{container:"bg-feedback-warning-icon border-feedback-warning-icon",iconColor:"text-white",titleColor:"text-white",bodyColor:"text-white/90"},icon:lucideReact.AlertCircle},error:{subtle:{container:"bg-feedback-error-background border-l-4 border-l-feedback-error-border",iconColor:"text-feedback-error-icon",titleColor:"text-text-heading",bodyColor:"text-text-body"},bold:{container:"bg-feedback-error-icon border-feedback-error-icon",iconColor:"text-white",titleColor:"text-white",bodyColor:"text-white/90"},icon:lucideReact.XCircle},discovery:{subtle:{container:"bg-brand-light border-l-4 border-l-brand-primary",iconColor:"text-brand-primary",titleColor:"text-text-heading",bodyColor:"text-text-body"},bold:{container:"bg-brand-primary border-brand-primary",iconColor:"text-white",titleColor:"text-white",bodyColor:"text-white/90"},icon:lucideReact.Lightbulb}};function cs({variant:e="info",appearance:t="subtle",title:r,children:o,dismissible:n=false,onDismiss:a,primaryAction:i,secondaryAction:s,icon:l,hideIcon:c=false,className:d,testId:u}){let m=qS[e],p=m[t],g=m.icon,f=!!(i||s),b=!!(r||o);return jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("flex gap-3 rounded-sm border p-4",p.container,d),role:"region","aria-live":"polite","data-testid":u,children:[!c&&jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("flex-shrink-0",p.iconColor),"aria-hidden":"true",children:l||jsxRuntime.jsx(g,{className:"h-5 w-5"})}),jsxRuntime.jsxs("div",{className:"flex min-w-0 flex-1 flex-col gap-3",children:[b&&jsxRuntime.jsxs("div",{className:"flex-1",children:[r&&jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("text-sm font-semibold leading-5",p.titleColor),children:r}),o&&jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("text-sm leading-5",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(We,{asButton:true,onPress:i.onPress,variant:t==="bold"?"unstyled":"default",className:t==="bold"?"text-white hover:text-white/80":"",children:i.label}):jsxRuntime.jsx(_,{size:"sm",variant:"default",onPress:i.onPress,className:t==="bold"?"bg-white text-text-heading hover:bg-white/90":"",children:i.label})),s&&(s.asLink?jsxRuntime.jsx(We,{asButton:true,onPress:s.onPress,variant:t==="bold"?"unstyled":"default",className:t==="bold"?"text-white hover:text-white/80":"",children:s.label}):jsxRuntime.jsx(_,{size:"sm",variant:"secondary",onPress:s.onPress,className:t==="bold"?"border-white/30 text-white hover:bg-white/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-black/10",p.iconColor,ze()),"aria-label":"Dismiss banner",children:jsxRuntime.jsx(lucideReact.X,{className:"h-4 w-4"})})]})}function Mf({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(cs,{...o,className:a})})})}function po({value:e,children:t,className:r,size:o="sm",iconPosition:n="right"}){let[a,i]=Ee.useState(false),c=jsxRuntime.jsx(_,{variant:"icon",size:o,onPress:()=>{let u=e||(typeof t=="string"?t:"");navigator.clipboard.writeText(u),i(true),setTimeout(()=>{i(false);},2e3);},className:"!px-2 relative",style:{top:"0.5px"},children:jsxRuntime.jsx(F,{name:"Copy",size:o==="sm"?14:16})}),d=a?jsxRuntime.jsx(Et,{content:"Copied!",children:c}):c;return jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("inline-flex items-center gap-0.5",r),children:[n==="left"&&d,t,n==="right"&&d]})}function ds(e){let{children:t,maxWidth:r=600,className:o,...n}=e,{ref:a,width:i}=kn(),[s,l]=Ee__namespace.default.useState(false),[c,d]=Ee__namespace.default.useState(false),u=Ee__namespace.default.useRef(false),m=Ee__namespace.default.useMemo(()=>t&&!e.items&&typeof t!="function"?Ee__namespace.default.Children.toArray(t):null,[t,e.items]);if(Ee__namespace.default.useEffect(()=>{m&&m.length>=4&&i>0&&!u.current?(u.current=true,l(i>r),d(true)):(!m||m&&m.length<4)&&d(true);let p=setTimeout(()=>{c||d(true);},100);return ()=>clearTimeout(p)},[i,r,m,c]),m&&s&&m.length>=4){let p=m[0],g=m.slice(1,-2),f=m.slice(-2),b=g.map(x=>{if(Ee__namespace.default.isValidElement(x)){let v=x.props;if(typeof v.children=="string")return {label:v.children,href:v.href}}return {label:"..."}});return jsxRuntime.jsxs(reactAriaComponents.Breadcrumbs,{...n,ref:a,className:tailwindMerge.twMerge("flex gap-2",c?"opacity-100":"opacity-0",o),children:[p,jsxRuntime.jsx(e1,{items:b}),f]})}return jsxRuntime.jsx(reactAriaComponents.Breadcrumbs,{...n,ref:a,className:tailwindMerge.twMerge("flex gap-2",c?"opacity-100":"opacity-0",o),children:t})}function e1({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(Ln,{items:t,align:"left",size:"sm",children:jsxRuntime.jsx(_,{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-muted"})]})})}function us(e){let{className:t,children:r,href:o,copyable:n,copyValue:a,...i}=e;return jsxRuntime.jsx(reactAriaComponents.Breadcrumb,{className:he(t,"flex items-center gap-2"),...i,children:s=>{let l=s.isCurrent,c=typeof r=="function"?r(s):r;return jsxRuntime.jsx(jsxRuntime.Fragment,{children:l?n?jsxRuntime.jsx(po,{value:a||(typeof c=="string"?c:void 0),size:"sm",iconPosition:"right",children:jsxRuntime.jsx("span",{className:"max-w-[200px] truncate font-semibold text-text-body sm:max-w-none",children:c})}):jsxRuntime.jsx("span",{className:"max-w-[200px] truncate font-semibold text-text-body sm:max-w-none",children:c}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(We,{variant:"muted",href:o,className:"max-w-[150px] truncate sm:max-w-[300px] md:max-w-none",children:c}),jsxRuntime.jsx(lucideReact.ChevronRight,{className:"h-4 w-4 shrink-0 text-text-muted"})]})})}})}function d1({isSelected:e,isDisabled:t}){let r=[ze,"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-onPrimary invalid:bg-feedback-error-border forced-colors:bg-[Highlight] forced-colors:invalid:bg-[Mark] forced-colors:text-[HighlightText]"):r.push("text-text-body hover:bg-background-hover pressed:bg-background-selected"),r.join(" ")}function Bn({errorMessage:e,...t}){return jsxRuntime.jsxs(reactAriaComponents.Calendar,{...t,children:[jsxRuntime.jsx(ps,{}),jsxRuntime.jsxs(reactAriaComponents.CalendarGrid,{className:"border-separate [border-spacing:0] [&_td]:p-0 [&_td]:!border-0",children:[jsxRuntime.jsx(ms,{}),jsxRuntime.jsx(reactAriaComponents.CalendarGridBody,{children:r=>jsxRuntime.jsx(reactAriaComponents.CalendarCell,{date:r,className:({isSelected:o,isDisabled:n})=>`${d1({isSelected:o,isDisabled:n})} border-0`})})]}),e&&jsxRuntime.jsx(reactAriaComponents.Text,{slot:"errorMessage",className:"text-sm text-red-600",children:e})]})}function ps(){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(_,{variant:"icon",slot:"previous",className:"pl-0",children:e==="rtl"?jsxRuntime.jsx(F,{name:"CaretRight","aria-hidden":true,size:t}):jsxRuntime.jsx(F,{name:"CaretLeft","aria-hidden":true,size:t})}),jsxRuntime.jsx(reactAriaComponents.Heading,{className:"text-md mx-2 flex-1 text-center font-semibold text-zinc-900 dark:text-zinc-200"}),jsxRuntime.jsx(_,{variant:"icon",slot:"next",className:"pr-0",children:e==="rtl"?jsxRuntime.jsx(F,{name:"CaretLeft","aria-hidden":true,size:t}):jsxRuntime.jsx(F,{name:"CaretRight","aria-hidden":true,size:t})})]})}function ms(){return jsxRuntime.jsx(reactAriaComponents.CalendarGridHeader,{children:e=>jsxRuntime.jsx(reactAriaComponents.CalendarHeaderCell,{className:"text-xs font-semibold text-text-caption",children:e})})}var Vf=Ee__namespace.createContext(null);function mo(){let e=Ee__namespace.useContext(Vf);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:l="1rem",slidesPerView:c=1,slidesPerMove:d=1,className:u,children:m,...p}){let g=e!==void 0,[f,b]=Ee__namespace.useState(t),x=g?e:f,v=Ee__namespace.useRef(null),[y,C]=Ee__namespace.useState(0),[N,P]=Ee__namespace.useState(typeof a=="boolean"?a:!!a),[T,B]=Ee__namespace.useState(false),A=Ee__namespace.useRef(null),I=Ee__namespace.useRef(null),L=typeof a=="object"&&a!==null&&a.delay?a.delay:i;Ee__namespace.useEffect(()=>{if(v.current){let h=Math.max(1,Math.floor(Number(c)||1)),U=v.current.children;if(U.length===0){C(0);return}let H=Math.ceil(U.length/h);C(H);}},[m,c]);let M=Ee__namespace.useRef(-1);Ee__namespace.useEffect(()=>{if(x!==M.current&&v.current){let h=Array.from(v.current.children);if(h.length===0)return;let U=x*c,H=Math.min(U,h.length-1),q=h[H];q&&typeof q.scrollIntoView=="function"&&(q.scrollIntoView({behavior:"smooth",block:o==="vertical"?"start":"nearest",inline:o==="horizontal"?"start":"nearest"}),M.current=x);}},[x,c,o]);let S=Ee__namespace.useCallback(h=>{let U=h;n?U<0?U=y-1:U>=y&&(U=0):U=Math.max(0,Math.min(h,y-1)),g||b(U),r?.(U);},[g,n,r,y]),w=Ee__namespace.useCallback(()=>{S(x+d);},[x,S,d]),G=Ee__namespace.useCallback(()=>{S(x-d);},[x,S,d]),K=Ee__namespace.useRef(w);Ee__namespace.useEffect(()=>{K.current=w;},[w]);let z=y>0&&(n||x<y-1),j=y>0&&(n||x>0),Z=Ee__namespace.useCallback(()=>{P(h=>!h);},[]);Ee__namespace.useEffect(()=>{if(N&&y>1)return A.current=setInterval(()=>{K.current();},L),()=>{A.current&&(clearInterval(A.current),A.current=null);}},[N,y,L]);let R=Ee__namespace.useCallback(()=>{A.current&&(clearInterval(A.current),A.current=null);},[]),V=Ee__namespace.useCallback(()=>{N&&y>1&&(A.current=setInterval(()=>{K.current();},L));},[N,y,L]),D=Ee__namespace.useCallback(h=>{if(!s)return;B(true);let U="touches"in h&&h.touches&&h.touches.length>0?h.touches[0].clientX:"clientX"in h?h.clientX:0,H="touches"in h&&h.touches&&h.touches.length>0?h.touches[0].clientY:"clientY"in h?h.clientY:0;I.current={x:U,y:H};},[s]),k=Ee__namespace.useCallback(h=>{if(!T||!I.current)return;let U="touches"in h&&h.touches&&h.touches.length>0?h.touches[0].clientX:"clientX"in h?h.clientX:0,H="touches"in h&&h.touches&&h.touches.length>0?h.touches[0].clientY:"clientY"in h?h.clientY:0,q=U-I.current.x,re=H-I.current.y,ue=50;o==="horizontal"&&Math.abs(q)>ue?(q>0?G():w(),B(false),I.current=null):o==="vertical"&&Math.abs(re)>ue&&(re>0?G():w(),B(false),I.current=null);},[T,o,w,G]),Y=Ee__namespace.useCallback(()=>{B(false),I.current=null;},[]),E={currentPage:x,totalPages:y,orientation:o,loop:n,spacing:l,slidesPerView:c,goToPage:S,goToNext:w,goToPrev:G,canGoNext:z,canGoPrev:j,isAutoplayActive:N,toggleAutoplay:Z,itemsRef:v,isDragging:T,allowMouseDrag:s,handleDragStart:D,handleDragMove:k,handleDragEnd:Y};return jsxRuntime.jsx(Vf.Provider,{value:E,children:jsxRuntime.jsx("div",{...p,className:tailwindMerge.twMerge("relative w-full",o==="vertical"?"h-full":"",u),onMouseEnter:R,onMouseLeave:V,children:m})})}function Hf({className:e,children:t,...r}){let{itemsRef:o,orientation:n,spacing:a,isDragging:i,allowMouseDrag:s,handleDragStart:l,handleDragMove:c,handleDragEnd:d}=mo();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:l,onMouseMove:c,onMouseUp:d,onMouseLeave:d,onTouchStart:l,onTouchMove:c,onTouchEnd:d,children:t})}function Wf({index:e,className:t,children:r,...o}){let{orientation:n,slidesPerView:a}=mo();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}=mo();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-body 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(F,{name:"CaretLeft",size:"sm"})})}function Yf({className:e,children:t,...r}){let{goToNext:o,canGoNext:n}=mo();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-body 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(F,{name:"CaretRight",size:"sm"})})}function zd({index:e,className:t,children:r,...o}){let{currentPage:n,goToPage:a}=mo(),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}=mo();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(zd,{index:n},n))})}function Jf({className:e,children:t,...r}){let{isAutoplayActive:o,toggleAutoplay:n}=mo();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-body 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(F,{name:o?"Pause":"Play",size:"sm"})})}function jf({className:e,...t}){let{currentPage:r,totalPages:o}=mo();return jsxRuntime.jsxs("div",{...t,className:tailwindMerge.twMerge("text-sm text-text-muted tabular-nums",e),"aria-live":"polite","aria-atomic":"true",children:[r+1," / ",o]})}function Vd(e){return jsxRuntime.jsxs(reactAriaComponents.CheckboxGroup,{...e,className:he(e.className,"flex flex-col gap-2"),children:[jsxRuntime.jsx(De,{children:e.label}),e.children,e.description&&jsxRuntime.jsx(ye,{children:e.description}),jsxRuntime.jsx(ce,{children:typeof e.errorMessage=="function"?void 0:e.errorMessage})]})}function x1({isDisabled:e}){return `flex gap-2 items-center group text-sm transition ${e?"text-text-disabled":"text-text-caption"}`}function h1({isSelected:e,isInvalid:t,isDisabled:r,isIndeterminate:o,variant:n="default"}){let a="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",i=n==="brand"?"focus:ring-action-brand":"focus:ring-action-default",s="";if(r)s="border-border-muted bg-background-muted";else if(t)s="border-feedback-error-border bg-feedback-error-background";else if(e||o){let l=n==="brand"?"action-brand":"action-default";s=`bg-${l} border-${l} hover:bg-${l}-hover hover:border-${l}-hover`;}else s="bg-background-input border-border-input hover:border-border-focus";return `${a} ${i} ${s}`}var qf="w-4 h-4 text-text-onPrimary group-disabled:text-text-disabled";function Ko(e){let{children:t,variant:r="default",...o}=e;return jsxRuntime.jsx(reactAriaComponents.Checkbox,{...o,className:reactAriaComponents.composeRenderProps(e.className,(n,a)=>`${x1(a)} ${n||""}`),children:n=>{let{isSelected:a,isIndeterminate:i,...s}=n,l=jsxRuntime.jsx("div",{className:h1({isSelected:a,isIndeterminate:i,variant:r,...s}),children:i?jsxRuntime.jsx(lucideReact.Minus,{"aria-hidden":true,className:qf}):a?jsxRuntime.jsx(lucideReact.Check,{"aria-hidden":true,className:qf}):null});return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[l,typeof t=="function"?t(n):t]})}})}var C1={default:"bg-background-muted text-action-default border border-border-muted hover:bg-background-hover",brand:"bg-action-brand/10 text-action-brand border border-action-brand/20 hover:bg-action-brand/15",secondary:"bg-background-input text-text-body border border-border-input hover:bg-background-hover",info:"bg-feedback-info-background text-feedback-info-text border border-feedback-info-border hover:bg-feedback-info-background/80"},S1={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"},w1="opacity-75 cursor-not-allowed pointer-events-none";function Xf(e){let{variant:t,size:r,isDisabled:o,isClickable:n,className:a}=e,i=r==="xs"?"text-xs":Ae[r].text;return tailwindMerge.twMerge("inline-flex items-center justify-center rounded-full font-medium transition-colors","whitespace-nowrap select-none",S1[r],i,C1[t],n&&!o&&"cursor-pointer",o&&w1,a)}function Pr({children:e,onRemove:t,size:r="md",variant:o="default",isRemovable:n=true,isDisabled:a=false,className:i,onClick:s}){let l=!!s&&!a,c=n&&t&&!a,d=f=>{f.stopPropagation(),f.preventDefault(),t&&!a&&t();},u=()=>{s&&!a&&s();},m=r==="xs"?10:r==="sm"?12:r==="md"?14:16,g=jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("span",{className:"truncate",children:e}),c?l?jsxRuntime.jsx("span",{onClick:d,onKeyDown:f=>{(f.key==="Enter"||f.key===" ")&&(f.preventDefault(),d(f));},role:"button",tabIndex:0,className:"flex-shrink-0 rounded-full p-0.5 hover:bg-black/10 transition-colors cursor-pointer","aria-label":"Remove",children:jsxRuntime.jsx(F,{name:"X",size:m,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-black/10 transition-colors cursor-pointer","aria-label":"Remove",tabIndex:-1,children:jsxRuntime.jsx(F,{name:"X",size:m,className:"text-current opacity-70 hover:opacity-100"})}):null]});return l?jsxRuntime.jsx("button",{type:"button",onClick:u,className:Xf({variant:o,size:r,isDisabled:a,isClickable:l,className:i}),disabled:a,children:g}):jsxRuntime.jsx("span",{className:Xf({variant:o,size:r,isDisabled:a,isClickable:l,className:i}),children:g})}function _f({label:e,description:t,errorMessage:r,size:o="md",tooltip:n,isRequired:a=false,isDisabled:i=false,isInvalid:s=false,validationResult:l,placeholder:c="Add items...",selectedItems:d=[],onItemsChange:u,staticItems:m,fetchSuggestions:p,chipVariant:g="default",showErrors:f=true,className:b}){let[x,v]=Ee.useState(""),[y,C]=Ee.useState([]),[N,P]=Ee.useState(false),[T,B]=Ee.useState(false),[A,I]=Ee.useState(-1),L=to(x,300),M=Ee.useRef(null),S=Ee.useRef(null),{isFocused:w,handleFocus:G,handleBlur:K}=nr(),z=Ee.useId(),j=Ee.useCallback(E=>{if(!u||!E.trim())return;let h=E.trim();if(d.includes(h)){v(""),B(false),C([]),I(-1);return}u([...d,h]),v(""),B(false),C([]),I(-1),M.current?.focus();},[d,u]),Z=Ee.useCallback(E=>{u&&u(d.filter(h=>h!==E));},[d,u]);Ee.useEffect(()=>{if(!p)return;let E=true;return (async()=>{let U=L.trim();if(!U){E&&(P(false),C([]),B(false));return}P(true);try{let H=await p(U);if(!E)return;C(H),B(!0);}catch(H){if(!E)return;console.error("Error fetching suggestions:",H),C([]),B(false);}finally{E&&P(false);}})(),()=>{E=false;}},[L,p]),Ee.useEffect(()=>{if(p||!m)return;if(!L.trim()){C([]),B(false);return}let E=m.filter(h=>h.name.toLowerCase().includes(L.toLowerCase())).map(h=>h.id);C(E),B(E.length>0||L.trim().length>0);},[L,m,p]);let R=Ee.useMemo(()=>{let E=y.filter(h=>!d.includes(h));return x.trim()&&!E.includes(x.trim())&&!d.includes(x.trim())?[...E,`Create tag: "${x.trim()}"`]:E},[y,x,d]),V=Ee.useCallback(E=>{v(E.target.value),I(-1),E.target.value&&B(true);},[]),D=Ee.useCallback(E=>{i||(E.startsWith("Create tag:")?j(x):j(E));},[j,x,i]),k=Ee.useCallback(E=>{if(!i)switch(E.key){case "Enter":case ",":if(E.preventDefault(),A>=0&&A<R.length){let h=R[A];h.startsWith("Create tag:")?j(x):j(h);}else x.trim()&&j(x.trim());break;case "Backspace":!x&&d.length>0&&(E.preventDefault(),Z(d[d.length-1]));break;case "ArrowDown":E.preventDefault(),T&&I(h=>h<R.length-1?h+1:h);break;case "ArrowUp":E.preventDefault(),T&&I(h=>h>0?h-1:-1);break;case "Escape":B(false),I(-1);break}},[i,x,d,R,A,T,j,Z]);Ee.useEffect(()=>{let E=h=>{S.current&&h.target instanceof Node&&!S.current.contains(h.target)&&B(false);};return document.addEventListener("mousedown",E),()=>document.removeEventListener("mousedown",E)},[]);let Y=()=>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]",uo({isInvalid:s,isDisabled:i,isFocused:w}),"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:S,className:tailwindMerge.twMerge("relative flex flex-col gap-1",b),children:[e&&jsxRuntime.jsx(De,{size:o,tooltip:n,isRequired:a,children:e}),jsxRuntime.jsx(ot,{children:jsxRuntime.jsxs("div",{className:Y(),onClick:()=>!i&&M.current?.focus(),children:[d.map(E=>jsxRuntime.jsx(Pr,{variant:g,size:"xs",onRemove:()=>Z(E),isDisabled:i,className:"shrink-0 max-h-full",children:E},E)),jsxRuntime.jsx("input",{ref:M,type:"text",role:"combobox","aria-expanded":T,"aria-haspopup":"listbox","aria-controls":z,"aria-autocomplete":"list",value:x,onChange:V,onKeyDown:k,onFocus:E=>G(E),onBlur:E=>K(E),placeholder:d.length===0?c:"",disabled:i,className:"flex-1 min-w-[120px] h-full !border-0 !outline-none !ring-0 bg-transparent text-text-body text-sm placeholder:text-text-placeholder 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"}})]})}),T&&(x||R.length>0)&&jsxRuntime.jsx("div",{id:z,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:N?jsxRuntime.jsx("div",{className:"px-3 py-2 text-sm text-text-muted",children:"Loading..."}):R.length>0?R.map((E,h)=>jsxRuntime.jsx("div",{role:"option","aria-selected":h===A,className:tailwindMerge.twMerge("cursor-pointer px-3 py-2 text-sm transition-colors","hover:bg-background-hover",h===A&&"bg-background-selected",E.startsWith("Create tag:")&&"italic text-text-muted"),onClick:()=>D(E),children:E},E)):x&&jsxRuntime.jsx("div",{className:"px-3 py-2 text-sm text-text-muted",children:"No suggestions found"})}),t&&jsxRuntime.jsx(ye,{size:o,className:"mt-1",children:t}),f&&typeof r=="string"&&jsxRuntime.jsx(ce,{size:o,className:"text-feedback-error-text mt-1",children:r}),f&&typeof r=="function"&&l&&jsxRuntime.jsx(ce,{size:o,className:"text-feedback-error-text mt-1",children:r(l)})]})}var L1={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')},I1={github:()=>import('ace-builds/src-noconflict/theme-github'),github_dark:()=>import('ace-builds/src-noconflict/theme-github_dark')},F1={"ext-language-tools":()=>import('ace-builds/src-noconflict/ext-language_tools')},Ma=new Set;async function Hd(e,t){Ma.has(e)||(await t(),Ma.add(e));}async function B1(e,t,r){await Promise.all([Hd(`language:${e}`,L1[e]),Hd(`theme:${t}`,I1[t]),r?Hd("extension:language-tools",F1["ext-language-tools"]):void 0]);}function tg(e,t,r){let o=Ma.has(`language:${e}`)&&Ma.has(`theme:${t}`);return r?o&&Ma.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:l=19,minLines:c=3,maxLines:d=50,showLineNumbers:u=true,showGutter:m=true,fontSize:p=14,wrapEnabled:g=false}){let f=Ee.useRef(null),[b,x]=Ee.useState(()=>tg(o,n,!t)),v=Ee.useMemo(()=>{if(a)return a;let y=(e.match(/\n/g)||[]).length+1;return `${Math.max(c,Math.min(y,d))*l+10}px`},[e,a,l,c,d]);return Ee.useEffect(()=>{let y=false,C=!t;return tg(o,n,C)?(x(true),()=>{y=true;}):(x(false),B1(o,n,C).then(()=>{y||x(true);}).catch(N=>{y||x(true),console.error("Failed to load Ace editor resources",N);}),()=>{y=true;})},[o,t,n]),Ee.useEffect(()=>{b&&f.current?.editor&&f.current.editor.resize();},[v,b]),jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("overflow-hidden rounded-md border border-border-input",s),style:{width:i,height:v},children:b?jsxRuntime.jsx(A1__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:u,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=Ee__namespace.createContext({variant:"contained",density:"comfortable",showDividers:true}),ag=Ee__namespace.createContext(null),W1={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"},G1={comfortable:"px-5 py-3",compact:"px-4 py-2.5"},U1={comfortable:"px-5 pt-0",compact:"px-4 pt-0"},Y1={comfortable:"h-5 w-5",compact:"h-4 w-4"};function Yd(){return Ee__namespace.useContext(ng)}function K1(e){let t=Ee__namespace.useContext(ag);if(!t)throw new Error(`${e} must be used within a <CollapseItem>`);return t}function J1({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 j1({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-body",l=t&&!e?"bg-background-hover":"",c=G1[r];return tailwindMerge.twMerge(i,ze(),c,s,l,o==="plain"&&n?"px-0":"",a)}function q1({density:e,showDividers:t,className:r}){let o="text-text-body",n=U1[e];return tailwindMerge.twMerge(o,n,t?"":"rounded-b-lg",r)}function zn({variant:e="contained",density:t="comfortable",showDividers:r=true,className:o,...n}){let a=Ee__namespace.useMemo(()=>({variant:e,density:t,showDividers:r}),[e,t,r]),i=tailwindMerge.twMerge("flex w-full flex-col",W1[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:he(o,i)})})}function go({className:e,children:t,...r}){let{variant:o,showDividers:n}=Yd();return jsxRuntime.jsx(reactAriaComponents.Disclosure,{...r,className:reactAriaComponents.composeRenderProps(e,a=>J1({variant:o,showDividers:n,className:a})),children:a=>jsxRuntime.jsx(ag.Provider,{value:a,children:t})})}go.displayName="CollapseItem";function bo({title:e,description:t,startContent:r,endContent:o,indicator:n,indicatorPosition:a="end",showIndicator:i=true,keepIndicatorSpace:s=false,children:l,className:c,...d}){let u=K1("CollapseHeader"),{density:m,variant:p,showDividers:g}=Yd(),f=Y1[m];return jsxRuntime.jsx(reactAriaComponents.Button,{...d,slot:"trigger","data-expanded":u.isExpanded?"true":void 0,className:reactAriaComponents.composeRenderProps(c,(b,x)=>j1({isDisabled:x.isDisabled??false,isPressed:x.isPressed??false,density:m,variant:p,showDividers:g,className:b})),children:b=>{let x=b.isDisabled??false,v=i?typeof n=="function"?n({isExpanded:u.isExpanded,isDisabled:x}):n??jsxRuntime.jsx(F,{name:"CaretDown",size:m==="compact"?"sm":"md",weight:"bold","aria-hidden":"true",className:tailwindMerge.twMerge("text-text-muted transition-transform duration-200",u.isExpanded?"rotate-180":"rotate-0")}):null,y=v?jsxRuntime.jsx("span",{className:tailwindMerge.twMerge("flex flex-shrink-0 items-center justify-center text-text-muted",f),"aria-hidden":"true",children:v}):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-muted",children:r}),jsxRuntime.jsxs("div",{className:"flex min-w-0 flex-1 items-start gap-3",children:[l??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-heading",children:e}),t&&jsxRuntime.jsx("span",{className:"text-sm text-text-muted",children:t})]}),o&&jsxRuntime.jsx("div",{className:"flex flex-shrink-0 items-center text-sm text-text-muted",children:o})]}),a==="end"&&y]})}})}bo.displayName="CollapseHeader";function xo({className:e,children:t,...r}){let{density:o,showDividers:n}=Yd();return jsxRuntime.jsx(reactAriaComponents.DisclosurePanel,{...r,className:reactAriaComponents.composeRenderProps(e,a=>q1({density:o,showDividers:n,className:a})),children:t})}xo.displayName="CollapseContent";function Vn(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 Jd(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 $1({label:e,description:t,errorMessage:r,size:o="md",tooltip:n,isRequired:a,transparent:i,className:s,validationResult:l,value:c,defaultValue:d,onChange:u,placeholder:m="#000000",showColorSwatch:p=true,reserveErrorSpace:g=true,...f}){let[b,x]=Ee.useState(d||""),[v,y]=Ee.useState(c||d||""),[C,N]=Ee.useState(false),[P,T]=Ee.useState(null),{isFocused:B,handleFocus:A,handleBlur:I}=nr(),L=c!==void 0?c:b;Ee.useEffect(()=>{c!==void 0&&y(c);},[c]);let M=L?!Vn(L):false,S=Ee.useCallback(K=>{if(y(K),Vn(K)){let z=Jd(K);u?u(z):x(z);}else K===""&&(u?u(""):x(""));},[u]),w=Ee.useCallback(K=>{let z=Jd(K);y(z),u?u(z):x(z);},[u]),G=Ee.useCallback(K=>{if(Vn(v)){let z=Jd(v);y(z),u&&z!==L?u(z):!u&&z!==b&&x(z);}I(K,f.onBlur);},[v,L,b,u,I,f.onBlur]);return jsxRuntime.jsx(reactAriaComponents.TextField,{...f,isRequired:a,className:he(s,"group flex flex-col"),children:({isDisabled:K})=>jsxRuntime.jsxs("div",{className:"flex flex-col",children:[e&&jsxRuntime.jsx(De,{size:o,tooltip:n,isRequired:a,children:e}),jsxRuntime.jsx(ot,{children:jsxRuntime.jsxs("div",{className:"flex gap-2",children:[jsxRuntime.jsxs("div",{className:"flex-1 relative",children:[jsxRuntime.jsx(os,{size:o,disabled:K,type:"text",value:v,placeholder:m,onFocus:z=>A(z,f.onFocus),onBlur:G,onChange:z=>S(z.target.value),className:tailwindMerge.twMerge(xt({isInvalid:M,isDisabled:K,isFocused:B,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:Ae[o].height},children:jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("w-6 h-6 rounded border shadow-sm",Vn(L)?"border-border-default":"border-border-default bg-background-muted"),style:Vn(L)?{backgroundColor:L}:void 0,"aria-hidden":"true",children:!Vn(L)&&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:T,children:jsxRuntime.jsx(_,{variant:"secondary",size:o,icon:"Palette",onPress:()=>N(!C),isDisabled:K,className:"flex-shrink-0",children:"Pick"})})]})}),g?jsxRuntime.jsx("div",{className:"mt-1 min-h-[20px]",children:typeof r=="string"?jsxRuntime.jsx(ce,{size:o,children:r}):typeof r=="function"&&l?jsxRuntime.jsx(ce,{size:o,children:r(l)}):t?jsxRuntime.jsx(ye,{size:o,children:t}):null}):jsxRuntime.jsx(jsxRuntime.Fragment,{children:typeof r=="string"?jsxRuntime.jsx(ce,{size:o,className:"mt-1",children:r}):typeof r=="function"&&l?jsxRuntime.jsx(ce,{size:o,className:"mt-1",children:r(l)}):t?jsxRuntime.jsx(ye,{size:o,className:"mt-1",children:t}):null}),C&&P&&jsxRuntime.jsx(Ze,{triggerRef:{current:P},isOpen:C,onOpenChange:N,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:L||"#000000",onChange:w,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:L||"#000000"}}),jsxRuntime.jsx("div",{className:"flex-1 text-text-body text-[length:var(--control-text-sm)] font-mono",children:L||"#000000"})]})]})})]})})}function lg({isOpen:e,onClose:t,onConfirm:r,title:o,message:n,confirmLabel:a="Confirm",cancelLabel:i="Cancel",confirmVariant:s,isDestructive:l=false,isLoading:c=false,maxWidth:d="500px",minWidth:u="400px"}){return jsxRuntime.jsx(_t,{isOpen:e,onClose:t,title:o,maxWidth:d,minWidth:u,primaryAction:{label:a,onPress:()=>{r();},variant:s??(l?"destructive":"primary"),isLoading:c},secondaryAction:{label:i,onPress:t,variant:"secondary",isDisabled:c},children:jsxRuntime.jsx("div",{className:"text-text-body",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 l=e?"Connected":"Disconnected",c=e?"success":"neutral",d=null;if(o){if(e&&t)d=Pi(t);else if(!e&&r){let u=Pi(r);d=u?`Offline ${u}`:null;}}return jsxRuntime.jsxs("div",{className:"inline-flex flex-col gap-1",children:[jsxRuntime.jsx(Ye,{variant:c,size:a,shape:i,dot:e,dotPulse:e,...s,children:l}),d&&jsxRuntime.jsx("span",{className:"text-xs text-text-muted",children:d})]})}function dg({firstName:e,lastName:t,email:r,phone:o,avatarUrl:n,href:a,LinkComponent:i,variant:s="outlined",layout:l="horizontal",showEmail:c=true,showPhone:d=false,isLoading:u=false,className:m,contentClassName:p,piiEntity:g}){let f=`${e} ${t}`.trim(),b=({children:v,className:y})=>a?i?jsxRuntime.jsx(i,{href:a,className:y,children:v}):jsxRuntime.jsx(We,{href:a,variant:"unstyled",className:tailwindMerge.twMerge("hover:underline",y),asButton:false,children:v}):jsxRuntime.jsx("span",{className:y,children:v}),x=l==="vertical";return u?jsxRuntime.jsx(Me,{variant:s,className:tailwindMerge.twMerge("flex flex-col",m),children:jsxRuntime.jsx(Me.Content,{className:"flex items-center flex-1",children:jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("w-full",x?"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(x?"w-full text-center":"flex-1","space-y-2"),children:[jsxRuntime.jsx(J,{width:"70%",height:20,className:tailwindMerge.twMerge(x&&"mx-auto")}),jsxRuntime.jsx(J,{width:"100%",height:16,className:tailwindMerge.twMerge(x&&"mx-auto")})]})]})})}):jsxRuntime.jsx(Me,{variant:s,className:tailwindMerge.twMerge("group/card flex flex-col",m),children:jsxRuntime.jsx(Me.Content,{className:tailwindMerge.twMerge("flex items-center flex-1",a&&"cursor-pointer",p),children:jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("relative w-full",x?"flex flex-col items-center gap-4 text-center":"flex items-center gap-4"),children:[jsxRuntime.jsx(Yr,{firstName:e,lastName:t,src:n,size:"xl",variant:"user",shape:"square",className:"flex-shrink-0",piiEntity:g}),jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge(x?"w-full":"flex-1 min-w-0"),children:[a&&jsxRuntime.jsx(b,{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-heading 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",x&&"flex flex-col items-center"),children:[c&&r&&jsxRuntime.jsxs("div",{className:"flex items-center gap-2.5 text-text-body",children:[jsxRuntime.jsx(F,{name:"Envelope",size:16,className:"text-text-muted flex-shrink-0"}),jsxRuntime.jsx(We,{href:`mailto:${r}`,variant:"unstyled",className:tailwindMerge.twMerge("text-sm leading-relaxed text-text-body relative z-20",x?"":"truncate"),"data-pii-type":g?"email":void 0,"data-pii-entity":g,children:r})]}),d&&o&&jsxRuntime.jsxs("div",{className:"flex items-center gap-2.5 text-text-body",children:[jsxRuntime.jsx(F,{name:"Phone",size:16,className:"text-text-muted flex-shrink-0"}),jsxRuntime.jsx(We,{href:`tel:${o}`,variant:"unstyled",className:tailwindMerge.twMerge("text-sm leading-relaxed text-text-body relative z-20",x?"":"truncate"),"data-pii-type":g?"phone":void 0,"data-pii-entity":g,children:Pn(o)})]})]})]})]})})})}function bs({firstName:e,lastName:t,email:r,avatarUrl:o,layout:n="stacked",size:a="md",href:i,LinkComponent:s,linkVariant:l="unstyled",emphasis:c="normal",showEmail:d=false,badge:u,avatarShape:m,isLoading:p=false,className:g,piiEntity:f}){let b=m??(n==="inline"?"circle":"square"),v={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(),N={strong:"font-semibold text-text-body",high:"font-semibold text-text-body",normal:"text-text-body",low:"text-text-muted"}[c],P=({children:T,className:B})=>i?s?jsxRuntime.jsx(s,{href:i,className:B,children:T}):jsxRuntime.jsx(We,{href:i,variant:l,className:tailwindMerge.twMerge("hover:underline",B),asButton:false,children:T}):jsxRuntime.jsx("span",{className:B,children:T});return p?n==="inline"?jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("flex items-center",v.gap,g),children:[jsxRuntime.jsx(J,{width:v.skeletonAvatar,height:v.skeletonAvatar,className:"flex-shrink-0 rounded-full"}),jsxRuntime.jsx(J,{width:v.skeletonText,height:v.skeletonAvatar*.5})]}):jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("flex items-center",v.gap,g),children:[jsxRuntime.jsx(J,{width:v.skeletonAvatar,height:v.skeletonAvatar,className:"flex-shrink-0 rounded-full"}),jsxRuntime.jsxs("div",{className:"flex flex-col gap-1",children:[jsxRuntime.jsx(J,{width:v.skeletonText,height:16}),d&&jsxRuntime.jsx(J,{width:v.skeletonSecondary,height:12})]})]}):n==="inline"?jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("flex items-center",v.gap,g),children:[jsxRuntime.jsxs(P,{className:tailwindMerge.twMerge("flex items-center",v.gap),children:[jsxRuntime.jsx(Yr,{firstName:e,lastName:t,src:o,size:v.avatarSize,variant:"user",shape:b,className:"flex-shrink-0",piiEntity:f}),jsxRuntime.jsx("span",{className:tailwindMerge.twMerge("leading-normal truncate hover:text-text-body",N,v.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})]}),u]}):jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("flex items-center justify-start",v.gap,g),children:[jsxRuntime.jsx(Yr,{firstName:e,lastName:t,src:o,size:v.avatarSize,variant:"user",shape:b,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(P,{className:tailwindMerge.twMerge("leading-normal truncate hover:text-text-body",N,v.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})}),u]}),d&&r&&jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("text-text-caption leading-normal truncate",v.secondaryTextSize),"data-pii-type":f?"email":void 0,"data-pii-entity":f,children:r})]})]})}var ug={duration:.5,ease:"easeInOut"},yo=Ee.createContext(null),Zo=()=>{let e=Ee.useContext(yo);if(!e)throw new Error("useChartContext must be used within a ChartContextProvider");return e};var Ia=({data:e,color:t="var(--color-viz-default)"})=>{let r=Ee.useId(),o=Ee.useId(),{xScale:n,yScale:a,animationSettings:i}=Zo(),s=n.range(),l=a.range();return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsxs("defs",{children:[jsxRuntime.jsxs("linearGradient",{id:r,x1:"0%",y1:"0%",x2:"0%",y2:"100%",children:[jsxRuntime.jsx("stop",{offset:"50%",stopColor:t,stopOpacity:.1}),jsxRuntime.jsx("stop",{offset:"100%",stopColor:t,stopOpacity:0})]}),jsxRuntime.jsx("clipPath",{id:o,children:jsxRuntime.jsx("rect",{x:s[0],y:l[1],width:s[1]-s[0],height:l[0]-l[1]})})]}),jsxRuntime.jsx("g",{clipPath:`url(#${o})`,children:jsxRuntime.jsxs(framerMotion.motion.g,{initial:{scaleY:0},animate:{scaleY:1},transition:{duration:i.duration,ease:i.ease},style:{transformOrigin:`0 ${l[0]}px`,transformBox:"fill-box",isolation:"isolate"},children:[jsxRuntime.jsx(shape.AreaClosed,{data:e,x:c=>n(c.xValue),y:c=>a(c.yValue),yScale:a,fill:`url(#${r})`,curve:curve.curveLinear}),jsxRuntime.jsx(shape.LinePath,{data:e,x:c=>n(c.xValue),y:c=>a(c.yValue),stroke:t,strokeWidth:3,curve:curve.curveLinear})]})})]})};var Hn=({data:e,color:t="var(--color-viz-default)",opacity:r=1,categoryColors:o={}})=>{let{xScale:n,yScale:a,animationSettings:i}=Zo(),s=Ee.useId(),l=n.range(),c=a.range(),d=[...e].sort((p,g)=>p.xValue.getTime()-g.xValue.getTime());if(d.length===0)return null;let u=d.length>1?d[1].xValue.getTime()-d[0].xValue.getTime():15*6e4,m=Math.abs(n(new Date(d[0].xValue.getTime()+u))-n(d[0].xValue));return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("defs",{children:jsxRuntime.jsx("clipPath",{id:s,children:jsxRuntime.jsx("rect",{x:l[0],y:c[1],width:l[1]-l[0],height:c[0]-c[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:d.map((p,g)=>{let f=n(p.xValue),b=a(p.yValue),x=a(0),v=Math.min(b,x),y=Math.abs(b-x),C=d[g+1],N=C?Math.abs(n(C.xValue)-f):m,P=p.category&&o[p.category]?o[p.category]:t;return jsxRuntime.jsx(shape.Bar,{x:f-N/2,y:v,width:N,height:y,fill:P,opacity:r,rx:1},p.xValue.getTime())})})})]})};var Rr=vp(Bg()),Vg=vp(zg());var T2=["top","left","transform","className","children","innerRef"];function ou(){return ou=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o]);}return e},ou.apply(this,arguments)}function k2(e,t){if(e==null)return {};var r={},o=Object.keys(e),n,a;for(a=0;a<o.length;a++)n=o[a],!(t.indexOf(n)>=0)&&(r[n]=e[n]);return r}function Fa(e){var t=e.top,r=t===void 0?0:t,o=e.left,n=o===void 0?0:o,a=e.transform,i=e.className,s=e.children,l=e.innerRef,c=k2(e,T2);return Ee__namespace.default.createElement("g",ou({ref:l,className:(0, Vg.default)("visx-group",i),transform:a||"translate("+n+", "+r+")"},c),s)}Fa.propTypes={top:Rr.default.number,left:Rr.default.number,transform:Rr.default.string,className:Rr.default.string,children:Rr.default.node,innerRef:Rr.default.oneOfType([Rr.default.string,Rr.default.func,Rr.default.object])};var Ge={top:0,right:0,bottom:50,left:60};function Jr(e={type:"number"}){let t=i=>{if(i==null)return "-";let s=Cr({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 l=d=>{if(d==null)return "";if(typeof d=="string")return d;if(typeof d=="number")return d.toString();if(typeof d=="object"&&"props"in d){let u=d.props;if(u?.children)return Array.isArray(u.children)?u.children.map(l).join(""):l(u.children)}return ""};return l(s)||i.toString()}return i.toString()},r=i=>{if(i==null)return "-";if(typeof e=="string"){let s=Cr({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 nu=(e,t)=>{let r=d3Array.extent(e,o=>o.xValue);return scale.scaleTime({range:[Ge.left,t-Ge.right],domain:r,nice:true})},au=(e,t,r)=>{let o=Jr(r),n=d3Array.min(e,l=>l.yValue)||0,a=d3Array.max(e,l=>l.yValue)||0,i=o.min!==void 0?o.min:n>=0?0:n*1.1,s=o.max!==void 0?o.max:a<=0?0:a*1.1;return scale.scaleLinear({range:[t-Ge.bottom,Ge.top],domain:[i,s],nice:true})};function L2(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 Ms(e,t=12,r="system-ui"){return e.length===0?0:Math.max(...e.map(o=>L2(o,t,r)))}function Ba(e){return e instanceof Date&&!Number.isNaN(e.getTime())}function I2(e,t,r=12,o=false){if(!Ba(t[0])||!Ba(t[1]))return console.warn("ChartAxis: Invalid date in domain, skipping tick calculation"),[];let n=t[0].getTime(),i=t[1].getTime()-n;if(i===0||i<1e3)return [t[0]];let s=Fc({start:t[0],end:t[1]},{compact:o}),c=[t[0],new Date((t[0].getTime()+t[1].getTime())/2),t[1]].map(b=>s(b)),d=Ms(c,r),m=d+d,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]];for(let b=1;b<g-1;b++){let x=b/(g-1),v=n+i*x;f.push(new Date(v));}return f.push(t[1]),f}var F2=({top:e,scale:t,width:r})=>{let o=t.domain(),n=[o[0],o[o.length-1]],a=Ba(n[0])&&Ba(n[1]),i=r<400,s=a?n[0].getTime():0,l=a?n[1].getTime():0,c=Ee.useMemo(()=>a?Fc({start:n[0],end:n[1]},{compact:i}):()=>"",[s,l,i,a]),d=Ee.useMemo(()=>I2(r,n,12,i),[r,s,l,i]);return d.length===0?null:jsxRuntime.jsx(axis.Axis,{orientation:"bottom",top:e,scale:t,tickValues:d,tickFormat:u=>{let m=u;return Ba(m)?c(m):""},stroke:"var(--color-border-muted)",tickStroke:"var(--color-border-muted)",tickLabelProps:(u,m,p)=>({fill:"var(--color-text-caption)",fontSize:12,textAnchor:m===0?"start":m===p.length-1?"end":"middle"}),rangePadding:0})};function Is(e,t=12){let r=t*2.5,o=Math.floor(e/r);return Math.max(2,Math.min(6,o))}var B2=({left:e,scale:t,yFormatter:r,height:o})=>{let n=Jr(r),a=Ee.useMemo(()=>!o||o<=0?5:Is(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:()=>({fill:"var(--color-text-caption)",fontSize:12,textAnchor:"end",dy:"0.33em"})})},z2=({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-caption)",fontSize:12,textAnchor:"middle",dy:"0.25em"})}),V2=({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-caption)",fontSize:12,textAnchor:"end",dx:"-0.25em",dy:"0.33em"})}),O2=({top:e,scale:t,yFormatter:r,width:o})=>{let n=Jr(r),a=Ee.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-caption)",fontSize:12,textAnchor:"middle",dy:"0.25em"})})},Dr={Bottom:F2,Left:B2,CategoryBottom:z2,CategoryLeft:V2,NumericBottom:O2};var Un=({data:e,formatter:t,label:r,categoryLabels:o})=>{if(!e)return null;let n=Ee__namespace.default.useContext(yo),a=o??n?.categoryLabels,i=n?.xScale,s=Jr(t),l=Ee__namespace.default.useRef(null),[c,d]=Ee__namespace.default.useState({x:0,y:0,translate:"translate(-50%, -100%)"});Ee__namespace.default.useEffect(()=>{if(!l.current)return;let b=l.current.getBoundingClientRect(),x=window.innerHeight,v=window.innerWidth,y=e.x,C=e.y,N=e.position==="left"?"translate(calc(-100% - 16px), -50%)":"translate(16px, -50%)";e.position==="left"&&y-b.width-16<0?N="translate(16px, -50%)":e.position==="right"&&y+b.width+16>v&&(N="translate(calc(-100% - 16px), -50%)"),C-b.height/2<0?C=b.height/2:C+b.height/2>x&&(C=x-b.height/2),d({x:y,y:C,translate:N});},[e.x,e.y,e.position]);let u=i?.domain(),p=u&&u.length===2&&u.every(f=>f instanceof Date)?Tm({start:u[0],end:u[1]}):null,g=r||(p&&e.xValue instanceof Date?p(e.xValue):String(e.xValue));return jsxRuntime.jsx(framerMotion.AnimatePresence,{children:jsxRuntime.jsxs(framerMotion.motion.div,{ref:l,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:c.x,top:c.y,transform:c.translate},children:[jsxRuntime.jsx("div",{className:"mb-1 font-medium text-text-body",children:g}),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(f=>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-body",children:[f.label,":"]}),jsxRuntime.jsx("span",{className:"text-text-muted",children:s.format(f.value)})]}),f.category&&jsxRuntime.jsxs("div",{className:"mt-0.5 flex items-center gap-2",children:[jsxRuntime.jsx("div",{className:"h-3 w-3",style:{backgroundColor:f.categoryColor||f.color,borderRadius:"1px"}}),jsxRuntime.jsx("span",{className:"text-sm text-text-muted",children:a?.[f.category]||f.category})]})]},f.label))}),(()=>{let f=e.series[e.series.length-1];return 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:f.color}}),jsxRuntime.jsx("span",{className:"font-medium text-text-body",children:f.label})]}),e.eventMetadata&&Object.keys(e.eventMetadata).length>0&&jsxRuntime.jsx("div",{className:"ml-4 mt-1 space-y-0.5 text-xs text-text-muted",children:Object.entries(e.eventMetadata).map(([b,x])=>jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[jsxRuntime.jsxs("span",{className:"capitalize",children:[b,":"]}),jsxRuntime.jsx("span",{className:"font-medium",children:x})]},b))})]})})()]}):jsxRuntime.jsx("ul",{className:"list-none p-0",children:e.series.map(f=>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-body",children:[f.label,":"]}),jsxRuntime.jsx("span",{className:"text-text-muted",children:s.format(f.value)})]}),f.category&&jsxRuntime.jsxs("div",{className:"mt-0.5 flex items-center gap-2",children:[jsxRuntime.jsx("div",{className:"h-3 w-3",style:{backgroundColor:f.categoryColor||f.color,borderRadius:"1px"}}),jsxRuntime.jsx("span",{className:"text-sm text-text-muted",children:a?.[f.category]||f.category})]})]},f.label))})]})})};var j2={top:20,right:20,bottom:50,left:60},Kg=({data:e,width:t,height:r,margin:o=j2,color:n,yFormatter:a={type:"number"},showGrid:i=true,showAxes:s=true,animate:l=true,barRadius:c=4,barPadding:d=.3,onBarClick:u,onBarHover:m,activeIndex:p,className:g,style:f,"aria-label":b="Category bar chart",orientation:x="vertical",showTooltip:v=true})=>{let[y,C]=Ee.useState(null),[N,P]=Ee.useState(null),[T,B]=Ee.useState(null),[A,I]=Ee.useState(t??600),[L,M]=Ee.useState(r??300),S=Ee.useRef(null),w=p??y,G=Ee.useId(),K=n||"var(--color-viz-default)";Ee.useEffect(()=>{if(t!==void 0&&r!==void 0){I(t),M(r);return}if(!S.current)return;let D=new ResizeObserver(k=>{for(let Y of k)t===void 0&&I(Y.contentRect.width),r===void 0&&M(Y.contentRect.height);});return D.observe(S.current),t===void 0&&I(S.current.offsetWidth),r===void 0&&M(S.current.offsetHeight||300),()=>{D.disconnect();}},[t,r]);let{xScale:z,yScale:j,innerWidth:Z,innerHeight:R}=Ee.useMemo(()=>{let D=A-o.left-o.right,k=L-o.top-o.bottom;if(x==="horizontal"){let E=d3Array.max(e,h=>h.value)||0;return {xScale:scale.scaleLinear({range:[0,D],domain:[0,E*1.1],nice:true}),yScale:scale.scaleBand({range:[0,k],domain:e.map(h=>h.label),padding:d}),innerWidth:D,innerHeight:k}}let Y=d3Array.max(e,E=>E.value)||0;return {xScale:scale.scaleBand({range:[0,D],domain:e.map(E=>E.label),padding:d}),yScale:scale.scaleLinear({range:[k,0],domain:[0,Y*1.1],nice:true}),innerWidth:D,innerHeight:k}},[e,A,L,o,d,x]);if(e.length===0)return jsxRuntime.jsx("div",{ref:S,className:tailwindMerge.twMerge("flex h-full min-h-[200px] w-full items-center justify-center rounded-lg border border-dashed border-gray-300 bg-background-surface text-sm font-medium text-text-muted dark:border-gray-700",g),style:r!==void 0?{height:r,...f}:f,children:"No data available"});let V=(D,k)=>{if(C(D),m?.(k,D),D!==null&&k){let Y,E;if(x==="horizontal"){let U=z(k.value),H=j(k.label)||0,q=j.bandwidth();Y=o.left+U,E=o.top+H+q/2;}else {let U=z,H=j,q=U(k.label)??0,re=U.bandwidth(),ue=H(k.value);Y=o.left+q+re/2,E=o.top+ue;}let h=Y>A/2;B(k.label),P({xValue:new Date,series:[{label:"Value",value:k.value,color:k.color||K}],x:Y,y:E,position:h?"left":"right"});}else P(null),B(null);};return jsxRuntime.jsxs("div",{ref:S,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":b,role:"img",children:[jsxRuntime.jsxs("svg",{width:A,height:L,children:[jsxRuntime.jsx("defs",{children:jsxRuntime.jsx(gradient.LinearGradient,{id:`${G}-bar`,from:K,to:K,toOpacity:.85})}),jsxRuntime.jsxs(Fa,{left:o.left,top:o.top,children:[i&&jsxRuntime.jsx("g",{className:"grid-lines",children:(x==="horizontal"?z.ticks(5):j.ticks(5)).map(D=>{let k=x==="horizontal"?0:j(D),Y=x==="horizontal"?z(D):0;return jsxRuntime.jsx("line",{x1:x==="horizontal"?Y:0,y1:x==="horizontal"?0:k,x2:x==="horizontal"?Y:Z,y2:x==="horizontal"?R:k,stroke:"var(--color-border-default)",strokeOpacity:.5,strokeDasharray:"2,3"},D)})}),e.map((D,k)=>{let Y=w===k||w==null,E=D.color||`url(#${G}-bar)`;if(x==="horizontal"){let X=z(D.value),te=j.bandwidth(),Ne=j(D.label)||0;return jsxRuntime.jsx(framerMotion.motion.rect,{x:0,y:Ne,width:X,height:te,fill:E,rx:c,ry:c,initial:l?{width:0,opacity:.5}:void 0,animate:{width:X,opacity:Y?1:.5},transition:{duration:.5,delay:k*.05,ease:"easeOut",opacity:{duration:.15,delay:0}},style:{cursor:u||m?"pointer":"default"},onMouseEnter:()=>V(k,D),onMouseLeave:()=>V(null,null),onClick:()=>u?.(D,k)},D.label)}let h=z,U=j,H=h.bandwidth(),q=h(D.label)??0,re=U(D.value),ue=Math.max(0,R-re);return l?jsxRuntime.jsx(framerMotion.motion.rect,{x:q,width:H,fill:E,rx:c,ry:c,initial:{y:R,height:0,opacity:.5},animate:{y:re,height:ue,opacity:Y?1:.5},transition:{duration:.5,delay:k*.05,ease:"easeOut",opacity:{duration:.15,delay:0}},style:{cursor:u||m?"pointer":"default"},onMouseEnter:()=>V(k,D),onMouseLeave:()=>V(null,null),onClick:()=>u?.(D,k)},D.label):jsxRuntime.jsx("rect",{x:q,y:re,width:H,height:ue,fill:E,rx:c,ry:c,opacity:Y?1:.5,style:{cursor:u||m?"pointer":"default",transition:"opacity 150ms ease-out"},onMouseEnter:()=>V(k,D),onMouseLeave:()=>V(null,null),onClick:()=>u?.(D,k)},D.label)}),s&&x==="vertical"&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(Dr.CategoryBottom,{top:R,scale:z}),jsxRuntime.jsx(Dr.Left,{left:0,scale:j,yFormatter:a,height:R})]}),s&&x==="horizontal"&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(Dr.NumericBottom,{top:R,scale:z,yFormatter:a,width:Z}),jsxRuntime.jsx(Dr.CategoryLeft,{left:0,scale:j})]})]})]}),v&&jsxRuntime.jsx(Un,{data:N,formatter:a,label:T??void 0})]})};var Jg=({item:e})=>jsxRuntime.jsxs("div",{className:"flex items-center gap-2 shrink-0",children:[jsxRuntime.jsx("div",{className:"h-3 w-3 shrink-0",style:{backgroundColor:e.fill,borderRadius:"1px"}}),jsxRuntime.jsx("span",{className:"text-sm text-text-caption whitespace-nowrap",children:e.category})]}),X2=({items:e})=>e.length===0?null:jsxRuntime.jsx("div",{className:"flex items-center gap-3 flex-wrap",children:e.map(t=>jsxRuntime.jsx(Jg,{item:t},t.category))}),Bs=({items:e,onExport:t,marginLeft:r=0,marginRight:o=0,isZoomed:n=false,onResetZoom:a})=>{let[i,s]=Ee__namespace.default.useState(false),[l,c]=Ee__namespace.default.useState(null),[d,u]=Ee__namespace.default.useState(false),[m,p]=Ee__namespace.default.useState(false),g=Ee__namespace.default.useCallback(async b=>{s(true),c(b),p(false);try{await t(b);}catch(x){console.error("Export failed:",x);}finally{s(false),c(null);}},[t]),f=Ee__namespace.default.useCallback(async b=>{await g(b);},[g]);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(X2,{items:e})}),jsxRuntime.jsx("div",{className:"sm:hidden flex items-center gap-3",children:e.length>0&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("button",{onClick:()=>u(true),className:"text-sm text-text-muted hover:text-text-body transition-colors underline decoration-dotted underline-offset-4",children:"Legend"}),jsxRuntime.jsx(Xe,{isOpen:d,onClose:()=>u(false),title:"Legend",children:jsxRuntime.jsx("div",{className:"grid grid-cols-1 gap-3 p-4",children:e.map(b=>jsxRuntime.jsx(Jg,{item:b},b.category))})})]})}),jsxRuntime.jsxs("div",{className:"sm:hidden flex items-center gap-2 shrink-0",children:[n&&a&&jsxRuntime.jsx(_,{variant:"secondary",size:"sm",onPress:a,children:jsxRuntime.jsx(F,{name:"ArrowsOut",size:16})}),jsxRuntime.jsx(_,{variant:"secondary",size:"sm",onPress:()=>p(true),isDisabled:i,children:jsxRuntime.jsx(F,{name:"Export",size:16})}),jsxRuntime.jsx(Xe,{isOpen:m,onClose:()=>p(false),title:"Export Chart",contentPadding:false,children:jsxRuntime.jsxs("div",{className:"flex flex-col",children:[jsxRuntime.jsxs("button",{onClick:()=>g("csv"),disabled:i,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(F,{name:"List",size:20,className:"text-text-muted"}),jsxRuntime.jsx("span",{className:"text-sm text-text-body",children:l==="csv"?"Exporting...":"Export as CSV"})]}),jsxRuntime.jsxs("button",{onClick:()=>g("svg"),disabled:i,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(F,{name:"Code",size:20,className:"text-text-muted"}),jsxRuntime.jsx("span",{className:"text-sm text-text-body",children:l==="svg"?"Exporting...":"Export as SVG"})]}),jsxRuntime.jsxs("button",{onClick:()=>g("png"),disabled:i,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(F,{name:"DownloadSimple",size:20,className:"text-text-muted"}),jsxRuntime.jsx("span",{className:"text-sm text-text-body",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(_,{variant:"secondary",size:"sm",onPress:a,children:[jsxRuntime.jsx(F,{name:"ArrowsOut",size:16}),jsxRuntime.jsx("span",{className:"hidden sm:inline",children:"Reset Zoom"})]}),jsxRuntime.jsxs(reactAriaComponents.DialogTrigger,{children:[jsxRuntime.jsxs(_,{variant:"secondary",size:"sm",isDisabled:i,children:[jsxRuntime.jsx(F,{name:"Export",size:16}),i?"Exporting...":"Export"]}),jsxRuntime.jsx(Ze,{placement:"top end",className:"min-w-48 p-1 bg-white dark:bg-gray-800 rounded-lg shadow-xl ring-1 ring-gray-200 dark:ring-gray-700",children:jsxRuntime.jsxs(reactAriaComponents.Menu,{onAction:f,className:"outline-none",children:[jsxRuntime.jsx(reactAriaComponents.MenuItem,{id:"csv",className:"flex items-center gap-2 px-3 py-2 text-sm text-gray-700 hover:bg-gray-100 dark:text-gray-300 dark:hover:bg-gray-700 rounded cursor-pointer outline-none",isDisabled:i,children:jsxRuntime.jsxs("span",{className:"flex items-center gap-2",children:[jsxRuntime.jsx(F,{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-gray-700 hover:bg-gray-100 dark:text-gray-300 dark:hover:bg-gray-700 rounded cursor-pointer outline-none",isDisabled:i,children:jsxRuntime.jsxs("span",{className:"flex items-center gap-2",children:[jsxRuntime.jsx(F,{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-gray-700 hover:bg-gray-100 dark:text-gray-300 dark:hover:bg-gray-700 rounded cursor-pointer outline-none",isDisabled:i,children:jsxRuntime.jsxs("span",{className:"flex items-center gap-2",children:[jsxRuntime.jsx(F,{name:"DownloadSimple",size:14}),l==="png"?"Exporting...":"Export as PNG"]})})]})})]})]})]})};var su=({data:e,seriesMetadata:t,width:r,height:o,onBrushChange:n,brushRegion:a,margin:i=Ge})=>{let s=Ee.useRef(null),l=Ee.useRef(false),c=Ee.useMemo(()=>e.flat(),[e]),d=Ee.useMemo(()=>({top:10,bottom:15,left:i.left,right:i.right}),[i]),u=r-d.left-d.right,m=Ee.useMemo(()=>{if(c.length===0)return scale.scaleTime({domain:[new Date,new Date],range:[0,u]});let x=new Date(Math.min(...c.map(y=>y.xValue.getTime()))),v=new Date(Math.max(...c.map(y=>y.xValue.getTime())));return scale.scaleTime({domain:[x,v],range:[0,u]})},[c,u]),p=Ee.useMemo(()=>{let x=c.length>0?Math.max(0,...c.map(v=>v.yValue)):1;return scale.scaleLinear({domain:[0,x],range:[o-d.bottom,d.top]})},[c,o]),g=x=>{if(l.current)return;if(!x){n(null);return}let{x0:v,x1:y}=x;if(v===y)return;let C=new Date(v),N=new Date(y);if(!(Number.isNaN(C.getTime())||Number.isNaN(N.getTime()))){if(c.length>0){let P=Math.min(...c.map(L=>L.xValue.getTime())),T=Math.max(...c.map(L=>L.xValue.getTime())),A=(T-P)*.05;if(Math.abs(C.getTime()-P)<A&&Math.abs(N.getTime()-T)<A){n(null);return}}n([C,N]);}},f=Ee.useMemo(()=>{if(c.length!==0)return {start:{x:0,y:d.top},end:{x:u,y:o-d.bottom}}},[u,o,c]);Ee.useEffect(()=>{if(!s.current||c.length===0)return;let x=s.current.state;if(x?.isBrushing||x?.activeHandle)return;let v=Math.min(...c.map(B=>B.xValue.getTime())),y=Math.max(...c.map(B=>B.xValue.getTime())),C=a?a[0]:new Date(v),N=a?a[1]:new Date(y),P=s.current.state?.extent;if(P){let B=m.invert(P.x0),A=m.invert(P.x1),I=Math.abs(B.getTime()-C.getTime()),L=Math.abs(A.getTime()-N.getTime());if(I<1e3&&L<1e3)return}l.current=true;let T=B=>{let A=s.current.getExtent({x:m(C),y:d.top},{x:m(N),y:o-d.bottom});return {...B,start:{y:A.y0,x:A.x0},end:{y:A.y1,x:A.x1},extent:A}};s.current.updateBrush(T),setTimeout(()=>{l.current=false;},50);},[a,m,o,c]);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-muted)",strokeWidth:1,orientation:["diagonal"]}),jsxRuntime.jsxs("g",{transform:`translate(${d.left}, 0)`,children:[e.map((x,v)=>jsxRuntime.jsx(shape.LinePath,{data:x,x:y=>m(y.xValue),y:y=>p(y.yValue),stroke:t[v]?.color||"var(--color-gray-500)",strokeWidth:1.5,opacity:.8},`brush-series-${v}`)),jsxRuntime.jsx(brush.Brush,{xScale:m,yScale:p,width:u,height:o-d.top-d.bottom,margin:{top:d.top,bottom:d.bottom,left:0,right:0},handleSize:8,innerRef:s,resizeTriggerAreas:["left","right"],brushDirection:"horizontal",initialBrushPosition:f,onChange:g,onClick:()=>n(null),selectedBoxStyle:b,useWindowMoveEvents:true})]})]})})};function Qg(e){switch(e){case "command":return pt("--color-action-primary","#3b82f6");case "success":return pt("--color-feedback-success","#10b981");case "warning":return pt("--color-feedback-warning","#f59e0b");case "error":return pt("--color-feedback-error","#ef4444");case "alert":return pt("--color-feedback-warning","#f59e0b");default:return pt("--color-action-secondary","#6b7280")}}function Vs({events:e,color:t,showLabels:r=false}){let o=Ee.useContext(yo),[n,a]=Ee.useState(null);if(!o)return console.warn("ChartEventMarkers must be used within a ChartContainer"),null;let{xScale:i,yScale:s,height:l,tooltip:c,datasets:d,seriesMetadata:u,seriesTypes:m,categoryColors:p}=o,g=e.filter(x=>{let v=i(x.timestamp);return v>=Ge.left&&v<=i.range()[1]}),f=Ee.useCallback((x,v)=>{a(v);let y=i(x.timestamp),C=y>(i.range()[1]-Ge.right-Ge.left)/2+Ge.left,N=[];d&&u&&d.forEach((P,T)=>{if(P.length===0)return;let B=d3Array.bisector(S=>S.xValue).left,A=B(P,x.timestamp),I=P[A-1],L=P[A],M;if(!I)M=L;else if(!L)M=I;else {let S=Math.abs(x.timestamp.getTime()-I.xValue.getTime()),w=Math.abs(x.timestamp.getTime()-L.xValue.getTime());M=S<w?I:L;}M&&u[T]&&N.push({label:u[T].label,value:M.yValue,color:u[T].color,type:m?.[T]||"line",...M.category&&{category:M.category,categoryColor:p?.[M.category]}});}),N.push({label:x.label,value:0,color:t||Qg(x.type),type:"event"}),c.show({xValue:x.timestamp,series:N,x:y,y:N.length>1&&typeof N[0].value=="number"?s(N[0].value):l/2,position:C?"left":"right",isEvent:true,eventMetadata:x.metadata});},[i,s,l,c,t,d,u,m,p]),b=Ee.useCallback(()=>{a(null),c.hide();},[c]);return g.length===0?null:jsxRuntime.jsx("g",{className:"chart-event-markers","data-testid":"chart-event-markers",children:g.map((x,v)=>{let y=i(x.timestamp),C=t||Qg(x.type),N=n===v;return jsxRuntime.jsxs("g",{children:[jsxRuntime.jsx("line",{x1:y,y1:Ge.top,x2:y,y2:l-Ge.bottom,stroke:C,strokeWidth:N?3:2,strokeDasharray:"4 4",strokeOpacity:N?.9:.6,pointerEvents:"none"}),jsxRuntime.jsx("circle",{cx:y,cy:Ge.top,r:N?5:4,fill:C,stroke:"var(--color-background-surface)",strokeWidth:2,pointerEvents:"none"}),jsxRuntime.jsx("circle",{cx:y,cy:l-Ge.bottom,r:N?5:4,fill:C,stroke:"var(--color-background-surface)",strokeWidth:2,pointerEvents:"none"}),r&&jsxRuntime.jsx("text",{x:y,y:Ge.top-8,textAnchor:"middle",fill:"var(--color-text-caption)",fontSize:11,fontWeight:500,pointerEvents:"none",children:x.label}),jsxRuntime.jsx("rect",{x:y-10,y:Ge.top,width:20,height:l-Ge.top-Ge.bottom,fill:"transparent",style:{cursor:"pointer"},onMouseEnter:()=>f(x,v),onMouseLeave:b})]},`${x.timestamp.getTime()}-${v}`)})})}var Ga=({data:e,color:t="var(--color-viz-default)",strokeWidth:r=3,strokeDasharray:o})=>{let{xScale:n,yScale:a,animationSettings:i}=Zo(),s=a.range();return jsxRuntime.jsx(framerMotion.motion.g,{initial:{scaleY:0},animate:{scaleY:1},transition:{duration:i.duration,ease:i.ease},style:{transformOrigin:`0 ${s[0]}px`,transformBox:"fill-box",isolation:"isolate"},children:jsxRuntime.jsx(shape.LinePath,{data:e,x:l=>n(l.xValue),y:l=>a(l.yValue),stroke:t,strokeWidth:r,strokeDasharray:o,strokeLinecap:"round",curve:curve.curveLinear})})};var rb=e=>e.type===Ia||e.type===Ga||e.type===Hn,xw=e=>e.type===Vs,hw=d3Array.bisector(e=>e.xValue).left,yw=()=>jsxRuntime.jsx("div",{className:"flex h-full items-center justify-center",children:jsxRuntime.jsx("p",{className:"text-gray-500",children:"No data available"})}),vw=()=>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"})]})]}),Cw=({parentWidth:e,parentHeight:t,yFormatter:r={type:"number"},isLoading:o=false,enableZoom:n=false,enableBrush:a=false,brushHeight:i=60,onZoomChange:s,children:l})=>{let[c,d]=Ee.useState(null),[u,m]=Ee.useState(null),p=Ee.useRef(null),g=Ee.useRef(0),f=Ee.useRef(""),b=Ee.useRef(null),{colorMode:x}=Rt(),v=Ee.useMemo(()=>pa(),[x]),y=Ee.useMemo(()=>Dc(),[x]),{datasets:C,seriesMetadata:N,categoryInfo:P,categoryColors:T,categoryLabels:B,hasBarSeries:A,firstBarSeriesIndex:I,seriesTypes:L}=Ee.useMemo(()=>{let se=Ee.Children.toArray(l).filter(ge=>Ee.isValidElement(ge)&&rb(ge)),ve=se.filter(ge=>ge.props.data).length,Fe=se.some(ge=>ge.type===Hn),Pe=[],W=[],O=[],Q=null,oe=null,ne=null;se.forEach((ge,qe)=>{let Oe=ge.props;if(!Oe.data)return;Pe.push(Oe.data);let Eo=("color"in Oe&&Oe.color?Oe.color:void 0)||(ve===1?y:v[qe%v.length]);W.push({label:"label"in Oe&&Oe.label||`Series ${Pe.length}`,color:Eo});let Tn=ge.type===Ia?"area":ge.type===Ga?"line":"bar";O.push(Tn),"categoryColors"in Oe&&Oe.categoryColors&&(Q=Oe.categoryColors),"categoryLabels"in Oe&&Oe.categoryLabels&&(oe=Oe.categoryLabels),ge.type===Hn&&ne===null&&(ne=Pe.length-1);});let we=null;if(Q){let ge=new Set;Pe.forEach(qe=>{qe.forEach(Oe=>{Oe.category&&ge.add(Oe.category);});}),we=Array.from(ge).map(qe=>({label:oe?.[qe]||qe,color:Q[qe]||"#6b7280"}));}return {datasets:Pe,seriesMetadata:W,categoryInfo:we,categoryColors:Q,categoryLabels:oe,hasBarSeries:Fe,firstBarSeriesIndex:ne,seriesTypes:O}},[l,y,v,x]),M=e,S=a?i+8:0,w=t-60-S,G=Math.max(100,w),K=Ee.useMemo(()=>C.flat(),[C]),z=Ee.useMemo(()=>{if(K.length===0)return null;let $=[...K].sort((se,ve)=>se.xValue.getTime()-ve.xValue.getTime());return [$[0].xValue,$[$.length-1].xValue]},[K]),j=u||z,Z=Ee.useMemo(()=>j?C.map(se=>se.filter(ve=>ve.xValue>=j[0]&&ve.xValue<=j[1])):C,[C,j]);Ee.useEffect(()=>{s&&s(u);},[u,s]);let R=Ee.useMemo(()=>Z.flat(),[Z]),V=Ee.useMemo(()=>au(R,G,r),[R,G,r]),D=Ee.useMemo(()=>{let $=G-Ge.top-Ge.bottom;return Is($)},[G]),k=Ee.useMemo(()=>{let $=Jr(r),se=$.tickFormat||$.format,Fe=V.ticks(D).map(O=>se(O)),Pe=Ms(Fe,12,"system-ui"),W=Math.ceil(Pe)+12;return {...Ge,left:Math.max(W,30)}},[V,r,D]),Y=Ee.useMemo(()=>j?scale.scaleTime({domain:j,range:[k.left,M-k.right]}):nu(K,M),[j,K,M,k]),E=Ee.useCallback($=>{if(!z)return;let{scaleX:se,translateX:ve}=$,Fe=M-k.left-k.right,[Pe,W]=z,O=W.getTime()-Pe.getTime();if(O<=0){m(null);return}let Q=-ve,oe=Q+Fe,ne=Fe*se/O,we=Q/ne,ge=oe/ne,qe=new Date(Pe.getTime()+we),Oe=new Date(Pe.getTime()+ge),bt=Math.abs(qe.getTime()-Pe.getTime()),Eo=Math.abs(Oe.getTime()-W.getTime()),Tn=O*.02;bt<Tn&&Eo<Tn?m(null):m([qe,Oe]);},[z,M,k]),h=Ee.useCallback($=>{let{left:se}=p.current?.getBoundingClientRect()||{left:0},ve=$.clientX-se;if($.timeStamp-(g.current||0)<16)return;g.current=$.timeStamp;let Fe=Y.invert(ve),Pe=C.map((Q,oe)=>{if(!Q||Q.length===0)return null;let ne=hw(Q,Fe,1);if(ne===0)return {point:Q[0],datasetIndex:oe};if(ne>=Q.length)return {point:Q[Q.length-1],datasetIndex:oe};let we=Q[ne-1],ge=Q[ne];if(!we||!ge)return null;let qe=Math.abs(we.xValue.getTime()-Fe.getTime()),Oe=Math.abs(ge.xValue.getTime()-Fe.getTime());return {point:qe<Oe?we:ge,datasetIndex:oe}}).filter(Q=>Q!==null&&N[Q.datasetIndex]!==void 0).map(({point:Q,datasetIndex:oe})=>({label:N[oe].label,value:Q.yValue,color:N[oe].color,point:Q,type:L[oe]}));if(Pe.length===0){d(null);return}let W=Y(Pe[0].point.xValue),O=W>(M-k.right-k.left)/2+k.left;d({xValue:Pe[0].point.xValue,series:Pe.map(({label:Q,value:oe,color:ne,point:we,type:ge})=>({label:Q,value:oe,color:ne,type:ge,category:we.category,categoryColor:we.category&&T?T[we.category]:void 0})),x:W,y:V(Pe[0].value),position:O?"left":"right"});},[C,Z,N,L,Y,V,M,T,k]),U=()=>{d(null);},H=Ee.useCallback(()=>{m(null),b.current&&b.current.reset();},[]),q=Ee.useCallback($=>{if(m($),b.current&&z){let[se,ve]=z,Fe=ve.getTime()-se.getTime();if(Fe<=0){b.current.reset();return}if(!$)b.current.reset();else {let[Pe,W]=$,O=W.getTime()-Pe.getTime();if(O<=0){b.current.reset();return}let Q=Fe/O,oe=M-k.left-k.right,we=-((Pe.getTime()-se.getTime())/Fe)*oe*Q;b.current.setTransformMatrix({scaleX:Q,scaleY:1,translateX:we,translateY:0,skewX:0,skewY:0});}}},[z,M,k]),re={width:M,height:G,xScale:Y,yScale:V,yFormatter:r,animationSettings:ug,tooltip:{data:c,show:d,hide:()=>d(null)},datasets:Z,seriesMetadata:N,seriesTypes:L,categoryColors:T||void 0,categoryLabels:B||void 0},ue=Ee.Children.toArray(l),X=0,te=[],Ne=[];ue.forEach($=>{if(!Ee.isValidElement($)){te.push($);return}if(xw($))Ne.push($);else if(rb($)){let se=X;X++;let ve=$.props;te.push(Ee__namespace.default.cloneElement($,{...ve,data:Z[se]||ve.data,color:N[se]?.color}));}else te.push($);});let ae=(P||N).map($=>({category:$.label,fill:$.color})),de=Cp({datasets:C,metadata:{xLabel:"Date",yLabel:"Value",seriesLabels:N.map($=>$.label),timestamp:true},svgRef:p});if(o)return jsxRuntime.jsx(vw,{});if(C.length===0)return jsxRuntime.jsx(yw,{});let fe=jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("title",{children:"Data chart visualization"}),jsxRuntime.jsx("g",{children:V.ticks(D).map($=>jsxRuntime.jsx(shape.Line,{from:{x:k.left,y:V($)},to:{x:M-k.right,y:V($)},stroke:"var(--color-border-muted)",strokeWidth:1},`grid-line-${$}`))}),te,jsxRuntime.jsx(Dr.Bottom,{top:G-k.bottom,scale:Y,width:M-k.left-k.right}),jsxRuntime.jsx(Dr.Left,{left:k.left,scale:V,yFormatter:r,height:G-k.top-k.bottom}),c&&!c.isEvent&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[A&&I!==null?(()=>{let $=Z[I]??[];if($.length===0)return null;let se=[...$].sort((ne,we)=>ne.xValue.getTime()-we.xValue.getTime()),ve=se.findIndex(ne=>ne.xValue.getTime()===c.xValue.getTime()),Fe=se[ve+1],Pe=se.length>1&&Fe?Fe.xValue.getTime()-c.xValue.getTime():15*6e4,W=Math.abs(Y(new Date(c.xValue.getTime()+Pe))-Y(c.xValue)),Q=Y(c.xValue)-W/2,oe=V.range();return jsxRuntime.jsx("rect",{x:Q,y:oe[1],width:W,height:oe[0]-oe[1],className:"fill-background-muted",opacity:.5,pointerEvents:"none",style:{transition:"all 100ms ease-out"}})})():null,c.series.filter($=>$.type!=="bar").map($=>jsxRuntime.jsxs("g",{children:[jsxRuntime.jsx("circle",{cx:Y(c.xValue),cy:V($.value),r:8,fill:"white",stroke:$.color,strokeWidth:2,style:{transition:"all 100ms ease-out"}}),jsxRuntime.jsx("circle",{cx:Y(c.xValue),cy:V($.value),r:4,fill:$.color,style:{transition:"all 100ms ease-out"}})]},`highlight-${$.label}`))]}),jsxRuntime.jsx("rect",{x:k.left,y:k.top,width:M-k.left-k.right,height:G-k.top-k.bottom,fill:"transparent",style:{cursor:n?"grab":"crosshair"},onMouseMove:h,onMouseLeave:U}),Ne]});return jsxRuntime.jsx("div",{className:"relative flex h-full flex-col",children:jsxRuntime.jsxs(yo.Provider,{value:re,children:[n?jsxRuntime.jsx(zoom.Zoom,{width:M,height:G,scaleXMin:1,scaleXMax:20,scaleYMin:1,scaleYMax:1,constrain:$=>{let{scaleX:se,translateX:ve}=$,Fe=Math.max(1,Math.min(20,se)),Pe=1,W=M-k.left-k.right,O=0,Q=W*(1-Fe),oe=Math.max(Q,Math.min(O,ve));return {...$,scaleX:Fe,scaleY:Pe,translateX:oe,translateY:0}},children:$=>{if(b.current=$,$.transformMatrix){let{scaleX:se,translateX:ve}=$.transformMatrix,Fe=`${se.toFixed(4)}-${ve.toFixed(2)}`;Fe!==f.current&&(f.current=Fe,setTimeout(()=>{E($.transformMatrix);},0));}return jsxRuntime.jsx("svg",{width:M,height:G,className:"overflow-visible",ref:se=>{p.current=se,$.containerRef.current!==se&&($.containerRef.current=se);},role:"img","aria-label":"Data chart",style:{cursor:$.isDragging?"grabbing":"grab",touchAction:"none"},onMouseDown:$.dragStart,onMouseMove:$.dragMove,onMouseUp:$.dragEnd,onMouseLeave:()=>{$.isDragging&&$.dragEnd();},onTouchStart:$.dragStart,onTouchMove:$.dragMove,onTouchEnd:$.dragEnd,children:fe})}}):jsxRuntime.jsx("svg",{width:M,height:G,className:"overflow-visible",ref:p,role:"img","aria-label":"Data chart",children:fe}),jsxRuntime.jsx(Un,{data:c,formatter:r}),a&&z&&jsxRuntime.jsx(su,{data:C,seriesMetadata:N,width:M,height:i,onBrushChange:q,brushRegion:u,margin:k}),jsxRuntime.jsx(Bs,{onExport:de,items:ae,marginLeft:0,marginRight:k.right,isZoomed:u!==null,onResetZoom:H})]})})},nb=responsive.withParentSize(Cw);var Pw=e=>e.toLocaleString(),Rw=e=>`${Math.round(e*100)}%`,lb=({data:e,width:t=800,height:r=400,padding:o=0,barGap:n=30,formatValue:a=Pw,formatPercentage:i=Rw,color:s,showScale:l=true,showOverallConversion:c=true,overallConversionLabel:d="Overall Conversion:",activeStageId:u,onStageClick:m,onStageHover:p,className:g,style:f,"aria-label":b="Funnel chart"})=>{let[x,v]=Ee.useState(null),[y,C]=Ee.useState(t),N=Ee.useRef(null),P=u??x,T=Ee.useId(),B=s||"var(--color-viz-default)";Ee.useEffect(()=>{if(!N.current)return;let w=new ResizeObserver(G=>{for(let K of G)C(K.contentRect.width);});return w.observe(N.current),()=>{w.disconnect();}},[]);let{layout:A,overallConversion:I}=Ee.useMemo(()=>{if(e.length===0)return {layout:[],overallConversion:0};let w=e[0].value,G=c?60:0,K=r-o*2-G,z=(e.length-1)*n,j=(K-z)/e.length,Z=e.map((V,D)=>{let k=o+G+D*(j+n),Y=w===0?0:V.value/w,E=Y,h=D===0?null:e[D-1].value,U=h==null||h===0?0:1-V.value/h;return {stage:V,index:D,y:k,barHeight:j,widthPercent:Y,conversionRate:E,dropOff:U}}),R=w===0?0:e[e.length-1].value/w;return {layout:Z,overallConversion:R,maxValue:w}},[e,y,r,o,n,l,c]);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-gray-300 bg-background-surface text-sm font-medium text-text-muted dark:border-gray-700",g),style:{width:t,height:r,...f},children:"No funnel data available"});let L=l?60:0,M=o+L,S=y-o*2-L;return jsxRuntime.jsx("div",{ref:N,className:tailwindMerge.twMerge("relative w-full overflow-hidden rounded-lg bg-background-surface",g),style:{height:r,...f},"aria-label":b,role:"img",children:jsxRuntime.jsxs("svg",{width:"100%",height:r,className:"relative",children:[jsxRuntime.jsxs("defs",{children:[jsxRuntime.jsx(gradient.LinearGradient,{id:`${T}-bar`,from:B,to:B,toOpacity:.85}),jsxRuntime.jsx(gradient.LinearGradient,{id:`${T}-bg`,from:B,to:B,fromOpacity:.01,toOpacity:.15,x1:"0",y1:"0",x2:"1",y2:"0"})]}),c&&jsxRuntime.jsxs("text",{x:M,y:o+20,className:"fill-text-body text-sm font-medium",children:[jsxRuntime.jsx("tspan",{className:"fill-text-muted",children:d})," ",i(I)]}),l&&jsxRuntime.jsx("g",{children:A.map(w=>{let G=w.y+w.barHeight/2;return jsxRuntime.jsx("text",{x:o+L-12,y:G,textAnchor:"end",dominantBaseline:"middle",className:"fill-text-caption text-xs",children:i(w.conversionRate)},w.stage.id)})}),A.map(w=>{let G=P===w.stage.id,K=S*w.widthPercent;return jsxRuntime.jsxs("g",{children:[jsxRuntime.jsx("rect",{x:M,y:w.y,width:S,height:w.barHeight,fill:`url(#${T}-bg)`,rx:4}),jsxRuntime.jsx(framerMotion.motion.rect,{x:M,y:w.y,width:K,height:w.barHeight,fill:`url(#${T}-bar)`,rx:4,initial:{width:0},animate:{width:K},transition:{duration:.6,delay:w.index*.1,ease:"easeOut"},opacity:G||P==null?1:.5,style:{cursor:m||p?"pointer":"default",transition:"opacity 150ms ease"},onMouseEnter:()=>{v(w.stage.id),p?.(w.stage);},onMouseLeave:()=>{v(null),p?.(null);},onClick:()=>m?.(w.stage)}),jsxRuntime.jsx("rect",{x:M+10,y:w.y+w.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:w.y+w.barHeight/2+4,className:"fill-text-heading text-xs font-semibold",style:{pointerEvents:"none"},children:a(w.stage.value)}),jsxRuntime.jsxs("text",{x:M,y:w.y-8,className:"fill-text-muted text-xs",style:{pointerEvents:"none"},children:[jsxRuntime.jsx("tspan",{children:w.index+1})," ",w.stage.label]}),w.stage.secondaryValue&&jsxRuntime.jsx("text",{x:M+16,y:w.y-24,className:"fill-text-muted text-xs",style:{pointerEvents:"none"},children:w.stage.secondaryValue}),w.index>0&&w.dropOff>0&&jsxRuntime.jsxs("text",{x:M+S,y:w.y-8,textAnchor:"end",className:"fill-text-muted text-xs",children:[i(w.dropOff)," drop"]}),w.stage.annotation&&jsxRuntime.jsxs("g",{children:[jsxRuntime.jsx("rect",{x:M+K+8,y:w.y+8,width:60,height:24,rx:3,className:"fill-background-muted"}),jsxRuntime.jsx("text",{x:M+K+16,y:w.y+20,className:"fill-text-caption text-xs font-medium",children:w.stage.annotation})]})]},w.stage.id)})]})})};function Dw(e,t,r){return {field:e,operator:t,value:r}}function Ew(e,t="AND"){return {logic:t,conditions:e}}function Ua(){return {logic:"AND",conditions:[]}}function Ws(e){return !e||e.conditions.length===0?true:e.conditions.every(t=>"conditions"in t?Ws(t):false)}function Aw(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 l=r.get(i),c=l?.label||i,d=[],u=[],m=[];for(let p of s)p.operator==="in"&&Array.isArray(p.value)?d.push(...p.value):p.operator==="eq"?typeof p.value!="boolean"&&!Array.isArray(p.value)?d.push(p.value):m.push(p):["gte","gt","lte","lt"].includes(p.operator)?u.push({operator:p.operator,value:typeof p.value=="boolean"||Array.isArray(p.value)?String(p.value):p.value}):m.push(p);if(d.length>0){let g=Array.from(new Set(d)).map(f=>l?.values?.find(x=>String(x.value)===String(f))?.label??f);a.push({id:`${i}-in`,label:c,value:g.join(", ")});}if(u.length>0){let p=u.find(f=>f.operator==="gte"||f.operator==="gt"),g=u.find(f=>f.operator==="lte"||f.operator==="lt");if(p&&g){let f=p.operator==="gte"?"\u2265":">",b=g.operator==="lte"?"\u2264":"<";a.push({id:`${i}-range`,label:c,value:`${f} ${p.value} and ${b} ${g.value}`});}else for(let f of u){let b;f.operator==="gte"?b="\u2265":f.operator==="gt"?b=">":f.operator==="lte"?b="\u2264":b="<",a.push({id:`${i}-${f.operator}`,label:c,value:`${b} ${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:c,value:g});}}return a}function vo(e,t){let r=e||Ua();return {...r,conditions:[...r.conditions,t]}}function $o(e,t){if(!e)return Ua();let r=e.conditions.filter(o=>"conditions"in o?$o(o,t).conditions.length>0:o.field!==t);return {...e,conditions:r}}function _o(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 Ya({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-muted whitespace-nowrap ${o}`,children:[e.toLocaleString()," ",a]})}var Bw=e=>{let t=xt({isInvalid:e.isInvalid,isDisabled:e.isDisabled,isFocused:e.isFocused,transparent:e.transparent,size:e.size}),r=[e.showSearchIcon?"pl-8":"pl-3",e.isClearable&&e.hasValue||e.isPassword?"pr-8":"pr-3"].join(" ");return tailwindMerge.twMerge(t,r,e.className)};function ar({label:e,description:t,errorMessage:r,size:o="md",tooltip:n,isRequired:a,transparent:i,showSearchIcon:s,isClearable:l,onClear:c,type:d,validationResult:u,reserveErrorSpace:m=true,isLoading:p=false,descriptionPlacement:g="below",...f}){let[b,x]=Ee__namespace.default.useState(false),{isFocused:v,handleFocus:y,handleBlur:C}=nr(),N=d==="password",P=wi(p,300);return jsxRuntime.jsx(reactAriaComponents.TextField,{...f,isRequired:a,className:he(f.className,"group flex flex-col"),children:({isDisabled:T,isInvalid:B})=>jsxRuntime.jsxs("div",{className:"flex flex-col",children:[e&&jsxRuntime.jsx(De,{size:o,tooltip:n,description:g==="tooltip"||g==="inline"?t:void 0,descriptionPlacement:g,isRequired:a,children:e}),jsxRuntime.jsxs(ot,{children:[s&&jsxRuntime.jsx("div",{className:"pointer-events-none absolute left-2 top-[45%] -translate-y-1/2 transform flex items-center z-10",children:P?jsxRuntime.jsx(Hr,{size:16,color:"text-text-muted"}):jsxRuntime.jsx(F,{name:"MagnifyingGlass",className:`h-4 w-4 transition-colors ${v?"text-action-brand":"text-text-muted"}`})}),jsxRuntime.jsx(os,{size:o,disabled:T,type:N?b?"text":"password":d,value:f.value,defaultValue:f.defaultValue,placeholder:f.placeholder,onFocus:A=>y(A,f.onFocus),onBlur:A=>C(A,f.onBlur),onChange:A=>f.onChange?.(A.target.value),className:Bw({isInvalid:B,isDisabled:T,isFocused:v,size:o,transparent:i,showSearchIcon:s,isClearable:l,hasValue:!!f.value,isPassword:N,className:typeof f.className=="string"?f.className:void 0})}),l&&f.value&&!T&&jsxRuntime.jsx(Pa,{onClick:()=>{c?c():f.onChange&&f.onChange("");},size:o}),N&&!T&&jsxRuntime.jsx("button",{type:"button",onClick:()=>x(!b),className:"absolute right-3 top-1/2 -translate-y-1/2 transform text-text-muted hover:text-text-body","aria-label":b?"Hide password":"Show password",onMouseDown:A=>{A.preventDefault(),A.stopPropagation();},children:jsxRuntime.jsx(F,{name:b?"EyeSlash":"Eye",size:o==="sm"?16:20,className:"text-text-body"})})]}),m?jsxRuntime.jsx("div",{className:"mt-1 min-h-[20px]",children:typeof r=="string"?jsxRuntime.jsx(ce,{size:o,children:r}):typeof r=="function"&&u?jsxRuntime.jsx(ce,{size:o,children:r(u)}):t&&g==="below"?jsxRuntime.jsx(ye,{size:o,children:t}):null}):jsxRuntime.jsx(jsxRuntime.Fragment,{children:typeof r=="string"?jsxRuntime.jsx(ce,{size:o,className:"mt-1",children:r}):typeof r=="function"&&u?jsxRuntime.jsx(ce,{size:o,className:"mt-1",children:r(u)}):t&&g==="below"?jsxRuntime.jsx(ye,{size:o,className:"mt-1",children:t}):null})]})})}function en({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(ar,{value:e,onChange:t,placeholder:o,showSearchIcon:true,isClearable:!!e&&!!r,onClear:r,size:n,"aria-label":o,reserveErrorSpace:false,isLoading:i})})}function Ka({value:e,options:t,onChange:r,direction:o,onDirectionChange:n,showLabel:a=true,size:i="sm",className:s="",compact:l=false}){let[c,d]=Ee.useState(false),u=o!==void 0&&n!==void 0,m=t.find(p=>p.value===e);return l?jsxRuntime.jsxs("div",{className:`flex items-center gap-2 ${s}`,children:[jsxRuntime.jsx(_,{variant:"secondary",size:i,icon:"ArrowsDownUp","aria-label":`Sort by: ${m?.label||"Select"}`,onPress:()=>d(true)}),jsxRuntime.jsx(Xe,{isOpen:c,onClose:()=>d(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),d(false));},children:p=>jsxRuntime.jsx(At,{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-muted whitespace-nowrap",children:"Sort by:"}),jsxRuntime.jsx(Wo,{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}),u&&jsxRuntime.jsx(_,{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 mb({search:e,searchMobileMode:t="expanded",filters:r=[],onRemoveFilter:o,onClearAllFilters:n,onManageFilters:a,maxVisibleFilterChips:i=3,sort:s,resultsCount:l,leftControls:c,onManageColumns:d,columnPicker:u,customControls:m,actions:p,sticky:g,stickyTop:f="0",zIndex:b=10,className:x="",style:v}){let y=r.length>0;if(!(e||y||a||s||l||c||d||u||m||p))return null;let N=g?"sticky bg-background-surface":"",P=g?{top:f,zIndex:b}:{};return jsxRuntime.jsxs("div",{className:`@container flex flex-col gap-3 bg-background-surface py-3 border-b border-border-default ${N} ${x}`,style:{...v,...P},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:[c,c&&l&&jsxRuntime.jsx("div",{className:"h-4 w-px bg-border-default"}),l&&jsxRuntime.jsx(Ya,{count:l.count,label:l.label,isLoading:l.isLoading}),l&&s&&jsxRuntime.jsx("div",{className:"h-4 w-px bg-border-default"}),s&&jsxRuntime.jsx(Ka,{value:s.value,options:s.options,onChange:s.onChange,showLabel:s.showLabel,direction:s.direction,onDirectionChange:s.onDirectionChange}),d?jsxRuntime.jsx(_,{variant:"secondary",size:"sm",icon:"Columns",onClick:d,children:"Columns"}):u,y&&o&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[r.slice(0,i).map(T=>jsxRuntime.jsxs(Pr,{variant:"brand",size:"sm",onRemove:()=>o(T.id),isRemovable:true,children:[T.label,": ",T.value]},T.id)),r.length>i&&a&&jsxRuntime.jsxs(_,{variant:"ghost",size:"sm",onClick:a,className:"text-text-muted hover:text-text-body whitespace-nowrap",children:["+",r.length-i," more"]}),n&&jsxRuntime.jsx(_,{variant:"ghost",size:"sm",onClick:n,className:"text-text-muted hover:text-text-body whitespace-nowrap",children:"Clear all"})]})]}),jsxRuntime.jsx("div",{className:"flex items-center gap-3 flex-shrink-0",children:m||jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[p&&p.items.length>0&&jsxRuntime.jsx(jsxRuntime.Fragment,{children:p.items.map(T=>jsxRuntime.jsx(_,{variant:T.variant||"secondary",size:"sm",icon:T.icon,onPress:T.onClick,isDisabled:T.disabled,children:T.label},T.id))}),e&&jsxRuntime.jsx("div",{className:"w-64",children:jsxRuntime.jsx(en,{value:e.value,onChange:e.onChange,onClear:e.onClear,placeholder:e.placeholder,isLoading:e.isLoading})}),a&&jsxRuntime.jsx(_,{variant:"secondary",size:"sm",icon:"Sliders",badgeNumber:r.length>0?r.length:void 0,onClick:a,children:"Filters"})]})})]}),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:m?jsxRuntime.jsx("div",{className:"flex-1",children:m}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[p&&p.items.length>0&&jsxRuntime.jsx(Ln,{items:p.items.map(T=>({id:T.id,name:T.label,iconName:T.icon,variant:T.variant==="destructive"?"destructive":"default",disabled:T.disabled,onAction:T.onClick})),align:"left",size:"sm",children:jsxRuntime.jsx(_,{variant:"secondary",size:"sm",icon:"DotsThreeVertical","aria-label":p.menuLabel||"Actions"})}),e&&jsxRuntime.jsx("div",{className:"flex-1",children:jsxRuntime.jsx(en,{value:e.value,onChange:e.onChange,onClear:e.onClear,placeholder:e.placeholder,isLoading:e.isLoading})}),a&&jsxRuntime.jsx(_,{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)`:""}`})]})})}),jsxRuntime.jsxs("div",{className:"flex items-center justify-between gap-3",children:[jsxRuntime.jsxs("div",{className:"flex items-center gap-3",children:[c,l&&jsxRuntime.jsx(Ya,{count:l.count,label:l.label,isLoading:l.isLoading})]}),jsxRuntime.jsx("div",{className:"flex items-center gap-2",children:s&&jsxRuntime.jsx(Ka,{value:s.value,options:s.options,onChange:s.onChange,showLabel:false,direction:s.direction,onDirectionChange:s.onDirectionChange,compact:true})})]})]})]})}function fb({filters:e,onRemove:t,onClearAll:r,onManageFilters:o,maxVisibleChips:n=3,mode:a="chips",showManageButton:i=true,size:s="sm",className:l=""}){let c=e.length>0,d=e.slice(0,n),u=Math.max(0,e.length-n),m=u>0,p=a==="button"&&!!o,g=a==="chips"&&i&&!!o;if(!c&&!p&&!g)return null;let f=p&&jsxRuntime.jsxs(_,{variant:"secondary",size:s,onClick:o,className:"whitespace-nowrap",children:[e.length," ",e.length===1?"filter":"filters"]}),b=jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[g&&jsxRuntime.jsx(_,{variant:"secondary",size:s,icon:"Sliders",onClick:o,className:"whitespace-nowrap",children:"Filters"}),c&&d.map(v=>jsxRuntime.jsxs(Pr,{variant:"secondary",size:s,onRemove:()=>t(v.id),isRemovable:true,children:[v.label,": ",v.value]},v.id)),c&&m&&o&&jsxRuntime.jsxs(_,{variant:"ghost",size:s,onClick:o,className:"text-text-muted hover:text-text-body whitespace-nowrap",children:["+",u," more"]}),c&&r&&jsxRuntime.jsx(_,{variant:"ghost",size:s,onClick:r,className:"text-text-muted hover:text-text-body whitespace-nowrap",children:"Clear all"})]}),x=a==="button"?f:b;return jsxRuntime.jsx("div",{className:`flex flex-wrap items-center gap-2 ${l}`,children:x})}function bb({label:e,description:t,errorMessage:r,size:o="md",tooltip:n,isRequired:a,isDisabled:i,isInvalid:s,showCalendar:l=true,reserveErrorSpace:c=true,validationResult:d,className:u,...m}){let[p,g]=Ee.useState(false),f=b=>{m.onChange&&b&&m.onChange(b),g(false);};return jsxRuntime.jsxs(reactAriaComponents.DateField,{...m,isDisabled:i,isRequired:a,isInvalid:s,className:he(u,"flex flex-col gap-1"),children:[e&&jsxRuntime.jsx(De,{size:o,tooltip:n,isRequired:a,children:e}),jsxRuntime.jsx(ot,{children:jsxRuntime.jsxs("div",{className:"relative w-full",children:[jsxRuntime.jsx(Ja,{size:o,isDisabled:i,isInvalid:s,hasCalendar:l}),l&&!i&&jsxRuntime.jsxs(reactAriaComponents.DialogTrigger,{isOpen:p,onOpenChange:g,children:[jsxRuntime.jsx(_,{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-muted hover:text-text-body transition-colors","aria-label":"Open calendar",children:jsxRuntime.jsx(F,{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(Bn,{value:m.value,onChange:f,minValue:m.minValue,maxValue:m.maxValue,isDisabled:i,isReadOnly:m.isReadOnly,isDateUnavailable:m.isDateUnavailable})})})]})]})}),c?jsxRuntime.jsx("div",{className:"mt-1 min-h-[20px]",children:typeof r=="string"?jsxRuntime.jsx(ce,{size:o,children:r}):typeof r=="function"&&d?jsxRuntime.jsx(ce,{size:o,children:r(d)}):t?jsxRuntime.jsx(ye,{size:o,children:t}):null}):jsxRuntime.jsx(jsxRuntime.Fragment,{children:typeof r=="string"?jsxRuntime.jsx(ce,{size:o,className:"mt-1",children:r}):typeof r=="function"&&d?jsxRuntime.jsx(ce,{size:o,className:"mt-1",children:r(d)}):t?jsxRuntime.jsx(ye,{size:o,className:"mt-1",children:t}):null})]})}function Xw({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-placeholder italic":"text-text-body",t?"text-text-disabled cursor-not-allowed":"cursor-text",!t&&"hover:bg-background-hover","data-[focused]:bg-background-selected data-[focused]:text-text-body")}function Ja({size:e="md",isDisabled:t,isInvalid:r,hasCalendar:o,className:n,...a}){return jsxRuntime.jsx(reactAriaComponents.DateInput,{className:tailwindMerge.twMerge(uo({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:Xw({isPlaceholder:i.isPlaceholder,isDisabled:!i.isEditable||t,size:e})})})}function oN({selectionState:e,isDisabled:t}){let r=`${ze} w-full h-full flex items-center justify-center rounded-sm forced-color-adjust-none font-semibold`,o={none:"text-text-body group-hover:bg-background-muted group-pressed:bg-background-muted",middle:["bg-gray-100 dark:bg-zinc-700 group-hover:bg-gray-200 dark:group-hover:bg-zinc-600 forced-colors:group-hover:bg-[Highlight]","group-invalid:group-hover:bg-red-200 forced-colors:group-invalid:group-hover:bg-[Mark]","group-pressed:bg-gray-200 dark:group-pressed:bg-zinc-600 forced-colors:group-pressed:bg-[Highlight] forced-colors:text-[HighlightText]","group-invalid:group-pressed:bg-red-300 forced-colors:group-invalid:group-pressed:bg-[Mark]"].join(" "),cap:"bg-zinc-900 dark:bg-zinc-100 text-white dark:text-zinc-900 group-invalid:bg-red-600 forced-colors:bg-[Highlight] forced-colors:group-invalid:bg-[Mark] forced-colors:text-white"},n=t?"text-textFaint dark:text-zinc-600 forced-colors:text-textFaint font-light":"";return [r,o[e],n].filter(Boolean).join(" ")}function qn({errorMessage:e,...t}){return jsxRuntime.jsxs(reactAriaComponents.RangeCalendar,{...t,children:[jsxRuntime.jsx(ps,{}),jsxRuntime.jsxs(reactAriaComponents.CalendarGrid,{className:"w-full border-separate [border-spacing:0] [&_td]:p-0 [&_td]:!border-0",children:[jsxRuntime.jsx(ms,{}),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-gray-300 invalid:selected:bg-red-100 forced-colors:selected:bg-[Highlight] forced-colors:selected:text-white 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:l})=>jsxRuntime.jsx("span",{className:oN({selectionState:n&&(a||i)?"cap":n?"middle":"none",isDisabled:l}),children:o})})})]}),e&&jsxRuntime.jsx(reactAriaComponents.Text,{slot:"errorMessage",className:"text-sm text-red-600",children:e})]})}function Ys({label:e,description:t,errorMessage:r,...o}){return jsxRuntime.jsxs(reactAriaComponents.DateRangePicker,{...o,className:he(o.className,"group flex flex-col gap-1"),children:[e&&jsxRuntime.jsx(De,{children:e}),jsxRuntime.jsxs(Sf,{className:"w-auto min-w-[208px]",children:[jsxRuntime.jsx(Ja,{slot:"start",className:"px-2 py-1.5 text-sm"}),jsxRuntime.jsx("span",{"aria-hidden":"true",className:"text-gray-800 group-disabled:text-gray-200 dark:text-zinc-200 group-disabled:dark:text-zinc-600 forced-colors:text-[ButtonText] group-disabled:forced-colors:text-[GrayText]",children:"\u2013"}),jsxRuntime.jsx(Ja,{slot:"end",className:"flex-1 px-2 py-1.5 text-sm"}),jsxRuntime.jsx(_,{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(ye,{children:t}),typeof r=="string"?jsxRuntime.jsx(ce,{children:r}):null,jsxRuntime.jsx(Ze,{children:jsxRuntime.jsx(qn,{})})]})}var uN=e=>{let t=xt({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 ja({label:e,description:t,errorMessage:r,size:o="md",tooltip:n,isRequired:a,transparent:i,validationResult:s,reserveErrorSpace:l=true,descriptionPlacement:c="below",...d}){let u=Ee.useId(),{isFocused:m,handleFocus:p,handleBlur:g}=nr();return jsxRuntime.jsx(reactAriaComponents.NumberField,{...d,id:u,isRequired:a,className:he(d.className,"group flex flex-col gap-1"),step:d.step??1,onChange:f=>{typeof f=="number"&&(d.maxValue!=null&&f>d.maxValue?d.onChange?.(d.maxValue):d.minValue!=null&&f<d.minValue?d.onChange?.(d.minValue):d.onChange?.(f));},isInvalid:!!r||typeof d.value=="number"&&(d.maxValue!=null&&d.value>d.maxValue||d.minValue!=null&&d.value<d.minValue),children:({isDisabled:f,isInvalid:b})=>jsxRuntime.jsxs("div",{className:"flex flex-col gap-1",children:[e&&jsxRuntime.jsx(De,{size:o,tooltip:n,description:c==="tooltip"||c==="inline"?t:void 0,descriptionPlacement:c,isRequired:a,htmlFor:u,children:e}),jsxRuntime.jsx("div",{className:"relative",children:jsxRuntime.jsxs(reactAriaComponents.Group,{className:"relative",children:[jsxRuntime.jsx(reactAriaComponents.Input,{onFocus:v=>p(v,d.onFocus),onBlur:v=>g(v,d.onBlur),className:uN({isInvalid:b||!!r,isDisabled:f,isFocused:m,transparent:i,size:o,className:typeof d.className=="string"?d.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(F,{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(F,{name:"CaretDown",size:14})})]})]})}),l?jsxRuntime.jsx("div",{className:"mt-1 min-h-[20px]",children:r?jsxRuntime.jsx(ce,{size:o,children:typeof r=="function"?r(s):r}):t&&c==="below"?jsxRuntime.jsx(ye,{size:o,children:t}):null}):jsxRuntime.jsx(jsxRuntime.Fragment,{children:r?jsxRuntime.jsx(ce,{size:o,className:"mt-1",children:typeof r=="function"?r(s):r}):t&&c==="below"?jsxRuntime.jsx(ye,{size:o,className:"mt-1",children:t}):null})]})})}var pu={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 fN({isSelected:e,isDisabled:t,variant:r="default",size:o="md"}){let n="flex px-px items-center shrink-0 cursor-default rounded-full transition duration-200 ease-in-out shadow-inner border border-transparent",a=pu[o].track,i=ze,s=r==="brand"?"focus-visible:outline-action-brand":"focus-visible:outline-action-default",l="";return e?r==="brand"?l="bg-action-brand forced-colors:!bg-[Highlight] group-pressed:bg-action-brand-hover":l="bg-action-default forced-colors:!bg-[Highlight] group-pressed:bg-action-default-hover":l="bg-gray-400 dark:bg-zinc-400 group-pressed:bg-gray-500 dark:group-pressed:bg-zinc-300",[n,a,i,s,l,t?"bg-gray-200 dark:bg-zinc-700 forced-colors:group-selected:!bg-[GrayText] forced-colors:border-[GrayText]":""].filter(Boolean).join(" ")}function gN({isSelected:e,isDisabled:t,size:r="md"}){let o="transform rounded-full bg-white dark:bg-zinc-900 outline-none shadow transition duration-200 ease-in-out",n=pu[r].handle;return [o,n,e?"translate-x-[100%]":"translate-x-0",t?"forced-colors:outline-[GrayText]":""].filter(Boolean).join(" ")}function Ks({children:e,variant:t="default",size:r="md",...o}){return jsxRuntime.jsx(reactAriaComponents.Switch,{...o,className:he(o.className,`group flex items-center gap-2 ${pu[r].text} text-gray-800 transition disabled:text-gray-300 dark:text-zinc-200 dark:disabled:text-zinc-600 forced-colors:disabled:text-[GrayText]`),children:n=>jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("div",{className:fN({...n,variant:t,size:r}),children:jsxRuntime.jsx("span",{className:gN({...n,size:r})})}),e]})})}function vb(e){return new Intl.NumberFormat("en-US").format(e)}function Cb({isOpen:e,onClose:t,facetConfigs:r,facetCounts:o={},currentFilters:n,onApply:a,onClear:i,title:s="Filters",resultCount:l}){let[c,d]=Ee.useState(n),[u,m]=Ee.useState({}),[p,g]=Ee.useState({}),[f,b]=Ee.useState(null),{isMobile:x}=kt(),v=Ee.useMemo(()=>r.some(h=>h.group),[r]),{groups:y,ungroupedFacets:C,facetsByGroup:N}=Ee.useMemo(()=>{let h=new Set,U=[],H={};for(let q of r)q.group?(h.has(q.group)||(h.add(q.group),H[q.group]=[]),H[q.group].push(q)):U.push(q);return {groups:Array.from(h),ungroupedFacets:U,facetsByGroup:H}},[r]);Ee.useEffect(()=>{e&&(d(n),m({}),g({}),b(!x&&y.length>0?y[0]:null));},[e,n,y,x]);let P=Ee.useMemo(()=>!c||Ws(c)?0:_o(c).length,[c]),T=()=>{a(c),t();},B=()=>{let h=Ua();d(h),i?i():a(h),t();},A=h=>{if(!c)return [];if(!_o(c).includes(h))return [];let H=[];function q(re){if(re)for(let ue of re.conditions)"conditions"in ue?q(ue):ue.field===h&&ue.operator==="in"&&Array.isArray(ue.value)&&H.push(...ue.value.map(String));}return q(c),H},I=(h,U,H)=>{let q=$o(c,h);U!==void 0&&(q=vo(q,{field:h,operator:"gte",value:U})),H!==void 0&&(q=vo(q,{field:h,operator:"lte",value:H})),d(q);},L=h=>{if(!c)return;let U;function H(q){if(q)for(let re of q.conditions)"conditions"in re?H(re):re.field===h&&re.operator==="eq"&&typeof re.value=="boolean"&&(U=re.value);}return H(c),U},M=(h,U)=>{let H=$o(c,h);U!==void 0&&(H=vo(H,{field:h,operator:"eq",value:U})),d(H);},S=(h,U,H)=>{let q=$o(c,h);U&&(q=vo(q,{field:h,operator:"gte",value:U.toString()})),H&&(q=vo(q,{field:h,operator:"lte",value:H.toString()})),d(q);},w=h=>{let U=N[h]||[],H=c?_o(c):[];return U.filter(q=>H.includes(q.field)).length},G="pr-9 bg-background-muted/50",K="border-t border-border-muted",z="text-sm font-medium text-brand-primary",j=h=>jsxRuntime.jsx("span",{className:z,children:h}),Z=h=>{let U=o[h.field]||{},H=u[h.field]||"",q=[];h.values?q=h.values.map(X=>({value:String(X.value),label:X.label,count:U[String(X.value)]})):q=Object.entries(U).map(([X,te])=>({value:X,label:X,count:te}));let re=q.length;if(H){let X=H.toLowerCase();q=q.filter(te=>te.label.toLowerCase().includes(X));}q.sort((X,te)=>X.count!==void 0&&te.count!==void 0&&te.count!==X.count?te.count-X.count:X.label.localeCompare(te.label));let ue=h.type||"string";if(ue==="string"||!h.type){let X=A(h.field),te=h.searchThreshold??10,Ne=h.maxVisibleOptions??50,ae=p[h.field]??false,de=ae||q.length<=Ne?q:q.slice(0,Ne),fe=q.length>Ne&&!ae;return jsxRuntime.jsxs(go,{id:h.field,children:[jsxRuntime.jsx(bo,{title:h.label,description:h.description,className:G,endContent:X.length>0?j(`${X.length} selected`):void 0}),jsxRuntime.jsx(xo,{className:K,children:jsxRuntime.jsxs("div",{className:"space-y-4 pt-4 pb-4",children:[re>te&&jsxRuntime.jsx(en,{value:H,onChange:$=>m(se=>({...se,[h.field]:$})),onClear:()=>m($=>({...$,[h.field]:""})),placeholder:`Search ${h.label.toLowerCase()}...`,size:"sm",className:"w-full !max-w-none pr-4"}),jsxRuntime.jsx(Vd,{value:X,onChange:$=>{let se=$o(c,h.field);$.length>0&&(se=vo(se,{field:h.field,operator:"in",value:$})),d(se);},children:jsxRuntime.jsx("div",{className:"space-y-1.5",children:de.map($=>jsxRuntime.jsx("div",{className:"rounded-md py-2 pr-4 transition-colors hover:bg-background-hover",children:jsxRuntime.jsx(Ko,{value:$.value,children:jsxRuntime.jsxs("div",{className:"flex items-center justify-between gap-3 flex-1",children:[h.renderLabel?h.renderLabel($.value,$.label):jsxRuntime.jsx("span",{className:"text-sm font-medium text-text-body",children:$.label}),$.count!==void 0&&jsxRuntime.jsx("span",{className:"text-xs font-medium text-text-muted tabular-nums",children:vb($.count)})]})})},$.value))})}),fe&&jsxRuntime.jsx("div",{className:"pt-2 border-t border-border-muted",children:jsxRuntime.jsxs(_,{variant:"ghost",size:"sm",onPress:()=>g($=>({...$,[h.field]:true})),className:"w-full",children:["Show all ",q.length," options"]})}),ae&&q.length>Ne&&jsxRuntime.jsx("div",{className:"pt-2 border-t border-border-muted",children:jsxRuntime.jsx(_,{variant:"ghost",size:"sm",onPress:()=>g($=>({...$,[h.field]:false})),className:"w-full",children:"Show less"})})]})})]},h.field)}if(ue==="number"){let X,te,Ne=de=>{if(de)for(let fe of de.conditions)"conditions"in fe?Ne(fe):fe.field===h.field&&(fe.operator==="gte"&&typeof fe.value=="number"&&(X=fe.value),fe.operator==="lte"&&typeof fe.value=="number"&&(te=fe.value));};Ne(c);let ae=X!==void 0||te!==void 0;return jsxRuntime.jsxs(go,{id:h.field,children:[jsxRuntime.jsx(bo,{title:h.label,description:h.description,className:G,endContent:ae?j(X!==void 0&&te!==void 0?`${X} - ${te}`:X!==void 0?`\u2265 ${X}`:`\u2264 ${te}`):void 0}),jsxRuntime.jsx(xo,{className:K,children:jsxRuntime.jsxs("div",{className:"grid grid-cols-2 gap-4 pt-4 pb-4",children:[jsxRuntime.jsx(ja,{label:"Min",value:X,onChange:de=>I(h.field,de,te)},`${h.field}-min`),jsxRuntime.jsx(ja,{label:"Max",value:te,onChange:de=>I(h.field,X,de)},`${h.field}-max`)]})})]},h.field)}if(ue==="boolean"){let X=L(h.field);return jsxRuntime.jsxs(go,{id:h.field,children:[jsxRuntime.jsx(bo,{title:h.label,description:h.description,className:G,endContent:X!==void 0?j(X?"Yes":"No"):void 0}),jsxRuntime.jsx(xo,{className:K,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-body",children:X!==void 0?X?"Enabled":"Disabled":"No filter applied"}),jsxRuntime.jsx(Ks,{size:"lg",isSelected:X??false,onChange:te=>M(h.field,te?true:void 0),children:X?"Yes":"No"})]})})]},h.field)}if(ue==="date"){let X,te,Ne=se=>{if(se)for(let ve of se.conditions)"conditions"in ve?Ne(ve):ve.field===h.field&&(ve.operator==="gte"&&(X=String(ve.value)),ve.operator==="lte"&&(te=String(ve.value)));};Ne(c);let ae=X!==void 0||te!==void 0,de=se=>{if(se)try{return /^\d{4}-\d{2}-\d{2}$/.test(se)?ka(se):void 0}catch{return}},fe=de(X),$=de(te);return jsxRuntime.jsxs(go,{id:h.field,children:[jsxRuntime.jsx(bo,{title:h.label,description:h.description,className:G,endContent:ae?j("Date range selected"):void 0}),jsxRuntime.jsx(xo,{className:K,children:jsxRuntime.jsx("div",{className:"pt-4 pb-4",children:jsxRuntime.jsx(Ys,{label:"Date Range",value:fe&&$?{start:fe,end:$}:void 0,onChange:se=>{se?S(h.field,se.start,se.end):S(h.field,void 0,void 0);}})})})]},h.field)}return null},R=()=>jsxRuntime.jsxs("div",{className:"flex flex-col",children:[C.map(h=>{let H=(c?_o(c):[]).includes(h.field);return jsxRuntime.jsxs("button",{type:"button",onClick:()=>b(`__ungrouped__${h.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-body",children:h.label}),jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[H&&jsxRuntime.jsx("span",{className:z,children:"1 active"}),jsxRuntime.jsx(F,{name:"CaretRight",size:"sm",className:"text-text-muted"})]})]},h.field)}),y.map(h=>{let U=w(h);return jsxRuntime.jsxs("button",{type:"button",onClick:()=>b(h),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-body",children:h}),jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[U>0&&jsxRuntime.jsxs("span",{className:z,children:[U," active"]}),jsxRuntime.jsx(F,{name:"CaretRight",size:"sm",className:"text-text-muted"})]})]},h)})]}),V=h=>{if(h.startsWith("__ungrouped__")){let H=h.replace("__ungrouped__",""),q=C.find(re=>re.field===H);return q?jsxRuntime.jsx(zn,{variant:"contained",density:"comfortable",showDividers:true,defaultExpandedKeys:[q.field],children:Z(q)}):null}let U=N[h]||[];return U.length===0?null:jsxRuntime.jsx(zn,{variant:"contained",density:"comfortable",showDividers:true,defaultExpandedKeys:[U[0].field],children:U.map(H=>Z(H))})},D=()=>{if(f){let h=f.startsWith("__ungrouped__")&&C.find(U=>U.field===f.replace("__ungrouped__",""))?.label||f;return jsxRuntime.jsxs("div",{className:"flex flex-col h-full",children:[jsxRuntime.jsxs("button",{type:"button",onClick:()=>b(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(F,{name:"CaretLeft",size:"sm",className:"text-text-muted"}),jsxRuntime.jsx("span",{className:"text-sm font-medium text-text-body",children:h})]}),jsxRuntime.jsx("div",{className:"flex-1 overflow-y-auto",children:V(f)})]})}return R()},k=()=>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:[C.map(h=>{let H=(c?_o(c):[]).includes(h.field),q=f===`__ungrouped__${h.field}`;return jsxRuntime.jsxs("button",{type:"button",onClick:()=>b(`__ungrouped__${h.field}`),className:`flex items-center justify-between w-full px-4 py-3 text-left border-b border-border-muted transition-colors ${q?"bg-brand-primary/10":"hover:bg-background-hover"}`,children:[jsxRuntime.jsx("span",{className:`text-sm truncate ${q?"font-semibold text-text-body":"font-medium text-text-body"}`,children:h.label}),H&&jsxRuntime.jsx("span",{className:"w-2 h-2 rounded-full bg-brand-primary flex-shrink-0 ml-2"})]},h.field)}),y.map(h=>{let U=w(h),H=f===h;return jsxRuntime.jsxs("button",{type:"button",onClick:()=>b(h),className:`flex items-center justify-between w-full px-4 py-3 text-left border-b border-border-muted transition-colors ${H?"bg-brand-primary/10":"hover:bg-background-hover"}`,children:[jsxRuntime.jsx("span",{className:`text-sm truncate ${H?"font-semibold text-text-body":"font-medium text-text-body"}`,children:h}),U>0&&jsxRuntime.jsx("span",{className:"w-2 h-2 rounded-full bg-brand-primary flex-shrink-0 ml-2"})]},h)})]}),jsxRuntime.jsx("div",{className:"flex-1 overflow-y-auto",children:f?V(f):jsxRuntime.jsx("div",{className:"flex items-center justify-center h-full text-text-muted text-sm",children:"Select a category to view filters"})})]}),Y=()=>jsxRuntime.jsx(zn,{variant:"contained",density:"comfortable",showDividers:true,defaultExpandedKeys:[r[0].field],children:r.map(h=>Z(h))});return jsxRuntime.jsx(_t,{isOpen:e,onClose:t,title:v&&x&&f?f.startsWith("__ungrouped__")?C.find(h=>h.field===f.replace("__ungrouped__",""))?.label||s:f:P>0?`${s} (${P} active)`:s,hideCloseIcon:false,primaryAction:{label:"Apply filters",onPress:T,variant:"default"},secondaryAction:{label:"Clear all",onPress:B},maxWidth:v?"800px":"700px",height:"600px",contentPadding:false,footerContent:l!==void 0?jsxRuntime.jsxs("div",{className:"text-sm text-text-muted text-center",children:[jsxRuntime.jsx("span",{className:"font-semibold text-text-body",children:vb(l)})," ",l===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-muted",children:"No filters available"})}):v?x?D():k():Y()})}function fu(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 ir(e="normal",t){return tailwindMerge.twMerge({strong:"font-semibold text-text-body",high:"font-semibold text-text-body",normal:"text-text-body",low:"text-text-muted"}[e],t&&"hover:text-action-brand cursor-pointer transition-colors")}function Se(e="left",t){return tailwindMerge.twMerge("flex items-center gap-1 min-w-0 overflow-hidden",fu(e),t)}function qs(e,t="\u2014"){return e==null||e===""?t:String(e)}var Co={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 Vt(e="normal"){return {strong:Co.lg,high:Co.lg,normal:Co.md,low:Co.sm}[e]}function be(e,t){return typeof e=="function"?e(t):e}function Sb(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-green-100 text-green-800",error:"bg-red-100 text-red-800",warning:"bg-yellow-100 text-yellow-800",info:"bg-blue-100 text-blue-800",neutral:"bg-gray-100 text-gray-800"}[e])}function wb(e){return e?"success":"neutral"}function Zs(e,t=false){return t?e>0?"text-green-600":e<0?"text-red-600":"text-text-body":"text-text-body"}function gu(e="hover",t="default"){let r={default:"text-action-primary hover:text-action-primary-hover visited:text-action-primary",brand:"text-action-brand hover:text-action-brand-hover visited:text-action-brand",muted:"text-text-muted hover:text-text-muted visited:text-text-muted",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 Mr(e,t,r,o="hover",n="default",a,i){if(!t)return e;let s=typeof t=="function"&&r?t(r):t,l=gu(o,n);return jsxRuntime.jsx("a",{href:s,className:tailwindMerge.twMerge(l,a==="strong"||a==="high"?"font-semibold":"",i),onClick:d=>{d.metaKey||d.ctrlKey;},children:e})}function Nb({row:e,context:t,actions:r,align:o="right",size:n="sm"}){let{isLoading:a}=t;if(a)return jsxRuntime.jsx(J,{className:Co.sm});let s=(typeof r=="function"?r(e):r).filter(c=>!be(c.hidden,e));if(s.length===0)return null;let l=Se(o);return jsxRuntime.jsx("div",{className:l,children:s.map(c=>{let d=be(c.disabled,e);return c.variant==="icon"||!c.label?jsxRuntime.jsx(_,{variant:"icon",size:n,onPress:()=>{c.onClick(e);},isDisabled:d,"aria-label":c.label||c.id,children:jsxRuntime.jsx(F,{name:c.icon||"DotsThree",size:n==="sm"?16:20})},c.id):jsxRuntime.jsxs(_,{variant:c.variant||"secondary",size:n,onPress:()=>{c.onClick(e);},isDisabled:d,children:[c.icon&&jsxRuntime.jsx(F,{name:c.icon,size:n==="sm"?14:16}),c.label]},c.id)})})}function kb({value:e,row:t,context:r,variant:o="default",label:n,size:a="sm",shape:i="square",dot:s,dotPosition:l="left",dotPulse:c,align:d="left",emptyText:u="\u2014",className:m,maxVisible:p=2,maxLabelLength:g}){let{isLoading:f}=r,b=(P,T)=>{if(!g||P.length<=g)return jsxRuntime.jsx(jsxRuntime.Fragment,{children:P});let B=P.slice(0,g-1)+"\u2026";return jsxRuntime.jsx(Et,{content:T,children:jsxRuntime.jsx("span",{children:B})})};if(f)return jsxRuntime.jsx(J,{className:Vt("normal")});if(e==null||e==="")return jsxRuntime.jsx("div",{className:Se(d,"text-text-muted"),children:u});if(Array.isArray(e)&&e.length===0)return jsxRuntime.jsx("div",{className:Se(d,"text-text-muted"),children:u});let x=Se(d,m);if(Array.isArray(e)){let P=e.slice(0,p),T=e.slice(p),B=T.length>0;return jsxRuntime.jsx("div",{className:x,children:jsxRuntime.jsxs("div",{className:"flex items-center gap-1",children:[P.map((A,I)=>{let L=typeof o=="function"?o(A,t):o,M=typeof n=="function"?n(A,t):n!==void 0?n:String(A),S=typeof s=="function"?s(A,t):s,w=typeof c=="function"?c(A,t):c;return jsxRuntime.jsx("span",{className:"flex-shrink-0 whitespace-nowrap",children:jsxRuntime.jsx(Ye,{variant:L,size:a,shape:i,dot:S,dotPosition:l,dotPulse:w,children:b(M,M)})},I)}),B&&jsxRuntime.jsx(Et,{content:T.join(", "),children:jsxRuntime.jsx("span",{className:"flex-shrink-0 whitespace-nowrap",children:jsxRuntime.jsxs(Ye,{variant:"neutral",size:a,shape:i,children:["+",T.length]})})})]})})}let v=typeof o=="function"?o(e,t):o,y=typeof n=="function"?n(e,t):n!==void 0?n:String(e),C=typeof s=="function"?s(e,t):s,N=typeof c=="function"?c(e,t):c;return jsxRuntime.jsx("div",{className:x,children:jsxRuntime.jsx(Ye,{variant:v,size:a,shape:i,dot:C,dotPosition:l,dotPulse:N,children:b(y,y)})})}function Pb({value:e,context:t,format:r="icon",trueText:o="Yes",falseText:n="No",trueIcon:a="Check",falseIcon:i="X",showFalse:s=true,align:l="center",emphasis:c="normal",className:d}){let{isLoading:u}=t;if(u)return jsxRuntime.jsx(J,{className:Vt(c)});let m=!!e;if(!m&&!s)return jsxRuntime.jsx("div",{className:Se(l,d)});let p=Se(l,d);switch(r){case "icon":return jsxRuntime.jsx("div",{className:p,children:jsxRuntime.jsx(F,{name:m?a:i,size:16,className:m?"text-green-600":"text-gray-400"})});case "text":return jsxRuntime.jsx("div",{className:p,children:jsxRuntime.jsx("span",{className:ir(c),children:m?o:n})});case "badge":return jsxRuntime.jsx("div",{className:p,children:jsxRuntime.jsx(Ye,{variant:m?"success":"neutral",size:"sm",children:m?o:n})});default:return null}}function Db({row:e,context:t,firstName:r,lastName:o,email:n,avatarUrl:a,layout:i="stacked",size:s="sm",href:l,LinkComponent:c,linkVariant:d="default",showEmail:u=false,badge:m,emphasis:p="normal",align:g="left",className:f,piiEntity:b}){let{isLoading:x}=t,v=be(r,e),y=be(o,e),C=be(n,e),N=be(a,e),P=be(l,e),T=typeof m=="function"?m(e):m,B=be(b,e),A=Se(g,f);return jsxRuntime.jsx("div",{className:A,children:jsxRuntime.jsx(bs,{firstName:v,lastName:y,email:C,avatarUrl:N,layout:i,size:s,href:P,LinkComponent:c,linkVariant:d,showEmail:u,badge:T,emphasis:p,isLoading:x,piiEntity:B})})}function Eb({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 Ab({value:e,row:t,context:r,format:o="date",customFormat:n,emptyText:a="\u2014",align:i="left",emphasis:s="normal",href:l,linkBehavior:c="hover",className:d}){let{isLoading:u}=r;if(u)return jsxRuntime.jsx(J,{className:Vt(s)});if(!e)return jsxRuntime.jsx("div",{className:Se(i,"text-text-muted"),children:a});let m=e instanceof Date?e:new Date(e);if(isNaN(m.getTime()))return jsxRuntime.jsx("div",{className:Se(i,"text-text-muted"),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=TN(m);break;case "custom":p=n?m.toLocaleString("en-US",n):m.toISOString();break;default:p=m.toLocaleDateString();}let g=Se(i,tailwindMerge.twMerge(ir(s),d)),f=be(l,t);return f?jsxRuntime.jsx("div",{className:g,children:Mr(p,f,t,c)}):jsxRuntime.jsx("div",{className:g,children:p})}function TN(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 Xs({manufacturer:e,model:t,deviceType:r,deviceTypeIconName:o,logoUrl:n,layout:a="stacked",size:i="md",href:s,LinkComponent:l,linkVariant:c="unstyled",showDeviceTypeIcon:d=true,showLogo:u=true,emphasis:m="normal",isLoading:p=false,className:g}){let[f,b]=Ee.useState(false),x=o||(r?PN(r):"DeviceMobile"),y={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],C=n&&!f&&u,P={strong:"font-semibold text-text-body",high:"font-semibold text-text-body",normal:"text-text-body",low:"text-text-muted"}[m],T=({children:B,className:A})=>s?l?jsxRuntime.jsx(l,{href:s,className:A,children:B}):jsxRuntime.jsx(We,{href:s,variant:c,className:tailwindMerge.twMerge("hover:underline",A),asButton:false,children:B}):jsxRuntime.jsx("span",{className:A,children:B});if(p)return a==="inline"?jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("flex items-center",y.gap,g),children:[jsxRuntime.jsx(J,{width:y.skeletonIcon,height:y.skeletonIcon,className:"flex-shrink-0 rounded"}),jsxRuntime.jsx(J,{width:y.skeletonText,height:y.skeletonIcon*.6})]}):jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("flex items-center",y.gap,g),children:[jsxRuntime.jsx(J,{width:y.skeletonIcon,height:y.skeletonIcon,className:"flex-shrink-0"}),jsxRuntime.jsxs("div",{className:"flex flex-col gap-1",children:[jsxRuntime.jsx(J,{width:y.skeletonText,height:16}),jsxRuntime.jsx(J,{width:y.skeletonSecondary,height:12})]})]});if(a==="inline"){let B=`${e} ${t}`;return jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("flex items-center",y.gap,g),children:[jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("flex-shrink-0 flex items-center justify-center rounded border border-border-muted",y.logoSize),children:C?jsxRuntime.jsx("img",{src:n,alt:`${e} logo`,className:"w-full h-full object-contain",onError:()=>b(true)}):jsxRuntime.jsx(F,{name:x,size:y.iconSize*.6,className:"text-text-muted"})}),jsxRuntime.jsx(T,{className:tailwindMerge.twMerge("truncate leading-normal hover:text-text-body",P,y.textSize,s&&"hover:underline hover:decoration-1 hover:underline-offset-4"),children:B})]})}return jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("flex items-center justify-start",y.gap,g),children:[u&&jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("flex-shrink-0 flex items-center justify-center rounded border border-border-muted",y.logoSize),children:C?jsxRuntime.jsx("img",{src:n,alt:`${e} logo`,className:"w-full h-full object-contain",onError:()=>b(true)}):jsxRuntime.jsx(F,{name:x,size:y.iconSize*.6,className:"text-text-muted"})}),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-body",P,y.textSize,s&&"hover:underline hover:decoration-1 hover:underline-offset-4"),children:e}),jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("flex items-center gap-1.5 text-text-muted leading-normal",y.secondaryTextSize),children:[d&&jsxRuntime.jsx(F,{name:x,size:y.iconInTextSize,className:"flex-shrink-0"}),jsxRuntime.jsx("span",{className:"truncate",children:t})]})]})]})}function PN(e){switch(e){case "battery":return "BatteryHigh";case "charger":return "ChargingStation";case "inverter":return "Power";case "thermostat":return "ThermometerSimple";case "vehicle":return "CarSimple";default:return "DeviceMobile"}}function Lb({row:e,context:t,manufacturer:r,model:o,deviceType:n,logoUrl:a,layout:i="stacked",size:s="sm",href:l,LinkComponent:c,linkVariant:d="default",showDeviceTypeIcon:u=true,showLogo:m=true,emphasis:p="normal",align:g="left",className:f}){let{isLoading:b}=t,x=be(r,e),v=be(o,e),y=be(n,e),C=be(a,e),N=be(l,e),P=Se(g,f);return jsxRuntime.jsx("div",{className:P,children:jsxRuntime.jsx(Xs,{manufacturer:x,model:v,deviceType:y,logoUrl:C,layout:i,size:s,href:N,LinkComponent:c,linkVariant:d,showDeviceTypeIcon:u,showLogo:m,emphasis:p,isLoading:b})})}var rW={charging:"percentage",discharging:"percentage",on:"kW",idle:void 0,off:void 0,heat:"temperature",cool:"temperature",auto:"temperature",eco:"temperature",unknown:void 0},RN=["charging","discharging","heat","cool","on"],DN={unknown:"Unknown",on:"On",off:"Off",idle:"Idle",charging:"Charging",discharging:"Discharging",heat:"Heating",eco:"Eco Mode",cool:"Cooling",auto:"Auto"};function bu(e){return RN.includes(e)}function xu(e){return DN[e]}function rn({state:e,label:t,icon:r,isLoading:o,size:n="sm",shape:a="pill",dot:i,dotPulse:s,fixedWidth:l,className:c,...d}){if(o)return jsxRuntime.jsx(J,{className:"inline-flex h-6 w-20"});let u=t??xu(e),m=bu(e);return jsxRuntime.jsxs(Ye,{variant:e,size:n,shape:a,dot:i??m,dotPulse:s??m,className:l?`w-28 justify-center ${c||""}`:c,...d,children:[r&&jsxRuntime.jsx(F,{name:r,size:n==="sm"?12:n==="md"?14:16}),u]})}var AN={importing:"Importing",exporting:"Exporting"};function Fb(e){return AN[e]}function $s({state:e,label:t,showIcon:r=false,isLoading:o,size:n="sm",shape:a="pill",fixedWidth:i,className:s,...l}){if(o)return jsxRuntime.jsx(J,{className:"inline-flex h-6 w-24"});let c=t??Fb(e),d=e==="exporting"?"ArrowUp":"ArrowDown",u=n==="sm"?12:n==="md"?14:16;return r?jsxRuntime.jsx(Ye,{variant:e,size:n,shape:a,className:`w-6 justify-center ${s||""}`,...l,children:jsxRuntime.jsx(F,{name:d,size:u})}):jsxRuntime.jsx(Ye,{variant:e,size:n,shape:a,className:i?`w-28 justify-center ${s||""}`:s,...l,children:c})}function _s({state:e,stateLabel:t,metric:r,metricFormatter:o,secondaryState:n,layout:a="horizontal",isLoading:i,size:s="sm",shape:l="pill",icon:c,fixedWidth:d,secondaryStateIconOnly:u=false,className:m}){if(i)return jsxRuntime.jsx(J,{className:tailwindMerge.twMerge("inline-flex h-6 w-32",m)});let p=r!=null&&o?Mo(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-body":"text-text-caption",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(rn,{state:e,label:t,icon:c,size:s,shape:l,fixedWidth:d}),n&&jsxRuntime.jsx(jsxRuntime.Fragment,{children:n==="importing"||n==="exporting"?jsxRuntime.jsx($s,{state:n,size:s,shape:l,fixedWidth:d,showIcon:u}):jsxRuntime.jsx(rn,{state:n,size:s,shape:l,fixedWidth:d})})]})}function Bb({value:e,row:t,context:r,metric:o,metricFormatter:n,secondaryState:a,size:i="sm",shape:s="pill",label:l,icon:c,fixedWidth:d=true,align:u="left",compact:m=false,className:p}){let{isLoading:g}=r;if(g){let C={pill:"rounded-full",rounded:"rounded-lg",square:"rounded-sm"}[s],N=o!=null||n!=null;return jsxRuntime.jsx("div",{className:"flex items-center gap-2",children:N?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(J,{className:"h-4 w-12"}),jsxRuntime.jsx(J,{className:`h-6 w-24 ${C}`}),jsxRuntime.jsx(J,{className:`h-6 w-20 ${C}`})]}):jsxRuntime.jsx(J,{className:`h-6 w-24 ${C}`})})}if(!e)return jsxRuntime.jsx("div",{className:Se(u,p),children:jsxRuntime.jsx("span",{className:"text-text-muted",children:"\u2014"})});let f=be(o,t),b=be(a,t),x=typeof l=="function"?l(e,t):l,v=Se(u,p);return f!=null||n?jsxRuntime.jsx("div",{className:tailwindMerge.twMerge(v),children:jsxRuntime.jsx(_s,{state:e,stateLabel:x,metric:f,metricFormatter:n,secondaryState:b||void 0,size:i,shape:s,icon:c,fixedWidth:d,secondaryStateIconOnly:m,layout:"horizontal"})}):jsxRuntime.jsx("div",{className:v,children:jsxRuntime.jsx(rn,{state:e,label:x,icon:c,size:i,shape:s,fixedWidth:d})})}function Vb({value:e,row:t,context:r,formatter:o,align:n="left",emphasis:a="normal",href:i,linkBehavior:s="hover",className:l,emptyText:c="\u2014",emptyClassName:d="text-text-muted"}){let{isLoading:u}=r;if(u)return jsxRuntime.jsx(J,{className:Vt(a)});let m=Cr({value:e,formatter:o,emptyText:c,emptyClassName:d}),p=ir(a),g=Se(n,tailwindMerge.twMerge(p,l)),f=jsxRuntime.jsx("div",{className:g,children:m}),b=be(i,t);return b?Mr(f,b,t,s):f}var yu=Ee__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:l=20,minWidth:c=4,segments:d,segmentGap:u=2,barWidth:m,context:p})=>{let g=Ee.useMemo(()=>r===t?100:Math.max(0,Math.min(100,(e-t)/(r-t)*100)),[e,t,r]),f=Ee.useMemo(()=>o==="auto"&&a?a.type==="diverging"&&a.center!==void 0?fa(e,t,r,a.center,a.scheme):ma(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:l},children:jsxRuntime.jsx("div",{className:"h-full flex-1 animate-pulse bg-border-default rounded"})});if(d&&d>0){let v=`calc((100% - ${u*(d-1)}px) / ${d})`,y=Math.ceil(g/100*d),C={height:l,...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:C,children:Array.from({length:d}).map((N,P)=>{let T=P<y;return jsxRuntime.jsx("div",{className:"rounded-sm",style:{width:v,backgroundColor:T?f:n==="none"?"transparent":n,marginRight:P<d-1?`${u}px`:0}},P)})}),i&&jsxRuntime.jsx("span",{className:"text-sm text-text-body whitespace-nowrap",children:s?s(e):e.toLocaleString()})]})}let b={height:l,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:b,children:jsxRuntime.jsx("div",{className:"absolute left-0 top-0 h-full rounded-sm",style:{width:`${g}%`,minWidth:g>0?c:0,backgroundColor:f}})}),i&&jsxRuntime.jsx("span",{className:"text-sm text-text-body whitespace-nowrap",children:s?s(e):e.toLocaleString()})]})});yu.displayName="HorizontalBarCell";var vu=Ee__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||[],l=b=>"xValue"in b?b.xValue:b.x,c=b=>"yValue"in b?b.yValue:b.y,d=a||100,u=i,{xScale:m,yScale:p,barWidth:g}=Ee.useMemo(()=>{if(s.length===0)return {xScale:scale.scaleTime({range:[0,d],domain:[new Date,new Date]}),yScale:scale.scaleLinear({range:[u,0],domain:[0,1]}),barWidth:2};let b=d3Array.extent(s,T=>l(T)),x=d3Array.min(s,T=>c(T))??0,v=d3Array.max(s,T=>c(T))??0,y=x<0?x:0,C=scale.scaleTime({range:[0,d],domain:b}),N=scale.scaleLinear({range:[u,0],domain:[y,v*1.05]}),P=s.length>1?d/s.length*.8:8;return {xScale:C,yScale:N,barWidth:Math.max(2,P)}},[s,d,u]);if(n.isLoading)return jsxRuntime.jsx("div",{className:"flex items-center gap-0.5",style:{width:d,height:u},children:Array.from({length:5}).map((b,x)=>jsxRuntime.jsx("div",{className:"flex-1 animate-pulse bg-border-default rounded"},x))});if(!s||s.length===0)return jsxRuntime.jsx("div",{className:"flex items-center justify-center text-text-muted text-xs",style:{width:d,height:u},children:"No data"});let f=p(0);return jsxRuntime.jsx("svg",{width:d,height:u,children:s.map((b,x)=>{let v=c(b),y=m(l(b)),C=p(v),N=Math.abs(f-C),P=b.category&&o?.[b.category]?o[b.category]:r;return jsxRuntime.jsx(shape.Bar,{x:y-g/2,y:v>=0?C:f,width:g,height:N,fill:P,rx:1},`bar-${x}`)})})});vu.displayName="MiniBarCell";function Ub({value:e,row:t,context:r,format:o="number",decimals:n=0,prefix:a,suffix:i,emptyText:s="\u2014",align:l="right",emphasis:c="normal",href:d,linkBehavior:u="hover",showPositiveSign:m=false,colorCode:p=false,className:g}){let{isLoading:f}=r;if(f)return jsxRuntime.jsx(J,{className:Vt(c)});if(e==null||isNaN(Number(e)))return jsxRuntime.jsx("div",{className:Se(l,"text-text-muted"),children:s});let b=Number(e),x;switch(o){case "currency":x=new Intl.NumberFormat("en-US",{style:"currency",currency:"USD",minimumFractionDigits:n,maximumFractionDigits:n}).format(b);break;case "percent":x=new Intl.NumberFormat("en-US",{style:"percent",minimumFractionDigits:n,maximumFractionDigits:n}).format(b/100);break;case "compact":x=new Intl.NumberFormat("en-US",{notation:"compact",minimumFractionDigits:n>0?1:0,maximumFractionDigits:n}).format(b);break;default:x=new Intl.NumberFormat("en-US",{minimumFractionDigits:n,maximumFractionDigits:n}).format(b);}let y=`${m&&b>0?"+":""}${x}`,C=p?Zs(b,true):ir(c),N=Se(l,tailwindMerge.twMerge(C,g)),P=jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[a&&jsxRuntime.jsx("span",{className:"text-text-muted",children:a}),jsxRuntime.jsx("span",{children:y}),i&&jsxRuntime.jsx("span",{className:"text-text-muted",children:i})]}),T=be(d,t);return T?jsxRuntime.jsx("div",{className:N,children:Mr(P,T,t,u)}):jsxRuntime.jsx("div",{className:N,children:P})}var Cu=Ee__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:l})=>{let c=Ee.useMemo(()=>Math.max(0,Math.min(100,e)),[e]),d=Ee.useMemo(()=>r==="auto"&&s?s.type==="diverging"&&s.center!==void 0?fa(e,0,100,s.center,s.scheme):ma(e,0,100,s.scheme):r,[r,s,e]);if(l.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(c/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 b=f<p,x=d;if(r==="auto"&&s&&b){let v=(f+1)/a*100;s.type==="diverging"&&s.center!==void 0?x=fa(v,0,100,s.center,s.scheme):x=ma(v,0,100,s.scheme);}return jsxRuntime.jsx("div",{className:"rounded-sm",style:{width:m,backgroundColor:b?x:o==="none"?"transparent":o,marginRight:f<a-1?`${i}px`:0}},f)})}),t&&jsxRuntime.jsxs("span",{className:"text-sm text-text-body whitespace-nowrap",children:[c.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:`${c}%`,backgroundColor:d}})}),t&&jsxRuntime.jsxs("span",{className:"text-sm text-text-body whitespace-nowrap",children:[c.toFixed(0),"%"]})]})});Cu.displayName="PercentBarCell";function Kb({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:Se(a),children:jsxRuntime.jsx(J,{className:"h-4 w-4 rounded"})});let s=be(n,e),l=Se(a);return jsxRuntime.jsx("div",{className:l,children:jsxRuntime.jsx(Ko,{isSelected:r,onChange:c=>{o?.(e,c);},isDisabled:s,"aria-label":"Select row"})})}function rl({streetAddress:e,city:t,state:r,postalCode:o,layout:n="stacked",size:a="md",href:i,LinkComponent:s,linkVariant:l="unstyled",emphasis:c="normal",isLoading:d=false,className:u,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],b={strong:"font-semibold text-text-body",high:"font-semibold text-text-body",normal:"text-text-body",low:"text-text-muted"}[c],x=[];t&&x.push(t),r&&o?x.push(`${r} ${o}`):r?x.push(r):o&&x.push(o);let v=x.join(", "),y=({children:N,className:P})=>i?s?jsxRuntime.jsx(s,{href:i,className:P,children:N}):jsxRuntime.jsx(We,{href:i,variant:l,className:tailwindMerge.twMerge("hover:underline",P),asButton:false,children:N}):jsxRuntime.jsx("span",{className:P,children:N});if(d)return n==="inline"?jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("flex items-center",g.gap,u),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,u),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",u),children:[jsxRuntime.jsx(F,{name:"MapPin",size:g.iconSize,className:"text-text-muted flex-shrink-0"}),jsxRuntime.jsx("span",{className:tailwindMerge.twMerge("leading-normal truncate hover:text-text-body",b,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 C=()=>{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,u),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(F,{name:"MapPin",size:g.iconSize,className:"text-text-muted"})}),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-body",b,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})}),v&&jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("text-text-caption leading-normal truncate",g.secondaryTextSize),"data-pii-type":C(),"data-pii-entity":m,children:v})]})]})}function jb({row:e,context:t,streetAddress:r,city:o,state:n,postalCode:a,layout:i="stacked",size:s="sm",href:l,LinkComponent:c,linkVariant:d="default",emphasis:u="normal",align:m="left",className:p,piiEntity:g}){let{isLoading:f}=t,b=be(r,e),x=be(o,e),v=be(n,e),y=be(a,e),C=be(l,e),N=be(g,e),P=Se(m,p);return jsxRuntime.jsx("div",{className:P,children:jsxRuntime.jsx(rl,{streetAddress:b,city:x,state:v,postalCode:y,layout:i,size:s,href:C,LinkComponent:c,linkVariant:d,emphasis:u,isLoading:f,piiEntity:N})})}var Su=Ee__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:l=40})=>{let c=e||t||[],d=s||100,u=l,{xScale:m,yScale:p}=Ee.useMemo(()=>{if(c.length===0)return {xScale:scale.scaleTime({range:[0,d],domain:[new Date,new Date]}),yScale:scale.scaleLinear({range:[u,0],domain:[0,1]})};let f=d3Array.extent(c,y=>y.xValue),b=d3Array.min(c,y=>y.yValue)||0,x=d3Array.max(c,y=>y.yValue)||0,v=(x-b)*.1||1;return {xScale:scale.scaleTime({range:[0,d],domain:f}),yScale:scale.scaleLinear({range:[u,0],domain:[b-v,x+v]})}},[c,d,u]);if(i.isLoading)return jsxRuntime.jsx("div",{className:"flex items-center",style:{width:d,height:u},children:jsxRuntime.jsx("div",{className:"h-1 w-full animate-pulse bg-border-default rounded"})});if(!c||c.length===0)return jsxRuntime.jsx("div",{className:"flex items-center justify-center text-text-muted text-xs",style:{width:d,height:u},children:"No data"});let g=a&&c[0]?.category&&a[c[0].category]?a[c[0].category]:o;return jsxRuntime.jsxs("svg",{width:d,height:u,className:"overflow-visible",children:[(r==="area"||r==="both")&&jsxRuntime.jsx(shape.AreaClosed,{data:c,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:c,x:f=>m(f.xValue),y:f=>p(f.yValue),stroke:g,strokeWidth:n,strokeLinecap:"round",curve:curve.curveLinear})]})});Su.displayName="SparklineCell";function Qb({value:e,row:t,context:r,prefix:o,suffix:n,emptyText:a="\u2014",href:i,linkBehavior:s="hover",linkVariant:l="default",emphasis:c="normal",truncate:d=true,copyable:u=false,align:m="left",className:p,piiType:g,piiEntity:f}){let{isLoading:b}=r;if(b)return jsxRuntime.jsx(J,{className:Vt(c)});let x=qs(e,a),v=be(i,t),y=be(f,t),C=x,N=false,P=false;if(d&&x&&typeof x=="string")if(typeof d=="boolean")P=true;else {let{position:w="end",length:G=16,ellipsis:K="...",tooltip:z=true}=d;if(x.length>G){switch(w){case "start":C=Ai(x,G);break;case "middle":C=Rn(x,G);break;case "end":C=Mi(x,G,K);break}N=z;}}let T=g&&y?{"data-pii-type":g,"data-pii-entity":y}:{},B=Object.keys(T).length>0,A=jsxRuntime.jsx("span",{className:P?"truncate":"",...T,children:C}),I=N?jsxRuntime.jsx(Et,{content:B?jsxRuntime.jsx("span",{...T,children:String(x)}):String(x),children:A}):A,L=jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[o&&jsxRuntime.jsx("span",{className:"text-text-muted",children:o}),I,n&&jsxRuntime.jsx("span",{className:"text-text-muted",children:n})]}),M=L;if(u&&x&&x!==a){let w=typeof u=="function"?u(t):String(x);M=jsxRuntime.jsx(po,{value:w,size:"sm",children:L});}if(v){let w=Se(m,p);return jsxRuntime.jsx("div",{className:w,children:Mr(M,v,t,s,l,c)})}let S=Se(m,tailwindMerge.twMerge(ir(c),p));return jsxRuntime.jsx("div",{className:S,children:M})}var iT={sm:"sm:hidden",md:"md:hidden",lg:"lg:hidden",xl:"xl:hidden"},sT={sm:"hidden sm:grid",md:"hidden md:grid",lg:"hidden lg:grid",xl:"hidden xl:grid"};function ol(e,t){return t.accessor?typeof t.accessor=="function"?t.accessor(e):e[t.accessor]:null}function nl(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 il({row:e,columns:t,density:r,isLoading:o,onClick:n}){let a=t.filter(u=>u.mobile!==false).map(u=>{let m=u.mobile===false?null:u.mobile;return {...u,mobilePriority:m?.priority??2,mobileFormat:m?.format??"secondary",showLabel:m?.label??m?.format==="secondary",icon:m?.icon}}).sort((u,m)=>u.mobilePriority-m.mobilePriority),i=a.filter(u=>u.mobilePriority===1||u.mobileFormat==="primary"),s=a.filter(u=>u.mobilePriority===2&&u.mobileFormat!=="primary"),l=a.filter(u=>u.mobileFormat==="badge"),c={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(u=>{let m=ol(e,u);return jsxRuntime.jsx("div",{className:"font-medium text-text-body [&>*]:!justify-start [&>*]:!text-left",children:nl(m,e,u,c)},u.id)})}),l.length>0&&jsxRuntime.jsx("div",{className:"ml-2 flex flex-wrap gap-1",children:l.map(u=>{let m=ol(e,u);return jsxRuntime.jsx("div",{className:"inline-flex",children:nl(m,e,u,c)},u.id)})})]}),s.length>0&&jsxRuntime.jsx("div",{className:"space-y-1",children:s.map(u=>{let m=ol(e,u),p=u.showLabel&&u.label;return jsxRuntime.jsxs("div",{className:"flex items-center text-sm text-text-muted",children:[u.icon&&jsxRuntime.jsx(F,{name:u.icon,className:"mr-1.5 h-4 w-4 flex-shrink-0"}),p&&jsxRuntime.jsxs("span",{className:"mr-1 font-medium",children:[u.label,":"]}),jsxRuntime.jsx("span",{className:"truncate [&>*]:!justify-start [&>*]:!text-left",children:nl(m,e,u,c)})]},u.id)})})]})}function sl({row:e,columns:t,density:r,isLoading:o,onClick:n}){let a=t.filter(l=>l.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((l,c)=>{let d=ol(e,l),u=c===0;return jsxRuntime.jsxs("div",{children:[!u&&jsxRuntime.jsx("div",{className:"text-xs text-text-muted",children:l.label}),jsxRuntime.jsx("div",{className:tailwindMerge.twMerge(u?"font-medium text-text-body":"text-sm text-text-body","[&>*]:!justify-start [&>*]:!text-left"),children:nl(d,e,l,i)})]},l.id)})})})}function $b(e="md"){return {mobile:iT[e],desktop:sT[e]}}function _b({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 vT={compact:"py-1.5 px-3 text-sm",default:"py-3 px-4 text-sm",relaxed:"py-4 px-4 text-base"},CT={left:"text-left justify-start",center:"text-center justify-center",right:"text-right justify-end"};function ST(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 wT({column:e,sortConfig:t,onSort:r,stickyHeader:o,stickyFirstColumn:n,isFirstColumn:a,density:i="default",isLoading:s=false}){let l=e.reorderable!==false,{attributes:c,listeners:d,setNodeRef:u,transform:m,transition:p,isDragging:g}=sortable.useSortable({id:e.id,disabled:!l||s}),f=t?.columnId===e.id,b=f?t.direction:null,x=n&&a,v={...ST(e),transform:utilities.CSS.Transform.toString(m),transition:p,opacity:g?.8:1,zIndex:g?50:void 0};return jsxRuntime.jsx("div",{ref:u,className:tailwindMerge.twMerge("flex items-center border-b border-border-default bg-background-surface",e.sortable?"gap-2":"gap-1",vT[i],CT[e.align||"left"],o&&"sticky top-0 z-10",x&&"sticky left-0 z-20 shadow-[2px_0_4px_-2px_rgba(0,0,0,0.1)]",o&&x&&"z-30",e.sortable&&!s&&"hover:bg-background-hover",s&&"cursor-not-allowed opacity-60",f?"font-bold text-text-body":"font-medium text-text-muted",g&&"bg-background-hover"),style:v,role:"columnheader","aria-sort":f?b==="asc"?"ascending":"descending":"none","aria-disabled":s,...c,...d,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(F,{name:b==="asc"?"CaretUp":"CaretDown",size:14,weight:"bold",className:"text-text-body"}):jsxRuntime.jsx(F,{name:"CaretUpDown",size:12,className:"text-text-muted opacity-40"})})]})})}function tx({columns:e,columnOrder:t,onColumnOrderChange:r,sortConfig:o,onSort:n,stickyHeader:a,stickyFirstColumn:i,density:s="default",isLoading:l=false}){let c=core.useSensors(core.useSensor(core.PointerSensor,{activationConstraint:{distance:5}}),core.useSensor(core.KeyboardSensor,{coordinateGetter:sortable.sortableKeyboardCoordinates})),d=new Map(e.map(p=>[p.id,p])),u=p=>{let{active:g,over:f}=p;if(f&&g.id!==f.id){let b=t.indexOf(g.id),x=t.indexOf(f.id);if(d.get(f.id)?.reorderable===false)return;let y=0;for(let T=0;T<t.length&&d.get(t[T])?.reorderable===false;T++)y=T+1;if(x<y)return;let C=Math.min(b,x),N=Math.max(b,x);for(let T=C;T<=N;T++){if(T===b)continue;if(d.get(t[T])?.reorderable===false)return}let P=sortable.arrayMove(t,b,x);r(P);}},m=t.map(p=>d.get(p)).filter(p=>p!==void 0);return jsxRuntime.jsx(core.DndContext,{sensors:c,collisionDetection:core.closestCenter,onDragEnd:u,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(wT,{column:p,sortConfig:o,onSort:n,stickyHeader:a,stickyFirstColumn:i,isFirstColumn:g===0,density:s,isLoading:l},p.id))})})})}var ku={compact:"py-1.5 px-3 text-sm",default:"py-3 px-4 text-sm",relaxed:"py-4 px-4 text-base"},Pu={left:"text-left justify-start",center:"text-center justify-center",right:"text-right justify-end"},DT={full:"w-full",auto:"w-auto inline-block",contained:"w-full max-w-6xl mx-auto"},ET={auto:"table-auto",fixed:"table-fixed",responsive:"table-auto"};function Ru(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 AT(e,t){return t.accessor?typeof t.accessor=="function"?t.accessor(e):e[t.accessor]:null}function MT({column:e,sortConfig:t,onSort:r,stickyHeader:o,stickyFirstColumn:n,isFirstColumn:a,density:i="default",isLoading:s=false}){let l=t?.columnId===e.id,c=l?t.direction:null,d=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",ku[i],Pu[e.align||"left"],o&&"sticky top-0 z-10",d&&"sticky left-0 z-20 shadow-[2px_0_4px_-2px_rgba(0,0,0,0.1)]",o&&d&&"z-30",e.sortable&&!s&&"cursor-pointer hover:bg-background-hover",s&&"cursor-not-allowed opacity-60",l?"font-bold text-text-body":"font-medium text-text-muted"),onClick:()=>!s&&e.sortable&&r(e.id),role:"columnheader","aria-sort":l?c==="asc"?"ascending":"descending":"none","aria-disabled":s,style:Ru(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:l?jsxRuntime.jsx(F,{name:c==="asc"?"CaretUp":"CaretDown",size:14,weight:"bold",className:"text-text-body"}):jsxRuntime.jsx(F,{name:"CaretUpDown",size:12,className:"text-text-muted opacity-40"})})]})})}function LT({column:e,row:t,rowIndex:r,columnIndex:o,isHovered:n,density:a="default",className:i,stickyFirstColumn:s}){let l=s&&o===0,c=AT(t,e),d={isLoading:false,isHovered:n,rowIndex:r,columnIndex:o,density:a},u;if(e.cell){let m=e.cell,p=typeof e.cellProps=="function"?e.cellProps(c,t):e.cellProps;u=jsxRuntime.jsx(m,{value:c,row:t,context:d,...p});}else e.render?u=e.render(c,t,d):u=jsxRuntime.jsx("span",{className:"truncate",children:c?.toString()??""});if(e.popover){let m=e.popover,p,g="top",f=false,b="hover";typeof m=="string"?p=m:typeof m=="function"?p=m(c,t):(p=typeof m.content=="function"?m.content(c,t):m.content,g=m.placement||"top",f=m.showArrow??false,b=m.trigger||"hover"),u=jsxRuntime.jsxs(reactAriaComponents.DialogTrigger,{...b==="hover"?{trigger:"longPress"}:{},children:[jsxRuntime.jsx("div",{className:"cursor-help",children:u}),jsxRuntime.jsx(Ze,{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?"":ku[a],Pu[e.align||"left"],l&&"sticky left-0 z-10 shadow-[2px_0_4px_-2px_rgba(0,0,0,0.1)]",i),role:"cell",style:Ru(e),children:u})}function IT({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 l=e.cell,c=typeof e.cellProps=="function"?e.cellProps(null,{}):e.cellProps;s=jsxRuntime.jsx(l,{value:null,row:{},context:i,...c});}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?"":ku[o],Pu[e.align||"left"],a&&"sticky left-0 z-10 shadow-[2px_0_4px_-2px_rgba(0,0,0,0.1)]"),role:"cell",style:Ru(e),children:s})}function FT(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 rx({columns:e,row:t,rowIndex:r,density:o="default",onClick:n,stickyFirstColumn:a}){let[i,s]=Ee.useState(false),l=Ee.useCallback(c=>{if(!n)return;let d=c.target,u=c.currentTarget;FT(d,u)||n(t);},[n,t]);return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("contents group",n&&"cursor-pointer"),role:"row",onClick:l,onMouseEnter:()=>s(true),onMouseLeave:()=>s(false),children:e.map((c,d)=>jsxRuntime.jsx(LT,{column:c,row:t,rowIndex:r,columnIndex:d,isHovered:i,density:o,className:n?"group-hover:bg-background-hover":"",stickyFirstColumn:a},c.id))})}function ox({columns:e,rowIndex:t,density:r="default",stickyFirstColumn:o}){return jsxRuntime.jsx("div",{className:"contents",role:"row",children:e.map((n,a)=>jsxRuntime.jsx(IT,{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:l="auto",customMobileRowRender:c,mobileBreakpoint:d="md",isLoading:u=false,loadingState:m,loadingRowCount:p=5,onLoadMore:g,hasMore:f=false,enableVirtualization:b,estimatedRowHeight:x,loadingIndicator:v,stickyHeader:y=false,stickyFirstColumn:C=false,onRowClick:N,getRowId:P,hideHeader:T=false,sortConfig:B,onSort:A,"aria-label":I,enableColumnReorder:L=false,columnOrder:M,onColumnOrderChange:S}){let[w,G]=Ee.useState(null),K=B!==void 0,z=K?B:w,j=Ee.useRef(null),Z=Ee.useMemo(()=>e.map(W=>W.id),[e]),[R,V]=Ee.useState(Z),D=M!==void 0,k=D?M:R;Ee.useEffect(()=>{D||V(W=>{let O=e.map(ge=>ge.id),Q=new Set(O),oe=new Set(W),ne=W.filter(ge=>Q.has(ge)),we=O.filter(ge=>!oe.has(ge));return [...ne,...we]});},[e,D]);let Y=Ee.useCallback(W=>{D||V(W),S?.(W);},[D,S]),E=Ee.useMemo(()=>{if(!L&&!M)return e;let W=new Map(e.map(O=>[O.id,O]));return k.map(O=>W.get(O)).filter(O=>O!==void 0)},[e,k,L,M]),h=g?ro({items:t,onLoadMore:g,hasMore:f,isLoading:u,loadingState:m,enableVirtualization:b,estimatedItemSize:x||(o==="compact"?40:o==="relaxed"?60:48),overscan:5}):null,U=h?.scrollRef??j,{loadMoreRef:H,virtualizer:q,virtualItems:re,isLoadingMore:ue,computedLoadingState:X}=h||{},{gridTemplateColumns:te,totalMinWidth:Ne}=Ee.useMemo(()=>{let W=0;return {gridTemplateColumns:E.map(Q=>{if(Q.minWidth?W+=typeof Q.minWidth=="number"?Q.minWidth:0:Q.width&&typeof Q.width=="number"&&(W+=Q.width),Q.width)return typeof Q.width=="number"?`${Q.width}px`:Q.width;if(Q.flex)return `${Q.flex}fr`;if(Q.minWidth&&Q.maxWidth){let oe=typeof Q.minWidth=="number"?`${Q.minWidth}px`:Q.minWidth,ne=typeof Q.maxWidth=="number"?`${Q.maxWidth}px`:Q.maxWidth;return `minmax(${oe}, ${ne})`}return Q.minWidth?`minmax(${typeof Q.minWidth=="number"?`${Q.minWidth}px`:Q.minWidth}, 1fr)`:Q.maxWidth?`minmax(0, ${typeof Q.maxWidth=="number"?`${Q.maxWidth}px`:Q.maxWidth})`:"1fr"}).join(" "),totalMinWidth:W}},[E]),ae=Ee.useCallback(W=>{if(!e.find(oe=>oe.id===W)?.sortable)return;let Q;z?.columnId===W?Q={columnId:W,direction:z.direction==="asc"?"desc":"asc"}:Q={columnId:W,direction:"asc"},K||G(Q),A?.(Q);},[e,z,A,K]),de=X==="loading"||u&&t.length===0,fe={};a?(fe.height=typeof a=="number"?`${a}px`:a,fe.overflowY="auto"):i?(fe.maxHeight=typeof i=="number"?`${i}px`:i,fe.overflowY="auto"):g&&(fe.height="600px",fe.overflowY="auto");let $=tailwindMerge.twMerge(DT[n],!g&&(s==="responsive"?"overflow-x-auto scrollbar-visible":"overflow-auto scrollbar-visible"),r),se=$b(d),ve=l!=="none",Fe=(W,O)=>ve?l==="custom"&&c?c(W,O):jsxRuntime.jsx(l==="cards"?sl:il,{row:W,columns:E,density:o,isLoading:u,onClick:N?()=>N(W):void 0}):null,Pe=q?re?.map(W=>({virtualItem:W,row:t[W.index],index:W.index}))||[]:t.map((W,O)=>({row:W,index:O,virtualItem:null}));return jsxRuntime.jsxs("div",{ref:U,className:$,style:{...fe,position:q?"relative":void 0},children:[jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("grid border-separate border-spacing-0",ET[s],n==="auto"?"inline-grid w-auto":"w-full",ve&&se.desktop),role:"table","aria-label":I,style:{gridTemplateColumns:te,minWidth:Ne>0?`${Ne}px`:void 0},children:[!T&&(L?jsxRuntime.jsx(tx,{columns:e,columnOrder:k,onColumnOrderChange:Y,sortConfig:z,onSort:ae,stickyHeader:y,stickyFirstColumn:C,density:o,isLoading:de}):jsxRuntime.jsx("div",{className:"contents",role:"rowgroup",children:E.map((W,O)=>jsxRuntime.jsx(MT,{column:W,sortConfig:z,onSort:ae,stickyHeader:y,stickyFirstColumn:C,isFirstColumn:O===0,density:o,isLoading:de},W.id))})),q?jsxRuntime.jsx("div",{className:"col-span-full",style:{gridColumn:"1 / -1",height:`${q.getTotalSize()}px`,position:"relative"},role:"rowgroup",children:de?Array.from({length:p}).map((W,O)=>jsxRuntime.jsx("div",{className:"contents",children:jsxRuntime.jsx(ox,{columns:E,rowIndex:O,density:o,stickyFirstColumn:C})},`loading-${O}`)):t.length>0?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[Pe.map(({row:W,index:O,virtualItem:Q})=>{if(!W||!Q)return null;let oe=P?P(W):`row-${O}`;return jsxRuntime.jsx("div",{style:{position:"absolute",top:0,left:0,width:"100%",display:"grid",gridTemplateColumns:te,transform:`translateY(${Q.start}px)`},"data-index":Q.index,ref:q.measureElement,children:jsxRuntime.jsx(rx,{columns:E,row:W,rowIndex:O,density:o,onClick:N,stickyFirstColumn:C})},oe)}),ue&&jsxRuntime.jsx("div",{style:{position:"absolute",top:`${q.getTotalSize()}px`,left:0,width:"100%"},children:v||jsxRuntime.jsx($t,{state:"loading-more"})})]}):jsxRuntime.jsx("div",{className:"py-12 text-center text-text-muted",children:"No data available"})}):jsxRuntime.jsx("div",{className:"contents",role:"rowgroup",children:de?Array.from({length:p}).map((W,O)=>jsxRuntime.jsx(ox,{columns:E,rowIndex:O,density:o,stickyFirstColumn:C},`loading-${O}`)):t.length>0?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[Pe.map(({row:W,index:O})=>{if(!W)return null;let Q=P?P(W):`row-${O}`;return jsxRuntime.jsx(rx,{columns:E,row:W,rowIndex:O,density:o,onClick:N,stickyFirstColumn:C},Q)}),ue&&jsxRuntime.jsx("div",{className:"col-span-full",style:{gridColumn:"1 / -1"},children:v||jsxRuntime.jsx($t,{state:"loading-more"})})]}):jsxRuntime.jsx("div",{className:"col-span-full py-12 text-center text-text-muted",role:"row",children:jsxRuntime.jsx("div",{role:"cell",children:"No data available"})})})]}),ve&&jsxRuntime.jsx("div",{className:se.mobile,children:de?Array.from({length:p}).map((W,O)=>jsxRuntime.jsx(_b,{density:o},`mobile-loading-${O}`)):t.length>0?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[Pe.map(({row:W,index:O})=>{if(!W)return null;let Q=P?P(W):`mobile-row-${O}`;return jsxRuntime.jsx("div",{className:"border-b border-border-default last:border-b-0",children:Fe(W,O)},Q)}),ue&&(v||jsxRuntime.jsx($t,{state:"loading-more"}))]}):jsxRuntime.jsx("div",{className:"py-12 text-center text-text-muted",children:"No data available"})}),g&&f&&!de&&(q?jsxRuntime.jsx("div",{ref:H,style:{position:"absolute",top:`${q.getTotalSize()}px`,left:0,width:"100%",height:1}}):jsxRuntime.jsx("div",{ref:H,className:"h-px w-full"}))]})}function ix({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"},l={healthy:"Healthy",warning:"Warning",error:"Error",unknown:"Unknown"},c=e==="warning"||e==="error",d=r&&t?`${l[e]} (${t})`:l[e];return jsxRuntime.jsx(Ye,{variant:s[e],size:n,shape:a,dot:c,dotPulse:c,...i,children:d})}var zT={battery:"BatteryHigh",charger:"ChargingStation",thermostat:"ThermometerSimple",inverter:"Power",vehicle:"Car",meter:"Gauge",gateway:"WifiHigh",other:"Cube",unknown:"Question"},VT={battery:"Battery",charger:"Charger",thermostat:"Thermostat",inverter:"Inverter",vehicle:"Vehicle",meter:"Meter",gateway:"Gateway",other:"Other",unknown:"Unknown"};function lx({deviceType:e,iconName:t,size:r="md",showLabel:o=false,className:n}){let a=t||(e?zT[e]:"Question"),i=e?VT[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(F,{name:a,size:r}),o&&i&&jsxRuntime.jsx("span",{className:"text-xs text-text-muted",children:i})]})}function $a({children:e,title:t,headerContent:r,titleAlign:o="left",hideCloseIcon:n=false,hasBackArrow:a=false,onBack:i,isOpen:s,slideInFrom:l="right",transparentOverlay:c=false,onClose:d,className:u,primaryAction:m,secondaryAction:p,footerContent:g,contentPadding:f=true,maxWidth:b="400px"}){if(!s)return null;let x=t||r,v=m||p||g;return jsxRuntime.jsx(dr,{children:jsxRuntime.jsx(Wt,{isOpen:s,onOpenChange:y=>!y&&d?.(),isDismissable:true,transparent:c,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",l==="right"?"right-0":"left-0",l==="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",l==="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",u),style:{maxWidth:b,width:"100%"},children:[x&&(a&&i?jsxRuntime.jsx(vt,{title:t,headerContent:r,titleAlign:o,hideCloseIcon:n,hasBackArrow:true,onBack:i,onClose:d}):jsxRuntime.jsx(vt,{title:t,headerContent:r,titleAlign:o,hideCloseIcon:n,onClose:d})),jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("flex-1 overflow-y-auto overscroll-contain",f?"px-6 py-6":"p-0"),children:e}),v&&jsxRuntime.jsx(so,{primaryAction:m,secondaryAction:p,footerContent:g})]})})})})}$a.displayName="Drawer";var UT={sm:"gap-4 px-6 py-8",md:"gap-5 px-8 py-12",lg:"gap-6 px-10 py-16"},YT={sm:"xs",md:"sm",lg:"md"},KT={sm:"text-sm leading-5",md:"text-sm leading-5",lg:"text-base leading-6"},JT={sm:"h-10 w-10",md:"h-12 w-12",lg:"h-16 w-16"},jT={sm:20,md:24,lg:32},qT={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"},ZT={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 ux({icon:e,title:t,description:r,primaryAction:o,secondaryAction:n,actions:a,size:i="md",alignment:s="center",variant:l="default",spotlightPattern:c="mesh",fullHeight:d=false,className:u}){let m=i==="sm"?"sm":"md",p=l==="spotlight",g=p?{background:ZT[c]}: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(_,{variant:"secondary",size:m,onPress:o.onPress,isDisabled:o.isDisabled,isLoading:o.isLoading,href:o.href,children:o.label}):jsxRuntime.jsx(_,{variant:"secondary",size:m,onPress:o.onPress,isDisabled:o.isDisabled,isLoading:o.isLoading,children:o.label})),n&&jsxRuntime.jsx(We,{href:n.href||"#",variant:"muted",onPress:n.onPress,className:"text-sm",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-body",UT[i],qT[s],d?"h-full pt-[15vh]":"",p?"relative overflow-hidden":"",u),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-muted",JT[i]),children:jsxRuntime.jsx(F,{name:e,size:jT[i]})}),jsxRuntime.jsx(Dt,{size:YT[i],tag:"h2",className:"text-text-muted leading-tight",children:t}),r&&jsxRuntime.jsx("p",{className:tailwindMerge.twMerge("max-w-xs text-text-muted whitespace-pre-line",KT[i]),children:r}),f()]})}function px({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"},l=jsxRuntime.jsx(Ye,{variant:i[e],size:o,shape:n,...a,children:s[e]});return t?jsxRuntime.jsx(Et,{content:t,children:l}):l}function fx({value:e,onChange:t,onUrlChange:r,accept:o="image/*",maxSize:n,isDisabled:a=false,onUpload:i,className:s,showPreview:l=true,placeholder:c="Drop files here or click to browse"}){let[d,u]=Ee.useState(false),[m,p]=Ee.useState(false),[g,f]=Ee.useState(null),[b,x]=Ee.useState(e),v=Ee.useRef(null),y=async P=>{if(f(null),n&&P.size>n){f(`File size must be less than ${(n/1024/1024).toFixed(2)}MB`);return}if(l&&P.type.startsWith("image/")){let T=new FileReader;T.onloadend=()=>{x(T.result);},T.readAsDataURL(P);}if(i){p(true);try{let T=await i(P);x(T),r?.(T);}catch(T){f("Failed to upload file"),console.error("Upload error:",T);}finally{p(false);}}t?.(P,b);},C=async P=>{try{let T=P.items;if(T.length>0){let B=T[0];if(B.kind==="file"){let A=await B.getFile();A&&y(A);}}}catch(T){f("Failed to upload file"),console.error("Upload error:",T);}finally{u(false);}},N=()=>{x(void 0),f(null),t?.(null),r?.(""),v.current&&(v.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",d?"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:C,onDropEnter:()=>u(true),onDropExit:()=>u(false),children:[b?jsxRuntime.jsxs("div",{className:"relative flex h-full w-full items-center justify-center p-4",children:[l&&b.startsWith("data:image")?jsxRuntime.jsx("img",{src:b,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-muted"}),jsxRuntime.jsx("span",{className:"text-sm text-text-muted",children:"File uploaded"})]}),!a&&jsxRuntime.jsx(_,{variant:"icon",size:"sm",onPress:N,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-muted"}),jsxRuntime.jsxs("div",{className:"text-center",children:[jsxRuntime.jsx("p",{className:"text-sm text-text-body",children:c}),jsxRuntime.jsx("p",{className:"mt-1 text-xs text-text-muted",children:o==="image/*"?"PNG, JPG, GIF up to 10MB":`Accepts ${o}`})]}),jsxRuntime.jsx(reactAriaComponents.FileTrigger,{acceptedFileTypes:o.split(","),onSelect:P=>{let T=Array.from(P||[]);T.length>0&&y(T[0]);},children:jsxRuntime.jsx(_,{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-muted",children:"Uploading..."})]})})]}),g&&jsxRuntime.jsx("p",{className:"mt-2 text-sm text-feedback-error-text",children:g})]})}function bx({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",l=e;return t?s="success":r&&(s="warning",l=`${e} (Update)`),jsxRuntime.jsx(Ye,{variant:s,size:n,shape:a,...i,children:l})}function _n(e){return jsxRuntime.jsx(reactAriaComponents.Form,{validationBehavior:"aria",...e,className:tailwindMerge.twMerge("flex flex-col gap-6",e.className)})}function hx({placeholder:e="Search...",value:t,onChange:r,isOpen:o,onOpenChange:n,trigger:a,children:i,showShortcutHint:s=true,showInput:l=true,className:c}){let[d,u]=Ee.useState(false),m=Tt("(max-width: 767px)"),p=o!==void 0?o:d,g=Ee.useCallback(v=>{n?n(v):u(v);},[n]);Ee.useEffect(()=>{let v=y=>{(y.metaKey||y.ctrlKey)&&y.key==="k"&&(y.preventDefault(),g(!p)),y.key==="Escape"&&p&&g(false);};return window.addEventListener("keydown",v),()=>window.removeEventListener("keydown",v)},[p,g]);let f=Ee.useCallback(v=>{r?.(v);},[r]),b=jsxRuntime.jsxs("button",{type:"button",className:"flex items-center gap-2 px-3 py-2 text-sm text-text-muted hover:text-text-body hover:bg-background-hover rounded-md transition-colors","aria-label":"Open search",children:[jsxRuntime.jsx(F,{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"})]})]}),x=a===null||Ee.isValidElement(a)&&a.type===Ee.Fragment&&!a.props.children;return m?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[!x&&(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:b})),jsxRuntime.jsx(Xe,{isOpen:p,onClose:()=>g(false),hideCloseIcon:false,contentPadding:false,maxHeight:"90vh",children:jsxRuntime.jsxs("div",{className:"flex flex-col h-full",children:[l&&jsxRuntime.jsx("div",{className:"p-4 border-b border-border-muted flex-shrink-0",children:jsxRuntime.jsx(ar,{value:t,onChange:f,placeholder:e,showSearchIcon:true,isClearable:!!t,onClear:()=>r?.(""),reserveErrorSpace:false,className:c,autoFocus:true})}),jsxRuntime.jsx("div",{className:"flex-1 min-h-0 overflow-hidden",children:i})]})})]}):x?null:jsxRuntime.jsxs(reactAriaComponents.DialogTrigger,{isOpen:p,onOpenChange:g,children:[a||b,jsxRuntime.jsx(Ze,{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:[l&&jsxRuntime.jsx("div",{className:"p-4 border-b border-border-muted",children:jsxRuntime.jsx(ar,{value:t,onChange:f,placeholder:e,showSearchIcon:true,isClearable:!!t,onClear:()=>r?.(""),reserveErrorSpace:false,className:c,autoFocus:true})}),jsxRuntime.jsx("div",{className:"max-h-[500px] overflow-hidden",children:i})]})})]})}function Cx({placeholder:e="Search...",value:t,onChange:r,isOpen:o,onOpenChange:n,children:a,maxHeight:i="400px",variant:s="default",className:l}){let[c,d]=Ee.useState(false),u=Tt("(max-width: 767px)"),m=Ee.useRef(null),p=Ee.useRef(null),g=o!==void 0?o:c,f=Ee.useCallback(I=>{n?n(I):d(I);},[n]);Ee.useEffect(()=>{let I=L=>{(L.metaKey||L.ctrlKey)&&L.key==="k"&&(L.preventDefault(),f(!g)),L.key==="Escape"&&g&&f(false);};return window.addEventListener("keydown",I),()=>window.removeEventListener("keydown",I)},[g,f]),Ee.useEffect(()=>{g&&!u&&m.current&&setTimeout(()=>{m.current?.querySelector("input")?.focus();},0);},[g,u]),Ee.useEffect(()=>{if(!g||u)return;let I=L=>{let M=L.target,S=m.current?.contains(M),w=p.current?.contains(M);!S&&!w&&f(false);};return document.addEventListener("mousedown",I,true),()=>document.removeEventListener("mousedown",I,true)},[g,u,f]);let b=I=>{r?.(I);},x=Ee.useCallback(()=>{f(false);},[f]),v=Ee.useCallback(()=>{r?.("");},[r]),[y,C]=Ee.useState(null);Ee.useEffect(()=>{if(g&&!u&&m.current){let I=null,L=()=>{let S=m.current?.getBoundingClientRect();S&&C({top:S.bottom+8,left:S.left,width:S.width});},M=()=>{I===null&&(I=requestAnimationFrame(()=>{L(),I=null;}));};return L(),window.addEventListener("resize",M),window.addEventListener("scroll",M,true),()=>{window.removeEventListener("resize",M),window.removeEventListener("scroll",M,true),I!==null&&cancelAnimationFrame(I);}}},[g,u]);let N=Ee.useCallback(()=>{f(true);},[f]);if(u)return jsxRuntime.jsxs("div",{className:l,children:[jsxRuntime.jsx("button",{type:"button",onClick:N,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(F,{name:"MagnifyingGlass",size:"md"})}),jsxRuntime.jsxs(Xe,{isOpen:g,onClose:x,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(ar,{value:t,onChange:b,placeholder:e,showSearchIcon:true,isClearable:!!t,onClear:v,reserveErrorSpace:false,autoFocus:true})}),jsxRuntime.jsx(_,{variant:"icon",onPress:x,"aria-label":"Close search",className:"flex-shrink-0",children:jsxRuntime.jsx(F,{name:"X",size:"md"})})]}),jsxRuntime.jsx("div",{className:"mt-4",children:a})]})]},"mobile");let P=I=>{let M=I.target.tagName==="INPUT";if(I.key==="ArrowDown"&&g&&M){I.preventDefault();let S=p.current?.querySelector("[data-search-result]");S&&S.focus();}},T=I=>{let L=I.target;if(!L.hasAttribute("data-search-result"))return;let S=Array.from(p.current?.querySelectorAll("[data-search-result]")||[]),w=S.indexOf(L);if(I.key==="ArrowDown"){I.preventDefault(),I.stopPropagation();let G=Math.min(w+1,S.length-1);S[G]?.focus();}else if(I.key==="ArrowUp")if(I.preventDefault(),I.stopPropagation(),w===0)m.current?.querySelector("input")?.focus();else {let G=Math.max(w-1,0);S[G]?.focus();}else I.key==="Escape"&&(I.preventDefault(),I.stopPropagation(),f(false),m.current?.querySelector("input")?.focus());},B=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:T,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,A=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 ${l||""}`,onKeyDown:P,children:[jsxRuntime.jsx(ar,{value:t,onChange:b,placeholder:e,showSearchIcon:true,isClearable:!!t,onClear:()=>r?.(""),reserveErrorSpace:false,className:A,onFocus:()=>f(true)}),B]},"desktop")}function Sx({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-muted mb-3",children:jsxRuntime.jsx(F,{name:r,size:48})}),jsxRuntime.jsx("p",{className:"text-base font-medium text-text-body mb-1",children:e}),t&&jsxRuntime.jsx("p",{className:"text-sm text-text-muted max-w-xs",children:t})]})}function Nx({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-heading",children:e}),!r&&t!==void 0&&jsxRuntime.jsx("span",{className:"text-xs text-text-muted",children:t}),r&&jsxRuntime.jsx("span",{className:"text-xs text-text-muted 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 Px({id:e,title:t,subtitle:r,metadata:o,icon:n,customIcon:a,onSelect:i,isFocused:s=false,className:l,testId:c}){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 b=document.querySelector('input[type="text"][placeholder*="Search"]');b&&b.focus();}break}case "Escape":{m.preventDefault();let g=document.querySelector('input[type="text"][placeholder*="Search"]');g&&g.focus();break}}},"data-testid":c,"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-body hover:bg-background-hover","focus-visible:bg-brand-light focus-visible:outline-none","data-[focused]:bg-background-hover",s&&"bg-background-hover",l),"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-muted",children:jsxRuntime.jsx(F,{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-heading truncate",children:t}),o&&jsxRuntime.jsx("span",{className:"text-xs text-text-muted flex-shrink-0",children:o})]}),r&&jsxRuntime.jsx("div",{className:"text-sm text-text-muted 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(F,{name:"ArrowRight",size:16,className:"text-text-muted"})})]})}function Rx({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 Ex({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:`
94
95
  flex items-center gap-3 w-full px-4 py-2.5 rounded-lg
95
96
  transition-all duration-200 cursor-text
96
97
  ${{default:`
@@ -102,12 +103,47 @@
102
103
  backdrop-blur-sm
103
104
  `}[o]}
104
105
  ${n}
105
- `,"aria-label":"Open search",children:[jsxRuntime.jsx(k,{name:"MagnifyingGlass",size:18,className:"flex-shrink-0 transition-colors text-text-muted"}),jsxRuntime.jsx("span",{className:`flex-1 text-left text-sm transition-colors ${o==="elevated"?"text-text-muted font-normal":"text-text-placeholder"}`,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-muted":"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-muted":"bg-background-muted border border-border-muted"}`,children:"K"})]})]})}var ow={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"},nw={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"}},aw={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"},iw={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"},sw={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"},lw={start:"items-start",center:"items-center",end:"items-end",stretch:"items-stretch",baseline:"items-baseline"},cw={start:"justify-start",center:"justify-center",end:"justify-end",between:"justify-between",around:"justify-around",evenly:"justify-evenly"},dw={row:"grid-flow-row",col:"grid-flow-col",dense:"grid-flow-dense","row-dense":"grid-flow-row-dense","col-dense":"grid-flow-col-dense"},uw={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"},pw={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 pb(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 Ud({cols:e=1,gap:t="md",gapX:r,gapY:o,align:n="stretch",justify:a="start",flow:i="row",autoFit:s,autoFill:l,className:c,children:u}){let d=tailwindMerge.twMerge("grid",s||l?"":pb(e,ow,nw),!r&&!o&&aw[t],r&&iw[r],o&&sw[o],lw[n],cw[a],dw[i],c),m={};return s?m.gridTemplateColumns=`repeat(auto-fit, minmax(${s}, 1fr))`:l&&(m.gridTemplateColumns=`repeat(auto-fill, minmax(${l}, 1fr))`),jsxRuntime.jsx("div",{className:d,style:m,children:u})}function mb({span:e,className:t,children:r}){let o=tailwindMerge.twMerge(pb(e,uw,pw),t);return jsxRuntime.jsx("div",{className:o,children:r})}Ud.Item=mb;function mw(e,t){return De__namespace.default.isValidElement(e)?e:gr({value:e,formatter:t,emptyClassName:"text-text-muted",emptyText:"\u2014"})}function fw(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 gw={neutral:"text-text-body",success:"text-feedback-success",warning:"text-feedback-warning",error:"text-feedback-error",info:"text-feedback-info"},bw=24,xw=20;function hw({item:e,dense:t,valueAlign:r}){let o=fw(e),n=o?gw[o]:"",a=e.stackOnMobile,i=typeof e.value=="string"&&e.value.length>bw&&!e.formatter&&!De__namespace.default.isValidElement(e.value),s=mw(e.value,e.formatter),l=i?hn(e.value,xw):null,c=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(Pt,{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:l})}),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(ro,{value:c,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",x=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-muted mt-0.5",r==="start"?"text-left":"text-right"),children:e.meta})]}),v=jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsxs("dt",{className:tailwindMerge.twMerge(t?"text-xs":"text-sm","text-text-caption 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(k,{name:"Question",size:10,className:"text-text-muted","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:x}):x]});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:v})}function Vs({items:e,layout:t="one-column",dense:r=false,valueAlign:o="end",showDividers:n=false,skeleton:a=false,empty:i=false,error:s,className:l}){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",l),children:Array.from({length:e.length||4}).map((c,u)=>jsxRuntime.jsxs("div",{className:"grid grid-cols-[1fr_auto] items-start gap-x-4",children:[jsxRuntime.jsx(V,{className:"h-4 w-24"}),jsxRuntime.jsx(V,{className:"h-5 w-16"})]},u))}):s?jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("text-sm text-feedback-error",l),children:s}):i||!e.length?jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("text-sm text-text-muted",l),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",l),children:e.map((c,u)=>jsxRuntime.jsxs(De__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(hw,{item:c,dense:r,valueAlign:o})]},c.id))})}function bb({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-heading 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(Vs,{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 Ye={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 Yd=De__namespace.createContext(null);function xb(){let e=De__namespace.useContext(Yd);if(!e)throw new Error("Hierarchy components must be used within HierarchyExplorer");return e}function yb({node:e,renderNode:t}){let{selectedId:r,selectNode:o,navigateToNode:n,variant:a,size:i,showBullets:s,rootNodeId:l,stickyRootNode:c,navigationStack:u,setRootNodeSticky:d,useSplitLayout:m}=xb(),p=De__namespace.useRef(null),g=De__namespace.useRef(null),f=r===e.id,b=e.disabled||false,x=!!(e.children&&e.children.length>0),v=!!(e.metadata&&Object.keys(e.metadata).length>0),y=x||v,C=l!==void 0&&e.id!==void 0&&l===e.id&&u.length===0;De__namespace.useLayoutEffect(()=>{C&&c&&p.current&&g.current===null&&requestAnimationFrame(()=>{p.current&&(g.current=p.current.offsetTop);});},[C,c]),De__namespace.useEffect(()=>{if(!C||!c||!p.current)return;let P=p.current.parentElement;for(;P;){let E=window.getComputedStyle(P).overflowY;if(E==="auto"||E==="scroll")break;P=P.parentElement;}if(!P)return;let T=()=>{if(!p.current||g.current===null)return;let E=P.getBoundingClientRect(),R=P.scrollTop,J=E.height,X=p.current.offsetHeight,$=g.current-R,j=$+X,M=$<0,W=j>J;M?d("top",e):W?d("bottom",e):d(null,null);};return P.addEventListener("scroll",T),T(),()=>{P.removeEventListener("scroll",T);}},[C,c,e,d]);let S=()=>{b||(m?o(e):y?n(e):o(e));},w=P=>{b||(P.key==="Enter"||P.key===" ")&&(P.preventDefault(),S());},N={isSelected:f,isDisabled:b,hasChildren:x,hasMetadata:v,level:0},L=tailwindMerge.twMerge("relative cursor-pointer group",b&&"opacity-50 cursor-not-allowed"),D=tailwindMerge.twMerge("absolute inset-0 transition-colors",C&&!f&&!b&&"group-hover:bg-background-hover",C&&f&&!b&&a==="subtle"&&"bg-brand-primary/10 group-hover:bg-brand-primary/15",C&&f&&b&&a==="subtle"&&"bg-brand-primary/10",C&&f&&!b&&a==="solid"&&"bg-brand-primary group-hover:bg-brand-primary/90",C&&f&&b&&a==="solid"&&"bg-brand-primary",!C&&a==="subtle"&&!f&&!b&&"group-hover:bg-background-hover",!C&&a==="subtle"&&f&&!b&&"bg-brand-primary/10 group-hover:bg-brand-primary/15",!C&&a==="subtle"&&f&&b&&"bg-brand-primary/10",!C&&a==="solid"&&!f&&!b&&"group-hover:bg-background-hover",!C&&a==="solid"&&f&&!b&&"bg-brand-primary group-hover:bg-brand-primary/90",!C&&a==="solid"&&f&&b&&"bg-brand-primary"),A=tailwindMerge.twMerge("relative flex items-center gap-2 text-text-body hover:text-text-heading transition-colors",Ye[i].node,C&&!f&&"font-semibold",a==="subtle"&&f&&"text-brand-primary",a==="solid"&&f&&"text-white");return jsxRuntime.jsxs("div",{ref:p,className:L,onClick:S,onKeyDown:w,role:"treeitem","aria-selected":f,"aria-disabled":b,tabIndex:0,"data-node-id":e.id,children:[jsxRuntime.jsx("div",{className:D}),jsxRuntime.jsxs("div",{className:A,children:[s&&jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("relative rounded-full flex items-center justify-center flex-shrink-0 z-20",C&&"bg-brand-primary border-brand-primary",!C&&"bg-background-muted border border-border-default"),style:{width:Ye[i].bullet,height:Ye[i].bullet},children:e.icon&&jsxRuntime.jsx(k,{name:e.icon,size:Ye[i].icon,weight:C?"fill":"regular",className:C?"text-white":"text-text-body"})}),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(k,{name:"CaretRight",size:Ye[i].icon,className:"text-text-muted"})})]})]})}function Cb({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-caption z-10 pointer-events-none",style:{left:`${Ye[n].spacing.x+Ye[n].bullet/2}px`,top:`${Ye[n].spacing.y+Ye[n].bullet/2}px`,bottom:`${Ye[n].spacing.y+Ye[n].bullet/2}px`},"aria-hidden":"true"}),e.map(i=>jsxRuntime.jsx(yb,{node:i,renderNode:a},i.id))]})}function Sb(){let[e,t]=De.useState(()=>typeof window>"u"?false:window.matchMedia("(prefers-reduced-motion: reduce)").matches);return De.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}function Ha({children:e,mode:t="sync",presenceKey:r}){let o=r!==void 0&&De__namespace.default.isValidElement(e)?De__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})}var kw={instant:0,fast:150,normal:250,slow:350,slower:500},Jd={xs:"4px",sm:"8px",md:"16px"};function Tw(e){return e?typeof e=="string"&&e in Jd?Jd[e]:typeof e=="number"?`${e}px`:e:Jd.sm}function Ga({children:e,direction:t,distance:r="sm",duration:o="normal",delay:n=0,className:a}){let i=Sb(),s=typeof o=="number"?o:kw[o],l=Tw(r),c=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,...c(l)},d={opacity:1,x:0,y:0},m=i?{opacity:0}:{opacity:0,...c(l)};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 Gs({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",Ye[r].node),children:[jsxRuntime.jsx(k,{name:"CaretLeft",size:Ye[r].icon,className:"text-text-muted group-hover:text-text-heading transition-colors"}),jsxRuntime.jsx("span",{className:"font-medium text-text-heading group-hover:text-brand-primary transition-colors",children:o})]})})}function Ws({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",Ye[n].node,i?o==="subtle"?"text-brand-primary":"bg-brand-primary text-white":"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-brand-primary/10"}),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-brand-primary border-brand-primary",style:{width:Ye[n].bullet,height:Ye[n].bullet},children:e.icon&&jsxRuntime.jsx(k,{name:e.icon,size:Ye[n].icon,weight:"fill",className:"text-white"})}),jsxRuntime.jsx("div",{className:"flex-1 min-w-0",children:jsxRuntime.jsx("span",{className:"truncate",children:e.name})})]})]})}function Tb({currentItems:e,currentParent:t,navigationStack:r,selectedId:o,variant:n,size:a,showBullets:i,slideDirection:s,viewKey:l,hasHeight:c,rootNodeStickyState:u,renderNodeList:d,renderDetailContent:m,onNavigateBack:p}){return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[r.length===0&&u.position&&u.node&&jsxRuntime.jsx(Ws,{node:u.node,position:u.position,selectedId:o,variant:n,size:a,showBullets:i}),r.length>0&&jsxRuntime.jsx(Gs,{navigationStack:r,onNavigateBack:p,size:a}),jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("relative",c&&"overflow-auto h-full"),children:jsxRuntime.jsx(Ha,{mode:"wait",presenceKey:l,children:r.length===0?d(e,true):jsxRuntime.jsx(Ga,{direction:s,distance:"100%",duration:"normal",children:m(t)})})})]})}function Zd(e,t){for(let r of e){if(r.id===t)return r;if(r.children&&r.children.length>0){let o=Zd(r.children,t);if(o)return o}}return null}function Us(e){if(e!==void 0)return typeof e=="number"?`${e}px`:e}function Pb(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],l=`${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 ${l} is missing an "id" field. Node name: "${s.name||"(unnamed)"}"`),s.children&&o(s.children,`${l}.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 Db({data:e,currentItems:t,navigationStack:r,selectedId:o,variant:n,size:a,showBullets:i,rootNodeStickyState:s,renderNodeList:l,renderDetailContent:c,renderEmptyState:u,onNavigateBack:d}){let m=o?Zd(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(Ws,{node:s.node,position:s.position,selectedId:o,variant:n,size:a,showBullets:i}),r.length>0&&jsxRuntime.jsx(Gs,{navigationStack:r,onNavigateBack:d,size:a}),jsxRuntime.jsx("div",{className:"flex-1 overflow-auto",children:l(t,r.length===0)})]}),jsxRuntime.jsx("div",{className:"flex-1 min-w-0 overflow-auto bg-background-body",children:jsxRuntime.jsx(Ha,{mode:"wait",presenceKey:m?.id||"empty",children:m?jsxRuntime.jsx(Ga,{direction:"left",duration:"fast",children:c(m)}):u?u():jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("text-text-muted text-center",Ye[a].node,"py-8"),children:"Select an item to view details"})})})]})}function Ab({data:e,renderNode:t,onNodeSelect:r,onNavigate:o,selectedId:n,rootNodeId:a,stickyRootNode:i=true,height:s,minHeight:l,maxHeight:c,variant:u="subtle",size:d="md",showBullets:m=true,layout:p="auto",splitBreakpoint:g=768,renderEmptyState:f,renderDetailView:b,className:x,"aria-label":v="Hierarchy explorer"}){let[y,C]=De__namespace.useState(null),[S,w]=De__namespace.useState([]),[N,L]=De__namespace.useState("left"),[D,A]=De__namespace.useState({position:null,node:null}),{ref:P,width:T}=bn(),E=De__namespace.useMemo(()=>p==="split"?true:p==="single"?false:T>=g,[p,T,g]),R=n!==void 0?n:y;De__namespace.useEffect(()=>{Pb(e,a);},[e,a]);let J=S.length>0?S[S.length-1]:null,X=J?J.children||[]:e,q=De__namespace.useCallback(B=>{L("left"),w(G=>[...G,B]),o?.(B,[...S,B]);},[S,o]),$=De__namespace.useCallback(()=>{L("right"),w(B=>{let G=B.slice(0,-1);return o?.(G.length>0?G[G.length-1]:null,G),G});},[o]),j=De__namespace.useCallback(B=>{n===void 0&&C(B.id),r?.(B,[...S,B]);},[n,S,r]),M=De__namespace.useCallback((B,G)=>{A({position:B,node:G});},[]),W=De__namespace.useMemo(()=>({selectedId:R,selectNode:j,navigateToNode:q,navigateBack:$,rootNodeId:a,stickyRootNode:i,variant:u,size:d,showBullets:m,onNodeSelect:r,onNavigate:o,navigationStack:S,setRootNodeSticky:M,useSplitLayout:E}),[R,j,q,$,a,i,u,d,m,r,o,S,M,E]),U=De__namespace.useRef(null);De__namespace.useEffect(()=>{if(!a||!U.current||S.length>0||E)return;let B=U.current,G=setTimeout(()=>{let oe=B.querySelector(`[data-node-id="${a}"]`);oe&&oe.scrollIntoView({behavior:"auto",block:"center",inline:"nearest"});},100);return ()=>clearTimeout(G)},[a,S.length,E]);let I={height:Us(s),minHeight:Us(l),maxHeight:Us(c)},Y=s!==void 0||c!==void 0,F=J?J.id:"root",h=De__namespace.useCallback((B,G=false)=>jsxRuntime.jsx(Cb,{items:B,showConnector:G,scrollContainerRef:G?U:null,showBullets:m,size:d,renderNode:t}),[m,d,t]),z=De__namespace.useCallback(B=>B?b?b(B,h):jsxRuntime.jsx(bb,{node:B,renderNodeList:h}):null,[b,h]);return jsxRuntime.jsx(Yd.Provider,{value:W,children:jsxRuntime.jsx("div",{ref:P,className:tailwindMerge.twMerge("select-none bg-background-surface rounded-lg border border-border-default relative",Y&&"overflow-hidden",!Y&&"h-full flex flex-col",E&&!Y&&"flex-row",E&&Y&&"flex",x),style:I,role:"tree","aria-label":v,children:E?jsxRuntime.jsx(Db,{data:e,currentItems:X,navigationStack:S,selectedId:R,variant:u,size:d,showBullets:m,rootNodeStickyState:D,renderNodeList:h,renderDetailContent:z,renderEmptyState:f,onNavigateBack:$}):jsxRuntime.jsx(Tb,{currentItems:X,currentParent:J,navigationStack:S,selectedId:R,variant:u,size:d,showBullets:m,slideDirection:N,viewKey:F,hasHeight:Y,rootNodeStickyState:D,renderNodeList:h,renderDetailContent:z,onNavigateBack:$})})})}function Gw({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 Lb=({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}),Mb=({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)=>Gw({...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]});Mb.displayName="HoverCardContent";var Ww=Object.assign(Lb,{Root:Lb,Content:Mb});function Kw(e,t){return gr({value:e,formatter:t,emptyClassName:"text-text-muted",emptyText:"\u2014"})}function Yw(e,t="upIsGood"){if(e===0)return "text-text-muted";let r=e>0;return t==="upIsGood"?r?"text-feedback-success":"text-feedback-error":r?"text-feedback-error":"text-feedback-success"}function Jw({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),c=Math.max(...i)-s,u=p=>c===0?20/2:18-(p-s)/c*16,d=60/Math.max(e.length-1,1),m=e.map((p,g)=>{let f=2+g*d,b=u(typeof p.y=="number"?p.y:0);return `${g===0?"M":"L"} ${f} ${b}`}).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 Eb({label:e,value:t,formatter:r,delta:o,deltaPeriodLabel:n,deltaIntent:a="upIsGood",trend:i,status:s,helpText:l,size:c="md",orientation:u="vertical",isLoading:d,empty:m,error:p,onClick:g,className:f,renderValue:b,renderDelta:x,renderTrend:v}){let C={sm:{label:"text-xs",value:"text-base",delta:"text-xs",gap:"gap-1"},md:{label:"text-sm",value:"text-xl",delta:"text-sm",gap:"gap-2"},lg:{label:"text-base",value:"text-2xl",delta:"text-base",gap:"gap-3"}}[c],S=d?jsxRuntime.jsx(V,{className:"h-7 w-20"}):m?jsxRuntime.jsx("span",{className:"text-text-muted",children:"\u2014"}):p?jsxRuntime.jsx("span",{className:"text-feedback-error text-sm",children:typeof p=="string"?p:"Error"}):b?b(t):Kw(t,r),w=x?x(o):o!==void 0&&!d&&!m&&!p?jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge(C.delta,Yw(o,a),"flex items-center gap-1"),children:[o>0&&jsxRuntime.jsx(k,{name:"ArrowUp",size:12}),o<0&&jsxRuntime.jsx(k,{name:"ArrowDown",size:12}),o===0&&jsxRuntime.jsx(k,{name:"Minus",size:12}),jsxRuntime.jsxs("span",{children:[o>0?"+":"",Math.abs(o).toFixed(1),"%"]}),n&&jsxRuntime.jsxs("span",{className:"text-text-muted",children:["\xB7 ",n]})]}):d&&o!==void 0?jsxRuntime.jsx(V,{className:"h-4 w-24"}):null,N=v?v(i):i&&i.length>0&&!d&&!p?jsxRuntime.jsx(Jw,{points:i,ariaLabel:`${e} trend`,className:m?"opacity-30":""}):d&&i!==void 0?jsxRuntime.jsx(V,{className:"h-5 w-16"}):null;return jsxRuntime.jsxs("section",{className:tailwindMerge.twMerge("flex min-w-0",u==="horizontal"?`items-center ${C.gap}`:`flex-col ${C.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(C.label,"font-medium text-text-caption truncate"),children:d?jsxRuntime.jsx(V,{className:"h-4 w-24"}):e}),l&&!d&&jsxRuntime.jsx(k,{name:"Question",size:12,className:"text-text-muted cursor-help","aria-label":"Help"})]}),jsxRuntime.jsxs("div",{className:"flex items-baseline gap-2",children:[jsxRuntime.jsx("output",{className:tailwindMerge.twMerge(C.value,"font-semibold",p?"text-feedback-error":"text-text-heading"),"aria-label":`Value: ${S}`,children:S}),s&&!d&&!p&&jsxRuntime.jsx(We,{variant:s.tone||"neutral",size:"sm",children:s.value})]}),(w||N)&&jsxRuntime.jsxs("div",{className:"flex items-center gap-3",children:[w,N]})]})}var Ib={xs:"gap-2",sm:"gap-3",md:"gap-4",lg:"gap-6",xl:"gap-8"},Fb={start:"items-start",center:"items-center",stretch:"items-stretch"};function Bb(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 Qd({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:l="140px",className:c}){let u=i?De__namespace.default.Children.map(e,p=>De__namespace.default.isValidElement(p)&&p.type&&typeof p.type!="string"&&"displayName"in p.type?De__namespace.default.cloneElement(p,{isLoading:true}):p):e,d=s?De__namespace.default.Children.map(u,p=>jsxRuntime.jsx("div",{className:"shrink-0",style:{minWidth:l},children:p})):u,m=s?tailwindMerge.twMerge("flex overflow-x-auto pb-2 -mb-2",Ib[r],"sm:grid sm:overflow-visible sm:pb-0 sm:-mb-0",Bb({...typeof t=="object"?t:{base:t},base:void 0}),Fb[o],n&&"sm:auto-rows-fr"):tailwindMerge.twMerge("grid",Bb(t),Ib[r],Fb[o],n&&"auto-rows-fr","w-full");return jsxRuntime.jsxs("section",{className:tailwindMerge.twMerge("w-full",c),"aria-label":"Key metrics",children:[a&&jsxRuntime.jsx("div",{className:"mb-4",children:a}),jsxRuntime.jsx("div",{className:m,children:s?d:u})]})}Qd.displayName="KpiGroup";function Ob({items:e,renderItem:t,selectedId:r,onSelect:o,onHoverChange:n,isLoading:a=false,loadingState:i,error:s=null,renderLoadingSkeleton:l,loadingSkeletonCount:c=5,emptyMessage:u="No results found.",variant:d="relaxed",showDividers:m=true,onLoadMore:p,hasMore:g=false,enableVirtualization:f,estimatedItemSize:b=60,loadingIndicator:x,"aria-label":v,className:y="",style:C}){let[S,w]=De.useState(null),N=De.useRef(null),L=De.useRef(new Map),{scrollRef:D,loadMoreRef:A,virtualizer:P,virtualItems:T,isLoadingMore:E,computedLoadingState:R}=qr({items:e,onLoadMore:p,hasMore:g,isLoading:a,loadingState:i,enableVirtualization:f,estimatedItemSize:b,overscan:5}),J=D??N,X=De.useCallback((h,z)=>{o?.(h,z);},[o]),q=De.useCallback((h,z)=>{w(h),n?.(h,z);},[n]),$=De.useCallback((h,z)=>{let B=h?.id;return typeof B=="string"&&B?B:`item-${z}`},[]),j=De.useCallback(h=>{if(!J.current||e.length===0)return;let z=document.activeElement,B=e.findIndex((O,Q)=>{let fe=$(O,Q),ne=L.current.get(fe);return ne&&(ne===z||ne.contains(z))}),G=B;switch(h.key){case "ArrowDown":h.preventDefault(),G=B===-1?0:Math.min(B+1,e.length-1);break;case "ArrowUp":h.preventDefault(),G=B===-1?0:Math.max(B-1,0);break;case "Home":h.preventDefault(),G=0;break;case "End":h.preventDefault(),G=e.length-1;break;default:return}let oe=$(e[G],G);L.current.get(oe)?.focus();},[e,$,J]),M=["flex flex-col","bg-background-surface","focus:outline-none focus:ring-2 focus:ring-border-focus focus:ring-offset-2"],W={dense:"gap-0",relaxed:"gap-0"},U=m?"divide-y divide-border-muted":"",I=[...M,W[d],U,y].filter(Boolean).join(" ");if(R==="loading"||a&&e.length===0){let h=l?jsxRuntime.jsx(jsxRuntime.Fragment,{children:Array.from({length:c}).map((z,B)=>jsxRuntime.jsx("div",{children:l()},`skeleton-${B}`))}):jsxRuntime.jsx(Hp,{count:c,className:"space-y-0",children:jsxRuntime.jsxs("div",{className:"flex items-center gap-3 px-4 py-3",children:[jsxRuntime.jsx(V,{width:16,height:16,variant:"circle"}),jsxRuntime.jsxs("div",{className:"flex-1 space-y-2",children:[jsxRuntime.jsx(V,{width:"75%",height:16}),jsxRuntime.jsx(V,{width:"50%",height:14})]}),jsxRuntime.jsx(V,{width:60,height:20})]})});return jsxRuntime.jsx("div",{ref:J,className:I,style:C,role:"listbox","aria-label":v,"aria-busy":"true","aria-live":"polite",children:h})}if(s)return jsxRuntime.jsx("div",{ref:J,className:I,style:C,role:"listbox","aria-label":v,"aria-live":"polite",children:jsxRuntime.jsx("div",{className:"p-4 text-center text-action-destructive",children:s})});if(e.length===0)return jsxRuntime.jsx("div",{ref:J,className:I,style:C,role:"listbox","aria-label":v,"aria-live":"polite",children:jsxRuntime.jsx("div",{className:"p-4 text-center text-text-muted",children:u})});let F=P?T?.map(h=>({virtualItem:h,item:e[h.index],index:h.index}))||[]:e.map((h,z)=>({item:h,index:z,virtualItem:null}));return jsxRuntime.jsxs("div",{ref:J,className:I,style:{...C,...p&&{overflow:"auto",height:C?.height||"600px"}},role:"listbox","aria-label":v,"aria-live":"polite",onKeyDown:j,tabIndex:0,children:[P&&jsxRuntime.jsxs("div",{style:{height:`${P.getTotalSize()}px`,width:"100%",position:"relative"},children:[F.map(({virtualItem:h,item:z,index:B})=>{if(!h)return null;let G=$(z,B),oe=r===G,me=S===G,O={id:G,role:"option","aria-selected":oe,"aria-current":oe?"page":void 0,tabIndex:oe||r==null&&B===0?0:-1,onClick:Q=>X(Q,z),onMouseEnter:Q=>q(Q,z),onMouseLeave:Q=>q(null),onFocus:Q=>q(Q,z),onBlur:Q=>q(null),ref:Q=>{Q?L.current.set(G,Q):L.current.delete(G);}};return jsxRuntime.jsx("div",{"data-index":h.index,ref:P.measureElement,style:{position:"absolute",top:0,left:0,width:"100%",transform:`translateY(${h.start}px)`},children:t({item:z,index:B,isSelected:oe,isHovered:me,rowProps:O})},G)}),p&&g&&jsxRuntime.jsx("div",{ref:A,style:{position:"absolute",top:`${P.getTotalSize()}px`,left:0,width:"100%",height:1,pointerEvents:"none"}}),E&&jsxRuntime.jsx("div",{style:{position:"absolute",top:`${P.getTotalSize()}px`,left:0,width:"100%"},children:x||jsxRuntime.jsx(qt,{state:"loading-more"})})]}),!P&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[F.map(({item:h,index:z})=>{let B=$(h,z),G=r===B,oe=S===B,me={id:B,role:"option","aria-selected":G,"aria-current":G?"page":void 0,tabIndex:G||r==null&&z===0?0:-1,onClick:O=>X(O,h),onMouseEnter:O=>q(O,h),onMouseLeave:O=>q(null),onFocus:O=>q(O,h),onBlur:O=>q(null),ref:O=>{O?L.current.set(B,O):L.current.delete(B);}};return jsxRuntime.jsx("div",{children:t({item:h,index:z,isSelected:G,isHovered:oe,rowProps:me})},B)}),p&&g&&jsxRuntime.jsx("div",{ref:A,style:{height:1}}),E&&(x||jsxRuntime.jsx(qt,{state:"loading-more"}))]})]})}function Gb({id:e,title:t,subtitle:r,meta:o,leading:n,trailing:a,isSelected:i=false,isHovered:s=false,disabled:l=false,href:c,size:u="md",onClick:d,onMouseEnter:m,onMouseLeave:p,className:g="",style:f,piiTitleType:b,piiSubtitleType:x,piiEntity:v}){let y=()=>{!l&&d&&d(e);},C=()=>{!l&&m&&m(e);},S=()=>{!l&&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],L=["flex items-center w-full text-left transition-all duration-200 ease-in-out",N.container,"border-l-2 border-l-transparent","rounded-sm",Ie()],D=[s&&!i&&"bg-background-hover",i&&"bg-action-default/5 border-l-action-default shadow-sm",l&&"opacity-50 cursor-not-allowed",!l&&!i&&"hover:bg-background-hover"],A=[...L,...D,g].filter(Boolean).join(" "),P=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-body font-medium truncate ${N.title}`,title:typeof t=="string"?t:void 0,"data-pii-type":b&&v?b:void 0,"data-pii-entity":b&&v?v:void 0,children:t}),r&&jsxRuntime.jsx("div",{className:`text-text-caption truncate ${N.subtitle} ${N.subtitleSpacing}`,title:typeof r=="string"?r:void 0,"data-pii-type":x&&v?x:void 0,"data-pii-entity":x&&v?v:void 0,children:r}),o&&jsxRuntime.jsx("div",{className:`text-text-muted ${N.meta} ${N.metaSpacing}`,children:o})]})})}),a&&jsxRuntime.jsx("div",{className:"flex-shrink-0",children:a})]});return c?jsxRuntime.jsx("a",{href:c,className:A,style:f,onMouseEnter:C,onMouseLeave:S,"aria-selected":i,"aria-current":i?"page":void 0,tabIndex:l?-1:0,children:P}):jsxRuntime.jsx("button",{type:"button",className:A,style:f,onClick:y,onMouseEnter:C,onMouseLeave:S,disabled:l,"aria-selected":i,tabIndex:l?-1:0,children:P})}function Wb({header:e,children:t,footer:r,width:o="md",tone:n="neutral",elevation:a="sm",showDivider:i=true,"aria-label":s,"aria-labelledby":l,className:c="",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",c);return jsxRuntime.jsxs("div",{className:g,style:u,role:"complementary","aria-label":s,"aria-labelledby":l,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})]})}var _d=[{type:"navigation",position:"bottom-right",showCompass:true,showGeolocate:true,showResetZoom:true}];var Ub="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/DpJK3021me9RnU7KiOhktAh9zMWaE3zVUMSWgdSAIHiRxJxQU5CmVAWPOQAMaAxrOIH1++hYtIYb92sY+o+cQT8FpBgEo/NRlaWhgVpCxOPXkFqRzL2vdSZXgGyxp556avh/KrApD692sOLxiqttyS51zGnX7skVbZnUaw5EsGjkp64P5kgub5u80q2mf+b04y5trik7KEb0UyRz20Z/x2MgGHYXYYsS9Zg7TwqRjIqrtYxHtVJ9c891TWJfYrlF+uHUiOTLDVg0blMdSEQ/ly7y87QgRTTyl6DEcC8lzdw2XfoJthYq6A2XFAqY+gtAKAKtRPM1+PIMh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YzZbw6+e/WpX6eGYK0xR3BJhumCL/0lYS1EWShiFKXp4HOjIdwcvzNzjuNg4uobmh3lmZNljg+RHIokP7iJ+//S9/0JF4UWgALQSUifcPn+AvCxKcp8u7vR5XAiSC3WYDByQWZ1myzFUtOgbu577+f5ZPq/B5Pf+nAAAAAElFTkSuQmCC";function Zb(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 _w="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 Xb(e){return tailwindMerge.twMerge(_w,e)}function ho({position:e="top-right",className:t,style:r,children:o}){return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge(Zb(e),t),style:r,children:o})}function Jt({icon:e,iconSize:t=24,onPress:r,isDisabled:o=false,className:n,iconClassName:a="text-text-primary",variant:i="secondary",isActive:s=false,ariaLabel:l,iconWeight:c="regular",...u}){let d=tailwindMerge.twMerge(Xb(),s&&"bg-action-brand hover:bg-action-brand-hover border-action-brand",n),m=tailwindMerge.twMerge(a,s&&"text-text-onPrimary");return jsxRuntime.jsx(_,{...u,className:d,onPress:r,variant:i,size:"sm",isDisabled:o,"aria-label":l,"aria-pressed":s||void 0,type:"button",children:jsxRuntime.jsx(k,{name:e,size:t,className:m,weight:c})})}var ak=e=>[{id:"streets",name:"Streets",description:"Standard street map with traffic data",preview:e?Jb:qb},{id:"satellite",name:"Satellite",description:"Aerial imagery with street labels",preview:Yb},{id:"neutral",name:"Neutral",description:"Clean design with light/dark variants",preview:e?Ub:Kb}];function ik({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 $b({position:e="bottom-left",className:t,style:r,currentMapType:o="streets",onMapTypeChange:n,layers:a=[],onLayerToggle:i}){let{isDarkTheme:s}=kt(),{isMobile:l}=Nt(),[c,u]=De.useState(false),d=ak(s),m=f=>{n?.(f);},p=a.filter(f=>f.legend),g=jsxRuntime.jsxs("div",{className:l?"space-y-6 pb-6":"space-y-6",children:[jsxRuntime.jsxs("div",{children:[jsxRuntime.jsx("div",{className:"text-sm font-semibold text-text-body mb-3",children:"Map type"}),jsxRuntime.jsx("div",{className:"grid grid-cols-3 gap-3",children:d.map(f=>jsxRuntime.jsxs("button",{type:"button",onClick:()=>m(f.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===f.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===f.id?"border-2 border-action-default":"border border-border-default"),children:jsxRuntime.jsx("img",{src:f.preview,alt:`${f.name} map preview`,className:"w-full h-full object-cover"})}),jsxRuntime.jsx("div",{className:"text-sm "+(o===f.id?"font-bold text-text-body":"font-normal text-text-muted"),children:f.name})]},f.id))})]}),p.length>0&&jsxRuntime.jsxs("div",{children:[jsxRuntime.jsx("div",{className:"text-sm font-semibold text-text-body mb-3",children:"Map details"}),jsxRuntime.jsx("div",{className:"space-y-2",children:p.map(f=>jsxRuntime.jsx(Bo,{isSelected:f.visible!==false,onChange:()=>i?.(f.id),children:jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[f.legend&&jsxRuntime.jsx(ik,{type:f.legend.swatch,color:f.legend.color}),jsxRuntime.jsx("span",{className:"text-sm text-text-body",children:f.legend?.label})]})},f.id))})]})]});return jsxRuntime.jsx(ho,{position:e,className:t,style:r,children:jsxRuntime.jsx("div",{className:"relative",children:l?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(Jt,{icon:"Stack",ariaLabel:"Map layers and settings",onPress:()=>u(true)}),jsxRuntime.jsx(Ze,{isOpen:c,onClose:()=>u(false),title:"Map layers",animationVariant:"scale",children:g})]}):jsxRuntime.jsxs(reactAriaComponents.DialogTrigger,{children:[jsxRuntime.jsx(Jt,{icon:"Stack",ariaLabel:"Map layers and settings"}),jsxRuntime.jsx(qe,{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:g})})]})})})}function ex({position:e="top-right",className:t,style:r,onToggle:o,isActive:n=false}){return jsxRuntime.jsx(ho,{position:e,className:tailwindMerge.twMerge("md:hidden",t),style:r,children:jsxRuntime.jsx(Jt,{icon:"ListDashes",onPress:o,isActive:n,ariaLabel:n?"Hide list view":"Show list view"})})}var dk={sm:"gap-2",md:"gap-4",lg:"gap-6"};function qs({position:e="top-right",className:t,style:r,children:o,orientation:n="vertical",spacing:a="md"}){return jsxRuntime.jsx(ho,{position:e,style:r,children:jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("flex",n==="vertical"?"flex-col":"flex-row",dk[a],t),children:o})})}function rx({mapRef:e,position:t="bottom-right",className:r,style:o,showCompass:n=true,showGeolocate:a=true,showResetZoom:i=true,onResetZoom:s,onCompassClick:l,onGeolocateClick:c}){let[u,d]=De.useState(false),m=De.useRef(true);De.useEffect(()=>()=>{m.current=false;},[]);let p=()=>{l?l():e.current&&e.current.easeTo({bearing:0,duration:500});},g=async()=>{if(!u)if(c)c();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:C,longitude:S}=y.coords;e.current&&e.current.flyTo({center:[S,C],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,b=!i&&!n&&a,x=!a&&n;return jsxRuntime.jsxs(qs,{position:t,className:r,style:o,spacing:"sm",children:[i&&jsxRuntime.jsx(Jt,{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(Jt,{icon:"Compass",onPress:p,ariaLabel:"Reset map orientation",className:tailwindMerge.twMerge(!f&&"rounded-t-none border-t-0",!x&&"rounded-b-none border-b-0")}),a&&jsxRuntime.jsx(Jt,{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(!b&&"rounded-t-none border-t-0",!b&&n&&"lg:rounded-t lg:border-t")})]})}function ix({position:e="top-left",className:t,style:r,onSearch:o,placeholder:n="Search places...",showSearchInput:a=true}){let[i,s]=De.useState(false),[l,c]=De.useState(""),u=()=>{a?s(!i):o&&o("");},d=p=>{p.preventDefault(),o&&l.trim()&&(o(l.trim()),s(false));},m=p=>{p.key==="Escape"&&s(false);};return jsxRuntime.jsx(ho,{position:e,className:t,style:r,children:jsxRuntime.jsxs("div",{className:"relative",children:[jsxRuntime.jsx(Jt,{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:l,onChange:p=>c(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-muted","focus:outline-none focus:ring-2 focus:ring-action-brand"),autoFocus:true}),jsxRuntime.jsx(_,{type:"submit",variant:"brand",size:"sm",className:"px-3 py-2",children:"Search"})]})})})]})})}var gk={navigation:"bottom-right",layers:"bottom-left",search:"top-left",list:"top-right",custom:"top-right"};function tu(e){return e.position??gk[e.type]}function sx(e,t,r){let o=tu(e),n=e.id??`${e.type}-${t}`;switch(e.type){case "navigation":{let i=e.showResetZoom!==false&&r.showResetButton;return jsxRuntime.jsx(rx,{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($b,{position:o,currentMapType:e.currentMapType,onMapTypeChange:e.onMapTypeChange,layers:e.layers??r.layers,onLayerToggle:e.onLayerToggle,style:e.style,className:e.className},n);case "search":return jsxRuntime.jsx(ix,{position:o,onSearch:e.onSearch,placeholder:e.placeholder,showSearchInput:e.showSearchInput,style:e.style,className:e.className},n);case "list":return jsxRuntime.jsx(ex,{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 ru(e,t){let r=e.reduce((n,a,i)=>{let s=tu(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(sx(a[0].control,a[0].index,t));continue}o.push(jsxRuntime.jsx(qs,{position:n,spacing:"sm",children:a.map(({control:i,index:s})=>sx(i,s,t))},`group-${n}`));}return o}function Xs(){if(typeof process<"u"){if(process.env?.MAPBOX_ACCESS_TOKEN)return process.env.MAPBOX_ACCESS_TOKEN;if(process.env?.NEXT_PUBLIC_MAPBOX_ACCESS_TOKEN)return process.env.NEXT_PUBLIC_MAPBOX_ACCESS_TOKEN}if(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"){let e=({ url: (typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('index.cjs', document.baseURI).href)) });if(e.env?.VITE_MAPBOX_ACCESS_TOKEN)return e.env.VITE_MAPBOX_ACCESS_TOKEN}}var ou={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 nu(e){return e.kind==="vector"}function au(e){return e.kind==="geojson"}function iu(e){return e.kind==="customPins"}function su(e){return e.kind==="raster"}function Ja(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(xk,{spec:o,mapType:t},o.id);case "geojson":return jsxRuntime.jsx(yk,{spec:o,mapType:t},o.id);case "customPins":return jsxRuntime.jsx(vk,{spec:o,mapType:t},o.id);case "raster":return jsxRuntime.jsx(Ck,{spec:o},o.id);case "clusteredVector":return jsxRuntime.jsx(hk,{spec:o,mapType:t},o.id);default:return console.warn("[Layers] Unknown layer kind:",o.kind),null}})})}function xk({spec:e,mapType:t}){let{colorMode:r}=kt(),o=De.useMemo(()=>dx(e.style,e.renderAs,r,t),[e.style,e.renderAs,r,t]),n=De.useMemo(()=>({visibility:e.visible===false?"none":"visible"}),[e.visible]),a={id:e.id,type:cx(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 i?s.url=e.tileset:(s.tiles=[e.tileset],s.minzoom=0,s.maxzoom=22),jsxRuntime.jsx(Lk.Source,{...s,children:jsxRuntime.jsx(Lk.Layer,{...a})})}function hk({spec:e}){let{colorMode:t,isDarkTheme:r}=kt(),o=1.25,n=9,a=3,i=n*1.4,s=.2,l=[0,5],c=De.useMemo(()=>r?{clusters:e.clusterStyle?.color?pr(e.clusterStyle.color):"#000000",shadow:e.clusterStyle?.shadowColor||"rgba(0, 0, 0, 0.5)",point:{fill:e.pointStyle?.color?pr(e.pointStyle.color):"#000000",stroke:e.pointStyle?.borderColor||"#ffffff",shadow:"rgba(0, 0, 0, 0.5)"},text:{onCluster:"#ffffff"},selected:{fill:e.selectedStyle?.color?pr(e.selectedStyle.color):"#444ae1"}}:{clusters:e.clusterStyle?.color?pr(e.clusterStyle.color):"#000000",shadow:e.clusterStyle?.shadowColor||"rgba(0, 0, 0, 0.3)",point:{fill:e.pointStyle?.color?pr(e.pointStyle.color):"#000000",stroke:e.pointStyle?.borderColor||"#ffffff",shadow:"rgba(0, 0, 0, 0.3)"},text:{onCluster:"#ffffff"},selected:{fill:e.selectedStyle?.color?pr(e.selectedStyle.color):"#444ae1"}},[r,t,e.clusterStyle,e.pointStyle,e.selectedStyle]),u=De.useMemo(()=>e.clusterStyle?.sizes?e.clusterStyle.sizes.map(({threshold:b,radius:x})=>({threshold:b,radius:x,color:c.clusters})):[{threshold:30,radius:20,color:c.clusters},{threshold:50,radius:30,color:c.clusters},{threshold:100,radius:40,color:c.clusters}],[e.clusterStyle?.sizes,c.clusters]),d=b=>["step",["get","point_count"],b[0].radius,...b.flatMap(({threshold:x,radius:v})=>[x,v])],m=b=>["step",["get","point_count"],b[0].radius*o,...b.flatMap(({threshold:x,radius:v})=>[x,v*o])],p=e.tileset.startsWith("mapbox://"),g={id:`${e.id}-source`,type:"vector"};p?g.url=e.tileset:(g.tiles=[e.tileset],g.minzoom=0,g.maxzoom=22);let f=De.useMemo(()=>{let b=e.pointStyle?.radius??n,x=e.pointStyle?.borderWidth??a,v=e.selectedStyle?.radius??n*1.5,y=C=>{let S={...C};return e.minZoom!==void 0&&(S.minzoom=e.minZoom),e.maxZoom!==void 0&&(S.maxzoom=e.maxZoom),S};return [y({id:`${e.id}-cluster-shadows`,type:"circle","source-layer":e.sourceLayer,filter:["==",["get","cluster"],true],paint:{"circle-radius":m(u),"circle-color":c.shadow,"circle-blur":.5,"circle-translate":[0,8]}}),y({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":c.point.shadow,"circle-blur":s,"circle-translate":l}}),y({id:`${e.id}-clusters`,type:"circle","source-layer":e.sourceLayer,filter:["==",["get","cluster"],true],paint:{"circle-radius":d(u),"circle-color":["step",["get","point_count"],u[0].color,...u.flatMap(({threshold:C,color:S})=>[C,S])]}}),y({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":c.text.onCluster}}),y({id:`${e.id}-points`,type:"circle","source-layer":e.sourceLayer,filter:["all",["!=",["get","cluster"],true],["!=",["get","id"],e.selectedId||"selected"]],paint:{"circle-radius":b,"circle-color":c.point.fill,"circle-stroke-width":x,"circle-stroke-color":c.point.stroke}}),y({id:`${e.id}-selected-point`,type:"circle","source-layer":e.sourceLayer,filter:["==",["get","id"],e.selectedId||"selected"],paint:{"circle-radius":v,"circle-color":c.selected.fill,"circle-stroke-width":x,"circle-stroke-color":"#ffffff"}})]},[e.id,e.sourceLayer,e.selectedId,e.minZoom,e.maxZoom,e.pointStyle,e.selectedStyle,u,c,n,a,i,s]);return jsxRuntime.jsx(Lk.Source,{...g,children:f.map(b=>jsxRuntime.jsx(Lk.Layer,{...b},b.id))})}function yk({spec:e,mapType:t}){let{colorMode:r}=kt(),o=De.useMemo(()=>typeof e.data=="string"?null:e.data,[e.data]),n=De.useMemo(()=>dx(e.style,e.renderAs,r,t,o),[e.style,e.renderAs,r,t,o]),a=De.useMemo(()=>({visibility:e.visible===false?"none":"visible"}),[e.visible]),i=De.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 l={id:e.id,type:cx(e.renderAs),paint:n,layout:a};return e.minZoom!==void 0&&(l.minzoom=e.minZoom),e.maxZoom!==void 0&&(l.maxzoom=e.maxZoom),jsxRuntime.jsx(Lk.Source,{...s,children:jsxRuntime.jsx(Lk.Layer,{...l})})}function vk({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(Lk.Marker,{longitude:a,latitude:i,anchor:"bottom",children:jsxRuntime.jsx(r,{...s})},`${e.id}-${n}`)})})}function Ck({spec:e}){let t=De.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(Lk.Source,{...r,children:jsxRuntime.jsx(Lk.Layer,{...o})})}var yo="#666";function cx(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 dx(e,t,r,o,n){if(!e)return {};let a={};if(e.color){let i=pr(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"]=lx(e.width)),e.radius&&t==="circle"&&(a["circle-radius"]=lx(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?pr(e.borderColor,r,n):pr(e.color||"#000",r,n)),t==="circle"&&e.borderWidth){a["circle-stroke-width"]=e.borderWidth;let i=e.borderColor?pr(e.borderColor,r,n):ct(`map-${o}-border`,"#ffffff");a["circle-stroke-color"]=i;}return a}function Sk(e,t){let r=e.by,o=e.mapping,n=["match",["get",r]];for(let[a,i]of Object.entries(o))n.push(a),n.push(pr(i));return n.push(yo),n}function Nk(e,t){let r=Tp(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=Pp(r),n=["match",["get",e]];for(let[a,i]of Object.entries(o))n.push(a),n.push(i);return n.push(yo),n}function wk(e,t="viridis",r,o){let n=$l(r,e),a;if(o&&o!=="auto")a=o;else {if(a=_l(n),n.length===0)return console.warn(`[Layers] No numeric values found for property "${e}"`),yo;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((l,c)=>{let u=c/(i.length-1),d=a.min+u*(a.max-a.min);s.push(d,l);}),s}function kk(e,t="redYellowBlue",r,o,n){let a=$l(r,e),i=Rp(a,o),s;if(n&&n!=="auto")s=n;else {if(s=_l(a),a.length===0)return console.warn(`[Layers] No numeric values found for property "${e}"`),yo;console.log(`[Layers] Auto-calculated diverging scale for "${e}": ${s.min} \u2190 ${i} \u2192 ${s.max}`);}let l=tc(t),c=4,u=["interpolate",["linear"],["get",e]];for(let d=0;d<=c;d++){let m=d/c,p=s.min+m*(i-s.min);u.push(p,l[d]);}for(let d=c+1;d<l.length;d++){let m=(d-c)/(l.length-1-c),p=i+m*(s.max-i);u.push(p,l[d]);}return u}function pr(e,t,r){if(typeof e=="string")return e;if("token"in e)return ct(e.token)||e.token;if("hex"in e)return e.hex;if("by"in e){if("palette"in e){if(e.palette==="categorical")return r?Nk(e.by,r):(console.warn("[Layers] Categorical auto-assignment requires GeoJSON data (not URL-based data)"),yo);if(e.palette==="sequential")return r?wk(e.by,e.scheme,r,e.scale):(console.warn("[Layers] Sequential palette requires GeoJSON data (not URL-based data)"),yo);if(e.palette==="diverging")return r?kk(e.by,e.scheme,r,e.center,e.scale):(console.warn("[Layers] Diverging palette requires GeoJSON data (not URL-based data)"),yo)}if("mapping"in e)return Sk(e)}return yo}function lx(e){return typeof e=="number"?e:"byZoom"in e?["interpolate",["linear"],["zoom"],...e.byZoom.flatMap(([t,r])=>[t,r])]:e}var $s=null;function _s(){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():($s||($s=import('mapbox-gl/dist/mapbox-gl.css').then(()=>{}).catch(t=>{console.error("Failed to load Mapbox CSS",t),$s=null;})),$s)}function el(){return jsxRuntime.jsx("div",{className:"absolute inset-0 z-50 bg-background-surface/90 backdrop-blur-sm","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:`
106
+ `,"aria-label":"Open search",children:[jsxRuntime.jsx(F,{name:"MagnifyingGlass",size:18,className:"flex-shrink-0 transition-colors text-text-muted"}),jsxRuntime.jsx("span",{className:`flex-1 text-left text-sm transition-colors ${o==="elevated"?"text-text-muted font-normal":"text-text-placeholder"}`,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-muted":"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-muted":"bg-background-muted border border-border-muted"}`,children:"K"})]})]})}var xk={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"},hk={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"}},yk={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"},vk={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"},Ck={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"},Sk={start:"items-start",center:"items-center",end:"items-end",stretch:"items-stretch",baseline:"items-baseline"},wk={start:"justify-start",center:"justify-center",end:"justify-end",between:"justify-between",around:"justify-around",evenly:"justify-evenly"},Nk={row:"grid-flow-row",col:"grid-flow-col",dense:"grid-flow-dense","row-dense":"grid-flow-row-dense","col-dense":"grid-flow-col-dense"},Tk={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"},kk={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 Mx(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 Mu({cols:e=1,gap:t="md",gapX:r,gapY:o,align:n="stretch",justify:a="start",flow:i="row",autoFit:s,autoFill:l,className:c,children:d}){let u=tailwindMerge.twMerge("grid",s||l?"":Mx(e,xk,hk),!r&&!o&&yk[t],r&&vk[r],o&&Ck[o],Sk[n],wk[a],Nk[i],c),m={};return s?m.gridTemplateColumns=`repeat(auto-fit, minmax(${s}, 1fr))`:l&&(m.gridTemplateColumns=`repeat(auto-fill, minmax(${l}, 1fr))`),jsxRuntime.jsx("div",{className:u,style:m,children:d})}function Lx({span:e,className:t,children:r}){let o=tailwindMerge.twMerge(Mx(e,Tk,kk),t);return jsxRuntime.jsx("div",{className:o,children:r})}Mu.Item=Lx;function Pk(e,t){return Ee__namespace.default.isValidElement(e)?e:Cr({value:e,formatter:t,emptyClassName:"text-text-muted",emptyText:"\u2014"})}function Rk(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 Dk={neutral:"text-text-body",success:"text-feedback-success",warning:"text-feedback-warning",error:"text-feedback-error",info:"text-feedback-info"},Ek=24,Ak=20;function Mk({item:e,dense:t,valueAlign:r}){let o=Rk(e),n=o?Dk[o]:"",a=e.stackOnMobile,i=typeof e.value=="string"&&e.value.length>Ek&&!e.formatter&&!Ee__namespace.default.isValidElement(e.value),s=Pk(e.value,e.formatter),l=i?Rn(e.value,Ak):null,c=typeof e.copyable=="function"?e.copyable(e.value):String(e.value),d=e.piiType&&e.piiEntity?{"data-pii-type":e.piiType,"data-pii-entity":e.piiEntity}:{},u=Object.keys(d).length>0,m=i?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(Et,{content:u?jsxRuntime.jsx("span",{...d,children:String(e.value)}):String(e.value),children:jsxRuntime.jsx("span",{className:tailwindMerge.twMerge("md:hidden",e.href?"hover:underline cursor-pointer":""),...d,children:l})}),jsxRuntime.jsx("span",{className:tailwindMerge.twMerge("hidden md:inline",e.href?"hover:underline cursor-pointer":""),...d,children:s})]}):jsxRuntime.jsx("span",{className:e.href?"hover:underline cursor-pointer":"",...d,children:s}),p=e.copyable?jsxRuntime.jsx(po,{value:c,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",x=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-muted mt-0.5",r==="start"?"text-left":"text-right"),children:e.meta})]}),v=jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsxs("dt",{className:tailwindMerge.twMerge(t?"text-xs":"text-sm","text-text-caption 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(F,{name:"Question",size:10,className:"text-text-muted","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:x}):x]});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:v})}function gl({items:e,layout:t="one-column",dense:r=false,valueAlign:o="end",showDividers:n=false,skeleton:a=false,empty:i=false,error:s,className:l}){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",l),children:Array.from({length:e.length||4}).map((c,d)=>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"})]},d))}):s?jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("text-sm text-feedback-error",l),children:s}):i||!e.length?jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("text-sm text-text-muted",l),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",l),children:e.map((c,d)=>jsxRuntime.jsxs(Ee__namespace.default.Fragment,{children:[n&&d>0&&t==="one-column"&&jsxRuntime.jsx("div",{className:"col-span-full border-t border-border-default -mt-1 mb-1"}),jsxRuntime.jsx(Mk,{item:c,dense:r,valueAlign:o})]},c.id))})}function Bx({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-heading 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(gl,{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 je={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 Iu=Ee__namespace.createContext(null);function zx(){let e=Ee__namespace.useContext(Iu);if(!e)throw new Error("Hierarchy components must be used within HierarchyExplorer");return e}function Ox({node:e,renderNode:t}){let{selectedId:r,selectNode:o,navigateToNode:n,variant:a,size:i,showBullets:s,rootNodeId:l,stickyRootNode:c,navigationStack:d,setRootNodeSticky:u,useSplitLayout:m}=zx(),p=Ee__namespace.useRef(null),g=Ee__namespace.useRef(null),f=r===e.id,b=e.disabled||false,x=!!(e.children&&e.children.length>0),v=!!(e.metadata&&Object.keys(e.metadata).length>0),y=x||v,C=l!==void 0&&e.id!==void 0&&l===e.id&&d.length===0;Ee__namespace.useLayoutEffect(()=>{C&&c&&p.current&&g.current===null&&requestAnimationFrame(()=>{p.current&&(g.current=p.current.offsetTop);});},[C,c]),Ee__namespace.useEffect(()=>{if(!C||!c||!p.current)return;let L=p.current.parentElement;for(;L;){let S=window.getComputedStyle(L).overflowY;if(S==="auto"||S==="scroll")break;L=L.parentElement;}if(!L)return;let M=()=>{if(!p.current||g.current===null)return;let S=L.getBoundingClientRect(),w=L.scrollTop,G=S.height,K=p.current.offsetHeight,j=g.current-w,Z=j+K,R=j<0,V=Z>G;R?u("top",e):V?u("bottom",e):u(null,null);};return L.addEventListener("scroll",M),M(),()=>{L.removeEventListener("scroll",M);}},[C,c,e,u]);let N=()=>{b||(m?o(e):y?n(e):o(e));},P=L=>{b||(L.key==="Enter"||L.key===" ")&&(L.preventDefault(),N());},T={isSelected:f,isDisabled:b,hasChildren:x,hasMetadata:v,level:0},B=tailwindMerge.twMerge("relative cursor-pointer group",b&&"opacity-50 cursor-not-allowed"),A=tailwindMerge.twMerge("absolute inset-0 transition-colors",C&&!f&&!b&&"group-hover:bg-background-hover",C&&f&&!b&&a==="subtle"&&"bg-brand-primary/10 group-hover:bg-brand-primary/15",C&&f&&b&&a==="subtle"&&"bg-brand-primary/10",C&&f&&!b&&a==="solid"&&"bg-brand-primary group-hover:bg-brand-primary/90",C&&f&&b&&a==="solid"&&"bg-brand-primary",!C&&a==="subtle"&&!f&&!b&&"group-hover:bg-background-hover",!C&&a==="subtle"&&f&&!b&&"bg-brand-primary/10 group-hover:bg-brand-primary/15",!C&&a==="subtle"&&f&&b&&"bg-brand-primary/10",!C&&a==="solid"&&!f&&!b&&"group-hover:bg-background-hover",!C&&a==="solid"&&f&&!b&&"bg-brand-primary group-hover:bg-brand-primary/90",!C&&a==="solid"&&f&&b&&"bg-brand-primary"),I=tailwindMerge.twMerge("relative flex items-center gap-2 text-text-body hover:text-text-heading transition-colors",je[i].node,C&&!f&&"font-semibold",a==="subtle"&&f&&"text-brand-primary",a==="solid"&&f&&"text-white");return jsxRuntime.jsxs("div",{ref:p,className:B,onClick:N,onKeyDown:P,role:"treeitem","aria-selected":f,"aria-disabled":b,tabIndex:0,"data-node-id":e.id,children:[jsxRuntime.jsx("div",{className:A}),jsxRuntime.jsxs("div",{className:I,children:[s&&jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("relative rounded-full flex items-center justify-center flex-shrink-0 z-20",C&&"bg-brand-primary border-brand-primary",!C&&"bg-background-muted border border-border-default"),style:{width:je[i].bullet,height:je[i].bullet},children:e.icon&&jsxRuntime.jsx(F,{name:e.icon,size:je[i].icon,weight:C?"fill":"regular",className:C?"text-white":"text-text-body"})}),jsxRuntime.jsx("div",{className:"flex-1 min-w-0",children:t?t(e,T):jsxRuntime.jsx("span",{className:"truncate",children:e.name})}),y&&!m&&jsxRuntime.jsx("div",{className:"flex-shrink-0",children:jsxRuntime.jsx(F,{name:"CaretRight",size:je[i].icon,className:"text-text-muted"})})]})]})}function Wx({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-caption z-10 pointer-events-none",style:{left:`${je[n].spacing.x+je[n].bullet/2}px`,top:`${je[n].spacing.y+je[n].bullet/2}px`,bottom:`${je[n].spacing.y+je[n].bullet/2}px`},"aria-hidden":"true"}),e.map(i=>jsxRuntime.jsx(Ox,{node:i,renderNode:a},i.id))]})}function Gx(){let[e,t]=Ee.useState(()=>typeof window>"u"?false:window.matchMedia("(prefers-reduced-motion: reduce)").matches);return Ee.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}function ri({children:e,mode:t="sync",presenceKey:r}){let o=r!==void 0&&Ee__namespace.default.isValidElement(e)?Ee__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})}var Ok={instant:0,fast:150,normal:250,slow:350,slower:500},Fu={xs:"4px",sm:"8px",md:"16px"};function Hk(e){return e?typeof e=="string"&&e in Fu?Fu[e]:typeof e=="number"?`${e}px`:e:Fu.sm}function oi({children:e,direction:t,distance:r="sm",duration:o="normal",delay:n=0,className:a}){let i=Gx(),s=typeof o=="number"?o:Ok[o],l=Hk(r),c=p=>{switch(t){case "left":return {x:`-${p}`};case "right":return {x:p};case "up":return {y:`-${p}`};case "down":return {y:p}}},d=i?{opacity:0}:{opacity:0,...c(l)},u={opacity:1,x:0,y:0},m=i?{opacity:0}:{opacity:0,...c(l)};return jsxRuntime.jsx(framerMotion.motion.div,{className:a,initial:d,animate:u,exit:m,transition:{duration:i?0:s/1e3,delay:i?0:n/1e3,ease:[.4,0,.2,1]},children:e})}function hl({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",je[r].node),children:[jsxRuntime.jsx(F,{name:"CaretLeft",size:je[r].icon,className:"text-text-muted group-hover:text-text-heading transition-colors"}),jsxRuntime.jsx("span",{className:"font-medium text-text-heading group-hover:text-brand-primary transition-colors",children:o})]})})}function yl({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",je[n].node,i?o==="subtle"?"text-brand-primary":"bg-brand-primary text-white":"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-brand-primary/10"}),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-brand-primary border-brand-primary",style:{width:je[n].bullet,height:je[n].bullet},children:e.icon&&jsxRuntime.jsx(F,{name:e.icon,size:je[n].icon,weight:"fill",className:"text-white"})}),jsxRuntime.jsx("div",{className:"flex-1 min-w-0",children:jsxRuntime.jsx("span",{className:"truncate",children:e.name})})]})]})}function Jx({currentItems:e,currentParent:t,navigationStack:r,selectedId:o,variant:n,size:a,showBullets:i,slideDirection:s,viewKey:l,hasHeight:c,rootNodeStickyState:d,renderNodeList:u,renderDetailContent:m,onNavigateBack:p}){return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[r.length===0&&d.position&&d.node&&jsxRuntime.jsx(yl,{node:d.node,position:d.position,selectedId:o,variant:n,size:a,showBullets:i}),r.length>0&&jsxRuntime.jsx(hl,{navigationStack:r,onNavigateBack:p,size:a}),jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("relative",c&&"overflow-auto h-full"),children:jsxRuntime.jsx(ri,{mode:"wait",presenceKey:l,children:r.length===0?u(e,true):jsxRuntime.jsx(oi,{direction:s,distance:"100%",duration:"normal",children:m(t)})})})]})}function zu(e,t){for(let r of e){if(r.id===t)return r;if(r.children&&r.children.length>0){let o=zu(r.children,t);if(o)return o}}return null}function vl(e){if(e!==void 0)return typeof e=="number"?`${e}px`:e}function jx(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],l=`${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 ${l} is missing an "id" field. Node name: "${s.name||"(unnamed)"}"`),s.children&&o(s.children,`${l}.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 Zx({data:e,currentItems:t,navigationStack:r,selectedId:o,variant:n,size:a,showBullets:i,rootNodeStickyState:s,renderNodeList:l,renderDetailContent:c,renderEmptyState:d,onNavigateBack:u}){let m=o?zu(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(yl,{node:s.node,position:s.position,selectedId:o,variant:n,size:a,showBullets:i}),r.length>0&&jsxRuntime.jsx(hl,{navigationStack:r,onNavigateBack:u,size:a}),jsxRuntime.jsx("div",{className:"flex-1 overflow-auto",children:l(t,r.length===0)})]}),jsxRuntime.jsx("div",{className:"flex-1 min-w-0 overflow-auto bg-background-body",children:jsxRuntime.jsx(ri,{mode:"wait",presenceKey:m?.id||"empty",children:m?jsxRuntime.jsx(oi,{direction:"left",duration:"fast",children:c(m)}):d?d():jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("text-text-muted text-center",je[a].node,"py-8"),children:"Select an item to view details"})})})]})}function Xx({data:e,renderNode:t,onNodeSelect:r,onNavigate:o,selectedId:n,rootNodeId:a,stickyRootNode:i=true,height:s,minHeight:l,maxHeight:c,variant:d="subtle",size:u="md",showBullets:m=true,layout:p="auto",splitBreakpoint:g=768,renderEmptyState:f,renderDetailView:b,className:x,"aria-label":v="Hierarchy explorer"}){let[y,C]=Ee__namespace.useState(null),[N,P]=Ee__namespace.useState([]),[T,B]=Ee__namespace.useState("left"),[A,I]=Ee__namespace.useState({position:null,node:null}),{ref:L,width:M}=kn(),S=Ee__namespace.useMemo(()=>p==="split"?true:p==="single"?false:M>=g,[p,M,g]),w=n!==void 0?n:y;Ee__namespace.useEffect(()=>{jx(e,a);},[e,a]);let G=N.length>0?N[N.length-1]:null,K=G?G.children||[]:e,z=Ee__namespace.useCallback(H=>{B("left"),P(q=>[...q,H]),o?.(H,[...N,H]);},[N,o]),j=Ee__namespace.useCallback(()=>{B("right"),P(H=>{let q=H.slice(0,-1);return o?.(q.length>0?q[q.length-1]:null,q),q});},[o]),Z=Ee__namespace.useCallback(H=>{n===void 0&&C(H.id),r?.(H,[...N,H]);},[n,N,r]),R=Ee__namespace.useCallback((H,q)=>{I({position:H,node:q});},[]),V=Ee__namespace.useMemo(()=>({selectedId:w,selectNode:Z,navigateToNode:z,navigateBack:j,rootNodeId:a,stickyRootNode:i,variant:d,size:u,showBullets:m,onNodeSelect:r,onNavigate:o,navigationStack:N,setRootNodeSticky:R,useSplitLayout:S}),[w,Z,z,j,a,i,d,u,m,r,o,N,R,S]),D=Ee__namespace.useRef(null);Ee__namespace.useEffect(()=>{if(!a||!D.current||N.length>0||S)return;let H=D.current,q=setTimeout(()=>{let re=H.querySelector(`[data-node-id="${a}"]`);re&&re.scrollIntoView({behavior:"auto",block:"center",inline:"nearest"});},100);return ()=>clearTimeout(q)},[a,N.length,S]);let k={height:vl(s),minHeight:vl(l),maxHeight:vl(c)},Y=s!==void 0||c!==void 0,E=G?G.id:"root",h=Ee__namespace.useCallback((H,q=false)=>jsxRuntime.jsx(Wx,{items:H,showConnector:q,scrollContainerRef:q?D:null,showBullets:m,size:u,renderNode:t}),[m,u,t]),U=Ee__namespace.useCallback(H=>H?b?b(H,h):jsxRuntime.jsx(Bx,{node:H,renderNodeList:h}):null,[b,h]);return jsxRuntime.jsx(Iu.Provider,{value:V,children:jsxRuntime.jsx("div",{ref:L,className:tailwindMerge.twMerge("select-none bg-background-surface rounded-lg border border-border-default relative",Y&&"overflow-hidden",!Y&&"h-full flex flex-col",S&&!Y&&"flex-row",S&&Y&&"flex",x),style:k,role:"tree","aria-label":v,children:S?jsxRuntime.jsx(Zx,{data:e,currentItems:K,navigationStack:N,selectedId:w,variant:d,size:u,showBullets:m,rootNodeStickyState:A,renderNodeList:h,renderDetailContent:U,renderEmptyState:f,onNavigateBack:j}):jsxRuntime.jsx(Jx,{currentItems:K,currentParent:G,navigationStack:N,selectedId:w,variant:d,size:u,showBullets:m,slideDirection:T,viewKey:E,hasHeight:Y,rootNodeStickyState:A,renderNodeList:h,renderDetailContent:U,onNavigateBack:j})})})}function tP({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 Qx=({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}),$x=({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)=>tP({...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]});$x.displayName="HoverCardContent";var rP=Object.assign(Qx,{Root:Qx,Content:$x});function nP(e,t){return Cr({value:e,formatter:t,emptyClassName:"text-text-muted",emptyText:"\u2014"})}function aP(e,t="upIsGood"){if(e===0)return "text-text-muted";let r=e>0;return t==="upIsGood"?r?"text-feedback-success":"text-feedback-error":r?"text-feedback-error":"text-feedback-success"}function iP({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),c=Math.max(...i)-s,d=p=>c===0?20/2:18-(p-s)/c*16,u=60/Math.max(e.length-1,1),m=e.map((p,g)=>{let f=2+g*u,b=d(typeof p.y=="number"?p.y:0);return `${g===0?"M":"L"} ${f} ${b}`}).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 _x({label:e,value:t,formatter:r,delta:o,deltaPeriodLabel:n,deltaIntent:a="upIsGood",trend:i,status:s,helpText:l,size:c="md",orientation:d="vertical",isLoading:u,empty:m,error:p,onClick:g,className:f,renderValue:b,renderDelta:x,renderTrend:v}){let C={sm:{label:"text-xs",value:"text-base",delta:"text-xs",gap:"gap-1"},md:{label:"text-sm",value:"text-xl",delta:"text-sm",gap:"gap-2"},lg:{label:"text-base",value:"text-2xl",delta:"text-base",gap:"gap-3"}}[c],N=u?jsxRuntime.jsx(J,{className:"h-7 w-20"}):m?jsxRuntime.jsx("span",{className:"text-text-muted",children:"\u2014"}):p?jsxRuntime.jsx("span",{className:"text-feedback-error text-sm",children:typeof p=="string"?p:"Error"}):b?b(t):nP(t,r),P=x?x(o):o!==void 0&&!u&&!m&&!p?jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge(C.delta,aP(o,a),"flex items-center gap-1"),children:[o>0&&jsxRuntime.jsx(F,{name:"ArrowUp",size:12}),o<0&&jsxRuntime.jsx(F,{name:"ArrowDown",size:12}),o===0&&jsxRuntime.jsx(F,{name:"Minus",size:12}),jsxRuntime.jsxs("span",{children:[o>0?"+":"",Math.abs(o).toFixed(1),"%"]}),n&&jsxRuntime.jsxs("span",{className:"text-text-muted",children:["\xB7 ",n]})]}):u&&o!==void 0?jsxRuntime.jsx(J,{className:"h-4 w-24"}):null,T=v?v(i):i&&i.length>0&&!u&&!p?jsxRuntime.jsx(iP,{points:i,ariaLabel:`${e} trend`,className:m?"opacity-30":""}):u&&i!==void 0?jsxRuntime.jsx(J,{className:"h-5 w-16"}):null;return jsxRuntime.jsxs("section",{className:tailwindMerge.twMerge("flex min-w-0",d==="horizontal"?`items-center ${C.gap}`:`flex-col ${C.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(C.label,"font-medium text-text-caption truncate"),children:u?jsxRuntime.jsx(J,{className:"h-4 w-24"}):e}),l&&!u&&jsxRuntime.jsx(F,{name:"Question",size:12,className:"text-text-muted cursor-help","aria-label":"Help"})]}),jsxRuntime.jsxs("div",{className:"flex items-baseline gap-2",children:[jsxRuntime.jsx("output",{className:tailwindMerge.twMerge(C.value,"font-semibold",p?"text-feedback-error":"text-text-heading"),"aria-label":`Value: ${N}`,children:N}),s&&!u&&!p&&jsxRuntime.jsx(Ye,{variant:s.tone||"neutral",size:"sm",children:s.value})]}),(P||T)&&jsxRuntime.jsxs("div",{className:"flex items-center gap-3",children:[P,T]})]})}var eh={xs:"gap-2",sm:"gap-3",md:"gap-4",lg:"gap-6",xl:"gap-8"},th={start:"items-start",center:"items-center",stretch:"items-stretch"};function rh(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 Hu({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:l="140px",className:c}){let d=i?Ee__namespace.default.Children.map(e,p=>Ee__namespace.default.isValidElement(p)&&p.type&&typeof p.type!="string"&&"displayName"in p.type?Ee__namespace.default.cloneElement(p,{isLoading:true}):p):e,u=s?Ee__namespace.default.Children.map(d,p=>jsxRuntime.jsx("div",{className:"shrink-0",style:{minWidth:l},children:p})):d,m=s?tailwindMerge.twMerge("flex overflow-x-auto pb-2 -mb-2",eh[r],"sm:grid sm:overflow-visible sm:pb-0 sm:-mb-0",rh({...typeof t=="object"?t:{base:t},base:void 0}),th[o],n&&"sm:auto-rows-fr"):tailwindMerge.twMerge("grid",rh(t),eh[r],th[o],n&&"auto-rows-fr","w-full");return jsxRuntime.jsxs("section",{className:tailwindMerge.twMerge("w-full",c),"aria-label":"Key metrics",children:[a&&jsxRuntime.jsx("div",{className:"mb-4",children:a}),jsxRuntime.jsx("div",{className:m,children:s?u:d})]})}Hu.displayName="KpiGroup";function ah({items:e,renderItem:t,selectedId:r,onSelect:o,onHoverChange:n,isLoading:a=false,loadingState:i,error:s=null,renderLoadingSkeleton:l,loadingSkeletonCount:c=5,emptyMessage:d="No results found.",variant:u="relaxed",showDividers:m=true,onLoadMore:p,hasMore:g=false,enableVirtualization:f,estimatedItemSize:b=60,loadingIndicator:x,"aria-label":v,className:y="",style:C}){let[N,P]=Ee.useState(null),T=Ee.useRef(null),B=Ee.useRef(new Map),{scrollRef:A,loadMoreRef:I,virtualizer:L,virtualItems:M,isLoadingMore:S,computedLoadingState:w}=ro({items:e,onLoadMore:p,hasMore:g,isLoading:a,loadingState:i,enableVirtualization:f,estimatedItemSize:b,overscan:5}),G=A??T,K=Ee.useCallback((h,U)=>{o?.(h,U);},[o]),z=Ee.useCallback((h,U)=>{P(h),n?.(h,U);},[n]),j=Ee.useCallback((h,U)=>{let H=h?.id;return typeof H=="string"&&H?H:`item-${U}`},[]),Z=Ee.useCallback(h=>{if(!G.current||e.length===0)return;let U=document.activeElement,H=e.findIndex((X,te)=>{let Ne=j(X,te),ae=B.current.get(Ne);return ae&&(ae===U||ae.contains(U))}),q=H;switch(h.key){case "ArrowDown":h.preventDefault(),q=H===-1?0:Math.min(H+1,e.length-1);break;case "ArrowUp":h.preventDefault(),q=H===-1?0:Math.max(H-1,0);break;case "Home":h.preventDefault(),q=0;break;case "End":h.preventDefault(),q=e.length-1;break;default:return}let re=j(e[q],q);B.current.get(re)?.focus();},[e,j,G]),R=["flex flex-col","bg-background-surface","focus:outline-none focus:ring-2 focus:ring-border-focus focus:ring-offset-2"],V={dense:"gap-0",relaxed:"gap-0"},D=m?"divide-y divide-border-muted":"",k=[...R,V[u],D,y].filter(Boolean).join(" ");if(w==="loading"||a&&e.length===0){let h=l?jsxRuntime.jsx(jsxRuntime.Fragment,{children:Array.from({length:c}).map((U,H)=>jsxRuntime.jsx("div",{children:l()},`skeleton-${H}`))}):jsxRuntime.jsx(Em,{count:c,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:G,className:k,style:C,role:"listbox","aria-label":v,"aria-busy":"true","aria-live":"polite",children:h})}if(s)return jsxRuntime.jsx("div",{ref:G,className:k,style:C,role:"listbox","aria-label":v,"aria-live":"polite",children:jsxRuntime.jsx("div",{className:"p-4 text-center text-action-destructive",children:s})});if(e.length===0)return jsxRuntime.jsx("div",{ref:G,className:k,style:C,role:"listbox","aria-label":v,"aria-live":"polite",children:jsxRuntime.jsx("div",{className:"p-4 text-center text-text-muted",children:d})});let E=L?M?.map(h=>({virtualItem:h,item:e[h.index],index:h.index}))||[]:e.map((h,U)=>({item:h,index:U,virtualItem:null}));return jsxRuntime.jsxs("div",{ref:G,className:k,style:{...C,...p&&{overflow:"auto",height:C?.height||"600px"}},role:"listbox","aria-label":v,"aria-live":"polite",onKeyDown:Z,tabIndex:0,children:[L&&jsxRuntime.jsxs("div",{style:{height:`${L.getTotalSize()}px`,width:"100%",position:"relative"},children:[E.map(({virtualItem:h,item:U,index:H})=>{if(!h)return null;let q=j(U,H),re=r===q,ue=N===q,X={id:q,role:"option","aria-selected":re,"aria-current":re?"page":void 0,tabIndex:re||r==null&&H===0?0:-1,onClick:te=>K(te,U),onMouseEnter:te=>z(te,U),onMouseLeave:te=>z(null),onFocus:te=>z(te,U),onBlur:te=>z(null),ref:te=>{te?B.current.set(q,te):B.current.delete(q);}};return jsxRuntime.jsx("div",{"data-index":h.index,ref:L.measureElement,style:{position:"absolute",top:0,left:0,width:"100%",transform:`translateY(${h.start}px)`},children:t({item:U,index:H,isSelected:re,isHovered:ue,rowProps:X})},q)}),p&&g&&jsxRuntime.jsx("div",{ref:I,style:{position:"absolute",top:`${L.getTotalSize()}px`,left:0,width:"100%",height:1,pointerEvents:"none"}}),S&&jsxRuntime.jsx("div",{style:{position:"absolute",top:`${L.getTotalSize()}px`,left:0,width:"100%"},children:x||jsxRuntime.jsx($t,{state:"loading-more"})})]}),!L&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[E.map(({item:h,index:U})=>{let H=j(h,U),q=r===H,re=N===H,ue={id:H,role:"option","aria-selected":q,"aria-current":q?"page":void 0,tabIndex:q||r==null&&U===0?0:-1,onClick:X=>K(X,h),onMouseEnter:X=>z(X,h),onMouseLeave:X=>z(null),onFocus:X=>z(X,h),onBlur:X=>z(null),ref:X=>{X?B.current.set(H,X):B.current.delete(H);}};return jsxRuntime.jsx("div",{children:t({item:h,index:U,isSelected:q,isHovered:re,rowProps:ue})},H)}),p&&g&&jsxRuntime.jsx("div",{ref:I,style:{height:1}}),S&&(x||jsxRuntime.jsx($t,{state:"loading-more"}))]})]})}function sh({id:e,title:t,subtitle:r,meta:o,leading:n,trailing:a,isSelected:i=false,isHovered:s=false,disabled:l=false,href:c,size:d="md",onClick:u,onMouseEnter:m,onMouseLeave:p,className:g="",style:f,piiTitleType:b,piiSubtitleType:x,piiEntity:v}){let y=()=>{!l&&u&&u(e);},C=()=>{!l&&m&&m(e);},N=()=>{!l&&p&&p(e);},T={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"}}[d],B=["flex items-center w-full text-left transition-all duration-200 ease-in-out",T.container,"border-l-2 border-l-transparent","rounded-sm",ze()],A=[s&&!i&&"bg-background-hover",i&&"bg-action-default/5 border-l-action-default shadow-sm",l&&"opacity-50 cursor-not-allowed",!l&&!i&&"hover:bg-background-hover"],I=[...B,...A,g].filter(Boolean).join(" "),L=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-body font-medium truncate ${T.title}`,title:typeof t=="string"?t:void 0,"data-pii-type":b&&v?b:void 0,"data-pii-entity":b&&v?v:void 0,children:t}),r&&jsxRuntime.jsx("div",{className:`text-text-caption truncate ${T.subtitle} ${T.subtitleSpacing}`,title:typeof r=="string"?r:void 0,"data-pii-type":x&&v?x:void 0,"data-pii-entity":x&&v?v:void 0,children:r}),o&&jsxRuntime.jsx("div",{className:`text-text-muted ${T.meta} ${T.metaSpacing}`,children:o})]})})}),a&&jsxRuntime.jsx("div",{className:"flex-shrink-0",children:a})]});return c?jsxRuntime.jsx("a",{href:c,className:I,style:f,onMouseEnter:C,onMouseLeave:N,"aria-selected":i,"aria-current":i?"page":void 0,tabIndex:l?-1:0,children:L}):jsxRuntime.jsx("button",{type:"button",className:I,style:f,onClick:y,onMouseEnter:C,onMouseLeave:N,disabled:l,"aria-selected":i,tabIndex:l?-1:0,children:L})}function lh({header:e,children:t,footer:r,width:o="md",tone:n="neutral",elevation:a="sm",showDivider:i=true,"aria-label":s,"aria-labelledby":l,className:c="",style:d}){let u={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",u[o],m[n],p[a],i&&"border-r border-border-muted",c);return jsxRuntime.jsxs("div",{className:g,style:d,role:"complementary","aria-label":s,"aria-labelledby":l,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})]})}var Gu=[{type:"navigation",position:"bottom-right",showCompass:true,showGeolocate:true,showResetZoom:true}];var ch="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/DpJK3021me9RnU7KiOhktAh9zMWaE3zVUMSWgdSAIHiRxJxQU5CmVAWPOQAMaAxrOIH1++hYtIYb92sY+o+cQT8FpBgEo/NRlaWhgVpCxOPXk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ieD165lH9Fosk8DI5sufSSLSZBQSF3maHFuDcVGsLHjqrgKZLUX5JqjGehdg3ULYhq7fAkpy5voaGxxtFgmygtNBJMSfalN4Ghq0DVGhNw+TbZUJBvl6KdlImJXLsphrcJtyi/rBx7bNiPF3drqCfiaI7S/0yAfzPgdNJKqQ+lwh1XfSmYClPT+R2b/03chQhh/fQH7Dav+EOO2oojEn8WdyuYzZbw6+e/WpX6eGYK0xR3BJhumCL/0lYS1EWShiFKXp4HOjIdwcvzNzjuNg4uobmh3lmZNljg+RHIokP7iJ+//S9/0JF4UWgALQSUifcPn+AvCxKcp8u7vR5XAiSC3WYDByQWZ1myzFUtOgbu577+f5ZPq/B5Pf+nAAAAAElFTkSuQmCC";function fh(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 mP="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 gh(e){return tailwindMerge.twMerge(mP,e)}function Po({position:e="top-right",className:t,style:r,children:o}){return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge(fh(e),t),style:r,children:o})}function Qt({icon:e,iconSize:t=24,onPress:r,isDisabled:o=false,className:n,iconClassName:a="text-text-primary",variant:i="secondary",isActive:s=false,ariaLabel:l,iconWeight:c="regular",...d}){let u=tailwindMerge.twMerge(gh(),s&&"bg-action-brand hover:bg-action-brand-hover border-action-brand",n),m=tailwindMerge.twMerge(a,s&&"text-text-onPrimary");return jsxRuntime.jsx(_,{...d,className:u,onPress:r,variant:i,size:"sm",isDisabled:o,"aria-label":l,"aria-pressed":s||void 0,type:"button",children:jsxRuntime.jsx(F,{name:e,size:t,className:m,weight:c})})}var yP=e=>[{id:"streets",name:"Streets",description:"Standard street map with traffic data",preview:e?ph:mh},{id:"satellite",name:"Satellite",description:"Aerial imagery with street labels",preview:uh},{id:"neutral",name:"Neutral",description:"Clean design with light/dark variants",preview:e?ch:dh}];function vP({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 hh({position:e="bottom-left",className:t,style:r,currentMapType:o="streets",onMapTypeChange:n,layers:a=[],onLayerToggle:i}){let{isDarkTheme:s}=Rt(),{isMobile:l}=kt(),[c,d]=Ee.useState(false),u=yP(s),m=f=>{n?.(f);},p=a.filter(f=>f.legend),g=jsxRuntime.jsxs("div",{className:l?"space-y-6 pb-6":"space-y-6",children:[jsxRuntime.jsxs("div",{children:[jsxRuntime.jsx("div",{className:"text-sm font-semibold text-text-body mb-3",children:"Map type"}),jsxRuntime.jsx("div",{className:"grid grid-cols-3 gap-3",children:u.map(f=>jsxRuntime.jsxs("button",{type:"button",onClick:()=>m(f.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===f.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===f.id?"border-2 border-action-default":"border border-border-default"),children:jsxRuntime.jsx("img",{src:f.preview,alt:`${f.name} map preview`,className:"w-full h-full object-cover"})}),jsxRuntime.jsx("div",{className:"text-sm "+(o===f.id?"font-bold text-text-body":"font-normal text-text-muted"),children:f.name})]},f.id))})]}),p.length>0&&jsxRuntime.jsxs("div",{children:[jsxRuntime.jsx("div",{className:"text-sm font-semibold text-text-body mb-3",children:"Map details"}),jsxRuntime.jsx("div",{className:"space-y-2",children:p.map(f=>jsxRuntime.jsx(Ko,{isSelected:f.visible!==false,onChange:()=>i?.(f.id),children:jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[f.legend&&jsxRuntime.jsx(vP,{type:f.legend.swatch,color:f.legend.color}),jsxRuntime.jsx("span",{className:"text-sm text-text-body",children:f.legend?.label})]})},f.id))})]})]});return jsxRuntime.jsx(Po,{position:e,className:t,style:r,children:jsxRuntime.jsx("div",{className:"relative",children:l?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(Qt,{icon:"Stack",ariaLabel:"Map layers and settings",onPress:()=>d(true)}),jsxRuntime.jsx(Xe,{isOpen:c,onClose:()=>d(false),title:"Map layers",animationVariant:"scale",children:g})]}):jsxRuntime.jsxs(reactAriaComponents.DialogTrigger,{children:[jsxRuntime.jsx(Qt,{icon:"Stack",ariaLabel:"Map layers and settings"}),jsxRuntime.jsx(Ze,{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:g})})]})})})}function vh({position:e="top-right",className:t,style:r,onToggle:o,isActive:n=false}){return jsxRuntime.jsx(Po,{position:e,className:tailwindMerge.twMerge("md:hidden",t),style:r,children:jsxRuntime.jsx(Qt,{icon:"ListDashes",onPress:o,isActive:n,ariaLabel:n?"Hide list view":"Show list view"})})}var NP={sm:"gap-2",md:"gap-4",lg:"gap-6"};function Nl({position:e="top-right",className:t,style:r,children:o,orientation:n="vertical",spacing:a="md"}){return jsxRuntime.jsx(Po,{position:e,style:r,children:jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("flex",n==="vertical"?"flex-col":"flex-row",NP[a],t),children:o})})}function Sh({mapRef:e,position:t="bottom-right",className:r,style:o,showCompass:n=true,showGeolocate:a=true,showResetZoom:i=true,onResetZoom:s,onCompassClick:l,onGeolocateClick:c}){let[d,u]=Ee.useState(false),m=Ee.useRef(true);Ee.useEffect(()=>()=>{m.current=false;},[]);let p=()=>{l?l():e.current&&e.current.easeTo({bearing:0,duration:500});},g=async()=>{if(!d)if(c)c();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{}u(true),navigator.geolocation.getCurrentPosition(y=>{if(!m.current)return;let{latitude:C,longitude:N}=y.coords;e.current&&e.current.flyTo({center:[N,C],zoom:15,duration:2e3}),u(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}u(false);}},{enableHighAccuracy:true,timeout:1e4,maximumAge:0});}};if(!n&&!a&&!i)return null;let f=!i&&n,b=!i&&!n&&a,x=!a&&n;return jsxRuntime.jsxs(Nl,{position:t,className:r,style:o,spacing:"sm",children:[i&&jsxRuntime.jsx(Qt,{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(Qt,{icon:"Compass",onPress:p,ariaLabel:"Reset map orientation",className:tailwindMerge.twMerge(!f&&"rounded-t-none border-t-0",!x&&"rounded-b-none border-b-0")}),a&&jsxRuntime.jsx(Qt,{icon:d?"Spinner":"NavigationArrow",onPress:g,isDisabled:d,ariaLabel:"Go to my location",iconClassName:tailwindMerge.twMerge("text-text-primary",d&&"animate-spin"),className:tailwindMerge.twMerge(!b&&"rounded-t-none border-t-0",!b&&n&&"lg:rounded-t lg:border-t")})]})}function kh({position:e="top-left",className:t,style:r,onSearch:o,placeholder:n="Search places...",showSearchInput:a=true}){let[i,s]=Ee.useState(false),[l,c]=Ee.useState(""),d=()=>{a?s(!i):o&&o("");},u=p=>{p.preventDefault(),o&&l.trim()&&(o(l.trim()),s(false));},m=p=>{p.key==="Escape"&&s(false);};return jsxRuntime.jsx(Po,{position:e,className:t,style:r,children:jsxRuntime.jsxs("div",{className:"relative",children:[jsxRuntime.jsx(Qt,{icon:"MagnifyingGlass",onPress:d,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:u,children:jsxRuntime.jsxs("div",{className:"flex items-center space-x-2",children:[jsxRuntime.jsx("input",{type:"text",value:l,onChange:p=>c(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-muted","focus:outline-none focus:ring-2 focus:ring-action-brand"),autoFocus:true}),jsxRuntime.jsx(_,{type:"submit",variant:"brand",size:"sm",className:"px-3 py-2",children:"Search"})]})})})]})})}var DP={navigation:"bottom-right",layers:"bottom-left",search:"top-left",list:"top-right",custom:"top-right"};function Yu(e){return e.position??DP[e.type]}function Ph(e,t,r){let o=Yu(e),n=e.id??`${e.type}-${t}`;switch(e.type){case "navigation":{let i=e.showResetZoom!==false&&r.showResetButton;return jsxRuntime.jsx(Sh,{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(hh,{position:o,currentMapType:e.currentMapType,onMapTypeChange:e.onMapTypeChange,layers:e.layers??r.layers,onLayerToggle:e.onLayerToggle,style:e.style,className:e.className},n);case "search":return jsxRuntime.jsx(kh,{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 Ku(e,t){let r=e.reduce((n,a,i)=>{let s=Yu(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(Ph(a[0].control,a[0].index,t));continue}o.push(jsxRuntime.jsx(Nl,{position:n,spacing:"sm",children:a.map(({control:i,index:s})=>Ph(i,s,t))},`group-${n}`));}return o}function kl(){if(typeof process<"u"){if(process.env?.MAPBOX_ACCESS_TOKEN)return process.env.MAPBOX_ACCESS_TOKEN;if(process.env?.NEXT_PUBLIC_MAPBOX_ACCESS_TOKEN)return process.env.NEXT_PUBLIC_MAPBOX_ACCESS_TOKEN}if(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"){let e=({ url: (typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('index.cjs', document.baseURI).href)) });if(e.env?.VITE_MAPBOX_ACCESS_TOKEN)return e.env.VITE_MAPBOX_ACCESS_TOKEN}}var Ju={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 ju(e){return e.kind==="vector"}function qu(e){return e.kind==="geojson"}function Zu(e){return e.kind==="customPins"}function Xu(e){return e.kind==="raster"}function li(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(AP,{spec:o,mapType:t},o.id);case "geojson":return jsxRuntime.jsx(LP,{spec:o,mapType:t},o.id);case "customPins":return jsxRuntime.jsx(IP,{spec:o,mapType:t},o.id);case "raster":return jsxRuntime.jsx(FP,{spec:o},o.id);case "clusteredVector":return jsxRuntime.jsx(MP,{spec:o,mapType:t},o.id);default:return console.warn("[Layers] Unknown layer kind:",o.kind),null}})})}function AP({spec:e,mapType:t}){let{colorMode:r}=Rt(),o=Ee.useMemo(()=>Eh(e.style,e.renderAs,r,t),[e.style,e.renderAs,r,t]),n=Ee.useMemo(()=>({visibility:e.visible===false?"none":"visible"}),[e.visible]),a={id:e.id,type:Dh(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 i?s.url=e.tileset:(s.tiles=[e.tileset],s.minzoom=0,s.maxzoom=22),jsxRuntime.jsx(KP.Source,{...s,children:jsxRuntime.jsx(KP.Layer,{...a})})}function MP({spec:e}){let{colorMode:t,isDarkTheme:r}=Rt(),o=1.25,n=9,a=3,i=n*1.4,s=.2,l=[0,5],c=Ee.useMemo(()=>r?{clusters:e.clusterStyle?.color?hr(e.clusterStyle.color):"#000000",shadow:e.clusterStyle?.shadowColor||"rgba(0, 0, 0, 0.5)",point:{fill:e.pointStyle?.color?hr(e.pointStyle.color):"#000000",stroke:e.pointStyle?.borderColor||"#ffffff",shadow:"rgba(0, 0, 0, 0.5)"},text:{onCluster:"#ffffff"},selected:{fill:e.selectedStyle?.color?hr(e.selectedStyle.color):"#444ae1"}}:{clusters:e.clusterStyle?.color?hr(e.clusterStyle.color):"#000000",shadow:e.clusterStyle?.shadowColor||"rgba(0, 0, 0, 0.3)",point:{fill:e.pointStyle?.color?hr(e.pointStyle.color):"#000000",stroke:e.pointStyle?.borderColor||"#ffffff",shadow:"rgba(0, 0, 0, 0.3)"},text:{onCluster:"#ffffff"},selected:{fill:e.selectedStyle?.color?hr(e.selectedStyle.color):"#444ae1"}},[r,t,e.clusterStyle,e.pointStyle,e.selectedStyle]),d=Ee.useMemo(()=>e.clusterStyle?.sizes?e.clusterStyle.sizes.map(({threshold:b,radius:x})=>({threshold:b,radius:x,color:c.clusters})):[{threshold:30,radius:20,color:c.clusters},{threshold:50,radius:30,color:c.clusters},{threshold:100,radius:40,color:c.clusters}],[e.clusterStyle?.sizes,c.clusters]),u=b=>["step",["get","point_count"],b[0].radius,...b.flatMap(({threshold:x,radius:v})=>[x,v])],m=b=>["step",["get","point_count"],b[0].radius*o,...b.flatMap(({threshold:x,radius:v})=>[x,v*o])],p=e.tileset.startsWith("mapbox://"),g={id:`${e.id}-source`,type:"vector"};p?g.url=e.tileset:(g.tiles=[e.tileset],g.minzoom=0,g.maxzoom=22);let f=Ee.useMemo(()=>{let b=e.pointStyle?.radius??n,x=e.pointStyle?.borderWidth??a,v=e.selectedStyle?.radius??n*1.5,y=C=>{let N={...C};return e.minZoom!==void 0&&(N.minzoom=e.minZoom),e.maxZoom!==void 0&&(N.maxzoom=e.maxZoom),N};return [y({id:`${e.id}-cluster-shadows`,type:"circle","source-layer":e.sourceLayer,filter:["==",["get","cluster"],true],paint:{"circle-radius":m(d),"circle-color":c.shadow,"circle-blur":.5,"circle-translate":[0,8]}}),y({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":c.point.shadow,"circle-blur":s,"circle-translate":l}}),y({id:`${e.id}-clusters`,type:"circle","source-layer":e.sourceLayer,filter:["==",["get","cluster"],true],paint:{"circle-radius":u(d),"circle-color":["step",["get","point_count"],d[0].color,...d.flatMap(({threshold:C,color:N})=>[C,N])]}}),y({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":c.text.onCluster}}),y({id:`${e.id}-points`,type:"circle","source-layer":e.sourceLayer,filter:["all",["!=",["get","cluster"],true],["!=",["get","id"],e.selectedId||"selected"]],paint:{"circle-radius":b,"circle-color":c.point.fill,"circle-stroke-width":x,"circle-stroke-color":c.point.stroke}}),y({id:`${e.id}-selected-point`,type:"circle","source-layer":e.sourceLayer,filter:["==",["get","id"],e.selectedId||"selected"],paint:{"circle-radius":v,"circle-color":c.selected.fill,"circle-stroke-width":x,"circle-stroke-color":"#ffffff"}})]},[e.id,e.sourceLayer,e.selectedId,e.minZoom,e.maxZoom,e.pointStyle,e.selectedStyle,d,c,n,a,i,s]);return jsxRuntime.jsx(KP.Source,{...g,children:f.map(b=>jsxRuntime.jsx(KP.Layer,{...b},b.id))})}function LP({spec:e,mapType:t}){let{colorMode:r}=Rt(),o=Ee.useMemo(()=>typeof e.data=="string"?null:e.data,[e.data]),n=Ee.useMemo(()=>Eh(e.style,e.renderAs,r,t,o),[e.style,e.renderAs,r,t,o]),a=Ee.useMemo(()=>({visibility:e.visible===false?"none":"visible"}),[e.visible]),i=Ee.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 l={id:e.id,type:Dh(e.renderAs),paint:n,layout:a};return e.minZoom!==void 0&&(l.minzoom=e.minZoom),e.maxZoom!==void 0&&(l.maxzoom=e.maxZoom),jsxRuntime.jsx(KP.Source,{...s,children:jsxRuntime.jsx(KP.Layer,{...l})})}function IP({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(KP.Marker,{longitude:a,latitude:i,anchor:"bottom",children:jsxRuntime.jsx(r,{...s})},`${e.id}-${n}`)})})}function FP({spec:e}){let t=Ee.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(KP.Source,{...r,children:jsxRuntime.jsx(KP.Layer,{...o})})}var Ro="#666";function Dh(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 Eh(e,t,r,o,n){if(!e)return {};let a={};if(e.color){let i=hr(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"]=Rh(e.width)),e.radius&&t==="circle"&&(a["circle-radius"]=Rh(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?hr(e.borderColor,r,n):hr(e.color||"#000",r,n)),t==="circle"&&e.borderWidth){a["circle-stroke-width"]=e.borderWidth;let i=e.borderColor?hr(e.borderColor,r,n):pt(`map-${o}-border`,"#ffffff");a["circle-stroke-color"]=i;}return a}function BP(e,t){let r=e.by,o=e.mapping,n=["match",["get",r]];for(let[a,i]of Object.entries(o))n.push(a),n.push(hr(i));return n.push(Ro),n}function zP(e,t){let r=bm(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=xm(r),n=["match",["get",e]];for(let[a,i]of Object.entries(o))n.push(a),n.push(i);return n.push(Ro),n}function VP(e,t="viridis",r,o){let n=Ec(r,e),a;if(o&&o!=="auto")a=o;else {if(a=Ac(n),n.length===0)return console.warn(`[Layers] No numeric values found for property "${e}"`),Ro;console.log(`[Layers] Auto-calculated sequential scale for "${e}": ${a.min} to ${a.max}`);}let i=Mc(t),s=["interpolate",["linear"],["get",e]];return i.forEach((l,c)=>{let d=c/(i.length-1),u=a.min+d*(a.max-a.min);s.push(u,l);}),s}function OP(e,t="redYellowBlue",r,o,n){let a=Ec(r,e),i=hm(a,o),s;if(n&&n!=="auto")s=n;else {if(s=Ac(a),a.length===0)return console.warn(`[Layers] No numeric values found for property "${e}"`),Ro;console.log(`[Layers] Auto-calculated diverging scale for "${e}": ${s.min} \u2190 ${i} \u2192 ${s.max}`);}let l=Lc(t),c=4,d=["interpolate",["linear"],["get",e]];for(let u=0;u<=c;u++){let m=u/c,p=s.min+m*(i-s.min);d.push(p,l[u]);}for(let u=c+1;u<l.length;u++){let m=(u-c)/(l.length-1-c),p=i+m*(s.max-i);d.push(p,l[u]);}return d}function hr(e,t,r){if(typeof e=="string")return e;if("token"in e)return pt(e.token)||e.token;if("hex"in e)return e.hex;if("by"in e){if("palette"in e){if(e.palette==="categorical")return r?zP(e.by,r):(console.warn("[Layers] Categorical auto-assignment requires GeoJSON data (not URL-based data)"),Ro);if(e.palette==="sequential")return r?VP(e.by,e.scheme,r,e.scale):(console.warn("[Layers] Sequential palette requires GeoJSON data (not URL-based data)"),Ro);if(e.palette==="diverging")return r?OP(e.by,e.scheme,r,e.center,e.scale):(console.warn("[Layers] Diverging palette requires GeoJSON data (not URL-based data)"),Ro)}if("mapping"in e)return BP(e)}return Ro}function Rh(e){return typeof e=="number"?e:"byZoom"in e?["interpolate",["linear"],["zoom"],...e.byZoom.flatMap(([t,r])=>[t,r])]:e}var Dl=null;function El(){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():(Dl||(Dl=import('mapbox-gl/dist/mapbox-gl.css').then(()=>{}).catch(t=>{console.error("Failed to load Mapbox CSS",t),Dl=null;})),Dl)}function Al(){return jsxRuntime.jsx("div",{className:"absolute inset-0 z-50 bg-background-surface/90 backdrop-blur-sm","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:`
106
107
  linear-gradient(rgba(0,0,0,0.15) 1px, transparent 1px),
107
108
  linear-gradient(90deg, rgba(0,0,0,0.15) 1px, transparent 1px)
108
- `,backgroundSize:"30px 30px"}})})})}function tl({style:e,className:t,message:r="Map requires Mapbox token"}){return jsxRuntime.jsx("div",{style:e,className:`flex items-center justify-center bg-background-muted text-text-muted ${t||""}`,children:jsxRuntime.jsxs("div",{className:"text-center",children:[jsxRuntime.jsx(k,{name:"MapPin",size:48,className:"mx-auto mb-2 opacity-50"}),jsxRuntime.jsx("p",{className:"text-sm",children:r})]})})}var px={streets:"streets",satellite:"satellite",neutral:"neutral"};function qa(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 mx({longitude:e,latitude:t,showPulse:r=true,accuracy:o}){return jsxRuntime.jsx(Lk.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-brand-primary opacity-30",style:{animationDelay:"0s"}}),jsxRuntime.jsx("div",{className:"relative z-10 flex h-5 w-5 items-center justify-center rounded-full bg-white shadow-lg",children:jsxRuntime.jsx("div",{className:"h-3 w-3 rounded-full bg-brand-primary"})}),o&&o>0&&jsxRuntime.jsx("div",{className:"pointer-events-none absolute rounded-full border border-brand-primary/20 bg-brand-primary/10",style:{width:`${Math.min(o/2,100)}px`,height:`${Math.min(o/2,100)}px`}})]})})}var Xa=De__namespace.default.forwardRef(({initialViewState:e,viewState:t,onViewStateChange:r,scrollEnabled:o=true,className:n,previewMode:a=false,previewModeCta:i,onPreviewModePress:s,mapType:l="streets",layers:c=[],mapboxAccessToken:u,transformRequest:d,isLoading:m=false,onLoad:p,controls:g="default",showUserLocation:f=true,onUserLocationChange:b,children:x,additionalInteractiveLayerIds:v=[],onMapClick:y,showMarker:C=false,markerLocation:S},w)=>{let N=u??Xs();if(!N)return jsxRuntime.jsx("div",{className:`relative ${n||""}`,style:{width:"100%",height:"100%"},children:jsxRuntime.jsx(tl,{className:"w-full h-full",message:"Map unavailable"})});let{isDarkTheme:L}=kt(),D=De.useRef(null),A=De.useRef(null),[P,T]=De.useState(false),[E,R]=De.useState(false);De.useEffect(()=>{_s();},[]);let[J,X]=De.useState(false),q=De.useRef(0),[$,j]=De.useState(null),[M,W]=De.useState(null),U=De.useRef(null),[I,Y]=li("interactiveMap.trackingLocation",false),[F,h]=De.useState(false);De.useEffect(()=>{if(!navigator.geolocation){h(true);return}if(I){if(!navigator.permissions?.query){h(true);return}navigator.permissions.query({name:"geolocation"}).then(Z=>{Z.state!=="granted"&&Y(false),h(true);}).catch(()=>{h(true);});}else h(true);},[]),De.useEffect(()=>{let Z=setTimeout(()=>{P||R(true);},200);return ()=>clearTimeout(Z)},[P]),De.useEffect(()=>{if(F){if(!I||a){U.current!==null&&(navigator.geolocation.clearWatch(U.current),U.current=null);return}if(!navigator.geolocation){console.warn("Geolocation is not supported by this browser.");return}return U.current=navigator.geolocation.watchPosition(Z=>{let H={latitude:Z.coords.latitude,longitude:Z.coords.longitude,accuracy:Z.coords.accuracy};W(H),b?.(H);},Z=>{console.warn("Geolocation error:",Z.message),W(null),b?.(null);},{enableHighAccuracy:true,maximumAge:3e4,timeout:3e4}),()=>{U.current!==null&&(navigator.geolocation.clearWatch(U.current),U.current=null);}}},[I,a,b,F]);let z=De.useCallback(()=>{T(true),R(false),p?.();},[p]),B=De.useCallback(()=>{D.current&&e&&(X(false),q.current=0,D.current.flyTo({center:[e.longitude||0,e.latitude||0],zoom:e.zoom||0,bearing:e.bearing||0,pitch:e.pitch||0,duration:1e3}));},[e]),G=De.useMemo(()=>g===false||g===null?[]:g==="default"||g===void 0?_d:g,[g]),oe=De.useCallback(()=>{if(!navigator.geolocation){console.warn("Geolocation is not supported by this browser.");return}Y(true),navigator.geolocation.getCurrentPosition(Z=>{let{latitude:H,longitude:ee}=Z.coords;D.current&&D.current.jumpTo({center:[ee,H],zoom:15});},Z=>{console.warn("Geolocation error:",Z.message),Z.code===Z.PERMISSION_DENIED&&Y(false);},{enableHighAccuracy:true,timeout:1e4,maximumAge:0});},[]),me=De.useMemo(()=>{if(a)return null;let Z=G.map(H=>H.type==="navigation"?{...H,onResetZoom:H.onResetZoom||B,onGeolocateClick:H.onGeolocateClick||oe}:H);return ru(Z,{mapRef:D,layers:c,showResetButton:J})},[G,D,a,c,B,J,oe]),O=De.useMemo(()=>{let Z=[];return c.filter(H=>H.events?.onClick||H.events?.onMouseEnter||H.events?.onMouseLeave||H.tooltip).forEach(H=>{H.kind==="clusteredVector"?(Z.push(`${H.id}-clusters`),Z.push(`${H.id}-points`),Z.push(`${H.id}-selected-point`)):Z.push(H.id);}),[...Z,...v]},[c,v]),Q=De.useMemo(()=>{let Z=new Map;return c.forEach(H=>{H.events&&(Z.set(H.id,H.events),H.kind==="clusteredVector"&&(Z.set(`${H.id}-clusters`,H.events),Z.set(`${H.id}-points`,H.events),Z.set(`${H.id}-selected-point`,H.events)));}),Z},[c]),fe=De.useMemo(()=>{let Z=new Map;return c.forEach(H=>{H.tooltip&&(Z.set(H.id,H.tooltip),H.kind==="clusteredVector"&&(Z.set(`${H.id}-clusters`,H.tooltip),Z.set(`${H.id}-points`,H.tooltip),Z.set(`${H.id}-selected-point`,H.tooltip)));}),Z},[c]),ne=De.useMemo(()=>{let Z=new Map;return c.forEach(H=>{H.kind==="clusteredVector"&&(Z.set(H.id,H),Z.set(`${H.id}-clusters`,H),Z.set(`${H.id}-points`,H),Z.set(`${H.id}-selected-point`,H));}),Z},[c]),ue=De.useMemo(()=>{if(!C)return null;let Z=S?.longitude??t?.longitude??e?.longitude,H=S?.latitude??t?.latitude??e?.latitude;return Z===void 0||H===void 0?null:{longitude:Z,latitude:H}},[C,S,t,e]),ve=De.useCallback(Z=>{if(a)return;let H=Z.features?.[0];if(!H||!H.layer)return;let ee=H.layer.id,ce=Q.get(ee),ie=fe.get(ee),we;H.geometry.type==="Point"?we=H.geometry.coordinates:we=[Z.lngLat.lng,Z.lngLat.lat];let Ce={id:H.id??H.properties?.id,lngLat:we,properties:H.properties||{},layerId:ee},Je=ne.get(ee),ze=H.properties?.cluster===true;if(Je&&ze){let mt=D.current;if(mt){let Co=mt.getZoom(),gn=Math.min(Co+3,18);mt.flyTo({center:we,zoom:gn,duration:1e3});}return}if(ce?.onClick&&ce.onClick(Ce),ie&&ie.trigger==="click"){let mt;Je&&"cluster"in ie?ie.point&&(mt=ie.point(Ce)):"content"in ie&&(mt=typeof ie.content=="function"?ie.content(Ce):ie.content),mt&&j({feature:Ce,content:mt});}y&&y(Z);},[Q,fe,a,y,ne,D,O]),K=De.useCallback(Z=>{if(a)return;let H=Z.features?.[0];if(!H||!H.layer)return;let ee=H.layer.id,ce=Q.get(ee),ie=fe.get(ee),we;H.geometry.type==="Point"?we=H.geometry.coordinates:we=[Z.lngLat.lng,Z.lngLat.lat];let Ce={id:H.id??H.properties?.id,lngLat:we,properties:H.properties||{},layerId:ee};if(ce?.onMouseEnter&&ce.onMouseEnter(Ce),ie&&(ie.trigger==="hover"||!ie.trigger)){let Je;if(ne.get(ee)&&"cluster"in ie){let mt=H.properties?.cluster===true;if(mt&&ie.cluster){let Co=H.properties?.point_count||0;Je=ie.cluster(Co,Ce);}else !mt&&ie.point?Je=ie.point(Ce):Je=mt?`${H.properties?.point_count||0} items`:null;}else "content"in ie&&(Je=typeof ie.content=="function"?ie.content(Ce):ie.content);Je&&j({feature:Ce,content:Je});}D.current&&(D.current.getCanvas().style.cursor="pointer");},[Q,fe,a,D,ne]),le=De.useCallback(()=>{if(!a){if(Q.forEach(Z=>{Z.onMouseLeave?.();}),$){let Z=$.feature.layerId,H=c.find(ee=>ee.id===Z);if(!H){let ee=Z.replace(/-(?:clusters|points|selected-point|cluster-shadows|points-shadow|cluster-count)$/,"");H=c.find(ce=>ce.id===ee);}H?.tooltip&&(H.tooltip.trigger||"hover")==="hover"&&j(null);}D.current&&(D.current.getCanvas().style.cursor="");}},[Q,a,D,$,c]),Ne=De.useCallback((Z,H)=>{for(let ee of c)if(ee.tooltip&&!(H&&ee.id!==H)){if(ee.kind==="geojson"){if(typeof ee.data=="string")continue;let ce=ee.data,we=(ce.type==="FeatureCollection"?ce.features:[ce]).find(Ce=>Ce.id===Z);if(we&&we.geometry.type==="Point")return {id:we.id,lngLat:we.geometry.coordinates,properties:we.properties||{},layerId:ee.id}}else if(ee.kind==="customPins"){let ce=ee.data.find(ie=>ie.id===Z||ie._id===Z||ie.key===Z);if(ce)return {id:Z,lngLat:ee.getPosition(ce),properties:ce,layerId:ee.id}}}return null},[c]);De.useImperativeHandle(w,()=>({showTooltip:(Z,H)=>{let ee=Ne(Z,H);if(!ee)return;let ce=c.find(ie=>ie.id===ee.layerId);if(ce?.tooltip&&"content"in ce.tooltip){let ie=typeof ce.tooltip.content=="function"?ce.tooltip.content(ee):ce.tooltip.content;j({feature:ee,content:ie});}},hideTooltip:()=>{j(null);},getMap:()=>D.current}),[Ne,c]);let Be=(Z,H)=>d?d(Z,H):{url:Z},Me=m||E;return jsxRuntime.jsx("div",{ref:A,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(Lk__default.default,{ref:D,initialViewState:e,...t&&t,style:{width:"100%",height:"100%"},mapStyle:qa(l,L),mapboxAccessToken:N,transformRequest:Be,onLoad:z,onMove:a?void 0:Z=>{if(Z.originalEvent&&P){let H=Z.originalEvent.type,ee=Math.abs((Z.viewState.latitude??0)-(e?.latitude??0)),ce=Math.abs((Z.viewState.longitude??0)-(e?.longitude??0)),ie=Math.abs((Z.viewState.zoom??0)-(e?.zoom??0));e&&(ee>1e-4||ce>1e-4||ie>.1)&&(H==="mousemove"||H==="touchmove"||H==="pointermove"?X(true):(H==="wheel"||H==="mousewheel")&&(q.current+=1,q.current>=3&&X(true)));}r?.(Z.viewState);},onClick:a?void 0:ve,onMouseEnter:a?void 0:K,onMouseLeave:a?void 0:le,interactiveLayerIds:a?[]:O,scrollZoom:a?false:o,dragPan:!a,dragRotate:!a,doubleClickZoom:!a,interactive:!a,attributionControl:false,children:[jsxRuntime.jsx(Lk.AttributionControl,{position:"top-left"}),me,Ja(c,l),x,ue&&jsxRuntime.jsx(Lk.Marker,{longitude:ue.longitude,latitude:ue.latitude,anchor:"bottom",children:jsxRuntime.jsx(k,{name:"MapPin",size:36,className:"text-map-marker-default",weight:"fill"})}),f&&M&&jsxRuntime.jsx(mx,{longitude:M.longitude,latitude:M.latitude,accuracy:M.accuracy}),$&&jsxRuntime.jsx(Lk.Popup,{longitude:$.feature.lngLat[0],latitude:$.feature.lngLat[1],offset:15,closeButton:false,closeOnClick:false,className:"map-tooltip",maxWidth:"none",children:$.content})]},`map-${l}`),Me&&jsxRuntime.jsx(el,{}),a&&i&&jsxRuntime.jsx("div",{className:"absolute bottom-8 right-8 z-10",children:i})]})})});Xa.displayName="InteractiveMap";function qn({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:l=false,onLoad:c,className:u,showExpandToggle:d=false,expandedMapTitle:m="Explore map",expandedMapAddressLabel:p}){let g=i??Xs(),{isDarkTheme:f}=kt(),[b,x]=De.useState(false),[v,y]=De.useState(false),[C,S]=De.useState(false),w=De.useRef(null),N=De.useRef(null),L=De.useCallback(()=>S(true),[]),D=De.useCallback(()=>S(false),[]);De.useEffect(()=>{_s();},[]);let A={width:typeof e=="number"?`${e}px`:e,height:typeof t=="number"?`${t}px`:t};De.useEffect(()=>{let E=setTimeout(()=>{b||y(true);},200);return ()=>clearTimeout(E)},[b]);let P=De.useCallback(()=>{x(true),y(false),c?.();},[c]);De.useEffect(()=>{if(!N.current)return;let E=new ResizeObserver(()=>{w.current&&w.current.resize();});return E.observe(N.current),()=>{E.disconnect();}},[]);let T=o||v;return g?jsxRuntime.jsxs("div",{ref:N,style:A,className:`relative ${u||""}`,children:[jsxRuntime.jsxs(Lk__default.default,{ref:w,mapboxAccessToken:g,initialViewState:r,style:{width:"100%",height:"100%"},mapStyle:qa(n,f),onLoad:P,scrollZoom:false,dragPan:false,dragRotate:false,doubleClickZoom:false,touchZoomRotate:false,interactive:false,attributionControl:false,children:[l&&jsxRuntime.jsx(Lk.AttributionControl,{position:"top-left"}),Ja(a,n),s&&r.longitude!==void 0&&r.latitude!==void 0&&jsxRuntime.jsx(Lk.Marker,{longitude:r.longitude,latitude:r.latitude,anchor:"bottom",children:jsxRuntime.jsx(k,{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(Jt,{icon:"ArrowsOutSimple",ariaLabel:"Expand map to fullscreen",onPress:L})}),d&&jsxRuntime.jsx(Zt,{isOpen:C,onClose:D,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(Xa,{initialViewState:r,mapType:n,mapboxAccessToken:g,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-muted px-4 py-3 flex-shrink-0",children:p})]})}),T&&jsxRuntime.jsx(el,{})]}):jsxRuntime.jsx(tl,{style:A,className:u})}var Gk={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 bx({label:e,size:t="md",variant:r="default",showWarningIndicator:o=true,warningThreshold:n=80,className:a,...i}){let s=Gk[t];return jsxRuntime.jsx(reactAriaComponents.Meter,{...i,className:xe(a,"flex flex-col gap-1"),children:({percentage:l,valueText:c})=>{let u=o&&l>=n,d=r==="default"?Wk(l):r;return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsxs("div",{className:"flex justify-between gap-2",children:[e&&jsxRuntime.jsx(Re,{children:e}),jsxRuntime.jsxs("span",{className:tailwindMerge.twMerge(s.text,u?"text-feedback-error-text":"text-text-muted"),children:[u&&jsxRuntime.jsx(lucideReact.AlertTriangle,{"aria-label":"Warning: High value",className:tailwindMerge.twMerge("inline-block align-text-bottom mr-1",s.icon)}),c]})]}),jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("relative rounded-full bg-background-muted","ring-1 ring-inset ring-border-muted",s.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]",Uk(d)),style:{width:`${Math.min(100,Math.max(0,l))}%`},role:"presentation","aria-hidden":"true"})})]})}})}function Wk(e){return e<50?"success":e<70?"info":e<90?"warning":"error"}function Uk(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";default:return "bg-action-brand"}}var al="bg-background-surface border-l-[3px] border-y border-r border-border-default text-text-body",Zk={success:{container:al,iconName:"CheckCircle",iconColor:"text-feedback-success-text",borderColor:"var(--color-feedback-success-border)"},error:{container:al,iconName:"XCircle",iconColor:"text-feedback-error-text",borderColor:"var(--color-feedback-error-border)"},warning:{container:al,iconName:"Warning",iconColor:"text-feedback-warning-text",borderColor:"var(--color-feedback-warning-border)"},info:{container:al,iconName:"Info",iconColor:"text-feedback-info-text",borderColor:"var(--color-feedback-info-border)"}};function sl({id:e,message:t,variant:r="info",duration:o=5e3,dismissible:n=true,onDismiss:a,className:i}){let{container:s,iconName:l,iconColor:c,borderColor:u}=Zk[r];return De.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(k,{name:l,size:20,className:c}),jsxRuntime.jsx("p",{className:"flex-1 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(k,{name:"X",size:16})})]})}var tT={"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 ll({notices:e,onDismiss:t,position:r="bottom-center",className:o}){let[n,a]=De.useState(false);if(De.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",tT[r],o),"aria-live":"polite","aria-atomic":"true",children:jsxRuntime.jsx(framerMotion.AnimatePresence,{mode:"sync",children:e.map(s=>jsxRuntime.jsx(sl,{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 xx=De.createContext(void 0);function hx({children:e,position:t="bottom-center",maxNotices:r=5,defaultDuration:o=5e3,defaultDismissible:n=true}){let[a,i]=De.useState([]),s=De.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 b=[...f,g];return b.length>r?b.slice(-r):b}),p},[r,o,n]),l=De.useCallback(d=>{i(m=>m.filter(p=>p.id!==d));},[]),c=De.useCallback(()=>{i([]);},[]),u={notices:a,addNotice:s,removeNotice:l,clearNotices:c};return jsxRuntime.jsxs(xx.Provider,{value:u,children:[e,jsxRuntime.jsx(ll,{notices:a,onDismiss:l,position:t})]})}function yx(){let e=De.useContext(xx);if(!e)throw new Error("useNoticeContext must be used within a NoticeProvider");return e}function vx(){let{addNotice:e,removeNotice:t,clearNotices:r}=yx(),o=De.useCallback((l,c)=>e(l,c),[e]),n=De.useCallback((l,c)=>e(l,{...c,variant:"success"}),[e]),a=De.useCallback((l,c)=>e(l,{...c,variant:"error"}),[e]),i=De.useCallback((l,c)=>e(l,{...c,variant:"warning"}),[e]),s=De.useCallback((l,c)=>e(l,{...c,variant:"info"}),[e]);return {show:o,success:n,error:a,warning:i,info:s,dismiss:t,clear:r}}var lT={plain:"",contained:"bg-background-surface rounded-lg border border-border-default p-6",bordered:"border-y border-border-default py-6"},cT={none:"",sm:"my-4",md:"my-6 md:my-8",lg:"my-8 md:my-12"};function Zn({id:e,title:t,description:r,actions:o,variant:n="plain",spacing:a="none",withDivider:i=false,headingAs:s="h2",className:l,children:c}){let u=De__namespace.default.useId(),d=e?`${e}-heading`:u,m=t||r||o;return jsxRuntime.jsxs("section",{id:e,className:tailwindMerge.twMerge(cT[a],lT[n],l),"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&&c&&"mb-6"),children:[jsxRuntime.jsxs("div",{className:"min-w-0 flex-1",children:[t&&jsxRuntime.jsx(Tt,{tag:s,size:"md",className:"text-text-heading",children:t}),r&&jsxRuntime.jsx("p",{className:"mt-2 text-base text-text-muted",children:r})]}),o&&jsxRuntime.jsx("div",{className:"flex-shrink-0",children:o})]}),c&&jsxRuntime.jsx("div",{className:"",children:c})]})}Zn.displayName="Section";function pl({sections:e,activeSection:t,onSectionChange:r,orientation:o="responsive",className:n,scrollBehavior:a="smooth",stickyTop:i="1.5rem",sectionIdPrefix:s="section-",filterSection:l}){let c=De__namespace.useRef(null),u=De__namespace.useRef(null),[d,m]=De__namespace.useState(e[0]?.id||null),p=t??d;De__namespace.useEffect(()=>{if(t!==void 0&&r)return;let v=w=>{if(!w)return false;let N=window.getComputedStyle(w);return N.display!=="none"&&N.visibility!=="hidden"&&N.opacity!=="0"},y=()=>{let w=v(c.current),N=v(u.current);if(!w&&!N)return null;let L=new IntersectionObserver(D=>{D.forEach(A=>{if(A.isIntersecting){let P=A.target.id.replace(s,"");r?r(P):m(P);}});},{rootMargin:"-20% 0px -70% 0px",threshold:0});return e.forEach(D=>{let A=document.getElementById(`${s}${D.id}`);A&&L.observe(A);}),L},C=y(),S=()=>{C&&C.disconnect(),C=y();};return window.addEventListener("resize",S),()=>{C&&C.disconnect(),window.removeEventListener("resize",S);}},[e,s,t,r,o]);let g=De__namespace.useMemo(()=>l?e.filter(l):e,[e,l]),f=De__namespace.useCallback((v,y)=>{v.preventDefault();let C=document.getElementById(`${s}${y}`);C&&(C.scrollIntoView({behavior:a,block:"start"}),window.history.pushState&&window.history.pushState(null,"",`#${s}${y}`),r?r(y):m(y));},[s,a,r]);if(g.length===0)return null;let b=o==="vertical"?"":o==="horizontal"?"hidden":"hidden lg:block",x=o==="horizontal"?"":o==="vertical"?"hidden":"lg:hidden";return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("nav",{ref:c,className:tailwindMerge.twMerge(b,n),"aria-label":"Section navigation",children:jsxRuntime.jsx("div",{className:"space-y-1",style:{position:"sticky",top:i},children:g.map(v=>{let y=p===v.id;return jsxRuntime.jsx("a",{href:`#${s}${v.id}`,onClick:C=>f(C,v.id),className:tailwindMerge.twMerge("block w-full text-left px-3 py-2 rounded-md text-sm transition-colors no-underline",y?"bg-background-muted text-text-body font-semibold":"text-text-muted hover:text-text-body hover:bg-background-hover"),"aria-current":y?"page":void 0,children:jsxRuntime.jsxs("span",{className:"flex items-center justify-between gap-2",children:[jsxRuntime.jsx("span",{children:v.label}),v.count!==void 0&&jsxRuntime.jsx("span",{className:"text-xs tabular-nums text-text-muted",children:v.count})]})},v.id)})})}),jsxRuntime.jsx("nav",{ref:u,className:tailwindMerge.twMerge(x,"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:g.map(v=>{let y=p===v.id;return jsxRuntime.jsx("a",{href:`#${s}${v.id}`,onClick:C=>f(C,v.id),className:tailwindMerge.twMerge("inline-block px-4 py-2 rounded-md text-sm whitespace-nowrap transition-colors no-underline",y?"bg-background-muted text-text-body font-semibold":"text-text-muted hover:text-text-body hover:bg-background-hover"),"aria-current":y?"page":void 0,children:jsxRuntime.jsxs("span",{className:"flex items-center gap-2",children:[jsxRuntime.jsx("span",{children:v.label}),v.count!==void 0&&jsxRuntime.jsxs("span",{className:"text-xs tabular-nums text-text-muted",children:["(",v.count,")"]})]})},v.id)})})})]})}var ml=De__namespace.createContext({variant:"default"});function gT({orientation:e,className:t=""}){return `flex flex-col w-full ${{horizontal:"",vertical:"flex-row"}[e]||""} ${t}`.trim()}function gl({variant:e="default",...t}){return jsxRuntime.jsx(ml.Provider,{value:{variant:e},children:jsxRuntime.jsx("div",{className:"w-full h-auto",children:jsxRuntime.jsx(reactAriaComponents.Tabs,{...t,className:reactAriaComponents.composeRenderProps(t.className,(r,o)=>gT({...o,className:r}))})})})}function bT({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 bl({variant:e,sticky:t=false,...r}){let o=De__namespace.useContext(ml),n=e??o.variant;return jsxRuntime.jsx(ml.Provider,{value:{variant:n},children:jsxRuntime.jsx(reactAriaComponents.TabList,{...r,className:reactAriaComponents.composeRenderProps(r.className,(a,i)=>bT({...i,sticky:t,className:a||""}))})})}function xT({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=`${Ie()} ${r==="brand"?"focus-visible:outline-action-brand":""}`.trim(),i="";return t?i="text-text-disabled forced-colors:text-[GrayText] cursor-not-allowed":e?r==="brand"?i="text-action-brand border-b-2 border-action-brand z-10 forced-colors:bg-[Highlight]":i="text-action-default border-b-2 border-action-default z-10 forced-colors:bg-[Highlight]":i="text-text-placeholder hover:text-text-muted",`${n} ${a} ${i} ${o}`.trim()}function xl(e){let{variant:t}=De__namespace.useContext(ml);return jsxRuntime.jsx(reactAriaComponents.Tab,{...e,"data-testid":e.id?`tab-${e.id}`:void 0,className:reactAriaComponents.composeRenderProps(e.className,(r,o)=>xT({...o,className:r,isSelected:o.isSelected,variant:t}))})}function hT({className:e=""}){let t="block w-full mt-4 text-text-body",r=Ie();return `${t} ${r} ${e}`.trim()}function Sx(e){return jsxRuntime.jsx(reactAriaComponents.TabPanel,{...e,className:reactAriaComponents.composeRenderProps(e.className,(t,r)=>hT({...r,className:t||""}))})}function sn({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 Nx({title:e,subtitle:t,breadcrumbs:r,breadcrumbsNode:o,media:n,actions:a,metadata:i,headingAs:s,sticky:l,stickyTop:c="0",zIndex:u=10,isLoading:d=false,className:m}){let p=l?"sticky bg-background-body":"",g=l?{top:c,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(V,{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(V,{className:"h-8 w-64"})}),t?jsxRuntime.jsx(V,{className:"mt-2 h-5 w-48"}):null,i?jsxRuntime.jsx(V,{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,b)=>jsxRuntime.jsx(V,{className:"h-9 w-full"},b))}):null]}),a?.length?jsxRuntime.jsx("div",{className:"hidden md:flex md:items-start gap-2 shrink-0",children:a.map((f,b)=>jsxRuntime.jsx(V,{className:"h-9 w-24"},b))}):null]}),n?jsxRuntime.jsx("div",{className:"mt-4 md:mt-6",children:jsxRuntime.jsx(V,{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(Zi,{children:r.map((f,b)=>{let{label:x,...v}=f;return jsxRuntime.jsx(Xi,{...v,children:x},`${x}-${b}`)})})}):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(Tt,{tag:s||"h1",size:"xl",children:e})}),t?jsxRuntime.jsx("p",{className:"mt-2 text-base md:text-lg text-text-muted",children:t}):null,i?jsxRuntime.jsx("div",{className:"mt-2 text-sm text-text-muted",children:i}):null,a?.length?jsxRuntime.jsx("div",{className:"mt-6 flex flex-col items-stretch gap-3 md:hidden",children:a.map((f,b)=>jsxRuntime.jsx(De__namespace.default.Fragment,{children:f},b))}):null]}),a?.length?jsxRuntime.jsx("div",{className:"hidden md:flex md:items-start gap-2 shrink-0",children:a.map((f,b)=>jsxRuntime.jsx(De__namespace.default.Fragment,{children:f},b))}):null]}),n?jsxRuntime.jsx("div",{className:"mt-4 md:mt-6",children:n}):null]})}function wx({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(gl,{selectedKey:t,defaultSelectedKey:r||e[0]?.id,onSelectionChange:i,children:[jsxRuntime.jsx(bl,{className:"after:bg-transparent",children:e.map(s=>jsxRuntime.jsx(xl,{id:s.id,isDisabled:s.disabled,children:s.label},s.id))}),a]})})}function kx({children:e,className:t,withSectionNav:r,navWidth:o="240px",gap:n="2rem",activeSection:a,onSectionChange:i,scrollBehavior:s,sectionIdPrefix:l="section-"}){return r?jsxRuntime.jsx(yT,{position:r,navWidth:o,gap:n,activeSection:a,onSectionChange:i,scrollBehavior:s,sectionIdPrefix:l,className:t,children:e}):jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("w-full space-y-8 md:space-y-12",t),children:e})}function Tx({children:e,sticky:t=true,className:r}){return jsxRuntime.jsx("aside",{className:tailwindMerge.twMerge(t?"lg:sticky lg:top-20":"",r),children:e})}function yT({activeSection:e,onSectionChange:t,position:r,navWidth:o,gap:n,children:a,className:i,scrollBehavior:s,sectionIdPrefix:l}){let c=De__namespace.default.useMemo(()=>{let g=[];return De__namespace.default.Children.forEach(a,f=>{if(De__namespace.default.isValidElement(f)&&(f.type===Zn||typeof f.type=="object"&&f.type?.displayName==="Section"||typeof f.type=="function"&&f.type?.displayName==="Section")){let b=f.props;b.id?g.push({id:b.id,label:b.navLabel||(typeof b.title=="string"?b.title:`Section ${b.id}`)}):process.env.NODE_ENV==="development"&&console.warn("Section component used within PageLayout.Content with withSectionNav must have an id prop");}}),g},[a]),u=De__namespace.default.useMemo(()=>{let g=De__namespace.default.Children.map(a,f=>{if(De__namespace.default.isValidElement(f)&&(f.type===Zn||typeof f.type=="object"&&f.type?.displayName==="Section"||typeof f.type=="function"&&f.type?.displayName==="Section")){let b=f.props;if(b.id)return De__namespace.default.cloneElement(f,{...b,id:`${l}${b.id}`})}return f});return jsxRuntime.jsx("div",{className:"space-y-8 md:space-y-12",children:g})},[a,l]),d=(g,f)=>jsxRuntime.jsx(pl,{sections:c,activeSection:e,onSectionChange:t,orientation:g,scrollBehavior:s,sectionIdPrefix:l,className:f});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:d("horizontal")}),u]});let m=r==="left"?"var(--nav-width) 1fr":"1fr var(--nav-width)",p=r==="right"?"hidden lg:block sticky top-20 self-start [&_a]:text-right":"hidden lg:block sticky top-20 self-start";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:d("horizontal","py-3 mt-0")}),jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("lg:grid",i),style:{gridTemplateColumns:m,gap:n,"--nav-width":o},children:[r==="left"&&jsxRuntime.jsx("nav",{className:p,children:d("vertical")}),u,r==="right"&&jsxRuntime.jsx("nav",{className:p,children:d("vertical")})]})]})}function Px({children:e,className:t}){return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("flex-1 overflow-auto min-h-0",t),children:e})}sn.Header=Nx;sn.Tabs=wx;sn.Content=kx;sn.Aside=Tx;sn.ScrollableContent=Px;function CT(e){return typeof e=="object"&&e!==null&&"features"in e&&Array.isArray(e.features)&&"type"in e&&typeof e.type=="string"}var ST=process.env.NEXT_PUBLIC_MAPBOX_ACCESS_TOKEN||"";function Ax({label:e="Search for a place",selectedKey:t,defaultSelectedKey:r,onSelectionChange:o,placeholder:n="Enter a location...",errorMessage:a,description:i,size:s="md",tooltip:l,isRequired:c,isDisabled:u,showErrors:d=true,autoFocus:m=false,onSelect:p,searchTypes:g=["place","address"],defaultFilter:f,validationResult:b,countryRestrictions:x,proximity:v="ip",hideCountry:y=false,showIcon:C=true,className:S}){let w=De.useRef(new WeakMap),N=De.useRef([]),L={requestType:"REST",method:"GET",url:"https://api.mapbox.com/geocoding/v5/mapbox.places/{q}.json",extraParams:{access_token:ST,types:g.join(","),limit:"5",...x?.length?{country:x.join(",").toLowerCase()}:{},...v?{proximity:v==="ip"?"ip":v.join(",")}:{}},shouldLoad:P=>P.length>0,transformResponse:P=>{if(!CT(P))return [];let T=P.features.map(E=>{let R={id:E.id,name:E.place_name};return w.current.set(R,{type:E.place_type[0],center:E.center,context:E.context,address:E.address,text:E.text,properties:E.properties}),R});return T.length>0&&(N.current=T),T}},D=P=>{let T=w.current.get(P),E=P.name.split(", "),R=E[0],J=E.slice(1);y&&J.length>0&&(J=J.slice(0,-1));let X=J.join(", ");return jsxRuntime.jsxs("div",{className:"flex items-center gap-3 py-0.5",children:[C&&jsxRuntime.jsx(k,{name:T?.type==="address"?"MapPin":T?.type==="place"?"Buildings":T?.type==="region"?"MapPinArea":T?.type==="country"?"Flag":"Circle",className:"h-5 w-5 flex-shrink-0 text-text-muted"}),jsxRuntime.jsxs("div",{className:"flex min-w-0 flex-col",children:[jsxRuntime.jsx("span",{className:"truncate font-medium text-text-body",children:R}),X&&jsxRuntime.jsx("span",{className:"truncate text-sm text-text-muted",children:X})]})]})},A=P=>P?jsxRuntime.jsx(k,{name:"CircleNotch",className:"h-4 w-4 animate-spin text-text-muted"}):jsxRuntime.jsx(k,{name:"MagnifyingGlass",className:"h-4 w-4 text-text-muted"});return jsxRuntime.jsx(Yi,{"data-testid":"autocomplete","data-config":JSON.stringify({types:g.join(","),country:x?.join(",")?.toLowerCase(),proximity:v==="ip"?"ip":v?.join(",")}),label:e||void 0,selectedKey:t,defaultSelectedKey:r,onSelectionChange:P=>{if(o?.(P),P){let E=N.current.find(R=>R.id===P);if(E){let R=w.current.get(E);R&&p({id:E.id,place_name:E.name,place_type:[R.type],center:R.center,context:R.context,address:R.address,text:R.text,properties:R.properties});}}},requestConfig:L,placeholder:n,errorMessage:a,description:i,size:s,tooltip:l,isRequired:c,isDisabled:u,showErrors:d,autoFocus:m,renderItem:D,renderLeftIcon:A,defaultFilter:f,validationResult:b,hideChevron:true,className:S})}function Mx({label:e,rightLabel:t,progressWidth:r=64,hideLabels:o=false,...n}){return jsxRuntime.jsx(reactAriaComponents.ProgressBar,{...n,className:xe(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-heading",children:e}),jsxRuntime.jsx("span",{className:"text-sm text-text-heading",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-blue-600 dark:bg-blue-500 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 RT(e="2"){return {1:"p-2 text-xs",2:"p-3 text-sm",3:"p-4 text-base"}[e]}function DT(e="default",t){return t?{default:"border-action-default text-action-default",brand:"border-action-brand text-action-brand"}[e]:"border-border text-text-body"}function AT(){return "opacity-50 cursor-not-allowed"}function vu({value:e,isDisabled:t,className:r,children:o,size:n="2",variant:a="default"}){return jsxRuntime.jsx(reactAriaComponents.Radio,{value:e,isDisabled:t,className:xe(r,`flex items-center justify-center cursor-pointer transition-all duration-200 focus:outline-none focus:ring-2 ${a==="brand"?"focus:ring-action-brand":"focus:ring-action-default"} focus:ring-offset-2 rounded-lg min-h-[44px]`),children:({isSelected:s,isDisabled:l})=>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||l)&&!s&&"hover:bg-background-hover hover:border-border-hover",RT(n),DT(a,s),(t||l)&&AT(),r),children:o})})}function Cu({value:e,defaultValue:t,onChange:r,isDisabled:o,isReadOnly:n,isRequired:a,className:i,children:s,size:l="2",variant:c="default",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:xe(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:De__namespace.default.Children.map(s,m=>De__namespace.default.isValidElement(m)?De__namespace.default.cloneElement(m,{size:l,variant:c}):m)})}var Ex=De.createContext({variant:"brand"});function Ix(e){let{variant:t="default",...r}=e;return jsxRuntime.jsx(Ex.Provider,{value:{variant:t},children:jsxRuntime.jsxs(reactAriaComponents.RadioGroup,{...r,className:xe(e.className,"group flex flex-col gap-2"),children:[jsxRuntime.jsx(Re,{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(he,{children:e.description}),jsxRuntime.jsx(se,{children:typeof e.errorMessage=="function"&&e.validationResult?e.errorMessage(e.validationResult):typeof e.errorMessage=="string"?e.errorMessage:null})]})})}function FT({isSelected:e,isInvalid:t,isDisabled:r,variant:o="brand"}){let n=o==="brand"?"focus-visible:outline-action-brand":"focus-visible:outline-action-default",a=[Ie(),n,"w-5 h-5 rounded-full border-2 bg-background-surface transition-all"];if(r)a.push("border-border-muted forced-colors:!border-[GrayText]");else if(t)a.push("border-feedback-error-border group-pressed:border-feedback-error-border dark:group-pressed:border-feedback-error-border forced-colors:!border-[Mark]");else if(e){let i=o==="brand"?"action-brand":"action-default";a.push(`border-[7px] border-${i} forced-colors:!border-[Highlight] group-pressed:border-${i}-hover dark:group-pressed:border-${i}-hover`);}else a.push("border-border-default group-pressed:border-border-focus dark:group-pressed:border-border-focus");return a.join(" ")}function Fx(e){let{variant:t}=De.useContext(Ex);return jsxRuntime.jsx(reactAriaComponents.Radio,{...e,className:xe(e.className,"group flex items-center gap-2 text-sm text-text-body transition disabled:text-text-muted dark:text-text-body dark:disabled:text-text-muted forced-colors:disabled:text-[GrayText]"),children:r=>jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("div",{className:FT({...r,variant:t})}),e.children]})})}var cn=({isActive:e=false,onPress:t,children:r})=>jsxRuntime.jsx(_,{variant:e?"secondary":"ghost",size:"sm",onPress:t,className:"p-1",children:r});function YT({initialUrl:e,isOpen:t,onClose:r,onSubmit:o}){let[n,a]=De.useState(e);return De__namespace.default.useEffect(()=>{a(e);},[e]),jsxRuntime.jsx(Vt,{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(xt,{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(_,{variant:"secondary",onPress:r,children:"Cancel"}),jsxRuntime.jsx(_,{type:"submit",children:"Save"})]})]})})})})}function Vx({initialContent:e="",onChange:t,className:r,isDisabled:o=false,placeholder:n="Start typing...",id:a}){let[i,s]=De.useState(false),l=react.useEditor({immediatelyRender:false,extensions:[GT__default.default.configure({heading:{levels:[1,2]}}),zT__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:d})=>{t?.(d.getHTML());},editorProps:{attributes:{class:tailwindMerge.twMerge("prose prose-sm max-w-none","focus:outline-none","[&>*:first-child]:mt-0 [&>*:last-child]:mb-0")}}}),c=()=>{s(true);},u=d=>{d===""?l?.chain().focus().unsetLink().run():l?.chain().focus().setLink({href:d}).run();};return l?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:[l&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsxs(menus.BubbleMenu,{editor:l,shouldShow:({editor:d})=>d.isActive("link")&&!i,className:"flex items-center gap-1 rounded-md border border-border-input bg-background-surface p-1 shadow-md",children:[jsxRuntime.jsxs(_,{variant:"ghost",size:"sm",className:"h-8 px-2",onPress:()=>{let d=l.getAttributes("link").href;window.open(d,"_blank");},children:[jsxRuntime.jsx(k,{name:"ArrowSquareOut",className:"mr-1 h-4 w-4"}),"Open"]}),jsxRuntime.jsxs(_,{variant:"ghost",size:"sm",className:"h-8 px-2",onPress:c,children:[jsxRuntime.jsx(k,{name:"PencilSimple",className:"mr-1 h-4 w-4"}),"Edit"]}),jsxRuntime.jsxs(_,{variant:"ghost",size:"sm",className:"h-8 px-2",onPress:()=>l.chain().focus().unsetLink().run(),children:[jsxRuntime.jsx(k,{name:"X",className:"mr-1 h-4 w-4"}),"Remove"]})]}),jsxRuntime.jsx(YT,{isOpen:i,onClose:()=>s(false),onSubmit:u,initialUrl:l.getAttributes("link").href||""})]}),jsxRuntime.jsxs("div",{className:"flex items-center gap-1 border-b border-border-input p-2",children:[jsxRuntime.jsx(cn,{isActive:l.isActive("heading",{level:1}),onPress:()=>l.chain().focus().toggleHeading({level:1}).run(),children:jsxRuntime.jsx("span",{className:"text-xs font-bold",children:"H1"})}),jsxRuntime.jsx(cn,{isActive:l.isActive("heading",{level:2}),onPress:()=>l.chain().focus().toggleHeading({level:2}).run(),children:jsxRuntime.jsx("span",{className:"text-xs font-bold",children:"H2"})}),jsxRuntime.jsx(cn,{isActive:l.isActive("bold"),onPress:()=>l.chain().focus().toggleBold().run(),children:jsxRuntime.jsx("span",{className:"text-xs font-bold",children:"B"})}),jsxRuntime.jsx(cn,{isActive:l.isActive("italic"),onPress:()=>l.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(cn,{isActive:l.isActive("bulletList"),onPress:()=>l.chain().focus().toggleBulletList().run(),children:jsxRuntime.jsx(k,{name:"ListBullets",className:"h-4 w-4"})}),jsxRuntime.jsx(cn,{isActive:l.isActive("orderedList"),onPress:()=>l.chain().focus().toggleOrderedList().run(),children:jsxRuntime.jsx(k,{name:"ListNumbers",className:"h-4 w-4"})}),jsxRuntime.jsx("div",{className:"mx-1 h-4 w-px bg-border-muted"}),jsxRuntime.jsx(cn,{isActive:l.isActive("link"),onPress:c,children:jsxRuntime.jsx(k,{name:"PaperclipHorizontal",className:"h-4 w-4"})})]}),jsxRuntime.jsxs("div",{className:"relative min-h-[200px] w-full outline-none focus:outline-none",children:[jsxRuntime.jsx(react.EditorContent,{editor:l,className:tailwindMerge.twMerge("w-full p-4 outline-none focus:outline-none","[&_.ProseMirror]:min-h-[inherit]","[&_.ProseMirror]:outline-none [&_.ProseMirror]:focus:outline-none","[&_.ProseMirror_h1]:mb-4 [&_.ProseMirror_h1]:text-2xl [&_.ProseMirror_h1]:font-bold","[&_.ProseMirror_h2]:mb-3 [&_.ProseMirror_h2]:text-xl [&_.ProseMirror_h2]:font-semibold","[&_.ProseMirror_p]:mb-2","[&_.ProseMirror_ul]:mb-2 [&_.ProseMirror_ul]:ml-6 [&_.ProseMirror_ul]:list-disc","[&_.ProseMirror_ol]:mb-2 [&_.ProseMirror_ol]:ml-6 [&_.ProseMirror_ol]:list-decimal","[&_.ProseMirror_li]:mb-1","[&_.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")}),l.isEmpty&&!o&&jsxRuntime.jsx("div",{className:"pointer-events-none absolute left-4 top-4 text-text-muted",children:n})]})]}):null}var ZT={sm:"h-8 text-xs",md:"h-10 text-sm",lg:"h-12 text-base",xl:"h-14 text-lg"},XT={sm:14,md:16,lg:18,xl:20},jT=({isSelected:e,isFirst:t,isLast:r,isDisabled:o,variant:n="default"})=>{let a=n==="brand"?"action-brand":"action-default",i=n==="brand"?"focus-visible:outline-action-brand":"focus-visible:outline-action-default";return n==="secondary"?tailwindMerge.twMerge(Ie(),"focus-visible:outline-action-default","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-heading font-medium forced-colors:!bg-[Highlight] forced-colors:!text-[HighlightText]":"text-text-muted 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(Ie(),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-${a} text-[color:var(--color-${a}-text)] font-semibold forced-colors:!bg-[Highlight] forced-colors:!text-[HighlightText]`:"text-text-muted 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 hl({options:e,value:t,onChange:r,size:o="md",className:n,isDisabled:a,variant:i="default","aria-label":s}){return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("inline-flex overflow-hidden rounded-md",i==="secondary"?"border border-border-muted":"border-2 border-border-muted",ZT[o],n),role:"group","aria-label":s,children:e.map((l,c)=>jsxRuntime.jsxs(reactAriaComponents.ToggleButton,{isSelected:t===l.id,onChange:()=>r(l.id),className:jT({isSelected:t===l.id,isFirst:c===0,isLast:c===e.length-1,isDisabled:a,variant:i}),isDisabled:a,"aria-label":l.label,children:[l.icon&&jsxRuntime.jsx(k,{name:l.icon,size:XT[o]}),l.label]},l.id))})}function Hx({streetAddress:e,city:t,state:r,postalCode:o,longitude:n,latitude:a,href:i,LinkComponent:s,variant:l="outlined",layout:c="stacked",showMap:u=true,mapHeight:d=200,mapboxAccessToken:m,isLoading:p=false,className:g,contentClassName:f,showMapExpandToggle:b=false,expandedMapTitle:x="Explore map",expandedMapAddressLabel:v,piiEntity:y}){let C=[];t&&C.push(t),r&&o?C.push(`${r} ${o}`):r?C.push(r):o&&C.push(o);let S=C.join(", "),w=v||[e,S].filter(Boolean).join(", "),N=u&&n!==void 0&&a!==void 0,L=({children:A,className:P})=>i?s?jsxRuntime.jsx(s,{href:i,className:P,children:A}):jsxRuntime.jsx(Oe,{href:i,variant:"unstyled",className:tailwindMerge.twMerge("hover:underline",P),asButton:false,children:A}):jsxRuntime.jsx("span",{className:P,children:A});if(p){let A=c==="row";return jsxRuntime.jsxs(Le,{variant:l,className:tailwindMerge.twMerge(A?"flex flex-col md:flex-row":"flex flex-col",g),children:[N&&jsxRuntime.jsx(Le.Media,{aspectRatio:"auto",className:tailwindMerge.twMerge(A&&"md:order-2 md:flex-[2] md:min-w-0"),children:jsxRuntime.jsx(V,{width:"100%",height:d})}),jsxRuntime.jsxs(Le.Content,{className:tailwindMerge.twMerge("space-y-2 px-4 md:px-6",A&&"md:order-1 md:flex-[1] md:flex-shrink-0 md:flex md:flex-col md:justify-center"),children:[jsxRuntime.jsx(V,{width:"100%",height:16}),jsxRuntime.jsx(V,{width:"80%",height:16})]})]})}let D=c==="row";return jsxRuntime.jsxs(Le,{variant:l,className:tailwindMerge.twMerge("group/card relative",i&&"cursor-pointer",D?"flex flex-col md:flex-row":"flex flex-col",g),children:[i&&jsxRuntime.jsx(L,{className:"after:absolute after:inset-0 after:z-10",children:jsxRuntime.jsx("span",{className:"sr-only",children:e})}),N&&jsxRuntime.jsx(Le.Media,{aspectRatio:"auto",className:tailwindMerge.twMerge(D&&"md:order-2 md:flex-[2] md:min-w-0"),children:jsxRuntime.jsx(qn,{height:d,initialViewState:{longitude:n,latitude:a,zoom:14},showMarker:true,mapboxAccessToken:m,showExpandToggle:b,expandedMapTitle:x,expandedMapAddressLabel:w})}),jsxRuntime.jsx(Le.Content,{className:tailwindMerge.twMerge("px-4 md:px-6",D&&"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-heading 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-muted","data-pii-type":y?"city-state-zip":void 0,"data-pii-entity":y,children:S})]})})]})}function Wx({site:e,contact:t,LinkComponent:r,variant:o="outlined",layout:n="stacked",showMap:a=true,mapHeight:i=200,mapboxAccessToken:s,showEmail:l=true,showPhone:c=false,isLoading:u=false,className:d,contentClassName:m,fullHeight:p=false,showMapExpandToggle:g=false,expandedMapTitle:f="Explore map",expandedMapAddressLabel:b}){let x=[];e.city&&x.push(e.city),e.state&&e.postalCode?x.push(`${e.state} ${e.postalCode}`):e.state?x.push(e.state):e.postalCode&&x.push(e.postalCode);let v=x.join(", "),y=b||[e.streetAddress,v].filter(Boolean).join(", "),C=a&&e.longitude!==void 0&&e.latitude!==void 0,S=t?`${t.firstName} ${t.lastName}`.trim():"",w=({children:L,href:D,className:A})=>D?r?jsxRuntime.jsx(r,{href:D,className:A,children:L}):jsxRuntime.jsx(Oe,{href:D,variant:"unstyled",className:tailwindMerge.twMerge("hover:underline",A),asButton:false,children:L}):jsxRuntime.jsx("span",{className:A,children:L});if(u){let L=n==="row";return jsxRuntime.jsxs(Le,{variant:o,className:tailwindMerge.twMerge(p&&"h-full",L?"flex flex-col md:flex-row":"flex flex-col",d),children:[C&&jsxRuntime.jsx(Le.Media,{aspectRatio:"auto",className:tailwindMerge.twMerge(L&&"md:order-2 md:flex-[2] md:min-w-0",p&&"flex-1"),children:jsxRuntime.jsx(V,{width:"100%",height:p?"100%":i})}),jsxRuntime.jsxs(Le.Content,{className:tailwindMerge.twMerge("space-y-4 px-4 py-4",L&&"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(V,{width:"100%",height:16}),jsxRuntime.jsx(V,{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(V,{width:40,height:40,className:"rounded flex-shrink-0"}),jsxRuntime.jsxs("div",{className:"flex-1 space-y-1",children:[jsxRuntime.jsx(V,{width:"50%",height:14}),jsxRuntime.jsx(V,{width:"100%",height:12})]})]})]})]})]})}let N=n==="row";return jsxRuntime.jsxs(Le,{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})}),C&&jsxRuntime.jsx(Le.Media,{aspectRatio:"auto",className:tailwindMerge.twMerge(N&&"md:order-2 md:flex-[2] md:min-w-0",p&&"flex-1"),children:jsxRuntime.jsx(qn,{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(Le.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-heading group-hover/card:text-text-brand transition-colors","data-pii-type":e.piiEntity?"address":void 0,"data-pii-entity":e.piiEntity,children:e.streetAddress}),v&&jsxRuntime.jsx("span",{className:"text-lg font-normal leading-relaxed text-text-muted","data-pii-type":e.piiEntity?"city-state-zip":void 0,"data-pii-entity":e.piiEntity,children:v})]}),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(Fr,{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-heading 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-heading 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:[l&&t.email&&jsxRuntime.jsxs("div",{className:"flex items-center gap-1.5 text-text-body",children:[jsxRuntime.jsx(k,{name:"Envelope",size:12,className:"text-text-muted flex-shrink-0"}),jsxRuntime.jsx(Oe,{href:`mailto:${t.email}`,variant:"unstyled",className:"text-xs leading-tight truncate text-text-body relative z-20","data-pii-type":t.piiEntity?"email":void 0,"data-pii-entity":t.piiEntity,children:t.email})]}),c&&t.phone&&jsxRuntime.jsxs("div",{className:"flex items-center gap-1.5 text-text-body",children:[jsxRuntime.jsx(k,{name:"Phone",size:12,className:"text-text-muted flex-shrink-0"}),jsxRuntime.jsx(Oe,{href:`tel:${t.phone}`,variant:"unstyled",className:"text-xs leading-tight truncate text-text-body relative z-20","data-pii-type":t.piiEntity?"phone":void 0,"data-pii-entity":t.piiEntity,children:xn(t.phone)})]})]})]})]})]})]})]})}function Ux({label:e,description:t,tooltip:r,errorMessage:o,size:n="md",className:a,value:i,defaultValue:s=0,onChange:l,min:c=0,max:u=100,step:d=1,disabled:m,showValue:p=true}){let g=typeof i=="number",[f,b]=De__namespace.default.useState(s),x=g?i:f,v=Math.min(Math.max(x,c),u),y=Math.max(u-c,1e-5),C=(v-c)/y*100;return jsxRuntime.jsxs("div",{className:xe(a,"group flex w-full flex-col gap-1"),children:[e&&jsxRuntime.jsx(Re,{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:`${C}%`},"aria-hidden":true}),jsxRuntime.jsx("input",{type:"range",min:c,max:u,step:d,value:x,disabled:m,"aria-invalid":!!o,onChange:S=>{let w=Number(S.currentTarget.value);g||b(w),l?.(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-heading tabular-nums",children:Math.round(v)})]}),t&&jsxRuntime.jsx(he,{className:"mt-2 text-text-muted",children:t}),o&&jsxRuntime.jsx(se,{className:"mt-1",children:o})]})}var r4=De__namespace.default.createContext({orientation:"horizontal",isResizing:false});function Yx(e,t){return e===void 0?t:e}function o4(e,t){return typeof e=="number"?e:typeof e=="string"&&e.endsWith("%")?Number.parseFloat(e)/100*t:Number.parseFloat(e.toString())}function vl({asideWidth:e,asideHeight:t,minAsideWidth:r=240,minAsideHeight:o=200,minMainWidth:n=400,minMainHeight:a=300,orientation:i="horizontal",resizable:s=false,onAsideResize:l,onResizeStart:c,onResizeEnd:u,className:d,dividerClassName:m,children:p}){let g=De.useRef(null),[f,b]=De.useState(false),x=i==="horizontal"?400:300,v=Yx(i==="horizontal"?e:t,x),[y,C]=De.useState(null),S=De.useCallback(T=>{if(!g.current||!f)return;let E=g.current.getBoundingClientRect(),R=i==="horizontal"?E.width:E.height,J=i==="horizontal"?T.clientX:T.clientY,q=(i==="horizontal"?E.right:E.bottom)-J,$=R-q,j=i==="horizontal"?r:o,M=i==="horizontal"?n:a;q<j||$<M||(C(q),l?.(q));},[f,i,r,o,n,a,l]),w=De.useCallback(()=>{b(false),u?.();},[u]),N=De.useCallback(T=>{T.preventDefault(),T.stopPropagation(),b(true),c?.();},[c]);De.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 L=De__namespace.default.Children.toArray(p).find(T=>De__namespace.default.isValidElement(T)&&T.type===qx),D=De__namespace.default.Children.toArray(p).find(T=>De__namespace.default.isValidElement(T)&&T.type===Zx),A=y??v,P=typeof A=="number"?`${A}px`:A;return jsxRuntime.jsx(r4.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:L}),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:T=>{if(!g.current)return;let E=g.current.getBoundingClientRect(),R=i==="horizontal"?E.width:E.height,J=y??o4(v,R),X=20,q=i==="horizontal"?r:o,$=i==="horizontal"?n:a;if(i==="horizontal"){if(T.key==="ArrowLeft"){let j=Math.min(J+X,R-$);C(j),l?.(j);}else if(T.key==="ArrowRight"){let j=Math.max(J-X,q);C(j),l?.(j);}}else if(T.key==="ArrowUp"){let j=Math.min(J+X,R-$);C(j),l?.(j);}else if(T.key==="ArrowDown"){let j=Math.max(J-X,q);C(j),l?.(j);}},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"]:P},children:D})]})})}function qx({className:e,children:t}){return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("w-full h-full",e),children:t})}function Zx({className:e,children:t}){return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("w-full h-full",e),children:t})}vl.Main=qx;vl.Aside=Zx;var a4=e=>{let t=ft({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 Xx({label:e,description:t,errorMessage:r,size:o="md",tooltip:n,required:a,transparent:i,isInvalid:s,isDisabled:l,isResizable:c=false,className:u,validationResult:d,reserveErrorSpace:m=true,...p}){let{isFocused:g,handleFocus:f,handleBlur:b}=_t();return jsxRuntime.jsx("div",{className:"group flex flex-col",children:jsxRuntime.jsxs("div",{className:"flex flex-col",children:[e&&jsxRuntime.jsx(Re,{size:o,tooltip:n,isRequired:a,children:e}),jsxRuntime.jsx(tt,{children:jsxRuntime.jsx("textarea",{...p,required:a,onFocus:x=>{p.onFocus&&p.onFocus(x),f(x);},onBlur:x=>{p.onBlur&&p.onBlur(x),b(x);},className:a4({isInvalid:s,isDisabled:l,isResizable:c,isFocused:g,size:o,transparent:i,className:u}),disabled:l})}),m?jsxRuntime.jsx("div",{className:"mt-1 min-h-[20px]",children:typeof r=="string"?jsxRuntime.jsx(se,{size:o,children:r}):typeof r=="function"&&d?jsxRuntime.jsx(se,{size:o,children:r(d)}):t?jsxRuntime.jsx(he,{size:o,children:t}):null}):jsxRuntime.jsx(jsxRuntime.Fragment,{children:typeof r=="string"?jsxRuntime.jsx(se,{size:o,className:"mt-1",children:r}):typeof r=="function"&&d?jsxRuntime.jsx(se,{size:o,className:"mt-1",children:r(d)}):t?jsxRuntime.jsx(he,{size:o,className:"mt-1",children:t}):null})]})})}function _x({label:e,description:t,errorMessage:r,size:o="md",tooltip:n,required:a,transparent:i,isInvalid:s,isDisabled:l,isResizable:c=false,className:u,validationResult:d,value:m="",onChange:p,chips:g=[],onChipsChange:f,triggerPattern:b="{{",onTriggerDetected:x,onTriggerDismissed:v,renderChip:y,chipVariant:C="brand",chipSize:S,...w}){let N=De.useRef(null),{isFocused:L,handleFocus:D,handleBlur:A}=_t(),P=S||"sm",T=De.useRef(null),E=De.useCallback(M=>{let W="",U=I=>{if(I.nodeType===Node.TEXT_NODE){if(!I.parentElement?.closest("[data-chip-id]")){let F=I.textContent||"";W+=F;}}else if(I.nodeType===Node.ELEMENT_NODE){let Y=I;if(Y.hasAttribute("data-chip-id")){let F=Y.getAttribute("data-chip-id");W+=`{{${F}}}`;return}else if(Y.tagName==="BR"){W+=`
109
- `;return}else Y.tagName;}for(let Y=0;Y<I.childNodes.length;Y++)U(I.childNodes[Y]);};return U(M),W},[]),R=De.useCallback((M,W)=>{let U=document.createTreeWalker(M,NodeFilter.SHOW_TEXT,{acceptNode:z=>{let B=z.parentElement;return B&&B.closest("[data-chip-id]")?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT}}),I=U.nextNode(),Y=Math.max(0,W);for(;I;){let z=I.nodeValue||"";if(z.length>=Y){let B=document.createRange();B.setStart(I,Y),B.collapse(true);let G=window.getSelection();G?.removeAllRanges(),G?.addRange(B);return}Y-=z.length,I=U.nextNode();}let F=window.getSelection(),h=document.createRange();h.selectNodeContents(M),h.collapse(false),F?.removeAllRanges(),F?.addRange(h);},[]);De.useEffect(()=>{N.current&&!m&&N.current.textContent!==""&&(N.current.textContent="");},[m]),De.useLayoutEffect(()=>{if(N.current){if(m===""){if(L)try{N.current.focus({preventScroll:!0}),R(N.current,0);}catch{}return}if(T.current!=null)try{R(N.current,T.current);}finally{T.current=null;}}},[m,R,L]);let J=De.useCallback((M,W)=>{if(p?.(M),M===""){v?.();return}if(b&&x&&W!==void 0){let U=M.slice(0,W),I=typeof b=="string"?new RegExp(`\\${b}([^\\s]*)$`):b,Y=U.match(I);if(Y){let F=Y[1]||"",h=W-Y[0].length;x({query:F,position:W,startIndex:h});}else v?.();}},[p,b,x,v]),X=De.useCallback(M=>{if(!f||!p)return;let W=g.filter(I=>I.id!==M);f(W);let U=m.replace(new RegExp(`\\{\\{${M}\\}\\}`,"g"),"");p(U);},[g,f,m,p]),q=De.useCallback(M=>y?y(M,()=>X(M.id)):jsxRuntime.jsx(Cr,{variant:C,size:P,onRemove:l?void 0:()=>X(M.id),isDisabled:l,className:"py-0.5 px-1.5 gap-1 text-xs leading-none rounded-md",children:M.label},M.id),[y,C,P,X,l]),$=()=>{let M=ft({isInvalid:s,isDisabled:l,isFocused:L,transparent:i,size:o}),W=`min-h-[100px] py-2 px-3 ${l?"resize-none":c?"resize-y":"resize-none"}`,U=tailwindMerge.twMerge("focus:outline-none overflow-auto","[&_[data-chip-id]::selection]:bg-action-brand/20","[&:empty]:before:content-[attr(data-placeholder)] [&:empty]:before:text-text-placeholder [&:empty]:before:pointer-events-none");return tailwindMerge.twMerge(M,W,U,u)},j=()=>m?m.split(/(\{\{[^}]+\}\})/g).map((W,U)=>{let I=W.match(/\{\{([^}]+)\}\}/);if(I){let Y=I[1],F=g.find(h=>h.id===Y);if(F)return jsxRuntime.jsx("span",{className:"inline-block align-baseline cursor-pointer",contentEditable:false,suppressContentEditableWarning:true,"data-chip-id":Y,style:{userSelect:"none",verticalAlign:"baseline",lineHeight:"1"},onClick:h=>{h.preventDefault();let z=window.getSelection(),B=document.createRange();B.selectNode(h.currentTarget),z?.removeAllRanges(),z?.addRange(B);},children:q(F)},`chip-${Y}-${U}`)}return W.includes(`
110
- `)?W.split(`
111
- `).map((Y,F)=>jsxRuntime.jsxs(De__namespace.default.Fragment,{children:[Y,F<W.split(`
112
- `).length-1&&jsxRuntime.jsx("br",{})]},`line-${U}-${F}`)):W}):null;return jsxRuntime.jsx("div",{className:"group flex flex-col",children:jsxRuntime.jsxs("div",{className:"flex flex-col",children:[e&&jsxRuntime.jsx(Re,{size:o,tooltip:n,isRequired:a,children:e}),jsxRuntime.jsx(tt,{children:jsxRuntime.jsx("div",{ref:N,contentEditable:!l,suppressContentEditableWarning:true,onInput:M=>{if(l)return;let W=M.target,U=W.querySelector("[data-chip-id]")!==null,I;if(U?(I=E(W),I=I.replace(/(\{\{[^}]+\}\})\s{2,}/g,"$1 ").replace(/\s{2,}(\{\{[^}]+\}\})/g," $1")):I=W.textContent||"",I===""){try{let h=document.createRange();h.selectNodeContents(W),h.collapse(!0);let z=window.getSelection();z?.removeAllRanges(),z?.addRange(h),T.current=0;}catch{}J("",0);return}if(I===m)return;let Y=window.getSelection(),F=0;if(Y&&Y.rangeCount>0)try{let h=Y.getRangeAt(0);if(U){let z=0,B=!1,G=oe=>{if(B)return !0;if(oe===h.startContainer)return z+=h.startOffset,B=!0,!0;if(oe.nodeType===Node.TEXT_NODE){if(!oe.parentElement?.closest("[data-chip-id]")){if(oe.contains(h.startContainer))return z+=h.startOffset,B=!0,!0;z+=(oe.textContent||"").length;}}else if(oe.nodeType===Node.ELEMENT_NODE){let me=oe;if(me.hasAttribute("data-chip-id")){if(me.contains(h.startContainer)||me===h.startContainer){let Q=me.getAttribute("data-chip-id");return z+=`{{${Q}}}`.length,B=!0,!0}let O=me.getAttribute("data-chip-id");return z+=`{{${O}}}`.length,!1}else if(me.tagName==="BR")return me===h.startContainer?(B=!0,!0):(z+=1,!1)}for(let me=0;me<oe.childNodes.length;me++)if(G(oe.childNodes[me]))return !0;return !1};G(W),F=z;}else {let z=document.createRange();z.setStart(W,0),z.setEnd(h.startContainer,h.startOffset),F=z.toString().length;}}catch{F=I.length;}T.current=F,J(I,F);},onKeyDown:M=>{if(l)return;let W=window.getSelection();if(!(!W||W.rangeCount===0))try{let U=W.getRangeAt(0),I=U.commonAncestorContainer;if(M.key==="ArrowLeft"||M.key==="ArrowRight"){let Y=I.nodeType===Node.TEXT_NODE?I.parentElement?.closest("[data-chip-id]"):I.closest("[data-chip-id]");if(Y){M.preventDefault();try{let F=document.createRange(),h=window.getSelection();M.key==="ArrowLeft"?F.setStartBefore(Y):F.setStartAfter(Y),F.collapse(!0),h?.removeAllRanges(),h?.addRange(F);}catch{}}}if(M.key==="Backspace"){let Y=null;if(Y=(I.nodeType===Node.TEXT_NODE?I.parentElement?.closest("[data-chip-id]"):I.closest("[data-chip-id]"))||null,!Y)if(I.nodeType===Node.TEXT_NODE){let F=I;if(U.startOffset===0&&F.parentElement){let h=F.previousSibling;if(h&&h.nodeType===Node.ELEMENT_NODE){let z=h.closest("[data-chip-id]");z&&(Y=z);}}}else {let F=I;if(U.startOffset>0){let h=F.childNodes[U.startOffset-1];if(h&&h.nodeType===Node.ELEMENT_NODE){let z=h.closest("[data-chip-id]");z&&(Y=z);}}}if(Y){M.preventDefault(),M.stopPropagation();let F=Y.getAttribute("data-chip-id");if(!F)return;let h=`{{${F}}}`,z=m.indexOf(h);if(z!==-1){let B=m.slice(0,z)+m.slice(z+h.length),G=g.filter(oe=>oe.id!==F);T.current=z;try{window.getSelection()?.removeAllRanges();}catch{}f?.(G),p?.(B);}}}}catch{}},onFocus:M=>{l||(w.onFocus&&w.onFocus(M),D(M));},onBlur:M=>{l||(w.onBlur&&w.onBlur(M),A(M));},className:$(),style:{whiteSpace:"pre-wrap",wordBreak:"break-word",...w.style},"data-placeholder":w.placeholder,children:j()},m===""?"empty":"content")}),t&&jsxRuntime.jsx(he,{size:o,className:"mt-3",children:t}),typeof r=="string"&&jsxRuntime.jsx(se,{size:o,className:"mt-1",children:r}),typeof r=="function"&&d&&jsxRuntime.jsx(se,{size:o,className:"mt-1",children:r(d)})]})})}function m4(e){return e instanceof Date&&!Number.isNaN(e.getTime())}function Pu(e){return m4(e)?e:(console.warn("Invalid date detected in TimeControls, using fallback:",e),new Date)}var rh={FIFTEEN_MINUTES:1,HOUR:2,DAY:3,WEEK:4,MONTH:5,YEAR:6},f4=[{id:"FIFTEEN_MINUTES",label:"15m"},{id:"HOUR",label:"1h"},{id:"DAY",label:"1d"},{id:"WEEK",label:"1w"}];function oh({dateRange:e,onDateRangeChange:t,windowSize:r,onWindowSizeChange:o,showWindowSize:n=true,showRangeSelector:a=true,allowDatePicker:i=false,lockWindowSize:s=false,restrictToSingleDay:l=false,presetRanges:c=[],windowSizeOptions:u=f4,autoAdjustWindowSize:d=false,className:m}){let[p,g]=De.useState(0),f=De.useRef(null),[b,x]=De.useState(false),v=M=>{let U=(M.before.getTime()-M.after.getTime())/(1e3*60*60);return U<=24?"FIFTEEN_MINUTES":U<=72||U<=168?"HOUR":("DAY")};De.useEffect(()=>{if(d&&!b&&o){let M=v(e);o(M);}},[e,d,b,o]);let y=M=>c.find(W=>{let U=W.getRange();return Math.abs(U.after.getTime()-M.after.getTime())<1e3*60*60*24&&Math.abs(U.before.getTime()-M.before.getTime())<1e3*60*60*24})?.id,[C,S]=De.useState(()=>y(e)),w=Pu(e.after),N=Pu(e.before),L=new Date(N);L.setDate(L.getDate()-1);let D={start:Fi(w,Ao()),end:Fi(L,Ao())};De.useEffect(()=>{let M=new ResizeObserver(W=>{for(let U of W)g(U.contentRect.width);});return f.current&&M.observe(f.current),()=>{f.current&&M.unobserve(f.current);}},[]);let A=[...u].sort((M,W)=>rh[M.id]-rh[W.id]),P=M=>{let W=M.toString(),U=c.find(I=>I.id===W);U&&(S(W),x(false),t(U.getRange()));},T=M=>{if(M?.start&&M?.end){S(void 0);let W=new Date(M.start.year,M.start.month-1,M.start.day,0,0,0,0),U=new Date(M.end.year,M.end.month-1,M.end.day+1,0,0,0,0);t({after:W,before:U});}},E=M=>{if(M){S(void 0);let W=new Date(M.year,M.month-1,M.day,0,0,0,0),U=new Date(M.year,M.month-1,M.day+1,0,0,0,0);t({after:W,before:U});}},R=M=>{o&&(x(true),o(M.toString()));},J=()=>{if(c.length>0){let M=c[0];S(M.id),x(false),t(M.getRange());}},X=(M,W=0)=>{let U=Pu(M),I=new Date(U);return W!==0&&I.setDate(I.getDate()+W),I.toLocaleDateString("en-US")},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-muted",children:A.find(M=>M.id===r)?.label||r}):jsxRuntime.jsx(Mo,{className:"w-full md:w-auto",selectedKey:r,onSelectionChange:R,size:"md","aria-label":"Select Window Size",children:A.map(M=>jsxRuntime.jsx(Rt,{id:M.id,"aria-label":M.label,size:"md",children:M.label},M.id))}),$=l?jsxRuntime.jsx("div",{className:"flex items-center",children:jsxRuntime.jsxs(reactAriaComponents.DialogTrigger,{children:[jsxRuntime.jsxs(_,{className:"border-l pl-2 pr-2 hover:border-border-default hover:bg-background-muted hover:text-action-primary",variant:"secondary",children:[jsxRuntime.jsx(k,{name:"CalendarBlank",size:18}),jsxRuntime.jsx("span",{className:"ml-2 hidden md:block",children:X(e.after)})]}),jsxRuntime.jsx(qe,{className:"w-auto p-3",disableGroup:true,children:jsxRuntime.jsx(Tn,{"aria-label":"Select date",value:fa(w.toISOString().split("T")[0]),onChange:E})})]})}):jsxRuntime.jsxs("div",{className:"flex items-center",children:[jsxRuntime.jsxs(reactAriaComponents.DialogTrigger,{children:[jsxRuntime.jsxs(_,{className:"rounded-r-none border-l pl-2 pr-2 hover:border-border-default hover:bg-background-muted hover:text-action-primary",variant:"secondary",children:[jsxRuntime.jsx(k,{name:"CalendarBlank",size:18}),!C&&jsxRuntime.jsx("span",{className:"ml-2 hidden md:block",children:`${X(e.after)} - ${X(e.before,-1)}`})]}),jsxRuntime.jsx(qe,{className:"w-auto p-3",disableGroup:true,children:jsxRuntime.jsx(Bn,{"aria-label":"Date range calendar",value:D,onChange:T})})]}),!C&&jsxRuntime.jsx(_,{variant:"ghost",size:"md",onPress:J,children:"Reset"})]}),j=p<600;return jsxRuntime.jsx("div",{ref:f,className:tailwindMerge.twMerge("flex w-full flex-wrap items-center justify-between gap-4",m),children:j?jsxRuntime.jsxs("div",{className:"flex w-full justify-between",children:[jsxRuntime.jsxs("div",{className:"flex items-center",children:[i&&$,a&&C!==void 0&&jsxRuntime.jsx(Mo,{selectedKey:C,onSelectionChange:P,size:"md","aria-label":"Select Date Range",children:c.map(M=>jsxRuntime.jsx(Rt,{id:M.id,size:"md",children:M.label},M.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&&$,a&&C!==void 0&&jsxRuntime.jsx(hl,{options:c.map(M=>({id:M.id,label:M.label})),value:C,onChange:P,size:"sm",variant:"secondary","aria-label":"Select Date Range"})]}),jsxRuntime.jsx("div",{className:"flex items-center",children:n&&r&&q})]})})}function y4({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-placeholder italic":"text-text-body",t?"text-text-disabled cursor-not-allowed":"cursor-text",!t&&"hover:bg-background-hover","data-[focused]:bg-background-selected data-[focused]:text-text-body")}function ah({label:e,description:t,errorMessage:r,size:o="md",tooltip:n,isRequired:a,isDisabled:i,isInvalid:s,reserveErrorSpace:l=true,validationResult:c,className:u,descriptionPlacement:d="below",...m}){return jsxRuntime.jsxs(reactAriaComponents.TimeField,{...m,isDisabled:i,isRequired:a,isInvalid:s,className:xe(u,"flex flex-col gap-1"),children:[e&&jsxRuntime.jsx(Re,{size:o,tooltip:n,description:d==="tooltip"||d==="inline"?t:void 0,descriptionPlacement:d,isRequired:a,children:e}),jsxRuntime.jsx(tt,{children:jsxRuntime.jsx(reactAriaComponents.DateInput,{className:tailwindMerge.twMerge(to({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:y4({isPlaceholder:p.isPlaceholder,isDisabled:!p.isEditable||i,size:o})})})}),l?jsxRuntime.jsx("div",{className:"mt-1 min-h-[20px]",children:typeof r=="string"?jsxRuntime.jsx(se,{size:o,children:r}):typeof r=="function"&&c?jsxRuntime.jsx(se,{size:o,children:r(c)}):t&&d==="below"?jsxRuntime.jsx(he,{size:o,children:t}):null}):jsxRuntime.jsx(jsxRuntime.Fragment,{children:typeof r=="string"?jsxRuntime.jsx(se,{size:o,className:"mt-1",children:r}):typeof r=="function"&&c?jsxRuntime.jsx(se,{size:o,className:"mt-1",children:r(c)}):t&&d==="below"?jsxRuntime.jsx(he,{size:o,className:"mt-1",children:t}):null})]})}function ih({children:e,className:t=""}){return jsxRuntime.jsx("div",{className:`flex flex-col ${t}`.trim(),role:"list",children:e})}function sh({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-caption",content:"text-text-body"},active:{dot:"bg-text-heading border-text-heading",line:"bg-border-default",label:"text-text-caption",content:"text-text-body font-medium"},muted:{dot:"bg-border-muted border-border-muted",line:"bg-border-muted",label:"text-text-muted",content:"text-text-muted"},success:{dot:"bg-feedback-success-border border-feedback-success-border",line:"bg-border-default",label:"text-text-caption",content:"text-text-body"},error:{dot:"bg-feedback-error-border border-feedback-error-border",line:"bg-border-default",label:"text-text-caption",content:"text-text-body"},warning:{dot:"bg-feedback-warning-border border-feedback-warning-border",line:"bg-border-default",label:"text-text-caption",content:"text-text-body"},info:{dot:"bg-feedback-info-border border-feedback-info-border",line:"bg-border-default",label:"text-text-caption",content:"text-text-body"}}[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(k,{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})]})]})}var w4="flex font-medium justify-center items-center gap-2 text-center transition whitespace-nowrap box-border",lh={default:{selected:"bg-action-default text-[color:var(--color-action-default-text)] hover:bg-action-default-hover forced-colors:bg-[ButtonText] forced-colors:text-[ButtonFace] border-2 border-transparent",unselected:"bg-transparent text-action-default border-2 border-border-muted hover:bg-text-body/[0.05] forced-colors:border-[ButtonBorder] forced-colors:bg-[ButtonFace] forced-colors:text-[ButtonText]"},brand:{selected:"bg-action-brand text-[color:var(--color-action-brand-text)] hover:bg-action-brand-hover forced-colors:bg-[ButtonText] forced-colors:text-[ButtonFace] border-2 border-transparent",unselected:"bg-transparent text-action-default border-2 border-border-muted hover:bg-text-body/[0.05] forced-colors:border-[ButtonBorder] forced-colors:bg-[ButtonFace] forced-colors:text-[ButtonText]"}},k4="opacity-[--control-hover-opacity] cursor-not-allowed pointer-events-none grayscale",T4="opacity-100 cursor-pointer",P4={"top-right":"-right-2 -top-2","top-left":"-left-2 -top-2","bottom-right":"-right-2 -bottom-2","bottom-left":"-left-2 -bottom-2"},R4={primary:"bg-action-brand text-white",destructive:"bg-action-destructive text-white"};function D4(e){let{variant:t="default",size:r="md",isDisabled:o,isSelected:n,borderRadius:a,borderRight:i,borderLeft:s}=e,l=`${w4} ${n?lh[t].selected:lh[t].unselected}`;return l+=` ${Ae[r].text} ${Ae[r].height} ${Ae[r].padding} ${Ae[r].gap}`,l+=` ${o?k4:T4}`,a==="left"&&(l+=" rounded-l-sm"),a==="right"&&(l+=" rounded-r-sm"),i&&(l+=" border-r"),s&&(l+=" border-l"),l+=` ${Ie()}`,t==="brand"&&(l+=" focus-visible:outline-action-brand"),tailwindMerge.twMerge(l)}function dh(e){let{className:t,children:r,onPress:o,icon:n,iconPosition:a="left",iconWeight:i,isLoading:s=false,loadingText:l,loadingIndicator:c,size:u="md",badgeNumber:d,badgeVariant:m="primary",badgePosition:p="top-right",...g}=e,f=n?jsxRuntime.jsx(k,{name:n,size:u,weight:i}):null,b=()=>{let v=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:c||jsxRuntime.jsx(k,{name:"CircleNotch",size:u,className:"animate-spin","aria-hidden":"true"})}),jsxRuntime.jsx("div",{className:"invisible","aria-hidden":"true",children:v}),l&&jsxRuntime.jsx("span",{className:"sr-only",role:"status","aria-live":"polite",children:l})]}):v},x=jsxRuntime.jsx(reactAriaComponents.ToggleButton,{onPress:o,...g,className:tailwindMerge.twMerge(D4(e),t),"aria-busy":s,children:b()});return d&&d>0?jsxRuntime.jsxs("div",{className:"relative",children:[x,jsxRuntime.jsx("span",{className:`absolute ${P4[p]} flex h-5 w-5 items-center justify-center rounded-full ${R4[m]} text-xs`,"aria-label":`${d} items`,children:d})]}):x}var oi={app:{icon:"AppWindow",label:{singular:"App",plural:"Apps"},description:"Workspace and integration apps"},site:{icon:"MapPin",label:{singular:"Site",plural:"Sites"},description:"Physical locations with energy systems"},device:{icon:"ShareNetwork",label:{singular:"Device",plural:"Devices"},description:"Connected energy devices"},customer:{icon:"Users",label:{singular:"Customer",plural:"Customers"},description:"End customers and site owners"},contact:{icon:"Users",label:{singular:"Contact",plural:"Contacts"},description:"Contact persons"},program:{icon:"ClipboardText",label:{singular:"Program",plural:"Programs"},description:"Demand response and VPP programs"},workflow:{icon:"FlowArrow",label:{singular:"Workflow",plural:"Workflows"},description:"Automated workflows and rules"},collection:{icon:"Stack",label:{singular:"Collection",plural:"Collections"},description:"Grouped entities"},board:{icon:"SquaresFour",label:{singular:"Board",plural:"Boards"},description:"Dashboard and monitoring boards"},report:{icon:"ChartLine",label:{singular:"Report",plural:"Reports"},description:"Analytics and reports"},event:{icon:"ClockCounterClockwise",label:{singular:"Event",plural:"Events"},description:"System events and activity"},alert:{icon:"Warning",label:{singular:"Alert",plural:"Alerts"},description:"Notifications and alerts"},command:{icon:"Play",label:{singular:"Command",plural:"Commands"},description:"Device commands and control"}};function L4(e){return oi[e]}function M4(e){return oi[e].icon}function E4(e,t=false){return t?oi[e].label.plural:oi[e].label.singular}function I4({formId:e="dialog-form",onSubmit:t,primaryLabel:r="Save",secondaryLabel:o="Cancel",onCancel:n,primaryVariant:a,secondaryVariant:i="secondary",children:s,title:l,...c}){return jsxRuntime.jsx(Zt,{title:l,primaryAction:{label:r,onPress:()=>{let d=document.getElementById(e);d&&d.requestSubmit();},variant:a},secondaryAction:n?{label:o,onPress:n,variant:i}:void 0,...c,children:jsxRuntime.jsx(Gn,{id:e,onSubmit:t,children:s})})}function F4({formId:e="drawer-form",onSubmit:t,primaryLabel:r="Save",secondaryLabel:o="Cancel",onCancel:n,primaryVariant:a,secondaryVariant:i="secondary",children:s,...l}){return jsxRuntime.jsx(Ba,{primaryAction:{label:r,onPress:()=>{let u=document.getElementById(e);u&&u.requestSubmit();},variant:a},secondaryAction:n?{label:o,onPress:n,variant:i}:void 0,...l,children:jsxRuntime.jsx(Gn,{id:e,onSubmit:t,className:"mt-2",children:s})})}function z4({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 H4={sm:"gap-2",md:"gap-4",lg:"gap-6"};function G4(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 W4({cols:e={base:1},gap:t="lg",className:r,...o}){return jsxRuntime.jsx("div",{...o,className:tailwindMerge.twMerge("grid",G4(e),H4[t],r)})}function Y4({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(Tt,{tag:"h3",size:"sm",children:e}):e,t?jsxRuntime.jsx(he,{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 J4(){return jsxRuntime.jsx("hr",{className:"border-border-muted"})}function q4({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,l=i<n,c=r&&(l||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:!c,onClick:()=>c&&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",l&&"border-action-default bg-action-default text-text-onPrimary hover:bg-action-default/90",s&&"border-action-default bg-background-body text-action-default",!l&&!s&&"border-border-default bg-background-body text-text-muted",c&&"cursor-pointer",!c&&"cursor-default"),"aria-current":s?"step":void 0,children:l?jsxRuntime.jsx(k,{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-default)":"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",l&&"text-text-body",!s&&!l&&"text-text-muted"),children:a.title}),a.description&&jsxRuntime.jsx("span",{className:"mt-1 text-xs text-text-caption",children:a.description})]})]},a.id)})})})})}function X4({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-muted",children:"You have unsaved changes"}),jsxRuntime.jsxs("div",{className:"flex gap-2",children:[jsxRuntime.jsx(_,{variant:"secondary",onPress:o,children:a}),jsxRuntime.jsx(_,{type:"submit",form:e,isDisabled:!!r,children:r?"Saving...":n})]})]})}):null}function j4({when:e,message:t="You have unsaved changes. Leave anyway?"}){return De__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 Q4({steps:e,initialStepId:t,canNavigate:r}){if(e.length===0)throw new Error("useWizard: steps array cannot be empty");let[o,n]=De__namespace.useState(t||e[0].id),a=e.findIndex(d=>d.id===o),i=a>0,s=a<e.length-1,l=async d=>d===o?true:r&&!await r(o,d)?false:(n(d),true);return {steps:e,currentStepId:o,setCurrentStepId:l,next:async()=>!s||a===-1?false:l(e[a+1].id),prev:async()=>!i||a===-1?false:l(e[a-1].id),hasNext:s,hasPrev:i,stepIndex:a}}function ZQ(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.ActionCell=ng;exports.ActionMenu=Nn;exports.ActivityFeed=xc;exports.ActivityFeedGroup=Ni;exports.ActivityItem=wi;exports.Alert=rm;exports.AppShell=im;exports.AreaSeries=Sa;exports.AutoMobileRenderer=Ds;exports.Autocomplete=Yi;exports.Avatar=Fr;exports.BREAKPOINTS=So;exports.Badge=We;exports.BadgeCell=ig;exports.Banner=qi;exports.BarSeries=Ln;exports.BooleanCell=sg;exports.BrandProvider=Np;exports.BreadcrumbItem=Xi;exports.Breadcrumbs=Zi;exports.Button=_;exports.Calendar=Tn;exports.Card=Le;exports.CardContent=dc;exports.CardFooter=uc;exports.CardHeader=lc;exports.CardMedia=cc;exports.CardMobileRenderer=As;exports.CarouselAutoplayTrigger=tf;exports.CarouselControl=Qm;exports.CarouselIndicator=ad;exports.CarouselIndicatorGroup=ef;exports.CarouselItem=jm;exports.CarouselItemGroup=Xm;exports.CarouselNextTrigger=_m;exports.CarouselPrevTrigger=$m;exports.CarouselProgressText=rf;exports.CarouselRoot=Zm;exports.ChartAxis=wa;exports.ChartBottomBar=ns;exports.ChartContainer=Vf;exports.ChartContext=Dn;exports.ChartEventMarkers=is;exports.ChartTooltip=ss;exports.Checkbox=Bo;exports.CheckboxGroup=id;exports.Chip=Cr;exports.ChipInputField=cf;exports.ClearButton=ga;exports.CodeEditor=pf;exports.Collapse=Pn;exports.CollapseContent=so;exports.CollapseHeader=io;exports.CollapseItem=ao;exports.ColorField=P1;exports.ColorModeProvider=Ip;exports.CommandPalette=$g;exports.Confirm=hf;exports.ConnectionStatusBadge=yf;exports.ContactCard=vf;exports.ContactMetaCell=cg;exports.ContactMetaDisplay=es;exports.CopyToClipboard=ro;exports.CustomCell=dg;exports.DataControls=qf;exports.DataTable=Vg;exports.DateCell=ug;exports.DateField=jf;exports.DateRangePicker=ms;exports.Description=he;exports.DeviceHealthBadge=Hg;exports.DeviceMetaCell=mg;exports.DeviceMetaDisplay=ys;exports.DeviceStateBadge=Jo;exports.DeviceStateCell=bg;exports.DeviceStateWithMetric=Ss;exports.DeviceTypeIcon=Wg;exports.Dialog=Zt;exports.DialogForm=I4;exports.DialogHeader=xt;exports.Drawer=Ba;exports.DrawerForm=F4;exports.ENTITY_CONFIG=oi;exports.EmptyState=Yg;exports.EnrollmentStatusBadge=Jg;exports.ErrorBoundary=nr;exports.FieldError=se;exports.FieldGroup=Lm;exports.FileUpload=Zg;exports.FilterChips=Zf;exports.FilterDialog=tg;exports.FirmwareVersionBadge=jg;exports.Form=Gn;exports.FormActions=z4;exports.FormDivider=J4;exports.FormGrid=W4;exports.FormSection=Y4;exports.FormStepper=q4;exports.FormatRegistry=te;exports.FormattedCell=hg;exports.FunnelSeries=Wf;exports.GlobalSearch=tb;exports.Grid=Ud;exports.GridStateBadge=Cs;exports.Heading=Tt;exports.HierarchyExplorer=Ab;exports.HorizontalBarCell=Ed;exports.HoverCard=Ww;exports.Icon=k;exports.InfiniteScrollIndicator=qt;exports.Input=Gi;exports.InputWrapper=tt;exports.InteractiveMap=Xa;exports.Kpi=Eb;exports.KpiGroup=Qd;exports.Label=Re;exports.LineSeries=Ta;exports.List=Ob;exports.ListBox=Fv;exports.ListBoxItem=Rt;exports.ListItem=Gb;exports.ListPane=Wb;exports.Loader=Lr;exports.Logo=Ti;exports.MAP_TYPES=px;exports.Meter=bx;exports.MiniBarCell=Id;exports.ModalBackdrop=Vt;exports.Notice=sl;exports.NoticeContainer=ll;exports.NoticeProvider=hx;exports.NumberCell=Ng;exports.NumberField=La;exports.PageBanner=Gm;exports.PageLayout=sn;exports.PercentBarCell=Fd;exports.PlaceSearch=Ax;exports.Popover=qe;exports.ProgressBar=Mx;exports.Radio=Fx;exports.RadioCard=vu;exports.RadioCardGroup=Cu;exports.RadioGroup=Ix;exports.RangeCalendar=Bn;exports.ResultsCount=Ra;exports.RichTextEditor=Vx;exports.SKELETON_SIZES=po;exports.SaveBar=X4;exports.SearchControl=Ko;exports.SearchEmptyState=rb;exports.SearchLoadingState=nb;exports.SearchResultGroup=ib;exports.SearchResultItem=sb;exports.SearchResultsList=lb;exports.SearchTrigger=db;exports.Section=Zn;exports.SectionNav=pl;exports.SegmentedControl=hl;exports.Select=Mo;exports.SelectCell=kg;exports.SideNav=Pi;exports.SiteCard=Hx;exports.SiteContactCard=Wx;exports.SiteMetaCell=Pg;exports.SiteMetaDisplay=ks;exports.Skeleton=V;exports.Slider=Ux;exports.SortControl=Da;exports.SparklineCell=Bd;exports.SplitPane=vl;exports.StatList=Vs;exports.StaticMap=qn;exports.Switch=fs;exports.Tab=xl;exports.TabList=bl;exports.TabPanel=Sx;exports.Tabs=gl;exports.TextArea=Xx;exports.TextAreaWithChips=_x;exports.TextCell=Lg;exports.TextField=er;exports.TextLink=Oe;exports.TimeControls=oh;exports.TimeField=ah;exports.Timeline=ih;exports.TimelineItem=sh;exports.ToggleButton=dh;exports.Tooltip=Pt;exports.TopNav=la;exports.Tray=Ze;exports.UnsavedChangesPrompt=j4;exports.activeDeviceStates=M2;exports.addFilterCondition=uo;exports.autoScaleCurrent=fy;exports.autoScaleDistance=ju;exports.autoScaleEnergy=ep;exports.autoScalePower=Sy;exports.autoScaleResistance=Ny;exports.autoScaleVoltage=Ay;exports.camelCaseToWords=bp;exports.capitalize=fp;exports.celsiusToFahrenheit=wy;exports.celsiusToKelvin=Q5;exports.centimetersToInches=M5;exports.clearColorCache=hi;exports.createCategoryColorMap=qy;exports.createEmptyFilter=Pa;exports.createFilter=ES;exports.createFilters=IS;exports.createFormat=C3;exports.createXScale=bd;exports.createYScale=xd;exports.defaultMargin=He;exports.deviceStateLabels=E2;exports.deviceStateMetricFormats=mV;exports.enumToSentenceCase=Ry;exports.exportChart=wl;exports.exportTableAsCSV=Pl;exports.fahrenheitToCelsius=ky;exports.fahrenheitToKelvin=$5;exports.feetToMeters=N5;exports.feetToMiles=T5;exports.filterToChips=FS;exports.formatBoolean=Wu;exports.formatCapacity=t5;exports.formatComponentValue=gr;exports.formatCurrency=qu;exports.formatCurrent=Ll;exports.formatDate=Zu;exports.formatDistance=Qu;exports.formatEmptyValue=xs;exports.formatEnergy=Ol;exports.formatFieldValue=No;exports.formatInternationalPhone=Hl;exports.formatNumber=Ju;exports.formatPercent=Ku;exports.formatPhone=tp;exports.formatPhoneNumber=xn;exports.formatPower=Kl;exports.formatPowerRating=r5;exports.formatResistance=Jl;exports.formatTemperature=cp;exports.formatText=hp;exports.formatUSPhone=pi;exports.formatVoltage=Xl;exports.getBadgeClasses=rg;exports.getBooleanBadgeVariant=og;exports.getCellAlignmentClasses=Rd;exports.getCellContainerClasses=Se;exports.getCellTextClasses=tr;exports.getContrastingTextColor=Zy;exports.getDateParts=x5;exports.getDefaultChartColor=Ql;exports.getDefaultColors=wp;exports.getDeviceStateDisplayLabel=Ld;exports.getDeviceStateLabel=Ld;exports.getEntityConfig=L4;exports.getEntityIcon=M4;exports.getEntityLabel=E4;exports.getExportFormatName=Ph;exports.getExportHeaders=ty;exports.getFieldGroupStyles=Mv;exports.getFilterFields=Uo;exports.getGridStateLabel=gg;exports.getInputBackgroundStyles=Am;exports.getInputBaseStyles=ft;exports.getInputStateStyles=to;exports.getLinkClasses=Dd;exports.getNumericColorClasses=hs;exports.getResolvedColor=ct;exports.getSkeletonSize=Ft;exports.getStateTone=ZQ;exports.getThemeCategoricalColors=ea;exports.getYFormatSettings=co;exports.gridStateLabels=F2;exports.inchesToCentimeters=L5;exports.isActiveDeviceState=Ad;exports.isActiveState=Ad;exports.isCustomPinsLayer=iu;exports.isExportSupported=Th;exports.isFilterEmpty=ds;exports.isGeoJsonLayer=au;exports.isLightColor=kp;exports.isNil=re;exports.isRasterLayer=su;exports.isVectorLayer=nu;exports.kelvinToCelsius=Ty;exports.kelvinToFahrenheit=_5;exports.kilometersToMiles=k5;exports.layer=ou;exports.metersToFeet=S5;exports.metersToMiles=P5;exports.metersToYards=A5;exports.milesToFeet=Xu;exports.milesToKilometers=w5;exports.milesToMeters=R5;exports.parseBoolean=Xr;exports.prepareTableDataForExport=ey;exports.removeFilterCondition=Wo;exports.resolveValue=ge;exports.snakeCaseToWords=xp;exports.temperatureStringToSymbol=np;exports.toA=p5;exports.toActiveInactive=ay;exports.toAmps=di;exports.toBoolean=Zr;exports.toCelsius=ip;exports.toCentimeters=yy;exports.toCheckmark=sy;exports.toCompactNumber=uy;exports.toCurrency=Yu;exports.toCustomDateFormat=hy;exports.toDateString=gy;exports.toEnabledDisabled=oy;exports.toFahrenheit=ap;exports.toFeet=Il;exports.toFloat=cy;exports.toFormattedNumber=dy;exports.toFullDateTime=by;exports.toGW=K5;exports.toGWh=_u;exports.toGigawatts=Ul;exports.toISOString=xy;exports.toInches=Cy;exports.toInteger=ly;exports.toKA=m5;exports.toKV=s3;exports.toKW=W5;exports.toKelvin=sp;exports.toKiloamps=Al;exports.toKilohms=rp;exports.toKilometers=El;exports.toKilovolts=Zl;exports.toKilowatts=Gl;exports.toLowerCase=up;exports.toMA=u5;exports.toMV=a3;exports.toMW=U5;exports.toMWh=$u;exports.toMegawatts=Wl;exports.toMegohms=op;exports.toMeters=Ml;exports.toMiles=Fl;exports.toMilliamps=Dl;exports.toMillimeters=vy;exports.toMilliohms=Yl;exports.toMillivolts=ql;exports.toNauticalMiles=C5;exports.toOhms=fi;exports.toOnOff=ny;exports.toPercentage=Uu;exports.toRelativeTime=ui;exports.toScientificNotation=py;exports.toSecret=Dy;exports.toSentenceCase=pp;exports.toTemperature=lp;exports.toTitleCase=mp;exports.toTrueFalse=iy;exports.toUpperCase=dp;exports.toV=i3;exports.toVolts=xi;exports.toW=G5;exports.toWatts=mi;exports.toWh=zl;exports.toYards=Bl;exports.tokWh=Vl;exports.truncateEnd=bi;exports.truncateMiddle=hn;exports.truncateStart=gi;exports.ucFirst=gp;exports.useBreakpoint=Nt;exports.useChartContext=zr;exports.useClientDataControls=ai;exports.useColorMode=kt;exports.useComponentFormatter=i5;exports.useDataControls=Iu;exports.useDebounce=Jr;exports.useElementSize=bn;exports.useInfiniteScroll=qr;exports.useInputFocus=_t;exports.useLocalStorage=li;exports.useMediaQuery=St;exports.useNotice=vx;exports.useServerDataControls=ii;exports.useTableExport=Gu;exports.useWizard=Q4;exports.wrapWithLink=wr;exports.yardsToMeters=D5;//# sourceMappingURL=index.cjs.map
109
+ `,backgroundSize:"30px 30px"}})})})}function Ml({style:e,className:t,message:r="Map requires Mapbox token"}){return jsxRuntime.jsx("div",{style:e,className:`flex items-center justify-center bg-background-muted text-text-muted ${t||""}`,children:jsxRuntime.jsxs("div",{className:"text-center",children:[jsxRuntime.jsx(F,{name:"MapPin",size:48,className:"mx-auto mb-2 opacity-50"}),jsxRuntime.jsx("p",{className:"text-sm",children:r})]})})}var Mh={streets:"streets",satellite:"satellite",neutral:"neutral"};function ci(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 Lh({longitude:e,latitude:t,showPulse:r=true,accuracy:o}){return jsxRuntime.jsx(KP.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-brand-primary opacity-30",style:{animationDelay:"0s"}}),jsxRuntime.jsx("div",{className:"relative z-10 flex h-5 w-5 items-center justify-center rounded-full bg-white shadow-lg",children:jsxRuntime.jsx("div",{className:"h-3 w-3 rounded-full bg-brand-primary"})}),o&&o>0&&jsxRuntime.jsx("div",{className:"pointer-events-none absolute rounded-full border border-brand-primary/20 bg-brand-primary/10",style:{width:`${Math.min(o/2,100)}px`,height:`${Math.min(o/2,100)}px`}})]})})}var ui=Ee__namespace.default.forwardRef(({initialViewState:e,viewState:t,onViewStateChange:r,scrollEnabled:o=true,className:n,previewMode:a=false,previewModeCta:i,onPreviewModePress:s,mapType:l="streets",layers:c=[],mapboxAccessToken:d,transformRequest:u,isLoading:m=false,onLoad:p,controls:g="default",showUserLocation:f=true,onUserLocationChange:b,children:x,additionalInteractiveLayerIds:v=[],onMapClick:y,showMarker:C=false,markerLocation:N},P)=>{let T=d??kl();if(!T)return jsxRuntime.jsx("div",{className:`relative ${n||""}`,style:{width:"100%",height:"100%"},children:jsxRuntime.jsx(Ml,{className:"w-full h-full",message:"Map unavailable"})});let{isDarkTheme:B}=Rt(),A=Ee.useRef(null),I=Ee.useRef(null),[L,M]=Ee.useState(false),[S,w]=Ee.useState(false);Ee.useEffect(()=>{El();},[]);let[G,K]=Ee.useState(false),z=Ee.useRef(0),[j,Z]=Ee.useState(null),[R,V]=Ee.useState(null),D=Ee.useRef(null),[k,Y]=Ni("interactiveMap.trackingLocation",false),[E,h]=Ee.useState(false);Ee.useEffect(()=>{if(!navigator.geolocation){h(true);return}if(k){if(!navigator.permissions?.query){h(true);return}navigator.permissions.query({name:"geolocation"}).then(W=>{W.state!=="granted"&&Y(false),h(true);}).catch(()=>{h(true);});}else h(true);},[]),Ee.useEffect(()=>{let W=setTimeout(()=>{L||w(true);},200);return ()=>clearTimeout(W)},[L]),Ee.useEffect(()=>{if(E){if(!k||a){D.current!==null&&(navigator.geolocation.clearWatch(D.current),D.current=null);return}if(!navigator.geolocation){console.warn("Geolocation is not supported by this browser.");return}return D.current=navigator.geolocation.watchPosition(W=>{let O={latitude:W.coords.latitude,longitude:W.coords.longitude,accuracy:W.coords.accuracy};V(O),b?.(O);},W=>{console.warn("Geolocation error:",W.message),V(null),b?.(null);},{enableHighAccuracy:true,maximumAge:3e4,timeout:3e4}),()=>{D.current!==null&&(navigator.geolocation.clearWatch(D.current),D.current=null);}}},[k,a,b,E]);let U=Ee.useCallback(()=>{M(true),w(false),p?.();},[p]),H=Ee.useCallback(()=>{A.current&&e&&(K(false),z.current=0,A.current.flyTo({center:[e.longitude||0,e.latitude||0],zoom:e.zoom||0,bearing:e.bearing||0,pitch:e.pitch||0,duration:1e3}));},[e]),q=Ee.useMemo(()=>g===false||g===null?[]:g==="default"||g===void 0?Gu:g,[g]),re=Ee.useCallback(()=>{if(!navigator.geolocation){console.warn("Geolocation is not supported by this browser.");return}Y(true),navigator.geolocation.getCurrentPosition(W=>{let{latitude:O,longitude:Q}=W.coords;A.current&&A.current.jumpTo({center:[Q,O],zoom:15});},W=>{console.warn("Geolocation error:",W.message),W.code===W.PERMISSION_DENIED&&Y(false);},{enableHighAccuracy:true,timeout:1e4,maximumAge:0});},[]),ue=Ee.useMemo(()=>{if(a)return null;let W=q.map(O=>O.type==="navigation"?{...O,onResetZoom:O.onResetZoom||H,onGeolocateClick:O.onGeolocateClick||re}:O);return Ku(W,{mapRef:A,layers:c,showResetButton:G})},[q,A,a,c,H,G,re]),X=Ee.useMemo(()=>{let W=[];return c.filter(O=>O.events?.onClick||O.events?.onMouseEnter||O.events?.onMouseLeave||O.tooltip).forEach(O=>{O.kind==="clusteredVector"?(W.push(`${O.id}-clusters`),W.push(`${O.id}-points`),W.push(`${O.id}-selected-point`)):W.push(O.id);}),[...W,...v]},[c,v]),te=Ee.useMemo(()=>{let W=new Map;return c.forEach(O=>{O.events&&(W.set(O.id,O.events),O.kind==="clusteredVector"&&(W.set(`${O.id}-clusters`,O.events),W.set(`${O.id}-points`,O.events),W.set(`${O.id}-selected-point`,O.events)));}),W},[c]),Ne=Ee.useMemo(()=>{let W=new Map;return c.forEach(O=>{O.tooltip&&(W.set(O.id,O.tooltip),O.kind==="clusteredVector"&&(W.set(`${O.id}-clusters`,O.tooltip),W.set(`${O.id}-points`,O.tooltip),W.set(`${O.id}-selected-point`,O.tooltip)));}),W},[c]),ae=Ee.useMemo(()=>{let W=new Map;return c.forEach(O=>{O.kind==="clusteredVector"&&(W.set(O.id,O),W.set(`${O.id}-clusters`,O),W.set(`${O.id}-points`,O),W.set(`${O.id}-selected-point`,O));}),W},[c]),de=Ee.useMemo(()=>{if(!C)return null;let W=N?.longitude??t?.longitude??e?.longitude,O=N?.latitude??t?.latitude??e?.latitude;return W===void 0||O===void 0?null:{longitude:W,latitude:O}},[C,N,t,e]),fe=Ee.useCallback(W=>{if(a)return;let O=W.features?.[0];if(!O||!O.layer)return;let Q=O.layer.id,oe=te.get(Q),ne=Ne.get(Q),we;O.geometry.type==="Point"?we=O.geometry.coordinates:we=[W.lngLat.lng,W.lngLat.lat];let ge={id:O.id??O.properties?.id,lngLat:we,properties:O.properties||{},layerId:Q},qe=ae.get(Q),Oe=O.properties?.cluster===true;if(qe&&Oe){let bt=A.current;if(bt){let Eo=bt.getZoom(),Tn=Math.min(Eo+3,18);bt.flyTo({center:we,zoom:Tn,duration:1e3});}return}if(oe?.onClick&&oe.onClick(ge),ne&&ne.trigger==="click"){let bt;qe&&"cluster"in ne?ne.point&&(bt=ne.point(ge)):"content"in ne&&(bt=typeof ne.content=="function"?ne.content(ge):ne.content),bt&&Z({feature:ge,content:bt});}y&&y(W);},[te,Ne,a,y,ae,A,X]),$=Ee.useCallback(W=>{if(a)return;let O=W.features?.[0];if(!O||!O.layer)return;let Q=O.layer.id,oe=te.get(Q),ne=Ne.get(Q),we;O.geometry.type==="Point"?we=O.geometry.coordinates:we=[W.lngLat.lng,W.lngLat.lat];let ge={id:O.id??O.properties?.id,lngLat:we,properties:O.properties||{},layerId:Q};if(oe?.onMouseEnter&&oe.onMouseEnter(ge),ne&&(ne.trigger==="hover"||!ne.trigger)){let qe;if(ae.get(Q)&&"cluster"in ne){let bt=O.properties?.cluster===true;if(bt&&ne.cluster){let Eo=O.properties?.point_count||0;qe=ne.cluster(Eo,ge);}else !bt&&ne.point?qe=ne.point(ge):qe=bt?`${O.properties?.point_count||0} items`:null;}else "content"in ne&&(qe=typeof ne.content=="function"?ne.content(ge):ne.content);qe&&Z({feature:ge,content:qe});}A.current&&(A.current.getCanvas().style.cursor="pointer");},[te,Ne,a,A,ae]),se=Ee.useCallback(()=>{if(!a){if(te.forEach(W=>{W.onMouseLeave?.();}),j){let W=j.feature.layerId,O=c.find(Q=>Q.id===W);if(!O){let Q=W.replace(/-(?:clusters|points|selected-point|cluster-shadows|points-shadow|cluster-count)$/,"");O=c.find(oe=>oe.id===Q);}O?.tooltip&&(O.tooltip.trigger||"hover")==="hover"&&Z(null);}A.current&&(A.current.getCanvas().style.cursor="");}},[te,a,A,j,c]),ve=Ee.useCallback((W,O)=>{for(let Q of c)if(Q.tooltip&&!(O&&Q.id!==O)){if(Q.kind==="geojson"){if(typeof Q.data=="string")continue;let oe=Q.data,we=(oe.type==="FeatureCollection"?oe.features:[oe]).find(ge=>ge.id===W);if(we&&we.geometry.type==="Point")return {id:we.id,lngLat:we.geometry.coordinates,properties:we.properties||{},layerId:Q.id}}else if(Q.kind==="customPins"){let oe=Q.data.find(ne=>ne.id===W||ne._id===W||ne.key===W);if(oe)return {id:W,lngLat:Q.getPosition(oe),properties:oe,layerId:Q.id}}}return null},[c]);Ee.useImperativeHandle(P,()=>({showTooltip:(W,O)=>{let Q=ve(W,O);if(!Q)return;let oe=c.find(ne=>ne.id===Q.layerId);if(oe?.tooltip&&"content"in oe.tooltip){let ne=typeof oe.tooltip.content=="function"?oe.tooltip.content(Q):oe.tooltip.content;Z({feature:Q,content:ne});}},hideTooltip:()=>{Z(null);},getMap:()=>A.current}),[ve,c]);let Fe=(W,O)=>u?u(W,O):{url:W},Pe=m||S;return jsxRuntime.jsx("div",{ref:I,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(KP__default.default,{ref:A,initialViewState:e,...t&&t,style:{width:"100%",height:"100%"},mapStyle:ci(l,B),mapboxAccessToken:T,transformRequest:Fe,onLoad:U,onMove:a?void 0:W=>{if(W.originalEvent&&L){let O=W.originalEvent.type,Q=Math.abs((W.viewState.latitude??0)-(e?.latitude??0)),oe=Math.abs((W.viewState.longitude??0)-(e?.longitude??0)),ne=Math.abs((W.viewState.zoom??0)-(e?.zoom??0));e&&(Q>1e-4||oe>1e-4||ne>.1)&&(O==="mousemove"||O==="touchmove"||O==="pointermove"?K(true):(O==="wheel"||O==="mousewheel")&&(z.current+=1,z.current>=3&&K(true)));}r?.(W.viewState);},onClick:a?void 0:fe,onMouseEnter:a?void 0:$,onMouseLeave:a?void 0:se,interactiveLayerIds:a?[]:X,scrollZoom:a?false:o,dragPan:!a,dragRotate:!a,doubleClickZoom:!a,interactive:!a,attributionControl:false,children:[jsxRuntime.jsx(KP.AttributionControl,{position:"top-left"}),ue,li(c,l),x,de&&jsxRuntime.jsx(KP.Marker,{longitude:de.longitude,latitude:de.latitude,anchor:"bottom",children:jsxRuntime.jsx(F,{name:"MapPin",size:36,className:"text-map-marker-default",weight:"fill"})}),f&&R&&jsxRuntime.jsx(Lh,{longitude:R.longitude,latitude:R.latitude,accuracy:R.accuracy}),j&&jsxRuntime.jsx(KP.Popup,{longitude:j.feature.lngLat[0],latitude:j.feature.lngLat[1],offset:15,closeButton:false,closeOnClick:false,className:"map-tooltip",maxWidth:"none",children:j.content})]},`map-${l}`),Pe&&jsxRuntime.jsx(Al,{}),a&&i&&jsxRuntime.jsx("div",{className:"absolute bottom-8 right-8 z-10",children:i})]})})});ui.displayName="InteractiveMap";function aa({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:l=false,onLoad:c,className:d,showExpandToggle:u=false,expandedMapTitle:m="Explore map",expandedMapAddressLabel:p}){let g=i??kl(),{isDarkTheme:f}=Rt(),[b,x]=Ee.useState(false),[v,y]=Ee.useState(false),[C,N]=Ee.useState(false),P=Ee.useRef(null),T=Ee.useRef(null),B=Ee.useCallback(()=>N(true),[]),A=Ee.useCallback(()=>N(false),[]);Ee.useEffect(()=>{El();},[]);let I={width:typeof e=="number"?`${e}px`:e,height:typeof t=="number"?`${t}px`:t};Ee.useEffect(()=>{let S=setTimeout(()=>{b||y(true);},200);return ()=>clearTimeout(S)},[b]);let L=Ee.useCallback(()=>{x(true),y(false),c?.();},[c]);Ee.useEffect(()=>{if(!T.current)return;let S=new ResizeObserver(()=>{P.current&&P.current.resize();});return S.observe(T.current),()=>{S.disconnect();}},[]);let M=o||v;return g?jsxRuntime.jsxs("div",{ref:T,style:I,className:`relative ${d||""}`,children:[jsxRuntime.jsxs(KP__default.default,{ref:P,mapboxAccessToken:g,initialViewState:r,style:{width:"100%",height:"100%"},mapStyle:ci(n,f),onLoad:L,scrollZoom:false,dragPan:false,dragRotate:false,doubleClickZoom:false,touchZoomRotate:false,interactive:false,attributionControl:false,children:[l&&jsxRuntime.jsx(KP.AttributionControl,{position:"top-left"}),li(a,n),s&&r.longitude!==void 0&&r.latitude!==void 0&&jsxRuntime.jsx(KP.Marker,{longitude:r.longitude,latitude:r.latitude,anchor:"bottom",children:jsxRuntime.jsx(F,{name:"MapPin",size:36,className:"text-map-marker-default",weight:"fill"})})]}),u&&jsxRuntime.jsx("div",{className:"absolute top-4 right-4 z-20",children:jsxRuntime.jsx(Qt,{icon:"ArrowsOutSimple",ariaLabel:"Expand map to fullscreen",onPress:B})}),u&&jsxRuntime.jsx(_t,{isOpen:C,onClose:A,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:g,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-muted px-4 py-3 flex-shrink-0",children:p})]})}),M&&jsxRuntime.jsx(Al,{})]}):jsxRuntime.jsx(Ml,{style:I,className:d})}var t5={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 Bh({label:e,size:t="md",variant:r="default",showWarningIndicator:o=true,warningThreshold:n=80,className:a,...i}){let s=t5[t];return jsxRuntime.jsx(reactAriaComponents.Meter,{...i,className:he(a,"flex flex-col gap-1"),children:({percentage:l,valueText:c})=>{let d=o&&l>=n,u=r==="default"?r5(l):r;return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsxs("div",{className:"flex justify-between gap-2",children:[e&&jsxRuntime.jsx(De,{children:e}),jsxRuntime.jsxs("span",{className:tailwindMerge.twMerge(s.text,d?"text-feedback-error-text":"text-text-muted"),children:[d&&jsxRuntime.jsx(lucideReact.AlertTriangle,{"aria-label":"Warning: High value",className:tailwindMerge.twMerge("inline-block align-text-bottom mr-1",s.icon)}),c]})]}),jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("relative rounded-full bg-background-muted","ring-1 ring-inset ring-border-muted",s.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]",o5(u)),style:{width:`${Math.min(100,Math.max(0,l))}%`},role:"presentation","aria-hidden":"true"})})]})}})}function r5(e){return e<50?"success":e<70?"info":e<90?"warning":"error"}function o5(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";default:return "bg-action-brand"}}var Bl="bg-background-surface border-l-[3px] border-y border-r border-border-default text-text-body",l5={success:{container:Bl,iconName:"CheckCircle",iconColor:"text-feedback-success-text",borderColor:"var(--color-feedback-success-border)"},error:{container:Bl,iconName:"XCircle",iconColor:"text-feedback-error-text",borderColor:"var(--color-feedback-error-border)"},warning:{container:Bl,iconName:"Warning",iconColor:"text-feedback-warning-text",borderColor:"var(--color-feedback-warning-border)"},info:{container:Bl,iconName:"Info",iconColor:"text-feedback-info-text",borderColor:"var(--color-feedback-info-border)"}};function Vl({id:e,message:t,variant:r="info",duration:o=5e3,dismissible:n=true,onDismiss:a,className:i}){let{container:s,iconName:l,iconColor:c,borderColor:d}=l5[r];return Ee.useEffect(()=>{if(o>0){let u=setTimeout(()=>{a?.();},o);return ()=>clearTimeout(u)}},[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:d},children:[jsxRuntime.jsx(F,{name:l,size:20,className:c}),jsxRuntime.jsx("p",{className:"flex-1 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(F,{name:"X",size:16})})]})}var g5={"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 Ol({notices:e,onDismiss:t,position:r="bottom-center",className:o}){let[n,a]=Ee.useState(false);if(Ee.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",g5[r],o),"aria-live":"polite","aria-atomic":"true",children:jsxRuntime.jsx(framerMotion.AnimatePresence,{mode:"sync",children:e.map(s=>jsxRuntime.jsx(Vl,{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 zh=Ee.createContext(void 0);function Vh({children:e,position:t="bottom-center",maxNotices:r=5,defaultDuration:o=5e3,defaultDismissible:n=true}){let[a,i]=Ee.useState([]),s=Ee.useCallback((u,m)=>{let p=`notice-${Date.now()}-${Math.random()}`,g={id:p,message:u,variant:m?.variant||"info",duration:m?.duration??o,dismissible:m?.dismissible??n};return i(f=>{let b=[...f,g];return b.length>r?b.slice(-r):b}),p},[r,o,n]),l=Ee.useCallback(u=>{i(m=>m.filter(p=>p.id!==u));},[]),c=Ee.useCallback(()=>{i([]);},[]),d={notices:a,addNotice:s,removeNotice:l,clearNotices:c};return jsxRuntime.jsxs(zh.Provider,{value:d,children:[e,jsxRuntime.jsx(Ol,{notices:a,onDismiss:l,position:t})]})}function Oh(){let e=Ee.useContext(zh);if(!e)throw new Error("useNoticeContext must be used within a NoticeProvider");return e}function Hh(){let{addNotice:e,removeNotice:t,clearNotices:r}=Oh(),o=Ee.useCallback((l,c)=>e(l,c),[e]),n=Ee.useCallback((l,c)=>e(l,{...c,variant:"success"}),[e]),a=Ee.useCallback((l,c)=>e(l,{...c,variant:"error"}),[e]),i=Ee.useCallback((l,c)=>e(l,{...c,variant:"warning"}),[e]),s=Ee.useCallback((l,c)=>e(l,{...c,variant:"info"}),[e]);return {show:o,success:n,error:a,warning:i,info:s,dismiss:t,clear:r}}var S5={plain:"",contained:"bg-background-surface rounded-lg border border-border-default p-6",bordered:"border-y border-border-default py-6"},w5={none:"",sm:"my-4",md:"my-6 md:my-8",lg:"my-8 md:my-12"};function ia({id:e,title:t,description:r,actions:o,variant:n="plain",spacing:a="none",withDivider:i=false,headingAs:s="h2",className:l,children:c}){let d=Ee__namespace.default.useId(),u=e?`${e}-heading`:d,m=t||r||o;return jsxRuntime.jsxs("section",{id:e,className:tailwindMerge.twMerge(w5[a],S5[n],l),"aria-labelledby":t?u:void 0,children:[m&&jsxRuntime.jsxs("header",{id:u,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&&c&&"mb-6"),children:[jsxRuntime.jsxs("div",{className:"min-w-0 flex-1",children:[t&&jsxRuntime.jsx(Dt,{tag:s,size:"md",className:"text-text-heading",children:t}),r&&jsxRuntime.jsx("p",{className:"mt-2 text-base text-text-muted",children:r})]}),o&&jsxRuntime.jsx("div",{className:"flex-shrink-0",children:o})]}),c&&jsxRuntime.jsx("div",{className:"",children:c})]})}ia.displayName="Section";function Ul({sections:e,activeSection:t,onSectionChange:r,orientation:o="responsive",className:n,scrollBehavior:a="smooth",stickyTop:i="1.5rem",sectionIdPrefix:s="section-",filterSection:l}){let c=Ee__namespace.useRef(null),d=Ee__namespace.useRef(null),[u,m]=Ee__namespace.useState(e[0]?.id||null),p=t??u;Ee__namespace.useEffect(()=>{if(t!==void 0&&r)return;let v=P=>{if(!P)return false;let T=window.getComputedStyle(P);return T.display!=="none"&&T.visibility!=="hidden"&&T.opacity!=="0"},y=()=>{let P=v(c.current),T=v(d.current);if(!P&&!T)return null;let B=new IntersectionObserver(A=>{A.forEach(I=>{if(I.isIntersecting){let L=I.target.id.replace(s,"");r?r(L):m(L);}});},{rootMargin:"-20% 0px -70% 0px",threshold:0});return e.forEach(A=>{let I=document.getElementById(`${s}${A.id}`);I&&B.observe(I);}),B},C=y(),N=()=>{C&&C.disconnect(),C=y();};return window.addEventListener("resize",N),()=>{C&&C.disconnect(),window.removeEventListener("resize",N);}},[e,s,t,r,o]);let g=Ee__namespace.useMemo(()=>l?e.filter(l):e,[e,l]),f=Ee__namespace.useCallback((v,y)=>{v.preventDefault();let C=document.getElementById(`${s}${y}`);C&&(C.scrollIntoView({behavior:a,block:"start"}),window.history.pushState&&window.history.pushState(null,"",`#${s}${y}`),r?r(y):m(y));},[s,a,r]);if(g.length===0)return null;let b=o==="vertical"?"":o==="horizontal"?"hidden":"hidden lg:block",x=o==="horizontal"?"":o==="vertical"?"hidden":"lg:hidden";return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("nav",{ref:c,className:tailwindMerge.twMerge(b,n),"aria-label":"Section navigation",children:jsxRuntime.jsx("div",{className:"space-y-1",style:{position:"sticky",top:i},children:g.map(v=>{let y=p===v.id;return jsxRuntime.jsx("a",{href:`#${s}${v.id}`,onClick:C=>f(C,v.id),className:tailwindMerge.twMerge("block w-full text-left px-3 py-2 rounded-md text-sm transition-colors no-underline",y?"bg-background-muted text-text-body font-semibold":"text-text-muted hover:text-text-body hover:bg-background-hover"),"aria-current":y?"page":void 0,children:jsxRuntime.jsxs("span",{className:"flex items-center justify-between gap-2",children:[jsxRuntime.jsx("span",{children:v.label}),v.count!==void 0&&jsxRuntime.jsx("span",{className:"text-xs tabular-nums text-text-muted",children:v.count})]})},v.id)})})}),jsxRuntime.jsx("nav",{ref:d,className:tailwindMerge.twMerge(x,"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:g.map(v=>{let y=p===v.id;return jsxRuntime.jsx("a",{href:`#${s}${v.id}`,onClick:C=>f(C,v.id),className:tailwindMerge.twMerge("inline-block px-4 py-2 rounded-md text-sm whitespace-nowrap transition-colors no-underline",y?"bg-background-muted text-text-body font-semibold":"text-text-muted hover:text-text-body hover:bg-background-hover"),"aria-current":y?"page":void 0,children:jsxRuntime.jsxs("span",{className:"flex items-center gap-2",children:[jsxRuntime.jsx("span",{children:v.label}),v.count!==void 0&&jsxRuntime.jsxs("span",{className:"text-xs tabular-nums text-text-muted",children:["(",v.count,")"]})]})},v.id)})})})]})}var Yl=Ee__namespace.createContext({variant:"default"});function D5({orientation:e,className:t=""}){return `flex flex-col w-full ${{horizontal:"",vertical:"flex-row"}[e]||""} ${t}`.trim()}function Jl({variant:e="default",...t}){return jsxRuntime.jsx(Yl.Provider,{value:{variant:e},children:jsxRuntime.jsx("div",{className:"w-full h-auto",children:jsxRuntime.jsx(reactAriaComponents.Tabs,{...t,className:reactAriaComponents.composeRenderProps(t.className,(r,o)=>D5({...o,className:r}))})})})}function E5({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 jl({variant:e,sticky:t=false,...r}){let o=Ee__namespace.useContext(Yl),n=e??o.variant;return jsxRuntime.jsx(Yl.Provider,{value:{variant:n},children:jsxRuntime.jsx(reactAriaComponents.TabList,{...r,className:reactAriaComponents.composeRenderProps(r.className,(a,i)=>E5({...i,sticky:t,className:a||""}))})})}function A5({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=`${ze()} ${r==="brand"?"focus-visible:outline-action-brand":""}`.trim(),i="";return t?i="text-text-disabled forced-colors:text-[GrayText] cursor-not-allowed":e?r==="brand"?i="text-action-brand border-b-2 border-action-brand z-10 forced-colors:bg-[Highlight]":i="text-action-default border-b-2 border-action-default z-10 forced-colors:bg-[Highlight]":i="text-text-placeholder hover:text-text-muted",`${n} ${a} ${i} ${o}`.trim()}function ql(e){let{variant:t}=Ee__namespace.useContext(Yl);return jsxRuntime.jsx(reactAriaComponents.Tab,{...e,"data-testid":e.id?`tab-${e.id}`:void 0,className:reactAriaComponents.composeRenderProps(e.className,(r,o)=>A5({...o,className:r,isSelected:o.isSelected,variant:t}))})}function M5({className:e=""}){let t="block w-full mt-4 text-text-body",r=ze();return `${t} ${r} ${e}`.trim()}function Gh(e){return jsxRuntime.jsx(reactAriaComponents.TabPanel,{...e,className:reactAriaComponents.composeRenderProps(e.className,(t,r)=>M5({...r,className:t||""}))})}function xn({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 Uh({title:e,subtitle:t,breadcrumbs:r,breadcrumbsNode:o,media:n,actions:a,metadata:i,headingAs:s,sticky:l,stickyTop:c="0",zIndex:d=10,isLoading:u=false,className:m}){let p=l?"sticky bg-background-body":"",g=l?{top:c,zIndex:d}:{};return u?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,b)=>jsxRuntime.jsx(J,{className:"h-9 w-full"},b))}):null]}),a?.length?jsxRuntime.jsx("div",{className:"hidden md:flex md:items-start gap-2 shrink-0",children:a.map((f,b)=>jsxRuntime.jsx(J,{className:"h-9 w-24"},b))}):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(ds,{children:r.map((f,b)=>{let{label:x,...v}=f;return jsxRuntime.jsx(us,{...v,children:x},`${x}-${b}`)})})}):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(Dt,{tag:s||"h1",size:"xl",children:e})}),t?jsxRuntime.jsx("p",{className:"mt-2 text-base md:text-lg text-text-muted",children:t}):null,i?jsxRuntime.jsx("div",{className:"mt-2 text-sm text-text-muted",children:i}):null,a?.length?jsxRuntime.jsx("div",{className:"mt-6 flex flex-col items-stretch gap-3 md:hidden",children:a.map((f,b)=>jsxRuntime.jsx(Ee__namespace.default.Fragment,{children:f},b))}):null]}),a?.length?jsxRuntime.jsx("div",{className:"hidden md:flex md:items-start gap-2 shrink-0",children:a.map((f,b)=>jsxRuntime.jsx(Ee__namespace.default.Fragment,{children:f},b))}):null]}),n?jsxRuntime.jsx("div",{className:"mt-4 md:mt-6",children:n}):null]})}function Yh({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(Jl,{selectedKey:t,defaultSelectedKey:r||e[0]?.id,onSelectionChange:i,children:[jsxRuntime.jsx(jl,{className:"after:bg-transparent",children:e.map(s=>jsxRuntime.jsx(ql,{id:s.id,isDisabled:s.disabled,children:s.label},s.id))}),a]})})}function Kh({children:e,className:t,withSectionNav:r,navWidth:o="240px",gap:n="2rem",activeSection:a,onSectionChange:i,scrollBehavior:s,sectionIdPrefix:l="section-"}){return r?jsxRuntime.jsx(L5,{position:r,navWidth:o,gap:n,activeSection:a,onSectionChange:i,scrollBehavior:s,sectionIdPrefix:l,className:t,children:e}):jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("w-full space-y-8 md:space-y-12",t),children:e})}function Jh({children:e,sticky:t=true,className:r}){return jsxRuntime.jsx("aside",{className:tailwindMerge.twMerge(t?"lg:sticky lg:top-20":"",r),children:e})}function L5({activeSection:e,onSectionChange:t,position:r,navWidth:o,gap:n,children:a,className:i,scrollBehavior:s,sectionIdPrefix:l}){let c=Ee__namespace.default.useMemo(()=>{let g=[];return Ee__namespace.default.Children.forEach(a,f=>{if(Ee__namespace.default.isValidElement(f)&&(f.type===ia||typeof f.type=="object"&&f.type?.displayName==="Section"||typeof f.type=="function"&&f.type?.displayName==="Section")){let b=f.props;b.id?g.push({id:b.id,label:b.navLabel||(typeof b.title=="string"?b.title:`Section ${b.id}`)}):process.env.NODE_ENV==="development"&&console.warn("Section component used within PageLayout.Content with withSectionNav must have an id prop");}}),g},[a]),d=Ee__namespace.default.useMemo(()=>{let g=Ee__namespace.default.Children.map(a,f=>{if(Ee__namespace.default.isValidElement(f)&&(f.type===ia||typeof f.type=="object"&&f.type?.displayName==="Section"||typeof f.type=="function"&&f.type?.displayName==="Section")){let b=f.props;if(b.id)return Ee__namespace.default.cloneElement(f,{...b,id:`${l}${b.id}`})}return f});return jsxRuntime.jsx("div",{className:"space-y-8 md:space-y-12",children:g})},[a,l]),u=(g,f)=>jsxRuntime.jsx(Ul,{sections:c,activeSection:e,onSectionChange:t,orientation:g,scrollBehavior:s,sectionIdPrefix:l,className:f});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:u("horizontal")}),d]});let m=r==="left"?"var(--nav-width) 1fr":"1fr var(--nav-width)",p=r==="right"?"hidden lg:block sticky top-20 self-start [&_a]:text-right":"hidden lg:block sticky top-20 self-start";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:u("horizontal","py-3 mt-0")}),jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("lg:grid",i),style:{gridTemplateColumns:m,gap:n,"--nav-width":o},children:[r==="left"&&jsxRuntime.jsx("nav",{className:p,children:u("vertical")}),d,r==="right"&&jsxRuntime.jsx("nav",{className:p,children:u("vertical")})]})]})}function jh({children:e,className:t}){return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("flex-1 overflow-auto min-h-0",t),children:e})}xn.Header=Uh;xn.Tabs=Yh;xn.Content=Kh;xn.Aside=Jh;xn.ScrollableContent=jh;function F5(e){return typeof e=="object"&&e!==null&&"features"in e&&Array.isArray(e.features)&&"type"in e&&typeof e.type=="string"}var B5=process.env.NEXT_PUBLIC_MAPBOX_ACCESS_TOKEN||"";function Xh({label:e,selectedKey:t,defaultSelectedKey:r,onSelectionChange:o,placeholder:n="Enter a location...",errorMessage:a,description:i,size:s="md",tooltip:l,isRequired:c,isDisabled:d,showErrors:u=true,autoFocus:m=false,onSelect:p,searchTypes:g=["place","address"],defaultFilter:f,validationResult:b,countryRestrictions:x,proximity:v="ip",hideCountry:y=false,showIcon:C=true,className:N}){let P=Ee.useRef(new WeakMap),T=Ee.useRef([]),B={requestType:"REST",method:"GET",url:"https://api.mapbox.com/geocoding/v5/mapbox.places/{q}.json",extraParams:{access_token:B5,types:g.join(","),limit:"5",...x?.length?{country:x.join(",").toLowerCase()}:{},...v?{proximity:v==="ip"?"ip":v.join(",")}:{}},shouldLoad:L=>L.length>0,transformResponse:L=>{if(!F5(L))return [];let M=L.features.map(S=>{let w={id:S.id,name:S.place_name};return P.current.set(w,{type:S.place_type[0],center:S.center,context:S.context,address:S.address,text:S.text,properties:S.properties}),w});return M.length>0&&(T.current=M),M}},A=L=>{let M=P.current.get(L),S=L.name.split(", "),w=S[0],G=S.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:[C&&jsxRuntime.jsx(F,{name:M?.type==="address"?"MapPin":M?.type==="place"?"Buildings":M?.type==="region"?"MapPinArea":M?.type==="country"?"Flag":"Circle",className:"h-5 w-5 flex-shrink-0 text-text-muted"}),jsxRuntime.jsxs("div",{className:"flex min-w-0 flex-col",children:[jsxRuntime.jsx("span",{className:"truncate font-medium text-text-body",children:w}),K&&jsxRuntime.jsx("span",{className:"truncate text-sm text-text-muted",children:K})]})]})},I=L=>L?jsxRuntime.jsx(F,{name:"CircleNotch",className:"h-4 w-4 animate-spin text-text-muted"}):jsxRuntime.jsx(F,{name:"MagnifyingGlass",className:"h-4 w-4 text-text-muted"});return jsxRuntime.jsx(ss,{"data-testid":"autocomplete","data-config":JSON.stringify({types:g.join(","),country:x?.join(",")?.toLowerCase(),proximity:v==="ip"?"ip":v?.join(",")}),label:e||void 0,selectedKey:t,defaultSelectedKey:r,onSelectionChange:L=>{if(o?.(L),L){let S=T.current.find(w=>w.id===L);if(S){let w=P.current.get(S);w&&p({id:S.id,place_name:S.name,place_type:[w.type],center:w.center,context:w.context,address:w.address,text:w.text,properties:w.properties});}}},requestConfig:B,placeholder:n,errorMessage:a,description:i,size:s,tooltip:l,isRequired:c,isDisabled:d,showErrors:u,autoFocus:m,renderItem:A,renderLeftIcon:I,defaultFilter:f,validationResult:b,hideChevron:true,className:N})}function $h({label:e,rightLabel:t,progressWidth:r=64,hideLabels:o=false,...n}){return jsxRuntime.jsx(reactAriaComponents.ProgressBar,{...n,className:he(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-heading",children:e}),jsxRuntime.jsx("span",{className:"text-sm text-text-heading",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-blue-600 dark:bg-blue-500 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 G5(e="2"){return {1:"p-2 text-xs",2:"p-3 text-sm",3:"p-4 text-base"}[e]}function U5(e="default",t){return t?{default:"border-action-default text-action-default",brand:"border-action-brand text-action-brand"}[e]:"border-border text-text-body"}function Y5(){return "opacity-50 cursor-not-allowed"}function cp({value:e,isDisabled:t,className:r,children:o,size:n="2",variant:a="default"}){return jsxRuntime.jsx(reactAriaComponents.Radio,{value:e,isDisabled:t,className:he(r,`flex items-center justify-center cursor-pointer transition-all duration-200 focus:outline-none focus:ring-2 ${a==="brand"?"focus:ring-action-brand":"focus:ring-action-default"} focus:ring-offset-2 rounded-lg min-h-[44px]`),children:({isSelected:s,isDisabled:l})=>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||l)&&!s&&"hover:bg-background-hover hover:border-border-hover",G5(n),U5(a,s),(t||l)&&Y5(),r),children:o})})}function dp({value:e,defaultValue:t,onChange:r,isDisabled:o,isReadOnly:n,isRequired:a,className:i,children:s,size:l="2",variant:c="default",columns:d="repeat(auto-fit, minmax(160px, 1fr))",gap:u="1"}){return jsxRuntime.jsx(reactAriaComponents.RadioGroup,{value:e,defaultValue:t,onChange:r,isDisabled:o,isReadOnly:n,isRequired:a,className:he(i,"grid"),style:{gridTemplateColumns:/^\d+$/.test(String(d))?`repeat(${d}, minmax(0, 1fr))`:d,gap:u==="1"?"0.25rem":u==="2"?"0.5rem":u==="3"?"0.75rem":u==="4"?"1rem":typeof u=="number"?`${u}px`:u},children:Ee__namespace.default.Children.map(s,m=>Ee__namespace.default.isValidElement(m)?Ee__namespace.default.cloneElement(m,{size:l,variant:c}):m)})}var _h=Ee.createContext({variant:"brand"});function ey(e){let{variant:t="default",...r}=e;return jsxRuntime.jsx(_h.Provider,{value:{variant:t},children:jsxRuntime.jsxs(reactAriaComponents.RadioGroup,{...r,className:he(e.className,"group flex flex-col gap-2"),children:[jsxRuntime.jsx(De,{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(ye,{children:e.description}),jsxRuntime.jsx(ce,{children:typeof e.errorMessage=="function"&&e.validationResult?e.errorMessage(e.validationResult):typeof e.errorMessage=="string"?e.errorMessage:null})]})})}function Z5({isSelected:e,isInvalid:t,isDisabled:r,variant:o="brand"}){let n=o==="brand"?"focus-visible:outline-action-brand":"focus-visible:outline-action-default",a=[ze(),n,"w-5 h-5 rounded-full border-2 bg-background-surface transition-all"];if(r)a.push("border-border-muted forced-colors:!border-[GrayText]");else if(t)a.push("border-feedback-error-border group-pressed:border-feedback-error-border dark:group-pressed:border-feedback-error-border forced-colors:!border-[Mark]");else if(e){let i=o==="brand"?"action-brand":"action-default";a.push(`border-[7px] border-${i} forced-colors:!border-[Highlight] group-pressed:border-${i}-hover dark:group-pressed:border-${i}-hover`);}else a.push("border-border-default group-pressed:border-border-focus dark:group-pressed:border-border-focus");return a.join(" ")}function ty(e){let{variant:t}=Ee.useContext(_h);return jsxRuntime.jsx(reactAriaComponents.Radio,{...e,className:he(e.className,"group flex items-center gap-2 text-sm text-text-body transition disabled:text-text-muted dark:text-text-body dark:disabled:text-text-muted forced-colors:disabled:text-[GrayText]"),children:r=>jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("div",{className:Z5({...r,variant:t})}),e.children]})})}var yn=({isActive:e=false,onPress:t,children:r})=>jsxRuntime.jsx(_,{variant:e?"secondary":"ghost",size:"sm",onPress:t,className:"p-1",children:r});function a4({initialUrl:e,isOpen:t,onClose:r,onSubmit:o}){let[n,a]=Ee.useState(e);return Ee__namespace.default.useEffect(()=>{a(e);},[e]),jsxRuntime.jsx(Wt,{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(vt,{title:"Insert Link",onClose:r}),jsxRuntime.jsx("div",{className:"p-6",children:jsxRuntime.jsx(ar,{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(_,{variant:"secondary",onPress:r,children:"Cancel"}),jsxRuntime.jsx(_,{type:"submit",children:"Save"})]})]})})})})}function ny({initialContent:e="",onChange:t,className:r,isDisabled:o=false,placeholder:n="Start typing...",id:a}){let[i,s]=Ee.useState(false),l=react.useEditor({immediatelyRender:false,extensions:[t4__default.default.configure({heading:{levels:[1,2]}}),Q5__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:u})=>{t?.(u.getHTML());},editorProps:{attributes:{class:tailwindMerge.twMerge("prose prose-sm max-w-none","focus:outline-none","[&>*:first-child]:mt-0 [&>*:last-child]:mb-0")}}}),c=()=>{s(true);},d=u=>{u===""?l?.chain().focus().unsetLink().run():l?.chain().focus().setLink({href:u}).run();};return l?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:[l&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsxs(menus.BubbleMenu,{editor:l,shouldShow:({editor:u})=>u.isActive("link")&&!i,className:"flex items-center gap-1 rounded-md border border-border-input bg-background-surface p-1 shadow-md",children:[jsxRuntime.jsxs(_,{variant:"ghost",size:"sm",className:"h-8 px-2",onPress:()=>{let u=l.getAttributes("link").href;window.open(u,"_blank");},children:[jsxRuntime.jsx(F,{name:"ArrowSquareOut",className:"mr-1 h-4 w-4"}),"Open"]}),jsxRuntime.jsxs(_,{variant:"ghost",size:"sm",className:"h-8 px-2",onPress:c,children:[jsxRuntime.jsx(F,{name:"PencilSimple",className:"mr-1 h-4 w-4"}),"Edit"]}),jsxRuntime.jsxs(_,{variant:"ghost",size:"sm",className:"h-8 px-2",onPress:()=>l.chain().focus().unsetLink().run(),children:[jsxRuntime.jsx(F,{name:"X",className:"mr-1 h-4 w-4"}),"Remove"]})]}),jsxRuntime.jsx(a4,{isOpen:i,onClose:()=>s(false),onSubmit:d,initialUrl:l.getAttributes("link").href||""})]}),jsxRuntime.jsxs("div",{className:"flex items-center gap-1 border-b border-border-input p-2",children:[jsxRuntime.jsx(yn,{isActive:l.isActive("heading",{level:1}),onPress:()=>l.chain().focus().toggleHeading({level:1}).run(),children:jsxRuntime.jsx("span",{className:"text-xs font-bold",children:"H1"})}),jsxRuntime.jsx(yn,{isActive:l.isActive("heading",{level:2}),onPress:()=>l.chain().focus().toggleHeading({level:2}).run(),children:jsxRuntime.jsx("span",{className:"text-xs font-bold",children:"H2"})}),jsxRuntime.jsx(yn,{isActive:l.isActive("bold"),onPress:()=>l.chain().focus().toggleBold().run(),children:jsxRuntime.jsx("span",{className:"text-xs font-bold",children:"B"})}),jsxRuntime.jsx(yn,{isActive:l.isActive("italic"),onPress:()=>l.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(yn,{isActive:l.isActive("bulletList"),onPress:()=>l.chain().focus().toggleBulletList().run(),children:jsxRuntime.jsx(F,{name:"ListBullets",className:"h-4 w-4"})}),jsxRuntime.jsx(yn,{isActive:l.isActive("orderedList"),onPress:()=>l.chain().focus().toggleOrderedList().run(),children:jsxRuntime.jsx(F,{name:"ListNumbers",className:"h-4 w-4"})}),jsxRuntime.jsx("div",{className:"mx-1 h-4 w-px bg-border-muted"}),jsxRuntime.jsx(yn,{isActive:l.isActive("link"),onPress:c,children:jsxRuntime.jsx(F,{name:"PaperclipHorizontal",className:"h-4 w-4"})})]}),jsxRuntime.jsxs("div",{className:"relative min-h-[200px] w-full outline-none focus:outline-none",children:[jsxRuntime.jsx(react.EditorContent,{editor:l,className:tailwindMerge.twMerge("w-full p-4 outline-none focus:outline-none","[&_.ProseMirror]:min-h-[inherit]","[&_.ProseMirror]:outline-none [&_.ProseMirror]:focus:outline-none","[&_.ProseMirror_h1]:mb-4 [&_.ProseMirror_h1]:text-2xl [&_.ProseMirror_h1]:font-bold","[&_.ProseMirror_h2]:mb-3 [&_.ProseMirror_h2]:text-xl [&_.ProseMirror_h2]:font-semibold","[&_.ProseMirror_p]:mb-2","[&_.ProseMirror_ul]:mb-2 [&_.ProseMirror_ul]:ml-6 [&_.ProseMirror_ul]:list-disc","[&_.ProseMirror_ol]:mb-2 [&_.ProseMirror_ol]:ml-6 [&_.ProseMirror_ol]:list-decimal","[&_.ProseMirror_li]:mb-1","[&_.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")}),l.isEmpty&&!o&&jsxRuntime.jsx("div",{className:"pointer-events-none absolute left-4 top-4 text-text-muted",children:n})]})]}):null}var l4={sm:"h-8 text-xs",md:"h-10 text-sm",lg:"h-12 text-base",xl:"h-14 text-lg"},c4={sm:14,md:16,lg:18,xl:20},d4=({isSelected:e,isFirst:t,isLast:r,isDisabled:o,variant:n="default"})=>{let a=n==="brand"?"action-brand":"action-default",i=n==="brand"?"focus-visible:outline-action-brand":"focus-visible:outline-action-default";return n==="secondary"?tailwindMerge.twMerge(ze(),"focus-visible:outline-action-default","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-heading font-medium forced-colors:!bg-[Highlight] forced-colors:!text-[HighlightText]":"text-text-muted 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(ze(),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-${a} text-[color:var(--color-${a}-text)] font-semibold forced-colors:!bg-[Highlight] forced-colors:!text-[HighlightText]`:"text-text-muted 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 Zl({options:e,value:t,onChange:r,size:o="md",className:n,isDisabled:a,variant:i="default","aria-label":s}){return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("inline-flex overflow-hidden rounded-md",i==="secondary"?"border border-border-muted":"border-2 border-border-muted",l4[o],n),role:"group","aria-label":s,children:e.map((l,c)=>jsxRuntime.jsxs(reactAriaComponents.ToggleButton,{isSelected:t===l.id,onChange:()=>r(l.id),className:d4({isSelected:t===l.id,isFirst:c===0,isLast:c===e.length-1,isDisabled:a,variant:i}),isDisabled:a,"aria-label":l.label,children:[l.icon&&jsxRuntime.jsx(F,{name:l.icon,size:c4[o]}),l.label]},l.id))})}function iy({streetAddress:e,city:t,state:r,postalCode:o,longitude:n,latitude:a,href:i,LinkComponent:s,variant:l="outlined",layout:c="stacked",showMap:d=true,mapHeight:u=200,mapboxAccessToken:m,isLoading:p=false,className:g,contentClassName:f,showMapExpandToggle:b=false,expandedMapTitle:x="Explore map",expandedMapAddressLabel:v,piiEntity:y}){let C=[];t&&C.push(t),r&&o?C.push(`${r} ${o}`):r?C.push(r):o&&C.push(o);let N=C.join(", "),P=v||[e,N].filter(Boolean).join(", "),T=d&&n!==void 0&&a!==void 0,B=({children:I,className:L})=>i?s?jsxRuntime.jsx(s,{href:i,className:L,children:I}):jsxRuntime.jsx(We,{href:i,variant:"unstyled",className:tailwindMerge.twMerge("hover:underline",L),asButton:false,children:I}):jsxRuntime.jsx("span",{className:L,children:I});if(p){let I=c==="row";return jsxRuntime.jsxs(Me,{variant:l,className:tailwindMerge.twMerge(I?"flex flex-col md:flex-row":"flex flex-col",g),children:[T&&jsxRuntime.jsx(Me.Media,{aspectRatio:"auto",className:tailwindMerge.twMerge(I&&"md:order-2 md:flex-[2] md:min-w-0"),children:jsxRuntime.jsx(J,{width:"100%",height:u})}),jsxRuntime.jsxs(Me.Content,{className:tailwindMerge.twMerge("space-y-2 px-4 md:px-6",I&&"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 A=c==="row";return jsxRuntime.jsxs(Me,{variant:l,className:tailwindMerge.twMerge("group/card relative",i&&"cursor-pointer",A?"flex flex-col md:flex-row":"flex flex-col",g),children:[i&&jsxRuntime.jsx(B,{className:"after:absolute after:inset-0 after:z-10",children:jsxRuntime.jsx("span",{className:"sr-only",children:e})}),T&&jsxRuntime.jsx(Me.Media,{aspectRatio:"auto",className:tailwindMerge.twMerge(A&&"md:order-2 md:flex-[2] md:min-w-0"),children:jsxRuntime.jsx(aa,{height:u,initialViewState:{longitude:n,latitude:a,zoom:14},showMarker:true,mapboxAccessToken:m,showExpandToggle:b,expandedMapTitle:x,expandedMapAddressLabel:P})}),jsxRuntime.jsx(Me.Content,{className:tailwindMerge.twMerge("px-4 md:px-6",A&&"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-heading group-hover/card:text-text-brand transition-colors","data-pii-type":y?"address":void 0,"data-pii-entity":y,children:e}),N&&jsxRuntime.jsx("span",{className:"text-lg font-normal leading-relaxed text-text-muted","data-pii-type":y?"city-state-zip":void 0,"data-pii-entity":y,children:N})]})})]})}function ly({site:e,contact:t,LinkComponent:r,variant:o="outlined",layout:n="stacked",showMap:a=true,mapHeight:i=200,mapboxAccessToken:s,showEmail:l=true,showPhone:c=false,isLoading:d=false,className:u,contentClassName:m,fullHeight:p=false,showMapExpandToggle:g=false,expandedMapTitle:f="Explore map",expandedMapAddressLabel:b}){let x=[];e.city&&x.push(e.city),e.state&&e.postalCode?x.push(`${e.state} ${e.postalCode}`):e.state?x.push(e.state):e.postalCode&&x.push(e.postalCode);let v=x.join(", "),y=b||[e.streetAddress,v].filter(Boolean).join(", "),C=a&&e.longitude!==void 0&&e.latitude!==void 0,N=t?`${t.firstName} ${t.lastName}`.trim():"",P=({children:B,href:A,className:I})=>A?r?jsxRuntime.jsx(r,{href:A,className:I,children:B}):jsxRuntime.jsx(We,{href:A,variant:"unstyled",className:tailwindMerge.twMerge("hover:underline",I),asButton:false,children:B}):jsxRuntime.jsx("span",{className:I,children:B});if(d){let B=n==="row";return jsxRuntime.jsxs(Me,{variant:o,className:tailwindMerge.twMerge(p&&"h-full",B?"flex flex-col md:flex-row":"flex flex-col",u),children:[C&&jsxRuntime.jsx(Me.Media,{aspectRatio:"auto",className:tailwindMerge.twMerge(B&&"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(Me.Content,{className:tailwindMerge.twMerge("space-y-4 px-4 py-4",B&&"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 T=n==="row";return jsxRuntime.jsxs(Me,{variant:o,className:tailwindMerge.twMerge("group/card relative",e.href&&"cursor-pointer",p&&"h-full",T?"flex flex-col md:flex-row":"flex flex-col",u),children:[e.href&&jsxRuntime.jsx(P,{href:e.href,className:"after:absolute after:inset-0 after:z-10",children:jsxRuntime.jsx("span",{className:"sr-only",children:e.streetAddress})}),C&&jsxRuntime.jsx(Me.Media,{aspectRatio:"auto",className:tailwindMerge.twMerge(T&&"md:order-2 md:flex-[2] md:min-w-0",p&&"flex-1"),children:jsxRuntime.jsx(aa,{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(Me.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",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-heading group-hover/card:text-text-brand transition-colors","data-pii-type":e.piiEntity?"address":void 0,"data-pii-entity":e.piiEntity,children:e.streetAddress}),v&&jsxRuntime.jsx("span",{className:"text-lg font-normal leading-relaxed text-text-muted","data-pii-type":e.piiEntity?"city-state-zip":void 0,"data-pii-entity":e.piiEntity,children:v})]}),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(Yr,{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(P,{href:t.href,className:"text-sm font-semibold leading-tight text-text-heading 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:N})}):jsxRuntime.jsx("span",{className:"text-sm font-semibold leading-tight text-text-heading block mb-0.5","data-pii-type":t.piiEntity?"full-name":void 0,"data-pii-entity":t.piiEntity,children:N}),jsxRuntime.jsxs("div",{className:"space-y-0.5",children:[l&&t.email&&jsxRuntime.jsxs("div",{className:"flex items-center gap-1.5 text-text-body",children:[jsxRuntime.jsx(F,{name:"Envelope",size:12,className:"text-text-muted flex-shrink-0"}),jsxRuntime.jsx(We,{href:`mailto:${t.email}`,variant:"unstyled",className:"text-xs leading-tight truncate text-text-body relative z-20","data-pii-type":t.piiEntity?"email":void 0,"data-pii-entity":t.piiEntity,children:t.email})]}),c&&t.phone&&jsxRuntime.jsxs("div",{className:"flex items-center gap-1.5 text-text-body",children:[jsxRuntime.jsx(F,{name:"Phone",size:12,className:"text-text-muted flex-shrink-0"}),jsxRuntime.jsx(We,{href:`tel:${t.phone}`,variant:"unstyled",className:"text-xs leading-tight truncate text-text-body relative z-20","data-pii-type":t.piiEntity?"phone":void 0,"data-pii-entity":t.piiEntity,children:Pn(t.phone)})]})]})]})]})]})]})]})}function cy({label:e,description:t,tooltip:r,errorMessage:o,size:n="md",className:a,value:i,defaultValue:s=0,onChange:l,min:c=0,max:d=100,step:u=1,disabled:m,showValue:p=true}){let g=typeof i=="number",[f,b]=Ee__namespace.default.useState(s),x=g?i:f,v=Math.min(Math.max(x,c),d),y=Math.max(d-c,1e-5),C=(v-c)/y*100;return jsxRuntime.jsxs("div",{className:he(a,"group flex w-full flex-col gap-1"),children:[e&&jsxRuntime.jsx(De,{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:`${C}%`},"aria-hidden":true}),jsxRuntime.jsx("input",{type:"range",min:c,max:d,step:u,value:x,disabled:m,"aria-invalid":!!o,onChange:N=>{let P=Number(N.currentTarget.value);g||b(P),l?.(P);},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-heading tabular-nums",children:Math.round(v)})]}),t&&jsxRuntime.jsx(ye,{className:"mt-2 text-text-muted",children:t}),o&&jsxRuntime.jsx(ce,{className:"mt-1",children:o})]})}var b4=Ee__namespace.default.createContext({orientation:"horizontal",isResizing:false});function uy(e,t){return e===void 0?t:e}function x4(e,t){return typeof e=="number"?e:typeof e=="string"&&e.endsWith("%")?Number.parseFloat(e)/100*t:Number.parseFloat(e.toString())}function Ql({asideWidth:e,asideHeight:t,minAsideWidth:r=240,minAsideHeight:o=200,minMainWidth:n=400,minMainHeight:a=300,orientation:i="horizontal",resizable:s=false,onAsideResize:l,onResizeStart:c,onResizeEnd:d,className:u,dividerClassName:m,children:p}){let g=Ee.useRef(null),[f,b]=Ee.useState(false),x=i==="horizontal"?400:300,v=uy(i==="horizontal"?e:t,x),[y,C]=Ee.useState(null),N=Ee.useCallback(M=>{if(!g.current||!f)return;let S=g.current.getBoundingClientRect(),w=i==="horizontal"?S.width:S.height,G=i==="horizontal"?M.clientX:M.clientY,z=(i==="horizontal"?S.right:S.bottom)-G,j=w-z,Z=i==="horizontal"?r:o,R=i==="horizontal"?n:a;z<Z||j<R||(C(z),l?.(z));},[f,i,r,o,n,a,l]),P=Ee.useCallback(()=>{b(false),d?.();},[d]),T=Ee.useCallback(M=>{M.preventDefault(),M.stopPropagation(),b(true),c?.();},[c]);Ee.useEffect(()=>{if(f)return document.addEventListener("mousemove",N),document.addEventListener("mouseup",P),document.body.style.cursor=i==="horizontal"?"col-resize":"row-resize",document.body.style.userSelect="none",()=>{document.removeEventListener("mousemove",N),document.removeEventListener("mouseup",P),document.body.style.cursor="",document.body.style.userSelect="";}},[f,N,P,i]);let B=Ee__namespace.default.Children.toArray(p).find(M=>Ee__namespace.default.isValidElement(M)&&M.type===my),A=Ee__namespace.default.Children.toArray(p).find(M=>Ee__namespace.default.isValidElement(M)&&M.type===fy),I=y??v,L=typeof I=="number"?`${I}px`:I;return jsxRuntime.jsx(b4.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",u),children:[jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("overflow-auto flex-1",i==="horizontal"?"h-full":"w-full"),children:B}),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:T,role:"separator","aria-orientation":i,"aria-label":"Resize divider",tabIndex:0,onKeyDown:M=>{if(!g.current)return;let S=g.current.getBoundingClientRect(),w=i==="horizontal"?S.width:S.height,G=y??x4(v,w),K=20,z=i==="horizontal"?r:o,j=i==="horizontal"?n:a;if(i==="horizontal"){if(M.key==="ArrowLeft"){let Z=Math.min(G+K,w-j);C(Z),l?.(Z);}else if(M.key==="ArrowRight"){let Z=Math.max(G-K,z);C(Z),l?.(Z);}}else if(M.key==="ArrowUp"){let Z=Math.min(G+K,w-j);C(Z),l?.(Z);}else if(M.key==="ArrowDown"){let Z=Math.max(G-K,z);C(Z),l?.(Z);}},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"]:L},children:A})]})})}function my({className:e,children:t}){return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("w-full h-full",e),children:t})}function fy({className:e,children:t}){return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("w-full h-full",e),children:t})}Ql.Main=my;Ql.Aside=fy;var y4=e=>{let t=xt({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 gy({label:e,description:t,errorMessage:r,size:o="md",tooltip:n,required:a,transparent:i,isInvalid:s,isDisabled:l,isResizable:c=false,className:d,validationResult:u,reserveErrorSpace:m=true,...p}){let{isFocused:g,handleFocus:f,handleBlur:b}=nr();return jsxRuntime.jsx("div",{className:"group flex flex-col",children:jsxRuntime.jsxs("div",{className:"flex flex-col",children:[e&&jsxRuntime.jsx(De,{size:o,tooltip:n,isRequired:a,children:e}),jsxRuntime.jsx(ot,{children:jsxRuntime.jsx("textarea",{...p,required:a,onFocus:x=>{p.onFocus&&p.onFocus(x),f(x);},onBlur:x=>{p.onBlur&&p.onBlur(x),b(x);},className:y4({isInvalid:s,isDisabled:l,isResizable:c,isFocused:g,size:o,transparent:i,className:d}),disabled:l})}),m?jsxRuntime.jsx("div",{className:"mt-1 min-h-[20px]",children:typeof r=="string"?jsxRuntime.jsx(ce,{size:o,children:r}):typeof r=="function"&&u?jsxRuntime.jsx(ce,{size:o,children:r(u)}):t?jsxRuntime.jsx(ye,{size:o,children:t}):null}):jsxRuntime.jsx(jsxRuntime.Fragment,{children:typeof r=="string"?jsxRuntime.jsx(ce,{size:o,className:"mt-1",children:r}):typeof r=="function"&&u?jsxRuntime.jsx(ce,{size:o,className:"mt-1",children:r(u)}):t?jsxRuntime.jsx(ye,{size:o,className:"mt-1",children:t}):null})]})})}function yy({label:e,description:t,errorMessage:r,size:o="md",tooltip:n,required:a,transparent:i,isInvalid:s,isDisabled:l,isResizable:c=false,className:d,validationResult:u,value:m="",onChange:p,chips:g=[],onChipsChange:f,triggerPattern:b="{{",onTriggerDetected:x,onTriggerDismissed:v,renderChip:y,chipVariant:C="brand",chipSize:N,...P}){let T=Ee.useRef(null),{isFocused:B,handleFocus:A,handleBlur:I}=nr(),L=N||"sm",M=Ee.useRef(null),S=Ee.useCallback(R=>{let V="",D=k=>{if(k.nodeType===Node.TEXT_NODE){if(!k.parentElement?.closest("[data-chip-id]")){let E=k.textContent||"";V+=E;}}else if(k.nodeType===Node.ELEMENT_NODE){let Y=k;if(Y.hasAttribute("data-chip-id")){let E=Y.getAttribute("data-chip-id");V+=`{{${E}}}`;return}else if(Y.tagName==="BR"){V+=`
110
+ `;return}else Y.tagName;}for(let Y=0;Y<k.childNodes.length;Y++)D(k.childNodes[Y]);};return D(R),V},[]),w=Ee.useCallback((R,V)=>{let D=document.createTreeWalker(R,NodeFilter.SHOW_TEXT,{acceptNode:U=>{let H=U.parentElement;return H&&H.closest("[data-chip-id]")?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT}}),k=D.nextNode(),Y=Math.max(0,V);for(;k;){let U=k.nodeValue||"";if(U.length>=Y){let H=document.createRange();H.setStart(k,Y),H.collapse(true);let q=window.getSelection();q?.removeAllRanges(),q?.addRange(H);return}Y-=U.length,k=D.nextNode();}let E=window.getSelection(),h=document.createRange();h.selectNodeContents(R),h.collapse(false),E?.removeAllRanges(),E?.addRange(h);},[]);Ee.useEffect(()=>{T.current&&!m&&T.current.textContent!==""&&(T.current.textContent="");},[m]),Ee.useLayoutEffect(()=>{if(T.current){if(m===""){if(B)try{T.current.focus({preventScroll:!0}),w(T.current,0);}catch{}return}if(M.current!=null)try{w(T.current,M.current);}finally{M.current=null;}}},[m,w,B]);let G=Ee.useCallback((R,V)=>{if(p?.(R),R===""){v?.();return}if(b&&x&&V!==void 0){let D=R.slice(0,V),k=typeof b=="string"?new RegExp(`\\${b}([^\\s]*)$`):b,Y=D.match(k);if(Y){let E=Y[1]||"",h=V-Y[0].length;x({query:E,position:V,startIndex:h});}else v?.();}},[p,b,x,v]),K=Ee.useCallback(R=>{if(!f||!p)return;let V=g.filter(k=>k.id!==R);f(V);let D=m.replace(new RegExp(`\\{\\{${R}\\}\\}`,"g"),"");p(D);},[g,f,m,p]),z=Ee.useCallback(R=>y?y(R,()=>K(R.id)):jsxRuntime.jsx(Pr,{variant:C,size:L,onRemove:l?void 0:()=>K(R.id),isDisabled:l,className:"py-0.5 px-1.5 gap-1 text-xs leading-none rounded-md",children:R.label},R.id),[y,C,L,K,l]),j=()=>{let R=xt({isInvalid:s,isDisabled:l,isFocused:B,transparent:i,size:o}),V=`min-h-[100px] py-2 px-3 ${l?"resize-none":c?"resize-y":"resize-none"}`,D=tailwindMerge.twMerge("focus:outline-none overflow-auto","[&_[data-chip-id]::selection]:bg-action-brand/20","[&:empty]:before:content-[attr(data-placeholder)] [&:empty]:before:text-text-placeholder [&:empty]:before:pointer-events-none");return tailwindMerge.twMerge(R,V,D,d)},Z=()=>m?m.split(/(\{\{[^}]+\}\})/g).map((V,D)=>{let k=V.match(/\{\{([^}]+)\}\}/);if(k){let Y=k[1],E=g.find(h=>h.id===Y);if(E)return jsxRuntime.jsx("span",{className:"inline-block align-baseline cursor-pointer",contentEditable:false,suppressContentEditableWarning:true,"data-chip-id":Y,style:{userSelect:"none",verticalAlign:"baseline",lineHeight:"1"},onClick:h=>{h.preventDefault();let U=window.getSelection(),H=document.createRange();H.selectNode(h.currentTarget),U?.removeAllRanges(),U?.addRange(H);},children:z(E)},`chip-${Y}-${D}`)}return V.includes(`
111
+ `)?V.split(`
112
+ `).map((Y,E)=>jsxRuntime.jsxs(Ee__namespace.default.Fragment,{children:[Y,E<V.split(`
113
+ `).length-1&&jsxRuntime.jsx("br",{})]},`line-${D}-${E}`)):V}):null;return jsxRuntime.jsx("div",{className:"group flex flex-col",children:jsxRuntime.jsxs("div",{className:"flex flex-col",children:[e&&jsxRuntime.jsx(De,{size:o,tooltip:n,isRequired:a,children:e}),jsxRuntime.jsx(ot,{children:jsxRuntime.jsx("div",{ref:T,contentEditable:!l,suppressContentEditableWarning:true,onInput:R=>{if(l)return;let V=R.target,D=V.querySelector("[data-chip-id]")!==null,k;if(D?(k=S(V),k=k.replace(/(\{\{[^}]+\}\})\s{2,}/g,"$1 ").replace(/\s{2,}(\{\{[^}]+\}\})/g," $1")):k=V.textContent||"",k===""){try{let h=document.createRange();h.selectNodeContents(V),h.collapse(!0);let U=window.getSelection();U?.removeAllRanges(),U?.addRange(h),M.current=0;}catch{}G("",0);return}if(k===m)return;let Y=window.getSelection(),E=0;if(Y&&Y.rangeCount>0)try{let h=Y.getRangeAt(0);if(D){let U=0,H=!1,q=re=>{if(H)return !0;if(re===h.startContainer)return U+=h.startOffset,H=!0,!0;if(re.nodeType===Node.TEXT_NODE){if(!re.parentElement?.closest("[data-chip-id]")){if(re.contains(h.startContainer))return U+=h.startOffset,H=!0,!0;U+=(re.textContent||"").length;}}else if(re.nodeType===Node.ELEMENT_NODE){let ue=re;if(ue.hasAttribute("data-chip-id")){if(ue.contains(h.startContainer)||ue===h.startContainer){let te=ue.getAttribute("data-chip-id");return U+=`{{${te}}}`.length,H=!0,!0}let X=ue.getAttribute("data-chip-id");return U+=`{{${X}}}`.length,!1}else if(ue.tagName==="BR")return ue===h.startContainer?(H=!0,!0):(U+=1,!1)}for(let ue=0;ue<re.childNodes.length;ue++)if(q(re.childNodes[ue]))return !0;return !1};q(V),E=U;}else {let U=document.createRange();U.setStart(V,0),U.setEnd(h.startContainer,h.startOffset),E=U.toString().length;}}catch{E=k.length;}M.current=E,G(k,E);},onKeyDown:R=>{if(l)return;let V=window.getSelection();if(!(!V||V.rangeCount===0))try{let D=V.getRangeAt(0),k=D.commonAncestorContainer;if(R.key==="ArrowLeft"||R.key==="ArrowRight"){let Y=k.nodeType===Node.TEXT_NODE?k.parentElement?.closest("[data-chip-id]"):k.closest("[data-chip-id]");if(Y){R.preventDefault();try{let E=document.createRange(),h=window.getSelection();R.key==="ArrowLeft"?E.setStartBefore(Y):E.setStartAfter(Y),E.collapse(!0),h?.removeAllRanges(),h?.addRange(E);}catch{}}}if(R.key==="Backspace"){let Y=null;if(Y=(k.nodeType===Node.TEXT_NODE?k.parentElement?.closest("[data-chip-id]"):k.closest("[data-chip-id]"))||null,!Y)if(k.nodeType===Node.TEXT_NODE){let E=k;if(D.startOffset===0&&E.parentElement){let h=E.previousSibling;if(h&&h.nodeType===Node.ELEMENT_NODE){let U=h.closest("[data-chip-id]");U&&(Y=U);}}}else {let E=k;if(D.startOffset>0){let h=E.childNodes[D.startOffset-1];if(h&&h.nodeType===Node.ELEMENT_NODE){let U=h.closest("[data-chip-id]");U&&(Y=U);}}}if(Y){R.preventDefault(),R.stopPropagation();let E=Y.getAttribute("data-chip-id");if(!E)return;let h=`{{${E}}}`,U=m.indexOf(h);if(U!==-1){let H=m.slice(0,U)+m.slice(U+h.length),q=g.filter(re=>re.id!==E);M.current=U;try{window.getSelection()?.removeAllRanges();}catch{}f?.(q),p?.(H);}}}}catch{}},onFocus:R=>{l||(P.onFocus&&P.onFocus(R),A(R));},onBlur:R=>{l||(P.onBlur&&P.onBlur(R),I(R));},className:j(),style:{whiteSpace:"pre-wrap",wordBreak:"break-word",...P.style},"data-placeholder":P.placeholder,children:Z()},m===""?"empty":"content")}),t&&jsxRuntime.jsx(ye,{size:o,className:"mt-3",children:t}),typeof r=="string"&&jsxRuntime.jsx(ce,{size:o,className:"mt-1",children:r}),typeof r=="function"&&u&&jsxRuntime.jsx(ce,{size:o,className:"mt-1",children:r(u)})]})})}function P4(e){return e instanceof Date&&!Number.isNaN(e.getTime())}function bp(e){return P4(e)?e:(console.warn("Invalid date detected in TimeControls, using fallback:",e),new Date)}var Sy={FIFTEEN_MINUTES:1,HOUR:2,DAY:3,WEEK:4,MONTH:5,YEAR:6},R4=[{id:"FIFTEEN_MINUTES",label:"15m"},{id:"HOUR",label:"1h"},{id:"DAY",label:"1d"},{id:"WEEK",label:"1w"}];function wy({dateRange:e,onDateRangeChange:t,windowSize:r,onWindowSizeChange:o,showWindowSize:n=true,showRangeSelector:a=true,allowDatePicker:i=false,lockWindowSize:s=false,restrictToSingleDay:l=false,presetRanges:c=[],windowSizeOptions:d=R4,autoAdjustWindowSize:u=false,className:m}){let[p,g]=Ee.useState(0),f=Ee.useRef(null),[b,x]=Ee.useState(false),v=R=>{let D=(R.before.getTime()-R.after.getTime())/(1e3*60*60);return D<=24?"FIFTEEN_MINUTES":D<=72||D<=168?"HOUR":("DAY")};Ee.useEffect(()=>{if(u&&!b&&o){let R=v(e);o(R);}},[e,u,b,o]);let y=R=>c.find(V=>{let D=V.getRange();return Math.abs(D.after.getTime()-R.after.getTime())<1e3*60*60*24&&Math.abs(D.before.getTime()-R.before.getTime())<1e3*60*60*24})?.id,[C,N]=Ee.useState(()=>y(e)),P=bp(e.after),T=bp(e.before),B=new Date(T);B.setDate(B.getDate()-1);let A={start:Qi(P,Oo()),end:Qi(B,Oo())};Ee.useEffect(()=>{let R=new ResizeObserver(V=>{for(let D of V)g(D.contentRect.width);});return f.current&&R.observe(f.current),()=>{f.current&&R.unobserve(f.current);}},[]);let I=[...d].sort((R,V)=>Sy[R.id]-Sy[V.id]),L=R=>{let V=R.toString(),D=c.find(k=>k.id===V);D&&(N(V),x(false),t(D.getRange()));},M=R=>{if(R?.start&&R?.end){N(void 0);let V=new Date(R.start.year,R.start.month-1,R.start.day,0,0,0,0),D=new Date(R.end.year,R.end.month-1,R.end.day+1,0,0,0,0);t({after:V,before:D});}},S=R=>{if(R){N(void 0);let V=new Date(R.year,R.month-1,R.day,0,0,0,0),D=new Date(R.year,R.month-1,R.day+1,0,0,0,0);t({after:V,before:D});}},w=R=>{o&&(x(true),o(R.toString()));},G=()=>{if(c.length>0){let R=c[0];N(R.id),x(false),t(R.getRange());}},K=(R,V=0)=>{let D=bp(R),k=new Date(D);return V!==0&&k.setDate(k.getDate()+V),k.toLocaleDateString("en-US")},z=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-muted",children:I.find(R=>R.id===r)?.label||r}):jsxRuntime.jsx(Wo,{className:"w-full md:w-auto",selectedKey:r,onSelectionChange:w,size:"md","aria-label":"Select Window Size",children:I.map(R=>jsxRuntime.jsx(At,{id:R.id,"aria-label":R.label,size:"md",children:R.label},R.id))}),j=l?jsxRuntime.jsx("div",{className:"flex items-center",children:jsxRuntime.jsxs(reactAriaComponents.DialogTrigger,{children:[jsxRuntime.jsxs(_,{className:"border-l pl-2 pr-2 hover:border-border-default hover:bg-background-muted hover:text-action-primary",variant:"secondary",children:[jsxRuntime.jsx(F,{name:"CalendarBlank",size:18}),jsxRuntime.jsx("span",{className:"ml-2 hidden md:block",children:K(e.after)})]}),jsxRuntime.jsx(Ze,{className:"w-auto p-3",disableGroup:true,children:jsxRuntime.jsx(Bn,{"aria-label":"Select date",value:ka(P.toISOString().split("T")[0]),onChange:S})})]})}):jsxRuntime.jsxs("div",{className:"flex items-center",children:[jsxRuntime.jsxs(reactAriaComponents.DialogTrigger,{children:[jsxRuntime.jsxs(_,{className:"rounded-r-none border-l pl-2 pr-2 hover:border-border-default hover:bg-background-muted hover:text-action-primary",variant:"secondary",children:[jsxRuntime.jsx(F,{name:"CalendarBlank",size:18}),!C&&jsxRuntime.jsx("span",{className:"ml-2 hidden md:block",children:`${K(e.after)} - ${K(e.before,-1)}`})]}),jsxRuntime.jsx(Ze,{className:"w-auto p-3",disableGroup:true,children:jsxRuntime.jsx(qn,{"aria-label":"Date range calendar",value:A,onChange:M})})]}),!C&&jsxRuntime.jsx(_,{variant:"ghost",size:"md",onPress:G,children:"Reset"})]}),Z=p<600;return jsxRuntime.jsx("div",{ref:f,className:tailwindMerge.twMerge("flex w-full flex-wrap items-center justify-between gap-4",m),children:Z?jsxRuntime.jsxs("div",{className:"flex w-full justify-between",children:[jsxRuntime.jsxs("div",{className:"flex items-center",children:[i&&j,a&&C!==void 0&&jsxRuntime.jsx(Wo,{selectedKey:C,onSelectionChange:L,size:"md","aria-label":"Select Date Range",children:c.map(R=>jsxRuntime.jsx(At,{id:R.id,size:"md",children:R.label},R.id))})]}),jsxRuntime.jsx("div",{className:"flex items-center",children:n&&r&&z})]}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsxs("div",{className:"flex items-center gap-4",children:[i&&j,a&&C!==void 0&&jsxRuntime.jsx(Zl,{options:c.map(R=>({id:R.id,label:R.label})),value:C,onChange:L,size:"sm",variant:"secondary","aria-label":"Select Date Range"})]}),jsxRuntime.jsx("div",{className:"flex items-center",children:n&&r&&z})]})})}function L4({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-placeholder italic":"text-text-body",t?"text-text-disabled cursor-not-allowed":"cursor-text",!t&&"hover:bg-background-hover","data-[focused]:bg-background-selected data-[focused]:text-text-body")}function Ty({label:e,description:t,errorMessage:r,size:o="md",tooltip:n,isRequired:a,isDisabled:i,isInvalid:s,reserveErrorSpace:l=true,validationResult:c,className:d,descriptionPlacement:u="below",...m}){return jsxRuntime.jsxs(reactAriaComponents.TimeField,{...m,isDisabled:i,isRequired:a,isInvalid:s,className:he(d,"flex flex-col gap-1"),children:[e&&jsxRuntime.jsx(De,{size:o,tooltip:n,description:u==="tooltip"||u==="inline"?t:void 0,descriptionPlacement:u,isRequired:a,children:e}),jsxRuntime.jsx(ot,{children:jsxRuntime.jsx(reactAriaComponents.DateInput,{className:tailwindMerge.twMerge(uo({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:L4({isPlaceholder:p.isPlaceholder,isDisabled:!p.isEditable||i,size:o})})})}),l?jsxRuntime.jsx("div",{className:"mt-1 min-h-[20px]",children:typeof r=="string"?jsxRuntime.jsx(ce,{size:o,children:r}):typeof r=="function"&&c?jsxRuntime.jsx(ce,{size:o,children:r(c)}):t&&u==="below"?jsxRuntime.jsx(ye,{size:o,children:t}):null}):jsxRuntime.jsx(jsxRuntime.Fragment,{children:typeof r=="string"?jsxRuntime.jsx(ce,{size:o,className:"mt-1",children:r}):typeof r=="function"&&c?jsxRuntime.jsx(ce,{size:o,className:"mt-1",children:r(c)}):t&&u==="below"?jsxRuntime.jsx(ye,{size:o,className:"mt-1",children:t}):null})]})}function ky({children:e,className:t=""}){return jsxRuntime.jsx("div",{className:`flex flex-col ${t}`.trim(),role:"list",children:e})}function Py({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-caption",content:"text-text-body"},active:{dot:"bg-text-heading border-text-heading",line:"bg-border-default",label:"text-text-caption",content:"text-text-body font-medium"},muted:{dot:"bg-border-muted border-border-muted",line:"bg-border-muted",label:"text-text-muted",content:"text-text-muted"},success:{dot:"bg-feedback-success-border border-feedback-success-border",line:"bg-border-default",label:"text-text-caption",content:"text-text-body"},error:{dot:"bg-feedback-error-border border-feedback-error-border",line:"bg-border-default",label:"text-text-caption",content:"text-text-body"},warning:{dot:"bg-feedback-warning-border border-feedback-warning-border",line:"bg-border-default",label:"text-text-caption",content:"text-text-body"},info:{dot:"bg-feedback-info-border border-feedback-info-border",line:"bg-border-default",label:"text-text-caption",content:"text-text-body"}}[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(F,{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})]})]})}var V4="flex font-medium justify-center items-center gap-2 text-center transition whitespace-nowrap box-border",Ry={default:{selected:"bg-action-default text-[color:var(--color-action-default-text)] hover:bg-action-default-hover forced-colors:bg-[ButtonText] forced-colors:text-[ButtonFace] border-2 border-transparent",unselected:"bg-transparent text-action-default border-2 border-border-muted hover:bg-text-body/[0.05] forced-colors:border-[ButtonBorder] forced-colors:bg-[ButtonFace] forced-colors:text-[ButtonText]"},brand:{selected:"bg-action-brand text-[color:var(--color-action-brand-text)] hover:bg-action-brand-hover forced-colors:bg-[ButtonText] forced-colors:text-[ButtonFace] border-2 border-transparent",unselected:"bg-transparent text-action-default border-2 border-border-muted hover:bg-text-body/[0.05] forced-colors:border-[ButtonBorder] forced-colors:bg-[ButtonFace] forced-colors:text-[ButtonText]"}},O4="opacity-[--control-hover-opacity] cursor-not-allowed pointer-events-none grayscale",H4="opacity-100 cursor-pointer",W4={"top-right":"-right-2 -top-2","top-left":"-left-2 -top-2","bottom-right":"-right-2 -bottom-2","bottom-left":"-left-2 -bottom-2"},G4={primary:"bg-action-brand text-white",destructive:"bg-action-destructive text-white"};function U4(e){let{variant:t="default",size:r="md",isDisabled:o,isSelected:n,borderRadius:a,borderRight:i,borderLeft:s}=e,l=`${V4} ${n?Ry[t].selected:Ry[t].unselected}`;return l+=` ${Ae[r].text} ${Ae[r].height} ${Ae[r].padding} ${Ae[r].gap}`,l+=` ${o?O4:H4}`,a==="left"&&(l+=" rounded-l-sm"),a==="right"&&(l+=" rounded-r-sm"),i&&(l+=" border-r"),s&&(l+=" border-l"),l+=` ${ze()}`,t==="brand"&&(l+=" focus-visible:outline-action-brand"),tailwindMerge.twMerge(l)}function Ey(e){let{className:t,children:r,onPress:o,icon:n,iconPosition:a="left",iconWeight:i,isLoading:s=false,loadingText:l,loadingIndicator:c,size:d="md",badgeNumber:u,badgeVariant:m="primary",badgePosition:p="top-right",...g}=e,f=n?jsxRuntime.jsx(F,{name:n,size:d,weight:i}):null,b=()=>{let v=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:c||jsxRuntime.jsx(F,{name:"CircleNotch",size:d,className:"animate-spin","aria-hidden":"true"})}),jsxRuntime.jsx("div",{className:"invisible","aria-hidden":"true",children:v}),l&&jsxRuntime.jsx("span",{className:"sr-only",role:"status","aria-live":"polite",children:l})]}):v},x=jsxRuntime.jsx(reactAriaComponents.ToggleButton,{onPress:o,...g,className:tailwindMerge.twMerge(U4(e),t),"aria-busy":s,children:b()});return u&&u>0?jsxRuntime.jsxs("div",{className:"relative",children:[x,jsxRuntime.jsx("span",{className:`absolute ${W4[p]} flex h-5 w-5 items-center justify-center rounded-full ${G4[m]} text-xs`,"aria-label":`${u} items`,children:u})]}):x}var yi={app:{icon:"AppWindow",label:{singular:"App",plural:"Apps"},description:"Workspace and integration apps"},site:{icon:"MapPin",label:{singular:"Site",plural:"Sites"},description:"Physical locations with energy systems"},device:{icon:"ShareNetwork",label:{singular:"Device",plural:"Devices"},description:"Connected energy devices"},customer:{icon:"Users",label:{singular:"Customer",plural:"Customers"},description:"End customers and site owners"},contact:{icon:"Users",label:{singular:"Contact",plural:"Contacts"},description:"Contact persons"},program:{icon:"ClipboardText",label:{singular:"Program",plural:"Programs"},description:"Demand response and VPP programs"},workflow:{icon:"FlowArrow",label:{singular:"Workflow",plural:"Workflows"},description:"Automated workflows and rules"},collection:{icon:"Stack",label:{singular:"Collection",plural:"Collections"},description:"Grouped entities"},board:{icon:"SquaresFour",label:{singular:"Board",plural:"Boards"},description:"Dashboard and monitoring boards"},report:{icon:"ChartLine",label:{singular:"Report",plural:"Reports"},description:"Analytics and reports"},event:{icon:"ClockCounterClockwise",label:{singular:"Event",plural:"Events"},description:"System events and activity"},alert:{icon:"Warning",label:{singular:"Alert",plural:"Alerts"},description:"Notifications and alerts"},command:{icon:"Play",label:{singular:"Command",plural:"Commands"},description:"Device commands and control"}};function K4(e){return yi[e]}function J4(e){return yi[e].icon}function j4(e,t=false){return t?yi[e].label.plural:yi[e].label.singular}function q4({formId:e="dialog-form",onSubmit:t,primaryLabel:r="Save",secondaryLabel:o="Cancel",onCancel:n,primaryVariant:a,secondaryVariant:i="secondary",children:s,title:l,...c}){return jsxRuntime.jsx(_t,{title:l,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(_n,{id:e,onSubmit:t,children:s})})}function Z4({formId:e="drawer-form",onSubmit:t,primaryLabel:r="Save",secondaryLabel:o="Cancel",onCancel:n,primaryVariant:a,secondaryVariant:i="secondary",children:s,...l}){return jsxRuntime.jsx($a,{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(_n,{id:e,onSubmit:t,className:"mt-2",children:s})})}function Q4({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 e3={sm:"gap-2",md:"gap-4",lg:"gap-6"};function t3(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 r3({cols:e={base:1},gap:t="lg",className:r,...o}){return jsxRuntime.jsx("div",{...o,className:tailwindMerge.twMerge("grid",t3(e),e3[t],r)})}function a3({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(Dt,{tag:"h3",size:"sm",children:e}):e,t?jsxRuntime.jsx(ye,{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 i3(){return jsxRuntime.jsx("hr",{className:"border-border-muted"})}function s3({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,l=i<n,c=r&&(l||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:!c,onClick:()=>c&&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",l&&"border-action-default bg-action-default text-text-onPrimary hover:bg-action-default/90",s&&"border-action-default bg-background-body text-action-default",!l&&!s&&"border-border-default bg-background-body text-text-muted",c&&"cursor-pointer",!c&&"cursor-default"),"aria-current":s?"step":void 0,children:l?jsxRuntime.jsx(F,{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-default)":"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",l&&"text-text-body",!s&&!l&&"text-text-muted"),children:a.title}),a.description&&jsxRuntime.jsx("span",{className:"mt-1 text-xs text-text-caption",children:a.description})]})]},a.id)})})})})}function c3({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-muted",children:"You have unsaved changes"}),jsxRuntime.jsxs("div",{className:"flex gap-2",children:[jsxRuntime.jsx(_,{variant:"secondary",onPress:o,children:a}),jsxRuntime.jsx(_,{type:"submit",form:e,isDisabled:!!r,children:r?"Saving...":n})]})]})}):null}function d3({when:e,message:t="You have unsaved changes. Leave anyway?"}){return Ee__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 u3({steps:e,initialStepId:t,canNavigate:r}){if(e.length===0)throw new Error("useWizard: steps array cannot be empty");let[o,n]=Ee__namespace.useState(t||e[0].id),a=e.findIndex(u=>u.id===o),i=a>0,s=a<e.length-1,l=async u=>u===o?true:r&&!await r(o,u)?false:(n(u),true);return {steps:e,currentStepId:o,setCurrentStepId:l,next:async()=>!s||a===-1?false:l(e[a+1].id),prev:async()=>!i||a===-1?false:l(e[a-1].id),hasNext:s,hasPrev:i,stepIndex:a}}function Jee(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"}}/*! Bundled license information:
114
+
115
+ react-is/cjs/react-is.production.min.js:
116
+ (** @license React v16.13.1
117
+ * react-is.production.min.js
118
+ *
119
+ * Copyright (c) Facebook, Inc. and its affiliates.
120
+ *
121
+ * This source code is licensed under the MIT license found in the
122
+ * LICENSE file in the root directory of this source tree.
123
+ *)
124
+
125
+ react-is/cjs/react-is.development.js:
126
+ (** @license React v16.13.1
127
+ * react-is.development.js
128
+ *
129
+ * Copyright (c) Facebook, Inc. and its affiliates.
130
+ *
131
+ * This source code is licensed under the MIT license found in the
132
+ * LICENSE file in the root directory of this source tree.
133
+ *)
134
+
135
+ object-assign/index.js:
136
+ (*
137
+ object-assign
138
+ (c) Sindre Sorhus
139
+ @license MIT
140
+ *)
141
+
142
+ classnames/index.js:
143
+ (*!
144
+ Copyright (c) 2018 Jed Watson.
145
+ Licensed under the MIT License (MIT), see
146
+ http://jedwatson.github.io/classnames
147
+ *)
148
+ */Object.defineProperty(exports,"DialogTrigger",{enumerable:true,get:function(){return reactAriaComponents.DialogTrigger}});exports.ActionCell=Nb;exports.ActionMenu=Ln;exports.ActivityFeed=Zc;exports.ActivityFeedGroup=Oi;exports.ActivityItem=Hi;exports.Alert=Jm;exports.AppShell=Xm;exports.AreaSeries=Ia;exports.AutoMobileRenderer=il;exports.Autocomplete=ss;exports.Avatar=Yr;exports.BREAKPOINTS=Ao;exports.Badge=Ye;exports.BadgeCell=kb;exports.Banner=cs;exports.BarSeries=Hn;exports.BooleanCell=Pb;exports.BrandProvider=mm;exports.BreadcrumbItem=us;exports.Breadcrumbs=ds;exports.Button=_;exports.Calendar=Bn;exports.Card=Me;exports.CardContent=Gc;exports.CardFooter=Uc;exports.CardHeader=Hc;exports.CardMedia=Wc;exports.CardMobileRenderer=sl;exports.CarouselAutoplayTrigger=Jf;exports.CarouselControl=Gf;exports.CarouselIndicator=zd;exports.CarouselIndicatorGroup=Kf;exports.CarouselItem=Wf;exports.CarouselItemGroup=Hf;exports.CarouselNextTrigger=Yf;exports.CarouselPrevTrigger=Uf;exports.CarouselProgressText=jf;exports.CarouselRoot=Of;exports.CategoryBarChart=Kg;exports.ChartAxis=Dr;exports.ChartBottomBar=Bs;exports.ChartContainer=nb;exports.ChartContext=yo;exports.ChartEventMarkers=Vs;exports.ChartTooltip=Un;exports.Checkbox=Ko;exports.CheckboxGroup=Vd;exports.Chip=Pr;exports.ChipInputField=_f;exports.ClearButton=Pa;exports.CodeEditor=rg;exports.Collapse=zn;exports.CollapseContent=xo;exports.CollapseHeader=bo;exports.CollapseItem=go;exports.ColorField=$1;exports.ColorModeProvider=Nm;exports.CommandPalette=hx;exports.Confirm=lg;exports.ConnectionStatusBadge=cg;exports.ContactCard=dg;exports.ContactMetaCell=Db;exports.ContactMetaDisplay=bs;exports.CopyToClipboard=po;exports.CustomCell=Eb;exports.DataControls=mb;exports.DataTable=nx;exports.DateCell=Ab;exports.DateField=bb;exports.DateRangePicker=Ys;exports.Description=ye;exports.DeviceHealthBadge=ix;exports.DeviceMetaCell=Lb;exports.DeviceMetaDisplay=Xs;exports.DeviceStateBadge=rn;exports.DeviceStateCell=Bb;exports.DeviceStateWithMetric=_s;exports.DeviceTypeIcon=lx;exports.Dialog=_t;exports.DialogForm=q4;exports.DialogHeader=vt;exports.Drawer=$a;exports.DrawerForm=Z4;exports.ENTITY_CONFIG=yi;exports.EmptyState=ux;exports.EnrollmentStatusBadge=px;exports.ErrorBoundary=dr;exports.FieldError=ce;exports.FieldGroup=Sf;exports.FileUpload=fx;exports.FilterChips=fb;exports.FilterDialog=Cb;exports.FirmwareVersionBadge=bx;exports.Form=_n;exports.FormActions=Q4;exports.FormDivider=i3;exports.FormGrid=r3;exports.FormSection=a3;exports.FormStepper=s3;exports.FormatRegistry=ee;exports.FormattedCell=Vb;exports.FunnelSeries=lb;exports.GlobalSearch=Cx;exports.Grid=Mu;exports.GridStateBadge=$s;exports.Heading=Dt;exports.HierarchyExplorer=Xx;exports.HorizontalBarCell=yu;exports.HoverCard=rP;exports.Icon=F;exports.InfiniteScrollIndicator=$t;exports.Input=os;exports.InputWrapper=ot;exports.InteractiveMap=ui;exports.Kpi=_x;exports.KpiGroup=Hu;exports.Label=De;exports.LineSeries=Ga;exports.List=ah;exports.ListBox=iS;exports.ListBoxItem=At;exports.ListItem=sh;exports.ListPane=lh;exports.Loader=Hr;exports.Logo=Gi;exports.MAP_TYPES=Mh;exports.Meter=Bh;exports.MiniBarCell=vu;exports.ModalBackdrop=Wt;exports.Notice=Vl;exports.NoticeContainer=Ol;exports.NoticeProvider=Vh;exports.NumberCell=Ub;exports.NumberField=ja;exports.PageBanner=Mf;exports.PageLayout=xn;exports.PercentBarCell=Cu;exports.PlaceSearch=Xh;exports.Popover=Ze;exports.ProgressBar=$h;exports.Radio=ty;exports.RadioCard=cp;exports.RadioCardGroup=dp;exports.RadioGroup=ey;exports.RangeCalendar=qn;exports.ResultsCount=Ya;exports.RichTextEditor=ny;exports.SKELETON_SIZES=Co;exports.SaveBar=c3;exports.SearchControl=en;exports.SearchEmptyState=Sx;exports.SearchLoadingState=Nx;exports.SearchResultGroup=kx;exports.SearchResultItem=Px;exports.SearchResultsList=Rx;exports.SearchTrigger=Ex;exports.Section=ia;exports.SectionNav=Ul;exports.SegmentedControl=Zl;exports.Select=Wo;exports.SelectCell=Kb;exports.SideNav=Ui;exports.SiteCard=iy;exports.SiteContactCard=ly;exports.SiteMetaCell=jb;exports.SiteMetaDisplay=rl;exports.Skeleton=J;exports.Slider=cy;exports.SortControl=Ka;exports.SparklineCell=Su;exports.SplitPane=Ql;exports.StatList=gl;exports.StaticMap=aa;exports.Switch=Ks;exports.Tab=ql;exports.TabList=jl;exports.TabPanel=Gh;exports.Tabs=Jl;exports.TextArea=gy;exports.TextAreaWithChips=yy;exports.TextCell=Qb;exports.TextField=ar;exports.TextLink=We;exports.TimeControls=wy;exports.TimeField=Ty;exports.Timeline=ky;exports.TimelineItem=Py;exports.ToggleButton=Ey;exports.Tooltip=Et;exports.TopNav=va;exports.Tray=Xe;exports.UnsavedChangesPrompt=d3;exports.activeDeviceStates=RN;exports.addFilterCondition=vo;exports.autoScaleCurrent=Ov;exports.autoScaleDistance=Hp;exports.autoScaleEnergy=Yp;exports.autoScalePower=jv;exports.autoScaleResistance=qv;exports.autoScaleVoltage=t0;exports.camelCaseToWords=im;exports.capitalize=nm;exports.celsiusToFahrenheit=Zv;exports.celsiusToKelvin=uD;exports.centimetersToInches=JR;exports.clearColorCache=Ii;exports.createCategoryColorMap=h0;exports.createEmptyFilter=Ua;exports.createFilter=Dw;exports.createFilters=Ew;exports.createFormat=FD;exports.createXScale=nu;exports.createYScale=au;exports.defaultMargin=Ge;exports.deviceStateLabels=DN;exports.deviceStateMetricFormats=rW;exports.enumToSentenceCase=_v;exports.exportChart=rc;exports.exportTableAsCSV=ac;exports.fahrenheitToCelsius=Xv;exports.fahrenheitToKelvin=pD;exports.feetToMeters=zR;exports.feetToMiles=HR;exports.filterToChips=Aw;exports.formatBoolean=Mp;exports.formatCapacity=gR;exports.formatComponentValue=Cr;exports.formatCurrency=zp;exports.formatCurrent=cc;exports.formatDate=Vp;exports.formatDistance=Wp;exports.formatEmptyValue=qs;exports.formatEnergy=xc;exports.formatFieldValue=Mo;exports.formatInternationalPhone=hc;exports.formatNumber=Bp;exports.formatPercent=Ip;exports.formatPhone=Kp;exports.formatPhoneNumber=Pn;exports.formatPower=Sc;exports.formatPowerRating=bR;exports.formatResistance=Nc;exports.formatTemperature=_p;exports.formatText=lm;exports.formatUSPhone=Ri;exports.formatVoltage=Pc;exports.getBadgeClasses=Sb;exports.getBooleanBadgeVariant=wb;exports.getCellAlignmentClasses=fu;exports.getCellContainerClasses=Se;exports.getCellTextClasses=ir;exports.getContrastingTextColor=y0;exports.getDateParts=AR;exports.getDefaultChartColor=Dc;exports.getDefaultColors=fm;exports.getDeviceStateDisplayLabel=xu;exports.getDeviceStateLabel=xu;exports.getEntityConfig=K4;exports.getEntityIcon=J4;exports.getEntityLabel=j4;exports.getExportFormatName=$y;exports.getExportHeaders=kv;exports.getFieldGroupStyles=oS;exports.getFilterFields=_o;exports.getGridStateLabel=Fb;exports.getInputBackgroundStyles=Cf;exports.getInputBaseStyles=xt;exports.getInputStateStyles=uo;exports.getLinkClasses=gu;exports.getNumericColorClasses=Zs;exports.getResolvedColor=pt;exports.getSkeletonSize=Vt;exports.getStateTone=Jee;exports.getThemeCategoricalColors=pa;exports.getYFormatSettings=Jr;exports.gridStateLabels=AN;exports.inchesToCentimeters=KR;exports.isActiveDeviceState=bu;exports.isActiveState=bu;exports.isCustomPinsLayer=Zu;exports.isExportSupported=Qy;exports.isFilterEmpty=Ws;exports.isGeoJsonLayer=qu;exports.isLightColor=gm;exports.isNil=ie;exports.isRasterLayer=Xu;exports.isVectorLayer=ju;exports.kelvinToCelsius=Qv;exports.kelvinToFahrenheit=mD;exports.kilometersToMiles=OR;exports.layer=Ju;exports.metersToFeet=BR;exports.metersToMiles=WR;exports.metersToYards=YR;exports.milesToFeet=Op;exports.milesToKilometers=VR;exports.milesToMeters=GR;exports.parseBoolean=no;exports.prepareTableDataForExport=Tv;exports.removeFilterCondition=$o;exports.resolveValue=be;exports.snakeCaseToWords=sm;exports.temperatureStringToSymbol=qp;exports.toA=kR;exports.toActiveInactive=Ev;exports.toAmps=ki;exports.toBoolean=oo;exports.toCelsius=Xp;exports.toCentimeters=Yv;exports.toCheckmark=Mv;exports.toCompactNumber=Bv;exports.toCurrency=Fp;exports.toCustomDateFormat=Uv;exports.toDateString=Hv;exports.toEnabledDisabled=Rv;exports.toFahrenheit=Zp;exports.toFeet=pc;exports.toFloat=Iv;exports.toFormattedNumber=Fv;exports.toFullDateTime=Wv;exports.toGW=nD;exports.toGWh=Up;exports.toGigawatts=Cc;exports.toISOString=Gv;exports.toInches=Jv;exports.toInteger=Lv;exports.toKA=PR;exports.toKV=CD;exports.toKW=rD;exports.toKelvin=Qp;exports.toKiloamps=lc;exports.toKilohms=Jp;exports.toKilometers=uc;exports.toKilovolts=kc;exports.toKilowatts=yc;exports.toLowerCase=tm;exports.toMA=TR;exports.toMV=yD;exports.toMW=oD;exports.toMWh=Gp;exports.toMegawatts=vc;exports.toMegohms=jp;exports.toMeters=dc;exports.toMiles=mc;exports.toMilliamps=sc;exports.toMillimeters=Kv;exports.toMilliohms=wc;exports.toMillivolts=Tc;exports.toNauticalMiles=FR;exports.toOhms=Ei;exports.toOnOff=Dv;exports.toPercentage=Lp;exports.toRelativeTime=Pi;exports.toScientificNotation=zv;exports.toSecret=e0;exports.toSentenceCase=rm;exports.toTemperature=$p;exports.toTitleCase=om;exports.toTrueFalse=Av;exports.toUpperCase=em;exports.toV=vD;exports.toVolts=Li;exports.toW=tD;exports.toWatts=Di;exports.toWh=gc;exports.toYards=fc;exports.tokWh=bc;exports.truncateEnd=Mi;exports.truncateMiddle=Rn;exports.truncateStart=Ai;exports.ucFirst=am;exports.useBreakpoint=kt;exports.useChartContext=Zo;exports.useClientDataControls=Ci;exports.useColorMode=Rt;exports.useComponentFormatter=vR;exports.useDataControls=Np;exports.useDebounce=to;exports.useElementSize=kn;exports.useInfiniteScroll=ro;exports.useInputFocus=nr;exports.useLocalStorage=Ni;exports.useMediaQuery=Tt;exports.useNotice=Hh;exports.useServerDataControls=Si;exports.useTableExport=Ap;exports.useWizard=u3;exports.wrapWithLink=Mr;exports.yardsToMeters=UR;//# sourceMappingURL=index.cjs.map
113
149
  //# sourceMappingURL=index.cjs.map