@texturehq/edges 1.22.0 → 1.22.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components.manifest.json +3 -3
- package/dist/index.cjs +7 -7
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +1 -1
- package/dist/index.css.map +1 -1
- package/dist/index.d.cts +11 -1
- package/dist/index.d.ts +11 -1
- package/dist/index.js +7 -7
- package/dist/index.js.map +1 -1
- package/dist/server.cjs +1 -1
- package/dist/server.cjs.map +1 -1
- package/dist/server.js +1 -1
- package/dist/server.js.map +1 -1
- package/dist/styles.css +0 -3
- package/dist/utilities.manifest.json +2 -2
- package/package.json +1 -1
- package/scripts/generate-edges-docs.js +4 -2
package/dist/index.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
'use strict';var reactAriaComponents=require('react-aria-components'),Ue=require('react'),fileSaver=require('file-saver'),Eb=require('papaparse'),Wb=require('fuse.js'),reactVirtual=require('@tanstack/react-virtual'),jsxRuntime=require('react/jsx-runtime'),luxon=require('luxon'),tailwindMerge=require('tailwind-merge'),Ix=require('@phosphor-icons/react'),reactStately=require('react-stately'),lucideReact=require('lucide-react'),framerMotion=require('framer-motion'),Z0=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'),
|
|
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"}),c=Ts(t.filename||"chart","svg",t.timestamp!==!1);fileSaver.saveAs(s,c);}catch(r){throw new Error(`SVG export failed: ${r instanceof Error?r.message:"Unknown error"}`)}}async function zb(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(p=>{p.style.fontFamily||(p.style.fontFamily="system-ui, -apple-system, sans-serif"),p.style.fontSize||(p.style.fontSize="12px");});let c=document.createElementNS("http://www.w3.org/2000/svg","rect");c.setAttribute("width",String(a.width)),c.setAttribute("height",String(a.height)),c.setAttribute("fill","white"),i.insertBefore(c,i.firstChild);let m=new XMLSerializer().serializeToString(i);m.includes("xmlns=")||(m=m.replace("<svg",'<svg xmlns="http://www.w3.org/2000/svg"'));let d=new Blob([m],{type:"image/svg+xml;charset=utf-8"});return o=URL.createObjectURL(d),new Promise((p,u)=>{let b=new Image,f=setTimeout(()=>{o&&URL.revokeObjectURL(o),u(new Error("Image loading timeout"));},1e4);b.onload=()=>{clearTimeout(f);try{let g=document.createElement("canvas");g.width=a.width*r,g.height=a.height*r;let h=g.getContext("2d");if(!h)throw new Error("Canvas context not available");h.imageSmoothingEnabled=!0,h.imageSmoothingQuality="high",h.scale(r,r),h.fillStyle="white",h.fillRect(0,0,a.width,a.height),h.drawImage(b,0,0,a.width,a.height),g.toBlob(y=>{if(y){let v=Ts(t.filename||"chart","png",t.timestamp!==!1);fileSaver.saveAs(y,v),p();}else u(new Error("Failed to create PNG blob"));o&&URL.revokeObjectURL(o);},"image/png",1);}catch(g){o&&URL.revokeObjectURL(o),u(g);}},b.onerror=()=>{clearTimeout(f),o&&URL.revokeObjectURL(o),u(new Error("Failed to load SVG as image"));},b.src=o;})}catch(n){throw o&&URL.revokeObjectURL(o),new Error(`PNG export failed: ${n instanceof Error?n.message:"Unknown error"}`)}}function Vb(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 Ob(e){return {csv:"CSV Spreadsheet",svg:"SVG Vector Image",png:"PNG Image"}[e]||"Unknown Format"}function Sd({datasets:e,metadata:t,svgRef:r}){return Ue.useCallback(async o=>{try{await Ps(o,e,t,r);}catch(n){throw console.error("Chart export failed:",n),n}},[e,t,r])}function Sn(e,t){return t.split(".").reduce((r,o)=>r?.[o],e)}function Gb(e,t){let r=Sn(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 Nd(e,t){if(t.conditions.length===0)return true;let r=t.conditions.map(o=>"conditions"in o?Nd(e,o):Gb(e,o));return t.logic==="AND"?r.every(Boolean):r.some(Boolean)}function Ub(e,t){return !t||t.conditions.length===0?e:e.filter(r=>Nd(r,t))}function Kb(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 Yb(e,t){return t?[...e].sort((r,o)=>{let n=Sn(r,t.field),a=Sn(o,t.field);return Kb(n,a,t.direction)}):e}function Jb(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 Wb__default.default(e,{keys:o,threshold:a,ignoreLocation:true,includeScore:true}).search(r).map(l=>l.item);let i=r.toLowerCase();return e.filter(s=>o.some(c=>{let l=Sn(s,c);return l==null?false:String(l).toLowerCase().includes(i)}))}function Zb(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=Sn(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 wd({data:e,filters:t,sort:r,search:o,facetConfigs:n=[]}){let a=Jb(e,o||null);a=Ub(a,t||null);let i=Zb(a,n);return a=Yb(a,r||null),{data:a,facetCounts:i,resultCount:a.length}}function Na({data:e,filters:t,sort:r,search:o,facetConfigs:n=[]}){return Ue.useMemo(()=>wd({data:e,filters:t,sort:r,search:o,facetConfigs:n}),[e,t,r,o,n])}function Oo(e,t=300){let[r,o]=Ue.useState(e);return Ue.useEffect(()=>{let n=setTimeout(()=>o(e),t);return ()=>clearTimeout(n)},[e,t]),r}function wa({filters:e,sort:t,search:r,onStateChange:o,searchDebounce:n=300}){let a=Oo(r,n),i=Ue.useRef(true);Ue.useEffect(()=>{if(i.current){i.current=false;return}o({filters:e,sort:t,search:a});},[e,t,a,o]);}function kd(e){return e.mode==="client"?Na({data:e.data,filters:e.filters,sort:e.sort,search:e.search,facetConfigs:e.facetConfigs}):(wa({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 Ho(){let[e,t]=Ue.useState({width:0,height:0}),r=Ue.useRef(null),o=Ue.useRef(void 0),n=Ue.useCallback(a=>{if(r.current&&(r.current.disconnect(),r.current=null),o.current&&(cancelAnimationFrame(o.current),o.current=void 0),!a){t({width:0,height:0});return}let i=a.getBoundingClientRect();t({width:i.width,height:i.height}),r.current=new ResizeObserver(s=>{o.current&&cancelAnimationFrame(o.current),o.current=requestAnimationFrame(c=>{for(let l of s){let{width:m,height:d}=l.contentRect;t(p=>p.width!==m||p.height!==d?{width:m,height:d}:p);}});}),r.current.observe(a);},[]);return Ue.useEffect(()=>()=>{o.current&&cancelAnimationFrame(o.current),r.current&&r.current.disconnect();},[]),{ref:n,width:e.width,height:e.height}}function Pr({items:e,onLoadMore:t,hasMore:r,isLoading:o=false,loadingState:n,enableVirtualization:a,estimatedItemSize:i=50,overscan:s=5,scrollElement:c,loadMoreThreshold:l=100}){let m=Ue.useRef(null),d=Ue.useRef(null),p=Ue.useRef(false),[u,b]=Ue.useState(0);Ue.useEffect(()=>{d.current&&(c||m.current)&&b(T=>T+1);},[c,e.length]);let f=n||(o?e.length===0?"loading":"loading-more":"idle"),g=f==="loading",h=f==="loading-more",y=a!==void 0?a:e.length>=100,v=reactVirtual.useVirtualizer({count:e.length,getScrollElement:()=>c||m.current,estimateSize:()=>i,overscan:s}),x=y?v:null,C=y?v.getVirtualItems():[];Ue.useEffect(()=>{let T=d.current,w=c||m.current;if(!T||!w||!r||o||!t)return;let F=new IntersectionObserver(E=>{let[A]=E;A?.isIntersecting&&!p.current&&r&&t&&(p.current=true,Promise.resolve(t()).finally(()=>{p.current=false;}));},{root:w,rootMargin:`0px 0px ${l}px 0px`,threshold:0});return F.observe(T),()=>{F.disconnect();}},[r,o,t,c,l,u]);let S=Ue.useCallback((T,w)=>{x?x.scrollToIndex(T,w):m.current&&m.current.children[T]?.scrollIntoView({behavior:"smooth",block:w?.align||"start"});},[x]),N=Ue.useCallback(()=>{x?x.scrollToIndex(0,{align:"start"}):m.current&&m.current.scrollTo({top:0,behavior:"smooth"});},[x]);return {virtualizer:x,virtualItems:C,computedLoadingState:f,isInitialLoad:g,isLoadingMore:h,scrollRef:m,loadMoreRef:d,scrollToIndex:S,scrollToTop:N}}function ka(e,t){let[r,o]=Ue.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}});Ue.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=Ue.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=Ue.useCallback(()=>{try{typeof window<"u"&&window.localStorage.removeItem(e),o(t);}catch(i){console.error(`Error removing localStorage key "${e}":`,i);}},[e,t]);return [r,n,a]}var Rs=class{constructor(){Cn(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();}},Q=new Rs;var Dr=(e,t="Yes",r="No")=>e==null?null:e?t:r,ix=e=>Dr(e,"Enabled","Disabled"),sx=e=>Dr(e,"On","Off"),lx=e=>Dr(e,"Active","Inactive"),cx=e=>Dr(e,"True","False"),dx=e=>Dr(e,"\u2713","\u2717"),Rr=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},Ad=(e,t)=>{if(t.hideWhenNull&&e==null)return null;if(e==null)return t.nullText??null;let r=Rr(e);return r===null?t.nullText??null:Dr(r,t.trueText??"Yes",t.falseText??"No")};Q.register("boolean",(e,t,r)=>{let o=Rr(e);return o!==null?Dr(o,typeof t=="string"?t:"Yes",typeof r=="string"?r:"No"):null});Q.register("yesNo",e=>{let t=Rr(e);return t!==null?Dr(t,"Yes","No"):null});Q.register("enabledDisabled",e=>{let t=Rr(e);return t!==null?ix(t):null});Q.register("onOff",e=>{let t=Rr(e);return t!==null?sx(t):null});Q.register("activeInactive",e=>{let t=Rr(e);return t!==null?lx(t):null});Q.register("trueFalse",e=>{let t=Rr(e);return t!==null?cx(t):null});Q.register("checkmark",e=>{let t=Rr(e);return t!==null?dx(t):null});var ee=e=>e==null,Md=(e,t=0)=>ee(e)?null:`${e.toFixed(t)}%`,Ld=(e,t=0)=>Md(e,t)??"\u2014",ux=e=>ee(e)?null:Math.round(e).toString(),mx=(e,t=1)=>ee(e)?null:e.toFixed(t),px=(e,t,r=true)=>{if(ee(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)},fx=(e,t="short")=>ee(e)?null:new Intl.NumberFormat("en-US",{notation:"compact",compactDisplay:t}).format(e),gx=(e,t=2)=>ee(e)?null:e.toExponential(t),Fd=(e,t="USD",r)=>{if(ee(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)},Ed=(e,t)=>{if(t.hideWhenNull&&e==null||t.hideWhenZero&&e===0)return null;if(e==null)return t.nullText??null;let r=typeof e=="string"?parseFloat(e):Number(e);if(isNaN(r))return t.nullText??null;let o={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)},Id=(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:Fd(r,t.currency,t)};Q.register("percentage",(e,t)=>typeof e=="number"?Md(e,typeof t=="number"?t:0):null);Q.register("integer",e=>typeof e=="number"?ux(e):null);Q.register("float",(e,t)=>typeof e=="number"?mx(e,typeof t=="number"?t:1):null);Q.register("number",(e,t,r)=>{let o=typeof e=="string"?parseFloat(e):Number(e);return isNaN(o)?null:px(o,typeof t=="number"?t:void 0,typeof r=="boolean"?r:true)});Q.register("compact",(e,t)=>typeof e=="number"?fx(e,t==="long"?"long":"short"):null);Q.register("scientific",(e,t)=>typeof e=="number"?gx(e,typeof t=="number"?t:2):null);Q.register("currency",(e,t,r)=>typeof e=="number"?Fd(e,typeof t=="string"?t:"USD",typeof r=="object"&&r!==null?r:{}):null);function S4(e,t=1){return ee(e)?null:Math.abs(e)>=1e3?`${(e/1e3).toFixed(t)} MWh`:`${e.toFixed(t)} kWh`}function N4(e,t=1){return ee(e)?null:Math.abs(e)>=1e3?`${(e/1e3).toFixed(t)} MW`:`${e.toFixed(t)} kW`}function Yt({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=Zr(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=Zr(e,{type:"date"});return jsxRuntime.jsx("time",{dateTime:e.toISOString(),title:e.toISOString(),children:n})}if(typeof e=="number")return Zr(e,{type:"number"});if(typeof e=="boolean")return Zr(e,{type:"boolean"})}return String(e)}function P4(e,t,r){return Ue__namespace.default.useCallback(o=>Yt({value:o,formatter:e,emptyClassName:t,emptyText:r}),[e,t,r])}var As=(e,t=0)=>{if(ee(e))return null;let r=e*1e3;return t===0?`${Math.round(r)} mA`:`${r.toFixed(t)} mA`},Pa=(e,t=1)=>ee(e)?null:`${e.toFixed(t)} A`,Ms=(e,t=2)=>ee(e)?null:`${(e/1e3).toFixed(t)} kA`,xx=(e,t)=>{if(ee(e))return null;let r=Math.abs(e);return r>=1e3?Ms(e,t??2):r<1?As(e,t??0):Pa(e,t??1)},Ls=(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 Ms(r,o??2);case "mA":return As(r,o??0);case "A":return Pa(r,o??1)}return t.autoScale!==false?xx(r,o):Pa(r,o??1)};Q.register("current",Ls);var L4=As,F4=Pa,E4=Ms;var qr=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},hx=(e,t=false,r)=>{if(!e)return null;let o=qr(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)},Da=e=>{if(!e)return null;let t=qr(e);return t?t.toRelative():"Invalid Date"},yx=(e,t)=>{if(!e)return null;let r=qr(e);return r?(t?r.setZone(t):r).toLocaleString(luxon.DateTime.DATETIME_MED_WITH_WEEKDAY):"Invalid Date"},vx=e=>{if(!e)return null;let t=qr(e);return t?t.toISO():null},Cx=(e,t,r)=>{if(!e)return null;let o=qr(e);return o?(r?o.setZone(r):o).toFormat(t):"Invalid Date"},V4=e=>{let t=qr(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},Bd=(e,t)=>{if(t.hideWhenNull&&e==null)return null;if(e==null)return t.nullText??null;let r=qr(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)};Q.register("date",(e,t,r)=>hx(e,typeof t=="boolean"?t:false,typeof r=="string"?r:void 0));Q.register("relativeTime",e=>Da(e));Q.register("fullDateTime",(e,t)=>yx(e,typeof t=="string"?t:void 0));Q.register("isoString",e=>vx(e));Q.register("customDateFormat",(e,t,r)=>typeof t=="string"?Cx(e,t,typeof r=="string"?r:void 0):null);var Fs=(e,t=1)=>ee(e)?null:`${e.toFixed(t)} m`,Sx=(e,t=1)=>ee(e)?null:`${(e*100).toFixed(t)} cm`,Nx=(e,t=0)=>ee(e)?null:`${(e*1e3).toFixed(t)} mm`,Es=(e,t=1)=>ee(e)?null:`${(e/1e3).toFixed(t)} km`,Is=(e,t=0)=>ee(e)?null:`${e.toFixed(t)} ft`,wx=(e,t=1)=>ee(e)?null:`${e.toFixed(t)} in`,Bs=(e,t=1)=>ee(e)?null:`${e.toFixed(t)} mi`,zs=(e,t=0)=>ee(e)?null:`${e.toFixed(t)} yd`,G4=(e,t=1)=>ee(e)?null:`${e.toFixed(t)} nm`,U4=e=>e*3.28084,K4=e=>e/3.28084,Y4=e=>e*1.60934,J4=e=>e/1.60934,Z4=e=>e/5280,zd=e=>e*5280,q4=e=>e/1609.34,X4=e=>e*1609.34,j4=e=>e*.9144,Q4=e=>e/.9144,$4=e=>e*2.54,_4=e=>e/2.54,Vd=(e,t=false,r=1)=>{if(ee(e))return null;let o=Math.abs(e);return t?o>=1e3?Es(e,r):o<.01?Nx(e,0):o<1?Sx(e,r):Fs(e,r):o<.01?Is(zd(e),0):o<.1?zs(zd(e)/3,0):Bs(e,r)},Od=(e,t)=>{if(t.hideWhenNull&&e==null||t.hideWhenZero&&e===0)return null;if(e==null)return t.nullText??null;let r=typeof e=="string"?parseFloat(e):Number(e);if(isNaN(r))return t.nullText??null;let o=t.decimals??1;if(t.autoScale){let n=t.unit==="m"||t.unit==="km";return Vd(r,n,o)}switch(t.unit){case "km":return Es(r,o);case "ft":return Is(r,o);case "mi":return Bs(r,o);case "yd":return zs(r,o);case "m":default:return Fs(r,o)}};Q.register("miles",(e,t)=>typeof e=="number"?Bs(e,typeof t=="number"?t:1):null);Q.register("kilometers",(e,t)=>typeof e=="number"?Es(e,typeof t=="number"?t:1):null);Q.register("meters",(e,t)=>typeof e=="number"?Fs(e,typeof t=="number"?t:1):null);Q.register("feet",(e,t)=>typeof e=="number"?Is(e,typeof t=="number"?t:0):null);Q.register("yards",(e,t)=>typeof e=="number"?zs(e,typeof t=="number"?t:0):null);Q.register("inches",(e,t)=>typeof e=="number"?wx(e,typeof t=="number"?t:1):null);Q.register("autoScaleDistance",(e,t,r)=>typeof e=="number"?Vd(e,typeof t=="boolean"?t:false,typeof r=="number"?r:1):null);var Vs=(e,t=1)=>ee(e)?null:`${e.toFixed(t)} Wh`,Os=(e,t=1)=>ee(e)?null:`${(e/1e3).toFixed(t)} kWh`,Hd=(e,t=1)=>ee(e)?null:`${(e/1e6).toFixed(t)} MWh`,Wd=(e,t=1)=>ee(e)?null:`${(e/1e9).toFixed(t)} GWh`,Gd=(e,t=1)=>{if(ee(e))return null;let r=Math.abs(e);return r>=1e9?Wd(e,t):r>=1e6?Hd(e,t):r>=1e3?Os(e,t):Vs(e,t)},Hs=(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 Wd(r,o);case "MWh":return Hd(r,o);case "kWh":return Os(r,o);case "Wh":return Vs(r,o)}return t.autoScale!==false?Gd(r,o):Vs(r,o)};Q.register("kWh",e=>typeof e=="number"?Os(e):null);Q.register("autoScaleEnergy",(e,t)=>typeof e=="number"?Gd(e,typeof t=="number"?t:1):null);Q.register("energy",Hs);var Ra=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},Ws=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():Ra(e)},Wo=e=>e?e.startsWith("+")||e.length>11?Ws(e):Ra(e):null,Ud=(e,t)=>{if(t.hideWhenNull&&e==null)return null;if(e==null)return t.nullText??null;let r=String(e);if(t.international)return Ws(r);switch(t.country){case "US":case "CA":return Ra(r);default:return Wo(r)}};Q.register("phoneNumber",e=>typeof e=="string"?Wo(e):null);Q.register("usPhone",e=>typeof e=="string"?Ra(e):null);Q.register("internationalPhone",e=>typeof e=="string"?Ws(e):null);var Aa=(e,t=0)=>ee(e)?null:t===0?`${Math.round(e)} W`:`${e.toFixed(t)} W`,Gs=(e,t=1)=>ee(e)?null:`${(e/1e3).toFixed(t)} kW`,Us=(e,t=1)=>ee(e)?null:`${(e/1e6).toFixed(t)} MW`,Ks=(e,t=2)=>ee(e)?null:`${(e/1e9).toFixed(t)} GW`,kx=(e,t)=>{if(ee(e))return null;let r=Math.abs(e);return r>=1e9?Ks(e,t??2):r>=1e6?Us(e,t??1):r>=1e3?Gs(e,t??1):Aa(e,t??0)},Ys=(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 Ks(r,o??2);case "MW":return Us(r,o??1);case "kW":return Gs(r,o??1);case "W":return Aa(r,o??0)}return t.autoScale!==false?kx(r,o):Aa(r,o??0)};Q.register("power",Ys);var lk=Aa,ck=Gs,dk=Us,uk=Ks;var Js=(e,t=1)=>ee(e)?null:`${(e*1e3).toFixed(t)} m\u03A9`,Ma=(e,t=1)=>ee(e)?null:`${e.toFixed(t)} \u03A9`,Kd=(e,t=1)=>ee(e)?null:`${(e/1e3).toFixed(t)} k\u03A9`,Yd=(e,t=2)=>ee(e)?null:`${(e/1e6).toFixed(t)} M\u03A9`,Tx=(e,t)=>{if(ee(e))return null;let r=Math.abs(e);return r>=1e6?Yd(e,t??2):r>=1e3?Kd(e,t??1):r<1?Js(e,t??1):Ma(e,t??1)},Zs=(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 Yd(r,o??2);case "k\u03A9":return Kd(r,o??1);case "m\u03A9":return Js(r,o??1);case "\u03A9":return Ma(r,o??1)}return t.autoScale!==false?Tx(r,o):Ma(r,o??1)};Q.register("resistance",Zs);Q.register("ohms",e=>typeof e=="number"?Ma(e):null);Q.register("milliohms",e=>typeof e=="number"?Js(e):null);var Jd=e=>{switch(e){case "FAHRENHEIT":return "F";case "CELSIUS":return "C";case "KELVIN":return "K";default:return "F"}},Zd=(e,t=0)=>ee(e)?null:`${e.toFixed(t)}\xB0F`,qd=(e,t=true,r=0)=>ee(e)?null:`${(t?(e-32)*(5/9):e).toFixed(r)}\xB0C`,Xd=(e,t=true,r=0)=>ee(e)?null:`${(t?(e-32)*(5/9)+273.15:e+273.15).toFixed(r)}K`,Px=e=>e*9/5+32,Dx=e=>(e-32)*(5/9),hk=e=>e+273.15,Rx=e=>e-273.15,yk=e=>Dx(e)+273.15,vk=e=>Px(Rx(e)),jd=(e,t="F",r=0)=>{if(ee(e))return null;switch(typeof t=="string"&&t.length>1?Jd(t):t){case "C":return qd(e,true,r);case "K":return Xd(e,true,r);case "F":default:return Zd(e,r)}},Qd=(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?Jd(n):n){case "C":return ((r-32)*.5555555555555556).toFixed(o);case "K":return ((r-32)*.5555555555555556+273.15).toFixed(o);case "F":default:return r.toFixed(o)}return jd(r,n,o)};Q.register("temperature",(e,t,r)=>typeof e=="number"?jd(e,typeof t=="string"?t:"F",typeof r=="number"?r:0):null);Q.register("fahrenheit",(e,t)=>typeof e=="number"?Zd(e,typeof t=="number"?t:0):null);Q.register("celsius",(e,t,r)=>typeof e=="number"?qd(e,typeof t=="boolean"?t:true,typeof r=="number"?r:0):null);Q.register("kelvin",(e,t,r)=>typeof e=="number"?Xd(e,typeof t=="boolean"?t:true,typeof r=="number"?r:0):null);var Ax=(e,t)=>!!(t.hideWhenNull&&e==null||t.hideWhenZero&&e===0),$d=e=>e?.toUpperCase()??"",_d=e=>e?.toLowerCase()??"",eu=e=>e?e.charAt(0).toUpperCase()+e.slice(1).toLowerCase():"",tu=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(" ")},ru=e=>e?e.split(/\s+/).map(t=>t.charAt(0).toUpperCase()+t.slice(1).toLowerCase()).join(" "):"",ou=e=>e?e.charAt(0).toUpperCase()+e.slice(1):"",nu=e=>e?e.replace(/([A-Z])/g," $1").replace(/^./,t=>t.toUpperCase()).trim():"",au=e=>e?e.toLowerCase().split("_").map(t=>ou(t)).join(" "):"",Mx=e=>e?e.includes("_")?au(e):e.toUpperCase()===e?ou(e.toLowerCase()):nu(e):"",iu=(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)}`},su=(e,t=8)=>e?e.length<=t?e:`...${e.slice(-t)}`:"",lu=(e,t=16,r="...")=>e?e.length<=t?e:e.slice(0,t)+r:"",Lx=e=>{if(!e)return "";let t=e.toString(),r=t.slice(-4),o=t.length-4;return o>0?"*".repeat(o)+r:t},cu=(e,t)=>{if(Ax(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=$d(r);break;case "lowercase":r=_d(r);break;case "capitalize":r=ru(r);break;case "titleCase":r=tu(r);break;case "sentenceCase":r=eu(r);break}}),t.truncate){let{length:o,position:n,ellipsis:a="..."}=t.truncate;switch(n){case "start":r=su(r,o);break;case "middle":r=iu(r,o);break;case "end":r=lu(r,o,a);break}}return r};Q.register("uppercase",e=>$d(String(e)));Q.register("lowercase",e=>_d(String(e)));Q.register("sentenceCase",e=>eu(String(e)));Q.register("titleCase",e=>tu(String(e)));Q.register("capitalize",e=>ru(String(e)));Q.register("camelCaseToWords",e=>nu(String(e)));Q.register("snakeCaseToWords",e=>au(String(e)));Q.register("enumToSentenceCase",e=>Mx(String(e)));Q.register("truncateMiddle",(e,t)=>iu(String(e),typeof t=="number"?t:16));Q.register("truncateStart",(e,t)=>su(String(e),typeof t=="number"?t:8));Q.register("truncateEnd",(e,t,r)=>lu(String(e),typeof t=="number"?t:16,typeof r=="string"?r:"..."));Q.register("secret",e=>Lx(String(e)));var qs=(e,t=0)=>{if(ee(e))return null;let r=e*1e3;return t===0?`${Math.round(r)} mV`:`${r.toFixed(t)} mV`},La=(e,t=0)=>ee(e)?null:t===0?`${Math.round(e)} V`:`${e.toFixed(t)} V`,Xs=(e,t=1)=>ee(e)?null:`${(e/1e3).toFixed(t)} kV`,Fx=(e,t)=>{if(ee(e))return null;let r=Math.abs(e);return r>=1e3?Xs(e,t??1):r<1?qs(e,t??0):La(e,t??0)},js=(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 Xs(r,o??1);case "mV":return qs(r,o??0);case "V":return La(r,o??0)}return t.autoScale!==false?Fx(r,o):La(r,o??0)};Q.register("voltage",js);var Tk=qs,Pk=La,Dk=Xs;var Ex=(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:Ld(r,t.decimals??0)},Zr=(e,t)=>{switch(t.type){case "text":return cu(e,t);case "number":return Ed(e,t);case "percentage":return Ex(e,t);case "currency":return Id(e,t);case "date":return Bd(e,t);case "boolean":return Ad(e,t);case "energy":return Hs(e,t);case "power":return Ys(e,t);case "voltage":return js(e,t);case "current":return Ls(e,t);case "resistance":return Zs(e,t);case "temperature":return Qd(e,t);case "distance":return Od(e,t);case "phone":return Ud(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}},Gk=(e,t)=>({type:e,...t});var Go={xs:16,sm:20,md:24,lg:32,xl:40,"2xl":48},k=Ue.memo(({name:e,size:t="md",color:r,weight:o="regular",className:n,ariaLabel:a,...i})=>{let s=Ix__namespace[e];if(!s)return process.env.NODE_ENV==="development"&&console.error(`Icon "${e}" not found in @phosphor-icons/react`),null;let c=typeof t=="string"&&t in Go?Go[t]:t,l=tailwindMerge.twMerge("inline-block flex-shrink-0",!r&&"text-current",n);return jsxRuntime.jsx(s,{...i,size:c,color:r,weight:o,className:l,"aria-label":a||`${e} icon`,"data-testid":`icon-${e}`})});k.displayName="Icon";var mu=Ue.memo(({variant:e="subtle",shape:t="square",containerSize:r,containerClassName:o,size:n="md",className:a,name:i,color:s,weight:c,ariaLabel:l,ref:m,...d})=>{let p=typeof n=="string"&&n in Go?Go[n]:n,u=r?typeof r=="string"&&r in Go?Go[r]:r:p*1.75,b=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:b,style:{width:u,height:u},children:jsxRuntime.jsx(k,{...d,name:i,size:n,color:s,weight:c,className:a,ariaLabel:l})})});mu.displayName="IconWithContainer";function St({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",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 Jx({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 We({children:e,showArrow:t=false,withBackdrop:r=false,className:o,isDismissable:n=true,disableGroup:a=false,...i}){let c=reactAriaComponents.useSlottedContext(reactAriaComponents.PopoverContext)?.trigger==="SubmenuTrigger",l=t?12:8;l=c?l-6:l;let m=jsxRuntime.jsxs(reactAriaComponents.Popover,{offset:l,...i,className:reactAriaComponents.composeRenderProps(o,(d,p)=>Jx({...p,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(St,{isDismissable:n,children:jsxRuntime.jsx(reactAriaComponents.Modal,{isDismissable:n,children:m})}):m}function Fa({children:e,items:t,className:r,align:o="left",textAlign:n="left",size:a="md",onAction:i,header:s,footer:c}){return jsxRuntime.jsx("div",{className:r,children:jsxRuntime.jsxs(reactAriaComponents.MenuTrigger,{children:[e,jsxRuntime.jsx(We,{className:tailwindMerge.twMerge("w-fit min-w-[180px] overflow-auto rounded-[var(--control-border-radius)] border border-border-default","bg-background-surface p-1 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"),placement:o==="right"?"bottom end":"bottom start",children:jsxRuntime.jsxs("div",{className:"flex min-w-[180px] flex-col gap-1",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(l=>jsxRuntime.jsx(Qx,{id:l.id,onAction:()=>l.onAction?.()||i?.(l),textAlign:n,size:a,iconName:l.iconName,isDisabled:l.disabled,variant:l.variant,"data-testid":l.testId,children:l.name},l.id))}),c?jsxRuntime.jsx("div",{className:"px-3 pb-3 pt-2",children:c}):null]})})]})})}function Qx({textAlign:e="left",iconName:t,size:r="md",isDisabled:o,children:n,variant:a="default",...i}){let s={sm:"px-3 py-1.5 text-sm",md:"px-4 py-2 text-base"},c={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 jsxRuntime.jsxs(reactAriaComponents.MenuItem,{...i,isDisabled:o,className:tailwindMerge.twMerge("group box-border flex w-full cursor-pointer items-center rounded-sm outline-none transition-colors",s[r],c[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-2 flex-shrink-0"}),jsxRuntime.jsx("span",{className:"flex-1",children:n}),t&&e==="right"&&jsxRuntime.jsx(k,{name:t,size:r==="sm"?16:20,className:"ml-2 flex-shrink-0"})]})}var Ea=({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 Rt({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(Ea,{size:20,color:"text-text-muted"}),t&&jsxRuntime.jsx("span",{className:"text-sm","aria-hidden":"true",children:t})]});return o||n}var R=({width:e,height:t,variant:r="rect",animation:o="pulse",gradient:n=false,flex:a=false,stack:i,responsive:s,delay:c=0,adjustAnimationSpeedBasedOnWidth:l=false,ariaLabel:m,className:d,"data-testid":p})=>{let[u,b]=Ue.useState(c===0);if(Ue.useEffect(()=>{if(c>0){let C=setTimeout(()=>b(true),c);return ()=>clearTimeout(C)}},[c]),!u)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)]",g=l&&e?(()=>{let C=typeof e=="number"?e:parseFloat(String(e));return isNaN(C)?"":`animation-duration-[${Math.max(.8,C/100)}s]`})():"",h=o==="pulse"?`animate-pulse ${g}`: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 ${g}`:"",y="rounded-sm";r==="circle"&&(y="rounded-full"),r==="text"&&(y="h-4 w-full rounded-sm");let v=a?"flex-1 min-w-0":"",x=s?Object.entries(s).map(([C,S])=>`${C}:w-[${S}]`).join(" "):"";return i?jsxRuntime.jsx("div",{className:"space-y-2","data-testid":p,children:i.map((C,S)=>jsxRuntime.jsx("div",{className:tailwindMerge.twMerge(f,h,y,v,x,d),style:{width:C,height:t}},S))}):jsxRuntime.jsx("div",{className:tailwindMerge.twMerge(f,h,y,v,x,d),style:{width:e,height:t},role:"presentation","aria-hidden":!m,"aria-label":m??void 0,"data-testid":p})},xu=({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 kn=new Map,je=(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)}`),kn.has(r))return kn.get(r);try{let o=document.body||document.documentElement,a=getComputedStyle(o).getPropertyValue(r).trim();if(a)return kn.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)"?(kn.set(r,s),s):t}catch(o){return console.warn(`Failed to resolve color for ${e}:`,o),t}},Uo=()=>{kn.clear();},Tn=()=>{let e=[];for(let t=1;t<=6;t++){let r=je(`--color-viz-categorical-${t}`);r&&e.push(r);}return e.length===0?hu():e},hu=()=>["#444ae1","#10b981","#f59e0b","#ef4444","#8b5cf6","#06b6d4","#ec4899","#f97316","#14b8a6","#6366f1"],_s=()=>je("--color-viz-default","#444ae1"),oh=(e,t)=>{let r={},o=Tn();return e.forEach((n,a)=>{t&&t[n]?r[n]=t[n]:r[n]=o[a%o.length];}),r};var yu=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},nh=e=>yu(e)?je("--text-body","#333333"):je("--neutral-white","#ffffff"),vu=(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()},Cu=e=>{let t=Tn(),r={};return e.forEach((o,n)=>{r[o]=t[n%t.length];}),r};var el=(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)},tl=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]},Su=(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},rl=(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=je(i);n.push(s);}return n},ol=(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=je(i);n.push(s);}return n},Pn=(e,t,r,o="viridis")=>{let n=rl(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]},Dn=(e,t,r,o,n="redYellowBlue")=>{let a=ol(n),i=4;if(e<=t)return a[0];if(e>=r)return a[a.length-1];if(e===o||t===r)return a[i];if(e<o){let c=(e-t)/(o-t)*i,l=Math.floor(c);return a[Math.min(l,i)]}else {let s=(e-o)/(r-o),c=i+s*(a.length-1-i),l=Math.floor(c);return a[Math.min(l,a.length-1)]}};var al=Ue.createContext({colorMode:"light",isDarkTheme:false,toggleTheme:()=>{}}),mt=()=>Ue.useContext(al);function nl(){if(typeof window>"u")return "light";let e=localStorage.getItem("theme");return e==="dark"||e==="light"?e:document.body.classList.contains("theme-dark")||document.documentElement.classList.contains("theme-dark")||window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}var wu=({children:e})=>{let[t,r]=Ue.useState(nl),o=t==="dark";Ue.useEffect(()=>{Uo();let a=()=>{let d=nl();d!==t&&r(d);};a();let i=setTimeout(a,100),s=window.matchMedia("(prefers-color-scheme: dark)"),c=d=>{localStorage.getItem("theme")||(Uo(),r(d.matches?"dark":"light"));},l=()=>{let d=nl();d!==t&&(Uo(),r(d));};s.addEventListener("change",c);let m=new MutationObserver(l);return m.observe(document.body,{attributes:true,attributeFilter:["class"]}),m.observe(document.documentElement,{attributes:true,attributeFilter:["class"]}),()=>{clearTimeout(i),s.removeEventListener("change",c),m.disconnect();}},[t]);let n=Ue.useCallback(()=>{r(a=>{let i=a==="light"?"dark":"light";return localStorage.setItem("theme",i),i==="dark"?document.body.classList.add("theme-dark"):document.body.classList.remove("theme-dark"),Uo(),i});},[]);return jsxRuntime.jsx(al.Provider,{value:{colorMode:t,isDarkTheme:o,toggleTheme:n},children:e})};function ku(e){let t=(e.end.getTime()-e.start.getTime())/36e5;if(t<=72)return a=>new Intl.DateTimeFormat("en",{month:"short",day:"numeric",hour:"numeric",minute:"2-digit"}).format(a);if(t<=720)return a=>new Intl.DateTimeFormat("en",{month:"short",day:"numeric"}).format(a);let r=e.start.getFullYear(),o=e.end.getFullYear(),n=r!==o;return a=>new Intl.DateTimeFormat("en",{month:"short",day:"numeric",...n&&{year:"numeric"}}).format(a)}function Tu(e){let t=(e.end.getTime()-e.start.getTime())/36e5;if(t<=24)return a=>new Intl.DateTimeFormat("en",{hour:"numeric",minute:"2-digit"}).format(a);if(t<=48)return a=>new Intl.DateTimeFormat("en",{month:"short",day:"numeric",hour:"numeric"}).format(a);if(t<=720)return a=>new Intl.DateTimeFormat("en",{month:"short",day:"numeric"}).format(a);let r=e.start.getFullYear(),o=e.end.getFullYear(),n=r!==o;return a=>new Intl.DateTimeFormat("en",{month:"short",day:"numeric",...n&&{year:"numeric"}}).format(a)}function ke(e=false){return `${e?"outline outline-1 outline-border-input focus:outline-2 focus:outline-action-default focus: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 focus-visible:outline focus-visible:outline-2 focus-visible:outline-action-default 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 ce(e,t){return reactAriaComponents.composeRenderProps(e,r=>tailwindMerge.twMerge(t,r))}var Ko=Ue.createContext({variant:"timeline",size:"md"});function Ru(){return Ue.useContext(Ko)}function Ia(e){return Ue.isValidElement(e)&&e.type===Va}function xh(e){return Ue.isValidElement(e)&&e.type===za}function sl({variant:e="timeline",size:t="md",className:r,children:o,items:n,renderItem:a,isLoading:i=false,loadingState:s,error:c=null,renderLoadingSkeleton:l,loadingSkeletonCount:m=5,emptyMessage:d="No activity found.",onLoadMore:p,hasMore:u=false,enableVirtualization:b,estimatedItemSize:f,loadingIndicator:g,height:h,maxHeight:y,...v}){let x=Ue.useRef(null),{isMobile:C}=Vo(),S=C?"stacked":e,N=n!==void 0&&a!==void 0,{scrollRef:T,loadMoreRef:w,virtualizer:F,virtualItems:E,isLoadingMore:A,computedLoadingState:J}=Pr({items:n||[],onLoadMore:N?p:void 0,hasMore:N?u:false,isLoading:i,loadingState:s,enableVirtualization:N?b:false,estimatedItemSize:f||(S==="stacked"?120:150),overscan:5}),B=N&&T?T:x,Z=Ue.useMemo(()=>({variant:S,size:t}),[S,t]),Y=S==="timeline"?t==="sm"?"gap-4":"gap-6":"gap-0",G=S==="stacked"?"divide-y divide-border-subtle rounded-lg border border-border-subtle bg-background-surface":"",M={};if(N&&p&&(h?(M.height=typeof h=="number"?`${h}px`:h,M.overflowY="auto"):y?(M.maxHeight=typeof y=="number"?`${y}px`:y,M.overflowY="auto"):(M.height="600px",M.overflowY="auto")),N){let U=J==="loading"||i&&(!n||n.length===0);if(U){let I=l?jsxRuntime.jsx(jsxRuntime.Fragment,{children:Array.from({length:m}).map((O,K)=>jsxRuntime.jsx("div",{children:l()},`skeleton-${K}`))}):jsxRuntime.jsx(jsxRuntime.Fragment,{children:Array.from({length:m}).map((O,K)=>{let L=t==="sm"?"gap-2":"gap-3";if(S==="timeline"){let W=t==="sm"?"pt-3":"pt-4",D=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 ${W}`,children:[jsxRuntime.jsx(R,{width:32,height:32,variant:"circle"}),K<m-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 ${L} ${D} rounded-md border border-border-subtle bg-background-surface`,children:[jsxRuntime.jsxs("div",{className:"flex items-center justify-between gap-3",children:[jsxRuntime.jsx(R,{width:"50%",height:16}),jsxRuntime.jsx(R,{width:"15%",height:12})]}),jsxRuntime.jsx(R,{width:"85%",height:t==="sm"?14:15}),jsxRuntime.jsx(R,{width:"70%",height:t==="sm"?14:15})]})]},`skeleton-${K}`)}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(R,{width:24,height:24,variant:"circle"}),jsxRuntime.jsx(R,{width:"50%",height:16})]}),jsxRuntime.jsxs("div",{className:`mt-3 flex flex-col ${L}`,children:[jsxRuntime.jsx(R,{width:"85%",height:t==="sm"?14:15}),jsxRuntime.jsx(R,{width:"70%",height:t==="sm"?14:15}),jsxRuntime.jsx(R,{width:"20%",height:12})]})]},`skeleton-${K}`)})});return jsxRuntime.jsx(Ko.Provider,{value:Z,children:jsxRuntime.jsx("div",{ref:B,"data-slot":"feed","data-variant":S,className:tailwindMerge.twMerge("flex flex-col",Y,G,r),style:M,...v,children:I})})}if(c)return jsxRuntime.jsx(Ko.Provider,{value:Z,children:jsxRuntime.jsx("div",{ref:B,"data-slot":"feed","data-variant":S,className:tailwindMerge.twMerge("flex flex-col",Y,G,r),style:M,...v,children:jsxRuntime.jsx("div",{className:"p-4 text-center text-action-destructive",children:c})})});if(!n||n.length===0)return jsxRuntime.jsx(Ko.Provider,{value:Z,children:jsxRuntime.jsx("div",{ref:B,"data-slot":"feed","data-variant":S,className:tailwindMerge.twMerge("flex flex-col",Y,G,r),style:M,...v,children:jsxRuntime.jsx("div",{className:"p-4 text-center text-text-muted",children:d})})});let z=F?E?.map(I=>({virtualItem:I,item:n[I.index],index:I.index}))||[]:n.map((I,O)=>({item:I,index:O,virtualItem:null}));return jsxRuntime.jsx(Ko.Provider,{value:Z,children:jsxRuntime.jsxs("div",{ref:B,"data-slot":"feed","data-variant":S,className:tailwindMerge.twMerge("flex flex-col",Y,G,r),style:{...M,position:F?"relative":void 0},...v,children:[F?jsxRuntime.jsxs("div",{style:{height:`${F.getTotalSize()}px`,position:"relative"},children:[z.map(({item:I,index:O,virtualItem:K})=>{if(!I||!K)return null;let L=a(I,O),W=S==="timeline"&&Ue.isValidElement(L)&&Ia(L)?Ue.cloneElement(L,{showConnector:O!==n.length-1}):L;return jsxRuntime.jsx("div",{style:{position:"absolute",top:0,left:0,width:"100%",transform:`translateY(${K.start}px)`},"data-index":K.index,ref:F.measureElement,children:W},`item-${O}`)}),A&&jsxRuntime.jsx("div",{style:{position:"absolute",top:`${F.getTotalSize()}px`,left:0,width:"100%"},children:g||jsxRuntime.jsx(Rt,{state:"loading-more"})})]}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[z.map(({item:I,index:O})=>{let K=a(I,O);if(S==="timeline"&&Ue.isValidElement(K)&&Ia(K)){let L=O===n.length-1;return jsxRuntime.jsx("div",{children:Ue.cloneElement(K,{showConnector:!L})},`item-${O}`)}return jsxRuntime.jsx("div",{children:K},`item-${O}`)}),A&&(g||jsxRuntime.jsx(Rt,{state:"loading-more"}))]}),p&&u&&!U&&jsxRuntime.jsx("div",{ref:w,style:F?{position:"absolute",top:`${F.getTotalSize()}px`,left:0,width:"100%",height:1}:{height:1,width:"100%"}})]})})}let j=Ue.Children.toArray(o),V=j.map((U,z)=>{if(Ia(U)){let I=U.props.showConnector??(S==="timeline"&&z<j.length-1),O=S==="timeline"&&z>0;return Ue.cloneElement(U,{showConnector:I,showIncomingConnector:O})}if(xh(U)){let I=z===j.length-1;return Ue.cloneElement(U,{__isLastGroup:I,__isFirstGroup:z===0})}return U});return jsxRuntime.jsx(Ko.Provider,{value:Z,children:jsxRuntime.jsx("div",{"data-slot":"feed","data-variant":S,className:tailwindMerge.twMerge("flex flex-col",Y,G,r),...v,children:V})})}sl.displayName="ActivityFeed";function za(e){let{variant:t,size:r}=Ru(),{title:o,description:n,actions:a,children:i,className:s,__isLastGroup:c=false,__isFirstGroup:l=false,...m}=e,d=Ue.Children.toArray(i),p=d.map((f,g)=>{if(Ia(f)){let h=f.props.showConnector??(t==="timeline"&&!(c&&g===d.length-1));return Ue.cloneElement(f,{showConnector:h,showIncomingConnector:t==="timeline"&&!(l&&g===0)})}return f}),u=t==="timeline"?"pl-[3rem]":r==="sm"?"px-3":"px-4",b=r==="sm"?"gap-3":"gap-4";return jsxRuntime.jsxs("section",{"data-slot":"group",className:tailwindMerge.twMerge("flex flex-col",s),...m,children:[(o||n||a)&&jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("mb-2 flex flex-wrap items-end justify-between gap-2",u),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",b),children:p})]})}za.displayName="ActivityFeedGroup";var Pu={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"},hh={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"},yh={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 Va(e){let{variant:t,size:r}=Ru(),{title:o,description:n,timestamp:a,meta:i,media:s,actions:c,visual:l,icon:m,iconWeight:d,tone:p="neutral",surface:u,isHighlighted:b=false,showConnector:f=true,hideIndicator:g=false,interactive:h,className:y,children:v,onKeyDown:x,showIncomingConnector:C,...S}=e,N=l??(m?jsxRuntime.jsx(k,{name:m,weight:d||"fill",className:"h-4 w-4"}):null),T=u??(t==="stacked"?"minimal":"subtle"),w=r==="sm"?"gap-2":"gap-3",F="text-xs text-text-subtle",E=r==="sm"?"text-sm":"text-[15px]",A="text-xs text-text-muted",J=h??typeof S.onClick=="function",B=z=>{if(!J){x?.(z);return}z.key===" "?z.preventDefault():z.key==="Enter"&&(z.preventDefault(),z.currentTarget.click()),x?.(z);},Z=z=>{J&&z.key===" "&&(z.preventDefault(),z.currentTarget.click());},Y=J?tailwindMerge.twMerge("group cursor-pointer",ke()):void 0,M=jsxRuntime.jsxs("div",{"data-slot":"connector",className:tailwindMerge.twMerge("relative flex h-full flex-col items-center",T==="minimal"?r==="sm"?"pt-2":"pt-3":r==="sm"?"pt-3":"pt-4"),children:[jsxRuntime.jsx("span",{"data-slot":"indicator",className:tailwindMerge.twMerge("relative z-10 flex h-8 w-8 flex-shrink-0 items-center justify-center rounded-full border text-sm font-medium shadow-sm ring-2 ring-background-surface",Pu[p]),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=b?tailwindMerge.twMerge(hh[p],T==="minimal"?"rounded-md border border-border-muted":yh[p]):"";if(t==="stacked")return jsxRuntime.jsxs("div",{"data-slot":"item","data-variant":"stacked",role:J?"button":void 0,tabIndex:J?0:void 0,className:tailwindMerge.twMerge("flex flex-col",r==="sm"?"px-3 py-3":"px-4 py-4",{minimal:"",subtle:"bg-background-subtle",solid:"bg-background-muted"}[T],j,Y,J?"transition-colors hover:bg-background-subtle/80":"",y),onKeyDown:B,onKeyUp:Z,...S,children:[jsxRuntime.jsxs("div",{className:"flex items-center gap-3",children:[!g&&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",Pu[p]),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",w),children:[n&&jsxRuntime.jsx("div",{"data-slot":"description",className:tailwindMerge.twMerge("text-text-muted",E),children:n}),i&&jsxRuntime.jsx("div",{className:A,children:i}),s&&jsxRuntime.jsx("div",{className:"flex flex-col gap-2 text-sm text-text-muted",children:s}),v,c&&jsxRuntime.jsx("div",{className:"flex flex-wrap gap-2 pt-1",children:c}),a&&jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("-mt-1.5",F),children:a})]})]});let V=T==="minimal"?r==="sm"?"py-2":"py-3":r==="sm"?"p-3":"p-4",U={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:J?"button":void 0,tabIndex:J?0:void 0,className:tailwindMerge.twMerge("group relative grid items-start gap-4 grid-cols-[3rem_1fr]",Y,y),onKeyDown:B,onKeyUp:Z,...S,children:[g?jsxRuntime.jsx("div",{}):M,jsxRuntime.jsxs("div",{"data-slot":"content",className:tailwindMerge.twMerge("min-w-0 flex flex-col",w,V,U[T],j,J?"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",F),children:a})]}),n&&jsxRuntime.jsx("div",{"data-slot":"description",className:tailwindMerge.twMerge("text-text-muted",E),children:n}),i&&jsxRuntime.jsx("div",{className:A,children:i}),s&&jsxRuntime.jsx("div",{className:"flex flex-col gap-2 text-sm text-text-muted",children:s}),v,c&&jsxRuntime.jsx("div",{className:"flex flex-wrap gap-2 pt-2",children:c})]})]})}Va.displayName="ActivityItem";var he={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 Sh="flex font-medium justify-center items-center gap-2 text-center transition rounded-[var(--control-border-radius)] whitespace-nowrap box-border",Nh={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"},Mu={full:"w-full",default:"w-fit"},wh="opacity-50 cursor-not-allowed pointer-events-none",kh="opacity-100 cursor-pointer",Th={"top-right":"-right-2 -top-2","top-left":"-left-2 -top-2","bottom-right":"-right-2 -bottom-2","bottom-left":"-left-2 -bottom-2"},Ph={primary:"bg-action-brand text-white",destructive:"bg-action-destructive text-white"};function Dh(e){return e?e==="primary"?"brand":e:"default"}function Rh(e){let{variant:t="default",size:r="md",isDisabled:o,fullWidth:n=false,isLoading:a=false}=e,i=Dh(t),s=i==="unstyled"?"":`${Sh} ${Nh[i]}`;i!=="unstyled"&&(s+=` ${he[r].text} ${he[r].height} ${he[r].padding} ${he[r].gap}`),o||a?s+=` ${wh}`:s+=` ${kh}`,n?s+=` ${Mu.full}`:s+=` ${Mu.default}`;let c=i==="brand"?"focus-visible:outline-action-brand":void 0;return [s,ke(),c].filter(Boolean).join(" ")}function q(e){let{icon:t,children:r,isLoading:o=false,loadingText:n,loadingIndicator:a,size:i="md",iconPosition:s="left",iconWeight:c,href:l,className:m,badgeNumber:d,badgeVariant:p="primary",badgePosition:u="top-right",style:b,target:f,rel:g,...h}=e,y=t?jsxRuntime.jsx(k,{name:t,size:i,weight:c}):null,v=jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[s==="left"&&y,typeof r=="function"?null:r,s==="right"&&y]}),x=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:v}),n&&jsxRuntime.jsx("span",{className:"sr-only",role:"status","aria-live":"polite",children:n})]}),C=(d??0)>0,S=tailwindMerge.twMerge(Rh(e),m),N=l?{href:l,target:f,rel:g,...h}:{};if(l){let{onPress:w,onPressStart:F,onPressEnd:E,onPressChange:A,onPressUp:J,onAuxClick:B,onContextMenu:Z,onDoubleClick:Y,...G}=h;Object.assign(N,G);}let T=l?jsxRuntime.jsx(reactAriaComponents.Link,{...N,...o&&{"aria-busy":true},style:C?void 0:b,className:S,children:o?x:typeof r=="function"?(function(w){return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[s==="left"&&y,r(w),s==="right"&&y]})}):v}):jsxRuntime.jsx(reactAriaComponents.Button,{...h,...o&&{"aria-busy":true},style:C?void 0:b,className:S,children:o?x:typeof r=="function"?(function(w){return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[s==="left"&&y,r(w),s==="right"&&y]})}):v});return C?jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("relative flex",m),style:b,children:[T,jsxRuntime.jsx("span",{className:`absolute ${Th[u]} flex h-5 w-5 items-center justify-center rounded-full ${Ph[p]} text-xs font-medium`,"aria-label":`${d} items`,children:d})]}):T}function Mr({primaryAction:e,secondaryAction:t,footerContent:r}){let o=e||t;return !o&&!r?null:jsxRuntime.jsxs("div",{className:"flex h-28 w-full flex-col items-center justify-center border-t p-4",children:[r&&jsxRuntime.jsx("div",{className:"flex h-10 justify-center",children:r}),o&&jsxRuntime.jsxs("div",{className:"flex h-full w-full items-center justify-end gap-3",children:[t&&jsxRuntime.jsx(q,{size:t.size||"lg",variant:t.variant||"secondary",onPress:t.onPress,isLoading:t.isLoading,isDisabled:t.isDisabled,children:t.label}),e&&jsxRuntime.jsx(q,{size:e.size||"lg",variant:e.variant,onPress:e.onPress,isLoading:e.isLoading,isDisabled:e.isDisabled,children:e.label})]})]})}var Mh={xs:"text-lg font-semibold",sm:"text-xl font-semibold",md:"text-2xl font-semibold",lg:"text-3xl font-semibold",xl:"text-4xl font-semibold"},Lh={page:"h-16 leading-[62px]"};function pt({tag:e="h1",size:t="lg",height:r,className:o="",children:n}){let a=Mh[t],i=r?Lh[r]:"";return jsxRuntime.jsx(e,{className:tailwindMerge.twMerge(a,i,o),children:n})}var it=({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(q,{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(pt,{size:"xs",children:e}),t&&!r&&jsxRuntime.jsx(q,{variant:"icon",onPress:t,"aria-label":"Close dialog",children:jsxRuntime.jsx(k,{name:"X","data-testid":"close-button"})})]})]});var Bh={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"},zh="rounded-lg",dl={square:"aspect-square",video:"aspect-video",wide:"aspect-[2/1]",auto:""},Vh={start:"justify-start",end:"justify-end",center:"justify-center",between:"justify-between"};function ye({variant:e="outlined",className:t,children:r,isLoading:o=false}){return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("w-full overflow-hidden",Bh[e],zh,t),"data-testid":"card",children:o?jsxRuntime.jsx(R,{width:"100%",height:"100%",className:"rounded-none"}):r})}function ul({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(R,{width:120,height:20}),jsxRuntime.jsx(R,{width:24,height:24})]}),t&&jsxRuntime.jsx(R,{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(pt,{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 ml({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",dl[r],o),children:jsxRuntime.jsx(R,{width:"100%",height:"100%"})}):n?jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("overflow-hidden",dl[r],o),children:n}):e?jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("overflow-hidden",dl[r],o),children:jsxRuntime.jsx("img",{src:e,alt:t||"",className:"w-full h-full object-cover",loading:"lazy"})}):null}function pl({className:e,children:t,isLoading:r=false}){let n=e?.match(/p(?:t|b|l|r|x|y)?-(?:\d+(?:\.\d+)?|px|\[.+?\])/)?"":"px-6 py-4";return r?jsxRuntime.jsx("div",{className:tailwindMerge.twMerge(n,e),children:jsxRuntime.jsxs("div",{className:"space-y-2",children:[jsxRuntime.jsx(R,{width:"100%",height:16}),jsxRuntime.jsx(R,{width:"80%",height:16}),jsxRuntime.jsx(R,{width:"60%",height:16})]})}):t?jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("px-6 py-4 text-text-body",e),children:t}):null}function fl({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(R,{width:80,height:32}),jsxRuntime.jsx(R,{width:60,height:32})]}):t?jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("px-6 py-4 flex items-center gap-2",Vh[r],e),children:t}):null}ye.Header=ul;ye.Media=ml;ye.Content=pl;ye.Footer=fl;var zt=class extends Ue.Component{constructor(){super(...arguments);Cn(this,"state",{hasError:false});Cn(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(ye,{children:[this.props.title&&jsxRuntime.jsx(ye.Header,{title:this.props.title}),jsxRuntime.jsx(ye.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}};function Zt({children:e,title:t,headerContent:r,titleAlign:o="left",hideCloseIcon:n=false,hasBackArrow:a=false,onBack:i,isOpen:s,onClose:c,isDismissable:l=true,transparentOverlay:m=false,primaryAction:d,secondaryAction:p,footerContent:u,maxHeight:b="80vh",height:f,maxWidth:g="640px",contentPadding:h=true,showHandle:y=true,animationVariant:v="scale",className:x}){let[C,S]=Ue.useState(false);if(Ue.useEffect(()=>{if(s){let w=setTimeout(()=>{S(true),setTimeout(()=>S(false),600);},400);return ()=>clearTimeout(w)}},[s]),!s)return null;let N=t||r,T=d||p||u;return jsxRuntime.jsx(zt,{children:jsxRuntime.jsx(St,{isOpen:s,onOpenChange:w=>{w||c?.();},isDismissable:l,transparent:m,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",isDismissable:l,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",v==="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)]",v==="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)]",x),style:{maxWidth:g,...f?{height:f}:{maxHeight:b}},children:[y&&jsxRuntime.jsx("div",{className:"absolute top-2 left-1/2 -translate-x-1/2 z-10 flex justify-center",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",C&&"animate-[handle-wiggle_0.6s_ease-in-out]")})}),N&&(a?jsxRuntime.jsx(it,{title:t,headerContent:r,titleAlign:o,hideCloseIcon:n||!c,hasBackArrow:true,onBack:i??(()=>{}),onClose:c||(()=>{})}):jsxRuntime.jsx(it,{title:t,headerContent:r,titleAlign:o,hideCloseIcon:n||!c,onClose:c||(()=>{})})),jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("flex-1 min-h-0 overflow-y-auto overscroll-contain",h?"p-4":"p-0"),children:e}),T&&jsxRuntime.jsx(Mr,{primaryAction:d,secondaryAction:p,footerContent:u})]})})})})}Zt.displayName="Tray";function qt({isOpen:e,onClose:t,title:r,headerContent:o,titleAlign:n="left",hideCloseIcon:a=false,hasBackArrow:i=false,onBack:s,children:c,primaryAction:l,secondaryAction:m,footerContent:d,transparentOverlay:p=false,maxWidth:u="600px",minWidth:b="400px",maxHeight:f="85vh",height:g,mobileMaxHeight:h="90vh",mobileHeight:y,contentPadding:v=true,className:x}){if(e===false)return null;let C=r||o,S=l||m||d,N=e!==void 0;return Kt("(max-width: 767px)")?N?jsxRuntime.jsx(Zt,{isOpen:e,onClose:t,title:r,headerContent:o,titleAlign:n,hideCloseIcon:a,hasBackArrow:i,onBack:s,primaryAction:l,secondaryAction:m,footerContent:d,transparentOverlay:p,maxHeight:h,height:y,maxWidth:u,contentPadding:v,showHandle:true,animationVariant:"scale",className:x,children:c}):jsxRuntime.jsx(zt,{children:jsxRuntime.jsx(St,{isDismissable:true,transparent:p,className:"flex items-end justify-center",children:jsxRuntime.jsx(reactAriaComponents.Modal,{className:"w-full max-w-fit p-0",children:jsxRuntime.jsxs(reactAriaComponents.Dialog,{className:tailwindMerge.twMerge("relative flex w-full flex-col","bg-background-surface dark:bg-gray-800","shadow-2xl shadow-black/20","border-t border-x border-border-default/40","max-h-[90vh]","rounded-none","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",x),style:{maxWidth:u,...y?{height:y}:{maxHeight:h}},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"})}),C&&(i?jsxRuntime.jsx(it,{title:r,headerContent:o,titleAlign:n,hideCloseIcon:a||!t,hasBackArrow:true,onBack:s,onClose:t||(()=>{})}):jsxRuntime.jsx(it,{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",v?"px-6 py-6":"p-0"),children:c}),S&&jsxRuntime.jsx(Mr,{primaryAction:l,secondaryAction:m,footerContent:d})]})})})}):jsxRuntime.jsx(zt,{children:jsxRuntime.jsx(St,{...N?{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",style:{maxWidth:u},children:jsxRuntime.jsxs(reactAriaComponents.Dialog,{className:tailwindMerge.twMerge("relative flex w-full flex-col","bg-background-surface dark:bg-gray-800","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",x),style:{minWidth:b,...g?{height:g}:{maxHeight:f}},children:[C&&(i?jsxRuntime.jsx(it,{title:r,headerContent:o,titleAlign:n,hideCloseIcon:a||!t,hasBackArrow:true,onBack:s,onClose:t||(()=>{})}):jsxRuntime.jsx(it,{title:r,headerContent:o,titleAlign:n,hideCloseIcon:a||!t,onClose:t||(()=>{})})),jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("flex-1 min-h-0 overflow-y-auto",v?"px-6 py-6":"p-0"),children:c}),S&&jsxRuntime.jsx(Mr,{primaryAction:l,secondaryAction:m,footerContent:d})]})})})})}function Ou({isOpen:e,onClose:t,title:r,message:o,confirmLabel:n="OK",confirmVariant:a="primary",maxWidth:i="400px",minWidth:s="320px"}){return jsxRuntime.jsx(qt,{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 Wa=({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 c=r||270,l=c/270*80;return jsxRuntime.jsxs("svg",{width:c,height:l,viewBox:"0 0 270 80",xmlns:"http://www.w3.org/2000/svg",className:a,style:n?{fill:n}:void 0,children:[jsxRuntime.jsxs("g",{clipPath:"url(#clip0_796_283)",children:[jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0.223654 20.2934C0.417233 19.8234 0.873598 19.517 1.37984 19.517H20.5909C21.282 19.517 21.8422 20.0798 21.8422 20.774V40.049C21.8422 40.5572 21.5375 41.0155 21.0702 41.2102C20.6028 41.405 20.0647 41.2977 19.7067 40.9385L0.495628 21.6635C0.137428 21.3041 0.030075 20.7633 0.223654 20.2934ZM4.40349 22.0311L19.3396 37.017V22.0311H4.40349Z"}),jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M38.6458 20.2934C38.8394 19.8234 39.2958 19.517 39.802 19.517H59.013C59.7041 19.517 60.2642 20.0798 60.2642 20.774V40.049C60.2642 40.5572 59.9597 41.0155 59.4923 41.2102C59.025 41.405 58.4867 41.2977 58.1289 40.9385L38.9178 21.6635C38.5595 21.3041 38.4522 20.7633 38.6458 20.2934ZM42.8255 22.0311L57.7618 37.017V22.0311H42.8255Z"}),jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M19.4347 58.8447C19.6283 58.3747 20.0847 58.0685 20.5909 58.0685H39.802C40.493 58.0685 41.0532 58.6312 41.0532 59.3255V78.6005C41.0532 79.1087 40.7486 79.567 40.2813 79.7617C39.8139 79.9562 39.2757 79.849 38.9178 79.49L19.7067 60.215C19.3485 59.8555 19.2411 59.3147 19.4347 58.8447ZM23.6146 60.5825L38.5508 75.5682V60.5825H23.6146Z"}),jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M39.3227 58.1643C39.79 57.9695 40.3283 58.0768 40.6861 58.436L59.8972 77.711C60.2555 78.0703 60.3628 78.6113 60.1692 79.081C59.9756 79.551 59.5192 79.8575 59.013 79.8575H39.802C39.1109 79.8575 38.5508 79.2948 38.5508 78.6005V59.3255C38.5508 58.8173 38.8554 58.359 39.3227 58.1643ZM41.0532 62.3575V77.3433H55.9893L41.0532 62.3575Z"}),jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M39.3227 19.6129C39.79 19.4182 40.3283 19.5254 40.6861 19.8846L59.8972 39.1595C60.2555 39.519 60.3628 40.0598 60.1692 40.5298C59.9756 40.9995 59.5192 41.306 59.013 41.306H39.802C39.1109 41.306 38.5508 40.7433 38.5508 40.049V20.7741C38.5508 20.2658 38.8554 19.8075 39.3227 19.6129ZM41.0532 23.8061V38.792H55.9893L41.0532 23.8061Z"}),jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M39.3227 38.8885C39.79 38.694 40.3283 38.8012 40.6861 39.1602L59.8972 58.4352C60.2555 58.7945 60.3628 59.3355 60.1692 59.8055C59.9756 60.2752 59.5192 60.5817 59.013 60.5817H39.802C39.1109 60.5817 38.5508 60.019 38.5508 59.3247V40.0497C38.5508 39.5415 38.8554 39.0832 39.3227 38.8885ZM41.0532 43.0817V58.0675H55.9893L41.0532 43.0817Z"}),jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M38.6458 39.569C38.8394 39.0992 39.2958 38.7927 39.802 38.7927H59.013C59.7041 38.7927 60.2642 39.3555 60.2642 40.0497V59.3247C60.2642 59.833 59.9597 60.2912 59.4923 60.486C59.025 60.6805 58.4867 60.5732 58.1289 60.2142L38.9178 40.9392C38.5595 40.5797 38.4522 40.039 38.6458 39.569ZM42.8255 41.3067L57.7618 56.2927V41.3067H42.8255Z"}),jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M38.6458 58.8447C38.8394 58.3747 39.2958 58.0685 39.802 58.0685H59.013C59.7041 58.0685 60.2642 58.6312 60.2642 59.3255V78.6005C60.2642 79.1087 59.9597 79.567 59.4923 79.7617C59.025 79.9562 58.4867 79.849 58.1289 79.49L38.9178 60.215C38.5595 59.8555 38.4522 59.3147 38.6458 58.8447ZM42.8255 60.5825L57.7618 75.5682V60.5825H42.8255Z"}),jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M58.5338 19.6129C59.0011 19.4182 59.5394 19.5254 59.8972 19.8846L79.1083 39.1595C79.4666 39.519 79.5739 40.0598 79.3803 40.5298C79.1867 40.9995 78.7303 41.306 78.2241 41.306H59.013C58.322 41.306 57.7618 40.7433 57.7618 40.049V20.7741C57.7618 20.2658 58.0664 19.8075 58.5338 19.6129ZM60.2643 23.8061V38.792H75.2006L60.2643 23.8061Z"}),jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M58.5338 0.338803C59.0011 0.144135 59.5394 0.251385 59.8972 0.610565L79.1083 19.8855C79.4666 20.2449 79.5739 20.7857 79.3803 21.2556C79.1867 21.7256 78.7303 22.032 78.2241 22.032H59.013C58.322 22.032 57.7618 21.4692 57.7618 20.775V1.50003C57.7618 0.99174 58.0664 0.533468 58.5338 0.338803ZM60.2643 4.53208V19.5179H75.2006L60.2643 4.53208Z"}),jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M57.8569 20.2934C58.0505 19.8234 58.5069 19.517 59.013 19.517H78.2241C78.9151 19.517 79.4753 20.0798 79.4753 20.774V40.049C79.4753 40.5572 79.1707 41.0155 78.7034 41.2102C78.236 41.405 77.6978 41.2977 77.3399 40.9385L58.1289 21.6635C57.7705 21.3041 57.6633 20.7633 57.8569 20.2934ZM62.0365 22.0311L76.9729 37.017V22.0311H62.0365Z"}),jsxRuntime.jsx("path",{d:"M269.838 49.4457H249.005C249.266 51.801 250.162 53.6985 251.695 55.1377C253.225 56.577 255.134 57.2967 257.416 57.2967C259.307 57.2967 260.887 56.8715 262.159 56.021C263.463 55.1377 264.408 53.9927 264.996 52.5862H269.251C268.502 54.9415 267.084 56.937 264.996 58.5725C262.943 60.208 260.414 61.026 257.416 61.026C255.069 61.026 252.917 60.4697 250.961 59.3575C249.037 58.2127 247.504 56.6587 246.363 54.696C245.255 52.7332 244.7 50.558 244.7 48.17C244.7 45.782 245.255 43.6067 246.363 41.644C247.504 39.6812 249.037 38.1437 250.961 37.0315C252.917 35.8867 255.069 35.3142 257.416 35.3142C259.73 35.3142 261.833 35.8702 263.724 36.9825C265.615 38.0947 267.098 39.6485 268.176 41.644C269.283 43.6395 269.838 45.913 269.838 48.4645V49.4457ZM257.416 39.0432C255.263 39.0432 253.439 39.6812 251.939 40.957C250.47 42.2327 249.542 43.9337 249.152 46.06H265.583C265.192 43.9992 264.262 42.3145 262.796 41.006C261.36 39.6975 259.568 39.0432 257.416 39.0432Z"}),jsxRuntime.jsx("path",{d:"M228.356 60.5352V35.8049H232.219V39.7794H232.464C233.05 38.5689 233.963 37.5712 235.202 36.7862C236.474 35.9684 237.974 35.5594 239.701 35.5594H243.125V39.4359H239.701C237.517 39.4359 235.757 40.1554 234.42 41.5949C233.083 43.0342 232.414 44.9152 232.414 47.2377V60.5352H228.356Z"}),jsxRuntime.jsx("path",{d:"M208.607 61.0259C205.64 61.0259 203.326 60.1262 201.663 58.3272C200 56.4952 199.169 53.8947 199.169 50.5252V35.8047H203.228V49.8874C203.228 52.2427 203.766 54.0744 204.842 55.3829C205.95 56.6587 207.532 57.2967 209.586 57.2967C211.02 57.2967 212.308 56.9694 213.449 56.3152C214.623 55.6284 215.536 54.6959 216.188 53.5184C216.84 52.3407 217.166 50.9997 217.166 49.4949V35.8047H221.225V60.5352H217.313V56.5607H217.068C216.286 57.9019 215.161 58.9814 213.694 59.7992C212.226 60.6169 210.531 61.0259 208.607 61.0259Z"}),jsxRuntime.jsx("path",{d:"M186.736 39.534V56.806H194.756V60.5352H182.677V39.534H177.199V35.8047H182.677V29.5732H186.736V35.8047H193.24V39.534H186.736Z"}),jsxRuntime.jsx("path",{d:"M156.585 60.5352H151.988L158.394 48.0227L152.33 35.8047H156.976L162.062 46.0599H165.388L170.474 35.8047H175.022L168.958 48.0227L175.365 60.5352H170.67L165.29 49.7892H162.013L156.585 60.5352Z"}),jsxRuntime.jsx("path",{d:"M150.138 49.1315H129.304C129.565 51.4867 130.461 53.3842 131.994 54.8235C133.526 56.2627 135.433 56.9825 137.715 56.9825C139.606 56.9825 141.188 56.5572 142.459 55.7067C143.763 54.8235 144.709 53.6785 145.296 52.272H149.551C148.801 54.6272 147.382 56.6227 145.296 58.2582C143.242 59.8937 140.715 60.7118 137.715 60.7118C135.368 60.7118 133.216 60.1555 131.26 59.0432C129.336 57.8985 127.804 56.3445 126.663 54.3817C125.554 52.419 125 50.2437 125 47.8557C125 45.4677 125.554 43.2925 126.663 41.3298C127.804 39.367 129.336 37.8295 131.26 36.7173C133.216 35.5725 135.368 35 137.715 35C140.03 35 142.133 35.556 144.024 36.6682C145.915 37.7805 147.399 39.3342 148.475 41.3298C149.583 43.3252 150.138 45.5987 150.138 48.1502V49.1315ZM137.715 38.729C135.564 38.729 133.738 39.367 132.238 40.6427C130.771 41.9185 129.842 43.6195 129.45 45.7458H145.883C145.491 43.685 144.562 42.0002 143.095 40.6917C141.661 39.3832 139.867 38.729 137.715 38.729Z"}),jsxRuntime.jsx("path",{d:"M116.961 60.5353H112.559V30.4072H101.164V26.1875H128.307V30.4072H116.961V60.5353Z"})]}),jsxRuntime.jsx("defs",{children:jsxRuntime.jsx("clipPath",{id:"clip0_796_283",children:jsxRuntime.jsx("rect",{width:"270",height:"80",fill:"white"})})})]})}let i=r||80;return jsxRuntime.jsxs("svg",{width:i,height:i,viewBox:"0 0 80 80",xmlns:"http://www.w3.org/2000/svg",className:a,style:n?{fill:n}:void 0,children:[jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0.223654 20.2934C0.417233 19.8234 0.873598 19.517 1.37984 19.517H20.5909C21.282 19.517 21.8422 20.0798 21.8422 20.774V40.049C21.8422 40.5572 21.5375 41.0155 21.0702 41.2102C20.6028 41.405 20.0647 41.2977 19.7067 40.9385L0.495628 21.6635C0.137428 21.3041 0.030075 20.7633 0.223654 20.2934ZM4.40349 22.0311L19.3396 37.017V22.0311H4.40349Z"}),jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M38.6458 20.2934C38.8394 19.8234 39.2958 19.517 39.802 19.517H59.013C59.7041 19.517 60.2642 20.0798 60.2642 20.774V40.049C60.2642 40.5572 59.9597 41.0155 59.4923 41.2102C59.025 41.405 58.4867 41.2977 58.1289 40.9385L38.9178 21.6635C38.5595 21.3041 38.4522 20.7633 38.6458 20.2934ZM42.8255 22.0311L57.7618 37.017V22.0311H42.8255Z"}),jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M19.4347 58.8447C19.6283 58.3747 20.0847 58.0685 20.5909 58.0685H39.802C40.493 58.0685 41.0532 58.6312 41.0532 59.3255V78.6005C41.0532 79.1087 40.7486 79.567 40.2813 79.7617C39.8139 79.9562 39.2757 79.849 38.9178 79.49L19.7067 60.215C19.3485 59.8555 19.2411 59.3147 19.4347 58.8447ZM23.6146 60.5825L38.5508 75.5682V60.5825H23.6146Z"}),jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M39.3227 58.1643C39.79 57.9695 40.3283 58.0768 40.6861 58.436L59.8972 77.711C60.2555 78.0703 60.3628 78.6113 60.1692 79.081C59.9756 79.551 59.5192 79.8575 59.013 79.8575H39.802C39.1109 79.8575 38.5508 79.2948 38.5508 78.6005V59.3255C38.5508 58.8173 38.8554 58.359 39.3227 58.1643ZM41.0532 62.3575V77.3433H55.9893L41.0532 62.3575Z"}),jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M39.3227 19.6129C39.79 19.4182 40.3283 19.5254 40.6861 19.8846L59.8972 39.1595C60.2555 39.519 60.3628 40.0598 60.1692 40.5298C59.9756 40.9995 59.5192 41.306 59.013 41.306H39.802C39.1109 41.306 38.5508 40.7433 38.5508 40.049V20.7741C38.5508 20.2658 38.8554 19.8075 39.3227 19.6129ZM41.0532 23.8061V38.792H55.9893L41.0532 23.8061Z"}),jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M39.3227 38.8885C39.79 38.694 40.3283 38.8012 40.6861 39.1602L59.8972 58.4352C60.2555 58.7945 60.3628 59.3355 60.1692 59.8055C59.9756 60.2752 59.5192 60.5817 59.013 60.5817H39.802C39.1109 60.5817 38.5508 60.019 38.5508 59.3247V40.0497C38.5508 39.5415 38.8554 39.0832 39.3227 38.8885ZM41.0532 43.0817V58.0675H55.9893L41.0532 43.0817Z"}),jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M38.6458 39.569C38.8394 39.0992 39.2958 38.7927 39.802 38.7927H59.013C59.7041 38.7927 60.2642 39.3555 60.2642 40.0497V59.3247C60.2642 59.833 59.9597 60.2912 59.4923 60.486C59.025 60.6805 58.4867 60.5732 58.1289 60.2142L38.9178 40.9392C38.5595 40.5797 38.4522 40.039 38.6458 39.569ZM42.8255 41.3067L57.7618 56.2927V41.3067H42.8255Z"}),jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M38.6458 58.8447C38.8394 58.3747 39.2958 58.0685 39.802 58.0685H59.013C59.7041 58.0685 60.2642 58.6312 60.2642 59.3255V78.6005C60.2642 79.1087 59.9597 79.567 59.4923 79.7617C59.025 79.9562 58.4867 79.849 58.1289 79.49L38.9178 60.215C38.5595 59.8555 38.4522 59.3147 38.6458 58.8447ZM42.8255 60.5825L57.7618 75.5682V60.5825H42.8255Z"}),jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M58.5338 19.6129C59.0011 19.4182 59.5394 19.5254 59.8972 19.8846L79.1083 39.1595C79.4666 39.519 79.5739 40.0598 79.3803 40.5298C79.1867 40.9995 78.7303 41.306 78.2241 41.306H59.013C58.322 41.306 57.7618 40.7433 57.7618 40.049V20.7741C57.7618 20.2658 58.0664 19.8075 58.5338 19.6129ZM60.2643 23.8061V38.792H75.2006L60.2643 23.8061Z"}),jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M58.5338 0.338803C59.0011 0.144135 59.5394 0.251385 59.8972 0.610565L79.1083 19.8855C79.4666 20.2449 79.5739 20.7857 79.3803 21.2556C79.1867 21.7256 78.7303 22.032 78.2241 22.032H59.013C58.322 22.032 57.7618 21.4692 57.7618 20.775V1.50003C57.7618 0.99174 58.0664 0.533468 58.5338 0.338803ZM60.2643 4.53208V19.5179H75.2006L60.2643 4.53208Z"}),jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M57.8569 20.2934C58.0505 19.8234 58.5069 19.517 59.013 19.517H78.2241C78.9151 19.517 79.4753 20.0798 79.4753 20.774V40.049C79.4753 40.5572 79.1707 41.0155 78.7034 41.2102C78.236 41.405 77.6978 41.2977 77.3399 40.9385L58.1289 21.6635C57.7705 21.3041 57.6633 20.7633 57.8569 20.2934ZM62.0365 22.0311L76.9729 37.017V22.0311H62.0365Z"})]})};var Ga=({topItems:e=[],bottomItems:t=[],bottomContent:r,logo:o,showLogo:n=true,linkComponent:a="a",className:i="",mobileMenuId:s="app-mobile-menu",sidebarCollapseId:c="app-sidebar-collapse"})=>{let l=u=>u.length>0&&"items"in u[0],m=u=>l(u)?u:[{id:"default-section",items:u}],d=(u,b,f)=>jsxRuntime.jsxs("div",{className:"space-y-0.5",children:[u.title&&jsxRuntime.jsx("div",{className:"px-6 py-1 text-xs font-medium text-text-subtle uppercase tracking-wider","data-collapse-hide":"",children:u.title}),jsxRuntime.jsx("div",{className:"space-y-0.5",children:u.items.map(g=>p(g))}),b<f-1&&jsxRuntime.jsx("div",{className:"border-b border-border-subtle mx-6 my-2","data-collapse-hide":""})]},u.id),p=(u,b=false)=>{if(u.children&&u.children.length>0){let h=`category-${u.id}`;return jsxRuntime.jsxs("div",{className:"group/category",children:[jsxRuntime.jsx("input",{type:"checkbox",id:h,className:"peer/category hidden",defaultChecked:u.isExpanded,"aria-hidden":"true"}),jsxRuntime.jsxs("label",{htmlFor:h,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:[u.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:u.icon}),jsxRuntime.jsx("span",{className:"transition-all duration-200","data-collapse-hide":"",children:u.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:u.children.map(y=>p(y,true))})]},u.id)}let f={href:u.href||"#",className:`flex items-center gap-3 transition-all duration-200 hover:bg-background-hover ${b?"pl-8 pr-6 py-1 text-sm":"px-6 py-1"} ${u.isActive?`bg-action-brand/10 text-action-brand ${b?"":"border-l-2 border-action-brand"}`:"text-text-body hover:text-text-heading"}`,"aria-current":u.isActive?"page":void 0,"data-collapse-center":b?void 0:""},g=jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[u.icon&&!b&&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:u.icon}),jsxRuntime.jsx("span",{className:"transition-all duration-200","data-collapse-hide":"",children:u.label})]});return a==="a"?jsxRuntime.jsx("a",{...f,children:g},u.id):jsxRuntime.jsx(a,{...f,children:g},u.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:"transition-all duration-200","data-collapse-hide":"",children:o||jsxRuntime.jsx(Wa,{showWordmark:true,width:120})}),jsxRuntime.jsx("label",{htmlFor:c,className:"hidden md:flex items-center justify-center w-8 h-8 rounded hover:bg-background-hover cursor-pointer transition-all duration-200","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:m(e).map((u,b,f)=>d(u,b,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(u=>p(u))})}),r&&jsxRuntime.jsx("div",{className:"flex-shrink-0 border-t border-border-default",children:jsxRuntime.jsx("div",{"data-collapse-hide":"",children:r})})]})]})};var Ln=({rightContent:e,showMobileMenu:t=true,avatar:r,showColorModeSwitcher:o=false,toggleTheme:n,isDarkThemeEnabled:a=false,actions:i,className:s="",mobileMenuId:c="app-mobile-menu"})=>jsxRuntime.jsx("header",{className:`h-[60px] bg-background-surface border-b ${s}`,children:jsxRuntime.jsxs("div",{className:"flex h-full items-center justify-between",children:[jsxRuntime.jsx("div",{className:"flex items-center h-full",children:t&&jsxRuntime.jsx("label",{htmlFor:c,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("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.jsxs("div",{className:"flex items-center gap-4 px-4",children:[e,o&&n&&jsxRuntime.jsx("button",{type:"button",onClick:n,className:"flex items-center justify-center w-8 h-8 rounded hover:bg-background-hover transition-colors","aria-label":a?"Switch to light mode":"Switch to dark mode",children:a?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:"M12 3v1m0 16v1m9-9h-1M4 12H3m15.364 6.364l-.707-.707M6.343 6.343l-.707-.707m12.728 0l-.707.707M6.343 17.657l-.707.707M16 12a4 4 0 11-8 0 4 4 0 018 0z"})}):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:"M20.354 15.354A9 9 0 018.646 3.646 9.003 9.003 0 0012 21a9.003 9.003 0 008.354-5.646z"})})}),i,r&&jsxRuntime.jsx("div",{className:"flex items-center",children:r})]})]})});function Wu({sideNav:e,topNav:t,children:r,contentPaddingX:o,contentPaddingY:n,showSidebarBorder:a=true,mainClassName:i,enableJsEnhancements:s=false}){let c="app-mobile-menu",l="app-sidebar-collapse";return jsxRuntime.jsxs("div",{className:"min-h-[100dvh] bg-background text-text-body relative",children:[jsxRuntime.jsx("input",{type:"checkbox",id:l,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(Ln,{...t,mobileMenuId:c,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:c,className:"sr-only peer/mobile","aria-hidden":"true"}),jsxRuntime.jsx("label",{htmlFor:c,className:"fixed inset-0 bg-black/50 z-40 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-50","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(Ga,{...e,mobileMenuId:c,sidebarCollapseId:l,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(Ln,{...t,className:t?.className})}),jsxRuntime.jsx("main",{id:"app-content",className:["flex-1 overflow-y-auto 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'),Ue=require('react'),fileSaver=require('file-saver'),Eb=require('papaparse'),Wb=require('fuse.js'),reactVirtual=require('@tanstack/react-virtual'),jsxRuntime=require('react/jsx-runtime'),luxon=require('luxon'),tailwindMerge=require('tailwind-merge'),Ix=require('@phosphor-icons/react'),reactStately=require('react-stately'),lucideReact=require('lucide-react'),framerMotion=require('framer-motion'),Z0=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'),aN=require('react-map-gl'),reactDom=require('react-dom'),gw=require('@tiptap/extension-link'),react=require('@tiptap/react'),menus=require('@tiptap/react/menus'),yw=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 Ue__namespace=/*#__PURE__*/_interopNamespace(Ue);var Eb__default=/*#__PURE__*/_interopDefault(Eb);var Wb__default=/*#__PURE__*/_interopDefault(Wb);var Ix__namespace=/*#__PURE__*/_interopNamespace(Ix);var Z0__default=/*#__PURE__*/_interopDefault(Z0);var aN__default=/*#__PURE__*/_interopDefault(aN);var gw__default=/*#__PURE__*/_interopDefault(gw);var yw__default=/*#__PURE__*/_interopDefault(yw);var Ab=Object.defineProperty;var Mb=(e,t,r)=>t in e?Ab(e,t,{enumerable:true,configurable:true,writable:true,value:r}):e[t]=r;var Cn=(e,t,r)=>Mb(e,typeof t!="symbol"?t+"":t,r);function Kt(e,t=false){let[r,o]=Ue.useState(t);return Ue.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 Jr={sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"};function Vo(e="base"){let t=Kt(`(min-width: ${Jr.sm})`,e!=="base"),r=Kt(`(min-width: ${Jr.md})`,["md","lg","xl","2xl"].includes(e)),o=Kt(`(min-width: ${Jr.lg})`,["lg","xl","2xl"].includes(e)),n=Kt(`(min-width: ${Jr.xl})`,["xl","2xl"].includes(e)),a=Kt(`(min-width: ${Jr["2xl"]})`,e==="2xl"),i=!r,s=r,c="base";return a?c="2xl":n?c="xl":o?c="lg":r?c="md":t&&(c="sm"),{current:c,isSm:t,isMd:r,isLg:o,isXl:n,is2Xl:a,isMobile:i,isDesktop:s}}function Ps(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 Ts(e,t,r={},o){let n=Array.isArray(t[0])?t:[t];try{switch(e){case "csv":await Ib(n,r);break;case "svg":await Bb(o,r);break;case "png":await zb(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 Ib(e,t){try{let r=new Map;e.forEach(c=>{c.forEach(l=>{let p=l.xValue.getTime();r.has(p)||r.set(p,l.xValue);});});let n=Array.from(r.values()).sort((c,l)=>c.getTime()-l.getTime()).map(c=>{let l={[t.xLabel||"Date"]:c.toLocaleString("en-US",{year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"})};return e.forEach((p,d)=>{let m=t.seriesLabels?.[d]||`Series ${d+1}`,u=p.find(g=>g.xValue.getTime()===c.getTime());l[m]=u?u.yValue:"",u?.category&&(l[`${m} Category`]=u.category);}),l}),a=Eb__default.default.unparse(n,{header:!0,skipEmptyLines:!0}),i=new Blob([a],{type:"text/csv;charset=utf-8;"}),s=Ps(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 Bb(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 l=document.createElementNS("http://www.w3.org/2000/svg","rect");l.setAttribute("width",o.getAttribute("width")||"100%"),l.setAttribute("height",o.getAttribute("height")||"100%"),l.setAttribute("fill","white"),l.setAttribute("data-background","true"),o.insertBefore(l,o.firstChild);}let i=new XMLSerializer().serializeToString(o);i.includes("<?xml")||(i=`<?xml version="1.0" encoding="UTF-8"?>
|
|
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"}),c=Ps(t.filename||"chart","svg",t.timestamp!==!1);fileSaver.saveAs(s,c);}catch(r){throw new Error(`SVG export failed: ${r instanceof Error?r.message:"Unknown error"}`)}}async function zb(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 c=document.createElementNS("http://www.w3.org/2000/svg","rect");c.setAttribute("width",String(a.width)),c.setAttribute("height",String(a.height)),c.setAttribute("fill","white"),i.insertBefore(c,i.firstChild);let p=new XMLSerializer().serializeToString(i);p.includes("xmlns=")||(p=p.replace("<svg",'<svg xmlns="http://www.w3.org/2000/svg"'));let d=new Blob([p],{type:"image/svg+xml;charset=utf-8"});return o=URL.createObjectURL(d),new Promise((m,u)=>{let g=new Image,f=setTimeout(()=>{o&&URL.revokeObjectURL(o),u(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 h=b.getContext("2d");if(!h)throw new Error("Canvas context not available");h.imageSmoothingEnabled=!0,h.imageSmoothingQuality="high",h.scale(r,r),h.fillStyle="white",h.fillRect(0,0,a.width,a.height),h.drawImage(g,0,0,a.width,a.height),b.toBlob(y=>{if(y){let v=Ps(t.filename||"chart","png",t.timestamp!==!1);fileSaver.saveAs(y,v),m();}else u(new Error("Failed to create PNG blob"));o&&URL.revokeObjectURL(o);},"image/png",1);}catch(b){o&&URL.revokeObjectURL(o),u(b);}},g.onerror=()=>{clearTimeout(f),o&&URL.revokeObjectURL(o),u(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 Vb(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 Ob(e){return {csv:"CSV Spreadsheet",svg:"SVG Vector Image",png:"PNG Image"}[e]||"Unknown Format"}function Sd({datasets:e,metadata:t,svgRef:r}){return Ue.useCallback(async o=>{try{await Ts(o,e,t,r);}catch(n){throw console.error("Chart export failed:",n),n}},[e,t,r])}function Sn(e,t){return t.split(".").reduce((r,o)=>r?.[o],e)}function Gb(e,t){let r=Sn(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 Nd(e,t){if(t.conditions.length===0)return true;let r=t.conditions.map(o=>"conditions"in o?Nd(e,o):Gb(e,o));return t.logic==="AND"?r.every(Boolean):r.some(Boolean)}function Ub(e,t){return !t||t.conditions.length===0?e:e.filter(r=>Nd(r,t))}function Kb(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 Yb(e,t){return t?[...e].sort((r,o)=>{let n=Sn(r,t.field),a=Sn(o,t.field);return Kb(n,a,t.direction)}):e}function Jb(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 Wb__default.default(e,{keys:o,threshold:a,ignoreLocation:true,includeScore:true}).search(r).map(l=>l.item);let i=r.toLowerCase();return e.filter(s=>o.some(c=>{let l=Sn(s,c);return l==null?false:String(l).toLowerCase().includes(i)}))}function Zb(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=Sn(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 wd({data:e,filters:t,sort:r,search:o,facetConfigs:n=[]}){let a=Jb(e,o||null);a=Ub(a,t||null);let i=Zb(a,n);return a=Yb(a,r||null),{data:a,facetCounts:i,resultCount:a.length}}function Na({data:e,filters:t,sort:r,search:o,facetConfigs:n=[]}){return Ue.useMemo(()=>wd({data:e,filters:t,sort:r,search:o,facetConfigs:n}),[e,t,r,o,n])}function Oo(e,t=300){let[r,o]=Ue.useState(e);return Ue.useEffect(()=>{let n=setTimeout(()=>o(e),t);return ()=>clearTimeout(n)},[e,t]),r}function wa({filters:e,sort:t,search:r,onStateChange:o,searchDebounce:n=300}){let a=Oo(r,n),i=Ue.useRef(true);Ue.useEffect(()=>{if(i.current){i.current=false;return}o({filters:e,sort:t,search:a});},[e,t,a,o]);}function kd(e){return e.mode==="client"?Na({data:e.data,filters:e.filters,sort:e.sort,search:e.search,facetConfigs:e.facetConfigs}):(wa({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 Ho(){let[e,t]=Ue.useState({width:0,height:0}),r=Ue.useRef(null),o=Ue.useRef(void 0),n=Ue.useCallback(a=>{if(r.current&&(r.current.disconnect(),r.current=null),o.current&&(cancelAnimationFrame(o.current),o.current=void 0),!a){t({width:0,height:0});return}let i=a.getBoundingClientRect();t({width:i.width,height:i.height}),r.current=new ResizeObserver(s=>{o.current&&cancelAnimationFrame(o.current),o.current=requestAnimationFrame(c=>{for(let l of s){let{width:p,height:d}=l.contentRect;t(m=>m.width!==p||m.height!==d?{width:p,height:d}:m);}});}),r.current.observe(a);},[]);return Ue.useEffect(()=>()=>{o.current&&cancelAnimationFrame(o.current),r.current&&r.current.disconnect();},[]),{ref:n,width:e.width,height:e.height}}function Tr({items:e,onLoadMore:t,hasMore:r,isLoading:o=false,loadingState:n,enableVirtualization:a,estimatedItemSize:i=50,overscan:s=5,scrollElement:c,loadMoreThreshold:l=100}){let p=Ue.useRef(null),d=Ue.useRef(null),m=Ue.useRef(false),[u,g]=Ue.useState(0);Ue.useEffect(()=>{d.current&&(c||p.current)&&g(T=>T+1);},[c,e.length]);let f=n||(o?e.length===0?"loading":"loading-more":"idle"),b=f==="loading",h=f==="loading-more",y=a!==void 0?a:e.length>=100,v=reactVirtual.useVirtualizer({count:e.length,getScrollElement:()=>c||p.current,estimateSize:()=>i,overscan:s}),x=y?v:null,C=y?v.getVirtualItems():[];Ue.useEffect(()=>{let T=d.current,w=c||p.current;if(!T||!w||!r||o||!t)return;let F=new IntersectionObserver(E=>{let[A]=E;A?.isIntersecting&&!m.current&&r&&t&&(m.current=true,Promise.resolve(t()).finally(()=>{m.current=false;}));},{root:w,rootMargin:`0px 0px ${l}px 0px`,threshold:0});return F.observe(T),()=>{F.disconnect();}},[r,o,t,c,l,u]);let S=Ue.useCallback((T,w)=>{x?x.scrollToIndex(T,w):p.current&&p.current.children[T]?.scrollIntoView({behavior:"smooth",block:w?.align||"start"});},[x]),N=Ue.useCallback(()=>{x?x.scrollToIndex(0,{align:"start"}):p.current&&p.current.scrollTo({top:0,behavior:"smooth"});},[x]);return {virtualizer:x,virtualItems:C,computedLoadingState:f,isInitialLoad:b,isLoadingMore:h,scrollRef:p,loadMoreRef:d,scrollToIndex:S,scrollToTop:N}}function ka(e,t){let[r,o]=Ue.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}});Ue.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=Ue.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=Ue.useCallback(()=>{try{typeof window<"u"&&window.localStorage.removeItem(e),o(t);}catch(i){console.error(`Error removing localStorage key "${e}":`,i);}},[e,t]);return [r,n,a]}var Rs=class{constructor(){Cn(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();}},Q=new Rs;var Dr=(e,t="Yes",r="No")=>e==null?null:e?t:r,ix=e=>Dr(e,"Enabled","Disabled"),sx=e=>Dr(e,"On","Off"),lx=e=>Dr(e,"Active","Inactive"),cx=e=>Dr(e,"True","False"),dx=e=>Dr(e,"\u2713","\u2717"),Rr=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},Ad=(e,t)=>{if(t.hideWhenNull&&e==null)return null;if(e==null)return t.nullText??null;let r=Rr(e);return r===null?t.nullText??null:Dr(r,t.trueText??"Yes",t.falseText??"No")};Q.register("boolean",(e,t,r)=>{let o=Rr(e);return o!==null?Dr(o,typeof t=="string"?t:"Yes",typeof r=="string"?r:"No"):null});Q.register("yesNo",e=>{let t=Rr(e);return t!==null?Dr(t,"Yes","No"):null});Q.register("enabledDisabled",e=>{let t=Rr(e);return t!==null?ix(t):null});Q.register("onOff",e=>{let t=Rr(e);return t!==null?sx(t):null});Q.register("activeInactive",e=>{let t=Rr(e);return t!==null?lx(t):null});Q.register("trueFalse",e=>{let t=Rr(e);return t!==null?cx(t):null});Q.register("checkmark",e=>{let t=Rr(e);return t!==null?dx(t):null});var ee=e=>e==null,Md=(e,t=0)=>ee(e)?null:`${e.toFixed(t)}%`,Ld=(e,t=0)=>Md(e,t)??"\u2014",ux=e=>ee(e)?null:Math.round(e).toString(),px=(e,t=1)=>ee(e)?null:e.toFixed(t),mx=(e,t,r=true)=>{if(ee(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)},fx=(e,t="short")=>ee(e)?null:new Intl.NumberFormat("en-US",{notation:"compact",compactDisplay:t}).format(e),gx=(e,t=2)=>ee(e)?null:e.toExponential(t),Fd=(e,t="USD",r)=>{if(ee(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)},Ed=(e,t)=>{if(t.hideWhenNull&&e==null||t.hideWhenZero&&e===0)return null;if(e==null)return t.nullText??null;let r=typeof e=="string"?parseFloat(e):Number(e);if(isNaN(r))return t.nullText??null;let o={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)},Id=(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:Fd(r,t.currency,t)};Q.register("percentage",(e,t)=>typeof e=="number"?Md(e,typeof t=="number"?t:0):null);Q.register("integer",e=>typeof e=="number"?ux(e):null);Q.register("float",(e,t)=>typeof e=="number"?px(e,typeof t=="number"?t:1):null);Q.register("number",(e,t,r)=>{let o=typeof e=="string"?parseFloat(e):Number(e);return isNaN(o)?null:mx(o,typeof t=="number"?t:void 0,typeof r=="boolean"?r:true)});Q.register("compact",(e,t)=>typeof e=="number"?fx(e,t==="long"?"long":"short"):null);Q.register("scientific",(e,t)=>typeof e=="number"?gx(e,typeof t=="number"?t:2):null);Q.register("currency",(e,t,r)=>typeof e=="number"?Fd(e,typeof t=="string"?t:"USD",typeof r=="object"&&r!==null?r:{}):null);function N4(e,t=1){return ee(e)?null:Math.abs(e)>=1e3?`${(e/1e3).toFixed(t)} MWh`:`${e.toFixed(t)} kWh`}function w4(e,t=1){return ee(e)?null:Math.abs(e)>=1e3?`${(e/1e3).toFixed(t)} MW`:`${e.toFixed(t)} kW`}function Yt({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=Zr(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=Zr(e,{type:"date"});return jsxRuntime.jsx("time",{dateTime:e.toISOString(),title:e.toISOString(),children:n})}if(typeof e=="number")return Zr(e,{type:"number"});if(typeof e=="boolean")return Zr(e,{type:"boolean"})}return String(e)}function D4(e,t,r){return Ue__namespace.default.useCallback(o=>Yt({value:o,formatter:e,emptyClassName:t,emptyText:r}),[e,t,r])}var As=(e,t=0)=>{if(ee(e))return null;let r=e*1e3;return t===0?`${Math.round(r)} mA`:`${r.toFixed(t)} mA`},Ta=(e,t=1)=>ee(e)?null:`${e.toFixed(t)} A`,Ms=(e,t=2)=>ee(e)?null:`${(e/1e3).toFixed(t)} kA`,xx=(e,t)=>{if(ee(e))return null;let r=Math.abs(e);return r>=1e3?Ms(e,t??2):r<1?As(e,t??0):Ta(e,t??1)},Ls=(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 Ms(r,o??2);case "mA":return As(r,o??0);case "A":return Ta(r,o??1)}return t.autoScale!==false?xx(r,o):Ta(r,o??1)};Q.register("current",Ls);var F4=As,E4=Ta,I4=Ms;var qr=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},hx=(e,t=false,r)=>{if(!e)return null;let o=qr(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)},Da=e=>{if(!e)return null;let t=qr(e);return t?t.toRelative():"Invalid Date"},yx=(e,t)=>{if(!e)return null;let r=qr(e);return r?(t?r.setZone(t):r).toLocaleString(luxon.DateTime.DATETIME_MED_WITH_WEEKDAY):"Invalid Date"},vx=e=>{if(!e)return null;let t=qr(e);return t?t.toISO():null},Cx=(e,t,r)=>{if(!e)return null;let o=qr(e);return o?(r?o.setZone(r):o).toFormat(t):"Invalid Date"},O4=e=>{let t=qr(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},Bd=(e,t)=>{if(t.hideWhenNull&&e==null)return null;if(e==null)return t.nullText??null;let r=qr(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)};Q.register("date",(e,t,r)=>hx(e,typeof t=="boolean"?t:false,typeof r=="string"?r:void 0));Q.register("relativeTime",e=>Da(e));Q.register("fullDateTime",(e,t)=>yx(e,typeof t=="string"?t:void 0));Q.register("isoString",e=>vx(e));Q.register("customDateFormat",(e,t,r)=>typeof t=="string"?Cx(e,t,typeof r=="string"?r:void 0):null);var Fs=(e,t=1)=>ee(e)?null:`${e.toFixed(t)} m`,Sx=(e,t=1)=>ee(e)?null:`${(e*100).toFixed(t)} cm`,Nx=(e,t=0)=>ee(e)?null:`${(e*1e3).toFixed(t)} mm`,Es=(e,t=1)=>ee(e)?null:`${(e/1e3).toFixed(t)} km`,Is=(e,t=0)=>ee(e)?null:`${e.toFixed(t)} ft`,wx=(e,t=1)=>ee(e)?null:`${e.toFixed(t)} in`,Bs=(e,t=1)=>ee(e)?null:`${e.toFixed(t)} mi`,zs=(e,t=0)=>ee(e)?null:`${e.toFixed(t)} yd`,U4=(e,t=1)=>ee(e)?null:`${e.toFixed(t)} nm`,K4=e=>e*3.28084,Y4=e=>e/3.28084,J4=e=>e*1.60934,Z4=e=>e/1.60934,q4=e=>e/5280,zd=e=>e*5280,X4=e=>e/1609.34,j4=e=>e*1609.34,Q4=e=>e*.9144,$4=e=>e/.9144,_4=e=>e*2.54,ek=e=>e/2.54,Vd=(e,t=false,r=1)=>{if(ee(e))return null;let o=Math.abs(e);return t?o>=1e3?Es(e,r):o<.01?Nx(e,0):o<1?Sx(e,r):Fs(e,r):o<.01?Is(zd(e),0):o<.1?zs(zd(e)/3,0):Bs(e,r)},Od=(e,t)=>{if(t.hideWhenNull&&e==null||t.hideWhenZero&&e===0)return null;if(e==null)return t.nullText??null;let r=typeof e=="string"?parseFloat(e):Number(e);if(isNaN(r))return t.nullText??null;let o=t.decimals??1;if(t.autoScale){let n=t.unit==="m"||t.unit==="km";return Vd(r,n,o)}switch(t.unit){case "km":return Es(r,o);case "ft":return Is(r,o);case "mi":return Bs(r,o);case "yd":return zs(r,o);case "m":default:return Fs(r,o)}};Q.register("miles",(e,t)=>typeof e=="number"?Bs(e,typeof t=="number"?t:1):null);Q.register("kilometers",(e,t)=>typeof e=="number"?Es(e,typeof t=="number"?t:1):null);Q.register("meters",(e,t)=>typeof e=="number"?Fs(e,typeof t=="number"?t:1):null);Q.register("feet",(e,t)=>typeof e=="number"?Is(e,typeof t=="number"?t:0):null);Q.register("yards",(e,t)=>typeof e=="number"?zs(e,typeof t=="number"?t:0):null);Q.register("inches",(e,t)=>typeof e=="number"?wx(e,typeof t=="number"?t:1):null);Q.register("autoScaleDistance",(e,t,r)=>typeof e=="number"?Vd(e,typeof t=="boolean"?t:false,typeof r=="number"?r:1):null);var Vs=(e,t=1)=>ee(e)?null:`${e.toFixed(t)} Wh`,Os=(e,t=1)=>ee(e)?null:`${(e/1e3).toFixed(t)} kWh`,Hd=(e,t=1)=>ee(e)?null:`${(e/1e6).toFixed(t)} MWh`,Wd=(e,t=1)=>ee(e)?null:`${(e/1e9).toFixed(t)} GWh`,Gd=(e,t=1)=>{if(ee(e))return null;let r=Math.abs(e);return r>=1e9?Wd(e,t):r>=1e6?Hd(e,t):r>=1e3?Os(e,t):Vs(e,t)},Hs=(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 Wd(r,o);case "MWh":return Hd(r,o);case "kWh":return Os(r,o);case "Wh":return Vs(r,o)}return t.autoScale!==false?Gd(r,o):Vs(r,o)};Q.register("kWh",e=>typeof e=="number"?Os(e):null);Q.register("autoScaleEnergy",(e,t)=>typeof e=="number"?Gd(e,typeof t=="number"?t:1):null);Q.register("energy",Hs);var Ra=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},Ws=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():Ra(e)},Wo=e=>e?e.startsWith("+")||e.length>11?Ws(e):Ra(e):null,Ud=(e,t)=>{if(t.hideWhenNull&&e==null)return null;if(e==null)return t.nullText??null;let r=String(e);if(t.international)return Ws(r);switch(t.country){case "US":case "CA":return Ra(r);default:return Wo(r)}};Q.register("phoneNumber",e=>typeof e=="string"?Wo(e):null);Q.register("usPhone",e=>typeof e=="string"?Ra(e):null);Q.register("internationalPhone",e=>typeof e=="string"?Ws(e):null);var Aa=(e,t=0)=>ee(e)?null:t===0?`${Math.round(e)} W`:`${e.toFixed(t)} W`,Gs=(e,t=1)=>ee(e)?null:`${(e/1e3).toFixed(t)} kW`,Us=(e,t=1)=>ee(e)?null:`${(e/1e6).toFixed(t)} MW`,Ks=(e,t=2)=>ee(e)?null:`${(e/1e9).toFixed(t)} GW`,kx=(e,t)=>{if(ee(e))return null;let r=Math.abs(e);return r>=1e9?Ks(e,t??2):r>=1e6?Us(e,t??1):r>=1e3?Gs(e,t??1):Aa(e,t??0)},Ys=(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 Ks(r,o??2);case "MW":return Us(r,o??1);case "kW":return Gs(r,o??1);case "W":return Aa(r,o??0)}return t.autoScale!==false?kx(r,o):Aa(r,o??0)};Q.register("power",Ys);var ck=Aa,dk=Gs,uk=Us,pk=Ks;var Js=(e,t=1)=>ee(e)?null:`${(e*1e3).toFixed(t)} m\u03A9`,Ma=(e,t=1)=>ee(e)?null:`${e.toFixed(t)} \u03A9`,Kd=(e,t=1)=>ee(e)?null:`${(e/1e3).toFixed(t)} k\u03A9`,Yd=(e,t=2)=>ee(e)?null:`${(e/1e6).toFixed(t)} M\u03A9`,Px=(e,t)=>{if(ee(e))return null;let r=Math.abs(e);return r>=1e6?Yd(e,t??2):r>=1e3?Kd(e,t??1):r<1?Js(e,t??1):Ma(e,t??1)},Zs=(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 Yd(r,o??2);case "k\u03A9":return Kd(r,o??1);case "m\u03A9":return Js(r,o??1);case "\u03A9":return Ma(r,o??1)}return t.autoScale!==false?Px(r,o):Ma(r,o??1)};Q.register("resistance",Zs);Q.register("ohms",e=>typeof e=="number"?Ma(e):null);Q.register("milliohms",e=>typeof e=="number"?Js(e):null);var Jd=e=>{switch(e){case "FAHRENHEIT":return "F";case "CELSIUS":return "C";case "KELVIN":return "K";default:return "F"}},Zd=(e,t=0)=>ee(e)?null:`${e.toFixed(t)}\xB0F`,qd=(e,t=true,r=0)=>ee(e)?null:`${(t?(e-32)*(5/9):e).toFixed(r)}\xB0C`,Xd=(e,t=true,r=0)=>ee(e)?null:`${(t?(e-32)*(5/9)+273.15:e+273.15).toFixed(r)}K`,Tx=e=>e*9/5+32,Dx=e=>(e-32)*(5/9),yk=e=>e+273.15,Rx=e=>e-273.15,vk=e=>Dx(e)+273.15,Ck=e=>Tx(Rx(e)),jd=(e,t="F",r=0)=>{if(ee(e))return null;switch(typeof t=="string"&&t.length>1?Jd(t):t){case "C":return qd(e,true,r);case "K":return Xd(e,true,r);case "F":default:return Zd(e,r)}},Qd=(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?Jd(n):n){case "C":return ((r-32)*.5555555555555556).toFixed(o);case "K":return ((r-32)*.5555555555555556+273.15).toFixed(o);case "F":default:return r.toFixed(o)}return jd(r,n,o)};Q.register("temperature",(e,t,r)=>typeof e=="number"?jd(e,typeof t=="string"?t:"F",typeof r=="number"?r:0):null);Q.register("fahrenheit",(e,t)=>typeof e=="number"?Zd(e,typeof t=="number"?t:0):null);Q.register("celsius",(e,t,r)=>typeof e=="number"?qd(e,typeof t=="boolean"?t:true,typeof r=="number"?r:0):null);Q.register("kelvin",(e,t,r)=>typeof e=="number"?Xd(e,typeof t=="boolean"?t:true,typeof r=="number"?r:0):null);var Ax=(e,t)=>!!(t.hideWhenNull&&e==null||t.hideWhenZero&&e===0),$d=e=>e?.toUpperCase()??"",_d=e=>e?.toLowerCase()??"",eu=e=>e?e.charAt(0).toUpperCase()+e.slice(1).toLowerCase():"",tu=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(" ")},ru=e=>e?e.split(/\s+/).map(t=>t.charAt(0).toUpperCase()+t.slice(1).toLowerCase()).join(" "):"",ou=e=>e?e.charAt(0).toUpperCase()+e.slice(1):"",nu=e=>e?e.replace(/([A-Z])/g," $1").replace(/^./,t=>t.toUpperCase()).trim():"",au=e=>e?e.toLowerCase().split("_").map(t=>ou(t)).join(" "):"",Mx=e=>e?e.includes("_")?au(e):e.toUpperCase()===e?ou(e.toLowerCase()):nu(e):"",iu=(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)}`},su=(e,t=8)=>e?e.length<=t?e:`...${e.slice(-t)}`:"",lu=(e,t=16,r="...")=>e?e.length<=t?e:e.slice(0,t)+r:"",Lx=e=>{if(!e)return "";let t=e.toString(),r=t.slice(-4),o=t.length-4;return o>0?"*".repeat(o)+r:t},cu=(e,t)=>{if(Ax(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=$d(r);break;case "lowercase":r=_d(r);break;case "capitalize":r=ru(r);break;case "titleCase":r=tu(r);break;case "sentenceCase":r=eu(r);break}}),t.truncate){let{length:o,position:n,ellipsis:a="..."}=t.truncate;switch(n){case "start":r=su(r,o);break;case "middle":r=iu(r,o);break;case "end":r=lu(r,o,a);break}}return r};Q.register("uppercase",e=>$d(String(e)));Q.register("lowercase",e=>_d(String(e)));Q.register("sentenceCase",e=>eu(String(e)));Q.register("titleCase",e=>tu(String(e)));Q.register("capitalize",e=>ru(String(e)));Q.register("camelCaseToWords",e=>nu(String(e)));Q.register("snakeCaseToWords",e=>au(String(e)));Q.register("enumToSentenceCase",e=>Mx(String(e)));Q.register("truncateMiddle",(e,t)=>iu(String(e),typeof t=="number"?t:16));Q.register("truncateStart",(e,t)=>su(String(e),typeof t=="number"?t:8));Q.register("truncateEnd",(e,t,r)=>lu(String(e),typeof t=="number"?t:16,typeof r=="string"?r:"..."));Q.register("secret",e=>Lx(String(e)));var qs=(e,t=0)=>{if(ee(e))return null;let r=e*1e3;return t===0?`${Math.round(r)} mV`:`${r.toFixed(t)} mV`},La=(e,t=0)=>ee(e)?null:t===0?`${Math.round(e)} V`:`${e.toFixed(t)} V`,Xs=(e,t=1)=>ee(e)?null:`${(e/1e3).toFixed(t)} kV`,Fx=(e,t)=>{if(ee(e))return null;let r=Math.abs(e);return r>=1e3?Xs(e,t??1):r<1?qs(e,t??0):La(e,t??0)},js=(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 Xs(r,o??1);case "mV":return qs(r,o??0);case "V":return La(r,o??0)}return t.autoScale!==false?Fx(r,o):La(r,o??0)};Q.register("voltage",js);var Tk=qs,Dk=La,Rk=Xs;var Ex=(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:Ld(r,t.decimals??0)},Zr=(e,t)=>{switch(t.type){case "text":return cu(e,t);case "number":return Ed(e,t);case "percentage":return Ex(e,t);case "currency":return Id(e,t);case "date":return Bd(e,t);case "boolean":return Ad(e,t);case "energy":return Hs(e,t);case "power":return Ys(e,t);case "voltage":return js(e,t);case "current":return Ls(e,t);case "resistance":return Zs(e,t);case "temperature":return Qd(e,t);case "distance":return Od(e,t);case "phone":return Ud(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}},Uk=(e,t)=>({type:e,...t});var Go={xs:16,sm:20,md:24,lg:32,xl:40,"2xl":48},k=Ue.memo(({name:e,size:t="md",color:r,weight:o="regular",className:n,ariaLabel:a,...i})=>{let s=Ix__namespace[e];if(!s)return process.env.NODE_ENV==="development"&&console.error(`Icon "${e}" not found in @phosphor-icons/react`),null;let c=typeof t=="string"&&t in Go?Go[t]:t,l=tailwindMerge.twMerge("inline-block flex-shrink-0",!r&&"text-current",n);return jsxRuntime.jsx(s,{...i,size:c,color:r,weight:o,className:l,"aria-label":a||`${e} icon`,"data-testid":`icon-${e}`})});k.displayName="Icon";var pu=Ue.memo(({variant:e="subtle",shape:t="square",containerSize:r,containerClassName:o,size:n="md",className:a,name:i,color:s,weight:c,ariaLabel:l,ref:p,...d})=>{let m=typeof n=="string"&&n in Go?Go[n]:n,u=r?typeof r=="string"&&r in Go?Go[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:u,height:u},children:jsxRuntime.jsx(k,{...d,name:i,size:n,color:s,weight:c,className:a,ariaLabel:l})})});pu.displayName="IconWithContainer";function St({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",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 Jx({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 We({children:e,showArrow:t=false,withBackdrop:r=false,className:o,isDismissable:n=true,disableGroup:a=false,...i}){let c=reactAriaComponents.useSlottedContext(reactAriaComponents.PopoverContext)?.trigger==="SubmenuTrigger",l=t?12:8;l=c?l-6:l;let p=jsxRuntime.jsxs(reactAriaComponents.Popover,{offset:l,...i,className:reactAriaComponents.composeRenderProps(o,(d,m)=>Jx({...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(St,{isDismissable:n,children:jsxRuntime.jsx(reactAriaComponents.Modal,{isDismissable:n,children:p})}):p}function Fa({children:e,items:t,className:r,align:o="left",textAlign:n="left",size:a="md",onAction:i,header:s,footer:c}){return jsxRuntime.jsx("div",{className:r,children:jsxRuntime.jsxs(reactAriaComponents.MenuTrigger,{children:[e,jsxRuntime.jsx(We,{className:tailwindMerge.twMerge("w-fit min-w-[180px] overflow-auto rounded-[var(--control-border-radius)] border border-border-default","bg-background-surface p-1 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"),placement:o==="right"?"bottom end":"bottom start",children:jsxRuntime.jsxs("div",{className:"flex min-w-[180px] flex-col gap-1",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(l=>jsxRuntime.jsx(Qx,{id:l.id,onAction:()=>l.onAction?.()||i?.(l),textAlign:n,size:a,iconName:l.iconName,isDisabled:l.disabled,variant:l.variant,"data-testid":l.testId,children:l.name},l.id))}),c?jsxRuntime.jsx("div",{className:"px-3 pb-3 pt-2",children:c}):null]})})]})})}function Qx({textAlign:e="left",iconName:t,size:r="md",isDisabled:o,children:n,variant:a="default",...i}){let s={sm:"px-3 py-1.5 text-sm",md:"px-4 py-2 text-base"},c={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 jsxRuntime.jsxs(reactAriaComponents.MenuItem,{...i,isDisabled:o,className:tailwindMerge.twMerge("group box-border flex w-full cursor-pointer items-center rounded-sm outline-none transition-colors",s[r],c[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-2 flex-shrink-0"}),jsxRuntime.jsx("span",{className:"flex-1",children:n}),t&&e==="right"&&jsxRuntime.jsx(k,{name:t,size:r==="sm"?16:20,className:"ml-2 flex-shrink-0"})]})}var Ea=({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 Rt({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(Ea,{size:20,color:"text-text-muted"}),t&&jsxRuntime.jsx("span",{className:"text-sm","aria-hidden":"true",children:t})]});return o||n}var R=({width:e,height:t,variant:r="rect",animation:o="pulse",gradient:n=false,flex:a=false,stack:i,responsive:s,delay:c=0,adjustAnimationSpeedBasedOnWidth:l=false,ariaLabel:p,className:d,"data-testid":m})=>{let[u,g]=Ue.useState(c===0);if(Ue.useEffect(()=>{if(c>0){let C=setTimeout(()=>g(true),c);return ()=>clearTimeout(C)}},[c]),!u)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=l&&e?(()=>{let C=typeof e=="number"?e:parseFloat(String(e));return isNaN(C)?"":`animation-duration-[${Math.max(.8,C/100)}s]`})():"",h=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}`:"",y="rounded-sm";r==="circle"&&(y="rounded-full"),r==="text"&&(y="h-4 w-full rounded-sm");let v=a?"flex-1 min-w-0":"",x=s?Object.entries(s).map(([C,S])=>`${C}:w-[${S}]`).join(" "):"";return i?jsxRuntime.jsx("div",{className:"space-y-2","data-testid":m,children:i.map((C,S)=>jsxRuntime.jsx("div",{className:tailwindMerge.twMerge(f,h,y,v,x,d),style:{width:C,height:t}},S))}):jsxRuntime.jsx("div",{className:tailwindMerge.twMerge(f,h,y,v,x,d),style:{width:e,height:t},role:"presentation","aria-hidden":!p,"aria-label":p??void 0,"data-testid":m})},xu=({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 kn=new Map,je=(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)}`),kn.has(r))return kn.get(r);try{let o=document.body||document.documentElement,a=getComputedStyle(o).getPropertyValue(r).trim();if(a)return kn.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)"?(kn.set(r,s),s):t}catch(o){return console.warn(`Failed to resolve color for ${e}:`,o),t}},Uo=()=>{kn.clear();},Pn=()=>{let e=[];for(let t=1;t<=6;t++){let r=je(`--color-viz-categorical-${t}`);r&&e.push(r);}return e.length===0?hu():e},hu=()=>["#444ae1","#10b981","#f59e0b","#ef4444","#8b5cf6","#06b6d4","#ec4899","#f97316","#14b8a6","#6366f1"],_s=()=>je("--color-viz-default","#444ae1"),oh=(e,t)=>{let r={},o=Pn();return e.forEach((n,a)=>{t&&t[n]?r[n]=t[n]:r[n]=o[a%o.length];}),r};var yu=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},nh=e=>yu(e)?je("--text-body","#333333"):je("--neutral-white","#ffffff"),vu=(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()},Cu=e=>{let t=Pn(),r={};return e.forEach((o,n)=>{r[o]=t[n%t.length];}),r};var el=(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)},tl=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]},Su=(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},rl=(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=je(i);n.push(s);}return n},ol=(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=je(i);n.push(s);}return n},Tn=(e,t,r,o="viridis")=>{let n=rl(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]},Dn=(e,t,r,o,n="redYellowBlue")=>{let a=ol(n),i=4;if(e<=t)return a[0];if(e>=r)return a[a.length-1];if(e===o||t===r)return a[i];if(e<o){let c=(e-t)/(o-t)*i,l=Math.floor(c);return a[Math.min(l,i)]}else {let s=(e-o)/(r-o),c=i+s*(a.length-1-i),l=Math.floor(c);return a[Math.min(l,a.length-1)]}};var al=Ue.createContext({colorMode:"light",isDarkTheme:false,toggleTheme:()=>{}}),pt=()=>Ue.useContext(al);function nl(){if(typeof window>"u")return "light";let e=localStorage.getItem("theme");return e==="dark"||e==="light"?e:document.body.classList.contains("theme-dark")||document.documentElement.classList.contains("theme-dark")||window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}var wu=({children:e})=>{let[t,r]=Ue.useState(nl),o=t==="dark";Ue.useEffect(()=>{Uo();let a=()=>{let d=nl();d!==t&&r(d);};a();let i=setTimeout(a,100),s=window.matchMedia("(prefers-color-scheme: dark)"),c=d=>{localStorage.getItem("theme")||(Uo(),r(d.matches?"dark":"light"));},l=()=>{let d=nl();d!==t&&(Uo(),r(d));};s.addEventListener("change",c);let p=new MutationObserver(l);return p.observe(document.body,{attributes:true,attributeFilter:["class"]}),p.observe(document.documentElement,{attributes:true,attributeFilter:["class"]}),()=>{clearTimeout(i),s.removeEventListener("change",c),p.disconnect();}},[t]);let n=Ue.useCallback(()=>{r(a=>{let i=a==="light"?"dark":"light";return localStorage.setItem("theme",i),i==="dark"?document.body.classList.add("theme-dark"):document.body.classList.remove("theme-dark"),Uo(),i});},[]);return jsxRuntime.jsx(al.Provider,{value:{colorMode:t,isDarkTheme:o,toggleTheme:n},children:e})};function ku(e){let t=(e.end.getTime()-e.start.getTime())/36e5;if(t<=72)return a=>new Intl.DateTimeFormat("en",{month:"short",day:"numeric",hour:"numeric",minute:"2-digit"}).format(a);if(t<=720)return a=>new Intl.DateTimeFormat("en",{month:"short",day:"numeric"}).format(a);let r=e.start.getFullYear(),o=e.end.getFullYear(),n=r!==o;return a=>new Intl.DateTimeFormat("en",{month:"short",day:"numeric",...n&&{year:"numeric"}}).format(a)}function Pu(e){let t=(e.end.getTime()-e.start.getTime())/36e5;if(t<=24)return a=>new Intl.DateTimeFormat("en",{hour:"numeric",minute:"2-digit"}).format(a);if(t<=48)return a=>new Intl.DateTimeFormat("en",{month:"short",day:"numeric",hour:"numeric"}).format(a);if(t<=720)return a=>new Intl.DateTimeFormat("en",{month:"short",day:"numeric"}).format(a);let r=e.start.getFullYear(),o=e.end.getFullYear(),n=r!==o;return a=>new Intl.DateTimeFormat("en",{month:"short",day:"numeric",...n&&{year:"numeric"}}).format(a)}function ke(e=false){return `${e?"outline outline-1 outline-border-input focus:outline-2 focus:outline-action-default focus: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 focus-visible:outline focus-visible:outline-2 focus-visible:outline-action-default 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 ce(e,t){return reactAriaComponents.composeRenderProps(e,r=>tailwindMerge.twMerge(t,r))}var Ko=Ue.createContext({variant:"timeline",size:"md"});function Ru(){return Ue.useContext(Ko)}function Ia(e){return Ue.isValidElement(e)&&e.type===Va}function xh(e){return Ue.isValidElement(e)&&e.type===za}function sl({variant:e="timeline",size:t="md",className:r,children:o,items:n,renderItem:a,isLoading:i=false,loadingState:s,error:c=null,renderLoadingSkeleton:l,loadingSkeletonCount:p=5,emptyMessage:d="No activity found.",onLoadMore:m,hasMore:u=false,enableVirtualization:g,estimatedItemSize:f,loadingIndicator:b,height:h,maxHeight:y,...v}){let x=Ue.useRef(null),{isMobile:C}=Vo(),S=C?"stacked":e,N=n!==void 0&&a!==void 0,{scrollRef:T,loadMoreRef:w,virtualizer:F,virtualItems:E,isLoadingMore:A,computedLoadingState:J}=Tr({items:n||[],onLoadMore:N?m:void 0,hasMore:N?u:false,isLoading:i,loadingState:s,enableVirtualization:N?g:false,estimatedItemSize:f||(S==="stacked"?120:150),overscan:5}),B=N&&T?T:x,Z=Ue.useMemo(()=>({variant:S,size:t}),[S,t]),Y=S==="timeline"?t==="sm"?"gap-4":"gap-6":"gap-0",G=S==="stacked"?"divide-y divide-border-subtle rounded-lg border border-border-subtle bg-background-surface":"",M={};if(N&&m&&(h?(M.height=typeof h=="number"?`${h}px`:h,M.overflowY="auto"):y?(M.maxHeight=typeof y=="number"?`${y}px`:y,M.overflowY="auto"):(M.height="600px",M.overflowY="auto")),N){let U=J==="loading"||i&&(!n||n.length===0);if(U){let I=l?jsxRuntime.jsx(jsxRuntime.Fragment,{children:Array.from({length:p}).map((H,K)=>jsxRuntime.jsx("div",{children:l()},`skeleton-${K}`))}):jsxRuntime.jsx(jsxRuntime.Fragment,{children:Array.from({length:p}).map((H,K)=>{let L=t==="sm"?"gap-2":"gap-3";if(S==="timeline"){let W=t==="sm"?"pt-3":"pt-4",D=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 ${W}`,children:[jsxRuntime.jsx(R,{width:32,height:32,variant:"circle"}),K<p-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 ${L} ${D} rounded-md border border-border-subtle bg-background-surface`,children:[jsxRuntime.jsxs("div",{className:"flex items-center justify-between gap-3",children:[jsxRuntime.jsx(R,{width:"50%",height:16}),jsxRuntime.jsx(R,{width:"15%",height:12})]}),jsxRuntime.jsx(R,{width:"85%",height:t==="sm"?14:15}),jsxRuntime.jsx(R,{width:"70%",height:t==="sm"?14:15})]})]},`skeleton-${K}`)}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(R,{width:24,height:24,variant:"circle"}),jsxRuntime.jsx(R,{width:"50%",height:16})]}),jsxRuntime.jsxs("div",{className:`mt-3 flex flex-col ${L}`,children:[jsxRuntime.jsx(R,{width:"85%",height:t==="sm"?14:15}),jsxRuntime.jsx(R,{width:"70%",height:t==="sm"?14:15}),jsxRuntime.jsx(R,{width:"20%",height:12})]})]},`skeleton-${K}`)})});return jsxRuntime.jsx(Ko.Provider,{value:Z,children:jsxRuntime.jsx("div",{ref:B,"data-slot":"feed","data-variant":S,className:tailwindMerge.twMerge("flex flex-col",Y,G,r),style:M,...v,children:I})})}if(c)return jsxRuntime.jsx(Ko.Provider,{value:Z,children:jsxRuntime.jsx("div",{ref:B,"data-slot":"feed","data-variant":S,className:tailwindMerge.twMerge("flex flex-col",Y,G,r),style:M,...v,children:jsxRuntime.jsx("div",{className:"p-4 text-center text-action-destructive",children:c})})});if(!n||n.length===0)return jsxRuntime.jsx(Ko.Provider,{value:Z,children:jsxRuntime.jsx("div",{ref:B,"data-slot":"feed","data-variant":S,className:tailwindMerge.twMerge("flex flex-col",Y,G,r),style:M,...v,children:jsxRuntime.jsx("div",{className:"p-4 text-center text-text-muted",children:d})})});let z=F?E?.map(I=>({virtualItem:I,item:n[I.index],index:I.index}))||[]:n.map((I,H)=>({item:I,index:H,virtualItem:null}));return jsxRuntime.jsx(Ko.Provider,{value:Z,children:jsxRuntime.jsxs("div",{ref:B,"data-slot":"feed","data-variant":S,className:tailwindMerge.twMerge("flex flex-col",Y,G,r),style:{...M,position:F?"relative":void 0},...v,children:[F?jsxRuntime.jsxs("div",{style:{height:`${F.getTotalSize()}px`,position:"relative"},children:[z.map(({item:I,index:H,virtualItem:K})=>{if(!I||!K)return null;let L=a(I,H),W=S==="timeline"&&Ue.isValidElement(L)&&Ia(L)?Ue.cloneElement(L,{showConnector:H!==n.length-1}):L;return jsxRuntime.jsx("div",{style:{position:"absolute",top:0,left:0,width:"100%",transform:`translateY(${K.start}px)`},"data-index":K.index,ref:F.measureElement,children:W},`item-${H}`)}),A&&jsxRuntime.jsx("div",{style:{position:"absolute",top:`${F.getTotalSize()}px`,left:0,width:"100%"},children:b||jsxRuntime.jsx(Rt,{state:"loading-more"})})]}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[z.map(({item:I,index:H})=>{let K=a(I,H);if(S==="timeline"&&Ue.isValidElement(K)&&Ia(K)){let L=H===n.length-1;return jsxRuntime.jsx("div",{children:Ue.cloneElement(K,{showConnector:!L})},`item-${H}`)}return jsxRuntime.jsx("div",{children:K},`item-${H}`)}),A&&(b||jsxRuntime.jsx(Rt,{state:"loading-more"}))]}),m&&u&&!U&&jsxRuntime.jsx("div",{ref:w,style:F?{position:"absolute",top:`${F.getTotalSize()}px`,left:0,width:"100%",height:1}:{height:1,width:"100%"}})]})})}let j=Ue.Children.toArray(o),O=j.map((U,z)=>{if(Ia(U)){let I=U.props.showConnector??(S==="timeline"&&z<j.length-1),H=S==="timeline"&&z>0;return Ue.cloneElement(U,{showConnector:I,showIncomingConnector:H})}if(xh(U)){let I=z===j.length-1;return Ue.cloneElement(U,{__isLastGroup:I,__isFirstGroup:z===0})}return U});return jsxRuntime.jsx(Ko.Provider,{value:Z,children:jsxRuntime.jsx("div",{"data-slot":"feed","data-variant":S,className:tailwindMerge.twMerge("flex flex-col",Y,G,r),...v,children:O})})}sl.displayName="ActivityFeed";function za(e){let{variant:t,size:r}=Ru(),{title:o,description:n,actions:a,children:i,className:s,__isLastGroup:c=false,__isFirstGroup:l=false,...p}=e,d=Ue.Children.toArray(i),m=d.map((f,b)=>{if(Ia(f)){let h=f.props.showConnector??(t==="timeline"&&!(c&&b===d.length-1));return Ue.cloneElement(f,{showConnector:h,showIncomingConnector:t==="timeline"&&!(l&&b===0)})}return f}),u=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),...p,children:[(o||n||a)&&jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("mb-2 flex flex-wrap items-end justify-between gap-2",u),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})]})}za.displayName="ActivityFeedGroup";var Tu={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"},hh={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"},yh={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 Va(e){let{variant:t,size:r}=Ru(),{title:o,description:n,timestamp:a,meta:i,media:s,actions:c,visual:l,icon:p,iconWeight:d,tone:m="neutral",surface:u,isHighlighted:g=false,showConnector:f=true,hideIndicator:b=false,interactive:h,className:y,children:v,onKeyDown:x,showIncomingConnector:C,...S}=e,N=l??(p?jsxRuntime.jsx(k,{name:p,weight:d||"fill",className:"h-4 w-4"}):null),T=u??(t==="stacked"?"minimal":"subtle"),w=r==="sm"?"gap-2":"gap-3",F="text-xs text-text-subtle",E=r==="sm"?"text-sm":"text-[15px]",A="text-xs text-text-muted",J=h??typeof S.onClick=="function",B=z=>{if(!J){x?.(z);return}z.key===" "?z.preventDefault():z.key==="Enter"&&(z.preventDefault(),z.currentTarget.click()),x?.(z);},Z=z=>{J&&z.key===" "&&(z.preventDefault(),z.currentTarget.click());},Y=J?tailwindMerge.twMerge("group cursor-pointer",ke()):void 0,M=jsxRuntime.jsxs("div",{"data-slot":"connector",className:tailwindMerge.twMerge("relative flex h-full flex-col items-center",T==="minimal"?r==="sm"?"pt-2":"pt-3":r==="sm"?"pt-3":"pt-4"),children:[jsxRuntime.jsx("span",{"data-slot":"indicator",className:tailwindMerge.twMerge("relative z-10 flex h-8 w-8 flex-shrink-0 items-center justify-center rounded-full border text-sm font-medium shadow-sm ring-2 ring-background-surface",Tu[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(hh[m],T==="minimal"?"rounded-md border border-border-muted":yh[m]):"";if(t==="stacked")return jsxRuntime.jsxs("div",{"data-slot":"item","data-variant":"stacked",role:J?"button":void 0,tabIndex:J?0:void 0,className:tailwindMerge.twMerge("flex flex-col",r==="sm"?"px-3 py-3":"px-4 py-4",{minimal:"",subtle:"bg-background-subtle",solid:"bg-background-muted"}[T],j,Y,J?"transition-colors hover:bg-background-subtle/80":"",y),onKeyDown:B,onKeyUp:Z,...S,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",Tu[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",w),children:[n&&jsxRuntime.jsx("div",{"data-slot":"description",className:tailwindMerge.twMerge("text-text-muted",E),children:n}),i&&jsxRuntime.jsx("div",{className:A,children:i}),s&&jsxRuntime.jsx("div",{className:"flex flex-col gap-2 text-sm text-text-muted",children:s}),v,c&&jsxRuntime.jsx("div",{className:"flex flex-wrap gap-2 pt-1",children:c}),a&&jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("-mt-1.5",F),children:a})]})]});let O=T==="minimal"?r==="sm"?"py-2":"py-3":r==="sm"?"p-3":"p-4",U={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:J?"button":void 0,tabIndex:J?0:void 0,className:tailwindMerge.twMerge("group relative grid items-start gap-4 grid-cols-[3rem_1fr]",Y,y),onKeyDown:B,onKeyUp:Z,...S,children:[b?jsxRuntime.jsx("div",{}):M,jsxRuntime.jsxs("div",{"data-slot":"content",className:tailwindMerge.twMerge("min-w-0 flex flex-col",w,O,U[T],j,J?"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",F),children:a})]}),n&&jsxRuntime.jsx("div",{"data-slot":"description",className:tailwindMerge.twMerge("text-text-muted",E),children:n}),i&&jsxRuntime.jsx("div",{className:A,children:i}),s&&jsxRuntime.jsx("div",{className:"flex flex-col gap-2 text-sm text-text-muted",children:s}),v,c&&jsxRuntime.jsx("div",{className:"flex flex-wrap gap-2 pt-2",children:c})]})]})}Va.displayName="ActivityItem";var he={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 Sh="flex font-medium justify-center items-center gap-2 text-center transition rounded-[var(--control-border-radius)] whitespace-nowrap box-border",Nh={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"},Mu={full:"w-full",default:"w-fit"},wh="opacity-50 cursor-not-allowed pointer-events-none",kh="opacity-100 cursor-pointer",Ph={"top-right":"-right-2 -top-2","top-left":"-left-2 -top-2","bottom-right":"-right-2 -bottom-2","bottom-left":"-left-2 -bottom-2"},Th={primary:"bg-action-brand text-white",destructive:"bg-action-destructive text-white"};function Dh(e){return e?e==="primary"?"brand":e:"default"}function Rh(e){let{variant:t="default",size:r="md",isDisabled:o,fullWidth:n=false,isLoading:a=false}=e,i=Dh(t),s=i==="unstyled"?"":`${Sh} ${Nh[i]}`;i!=="unstyled"&&(s+=` ${he[r].text} ${he[r].height} ${he[r].padding} ${he[r].gap}`),o||a?s+=` ${wh}`:s+=` ${kh}`,n?s+=` ${Mu.full}`:s+=` ${Mu.default}`;let c=i==="brand"?"focus-visible:outline-action-brand":void 0;return [s,ke(),c].filter(Boolean).join(" ")}function q(e){let{icon:t,children:r,isLoading:o=false,loadingText:n,loadingIndicator:a,size:i="md",iconPosition:s="left",iconWeight:c,href:l,className:p,badgeNumber:d,badgeVariant:m="primary",badgePosition:u="top-right",style:g,target:f,rel:b,...h}=e,y=t?jsxRuntime.jsx(k,{name:t,size:i,weight:c}):null,v=jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[s==="left"&&y,typeof r=="function"?null:r,s==="right"&&y]}),x=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:v}),n&&jsxRuntime.jsx("span",{className:"sr-only",role:"status","aria-live":"polite",children:n})]}),C=(d??0)>0,S=tailwindMerge.twMerge(Rh(e),p),N=l?{href:l,target:f,rel:b,...h}:{};if(l){let{onPress:w,onPressStart:F,onPressEnd:E,onPressChange:A,onPressUp:J,onAuxClick:B,onContextMenu:Z,onDoubleClick:Y,...G}=h;Object.assign(N,G);}let T=l?jsxRuntime.jsx(reactAriaComponents.Link,{...N,...o&&{"aria-busy":true},style:C?void 0:g,className:S,children:o?x:typeof r=="function"?(function(w){return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[s==="left"&&y,r(w),s==="right"&&y]})}):v}):jsxRuntime.jsx(reactAriaComponents.Button,{...h,...o&&{"aria-busy":true},style:C?void 0:g,className:S,children:o?x:typeof r=="function"?(function(w){return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[s==="left"&&y,r(w),s==="right"&&y]})}):v});return C?jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("relative flex",p),style:g,children:[T,jsxRuntime.jsx("span",{className:`absolute ${Ph[u]} flex h-5 w-5 items-center justify-center rounded-full ${Th[m]} text-xs font-medium`,"aria-label":`${d} items`,children:d})]}):T}function Mr({primaryAction:e,secondaryAction:t,footerContent:r}){let o=e||t;return !o&&!r?null:jsxRuntime.jsxs("div",{className:"flex h-28 w-full flex-col items-center justify-center border-t p-4",children:[r&&jsxRuntime.jsx("div",{className:"flex h-10 justify-center",children:r}),o&&jsxRuntime.jsxs("div",{className:"flex h-full w-full items-center justify-end gap-3",children:[t&&jsxRuntime.jsx(q,{size:t.size||"lg",variant:t.variant||"secondary",onPress:t.onPress,isLoading:t.isLoading,isDisabled:t.isDisabled,children:t.label}),e&&jsxRuntime.jsx(q,{size:e.size||"lg",variant:e.variant,onPress:e.onPress,isLoading:e.isLoading,isDisabled:e.isDisabled,children:e.label})]})]})}var Mh={xs:"text-lg font-semibold",sm:"text-xl font-semibold",md:"text-2xl font-semibold",lg:"text-3xl font-semibold",xl:"text-4xl font-semibold"},Lh={page:"h-16 leading-[62px]"};function mt({tag:e="h1",size:t="lg",height:r,className:o="",children:n}){let a=Mh[t],i=r?Lh[r]:"";return jsxRuntime.jsx(e,{className:tailwindMerge.twMerge(a,i,o),children:n})}var it=({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(q,{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(mt,{size:"xs",children:e}),t&&!r&&jsxRuntime.jsx(q,{variant:"icon",onPress:t,"aria-label":"Close dialog",children:jsxRuntime.jsx(k,{name:"X","data-testid":"close-button"})})]})]});var Bh={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"},zh="rounded-lg",dl={square:"aspect-square",video:"aspect-video",wide:"aspect-[2/1]",auto:""},Vh={start:"justify-start",end:"justify-end",center:"justify-center",between:"justify-between"};function ye({variant:e="outlined",className:t,children:r,isLoading:o=false}){return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("w-full overflow-hidden",Bh[e],zh,t),"data-testid":"card",children:o?jsxRuntime.jsx(R,{width:"100%",height:"100%",className:"rounded-none"}):r})}function ul({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(R,{width:120,height:20}),jsxRuntime.jsx(R,{width:24,height:24})]}),t&&jsxRuntime.jsx(R,{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(mt,{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 pl({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",dl[r],o),children:jsxRuntime.jsx(R,{width:"100%",height:"100%"})}):n?jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("overflow-hidden",dl[r],o),children:n}):e?jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("overflow-hidden",dl[r],o),children:jsxRuntime.jsx("img",{src:e,alt:t||"",className:"w-full h-full object-cover",loading:"lazy"})}):null}function ml({className:e,children:t,isLoading:r=false}){let n=e?.match(/p(?:t|b|l|r|x|y)?-(?:\d+(?:\.\d+)?|px|\[.+?\])/)?"":"px-6 py-4";return r?jsxRuntime.jsx("div",{className:tailwindMerge.twMerge(n,e),children:jsxRuntime.jsxs("div",{className:"space-y-2",children:[jsxRuntime.jsx(R,{width:"100%",height:16}),jsxRuntime.jsx(R,{width:"80%",height:16}),jsxRuntime.jsx(R,{width:"60%",height:16})]})}):t?jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("px-6 py-4 text-text-body",e),children:t}):null}function fl({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(R,{width:80,height:32}),jsxRuntime.jsx(R,{width:60,height:32})]}):t?jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("px-6 py-4 flex items-center gap-2",Vh[r],e),children:t}):null}ye.Header=ul;ye.Media=pl;ye.Content=ml;ye.Footer=fl;var zt=class extends Ue.Component{constructor(){super(...arguments);Cn(this,"state",{hasError:false});Cn(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(ye,{children:[this.props.title&&jsxRuntime.jsx(ye.Header,{title:this.props.title}),jsxRuntime.jsx(ye.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}};function Zt({children:e,title:t,headerContent:r,titleAlign:o="left",hideCloseIcon:n=false,hasBackArrow:a=false,onBack:i,isOpen:s,onClose:c,isDismissable:l=true,transparentOverlay:p=false,primaryAction:d,secondaryAction:m,footerContent:u,maxHeight:g="80vh",height:f,maxWidth:b="640px",contentPadding:h=true,showHandle:y=true,animationVariant:v="scale",className:x}){let[C,S]=Ue.useState(false);if(Ue.useEffect(()=>{if(s){let w=setTimeout(()=>{S(true),setTimeout(()=>S(false),600);},400);return ()=>clearTimeout(w)}},[s]),!s)return null;let N=t||r,T=d||m||u;return jsxRuntime.jsx(zt,{children:jsxRuntime.jsx(St,{isOpen:s,onOpenChange:w=>{w||c?.();},isDismissable:l,transparent:p,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",isDismissable:l,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",v==="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)]",v==="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)]",x),style:{maxWidth:b,...f?{height:f}:{maxHeight:g}},children:[y&&jsxRuntime.jsx("div",{className:"absolute top-2 left-1/2 -translate-x-1/2 z-10 flex justify-center",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",C&&"animate-[handle-wiggle_0.6s_ease-in-out]")})}),N&&(a?jsxRuntime.jsx(it,{title:t,headerContent:r,titleAlign:o,hideCloseIcon:n||!c,hasBackArrow:true,onBack:i??(()=>{}),onClose:c||(()=>{})}):jsxRuntime.jsx(it,{title:t,headerContent:r,titleAlign:o,hideCloseIcon:n||!c,onClose:c||(()=>{})})),jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("flex-1 min-h-0 overflow-y-auto overscroll-contain",h?"p-4":"p-0"),children:e}),T&&jsxRuntime.jsx(Mr,{primaryAction:d,secondaryAction:m,footerContent:u})]})})})})}Zt.displayName="Tray";function qt({isOpen:e,onClose:t,title:r,headerContent:o,titleAlign:n="left",hideCloseIcon:a=false,hasBackArrow:i=false,onBack:s,children:c,primaryAction:l,secondaryAction:p,footerContent:d,transparentOverlay:m=false,maxWidth:u="600px",minWidth:g="400px",maxHeight:f="85vh",height:b,mobileMaxHeight:h="90vh",mobileHeight:y,contentPadding:v=true,className:x}){if(e===false)return null;let C=r||o,S=l||p||d,N=e!==void 0;return Kt("(max-width: 767px)")?N?jsxRuntime.jsx(Zt,{isOpen:e,onClose:t,title:r,headerContent:o,titleAlign:n,hideCloseIcon:a,hasBackArrow:i,onBack:s,primaryAction:l,secondaryAction:p,footerContent:d,transparentOverlay:m,maxHeight:h,height:y,maxWidth:u,contentPadding:v,showHandle:true,animationVariant:"scale",className:x,children:c}):jsxRuntime.jsx(zt,{children:jsxRuntime.jsx(St,{isDismissable:true,transparent:m,className:"flex items-end justify-center",children:jsxRuntime.jsx(reactAriaComponents.Modal,{className:"w-full max-w-fit p-0",children:jsxRuntime.jsxs(reactAriaComponents.Dialog,{className:tailwindMerge.twMerge("relative flex w-full flex-col","bg-background-surface dark:bg-gray-800","shadow-2xl shadow-black/20","border-t border-x border-border-default/40","max-h-[90vh]","rounded-none","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",x),style:{maxWidth:u,...y?{height:y}:{maxHeight:h}},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"})}),C&&(i?jsxRuntime.jsx(it,{title:r,headerContent:o,titleAlign:n,hideCloseIcon:a||!t,hasBackArrow:true,onBack:s,onClose:t||(()=>{})}):jsxRuntime.jsx(it,{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",v?"px-6 py-6":"p-0"),children:c}),S&&jsxRuntime.jsx(Mr,{primaryAction:l,secondaryAction:p,footerContent:d})]})})})}):jsxRuntime.jsx(zt,{children:jsxRuntime.jsx(St,{...N?{isOpen:e,onOpenChange:w=>{!w&&t&&t();}}:{},isDismissable:true,transparent:m,className:"flex items-center justify-center",children:jsxRuntime.jsx(reactAriaComponents.Modal,{className:"w-full p-4",style:{maxWidth:u},children:jsxRuntime.jsxs(reactAriaComponents.Dialog,{className:tailwindMerge.twMerge("relative flex w-full flex-col","bg-background-surface dark:bg-gray-800","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",x),style:{minWidth:g,...b?{height:b}:{maxHeight:f}},children:[C&&(i?jsxRuntime.jsx(it,{title:r,headerContent:o,titleAlign:n,hideCloseIcon:a||!t,hasBackArrow:true,onBack:s,onClose:t||(()=>{})}):jsxRuntime.jsx(it,{title:r,headerContent:o,titleAlign:n,hideCloseIcon:a||!t,onClose:t||(()=>{})})),jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("flex-1 min-h-0 overflow-y-auto",v?"px-6 py-6":"p-0"),children:c}),S&&jsxRuntime.jsx(Mr,{primaryAction:l,secondaryAction:p,footerContent:d})]})})})})}function Ou({isOpen:e,onClose:t,title:r,message:o,confirmLabel:n="OK",confirmVariant:a="primary",maxWidth:i="400px",minWidth:s="320px"}){return jsxRuntime.jsx(qt,{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 Wa=({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 c=r||270,l=c/270*80;return jsxRuntime.jsxs("svg",{width:c,height:l,viewBox:"0 0 270 80",xmlns:"http://www.w3.org/2000/svg",className:a,style:n?{fill:n}:void 0,children:[jsxRuntime.jsxs("g",{clipPath:"url(#clip0_796_283)",children:[jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0.223654 20.2934C0.417233 19.8234 0.873598 19.517 1.37984 19.517H20.5909C21.282 19.517 21.8422 20.0798 21.8422 20.774V40.049C21.8422 40.5572 21.5375 41.0155 21.0702 41.2102C20.6028 41.405 20.0647 41.2977 19.7067 40.9385L0.495628 21.6635C0.137428 21.3041 0.030075 20.7633 0.223654 20.2934ZM4.40349 22.0311L19.3396 37.017V22.0311H4.40349Z"}),jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M38.6458 20.2934C38.8394 19.8234 39.2958 19.517 39.802 19.517H59.013C59.7041 19.517 60.2642 20.0798 60.2642 20.774V40.049C60.2642 40.5572 59.9597 41.0155 59.4923 41.2102C59.025 41.405 58.4867 41.2977 58.1289 40.9385L38.9178 21.6635C38.5595 21.3041 38.4522 20.7633 38.6458 20.2934ZM42.8255 22.0311L57.7618 37.017V22.0311H42.8255Z"}),jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M19.4347 58.8447C19.6283 58.3747 20.0847 58.0685 20.5909 58.0685H39.802C40.493 58.0685 41.0532 58.6312 41.0532 59.3255V78.6005C41.0532 79.1087 40.7486 79.567 40.2813 79.7617C39.8139 79.9562 39.2757 79.849 38.9178 79.49L19.7067 60.215C19.3485 59.8555 19.2411 59.3147 19.4347 58.8447ZM23.6146 60.5825L38.5508 75.5682V60.5825H23.6146Z"}),jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M39.3227 58.1643C39.79 57.9695 40.3283 58.0768 40.6861 58.436L59.8972 77.711C60.2555 78.0703 60.3628 78.6113 60.1692 79.081C59.9756 79.551 59.5192 79.8575 59.013 79.8575H39.802C39.1109 79.8575 38.5508 79.2948 38.5508 78.6005V59.3255C38.5508 58.8173 38.8554 58.359 39.3227 58.1643ZM41.0532 62.3575V77.3433H55.9893L41.0532 62.3575Z"}),jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M39.3227 19.6129C39.79 19.4182 40.3283 19.5254 40.6861 19.8846L59.8972 39.1595C60.2555 39.519 60.3628 40.0598 60.1692 40.5298C59.9756 40.9995 59.5192 41.306 59.013 41.306H39.802C39.1109 41.306 38.5508 40.7433 38.5508 40.049V20.7741C38.5508 20.2658 38.8554 19.8075 39.3227 19.6129ZM41.0532 23.8061V38.792H55.9893L41.0532 23.8061Z"}),jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M39.3227 38.8885C39.79 38.694 40.3283 38.8012 40.6861 39.1602L59.8972 58.4352C60.2555 58.7945 60.3628 59.3355 60.1692 59.8055C59.9756 60.2752 59.5192 60.5817 59.013 60.5817H39.802C39.1109 60.5817 38.5508 60.019 38.5508 59.3247V40.0497C38.5508 39.5415 38.8554 39.0832 39.3227 38.8885ZM41.0532 43.0817V58.0675H55.9893L41.0532 43.0817Z"}),jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M38.6458 39.569C38.8394 39.0992 39.2958 38.7927 39.802 38.7927H59.013C59.7041 38.7927 60.2642 39.3555 60.2642 40.0497V59.3247C60.2642 59.833 59.9597 60.2912 59.4923 60.486C59.025 60.6805 58.4867 60.5732 58.1289 60.2142L38.9178 40.9392C38.5595 40.5797 38.4522 40.039 38.6458 39.569ZM42.8255 41.3067L57.7618 56.2927V41.3067H42.8255Z"}),jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M38.6458 58.8447C38.8394 58.3747 39.2958 58.0685 39.802 58.0685H59.013C59.7041 58.0685 60.2642 58.6312 60.2642 59.3255V78.6005C60.2642 79.1087 59.9597 79.567 59.4923 79.7617C59.025 79.9562 58.4867 79.849 58.1289 79.49L38.9178 60.215C38.5595 59.8555 38.4522 59.3147 38.6458 58.8447ZM42.8255 60.5825L57.7618 75.5682V60.5825H42.8255Z"}),jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M58.5338 19.6129C59.0011 19.4182 59.5394 19.5254 59.8972 19.8846L79.1083 39.1595C79.4666 39.519 79.5739 40.0598 79.3803 40.5298C79.1867 40.9995 78.7303 41.306 78.2241 41.306H59.013C58.322 41.306 57.7618 40.7433 57.7618 40.049V20.7741C57.7618 20.2658 58.0664 19.8075 58.5338 19.6129ZM60.2643 23.8061V38.792H75.2006L60.2643 23.8061Z"}),jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M58.5338 0.338803C59.0011 0.144135 59.5394 0.251385 59.8972 0.610565L79.1083 19.8855C79.4666 20.2449 79.5739 20.7857 79.3803 21.2556C79.1867 21.7256 78.7303 22.032 78.2241 22.032H59.013C58.322 22.032 57.7618 21.4692 57.7618 20.775V1.50003C57.7618 0.99174 58.0664 0.533468 58.5338 0.338803ZM60.2643 4.53208V19.5179H75.2006L60.2643 4.53208Z"}),jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M57.8569 20.2934C58.0505 19.8234 58.5069 19.517 59.013 19.517H78.2241C78.9151 19.517 79.4753 20.0798 79.4753 20.774V40.049C79.4753 40.5572 79.1707 41.0155 78.7034 41.2102C78.236 41.405 77.6978 41.2977 77.3399 40.9385L58.1289 21.6635C57.7705 21.3041 57.6633 20.7633 57.8569 20.2934ZM62.0365 22.0311L76.9729 37.017V22.0311H62.0365Z"}),jsxRuntime.jsx("path",{d:"M269.838 49.4457H249.005C249.266 51.801 250.162 53.6985 251.695 55.1377C253.225 56.577 255.134 57.2967 257.416 57.2967C259.307 57.2967 260.887 56.8715 262.159 56.021C263.463 55.1377 264.408 53.9927 264.996 52.5862H269.251C268.502 54.9415 267.084 56.937 264.996 58.5725C262.943 60.208 260.414 61.026 257.416 61.026C255.069 61.026 252.917 60.4697 250.961 59.3575C249.037 58.2127 247.504 56.6587 246.363 54.696C245.255 52.7332 244.7 50.558 244.7 48.17C244.7 45.782 245.255 43.6067 246.363 41.644C247.504 39.6812 249.037 38.1437 250.961 37.0315C252.917 35.8867 255.069 35.3142 257.416 35.3142C259.73 35.3142 261.833 35.8702 263.724 36.9825C265.615 38.0947 267.098 39.6485 268.176 41.644C269.283 43.6395 269.838 45.913 269.838 48.4645V49.4457ZM257.416 39.0432C255.263 39.0432 253.439 39.6812 251.939 40.957C250.47 42.2327 249.542 43.9337 249.152 46.06H265.583C265.192 43.9992 264.262 42.3145 262.796 41.006C261.36 39.6975 259.568 39.0432 257.416 39.0432Z"}),jsxRuntime.jsx("path",{d:"M228.356 60.5352V35.8049H232.219V39.7794H232.464C233.05 38.5689 233.963 37.5712 235.202 36.7862C236.474 35.9684 237.974 35.5594 239.701 35.5594H243.125V39.4359H239.701C237.517 39.4359 235.757 40.1554 234.42 41.5949C233.083 43.0342 232.414 44.9152 232.414 47.2377V60.5352H228.356Z"}),jsxRuntime.jsx("path",{d:"M208.607 61.0259C205.64 61.0259 203.326 60.1262 201.663 58.3272C200 56.4952 199.169 53.8947 199.169 50.5252V35.8047H203.228V49.8874C203.228 52.2427 203.766 54.0744 204.842 55.3829C205.95 56.6587 207.532 57.2967 209.586 57.2967C211.02 57.2967 212.308 56.9694 213.449 56.3152C214.623 55.6284 215.536 54.6959 216.188 53.5184C216.84 52.3407 217.166 50.9997 217.166 49.4949V35.8047H221.225V60.5352H217.313V56.5607H217.068C216.286 57.9019 215.161 58.9814 213.694 59.7992C212.226 60.6169 210.531 61.0259 208.607 61.0259Z"}),jsxRuntime.jsx("path",{d:"M186.736 39.534V56.806H194.756V60.5352H182.677V39.534H177.199V35.8047H182.677V29.5732H186.736V35.8047H193.24V39.534H186.736Z"}),jsxRuntime.jsx("path",{d:"M156.585 60.5352H151.988L158.394 48.0227L152.33 35.8047H156.976L162.062 46.0599H165.388L170.474 35.8047H175.022L168.958 48.0227L175.365 60.5352H170.67L165.29 49.7892H162.013L156.585 60.5352Z"}),jsxRuntime.jsx("path",{d:"M150.138 49.1315H129.304C129.565 51.4867 130.461 53.3842 131.994 54.8235C133.526 56.2627 135.433 56.9825 137.715 56.9825C139.606 56.9825 141.188 56.5572 142.459 55.7067C143.763 54.8235 144.709 53.6785 145.296 52.272H149.551C148.801 54.6272 147.382 56.6227 145.296 58.2582C143.242 59.8937 140.715 60.7118 137.715 60.7118C135.368 60.7118 133.216 60.1555 131.26 59.0432C129.336 57.8985 127.804 56.3445 126.663 54.3817C125.554 52.419 125 50.2437 125 47.8557C125 45.4677 125.554 43.2925 126.663 41.3298C127.804 39.367 129.336 37.8295 131.26 36.7173C133.216 35.5725 135.368 35 137.715 35C140.03 35 142.133 35.556 144.024 36.6682C145.915 37.7805 147.399 39.3342 148.475 41.3298C149.583 43.3252 150.138 45.5987 150.138 48.1502V49.1315ZM137.715 38.729C135.564 38.729 133.738 39.367 132.238 40.6427C130.771 41.9185 129.842 43.6195 129.45 45.7458H145.883C145.491 43.685 144.562 42.0002 143.095 40.6917C141.661 39.3832 139.867 38.729 137.715 38.729Z"}),jsxRuntime.jsx("path",{d:"M116.961 60.5353H112.559V30.4072H101.164V26.1875H128.307V30.4072H116.961V60.5353Z"})]}),jsxRuntime.jsx("defs",{children:jsxRuntime.jsx("clipPath",{id:"clip0_796_283",children:jsxRuntime.jsx("rect",{width:"270",height:"80",fill:"white"})})})]})}let i=r||80;return jsxRuntime.jsxs("svg",{width:i,height:i,viewBox:"0 0 80 80",xmlns:"http://www.w3.org/2000/svg",className:a,style:n?{fill:n}:void 0,children:[jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0.223654 20.2934C0.417233 19.8234 0.873598 19.517 1.37984 19.517H20.5909C21.282 19.517 21.8422 20.0798 21.8422 20.774V40.049C21.8422 40.5572 21.5375 41.0155 21.0702 41.2102C20.6028 41.405 20.0647 41.2977 19.7067 40.9385L0.495628 21.6635C0.137428 21.3041 0.030075 20.7633 0.223654 20.2934ZM4.40349 22.0311L19.3396 37.017V22.0311H4.40349Z"}),jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M38.6458 20.2934C38.8394 19.8234 39.2958 19.517 39.802 19.517H59.013C59.7041 19.517 60.2642 20.0798 60.2642 20.774V40.049C60.2642 40.5572 59.9597 41.0155 59.4923 41.2102C59.025 41.405 58.4867 41.2977 58.1289 40.9385L38.9178 21.6635C38.5595 21.3041 38.4522 20.7633 38.6458 20.2934ZM42.8255 22.0311L57.7618 37.017V22.0311H42.8255Z"}),jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M19.4347 58.8447C19.6283 58.3747 20.0847 58.0685 20.5909 58.0685H39.802C40.493 58.0685 41.0532 58.6312 41.0532 59.3255V78.6005C41.0532 79.1087 40.7486 79.567 40.2813 79.7617C39.8139 79.9562 39.2757 79.849 38.9178 79.49L19.7067 60.215C19.3485 59.8555 19.2411 59.3147 19.4347 58.8447ZM23.6146 60.5825L38.5508 75.5682V60.5825H23.6146Z"}),jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M39.3227 58.1643C39.79 57.9695 40.3283 58.0768 40.6861 58.436L59.8972 77.711C60.2555 78.0703 60.3628 78.6113 60.1692 79.081C59.9756 79.551 59.5192 79.8575 59.013 79.8575H39.802C39.1109 79.8575 38.5508 79.2948 38.5508 78.6005V59.3255C38.5508 58.8173 38.8554 58.359 39.3227 58.1643ZM41.0532 62.3575V77.3433H55.9893L41.0532 62.3575Z"}),jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M39.3227 19.6129C39.79 19.4182 40.3283 19.5254 40.6861 19.8846L59.8972 39.1595C60.2555 39.519 60.3628 40.0598 60.1692 40.5298C59.9756 40.9995 59.5192 41.306 59.013 41.306H39.802C39.1109 41.306 38.5508 40.7433 38.5508 40.049V20.7741C38.5508 20.2658 38.8554 19.8075 39.3227 19.6129ZM41.0532 23.8061V38.792H55.9893L41.0532 23.8061Z"}),jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M39.3227 38.8885C39.79 38.694 40.3283 38.8012 40.6861 39.1602L59.8972 58.4352C60.2555 58.7945 60.3628 59.3355 60.1692 59.8055C59.9756 60.2752 59.5192 60.5817 59.013 60.5817H39.802C39.1109 60.5817 38.5508 60.019 38.5508 59.3247V40.0497C38.5508 39.5415 38.8554 39.0832 39.3227 38.8885ZM41.0532 43.0817V58.0675H55.9893L41.0532 43.0817Z"}),jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M38.6458 39.569C38.8394 39.0992 39.2958 38.7927 39.802 38.7927H59.013C59.7041 38.7927 60.2642 39.3555 60.2642 40.0497V59.3247C60.2642 59.833 59.9597 60.2912 59.4923 60.486C59.025 60.6805 58.4867 60.5732 58.1289 60.2142L38.9178 40.9392C38.5595 40.5797 38.4522 40.039 38.6458 39.569ZM42.8255 41.3067L57.7618 56.2927V41.3067H42.8255Z"}),jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M38.6458 58.8447C38.8394 58.3747 39.2958 58.0685 39.802 58.0685H59.013C59.7041 58.0685 60.2642 58.6312 60.2642 59.3255V78.6005C60.2642 79.1087 59.9597 79.567 59.4923 79.7617C59.025 79.9562 58.4867 79.849 58.1289 79.49L38.9178 60.215C38.5595 59.8555 38.4522 59.3147 38.6458 58.8447ZM42.8255 60.5825L57.7618 75.5682V60.5825H42.8255Z"}),jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M58.5338 19.6129C59.0011 19.4182 59.5394 19.5254 59.8972 19.8846L79.1083 39.1595C79.4666 39.519 79.5739 40.0598 79.3803 40.5298C79.1867 40.9995 78.7303 41.306 78.2241 41.306H59.013C58.322 41.306 57.7618 40.7433 57.7618 40.049V20.7741C57.7618 20.2658 58.0664 19.8075 58.5338 19.6129ZM60.2643 23.8061V38.792H75.2006L60.2643 23.8061Z"}),jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M58.5338 0.338803C59.0011 0.144135 59.5394 0.251385 59.8972 0.610565L79.1083 19.8855C79.4666 20.2449 79.5739 20.7857 79.3803 21.2556C79.1867 21.7256 78.7303 22.032 78.2241 22.032H59.013C58.322 22.032 57.7618 21.4692 57.7618 20.775V1.50003C57.7618 0.99174 58.0664 0.533468 58.5338 0.338803ZM60.2643 4.53208V19.5179H75.2006L60.2643 4.53208Z"}),jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M57.8569 20.2934C58.0505 19.8234 58.5069 19.517 59.013 19.517H78.2241C78.9151 19.517 79.4753 20.0798 79.4753 20.774V40.049C79.4753 40.5572 79.1707 41.0155 78.7034 41.2102C78.236 41.405 77.6978 41.2977 77.3399 40.9385L58.1289 21.6635C57.7705 21.3041 57.6633 20.7633 57.8569 20.2934ZM62.0365 22.0311L76.9729 37.017V22.0311H62.0365Z"})]})};var Ga=({topItems:e=[],bottomItems:t=[],bottomContent:r,logo:o,showLogo:n=true,linkComponent:a="a",className:i="",mobileMenuId:s="app-mobile-menu",sidebarCollapseId:c="app-sidebar-collapse"})=>{let l=u=>u.length>0&&"items"in u[0],p=u=>l(u)?u:[{id:"default-section",items:u}],d=(u,g,f)=>jsxRuntime.jsxs("div",{className:"space-y-0.5",children:[u.title&&jsxRuntime.jsx("div",{className:"px-6 py-1 text-xs font-medium text-text-subtle uppercase tracking-wider","data-collapse-hide":"",children:u.title}),jsxRuntime.jsx("div",{className:"space-y-0.5",children:u.items.map(b=>m(b))}),g<f-1&&jsxRuntime.jsx("div",{className:"border-b border-border-subtle mx-6 my-2","data-collapse-hide":""})]},u.id),m=(u,g=false)=>{if(u.children&&u.children.length>0){let h=`category-${u.id}`;return jsxRuntime.jsxs("div",{className:"group/category",children:[jsxRuntime.jsx("input",{type:"checkbox",id:h,className:"peer/category hidden",defaultChecked:u.isExpanded,"aria-hidden":"true"}),jsxRuntime.jsxs("label",{htmlFor:h,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:[u.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:u.icon}),jsxRuntime.jsx("span",{className:"transition-all duration-200","data-collapse-hide":"",children:u.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:u.children.map(y=>m(y,true))})]},u.id)}let f={href:u.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"} ${u.isActive?`bg-action-brand/10 text-action-brand ${g?"":"border-l-2 border-action-brand"}`:"text-text-body hover:text-text-heading"}`,"aria-current":u.isActive?"page":void 0,"data-collapse-center":g?void 0:""},b=jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[u.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:u.icon}),jsxRuntime.jsx("span",{className:"transition-all duration-200","data-collapse-hide":"",children:u.label})]});return a==="a"?jsxRuntime.jsx("a",{...f,children:b},u.id):jsxRuntime.jsx(a,{...f,children:b},u.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:"transition-all duration-200","data-collapse-hide":"",children:o||jsxRuntime.jsx(Wa,{showWordmark:true,width:120})}),jsxRuntime.jsx("label",{htmlFor:c,className:"hidden md:flex items-center justify-center w-8 h-8 rounded hover:bg-background-hover cursor-pointer transition-all duration-200","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:p(e).map((u,g,f)=>d(u,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(u=>m(u))})}),r&&jsxRuntime.jsx("div",{className:"flex-shrink-0 border-t border-border-default",children:jsxRuntime.jsx("div",{"data-collapse-hide":"",children:r})})]})]})};var Ln=({rightContent:e,showMobileMenu:t=true,avatar:r,showColorModeSwitcher:o=false,toggleTheme:n,isDarkThemeEnabled:a=false,actions:i,className:s="",mobileMenuId:c="app-mobile-menu"})=>jsxRuntime.jsx("header",{className:`h-[60px] bg-background-surface border-b ${s}`,children:jsxRuntime.jsxs("div",{className:"flex h-full items-center justify-between",children:[jsxRuntime.jsx("div",{className:"flex items-center h-full",children:t&&jsxRuntime.jsx("label",{htmlFor:c,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("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.jsxs("div",{className:"flex items-center gap-4 px-4",children:[e,o&&n&&jsxRuntime.jsx("button",{type:"button",onClick:n,className:"flex items-center justify-center w-8 h-8 rounded hover:bg-background-hover transition-colors","aria-label":a?"Switch to light mode":"Switch to dark mode",children:a?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:"M12 3v1m0 16v1m9-9h-1M4 12H3m15.364 6.364l-.707-.707M6.343 6.343l-.707-.707m12.728 0l-.707.707M6.343 17.657l-.707.707M16 12a4 4 0 11-8 0 4 4 0 018 0z"})}):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:"M20.354 15.354A9 9 0 018.646 3.646 9.003 9.003 0 0012 21a9.003 9.003 0 008.354-5.646z"})})}),i,r&&jsxRuntime.jsx("div",{className:"flex items-center",children:r})]})]})});function Wu({sideNav:e,topNav:t,children:r,contentPaddingX:o,contentPaddingY:n,showSidebarBorder:a=true,mainClassName:i,enableJsEnhancements:s=false}){let c="app-mobile-menu",l="app-sidebar-collapse";return jsxRuntime.jsxs("div",{className:"min-h-[100dvh] bg-background text-text-body relative",children:[jsxRuntime.jsx("input",{type:"checkbox",id:l,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(Ln,{...t,mobileMenuId:c,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:c,className:"sr-only peer/mobile","aria-hidden":"true"}),jsxRuntime.jsx("label",{htmlFor:c,className:"fixed inset-0 bg-black/50 z-40 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-50","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(Ga,{...e,mobileMenuId:c,sidebarCollapseId:l,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(Ln,{...t,className:t?.className})}),jsxRuntime.jsx("main",{id:"app-content",className:["flex-1 overflow-y-auto bg-background-body",o,n,i||""].join(" "),role:"main",children:r})]})]}),jsxRuntime.jsx("style",{dangerouslySetInnerHTML:{__html:`
|
|
3
3
|
@media (min-width: 768px) {
|
|
4
4
|
/* Collapse sidebar width */
|
|
5
5
|
#${l}:checked ~ * #app-sidebar {
|
|
@@ -74,12 +74,12 @@
|
|
|
74
74
|
});
|
|
75
75
|
}
|
|
76
76
|
})();
|
|
77
|
-
`}})]})}var Ua={prefix:String(Math.round(Math.random()*1e10)),current:0},Gu=Ue__namespace.default.createContext(Ua),qh=Ue__namespace.default.createContext(false);var Xh=!!(typeof window<"u"&&window.document&&window.document.createElement),hl=new WeakMap;function jh(e=false){let t=Ue.useContext(Gu),r=Ue.useRef(null);if(r.current===null&&!e){var o,n;let a=(n=Ue__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=hl.get(a);i==null?hl.set(a,{id:t.current,state:a.memoizedState}):a.memoizedState!==i.state&&(t.current=i.id,hl.delete(a));}r.current=++t.current;}return r.current}function Qh(e){let t=Ue.useContext(Gu);t===Ua&&!Xh&&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=jh(!!e),o=t===Ua&&process.env.NODE_ENV==="test"?"react-aria":`react-aria${t.prefix}`;return e||`${o}-${r}`}function $h(e){let t=Ue__namespace.default.useId(),[r]=Ue.useState(Ka()),o=r||process.env.NODE_ENV==="test"?"react-aria":`react-aria${Ua.prefix}`;return e||`${o}-${t}`}typeof Ue__namespace.default.useId=="function"?$h:Qh;function ey(){return false}function ty(){return true}function ry(e){return ()=>{}}function Ka(){return typeof Ue__namespace.default.useSyncExternalStore=="function"?Ue__namespace.default.useSyncExternalStore(ry,ey,ty):Ue.useContext(qh)}function Uu(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Ya(e,t,r){Uu(e,t),t.set(e,r);}var oy=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),ny=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function vl(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 oy.has(r.script)}let t=e.split("-")[0];return ny.has(t)}var sy=Symbol.for("react-aria.i18n.locale");function Yu(){let e=typeof window<"u"&&window[sy]||typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e]);}catch{e="en-US";}return {locale:e,direction:vl(e)?"rtl":"ltr"}}var Cl=Yu(),Fn=new Set;function Ku(){Cl=Yu();for(let e of Fn)e(Cl);}function Ju(){let e=Ka(),[t,r]=Ue.useState(Cl);return Ue.useEffect(()=>(Fn.size===0&&window.addEventListener("languagechange",Ku),Fn.add(r),()=>{Fn.delete(r),Fn.size===0&&window.removeEventListener("languagechange",Ku);}),[]),e?{locale:"en-US",direction:"ltr"}:t}var dy=Ue__namespace.default.createContext(null);function Sl(){let e=Ju();return Ue.useContext(dy)||e}function Ja(e,t){return e-t*Math.floor(e/t)}var Zu=1721426;function Za(e,t,r,o){t=Xa(e,t);let n=t-1,a=-2;return r<=2?a=0:qa(t)&&(a=-1),Zu-1+365*n+Math.floor(n/4)-Math.floor(n/100)+Math.floor(n/400)+Math.floor((367*r-362)/12+a+o)}function qa(e){return e%4===0&&(e%100!==0||e%400===0)}function Xa(e,t){return e==="BC"?1-t:t}function uy(e){let t="AD";return e<=0&&(t="BC",e=1-e),[t,e]}var my={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]},Lt=class{fromJulianDay(t){let r=t,o=r-Zu,n=Math.floor(o/146097),a=Ja(o,146097),i=Math.floor(a/36524),s=Ja(a,36524),c=Math.floor(s/1461),l=Ja(s,1461),m=Math.floor(l/365),d=n*400+i*100+c*4+m+(i!==4&&m!==4?1:0),[p,u]=uy(d),b=r-Za(p,u,1,1),f=2;r<Za(p,u,3,1)?f=0:qa(u)&&(f=1);let g=Math.floor(((b+f)*12+373)/367),h=r-Za(p,u,g,1)+1;return new Qr(p,u,g,h)}toJulianDay(t){return Za(t.era,t.year,t.month,t.day)}getDaysInMonth(t){return my[qa(t.year)?"leapyear":"standard"][t.month-1]}getMonthsInYear(t){return 12}getDaysInYear(t){return qa(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 wl(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 kl(e,t){return e.calendar.toJulianDay(e)-t.calendar.toJulianDay(t)}function Xu(e,t){return qu(e)-qu(t)}function qu(e){return e.hour*36e5+e.minute*6e4+e.second*1e3+e.millisecond}var Nl=null;function $r(){return Nl==null&&(Nl=new Intl.DateTimeFormat().resolvedOptions().timeZone),Nl}function Lr(e){e=Nt(e,new Lt);let t=Xa(e.era,e.year);return $u(t,e.month,e.day,e.hour,e.minute,e.second,e.millisecond)}function $u(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 Tl(e,t){if(t==="UTC")return 0;if(e>0&&t===$r())return new Date(e).getTimezoneOffset()*-6e4;let{year:r,month:o,day:n,hour:a,minute:i,second:s}=_u(e,t);return $u(r,o,n,a,i,s,0)-Math.floor(e/1e3)*1e3}var ju=new Map;function _u(e,t){let r=ju.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"}),ju.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 Qu=864e5;function py(e,t,r,o){return (r===o?[r]:[r,o]).filter(a=>fy(e,t,a))}function fy(e,t,r){let o=_u(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 Vt(e,t,r="compatible"){let o=Xt(e);if(t==="UTC")return Lr(o);if(t===$r()&&r==="compatible"){o=Nt(o,new Lt);let c=new Date,l=Xa(o.era,o.year);return c.setFullYear(l,o.month-1,o.day),c.setHours(o.hour,o.minute,o.second,o.millisecond),c.getTime()}let n=Lr(o),a=Tl(n-Qu,t),i=Tl(n+Qu,t),s=py(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 Pl(e,t,r="compatible"){return new Date(Vt(e,t,r))}function Ft(e,t){let r=Tl(e,t),o=new Date(e+r),n=o.getUTCFullYear(),a=o.getUTCMonth()+1,i=o.getUTCDate(),s=o.getUTCHours(),c=o.getUTCMinutes(),l=o.getUTCSeconds(),m=o.getUTCMilliseconds();return new Jo(n<1?"BC":"AD",n<1?-n+1:n,a,i,t,r,s,c,l,m)}function ja(e,t){return Ft(e.getTime(),t)}function Xt(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 En(e.calendar,e.era,e.year,e.month,e.day,r,o,n,a)}function Nt(e,t){if(wl(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,pr(o),o}function Dl(e,t,r){if(e instanceof Jo)return e.timeZone===t?e:Rl(e,t);let o=Vt(e,t,r);return Ft(o,t)}function em(e){let t=Lr(e)-e.offset;return new Date(t)}function Rl(e,t){let r=Lr(e)-e.offset;return Nt(Ft(r,t),e.calendar)}var In=36e5;function zn(e,t){let r=e.copy(),o="hour"in r?hy(r,t):0;Al(r,t.years||0),r.calendar.balanceYearMonth&&r.calendar.balanceYearMonth(r,e),r.month+=t.months||0,Ml(r),tm(r),r.day+=(t.weeks||0)*7,r.day+=t.days||0,r.day+=o,by(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 c=(a=(i=r.calendar).isInverseEra)===null||a===void 0?void 0:a.call(i,r);r.year=n,r.month=c?1:r.calendar.getMonthsInYear(r),r.day=c?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 Al(e,t){var r,o;!((r=(o=e.calendar).isInverseEra)===null||r===void 0)&&r.call(o,e)&&(t=-t),e.year+=t;}function Ml(e){for(;e.month<1;)Al(e,-1),e.month+=e.calendar.getMonthsInYear(e);let t=0;for(;e.month>(t=e.calendar.getMonthsInYear(e));)e.month-=t,Al(e,1);}function by(e){for(;e.day<1;)e.month--,Ml(e),e.day+=e.calendar.getDaysInMonth(e);for(;e.day>e.calendar.getDaysInMonth(e);)e.day-=e.calendar.getDaysInMonth(e),e.month++,Ml(e);}function tm(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 pr(e){e.calendar.constrainDate&&e.calendar.constrainDate(e),e.year=Math.max(1,Math.min(e.calendar.getYearsInEra(e),e.year)),tm(e);}function rm(e){let t={};for(let r in e)typeof e[r]=="number"&&(t[r]=-e[r]);return t}function Ll(e,t){return zn(e,rm(t))}function $a(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),pr(r),r}function Bn(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),om(r),r}function xy(e){e.second+=Math.floor(e.millisecond/1e3),e.millisecond=Qa(e.millisecond,1e3),e.minute+=Math.floor(e.second/60),e.second=Qa(e.second,60),e.hour+=Math.floor(e.minute/60),e.minute=Qa(e.minute,60);let t=Math.floor(e.hour/24);return e.hour=Qa(e.hour,24),t}function om(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 Qa(e,t){let r=e%t;return r<0&&(r+=t),r}function hy(e,t){return e.hour+=t.hours||0,e.minute+=t.minutes||0,e.second+=t.seconds||0,e.millisecond+=t.milliseconds||0,xy(e)}function _a(e,t,r,o){let n=e.copy();switch(t){case "era":{let s=e.calendar.getEras(),c=s.indexOf(e.era);if(c<0)throw new Error("Invalid era: "+e.era);c=fr(c,r,0,s.length-1,o?.round),n.era=s[c],pr(n);break}case "year":var a,i;!((a=(i=n.calendar).isInverseEra)===null||a===void 0)&&a.call(i,n)&&(r=-r),n.year=fr(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=fr(e.month,r,1,e.calendar.getMonthsInYear(e),o?.round);break;case "day":n.day=fr(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),pr(n),n}function Fl(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 c=a>=12;i=c?12:0,s=c?23:11;}n.hour=fr(a,r,i,s,o?.round);break}case "minute":n.minute=fr(e.minute,r,0,59,o?.round);break;case "second":n.second=fr(e.second,r,0,59,o?.round);break;case "millisecond":n.millisecond=fr(e.millisecond,r,0,999,o?.round);break;default:throw new Error("Unsupported field "+t)}return n}function fr(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 El(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=zn(Xt(e),{years:t.years,months:t.months,weeks:t.weeks,days:t.days});r=Vt(n,e.timeZone);}else r=Lr(e)-e.offset;r+=t.milliseconds||0,r+=(t.seconds||0)*1e3,r+=(t.minutes||0)*6e4,r+=(t.hours||0)*36e5;let o=Ft(r,e.timeZone);return Nt(o,e.calendar)}function nm(e,t){return El(e,rm(t))}function am(e,t,r,o){switch(t){case "hour":{let n=0,a=23;if(o?.hourCycle===12){let b=e.hour>=12;n=b?12:0,a=b?23:11;}let i=Xt(e),s=Nt(Bn(i,{hour:n}),new Lt),c=[Vt(s,e.timeZone,"earlier"),Vt(s,e.timeZone,"later")].filter(b=>Ft(b,e.timeZone).day===s.day)[0],l=Nt(Bn(i,{hour:a}),new Lt),m=[Vt(l,e.timeZone,"earlier"),Vt(l,e.timeZone,"later")].filter(b=>Ft(b,e.timeZone).day===l.day).pop(),d=Lr(e)-e.offset,p=Math.floor(d/In),u=d%In;return d=fr(p,r,Math.floor(c/In),Math.floor(m/In),o?.round)*In+u,Nt(Ft(d,e.timeZone),e.calendar)}case "minute":case "second":case "millisecond":return Fl(e,t,r,o);case "era":case "year":case "month":case "day":{let n=_a(Xt(e),t,r,o),a=Vt(n,e.timeZone);return Nt(Ft(a,e.timeZone),e.calendar)}default:throw new Error("Unsupported field "+t)}}function im(e,t,r){let o=Xt(e),n=Bn($a(o,t),t);if(n.compare(o)===0)return e;let a=Vt(n,e.timeZone,r);return Nt(Ft(a,e.timeZone),e.calendar)}var yy=/^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})$/;function Bl(e){let t=e.match(yy);if(!t)throw new Error("Invalid ISO 8601 date string: "+e);let r=new Qr(Il(t[1],0,9999),Il(t[2],1,12),1);return r.day=Il(t[3],1,r.calendar.getDaysInMonth(r)),r}function Il(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 sm(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 zl(e){let t=Nt(e,new Lt),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 Vl(e){return `${zl(e)}T${sm(e)}`}function Cy(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 lm(e){return `${Vl(e)}${Cy(e.offset)}[${e.timeZone}]`}function Ol(e){let t=typeof e[0]=="object"?e.shift():new Lt,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 Sy=new WeakMap,Qr=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 zn(this,t)}subtract(t){return Ll(this,t)}set(t){return $a(this,t)}cycle(t,r,o){return _a(this,t,r,o)}toDate(t){return Pl(this,t)}toString(){return zl(this)}compare(t){return kl(this,t)}constructor(...t){Ya(this,Sy,{writable:true,value:void 0});let[r,o,n,a,i]=Ol(t);this.calendar=r,this.era=o,this.year=n,this.month=a,this.day=i,pr(this);}};var Ny=new WeakMap,En=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 zn(this,t)}subtract(t){return Ll(this,t)}set(t){return $a(Bn(this,t),t)}cycle(t,r,o){switch(t){case "era":case "year":case "month":case "day":return _a(this,t,r,o);default:return Fl(this,t,r,o)}}toDate(t,r){return Pl(this,t,r)}toString(){return Vl(this)}compare(t){let r=kl(this,t);return r===0?Xu(this,Xt(t)):r}constructor(...t){Ya(this,Ny,{writable:true,value:void 0});let[r,o,n,a,i]=Ol(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,pr(this);}},wy=new WeakMap,Jo=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 El(this,t)}subtract(t){return nm(this,t)}set(t,r){return im(this,t,r)}cycle(t,r,o){return am(this,t,r,o)}toDate(){return em(this)}toString(){return lm(this)}toAbsoluteString(){return this.toDate().toISOString()}compare(t){return this.toDate().getTime()-Dl(t,this.timeZone).toDate().getTime()}constructor(...t){Ya(this,wy,{writable:true,value:void 0});let[r,o,n,a,i]=Ol(t),s=t.shift(),c=t.shift();this.calendar=r,this.era=o,this.year=n,this.month=a,this.day=i,this.timeZone=s,this.offset=c,this.hour=t.shift()||0,this.minute=t.shift()||0,this.second=t.shift()||0,this.millisecond=t.shift()||0,pr(this);}};var Hl=new Map;function Wl(e){let{locale:t}=Sl(),r=t+(e?Object.entries(e).sort((n,a)=>n[0]<a[0]?-1:1).join():"");if(Hl.has(r))return Hl.get(r);let o=new Intl.Collator(t,e);return Hl.set(r,o),o}function ei(e){let t=Wl({usage:"search",...e}),r=Ue.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=Ue.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=Ue.useCallback((a,i)=>{if(i.length===0)return true;a=a.normalize("NFC"),i=i.normalize("NFC");let s=0,c=i.length;for(;s+c<=a.length;s++){let l=a.slice(s,s+c);if(t.compare(i,l)===0)return true}return false},[t]);return Ue.useMemo(()=>({startsWith:r,endsWith:o,contains:n}),[r,o,n])}function Qt(){let[e,t]=Ue__namespace.default.useState(false),r=Ue__namespace.default.useCallback((n,a)=>{t(true),a?.(n);},[]),o=Ue__namespace.default.useCallback((n,a)=>{t(false),a?.(n);},[]);return {isFocused:e,handleFocus:r,handleBlur:o}}function ft({children:e,className:t}){return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("relative w-full",t),children:e})}function cm({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-1/2 -translate-y-1/2 transform text-text-muted hover:text-text-body",r),"aria-label":"Clear input",onMouseDown:o=>{o.preventDefault(),o.stopPropagation();},children:jsxRuntime.jsx(k,{name:"X",size:t==="sm"?16:20})})}function Zo(e){let{isInvalid:t,isDisabled:r,isFocused:o}=e,n="border rounded-[var(--control-border-radius)] !outline-none ";return r?`${n} border-border-muted`:t&&o?`${n} border-feedback-error-border shadow-[inset_0_0_0_1px_var(--color-feedback-error-border)]`:t?`${n} border-feedback-error-border`:o?`${n} border-border-focus shadow-[inset_0_0_0_1px_var(--color-border-focus)]`:`${n} border-border-input`}function dm(e){return e.isDisabled?"bg-background-muted":e.transparent?"bg-transparent":"bg-background-input"}function wt(e){let{isInvalid:t,isDisabled:r,isFocused:o,transparent:n,size:a="md",className:i}=e;return tailwindMerge.twMerge("w-full",Zo({isInvalid:t,isDisabled:r,isFocused:o}),dm({transparent:n,isDisabled:r}),he[a].text,he[a].height,he[a].padding,i)}function Kl(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",dm({transparent:a,isDisabled:n}),he[t].height,Zo({isFocused:r,isInvalid:o,isDisabled:n}),i)}function ve({children:e,size:t="md",tooltip:r,isRequired:o,className:n,htmlFor:a}){return jsxRuntime.jsxs("label",{htmlFor:a,className:tailwindMerge.twMerge(he[t].text,"!text-text-label font-semibold flex items-center gap-1",n),children:[e,o&&jsxRuntime.jsx("span",{children:"*"}),r&&jsxRuntime.jsx("span",{className:"text-text-muted",children:jsxRuntime.jsx(k,{name:"Info",size:t==="sm"?16:20})})]})}function de({size:e="md",className:t,children:r,...o}){return jsxRuntime.jsx("div",{...o,className:tailwindMerge.twMerge("leading-[2.25] text-text-caption",he[e].text,t),children:r})}function oe({children:e,size:t="md",className:r}){return jsxRuntime.jsx("div",{role:"alert",className:tailwindMerge.twMerge(he[t].text,"text-feedback-error-text",r),children:e})}function ti({size:e="md",isInvalid:t,isDisabled:r,isFocused:o,transparent:n,className:a,...i}){return jsxRuntime.jsx("input",{className:wt({isInvalid:t,isDisabled:r,isFocused:o,transparent:n,size:e,className:a}),...i})}function um(e){let{children:t,...r}=e;return jsxRuntime.jsx("div",{...r,className:Kl(e),children:typeof t=="function"?t(e):t})}function Dy({children:e,...t}){return jsxRuntime.jsx(reactAriaComponents.ListBox,{...t,className:ce(t.className,"outline-0"),children:e})}var xm=Ue.createContext("md");function hm(){return Ue.useContext(xm)}function Iy(e="md"){return `flex-1 text-start data-[placeholder]:text-text-placeholder overflow-hidden text-ellipsis whitespace-nowrap ${he[e].text}`}function By(){let e=Ue__namespace.default.useCallback((r,o)=>{o?.(r);},[]),t=Ue__namespace.default.useCallback((r,o)=>{o?.(r);},[]);return {handleFocus:e,handleBlur:t}}function eo({label:e,description:t,errorMessage:r,children:o,items:n,renderItem:a,size:i="md",selectedKey:s,defaultSelectedKey:c,onSelectionChange:l,placeholder:m,showErrors:d=false,tooltip:p,isRequired:u,transparent:b,reserveErrorSpace:f=false,placement:g="bottom start",shouldFlip:h=true,menuWidth:y="match",...v}){let[x,C]=Ue.useState(null),[S,N]=Ue.useState(null),T=s??x??c,{handleFocus:w,handleBlur:F}=By(),E=B=>{l&&B!==null&&l(B),l||C(B);},A=Ue.useRef(null),J=Ue.useRef(null);return jsxRuntime.jsx(reactAriaComponents.Select,{...v,selectedKey:T,defaultSelectedKey:c,onSelectionChange:E,placeholder:m,className:ce(v.className,"group flex w-full flex-col"),ref:A,onOpenChange:B=>{B&&J.current?N(J.current.offsetWidth):B||A.current?.blur();},children:({isDisabled:B,isInvalid:Z,isOpen:Y})=>jsxRuntime.jsxs("div",{className:"flex flex-col",children:[e&&jsxRuntime.jsx(ve,{size:i,tooltip:p,isRequired:u,children:e}),jsxRuntime.jsx(ft,{children:jsxRuntime.jsx("div",{ref:J,children:jsxRuntime.jsxs(q,{variant:"unstyled",className:tailwindMerge.twMerge(wt({isInvalid:Z||d&&!!r,isDisabled:B,isFocused:Y,transparent:b,size:i}),"flex items-center text-start gap-4 cursor-pointer pl-[var(--control-padding-sm)]"),onFocus:G=>w(G,v.onFocus),onBlur:G=>F(G,v.onBlur),"data-open":Y,children:[jsxRuntime.jsx(reactAriaComponents.SelectValue,{className:Iy(i)}),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",Y&&"rotate-180")})]})})}),f?jsxRuntime.jsx("div",{className:"mt-1 min-h-[20px]",children:d?jsxRuntime.jsx(oe,{size:i,className:"text-feedback-error-text",children:typeof r=="function"&&v.validationResult?r(v.validationResult):typeof r=="string"?r:null}):t?jsxRuntime.jsx(de,{size:i,children:t}):null}):jsxRuntime.jsx(jsxRuntime.Fragment,{children:d?jsxRuntime.jsx(oe,{size:i,className:"mt-1 text-feedback-error-text",children:typeof r=="function"&&v.validationResult?r(v.validationResult):typeof r=="string"?r:null}):t?jsxRuntime.jsx(de,{size:i,className:"mt-1",children:t}):null}),jsxRuntime.jsx(We,{className:"bg-background-input shadow-xl border border-border-input/20 backdrop-blur-sm rounded-[var(--control-border-radius)]",style:{width:y==="match"&&S?`${S}px`:void 0,minWidth:y==="auto"&&S?`${S}px`:void 0,maxWidth:y==="auto"?"min(600px, 90vw)":void 0},placement:g,shouldFlip:h,children:jsxRuntime.jsx(xm.Provider,{value:i,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?G=>jsxRuntime.jsx($t,{id:G.id,textValue:G.label,size:i,children:jsxRuntime.jsx("span",{className:"overflow-hidden text-ellipsis whitespace-nowrap min-w-0 flex-1",children:a(G)})},G.id):o})})})]})})}function $t({size:e,className:t,...r}){let o=hm(),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",he[n].paddingY,he[n].text,t)})}var qy={sm:"h-4 w-4",md:"h-5 w-5",lg:"h-6 w-6",xl:"h-7 w-7"},Xy={sm:"pl-7",md:"pl-9",lg:"pl-10",xl:"pl-12"},ym={sm:"py-1",md:"py-2",lg:"py-3",xl:"py-4"};function jy(){let e=Ue__namespace.default.useContext(reactAriaComponents.ComboBoxStateContext);return jsxRuntime.jsx(reactAriaComponents.Button,{slot:null,className:"clear-button","aria-label":"Clear",onPress:()=>e?.setSelectedKey(null),children:"\u2715"})}var ql=(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 Qy(e,t,r){try{let o=e.url.replace("{q}",t),n=new URLSearchParams;e.extraParams&&Object.entries(e.extraParams).forEach(([c,l])=>{n.append(c,l.toString());});let a=`${o}${n.toString()?"?"+n.toString():""}`,i=await fetch(a,{method:"GET",headers:e.headers,signal:r});if(!i.ok)throw new Error(`HTTP error! status: ${i.status}`);let s=await i.json();return {items:e.transformResponse(s)}}catch(o){console.error("Error in REST request:",o);let n=o instanceof Error?o.message:"Unknown error occurred";return {items:[],error:n}}}async function $y(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){console.error("Error in GraphQL request:",o);let n=o instanceof Error?o.message:"Unknown error occurred";return {items:[],error:n}}}function oi({label:e,staticItems:t=[],sections:r,selectedKey:o,defaultSelectedKey:n,onSelectionChange:a,requestConfig:i,defaultFilter:s,placeholder:c,errorMessage:l,description:m,size:d="md",tooltip:p,isRequired:u,isDisabled:b,isInvalid:f,validationResult:g,showErrors:h=true,renderItem:y,renderLeftIcon:v,renderSection:x,autoFocus:C=false,reserveErrorSpace:S=false}){let N=Ue__namespace.default.useRef(null),[T,w]=Ue__namespace.default.useState(),[F,E]=Ue.useState(()=>ql(o||n,t,r)),[A,J]=Ue.useState(false),B=Oo(F),{contains:Z}=ei({sensitivity:"base"}),[Y,G]=Ue.useState(),M=he[d].text,j=he[d].height,V=null;Ue.useEffect(()=>{C&&J(true);},[C]),Ue.useEffect(()=>{let I=()=>{N.current&&w(N.current.offsetWidth);};return I(),window.addEventListener("resize",I),()=>window.removeEventListener("resize",I)},[]),Ue.useEffect(()=>{V&&V.setFilterText(B);},[B,V]),i&&(V=reactStately.useAsyncList({async load({signal:I,filterText:O=""}){if(!i.url||i.shouldLoad&&!i.shouldLoad(O))return {items:[]};try{let K;return i.requestType==="GraphQL"?K=await $y(i,O,I):K=await Qy(i,O,I),G(K.error),{items:K.items}}catch(K){return console.error("Error loading items:",K),G(K instanceof Error?K.message:"Unknown error occurred"),{items:[]}}},initialFilterText:""})),B===""&&(V=null);let U=I=>{let O=ql(I,t,r);E(O),a&&a(I);},z=I=>{E(I);let O=ql(o,t,r);o!=null&&I!==O&&a&&a(null);};return jsxRuntime.jsx(reactAriaComponents.ComboBox,{onSelectionChange:U,selectedKey:o||void 0,defaultSelectedKey:n||void 0,defaultItems:r?r.flatMap(I=>I.items):t,items:V?V.items:void 0,className:ce("group flex flex-col","w-full"),menuTrigger:"focus",isDisabled:b,isInvalid:f||!!l,inputValue:F,onInputChange:z,autoFocus:C,defaultFilter:s||Z,"aria-label":e||c||"Autocomplete",children:I=>jsxRuntime.jsxs("div",{className:"flex flex-col",children:[e&&jsxRuntime.jsx(ve,{size:d,tooltip:p,isRequired:u,children:e}),jsxRuntime.jsxs(reactAriaComponents.Group,{ref:N,className:Kl({size:d,isInvalid:f||!!l,isDisabled:b,isFocusWithin:A||I.isOpen,className:"w-full cursor-pointer"}),"aria-label":e||c||"Autocomplete",style:{position:"relative"},children:[v?jsxRuntime.jsx("div",{className:"absolute left-3",children:v(!!V?.isLoading)}):jsxRuntime.jsx(k,{name:"MagnifyingGlass",className:`${qy[d]} absolute left-3 text-inherit`}),jsxRuntime.jsx(reactAriaComponents.Input,{className:`flex-1 min-w-0 border-none pr-3 outline-0 placeholder:text-text-placeholder ${Xy[d]} ${M} ${j} ${b?"bg-background-muted":"bg-background-input"}`,placeholder:c,disabled:b,onFocus:()=>J(true),onBlur:()=>J(false)}),F&&!b&&jsxRuntime.jsx(jy,{}),jsxRuntime.jsx(reactAriaComponents.Button,{className:`px-2 text-text-body ${M} ${j} ${b?"bg-background-muted":"bg-background-input"}`,"aria-label":"Toggle menu",isDisabled:b,children:({isPressed:O})=>jsxRuntime.jsx(k,{name:O?"CaretUp":"CaretDown",className:"h-4 w-4"})})]}),S?jsxRuntime.jsx("div",{className:"mt-1 min-h-[20px]",children:h&&Y?jsxRuntime.jsx(oe,{size:d,className:"text-feedback-error-text",children:Y}):h&&typeof l=="string"?jsxRuntime.jsx(oe,{size:d,className:"text-feedback-error-text",children:l}):h&&typeof l=="function"&&g?jsxRuntime.jsx(oe,{size:d,className:"text-feedback-error-text",children:l(g)}):m?jsxRuntime.jsx(de,{size:d,children:m}):null}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[m&&jsxRuntime.jsx(de,{size:d,className:"mt-1",children:m}),h&&Y&&jsxRuntime.jsx(oe,{size:d,className:"text-feedback-error-text mt-1",children:Y}),h&&typeof l=="string"&&jsxRuntime.jsx(oe,{size:d,className:"text-feedback-error-text mt-1",children:l}),h&&typeof l=="function"&&g&&jsxRuntime.jsx(oe,{size:d,className:"text-feedback-error-text mt-1",children:l(g)})]}),jsxRuntime.jsx(We,{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 ${M}`,children:r?r.map(O=>{let K=O.items.map(L=>jsxRuntime.jsx($t,{id:L.id,textValue:L.name,size:d,className:`flex cursor-default items-center gap-2 px-3 ${ym[d]} text-text-body outline-none data-[focused]:bg-background-hover data-[selected]:bg-background-selected data-[selected]:font-medium`,children:y?y(L):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[L.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"})]})},L.id));if(x){let L=x(O,K);return Ue__namespace.default.isValidElement(L)&&L.type===reactAriaComponents.ListBoxSection?L:jsxRuntime.jsx(reactAriaComponents.ListBoxSection,{children:L},O.name)}return jsxRuntime.jsxs(reactAriaComponents.ListBoxSection,{children:[jsxRuntime.jsx(reactAriaComponents.Header,{className:"px-3 py-1 text-sm font-bold text-text-muted",children:O.name}),K]},O.name)}):O=>jsxRuntime.jsx($t,{id:O.id,textValue:O.name,size:d,className:`flex cursor-default items-center gap-2 px-3 ${ym[d]} text-text-body outline-none data-[focused]:bg-background-hover data-[selected]:bg-background-selected data-[selected]:font-medium`,children:y?y(O):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[O.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"})]})},O.id)})})]})})}function br({src:e,alt:t,firstName:r,lastName:o,fullName:n,onClick:a,size:i="md",shape:s="circle",variant:c="user",className:l,status:m,bordered:d=false}){let p={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"},u={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"},b={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"},f={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"},g={user:"bg-action-brand/10 text-action-brand",team:"bg-feedback-info-background text-feedback-info-text",organization:"bg-feedback-success-background text-feedback-success-text"},h=s==="circle"?"rounded-full":"rounded-md",y=tailwindMerge.twMerge("relative inline-flex items-center justify-center overflow-hidden transition-opacity outline-none",p[i],h,a&&"cursor-pointer hover:opacity-80",d&&"ring-2 ring-background-surface",l),x=(()=>{if(r||o){let N=r?.[0]||"",T=o?.[0]||"";return (N+T).toUpperCase()}if(n){let N=n.split(" "),T=N[0]?.[0]||"",w=N[N.length-1]?.[0]||"";return T===w?T.toUpperCase():(T+w).toUpperCase()}return ""})(),C=()=>{let N={xs:14,sm:16,md:20,lg:24,xl:32}[i];switch(c){case "team":return jsxRuntime.jsx(lucideReact.Users,{size:N});case "organization":return jsxRuntime.jsx(lucideReact.Building2,{size:N});default:return jsxRuntime.jsx(lucideReact.User,{size:N})}},S=()=>e?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("img",{src:e,alt:t||n||"Avatar",className:"h-full w-full object-cover",style:{fontSize:0}}),jsxRuntime.jsx("div",{className:"absolute inset-0 flex items-center justify-center -z-10",children:x?jsxRuntime.jsx("span",{className:"font-semibold",children:x}):C()})]}):x?jsxRuntime.jsx("span",{className:"font-semibold",children:x}):C();return jsxRuntime.jsxs("div",{className:"relative inline-block",children:[jsxRuntime.jsx("div",{"data-avatar":true,className:tailwindMerge.twMerge(y,e?"":g[c]),onClick:a,role:a?"button":void 0,tabIndex:a?0:void 0,children:S()}),m&&jsxRuntime.jsx("span",{className:tailwindMerge.twMerge("absolute border-2 border-background-surface",h,u[i],b[i],f[m]),"aria-label":`Status: ${m}`})]})}var o0={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"},n0={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"},a0={pill:"rounded-full",rounded:"rounded-lg",square:"rounded-sm"},i0={sm:"w-1.5 h-1.5",md:"w-2 h-2",lg:"w-2.5 h-2.5"};function Oe({children:e,variant:t="default",size:r="sm",shape:o="square",dot:n=false,dotPosition:a="left",dotPulse:i=false,className:s}){let c=n&&jsxRuntime.jsx("span",{className:tailwindMerge.twMerge("rounded-full bg-current opacity-75",i0[r],i&&"animate-pulse"),"aria-hidden":"true"});return jsxRuntime.jsxs("span",{className:tailwindMerge.twMerge("inline-flex items-center gap-1.5 font-medium",n0[r],a0[o],o0[t],s),children:[n&&a==="left"&&c,e,n&&a==="right"&&c]})}var Me=({href:e,children:t,className:r="",external:o=false,title:n,variant:a="default",onClick:i,asButton:s=false,onPress:c,showArrow:l=false})=>{let m=o?{target:"_blank",rel:"noopener noreferrer"}:{},u=`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}`,b=jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[t,l&&jsxRuntime.jsxs("span",{children:["\xA0","\u2192"]})]});return s?jsxRuntime.jsx("button",{type:"button",className:u,onClick:c,title:n,children:b}):jsxRuntime.jsx("a",{href:e||"#",className:u,...m,title:n,onClick:i,children:b})};var b0={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 ai({variant:e="info",appearance:t="subtle",title:r,children:o,dismissible:n=false,onDismiss:a,primaryAction:i,secondaryAction:s,icon:c,hideIcon:l=false,className:m,testId:d}){let p=b0[e],u=p[t],b=p.icon,f=!!(i||s),g=!!(r||o);return jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("flex gap-3 rounded-sm border p-4",u.container,m),role:"region","aria-live":"polite","data-testid":d,children:[!l&&jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("flex-shrink-0",u.iconColor),"aria-hidden":"true",children:c||jsxRuntime.jsx(b,{className:"h-5 w-5"})}),jsxRuntime.jsxs("div",{className:"flex min-w-0 flex-1 flex-col gap-3",children:[g&&jsxRuntime.jsxs("div",{className:"flex-1",children:[r&&jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("text-sm font-semibold leading-5",u.titleColor),children:r}),o&&jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("text-sm leading-5",r?"mt-1":"",u.bodyColor),children:o})]}),f&&jsxRuntime.jsxs("div",{className:"flex flex-wrap items-center gap-3",children:[i&&(i.asLink?jsxRuntime.jsx(Me,{asButton:true,onPress:i.onPress,variant:t==="bold"?"unstyled":"default",className:t==="bold"?"text-white hover:text-white/80":"",children:i.label}):jsxRuntime.jsx(q,{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(Me,{asButton:true,onPress:s.onPress,variant:t==="bold"?"unstyled":"default",className:t==="bold"?"text-white hover:text-white/80":"",children:s.label}):jsxRuntime.jsx(q,{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",u.iconColor,ke()),"aria-label":"Dismiss banner",children:jsxRuntime.jsx(lucideReact.X,{className:"h-4 w-4"})})]})}function km({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(ai,{...o,className:a})})})}function ii(e){let{children:t,maxWidth:r=600,className:o,...n}=e,{ref:a,width:i}=Ho(),[s,c]=Ue__namespace.default.useState(false),[l,m]=Ue__namespace.default.useState(false),d=Ue__namespace.default.useRef(false),p=Ue__namespace.default.useMemo(()=>t&&!e.items&&typeof t!="function"?Ue__namespace.default.Children.toArray(t):null,[t,e.items]);if(Ue__namespace.default.useEffect(()=>{p&&p.length>=4&&i>0&&!d.current?(d.current=true,c(i>r),m(true)):(!p||p&&p.length<4)&&m(true);let u=setTimeout(()=>{l||m(true);},100);return ()=>clearTimeout(u)},[i,r,p,l]),p&&s&&p.length>=4){let u=p[0],b=p.slice(1,-2),f=p.slice(-2),g=b.map(h=>{if(Ue__namespace.default.isValidElement(h)){let y=h.props;if(typeof y.children=="string")return {label:y.children,href:y.href}}return {label:"..."}});return jsxRuntime.jsxs(reactAriaComponents.Breadcrumbs,{...n,ref:a,className:tailwindMerge.twMerge("flex gap-2",l?"opacity-100":"opacity-0",o),children:[u,jsxRuntime.jsx(y0,{items:g}),f]})}return jsxRuntime.jsx(reactAriaComponents.Breadcrumbs,{...n,ref:a,className:tailwindMerge.twMerge("flex gap-2",l?"opacity-100":"opacity-0",o),children:t})}function y0({items:e}){let t=e.map((r,o)=>({id:`breadcrumb-${o}`,name:r.label,href:r.href}));return jsxRuntime.jsx(reactAriaComponents.Breadcrumb,{className:"flex items-center gap-2",children:jsxRuntime.jsxs("span",{className:"flex items-center gap-2",children:[jsxRuntime.jsx(Fa,{items:t,align:"left",size:"sm",children:jsxRuntime.jsx(q,{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 si(e){let{className:t,children:r,href:o,...n}=e;return jsxRuntime.jsx(reactAriaComponents.Breadcrumb,{className:ce(t,"flex items-center gap-2"),...n,children:a=>{let i=a.isCurrent;return jsxRuntime.jsx(jsxRuntime.Fragment,{children:i?jsxRuntime.jsx("span",{className:"max-w-[200px] truncate font-semibold text-text-body sm:max-w-none",children:typeof r=="function"?r(a):r}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(Me,{variant:"muted",href:o,className:"max-w-[150px] truncate sm:max-w-[300px] md:max-w-none",children:typeof r=="function"?r(a):r}),jsxRuntime.jsx(lucideReact.ChevronRight,{className:"h-4 w-4 shrink-0 text-text-muted"})]})})}})}function R0({isSelected:e,isDisabled:t}){let r=[ke,"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 Xo({errorMessage:e,...t}){return jsxRuntime.jsxs(reactAriaComponents.Calendar,{...t,children:[jsxRuntime.jsx(li,{}),jsxRuntime.jsxs(reactAriaComponents.CalendarGrid,{className:"border-separate [border-spacing:0] [&_td]:p-0 [&_td]:!border-0",children:[jsxRuntime.jsx(ci,{}),jsxRuntime.jsx(reactAriaComponents.CalendarGridBody,{children:r=>jsxRuntime.jsx(reactAriaComponents.CalendarCell,{date:r,className:({isSelected:o,isDisabled:n})=>`${R0({isSelected:o,isDisabled:n})} border-0`})})]}),e&&jsxRuntime.jsx(reactAriaComponents.Text,{slot:"errorMessage",className:"text-sm text-red-600",children:e})]})}function li(){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(q,{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(q,{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 ci(){return jsxRuntime.jsx(reactAriaComponents.CalendarGridHeader,{children:e=>jsxRuntime.jsx(reactAriaComponents.CalendarHeaderCell,{className:"text-xs font-semibold text-text-caption",children:e})})}function ec(e){return jsxRuntime.jsxs(reactAriaComponents.CheckboxGroup,{...e,className:ce(e.className,"flex flex-col gap-2"),children:[jsxRuntime.jsx(ve,{children:e.label}),e.children,e.description&&jsxRuntime.jsx(de,{children:e.description}),jsxRuntime.jsx(oe,{children:typeof e.errorMessage=="function"?void 0:e.errorMessage})]})}function I0({isDisabled:e}){return `flex gap-2 items-center group text-sm transition ${e?"text-text-disabled":"text-text-caption"}`}function B0({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 c=n==="brand"?"action-brand":"action-default";s=`bg-${c} border-${c} hover:bg-${c}-hover hover:border-${c}-hover`;}else s="bg-background-input border-border-input hover:border-border-focus";return `${a} ${i} ${s}`}var Mm="w-4 h-4 text-text-onPrimary group-disabled:text-text-disabled";function oo(e){let{children:t,variant:r="default",...o}=e;return jsxRuntime.jsx(reactAriaComponents.Checkbox,{...o,className:reactAriaComponents.composeRenderProps(e.className,(n,a)=>`${I0(a)} ${n||""}`),children:n=>{let{isSelected:a,isIndeterminate:i,...s}=n,c=jsxRuntime.jsx("div",{className:B0({isSelected:a,isIndeterminate:i,variant:r,...s}),children:i?jsxRuntime.jsx(lucideReact.Minus,{"aria-hidden":true,className:Mm}):a?jsxRuntime.jsx(lucideReact.Check,{"aria-hidden":true,className:Mm}):null});return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[c,typeof t=="function"?t(n):t]})}})}var O0={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"},H0={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"},W0="opacity-75 cursor-not-allowed pointer-events-none";function Fm(e){let{variant:t,size:r,isDisabled:o,isClickable:n,className:a}=e;return tailwindMerge.twMerge("inline-flex items-center justify-center rounded-full font-medium transition-colors","whitespace-nowrap select-none",H0[r],he[r].text,O0[t],n&&!o&&"cursor-pointer",o&&W0,a)}function Fr({children:e,onRemove:t,size:r="md",variant:o="default",isRemovable:n=true,isDisabled:a=false,className:i,onClick:s}){let c=!!s&&!a,l=n&&t&&!a,m=u=>{u.stopPropagation(),u.preventDefault(),t&&!a&&t();},d=()=>{s&&!a&&s();},p=jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("span",{className:"truncate",children:e}),l&&jsxRuntime.jsx("button",{type:"button",onClick:m,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:r==="sm"?12:r==="md"?14:16,className:"text-current opacity-70 hover:opacity-100"})})]});return c?jsxRuntime.jsx("button",{type:"button",onClick:d,className:Fm({variant:o,size:r,isDisabled:a,isClickable:c,className:i}),disabled:a,children:p}):jsxRuntime.jsx("span",{className:Fm({variant:o,size:r,isDisabled:a,isClickable:c,className:i}),children:p})}var X0={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')},j0={github:()=>import('ace-builds/src-noconflict/theme-github'),github_dark:()=>import('ace-builds/src-noconflict/theme-github_dark')},Q0={"ext-language-tools":()=>import('ace-builds/src-noconflict/ext-language_tools')},Hn=new Set;async function tc(e,t){Hn.has(e)||(await t(),Hn.add(e));}async function $0(e,t,r){await Promise.all([tc(`language:${e}`,X0[e]),tc(`theme:${t}`,j0[t]),r?tc("extension:language-tools",Q0["ext-language-tools"]):void 0]);}function Im(e,t,r){let o=Hn.has(`language:${e}`)&&Hn.has(`theme:${t}`);return r?o&&Hn.has("extension:language-tools"):o}function Bm({value:e,readOnly:t=false,onChange:r,language:o="json",theme:n="github_dark",height:a,width:i="100%",className:s,lineHeight:c=19,minLines:l=3,maxLines:m=50,showLineNumbers:d=true,showGutter:p=true,fontSize:u=14,wrapEnabled:b=false}){let f=Ue.useRef(null),[g,h]=Ue.useState(()=>Im(o,n,!t)),y=Ue.useMemo(()=>{if(a)return a;let v=(e.match(/\n/g)||[]).length+1;return `${Math.max(l,Math.min(v,m))*c+10}px`},[e,a,c,l,m]);return Ue.useEffect(()=>{let v=false,x=!t;return Im(o,n,x)?(h(true),()=>{v=true;}):(h(false),$0(o,n,x).then(()=>{v||h(true);}).catch(C=>{v||h(true),console.error("Failed to load Ace editor resources",C);}),()=>{v=true;})},[o,t,n]),Ue.useEffect(()=>{g&&f.current?.editor&&f.current.editor.resize();},[y,g]),jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("overflow-hidden rounded-md border border-border-input",s),style:{width:i,height:y},children:g?jsxRuntime.jsx(Z0__default.default,{ref:f,mode:o,theme:n,value:e,onChange:r,readOnly:t,width:"100%",height:"100%",fontSize:u,showPrintMargin:false,showGutter:p,highlightActiveLine:!t,setOptions:{useWorker:true,showLineNumbers:d,tabSize:2,enableBasicAutocompletion:!t,enableLiveAutocompletion:!t,enableSnippets:!t,showFoldWidgets:true,wrap:b},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 Vm=Ue__namespace.createContext({variant:"contained",density:"comfortable",showDividers:true}),Om=Ue__namespace.createContext(null),ov={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"},zm={true:"divide-y divide-border-default",false:"gap-3"},nv={comfortable:"px-5 py-3",compact:"px-4 py-2.5"},av={comfortable:"px-5 pt-0",compact:"px-4 pt-0"},iv={comfortable:"h-5 w-5",compact:"h-4 w-4"};function ac(){return Ue__namespace.useContext(Vm)}function sv(e){let t=Ue__namespace.useContext(Om);if(!t)throw new Error(`${e} must be used within a <CollapseItem>`);return t}function lv({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 cv({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",c=t&&!e?"bg-background-hover":"",l=nv[r];return tailwindMerge.twMerge(i,ke(),l,s,c,o==="plain"&&n?"px-0":"",a)}function dv({density:e,showDividers:t,className:r}){let o="text-text-body",n=av[e];return tailwindMerge.twMerge(o,n,t?"":"rounded-b-lg",r)}function Hm({variant:e="contained",density:t="comfortable",showDividers:r=true,className:o,...n}){let a=Ue__namespace.useMemo(()=>({variant:e,density:t,showDividers:r}),[e,t,r]),i=tailwindMerge.twMerge("flex w-full flex-col",ov[e],r?zm.true:zm.false,e==="plain"&&r?"border-y border-border-default/60":"");return jsxRuntime.jsx(Vm.Provider,{value:a,children:jsxRuntime.jsx(reactAriaComponents.DisclosureGroup,{...n,className:ce(o,i)})})}function ic({className:e,children:t,...r}){let{variant:o,showDividers:n}=ac();return jsxRuntime.jsx(reactAriaComponents.Disclosure,{...r,className:reactAriaComponents.composeRenderProps(e,a=>lv({variant:o,showDividers:n,className:a})),children:a=>jsxRuntime.jsx(Om.Provider,{value:a,children:t})})}ic.displayName="CollapseItem";function sc({title:e,description:t,startContent:r,endContent:o,indicator:n,indicatorPosition:a="end",showIndicator:i=true,keepIndicatorSpace:s=false,children:c,className:l,...m}){let d=sv("CollapseHeader"),{density:p,variant:u,showDividers:b}=ac(),f=iv[p];return jsxRuntime.jsx(reactAriaComponents.Button,{...m,slot:"trigger","data-expanded":d.isExpanded?"true":void 0,className:reactAriaComponents.composeRenderProps(l,(g,h)=>cv({isDisabled:h.isDisabled??false,isPressed:h.isPressed??false,density:p,variant:u,showDividers:b,className:g})),children:g=>{let h=g.isDisabled??false,y=i?typeof n=="function"?n({isExpanded:d.isExpanded,isDisabled:h}):n??jsxRuntime.jsx(k,{name:"CaretDown",size:p==="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,v=y?jsxRuntime.jsx("span",{className:tailwindMerge.twMerge("flex flex-shrink-0 items-center justify-center text-text-muted",f),"aria-hidden":"true",children:y}):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"&&v,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:[c??jsxRuntime.jsxs("div",{className:"flex min-w-0 flex-1 flex-col gap-1 text-left",children:[e&&jsxRuntime.jsx("span",{className:"truncate font-medium text-text-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"&&v]})}})}sc.displayName="CollapseHeader";function lc({className:e,children:t,...r}){let{density:o,showDividers:n}=ac();return jsxRuntime.jsx(reactAriaComponents.DisclosurePanel,{...r,className:reactAriaComponents.composeRenderProps(e,a=>dv({density:o,showDividers:n,className:a})),children:t})}lc.displayName="CollapseContent";function jo(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 dc(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 fv({label:e,description:t,errorMessage:r,size:o="md",tooltip:n,isRequired:a,transparent:i,className:s,validationResult:c,value:l,defaultValue:m,onChange:d,placeholder:p="#000000",showColorSwatch:u=true,reserveErrorSpace:b=true,...f}){let[g,h]=Ue.useState(m||""),[y,v]=Ue.useState(l||m||""),[x,C]=Ue.useState(false),[S,N]=Ue.useState(null),{isFocused:T,handleFocus:w,handleBlur:F}=Qt(),E=l!==void 0?l:g;Ue.useEffect(()=>{l!==void 0&&v(l);},[l]);let A=E?!jo(E):false,J=Ue.useCallback(Y=>{if(v(Y),jo(Y)){let G=dc(Y);d?d(G):h(G);}else Y===""&&(d?d(""):h(""));},[d]),B=Ue.useCallback(Y=>{let G=dc(Y);v(G),d?d(G):h(G);},[d]),Z=Ue.useCallback(Y=>{if(jo(y)){let G=dc(y);v(G),d&&G!==E?d(G):!d&&G!==g&&h(G);}F(Y,f.onBlur);},[y,E,g,d,F,f.onBlur]);return jsxRuntime.jsx(reactAriaComponents.TextField,{...f,isRequired:a,className:ce(s,"group flex flex-col"),children:({isDisabled:Y})=>jsxRuntime.jsxs("div",{className:"flex flex-col",children:[e&&jsxRuntime.jsx(ve,{size:o,tooltip:n,isRequired:a,children:e}),jsxRuntime.jsx(ft,{children:jsxRuntime.jsxs("div",{className:"flex gap-2",children:[jsxRuntime.jsxs("div",{className:"flex-1 relative",children:[jsxRuntime.jsx(ti,{size:o,disabled:Y,type:"text",value:y,placeholder:p,onFocus:G=>w(G,f.onFocus),onBlur:Z,onChange:G=>J(G.target.value),className:tailwindMerge.twMerge(wt({isInvalid:A,isDisabled:Y,isFocused:T,size:o,transparent:i}),u?"pr-12":"pr-3","pl-3")}),u&&jsxRuntime.jsx("div",{className:"absolute right-3 top-1/2 -translate-y-1/2 pointer-events-none",style:{width:he[o].height},children:jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("w-6 h-6 rounded border shadow-sm",jo(E)?"border-border-default":"border-border-default bg-background-muted"),style:jo(E)?{backgroundColor:E}:void 0,"aria-hidden":"true",children:!jo(E)&&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(q,{variant:"secondary",size:o,icon:"Palette",onPress:()=>C(!x),isDisabled:Y,className:"flex-shrink-0",children:"Pick"})})]})}),b?jsxRuntime.jsx("div",{className:"mt-1 min-h-[20px]",children:typeof r=="string"?jsxRuntime.jsx(oe,{size:o,children:r}):typeof r=="function"&&c?jsxRuntime.jsx(oe,{size:o,children:r(c)}):t?jsxRuntime.jsx(de,{size:o,children:t}):null}):jsxRuntime.jsx(jsxRuntime.Fragment,{children:typeof r=="string"?jsxRuntime.jsx(oe,{size:o,className:"mt-1",children:r}):typeof r=="function"&&c?jsxRuntime.jsx(oe,{size:o,className:"mt-1",children:r(c)}):t?jsxRuntime.jsx(de,{size:o,className:"mt-1",children:t}):null}),x&&S&&jsxRuntime.jsx(We,{triggerRef:{current:S},isOpen:x,onOpenChange:C,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:E||"#000000",onChange:B,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:E||"#000000"}}),jsxRuntime.jsx("div",{className:"flex-1 text-text-body text-[length:var(--control-text-sm)] font-mono",children:E||"#000000"})]})]})})]})})}function Um({isOpen:e,onClose:t,onConfirm:r,title:o,message:n,confirmLabel:a="Confirm",cancelLabel:i="Cancel",confirmVariant:s,isDestructive:c=false,isLoading:l=false,maxWidth:m="500px",minWidth:d="400px"}){return jsxRuntime.jsx(qt,{isOpen:e,onClose:t,title:o,maxWidth:m,minWidth:d,primaryAction:{label:a,onPress:()=>{r();},variant:s??(c?"destructive":"primary"),isLoading:l},secondaryAction:{label:i,onPress:t,variant:"secondary",isDisabled:l},children:jsxRuntime.jsx("div",{className:"text-text-body",children:n})})}function Km({isConnected:e,connectedAt:t,disconnectedAt:r,showTimestamp:o=false,isLoading:n,size:a="sm",shape:i="pill",...s}){if(n)return jsxRuntime.jsx(R,{className:"inline-flex h-6 w-24"});let c=e?"Connected":"Disconnected",l=e?"success":"neutral",m=null;if(o){if(e&&t)m=Da(t);else if(!e&&r){let d=Da(r);m=d?`Offline ${d}`:null;}}return jsxRuntime.jsxs("div",{className:"inline-flex flex-col gap-1",children:[jsxRuntime.jsx(Oe,{variant:l,size:a,shape:i,dot:e,dotPulse:e,...s,children:c}),m&&jsxRuntime.jsx("span",{className:"text-xs text-text-muted",children:m})]})}function Ym({firstName:e,lastName:t,email:r,phone:o,avatarUrl:n,href:a,LinkComponent:i,variant:s="outlined",layout:c="horizontal",showEmail:l=true,showPhone:m=false,isLoading:d=false,className:p,contentClassName:u}){let b=`${e} ${t}`.trim(),f=({children:h,className:y})=>a?i?jsxRuntime.jsx(i,{href:a,className:y,children:h}):jsxRuntime.jsx(Me,{href:a,variant:"unstyled",className:tailwindMerge.twMerge("hover:underline",y),asButton:false,children:h}):jsxRuntime.jsx("span",{className:y,children:h}),g=c==="vertical";return d?jsxRuntime.jsx(ye,{variant:s,className:tailwindMerge.twMerge("flex flex-col",p),children:jsxRuntime.jsx(ye.Content,{className:"flex items-center flex-1",children:jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("w-full",g?"flex flex-col items-center gap-4":"flex items-center gap-4"),children:[jsxRuntime.jsx(R,{width:56,height:56,className:"rounded flex-shrink-0"}),jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge(g?"w-full text-center":"flex-1","space-y-2"),children:[jsxRuntime.jsx(R,{width:"70%",height:20,className:tailwindMerge.twMerge(g&&"mx-auto")}),jsxRuntime.jsx(R,{width:"100%",height:16,className:tailwindMerge.twMerge(g&&"mx-auto")})]})]})})}):jsxRuntime.jsx(ye,{variant:s,className:tailwindMerge.twMerge("group/card flex flex-col",p),children:jsxRuntime.jsx(ye.Content,{className:tailwindMerge.twMerge("flex items-center flex-1",a&&"cursor-pointer",u),children:jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("relative w-full",g?"flex flex-col items-center gap-4 text-center":"flex items-center gap-4"),children:[jsxRuntime.jsx(br,{firstName:e,lastName:t,src:n,size:"xl",variant:"user",shape:"square",className:"flex-shrink-0"}),jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge(g?"w-full":"flex-1 min-w-0"),children:[a&&jsxRuntime.jsx(f,{className:"after:absolute after:inset-0",children:jsxRuntime.jsx("span",{className:"sr-only",children:b})}),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",children:b}),jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("space-y-0.5",g&&"flex flex-col items-center"),children:[l&&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(Me,{href:`mailto:${r}`,variant:"unstyled",className:tailwindMerge.twMerge("text-sm leading-relaxed text-text-body relative z-20",g?"":"truncate"),children:r})]}),m&&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(Me,{href:`tel:${o}`,variant:"unstyled",className:tailwindMerge.twMerge("text-sm leading-relaxed text-text-body relative z-20",g?"":"truncate"),children:Wo(o)})]})]})]})]})})})}function ui({firstName:e,lastName:t,email:r,avatarUrl:o,layout:n="stacked",size:a="md",href:i,LinkComponent:s,linkVariant:c="unstyled",emphasis:l="normal",showEmail:m=false,isLoading:d=false,className:p}){let b={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],f=`${e} ${t}`.trim(),h={strong:"font-semibold text-text-body",high:"font-semibold text-text-body",normal:"text-text-body",low:"text-text-muted"}[l],y=({children:v,className:x})=>i?s?jsxRuntime.jsx(s,{href:i,className:x,children:v}):jsxRuntime.jsx(Me,{href:i,variant:c,className:tailwindMerge.twMerge("hover:underline",x),asButton:false,children:v}):jsxRuntime.jsx("span",{className:x,children:v});return d?n==="inline"?jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("flex items-center",b.gap,p),children:[jsxRuntime.jsx(R,{width:b.skeletonAvatar,height:b.skeletonAvatar,className:"flex-shrink-0 rounded-full"}),jsxRuntime.jsx(R,{width:b.skeletonText,height:b.skeletonAvatar*.5})]}):jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("flex items-center",b.gap,p),children:[jsxRuntime.jsx(R,{width:b.skeletonAvatar,height:b.skeletonAvatar,className:"flex-shrink-0 rounded-full"}),jsxRuntime.jsxs("div",{className:"flex flex-col gap-1",children:[jsxRuntime.jsx(R,{width:b.skeletonText,height:16}),m&&jsxRuntime.jsx(R,{width:b.skeletonSecondary,height:12})]})]}):n==="inline"?jsxRuntime.jsxs(y,{className:tailwindMerge.twMerge("flex items-center",b.gap,i&&"hover:bg-background-hover transition-colors",p),children:[jsxRuntime.jsx(br,{firstName:e,lastName:t,src:o,size:b.avatarSize,variant:"user",shape:"circle",className:"flex-shrink-0"}),jsxRuntime.jsx("span",{className:tailwindMerge.twMerge("leading-normal truncate hover:text-text-body",h,b.textSize,i&&"hover:underline hover:decoration-1 hover:underline-offset-4"),children:f})]}):jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("flex items-center justify-start",b.gap,p),children:[jsxRuntime.jsx(br,{firstName:e,lastName:t,src:o,size:b.avatarSize,variant:"user",shape:"square",className:"flex-shrink-0"}),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",h,b.textSize,i&&"hover:underline hover:decoration-1 hover:underline-offset-4"),children:f}),m&&r&&jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("text-text-caption leading-normal truncate",b.secondaryTextSize),children:r})]})]})}var Cv=({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 Gn({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)=>Cv({...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 mi({value:e,children:t,className:r,size:o="sm",iconPosition:n="right"}){let[a,i]=Ue.useState(false),l=jsxRuntime.jsx(q,{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})}),m=a?jsxRuntime.jsx(Gn,{content:"Copied!",children:l}):l;return jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("inline-flex items-center gap-0.5",r),children:[n==="left"&&m,t,n==="right"&&m]})}var Zm={duration:.5,ease:"easeInOut"},$o=Ue.createContext(null),xr=()=>{let e=Ue.useContext($o);if(!e)throw new Error("useChartContext must be used within a ChartContextProvider");return e};var Un=({data:e,color:t="var(--color-viz-default)"})=>{let r=Ue.useId(),o=Ue.useId(),{xScale:n,yScale:a,animationSettings:i}=xr(),s=n.range(),c=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:c[1],width:s[1]-s[0],height:c[0]-c[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 ${c[0]}px`,transformBox:"fill-box",isolation:"isolate"},children:[jsxRuntime.jsx(shape.AreaClosed,{data:e,x:l=>n(l.xValue),y:l=>a(l.yValue),yScale:a,fill:`url(#${r})`,curve:curve.curveLinear}),jsxRuntime.jsx(shape.LinePath,{data:e,x:l=>n(l.xValue),y:l=>a(l.yValue),stroke:t,strokeWidth:3,curve:curve.curveLinear})]})})]})};var en=({data:e,color:t="var(--color-viz-default)",opacity:r=1,categoryColors:o={}})=>{let{xScale:n,yScale:a,animationSettings:i}=xr(),s=Ue.useId(),c=n.range(),l=a.range(),m=[...e].sort((u,b)=>u.xValue.getTime()-b.xValue.getTime()),d=m.length>1?m[1].xValue.getTime()-m[0].xValue.getTime():15*6e4,p=Math.abs(n(new Date(m[0].xValue.getTime()+d))-n(m[0].xValue));return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("defs",{children:jsxRuntime.jsx("clipPath",{id:s,children:jsxRuntime.jsx("rect",{x:c[0],y:l[1],width:c[1]-c[0],height:l[0]-l[1]})})}),jsxRuntime.jsx("g",{clipPath:`url(#${s})`,children:jsxRuntime.jsx(framerMotion.motion.g,{initial:{scaleY:0},animate:{scaleY:1},transition:{duration:i.duration,ease:i.ease},style:{transformOrigin:`0 ${l[0]}px`,transformBox:"fill-box",isolation:"isolate"},children:m.map((u,b)=>{let f=n(u.xValue),g=a(u.yValue),h=l[0]-g,y=m[b+1],v=y?Math.abs(n(y.xValue)-f):p,x=u.category&&o[u.category]?o[u.category]:t;return jsxRuntime.jsx(shape.Bar,{x:f-v/2,y:g,width:v,height:h,fill:x,opacity:r,rx:1},u.xValue.getTime())})})})]})};var ze={top:0,right:0,bottom:50,left:60};function Br(e={type:"number"}){let t=i=>{if(i==null)return "-";let s=Yt({value:i,formatter:e});if(s===null)return "-";if(typeof s=="string")return s;if(typeof s=="number")return s.toString();if(typeof s=="object"&&s!==null&&"props"in s){let c=m=>{if(m==null)return "";if(typeof m=="string")return m;if(typeof m=="number")return m.toString();if(typeof m=="object"&&"props"in m){let d=m.props;if(d?.children)return Array.isArray(d.children)?d.children.map(c).join(""):c(d.children)}return ""};return c(s)||i.toString()}return i.toString()},r=i=>{if(i==null)return "-";if(typeof e=="string"){let s=Yt({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;if(typeof e=="object"&&e.type)switch(e.type){case "number":"min"in e&&(o=e.min),"max"in e&&(n=e.max);break}return {format:t,tickFormat:r,min:o,max:n,tickInterval:a}}var fc=(e,t)=>{let r=d3Array.extent(e,o=>o.xValue);return scale.scaleTime({range:[ze.left,t-ze.right],domain:r,nice:true})},gc=(e,t,r)=>{let o=Br(r),n=d3Array.min(e,c=>c.yValue)||0,a=d3Array.max(e,c=>c.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-ze.bottom,ze.top],domain:[i,s],nice:true})};var Wv=({top:e,scale:t,width:r})=>{let o=t.domain(),n=Tu({start:o[0],end:o[1]});return jsxRuntime.jsx(axis.Axis,{orientation:"bottom",top:e,scale:t,numTicks:Math.min(6,Math.floor(r/100)),tickFormat:a=>n(a),stroke:"var(--color-border-muted)",tickStroke:"var(--color-border-muted)",tickLabelProps:(a,i,s)=>({fill:"var(--color-text-caption)",fontSize:12,textAnchor:i===0?"start":i===s.length-1?"end":"middle"})})},Gv=({left:e,scale:t,yFormatter:r})=>{let o=Br(r);return jsxRuntime.jsx(axis.Axis,{orientation:"left",left:e,scale:t,numTicks:5,tickFormat:n=>(o.tickFormat||o.format)(n),stroke:"var(--color-border-muted)",tickStroke:"var(--color-border-muted)",tickLabelProps:()=>({fill:"var(--color-text-caption)",fontSize:12,textAnchor:"end",dy:"0.33em"})})},Kn={Bottom:Wv,Left:Gv};var $m=({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})]}),Yv=({items:e})=>e.length===0?null:jsxRuntime.jsx("div",{className:"flex items-center gap-3 flex-wrap",children:e.map(t=>jsxRuntime.jsx($m,{item:t},t.category))}),fi=({items:e,onExport:t,marginLeft:r=0,marginRight:o=0,isZoomed:n=false,onResetZoom:a})=>{let[i,s]=Ue__namespace.default.useState(false),[c,l]=Ue__namespace.default.useState(null),[m,d]=Ue__namespace.default.useState(false),[p,u]=Ue__namespace.default.useState(false),b=Ue__namespace.default.useCallback(async g=>{s(true),l(g),u(false);try{await t(g);}catch(h){console.error("Export failed:",h);}finally{s(false),l(null);}},[t]),f=Ue__namespace.default.useCallback(async g=>{await b(g);},[b]);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(Yv,{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(Zt,{isOpen:m,onClose:()=>d(false),title:"Legend",children:jsxRuntime.jsx("div",{className:"grid grid-cols-1 gap-3 p-4",children:e.map(g=>jsxRuntime.jsx($m,{item:g},g.category))})})]})}),jsxRuntime.jsxs("div",{className:"sm:hidden flex items-center gap-2 shrink-0",children:[n&&a&&jsxRuntime.jsx(q,{variant:"secondary",size:"sm",onPress:a,children:jsxRuntime.jsx(k,{name:"ArrowsOut",size:16})}),jsxRuntime.jsx(q,{variant:"secondary",size:"sm",onPress:()=>u(true),isDisabled:i,children:jsxRuntime.jsx(k,{name:"Export",size:16})}),jsxRuntime.jsx(Zt,{isOpen:p,onClose:()=>u(false),title:"Export Chart",contentPadding:false,children:jsxRuntime.jsxs("div",{className:"flex flex-col",children:[jsxRuntime.jsxs("button",{onClick:()=>b("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:c==="csv"?"Exporting...":"Export as CSV"})]}),jsxRuntime.jsxs("button",{onClick:()=>b("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:c==="svg"?"Exporting...":"Export as SVG"})]}),jsxRuntime.jsxs("button",{onClick:()=>b("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:c==="png"?"Exporting...":"Export as PNG"})]})]})})]}),jsxRuntime.jsxs("div",{className:"hidden sm:flex items-center gap-2 shrink-0",children:[n&&a&&jsxRuntime.jsxs(q,{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(q,{variant:"secondary",size:"sm",isDisabled:i,children:[jsxRuntime.jsx(k,{name:"Export",size:16}),i?"Exporting...":"Export"]}),jsxRuntime.jsx(We,{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}),c==="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}),c==="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}),c==="png"?"Exporting...":"Export as PNG"]})})]})})]})]})]})};function Zv(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 _m(e,t=12,r="system-ui"){return e.length===0?0:Math.max(...e.map(o=>Zv(o,t,r)))}var xc=({data:e,seriesMetadata:t,width:r,height:o,onBrushChange:n,brushRegion:a,margin:i=ze})=>{let s=Ue.useRef(null),c=Ue.useRef(false),l=Ue.useMemo(()=>e.flat(),[e]),m=Ue.useMemo(()=>({top:10,bottom:15,left:i.left,right:i.right}),[i]),d=r-m.left-m.right,p=Ue.useMemo(()=>{if(l.length===0)return scale.scaleTime({domain:[new Date,new Date],range:[0,d]});let h=new Date(Math.min(...l.map(v=>v.xValue.getTime()))),y=new Date(Math.max(...l.map(v=>v.xValue.getTime())));return scale.scaleTime({domain:[h,y],range:[0,d]})},[l,d]),u=Ue.useMemo(()=>{let h=l.length>0?Math.max(0,...l.map(y=>y.yValue)):1;return scale.scaleLinear({domain:[0,h],range:[o-m.bottom,m.top]})},[l,o]),b=h=>{if(c.current)return;if(!h){n(null);return}let{x0:y,x1:v}=h;if(y===v)return;let x=new Date(y),C=new Date(v);if(!(Number.isNaN(x.getTime())||Number.isNaN(C.getTime()))){if(l.length>0){let S=Math.min(...l.map(E=>E.xValue.getTime())),N=Math.max(...l.map(E=>E.xValue.getTime())),w=(N-S)*.05;if(Math.abs(x.getTime()-S)<w&&Math.abs(C.getTime()-N)<w){n(null);return}}n([x,C]);}},f=Ue.useMemo(()=>{if(l.length!==0)return {start:{x:0,y:m.top},end:{x:d,y:o-m.bottom}}},[d,o,l]);Ue.useEffect(()=>{if(!s.current||l.length===0)return;let h=s.current.state;if(h?.isBrushing||h?.activeHandle)return;let y=Math.min(...l.map(T=>T.xValue.getTime())),v=Math.max(...l.map(T=>T.xValue.getTime())),x=a?a[0]:new Date(y),C=a?a[1]:new Date(v),S=s.current.state?.extent;if(S){let T=p.invert(S.x0),w=p.invert(S.x1),F=Math.abs(T.getTime()-x.getTime()),E=Math.abs(w.getTime()-C.getTime());if(F<1e3&&E<1e3)return}c.current=true;let N=T=>{let w=s.current.getExtent({x:p(x),y:m.top},{x:p(C),y:o-m.bottom});return {...T,start:{y:w.y0,x:w.x0},end:{y:w.y1,x:w.x1},extent:w}};s.current.updateBrush(N),setTimeout(()=>{c.current=false;},50);},[a,p,o,l]);let g={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(${m.left}, 0)`,children:[e.map((h,y)=>jsxRuntime.jsx(shape.LinePath,{data:h,x:v=>p(v.xValue),y:v=>u(v.yValue),stroke:t[y]?.color||"var(--color-gray-500)",strokeWidth:1.5,opacity:.8},`brush-series-${y}`)),jsxRuntime.jsx(brush.Brush,{xScale:p,yScale:u,width:d,height:o-m.top-m.bottom,margin:{top:m.top,bottom:m.bottom,left:0,right:0},handleSize:8,innerRef:s,resizeTriggerAreas:["left","right"],brushDirection:"horizontal",initialBrushPosition:f,onChange:b,onClick:()=>n(null),selectedBoxStyle:g,useWindowMoveEvents:true})]})]})})};function np(e){switch(e){case "command":return je("--color-action-primary","#3b82f6");case "success":return je("--color-feedback-success","#10b981");case "warning":return je("--color-feedback-warning","#f59e0b");case "error":return je("--color-feedback-error","#ef4444");case "alert":return je("--color-feedback-warning","#f59e0b");case "info":default:return je("--color-action-secondary","#6b7280")}}function bi({events:e,color:t,showLabels:r=false}){let o=Ue.useContext($o),[n,a]=Ue.useState(null);if(!o)return console.warn("ChartEventMarkers must be used within a ChartContainer"),null;let{xScale:i,yScale:s,height:c,tooltip:l,datasets:m,seriesMetadata:d,seriesTypes:p,categoryColors:u}=o,b=e.filter(h=>{let y=i(h.timestamp);return y>=ze.left&&y<=i.range()[1]}),f=Ue.useCallback((h,y)=>{a(y);let v=i(h.timestamp),x=v>(i.range()[1]-ze.right-ze.left)/2+ze.left,C=[];m&&d&&m.forEach((S,N)=>{if(S.length===0)return;let T=d3Array.bisector(J=>J.xValue).left,w=T(S,h.timestamp),F=S[w-1],E=S[w],A;if(!F)A=E;else if(!E)A=F;else {let J=Math.abs(h.timestamp.getTime()-F.xValue.getTime()),B=Math.abs(h.timestamp.getTime()-E.xValue.getTime());A=J<B?F:E;}A&&d[N]&&C.push({label:d[N].label,value:A.yValue,color:d[N].color,type:p?.[N]||"line",...A.category&&{category:A.category,categoryColor:u?.[A.category]}});}),C.push({label:h.label,value:0,color:t||np(h.type),type:"event"}),l.show({xValue:h.timestamp,series:C,x:v,y:C.length>1&&typeof C[0].value=="number"?s(C[0].value):c/2,position:x?"left":"right",isEvent:true,eventMetadata:h.metadata});},[i,s,c,l,t,m,d,p,u]),g=Ue.useCallback(()=>{a(null),l.hide();},[l]);return b.length===0?null:jsxRuntime.jsx("g",{className:"chart-event-markers","data-testid":"chart-event-markers",children:b.map((h,y)=>{let v=i(h.timestamp),x=t||np(h.type),C=n===y;return jsxRuntime.jsxs("g",{children:[jsxRuntime.jsx("line",{x1:v,y1:ze.top,x2:v,y2:c-ze.bottom,stroke:x,strokeWidth:C?3:2,strokeDasharray:"4 4",strokeOpacity:C?.9:.6,pointerEvents:"none"}),jsxRuntime.jsx("circle",{cx:v,cy:ze.top,r:C?5:4,fill:x,stroke:"var(--color-background-surface)",strokeWidth:2,pointerEvents:"none"}),jsxRuntime.jsx("circle",{cx:v,cy:c-ze.bottom,r:C?5:4,fill:x,stroke:"var(--color-background-surface)",strokeWidth:2,pointerEvents:"none"}),r&&jsxRuntime.jsx("text",{x:v,y:ze.top-8,textAnchor:"middle",fill:"var(--color-text-caption)",fontSize:11,fontWeight:500,pointerEvents:"none",children:h.label}),jsxRuntime.jsx("rect",{x:v-10,y:ze.top,width:20,height:c-ze.top-ze.bottom,fill:"transparent",style:{cursor:"pointer"},onMouseEnter:()=>f(h,y),onMouseLeave:g})]},`${h.timestamp.getTime()}-${y}`)})})}var xi=({data:e,formatter:t})=>{if(!e)return null;let{categoryLabels:r,xScale:o}=xr(),n=Br(t),a=Ue__namespace.default.useRef(null),[i,s]=Ue__namespace.default.useState({x:0,y:0,translate:"translate(-50%, -100%)"});Ue__namespace.default.useEffect(()=>{if(!a.current)return;let p=a.current.getBoundingClientRect(),u=window.innerHeight,b=window.innerWidth,f=e.x,g=e.y,h=e.position==="left"?"translate(calc(-100% - 16px), -50%)":"translate(16px, -50%)";e.position==="left"&&f-p.width-16<0?h="translate(16px, -50%)":e.position==="right"&&f+p.width+16>b&&(h="translate(calc(-100% - 16px), -50%)"),g-p.height/2<0?g=p.height/2:g+p.height/2>u&&(g=u-p.height/2),s({x:f,y:g,translate:h});},[e.x,e.y,e.position]);let c=o.domain(),m=c.length===2&&c.every(d=>d instanceof Date)?ku({start:c[0],end:c[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:m(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(([p,u])=>jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[jsxRuntime.jsxs("span",{className:"capitalize",children:[p,":"]}),jsxRuntime.jsx("span",{className:"font-medium",children:u})]},p))})]})})()]}):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 Jn=({data:e,color:t="var(--color-viz-default)",strokeWidth:r=3,strokeDasharray:o})=>{let{xScale:n,yScale:a,animationSettings:i}=xr(),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:c=>n(c.xValue),y:c=>a(c.yValue),stroke:t,strokeWidth:r,strokeDasharray:o,strokeLinecap:"round",curve:curve.curveLinear})})};var cp=e=>e.type===Un||e.type===Jn||e.type===en,gC=e=>e.type===bi,bC=d3Array.bisector(e=>e.xValue).left,xC=()=>jsxRuntime.jsx("div",{className:"flex h-full items-center justify-center",children:jsxRuntime.jsx("p",{className:"text-gray-500",children:"No data available"})}),hC=()=>jsxRuntime.jsxs("div",{className:"flex h-full flex-col gap-4 p-4",children:[jsxRuntime.jsx(R,{className:"h-full w-full"}),jsxRuntime.jsxs("div",{className:"flex gap-4",children:[jsxRuntime.jsx(R,{className:"h-4 w-24"}),jsxRuntime.jsx(R,{className:"h-4 w-24"})]})]}),yC=({parentWidth:e,parentHeight:t,yFormatter:r={type:"number"},isLoading:o=false,enableZoom:n=false,enableBrush:a=false,brushHeight:i=60,onZoomChange:s,children:c})=>{let[l,m]=Ue.useState(null),[d,p]=Ue.useState(null),u=Ue.useRef(null),b=Ue.useRef(0),f=Ue.useRef(""),g=Ue.useRef(null),{colorMode:h}=mt(),y=Ue.useMemo(()=>Tn(),[h]),v=Ue.useMemo(()=>_s(),[h]),{datasets:x,seriesMetadata:C,categoryInfo:S,categoryColors:N,categoryLabels:T,hasBarSeries:w,firstBarSeriesIndex:F,seriesTypes:E}=Ue.useMemo(()=>{let pe=Ue.Children.toArray(c).filter(le=>Ue.isValidElement(le)&&cp(le)),Ae=pe.filter(le=>le.props.data).length,we=pe.some(le=>le.type===en),Ce=[],Ke=[],H=[],P=null,_=null,ie=null;pe.forEach((le,Pe)=>{let be=le.props;if(!be.data)return;Ce.push(be.data);let et=("color"in be&&be.color?be.color:void 0)||(Ae===1?v:y[Pe%y.length]);Ke.push({label:"label"in be&&be.label||`Series ${Ce.length}`,color:et});let Tr=le.type===Un?"area":le.type===Jn?"line":"bar";H.push(Tr),"categoryColors"in be&&be.categoryColors&&(P=be.categoryColors),"categoryLabels"in be&&be.categoryLabels&&(_=be.categoryLabels),le.type===en&&ie===null&&(ie=Ce.length-1);});let re=null;if(P){let le=new Set;Ce.forEach(Pe=>{Pe.forEach(be=>{be.category&&le.add(be.category);});}),re=Array.from(le).map(Pe=>({label:_?.[Pe]||Pe,color:P[Pe]||"#6b7280"}));}return {datasets:Ce,seriesMetadata:Ke,categoryInfo:re,categoryColors:P,categoryLabels:_,hasBarSeries:we,firstBarSeriesIndex:ie,seriesTypes:H}},[c,v,y,h]),A=e,J=a?i+8:0,B=t-60-24-J,Z=Math.max(100,B),Y=Ue.useMemo(()=>x.flat(),[x]),G=Ue.useMemo(()=>{if(Y.length===0)return null;let X=[...Y].sort((pe,Ae)=>pe.xValue.getTime()-Ae.xValue.getTime());return [X[0].xValue,X[X.length-1].xValue]},[Y]),M=d||G,j=Ue.useMemo(()=>M?x.map(pe=>pe.filter(Ae=>Ae.xValue>=M[0]&&Ae.xValue<=M[1])):x,[x,M]);Ue.useEffect(()=>{s&&s(d);},[d,s]);let V=Ue.useMemo(()=>j.flat(),[j]),U=Ue.useMemo(()=>gc(V,Z,r),[V,Z,r]),z=Ue.useMemo(()=>{let X=Br(r),pe=X.tickFormat||X.format,we=U.ticks(5).map(H=>pe(H)),Ce=_m(we,12,"system-ui"),Ke=Math.ceil(Ce)+16;return {...ze,left:Math.max(Ke,30)}},[U,r]),I=Ue.useMemo(()=>M?scale.scaleTime({domain:M,range:[z.left,A-z.right]}):fc(Y,A),[M,Y,A,z]),O=Ue.useCallback(X=>{if(!G)return;let{scaleX:pe,translateX:Ae}=X,we=A-z.left-z.right,[Ce,Ke]=G,H=Ke.getTime()-Ce.getTime();if(H<=0){p(null);return}let P=-Ae,_=P+we,ie=we*pe/H,re=P/ie,le=_/ie,Pe=new Date(Ce.getTime()+re),be=new Date(Ce.getTime()+le),zo=Math.abs(Pe.getTime()-Ce.getTime()),et=Math.abs(be.getTime()-Ke.getTime()),Tr=H*.02;zo<Tr&&et<Tr?p(null):p([Pe,be]);},[G,A,z]),K=Ue.useCallback(X=>{let{left:pe}=u.current?.getBoundingClientRect()||{left:0},Ae=X.clientX-pe;if(X.timeStamp-(b.current||0)<16)return;b.current=X.timeStamp;let we=I.invert(Ae),Ce=x.map((P,_)=>{if(!P||P.length===0)return null;let ie=bC(P,we,1);if(ie===0)return {point:P[0],datasetIndex:_};if(ie>=P.length)return {point:P[P.length-1],datasetIndex:_};let re=P[ie-1],le=P[ie];if(!re||!le)return null;let Pe=Math.abs(re.xValue.getTime()-we.getTime()),be=Math.abs(le.xValue.getTime()-we.getTime());return {point:Pe<be?re:le,datasetIndex:_}}).filter(P=>P!==null&&C[P.datasetIndex]!==void 0).map(({point:P,datasetIndex:_})=>({label:C[_].label,value:P.yValue,color:C[_].color,point:P,type:E[_]}));if(Ce.length===0){m(null);return}let Ke=I(Ce[0].point.xValue),H=Ke>(A-z.right-z.left)/2+z.left;m({xValue:Ce[0].point.xValue,series:Ce.map(({label:P,value:_,color:ie,point:re,type:le})=>({label:P,value:_,color:ie,type:le,category:re.category,categoryColor:re.category&&N?N[re.category]:void 0})),x:Ke,y:U(Ce[0].value),position:H?"left":"right"});},[x,j,C,E,I,U,A,N,z]),L=()=>{m(null);},W=Ue.useCallback(()=>{p(null),g.current&&g.current.reset();},[]),D=Ue.useCallback(X=>{if(p(X),g.current&&G){let[pe,Ae]=G,we=Ae.getTime()-pe.getTime();if(we<=0){g.current.reset();return}if(!X)g.current.reset();else {let[Ce,Ke]=X,H=Ke.getTime()-Ce.getTime();if(H<=0){g.current.reset();return}let P=we/H,_=A-z.left-z.right,re=-((Ce.getTime()-pe.getTime())/we)*_*P;g.current.setTransformMatrix({scaleX:P,scaleY:1,translateX:re,translateY:0,skewX:0,skewY:0});}}},[G,A,z]),$={width:A,height:Z,xScale:I,yScale:U,yFormatter:r,animationSettings:Zm,tooltip:{data:l,show:m,hide:()=>m(null)},datasets:j,seriesMetadata:C,seriesTypes:E,categoryColors:N||void 0,categoryLabels:T||void 0},ne=Ue.Children.toArray(c),Ne=0,Le=[],Re=[];ne.forEach(X=>{if(!Ue.isValidElement(X)){Le.push(X);return}if(gC(X))Re.push(X);else if(cp(X)){let pe=Ne;Ne++;let Ae=X.props;Le.push(Ue__namespace.default.cloneElement(X,{...Ae,data:j[pe]||Ae.data,color:C[pe]?.color}));}else Le.push(X);});let kr=(S||C).map(X=>({category:X.label,fill:X.color})),Ut=Sd({datasets:x,metadata:{xLabel:"Date",yLabel:"Value",seriesLabels:C.map(X=>X.label),timestamp:true},svgRef:u});if(o)return jsxRuntime.jsx(hC,{});if(x.length===0)return jsxRuntime.jsx(xC,{});let Bo=jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("title",{children:"Data chart visualization"}),jsxRuntime.jsx("g",{children:U.ticks(5).map(X=>jsxRuntime.jsx(shape.Line,{from:{x:z.left,y:U(X)},to:{x:A-z.right,y:U(X)},stroke:"var(--color-border-muted)",strokeWidth:1},`grid-line-${X}`))}),Le,jsxRuntime.jsx(Kn.Bottom,{top:Z-z.bottom,scale:I,width:A-z.left-z.right}),jsxRuntime.jsx(Kn.Left,{left:z.left,scale:U,yFormatter:r}),l&&!l.isEvent&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[w&&F!==null?(()=>{let X=j[F]??[];if(X.length===0)return null;let pe=[...X].sort((ie,re)=>ie.xValue.getTime()-re.xValue.getTime()),Ae=pe.findIndex(ie=>ie.xValue.getTime()===l.xValue.getTime()),we=pe[Ae+1],Ce=pe.length>1&&we?we.xValue.getTime()-l.xValue.getTime():15*6e4,Ke=Math.abs(I(new Date(l.xValue.getTime()+Ce))-I(l.xValue)),P=I(l.xValue)-Ke/2,_=U.range();return jsxRuntime.jsx("rect",{x:P,y:_[1],width:Ke,height:_[0]-_[1],className:"fill-background-muted",opacity:.5,pointerEvents:"none",style:{transition:"all 100ms ease-out"}})})():null,l.series.filter(X=>X.type!=="bar").map(X=>jsxRuntime.jsxs("g",{children:[jsxRuntime.jsx("circle",{cx:I(l.xValue),cy:U(X.value),r:8,fill:"white",stroke:X.color,strokeWidth:2,style:{transition:"all 100ms ease-out"}}),jsxRuntime.jsx("circle",{cx:I(l.xValue),cy:U(X.value),r:4,fill:X.color,style:{transition:"all 100ms ease-out"}})]},`highlight-${X.label}`))]}),jsxRuntime.jsx("rect",{x:z.left,y:z.top,width:A-z.left-z.right,height:Z-z.top-z.bottom,fill:"transparent",style:{cursor:n?"grab":"crosshair"},onMouseMove:K,onMouseLeave:L}),Re]});return jsxRuntime.jsx("div",{className:"relative flex h-full flex-col pb-6",children:jsxRuntime.jsxs($o.Provider,{value:$,children:[n?jsxRuntime.jsx(zoom.Zoom,{width:A,height:Z,scaleXMin:1,scaleXMax:20,scaleYMin:1,scaleYMax:1,constrain:X=>{let{scaleX:pe,translateX:Ae}=X,we=Math.max(1,Math.min(20,pe)),Ce=1,Ke=A-z.left-z.right,H=0,P=Ke*(1-we),_=Math.max(P,Math.min(H,Ae));return {...X,scaleX:we,scaleY:Ce,translateX:_,translateY:0}},children:X=>{if(g.current=X,X.transformMatrix){let{scaleX:pe,translateX:Ae}=X.transformMatrix,we=`${pe.toFixed(4)}-${Ae.toFixed(2)}`;we!==f.current&&(f.current=we,setTimeout(()=>{O(X.transformMatrix);},0));}return jsxRuntime.jsx("svg",{width:A,height:Z,className:"overflow-visible",ref:pe=>{u.current=pe,X.containerRef.current!==pe&&(X.containerRef.current=pe);},role:"img","aria-label":"Data chart",style:{cursor:X.isDragging?"grabbing":"grab",touchAction:"none"},onMouseDown:X.dragStart,onMouseMove:X.dragMove,onMouseUp:X.dragEnd,onMouseLeave:()=>{X.isDragging&&X.dragEnd();},onTouchStart:X.dragStart,onTouchMove:X.dragMove,onTouchEnd:X.dragEnd,children:Bo})}}):jsxRuntime.jsx("svg",{width:A,height:Z,className:"overflow-visible",ref:u,role:"img","aria-label":"Data chart",children:Bo}),jsxRuntime.jsx(xi,{data:l,formatter:r}),a&&G&&jsxRuntime.jsx(xc,{data:x,seriesMetadata:C,width:A,height:i,onBrushChange:D,brushRegion:d,margin:z}),jsxRuntime.jsx(fi,{onExport:Ut,items:kr,marginLeft:z.left,marginRight:z.right,isZoomed:d!==null,onResetZoom:W})]})})},up=responsive.withParentSize(yC);var kC=e=>e.toLocaleString(),TC=e=>`${Math.round(e*100)}%`,gp=({data:e,width:t=800,height:r=400,padding:o=0,barGap:n=30,formatValue:a=kC,formatPercentage:i=TC,color:s,showScale:c=true,showOverallConversion:l=true,overallConversionLabel:m="Overall Conversion:",activeStageId:d,onStageClick:p,onStageHover:u,className:b,style:f,"aria-label":g="Funnel chart"})=>{let[h,y]=Ue.useState(null),[v,x]=Ue.useState(t),C=Ue.useRef(null),S=d??h,N=Ue.useId(),T=s||"var(--color-viz-default)";Ue.useEffect(()=>{if(!C.current)return;let B=new ResizeObserver(Z=>{for(let Y of Z)x(Y.contentRect.width);});return B.observe(C.current),()=>{B.disconnect();}},[]);let{layout:w,overallConversion:F}=Ue.useMemo(()=>{if(e.length===0)return {layout:[],overallConversion:0};let B=e[0].value,Z=l?60:0,Y=r-o*2-Z,G=(e.length-1)*n,M=(Y-G)/e.length,j=e.map((U,z)=>{let I=o+Z+z*(M+n),O=B===0?0:U.value/B,K=O,L=z===0?null:e[z-1].value,W=L==null||L===0?0:1-U.value/L;return {stage:U,index:z,y:I,barHeight:M,widthPercent:O,conversionRate:K,dropOff:W}}),V=B===0?0:e[e.length-1].value/B;return {layout:j,overallConversion:V,maxValue:B}},[e,v,r,o,n,c,l]);if(e.length===0)return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("flex h-full min-h-[280px] w-full items-center justify-center rounded-lg border border-dashed border-gray-300 bg-background-surface text-sm font-medium text-text-muted dark:border-gray-700",b),style:{width:t,height:r,...f},children:"No funnel data available"});let E=c?60:0,A=o+E,J=v-o*2-E;return jsxRuntime.jsx("div",{ref:C,className:tailwindMerge.twMerge("relative w-full overflow-hidden rounded-lg bg-background-surface",b),style:{height:r,...f},"aria-label":g,role:"img",children:jsxRuntime.jsxs("svg",{width:"100%",height:r,className:"relative",children:[jsxRuntime.jsxs("defs",{children:[jsxRuntime.jsx(gradient.LinearGradient,{id:`${N}-bar`,from:T,to:T,toOpacity:.85}),jsxRuntime.jsx(gradient.LinearGradient,{id:`${N}-bg`,from:T,to:T,fromOpacity:.01,toOpacity:.15,x1:"0",y1:"0",x2:"1",y2:"0"})]}),l&&jsxRuntime.jsxs("text",{x:A,y:o+20,className:"fill-text-body text-sm font-medium",children:[jsxRuntime.jsx("tspan",{className:"fill-text-muted",children:m})," ",i(F)]}),c&&jsxRuntime.jsx("g",{children:w.map(B=>{let Z=B.y+B.barHeight/2;return jsxRuntime.jsx("text",{x:o+E-12,y:Z,textAnchor:"end",dominantBaseline:"middle",className:"fill-text-caption text-xs",children:i(B.conversionRate)},B.stage.id)})}),w.map(B=>{let Z=S===B.stage.id,Y=J*B.widthPercent;return jsxRuntime.jsxs("g",{children:[jsxRuntime.jsx("rect",{x:A,y:B.y,width:J,height:B.barHeight,fill:`url(#${N}-bg)`,rx:4}),jsxRuntime.jsx(framerMotion.motion.rect,{x:A,y:B.y,width:Y,height:B.barHeight,fill:`url(#${N}-bar)`,rx:4,initial:{width:0},animate:{width:Y},transition:{duration:.6,delay:B.index*.1,ease:"easeOut"},opacity:Z||S==null?1:.5,style:{cursor:p||u?"pointer":"default",transition:"opacity 150ms ease"},onMouseEnter:()=>{y(B.stage.id),u?.(B.stage);},onMouseLeave:()=>{y(null),u?.(null);},onClick:()=>p?.(B.stage)}),jsxRuntime.jsx("rect",{x:A+10,y:B.y+B.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:A+16,y:B.y+B.barHeight/2+4,className:"fill-text-heading text-xs font-semibold",style:{pointerEvents:"none"},children:a(B.stage.value)}),jsxRuntime.jsxs("text",{x:A,y:B.y-8,className:"fill-text-muted text-xs",style:{pointerEvents:"none"},children:[jsxRuntime.jsx("tspan",{children:B.index+1})," ",B.stage.label]}),B.stage.secondaryValue&&jsxRuntime.jsx("text",{x:A+16,y:B.y-24,className:"fill-text-muted text-xs",style:{pointerEvents:"none"},children:B.stage.secondaryValue}),B.index>0&&B.dropOff>0&&jsxRuntime.jsxs("text",{x:A+J,y:B.y-8,textAnchor:"end",className:"fill-text-muted text-xs",children:[i(B.dropOff)," drop"]}),B.stage.annotation&&jsxRuntime.jsxs("g",{children:[jsxRuntime.jsx("rect",{x:A+Y+8,y:B.y+8,width:60,height:24,rx:3,className:"fill-background-muted"}),jsxRuntime.jsx("text",{x:A+Y+16,y:B.y+20,className:"fill-text-caption text-xs font-medium",children:B.stage.annotation})]})]},B.stage.id)})]})})};function PC(e,t,r){return {field:e,operator:t,value:r}}function DC(e,t="AND"){return {logic:t,conditions:e}}function Zn(){return {logic:"AND",conditions:[]}}function bp(e){return !e||e.conditions.length===0?true:e.conditions.every(t=>"conditions"in t?bp(t):false)}function RC(e,t){if(!e)return [];let r=new Map(t?.map(i=>[i.field,i])),o=new Map;function n(i){if("conditions"in i)i.conditions.forEach(s=>n(s));else {let s=o.get(i.field)||[];s.push(i),o.set(i.field,s);}}e.conditions.forEach(i=>n(i));let a=[];for(let[i,s]of o.entries()){let c=r.get(i),l=c?.label||i,m=[],d=[],p=[];for(let u of s)u.operator==="in"&&Array.isArray(u.value)?m.push(...u.value):u.operator==="eq"?typeof u.value!="boolean"&&!Array.isArray(u.value)?m.push(u.value):p.push(u):["gte","gt","lte","lt"].includes(u.operator)?d.push({operator:u.operator,value:typeof u.value=="boolean"||Array.isArray(u.value)?String(u.value):u.value}):p.push(u);if(m.length>0){let b=Array.from(new Set(m)).map(f=>c?.values?.find(h=>String(h.value)===String(f))?.label??f);a.push({id:`${i}-in`,label:l,value:b.join(", ")});}if(d.length>0){let u=d.find(f=>f.operator==="gte"||f.operator==="gt"),b=d.find(f=>f.operator==="lte"||f.operator==="lt");if(u&&b){let f=u.operator==="gte"?"\u2265":">",g=b.operator==="lte"?"\u2264":"<";a.push({id:`${i}-range`,label:l,value:`${f} ${u.value} and ${g} ${b.value}`});}else for(let f of d){let g;f.operator==="gte"?g="\u2265":f.operator==="gt"?g=">":f.operator==="lte"?g="\u2264":g="<",a.push({id:`${i}-${f.operator}`,label:l,value:`${g} ${f.value}`});}}for(let u of p){let b;u.operator==="neq"?b=`\u2260 ${u.value}`:u.operator==="contains"?b=`contains "${u.value}"`:u.operator==="startsWith"?b=`starts with "${u.value}"`:u.operator==="endsWith"?b=`ends with "${u.value}"`:b=String(u.value),a.push({id:`${i}-${u.operator}`,label:l,value:b});}}return a}function zr(e,t){let r=e||Zn();return {...r,conditions:[...r.conditions,t]}}function lo(e,t){if(!e)return Zn();let r=e.conditions.filter(o=>"conditions"in o?lo(o,t).conditions.length>0:o.field!==t);return {...e,conditions:r}}function yc(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 qn({count:e,label:t="results",isLoading:r=false,className:o=""}){if(r)return jsxRuntime.jsx("div",{className:`flex items-center ${o}`,children:jsxRuntime.jsx(R,{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 EC=e=>{let t=wt({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 nn({label:e,description:t,errorMessage:r,size:o="md",tooltip:n,isRequired:a,transparent:i,showSearchIcon:s,isClearable:c,onClear:l,type:m,validationResult:d,reserveErrorSpace:p=true,...u}){let[b,f]=Ue__namespace.default.useState(false),{isFocused:g,handleFocus:h,handleBlur:y}=Qt(),v=m==="password";return jsxRuntime.jsx(reactAriaComponents.TextField,{...u,isRequired:a,className:ce(u.className,"group flex flex-col"),children:({isDisabled:x,isInvalid:C})=>jsxRuntime.jsxs("div",{className:"flex flex-col",children:[e&&jsxRuntime.jsx(ve,{size:o,tooltip:n,isRequired:a,children:e}),jsxRuntime.jsxs(ft,{children:[s&&jsxRuntime.jsx("div",{className:"pointer-events-none absolute left-2 top-1/2 -translate-y-[calc(50%+1px)] transform",children:jsxRuntime.jsx(k,{name:"MagnifyingGlass",className:"h-4 w-4 text-text-muted"})}),jsxRuntime.jsx(ti,{size:o,disabled:x,type:v?b?"text":"password":m,value:u.value,defaultValue:u.defaultValue,placeholder:u.placeholder,onFocus:S=>h(S,u.onFocus),onBlur:S=>y(S,u.onBlur),onChange:S=>u.onChange?.(S.target.value),className:EC({isInvalid:C,isDisabled:x,isFocused:g,size:o,transparent:i,showSearchIcon:s,isClearable:c,hasValue:!!u.value,isPassword:v,className:typeof u.className=="string"?u.className:void 0})}),c&&u.value&&!x&&jsxRuntime.jsx(cm,{onClick:()=>{l?l():u.onChange&&u.onChange("");},size:o}),v&&!x&&jsxRuntime.jsx("button",{type:"button",onClick:()=>f(!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:S=>{S.preventDefault(),S.stopPropagation();},children:jsxRuntime.jsx(k,{name:b?"EyeSlash":"Eye",size:o==="sm"?16:20,className:"text-text-body"})})]}),p?jsxRuntime.jsx("div",{className:"mt-1 min-h-[20px]",children:typeof r=="string"?jsxRuntime.jsx(oe,{size:o,children:r}):typeof r=="function"&&d?jsxRuntime.jsx(oe,{size:o,children:r(d)}):t?jsxRuntime.jsx(de,{size:o,children:t}):null}):jsxRuntime.jsx(jsxRuntime.Fragment,{children:typeof r=="string"?jsxRuntime.jsx(oe,{size:o,className:"mt-1",children:r}):typeof r=="function"&&d?jsxRuntime.jsx(oe,{size:o,className:"mt-1",children:r(d)}):t?jsxRuntime.jsx(de,{size:o,className:"mt-1",children:t}):null})]})})}function co({value:e,onChange:t,onClear:r,placeholder:o="Search...",size:n="sm",className:a=""}){return jsxRuntime.jsx("div",{className:`flex-1 min-w-0 sm:max-w-sm ${a}`,children:jsxRuntime.jsx(nn,{value:e,onChange:t,placeholder:o,showSearchIcon:true,isClearable:!!e&&!!r,onClear:r,size:n,"aria-label":o,reserveErrorSpace:false})})}function jn({value:e,options:t,onChange:r,direction:o,onDirectionChange:n,showLabel:a=true,size:i="sm",className:s=""}){let c=o!==void 0&&n!==void 0;return 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(eo,{selectedKey:e,onSelectionChange:l=>r(l),size:i,className:"min-w-32",items:t.map(l=>({id:l.value,label:l.label,value:l.value})),renderItem:l=>l.label,"aria-label":"Sort by",reserveErrorSpace:false}),c&&jsxRuntime.jsx(q,{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 vp({search:e,searchMobileMode:t="expanded",filters:r=[],onRemoveFilter:o,onClearAllFilters:n,onManageFilters:a,maxVisibleFilterChips:i=3,sort:s,resultsCount:c,customControls:l,sticky:m,stickyTop:d="0",zIndex:p=10,className:u="",style:b}){let f=r.length>0;if(!(e||f||a||s||c||l))return null;let h=m?"sticky bg-background-surface":"",y=m?{top:d,zIndex:p}:{};return jsxRuntime.jsxs("div",{className:`@container flex flex-col gap-3 bg-background-surface py-3 border-b border-border-default ${h} ${u}`,style:{...b,...y},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&&jsxRuntime.jsx(qn,{count:c.count,label:c.label,isLoading:c.isLoading}),c&&s&&jsxRuntime.jsx("div",{className:"h-4 w-px bg-border-default"}),s&&jsxRuntime.jsx(jn,{value:s.value,options:s.options,onChange:s.onChange,showLabel:s.showLabel,direction:s.direction,onDirectionChange:s.onDirectionChange}),f&&o&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[r.slice(0,i).map(v=>jsxRuntime.jsxs(Fr,{variant:"brand",size:"sm",onRemove:()=>o(v.id),isRemovable:true,children:[v.label,": ",v.value]},v.id)),r.length>i&&a&&jsxRuntime.jsxs(q,{variant:"ghost",size:"sm",onClick:a,className:"text-text-muted hover:text-text-body whitespace-nowrap",children:["+",r.length-i," more"]}),n&&jsxRuntime.jsx(q,{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:l||jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[e&&jsxRuntime.jsx("div",{className:"w-64",children:jsxRuntime.jsx(co,{value:e.value,onChange:e.onChange,onClear:e.onClear,placeholder:e.placeholder})}),a&&jsxRuntime.jsx(q,{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:l?jsxRuntime.jsx("div",{className:"flex-1",children:l}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[e&&jsxRuntime.jsx("div",{className:"flex-1",children:jsxRuntime.jsx(co,{value:e.value,onChange:e.onChange,onClear:e.onClear,placeholder:e.placeholder})}),a&&jsxRuntime.jsx(q,{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:[c&&jsxRuntime.jsx(qn,{count:c.count,label:c.label,isLoading:c.isLoading}),s&&jsxRuntime.jsx(jn,{value:s.value,options:s.options,onChange:s.onChange,showLabel:s.showLabel,direction:s.direction,onDirectionChange:s.onDirectionChange})]})]})]})}function Cp({filters:e,onRemove:t,onClearAll:r,onManageFilters:o,maxVisibleChips:n=3,mode:a="chips",showManageButton:i=true,size:s="sm",className:c=""}){let l=e.length>0,m=e.slice(0,n),d=Math.max(0,e.length-n),p=d>0,u=a==="button"&&!!o,b=a==="chips"&&i&&!!o;if(!l&&!u&&!b)return null;let f=u&&jsxRuntime.jsxs(q,{variant:"secondary",size:s,onClick:o,className:"whitespace-nowrap",children:[e.length," ",e.length===1?"filter":"filters"]}),g=jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[b&&jsxRuntime.jsx(q,{variant:"secondary",size:s,icon:"Sliders",onClick:o,className:"whitespace-nowrap",children:"Filters"}),l&&m.map(y=>jsxRuntime.jsxs(Fr,{variant:"secondary",size:s,onRemove:()=>t(y.id),isRemovable:true,children:[y.label,": ",y.value]},y.id)),l&&p&&o&&jsxRuntime.jsxs(q,{variant:"ghost",size:s,onClick:o,className:"text-text-muted hover:text-text-body whitespace-nowrap",children:["+",d," more"]}),l&&r&&jsxRuntime.jsx(q,{variant:"ghost",size:s,onClick:r,className:"text-text-muted hover:text-text-body whitespace-nowrap",children:"Clear all"})]}),h=a==="button"?f:g;return jsxRuntime.jsx("div",{className:`flex flex-wrap items-center gap-2 ${c}`,children:h})}function Np({label:e,description:t,errorMessage:r,size:o="md",tooltip:n,isRequired:a,isDisabled:i,isInvalid:s,showCalendar:c=true,reserveErrorSpace:l=true,validationResult:m,className:d,...p}){let[u,b]=Ue.useState(false),f=g=>{p.onChange&&g&&p.onChange(g),b(false);};return jsxRuntime.jsxs(reactAriaComponents.DateField,{...p,isDisabled:i,isRequired:a,isInvalid:s,className:ce(d,"flex flex-col gap-1"),children:[e&&jsxRuntime.jsx(ve,{size:o,tooltip:n,isRequired:a,children:e}),jsxRuntime.jsx(ft,{children:jsxRuntime.jsxs("div",{className:"relative w-full",children:[jsxRuntime.jsx(Qn,{size:o,isDisabled:i,isInvalid:s,hasCalendar:c}),c&&!i&&jsxRuntime.jsxs(reactAriaComponents.DialogTrigger,{isOpen:u,onOpenChange:b,children:[jsxRuntime.jsx(q,{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(Xo,{value:p.value,onChange:f,minValue:p.minValue,maxValue:p.maxValue,isDisabled:i,isReadOnly:p.isReadOnly,isDateUnavailable:p.isDateUnavailable})})})]})]})}),l?jsxRuntime.jsx("div",{className:"mt-1 min-h-[20px]",children:typeof r=="string"?jsxRuntime.jsx(oe,{size:o,children:r}):typeof r=="function"&&m?jsxRuntime.jsx(oe,{size:o,children:r(m)}):t?jsxRuntime.jsx(de,{size:o,children:t}):null}):jsxRuntime.jsx(jsxRuntime.Fragment,{children:typeof r=="string"?jsxRuntime.jsx(oe,{size:o,className:"mt-1",children:r}):typeof r=="function"&&m?jsxRuntime.jsx(oe,{size:o,className:"mt-1",children:r(m)}):t?jsxRuntime.jsx(de,{size:o,className:"mt-1",children:t}):null})]})}function ZC({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-xs",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 Qn({size:e="md",isDisabled:t,isInvalid:r,hasCalendar:o,className:n,...a}){return jsxRuntime.jsx(reactAriaComponents.DateInput,{className:tailwindMerge.twMerge(Zo({isInvalid:r,isDisabled:t}),"px-3 py-2 flex items-center gap-0.5 w-full",o&&"pr-10",n),...a,children:i=>jsxRuntime.jsx(reactAriaComponents.DateSegment,{segment:i,className:ZC({isPlaceholder:i.isPlaceholder,isDisabled:!i.isEditable||t,size:e})})})}function e1({selectionState:e,isDisabled:t}){let r=`${ke} 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 sn({errorMessage:e,...t}){return jsxRuntime.jsxs(reactAriaComponents.RangeCalendar,{...t,children:[jsxRuntime.jsx(li,{}),jsxRuntime.jsxs(reactAriaComponents.CalendarGrid,{className:"w-full border-separate [border-spacing:0] [&_td]:p-0 [&_td]:!border-0",children:[jsxRuntime.jsx(ci,{}),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:c})=>jsxRuntime.jsx("span",{className:e1({selectionState:n&&(a||i)?"cap":n?"middle":"none",isDisabled:c}),children:o})})})]}),e&&jsxRuntime.jsx(reactAriaComponents.Text,{slot:"errorMessage",className:"text-sm text-red-600",children:e})]})}function Ci({label:e,description:t,errorMessage:r,...o}){return jsxRuntime.jsxs(reactAriaComponents.DateRangePicker,{...o,className:ce(o.className,"group flex flex-col gap-1"),children:[e&&jsxRuntime.jsx(ve,{children:e}),jsxRuntime.jsxs(um,{className:"w-auto min-w-[208px]",children:[jsxRuntime.jsx(Qn,{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(Qn,{slot:"end",className:"flex-1 px-2 py-1.5 text-sm"}),jsxRuntime.jsx(q,{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(de,{children:t}),typeof r=="string"?jsxRuntime.jsx(oe,{children:r}):null,jsxRuntime.jsx(We,{children:jsxRuntime.jsx(sn,{})})]})}var l1=e=>{let t=wt({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 $n({label:e,description:t,errorMessage:r,size:o="md",tooltip:n,isRequired:a,transparent:i,validationResult:s,reserveErrorSpace:c=true,...l}){let m=Ue.useId(),{isFocused:d,handleFocus:p,handleBlur:u}=Qt();return jsxRuntime.jsx(reactAriaComponents.NumberField,{...l,id:m,isRequired:a,className:ce(l.className,"group flex flex-col gap-1"),step:l.step??1,onChange:b=>{typeof b=="number"&&(l.maxValue!=null&&b>l.maxValue?l.onChange?.(l.maxValue):l.minValue!=null&&b<l.minValue?l.onChange?.(l.minValue):l.onChange?.(b));},isInvalid:!!r||typeof l.value=="number"&&(l.maxValue!=null&&l.value>l.maxValue||l.minValue!=null&&l.value<l.minValue),children:({isDisabled:b,isInvalid:f})=>jsxRuntime.jsxs("div",{className:"flex flex-col",children:[e&&jsxRuntime.jsx(ve,{size:o,tooltip:n,isRequired:a,htmlFor:m,children:e}),jsxRuntime.jsx("div",{className:"relative",children:jsxRuntime.jsxs(reactAriaComponents.Group,{className:"relative",children:[jsxRuntime.jsx(reactAriaComponents.Input,{onFocus:h=>p(h,l.onFocus),onBlur:h=>u(h,l.onBlur),className:l1({isInvalid:f||!!r,isDisabled:b,isFocused:d,transparent:i,size:o,className:typeof l.className=="string"?l.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:b,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:b,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})})]})]})}),c?jsxRuntime.jsx("div",{className:"mt-1 min-h-[20px]",children:r?jsxRuntime.jsx(oe,{size:o,children:typeof r=="function"?r(s):r}):t?jsxRuntime.jsx(de,{size:o,children:t}):null}):jsxRuntime.jsx(jsxRuntime.Fragment,{children:r?jsxRuntime.jsx(oe,{size:o,className:"mt-1",children:typeof r=="function"?r(s):r}):t?jsxRuntime.jsx(de,{size:o,className:"mt-1",children:t}):null})]})})}var kc={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 u1({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=kc[o].track,i=ke,s=r==="brand"?"focus-visible:outline-action-brand":"focus-visible:outline-action-default",c="";return e?r==="brand"?c="bg-action-brand forced-colors:!bg-[Highlight] group-pressed:bg-action-brand-hover":c="bg-action-default forced-colors:!bg-[Highlight] group-pressed:bg-action-default-hover":c="bg-gray-400 dark:bg-zinc-400 group-pressed:bg-gray-500 dark:group-pressed:bg-zinc-300",[n,a,i,s,c,t?"bg-gray-200 dark:bg-zinc-700 forced-colors:group-selected:!bg-[GrayText] forced-colors:border-[GrayText]":""].filter(Boolean).join(" ")}function m1({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=kc[r].handle;return [o,n,e?"translate-x-[100%]":"translate-x-0",t?"forced-colors:outline-[GrayText]":""].filter(Boolean).join(" ")}function Si({children:e,variant:t="default",size:r="md",...o}){return jsxRuntime.jsx(reactAriaComponents.Switch,{...o,className:ce(o.className,`group flex items-center gap-2 ${kc[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:u1({...n,variant:t,size:r}),children:jsxRuntime.jsx("span",{className:m1({...n,size:r})})}),e]})})}function Dp({isOpen:e,onClose:t,facetConfigs:r,facetCounts:o={},currentFilters:n,onApply:a,onClear:i,title:s="Filters"}){let[c,l]=Ue.useState(n),[m,d]=Ue.useState({});Ue.useEffect(()=>{e&&(l(n),d({}));},[e,n]);let p=()=>{a(c),t();},u=()=>{let x=Zn();l(x),i?i():a(x),t();},b=x=>{if(!c)return [];if(!yc(c).includes(x))return [];let S=[];function N(T){if(T)for(let w of T.conditions)"conditions"in w?N(w):w.field===x&&w.operator==="in"&&Array.isArray(w.value)&&S.push(...w.value.map(String));}return N(c),S},f=(x,C,S)=>{let N=lo(c,x);C!==void 0&&(N=zr(N,{field:x,operator:"gte",value:C})),S!==void 0&&(N=zr(N,{field:x,operator:"lte",value:S})),l(N);},g=x=>{if(!c)return;let C;function S(N){if(N)for(let T of N.conditions)"conditions"in T?S(T):T.field===x&&T.operator==="eq"&&typeof T.value=="boolean"&&(C=T.value);}return S(c),C},h=(x,C)=>{let S=lo(c,x);C!==void 0&&(S=zr(S,{field:x,operator:"eq",value:C})),l(S);},y=(x,C,S)=>{let N=lo(c,x);C&&(N=zr(N,{field:x,operator:"gte",value:C.toString()})),S&&(N=zr(N,{field:x,operator:"lte",value:S.toString()})),l(N);},v=x=>{let C=o[x.field]||{},S=m[x.field]||"",N=[];if(x.values?N=x.values.map(w=>({value:String(w.value),label:w.label,count:C[String(w.value)]})):N=Object.entries(C).map(([w,F])=>({value:w,label:w,count:F})),S){let w=S.toLowerCase();N=N.filter(F=>F.label.toLowerCase().includes(w));}N.sort((w,F)=>w.count!==void 0&&F.count!==void 0&&F.count!==w.count?F.count-w.count:w.label.localeCompare(F.label));let T=x.type||"string";if(T==="string"||!x.type){let w=b(x.field);return jsxRuntime.jsxs("div",{className:"space-y-3",children:[jsxRuntime.jsx("div",{className:"font-medium text-text-body",children:x.label}),N.length>10&&jsxRuntime.jsx(co,{value:S,onChange:F=>d(E=>({...E,[x.field]:F})),onClear:()=>d(F=>({...F,[x.field]:""})),placeholder:`Search ${x.label.toLowerCase()}...`,size:"sm"}),jsxRuntime.jsx(ec,{value:w,onChange:F=>{let E=lo(c,x.field);F.length>0&&(E=zr(E,{field:x.field,operator:"in",value:F})),l(E);},children:N.slice(0,50).map(F=>jsxRuntime.jsx(oo,{value:F.value,children:jsxRuntime.jsxs("span",{className:"text-sm text-text-body",children:[F.label,F.count!==void 0&&jsxRuntime.jsxs("span",{className:"ml-2 text-text-muted",children:["(",F.count,")"]})]})},F.value))}),N.length>50&&jsxRuntime.jsxs("div",{className:"text-sm text-text-muted",children:["Showing first 50 of ",N.length," options. Use search to narrow down."]})]})}if(T==="number"){let w,F,E=A=>{if(A)for(let J of A.conditions)"conditions"in J?E(J):J.field===x.field&&(J.operator==="gte"&&typeof J.value=="number"&&(w=J.value),J.operator==="lte"&&typeof J.value=="number"&&(F=J.value));};return E(c),jsxRuntime.jsxs("div",{className:"space-y-3",children:[jsxRuntime.jsx("div",{className:"font-medium text-text-body",children:x.label}),jsxRuntime.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[jsxRuntime.jsx($n,{label:"Min",value:w,onChange:A=>f(x.field,A,F)}),jsxRuntime.jsx($n,{label:"Max",value:F,onChange:A=>f(x.field,w,A)})]})]})}if(T==="boolean"){let w=g(x.field);return jsxRuntime.jsx("div",{className:"space-y-3",children:jsxRuntime.jsxs("div",{className:"flex items-center justify-between",children:[jsxRuntime.jsx("span",{className:"font-medium text-text-body",children:x.label}),jsxRuntime.jsx(Si,{size:"lg",isSelected:w??false,onChange:F=>h(x.field,F?true:void 0),children:w?"Yes":"No"})]})})}return T==="date"?jsxRuntime.jsxs("div",{className:"space-y-3",children:[jsxRuntime.jsx("div",{className:"font-medium text-text-body",children:x.label}),jsxRuntime.jsx(Ci,{label:"Date Range",onChange:w=>{w?y(x.field,w.start,w.end):y(x.field,void 0,void 0);}})]}):null};return jsxRuntime.jsx(qt,{isOpen:e,onClose:t,title:s,primaryAction:{label:"Apply",onPress:p,variant:"default"},secondaryAction:{label:"Clear all",onPress:u},maxWidth:"500px",children:jsxRuntime.jsxs("div",{className:"space-y-6",children:[r.length===0&&jsxRuntime.jsx("div",{className:"text-text-muted",children:"No filters available"}),r.map((x,C)=>jsxRuntime.jsxs("div",{children:[v(x),C<r.length-1&&jsxRuntime.jsx("div",{className:"mt-6 border-t border-border-muted"})]},x.field))]})})}function Tc(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 Et(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 me(e="left",t){return tailwindMerge.twMerge("flex items-center gap-1",Tc(e),t)}function wi(e,t="\u2014"){return e==null||e===""?t:String(e)}var Vr={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 yt(e="normal"){return {strong:Vr.lg,high:Vr.lg,normal:Vr.md,low:Vr.sm}[e]}function ue(e,t){return typeof e=="function"?e(t):e}function Rp(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 Ap(e){return e?"success":"neutral"}function ki(e,t=false){return t?e>0?"text-green-600":e<0?"text-red-600":"text-text-body":"text-text-body"}function Pc(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 nr(e,t,r,o="hover",n="default",a,i){if(!t)return e;let s=typeof t=="function"&&r?t(r):t,c=Pc(o,n);return jsxRuntime.jsx("a",{href:s,className:tailwindMerge.twMerge(c,a==="strong"||a==="high"?"font-semibold":"",i),onClick:m=>{m.metaKey||m.ctrlKey;},children:e})}function Mp({row:e,context:t,actions:r,align:o="right",size:n="sm"}){let{isLoading:a}=t;if(a)return jsxRuntime.jsx(R,{className:Vr.sm});let s=(typeof r=="function"?r(e):r).filter(l=>!ue(l.hidden,e));if(s.length===0)return null;let c=me(o);return jsxRuntime.jsx("div",{className:c,children:s.map(l=>{let m=ue(l.disabled,e);return l.variant==="icon"||!l.label?jsxRuntime.jsx(q,{variant:"icon",size:n,onPress:()=>{l.onClick(e);},isDisabled:m,"aria-label":l.label||l.id,children:jsxRuntime.jsx(k,{name:l.icon||"DotsThree",size:n==="sm"?16:20})},l.id):jsxRuntime.jsxs(q,{variant:l.variant||"secondary",size:n,onPress:()=>{l.onClick(e);},isDisabled:m,children:[l.icon&&jsxRuntime.jsx(k,{name:l.icon,size:n==="sm"?14:16}),l.label]},l.id)})})}function Lp({value:e,row:t,context:r,variant:o="default",label:n,size:a="sm",shape:i="square",dot:s,dotPosition:c="left",dotPulse:l,align:m="left",emptyText:d="\u2014",className:p}){let{isLoading:u}=r;if(u)return jsxRuntime.jsx(R,{className:yt("normal")});if(e==null||e==="")return jsxRuntime.jsx("div",{className:me(m,"text-text-muted"),children:d});let b=typeof o=="function"?o(e,t):o,f=typeof n=="function"?n(e,t):n!==void 0?n:String(e),g=typeof s=="function"?s(e,t):s,h=typeof l=="function"?l(e,t):l,y=me(m,p);return jsxRuntime.jsx("div",{className:y,children:jsxRuntime.jsx(Oe,{variant:b,size:a,shape:i,dot:g,dotPosition:c,dotPulse:h,children:f})})}function Fp({value:e,context:t,format:r="icon",trueText:o="Yes",falseText:n="No",trueIcon:a="Check",falseIcon:i="X",showFalse:s=true,align:c="center",emphasis:l="normal",className:m}){let{isLoading:d}=t;if(d)return jsxRuntime.jsx(R,{className:yt(l)});let p=!!e;if(!p&&!s)return jsxRuntime.jsx("div",{className:me(c,m)});let u=me(c,m);switch(r){case "icon":return jsxRuntime.jsx("div",{className:u,children:jsxRuntime.jsx(k,{name:p?a:i,size:16,className:p?"text-green-600":"text-gray-400"})});case "text":return jsxRuntime.jsx("div",{className:u,children:jsxRuntime.jsx("span",{className:Et(l),children:p?o:n})});case "badge":return jsxRuntime.jsx("div",{className:u,children:jsxRuntime.jsx(Oe,{variant:p?"success":"neutral",size:"sm",children:p?o:n})});default:return null}}function Ip({row:e,context:t,firstName:r,lastName:o,email:n,avatarUrl:a,layout:i="stacked",size:s="sm",href:c,LinkComponent:l,linkVariant:m="default",showEmail:d=false,emphasis:p="normal",align:u="left",className:b}){let{isLoading:f}=t,g=ue(r,e),h=ue(o,e),y=ue(n,e),v=ue(a,e),x=ue(c,e),C=me(u,b);return jsxRuntime.jsx("div",{className:C,children:jsxRuntime.jsx(ui,{firstName:g,lastName:h,email:y,avatarUrl:v,layout:i,size:s,href:x,LinkComponent:l,linkVariant:m,showEmail:d,emphasis:p,isLoading:f})})}function Bp({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 zp({value:e,row:t,context:r,format:o="date",customFormat:n,emptyText:a="\u2014",align:i="left",emphasis:s="normal",href:c,linkBehavior:l="hover",className:m}){let{isLoading:d}=r;if(d)return jsxRuntime.jsx(R,{className:yt(s)});if(!e)return jsxRuntime.jsx("div",{className:me(i,"text-text-muted"),children:a});let p=e instanceof Date?e:new Date(e);if(isNaN(p.getTime()))return jsxRuntime.jsx("div",{className:me(i,"text-text-muted"),children:a});let u;switch(o){case "date":u=p.toLocaleDateString("en-US",{year:"numeric",month:"short",day:"numeric"});break;case "time":u=p.toLocaleTimeString("en-US",{hour:"2-digit",minute:"2-digit"});break;case "datetime":u=p.toLocaleString("en-US",{year:"numeric",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"});break;case "relative":u=C1(p);break;case "custom":u=n?p.toLocaleString("en-US",n):p.toISOString();break;default:u=p.toLocaleDateString();}let b=me(i,tailwindMerge.twMerge(Et(s),m)),f=ue(c,t);return f?jsxRuntime.jsx("div",{className:b,children:nr(u,f,t,l)}):jsxRuntime.jsx("div",{className:b,children:u})}function C1(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 Pi({manufacturer:e,model:t,deviceType:r,deviceTypeIconName:o,logoUrl:n,layout:a="stacked",size:i="md",href:s,LinkComponent:c,linkVariant:l="unstyled",showDeviceTypeIcon:m=true,showLogo:d=true,emphasis:p="normal",isLoading:u=false,className:b}){let[f,g]=Ue.useState(false),h=o||(r?N1(r):"DeviceMobile"),v={xs:{iconSize:28,logoSize:"w-7 h-7",gap:"gap-1.5",textSize:"text-xs",secondaryTextSize:"text-xs",iconInTextSize:12,skeletonIcon:28,skeletonText:80,skeletonSecondary:60},sm:{iconSize:32,logoSize:"w-8 h-8",gap:"gap-2",textSize:"text-sm",secondaryTextSize:"text-xs",iconInTextSize:14,skeletonIcon:32,skeletonText:96,skeletonSecondary:72},md:{iconSize:32,logoSize:"w-9 h-9",gap:"gap-3",textSize:"text-base",secondaryTextSize:"text-sm",iconInTextSize:16,skeletonIcon:36,skeletonText:128,skeletonSecondary:96},lg:{iconSize:40,logoSize:"w-10 h-10",gap:"gap-3",textSize:"text-lg",secondaryTextSize:"text-base",iconInTextSize:18,skeletonIcon:40,skeletonText:160,skeletonSecondary:120}}[i],x=n&&!f&&d,S={strong:"font-semibold text-text-body",high:"font-semibold text-text-body",normal:"text-text-body",low:"text-text-muted"}[p],N=({children:T,className:w})=>s?c?jsxRuntime.jsx(c,{href:s,className:w,children:T}):jsxRuntime.jsx(Me,{href:s,variant:l,className:tailwindMerge.twMerge("hover:underline",w),asButton:false,children:T}):jsxRuntime.jsx("span",{className:w,children:T});if(u)return a==="inline"?jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("flex items-center",v.gap,b),children:[jsxRuntime.jsx(R,{width:v.skeletonIcon,height:v.skeletonIcon,className:"flex-shrink-0 rounded"}),jsxRuntime.jsx(R,{width:v.skeletonText,height:v.skeletonIcon*.6})]}):jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("flex items-center",v.gap,b),children:[jsxRuntime.jsx(R,{width:v.skeletonIcon,height:v.skeletonIcon,className:"flex-shrink-0"}),jsxRuntime.jsxs("div",{className:"flex flex-col gap-1",children:[jsxRuntime.jsx(R,{width:v.skeletonText,height:16}),jsxRuntime.jsx(R,{width:v.skeletonSecondary,height:12})]})]});if(a==="inline"){let T=`${e} ${t}`;return jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("flex items-center",v.gap,b),children:[jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("flex-shrink-0 flex items-center justify-center rounded border border-border-muted",v.logoSize),children:x?jsxRuntime.jsx("img",{src:n,alt:`${e} logo`,className:"w-full h-full object-contain",onError:()=>g(true)}):jsxRuntime.jsx(k,{name:h,size:v.iconSize*.6,className:"text-text-muted"})}),jsxRuntime.jsx(N,{className:tailwindMerge.twMerge("truncate leading-normal hover:text-text-body",S,v.textSize,s&&"hover:underline hover:decoration-1 hover:underline-offset-4"),children:T})]})}return jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("flex items-center justify-start",v.gap,b),children:[d&&jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("flex-shrink-0 flex items-center justify-center rounded border border-border-muted",v.logoSize),children:x?jsxRuntime.jsx("img",{src:n,alt:`${e} logo`,className:"w-full h-full object-contain",onError:()=>g(true)}):jsxRuntime.jsx(k,{name:h,size:v.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",S,v.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",v.secondaryTextSize),children:[m&&jsxRuntime.jsx(k,{name:h,size:v.iconInTextSize,className:"flex-shrink-0"}),jsxRuntime.jsx("span",{className:"truncate",children:t})]})]})]})}function N1(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 Op({row:e,context:t,manufacturer:r,model:o,deviceType:n,logoUrl:a,layout:i="stacked",size:s="sm",href:c,LinkComponent:l,linkVariant:m="default",showDeviceTypeIcon:d=true,showLogo:p=true,emphasis:u="normal",align:b="left",className:f}){let{isLoading:g}=t,h=ue(r,e),y=ue(o,e),v=ue(n,e),x=ue(a,e),C=ue(c,e),S=me(b,f);return jsxRuntime.jsx("div",{className:S,children:jsxRuntime.jsx(Pi,{manufacturer:h,model:y,deviceType:v,logoUrl:x,layout:i,size:s,href:C,LinkComponent:l,linkVariant:m,showDeviceTypeIcon:d,showLogo:p,emphasis:u,isLoading:g})})}var FE={charging:"percentage",discharging:"percentage",on:"kW",idle:void 0,off:void 0,heat:"temperature",cool:"temperature",auto:"temperature",eco:"temperature",unknown:void 0},w1=["charging","discharging","heat","cool","on"],k1={unknown:"Unknown",on:"On",off:"Off",idle:"Idle",charging:"Charging",discharging:"Discharging",heat:"Heating",eco:"Eco Mode",cool:"Cooling",auto:"Auto"};function Dc(e){return w1.includes(e)}function Rc(e){return k1[e]}function mo({state:e,label:t,icon:r,isLoading:o,size:n="sm",shape:a="pill",dot:i,dotPulse:s,fixedWidth:c,className:l,...m}){if(o)return jsxRuntime.jsx(R,{className:"inline-flex h-6 w-20"});let d=t??Rc(e),p=Dc(e);return jsxRuntime.jsxs(Oe,{variant:e,size:n,shape:a,dot:i??p,dotPulse:s??p,className:c?`w-28 justify-center ${l||""}`:l,...m,children:[r&&jsxRuntime.jsx(k,{name:r,size:n==="sm"?12:n==="md"?14:16}),d]})}var P1={importing:"Importing",exporting:"Exporting"};function Wp(e){return P1[e]}function Ri({state:e,label:t,showIcon:r=false,isLoading:o,size:n="sm",shape:a="pill",fixedWidth:i,className:s,...c}){if(o)return jsxRuntime.jsx(R,{className:"inline-flex h-6 w-24"});let l=t??Wp(e),m=e==="exporting"?"ArrowUp":"ArrowDown",d=n==="sm"?12:n==="md"?14:16;return r?jsxRuntime.jsx(Oe,{variant:e,size:n,shape:a,className:`w-6 justify-center ${s||""}`,...c,children:jsxRuntime.jsx(k,{name:m,size:d})}):jsxRuntime.jsx(Oe,{variant:e,size:n,shape:a,className:i?`w-28 justify-center ${s||""}`:s,...c,children:l})}function Ai({state:e,stateLabel:t,metric:r,metricFormatter:o,secondaryState:n,layout:a="horizontal",isLoading:i,size:s="sm",shape:c="pill",icon:l,fixedWidth:m,secondaryStateIconOnly:d=false,className:p}){if(i)return jsxRuntime.jsx(R,{className:tailwindMerge.twMerge("inline-flex h-6 w-32",p)});let u=r!=null&&o?Zr(r,o):null,b=a==="horizontal",f=o&&!u;return jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("inline-flex items-center",b?"gap-2":"flex-col gap-1",p),children:[(u||f)&&jsxRuntime.jsx("span",{className:tailwindMerge.twMerge("font-medium inline-block",u?"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:u||"\u2014"}),jsxRuntime.jsx(mo,{state:e,label:t,icon:l,size:s,shape:c,fixedWidth:m}),n&&jsxRuntime.jsx(jsxRuntime.Fragment,{children:n==="importing"||n==="exporting"?jsxRuntime.jsx(Ri,{state:n,size:s,shape:c,fixedWidth:m,showIcon:d}):jsxRuntime.jsx(mo,{state:n,size:s,shape:c,fixedWidth:m})})]})}function Gp({value:e,row:t,context:r,metric:o,metricFormatter:n,secondaryState:a,size:i="sm",shape:s="pill",label:c,icon:l,fixedWidth:m=true,align:d="left",compact:p=false,className:u}){let{isLoading:b}=r;if(b)return jsxRuntime.jsx(R,{className:"inline-flex h-6 w-32"});if(!e)return jsxRuntime.jsx("div",{className:me(d,u),children:jsxRuntime.jsx("span",{className:"text-text-muted",children:"\u2014"})});let f=ue(o,t),g=ue(a,t),h=typeof c=="function"?c(e,t):c,y=me(d,u);return f!=null||n?jsxRuntime.jsx("div",{className:tailwindMerge.twMerge(y),children:jsxRuntime.jsx(Ai,{state:e,stateLabel:h,metric:f,metricFormatter:n,secondaryState:g||void 0,size:i,shape:s,icon:l,fixedWidth:m,secondaryStateIconOnly:p,layout:"horizontal"})}):jsxRuntime.jsx("div",{className:y,children:jsxRuntime.jsx(mo,{state:e,label:h,icon:l,size:i,shape:s,fixedWidth:m})})}function Kp({value:e,row:t,context:r,formatter:o,align:n="left",emphasis:a="normal",href:i,linkBehavior:s="hover",className:c,emptyText:l="\u2014",emptyClassName:m="text-text-muted"}){let{isLoading:d}=r;if(d)return jsxRuntime.jsx(R,{className:yt(a)});let p=Yt({value:e,formatter:o,emptyText:l,emptyClassName:m}),u=Et(a),b=me(n,tailwindMerge.twMerge(u,c)),f=jsxRuntime.jsx("div",{className:b,children:p}),g=ue(i,t);return g?nr(f,g,t,s):f}var Mc=Ue__namespace.default.memo(({value:e,min:t,max:r,color:o="var(--color-viz-default)",backgroundColor:n="var(--color-background-muted)",colorScale:a,showLabel:i=true,formatLabel:s,height:c=20,minWidth:l=4,segments:m,segmentGap:d=2,barWidth:p,context:u})=>{let b=Ue.useMemo(()=>r===t?100:Math.max(0,Math.min(100,(e-t)/(r-t)*100)),[e,t,r]),f=Ue.useMemo(()=>o==="auto"&&a?a.type==="diverging"&&a.center!==void 0?Dn(e,t,r,a.center,a.scheme):Pn(e,t,r,a.scheme):o,[o,a,e,t,r]);if(u.isLoading)return jsxRuntime.jsx("div",{className:"flex items-center gap-2 w-full",style:{height:c},children:jsxRuntime.jsx("div",{className:"h-full flex-1 animate-pulse bg-border-default rounded"})});if(m&&m>0){let y=`calc((100% - ${d*(m-1)}px) / ${m})`,v=Math.ceil(b/100*m),x={height:c,...p&&{width:typeof p=="number"?`${p}px`:p,flexShrink:0}};return jsxRuntime.jsxs("div",{className:"flex items-center gap-2 w-full",children:[jsxRuntime.jsx("div",{className:`flex gap-0.5 ${p?"":"flex-1"}`,style:x,children:Array.from({length:m}).map((C,S)=>{let N=S<v;return jsxRuntime.jsx("div",{className:"rounded-sm",style:{width:y,backgroundColor:N?f:n==="none"?"transparent":n,marginRight:S<m-1?`${d}px`:0}},S)})}),i&&jsxRuntime.jsx("span",{className:"text-sm text-text-body whitespace-nowrap",children:s?s(e):e.toLocaleString()})]})}let g={height:c,backgroundColor:n==="none"?"transparent":n,...p&&{width:typeof p=="number"?`${p}px`:p,flexShrink:0}};return jsxRuntime.jsxs("div",{className:"flex items-center gap-2 w-full",children:[jsxRuntime.jsx("div",{className:`relative rounded-sm ${p?"":"flex-1"}`,style:g,children:jsxRuntime.jsx("div",{className:"absolute left-0 top-0 h-full rounded-sm",style:{width:`${b}%`,minWidth:b>0?l:0,backgroundColor:f}})}),i&&jsxRuntime.jsx("span",{className:"text-sm text-text-body whitespace-nowrap",children:s?s(e):e.toLocaleString()})]})});Mc.displayName="HorizontalBarCell";var Lc=Ue__namespace.default.memo(({value:e,data:t,color:r="var(--color-viz-default)",categoryColors:o,context:n,width:a,height:i=40})=>{let s=e||t||[],c=g=>"xValue"in g?g.xValue:g.x,l=g=>"yValue"in g?g.yValue:g.y,m=a||100,d=i,{xScale:p,yScale:u,barWidth:b}=Ue.useMemo(()=>{if(s.length===0)return {xScale:scale.scaleTime({range:[0,m],domain:[new Date,new Date]}),yScale:scale.scaleLinear({range:[d,0],domain:[0,1]}),barWidth:2};let g=d3Array.extent(s,N=>c(N)),h=d3Array.min(s,N=>l(N))??0,y=d3Array.max(s,N=>l(N))??0,v=h<0?h:0,x=scale.scaleTime({range:[0,m],domain:g}),C=scale.scaleLinear({range:[d,0],domain:[v,y*1.05]}),S=s.length>1?m/s.length*.8:8;return {xScale:x,yScale:C,barWidth:Math.max(2,S)}},[s,m,d]);if(n.isLoading)return jsxRuntime.jsx("div",{className:"flex items-center gap-0.5",style:{width:m,height:d},children:Array.from({length:5}).map((g,h)=>jsxRuntime.jsx("div",{className:"flex-1 animate-pulse bg-border-default rounded"},h))});if(!s||s.length===0)return jsxRuntime.jsx("div",{className:"flex items-center justify-center text-text-muted text-xs",style:{width:m,height:d},children:"No data"});let f=u(0);return jsxRuntime.jsx("svg",{width:m,height:d,children:s.map((g,h)=>{let y=l(g),v=p(c(g)),x=u(y),C=Math.abs(f-x),S=g.category&&o?.[g.category]?o[g.category]:r;return jsxRuntime.jsx(shape.Bar,{x:v-b/2,y:y>=0?x:f,width:b,height:C,fill:S,rx:1},`bar-${h}`)})})});Lc.displayName="MiniBarCell";function Xp({value:e,row:t,context:r,format:o="number",decimals:n=0,prefix:a,suffix:i,emptyText:s="\u2014",align:c="right",emphasis:l="normal",href:m,linkBehavior:d="hover",showPositiveSign:p=false,colorCode:u=false,className:b}){let{isLoading:f}=r;if(f)return jsxRuntime.jsx(R,{className:yt(l)});if(e==null||isNaN(Number(e)))return jsxRuntime.jsx("div",{className:me(c,"text-text-muted"),children:s});let g=Number(e),h;switch(o){case "currency":h=new Intl.NumberFormat("en-US",{style:"currency",currency:"USD",minimumFractionDigits:n,maximumFractionDigits:n}).format(g);break;case "percent":h=new Intl.NumberFormat("en-US",{style:"percent",minimumFractionDigits:n,maximumFractionDigits:n}).format(g/100);break;case "compact":h=new Intl.NumberFormat("en-US",{notation:"compact",minimumFractionDigits:n>0?1:0,maximumFractionDigits:n}).format(g);break;default:h=new Intl.NumberFormat("en-US",{minimumFractionDigits:n,maximumFractionDigits:n}).format(g);}let v=`${p&&g>0?"+":""}${h}`,x=u?ki(g,true):Et(l),C=me(c,tailwindMerge.twMerge(x,b)),S=jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[a&&jsxRuntime.jsx("span",{className:"text-text-muted",children:a}),jsxRuntime.jsx("span",{children:v}),i&&jsxRuntime.jsx("span",{className:"text-text-muted",children:i})]}),N=ue(m,t);return N?jsxRuntime.jsx("div",{className:C,children:nr(S,N,t,d)}):jsxRuntime.jsx("div",{className:C,children:S})}var Fc=Ue__namespace.default.memo(({value:e,showLabel:t=true,color:r="var(--color-viz-categorical-1)",backgroundColor:o="var(--color-background-muted)",height:n=20,segments:a,segmentGap:i=2,colorScale:s,context:c})=>{let l=Ue.useMemo(()=>Math.max(0,Math.min(100,e)),[e]),m=Ue.useMemo(()=>r==="auto"&&s?s.type==="diverging"&&s.center!==void 0?Dn(e,0,100,s.center,s.scheme):Pn(e,0,100,s.scheme):r,[r,s,e]);if(c.isLoading)return jsxRuntime.jsx("div",{className:"flex items-center gap-2",style:{height:n},children:jsxRuntime.jsx("div",{className:"h-full w-full animate-pulse bg-border-default rounded"})});if(a&&a>0){let p=`calc((100% - ${i*(a-1)}px) / ${a})`,u=Math.ceil(l/100*a);return jsxRuntime.jsxs("div",{className:"flex items-center gap-2 w-full",children:[jsxRuntime.jsx("div",{className:"flex gap-0.5 flex-1",style:{height:n},children:Array.from({length:a}).map((b,f)=>{let g=f<u,h=m;if(r==="auto"&&s&&g){let y=(f+1)/a*100;s.type==="diverging"&&s.center!==void 0?h=Dn(y,0,100,s.center,s.scheme):h=Pn(y,0,100,s.scheme);}return jsxRuntime.jsx("div",{className:"rounded-sm",style:{width:p,backgroundColor:g?h: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:[l.toFixed(0),"%"]})]})}return jsxRuntime.jsxs("div",{className:"flex items-center gap-2 w-full",children:[jsxRuntime.jsx("div",{className:"relative flex-1 rounded-sm",style:{height:n,backgroundColor:o==="none"?"transparent":o},children:jsxRuntime.jsx("div",{className:"absolute left-0 top-0 h-full rounded-sm transition-all duration-300",style:{width:`${l}%`,backgroundColor:m}})}),t&&jsxRuntime.jsxs("span",{className:"text-sm text-text-body whitespace-nowrap",children:[l.toFixed(0),"%"]})]})});Fc.displayName="PercentBarCell";function Qp({row:e,context:t,isSelected:r=false,onSelect:o,isDisabled:n=false,align:a="center"}){let{isLoading:i}=t;if(i)return jsxRuntime.jsx("div",{className:me(a),children:jsxRuntime.jsx(R,{className:"h-4 w-4 rounded"})});let s=ue(n,e),c=me(a);return jsxRuntime.jsx("div",{className:c,children:jsxRuntime.jsx(oo,{isSelected:r,onChange:l=>{o?.(e,l);},isDisabled:s,"aria-label":"Select row"})})}function Fi({streetAddress:e,city:t,state:r,postalCode:o,layout:n="stacked",size:a="md",href:i,LinkComponent:s,linkVariant:c="unstyled",emphasis:l="normal",isLoading:m=false,className:d}){let u={xs:{iconSize:16,gap:"gap-1.5",textSize:"text-xs",secondaryTextSize:"text-xs",skeletonIcon:16,skeletonText:80,skeletonSecondary:60},sm:{iconSize:20,gap:"gap-2",textSize:"text-sm",secondaryTextSize:"text-xs",skeletonIcon:20,skeletonText:96,skeletonSecondary:72},md:{iconSize:24,gap:"gap-3",textSize:"text-base",secondaryTextSize:"text-sm",skeletonIcon:24,skeletonText:128,skeletonSecondary:96},lg:{iconSize:28,gap:"gap-3",textSize:"text-lg",secondaryTextSize:"text-base",skeletonIcon:28,skeletonText:160,skeletonSecondary:120}}[a],f={strong:"font-semibold text-text-body",high:"font-semibold text-text-body",normal:"text-text-body",low:"text-text-muted"}[l],g=[];t&&g.push(t),r&&o?g.push(`${r} ${o}`):r?g.push(r):o&&g.push(o);let h=g.join(", "),y=({children:v,className:x})=>i?s?jsxRuntime.jsx(s,{href:i,className:x,children:v}):jsxRuntime.jsx(Me,{href:i,variant:c,className:tailwindMerge.twMerge("hover:underline",x),asButton:false,children:v}):jsxRuntime.jsx("span",{className:x,children:v});return m?n==="inline"?jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("flex items-center",u.gap,d),children:[jsxRuntime.jsx(R,{width:u.skeletonIcon,height:u.skeletonIcon,className:"flex-shrink-0 rounded"}),jsxRuntime.jsx(R,{width:u.skeletonText,height:u.skeletonIcon*.8})]}):jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("flex items-center",u.gap,d),children:[jsxRuntime.jsx(R,{width:u.skeletonIcon,height:u.skeletonIcon,className:"flex-shrink-0 rounded"}),jsxRuntime.jsxs("div",{className:"flex flex-col gap-1",children:[jsxRuntime.jsx(R,{width:u.skeletonText,height:16}),jsxRuntime.jsx(R,{width:u.skeletonSecondary,height:12})]})]}):n==="inline"?jsxRuntime.jsxs(y,{className:tailwindMerge.twMerge("flex items-center",u.gap,i&&"hover:bg-background-hover transition-colors",d),children:[jsxRuntime.jsx(k,{name:"MapPin",size:u.iconSize,className:"text-text-muted flex-shrink-0"}),jsxRuntime.jsx("span",{className:tailwindMerge.twMerge("leading-normal truncate hover:text-text-body",f,u.textSize,i&&"hover:underline hover:decoration-1 hover:underline-offset-4"),children:e})]}):jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("flex items-center justify-start",u.gap,d),children:[jsxRuntime.jsx(k,{name:"MapPin",size:u.iconSize,className:"text-text-muted flex-shrink-0"}),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",f,u.textSize,i&&"hover:underline hover:decoration-1 hover:underline-offset-4"),children:e}),h&&jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("text-text-caption leading-normal truncate",u.secondaryTextSize),children:h})]})]})}function _p({row:e,context:t,streetAddress:r,city:o,state:n,postalCode:a,layout:i="stacked",size:s="sm",href:c,LinkComponent:l,linkVariant:m="default",emphasis:d="normal",align:p="left",className:u}){let{isLoading:b}=t,f=ue(r,e),g=ue(o,e),h=ue(n,e),y=ue(a,e),v=ue(c,e),x=me(p,u);return jsxRuntime.jsx("div",{className:x,children:jsxRuntime.jsx(Fi,{streetAddress:f,city:g,state:h,postalCode:y,layout:i,size:s,href:v,LinkComponent:l,linkVariant:m,emphasis:d,isLoading:b})})}var Ec=Ue__namespace.default.memo(({value:e,data:t,type:r="line",color:o="var(--color-viz-default)",strokeWidth:n=2,categoryColors:a,context:i,width:s,height:c=40})=>{let l=e||t||[],m=s||100,d=c,{xScale:p,yScale:u}=Ue.useMemo(()=>{if(l.length===0)return {xScale:scale.scaleTime({range:[0,m],domain:[new Date,new Date]}),yScale:scale.scaleLinear({range:[d,0],domain:[0,1]})};let f=d3Array.extent(l,v=>v.xValue),g=d3Array.min(l,v=>v.yValue)||0,h=d3Array.max(l,v=>v.yValue)||0,y=(h-g)*.1||1;return {xScale:scale.scaleTime({range:[0,m],domain:f}),yScale:scale.scaleLinear({range:[d,0],domain:[g-y,h+y]})}},[l,m,d]);if(i.isLoading)return jsxRuntime.jsx("div",{className:"flex items-center",style:{width:m,height:d},children:jsxRuntime.jsx("div",{className:"h-1 w-full animate-pulse bg-border-default rounded"})});if(!l||l.length===0)return jsxRuntime.jsx("div",{className:"flex items-center justify-center text-text-muted text-xs",style:{width:m,height:d},children:"No data"});let b=a&&l[0]?.category&&a[l[0].category]?a[l[0].category]:o;return jsxRuntime.jsxs("svg",{width:m,height:d,className:"overflow-visible",children:[(r==="area"||r==="both")&&jsxRuntime.jsx(shape.AreaClosed,{data:l,x:f=>p(f.xValue),y:f=>u(f.yValue),yScale:u,fill:b,fillOpacity:.15,curve:curve.curveLinear}),(r==="line"||r==="both")&&jsxRuntime.jsx(shape.LinePath,{data:l,x:f=>p(f.xValue),y:f=>u(f.yValue),stroke:b,strokeWidth:n,strokeLinecap:"round",curve:curve.curveLinear})]})});Ec.displayName="SparklineCell";function of({value:e,row:t,context:r,prefix:o,suffix:n,emptyText:a="\u2014",href:i,linkBehavior:s="hover",linkVariant:c="default",emphasis:l="normal",truncate:m=true,align:d="left",className:p}){let{isLoading:u}=r;if(u)return jsxRuntime.jsx(R,{className:yt(l)});let b=wi(e,a),f=ue(i,t),g=jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[o&&jsxRuntime.jsx("span",{className:"text-text-muted",children:o}),jsxRuntime.jsx("span",{className:m?"truncate":"",children:b}),n&&jsxRuntime.jsx("span",{className:"text-text-muted",children:n})]});if(f){let y=me(d,p);return jsxRuntime.jsx("div",{className:y,children:nr(g,f,t,s,c,l)})}let h=me(d,tailwindMerge.twMerge(Et(l),p));return jsxRuntime.jsx("div",{className:h,children:g})}var e2={sm:"sm:hidden",md:"md:hidden",lg:"lg:hidden",xl:"xl:hidden"},t2={sm:"hidden sm:grid",md:"hidden md:grid",lg:"hidden lg:grid",xl:"hidden xl:grid"};function Ei(e,t){return t.accessor?typeof t.accessor=="function"?t.accessor(e):e[t.accessor]:null}function Ii(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 zi({row:e,columns:t,density:r,isLoading:o,onClick:n}){let a=t.filter(d=>d.mobile!==false).map(d=>{let p=d.mobile===false?null:d.mobile;return {...d,mobilePriority:p?.priority??2,mobileFormat:p?.format??"secondary",showLabel:p?.label??p?.format==="secondary",icon:p?.icon}}).sort((d,p)=>d.mobilePriority-p.mobilePriority),i=a.filter(d=>d.mobilePriority===1||d.mobileFormat==="primary"),s=a.filter(d=>d.mobilePriority===2&&d.mobileFormat!=="primary"),c=a.filter(d=>d.mobileFormat==="badge"),l={isLoading:!!o,rowIndex:0,columnIndex:0,density:r};return jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("border-b border-border-default bg-background-surface transition-colors",n&&"cursor-pointer hover:bg-background-hover active:bg-background-pressed",{compact:"px-3 py-2",default:"px-4 py-3",relaxed:"px-4 py-4"}[r]),onClick:n,role:n?"button":void 0,tabIndex:n?0:void 0,children:[i.length>0&&jsxRuntime.jsxs("div",{className:"mb-2 flex items-start justify-between",children:[jsxRuntime.jsx("div",{className:"flex-1",children:i.map(d=>{let p=Ei(e,d);return jsxRuntime.jsx("div",{className:"font-medium text-text-body [&>*]:!justify-start [&>*]:!text-left",children:Ii(p,e,d,l)},d.id)})}),c.length>0&&jsxRuntime.jsx("div",{className:"ml-2 flex flex-wrap gap-1",children:c.map(d=>{let p=Ei(e,d);return jsxRuntime.jsx("div",{className:"inline-flex",children:Ii(p,e,d,l)},d.id)})})]}),s.length>0&&jsxRuntime.jsx("div",{className:"space-y-1",children:s.map(d=>{let p=Ei(e,d),u=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"}),u&&jsxRuntime.jsxs("span",{className:"mr-1 font-medium",children:[d.label,":"]}),jsxRuntime.jsx("span",{className:"truncate [&>*]:!justify-start [&>*]:!text-left",children:Ii(p,e,d,l)})]},d.id)})})]})}function Vi({row:e,columns:t,density:r,isLoading:o,onClick:n}){let a=t.filter(c=>c.mobile!==false),i={isLoading:!!o,rowIndex:0,columnIndex:0,density:r};return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("border-b border-border-default bg-background-surface transition-colors",n&&"cursor-pointer hover:bg-background-hover active:bg-background-pressed",{compact:"px-3 py-2",default:"px-4 py-3",relaxed:"px-4 py-4"}[r]),onClick:n,role:n?"button":void 0,tabIndex:n?0:void 0,children:jsxRuntime.jsx("div",{className:"space-y-2",children:a.map((c,l)=>{let m=Ei(e,c),d=l===0;return jsxRuntime.jsxs("div",{children:[!d&&jsxRuntime.jsx("div",{className:"text-xs text-text-muted",children:c.label}),jsxRuntime.jsx("div",{className:tailwindMerge.twMerge(d?"font-medium text-text-body":"text-sm text-text-body","[&>*]:!justify-start [&>*]:!text-left"),children:Ii(m,e,c,i)})]},c.id)})})})}function nf(e="md"){return {mobile:e2[e],desktop:t2[e]}}function af({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 Ic={compact:"py-1.5 px-3 text-sm",default:"py-3 px-4 text-sm",relaxed:"py-4 px-4 text-base"},Bc={left:"text-left justify-start",center:"text-center justify-center",right:"text-right justify-end"},a2={full:"w-full",auto:"w-auto inline-block",contained:"w-full max-w-6xl mx-auto"},i2={auto:"table-auto",fixed:"table-fixed",responsive:"table-auto"};function zc(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 s2(e,t){return t.accessor?typeof t.accessor=="function"?t.accessor(e):e[t.accessor]:null}function l2({column:e,sortConfig:t,onSort:r,stickyHeader:o,density:n="default",isLoading:a=false}){let i=t?.columnId===e.id,s=i?t.direction:null;return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("flex items-center border-b border-border-default bg-background-surface",e.sortable?"gap-2":"gap-1",Ic[n],Bc[e.align||"left"],o&&"sticky top-0 z-10",e.sortable&&!a&&"cursor-pointer hover:bg-background-hover",a&&"cursor-not-allowed opacity-60",i?"font-bold text-text-body":"font-medium text-text-muted"),onClick:()=>!a&&e.sortable&&r(e.id),role:"columnheader","aria-sort":i?s==="asc"?"ascending":"descending":"none","aria-disabled":a,style:zc(e),children:a?jsxRuntime.jsx(R,{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:i?jsxRuntime.jsx(k,{name:s==="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 c2({column:e,row:t,rowIndex:r,columnIndex:o,isHovered:n,density:a="default",className:i}){let s=s2(t,e),c={isLoading:false,isHovered:n,rowIndex:r,columnIndex:o,density:a},l;if(e.cell){let m=e.cell,d=typeof e.cellProps=="function"?e.cellProps(s,t):e.cellProps;l=jsxRuntime.jsx(m,{value:s,row:t,context:c,...d});}else e.render?l=e.render(s,t,c):l=jsxRuntime.jsx("span",{className:"truncate",children:s?.toString()??""});if(e.popover){let m=e.popover,d,p="top",u=false,b="hover";typeof m=="string"?d=m:typeof m=="function"?d=m(s,t):(d=typeof m.content=="function"?m.content(s,t):m.content,p=m.placement||"top",u=m.showArrow??false,b=m.trigger||"hover"),l=jsxRuntime.jsxs(reactAriaComponents.DialogTrigger,{...b==="hover"?{trigger:"longPress"}:{},children:[jsxRuntime.jsx("div",{className:"cursor-help",children:l}),jsxRuntime.jsx(We,{placement:p,showArrow:u,children:jsxRuntime.jsx("div",{className:"p-2",children:d})})]});}return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("flex items-center border-b border-border-default",e.noCellPadding?"":Ic[a],Bc[e.align||"left"],i),role:"cell",style:zc(e),children:l})}function d2({column:e,rowIndex:t,columnIndex:r,density:o="default"}){let n={isLoading:true,rowIndex:t,columnIndex:r,density:o},a;if(e.cell){let i=e.cell,s=typeof e.cellProps=="function"?e.cellProps(null,{}):e.cellProps;a=jsxRuntime.jsx(i,{value:null,row:{},context:n,...s});}else e.render?a=e.render(null,{},n):a=jsxRuntime.jsx(R,{className:"h-4 w-full max-w-[200px]"});return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("flex items-center border-b border-border-default",e.noCellPadding?"":Ic[o],Bc[e.align||"left"]),role:"cell",style:zc(e),children:a})}function sf({columns:e,row:t,rowIndex:r,density:o="default",onClick:n}){let[a,i]=Ue.useState(false),s=Ue.useCallback(()=>{n&&n(t);},[n,t]);return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("contents group",n&&"cursor-pointer"),role:"row",onClick:s,onMouseEnter:()=>i(true),onMouseLeave:()=>i(false),children:e.map((c,l)=>jsxRuntime.jsx(c2,{column:c,row:t,rowIndex:r,columnIndex:l,isHovered:a,density:o,className:n?"group-hover:bg-background-hover":""},c.id))})}function lf({columns:e,rowIndex:t,density:r="default"}){return jsxRuntime.jsx("div",{className:"contents",role:"row",children:e.map((o,n)=>jsxRuntime.jsx(d2,{column:o,rowIndex:t,columnIndex:n,density:r},o.id))})}function uf({columns:e,data:t,className:r,density:o="default",width:n="full",height:a,maxHeight:i,layout:s="auto",mobileRenderer:c="auto",customMobileRowRender:l,mobileBreakpoint:m="md",isLoading:d=false,loadingState:p,loadingRowCount:u=5,onLoadMore:b,hasMore:f=false,enableVirtualization:g,estimatedRowHeight:h,loadingIndicator:y,stickyHeader:v=false,onRowClick:x,getRowId:C,hideHeader:S=false,onSort:N,"aria-label":T}){let[w,F]=Ue.useState(null),E=Ue.useRef(null),A=b?Pr({items:t,onLoadMore:b,hasMore:f,isLoading:d,loadingState:p,enableVirtualization:g,estimatedItemSize:h||(o==="compact"?40:o==="relaxed"?60:48),overscan:5}):null,J=A?.scrollRef??E,{loadMoreRef:B,virtualizer:Z,virtualItems:Y,isLoadingMore:G,computedLoadingState:M}=A||{},j=Ue.useMemo(()=>e.map(D=>{if(D.width)return typeof D.width=="number"?`${D.width}px`:D.width;if(D.flex)return `${D.flex}fr`;if(D.minWidth&&D.maxWidth){let $=typeof D.minWidth=="number"?`${D.minWidth}px`:D.minWidth,ne=typeof D.maxWidth=="number"?`${D.maxWidth}px`:D.maxWidth;return `minmax(${$}, ${ne})`}return D.minWidth?`minmax(${typeof D.minWidth=="number"?`${D.minWidth}px`:D.minWidth}, 1fr)`:D.maxWidth?`minmax(0, ${typeof D.maxWidth=="number"?`${D.maxWidth}px`:D.maxWidth})`:"1fr"}).join(" "),[e]),V=Ue.useCallback(D=>{if(!e.find(Ne=>Ne.id===D)?.sortable)return;let ne=null;w?.columnId===D?w.direction==="asc"?ne={columnId:D,direction:"desc"}:ne=null:ne={columnId:D,direction:"asc"},F(ne),N?.(ne);},[e,w,N]),U=M==="loading"||d&&t.length===0,z={};a?(z.height=typeof a=="number"?`${a}px`:a,z.overflowY="auto"):i?(z.maxHeight=typeof i=="number"?`${i}px`:i,z.overflowY="auto"):b&&(z.height="600px",z.overflowY="auto");let I=tailwindMerge.twMerge(a2[n],!b&&(s==="responsive"?"overflow-x-auto":"overflow-auto"),r),O=nf(m),K=c!=="none",L=(D,$)=>K?c==="custom"&&l?l(D,$):jsxRuntime.jsx(c==="cards"?Vi:zi,{row:D,columns:e,density:o,isLoading:d,onClick:x?()=>x(D):void 0}):null,W=Z?Y?.map(D=>({virtualItem:D,row:t[D.index],index:D.index}))||[]:t.map((D,$)=>({row:D,index:$,virtualItem:null}));return jsxRuntime.jsxs("div",{ref:J,className:I,style:{...z,position:Z?"relative":void 0},children:[jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("grid border-separate border-spacing-0",i2[s],n==="auto"?"inline-grid w-auto":"w-full",K&&O.desktop),role:"table","aria-label":T,style:{gridTemplateColumns:j},children:[!S&&jsxRuntime.jsx("div",{className:"contents",role:"rowgroup",children:e.map(D=>jsxRuntime.jsx(l2,{column:D,sortConfig:w,onSort:V,stickyHeader:v,density:o,isLoading:U},D.id))}),Z?jsxRuntime.jsx("div",{className:"col-span-full",style:{gridColumn:"1 / -1",height:`${Z.getTotalSize()}px`,position:"relative"},role:"rowgroup",children:U?Array.from({length:u}).map((D,$)=>jsxRuntime.jsx("div",{className:"contents",children:jsxRuntime.jsx(lf,{columns:e,rowIndex:$,density:o})},`loading-${$}`)):t.length>0?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[W.map(({row:D,index:$,virtualItem:ne})=>{if(!D||!ne)return null;let Ne=C?C(D):`row-${$}`;return jsxRuntime.jsx("div",{style:{position:"absolute",top:0,left:0,width:"100%",display:"grid",gridTemplateColumns:j,transform:`translateY(${ne.start}px)`},"data-index":ne.index,ref:Z.measureElement,children:jsxRuntime.jsx(sf,{columns:e,row:D,rowIndex:$,density:o,onClick:x})},Ne)}),G&&jsxRuntime.jsx("div",{style:{position:"absolute",top:`${Z.getTotalSize()}px`,left:0,width:"100%"},children:y||jsxRuntime.jsx(Rt,{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:U?Array.from({length:u}).map((D,$)=>jsxRuntime.jsx(lf,{columns:e,rowIndex:$,density:o},`loading-${$}`)):t.length>0?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[W.map(({row:D,index:$})=>{if(!D)return null;let ne=C?C(D):`row-${$}`;return jsxRuntime.jsx(sf,{columns:e,row:D,rowIndex:$,density:o,onClick:x},ne)}),G&&jsxRuntime.jsx("div",{className:"col-span-full",style:{gridColumn:"1 / -1"},children:y||jsxRuntime.jsx(Rt,{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"})})})]}),K&&jsxRuntime.jsx("div",{className:O.mobile,children:U?Array.from({length:u}).map((D,$)=>jsxRuntime.jsx(af,{density:o},`mobile-loading-${$}`)):t.length>0?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[W.map(({row:D,index:$})=>{if(!D)return null;let ne=C?C(D):`mobile-row-${$}`;return jsxRuntime.jsx("div",{className:"border-b border-border-default last:border-b-0",children:L(D,$)},ne)}),G&&(y||jsxRuntime.jsx(Rt,{state:"loading-more"}))]}):jsxRuntime.jsx("div",{className:"py-12 text-center text-text-muted",children:"No data available"})}),b&&f&&!U&&(Z?jsxRuntime.jsx("div",{ref:B,style:{position:"absolute",top:`${Z.getTotalSize()}px`,left:0,width:"100%",height:1}}):jsxRuntime.jsx("div",{ref:B,className:"h-px w-full"}))]})}function pf({status:e,alertCount:t,showCount:r=false,isLoading:o,size:n="sm",shape:a="pill",...i}){if(o)return jsxRuntime.jsx(R,{className:"inline-flex h-6 w-20"});let s={healthy:"success",warning:"warning",error:"error",unknown:"neutral"},c={healthy:"Healthy",warning:"Warning",error:"Error",unknown:"Unknown"},l=e==="warning"||e==="error",m=r&&t?`${c[e]} (${t})`:c[e];return jsxRuntime.jsx(Oe,{variant:s[e],size:n,shape:a,dot:l,dotPulse:l,...i,children:m})}var m2={battery:"BatteryHigh",charger:"ChargingStation",thermostat:"ThermometerSimple",inverter:"Power",vehicle:"Car",meter:"Gauge",gateway:"WifiHigh",other:"Cube",unknown:"Question"},p2={battery:"Battery",charger:"Charger",thermostat:"Thermostat",inverter:"Inverter",vehicle:"Vehicle",meter:"Meter",gateway:"Gateway",other:"Other",unknown:"Unknown"};function gf({deviceType:e,iconName:t,size:r="md",showLabel:o=false,className:n}){let a=t||(e?m2[e]:"Question"),i=e?p2[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 oa({children:e,title:t,headerContent:r,titleAlign:o="left",hideCloseIcon:n=false,hasBackArrow:a=false,onBack:i,isOpen:s,slideInFrom:c="right",transparentOverlay:l=false,onClose:m,className:d,primaryAction:p,secondaryAction:u,footerContent:b,contentPadding:f=true,maxWidth:g="400px"}){let[h,y]=Ue.useState(false);if(Ue.useEffect(()=>{if(s){let C=setTimeout(()=>y(true),10);return ()=>clearTimeout(C)}y(false);},[s]),!s)return null;let v=t||r,x=p||u||b;return jsxRuntime.jsx(zt,{children:jsxRuntime.jsx(St,{isOpen:s,onOpenChange:C=>!C&&m?.(),isDismissable:true,transparent:l,children:jsxRuntime.jsx(reactAriaComponents.Modal,{className:"flex justify-end",isDismissable:true,children:jsxRuntime.jsxs(reactAriaComponents.Dialog,{className:tailwindMerge.twMerge("fixed bottom-0 top-0 z-50 flex w-full flex-col bg-background-surface shadow-xl duration-300 h-full min-h-0 overflow-hidden dark:bg-gray-800","outline-none focus-visible:outline focus-visible:outline-2 focus-visible:outline-action-default focus-visible:outline-offset-0",h?c==="right"?"animate-in slide-in-from-right":"animate-in slide-in-from-left":"",d),style:{[c==="right"?"right":"left"]:0,maxWidth:g,transform:h?void 0:c==="right"?"translateX(100%)":"translateX(-100%)"},children:[v&&(a&&i?jsxRuntime.jsx(it,{title:t,headerContent:r,titleAlign:o,hideCloseIcon:n,hasBackArrow:true,onBack:i,onClose:m}):jsxRuntime.jsx(it,{title:t,headerContent:r,titleAlign:o,hideCloseIcon:n,onClose:m})),jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("flex-1 overflow-y-auto overscroll-contain",f?"px-6 py-6":"p-0"),children:e}),x&&jsxRuntime.jsx(Mr,{primaryAction:p,secondaryAction:u,footerContent:b})]})})})})}oa.displayName="Drawer";var v2={sm:"gap-4 px-6 py-8",md:"gap-5 px-8 py-12",lg:"gap-6 px-10 py-16"},C2={sm:"xs",md:"sm",lg:"md"},S2={sm:"text-sm leading-5",md:"text-sm leading-5",lg:"text-base leading-6"},N2={sm:"h-10 w-10",md:"h-12 w-12",lg:"h-16 w-16"},w2={sm:20,md:24,lg:32},k2={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"};function hf({icon:e,title:t,description:r,primaryAction:o,secondaryAction:n,actions:a,size:i="md",alignment:s="center",fullHeight:c=false,className:l}){let m=i==="sm"?"sm":"md",d=()=>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(q,{variant:"secondary",size:m,onPress:o.onPress,isDisabled:o.isDisabled,isLoading:o.isLoading,href:o.href,children:o.label}):jsxRuntime.jsx(q,{variant:"secondary",size:m,onPress:o.onPress,isDisabled:o.isDisabled,isLoading:o.isLoading,children:o.label})),n&&jsxRuntime.jsx(Me,{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",v2[i],k2[s],c?"min-h-[320px] justify-center":"",l),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",N2[i]),children:jsxRuntime.jsx(k,{name:e,size:w2[i]})}),jsxRuntime.jsx(pt,{size:C2[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",S2[i]),children:r}),d()]})}function yf({status:e,programName:t,isLoading:r,size:o="sm",shape:n="pill",...a}){if(r)return jsxRuntime.jsx(R,{className:"inline-flex h-6 w-20"});let i={enrolled:"success",eligible:"info",pending:"warning",not_eligible:"neutral",opted_out:"neutral"},s={enrolled:"Enrolled",eligible:"Eligible",pending:"Pending",not_eligible:"Not Eligible",opted_out:"Opted Out"},c=jsxRuntime.jsx(Oe,{variant:i[e],size:o,shape:n,...a,children:s[e]});return t?jsxRuntime.jsx(Gn,{content:t,children:c}):c}function Cf({value:e,onChange:t,onUrlChange:r,accept:o="image/*",maxSize:n,isDisabled:a=false,onUpload:i,className:s,showPreview:c=true,placeholder:l="Drop files here or click to browse"}){let[m,d]=Ue.useState(false),[p,u]=Ue.useState(false),[b,f]=Ue.useState(null),[g,h]=Ue.useState(e),y=Ue.useRef(null),v=async S=>{if(f(null),n&&S.size>n){f(`File size must be less than ${(n/1024/1024).toFixed(2)}MB`);return}if(c&&S.type.startsWith("image/")){let N=new FileReader;N.onloadend=()=>{h(N.result);},N.readAsDataURL(S);}if(i){u(true);try{let N=await i(S);h(N),r?.(N);}catch(N){f("Failed to upload file"),console.error("Upload error:",N);}finally{u(false);}}t?.(S,g);},x=S=>{let N=S.items;if(N.length>0){let T=N[0];if(T.kind==="file"){let w=T.getAsFile();w&&v(w);}}d(false);},C=()=>{h(void 0),f(null),t?.(null),r?.(""),y.current&&(y.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",m?"border-action-brand bg-action-brand/5":"border-border-muted hover:border-border-default",a&&"pointer-events-none opacity-50",b&&"border-feedback-error-border bg-feedback-error-background/50"),onDrop:x,onDropEnter:()=>d(true),onDropExit:()=>d(false),children:[g?jsxRuntime.jsxs("div",{className:"relative flex h-full w-full items-center justify-center p-4",children:[c&&g.startsWith("data:image")?jsxRuntime.jsx("img",{src:g,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(q,{variant:"icon",size:"sm",onPress:C,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:l}),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:S=>{let N=Array.from(S||[]);N.length>0&&v(N[0]);},children:jsxRuntime.jsx(q,{variant:"secondary",size:"sm",isDisabled:a,children:"Choose File"})})]}),p&&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..."})]})})]}),b&&jsxRuntime.jsx("p",{className:"mt-2 text-sm text-feedback-error-text",children:b})]})}function Nf({version:e,isLatest:t,updateAvailable:r,isLoading:o,size:n="sm",shape:a="rounded",...i}){if(o)return jsxRuntime.jsx(R,{className:"inline-flex h-6 w-16"});let s="neutral",c=e;return t?s="success":r&&(s="warning",c=`${e} (Update)`),jsxRuntime.jsx(Oe,{variant:s,size:n,shape:a,...i,children:c})}function pn(e){return jsxRuntime.jsx(reactAriaComponents.Form,{validationBehavior:"aria",...e,className:tailwindMerge.twMerge("flex flex-col gap-6",e.className)})}var I2={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"},B2={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"}},z2={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"},V2={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"},O2={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"},H2={start:"items-start",center:"items-center",end:"items-end",stretch:"items-stretch",baseline:"items-baseline"},W2={start:"justify-start",center:"justify-center",end:"justify-end",between:"justify-between",around:"justify-around",evenly:"justify-evenly"},G2={row:"grid-flow-row",col:"grid-flow-col",dense:"grid-flow-dense","row-dense":"grid-flow-row-dense","col-dense":"grid-flow-col-dense"},U2={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"},K2={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 kf(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 Hc({cols:e=1,gap:t="md",gapX:r,gapY:o,align:n="stretch",justify:a="start",flow:i="row",autoFit:s,autoFill:c,className:l,children:m}){let d=tailwindMerge.twMerge("grid",s||c?"":kf(e,I2,B2),!r&&!o&&z2[t],r&&V2[r],o&&O2[o],H2[n],W2[a],G2[i],l),p={};return s?p.gridTemplateColumns=`repeat(auto-fit, minmax(${s}, 1fr))`:c&&(p.gridTemplateColumns=`repeat(auto-fill, minmax(${c}, 1fr))`),jsxRuntime.jsx("div",{className:d,style:p,children:m})}function Tf({span:e,className:t,children:r}){let o=tailwindMerge.twMerge(kf(e,U2,K2),t);return jsxRuntime.jsx("div",{className:o,children:r})}Hc.Item=Tf;function Y2(e,t){return Ue__namespace.default.isValidElement(e)?e:Yt({value:e,formatter:t,emptyClassName:"text-text-muted",emptyText:"\u2014"})}function J2(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 Z2={neutral:"text-text-body",success:"text-feedback-success",warning:"text-feedback-warning",error:"text-feedback-error",info:"text-feedback-info"};function q2({item:e,dense:t,valueAlign:r}){let o=J2(e),n=o?Z2[o]:"",a=Y2(e.value,e.formatter),i=typeof e.copyable=="function"?e.copyable(e.value):String(e.value),s=jsxRuntime.jsx("span",{className:e.href?"hover:underline cursor-pointer":"",children:a}),c=e.copyable?jsxRuntime.jsx(mi,{value:i,size:"sm",children:jsxRuntime.jsx("span",{className:"sr-only",children:"Copy"})}):null,l=e.copyable&&(e.copyIconPosition==="left"||!e.copyIconPosition),m=e.copyable&&e.copyIconPosition==="right",d=jsxRuntime.jsxs("dd",{className:tailwindMerge.twMerge(t?"text-sm":"text-base","font-medium",r==="start"?"text-left":"text-right",n,e.disabled&&"opacity-50"),children:[jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("inline-flex items-center gap-1",r==="start"?"justify-start":"justify-end"),children:[jsxRuntime.jsxs("span",{className:"inline-flex items-center gap-1",children:[s,e.iconRight]}),m&&c]}),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})]}),p=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"})]}),l&&c,e.href?jsxRuntime.jsx("a",{href:e.href,onClick:e.onAction,className:"block",children:d}):d]});return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("grid items-center",l?"grid-cols-[1fr_auto_auto] gap-x-1":t?"grid-cols-[1fr_auto] gap-x-2":"grid-cols-[1fr_auto] gap-x-4"),children:p})}function Wi({items:e,layout:t="one-column",dense:r=false,valueAlign:o="end",showDividers:n=false,skeleton:a=false,empty:i=false,error:s,className:c}){return a?jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("grid",t==="two-column"?"md:grid-cols-2 gap-x-6":"grid-cols-1",r?"gap-y-1":"gap-y-2",c),children:Array.from({length:e.length||4}).map((l,m)=>jsxRuntime.jsxs("div",{className:"grid grid-cols-[1fr_auto] items-start gap-x-4",children:[jsxRuntime.jsx(R,{className:"h-4 w-24"}),jsxRuntime.jsx(R,{className:"h-5 w-16"})]},m))}):s?jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("text-sm text-feedback-error",c),children:s}):i||!e.length?jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("text-sm text-text-muted",c),children:"No data available"}):jsxRuntime.jsx("dl",{className:tailwindMerge.twMerge("grid",t==="two-column"?"md:grid-cols-2 gap-x-6":"grid-cols-1",r?"gap-y-1":"gap-y-2",c),children:e.map((l,m)=>jsxRuntime.jsxs(Ue__namespace.default.Fragment,{children:[n&&m>0&&t==="one-column"&&jsxRuntime.jsx("div",{className:"col-span-full border-t border-border-default -mt-1 mb-1"}),jsxRuntime.jsx(q2,{item:l,dense:r,valueAlign:o})]},l.id))})}function Rf({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(Wi,{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 Ie={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 Wc=Ue__namespace.createContext(null);function Af(){let e=Ue__namespace.useContext(Wc);if(!e)throw new Error("Hierarchy components must be used within HierarchyExplorer");return e}function Lf({node:e,renderNode:t}){let{selectedId:r,selectNode:o,navigateToNode:n,variant:a,size:i,showBullets:s,rootNodeId:c,stickyRootNode:l,navigationStack:m,setRootNodeSticky:d,useSplitLayout:p}=Af(),u=Ue__namespace.useRef(null),b=Ue__namespace.useRef(null),f=r===e.id,g=e.disabled||false,h=!!(e.children&&e.children.length>0),y=!!(e.metadata&&Object.keys(e.metadata).length>0),v=h||y,x=c!==void 0&&e.id!==void 0&&c===e.id&&m.length===0;Ue__namespace.useLayoutEffect(()=>{x&&l&&u.current&&b.current===null&&requestAnimationFrame(()=>{u.current&&(b.current=u.current.offsetTop);});},[x,l]),Ue__namespace.useEffect(()=>{if(!x||!l||!u.current)return;let E=u.current.parentElement;for(;E;){let J=window.getComputedStyle(E).overflowY;if(J==="auto"||J==="scroll")break;E=E.parentElement;}if(!E)return;let A=()=>{if(!u.current||b.current===null)return;let J=E.getBoundingClientRect(),B=E.scrollTop,Z=J.height,Y=u.current.offsetHeight,M=b.current-B,j=M+Y,V=M<0,U=j>Z;V?d("top",e):U?d("bottom",e):d(null,null);};return E.addEventListener("scroll",A),A(),()=>{E.removeEventListener("scroll",A);}},[x,l,e,d]);let C=()=>{g||(p?o(e):v?n(e):o(e));},S=E=>{g||(E.key==="Enter"||E.key===" ")&&(E.preventDefault(),C());},N={isSelected:f,isDisabled:g,hasChildren:h,hasMetadata:y,level:0},T=tailwindMerge.twMerge("relative cursor-pointer group",g&&"opacity-50 cursor-not-allowed"),w=tailwindMerge.twMerge("absolute inset-0 transition-colors",x&&!f&&!g&&"group-hover:bg-background-hover",x&&f&&!g&&a==="subtle"&&"bg-brand-primary/10 group-hover:bg-brand-primary/15",x&&f&&g&&a==="subtle"&&"bg-brand-primary/10",x&&f&&!g&&a==="solid"&&"bg-brand-primary group-hover:bg-brand-primary/90",x&&f&&g&&a==="solid"&&"bg-brand-primary",!x&&a==="subtle"&&!f&&!g&&"group-hover:bg-background-hover",!x&&a==="subtle"&&f&&!g&&"bg-brand-primary/10 group-hover:bg-brand-primary/15",!x&&a==="subtle"&&f&&g&&"bg-brand-primary/10",!x&&a==="solid"&&!f&&!g&&"group-hover:bg-background-hover",!x&&a==="solid"&&f&&!g&&"bg-brand-primary group-hover:bg-brand-primary/90",!x&&a==="solid"&&f&&g&&"bg-brand-primary"),F=tailwindMerge.twMerge("relative flex items-center gap-2 text-text-body hover:text-text-heading transition-colors",Ie[i].node,x&&!f&&"font-semibold",a==="subtle"&&f&&"text-brand-primary",a==="solid"&&f&&"text-white");return jsxRuntime.jsxs("div",{ref:u,className:T,onClick:C,onKeyDown:S,role:"treeitem","aria-selected":f,"aria-disabled":g,tabIndex:0,"data-node-id":e.id,children:[jsxRuntime.jsx("div",{className:w}),jsxRuntime.jsxs("div",{className:F,children:[s&&jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("relative rounded-full flex items-center justify-center flex-shrink-0 z-20",x&&"bg-brand-primary border-brand-primary",!x&&"bg-background-muted border border-border-default"),style:{width:Ie[i].bullet,height:Ie[i].bullet},children:e.icon&&jsxRuntime.jsx(k,{name:e.icon,size:Ie[i].icon,weight:x?"fill":"regular",className:x?"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})}),v&&!p&&jsxRuntime.jsx("div",{className:"flex-shrink-0",children:jsxRuntime.jsx(k,{name:"CaretRight",size:Ie[i].icon,className:"text-text-muted"})})]})]})}function Ef({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:`${Ie[n].spacing.x+Ie[n].bullet/2}px`,top:`${Ie[n].spacing.y+Ie[n].bullet/2}px`,bottom:`${Ie[n].spacing.y+Ie[n].bullet/2}px`},"aria-hidden":"true"}),e.map(i=>jsxRuntime.jsx(Lf,{node:i,renderNode:a},i.id))]})}function If(){let[e,t]=Ue.useState(()=>typeof window>"u"?false:window.matchMedia("(prefers-reduced-motion: reduce)").matches);return Ue.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 aa({children:e,mode:t="sync",presenceKey:r}){let o=r!==void 0&&Ue__namespace.default.isValidElement(e)?Ue__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 rS={instant:0,fast:150,normal:250,slow:350,slower:500},Gc={xs:"4px",sm:"8px",md:"16px"};function oS(e){return e?typeof e=="string"&&e in Gc?Gc[e]:typeof e=="number"?`${e}px`:e:Gc.sm}function ia({children:e,direction:t,distance:r="sm",duration:o="normal",delay:n=0,className:a}){let i=If(),s=typeof o=="number"?o:rS[o],c=oS(r),l=u=>{switch(t){case "left":return {x:`-${u}`};case "right":return {x:u};case "up":return {y:`-${u}`};case "down":return {y:u}}},m=i?{opacity:0}:{opacity:0,...l(c)},d={opacity:1,x:0,y:0},p=i?{opacity:0}:{opacity:0,...l(c)};return jsxRuntime.jsx(framerMotion.motion.div,{className:a,initial:m,animate:d,exit:p,transition:{duration:i?0:s/1e3,delay:i?0:n/1e3,ease:[.4,0,.2,1]},children:e})}function Ki({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",Ie[r].node),children:[jsxRuntime.jsx(k,{name:"CaretLeft",size:Ie[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 Yi({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",Ie[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:Ie[n].bullet,height:Ie[n].bullet},children:e.icon&&jsxRuntime.jsx(k,{name:e.icon,size:Ie[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 Of({currentItems:e,currentParent:t,navigationStack:r,selectedId:o,variant:n,size:a,showBullets:i,slideDirection:s,viewKey:c,hasHeight:l,rootNodeStickyState:m,renderNodeList:d,renderDetailContent:p,onNavigateBack:u}){return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[r.length===0&&m.position&&m.node&&jsxRuntime.jsx(Yi,{node:m.node,position:m.position,selectedId:o,variant:n,size:a,showBullets:i}),r.length>0&&jsxRuntime.jsx(Ki,{navigationStack:r,onNavigateBack:u,size:a}),jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("relative",l&&"overflow-auto h-full"),children:jsxRuntime.jsx(aa,{mode:"wait",presenceKey:c,children:r.length===0?d(e,true):jsxRuntime.jsx(ia,{direction:s,distance:"100%",duration:"normal",children:p(t)})})})]})}function Kc(e,t){for(let r of e){if(r.id===t)return r;if(r.children&&r.children.length>0){let o=Kc(r.children,t);if(o)return o}}return null}function Ji(e){if(e!==void 0)return typeof e=="number"?`${e}px`:e}function Hf(e,t){if(process.env.NODE_ENV!=="development")return;let r=new Set,o=(n,a="root")=>{for(let i=0;i<n.length;i++){let s=n[i],c=`${a}[${i}]`;s.id?r.has(s.id)?console.warn(`[HierarchyExplorer] Duplicate node ID found: "${s.id}". Each node must have a unique ID.`):r.add(s.id):console.warn(`[HierarchyExplorer] Node at ${c} is missing an "id" field. Node name: "${s.name||"(unnamed)"}"`),s.children&&o(s.children,`${c}.children`);}};o(e),t&&!r.has(t)&&console.warn(`[HierarchyExplorer] Root node ID "${t}" not found in data. No node will be highlighted as root.`);}function Gf({data:e,currentItems:t,navigationStack:r,selectedId:o,variant:n,size:a,showBullets:i,rootNodeStickyState:s,renderNodeList:c,renderDetailContent:l,renderEmptyState:m,onNavigateBack:d}){let p=o?Kc(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(Yi,{node:s.node,position:s.position,selectedId:o,variant:n,size:a,showBullets:i}),r.length>0&&jsxRuntime.jsx(Ki,{navigationStack:r,onNavigateBack:d,size:a}),jsxRuntime.jsx("div",{className:"flex-1 overflow-auto",children:c(t,r.length===0)})]}),jsxRuntime.jsx("div",{className:"flex-1 min-w-0 overflow-auto bg-background-body",children:jsxRuntime.jsx(aa,{mode:"wait",presenceKey:p?.id||"empty",children:p?jsxRuntime.jsx(ia,{direction:"left",duration:"fast",children:l(p)}):m?m():jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("text-text-muted text-center",Ie[a].node,"py-8"),children:"Select an item to view details"})})})]})}function Uf({data:e,renderNode:t,onNodeSelect:r,onNavigate:o,selectedId:n,rootNodeId:a,stickyRootNode:i=true,height:s,minHeight:c,maxHeight:l,variant:m="subtle",size:d="md",showBullets:p=true,layout:u="auto",splitBreakpoint:b=768,renderEmptyState:f,className:g,"aria-label":h="Hierarchy explorer"}){let[y,v]=Ue__namespace.useState(null),[x,C]=Ue__namespace.useState([]),[S,N]=Ue__namespace.useState("left"),[T,w]=Ue__namespace.useState({position:null,node:null}),{ref:F,width:E}=Ho(),A=Ue__namespace.useMemo(()=>u==="split"?true:u==="single"?false:E>=b,[u,E,b]),J=n!==void 0?n:y;Ue__namespace.useEffect(()=>{Hf(e,a);},[e,a]);let B=x.length>0?x[x.length-1]:null,Z=B?B.children||[]:e,Y=Ue__namespace.useCallback(W=>{N("left"),C(D=>[...D,W]),o?.(W,[...x,W]);},[x,o]),G=Ue__namespace.useCallback(()=>{N("right"),C(W=>{let D=W.slice(0,-1);return o?.(D.length>0?D[D.length-1]:null,D),D});},[o]),M=Ue__namespace.useCallback(W=>{n===void 0&&v(W.id),r?.(W,[...x,W]);},[n,x,r]),j=Ue__namespace.useCallback((W,D)=>{w({position:W,node:D});},[]),V=Ue__namespace.useMemo(()=>({selectedId:J,selectNode:M,navigateToNode:Y,navigateBack:G,rootNodeId:a,stickyRootNode:i,variant:m,size:d,showBullets:p,onNodeSelect:r,onNavigate:o,navigationStack:x,setRootNodeSticky:j,useSplitLayout:A}),[J,M,Y,G,a,i,m,d,p,r,o,x,j,A]),U=Ue__namespace.useRef(null);Ue__namespace.useEffect(()=>{if(!a||!U.current||x.length>0||A)return;let W=U.current,D=setTimeout(()=>{let $=W.querySelector(`[data-node-id="${a}"]`);$&&$.scrollIntoView({behavior:"auto",block:"center",inline:"nearest"});},100);return ()=>clearTimeout(D)},[a,x.length,A]);let z={height:Ji(s),minHeight:Ji(c),maxHeight:Ji(l)},I=s!==void 0||l!==void 0,O=B?B.id:"root",K=Ue__namespace.useCallback((W,D=false)=>jsxRuntime.jsx(Ef,{items:W,showConnector:D,scrollContainerRef:D?U:null,showBullets:p,size:d,renderNode:t}),[p,d,t]),L=Ue__namespace.useCallback(W=>W?jsxRuntime.jsx(Rf,{node:W,renderNodeList:K}):null,[K]);return jsxRuntime.jsx(Wc.Provider,{value:V,children:jsxRuntime.jsx("div",{ref:F,className:tailwindMerge.twMerge("select-none bg-background-surface rounded-lg border border-border-default relative",I&&"overflow-hidden",!I&&"h-full flex flex-col",A&&!I&&"flex-row",A&&I&&"flex",g),style:z,role:"tree","aria-label":h,children:A?jsxRuntime.jsx(Gf,{data:e,currentItems:Z,navigationStack:x,selectedId:J,variant:m,size:d,showBullets:p,rootNodeStickyState:T,renderNodeList:K,renderDetailContent:L,renderEmptyState:f,onNavigateBack:G}):jsxRuntime.jsx(Of,{currentItems:Z,currentParent:B,navigationStack:x,selectedId:J,variant:m,size:d,showBullets:p,slideDirection:S,viewKey:O,hasHeight:I,rootNodeStickyState:T,renderNodeList:K,renderDetailContent:L,onNavigateBack:G})})})}function fS(e,t){return Yt({value:e,formatter:t,emptyClassName:"text-text-muted",emptyText:"\u2014"})}function gS(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 bS({points:e,className:t,ariaLabel:r}){let i=e.map(u=>typeof u.y=="number"?u.y:0);if(i.length===0)return null;let s=Math.min(...i),l=Math.max(...i)-s,m=u=>l===0?20/2:18-(u-s)/l*16,d=60/Math.max(e.length-1,1),p=e.map((u,b)=>{let f=2+b*d,g=m(typeof u.y=="number"?u.y:0);return `${b===0?"M":"L"} ${f} ${g}`}).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:p,fill:"none",strokeWidth:"1.5",className:"stroke-border-muted"})})}function Kf({label:e,value:t,formatter:r,delta:o,deltaPeriodLabel:n,deltaIntent:a="upIsGood",trend:i,status:s,helpText:c,size:l="md",orientation:m="vertical",isLoading:d,empty:p,error:u,onClick:b,className:f,renderValue:g,renderDelta:h,renderTrend:y}){let x={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"}}[l],C=d?jsxRuntime.jsx(R,{className:"h-7 w-20"}):p?jsxRuntime.jsx("span",{className:"text-text-muted",children:"\u2014"}):u?jsxRuntime.jsx("span",{className:"text-feedback-error text-sm",children:typeof u=="string"?u:"Error"}):g?g(t):fS(t,r),S=h?h(o):o!==void 0&&!d&&!p&&!u?jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge(x.delta,gS(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(R,{className:"h-4 w-24"}):null,N=y?y(i):i&&i.length>0&&!d&&!u?jsxRuntime.jsx(bS,{points:i,ariaLabel:`${e} trend`,className:p?"opacity-30":""}):d&&i!==void 0?jsxRuntime.jsx(R,{className:"h-5 w-16"}):null;return jsxRuntime.jsxs("section",{className:tailwindMerge.twMerge("flex min-w-0",m==="horizontal"?`items-center ${x.gap}`:`flex-col ${x.gap}`,b&&"cursor-pointer hover:bg-background-muted rounded-lg px-3 py-2 -mx-3 -my-2 transition-colors",f),"aria-labelledby":`kpi-${e}`,onClick:b,children:[jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[jsxRuntime.jsx("h3",{id:`kpi-${e}`,className:tailwindMerge.twMerge(x.label,"font-medium text-text-caption truncate"),children:d?jsxRuntime.jsx(R,{className:"h-4 w-24"}):e}),c&&!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(x.value,"font-semibold",u?"text-feedback-error":"text-text-heading"),"aria-label":`Value: ${C}`,children:C}),s&&!d&&!u&&jsxRuntime.jsx(Oe,{variant:s.tone||"neutral",size:"sm",children:s.value})]}),(S||N)&&jsxRuntime.jsxs("div",{className:"flex items-center gap-3",children:[S,N]})]})}var xS={xs:"gap-2",sm:"gap-3",md:"gap-4",lg:"gap-6",xl:"gap-8"},hS={start:"items-start",center:"items-center",stretch:"items-stretch"};function yS(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 Jc({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,className:s}){let c=i?Ue__namespace.default.Children.map(e,l=>Ue__namespace.default.isValidElement(l)&&l.type&&typeof l.type!="string"&&"displayName"in l.type?Ue__namespace.default.cloneElement(l,{isLoading:true}):l):e;return jsxRuntime.jsxs("section",{className:tailwindMerge.twMerge("w-full",s),"aria-label":"Key metrics",children:[a&&jsxRuntime.jsx("div",{className:"mb-4",children:a}),jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("grid",yS(t),xS[r],hS[o],n&&"auto-rows-fr","w-full"),children:c})]})}Jc.displayName="KpiGroup";function Xf({items:e,renderItem:t,selectedId:r,onSelect:o,onHoverChange:n,isLoading:a=false,loadingState:i,error:s=null,renderLoadingSkeleton:c,loadingSkeletonCount:l=5,emptyMessage:m="No results found.",variant:d="relaxed",showDividers:p=true,onLoadMore:u,hasMore:b=false,enableVirtualization:f,estimatedItemSize:g=60,loadingIndicator:h,"aria-label":y,className:v="",style:x}){let[C,S]=Ue.useState(null),N=Ue.useRef(null),T=Ue.useRef(new Map),{scrollRef:w,loadMoreRef:F,virtualizer:E,virtualItems:A,isLoadingMore:J,computedLoadingState:B}=Pr({items:e,onLoadMore:u,hasMore:b,isLoading:a,loadingState:i,enableVirtualization:f,estimatedItemSize:g,overscan:5}),Z=w??N,Y=Ue.useCallback((L,W)=>{o?.(L,W);},[o]),G=Ue.useCallback((L,W)=>{S(L),n?.(L,W);},[n]),M=Ue.useCallback((L,W)=>{let D=L?.id;return typeof D=="string"&&D?D:`item-${W}`},[]),j=Ue.useCallback(L=>{if(!Z.current||e.length===0)return;let W=document.activeElement,D=e.findIndex((Le,Re)=>{let kr=M(Le,Re),Ut=T.current.get(kr);return Ut&&(Ut===W||Ut.contains(W))}),$=D;switch(L.key){case "ArrowDown":L.preventDefault(),$=D===-1?0:Math.min(D+1,e.length-1);break;case "ArrowUp":L.preventDefault(),$=D===-1?0:Math.max(D-1,0);break;case "Home":L.preventDefault(),$=0;break;case "End":L.preventDefault(),$=e.length-1;break;default:return}let ne=M(e[$],$);T.current.get(ne)?.focus();},[e,M,Z]),V=["flex flex-col","bg-background-surface","focus:outline-none focus:ring-2 focus:ring-border-focus focus:ring-offset-2"],U={dense:"gap-0",relaxed:"gap-0"},z=p?"divide-y divide-border-muted":"",I=[...V,U[d],z,v].filter(Boolean).join(" ");if(B==="loading"||a&&e.length===0){let L=c?jsxRuntime.jsx(jsxRuntime.Fragment,{children:Array.from({length:l}).map((W,D)=>jsxRuntime.jsx("div",{children:c()},`skeleton-${D}`))}):jsxRuntime.jsx(xu,{count:l,className:"space-y-0",children:jsxRuntime.jsxs("div",{className:"flex items-center gap-3 px-4 py-3",children:[jsxRuntime.jsx(R,{width:16,height:16,variant:"circle"}),jsxRuntime.jsxs("div",{className:"flex-1 space-y-2",children:[jsxRuntime.jsx(R,{width:"75%",height:16}),jsxRuntime.jsx(R,{width:"50%",height:14})]}),jsxRuntime.jsx(R,{width:60,height:20})]})});return jsxRuntime.jsx("div",{ref:Z,className:I,style:x,role:"listbox","aria-label":y,"aria-busy":"true","aria-live":"polite",children:L})}if(s)return jsxRuntime.jsx("div",{ref:Z,className:I,style:x,role:"listbox","aria-label":y,"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:Z,className:I,style:x,role:"listbox","aria-label":y,"aria-live":"polite",children:jsxRuntime.jsx("div",{className:"p-4 text-center text-text-muted",children:m})});let K=E?A?.map(L=>({virtualItem:L,item:e[L.index],index:L.index}))||[]:e.map((L,W)=>({item:L,index:W,virtualItem:null}));return jsxRuntime.jsxs("div",{ref:Z,className:I,style:{...x,...u&&{overflow:"auto",height:x?.height||"600px"}},role:"listbox","aria-label":y,"aria-live":"polite",onKeyDown:j,tabIndex:0,children:[E&&jsxRuntime.jsxs("div",{style:{height:`${E.getTotalSize()}px`,width:"100%",position:"relative"},children:[K.map(({virtualItem:L,item:W,index:D})=>{if(!L)return null;let $=M(W,D),ne=r===$,Ne=C===$,Le={id:$,role:"option","aria-selected":ne,"aria-current":ne?"page":void 0,tabIndex:ne||r==null&&D===0?0:-1,onClick:Re=>Y(Re,W),onMouseEnter:Re=>G(Re,W),onMouseLeave:Re=>G(null),onFocus:Re=>G(Re,W),onBlur:Re=>G(null),ref:Re=>{Re?T.current.set($,Re):T.current.delete($);}};return jsxRuntime.jsx("div",{"data-index":L.index,ref:E.measureElement,style:{position:"absolute",top:0,left:0,width:"100%",transform:`translateY(${L.start}px)`},children:t({item:W,index:D,isSelected:ne,isHovered:Ne,rowProps:Le})},$)}),u&&b&&jsxRuntime.jsx("div",{ref:F,style:{position:"absolute",top:`${E.getTotalSize()}px`,left:0,width:"100%",height:1,pointerEvents:"none"}}),J&&jsxRuntime.jsx("div",{style:{position:"absolute",top:`${E.getTotalSize()}px`,left:0,width:"100%"},children:h||jsxRuntime.jsx(Rt,{state:"loading-more"})})]}),!E&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[K.map(({item:L,index:W})=>{let D=M(L,W),$=r===D,ne=C===D,Ne={id:D,role:"option","aria-selected":$,"aria-current":$?"page":void 0,tabIndex:$||r==null&&W===0?0:-1,onClick:Le=>Y(Le,L),onMouseEnter:Le=>G(Le,L),onMouseLeave:Le=>G(null),onFocus:Le=>G(Le,L),onBlur:Le=>G(null),ref:Le=>{Le?T.current.set(D,Le):T.current.delete(D);}};return jsxRuntime.jsx("div",{children:t({item:L,index:W,isSelected:$,isHovered:ne,rowProps:Ne})},D)}),u&&b&&jsxRuntime.jsx("div",{ref:F,style:{height:1}}),J&&(h||jsxRuntime.jsx(Rt,{state:"loading-more"}))]})]})}function Qf({id:e,title:t,subtitle:r,meta:o,leading:n,trailing:a,isSelected:i=false,isHovered:s=false,disabled:c=false,href:l,size:m="md",onClick:d,onMouseEnter:p,onMouseLeave:u,className:b="",style:f}){let g=()=>{!c&&d&&d(e);},h=()=>{!c&&p&&p(e);},y=()=>{!c&&u&&u(e);},x={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"}}[m],C=["flex items-center w-full text-left transition-all duration-200 ease-in-out",x.container,"border-l-2 border-l-transparent","rounded-sm",ke()],S=[s&&!i&&"bg-background-hover",i&&"bg-action-default/5 border-l-action-default shadow-sm",c&&"opacity-50 cursor-not-allowed",!c&&!i&&"hover:bg-background-hover"],N=[...C,...S,b].filter(Boolean).join(" "),T=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 ${x.title}`,title:typeof t=="string"?t:void 0,children:t}),r&&jsxRuntime.jsx("div",{className:`text-text-caption truncate ${x.subtitle} ${x.subtitleSpacing}`,title:typeof r=="string"?r:void 0,children:r}),o&&jsxRuntime.jsx("div",{className:`text-text-muted ${x.meta} ${x.metaSpacing}`,children:o})]})})}),a&&jsxRuntime.jsx("div",{className:"flex-shrink-0",children:a})]});return l?jsxRuntime.jsx("a",{href:l,className:N,style:f,onMouseEnter:h,onMouseLeave:y,"aria-selected":i,"aria-current":i?"page":void 0,tabIndex:c?-1:0,children:T}):jsxRuntime.jsx("button",{type:"button",className:N,style:f,onClick:g,onMouseEnter:h,onMouseLeave:y,disabled:c,"aria-selected":i,tabIndex:c?-1:0,children:T})}function $f({header:e,children:t,footer:r,width:o="md",tone:n="neutral",elevation:a="sm",showDivider:i=true,"aria-label":s,"aria-labelledby":c,className:l="",style:m}){let d={sm:"w-64",md:"w-80",lg:"w-96",xl:"w-[28rem]","2xl":"w-[32rem]",auto:"w-auto"},p={neutral:"bg-background-surface",subtle:"bg-background-subtle",brand:"bg-background-brand"},u={none:"",sm:"shadow-sm",md:"shadow-md"},b=tailwindMerge.twMerge("flex flex-col h-full",d[o],p[n],u[a],i&&"border-r border-border-muted",l);return jsxRuntime.jsxs("div",{className:b,style:m,role:"complementary","aria-label":s,"aria-labelledby":c,children:[e&&jsxRuntime.jsx("div",{className:"flex-shrink-0 sticky top-0 z-10 bg-inherit border-b border-border-muted",children:e}),jsxRuntime.jsx("div",{className:"flex-1 overflow-y-auto overflow-x-hidden",children:t}),r&&jsxRuntime.jsx("div",{className:"flex-shrink-0 border-t border-border-muted bg-inherit",children:r})]})}var qc=[{type:"navigation",position:"bottom-right",showCompass:true,showGeolocate:true,showResetZoom:true}];var _f="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJcAAACXCAYAAAAYn8l5AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAABtCSURBVHgB7Z2Jkty0GoV7hlz2HcIeSPGkPCmELRC2sO8kN5+L03XmR7IlW3LbSZ+qrp7pdtuydPTvki9u3Lhx/7ASLi4uDvfv973cvXv3Dn/++efh2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CKxDNRKMlpWD7MfL4fpmRivouXJQTJpmubjdDaj6JfeNjsstz7ocrZnOSaGcYiwrHNHEbecf03fE1hR7qgVo99vl/IZXQLY8RfNSvSJkWodyR41vr4h50bknYYhINUG8/u1L3p8q9K20l5Ky9ecCzV91hAQDS0eIgtArWU3vewVLXA0yoopUDTc2EZI7fBKeaQkH7gdmvMEgw11AkbR5N6amqujqnCAkYbl8gHs4wFShtxY9vm9oFqdwubeWeqKTznacNJ/CbCpqTjwKTE7jMs3QHaRzUkyvCvTdKQmzuGyfyqHEKJkOQJmBwazq0Nl88X77Dk09SoHR6YU2RxMUSDP8fw6bxvv7AnkLrBK/29eNS5r4U+x8EA6nBlsj0ETm9gjUO7p5DqPDOkOIptbQgNDeH/unQWDz/ZdA0zBOJ/f1sXQI6QyPqxtnMII3/NEh9kJGEBI+zqmyVwLXglLm+u3o6W6t8oiBZc1pwpF3Z/Tq1kX1oKDcglalt0Mq5G+Zzha8dbY+rvA7Erz2Jf1VQQm9t9zxzU0kLlDp2uX9IwZVZxyO2G19y9ieD165lH9Fosk8DI5sufSSLSZBQSF3maHFuDcVGsLHjqrgKZLUX5JqjGehdg3ULYhq7fAkpy5voaGxxtFgmygtNBJMSfalN4Ghq0DVGhNw+TbZUJBvl6KdlImJXLsphrcJtyi/rBx7bNiPF3drqCfiaI7S/0yAfzPgdNJKqQ+lwh1XfSmYClPT+R2b/03chQhh/fQH7Dav+EOO2oojEn8WdyuYzZbw6+e/WpX6eGYK0xR3BJhumCL/0lYS1EWShiFKXp4HOjIdwcvzNzjuNg4uobmh3lmZNljg+RHIokP7iJ+//S9/0JF4UWgALQSUifcPn+AvCxKcp8u7vR5XAiSC3WYDByQWZ1myzFUtOgbu577+f5ZPq/B5Pf+nAAAAAElFTkSuQmCC";function ng(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 TS="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 ag(e){return tailwindMerge.twMerge(TS,e)}function Ur({position:e="top-right",className:t,style:r,children:o}){return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge(ng(e),t),style:r,children:o})}function Ht({icon:e,iconSize:t=24,onPress:r,isDisabled:o=false,className:n,iconClassName:a="text-text-primary",variant:i="secondary",isActive:s=false,ariaLabel:c,iconWeight:l="regular",...m}){let d=tailwindMerge.twMerge(ag(),s&&"bg-action-brand hover:bg-action-brand-hover border-action-brand",n),p=tailwindMerge.twMerge(a,s&&"text-text-onPrimary");return jsxRuntime.jsx(q,{...m,className:d,onPress:r,variant:i,size:"sm",isDisabled:o,"aria-label":c,"aria-pressed":s||void 0,type:"button",children:jsxRuntime.jsx(k,{name:e,size:t,className:p,weight:l})})}var LS=e=>[{id:"streets",name:"Streets",description:"Standard street map with traffic data",preview:e?rg:og},{id:"satellite",name:"Satellite",description:"Aerial imagery with street labels",preview:tg},{id:"neutral",name:"Neutral",description:"Clean design with light/dark variants",preview:e?_f:eg}];function FS({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 lg({position:e="bottom-left",className:t,style:r,currentMapType:o="streets",onMapTypeChange:n,layers:a=[],onLayerToggle:i}){let{isDarkTheme:s}=mt(),{isMobile:c}=Vo(),[l,m]=Ue.useState(false),d=LS(s),p=f=>{n?.(f);},u=a.filter(f=>f.legend),b=jsxRuntime.jsxs("div",{className:c?"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:()=>p(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))})]}),u.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:u.map(f=>jsxRuntime.jsx(oo,{isSelected:f.visible!==false,onChange:()=>i?.(f.id),children:jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[f.legend&&jsxRuntime.jsx(FS,{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(Ur,{position:e,className:t,style:r,children:jsxRuntime.jsx("div",{className:"relative",children:c?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(Ht,{icon:"Stack",ariaLabel:"Map layers and settings",onPress:()=>m(true)}),jsxRuntime.jsx(Zt,{isOpen:l,onClose:()=>m(false),title:"Map layers",animationVariant:"scale",children:b})]}):jsxRuntime.jsxs(reactAriaComponents.DialogTrigger,{children:[jsxRuntime.jsx(Ht,{icon:"Stack",ariaLabel:"Map layers and settings"}),jsxRuntime.jsx(We,{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:b})})]})})})}function dg({position:e="top-right",className:t,style:r,onToggle:o,isActive:n=false}){return jsxRuntime.jsx(Ur,{position:e,className:tailwindMerge.twMerge("md:hidden",t),style:r,children:jsxRuntime.jsx(Ht,{icon:"ListDashes",onPress:o,isActive:n,ariaLabel:n?"Hide list view":"Show list view"})})}var zS={sm:"gap-2",md:"gap-4",lg:"gap-6"};function qi({position:e="top-right",className:t,style:r,children:o,orientation:n="vertical",spacing:a="md"}){return jsxRuntime.jsx(Ur,{position:e,style:r,children:jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("flex",n==="vertical"?"flex-col":"flex-row",zS[a],t),children:o})})}function mg({mapRef:e,position:t="bottom-right",className:r,style:o,showCompass:n=true,showGeolocate:a=true,showResetZoom:i=true,onResetZoom:s,onCompassClick:c,onGeolocateClick:l}){let[m,d]=Ue.useState(false),p=Ue.useRef(true);Ue.useEffect(()=>()=>{p.current=false;},[]);let u=()=>{c?c():e.current&&e.current.easeTo({bearing:0,duration:500});},b=async()=>{if(!m)if(l)l();else {if(!navigator.geolocation){console.warn("Geolocation is not supported by this browser.");return}if(navigator.permissions?.query)try{if((await navigator.permissions.query({name:"geolocation"})).state==="denied"){console.warn("Geolocation permission was previously denied. Please enable location services in your browser settings.");return}}catch{}d(true),navigator.geolocation.getCurrentPosition(v=>{if(!p.current)return;let{latitude:x,longitude:C}=v.coords;e.current&&e.current.flyTo({center:[C,x],zoom:15,duration:2e3}),d(false);},v=>{if(p.current){switch(console.warn("Geolocation error:",{code:v.code,message:v.message,PERMISSION_DENIED:v.PERMISSION_DENIED,POSITION_UNAVAILABLE:v.POSITION_UNAVAILABLE,TIMEOUT:v.TIMEOUT}),v.code){case v.PERMISSION_DENIED:console.warn("Location access denied. Please enable location services in your browser settings.");break;case v.POSITION_UNAVAILABLE:console.warn("Location information unavailable.");break;case v.TIMEOUT:console.warn("Location request timed out.");break;default:console.warn("Error getting location:",v.message);break}d(false);}},{enableHighAccuracy:true,timeout:1e4,maximumAge:0});}};if(!n&&!a&&!i)return null;let f=!i&&n,g=!i&&!n&&a,h=!a&&n;return jsxRuntime.jsxs(qi,{position:t,className:r,style:o,spacing:"sm",children:[i&&jsxRuntime.jsx(Ht,{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(Ht,{icon:"Compass",onPress:u,ariaLabel:"Reset map orientation",className:tailwindMerge.twMerge(!f&&"rounded-t-none border-t-0",!h&&"rounded-b-none border-b-0")}),a&&jsxRuntime.jsx(Ht,{icon:m?"Spinner":"NavigationArrow",onPress:b,isDisabled:m,ariaLabel:"Go to my location",iconClassName:tailwindMerge.twMerge("text-text-primary",m&&"animate-spin"),className:tailwindMerge.twMerge(!g&&"rounded-t-none border-t-0",!g&&n&&"lg:rounded-t lg:border-t")})]})}function bg({position:e="top-left",className:t,style:r,onSearch:o,placeholder:n="Search places...",showSearchInput:a=true}){let[i,s]=Ue.useState(false),[c,l]=Ue.useState(""),m=()=>{a?s(!i):o&&o("");},d=u=>{u.preventDefault(),o&&c.trim()&&(o(c.trim()),s(false));},p=u=>{u.key==="Escape"&&s(false);};return jsxRuntime.jsx(Ur,{position:e,className:t,style:r,children:jsxRuntime.jsxs("div",{className:"relative",children:[jsxRuntime.jsx(Ht,{icon:"MagnifyingGlass",onPress:m,ariaLabel:"Search"}),i&&a&&jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("absolute top-12 left-0 min-w-64","bg-background-surface border border-border rounded-lg shadow-xl p-3"),children:jsxRuntime.jsx("form",{onSubmit:d,children:jsxRuntime.jsxs("div",{className:"flex items-center space-x-2",children:[jsxRuntime.jsx("input",{type:"text",value:c,onChange:u=>l(u.target.value),onKeyDown:p,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(q,{type:"submit",variant:"brand",size:"sm",className:"px-3 py-2",children:"Search"})]})})})]})})}var GS={navigation:"bottom-right",layers:"bottom-left",search:"top-left",list:"top-right",custom:"top-right"};function jc(e){return e.position??GS[e.type]}function xg(e,t,r){let o=jc(e),n=e.id??`${e.type}-${t}`;switch(e.type){case "navigation":{let i=e.showResetZoom!==false&&r.showResetButton;return jsxRuntime.jsx(mg,{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(lg,{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(bg,{position:o,onSearch:e.onSearch,placeholder:e.placeholder,showSearchInput:e.showSearchInput,style:e.style,className:e.className},n);case "list":return jsxRuntime.jsx(dg,{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 Qc(e,t){let r=e.reduce((n,a,i)=>{let s=jc(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(xg(a[0].control,a[0].index,t));continue}o.push(jsxRuntime.jsx(qi,{position:n,spacing:"sm",children:a.map(({control:i,index:s})=>xg(i,s,t))},`group-${n}`));}return o}function ji(){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 $c={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 _c(e){return e.kind==="vector"}function ed(e){return e.kind==="geojson"}function td(e){return e.kind==="customPins"}function rd(e){return e.kind==="raster"}function ua(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(KS,{spec:o,mapType:t},o.id);case "geojson":return jsxRuntime.jsx(JS,{spec:o,mapType:t},o.id);case "customPins":return jsxRuntime.jsx(ZS,{spec:o,mapType:t},o.id);case "raster":return jsxRuntime.jsx(qS,{spec:o},o.id);case "clusteredVector":return jsxRuntime.jsx(YS,{spec:o,mapType:t},o.id);default:return console.warn("[Layers] Unknown layer kind:",o.kind),null}})})}function KS({spec:e,mapType:t}){let{colorMode:r}=mt(),o=Ue.useMemo(()=>vg(e.style,e.renderAs,r,t),[e.style,e.renderAs,r,t]),n=Ue.useMemo(()=>({visibility:e.visible===false?"none":"visible"}),[e.visible]),a={id:e.id,type:yg(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(nN.Source,{...s,children:jsxRuntime.jsx(nN.Layer,{...a})})}function YS({spec:e}){let{colorMode:t,isDarkTheme:r}=mt(),o=1.25,n=9,a=3,i=n*1.4,s=.2,c=[0,5],l=Ue.useMemo(()=>r?{clusters:e.clusterStyle?.color?Wt(e.clusterStyle.color):"#000000",shadow:e.clusterStyle?.shadowColor||"rgba(0, 0, 0, 0.5)",point:{fill:e.pointStyle?.color?Wt(e.pointStyle.color):"#000000",stroke:e.pointStyle?.borderColor||"#ffffff",shadow:"rgba(0, 0, 0, 0.5)"},text:{onCluster:"#ffffff"},selected:{fill:e.selectedStyle?.color?Wt(e.selectedStyle.color):"#444ae1"}}:{clusters:e.clusterStyle?.color?Wt(e.clusterStyle.color):"#000000",shadow:e.clusterStyle?.shadowColor||"rgba(0, 0, 0, 0.3)",point:{fill:e.pointStyle?.color?Wt(e.pointStyle.color):"#000000",stroke:e.pointStyle?.borderColor||"#ffffff",shadow:"rgba(0, 0, 0, 0.3)"},text:{onCluster:"#ffffff"},selected:{fill:e.selectedStyle?.color?Wt(e.selectedStyle.color):"#444ae1"}},[r,t,e.clusterStyle,e.pointStyle,e.selectedStyle]),m=Ue.useMemo(()=>e.clusterStyle?.sizes?e.clusterStyle.sizes.map(({threshold:g,radius:h})=>({threshold:g,radius:h,color:l.clusters})):[{threshold:30,radius:20,color:l.clusters},{threshold:50,radius:30,color:l.clusters},{threshold:100,radius:40,color:l.clusters}],[e.clusterStyle?.sizes,l.clusters]),d=g=>["step",["get","point_count"],g[0].radius,...g.flatMap(({threshold:h,radius:y})=>[h,y])],p=g=>["step",["get","point_count"],g[0].radius*o,...g.flatMap(({threshold:h,radius:y})=>[h,y*o])],u=e.tileset.startsWith("mapbox://"),b={id:`${e.id}-source`,type:"vector"};u?b.url=e.tileset:(b.tiles=[e.tileset],b.minzoom=0,b.maxzoom=22);let f=Ue.useMemo(()=>{let g=e.pointStyle?.radius??n,h=e.pointStyle?.borderWidth??a,y=e.selectedStyle?.radius??n*1.5,v=x=>{let C={...x};return e.minZoom!==void 0&&(C.minzoom=e.minZoom),e.maxZoom!==void 0&&(C.maxzoom=e.maxZoom),C};return [v({id:`${e.id}-cluster-shadows`,type:"circle","source-layer":e.sourceLayer,filter:["==",["get","cluster"],true],paint:{"circle-radius":p(m),"circle-color":l.shadow,"circle-blur":.5,"circle-translate":[0,8]}}),v({id:`${e.id}-points-shadow`,type:"circle","source-layer":e.sourceLayer,filter:["all",["!=",["get","cluster"],true],["!=",["get","id"],e.selectedId||"selected"]],paint:{"circle-radius":i,"circle-color":l.point.shadow,"circle-blur":s,"circle-translate":c}}),v({id:`${e.id}-clusters`,type:"circle","source-layer":e.sourceLayer,filter:["==",["get","cluster"],true],paint:{"circle-radius":d(m),"circle-color":["step",["get","point_count"],m[0].color,...m.flatMap(({threshold:x,color:C})=>[x,C])]}}),v({id:`${e.id}-cluster-count`,type:"symbol","source-layer":e.sourceLayer,filter:["==",["get","cluster"],true],layout:{"text-field":["case",["has","point_count_abbreviated"],["get","point_count_abbreviated"],["to-string",["get","point_count"]]],"text-font":["DIN Offc Pro Medium","Arial Unicode MS Bold"],"text-size":14,"text-offset":[0,.1]},paint:{"text-color":l.text.onCluster}}),v({id:`${e.id}-points`,type:"circle","source-layer":e.sourceLayer,filter:["all",["!=",["get","cluster"],true],["!=",["get","id"],e.selectedId||"selected"]],paint:{"circle-radius":g,"circle-color":l.point.fill,"circle-stroke-width":h,"circle-stroke-color":l.point.stroke}}),v({id:`${e.id}-selected-point`,type:"circle","source-layer":e.sourceLayer,filter:["==",["get","id"],e.selectedId||"selected"],paint:{"circle-radius":y,"circle-color":l.selected.fill,"circle-stroke-width":h,"circle-stroke-color":"#ffffff"}})]},[e.id,e.sourceLayer,e.selectedId,e.minZoom,e.maxZoom,e.pointStyle,e.selectedStyle,m,l,n,a,i,s]);return jsxRuntime.jsx(nN.Source,{...b,children:f.map(g=>jsxRuntime.jsx(nN.Layer,{...g},g.id))})}function JS({spec:e,mapType:t}){let{colorMode:r}=mt(),o=Ue.useMemo(()=>typeof e.data=="string"?null:e.data,[e.data]),n=Ue.useMemo(()=>vg(e.style,e.renderAs,r,t,o),[e.style,e.renderAs,r,t,o]),a=Ue.useMemo(()=>({visibility:e.visible===false?"none":"visible"}),[e.visible]),i=Ue.useMemo(()=>(typeof e.data=="string",e.data),[e.data]),s={id:`${e.id}-source`,type:"geojson",data:i};e.cluster?.enabled&&(s.cluster=true,s.clusterRadius=e.cluster.radius??50,s.clusterMaxZoom=e.cluster.maxZoom??14);let c={id:e.id,type:yg(e.renderAs),paint:n,layout:a};return e.minZoom!==void 0&&(c.minzoom=e.minZoom),e.maxZoom!==void 0&&(c.maxzoom=e.maxZoom),jsxRuntime.jsx(nN.Source,{...s,children:jsxRuntime.jsx(nN.Layer,{...c})})}function ZS({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(nN.Marker,{longitude:a,latitude:i,anchor:"bottom",children:jsxRuntime.jsx(r,{...s})},`${e.id}-${n}`)})})}function qS({spec:e}){let t=Ue.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(nN.Source,{...r,children:jsxRuntime.jsx(nN.Layer,{...o})})}var Kr="#666";function yg(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 vg(e,t,r,o,n){if(!e)return {};let a={};if(e.color){let i=Wt(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"]=hg(e.width)),e.radius&&t==="circle"&&(a["circle-radius"]=hg(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?Wt(e.borderColor,r,n):Wt(e.color||"#000",r,n)),t==="circle"&&e.borderWidth){a["circle-stroke-width"]=e.borderWidth;let i=e.borderColor?Wt(e.borderColor,r,n):je(`map-${o}-border`,"#ffffff");a["circle-stroke-color"]=i;}return a}function XS(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(Wt(i));return n.push(Kr),n}function jS(e,t){let r=vu(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=Cu(r),n=["match",["get",e]];for(let[a,i]of Object.entries(o))n.push(a),n.push(i);return n.push(Kr),n}function QS(e,t="viridis",r,o){let n=el(r,e),a;if(o&&o!=="auto")a=o;else {if(a=tl(n),n.length===0)return console.warn(`[Layers] No numeric values found for property "${e}"`),Kr;console.log(`[Layers] Auto-calculated sequential scale for "${e}": ${a.min} to ${a.max}`);}let i=rl(t),s=["interpolate",["linear"],["get",e]];return i.forEach((c,l)=>{let m=l/(i.length-1),d=a.min+m*(a.max-a.min);s.push(d,c);}),s}function $S(e,t="redYellowBlue",r,o,n){let a=el(r,e),i=Su(a,o),s;if(n&&n!=="auto")s=n;else {if(s=tl(a),a.length===0)return console.warn(`[Layers] No numeric values found for property "${e}"`),Kr;console.log(`[Layers] Auto-calculated diverging scale for "${e}": ${s.min} \u2190 ${i} \u2192 ${s.max}`);}let c=ol(t),l=4,m=["interpolate",["linear"],["get",e]];for(let d=0;d<=l;d++){let p=d/l,u=s.min+p*(i-s.min);m.push(u,c[d]);}for(let d=l+1;d<c.length;d++){let p=(d-l)/(c.length-1-l),u=i+p*(s.max-i);m.push(u,c[d]);}return m}function Wt(e,t,r){if(typeof e=="string")return e;if("token"in e)return je(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?jS(e.by,r):(console.warn("[Layers] Categorical auto-assignment requires GeoJSON data (not URL-based data)"),Kr);if(e.palette==="sequential")return r?QS(e.by,e.scheme,r,e.scale):(console.warn("[Layers] Sequential palette requires GeoJSON data (not URL-based data)"),Kr);if(e.palette==="diverging")return r?$S(e.by,e.scheme,r,e.center,e.scale):(console.warn("[Layers] Diverging palette requires GeoJSON data (not URL-based data)"),Kr)}if("mapping"in e)return XS(e)}return Kr}function hg(e){return typeof e=="number"?e:"byZoom"in e?["interpolate",["linear"],["zoom"],...e.byZoom.flatMap(([t,r])=>[t,r])]:e}var _i=null;function es(){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():(_i||(_i=import('mapbox-gl/dist/mapbox-gl.css').then(()=>{}).catch(t=>{console.error("Failed to load Mapbox CSS",t),_i=null;})),_i)}function ts(){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:`
|
|
77
|
+
`}})]})}var Ua={prefix:String(Math.round(Math.random()*1e10)),current:0},Gu=Ue__namespace.default.createContext(Ua),qh=Ue__namespace.default.createContext(false);var Xh=!!(typeof window<"u"&&window.document&&window.document.createElement),hl=new WeakMap;function jh(e=false){let t=Ue.useContext(Gu),r=Ue.useRef(null);if(r.current===null&&!e){var o,n;let a=(n=Ue__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=hl.get(a);i==null?hl.set(a,{id:t.current,state:a.memoizedState}):a.memoizedState!==i.state&&(t.current=i.id,hl.delete(a));}r.current=++t.current;}return r.current}function Qh(e){let t=Ue.useContext(Gu);t===Ua&&!Xh&&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=jh(!!e),o=t===Ua&&process.env.NODE_ENV==="test"?"react-aria":`react-aria${t.prefix}`;return e||`${o}-${r}`}function $h(e){let t=Ue__namespace.default.useId(),[r]=Ue.useState(Ka()),o=r||process.env.NODE_ENV==="test"?"react-aria":`react-aria${Ua.prefix}`;return e||`${o}-${t}`}typeof Ue__namespace.default.useId=="function"?$h:Qh;function ey(){return false}function ty(){return true}function ry(e){return ()=>{}}function Ka(){return typeof Ue__namespace.default.useSyncExternalStore=="function"?Ue__namespace.default.useSyncExternalStore(ry,ey,ty):Ue.useContext(qh)}function Uu(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Ya(e,t,r){Uu(e,t),t.set(e,r);}var oy=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),ny=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function vl(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 oy.has(r.script)}let t=e.split("-")[0];return ny.has(t)}var sy=Symbol.for("react-aria.i18n.locale");function Yu(){let e=typeof window<"u"&&window[sy]||typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e]);}catch{e="en-US";}return {locale:e,direction:vl(e)?"rtl":"ltr"}}var Cl=Yu(),Fn=new Set;function Ku(){Cl=Yu();for(let e of Fn)e(Cl);}function Ju(){let e=Ka(),[t,r]=Ue.useState(Cl);return Ue.useEffect(()=>(Fn.size===0&&window.addEventListener("languagechange",Ku),Fn.add(r),()=>{Fn.delete(r),Fn.size===0&&window.removeEventListener("languagechange",Ku);}),[]),e?{locale:"en-US",direction:"ltr"}:t}var dy=Ue__namespace.default.createContext(null);function Sl(){let e=Ju();return Ue.useContext(dy)||e}function Ja(e,t){return e-t*Math.floor(e/t)}var Zu=1721426;function Za(e,t,r,o){t=Xa(e,t);let n=t-1,a=-2;return r<=2?a=0:qa(t)&&(a=-1),Zu-1+365*n+Math.floor(n/4)-Math.floor(n/100)+Math.floor(n/400)+Math.floor((367*r-362)/12+a+o)}function qa(e){return e%4===0&&(e%100!==0||e%400===0)}function Xa(e,t){return e==="BC"?1-t:t}function uy(e){let t="AD";return e<=0&&(t="BC",e=1-e),[t,e]}var py={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]},Lt=class{fromJulianDay(t){let r=t,o=r-Zu,n=Math.floor(o/146097),a=Ja(o,146097),i=Math.floor(a/36524),s=Ja(a,36524),c=Math.floor(s/1461),l=Ja(s,1461),p=Math.floor(l/365),d=n*400+i*100+c*4+p+(i!==4&&p!==4?1:0),[m,u]=uy(d),g=r-Za(m,u,1,1),f=2;r<Za(m,u,3,1)?f=0:qa(u)&&(f=1);let b=Math.floor(((g+f)*12+373)/367),h=r-Za(m,u,b,1)+1;return new Qr(m,u,b,h)}toJulianDay(t){return Za(t.era,t.year,t.month,t.day)}getDaysInMonth(t){return py[qa(t.year)?"leapyear":"standard"][t.month-1]}getMonthsInYear(t){return 12}getDaysInYear(t){return qa(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 wl(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 kl(e,t){return e.calendar.toJulianDay(e)-t.calendar.toJulianDay(t)}function Xu(e,t){return qu(e)-qu(t)}function qu(e){return e.hour*36e5+e.minute*6e4+e.second*1e3+e.millisecond}var Nl=null;function $r(){return Nl==null&&(Nl=new Intl.DateTimeFormat().resolvedOptions().timeZone),Nl}function Lr(e){e=Nt(e,new Lt);let t=Xa(e.era,e.year);return $u(t,e.month,e.day,e.hour,e.minute,e.second,e.millisecond)}function $u(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 Pl(e,t){if(t==="UTC")return 0;if(e>0&&t===$r())return new Date(e).getTimezoneOffset()*-6e4;let{year:r,month:o,day:n,hour:a,minute:i,second:s}=_u(e,t);return $u(r,o,n,a,i,s,0)-Math.floor(e/1e3)*1e3}var ju=new Map;function _u(e,t){let r=ju.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"}),ju.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 Qu=864e5;function my(e,t,r,o){return (r===o?[r]:[r,o]).filter(a=>fy(e,t,a))}function fy(e,t,r){let o=_u(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 Vt(e,t,r="compatible"){let o=Xt(e);if(t==="UTC")return Lr(o);if(t===$r()&&r==="compatible"){o=Nt(o,new Lt);let c=new Date,l=Xa(o.era,o.year);return c.setFullYear(l,o.month-1,o.day),c.setHours(o.hour,o.minute,o.second,o.millisecond),c.getTime()}let n=Lr(o),a=Pl(n-Qu,t),i=Pl(n+Qu,t),s=my(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 Tl(e,t,r="compatible"){return new Date(Vt(e,t,r))}function Ft(e,t){let r=Pl(e,t),o=new Date(e+r),n=o.getUTCFullYear(),a=o.getUTCMonth()+1,i=o.getUTCDate(),s=o.getUTCHours(),c=o.getUTCMinutes(),l=o.getUTCSeconds(),p=o.getUTCMilliseconds();return new Jo(n<1?"BC":"AD",n<1?-n+1:n,a,i,t,r,s,c,l,p)}function ja(e,t){return Ft(e.getTime(),t)}function Xt(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 En(e.calendar,e.era,e.year,e.month,e.day,r,o,n,a)}function Nt(e,t){if(wl(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 Dl(e,t,r){if(e instanceof Jo)return e.timeZone===t?e:Rl(e,t);let o=Vt(e,t,r);return Ft(o,t)}function ep(e){let t=Lr(e)-e.offset;return new Date(t)}function Rl(e,t){let r=Lr(e)-e.offset;return Nt(Ft(r,t),e.calendar)}var In=36e5;function zn(e,t){let r=e.copy(),o="hour"in r?hy(r,t):0;Al(r,t.years||0),r.calendar.balanceYearMonth&&r.calendar.balanceYearMonth(r,e),r.month+=t.months||0,Ml(r),tp(r),r.day+=(t.weeks||0)*7,r.day+=t.days||0,r.day+=o,by(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 c=(a=(i=r.calendar).isInverseEra)===null||a===void 0?void 0:a.call(i,r);r.year=n,r.month=c?1:r.calendar.getMonthsInYear(r),r.day=c?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 Al(e,t){var r,o;!((r=(o=e.calendar).isInverseEra)===null||r===void 0)&&r.call(o,e)&&(t=-t),e.year+=t;}function Ml(e){for(;e.month<1;)Al(e,-1),e.month+=e.calendar.getMonthsInYear(e);let t=0;for(;e.month>(t=e.calendar.getMonthsInYear(e));)e.month-=t,Al(e,1);}function by(e){for(;e.day<1;)e.month--,Ml(e),e.day+=e.calendar.getDaysInMonth(e);for(;e.day>e.calendar.getDaysInMonth(e);)e.day-=e.calendar.getDaysInMonth(e),e.month++,Ml(e);}function tp(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)),tp(e);}function rp(e){let t={};for(let r in e)typeof e[r]=="number"&&(t[r]=-e[r]);return t}function Ll(e,t){return zn(e,rp(t))}function $a(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 Bn(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),op(r),r}function xy(e){e.second+=Math.floor(e.millisecond/1e3),e.millisecond=Qa(e.millisecond,1e3),e.minute+=Math.floor(e.second/60),e.second=Qa(e.second,60),e.hour+=Math.floor(e.minute/60),e.minute=Qa(e.minute,60);let t=Math.floor(e.hour/24);return e.hour=Qa(e.hour,24),t}function op(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 Qa(e,t){let r=e%t;return r<0&&(r+=t),r}function hy(e,t){return e.hour+=t.hours||0,e.minute+=t.minutes||0,e.second+=t.seconds||0,e.millisecond+=t.milliseconds||0,xy(e)}function _a(e,t,r,o){let n=e.copy();switch(t){case "era":{let s=e.calendar.getEras(),c=s.indexOf(e.era);if(c<0)throw new Error("Invalid era: "+e.era);c=fr(c,r,0,s.length-1,o?.round),n.era=s[c],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=fr(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=fr(e.month,r,1,e.calendar.getMonthsInYear(e),o?.round);break;case "day":n.day=fr(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 Fl(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 c=a>=12;i=c?12:0,s=c?23:11;}n.hour=fr(a,r,i,s,o?.round);break}case "minute":n.minute=fr(e.minute,r,0,59,o?.round);break;case "second":n.second=fr(e.second,r,0,59,o?.round);break;case "millisecond":n.millisecond=fr(e.millisecond,r,0,999,o?.round);break;default:throw new Error("Unsupported field "+t)}return n}function fr(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 El(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=zn(Xt(e),{years:t.years,months:t.months,weeks:t.weeks,days:t.days});r=Vt(n,e.timeZone);}else r=Lr(e)-e.offset;r+=t.milliseconds||0,r+=(t.seconds||0)*1e3,r+=(t.minutes||0)*6e4,r+=(t.hours||0)*36e5;let o=Ft(r,e.timeZone);return Nt(o,e.calendar)}function np(e,t){return El(e,rp(t))}function ap(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=Xt(e),s=Nt(Bn(i,{hour:n}),new Lt),c=[Vt(s,e.timeZone,"earlier"),Vt(s,e.timeZone,"later")].filter(g=>Ft(g,e.timeZone).day===s.day)[0],l=Nt(Bn(i,{hour:a}),new Lt),p=[Vt(l,e.timeZone,"earlier"),Vt(l,e.timeZone,"later")].filter(g=>Ft(g,e.timeZone).day===l.day).pop(),d=Lr(e)-e.offset,m=Math.floor(d/In),u=d%In;return d=fr(m,r,Math.floor(c/In),Math.floor(p/In),o?.round)*In+u,Nt(Ft(d,e.timeZone),e.calendar)}case "minute":case "second":case "millisecond":return Fl(e,t,r,o);case "era":case "year":case "month":case "day":{let n=_a(Xt(e),t,r,o),a=Vt(n,e.timeZone);return Nt(Ft(a,e.timeZone),e.calendar)}default:throw new Error("Unsupported field "+t)}}function ip(e,t,r){let o=Xt(e),n=Bn($a(o,t),t);if(n.compare(o)===0)return e;let a=Vt(n,e.timeZone,r);return Nt(Ft(a,e.timeZone),e.calendar)}var yy=/^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})$/;function Bl(e){let t=e.match(yy);if(!t)throw new Error("Invalid ISO 8601 date string: "+e);let r=new Qr(Il(t[1],0,9999),Il(t[2],1,12),1);return r.day=Il(t[3],1,r.calendar.getDaysInMonth(r)),r}function Il(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 sp(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 zl(e){let t=Nt(e,new Lt),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 Vl(e){return `${zl(e)}T${sp(e)}`}function Cy(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 lp(e){return `${Vl(e)}${Cy(e.offset)}[${e.timeZone}]`}function Ol(e){let t=typeof e[0]=="object"?e.shift():new Lt,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 Sy=new WeakMap,Qr=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 zn(this,t)}subtract(t){return Ll(this,t)}set(t){return $a(this,t)}cycle(t,r,o){return _a(this,t,r,o)}toDate(t){return Tl(this,t)}toString(){return zl(this)}compare(t){return kl(this,t)}constructor(...t){Ya(this,Sy,{writable:true,value:void 0});let[r,o,n,a,i]=Ol(t);this.calendar=r,this.era=o,this.year=n,this.month=a,this.day=i,mr(this);}};var Ny=new WeakMap,En=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 zn(this,t)}subtract(t){return Ll(this,t)}set(t){return $a(Bn(this,t),t)}cycle(t,r,o){switch(t){case "era":case "year":case "month":case "day":return _a(this,t,r,o);default:return Fl(this,t,r,o)}}toDate(t,r){return Tl(this,t,r)}toString(){return Vl(this)}compare(t){let r=kl(this,t);return r===0?Xu(this,Xt(t)):r}constructor(...t){Ya(this,Ny,{writable:true,value:void 0});let[r,o,n,a,i]=Ol(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);}},wy=new WeakMap,Jo=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 El(this,t)}subtract(t){return np(this,t)}set(t,r){return ip(this,t,r)}cycle(t,r,o){return ap(this,t,r,o)}toDate(){return ep(this)}toString(){return lp(this)}toAbsoluteString(){return this.toDate().toISOString()}compare(t){return this.toDate().getTime()-Dl(t,this.timeZone).toDate().getTime()}constructor(...t){Ya(this,wy,{writable:true,value:void 0});let[r,o,n,a,i]=Ol(t),s=t.shift(),c=t.shift();this.calendar=r,this.era=o,this.year=n,this.month=a,this.day=i,this.timeZone=s,this.offset=c,this.hour=t.shift()||0,this.minute=t.shift()||0,this.second=t.shift()||0,this.millisecond=t.shift()||0,mr(this);}};var Hl=new Map;function Wl(e){let{locale:t}=Sl(),r=t+(e?Object.entries(e).sort((n,a)=>n[0]<a[0]?-1:1).join():"");if(Hl.has(r))return Hl.get(r);let o=new Intl.Collator(t,e);return Hl.set(r,o),o}function ei(e){let t=Wl({usage:"search",...e}),r=Ue.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=Ue.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=Ue.useCallback((a,i)=>{if(i.length===0)return true;a=a.normalize("NFC"),i=i.normalize("NFC");let s=0,c=i.length;for(;s+c<=a.length;s++){let l=a.slice(s,s+c);if(t.compare(i,l)===0)return true}return false},[t]);return Ue.useMemo(()=>({startsWith:r,endsWith:o,contains:n}),[r,o,n])}function Qt(){let[e,t]=Ue__namespace.default.useState(false),r=Ue__namespace.default.useCallback((n,a)=>{t(true),a?.(n);},[]),o=Ue__namespace.default.useCallback((n,a)=>{t(false),a?.(n);},[]);return {isFocused:e,handleFocus:r,handleBlur:o}}function ft({children:e,className:t}){return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("relative w-full",t),children:e})}function cp({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-1/2 -translate-y-1/2 transform text-text-muted hover:text-text-body",r),"aria-label":"Clear input",onMouseDown:o=>{o.preventDefault(),o.stopPropagation();},children:jsxRuntime.jsx(k,{name:"X",size:t==="sm"?16:20})})}function Zo(e){let{isInvalid:t,isDisabled:r,isFocused:o}=e,n="border rounded-[var(--control-border-radius)] !outline-none ";return r?`${n} border-border-muted`:t&&o?`${n} border-feedback-error-border shadow-[inset_0_0_0_1px_var(--color-feedback-error-border)]`:t?`${n} border-feedback-error-border`:o?`${n} border-border-focus shadow-[inset_0_0_0_1px_var(--color-border-focus)]`:`${n} border-border-input`}function dp(e){return e.isDisabled?"bg-background-muted":e.transparent?"bg-transparent":"bg-background-input"}function wt(e){let{isInvalid:t,isDisabled:r,isFocused:o,transparent:n,size:a="md",className:i}=e;return tailwindMerge.twMerge("w-full",Zo({isInvalid:t,isDisabled:r,isFocused:o}),dp({transparent:n,isDisabled:r}),he[a].text,he[a].height,he[a].padding,i)}function Kl(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",dp({transparent:a,isDisabled:n}),he[t].height,Zo({isFocused:r,isInvalid:o,isDisabled:n}),i)}function ve({children:e,size:t="md",tooltip:r,isRequired:o,className:n,htmlFor:a}){return jsxRuntime.jsxs("label",{htmlFor:a,className:tailwindMerge.twMerge(he[t].text,"!text-text-label font-semibold flex items-center gap-1",n),children:[e,o&&jsxRuntime.jsx("span",{children:"*"}),r&&jsxRuntime.jsx("span",{className:"text-text-muted",children:jsxRuntime.jsx(k,{name:"Info",size:t==="sm"?16:20})})]})}function de({size:e="md",className:t,children:r,...o}){return jsxRuntime.jsx("div",{...o,className:tailwindMerge.twMerge("leading-[2.25] text-text-caption",he[e].text,t),children:r})}function oe({children:e,size:t="md",className:r}){return jsxRuntime.jsx("div",{role:"alert",className:tailwindMerge.twMerge(he[t].text,"text-feedback-error-text",r),children:e})}function ti({size:e="md",isInvalid:t,isDisabled:r,isFocused:o,transparent:n,className:a,...i}){return jsxRuntime.jsx("input",{className:wt({isInvalid:t,isDisabled:r,isFocused:o,transparent:n,size:e,className:a}),...i})}function up(e){let{children:t,...r}=e;return jsxRuntime.jsx("div",{...r,className:Kl(e),children:typeof t=="function"?t(e):t})}function Dy({children:e,...t}){return jsxRuntime.jsx(reactAriaComponents.ListBox,{...t,className:ce(t.className,"outline-0"),children:e})}var xp=Ue.createContext("md");function hp(){return Ue.useContext(xp)}function Iy(e="md"){return `flex-1 text-start data-[placeholder]:text-text-placeholder overflow-hidden text-ellipsis whitespace-nowrap ${he[e].text}`}function By(){let e=Ue__namespace.default.useCallback((r,o)=>{o?.(r);},[]),t=Ue__namespace.default.useCallback((r,o)=>{o?.(r);},[]);return {handleFocus:e,handleBlur:t}}function eo({label:e,description:t,errorMessage:r,children:o,items:n,renderItem:a,size:i="md",selectedKey:s,defaultSelectedKey:c,onSelectionChange:l,placeholder:p,showErrors:d=false,tooltip:m,isRequired:u,transparent:g,reserveErrorSpace:f=false,placement:b="bottom start",shouldFlip:h=true,menuWidth:y="match",...v}){let[x,C]=Ue.useState(null),[S,N]=Ue.useState(null),T=s??x??c,{handleFocus:w,handleBlur:F}=By(),E=B=>{l&&B!==null&&l(B),l||C(B);},A=Ue.useRef(null),J=Ue.useRef(null);return jsxRuntime.jsx(reactAriaComponents.Select,{...v,selectedKey:T,defaultSelectedKey:c,onSelectionChange:E,placeholder:p,className:ce(v.className,"group flex w-full flex-col"),ref:A,onOpenChange:B=>{B&&J.current?N(J.current.offsetWidth):B||A.current?.blur();},children:({isDisabled:B,isInvalid:Z,isOpen:Y})=>jsxRuntime.jsxs("div",{className:"flex flex-col",children:[e&&jsxRuntime.jsx(ve,{size:i,tooltip:m,isRequired:u,children:e}),jsxRuntime.jsx(ft,{children:jsxRuntime.jsx("div",{ref:J,children:jsxRuntime.jsxs(q,{variant:"unstyled",className:tailwindMerge.twMerge(wt({isInvalid:Z||d&&!!r,isDisabled:B,isFocused:Y,transparent:g,size:i}),"flex items-center text-start gap-4 cursor-pointer pl-[var(--control-padding-sm)]"),onFocus:G=>w(G,v.onFocus),onBlur:G=>F(G,v.onBlur),"data-open":Y,children:[jsxRuntime.jsx(reactAriaComponents.SelectValue,{className:Iy(i)}),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",Y&&"rotate-180")})]})})}),f?jsxRuntime.jsx("div",{className:"mt-1 min-h-[20px]",children:d?jsxRuntime.jsx(oe,{size:i,className:"text-feedback-error-text",children:typeof r=="function"&&v.validationResult?r(v.validationResult):typeof r=="string"?r:null}):t?jsxRuntime.jsx(de,{size:i,children:t}):null}):jsxRuntime.jsx(jsxRuntime.Fragment,{children:d?jsxRuntime.jsx(oe,{size:i,className:"mt-1 text-feedback-error-text",children:typeof r=="function"&&v.validationResult?r(v.validationResult):typeof r=="string"?r:null}):t?jsxRuntime.jsx(de,{size:i,className:"mt-1",children:t}):null}),jsxRuntime.jsx(We,{className:"bg-background-input shadow-xl border border-border-input/20 backdrop-blur-sm rounded-[var(--control-border-radius)]",style:{width:y==="match"&&S?`${S}px`:void 0,minWidth:y==="auto"&&S?`${S}px`:void 0,maxWidth:y==="auto"?"min(600px, 90vw)":void 0},placement:b,shouldFlip:h,children:jsxRuntime.jsx(xp.Provider,{value:i,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?G=>jsxRuntime.jsx($t,{id:G.id,textValue:G.label,size:i,children:jsxRuntime.jsx("span",{className:"overflow-hidden text-ellipsis whitespace-nowrap min-w-0 flex-1",children:a(G)})},G.id):o})})})]})})}function $t({size:e,className:t,...r}){let o=hp(),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",he[n].paddingY,he[n].text,t)})}var qy={sm:"h-4 w-4",md:"h-5 w-5",lg:"h-6 w-6",xl:"h-7 w-7"},Xy={sm:"pl-7",md:"pl-9",lg:"pl-10",xl:"pl-12"},yp={sm:"py-1",md:"py-2",lg:"py-3",xl:"py-4"};function jy(){let e=Ue__namespace.default.useContext(reactAriaComponents.ComboBoxStateContext);return jsxRuntime.jsx(reactAriaComponents.Button,{slot:null,className:"clear-button","aria-label":"Clear",onPress:()=>e?.setSelectedKey(null),children:"\u2715"})}var ql=(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 Qy(e,t,r){try{let o=e.url.replace("{q}",t),n=new URLSearchParams;e.extraParams&&Object.entries(e.extraParams).forEach(([c,l])=>{n.append(c,l.toString());});let a=`${o}${n.toString()?"?"+n.toString():""}`,i=await fetch(a,{method:"GET",headers:e.headers,signal:r});if(!i.ok)throw new Error(`HTTP error! status: ${i.status}`);let s=await i.json();return {items:e.transformResponse(s)}}catch(o){console.error("Error in REST request:",o);let n=o instanceof Error?o.message:"Unknown error occurred";return {items:[],error:n}}}async function $y(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){console.error("Error in GraphQL request:",o);let n=o instanceof Error?o.message:"Unknown error occurred";return {items:[],error:n}}}function oi({label:e,staticItems:t=[],sections:r,selectedKey:o,defaultSelectedKey:n,onSelectionChange:a,requestConfig:i,defaultFilter:s,placeholder:c,errorMessage:l,description:p,size:d="md",tooltip:m,isRequired:u,isDisabled:g,isInvalid:f,validationResult:b,showErrors:h=true,renderItem:y,renderLeftIcon:v,renderSection:x,autoFocus:C=false,reserveErrorSpace:S=false}){let N=Ue__namespace.default.useRef(null),[T,w]=Ue__namespace.default.useState(),[F,E]=Ue.useState(()=>ql(o||n,t,r)),[A,J]=Ue.useState(false),B=Oo(F),{contains:Z}=ei({sensitivity:"base"}),[Y,G]=Ue.useState(),M=he[d].text,j=he[d].height,O=null;Ue.useEffect(()=>{C&&J(true);},[C]),Ue.useEffect(()=>{let I=()=>{N.current&&w(N.current.offsetWidth);};return I(),window.addEventListener("resize",I),()=>window.removeEventListener("resize",I)},[]),Ue.useEffect(()=>{O&&O.setFilterText(B);},[B,O]),i&&(O=reactStately.useAsyncList({async load({signal:I,filterText:H=""}){if(!i.url||i.shouldLoad&&!i.shouldLoad(H))return {items:[]};try{let K;return i.requestType==="GraphQL"?K=await $y(i,H,I):K=await Qy(i,H,I),G(K.error),{items:K.items}}catch(K){return console.error("Error loading items:",K),G(K instanceof Error?K.message:"Unknown error occurred"),{items:[]}}},initialFilterText:""})),B===""&&(O=null);let U=I=>{let H=ql(I,t,r);E(H),a&&a(I);},z=I=>{E(I);let H=ql(o,t,r);o!=null&&I!==H&&a&&a(null);};return jsxRuntime.jsx(reactAriaComponents.ComboBox,{onSelectionChange:U,selectedKey:o||void 0,defaultSelectedKey:n||void 0,defaultItems:r?r.flatMap(I=>I.items):t,items:O?O.items:void 0,className:ce("group flex flex-col","w-full"),menuTrigger:"focus",isDisabled:g,isInvalid:f||!!l,inputValue:F,onInputChange:z,autoFocus:C,defaultFilter:s||Z,"aria-label":e||c||"Autocomplete",children:I=>jsxRuntime.jsxs("div",{className:"flex flex-col",children:[e&&jsxRuntime.jsx(ve,{size:d,tooltip:m,isRequired:u,children:e}),jsxRuntime.jsxs(reactAriaComponents.Group,{ref:N,className:Kl({size:d,isInvalid:f||!!l,isDisabled:g,isFocusWithin:A||I.isOpen,className:"w-full cursor-pointer"}),"aria-label":e||c||"Autocomplete",style:{position:"relative"},children:[v?jsxRuntime.jsx("div",{className:"absolute left-3",children:v(!!O?.isLoading)}):jsxRuntime.jsx(k,{name:"MagnifyingGlass",className:`${qy[d]} absolute left-3 text-inherit`}),jsxRuntime.jsx(reactAriaComponents.Input,{className:`flex-1 min-w-0 border-none pr-3 outline-0 placeholder:text-text-placeholder ${Xy[d]} ${M} ${j} ${g?"bg-background-muted":"bg-background-input"}`,placeholder:c,disabled:g,onFocus:()=>J(true),onBlur:()=>J(false)}),F&&!g&&jsxRuntime.jsx(jy,{}),jsxRuntime.jsx(reactAriaComponents.Button,{className:`px-2 text-text-body ${M} ${j} ${g?"bg-background-muted":"bg-background-input"}`,"aria-label":"Toggle menu",isDisabled:g,children:({isPressed:H})=>jsxRuntime.jsx(k,{name:H?"CaretUp":"CaretDown",className:"h-4 w-4"})})]}),S?jsxRuntime.jsx("div",{className:"mt-1 min-h-[20px]",children:h&&Y?jsxRuntime.jsx(oe,{size:d,className:"text-feedback-error-text",children:Y}):h&&typeof l=="string"?jsxRuntime.jsx(oe,{size:d,className:"text-feedback-error-text",children:l}):h&&typeof l=="function"&&b?jsxRuntime.jsx(oe,{size:d,className:"text-feedback-error-text",children:l(b)}):p?jsxRuntime.jsx(de,{size:d,children:p}):null}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[p&&jsxRuntime.jsx(de,{size:d,className:"mt-1",children:p}),h&&Y&&jsxRuntime.jsx(oe,{size:d,className:"text-feedback-error-text mt-1",children:Y}),h&&typeof l=="string"&&jsxRuntime.jsx(oe,{size:d,className:"text-feedback-error-text mt-1",children:l}),h&&typeof l=="function"&&b&&jsxRuntime.jsx(oe,{size:d,className:"text-feedback-error-text mt-1",children:l(b)})]}),jsxRuntime.jsx(We,{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 ${M}`,children:r?r.map(H=>{let K=H.items.map(L=>jsxRuntime.jsx($t,{id:L.id,textValue:L.name,size:d,className:`flex cursor-default items-center gap-2 px-3 ${yp[d]} text-text-body outline-none data-[focused]:bg-background-hover data-[selected]:bg-background-selected data-[selected]:font-medium`,children:y?y(L):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[L.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"})]})},L.id));if(x){let L=x(H,K);return Ue__namespace.default.isValidElement(L)&&L.type===reactAriaComponents.ListBoxSection?L:jsxRuntime.jsx(reactAriaComponents.ListBoxSection,{children:L},H.name)}return jsxRuntime.jsxs(reactAriaComponents.ListBoxSection,{children:[jsxRuntime.jsx(reactAriaComponents.Header,{className:"px-3 py-1 text-sm font-bold text-text-muted",children:H.name}),K]},H.name)}):H=>jsxRuntime.jsx($t,{id:H.id,textValue:H.name,size:d,className:`flex cursor-default items-center gap-2 px-3 ${yp[d]} text-text-body outline-none data-[focused]:bg-background-hover data-[selected]:bg-background-selected data-[selected]:font-medium`,children:y?y(H):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[H.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"})]})},H.id)})})]})})}function br({src:e,alt:t,firstName:r,lastName:o,fullName:n,onClick:a,size:i="md",shape:s="circle",variant:c="user",className:l,status:p,bordered:d=false}){let m={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"},u={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"},g={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"},f={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"},b={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"},h=s==="circle"?"rounded-full":"rounded-md",y=tailwindMerge.twMerge("relative inline-flex items-center justify-center overflow-hidden transition-opacity outline-none",m[i],h,a&&"cursor-pointer hover:opacity-80",d&&"ring-2 ring-background-surface",l),x=(()=>{if(r||o){let N=r?.[0]||"",T=o?.[0]||"";return (N+T).toUpperCase()}if(n){let N=n.split(" "),T=N[0]?.[0]||"",w=N[N.length-1]?.[0]||"";return T===w?T.toUpperCase():(T+w).toUpperCase()}return ""})(),C=()=>{let N={xs:14,sm:16,md:20,lg:24,xl:32}[i];switch(c){case "team":return jsxRuntime.jsx(lucideReact.Users,{size:N});case "organization":return jsxRuntime.jsx(lucideReact.Building2,{size:N});default:return jsxRuntime.jsx(lucideReact.User,{size:N})}},S=()=>e?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("img",{src:e,alt:t||n||"Avatar",className:"h-full w-full object-cover",style:{fontSize:0}}),jsxRuntime.jsx("div",{className:"absolute inset-0 flex items-center justify-center -z-10",children:x?jsxRuntime.jsx("span",{className:"font-semibold",children:x}):C()})]}):x?jsxRuntime.jsx("span",{className:"font-semibold",children:x}):C();return jsxRuntime.jsxs("div",{className:"relative inline-block",children:[jsxRuntime.jsx("div",{"data-avatar":true,className:tailwindMerge.twMerge(y,e?"":b[c]),onClick:a,role:a?"button":void 0,tabIndex:a?0:void 0,children:S()}),p&&jsxRuntime.jsx("span",{className:tailwindMerge.twMerge("absolute border-2 border-background-surface",h,u[i],g[i],f[p]),"aria-label":`Status: ${p}`})]})}var o0={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"},n0={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"},a0={pill:"rounded-full",rounded:"rounded-lg",square:"rounded-sm"},i0={sm:"w-1.5 h-1.5",md:"w-2 h-2",lg:"w-2.5 h-2.5"};function Oe({children:e,variant:t="default",size:r="sm",shape:o="square",dot:n=false,dotPosition:a="left",dotPulse:i=false,className:s}){let c=n&&jsxRuntime.jsx("span",{className:tailwindMerge.twMerge("rounded-full bg-current opacity-75",i0[r],i&&"animate-pulse"),"aria-hidden":"true"});return jsxRuntime.jsxs("span",{className:tailwindMerge.twMerge("inline-flex items-center gap-1.5 font-medium",n0[r],a0[o],o0[t],s),children:[n&&a==="left"&&c,e,n&&a==="right"&&c]})}var Le=({href:e,children:t,className:r="",external:o=false,title:n,variant:a="default",onClick:i,asButton:s=false,onPress:c,showArrow:l=false})=>{let p=o?{target:"_blank",rel:"noopener noreferrer"}:{},u=`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}`,g=jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[t,l&&jsxRuntime.jsxs("span",{children:["\xA0","\u2192"]})]});return s?jsxRuntime.jsx("button",{type:"button",className:u,onClick:c,title:n,children:g}):jsxRuntime.jsx("a",{href:e||"#",className:u,...p,title:n,onClick:i,children:g})};var b0={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 ai({variant:e="info",appearance:t="subtle",title:r,children:o,dismissible:n=false,onDismiss:a,primaryAction:i,secondaryAction:s,icon:c,hideIcon:l=false,className:p,testId:d}){let m=b0[e],u=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",u.container,p),role:"region","aria-live":"polite","data-testid":d,children:[!l&&jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("flex-shrink-0",u.iconColor),"aria-hidden":"true",children:c||jsxRuntime.jsx(g,{className:"h-5 w-5"})}),jsxRuntime.jsxs("div",{className:"flex min-w-0 flex-1 flex-col gap-3",children:[b&&jsxRuntime.jsxs("div",{className:"flex-1",children:[r&&jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("text-sm font-semibold leading-5",u.titleColor),children:r}),o&&jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("text-sm leading-5",r?"mt-1":"",u.bodyColor),children:o})]}),f&&jsxRuntime.jsxs("div",{className:"flex flex-wrap items-center gap-3",children:[i&&(i.asLink?jsxRuntime.jsx(Le,{asButton:true,onPress:i.onPress,variant:t==="bold"?"unstyled":"default",className:t==="bold"?"text-white hover:text-white/80":"",children:i.label}):jsxRuntime.jsx(q,{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(Le,{asButton:true,onPress:s.onPress,variant:t==="bold"?"unstyled":"default",className:t==="bold"?"text-white hover:text-white/80":"",children:s.label}):jsxRuntime.jsx(q,{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",u.iconColor,ke()),"aria-label":"Dismiss banner",children:jsxRuntime.jsx(lucideReact.X,{className:"h-4 w-4"})})]})}function kp({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(ai,{...o,className:a})})})}function ii(e){let{children:t,maxWidth:r=600,className:o,...n}=e,{ref:a,width:i}=Ho(),[s,c]=Ue__namespace.default.useState(false),[l,p]=Ue__namespace.default.useState(false),d=Ue__namespace.default.useRef(false),m=Ue__namespace.default.useMemo(()=>t&&!e.items&&typeof t!="function"?Ue__namespace.default.Children.toArray(t):null,[t,e.items]);if(Ue__namespace.default.useEffect(()=>{m&&m.length>=4&&i>0&&!d.current?(d.current=true,c(i>r),p(true)):(!m||m&&m.length<4)&&p(true);let u=setTimeout(()=>{l||p(true);},100);return ()=>clearTimeout(u)},[i,r,m,l]),m&&s&&m.length>=4){let u=m[0],g=m.slice(1,-2),f=m.slice(-2),b=g.map(h=>{if(Ue__namespace.default.isValidElement(h)){let y=h.props;if(typeof y.children=="string")return {label:y.children,href:y.href}}return {label:"..."}});return jsxRuntime.jsxs(reactAriaComponents.Breadcrumbs,{...n,ref:a,className:tailwindMerge.twMerge("flex gap-2",l?"opacity-100":"opacity-0",o),children:[u,jsxRuntime.jsx(y0,{items:b}),f]})}return jsxRuntime.jsx(reactAriaComponents.Breadcrumbs,{...n,ref:a,className:tailwindMerge.twMerge("flex gap-2",l?"opacity-100":"opacity-0",o),children:t})}function y0({items:e}){let t=e.map((r,o)=>({id:`breadcrumb-${o}`,name:r.label,href:r.href}));return jsxRuntime.jsx(reactAriaComponents.Breadcrumb,{className:"flex items-center gap-2",children:jsxRuntime.jsxs("span",{className:"flex items-center gap-2",children:[jsxRuntime.jsx(Fa,{items:t,align:"left",size:"sm",children:jsxRuntime.jsx(q,{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 si(e){let{className:t,children:r,href:o,...n}=e;return jsxRuntime.jsx(reactAriaComponents.Breadcrumb,{className:ce(t,"flex items-center gap-2"),...n,children:a=>{let i=a.isCurrent;return jsxRuntime.jsx(jsxRuntime.Fragment,{children:i?jsxRuntime.jsx("span",{className:"max-w-[200px] truncate font-semibold text-text-body sm:max-w-none",children:typeof r=="function"?r(a):r}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(Le,{variant:"muted",href:o,className:"max-w-[150px] truncate sm:max-w-[300px] md:max-w-none",children:typeof r=="function"?r(a):r}),jsxRuntime.jsx(lucideReact.ChevronRight,{className:"h-4 w-4 shrink-0 text-text-muted"})]})})}})}function R0({isSelected:e,isDisabled:t}){let r=[ke,"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 Xo({errorMessage:e,...t}){return jsxRuntime.jsxs(reactAriaComponents.Calendar,{...t,children:[jsxRuntime.jsx(li,{}),jsxRuntime.jsxs(reactAriaComponents.CalendarGrid,{className:"border-separate [border-spacing:0] [&_td]:p-0 [&_td]:!border-0",children:[jsxRuntime.jsx(ci,{}),jsxRuntime.jsx(reactAriaComponents.CalendarGridBody,{children:r=>jsxRuntime.jsx(reactAriaComponents.CalendarCell,{date:r,className:({isSelected:o,isDisabled:n})=>`${R0({isSelected:o,isDisabled:n})} border-0`})})]}),e&&jsxRuntime.jsx(reactAriaComponents.Text,{slot:"errorMessage",className:"text-sm text-red-600",children:e})]})}function li(){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(q,{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(q,{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 ci(){return jsxRuntime.jsx(reactAriaComponents.CalendarGridHeader,{children:e=>jsxRuntime.jsx(reactAriaComponents.CalendarHeaderCell,{className:"text-xs font-semibold text-text-caption",children:e})})}function ec(e){return jsxRuntime.jsxs(reactAriaComponents.CheckboxGroup,{...e,className:ce(e.className,"flex flex-col gap-2"),children:[jsxRuntime.jsx(ve,{children:e.label}),e.children,e.description&&jsxRuntime.jsx(de,{children:e.description}),jsxRuntime.jsx(oe,{children:typeof e.errorMessage=="function"?void 0:e.errorMessage})]})}function I0({isDisabled:e}){return `flex gap-2 items-center group text-sm transition ${e?"text-text-disabled":"text-text-caption"}`}function B0({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 c=n==="brand"?"action-brand":"action-default";s=`bg-${c} border-${c} hover:bg-${c}-hover hover:border-${c}-hover`;}else s="bg-background-input border-border-input hover:border-border-focus";return `${a} ${i} ${s}`}var Mp="w-4 h-4 text-text-onPrimary group-disabled:text-text-disabled";function oo(e){let{children:t,variant:r="default",...o}=e;return jsxRuntime.jsx(reactAriaComponents.Checkbox,{...o,className:reactAriaComponents.composeRenderProps(e.className,(n,a)=>`${I0(a)} ${n||""}`),children:n=>{let{isSelected:a,isIndeterminate:i,...s}=n,c=jsxRuntime.jsx("div",{className:B0({isSelected:a,isIndeterminate:i,variant:r,...s}),children:i?jsxRuntime.jsx(lucideReact.Minus,{"aria-hidden":true,className:Mp}):a?jsxRuntime.jsx(lucideReact.Check,{"aria-hidden":true,className:Mp}):null});return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[c,typeof t=="function"?t(n):t]})}})}var O0={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"},H0={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"},W0="opacity-75 cursor-not-allowed pointer-events-none";function Fp(e){let{variant:t,size:r,isDisabled:o,isClickable:n,className:a}=e;return tailwindMerge.twMerge("inline-flex items-center justify-center rounded-full font-medium transition-colors","whitespace-nowrap select-none",H0[r],he[r].text,O0[t],n&&!o&&"cursor-pointer",o&&W0,a)}function Fr({children:e,onRemove:t,size:r="md",variant:o="default",isRemovable:n=true,isDisabled:a=false,className:i,onClick:s}){let c=!!s&&!a,l=n&&t&&!a,p=u=>{u.stopPropagation(),u.preventDefault(),t&&!a&&t();},d=()=>{s&&!a&&s();},m=jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("span",{className:"truncate",children:e}),l&&jsxRuntime.jsx("button",{type:"button",onClick:p,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:r==="sm"?12:r==="md"?14:16,className:"text-current opacity-70 hover:opacity-100"})})]});return c?jsxRuntime.jsx("button",{type:"button",onClick:d,className:Fp({variant:o,size:r,isDisabled:a,isClickable:c,className:i}),disabled:a,children:m}):jsxRuntime.jsx("span",{className:Fp({variant:o,size:r,isDisabled:a,isClickable:c,className:i}),children:m})}var X0={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')},j0={github:()=>import('ace-builds/src-noconflict/theme-github'),github_dark:()=>import('ace-builds/src-noconflict/theme-github_dark')},Q0={"ext-language-tools":()=>import('ace-builds/src-noconflict/ext-language_tools')},Hn=new Set;async function tc(e,t){Hn.has(e)||(await t(),Hn.add(e));}async function $0(e,t,r){await Promise.all([tc(`language:${e}`,X0[e]),tc(`theme:${t}`,j0[t]),r?tc("extension:language-tools",Q0["ext-language-tools"]):void 0]);}function Ip(e,t,r){let o=Hn.has(`language:${e}`)&&Hn.has(`theme:${t}`);return r?o&&Hn.has("extension:language-tools"):o}function Bp({value:e,readOnly:t=false,onChange:r,language:o="json",theme:n="github_dark",height:a,width:i="100%",className:s,lineHeight:c=19,minLines:l=3,maxLines:p=50,showLineNumbers:d=true,showGutter:m=true,fontSize:u=14,wrapEnabled:g=false}){let f=Ue.useRef(null),[b,h]=Ue.useState(()=>Ip(o,n,!t)),y=Ue.useMemo(()=>{if(a)return a;let v=(e.match(/\n/g)||[]).length+1;return `${Math.max(l,Math.min(v,p))*c+10}px`},[e,a,c,l,p]);return Ue.useEffect(()=>{let v=false,x=!t;return Ip(o,n,x)?(h(true),()=>{v=true;}):(h(false),$0(o,n,x).then(()=>{v||h(true);}).catch(C=>{v||h(true),console.error("Failed to load Ace editor resources",C);}),()=>{v=true;})},[o,t,n]),Ue.useEffect(()=>{b&&f.current?.editor&&f.current.editor.resize();},[y,b]),jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("overflow-hidden rounded-md border border-border-input",s),style:{width:i,height:y},children:b?jsxRuntime.jsx(Z0__default.default,{ref:f,mode:o,theme:n,value:e,onChange:r,readOnly:t,width:"100%",height:"100%",fontSize:u,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 Vp=Ue__namespace.createContext({variant:"contained",density:"comfortable",showDividers:true}),Op=Ue__namespace.createContext(null),ov={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"},zp={true:"divide-y divide-border-default",false:"gap-3"},nv={comfortable:"px-5 py-3",compact:"px-4 py-2.5"},av={comfortable:"px-5 pt-0",compact:"px-4 pt-0"},iv={comfortable:"h-5 w-5",compact:"h-4 w-4"};function ac(){return Ue__namespace.useContext(Vp)}function sv(e){let t=Ue__namespace.useContext(Op);if(!t)throw new Error(`${e} must be used within a <CollapseItem>`);return t}function lv({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 cv({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",c=t&&!e?"bg-background-hover":"",l=nv[r];return tailwindMerge.twMerge(i,ke(),l,s,c,o==="plain"&&n?"px-0":"",a)}function dv({density:e,showDividers:t,className:r}){let o="text-text-body",n=av[e];return tailwindMerge.twMerge(o,n,t?"":"rounded-b-lg",r)}function Hp({variant:e="contained",density:t="comfortable",showDividers:r=true,className:o,...n}){let a=Ue__namespace.useMemo(()=>({variant:e,density:t,showDividers:r}),[e,t,r]),i=tailwindMerge.twMerge("flex w-full flex-col",ov[e],r?zp.true:zp.false,e==="plain"&&r?"border-y border-border-default/60":"");return jsxRuntime.jsx(Vp.Provider,{value:a,children:jsxRuntime.jsx(reactAriaComponents.DisclosureGroup,{...n,className:ce(o,i)})})}function ic({className:e,children:t,...r}){let{variant:o,showDividers:n}=ac();return jsxRuntime.jsx(reactAriaComponents.Disclosure,{...r,className:reactAriaComponents.composeRenderProps(e,a=>lv({variant:o,showDividers:n,className:a})),children:a=>jsxRuntime.jsx(Op.Provider,{value:a,children:t})})}ic.displayName="CollapseItem";function sc({title:e,description:t,startContent:r,endContent:o,indicator:n,indicatorPosition:a="end",showIndicator:i=true,keepIndicatorSpace:s=false,children:c,className:l,...p}){let d=sv("CollapseHeader"),{density:m,variant:u,showDividers:g}=ac(),f=iv[m];return jsxRuntime.jsx(reactAriaComponents.Button,{...p,slot:"trigger","data-expanded":d.isExpanded?"true":void 0,className:reactAriaComponents.composeRenderProps(l,(b,h)=>cv({isDisabled:h.isDisabled??false,isPressed:h.isPressed??false,density:m,variant:u,showDividers:g,className:b})),children:b=>{let h=b.isDisabled??false,y=i?typeof n=="function"?n({isExpanded:d.isExpanded,isDisabled:h}):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,v=y?jsxRuntime.jsx("span",{className:tailwindMerge.twMerge("flex flex-shrink-0 items-center justify-center text-text-muted",f),"aria-hidden":"true",children:y}):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"&&v,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:[c??jsxRuntime.jsxs("div",{className:"flex min-w-0 flex-1 flex-col gap-1 text-left",children:[e&&jsxRuntime.jsx("span",{className:"truncate font-medium text-text-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"&&v]})}})}sc.displayName="CollapseHeader";function lc({className:e,children:t,...r}){let{density:o,showDividers:n}=ac();return jsxRuntime.jsx(reactAriaComponents.DisclosurePanel,{...r,className:reactAriaComponents.composeRenderProps(e,a=>dv({density:o,showDividers:n,className:a})),children:t})}lc.displayName="CollapseContent";function jo(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 dc(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 fv({label:e,description:t,errorMessage:r,size:o="md",tooltip:n,isRequired:a,transparent:i,className:s,validationResult:c,value:l,defaultValue:p,onChange:d,placeholder:m="#000000",showColorSwatch:u=true,reserveErrorSpace:g=true,...f}){let[b,h]=Ue.useState(p||""),[y,v]=Ue.useState(l||p||""),[x,C]=Ue.useState(false),[S,N]=Ue.useState(null),{isFocused:T,handleFocus:w,handleBlur:F}=Qt(),E=l!==void 0?l:b;Ue.useEffect(()=>{l!==void 0&&v(l);},[l]);let A=E?!jo(E):false,J=Ue.useCallback(Y=>{if(v(Y),jo(Y)){let G=dc(Y);d?d(G):h(G);}else Y===""&&(d?d(""):h(""));},[d]),B=Ue.useCallback(Y=>{let G=dc(Y);v(G),d?d(G):h(G);},[d]),Z=Ue.useCallback(Y=>{if(jo(y)){let G=dc(y);v(G),d&&G!==E?d(G):!d&&G!==b&&h(G);}F(Y,f.onBlur);},[y,E,b,d,F,f.onBlur]);return jsxRuntime.jsx(reactAriaComponents.TextField,{...f,isRequired:a,className:ce(s,"group flex flex-col"),children:({isDisabled:Y})=>jsxRuntime.jsxs("div",{className:"flex flex-col",children:[e&&jsxRuntime.jsx(ve,{size:o,tooltip:n,isRequired:a,children:e}),jsxRuntime.jsx(ft,{children:jsxRuntime.jsxs("div",{className:"flex gap-2",children:[jsxRuntime.jsxs("div",{className:"flex-1 relative",children:[jsxRuntime.jsx(ti,{size:o,disabled:Y,type:"text",value:y,placeholder:m,onFocus:G=>w(G,f.onFocus),onBlur:Z,onChange:G=>J(G.target.value),className:tailwindMerge.twMerge(wt({isInvalid:A,isDisabled:Y,isFocused:T,size:o,transparent:i}),u?"pr-12":"pr-3","pl-3")}),u&&jsxRuntime.jsx("div",{className:"absolute right-3 top-1/2 -translate-y-1/2 pointer-events-none",style:{width:he[o].height},children:jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("w-6 h-6 rounded border shadow-sm",jo(E)?"border-border-default":"border-border-default bg-background-muted"),style:jo(E)?{backgroundColor:E}:void 0,"aria-hidden":"true",children:!jo(E)&&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(q,{variant:"secondary",size:o,icon:"Palette",onPress:()=>C(!x),isDisabled:Y,className:"flex-shrink-0",children:"Pick"})})]})}),g?jsxRuntime.jsx("div",{className:"mt-1 min-h-[20px]",children:typeof r=="string"?jsxRuntime.jsx(oe,{size:o,children:r}):typeof r=="function"&&c?jsxRuntime.jsx(oe,{size:o,children:r(c)}):t?jsxRuntime.jsx(de,{size:o,children:t}):null}):jsxRuntime.jsx(jsxRuntime.Fragment,{children:typeof r=="string"?jsxRuntime.jsx(oe,{size:o,className:"mt-1",children:r}):typeof r=="function"&&c?jsxRuntime.jsx(oe,{size:o,className:"mt-1",children:r(c)}):t?jsxRuntime.jsx(de,{size:o,className:"mt-1",children:t}):null}),x&&S&&jsxRuntime.jsx(We,{triggerRef:{current:S},isOpen:x,onOpenChange:C,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:E||"#000000",onChange:B,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:E||"#000000"}}),jsxRuntime.jsx("div",{className:"flex-1 text-text-body text-[length:var(--control-text-sm)] font-mono",children:E||"#000000"})]})]})})]})})}function Up({isOpen:e,onClose:t,onConfirm:r,title:o,message:n,confirmLabel:a="Confirm",cancelLabel:i="Cancel",confirmVariant:s,isDestructive:c=false,isLoading:l=false,maxWidth:p="500px",minWidth:d="400px"}){return jsxRuntime.jsx(qt,{isOpen:e,onClose:t,title:o,maxWidth:p,minWidth:d,primaryAction:{label:a,onPress:()=>{r();},variant:s??(c?"destructive":"primary"),isLoading:l},secondaryAction:{label:i,onPress:t,variant:"secondary",isDisabled:l},children:jsxRuntime.jsx("div",{className:"text-text-body",children:n})})}function Kp({isConnected:e,connectedAt:t,disconnectedAt:r,showTimestamp:o=false,isLoading:n,size:a="sm",shape:i="pill",...s}){if(n)return jsxRuntime.jsx(R,{className:"inline-flex h-6 w-24"});let c=e?"Connected":"Disconnected",l=e?"success":"neutral",p=null;if(o){if(e&&t)p=Da(t);else if(!e&&r){let d=Da(r);p=d?`Offline ${d}`:null;}}return jsxRuntime.jsxs("div",{className:"inline-flex flex-col gap-1",children:[jsxRuntime.jsx(Oe,{variant:l,size:a,shape:i,dot:e,dotPulse:e,...s,children:c}),p&&jsxRuntime.jsx("span",{className:"text-xs text-text-muted",children:p})]})}function Yp({firstName:e,lastName:t,email:r,phone:o,avatarUrl:n,href:a,LinkComponent:i,variant:s="outlined",layout:c="horizontal",showEmail:l=true,showPhone:p=false,isLoading:d=false,className:m,contentClassName:u}){let g=`${e} ${t}`.trim(),f=({children:h,className:y})=>a?i?jsxRuntime.jsx(i,{href:a,className:y,children:h}):jsxRuntime.jsx(Le,{href:a,variant:"unstyled",className:tailwindMerge.twMerge("hover:underline",y),asButton:false,children:h}):jsxRuntime.jsx("span",{className:y,children:h}),b=c==="vertical";return d?jsxRuntime.jsx(ye,{variant:s,className:tailwindMerge.twMerge("flex flex-col",m),children:jsxRuntime.jsx(ye.Content,{className:"flex items-center flex-1",children:jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("w-full",b?"flex flex-col items-center gap-4":"flex items-center gap-4"),children:[jsxRuntime.jsx(R,{width:56,height:56,className:"rounded flex-shrink-0"}),jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge(b?"w-full text-center":"flex-1","space-y-2"),children:[jsxRuntime.jsx(R,{width:"70%",height:20,className:tailwindMerge.twMerge(b&&"mx-auto")}),jsxRuntime.jsx(R,{width:"100%",height:16,className:tailwindMerge.twMerge(b&&"mx-auto")})]})]})})}):jsxRuntime.jsx(ye,{variant:s,className:tailwindMerge.twMerge("group/card flex flex-col",m),children:jsxRuntime.jsx(ye.Content,{className:tailwindMerge.twMerge("flex items-center flex-1",a&&"cursor-pointer",u),children:jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("relative w-full",b?"flex flex-col items-center gap-4 text-center":"flex items-center gap-4"),children:[jsxRuntime.jsx(br,{firstName:e,lastName:t,src:n,size:"xl",variant:"user",shape:"square",className:"flex-shrink-0"}),jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge(b?"w-full":"flex-1 min-w-0"),children:[a&&jsxRuntime.jsx(f,{className:"after:absolute after:inset-0",children:jsxRuntime.jsx("span",{className:"sr-only",children:g})}),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",children:g}),jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("space-y-0.5",b&&"flex flex-col items-center"),children:[l&&r&&jsxRuntime.jsxs("div",{className:"flex items-center gap-2.5 text-text-body",children:[jsxRuntime.jsx(k,{name:"Envelope",size:16,className:"text-text-muted flex-shrink-0"}),jsxRuntime.jsx(Le,{href:`mailto:${r}`,variant:"unstyled",className:tailwindMerge.twMerge("text-sm leading-relaxed text-text-body relative z-20",b?"":"truncate"),children:r})]}),p&&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(Le,{href:`tel:${o}`,variant:"unstyled",className:tailwindMerge.twMerge("text-sm leading-relaxed text-text-body relative z-20",b?"":"truncate"),children:Wo(o)})]})]})]})]})})})}function ui({firstName:e,lastName:t,email:r,avatarUrl:o,layout:n="stacked",size:a="md",href:i,LinkComponent:s,linkVariant:c="unstyled",emphasis:l="normal",showEmail:p=false,isLoading:d=false,className:m}){let g={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],f=`${e} ${t}`.trim(),h={strong:"font-semibold text-text-body",high:"font-semibold text-text-body",normal:"text-text-body",low:"text-text-muted"}[l],y=({children:v,className:x})=>i?s?jsxRuntime.jsx(s,{href:i,className:x,children:v}):jsxRuntime.jsx(Le,{href:i,variant:c,className:tailwindMerge.twMerge("hover:underline",x),asButton:false,children:v}):jsxRuntime.jsx("span",{className:x,children:v});return d?n==="inline"?jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("flex items-center",g.gap,m),children:[jsxRuntime.jsx(R,{width:g.skeletonAvatar,height:g.skeletonAvatar,className:"flex-shrink-0 rounded-full"}),jsxRuntime.jsx(R,{width:g.skeletonText,height:g.skeletonAvatar*.5})]}):jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("flex items-center",g.gap,m),children:[jsxRuntime.jsx(R,{width:g.skeletonAvatar,height:g.skeletonAvatar,className:"flex-shrink-0 rounded-full"}),jsxRuntime.jsxs("div",{className:"flex flex-col gap-1",children:[jsxRuntime.jsx(R,{width:g.skeletonText,height:16}),p&&jsxRuntime.jsx(R,{width:g.skeletonSecondary,height:12})]})]}):n==="inline"?jsxRuntime.jsxs(y,{className:tailwindMerge.twMerge("flex items-center",g.gap,i&&"hover:bg-background-hover transition-colors",m),children:[jsxRuntime.jsx(br,{firstName:e,lastName:t,src:o,size:g.avatarSize,variant:"user",shape:"circle",className:"flex-shrink-0"}),jsxRuntime.jsx("span",{className:tailwindMerge.twMerge("leading-normal truncate hover:text-text-body",h,g.textSize,i&&"hover:underline hover:decoration-1 hover:underline-offset-4"),children:f})]}):jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("flex items-center justify-start",g.gap,m),children:[jsxRuntime.jsx(br,{firstName:e,lastName:t,src:o,size:g.avatarSize,variant:"user",shape:"square",className:"flex-shrink-0"}),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",h,g.textSize,i&&"hover:underline hover:decoration-1 hover:underline-offset-4"),children:f}),p&&r&&jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("text-text-caption leading-normal truncate",g.secondaryTextSize),children:r})]})]})}var Cv=({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 Gn({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)=>Cv({...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 pi({value:e,children:t,className:r,size:o="sm",iconPosition:n="right"}){let[a,i]=Ue.useState(false),l=jsxRuntime.jsx(q,{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})}),p=a?jsxRuntime.jsx(Gn,{content:"Copied!",children:l}):l;return jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("inline-flex items-center gap-0.5",r),children:[n==="left"&&p,t,n==="right"&&p]})}var Zp={duration:.5,ease:"easeInOut"},$o=Ue.createContext(null),xr=()=>{let e=Ue.useContext($o);if(!e)throw new Error("useChartContext must be used within a ChartContextProvider");return e};var Un=({data:e,color:t="var(--color-viz-default)"})=>{let r=Ue.useId(),o=Ue.useId(),{xScale:n,yScale:a,animationSettings:i}=xr(),s=n.range(),c=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:c[1],width:s[1]-s[0],height:c[0]-c[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 ${c[0]}px`,transformBox:"fill-box",isolation:"isolate"},children:[jsxRuntime.jsx(shape.AreaClosed,{data:e,x:l=>n(l.xValue),y:l=>a(l.yValue),yScale:a,fill:`url(#${r})`,curve:curve.curveLinear}),jsxRuntime.jsx(shape.LinePath,{data:e,x:l=>n(l.xValue),y:l=>a(l.yValue),stroke:t,strokeWidth:3,curve:curve.curveLinear})]})})]})};var en=({data:e,color:t="var(--color-viz-default)",opacity:r=1,categoryColors:o={}})=>{let{xScale:n,yScale:a,animationSettings:i}=xr(),s=Ue.useId(),c=n.range(),l=a.range(),p=[...e].sort((u,g)=>u.xValue.getTime()-g.xValue.getTime()),d=p.length>1?p[1].xValue.getTime()-p[0].xValue.getTime():15*6e4,m=Math.abs(n(new Date(p[0].xValue.getTime()+d))-n(p[0].xValue));return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("defs",{children:jsxRuntime.jsx("clipPath",{id:s,children:jsxRuntime.jsx("rect",{x:c[0],y:l[1],width:c[1]-c[0],height:l[0]-l[1]})})}),jsxRuntime.jsx("g",{clipPath:`url(#${s})`,children:jsxRuntime.jsx(framerMotion.motion.g,{initial:{scaleY:0},animate:{scaleY:1},transition:{duration:i.duration,ease:i.ease},style:{transformOrigin:`0 ${l[0]}px`,transformBox:"fill-box",isolation:"isolate"},children:p.map((u,g)=>{let f=n(u.xValue),b=a(u.yValue),h=l[0]-b,y=p[g+1],v=y?Math.abs(n(y.xValue)-f):m,x=u.category&&o[u.category]?o[u.category]:t;return jsxRuntime.jsx(shape.Bar,{x:f-v/2,y:b,width:v,height:h,fill:x,opacity:r,rx:1},u.xValue.getTime())})})})]})};var ze={top:0,right:0,bottom:50,left:60};function Br(e={type:"number"}){let t=i=>{if(i==null)return "-";let s=Yt({value:i,formatter:e});if(s===null)return "-";if(typeof s=="string")return s;if(typeof s=="number")return s.toString();if(typeof s=="object"&&s!==null&&"props"in s){let c=p=>{if(p==null)return "";if(typeof p=="string")return p;if(typeof p=="number")return p.toString();if(typeof p=="object"&&"props"in p){let d=p.props;if(d?.children)return Array.isArray(d.children)?d.children.map(c).join(""):c(d.children)}return ""};return c(s)||i.toString()}return i.toString()},r=i=>{if(i==null)return "-";if(typeof e=="string"){let s=Yt({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;if(typeof e=="object"&&e.type)switch(e.type){case "number":"min"in e&&(o=e.min),"max"in e&&(n=e.max);break}return {format:t,tickFormat:r,min:o,max:n,tickInterval:a}}var fc=(e,t)=>{let r=d3Array.extent(e,o=>o.xValue);return scale.scaleTime({range:[ze.left,t-ze.right],domain:r,nice:true})},gc=(e,t,r)=>{let o=Br(r),n=d3Array.min(e,c=>c.yValue)||0,a=d3Array.max(e,c=>c.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-ze.bottom,ze.top],domain:[i,s],nice:true})};var Wv=({top:e,scale:t,width:r})=>{let o=t.domain(),n=Pu({start:o[0],end:o[1]});return jsxRuntime.jsx(axis.Axis,{orientation:"bottom",top:e,scale:t,numTicks:Math.min(6,Math.floor(r/100)),tickFormat:a=>n(a),stroke:"var(--color-border-muted)",tickStroke:"var(--color-border-muted)",tickLabelProps:(a,i,s)=>({fill:"var(--color-text-caption)",fontSize:12,textAnchor:i===0?"start":i===s.length-1?"end":"middle"})})},Gv=({left:e,scale:t,yFormatter:r})=>{let o=Br(r);return jsxRuntime.jsx(axis.Axis,{orientation:"left",left:e,scale:t,numTicks:5,tickFormat:n=>(o.tickFormat||o.format)(n),stroke:"var(--color-border-muted)",tickStroke:"var(--color-border-muted)",tickLabelProps:()=>({fill:"var(--color-text-caption)",fontSize:12,textAnchor:"end",dy:"0.33em"})})},Kn={Bottom:Wv,Left:Gv};var $p=({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})]}),Yv=({items:e})=>e.length===0?null:jsxRuntime.jsx("div",{className:"flex items-center gap-3 flex-wrap",children:e.map(t=>jsxRuntime.jsx($p,{item:t},t.category))}),fi=({items:e,onExport:t,marginLeft:r=0,marginRight:o=0,isZoomed:n=false,onResetZoom:a})=>{let[i,s]=Ue__namespace.default.useState(false),[c,l]=Ue__namespace.default.useState(null),[p,d]=Ue__namespace.default.useState(false),[m,u]=Ue__namespace.default.useState(false),g=Ue__namespace.default.useCallback(async b=>{s(true),l(b),u(false);try{await t(b);}catch(h){console.error("Export failed:",h);}finally{s(false),l(null);}},[t]),f=Ue__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(Yv,{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(Zt,{isOpen:p,onClose:()=>d(false),title:"Legend",children:jsxRuntime.jsx("div",{className:"grid grid-cols-1 gap-3 p-4",children:e.map(b=>jsxRuntime.jsx($p,{item:b},b.category))})})]})}),jsxRuntime.jsxs("div",{className:"sm:hidden flex items-center gap-2 shrink-0",children:[n&&a&&jsxRuntime.jsx(q,{variant:"secondary",size:"sm",onPress:a,children:jsxRuntime.jsx(k,{name:"ArrowsOut",size:16})}),jsxRuntime.jsx(q,{variant:"secondary",size:"sm",onPress:()=>u(true),isDisabled:i,children:jsxRuntime.jsx(k,{name:"Export",size:16})}),jsxRuntime.jsx(Zt,{isOpen:m,onClose:()=>u(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:c==="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:c==="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:c==="png"?"Exporting...":"Export as PNG"})]})]})})]}),jsxRuntime.jsxs("div",{className:"hidden sm:flex items-center gap-2 shrink-0",children:[n&&a&&jsxRuntime.jsxs(q,{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(q,{variant:"secondary",size:"sm",isDisabled:i,children:[jsxRuntime.jsx(k,{name:"Export",size:16}),i?"Exporting...":"Export"]}),jsxRuntime.jsx(We,{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}),c==="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}),c==="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}),c==="png"?"Exporting...":"Export as PNG"]})})]})})]})]})]})};function Zv(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 _p(e,t=12,r="system-ui"){return e.length===0?0:Math.max(...e.map(o=>Zv(o,t,r)))}var xc=({data:e,seriesMetadata:t,width:r,height:o,onBrushChange:n,brushRegion:a,margin:i=ze})=>{let s=Ue.useRef(null),c=Ue.useRef(false),l=Ue.useMemo(()=>e.flat(),[e]),p=Ue.useMemo(()=>({top:10,bottom:15,left:i.left,right:i.right}),[i]),d=r-p.left-p.right,m=Ue.useMemo(()=>{if(l.length===0)return scale.scaleTime({domain:[new Date,new Date],range:[0,d]});let h=new Date(Math.min(...l.map(v=>v.xValue.getTime()))),y=new Date(Math.max(...l.map(v=>v.xValue.getTime())));return scale.scaleTime({domain:[h,y],range:[0,d]})},[l,d]),u=Ue.useMemo(()=>{let h=l.length>0?Math.max(0,...l.map(y=>y.yValue)):1;return scale.scaleLinear({domain:[0,h],range:[o-p.bottom,p.top]})},[l,o]),g=h=>{if(c.current)return;if(!h){n(null);return}let{x0:y,x1:v}=h;if(y===v)return;let x=new Date(y),C=new Date(v);if(!(Number.isNaN(x.getTime())||Number.isNaN(C.getTime()))){if(l.length>0){let S=Math.min(...l.map(E=>E.xValue.getTime())),N=Math.max(...l.map(E=>E.xValue.getTime())),w=(N-S)*.05;if(Math.abs(x.getTime()-S)<w&&Math.abs(C.getTime()-N)<w){n(null);return}}n([x,C]);}},f=Ue.useMemo(()=>{if(l.length!==0)return {start:{x:0,y:p.top},end:{x:d,y:o-p.bottom}}},[d,o,l]);Ue.useEffect(()=>{if(!s.current||l.length===0)return;let h=s.current.state;if(h?.isBrushing||h?.activeHandle)return;let y=Math.min(...l.map(T=>T.xValue.getTime())),v=Math.max(...l.map(T=>T.xValue.getTime())),x=a?a[0]:new Date(y),C=a?a[1]:new Date(v),S=s.current.state?.extent;if(S){let T=m.invert(S.x0),w=m.invert(S.x1),F=Math.abs(T.getTime()-x.getTime()),E=Math.abs(w.getTime()-C.getTime());if(F<1e3&&E<1e3)return}c.current=true;let N=T=>{let w=s.current.getExtent({x:m(x),y:p.top},{x:m(C),y:o-p.bottom});return {...T,start:{y:w.y0,x:w.x0},end:{y:w.y1,x:w.x1},extent:w}};s.current.updateBrush(N),setTimeout(()=>{c.current=false;},50);},[a,m,o,l]);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(${p.left}, 0)`,children:[e.map((h,y)=>jsxRuntime.jsx(shape.LinePath,{data:h,x:v=>m(v.xValue),y:v=>u(v.yValue),stroke:t[y]?.color||"var(--color-gray-500)",strokeWidth:1.5,opacity:.8},`brush-series-${y}`)),jsxRuntime.jsx(brush.Brush,{xScale:m,yScale:u,width:d,height:o-p.top-p.bottom,margin:{top:p.top,bottom:p.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 nm(e){switch(e){case "command":return je("--color-action-primary","#3b82f6");case "success":return je("--color-feedback-success","#10b981");case "warning":return je("--color-feedback-warning","#f59e0b");case "error":return je("--color-feedback-error","#ef4444");case "alert":return je("--color-feedback-warning","#f59e0b");case "info":default:return je("--color-action-secondary","#6b7280")}}function bi({events:e,color:t,showLabels:r=false}){let o=Ue.useContext($o),[n,a]=Ue.useState(null);if(!o)return console.warn("ChartEventMarkers must be used within a ChartContainer"),null;let{xScale:i,yScale:s,height:c,tooltip:l,datasets:p,seriesMetadata:d,seriesTypes:m,categoryColors:u}=o,g=e.filter(h=>{let y=i(h.timestamp);return y>=ze.left&&y<=i.range()[1]}),f=Ue.useCallback((h,y)=>{a(y);let v=i(h.timestamp),x=v>(i.range()[1]-ze.right-ze.left)/2+ze.left,C=[];p&&d&&p.forEach((S,N)=>{if(S.length===0)return;let T=d3Array.bisector(J=>J.xValue).left,w=T(S,h.timestamp),F=S[w-1],E=S[w],A;if(!F)A=E;else if(!E)A=F;else {let J=Math.abs(h.timestamp.getTime()-F.xValue.getTime()),B=Math.abs(h.timestamp.getTime()-E.xValue.getTime());A=J<B?F:E;}A&&d[N]&&C.push({label:d[N].label,value:A.yValue,color:d[N].color,type:m?.[N]||"line",...A.category&&{category:A.category,categoryColor:u?.[A.category]}});}),C.push({label:h.label,value:0,color:t||nm(h.type),type:"event"}),l.show({xValue:h.timestamp,series:C,x:v,y:C.length>1&&typeof C[0].value=="number"?s(C[0].value):c/2,position:x?"left":"right",isEvent:true,eventMetadata:h.metadata});},[i,s,c,l,t,p,d,m,u]),b=Ue.useCallback(()=>{a(null),l.hide();},[l]);return g.length===0?null:jsxRuntime.jsx("g",{className:"chart-event-markers","data-testid":"chart-event-markers",children:g.map((h,y)=>{let v=i(h.timestamp),x=t||nm(h.type),C=n===y;return jsxRuntime.jsxs("g",{children:[jsxRuntime.jsx("line",{x1:v,y1:ze.top,x2:v,y2:c-ze.bottom,stroke:x,strokeWidth:C?3:2,strokeDasharray:"4 4",strokeOpacity:C?.9:.6,pointerEvents:"none"}),jsxRuntime.jsx("circle",{cx:v,cy:ze.top,r:C?5:4,fill:x,stroke:"var(--color-background-surface)",strokeWidth:2,pointerEvents:"none"}),jsxRuntime.jsx("circle",{cx:v,cy:c-ze.bottom,r:C?5:4,fill:x,stroke:"var(--color-background-surface)",strokeWidth:2,pointerEvents:"none"}),r&&jsxRuntime.jsx("text",{x:v,y:ze.top-8,textAnchor:"middle",fill:"var(--color-text-caption)",fontSize:11,fontWeight:500,pointerEvents:"none",children:h.label}),jsxRuntime.jsx("rect",{x:v-10,y:ze.top,width:20,height:c-ze.top-ze.bottom,fill:"transparent",style:{cursor:"pointer"},onMouseEnter:()=>f(h,y),onMouseLeave:b})]},`${h.timestamp.getTime()}-${y}`)})})}var xi=({data:e,formatter:t})=>{if(!e)return null;let{categoryLabels:r,xScale:o}=xr(),n=Br(t),a=Ue__namespace.default.useRef(null),[i,s]=Ue__namespace.default.useState({x:0,y:0,translate:"translate(-50%, -100%)"});Ue__namespace.default.useEffect(()=>{if(!a.current)return;let m=a.current.getBoundingClientRect(),u=window.innerHeight,g=window.innerWidth,f=e.x,b=e.y,h=e.position==="left"?"translate(calc(-100% - 16px), -50%)":"translate(16px, -50%)";e.position==="left"&&f-m.width-16<0?h="translate(16px, -50%)":e.position==="right"&&f+m.width+16>g&&(h="translate(calc(-100% - 16px), -50%)"),b-m.height/2<0?b=m.height/2:b+m.height/2>u&&(b=u-m.height/2),s({x:f,y:b,translate:h});},[e.x,e.y,e.position]);let c=o.domain(),p=c.length===2&&c.every(d=>d instanceof Date)?ku({start:c[0],end:c[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:p(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,u])=>jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[jsxRuntime.jsxs("span",{className:"capitalize",children:[m,":"]}),jsxRuntime.jsx("span",{className:"font-medium",children:u})]},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 Jn=({data:e,color:t="var(--color-viz-default)",strokeWidth:r=3,strokeDasharray:o})=>{let{xScale:n,yScale:a,animationSettings:i}=xr(),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:c=>n(c.xValue),y:c=>a(c.yValue),stroke:t,strokeWidth:r,strokeDasharray:o,strokeLinecap:"round",curve:curve.curveLinear})})};var cm=e=>e.type===Un||e.type===Jn||e.type===en,gC=e=>e.type===bi,bC=d3Array.bisector(e=>e.xValue).left,xC=()=>jsxRuntime.jsx("div",{className:"flex h-full items-center justify-center",children:jsxRuntime.jsx("p",{className:"text-gray-500",children:"No data available"})}),hC=()=>jsxRuntime.jsxs("div",{className:"flex h-full flex-col gap-4 p-4",children:[jsxRuntime.jsx(R,{className:"h-full w-full"}),jsxRuntime.jsxs("div",{className:"flex gap-4",children:[jsxRuntime.jsx(R,{className:"h-4 w-24"}),jsxRuntime.jsx(R,{className:"h-4 w-24"})]})]}),yC=({parentWidth:e,parentHeight:t,yFormatter:r={type:"number"},isLoading:o=false,enableZoom:n=false,enableBrush:a=false,brushHeight:i=60,onZoomChange:s,children:c})=>{let[l,p]=Ue.useState(null),[d,m]=Ue.useState(null),u=Ue.useRef(null),g=Ue.useRef(0),f=Ue.useRef(""),b=Ue.useRef(null),{colorMode:h}=pt(),y=Ue.useMemo(()=>Pn(),[h]),v=Ue.useMemo(()=>_s(),[h]),{datasets:x,seriesMetadata:C,categoryInfo:S,categoryColors:N,categoryLabels:T,hasBarSeries:w,firstBarSeriesIndex:F,seriesTypes:E}=Ue.useMemo(()=>{let me=Ue.Children.toArray(c).filter(le=>Ue.isValidElement(le)&&cm(le)),Me=me.filter(le=>le.props.data).length,we=me.some(le=>le.type===en),Ce=[],Ke=[],V=[],P=null,_=null,ie=null;me.forEach((le,Te)=>{let be=le.props;if(!be.data)return;Ce.push(be.data);let et=("color"in be&&be.color?be.color:void 0)||(Me===1?v:y[Te%y.length]);Ke.push({label:"label"in be&&be.label||`Series ${Ce.length}`,color:et});let Pr=le.type===Un?"area":le.type===Jn?"line":"bar";V.push(Pr),"categoryColors"in be&&be.categoryColors&&(P=be.categoryColors),"categoryLabels"in be&&be.categoryLabels&&(_=be.categoryLabels),le.type===en&&ie===null&&(ie=Ce.length-1);});let re=null;if(P){let le=new Set;Ce.forEach(Te=>{Te.forEach(be=>{be.category&&le.add(be.category);});}),re=Array.from(le).map(Te=>({label:_?.[Te]||Te,color:P[Te]||"#6b7280"}));}return {datasets:Ce,seriesMetadata:Ke,categoryInfo:re,categoryColors:P,categoryLabels:_,hasBarSeries:we,firstBarSeriesIndex:ie,seriesTypes:V}},[c,v,y,h]),A=e,J=a?i+8:0,B=t-60-24-J,Z=Math.max(100,B),Y=Ue.useMemo(()=>x.flat(),[x]),G=Ue.useMemo(()=>{if(Y.length===0)return null;let X=[...Y].sort((me,Me)=>me.xValue.getTime()-Me.xValue.getTime());return [X[0].xValue,X[X.length-1].xValue]},[Y]),M=d||G,j=Ue.useMemo(()=>M?x.map(me=>me.filter(Me=>Me.xValue>=M[0]&&Me.xValue<=M[1])):x,[x,M]);Ue.useEffect(()=>{s&&s(d);},[d,s]);let O=Ue.useMemo(()=>j.flat(),[j]),U=Ue.useMemo(()=>gc(O,Z,r),[O,Z,r]),z=Ue.useMemo(()=>{let X=Br(r),me=X.tickFormat||X.format,we=U.ticks(5).map(V=>me(V)),Ce=_p(we,12,"system-ui"),Ke=Math.ceil(Ce)+16;return {...ze,left:Math.max(Ke,30)}},[U,r]),I=Ue.useMemo(()=>M?scale.scaleTime({domain:M,range:[z.left,A-z.right]}):fc(Y,A),[M,Y,A,z]),H=Ue.useCallback(X=>{if(!G)return;let{scaleX:me,translateX:Me}=X,we=A-z.left-z.right,[Ce,Ke]=G,V=Ke.getTime()-Ce.getTime();if(V<=0){m(null);return}let P=-Me,_=P+we,ie=we*me/V,re=P/ie,le=_/ie,Te=new Date(Ce.getTime()+re),be=new Date(Ce.getTime()+le),zo=Math.abs(Te.getTime()-Ce.getTime()),et=Math.abs(be.getTime()-Ke.getTime()),Pr=V*.02;zo<Pr&&et<Pr?m(null):m([Te,be]);},[G,A,z]),K=Ue.useCallback(X=>{let{left:me}=u.current?.getBoundingClientRect()||{left:0},Me=X.clientX-me;if(X.timeStamp-(g.current||0)<16)return;g.current=X.timeStamp;let we=I.invert(Me),Ce=x.map((P,_)=>{if(!P||P.length===0)return null;let ie=bC(P,we,1);if(ie===0)return {point:P[0],datasetIndex:_};if(ie>=P.length)return {point:P[P.length-1],datasetIndex:_};let re=P[ie-1],le=P[ie];if(!re||!le)return null;let Te=Math.abs(re.xValue.getTime()-we.getTime()),be=Math.abs(le.xValue.getTime()-we.getTime());return {point:Te<be?re:le,datasetIndex:_}}).filter(P=>P!==null&&C[P.datasetIndex]!==void 0).map(({point:P,datasetIndex:_})=>({label:C[_].label,value:P.yValue,color:C[_].color,point:P,type:E[_]}));if(Ce.length===0){p(null);return}let Ke=I(Ce[0].point.xValue),V=Ke>(A-z.right-z.left)/2+z.left;p({xValue:Ce[0].point.xValue,series:Ce.map(({label:P,value:_,color:ie,point:re,type:le})=>({label:P,value:_,color:ie,type:le,category:re.category,categoryColor:re.category&&N?N[re.category]:void 0})),x:Ke,y:U(Ce[0].value),position:V?"left":"right"});},[x,j,C,E,I,U,A,N,z]),L=()=>{p(null);},W=Ue.useCallback(()=>{m(null),b.current&&b.current.reset();},[]),D=Ue.useCallback(X=>{if(m(X),b.current&&G){let[me,Me]=G,we=Me.getTime()-me.getTime();if(we<=0){b.current.reset();return}if(!X)b.current.reset();else {let[Ce,Ke]=X,V=Ke.getTime()-Ce.getTime();if(V<=0){b.current.reset();return}let P=we/V,_=A-z.left-z.right,re=-((Ce.getTime()-me.getTime())/we)*_*P;b.current.setTransformMatrix({scaleX:P,scaleY:1,translateX:re,translateY:0,skewX:0,skewY:0});}}},[G,A,z]),$={width:A,height:Z,xScale:I,yScale:U,yFormatter:r,animationSettings:Zp,tooltip:{data:l,show:p,hide:()=>p(null)},datasets:j,seriesMetadata:C,seriesTypes:E,categoryColors:N||void 0,categoryLabels:T||void 0},ne=Ue.Children.toArray(c),Ne=0,Re=[],Ae=[];ne.forEach(X=>{if(!Ue.isValidElement(X)){Re.push(X);return}if(gC(X))Ae.push(X);else if(cm(X)){let me=Ne;Ne++;let Me=X.props;Re.push(Ue__namespace.default.cloneElement(X,{...Me,data:j[me]||Me.data,color:C[me]?.color}));}else Re.push(X);});let kr=(S||C).map(X=>({category:X.label,fill:X.color})),Ut=Sd({datasets:x,metadata:{xLabel:"Date",yLabel:"Value",seriesLabels:C.map(X=>X.label),timestamp:true},svgRef:u});if(o)return jsxRuntime.jsx(hC,{});if(x.length===0)return jsxRuntime.jsx(xC,{});let Bo=jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("title",{children:"Data chart visualization"}),jsxRuntime.jsx("g",{children:U.ticks(5).map(X=>jsxRuntime.jsx(shape.Line,{from:{x:z.left,y:U(X)},to:{x:A-z.right,y:U(X)},stroke:"var(--color-border-muted)",strokeWidth:1},`grid-line-${X}`))}),Re,jsxRuntime.jsx(Kn.Bottom,{top:Z-z.bottom,scale:I,width:A-z.left-z.right}),jsxRuntime.jsx(Kn.Left,{left:z.left,scale:U,yFormatter:r}),l&&!l.isEvent&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[w&&F!==null?(()=>{let X=j[F]??[];if(X.length===0)return null;let me=[...X].sort((ie,re)=>ie.xValue.getTime()-re.xValue.getTime()),Me=me.findIndex(ie=>ie.xValue.getTime()===l.xValue.getTime()),we=me[Me+1],Ce=me.length>1&&we?we.xValue.getTime()-l.xValue.getTime():15*6e4,Ke=Math.abs(I(new Date(l.xValue.getTime()+Ce))-I(l.xValue)),P=I(l.xValue)-Ke/2,_=U.range();return jsxRuntime.jsx("rect",{x:P,y:_[1],width:Ke,height:_[0]-_[1],className:"fill-background-muted",opacity:.5,pointerEvents:"none",style:{transition:"all 100ms ease-out"}})})():null,l.series.filter(X=>X.type!=="bar").map(X=>jsxRuntime.jsxs("g",{children:[jsxRuntime.jsx("circle",{cx:I(l.xValue),cy:U(X.value),r:8,fill:"white",stroke:X.color,strokeWidth:2,style:{transition:"all 100ms ease-out"}}),jsxRuntime.jsx("circle",{cx:I(l.xValue),cy:U(X.value),r:4,fill:X.color,style:{transition:"all 100ms ease-out"}})]},`highlight-${X.label}`))]}),jsxRuntime.jsx("rect",{x:z.left,y:z.top,width:A-z.left-z.right,height:Z-z.top-z.bottom,fill:"transparent",style:{cursor:n?"grab":"crosshair"},onMouseMove:K,onMouseLeave:L}),Ae]});return jsxRuntime.jsx("div",{className:"relative flex h-full flex-col pb-6",children:jsxRuntime.jsxs($o.Provider,{value:$,children:[n?jsxRuntime.jsx(zoom.Zoom,{width:A,height:Z,scaleXMin:1,scaleXMax:20,scaleYMin:1,scaleYMax:1,constrain:X=>{let{scaleX:me,translateX:Me}=X,we=Math.max(1,Math.min(20,me)),Ce=1,Ke=A-z.left-z.right,V=0,P=Ke*(1-we),_=Math.max(P,Math.min(V,Me));return {...X,scaleX:we,scaleY:Ce,translateX:_,translateY:0}},children:X=>{if(b.current=X,X.transformMatrix){let{scaleX:me,translateX:Me}=X.transformMatrix,we=`${me.toFixed(4)}-${Me.toFixed(2)}`;we!==f.current&&(f.current=we,setTimeout(()=>{H(X.transformMatrix);},0));}return jsxRuntime.jsx("svg",{width:A,height:Z,className:"overflow-visible",ref:me=>{u.current=me,X.containerRef.current!==me&&(X.containerRef.current=me);},role:"img","aria-label":"Data chart",style:{cursor:X.isDragging?"grabbing":"grab",touchAction:"none"},onMouseDown:X.dragStart,onMouseMove:X.dragMove,onMouseUp:X.dragEnd,onMouseLeave:()=>{X.isDragging&&X.dragEnd();},onTouchStart:X.dragStart,onTouchMove:X.dragMove,onTouchEnd:X.dragEnd,children:Bo})}}):jsxRuntime.jsx("svg",{width:A,height:Z,className:"overflow-visible",ref:u,role:"img","aria-label":"Data chart",children:Bo}),jsxRuntime.jsx(xi,{data:l,formatter:r}),a&&G&&jsxRuntime.jsx(xc,{data:x,seriesMetadata:C,width:A,height:i,onBrushChange:D,brushRegion:d,margin:z}),jsxRuntime.jsx(fi,{onExport:Ut,items:kr,marginLeft:z.left,marginRight:z.right,isZoomed:d!==null,onResetZoom:W})]})})},um=responsive.withParentSize(yC);var kC=e=>e.toLocaleString(),PC=e=>`${Math.round(e*100)}%`,gm=({data:e,width:t=800,height:r=400,padding:o=0,barGap:n=30,formatValue:a=kC,formatPercentage:i=PC,color:s,showScale:c=true,showOverallConversion:l=true,overallConversionLabel:p="Overall Conversion:",activeStageId:d,onStageClick:m,onStageHover:u,className:g,style:f,"aria-label":b="Funnel chart"})=>{let[h,y]=Ue.useState(null),[v,x]=Ue.useState(t),C=Ue.useRef(null),S=d??h,N=Ue.useId(),T=s||"var(--color-viz-default)";Ue.useEffect(()=>{if(!C.current)return;let B=new ResizeObserver(Z=>{for(let Y of Z)x(Y.contentRect.width);});return B.observe(C.current),()=>{B.disconnect();}},[]);let{layout:w,overallConversion:F}=Ue.useMemo(()=>{if(e.length===0)return {layout:[],overallConversion:0};let B=e[0].value,Z=l?60:0,Y=r-o*2-Z,G=(e.length-1)*n,M=(Y-G)/e.length,j=e.map((U,z)=>{let I=o+Z+z*(M+n),H=B===0?0:U.value/B,K=H,L=z===0?null:e[z-1].value,W=L==null||L===0?0:1-U.value/L;return {stage:U,index:z,y:I,barHeight:M,widthPercent:H,conversionRate:K,dropOff:W}}),O=B===0?0:e[e.length-1].value/B;return {layout:j,overallConversion:O,maxValue:B}},[e,v,r,o,n,c,l]);if(e.length===0)return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("flex h-full min-h-[280px] w-full items-center justify-center rounded-lg border border-dashed border-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 E=c?60:0,A=o+E,J=v-o*2-E;return jsxRuntime.jsx("div",{ref:C,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:T,to:T,toOpacity:.85}),jsxRuntime.jsx(gradient.LinearGradient,{id:`${N}-bg`,from:T,to:T,fromOpacity:.01,toOpacity:.15,x1:"0",y1:"0",x2:"1",y2:"0"})]}),l&&jsxRuntime.jsxs("text",{x:A,y:o+20,className:"fill-text-body text-sm font-medium",children:[jsxRuntime.jsx("tspan",{className:"fill-text-muted",children:p})," ",i(F)]}),c&&jsxRuntime.jsx("g",{children:w.map(B=>{let Z=B.y+B.barHeight/2;return jsxRuntime.jsx("text",{x:o+E-12,y:Z,textAnchor:"end",dominantBaseline:"middle",className:"fill-text-caption text-xs",children:i(B.conversionRate)},B.stage.id)})}),w.map(B=>{let Z=S===B.stage.id,Y=J*B.widthPercent;return jsxRuntime.jsxs("g",{children:[jsxRuntime.jsx("rect",{x:A,y:B.y,width:J,height:B.barHeight,fill:`url(#${N}-bg)`,rx:4}),jsxRuntime.jsx(framerMotion.motion.rect,{x:A,y:B.y,width:Y,height:B.barHeight,fill:`url(#${N}-bar)`,rx:4,initial:{width:0},animate:{width:Y},transition:{duration:.6,delay:B.index*.1,ease:"easeOut"},opacity:Z||S==null?1:.5,style:{cursor:m||u?"pointer":"default",transition:"opacity 150ms ease"},onMouseEnter:()=>{y(B.stage.id),u?.(B.stage);},onMouseLeave:()=>{y(null),u?.(null);},onClick:()=>m?.(B.stage)}),jsxRuntime.jsx("rect",{x:A+10,y:B.y+B.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:A+16,y:B.y+B.barHeight/2+4,className:"fill-text-heading text-xs font-semibold",style:{pointerEvents:"none"},children:a(B.stage.value)}),jsxRuntime.jsxs("text",{x:A,y:B.y-8,className:"fill-text-muted text-xs",style:{pointerEvents:"none"},children:[jsxRuntime.jsx("tspan",{children:B.index+1})," ",B.stage.label]}),B.stage.secondaryValue&&jsxRuntime.jsx("text",{x:A+16,y:B.y-24,className:"fill-text-muted text-xs",style:{pointerEvents:"none"},children:B.stage.secondaryValue}),B.index>0&&B.dropOff>0&&jsxRuntime.jsxs("text",{x:A+J,y:B.y-8,textAnchor:"end",className:"fill-text-muted text-xs",children:[i(B.dropOff)," drop"]}),B.stage.annotation&&jsxRuntime.jsxs("g",{children:[jsxRuntime.jsx("rect",{x:A+Y+8,y:B.y+8,width:60,height:24,rx:3,className:"fill-background-muted"}),jsxRuntime.jsx("text",{x:A+Y+16,y:B.y+20,className:"fill-text-caption text-xs font-medium",children:B.stage.annotation})]})]},B.stage.id)})]})})};function TC(e,t,r){return {field:e,operator:t,value:r}}function DC(e,t="AND"){return {logic:t,conditions:e}}function Zn(){return {logic:"AND",conditions:[]}}function bm(e){return !e||e.conditions.length===0?true:e.conditions.every(t=>"conditions"in t?bm(t):false)}function RC(e,t){if(!e)return [];let r=new Map(t?.map(i=>[i.field,i])),o=new Map;function n(i){if("conditions"in i)i.conditions.forEach(s=>n(s));else {let s=o.get(i.field)||[];s.push(i),o.set(i.field,s);}}e.conditions.forEach(i=>n(i));let a=[];for(let[i,s]of o.entries()){let c=r.get(i),l=c?.label||i,p=[],d=[],m=[];for(let u of s)u.operator==="in"&&Array.isArray(u.value)?p.push(...u.value):u.operator==="eq"?typeof u.value!="boolean"&&!Array.isArray(u.value)?p.push(u.value):m.push(u):["gte","gt","lte","lt"].includes(u.operator)?d.push({operator:u.operator,value:typeof u.value=="boolean"||Array.isArray(u.value)?String(u.value):u.value}):m.push(u);if(p.length>0){let g=Array.from(new Set(p)).map(f=>c?.values?.find(h=>String(h.value)===String(f))?.label??f);a.push({id:`${i}-in`,label:l,value:g.join(", ")});}if(d.length>0){let u=d.find(f=>f.operator==="gte"||f.operator==="gt"),g=d.find(f=>f.operator==="lte"||f.operator==="lt");if(u&&g){let f=u.operator==="gte"?"\u2265":">",b=g.operator==="lte"?"\u2264":"<";a.push({id:`${i}-range`,label:l,value:`${f} ${u.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:l,value:`${b} ${f.value}`});}}for(let u of m){let g;u.operator==="neq"?g=`\u2260 ${u.value}`:u.operator==="contains"?g=`contains "${u.value}"`:u.operator==="startsWith"?g=`starts with "${u.value}"`:u.operator==="endsWith"?g=`ends with "${u.value}"`:g=String(u.value),a.push({id:`${i}-${u.operator}`,label:l,value:g});}}return a}function zr(e,t){let r=e||Zn();return {...r,conditions:[...r.conditions,t]}}function lo(e,t){if(!e)return Zn();let r=e.conditions.filter(o=>"conditions"in o?lo(o,t).conditions.length>0:o.field!==t);return {...e,conditions:r}}function yc(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 qn({count:e,label:t="results",isLoading:r=false,className:o=""}){if(r)return jsxRuntime.jsx("div",{className:`flex items-center ${o}`,children:jsxRuntime.jsx(R,{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 EC=e=>{let t=wt({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 nn({label:e,description:t,errorMessage:r,size:o="md",tooltip:n,isRequired:a,transparent:i,showSearchIcon:s,isClearable:c,onClear:l,type:p,validationResult:d,reserveErrorSpace:m=true,...u}){let[g,f]=Ue__namespace.default.useState(false),{isFocused:b,handleFocus:h,handleBlur:y}=Qt(),v=p==="password";return jsxRuntime.jsx(reactAriaComponents.TextField,{...u,isRequired:a,className:ce(u.className,"group flex flex-col"),children:({isDisabled:x,isInvalid:C})=>jsxRuntime.jsxs("div",{className:"flex flex-col",children:[e&&jsxRuntime.jsx(ve,{size:o,tooltip:n,isRequired:a,children:e}),jsxRuntime.jsxs(ft,{children:[s&&jsxRuntime.jsx("div",{className:"pointer-events-none absolute left-2 top-1/2 -translate-y-[calc(50%+1px)] transform",children:jsxRuntime.jsx(k,{name:"MagnifyingGlass",className:"h-4 w-4 text-text-muted"})}),jsxRuntime.jsx(ti,{size:o,disabled:x,type:v?g?"text":"password":p,value:u.value,defaultValue:u.defaultValue,placeholder:u.placeholder,onFocus:S=>h(S,u.onFocus),onBlur:S=>y(S,u.onBlur),onChange:S=>u.onChange?.(S.target.value),className:EC({isInvalid:C,isDisabled:x,isFocused:b,size:o,transparent:i,showSearchIcon:s,isClearable:c,hasValue:!!u.value,isPassword:v,className:typeof u.className=="string"?u.className:void 0})}),c&&u.value&&!x&&jsxRuntime.jsx(cp,{onClick:()=>{l?l():u.onChange&&u.onChange("");},size:o}),v&&!x&&jsxRuntime.jsx("button",{type:"button",onClick:()=>f(!g),className:"absolute right-3 top-1/2 -translate-y-1/2 transform text-text-muted hover:text-text-body","aria-label":g?"Hide password":"Show password",onMouseDown:S=>{S.preventDefault(),S.stopPropagation();},children:jsxRuntime.jsx(k,{name:g?"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(oe,{size:o,children:r}):typeof r=="function"&&d?jsxRuntime.jsx(oe,{size:o,children:r(d)}):t?jsxRuntime.jsx(de,{size:o,children:t}):null}):jsxRuntime.jsx(jsxRuntime.Fragment,{children:typeof r=="string"?jsxRuntime.jsx(oe,{size:o,className:"mt-1",children:r}):typeof r=="function"&&d?jsxRuntime.jsx(oe,{size:o,className:"mt-1",children:r(d)}):t?jsxRuntime.jsx(de,{size:o,className:"mt-1",children:t}):null})]})})}function co({value:e,onChange:t,onClear:r,placeholder:o="Search...",size:n="sm",className:a=""}){return jsxRuntime.jsx("div",{className:`flex-1 min-w-0 sm:max-w-sm ${a}`,children:jsxRuntime.jsx(nn,{value:e,onChange:t,placeholder:o,showSearchIcon:true,isClearable:!!e&&!!r,onClear:r,size:n,"aria-label":o,reserveErrorSpace:false})})}function jn({value:e,options:t,onChange:r,direction:o,onDirectionChange:n,showLabel:a=true,size:i="sm",className:s=""}){let c=o!==void 0&&n!==void 0;return 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(eo,{selectedKey:e,onSelectionChange:l=>r(l),size:i,className:"min-w-32",items:t.map(l=>({id:l.value,label:l.label,value:l.value})),renderItem:l=>l.label,"aria-label":"Sort by",reserveErrorSpace:false}),c&&jsxRuntime.jsx(q,{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 vm({search:e,searchMobileMode:t="expanded",filters:r=[],onRemoveFilter:o,onClearAllFilters:n,onManageFilters:a,maxVisibleFilterChips:i=3,sort:s,resultsCount:c,customControls:l,sticky:p,stickyTop:d="0",zIndex:m=10,className:u="",style:g}){let f=r.length>0;if(!(e||f||a||s||c||l))return null;let h=p?"sticky bg-background-surface":"",y=p?{top:d,zIndex:m}:{};return jsxRuntime.jsxs("div",{className:`@container flex flex-col gap-3 bg-background-surface py-3 border-b border-border-default ${h} ${u}`,style:{...g,...y},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&&jsxRuntime.jsx(qn,{count:c.count,label:c.label,isLoading:c.isLoading}),c&&s&&jsxRuntime.jsx("div",{className:"h-4 w-px bg-border-default"}),s&&jsxRuntime.jsx(jn,{value:s.value,options:s.options,onChange:s.onChange,showLabel:s.showLabel,direction:s.direction,onDirectionChange:s.onDirectionChange}),f&&o&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[r.slice(0,i).map(v=>jsxRuntime.jsxs(Fr,{variant:"brand",size:"sm",onRemove:()=>o(v.id),isRemovable:true,children:[v.label,": ",v.value]},v.id)),r.length>i&&a&&jsxRuntime.jsxs(q,{variant:"ghost",size:"sm",onClick:a,className:"text-text-muted hover:text-text-body whitespace-nowrap",children:["+",r.length-i," more"]}),n&&jsxRuntime.jsx(q,{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:l||jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[e&&jsxRuntime.jsx("div",{className:"w-64",children:jsxRuntime.jsx(co,{value:e.value,onChange:e.onChange,onClear:e.onClear,placeholder:e.placeholder})}),a&&jsxRuntime.jsx(q,{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:l?jsxRuntime.jsx("div",{className:"flex-1",children:l}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[e&&jsxRuntime.jsx("div",{className:"flex-1",children:jsxRuntime.jsx(co,{value:e.value,onChange:e.onChange,onClear:e.onClear,placeholder:e.placeholder})}),a&&jsxRuntime.jsx(q,{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:[c&&jsxRuntime.jsx(qn,{count:c.count,label:c.label,isLoading:c.isLoading}),s&&jsxRuntime.jsx(jn,{value:s.value,options:s.options,onChange:s.onChange,showLabel:s.showLabel,direction:s.direction,onDirectionChange:s.onDirectionChange})]})]})]})}function Cm({filters:e,onRemove:t,onClearAll:r,onManageFilters:o,maxVisibleChips:n=3,mode:a="chips",showManageButton:i=true,size:s="sm",className:c=""}){let l=e.length>0,p=e.slice(0,n),d=Math.max(0,e.length-n),m=d>0,u=a==="button"&&!!o,g=a==="chips"&&i&&!!o;if(!l&&!u&&!g)return null;let f=u&&jsxRuntime.jsxs(q,{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(q,{variant:"secondary",size:s,icon:"Sliders",onClick:o,className:"whitespace-nowrap",children:"Filters"}),l&&p.map(y=>jsxRuntime.jsxs(Fr,{variant:"secondary",size:s,onRemove:()=>t(y.id),isRemovable:true,children:[y.label,": ",y.value]},y.id)),l&&m&&o&&jsxRuntime.jsxs(q,{variant:"ghost",size:s,onClick:o,className:"text-text-muted hover:text-text-body whitespace-nowrap",children:["+",d," more"]}),l&&r&&jsxRuntime.jsx(q,{variant:"ghost",size:s,onClick:r,className:"text-text-muted hover:text-text-body whitespace-nowrap",children:"Clear all"})]}),h=a==="button"?f:b;return jsxRuntime.jsx("div",{className:`flex flex-wrap items-center gap-2 ${c}`,children:h})}function Nm({label:e,description:t,errorMessage:r,size:o="md",tooltip:n,isRequired:a,isDisabled:i,isInvalid:s,showCalendar:c=true,reserveErrorSpace:l=true,validationResult:p,className:d,...m}){let[u,g]=Ue.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:ce(d,"flex flex-col gap-1"),children:[e&&jsxRuntime.jsx(ve,{size:o,tooltip:n,isRequired:a,children:e}),jsxRuntime.jsx(ft,{children:jsxRuntime.jsxs("div",{className:"relative w-full",children:[jsxRuntime.jsx(Qn,{size:o,isDisabled:i,isInvalid:s,hasCalendar:c}),c&&!i&&jsxRuntime.jsxs(reactAriaComponents.DialogTrigger,{isOpen:u,onOpenChange:g,children:[jsxRuntime.jsx(q,{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(Xo,{value:m.value,onChange:f,minValue:m.minValue,maxValue:m.maxValue,isDisabled:i,isReadOnly:m.isReadOnly,isDateUnavailable:m.isDateUnavailable})})})]})]})}),l?jsxRuntime.jsx("div",{className:"mt-1 min-h-[20px]",children:typeof r=="string"?jsxRuntime.jsx(oe,{size:o,children:r}):typeof r=="function"&&p?jsxRuntime.jsx(oe,{size:o,children:r(p)}):t?jsxRuntime.jsx(de,{size:o,children:t}):null}):jsxRuntime.jsx(jsxRuntime.Fragment,{children:typeof r=="string"?jsxRuntime.jsx(oe,{size:o,className:"mt-1",children:r}):typeof r=="function"&&p?jsxRuntime.jsx(oe,{size:o,className:"mt-1",children:r(p)}):t?jsxRuntime.jsx(de,{size:o,className:"mt-1",children:t}):null})]})}function ZC({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-xs",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 Qn({size:e="md",isDisabled:t,isInvalid:r,hasCalendar:o,className:n,...a}){return jsxRuntime.jsx(reactAriaComponents.DateInput,{className:tailwindMerge.twMerge(Zo({isInvalid:r,isDisabled:t}),"px-3 py-2 flex items-center gap-0.5 w-full",o&&"pr-10",n),...a,children:i=>jsxRuntime.jsx(reactAriaComponents.DateSegment,{segment:i,className:ZC({isPlaceholder:i.isPlaceholder,isDisabled:!i.isEditable||t,size:e})})})}function e1({selectionState:e,isDisabled:t}){let r=`${ke} 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 sn({errorMessage:e,...t}){return jsxRuntime.jsxs(reactAriaComponents.RangeCalendar,{...t,children:[jsxRuntime.jsx(li,{}),jsxRuntime.jsxs(reactAriaComponents.CalendarGrid,{className:"w-full border-separate [border-spacing:0] [&_td]:p-0 [&_td]:!border-0",children:[jsxRuntime.jsx(ci,{}),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:c})=>jsxRuntime.jsx("span",{className:e1({selectionState:n&&(a||i)?"cap":n?"middle":"none",isDisabled:c}),children:o})})})]}),e&&jsxRuntime.jsx(reactAriaComponents.Text,{slot:"errorMessage",className:"text-sm text-red-600",children:e})]})}function Ci({label:e,description:t,errorMessage:r,...o}){return jsxRuntime.jsxs(reactAriaComponents.DateRangePicker,{...o,className:ce(o.className,"group flex flex-col gap-1"),children:[e&&jsxRuntime.jsx(ve,{children:e}),jsxRuntime.jsxs(up,{className:"w-auto min-w-[208px]",children:[jsxRuntime.jsx(Qn,{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(Qn,{slot:"end",className:"flex-1 px-2 py-1.5 text-sm"}),jsxRuntime.jsx(q,{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(de,{children:t}),typeof r=="string"?jsxRuntime.jsx(oe,{children:r}):null,jsxRuntime.jsx(We,{children:jsxRuntime.jsx(sn,{})})]})}var l1=e=>{let t=wt({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 $n({label:e,description:t,errorMessage:r,size:o="md",tooltip:n,isRequired:a,transparent:i,validationResult:s,reserveErrorSpace:c=true,...l}){let p=Ue.useId(),{isFocused:d,handleFocus:m,handleBlur:u}=Qt();return jsxRuntime.jsx(reactAriaComponents.NumberField,{...l,id:p,isRequired:a,className:ce(l.className,"group flex flex-col gap-1"),step:l.step??1,onChange:g=>{typeof g=="number"&&(l.maxValue!=null&&g>l.maxValue?l.onChange?.(l.maxValue):l.minValue!=null&&g<l.minValue?l.onChange?.(l.minValue):l.onChange?.(g));},isInvalid:!!r||typeof l.value=="number"&&(l.maxValue!=null&&l.value>l.maxValue||l.minValue!=null&&l.value<l.minValue),children:({isDisabled:g,isInvalid:f})=>jsxRuntime.jsxs("div",{className:"flex flex-col",children:[e&&jsxRuntime.jsx(ve,{size:o,tooltip:n,isRequired:a,htmlFor:p,children:e}),jsxRuntime.jsx("div",{className:"relative",children:jsxRuntime.jsxs(reactAriaComponents.Group,{className:"relative",children:[jsxRuntime.jsx(reactAriaComponents.Input,{onFocus:h=>m(h,l.onFocus),onBlur:h=>u(h,l.onBlur),className:l1({isInvalid:f||!!r,isDisabled:g,isFocused:d,transparent:i,size:o,className:typeof l.className=="string"?l.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:g,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:g,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})})]})]})}),c?jsxRuntime.jsx("div",{className:"mt-1 min-h-[20px]",children:r?jsxRuntime.jsx(oe,{size:o,children:typeof r=="function"?r(s):r}):t?jsxRuntime.jsx(de,{size:o,children:t}):null}):jsxRuntime.jsx(jsxRuntime.Fragment,{children:r?jsxRuntime.jsx(oe,{size:o,className:"mt-1",children:typeof r=="function"?r(s):r}):t?jsxRuntime.jsx(de,{size:o,className:"mt-1",children:t}):null})]})})}var kc={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 u1({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=kc[o].track,i=ke,s=r==="brand"?"focus-visible:outline-action-brand":"focus-visible:outline-action-default",c="";return e?r==="brand"?c="bg-action-brand forced-colors:!bg-[Highlight] group-pressed:bg-action-brand-hover":c="bg-action-default forced-colors:!bg-[Highlight] group-pressed:bg-action-default-hover":c="bg-gray-400 dark:bg-zinc-400 group-pressed:bg-gray-500 dark:group-pressed:bg-zinc-300",[n,a,i,s,c,t?"bg-gray-200 dark:bg-zinc-700 forced-colors:group-selected:!bg-[GrayText] forced-colors:border-[GrayText]":""].filter(Boolean).join(" ")}function p1({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=kc[r].handle;return [o,n,e?"translate-x-[100%]":"translate-x-0",t?"forced-colors:outline-[GrayText]":""].filter(Boolean).join(" ")}function Si({children:e,variant:t="default",size:r="md",...o}){return jsxRuntime.jsx(reactAriaComponents.Switch,{...o,className:ce(o.className,`group flex items-center gap-2 ${kc[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:u1({...n,variant:t,size:r}),children:jsxRuntime.jsx("span",{className:p1({...n,size:r})})}),e]})})}function Dm({isOpen:e,onClose:t,facetConfigs:r,facetCounts:o={},currentFilters:n,onApply:a,onClear:i,title:s="Filters"}){let[c,l]=Ue.useState(n),[p,d]=Ue.useState({});Ue.useEffect(()=>{e&&(l(n),d({}));},[e,n]);let m=()=>{a(c),t();},u=()=>{let x=Zn();l(x),i?i():a(x),t();},g=x=>{if(!c)return [];if(!yc(c).includes(x))return [];let S=[];function N(T){if(T)for(let w of T.conditions)"conditions"in w?N(w):w.field===x&&w.operator==="in"&&Array.isArray(w.value)&&S.push(...w.value.map(String));}return N(c),S},f=(x,C,S)=>{let N=lo(c,x);C!==void 0&&(N=zr(N,{field:x,operator:"gte",value:C})),S!==void 0&&(N=zr(N,{field:x,operator:"lte",value:S})),l(N);},b=x=>{if(!c)return;let C;function S(N){if(N)for(let T of N.conditions)"conditions"in T?S(T):T.field===x&&T.operator==="eq"&&typeof T.value=="boolean"&&(C=T.value);}return S(c),C},h=(x,C)=>{let S=lo(c,x);C!==void 0&&(S=zr(S,{field:x,operator:"eq",value:C})),l(S);},y=(x,C,S)=>{let N=lo(c,x);C&&(N=zr(N,{field:x,operator:"gte",value:C.toString()})),S&&(N=zr(N,{field:x,operator:"lte",value:S.toString()})),l(N);},v=x=>{let C=o[x.field]||{},S=p[x.field]||"",N=[];if(x.values?N=x.values.map(w=>({value:String(w.value),label:w.label,count:C[String(w.value)]})):N=Object.entries(C).map(([w,F])=>({value:w,label:w,count:F})),S){let w=S.toLowerCase();N=N.filter(F=>F.label.toLowerCase().includes(w));}N.sort((w,F)=>w.count!==void 0&&F.count!==void 0&&F.count!==w.count?F.count-w.count:w.label.localeCompare(F.label));let T=x.type||"string";if(T==="string"||!x.type){let w=g(x.field);return jsxRuntime.jsxs("div",{className:"space-y-3",children:[jsxRuntime.jsx("div",{className:"font-medium text-text-body",children:x.label}),N.length>10&&jsxRuntime.jsx(co,{value:S,onChange:F=>d(E=>({...E,[x.field]:F})),onClear:()=>d(F=>({...F,[x.field]:""})),placeholder:`Search ${x.label.toLowerCase()}...`,size:"sm"}),jsxRuntime.jsx(ec,{value:w,onChange:F=>{let E=lo(c,x.field);F.length>0&&(E=zr(E,{field:x.field,operator:"in",value:F})),l(E);},children:N.slice(0,50).map(F=>jsxRuntime.jsx(oo,{value:F.value,children:jsxRuntime.jsxs("span",{className:"text-sm text-text-body",children:[F.label,F.count!==void 0&&jsxRuntime.jsxs("span",{className:"ml-2 text-text-muted",children:["(",F.count,")"]})]})},F.value))}),N.length>50&&jsxRuntime.jsxs("div",{className:"text-sm text-text-muted",children:["Showing first 50 of ",N.length," options. Use search to narrow down."]})]})}if(T==="number"){let w,F,E=A=>{if(A)for(let J of A.conditions)"conditions"in J?E(J):J.field===x.field&&(J.operator==="gte"&&typeof J.value=="number"&&(w=J.value),J.operator==="lte"&&typeof J.value=="number"&&(F=J.value));};return E(c),jsxRuntime.jsxs("div",{className:"space-y-3",children:[jsxRuntime.jsx("div",{className:"font-medium text-text-body",children:x.label}),jsxRuntime.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[jsxRuntime.jsx($n,{label:"Min",value:w,onChange:A=>f(x.field,A,F)}),jsxRuntime.jsx($n,{label:"Max",value:F,onChange:A=>f(x.field,w,A)})]})]})}if(T==="boolean"){let w=b(x.field);return jsxRuntime.jsx("div",{className:"space-y-3",children:jsxRuntime.jsxs("div",{className:"flex items-center justify-between",children:[jsxRuntime.jsx("span",{className:"font-medium text-text-body",children:x.label}),jsxRuntime.jsx(Si,{size:"lg",isSelected:w??false,onChange:F=>h(x.field,F?true:void 0),children:w?"Yes":"No"})]})})}return T==="date"?jsxRuntime.jsxs("div",{className:"space-y-3",children:[jsxRuntime.jsx("div",{className:"font-medium text-text-body",children:x.label}),jsxRuntime.jsx(Ci,{label:"Date Range",onChange:w=>{w?y(x.field,w.start,w.end):y(x.field,void 0,void 0);}})]}):null};return jsxRuntime.jsx(qt,{isOpen:e,onClose:t,title:s,primaryAction:{label:"Apply",onPress:m,variant:"default"},secondaryAction:{label:"Clear all",onPress:u},maxWidth:"500px",children:jsxRuntime.jsxs("div",{className:"space-y-6",children:[r.length===0&&jsxRuntime.jsx("div",{className:"text-text-muted",children:"No filters available"}),r.map((x,C)=>jsxRuntime.jsxs("div",{children:[v(x),C<r.length-1&&jsxRuntime.jsx("div",{className:"mt-6 border-t border-border-muted"})]},x.field))]})})}function Pc(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 Et(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 pe(e="left",t){return tailwindMerge.twMerge("flex items-center gap-1",Pc(e),t)}function wi(e,t="\u2014"){return e==null||e===""?t:String(e)}var Vr={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 yt(e="normal"){return {strong:Vr.lg,high:Vr.lg,normal:Vr.md,low:Vr.sm}[e]}function ue(e,t){return typeof e=="function"?e(t):e}function Rm(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 Am(e){return e?"success":"neutral"}function ki(e,t=false){return t?e>0?"text-green-600":e<0?"text-red-600":"text-text-body":"text-text-body"}function Tc(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 nr(e,t,r,o="hover",n="default",a,i){if(!t)return e;let s=typeof t=="function"&&r?t(r):t,c=Tc(o,n);return jsxRuntime.jsx("a",{href:s,className:tailwindMerge.twMerge(c,a==="strong"||a==="high"?"font-semibold":"",i),onClick:p=>{p.metaKey||p.ctrlKey;},children:e})}function Mm({row:e,context:t,actions:r,align:o="right",size:n="sm"}){let{isLoading:a}=t;if(a)return jsxRuntime.jsx(R,{className:Vr.sm});let s=(typeof r=="function"?r(e):r).filter(l=>!ue(l.hidden,e));if(s.length===0)return null;let c=pe(o);return jsxRuntime.jsx("div",{className:c,children:s.map(l=>{let p=ue(l.disabled,e);return l.variant==="icon"||!l.label?jsxRuntime.jsx(q,{variant:"icon",size:n,onPress:()=>{l.onClick(e);},isDisabled:p,"aria-label":l.label||l.id,children:jsxRuntime.jsx(k,{name:l.icon||"DotsThree",size:n==="sm"?16:20})},l.id):jsxRuntime.jsxs(q,{variant:l.variant||"secondary",size:n,onPress:()=>{l.onClick(e);},isDisabled:p,children:[l.icon&&jsxRuntime.jsx(k,{name:l.icon,size:n==="sm"?14:16}),l.label]},l.id)})})}function Lm({value:e,row:t,context:r,variant:o="default",label:n,size:a="sm",shape:i="square",dot:s,dotPosition:c="left",dotPulse:l,align:p="left",emptyText:d="\u2014",className:m}){let{isLoading:u}=r;if(u)return jsxRuntime.jsx(R,{className:yt("normal")});if(e==null||e==="")return jsxRuntime.jsx("div",{className:pe(p,"text-text-muted"),children:d});let g=typeof o=="function"?o(e,t):o,f=typeof n=="function"?n(e,t):n!==void 0?n:String(e),b=typeof s=="function"?s(e,t):s,h=typeof l=="function"?l(e,t):l,y=pe(p,m);return jsxRuntime.jsx("div",{className:y,children:jsxRuntime.jsx(Oe,{variant:g,size:a,shape:i,dot:b,dotPosition:c,dotPulse:h,children:f})})}function Fm({value:e,context:t,format:r="icon",trueText:o="Yes",falseText:n="No",trueIcon:a="Check",falseIcon:i="X",showFalse:s=true,align:c="center",emphasis:l="normal",className:p}){let{isLoading:d}=t;if(d)return jsxRuntime.jsx(R,{className:yt(l)});let m=!!e;if(!m&&!s)return jsxRuntime.jsx("div",{className:pe(c,p)});let u=pe(c,p);switch(r){case "icon":return jsxRuntime.jsx("div",{className:u,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:u,children:jsxRuntime.jsx("span",{className:Et(l),children:m?o:n})});case "badge":return jsxRuntime.jsx("div",{className:u,children:jsxRuntime.jsx(Oe,{variant:m?"success":"neutral",size:"sm",children:m?o:n})});default:return null}}function Im({row:e,context:t,firstName:r,lastName:o,email:n,avatarUrl:a,layout:i="stacked",size:s="sm",href:c,LinkComponent:l,linkVariant:p="default",showEmail:d=false,emphasis:m="normal",align:u="left",className:g}){let{isLoading:f}=t,b=ue(r,e),h=ue(o,e),y=ue(n,e),v=ue(a,e),x=ue(c,e),C=pe(u,g);return jsxRuntime.jsx("div",{className:C,children:jsxRuntime.jsx(ui,{firstName:b,lastName:h,email:y,avatarUrl:v,layout:i,size:s,href:x,LinkComponent:l,linkVariant:p,showEmail:d,emphasis:m,isLoading:f})})}function Bm({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 zm({value:e,row:t,context:r,format:o="date",customFormat:n,emptyText:a="\u2014",align:i="left",emphasis:s="normal",href:c,linkBehavior:l="hover",className:p}){let{isLoading:d}=r;if(d)return jsxRuntime.jsx(R,{className:yt(s)});if(!e)return jsxRuntime.jsx("div",{className:pe(i,"text-text-muted"),children:a});let m=e instanceof Date?e:new Date(e);if(isNaN(m.getTime()))return jsxRuntime.jsx("div",{className:pe(i,"text-text-muted"),children:a});let u;switch(o){case "date":u=m.toLocaleDateString("en-US",{year:"numeric",month:"short",day:"numeric"});break;case "time":u=m.toLocaleTimeString("en-US",{hour:"2-digit",minute:"2-digit"});break;case "datetime":u=m.toLocaleString("en-US",{year:"numeric",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"});break;case "relative":u=C1(m);break;case "custom":u=n?m.toLocaleString("en-US",n):m.toISOString();break;default:u=m.toLocaleDateString();}let g=pe(i,tailwindMerge.twMerge(Et(s),p)),f=ue(c,t);return f?jsxRuntime.jsx("div",{className:g,children:nr(u,f,t,l)}):jsxRuntime.jsx("div",{className:g,children:u})}function C1(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 Ti({manufacturer:e,model:t,deviceType:r,deviceTypeIconName:o,logoUrl:n,layout:a="stacked",size:i="md",href:s,LinkComponent:c,linkVariant:l="unstyled",showDeviceTypeIcon:p=true,showLogo:d=true,emphasis:m="normal",isLoading:u=false,className:g}){let[f,b]=Ue.useState(false),h=o||(r?N1(r):"DeviceMobile"),v={xs:{iconSize:28,logoSize:"w-7 h-7",gap:"gap-1.5",textSize:"text-xs",secondaryTextSize:"text-xs",iconInTextSize:12,skeletonIcon:28,skeletonText:80,skeletonSecondary:60},sm:{iconSize:32,logoSize:"w-8 h-8",gap:"gap-2",textSize:"text-sm",secondaryTextSize:"text-xs",iconInTextSize:14,skeletonIcon:32,skeletonText:96,skeletonSecondary:72},md:{iconSize:32,logoSize:"w-9 h-9",gap:"gap-3",textSize:"text-base",secondaryTextSize:"text-sm",iconInTextSize:16,skeletonIcon:36,skeletonText:128,skeletonSecondary:96},lg:{iconSize:40,logoSize:"w-10 h-10",gap:"gap-3",textSize:"text-lg",secondaryTextSize:"text-base",iconInTextSize:18,skeletonIcon:40,skeletonText:160,skeletonSecondary:120}}[i],x=n&&!f&&d,S={strong:"font-semibold text-text-body",high:"font-semibold text-text-body",normal:"text-text-body",low:"text-text-muted"}[m],N=({children:T,className:w})=>s?c?jsxRuntime.jsx(c,{href:s,className:w,children:T}):jsxRuntime.jsx(Le,{href:s,variant:l,className:tailwindMerge.twMerge("hover:underline",w),asButton:false,children:T}):jsxRuntime.jsx("span",{className:w,children:T});if(u)return a==="inline"?jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("flex items-center",v.gap,g),children:[jsxRuntime.jsx(R,{width:v.skeletonIcon,height:v.skeletonIcon,className:"flex-shrink-0 rounded"}),jsxRuntime.jsx(R,{width:v.skeletonText,height:v.skeletonIcon*.6})]}):jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("flex items-center",v.gap,g),children:[jsxRuntime.jsx(R,{width:v.skeletonIcon,height:v.skeletonIcon,className:"flex-shrink-0"}),jsxRuntime.jsxs("div",{className:"flex flex-col gap-1",children:[jsxRuntime.jsx(R,{width:v.skeletonText,height:16}),jsxRuntime.jsx(R,{width:v.skeletonSecondary,height:12})]})]});if(a==="inline"){let T=`${e} ${t}`;return jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("flex items-center",v.gap,g),children:[jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("flex-shrink-0 flex items-center justify-center rounded border border-border-muted",v.logoSize),children:x?jsxRuntime.jsx("img",{src:n,alt:`${e} logo`,className:"w-full h-full object-contain",onError:()=>b(true)}):jsxRuntime.jsx(k,{name:h,size:v.iconSize*.6,className:"text-text-muted"})}),jsxRuntime.jsx(N,{className:tailwindMerge.twMerge("truncate leading-normal hover:text-text-body",S,v.textSize,s&&"hover:underline hover:decoration-1 hover:underline-offset-4"),children:T})]})}return jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("flex items-center justify-start",v.gap,g),children:[d&&jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("flex-shrink-0 flex items-center justify-center rounded border border-border-muted",v.logoSize),children:x?jsxRuntime.jsx("img",{src:n,alt:`${e} logo`,className:"w-full h-full object-contain",onError:()=>b(true)}):jsxRuntime.jsx(k,{name:h,size:v.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",S,v.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",v.secondaryTextSize),children:[p&&jsxRuntime.jsx(k,{name:h,size:v.iconInTextSize,className:"flex-shrink-0"}),jsxRuntime.jsx("span",{className:"truncate",children:t})]})]})]})}function N1(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 Om({row:e,context:t,manufacturer:r,model:o,deviceType:n,logoUrl:a,layout:i="stacked",size:s="sm",href:c,LinkComponent:l,linkVariant:p="default",showDeviceTypeIcon:d=true,showLogo:m=true,emphasis:u="normal",align:g="left",className:f}){let{isLoading:b}=t,h=ue(r,e),y=ue(o,e),v=ue(n,e),x=ue(a,e),C=ue(c,e),S=pe(g,f);return jsxRuntime.jsx("div",{className:S,children:jsxRuntime.jsx(Ti,{manufacturer:h,model:y,deviceType:v,logoUrl:x,layout:i,size:s,href:C,LinkComponent:l,linkVariant:p,showDeviceTypeIcon:d,showLogo:m,emphasis:u,isLoading:b})})}var EE={charging:"percentage",discharging:"percentage",on:"kW",idle:void 0,off:void 0,heat:"temperature",cool:"temperature",auto:"temperature",eco:"temperature",unknown:void 0},w1=["charging","discharging","heat","cool","on"],k1={unknown:"Unknown",on:"On",off:"Off",idle:"Idle",charging:"Charging",discharging:"Discharging",heat:"Heating",eco:"Eco Mode",cool:"Cooling",auto:"Auto"};function Dc(e){return w1.includes(e)}function Rc(e){return k1[e]}function po({state:e,label:t,icon:r,isLoading:o,size:n="sm",shape:a="pill",dot:i,dotPulse:s,fixedWidth:c,className:l,...p}){if(o)return jsxRuntime.jsx(R,{className:"inline-flex h-6 w-20"});let d=t??Rc(e),m=Dc(e);return jsxRuntime.jsxs(Oe,{variant:e,size:n,shape:a,dot:i??m,dotPulse:s??m,className:c?`w-28 justify-center ${l||""}`:l,...p,children:[r&&jsxRuntime.jsx(k,{name:r,size:n==="sm"?12:n==="md"?14:16}),d]})}var T1={importing:"Importing",exporting:"Exporting"};function Wm(e){return T1[e]}function Ri({state:e,label:t,showIcon:r=false,isLoading:o,size:n="sm",shape:a="pill",fixedWidth:i,className:s,...c}){if(o)return jsxRuntime.jsx(R,{className:"inline-flex h-6 w-24"});let l=t??Wm(e),p=e==="exporting"?"ArrowUp":"ArrowDown",d=n==="sm"?12:n==="md"?14:16;return r?jsxRuntime.jsx(Oe,{variant:e,size:n,shape:a,className:`w-6 justify-center ${s||""}`,...c,children:jsxRuntime.jsx(k,{name:p,size:d})}):jsxRuntime.jsx(Oe,{variant:e,size:n,shape:a,className:i?`w-28 justify-center ${s||""}`:s,...c,children:l})}function Ai({state:e,stateLabel:t,metric:r,metricFormatter:o,secondaryState:n,layout:a="horizontal",isLoading:i,size:s="sm",shape:c="pill",icon:l,fixedWidth:p,secondaryStateIconOnly:d=false,className:m}){if(i)return jsxRuntime.jsx(R,{className:tailwindMerge.twMerge("inline-flex h-6 w-32",m)});let u=r!=null&&o?Zr(r,o):null,g=a==="horizontal",f=o&&!u;return jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("inline-flex items-center",g?"gap-2":"flex-col gap-1",m),children:[(u||f)&&jsxRuntime.jsx("span",{className:tailwindMerge.twMerge("font-medium inline-block",u?"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:u||"\u2014"}),jsxRuntime.jsx(po,{state:e,label:t,icon:l,size:s,shape:c,fixedWidth:p}),n&&jsxRuntime.jsx(jsxRuntime.Fragment,{children:n==="importing"||n==="exporting"?jsxRuntime.jsx(Ri,{state:n,size:s,shape:c,fixedWidth:p,showIcon:d}):jsxRuntime.jsx(po,{state:n,size:s,shape:c,fixedWidth:p})})]})}function Gm({value:e,row:t,context:r,metric:o,metricFormatter:n,secondaryState:a,size:i="sm",shape:s="pill",label:c,icon:l,fixedWidth:p=true,align:d="left",compact:m=false,className:u}){let{isLoading:g}=r;if(g)return jsxRuntime.jsx(R,{className:"inline-flex h-6 w-32"});if(!e)return jsxRuntime.jsx("div",{className:pe(d,u),children:jsxRuntime.jsx("span",{className:"text-text-muted",children:"\u2014"})});let f=ue(o,t),b=ue(a,t),h=typeof c=="function"?c(e,t):c,y=pe(d,u);return f!=null||n?jsxRuntime.jsx("div",{className:tailwindMerge.twMerge(y),children:jsxRuntime.jsx(Ai,{state:e,stateLabel:h,metric:f,metricFormatter:n,secondaryState:b||void 0,size:i,shape:s,icon:l,fixedWidth:p,secondaryStateIconOnly:m,layout:"horizontal"})}):jsxRuntime.jsx("div",{className:y,children:jsxRuntime.jsx(po,{state:e,label:h,icon:l,size:i,shape:s,fixedWidth:p})})}function Km({value:e,row:t,context:r,formatter:o,align:n="left",emphasis:a="normal",href:i,linkBehavior:s="hover",className:c,emptyText:l="\u2014",emptyClassName:p="text-text-muted"}){let{isLoading:d}=r;if(d)return jsxRuntime.jsx(R,{className:yt(a)});let m=Yt({value:e,formatter:o,emptyText:l,emptyClassName:p}),u=Et(a),g=pe(n,tailwindMerge.twMerge(u,c)),f=jsxRuntime.jsx("div",{className:g,children:m}),b=ue(i,t);return b?nr(f,b,t,s):f}var Mc=Ue__namespace.default.memo(({value:e,min:t,max:r,color:o="var(--color-viz-default)",backgroundColor:n="var(--color-background-muted)",colorScale:a,showLabel:i=true,formatLabel:s,height:c=20,minWidth:l=4,segments:p,segmentGap:d=2,barWidth:m,context:u})=>{let g=Ue.useMemo(()=>r===t?100:Math.max(0,Math.min(100,(e-t)/(r-t)*100)),[e,t,r]),f=Ue.useMemo(()=>o==="auto"&&a?a.type==="diverging"&&a.center!==void 0?Dn(e,t,r,a.center,a.scheme):Tn(e,t,r,a.scheme):o,[o,a,e,t,r]);if(u.isLoading)return jsxRuntime.jsx("div",{className:"flex items-center gap-2 w-full",style:{height:c},children:jsxRuntime.jsx("div",{className:"h-full flex-1 animate-pulse bg-border-default rounded"})});if(p&&p>0){let y=`calc((100% - ${d*(p-1)}px) / ${p})`,v=Math.ceil(g/100*p),x={height:c,...m&&{width:typeof m=="number"?`${m}px`:m,flexShrink:0}};return jsxRuntime.jsxs("div",{className:"flex items-center gap-2 w-full",children:[jsxRuntime.jsx("div",{className:`flex gap-0.5 ${m?"":"flex-1"}`,style:x,children:Array.from({length:p}).map((C,S)=>{let N=S<v;return jsxRuntime.jsx("div",{className:"rounded-sm",style:{width:y,backgroundColor:N?f:n==="none"?"transparent":n,marginRight:S<p-1?`${d}px`:0}},S)})}),i&&jsxRuntime.jsx("span",{className:"text-sm text-text-body whitespace-nowrap",children:s?s(e):e.toLocaleString()})]})}let b={height:c,backgroundColor:n==="none"?"transparent":n,...m&&{width:typeof m=="number"?`${m}px`:m,flexShrink:0}};return jsxRuntime.jsxs("div",{className:"flex items-center gap-2 w-full",children:[jsxRuntime.jsx("div",{className:`relative rounded-sm ${m?"":"flex-1"}`,style:b,children:jsxRuntime.jsx("div",{className:"absolute left-0 top-0 h-full rounded-sm",style:{width:`${g}%`,minWidth:g>0?l:0,backgroundColor:f}})}),i&&jsxRuntime.jsx("span",{className:"text-sm text-text-body whitespace-nowrap",children:s?s(e):e.toLocaleString()})]})});Mc.displayName="HorizontalBarCell";var Lc=Ue__namespace.default.memo(({value:e,data:t,color:r="var(--color-viz-default)",categoryColors:o,context:n,width:a,height:i=40})=>{let s=e||t||[],c=b=>"xValue"in b?b.xValue:b.x,l=b=>"yValue"in b?b.yValue:b.y,p=a||100,d=i,{xScale:m,yScale:u,barWidth:g}=Ue.useMemo(()=>{if(s.length===0)return {xScale:scale.scaleTime({range:[0,p],domain:[new Date,new Date]}),yScale:scale.scaleLinear({range:[d,0],domain:[0,1]}),barWidth:2};let b=d3Array.extent(s,N=>c(N)),h=d3Array.min(s,N=>l(N))??0,y=d3Array.max(s,N=>l(N))??0,v=h<0?h:0,x=scale.scaleTime({range:[0,p],domain:b}),C=scale.scaleLinear({range:[d,0],domain:[v,y*1.05]}),S=s.length>1?p/s.length*.8:8;return {xScale:x,yScale:C,barWidth:Math.max(2,S)}},[s,p,d]);if(n.isLoading)return jsxRuntime.jsx("div",{className:"flex items-center gap-0.5",style:{width:p,height:d},children:Array.from({length:5}).map((b,h)=>jsxRuntime.jsx("div",{className:"flex-1 animate-pulse bg-border-default rounded"},h))});if(!s||s.length===0)return jsxRuntime.jsx("div",{className:"flex items-center justify-center text-text-muted text-xs",style:{width:p,height:d},children:"No data"});let f=u(0);return jsxRuntime.jsx("svg",{width:p,height:d,children:s.map((b,h)=>{let y=l(b),v=m(c(b)),x=u(y),C=Math.abs(f-x),S=b.category&&o?.[b.category]?o[b.category]:r;return jsxRuntime.jsx(shape.Bar,{x:v-g/2,y:y>=0?x:f,width:g,height:C,fill:S,rx:1},`bar-${h}`)})})});Lc.displayName="MiniBarCell";function Xm({value:e,row:t,context:r,format:o="number",decimals:n=0,prefix:a,suffix:i,emptyText:s="\u2014",align:c="right",emphasis:l="normal",href:p,linkBehavior:d="hover",showPositiveSign:m=false,colorCode:u=false,className:g}){let{isLoading:f}=r;if(f)return jsxRuntime.jsx(R,{className:yt(l)});if(e==null||isNaN(Number(e)))return jsxRuntime.jsx("div",{className:pe(c,"text-text-muted"),children:s});let b=Number(e),h;switch(o){case "currency":h=new Intl.NumberFormat("en-US",{style:"currency",currency:"USD",minimumFractionDigits:n,maximumFractionDigits:n}).format(b);break;case "percent":h=new Intl.NumberFormat("en-US",{style:"percent",minimumFractionDigits:n,maximumFractionDigits:n}).format(b/100);break;case "compact":h=new Intl.NumberFormat("en-US",{notation:"compact",minimumFractionDigits:n>0?1:0,maximumFractionDigits:n}).format(b);break;default:h=new Intl.NumberFormat("en-US",{minimumFractionDigits:n,maximumFractionDigits:n}).format(b);}let v=`${m&&b>0?"+":""}${h}`,x=u?ki(b,true):Et(l),C=pe(c,tailwindMerge.twMerge(x,g)),S=jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[a&&jsxRuntime.jsx("span",{className:"text-text-muted",children:a}),jsxRuntime.jsx("span",{children:v}),i&&jsxRuntime.jsx("span",{className:"text-text-muted",children:i})]}),N=ue(p,t);return N?jsxRuntime.jsx("div",{className:C,children:nr(S,N,t,d)}):jsxRuntime.jsx("div",{className:C,children:S})}var Fc=Ue__namespace.default.memo(({value:e,showLabel:t=true,color:r="var(--color-viz-categorical-1)",backgroundColor:o="var(--color-background-muted)",height:n=20,segments:a,segmentGap:i=2,colorScale:s,context:c})=>{let l=Ue.useMemo(()=>Math.max(0,Math.min(100,e)),[e]),p=Ue.useMemo(()=>r==="auto"&&s?s.type==="diverging"&&s.center!==void 0?Dn(e,0,100,s.center,s.scheme):Tn(e,0,100,s.scheme):r,[r,s,e]);if(c.isLoading)return jsxRuntime.jsx("div",{className:"flex items-center gap-2",style:{height:n},children:jsxRuntime.jsx("div",{className:"h-full w-full animate-pulse bg-border-default rounded"})});if(a&&a>0){let m=`calc((100% - ${i*(a-1)}px) / ${a})`,u=Math.ceil(l/100*a);return jsxRuntime.jsxs("div",{className:"flex items-center gap-2 w-full",children:[jsxRuntime.jsx("div",{className:"flex gap-0.5 flex-1",style:{height:n},children:Array.from({length:a}).map((g,f)=>{let b=f<u,h=p;if(r==="auto"&&s&&b){let y=(f+1)/a*100;s.type==="diverging"&&s.center!==void 0?h=Dn(y,0,100,s.center,s.scheme):h=Tn(y,0,100,s.scheme);}return jsxRuntime.jsx("div",{className:"rounded-sm",style:{width:m,backgroundColor:b?h: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:[l.toFixed(0),"%"]})]})}return jsxRuntime.jsxs("div",{className:"flex items-center gap-2 w-full",children:[jsxRuntime.jsx("div",{className:"relative flex-1 rounded-sm",style:{height:n,backgroundColor:o==="none"?"transparent":o},children:jsxRuntime.jsx("div",{className:"absolute left-0 top-0 h-full rounded-sm transition-all duration-300",style:{width:`${l}%`,backgroundColor:p}})}),t&&jsxRuntime.jsxs("span",{className:"text-sm text-text-body whitespace-nowrap",children:[l.toFixed(0),"%"]})]})});Fc.displayName="PercentBarCell";function Qm({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:pe(a),children:jsxRuntime.jsx(R,{className:"h-4 w-4 rounded"})});let s=ue(n,e),c=pe(a);return jsxRuntime.jsx("div",{className:c,children:jsxRuntime.jsx(oo,{isSelected:r,onChange:l=>{o?.(e,l);},isDisabled:s,"aria-label":"Select row"})})}function Fi({streetAddress:e,city:t,state:r,postalCode:o,layout:n="stacked",size:a="md",href:i,LinkComponent:s,linkVariant:c="unstyled",emphasis:l="normal",isLoading:p=false,className:d}){let u={xs:{iconSize:16,gap:"gap-1.5",textSize:"text-xs",secondaryTextSize:"text-xs",skeletonIcon:16,skeletonText:80,skeletonSecondary:60},sm:{iconSize:20,gap:"gap-2",textSize:"text-sm",secondaryTextSize:"text-xs",skeletonIcon:20,skeletonText:96,skeletonSecondary:72},md:{iconSize:24,gap:"gap-3",textSize:"text-base",secondaryTextSize:"text-sm",skeletonIcon:24,skeletonText:128,skeletonSecondary:96},lg:{iconSize:28,gap:"gap-3",textSize:"text-lg",secondaryTextSize:"text-base",skeletonIcon:28,skeletonText:160,skeletonSecondary:120}}[a],f={strong:"font-semibold text-text-body",high:"font-semibold text-text-body",normal:"text-text-body",low:"text-text-muted"}[l],b=[];t&&b.push(t),r&&o?b.push(`${r} ${o}`):r?b.push(r):o&&b.push(o);let h=b.join(", "),y=({children:v,className:x})=>i?s?jsxRuntime.jsx(s,{href:i,className:x,children:v}):jsxRuntime.jsx(Le,{href:i,variant:c,className:tailwindMerge.twMerge("hover:underline",x),asButton:false,children:v}):jsxRuntime.jsx("span",{className:x,children:v});return p?n==="inline"?jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("flex items-center",u.gap,d),children:[jsxRuntime.jsx(R,{width:u.skeletonIcon,height:u.skeletonIcon,className:"flex-shrink-0 rounded"}),jsxRuntime.jsx(R,{width:u.skeletonText,height:u.skeletonIcon*.8})]}):jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("flex items-center",u.gap,d),children:[jsxRuntime.jsx(R,{width:u.skeletonIcon,height:u.skeletonIcon,className:"flex-shrink-0 rounded"}),jsxRuntime.jsxs("div",{className:"flex flex-col gap-1",children:[jsxRuntime.jsx(R,{width:u.skeletonText,height:16}),jsxRuntime.jsx(R,{width:u.skeletonSecondary,height:12})]})]}):n==="inline"?jsxRuntime.jsxs(y,{className:tailwindMerge.twMerge("flex items-center",u.gap,i&&"hover:bg-background-hover transition-colors",d),children:[jsxRuntime.jsx(k,{name:"MapPin",size:u.iconSize,className:"text-text-muted flex-shrink-0"}),jsxRuntime.jsx("span",{className:tailwindMerge.twMerge("leading-normal truncate hover:text-text-body",f,u.textSize,i&&"hover:underline hover:decoration-1 hover:underline-offset-4"),children:e})]}):jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("flex items-center justify-start",u.gap,d),children:[jsxRuntime.jsx(k,{name:"MapPin",size:u.iconSize,className:"text-text-muted flex-shrink-0"}),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",f,u.textSize,i&&"hover:underline hover:decoration-1 hover:underline-offset-4"),children:e}),h&&jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("text-text-caption leading-normal truncate",u.secondaryTextSize),children:h})]})]})}function _m({row:e,context:t,streetAddress:r,city:o,state:n,postalCode:a,layout:i="stacked",size:s="sm",href:c,LinkComponent:l,linkVariant:p="default",emphasis:d="normal",align:m="left",className:u}){let{isLoading:g}=t,f=ue(r,e),b=ue(o,e),h=ue(n,e),y=ue(a,e),v=ue(c,e),x=pe(m,u);return jsxRuntime.jsx("div",{className:x,children:jsxRuntime.jsx(Fi,{streetAddress:f,city:b,state:h,postalCode:y,layout:i,size:s,href:v,LinkComponent:l,linkVariant:p,emphasis:d,isLoading:g})})}var Ec=Ue__namespace.default.memo(({value:e,data:t,type:r="line",color:o="var(--color-viz-default)",strokeWidth:n=2,categoryColors:a,context:i,width:s,height:c=40})=>{let l=e||t||[],p=s||100,d=c,{xScale:m,yScale:u}=Ue.useMemo(()=>{if(l.length===0)return {xScale:scale.scaleTime({range:[0,p],domain:[new Date,new Date]}),yScale:scale.scaleLinear({range:[d,0],domain:[0,1]})};let f=d3Array.extent(l,v=>v.xValue),b=d3Array.min(l,v=>v.yValue)||0,h=d3Array.max(l,v=>v.yValue)||0,y=(h-b)*.1||1;return {xScale:scale.scaleTime({range:[0,p],domain:f}),yScale:scale.scaleLinear({range:[d,0],domain:[b-y,h+y]})}},[l,p,d]);if(i.isLoading)return jsxRuntime.jsx("div",{className:"flex items-center",style:{width:p,height:d},children:jsxRuntime.jsx("div",{className:"h-1 w-full animate-pulse bg-border-default rounded"})});if(!l||l.length===0)return jsxRuntime.jsx("div",{className:"flex items-center justify-center text-text-muted text-xs",style:{width:p,height:d},children:"No data"});let g=a&&l[0]?.category&&a[l[0].category]?a[l[0].category]:o;return jsxRuntime.jsxs("svg",{width:p,height:d,className:"overflow-visible",children:[(r==="area"||r==="both")&&jsxRuntime.jsx(shape.AreaClosed,{data:l,x:f=>m(f.xValue),y:f=>u(f.yValue),yScale:u,fill:g,fillOpacity:.15,curve:curve.curveLinear}),(r==="line"||r==="both")&&jsxRuntime.jsx(shape.LinePath,{data:l,x:f=>m(f.xValue),y:f=>u(f.yValue),stroke:g,strokeWidth:n,strokeLinecap:"round",curve:curve.curveLinear})]})});Ec.displayName="SparklineCell";function of({value:e,row:t,context:r,prefix:o,suffix:n,emptyText:a="\u2014",href:i,linkBehavior:s="hover",linkVariant:c="default",emphasis:l="normal",truncate:p=true,align:d="left",className:m}){let{isLoading:u}=r;if(u)return jsxRuntime.jsx(R,{className:yt(l)});let g=wi(e,a),f=ue(i,t),b=jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[o&&jsxRuntime.jsx("span",{className:"text-text-muted",children:o}),jsxRuntime.jsx("span",{className:p?"truncate":"",children:g}),n&&jsxRuntime.jsx("span",{className:"text-text-muted",children:n})]});if(f){let y=pe(d,m);return jsxRuntime.jsx("div",{className:y,children:nr(b,f,t,s,c,l)})}let h=pe(d,tailwindMerge.twMerge(Et(l),m));return jsxRuntime.jsx("div",{className:h,children:b})}var e2={sm:"sm:hidden",md:"md:hidden",lg:"lg:hidden",xl:"xl:hidden"},t2={sm:"hidden sm:grid",md:"hidden md:grid",lg:"hidden lg:grid",xl:"hidden xl:grid"};function Ei(e,t){return t.accessor?typeof t.accessor=="function"?t.accessor(e):e[t.accessor]:null}function Ii(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 zi({row:e,columns:t,density:r,isLoading:o,onClick:n}){let a=t.filter(d=>d.mobile!==false).map(d=>{let m=d.mobile===false?null:d.mobile;return {...d,mobilePriority:m?.priority??2,mobileFormat:m?.format??"secondary",showLabel:m?.label??m?.format==="secondary",icon:m?.icon}}).sort((d,m)=>d.mobilePriority-m.mobilePriority),i=a.filter(d=>d.mobilePriority===1||d.mobileFormat==="primary"),s=a.filter(d=>d.mobilePriority===2&&d.mobileFormat!=="primary"),c=a.filter(d=>d.mobileFormat==="badge"),l={isLoading:!!o,rowIndex:0,columnIndex:0,density:r};return jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("border-b border-border-default bg-background-surface transition-colors",n&&"cursor-pointer hover:bg-background-hover active:bg-background-pressed",{compact:"px-3 py-2",default:"px-4 py-3",relaxed:"px-4 py-4"}[r]),onClick:n,role:n?"button":void 0,tabIndex:n?0:void 0,children:[i.length>0&&jsxRuntime.jsxs("div",{className:"mb-2 flex items-start justify-between",children:[jsxRuntime.jsx("div",{className:"flex-1",children:i.map(d=>{let m=Ei(e,d);return jsxRuntime.jsx("div",{className:"font-medium text-text-body [&>*]:!justify-start [&>*]:!text-left",children:Ii(m,e,d,l)},d.id)})}),c.length>0&&jsxRuntime.jsx("div",{className:"ml-2 flex flex-wrap gap-1",children:c.map(d=>{let m=Ei(e,d);return jsxRuntime.jsx("div",{className:"inline-flex",children:Ii(m,e,d,l)},d.id)})})]}),s.length>0&&jsxRuntime.jsx("div",{className:"space-y-1",children:s.map(d=>{let m=Ei(e,d),u=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"}),u&&jsxRuntime.jsxs("span",{className:"mr-1 font-medium",children:[d.label,":"]}),jsxRuntime.jsx("span",{className:"truncate [&>*]:!justify-start [&>*]:!text-left",children:Ii(m,e,d,l)})]},d.id)})})]})}function Vi({row:e,columns:t,density:r,isLoading:o,onClick:n}){let a=t.filter(c=>c.mobile!==false),i={isLoading:!!o,rowIndex:0,columnIndex:0,density:r};return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("border-b border-border-default bg-background-surface transition-colors",n&&"cursor-pointer hover:bg-background-hover active:bg-background-pressed",{compact:"px-3 py-2",default:"px-4 py-3",relaxed:"px-4 py-4"}[r]),onClick:n,role:n?"button":void 0,tabIndex:n?0:void 0,children:jsxRuntime.jsx("div",{className:"space-y-2",children:a.map((c,l)=>{let p=Ei(e,c),d=l===0;return jsxRuntime.jsxs("div",{children:[!d&&jsxRuntime.jsx("div",{className:"text-xs text-text-muted",children:c.label}),jsxRuntime.jsx("div",{className:tailwindMerge.twMerge(d?"font-medium text-text-body":"text-sm text-text-body","[&>*]:!justify-start [&>*]:!text-left"),children:Ii(p,e,c,i)})]},c.id)})})})}function nf(e="md"){return {mobile:e2[e],desktop:t2[e]}}function af({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 Ic={compact:"py-1.5 px-3 text-sm",default:"py-3 px-4 text-sm",relaxed:"py-4 px-4 text-base"},Bc={left:"text-left justify-start",center:"text-center justify-center",right:"text-right justify-end"},a2={full:"w-full",auto:"w-auto inline-block",contained:"w-full max-w-6xl mx-auto"},i2={auto:"table-auto",fixed:"table-fixed",responsive:"table-auto"};function zc(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 s2(e,t){return t.accessor?typeof t.accessor=="function"?t.accessor(e):e[t.accessor]:null}function l2({column:e,sortConfig:t,onSort:r,stickyHeader:o,density:n="default",isLoading:a=false}){let i=t?.columnId===e.id,s=i?t.direction:null;return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("flex items-center border-b border-border-default bg-background-surface",e.sortable?"gap-2":"gap-1",Ic[n],Bc[e.align||"left"],o&&"sticky top-0 z-10",e.sortable&&!a&&"cursor-pointer hover:bg-background-hover",a&&"cursor-not-allowed opacity-60",i?"font-bold text-text-body":"font-medium text-text-muted"),onClick:()=>!a&&e.sortable&&r(e.id),role:"columnheader","aria-sort":i?s==="asc"?"ascending":"descending":"none","aria-disabled":a,style:zc(e),children:a?jsxRuntime.jsx(R,{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:i?jsxRuntime.jsx(k,{name:s==="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 c2({column:e,row:t,rowIndex:r,columnIndex:o,isHovered:n,density:a="default",className:i}){let s=s2(t,e),c={isLoading:false,isHovered:n,rowIndex:r,columnIndex:o,density:a},l;if(e.cell){let p=e.cell,d=typeof e.cellProps=="function"?e.cellProps(s,t):e.cellProps;l=jsxRuntime.jsx(p,{value:s,row:t,context:c,...d});}else e.render?l=e.render(s,t,c):l=jsxRuntime.jsx("span",{className:"truncate",children:s?.toString()??""});if(e.popover){let p=e.popover,d,m="top",u=false,g="hover";typeof p=="string"?d=p:typeof p=="function"?d=p(s,t):(d=typeof p.content=="function"?p.content(s,t):p.content,m=p.placement||"top",u=p.showArrow??false,g=p.trigger||"hover"),l=jsxRuntime.jsxs(reactAriaComponents.DialogTrigger,{...g==="hover"?{trigger:"longPress"}:{},children:[jsxRuntime.jsx("div",{className:"cursor-help",children:l}),jsxRuntime.jsx(We,{placement:m,showArrow:u,children:jsxRuntime.jsx("div",{className:"p-2",children:d})})]});}return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("flex items-center border-b border-border-default",e.noCellPadding?"":Ic[a],Bc[e.align||"left"],i),role:"cell",style:zc(e),children:l})}function d2({column:e,rowIndex:t,columnIndex:r,density:o="default"}){let n={isLoading:true,rowIndex:t,columnIndex:r,density:o},a;if(e.cell){let i=e.cell,s=typeof e.cellProps=="function"?e.cellProps(null,{}):e.cellProps;a=jsxRuntime.jsx(i,{value:null,row:{},context:n,...s});}else e.render?a=e.render(null,{},n):a=jsxRuntime.jsx(R,{className:"h-4 w-full max-w-[200px]"});return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("flex items-center border-b border-border-default",e.noCellPadding?"":Ic[o],Bc[e.align||"left"]),role:"cell",style:zc(e),children:a})}function sf({columns:e,row:t,rowIndex:r,density:o="default",onClick:n}){let[a,i]=Ue.useState(false),s=Ue.useCallback(()=>{n&&n(t);},[n,t]);return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("contents group",n&&"cursor-pointer"),role:"row",onClick:s,onMouseEnter:()=>i(true),onMouseLeave:()=>i(false),children:e.map((c,l)=>jsxRuntime.jsx(c2,{column:c,row:t,rowIndex:r,columnIndex:l,isHovered:a,density:o,className:n?"group-hover:bg-background-hover":""},c.id))})}function lf({columns:e,rowIndex:t,density:r="default"}){return jsxRuntime.jsx("div",{className:"contents",role:"row",children:e.map((o,n)=>jsxRuntime.jsx(d2,{column:o,rowIndex:t,columnIndex:n,density:r},o.id))})}function uf({columns:e,data:t,className:r,density:o="default",width:n="full",height:a,maxHeight:i,layout:s="auto",mobileRenderer:c="auto",customMobileRowRender:l,mobileBreakpoint:p="md",isLoading:d=false,loadingState:m,loadingRowCount:u=5,onLoadMore:g,hasMore:f=false,enableVirtualization:b,estimatedRowHeight:h,loadingIndicator:y,stickyHeader:v=false,onRowClick:x,getRowId:C,hideHeader:S=false,onSort:N,"aria-label":T}){let[w,F]=Ue.useState(null),E=Ue.useRef(null),A=g?Tr({items:t,onLoadMore:g,hasMore:f,isLoading:d,loadingState:m,enableVirtualization:b,estimatedItemSize:h||(o==="compact"?40:o==="relaxed"?60:48),overscan:5}):null,J=A?.scrollRef??E,{loadMoreRef:B,virtualizer:Z,virtualItems:Y,isLoadingMore:G,computedLoadingState:M}=A||{},j=Ue.useMemo(()=>e.map(D=>{if(D.width)return typeof D.width=="number"?`${D.width}px`:D.width;if(D.flex)return `${D.flex}fr`;if(D.minWidth&&D.maxWidth){let $=typeof D.minWidth=="number"?`${D.minWidth}px`:D.minWidth,ne=typeof D.maxWidth=="number"?`${D.maxWidth}px`:D.maxWidth;return `minmax(${$}, ${ne})`}return D.minWidth?`minmax(${typeof D.minWidth=="number"?`${D.minWidth}px`:D.minWidth}, 1fr)`:D.maxWidth?`minmax(0, ${typeof D.maxWidth=="number"?`${D.maxWidth}px`:D.maxWidth})`:"1fr"}).join(" "),[e]),O=Ue.useCallback(D=>{if(!e.find(Ne=>Ne.id===D)?.sortable)return;let ne=null;w?.columnId===D?w.direction==="asc"?ne={columnId:D,direction:"desc"}:ne=null:ne={columnId:D,direction:"asc"},F(ne),N?.(ne);},[e,w,N]),U=M==="loading"||d&&t.length===0,z={};a?(z.height=typeof a=="number"?`${a}px`:a,z.overflowY="auto"):i?(z.maxHeight=typeof i=="number"?`${i}px`:i,z.overflowY="auto"):g&&(z.height="600px",z.overflowY="auto");let I=tailwindMerge.twMerge(a2[n],!g&&(s==="responsive"?"overflow-x-auto":"overflow-auto"),r),H=nf(p),K=c!=="none",L=(D,$)=>K?c==="custom"&&l?l(D,$):jsxRuntime.jsx(c==="cards"?Vi:zi,{row:D,columns:e,density:o,isLoading:d,onClick:x?()=>x(D):void 0}):null,W=Z?Y?.map(D=>({virtualItem:D,row:t[D.index],index:D.index}))||[]:t.map((D,$)=>({row:D,index:$,virtualItem:null}));return jsxRuntime.jsxs("div",{ref:J,className:I,style:{...z,position:Z?"relative":void 0},children:[jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("grid border-separate border-spacing-0",i2[s],n==="auto"?"inline-grid w-auto":"w-full",K&&H.desktop),role:"table","aria-label":T,style:{gridTemplateColumns:j},children:[!S&&jsxRuntime.jsx("div",{className:"contents",role:"rowgroup",children:e.map(D=>jsxRuntime.jsx(l2,{column:D,sortConfig:w,onSort:O,stickyHeader:v,density:o,isLoading:U},D.id))}),Z?jsxRuntime.jsx("div",{className:"col-span-full",style:{gridColumn:"1 / -1",height:`${Z.getTotalSize()}px`,position:"relative"},role:"rowgroup",children:U?Array.from({length:u}).map((D,$)=>jsxRuntime.jsx("div",{className:"contents",children:jsxRuntime.jsx(lf,{columns:e,rowIndex:$,density:o})},`loading-${$}`)):t.length>0?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[W.map(({row:D,index:$,virtualItem:ne})=>{if(!D||!ne)return null;let Ne=C?C(D):`row-${$}`;return jsxRuntime.jsx("div",{style:{position:"absolute",top:0,left:0,width:"100%",display:"grid",gridTemplateColumns:j,transform:`translateY(${ne.start}px)`},"data-index":ne.index,ref:Z.measureElement,children:jsxRuntime.jsx(sf,{columns:e,row:D,rowIndex:$,density:o,onClick:x})},Ne)}),G&&jsxRuntime.jsx("div",{style:{position:"absolute",top:`${Z.getTotalSize()}px`,left:0,width:"100%"},children:y||jsxRuntime.jsx(Rt,{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:U?Array.from({length:u}).map((D,$)=>jsxRuntime.jsx(lf,{columns:e,rowIndex:$,density:o},`loading-${$}`)):t.length>0?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[W.map(({row:D,index:$})=>{if(!D)return null;let ne=C?C(D):`row-${$}`;return jsxRuntime.jsx(sf,{columns:e,row:D,rowIndex:$,density:o,onClick:x},ne)}),G&&jsxRuntime.jsx("div",{className:"col-span-full",style:{gridColumn:"1 / -1"},children:y||jsxRuntime.jsx(Rt,{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"})})})]}),K&&jsxRuntime.jsx("div",{className:H.mobile,children:U?Array.from({length:u}).map((D,$)=>jsxRuntime.jsx(af,{density:o},`mobile-loading-${$}`)):t.length>0?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[W.map(({row:D,index:$})=>{if(!D)return null;let ne=C?C(D):`mobile-row-${$}`;return jsxRuntime.jsx("div",{className:"border-b border-border-default last:border-b-0",children:L(D,$)},ne)}),G&&(y||jsxRuntime.jsx(Rt,{state:"loading-more"}))]}):jsxRuntime.jsx("div",{className:"py-12 text-center text-text-muted",children:"No data available"})}),g&&f&&!U&&(Z?jsxRuntime.jsx("div",{ref:B,style:{position:"absolute",top:`${Z.getTotalSize()}px`,left:0,width:"100%",height:1}}):jsxRuntime.jsx("div",{ref:B,className:"h-px w-full"}))]})}function mf({status:e,alertCount:t,showCount:r=false,isLoading:o,size:n="sm",shape:a="pill",...i}){if(o)return jsxRuntime.jsx(R,{className:"inline-flex h-6 w-20"});let s={healthy:"success",warning:"warning",error:"error",unknown:"neutral"},c={healthy:"Healthy",warning:"Warning",error:"Error",unknown:"Unknown"},l=e==="warning"||e==="error",p=r&&t?`${c[e]} (${t})`:c[e];return jsxRuntime.jsx(Oe,{variant:s[e],size:n,shape:a,dot:l,dotPulse:l,...i,children:p})}var p2={battery:"BatteryHigh",charger:"ChargingStation",thermostat:"ThermometerSimple",inverter:"Power",vehicle:"Car",meter:"Gauge",gateway:"WifiHigh",other:"Cube",unknown:"Question"},m2={battery:"Battery",charger:"Charger",thermostat:"Thermostat",inverter:"Inverter",vehicle:"Vehicle",meter:"Meter",gateway:"Gateway",other:"Other",unknown:"Unknown"};function gf({deviceType:e,iconName:t,size:r="md",showLabel:o=false,className:n}){let a=t||(e?p2[e]:"Question"),i=e?m2[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 oa({children:e,title:t,headerContent:r,titleAlign:o="left",hideCloseIcon:n=false,hasBackArrow:a=false,onBack:i,isOpen:s,slideInFrom:c="right",transparentOverlay:l=false,onClose:p,className:d,primaryAction:m,secondaryAction:u,footerContent:g,contentPadding:f=true,maxWidth:b="400px"}){let[h,y]=Ue.useState(false);if(Ue.useEffect(()=>{if(s){let C=setTimeout(()=>y(true),10);return ()=>clearTimeout(C)}y(false);},[s]),!s)return null;let v=t||r,x=m||u||g;return jsxRuntime.jsx(zt,{children:jsxRuntime.jsx(St,{isOpen:s,onOpenChange:C=>!C&&p?.(),isDismissable:true,transparent:l,children:jsxRuntime.jsx(reactAriaComponents.Modal,{className:"flex justify-end",isDismissable:true,children:jsxRuntime.jsxs(reactAriaComponents.Dialog,{className:tailwindMerge.twMerge("fixed bottom-0 top-0 z-50 flex w-full flex-col bg-background-surface shadow-xl duration-300 h-full min-h-0 overflow-hidden dark:bg-gray-800","outline-none focus-visible:outline focus-visible:outline-2 focus-visible:outline-action-default focus-visible:outline-offset-0",h?c==="right"?"animate-in slide-in-from-right":"animate-in slide-in-from-left":"",d),style:{[c==="right"?"right":"left"]:0,maxWidth:b,transform:h?void 0:c==="right"?"translateX(100%)":"translateX(-100%)"},children:[v&&(a&&i?jsxRuntime.jsx(it,{title:t,headerContent:r,titleAlign:o,hideCloseIcon:n,hasBackArrow:true,onBack:i,onClose:p}):jsxRuntime.jsx(it,{title:t,headerContent:r,titleAlign:o,hideCloseIcon:n,onClose:p})),jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("flex-1 overflow-y-auto overscroll-contain",f?"px-6 py-6":"p-0"),children:e}),x&&jsxRuntime.jsx(Mr,{primaryAction:m,secondaryAction:u,footerContent:g})]})})})})}oa.displayName="Drawer";var v2={sm:"gap-4 px-6 py-8",md:"gap-5 px-8 py-12",lg:"gap-6 px-10 py-16"},C2={sm:"xs",md:"sm",lg:"md"},S2={sm:"text-sm leading-5",md:"text-sm leading-5",lg:"text-base leading-6"},N2={sm:"h-10 w-10",md:"h-12 w-12",lg:"h-16 w-16"},w2={sm:20,md:24,lg:32},k2={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"},P2={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 hf({icon:e,title:t,description:r,primaryAction:o,secondaryAction:n,actions:a,size:i="md",alignment:s="center",variant:c="default",spotlightPattern:l="mesh",fullHeight:p=false,className:d}){let m=i==="sm"?"sm":"md",u=c==="spotlight",g=u?{background:P2[l]}:void 0,f=()=>a?jsxRuntime.jsx("div",{className:"empty-state-actions mt-2 flex flex-wrap items-center gap-3",children:a}):o||n?jsxRuntime.jsxs("div",{className:"empty-state-actions mt-2 flex flex-col gap-3",children:[o&&(o.href?jsxRuntime.jsx(q,{variant:"secondary",size:m,onPress:o.onPress,isDisabled:o.isDisabled,isLoading:o.isLoading,href:o.href,children:o.label}):jsxRuntime.jsx(q,{variant:"secondary",size:m,onPress:o.onPress,isDisabled:o.isDisabled,isLoading:o.isLoading,children:o.label})),n&&jsxRuntime.jsx(Le,{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",v2[i],k2[s],p?"h-full justify-center":"",u?"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",N2[i]),children:jsxRuntime.jsx(k,{name:e,size:w2[i]})}),jsxRuntime.jsx(mt,{size:C2[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",S2[i]),children:r}),f()]})}function yf({status:e,programName:t,isLoading:r,size:o="sm",shape:n="pill",...a}){if(r)return jsxRuntime.jsx(R,{className:"inline-flex h-6 w-20"});let i={enrolled:"success",eligible:"info",pending:"warning",not_eligible:"neutral",opted_out:"neutral"},s={enrolled:"Enrolled",eligible:"Eligible",pending:"Pending",not_eligible:"Not Eligible",opted_out:"Opted Out"},c=jsxRuntime.jsx(Oe,{variant:i[e],size:o,shape:n,...a,children:s[e]});return t?jsxRuntime.jsx(Gn,{content:t,children:c}):c}function Cf({value:e,onChange:t,onUrlChange:r,accept:o="image/*",maxSize:n,isDisabled:a=false,onUpload:i,className:s,showPreview:c=true,placeholder:l="Drop files here or click to browse"}){let[p,d]=Ue.useState(false),[m,u]=Ue.useState(false),[g,f]=Ue.useState(null),[b,h]=Ue.useState(e),y=Ue.useRef(null),v=async S=>{if(f(null),n&&S.size>n){f(`File size must be less than ${(n/1024/1024).toFixed(2)}MB`);return}if(c&&S.type.startsWith("image/")){let N=new FileReader;N.onloadend=()=>{h(N.result);},N.readAsDataURL(S);}if(i){u(true);try{let N=await i(S);h(N),r?.(N);}catch(N){f("Failed to upload file"),console.error("Upload error:",N);}finally{u(false);}}t?.(S,b);},x=S=>{let N=S.items;if(N.length>0){let T=N[0];if(T.kind==="file"){let w=T.getAsFile();w&&v(w);}}d(false);},C=()=>{h(void 0),f(null),t?.(null),r?.(""),y.current&&(y.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",p?"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:x,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:[c&&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(q,{variant:"icon",size:"sm",onPress:C,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:l}),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:S=>{let N=Array.from(S||[]);N.length>0&&v(N[0]);},children:jsxRuntime.jsx(q,{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 Nf({version:e,isLatest:t,updateAvailable:r,isLoading:o,size:n="sm",shape:a="rounded",...i}){if(o)return jsxRuntime.jsx(R,{className:"inline-flex h-6 w-16"});let s="neutral",c=e;return t?s="success":r&&(s="warning",c=`${e} (Update)`),jsxRuntime.jsx(Oe,{variant:s,size:n,shape:a,...i,children:c})}function mn(e){return jsxRuntime.jsx(reactAriaComponents.Form,{validationBehavior:"aria",...e,className:tailwindMerge.twMerge("flex flex-col gap-6",e.className)})}var B2={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"},z2={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"}},V2={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"},O2={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"},H2={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"},W2={start:"items-start",center:"items-center",end:"items-end",stretch:"items-stretch",baseline:"items-baseline"},G2={start:"justify-start",center:"justify-center",end:"justify-end",between:"justify-between",around:"justify-around",evenly:"justify-evenly"},U2={row:"grid-flow-row",col:"grid-flow-col",dense:"grid-flow-dense","row-dense":"grid-flow-row-dense","col-dense":"grid-flow-col-dense"},K2={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"},Y2={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 kf(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 Hc({cols:e=1,gap:t="md",gapX:r,gapY:o,align:n="stretch",justify:a="start",flow:i="row",autoFit:s,autoFill:c,className:l,children:p}){let d=tailwindMerge.twMerge("grid",s||c?"":kf(e,B2,z2),!r&&!o&&V2[t],r&&O2[r],o&&H2[o],W2[n],G2[a],U2[i],l),m={};return s?m.gridTemplateColumns=`repeat(auto-fit, minmax(${s}, 1fr))`:c&&(m.gridTemplateColumns=`repeat(auto-fill, minmax(${c}, 1fr))`),jsxRuntime.jsx("div",{className:d,style:m,children:p})}function Pf({span:e,className:t,children:r}){let o=tailwindMerge.twMerge(kf(e,K2,Y2),t);return jsxRuntime.jsx("div",{className:o,children:r})}Hc.Item=Pf;function J2(e,t){return Ue__namespace.default.isValidElement(e)?e:Yt({value:e,formatter:t,emptyClassName:"text-text-muted",emptyText:"\u2014"})}function Z2(e){if(e.thresholds&&e.value!==null&&e.value!==void 0){for(let t of e.thresholds)if(t.when(e.value))return t.tone}return e.tone}var q2={neutral:"text-text-body",success:"text-feedback-success",warning:"text-feedback-warning",error:"text-feedback-error",info:"text-feedback-info"};function X2({item:e,dense:t,valueAlign:r}){let o=Z2(e),n=o?q2[o]:"",a=J2(e.value,e.formatter),i=typeof e.copyable=="function"?e.copyable(e.value):String(e.value),s=jsxRuntime.jsx("span",{className:e.href?"hover:underline cursor-pointer":"",children:a}),c=e.copyable?jsxRuntime.jsx(pi,{value:i,size:"sm",children:jsxRuntime.jsx("span",{className:"sr-only",children:"Copy"})}):null,l=e.copyable&&(e.copyIconPosition==="left"||!e.copyIconPosition),p=e.copyable&&e.copyIconPosition==="right",d=jsxRuntime.jsxs("dd",{className:tailwindMerge.twMerge(t?"text-sm":"text-base","font-medium",r==="start"?"text-left":"text-right",n,e.disabled&&"opacity-50"),children:[jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("inline-flex items-center gap-1",r==="start"?"justify-start":"justify-end"),children:[jsxRuntime.jsxs("span",{className:"inline-flex items-center gap-1",children:[s,e.iconRight]}),p&&c]}),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})]}),m=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"})]}),l&&c,e.href?jsxRuntime.jsx("a",{href:e.href,onClick:e.onAction,className:"block",children:d}):d]});return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("grid items-center",l?"grid-cols-[1fr_auto_auto] gap-x-1":t?"grid-cols-[1fr_auto] gap-x-2":"grid-cols-[1fr_auto] gap-x-4"),children:m})}function Wi({items:e,layout:t="one-column",dense:r=false,valueAlign:o="end",showDividers:n=false,skeleton:a=false,empty:i=false,error:s,className:c}){return a?jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("grid",t==="two-column"?"md:grid-cols-2 gap-x-6":"grid-cols-1",r?"gap-y-1":"gap-y-2",c),children:Array.from({length:e.length||4}).map((l,p)=>jsxRuntime.jsxs("div",{className:"grid grid-cols-[1fr_auto] items-start gap-x-4",children:[jsxRuntime.jsx(R,{className:"h-4 w-24"}),jsxRuntime.jsx(R,{className:"h-5 w-16"})]},p))}):s?jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("text-sm text-feedback-error",c),children:s}):i||!e.length?jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("text-sm text-text-muted",c),children:"No data available"}):jsxRuntime.jsx("dl",{className:tailwindMerge.twMerge("grid",t==="two-column"?"md:grid-cols-2 gap-x-6":"grid-cols-1",r?"gap-y-1":"gap-y-2",c),children:e.map((l,p)=>jsxRuntime.jsxs(Ue__namespace.default.Fragment,{children:[n&&p>0&&t==="one-column"&&jsxRuntime.jsx("div",{className:"col-span-full border-t border-border-default -mt-1 mb-1"}),jsxRuntime.jsx(X2,{item:l,dense:r,valueAlign:o})]},l.id))})}function Rf({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(Wi,{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 Ie={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 Wc=Ue__namespace.createContext(null);function Af(){let e=Ue__namespace.useContext(Wc);if(!e)throw new Error("Hierarchy components must be used within HierarchyExplorer");return e}function Lf({node:e,renderNode:t}){let{selectedId:r,selectNode:o,navigateToNode:n,variant:a,size:i,showBullets:s,rootNodeId:c,stickyRootNode:l,navigationStack:p,setRootNodeSticky:d,useSplitLayout:m}=Af(),u=Ue__namespace.useRef(null),g=Ue__namespace.useRef(null),f=r===e.id,b=e.disabled||false,h=!!(e.children&&e.children.length>0),y=!!(e.metadata&&Object.keys(e.metadata).length>0),v=h||y,x=c!==void 0&&e.id!==void 0&&c===e.id&&p.length===0;Ue__namespace.useLayoutEffect(()=>{x&&l&&u.current&&g.current===null&&requestAnimationFrame(()=>{u.current&&(g.current=u.current.offsetTop);});},[x,l]),Ue__namespace.useEffect(()=>{if(!x||!l||!u.current)return;let E=u.current.parentElement;for(;E;){let J=window.getComputedStyle(E).overflowY;if(J==="auto"||J==="scroll")break;E=E.parentElement;}if(!E)return;let A=()=>{if(!u.current||g.current===null)return;let J=E.getBoundingClientRect(),B=E.scrollTop,Z=J.height,Y=u.current.offsetHeight,M=g.current-B,j=M+Y,O=M<0,U=j>Z;O?d("top",e):U?d("bottom",e):d(null,null);};return E.addEventListener("scroll",A),A(),()=>{E.removeEventListener("scroll",A);}},[x,l,e,d]);let C=()=>{b||(m?o(e):v?n(e):o(e));},S=E=>{b||(E.key==="Enter"||E.key===" ")&&(E.preventDefault(),C());},N={isSelected:f,isDisabled:b,hasChildren:h,hasMetadata:y,level:0},T=tailwindMerge.twMerge("relative cursor-pointer group",b&&"opacity-50 cursor-not-allowed"),w=tailwindMerge.twMerge("absolute inset-0 transition-colors",x&&!f&&!b&&"group-hover:bg-background-hover",x&&f&&!b&&a==="subtle"&&"bg-brand-primary/10 group-hover:bg-brand-primary/15",x&&f&&b&&a==="subtle"&&"bg-brand-primary/10",x&&f&&!b&&a==="solid"&&"bg-brand-primary group-hover:bg-brand-primary/90",x&&f&&b&&a==="solid"&&"bg-brand-primary",!x&&a==="subtle"&&!f&&!b&&"group-hover:bg-background-hover",!x&&a==="subtle"&&f&&!b&&"bg-brand-primary/10 group-hover:bg-brand-primary/15",!x&&a==="subtle"&&f&&b&&"bg-brand-primary/10",!x&&a==="solid"&&!f&&!b&&"group-hover:bg-background-hover",!x&&a==="solid"&&f&&!b&&"bg-brand-primary group-hover:bg-brand-primary/90",!x&&a==="solid"&&f&&b&&"bg-brand-primary"),F=tailwindMerge.twMerge("relative flex items-center gap-2 text-text-body hover:text-text-heading transition-colors",Ie[i].node,x&&!f&&"font-semibold",a==="subtle"&&f&&"text-brand-primary",a==="solid"&&f&&"text-white");return jsxRuntime.jsxs("div",{ref:u,className:T,onClick:C,onKeyDown:S,role:"treeitem","aria-selected":f,"aria-disabled":b,tabIndex:0,"data-node-id":e.id,children:[jsxRuntime.jsx("div",{className:w}),jsxRuntime.jsxs("div",{className:F,children:[s&&jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("relative rounded-full flex items-center justify-center flex-shrink-0 z-20",x&&"bg-brand-primary border-brand-primary",!x&&"bg-background-muted border border-border-default"),style:{width:Ie[i].bullet,height:Ie[i].bullet},children:e.icon&&jsxRuntime.jsx(k,{name:e.icon,size:Ie[i].icon,weight:x?"fill":"regular",className:x?"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})}),v&&!m&&jsxRuntime.jsx("div",{className:"flex-shrink-0",children:jsxRuntime.jsx(k,{name:"CaretRight",size:Ie[i].icon,className:"text-text-muted"})})]})]})}function Ef({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:`${Ie[n].spacing.x+Ie[n].bullet/2}px`,top:`${Ie[n].spacing.y+Ie[n].bullet/2}px`,bottom:`${Ie[n].spacing.y+Ie[n].bullet/2}px`},"aria-hidden":"true"}),e.map(i=>jsxRuntime.jsx(Lf,{node:i,renderNode:a},i.id))]})}function If(){let[e,t]=Ue.useState(()=>typeof window>"u"?false:window.matchMedia("(prefers-reduced-motion: reduce)").matches);return Ue.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 aa({children:e,mode:t="sync",presenceKey:r}){let o=r!==void 0&&Ue__namespace.default.isValidElement(e)?Ue__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 oS={instant:0,fast:150,normal:250,slow:350,slower:500},Gc={xs:"4px",sm:"8px",md:"16px"};function nS(e){return e?typeof e=="string"&&e in Gc?Gc[e]:typeof e=="number"?`${e}px`:e:Gc.sm}function ia({children:e,direction:t,distance:r="sm",duration:o="normal",delay:n=0,className:a}){let i=If(),s=typeof o=="number"?o:oS[o],c=nS(r),l=u=>{switch(t){case "left":return {x:`-${u}`};case "right":return {x:u};case "up":return {y:`-${u}`};case "down":return {y:u}}},p=i?{opacity:0}:{opacity:0,...l(c)},d={opacity:1,x:0,y:0},m=i?{opacity:0}:{opacity:0,...l(c)};return jsxRuntime.jsx(framerMotion.motion.div,{className:a,initial:p,animate:d,exit:m,transition:{duration:i?0:s/1e3,delay:i?0:n/1e3,ease:[.4,0,.2,1]},children:e})}function Ki({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",Ie[r].node),children:[jsxRuntime.jsx(k,{name:"CaretLeft",size:Ie[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 Yi({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",Ie[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:Ie[n].bullet,height:Ie[n].bullet},children:e.icon&&jsxRuntime.jsx(k,{name:e.icon,size:Ie[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 Of({currentItems:e,currentParent:t,navigationStack:r,selectedId:o,variant:n,size:a,showBullets:i,slideDirection:s,viewKey:c,hasHeight:l,rootNodeStickyState:p,renderNodeList:d,renderDetailContent:m,onNavigateBack:u}){return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[r.length===0&&p.position&&p.node&&jsxRuntime.jsx(Yi,{node:p.node,position:p.position,selectedId:o,variant:n,size:a,showBullets:i}),r.length>0&&jsxRuntime.jsx(Ki,{navigationStack:r,onNavigateBack:u,size:a}),jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("relative",l&&"overflow-auto h-full"),children:jsxRuntime.jsx(aa,{mode:"wait",presenceKey:c,children:r.length===0?d(e,true):jsxRuntime.jsx(ia,{direction:s,distance:"100%",duration:"normal",children:m(t)})})})]})}function Kc(e,t){for(let r of e){if(r.id===t)return r;if(r.children&&r.children.length>0){let o=Kc(r.children,t);if(o)return o}}return null}function Ji(e){if(e!==void 0)return typeof e=="number"?`${e}px`:e}function Hf(e,t){if(process.env.NODE_ENV!=="development")return;let r=new Set,o=(n,a="root")=>{for(let i=0;i<n.length;i++){let s=n[i],c=`${a}[${i}]`;s.id?r.has(s.id)?console.warn(`[HierarchyExplorer] Duplicate node ID found: "${s.id}". Each node must have a unique ID.`):r.add(s.id):console.warn(`[HierarchyExplorer] Node at ${c} is missing an "id" field. Node name: "${s.name||"(unnamed)"}"`),s.children&&o(s.children,`${c}.children`);}};o(e),t&&!r.has(t)&&console.warn(`[HierarchyExplorer] Root node ID "${t}" not found in data. No node will be highlighted as root.`);}function Gf({data:e,currentItems:t,navigationStack:r,selectedId:o,variant:n,size:a,showBullets:i,rootNodeStickyState:s,renderNodeList:c,renderDetailContent:l,renderEmptyState:p,onNavigateBack:d}){let m=o?Kc(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(Yi,{node:s.node,position:s.position,selectedId:o,variant:n,size:a,showBullets:i}),r.length>0&&jsxRuntime.jsx(Ki,{navigationStack:r,onNavigateBack:d,size:a}),jsxRuntime.jsx("div",{className:"flex-1 overflow-auto",children:c(t,r.length===0)})]}),jsxRuntime.jsx("div",{className:"flex-1 min-w-0 overflow-auto bg-background-body",children:jsxRuntime.jsx(aa,{mode:"wait",presenceKey:m?.id||"empty",children:m?jsxRuntime.jsx(ia,{direction:"left",duration:"fast",children:l(m)}):p?p():jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("text-text-muted text-center",Ie[a].node,"py-8"),children:"Select an item to view details"})})})]})}function Uf({data:e,renderNode:t,onNodeSelect:r,onNavigate:o,selectedId:n,rootNodeId:a,stickyRootNode:i=true,height:s,minHeight:c,maxHeight:l,variant:p="subtle",size:d="md",showBullets:m=true,layout:u="auto",splitBreakpoint:g=768,renderEmptyState:f,className:b,"aria-label":h="Hierarchy explorer"}){let[y,v]=Ue__namespace.useState(null),[x,C]=Ue__namespace.useState([]),[S,N]=Ue__namespace.useState("left"),[T,w]=Ue__namespace.useState({position:null,node:null}),{ref:F,width:E}=Ho(),A=Ue__namespace.useMemo(()=>u==="split"?true:u==="single"?false:E>=g,[u,E,g]),J=n!==void 0?n:y;Ue__namespace.useEffect(()=>{Hf(e,a);},[e,a]);let B=x.length>0?x[x.length-1]:null,Z=B?B.children||[]:e,Y=Ue__namespace.useCallback(W=>{N("left"),C(D=>[...D,W]),o?.(W,[...x,W]);},[x,o]),G=Ue__namespace.useCallback(()=>{N("right"),C(W=>{let D=W.slice(0,-1);return o?.(D.length>0?D[D.length-1]:null,D),D});},[o]),M=Ue__namespace.useCallback(W=>{n===void 0&&v(W.id),r?.(W,[...x,W]);},[n,x,r]),j=Ue__namespace.useCallback((W,D)=>{w({position:W,node:D});},[]),O=Ue__namespace.useMemo(()=>({selectedId:J,selectNode:M,navigateToNode:Y,navigateBack:G,rootNodeId:a,stickyRootNode:i,variant:p,size:d,showBullets:m,onNodeSelect:r,onNavigate:o,navigationStack:x,setRootNodeSticky:j,useSplitLayout:A}),[J,M,Y,G,a,i,p,d,m,r,o,x,j,A]),U=Ue__namespace.useRef(null);Ue__namespace.useEffect(()=>{if(!a||!U.current||x.length>0||A)return;let W=U.current,D=setTimeout(()=>{let $=W.querySelector(`[data-node-id="${a}"]`);$&&$.scrollIntoView({behavior:"auto",block:"center",inline:"nearest"});},100);return ()=>clearTimeout(D)},[a,x.length,A]);let z={height:Ji(s),minHeight:Ji(c),maxHeight:Ji(l)},I=s!==void 0||l!==void 0,H=B?B.id:"root",K=Ue__namespace.useCallback((W,D=false)=>jsxRuntime.jsx(Ef,{items:W,showConnector:D,scrollContainerRef:D?U:null,showBullets:m,size:d,renderNode:t}),[m,d,t]),L=Ue__namespace.useCallback(W=>W?jsxRuntime.jsx(Rf,{node:W,renderNodeList:K}):null,[K]);return jsxRuntime.jsx(Wc.Provider,{value:O,children:jsxRuntime.jsx("div",{ref:F,className:tailwindMerge.twMerge("select-none bg-background-surface rounded-lg border border-border-default relative",I&&"overflow-hidden",!I&&"h-full flex flex-col",A&&!I&&"flex-row",A&&I&&"flex",b),style:z,role:"tree","aria-label":h,children:A?jsxRuntime.jsx(Gf,{data:e,currentItems:Z,navigationStack:x,selectedId:J,variant:p,size:d,showBullets:m,rootNodeStickyState:T,renderNodeList:K,renderDetailContent:L,renderEmptyState:f,onNavigateBack:G}):jsxRuntime.jsx(Of,{currentItems:Z,currentParent:B,navigationStack:x,selectedId:J,variant:p,size:d,showBullets:m,slideDirection:S,viewKey:H,hasHeight:I,rootNodeStickyState:T,renderNodeList:K,renderDetailContent:L,onNavigateBack:G})})})}function gS(e,t){return Yt({value:e,formatter:t,emptyClassName:"text-text-muted",emptyText:"\u2014"})}function bS(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 xS({points:e,className:t,ariaLabel:r}){let i=e.map(u=>typeof u.y=="number"?u.y:0);if(i.length===0)return null;let s=Math.min(...i),l=Math.max(...i)-s,p=u=>l===0?20/2:18-(u-s)/l*16,d=60/Math.max(e.length-1,1),m=e.map((u,g)=>{let f=2+g*d,b=p(typeof u.y=="number"?u.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 Kf({label:e,value:t,formatter:r,delta:o,deltaPeriodLabel:n,deltaIntent:a="upIsGood",trend:i,status:s,helpText:c,size:l="md",orientation:p="vertical",isLoading:d,empty:m,error:u,onClick:g,className:f,renderValue:b,renderDelta:h,renderTrend:y}){let x={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"}}[l],C=d?jsxRuntime.jsx(R,{className:"h-7 w-20"}):m?jsxRuntime.jsx("span",{className:"text-text-muted",children:"\u2014"}):u?jsxRuntime.jsx("span",{className:"text-feedback-error text-sm",children:typeof u=="string"?u:"Error"}):b?b(t):gS(t,r),S=h?h(o):o!==void 0&&!d&&!m&&!u?jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge(x.delta,bS(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(R,{className:"h-4 w-24"}):null,N=y?y(i):i&&i.length>0&&!d&&!u?jsxRuntime.jsx(xS,{points:i,ariaLabel:`${e} trend`,className:m?"opacity-30":""}):d&&i!==void 0?jsxRuntime.jsx(R,{className:"h-5 w-16"}):null;return jsxRuntime.jsxs("section",{className:tailwindMerge.twMerge("flex min-w-0",p==="horizontal"?`items-center ${x.gap}`:`flex-col ${x.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(x.label,"font-medium text-text-caption truncate"),children:d?jsxRuntime.jsx(R,{className:"h-4 w-24"}):e}),c&&!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(x.value,"font-semibold",u?"text-feedback-error":"text-text-heading"),"aria-label":`Value: ${C}`,children:C}),s&&!d&&!u&&jsxRuntime.jsx(Oe,{variant:s.tone||"neutral",size:"sm",children:s.value})]}),(S||N)&&jsxRuntime.jsxs("div",{className:"flex items-center gap-3",children:[S,N]})]})}var hS={xs:"gap-2",sm:"gap-3",md:"gap-4",lg:"gap-6",xl:"gap-8"},yS={start:"items-start",center:"items-center",stretch:"items-stretch"};function vS(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 Jc({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,className:s}){let c=i?Ue__namespace.default.Children.map(e,l=>Ue__namespace.default.isValidElement(l)&&l.type&&typeof l.type!="string"&&"displayName"in l.type?Ue__namespace.default.cloneElement(l,{isLoading:true}):l):e;return jsxRuntime.jsxs("section",{className:tailwindMerge.twMerge("w-full",s),"aria-label":"Key metrics",children:[a&&jsxRuntime.jsx("div",{className:"mb-4",children:a}),jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("grid",vS(t),hS[r],yS[o],n&&"auto-rows-fr","w-full"),children:c})]})}Jc.displayName="KpiGroup";function Xf({items:e,renderItem:t,selectedId:r,onSelect:o,onHoverChange:n,isLoading:a=false,loadingState:i,error:s=null,renderLoadingSkeleton:c,loadingSkeletonCount:l=5,emptyMessage:p="No results found.",variant:d="relaxed",showDividers:m=true,onLoadMore:u,hasMore:g=false,enableVirtualization:f,estimatedItemSize:b=60,loadingIndicator:h,"aria-label":y,className:v="",style:x}){let[C,S]=Ue.useState(null),N=Ue.useRef(null),T=Ue.useRef(new Map),{scrollRef:w,loadMoreRef:F,virtualizer:E,virtualItems:A,isLoadingMore:J,computedLoadingState:B}=Tr({items:e,onLoadMore:u,hasMore:g,isLoading:a,loadingState:i,enableVirtualization:f,estimatedItemSize:b,overscan:5}),Z=w??N,Y=Ue.useCallback((L,W)=>{o?.(L,W);},[o]),G=Ue.useCallback((L,W)=>{S(L),n?.(L,W);},[n]),M=Ue.useCallback((L,W)=>{let D=L?.id;return typeof D=="string"&&D?D:`item-${W}`},[]),j=Ue.useCallback(L=>{if(!Z.current||e.length===0)return;let W=document.activeElement,D=e.findIndex((Re,Ae)=>{let kr=M(Re,Ae),Ut=T.current.get(kr);return Ut&&(Ut===W||Ut.contains(W))}),$=D;switch(L.key){case "ArrowDown":L.preventDefault(),$=D===-1?0:Math.min(D+1,e.length-1);break;case "ArrowUp":L.preventDefault(),$=D===-1?0:Math.max(D-1,0);break;case "Home":L.preventDefault(),$=0;break;case "End":L.preventDefault(),$=e.length-1;break;default:return}let ne=M(e[$],$);T.current.get(ne)?.focus();},[e,M,Z]),O=["flex flex-col","bg-background-surface","focus:outline-none focus:ring-2 focus:ring-border-focus focus:ring-offset-2"],U={dense:"gap-0",relaxed:"gap-0"},z=m?"divide-y divide-border-muted":"",I=[...O,U[d],z,v].filter(Boolean).join(" ");if(B==="loading"||a&&e.length===0){let L=c?jsxRuntime.jsx(jsxRuntime.Fragment,{children:Array.from({length:l}).map((W,D)=>jsxRuntime.jsx("div",{children:c()},`skeleton-${D}`))}):jsxRuntime.jsx(xu,{count:l,className:"space-y-0",children:jsxRuntime.jsxs("div",{className:"flex items-center gap-3 px-4 py-3",children:[jsxRuntime.jsx(R,{width:16,height:16,variant:"circle"}),jsxRuntime.jsxs("div",{className:"flex-1 space-y-2",children:[jsxRuntime.jsx(R,{width:"75%",height:16}),jsxRuntime.jsx(R,{width:"50%",height:14})]}),jsxRuntime.jsx(R,{width:60,height:20})]})});return jsxRuntime.jsx("div",{ref:Z,className:I,style:x,role:"listbox","aria-label":y,"aria-busy":"true","aria-live":"polite",children:L})}if(s)return jsxRuntime.jsx("div",{ref:Z,className:I,style:x,role:"listbox","aria-label":y,"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:Z,className:I,style:x,role:"listbox","aria-label":y,"aria-live":"polite",children:jsxRuntime.jsx("div",{className:"p-4 text-center text-text-muted",children:p})});let K=E?A?.map(L=>({virtualItem:L,item:e[L.index],index:L.index}))||[]:e.map((L,W)=>({item:L,index:W,virtualItem:null}));return jsxRuntime.jsxs("div",{ref:Z,className:I,style:{...x,...u&&{overflow:"auto",height:x?.height||"600px"}},role:"listbox","aria-label":y,"aria-live":"polite",onKeyDown:j,tabIndex:0,children:[E&&jsxRuntime.jsxs("div",{style:{height:`${E.getTotalSize()}px`,width:"100%",position:"relative"},children:[K.map(({virtualItem:L,item:W,index:D})=>{if(!L)return null;let $=M(W,D),ne=r===$,Ne=C===$,Re={id:$,role:"option","aria-selected":ne,"aria-current":ne?"page":void 0,tabIndex:ne||r==null&&D===0?0:-1,onClick:Ae=>Y(Ae,W),onMouseEnter:Ae=>G(Ae,W),onMouseLeave:Ae=>G(null),onFocus:Ae=>G(Ae,W),onBlur:Ae=>G(null),ref:Ae=>{Ae?T.current.set($,Ae):T.current.delete($);}};return jsxRuntime.jsx("div",{"data-index":L.index,ref:E.measureElement,style:{position:"absolute",top:0,left:0,width:"100%",transform:`translateY(${L.start}px)`},children:t({item:W,index:D,isSelected:ne,isHovered:Ne,rowProps:Re})},$)}),u&&g&&jsxRuntime.jsx("div",{ref:F,style:{position:"absolute",top:`${E.getTotalSize()}px`,left:0,width:"100%",height:1,pointerEvents:"none"}}),J&&jsxRuntime.jsx("div",{style:{position:"absolute",top:`${E.getTotalSize()}px`,left:0,width:"100%"},children:h||jsxRuntime.jsx(Rt,{state:"loading-more"})})]}),!E&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[K.map(({item:L,index:W})=>{let D=M(L,W),$=r===D,ne=C===D,Ne={id:D,role:"option","aria-selected":$,"aria-current":$?"page":void 0,tabIndex:$||r==null&&W===0?0:-1,onClick:Re=>Y(Re,L),onMouseEnter:Re=>G(Re,L),onMouseLeave:Re=>G(null),onFocus:Re=>G(Re,L),onBlur:Re=>G(null),ref:Re=>{Re?T.current.set(D,Re):T.current.delete(D);}};return jsxRuntime.jsx("div",{children:t({item:L,index:W,isSelected:$,isHovered:ne,rowProps:Ne})},D)}),u&&g&&jsxRuntime.jsx("div",{ref:F,style:{height:1}}),J&&(h||jsxRuntime.jsx(Rt,{state:"loading-more"}))]})]})}function Qf({id:e,title:t,subtitle:r,meta:o,leading:n,trailing:a,isSelected:i=false,isHovered:s=false,disabled:c=false,href:l,size:p="md",onClick:d,onMouseEnter:m,onMouseLeave:u,className:g="",style:f}){let b=()=>{!c&&d&&d(e);},h=()=>{!c&&m&&m(e);},y=()=>{!c&&u&&u(e);},x={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"}}[p],C=["flex items-center w-full text-left transition-all duration-200 ease-in-out",x.container,"border-l-2 border-l-transparent","rounded-sm",ke()],S=[s&&!i&&"bg-background-hover",i&&"bg-action-default/5 border-l-action-default shadow-sm",c&&"opacity-50 cursor-not-allowed",!c&&!i&&"hover:bg-background-hover"],N=[...C,...S,g].filter(Boolean).join(" "),T=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 ${x.title}`,title:typeof t=="string"?t:void 0,children:t}),r&&jsxRuntime.jsx("div",{className:`text-text-caption truncate ${x.subtitle} ${x.subtitleSpacing}`,title:typeof r=="string"?r:void 0,children:r}),o&&jsxRuntime.jsx("div",{className:`text-text-muted ${x.meta} ${x.metaSpacing}`,children:o})]})})}),a&&jsxRuntime.jsx("div",{className:"flex-shrink-0",children:a})]});return l?jsxRuntime.jsx("a",{href:l,className:N,style:f,onMouseEnter:h,onMouseLeave:y,"aria-selected":i,"aria-current":i?"page":void 0,tabIndex:c?-1:0,children:T}):jsxRuntime.jsx("button",{type:"button",className:N,style:f,onClick:b,onMouseEnter:h,onMouseLeave:y,disabled:c,"aria-selected":i,tabIndex:c?-1:0,children:T})}function $f({header:e,children:t,footer:r,width:o="md",tone:n="neutral",elevation:a="sm",showDivider:i=true,"aria-label":s,"aria-labelledby":c,className:l="",style:p}){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"},u={none:"",sm:"shadow-sm",md:"shadow-md"},g=tailwindMerge.twMerge("flex flex-col h-full",d[o],m[n],u[a],i&&"border-r border-border-muted",l);return jsxRuntime.jsxs("div",{className:g,style:p,role:"complementary","aria-label":s,"aria-labelledby":c,children:[e&&jsxRuntime.jsx("div",{className:"flex-shrink-0 sticky top-0 z-10 bg-inherit border-b border-border-muted",children:e}),jsxRuntime.jsx("div",{className:"flex-1 overflow-y-auto overflow-x-hidden",children:t}),r&&jsxRuntime.jsx("div",{className:"flex-shrink-0 border-t border-border-muted bg-inherit",children:r})]})}var qc=[{type:"navigation",position:"bottom-right",showCompass:true,showGeolocate:true,showResetZoom:true}];var _f="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJcAAACXCAYAAAAYn8l5AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAABtCSURBVHgB7Z2Jkty0GoV7hlz2HcIeSPGkPCmELRC2sO8kN5+L03XmR7IlW3LbSZ+qrp7pdtuydPTvki9u3Lhx/7ASLi4uDvfv973cvXv3Dn/++efh2rVrx2vyAo899tjwThu8Hfo+1d5SLLkv2vXzzz8fnnvuucPff/99eFhw7bAi/vnnn8Pl5eWVz3IDOHewGKgnnnjiCoEgHH///vvvh8cff3z4nrbE63lb+LvFQHMe2jR2P7p2bNMe4f24Grk02LkOjCQTCfmNE3KKdLo5l1jCk08+efjtt98OP/300yAlUgRTW3RdiLkEJZOEa4hccfItuWaN5O2B1cg1daNxEHzg4wCj8koGLXVOCMbnP/zww+GZZ54ZpIoGV8eLoC3IVYNWZPDzRIncG36t5dNkZ5CKfPHFFw9//PHH4ddffz3aYi7tJGkj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Dk09SoHR6YU2RxMUSDP8fw6bxvv7AnkLrBK/29eNS5r4U+x8EA6nBlsj0ETm9gjUO7p5DqPDOkOIptbQgNDeH/unQWDz/ZdA0zBOJ/f1sXQI6QyPqxtnMII3/NEh9kJGEBI+zqmyVwLXglLm+u3o6W6t8oiBZc1pwpF3Z/Tq1kX1oKDcglalt0Mq5G+Zzha8dbY+rvA7Erz2Jf1VQQm9t9zxzU0kLlDp2uX9IwZVZxyO2G19y9ieD165lH9Fosk8DI5sufSSLSZBQSF3maHFuDcVGsLHjqrgKZLUX5JqjGehdg3ULYhq7fAkpy5voaGxxtFgmygtNBJMSfalN4Ghq0DVGhNw+TbZUJBvl6KdlImJXLsphrcJtyi/rBx7bNiPF3drqCfiaI7S/0yAfzPgdNJKqQ+lwh1XfSmYClPT+R2b/03chQhh/fQH7Dav+EOO2oojEn8WdyuYzZbw6+e/WpX6eGYK0xR3BJhumCL/0lYS1EWShiFKXp4HOjIdwcvzNzjuNg4uobmh3lmZNljg+RHIokP7iJ+//S9/0JF4UWgALQSUifcPn+AvCxKcp8u7vR5XAiSC3WYDByQWZ1myzFUtOgbu577+f5ZPq/B5Pf+nAAAAAElFTkSuQmCC";function ng(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 TS="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 ag(e){return tailwindMerge.twMerge(TS,e)}function Ur({position:e="top-right",className:t,style:r,children:o}){return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge(ng(e),t),style:r,children:o})}function Ht({icon:e,iconSize:t=24,onPress:r,isDisabled:o=false,className:n,iconClassName:a="text-text-primary",variant:i="secondary",isActive:s=false,ariaLabel:c,iconWeight:l="regular",...p}){let d=tailwindMerge.twMerge(ag(),s&&"bg-action-brand hover:bg-action-brand-hover border-action-brand",n),m=tailwindMerge.twMerge(a,s&&"text-text-onPrimary");return jsxRuntime.jsx(q,{...p,className:d,onPress:r,variant:i,size:"sm",isDisabled:o,"aria-label":c,"aria-pressed":s||void 0,type:"button",children:jsxRuntime.jsx(k,{name:e,size:t,className:m,weight:l})})}var FS=e=>[{id:"streets",name:"Streets",description:"Standard street map with traffic data",preview:e?rg:og},{id:"satellite",name:"Satellite",description:"Aerial imagery with street labels",preview:tg},{id:"neutral",name:"Neutral",description:"Clean design with light/dark variants",preview:e?_f:eg}];function ES({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 lg({position:e="bottom-left",className:t,style:r,currentMapType:o="streets",onMapTypeChange:n,layers:a=[],onLayerToggle:i}){let{isDarkTheme:s}=pt(),{isMobile:c}=Vo(),[l,p]=Ue.useState(false),d=FS(s),m=f=>{n?.(f);},u=a.filter(f=>f.legend),g=jsxRuntime.jsxs("div",{className:c?"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))})]}),u.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:u.map(f=>jsxRuntime.jsx(oo,{isSelected:f.visible!==false,onChange:()=>i?.(f.id),children:jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[f.legend&&jsxRuntime.jsx(ES,{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(Ur,{position:e,className:t,style:r,children:jsxRuntime.jsx("div",{className:"relative",children:c?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(Ht,{icon:"Stack",ariaLabel:"Map layers and settings",onPress:()=>p(true)}),jsxRuntime.jsx(Zt,{isOpen:l,onClose:()=>p(false),title:"Map layers",animationVariant:"scale",children:g})]}):jsxRuntime.jsxs(reactAriaComponents.DialogTrigger,{children:[jsxRuntime.jsx(Ht,{icon:"Stack",ariaLabel:"Map layers and settings"}),jsxRuntime.jsx(We,{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 dg({position:e="top-right",className:t,style:r,onToggle:o,isActive:n=false}){return jsxRuntime.jsx(Ur,{position:e,className:tailwindMerge.twMerge("md:hidden",t),style:r,children:jsxRuntime.jsx(Ht,{icon:"ListDashes",onPress:o,isActive:n,ariaLabel:n?"Hide list view":"Show list view"})})}var VS={sm:"gap-2",md:"gap-4",lg:"gap-6"};function qi({position:e="top-right",className:t,style:r,children:o,orientation:n="vertical",spacing:a="md"}){return jsxRuntime.jsx(Ur,{position:e,style:r,children:jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("flex",n==="vertical"?"flex-col":"flex-row",VS[a],t),children:o})})}function pg({mapRef:e,position:t="bottom-right",className:r,style:o,showCompass:n=true,showGeolocate:a=true,showResetZoom:i=true,onResetZoom:s,onCompassClick:c,onGeolocateClick:l}){let[p,d]=Ue.useState(false),m=Ue.useRef(true);Ue.useEffect(()=>()=>{m.current=false;},[]);let u=()=>{c?c():e.current&&e.current.easeTo({bearing:0,duration:500});},g=async()=>{if(!p)if(l)l();else {if(!navigator.geolocation){console.warn("Geolocation is not supported by this browser.");return}if(navigator.permissions?.query)try{if((await navigator.permissions.query({name:"geolocation"})).state==="denied"){console.warn("Geolocation permission was previously denied. Please enable location services in your browser settings.");return}}catch{}d(true),navigator.geolocation.getCurrentPosition(v=>{if(!m.current)return;let{latitude:x,longitude:C}=v.coords;e.current&&e.current.flyTo({center:[C,x],zoom:15,duration:2e3}),d(false);},v=>{if(m.current){switch(console.warn("Geolocation error:",{code:v.code,message:v.message,PERMISSION_DENIED:v.PERMISSION_DENIED,POSITION_UNAVAILABLE:v.POSITION_UNAVAILABLE,TIMEOUT:v.TIMEOUT}),v.code){case v.PERMISSION_DENIED:console.warn("Location access denied. Please enable location services in your browser settings.");break;case v.POSITION_UNAVAILABLE:console.warn("Location information unavailable.");break;case v.TIMEOUT:console.warn("Location request timed out.");break;default:console.warn("Error getting location:",v.message);break}d(false);}},{enableHighAccuracy:true,timeout:1e4,maximumAge:0});}};if(!n&&!a&&!i)return null;let f=!i&&n,b=!i&&!n&&a,h=!a&&n;return jsxRuntime.jsxs(qi,{position:t,className:r,style:o,spacing:"sm",children:[i&&jsxRuntime.jsx(Ht,{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(Ht,{icon:"Compass",onPress:u,ariaLabel:"Reset map orientation",className:tailwindMerge.twMerge(!f&&"rounded-t-none border-t-0",!h&&"rounded-b-none border-b-0")}),a&&jsxRuntime.jsx(Ht,{icon:p?"Spinner":"NavigationArrow",onPress:g,isDisabled:p,ariaLabel:"Go to my location",iconClassName:tailwindMerge.twMerge("text-text-primary",p&&"animate-spin"),className:tailwindMerge.twMerge(!b&&"rounded-t-none border-t-0",!b&&n&&"lg:rounded-t lg:border-t")})]})}function bg({position:e="top-left",className:t,style:r,onSearch:o,placeholder:n="Search places...",showSearchInput:a=true}){let[i,s]=Ue.useState(false),[c,l]=Ue.useState(""),p=()=>{a?s(!i):o&&o("");},d=u=>{u.preventDefault(),o&&c.trim()&&(o(c.trim()),s(false));},m=u=>{u.key==="Escape"&&s(false);};return jsxRuntime.jsx(Ur,{position:e,className:t,style:r,children:jsxRuntime.jsxs("div",{className:"relative",children:[jsxRuntime.jsx(Ht,{icon:"MagnifyingGlass",onPress:p,ariaLabel:"Search"}),i&&a&&jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("absolute top-12 left-0 min-w-64","bg-background-surface border border-border rounded-lg shadow-xl p-3"),children:jsxRuntime.jsx("form",{onSubmit:d,children:jsxRuntime.jsxs("div",{className:"flex items-center space-x-2",children:[jsxRuntime.jsx("input",{type:"text",value:c,onChange:u=>l(u.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(q,{type:"submit",variant:"brand",size:"sm",className:"px-3 py-2",children:"Search"})]})})})]})})}var US={navigation:"bottom-right",layers:"bottom-left",search:"top-left",list:"top-right",custom:"top-right"};function jc(e){return e.position??US[e.type]}function xg(e,t,r){let o=jc(e),n=e.id??`${e.type}-${t}`;switch(e.type){case "navigation":{let i=e.showResetZoom!==false&&r.showResetButton;return jsxRuntime.jsx(pg,{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(lg,{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(bg,{position:o,onSearch:e.onSearch,placeholder:e.placeholder,showSearchInput:e.showSearchInput,style:e.style,className:e.className},n);case "list":return jsxRuntime.jsx(dg,{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 Qc(e,t){let r=e.reduce((n,a,i)=>{let s=jc(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(xg(a[0].control,a[0].index,t));continue}o.push(jsxRuntime.jsx(qi,{position:n,spacing:"sm",children:a.map(({control:i,index:s})=>xg(i,s,t))},`group-${n}`));}return o}function ji(){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 $c={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 _c(e){return e.kind==="vector"}function ed(e){return e.kind==="geojson"}function td(e){return e.kind==="customPins"}function rd(e){return e.kind==="raster"}function ua(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(YS,{spec:o,mapType:t},o.id);case "geojson":return jsxRuntime.jsx(ZS,{spec:o,mapType:t},o.id);case "customPins":return jsxRuntime.jsx(qS,{spec:o,mapType:t},o.id);case "raster":return jsxRuntime.jsx(XS,{spec:o},o.id);case "clusteredVector":return jsxRuntime.jsx(JS,{spec:o,mapType:t},o.id);default:return console.warn("[Layers] Unknown layer kind:",o.kind),null}})})}function YS({spec:e,mapType:t}){let{colorMode:r}=pt(),o=Ue.useMemo(()=>vg(e.style,e.renderAs,r,t),[e.style,e.renderAs,r,t]),n=Ue.useMemo(()=>({visibility:e.visible===false?"none":"visible"}),[e.visible]),a={id:e.id,type:yg(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(aN.Source,{...s,children:jsxRuntime.jsx(aN.Layer,{...a})})}function JS({spec:e}){let{colorMode:t,isDarkTheme:r}=pt(),o=1.25,n=9,a=3,i=n*1.4,s=.2,c=[0,5],l=Ue.useMemo(()=>r?{clusters:e.clusterStyle?.color?Wt(e.clusterStyle.color):"#000000",shadow:e.clusterStyle?.shadowColor||"rgba(0, 0, 0, 0.5)",point:{fill:e.pointStyle?.color?Wt(e.pointStyle.color):"#000000",stroke:e.pointStyle?.borderColor||"#ffffff",shadow:"rgba(0, 0, 0, 0.5)"},text:{onCluster:"#ffffff"},selected:{fill:e.selectedStyle?.color?Wt(e.selectedStyle.color):"#444ae1"}}:{clusters:e.clusterStyle?.color?Wt(e.clusterStyle.color):"#000000",shadow:e.clusterStyle?.shadowColor||"rgba(0, 0, 0, 0.3)",point:{fill:e.pointStyle?.color?Wt(e.pointStyle.color):"#000000",stroke:e.pointStyle?.borderColor||"#ffffff",shadow:"rgba(0, 0, 0, 0.3)"},text:{onCluster:"#ffffff"},selected:{fill:e.selectedStyle?.color?Wt(e.selectedStyle.color):"#444ae1"}},[r,t,e.clusterStyle,e.pointStyle,e.selectedStyle]),p=Ue.useMemo(()=>e.clusterStyle?.sizes?e.clusterStyle.sizes.map(({threshold:b,radius:h})=>({threshold:b,radius:h,color:l.clusters})):[{threshold:30,radius:20,color:l.clusters},{threshold:50,radius:30,color:l.clusters},{threshold:100,radius:40,color:l.clusters}],[e.clusterStyle?.sizes,l.clusters]),d=b=>["step",["get","point_count"],b[0].radius,...b.flatMap(({threshold:h,radius:y})=>[h,y])],m=b=>["step",["get","point_count"],b[0].radius*o,...b.flatMap(({threshold:h,radius:y})=>[h,y*o])],u=e.tileset.startsWith("mapbox://"),g={id:`${e.id}-source`,type:"vector"};u?g.url=e.tileset:(g.tiles=[e.tileset],g.minzoom=0,g.maxzoom=22);let f=Ue.useMemo(()=>{let b=e.pointStyle?.radius??n,h=e.pointStyle?.borderWidth??a,y=e.selectedStyle?.radius??n*1.5,v=x=>{let C={...x};return e.minZoom!==void 0&&(C.minzoom=e.minZoom),e.maxZoom!==void 0&&(C.maxzoom=e.maxZoom),C};return [v({id:`${e.id}-cluster-shadows`,type:"circle","source-layer":e.sourceLayer,filter:["==",["get","cluster"],true],paint:{"circle-radius":m(p),"circle-color":l.shadow,"circle-blur":.5,"circle-translate":[0,8]}}),v({id:`${e.id}-points-shadow`,type:"circle","source-layer":e.sourceLayer,filter:["all",["!=",["get","cluster"],true],["!=",["get","id"],e.selectedId||"selected"]],paint:{"circle-radius":i,"circle-color":l.point.shadow,"circle-blur":s,"circle-translate":c}}),v({id:`${e.id}-clusters`,type:"circle","source-layer":e.sourceLayer,filter:["==",["get","cluster"],true],paint:{"circle-radius":d(p),"circle-color":["step",["get","point_count"],p[0].color,...p.flatMap(({threshold:x,color:C})=>[x,C])]}}),v({id:`${e.id}-cluster-count`,type:"symbol","source-layer":e.sourceLayer,filter:["==",["get","cluster"],true],layout:{"text-field":["case",["has","point_count_abbreviated"],["get","point_count_abbreviated"],["to-string",["get","point_count"]]],"text-font":["DIN Offc Pro Medium","Arial Unicode MS Bold"],"text-size":14,"text-offset":[0,.1]},paint:{"text-color":l.text.onCluster}}),v({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":l.point.fill,"circle-stroke-width":h,"circle-stroke-color":l.point.stroke}}),v({id:`${e.id}-selected-point`,type:"circle","source-layer":e.sourceLayer,filter:["==",["get","id"],e.selectedId||"selected"],paint:{"circle-radius":y,"circle-color":l.selected.fill,"circle-stroke-width":h,"circle-stroke-color":"#ffffff"}})]},[e.id,e.sourceLayer,e.selectedId,e.minZoom,e.maxZoom,e.pointStyle,e.selectedStyle,p,l,n,a,i,s]);return jsxRuntime.jsx(aN.Source,{...g,children:f.map(b=>jsxRuntime.jsx(aN.Layer,{...b},b.id))})}function ZS({spec:e,mapType:t}){let{colorMode:r}=pt(),o=Ue.useMemo(()=>typeof e.data=="string"?null:e.data,[e.data]),n=Ue.useMemo(()=>vg(e.style,e.renderAs,r,t,o),[e.style,e.renderAs,r,t,o]),a=Ue.useMemo(()=>({visibility:e.visible===false?"none":"visible"}),[e.visible]),i=Ue.useMemo(()=>(typeof e.data=="string",e.data),[e.data]),s={id:`${e.id}-source`,type:"geojson",data:i};e.cluster?.enabled&&(s.cluster=true,s.clusterRadius=e.cluster.radius??50,s.clusterMaxZoom=e.cluster.maxZoom??14);let c={id:e.id,type:yg(e.renderAs),paint:n,layout:a};return e.minZoom!==void 0&&(c.minzoom=e.minZoom),e.maxZoom!==void 0&&(c.maxzoom=e.maxZoom),jsxRuntime.jsx(aN.Source,{...s,children:jsxRuntime.jsx(aN.Layer,{...c})})}function qS({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(aN.Marker,{longitude:a,latitude:i,anchor:"bottom",children:jsxRuntime.jsx(r,{...s})},`${e.id}-${n}`)})})}function XS({spec:e}){let t=Ue.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(aN.Source,{...r,children:jsxRuntime.jsx(aN.Layer,{...o})})}var Kr="#666";function yg(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 vg(e,t,r,o,n){if(!e)return {};let a={};if(e.color){let i=Wt(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"]=hg(e.width)),e.radius&&t==="circle"&&(a["circle-radius"]=hg(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?Wt(e.borderColor,r,n):Wt(e.color||"#000",r,n)),t==="circle"&&e.borderWidth){a["circle-stroke-width"]=e.borderWidth;let i=e.borderColor?Wt(e.borderColor,r,n):je(`map-${o}-border`,"#ffffff");a["circle-stroke-color"]=i;}return a}function jS(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(Wt(i));return n.push(Kr),n}function QS(e,t){let r=vu(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=Cu(r),n=["match",["get",e]];for(let[a,i]of Object.entries(o))n.push(a),n.push(i);return n.push(Kr),n}function $S(e,t="viridis",r,o){let n=el(r,e),a;if(o&&o!=="auto")a=o;else {if(a=tl(n),n.length===0)return console.warn(`[Layers] No numeric values found for property "${e}"`),Kr;console.log(`[Layers] Auto-calculated sequential scale for "${e}": ${a.min} to ${a.max}`);}let i=rl(t),s=["interpolate",["linear"],["get",e]];return i.forEach((c,l)=>{let p=l/(i.length-1),d=a.min+p*(a.max-a.min);s.push(d,c);}),s}function _S(e,t="redYellowBlue",r,o,n){let a=el(r,e),i=Su(a,o),s;if(n&&n!=="auto")s=n;else {if(s=tl(a),a.length===0)return console.warn(`[Layers] No numeric values found for property "${e}"`),Kr;console.log(`[Layers] Auto-calculated diverging scale for "${e}": ${s.min} \u2190 ${i} \u2192 ${s.max}`);}let c=ol(t),l=4,p=["interpolate",["linear"],["get",e]];for(let d=0;d<=l;d++){let m=d/l,u=s.min+m*(i-s.min);p.push(u,c[d]);}for(let d=l+1;d<c.length;d++){let m=(d-l)/(c.length-1-l),u=i+m*(s.max-i);p.push(u,c[d]);}return p}function Wt(e,t,r){if(typeof e=="string")return e;if("token"in e)return je(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?QS(e.by,r):(console.warn("[Layers] Categorical auto-assignment requires GeoJSON data (not URL-based data)"),Kr);if(e.palette==="sequential")return r?$S(e.by,e.scheme,r,e.scale):(console.warn("[Layers] Sequential palette requires GeoJSON data (not URL-based data)"),Kr);if(e.palette==="diverging")return r?_S(e.by,e.scheme,r,e.center,e.scale):(console.warn("[Layers] Diverging palette requires GeoJSON data (not URL-based data)"),Kr)}if("mapping"in e)return jS(e)}return Kr}function hg(e){return typeof e=="number"?e:"byZoom"in e?["interpolate",["linear"],["zoom"],...e.byZoom.flatMap(([t,r])=>[t,r])]:e}var _i=null;function es(){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():(_i||(_i=import('mapbox-gl/dist/mapbox-gl.css').then(()=>{}).catch(t=>{console.error("Failed to load Mapbox CSS",t),_i=null;})),_i)}function ts(){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:`
|
|
78
78
|
linear-gradient(rgba(0,0,0,0.15) 1px, transparent 1px),
|
|
79
79
|
linear-gradient(90deg, rgba(0,0,0,0.15) 1px, transparent 1px)
|
|
80
|
-
`,backgroundSize:"30px 30px"}})})})}function rs({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 Sg={streets:"streets",satellite:"satellite",neutral:"neutral"};function ma(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 Ng({longitude:e,latitude:t,showPulse:r=true,accuracy:o}){return jsxRuntime.jsx(nN.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 ad=Ue__namespace.default.forwardRef(({initialViewState:e,viewState:t,onViewStateChange:r,scrollEnabled:o=true,className:n,previewMode:a=false,previewModeCta:i,onPreviewModePress:s,mapType:c="streets",layers:l=[],mapboxAccessToken:m,transformRequest:d,isLoading:p=false,onLoad:u,controls:b="default",showUserLocation:f=true,onUserLocationChange:g,children:h,additionalInteractiveLayerIds:y=[],onMapClick:v,showMarker:x=false,markerLocation:C},S)=>{let N=m??ji();if(!N)return jsxRuntime.jsx("div",{className:`relative ${n||""}`,style:{width:"100%",height:"100%"},children:jsxRuntime.jsx(rs,{className:"w-full h-full",message:"Map unavailable"})});let{isDarkTheme:T}=mt(),w=Ue.useRef(null),F=Ue.useRef(null),[E,A]=Ue.useState(false),[J,B]=Ue.useState(false);Ue.useEffect(()=>{es();},[]);let[Z,Y]=Ue.useState(false),G=Ue.useRef(0),[M,j]=Ue.useState(null),[V,U]=Ue.useState(null),z=Ue.useRef(null),[I,O]=ka("interactiveMap.trackingLocation",false),[K,L]=Ue.useState(false);Ue.useEffect(()=>{if(!navigator.geolocation){L(true);return}if(I){if(!navigator.permissions?.query){L(true);return}navigator.permissions.query({name:"geolocation"}).then(H=>{H.state!=="granted"&&O(false),L(true);}).catch(()=>{L(true);});}else L(true);},[]),Ue.useEffect(()=>{let H=setTimeout(()=>{E||B(true);},200);return ()=>clearTimeout(H)},[E]),Ue.useEffect(()=>{if(K){if(!I||a){z.current!==null&&(navigator.geolocation.clearWatch(z.current),z.current=null);return}if(!navigator.geolocation){console.warn("Geolocation is not supported by this browser.");return}return z.current=navigator.geolocation.watchPosition(H=>{let P={latitude:H.coords.latitude,longitude:H.coords.longitude,accuracy:H.coords.accuracy};U(P),g?.(P);},H=>{console.warn("Geolocation error:",H.message),U(null),g?.(null);},{enableHighAccuracy:true,maximumAge:3e4,timeout:3e4}),()=>{z.current!==null&&(navigator.geolocation.clearWatch(z.current),z.current=null);}}},[I,a,g,K]);let W=Ue.useCallback(()=>{A(true),B(false),u?.();},[u]),D=Ue.useCallback(()=>{w.current&&e&&(Y(false),G.current=0,w.current.flyTo({center:[e.longitude||0,e.latitude||0],zoom:e.zoom||0,bearing:e.bearing||0,pitch:e.pitch||0,duration:1e3}));},[e]),$=Ue.useMemo(()=>b===false||b===null?[]:b==="default"||b===void 0?qc:b,[b]),ne=Ue.useCallback(()=>{if(!navigator.geolocation){console.warn("Geolocation is not supported by this browser.");return}O(true),navigator.geolocation.getCurrentPosition(H=>{let{latitude:P,longitude:_}=H.coords;w.current&&w.current.jumpTo({center:[_,P],zoom:15});},H=>{console.warn("Geolocation error:",H.message),H.code===H.PERMISSION_DENIED&&O(false);},{enableHighAccuracy:true,timeout:1e4,maximumAge:0});},[]),Ne=Ue.useMemo(()=>{if(a)return null;let H=$.map(P=>P.type==="navigation"?{...P,onResetZoom:P.onResetZoom||D,onGeolocateClick:P.onGeolocateClick||ne}:P);return Qc(H,{mapRef:w,layers:l,showResetButton:Z})},[$,w,a,l,D,Z,ne]),Le=Ue.useMemo(()=>{let H=[];return l.filter(P=>P.events?.onClick||P.events?.onMouseEnter||P.events?.onMouseLeave||P.tooltip).forEach(P=>{P.kind==="clusteredVector"?(H.push(`${P.id}-clusters`),H.push(`${P.id}-points`),H.push(`${P.id}-selected-point`)):H.push(P.id);}),[...H,...y]},[l,y]),Re=Ue.useMemo(()=>{let H=new Map;return l.forEach(P=>{P.events&&H.set(P.id,P.events);}),H},[l]),kr=Ue.useMemo(()=>{let H=new Map;return l.forEach(P=>{P.tooltip&&(H.set(P.id,P.tooltip),P.kind==="clusteredVector"&&(H.set(`${P.id}-clusters`,P.tooltip),H.set(`${P.id}-points`,P.tooltip),H.set(`${P.id}-selected-point`,P.tooltip)));}),H},[l]),Ut=Ue.useMemo(()=>{let H=new Map;return l.forEach(P=>{P.kind==="clusteredVector"&&(H.set(P.id,P),H.set(`${P.id}-clusters`,P),H.set(`${P.id}-points`,P),H.set(`${P.id}-selected-point`,P));}),H},[l]),Bo=Ue.useMemo(()=>{if(!x)return null;let H=C?.longitude??t?.longitude??e?.longitude,P=C?.latitude??t?.latitude??e?.latitude;return H===void 0||P===void 0?null:{longitude:H,latitude:P}},[x,C,t,e]),X=Ue.useCallback(H=>{if(a)return;let P=H.features?.[0];if(!P||!P.layer)return;let _=P.layer.id,ie=Re.get(_),re=kr.get(_),le;P.geometry.type==="Point"?le=P.geometry.coordinates:le=[H.lngLat.lng,H.lngLat.lat];let Pe={id:P.id,lngLat:le,properties:P.properties||{},layerId:_},be=Ut.get(_),zo=P.properties?.cluster===true;if(be&&zo){let et=w.current;if(et){let Tr=et.getZoom(),Rb=Math.min(Tr+3,18);et.flyTo({center:le,zoom:Rb,duration:1e3});}return}if(ie?.onClick&&ie.onClick(Pe),re&&re.trigger==="click"){let et;be&&"cluster"in re?re.point&&(et=re.point(Pe)):"content"in re&&(et=typeof re.content=="function"?re.content(Pe):re.content),et&&j({feature:Pe,content:et});}v&&v(H);},[Re,kr,a,v,Ut,w]),pe=Ue.useCallback(H=>{if(a)return;let P=H.features?.[0];if(!P||!P.layer)return;let _=P.layer.id,ie=Re.get(_),re=kr.get(_),le;P.geometry.type==="Point"?le=P.geometry.coordinates:le=[H.lngLat.lng,H.lngLat.lat];let Pe={id:P.id,lngLat:le,properties:P.properties||{},layerId:_};if(ie?.onMouseEnter&&ie.onMouseEnter(Pe),re&&(re.trigger==="hover"||!re.trigger)){let be;if(Ut.get(_)&&"cluster"in re){let et=P.properties?.cluster===true;if(et&&re.cluster){let Tr=P.properties?.point_count||0;be=re.cluster(Tr,Pe);}else !et&&re.point?be=re.point(Pe):be=et?`${P.properties?.point_count||0} items`:null;}else "content"in re&&(be=typeof re.content=="function"?re.content(Pe):re.content);be&&j({feature:Pe,content:be});}w.current&&(w.current.getCanvas().style.cursor="pointer");},[Re,kr,a,w,Ut]),Ae=Ue.useCallback(()=>{if(!a){if(Re.forEach(H=>{H.onMouseLeave?.();}),M){let H=M.feature.layerId,P=l.find(_=>_.id===H);if(!P){let _=H.replace(/-(?:clusters|points|selected-point|cluster-shadows|points-shadow|cluster-count)$/,"");P=l.find(ie=>ie.id===_);}P?.tooltip&&(P.tooltip.trigger||"hover")==="hover"&&j(null);}w.current&&(w.current.getCanvas().style.cursor="");}},[Re,a,w,M,l]),we=Ue.useCallback((H,P)=>{for(let _ of l)if(_.tooltip&&!(P&&_.id!==P)){if(_.kind==="geojson"){if(typeof _.data=="string")continue;let ie=_.data,le=(ie.type==="FeatureCollection"?ie.features:[ie]).find(Pe=>Pe.id===H);if(le&&le.geometry.type==="Point")return {id:le.id,lngLat:le.geometry.coordinates,properties:le.properties||{},layerId:_.id}}else if(_.kind==="customPins"){let ie=_.data.find(re=>re.id===H||re._id===H||re.key===H);if(ie)return {id:H,lngLat:_.getPosition(ie),properties:ie,layerId:_.id}}}return null},[l]);Ue.useImperativeHandle(S,()=>({showTooltip:(H,P)=>{let _=we(H,P);if(!_)return;let ie=l.find(re=>re.id===_.layerId);if(ie?.tooltip&&"content"in ie.tooltip){let re=typeof ie.tooltip.content=="function"?ie.tooltip.content(_):ie.tooltip.content;j({feature:_,content:re});}},hideTooltip:()=>{j(null);},getMap:()=>w.current}),[we,l]);let Ce=(H,P)=>d?d(H,P):{url:H},Ke=p||J;return jsxRuntime.jsx("div",{ref:F,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(nN__default.default,{ref:w,initialViewState:e,...t&&t,style:{width:"100%",height:"100%"},mapStyle:ma(c,T),mapboxAccessToken:N,transformRequest:Ce,onLoad:W,onMove:a?void 0:H=>{if(H.originalEvent&&E){let P=H.originalEvent.type,_=Math.abs((H.viewState.latitude??0)-(e?.latitude??0)),ie=Math.abs((H.viewState.longitude??0)-(e?.longitude??0)),re=Math.abs((H.viewState.zoom??0)-(e?.zoom??0));e&&(_>1e-4||ie>1e-4||re>.1)&&(P==="mousemove"||P==="touchmove"||P==="pointermove"?Y(true):(P==="wheel"||P==="mousewheel")&&(G.current+=1,G.current>=3&&Y(true)));}r?.(H.viewState);},onClick:a?void 0:X,onMouseEnter:a?void 0:pe,onMouseLeave:a?void 0:Ae,interactiveLayerIds:a?[]:Le,scrollZoom:a?false:o,dragPan:!a,dragRotate:!a,doubleClickZoom:!a,interactive:!a,children:[Ne,ua(l,c),h,Bo&&jsxRuntime.jsx(nN.Marker,{longitude:Bo.longitude,latitude:Bo.latitude,anchor:"bottom",children:jsxRuntime.jsx(k,{name:"MapPin",size:36,className:"text-map-marker-default",weight:"fill"})}),f&&V&&jsxRuntime.jsx(Ng,{longitude:V.longitude,latitude:V.latitude,accuracy:V.accuracy}),M&&jsxRuntime.jsx(nN.Popup,{longitude:M.feature.lngLat[0],latitude:M.feature.lngLat[1],offset:15,closeButton:false,closeOnClick:false,className:"map-tooltip",children:M.content})]},`map-${c}`),Ke&&jsxRuntime.jsx(ts,{}),a&&i&&jsxRuntime.jsx("div",{className:"absolute bottom-8 right-8 z-10",children:i})]})})});ad.displayName="InteractiveMap";function hn({width:e="100%",height:t="100%",initialViewState:r={longitude:-122.4194,latitude:37.7749,zoom:14},isLoading:o=false,mapType:n="streets",layers:a=[],mapboxAccessToken:i,showMarker:s=true,showAttribution:c=false,onLoad:l,className:m}){let d=i??ji(),{isDarkTheme:p}=mt(),[u,b]=Ue.useState(false),[f,g]=Ue.useState(false),h=Ue.useRef(null),y=Ue.useRef(null);Ue.useEffect(()=>{es();},[]);let v={width:typeof e=="number"?`${e}px`:e,height:typeof t=="number"?`${t}px`:t};Ue.useEffect(()=>{let S=setTimeout(()=>{u||g(true);},200);return ()=>clearTimeout(S)},[u]);let x=Ue.useCallback(()=>{b(true),g(false),l?.();},[l]);Ue.useEffect(()=>{if(!y.current)return;let S=new ResizeObserver(()=>{h.current&&h.current.resize();});return S.observe(y.current),()=>{S.disconnect();}},[]);let C=o||f;return d?jsxRuntime.jsxs("div",{ref:y,style:v,className:`relative ${m||""}`,children:[jsxRuntime.jsxs(nN__default.default,{ref:h,mapboxAccessToken:d,initialViewState:r,style:{width:"100%",height:"100%"},mapStyle:ma(n,p),onLoad:x,scrollZoom:false,dragPan:false,dragRotate:false,doubleClickZoom:false,touchZoomRotate:false,interactive:false,attributionControl:c,children:[ua(a,n),s&&r.longitude!==void 0&&r.latitude!==void 0&&jsxRuntime.jsx(nN.Marker,{longitude:r.longitude,latitude:r.latitude,anchor:"bottom",children:jsxRuntime.jsx(k,{name:"MapPin",size:36,className:"text-map-marker-default",weight:"fill"})})]}),C&&jsxRuntime.jsx(ts,{})]}):jsxRuntime.jsx(rs,{style:v,className:m})}var pN={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 Dg({label:e,size:t="md",variant:r="default",showWarningIndicator:o=true,warningThreshold:n=80,className:a,...i}){let s=pN[t];return jsxRuntime.jsx(reactAriaComponents.Meter,{...i,className:ce(a,"flex flex-col gap-1"),children:({percentage:c,valueText:l})=>{let m=o&&c>=n,d=r==="default"?fN(c):r;return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsxs("div",{className:"flex justify-between gap-2",children:[e&&jsxRuntime.jsx(ve,{children:e}),jsxRuntime.jsxs("span",{className:tailwindMerge.twMerge(s.text,m?"text-feedback-error-text":"text-text-muted"),children:[m&&jsxRuntime.jsx(lucideReact.AlertTriangle,{"aria-label":"Warning: High value",className:tailwindMerge.twMerge("inline-block align-text-bottom mr-1",s.icon)}),l]})]}),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]",gN(d)),style:{width:`${Math.min(100,Math.max(0,c))}%`},role:"presentation","aria-hidden":"true"})})]})}})}function fN(e){return e<50?"success":e<70?"info":e<90?"warning":"error"}function gN(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 kN={success:{container:"bg-feedback-success-background border-feedback-success-border text-feedback-success-text",icon:lucideReact.CheckCircle},error:{container:"bg-feedback-error-background border-feedback-error-border text-feedback-error-text",icon:lucideReact.XCircle},warning:{container:"bg-feedback-warning-background border-feedback-warning-border text-feedback-warning-text",icon:lucideReact.AlertCircle},info:{container:"bg-feedback-info-background border-feedback-info-border text-feedback-info-text",icon:lucideReact.Info}};function ls({id:e,message:t,variant:r="info",duration:o=5e3,dismissible:n=true,onDismiss:a,className:i}){let{container:s,icon:c}=kN[r];return Ue.useEffect(()=>{if(o>0){let l=setTimeout(()=>{a?.();},o);return ()=>clearTimeout(l)}},[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-start gap-3 rounded-lg border p-4 shadow-lg",s,i),children:[jsxRuntime.jsx(c,{className:"h-5 w-5 flex-shrink-0"}),jsxRuntime.jsx("p",{className:"flex-1 text-sm font-medium",children:t}),n&&jsxRuntime.jsx("button",{onClick:a,className:"flex-shrink-0 rounded-md p-1 transition-colors hover:bg-black/10","aria-label":"Dismiss notification",children:jsxRuntime.jsx(lucideReact.X,{className:"h-4 w-4"})})]})}var LN={"top-left":"top-4 left-4 items-start","top-center":"top-4 left-1/2 -translate-x-1/2 items-center","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-center","bottom-right":"bottom-4 right-4 items-end"};function cs({notices:e,onDismiss:t,position:r="top-right",className:o}){let[n,a]=Ue.useState(false);if(Ue.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",LN[r],o),"aria-live":"polite","aria-atomic":"true",children:jsxRuntime.jsx(framerMotion.AnimatePresence,{mode:"sync",children:e.map(s=>jsxRuntime.jsx(ls,{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 Rg=Ue.createContext(void 0);function Ag({children:e,position:t="top-right",maxNotices:r=5,defaultDuration:o=5e3,defaultDismissible:n=true}){let[a,i]=Ue.useState([]),s=Ue.useCallback((d,p)=>{let u=`notice-${Date.now()}-${Math.random()}`,b={id:u,message:d,variant:p?.variant||"info",duration:p?.duration??o,dismissible:p?.dismissible??n};return i(f=>{let g=[...f,b];return g.length>r?g.slice(-r):g}),u},[r,o,n]),c=Ue.useCallback(d=>{i(p=>p.filter(u=>u.id!==d));},[]),l=Ue.useCallback(()=>{i([]);},[]),m={notices:a,addNotice:s,removeNotice:c,clearNotices:l};return jsxRuntime.jsxs(Rg.Provider,{value:m,children:[e,jsxRuntime.jsx(cs,{notices:a,onDismiss:c,position:t})]})}function Mg(){let e=Ue.useContext(Rg);if(!e)throw new Error("useNoticeContext must be used within a NoticeProvider");return e}function Lg(){let{addNotice:e,removeNotice:t,clearNotices:r}=Mg(),o=Ue.useCallback((c,l)=>e(c,l),[e]),n=Ue.useCallback((c,l)=>e(c,{...l,variant:"success"}),[e]),a=Ue.useCallback((c,l)=>e(c,{...l,variant:"error"}),[e]),i=Ue.useCallback((c,l)=>e(c,{...l,variant:"warning"}),[e]),s=Ue.useCallback((c,l)=>e(c,{...l,variant:"info"}),[e]);return {show:o,success:n,error:a,warning:i,info:s,dismiss:t,clear:r}}var ON={plain:"",contained:"bg-background-surface rounded-lg border border-border-default p-6",bordered:"border-y border-border-default py-6"},HN={none:"",sm:"my-4",md:"my-6 md:my-8",lg:"my-8 md:my-12"};function yn({id:e,title:t,description:r,actions:o,variant:n="plain",spacing:a="none",withDivider:i=false,headingAs:s="h2",className:c,children:l}){let m=Ue__namespace.default.useId(),d=e?`${e}-heading`:m,p=t||r||o;return jsxRuntime.jsxs("section",{id:e,className:tailwindMerge.twMerge(HN[a],ON[n],c),"aria-labelledby":t?d:void 0,children:[p&&jsxRuntime.jsxs("header",{id:d,className:tailwindMerge.twMerge("flex flex-col sm:flex-row sm:items-start sm:justify-between gap-4",i&&"border-b border-border-default pb-4 mb-6",!i&&l&&"mb-6"),children:[jsxRuntime.jsxs("div",{className:"min-w-0 flex-1",children:[t&&jsxRuntime.jsx(pt,{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})]}),l&&jsxRuntime.jsx("div",{className:"",children:l})]})}yn.displayName="Section";function ps({sections:e,activeSection:t,onSectionChange:r,orientation:o="responsive",className:n,scrollBehavior:a="smooth",stickyTop:i="1.5rem",sectionIdPrefix:s="section-",filterSection:c}){let l=Ue__namespace.useRef(null),m=Ue__namespace.useRef(null),[d,p]=Ue__namespace.useState(e[0]?.id||null),u=t??d;Ue__namespace.useEffect(()=>{if(t!==void 0&&r)return;let y=S=>{if(!S)return false;let N=window.getComputedStyle(S);return N.display!=="none"&&N.visibility!=="hidden"&&N.opacity!=="0"},v=()=>{let S=y(l.current),N=y(m.current);if(!S&&!N)return null;let T=new IntersectionObserver(w=>{w.forEach(F=>{if(F.isIntersecting){let E=F.target.id.replace(s,"");r?r(E):p(E);}});},{rootMargin:"-20% 0px -70% 0px",threshold:0});return e.forEach(w=>{let F=document.getElementById(`${s}${w.id}`);F&&T.observe(F);}),T},x=v(),C=()=>{x&&x.disconnect(),x=v();};return window.addEventListener("resize",C),()=>{x&&x.disconnect(),window.removeEventListener("resize",C);}},[e,s,t,r,o]);let b=Ue__namespace.useMemo(()=>c?e.filter(c):e,[e,c]),f=Ue__namespace.useCallback((y,v)=>{y.preventDefault();let x=document.getElementById(`${s}${v}`);x&&(x.scrollIntoView({behavior:a,block:"start"}),window.history.pushState&&window.history.pushState(null,"",`#${s}${v}`),r?r(v):p(v));},[s,a,r]);if(b.length===0)return null;let g=o==="vertical"?"":o==="horizontal"?"hidden":"hidden lg:block",h=o==="horizontal"?"":o==="vertical"?"hidden":"lg:hidden";return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("nav",{ref:l,className:tailwindMerge.twMerge(g,n),"aria-label":"Section navigation",children:jsxRuntime.jsx("div",{className:"space-y-1",style:{position:"sticky",top:i},children:b.map(y=>{let v=u===y.id;return jsxRuntime.jsx("a",{href:`#${s}${y.id}`,onClick:x=>f(x,y.id),className:tailwindMerge.twMerge("block w-full text-left px-3 py-2 rounded-md text-sm transition-colors no-underline",v?"bg-background-muted text-text-body font-medium":"text-text-muted hover:text-text-body hover:bg-background-hover"),"aria-current":v?"page":void 0,children:jsxRuntime.jsxs("span",{className:"flex items-center justify-between gap-2",children:[jsxRuntime.jsx("span",{children:y.label}),y.count!==void 0&&jsxRuntime.jsx("span",{className:"text-xs tabular-nums text-text-muted",children:y.count})]})},y.id)})})}),jsxRuntime.jsx("nav",{ref:m,className:tailwindMerge.twMerge(h,"overflow-x-auto 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:b.map(y=>{let v=u===y.id;return jsxRuntime.jsx("a",{href:`#${s}${y.id}`,onClick:x=>f(x,y.id),className:tailwindMerge.twMerge("inline-block px-4 py-2 rounded-md text-sm whitespace-nowrap transition-colors no-underline",v?"bg-background-muted text-text-body font-medium":"text-text-muted hover:text-text-body hover:bg-background-hover"),"aria-current":v?"page":void 0,children:jsxRuntime.jsxs("span",{className:"flex items-center gap-2",children:[jsxRuntime.jsx("span",{children:y.label}),y.count!==void 0&&jsxRuntime.jsxs("span",{className:"text-xs tabular-nums text-text-muted",children:["(",y.count,")"]})]})},y.id)})})})]})}var fs=Ue__namespace.createContext({variant:"default"});function JN({orientation:e,className:t=""}){return `flex flex-col w-full ${{horizontal:"",vertical:"flex-row"}[e]||""} ${t}`.trim()}function bs({variant:e="default",...t}){return jsxRuntime.jsx(fs.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)=>JN({...o,className:r}))})})})}function ZN({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",vertical:"flex-col items-start"},a=t?"sticky top-0 bg-background-surface z-10":"";return `${o} ${n[e]||""} ${a} ${r}`.trim()}function xs({variant:e,sticky:t=false,...r}){let o=Ue__namespace.useContext(fs),n=e??o.variant;return jsxRuntime.jsx(fs.Provider,{value:{variant:n},children:jsxRuntime.jsx(reactAriaComponents.TabList,{...r,className:reactAriaComponents.composeRenderProps(r.className,(a,i)=>ZN({...i,sticky:t,className:a||""}))})})}function qN({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",a=`${ke()} ${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 hs(e){let{variant:t}=Ue__namespace.useContext(fs);return jsxRuntime.jsx(reactAriaComponents.Tab,{...e,"data-testid":e.id?`tab-${e.id}`:void 0,className:reactAriaComponents.composeRenderProps(e.className,(r,o)=>qN({...o,className:r,isSelected:o.isSelected,variant:t}))})}function XN({className:e=""}){let t="block w-full mt-4 text-text-body",r=ke();return `${t} ${r} ${e}`.trim()}function Eg(e){return jsxRuntime.jsx(reactAriaComponents.TabPanel,{...e,className:reactAriaComponents.composeRenderProps(e.className,(t,r)=>XN({...r,className:t||""}))})}function Do({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 Ig({title:e,subtitle:t,breadcrumbs:r,breadcrumbsNode:o,media:n,actions:a,metadata:i,headingAs:s,sticky:c,stickyTop:l="0",zIndex:m=10,isLoading:d=false,className:p}){let u=c?"sticky bg-background-body":"",b=c?{top:l,zIndex:m}:{};return d?jsxRuntime.jsxs("header",{className:tailwindMerge.twMerge("mb-8 md:mb-12",u,p),style:b,"aria-labelledby":"page-title",children:[o||r?.length?jsxRuntime.jsx("div",{className:"mb-2 md:mb-4",children:jsxRuntime.jsx(R,{className:"h-4 w-32"})}):null,jsxRuntime.jsxs("div",{className:"flex flex-col md:flex-row md:items-center 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(R,{className:"h-8 w-64"})}),t?jsxRuntime.jsx(R,{className:"mt-2 h-5 w-48"}):null,i?jsxRuntime.jsx(R,{className:"mt-2 h-4 w-40"}):null,a?.length?jsxRuntime.jsx("div",{className:"mt-6 flex flex-wrap items-center gap-2 md:hidden",children:a.map((f,g)=>jsxRuntime.jsx(R,{className:"h-9 w-24"},g))}):null]}),a?.length?jsxRuntime.jsx("div",{className:"hidden md:flex md:items-center gap-2 shrink-0",children:a.map((f,g)=>jsxRuntime.jsx(R,{className:"h-9 w-24"},g))}):null]}),n?jsxRuntime.jsx("div",{className:"mt-4 md:mt-6",children:jsxRuntime.jsx(R,{className:"h-64 w-full"})}):null]}):jsxRuntime.jsxs("header",{className:tailwindMerge.twMerge("mb-8 md:mb-12",u,p),style:b,"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(ii,{children:r.map((f,g)=>jsxRuntime.jsx(si,{...f.href?{href:f.href}:{},children:f.label},`${f.label}-${g}`))})}):null,jsxRuntime.jsxs("div",{className:"flex flex-col md:flex-row md:items-center 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(pt,{tag:s||"h1",size:"xl",children:e})}),t?jsxRuntime.jsx("p",{className:"mt-2 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-wrap items-center gap-2 md:hidden",children:a.map((f,g)=>jsxRuntime.jsx(Ue__namespace.default.Fragment,{children:f},g))}):null]}),a?.length?jsxRuntime.jsx("div",{className:"hidden md:flex md:items-center gap-2 shrink-0",children:a.map((f,g)=>jsxRuntime.jsx(Ue__namespace.default.Fragment,{children:f},g))}):null]}),n?jsxRuntime.jsx("div",{className:"mt-4 md:mt-6",children:n}):null]})}function Bg({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",n),children:jsxRuntime.jsxs(bs,{selectedKey:t,defaultSelectedKey:r||e[0]?.id,onSelectionChange:i,children:[jsxRuntime.jsx(xs,{children:e.map(s=>jsxRuntime.jsx(hs,{id:s.id,isDisabled:s.disabled,children:s.label},s.id))}),a]})})}function zg({children:e,className:t,withSectionNav:r,navWidth:o="240px",gap:n="3rem",activeSection:a,onSectionChange:i,scrollBehavior:s,sectionIdPrefix:c="section-"}){return r?jsxRuntime.jsx(jN,{position:r,navWidth:o,gap:n,activeSection:a,onSectionChange:i,scrollBehavior:s,sectionIdPrefix:c,className:t,children:e}):jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("w-full space-y-8 md:space-y-12",t),children:e})}function Vg({children:e,sticky:t=true,className:r}){return jsxRuntime.jsx("aside",{className:tailwindMerge.twMerge(t?"lg:sticky lg:top-20":"",r),children:e})}function jN({activeSection:e,onSectionChange:t,position:r,navWidth:o,gap:n,children:a,className:i,scrollBehavior:s,sectionIdPrefix:c}){let l=Ue__namespace.default.useMemo(()=>{let b=[];return Ue__namespace.default.Children.forEach(a,f=>{if(Ue__namespace.default.isValidElement(f)&&(f.type===yn||typeof f.type=="object"&&f.type?.displayName==="Section"||typeof f.type=="function"&&f.type?.displayName==="Section")){let g=f.props;g.id?b.push({id:g.id,label:g.navLabel||(typeof g.title=="string"?g.title:`Section ${g.id}`)}):process.env.NODE_ENV==="development"&&console.warn("Section component used within PageLayout.Content with withSectionNav must have an id prop");}}),b},[a]),m=Ue__namespace.default.useMemo(()=>{let b=Ue__namespace.default.Children.map(a,f=>{if(Ue__namespace.default.isValidElement(f)&&(f.type===yn||typeof f.type=="object"&&f.type?.displayName==="Section"||typeof f.type=="function"&&f.type?.displayName==="Section")){let g=f.props;if(g.id)return Ue__namespace.default.cloneElement(f,{...g,id:`${c}${g.id}`})}return f});return jsxRuntime.jsx("div",{className:"space-y-8 md:space-y-12",children:b})},[a,c]),d=(b,f)=>jsxRuntime.jsx(ps,{sections:l,activeSection:e,onSectionChange:t,orientation:b,scrollBehavior:s,sectionIdPrefix:c,className:f});if(r==="above")return jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("space-y-3",i),children:[jsxRuntime.jsx("div",{className:"sticky top-0 z-10 bg-background-body",children:d("horizontal")}),m]});let p=r==="left"?"var(--nav-width) 1fr":"1fr var(--nav-width)",u=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 py-3 mt-4 bg-background-body",children:d("horizontal")}),jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("lg:grid",i),style:{gridTemplateColumns:p,gap:n,"--nav-width":o},children:[r==="left"&&jsxRuntime.jsx("nav",{className:u,children:d("vertical")}),m,r==="right"&&jsxRuntime.jsx("nav",{className:u,children:d("vertical")})]})]})}function Og({children:e,className:t}){return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("flex-1 overflow-auto min-h-0",t),children:e})}Do.Header=Ig;Do.Tabs=Bg;Do.Content=zg;Do.Aside=Vg;Do.ScrollableContent=Og;function $N(e){return typeof e=="object"&&e!==null&&"features"in e&&Array.isArray(e.features)&&"type"in e&&typeof e.type=="string"}var _N=process.env.NEXT_PUBLIC_MAPBOX_ACCESS_TOKEN||"";function Gg({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:c,isRequired:l,isDisabled:m,showErrors:d=true,autoFocus:p=false,onSelect:u,searchTypes:b=["place","address"],defaultFilter:f,validationResult:g,countryRestrictions:h,proximity:y="ip"}){let v=Ue.useRef(new WeakMap),x=Ue.useRef([]),C={requestType:"REST",method:"GET",url:"https://api.mapbox.com/geocoding/v5/mapbox.places/{q}.json",extraParams:{access_token:_N,types:b.join(","),limit:"5",...h?.length?{country:h.join(",").toLowerCase()}:{},...y?{proximity:y==="ip"?"ip":y.join(",")}:{}},shouldLoad:T=>T.length>0,transformResponse:T=>{if(!$N(T))return [];let w=T.features.map(F=>{let E={id:F.id,name:F.place_name};return v.current.set(E,{type:F.place_type[0],center:F.center}),E});return w.length>0&&(x.current=w),w}},S=T=>{let w=v.current.get(T),F=T.name.split(", "),E=F[0],A=F.slice(1).join(", ");return jsxRuntime.jsxs("div",{className:"flex items-center gap-3 py-0.5",children:[jsxRuntime.jsx(k,{name:w?.type==="address"?"MapPin":w?.type==="place"?"Buildings":w?.type==="region"?"MapPinArea":w?.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:E}),A&&jsxRuntime.jsx("span",{className:"truncate text-sm text-text-muted",children:A})]})]})},N=T=>T?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(oi,{"data-testid":"autocomplete","data-config":JSON.stringify({types:b.join(","),country:h?.join(",")?.toLowerCase(),proximity:y==="ip"?"ip":y?.join(",")}),label:e,selectedKey:t,defaultSelectedKey:r,onSelectionChange:T=>{if(o?.(T),T){let F=x.current.find(E=>E.id===T);if(F){let E=v.current.get(F);E&&u({id:F.id,place_name:F.name,place_type:[E.type],center:E.center});}}},requestConfig:C,placeholder:n,errorMessage:a,description:i,size:s,tooltip:c,isRequired:l,isDisabled:m,showErrors:d,autoFocus:p,renderItem:S,renderLeftIcon:N,defaultFilter:f,validationResult:g})}function Kg({label:e,rightLabel:t,progressWidth:r=64,hideLabels:o=false,...n}){return jsxRuntime.jsx(reactAriaComponents.ProgressBar,{...n,className:ce(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 aw(e="2"){return {1:"p-2 text-xs",2:"p-3 text-sm",3:"p-4 text-base"}[e]}function iw(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 sw(){return "opacity-50 cursor-not-allowed"}function pd({value:e,isDisabled:t,className:r,children:o,size:n="2",variant:a="default"}){return jsxRuntime.jsx(reactAriaComponents.Radio,{value:e,isDisabled:t,className:ce(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:c})=>jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("flex items-center justify-center w-full h-full transition-all duration-200 rounded-lg border-2 bg-background-surface",aw(n),iw(a,s),(t||c)&&sw(),r),children:o})})}function fd({value:e,defaultValue:t,onChange:r,isDisabled:o,isReadOnly:n,isRequired:a,className:i,children:s,size:c="2",variant:l="default",columns:m="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:ce(i,"grid"),style:{gridTemplateColumns:/^\d+$/.test(String(m))?`repeat(${m}, minmax(0, 1fr))`:m,gap:d==="1"?"0.25rem":d==="2"?"0.5rem":d==="3"?"0.75rem":d==="4"?"1rem":typeof d=="number"?`${d}px`:d},children:Ue__namespace.default.Children.map(s,p=>Ue__namespace.default.isValidElement(p)?Ue__namespace.default.cloneElement(p,{size:c,variant:l}):p)})}var Yg=Ue.createContext({variant:"brand"});function Jg(e){let{variant:t="default",...r}=e;return jsxRuntime.jsx(Yg.Provider,{value:{variant:t},children:jsxRuntime.jsxs(reactAriaComponents.RadioGroup,{...r,className:ce(e.className,"group flex flex-col gap-2"),children:[jsxRuntime.jsx(ve,{children:e.label}),jsxRuntime.jsx("div",{className:"flex gap-2 group-orientation-horizontal:gap-4 group-orientation-vertical:flex-col",children:e.children}),e.description&&jsxRuntime.jsx(de,{children:e.description}),jsxRuntime.jsx(oe,{children:typeof e.errorMessage=="function"&&e.validationResult?e.errorMessage(e.validationResult):typeof e.errorMessage=="string"?e.errorMessage:null})]})})}function mw({isSelected:e,isInvalid:t,isDisabled:r,variant:o="brand"}){let n=o==="brand"?"focus-visible:outline-action-brand":"focus-visible:outline-action-default",a=[ke(),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 Zg(e){let{variant:t}=Ue.useContext(Yg);return jsxRuntime.jsx(reactAriaComponents.Radio,{...e,className:ce(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:mw({...r,variant:t})}),e.children]})})}var Ao=({isActive:e=false,onPress:t,children:r})=>jsxRuntime.jsx(q,{variant:e?"secondary":"ghost",size:"sm",onPress:t,className:"p-1",children:r});function Sw({initialUrl:e,isOpen:t,onClose:r,onSubmit:o}){let[n,a]=Ue.useState(e);return Ue__namespace.default.useEffect(()=>{a(e);},[e]),jsxRuntime.jsx(St,{isDismissable:true,isOpen:t,onOpenChange:s=>!s&&r(),children:jsxRuntime.jsx(reactAriaComponents.Modal,{isDismissable:true,className:"flex items-center justify-center p-4",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(it,{title:"Insert Link",onClose:r}),jsxRuntime.jsx("div",{className:"p-6",children:jsxRuntime.jsx(nn,{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(q,{variant:"secondary",onPress:r,children:"Cancel"}),jsxRuntime.jsx(q,{type:"submit",children:"Save"})]})]})})})})}function jg({initialContent:e="",onChange:t,className:r,isDisabled:o=false,placeholder:n="Start typing..."}){let[a,i]=Ue.useState(false),s=react.useEditor({immediatelyRender:false,extensions:[hw__default.default.configure({heading:{levels:[1,2]}}),fw__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:m})=>{t?.(m.getHTML());},editorProps:{attributes:{class:tailwindMerge.twMerge("prose prose-sm max-w-none","focus:outline-none","[&>*:first-child]:mt-0 [&>*:last-child]:mb-0")}}}),c=()=>{i(true);},l=m=>{m===""?s?.chain().focus().unsetLink().run():s?.chain().focus().setLink({href:m}).run();};return s?jsxRuntime.jsxs("div",{"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:[s&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsxs(menus.BubbleMenu,{editor:s,shouldShow:({editor:m})=>m.isActive("link")&&!a,className:"flex items-center gap-1 rounded-md border border-border-input bg-background-surface p-1 shadow-md",children:[jsxRuntime.jsxs(q,{variant:"ghost",size:"sm",className:"h-8 px-2",onPress:()=>{let m=s.getAttributes("link").href;window.open(m,"_blank");},children:[jsxRuntime.jsx(k,{name:"ArrowSquareOut",className:"mr-1 h-4 w-4"}),"Open"]}),jsxRuntime.jsxs(q,{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(q,{variant:"ghost",size:"sm",className:"h-8 px-2",onPress:()=>s.chain().focus().unsetLink().run(),children:[jsxRuntime.jsx(k,{name:"X",className:"mr-1 h-4 w-4"}),"Remove"]})]}),jsxRuntime.jsx(Sw,{isOpen:a,onClose:()=>i(false),onSubmit:l,initialUrl:s.getAttributes("link").href||""})]}),jsxRuntime.jsxs("div",{className:"flex items-center gap-1 border-b border-border-input p-2",children:[jsxRuntime.jsx(Ao,{isActive:s.isActive("heading",{level:1}),onPress:()=>s.chain().focus().toggleHeading({level:1}).run(),children:jsxRuntime.jsx("span",{className:"text-xs font-bold",children:"H1"})}),jsxRuntime.jsx(Ao,{isActive:s.isActive("heading",{level:2}),onPress:()=>s.chain().focus().toggleHeading({level:2}).run(),children:jsxRuntime.jsx("span",{className:"text-xs font-bold",children:"H2"})}),jsxRuntime.jsx(Ao,{isActive:s.isActive("bold"),onPress:()=>s.chain().focus().toggleBold().run(),children:jsxRuntime.jsx("span",{className:"text-xs font-bold",children:"B"})}),jsxRuntime.jsx(Ao,{isActive:s.isActive("italic"),onPress:()=>s.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(Ao,{isActive:s.isActive("bulletList"),onPress:()=>s.chain().focus().toggleBulletList().run(),children:jsxRuntime.jsx(k,{name:"ListBullets",className:"h-4 w-4"})}),jsxRuntime.jsx(Ao,{isActive:s.isActive("orderedList"),onPress:()=>s.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(Ao,{isActive:s.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:s,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")}),s.isEmpty&&!o&&jsxRuntime.jsx("div",{className:"pointer-events-none absolute left-4 top-4 text-text-muted",children:n})]})]}):null}var kw={sm:"h-8 text-xs",md:"h-10 text-sm",lg:"h-12 text-base",xl:"h-14 text-lg"},Tw={sm:14,md:16,lg:18,xl:20},Pw=({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(ke(),"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(ke(),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 ys({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",kw[o],n),role:"group","aria-label":s,children:e.map((c,l)=>jsxRuntime.jsxs(reactAriaComponents.ToggleButton,{isSelected:t===c.id,onChange:()=>r(c.id),className:Pw({isSelected:t===c.id,isFirst:l===0,isLast:l===e.length-1,isDisabled:a,variant:i}),isDisabled:a,"aria-label":c.label,children:[c.icon&&jsxRuntime.jsx(k,{name:c.icon,size:Tw[o]}),c.label]},c.id))})}function $g({streetAddress:e,city:t,state:r,postalCode:o,longitude:n,latitude:a,href:i,LinkComponent:s,variant:c="outlined",layout:l="stacked",showMap:m=true,mapHeight:d=200,mapboxAccessToken:p,isLoading:u=false,className:b,contentClassName:f}){let g=[];t&&g.push(t),r&&o?g.push(`${r} ${o}`):r?g.push(r):o&&g.push(o);let h=g.join(", "),y=m&&n!==void 0&&a!==void 0,v=({children:C,className:S})=>i?s?jsxRuntime.jsx(s,{href:i,className:S,children:C}):jsxRuntime.jsx(Me,{href:i,variant:"unstyled",className:tailwindMerge.twMerge("hover:underline",S),asButton:false,children:C}):jsxRuntime.jsx("span",{className:S,children:C});if(u){let C=l==="row";return jsxRuntime.jsxs(ye,{variant:c,className:tailwindMerge.twMerge(C?"flex flex-col md:flex-row":"flex flex-col",b),children:[y&&jsxRuntime.jsx(ye.Media,{aspectRatio:"auto",className:tailwindMerge.twMerge(C&&"md:order-2 md:flex-[2] md:min-w-0"),children:jsxRuntime.jsx(R,{width:"100%",height:d})}),jsxRuntime.jsxs(ye.Content,{className:tailwindMerge.twMerge("space-y-2 px-4 md:px-6",C&&"md:order-1 md:flex-[1] md:flex-shrink-0 md:flex md:flex-col md:justify-center"),children:[jsxRuntime.jsx(R,{width:"100%",height:16}),jsxRuntime.jsx(R,{width:"80%",height:16})]})]})}let x=l==="row";return jsxRuntime.jsxs(ye,{variant:c,className:tailwindMerge.twMerge("group/card relative",i&&"cursor-pointer",x?"flex flex-col md:flex-row":"flex flex-col",b),children:[i&&jsxRuntime.jsx(v,{className:"after:absolute after:inset-0 after:z-10",children:jsxRuntime.jsx("span",{className:"sr-only",children:e})}),y&&jsxRuntime.jsx(ye.Media,{aspectRatio:"auto",className:tailwindMerge.twMerge(x&&"md:order-2 md:flex-[2] md:min-w-0"),children:jsxRuntime.jsx(hn,{height:d,initialViewState:{longitude:n,latitude:a,zoom:14},showMarker:true,mapboxAccessToken:p})}),jsxRuntime.jsx(ye.Content,{className:tailwindMerge.twMerge("px-4 md:px-6",x&&"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",children:e}),h&&jsxRuntime.jsx("span",{className:"text-lg font-normal leading-relaxed text-text-muted",children:h})]})})]})}function eb({site:e,contact:t,LinkComponent:r,variant:o="outlined",layout:n="stacked",showMap:a=true,mapHeight:i=200,mapboxAccessToken:s,showEmail:c=true,showPhone:l=false,isLoading:m=false,className:d,contentClassName:p,fullHeight:u=false}){let b=[];e.city&&b.push(e.city),e.state&&e.postalCode?b.push(`${e.state} ${e.postalCode}`):e.state?b.push(e.state):e.postalCode&&b.push(e.postalCode);let f=b.join(", "),g=a&&e.longitude!==void 0&&e.latitude!==void 0,h=t?`${t.firstName} ${t.lastName}`.trim():"",y=({children:x,href:C,className:S})=>C?r?jsxRuntime.jsx(r,{href:C,className:S,children:x}):jsxRuntime.jsx(Me,{href:C,variant:"unstyled",className:tailwindMerge.twMerge("hover:underline",S),asButton:false,children:x}):jsxRuntime.jsx("span",{className:S,children:x});if(m){let x=n==="row";return jsxRuntime.jsxs(ye,{variant:o,className:tailwindMerge.twMerge(u&&"h-full",x?"flex flex-col md:flex-row":"flex flex-col",d),children:[g&&jsxRuntime.jsx(ye.Media,{aspectRatio:"auto",className:tailwindMerge.twMerge(x&&"md:order-2 md:flex-[2] md:min-w-0",u&&"flex-1"),children:jsxRuntime.jsx(R,{width:"100%",height:u?"100%":i})}),jsxRuntime.jsxs(ye.Content,{className:tailwindMerge.twMerge("space-y-4 px-4 py-4",x&&"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(R,{width:"100%",height:16}),jsxRuntime.jsx(R,{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(R,{width:40,height:40,className:"rounded flex-shrink-0"}),jsxRuntime.jsxs("div",{className:"flex-1 space-y-1",children:[jsxRuntime.jsx(R,{width:"50%",height:14}),jsxRuntime.jsx(R,{width:"100%",height:12})]})]})]})]})]})}let v=n==="row";return jsxRuntime.jsxs(ye,{variant:o,className:tailwindMerge.twMerge("group/card relative",e.href&&"cursor-pointer",u&&"h-full",v?"flex flex-col md:flex-row":"flex flex-col",d),children:[e.href&&jsxRuntime.jsx(y,{href:e.href,className:"after:absolute after:inset-0 after:z-10",children:jsxRuntime.jsx("span",{className:"sr-only",children:e.streetAddress})}),g&&jsxRuntime.jsx(ye.Media,{aspectRatio:"auto",className:tailwindMerge.twMerge(v&&"md:order-2 md:flex-[2] md:min-w-0",u&&"flex-1"),children:jsxRuntime.jsx(hn,{height:u?"100%":i,initialViewState:{longitude:e.longitude,latitude:e.latitude,zoom:14},showMarker:true,mapboxAccessToken:s})}),jsxRuntime.jsxs(ye.Content,{className:tailwindMerge.twMerge("space-y-4 px-4 py-4",v&&"md:order-1 md:flex-[1] md:flex-shrink-0 md:flex md:flex-col md:justify-center",p),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",children:e.streetAddress}),f&&jsxRuntime.jsx("span",{className:"text-lg font-normal leading-relaxed text-text-muted",children:f})]}),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(br,{firstName:t.firstName,lastName:t.lastName,src:t.avatarUrl,size:"md",variant:"user",shape:"square",className:"flex-shrink-0"}),jsxRuntime.jsxs("div",{className:"flex-1 min-w-0",children:[t.href?jsxRuntime.jsx(y,{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:h}):jsxRuntime.jsx("span",{className:"text-sm font-semibold leading-tight text-text-heading block mb-0.5",children:h}),jsxRuntime.jsxs("div",{className:"space-y-0.5",children:[c&&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(Me,{href:`mailto:${t.email}`,variant:"unstyled",className:"text-xs leading-tight truncate text-text-body relative z-20",children:t.email})]}),l&&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(Me,{href:`tel:${t.phone}`,variant:"unstyled",className:"text-xs leading-tight truncate text-text-body relative z-20",children:Wo(t.phone)})]})]})]})]})]})]})]})}function tb({label:e,description:t,tooltip:r,errorMessage:o,size:n="md",className:a,value:i,defaultValue:s=0,onChange:c,min:l=0,max:m=100,step:d=1,disabled:p,showValue:u=true}){let b=typeof i=="number",[f,g]=Ue__namespace.default.useState(s),h=b?i:f,y=Math.min(Math.max(h,l),m),v=Math.max(m-l,1e-5),x=(y-l)/v*100;return jsxRuntime.jsxs("div",{className:ce(a,"group flex w-full flex-col gap-1"),children:[e&&jsxRuntime.jsx(ve,{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:`${x}%`},"aria-hidden":true}),jsxRuntime.jsx("input",{type:"range",min:l,max:m,step:d,value:h,disabled:p,"aria-invalid":!!o,onChange:C=>{let S=Number(C.currentTarget.value);b||g(S),c?.(S);},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",p?"cursor-not-allowed opacity-60":void 0)})]}),u&&jsxRuntime.jsx("div",{className:"min-w-10 text-right text-sm text-text-heading tabular-nums",children:Math.round(y)})]}),t&&jsxRuntime.jsx(de,{className:"mt-2 text-text-muted",children:t}),o&&jsxRuntime.jsx(oe,{className:"mt-1",children:o})]})}var Fw=Ue__namespace.default.createContext({orientation:"horizontal",isResizing:false});function ob(e,t){return e===void 0?t:e}function Ew(e,t){return typeof e=="number"?e:typeof e=="string"&&e.endsWith("%")?Number.parseFloat(e)/100*t:Number.parseFloat(e.toString())}function Cs({asideWidth:e,asideHeight:t,minAsideWidth:r=240,minAsideHeight:o=200,minMainWidth:n=400,minMainHeight:a=300,orientation:i="horizontal",resizable:s=false,onAsideResize:c,onResizeStart:l,onResizeEnd:m,className:d,dividerClassName:p,children:u}){let b=Ue.useRef(null),[f,g]=Ue.useState(false),h=i==="horizontal"?400:300,y=ob(i==="horizontal"?e:t,h),[v,x]=Ue.useState(null),C=Ue.useCallback(A=>{if(!b.current||!f)return;let J=b.current.getBoundingClientRect(),B=i==="horizontal"?J.width:J.height,Z=i==="horizontal"?A.clientX:A.clientY,G=(i==="horizontal"?J.right:J.bottom)-Z,M=B-G,j=i==="horizontal"?r:o,V=i==="horizontal"?n:a;G<j||M<V||(x(G),c?.(G));},[f,i,r,o,n,a,c]),S=Ue.useCallback(()=>{g(false),m?.();},[m]),N=Ue.useCallback(A=>{A.preventDefault(),A.stopPropagation(),g(true),l?.();},[l]);Ue.useEffect(()=>{if(f)return document.addEventListener("mousemove",C),document.addEventListener("mouseup",S),document.body.style.cursor=i==="horizontal"?"col-resize":"row-resize",document.body.style.userSelect="none",()=>{document.removeEventListener("mousemove",C),document.removeEventListener("mouseup",S),document.body.style.cursor="",document.body.style.userSelect="";}},[f,C,S,i]);let T=Ue__namespace.default.Children.toArray(u).find(A=>Ue__namespace.default.isValidElement(A)&&A.type===ab),w=Ue__namespace.default.Children.toArray(u).find(A=>Ue__namespace.default.isValidElement(A)&&A.type===ib),F=v??y,E=typeof F=="number"?`${F}px`:F;return jsxRuntime.jsx(Fw.Provider,{value:{orientation:i,isResizing:f},children:jsxRuntime.jsxs("div",{ref:b,className:tailwindMerge.twMerge("flex w-full h-full",i==="horizontal"?"flex-row":"flex-col",d),children:[jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("overflow-auto flex-1",i==="horizontal"?"h-full":"w-full"),children:T}),s&&jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("relative group flex-shrink-0",i==="horizontal"?"w-2 -mx-1 cursor-col-resize":"h-2 -my-1 cursor-row-resize",p),onMouseDown:N,role:"separator","aria-orientation":i,"aria-label":"Resize divider",tabIndex:0,onKeyDown:A=>{if(!b.current)return;let J=b.current.getBoundingClientRect(),B=i==="horizontal"?J.width:J.height,Z=v??Ew(y,B),Y=20,G=i==="horizontal"?r:o,M=i==="horizontal"?n:a;if(i==="horizontal"){if(A.key==="ArrowLeft"){let j=Math.min(Z+Y,B-M);x(j),c?.(j);}else if(A.key==="ArrowRight"){let j=Math.max(Z-Y,G);x(j),c?.(j);}}else if(A.key==="ArrowUp"){let j=Math.min(Z+Y,B-M);x(j),c?.(j);}else if(A.key==="ArrowDown"){let j=Math.max(Z-Y,G);x(j),c?.(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"]:E},children:w})]})})}function ab({className:e,children:t}){return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("w-full h-full",e),children:t})}function ib({className:e,children:t}){return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("w-full h-full",e),children:t})}Cs.Main=ab;Cs.Aside=ib;var Bw=e=>{let t=wt({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 sb({label:e,description:t,errorMessage:r,size:o="md",tooltip:n,required:a,transparent:i,isInvalid:s,isDisabled:c,isResizable:l=false,className:m,validationResult:d,reserveErrorSpace:p=true,...u}){let{isFocused:b,handleFocus:f,handleBlur:g}=Qt();return jsxRuntime.jsx("div",{className:"group flex flex-col",children:jsxRuntime.jsxs("div",{className:"flex flex-col",children:[e&&jsxRuntime.jsx(ve,{size:o,tooltip:n,isRequired:a,children:e}),jsxRuntime.jsx(ft,{children:jsxRuntime.jsx("textarea",{...u,required:a,onFocus:h=>{u.onFocus&&u.onFocus(h),f(h);},onBlur:h=>{u.onBlur&&u.onBlur(h),g(h);},className:Bw({isInvalid:s,isDisabled:c,isResizable:l,isFocused:b,size:o,transparent:i,className:m}),disabled:c})}),p?jsxRuntime.jsx("div",{className:"mt-1 min-h-[20px]",children:typeof r=="string"?jsxRuntime.jsx(oe,{size:o,children:r}):typeof r=="function"&&d?jsxRuntime.jsx(oe,{size:o,children:r(d)}):t?jsxRuntime.jsx(de,{size:o,children:t}):null}):jsxRuntime.jsx(jsxRuntime.Fragment,{children:typeof r=="string"?jsxRuntime.jsx(oe,{size:o,className:"mt-1",children:r}):typeof r=="function"&&d?jsxRuntime.jsx(oe,{size:o,className:"mt-1",children:r(d)}):t?jsxRuntime.jsx(de,{size:o,className:"mt-1",children:t}):null})]})})}function ub({label:e,description:t,errorMessage:r,size:o="md",tooltip:n,required:a,transparent:i,isInvalid:s,isDisabled:c,isResizable:l=false,className:m,validationResult:d,value:p="",onChange:u,chips:b=[],onChipsChange:f,triggerPattern:g="{{",onTriggerDetected:h,onTriggerDismissed:y,renderChip:v,chipVariant:x="brand",chipSize:C,...S}){let N=Ue.useRef(null),{isFocused:T,handleFocus:w,handleBlur:F}=Qt(),E=C||"sm",A=Ue.useRef(null),J=Ue.useCallback(V=>{let U="",z=I=>{if(I.nodeType===Node.TEXT_NODE){if(!I.parentElement?.closest("[data-chip-id]")){let K=I.textContent||"";U+=K;}}else if(I.nodeType===Node.ELEMENT_NODE){let O=I;if(O.hasAttribute("data-chip-id")){let K=O.getAttribute("data-chip-id");U+=`{{${K}}}`;return}else if(O.tagName==="BR"){U+=`
|
|
81
|
-
`;return}else
|
|
80
|
+
`,backgroundSize:"30px 30px"}})})})}function rs({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 Sg={streets:"streets",satellite:"satellite",neutral:"neutral"};function pa(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 Ng({longitude:e,latitude:t,showPulse:r=true,accuracy:o}){return jsxRuntime.jsx(aN.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 ad=Ue__namespace.default.forwardRef(({initialViewState:e,viewState:t,onViewStateChange:r,scrollEnabled:o=true,className:n,previewMode:a=false,previewModeCta:i,onPreviewModePress:s,mapType:c="streets",layers:l=[],mapboxAccessToken:p,transformRequest:d,isLoading:m=false,onLoad:u,controls:g="default",showUserLocation:f=true,onUserLocationChange:b,children:h,additionalInteractiveLayerIds:y=[],onMapClick:v,showMarker:x=false,markerLocation:C},S)=>{let N=p??ji();if(!N)return jsxRuntime.jsx("div",{className:`relative ${n||""}`,style:{width:"100%",height:"100%"},children:jsxRuntime.jsx(rs,{className:"w-full h-full",message:"Map unavailable"})});let{isDarkTheme:T}=pt(),w=Ue.useRef(null),F=Ue.useRef(null),[E,A]=Ue.useState(false),[J,B]=Ue.useState(false);Ue.useEffect(()=>{es();},[]);let[Z,Y]=Ue.useState(false),G=Ue.useRef(0),[M,j]=Ue.useState(null),[O,U]=Ue.useState(null),z=Ue.useRef(null),[I,H]=ka("interactiveMap.trackingLocation",false),[K,L]=Ue.useState(false);Ue.useEffect(()=>{if(!navigator.geolocation){L(true);return}if(I){if(!navigator.permissions?.query){L(true);return}navigator.permissions.query({name:"geolocation"}).then(V=>{V.state!=="granted"&&H(false),L(true);}).catch(()=>{L(true);});}else L(true);},[]),Ue.useEffect(()=>{let V=setTimeout(()=>{E||B(true);},200);return ()=>clearTimeout(V)},[E]),Ue.useEffect(()=>{if(K){if(!I||a){z.current!==null&&(navigator.geolocation.clearWatch(z.current),z.current=null);return}if(!navigator.geolocation){console.warn("Geolocation is not supported by this browser.");return}return z.current=navigator.geolocation.watchPosition(V=>{let P={latitude:V.coords.latitude,longitude:V.coords.longitude,accuracy:V.coords.accuracy};U(P),b?.(P);},V=>{console.warn("Geolocation error:",V.message),U(null),b?.(null);},{enableHighAccuracy:true,maximumAge:3e4,timeout:3e4}),()=>{z.current!==null&&(navigator.geolocation.clearWatch(z.current),z.current=null);}}},[I,a,b,K]);let W=Ue.useCallback(()=>{A(true),B(false),u?.();},[u]),D=Ue.useCallback(()=>{w.current&&e&&(Y(false),G.current=0,w.current.flyTo({center:[e.longitude||0,e.latitude||0],zoom:e.zoom||0,bearing:e.bearing||0,pitch:e.pitch||0,duration:1e3}));},[e]),$=Ue.useMemo(()=>g===false||g===null?[]:g==="default"||g===void 0?qc:g,[g]),ne=Ue.useCallback(()=>{if(!navigator.geolocation){console.warn("Geolocation is not supported by this browser.");return}H(true),navigator.geolocation.getCurrentPosition(V=>{let{latitude:P,longitude:_}=V.coords;w.current&&w.current.jumpTo({center:[_,P],zoom:15});},V=>{console.warn("Geolocation error:",V.message),V.code===V.PERMISSION_DENIED&&H(false);},{enableHighAccuracy:true,timeout:1e4,maximumAge:0});},[]),Ne=Ue.useMemo(()=>{if(a)return null;let V=$.map(P=>P.type==="navigation"?{...P,onResetZoom:P.onResetZoom||D,onGeolocateClick:P.onGeolocateClick||ne}:P);return Qc(V,{mapRef:w,layers:l,showResetButton:Z})},[$,w,a,l,D,Z,ne]),Re=Ue.useMemo(()=>{let V=[];return l.filter(P=>P.events?.onClick||P.events?.onMouseEnter||P.events?.onMouseLeave||P.tooltip).forEach(P=>{P.kind==="clusteredVector"?(V.push(`${P.id}-clusters`),V.push(`${P.id}-points`),V.push(`${P.id}-selected-point`)):V.push(P.id);}),[...V,...y]},[l,y]),Ae=Ue.useMemo(()=>{let V=new Map;return l.forEach(P=>{P.events&&(V.set(P.id,P.events),P.kind==="clusteredVector"&&(V.set(`${P.id}-clusters`,P.events),V.set(`${P.id}-points`,P.events),V.set(`${P.id}-selected-point`,P.events)));}),V},[l]),kr=Ue.useMemo(()=>{let V=new Map;return l.forEach(P=>{P.tooltip&&(V.set(P.id,P.tooltip),P.kind==="clusteredVector"&&(V.set(`${P.id}-clusters`,P.tooltip),V.set(`${P.id}-points`,P.tooltip),V.set(`${P.id}-selected-point`,P.tooltip)));}),V},[l]),Ut=Ue.useMemo(()=>{let V=new Map;return l.forEach(P=>{P.kind==="clusteredVector"&&(V.set(P.id,P),V.set(`${P.id}-clusters`,P),V.set(`${P.id}-points`,P),V.set(`${P.id}-selected-point`,P));}),V},[l]),Bo=Ue.useMemo(()=>{if(!x)return null;let V=C?.longitude??t?.longitude??e?.longitude,P=C?.latitude??t?.latitude??e?.latitude;return V===void 0||P===void 0?null:{longitude:V,latitude:P}},[x,C,t,e]),X=Ue.useCallback(V=>{if(a)return;let P=V.features?.[0];if(!P||!P.layer)return;let _=P.layer.id,ie=Ae.get(_),re=kr.get(_),le;P.geometry.type==="Point"?le=P.geometry.coordinates:le=[V.lngLat.lng,V.lngLat.lat];let Te={id:P.id??P.properties?.id,lngLat:le,properties:P.properties||{},layerId:_},be=Ut.get(_),zo=P.properties?.cluster===true;if(be&&zo){let et=w.current;if(et){let Pr=et.getZoom(),Rb=Math.min(Pr+3,18);et.flyTo({center:le,zoom:Rb,duration:1e3});}return}if(ie?.onClick&&ie.onClick(Te),re&&re.trigger==="click"){let et;be&&"cluster"in re?re.point&&(et=re.point(Te)):"content"in re&&(et=typeof re.content=="function"?re.content(Te):re.content),et&&j({feature:Te,content:et});}v&&v(V);},[Ae,kr,a,v,Ut,w,Re]),me=Ue.useCallback(V=>{if(a)return;let P=V.features?.[0];if(!P||!P.layer)return;let _=P.layer.id,ie=Ae.get(_),re=kr.get(_),le;P.geometry.type==="Point"?le=P.geometry.coordinates:le=[V.lngLat.lng,V.lngLat.lat];let Te={id:P.id??P.properties?.id,lngLat:le,properties:P.properties||{},layerId:_};if(ie?.onMouseEnter&&ie.onMouseEnter(Te),re&&(re.trigger==="hover"||!re.trigger)){let be;if(Ut.get(_)&&"cluster"in re){let et=P.properties?.cluster===true;if(et&&re.cluster){let Pr=P.properties?.point_count||0;be=re.cluster(Pr,Te);}else !et&&re.point?be=re.point(Te):be=et?`${P.properties?.point_count||0} items`:null;}else "content"in re&&(be=typeof re.content=="function"?re.content(Te):re.content);be&&j({feature:Te,content:be});}w.current&&(w.current.getCanvas().style.cursor="pointer");},[Ae,kr,a,w,Ut]),Me=Ue.useCallback(()=>{if(!a){if(Ae.forEach(V=>{V.onMouseLeave?.();}),M){let V=M.feature.layerId,P=l.find(_=>_.id===V);if(!P){let _=V.replace(/-(?:clusters|points|selected-point|cluster-shadows|points-shadow|cluster-count)$/,"");P=l.find(ie=>ie.id===_);}P?.tooltip&&(P.tooltip.trigger||"hover")==="hover"&&j(null);}w.current&&(w.current.getCanvas().style.cursor="");}},[Ae,a,w,M,l]),we=Ue.useCallback((V,P)=>{for(let _ of l)if(_.tooltip&&!(P&&_.id!==P)){if(_.kind==="geojson"){if(typeof _.data=="string")continue;let ie=_.data,le=(ie.type==="FeatureCollection"?ie.features:[ie]).find(Te=>Te.id===V);if(le&&le.geometry.type==="Point")return {id:le.id,lngLat:le.geometry.coordinates,properties:le.properties||{},layerId:_.id}}else if(_.kind==="customPins"){let ie=_.data.find(re=>re.id===V||re._id===V||re.key===V);if(ie)return {id:V,lngLat:_.getPosition(ie),properties:ie,layerId:_.id}}}return null},[l]);Ue.useImperativeHandle(S,()=>({showTooltip:(V,P)=>{let _=we(V,P);if(!_)return;let ie=l.find(re=>re.id===_.layerId);if(ie?.tooltip&&"content"in ie.tooltip){let re=typeof ie.tooltip.content=="function"?ie.tooltip.content(_):ie.tooltip.content;j({feature:_,content:re});}},hideTooltip:()=>{j(null);},getMap:()=>w.current}),[we,l]);let Ce=(V,P)=>d?d(V,P):{url:V},Ke=m||J;return jsxRuntime.jsx("div",{ref:F,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(aN__default.default,{ref:w,initialViewState:e,...t&&t,style:{width:"100%",height:"100%"},mapStyle:pa(c,T),mapboxAccessToken:N,transformRequest:Ce,onLoad:W,onMove:a?void 0:V=>{if(V.originalEvent&&E){let P=V.originalEvent.type,_=Math.abs((V.viewState.latitude??0)-(e?.latitude??0)),ie=Math.abs((V.viewState.longitude??0)-(e?.longitude??0)),re=Math.abs((V.viewState.zoom??0)-(e?.zoom??0));e&&(_>1e-4||ie>1e-4||re>.1)&&(P==="mousemove"||P==="touchmove"||P==="pointermove"?Y(true):(P==="wheel"||P==="mousewheel")&&(G.current+=1,G.current>=3&&Y(true)));}r?.(V.viewState);},onClick:a?void 0:X,onMouseEnter:a?void 0:me,onMouseLeave:a?void 0:Me,interactiveLayerIds:a?[]:Re,scrollZoom:a?false:o,dragPan:!a,dragRotate:!a,doubleClickZoom:!a,interactive:!a,children:[Ne,ua(l,c),h,Bo&&jsxRuntime.jsx(aN.Marker,{longitude:Bo.longitude,latitude:Bo.latitude,anchor:"bottom",children:jsxRuntime.jsx(k,{name:"MapPin",size:36,className:"text-map-marker-default",weight:"fill"})}),f&&O&&jsxRuntime.jsx(Ng,{longitude:O.longitude,latitude:O.latitude,accuracy:O.accuracy}),M&&jsxRuntime.jsx(aN.Popup,{longitude:M.feature.lngLat[0],latitude:M.feature.lngLat[1],offset:15,closeButton:false,closeOnClick:false,className:"map-tooltip",maxWidth:"none",children:M.content})]},`map-${c}`),Ke&&jsxRuntime.jsx(ts,{}),a&&i&&jsxRuntime.jsx("div",{className:"absolute bottom-8 right-8 z-10",children:i})]})})});ad.displayName="InteractiveMap";function hn({width:e="100%",height:t="100%",initialViewState:r={longitude:-122.4194,latitude:37.7749,zoom:14},isLoading:o=false,mapType:n="streets",layers:a=[],mapboxAccessToken:i,showMarker:s=true,showAttribution:c=false,onLoad:l,className:p}){let d=i??ji(),{isDarkTheme:m}=pt(),[u,g]=Ue.useState(false),[f,b]=Ue.useState(false),h=Ue.useRef(null),y=Ue.useRef(null);Ue.useEffect(()=>{es();},[]);let v={width:typeof e=="number"?`${e}px`:e,height:typeof t=="number"?`${t}px`:t};Ue.useEffect(()=>{let S=setTimeout(()=>{u||b(true);},200);return ()=>clearTimeout(S)},[u]);let x=Ue.useCallback(()=>{g(true),b(false),l?.();},[l]);Ue.useEffect(()=>{if(!y.current)return;let S=new ResizeObserver(()=>{h.current&&h.current.resize();});return S.observe(y.current),()=>{S.disconnect();}},[]);let C=o||f;return d?jsxRuntime.jsxs("div",{ref:y,style:v,className:`relative ${p||""}`,children:[jsxRuntime.jsxs(aN__default.default,{ref:h,mapboxAccessToken:d,initialViewState:r,style:{width:"100%",height:"100%"},mapStyle:pa(n,m),onLoad:x,scrollZoom:false,dragPan:false,dragRotate:false,doubleClickZoom:false,touchZoomRotate:false,interactive:false,attributionControl:c,children:[ua(a,n),s&&r.longitude!==void 0&&r.latitude!==void 0&&jsxRuntime.jsx(aN.Marker,{longitude:r.longitude,latitude:r.latitude,anchor:"bottom",children:jsxRuntime.jsx(k,{name:"MapPin",size:36,className:"text-map-marker-default",weight:"fill"})})]}),C&&jsxRuntime.jsx(ts,{})]}):jsxRuntime.jsx(rs,{style:v,className:p})}var fN={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 Dg({label:e,size:t="md",variant:r="default",showWarningIndicator:o=true,warningThreshold:n=80,className:a,...i}){let s=fN[t];return jsxRuntime.jsx(reactAriaComponents.Meter,{...i,className:ce(a,"flex flex-col gap-1"),children:({percentage:c,valueText:l})=>{let p=o&&c>=n,d=r==="default"?gN(c):r;return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsxs("div",{className:"flex justify-between gap-2",children:[e&&jsxRuntime.jsx(ve,{children:e}),jsxRuntime.jsxs("span",{className:tailwindMerge.twMerge(s.text,p?"text-feedback-error-text":"text-text-muted"),children:[p&&jsxRuntime.jsx(lucideReact.AlertTriangle,{"aria-label":"Warning: High value",className:tailwindMerge.twMerge("inline-block align-text-bottom mr-1",s.icon)}),l]})]}),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]",bN(d)),style:{width:`${Math.min(100,Math.max(0,c))}%`},role:"presentation","aria-hidden":"true"})})]})}})}function gN(e){return e<50?"success":e<70?"info":e<90?"warning":"error"}function bN(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 PN={success:{container:"bg-feedback-success-background border-feedback-success-border text-feedback-success-text",icon:lucideReact.CheckCircle},error:{container:"bg-feedback-error-background border-feedback-error-border text-feedback-error-text",icon:lucideReact.XCircle},warning:{container:"bg-feedback-warning-background border-feedback-warning-border text-feedback-warning-text",icon:lucideReact.AlertCircle},info:{container:"bg-feedback-info-background border-feedback-info-border text-feedback-info-text",icon:lucideReact.Info}};function ls({id:e,message:t,variant:r="info",duration:o=5e3,dismissible:n=true,onDismiss:a,className:i}){let{container:s,icon:c}=PN[r];return Ue.useEffect(()=>{if(o>0){let l=setTimeout(()=>{a?.();},o);return ()=>clearTimeout(l)}},[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-start gap-3 rounded-lg border p-4 shadow-lg",s,i),children:[jsxRuntime.jsx(c,{className:"h-5 w-5 flex-shrink-0"}),jsxRuntime.jsx("p",{className:"flex-1 text-sm font-medium",children:t}),n&&jsxRuntime.jsx("button",{onClick:a,className:"flex-shrink-0 rounded-md p-1 transition-colors hover:bg-black/10","aria-label":"Dismiss notification",children:jsxRuntime.jsx(lucideReact.X,{className:"h-4 w-4"})})]})}var FN={"top-left":"top-4 left-4 items-start","top-center":"top-4 left-1/2 -translate-x-1/2 items-center","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-center","bottom-right":"bottom-4 right-4 items-end"};function cs({notices:e,onDismiss:t,position:r="top-right",className:o}){let[n,a]=Ue.useState(false);if(Ue.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",FN[r],o),"aria-live":"polite","aria-atomic":"true",children:jsxRuntime.jsx(framerMotion.AnimatePresence,{mode:"sync",children:e.map(s=>jsxRuntime.jsx(ls,{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 Rg=Ue.createContext(void 0);function Ag({children:e,position:t="top-right",maxNotices:r=5,defaultDuration:o=5e3,defaultDismissible:n=true}){let[a,i]=Ue.useState([]),s=Ue.useCallback((d,m)=>{let u=`notice-${Date.now()}-${Math.random()}`,g={id:u,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}),u},[r,o,n]),c=Ue.useCallback(d=>{i(m=>m.filter(u=>u.id!==d));},[]),l=Ue.useCallback(()=>{i([]);},[]),p={notices:a,addNotice:s,removeNotice:c,clearNotices:l};return jsxRuntime.jsxs(Rg.Provider,{value:p,children:[e,jsxRuntime.jsx(cs,{notices:a,onDismiss:c,position:t})]})}function Mg(){let e=Ue.useContext(Rg);if(!e)throw new Error("useNoticeContext must be used within a NoticeProvider");return e}function Lg(){let{addNotice:e,removeNotice:t,clearNotices:r}=Mg(),o=Ue.useCallback((c,l)=>e(c,l),[e]),n=Ue.useCallback((c,l)=>e(c,{...l,variant:"success"}),[e]),a=Ue.useCallback((c,l)=>e(c,{...l,variant:"error"}),[e]),i=Ue.useCallback((c,l)=>e(c,{...l,variant:"warning"}),[e]),s=Ue.useCallback((c,l)=>e(c,{...l,variant:"info"}),[e]);return {show:o,success:n,error:a,warning:i,info:s,dismiss:t,clear:r}}var HN={plain:"",contained:"bg-background-surface rounded-lg border border-border-default p-6",bordered:"border-y border-border-default py-6"},WN={none:"",sm:"my-4",md:"my-6 md:my-8",lg:"my-8 md:my-12"};function yn({id:e,title:t,description:r,actions:o,variant:n="plain",spacing:a="none",withDivider:i=false,headingAs:s="h2",className:c,children:l}){let p=Ue__namespace.default.useId(),d=e?`${e}-heading`:p,m=t||r||o;return jsxRuntime.jsxs("section",{id:e,className:tailwindMerge.twMerge(WN[a],HN[n],c),"aria-labelledby":t?d:void 0,children:[m&&jsxRuntime.jsxs("header",{id:d,className:tailwindMerge.twMerge("flex flex-col sm:flex-row sm:items-start sm:justify-between gap-4",i&&"border-b border-border-default pb-4 mb-6",!i&&l&&"mb-6"),children:[jsxRuntime.jsxs("div",{className:"min-w-0 flex-1",children:[t&&jsxRuntime.jsx(mt,{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})]}),l&&jsxRuntime.jsx("div",{className:"",children:l})]})}yn.displayName="Section";function ms({sections:e,activeSection:t,onSectionChange:r,orientation:o="responsive",className:n,scrollBehavior:a="smooth",stickyTop:i="1.5rem",sectionIdPrefix:s="section-",filterSection:c}){let l=Ue__namespace.useRef(null),p=Ue__namespace.useRef(null),[d,m]=Ue__namespace.useState(e[0]?.id||null),u=t??d;Ue__namespace.useEffect(()=>{if(t!==void 0&&r)return;let y=S=>{if(!S)return false;let N=window.getComputedStyle(S);return N.display!=="none"&&N.visibility!=="hidden"&&N.opacity!=="0"},v=()=>{let S=y(l.current),N=y(p.current);if(!S&&!N)return null;let T=new IntersectionObserver(w=>{w.forEach(F=>{if(F.isIntersecting){let E=F.target.id.replace(s,"");r?r(E):m(E);}});},{rootMargin:"-20% 0px -70% 0px",threshold:0});return e.forEach(w=>{let F=document.getElementById(`${s}${w.id}`);F&&T.observe(F);}),T},x=v(),C=()=>{x&&x.disconnect(),x=v();};return window.addEventListener("resize",C),()=>{x&&x.disconnect(),window.removeEventListener("resize",C);}},[e,s,t,r,o]);let g=Ue__namespace.useMemo(()=>c?e.filter(c):e,[e,c]),f=Ue__namespace.useCallback((y,v)=>{y.preventDefault();let x=document.getElementById(`${s}${v}`);x&&(x.scrollIntoView({behavior:a,block:"start"}),window.history.pushState&&window.history.pushState(null,"",`#${s}${v}`),r?r(v):m(v));},[s,a,r]);if(g.length===0)return null;let b=o==="vertical"?"":o==="horizontal"?"hidden":"hidden lg:block",h=o==="horizontal"?"":o==="vertical"?"hidden":"lg:hidden";return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("nav",{ref:l,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(y=>{let v=u===y.id;return jsxRuntime.jsx("a",{href:`#${s}${y.id}`,onClick:x=>f(x,y.id),className:tailwindMerge.twMerge("block w-full text-left px-3 py-2 rounded-md text-sm transition-colors no-underline",v?"bg-background-muted text-text-body font-medium":"text-text-muted hover:text-text-body hover:bg-background-hover"),"aria-current":v?"page":void 0,children:jsxRuntime.jsxs("span",{className:"flex items-center justify-between gap-2",children:[jsxRuntime.jsx("span",{children:y.label}),y.count!==void 0&&jsxRuntime.jsx("span",{className:"text-xs tabular-nums text-text-muted",children:y.count})]})},y.id)})})}),jsxRuntime.jsx("nav",{ref:p,className:tailwindMerge.twMerge(h,"overflow-x-auto 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(y=>{let v=u===y.id;return jsxRuntime.jsx("a",{href:`#${s}${y.id}`,onClick:x=>f(x,y.id),className:tailwindMerge.twMerge("inline-block px-4 py-2 rounded-md text-sm whitespace-nowrap transition-colors no-underline",v?"bg-background-muted text-text-body font-medium":"text-text-muted hover:text-text-body hover:bg-background-hover"),"aria-current":v?"page":void 0,children:jsxRuntime.jsxs("span",{className:"flex items-center gap-2",children:[jsxRuntime.jsx("span",{children:y.label}),y.count!==void 0&&jsxRuntime.jsxs("span",{className:"text-xs tabular-nums text-text-muted",children:["(",y.count,")"]})]})},y.id)})})})]})}var fs=Ue__namespace.createContext({variant:"default"});function ZN({orientation:e,className:t=""}){return `flex flex-col w-full ${{horizontal:"",vertical:"flex-row"}[e]||""} ${t}`.trim()}function bs({variant:e="default",...t}){return jsxRuntime.jsx(fs.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)=>ZN({...o,className:r}))})})})}function qN({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",vertical:"flex-col items-start"},a=t?"sticky top-0 bg-background-surface z-10":"";return `${o} ${n[e]||""} ${a} ${r}`.trim()}function xs({variant:e,sticky:t=false,...r}){let o=Ue__namespace.useContext(fs),n=e??o.variant;return jsxRuntime.jsx(fs.Provider,{value:{variant:n},children:jsxRuntime.jsx(reactAriaComponents.TabList,{...r,className:reactAriaComponents.composeRenderProps(r.className,(a,i)=>qN({...i,sticky:t,className:a||""}))})})}function XN({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",a=`${ke()} ${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 hs(e){let{variant:t}=Ue__namespace.useContext(fs);return jsxRuntime.jsx(reactAriaComponents.Tab,{...e,"data-testid":e.id?`tab-${e.id}`:void 0,className:reactAriaComponents.composeRenderProps(e.className,(r,o)=>XN({...o,className:r,isSelected:o.isSelected,variant:t}))})}function jN({className:e=""}){let t="block w-full mt-4 text-text-body",r=ke();return `${t} ${r} ${e}`.trim()}function Eg(e){return jsxRuntime.jsx(reactAriaComponents.TabPanel,{...e,className:reactAriaComponents.composeRenderProps(e.className,(t,r)=>jN({...r,className:t||""}))})}function Do({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 Ig({title:e,subtitle:t,breadcrumbs:r,breadcrumbsNode:o,media:n,actions:a,metadata:i,headingAs:s,sticky:c,stickyTop:l="0",zIndex:p=10,isLoading:d=false,className:m}){let u=c?"sticky bg-background-body":"",g=c?{top:l,zIndex:p}:{};return d?jsxRuntime.jsxs("header",{className:tailwindMerge.twMerge("mb-8 md:mb-12",u,m),style:g,"aria-labelledby":"page-title",children:[o||r?.length?jsxRuntime.jsx("div",{className:"mb-2 md:mb-4",children:jsxRuntime.jsx(R,{className:"h-4 w-32"})}):null,jsxRuntime.jsxs("div",{className:"flex flex-col md:flex-row md:items-center 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(R,{className:"h-8 w-64"})}),t?jsxRuntime.jsx(R,{className:"mt-2 h-5 w-48"}):null,i?jsxRuntime.jsx(R,{className:"mt-2 h-4 w-40"}):null,a?.length?jsxRuntime.jsx("div",{className:"mt-6 flex flex-wrap items-center gap-2 md:hidden",children:a.map((f,b)=>jsxRuntime.jsx(R,{className:"h-9 w-24"},b))}):null]}),a?.length?jsxRuntime.jsx("div",{className:"hidden md:flex md:items-center gap-2 shrink-0",children:a.map((f,b)=>jsxRuntime.jsx(R,{className:"h-9 w-24"},b))}):null]}),n?jsxRuntime.jsx("div",{className:"mt-4 md:mt-6",children:jsxRuntime.jsx(R,{className:"h-64 w-full"})}):null]}):jsxRuntime.jsxs("header",{className:tailwindMerge.twMerge("mb-8 md:mb-12",u,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(ii,{children:r.map((f,b)=>jsxRuntime.jsx(si,{...f.href?{href:f.href}:{},children:f.label},`${f.label}-${b}`))})}):null,jsxRuntime.jsxs("div",{className:"flex flex-col md:flex-row md:items-center 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(mt,{tag:s||"h1",size:"xl",children:e})}),t?jsxRuntime.jsx("p",{className:"mt-2 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-wrap items-center gap-2 md:hidden",children:a.map((f,b)=>jsxRuntime.jsx(Ue__namespace.default.Fragment,{children:f},b))}):null]}),a?.length?jsxRuntime.jsx("div",{className:"hidden md:flex md:items-center gap-2 shrink-0",children:a.map((f,b)=>jsxRuntime.jsx(Ue__namespace.default.Fragment,{children:f},b))}):null]}),n?jsxRuntime.jsx("div",{className:"mt-4 md:mt-6",children:n}):null]})}function Bg({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",n),children:jsxRuntime.jsxs(bs,{selectedKey:t,defaultSelectedKey:r||e[0]?.id,onSelectionChange:i,children:[jsxRuntime.jsx(xs,{children:e.map(s=>jsxRuntime.jsx(hs,{id:s.id,isDisabled:s.disabled,children:s.label},s.id))}),a]})})}function zg({children:e,className:t,withSectionNav:r,navWidth:o="240px",gap:n="3rem",activeSection:a,onSectionChange:i,scrollBehavior:s,sectionIdPrefix:c="section-"}){return r?jsxRuntime.jsx(QN,{position:r,navWidth:o,gap:n,activeSection:a,onSectionChange:i,scrollBehavior:s,sectionIdPrefix:c,className:t,children:e}):jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("w-full space-y-8 md:space-y-12",t),children:e})}function Vg({children:e,sticky:t=true,className:r}){return jsxRuntime.jsx("aside",{className:tailwindMerge.twMerge(t?"lg:sticky lg:top-20":"",r),children:e})}function QN({activeSection:e,onSectionChange:t,position:r,navWidth:o,gap:n,children:a,className:i,scrollBehavior:s,sectionIdPrefix:c}){let l=Ue__namespace.default.useMemo(()=>{let g=[];return Ue__namespace.default.Children.forEach(a,f=>{if(Ue__namespace.default.isValidElement(f)&&(f.type===yn||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]),p=Ue__namespace.default.useMemo(()=>{let g=Ue__namespace.default.Children.map(a,f=>{if(Ue__namespace.default.isValidElement(f)&&(f.type===yn||typeof f.type=="object"&&f.type?.displayName==="Section"||typeof f.type=="function"&&f.type?.displayName==="Section")){let b=f.props;if(b.id)return Ue__namespace.default.cloneElement(f,{...b,id:`${c}${b.id}`})}return f});return jsxRuntime.jsx("div",{className:"space-y-8 md:space-y-12",children:g})},[a,c]),d=(g,f)=>jsxRuntime.jsx(ms,{sections:l,activeSection:e,onSectionChange:t,orientation:g,scrollBehavior:s,sectionIdPrefix:c,className:f});if(r==="above")return jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("space-y-3",i),children:[jsxRuntime.jsx("div",{className:"sticky top-0 z-10 bg-background-body",children:d("horizontal")}),p]});let m=r==="left"?"var(--nav-width) 1fr":"1fr var(--nav-width)",u=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 py-3 mt-4 bg-background-body",children:d("horizontal")}),jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("lg:grid",i),style:{gridTemplateColumns:m,gap:n,"--nav-width":o},children:[r==="left"&&jsxRuntime.jsx("nav",{className:u,children:d("vertical")}),p,r==="right"&&jsxRuntime.jsx("nav",{className:u,children:d("vertical")})]})]})}function Og({children:e,className:t}){return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("flex-1 overflow-auto min-h-0",t),children:e})}Do.Header=Ig;Do.Tabs=Bg;Do.Content=zg;Do.Aside=Vg;Do.ScrollableContent=Og;function _N(e){return typeof e=="object"&&e!==null&&"features"in e&&Array.isArray(e.features)&&"type"in e&&typeof e.type=="string"}var ew=process.env.NEXT_PUBLIC_MAPBOX_ACCESS_TOKEN||"";function Gg({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:c,isRequired:l,isDisabled:p,showErrors:d=true,autoFocus:m=false,onSelect:u,searchTypes:g=["place","address"],defaultFilter:f,validationResult:b,countryRestrictions:h,proximity:y="ip"}){let v=Ue.useRef(new WeakMap),x=Ue.useRef([]),C={requestType:"REST",method:"GET",url:"https://api.mapbox.com/geocoding/v5/mapbox.places/{q}.json",extraParams:{access_token:ew,types:g.join(","),limit:"5",...h?.length?{country:h.join(",").toLowerCase()}:{},...y?{proximity:y==="ip"?"ip":y.join(",")}:{}},shouldLoad:T=>T.length>0,transformResponse:T=>{if(!_N(T))return [];let w=T.features.map(F=>{let E={id:F.id,name:F.place_name};return v.current.set(E,{type:F.place_type[0],center:F.center}),E});return w.length>0&&(x.current=w),w}},S=T=>{let w=v.current.get(T),F=T.name.split(", "),E=F[0],A=F.slice(1).join(", ");return jsxRuntime.jsxs("div",{className:"flex items-center gap-3 py-0.5",children:[jsxRuntime.jsx(k,{name:w?.type==="address"?"MapPin":w?.type==="place"?"Buildings":w?.type==="region"?"MapPinArea":w?.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:E}),A&&jsxRuntime.jsx("span",{className:"truncate text-sm text-text-muted",children:A})]})]})},N=T=>T?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(oi,{"data-testid":"autocomplete","data-config":JSON.stringify({types:g.join(","),country:h?.join(",")?.toLowerCase(),proximity:y==="ip"?"ip":y?.join(",")}),label:e,selectedKey:t,defaultSelectedKey:r,onSelectionChange:T=>{if(o?.(T),T){let F=x.current.find(E=>E.id===T);if(F){let E=v.current.get(F);E&&u({id:F.id,place_name:F.name,place_type:[E.type],center:E.center});}}},requestConfig:C,placeholder:n,errorMessage:a,description:i,size:s,tooltip:c,isRequired:l,isDisabled:p,showErrors:d,autoFocus:m,renderItem:S,renderLeftIcon:N,defaultFilter:f,validationResult:b})}function Kg({label:e,rightLabel:t,progressWidth:r=64,hideLabels:o=false,...n}){return jsxRuntime.jsx(reactAriaComponents.ProgressBar,{...n,className:ce(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 iw(e="2"){return {1:"p-2 text-xs",2:"p-3 text-sm",3:"p-4 text-base"}[e]}function sw(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 lw(){return "opacity-50 cursor-not-allowed"}function md({value:e,isDisabled:t,className:r,children:o,size:n="2",variant:a="default"}){return jsxRuntime.jsx(reactAriaComponents.Radio,{value:e,isDisabled:t,className:ce(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:c})=>jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("flex items-center justify-center w-full h-full transition-all duration-200 rounded-lg border-2 bg-background-surface",iw(n),sw(a,s),(t||c)&&lw(),r),children:o})})}function fd({value:e,defaultValue:t,onChange:r,isDisabled:o,isReadOnly:n,isRequired:a,className:i,children:s,size:c="2",variant:l="default",columns:p="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:ce(i,"grid"),style:{gridTemplateColumns:/^\d+$/.test(String(p))?`repeat(${p}, minmax(0, 1fr))`:p,gap:d==="1"?"0.25rem":d==="2"?"0.5rem":d==="3"?"0.75rem":d==="4"?"1rem":typeof d=="number"?`${d}px`:d},children:Ue__namespace.default.Children.map(s,m=>Ue__namespace.default.isValidElement(m)?Ue__namespace.default.cloneElement(m,{size:c,variant:l}):m)})}var Yg=Ue.createContext({variant:"brand"});function Jg(e){let{variant:t="default",...r}=e;return jsxRuntime.jsx(Yg.Provider,{value:{variant:t},children:jsxRuntime.jsxs(reactAriaComponents.RadioGroup,{...r,className:ce(e.className,"group flex flex-col gap-2"),children:[jsxRuntime.jsx(ve,{children:e.label}),jsxRuntime.jsx("div",{className:"flex gap-2 group-orientation-horizontal:gap-4 group-orientation-vertical:flex-col",children:e.children}),e.description&&jsxRuntime.jsx(de,{children:e.description}),jsxRuntime.jsx(oe,{children:typeof e.errorMessage=="function"&&e.validationResult?e.errorMessage(e.validationResult):typeof e.errorMessage=="string"?e.errorMessage:null})]})})}function mw({isSelected:e,isInvalid:t,isDisabled:r,variant:o="brand"}){let n=o==="brand"?"focus-visible:outline-action-brand":"focus-visible:outline-action-default",a=[ke(),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 Zg(e){let{variant:t}=Ue.useContext(Yg);return jsxRuntime.jsx(reactAriaComponents.Radio,{...e,className:ce(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:mw({...r,variant:t})}),e.children]})})}var Ao=({isActive:e=false,onPress:t,children:r})=>jsxRuntime.jsx(q,{variant:e?"secondary":"ghost",size:"sm",onPress:t,className:"p-1",children:r});function Nw({initialUrl:e,isOpen:t,onClose:r,onSubmit:o}){let[n,a]=Ue.useState(e);return Ue__namespace.default.useEffect(()=>{a(e);},[e]),jsxRuntime.jsx(St,{isDismissable:true,isOpen:t,onOpenChange:s=>!s&&r(),children:jsxRuntime.jsx(reactAriaComponents.Modal,{isDismissable:true,className:"flex items-center justify-center p-4",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(it,{title:"Insert Link",onClose:r}),jsxRuntime.jsx("div",{className:"p-6",children:jsxRuntime.jsx(nn,{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(q,{variant:"secondary",onPress:r,children:"Cancel"}),jsxRuntime.jsx(q,{type:"submit",children:"Save"})]})]})})})})}function jg({initialContent:e="",onChange:t,className:r,isDisabled:o=false,placeholder:n="Start typing..."}){let[a,i]=Ue.useState(false),s=react.useEditor({immediatelyRender:false,extensions:[yw__default.default.configure({heading:{levels:[1,2]}}),gw__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:p})=>{t?.(p.getHTML());},editorProps:{attributes:{class:tailwindMerge.twMerge("prose prose-sm max-w-none","focus:outline-none","[&>*:first-child]:mt-0 [&>*:last-child]:mb-0")}}}),c=()=>{i(true);},l=p=>{p===""?s?.chain().focus().unsetLink().run():s?.chain().focus().setLink({href:p}).run();};return s?jsxRuntime.jsxs("div",{"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:[s&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsxs(menus.BubbleMenu,{editor:s,shouldShow:({editor:p})=>p.isActive("link")&&!a,className:"flex items-center gap-1 rounded-md border border-border-input bg-background-surface p-1 shadow-md",children:[jsxRuntime.jsxs(q,{variant:"ghost",size:"sm",className:"h-8 px-2",onPress:()=>{let p=s.getAttributes("link").href;window.open(p,"_blank");},children:[jsxRuntime.jsx(k,{name:"ArrowSquareOut",className:"mr-1 h-4 w-4"}),"Open"]}),jsxRuntime.jsxs(q,{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(q,{variant:"ghost",size:"sm",className:"h-8 px-2",onPress:()=>s.chain().focus().unsetLink().run(),children:[jsxRuntime.jsx(k,{name:"X",className:"mr-1 h-4 w-4"}),"Remove"]})]}),jsxRuntime.jsx(Nw,{isOpen:a,onClose:()=>i(false),onSubmit:l,initialUrl:s.getAttributes("link").href||""})]}),jsxRuntime.jsxs("div",{className:"flex items-center gap-1 border-b border-border-input p-2",children:[jsxRuntime.jsx(Ao,{isActive:s.isActive("heading",{level:1}),onPress:()=>s.chain().focus().toggleHeading({level:1}).run(),children:jsxRuntime.jsx("span",{className:"text-xs font-bold",children:"H1"})}),jsxRuntime.jsx(Ao,{isActive:s.isActive("heading",{level:2}),onPress:()=>s.chain().focus().toggleHeading({level:2}).run(),children:jsxRuntime.jsx("span",{className:"text-xs font-bold",children:"H2"})}),jsxRuntime.jsx(Ao,{isActive:s.isActive("bold"),onPress:()=>s.chain().focus().toggleBold().run(),children:jsxRuntime.jsx("span",{className:"text-xs font-bold",children:"B"})}),jsxRuntime.jsx(Ao,{isActive:s.isActive("italic"),onPress:()=>s.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(Ao,{isActive:s.isActive("bulletList"),onPress:()=>s.chain().focus().toggleBulletList().run(),children:jsxRuntime.jsx(k,{name:"ListBullets",className:"h-4 w-4"})}),jsxRuntime.jsx(Ao,{isActive:s.isActive("orderedList"),onPress:()=>s.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(Ao,{isActive:s.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:s,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")}),s.isEmpty&&!o&&jsxRuntime.jsx("div",{className:"pointer-events-none absolute left-4 top-4 text-text-muted",children:n})]})]}):null}var Pw={sm:"h-8 text-xs",md:"h-10 text-sm",lg:"h-12 text-base",xl:"h-14 text-lg"},Tw={sm:14,md:16,lg:18,xl:20},Dw=({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(ke(),"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(ke(),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 ys({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",Pw[o],n),role:"group","aria-label":s,children:e.map((c,l)=>jsxRuntime.jsxs(reactAriaComponents.ToggleButton,{isSelected:t===c.id,onChange:()=>r(c.id),className:Dw({isSelected:t===c.id,isFirst:l===0,isLast:l===e.length-1,isDisabled:a,variant:i}),isDisabled:a,"aria-label":c.label,children:[c.icon&&jsxRuntime.jsx(k,{name:c.icon,size:Tw[o]}),c.label]},c.id))})}function $g({streetAddress:e,city:t,state:r,postalCode:o,longitude:n,latitude:a,href:i,LinkComponent:s,variant:c="outlined",layout:l="stacked",showMap:p=true,mapHeight:d=200,mapboxAccessToken:m,isLoading:u=false,className:g,contentClassName:f}){let b=[];t&&b.push(t),r&&o?b.push(`${r} ${o}`):r?b.push(r):o&&b.push(o);let h=b.join(", "),y=p&&n!==void 0&&a!==void 0,v=({children:C,className:S})=>i?s?jsxRuntime.jsx(s,{href:i,className:S,children:C}):jsxRuntime.jsx(Le,{href:i,variant:"unstyled",className:tailwindMerge.twMerge("hover:underline",S),asButton:false,children:C}):jsxRuntime.jsx("span",{className:S,children:C});if(u){let C=l==="row";return jsxRuntime.jsxs(ye,{variant:c,className:tailwindMerge.twMerge(C?"flex flex-col md:flex-row":"flex flex-col",g),children:[y&&jsxRuntime.jsx(ye.Media,{aspectRatio:"auto",className:tailwindMerge.twMerge(C&&"md:order-2 md:flex-[2] md:min-w-0"),children:jsxRuntime.jsx(R,{width:"100%",height:d})}),jsxRuntime.jsxs(ye.Content,{className:tailwindMerge.twMerge("space-y-2 px-4 md:px-6",C&&"md:order-1 md:flex-[1] md:flex-shrink-0 md:flex md:flex-col md:justify-center"),children:[jsxRuntime.jsx(R,{width:"100%",height:16}),jsxRuntime.jsx(R,{width:"80%",height:16})]})]})}let x=l==="row";return jsxRuntime.jsxs(ye,{variant:c,className:tailwindMerge.twMerge("group/card relative",i&&"cursor-pointer",x?"flex flex-col md:flex-row":"flex flex-col",g),children:[i&&jsxRuntime.jsx(v,{className:"after:absolute after:inset-0 after:z-10",children:jsxRuntime.jsx("span",{className:"sr-only",children:e})}),y&&jsxRuntime.jsx(ye.Media,{aspectRatio:"auto",className:tailwindMerge.twMerge(x&&"md:order-2 md:flex-[2] md:min-w-0"),children:jsxRuntime.jsx(hn,{height:d,initialViewState:{longitude:n,latitude:a,zoom:14},showMarker:true,mapboxAccessToken:m})}),jsxRuntime.jsx(ye.Content,{className:tailwindMerge.twMerge("px-4 md:px-6",x&&"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",children:e}),h&&jsxRuntime.jsx("span",{className:"text-lg font-normal leading-relaxed text-text-muted",children:h})]})})]})}function eb({site:e,contact:t,LinkComponent:r,variant:o="outlined",layout:n="stacked",showMap:a=true,mapHeight:i=200,mapboxAccessToken:s,showEmail:c=true,showPhone:l=false,isLoading:p=false,className:d,contentClassName:m,fullHeight:u=false}){let g=[];e.city&&g.push(e.city),e.state&&e.postalCode?g.push(`${e.state} ${e.postalCode}`):e.state?g.push(e.state):e.postalCode&&g.push(e.postalCode);let f=g.join(", "),b=a&&e.longitude!==void 0&&e.latitude!==void 0,h=t?`${t.firstName} ${t.lastName}`.trim():"",y=({children:x,href:C,className:S})=>C?r?jsxRuntime.jsx(r,{href:C,className:S,children:x}):jsxRuntime.jsx(Le,{href:C,variant:"unstyled",className:tailwindMerge.twMerge("hover:underline",S),asButton:false,children:x}):jsxRuntime.jsx("span",{className:S,children:x});if(p){let x=n==="row";return jsxRuntime.jsxs(ye,{variant:o,className:tailwindMerge.twMerge(u&&"h-full",x?"flex flex-col md:flex-row":"flex flex-col",d),children:[b&&jsxRuntime.jsx(ye.Media,{aspectRatio:"auto",className:tailwindMerge.twMerge(x&&"md:order-2 md:flex-[2] md:min-w-0",u&&"flex-1"),children:jsxRuntime.jsx(R,{width:"100%",height:u?"100%":i})}),jsxRuntime.jsxs(ye.Content,{className:tailwindMerge.twMerge("space-y-4 px-4 py-4",x&&"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(R,{width:"100%",height:16}),jsxRuntime.jsx(R,{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(R,{width:40,height:40,className:"rounded flex-shrink-0"}),jsxRuntime.jsxs("div",{className:"flex-1 space-y-1",children:[jsxRuntime.jsx(R,{width:"50%",height:14}),jsxRuntime.jsx(R,{width:"100%",height:12})]})]})]})]})]})}let v=n==="row";return jsxRuntime.jsxs(ye,{variant:o,className:tailwindMerge.twMerge("group/card relative",e.href&&"cursor-pointer",u&&"h-full",v?"flex flex-col md:flex-row":"flex flex-col",d),children:[e.href&&jsxRuntime.jsx(y,{href:e.href,className:"after:absolute after:inset-0 after:z-10",children:jsxRuntime.jsx("span",{className:"sr-only",children:e.streetAddress})}),b&&jsxRuntime.jsx(ye.Media,{aspectRatio:"auto",className:tailwindMerge.twMerge(v&&"md:order-2 md:flex-[2] md:min-w-0",u&&"flex-1"),children:jsxRuntime.jsx(hn,{height:u?"100%":i,initialViewState:{longitude:e.longitude,latitude:e.latitude,zoom:14},showMarker:true,mapboxAccessToken:s})}),jsxRuntime.jsxs(ye.Content,{className:tailwindMerge.twMerge("space-y-4 px-4 py-4",v&&"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",children:e.streetAddress}),f&&jsxRuntime.jsx("span",{className:"text-lg font-normal leading-relaxed text-text-muted",children:f})]}),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(br,{firstName:t.firstName,lastName:t.lastName,src:t.avatarUrl,size:"md",variant:"user",shape:"square",className:"flex-shrink-0"}),jsxRuntime.jsxs("div",{className:"flex-1 min-w-0",children:[t.href?jsxRuntime.jsx(y,{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:h}):jsxRuntime.jsx("span",{className:"text-sm font-semibold leading-tight text-text-heading block mb-0.5",children:h}),jsxRuntime.jsxs("div",{className:"space-y-0.5",children:[c&&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(Le,{href:`mailto:${t.email}`,variant:"unstyled",className:"text-xs leading-tight truncate text-text-body relative z-20",children:t.email})]}),l&&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(Le,{href:`tel:${t.phone}`,variant:"unstyled",className:"text-xs leading-tight truncate text-text-body relative z-20",children:Wo(t.phone)})]})]})]})]})]})]})]})}function tb({label:e,description:t,tooltip:r,errorMessage:o,size:n="md",className:a,value:i,defaultValue:s=0,onChange:c,min:l=0,max:p=100,step:d=1,disabled:m,showValue:u=true}){let g=typeof i=="number",[f,b]=Ue__namespace.default.useState(s),h=g?i:f,y=Math.min(Math.max(h,l),p),v=Math.max(p-l,1e-5),x=(y-l)/v*100;return jsxRuntime.jsxs("div",{className:ce(a,"group flex w-full flex-col gap-1"),children:[e&&jsxRuntime.jsx(ve,{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:`${x}%`},"aria-hidden":true}),jsxRuntime.jsx("input",{type:"range",min:l,max:p,step:d,value:h,disabled:m,"aria-invalid":!!o,onChange:C=>{let S=Number(C.currentTarget.value);g||b(S),c?.(S);},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)})]}),u&&jsxRuntime.jsx("div",{className:"min-w-10 text-right text-sm text-text-heading tabular-nums",children:Math.round(y)})]}),t&&jsxRuntime.jsx(de,{className:"mt-2 text-text-muted",children:t}),o&&jsxRuntime.jsx(oe,{className:"mt-1",children:o})]})}var Ew=Ue__namespace.default.createContext({orientation:"horizontal",isResizing:false});function ob(e,t){return e===void 0?t:e}function Iw(e,t){return typeof e=="number"?e:typeof e=="string"&&e.endsWith("%")?Number.parseFloat(e)/100*t:Number.parseFloat(e.toString())}function Cs({asideWidth:e,asideHeight:t,minAsideWidth:r=240,minAsideHeight:o=200,minMainWidth:n=400,minMainHeight:a=300,orientation:i="horizontal",resizable:s=false,onAsideResize:c,onResizeStart:l,onResizeEnd:p,className:d,dividerClassName:m,children:u}){let g=Ue.useRef(null),[f,b]=Ue.useState(false),h=i==="horizontal"?400:300,y=ob(i==="horizontal"?e:t,h),[v,x]=Ue.useState(null),C=Ue.useCallback(A=>{if(!g.current||!f)return;let J=g.current.getBoundingClientRect(),B=i==="horizontal"?J.width:J.height,Z=i==="horizontal"?A.clientX:A.clientY,G=(i==="horizontal"?J.right:J.bottom)-Z,M=B-G,j=i==="horizontal"?r:o,O=i==="horizontal"?n:a;G<j||M<O||(x(G),c?.(G));},[f,i,r,o,n,a,c]),S=Ue.useCallback(()=>{b(false),p?.();},[p]),N=Ue.useCallback(A=>{A.preventDefault(),A.stopPropagation(),b(true),l?.();},[l]);Ue.useEffect(()=>{if(f)return document.addEventListener("mousemove",C),document.addEventListener("mouseup",S),document.body.style.cursor=i==="horizontal"?"col-resize":"row-resize",document.body.style.userSelect="none",()=>{document.removeEventListener("mousemove",C),document.removeEventListener("mouseup",S),document.body.style.cursor="",document.body.style.userSelect="";}},[f,C,S,i]);let T=Ue__namespace.default.Children.toArray(u).find(A=>Ue__namespace.default.isValidElement(A)&&A.type===ab),w=Ue__namespace.default.Children.toArray(u).find(A=>Ue__namespace.default.isValidElement(A)&&A.type===ib),F=v??y,E=typeof F=="number"?`${F}px`:F;return jsxRuntime.jsx(Ew.Provider,{value:{orientation:i,isResizing:f},children:jsxRuntime.jsxs("div",{ref:g,className:tailwindMerge.twMerge("flex w-full h-full",i==="horizontal"?"flex-row":"flex-col",d),children:[jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("overflow-auto flex-1",i==="horizontal"?"h-full":"w-full"),children:T}),s&&jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("relative group flex-shrink-0",i==="horizontal"?"w-2 -mx-1 cursor-col-resize":"h-2 -my-1 cursor-row-resize",m),onMouseDown:N,role:"separator","aria-orientation":i,"aria-label":"Resize divider",tabIndex:0,onKeyDown:A=>{if(!g.current)return;let J=g.current.getBoundingClientRect(),B=i==="horizontal"?J.width:J.height,Z=v??Iw(y,B),Y=20,G=i==="horizontal"?r:o,M=i==="horizontal"?n:a;if(i==="horizontal"){if(A.key==="ArrowLeft"){let j=Math.min(Z+Y,B-M);x(j),c?.(j);}else if(A.key==="ArrowRight"){let j=Math.max(Z-Y,G);x(j),c?.(j);}}else if(A.key==="ArrowUp"){let j=Math.min(Z+Y,B-M);x(j),c?.(j);}else if(A.key==="ArrowDown"){let j=Math.max(Z-Y,G);x(j),c?.(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"]:E},children:w})]})})}function ab({className:e,children:t}){return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("w-full h-full",e),children:t})}function ib({className:e,children:t}){return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("w-full h-full",e),children:t})}Cs.Main=ab;Cs.Aside=ib;var zw=e=>{let t=wt({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 sb({label:e,description:t,errorMessage:r,size:o="md",tooltip:n,required:a,transparent:i,isInvalid:s,isDisabled:c,isResizable:l=false,className:p,validationResult:d,reserveErrorSpace:m=true,...u}){let{isFocused:g,handleFocus:f,handleBlur:b}=Qt();return jsxRuntime.jsx("div",{className:"group flex flex-col",children:jsxRuntime.jsxs("div",{className:"flex flex-col",children:[e&&jsxRuntime.jsx(ve,{size:o,tooltip:n,isRequired:a,children:e}),jsxRuntime.jsx(ft,{children:jsxRuntime.jsx("textarea",{...u,required:a,onFocus:h=>{u.onFocus&&u.onFocus(h),f(h);},onBlur:h=>{u.onBlur&&u.onBlur(h),b(h);},className:zw({isInvalid:s,isDisabled:c,isResizable:l,isFocused:g,size:o,transparent:i,className:p}),disabled:c})}),m?jsxRuntime.jsx("div",{className:"mt-1 min-h-[20px]",children:typeof r=="string"?jsxRuntime.jsx(oe,{size:o,children:r}):typeof r=="function"&&d?jsxRuntime.jsx(oe,{size:o,children:r(d)}):t?jsxRuntime.jsx(de,{size:o,children:t}):null}):jsxRuntime.jsx(jsxRuntime.Fragment,{children:typeof r=="string"?jsxRuntime.jsx(oe,{size:o,className:"mt-1",children:r}):typeof r=="function"&&d?jsxRuntime.jsx(oe,{size:o,className:"mt-1",children:r(d)}):t?jsxRuntime.jsx(de,{size:o,className:"mt-1",children:t}):null})]})})}function ub({label:e,description:t,errorMessage:r,size:o="md",tooltip:n,required:a,transparent:i,isInvalid:s,isDisabled:c,isResizable:l=false,className:p,validationResult:d,value:m="",onChange:u,chips:g=[],onChipsChange:f,triggerPattern:b="{{",onTriggerDetected:h,onTriggerDismissed:y,renderChip:v,chipVariant:x="brand",chipSize:C,...S}){let N=Ue.useRef(null),{isFocused:T,handleFocus:w,handleBlur:F}=Qt(),E=C||"sm",A=Ue.useRef(null),J=Ue.useCallback(O=>{let U="",z=I=>{if(I.nodeType===Node.TEXT_NODE){if(!I.parentElement?.closest("[data-chip-id]")){let K=I.textContent||"";U+=K;}}else if(I.nodeType===Node.ELEMENT_NODE){let H=I;if(H.hasAttribute("data-chip-id")){let K=H.getAttribute("data-chip-id");U+=`{{${K}}}`;return}else if(H.tagName==="BR"){U+=`
|
|
81
|
+
`;return}else H.tagName;}for(let H=0;H<I.childNodes.length;H++)z(I.childNodes[H]);};return z(O),U},[]),B=Ue.useCallback((O,U)=>{let z=document.createTreeWalker(O,NodeFilter.SHOW_TEXT,{acceptNode:W=>{let D=W.parentElement;return D&&D.closest("[data-chip-id]")?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT}}),I=z.nextNode(),H=Math.max(0,U);for(;I;){let W=I.nodeValue||"";if(W.length>=H){let D=document.createRange();D.setStart(I,H),D.collapse(true);let $=window.getSelection();$?.removeAllRanges(),$?.addRange(D);return}H-=W.length,I=z.nextNode();}let K=window.getSelection(),L=document.createRange();L.selectNodeContents(O),L.collapse(false),K?.removeAllRanges(),K?.addRange(L);},[]);Ue.useEffect(()=>{N.current&&!m&&N.current.textContent!==""&&(N.current.textContent="");},[m]),Ue.useLayoutEffect(()=>{if(N.current){if(m===""){if(T)try{N.current.focus({preventScroll:!0}),B(N.current,0);}catch{}return}if(A.current!=null)try{B(N.current,A.current);}finally{A.current=null;}}},[m,B,T]);let Z=Ue.useCallback((O,U)=>{if(u?.(O),O===""){y?.();return}if(b&&h&&U!==void 0){let z=O.slice(0,U),I=typeof b=="string"?new RegExp(`\\${b}([^\\s]*)$`):b,H=z.match(I);if(H){let K=H[1]||"",L=U-H[0].length;h({query:K,position:U,startIndex:L});}else y?.();}},[u,b,h,y]),Y=Ue.useCallback(O=>{if(!f||!u)return;let U=g.filter(I=>I.id!==O);f(U);let z=m.replace(new RegExp(`\\{\\{${O}\\}\\}`,"g"),"");u(z);},[g,f,m,u]),G=Ue.useCallback(O=>v?v(O,()=>Y(O.id)):jsxRuntime.jsx(Fr,{variant:x,size:E,onRemove:c?void 0:()=>Y(O.id),isDisabled:c,className:"py-0.5 px-1.5 gap-1 text-xs leading-none rounded-md",children:O.label},O.id),[v,x,E,Y,c]),M=()=>{let O=wt({isInvalid:s,isDisabled:c,isFocused:T,transparent:i,size:o}),U=`min-h-[100px] py-2 px-3 ${c?"resize-none":l?"resize-y":"resize-none"}`,z=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(O,U,z,p)},j=()=>m?m.split(/(\{\{[^}]+\}\})/g).map((U,z)=>{let I=U.match(/\{\{([^}]+)\}\}/);if(I){let H=I[1],K=g.find(L=>L.id===H);if(K)return jsxRuntime.jsx("span",{className:"inline-block align-baseline cursor-pointer",contentEditable:false,suppressContentEditableWarning:true,"data-chip-id":H,style:{userSelect:"none",verticalAlign:"baseline",lineHeight:"1"},onClick:L=>{L.preventDefault();let W=window.getSelection(),D=document.createRange();D.selectNode(L.currentTarget),W?.removeAllRanges(),W?.addRange(D);},children:G(K)},`chip-${H}-${z}`)}return U.includes(`
|
|
82
82
|
`)?U.split(`
|
|
83
|
-
`).map((
|
|
84
|
-
`).length-1&&jsxRuntime.jsx("br",{})]},`line-${z}-${K}`)):U}):null;return jsxRuntime.jsx("div",{className:"group flex flex-col",children:jsxRuntime.jsxs("div",{className:"flex flex-col",children:[e&&jsxRuntime.jsx(ve,{size:o,tooltip:n,isRequired:a,children:e}),jsxRuntime.jsx(ft,{children:jsxRuntime.jsx("div",{ref:N,contentEditable:!c,suppressContentEditableWarning:true,onInput:V=>{if(c)return;let U=V.target,z=U.querySelector("[data-chip-id]")!==null,I;if(z?(I=J(U),I=I.replace(/(\{\{[^}]+\}\})\s{2,}/g,"$1 ").replace(/\s{2,}(\{\{[^}]+\}\})/g," $1")):I=U.textContent||"",I===""){try{let L=document.createRange();L.selectNodeContents(U),L.collapse(!0);let W=window.getSelection();W?.removeAllRanges(),W?.addRange(L),A.current=0;}catch{}Z("",0);return}if(I===p)return;let O=window.getSelection(),K=0;if(O&&O.rangeCount>0)try{let L=O.getRangeAt(0);if(z){let W=0,D=!1,$=ne=>{if(D)return !0;if(ne===L.startContainer)return W+=L.startOffset,D=!0,!0;if(ne.nodeType===Node.TEXT_NODE){if(!ne.parentElement?.closest("[data-chip-id]")){if(ne.contains(L.startContainer))return W+=L.startOffset,D=!0,!0;W+=(ne.textContent||"").length;}}else if(ne.nodeType===Node.ELEMENT_NODE){let Ne=ne;if(Ne.hasAttribute("data-chip-id")){if(Ne.contains(L.startContainer)||Ne===L.startContainer){let Re=Ne.getAttribute("data-chip-id");return W+=`{{${Re}}}`.length,D=!0,!0}let Le=Ne.getAttribute("data-chip-id");return W+=`{{${Le}}}`.length,!1}else if(Ne.tagName==="BR")return Ne===L.startContainer?(D=!0,!0):(W+=1,!1)}for(let Ne=0;Ne<ne.childNodes.length;Ne++)if($(ne.childNodes[Ne]))return !0;return !1};$(U),K=W;}else {let W=document.createRange();W.setStart(U,0),W.setEnd(L.startContainer,L.startOffset),K=W.toString().length;}}catch{K=I.length;}A.current=K,Z(I,K);},onKeyDown:V=>{if(c)return;let U=window.getSelection();if(!(!U||U.rangeCount===0))try{let z=U.getRangeAt(0),I=z.commonAncestorContainer;if(V.key==="ArrowLeft"||V.key==="ArrowRight"){let O=I.nodeType===Node.TEXT_NODE?I.parentElement?.closest("[data-chip-id]"):I.closest("[data-chip-id]");if(O){V.preventDefault();try{let K=document.createRange(),L=window.getSelection();V.key==="ArrowLeft"?K.setStartBefore(O):K.setStartAfter(O),K.collapse(!0),L?.removeAllRanges(),L?.addRange(K);}catch{}}}if(V.key==="Backspace"){let O=null;if(O=(I.nodeType===Node.TEXT_NODE?I.parentElement?.closest("[data-chip-id]"):I.closest("[data-chip-id]"))||null,!O)if(I.nodeType===Node.TEXT_NODE){let K=I;if(z.startOffset===0&&K.parentElement){let L=K.previousSibling;if(L&&L.nodeType===Node.ELEMENT_NODE){let W=L.closest("[data-chip-id]");W&&(O=W);}}}else {let K=I;if(z.startOffset>0){let L=K.childNodes[z.startOffset-1];if(L&&L.nodeType===Node.ELEMENT_NODE){let W=L.closest("[data-chip-id]");W&&(O=W);}}}if(O){V.preventDefault(),V.stopPropagation();let K=O.getAttribute("data-chip-id");if(!K)return;let L=`{{${K}}}`,W=p.indexOf(L);if(W!==-1){let D=p.slice(0,W)+p.slice(W+L.length),$=b.filter(ne=>ne.id!==K);A.current=W;try{window.getSelection()?.removeAllRanges();}catch{}f?.($),u?.(D);}}}}catch{}},onFocus:V=>{c||(S.onFocus&&S.onFocus(V),w(V));},onBlur:V=>{c||(S.onBlur&&S.onBlur(V),F(V));},className:M(),style:{whiteSpace:"pre-wrap",wordBreak:"break-word",...S.style},"data-placeholder":S.placeholder,children:j()},p===""?"empty":"content")}),t&&jsxRuntime.jsx(de,{size:o,className:"mt-3",children:t}),typeof r=="string"&&jsxRuntime.jsx(oe,{size:o,className:"mt-1",children:r}),typeof r=="function"&&d&&jsxRuntime.jsx(oe,{size:o,className:"mt-1",children:r(d)})]})})}var fb={FIFTEEN_MINUTES:1,HOUR:2,DAY:3,WEEK:4,MONTH:5,YEAR:6},Kw=[{id:"FIFTEEN_MINUTES",label:"15m"},{id:"HOUR",label:"1h"},{id:"DAY",label:"1d"},{id:"WEEK",label:"1w"}];function gb({dateRange:e,onDateRangeChange:t,windowSize:r,onWindowSizeChange:o,showWindowSize:n=true,showRangeSelector:a=true,allowDatePicker:i=false,lockWindowSize:s=false,restrictToSingleDay:c=false,presetRanges:l=[],windowSizeOptions:m=Kw,autoAdjustWindowSize:d=false,className:p}){let[u,b]=Ue.useState(0),f=Ue.useRef(null),[g,h]=Ue.useState(false),y=M=>{let V=(M.before.getTime()-M.after.getTime())/(1e3*60*60);return V<=24?"FIFTEEN_MINUTES":V<=72||V<=168?"HOUR":("DAY")};Ue.useEffect(()=>{if(d&&!g&&o){let M=y(e);o(M);}},[e,d,g,o]);let v=M=>l.find(j=>{let V=j.getRange();return Math.abs(V.after.getTime()-M.after.getTime())<1e3*60*60*24&&Math.abs(V.before.getTime()-M.before.getTime())<1e3*60*60*24})?.id,[x,C]=Ue.useState(()=>v(e)),S=new Date(e.before);S.setDate(S.getDate()-1);let N={start:ja(e.after,$r()),end:ja(S,$r())};Ue.useEffect(()=>{let M=new ResizeObserver(j=>{for(let V of j)b(V.contentRect.width);});return f.current&&M.observe(f.current),()=>{f.current&&M.unobserve(f.current);}},[]);let T=[...m].sort((M,j)=>fb[M.id]-fb[j.id]),w=M=>{let j=M.toString(),V=l.find(U=>U.id===j);V&&(C(j),h(false),t(V.getRange()));},F=M=>{if(M?.start&&M?.end){C(void 0);let j=new Date(M.start.year,M.start.month-1,M.start.day,0,0,0,0),V=new Date(M.end.year,M.end.month-1,M.end.day+1,0,0,0,0);t({after:j,before:V});}},E=M=>{if(M){C(void 0);let j=new Date(M.year,M.month-1,M.day,0,0,0,0),V=new Date(M.year,M.month-1,M.day+1,0,0,0,0);t({after:j,before:V});}},A=M=>{o&&(h(true),o(M.toString()));},J=()=>{if(l.length>0){let M=l[0];C(M.id),h(false),t(M.getRange());}},B=(M,j=0)=>{let V=new Date(M);return j!==0&&V.setDate(V.getDate()+j),V.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:T.find(M=>M.id===r)?.label||r}):jsxRuntime.jsx(eo,{className:"w-full md:w-auto",selectedKey:r,onSelectionChange:A,size:"md","aria-label":"Select Window Size",children:T.map(M=>jsxRuntime.jsx($t,{id:M.id,"aria-label":M.label,size:"md",children:M.label},M.id))}),Y=c?jsxRuntime.jsx("div",{className:"flex items-center",children:jsxRuntime.jsxs(reactAriaComponents.DialogTrigger,{children:[jsxRuntime.jsxs(q,{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:B(e.after)})]}),jsxRuntime.jsx(We,{className:"w-auto p-3",disableGroup:true,children:jsxRuntime.jsx(Xo,{"aria-label":"Select date",value:Bl(e.after.toISOString().split("T")[0]),onChange:E})})]})}):jsxRuntime.jsxs("div",{className:"flex items-center",children:[jsxRuntime.jsxs(reactAriaComponents.DialogTrigger,{children:[jsxRuntime.jsxs(q,{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}),!x&&jsxRuntime.jsx("span",{className:"ml-2 hidden md:block",children:`${B(e.after)} - ${B(e.before,-1)}`})]}),jsxRuntime.jsx(We,{className:"w-auto p-3",disableGroup:true,children:jsxRuntime.jsx(sn,{"aria-label":"Date range calendar",value:N,onChange:F})})]}),!x&&jsxRuntime.jsx(q,{variant:"ghost",size:"md",onPress:J,children:"Reset"})]}),G=u<600;return jsxRuntime.jsx("div",{ref:f,className:tailwindMerge.twMerge("flex w-full flex-wrap items-center justify-between gap-4",p),children:G?jsxRuntime.jsxs("div",{className:"flex w-full justify-between",children:[jsxRuntime.jsxs("div",{className:"flex items-center",children:[i&&Y,a&&x!==void 0&&jsxRuntime.jsx(eo,{selectedKey:x,onSelectionChange:w,size:"md","aria-label":"Select Date Range",children:l.map(M=>jsxRuntime.jsx($t,{id:M.id,size:"md",children:M.label},M.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&&Y,a&&x!==void 0&&jsxRuntime.jsx(ys,{options:l.map(M=>({id:M.id,label:M.label})),value:x,onChange:w,size:"sm",variant:"secondary","aria-label":"Select Date Range"})]}),jsxRuntime.jsx("div",{className:"flex items-center",children:n&&r&&Z})]})})}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-xs",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 xb({label:e,description:t,errorMessage:r,size:o="md",tooltip:n,isRequired:a,isDisabled:i,isInvalid:s,reserveErrorSpace:c=true,validationResult:l,className:m,...d}){return jsxRuntime.jsxs(reactAriaComponents.TimeField,{...d,isDisabled:i,isRequired:a,isInvalid:s,className:ce(m,"flex flex-col gap-1"),children:[e&&jsxRuntime.jsx(ve,{size:o,tooltip:n,isRequired:a,children:e}),jsxRuntime.jsx(ft,{children:jsxRuntime.jsx(reactAriaComponents.DateInput,{className:tailwindMerge.twMerge(Zo({isInvalid:s,isDisabled:i}),"px-3 py-2 flex items-center gap-0.5 w-full"),children:p=>jsxRuntime.jsx(reactAriaComponents.DateSegment,{segment:p,className:Xw({isPlaceholder:p.isPlaceholder,isDisabled:!p.isEditable||i,size:o})})})}),c?jsxRuntime.jsx("div",{className:"mt-1 min-h-[20px]",children:typeof r=="string"?jsxRuntime.jsx(oe,{size:o,children:r}):typeof r=="function"&&l?jsxRuntime.jsx(oe,{size:o,children:r(l)}):t?jsxRuntime.jsx(de,{size:o,children:t}):null}):jsxRuntime.jsx(jsxRuntime.Fragment,{children:typeof r=="string"?jsxRuntime.jsx(oe,{size:o,className:"mt-1",children:r}):typeof r=="function"&&l?jsxRuntime.jsx(oe,{size:o,className:"mt-1",children:r(l)}):t?jsxRuntime.jsx(de,{size:o,className:"mt-1",children:t}):null})]})}function hb({children:e,className:t=""}){return jsxRuntime.jsx("div",{className:`flex flex-col ${t}`.trim(),role:"list",children:e})}function yb({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 e5="flex font-medium justify-center items-center gap-2 text-center transition whitespace-nowrap box-border",vb={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]"}},t5="opacity-[--control-hover-opacity] cursor-not-allowed pointer-events-none grayscale",r5="opacity-100 cursor-pointer",o5={"top-right":"-right-2 -top-2","top-left":"-left-2 -top-2","bottom-right":"-right-2 -bottom-2","bottom-left":"-left-2 -bottom-2"},n5={primary:"bg-action-brand text-white",destructive:"bg-action-destructive text-white"};function a5(e){let{variant:t="default",size:r="md",isDisabled:o,isSelected:n,borderRadius:a,borderRight:i,borderLeft:s}=e,c=`${e5} ${n?vb[t].selected:vb[t].unselected}`;return c+=` ${he[r].text} ${he[r].height} ${he[r].padding} ${he[r].gap}`,c+=` ${o?t5:r5}`,a==="left"&&(c+=" rounded-l-sm"),a==="right"&&(c+=" rounded-r-sm"),i&&(c+=" border-r"),s&&(c+=" border-l"),c+=` ${ke()}`,t==="brand"&&(c+=" focus-visible:outline-action-brand"),tailwindMerge.twMerge(c)}function Sb(e){let{className:t,children:r,onPress:o,icon:n,iconPosition:a="left",iconWeight:i,isLoading:s=false,loadingText:c,loadingIndicator:l,size:m="md",badgeNumber:d,badgeVariant:p="primary",badgePosition:u="top-right",...b}=e,f=n?jsxRuntime.jsx(k,{name:n,size:m,weight:i}):null,g=()=>{let y=jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[a==="left"&&f,r,a==="right"&&f]});return s?jsxRuntime.jsxs("div",{className:"relative inline-flex items-center justify-center",children:[jsxRuntime.jsx("div",{className:"absolute inset-0 flex items-center justify-center",children:l||jsxRuntime.jsx(k,{name:"CircleNotch",size:m,className:"animate-spin","aria-hidden":"true"})}),jsxRuntime.jsx("div",{className:"invisible","aria-hidden":"true",children:y}),c&&jsxRuntime.jsx("span",{className:"sr-only",role:"status","aria-live":"polite",children:c})]}):y},h=jsxRuntime.jsx(reactAriaComponents.ToggleButton,{onPress:o,...b,className:tailwindMerge.twMerge(a5(e),t),"aria-busy":s,children:g()});return d&&d>0?jsxRuntime.jsxs("div",{className:"relative",children:[h,jsxRuntime.jsx("span",{className:`absolute ${o5[u]} flex h-5 w-5 items-center justify-center rounded-full ${n5[p]} text-xs`,"aria-label":`${d} items`,children:d})]}):h}var Ca={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 s5(e){return Ca[e]}function l5(e){return Ca[e].icon}function c5(e,t=false){return t?Ca[e].label.plural:Ca[e].label.singular}function d5({formId:e="dialog-form",onSubmit:t,primaryLabel:r="Save",secondaryLabel:o="Cancel",onCancel:n,primaryVariant:a,secondaryVariant:i="secondary",children:s,title:c,...l}){return jsxRuntime.jsx(qt,{title:c,primaryAction:{label:r,onPress:()=>{let d=document.getElementById(e);d&&d.requestSubmit();},variant:a},secondaryAction:n?{label:o,onPress:n,variant:i}:void 0,...l,children:jsxRuntime.jsx(pn,{id:e,onSubmit:t,children:s})})}function u5({formId:e="drawer-form",onSubmit:t,primaryLabel:r="Save",secondaryLabel:o="Cancel",onCancel:n,primaryVariant:a,secondaryVariant:i="secondary",children:s,...c}){return jsxRuntime.jsx(oa,{primaryAction:{label:r,onPress:()=>{let m=document.getElementById(e);m&&m.requestSubmit();},variant:a},secondaryAction:n?{label:o,onPress:n,variant:i}:void 0,...c,children:jsxRuntime.jsx(pn,{id:e,onSubmit:t,className:"mt-2",children:s})})}function p5({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 b5={sm:"gap-2",md:"gap-4",lg:"gap-6"};function x5(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 h5({cols:e={base:1},gap:t="lg",className:r,...o}){return jsxRuntime.jsx("div",{...o,className:tailwindMerge.twMerge("grid",x5(e),b5[t],r)})}function C5({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(pt,{tag:"h3",size:"sm",children:e}):e,t?jsxRuntime.jsx(de,{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 S5(){return jsxRuntime.jsx("hr",{className:"border-border-muted"})}function N5({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.jsxs("div",{className:"relative mb-20",children:[jsxRuntime.jsxs("div",{className:"absolute top-5 left-0 right-0 flex items-center justify-between",children:[jsxRuntime.jsx("div",{className:"w-10 flex-shrink-0"}),e.slice(0,-1).map((a,i)=>jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("h-0.5 flex-1 transition-colors",i<n?"bg-action-default":"bg-border-default")},i)),jsxRuntime.jsx("div",{className:"w-10 flex-shrink-0"})]}),jsxRuntime.jsx("ol",{className:"relative flex items-start justify-between",children:e.map((a,i)=>{let s=a.id===t,c=i<n,l=r&&(c||s);return jsxRuntime.jsxs("li",{className:"flex flex-col items-center",children:[jsxRuntime.jsx("button",{type:"button",disabled:!l,onClick:()=>l&&r?.(a.id),className:tailwindMerge.twMerge("relative z-10 flex h-10 w-10 flex-shrink-0 items-center justify-center rounded-full border-2 transition-colors bg-background-body",c&&"border-action-default bg-action-default text-text-onPrimary hover:bg-action-default/90",s&&"border-action-default bg-background-body text-action-default",!c&&!s&&"border-border-default bg-background-body text-text-muted",l&&"cursor-pointer",!l&&"cursor-default"),"aria-current":s?"step":void 0,children:c?jsxRuntime.jsx(k,{name:"Check",size:20,weight:"bold"}):jsxRuntime.jsx("span",{className:"text-sm font-semibold",children:i+1})}),jsxRuntime.jsxs("div",{className:"mt-3 flex flex-col items-center text-center w-32",children:[jsxRuntime.jsx("span",{className:tailwindMerge.twMerge("text-sm font-medium",s&&"text-text-default",c&&"text-text-body",!s&&!c&&"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 k5({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(q,{variant:"secondary",onPress:o,children:a}),jsxRuntime.jsx(q,{type:"submit",form:e,isDisabled:!!r,children:r?"Saving...":n})]})]})}):null}function T5({when:e,message:t="You have unsaved changes. Leave anyway?"}){return Ue__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 P5({steps:e,initialStepId:t,canNavigate:r}){if(e.length===0)throw new Error("useWizard: steps array cannot be empty");let[o,n]=Ue__namespace.useState(t||e[0].id),a=e.findIndex(d=>d.id===o),i=a>0,s=a<e.length-1,c=async d=>d===o?true:r&&!await r(o,d)?false:(n(d),true);return {steps:e,currentStepId:o,setCurrentStepId:c,next:async()=>!s||a===-1?false:c(e[a+1].id),prev:async()=>!i||a===-1?false:c(e[a-1].id),hasNext:s,hasPrev:i,stepIndex:a}}function uZ(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";case "unknown":default:return "neutral"}}Object.defineProperty(exports,"DialogTrigger",{enumerable:true,get:function(){return reactAriaComponents.DialogTrigger}});exports.ActionCell=Mp;exports.ActionMenu=Fa;exports.ActivityFeed=sl;exports.ActivityFeedGroup=za;exports.ActivityItem=Va;exports.Alert=Ou;exports.AppShell=Wu;exports.AreaSeries=Un;exports.AutoMobileRenderer=zi;exports.Autocomplete=oi;exports.Avatar=br;exports.BREAKPOINTS=Jr;exports.Badge=Oe;exports.BadgeCell=Lp;exports.Banner=ai;exports.BarSeries=en;exports.BooleanCell=Fp;exports.BreadcrumbItem=si;exports.Breadcrumbs=ii;exports.Button=q;exports.Calendar=Xo;exports.Card=ye;exports.CardContent=pl;exports.CardFooter=fl;exports.CardHeader=ul;exports.CardMedia=ml;exports.CardMobileRenderer=Vi;exports.ChartAxis=Kn;exports.ChartBottomBar=fi;exports.ChartContainer=up;exports.ChartContext=$o;exports.ChartEventMarkers=bi;exports.ChartTooltip=xi;exports.Checkbox=oo;exports.CheckboxGroup=ec;exports.Chip=Fr;exports.ClearButton=cm;exports.CodeEditor=Bm;exports.Collapse=Hm;exports.CollapseContent=lc;exports.CollapseHeader=sc;exports.CollapseItem=ic;exports.ColorField=fv;exports.ColorModeProvider=wu;exports.Confirm=Um;exports.ConnectionStatusBadge=Km;exports.ContactCard=Ym;exports.ContactMetaCell=Ip;exports.ContactMetaDisplay=ui;exports.CopyToClipboard=mi;exports.CustomCell=Bp;exports.DataControls=vp;exports.DataTable=uf;exports.DateCell=zp;exports.DateField=Np;exports.DateRangePicker=Ci;exports.Description=de;exports.DeviceHealthBadge=pf;exports.DeviceMetaCell=Op;exports.DeviceMetaDisplay=Pi;exports.DeviceStateBadge=mo;exports.DeviceStateCell=Gp;exports.DeviceStateWithMetric=Ai;exports.DeviceTypeIcon=gf;exports.Dialog=qt;exports.DialogForm=d5;exports.DialogHeader=it;exports.Drawer=oa;exports.DrawerForm=u5;exports.ENTITY_CONFIG=Ca;exports.EmptyState=hf;exports.EnrollmentStatusBadge=yf;exports.ErrorBoundary=zt;exports.FieldError=oe;exports.FieldGroup=um;exports.FileUpload=Cf;exports.FilterChips=Cp;exports.FilterDialog=Dp;exports.FirmwareVersionBadge=Nf;exports.Form=pn;exports.FormActions=p5;exports.FormDivider=S5;exports.FormGrid=h5;exports.FormSection=C5;exports.FormStepper=N5;exports.FormatRegistry=Q;exports.FormattedCell=Kp;exports.FunnelSeries=gp;exports.Grid=Hc;exports.GridStateBadge=Ri;exports.Heading=pt;exports.HierarchyExplorer=Uf;exports.HorizontalBarCell=Mc;exports.Icon=k;exports.InfiniteScrollIndicator=Rt;exports.Input=ti;exports.InputWrapper=ft;exports.InteractiveMap=ad;exports.Kpi=Kf;exports.KpiGroup=Jc;exports.Label=ve;exports.LineSeries=Jn;exports.List=Xf;exports.ListBox=Dy;exports.ListBoxItem=$t;exports.ListItem=Qf;exports.ListPane=$f;exports.Loader=Ea;exports.Logo=Wa;exports.MAP_TYPES=Sg;exports.Meter=Dg;exports.MiniBarCell=Lc;exports.ModalBackdrop=St;exports.Notice=ls;exports.NoticeContainer=cs;exports.NoticeProvider=Ag;exports.NumberCell=Xp;exports.NumberField=$n;exports.PageBanner=km;exports.PageLayout=Do;exports.PercentBarCell=Fc;exports.PlaceSearch=Gg;exports.Popover=We;exports.ProgressBar=Kg;exports.Radio=Zg;exports.RadioCard=pd;exports.RadioCardGroup=fd;exports.RadioGroup=Jg;exports.RangeCalendar=sn;exports.ResultsCount=qn;exports.RichTextEditor=jg;exports.SKELETON_SIZES=Vr;exports.SaveBar=k5;exports.SearchControl=co;exports.Section=yn;exports.SectionNav=ps;exports.SegmentedControl=ys;exports.Select=eo;exports.SelectCell=Qp;exports.SideNav=Ga;exports.SiteCard=$g;exports.SiteContactCard=eb;exports.SiteMetaCell=_p;exports.SiteMetaDisplay=Fi;exports.Skeleton=R;exports.Slider=tb;exports.SortControl=jn;exports.SparklineCell=Ec;exports.SplitPane=Cs;exports.StatList=Wi;exports.StaticMap=hn;exports.Switch=Si;exports.Tab=hs;exports.TabList=xs;exports.TabPanel=Eg;exports.Tabs=bs;exports.TextArea=sb;exports.TextAreaWithChips=ub;exports.TextCell=of;exports.TextField=nn;exports.TextLink=Me;exports.TimeControls=gb;exports.TimeField=xb;exports.Timeline=hb;exports.TimelineItem=yb;exports.ToggleButton=Sb;exports.Tooltip=Gn;exports.TopNav=Ln;exports.Tray=Zt;exports.UnsavedChangesPrompt=T5;exports.activeDeviceStates=w1;exports.addFilterCondition=zr;exports.autoScaleCurrent=xx;exports.autoScaleDistance=Vd;exports.autoScaleEnergy=Gd;exports.autoScalePower=kx;exports.autoScaleResistance=Tx;exports.autoScaleVoltage=Fx;exports.camelCaseToWords=nu;exports.capitalize=ru;exports.celsiusToFahrenheit=Px;exports.celsiusToKelvin=hk;exports.centimetersToInches=_4;exports.clearColorCache=Uo;exports.createCategoryColorMap=oh;exports.createEmptyFilter=Zn;exports.createFilter=PC;exports.createFilters=DC;exports.createFormat=Gk;exports.createXScale=fc;exports.createYScale=gc;exports.defaultMargin=ze;exports.deviceStateLabels=k1;exports.deviceStateMetricFormats=FE;exports.enumToSentenceCase=Mx;exports.exportChart=Ps;exports.fahrenheitToCelsius=Dx;exports.fahrenheitToKelvin=yk;exports.feetToMeters=K4;exports.feetToMiles=Z4;exports.filterToChips=RC;exports.formatBoolean=Ad;exports.formatCapacity=S4;exports.formatComponentValue=Yt;exports.formatCurrency=Id;exports.formatCurrent=Ls;exports.formatDate=Bd;exports.formatDistance=Od;exports.formatEmptyValue=wi;exports.formatEnergy=Hs;exports.formatFieldValue=Zr;exports.formatInternationalPhone=Ws;exports.formatNumber=Ed;exports.formatPercent=Ld;exports.formatPhone=Ud;exports.formatPhoneNumber=Wo;exports.formatPower=Ys;exports.formatPowerRating=N4;exports.formatResistance=Zs;exports.formatTemperature=Qd;exports.formatText=cu;exports.formatUSPhone=Ra;exports.formatVoltage=js;exports.getBadgeClasses=Rp;exports.getBooleanBadgeVariant=Ap;exports.getCellAlignmentClasses=Tc;exports.getCellContainerClasses=me;exports.getCellTextClasses=Et;exports.getContrastingTextColor=nh;exports.getDateParts=V4;exports.getDefaultChartColor=_s;exports.getDefaultColors=hu;exports.getDeviceStateDisplayLabel=Rc;exports.getDeviceStateLabel=Rc;exports.getEntityConfig=s5;exports.getEntityIcon=l5;exports.getEntityLabel=c5;exports.getExportFormatName=Ob;exports.getFieldGroupStyles=Kl;exports.getFilterFields=yc;exports.getGridStateLabel=Wp;exports.getInputBackgroundStyles=dm;exports.getInputBaseStyles=wt;exports.getInputStateStyles=Zo;exports.getLinkClasses=Pc;exports.getNumericColorClasses=ki;exports.getResolvedColor=je;exports.getSkeletonSize=yt;exports.getStateTone=uZ;exports.getThemeCategoricalColors=Tn;exports.getYFormatSettings=Br;exports.gridStateLabels=P1;exports.inchesToCentimeters=$4;exports.isActiveDeviceState=Dc;exports.isActiveState=Dc;exports.isCustomPinsLayer=td;exports.isExportSupported=Vb;exports.isFilterEmpty=bp;exports.isGeoJsonLayer=ed;exports.isLightColor=yu;exports.isNil=ee;exports.isRasterLayer=rd;exports.isVectorLayer=_c;exports.kelvinToCelsius=Rx;exports.kelvinToFahrenheit=vk;exports.kilometersToMiles=J4;exports.layer=$c;exports.metersToFeet=U4;exports.metersToMiles=q4;exports.metersToYards=Q4;exports.milesToFeet=zd;exports.milesToKilometers=Y4;exports.milesToMeters=X4;exports.parseBoolean=Rr;exports.removeFilterCondition=lo;exports.resolveValue=ue;exports.snakeCaseToWords=au;exports.temperatureStringToSymbol=Jd;exports.toA=F4;exports.toActiveInactive=lx;exports.toAmps=Pa;exports.toBoolean=Dr;exports.toCelsius=qd;exports.toCentimeters=Sx;exports.toCheckmark=dx;exports.toCompactNumber=fx;exports.toCurrency=Fd;exports.toCustomDateFormat=Cx;exports.toDateString=hx;exports.toEnabledDisabled=ix;exports.toFahrenheit=Zd;exports.toFeet=Is;exports.toFloat=mx;exports.toFormattedNumber=px;exports.toFullDateTime=yx;exports.toGW=uk;exports.toGWh=Wd;exports.toGigawatts=Ks;exports.toISOString=vx;exports.toInches=wx;exports.toInteger=ux;exports.toKA=E4;exports.toKV=Dk;exports.toKW=ck;exports.toKelvin=Xd;exports.toKiloamps=Ms;exports.toKilohms=Kd;exports.toKilometers=Es;exports.toKilovolts=Xs;exports.toKilowatts=Gs;exports.toLowerCase=_d;exports.toMA=L4;exports.toMV=Tk;exports.toMW=dk;exports.toMWh=Hd;exports.toMegawatts=Us;exports.toMegohms=Yd;exports.toMeters=Fs;exports.toMiles=Bs;exports.toMilliamps=As;exports.toMillimeters=Nx;exports.toMilliohms=Js;exports.toMillivolts=qs;exports.toNauticalMiles=G4;exports.toOhms=Ma;exports.toOnOff=sx;exports.toPercentage=Md;exports.toRelativeTime=Da;exports.toScientificNotation=gx;exports.toSecret=Lx;exports.toSentenceCase=eu;exports.toTemperature=jd;exports.toTitleCase=tu;exports.toTrueFalse=cx;exports.toUpperCase=$d;exports.toV=Pk;exports.toVolts=La;exports.toW=lk;exports.toWatts=Aa;exports.toWh=Vs;exports.toYards=zs;exports.tokWh=Os;exports.truncateEnd=lu;exports.truncateMiddle=iu;exports.truncateStart=su;exports.ucFirst=ou;exports.useBreakpoint=Vo;exports.useChartContext=xr;exports.useClientDataControls=Na;exports.useColorMode=mt;exports.useComponentFormatter=P4;exports.useDataControls=kd;exports.useDebounce=Oo;exports.useElementSize=Ho;exports.useInfiniteScroll=Pr;exports.useInputFocus=Qt;exports.useLocalStorage=ka;exports.useMediaQuery=Kt;exports.useNotice=Lg;exports.useServerDataControls=wa;exports.useWizard=P5;exports.wrapWithLink=nr;exports.yardsToMeters=j4;//# sourceMappingURL=index.cjs.map
|
|
83
|
+
`).map((H,K)=>jsxRuntime.jsxs(Ue__namespace.default.Fragment,{children:[H,K<U.split(`
|
|
84
|
+
`).length-1&&jsxRuntime.jsx("br",{})]},`line-${z}-${K}`)):U}):null;return jsxRuntime.jsx("div",{className:"group flex flex-col",children:jsxRuntime.jsxs("div",{className:"flex flex-col",children:[e&&jsxRuntime.jsx(ve,{size:o,tooltip:n,isRequired:a,children:e}),jsxRuntime.jsx(ft,{children:jsxRuntime.jsx("div",{ref:N,contentEditable:!c,suppressContentEditableWarning:true,onInput:O=>{if(c)return;let U=O.target,z=U.querySelector("[data-chip-id]")!==null,I;if(z?(I=J(U),I=I.replace(/(\{\{[^}]+\}\})\s{2,}/g,"$1 ").replace(/\s{2,}(\{\{[^}]+\}\})/g," $1")):I=U.textContent||"",I===""){try{let L=document.createRange();L.selectNodeContents(U),L.collapse(!0);let W=window.getSelection();W?.removeAllRanges(),W?.addRange(L),A.current=0;}catch{}Z("",0);return}if(I===m)return;let H=window.getSelection(),K=0;if(H&&H.rangeCount>0)try{let L=H.getRangeAt(0);if(z){let W=0,D=!1,$=ne=>{if(D)return !0;if(ne===L.startContainer)return W+=L.startOffset,D=!0,!0;if(ne.nodeType===Node.TEXT_NODE){if(!ne.parentElement?.closest("[data-chip-id]")){if(ne.contains(L.startContainer))return W+=L.startOffset,D=!0,!0;W+=(ne.textContent||"").length;}}else if(ne.nodeType===Node.ELEMENT_NODE){let Ne=ne;if(Ne.hasAttribute("data-chip-id")){if(Ne.contains(L.startContainer)||Ne===L.startContainer){let Ae=Ne.getAttribute("data-chip-id");return W+=`{{${Ae}}}`.length,D=!0,!0}let Re=Ne.getAttribute("data-chip-id");return W+=`{{${Re}}}`.length,!1}else if(Ne.tagName==="BR")return Ne===L.startContainer?(D=!0,!0):(W+=1,!1)}for(let Ne=0;Ne<ne.childNodes.length;Ne++)if($(ne.childNodes[Ne]))return !0;return !1};$(U),K=W;}else {let W=document.createRange();W.setStart(U,0),W.setEnd(L.startContainer,L.startOffset),K=W.toString().length;}}catch{K=I.length;}A.current=K,Z(I,K);},onKeyDown:O=>{if(c)return;let U=window.getSelection();if(!(!U||U.rangeCount===0))try{let z=U.getRangeAt(0),I=z.commonAncestorContainer;if(O.key==="ArrowLeft"||O.key==="ArrowRight"){let H=I.nodeType===Node.TEXT_NODE?I.parentElement?.closest("[data-chip-id]"):I.closest("[data-chip-id]");if(H){O.preventDefault();try{let K=document.createRange(),L=window.getSelection();O.key==="ArrowLeft"?K.setStartBefore(H):K.setStartAfter(H),K.collapse(!0),L?.removeAllRanges(),L?.addRange(K);}catch{}}}if(O.key==="Backspace"){let H=null;if(H=(I.nodeType===Node.TEXT_NODE?I.parentElement?.closest("[data-chip-id]"):I.closest("[data-chip-id]"))||null,!H)if(I.nodeType===Node.TEXT_NODE){let K=I;if(z.startOffset===0&&K.parentElement){let L=K.previousSibling;if(L&&L.nodeType===Node.ELEMENT_NODE){let W=L.closest("[data-chip-id]");W&&(H=W);}}}else {let K=I;if(z.startOffset>0){let L=K.childNodes[z.startOffset-1];if(L&&L.nodeType===Node.ELEMENT_NODE){let W=L.closest("[data-chip-id]");W&&(H=W);}}}if(H){O.preventDefault(),O.stopPropagation();let K=H.getAttribute("data-chip-id");if(!K)return;let L=`{{${K}}}`,W=m.indexOf(L);if(W!==-1){let D=m.slice(0,W)+m.slice(W+L.length),$=g.filter(ne=>ne.id!==K);A.current=W;try{window.getSelection()?.removeAllRanges();}catch{}f?.($),u?.(D);}}}}catch{}},onFocus:O=>{c||(S.onFocus&&S.onFocus(O),w(O));},onBlur:O=>{c||(S.onBlur&&S.onBlur(O),F(O));},className:M(),style:{whiteSpace:"pre-wrap",wordBreak:"break-word",...S.style},"data-placeholder":S.placeholder,children:j()},m===""?"empty":"content")}),t&&jsxRuntime.jsx(de,{size:o,className:"mt-3",children:t}),typeof r=="string"&&jsxRuntime.jsx(oe,{size:o,className:"mt-1",children:r}),typeof r=="function"&&d&&jsxRuntime.jsx(oe,{size:o,className:"mt-1",children:r(d)})]})})}var fb={FIFTEEN_MINUTES:1,HOUR:2,DAY:3,WEEK:4,MONTH:5,YEAR:6},Yw=[{id:"FIFTEEN_MINUTES",label:"15m"},{id:"HOUR",label:"1h"},{id:"DAY",label:"1d"},{id:"WEEK",label:"1w"}];function gb({dateRange:e,onDateRangeChange:t,windowSize:r,onWindowSizeChange:o,showWindowSize:n=true,showRangeSelector:a=true,allowDatePicker:i=false,lockWindowSize:s=false,restrictToSingleDay:c=false,presetRanges:l=[],windowSizeOptions:p=Yw,autoAdjustWindowSize:d=false,className:m}){let[u,g]=Ue.useState(0),f=Ue.useRef(null),[b,h]=Ue.useState(false),y=M=>{let O=(M.before.getTime()-M.after.getTime())/(1e3*60*60);return O<=24?"FIFTEEN_MINUTES":O<=72||O<=168?"HOUR":("DAY")};Ue.useEffect(()=>{if(d&&!b&&o){let M=y(e);o(M);}},[e,d,b,o]);let v=M=>l.find(j=>{let O=j.getRange();return Math.abs(O.after.getTime()-M.after.getTime())<1e3*60*60*24&&Math.abs(O.before.getTime()-M.before.getTime())<1e3*60*60*24})?.id,[x,C]=Ue.useState(()=>v(e)),S=new Date(e.before);S.setDate(S.getDate()-1);let N={start:ja(e.after,$r()),end:ja(S,$r())};Ue.useEffect(()=>{let M=new ResizeObserver(j=>{for(let O of j)g(O.contentRect.width);});return f.current&&M.observe(f.current),()=>{f.current&&M.unobserve(f.current);}},[]);let T=[...p].sort((M,j)=>fb[M.id]-fb[j.id]),w=M=>{let j=M.toString(),O=l.find(U=>U.id===j);O&&(C(j),h(false),t(O.getRange()));},F=M=>{if(M?.start&&M?.end){C(void 0);let j=new Date(M.start.year,M.start.month-1,M.start.day,0,0,0,0),O=new Date(M.end.year,M.end.month-1,M.end.day+1,0,0,0,0);t({after:j,before:O});}},E=M=>{if(M){C(void 0);let j=new Date(M.year,M.month-1,M.day,0,0,0,0),O=new Date(M.year,M.month-1,M.day+1,0,0,0,0);t({after:j,before:O});}},A=M=>{o&&(h(true),o(M.toString()));},J=()=>{if(l.length>0){let M=l[0];C(M.id),h(false),t(M.getRange());}},B=(M,j=0)=>{let O=new Date(M);return j!==0&&O.setDate(O.getDate()+j),O.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:T.find(M=>M.id===r)?.label||r}):jsxRuntime.jsx(eo,{className:"w-full md:w-auto",selectedKey:r,onSelectionChange:A,size:"md","aria-label":"Select Window Size",children:T.map(M=>jsxRuntime.jsx($t,{id:M.id,"aria-label":M.label,size:"md",children:M.label},M.id))}),Y=c?jsxRuntime.jsx("div",{className:"flex items-center",children:jsxRuntime.jsxs(reactAriaComponents.DialogTrigger,{children:[jsxRuntime.jsxs(q,{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:B(e.after)})]}),jsxRuntime.jsx(We,{className:"w-auto p-3",disableGroup:true,children:jsxRuntime.jsx(Xo,{"aria-label":"Select date",value:Bl(e.after.toISOString().split("T")[0]),onChange:E})})]})}):jsxRuntime.jsxs("div",{className:"flex items-center",children:[jsxRuntime.jsxs(reactAriaComponents.DialogTrigger,{children:[jsxRuntime.jsxs(q,{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}),!x&&jsxRuntime.jsx("span",{className:"ml-2 hidden md:block",children:`${B(e.after)} - ${B(e.before,-1)}`})]}),jsxRuntime.jsx(We,{className:"w-auto p-3",disableGroup:true,children:jsxRuntime.jsx(sn,{"aria-label":"Date range calendar",value:N,onChange:F})})]}),!x&&jsxRuntime.jsx(q,{variant:"ghost",size:"md",onPress:J,children:"Reset"})]}),G=u<600;return jsxRuntime.jsx("div",{ref:f,className:tailwindMerge.twMerge("flex w-full flex-wrap items-center justify-between gap-4",m),children:G?jsxRuntime.jsxs("div",{className:"flex w-full justify-between",children:[jsxRuntime.jsxs("div",{className:"flex items-center",children:[i&&Y,a&&x!==void 0&&jsxRuntime.jsx(eo,{selectedKey:x,onSelectionChange:w,size:"md","aria-label":"Select Date Range",children:l.map(M=>jsxRuntime.jsx($t,{id:M.id,size:"md",children:M.label},M.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&&Y,a&&x!==void 0&&jsxRuntime.jsx(ys,{options:l.map(M=>({id:M.id,label:M.label})),value:x,onChange:w,size:"sm",variant:"secondary","aria-label":"Select Date Range"})]}),jsxRuntime.jsx("div",{className:"flex items-center",children:n&&r&&Z})]})})}function jw({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-xs",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 xb({label:e,description:t,errorMessage:r,size:o="md",tooltip:n,isRequired:a,isDisabled:i,isInvalid:s,reserveErrorSpace:c=true,validationResult:l,className:p,...d}){return jsxRuntime.jsxs(reactAriaComponents.TimeField,{...d,isDisabled:i,isRequired:a,isInvalid:s,className:ce(p,"flex flex-col gap-1"),children:[e&&jsxRuntime.jsx(ve,{size:o,tooltip:n,isRequired:a,children:e}),jsxRuntime.jsx(ft,{children:jsxRuntime.jsx(reactAriaComponents.DateInput,{className:tailwindMerge.twMerge(Zo({isInvalid:s,isDisabled:i}),"px-3 py-2 flex items-center gap-0.5 w-full"),children:m=>jsxRuntime.jsx(reactAriaComponents.DateSegment,{segment:m,className:jw({isPlaceholder:m.isPlaceholder,isDisabled:!m.isEditable||i,size:o})})})}),c?jsxRuntime.jsx("div",{className:"mt-1 min-h-[20px]",children:typeof r=="string"?jsxRuntime.jsx(oe,{size:o,children:r}):typeof r=="function"&&l?jsxRuntime.jsx(oe,{size:o,children:r(l)}):t?jsxRuntime.jsx(de,{size:o,children:t}):null}):jsxRuntime.jsx(jsxRuntime.Fragment,{children:typeof r=="string"?jsxRuntime.jsx(oe,{size:o,className:"mt-1",children:r}):typeof r=="function"&&l?jsxRuntime.jsx(oe,{size:o,className:"mt-1",children:r(l)}):t?jsxRuntime.jsx(de,{size:o,className:"mt-1",children:t}):null})]})}function hb({children:e,className:t=""}){return jsxRuntime.jsx("div",{className:`flex flex-col ${t}`.trim(),role:"list",children:e})}function yb({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 t5="flex font-medium justify-center items-center gap-2 text-center transition whitespace-nowrap box-border",vb={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]"}},r5="opacity-[--control-hover-opacity] cursor-not-allowed pointer-events-none grayscale",o5="opacity-100 cursor-pointer",n5={"top-right":"-right-2 -top-2","top-left":"-left-2 -top-2","bottom-right":"-right-2 -bottom-2","bottom-left":"-left-2 -bottom-2"},a5={primary:"bg-action-brand text-white",destructive:"bg-action-destructive text-white"};function i5(e){let{variant:t="default",size:r="md",isDisabled:o,isSelected:n,borderRadius:a,borderRight:i,borderLeft:s}=e,c=`${t5} ${n?vb[t].selected:vb[t].unselected}`;return c+=` ${he[r].text} ${he[r].height} ${he[r].padding} ${he[r].gap}`,c+=` ${o?r5:o5}`,a==="left"&&(c+=" rounded-l-sm"),a==="right"&&(c+=" rounded-r-sm"),i&&(c+=" border-r"),s&&(c+=" border-l"),c+=` ${ke()}`,t==="brand"&&(c+=" focus-visible:outline-action-brand"),tailwindMerge.twMerge(c)}function Sb(e){let{className:t,children:r,onPress:o,icon:n,iconPosition:a="left",iconWeight:i,isLoading:s=false,loadingText:c,loadingIndicator:l,size:p="md",badgeNumber:d,badgeVariant:m="primary",badgePosition:u="top-right",...g}=e,f=n?jsxRuntime.jsx(k,{name:n,size:p,weight:i}):null,b=()=>{let y=jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[a==="left"&&f,r,a==="right"&&f]});return s?jsxRuntime.jsxs("div",{className:"relative inline-flex items-center justify-center",children:[jsxRuntime.jsx("div",{className:"absolute inset-0 flex items-center justify-center",children:l||jsxRuntime.jsx(k,{name:"CircleNotch",size:p,className:"animate-spin","aria-hidden":"true"})}),jsxRuntime.jsx("div",{className:"invisible","aria-hidden":"true",children:y}),c&&jsxRuntime.jsx("span",{className:"sr-only",role:"status","aria-live":"polite",children:c})]}):y},h=jsxRuntime.jsx(reactAriaComponents.ToggleButton,{onPress:o,...g,className:tailwindMerge.twMerge(i5(e),t),"aria-busy":s,children:b()});return d&&d>0?jsxRuntime.jsxs("div",{className:"relative",children:[h,jsxRuntime.jsx("span",{className:`absolute ${n5[u]} flex h-5 w-5 items-center justify-center rounded-full ${a5[m]} text-xs`,"aria-label":`${d} items`,children:d})]}):h}var Ca={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 l5(e){return Ca[e]}function c5(e){return Ca[e].icon}function d5(e,t=false){return t?Ca[e].label.plural:Ca[e].label.singular}function u5({formId:e="dialog-form",onSubmit:t,primaryLabel:r="Save",secondaryLabel:o="Cancel",onCancel:n,primaryVariant:a,secondaryVariant:i="secondary",children:s,title:c,...l}){return jsxRuntime.jsx(qt,{title:c,primaryAction:{label:r,onPress:()=>{let d=document.getElementById(e);d&&d.requestSubmit();},variant:a},secondaryAction:n?{label:o,onPress:n,variant:i}:void 0,...l,children:jsxRuntime.jsx(mn,{id:e,onSubmit:t,children:s})})}function p5({formId:e="drawer-form",onSubmit:t,primaryLabel:r="Save",secondaryLabel:o="Cancel",onCancel:n,primaryVariant:a,secondaryVariant:i="secondary",children:s,...c}){return jsxRuntime.jsx(oa,{primaryAction:{label:r,onPress:()=>{let p=document.getElementById(e);p&&p.requestSubmit();},variant:a},secondaryAction:n?{label:o,onPress:n,variant:i}:void 0,...c,children:jsxRuntime.jsx(mn,{id:e,onSubmit:t,className:"mt-2",children:s})})}function f5({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 x5={sm:"gap-2",md:"gap-4",lg:"gap-6"};function h5(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 y5({cols:e={base:1},gap:t="lg",className:r,...o}){return jsxRuntime.jsx("div",{...o,className:tailwindMerge.twMerge("grid",h5(e),x5[t],r)})}function S5({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(mt,{tag:"h3",size:"sm",children:e}):e,t?jsxRuntime.jsx(de,{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 N5(){return jsxRuntime.jsx("hr",{className:"border-border-muted"})}function w5({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.jsxs("div",{className:"relative mb-20",children:[jsxRuntime.jsxs("div",{className:"absolute top-5 left-0 right-0 flex items-center justify-between",children:[jsxRuntime.jsx("div",{className:"w-10 flex-shrink-0"}),e.slice(0,-1).map((a,i)=>jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("h-0.5 flex-1 transition-colors",i<n?"bg-action-default":"bg-border-default")},i)),jsxRuntime.jsx("div",{className:"w-10 flex-shrink-0"})]}),jsxRuntime.jsx("ol",{className:"relative flex items-start justify-between",children:e.map((a,i)=>{let s=a.id===t,c=i<n,l=r&&(c||s);return jsxRuntime.jsxs("li",{className:"flex flex-col items-center",children:[jsxRuntime.jsx("button",{type:"button",disabled:!l,onClick:()=>l&&r?.(a.id),className:tailwindMerge.twMerge("relative z-10 flex h-10 w-10 flex-shrink-0 items-center justify-center rounded-full border-2 transition-colors bg-background-body",c&&"border-action-default bg-action-default text-text-onPrimary hover:bg-action-default/90",s&&"border-action-default bg-background-body text-action-default",!c&&!s&&"border-border-default bg-background-body text-text-muted",l&&"cursor-pointer",!l&&"cursor-default"),"aria-current":s?"step":void 0,children:c?jsxRuntime.jsx(k,{name:"Check",size:20,weight:"bold"}):jsxRuntime.jsx("span",{className:"text-sm font-semibold",children:i+1})}),jsxRuntime.jsxs("div",{className:"mt-3 flex flex-col items-center text-center w-32",children:[jsxRuntime.jsx("span",{className:tailwindMerge.twMerge("text-sm font-medium",s&&"text-text-default",c&&"text-text-body",!s&&!c&&"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 P5({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(q,{variant:"secondary",onPress:o,children:a}),jsxRuntime.jsx(q,{type:"submit",form:e,isDisabled:!!r,children:r?"Saving...":n})]})]})}):null}function T5({when:e,message:t="You have unsaved changes. Leave anyway?"}){return Ue__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 D5({steps:e,initialStepId:t,canNavigate:r}){if(e.length===0)throw new Error("useWizard: steps array cannot be empty");let[o,n]=Ue__namespace.useState(t||e[0].id),a=e.findIndex(d=>d.id===o),i=a>0,s=a<e.length-1,c=async d=>d===o?true:r&&!await r(o,d)?false:(n(d),true);return {steps:e,currentStepId:o,setCurrentStepId:c,next:async()=>!s||a===-1?false:c(e[a+1].id),prev:async()=>!i||a===-1?false:c(e[a-1].id),hasNext:s,hasPrev:i,stepIndex:a}}function pZ(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";case "unknown":default:return "neutral"}}Object.defineProperty(exports,"DialogTrigger",{enumerable:true,get:function(){return reactAriaComponents.DialogTrigger}});exports.ActionCell=Mm;exports.ActionMenu=Fa;exports.ActivityFeed=sl;exports.ActivityFeedGroup=za;exports.ActivityItem=Va;exports.Alert=Ou;exports.AppShell=Wu;exports.AreaSeries=Un;exports.AutoMobileRenderer=zi;exports.Autocomplete=oi;exports.Avatar=br;exports.BREAKPOINTS=Jr;exports.Badge=Oe;exports.BadgeCell=Lm;exports.Banner=ai;exports.BarSeries=en;exports.BooleanCell=Fm;exports.BreadcrumbItem=si;exports.Breadcrumbs=ii;exports.Button=q;exports.Calendar=Xo;exports.Card=ye;exports.CardContent=ml;exports.CardFooter=fl;exports.CardHeader=ul;exports.CardMedia=pl;exports.CardMobileRenderer=Vi;exports.ChartAxis=Kn;exports.ChartBottomBar=fi;exports.ChartContainer=um;exports.ChartContext=$o;exports.ChartEventMarkers=bi;exports.ChartTooltip=xi;exports.Checkbox=oo;exports.CheckboxGroup=ec;exports.Chip=Fr;exports.ClearButton=cp;exports.CodeEditor=Bp;exports.Collapse=Hp;exports.CollapseContent=lc;exports.CollapseHeader=sc;exports.CollapseItem=ic;exports.ColorField=fv;exports.ColorModeProvider=wu;exports.Confirm=Up;exports.ConnectionStatusBadge=Kp;exports.ContactCard=Yp;exports.ContactMetaCell=Im;exports.ContactMetaDisplay=ui;exports.CopyToClipboard=pi;exports.CustomCell=Bm;exports.DataControls=vm;exports.DataTable=uf;exports.DateCell=zm;exports.DateField=Nm;exports.DateRangePicker=Ci;exports.Description=de;exports.DeviceHealthBadge=mf;exports.DeviceMetaCell=Om;exports.DeviceMetaDisplay=Ti;exports.DeviceStateBadge=po;exports.DeviceStateCell=Gm;exports.DeviceStateWithMetric=Ai;exports.DeviceTypeIcon=gf;exports.Dialog=qt;exports.DialogForm=u5;exports.DialogHeader=it;exports.Drawer=oa;exports.DrawerForm=p5;exports.ENTITY_CONFIG=Ca;exports.EmptyState=hf;exports.EnrollmentStatusBadge=yf;exports.ErrorBoundary=zt;exports.FieldError=oe;exports.FieldGroup=up;exports.FileUpload=Cf;exports.FilterChips=Cm;exports.FilterDialog=Dm;exports.FirmwareVersionBadge=Nf;exports.Form=mn;exports.FormActions=f5;exports.FormDivider=N5;exports.FormGrid=y5;exports.FormSection=S5;exports.FormStepper=w5;exports.FormatRegistry=Q;exports.FormattedCell=Km;exports.FunnelSeries=gm;exports.Grid=Hc;exports.GridStateBadge=Ri;exports.Heading=mt;exports.HierarchyExplorer=Uf;exports.HorizontalBarCell=Mc;exports.Icon=k;exports.InfiniteScrollIndicator=Rt;exports.Input=ti;exports.InputWrapper=ft;exports.InteractiveMap=ad;exports.Kpi=Kf;exports.KpiGroup=Jc;exports.Label=ve;exports.LineSeries=Jn;exports.List=Xf;exports.ListBox=Dy;exports.ListBoxItem=$t;exports.ListItem=Qf;exports.ListPane=$f;exports.Loader=Ea;exports.Logo=Wa;exports.MAP_TYPES=Sg;exports.Meter=Dg;exports.MiniBarCell=Lc;exports.ModalBackdrop=St;exports.Notice=ls;exports.NoticeContainer=cs;exports.NoticeProvider=Ag;exports.NumberCell=Xm;exports.NumberField=$n;exports.PageBanner=kp;exports.PageLayout=Do;exports.PercentBarCell=Fc;exports.PlaceSearch=Gg;exports.Popover=We;exports.ProgressBar=Kg;exports.Radio=Zg;exports.RadioCard=md;exports.RadioCardGroup=fd;exports.RadioGroup=Jg;exports.RangeCalendar=sn;exports.ResultsCount=qn;exports.RichTextEditor=jg;exports.SKELETON_SIZES=Vr;exports.SaveBar=P5;exports.SearchControl=co;exports.Section=yn;exports.SectionNav=ms;exports.SegmentedControl=ys;exports.Select=eo;exports.SelectCell=Qm;exports.SideNav=Ga;exports.SiteCard=$g;exports.SiteContactCard=eb;exports.SiteMetaCell=_m;exports.SiteMetaDisplay=Fi;exports.Skeleton=R;exports.Slider=tb;exports.SortControl=jn;exports.SparklineCell=Ec;exports.SplitPane=Cs;exports.StatList=Wi;exports.StaticMap=hn;exports.Switch=Si;exports.Tab=hs;exports.TabList=xs;exports.TabPanel=Eg;exports.Tabs=bs;exports.TextArea=sb;exports.TextAreaWithChips=ub;exports.TextCell=of;exports.TextField=nn;exports.TextLink=Le;exports.TimeControls=gb;exports.TimeField=xb;exports.Timeline=hb;exports.TimelineItem=yb;exports.ToggleButton=Sb;exports.Tooltip=Gn;exports.TopNav=Ln;exports.Tray=Zt;exports.UnsavedChangesPrompt=T5;exports.activeDeviceStates=w1;exports.addFilterCondition=zr;exports.autoScaleCurrent=xx;exports.autoScaleDistance=Vd;exports.autoScaleEnergy=Gd;exports.autoScalePower=kx;exports.autoScaleResistance=Px;exports.autoScaleVoltage=Fx;exports.camelCaseToWords=nu;exports.capitalize=ru;exports.celsiusToFahrenheit=Tx;exports.celsiusToKelvin=yk;exports.centimetersToInches=ek;exports.clearColorCache=Uo;exports.createCategoryColorMap=oh;exports.createEmptyFilter=Zn;exports.createFilter=TC;exports.createFilters=DC;exports.createFormat=Uk;exports.createXScale=fc;exports.createYScale=gc;exports.defaultMargin=ze;exports.deviceStateLabels=k1;exports.deviceStateMetricFormats=EE;exports.enumToSentenceCase=Mx;exports.exportChart=Ts;exports.fahrenheitToCelsius=Dx;exports.fahrenheitToKelvin=vk;exports.feetToMeters=Y4;exports.feetToMiles=q4;exports.filterToChips=RC;exports.formatBoolean=Ad;exports.formatCapacity=N4;exports.formatComponentValue=Yt;exports.formatCurrency=Id;exports.formatCurrent=Ls;exports.formatDate=Bd;exports.formatDistance=Od;exports.formatEmptyValue=wi;exports.formatEnergy=Hs;exports.formatFieldValue=Zr;exports.formatInternationalPhone=Ws;exports.formatNumber=Ed;exports.formatPercent=Ld;exports.formatPhone=Ud;exports.formatPhoneNumber=Wo;exports.formatPower=Ys;exports.formatPowerRating=w4;exports.formatResistance=Zs;exports.formatTemperature=Qd;exports.formatText=cu;exports.formatUSPhone=Ra;exports.formatVoltage=js;exports.getBadgeClasses=Rm;exports.getBooleanBadgeVariant=Am;exports.getCellAlignmentClasses=Pc;exports.getCellContainerClasses=pe;exports.getCellTextClasses=Et;exports.getContrastingTextColor=nh;exports.getDateParts=O4;exports.getDefaultChartColor=_s;exports.getDefaultColors=hu;exports.getDeviceStateDisplayLabel=Rc;exports.getDeviceStateLabel=Rc;exports.getEntityConfig=l5;exports.getEntityIcon=c5;exports.getEntityLabel=d5;exports.getExportFormatName=Ob;exports.getFieldGroupStyles=Kl;exports.getFilterFields=yc;exports.getGridStateLabel=Wm;exports.getInputBackgroundStyles=dp;exports.getInputBaseStyles=wt;exports.getInputStateStyles=Zo;exports.getLinkClasses=Tc;exports.getNumericColorClasses=ki;exports.getResolvedColor=je;exports.getSkeletonSize=yt;exports.getStateTone=pZ;exports.getThemeCategoricalColors=Pn;exports.getYFormatSettings=Br;exports.gridStateLabels=T1;exports.inchesToCentimeters=_4;exports.isActiveDeviceState=Dc;exports.isActiveState=Dc;exports.isCustomPinsLayer=td;exports.isExportSupported=Vb;exports.isFilterEmpty=bm;exports.isGeoJsonLayer=ed;exports.isLightColor=yu;exports.isNil=ee;exports.isRasterLayer=rd;exports.isVectorLayer=_c;exports.kelvinToCelsius=Rx;exports.kelvinToFahrenheit=Ck;exports.kilometersToMiles=Z4;exports.layer=$c;exports.metersToFeet=K4;exports.metersToMiles=X4;exports.metersToYards=$4;exports.milesToFeet=zd;exports.milesToKilometers=J4;exports.milesToMeters=j4;exports.parseBoolean=Rr;exports.removeFilterCondition=lo;exports.resolveValue=ue;exports.snakeCaseToWords=au;exports.temperatureStringToSymbol=Jd;exports.toA=E4;exports.toActiveInactive=lx;exports.toAmps=Ta;exports.toBoolean=Dr;exports.toCelsius=qd;exports.toCentimeters=Sx;exports.toCheckmark=dx;exports.toCompactNumber=fx;exports.toCurrency=Fd;exports.toCustomDateFormat=Cx;exports.toDateString=hx;exports.toEnabledDisabled=ix;exports.toFahrenheit=Zd;exports.toFeet=Is;exports.toFloat=px;exports.toFormattedNumber=mx;exports.toFullDateTime=yx;exports.toGW=pk;exports.toGWh=Wd;exports.toGigawatts=Ks;exports.toISOString=vx;exports.toInches=wx;exports.toInteger=ux;exports.toKA=I4;exports.toKV=Rk;exports.toKW=dk;exports.toKelvin=Xd;exports.toKiloamps=Ms;exports.toKilohms=Kd;exports.toKilometers=Es;exports.toKilovolts=Xs;exports.toKilowatts=Gs;exports.toLowerCase=_d;exports.toMA=F4;exports.toMV=Tk;exports.toMW=uk;exports.toMWh=Hd;exports.toMegawatts=Us;exports.toMegohms=Yd;exports.toMeters=Fs;exports.toMiles=Bs;exports.toMilliamps=As;exports.toMillimeters=Nx;exports.toMilliohms=Js;exports.toMillivolts=qs;exports.toNauticalMiles=U4;exports.toOhms=Ma;exports.toOnOff=sx;exports.toPercentage=Md;exports.toRelativeTime=Da;exports.toScientificNotation=gx;exports.toSecret=Lx;exports.toSentenceCase=eu;exports.toTemperature=jd;exports.toTitleCase=tu;exports.toTrueFalse=cx;exports.toUpperCase=$d;exports.toV=Dk;exports.toVolts=La;exports.toW=ck;exports.toWatts=Aa;exports.toWh=Vs;exports.toYards=zs;exports.tokWh=Os;exports.truncateEnd=lu;exports.truncateMiddle=iu;exports.truncateStart=su;exports.ucFirst=ou;exports.useBreakpoint=Vo;exports.useChartContext=xr;exports.useClientDataControls=Na;exports.useColorMode=pt;exports.useComponentFormatter=D4;exports.useDataControls=kd;exports.useDebounce=Oo;exports.useElementSize=Ho;exports.useInfiniteScroll=Tr;exports.useInputFocus=Qt;exports.useLocalStorage=ka;exports.useMediaQuery=Kt;exports.useNotice=Lg;exports.useServerDataControls=wa;exports.useWizard=D5;exports.wrapWithLink=nr;exports.yardsToMeters=Q4;//# sourceMappingURL=index.cjs.map
|
|
85
85
|
//# sourceMappingURL=index.cjs.map
|