@texturehq/edges 2.0.0 → 2.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +12 -12
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +153 -2
- package/dist/index.d.ts +153 -2
- package/dist/index.js +12 -12
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
'use strict';var reactAriaComponents=require('react-aria-components'),Ie=require('react'),n0=require('papaparse'),u0=require('fuse.js'),reactVirtual=require('@tanstack/react-virtual'),jsxRuntime=require('react/jsx-runtime'),luxon=require('luxon'),tailwindMerge=require('tailwind-merge'),bC=require('@phosphor-icons/react'),DS=require('@phosphor-icons/react/ssr'),reactStately=require('react-stately'),lucideReact=require('lucide-react'),framerMotion=require('framer-motion'),iw=require('react-ace'),reactColorful=require('react-colorful'),curve=require('@visx/curve'),shape=require('@visx/shape'),gradient=require('@visx/gradient'),scale=require('@visx/scale'),d3Array=require('d3-array'),axis=require('@visx/axis'),responsive=require('@visx/responsive'),zoom=require('@visx/zoom'),brush=require('@visx/brush'),pattern=require('@visx/pattern'),core=require('@dnd-kit/core'),sortable=require('@dnd-kit/sortable'),utilities=require('@dnd-kit/utilities'),reactDom=require('react-dom'),y4=require('react-map-gl'),server=require('react-dom/server'),DR=require('@tiptap/extension-link'),react=require('@tiptap/react'),menus=require('@tiptap/react/menus'),AR=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 Ie__namespace=/*#__PURE__*/_interopNamespace(Ie);var n0__default=/*#__PURE__*/_interopDefault(n0);var u0__default=/*#__PURE__*/_interopDefault(u0);var bC__namespace=/*#__PURE__*/_interopNamespace(bC);var DS__namespace=/*#__PURE__*/_interopNamespace(DS);var iw__default=/*#__PURE__*/_interopDefault(iw);var y4__default=/*#__PURE__*/_interopDefault(y4);var DR__default=/*#__PURE__*/_interopDefault(DR);var AR__default=/*#__PURE__*/_interopDefault(AR);var Xv=Object.create;var Ac=Object.defineProperty;var Zv=Object.getOwnPropertyDescriptor;var $v=Object.getOwnPropertyNames;var Qv=Object.getPrototypeOf,_v=Object.prototype.hasOwnProperty;var e0=(e,t,r)=>t in e?Ac(e,t,{enumerable:true,configurable:true,writable:true,value:r}):e[t]=r;var xr=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var t0=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of $v(t))!_v.call(e,n)&&n!==r&&Ac(e,n,{get:()=>t[n],enumerable:!(o=Zv(t,n))||o.enumerable});return e};var Zi=(e,t,r)=>(r=e!=null?Xv(Qv(e)):{},t0(t||!e||!e.__esModule?Ac(r,"default",{value:e,enumerable:true}):r,e));var Ba=(e,t,r)=>e0(e,typeof t!="symbol"?t+"":t,r);var Bc=xr((Ic,Fc)=>{(function(e,t){typeof define=="function"&&define.amd?define([],t):typeof Ic<"u"?t():(t(),e.FileSaver={});})(Ic,function(){function e(s,c){return typeof c>"u"?c={autoBom:false}:typeof c!="object"&&(console.warn("Deprecated: Expected third argument to be a object"),c={autoBom:!c}),c.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(s.type)?new Blob(["\uFEFF",s],{type:s.type}):s}function t(s,c,l){var d=new XMLHttpRequest;d.open("GET",s),d.responseType="blob",d.onload=function(){i(d.response,c,l);},d.onerror=function(){console.error("could not download file");},d.send();}function r(s){var c=new XMLHttpRequest;c.open("HEAD",s,false);try{c.send();}catch{}return 200<=c.status&&299>=c.status}function o(s){try{s.dispatchEvent(new MouseEvent("click"));}catch{var c=document.createEvent("MouseEvents");c.initMouseEvent("click",true,true,window,0,0,0,80,20,false,false,false,false,0,null),s.dispatchEvent(c);}}var n=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof global=="object"&&global.global===global?global:void 0,a=n.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),i=n.saveAs||(typeof window!="object"||window!==n?function(){}:"download"in HTMLAnchorElement.prototype&&!a?function(s,c,l){var d=n.URL||n.webkitURL,u=document.createElement("a");c=c||s.name||"download",u.download=c,u.rel="noopener",typeof s=="string"?(u.href=s,u.origin===location.origin?o(u):r(u.href)?t(s,c,l):o(u,u.target="_blank")):(u.href=d.createObjectURL(s),setTimeout(function(){d.revokeObjectURL(u.href);},4e4),setTimeout(function(){o(u);},0));}:"msSaveOrOpenBlob"in navigator?function(s,c,l){if(c=c||s.name||"download",typeof s!="string")navigator.msSaveOrOpenBlob(e(s,l),c);else if(r(s))t(s,c,l);else {var d=document.createElement("a");d.href=s,d.target="_blank",setTimeout(function(){o(d);});}}:function(s,c,l,d){if(d=d||open("","_blank"),d&&(d.document.title=d.document.body.innerText="downloading..."),typeof s=="string")return t(s,c,l);var u=s.type==="application/octet-stream",m=/constructor/i.test(n.HTMLElement)||n.safari,p=/CriOS\/[\d]+/.test(navigator.userAgent);if((p||u&&m||a)&&typeof FileReader<"u"){var f=new FileReader;f.onloadend=function(){var x=f.result;x=p?x:x.replace(/^data:[^;]*;/,"data:attachment/file;"),d?d.location.href=x:location=x,d=null;},f.readAsDataURL(s);}else {var g=n.URL||n.webkitURL,b=g.createObjectURL(s);d?d.location=b:location.href=b,d=null,setTimeout(function(){g.revokeObjectURL(b);},4e4);}});n.saveAs=i.saveAs=i,typeof Fc<"u"&&(Fc.exports=i);});});var fb=xr(Oe=>{var St=typeof Symbol=="function"&&Symbol.for,Ou=St?Symbol.for("react.element"):60103,Hu=St?Symbol.for("react.portal"):60106,$s=St?Symbol.for("react.fragment"):60107,Qs=St?Symbol.for("react.strict_mode"):60108,_s=St?Symbol.for("react.profiler"):60114,el=St?Symbol.for("react.provider"):60109,tl=St?Symbol.for("react.context"):60110,Wu=St?Symbol.for("react.async_mode"):60111,rl=St?Symbol.for("react.concurrent_mode"):60111,ol=St?Symbol.for("react.forward_ref"):60112,nl=St?Symbol.for("react.suspense"):60113,Gw=St?Symbol.for("react.suspense_list"):60120,al=St?Symbol.for("react.memo"):60115,il=St?Symbol.for("react.lazy"):60116,Uw=St?Symbol.for("react.block"):60121,Yw=St?Symbol.for("react.fundamental"):60117,Kw=St?Symbol.for("react.responder"):60118,Jw=St?Symbol.for("react.scope"):60119;function ur(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Ou:switch(e=e.type,e){case Wu:case rl:case $s:case _s:case Qs:case nl:return e;default:switch(e=e&&e.$$typeof,e){case tl:case ol:case il:case al:case el:return e;default:return t}}case Hu:return t}}}function mb(e){return ur(e)===rl}Oe.AsyncMode=Wu;Oe.ConcurrentMode=rl;Oe.ContextConsumer=tl;Oe.ContextProvider=el;Oe.Element=Ou;Oe.ForwardRef=ol;Oe.Fragment=$s;Oe.Lazy=il;Oe.Memo=al;Oe.Portal=Hu;Oe.Profiler=_s;Oe.StrictMode=Qs;Oe.Suspense=nl;Oe.isAsyncMode=function(e){return mb(e)||ur(e)===Wu};Oe.isConcurrentMode=mb;Oe.isContextConsumer=function(e){return ur(e)===tl};Oe.isContextProvider=function(e){return ur(e)===el};Oe.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Ou};Oe.isForwardRef=function(e){return ur(e)===ol};Oe.isFragment=function(e){return ur(e)===$s};Oe.isLazy=function(e){return ur(e)===il};Oe.isMemo=function(e){return ur(e)===al};Oe.isPortal=function(e){return ur(e)===Hu};Oe.isProfiler=function(e){return ur(e)===_s};Oe.isStrictMode=function(e){return ur(e)===Qs};Oe.isSuspense=function(e){return ur(e)===nl};Oe.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===$s||e===rl||e===_s||e===Qs||e===nl||e===Gw||typeof e=="object"&&e!==null&&(e.$$typeof===il||e.$$typeof===al||e.$$typeof===el||e.$$typeof===tl||e.$$typeof===ol||e.$$typeof===Yw||e.$$typeof===Kw||e.$$typeof===Jw||e.$$typeof===Uw)};Oe.typeOf=ur;});var gb=xr(He=>{process.env.NODE_ENV!=="production"&&(function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,o=e?Symbol.for("react.fragment"):60107,n=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,i=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,u=e?Symbol.for("react.suspense"):60113,m=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,f=e?Symbol.for("react.lazy"):60116,g=e?Symbol.for("react.block"):60121,b=e?Symbol.for("react.fundamental"):60117,x=e?Symbol.for("react.responder"):60118,v=e?Symbol.for("react.scope"):60119;function C(j){return typeof j=="string"||typeof j=="function"||j===o||j===l||j===a||j===n||j===u||j===m||typeof j=="object"&&j!==null&&(j.$$typeof===f||j.$$typeof===p||j.$$typeof===i||j.$$typeof===s||j.$$typeof===d||j.$$typeof===b||j.$$typeof===x||j.$$typeof===v||j.$$typeof===g)}function y(j){if(typeof j=="object"&&j!==null){var ne=j.$$typeof;switch(ne){case t:var Se=j.type;switch(Se){case c:case l:case o:case a:case n:case u:return Se;default:var oe=Se&&Se.$$typeof;switch(oe){case s:case d:case f:case p:case i:return oe;default:return ne}}case r:return ne}}}var S=c,N=l,T=s,M=i,P=t,E=d,I=o,A=f,w=p,k=r,H=a,G=n,z=u,Y=false;function Z(j){return Y||(Y=true,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),V(j)||y(j)===c}function V(j){return y(j)===l}function O(j){return y(j)===s}function R(j){return y(j)===i}function D(j){return typeof j=="object"&&j!==null&&j.$$typeof===t}function F(j){return y(j)===d}function L(j){return y(j)===o}function h(j){return y(j)===f}function W(j){return y(j)===p}function U(j){return y(j)===r}function K(j){return y(j)===a}function te(j){return y(j)===n}function ue(j){return y(j)===u}He.AsyncMode=S,He.ConcurrentMode=N,He.ContextConsumer=T,He.ContextProvider=M,He.Element=P,He.ForwardRef=E,He.Fragment=I,He.Lazy=A,He.Memo=w,He.Portal=k,He.Profiler=H,He.StrictMode=G,He.Suspense=z,He.isAsyncMode=Z,He.isConcurrentMode=V,He.isContextConsumer=O,He.isContextProvider=R,He.isElement=D,He.isForwardRef=F,He.isFragment=L,He.isLazy=h,He.isMemo=W,He.isPortal=U,He.isProfiler=K,He.isStrictMode=te,He.isSuspense=ue,He.isValidElementType=C,He.typeOf=y;})();});var Uu=xr((FV,Gu)=>{process.env.NODE_ENV==="production"?Gu.exports=fb():Gu.exports=gb();});var hb=xr((BV,xb)=>{var bb=Object.getOwnPropertySymbols,jw=Object.prototype.hasOwnProperty,qw=Object.prototype.propertyIsEnumerable;function Xw(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function Zw(){try{if(!Object.assign)return !1;var e=new String("abc");if(e[5]="de",Object.getOwnPropertyNames(e)[0]==="5")return !1;for(var t={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;var o=Object.getOwnPropertyNames(t).map(function(a){return t[a]});if(o.join("")!=="0123456789")return !1;var n={};return "abcdefghijklmnopqrst".split("").forEach(function(a){n[a]=a;}),Object.keys(Object.assign({},n)).join("")==="abcdefghijklmnopqrst"}catch{return false}}xb.exports=Zw()?Object.assign:function(e,t){for(var r,o=Xw(e),n,a=1;a<arguments.length;a++){r=Object(arguments[a]);for(var i in r)jw.call(r,i)&&(o[i]=r[i]);if(bb){n=bb(r);for(var s=0;s<n.length;s++)qw.call(r,n[s])&&(o[n[s]]=r[n[s]]);}}return o};});var sl=xr((VV,yb)=>{var $w="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";yb.exports=$w;});var Yu=xr((zV,vb)=>{vb.exports=Function.call.bind(Object.prototype.hasOwnProperty);});var kb=xr((OV,Nb)=>{var Ku=function(){};process.env.NODE_ENV!=="production"&&(Cb=sl(),ll={},Sb=Yu(),Ku=function(e){var t="Warning: "+e;typeof console<"u"&&console.error(t);try{throw new Error(t)}catch{}});var Cb,ll,Sb;function wb(e,t,r,o,n){if(process.env.NODE_ENV!=="production"){for(var a in e)if(Sb(e,a)){var i;try{if(typeof e[a]!="function"){var s=Error((o||"React class")+": "+r+" type `"+a+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[a]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw s.name="Invariant Violation",s}i=e[a](t,a,o,r,null,Cb);}catch(l){i=l;}if(i&&!(i instanceof Error)&&Ku((o||"React class")+": type specification of "+r+" `"+a+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof i+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),i instanceof Error&&!(i.message in ll)){ll[i.message]=true;var c=n?n():"";Ku("Failed "+r+" type: "+i.message+(c??""));}}}}wb.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(ll={});};Nb.exports=wb;});var Rb=xr((HV,Pb)=>{var Qw=Uu(),_w=hb(),pa=sl(),Ju=Yu(),Tb=kb(),ma=function(){};process.env.NODE_ENV!=="production"&&(ma=function(e){var t="Warning: "+e;typeof console<"u"&&console.error(t);try{throw new Error(t)}catch{}});function cl(){return null}Pb.exports=function(e,t){var r=typeof Symbol=="function"&&Symbol.iterator,o="@@iterator";function n(w){var k=w&&(r&&w[r]||w[o]);if(typeof k=="function")return k}var a="<<anonymous>>",i={array:d("array"),bigint:d("bigint"),bool:d("boolean"),func:d("function"),number:d("number"),object:d("object"),string:d("string"),symbol:d("symbol"),any:u(),arrayOf:m,element:p(),elementType:f(),instanceOf:g,node:C(),objectOf:x,oneOf:b,oneOfType:v,shape:S,exact:N};function s(w,k){return w===k?w!==0||1/w===1/k:w!==w&&k!==k}function c(w,k){this.message=w,this.data=k&&typeof k=="object"?k:{},this.stack="";}c.prototype=Error.prototype;function l(w){if(process.env.NODE_ENV!=="production")var k={},H=0;function G(Y,Z,V,O,R,D,F){if(O=O||a,D=D||V,F!==pa){if(t){var L=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw L.name="Invariant Violation",L}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var h=O+":"+V;!k[h]&&H<3&&(ma("You are manually calling a React.PropTypes validation function for the `"+D+"` prop on `"+O+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),k[h]=true,H++);}}return Z[V]==null?Y?Z[V]===null?new c("The "+R+" `"+D+"` is marked as required "+("in `"+O+"`, but its value is `null`.")):new c("The "+R+" `"+D+"` is marked as required in "+("`"+O+"`, but its value is `undefined`.")):null:w(Z,V,O,R,D)}var z=G.bind(null,false);return z.isRequired=G.bind(null,true),z}function d(w){function k(H,G,z,Y,Z,V){var O=H[G],R=P(O);if(R!==w){var D=E(O);return new c("Invalid "+Y+" `"+Z+"` of type "+("`"+D+"` supplied to `"+z+"`, expected ")+("`"+w+"`."),{expectedType:w})}return null}return l(k)}function u(){return l(cl)}function m(w){function k(H,G,z,Y,Z){if(typeof w!="function")return new c("Property `"+Z+"` of component `"+z+"` has invalid PropType notation inside arrayOf.");var V=H[G];if(!Array.isArray(V)){var O=P(V);return new c("Invalid "+Y+" `"+Z+"` of type "+("`"+O+"` supplied to `"+z+"`, expected an array."))}for(var R=0;R<V.length;R++){var D=w(V,R,z,Y,Z+"["+R+"]",pa);if(D instanceof Error)return D}return null}return l(k)}function p(){function w(k,H,G,z,Y){var Z=k[H];if(!e(Z)){var V=P(Z);return new c("Invalid "+z+" `"+Y+"` of type "+("`"+V+"` supplied to `"+G+"`, expected a single ReactElement."))}return null}return l(w)}function f(){function w(k,H,G,z,Y){var Z=k[H];if(!Qw.isValidElementType(Z)){var V=P(Z);return new c("Invalid "+z+" `"+Y+"` of type "+("`"+V+"` supplied to `"+G+"`, expected a single ReactElement type."))}return null}return l(w)}function g(w){function k(H,G,z,Y,Z){if(!(H[G]instanceof w)){var V=w.name||a,O=A(H[G]);return new c("Invalid "+Y+" `"+Z+"` of type "+("`"+O+"` supplied to `"+z+"`, expected ")+("instance of `"+V+"`."))}return null}return l(k)}function b(w){if(!Array.isArray(w))return process.env.NODE_ENV!=="production"&&(arguments.length>1?ma("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):ma("Invalid argument supplied to oneOf, expected an array.")),cl;function k(H,G,z,Y,Z){for(var V=H[G],O=0;O<w.length;O++)if(s(V,w[O]))return null;var R=JSON.stringify(w,function(F,L){var h=E(L);return h==="symbol"?String(L):L});return new c("Invalid "+Y+" `"+Z+"` of value `"+String(V)+"` "+("supplied to `"+z+"`, expected one of "+R+"."))}return l(k)}function x(w){function k(H,G,z,Y,Z){if(typeof w!="function")return new c("Property `"+Z+"` of component `"+z+"` has invalid PropType notation inside objectOf.");var V=H[G],O=P(V);if(O!=="object")return new c("Invalid "+Y+" `"+Z+"` of type "+("`"+O+"` supplied to `"+z+"`, expected an object."));for(var R in V)if(Ju(V,R)){var D=w(V,R,z,Y,Z+"."+R,pa);if(D instanceof Error)return D}return null}return l(k)}function v(w){if(!Array.isArray(w))return process.env.NODE_ENV!=="production"&&ma("Invalid argument supplied to oneOfType, expected an instance of array."),cl;for(var k=0;k<w.length;k++){var H=w[k];if(typeof H!="function")return ma("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+I(H)+" at index "+k+"."),cl}function G(z,Y,Z,V,O){for(var R=[],D=0;D<w.length;D++){var F=w[D],L=F(z,Y,Z,V,O,pa);if(L==null)return null;L.data&&Ju(L.data,"expectedType")&&R.push(L.data.expectedType);}var h=R.length>0?", expected one of type ["+R.join(", ")+"]":"";return new c("Invalid "+V+" `"+O+"` supplied to "+("`"+Z+"`"+h+"."))}return l(G)}function C(){function w(k,H,G,z,Y){return T(k[H])?null:new c("Invalid "+z+" `"+Y+"` supplied to "+("`"+G+"`, expected a ReactNode."))}return l(w)}function y(w,k,H,G,z){return new c((w||"React class")+": "+k+" type `"+H+"."+G+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+z+"`.")}function S(w){function k(H,G,z,Y,Z){var V=H[G],O=P(V);if(O!=="object")return new c("Invalid "+Y+" `"+Z+"` of type `"+O+"` "+("supplied to `"+z+"`, expected `object`."));for(var R in w){var D=w[R];if(typeof D!="function")return y(z,Y,Z,R,E(D));var F=D(V,R,z,Y,Z+"."+R,pa);if(F)return F}return null}return l(k)}function N(w){function k(H,G,z,Y,Z){var V=H[G],O=P(V);if(O!=="object")return new c("Invalid "+Y+" `"+Z+"` of type `"+O+"` "+("supplied to `"+z+"`, expected `object`."));var R=_w({},H[G],w);for(var D in R){var F=w[D];if(Ju(w,D)&&typeof F!="function")return y(z,Y,Z,D,E(F));if(!F)return new c("Invalid "+Y+" `"+Z+"` key `"+D+"` supplied to `"+z+"`.\nBad object: "+JSON.stringify(H[G],null," ")+`
|
|
2
|
-
Valid keys: `+JSON.stringify(Object.keys(w),null," "));var
|
|
3
|
-
`+i),i.includes("xmlns=")||(i=i.replace("<svg",'<svg xmlns="http://www.w3.org/2000/svg"'));let s=new Blob([i],{type:"image/svg+xml;charset=utf-8"}),c=Vc(t.filename||"chart","svg",t.timestamp!==!1);(0,$i.saveAs)(s,c);}catch(r){throw new Error(`SVG export failed: ${r instanceof Error?r.message:"Unknown error"}`)}}async function s0(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);bm(n,i),i.setAttribute("width",String(a.width)),i.setAttribute("height",String(a.height)),i.removeAttribute("transform");let s=i.getElementsByTagName("text");Array.from(s).forEach(m=>{m.style.fontFamily||(m.style.fontFamily="system-ui, -apple-system, sans-serif"),m.style.fontSize||(m.style.fontSize="12px");});let c=document.createElementNS("http://www.w3.org/2000/svg","rect");c.setAttribute("width",String(a.width)),c.setAttribute("height",String(a.height)),c.setAttribute("fill","white"),i.insertBefore(c,i.firstChild);let d=new XMLSerializer().serializeToString(i);d.includes("xmlns=")||(d=d.replace("<svg",'<svg xmlns="http://www.w3.org/2000/svg"'));let u=new Blob([d],{type:"image/svg+xml;charset=utf-8"});return o=URL.createObjectURL(u),new Promise((m,p)=>{let f=new Image,g=setTimeout(()=>{o&&URL.revokeObjectURL(o),p(new Error("Image loading timeout"));},1e4);f.onload=()=>{clearTimeout(g);try{let b=document.createElement("canvas");b.width=a.width*r,b.height=a.height*r;let x=b.getContext("2d");if(!x)throw new Error("Canvas context not available");x.imageSmoothingEnabled=!0,x.imageSmoothingQuality="high",x.scale(r,r),x.fillStyle="white",x.fillRect(0,0,a.width,a.height),x.drawImage(f,0,0,a.width,a.height),b.toBlob(v=>{if(v){let C=Vc(t.filename||"chart","png",t.timestamp!==!1);(0,$i.saveAs)(v,C),m();}else p(new Error("Failed to create PNG blob"));o&&URL.revokeObjectURL(o);},"image/png",1);}catch(b){o&&URL.revokeObjectURL(o),p(b);}},f.onerror=()=>{clearTimeout(g),o&&URL.revokeObjectURL(o),p(new Error("Failed to load SVG as image"));},f.src=o;})}catch(n){throw o&&URL.revokeObjectURL(o),new Error(`PNG export failed: ${n instanceof Error?n.message:"Unknown error"}`)}}function l0(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 c0(e){return {csv:"CSV Spreadsheet",svg:"SVG Vector Image",png:"PNG Image"}[e]||"Unknown Format"}function xm({datasets:e,metadata:t,svgRef:r}){return Ie.useCallback(async o=>{try{await zc(o,e,t,r);}catch(n){throw console.error("Chart export failed:",n),n}},[e,t,r])}function Va(e,t){return t.split(".").reduce((r,o)=>r?.[o],e)}function p0(e,t){let r=Va(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 hm(e,t){if(t.conditions.length===0)return true;let r=t.conditions.map(o=>"conditions"in o?hm(e,o):p0(e,o));return t.logic==="AND"?r.every(Boolean):r.some(Boolean)}function m0(e,t){return !t||t.conditions.length===0?e:e.filter(r=>hm(r,t))}function f0(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 g0(e,t){return t?[...e].sort((r,o)=>{let n=Va(r,t.field),a=Va(o,t.field);return f0(n,a,t.direction)}):e}function b0(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 u0__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=Va(s,c);return l==null?false:String(l).toLowerCase().includes(i)}))}function x0(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=Va(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 Oc({data:e,filters:t,sort:r,search:o,facetConfigs:n=[]}){let a=b0(e,o||null);a=m0(a,t||null);let i=x0(a,n);return a=g0(a,r||null),{data:a,facetCounts:i,resultCount:a.length}}function Qi({data:e,filters:t,sort:r,search:o,facetConfigs:n=[]}){return Ie.useMemo(()=>Oc({data:e,filters:t,sort:r,search:o,facetConfigs:n}),[e,t,r,o,n])}function wo(e,t=300){let[r,o]=Ie.useState(e);return Ie.useEffect(()=>{let n=setTimeout(()=>o(e),t);return ()=>clearTimeout(n)},[e,t]),r}function _i({filters:e,sort:t,search:r,onStateChange:o,searchDebounce:n=300}){let a=wo(r,n),i=Ie.useRef(true);Ie.useEffect(()=>{if(i.current){i.current=false;return}o({filters:e,sort:t,search:a});},[e,t,a,o]);}function ym(e){return e.mode==="client"?Qi({data:e.data,filters:e.filters,sort:e.sort,search:e.search,facetConfigs:e.facetConfigs}):(_i({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 es(e,t=300){let[r,o]=Ie.useState(false);return Ie.useEffect(()=>{if(e){let n=setTimeout(()=>{o(true);},t);return ()=>clearTimeout(n)}o(false);},[e,t]),r}function $n(){let[e,t]=Ie.useState({width:0,height:0}),r=Ie.useRef(null),o=Ie.useRef(void 0),n=Ie.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:d,height:u}=l.contentRect;t(m=>m.width!==d||m.height!==u?{width:d,height:u}:m);}});}),r.current.observe(a);},[]);return Ie.useEffect(()=>()=>{o.current&&cancelAnimationFrame(o.current),r.current&&r.current.disconnect();},[]),{ref:n,width:e.width,height:e.height}}function No({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 d=Ie.useRef(null),u=Ie.useRef(null),m=Ie.useRef(false),[p,f]=Ie.useState(0);Ie.useEffect(()=>{u.current&&(c||d.current)&&f(M=>M+1);},[c,e.length]);let g=n||(o?e.length===0?"loading":"loading-more":"idle"),b=g==="loading",x=g==="loading-more",v=a!==void 0?a:e.length>=100,C=reactVirtual.useVirtualizer({count:e.length,getScrollElement:()=>c||d.current,estimateSize:()=>i,overscan:s}),y=v?C:null,S=v?C.getVirtualItems():[];Ie.useEffect(()=>{let M=u.current,P=c||d.current;if(!M||!P||!r||o||!t)return;let E=new IntersectionObserver(I=>{let[A]=I;A?.isIntersecting&&!m.current&&r&&t&&(m.current=true,Promise.resolve(t()).finally(()=>{m.current=false;}));},{root:P,rootMargin:`0px 0px ${l}px 0px`,threshold:0});return E.observe(M),()=>{E.disconnect();}},[r,o,t,c,l,p]);let N=Ie.useCallback((M,P)=>{y?y.scrollToIndex(M,P):d.current&&d.current.children[M]?.scrollIntoView({behavior:"smooth",block:P?.align||"start"});},[y]),T=Ie.useCallback(()=>{y?y.scrollToIndex(0,{align:"start"}):d.current&&d.current.scrollTo({top:0,behavior:"smooth"});},[y]);return {virtualizer:y,virtualItems:S,computedLoadingState:g,isInitialLoad:b,isLoadingMore:x,scrollRef:d,loadMoreRef:u,scrollToIndex:N,scrollToTop:T}}function ts(e,t){let[r,o]=Ie.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}});Ie.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=Ie.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=Ie.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 Nm=Zi(Bc(),1);function A0(e,t,r=true){let o=e;if(r){let n=new Date().toISOString().replace(/[:.]/g,"-").slice(0,-5);return `${o}-${n}.${t}`}return `${o}.${t}`}function I0(e,t){return t.accessor?typeof t.accessor=="function"?t.accessor(e):e[t.accessor]:null}function km(e,t){let r=I0(t,e);return e.exportValue?e.exportValue(r,t)??"":r==null?"":r instanceof Date?r.toISOString():typeof r=="object"?JSON.stringify(r):r}function Wc(e){return e.filter(t=>t.exportable!==false)}function Tm(e){let t=e.map(n=>n.exportLabel||n.label),r=new Set,o=[];for(let n of t)r.has(n)?o.includes(n)||o.push(n):r.add(n);if(o.length>0)throw new Error(`Duplicate export headers found: ${o.join(", ")}. Use exportLabel to provide unique headers.`)}async function Gc(e){let{columns:t,data:r,metadata:o={}}=e;try{let n=Wc(t);if(n.length===0)throw new Error("No exportable columns found");Tm(n);let a=r.map(l=>{let d={};for(let u of n){let m=u.exportLabel||u.label;d[m]=km(u,l);}return d}),i=n0__default.default.unparse(a,{header:!0,skipEmptyLines:!0}),s=new Blob([i],{type:"text/csv;charset=utf-8;"}),c=A0(o.filename||"table-data","csv",o.timestamp!==!1);(0,Nm.saveAs)(s,c);}catch(n){throw new Error(`CSV export failed: ${n instanceof Error?n.message:"Unknown error"}`)}}function F0(e){let{columns:t,data:r}=e,o=Wc(t);return Tm(o),r.map(n=>{let a={};for(let i of o){let s=i.exportLabel||i.label;a[s]=km(i,n);}return a})}function B0(e){return Wc(e).map(t=>t.exportLabel||t.label)}function Pm({columns:e,data:t,metadata:r}){let n=e.filter(i=>i.exportable!==false).length>0&&t.length>0;return {exportCSV:Ie.useCallback(async()=>{try{await Gc({columns:e,data:t,metadata:r});}catch(i){throw console.error("Table export failed:",i),i}},[e,t,r]),canExport:n}}function rs(e=true){let[t,r]=Ie.useState(null);return Ie.useEffect(()=>{if(!e){r(null);return}let o=typeof window<"u"?window.visualViewport:null;if(!o)return;let n=()=>{let a=Math.max(0,window.innerHeight-o.height-(o.offsetTop??0));r({height:o.height,keyboardOffset:a});};return n(),o.addEventListener("resize",n),o.addEventListener("scroll",n),()=>{o.removeEventListener("resize",n),o.removeEventListener("scroll",n);}},[e]),t}var Uc=class{constructor(){Ba(this,"formatters",new Map);}register(t,r){this.formatters.set(t,r);}format(t,r,...o){let n=this.formatters.get(t);return n?n(r,...o):(console.warn(`No formatter registered for key: ${t}`),null)}has(t){return this.formatters.has(t)}keys(){return Array.from(this.formatters.keys())}unregister(t){this.formatters.delete(t);}clear(){this.formatters.clear();}},ee=new Uc;var ko=(e,t="Yes",r="No")=>e==null?null:e?t:r,H0=e=>ko(e,"Enabled","Disabled"),W0=e=>ko(e,"On","Off"),G0=e=>ko(e,"Active","Inactive"),U0=e=>ko(e,"True","False"),Y0=e=>ko(e,"\u2713","\u2717"),To=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},Rm=(e,t)=>{if(t.hideWhenNull&&e==null)return null;if(e==null)return t.nullText??null;let r=To(e);return r===null?t.nullText??null:ko(r,t.trueText??"Yes",t.falseText??"No")};ee.register("boolean",(e,t,r)=>{let o=To(e);return o!==null?ko(o,typeof t=="string"?t:"Yes",typeof r=="string"?r:"No"):null});ee.register("yesNo",e=>{let t=To(e);return t!==null?ko(t,"Yes","No"):null});ee.register("enabledDisabled",e=>{let t=To(e);return t!==null?H0(t):null});ee.register("onOff",e=>{let t=To(e);return t!==null?W0(t):null});ee.register("activeInactive",e=>{let t=To(e);return t!==null?G0(t):null});ee.register("trueFalse",e=>{let t=To(e);return t!==null?U0(t):null});ee.register("checkmark",e=>{let t=To(e);return t!==null?Y0(t):null});var se=e=>e==null,Dm=(e,t=0)=>se(e)?null:`${e.toFixed(t)}%`,Em=(e,t=0)=>Dm(e,t)??"\u2014",K0=e=>se(e)?null:Math.round(e).toString(),J0=(e,t=1)=>se(e)?null:e.toFixed(t),j0=(e,t,r=true)=>{if(se(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)},q0=(e,t="short")=>se(e)?null:new Intl.NumberFormat("en-US",{notation:"compact",compactDisplay:t}).format(e),X0=(e,t=2)=>se(e)?null:e.toExponential(t),Mm=(e,t="USD",r)=>{if(se(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)},Lm=(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)},Am=(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:Mm(r,t.currency,t)};ee.register("percentage",(e,t)=>typeof e=="number"?Dm(e,typeof t=="number"?t:0):null);ee.register("integer",e=>typeof e=="number"?K0(e):null);ee.register("float",(e,t)=>typeof e=="number"?J0(e,typeof t=="number"?t:1):null);ee.register("number",(e,t,r)=>{let o=typeof e=="string"?parseFloat(e):Number(e);return isNaN(o)?null:j0(o,typeof t=="number"?t:void 0,typeof r=="boolean"?r:true)});ee.register("compact",(e,t)=>typeof e=="number"?q0(e,t==="long"?"long":"short"):null);ee.register("scientific",(e,t)=>typeof e=="number"?X0(e,typeof t=="number"?t:2):null);ee.register("currency",(e,t,r)=>typeof e=="number"?Mm(e,typeof t=="string"?t:"USD",typeof r=="object"&&r!==null?r:{}):null);function XD(e,t=1){return se(e)?null:Math.abs(e)>=1e3?`${(e/1e3).toFixed(t)} MWh`:`${e.toFixed(t)} kWh`}function ZD(e,t=1){return se(e)?null:Math.abs(e)>=1e3?`${(e/1e3).toFixed(t)} MW`:`${e.toFixed(t)} kW`}function zr({value:e,formatter:t,emptyClassName:r="text-text-secondary",emptyText:o="\u2014"}){if(e==null)return jsxRuntime.jsx("span",{className:r,children:o});if(typeof t=="function")return t(e);if(t&&typeof t=="object"){let n=rn(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=rn(e,{type:"date"});return jsxRuntime.jsx("time",{dateTime:e.toISOString(),title:e.toISOString(),children:n})}if(typeof e=="number")return rn(e,{type:"number"});if(typeof e=="boolean")return rn(e,{type:"boolean"})}return String(e)}function eE(e,t,r){return Ie__namespace.default.useCallback(o=>zr({value:o,formatter:e,emptyClassName:t,emptyText:r}),[e,t,r])}var Yc=(e,t=0)=>{if(se(e))return null;let r=e*1e3;return t===0?`${Math.round(r)} mA`:`${r.toFixed(t)} mA`},ns=(e,t=1)=>se(e)?null:`${e.toFixed(t)} A`,Kc=(e,t=2)=>se(e)?null:`${(e/1e3).toFixed(t)} kA`,$0=(e,t)=>{if(se(e))return null;let r=Math.abs(e);return r>=1e3?Kc(e,t??2):r<1?Yc(e,t??0):ns(e,t??1)},Jc=(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 Kc(r,o??2);case "mA":return Yc(r,o??0);case "A":return ns(r,o??1)}return t.autoScale!==false?$0(r,o):ns(r,o??1)};ee.register("current",Jc);var aE=Yc,iE=ns,sE=Kc;var on=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},Q0=(e,t=false,r)=>{if(!e)return null;let o=on(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)},as=e=>{if(!e)return null;let t=on(e);return t?t.toRelative():"Invalid Date"},_0=(e,t)=>{if(!e)return null;let r=on(e);return r?(t?r.setZone(t):r).toLocaleString(luxon.DateTime.DATETIME_MED_WITH_WEEKDAY):"Invalid Date"},eC=e=>{if(!e)return null;let t=on(e);return t?t.toISO():null},tC=(e,t,r)=>{if(!e)return null;let o=on(e);return o?(r?o.setZone(r):o).toFormat(t):"Invalid Date"},uE=e=>{let t=on(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},Im=(e,t)=>{if(t.hideWhenNull&&e==null)return null;if(e==null)return t.nullText??null;let r=on(e);if(!r)return t.nullText??"Invalid Date";let o=t.timezone?r.setZone(t.timezone):r;if(t.relative)return o.toRelative();if(t.format)return o.toFormat(t.format);if(t.dateStyle||t.timeStyle){let n={};if(t.dateStyle)switch(t.dateStyle){case "short":n.date=luxon.DateTime.DATE_SHORT;break;case "medium":n.date=luxon.DateTime.DATE_MED;break;case "long":n.date=luxon.DateTime.DATE_FULL;break;case "full":n.date=luxon.DateTime.DATE_HUGE;break}if(t.timeStyle)switch(t.timeStyle){case "short":n.time=luxon.DateTime.TIME_SIMPLE;break;case "medium":n.time=luxon.DateTime.TIME_WITH_SECONDS;break;case "long":case "full":n.time=luxon.DateTime.TIME_WITH_SHORT_OFFSET;break}if(n.date&&n.time)return o.toLocaleString({...n.date,...n.time});if(n.date)return o.toLocaleString(n.date);if(n.time)return o.toLocaleString(n.time)}return o.toLocaleString(luxon.DateTime.DATETIME_SHORT)};ee.register("date",(e,t,r)=>Q0(e,typeof t=="boolean"?t:false,typeof r=="string"?r:void 0));ee.register("relativeTime",e=>as(e));ee.register("fullDateTime",(e,t)=>_0(e,typeof t=="string"?t:void 0));ee.register("isoString",e=>eC(e));ee.register("customDateFormat",(e,t,r)=>typeof t=="string"?tC(e,t,typeof r=="string"?r:void 0):null);var jc=(e,t=1)=>se(e)?null:`${e.toFixed(t)} m`,rC=(e,t=1)=>se(e)?null:`${(e*100).toFixed(t)} cm`,oC=(e,t=0)=>se(e)?null:`${(e*1e3).toFixed(t)} mm`,qc=(e,t=1)=>se(e)?null:`${(e/1e3).toFixed(t)} km`,Xc=(e,t=0)=>se(e)?null:`${e.toFixed(t)} ft`,nC=(e,t=1)=>se(e)?null:`${e.toFixed(t)} in`,Zc=(e,t=1)=>se(e)?null:`${e.toFixed(t)} mi`,$c=(e,t=0)=>se(e)?null:`${e.toFixed(t)} yd`,gE=(e,t=1)=>se(e)?null:`${e.toFixed(t)} nm`,bE=e=>e*3.28084,xE=e=>e/3.28084,hE=e=>e*1.60934,yE=e=>e/1.60934,vE=e=>e/5280,Fm=e=>e*5280,CE=e=>e/1609.34,SE=e=>e*1609.34,wE=e=>e*.9144,NE=e=>e/.9144,kE=e=>e*2.54,TE=e=>e/2.54,Bm=(e,t=false,r=1)=>{if(se(e))return null;let o=Math.abs(e);return t?o>=1e3?qc(e,r):o<.01?oC(e,0):o<1?rC(e,r):jc(e,r):o<.01?Xc(Fm(e),0):o<.1?$c(Fm(e)/3,0):Zc(e,r)},Vm=(e,t)=>{if(t.hideWhenNull&&e==null||t.hideWhenZero&&e===0)return null;if(e==null)return t.nullText??null;let r=typeof e=="string"?parseFloat(e):Number(e);if(isNaN(r))return t.nullText??null;let o=t.decimals??1;if(t.autoScale){let n=t.unit==="m"||t.unit==="km";return Bm(r,n,o)}switch(t.unit){case "km":return qc(r,o);case "ft":return Xc(r,o);case "mi":return Zc(r,o);case "yd":return $c(r,o);default:return jc(r,o)}};ee.register("miles",(e,t)=>typeof e=="number"?Zc(e,typeof t=="number"?t:1):null);ee.register("kilometers",(e,t)=>typeof e=="number"?qc(e,typeof t=="number"?t:1):null);ee.register("meters",(e,t)=>typeof e=="number"?jc(e,typeof t=="number"?t:1):null);ee.register("feet",(e,t)=>typeof e=="number"?Xc(e,typeof t=="number"?t:0):null);ee.register("yards",(e,t)=>typeof e=="number"?$c(e,typeof t=="number"?t:0):null);ee.register("inches",(e,t)=>typeof e=="number"?nC(e,typeof t=="number"?t:1):null);ee.register("autoScaleDistance",(e,t,r)=>typeof e=="number"?Bm(e,typeof t=="boolean"?t:false,typeof r=="number"?r:1):null);var Qc=(e,t=1)=>se(e)?null:`${e.toFixed(t)} Wh`,_c=(e,t=1)=>se(e)?null:`${(e/1e3).toFixed(t)} kWh`,zm=(e,t=1)=>se(e)?null:`${(e/1e6).toFixed(t)} MWh`,Om=(e,t=1)=>se(e)?null:`${(e/1e9).toFixed(t)} GWh`,Hm=(e,t=1)=>{if(se(e))return null;let r=Math.abs(e);return r>=1e9?Om(e,t):r>=1e6?zm(e,t):r>=1e3?_c(e,t):Qc(e,t)},aC={Wh:1,kWh:1e3,MWh:1e6,GWh:1e9},ed=(e,t)=>{if(t.hideWhenNull&&e==null||t.hideWhenZero&&e===0)return null;if(e==null)return t.nullText??null;let r=typeof e=="string"?parseFloat(e):Number(e);if(isNaN(r))return t.nullText??null;let o=t.sourceUnit?r*aC[t.sourceUnit]:r,n=t.decimals??1;if(t.unit)switch(t.unit){case "GWh":return Om(o,n);case "MWh":return zm(o,n);case "kWh":return _c(o,n);case "Wh":return Qc(o,n)}return t.autoScale!==false?Hm(o,n):Qc(o,n)};ee.register("kWh",e=>typeof e=="number"?_c(e):null);ee.register("autoScaleEnergy",(e,t)=>typeof e=="number"?Hm(e,typeof t=="number"?t:1):null);ee.register("energy",ed);var is=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},td=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():is(e)},Qn=e=>e?e.startsWith("+")||e.length>11?td(e):is(e):null,Wm=(e,t)=>{if(t.hideWhenNull&&e==null)return null;if(e==null)return t.nullText??null;let r=String(e);if(t.international)return td(r);switch(t.country){case "US":case "CA":return is(r);default:return Qn(r)}};ee.register("phoneNumber",e=>typeof e=="string"?Qn(e):null);ee.register("usPhone",e=>typeof e=="string"?is(e):null);ee.register("internationalPhone",e=>typeof e=="string"?td(e):null);var ss=(e,t=0)=>se(e)?null:t===0?`${Math.round(e)} W`:`${e.toFixed(t)} W`,rd=(e,t=1)=>se(e)?null:`${(e/1e3).toFixed(t)} kW`,od=(e,t=1)=>se(e)?null:`${(e/1e6).toFixed(t)} MW`,nd=(e,t=2)=>se(e)?null:`${(e/1e9).toFixed(t)} GW`,iC=(e,t)=>{if(se(e))return null;let r=Math.abs(e);return r>=1e9?nd(e,t??2):r>=1e6?od(e,t??1):r>=1e3?rd(e,t??1):ss(e,t??0)},ad=(e,t)=>{if(t.hideWhenNull&&e==null||t.hideWhenZero&&e===0)return null;if(e==null)return t.nullText??null;let r=typeof e=="string"?parseFloat(e):Number(e);if(isNaN(r))return t.nullText??null;let o=t.decimals;if(t.unit)switch(t.unit){case "GW":return nd(r,o??2);case "MW":return od(r,o??1);case "kW":return rd(r,o??1);case "W":return ss(r,o??0)}return t.autoScale!==false?iC(r,o):ss(r,o??0)};ee.register("power",ad);var FE=ss,BE=rd,VE=od,zE=nd;var id=(e,t=1)=>se(e)?null:`${(e*1e3).toFixed(t)} m\u03A9`,ls=(e,t=1)=>se(e)?null:`${e.toFixed(t)} \u03A9`,Gm=(e,t=1)=>se(e)?null:`${(e/1e3).toFixed(t)} k\u03A9`,Um=(e,t=2)=>se(e)?null:`${(e/1e6).toFixed(t)} M\u03A9`,sC=(e,t)=>{if(se(e))return null;let r=Math.abs(e);return r>=1e6?Um(e,t??2):r>=1e3?Gm(e,t??1):r<1?id(e,t??1):ls(e,t??1)},sd=(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 Um(r,o??2);case "k\u03A9":return Gm(r,o??1);case "m\u03A9":return id(r,o??1);case "\u03A9":return ls(r,o??1)}return t.autoScale!==false?sC(r,o):ls(r,o??1)};ee.register("resistance",sd);ee.register("ohms",e=>typeof e=="number"?ls(e):null);ee.register("milliohms",e=>typeof e=="number"?id(e):null);var Ym=e=>{switch(e){case "FAHRENHEIT":return "F";case "CELSIUS":return "C";case "KELVIN":return "K";default:return "F"}},Km=(e,t=0)=>se(e)?null:`${e.toFixed(t)}\xB0F`,Jm=(e,t=true,r=0)=>se(e)?null:`${(t?(e-32)*(5/9):e).toFixed(r)}\xB0C`,jm=(e,t=true,r=0)=>se(e)?null:`${(t?(e-32)*(5/9)+273.15:e+273.15).toFixed(r)}K`,lC=e=>e*9/5+32,cC=e=>(e-32)*(5/9),KE=e=>e+273.15,dC=e=>e-273.15,JE=e=>cC(e)+273.15,jE=e=>lC(dC(e)),qm=(e,t="F",r=0)=>{if(se(e))return null;switch(typeof t=="string"&&t.length>1?Ym(t):t){case "C":return Jm(e,true,r);case "K":return jm(e,true,r);default:return Km(e,r)}},Xm=(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?Ym(n):n){case "C":return ((r-32)*.5555555555555556).toFixed(o);case "K":return ((r-32)*.5555555555555556+273.15).toFixed(o);default:return r.toFixed(o)}return qm(r,n,o)};ee.register("temperature",(e,t,r)=>typeof e=="number"?qm(e,typeof t=="string"?t:"F",typeof r=="number"?r:0):null);ee.register("fahrenheit",(e,t)=>typeof e=="number"?Km(e,typeof t=="number"?t:0):null);ee.register("celsius",(e,t,r)=>typeof e=="number"?Jm(e,typeof t=="boolean"?t:true,typeof r=="number"?r:0):null);ee.register("kelvin",(e,t,r)=>typeof e=="number"?jm(e,typeof t=="boolean"?t:true,typeof r=="number"?r:0):null);var uC=(e,t)=>!!(t.hideWhenNull&&e==null||t.hideWhenZero&&e===0),Zm=e=>e?.toUpperCase()??"",$m=e=>e?.toLowerCase()??"",Qm=e=>e?e.charAt(0).toUpperCase()+e.slice(1).toLowerCase():"",_m=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(" ")},ef=e=>e?e.split(/\s+/).map(t=>t.charAt(0).toUpperCase()+t.slice(1).toLowerCase()).join(" "):"",tf=e=>e?e.charAt(0).toUpperCase()+e.slice(1):"",rf=e=>e?e.replace(/([A-Z])/g," $1").replace(/^./,t=>t.toUpperCase()).trim():"",of=e=>e?e.toLowerCase().split("_").map(t=>tf(t)).join(" "):"",pC=e=>e?e.includes("_")?of(e):e.toUpperCase()===e?tf(e.toLowerCase()):rf(e):"",_n=(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)}`},cs=(e,t=8)=>e?e.length<=t?e:`...${e.slice(-t)}`:"",ds=(e,t=16,r="...")=>e?e.length<=t?e:e.slice(0,t)+r:"",mC=e=>{if(!e)return "";let t=e.toString(),r=t.slice(-4),o=t.length-4;return o>0?"*".repeat(o)+r:t},nf=(e,t)=>{if(uC(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=Zm(r);break;case "lowercase":r=$m(r);break;case "capitalize":r=ef(r);break;case "titleCase":r=_m(r);break;case "sentenceCase":r=Qm(r);break}}),t.truncate){let{length:o,position:n,ellipsis:a="..."}=t.truncate;switch(n){case "start":r=cs(r,o);break;case "middle":r=_n(r,o);break;case "end":r=ds(r,o,a);break}}return r};ee.register("uppercase",e=>Zm(String(e)));ee.register("lowercase",e=>$m(String(e)));ee.register("sentenceCase",e=>Qm(String(e)));ee.register("titleCase",e=>_m(String(e)));ee.register("capitalize",e=>ef(String(e)));ee.register("camelCaseToWords",e=>rf(String(e)));ee.register("snakeCaseToWords",e=>of(String(e)));ee.register("enumToSentenceCase",e=>pC(String(e)));ee.register("truncateMiddle",(e,t)=>_n(String(e),typeof t=="number"?t:16));ee.register("truncateStart",(e,t)=>cs(String(e),typeof t=="number"?t:8));ee.register("truncateEnd",(e,t,r)=>ds(String(e),typeof t=="number"?t:16,typeof r=="string"?r:"..."));ee.register("secret",e=>mC(String(e)));var ld=(e,t=0)=>{if(se(e))return null;let r=e*1e3;return t===0?`${Math.round(r)} mV`:`${r.toFixed(t)} mV`},us=(e,t=0)=>se(e)?null:t===0?`${Math.round(e)} V`:`${e.toFixed(t)} V`,cd=(e,t=1)=>se(e)?null:`${(e/1e3).toFixed(t)} kV`,fC=(e,t)=>{if(se(e))return null;let r=Math.abs(e);return r>=1e3?cd(e,t??1):r<1?ld(e,t??0):us(e,t??0)},dd=(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 cd(r,o??1);case "mV":return ld(r,o??0);case "V":return us(r,o??0)}return t.autoScale!==false?fC(r,o):us(r,o??0)};ee.register("voltage",dd);var _E=ld,eM=us,tM=cd;var gC=(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:Em(r,t.decimals??0)},rn=(e,t)=>{switch(t.type){case "text":return nf(e,t);case "number":return Lm(e,t);case "percentage":return gC(e,t);case "currency":return Am(e,t);case "date":return Im(e,t);case "boolean":return Rm(e,t);case "energy":return ed(e,t);case "power":return ad(e,t);case "voltage":return dd(e,t);case "current":return Jc(e,t);case "resistance":return sd(e,t);case "temperature":return Xm(e,t);case "distance":return Vm(e,t);case "phone":return Wm(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}},gM=(e,t)=>({type:e,...t});function Yt(...e){return e.filter(Boolean).join(" ")}var Or={displayXl:"text-display-xl",displayLg:"text-display-lg",displayMd:"text-display-md",displaySm:"text-display-sm",headingXl:"text-heading-xl",headingLg:"text-heading-lg",headingMd:"text-heading-md",headingSm:"text-heading-sm",bodyLg:"text-body-lg",bodyMd:"text-body-md",bodySm:"text-body-sm",labelLg:"text-label-lg",labelMd:"text-label-md",labelSm:"text-label-sm",code:"text-code",agent:"text-agent"};function ct(e,...t){return Yt(Or[e],...t)}var ea={xs:16,sm:20,md:24,lg:32,xl:40,"2xl":48},B=Ie.memo(({name:e,size:t="md",color:r,weight:o="regular",className:n,ariaLabel:a,...i})=>{let s=bC__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 ea?ea[t]:t,l=tailwindMerge.twMerge("inline-block flex-shrink-0",!r&&"text-current",n);return jsxRuntime.jsx(s,{...i,size:c,color:r,weight:o,className:l,"aria-label":a||`${e} icon`,"data-testid":`icon-${e}`})});B.displayName="Icon";var lf=Ie.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:d,...u})=>{let m=typeof n=="string"&&n in ea?ea[n]:n,p=r?typeof r=="string"&&r in ea?ea[r]:r:m*1.75,f=tailwindMerge.twMerge("inline-flex items-center justify-center flex-shrink-0",t==="circle"?"rounded-full":"rounded-lg",e==="subtle"&&"bg-background-muted",e==="solid"&&"bg-action-brand text-[color:var(--color-action-brand-text)]",e==="outline"&&"border-2 border-current",o);return jsxRuntime.jsx("div",{className:f,style:{width:p,height:p},children:jsxRuntime.jsx(B,{...u,name:i,size:n,color:s,weight:c,className:a,ariaLabel:l})})});lf.displayName="IconWithContainer";function nr({transparent:e=false,className:t,children:r,...o}){return jsxRuntime.jsx(reactAriaComponents.ModalOverlay,{...o,className:reactAriaComponents.composeRenderProps(t,(n,a)=>tailwindMerge.twMerge("fixed inset-0 z-50","outline-none focus:outline-none focus-visible:outline-none ring-0 focus:ring-0 focus-visible:ring-0",e?"bg-transparent":["bg-gradient-to-br from-background-modal/20 via-background-modal/15 to-background-modal/20","backdrop-blur-[2px]","supports-[backdrop-filter]:bg-background-modal/15"].join(" "),a.isEntering&&["animate-in fade-in","duration-300 ease-out"].join(" "),a.isExiting&&["animate-out fade-out","duration-200 ease-in"].join(" "),n)),children:r})}function PC({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 rt({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 d=jsxRuntime.jsxs(reactAriaComponents.Popover,{offset:l,...i,className:reactAriaComponents.composeRenderProps(o,(u,m)=>PC({...m,className:u,disableGroup:a})),children:[t&&jsxRuntime.jsx(reactAriaComponents.OverlayArrow,{children:jsxRuntime.jsx("svg",{width:12,height:12,viewBox:"0 0 12 12",className:"block fill-background-surface stroke-border-default stroke-1 group-placement-left:-rotate-90 group-placement-right:rotate-90 group-placement-bottom:rotate-180 forced-colors:fill-[Canvas] forced-colors:stroke-[ButtonBorder]",children:jsxRuntime.jsx("path",{d:"M0 0 L6 6 L12 0"})})}),e]});return r?jsxRuntime.jsx(nr,{isDismissable:n,children:jsxRuntime.jsx(reactAriaComponents.Modal,{className:"outline-none focus:outline-none focus-visible:outline-none ring-0 focus:ring-0 focus-visible:ring-0",isDismissable:n,children:d})}):d}var EC={"--color-brand-primary":["--color-action-brand","--color-text-link-default","--action-brand-background"],"--color-brand-dark":["--color-action-brand-hover","--color-text-link-hover","--action-brand-hover"],"--color-action-brand":["--color-text-link-default","--action-brand-background"],"--color-action-brand-hover":["--color-text-link-hover","--action-brand-hover"]};function cf(e){let t={...e};for(let[r,o]of Object.entries(EC))if(e[r])for(let n of o)e[n]||(t[n]=e[r]);return t}function df(e){return e.replace(/[{}<>]/g,"")}function uf(e){return Object.entries(e).map(([t,r])=>`${df(t)}: ${df(r)};`).join(" ")}function mf({variables:e,darkVariables:t,children:r}){let n=Ie.useId().replace(/:/g,""),a=e&&Object.keys(e).length>0,i=t&&Object.keys(t).length>0;if(!a&&!i)return jsxRuntime.jsx(jsxRuntime.Fragment,{children:r});let s=a?cf(e):null,c=i?cf(t):null,l=s?`[data-brand-scope="${n}"] { ${uf(s)} }`:"",d=c?`.theme-dark [data-brand-scope="${n}"] { ${uf(c)} }`:"",u=[l,d].filter(Boolean).join(`
|
|
4
|
-
`);return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("style",{dangerouslySetInnerHTML:{__html:u}}),jsxRuntime.jsx("div",{"data-brand-scope":n,children:r})]})}var Oa=new Map,kt=(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)}`),Oa.has(r))return Oa.get(r);try{let o=document.body||document.documentElement,a=getComputedStyle(o).getPropertyValue(r).trim();if(a)return Oa.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)"?(Oa.set(r,s),s):t}catch(o){return console.warn(`Failed to resolve color for ${e}:`,o),t}},ps=()=>{Oa.clear();},Ha=()=>{let e=[];for(let t=1;t<=12;t++){let r=kt(`--color-viz-categorical-${t}`,"");r&&e.push(r);}return e.length===0?ff():e},ff=()=>["#5424db","#d92361","#e86a00","#5d89ff","#9a47e2","#f24cb8","#0ba286","#9c28af","#036e45","#52a119","#ff513d","#046691"],md=()=>kt("--color-viz-default","#444ae1"),LC=(e,t)=>{let r={},o=Ha();return e.forEach((n,a)=>{t&&t[n]?r[n]=t[n]:r[n]=o[a%o.length];}),r};var gf=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},AC=e=>gf(e)?kt("--color-text-primary","#333333"):kt("--color-text-inverse","#ffffff"),bf=(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()},fd=e=>{let t=Ha(),r={};return e.forEach((o,n)=>{r[o]=t[n%t.length];}),r};var gd=(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)},bd=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]},xf=(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},xd=(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=kt(i);n.push(s);}return n},hd=(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=kt(i);n.push(s);}return n},Wa=(e,t,r,o="viridis")=>{let n=xd(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]},Ga=(e,t,r,o,n="redYellowBlue")=>{let a=hd(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 yd=Ie.createContext({mode:"system",colorMode:"light",isDarkTheme:false,toggleTheme:()=>{}}),Kt=()=>Ie.useContext(yd);function zC(){return typeof window>"u"?"light":window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function vf(){if(typeof window>"u")return "system";let e=localStorage.getItem("colorModePreference");return e==="light"||e==="dark"||e==="system"?e:"system"}function Cf(e){return e==="system"?zC():e}var wf=({children:e})=>{let[t,r]=Ie.useState(vf),[o,n]=Ie.useState(()=>Cf(vf())),a=o==="dark",i=Ie.useCallback(c=>{c==="dark"?(document.documentElement.classList.add("theme-dark"),document.body.classList.add("theme-dark")):(document.documentElement.classList.remove("theme-dark"),document.body.classList.remove("theme-dark")),ps();},[]);Ie.useEffect(()=>{ps();let c=Cf(t);if(n(c),i(c),t==="system"){let l=window.matchMedia("(prefers-color-scheme: dark)"),d=u=>{let m=u.matches?"dark":"light";n(m),i(m);};return l.addEventListener("change",d),()=>{l.removeEventListener("change",d);}}},[t,i]);let s=Ie.useCallback(()=>{r(c=>{let l=c==="system"?"light":c==="light"?"dark":"system";return localStorage.setItem("colorModePreference",l),l});},[]);return jsxRuntime.jsx(yd.Provider,{value:{mode:t,colorMode:o,isDarkTheme:a,toggleTheme:s},children:e})};function ta(e){return e instanceof Date&&!Number.isNaN(e.getTime())}function nn(e,t){return ta(e)?t.format(e):""}function Nf(e){if(!ta(e.start)||!ta(e.end))return ()=>"";if((e.end.getTime()-e.start.getTime())/(1e3*60*60)<=720){let i=new Intl.DateTimeFormat("en",{month:"short",day:"numeric",hour:"numeric",minute:"2-digit"});return s=>nn(s,i)}let r=e.start.getFullYear(),o=e.end.getFullYear(),n=r!==o,a=new Intl.DateTimeFormat("en",{month:"short",day:"numeric",hour:"numeric",minute:"2-digit",...n&&{year:"numeric"}});return i=>nn(i,a)}function vd(e,t){if(!ta(e.start)||!ta(e.end))return ()=>"";let r=(e.end.getTime()-e.start.getTime())/(1e3*60*60),o=t?.compact??false,n=l=>d=>ta(d)?l(d):"";if(r<=24){if(o)return n(d=>{let u=d.getHours(),m=u>=12?"pm":"am";return `${u%12||12}${m}`});let l=new Intl.DateTimeFormat("en",{hour:"numeric",minute:"2-digit"});return d=>nn(d,l)}if(r<=48){if(o)return n(d=>{let u=d.getMonth()+1,m=d.getDate(),p=d.getHours(),f=p>=12?"p":"a",g=p%12||12;return `${u}/${m} ${g}${f}`});let l=new Intl.DateTimeFormat("en",{month:"short",day:"numeric",hour:"numeric"});return d=>nn(d,l)}if(r<=168){if(o)return n(d=>{let u=d.getDate();return `${d.toLocaleDateString("en",{weekday:"short"}).charAt(0)}${u}`});let l=new Intl.DateTimeFormat("en",{weekday:"short",day:"numeric"});return d=>nn(d,l)}if(r<=720){if(o)return n(d=>{let u=d.getMonth()+1,m=d.getDate();return `${u}/${m}`});let l=new Intl.DateTimeFormat("en",{month:"short",day:"numeric"});return d=>nn(d,l)}let a=e.start.getFullYear(),i=e.end.getFullYear(),s=a!==i;if(o)return n(l=>{let d=l.getMonth()+1,u=l.getDate(),m=s?`/${l.getFullYear().toString().slice(-2)}`:"";return `${d}/${u}${m}`});let c=new Intl.DateTimeFormat("en",{month:"short",day:"numeric",...s&&{year:"numeric"}});return l=>nn(l,c)}function Ke(e=false){return `${e?"outline outline-1 outline-border-input data-[focus-visible]:outline-2 data-[focus-visible]:outline-action-default data-[focus-visible]:outline-offset-0 invalid:outline-2 invalid:outline-feedback-error-border group-invalid:outline-2 group-invalid:outline-feedback-error-border forced-colors:focus:outline-[Highlight] forced-colors:focus:outline-2 forced-colors:focus:outline-offset-2":"outline-none data-[focus-visible]:outline data-[focus-visible]:outline-2 data-[focus-visible]:outline-action-default data-[focus-visible]:outline-offset-0 invalid:outline-2 invalid:outline-feedback-error-border group-invalid:outline-2 group-invalid:outline-feedback-error-border forced-colors:focus:outline-[Highlight] forced-colors:focus:outline-2 forced-colors:focus:outline-offset-2"}`}function ve(e,t){return reactAriaComponents.composeRenderProps(e,r=>tailwindMerge.twMerge(t,r))}var Be={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 UC="flex font-medium justify-center items-center gap-2 text-center transition rounded-[var(--control-border-radius)] whitespace-nowrap box-border",YC="bg-action-primary text-[color:var(--color-action-primary-text)] hover:bg-action-primary-hover forced-colors:bg-[ButtonText] forced-colors:text-[ButtonFace] border-2 border-transparent",KC={primary:YC,secondary:"bg-action-secondary text-[color:var(--color-action-secondary-text)] border-2 border-border-muted hover:bg-action-secondary-hover forced-colors:border-[ButtonBorder] forced-colors:bg-[ButtonFace] forced-colors:text-[ButtonText]",ghost:"border-none text-text-primary hover:bg-text-primary/5 forced-colors:text-[ButtonText] forced-colors:hover:bg-[ButtonFace]",destructive:"bg-transparent text-feedback-error-text border-2 border-border-muted hover:bg-feedback-error-background/50 forced-colors:border-[ButtonBorder] forced-colors:bg-[ButtonFace] forced-colors:text-[Mark]",link:"!text-action-primary hover:text-action-primary/90 hover:underline hover:decoration-2 hover:underline-offset-4",icon:"border-none text-text-primary hover:bg-background-hover hover:text-text-primary forced-colors:text-[ButtonText] forced-colors:hover:bg-[ButtonFace] p-1 flex-shrink-0 rounded-[var(--control-border-radius)]",unstyled:"bg-transparent"},Tf={full:"w-full",default:"w-fit"},JC="opacity-50 cursor-not-allowed pointer-events-none",jC="opacity-100 cursor-pointer",qC={"top-right":"-right-2 -top-2","top-left":"-left-2 -top-2","bottom-right":"-right-2 -bottom-2","bottom-left":"-left-2 -bottom-2"},XC={primary:"bg-action-primary text-[color:var(--color-action-primary-text)]",destructive:"bg-feedback-error-border text-text-inverse"};function ZC(e){return !e||e==="default"||e==="brand"?"primary":e}function $C(e){let{variant:t="primary",size:r="md",isDisabled:o,fullWidth:n=false,isLoading:a=false}=e,i=ZC(t),s=i==="unstyled"?"":`${UC} ${KC[i]}`;i!=="unstyled"&&(s+=` ${Be[r].text} ${Be[r].height} ${Be[r].padding} ${Be[r].gap}`),o||a?s+=` ${JC}`:s+=` ${jC}`,n?s+=` ${Tf.full}`:s+=` ${Tf.default}`;let c=i==="primary"?"focus-visible:outline-action-primary":void 0;return [s,Ke(),c].filter(Boolean).join(" ")}function _(e){let{icon:t,children:r,isLoading:o=false,loadingText:n,loadingIndicator:a,size:i="md",iconPosition:s="left",iconWeight:c,href:l,className:d,badgeNumber:u,badgeVariant:m="primary",badgePosition:p="top-right",style:f,target:g,rel:b,...x}=e,v=t?jsxRuntime.jsx(B,{name:t,size:i,weight:c}):null,C=jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[s==="left"&&v,typeof r=="function"?null:r,s==="right"&&v]}),y=jsxRuntime.jsxs("div",{className:"relative inline-flex items-center justify-center",children:[jsxRuntime.jsx("div",{className:"absolute inset-0 flex items-center justify-center",children:a||jsxRuntime.jsx(B,{name:"CircleNotch",size:i,className:"animate-spin","aria-hidden":"true"})}),jsxRuntime.jsx("div",{className:"invisible","aria-hidden":"true",children:C}),n&&jsxRuntime.jsx("span",{className:"sr-only",role:"status","aria-live":"polite",children:n})]}),S=(u??0)>0,N=tailwindMerge.twMerge($C(e),d),T=l?{href:l,target:g,rel:b,...x}:{};if(l){let{onPress:P,onPressStart:E,onPressEnd:I,onPressChange:A,onPressUp:w,onAuxClick:k,onContextMenu:H,onDoubleClick:G,...z}=x;Object.assign(T,z);}let M=l?jsxRuntime.jsx(reactAriaComponents.Link,{...T,...o&&{"aria-busy":true},style:S?void 0:f,className:N,children:o?y:typeof r=="function"?(function(P){return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[s==="left"&&v,r(P),s==="right"&&v]})}):C}):jsxRuntime.jsx(reactAriaComponents.Button,{...x,...o&&{"aria-busy":true},style:S?void 0:f,className:N,children:o?y:typeof r=="function"?(function(P){return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[s==="left"&&v,r(P),s==="right"&&v]})}):C});return S?jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("relative flex",d),style:f,children:[M,jsxRuntime.jsx("span",{className:`absolute ${qC[p]} flex h-5 w-5 items-center justify-center rounded-full ${XC[m]} text-xs font-medium`,"aria-label":`${u} items`,children:u})]}):M}function Sd({action:e,defaultVariant:t,defaultSize:r="lg"}){let o=!!e.formId;return jsxRuntime.jsx(_,{type:o?"submit":"button",form:o?e.formId:void 0,size:e.size||r,variant:e.variant||t,onPress:o?void 0:e.onPress,isLoading:e.isLoading,isDisabled:e.isDisabled,children:e.label})}function Ro({primaryAction:e,secondaryAction:t,tertiaryAction:r,footerContent:o}){let n=e||t||r;return !n&&!o?null:jsxRuntime.jsxs("div",{className:`flex w-full flex-col items-center justify-center border-t p-4 ${o?"h-28":""}`,children:[o&&jsxRuntime.jsx("div",{className:"flex h-10 justify-center",children:o}),n&&jsxRuntime.jsxs("div",{className:"flex w-full items-center justify-between gap-3",children:[jsxRuntime.jsx("div",{children:r&&jsxRuntime.jsx(Sd,{action:r,defaultVariant:"destructive"})}),jsxRuntime.jsxs("div",{className:"flex items-center gap-3",children:[t&&jsxRuntime.jsx(Sd,{action:t,defaultVariant:"secondary"}),e&&jsxRuntime.jsx(Sd,{action:e,defaultVariant:"primary"})]})]})]})}var QC={heading:{sm:Or.headingSm,md:Or.headingMd,lg:Or.headingLg,xl:Or.headingXl},display:{sm:Or.displaySm,md:Or.displayMd,lg:Or.displayLg,xl:Or.displayXl}},_C={page:"h-16 leading-[62px]"};function Jt({tag:e="h1",variant:t="heading",size:r="lg",height:o,className:n="",children:a}){let i=r==="xs"?"sm":r,s=QC[t][i],c=o?_C[o]:"";return jsxRuntime.jsx(e,{className:Yt(s,"text-text-primary",c,n),children:a})}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(_,{variant:"icon",onPress:a,className:"absolute left-6","aria-label":"Go back",children:jsxRuntime.jsx(B,{name:"CaretLeft","data-testid":"back-arrow"})}),i||jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[e&&jsxRuntime.jsx(Jt,{size:"xs",children:e}),t&&!r&&jsxRuntime.jsx(_,{variant:"icon",onPress:t,"aria-label":"Close dialog",children:jsxRuntime.jsx(B,{name:"X","data-testid":"close-button"})})]})]});var J=({width:e,height:t,variant:r="rect",animation:o="pulse",gradient:n=false,flex:a=false,stack:i,responsive:s,delay:c=0,adjustAnimationSpeedBasedOnWidth:l=false,ariaLabel:d,className:u,"data-testid":m})=>{let[p,f]=Ie.useState(c===0);if(Ie.useEffect(()=>{if(c>0){let S=setTimeout(()=>f(true),c);return ()=>clearTimeout(S)}},[c]),!p)return null;let g=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 S=typeof e=="number"?e:parseFloat(String(e));return isNaN(S)?"":`animation-duration-[${Math.max(.8,S/100)}s]`})():"",x=o==="pulse"?`animate-pulse ${b}`:o==="wave"?`relative overflow-hidden before:absolute before:inset-0 before:bg-gradient-to-r before:from-transparent before:via-[var(--color-skeleton-wave)] before:to-transparent before:animate-wave ${b}`:"",v="rounded-sm";r==="circle"&&(v="rounded-full"),r==="text"&&(v="h-4 w-full rounded-sm");let C=a?"flex-1 min-w-0":"",y=s?Object.entries(s).map(([S,N])=>`${S}:w-[${N}]`).join(" "):"";return i?jsxRuntime.jsx("div",{className:"space-y-2","data-testid":m,children:i.map((S,N)=>jsxRuntime.jsx("div",{className:tailwindMerge.twMerge(g,x,v,C,y,u),style:{width:S,height:t}},N))}):jsxRuntime.jsx("div",{className:tailwindMerge.twMerge(g,x,v,C,y,u),style:{width:e,height:t},role:"presentation","aria-hidden":!d,"aria-label":d??void 0,"data-testid":m})},Df=({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 aS={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"},iS="rounded-lg",Nd={square:"aspect-square",video:"aspect-video",wide:"aspect-[2/1]",auto:""},sS={start:"justify-start",end:"justify-end",center:"justify-center",between:"justify-between"};function Ve({variant:e="outlined",className:t,children:r,isLoading:o=false,layout:n="default"}){return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("w-full overflow-hidden",aS[e],iS,n==="flex"&&"flex flex-col",t),"data-testid":"card",children:o?jsxRuntime.jsx(J,{width:"100%",height:"100%",className:"rounded-none"}):r})}function kd({title:e,subtitle:t,actions:r,className:o,isLoading:n=false}){return n?jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("p-6 pb-4",o),children:[jsxRuntime.jsxs("div",{className:"flex justify-between items-start mb-1",children:[jsxRuntime.jsx(J,{width:120,height:20}),jsxRuntime.jsx(J,{width:24,height:24})]}),t&&jsxRuntime.jsx(J,{width:200,height:16})]}):!e&&!t&&!r?null:jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("p-6 pb-4",o),children:jsxRuntime.jsxs("div",{className:"flex justify-between items-start gap-4",children:[jsxRuntime.jsxs("div",{className:"min-w-0 flex-1",children:[e&&jsxRuntime.jsx("div",{className:"mb-1",children:typeof e=="string"?jsxRuntime.jsx(Jt,{tag:"h3",size:"sm",className:"text-text-primary",children:e}):e}),t&&jsxRuntime.jsx("div",{className:ct("bodySm","text-text-secondary"),children:t})]}),r&&jsxRuntime.jsx("div",{className:"flex-shrink-0",children:r})]})})}function Td({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",Nd[r],o),children:jsxRuntime.jsx(J,{width:"100%",height:"100%"})}):n?jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("overflow-hidden",Nd[r],o),children:n}):e?jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("overflow-hidden",Nd[r],o),children:jsxRuntime.jsx("img",{src:e,alt:t||"",className:"w-full h-full object-cover",loading:"lazy"})}):null}function Pd({className:e,children:t,isLoading:r=false,fill:o=false}){let a=e?.match(/p(?:t|b|l|r|x|y)?-(?:\d+(?:\.\d+)?|px|\[.+?\])/)?"":"px-6 py-4";return r?jsxRuntime.jsx("div",{className:tailwindMerge.twMerge(a,o&&"flex-1 flex flex-col min-h-0",e),children:jsxRuntime.jsxs("div",{className:"space-y-2",children:[jsxRuntime.jsx(J,{width:"100%",height:16}),jsxRuntime.jsx(J,{width:"80%",height:16}),jsxRuntime.jsx(J,{width:"60%",height:16})]})}):t?jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("px-6 py-4 text-text-primary",o&&"flex-1 flex flex-col min-h-0",e),children:t}):null}function Rd({className:e,children:t,align:r="end",isLoading:o=false}){return o?jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("px-6 py-4 flex gap-2 justify-end",e),children:[jsxRuntime.jsx(J,{width:80,height:32}),jsxRuntime.jsx(J,{width:60,height:32})]}):t?jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("px-6 py-4 flex items-center gap-2",sS[r],e),children:t}):null}Ve.Header=kd;Ve.Media=Td;Ve.Content=Pd;Ve.Footer=Rd;var Rr=class extends Ie.Component{constructor(){super(...arguments);Ba(this,"state",{hasError:false});Ba(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(Ve,{children:[this.props.title&&jsxRuntime.jsx(Ve.Header,{title:this.props.title}),jsxRuntime.jsx(Ve.Content,{children:jsxRuntime.jsxs("div",{className:"flex flex-col items-center justify-center gap-4","data-testid":"error-boundary",children:[jsxRuntime.jsx("p",{className:"text-feedback-error-text",children:this.state.error?.message||"Something went wrong"}),jsxRuntime.jsx("button",{className:"rounded bg-action-default px-4 py-2 text-[color:var(--color-action-default-text)] hover:bg-action-default-hover",onClick:this.handleRetry,children:"Retry"})]})})]}):this.props.children}};var uS=.3,pS=.5;function ot({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:d=false,primaryAction:u,secondaryAction:m,footerContent:p,maxHeight:f="80vh",height:g,maxWidth:b="640px",contentPadding:x=true,showHandle:v=true,animationVariant:C="scale",className:y}){let[S,N]=Ie.useState(false),[T,M]=Ie.useState(0),[P,E]=Ie.useState(false),I=rs(s),A=I?.height??null,w=I?.keyboardOffset??0,k=Ie.useRef(null),H=Ie.useRef(null),G=Ie.useRef(null),z=Ie.useRef({isDragging:false,startY:0,startTime:0,pointerId:null});Ie.useEffect(()=>{if(s){let D=setTimeout(()=>{N(true),setTimeout(()=>N(false),600);},400);return ()=>clearTimeout(D)}},[s]),Ie.useEffect(()=>{s||(M(0),E(false),z.current={isDragging:false,startY:0,startTime:0,pointerId:null});},[s]),Ie.useEffect(()=>{let D=H.current;if(!D||!s)return;let F=null,L=h=>{let W=h.target;W&&["INPUT","TEXTAREA","SELECT"].includes(W.tagName)&&(F&&clearTimeout(F),F=setTimeout(()=>{W.scrollIntoView({block:"nearest",behavior:"smooth"});},320));};return D.addEventListener("focusin",L),()=>{D.removeEventListener("focusin",L),F&&clearTimeout(F);}},[s]);let Y=Ie.useCallback(D=>{l&&(D.pointerType!=="touch"&&D.pointerType!=="pen"||(G.current&&(clearTimeout(G.current),G.current=null),z.current={isDragging:true,startY:D.clientY,startTime:Date.now(),pointerId:D.pointerId},E(false),D.currentTarget.setPointerCapture(D.pointerId)));},[l]),Z=Ie.useCallback(D=>{let{isDragging:F,startY:L,pointerId:h}=z.current;if(!F||D.pointerId!==h)return;let W=D.clientY-L;M(Math.max(0,W));},[]),V=Ie.useCallback(D=>{let{isDragging:F,startY:L,startTime:h,pointerId:W}=z.current;if(!F||D.pointerId!==W)return;let U=D.clientY-L,K=Date.now()-h,te=U/K;z.current={isDragging:false,startY:0,startTime:0,pointerId:null};let j=(k.current?.getBoundingClientRect().height??0)*uS;(U>j||te>pS&&U>50)&&l?(c?.(),M(0)):(E(true),M(0),G.current=setTimeout(()=>{E(false),G.current=null;},200));},[l,c]);if(!s)return null;let O=t||r,R=u||m||p;return jsxRuntime.jsx(Rr,{children:jsxRuntime.jsx(nr,{isOpen:s,onOpenChange:D=>{D||c?.();},isDismissable:l,transparent:d,style:{paddingBottom:w>0?`${w}px`:void 0,transition:"padding-bottom 0.25s ease-out"},className:"flex items-end justify-center p-0 sm:p-4",children:jsxRuntime.jsx(reactAriaComponents.Modal,{className:"w-full max-w-full p-0 sm:p-2 outline-none focus:outline-none focus-visible:outline-none ring-0 focus:ring-0 focus-visible:ring-0",isDismissable:l,children:jsxRuntime.jsx("div",{ref:k,className:tailwindMerge.twMerge("w-full",P&&"transition-transform duration-200"),style:{transform:T>0?`translateY(${T}px)`:void 0},children:jsxRuntime.jsxs(reactAriaComponents.Dialog,{className:tailwindMerge.twMerge("relative flex w-full flex-col overflow-hidden","bg-background-surface","shadow-2xl shadow-black/30 dark:shadow-black/60","border-t border-x border-border-default/40","outline-none focus:outline-none focus-visible:outline-none ring-0 focus:ring-0 focus-visible:ring-0 focus:shadow-none","origin-bottom",C==="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)]",C==="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)]",y),style:{maxWidth:b,...g?{height:g}:{maxHeight:/\d/.test(f)?A!==null?`min(${f}, ${Math.max(A-8,0)}px, 100dvh)`:`min(${f}, 100dvh)`:f}},children:[v&&jsxRuntime.jsx("div",{className:"absolute top-0 left-0 right-0 h-8 z-10 flex justify-center items-start pt-2 touch-none cursor-grab active:cursor-grabbing",onPointerDown:Y,onPointerMove:Z,onPointerUp:V,onPointerCancel:V,children:jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("h-1 w-12 rounded-full bg-border-muted transition-all duration-300","hover:bg-border-default hover:w-16",S&&"animate-[handle-wiggle_0.6s_ease-in-out]")})}),O&&(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",{ref:H,className:tailwindMerge.twMerge("flex-1 min-h-0 overflow-y-auto overscroll-contain",x?"p-4":"p-0"),children:e}),R&&jsxRuntime.jsx(Ro,{primaryAction:u,secondaryAction:m,footerContent:p})]})})})})})}ot.displayName="Tray";function na({children:e,items:t,className:r,align:o="left",textAlign:n="left",size:a="md",onAction:i,header:s,footer:c,useMobileTray:l=true,popoverClassName:d}){let[u,m]=Ie.useState(false),{isMobile:p}=Gt();if(l&&p){let g=Ie__namespace.default.isValidElement(e)?Ie__namespace.default.cloneElement(e,{onPress:()=>m(true)}):e,v=(C=>{if(typeof C=="string")return C;if(Ie__namespace.default.isValidElement(C)){let y=C.props;if(typeof y.children=="string")return y.children;if(Array.isArray(y.children))return y.children.find(N=>typeof N=="string")||""}return ""})(e)||"Actions";return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("div",{className:r,children:g}),jsxRuntime.jsx(ot,{isOpen:u,onClose:()=>m(false),title:v,contentPadding:false,headerContent:s,footerContent:c,children:jsxRuntime.jsx("div",{className:"flex flex-col",children:t.map(C=>jsxRuntime.jsxs("button",{onClick:()=>{C.disabled||(C.onAction?C.onAction():i?.(C),m(false));},disabled:C.disabled,"data-testid":C.testId,className:tailwindMerge.twMerge("flex w-full items-center text-start transition-colors",!C.noPadding&&"px-6 py-3","border-b border-border-muted last:border-0",C.variant==="destructive"?"text-feedback-error-text hover:bg-feedback-error-background active:bg-feedback-error-background/80":"text-text-primary hover:bg-background-hover active:bg-background-hover/80",C.disabled&&"opacity-50 cursor-not-allowed"),children:[C.iconName&&jsxRuntime.jsx(B,{name:C.iconName,size:20,className:"mr-3 flex-shrink-0"}),jsxRuntime.jsx("div",{className:"flex flex-1 flex-col",children:C.render?C.render():jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("span",{className:C.subtitle?"font-medium":"",children:C.name}),C.subtitle&&jsxRuntime.jsx("span",{className:"text-sm text-text-secondary",children:C.subtitle})]})})]},C.id))})})]})}return jsxRuntime.jsx("div",{className:r,children:jsxRuntime.jsxs(reactAriaComponents.MenuTrigger,{children:[e,jsxRuntime.jsx(rt,{className:tailwindMerge.twMerge("w-fit min-w-[180px] overflow-auto rounded-[var(--control-border-radius)] border border-border-default","bg-background-surface shadow-lg","animate-in fade-in zoom-in-97","duration-200 ease-out","data-[exiting]:animate-out data-[exiting]:fade-out data-[exiting]:zoom-out-97","data-[exiting]:duration-150 data-[exiting]:ease-in",o==="right"?"origin-top-right":"origin-top-left",d),placement:o==="right"?"bottom end":"bottom start",children:jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("flex min-w-[180px] flex-col gap-1",d),children:[s?jsxRuntime.jsx("div",{className:"px-3 pb-2 pt-3",children:s}):null,jsxRuntime.jsx(reactAriaComponents.Menu,{className:"!outline-none",children:t.map(g=>jsxRuntime.jsx(xS,{id:g.id,onAction:()=>{g.onAction?g.onAction():i?.(g);},textAlign:n,size:a,iconName:g.iconName,isDisabled:g.disabled,variant:g.variant,subtitle:g.subtitle,render:g.render,noPadding:g.noPadding,"data-testid":g.testId,children:g.name},g.id))}),c?jsxRuntime.jsx("div",{className:"px-3 pb-3 pt-2",children:c}):null]})})]})})}function xS({textAlign:e="left",iconName:t,size:r="md",isDisabled:o,children:n,variant:a="default",subtitle:i,render:s,noPadding:c,...l}){let d={sm:"px-3 py-2 text-sm",md:i?"px-4 py-2.5 text-base":"px-4 py-2 text-base"},u="text-text-primary hover:bg-background-hover data-[focused]:bg-background-hover data-[focus-visible]:ring-2 data-[focus-visible]:ring-action-primary data-[focus-visible]:ring-inset",m={primary:u,default:u,destructive:"text-feedback-error-text hover:bg-feedback-error-background data-[focused]:bg-feedback-error-background data-[focus-visible]:ring-2 data-[focus-visible]:ring-feedback-error-border data-[focus-visible]:ring-inset"};return s?jsxRuntime.jsx(reactAriaComponents.MenuItem,{...l,isDisabled:o,className:tailwindMerge.twMerge("group box-border flex w-full cursor-pointer items-center rounded-sm outline-none transition-colors",!c&&d[r],m[a],e==="right"?"justify-end":"justify-start",o&&"pointer-events-none opacity-50"),children:s()}):jsxRuntime.jsxs(reactAriaComponents.MenuItem,{...l,isDisabled:o,className:tailwindMerge.twMerge("group box-border flex w-full cursor-pointer items-center rounded-sm outline-none transition-colors",!c&&d[r],m[a],e==="right"?"justify-end":"justify-start",o&&"pointer-events-none opacity-50"),children:[t&&e==="left"&&jsxRuntime.jsx(B,{name:t,size:r==="sm"?16:20,className:"mr-3 flex-shrink-0"}),jsxRuntime.jsxs("div",{className:"flex flex-1 flex-col",children:[jsxRuntime.jsx("span",{className:i?"font-medium":"",children:n}),i&&jsxRuntime.jsx("span",{className:"text-sm text-text-secondary",children:i})]}),t&&e==="right"&&jsxRuntime.jsx(B,{name:t,size:r==="sm"?16:20,className:"ml-3 flex-shrink-0"})]})}var no=({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 hr({state:e,message:t,className:r,customIndicator:o}){if(e!=="loading-more")return null;let n=jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("flex items-center justify-center gap-2 py-4","text-text-secondary",r),"aria-label":t||"Loading",children:[jsxRuntime.jsx(no,{size:20,color:"text-text-secondary"}),t&&jsxRuntime.jsx("span",{className:"text-sm","aria-hidden":"true",children:t})]});return o||n}var aa=Ie.createContext({variant:"timeline",size:"md"});function Vf(){return Ie.useContext(aa)}function bs(e){return Ie.isValidElement(e)&&e.type===ys}function kS(e){return Ie.isValidElement(e)&&e.type===hs}function Id({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:d=5,emptyMessage:u="No activity found.",onLoadMore:m,hasMore:p=false,enableVirtualization:f,estimatedItemSize:g,loadingIndicator:b,height:x,maxHeight:v,...C}){let y=Ie.useRef(null),{isMobile:S}=Gt(),N=S?"stacked":e,T=n!==void 0&&a!==void 0,{scrollRef:M,loadMoreRef:P,virtualizer:E,virtualItems:I,isLoadingMore:A,computedLoadingState:w}=No({items:n||[],onLoadMore:T?m:void 0,hasMore:T?p:false,isLoading:i,loadingState:s,enableVirtualization:T?f:false,estimatedItemSize:g||(N==="stacked"?120:150),overscan:5}),k=T&&M?M:y,H=Ie.useMemo(()=>({variant:N,size:t}),[N,t]),G=N==="timeline"?t==="sm"?"gap-4":"gap-6":"gap-0",z=N==="stacked"?"divide-y divide-border-subtle rounded-lg border border-border-subtle bg-background-surface":"",Y={};if(T&&m&&(x?(Y.height=typeof x=="number"?`${x}px`:x,Y.overflowY="auto"):v?(Y.maxHeight=typeof v=="number"?`${v}px`:v,Y.overflowY="auto"):(Y.height="600px",Y.overflowY="auto")),T){let O=w==="loading"||i&&(!n||n.length===0);if(O){let D=l?jsxRuntime.jsx(jsxRuntime.Fragment,{children:Array.from({length:d}).map((F,L)=>jsxRuntime.jsx("div",{children:l()},`skeleton-${L}`))}):jsxRuntime.jsx(jsxRuntime.Fragment,{children:Array.from({length:d}).map((F,L)=>{let h=t==="sm"?"gap-2":"gap-3";if(N==="timeline"){let W=t==="sm"?"pt-3":"pt-4",U=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(J,{width:32,height:32,variant:"circle"}),L<d-1&&jsxRuntime.jsx("span",{className:"absolute top-[2rem] left-1/2 w-0 border-l-2 border-dotted -translate-x-1/2 h-[calc(100%+2.5rem)] border-border-muted"})]}),jsxRuntime.jsxs("div",{className:`min-w-0 flex flex-col ${h} ${U} rounded-md border border-border-subtle bg-background-surface`,children:[jsxRuntime.jsxs("div",{className:"flex items-center justify-between gap-3",children:[jsxRuntime.jsx(J,{width:"50%",height:16}),jsxRuntime.jsx(J,{width:"15%",height:12})]}),jsxRuntime.jsx(J,{width:"85%",height:t==="sm"?14:15}),jsxRuntime.jsx(J,{width:"70%",height:t==="sm"?14:15})]})]},`skeleton-${L}`)}else return jsxRuntime.jsxs("div",{className:`flex flex-col ${t==="sm"?"px-3 py-3":"px-4 py-4"}`,children:[jsxRuntime.jsxs("div",{className:"flex items-center gap-3",children:[jsxRuntime.jsx(J,{width:24,height:24,variant:"circle"}),jsxRuntime.jsx(J,{width:"50%",height:16})]}),jsxRuntime.jsxs("div",{className:`mt-3 flex flex-col ${h}`,children:[jsxRuntime.jsx(J,{width:"85%",height:t==="sm"?14:15}),jsxRuntime.jsx(J,{width:"70%",height:t==="sm"?14:15}),jsxRuntime.jsx(J,{width:"20%",height:12})]})]},`skeleton-${L}`)})});return jsxRuntime.jsx(aa.Provider,{value:H,children:jsxRuntime.jsx("div",{ref:k,"data-slot":"feed","data-variant":N,className:tailwindMerge.twMerge("flex flex-col",G,z,r),style:Y,...C,children:D})})}if(c)return jsxRuntime.jsx(aa.Provider,{value:H,children:jsxRuntime.jsx("div",{ref:k,"data-slot":"feed","data-variant":N,className:tailwindMerge.twMerge("flex flex-col",G,z,r),style:Y,...C,children:jsxRuntime.jsx("div",{className:"p-4 text-center text-feedback-error-text",children:c})})});if(!n||n.length===0)return jsxRuntime.jsx(aa.Provider,{value:H,children:jsxRuntime.jsx("div",{ref:k,"data-slot":"feed","data-variant":N,className:tailwindMerge.twMerge("flex flex-col",G,z,r),style:Y,...C,children:jsxRuntime.jsx("div",{className:"p-4 text-center text-text-secondary",children:u})})});let R=E?I?.map(D=>({virtualItem:D,item:n[D.index],index:D.index}))||[]:n.map((D,F)=>({item:D,index:F,virtualItem:null}));return jsxRuntime.jsx(aa.Provider,{value:H,children:jsxRuntime.jsxs("div",{ref:k,"data-slot":"feed","data-variant":N,className:tailwindMerge.twMerge("flex flex-col",G,z,r),style:{...Y,position:E?"relative":void 0},...C,children:[E?jsxRuntime.jsxs("div",{style:{height:`${E.getTotalSize()}px`,position:"relative"},children:[R.map(({item:D,index:F,virtualItem:L})=>{if(!D||!L)return null;let h=a(D,F),W=N==="timeline"&&Ie.isValidElement(h)&&bs(h)?Ie.cloneElement(h,{showConnector:F!==n.length-1}):h;return jsxRuntime.jsx("div",{style:{position:"absolute",top:0,left:0,width:"100%",transform:`translateY(${L.start}px)`},"data-index":L.index,ref:E.measureElement,children:W},`item-${F}`)}),A&&jsxRuntime.jsx("div",{style:{position:"absolute",top:`${E.getTotalSize()}px`,left:0,width:"100%"},children:b||jsxRuntime.jsx(hr,{state:"loading-more"})})]}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[R.map(({item:D,index:F})=>{let L=a(D,F);if(N==="timeline"&&Ie.isValidElement(L)&&bs(L)){let h=F===n.length-1;return jsxRuntime.jsx("div",{children:Ie.cloneElement(L,{showConnector:!h})},`item-${F}`)}return jsxRuntime.jsx("div",{children:L},`item-${F}`)}),A&&(b||jsxRuntime.jsx(hr,{state:"loading-more"}))]}),m&&p&&!O&&jsxRuntime.jsx("div",{ref:P,style:E?{position:"absolute",top:`${E.getTotalSize()}px`,left:0,width:"100%",height:1}:{height:1,width:"100%"}})]})})}let Z=Ie.Children.toArray(o),V=Z.map((O,R)=>{if(bs(O)){let D=O.props.showConnector??(N==="timeline"&&R<Z.length-1),F=N==="timeline"&&R>0;return Ie.cloneElement(O,{showConnector:D,showIncomingConnector:F})}if(kS(O)){let D=R===Z.length-1;return Ie.cloneElement(O,{__isLastGroup:D,__isFirstGroup:R===0})}return O});return jsxRuntime.jsx(aa.Provider,{value:H,children:jsxRuntime.jsx("div",{"data-slot":"feed","data-variant":N,className:tailwindMerge.twMerge("flex flex-col",G,z,r),...C,children:V})})}Id.displayName="ActivityFeed";function hs(e){let{variant:t,size:r}=Vf(),{title:o,description:n,actions:a,children:i,className:s,__isLastGroup:c=false,__isFirstGroup:l=false,...d}=e,u=Ie.Children.toArray(i),m=u.map((g,b)=>{if(bs(g)){let x=g.props.showConnector??(t==="timeline"&&!(c&&b===u.length-1));return Ie.cloneElement(g,{showConnector:x,showIncomingConnector:t==="timeline"&&!(l&&b===0)})}return g}),p=t==="timeline"?"pl-[3rem]":r==="sm"?"px-3":"px-4",f=r==="sm"?"gap-3":"gap-4";return jsxRuntime.jsxs("section",{"data-slot":"group",className:tailwindMerge.twMerge("flex flex-col",s),...d,children:[(o||n||a)&&jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("mb-2 flex flex-wrap items-end justify-between gap-2",p),children:[jsxRuntime.jsxs("div",{className:"flex min-w-0 flex-col gap-1",children:[o&&jsxRuntime.jsx("span",{className:"text-xs font-semibold uppercase tracking-wide text-text-secondary",children:o}),n&&jsxRuntime.jsx("span",{className:"text-sm text-text-secondary",children:n})]}),a&&jsxRuntime.jsx("div",{className:"flex flex-shrink-0 items-center gap-2",children:a})]}),jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("flex flex-col",f),children:m})]})}hs.displayName="ActivityFeedGroup";var Ff={neutral:"bg-background-muted text-text-secondary border-border-muted",brand:"bg-background-muted text-action-brand border-action-brand/30",success:"bg-background-muted text-feedback-success-text border-feedback-success-border/40",warning:"bg-background-muted text-feedback-warning-text border-feedback-warning-border/40",danger:"bg-background-muted text-feedback-error-text border-feedback-error-border/40",info:"bg-background-muted text-feedback-info-text border-feedback-info-border/40"},TS={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"},PS={neutral:"border-border-muted",brand:"border-action-brand",success:"border-feedback-success-border",warning:"border-feedback-warning-border",danger:"border-feedback-error-border",info:"border-feedback-info-border"};function ys(e){let{variant:t,size:r}=Vf(),{title:o,description:n,timestamp:a,meta:i,media:s,actions:c,visual:l,icon:d,iconWeight:u,tone:m="neutral",surface:p,isHighlighted:f=false,showConnector:g=true,hideIndicator:b=false,interactive:x,className:v,children:C,onKeyDown:y,showIncomingConnector:S,...N}=e,T=l??(d?jsxRuntime.jsx(B,{name:d,weight:u||"fill",className:"h-4 w-4"}):null),M=p??(t==="stacked"?"minimal":"subtle"),P=r==="sm"?"gap-2":"gap-3",E="text-xs text-text-secondary",I=r==="sm"?"text-sm":"text-[15px]",A="text-xs text-text-secondary",w=x??typeof N.onClick=="function",k=R=>{if(!w){y?.(R);return}R.key===" "?R.preventDefault():R.key==="Enter"&&(R.preventDefault(),R.currentTarget.click()),y?.(R);},H=R=>{w&&R.key===" "&&(R.preventDefault(),R.currentTarget.click());},G=w?tailwindMerge.twMerge("group cursor-pointer",Ke()):void 0,Y=jsxRuntime.jsxs("div",{"data-slot":"connector",className:tailwindMerge.twMerge("relative flex h-full flex-col items-center",M==="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",Ff[m]),children:T}),t==="timeline"&&g&&jsxRuntime.jsx("span",{"data-slot":"separator",className:"absolute top-[2rem] left-1/2 w-0 border-l-2 border-dotted -translate-x-1/2 h-[calc(100%+2.5rem)] border-border-muted"})]}),Z=f?tailwindMerge.twMerge(TS[m],M==="minimal"?"rounded-md border border-border-muted":PS[m]):"";if(t==="stacked")return jsxRuntime.jsxs("div",{"data-slot":"item","data-variant":"stacked",role:w?"button":void 0,tabIndex:w?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"}[M],Z,G,w?"transition-colors hover:bg-background-subtle/80":"",v),onKeyDown:k,onKeyUp:H,...N,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",Ff[m]),children:T}),jsxRuntime.jsx("div",{"data-slot":"title",className:"min-w-0 flex-1 text-sm font-semibold text-text-primary",children:o})]}),jsxRuntime.jsxs("div",{"data-slot":"content",className:tailwindMerge.twMerge("mt-3 flex flex-col",P),children:[n&&jsxRuntime.jsx("div",{"data-slot":"description",className:tailwindMerge.twMerge("text-text-secondary",I),children:n}),i&&jsxRuntime.jsx("div",{className:A,children:i}),s&&jsxRuntime.jsx("div",{className:"flex flex-col gap-2 text-sm text-text-secondary",children:s}),C,c&&jsxRuntime.jsx("div",{className:"flex flex-wrap gap-2 pt-1",children:c}),a&&jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("-mt-1.5",E),children:a})]})]});let V=M==="minimal"?r==="sm"?"py-2":"py-3":r==="sm"?"p-3":"p-4",O={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:w?"button":void 0,tabIndex:w?0:void 0,className:tailwindMerge.twMerge("group relative grid items-start gap-4 grid-cols-[3rem_1fr]",G,v),onKeyDown:k,onKeyUp:H,...N,children:[b?jsxRuntime.jsx("div",{}):Y,jsxRuntime.jsxs("div",{"data-slot":"content",className:tailwindMerge.twMerge("min-w-0 flex flex-col",P,V,O[M],Z,w?"transition-colors group-hover:bg-background-subtle/70":""),children:[jsxRuntime.jsxs("div",{className:"flex items-center justify-between gap-3",children:[jsxRuntime.jsx("div",{"data-slot":"title",className:"min-w-0 flex-1 text-sm font-semibold text-text-primary",children:o}),a&&jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("flex-shrink-0",E),children:a})]}),n&&jsxRuntime.jsx("div",{"data-slot":"description",className:tailwindMerge.twMerge("text-text-secondary",I),children:n}),i&&jsxRuntime.jsx("div",{className:A,children:i}),s&&jsxRuntime.jsx("div",{className:"flex flex-col gap-2 text-sm text-text-secondary",children:s}),C,c&&jsxRuntime.jsx("div",{className:"flex flex-wrap gap-2 pt-2",children:c})]})]})}ys.displayName="ActivityItem";function yr({isOpen:e,onClose:t,title:r,headerContent:o,titleAlign:n="left",hideCloseIcon:a=false,hasBackArrow:i=false,onBack:s,children:c,primaryAction:l,secondaryAction:d,tertiaryAction:u,footerContent:m,transparentOverlay:p=false,maxWidth:f="600px",minWidth:g="400px",maxHeight:b="85vh",height:x,mobileMaxHeight:v="90vh",mobileHeight:C,contentPadding:y=true,className:S}){let N=Wt("(max-width: 767px)"),T=rs(N&&e===void 0),M=T?.height??null,P=T?.keyboardOffset??0,E=Ie.useRef(null),I=Ie.useCallback(()=>{E.current&&E.current.scrollTop!==0&&(E.current.scrollTop=0);},[]),A=Ie.useRef(null),w=Ie.useRef(null);Ie.useEffect(()=>{let Y=w.current;if(!Y||!N)return;let Z=null,V=O=>{let R=O.target;R&&["INPUT","TEXTAREA","SELECT"].includes(R.tagName)&&(Z&&clearTimeout(Z),Z=setTimeout(()=>{R.scrollIntoView({block:"nearest",behavior:"smooth"});},320));};return Y.addEventListener("focusin",V),()=>{Y.removeEventListener("focusin",V),Z&&clearTimeout(Z);}},[N]);let k=Ie.useCallback(()=>{A.current&&A.current.scrollTop!==0&&(A.current.scrollTop=0);},[]);if(e===false)return null;let H=r||o,G=l||d||u||m,z=e!==void 0;return N?z?jsxRuntime.jsx(ot,{isOpen:e,onClose:t,title:r,headerContent:o,titleAlign:n,hideCloseIcon:a,hasBackArrow:i,onBack:s,primaryAction:l,secondaryAction:d,footerContent:m,transparentOverlay:p,maxHeight:v,height:C,maxWidth:f,contentPadding:y,showHandle:true,animationVariant:"scale",className:S,children:c}):jsxRuntime.jsx(Rr,{children:jsxRuntime.jsx(nr,{isDismissable:true,transparent:p,style:{paddingBottom:P>0?`${P}px`:void 0,transition:"padding-bottom 0.25s ease-out"},className:"flex items-end justify-center",children:jsxRuntime.jsx(reactAriaComponents.Modal,{className:"w-full p-0 outline-none focus:outline-none focus-visible:outline-none ring-0 focus:ring-0 focus-visible:ring-0",children:jsxRuntime.jsxs(reactAriaComponents.Dialog,{ref:E,onScroll:I,className:tailwindMerge.twMerge("relative flex w-full flex-col","bg-background-surface","shadow-2xl shadow-black/20","border-t border-x border-border-default/40","rounded-t-xl","overflow-hidden","animate-in slide-in-from-bottom","duration-300 ease-out","data-[exiting]:animate-out data-[exiting]:slide-out-to-bottom","data-[exiting]:duration-200 data-[exiting]:ease-in",S),style:{...C?{height:C}:{maxHeight:/\d/.test(v)?M!==null?`min(${v}, ${Math.max(M-8,0)}px, 100dvh)`:`min(${v}, 100dvh)`:v}},children:[jsxRuntime.jsx("div",{className:"flex justify-center pt-2",children:jsxRuntime.jsx("div",{className:"h-1.5 w-12 rounded-full bg-border-muted"})}),H&&(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",{ref:w,className:tailwindMerge.twMerge("flex-1 min-h-0 overflow-y-auto overscroll-contain",y?"px-6 py-6":"p-0"),children:c}),G&&jsxRuntime.jsx(Ro,{primaryAction:l,secondaryAction:d,tertiaryAction:u,footerContent:m})]})})})}):jsxRuntime.jsx(Rr,{children:jsxRuntime.jsx(nr,{...z?{isOpen:e,onOpenChange:Y=>{!Y&&t&&t();}}:{},isDismissable:true,transparent:p,className:"flex items-center justify-center",children:jsxRuntime.jsx(reactAriaComponents.Modal,{className:"w-full p-4 outline-none focus:outline-none focus-visible:outline-none ring-0 focus:ring-0 focus-visible:ring-0",style:{maxWidth:f},children:jsxRuntime.jsxs(reactAriaComponents.Dialog,{ref:A,onScroll:k,className:tailwindMerge.twMerge("relative flex w-full flex-col","bg-background-surface","shadow-2xl shadow-black/20","border border-border-default/50","rounded-md","overflow-hidden","outline-none focus:outline-none focus-visible:outline-none ring-0 focus:ring-0","animate-in fade-in zoom-in-96 slide-in-from-bottom-2","duration-300 ease-out","data-[exiting]:animate-out data-[exiting]:fade-out data-[exiting]:zoom-out-95","data-[exiting]:duration-200 data-[exiting]:ease-in",S),style:{minWidth:g,...x?{height:x}:{maxHeight:b}},children:[H&&(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",y?"px-6 py-6":"p-0"),children:c}),G&&jsxRuntime.jsx(Ro,{primaryAction:l,secondaryAction:d,tertiaryAction:u,footerContent:m})]})})})})}function Uf({isOpen:e,onClose:t,title:r,message:o,confirmLabel:n="OK",confirmVariant:a="primary",maxWidth:i="400px",minWidth:s="320px"}){return jsxRuntime.jsx(yr,{isOpen:e,onClose:t,title:r,maxWidth:i,minWidth:s,primaryAction:{label:n,onPress:t,variant:a},children:jsxRuntime.jsx("div",{className:"text-text-primary",children:o})})}var Do={xs:16,sm:20,md:24,lg:32,xl:40,"2xl":48},ar=Ie.memo(({name:e,size:t="md",color:r,weight:o="regular",className:n,ariaLabel:a,...i})=>{let s=DS__namespace[e];if(!s)return null;let c=typeof t=="string"?t in Do?Do[t]:Do.md:t,l=tailwindMerge.twMerge("inline-block flex-shrink-0",!r&&"text-current",n);return jsxRuntime.jsx(s,{...i,size:c,color:r,weight:o,className:l,"aria-label":a||`${e} icon`,"data-testid":`icon-${e}`})});ar.displayName="IconSSR";var ES=Ie.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:d,...u})=>{let m=typeof n=="string"?n in Do?Do[n]:Do.md:n,p=r?typeof r=="string"?r in Do?Do[r]:m*1.75:r:m*1.75,f=tailwindMerge.twMerge("inline-flex items-center justify-center flex-shrink-0",t==="circle"?"rounded-full":"rounded-lg",e==="subtle"&&"bg-background-muted",e==="solid"&&"bg-action-brand text-[color:var(--color-action-brand-text)]",e==="outline"&&"border-2 border-current",o);return jsxRuntime.jsx("div",{className:f,style:{width:p,height:p},children:jsxRuntime.jsx(ar,{...u,name:i,size:n,color:s,weight:c,className:a,ariaLabel:l})})});ES.displayName="IconSSRWithContainer";var ia=({className:e,showWordmark:t=true,width:r,fill:o})=>{let n,a;if(o?o.startsWith("fill-")?a=o:n=o:e?a=e:n="var(--color-text-primary)",t){let c=r||270,l=c/270*80;return jsxRuntime.jsxs("svg",{width:c,height:l,viewBox:"0 0 270 80",xmlns:"http://www.w3.org/2000/svg",className:a,style:n?{fill:n}:void 0,children:[jsxRuntime.jsxs("g",{clipPath:"url(#clip0_796_283)",children:[jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0.223654 20.2934C0.417233 19.8234 0.873598 19.517 1.37984 19.517H20.5909C21.282 19.517 21.8422 20.0798 21.8422 20.774V40.049C21.8422 40.5572 21.5375 41.0155 21.0702 41.2102C20.6028 41.405 20.0647 41.2977 19.7067 40.9385L0.495628 21.6635C0.137428 21.3041 0.030075 20.7633 0.223654 20.2934ZM4.40349 22.0311L19.3396 37.017V22.0311H4.40349Z"}),jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M38.6458 20.2934C38.8394 19.8234 39.2958 19.517 39.802 19.517H59.013C59.7041 19.517 60.2642 20.0798 60.2642 20.774V40.049C60.2642 40.5572 59.9597 41.0155 59.4923 41.2102C59.025 41.405 58.4867 41.2977 58.1289 40.9385L38.9178 21.6635C38.5595 21.3041 38.4522 20.7633 38.6458 20.2934ZM42.8255 22.0311L57.7618 37.017V22.0311H42.8255Z"}),jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M19.4347 58.8447C19.6283 58.3747 20.0847 58.0685 20.5909 58.0685H39.802C40.493 58.0685 41.0532 58.6312 41.0532 59.3255V78.6005C41.0532 79.1087 40.7486 79.567 40.2813 79.7617C39.8139 79.9562 39.2757 79.849 38.9178 79.49L19.7067 60.215C19.3485 59.8555 19.2411 59.3147 19.4347 58.8447ZM23.6146 60.5825L38.5508 75.5682V60.5825H23.6146Z"}),jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M39.3227 58.1643C39.79 57.9695 40.3283 58.0768 40.6861 58.436L59.8972 77.711C60.2555 78.0703 60.3628 78.6113 60.1692 79.081C59.9756 79.551 59.5192 79.8575 59.013 79.8575H39.802C39.1109 79.8575 38.5508 79.2948 38.5508 78.6005V59.3255C38.5508 58.8173 38.8554 58.359 39.3227 58.1643ZM41.0532 62.3575V77.3433H55.9893L41.0532 62.3575Z"}),jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M39.3227 19.6129C39.79 19.4182 40.3283 19.5254 40.6861 19.8846L59.8972 39.1595C60.2555 39.519 60.3628 40.0598 60.1692 40.5298C59.9756 40.9995 59.5192 41.306 59.013 41.306H39.802C39.1109 41.306 38.5508 40.7433 38.5508 40.049V20.7741C38.5508 20.2658 38.8554 19.8075 39.3227 19.6129ZM41.0532 23.8061V38.792H55.9893L41.0532 23.8061Z"}),jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M39.3227 38.8885C39.79 38.694 40.3283 38.8012 40.6861 39.1602L59.8972 58.4352C60.2555 58.7945 60.3628 59.3355 60.1692 59.8055C59.9756 60.2752 59.5192 60.5817 59.013 60.5817H39.802C39.1109 60.5817 38.5508 60.019 38.5508 59.3247V40.0497C38.5508 39.5415 38.8554 39.0832 39.3227 38.8885ZM41.0532 43.0817V58.0675H55.9893L41.0532 43.0817Z"}),jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M38.6458 39.569C38.8394 39.0992 39.2958 38.7927 39.802 38.7927H59.013C59.7041 38.7927 60.2642 39.3555 60.2642 40.0497V59.3247C60.2642 59.833 59.9597 60.2912 59.4923 60.486C59.025 60.6805 58.4867 60.5732 58.1289 60.2142L38.9178 40.9392C38.5595 40.5797 38.4522 40.039 38.6458 39.569ZM42.8255 41.3067L57.7618 56.2927V41.3067H42.8255Z"}),jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M38.6458 58.8447C38.8394 58.3747 39.2958 58.0685 39.802 58.0685H59.013C59.7041 58.0685 60.2642 58.6312 60.2642 59.3255V78.6005C60.2642 79.1087 59.9597 79.567 59.4923 79.7617C59.025 79.9562 58.4867 79.849 58.1289 79.49L38.9178 60.215C38.5595 59.8555 38.4522 59.3147 38.6458 58.8447ZM42.8255 60.5825L57.7618 75.5682V60.5825H42.8255Z"}),jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M58.5338 19.6129C59.0011 19.4182 59.5394 19.5254 59.8972 19.8846L79.1083 39.1595C79.4666 39.519 79.5739 40.0598 79.3803 40.5298C79.1867 40.9995 78.7303 41.306 78.2241 41.306H59.013C58.322 41.306 57.7618 40.7433 57.7618 40.049V20.7741C57.7618 20.2658 58.0664 19.8075 58.5338 19.6129ZM60.2643 23.8061V38.792H75.2006L60.2643 23.8061Z"}),jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M58.5338 0.338803C59.0011 0.144135 59.5394 0.251385 59.8972 0.610565L79.1083 19.8855C79.4666 20.2449 79.5739 20.7857 79.3803 21.2556C79.1867 21.7256 78.7303 22.032 78.2241 22.032H59.013C58.322 22.032 57.7618 21.4692 57.7618 20.775V1.50003C57.7618 0.99174 58.0664 0.533468 58.5338 0.338803ZM60.2643 4.53208V19.5179H75.2006L60.2643 4.53208Z"}),jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M57.8569 20.2934C58.0505 19.8234 58.5069 19.517 59.013 19.517H78.2241C78.9151 19.517 79.4753 20.0798 79.4753 20.774V40.049C79.4753 40.5572 79.1707 41.0155 78.7034 41.2102C78.236 41.405 77.6978 41.2977 77.3399 40.9385L58.1289 21.6635C57.7705 21.3041 57.6633 20.7633 57.8569 20.2934ZM62.0365 22.0311L76.9729 37.017V22.0311H62.0365Z"}),jsxRuntime.jsx("path",{d:"M269.838 49.4457H249.005C249.266 51.801 250.162 53.6985 251.695 55.1377C253.225 56.577 255.134 57.2967 257.416 57.2967C259.307 57.2967 260.887 56.8715 262.159 56.021C263.463 55.1377 264.408 53.9927 264.996 52.5862H269.251C268.502 54.9415 267.084 56.937 264.996 58.5725C262.943 60.208 260.414 61.026 257.416 61.026C255.069 61.026 252.917 60.4697 250.961 59.3575C249.037 58.2127 247.504 56.6587 246.363 54.696C245.255 52.7332 244.7 50.558 244.7 48.17C244.7 45.782 245.255 43.6067 246.363 41.644C247.504 39.6812 249.037 38.1437 250.961 37.0315C252.917 35.8867 255.069 35.3142 257.416 35.3142C259.73 35.3142 261.833 35.8702 263.724 36.9825C265.615 38.0947 267.098 39.6485 268.176 41.644C269.283 43.6395 269.838 45.913 269.838 48.4645V49.4457ZM257.416 39.0432C255.263 39.0432 253.439 39.6812 251.939 40.957C250.47 42.2327 249.542 43.9337 249.152 46.06H265.583C265.192 43.9992 264.262 42.3145 262.796 41.006C261.36 39.6975 259.568 39.0432 257.416 39.0432Z"}),jsxRuntime.jsx("path",{d:"M228.356 60.5352V35.8049H232.219V39.7794H232.464C233.05 38.5689 233.963 37.5712 235.202 36.7862C236.474 35.9684 237.974 35.5594 239.701 35.5594H243.125V39.4359H239.701C237.517 39.4359 235.757 40.1554 234.42 41.5949C233.083 43.0342 232.414 44.9152 232.414 47.2377V60.5352H228.356Z"}),jsxRuntime.jsx("path",{d:"M208.607 61.0259C205.64 61.0259 203.326 60.1262 201.663 58.3272C200 56.4952 199.169 53.8947 199.169 50.5252V35.8047H203.228V49.8874C203.228 52.2427 203.766 54.0744 204.842 55.3829C205.95 56.6587 207.532 57.2967 209.586 57.2967C211.02 57.2967 212.308 56.9694 213.449 56.3152C214.623 55.6284 215.536 54.6959 216.188 53.5184C216.84 52.3407 217.166 50.9997 217.166 49.4949V35.8047H221.225V60.5352H217.313V56.5607H217.068C216.286 57.9019 215.161 58.9814 213.694 59.7992C212.226 60.6169 210.531 61.0259 208.607 61.0259Z"}),jsxRuntime.jsx("path",{d:"M186.736 39.534V56.806H194.756V60.5352H182.677V39.534H177.199V35.8047H182.677V29.5732H186.736V35.8047H193.24V39.534H186.736Z"}),jsxRuntime.jsx("path",{d:"M156.585 60.5352H151.988L158.394 48.0227L152.33 35.8047H156.976L162.062 46.0599H165.388L170.474 35.8047H175.022L168.958 48.0227L175.365 60.5352H170.67L165.29 49.7892H162.013L156.585 60.5352Z"}),jsxRuntime.jsx("path",{d:"M150.138 49.1315H129.304C129.565 51.4867 130.461 53.3842 131.994 54.8235C133.526 56.2627 135.433 56.9825 137.715 56.9825C139.606 56.9825 141.188 56.5572 142.459 55.7067C143.763 54.8235 144.709 53.6785 145.296 52.272H149.551C148.801 54.6272 147.382 56.6227 145.296 58.2582C143.242 59.8937 140.715 60.7118 137.715 60.7118C135.368 60.7118 133.216 60.1555 131.26 59.0432C129.336 57.8985 127.804 56.3445 126.663 54.3817C125.554 52.419 125 50.2437 125 47.8557C125 45.4677 125.554 43.2925 126.663 41.3298C127.804 39.367 129.336 37.8295 131.26 36.7173C133.216 35.5725 135.368 35 137.715 35C140.03 35 142.133 35.556 144.024 36.6682C145.915 37.7805 147.399 39.3342 148.475 41.3298C149.583 43.3252 150.138 45.5987 150.138 48.1502V49.1315ZM137.715 38.729C135.564 38.729 133.738 39.367 132.238 40.6427C130.771 41.9185 129.842 43.6195 129.45 45.7458H145.883C145.491 43.685 144.562 42.0002 143.095 40.6917C141.661 39.3832 139.867 38.729 137.715 38.729Z"}),jsxRuntime.jsx("path",{d:"M116.961 60.5353H112.559V30.4072H101.164V26.1875H128.307V30.4072H116.961V60.5353Z"})]}),jsxRuntime.jsx("defs",{children:jsxRuntime.jsx("clipPath",{id:"clip0_796_283",children:jsxRuntime.jsx("rect",{width:"270",height:"80",fill:"white"})})})]})}let i=r||80;return jsxRuntime.jsxs("svg",{width:i,height:i,viewBox:"0 0 80 80",xmlns:"http://www.w3.org/2000/svg",className:a,style:n?{fill:n}:void 0,children:[jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0.223654 20.2934C0.417233 19.8234 0.873598 19.517 1.37984 19.517H20.5909C21.282 19.517 21.8422 20.0798 21.8422 20.774V40.049C21.8422 40.5572 21.5375 41.0155 21.0702 41.2102C20.6028 41.405 20.0647 41.2977 19.7067 40.9385L0.495628 21.6635C0.137428 21.3041 0.030075 20.7633 0.223654 20.2934ZM4.40349 22.0311L19.3396 37.017V22.0311H4.40349Z"}),jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M38.6458 20.2934C38.8394 19.8234 39.2958 19.517 39.802 19.517H59.013C59.7041 19.517 60.2642 20.0798 60.2642 20.774V40.049C60.2642 40.5572 59.9597 41.0155 59.4923 41.2102C59.025 41.405 58.4867 41.2977 58.1289 40.9385L38.9178 21.6635C38.5595 21.3041 38.4522 20.7633 38.6458 20.2934ZM42.8255 22.0311L57.7618 37.017V22.0311H42.8255Z"}),jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M19.4347 58.8447C19.6283 58.3747 20.0847 58.0685 20.5909 58.0685H39.802C40.493 58.0685 41.0532 58.6312 41.0532 59.3255V78.6005C41.0532 79.1087 40.7486 79.567 40.2813 79.7617C39.8139 79.9562 39.2757 79.849 38.9178 79.49L19.7067 60.215C19.3485 59.8555 19.2411 59.3147 19.4347 58.8447ZM23.6146 60.5825L38.5508 75.5682V60.5825H23.6146Z"}),jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M39.3227 58.1643C39.79 57.9695 40.3283 58.0768 40.6861 58.436L59.8972 77.711C60.2555 78.0703 60.3628 78.6113 60.1692 79.081C59.9756 79.551 59.5192 79.8575 59.013 79.8575H39.802C39.1109 79.8575 38.5508 79.2948 38.5508 78.6005V59.3255C38.5508 58.8173 38.8554 58.359 39.3227 58.1643ZM41.0532 62.3575V77.3433H55.9893L41.0532 62.3575Z"}),jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M39.3227 19.6129C39.79 19.4182 40.3283 19.5254 40.6861 19.8846L59.8972 39.1595C60.2555 39.519 60.3628 40.0598 60.1692 40.5298C59.9756 40.9995 59.5192 41.306 59.013 41.306H39.802C39.1109 41.306 38.5508 40.7433 38.5508 40.049V20.7741C38.5508 20.2658 38.8554 19.8075 39.3227 19.6129ZM41.0532 23.8061V38.792H55.9893L41.0532 23.8061Z"}),jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M39.3227 38.8885C39.79 38.694 40.3283 38.8012 40.6861 39.1602L59.8972 58.4352C60.2555 58.7945 60.3628 59.3355 60.1692 59.8055C59.9756 60.2752 59.5192 60.5817 59.013 60.5817H39.802C39.1109 60.5817 38.5508 60.019 38.5508 59.3247V40.0497C38.5508 39.5415 38.8554 39.0832 39.3227 38.8885ZM41.0532 43.0817V58.0675H55.9893L41.0532 43.0817Z"}),jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M38.6458 39.569C38.8394 39.0992 39.2958 38.7927 39.802 38.7927H59.013C59.7041 38.7927 60.2642 39.3555 60.2642 40.0497V59.3247C60.2642 59.833 59.9597 60.2912 59.4923 60.486C59.025 60.6805 58.4867 60.5732 58.1289 60.2142L38.9178 40.9392C38.5595 40.5797 38.4522 40.039 38.6458 39.569ZM42.8255 41.3067L57.7618 56.2927V41.3067H42.8255Z"}),jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M38.6458 58.8447C38.8394 58.3747 39.2958 58.0685 39.802 58.0685H59.013C59.7041 58.0685 60.2642 58.6312 60.2642 59.3255V78.6005C60.2642 79.1087 59.9597 79.567 59.4923 79.7617C59.025 79.9562 58.4867 79.849 58.1289 79.49L38.9178 60.215C38.5595 59.8555 38.4522 59.3147 38.6458 58.8447ZM42.8255 60.5825L57.7618 75.5682V60.5825H42.8255Z"}),jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M58.5338 19.6129C59.0011 19.4182 59.5394 19.5254 59.8972 19.8846L79.1083 39.1595C79.4666 39.519 79.5739 40.0598 79.3803 40.5298C79.1867 40.9995 78.7303 41.306 78.2241 41.306H59.013C58.322 41.306 57.7618 40.7433 57.7618 40.049V20.7741C57.7618 20.2658 58.0664 19.8075 58.5338 19.6129ZM60.2643 23.8061V38.792H75.2006L60.2643 23.8061Z"}),jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M58.5338 0.338803C59.0011 0.144135 59.5394 0.251385 59.8972 0.610565L79.1083 19.8855C79.4666 20.2449 79.5739 20.7857 79.3803 21.2556C79.1867 21.7256 78.7303 22.032 78.2241 22.032H59.013C58.322 22.032 57.7618 21.4692 57.7618 20.775V1.50003C57.7618 0.99174 58.0664 0.533468 58.5338 0.338803ZM60.2643 4.53208V19.5179H75.2006L60.2643 4.53208Z"}),jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M57.8569 20.2934C58.0505 19.8234 58.5069 19.517 59.013 19.517H78.2241C78.9151 19.517 79.4753 20.0798 79.4753 20.774V40.049C79.4753 40.5572 79.1707 41.0155 78.7034 41.2102C78.236 41.405 77.6978 41.2977 77.3399 40.9385L58.1289 21.6635C57.7705 21.3041 57.6633 20.7633 57.8569 20.2934ZM62.0365 22.0311L76.9729 37.017V22.0311H62.0365Z"})]})};var Cs=({topItems:e=[],bottomItems:t=[],bottomContent:r,logo:o,showLogo:n=true,linkComponent:a="a",className:i="",mobileMenuId:s="app-mobile-menu",sidebarCollapseId:c="app-sidebar-collapse"})=>{let l=p=>p.length>0&&"items"in p[0],d=p=>l(p)?p:[{id:"default-section",items:p}],u=(p,f,g)=>jsxRuntime.jsxs("div",{className:"space-y-0.5",children:[p.title&&jsxRuntime.jsx("div",{className:"px-6 py-1 text-xs font-medium text-text-secondary uppercase tracking-wider",children:p.title}),jsxRuntime.jsx("div",{className:"space-y-0.5",children:p.items.map(b=>m(b))}),f<g-1&&jsxRuntime.jsx("div",{className:"border-b border-border-subtle mx-6 my-2"})]},p.id),m=(p,f=false)=>{if(p.children&&p.children.length>0){let x=`category-${p.id}`;return jsxRuntime.jsxs("div",{className:"group/category",children:[jsxRuntime.jsx("input",{type:"checkbox",id:x,className:"peer/category hidden",defaultChecked:p.isExpanded,"aria-hidden":"true"}),jsxRuntime.jsxs("label",{htmlFor:x,className:"flex items-center gap-3 px-6 py-1 text-text-primary hover:bg-background-hover hover:text-text-primary cursor-pointer transition-all duration-200",children:[p.icon&&jsxRuntime.jsx("span",{className:"flex-shrink-0 w-3.5 h-3.5 flex items-center justify-center transition-all duration-200",children:p.icon}),jsxRuntime.jsx("span",{className:"transition-all duration-200",children:p.label}),jsxRuntime.jsx("span",{className:"flex-1"}),jsxRuntime.jsx("svg",{className:"w-4 h-4 transform transition-transform duration-200 peer-checked/category:rotate-180 ml-auto",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntime.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 9l-7 7-7-7"})})]}),jsxRuntime.jsx("div",{className:"hidden peer-checked/category:block bg-background-subtle border-l-2 border-border-subtle ml-6",children:p.children.map(v=>m(v,true))})]},p.id)}let g={href:p.href||"#",className:`flex items-center gap-3 transition-all duration-200 hover:bg-background-hover ${f?"pl-8 pr-6 py-1 text-sm":"px-6 py-1"} ${p.isActive?`bg-action-brand/10 text-action-brand ${f?"":"border-l-2 border-action-brand"}`:"text-text-primary hover:text-text-primary"}`,"aria-current":p.isActive?"page":void 0},b=jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[p.icon&&!f&&jsxRuntime.jsx("span",{className:"flex-shrink-0 w-3.5 h-3.5 flex items-center justify-center transition-all duration-200",children:p.icon}),jsxRuntime.jsx("span",{className:"transition-all duration-200",children:p.label})]});return a==="a"?jsxRuntime.jsx("a",{...g,children:b},p.id):jsxRuntime.jsx(a,{...g,children:b},p.id)};return jsxRuntime.jsxs("div",{className:`flex flex-col h-full ${i}`,children:[jsxRuntime.jsxs("div",{className:"flex items-center justify-between h-[60px] px-6 border-b border-border-default",children:[n&&jsxRuntime.jsx("div",{className:"relative top-[-1px] transition-all duration-200",children:o||jsxRuntime.jsx(ia,{showWordmark:true,width:120})}),jsxRuntime.jsx("label",{htmlFor:c,className:"hidden md:flex items-center justify-center w-8 h-8 rounded hover:bg-background-hover cursor-pointer transition-all duration-200 relative top-[-1px]","aria-label":"Collapse sidebar",children:jsxRuntime.jsx(ar,{name:"Sidebar",size:"sm"})}),jsxRuntime.jsx("label",{htmlFor:s,className:"md:hidden flex items-center justify-center w-8 h-8 rounded hover:bg-background-hover cursor-pointer transition-colors","aria-label":"Close menu",children:jsxRuntime.jsx("svg",{className:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntime.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})})]}),jsxRuntime.jsxs("nav",{className:"flex-1 flex flex-col overflow-hidden",children:[e&&e.length>0&&jsxRuntime.jsx("div",{className:"flex-1 overflow-y-auto py-2 scrollbar-hide",children:d(e).map((p,f,g)=>u(p,f,g.length))}),t&&t.length>0&&jsxRuntime.jsx("div",{className:"flex-shrink-0 border-t bg-background-muted/30",children:jsxRuntime.jsx("div",{className:"mt-2 pb-2 space-y-0.5",children:t.map(p=>m(p))})}),r&&jsxRuntime.jsx("div",{className:"flex-shrink-0 border-t border-border-default",children:jsxRuntime.jsx("div",{children:r})})]})]})};function cn(e){return e.id??e.href??e.label}function zd(e,t,r=[]){for(let o of e){if(o.href===t||o.id===t)return o.children?.length&&o.pushOnSelect!==false?[...r,cn(o)]:r;if(o.children?.length){let n=zd(o.children,t,[...r,cn(o)]);if(n)return n}}return null}function jf(e,t){let r=[],o=e;for(let n of t){let a=o.find(i=>cn(i)===n);if(!a)break;r.push(a),o=a.children??[];}return r}function LS(e,t,r){let o=t.length>0?[...e,...t]:e,n=[{path:[],items:e,bottomItems:t.length>0?t:void 0}],a=jf(o,r),i=[];for(let s of a){if(!s.children?.length)break;i=[...i,cn(s)],n.push({path:i,parent:s,items:s.children});}return n}var AS=({href:e,...t})=>jsxRuntime.jsx("a",{href:e,...t}),IS=[];function FS(e,t){if(process.env.NODE_ENV==="production"||t.length===0)return;let r=new Map;for(let o of e)o.id&&r.set(o.id,"id"),o.href&&!r.has(o.href)&&r.set(o.href,"href");for(let o of t){let n=null;o.id&&r.has(o.id)?n=r.get(o.id)==="id"?`id "${o.id}"`:`id "${o.id}" (matches an items \`href\`)`:o.href&&r.has(o.href)&&(n=r.get(o.href)==="href"?`href "${o.href}"`:`href "${o.href}" (matches an items \`id\`)`),n&&console.warn(`[StackNav] L1 ${n} appears in both \`items\` and \`bottomItems\`. Stack tokens and value lookups will resolve to the \`items\` entry, making the bottomItems entry unreachable. L1 ids and hrefs must be unique across both arrays.`);}}function BS(e){if(!e)return {};let t={};return e.background!==void 0&&(t["--edges-stack-nav-background"]=e.background),e.activeBackground!==void 0&&(t["--edges-stack-nav-row-active-background"]=e.activeBackground),e.activeColor!==void 0&&(t["--edges-stack-nav-row-active-color"]=e.activeColor),e.hoverBackground!==void 0&&(t["--edges-stack-nav-row-hover-background"]=e.hoverBackground),e.borderColor!==void 0&&(t["--edges-stack-nav-border-color"]=e.borderColor),t}function Ss({items:e,bottomItems:t,value:r,defaultStack:o,stack:n,onStackChange:a,onSelect:i,linkComponent:s=AS,showLogo:c=false,logo:l,header:d,footer:u,mobileMenuId:m,sidebarCollapseId:p,rootLabel:f,sticky:g=true,width:b=260,ariaLabel:x="Navigation",theme:v,animated:C=true,style:y,className:S}){let N=t??IS,T=Ie__namespace.useMemo(()=>N.length>0?[...e,...N]:e,[e,N]);Ie__namespace.useEffect(()=>{FS(e,N);},[e,N]);let[M,P]=Ie__namespace.useState(()=>n!==void 0?n:o!==void 0?o:r?zd(T,r)??[]:[]),E=n??M,I=Ie__namespace.useCallback(V=>{n===void 0&&P(V),a?.(V);},[n,a]),A=Ie__namespace.useRef(false);Ie__namespace.useEffect(()=>{if(n!==void 0||!A.current&&(A.current=true,o!==void 0)||!r)return;let V=zd(T,r);P(O=>{let R=V??[];return HS(O,R)?O:R});},[r,T,n,o]);let w=Ie__namespace.useMemo(()=>LS(e,N,E),[e,N,E]),k=Ie__namespace.useCallback((V,O)=>{V.children?.length&&I([...O,cn(V)]);},[I]),H=Ie__namespace.useCallback(()=>{I(E.slice(0,-1));},[E,I]),G=Ie__namespace.useCallback((V,O)=>{let R=jf(T,E);if(i?.(O,R),!!O.children?.length&&O.pushOnSelect!==false){let F=w[w.length-1]?.path??[];k(O,F);}O.href||V.preventDefault();},[T,E,i,k,w]),z=Ie__namespace.useCallback(V=>r?V.href===r||V.id===r:false,[r]),Y=g?"sticky top-0 h-[100dvh]":"",Z={...b!=null?{width:b}:{},...BS(v),...y};return jsxRuntime.jsxs("aside",{role:"navigation","aria-label":x,"data-edges-stack-nav":"",className:tailwindMerge.twMerge("edges-stack-nav flex flex-col flex-shrink-0 overflow-hidden",C&&"edges-stack-nav--animated",Y,S),style:Z,children:[c?jsxRuntime.jsxs("div",{className:"edges-stack-nav__logo",children:[jsxRuntime.jsx("div",{className:"relative top-[-1px]",children:l??jsxRuntime.jsx(ia,{showWordmark:true,width:120})}),p?jsxRuntime.jsx("label",{htmlFor:p,className:"hidden md:flex items-center justify-center w-8 h-8 rounded hover:bg-background-hover cursor-pointer transition-all duration-200 relative top-[-1px]","aria-label":"Collapse sidebar",children:jsxRuntime.jsx(ar,{name:"Sidebar",size:"sm"})}):null,m?jsxRuntime.jsx("label",{htmlFor:m,className:"md:hidden flex items-center justify-center w-8 h-8 rounded hover:bg-background-hover cursor-pointer transition-colors","aria-label":"Close menu",children:jsxRuntime.jsx("svg",{className:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntime.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})}):null]}):null,d?jsxRuntime.jsx("div",{className:"edges-stack-nav__header",children:d}):null,jsxRuntime.jsx("div",{className:"relative flex-1 overflow-hidden",children:w.map((V,O)=>{let R=V.path.length,D=O===w.length-1,F=O<w.length-1,L=R===0?"__root__":V.path.join("/");return jsxRuntime.jsx(VS,{pane:V,parentPath:V.path.slice(0,-1),depth:R,isTop:D,isAbove:F,rootLabel:f,LinkComponent:s,isActive:z,onSelect:G,onBack:H,animated:C},L)})}),u?jsxRuntime.jsx("div",{className:"edges-stack-nav__footer",children:u}):null]})}function VS({pane:e,depth:t,isTop:r,isAbove:o,rootLabel:n,LinkComponent:a,isActive:i,onSelect:s,onBack:c,animated:l}){let d=r?"edges-stack-nav__pane--top":o?"edges-stack-nav__pane--above":"edges-stack-nav__pane--below";return jsxRuntime.jsxs("nav",{"aria-label":e.parent?.label??n??"Navigation","aria-hidden":r?void 0:true,inert:r?void 0:true,className:tailwindMerge.twMerge("edges-stack-nav__pane absolute inset-0 flex flex-col gap-px overflow-y-auto px-2 py-3",!l&&"edges-stack-nav__pane--instant",d),children:[t>0&&e.parent?jsxRuntime.jsxs("button",{type:"button",className:"edges-stack-nav__back edges-stack-nav__row flex w-full items-center gap-2 rounded-sm border-0 bg-transparent px-3 py-2 mb-2 text-left text-sm font-semibold text-text-primary",onClick:c,"aria-label":`Back from ${e.parent.label}`,children:[jsxRuntime.jsx(OS,{}),jsxRuntime.jsx("span",{children:e.parent.label})]}):n?jsxRuntime.jsx("div",{className:"px-3 pb-1.5 text-[10px] font-semibold uppercase tracking-[0.08em] text-text-secondary",children:n}):null,e.items.map(u=>jsxRuntime.jsx(Jf,{item:u,LinkComponent:a,isActive:i(u),onSelect:s},cn(u))),e.bottomItems&&e.bottomItems.length>0?jsxRuntime.jsx("div",{className:"edges-stack-nav__bottom-items mt-auto flex flex-col gap-px pt-3",children:e.bottomItems.map(u=>jsxRuntime.jsx(Jf,{item:u,LinkComponent:a,isActive:i(u),onSelect:s},cn(u)))}):null]})}function Jf({item:e,LinkComponent:t,isActive:r,onSelect:o}){if(e.divider)return jsxRuntime.jsx("div",{className:"edges-stack-nav__divider my-2",role:"separator"});if(e.groupLabel)return jsxRuntime.jsx("div",{className:"px-3 pt-6 pb-1.5 text-[10px] font-semibold uppercase tracking-[0.08em] text-text-secondary",children:e.label});let n=!!e.children?.length,a=tailwindMerge.twMerge("edges-stack-nav__row flex items-center justify-between gap-3 rounded-sm px-3 py-2 text-sm font-normal text-text-primary no-underline cursor-pointer text-left bg-transparent border-0 transition-colors",r&&"edges-stack-nav__row--active font-semibold"),i=jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsxs("span",{className:"flex min-w-0 items-center gap-2",children:[e.leading??e.icon?jsxRuntime.jsx("span",{className:"flex-shrink-0",children:e.leading??e.icon}):null,jsxRuntime.jsx("span",{className:"truncate",children:e.label})]}),jsxRuntime.jsxs("span",{className:"flex flex-shrink-0 items-center gap-2 text-text-secondary",children:[e.trailing,n?jsxRuntime.jsx(zS,{}):null]})]});return e.href?jsxRuntime.jsx(t,{href:e.href,"aria-label":e.ariaLabel,className:a,"aria-current":r?"page":void 0,onClick:s=>o(s,e),children:i}):jsxRuntime.jsx("button",{type:"button",className:a,"aria-label":e.ariaLabel,onClick:s=>{o(s,e);},children:i})}function zS(){return jsxRuntime.jsx("svg",{width:12,height:12,viewBox:"0 0 12 12",fill:"none","aria-hidden":"true",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round",children:jsxRuntime.jsx("path",{d:"M4.5 3 7.5 6 4.5 9"})})}function OS(){return jsxRuntime.jsx("svg",{width:14,height:14,viewBox:"0 0 14 14",fill:"none","aria-hidden":"true",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round",children:jsxRuntime.jsx("path",{d:"M8.5 3 4.5 7 8.5 11"})})}function HS(e,t){if(e===t)return true;if(e.length!==t.length)return false;for(let r=0;r<e.length;r+=1)if(e[r]!==t[r])return false;return true}var qa=({rightContent:e,centerContent:t,showMobileMenu:r=true,avatar:o,showColorModeSwitcher:n=false,toggleTheme:a,isDarkThemeEnabled:i=false,colorMode:s,actions:c,className:l="",mobileMenuId:d="app-mobile-menu"})=>{let u=()=>{switch(s||(i?"dark":"light")){case "system":return jsxRuntime.jsx(ar,{name:"Monitor",size:"sm"});case "light":return jsxRuntime.jsx(ar,{name:"Sun",size:"sm"});case "dark":return jsxRuntime.jsx(ar,{name:"Moon",size:"sm"})}},m=()=>{switch(s||(i?"dark":"light")){case "system":return "Switch to light mode";case "light":return "Switch to dark mode";case "dark":return "Switch to system mode";default:return "Toggle theme"}};return jsxRuntime.jsx("header",{className:`h-[60px] bg-background-surface border-b ${l}`,children:jsxRuntime.jsxs("div",{className:"relative flex h-full items-center",children:[jsxRuntime.jsx("div",{className:"flex items-center h-full flex-shrink-0",children:r&&jsxRuntime.jsx("label",{htmlFor:d,className:"md:hidden cursor-pointer","aria-label":"Open menu",children:jsxRuntime.jsx("div",{className:"flex h-full w-14 flex-col items-center justify-center border-r hover:bg-background-hover transition-colors",children:jsxRuntime.jsx(ar,{name:"List",size:"sm"})})})}),t&&jsxRuntime.jsx("div",{className:"flex-1 flex justify-end md:justify-center md:px-4 min-w-0",children:jsxRuntime.jsx("div",{className:"w-full md:max-w-4xl min-w-0",children:t})}),!t&&jsxRuntime.jsx("div",{className:"flex-1"}),jsxRuntime.jsxs("div",{className:"flex items-center gap-4 pr-4 flex-shrink-0 ml-4",children:[e,n&&a&&jsxRuntime.jsx("button",{type:"button",onClick:a,className:"flex items-center justify-center w-8 h-8 rounded hover:bg-background-hover transition-colors","aria-label":m(),children:u()}),c,o&&jsxRuntime.jsx("div",{className:"flex items-center",children:o})]})]})})};function Xf({sideNav:e,stackNav:t,topNav:r,children:o,contentPaddingX:n,contentPaddingY:a,showSidebarBorder:i=true,mainClassName:s,enableJsEnhancements:c=false}){let l="app-mobile-menu",d="app-sidebar-collapse";return Ie.useEffect(()=>{if(!c)return;let u=document.getElementById(d),m=document.getElementById(l),p=document.querySelector("[data-app-shell]"),f=document.getElementById("app-sidebar");if(!u||!p||!f)return;let g=null,b=false;try{let E=localStorage.getItem("sidebar-collapsed");E!==null&&(u.checked=E==="true");}catch{}let x=()=>{try{localStorage.setItem("sidebar-collapsed",String(u.checked));}catch{}u.checked?b=true:(g&&(clearTimeout(g),g=null),p.removeAttribute("data-peek"),b=false);};u.addEventListener("change",x);let v=E=>{E.key==="Escape"&&(m&&(m.checked=false),p.removeAttribute("data-peek"));};document.addEventListener("keydown",v);let C=null;m&&(C=()=>{document.body.style.overflow=m.checked?"hidden":"";},m.addEventListener("change",C));let y=E=>{let A=E.target.closest("a");A&&A.href&&window.innerWidth<768&&m&&setTimeout(()=>{m.checked=false,document.body.style.overflow="";},100);};f.addEventListener("click",y);let S=16,N=200,T=()=>{g&&(clearTimeout(g),g=null),p.getAttribute("data-peek")!=="true"&&p.setAttribute("data-peek","true");},M=()=>{g&&clearTimeout(g),g=setTimeout(()=>{p.removeAttribute("data-peek"),g=null;},N);},P=E=>{if(window.innerWidth<768||!u.checked)return;let I=f.contains(E.target);if(b&&!I&&(b=false),b)return;E.clientX<=S||I?T():p.getAttribute("data-peek")==="true"&&M();};return document.addEventListener("mousemove",P),()=>{u.removeEventListener("change",x),document.removeEventListener("keydown",v),m&&C&&m.removeEventListener("change",C),f.removeEventListener("click",y),document.removeEventListener("mousemove",P),g&&clearTimeout(g);}},[c,l,d]),jsxRuntime.jsxs("div",{className:"min-h-[100dvh] bg-background text-text-primary relative","data-app-shell":"",children:[jsxRuntime.jsx("input",{type:"checkbox",id:d,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(qa,{...r,mobileMenuId:l,className:["sticky top-0 flex-shrink-0 z-30 md:hidden",r?.className].filter(Boolean).join(" ")}),jsxRuntime.jsxs("div",{className:"flex w-full h-[calc(100dvh-60px)] md:h-[100dvh] relative overflow-hidden",children:[jsxRuntime.jsx("input",{type:"checkbox",id:l,className:"sr-only peer/mobile","aria-hidden":"true"}),jsxRuntime.jsx("label",{htmlFor:l,className:"fixed inset-0 bg-background-modal z-[55] opacity-0 pointer-events-none peer-checked/mobile:opacity-100 peer-checked/mobile:pointer-events-auto transition-opacity md:hidden","aria-label":"Close menu"}),jsxRuntime.jsx("div",{"aria-hidden":"true","data-peek-zone":"",className:"hidden md:block fixed left-0 top-0 bottom-0 w-4 z-[70] pointer-events-none"}),jsxRuntime.jsx("label",{htmlFor:d,"data-expand-rail":"",className:"hidden fixed left-3 top-3 z-[75] items-center justify-center w-9 h-9 rounded-md bg-background-surface border border-border-default shadow-sm hover:bg-background-hover cursor-pointer transition-all duration-200","aria-label":"Expand sidebar",children:jsxRuntime.jsx(ar,{name:"Sidebar",size:"sm"})}),jsxRuntime.jsx("aside",{id:"app-sidebar","data-app-sidebar":"",className:["bg-background-surface","border-r border-border-default","transition-transform duration-300 ease-in-out md:transition-[transform,width] md:duration-300 md:ease-in-out","fixed md:relative","left-0 top-0 bottom-0","z-[60] md:z-10","w-full md:w-64","h-[100dvh] md:h-full","-translate-x-full","peer-checked/mobile:translate-x-0","md:translate-x-0",i?"":"!border-r-0",(t??e)?.className||""].filter(Boolean).join(" "),children:t?jsxRuntime.jsx(Ss,{...t,mobileMenuId:l,sidebarCollapseId:d,sticky:false,width:null,className:["h-full !border-r-0",t.className].filter(Boolean).join(" ")}):jsxRuntime.jsx(Cs,{...e,mobileMenuId:l,sidebarCollapseId:d,className:"h-full"})}),jsxRuntime.jsxs("div",{className:"flex-1 flex flex-col h-full overflow-hidden",children:[jsxRuntime.jsx("div",{className:"sticky top-0 flex-shrink-0 hidden md:block z-20","data-top-nav-wrapper":"",children:jsxRuntime.jsx(qa,{...r,className:r?.className})}),jsxRuntime.jsx("main",{id:"app-content",className:["flex-1 overflow-y-auto overflow-x-hidden bg-background-body",n,a,s||""].join(" "),role:"main",children:o})]})]}),jsxRuntime.jsx("style",{dangerouslySetInnerHTML:{__html:`
|
|
1
|
+
'use strict';var reactAriaComponents=require('react-aria-components'),Be=require('react'),j0=require('papaparse'),eC=require('fuse.js'),reactVirtual=require('@tanstack/react-virtual'),jsxRuntime=require('react/jsx-runtime'),luxon=require('luxon'),tailwindMerge=require('tailwind-merge'),mS=require('@phosphor-icons/react'),T1=require('@phosphor-icons/react/ssr'),reactStately=require('react-stately'),lucideReact=require('lucide-react'),framerMotion=require('framer-motion'),oN=require('react-ace'),reactColorful=require('react-colorful'),curve=require('@visx/curve'),shape=require('@visx/shape'),gradient=require('@visx/gradient'),scale=require('@visx/scale'),d3Array=require('d3-array'),axis=require('@visx/axis'),responsive=require('@visx/responsive'),zoom=require('@visx/zoom'),brush=require('@visx/brush'),pattern=require('@visx/pattern'),core=require('@dnd-kit/core'),sortable=require('@dnd-kit/sortable'),utilities=require('@dnd-kit/utilities'),reactDom=require('react-dom'),yR=require('react-map-gl'),server=require('react-dom/server'),D3=require('@tiptap/extension-link'),react=require('@tiptap/react'),menus=require('@tiptap/react/menus'),A3=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 Be__namespace=/*#__PURE__*/_interopNamespace(Be);var j0__default=/*#__PURE__*/_interopDefault(j0);var eC__default=/*#__PURE__*/_interopDefault(eC);var mS__namespace=/*#__PURE__*/_interopNamespace(mS);var T1__namespace=/*#__PURE__*/_interopNamespace(T1);var oN__default=/*#__PURE__*/_interopDefault(oN);var yR__default=/*#__PURE__*/_interopDefault(yR);var D3__default=/*#__PURE__*/_interopDefault(D3);var A3__default=/*#__PURE__*/_interopDefault(A3);var z0=Object.create;var Uc=Object.defineProperty;var O0=Object.getOwnPropertyDescriptor;var H0=Object.getOwnPropertyNames;var W0=Object.getPrototypeOf,G0=Object.prototype.hasOwnProperty;var U0=(e,t,r)=>t in e?Uc(e,t,{enumerable:true,configurable:true,writable:true,value:r}):e[t]=r;var vr=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var Y0=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of H0(t))!G0.call(e,n)&&n!==r&&Uc(e,n,{get:()=>t[n],enumerable:!(o=O0(t,n))||o.enumerable});return e};var os=(e,t,r)=>(r=e!=null?z0(W0(e)):{},Y0(t||!e||!e.__esModule?Uc(r,"default",{value:e,enumerable:true}):r,e));var Ua=(e,t,r)=>U0(e,typeof t!="symbol"?t+"":t,r);var Jc=vr((Yc,Kc)=>{(function(e,t){typeof define=="function"&&define.amd?define([],t):typeof Yc<"u"?t():(t(),e.FileSaver={});})(Yc,function(){function e(s,c){return typeof c>"u"?c={autoBom:false}:typeof c!="object"&&(console.warn("Deprecated: Expected third argument to be a object"),c={autoBom:!c}),c.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(s.type)?new Blob(["\uFEFF",s],{type:s.type}):s}function t(s,c,l){var d=new XMLHttpRequest;d.open("GET",s),d.responseType="blob",d.onload=function(){i(d.response,c,l);},d.onerror=function(){console.error("could not download file");},d.send();}function r(s){var c=new XMLHttpRequest;c.open("HEAD",s,false);try{c.send();}catch{}return 200<=c.status&&299>=c.status}function o(s){try{s.dispatchEvent(new MouseEvent("click"));}catch{var c=document.createEvent("MouseEvents");c.initMouseEvent("click",true,true,window,0,0,0,80,20,false,false,false,false,0,null),s.dispatchEvent(c);}}var n=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof global=="object"&&global.global===global?global:void 0,a=n.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),i=n.saveAs||(typeof window!="object"||window!==n?function(){}:"download"in HTMLAnchorElement.prototype&&!a?function(s,c,l){var d=n.URL||n.webkitURL,u=document.createElement("a");c=c||s.name||"download",u.download=c,u.rel="noopener",typeof s=="string"?(u.href=s,u.origin===location.origin?o(u):r(u.href)?t(s,c,l):o(u,u.target="_blank")):(u.href=d.createObjectURL(s),setTimeout(function(){d.revokeObjectURL(u.href);},4e4),setTimeout(function(){o(u);},0));}:"msSaveOrOpenBlob"in navigator?function(s,c,l){if(c=c||s.name||"download",typeof s!="string")navigator.msSaveOrOpenBlob(e(s,l),c);else if(r(s))t(s,c,l);else {var d=document.createElement("a");d.href=s,d.target="_blank",setTimeout(function(){o(d);});}}:function(s,c,l,d){if(d=d||open("","_blank"),d&&(d.document.title=d.document.body.innerText="downloading..."),typeof s=="string")return t(s,c,l);var u=s.type==="application/octet-stream",m=/constructor/i.test(n.HTMLElement)||n.safari,p=/CriOS\/[\d]+/.test(navigator.userAgent);if((p||u&&m||a)&&typeof FileReader<"u"){var f=new FileReader;f.onloadend=function(){var x=f.result;x=p?x:x.replace(/^data:[^;]*;/,"data:attachment/file;"),d?d.location.href=x:location=x,d=null;},f.readAsDataURL(s);}else {var g=n.URL||n.webkitURL,b=g.createObjectURL(s);d?d.location=b:location.href=b,d=null,setTimeout(function(){g.revokeObjectURL(b);},4e4);}});n.saveAs=i.saveAs=i,typeof Kc<"u"&&(Kc.exports=i);});});var Wb=vr(We=>{var kt=typeof Symbol=="function"&&Symbol.for,$u=kt?Symbol.for("react.element"):60103,Qu=kt?Symbol.for("react.portal"):60106,al=kt?Symbol.for("react.fragment"):60107,il=kt?Symbol.for("react.strict_mode"):60108,sl=kt?Symbol.for("react.profiler"):60114,ll=kt?Symbol.for("react.provider"):60109,cl=kt?Symbol.for("react.context"):60110,_u=kt?Symbol.for("react.async_mode"):60111,dl=kt?Symbol.for("react.concurrent_mode"):60111,ul=kt?Symbol.for("react.forward_ref"):60112,pl=kt?Symbol.for("react.suspense"):60113,zN=kt?Symbol.for("react.suspense_list"):60120,ml=kt?Symbol.for("react.memo"):60115,fl=kt?Symbol.for("react.lazy"):60116,ON=kt?Symbol.for("react.block"):60121,HN=kt?Symbol.for("react.fundamental"):60117,WN=kt?Symbol.for("react.responder"):60118,GN=kt?Symbol.for("react.scope"):60119;function mr(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case $u:switch(e=e.type,e){case _u:case dl:case al:case sl:case il:case pl:return e;default:switch(e=e&&e.$$typeof,e){case cl:case ul:case fl:case ml:case ll:return e;default:return t}}case Qu:return t}}}function Hb(e){return mr(e)===dl}We.AsyncMode=_u;We.ConcurrentMode=dl;We.ContextConsumer=cl;We.ContextProvider=ll;We.Element=$u;We.ForwardRef=ul;We.Fragment=al;We.Lazy=fl;We.Memo=ml;We.Portal=Qu;We.Profiler=sl;We.StrictMode=il;We.Suspense=pl;We.isAsyncMode=function(e){return Hb(e)||mr(e)===_u};We.isConcurrentMode=Hb;We.isContextConsumer=function(e){return mr(e)===cl};We.isContextProvider=function(e){return mr(e)===ll};We.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===$u};We.isForwardRef=function(e){return mr(e)===ul};We.isFragment=function(e){return mr(e)===al};We.isLazy=function(e){return mr(e)===fl};We.isMemo=function(e){return mr(e)===ml};We.isPortal=function(e){return mr(e)===Qu};We.isProfiler=function(e){return mr(e)===sl};We.isStrictMode=function(e){return mr(e)===il};We.isSuspense=function(e){return mr(e)===pl};We.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===al||e===dl||e===sl||e===il||e===pl||e===zN||typeof e=="object"&&e!==null&&(e.$$typeof===fl||e.$$typeof===ml||e.$$typeof===ll||e.$$typeof===cl||e.$$typeof===ul||e.$$typeof===HN||e.$$typeof===WN||e.$$typeof===GN||e.$$typeof===ON)};We.typeOf=mr;});var Gb=vr(Ge=>{process.env.NODE_ENV!=="production"&&(function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,o=e?Symbol.for("react.fragment"):60107,n=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,i=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,u=e?Symbol.for("react.suspense"):60113,m=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,f=e?Symbol.for("react.lazy"):60116,g=e?Symbol.for("react.block"):60121,b=e?Symbol.for("react.fundamental"):60117,x=e?Symbol.for("react.responder"):60118,h=e?Symbol.for("react.scope"):60119;function C(J){return typeof J=="string"||typeof J=="function"||J===o||J===l||J===a||J===n||J===u||J===m||typeof J=="object"&&J!==null&&(J.$$typeof===f||J.$$typeof===p||J.$$typeof===i||J.$$typeof===s||J.$$typeof===d||J.$$typeof===b||J.$$typeof===x||J.$$typeof===h||J.$$typeof===g)}function y(J){if(typeof J=="object"&&J!==null){var re=J.$$typeof;switch(re){case t:var xe=J.type;switch(xe){case c:case l:case o:case a:case n:case u:return xe;default:var te=xe&&xe.$$typeof;switch(te){case s:case d:case f:case p:case i:return te;default:return re}}case r:return re}}}var S=c,N=l,T=s,E=i,R=t,M=d,A=o,L=f,w=p,k=r,O=a,G=n,B=u,z=false;function X(J){return z||(z=true,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),V(J)||y(J)===c}function V(J){return y(J)===l}function K(J){return y(J)===s}function P(J){return y(J)===i}function D(J){return typeof J=="object"&&J!==null&&J.$$typeof===t}function F(J){return y(J)===d}function I(J){return y(J)===o}function v(J){return y(J)===f}function W(J){return y(J)===p}function Y(J){return y(J)===r}function U(J){return y(J)===a}function ee(J){return y(J)===n}function pe(J){return y(J)===u}Ge.AsyncMode=S,Ge.ConcurrentMode=N,Ge.ContextConsumer=T,Ge.ContextProvider=E,Ge.Element=R,Ge.ForwardRef=M,Ge.Fragment=A,Ge.Lazy=L,Ge.Memo=w,Ge.Portal=k,Ge.Profiler=O,Ge.StrictMode=G,Ge.Suspense=B,Ge.isAsyncMode=X,Ge.isConcurrentMode=V,Ge.isContextConsumer=K,Ge.isContextProvider=P,Ge.isElement=D,Ge.isForwardRef=F,Ge.isFragment=I,Ge.isLazy=v,Ge.isMemo=W,Ge.isPortal=Y,Ge.isProfiler=U,Ge.isStrictMode=ee,Ge.isSuspense=pe,Ge.isValidElementType=C,Ge.typeOf=y;})();});var tp=vr((Xz,ep)=>{process.env.NODE_ENV==="production"?ep.exports=Wb():ep.exports=Gb();});var Kb=vr((Zz,Yb)=>{var Ub=Object.getOwnPropertySymbols,UN=Object.prototype.hasOwnProperty,YN=Object.prototype.propertyIsEnumerable;function KN(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function JN(){try{if(!Object.assign)return !1;var e=new String("abc");if(e[5]="de",Object.getOwnPropertyNames(e)[0]==="5")return !1;for(var t={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;var o=Object.getOwnPropertyNames(t).map(function(a){return t[a]});if(o.join("")!=="0123456789")return !1;var n={};return "abcdefghijklmnopqrst".split("").forEach(function(a){n[a]=a;}),Object.keys(Object.assign({},n)).join("")==="abcdefghijklmnopqrst"}catch{return false}}Yb.exports=JN()?Object.assign:function(e,t){for(var r,o=KN(e),n,a=1;a<arguments.length;a++){r=Object(arguments[a]);for(var i in r)UN.call(r,i)&&(o[i]=r[i]);if(Ub){n=Ub(r);for(var s=0;s<n.length;s++)YN.call(r,n[s])&&(o[n[s]]=r[n[s]]);}}return o};});var gl=vr(($z,Jb)=>{var jN="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";Jb.exports=jN;});var rp=vr((Qz,jb)=>{jb.exports=Function.call.bind(Object.prototype.hasOwnProperty);});var Qb=vr((_z,$b)=>{var op=function(){};process.env.NODE_ENV!=="production"&&(qb=gl(),bl={},Xb=rp(),op=function(e){var t="Warning: "+e;typeof console<"u"&&console.error(t);try{throw new Error(t)}catch{}});var qb,bl,Xb;function Zb(e,t,r,o,n){if(process.env.NODE_ENV!=="production"){for(var a in e)if(Xb(e,a)){var i;try{if(typeof e[a]!="function"){var s=Error((o||"React class")+": "+r+" type `"+a+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[a]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw s.name="Invariant Violation",s}i=e[a](t,a,o,r,null,qb);}catch(l){i=l;}if(i&&!(i instanceof Error)&&op((o||"React class")+": type specification of "+r+" `"+a+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof i+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),i instanceof Error&&!(i.message in bl)){bl[i.message]=true;var c=n?n():"";op("Failed "+r+" type: "+i.message+(c??""));}}}}Zb.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(bl={});};$b.exports=Zb;});var tx=vr((eO,ex)=>{var qN=tp(),XN=Kb(),ha=gl(),np=rp(),_b=Qb(),ya=function(){};process.env.NODE_ENV!=="production"&&(ya=function(e){var t="Warning: "+e;typeof console<"u"&&console.error(t);try{throw new Error(t)}catch{}});function xl(){return null}ex.exports=function(e,t){var r=typeof Symbol=="function"&&Symbol.iterator,o="@@iterator";function n(w){var k=w&&(r&&w[r]||w[o]);if(typeof k=="function")return k}var a="<<anonymous>>",i={array:d("array"),bigint:d("bigint"),bool:d("boolean"),func:d("function"),number:d("number"),object:d("object"),string:d("string"),symbol:d("symbol"),any:u(),arrayOf:m,element:p(),elementType:f(),instanceOf:g,node:C(),objectOf:x,oneOf:b,oneOfType:h,shape:S,exact:N};function s(w,k){return w===k?w!==0||1/w===1/k:w!==w&&k!==k}function c(w,k){this.message=w,this.data=k&&typeof k=="object"?k:{},this.stack="";}c.prototype=Error.prototype;function l(w){if(process.env.NODE_ENV!=="production")var k={},O=0;function G(z,X,V,K,P,D,F){if(K=K||a,D=D||V,F!==ha){if(t){var I=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw I.name="Invariant Violation",I}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var v=K+":"+V;!k[v]&&O<3&&(ya("You are manually calling a React.PropTypes validation function for the `"+D+"` prop on `"+K+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),k[v]=true,O++);}}return X[V]==null?z?X[V]===null?new c("The "+P+" `"+D+"` is marked as required "+("in `"+K+"`, but its value is `null`.")):new c("The "+P+" `"+D+"` is marked as required in "+("`"+K+"`, but its value is `undefined`.")):null:w(X,V,K,P,D)}var B=G.bind(null,false);return B.isRequired=G.bind(null,true),B}function d(w){function k(O,G,B,z,X,V){var K=O[G],P=R(K);if(P!==w){var D=M(K);return new c("Invalid "+z+" `"+X+"` of type "+("`"+D+"` supplied to `"+B+"`, expected ")+("`"+w+"`."),{expectedType:w})}return null}return l(k)}function u(){return l(xl)}function m(w){function k(O,G,B,z,X){if(typeof w!="function")return new c("Property `"+X+"` of component `"+B+"` has invalid PropType notation inside arrayOf.");var V=O[G];if(!Array.isArray(V)){var K=R(V);return new c("Invalid "+z+" `"+X+"` of type "+("`"+K+"` supplied to `"+B+"`, expected an array."))}for(var P=0;P<V.length;P++){var D=w(V,P,B,z,X+"["+P+"]",ha);if(D instanceof Error)return D}return null}return l(k)}function p(){function w(k,O,G,B,z){var X=k[O];if(!e(X)){var V=R(X);return new c("Invalid "+B+" `"+z+"` of type "+("`"+V+"` supplied to `"+G+"`, expected a single ReactElement."))}return null}return l(w)}function f(){function w(k,O,G,B,z){var X=k[O];if(!qN.isValidElementType(X)){var V=R(X);return new c("Invalid "+B+" `"+z+"` of type "+("`"+V+"` supplied to `"+G+"`, expected a single ReactElement type."))}return null}return l(w)}function g(w){function k(O,G,B,z,X){if(!(O[G]instanceof w)){var V=w.name||a,K=L(O[G]);return new c("Invalid "+z+" `"+X+"` of type "+("`"+K+"` supplied to `"+B+"`, expected ")+("instance of `"+V+"`."))}return null}return l(k)}function b(w){if(!Array.isArray(w))return process.env.NODE_ENV!=="production"&&(arguments.length>1?ya("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):ya("Invalid argument supplied to oneOf, expected an array.")),xl;function k(O,G,B,z,X){for(var V=O[G],K=0;K<w.length;K++)if(s(V,w[K]))return null;var P=JSON.stringify(w,function(F,I){var v=M(I);return v==="symbol"?String(I):I});return new c("Invalid "+z+" `"+X+"` of value `"+String(V)+"` "+("supplied to `"+B+"`, expected one of "+P+"."))}return l(k)}function x(w){function k(O,G,B,z,X){if(typeof w!="function")return new c("Property `"+X+"` of component `"+B+"` has invalid PropType notation inside objectOf.");var V=O[G],K=R(V);if(K!=="object")return new c("Invalid "+z+" `"+X+"` of type "+("`"+K+"` supplied to `"+B+"`, expected an object."));for(var P in V)if(np(V,P)){var D=w(V,P,B,z,X+"."+P,ha);if(D instanceof Error)return D}return null}return l(k)}function h(w){if(!Array.isArray(w))return process.env.NODE_ENV!=="production"&&ya("Invalid argument supplied to oneOfType, expected an instance of array."),xl;for(var k=0;k<w.length;k++){var O=w[k];if(typeof O!="function")return ya("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+A(O)+" at index "+k+"."),xl}function G(B,z,X,V,K){for(var P=[],D=0;D<w.length;D++){var F=w[D],I=F(B,z,X,V,K,ha);if(I==null)return null;I.data&&np(I.data,"expectedType")&&P.push(I.data.expectedType);}var v=P.length>0?", expected one of type ["+P.join(", ")+"]":"";return new c("Invalid "+V+" `"+K+"` supplied to "+("`"+X+"`"+v+"."))}return l(G)}function C(){function w(k,O,G,B,z){return T(k[O])?null:new c("Invalid "+B+" `"+z+"` supplied to "+("`"+G+"`, expected a ReactNode."))}return l(w)}function y(w,k,O,G,B){return new c((w||"React class")+": "+k+" type `"+O+"."+G+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+B+"`.")}function S(w){function k(O,G,B,z,X){var V=O[G],K=R(V);if(K!=="object")return new c("Invalid "+z+" `"+X+"` of type `"+K+"` "+("supplied to `"+B+"`, expected `object`."));for(var P in w){var D=w[P];if(typeof D!="function")return y(B,z,X,P,M(D));var F=D(V,P,B,z,X+"."+P,ha);if(F)return F}return null}return l(k)}function N(w){function k(O,G,B,z,X){var V=O[G],K=R(V);if(K!=="object")return new c("Invalid "+z+" `"+X+"` of type `"+K+"` "+("supplied to `"+B+"`, expected `object`."));var P=XN({},O[G],w);for(var D in P){var F=w[D];if(np(w,D)&&typeof F!="function")return y(B,z,X,D,M(F));if(!F)return new c("Invalid "+z+" `"+X+"` key `"+D+"` supplied to `"+B+"`.\nBad object: "+JSON.stringify(O[G],null," ")+`
|
|
2
|
+
Valid keys: `+JSON.stringify(Object.keys(w),null," "));var I=F(V,D,B,z,X+"."+D,ha);if(I)return I}return null}return l(k)}function T(w){switch(typeof w){case "number":case "string":case "undefined":return true;case "boolean":return !w;case "object":if(Array.isArray(w))return w.every(T);if(w===null||e(w))return true;var k=n(w);if(k){var O=k.call(w),G;if(k!==w.entries){for(;!(G=O.next()).done;)if(!T(G.value))return false}else for(;!(G=O.next()).done;){var B=G.value;if(B&&!T(B[1]))return false}}else return false;return true;default:return false}}function E(w,k){return w==="symbol"?true:k?k["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&k instanceof Symbol:false}function R(w){var k=typeof w;return Array.isArray(w)?"array":w instanceof RegExp?"object":E(k,w)?"symbol":k}function M(w){if(typeof w>"u"||w===null)return ""+w;var k=R(w);if(k==="object"){if(w instanceof Date)return "date";if(w instanceof RegExp)return "regexp"}return k}function A(w){var k=M(w);switch(k){case "array":case "object":return "an "+k;case "boolean":case "date":case "regexp":return "a "+k;default:return k}}function L(w){return !w.constructor||!w.constructor.name?a:w.constructor.name}return i.checkPropTypes=_b,i.resetWarningCache=_b.resetWarningCache,i.PropTypes=i,i};});var ax=vr((tO,nx)=>{var ZN=gl();function rx(){}function ox(){}ox.resetWarningCache=rx;nx.exports=function(){function e(o,n,a,i,s,c){if(c!==ZN){var l=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}e.isRequired=e;function t(){return e}var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:ox,resetWarningCache:rx};return r.PropTypes=r,r};});var lx=vr((rO,ap)=>{process.env.NODE_ENV!=="production"?(ix=tp(),sx=true,ap.exports=tx()(ix.isElement,sx)):ap.exports=ax()();var ix,sx;});var cx=vr((oO,hl)=>{(function(){var e={}.hasOwnProperty;function t(){for(var n="",a=0;a<arguments.length;a++){var i=arguments[a];i&&(n=o(n,r(i)));}return n}function r(n){if(typeof n=="string"||typeof n=="number")return n;if(typeof n!="object")return "";if(Array.isArray(n))return t.apply(null,n);if(n.toString!==Object.prototype.toString&&!n.toString.toString().includes("[native code]"))return n.toString();var a="";for(var i in n)e.call(n,i)&&n[i]&&(a=o(a,i));return a}function o(n,a){return a?n?n+" "+a:n+a:n}typeof hl<"u"&&hl.exports?(t.default=t,hl.exports=t):typeof define=="function"&&typeof define.amd=="object"&&define.amd?define("classnames",[],function(){return t}):window.classNames=t;})();});function Ut(e,t=false){let[r,o]=Be.useState(t);return Be.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 cn={sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"};function Yt(e="base"){let t=Ut(`(min-width: ${cn.sm})`,e!=="base"),r=Ut(`(min-width: ${cn.md})`,["md","lg","xl","2xl"].includes(e)),o=Ut(`(min-width: ${cn.lg})`,["lg","xl","2xl"].includes(e)),n=Ut(`(min-width: ${cn.xl})`,["xl","2xl"].includes(e)),a=Ut(`(min-width: ${cn["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}}var ns=os(Jc(),1);var Lm=["stroke","fill","color","stop-color","flood-color","lighting-color"],Am=/var\s*\(/;function Im(e,t){let r=[e,...Array.from(e.querySelectorAll("*"))],o=[t,...Array.from(t.querySelectorAll("*"))],n=Math.min(r.length,o.length);for(let a=0;a<n;a++){let i=r[a],s=o[a];if(!(i instanceof Element)||!(s instanceof Element))continue;let c=window.getComputedStyle(i);for(let l of Lm){let d=s.getAttribute(l);if(d&&Am.test(d)){let u=c.getPropertyValue(l);u&&s.setAttribute(l,u.trim());}}if(s instanceof HTMLElement||s instanceof SVGElement)for(let l of Lm){let d=l,u=s.style.getPropertyValue(d);if(u&&Am.test(u)){let m=c.getPropertyValue(d);m&&s.style.setProperty(d,m.trim());}}}}function jc(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 qc(e,t,r={},o){let n=Array.isArray(t[0])?t:[t];try{switch(e){case "csv":await q0(n,r);break;case "svg":await X0(o,r);break;case "png":await Z0(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 q0(e,t){try{let r=new Map;e.forEach(c=>{c.forEach(l=>{let d=l.xValue.getTime();r.has(d)||r.set(d,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((d,u)=>{let m=t.seriesLabels?.[u]||`Series ${u+1}`,p=d.find(f=>f.xValue.getTime()===c.getTime());l[m]=p?p.yValue:"",p?.category&&(l[`${m} Category`]=p.category);}),l}),a=j0__default.default.unparse(n,{header:!0,skipEmptyLines:!0}),i=new Blob([a],{type:"text/csv;charset=utf-8;"}),s=jc(t.filename||"chart-data","csv",t.timestamp!==!1);(0,ns.saveAs)(i,s);}catch(r){throw new Error(`CSV export failed: ${r instanceof Error?r.message:"Unknown error"}`)}}async function X0(e,t){if(!e.current)throw new Error("SVG element not found");try{let r=e.current,o=r.cloneNode(!0);if(Im(r,o),!o.querySelector("rect[data-background]")){let l=document.createElementNS("http://www.w3.org/2000/svg","rect");l.setAttribute("width",o.getAttribute("width")||"100%"),l.setAttribute("height",o.getAttribute("height")||"100%"),l.setAttribute("fill","white"),l.setAttribute("data-background","true"),o.insertBefore(l,o.firstChild);}let i=new XMLSerializer().serializeToString(o);i.includes("<?xml")||(i=`<?xml version="1.0" encoding="UTF-8"?>
|
|
3
|
+
`+i),i.includes("xmlns=")||(i=i.replace("<svg",'<svg xmlns="http://www.w3.org/2000/svg"'));let s=new Blob([i],{type:"image/svg+xml;charset=utf-8"}),c=jc(t.filename||"chart","svg",t.timestamp!==!1);(0,ns.saveAs)(s,c);}catch(r){throw new Error(`SVG export failed: ${r instanceof Error?r.message:"Unknown error"}`)}}async function Z0(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);Im(n,i),i.setAttribute("width",String(a.width)),i.setAttribute("height",String(a.height)),i.removeAttribute("transform");let s=i.getElementsByTagName("text");Array.from(s).forEach(m=>{m.style.fontFamily||(m.style.fontFamily="system-ui, -apple-system, sans-serif"),m.style.fontSize||(m.style.fontSize="12px");});let c=document.createElementNS("http://www.w3.org/2000/svg","rect");c.setAttribute("width",String(a.width)),c.setAttribute("height",String(a.height)),c.setAttribute("fill","white"),i.insertBefore(c,i.firstChild);let d=new XMLSerializer().serializeToString(i);d.includes("xmlns=")||(d=d.replace("<svg",'<svg xmlns="http://www.w3.org/2000/svg"'));let u=new Blob([d],{type:"image/svg+xml;charset=utf-8"});return o=URL.createObjectURL(u),new Promise((m,p)=>{let f=new Image,g=setTimeout(()=>{o&&URL.revokeObjectURL(o),p(new Error("Image loading timeout"));},1e4);f.onload=()=>{clearTimeout(g);try{let b=document.createElement("canvas");b.width=a.width*r,b.height=a.height*r;let x=b.getContext("2d");if(!x)throw new Error("Canvas context not available");x.imageSmoothingEnabled=!0,x.imageSmoothingQuality="high",x.scale(r,r),x.fillStyle="white",x.fillRect(0,0,a.width,a.height),x.drawImage(f,0,0,a.width,a.height),b.toBlob(h=>{if(h){let C=jc(t.filename||"chart","png",t.timestamp!==!1);(0,ns.saveAs)(h,C),m();}else p(new Error("Failed to create PNG blob"));o&&URL.revokeObjectURL(o);},"image/png",1);}catch(b){o&&URL.revokeObjectURL(o),p(b);}},f.onerror=()=>{clearTimeout(g),o&&URL.revokeObjectURL(o),p(new Error("Failed to load SVG as image"));},f.src=o;})}catch(n){throw o&&URL.revokeObjectURL(o),new Error(`PNG export failed: ${n instanceof Error?n.message:"Unknown error"}`)}}function $0(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 Q0(e){return {csv:"CSV Spreadsheet",svg:"SVG Vector Image",png:"PNG Image"}[e]||"Unknown Format"}function Fm({datasets:e,metadata:t,svgRef:r}){return Be.useCallback(async o=>{try{await qc(o,e,t,r);}catch(n){throw console.error("Chart export failed:",n),n}},[e,t,r])}function Ya(e,t){return t.split(".").reduce((r,o)=>r?.[o],e)}function tC(e,t){let r=Ya(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 Bm(e,t){if(t.conditions.length===0)return true;let r=t.conditions.map(o=>"conditions"in o?Bm(e,o):tC(e,o));return t.logic==="AND"?r.every(Boolean):r.some(Boolean)}function rC(e,t){return !t||t.conditions.length===0?e:e.filter(r=>Bm(r,t))}function oC(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 nC(e,t){return t?[...e].sort((r,o)=>{let n=Ya(r,t.field),a=Ya(o,t.field);return oC(n,a,t.direction)}):e}function aC(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 eC__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=Ya(s,c);return l==null?false:String(l).toLowerCase().includes(i)}))}function iC(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=Ya(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 Xc({data:e,filters:t,sort:r,search:o,facetConfigs:n=[]}){let a=aC(e,o||null);a=rC(a,t||null);let i=iC(a,n);return a=nC(a,r||null),{data:a,facetCounts:i,resultCount:a.length}}function as({data:e,filters:t,sort:r,search:o,facetConfigs:n=[]}){return Be.useMemo(()=>Xc({data:e,filters:t,sort:r,search:o,facetConfigs:n}),[e,t,r,o,n])}function Ro(e,t=300){let[r,o]=Be.useState(e);return Be.useEffect(()=>{let n=setTimeout(()=>o(e),t);return ()=>clearTimeout(n)},[e,t]),r}function is({filters:e,sort:t,search:r,onStateChange:o,searchDebounce:n=300}){let a=Ro(r,n),i=Be.useRef(true);Be.useEffect(()=>{if(i.current){i.current=false;return}o({filters:e,sort:t,search:a});},[e,t,a,o]);}function Vm(e){return e.mode==="client"?as({data:e.data,filters:e.filters,sort:e.sort,search:e.search,facetConfigs:e.facetConfigs}):(is({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 ss(e,t=300){let[r,o]=Be.useState(false);return Be.useEffect(()=>{if(e){let n=setTimeout(()=>{o(true);},t);return ()=>clearTimeout(n)}o(false);},[e,t]),r}function oa(){let[e,t]=Be.useState({width:0,height:0}),r=Be.useRef(null),o=Be.useRef(void 0),n=Be.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:d,height:u}=l.contentRect;t(m=>m.width!==d||m.height!==u?{width:d,height:u}:m);}});}),r.current.observe(a);},[]);return Be.useEffect(()=>()=>{o.current&&cancelAnimationFrame(o.current),r.current&&r.current.disconnect();},[]),{ref:n,width:e.width,height:e.height}}function Do({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 d=Be.useRef(null),u=Be.useRef(null),m=Be.useRef(false),[p,f]=Be.useState(0);Be.useEffect(()=>{u.current&&(c||d.current)&&f(E=>E+1);},[c,e.length]);let g=n||(o?e.length===0?"loading":"loading-more":"idle"),b=g==="loading",x=g==="loading-more",h=a!==void 0?a:e.length>=100,C=reactVirtual.useVirtualizer({count:e.length,getScrollElement:()=>c||d.current,estimateSize:()=>i,overscan:s}),y=h?C:null,S=h?C.getVirtualItems():[];Be.useEffect(()=>{let E=u.current,R=c||d.current;if(!E||!R||!r||o||!t)return;let M=new IntersectionObserver(A=>{let[L]=A;L?.isIntersecting&&!m.current&&r&&t&&(m.current=true,Promise.resolve(t()).finally(()=>{m.current=false;}));},{root:R,rootMargin:`0px 0px ${l}px 0px`,threshold:0});return M.observe(E),()=>{M.disconnect();}},[r,o,t,c,l,p]);let N=Be.useCallback((E,R)=>{y?y.scrollToIndex(E,R):d.current&&d.current.children[E]?.scrollIntoView({behavior:"smooth",block:R?.align||"start"});},[y]),T=Be.useCallback(()=>{y?y.scrollToIndex(0,{align:"start"}):d.current&&d.current.scrollTo({top:0,behavior:"smooth"});},[y]);return {virtualizer:y,virtualItems:S,computedLoadingState:g,isInitialLoad:b,isLoadingMore:x,scrollRef:d,loadMoreRef:u,scrollToIndex:N,scrollToTop:T}}function ls(e,t){let[r,o]=Be.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}});Be.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=Be.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=Be.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 Gm=os(Jc(),1);function SC(e,t,r=true){let o=e;if(r){let n=new Date().toISOString().replace(/[:.]/g,"-").slice(0,-5);return `${o}-${n}.${t}`}return `${o}.${t}`}function wC(e,t){return t.accessor?typeof t.accessor=="function"?t.accessor(e):e[t.accessor]:null}function Um(e,t){let r=wC(t,e);return e.exportValue?e.exportValue(r,t)??"":r==null?"":r instanceof Date?r.toISOString():typeof r=="object"?JSON.stringify(r):r}function $c(e){return e.filter(t=>t.exportable!==false)}function Ym(e){let t=e.map(n=>n.exportLabel||n.label),r=new Set,o=[];for(let n of t)r.has(n)?o.includes(n)||o.push(n):r.add(n);if(o.length>0)throw new Error(`Duplicate export headers found: ${o.join(", ")}. Use exportLabel to provide unique headers.`)}async function Qc(e){let{columns:t,data:r,metadata:o={}}=e;try{let n=$c(t);if(n.length===0)throw new Error("No exportable columns found");Ym(n);let a=r.map(l=>{let d={};for(let u of n){let m=u.exportLabel||u.label;d[m]=Um(u,l);}return d}),i=j0__default.default.unparse(a,{header:!0,skipEmptyLines:!0}),s=new Blob([i],{type:"text/csv;charset=utf-8;"}),c=SC(o.filename||"table-data","csv",o.timestamp!==!1);(0,Gm.saveAs)(s,c);}catch(n){throw new Error(`CSV export failed: ${n instanceof Error?n.message:"Unknown error"}`)}}function NC(e){let{columns:t,data:r}=e,o=$c(t);return Ym(o),r.map(n=>{let a={};for(let i of o){let s=i.exportLabel||i.label;a[s]=Um(i,n);}return a})}function kC(e){return $c(e).map(t=>t.exportLabel||t.label)}function Km({columns:e,data:t,metadata:r}){let n=e.filter(i=>i.exportable!==false).length>0&&t.length>0;return {exportCSV:Be.useCallback(async()=>{try{await Qc({columns:e,data:t,metadata:r});}catch(i){throw console.error("Table export failed:",i),i}},[e,t,r]),canExport:n}}function _c(e,t,r,o){if(r.length===0)throw new Error("tierForViewport: resolution ladder is empty");let n=[...r].sort((s,c)=>s.bucketMs-c.bucketMs),a=e/Math.max(1,t*o.targetPointsPerPx),i=Math.max(o.nativeMs,a);return n.find(s=>s.bucketMs>=i)??n[n.length-1]}function PC(e,t){return Math.floor(e/t.tileSpanMs)}function Mo(e,t,r){let o=PC(e.startMs,t)-r,n=Math.ceil(e.endMs/t.tileSpanMs)-1+r,a=[];for(let i=o;i<=n;i++)a.push({tierId:t.id,index:i,startMs:i*t.tileSpanMs,endMs:(i+1)*t.tileSpanMs});return a}var ar=(e,t)=>`${e}:${t}`;var Jm={erroredTiles:0};function ed(e,t){let r=new Map,o=new Map,n=0;for(let c of e){let l=t.get(ar(c.tierId,c.index));if(l){if(l.status==="error"){n+=1;continue}if(l.data){for(let d of l.data.line)r.set(d.xValue.getTime(),d);for(let d of l.data.band??[])o.set(d.xValue.getTime(),d);}}}let a=(c,l)=>c.xValue.getTime()-l.xValue.getTime(),i=[...r.values()].sort(a),s=[...o.values()].sort(a);return {line:i,band:s,coverage:{earliestMs:i.length?i[0].xValue.getTime():void 0,latestMs:i.length?i[i.length-1].xValue.getTime():void 0,erroredTiles:n}}}function RC(e,t,r){let o=Mo(e,t,0);return o.length===0?false:o.every(n=>{let a=r.get(ar(n.tierId,n.index));return a!=null&&(a.status==="loaded"||a.status==="empty")})}function jm(e,t,r){return Mo(e,t,0).some(n=>{let a=r.get(ar(n.tierId,n.index));return a?.status==="loaded"&&(a.data?.line.length??0)>0})}function DC(e,t){if(!e.line.length)return false;let r=e.coverage.earliestMs,o=e.coverage.latestMs;return r==null||o==null?false:r<t.endMs&&o>t.startMs}function qm({viewport:e,targetTier:t,ladder:r,store:o,overscanTiles:n,prev:a}){let i=RC(e,t,o);if(i&&jm(e,t,o)){let c=Mo(e,t,n),{line:l,band:d,coverage:u}=ed(c,o);return {line:l,band:d,renderTier:t,targetTier:t,isFallback:false,isStale:false,coverage:u}}let s=r.findIndex(c=>c.id===t.id);for(let c=s+1;c<r.length;c++){let l=r[c];if(jm(e,l,o)){let d=Mo(e,l,n),{line:u,band:m,coverage:p}=ed(d,o);return {line:u,band:m,renderTier:l,targetTier:t,isFallback:true,isStale:false,coverage:p}}}if(i){let c=Mo(e,t,n),{line:l,band:d,coverage:u}=ed(c,o);return {line:l,band:d,renderTier:t,targetTier:t,isFallback:false,isStale:false,coverage:u}}return a?DC(a,e)?{...a,targetTier:t,isFallback:true,isStale:false}:{line:a.line,band:a.band,renderTier:null,targetTier:t,isFallback:true,isStale:true,coverage:Jm}:{line:[],band:[],renderTier:null,targetTier:t,isFallback:false,isStale:false,coverage:Jm}}var Xm=new Map;function Zm(e,t){switch(t.type){case "reset":return new Map;case "request":{let r=new Map(e);for(let o of t.ids){let n=r.get(o);(!n||n.status==="error")&&r.set(o,{status:"loading"});}return r}case "fulfilled":{let r=new Map(e);return r.set(t.id,{status:t.data.line.length>0?"loaded":"empty",data:t.data}),r}case "failed":{let r=new Map(e);return r.set(t.id,{status:"error",error:t.error}),r}default:return e}}var _m=1.3,EC=25e4,LC=3;function AC(e,t){let r=t.tileSpanMs/t.bucketMs,o=Math.max(1,Math.floor(EC/r/LC));return Math.min(Math.max(1,Math.ceil(.5*e/t.tileSpanMs)),o)}function IC(e){let{fetchTile:t,ladder:r,nativeMs:o,initialViewport:n,widthPx:a,maxFutureMs:i,targetPointsPerPx:s=1,concurrency:c=3,resetKey:l}=e,d=Be.useMemo(()=>({targetPointsPerPx:s,nativeMs:o}),[s,o]),[u,m]=Be.useState(n),[p,f]=Be.useState(()=>_c(n.endMs-n.startMs,Math.max(1,a),r,d)),[g,b]=Be.useReducer(Zm,Xm),x=Be.useRef(n.endMs-n.startMs);Be.useEffect(()=>{let z=u.endMs-u.startMs,X=_c(z,Math.max(1,a),r,d);if(X.id===p.id)return;let V=z/x.current;(V>_m||V<1/_m)&&(x.current=z,f(X));},[u,a,r,p.id,d]);let h=u.endMs-u.startMs,C=Be.useMemo(()=>AC(h,p),[h,p]),y=Be.useMemo(()=>Mo(u,p,C),[u,p,C]),S=Be.useMemo(()=>y.map(z=>ar(z.tierId,z.index)).join(","),[y]),N=Be.useRef(y);N.current=y;let T=Be.useRef(u);T.current=u;let E=Be.useRef(g);E.current=g;let R=Be.useRef(new Map);Be.useEffect(()=>{for(let[P,D]of R.current)D.tierId!==p.id&&(D.ac.abort(),R.current.delete(P));let z=N.current.filter(P=>{let D=ar(P.tierId,P.index),F=g.get(D);return F?F.status==="loading"&&!R.current.has(D):true}),X=(T.current.startMs+T.current.endMs)/2;z.sort((P,D)=>Math.abs((P.startMs+P.endMs)/2-X)-Math.abs((D.startMs+D.endMs)/2-X));let V=Math.max(0,c-R.current.size),K=z.slice(0,V);if(K.length!==0){b({type:"request",ids:K.map(P=>ar(P.tierId,P.index))});for(let P of K){let D=ar(P.tierId,P.index),F=new AbortController;R.current.set(D,{ac:F,tierId:P.tierId});let I=i!=null?Math.min(P.endMs,i):P.endMs;t(p,P.startMs,I,F.signal).then(v=>{F.signal.aborted||b({type:"fulfilled",id:D,data:v});}).catch(v=>{if(!F.signal.aborted){let W=v instanceof Error?v.message:String(v);b({type:"failed",id:D,error:new Error(`tile fetch failed (tile ${D}, tier ${p.id}): ${W}`)});}}).finally(()=>{R.current.delete(D);});}}},[S,g,t,p,c,i]);let M=Be.useRef(null),A=Be.useRef(false);Be.useEffect(()=>{if(!A.current){A.current=true;return}for(let z of R.current.values())z.ac.abort();R.current.clear(),M.current=null,b({type:"reset"});},[l]),Be.useEffect(()=>()=>{for(let z of R.current.values())z.ac.abort();R.current.clear();},[]);let L=Be.useMemo(()=>N.current.map(z=>`${ar(z.tierId,z.index)}:${g.get(ar(z.tierId,z.index))?.status??"\u2205"}`).join("|"),[S,g]),w=Be.useMemo(()=>{let z=qm({viewport:T.current,targetTier:p,ladder:r,store:E.current,overscanTiles:C,prev:M.current});return M.current=z,z},[L,p,r,C,u.startMs,u.endMs]),k=Be.useMemo(()=>N.current.some(z=>E.current.get(ar(z.tierId,z.index))?.status==="loading"),[L]),O=Be.useMemo(()=>{let z=N.current[0];return z?E.current.get(ar(z.tierId,z.index))?.status==="empty":false},[L]),G=Be.useCallback(z=>m(z),[]),B=Be.useCallback(z=>m(z),[]);return {viewport:u,onViewportChange:G,jumpTo:B,tier:p,series:w,loading:k,atDataStart:O}}function ds(e=true){let[t,r]=Be.useState(null);return Be.useEffect(()=>{if(!e){r(null);return}let o=typeof window<"u"?window.visualViewport:null;if(!o)return;let n=()=>{let a=Math.max(0,window.innerHeight-o.height-(o.offsetTop??0));r({height:o.height,keyboardOffset:a});};return n(),o.addEventListener("resize",n),o.addEventListener("scroll",n),()=>{o.removeEventListener("resize",n),o.removeEventListener("scroll",n);}},[e]),t}var td=class{constructor(){Ua(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();}},_=new td;var Lo=(e,t="Yes",r="No")=>e==null?null:e?t:r,VC=e=>Lo(e,"Enabled","Disabled"),zC=e=>Lo(e,"On","Off"),OC=e=>Lo(e,"Active","Inactive"),HC=e=>Lo(e,"True","False"),WC=e=>Lo(e,"\u2713","\u2717"),Ao=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},ef=(e,t)=>{if(t.hideWhenNull&&e==null)return null;if(e==null)return t.nullText??null;let r=Ao(e);return r===null?t.nullText??null:Lo(r,t.trueText??"Yes",t.falseText??"No")};_.register("boolean",(e,t,r)=>{let o=Ao(e);return o!==null?Lo(o,typeof t=="string"?t:"Yes",typeof r=="string"?r:"No"):null});_.register("yesNo",e=>{let t=Ao(e);return t!==null?Lo(t,"Yes","No"):null});_.register("enabledDisabled",e=>{let t=Ao(e);return t!==null?VC(t):null});_.register("onOff",e=>{let t=Ao(e);return t!==null?zC(t):null});_.register("activeInactive",e=>{let t=Ao(e);return t!==null?OC(t):null});_.register("trueFalse",e=>{let t=Ao(e);return t!==null?HC(t):null});_.register("checkmark",e=>{let t=Ao(e);return t!==null?WC(t):null});var ie=e=>e==null,tf=(e,t=0)=>ie(e)?null:`${e.toFixed(t)}%`,rf=(e,t=0)=>tf(e,t)??"\u2014",GC=e=>ie(e)?null:Math.round(e).toString(),UC=(e,t=1)=>ie(e)?null:e.toFixed(t),YC=(e,t,r=true)=>{if(ie(e))return null;let o={useGrouping:r};return t!==void 0&&(o.minimumFractionDigits=t,o.maximumFractionDigits=t),new Intl.NumberFormat("en-US",o).format(e)},KC=(e,t="short")=>ie(e)?null:new Intl.NumberFormat("en-US",{notation:"compact",compactDisplay:t}).format(e),JC=(e,t=2)=>ie(e)?null:e.toExponential(t),of=(e,t="USD",r)=>{if(ie(e))return null;let o={style:"currency",currency:t,currencyDisplay:r?.currencyDisplay??"symbol",useGrouping:r?.thousandsSeparator??true};return r?.minimumFractionDigits!==void 0&&(o.minimumFractionDigits=r.minimumFractionDigits),r?.maximumFractionDigits!==void 0&&(o.maximumFractionDigits=r.maximumFractionDigits),new Intl.NumberFormat("en-US",o).format(e)},nf=(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)},af=(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:of(r,t.currency,t)};_.register("percentage",(e,t)=>typeof e=="number"?tf(e,typeof t=="number"?t:0):null);_.register("integer",e=>typeof e=="number"?GC(e):null);_.register("float",(e,t)=>typeof e=="number"?UC(e,typeof t=="number"?t:1):null);_.register("number",(e,t,r)=>{let o=typeof e=="string"?parseFloat(e):Number(e);return isNaN(o)?null:YC(o,typeof t=="number"?t:void 0,typeof r=="boolean"?r:true)});_.register("compact",(e,t)=>typeof e=="number"?KC(e,t==="long"?"long":"short"):null);_.register("scientific",(e,t)=>typeof e=="number"?JC(e,typeof t=="number"?t:2):null);_.register("currency",(e,t,r)=>typeof e=="number"?of(e,typeof t=="string"?t:"USD",typeof r=="object"&&r!==null?r:{}):null);function cE(e,t=1){return ie(e)?null:Math.abs(e)>=1e3?`${(e/1e3).toFixed(t)} MWh`:`${e.toFixed(t)} kWh`}function dE(e,t=1){return ie(e)?null:Math.abs(e)>=1e3?`${(e/1e3).toFixed(t)} MW`:`${e.toFixed(t)} kW`}function Yr({value:e,formatter:t,emptyClassName:r="text-text-secondary",emptyText:o="\u2014"}){if(e==null)return jsxRuntime.jsx("span",{className:r,children:o});if(typeof t=="function")return t(e);if(t&&typeof t=="object"){let n=un(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=un(e,{type:"date"});return jsxRuntime.jsx("time",{dateTime:e.toISOString(),title:e.toISOString(),children:n})}if(typeof e=="number")return un(e,{type:"number"});if(typeof e=="boolean")return un(e,{type:"boolean"})}return String(e)}function fE(e,t,r){return Be__namespace.default.useCallback(o=>Yr({value:o,formatter:e,emptyClassName:t,emptyText:r}),[e,t,r])}var rd=(e,t=0)=>{if(ie(e))return null;let r=e*1e3;return t===0?`${Math.round(r)} mA`:`${r.toFixed(t)} mA`},ps=(e,t=1)=>ie(e)?null:`${e.toFixed(t)} A`,od=(e,t=2)=>ie(e)?null:`${(e/1e3).toFixed(t)} kA`,qC=(e,t)=>{if(ie(e))return null;let r=Math.abs(e);return r>=1e3?od(e,t??2):r<1?rd(e,t??0):ps(e,t??1)},nd=(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 od(r,o??2);case "mA":return rd(r,o??0);case "A":return ps(r,o??1)}return t.autoScale!==false?qC(r,o):ps(r,o??1)};_.register("current",nd);var yE=rd,vE=ps,CE=od;var pn=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},XC=(e,t=false,r)=>{if(!e)return null;let o=pn(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)},ms=e=>{if(!e)return null;let t=pn(e);return t?t.toRelative():"Invalid Date"},ZC=(e,t)=>{if(!e)return null;let r=pn(e);return r?(t?r.setZone(t):r).toLocaleString(luxon.DateTime.DATETIME_MED_WITH_WEEKDAY):"Invalid Date"},$C=e=>{if(!e)return null;let t=pn(e);return t?t.toISO():null},QC=(e,t,r)=>{if(!e)return null;let o=pn(e);return o?(r?o.setZone(r):o).toFormat(t):"Invalid Date"},kE=e=>{let t=pn(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},sf=(e,t)=>{if(t.hideWhenNull&&e==null)return null;if(e==null)return t.nullText??null;let r=pn(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)};_.register("date",(e,t,r)=>XC(e,typeof t=="boolean"?t:false,typeof r=="string"?r:void 0));_.register("relativeTime",e=>ms(e));_.register("fullDateTime",(e,t)=>ZC(e,typeof t=="string"?t:void 0));_.register("isoString",e=>$C(e));_.register("customDateFormat",(e,t,r)=>typeof t=="string"?QC(e,t,typeof r=="string"?r:void 0):null);var ad=(e,t=1)=>ie(e)?null:`${e.toFixed(t)} m`,_C=(e,t=1)=>ie(e)?null:`${(e*100).toFixed(t)} cm`,eS=(e,t=0)=>ie(e)?null:`${(e*1e3).toFixed(t)} mm`,id=(e,t=1)=>ie(e)?null:`${(e/1e3).toFixed(t)} km`,sd=(e,t=0)=>ie(e)?null:`${e.toFixed(t)} ft`,tS=(e,t=1)=>ie(e)?null:`${e.toFixed(t)} in`,ld=(e,t=1)=>ie(e)?null:`${e.toFixed(t)} mi`,cd=(e,t=0)=>ie(e)?null:`${e.toFixed(t)} yd`,DE=(e,t=1)=>ie(e)?null:`${e.toFixed(t)} nm`,ME=e=>e*3.28084,EE=e=>e/3.28084,LE=e=>e*1.60934,AE=e=>e/1.60934,IE=e=>e/5280,lf=e=>e*5280,FE=e=>e/1609.34,BE=e=>e*1609.34,VE=e=>e*.9144,zE=e=>e/.9144,OE=e=>e*2.54,HE=e=>e/2.54,cf=(e,t=false,r=1)=>{if(ie(e))return null;let o=Math.abs(e);return t?o>=1e3?id(e,r):o<.01?eS(e,0):o<1?_C(e,r):ad(e,r):o<.01?sd(lf(e),0):o<.1?cd(lf(e)/3,0):ld(e,r)},df=(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 cf(r,n,o)}switch(t.unit){case "km":return id(r,o);case "ft":return sd(r,o);case "mi":return ld(r,o);case "yd":return cd(r,o);default:return ad(r,o)}};_.register("miles",(e,t)=>typeof e=="number"?ld(e,typeof t=="number"?t:1):null);_.register("kilometers",(e,t)=>typeof e=="number"?id(e,typeof t=="number"?t:1):null);_.register("meters",(e,t)=>typeof e=="number"?ad(e,typeof t=="number"?t:1):null);_.register("feet",(e,t)=>typeof e=="number"?sd(e,typeof t=="number"?t:0):null);_.register("yards",(e,t)=>typeof e=="number"?cd(e,typeof t=="number"?t:0):null);_.register("inches",(e,t)=>typeof e=="number"?tS(e,typeof t=="number"?t:1):null);_.register("autoScaleDistance",(e,t,r)=>typeof e=="number"?cf(e,typeof t=="boolean"?t:false,typeof r=="number"?r:1):null);var dd=(e,t=1)=>ie(e)?null:`${e.toFixed(t)} Wh`,ud=(e,t=1)=>ie(e)?null:`${(e/1e3).toFixed(t)} kWh`,uf=(e,t=1)=>ie(e)?null:`${(e/1e6).toFixed(t)} MWh`,pf=(e,t=1)=>ie(e)?null:`${(e/1e9).toFixed(t)} GWh`,mf=(e,t=1)=>{if(ie(e))return null;let r=Math.abs(e);return r>=1e9?pf(e,t):r>=1e6?uf(e,t):r>=1e3?ud(e,t):dd(e,t)},rS={Wh:1,kWh:1e3,MWh:1e6,GWh:1e9},pd=(e,t)=>{if(t.hideWhenNull&&e==null||t.hideWhenZero&&e===0)return null;if(e==null)return t.nullText??null;let r=typeof e=="string"?parseFloat(e):Number(e);if(isNaN(r))return t.nullText??null;let o=t.sourceUnit?r*rS[t.sourceUnit]:r,n=t.decimals??1;if(t.unit)switch(t.unit){case "GWh":return pf(o,n);case "MWh":return uf(o,n);case "kWh":return ud(o,n);case "Wh":return dd(o,n)}return t.autoScale!==false?mf(o,n):dd(o,n)};_.register("kWh",e=>typeof e=="number"?ud(e):null);_.register("autoScaleEnergy",(e,t)=>typeof e=="number"?mf(e,typeof t=="number"?t:1):null);_.register("energy",pd);var fs=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},md=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():fs(e)},na=e=>e?e.startsWith("+")||e.length>11?md(e):fs(e):null,ff=(e,t)=>{if(t.hideWhenNull&&e==null)return null;if(e==null)return t.nullText??null;let r=String(e);if(t.international)return md(r);switch(t.country){case "US":case "CA":return fs(r);default:return na(r)}};_.register("phoneNumber",e=>typeof e=="string"?na(e):null);_.register("usPhone",e=>typeof e=="string"?fs(e):null);_.register("internationalPhone",e=>typeof e=="string"?md(e):null);var gs=(e,t=0)=>ie(e)?null:t===0?`${Math.round(e)} W`:`${e.toFixed(t)} W`,fd=(e,t=1)=>ie(e)?null:`${(e/1e3).toFixed(t)} kW`,gd=(e,t=1)=>ie(e)?null:`${(e/1e6).toFixed(t)} MW`,bd=(e,t=2)=>ie(e)?null:`${(e/1e9).toFixed(t)} GW`,oS=(e,t)=>{if(ie(e))return null;let r=Math.abs(e);return r>=1e9?bd(e,t??2):r>=1e6?gd(e,t??1):r>=1e3?fd(e,t??1):gs(e,t??0)},xd=(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 bd(r,o??2);case "MW":return gd(r,o??1);case "kW":return fd(r,o??1);case "W":return gs(r,o??0)}return t.autoScale!==false?oS(r,o):gs(r,o??0)};_.register("power",xd);var XE=gs,ZE=fd,$E=gd,QE=bd;var hd=(e,t=1)=>ie(e)?null:`${(e*1e3).toFixed(t)} m\u03A9`,bs=(e,t=1)=>ie(e)?null:`${e.toFixed(t)} \u03A9`,gf=(e,t=1)=>ie(e)?null:`${(e/1e3).toFixed(t)} k\u03A9`,bf=(e,t=2)=>ie(e)?null:`${(e/1e6).toFixed(t)} M\u03A9`,nS=(e,t)=>{if(ie(e))return null;let r=Math.abs(e);return r>=1e6?bf(e,t??2):r>=1e3?gf(e,t??1):r<1?hd(e,t??1):bs(e,t??1)},yd=(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 bf(r,o??2);case "k\u03A9":return gf(r,o??1);case "m\u03A9":return hd(r,o??1);case "\u03A9":return bs(r,o??1)}return t.autoScale!==false?nS(r,o):bs(r,o??1)};_.register("resistance",yd);_.register("ohms",e=>typeof e=="number"?bs(e):null);_.register("milliohms",e=>typeof e=="number"?hd(e):null);var xf=e=>{switch(e){case "FAHRENHEIT":return "F";case "CELSIUS":return "C";case "KELVIN":return "K";default:return "F"}},hf=(e,t=0)=>ie(e)?null:`${e.toFixed(t)}\xB0F`,yf=(e,t=true,r=0)=>ie(e)?null:`${(t?(e-32)*(5/9):e).toFixed(r)}\xB0C`,vf=(e,t=true,r=0)=>ie(e)?null:`${(t?(e-32)*(5/9)+273.15:e+273.15).toFixed(r)}K`,aS=e=>e*9/5+32,iS=e=>(e-32)*(5/9),aL=e=>e+273.15,sS=e=>e-273.15,iL=e=>iS(e)+273.15,sL=e=>aS(sS(e)),Cf=(e,t="F",r=0)=>{if(ie(e))return null;switch(typeof t=="string"&&t.length>1?xf(t):t){case "C":return yf(e,true,r);case "K":return vf(e,true,r);default:return hf(e,r)}},Sf=(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?xf(n):n){case "C":return ((r-32)*.5555555555555556).toFixed(o);case "K":return ((r-32)*.5555555555555556+273.15).toFixed(o);default:return r.toFixed(o)}return Cf(r,n,o)};_.register("temperature",(e,t,r)=>typeof e=="number"?Cf(e,typeof t=="string"?t:"F",typeof r=="number"?r:0):null);_.register("fahrenheit",(e,t)=>typeof e=="number"?hf(e,typeof t=="number"?t:0):null);_.register("celsius",(e,t,r)=>typeof e=="number"?yf(e,typeof t=="boolean"?t:true,typeof r=="number"?r:0):null);_.register("kelvin",(e,t,r)=>typeof e=="number"?vf(e,typeof t=="boolean"?t:true,typeof r=="number"?r:0):null);var lS=(e,t)=>!!(t.hideWhenNull&&e==null||t.hideWhenZero&&e===0),wf=e=>e?.toUpperCase()??"",Nf=e=>e?.toLowerCase()??"",kf=e=>e?e.charAt(0).toUpperCase()+e.slice(1).toLowerCase():"",Tf=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(" ")},Pf=e=>e?e.split(/\s+/).map(t=>t.charAt(0).toUpperCase()+t.slice(1).toLowerCase()).join(" "):"",Rf=e=>e?e.charAt(0).toUpperCase()+e.slice(1):"",Df=e=>e?e.replace(/([A-Z])/g," $1").replace(/^./,t=>t.toUpperCase()).trim():"",Mf=e=>e?e.toLowerCase().split("_").map(t=>Rf(t)).join(" "):"",cS=e=>e?e.includes("_")?Mf(e):e.toUpperCase()===e?Rf(e.toLowerCase()):Df(e):"",aa=(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)}`},xs=(e,t=8)=>e?e.length<=t?e:`...${e.slice(-t)}`:"",hs=(e,t=16,r="...")=>e?e.length<=t?e:e.slice(0,t)+r:"",dS=e=>{if(!e)return "";let t=e.toString(),r=t.slice(-4),o=t.length-4;return o>0?"*".repeat(o)+r:t},Ef=(e,t)=>{if(lS(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=wf(r);break;case "lowercase":r=Nf(r);break;case "capitalize":r=Pf(r);break;case "titleCase":r=Tf(r);break;case "sentenceCase":r=kf(r);break}}),t.truncate){let{length:o,position:n,ellipsis:a="..."}=t.truncate;switch(n){case "start":r=xs(r,o);break;case "middle":r=aa(r,o);break;case "end":r=hs(r,o,a);break}}return r};_.register("uppercase",e=>wf(String(e)));_.register("lowercase",e=>Nf(String(e)));_.register("sentenceCase",e=>kf(String(e)));_.register("titleCase",e=>Tf(String(e)));_.register("capitalize",e=>Pf(String(e)));_.register("camelCaseToWords",e=>Df(String(e)));_.register("snakeCaseToWords",e=>Mf(String(e)));_.register("enumToSentenceCase",e=>cS(String(e)));_.register("truncateMiddle",(e,t)=>aa(String(e),typeof t=="number"?t:16));_.register("truncateStart",(e,t)=>xs(String(e),typeof t=="number"?t:8));_.register("truncateEnd",(e,t,r)=>hs(String(e),typeof t=="number"?t:16,typeof r=="string"?r:"..."));_.register("secret",e=>dS(String(e)));var vd=(e,t=0)=>{if(ie(e))return null;let r=e*1e3;return t===0?`${Math.round(r)} mV`:`${r.toFixed(t)} mV`},ys=(e,t=0)=>ie(e)?null:t===0?`${Math.round(e)} V`:`${e.toFixed(t)} V`,Cd=(e,t=1)=>ie(e)?null:`${(e/1e3).toFixed(t)} kV`,uS=(e,t)=>{if(ie(e))return null;let r=Math.abs(e);return r>=1e3?Cd(e,t??1):r<1?vd(e,t??0):ys(e,t??0)},Sd=(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 Cd(r,o??1);case "mV":return vd(r,o??0);case "V":return ys(r,o??0)}return t.autoScale!==false?uS(r,o):ys(r,o??0)};_.register("voltage",Sd);var mL=vd,fL=ys,gL=Cd;var pS=(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:rf(r,t.decimals??0)},un=(e,t)=>{switch(t.type){case "text":return Ef(e,t);case "number":return nf(e,t);case "percentage":return pS(e,t);case "currency":return af(e,t);case "date":return sf(e,t);case "boolean":return ef(e,t);case "energy":return pd(e,t);case "power":return xd(e,t);case "voltage":return Sd(e,t);case "current":return nd(e,t);case "resistance":return yd(e,t);case "temperature":return Sf(e,t);case "distance":return df(e,t);case "phone":return ff(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}},DL=(e,t)=>({type:e,...t});function Jt(...e){return e.filter(Boolean).join(" ")}var Kr={displayXl:"text-display-xl",displayLg:"text-display-lg",displayMd:"text-display-md",displaySm:"text-display-sm",headingXl:"text-heading-xl",headingLg:"text-heading-lg",headingMd:"text-heading-md",headingSm:"text-heading-sm",bodyLg:"text-body-lg",bodyMd:"text-body-md",bodySm:"text-body-sm",labelLg:"text-label-lg",labelMd:"text-label-md",labelSm:"text-label-sm",code:"text-code",agent:"text-agent"};function pt(e,...t){return Jt(Kr[e],...t)}var ia={xs:16,sm:20,md:24,lg:32,xl:40,"2xl":48},H=Be.memo(({name:e,size:t="md",color:r,weight:o="regular",className:n,ariaLabel:a,...i})=>{let s=mS__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 ia?ia[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}`})});H.displayName="Icon";var If=Be.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:d,...u})=>{let m=typeof n=="string"&&n in ia?ia[n]:n,p=r?typeof r=="string"&&r in ia?ia[r]:r:m*1.75,f=tailwindMerge.twMerge("inline-flex items-center justify-center flex-shrink-0",t==="circle"?"rounded-full":"rounded-lg",e==="subtle"&&"bg-background-muted",e==="solid"&&"bg-action-brand text-[color:var(--color-action-brand-text)]",e==="outline"&&"border-2 border-current",o);return jsxRuntime.jsx("div",{className:f,style:{width:p,height:p},children:jsxRuntime.jsx(H,{...u,name:i,size:n,color:s,weight:c,className:a,ariaLabel:l})})});If.displayName="IconWithContainer";function ir({transparent:e=false,className:t,children:r,...o}){return jsxRuntime.jsx(reactAriaComponents.ModalOverlay,{...o,className:reactAriaComponents.composeRenderProps(t,(n,a)=>tailwindMerge.twMerge("fixed inset-0 z-50","outline-none focus:outline-none focus-visible:outline-none ring-0 focus:ring-0 focus-visible:ring-0",e?"bg-transparent":["bg-gradient-to-br from-background-modal/20 via-background-modal/15 to-background-modal/20","backdrop-blur-[2px]","supports-[backdrop-filter]:bg-background-modal/15"].join(" "),a.isEntering&&["animate-in fade-in","duration-300 ease-out"].join(" "),a.isExiting&&["animate-out fade-out","duration-200 ease-in"].join(" "),n)),children:r})}function NS({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 at({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 d=jsxRuntime.jsxs(reactAriaComponents.Popover,{offset:l,...i,className:reactAriaComponents.composeRenderProps(o,(u,m)=>NS({...m,className:u,disableGroup:a})),children:[t&&jsxRuntime.jsx(reactAriaComponents.OverlayArrow,{children:jsxRuntime.jsx("svg",{width:12,height:12,viewBox:"0 0 12 12",className:"block fill-background-surface stroke-border-default stroke-1 group-placement-left:-rotate-90 group-placement-right:rotate-90 group-placement-bottom:rotate-180 forced-colors:fill-[Canvas] forced-colors:stroke-[ButtonBorder]",children:jsxRuntime.jsx("path",{d:"M0 0 L6 6 L12 0"})})}),e]});return r?jsxRuntime.jsx(ir,{isDismissable:n,children:jsxRuntime.jsx(reactAriaComponents.Modal,{className:"outline-none focus:outline-none focus-visible:outline-none ring-0 focus:ring-0 focus-visible:ring-0",isDismissable:n,children:d})}):d}var PS={"--color-brand-primary":["--color-action-brand","--color-text-link-default","--action-brand-background"],"--color-brand-dark":["--color-action-brand-hover","--color-text-link-hover","--action-brand-hover"],"--color-action-brand":["--color-text-link-default","--action-brand-background"],"--color-action-brand-hover":["--color-text-link-hover","--action-brand-hover"]};function Ff(e){let t={...e};for(let[r,o]of Object.entries(PS))if(e[r])for(let n of o)e[n]||(t[n]=e[r]);return t}function Bf(e){return e.replace(/[{}<>]/g,"")}function Vf(e){return Object.entries(e).map(([t,r])=>`${Bf(t)}: ${Bf(r)};`).join(" ")}function Of({variables:e,darkVariables:t,children:r}){let n=Be.useId().replace(/:/g,""),a=e&&Object.keys(e).length>0,i=t&&Object.keys(t).length>0;if(!a&&!i)return jsxRuntime.jsx(jsxRuntime.Fragment,{children:r});let s=a?Ff(e):null,c=i?Ff(t):null,l=s?`[data-brand-scope="${n}"] { ${Vf(s)} }`:"",d=c?`.theme-dark [data-brand-scope="${n}"] { ${Vf(c)} }`:"",u=[l,d].filter(Boolean).join(`
|
|
4
|
+
`);return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("style",{dangerouslySetInnerHTML:{__html:u}}),jsxRuntime.jsx("div",{"data-brand-scope":n,children:r})]})}var Ja=new Map,Rt=(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)}`),Ja.has(r))return Ja.get(r);try{let o=document.body||document.documentElement,a=getComputedStyle(o).getPropertyValue(r).trim();if(a)return Ja.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)"?(Ja.set(r,s),s):t}catch(o){return console.warn(`Failed to resolve color for ${e}:`,o),t}},vs=()=>{Ja.clear();},ja=()=>{let e=[];for(let t=1;t<=12;t++){let r=Rt(`--color-viz-categorical-${t}`,"");r&&e.push(r);}return e.length===0?Hf():e},Hf=()=>["#5424db","#d92361","#e86a00","#5d89ff","#9a47e2","#f24cb8","#0ba286","#9c28af","#036e45","#52a119","#ff513d","#046691"],kd=()=>Rt("--color-viz-default","#444ae1"),DS=(e,t)=>{let r={},o=ja();return e.forEach((n,a)=>{t&&t[n]?r[n]=t[n]:r[n]=o[a%o.length];}),r};var Wf=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},MS=e=>Wf(e)?Rt("--color-text-primary","#333333"):Rt("--color-text-inverse","#ffffff"),Gf=(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()},Td=e=>{let t=ja(),r={};return e.forEach((o,n)=>{r[o]=t[n%t.length];}),r};var Pd=(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)},Rd=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]},Uf=(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},Dd=(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=Rt(i);n.push(s);}return n},Md=(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=Rt(i);n.push(s);}return n},qa=(e,t,r,o="viridis")=>{let n=Dd(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]},Xa=(e,t,r,o,n="redYellowBlue")=>{let a=Md(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 Ed=Be.createContext({mode:"system",colorMode:"light",isDarkTheme:false,toggleTheme:()=>{}}),jt=()=>Be.useContext(Ed);function FS(){return typeof window>"u"?"light":window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function Jf(){if(typeof window>"u")return "system";let e=localStorage.getItem("colorModePreference");return e==="light"||e==="dark"||e==="system"?e:"system"}function jf(e){return e==="system"?FS():e}var Xf=({children:e})=>{let[t,r]=Be.useState(Jf),[o,n]=Be.useState(()=>jf(Jf())),a=o==="dark",i=Be.useCallback(c=>{c==="dark"?(document.documentElement.classList.add("theme-dark"),document.body.classList.add("theme-dark")):(document.documentElement.classList.remove("theme-dark"),document.body.classList.remove("theme-dark")),vs();},[]);Be.useEffect(()=>{vs();let c=jf(t);if(n(c),i(c),t==="system"){let l=window.matchMedia("(prefers-color-scheme: dark)"),d=u=>{let m=u.matches?"dark":"light";n(m),i(m);};return l.addEventListener("change",d),()=>{l.removeEventListener("change",d);}}},[t,i]);let s=Be.useCallback(()=>{r(c=>{let l=c==="system"?"light":c==="light"?"dark":"system";return localStorage.setItem("colorModePreference",l),l});},[]);return jsxRuntime.jsx(Ed.Provider,{value:{mode:t,colorMode:o,isDarkTheme:a,toggleTheme:s},children:e})};function sa(e){return e instanceof Date&&!Number.isNaN(e.getTime())}function mn(e,t){return sa(e)?t.format(e):""}function Zf(e){if(!sa(e.start)||!sa(e.end))return ()=>"";if((e.end.getTime()-e.start.getTime())/(1e3*60*60)<=720){let i=new Intl.DateTimeFormat("en",{month:"short",day:"numeric",hour:"numeric",minute:"2-digit"});return s=>mn(s,i)}let r=e.start.getFullYear(),o=e.end.getFullYear(),n=r!==o,a=new Intl.DateTimeFormat("en",{month:"short",day:"numeric",hour:"numeric",minute:"2-digit",...n&&{year:"numeric"}});return i=>mn(i,a)}function Ld(e,t){if(!sa(e.start)||!sa(e.end))return ()=>"";let r=(e.end.getTime()-e.start.getTime())/(1e3*60*60),o=t?.compact??false,n=l=>d=>sa(d)?l(d):"";if(r<=24){if(o)return n(d=>{let u=d.getHours(),m=u>=12?"pm":"am";return `${u%12||12}${m}`});let l=new Intl.DateTimeFormat("en",{hour:"numeric",minute:"2-digit"});return d=>mn(d,l)}if(r<=48){if(o)return n(d=>{let u=d.getMonth()+1,m=d.getDate(),p=d.getHours(),f=p>=12?"p":"a",g=p%12||12;return `${u}/${m} ${g}${f}`});let l=new Intl.DateTimeFormat("en",{month:"short",day:"numeric",hour:"numeric"});return d=>mn(d,l)}if(r<=168){if(o)return n(d=>{let u=d.getDate();return `${d.toLocaleDateString("en",{weekday:"short"}).charAt(0)}${u}`});let l=new Intl.DateTimeFormat("en",{weekday:"short",day:"numeric"});return d=>mn(d,l)}if(r<=720){if(o)return n(d=>{let u=d.getMonth()+1,m=d.getDate();return `${u}/${m}`});let l=new Intl.DateTimeFormat("en",{month:"short",day:"numeric"});return d=>mn(d,l)}let a=e.start.getFullYear(),i=e.end.getFullYear(),s=a!==i;if(o)return n(l=>{let d=l.getMonth()+1,u=l.getDate(),m=s?`/${l.getFullYear().toString().slice(-2)}`:"";return `${d}/${u}${m}`});let c=new Intl.DateTimeFormat("en",{month:"short",day:"numeric",...s&&{year:"numeric"}});return l=>mn(l,c)}function je(e=false){return `${e?"outline outline-1 outline-border-input data-[focus-visible]:outline-2 data-[focus-visible]:outline-action-default data-[focus-visible]:outline-offset-0 invalid:outline-2 invalid:outline-feedback-error-border group-invalid:outline-2 group-invalid:outline-feedback-error-border forced-colors:focus:outline-[Highlight] forced-colors:focus:outline-2 forced-colors:focus:outline-offset-2":"outline-none data-[focus-visible]:outline data-[focus-visible]:outline-2 data-[focus-visible]:outline-action-default data-[focus-visible]:outline-offset-0 invalid:outline-2 invalid:outline-feedback-error-border group-invalid:outline-2 group-invalid:outline-feedback-error-border forced-colors:focus:outline-[Highlight] forced-colors:focus:outline-2 forced-colors:focus:outline-offset-2"}`}function Se(e,t){return reactAriaComponents.composeRenderProps(e,r=>tailwindMerge.twMerge(t,r))}var ze={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 HS="flex font-medium justify-center items-center gap-2 text-center transition rounded-[var(--control-border-radius)] whitespace-nowrap box-border",WS="bg-action-primary text-[color:var(--color-action-primary-text)] hover:bg-action-primary-hover forced-colors:bg-[ButtonText] forced-colors:text-[ButtonFace] border-2 border-transparent",GS={primary:WS,secondary:"bg-action-secondary text-[color:var(--color-action-secondary-text)] border-2 border-border-muted hover:bg-action-secondary-hover forced-colors:border-[ButtonBorder] forced-colors:bg-[ButtonFace] forced-colors:text-[ButtonText]",ghost:"border-none text-text-primary hover:bg-text-primary/5 forced-colors:text-[ButtonText] forced-colors:hover:bg-[ButtonFace]",destructive:"bg-transparent text-feedback-error-text border-2 border-border-muted hover:bg-feedback-error-background/50 forced-colors:border-[ButtonBorder] forced-colors:bg-[ButtonFace] forced-colors:text-[Mark]",link:"!text-action-primary hover:text-action-primary/90 hover:underline hover:decoration-2 hover:underline-offset-4",icon:"border-none text-text-primary hover:bg-background-hover hover:text-text-primary forced-colors:text-[ButtonText] forced-colors:hover:bg-[ButtonFace] p-1 flex-shrink-0 rounded-[var(--control-border-radius)]",unstyled:"bg-transparent"},Qf={full:"w-full",default:"w-fit"},US="opacity-50 cursor-not-allowed pointer-events-none",YS="opacity-100 cursor-pointer",KS={"top-right":"-right-2 -top-2","top-left":"-left-2 -top-2","bottom-right":"-right-2 -bottom-2","bottom-left":"-left-2 -bottom-2"},JS={primary:"bg-action-primary text-[color:var(--color-action-primary-text)]",destructive:"bg-feedback-error-border text-text-inverse"};function jS(e){return !e||e==="default"||e==="brand"?"primary":e}function qS(e){let{variant:t="primary",size:r="md",isDisabled:o,fullWidth:n=false,isLoading:a=false}=e,i=jS(t),s=i==="unstyled"?"":`${HS} ${GS[i]}`;i!=="unstyled"&&(s+=` ${ze[r].text} ${ze[r].height} ${ze[r].padding} ${ze[r].gap}`),o||a?s+=` ${US}`:s+=` ${YS}`,n?s+=` ${Qf.full}`:s+=` ${Qf.default}`;let c=i==="primary"?"focus-visible:outline-action-primary":void 0;return [s,je(),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:d,badgeNumber:u,badgeVariant:m="primary",badgePosition:p="top-right",style:f,target:g,rel:b,...x}=e,h=t?jsxRuntime.jsx(H,{name:t,size:i,weight:c}):null,C=jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[s==="left"&&h,typeof r=="function"?null:r,s==="right"&&h]}),y=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(H,{name:"CircleNotch",size:i,className:"animate-spin","aria-hidden":"true"})}),jsxRuntime.jsx("div",{className:"invisible","aria-hidden":"true",children:C}),n&&jsxRuntime.jsx("span",{className:"sr-only",role:"status","aria-live":"polite",children:n})]}),S=(u??0)>0,N=tailwindMerge.twMerge(qS(e),d),T=l?{href:l,target:g,rel:b,...x}:{};if(l){let{onPress:R,onPressStart:M,onPressEnd:A,onPressChange:L,onPressUp:w,onAuxClick:k,onContextMenu:O,onDoubleClick:G,...B}=x;Object.assign(T,B);}let E=l?jsxRuntime.jsx(reactAriaComponents.Link,{...T,...o&&{"aria-busy":true},style:S?void 0:f,className:N,children:o?y:typeof r=="function"?(function(R){return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[s==="left"&&h,r(R),s==="right"&&h]})}):C}):jsxRuntime.jsx(reactAriaComponents.Button,{...x,...o&&{"aria-busy":true},style:S?void 0:f,className:N,children:o?y:typeof r=="function"?(function(R){return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[s==="left"&&h,r(R),s==="right"&&h]})}):C});return S?jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("relative flex",d),style:f,children:[E,jsxRuntime.jsx("span",{className:`absolute ${KS[p]} flex h-5 w-5 items-center justify-center rounded-full ${JS[m]} text-xs font-medium`,"aria-label":`${u} items`,children:u})]}):E}function Id({action:e,defaultVariant:t,defaultSize:r="lg"}){let o=!!e.formId;return jsxRuntime.jsx(Q,{type:o?"submit":"button",form:o?e.formId:void 0,size:e.size||r,variant:e.variant||t,onPress:o?void 0:e.onPress,isLoading:e.isLoading,isDisabled:e.isDisabled,children:e.label})}function Fo({primaryAction:e,secondaryAction:t,tertiaryAction:r,footerContent:o}){let n=e||t||r;return !n&&!o?null:jsxRuntime.jsxs("div",{className:`flex w-full flex-col items-center justify-center border-t p-4 ${o?"h-28":""}`,children:[o&&jsxRuntime.jsx("div",{className:"flex h-10 justify-center",children:o}),n&&jsxRuntime.jsxs("div",{className:"flex w-full items-center justify-between gap-3",children:[jsxRuntime.jsx("div",{children:r&&jsxRuntime.jsx(Id,{action:r,defaultVariant:"destructive"})}),jsxRuntime.jsxs("div",{className:"flex items-center gap-3",children:[t&&jsxRuntime.jsx(Id,{action:t,defaultVariant:"secondary"}),e&&jsxRuntime.jsx(Id,{action:e,defaultVariant:"primary"})]})]})]})}var XS={heading:{sm:Kr.headingSm,md:Kr.headingMd,lg:Kr.headingLg,xl:Kr.headingXl},display:{sm:Kr.displaySm,md:Kr.displayMd,lg:Kr.displayLg,xl:Kr.displayXl}},ZS={page:"h-16 leading-[62px]"};function qt({tag:e="h1",variant:t="heading",size:r="lg",height:o,className:n="",children:a}){let i=r==="xs"?"sm":r,s=XS[t][i],c=o?ZS[o]:"";return jsxRuntime.jsx(e,{className:Jt(s,"text-text-primary",c,n),children:a})}var Bt=({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(H,{name:"CaretLeft","data-testid":"back-arrow"})}),i||jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[e&&jsxRuntime.jsx(qt,{size:"xs",children:e}),t&&!r&&jsxRuntime.jsx(Q,{variant:"icon",onPress:t,"aria-label":"Close dialog",children:jsxRuntime.jsx(H,{name:"X","data-testid":"close-button"})})]})]});var j=({width:e,height:t,variant:r="rect",animation:o="pulse",gradient:n=false,flex:a=false,stack:i,responsive:s,delay:c=0,adjustAnimationSpeedBasedOnWidth:l=false,ariaLabel:d,className:u,"data-testid":m})=>{let[p,f]=Be.useState(c===0);if(Be.useEffect(()=>{if(c>0){let S=setTimeout(()=>f(true),c);return ()=>clearTimeout(S)}},[c]),!p)return null;let g=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 S=typeof e=="number"?e:parseFloat(String(e));return isNaN(S)?"":`animation-duration-[${Math.max(.8,S/100)}s]`})():"",x=o==="pulse"?`animate-pulse ${b}`:o==="wave"?`relative overflow-hidden before:absolute before:inset-0 before:bg-gradient-to-r before:from-transparent before:via-[var(--color-skeleton-wave)] before:to-transparent before:animate-wave ${b}`:"",h="rounded-sm";r==="circle"&&(h="rounded-full"),r==="text"&&(h="h-4 w-full rounded-sm");let C=a?"flex-1 min-w-0":"",y=s?Object.entries(s).map(([S,N])=>`${S}:w-[${N}]`).join(" "):"";return i?jsxRuntime.jsx("div",{className:"space-y-2","data-testid":m,children:i.map((S,N)=>jsxRuntime.jsx("div",{className:tailwindMerge.twMerge(g,x,h,C,y,u),style:{width:S,height:t}},N))}):jsxRuntime.jsx("div",{className:tailwindMerge.twMerge(g,x,h,C,y,u),style:{width:e,height:t},role:"presentation","aria-hidden":!d,"aria-label":d??void 0,"data-testid":m})},tg=({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 r1={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"},o1="rounded-lg",Bd={square:"aspect-square",video:"aspect-video",wide:"aspect-[2/1]",auto:""},n1={start:"justify-start",end:"justify-end",center:"justify-center",between:"justify-between"};function Oe({variant:e="outlined",className:t,children:r,isLoading:o=false,layout:n="default"}){return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("w-full overflow-hidden",r1[e],o1,n==="flex"&&"flex flex-col",t),"data-testid":"card",children:o?jsxRuntime.jsx(j,{width:"100%",height:"100%",className:"rounded-none"}):r})}function Vd({title:e,subtitle:t,actions:r,className:o,isLoading:n=false}){return n?jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("p-6 pb-4",o),children:[jsxRuntime.jsxs("div",{className:"flex justify-between items-start mb-1",children:[jsxRuntime.jsx(j,{width:120,height:20}),jsxRuntime.jsx(j,{width:24,height:24})]}),t&&jsxRuntime.jsx(j,{width:200,height:16})]}):!e&&!t&&!r?null:jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("p-6 pb-4",o),children:jsxRuntime.jsxs("div",{className:"flex justify-between items-start gap-4",children:[jsxRuntime.jsxs("div",{className:"min-w-0 flex-1",children:[e&&jsxRuntime.jsx("div",{className:"mb-1",children:typeof e=="string"?jsxRuntime.jsx(qt,{tag:"h3",size:"sm",className:"text-text-primary",children:e}):e}),t&&jsxRuntime.jsx("div",{className:pt("bodySm","text-text-secondary"),children:t})]}),r&&jsxRuntime.jsx("div",{className:"flex-shrink-0",children:r})]})})}function zd({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",Bd[r],o),children:jsxRuntime.jsx(j,{width:"100%",height:"100%"})}):n?jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("overflow-hidden",Bd[r],o),children:n}):e?jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("overflow-hidden",Bd[r],o),children:jsxRuntime.jsx("img",{src:e,alt:t||"",className:"w-full h-full object-cover",loading:"lazy"})}):null}function Od({className:e,children:t,isLoading:r=false,fill:o=false}){let a=e?.match(/p(?:t|b|l|r|x|y)?-(?:\d+(?:\.\d+)?|px|\[.+?\])/)?"":"px-6 py-4";return r?jsxRuntime.jsx("div",{className:tailwindMerge.twMerge(a,o&&"flex-1 flex flex-col min-h-0",e),children:jsxRuntime.jsxs("div",{className:"space-y-2",children:[jsxRuntime.jsx(j,{width:"100%",height:16}),jsxRuntime.jsx(j,{width:"80%",height:16}),jsxRuntime.jsx(j,{width:"60%",height:16})]})}):t?jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("px-6 py-4 text-text-primary",o&&"flex-1 flex flex-col min-h-0",e),children:t}):null}function Hd({className:e,children:t,align:r="end",isLoading:o=false}){return o?jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("px-6 py-4 flex gap-2 justify-end",e),children:[jsxRuntime.jsx(j,{width:80,height:32}),jsxRuntime.jsx(j,{width:60,height:32})]}):t?jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("px-6 py-4 flex items-center gap-2",n1[r],e),children:t}):null}Oe.Header=Vd;Oe.Media=zd;Oe.Content=Od;Oe.Footer=Hd;var Lr=class extends Be.Component{constructor(){super(...arguments);Ua(this,"state",{hasError:false});Ua(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(Oe,{children:[this.props.title&&jsxRuntime.jsx(Oe.Header,{title:this.props.title}),jsxRuntime.jsx(Oe.Content,{children:jsxRuntime.jsxs("div",{className:"flex flex-col items-center justify-center gap-4","data-testid":"error-boundary",children:[jsxRuntime.jsx("p",{className:"text-feedback-error-text",children:this.state.error?.message||"Something went wrong"}),jsxRuntime.jsx("button",{className:"rounded bg-action-default px-4 py-2 text-[color:var(--color-action-default-text)] hover:bg-action-default-hover",onClick:this.handleRetry,children:"Retry"})]})})]}):this.props.children}};var l1=.3,c1=.5;function it({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:d=false,primaryAction:u,secondaryAction:m,footerContent:p,maxHeight:f="80vh",height:g,maxWidth:b="640px",contentPadding:x=true,showHandle:h=true,animationVariant:C="scale",className:y}){let[S,N]=Be.useState(false),[T,E]=Be.useState(0),[R,M]=Be.useState(false),A=ds(s),L=A?.height??null,w=A?.keyboardOffset??0,k=Be.useRef(null),O=Be.useRef(null),G=Be.useRef(null),B=Be.useRef({isDragging:false,startY:0,startTime:0,pointerId:null});Be.useEffect(()=>{if(s){let D=setTimeout(()=>{N(true),setTimeout(()=>N(false),600);},400);return ()=>clearTimeout(D)}},[s]),Be.useEffect(()=>{s||(E(0),M(false),B.current={isDragging:false,startY:0,startTime:0,pointerId:null});},[s]),Be.useEffect(()=>{let D=O.current;if(!D||!s)return;let F=null,I=v=>{let W=v.target;W&&["INPUT","TEXTAREA","SELECT"].includes(W.tagName)&&(F&&clearTimeout(F),F=setTimeout(()=>{W.scrollIntoView({block:"nearest",behavior:"smooth"});},320));};return D.addEventListener("focusin",I),()=>{D.removeEventListener("focusin",I),F&&clearTimeout(F);}},[s]);let z=Be.useCallback(D=>{l&&(D.pointerType!=="touch"&&D.pointerType!=="pen"||(G.current&&(clearTimeout(G.current),G.current=null),B.current={isDragging:true,startY:D.clientY,startTime:Date.now(),pointerId:D.pointerId},M(false),D.currentTarget.setPointerCapture(D.pointerId)));},[l]),X=Be.useCallback(D=>{let{isDragging:F,startY:I,pointerId:v}=B.current;if(!F||D.pointerId!==v)return;let W=D.clientY-I;E(Math.max(0,W));},[]),V=Be.useCallback(D=>{let{isDragging:F,startY:I,startTime:v,pointerId:W}=B.current;if(!F||D.pointerId!==W)return;let Y=D.clientY-I,U=Date.now()-v,ee=Y/U;B.current={isDragging:false,startY:0,startTime:0,pointerId:null};let J=(k.current?.getBoundingClientRect().height??0)*l1;(Y>J||ee>c1&&Y>50)&&l?(c?.(),E(0)):(M(true),E(0),G.current=setTimeout(()=>{M(false),G.current=null;},200));},[l,c]);if(!s)return null;let K=t||r,P=u||m||p;return jsxRuntime.jsx(Lr,{children:jsxRuntime.jsx(ir,{isOpen:s,onOpenChange:D=>{D||c?.();},isDismissable:l,transparent:d,style:{paddingBottom:w>0?`${w}px`:void 0,transition:"padding-bottom 0.25s ease-out"},className:"flex items-end justify-center p-0 sm:p-4",children:jsxRuntime.jsx(reactAriaComponents.Modal,{className:"w-full max-w-full p-0 sm:p-2 outline-none focus:outline-none focus-visible:outline-none ring-0 focus:ring-0 focus-visible:ring-0",isDismissable:l,children:jsxRuntime.jsx("div",{ref:k,className:tailwindMerge.twMerge("w-full",R&&"transition-transform duration-200"),style:{transform:T>0?`translateY(${T}px)`:void 0},children:jsxRuntime.jsxs(reactAriaComponents.Dialog,{className:tailwindMerge.twMerge("relative flex w-full flex-col overflow-hidden","bg-background-surface","shadow-2xl shadow-black/30 dark:shadow-black/60","border-t border-x border-border-default/40","outline-none focus:outline-none focus-visible:outline-none ring-0 focus:ring-0 focus-visible:ring-0 focus:shadow-none","origin-bottom",C==="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)]",C==="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)]",y),style:{maxWidth:b,...g?{height:g}:{maxHeight:/\d/.test(f)?L!==null?`min(${f}, ${Math.max(L-8,0)}px, 100dvh)`:`min(${f}, 100dvh)`:f}},children:[h&&jsxRuntime.jsx("div",{className:"absolute top-0 left-0 right-0 h-8 z-10 flex justify-center items-start pt-2 touch-none cursor-grab active:cursor-grabbing",onPointerDown:z,onPointerMove:X,onPointerUp:V,onPointerCancel:V,children:jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("h-1 w-12 rounded-full bg-border-muted transition-all duration-300","hover:bg-border-default hover:w-16",S&&"animate-[handle-wiggle_0.6s_ease-in-out]")})}),K&&(a?jsxRuntime.jsx(Bt,{title:t,headerContent:r,titleAlign:o,hideCloseIcon:n||!c,hasBackArrow:true,onBack:i??(()=>{}),onClose:c||(()=>{})}):jsxRuntime.jsx(Bt,{title:t,headerContent:r,titleAlign:o,hideCloseIcon:n||!c,onClose:c||(()=>{})})),jsxRuntime.jsx("div",{ref:O,className:tailwindMerge.twMerge("flex-1 min-h-0 overflow-y-auto overscroll-contain",x?"p-4":"p-0"),children:e}),P&&jsxRuntime.jsx(Fo,{primaryAction:u,secondaryAction:m,footerContent:p})]})})})})})}it.displayName="Tray";function da({children:e,items:t,className:r,align:o="left",textAlign:n="left",size:a="md",onAction:i,header:s,footer:c,useMobileTray:l=true,popoverClassName:d}){let[u,m]=Be.useState(false),{isMobile:p}=Yt();if(l&&p){let g=Be__namespace.default.isValidElement(e)?Be__namespace.default.cloneElement(e,{onPress:()=>m(true)}):e,h=(C=>{if(typeof C=="string")return C;if(Be__namespace.default.isValidElement(C)){let y=C.props;if(typeof y.children=="string")return y.children;if(Array.isArray(y.children))return y.children.find(N=>typeof N=="string")||""}return ""})(e)||"Actions";return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("div",{className:r,children:g}),jsxRuntime.jsx(it,{isOpen:u,onClose:()=>m(false),title:h,contentPadding:false,headerContent:s,footerContent:c,children:jsxRuntime.jsx("div",{className:"flex flex-col",children:t.map(C=>jsxRuntime.jsxs("button",{onClick:()=>{C.disabled||(C.onAction?C.onAction():i?.(C),m(false));},disabled:C.disabled,"data-testid":C.testId,className:tailwindMerge.twMerge("flex w-full items-center text-start transition-colors",!C.noPadding&&"px-6 py-3","border-b border-border-muted last:border-0",C.variant==="destructive"?"text-feedback-error-text hover:bg-feedback-error-background active:bg-feedback-error-background/80":"text-text-primary hover:bg-background-hover active:bg-background-hover/80",C.disabled&&"opacity-50 cursor-not-allowed"),children:[C.iconName&&jsxRuntime.jsx(H,{name:C.iconName,size:20,className:"mr-3 flex-shrink-0"}),jsxRuntime.jsx("div",{className:"flex flex-1 flex-col",children:C.render?C.render():jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("span",{className:C.subtitle?"font-medium":"",children:C.name}),C.subtitle&&jsxRuntime.jsx("span",{className:"text-sm text-text-secondary",children:C.subtitle})]})})]},C.id))})})]})}return jsxRuntime.jsx("div",{className:r,children:jsxRuntime.jsxs(reactAriaComponents.MenuTrigger,{children:[e,jsxRuntime.jsx(at,{className:tailwindMerge.twMerge("w-fit min-w-[180px] overflow-auto rounded-[var(--control-border-radius)] border border-border-default","bg-background-surface shadow-lg","animate-in fade-in zoom-in-97","duration-200 ease-out","data-[exiting]:animate-out data-[exiting]:fade-out data-[exiting]:zoom-out-97","data-[exiting]:duration-150 data-[exiting]:ease-in",o==="right"?"origin-top-right":"origin-top-left",d),placement:o==="right"?"bottom end":"bottom start",children:jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("flex min-w-[180px] flex-col gap-1",d),children:[s?jsxRuntime.jsx("div",{className:"px-3 pb-2 pt-3",children:s}):null,jsxRuntime.jsx(reactAriaComponents.Menu,{className:"!outline-none",children:t.map(g=>jsxRuntime.jsx(f1,{id:g.id,onAction:()=>{g.onAction?g.onAction():i?.(g);},textAlign:n,size:a,iconName:g.iconName,isDisabled:g.disabled,variant:g.variant,subtitle:g.subtitle,render:g.render,noPadding:g.noPadding,"data-testid":g.testId,children:g.name},g.id))}),c?jsxRuntime.jsx("div",{className:"px-3 pb-3 pt-2",children:c}):null]})})]})})}function f1({textAlign:e="left",iconName:t,size:r="md",isDisabled:o,children:n,variant:a="default",subtitle:i,render:s,noPadding:c,...l}){let d={sm:"px-3 py-2 text-sm",md:i?"px-4 py-2.5 text-base":"px-4 py-2 text-base"},u="text-text-primary hover:bg-background-hover data-[focused]:bg-background-hover data-[focus-visible]:ring-2 data-[focus-visible]:ring-action-primary data-[focus-visible]:ring-inset",m={primary:u,default:u,destructive:"text-feedback-error-text hover:bg-feedback-error-background data-[focused]:bg-feedback-error-background data-[focus-visible]:ring-2 data-[focus-visible]:ring-feedback-error-border data-[focus-visible]:ring-inset"};return s?jsxRuntime.jsx(reactAriaComponents.MenuItem,{...l,isDisabled:o,className:tailwindMerge.twMerge("group box-border flex w-full cursor-pointer items-center rounded-sm outline-none transition-colors",!c&&d[r],m[a],e==="right"?"justify-end":"justify-start",o&&"pointer-events-none opacity-50"),children:s()}):jsxRuntime.jsxs(reactAriaComponents.MenuItem,{...l,isDisabled:o,className:tailwindMerge.twMerge("group box-border flex w-full cursor-pointer items-center rounded-sm outline-none transition-colors",!c&&d[r],m[a],e==="right"?"justify-end":"justify-start",o&&"pointer-events-none opacity-50"),children:[t&&e==="left"&&jsxRuntime.jsx(H,{name:t,size:r==="sm"?16:20,className:"mr-3 flex-shrink-0"}),jsxRuntime.jsxs("div",{className:"flex flex-1 flex-col",children:[jsxRuntime.jsx("span",{className:i?"font-medium":"",children:n}),i&&jsxRuntime.jsx("span",{className:"text-sm text-text-secondary",children:i})]}),t&&e==="right"&&jsxRuntime.jsx(H,{name:t,size:r==="sm"?16:20,className:"ml-3 flex-shrink-0"})]})}var po=({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 Cr({state:e,message:t,className:r,customIndicator:o}){if(e!=="loading-more")return null;let n=jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("flex items-center justify-center gap-2 py-4","text-text-secondary",r),"aria-label":t||"Loading",children:[jsxRuntime.jsx(po,{size:20,color:"text-text-secondary"}),t&&jsxRuntime.jsx("span",{className:"text-sm","aria-hidden":"true",children:t})]});return o||n}var ua=Be.createContext({variant:"timeline",size:"md"});function cg(){return Be.useContext(ua)}function Ns(e){return Be.isValidElement(e)&&e.type===Ps}function S1(e){return Be.isValidElement(e)&&e.type===Ts}function Jd({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:d=5,emptyMessage:u="No activity found.",onLoadMore:m,hasMore:p=false,enableVirtualization:f,estimatedItemSize:g,loadingIndicator:b,height:x,maxHeight:h,...C}){let y=Be.useRef(null),{isMobile:S}=Yt(),N=S?"stacked":e,T=n!==void 0&&a!==void 0,{scrollRef:E,loadMoreRef:R,virtualizer:M,virtualItems:A,isLoadingMore:L,computedLoadingState:w}=Do({items:n||[],onLoadMore:T?m:void 0,hasMore:T?p:false,isLoading:i,loadingState:s,enableVirtualization:T?f:false,estimatedItemSize:g||(N==="stacked"?120:150),overscan:5}),k=T&&E?E:y,O=Be.useMemo(()=>({variant:N,size:t}),[N,t]),G=N==="timeline"?t==="sm"?"gap-4":"gap-6":"gap-0",B=N==="stacked"?"divide-y divide-border-subtle rounded-lg border border-border-subtle bg-background-surface":"",z={};if(T&&m&&(x?(z.height=typeof x=="number"?`${x}px`:x,z.overflowY="auto"):h?(z.maxHeight=typeof h=="number"?`${h}px`:h,z.overflowY="auto"):(z.height="600px",z.overflowY="auto")),T){let K=w==="loading"||i&&(!n||n.length===0);if(K){let D=l?jsxRuntime.jsx(jsxRuntime.Fragment,{children:Array.from({length:d}).map((F,I)=>jsxRuntime.jsx("div",{children:l()},`skeleton-${I}`))}):jsxRuntime.jsx(jsxRuntime.Fragment,{children:Array.from({length:d}).map((F,I)=>{let v=t==="sm"?"gap-2":"gap-3";if(N==="timeline"){let W=t==="sm"?"pt-3":"pt-4",Y=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(j,{width:32,height:32,variant:"circle"}),I<d-1&&jsxRuntime.jsx("span",{className:"absolute top-[2rem] left-1/2 w-0 border-l-2 border-dotted -translate-x-1/2 h-[calc(100%+2.5rem)] border-border-muted"})]}),jsxRuntime.jsxs("div",{className:`min-w-0 flex flex-col ${v} ${Y} rounded-md border border-border-subtle bg-background-surface`,children:[jsxRuntime.jsxs("div",{className:"flex items-center justify-between gap-3",children:[jsxRuntime.jsx(j,{width:"50%",height:16}),jsxRuntime.jsx(j,{width:"15%",height:12})]}),jsxRuntime.jsx(j,{width:"85%",height:t==="sm"?14:15}),jsxRuntime.jsx(j,{width:"70%",height:t==="sm"?14:15})]})]},`skeleton-${I}`)}else return jsxRuntime.jsxs("div",{className:`flex flex-col ${t==="sm"?"px-3 py-3":"px-4 py-4"}`,children:[jsxRuntime.jsxs("div",{className:"flex items-center gap-3",children:[jsxRuntime.jsx(j,{width:24,height:24,variant:"circle"}),jsxRuntime.jsx(j,{width:"50%",height:16})]}),jsxRuntime.jsxs("div",{className:`mt-3 flex flex-col ${v}`,children:[jsxRuntime.jsx(j,{width:"85%",height:t==="sm"?14:15}),jsxRuntime.jsx(j,{width:"70%",height:t==="sm"?14:15}),jsxRuntime.jsx(j,{width:"20%",height:12})]})]},`skeleton-${I}`)})});return jsxRuntime.jsx(ua.Provider,{value:O,children:jsxRuntime.jsx("div",{ref:k,"data-slot":"feed","data-variant":N,className:tailwindMerge.twMerge("flex flex-col",G,B,r),style:z,...C,children:D})})}if(c)return jsxRuntime.jsx(ua.Provider,{value:O,children:jsxRuntime.jsx("div",{ref:k,"data-slot":"feed","data-variant":N,className:tailwindMerge.twMerge("flex flex-col",G,B,r),style:z,...C,children:jsxRuntime.jsx("div",{className:"p-4 text-center text-feedback-error-text",children:c})})});if(!n||n.length===0)return jsxRuntime.jsx(ua.Provider,{value:O,children:jsxRuntime.jsx("div",{ref:k,"data-slot":"feed","data-variant":N,className:tailwindMerge.twMerge("flex flex-col",G,B,r),style:z,...C,children:jsxRuntime.jsx("div",{className:"p-4 text-center text-text-secondary",children:u})})});let P=M?A?.map(D=>({virtualItem:D,item:n[D.index],index:D.index}))||[]:n.map((D,F)=>({item:D,index:F,virtualItem:null}));return jsxRuntime.jsx(ua.Provider,{value:O,children:jsxRuntime.jsxs("div",{ref:k,"data-slot":"feed","data-variant":N,className:tailwindMerge.twMerge("flex flex-col",G,B,r),style:{...z,position:M?"relative":void 0},...C,children:[M?jsxRuntime.jsxs("div",{style:{height:`${M.getTotalSize()}px`,position:"relative"},children:[P.map(({item:D,index:F,virtualItem:I})=>{if(!D||!I)return null;let v=a(D,F),W=N==="timeline"&&Be.isValidElement(v)&&Ns(v)?Be.cloneElement(v,{showConnector:F!==n.length-1}):v;return jsxRuntime.jsx("div",{style:{position:"absolute",top:0,left:0,width:"100%",transform:`translateY(${I.start}px)`},"data-index":I.index,ref:M.measureElement,children:W},`item-${F}`)}),L&&jsxRuntime.jsx("div",{style:{position:"absolute",top:`${M.getTotalSize()}px`,left:0,width:"100%"},children:b||jsxRuntime.jsx(Cr,{state:"loading-more"})})]}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[P.map(({item:D,index:F})=>{let I=a(D,F);if(N==="timeline"&&Be.isValidElement(I)&&Ns(I)){let v=F===n.length-1;return jsxRuntime.jsx("div",{children:Be.cloneElement(I,{showConnector:!v})},`item-${F}`)}return jsxRuntime.jsx("div",{children:I},`item-${F}`)}),L&&(b||jsxRuntime.jsx(Cr,{state:"loading-more"}))]}),m&&p&&!K&&jsxRuntime.jsx("div",{ref:R,style:M?{position:"absolute",top:`${M.getTotalSize()}px`,left:0,width:"100%",height:1}:{height:1,width:"100%"}})]})})}let X=Be.Children.toArray(o),V=X.map((K,P)=>{if(Ns(K)){let D=K.props.showConnector??(N==="timeline"&&P<X.length-1),F=N==="timeline"&&P>0;return Be.cloneElement(K,{showConnector:D,showIncomingConnector:F})}if(S1(K)){let D=P===X.length-1;return Be.cloneElement(K,{__isLastGroup:D,__isFirstGroup:P===0})}return K});return jsxRuntime.jsx(ua.Provider,{value:O,children:jsxRuntime.jsx("div",{"data-slot":"feed","data-variant":N,className:tailwindMerge.twMerge("flex flex-col",G,B,r),...C,children:V})})}Jd.displayName="ActivityFeed";function Ts(e){let{variant:t,size:r}=cg(),{title:o,description:n,actions:a,children:i,className:s,__isLastGroup:c=false,__isFirstGroup:l=false,...d}=e,u=Be.Children.toArray(i),m=u.map((g,b)=>{if(Ns(g)){let x=g.props.showConnector??(t==="timeline"&&!(c&&b===u.length-1));return Be.cloneElement(g,{showConnector:x,showIncomingConnector:t==="timeline"&&!(l&&b===0)})}return g}),p=t==="timeline"?"pl-[3rem]":r==="sm"?"px-3":"px-4",f=r==="sm"?"gap-3":"gap-4";return jsxRuntime.jsxs("section",{"data-slot":"group",className:tailwindMerge.twMerge("flex flex-col",s),...d,children:[(o||n||a)&&jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("mb-2 flex flex-wrap items-end justify-between gap-2",p),children:[jsxRuntime.jsxs("div",{className:"flex min-w-0 flex-col gap-1",children:[o&&jsxRuntime.jsx("span",{className:"text-xs font-semibold uppercase tracking-wide text-text-secondary",children:o}),n&&jsxRuntime.jsx("span",{className:"text-sm text-text-secondary",children:n})]}),a&&jsxRuntime.jsx("div",{className:"flex flex-shrink-0 items-center gap-2",children:a})]}),jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("flex flex-col",f),children:m})]})}Ts.displayName="ActivityFeedGroup";var sg={neutral:"bg-background-muted text-text-secondary border-border-muted",brand:"bg-background-muted text-action-brand border-action-brand/30",success:"bg-background-muted text-feedback-success-text border-feedback-success-border/40",warning:"bg-background-muted text-feedback-warning-text border-feedback-warning-border/40",danger:"bg-background-muted text-feedback-error-text border-feedback-error-border/40",info:"bg-background-muted text-feedback-info-text border-feedback-info-border/40"},w1={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"},N1={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 Ps(e){let{variant:t,size:r}=cg(),{title:o,description:n,timestamp:a,meta:i,media:s,actions:c,visual:l,icon:d,iconWeight:u,tone:m="neutral",surface:p,isHighlighted:f=false,showConnector:g=true,hideIndicator:b=false,interactive:x,className:h,children:C,onKeyDown:y,showIncomingConnector:S,...N}=e,T=l??(d?jsxRuntime.jsx(H,{name:d,weight:u||"fill",className:"h-4 w-4"}):null),E=p??(t==="stacked"?"minimal":"subtle"),R=r==="sm"?"gap-2":"gap-3",M="text-xs text-text-secondary",A=r==="sm"?"text-sm":"text-[15px]",L="text-xs text-text-secondary",w=x??typeof N.onClick=="function",k=P=>{if(!w){y?.(P);return}P.key===" "?P.preventDefault():P.key==="Enter"&&(P.preventDefault(),P.currentTarget.click()),y?.(P);},O=P=>{w&&P.key===" "&&(P.preventDefault(),P.currentTarget.click());},G=w?tailwindMerge.twMerge("group cursor-pointer",je()):void 0,z=jsxRuntime.jsxs("div",{"data-slot":"connector",className:tailwindMerge.twMerge("relative flex h-full flex-col items-center",E==="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",sg[m]),children:T}),t==="timeline"&&g&&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"})]}),X=f?tailwindMerge.twMerge(w1[m],E==="minimal"?"rounded-md border border-border-muted":N1[m]):"";if(t==="stacked")return jsxRuntime.jsxs("div",{"data-slot":"item","data-variant":"stacked",role:w?"button":void 0,tabIndex:w?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"}[E],X,G,w?"transition-colors hover:bg-background-subtle/80":"",h),onKeyDown:k,onKeyUp:O,...N,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",sg[m]),children:T}),jsxRuntime.jsx("div",{"data-slot":"title",className:"min-w-0 flex-1 text-sm font-semibold text-text-primary",children:o})]}),jsxRuntime.jsxs("div",{"data-slot":"content",className:tailwindMerge.twMerge("mt-3 flex flex-col",R),children:[n&&jsxRuntime.jsx("div",{"data-slot":"description",className:tailwindMerge.twMerge("text-text-secondary",A),children:n}),i&&jsxRuntime.jsx("div",{className:L,children:i}),s&&jsxRuntime.jsx("div",{className:"flex flex-col gap-2 text-sm text-text-secondary",children:s}),C,c&&jsxRuntime.jsx("div",{className:"flex flex-wrap gap-2 pt-1",children:c}),a&&jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("-mt-1.5",M),children:a})]})]});let V=E==="minimal"?r==="sm"?"py-2":"py-3":r==="sm"?"p-3":"p-4",K={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:w?"button":void 0,tabIndex:w?0:void 0,className:tailwindMerge.twMerge("group relative grid items-start gap-4 grid-cols-[3rem_1fr]",G,h),onKeyDown:k,onKeyUp:O,...N,children:[b?jsxRuntime.jsx("div",{}):z,jsxRuntime.jsxs("div",{"data-slot":"content",className:tailwindMerge.twMerge("min-w-0 flex flex-col",R,V,K[E],X,w?"transition-colors group-hover:bg-background-subtle/70":""),children:[jsxRuntime.jsxs("div",{className:"flex items-center justify-between gap-3",children:[jsxRuntime.jsx("div",{"data-slot":"title",className:"min-w-0 flex-1 text-sm font-semibold text-text-primary",children:o}),a&&jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("flex-shrink-0",M),children:a})]}),n&&jsxRuntime.jsx("div",{"data-slot":"description",className:tailwindMerge.twMerge("text-text-secondary",A),children:n}),i&&jsxRuntime.jsx("div",{className:L,children:i}),s&&jsxRuntime.jsx("div",{className:"flex flex-col gap-2 text-sm text-text-secondary",children:s}),C,c&&jsxRuntime.jsx("div",{className:"flex flex-wrap gap-2 pt-2",children:c})]})]})}Ps.displayName="ActivityItem";function Sr({isOpen:e,onClose:t,title:r,headerContent:o,titleAlign:n="left",hideCloseIcon:a=false,hasBackArrow:i=false,onBack:s,children:c,primaryAction:l,secondaryAction:d,tertiaryAction:u,footerContent:m,transparentOverlay:p=false,maxWidth:f="600px",minWidth:g="400px",maxHeight:b="85vh",height:x,mobileMaxHeight:h="90vh",mobileHeight:C,contentPadding:y=true,className:S}){let N=Ut("(max-width: 767px)"),T=ds(N&&e===void 0),E=T?.height??null,R=T?.keyboardOffset??0,M=Be.useRef(null),A=Be.useCallback(()=>{M.current&&M.current.scrollTop!==0&&(M.current.scrollTop=0);},[]),L=Be.useRef(null),w=Be.useRef(null);Be.useEffect(()=>{let z=w.current;if(!z||!N)return;let X=null,V=K=>{let P=K.target;P&&["INPUT","TEXTAREA","SELECT"].includes(P.tagName)&&(X&&clearTimeout(X),X=setTimeout(()=>{P.scrollIntoView({block:"nearest",behavior:"smooth"});},320));};return z.addEventListener("focusin",V),()=>{z.removeEventListener("focusin",V),X&&clearTimeout(X);}},[N]);let k=Be.useCallback(()=>{L.current&&L.current.scrollTop!==0&&(L.current.scrollTop=0);},[]);if(e===false)return null;let O=r||o,G=l||d||u||m,B=e!==void 0;return N?B?jsxRuntime.jsx(it,{isOpen:e,onClose:t,title:r,headerContent:o,titleAlign:n,hideCloseIcon:a,hasBackArrow:i,onBack:s,primaryAction:l,secondaryAction:d,footerContent:m,transparentOverlay:p,maxHeight:h,height:C,maxWidth:f,contentPadding:y,showHandle:true,animationVariant:"scale",className:S,children:c}):jsxRuntime.jsx(Lr,{children:jsxRuntime.jsx(ir,{isDismissable:true,transparent:p,style:{paddingBottom:R>0?`${R}px`:void 0,transition:"padding-bottom 0.25s ease-out"},className:"flex items-end justify-center",children:jsxRuntime.jsx(reactAriaComponents.Modal,{className:"w-full p-0 outline-none focus:outline-none focus-visible:outline-none ring-0 focus:ring-0 focus-visible:ring-0",children:jsxRuntime.jsxs(reactAriaComponents.Dialog,{ref:M,onScroll:A,className:tailwindMerge.twMerge("relative flex w-full flex-col","bg-background-surface","shadow-2xl shadow-black/20","border-t border-x border-border-default/40","rounded-t-xl","overflow-hidden","animate-in slide-in-from-bottom","duration-300 ease-out","data-[exiting]:animate-out data-[exiting]:slide-out-to-bottom","data-[exiting]:duration-200 data-[exiting]:ease-in",S),style:{...C?{height:C}:{maxHeight:/\d/.test(h)?E!==null?`min(${h}, ${Math.max(E-8,0)}px, 100dvh)`:`min(${h}, 100dvh)`: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"})}),O&&(i?jsxRuntime.jsx(Bt,{title:r,headerContent:o,titleAlign:n,hideCloseIcon:a||!t,hasBackArrow:true,onBack:s,onClose:t||(()=>{})}):jsxRuntime.jsx(Bt,{title:r,headerContent:o,titleAlign:n,hideCloseIcon:a||!t,onClose:t||(()=>{})})),jsxRuntime.jsx("div",{ref:w,className:tailwindMerge.twMerge("flex-1 min-h-0 overflow-y-auto overscroll-contain",y?"px-6 py-6":"p-0"),children:c}),G&&jsxRuntime.jsx(Fo,{primaryAction:l,secondaryAction:d,tertiaryAction:u,footerContent:m})]})})})}):jsxRuntime.jsx(Lr,{children:jsxRuntime.jsx(ir,{...B?{isOpen:e,onOpenChange:z=>{!z&&t&&t();}}:{},isDismissable:true,transparent:p,className:"flex items-center justify-center",children:jsxRuntime.jsx(reactAriaComponents.Modal,{className:"w-full p-4 outline-none focus:outline-none focus-visible:outline-none ring-0 focus:ring-0 focus-visible:ring-0",style:{maxWidth:f},children:jsxRuntime.jsxs(reactAriaComponents.Dialog,{ref:L,onScroll:k,className:tailwindMerge.twMerge("relative flex w-full flex-col","bg-background-surface","shadow-2xl shadow-black/20","border border-border-default/50","rounded-md","overflow-hidden","outline-none focus:outline-none focus-visible:outline-none ring-0 focus:ring-0","animate-in fade-in zoom-in-96 slide-in-from-bottom-2","duration-300 ease-out","data-[exiting]:animate-out data-[exiting]:fade-out data-[exiting]:zoom-out-95","data-[exiting]:duration-200 data-[exiting]:ease-in",S),style:{minWidth:g,...x?{height:x}:{maxHeight:b}},children:[O&&(i?jsxRuntime.jsx(Bt,{title:r,headerContent:o,titleAlign:n,hideCloseIcon:a||!t,hasBackArrow:true,onBack:s,onClose:t||(()=>{})}):jsxRuntime.jsx(Bt,{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",y?"px-6 py-6":"p-0"),children:c}),G&&jsxRuntime.jsx(Fo,{primaryAction:l,secondaryAction:d,tertiaryAction:u,footerContent:m})]})})})})}function gg({isOpen:e,onClose:t,title:r,message:o,confirmLabel:n="OK",confirmVariant:a="primary",maxWidth:i="400px",minWidth:s="320px"}){return jsxRuntime.jsx(Sr,{isOpen:e,onClose:t,title:r,maxWidth:i,minWidth:s,primaryAction:{label:n,onPress:t,variant:a},children:jsxRuntime.jsx("div",{className:"text-text-primary",children:o})})}var Bo={xs:16,sm:20,md:24,lg:32,xl:40,"2xl":48},sr=Be.memo(({name:e,size:t="md",color:r,weight:o="regular",className:n,ariaLabel:a,...i})=>{let s=T1__namespace[e];if(!s)return null;let c=typeof t=="string"?t in Bo?Bo[t]:Bo.md:t,l=tailwindMerge.twMerge("inline-block flex-shrink-0",!r&&"text-current",n);return jsxRuntime.jsx(s,{...i,size:c,color:r,weight:o,className:l,"aria-label":a||`${e} icon`,"data-testid":`icon-${e}`})});sr.displayName="IconSSR";var P1=Be.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:d,...u})=>{let m=typeof n=="string"?n in Bo?Bo[n]:Bo.md:n,p=r?typeof r=="string"?r in Bo?Bo[r]:m*1.75:r:m*1.75,f=tailwindMerge.twMerge("inline-flex items-center justify-center flex-shrink-0",t==="circle"?"rounded-full":"rounded-lg",e==="subtle"&&"bg-background-muted",e==="solid"&&"bg-action-brand text-[color:var(--color-action-brand-text)]",e==="outline"&&"border-2 border-current",o);return jsxRuntime.jsx("div",{className:f,style:{width:p,height:p},children:jsxRuntime.jsx(sr,{...u,name:i,size:n,color:s,weight:c,className:a,ariaLabel:l})})});P1.displayName="IconSSRWithContainer";var pa=({className:e,showWordmark:t=true,width:r,fill:o})=>{let n,a;if(o?o.startsWith("fill-")?a=o:n=o:e?a=e:n="var(--color-text-primary)",t){let c=r||270,l=c/270*80;return jsxRuntime.jsxs("svg",{width:c,height:l,viewBox:"0 0 270 80",xmlns:"http://www.w3.org/2000/svg",className:a,style:n?{fill:n}:void 0,children:[jsxRuntime.jsxs("g",{clipPath:"url(#clip0_796_283)",children:[jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0.223654 20.2934C0.417233 19.8234 0.873598 19.517 1.37984 19.517H20.5909C21.282 19.517 21.8422 20.0798 21.8422 20.774V40.049C21.8422 40.5572 21.5375 41.0155 21.0702 41.2102C20.6028 41.405 20.0647 41.2977 19.7067 40.9385L0.495628 21.6635C0.137428 21.3041 0.030075 20.7633 0.223654 20.2934ZM4.40349 22.0311L19.3396 37.017V22.0311H4.40349Z"}),jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M38.6458 20.2934C38.8394 19.8234 39.2958 19.517 39.802 19.517H59.013C59.7041 19.517 60.2642 20.0798 60.2642 20.774V40.049C60.2642 40.5572 59.9597 41.0155 59.4923 41.2102C59.025 41.405 58.4867 41.2977 58.1289 40.9385L38.9178 21.6635C38.5595 21.3041 38.4522 20.7633 38.6458 20.2934ZM42.8255 22.0311L57.7618 37.017V22.0311H42.8255Z"}),jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M19.4347 58.8447C19.6283 58.3747 20.0847 58.0685 20.5909 58.0685H39.802C40.493 58.0685 41.0532 58.6312 41.0532 59.3255V78.6005C41.0532 79.1087 40.7486 79.567 40.2813 79.7617C39.8139 79.9562 39.2757 79.849 38.9178 79.49L19.7067 60.215C19.3485 59.8555 19.2411 59.3147 19.4347 58.8447ZM23.6146 60.5825L38.5508 75.5682V60.5825H23.6146Z"}),jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M39.3227 58.1643C39.79 57.9695 40.3283 58.0768 40.6861 58.436L59.8972 77.711C60.2555 78.0703 60.3628 78.6113 60.1692 79.081C59.9756 79.551 59.5192 79.8575 59.013 79.8575H39.802C39.1109 79.8575 38.5508 79.2948 38.5508 78.6005V59.3255C38.5508 58.8173 38.8554 58.359 39.3227 58.1643ZM41.0532 62.3575V77.3433H55.9893L41.0532 62.3575Z"}),jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M39.3227 19.6129C39.79 19.4182 40.3283 19.5254 40.6861 19.8846L59.8972 39.1595C60.2555 39.519 60.3628 40.0598 60.1692 40.5298C59.9756 40.9995 59.5192 41.306 59.013 41.306H39.802C39.1109 41.306 38.5508 40.7433 38.5508 40.049V20.7741C38.5508 20.2658 38.8554 19.8075 39.3227 19.6129ZM41.0532 23.8061V38.792H55.9893L41.0532 23.8061Z"}),jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M39.3227 38.8885C39.79 38.694 40.3283 38.8012 40.6861 39.1602L59.8972 58.4352C60.2555 58.7945 60.3628 59.3355 60.1692 59.8055C59.9756 60.2752 59.5192 60.5817 59.013 60.5817H39.802C39.1109 60.5817 38.5508 60.019 38.5508 59.3247V40.0497C38.5508 39.5415 38.8554 39.0832 39.3227 38.8885ZM41.0532 43.0817V58.0675H55.9893L41.0532 43.0817Z"}),jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M38.6458 39.569C38.8394 39.0992 39.2958 38.7927 39.802 38.7927H59.013C59.7041 38.7927 60.2642 39.3555 60.2642 40.0497V59.3247C60.2642 59.833 59.9597 60.2912 59.4923 60.486C59.025 60.6805 58.4867 60.5732 58.1289 60.2142L38.9178 40.9392C38.5595 40.5797 38.4522 40.039 38.6458 39.569ZM42.8255 41.3067L57.7618 56.2927V41.3067H42.8255Z"}),jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M38.6458 58.8447C38.8394 58.3747 39.2958 58.0685 39.802 58.0685H59.013C59.7041 58.0685 60.2642 58.6312 60.2642 59.3255V78.6005C60.2642 79.1087 59.9597 79.567 59.4923 79.7617C59.025 79.9562 58.4867 79.849 58.1289 79.49L38.9178 60.215C38.5595 59.8555 38.4522 59.3147 38.6458 58.8447ZM42.8255 60.5825L57.7618 75.5682V60.5825H42.8255Z"}),jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M58.5338 19.6129C59.0011 19.4182 59.5394 19.5254 59.8972 19.8846L79.1083 39.1595C79.4666 39.519 79.5739 40.0598 79.3803 40.5298C79.1867 40.9995 78.7303 41.306 78.2241 41.306H59.013C58.322 41.306 57.7618 40.7433 57.7618 40.049V20.7741C57.7618 20.2658 58.0664 19.8075 58.5338 19.6129ZM60.2643 23.8061V38.792H75.2006L60.2643 23.8061Z"}),jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M58.5338 0.338803C59.0011 0.144135 59.5394 0.251385 59.8972 0.610565L79.1083 19.8855C79.4666 20.2449 79.5739 20.7857 79.3803 21.2556C79.1867 21.7256 78.7303 22.032 78.2241 22.032H59.013C58.322 22.032 57.7618 21.4692 57.7618 20.775V1.50003C57.7618 0.99174 58.0664 0.533468 58.5338 0.338803ZM60.2643 4.53208V19.5179H75.2006L60.2643 4.53208Z"}),jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M57.8569 20.2934C58.0505 19.8234 58.5069 19.517 59.013 19.517H78.2241C78.9151 19.517 79.4753 20.0798 79.4753 20.774V40.049C79.4753 40.5572 79.1707 41.0155 78.7034 41.2102C78.236 41.405 77.6978 41.2977 77.3399 40.9385L58.1289 21.6635C57.7705 21.3041 57.6633 20.7633 57.8569 20.2934ZM62.0365 22.0311L76.9729 37.017V22.0311H62.0365Z"}),jsxRuntime.jsx("path",{d:"M269.838 49.4457H249.005C249.266 51.801 250.162 53.6985 251.695 55.1377C253.225 56.577 255.134 57.2967 257.416 57.2967C259.307 57.2967 260.887 56.8715 262.159 56.021C263.463 55.1377 264.408 53.9927 264.996 52.5862H269.251C268.502 54.9415 267.084 56.937 264.996 58.5725C262.943 60.208 260.414 61.026 257.416 61.026C255.069 61.026 252.917 60.4697 250.961 59.3575C249.037 58.2127 247.504 56.6587 246.363 54.696C245.255 52.7332 244.7 50.558 244.7 48.17C244.7 45.782 245.255 43.6067 246.363 41.644C247.504 39.6812 249.037 38.1437 250.961 37.0315C252.917 35.8867 255.069 35.3142 257.416 35.3142C259.73 35.3142 261.833 35.8702 263.724 36.9825C265.615 38.0947 267.098 39.6485 268.176 41.644C269.283 43.6395 269.838 45.913 269.838 48.4645V49.4457ZM257.416 39.0432C255.263 39.0432 253.439 39.6812 251.939 40.957C250.47 42.2327 249.542 43.9337 249.152 46.06H265.583C265.192 43.9992 264.262 42.3145 262.796 41.006C261.36 39.6975 259.568 39.0432 257.416 39.0432Z"}),jsxRuntime.jsx("path",{d:"M228.356 60.5352V35.8049H232.219V39.7794H232.464C233.05 38.5689 233.963 37.5712 235.202 36.7862C236.474 35.9684 237.974 35.5594 239.701 35.5594H243.125V39.4359H239.701C237.517 39.4359 235.757 40.1554 234.42 41.5949C233.083 43.0342 232.414 44.9152 232.414 47.2377V60.5352H228.356Z"}),jsxRuntime.jsx("path",{d:"M208.607 61.0259C205.64 61.0259 203.326 60.1262 201.663 58.3272C200 56.4952 199.169 53.8947 199.169 50.5252V35.8047H203.228V49.8874C203.228 52.2427 203.766 54.0744 204.842 55.3829C205.95 56.6587 207.532 57.2967 209.586 57.2967C211.02 57.2967 212.308 56.9694 213.449 56.3152C214.623 55.6284 215.536 54.6959 216.188 53.5184C216.84 52.3407 217.166 50.9997 217.166 49.4949V35.8047H221.225V60.5352H217.313V56.5607H217.068C216.286 57.9019 215.161 58.9814 213.694 59.7992C212.226 60.6169 210.531 61.0259 208.607 61.0259Z"}),jsxRuntime.jsx("path",{d:"M186.736 39.534V56.806H194.756V60.5352H182.677V39.534H177.199V35.8047H182.677V29.5732H186.736V35.8047H193.24V39.534H186.736Z"}),jsxRuntime.jsx("path",{d:"M156.585 60.5352H151.988L158.394 48.0227L152.33 35.8047H156.976L162.062 46.0599H165.388L170.474 35.8047H175.022L168.958 48.0227L175.365 60.5352H170.67L165.29 49.7892H162.013L156.585 60.5352Z"}),jsxRuntime.jsx("path",{d:"M150.138 49.1315H129.304C129.565 51.4867 130.461 53.3842 131.994 54.8235C133.526 56.2627 135.433 56.9825 137.715 56.9825C139.606 56.9825 141.188 56.5572 142.459 55.7067C143.763 54.8235 144.709 53.6785 145.296 52.272H149.551C148.801 54.6272 147.382 56.6227 145.296 58.2582C143.242 59.8937 140.715 60.7118 137.715 60.7118C135.368 60.7118 133.216 60.1555 131.26 59.0432C129.336 57.8985 127.804 56.3445 126.663 54.3817C125.554 52.419 125 50.2437 125 47.8557C125 45.4677 125.554 43.2925 126.663 41.3298C127.804 39.367 129.336 37.8295 131.26 36.7173C133.216 35.5725 135.368 35 137.715 35C140.03 35 142.133 35.556 144.024 36.6682C145.915 37.7805 147.399 39.3342 148.475 41.3298C149.583 43.3252 150.138 45.5987 150.138 48.1502V49.1315ZM137.715 38.729C135.564 38.729 133.738 39.367 132.238 40.6427C130.771 41.9185 129.842 43.6195 129.45 45.7458H145.883C145.491 43.685 144.562 42.0002 143.095 40.6917C141.661 39.3832 139.867 38.729 137.715 38.729Z"}),jsxRuntime.jsx("path",{d:"M116.961 60.5353H112.559V30.4072H101.164V26.1875H128.307V30.4072H116.961V60.5353Z"})]}),jsxRuntime.jsx("defs",{children:jsxRuntime.jsx("clipPath",{id:"clip0_796_283",children:jsxRuntime.jsx("rect",{width:"270",height:"80",fill:"white"})})})]})}let i=r||80;return jsxRuntime.jsxs("svg",{width:i,height:i,viewBox:"0 0 80 80",xmlns:"http://www.w3.org/2000/svg",className:a,style:n?{fill:n}:void 0,children:[jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0.223654 20.2934C0.417233 19.8234 0.873598 19.517 1.37984 19.517H20.5909C21.282 19.517 21.8422 20.0798 21.8422 20.774V40.049C21.8422 40.5572 21.5375 41.0155 21.0702 41.2102C20.6028 41.405 20.0647 41.2977 19.7067 40.9385L0.495628 21.6635C0.137428 21.3041 0.030075 20.7633 0.223654 20.2934ZM4.40349 22.0311L19.3396 37.017V22.0311H4.40349Z"}),jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M38.6458 20.2934C38.8394 19.8234 39.2958 19.517 39.802 19.517H59.013C59.7041 19.517 60.2642 20.0798 60.2642 20.774V40.049C60.2642 40.5572 59.9597 41.0155 59.4923 41.2102C59.025 41.405 58.4867 41.2977 58.1289 40.9385L38.9178 21.6635C38.5595 21.3041 38.4522 20.7633 38.6458 20.2934ZM42.8255 22.0311L57.7618 37.017V22.0311H42.8255Z"}),jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M19.4347 58.8447C19.6283 58.3747 20.0847 58.0685 20.5909 58.0685H39.802C40.493 58.0685 41.0532 58.6312 41.0532 59.3255V78.6005C41.0532 79.1087 40.7486 79.567 40.2813 79.7617C39.8139 79.9562 39.2757 79.849 38.9178 79.49L19.7067 60.215C19.3485 59.8555 19.2411 59.3147 19.4347 58.8447ZM23.6146 60.5825L38.5508 75.5682V60.5825H23.6146Z"}),jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M39.3227 58.1643C39.79 57.9695 40.3283 58.0768 40.6861 58.436L59.8972 77.711C60.2555 78.0703 60.3628 78.6113 60.1692 79.081C59.9756 79.551 59.5192 79.8575 59.013 79.8575H39.802C39.1109 79.8575 38.5508 79.2948 38.5508 78.6005V59.3255C38.5508 58.8173 38.8554 58.359 39.3227 58.1643ZM41.0532 62.3575V77.3433H55.9893L41.0532 62.3575Z"}),jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M39.3227 19.6129C39.79 19.4182 40.3283 19.5254 40.6861 19.8846L59.8972 39.1595C60.2555 39.519 60.3628 40.0598 60.1692 40.5298C59.9756 40.9995 59.5192 41.306 59.013 41.306H39.802C39.1109 41.306 38.5508 40.7433 38.5508 40.049V20.7741C38.5508 20.2658 38.8554 19.8075 39.3227 19.6129ZM41.0532 23.8061V38.792H55.9893L41.0532 23.8061Z"}),jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M39.3227 38.8885C39.79 38.694 40.3283 38.8012 40.6861 39.1602L59.8972 58.4352C60.2555 58.7945 60.3628 59.3355 60.1692 59.8055C59.9756 60.2752 59.5192 60.5817 59.013 60.5817H39.802C39.1109 60.5817 38.5508 60.019 38.5508 59.3247V40.0497C38.5508 39.5415 38.8554 39.0832 39.3227 38.8885ZM41.0532 43.0817V58.0675H55.9893L41.0532 43.0817Z"}),jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M38.6458 39.569C38.8394 39.0992 39.2958 38.7927 39.802 38.7927H59.013C59.7041 38.7927 60.2642 39.3555 60.2642 40.0497V59.3247C60.2642 59.833 59.9597 60.2912 59.4923 60.486C59.025 60.6805 58.4867 60.5732 58.1289 60.2142L38.9178 40.9392C38.5595 40.5797 38.4522 40.039 38.6458 39.569ZM42.8255 41.3067L57.7618 56.2927V41.3067H42.8255Z"}),jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M38.6458 58.8447C38.8394 58.3747 39.2958 58.0685 39.802 58.0685H59.013C59.7041 58.0685 60.2642 58.6312 60.2642 59.3255V78.6005C60.2642 79.1087 59.9597 79.567 59.4923 79.7617C59.025 79.9562 58.4867 79.849 58.1289 79.49L38.9178 60.215C38.5595 59.8555 38.4522 59.3147 38.6458 58.8447ZM42.8255 60.5825L57.7618 75.5682V60.5825H42.8255Z"}),jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M58.5338 19.6129C59.0011 19.4182 59.5394 19.5254 59.8972 19.8846L79.1083 39.1595C79.4666 39.519 79.5739 40.0598 79.3803 40.5298C79.1867 40.9995 78.7303 41.306 78.2241 41.306H59.013C58.322 41.306 57.7618 40.7433 57.7618 40.049V20.7741C57.7618 20.2658 58.0664 19.8075 58.5338 19.6129ZM60.2643 23.8061V38.792H75.2006L60.2643 23.8061Z"}),jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M58.5338 0.338803C59.0011 0.144135 59.5394 0.251385 59.8972 0.610565L79.1083 19.8855C79.4666 20.2449 79.5739 20.7857 79.3803 21.2556C79.1867 21.7256 78.7303 22.032 78.2241 22.032H59.013C58.322 22.032 57.7618 21.4692 57.7618 20.775V1.50003C57.7618 0.99174 58.0664 0.533468 58.5338 0.338803ZM60.2643 4.53208V19.5179H75.2006L60.2643 4.53208Z"}),jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M57.8569 20.2934C58.0505 19.8234 58.5069 19.517 59.013 19.517H78.2241C78.9151 19.517 79.4753 20.0798 79.4753 20.774V40.049C79.4753 40.5572 79.1707 41.0155 78.7034 41.2102C78.236 41.405 77.6978 41.2977 77.3399 40.9385L58.1289 21.6635C57.7705 21.3041 57.6633 20.7633 57.8569 20.2934ZM62.0365 22.0311L76.9729 37.017V22.0311H62.0365Z"})]})};var Ds=({topItems:e=[],bottomItems:t=[],bottomContent:r,logo:o,showLogo:n=true,linkComponent:a="a",className:i="",mobileMenuId:s="app-mobile-menu",sidebarCollapseId:c="app-sidebar-collapse"})=>{let l=p=>p.length>0&&"items"in p[0],d=p=>l(p)?p:[{id:"default-section",items:p}],u=(p,f,g)=>jsxRuntime.jsxs("div",{className:"space-y-0.5",children:[p.title&&jsxRuntime.jsx("div",{className:"px-6 py-1 text-xs font-medium text-text-secondary uppercase tracking-wider",children:p.title}),jsxRuntime.jsx("div",{className:"space-y-0.5",children:p.items.map(b=>m(b))}),f<g-1&&jsxRuntime.jsx("div",{className:"border-b border-border-subtle mx-6 my-2"})]},p.id),m=(p,f=false)=>{if(p.children&&p.children.length>0){let x=`category-${p.id}`;return jsxRuntime.jsxs("div",{className:"group/category",children:[jsxRuntime.jsx("input",{type:"checkbox",id:x,className:"peer/category hidden",defaultChecked:p.isExpanded,"aria-hidden":"true"}),jsxRuntime.jsxs("label",{htmlFor:x,className:"flex items-center gap-3 px-6 py-1 text-text-primary hover:bg-background-hover hover:text-text-primary cursor-pointer transition-all duration-200",children:[p.icon&&jsxRuntime.jsx("span",{className:"flex-shrink-0 w-3.5 h-3.5 flex items-center justify-center transition-all duration-200",children:p.icon}),jsxRuntime.jsx("span",{className:"transition-all duration-200",children:p.label}),jsxRuntime.jsx("span",{className:"flex-1"}),jsxRuntime.jsx("svg",{className:"w-4 h-4 transform transition-transform duration-200 peer-checked/category:rotate-180 ml-auto",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntime.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 9l-7 7-7-7"})})]}),jsxRuntime.jsx("div",{className:"hidden peer-checked/category:block bg-background-subtle border-l-2 border-border-subtle ml-6",children:p.children.map(h=>m(h,true))})]},p.id)}let g={href:p.href||"#",className:`flex items-center gap-3 transition-all duration-200 hover:bg-background-hover ${f?"pl-8 pr-6 py-1 text-sm":"px-6 py-1"} ${p.isActive?`bg-action-brand/10 text-action-brand ${f?"":"border-l-2 border-action-brand"}`:"text-text-primary hover:text-text-primary"}`,"aria-current":p.isActive?"page":void 0},b=jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[p.icon&&!f&&jsxRuntime.jsx("span",{className:"flex-shrink-0 w-3.5 h-3.5 flex items-center justify-center transition-all duration-200",children:p.icon}),jsxRuntime.jsx("span",{className:"transition-all duration-200",children:p.label})]});return a==="a"?jsxRuntime.jsx("a",{...g,children:b},p.id):jsxRuntime.jsx(a,{...g,children:b},p.id)};return jsxRuntime.jsxs("div",{className:`flex flex-col h-full ${i}`,children:[jsxRuntime.jsxs("div",{className:"flex items-center justify-between h-[60px] px-6 border-b border-border-default",children:[n&&jsxRuntime.jsx("div",{className:"relative top-[-1px] transition-all duration-200",children:o||jsxRuntime.jsx(pa,{showWordmark:true,width:120})}),jsxRuntime.jsx("label",{htmlFor:c,className:"hidden md:flex items-center justify-center w-8 h-8 rounded hover:bg-background-hover cursor-pointer transition-all duration-200 relative top-[-1px]","aria-label":"Collapse sidebar",children:jsxRuntime.jsx(sr,{name:"Sidebar",size:"sm"})}),jsxRuntime.jsx("label",{htmlFor:s,className:"md:hidden flex items-center justify-center w-8 h-8 rounded hover:bg-background-hover cursor-pointer transition-colors","aria-label":"Close menu",children:jsxRuntime.jsx("svg",{className:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntime.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})})]}),jsxRuntime.jsxs("nav",{className:"flex-1 flex flex-col overflow-hidden",children:[e&&e.length>0&&jsxRuntime.jsx("div",{className:"flex-1 overflow-y-auto py-2 scrollbar-hide",children:d(e).map((p,f,g)=>u(p,f,g.length))}),t&&t.length>0&&jsxRuntime.jsx("div",{className:"flex-shrink-0 border-t bg-background-muted/30",children:jsxRuntime.jsx("div",{className:"mt-2 pb-2 space-y-0.5",children:t.map(p=>m(p))})}),r&&jsxRuntime.jsx("div",{className:"flex-shrink-0 border-t border-border-default",children:jsxRuntime.jsx("div",{children:r})})]})]})};function xn(e){return e.id??e.href??e.label}function Zd(e,t,r=[]){for(let o of e){if(o.href===t||o.id===t)return o.children?.length&&o.pushOnSelect!==false?[...r,xn(o)]:r;if(o.children?.length){let n=Zd(o.children,t,[...r,xn(o)]);if(n)return n}}return null}function yg(e,t){let r=[],o=e;for(let n of t){let a=o.find(i=>xn(i)===n);if(!a)break;r.push(a),o=a.children??[];}return r}function D1(e,t,r){let o=t.length>0?[...e,...t]:e,n=[{path:[],items:e,bottomItems:t.length>0?t:void 0}],a=yg(o,r),i=[];for(let s of a){if(!s.children?.length)break;i=[...i,xn(s)],n.push({path:i,parent:s,items:s.children});}return n}var M1=({href:e,...t})=>jsxRuntime.jsx("a",{href:e,...t}),E1=[];function L1(e,t){if(process.env.NODE_ENV==="production"||t.length===0)return;let r=new Map;for(let o of e)o.id&&r.set(o.id,"id"),o.href&&!r.has(o.href)&&r.set(o.href,"href");for(let o of t){let n=null;o.id&&r.has(o.id)?n=r.get(o.id)==="id"?`id "${o.id}"`:`id "${o.id}" (matches an items \`href\`)`:o.href&&r.has(o.href)&&(n=r.get(o.href)==="href"?`href "${o.href}"`:`href "${o.href}" (matches an items \`id\`)`),n&&console.warn(`[StackNav] L1 ${n} appears in both \`items\` and \`bottomItems\`. Stack tokens and value lookups will resolve to the \`items\` entry, making the bottomItems entry unreachable. L1 ids and hrefs must be unique across both arrays.`);}}function A1(e){if(!e)return {};let t={};return e.background!==void 0&&(t["--edges-stack-nav-background"]=e.background),e.activeBackground!==void 0&&(t["--edges-stack-nav-row-active-background"]=e.activeBackground),e.activeColor!==void 0&&(t["--edges-stack-nav-row-active-color"]=e.activeColor),e.hoverBackground!==void 0&&(t["--edges-stack-nav-row-hover-background"]=e.hoverBackground),e.borderColor!==void 0&&(t["--edges-stack-nav-border-color"]=e.borderColor),t}function Ms({items:e,bottomItems:t,value:r,defaultStack:o,stack:n,onStackChange:a,onSelect:i,linkComponent:s=M1,showLogo:c=false,logo:l,header:d,footer:u,mobileMenuId:m,sidebarCollapseId:p,rootLabel:f,sticky:g=true,width:b=260,ariaLabel:x="Navigation",theme:h,animated:C=true,style:y,className:S}){let N=t??E1,T=Be__namespace.useMemo(()=>N.length>0?[...e,...N]:e,[e,N]);Be__namespace.useEffect(()=>{L1(e,N);},[e,N]);let[E,R]=Be__namespace.useState(()=>n!==void 0?n:o!==void 0?o:r?Zd(T,r)??[]:[]),M=n??E,A=Be__namespace.useCallback(V=>{n===void 0&&R(V),a?.(V);},[n,a]),L=Be__namespace.useRef(false);Be__namespace.useEffect(()=>{if(n!==void 0||!L.current&&(L.current=true,o!==void 0)||!r)return;let V=Zd(T,r);R(K=>{let P=V??[];return V1(K,P)?K:P});},[r,T,n,o]);let w=Be__namespace.useMemo(()=>D1(e,N,M),[e,N,M]),k=Be__namespace.useCallback((V,K)=>{V.children?.length&&A([...K,xn(V)]);},[A]),O=Be__namespace.useCallback(()=>{A(M.slice(0,-1));},[M,A]),G=Be__namespace.useCallback((V,K)=>{let P=yg(T,M);if(i?.(K,P),!!K.children?.length&&K.pushOnSelect!==false){let F=w[w.length-1]?.path??[];k(K,F);}K.href||V.preventDefault();},[T,M,i,k,w]),B=Be__namespace.useCallback(V=>r?V.href===r||V.id===r:false,[r]),z=g?"sticky top-0 h-[100dvh]":"",X={...b!=null?{width:b}:{},...A1(h),...y};return jsxRuntime.jsxs("aside",{role:"navigation","aria-label":x,"data-edges-stack-nav":"",className:tailwindMerge.twMerge("edges-stack-nav flex flex-col flex-shrink-0 overflow-hidden",C&&"edges-stack-nav--animated",z,S),style:X,children:[c?jsxRuntime.jsxs("div",{className:"edges-stack-nav__logo",children:[jsxRuntime.jsx("div",{className:"relative top-[-1px]",children:l??jsxRuntime.jsx(pa,{showWordmark:true,width:120})}),p?jsxRuntime.jsx("label",{htmlFor:p,className:"hidden md:flex items-center justify-center w-8 h-8 rounded hover:bg-background-hover cursor-pointer transition-all duration-200 relative top-[-1px]","aria-label":"Collapse sidebar",children:jsxRuntime.jsx(sr,{name:"Sidebar",size:"sm"})}):null,m?jsxRuntime.jsx("label",{htmlFor:m,className:"md:hidden flex items-center justify-center w-8 h-8 rounded hover:bg-background-hover cursor-pointer transition-colors","aria-label":"Close menu",children:jsxRuntime.jsx("svg",{className:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntime.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})}):null]}):null,d?jsxRuntime.jsx("div",{className:"edges-stack-nav__header",children:d}):null,jsxRuntime.jsx("div",{className:"relative flex-1 overflow-hidden",children:w.map((V,K)=>{let P=V.path.length,D=K===w.length-1,F=K<w.length-1,I=P===0?"__root__":V.path.join("/");return jsxRuntime.jsx(I1,{pane:V,parentPath:V.path.slice(0,-1),depth:P,isTop:D,isAbove:F,rootLabel:f,LinkComponent:s,isActive:B,onSelect:G,onBack:O,animated:C},I)})}),u?jsxRuntime.jsx("div",{className:"edges-stack-nav__footer",children:u}):null]})}function I1({pane:e,depth:t,isTop:r,isAbove:o,rootLabel:n,LinkComponent:a,isActive:i,onSelect:s,onBack:c,animated:l}){let d=r?"edges-stack-nav__pane--top":o?"edges-stack-nav__pane--above":"edges-stack-nav__pane--below";return jsxRuntime.jsxs("nav",{"aria-label":e.parent?.label??n??"Navigation","aria-hidden":r?void 0:true,inert:r?void 0:true,className:tailwindMerge.twMerge("edges-stack-nav__pane absolute inset-0 flex flex-col gap-px overflow-y-auto px-2 py-3",!l&&"edges-stack-nav__pane--instant",d),children:[t>0&&e.parent?jsxRuntime.jsxs("button",{type:"button",className:"edges-stack-nav__back edges-stack-nav__row flex w-full items-center gap-2 rounded-sm border-0 bg-transparent px-3 py-2 mb-2 text-left text-sm font-semibold text-text-primary",onClick:c,"aria-label":`Back from ${e.parent.label}`,children:[jsxRuntime.jsx(B1,{}),jsxRuntime.jsx("span",{children:e.parent.label})]}):n?jsxRuntime.jsx("div",{className:"px-3 pb-1.5 text-[10px] font-semibold uppercase tracking-[0.08em] text-text-secondary",children:n}):null,e.items.map(u=>jsxRuntime.jsx(hg,{item:u,LinkComponent:a,isActive:i(u),onSelect:s},xn(u))),e.bottomItems&&e.bottomItems.length>0?jsxRuntime.jsx("div",{className:"edges-stack-nav__bottom-items mt-auto flex flex-col gap-px pt-3",children:e.bottomItems.map(u=>jsxRuntime.jsx(hg,{item:u,LinkComponent:a,isActive:i(u),onSelect:s},xn(u)))}):null]})}function hg({item:e,LinkComponent:t,isActive:r,onSelect:o}){if(e.divider)return jsxRuntime.jsx("div",{className:"edges-stack-nav__divider my-2",role:"separator"});if(e.groupLabel)return jsxRuntime.jsx("div",{className:"px-3 pt-6 pb-1.5 text-[10px] font-semibold uppercase tracking-[0.08em] text-text-secondary",children:e.label});let n=!!e.children?.length,a=tailwindMerge.twMerge("edges-stack-nav__row flex items-center justify-between gap-3 rounded-sm px-3 py-2 text-sm font-normal text-text-primary no-underline cursor-pointer text-left bg-transparent border-0 transition-colors",r&&"edges-stack-nav__row--active font-semibold"),i=jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsxs("span",{className:"flex min-w-0 items-center gap-2",children:[e.leading??e.icon?jsxRuntime.jsx("span",{className:"flex-shrink-0",children:e.leading??e.icon}):null,jsxRuntime.jsx("span",{className:"truncate",children:e.label})]}),jsxRuntime.jsxs("span",{className:"flex flex-shrink-0 items-center gap-2 text-text-secondary",children:[e.trailing,n?jsxRuntime.jsx(F1,{}):null]})]});return e.href?jsxRuntime.jsx(t,{href:e.href,"aria-label":e.ariaLabel,className:a,"aria-current":r?"page":void 0,onClick:s=>o(s,e),children:i}):jsxRuntime.jsx("button",{type:"button",className:a,"aria-label":e.ariaLabel,onClick:s=>{o(s,e);},children:i})}function F1(){return jsxRuntime.jsx("svg",{width:12,height:12,viewBox:"0 0 12 12",fill:"none","aria-hidden":"true",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round",children:jsxRuntime.jsx("path",{d:"M4.5 3 7.5 6 4.5 9"})})}function B1(){return jsxRuntime.jsx("svg",{width:14,height:14,viewBox:"0 0 14 14",fill:"none","aria-hidden":"true",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round",children:jsxRuntime.jsx("path",{d:"M8.5 3 4.5 7 8.5 11"})})}function V1(e,t){if(e===t)return true;if(e.length!==t.length)return false;for(let r=0;r<e.length;r+=1)if(e[r]!==t[r])return false;return true}var ti=({rightContent:e,centerContent:t,showMobileMenu:r=true,avatar:o,showColorModeSwitcher:n=false,toggleTheme:a,isDarkThemeEnabled:i=false,colorMode:s,actions:c,className:l="",mobileMenuId:d="app-mobile-menu"})=>{let u=()=>{switch(s||(i?"dark":"light")){case "system":return jsxRuntime.jsx(sr,{name:"Monitor",size:"sm"});case "light":return jsxRuntime.jsx(sr,{name:"Sun",size:"sm"});case "dark":return jsxRuntime.jsx(sr,{name:"Moon",size:"sm"})}},m=()=>{switch(s||(i?"dark":"light")){case "system":return "Switch to light mode";case "light":return "Switch to dark mode";case "dark":return "Switch to system mode";default:return "Toggle theme"}};return jsxRuntime.jsx("header",{className:`h-[60px] bg-background-surface border-b ${l}`,children:jsxRuntime.jsxs("div",{className:"relative flex h-full items-center",children:[jsxRuntime.jsx("div",{className:"flex items-center h-full flex-shrink-0",children:r&&jsxRuntime.jsx("label",{htmlFor:d,className:"md:hidden cursor-pointer","aria-label":"Open menu",children:jsxRuntime.jsx("div",{className:"flex h-full w-14 flex-col items-center justify-center border-r hover:bg-background-hover transition-colors",children:jsxRuntime.jsx(sr,{name:"List",size:"sm"})})})}),t&&jsxRuntime.jsx("div",{className:"flex-1 flex justify-end md:justify-center md:px-4 min-w-0",children:jsxRuntime.jsx("div",{className:"w-full md:max-w-4xl min-w-0",children:t})}),!t&&jsxRuntime.jsx("div",{className:"flex-1"}),jsxRuntime.jsxs("div",{className:"flex items-center gap-4 pr-4 flex-shrink-0 ml-4",children:[e,n&&a&&jsxRuntime.jsx("button",{type:"button",onClick:a,className:"flex items-center justify-center w-8 h-8 rounded hover:bg-background-hover transition-colors","aria-label":m(),children:u()}),c,o&&jsxRuntime.jsx("div",{className:"flex items-center",children:o})]})]})})};function Cg({sideNav:e,stackNav:t,topNav:r,children:o,contentPaddingX:n,contentPaddingY:a,showSidebarBorder:i=true,mainClassName:s,enableJsEnhancements:c=false}){let l="app-mobile-menu",d="app-sidebar-collapse";return Be.useEffect(()=>{if(!c)return;let u=document.getElementById(d),m=document.getElementById(l),p=document.querySelector("[data-app-shell]"),f=document.getElementById("app-sidebar");if(!u||!p||!f)return;let g=null,b=false;try{let M=localStorage.getItem("sidebar-collapsed");M!==null&&(u.checked=M==="true");}catch{}let x=()=>{try{localStorage.setItem("sidebar-collapsed",String(u.checked));}catch{}u.checked?b=true:(g&&(clearTimeout(g),g=null),p.removeAttribute("data-peek"),b=false);};u.addEventListener("change",x);let h=M=>{M.key==="Escape"&&(m&&(m.checked=false),p.removeAttribute("data-peek"));};document.addEventListener("keydown",h);let C=null;m&&(C=()=>{document.body.style.overflow=m.checked?"hidden":"";},m.addEventListener("change",C));let y=M=>{let L=M.target.closest("a");L&&L.href&&window.innerWidth<768&&m&&setTimeout(()=>{m.checked=false,document.body.style.overflow="";},100);};f.addEventListener("click",y);let S=16,N=200,T=()=>{g&&(clearTimeout(g),g=null),p.getAttribute("data-peek")!=="true"&&p.setAttribute("data-peek","true");},E=()=>{g&&clearTimeout(g),g=setTimeout(()=>{p.removeAttribute("data-peek"),g=null;},N);},R=M=>{if(window.innerWidth<768||!u.checked)return;let A=f.contains(M.target);if(b&&!A&&(b=false),b)return;M.clientX<=S||A?T():p.getAttribute("data-peek")==="true"&&E();};return document.addEventListener("mousemove",R),()=>{u.removeEventListener("change",x),document.removeEventListener("keydown",h),m&&C&&m.removeEventListener("change",C),f.removeEventListener("click",y),document.removeEventListener("mousemove",R),g&&clearTimeout(g);}},[c,l,d]),jsxRuntime.jsxs("div",{className:"min-h-[100dvh] bg-background text-text-primary relative","data-app-shell":"",children:[jsxRuntime.jsx("input",{type:"checkbox",id:d,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(ti,{...r,mobileMenuId:l,className:["sticky top-0 flex-shrink-0 z-30 md:hidden",r?.className].filter(Boolean).join(" ")}),jsxRuntime.jsxs("div",{className:"flex w-full h-[calc(100dvh-60px)] md:h-[100dvh] relative overflow-hidden",children:[jsxRuntime.jsx("input",{type:"checkbox",id:l,className:"sr-only peer/mobile","aria-hidden":"true"}),jsxRuntime.jsx("label",{htmlFor:l,className:"fixed inset-0 bg-background-modal z-[55] opacity-0 pointer-events-none peer-checked/mobile:opacity-100 peer-checked/mobile:pointer-events-auto transition-opacity md:hidden","aria-label":"Close menu"}),jsxRuntime.jsx("div",{"aria-hidden":"true","data-peek-zone":"",className:"hidden md:block fixed left-0 top-0 bottom-0 w-4 z-[70] pointer-events-none"}),jsxRuntime.jsx("label",{htmlFor:d,"data-expand-rail":"",className:"hidden fixed left-3 top-3 z-[75] items-center justify-center w-9 h-9 rounded-md bg-background-surface border border-border-default shadow-sm hover:bg-background-hover cursor-pointer transition-all duration-200","aria-label":"Expand sidebar",children:jsxRuntime.jsx(sr,{name:"Sidebar",size:"sm"})}),jsxRuntime.jsx("aside",{id:"app-sidebar","data-app-sidebar":"",className:["bg-background-surface","border-r border-border-default","transition-transform duration-300 ease-in-out md:transition-[transform,width] md:duration-300 md:ease-in-out","fixed md:relative","left-0 top-0 bottom-0","z-[60] md:z-10","w-full md:w-64","h-[100dvh] md:h-full","-translate-x-full","peer-checked/mobile:translate-x-0","md:translate-x-0",i?"":"!border-r-0",(t??e)?.className||""].filter(Boolean).join(" "),children:t?jsxRuntime.jsx(Ms,{...t,mobileMenuId:l,sidebarCollapseId:d,sticky:false,width:null,className:["h-full !border-r-0",t.className].filter(Boolean).join(" ")}):jsxRuntime.jsx(Ds,{...e,mobileMenuId:l,sidebarCollapseId:d,className:"h-full"})}),jsxRuntime.jsxs("div",{className:"flex-1 flex flex-col h-full overflow-hidden",children:[jsxRuntime.jsx("div",{className:"sticky top-0 flex-shrink-0 hidden md:block z-20","data-top-nav-wrapper":"",children:jsxRuntime.jsx(ti,{...r,className:r?.className})}),jsxRuntime.jsx("main",{id:"app-content",className:["flex-1 overflow-y-auto overflow-x-hidden bg-background-body",n,a,s||""].join(" "),role:"main",children:o})]})]}),jsxRuntime.jsx("style",{dangerouslySetInnerHTML:{__html:`
|
|
5
5
|
@media (min-width: 768px) {
|
|
6
6
|
/* Collapsed: hide the rail offscreen, surface the floating expand
|
|
7
7
|
button, and let the edge zone receive hover events. */
|
|
@@ -26,7 +26,7 @@ Valid keys: `+JSON.stringify(Object.keys(w),null," "));var L=F(V,D,z,Y,Z+"."+D,
|
|
|
26
26
|
z-index: 50;
|
|
27
27
|
}
|
|
28
28
|
}
|
|
29
|
-
`}})]})}var ws={prefix:String(Math.round(Math.random()*1e10)),current:0},Zf=Ie__namespace.default.createContext(ws),KS=Ie__namespace.default.createContext(false);var JS=!!(typeof window<"u"&&window.document&&window.document.createElement),Wd=new WeakMap;function jS(e=false){let t=Ie.useContext(Zf),r=Ie.useRef(null);if(r.current===null&&!e){var o,n;let a=(n=Ie__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=Wd.get(a);i==null?Wd.set(a,{id:t.current,state:a.memoizedState}):a.memoizedState!==i.state&&(t.current=i.id,Wd.delete(a));}r.current=++t.current;}return r.current}function qS(e){let t=Ie.useContext(Zf);t===ws&&!JS&&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=jS(!!e),o=t===ws&&process.env.NODE_ENV==="test"?"react-aria":`react-aria${t.prefix}`;return e||`${o}-${r}`}function XS(e){let t=Ie__namespace.default.useId(),[r]=Ie.useState(Ns()),o=r||process.env.NODE_ENV==="test"?"react-aria":`react-aria${ws.prefix}`;return e||`${o}-${t}`}typeof Ie__namespace.default.useId=="function"?XS:qS;function $S(){return false}function QS(){return true}function _S(e){return ()=>{}}function Ns(){return typeof Ie__namespace.default.useSyncExternalStore=="function"?Ie__namespace.default.useSyncExternalStore(_S,$S,QS):Ie.useContext(KS)}function $f(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function ks(e,t,r){$f(e,t),t.set(e,r);}var e1=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),t1=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function Ud(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 e1.has(r.script)}let t=e.split("-")[0];return t1.has(t)}var _f=Symbol.for("react-aria.i18n.locale");function eg(){let e=typeof window<"u"&&window[_f]||typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e]);}catch{e="en-US";}return {locale:e,direction:Ud(e)?"rtl":"ltr"}}var Yd=eg(),Xa=new Set;function Qf(){Yd=eg();for(let e of Xa)e(Yd);}function tg(){let e=Ns(),[t,r]=Ie.useState(Yd);return Ie.useEffect(()=>(Xa.size===0&&window.addEventListener("languagechange",Qf),Xa.add(r),()=>{Xa.delete(r),Xa.size===0&&window.removeEventListener("languagechange",Qf);}),[]),e?{locale:typeof window<"u"&&window[_f]||"en-US",direction:"ltr"}:t}var i1=Ie__namespace.default.createContext(null);function Kd(){let e=tg();return Ie.useContext(i1)||e}function Ts(e,t){return e-t*Math.floor(e/t)}var rg=1721426;function Ps(e,t,r,o){t=Ds(e,t);let n=t-1,a=-2;return r<=2?a=0:Rs(t)&&(a=-1),rg-1+365*n+Math.floor(n/4)-Math.floor(n/100)+Math.floor(n/400)+Math.floor((367*r-362)/12+a+o)}function Rs(e){return e%4===0&&(e%100!==0||e%400===0)}function Ds(e,t){return e==="BC"?1-t:t}function s1(e){let t="AD";return e<=0&&(t="BC",e=1-e),[t,e]}var l1={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]},vr=class{fromJulianDay(t){let r=t,o=r-rg,n=Math.floor(o/146097),a=Ts(o,146097),i=Math.floor(a/36524),s=Ts(a,36524),c=Math.floor(s/1461),l=Ts(s,1461),d=Math.floor(l/365),u=n*400+i*100+c*4+d+(i!==4&&d!==4?1:0),[m,p]=s1(u),f=r-Ps(m,p,1,1),g=2;r<Ps(m,p,3,1)?g=0:Rs(p)&&(g=1);let b=Math.floor(((f+g)*12+373)/367),x=r-Ps(m,p,b,1)+1;return new un(m,p,b,x)}toJulianDay(t){return Ps(t.era,t.year,t.month,t.day)}getDaysInMonth(t){return l1[Rs(t.year)?"leapyear":"standard"][t.month-1]}getMonthsInYear(t){return 12}getDaysInYear(t){return Rs(t.year)?366:365}getMaximumMonthsInYear(){return 12}getMaximumDaysInMonth(){return 31}getYearsInEra(t){return 9999}getEras(){return ["BC","AD"]}isInverseEra(t){return t.era==="BC"}balanceDate(t){t.year<=0&&(t.era=t.era==="BC"?"AD":"BC",t.year=1-t.year);}constructor(){this.identifier="gregory";}};function jd(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 qd(e,t){return e.calendar.toJulianDay(e)-t.calendar.toJulianDay(t)}function ng(e,t){return og(e)-og(t)}function og(e){return e.hour*36e5+e.minute*6e4+e.second*1e3+e.millisecond}var Jd=null;function pn(){return Jd==null&&(Jd=new Intl.DateTimeFormat().resolvedOptions().timeZone),Jd}function Eo(e){e=sr(e,new vr);let t=Ds(e.era,e.year);return sg(t,e.month,e.day,e.hour,e.minute,e.second,e.millisecond)}function sg(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 Zd(e,t){if(t==="UTC")return 0;if(e>0&&t===pn()&&true)return new Date(e).getTimezoneOffset()*-6e4;let{year:r,month:o,day:n,hour:a,minute:i,second:s}=lg(e,t);return sg(r,o,n,a,i,s,0)-Math.floor(e/1e3)*1e3}var ag=new Map;function lg(e,t){let r=ag.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"}),ag.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 ig=864e5;function d1(e,t,r,o){return (r===o?[r]:[r,o]).filter(a=>u1(e,t,a))}function u1(e,t,r){let o=lg(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 Dr(e,t,r="compatible"){let o=Gr(e);if(t==="UTC")return Eo(o);if(t===pn()&&r==="compatible"&&true){o=sr(o,new vr);let c=new Date,l=Ds(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=Eo(o),a=Zd(n-ig,t),i=Zd(n+ig,t),s=d1(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 $d(e,t,r="compatible"){return new Date(Dr(e,t,r))}function Cr(e,t){let r=Zd(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(),d=o.getUTCMilliseconds();return new sa(n<1?"BC":"AD",n<1?-n+1:n,a,i,t,r,s,c,l,d)}function Es(e,t){return Cr(e.getTime(),t)}function Gr(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 Za(e.calendar,e.era,e.year,e.month,e.day,r,o,n,a)}function sr(e,t){if(jd(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,ao(o),o}function Qd(e,t,r){if(e instanceof sa)return e.timeZone===t?e:_d(e,t);let o=Dr(e,t,r);return Cr(o,t)}function cg(e){let t=Eo(e)-e.offset;return new Date(t)}function _d(e,t){let r=Eo(e)-e.offset;return sr(Cr(r,t),e.calendar)}var $a=36e5;function _a(e,t){let r=e.copy(),o="hour"in r?g1(r,t):0;eu(r,t.years||0),r.calendar.balanceYearMonth&&r.calendar.balanceYearMonth(r,e),r.month+=t.months||0,tu(r),dg(r),r.day+=(t.weeks||0)*7,r.day+=t.days||0,r.day+=o,m1(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 eu(e,t){var r,o;!((r=(o=e.calendar).isInverseEra)===null||r===void 0)&&r.call(o,e)&&(t=-t),e.year+=t;}function tu(e){for(;e.month<1;)eu(e,-1),e.month+=e.calendar.getMonthsInYear(e);let t=0;for(;e.month>(t=e.calendar.getMonthsInYear(e));)e.month-=t,eu(e,1);}function m1(e){for(;e.day<1;)e.month--,tu(e),e.day+=e.calendar.getDaysInMonth(e);for(;e.day>e.calendar.getDaysInMonth(e);)e.day-=e.calendar.getDaysInMonth(e),e.month++,tu(e);}function dg(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 ao(e){e.calendar.constrainDate&&e.calendar.constrainDate(e),e.year=Math.max(1,Math.min(e.calendar.getYearsInEra(e),e.year)),dg(e);}function ug(e){let t={};for(let r in e)typeof e[r]=="number"&&(t[r]=-e[r]);return t}function ru(e,t){return _a(e,ug(t))}function Ls(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),ao(r),r}function Qa(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),pg(r),r}function f1(e){e.second+=Math.floor(e.millisecond/1e3),e.millisecond=Ms(e.millisecond,1e3),e.minute+=Math.floor(e.second/60),e.second=Ms(e.second,60),e.hour+=Math.floor(e.minute/60),e.minute=Ms(e.minute,60);let t=Math.floor(e.hour/24);return e.hour=Ms(e.hour,24),t}function pg(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 Ms(e,t){let r=e%t;return r<0&&(r+=t),r}function g1(e,t){return e.hour+=t.hours||0,e.minute+=t.minutes||0,e.second+=t.seconds||0,e.millisecond+=t.milliseconds||0,f1(e)}function As(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=io(c,r,0,s.length-1,o?.round),n.era=s[c],ao(n);break}case "year":var a,i;!((a=(i=n.calendar).isInverseEra)===null||a===void 0)&&a.call(i,n)&&(r=-r),n.year=io(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=io(e.month,r,1,e.calendar.getMonthsInYear(e),o?.round);break;case "day":n.day=io(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),ao(n),n}function ou(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=io(a,r,i,s,o?.round);break}case "minute":n.minute=io(e.minute,r,0,59,o?.round);break;case "second":n.second=io(e.second,r,0,59,o?.round);break;case "millisecond":n.millisecond=io(e.millisecond,r,0,999,o?.round);break;default:throw new Error("Unsupported field "+t)}return n}function io(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 nu(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=_a(Gr(e),{years:t.years,months:t.months,weeks:t.weeks,days:t.days});r=Dr(n,e.timeZone);}else r=Eo(e)-e.offset;r+=t.milliseconds||0,r+=(t.seconds||0)*1e3,r+=(t.minutes||0)*6e4,r+=(t.hours||0)*36e5;let o=Cr(r,e.timeZone);return sr(o,e.calendar)}function mg(e,t){return nu(e,ug(t))}function fg(e,t,r,o){switch(t){case "hour":{let n=0,a=23;if(o?.hourCycle===12){let f=e.hour>=12;n=f?12:0,a=f?23:11;}let i=Gr(e),s=sr(Qa(i,{hour:n}),new vr),c=[Dr(s,e.timeZone,"earlier"),Dr(s,e.timeZone,"later")].filter(f=>Cr(f,e.timeZone).day===s.day)[0],l=sr(Qa(i,{hour:a}),new vr),d=[Dr(l,e.timeZone,"earlier"),Dr(l,e.timeZone,"later")].filter(f=>Cr(f,e.timeZone).day===l.day).pop(),u=Eo(e)-e.offset,m=Math.floor(u/$a),p=u%$a;return u=io(m,r,Math.floor(c/$a),Math.floor(d/$a),o?.round)*$a+p,sr(Cr(u,e.timeZone),e.calendar)}case "minute":case "second":case "millisecond":return ou(e,t,r,o);case "era":case "year":case "month":case "day":{let n=As(Gr(e),t,r,o),a=Dr(n,e.timeZone);return sr(Cr(a,e.timeZone),e.calendar)}default:throw new Error("Unsupported field "+t)}}function gg(e,t,r){let o=Gr(e),n=Qa(Ls(o,t),t);if(n.compare(o)===0)return e;let a=Dr(n,e.timeZone,r);return sr(Cr(a,e.timeZone),e.calendar)}var b1=/^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})$/;var x1=/^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})(?:T(\d{2}))?(?::(\d{2}))?(?::(\d{2}))?(\.\d+)?(?:(?:([+-]\d{2})(?::?(\d{2}))?)|Z)$/;function ei(e){let t=e.match(b1);if(!t)throw x1.test(e)?new Error(`Invalid ISO 8601 date string: ${e}. Use parseAbsolute() instead.`):new Error("Invalid ISO 8601 date string: "+e);let r=new un(au(t[1],0,9999),au(t[2],1,12),1);return r.day=au(t[3],1,r.calendar.getDaysInMonth(r)),r}function au(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 bg(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 iu(e){let t=sr(e,new vr),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 su(e){return `${iu(e)}T${bg(e)}`}function y1(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 xg(e){return `${su(e)}${y1(e.offset)}[${e.timeZone}]`}function lu(e){let t=typeof e[0]=="object"?e.shift():new vr,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 v1=new WeakMap,un=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 _a(this,t)}subtract(t){return ru(this,t)}set(t){return Ls(this,t)}cycle(t,r,o){return As(this,t,r,o)}toDate(t){return $d(this,t)}toString(){return iu(this)}compare(t){return qd(this,t)}constructor(...t){ks(this,v1,{writable:true,value:void 0});let[r,o,n,a,i]=lu(t);this.calendar=r,this.era=o,this.year=n,this.month=a,this.day=i,ao(this);}};var C1=new WeakMap,Za=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 _a(this,t)}subtract(t){return ru(this,t)}set(t){return Ls(Qa(this,t),t)}cycle(t,r,o){switch(t){case "era":case "year":case "month":case "day":return As(this,t,r,o);default:return ou(this,t,r,o)}}toDate(t,r){return $d(this,t,r)}toString(){return su(this)}compare(t){let r=qd(this,t);return r===0?ng(this,Gr(t)):r}constructor(...t){ks(this,C1,{writable:true,value:void 0});let[r,o,n,a,i]=lu(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,ao(this);}},S1=new WeakMap,sa=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 nu(this,t)}subtract(t){return mg(this,t)}set(t,r){return gg(this,t,r)}cycle(t,r,o){return fg(this,t,r,o)}toDate(){return cg(this)}toString(){return xg(this)}toAbsoluteString(){return this.toDate().toISOString()}compare(t){return this.toDate().getTime()-Qd(t,this.timeZone).toDate().getTime()}constructor(...t){ks(this,S1,{writable:true,value:void 0});let[r,o,n,a,i]=lu(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,ao(this);}};var cu=new Map;function du(e){let{locale:t}=Kd(),r=t+(e?Object.entries(e).sort((n,a)=>n[0]<a[0]?-1:1).join():"");if(cu.has(r))return cu.get(r);let o=new Intl.Collator(t,e);return cu.set(r,o),o}function Is(e){let t=du({usage:"search",...e}),r=Ie.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=Ie.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=Ie.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 Ie.useMemo(()=>({startsWith:r,endsWith:o,contains:n}),[r,o,n])}var R1=({isEntering:e,isExiting:t,className:r})=>["max-w-[200px] group bg-action-default border border-action-default-hover text-[color:var(--color-action-default-text)] text-sm rounded-lg drop-shadow-lg will-change-transform px-3 py-1",e?"animate-in fade-in placement-bottom:slide-in-from-top-0.5 placement-top:slide-in-from-bottom-0.5 placement-left:slide-in-from-right-0.5 placement-right:slide-in-from-left-0.5 ease-out duration-200":"",t?"animate-out fade-out placement-bottom:slide-out-to-top-0.5 placement-top:slide-out-to-bottom-0.5 placement-left:slide-out-to-right-0.5 placement-right:slide-out-to-left-0.5 ease-in duration-150":"",r].filter(Boolean).join(" ");function jt({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)=>R1({...n,className:o})),children:[jsxRuntime.jsx(reactAriaComponents.OverlayArrow,{children:jsxRuntime.jsx("svg",{width:8,height:8,viewBox:"0 0 8 8",className:"fill-action-default stroke-action-default-hover group-placement-left:-rotate-90 group-placement-right:rotate-90 group-placement-bottom:rotate-180 forced-colors:fill-[Canvas] forced-colors:stroke-[ButtonBorder]",children:jsxRuntime.jsx("path",{d:"M0 0 L4 4 L8 0"})})}),t]})]})}function wr(){let[e,t]=Ie__namespace.default.useState(false),r=Ie__namespace.default.useCallback((n,a)=>{t(true),a?.(n);},[]),o=Ie__namespace.default.useCallback((n,a)=>{t(false),a?.(n);},[]);return {isFocused:e,handleFocus:r,handleBlur:o}}var mt=Ie__namespace.default.forwardRef(({children:e,className:t},r)=>jsxRuntime.jsx("div",{ref:r,className:tailwindMerge.twMerge("relative w-full",t),children:e}));mt.displayName="InputWrapper";function ti({onClick:e,size:t="md",className:r}){return jsxRuntime.jsx("button",{type:"button",onClick:o=>{o.preventDefault(),o.stopPropagation(),e();},className:tailwindMerge.twMerge("absolute right-2 top-[48%] -translate-y-1/2 transform text-text-secondary hover:text-text-primary cursor-pointer",r),"aria-label":"Clear input",onMouseDown:o=>{o.preventDefault(),o.stopPropagation();},children:jsxRuntime.jsx(B,{name:"X",size:t==="sm"?16:20})})}function Mo(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 yg(e){return e.isDisabled?"bg-background-muted":e.transparent?"bg-transparent":"bg-background-input"}function D1(e){return e==="sm"?"!text-base md:!text-[length:var(--control-text-sm)]":e==="md"?"!text-base md:!text-[length:var(--control-text-md)]":""}function Mt(e){let{isInvalid:t,isDisabled:r,isFocused:o,transparent:n,size:a="md",className:i}=e;return tailwindMerge.twMerge("w-full",Mo({isInvalid:t,isDisabled:r,isFocused:o}),yg({transparent:n,isDisabled:r}),Be[a].text,Be[a].height,Be[a].padding,D1(a),i)}function E1(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",yg({transparent:a,isDisabled:n}),Be[t].height,Mo({isFocused:r,isInvalid:o,isDisabled:n}),i)}function Ae({children:e,size:t="md",tooltip:r,description:o,descriptionPlacement:n="below",isRequired:a,className:i,htmlFor:s}){let c=r||o&&n==="tooltip",l=r||o,d=o&&n==="inline",u=jsxRuntime.jsxs("label",{htmlFor:s,className:tailwindMerge.twMerge(Be[t].text,"!text-text-label font-semibold flex items-center gap-1",i),children:[e,a&&jsxRuntime.jsx("span",{children:"*"}),c&&jsxRuntime.jsx("span",{className:"inline-flex items-center text-text-secondary",children:jsxRuntime.jsx(B,{name:"Info",size:t==="sm"?16:20})}),d&&jsxRuntime.jsx("span",{className:"text-text-secondary font-normal ml-1",children:o})]});return c&&l?jsxRuntime.jsx(jt,{content:l,children:u}):u}function Ce({size:e="md",className:t,children:r,...o}){return jsxRuntime.jsx("div",{...o,className:tailwindMerge.twMerge("leading-[2.25] text-text-secondary",Be[e].text,t),children:r})}function de({children:e,size:t="md",className:r}){return jsxRuntime.jsx("div",{role:"alert",className:tailwindMerge.twMerge(Be[t].text,"text-feedback-error-text",r),children:e})}function Bs({size:e="md",isInvalid:t,isDisabled:r,isFocused:o,transparent:n,className:a,...i}){return jsxRuntime.jsx("input",{className:Mt({isInvalid:t,isDisabled:r,isFocused:o,transparent:n,size:e,className:a}),...i})}function vg(e){let{children:t,...r}=e;return jsxRuntime.jsx("div",{...r,className:E1(e),children:typeof t=="function"?t(e):t})}function A1({children:e,...t}){return jsxRuntime.jsx(reactAriaComponents.ListBox,{...t,className:ve(t.className,"outline-0"),children:e})}var xu=Ie.createContext("md");function kg(){return Ie.useContext(xu)}function fu(e="md"){let t=e==="sm"?"!text-base md:!text-[length:var(--control-text-sm)]":e==="md"?"!text-base md:!text-[length:var(--control-text-md)]":"";return `flex-1 text-start data-[placeholder]:text-text-disabled overflow-hidden text-ellipsis whitespace-nowrap ${Be[e].text} ${t}`}function O1(){let e=Ie__namespace.default.useCallback((r,o)=>{o?.(r);},[]),t=Ie__namespace.default.useCallback((r,o)=>{o?.(r);},[]);return {handleFocus:e,handleBlur:t}}function fn({label:e,description:t,errorMessage:r,children:o,items:n,renderItem:a,renderSelectedValue:i,size:s="md",selectedKey:c,defaultSelectedKey:l,onSelectionChange:d,placeholder:u,showErrors:m=false,tooltip:p,isRequired:f,transparent:g,reserveErrorSpace:b=false,placement:x="bottom start",shouldFlip:v=true,menuWidth:C="match",descriptionPlacement:y="below",useMobileTray:S=true,...N}){let[T,M]=Ie.useState(null),[P,E]=Ie.useState(null),[I,A]=Ie.useState(false),w=c??T??l,{handleFocus:k,handleBlur:H}=O1(),{isMobile:G}=Gt(),z=S&&G,Y=Ie__namespace.default.useMemo(()=>!i||!w||!n?null:Array.from(n).find(F=>F.id===w)??null,[i,w,n]),Z=D=>{d&&D!==null&&d(D),d||M(D);},V=Ie.useRef(null),O=Ie.useRef(null),R=()=>{z&&A(!I);};return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(reactAriaComponents.Select,{...N,selectedKey:w,defaultSelectedKey:l,onSelectionChange:Z,placeholder:u,className:ve(N.className,"group flex w-full flex-col"),ref:V,onOpenChange:D=>{z||(D&&O.current?E(O.current.offsetWidth):D||V.current?.blur());},children:({isDisabled:D,isInvalid:F,isOpen:L})=>jsxRuntime.jsxs("div",{className:"flex flex-col",children:[e&&jsxRuntime.jsx(Ae,{size:s,tooltip:p,description:y==="tooltip"||y==="inline"?t:void 0,descriptionPlacement:y,isRequired:f,children:e}),jsxRuntime.jsx(mt,{children:jsxRuntime.jsx("div",{ref:O,children:jsxRuntime.jsxs(_,{variant:"unstyled",className:tailwindMerge.twMerge(Mt({isInvalid:F||m&&!!r,isDisabled:D,isFocused:z?I:L,transparent:g,size:s}),"flex items-center text-start gap-4 cursor-pointer pl-[var(--control-padding-sm)]"),onFocus:h=>k(h,N.onFocus),onBlur:h=>H(h,N.onBlur),onPress:z?R:void 0,"data-open":z?I:L,children:[i&&Y?jsxRuntime.jsx("div",{className:fu(s),children:i(Y)}):z&&w?jsxRuntime.jsx("div",{className:fu(s),children:n?Array.from(n).find(U=>U.id===w)?.label:String(w)}):jsxRuntime.jsx(reactAriaComponents.SelectValue,{className:fu(s)}),jsxRuntime.jsx(B,{name:"CaretDown","aria-hidden":true,className:tailwindMerge.twMerge("h-4 w-4 text-text-primary group-disabled:text-text-disabled forced-colors:text-[ButtonText] transition-transform",(z?I:L)&&"rotate-180")})]})})}),b?jsxRuntime.jsx("div",{className:"mt-1 min-h-[20px]",children:m?jsxRuntime.jsx(de,{size:s,className:"text-feedback-error-text",children:typeof r=="function"&&N.validationResult?r(N.validationResult):typeof r=="string"?r:null}):t&&y==="below"?jsxRuntime.jsx(Ce,{size:s,children:t}):null}):jsxRuntime.jsx(jsxRuntime.Fragment,{children:m?jsxRuntime.jsx(de,{size:s,className:"mt-1 text-feedback-error-text",children:typeof r=="function"&&N.validationResult?r(N.validationResult):typeof r=="string"?r:null}):t&&y==="below"?jsxRuntime.jsx(Ce,{size:s,className:"mt-1",children:t}):null}),z?null:jsxRuntime.jsx(rt,{className:"bg-background-input shadow-xl border border-border-input/20 backdrop-blur-sm rounded-[var(--control-border-radius)]",style:{width:C==="match"&&P?`${P}px`:void 0,minWidth:C==="auto"&&P?`${P}px`:void 0,maxWidth:C==="auto"?"min(600px, 90vw)":void 0},placement:x,shouldFlip:v,children:jsxRuntime.jsx(xu.Provider,{value:"md",children:jsxRuntime.jsx(reactAriaComponents.ListBox,{items:n,className:"w-full max-h-[300px] overflow-auto bg-background-input p-0 outline-0",children:a&&n?h=>jsxRuntime.jsx(qt,{id:h.id,textValue:h.label,children:jsxRuntime.jsx("span",{className:"overflow-hidden text-ellipsis whitespace-nowrap min-w-0 flex-1",children:a(h)})},h.id):o})})})]})}),z&&jsxRuntime.jsx(ot,{isOpen:I,onClose:()=>A(false),title:e??"Select an option",contentPadding:false,children:jsxRuntime.jsx(xu.Provider,{value:"md",children:jsxRuntime.jsx(reactAriaComponents.ListBox,{items:n,className:"w-full bg-background-surface p-0 outline-0 [&_[role=option]]:border-b [&_[role=option]]:border-border-default [&_[role=option]:last-child]:border-0 [&_[role=option]]:!px-6 [&_[role=option]]:!py-4 [&_[role=option]]:rounded-none",selectionMode:"single",selectedKeys:w!=null?[w]:[],onSelectionChange:D=>{let F=Array.from(D)[0];F!=null&&(Z(F),A(false));},children:a&&n?D=>jsxRuntime.jsx(qt,{id:D.id,textValue:D.label,children:jsxRuntime.jsx("span",{className:"overflow-hidden text-ellipsis whitespace-nowrap min-w-0 flex-1",children:a(D)})},D.id):o})})})]})}function qt({size:e,className:t,...r}){let o=kg(),n=e??o;return jsxRuntime.jsx(reactAriaComponents.ListBoxItem,{...r,className:tailwindMerge.twMerge("flex cursor-default items-center gap-2 rounded-sm px-3 outline-none text-text-primary data-[focused]:bg-background-hover data-[focus-visible]:ring-2 data-[focus-visible]:ring-action-default data-[focus-visible]:ring-inset data-[selected]:bg-background-selected data-[selected]:font-medium overflow-hidden",Be[n].paddingY,Be[n].text,t)})}var Z1=[],$1={sm:"h-4 w-4",md:"h-5 w-5",lg:"h-6 w-6",xl:"h-7 w-7"},Q1={sm:"pl-8",md:"pl-10",lg:"pl-11",xl:"pl-13"},Pg={sm:"py-1",md:"py-2",lg:"py-3",xl:"py-4"},yu=(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 _1(e,t,r){try{let o=e.url.replace("{q}",t),n=new URLSearchParams;e.extraParams&&Object.entries(e.extraParams).forEach(([c,l])=>{n.append(c,l.toString());});let a=`${o}${n.toString()?"?"+n.toString():""}`,i=await fetch(a,{method:"GET",headers:e.headers,signal:r});if(!i.ok)throw new Error(`HTTP error! status: ${i.status}`);let s=await i.json();return {items:e.transformResponse(s)}}catch(o){if(o instanceof Error&&o.name==="AbortError")return {items:[]};console.error("Error in REST request:",o);let n=o instanceof Error?o.message:"Unknown error occurred";return {items:[],error:n}}}async function e2(e,t,r){try{let o=e.graphqlQuery.replace(`$${e.variableKey||"filter"}`,`"${t}"`),n=await fetch(e.url,{method:"POST",headers:{"Content-Type":"application/json",...e.headers},body:JSON.stringify({query:o}),signal:r});if(!n.ok)throw new Error(`HTTP error! status: ${n.status}`);let a=await n.json();if(a.errors)throw new Error(a.errors[0]?.message||"GraphQL error occurred");return e.responsePath&&(a=e.responsePath.split(".").reduce((i,s)=>i?.[s],a)),{items:e.transformResponse(a)}}catch(o){if(o instanceof Error&&o.name==="AbortError")return {items:[]};console.error("Error in GraphQL request:",o);let n=o instanceof Error?o.message:"Unknown error occurred";return {items:[],error:n}}}function Os({label:e,staticItems:t=Z1,sections:r,selectedKey:o,defaultSelectedKey:n,onSelectionChange:a,requestConfig:i,defaultFilter:s,placeholder:c,errorMessage:l,description:d,size:u="md",tooltip:m,isRequired:p,isDisabled:f,isInvalid:g,validationResult:b,showErrors:x=true,renderItem:v,renderLeftIcon:C,renderSection:y,autoFocus:S=false,reserveErrorSpace:N=false,hideChevron:T=false,useMobileTray:M=true,className:P}){let E=Ie__namespace.default.useRef(null),I=Ie__namespace.default.useRef(null),[A,w]=Ie__namespace.default.useState(),[k,H]=Ie.useState(()=>yu(o||n,t,r)),[G,z]=Ie.useState(false),[Y,Z]=Ie.useState(false),V=wo(k),{contains:O}=Is({sensitivity:"base"}),[R,D]=Ie.useState(),{isMobile:F}=Gt(),L=M&&F,h=Be[u].text,W=reactStately.useAsyncList({async load({signal:oe,filterText:ae=""}){if(!i)return {items:[]};if(!i.url||i.shouldLoad&&!i.shouldLoad(ae))return {items:[]};try{let pe;return i.requestType==="GraphQL"?pe=await e2(i,ae,oe):pe=await _1(i,ae,oe),D(pe.error),{items:pe.items}}catch(pe){return pe instanceof Error&&pe.name==="AbortError"?{items:[]}:(console.error("Error loading items:",pe),D(pe instanceof Error?pe.message:"Unknown error occurred"),{items:[]})}},initialFilterText:""}),U=i&&V!==""?W:null,K=false,te=Ie.useRef("");Ie.useEffect(()=>{S&&z(true);},[S]),Ie.useEffect(()=>{let oe=yu(o,t,r);oe!==k&&H(oe);},[o,t,r]),Ie.useEffect(()=>{let oe=()=>{E.current&&w(E.current.offsetWidth);};return oe(),window.addEventListener("resize",oe),()=>window.removeEventListener("resize",oe)},[]),Ie.useEffect(()=>{V===""?te.current="":U&&V!==te.current&&(te.current=V,U.setFilterText(V));},[V,U]),K=es(!!U?.isLoading,300);let ue=Ie__namespace.default.useMemo(()=>{if(!L||!k)return U?U.items:t;let oe=U?U.items:t,ae=s??(i?()=>true:O);return oe.filter(pe=>ae(pe.name,k))},[L,k,U,t,s,O]),j=oe=>{let ae=yu(oe,t,r);H(ae),a&&a(oe);},ne=oe=>{H(oe);},Se=()=>{L&&Z(true);};return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(reactAriaComponents.ComboBox,{onSelectionChange:j,selectedKey:o||void 0,defaultSelectedKey:n||void 0,items:U?U.items:r?r.flatMap(oe=>oe.items):t,className:ve(P,"group flex flex-col w-full"),menuTrigger:L?"manual":i?"input":"focus",allowsEmptyCollection:!!i,isDisabled:f,isInvalid:g||!!l,inputValue:k,onInputChange:ne,autoFocus:S&&!L,defaultFilter:s??(i?()=>true:O),"aria-label":e||c||"Autocomplete",children:oe=>jsxRuntime.jsxs("div",{className:"flex flex-col",children:[e&&jsxRuntime.jsx(Ae,{size:u,tooltip:m,isRequired:p,children:e}),jsxRuntime.jsxs(mt,{ref:E,children:[C?jsxRuntime.jsx("div",{className:"pointer-events-none absolute left-3 top-[45%] -translate-y-1/2 z-10",children:C(K)}):jsxRuntime.jsx("div",{className:"pointer-events-none absolute left-3 top-1/2 -translate-y-1/2 z-10 flex items-center",children:K?jsxRuntime.jsx(no,{size:16,color:"text-text-secondary"}):jsxRuntime.jsx(B,{name:"MagnifyingGlass",className:`${$1[u]} text-text-secondary`})}),jsxRuntime.jsx(reactAriaComponents.Input,{className:Mt({isInvalid:g||!!l,isDisabled:f,isFocused:G||(L?Y:oe.isOpen),size:u,className:tailwindMerge.twMerge(Q1[u],k&&!f||!T&&!k?"pr-10":"pr-3",L&&"cursor-pointer",P)}),placeholder:c,disabled:f,onFocus:ae=>{z(true),L&&(ae.currentTarget.blur(),Se());},onBlur:()=>{z(false);},onClick:L?Se:void 0,readOnly:L,"aria-label":e||c||"Autocomplete"}),k&&!f&&jsxRuntime.jsx(ti,{onClick:()=>{H(""),a?.(null);},size:u}),!T&&!k&&jsxRuntime.jsx(reactAriaComponents.Button,{className:"absolute right-3 top-[46%] -translate-y-1/2 transform text-text-secondary hover:text-text-primary","aria-label":"Toggle menu",isDisabled:f,children:({isPressed:ae})=>jsxRuntime.jsx(B,{name:ae?"CaretUp":"CaretDown",className:"h-4 w-4"})})]}),N?jsxRuntime.jsx("div",{className:"mt-1 min-h-[20px]",children:x&&R?jsxRuntime.jsx(de,{size:u,className:"text-feedback-error-text",children:R}):x&&typeof l=="string"?jsxRuntime.jsx(de,{size:u,className:"text-feedback-error-text",children:l}):x&&typeof l=="function"&&b?jsxRuntime.jsx(de,{size:u,className:"text-feedback-error-text",children:l(b)}):d?jsxRuntime.jsx(Ce,{size:u,children:d}):null}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[d&&jsxRuntime.jsx(Ce,{size:u,className:"mt-1",children:d}),x&&R&&jsxRuntime.jsx(de,{size:u,className:"text-feedback-error-text mt-1",children:R}),x&&typeof l=="string"&&jsxRuntime.jsx(de,{size:u,className:"text-feedback-error-text mt-1",children:l}),x&&typeof l=="function"&&b&&jsxRuntime.jsx(de,{size:u,className:"text-feedback-error-text mt-1",children:l(b)})]}),!L&&jsxRuntime.jsx(rt,{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:A?`${A}px`:void 0,zIndex:9999},children:jsxRuntime.jsx(reactAriaComponents.ListBox,{"aria-label":e||c||"Suggestions",className:`max-h-[300px] overflow-auto bg-background-input outline-none ${h}`,children:r?r.map(ae=>{let pe=ae.items.map(be=>jsxRuntime.jsx(qt,{id:be.id,textValue:be.name,size:u,className:`flex cursor-default items-center gap-2 px-3 ${Pg[u]} text-text-primary outline-none data-[focused]:bg-background-hover data-[selected]:bg-background-selected data-[selected]:font-medium data-[focus-visible]:ring-0`,children:v?v(be):be.name},be.id));if(y){let be=y(ae,pe);return Ie__namespace.default.isValidElement(be)&&be.type===reactAriaComponents.ListBoxSection?be:jsxRuntime.jsx(reactAriaComponents.ListBoxSection,{children:be},ae.name)}return jsxRuntime.jsxs(reactAriaComponents.ListBoxSection,{children:[jsxRuntime.jsx(reactAriaComponents.Header,{className:"px-3 py-1 text-sm font-bold text-text-secondary",children:ae.name}),pe]},ae.name)}):ae=>jsxRuntime.jsx(qt,{id:ae.id,textValue:ae.name,size:u,className:`flex cursor-default items-center gap-2 px-3 ${Pg[u]} text-text-primary outline-none data-[focused]:bg-background-hover data-[selected]:bg-background-selected data-[selected]:font-medium data-[focus-visible]:ring-0`,children:v?v(ae):ae.name},ae.id)})})]})}),L&&jsxRuntime.jsx(ot,{isOpen:Y,onClose:()=>Z(false),title:e??c??"Search",contentPadding:false,height:"80vh",children:jsxRuntime.jsxs("div",{className:"flex flex-col h-full",children:[jsxRuntime.jsx("div",{className:"p-4 border-b border-border-default",children:jsxRuntime.jsxs(mt,{children:[jsxRuntime.jsx("div",{className:"pointer-events-none absolute left-3 top-[45%] -translate-y-1/2 z-10 flex items-center",children:K?jsxRuntime.jsx(no,{size:16,color:"text-text-secondary"}):jsxRuntime.jsx(B,{name:"MagnifyingGlass",className:"h-4 w-4 text-text-secondary"})}),jsxRuntime.jsx("input",{ref:I,type:"text",value:k,onChange:oe=>ne(oe.target.value),placeholder:c,autoFocus:true,className:Mt({isInvalid:false,isDisabled:false,isFocused:true,size:"md",className:"pl-10 pr-10"})}),k&&jsxRuntime.jsx(ti,{onClick:()=>{H(""),a?.(null);},size:"md"})]})}),jsxRuntime.jsx("div",{className:"flex-1 overflow-auto",children:jsxRuntime.jsx(reactAriaComponents.ListBox,{"aria-label":e||c||"Suggestions",items:ue,selectedKeys:o?[o]:[],selectionMode:"single",onSelectionChange:oe=>{let ae=Array.from(oe)[0];ae&&(j(ae),Z(false));},className:"bg-background-input outline-none",children:oe=>jsxRuntime.jsx(qt,{id:oe.id,textValue:oe.name,size:"md",className:"flex cursor-default items-center gap-2 px-4 py-3 text-text-primary outline-none data-[focused]:bg-background-hover data-[selected]:bg-background-selected data-[selected]:font-medium data-[focus-visible]:ring-0",children:v?v(oe):oe.name},oe.id)})})]})})]})}function so({src:e,alt:t,firstName:r,lastName:o,fullName:n,onClick:a,size:i="md",shape:s="circle",variant:c="user",className:l,status:d,bordered:u=false,piiEntity:m}){let[p,f]=Ie.useState(false),g=Ie.useCallback(()=>f(true),[]);Ie.useEffect(()=>{f(false);},[e]);let b={xs:"h-6 w-6 text-xs",sm:"h-8 w-8 text-sm",md:"h-10 w-10 text-base",lg:"h-12 w-12 text-lg",xl:"h-16 w-16 text-xl"},x={xs:"h-1.5 w-1.5",sm:"h-2 w-2",md:"h-2.5 w-2.5",lg:"h-3 w-3",xl:"h-4 w-4"},v={xs:"bottom-0 right-0",sm:"bottom-0 right-0",md:"bottom-0 right-0",lg:"bottom-0.5 right-0.5",xl:"bottom-1 right-1"},C={online:"bg-feedback-success-background border-feedback-success-border",offline:"bg-text-secondary border-border-muted",away:"bg-feedback-warning-background border-feedback-warning-border",busy:"bg-feedback-error-background border-feedback-error-border"},y={user:"bg-feedback-info-background text-feedback-info-text",team:"bg-feedback-info-background text-feedback-info-text",organization:"bg-feedback-success-background text-feedback-success-text"},S=s==="circle"?"rounded-full":"rounded-md",N=tailwindMerge.twMerge("relative inline-flex items-center justify-center overflow-hidden transition-opacity outline-none",b[i],S,a&&"cursor-pointer hover:opacity-80",u&&"ring-2 ring-background-surface",l),M=(()=>{if(r||o){let A=r?.[0]||"",w=o?.[0]||"";return (A+w).toUpperCase()}if(n){let A=n.split(" "),w=A[0]?.[0]||"",k=A[A.length-1]?.[0]||"";return w===k?w.toUpperCase():(w+k).toUpperCase()}return ""})(),P=()=>{let A={xs:14,sm:16,md:20,lg:24,xl:32}[i];switch(c){case "team":return jsxRuntime.jsx(lucideReact.Users,{size:A});case "organization":return jsxRuntime.jsx(lucideReact.Building2,{size:A});default:return jsxRuntime.jsx(lucideReact.User,{size:A})}},E=A=>{if(m)return c==="organization"?A?"organization-logo":"initials":A?"avatar":"initials"},I=()=>e&&!p?jsxRuntime.jsx("img",{src:e,alt:t||n||"Avatar",className:"h-full w-full object-cover",onError:g,"data-pii-type":E(true),"data-pii-entity":m}):M?jsxRuntime.jsx("span",{className:"font-semibold","data-pii-type":E(false),"data-pii-entity":m,children:M}):P();return jsxRuntime.jsxs("div",{className:"relative inline-block",children:[jsxRuntime.jsx("div",{"data-avatar":true,className:tailwindMerge.twMerge(N,!e||p?y[c]:""),onClick:a,role:a?"button":void 0,tabIndex:a?0:void 0,children:I()}),d&&jsxRuntime.jsx("span",{className:tailwindMerge.twMerge("absolute border-2 border-background-surface",S,x[i],v[i],C[d]),"aria-label":`Status: ${d}`})]})}var l2={default:"bg-feedback-info-background text-feedback-info-text",success:"bg-feedback-success-background text-feedback-success-text",error:"bg-feedback-error-background text-feedback-error-text",warning:"bg-feedback-warning-background text-feedback-warning-text",info:"bg-feedback-info-background text-feedback-info-text",primary:"bg-action-primary/10 text-action-primary border border-action-primary/20",brand:"bg-action-primary/10 text-action-primary border border-action-primary/20",secondary:"bg-action-secondary text-[color:var(--color-action-secondary-text)] border border-border-muted",neutral:"bg-background-muted text-text-secondary",charging:"bg-state-charging text-state-charging-text",discharging:"bg-state-discharging text-state-discharging-text",heat:"bg-state-heat text-state-heat-text",cool:"bg-state-cool text-state-cool-text",eco:"bg-state-eco text-state-eco-text",auto:"bg-state-auto text-state-auto-text",on:"bg-state-on text-state-on-text",off:"bg-state-off text-state-off-text",idle:"bg-state-idle text-state-idle-text",unknown:"bg-state-unknown text-state-unknown-text",connected:"bg-feedback-success-background text-feedback-success-text",disconnected:"bg-feedback-error-background text-feedback-error-text",importing:"bg-state-importing text-state-importing-text",exporting:"bg-state-exporting text-state-exporting-text"},c2={xs:"px-1.5 py-0.5 text-xs",sm:"px-2.5 py-1.5 text-xs",md:"px-3.5 py-2 text-sm",lg:"px-4 py-2.5 text-base"},d2={pill:"rounded-full",rounded:"rounded-lg",square:"rounded-sm"},u2={xs:"w-1 h-1",sm:"w-1.5 h-1.5",md:"w-2 h-2",lg:"w-2.5 h-2.5"};function et({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",u2[r],i&&"animate-pulse"),"aria-hidden":"true"});return jsxRuntime.jsxs("span",{className:tailwindMerge.twMerge("inline-flex items-center gap-1.5 font-medium",c2[r],d2[o],l2[t],s),children:[n&&a==="left"&&c,e,n&&a==="right"&&c]})}var $e=({href:e,children:t,className:r="",external:o=false,title:n,variant:a="secondary",onClick:i,asButton:s=false,onPress:c,showArrow:l=false,alwaysUnderlined:d=false,LinkComponent:u,"data-pii-type":m,"data-pii-entity":p})=>{let f={...m&&{"data-pii-type":m},...p&&{"data-pii-entity":p}},g=o?{target:"_blank",rel:"noopener noreferrer"}:{},y=`${`${d?"underline decoration-1 underline-offset-4 decoration-current":"hover:underline hover:decoration-1 hover:underline-offset-4 hover:decoration-current"} cursor-pointer`} ${{primary:"text-action-primary hover:text-action-primary-hover visited:text-action-primary",secondary:"text-text-link-default hover:text-text-link-hover visited:text-text-link-default",muted:"text-text-secondary hover:text-text-secondary visited:text-text-secondary",unstyled:""}[a==="brand"?"primary":a==="default"?"secondary":a]} ${r}`,S=jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[t,l&&jsxRuntime.jsxs("span",{children:["\xA0","\u2192"]})]});return s?jsxRuntime.jsx("button",{type:"button",className:y,onClick:c,title:n,...f,children:S}):u&&e?jsxRuntime.jsx(u,{href:e,className:y,title:n,onClick:i,...g,...f,children:S}):jsxRuntime.jsx("a",{href:e||"#",className:y,...g,...f,title:n,onClick:i,children:S})};var C2={info:{subtle:{container:"bg-feedback-info-background border-l-4 border-l-feedback-info-border",iconColor:"text-feedback-info-border",titleColor:"text-text-primary",bodyColor:"text-text-primary"},bold:{container:"bg-feedback-info-border border-feedback-info-border",iconColor:"text-text-inverse",titleColor:"text-text-inverse",bodyColor:"text-text-inverse/90"},icon:lucideReact.Info},success:{subtle:{container:"bg-feedback-success-background border-l-4 border-l-feedback-success-border",iconColor:"text-feedback-success-border",titleColor:"text-text-primary",bodyColor:"text-text-primary"},bold:{container:"bg-feedback-success-border border-feedback-success-border",iconColor:"text-text-inverse",titleColor:"text-text-inverse",bodyColor:"text-text-inverse/90"},icon:lucideReact.CheckCircle},warning:{subtle:{container:"bg-feedback-warning-background border-l-4 border-l-feedback-warning-border",iconColor:"text-feedback-warning-border",titleColor:"text-text-primary",bodyColor:"text-text-primary"},bold:{container:"bg-feedback-warning-border border-feedback-warning-border",iconColor:"text-text-inverse",titleColor:"text-text-inverse",bodyColor:"text-text-inverse/90"},icon:lucideReact.AlertCircle},error:{subtle:{container:"bg-feedback-error-background border-l-4 border-l-feedback-error-border",iconColor:"text-feedback-error-border",titleColor:"text-text-primary",bodyColor:"text-text-primary"},bold:{container:"bg-feedback-error-border border-feedback-error-border",iconColor:"text-text-inverse",titleColor:"text-text-inverse",bodyColor:"text-text-inverse/90"},icon:lucideReact.XCircle},discovery:{subtle:{container:"bg-background-muted border-l-4 border-l-action-brand",iconColor:"text-action-brand",titleColor:"text-text-primary",bodyColor:"text-text-primary"},bold:{container:"bg-action-brand border-action-brand",iconColor:"text-text-inverse",titleColor:"text-text-inverse",bodyColor:"text-text-inverse/90"},icon:lucideReact.Lightbulb}};function Ws({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:d,testId:u}){let m=C2[e],p=m[t],f=m.icon,g=!!(i||s),b=!!(r||o);return jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("flex gap-3 rounded-sm border p-4",p.container,d),role:"region","aria-live":"polite","data-testid":u,children:[!l&&jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("flex-shrink-0",p.iconColor),"aria-hidden":"true",children:c||jsxRuntime.jsx(f,{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:Yt(ct("headingSm"),p.titleColor),children:r}),o&&jsxRuntime.jsx("div",{className:Yt(ct("bodySm"),r?"mt-1":"",p.bodyColor),children:o})]}),g&&jsxRuntime.jsxs("div",{className:"flex flex-wrap items-center gap-3",children:[i&&(i.asLink?jsxRuntime.jsx($e,{asButton:true,onPress:i.onPress,variant:t==="bold"?"unstyled":"default",className:t==="bold"?"text-text-inverse hover:text-text-inverse/80":"",children:i.label}):jsxRuntime.jsx(_,{size:"sm",variant:"primary",onPress:i.onPress,className:t==="bold"?"bg-background-surface text-text-primary hover:bg-background-surface/90":"",children:i.label})),s&&(s.asLink?jsxRuntime.jsx($e,{asButton:true,onPress:s.onPress,variant:t==="bold"?"unstyled":"default",className:t==="bold"?"text-text-inverse hover:text-text-inverse/80":"",children:s.label}):jsxRuntime.jsx(_,{size:"sm",variant:"secondary",onPress:s.onPress,className:t==="bold"?"border-text-inverse/30 text-text-inverse hover:bg-text-inverse/10":"",children:s.label}))]})]}),n&&jsxRuntime.jsx("button",{type:"button",onClick:a,className:tailwindMerge.twMerge("flex h-8 w-8 flex-shrink-0 items-center justify-center self-start rounded-md transition-colors hover:bg-background-modal/10",p.iconColor,Ke()),"aria-label":"Dismiss banner",children:jsxRuntime.jsx(lucideReact.X,{className:"h-4 w-4"})})]})}function Mg({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(Ws,{...o,className:a})})})}function Lo({value:e,children:t,className:r,size:o="sm",iconPosition:n="right"}){let[a,i]=Ie.useState(false),l=jsxRuntime.jsx(_,{variant:"icon",size:o,onPress:()=>{let u=e||(typeof t=="string"?t:"");navigator.clipboard.writeText(u),i(true),setTimeout(()=>{i(false);},2e3);},className:"!px-2 relative",style:{top:"0.5px"},children:jsxRuntime.jsx(B,{name:"Copy",size:o==="sm"?14:16})}),d=a?jsxRuntime.jsx(jt,{content:"Copied!",children:l}):l;return jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("inline-flex items-center gap-0.5",r),children:[n==="left"&&d,t,n==="right"&&d]})}function Gs(e){let{children:t,maxWidth:r=600,className:o,...n}=e,{ref:a,width:i}=$n(),[s,c]=Ie__namespace.default.useState(false),[l,d]=Ie__namespace.default.useState(false),u=Ie__namespace.default.useRef(false),m=Ie__namespace.default.useMemo(()=>t&&!e.items&&typeof t!="function"?Ie__namespace.default.Children.toArray(t):null,[t,e.items]);if(Ie__namespace.default.useEffect(()=>{m&&m.length>=4&&i>0&&!u.current?(u.current=true,c(i>r),d(true)):(!m||m&&m.length<4)&&d(true);let p=setTimeout(()=>{l||d(true);},100);return ()=>clearTimeout(p)},[i,r,m,l]),m&&s&&m.length>=4){let p=m[0],f=m.slice(1,-2),g=m.slice(-2),b=f.map(x=>{if(Ie__namespace.default.isValidElement(x)){let v=x.props;if(typeof v.children=="string")return {label:v.children,href:v.href}}return {label:"..."}});return jsxRuntime.jsxs(reactAriaComponents.Breadcrumbs,{...n,ref:a,className:tailwindMerge.twMerge("flex gap-2",l?"opacity-100":"opacity-0",o),children:[p,jsxRuntime.jsx(P2,{items:b}),g]})}return jsxRuntime.jsx(reactAriaComponents.Breadcrumbs,{...n,ref:a,className:tailwindMerge.twMerge("flex gap-2",l?"opacity-100":"opacity-0",o),children:t})}function P2({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(na,{items:t,align:"left",size:"sm",children:jsxRuntime.jsx(_,{variant:"icon",size:"sm",icon:"DotsThree","aria-label":"Show hidden breadcrumbs",className:"px-0.5"})}),jsxRuntime.jsx(lucideReact.ChevronRight,{className:"h-4 w-4 text-text-secondary"})]})})}function Us(e){let{className:t,children:r,href:o,copyable:n,copyValue:a,...i}=e;return jsxRuntime.jsx(reactAriaComponents.Breadcrumb,{className:ve(t,"flex items-center gap-2"),...i,children:s=>{let c=s.isCurrent,l=typeof r=="function"?r(s):r;return jsxRuntime.jsx(jsxRuntime.Fragment,{children:c?n?jsxRuntime.jsx(Lo,{value:a||(typeof l=="string"?l:void 0),size:"sm",iconPosition:"right",children:jsxRuntime.jsx("span",{className:"max-w-[200px] truncate font-semibold text-text-primary sm:max-w-none",children:l})}):jsxRuntime.jsx("span",{className:"max-w-[200px] truncate font-semibold text-text-primary sm:max-w-none",children:l}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx($e,{variant:"muted",href:o,className:"max-w-[150px] truncate sm:max-w-[300px] md:max-w-none",children:l}),jsxRuntime.jsx(lucideReact.ChevronRight,{className:"h-4 w-4 shrink-0 text-text-secondary"})]})})}})}function V2({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-inverse invalid:bg-feedback-error-border forced-colors:bg-[Highlight] forced-colors:invalid:bg-[Mark] forced-colors:text-[HighlightText]"):r.push("text-text-primary hover:bg-background-hover pressed:bg-background-selected"),r.join(" ")}function la({errorMessage:e,...t}){return jsxRuntime.jsxs(reactAriaComponents.Calendar,{...t,children:[jsxRuntime.jsx(Ys,{}),jsxRuntime.jsxs(reactAriaComponents.CalendarGrid,{className:"border-separate [border-spacing:0] [&_td]:p-0 [&_td]:!border-0",children:[jsxRuntime.jsx(Ks,{}),jsxRuntime.jsx(reactAriaComponents.CalendarGridBody,{children:r=>jsxRuntime.jsx(reactAriaComponents.CalendarCell,{date:r,className:({isSelected:o,isDisabled:n})=>`${V2({isSelected:o,isDisabled:n})} border-0`})})]}),e&&jsxRuntime.jsx(reactAriaComponents.Text,{slot:"errorMessage",className:"text-sm text-feedback-error-text",children:e})]})}function Ys(){let{direction:e}=reactAriaComponents.useLocale(),t=18;return jsxRuntime.jsxs("header",{className:"flex w-full items-center gap-1 px-1 pb-4",children:[jsxRuntime.jsx(_,{variant:"icon",slot:"previous",className:"pl-0",children:e==="rtl"?jsxRuntime.jsx(B,{name:"CaretRight","aria-hidden":true,size:t}):jsxRuntime.jsx(B,{name:"CaretLeft","aria-hidden":true,size:t})}),jsxRuntime.jsx(reactAriaComponents.Heading,{className:"text-md mx-2 flex-1 text-center font-semibold text-text-primary"}),jsxRuntime.jsx(_,{variant:"icon",slot:"next",className:"pr-0",children:e==="rtl"?jsxRuntime.jsx(B,{name:"CaretLeft","aria-hidden":true,size:t}):jsxRuntime.jsx(B,{name:"CaretRight","aria-hidden":true,size:t})})]})}function Ks(){return jsxRuntime.jsx(reactAriaComponents.CalendarGridHeader,{children:e=>jsxRuntime.jsx(reactAriaComponents.CalendarHeaderCell,{className:"text-xs font-semibold text-text-secondary",children:e})})}var Vg=Ie__namespace.createContext(null);function Ao(){let e=Ie__namespace.useContext(Vg);if(!e)throw new Error("Carousel components must be used within a CarouselRoot");return e}function zg({page:e,defaultPage:t=0,onPageChange:r,orientation:o="horizontal",loop:n=false,autoplay:a=false,autoplayDelay:i=4e3,allowMouseDrag:s=false,spacing:c="1rem",slidesPerView:l=1,slidesPerMove:d=1,className:u,children:m,...p}){let f=e!==void 0,[g,b]=Ie__namespace.useState(t),x=f?e:g,v=Ie__namespace.useRef(null),[C,y]=Ie__namespace.useState(0),[S,N]=Ie__namespace.useState(typeof a=="boolean"?a:!!a),[T,M]=Ie__namespace.useState(false),P=Ie__namespace.useRef(null),E=Ie__namespace.useRef(null),I=typeof a=="object"&&a!==null&&a.delay?a.delay:i;Ie__namespace.useEffect(()=>{if(v.current){let h=Math.max(1,Math.floor(Number(l)||1)),W=v.current.children;if(W.length===0){y(0);return}let U=Math.ceil(W.length/h);y(U);}},[m,l]);let A=Ie__namespace.useRef(-1);Ie__namespace.useEffect(()=>{if(x!==A.current&&v.current){let h=Array.from(v.current.children);if(h.length===0)return;let W=x*l,U=Math.min(W,h.length-1),K=h[U];K&&typeof K.scrollIntoView=="function"&&(K.scrollIntoView({behavior:"smooth",block:o==="vertical"?"start":"nearest",inline:o==="horizontal"?"start":"nearest"}),A.current=x);}},[x,l,o]);let w=Ie__namespace.useCallback(h=>{let W=h;n?W<0?W=C-1:W>=C&&(W=0):W=Math.max(0,Math.min(h,C-1)),f||b(W),r?.(W);},[f,n,r,C]),k=Ie__namespace.useCallback(()=>{w(x+d);},[x,w,d]),H=Ie__namespace.useCallback(()=>{w(x-d);},[x,w,d]),G=Ie__namespace.useRef(k);Ie__namespace.useEffect(()=>{G.current=k;},[k]);let z=C>0&&(n||x<C-1),Y=C>0&&(n||x>0),Z=Ie__namespace.useCallback(()=>{N(h=>!h);},[]);Ie__namespace.useEffect(()=>{if(S&&C>1)return P.current=setInterval(()=>{G.current();},I),()=>{P.current&&(clearInterval(P.current),P.current=null);}},[S,C,I]);let V=Ie__namespace.useCallback(()=>{P.current&&(clearInterval(P.current),P.current=null);},[]),O=Ie__namespace.useCallback(()=>{S&&C>1&&(P.current=setInterval(()=>{G.current();},I));},[S,C,I]),R=Ie__namespace.useCallback(h=>{if(!s)return;M(true);let W="touches"in h&&h.touches&&h.touches.length>0?h.touches[0].clientX:"clientX"in h?h.clientX:0,U="touches"in h&&h.touches&&h.touches.length>0?h.touches[0].clientY:"clientY"in h?h.clientY:0;E.current={x:W,y:U};},[s]),D=Ie__namespace.useCallback(h=>{if(!T||!E.current)return;let W="touches"in h&&h.touches&&h.touches.length>0?h.touches[0].clientX:"clientX"in h?h.clientX:0,U="touches"in h&&h.touches&&h.touches.length>0?h.touches[0].clientY:"clientY"in h?h.clientY:0,K=W-E.current.x,te=U-E.current.y,ue=50;o==="horizontal"&&Math.abs(K)>ue?(K>0?H():k(),M(false),E.current=null):o==="vertical"&&Math.abs(te)>ue&&(te>0?H():k(),M(false),E.current=null);},[T,o,k,H]),F=Ie__namespace.useCallback(()=>{M(false),E.current=null;},[]),L={currentPage:x,totalPages:C,orientation:o,loop:n,spacing:c,slidesPerView:l,goToPage:w,goToNext:k,goToPrev:H,canGoNext:z,canGoPrev:Y,isAutoplayActive:S,toggleAutoplay:Z,itemsRef:v,isDragging:T,allowMouseDrag:s,handleDragStart:R,handleDragMove:D,handleDragEnd:F};return jsxRuntime.jsx(Vg.Provider,{value:L,children:jsxRuntime.jsx("div",{...p,className:tailwindMerge.twMerge("relative w-full",o==="vertical"?"h-full":"",u),onMouseEnter:V,onMouseLeave:O,children:m})})}function Og({className:e,children:t,...r}){let{itemsRef:o,orientation:n,spacing:a,isDragging:i,allowMouseDrag:s,handleDragStart:c,handleDragMove:l,handleDragEnd:d}=Ao();return jsxRuntime.jsx("div",{ref:o,...r,className:tailwindMerge.twMerge("flex overflow-x-auto overflow-y-hidden snap-x snap-mandatory scrollbar-hide scroll-smooth",n==="vertical"&&"flex-col overflow-y-auto overflow-x-hidden snap-y",s&&i&&"cursor-grabbing select-none",s&&!i&&"cursor-grab",e),style:{gap:a,"--carousel-spacing":a,...r.style},onMouseDown:c,onMouseMove:l,onMouseUp:d,onMouseLeave:d,onTouchStart:c,onTouchMove:l,onTouchEnd:d,children:t})}function Hg({index:e,className:t,children:r,...o}){let{orientation:n,slidesPerView:a}=Ao();return jsxRuntime.jsx("div",{...o,"data-index":e,className:tailwindMerge.twMerge("shrink-0 snap-start",n==="horizontal"?"h-full":"w-full",t),style:{width:n==="horizontal"?`calc((100% - (${a-1} * var(--carousel-spacing, 1rem))) / ${a})`:void 0,height:n==="vertical"?`calc((100% - (${a-1} * var(--carousel-spacing, 1rem))) / ${a})`:void 0,...o.style},children:r})}function Wg({className:e,children:t,...r}){return jsxRuntime.jsx("div",{...r,className:tailwindMerge.twMerge("flex items-center justify-center gap-4 mt-4",e),children:t})}function Gg({className:e,children:t,...r}){let{goToPrev:o,canGoPrev:n}=Ao();return jsxRuntime.jsx("button",{type:"button",...r,onClick:a=>{o(),r.onClick?.(a);},disabled:!n||r.disabled,"aria-label":"Previous slide",className:tailwindMerge.twMerge("inline-flex items-center justify-center rounded-md","h-10 w-10","bg-background-input border border-border-input","text-text-primary hover:bg-background-muted","transition-colors duration-200","disabled:opacity-40 disabled:cursor-not-allowed","focus-visible:outline focus-visible:outline-2 focus-visible:outline-action-default",e),children:t||jsxRuntime.jsx(B,{name:"CaretLeft",size:"sm"})})}function Ug({className:e,children:t,...r}){let{goToNext:o,canGoNext:n}=Ao();return jsxRuntime.jsx("button",{type:"button",...r,onClick:a=>{o(),r.onClick?.(a);},disabled:!n||r.disabled,"aria-label":"Next slide",className:tailwindMerge.twMerge("inline-flex items-center justify-center rounded-md","h-10 w-10","bg-background-input border border-border-input","text-text-primary hover:bg-background-muted","transition-colors duration-200","disabled:opacity-40 disabled:cursor-not-allowed","focus-visible:outline focus-visible:outline-2 focus-visible:outline-action-default",e),children:t||jsxRuntime.jsx(B,{name:"CaretRight",size:"sm"})})}function Pu({index:e,className:t,children:r,...o}){let{currentPage:n,goToPage:a}=Ao(),i=n===e;return jsxRuntime.jsx("button",{type:"button",...o,onClick:s=>{a(e),o.onClick?.(s);},"aria-label":`Go to slide ${e+1}`,"aria-current":i,className:tailwindMerge.twMerge("h-2 rounded-full transition-all duration-200",i?"w-6 bg-action-brand":"w-2 bg-border-muted hover:bg-border-input","focus-visible:outline focus-visible:outline-2 focus-visible:outline-action-default",t),children:r})}function Yg({className:e,...t}){let{totalPages:r}=Ao();return jsxRuntime.jsx("div",{...t,className:tailwindMerge.twMerge("flex items-center gap-2",e),role:"group","aria-label":"Carousel indicators",children:Array.from({length:r},(o,n)=>jsxRuntime.jsx(Pu,{index:n},n))})}function Kg({className:e,children:t,...r}){let{isAutoplayActive:o,toggleAutoplay:n}=Ao();return jsxRuntime.jsx("button",{type:"button",...r,onClick:a=>{n(),r.onClick?.(a);},"aria-label":o?"Pause autoplay":"Start autoplay",className:tailwindMerge.twMerge("inline-flex items-center justify-center rounded-md","h-10 w-10","bg-background-input border border-border-input","text-text-primary hover:bg-background-muted","transition-colors duration-200","focus-visible:outline focus-visible:outline-2 focus-visible:outline-action-default",e),children:t||jsxRuntime.jsx(B,{name:o?"Pause":"Play",size:"sm"})})}function Jg({className:e,...t}){let{currentPage:r,totalPages:o}=Ao();return jsxRuntime.jsxs("div",{...t,className:tailwindMerge.twMerge("text-sm text-text-secondary tabular-nums",e),"aria-live":"polite","aria-atomic":"true",children:[r+1," / ",o]})}var Y2="focus:ring-action-primary",K2="bg-action-primary border-action-primary text-[color:var(--color-action-primary-text)] hover:bg-action-primary-hover hover:border-action-primary-hover";function Ru(e){return jsxRuntime.jsxs(reactAriaComponents.CheckboxGroup,{...e,className:ve(e.className,"flex flex-col gap-2"),children:[jsxRuntime.jsx(Ae,{children:e.label}),e.children,e.description&&jsxRuntime.jsx(Ce,{children:e.description}),jsxRuntime.jsx(de,{children:typeof e.errorMessage=="function"?void 0:e.errorMessage})]})}function J2({isDisabled:e}){return `flex gap-2 items-center group text-sm transition ${e?"text-text-disabled":"text-text-secondary"}`}function j2({isSelected:e,isInvalid:t,isDisabled:r,isIndeterminate:o}){let n="w-5 h-5 flex-shrink-0 rounded-[var(--control-border-radius)] flex items-center justify-center border-2 transition ring-offset-2 focus:ring-2",a=Y2,i="";return r?i="border-border-muted bg-background-muted":t?i="border-feedback-error-border bg-feedback-error-background":e||o?i=K2:i="bg-background-input border-border-input hover:border-border-focus",`${n} ${a} ${i}`}var jg="w-4 h-4 text-current group-disabled:text-text-disabled";function yn(e){let{children:t,variant:r,...o}=e;return jsxRuntime.jsx(reactAriaComponents.Checkbox,{...o,className:reactAriaComponents.composeRenderProps(e.className,(n,a)=>`${J2(a)} ${n||""}`),children:n=>{let{isSelected:a,isIndeterminate:i,...s}=n,c=jsxRuntime.jsx("div",{className:j2({isSelected:a,isIndeterminate:i,...s}),children:i?jsxRuntime.jsx(lucideReact.Minus,{"aria-hidden":true,className:jg}):a?jsxRuntime.jsx(lucideReact.Check,{"aria-hidden":true,className:jg}):null});return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[c,typeof t=="function"?t(n):t]})}})}var Z2={primary:"bg-action-primary/10 text-action-primary border border-action-primary/20 hover:bg-action-primary/15",secondary:"bg-action-secondary text-[color:var(--color-action-secondary-text)] border border-border-muted hover:bg-action-secondary-hover",info:"bg-feedback-info-background text-feedback-info-text border border-feedback-info-border hover:bg-feedback-info-background/80"};function Xg(e){return !e||e==="default"?"secondary":e==="brand"?"primary":e}var $2={xs:"px-1.5 py-[2px] gap-0.5",sm:"px-2 py-1 gap-1",md:"px-3 py-1.5 gap-1.5",lg:"px-3 py-2 gap-2",xl:"px-4 py-2.5 gap-2"},Q2="opacity-75 cursor-not-allowed pointer-events-none";function Zg(e){let{variant:t,size:r,isDisabled:o,isClickable:n,className:a}=e,i=r==="xs"?"text-xs":Be[r].text;return tailwindMerge.twMerge("inline-flex items-center justify-center rounded-full font-medium transition-colors","whitespace-nowrap select-none",$2[r],i,Z2[t],n&&!o&&"cursor-pointer",o&&Q2,a)}function Kr({children:e,onRemove:t,size:r="md",variant:o="secondary",isRemovable:n=true,isDisabled:a=false,className:i,onClick:s}){let c=!!s&&!a,l=n&&t&&!a,d=g=>{g.stopPropagation(),g.preventDefault(),t&&!a&&t();},u=()=>{s&&!a&&s();},m=r==="xs"?10:r==="sm"?12:r==="md"?14:16,f=jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("span",{className:"truncate",children:e}),l?c?jsxRuntime.jsx("span",{onClick:d,onKeyDown:g=>{(g.key==="Enter"||g.key===" ")&&(g.preventDefault(),d(g));},role:"button",tabIndex:0,className:"flex-shrink-0 rounded-full p-0.5 hover:bg-text-primary/10 transition-colors cursor-pointer","aria-label":"Remove",children:jsxRuntime.jsx(B,{name:"X",size:m,className:"text-current opacity-70 hover:opacity-100"})}):jsxRuntime.jsx("button",{type:"button",onClick:d,className:"flex-shrink-0 rounded-full p-0.5 hover:bg-text-primary/10 transition-colors cursor-pointer","aria-label":"Remove",tabIndex:-1,children:jsxRuntime.jsx(B,{name:"X",size:m,className:"text-current opacity-70 hover:opacity-100"})}):null]});return c?jsxRuntime.jsx("button",{type:"button",onClick:u,className:Zg({variant:Xg(o),size:r,isDisabled:a,isClickable:c,className:i}),disabled:a,children:f}):jsxRuntime.jsx("span",{className:Zg({variant:Xg(o),size:r,isDisabled:a,isClickable:c,className:i}),children:f})}function _g({label:e,description:t,errorMessage:r,size:o="md",tooltip:n,isRequired:a=false,isDisabled:i=false,isInvalid:s=false,validationResult:c,placeholder:l="Add items...",selectedItems:d=[],onItemsChange:u,staticItems:m,fetchSuggestions:p,chipVariant:f="secondary",showErrors:g=true,className:b}){let[x,v]=Ie.useState(""),[C,y]=Ie.useState([]),[S,N]=Ie.useState(false),[T,M]=Ie.useState(false),[P,E]=Ie.useState(-1),I=wo(x,300),A=Ie.useRef(null),w=Ie.useRef(null),{isFocused:k,handleFocus:H,handleBlur:G}=wr(),z=Ie.useId(),Y=Ie.useCallback(L=>{if(!u||!L.trim())return;let h=L.trim();if(d.includes(h)){v(""),M(false),y([]),E(-1);return}u([...d,h]),v(""),M(false),y([]),E(-1),A.current?.focus();},[d,u]),Z=Ie.useCallback(L=>{u&&u(d.filter(h=>h!==L));},[d,u]);Ie.useEffect(()=>{if(!p)return;let L=true;return (async()=>{let W=I.trim();if(!W){L&&(N(false),y([]),M(false));return}N(true);try{let U=await p(W);if(!L)return;y(U),M(!0);}catch(U){if(!L)return;console.error("Error fetching suggestions:",U),y([]),M(false);}finally{L&&N(false);}})(),()=>{L=false;}},[I,p]),Ie.useEffect(()=>{if(p||!m)return;if(!I.trim()){y([]),M(false);return}let L=m.filter(h=>h.name.toLowerCase().includes(I.toLowerCase())).map(h=>h.id);y(L),M(L.length>0||I.trim().length>0);},[I,m,p]);let V=Ie.useMemo(()=>{let L=C.filter(h=>!d.includes(h));return x.trim()&&!L.includes(x.trim())&&!d.includes(x.trim())?[...L,`Create tag: "${x.trim()}"`]:L},[C,x,d]),O=Ie.useCallback(L=>{v(L.target.value),E(-1),L.target.value&&M(true);},[]),R=Ie.useCallback(L=>{i||(L.startsWith("Create tag:")?Y(x):Y(L));},[Y,x,i]),D=Ie.useCallback(L=>{if(!i)switch(L.key){case "Enter":case ",":if(L.preventDefault(),P>=0&&P<V.length){let h=V[P];h.startsWith("Create tag:")?Y(x):Y(h);}else x.trim()&&Y(x.trim());break;case "Backspace":!x&&d.length>0&&(L.preventDefault(),Z(d[d.length-1]));break;case "ArrowDown":L.preventDefault(),T&&E(h=>h<V.length-1?h+1:h);break;case "ArrowUp":L.preventDefault(),T&&E(h=>h>0?h-1:-1);break;case "Escape":M(false),E(-1);break}},[i,x,d,V,P,T,Y,Z]);Ie.useEffect(()=>{let L=h=>{w.current&&h.target instanceof Node&&!w.current.contains(h.target)&&M(false);};return document.addEventListener("mousedown",L),()=>document.removeEventListener("mousedown",L)},[]);let F=()=>tailwindMerge.twMerge("flex items-center gap-1.5 rounded-md overflow-x-auto overflow-y-hidden","[&::-webkit-scrollbar]:hidden [-ms-overflow-style:none] [scrollbar-width:none]",Mo({isInvalid:s,isDisabled:i,isFocused:k}),"bg-background-input",o==="sm"&&"px-2 py-1 h-[32px]",o==="md"&&"px-2.5 py-1.5 h-[40px]",o==="lg"&&"px-3 py-2 h-[44px]",o==="xl"&&"px-3.5 py-2.5 h-[48px]",i&&"opacity-50 cursor-not-allowed bg-background-muted");return jsxRuntime.jsxs("div",{ref:w,className:tailwindMerge.twMerge("relative flex flex-col gap-1",b),children:[e&&jsxRuntime.jsx(Ae,{size:o,tooltip:n,isRequired:a,children:e}),jsxRuntime.jsx(mt,{children:jsxRuntime.jsxs("div",{className:F(),onClick:()=>!i&&A.current?.focus(),children:[d.map(L=>jsxRuntime.jsx(Kr,{variant:f,size:"xs",onRemove:()=>Z(L),isDisabled:i,className:"shrink-0 max-h-full",children:L},L)),jsxRuntime.jsx("input",{ref:A,type:"text",role:"combobox","aria-expanded":T,"aria-haspopup":"listbox","aria-controls":z,"aria-autocomplete":"list",value:x,onChange:O,onKeyDown:D,onFocus:L=>H(L),onBlur:L=>G(L),placeholder:d.length===0?l:"",disabled:i,className:"flex-1 min-w-[120px] h-full !border-0 !outline-none !ring-0 bg-transparent text-text-primary text-sm placeholder:text-text-disabled disabled:cursor-not-allowed focus:!ring-0 focus:!outline-none focus:!border-0 focus-visible:!ring-0 focus-visible:!outline-none focus-visible:!border-0",style:{boxShadow:"none",WebkitAppearance:"none",appearance:"none",border:"none",outline:"none"}})]})}),T&&(x||V.length>0)&&jsxRuntime.jsx("div",{id:z,role:"listbox",className:tailwindMerge.twMerge("absolute z-50 mt-1 rounded-lg border border-border-default","max-h-60 overflow-auto bg-background-surface shadow-lg","left-0 right-0 top-full"),children:S?jsxRuntime.jsx("div",{className:"px-3 py-2 text-sm text-text-secondary",children:"Loading..."}):V.length>0?V.map((L,h)=>jsxRuntime.jsx("div",{role:"option","aria-selected":h===P,className:tailwindMerge.twMerge("cursor-pointer px-3 py-2 text-sm transition-colors","hover:bg-background-hover",h===P&&"bg-background-selected",L.startsWith("Create tag:")&&"italic text-text-secondary"),onClick:()=>R(L),children:L},L)):x&&jsxRuntime.jsx("div",{className:"px-3 py-2 text-sm text-text-secondary",children:"No suggestions found"})}),t&&jsxRuntime.jsx(Ce,{size:o,className:"mt-1",children:t}),g&&typeof r=="string"&&jsxRuntime.jsx(de,{size:o,className:"text-feedback-error-text mt-1",children:r}),g&&typeof r=="function"&&c&&jsxRuntime.jsx(de,{size:o,className:"text-feedback-error-text mt-1",children:r(c)})]})}var lw={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')},cw={github:()=>import('ace-builds/src-noconflict/theme-github'),github_dark:()=>import('ace-builds/src-noconflict/theme-github_dark')},dw={"ext-language-tools":()=>import('ace-builds/src-noconflict/ext-language_tools')},ai=new Set;async function Eu(e,t){ai.has(e)||(await t(),ai.add(e));}async function uw(e,t,r){await Promise.all([Eu(`language:${e}`,lw[e]),Eu(`theme:${t}`,cw[t]),r?Eu("extension:language-tools",dw["ext-language-tools"]):void 0]);}function tb(e,t,r){let o=ai.has(`language:${e}`)&&ai.has(`theme:${t}`);return r?o&&ai.has("extension:language-tools"):o}function rb({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:d=50,showLineNumbers:u=true,showGutter:m=true,fontSize:p=14,wrapEnabled:f=false}){let g=Ie.useRef(null),[b,x]=Ie.useState(()=>tb(o,n,!t)),v=Ie.useMemo(()=>{if(a)return a;let C=(e.match(/\n/g)||[]).length+1;return `${Math.max(l,Math.min(C,d))*c+10}px`},[e,a,c,l,d]);return Ie.useEffect(()=>{let C=false,y=!t;return tb(o,n,y)?(x(true),()=>{C=true;}):(x(false),uw(o,n,y).then(()=>{C||x(true);}).catch(S=>{C||x(true),console.error("Failed to load Ace editor resources",S);}),()=>{C=true;})},[o,t,n]),Ie.useEffect(()=>{b&&g.current?.editor&&g.current.editor.resize();},[v,b]),jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("overflow-hidden rounded-md border border-border-input",s),style:{width:i,height:v},children:b?jsxRuntime.jsx(iw__default.default,{ref:g,mode:o,theme:n,value:e,onChange:r,readOnly:t,width:"100%",height:"100%",fontSize:p,showPrintMargin:false,showGutter:m,highlightActiveLine:!t,setOptions:{useWorker:true,showLineNumbers:u,tabSize:2,enableBasicAutocompletion:!t,enableLiveAutocompletion:!t,enableSnippets:!t,showFoldWidgets:true,wrap:f},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 nb=Ie__namespace.createContext({variant:"contained",density:"comfortable",showDividers:true}),ab=Ie__namespace.createContext(null),bw={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"},ob={true:"divide-y divide-border-default",false:"gap-3"},xw={comfortable:"px-5 py-3",compact:"px-4 py-2.5"},hw={comfortable:"px-5 pt-0",compact:"px-4 pt-0"},yw={comfortable:"h-4 w-4",compact:"h-3.5 w-3.5"};function Iu(){return Ie__namespace.useContext(nb)}function vw(e){let t=Ie__namespace.useContext(ab);if(!t)throw new Error(`${e} must be used within a <CollapseItem>`);return t}function Cw({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 Sw({isDisabled:e,isPressed:t,density:r,variant:o,showDividers:n,className:a}){let i="group/collapse-header flex w-full items-start gap-4 text-left transition-colors duration-150",s=e?"cursor-not-allowed text-text-disabled":"cursor-pointer text-text-primary",c=t&&!e?"bg-background-hover":"",l=xw[r];return tailwindMerge.twMerge(i,Ke(),l,s,c,o==="plain"&&n?"px-0":"",a)}function ww({density:e,showDividers:t,className:r}){let o="text-text-primary",n=hw[e];return tailwindMerge.twMerge(o,n,t?"":"rounded-b-lg",r)}function ca({variant:e="contained",density:t="comfortable",showDividers:r=true,className:o,...n}){let a=Ie__namespace.useMemo(()=>({variant:e,density:t,showDividers:r}),[e,t,r]),i=tailwindMerge.twMerge("flex w-full flex-col",bw[e],r?ob.true:ob.false,e==="plain"&&r?"border-y border-border-default/60":"");return jsxRuntime.jsx(nb.Provider,{value:a,children:jsxRuntime.jsx(reactAriaComponents.DisclosureGroup,{...n,className:ve(o,i)})})}function Fo({className:e,children:t,...r}){let{variant:o,showDividers:n}=Iu();return jsxRuntime.jsx(reactAriaComponents.Disclosure,{...r,className:reactAriaComponents.composeRenderProps(e,a=>Cw({variant:o,showDividers:n,className:a})),children:a=>jsxRuntime.jsx(ab.Provider,{value:a,children:t})})}Fo.displayName="CollapseItem";function Bo({title:e,description:t,startContent:r,endContent:o,indicator:n,indicatorPosition:a="end",showIndicator:i=true,keepIndicatorSpace:s=false,children:c,className:l,...d}){let u=vw("CollapseHeader"),{density:m,variant:p,showDividers:f}=Iu(),g=yw[m];return jsxRuntime.jsx(reactAriaComponents.Button,{...d,slot:"trigger","data-expanded":u.isExpanded?"true":void 0,className:reactAriaComponents.composeRenderProps(l,(b,x)=>Sw({isDisabled:x.isDisabled??false,isPressed:x.isPressed??false,density:m,variant:p,showDividers:f,className:b})),children:b=>{let x=b.isDisabled??false,v=i?typeof n=="function"?n({isExpanded:u.isExpanded,isDisabled:x}):n??jsxRuntime.jsx(B,{name:"CaretDown",size:m==="compact"?"xs":"sm",weight:"bold","aria-hidden":"true",className:tailwindMerge.twMerge("text-text-secondary transition-transform duration-200",u.isExpanded?"rotate-180":"rotate-0")}):null,C=v?jsxRuntime.jsx("span",{className:tailwindMerge.twMerge("flex flex-shrink-0 items-center justify-center text-text-secondary",g),"aria-hidden":"true",children:v}):s?jsxRuntime.jsx("span",{className:tailwindMerge.twMerge("flex flex-shrink-0 items-center justify-center",g),"aria-hidden":"true"}):null;return jsxRuntime.jsxs("div",{className:"flex w-full items-center gap-4",children:[a==="start"&&C,r&&jsxRuntime.jsx("div",{className:"flex flex-shrink-0 items-center text-text-secondary",children:r}),jsxRuntime.jsxs("div",{className:"flex min-w-0 flex-1 items-start gap-3",children:[c??jsxRuntime.jsxs("div",{className:"flex min-w-0 flex-1 flex-col gap-1 text-left",children:[e&&jsxRuntime.jsx("span",{className:"truncate font-medium text-text-primary",children:e}),t&&jsxRuntime.jsx("span",{className:"text-sm text-text-secondary",children:t})]}),o&&jsxRuntime.jsx("div",{className:"flex flex-shrink-0 items-center text-sm text-text-secondary",children:o})]}),a==="end"&&C]})}})}Bo.displayName="CollapseHeader";function Vo({className:e,children:t,...r}){let{density:o,showDividers:n}=Iu();return jsxRuntime.jsx(reactAriaComponents.DisclosurePanel,{...r,className:reactAriaComponents.composeRenderProps(e,a=>ww({density:o,showDividers:n,className:a})),children:t})}Vo.displayName="CollapseContent";function da(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 Bu(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 Pw({label:e,description:t,errorMessage:r,size:o="md",tooltip:n,isRequired:a,transparent:i,className:s,validationResult:c,value:l,defaultValue:d,onChange:u,placeholder:m="#000000",showColorSwatch:p=true,reserveErrorSpace:f=true,...g}){let[b,x]=Ie.useState(d||""),[v,C]=Ie.useState(l||d||""),[y,S]=Ie.useState(false),[N,T]=Ie.useState(null),{isFocused:M,handleFocus:P,handleBlur:E}=wr(),I=l!==void 0?l:b;Ie.useEffect(()=>{l!==void 0&&C(l);},[l]);let A=I?!da(I):false,w=Ie.useCallback(G=>{if(C(G),da(G)){let z=Bu(G);u?u(z):x(z);}else G===""&&(u?u(""):x(""));},[u]),k=Ie.useCallback(G=>{let z=Bu(G);C(z),u?u(z):x(z);},[u]),H=Ie.useCallback(G=>{if(da(v)){let z=Bu(v);C(z),u&&z!==I?u(z):!u&&z!==b&&x(z);}E(G,g.onBlur);},[v,I,b,u,E,g.onBlur]);return jsxRuntime.jsx(reactAriaComponents.TextField,{...g,isRequired:a,className:ve(s,"group flex flex-col"),children:({isDisabled:G})=>jsxRuntime.jsxs("div",{className:"flex flex-col",children:[e&&jsxRuntime.jsx(Ae,{size:o,tooltip:n,isRequired:a,children:e}),jsxRuntime.jsx(mt,{children:jsxRuntime.jsxs("div",{className:"flex gap-2",children:[jsxRuntime.jsxs("div",{className:"flex-1 relative",children:[jsxRuntime.jsx(Bs,{size:o,disabled:G,type:"text",value:v,placeholder:m,onFocus:z=>P(z,g.onFocus),onBlur:H,onChange:z=>w(z.target.value),className:tailwindMerge.twMerge(Mt({isInvalid:A,isDisabled:G,isFocused:M,size:o,transparent:i}),p?"pr-12":"pr-3","pl-3")}),p&&jsxRuntime.jsx("div",{className:"absolute right-3 top-1/2 -translate-y-1/2 pointer-events-none",style:{width:Be[o].height},children:jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("w-6 h-6 rounded border shadow-sm",da(I)?"border-border-default":"border-border-default bg-background-muted"),style:da(I)?{backgroundColor:I}:void 0,"aria-hidden":"true",children:!da(I)&&jsxRuntime.jsx("div",{className:"w-full h-full flex items-center justify-center",children:jsxRuntime.jsx("div",{className:"w-3 h-3 rounded-full border-2 border-border-muted"})})})})]}),jsxRuntime.jsx("div",{ref:T,children:jsxRuntime.jsx(_,{variant:"secondary",size:o,icon:"Palette",onPress:()=>S(!y),isDisabled:G,className:"flex-shrink-0",children:"Pick"})})]})}),f?jsxRuntime.jsx("div",{className:"mt-1 min-h-[20px]",children:typeof r=="string"?jsxRuntime.jsx(de,{size:o,children:r}):typeof r=="function"&&c?jsxRuntime.jsx(de,{size:o,children:r(c)}):t?jsxRuntime.jsx(Ce,{size:o,children:t}):null}):jsxRuntime.jsx(jsxRuntime.Fragment,{children:typeof r=="string"?jsxRuntime.jsx(de,{size:o,className:"mt-1",children:r}):typeof r=="function"&&c?jsxRuntime.jsx(de,{size:o,className:"mt-1",children:r(c)}):t?jsxRuntime.jsx(Ce,{size:o,className:"mt-1",children:t}):null}),y&&N&&jsxRuntime.jsx(rt,{triggerRef:{current:N},isOpen:y,onOpenChange:S,placement:"bottom end",className:"bg-background-input shadow-xl border border-border-input/20 backdrop-blur-sm rounded-lg p-4",children:jsxRuntime.jsxs("div",{className:"flex flex-col gap-4",children:[jsxRuntime.jsx(reactColorful.HexColorPicker,{color:I||"#000000",onChange:k,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:I||"#000000"}}),jsxRuntime.jsx("div",{className:"flex-1 text-text-primary text-[length:var(--control-text-sm)] font-mono",children:I||"#000000"})]})]})})]})})}function lb({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:d="500px",minWidth:u="400px"}){return jsxRuntime.jsx(yr,{isOpen:e,onClose:t,title:o,maxWidth:d,minWidth:u,primaryAction:{label:a,onPress:()=>{r();},variant:s??(c?"destructive":"primary"),isLoading:l},secondaryAction:{label:i,onPress:t,variant:"secondary",isDisabled:l},children:jsxRuntime.jsx("div",{className:"text-text-primary",children:n})})}function cb({isConnected:e,connectedAt:t,disconnectedAt:r,showTimestamp:o=false,isLoading:n,size:a="sm",shape:i="pill",...s}){if(n)return jsxRuntime.jsx(J,{className:"inline-flex h-6 w-24"});let c=e?"Connected":"Disconnected",l=e?"success":"neutral",d=null;if(o){if(e&&t)d=as(t);else if(!e&&r){let u=as(r);d=u?`Offline ${u}`:null;}}return jsxRuntime.jsxs("div",{className:"inline-flex flex-col gap-1",children:[jsxRuntime.jsx(et,{variant:l,size:a,shape:i,dot:e,dotPulse:e,...s,children:c}),d&&jsxRuntime.jsx("span",{className:"text-xs text-text-secondary",children:d})]})}function db({firstName:e,lastName:t,email:r,phone:o,avatarUrl:n,href:a,LinkComponent:i,variant:s="outlined",layout:c="horizontal",showEmail:l=true,showPhone:d=false,isLoading:u=false,className:m,contentClassName:p,piiEntity:f}){let g=`${e} ${t}`.trim(),b=({children:v,className:C})=>a?i?jsxRuntime.jsx(i,{href:a,className:C,children:v}):jsxRuntime.jsx($e,{href:a,variant:"unstyled",className:tailwindMerge.twMerge("hover:underline",C),asButton:false,children:v}):jsxRuntime.jsx("span",{className:C,children:v}),x=c==="vertical";return u?jsxRuntime.jsx(Ve,{variant:s,className:tailwindMerge.twMerge("flex flex-col",m),children:jsxRuntime.jsx(Ve.Content,{className:"flex items-center flex-1",children:jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("w-full",x?"flex flex-col items-center gap-4":"flex items-center gap-4"),children:[jsxRuntime.jsx(J,{width:56,height:56,className:"rounded flex-shrink-0"}),jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge(x?"w-full text-center":"flex-1","space-y-2"),children:[jsxRuntime.jsx(J,{width:"70%",height:20,className:tailwindMerge.twMerge(x&&"mx-auto")}),jsxRuntime.jsx(J,{width:"100%",height:16,className:tailwindMerge.twMerge(x&&"mx-auto")})]})]})})}):jsxRuntime.jsx(Ve,{variant:s,className:tailwindMerge.twMerge("group/card flex flex-col",m),children:jsxRuntime.jsx(Ve.Content,{className:tailwindMerge.twMerge("flex items-center flex-1",a&&"cursor-pointer",p),children:jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("relative w-full",x?"flex flex-col items-center gap-4 text-center":"flex items-center gap-4"),children:[jsxRuntime.jsx(so,{firstName:e,lastName:t,src:n,size:"xl",variant:"user",shape:"square",className:"flex-shrink-0",piiEntity:f}),jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge(x?"w-full":"flex-1 min-w-0"),children:[a&&jsxRuntime.jsx(b,{className:"after:absolute after:inset-0",children:jsxRuntime.jsx("span",{className:"sr-only",children:g})}),jsxRuntime.jsx("span",{className:"text-lg font-semibold leading-tight text-text-primary block mb-1.5 group-hover/card:text-text-brand transition-colors","data-pii-type":f?"full-name":void 0,"data-pii-entity":f,children:g}),jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("space-y-0.5",x&&"flex flex-col items-center"),children:[l&&r&&jsxRuntime.jsxs("div",{className:"flex items-center gap-2.5 text-text-primary",children:[jsxRuntime.jsx(B,{name:"Envelope",size:16,className:"text-text-secondary flex-shrink-0"}),jsxRuntime.jsx($e,{href:`mailto:${r}`,variant:"unstyled",className:tailwindMerge.twMerge("text-sm leading-relaxed text-text-primary relative z-20",x?"":"truncate"),"data-pii-type":f?"email":void 0,"data-pii-entity":f,children:r})]}),d&&o&&jsxRuntime.jsxs("div",{className:"flex items-center gap-2.5 text-text-primary",children:[jsxRuntime.jsx(B,{name:"Phone",size:16,className:"text-text-secondary flex-shrink-0"}),jsxRuntime.jsx($e,{href:`tel:${o}`,variant:"unstyled",className:tailwindMerge.twMerge("text-sm leading-relaxed text-text-primary relative z-20",x?"":"truncate"),"data-pii-type":f?"phone":void 0,"data-pii-entity":f,children:Qn(o)})]})]})]})]})})})}function qs({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:d=false,badge:u,avatarShape:m,isLoading:p=false,className:f,piiEntity:g}){let b=m??(n==="inline"?"circle":"square"),v={xs:{avatarSize:"xs",gap:"gap-1.5",textSize:"text-xs",secondaryTextSize:"text-xs",skeletonAvatar:24,skeletonText:80,skeletonSecondary:60},sm:{avatarSize:"sm",gap:"gap-2",textSize:"text-sm",secondaryTextSize:"text-xs",skeletonAvatar:32,skeletonText:96,skeletonSecondary:72},md:{avatarSize:"md",gap:"gap-3",textSize:"text-base",secondaryTextSize:"text-sm",skeletonAvatar:40,skeletonText:128,skeletonSecondary:96},lg:{avatarSize:"lg",gap:"gap-3",textSize:"text-lg",secondaryTextSize:"text-base",skeletonAvatar:48,skeletonText:160,skeletonSecondary:120}}[a],C=`${e} ${t}`.trim(),S={strong:"font-semibold text-text-primary",high:"font-semibold text-text-primary",normal:"text-text-primary",low:"text-text-secondary"}[l],N=({children:T,className:M})=>i?s?jsxRuntime.jsx(s,{href:i,className:M,children:T}):jsxRuntime.jsx($e,{href:i,variant:c,className:tailwindMerge.twMerge("hover:underline",M),asButton:false,children:T}):jsxRuntime.jsx("span",{className:M,children:T});return p?n==="inline"?jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("flex items-center",v.gap,f),children:[jsxRuntime.jsx(J,{width:v.skeletonAvatar,height:v.skeletonAvatar,className:"flex-shrink-0 rounded-full"}),jsxRuntime.jsx(J,{width:v.skeletonText,height:v.skeletonAvatar*.5})]}):jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("flex items-center",v.gap,f),children:[jsxRuntime.jsx(J,{width:v.skeletonAvatar,height:v.skeletonAvatar,className:"flex-shrink-0 rounded-full"}),jsxRuntime.jsxs("div",{className:"flex flex-col gap-1",children:[jsxRuntime.jsx(J,{width:v.skeletonText,height:16}),d&&jsxRuntime.jsx(J,{width:v.skeletonSecondary,height:12})]})]}):n==="inline"?jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("flex items-center",v.gap,f),children:[jsxRuntime.jsxs(N,{className:tailwindMerge.twMerge("flex items-center",v.gap),children:[jsxRuntime.jsx(so,{firstName:e,lastName:t,src:o,size:v.avatarSize,variant:"user",shape:b,className:"flex-shrink-0",piiEntity:g}),jsxRuntime.jsx("span",{className:tailwindMerge.twMerge("leading-normal truncate hover:text-text-primary",S,v.textSize,i&&"hover:underline hover:decoration-1 hover:underline-offset-4"),"data-pii-type":g?"full-name":void 0,"data-pii-entity":g,children:C})]}),u]}):jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("flex items-center justify-start",v.gap,f),children:[jsxRuntime.jsx(so,{firstName:e,lastName:t,src:o,size:v.avatarSize,variant:"user",shape:b,className:"flex-shrink-0",piiEntity:g}),jsxRuntime.jsxs("div",{className:"flex flex-col items-start min-w-0",children:[jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[jsxRuntime.jsx(N,{className:tailwindMerge.twMerge("leading-normal truncate hover:text-text-primary",S,v.textSize,i&&"hover:underline hover:decoration-1 hover:underline-offset-4"),children:jsxRuntime.jsx("span",{"data-pii-type":g?"full-name":void 0,"data-pii-entity":g,children:C})}),u]}),d&&r&&jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("text-text-secondary leading-normal truncate",v.secondaryTextSize),"data-pii-type":g?"email":void 0,"data-pii-entity":g,children:r})]})]})}var ub={duration:.5,ease:"easeInOut"},Jr=Ie.createContext(null),wn=()=>{let e=Ie.useContext(Jr);if(!e)throw new Error("useChartContext must be used within a ChartContextProvider");return e};var si=({data:e,color:t="var(--color-viz-default)",baseline:r,fillOpacity:o=.1,showLine:n=true})=>{let a=Ie.useId(),i=Ie.useId(),{xScale:s,yScale:c,animationSettings:l}=wn(),d=s.range(),u=c.range(),m=(f,g)=>typeof r=="function"?r(f,g):r??0,p=f=>f.chartYValue??f.yValue;return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsxs("defs",{children:[jsxRuntime.jsxs("linearGradient",{id:a,x1:"0%",y1:"0%",x2:"0%",y2:"100%",children:[jsxRuntime.jsx("stop",{offset:"50%",stopColor:t,stopOpacity:o}),jsxRuntime.jsx("stop",{offset:"100%",stopColor:t,stopOpacity:0})]}),jsxRuntime.jsx("clipPath",{id:i,children:jsxRuntime.jsx("rect",{x:d[0],y:u[1],width:d[1]-d[0],height:u[0]-u[1]})})]}),jsxRuntime.jsx("g",{clipPath:`url(#${i})`,children:jsxRuntime.jsxs(framerMotion.motion.g,{initial:{scaleY:0},animate:{scaleY:1},transition:{duration:l.duration,ease:l.ease},style:{transformOrigin:`0 ${u[0]}px`,transformBox:"fill-box",isolation:"isolate"},children:[r===void 0?jsxRuntime.jsx(shape.AreaClosed,{data:e,x:f=>s(f.xValue),y:f=>c(p(f)),yScale:c,fill:`url(#${a})`,curve:curve.curveLinear}):jsxRuntime.jsx(shape.Area,{data:e,x:f=>s(f.xValue),y0:(f,g)=>c(m(f,g)),y1:f=>c(p(f)),fill:t,fillOpacity:o,curve:curve.curveLinear}),n?jsxRuntime.jsx(shape.LinePath,{data:e,x:f=>s(f.xValue),y:f=>c(p(f)),stroke:t,strokeWidth:3,curve:curve.curveLinear}):null]})})]})};var Zs=({data:e,color:t="var(--color-viz-default)",opacity:r=1,categoryColors:o={}})=>{let{xScale:n,yScale:a,animationSettings:i}=wn(),s=Ie.useId(),c=n.range(),l=a.range(),d=[...e].sort((p,f)=>p.xValue.getTime()-f.xValue.getTime());if(d.length===0)return null;let u=d.length>1?d[1].xValue.getTime()-d[0].xValue.getTime():15*6e4,m=Math.abs(n(new Date(d[0].xValue.getTime()+u))-n(d[0].xValue));return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("defs",{children:jsxRuntime.jsx("clipPath",{id:s,children:jsxRuntime.jsx("rect",{x:c[0],y:l[1],width:c[1]-c[0],height:l[0]-l[1]})})}),jsxRuntime.jsx("g",{clipPath:`url(#${s})`,children:jsxRuntime.jsx(framerMotion.motion.g,{initial:{scaleY:0},animate:{scaleY:1},transition:{duration:i.duration,ease:i.ease},style:{transformOrigin:`0 ${a(0)}px`,isolation:"isolate"},children:d.map((p,f)=>{let g=n(p.xValue),b=a(p.yValue),x=a(0),v=Math.min(b,x),C=Math.abs(b-x),y=d[f+1],S=y?Math.abs(n(y.xValue)-g):m,N=p.category&&o[p.category]?o[p.category]:t;return jsxRuntime.jsx(shape.Bar,{x:g-S/2,y:v,width:S,height:C,fill:N,opacity:r,rx:1},p.xValue.getTime())})})})]})};var jr=Zi(Fb()),Vb=Zi(Bb());var tN=["top","left","transform","className","children","innerRef"];function qu(){return qu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o]);}return e},qu.apply(this,arguments)}function rN(e,t){if(e==null)return {};var r={},o=Object.keys(e),n,a;for(a=0;a<o.length;a++)n=o[a],!(t.indexOf(n)>=0)&&(r[n]=e[n]);return r}function li(e){var t=e.top,r=t===void 0?0:t,o=e.left,n=o===void 0?0:o,a=e.transform,i=e.className,s=e.children,c=e.innerRef,l=rN(e,tN);return Ie__namespace.default.createElement("g",qu({ref:c,className:(0, Vb.default)("visx-group",i),transform:a||"translate("+n+", "+r+")"},l),s)}li.propTypes={top:jr.default.number,left:jr.default.number,transform:jr.default.string,className:jr.default.string,children:jr.default.node,innerRef:jr.default.oneOfType([jr.default.string,jr.default.func,jr.default.object])};var lN=e=>e.baselineValue??0,We={top:0,right:0,bottom:50,left:60};function co(e={type:"number"}){let t=i=>{if(i==null)return "-";let s=zr({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=d=>{if(d==null)return "";if(typeof d=="string")return d;if(typeof d=="number")return d.toString();if(typeof d=="object"&&"props"in d){let u=d.props;if(u?.children)return Array.isArray(u.children)?u.children.map(c).join(""):c(u.children)}return ""};return c(s)||i.toString()}return i.toString()},r=i=>{if(i==null)return "-";if(typeof e=="string"){let s=zr({value:i,formatter:e});return s===null?"-":String(s)}if(typeof e=="object"&&e.type)switch(e.type){case "energy":case "power":case "voltage":case "current":case "resistance":case "temperature":case "distance":return t(i);case "currency":return t(i);default:return t(i)}return t(i)},o,n,a;return typeof e=="object"&&e.type&&e.type==="number"&&("min"in e&&(o=e.min),"max"in e&&(n=e.max)),{format:t,tickFormat:r,min:o,max:n,tickInterval:a}}var Xu=(e,t)=>{let r=d3Array.extent(e,o=>o.xValue);return scale.scaleTime({range:[We.left,t-We.right],domain:r,nice:true})},Zu=(e,t,r,o)=>{let n=co(r);if(o)return scale.scaleLinear({range:[t-We.bottom,We.top],domain:o,nice:true});let a=d3Array.min(e,l=>Math.min(l.yValue,l.chartYValue??l.yValue))||0,i=d3Array.max(e,l=>Math.max(l.yValue,l.chartYValue??l.yValue))||0,s=n.min!==void 0?n.min:a>=0?0:a*1.1,c=n.max!==void 0?n.max:i<=0?0:i*1.1;return scale.scaleLinear({range:[t-We.bottom,We.top],domain:[s,c],nice:true})};function cN(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 ul(e,t=12,r="system-ui"){return e.length===0?0:Math.max(...e.map(o=>cN(o,t,r)))}function ci(e){return e instanceof Date&&!Number.isNaN(e.getTime())}function dN(e,t,r=12,o=false){if(!ci(t[0])||!ci(t[1]))return console.warn("ChartAxis: Invalid date in domain, skipping tick calculation"),[];let n=t[0].getTime(),i=t[1].getTime()-n;if(i===0||i<1e3)return [t[0]];let s=vd({start:t[0],end:t[1]},{compact:o}),l=[t[0],new Date((t[0].getTime()+t[1].getTime())/2),t[1]].map(b=>s(b)),d=ul(l,r),m=d+d,p=Math.floor(e/m),f=Math.max(2,Math.min(8,p));if(f<=2)return [t[0],t[1]];let g=[t[0]];for(let b=1;b<f-1;b++){let x=b/(f-1),v=n+i*x;g.push(new Date(v));}return g.push(t[1]),g}var uN=({top:e,scale:t,width:r})=>{let o=t.domain(),n=[o[0],o[o.length-1]],a=ci(n[0])&&ci(n[1]),i=r<400,s=a?n[0].getTime():0,c=a?n[1].getTime():0,l=Ie.useMemo(()=>a?vd({start:n[0],end:n[1]},{compact:i}):()=>"",[s,c,i,a]),d=Ie.useMemo(()=>dN(r,n,12,i),[r,s,c,i]);return d.length===0?null:jsxRuntime.jsx(axis.Axis,{orientation:"bottom",top:e,scale:t,tickValues:d,tickFormat:u=>{let m=u;return ci(m)?l(m):""},stroke:"var(--color-border-muted)",tickStroke:"var(--color-border-muted)",tickLabelProps:(u,m,p)=>({fill:"var(--color-text-secondary)",fontSize:12,textAnchor:m===0?"start":m===p.length-1?"end":"middle"}),rangePadding:0})};function ml(e,t=12){let r=t*2.5,o=Math.floor(e/r);return Math.max(2,Math.min(6,o))}var pN=({left:e,scale:t,yFormatter:r,height:o})=>{let n=co(r),a=Ie.useMemo(()=>!o||o<=0?5:ml(o),[o]);return jsxRuntime.jsx(axis.Axis,{orientation:"left",left:e,scale:t,numTicks:a,tickFormat:i=>(n.tickFormat||n.format)(i),stroke:"var(--color-border-muted)",tickStroke:"var(--color-border-muted)",tickLabelProps:()=>({fill:"var(--color-text-secondary)",fontSize:12,textAnchor:"end",dy:"0.33em"})})},mN=({top:e,scale:t})=>jsxRuntime.jsx(axis.Axis,{orientation:"bottom",top:e,scale:t,stroke:"var(--color-border-muted)",tickStroke:"var(--color-border-muted)",tickLabelProps:()=>({fill:"var(--color-text-secondary)",fontSize:12,textAnchor:"middle",dy:"0.25em"})}),fN=({left:e,scale:t})=>jsxRuntime.jsx(axis.Axis,{orientation:"left",left:e,scale:t,stroke:"var(--color-border-muted)",tickStroke:"var(--color-border-muted)",tickLabelProps:()=>({fill:"var(--color-text-secondary)",fontSize:12,textAnchor:"end",dx:"-0.25em",dy:"0.33em"})}),gN=({top:e,scale:t,yFormatter:r,width:o})=>{let n=co(r),a=Ie.useMemo(()=>{if(!o||o<=0)return 5;let s=Math.floor(o/60);return Math.max(2,Math.min(8,s))},[o]);return jsxRuntime.jsx(axis.Axis,{orientation:"bottom",top:e,scale:t,numTicks:a,tickFormat:i=>(n.tickFormat||n.format)(i),stroke:"var(--color-border-muted)",tickStroke:"var(--color-border-muted)",tickLabelProps:()=>({fill:"var(--color-text-secondary)",fontSize:12,textAnchor:"middle",dy:"0.25em"})})},qr={Bottom:uN,Left:pN,CategoryBottom:mN,CategoryLeft:fN,NumericBottom:gN};var fa=({data:e,formatter:t,label:r,categoryLabels:o})=>{if(!e)return null;let n=Ie__namespace.default.useContext(Jr),a=o??n?.categoryLabels,i=n?.xScale,s=n?.width,c=n?.height,l=co(t),d=v=>{if(v.baselineValue===void 0)return l.format(v.value);let C=Math.min(v.baselineValue,v.value),y=Math.max(v.baselineValue,v.value);return `${l.format(C)} \u2013 ${l.format(y)}`},u=Ie__namespace.default.useRef(null),[m,p]=Ie__namespace.default.useState({x:0,y:0,translate:"translate(-50%, -100%)"});Ie__namespace.default.useEffect(()=>{if(!u.current)return;let C=u.current.getBoundingClientRect(),y=s??window.innerWidth,S=c??window.innerHeight,N=e.x,T=e.y,M=16,P=e.x+C.width+M<=y,E=e.x-C.width-M>=0,I;e.position==="left"?I=E||!P:I=!P&&E;let A=I?"translate(calc(-100% - 16px), -50%)":"translate(16px, -50%)";if(!P&&!E){let w=y-e.x,k=e.x;w<=k?(N=y,A="translate(-100%, -50%)"):(N=0,A="translate(0, -50%)");}T-C.height/2<0?T=C.height/2:T+C.height/2>S&&(T=S-C.height/2),p({x:N,y:T,translate:A});},[e.x,e.y,e.position,s,c]);let f=i?.domain(),b=f&&f.length===2&&f.every(v=>v instanceof Date)?Nf({start:f[0],end:f[1]}):null,x=r||(b&&e.xValue instanceof Date?b(e.xValue):String(e.xValue));return jsxRuntime.jsx(framerMotion.AnimatePresence,{children:jsxRuntime.jsxs(framerMotion.motion.div,{ref:u,role:"tooltip","aria-live":"polite",initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},"data-testid":"tooltip",className:"pointer-events-none absolute z-50 rounded-lg bg-background-surface p-4 text-sm shadow-xl ring-1 ring-border-default whitespace-nowrap",style:{left:m.x,top:m.y,transform:m.translate},children:[jsxRuntime.jsx("div",{className:"mb-1 font-medium text-text-primary",children:x}),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(v=>jsxRuntime.jsxs("li",{className:"py-0.5",children:[jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[jsxRuntime.jsxs("span",{className:"font-medium text-text-primary",children:[v.label,":"]}),jsxRuntime.jsx("span",{className:"text-text-secondary",children:d(v)})]}),v.category&&jsxRuntime.jsxs("div",{className:"mt-0.5 flex items-center gap-2",children:[jsxRuntime.jsx("div",{className:"h-3 w-3",style:{backgroundColor:v.categoryColor||v.color,borderRadius:"1px"}}),jsxRuntime.jsx("span",{className:"text-sm text-text-secondary",children:a?.[v.category]||v.category})]})]},v.label))}),(()=>{let v=e.series[e.series.length-1],C=e.eventItems?.length?e.eventItems:[{label:v.label,color:v.color,metadata:e.eventMetadata}];return jsxRuntime.jsx("div",{className:"space-y-2",children:C.map((y,S)=>jsxRuntime.jsxs("div",{children:[jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[jsxRuntime.jsx("div",{className:"h-2 w-2 rounded-full",style:{backgroundColor:y.color}}),jsxRuntime.jsx("span",{className:"font-medium text-text-primary",children:y.label})]}),y.metadata&&Object.keys(y.metadata).length>0&&jsxRuntime.jsx("div",{className:"ml-4 mt-1 space-y-0.5 text-xs text-text-secondary",children:Object.entries(y.metadata).map(([N,T])=>jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[jsxRuntime.jsxs("span",{className:"capitalize",children:[N,":"]}),jsxRuntime.jsx("span",{className:"font-medium",children:T})]},N))})]},`${y.label}-${S}`))})})()]}):jsxRuntime.jsx("ul",{className:"list-none p-0",children:e.series.map(v=>jsxRuntime.jsxs("li",{className:"py-0.5",children:[jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[jsxRuntime.jsxs("span",{className:"font-medium text-text-primary",children:[v.label,":"]}),jsxRuntime.jsx("span",{className:"text-text-secondary",children:d(v)})]}),v.category&&jsxRuntime.jsxs("div",{className:"mt-0.5 flex items-center gap-2",children:[jsxRuntime.jsx("div",{className:"h-3 w-3",style:{backgroundColor:v.categoryColor||v.color,borderRadius:"1px"}}),jsxRuntime.jsx("span",{className:"text-sm text-text-secondary",children:a?.[v.category]||v.category})]})]},v.label))})]})})};var wN={top:20,right:20,bottom:50,left:60},Kb=({data:e,width:t,height:r,margin:o=wN,color:n,yFormatter:a={type:"number"},showGrid:i=true,showAxes:s=true,animate:c=true,barRadius:l=4,barPadding:d=.3,onBarClick:u,onBarHover:m,activeIndex:p,className:f,style:g,"aria-label":b="Category bar chart",orientation:x="vertical",showTooltip:v=true})=>{let[C,y]=Ie.useState(null),[S,N]=Ie.useState(null),[T,M]=Ie.useState(null),[P,E]=Ie.useState(t??600),[I,A]=Ie.useState(r??300),w=Ie.useRef(null),k=p??C,H=Ie.useId(),G=n||"var(--color-viz-default)";Ie.useEffect(()=>{if(t!==void 0&&r!==void 0){E(t),A(r);return}if(!w.current)return;let R=new ResizeObserver(D=>{for(let F of D)t===void 0&&E(F.contentRect.width),r===void 0&&A(F.contentRect.height);});return R.observe(w.current),t===void 0&&E(w.current.offsetWidth),r===void 0&&A(w.current.offsetHeight||300),()=>{R.disconnect();}},[t,r]);let{xScale:z,yScale:Y,innerWidth:Z,innerHeight:V}=Ie.useMemo(()=>{let R=P-o.left-o.right,D=I-o.top-o.bottom;if(x==="horizontal"){let L=d3Array.max(e,h=>h.value)||0;return {xScale:scale.scaleLinear({range:[0,R],domain:[0,L*1.1],nice:true}),yScale:scale.scaleBand({range:[0,D],domain:e.map(h=>h.label),padding:d}),innerWidth:R,innerHeight:D}}let F=d3Array.max(e,L=>L.value)||0;return {xScale:scale.scaleBand({range:[0,R],domain:e.map(L=>L.label),padding:d}),yScale:scale.scaleLinear({range:[D,0],domain:[0,F*1.1],nice:true}),innerWidth:R,innerHeight:D}},[e,P,I,o,d,x]);if(e.length===0)return jsxRuntime.jsx("div",{ref:w,className:tailwindMerge.twMerge("flex h-full min-h-[200px] w-full items-center justify-center rounded-lg border border-dashed border-border-default bg-background-surface text-sm font-medium text-text-secondary",f),style:r!==void 0?{height:r,...g}:g,children:"No data available"});let O=(R,D)=>{if(y(R),m?.(D,R),R!==null&&D){let F,L;if(x==="horizontal"){let W=z(D.value),U=Y(D.label)||0,K=Y.bandwidth();F=o.left+W,L=o.top+U+K/2;}else {let W=z,U=Y,K=W(D.label)??0,te=W.bandwidth(),ue=U(D.value);F=o.left+K+te/2,L=o.top+ue;}let h=F>P/2;M(D.label),N({xValue:new Date,series:[{label:"Value",value:D.value,color:D.color||G}],x:F,y:L,position:h?"left":"right"});}else N(null),M(null);};return jsxRuntime.jsxs("div",{ref:w,className:tailwindMerge.twMerge("relative h-full w-full overflow-hidden rounded-lg bg-background-surface",f),style:r!==void 0?{height:r,...g}:g,"aria-label":b,role:"img",children:[jsxRuntime.jsxs("svg",{width:P,height:I,children:[jsxRuntime.jsx("defs",{children:jsxRuntime.jsx(gradient.LinearGradient,{id:`${H}-bar`,from:G,to:G,toOpacity:.85})}),jsxRuntime.jsxs(li,{left:o.left,top:o.top,children:[i&&jsxRuntime.jsx("g",{className:"grid-lines",children:(x==="horizontal"?z.ticks(5):Y.ticks(5)).map(R=>{let D=x==="horizontal"?0:Y(R),F=x==="horizontal"?z(R):0;return jsxRuntime.jsx("line",{x1:x==="horizontal"?F:0,y1:x==="horizontal"?0:D,x2:x==="horizontal"?F:Z,y2:x==="horizontal"?V:D,stroke:"var(--color-border-default)",strokeOpacity:.5,strokeDasharray:"2,3"},R)})}),e.map((R,D)=>{let F=k===D||k==null,L=R.color||`url(#${H}-bar)`;if(x==="horizontal"){let j=z(R.value),ne=Y.bandwidth(),Se=Y(R.label)||0;return jsxRuntime.jsx(framerMotion.motion.rect,{x:0,y:Se,width:j,height:ne,fill:L,rx:l,ry:l,initial:c?{width:0,opacity:.5}:void 0,animate:{width:j,opacity:F?1:.5},transition:{duration:.5,delay:D*.05,ease:"easeOut",opacity:{duration:.15,delay:0}},style:{cursor:u||m?"pointer":"default"},onMouseEnter:()=>O(D,R),onMouseLeave:()=>O(null,null),onClick:()=>u?.(R,D)},R.label)}let h=z,W=Y,U=h.bandwidth(),K=h(R.label)??0,te=W(R.value),ue=Math.max(0,V-te);return c?jsxRuntime.jsx(framerMotion.motion.rect,{x:K,width:U,fill:L,rx:l,ry:l,initial:{y:V,height:0,opacity:.5},animate:{y:te,height:ue,opacity:F?1:.5},transition:{duration:.5,delay:D*.05,ease:"easeOut",opacity:{duration:.15,delay:0}},style:{cursor:u||m?"pointer":"default"},onMouseEnter:()=>O(D,R),onMouseLeave:()=>O(null,null),onClick:()=>u?.(R,D)},R.label):jsxRuntime.jsx("rect",{x:K,y:te,width:U,height:ue,fill:L,rx:l,ry:l,opacity:F?1:.5,style:{cursor:u||m?"pointer":"default",transition:"opacity 150ms ease-out"},onMouseEnter:()=>O(D,R),onMouseLeave:()=>O(null,null),onClick:()=>u?.(R,D)},R.label)}),s&&x==="vertical"&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(qr.CategoryBottom,{top:V,scale:z}),jsxRuntime.jsx(qr.Left,{left:0,scale:Y,yFormatter:a,height:V})]}),s&&x==="horizontal"&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(qr.NumericBottom,{top:V,scale:z,yFormatter:a,width:Z}),jsxRuntime.jsx(qr.CategoryLeft,{left:0,scale:Y})]})]})]}),v&&jsxRuntime.jsx(fa,{data:S,formatter:a,label:T??void 0})]})};var Jb=({item:e,onToggle:t})=>{let r=jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("div",{className:"h-3 w-3 shrink-0",style:{backgroundColor:e.fill,borderRadius:"1px",opacity:e.isHidden?.35:1}}),jsxRuntime.jsx("span",{className:`text-sm whitespace-nowrap ${e.isHidden?"text-text-disabled line-through":"text-text-secondary"}`,children:e.category})]});return t?jsxRuntime.jsx("button",{type:"button",className:"flex items-center gap-2 shrink-0 rounded-sm focus:outline-none focus:ring-2 focus:ring-border-focus disabled:cursor-not-allowed disabled:opacity-60","aria-pressed":!e.isHidden,"aria-label":`${e.isHidden?"Show":"Hide"} ${e.category}`,disabled:e.isDisabled,onClick:()=>t(e.category),children:r}):jsxRuntime.jsx("div",{className:"flex items-center gap-2 shrink-0",children:r})},TN=({items:e,onToggle:t})=>e.length===0?null:jsxRuntime.jsx("div",{className:"flex items-center gap-3 flex-wrap",children:e.map(r=>jsxRuntime.jsx(Jb,{item:r,onToggle:t},r.category))}),gl=({items:e,onExport:t,marginLeft:r=0,marginRight:o=0,isZoomed:n=false,onResetZoom:a,onLegendItemToggle:i})=>{let[s,c]=Ie__namespace.default.useState(false),[l,d]=Ie__namespace.default.useState(null),[u,m]=Ie__namespace.default.useState(false),[p,f]=Ie__namespace.default.useState(false),g=Ie__namespace.default.useCallback(async x=>{c(true),d(x),f(false);try{await t(x);}catch(v){console.error("Export failed:",v);}finally{c(false),d(null);}},[t]),b=Ie__namespace.default.useCallback(async x=>{await g(x);},[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(TN,{items:e,onToggle:i})}),jsxRuntime.jsx("div",{className:"sm:hidden flex items-center gap-3",children:e.length>0&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("button",{onClick:()=>m(true),className:"text-sm text-text-secondary hover:text-text-primary transition-colors underline decoration-dotted underline-offset-4",children:"Legend"}),jsxRuntime.jsx(ot,{isOpen:u,onClose:()=>m(false),title:"Legend",children:jsxRuntime.jsx("div",{className:"grid grid-cols-1 gap-3 p-4",children:e.map(x=>jsxRuntime.jsx(Jb,{item:x,onToggle:i},x.category))})})]})}),jsxRuntime.jsxs("div",{className:"sm:hidden flex items-center gap-2 shrink-0",children:[n&&a&&jsxRuntime.jsx(_,{variant:"secondary",size:"sm",onPress:a,children:jsxRuntime.jsx(B,{name:"ArrowsOut",size:16})}),jsxRuntime.jsx(_,{variant:"secondary",size:"sm",onPress:()=>f(true),isDisabled:s,children:jsxRuntime.jsx(B,{name:"Export",size:16})}),jsxRuntime.jsx(ot,{isOpen:p,onClose:()=>f(false),title:"Export Chart",contentPadding:false,children:jsxRuntime.jsxs("div",{className:"flex flex-col",children:[jsxRuntime.jsxs("button",{onClick:()=>g("csv"),disabled:s,className:"flex items-center gap-3 px-6 py-4 text-left hover:bg-background-hover active:bg-background-muted transition-colors disabled:opacity-50 disabled:cursor-not-allowed",children:[jsxRuntime.jsx(B,{name:"List",size:20,className:"text-text-secondary"}),jsxRuntime.jsx("span",{className:"text-sm text-text-primary",children:l==="csv"?"Exporting...":"Export as CSV"})]}),jsxRuntime.jsxs("button",{onClick:()=>g("svg"),disabled:s,className:"flex items-center gap-3 px-6 py-4 text-left hover:bg-background-hover active:bg-background-muted transition-colors disabled:opacity-50 disabled:cursor-not-allowed",children:[jsxRuntime.jsx(B,{name:"Code",size:20,className:"text-text-secondary"}),jsxRuntime.jsx("span",{className:"text-sm text-text-primary",children:l==="svg"?"Exporting...":"Export as SVG"})]}),jsxRuntime.jsxs("button",{onClick:()=>g("png"),disabled:s,className:"flex items-center gap-3 px-6 py-4 text-left hover:bg-background-hover active:bg-background-muted transition-colors disabled:opacity-50 disabled:cursor-not-allowed",children:[jsxRuntime.jsx(B,{name:"DownloadSimple",size:20,className:"text-text-secondary"}),jsxRuntime.jsx("span",{className:"text-sm text-text-primary",children:l==="png"?"Exporting...":"Export as PNG"})]})]})})]}),jsxRuntime.jsxs("div",{className:"hidden sm:flex items-center gap-2 shrink-0",children:[n&&a&&jsxRuntime.jsxs(_,{variant:"secondary",size:"sm",onPress:a,children:[jsxRuntime.jsx(B,{name:"ArrowsOut",size:16}),jsxRuntime.jsx("span",{className:"hidden sm:inline",children:"Reset Zoom"})]}),jsxRuntime.jsxs(reactAriaComponents.DialogTrigger,{children:[jsxRuntime.jsxs(_,{variant:"secondary",size:"sm",isDisabled:s,children:[jsxRuntime.jsx(B,{name:"Export",size:16}),s?"Exporting...":"Export"]}),jsxRuntime.jsx(rt,{placement:"top end",className:"min-w-48 p-1 bg-background-surface rounded-lg shadow-xl ring-1 ring-border-default",children:jsxRuntime.jsxs(reactAriaComponents.Menu,{onAction:b,className:"outline-none",children:[jsxRuntime.jsx(reactAriaComponents.MenuItem,{id:"csv",className:"flex items-center gap-2 px-3 py-2 text-sm text-text-primary rounded cursor-pointer hover:bg-background-hover focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-border-focus focus-visible:ring-offset-1 focus-visible:ring-offset-background-surface data-[focused]:bg-background-hover data-[focused]:ring-2 data-[focused]:ring-border-focus data-[focused]:ring-offset-1 data-[focused]:ring-offset-background-surface",isDisabled:s,children:jsxRuntime.jsxs("span",{className:"flex items-center gap-2",children:[jsxRuntime.jsx(B,{name:"List",size:14}),l==="csv"?"Exporting...":"Export as CSV"]})}),jsxRuntime.jsx(reactAriaComponents.MenuItem,{id:"svg",className:"flex items-center gap-2 px-3 py-2 text-sm text-text-primary rounded cursor-pointer hover:bg-background-hover focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-border-focus focus-visible:ring-offset-1 focus-visible:ring-offset-background-surface data-[focused]:bg-background-hover data-[focused]:ring-2 data-[focused]:ring-border-focus data-[focused]:ring-offset-1 data-[focused]:ring-offset-background-surface",isDisabled:s,children:jsxRuntime.jsxs("span",{className:"flex items-center gap-2",children:[jsxRuntime.jsx(B,{name:"Code",size:14}),l==="svg"?"Exporting...":"Export as SVG"]})}),jsxRuntime.jsx(reactAriaComponents.MenuItem,{id:"png",className:"flex items-center gap-2 px-3 py-2 text-sm text-text-primary rounded cursor-pointer hover:bg-background-hover focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-border-focus focus-visible:ring-offset-1 focus-visible:ring-offset-background-surface data-[focused]:bg-background-hover data-[focused]:ring-2 data-[focused]:ring-border-focus data-[focused]:ring-offset-1 data-[focused]:ring-offset-background-surface",isDisabled:s,children:jsxRuntime.jsxs("span",{className:"flex items-center gap-2",children:[jsxRuntime.jsx(B,{name:"DownloadSimple",size:14}),l==="png"?"Exporting...":"Export as PNG"]})})]})})]})]})]})};var Qu=({data:e,seriesMetadata:t,width:r,height:o,onBrushChange:n,brushRegion:a,margin:i=We,yDomain:s})=>{let c=Ie.useRef(null),l=Ie.useRef(false),d=Ie.useMemo(()=>e.flat(),[e]),u=Ie.useMemo(()=>({top:10,bottom:15,left:i.left,right:i.right}),[i]),m=r-u.left-u.right,p=Ie.useMemo(()=>{if(d.length===0)return scale.scaleTime({domain:[new Date,new Date],range:[0,m]});let v=new Date(Math.min(...d.map(y=>y.xValue.getTime()))),C=new Date(Math.max(...d.map(y=>y.xValue.getTime())));return scale.scaleTime({domain:[v,C],range:[0,m]})},[d,m]),f=Ie.useMemo(()=>{let v=d.length>0?Math.max(0,...d.map(C=>C.yValue)):1;return scale.scaleLinear({domain:s??[0,v],range:[o-u.bottom,u.top]})},[d,o,s,u.top,u.bottom]),g=v=>{if(l.current)return;if(!v){n(null);return}let{x0:C,x1:y}=v;if(C===y)return;let S=new Date(C),N=new Date(y);if(!(Number.isNaN(S.getTime())||Number.isNaN(N.getTime()))){if(d.length>0){let T=Math.min(...d.map(A=>A.xValue.getTime())),M=Math.max(...d.map(A=>A.xValue.getTime())),E=(M-T)*.05;if(Math.abs(S.getTime()-T)<E&&Math.abs(N.getTime()-M)<E){n(null);return}}n([S,N]);}},b=Ie.useMemo(()=>{if(d.length!==0)return {start:{x:0,y:u.top},end:{x:m,y:o-u.bottom}}},[m,o,d]);Ie.useEffect(()=>{if(!c.current||d.length===0)return;let v=c.current.state;if(v?.isBrushing||v?.activeHandle)return;let C=Math.min(...d.map(P=>P.xValue.getTime())),y=Math.max(...d.map(P=>P.xValue.getTime())),S=a?a[0]:new Date(C),N=a?a[1]:new Date(y),T=c.current.state?.extent;if(T){let P=p.invert(T.x0),E=p.invert(T.x1),I=Math.abs(P.getTime()-S.getTime()),A=Math.abs(E.getTime()-N.getTime());if(I<1e3&&A<1e3)return}l.current=true;let M=P=>{let E=c.current.getExtent({x:p(S),y:u.top},{x:p(N),y:o-u.bottom});return {...P,start:{y:E.y0,x:E.x0},end:{y:E.y1,x:E.x1},extent:E}};c.current.updateBrush(M),setTimeout(()=>{l.current=false;},50);},[a,p,o,d]);let x={fill:"url(#brush_pattern)",fillOpacity:.15,stroke:"var(--color-border-focus)",strokeWidth:1.5,strokeOpacity:.3};return jsxRuntime.jsx("div",{className:"mt-2",children:jsxRuntime.jsxs("svg",{width:r,height:o,children:[jsxRuntime.jsx(pattern.PatternLines,{id:"brush_pattern",height:8,width:8,stroke:"var(--color-text-secondary)",strokeWidth:1,orientation:["diagonal"]}),jsxRuntime.jsxs("g",{transform:`translate(${u.left}, 0)`,children:[e.map((v,C)=>jsxRuntime.jsx(shape.LinePath,{data:v,x:y=>p(y.xValue),y:y=>f(y.yValue),stroke:t[C]?.color||"var(--color-gray-500)",strokeWidth:1.5,opacity:.8},`brush-series-${C}`)),jsxRuntime.jsx(brush.Brush,{xScale:p,yScale:f,width:m,height:o-u.top-u.bottom,margin:{top:u.top,bottom:u.bottom,left:0,right:0},handleSize:8,innerRef:c,resizeTriggerAreas:["left","right"],brushDirection:"horizontal",initialBrushPosition:b,onChange:g,onClick:()=>n(null),selectedBoxStyle:x,useWindowMoveEvents:true})]})]})})};function uo(e){switch(e){case "command":return kt("--color-action-brand","#111111");case "success":return kt("--color-feedback-success-border","#278a4a");case "warning":return kt("--color-feedback-warning-border","#c88420");case "error":return kt("--color-feedback-error-border","#c42d2d");case "alert":return kt("--color-feedback-warning-border","#c88420");default:return kt("--color-text-secondary","#525250")}}function xl({events:e,color:t,showLabels:r=false}){let o=Ie.useContext(Jr),[n,a]=Ie.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:d,seriesMetadata:u,seriesTypes:m,categoryColors:p}=o,f=e.filter(x=>{let v=i(x.timestamp);return v>=We.left&&v<=i.range()[1]}),g=Ie.useCallback((x,v)=>{a(v);let C=i(x.timestamp),y=C>(i.range()[1]-We.right-We.left)/2+We.left,S=[];d&&u&&d.forEach((M,P)=>{if(M.length===0)return;let E=d3Array.bisector(H=>H.xValue).left,I=E(M,x.timestamp),A=M[I-1],w=M[I],k;if(!A)k=w;else if(!w)k=A;else {let H=Math.abs(x.timestamp.getTime()-A.xValue.getTime()),G=Math.abs(x.timestamp.getTime()-w.xValue.getTime());k=H<G?A:w;}k&&u[P]&&S.push({label:u[P].label,value:k.yValue,color:u[P].color,type:m?.[P]||"line",...k.category&&{category:k.category,categoryColor:p?.[k.category]}});});let T=f.filter(M=>Math.abs(i(M.timestamp)-C)<=10).map(M=>({label:M.label,color:t||uo(M.type),metadata:M.metadata}));S.push({label:T.length>1?`${T.length} events`:x.label,value:0,color:t||uo(x.type),type:"event"}),l.show({xValue:x.timestamp,series:S,x:C,y:S.length>1&&typeof S[0].value=="number"?s(S[0].value):c/2,position:y?"left":"right",isEvent:true,eventMetadata:x.metadata,eventItems:T});},[i,s,c,l,t,d,u,m,p,f]),b=Ie.useCallback(()=>{a(null),l.hide();},[l]);return f.length===0?null:jsxRuntime.jsx("g",{className:"chart-event-markers","data-testid":"chart-event-markers",children:f.map((x,v)=>{let C=i(x.timestamp),y=t||uo(x.type),S=n===v;return jsxRuntime.jsxs("g",{children:[jsxRuntime.jsx("line",{x1:C,y1:We.top,x2:C,y2:c-We.bottom,stroke:y,strokeWidth:S?3:2,strokeDasharray:"4 4",strokeOpacity:S?.9:.6,pointerEvents:"none"}),jsxRuntime.jsx("circle",{cx:C,cy:We.top,r:S?5:4,fill:y,stroke:"var(--color-background-surface)",strokeWidth:2,pointerEvents:"none"}),jsxRuntime.jsx("circle",{cx:C,cy:c-We.bottom,r:S?5:4,fill:y,stroke:"var(--color-background-surface)",strokeWidth:2,pointerEvents:"none"}),r&&jsxRuntime.jsx("text",{x:C,y:We.top-8,textAnchor:"middle",fill:"var(--color-text-secondary)",fontSize:11,fontWeight:500,pointerEvents:"none",children:x.label}),jsxRuntime.jsx("rect",{x:C-10,y:We.top,width:20,height:c-We.top-We.bottom,fill:"transparent",style:{cursor:"pointer"},onMouseEnter:()=>g(x,v),onMouseLeave:b})]},`${x.timestamp.getTime()}-${v}`)})})}function hl({spans:e,opacity:t=.25,color:r}){let o=Ie.useContext(Jr),[n,a]=Ie.useState(null),i=o?.xScale,s=o?.height,c=o?.tooltip,[l,d]=i?.domain()??[new Date(0),new Date(0)],[u,m]=i?.range()??[0,0],p=Ie.useCallback((S,N)=>{if(!i||!c)return;a(N);let T=S.start<l?l:S.start,M=S.end>d?d:S.end,P=(i(T)+i(M))/2,E=P>(m-u)/2+u,A=e.filter(w=>w.end>w.start&&w.start<S.end&&w.end>S.start).map(w=>({label:w.label,color:w.color??r??uo(w.type),metadata:w.metadata}));c.show({xValue:S.start,series:[{label:A.length>1?`${A.length} scheduled commands`:S.label,value:0,color:S.color??r??uo(S.type),type:"event"}],x:P,y:(s??0)/2,position:E?"left":"right",isEvent:true,eventMetadata:S.metadata,eventItems:A});},[i,s,c,r,l,d,u,m,e]),f=Ie.useCallback(()=>{a(null),c?.hide();},[c]);if(!o)return console.warn("ChartEventSpans must be used within a ChartContainer"),null;let{xScale:g,height:b}=o,x=We.top,C=b-We.bottom-x,y=e.filter(S=>S.end>S.start);return y.length===0?null:jsxRuntime.jsx("g",{className:"chart-event-spans","data-testid":"chart-event-spans",children:y.map((S,N)=>{let T=S.start<l?l:S.start,M=S.end>d?d:S.end;if(T>=d||M<=l)return null;let P=g(T),I=g(M)-P;if(I<=0)return null;let A=S.color??r??uo(S.type);return jsxRuntime.jsx("rect",{x:P,y:x,width:I,height:C,fill:A,fillOpacity:n===N?Math.min((t??.25)*1.8,1):t??.25,pointerEvents:"all",style:{cursor:"pointer"},onMouseEnter:()=>p(S,N),onMouseLeave:f},`${S.start.getTime()}-${S.end.getTime()}-${N}`)})})}var gi=({data:e,color:t="var(--color-viz-default)",strokeWidth:r=3,strokeDasharray:o,categoryColors:n={}})=>{let{xScale:a,yScale:i,animationSettings:s}=wn(),c=i.range(),l=Object.keys(n).length>0,d=p=>p.category?n[p.category]??t:t,u=p=>p.chartYValue??p.yValue,m=e.length===1?e[0]:void 0;return jsxRuntime.jsx(framerMotion.motion.g,{initial:{scaleY:0},animate:{scaleY:1},transition:{duration:s.duration,ease:s.ease},style:{transformOrigin:`0 ${c[0]}px`,transformBox:"fill-box",isolation:"isolate"},children:m?jsxRuntime.jsx("circle",{cx:a(m.xValue),cy:i(u(m)),r,fill:l?d(m):t}):l?e.slice(0,-1).map((p,f)=>{let g=e[f+1];return jsxRuntime.jsx(shape.LinePath,{data:[p,g],x:b=>a(b.xValue),y:b=>i(u(b)),stroke:d(p),strokeWidth:r,strokeDasharray:o,strokeLinecap:"round",curve:curve.curveLinear},`${p.xValue.getTime()}-${g.xValue.getTime()}`)}):jsxRuntime.jsx(shape.LinePath,{data:e,x:p=>a(p.xValue),y:p=>i(u(p)),stroke:t,strokeWidth:r,strokeDasharray:o,strokeLinecap:"round",curve:curve.curveLinear})})};var ax=e=>e.type===si||e.type===gi||e.type===Zs,YN=e=>e.type===xl||e.type===hl,KN=(e,t,r)=>{if(!e.tooltipRange||e.baseline===void 0)return;let o=typeof e.baseline=="function"?e.baseline(t,r):e.baseline;return typeof o=="number"&&Number.isFinite(o)&&o!==t.yValue?o:void 0},JN=d3Array.bisector(e=>e.xValue).left,jN=()=>jsxRuntime.jsx("div",{className:"flex h-full items-center justify-center",children:jsxRuntime.jsx("p",{className:"text-text-secondary",children:"No data available"})}),qN=()=>jsxRuntime.jsxs("div",{className:"flex h-full flex-col gap-4 p-4",children:[jsxRuntime.jsx(J,{className:"h-full w-full"}),jsxRuntime.jsxs("div",{className:"flex gap-4",children:[jsxRuntime.jsx(J,{className:"h-4 w-24"}),jsxRuntime.jsx(J,{className:"h-4 w-24"})]})]}),XN=({parentWidth:e,parentHeight:t,yFormatter:r={type:"number"},yDomain:o,referenceLines:n,isLoading:a=false,enableZoom:i=false,enableBrush:s=false,brushHeight:c=60,onZoomChange:l,zoomDomain:d,hiddenSeriesLabels:u,onHiddenSeriesChange:m,children:p})=>{let f=u!==void 0,g=d!==void 0,[b,x]=Ie.useState(null),[v,C]=Ie.useState(null),y=g?d:v,[S,N]=Ie.useState(()=>new Set),T=f?u:S,M=Ie.useRef(null),P=Ie.useRef(0),E=Ie.useRef(""),I=Ie.useRef(null),{colorMode:A}=Kt(),w=Ie.useMemo(()=>Ha(),[A]),k=Ie.useMemo(()=>md(),[A]),{datasets:H,seriesMetadata:G,categoryInfo:z,categoryColors:Y,categoryLabels:Z,seriesTypes:V}=Ie.useMemo(()=>{let le=Ie.Children.toArray(p).filter(Pe=>Ie.isValidElement(Pe)&&ax(Pe)),Fe=le.filter(Pe=>Pe.props.data).length,we=[],Ue=[],Qe=[],st=null,Ee=null;le.forEach((Pe,xt)=>{let Me=Pe.props;if(!Me.data)return;we.push(Me.data);let Zn=("color"in Me&&Me.color?Me.color:void 0)||(Fe===1?k:w[xt%w.length]),en=Pe.type===si;Ue.push({label:"label"in Me&&Me.label||`Series ${we.length}`,color:Zn,...en&&"baseline"in Me&&Me.baseline!==void 0?{baseline:Me.baseline,tooltipRange:"tooltipRange"in Me&&Me.tooltipRange||false}:{}});let Lc=en?"area":Pe.type===gi?"line":"bar";Qe.push(Lc),"categoryColors"in Me&&Me.categoryColors&&(st=Me.categoryColors),"categoryLabels"in Me&&Me.categoryLabels&&(Ee=Me.categoryLabels);});let lt=null;if(st){let Pe=new Set;we.forEach(xt=>{xt.forEach(Me=>{Me.category&&Pe.add(Me.category);});}),lt=Array.from(Pe).map(xt=>({label:Ee?.[xt]||xt,color:st[xt]||"#6b7280"}));}return {datasets:we,seriesMetadata:Ue,categoryInfo:lt,categoryColors:st,categoryLabels:Ee,seriesTypes:Qe}},[p,k,w,A]),O=e,R=s?c+8:0,D=t-60-R,F=Math.max(100,D),L=Ie.useCallback(q=>q?T.has(q):false,[T]),h=Ie.useMemo(()=>G.map((q,le)=>L(q.label)?null:le).filter(q=>q!==null),[G,L]),W=Ie.useMemo(()=>h.map(q=>H[q]).filter(q=>!!q),[H,h]),U=Ie.useMemo(()=>h.map(q=>G[q]).filter(q=>!!q),[G,h]),K=Ie.useMemo(()=>h.map(q=>V[q]).filter(q=>!!q),[V,h]),te=K.findIndex(q=>q==="bar"),ue=te!==-1,j=Ie.useCallback((q,le)=>{let Fe=q.has(le);if(!Fe&&G.reduce((Qe,st)=>q.has(st.label)||st.label===le?Qe:Qe+1,0)<1)return q;let we=new Set(q);return Fe?we.delete(le):we.add(le),we},[G]),ne=Ie.useCallback(q=>{if(f){let le=u;if(!le.has(q)&&G.reduce((Ue,Qe)=>le.has(Qe.label)||Qe.label===q?Ue:Ue+1,0)<1){x(null);return}m?.(we=>j(we,q));}else N(le=>j(le,q));x(null);},[f,u,m,G,j]),Se=Ie.useMemo(()=>G.map(q=>q.label).join(""),[G]),oe=Ie.useRef(Se);Ie.useEffect(()=>{oe.current!==Se&&(oe.current=Se,f||N(q=>q.size===0?q:new Set));},[Se,f]);let ae=Ie.useMemo(()=>W.flat(),[W]),pe=Ie.useMemo(()=>{if(ae.length===0)return null;let q=[...ae].sort((le,Fe)=>le.xValue.getTime()-Fe.xValue.getTime());return [q[0].xValue,q[q.length-1].xValue]},[ae]),be=y||pe,De=Ie.useCallback(q=>{g?l?.(q):C(q);},[g,l]),bt=Ie.useMemo(()=>be?H.map(le=>le.filter(Fe=>Fe.xValue>=be[0]&&Fe.xValue<=be[1])):H,[H,be]),$o=Ie.useMemo(()=>h.map(q=>bt[q]??[]),[h,bt]);Ie.useEffect(()=>{l&&l(y);},[y,l]);let So=Ie.useMemo(()=>h.flatMap(q=>bt[q]??[]),[bt,h]),re=Ie.useMemo(()=>Zu(So,F,r,o),[So,F,r,o]),xe=Ie.useMemo(()=>{let q=F-We.top-We.bottom;return ml(q)},[F]),Q=Ie.useMemo(()=>{let q=co(r),le=q.tickFormat||q.format,we=re.ticks(xe).map(st=>le(st)),Ue=ul(we,12,"system-ui"),Qe=Math.ceil(Ue)+12;return {...We,left:Math.max(Qe,30)}},[re,r,xe]),$=Ie.useMemo(()=>be?scale.scaleTime({domain:be,range:[Q.left,O-Q.right]}):Xu(ae,O),[be,ae,O,Q]),X=Ie.useCallback(q=>{if(!pe)return;let{scaleX:le,translateX:Fe}=q,we=O-Q.left-Q.right,[Ue,Qe]=pe,st=Qe.getTime()-Ue.getTime();if(st<=0){De(null);return}let Ee=-Fe,lt=Ee+we,Pe=we*le/st,xt=Ee/Pe,Me=lt/Pe,_o=new Date(Ue.getTime()+xt),Zn=new Date(Ue.getTime()+Me),en=Math.abs(_o.getTime()-Ue.getTime()),Lc=Math.abs(Zn.getTime()-Qe.getTime()),mm=st*.02;en<mm&&Lc<mm?De(null):De([_o,Zn]);},[pe,O,Q,De]),fe=Ie.useCallback(q=>{let{left:le}=M.current?.getBoundingClientRect()||{left:0},Fe=q.clientX-le;if(q.timeStamp-(P.current||0)<16)return;P.current=q.timeStamp;let we=$.invert(Fe),Ue=$o.map((Ee,lt)=>{if(!Ee||Ee.length===0)return null;let Pe=JN(Ee,we,1);if(Pe===0)return {point:Ee[0],index:0,datasetIndex:lt};if(Pe>=Ee.length)return {point:Ee[Ee.length-1],index:Ee.length-1,datasetIndex:lt};let xt=Ee[Pe-1],Me=Ee[Pe];if(!xt||!Me)return null;let _o=Math.abs(xt.xValue.getTime()-we.getTime()),Zn=Math.abs(Me.xValue.getTime()-we.getTime()),en=_o<Zn;return {point:en?xt:Me,index:en?Pe-1:Pe,datasetIndex:lt}}).filter(Ee=>Ee!==null&&U[Ee.datasetIndex]!==void 0).map(({point:Ee,index:lt,datasetIndex:Pe})=>({label:U[Pe].label,value:Ee.yValue,baselineValue:KN(U[Pe],Ee,lt),color:U[Pe].color,point:Ee,type:K[Pe]}));if(Ue.length===0){x(null);return}let Qe=$(Ue[0].point.xValue),st=Qe>(O-Q.right-Q.left)/2+Q.left;x({xValue:Ue[0].point.xValue,series:Ue.map(({label:Ee,value:lt,baselineValue:Pe,color:xt,point:Me,type:_o})=>({label:Ee,value:lt,...Pe!==void 0?{baselineValue:Pe}:{},chartY:Me.chartYValue??lt,showMarker:Me.showTooltipMarker??true,color:xt,type:_o,category:Me.category,categoryColor:Me.category&&Y?Y[Me.category]:void 0})),x:Qe,y:re(Ue[0].point.chartYValue??Ue[0].value),position:st?"left":"right"});},[$o,U,K,$,re,O,Y,Q]),ie=()=>{x(null);},Te=Ie.useCallback(()=>{De(null),I.current&&I.current.reset();},[De]),Ye=Ie.useCallback(q=>{if(!(I.current&&pe))return;let[le,Fe]=pe,we=Fe.getTime()-le.getTime();if(we<=0){I.current.reset();return}if(!q){I.current.reset();return}let[Ue,Qe]=q,st=Qe.getTime()-Ue.getTime();if(st<=0){I.current.reset();return}let Ee=we/st,lt=O-Q.left-Q.right,xt=-((Ue.getTime()-le.getTime())/we)*lt*Ee;I.current.setTransformMatrix({scaleX:Ee,scaleY:1,translateX:xt,translateY:0,skewX:0,skewY:0});},[pe,O,Q]),Nt=Ie.useCallback(q=>{De(q),Ye(q);},[De,Ye]);Ie.useEffect(()=>{g&&Ye(d??null);},[g,d,Ye]);let Fa={width:O,height:F,xScale:$,yScale:re,yFormatter:r,animationSettings:ub,tooltip:{data:b,show:x,hide:()=>x(null)},datasets:$o,seriesMetadata:U,seriesTypes:K,categoryColors:Y||void 0,categoryLabels:Z||void 0},Qo=Ie.Children.toArray(p),or=0,Xn=[],Xi=[];Qo.forEach(q=>{if(!Ie.isValidElement(q)){Xn.push(q);return}if(YN(q))Xi.push(q);else if(ax(q)){let le=or;or++;let Fe=q.props,we=G[le]?.label;if(L(we))return;Xn.push(Ie__namespace.default.cloneElement(q,{...Fe,data:bt[le]||Fe.data,color:G[le]?.color}));}else Xn.push(q);});let Jv=h.length,jv=(z||G).map(q=>{let le=!z&&L(q.label);return {category:q.label,fill:q.color,isHidden:le,isDisabled:!z&&!le&&Jv<=1}}),qv=xm({datasets:W,metadata:{xLabel:"Date",yLabel:"Value",seriesLabels:U.map(q=>q.label),timestamp:true},svgRef:M});if(a)return jsxRuntime.jsx(qN,{});if(H.length===0)return jsxRuntime.jsx(jN,{});let pm=jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("title",{children:"Data chart visualization"}),jsxRuntime.jsx("g",{children:re.ticks(xe).map(q=>{let le=Math.abs(q)<Number.EPSILON;return jsxRuntime.jsx(shape.Line,{from:{x:Q.left,y:re(q)},to:{x:O-Q.right,y:re(q)},stroke:le?"var(--color-border-default)":"var(--color-border-muted)",strokeWidth:le?1.5:1},`grid-line-${q}`)})}),Xn,n&&n.length>0&&jsxRuntime.jsx("g",{children:n.map(q=>{let le=re(q.value),Fe=q.color??"var(--color-error-base)";return jsxRuntime.jsxs("g",{children:[jsxRuntime.jsx(shape.Line,{from:{x:Q.left,y:le},to:{x:O-Q.right,y:le},stroke:Fe,strokeWidth:1.5,strokeDasharray:"6 4"}),q.label&&jsxRuntime.jsx("text",{x:O-Q.right-4,y:le-4,textAnchor:"end",fontSize:11,fill:Fe,children:q.label})]},`ref-line-${q.value}`)})}),jsxRuntime.jsx(qr.Bottom,{top:F-Q.bottom,scale:$,width:O-Q.left-Q.right}),jsxRuntime.jsx(qr.Left,{left:Q.left,scale:re,yFormatter:r,height:F-Q.top-Q.bottom}),b&&!b.isEvent&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[ue?(()=>{let q=W[te]??[];if(q.length===0)return null;let le=[...q].sort((Pe,xt)=>Pe.xValue.getTime()-xt.xValue.getTime()),Fe=le.findIndex(Pe=>Pe.xValue.getTime()===b.xValue.getTime()),we=le[Fe+1],Ue=le.length>1&&we?we.xValue.getTime()-b.xValue.getTime():15*6e4,Qe=Math.abs($(new Date(b.xValue.getTime()+Ue))-$(b.xValue)),Ee=$(b.xValue)-Qe/2,lt=re.range();return jsxRuntime.jsx("rect",{x:Ee,y:lt[1],width:Qe,height:lt[0]-lt[1],className:"fill-background-muted",opacity:.5,pointerEvents:"none",style:{transition:"all 100ms ease-out"}})})():null,b.series.filter(q=>q.type!=="bar"&&q.showMarker!==false).map(q=>jsxRuntime.jsxs("g",{children:[jsxRuntime.jsx("circle",{cx:$(b.xValue),cy:re(q.chartY??q.value),r:8,fill:"white",stroke:q.color,strokeWidth:2,style:{transition:"all 100ms ease-out"}}),jsxRuntime.jsx("circle",{cx:$(b.xValue),cy:re(q.chartY??q.value),r:4,fill:q.color,style:{transition:"all 100ms ease-out"}})]},`highlight-${q.label}`))]}),jsxRuntime.jsx("rect",{x:Q.left,y:Q.top,width:O-Q.left-Q.right,height:F-Q.top-Q.bottom,fill:"transparent",style:{cursor:i?"grab":"crosshair"},onMouseMove:fe,onMouseLeave:ie}),Xi]});return jsxRuntime.jsx("div",{className:"relative flex h-full flex-col",children:jsxRuntime.jsxs(Jr.Provider,{value:Fa,children:[i?jsxRuntime.jsx(zoom.Zoom,{width:O,height:F,scaleXMin:1,scaleXMax:20,scaleYMin:1,scaleYMax:1,constrain:q=>{let{scaleX:le,translateX:Fe}=q,we=Math.max(1,Math.min(20,le)),Ue=1,Qe=O-Q.left-Q.right,st=0,Ee=Qe*(1-we),lt=Math.max(Ee,Math.min(st,Fe));return {...q,scaleX:we,scaleY:Ue,translateX:lt,translateY:0}},children:q=>{if(I.current=q,q.transformMatrix){let{scaleX:le,translateX:Fe}=q.transformMatrix,we=`${le.toFixed(4)}-${Fe.toFixed(2)}`;we!==E.current&&(E.current=we,setTimeout(()=>{X(q.transformMatrix);},0));}return jsxRuntime.jsx("svg",{width:O,height:F,className:"overflow-visible",ref:le=>{M.current=le,q.containerRef.current!==le&&(q.containerRef.current=le);},role:"img","aria-label":"Data chart",style:{cursor:q.isDragging?"grabbing":"grab",touchAction:"none"},onMouseDown:q.dragStart,onMouseMove:q.dragMove,onMouseUp:q.dragEnd,onMouseLeave:()=>{q.isDragging&&q.dragEnd();},onTouchStart:q.dragStart,onTouchMove:q.dragMove,onTouchEnd:q.dragEnd,children:pm})}}):jsxRuntime.jsx("svg",{width:O,height:F,className:"overflow-visible",ref:M,role:"img","aria-label":"Data chart",children:pm}),jsxRuntime.jsx(fa,{data:b,formatter:r}),s&&pe&&jsxRuntime.jsx(Qu,{data:W,seriesMetadata:U,width:O,height:c,onBrushChange:Nt,brushRegion:y,margin:Q,...o?{yDomain:o}:{}}),jsxRuntime.jsx(gl,{onExport:qv,items:jv,marginLeft:0,marginRight:Q.right,isZoomed:y!==null,onResetZoom:Te,onLegendItemToggle:z?void 0:ne})]})})},sx=responsive.withParentSize(XN);var tk=e=>e.toLocaleString(),rk=e=>`${Math.round(e*100)}%`,ux=({data:e,width:t=800,height:r=400,padding:o=0,barGap:n=30,formatValue:a=tk,formatPercentage:i=rk,color:s,showScale:c=true,showOverallConversion:l=true,overallConversionLabel:d="Overall Conversion:",activeStageId:u,onStageClick:m,onStageHover:p,className:f,style:g,"aria-label":b="Funnel chart"})=>{let[x,v]=Ie.useState(null),[C,y]=Ie.useState(t),S=Ie.useRef(null),N=u??x,T=Ie.useId(),M=s||"var(--color-viz-default)";Ie.useEffect(()=>{if(!S.current)return;let k=new ResizeObserver(H=>{for(let G of H)y(G.contentRect.width);});return k.observe(S.current),()=>{k.disconnect();}},[]);let{layout:P,overallConversion:E}=Ie.useMemo(()=>{if(e.length===0)return {layout:[],overallConversion:0};let k=e[0].value,H=l?60:0,G=r-o*2-H,z=(e.length-1)*n,Y=(G-z)/e.length,Z=e.map((O,R)=>{let D=o+H+R*(Y+n),F=k===0?0:O.value/k,L=F,h=R===0?null:e[R-1].value,W=h==null||h===0?0:1-O.value/h;return {stage:O,index:R,y:D,barHeight:Y,widthPercent:F,conversionRate:L,dropOff:W}}),V=k===0?0:e[e.length-1].value/k;return {layout:Z,overallConversion:V,maxValue:k}},[e,C,r,o,n,c,l]);if(e.length===0)return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("flex h-full min-h-[280px] w-full items-center justify-center rounded-lg border border-dashed border-border-default bg-background-surface text-sm font-medium text-text-secondary",f),style:{width:t,height:r,...g},children:"No funnel data available"});let I=c?60:0,A=o+I,w=C-o*2-I;return jsxRuntime.jsx("div",{ref:S,className:tailwindMerge.twMerge("relative w-full overflow-hidden rounded-lg bg-background-surface",f),style:{height:r,...g},"aria-label":b,role:"img",children:jsxRuntime.jsxs("svg",{width:"100%",height:r,className:"relative",children:[jsxRuntime.jsxs("defs",{children:[jsxRuntime.jsx(gradient.LinearGradient,{id:`${T}-bar`,from:M,to:M,toOpacity:.85}),jsxRuntime.jsx(gradient.LinearGradient,{id:`${T}-bg`,from:M,to:M,fromOpacity:.01,toOpacity:.15,x1:"0",y1:"0",x2:"1",y2:"0"})]}),l&&jsxRuntime.jsxs("text",{x:A,y:o+20,className:"fill-text-primary text-sm font-medium",children:[jsxRuntime.jsx("tspan",{className:"fill-text-secondary",children:d})," ",i(E)]}),c&&jsxRuntime.jsx("g",{children:P.map(k=>{let H=k.y+k.barHeight/2;return jsxRuntime.jsx("text",{x:o+I-12,y:H,textAnchor:"end",dominantBaseline:"middle",className:"fill-text-secondary text-xs",children:i(k.conversionRate)},k.stage.id)})}),P.map(k=>{let H=N===k.stage.id,G=w*k.widthPercent;return jsxRuntime.jsxs("g",{children:[jsxRuntime.jsx("rect",{x:A,y:k.y,width:w,height:k.barHeight,fill:`url(#${T}-bg)`,rx:4}),jsxRuntime.jsx(framerMotion.motion.rect,{x:A,y:k.y,width:G,height:k.barHeight,fill:`url(#${T}-bar)`,rx:4,initial:{width:0},animate:{width:G},transition:{duration:.6,delay:k.index*.1,ease:"easeOut"},opacity:H||N==null?1:.5,style:{cursor:m||p?"pointer":"default",transition:"opacity 150ms ease"},onMouseEnter:()=>{v(k.stage.id),p?.(k.stage);},onMouseLeave:()=>{v(null),p?.(null);},onClick:()=>m?.(k.stage)}),jsxRuntime.jsx("rect",{x:A+10,y:k.y+k.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:k.y+k.barHeight/2+4,className:"fill-text-primary text-xs font-semibold",style:{pointerEvents:"none"},children:a(k.stage.value)}),jsxRuntime.jsxs("text",{x:A,y:k.y-8,className:"fill-text-secondary text-xs",style:{pointerEvents:"none"},children:[jsxRuntime.jsx("tspan",{children:k.index+1})," ",k.stage.label]}),k.stage.secondaryValue&&jsxRuntime.jsx("text",{x:A+16,y:k.y-24,className:"fill-text-secondary text-xs",style:{pointerEvents:"none"},children:k.stage.secondaryValue}),k.index>0&&k.dropOff>0&&jsxRuntime.jsxs("text",{x:A+w,y:k.y-8,textAnchor:"end",className:"fill-text-secondary text-xs",children:[i(k.dropOff)," drop"]}),k.stage.annotation&&jsxRuntime.jsxs("g",{children:[jsxRuntime.jsx("rect",{x:A+G+8,y:k.y+8,width:60,height:24,rx:3,className:"fill-background-muted"}),jsxRuntime.jsx("text",{x:A+G+16,y:k.y+20,className:"fill-text-secondary text-xs font-medium",children:k.stage.annotation})]})]},k.stage.id)})]})})};function ok(e,t,r){return {field:e,operator:t,value:r}}function nk(e,t="AND"){return {logic:t,conditions:e}}function xi(){return {logic:"AND",conditions:[]}}function vl(e){return !e||e.conditions.length===0?true:e.conditions.every(t=>"conditions"in t?vl(t):false)}function ak(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,d=[],u=[],m=[];for(let p of s)p.operator==="in"&&Array.isArray(p.value)?d.push(...p.value):p.operator==="eq"?typeof p.value!="boolean"&&!Array.isArray(p.value)?d.push(p.value):m.push(p):["gte","gt","lte","lt"].includes(p.operator)?u.push({operator:p.operator,value:typeof p.value=="boolean"||Array.isArray(p.value)?String(p.value):p.value}):m.push(p);if(d.length>0){let f=Array.from(new Set(d)).map(g=>c?.values?.find(x=>String(x.value)===String(g))?.label??g);a.push({id:`${i}-in`,label:l,value:f.join(", ")});}if(u.length>0){let p=u.find(g=>g.operator==="gte"||g.operator==="gt"),f=u.find(g=>g.operator==="lte"||g.operator==="lt");if(p&&f){let g=p.operator==="gte"?"\u2265":">",b=f.operator==="lte"?"\u2264":"<";a.push({id:`${i}-range`,label:l,value:`${g} ${p.value} and ${b} ${f.value}`});}else for(let g of u){let b;g.operator==="gte"?b="\u2265":g.operator==="gt"?b=">":g.operator==="lte"?b="\u2264":b="<",a.push({id:`${i}-${g.operator}`,label:l,value:`${b} ${g.value}`});}}for(let p of m){let f;p.operator==="neq"?f=`\u2260 ${p.value}`:p.operator==="contains"?f=`contains "${p.value}"`:p.operator==="startsWith"?f=`starts with "${p.value}"`:p.operator==="endsWith"?f=`ends with "${p.value}"`:f=String(p.value),a.push({id:`${i}-${p.operator}`,label:l,value:f});}}return a}function Ho(e,t){let r=e||xi();return {...r,conditions:[...r.conditions,t]}}function Tn(e,t){if(!e)return xi();let r=e.conditions.filter(o=>"conditions"in o?Tn(o,t).conditions.length>0:o.field!==t);return {...e,conditions:r}}function Pn(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 hi({count:e,label:t="results",isLoading:r=false,className:o=""}){if(r)return jsxRuntime.jsx("div",{className:`flex items-center ${o}`,children:jsxRuntime.jsx(J,{width:80,height:16})});let n=t.endsWith("s")?t.slice(0,-1):t,a=e===1?n:t;return jsxRuntime.jsxs("div",{className:`text-sm text-text-secondary whitespace-nowrap ${o}`,children:[e.toLocaleString()," ",a]})}var dk=e=>{let t=Mt({isInvalid:e.isInvalid,isDisabled:e.isDisabled,isFocused:e.isFocused,transparent:e.transparent,size:e.size}),r=[e.showSearchIcon?"":"pl-3",e.isClearable&&e.hasValue||e.isPassword?"pr-8":"pr-3"].join(" ");return tailwindMerge.twMerge(t,r,e.className)};function Nr({label:e,description:t,errorMessage:r,size:o="md",tooltip:n,isRequired:a,transparent:i,showSearchIcon:s,isClearable:c,onClear:l,type:d,validationResult:u,reserveErrorSpace:m=true,isLoading:p=false,descriptionPlacement:f="below",...g}){let[b,x]=Ie__namespace.default.useState(false),{isFocused:v,handleFocus:C,handleBlur:y}=wr(),S=d==="password",N=es(p,300);return jsxRuntime.jsx(reactAriaComponents.TextField,{...g,isRequired:a,className:ve(g.className,"group flex flex-col"),children:({isDisabled:T,isInvalid:M})=>jsxRuntime.jsxs("div",{className:"flex flex-col",children:[e&&jsxRuntime.jsx(Ae,{size:o,tooltip:n,description:f==="tooltip"||f==="inline"?t:void 0,descriptionPlacement:f,isRequired:a,children:e}),jsxRuntime.jsxs(mt,{children:[s&&jsxRuntime.jsx("div",{className:"pointer-events-none absolute top-1/2 -translate-y-1/2 transform flex items-center z-10",style:{left:9},children:(()=>{let P={sm:14,md:16,lg:18,xl:20}[o];return N?jsxRuntime.jsx(no,{size:P,color:"text-text-secondary"}):jsxRuntime.jsx(B,{name:"MagnifyingGlass",size:P,className:`transition-colors ${v?"text-action-brand":"text-text-secondary"}`})})()}),jsxRuntime.jsx(Bs,{size:o,disabled:T,type:S?b?"text":"password":d,value:g.value,defaultValue:g.defaultValue,placeholder:g.placeholder,onFocus:P=>C(P,g.onFocus),onBlur:P=>y(P,g.onBlur),onChange:P=>g.onChange?.(P.target.value),style:s?{paddingLeft:{sm:28,md:32,lg:36,xl:37}[o]}:void 0,className:dk({isInvalid:M,isDisabled:T,isFocused:v,size:o,transparent:i,showSearchIcon:s,isClearable:c,hasValue:!!g.value,isPassword:S,className:typeof g.className=="string"?g.className:void 0})}),c&&g.value&&!T&&jsxRuntime.jsx(ti,{onClick:()=>{l?l():g.onChange&&g.onChange("");},size:o}),S&&!T&&jsxRuntime.jsx("button",{type:"button",onClick:()=>x(!b),className:"absolute right-3 top-1/2 -translate-y-1/2 transform text-text-secondary hover:text-text-primary","aria-label":b?"Hide password":"Show password",onMouseDown:P=>{P.preventDefault(),P.stopPropagation();},children:jsxRuntime.jsx(B,{name:b?"EyeSlash":"Eye",size:o==="sm"?16:20,className:"text-text-primary"})})]}),m?jsxRuntime.jsx("div",{className:"mt-1 min-h-[20px]",children:typeof r=="string"?jsxRuntime.jsx(de,{size:o,children:r}):typeof r=="function"&&u?jsxRuntime.jsx(de,{size:o,children:r(u)}):t&&f==="below"?jsxRuntime.jsx(Ce,{size:o,children:t}):null}):jsxRuntime.jsx(jsxRuntime.Fragment,{children:typeof r=="string"?jsxRuntime.jsx(de,{size:o,className:"mt-1",children:r}):typeof r=="function"&&u?jsxRuntime.jsx(de,{size:o,className:"mt-1",children:r(u)}):t&&f==="below"?jsxRuntime.jsx(Ce,{size:o,className:"mt-1",children:t}):null})]})})}function Rn({value:e,onChange:t,onClear:r,placeholder:o="Search...",size:n="sm",className:a="",isLoading:i=false}){return jsxRuntime.jsx("div",{className:`flex-1 min-w-0 sm:max-w-sm ${a}`,children:jsxRuntime.jsx(Nr,{value:e,onChange:t,placeholder:o,showSearchIcon:true,isClearable:!!e&&!!r,onClear:r,size:n,"aria-label":o,reserveErrorSpace:false,isLoading:i})})}function yi({value:e,options:t,onChange:r,direction:o,onDirectionChange:n,showLabel:a=true,size:i="sm",className:s="",compact:c=false}){let[l,d]=Ie.useState(false),u=o!==void 0&&n!==void 0,m=t.find(p=>p.value===e);return c?jsxRuntime.jsxs("div",{className:`flex items-center gap-2 ${s}`,children:[jsxRuntime.jsx(_,{variant:"secondary",size:i,icon:"ArrowsDownUp","aria-label":`Sort by: ${m?.label||"Select"}`,onPress:()=>d(true)}),jsxRuntime.jsx(ot,{isOpen:l,onClose:()=>d(false),title:"Sort by",contentPadding:false,children:jsxRuntime.jsx(reactAriaComponents.ListBox,{items:t.map(p=>({id:p.value,label:p.label,value:p.value})),className:"w-full bg-background-surface p-0 outline-0 [&_[role=option]]:border-b [&_[role=option]]:border-border-default [&_[role=option]:last-child]:border-0 [&_[role=option]]:!px-6 [&_[role=option]]:!py-4 [&_[role=option]]:rounded-none",selectionMode:"single",selectedKeys:e?[e]:[],onSelectionChange:p=>{let f=Array.from(p)[0];f!=null&&(r(f),d(false));},children:p=>jsxRuntime.jsx(qt,{id:p.id,textValue:p.label,children:jsxRuntime.jsx("span",{className:"overflow-hidden text-ellipsis whitespace-nowrap min-w-0 flex-1",children:p.label})},p.id)})})]}):jsxRuntime.jsxs("div",{className:`flex items-center gap-2 ${s}`,children:[a&&jsxRuntime.jsx("span",{className:"text-sm text-text-secondary whitespace-nowrap",children:"Sort by:"}),jsxRuntime.jsx(fn,{selectedKey:e,onSelectionChange:p=>r(p),size:i,className:"min-w-32",items:t.map(p=>({id:p.value,label:p.label,value:p.value})),renderItem:p=>p.label,"aria-label":"Sort by",reserveErrorSpace:false}),u&&jsxRuntime.jsx(_,{variant:"ghost",size:i,onClick:()=>n(o==="asc"?"desc":"asc"),"aria-label":`Sort ${o==="asc"?"descending":"ascending"}`,className:"p-1.5",children:o==="asc"?jsxRuntime.jsx(lucideReact.ArrowUp,{className:"w-4 h-4"}):jsxRuntime.jsx(lucideReact.ArrowDown,{className:"w-4 h-4"})})]})}function bx({search:e,searchMobileMode:t="expanded",filters:r=[],onRemoveFilter:o,onClearAllFilters:n,onManageFilters:a,exportControl:i,maxVisibleFilterChips:s=3,sort:c,resultsCount:l,leftControls:d,onManageColumns:u,columnPicker:m,customControls:p,actions:f,interactionMode:g="auto",sticky:b,stickyTop:x="0",zIndex:v=10,className:C="",style:y}){let S=r.length>0;if(!(e||S||a||c||l||d||u||m||p||f||i))return null;let T=b?"sticky bg-background-surface":"",M=b?{top:x,zIndex:v}:{};return jsxRuntime.jsxs("div",{className:`@container flex flex-col gap-3 bg-background-surface py-3 border-b border-border-default ${T} ${C}`,style:{...y,...M},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:[d,d&&l&&jsxRuntime.jsx("div",{className:"h-4 w-px bg-border-default"}),l&&jsxRuntime.jsx(hi,{count:l.count,label:l.label,isLoading:l.isLoading}),l&&c&&jsxRuntime.jsx("div",{className:"h-4 w-px bg-border-default"}),c&&jsxRuntime.jsx(yi,{value:c.value,options:c.options,onChange:c.onChange,showLabel:c.showLabel,direction:c.direction,onDirectionChange:c.onDirectionChange}),u?jsxRuntime.jsx(_,{variant:"secondary",size:"sm",icon:"Columns",onClick:u,children:"Columns"}):m,S&&o&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[r.slice(0,s).map(P=>jsxRuntime.jsxs(Kr,{variant:"primary",size:"sm",onRemove:()=>o(P.id),isRemovable:true,children:[P.label,": ",P.value]},P.id)),r.length>s&&a&&jsxRuntime.jsxs(_,{variant:"ghost",size:"sm",onClick:a,className:"text-text-secondary hover:text-text-primary whitespace-nowrap",children:["+",r.length-s," more"]}),n&&jsxRuntime.jsx(_,{variant:"ghost",size:"sm",onClick:n,className:"text-text-secondary hover:text-text-primary whitespace-nowrap",children:"Clear all"})]})]}),jsxRuntime.jsx("div",{className:"flex items-center gap-3 flex-shrink-0",children:p||jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[f&&f.items.length>0&&jsxRuntime.jsx(jsxRuntime.Fragment,{children:f.items.map(P=>jsxRuntime.jsx(_,{variant:P.variant||"secondary",size:"sm",icon:P.icon,onPress:P.onClick,isDisabled:P.disabled,children:P.label},P.id))}),e&&jsxRuntime.jsx("div",{className:"w-64",children:jsxRuntime.jsx(Rn,{value:e.value,onChange:e.onChange,onClear:e.onClear,placeholder:e.placeholder,isLoading:e.isLoading})}),a&&jsxRuntime.jsx(_,{variant:"secondary",size:"sm",icon:"Sliders",badgeNumber:r.length>0?r.length:void 0,onClick:a,children:"Filters"}),i&&jsxRuntime.jsx(_,{variant:"secondary",size:"sm",icon:"Upload",onClick:i.onClick,isDisabled:i.isDisabled,children:i.label})]})})]}),jsxRuntime.jsxs("div",{className:"@[640px]:hidden",children:[jsxRuntime.jsx("div",{className:"flex flex-col gap-3 mb-3",children:jsxRuntime.jsx("div",{className:"flex items-center gap-3",children:p?jsxRuntime.jsx("div",{className:"flex-1",children:p}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[f&&f.items.length>0&&jsxRuntime.jsx(na,{items:f.items.map(P=>({id:P.id,name:P.label,iconName:P.icon,variant:P.variant==="destructive"?"destructive":"primary",disabled:P.disabled,onAction:P.onClick})),align:"left",size:"sm",children:jsxRuntime.jsx(_,{variant:"secondary",size:"sm",icon:"DotsThreeVertical","aria-label":f.menuLabel||"Actions"})}),e&&jsxRuntime.jsx("div",{className:"flex-1",children:jsxRuntime.jsx(Rn,{value:e.value,onChange:e.onChange,onClear:e.onClear,placeholder:e.placeholder,isLoading:e.isLoading})}),a&&jsxRuntime.jsx(_,{variant:"secondary",size:"sm",icon:"Sliders",badgeNumber:r.length>0?r.length:void 0,onClick:a,"aria-label":`Filters${r.length>0?` (${r.length} active)`:""}`}),i&&jsxRuntime.jsx(_,{variant:"secondary",size:"sm",icon:"Upload",onClick:i.onClick,isDisabled:i.isDisabled,children:i.label})]})})}),jsxRuntime.jsxs("div",{className:"flex items-center justify-between gap-3",children:[jsxRuntime.jsxs("div",{className:"flex items-center gap-3",children:[d,l&&jsxRuntime.jsx(hi,{count:l.count,label:l.label,isLoading:l.isLoading})]}),jsxRuntime.jsx("div",{className:"flex items-center gap-2",children:c&&jsxRuntime.jsx(yi,{value:c.value,options:c.options,onChange:c.onChange,showLabel:false,direction:c.direction,onDirectionChange:c.onDirectionChange,compact:g!=="desktop"})})]})]})]})}function xx({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,d=e.slice(0,n),u=Math.max(0,e.length-n),m=u>0,p=a==="button"&&!!o,f=a==="chips"&&i&&!!o;if(!l&&!p&&!f)return null;let g=p&&jsxRuntime.jsxs(_,{variant:"secondary",size:s,onClick:o,className:"whitespace-nowrap",children:[e.length," ",e.length===1?"filter":"filters"]}),b=jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[f&&jsxRuntime.jsx(_,{variant:"secondary",size:s,icon:"Sliders",onClick:o,className:"whitespace-nowrap",children:"Filters"}),l&&d.map(v=>jsxRuntime.jsxs(Kr,{variant:"secondary",size:s,onRemove:()=>t(v.id),isRemovable:true,children:[v.label,": ",v.value]},v.id)),l&&m&&o&&jsxRuntime.jsxs(_,{variant:"ghost",size:s,onClick:o,className:"text-text-secondary hover:text-text-primary whitespace-nowrap",children:["+",u," more"]}),l&&r&&jsxRuntime.jsx(_,{variant:"ghost",size:s,onClick:r,className:"text-text-secondary hover:text-text-primary whitespace-nowrap",children:"Clear all"})]}),x=a==="button"?g:b;return jsxRuntime.jsx("div",{className:`flex flex-wrap items-center gap-2 ${c}`,children:x})}function yx({label:e,description:t,errorMessage:r,size:o="md",tooltip:n,isRequired:a,isDisabled:i,isInvalid:s,showCalendar:c=true,reserveErrorSpace:l=true,validationResult:d,className:u,...m}){let[p,f]=Ie.useState(false),g=b=>{m.onChange&&b&&m.onChange(b),f(false);};return jsxRuntime.jsxs(reactAriaComponents.DateField,{...m,isDisabled:i,isRequired:a,isInvalid:s,className:ve(u,"flex flex-col gap-1"),children:[e&&jsxRuntime.jsx(Ae,{size:o,tooltip:n,isRequired:a,children:e}),jsxRuntime.jsx(mt,{children:jsxRuntime.jsxs("div",{className:"relative w-full",children:[jsxRuntime.jsx(vi,{size:o,isDisabled:i,isInvalid:s,hasCalendar:c}),c&&!i&&jsxRuntime.jsxs(reactAriaComponents.DialogTrigger,{isOpen:p,onOpenChange:f,children:[jsxRuntime.jsx(_,{variant:"unstyled",className:"absolute right-2 top-1/2 -translate-y-1/2 flex h-8 w-8 items-center justify-center rounded hover:bg-background-hover text-text-secondary hover:text-text-primary transition-colors","aria-label":"Open calendar",children:jsxRuntime.jsx(B,{name:"Calendar",size:18})}),jsxRuntime.jsx(reactAriaComponents.Popover,{className:"bg-background-surface rounded-lg border border-border-default shadow-xl",children:jsxRuntime.jsx(reactAriaComponents.Dialog,{className:"p-4 outline-none",children:jsxRuntime.jsx(la,{value:m.value,onChange:g,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(de,{size:o,children:r}):typeof r=="function"&&d?jsxRuntime.jsx(de,{size:o,children:r(d)}):t?jsxRuntime.jsx(Ce,{size:o,children:t}):null}):jsxRuntime.jsx(jsxRuntime.Fragment,{children:typeof r=="string"?jsxRuntime.jsx(de,{size:o,className:"mt-1",children:r}):typeof r=="function"&&d?jsxRuntime.jsx(de,{size:o,className:"mt-1",children:r(d)}):t?jsxRuntime.jsx(Ce,{size:o,className:"mt-1",children:t}):null})]})}function Nk({isPlaceholder:e,isDisabled:t,size:r="md"}){return tailwindMerge.twMerge("inline-block box-content px-0.5 rounded outline-none tabular-nums text-center transition-colors",{sm:"text-base md:text-xs",md:"text-base md:text-sm",lg:"text-base",xl:"text-lg"}[r],e?"text-text-disabled italic":"text-text-primary",t?"text-text-disabled cursor-not-allowed":"cursor-text",!t&&"hover:bg-background-hover","data-[focused]:bg-background-selected data-[focused]:text-text-primary")}function vi({size:e="md",isDisabled:t,isInvalid:r,hasCalendar:o,className:n,...a}){return jsxRuntime.jsx(reactAriaComponents.DateInput,{className:tailwindMerge.twMerge(Mo({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:Nk({isPlaceholder:i.isPlaceholder,isDisabled:!i.isEditable||t,size:e})})})}function Mk({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-primary group-hover:bg-background-muted group-pressed:bg-background-muted",middle:["bg-background-selected group-hover:bg-background-muted forced-colors:group-hover:bg-[Highlight]","group-invalid:group-hover:bg-feedback-error-background forced-colors:group-invalid:group-hover:bg-[Mark]","group-pressed:bg-background-muted forced-colors:group-pressed:bg-[Highlight] forced-colors:text-[HighlightText]","group-invalid:group-pressed:bg-feedback-error-background forced-colors:group-invalid:group-pressed:bg-[Mark]"].join(" "),cap:"bg-action-default text-[color:var(--color-action-default-text)] group-invalid:bg-feedback-error-border forced-colors:bg-[Highlight] forced-colors:group-invalid:bg-[Mark] forced-colors:text-[HighlightText]"},n=t?"text-text-disabled forced-colors:text-text-disabled font-light":"";return [r,o[e],n].filter(Boolean).join(" ")}function ha({errorMessage:e,...t}){return jsxRuntime.jsxs(reactAriaComponents.RangeCalendar,{...t,children:[jsxRuntime.jsx(Ys,{}),jsxRuntime.jsxs(reactAriaComponents.CalendarGrid,{className:"w-full border-separate [border-spacing:0] [&_td]:p-0 [&_td]:!border-0",children:[jsxRuntime.jsx(Ks,{}),jsxRuntime.jsx(reactAriaComponents.CalendarGridBody,{children:r=>jsxRuntime.jsx(reactAriaComponents.CalendarCell,{date:r,className:"selection-start:rounded-s-full selection-end:rounded-e-full [td:last-child_&]:rounded-e-end group h-9 w-9 cursor-default text-sm border-0 outside-month:text-text-disabled invalid:selected:bg-feedback-error-background forced-colors:selected:bg-[Highlight] forced-colors:selected:text-[HighlightText] forced-colors:invalid:selected:bg-[Mark] [td:first-child_&]:rounded-s-full [&]:border-0",children:({formattedDate:o,isSelected:n,isSelectionStart:a,isSelectionEnd:i,isFocusVisible:s,isDisabled:c})=>jsxRuntime.jsx("span",{className:Mk({selectionState:n&&(a||i)?"cap":n?"middle":"none",isDisabled:c}),children:o})})})]}),e&&jsxRuntime.jsx(reactAriaComponents.Text,{slot:"errorMessage",className:"text-sm text-feedback-error-text",children:e})]})}function wl({label:e,description:t,errorMessage:r,...o}){return jsxRuntime.jsxs(reactAriaComponents.DateRangePicker,{...o,className:ve(o.className,"group flex flex-col gap-1"),children:[e&&jsxRuntime.jsx(Ae,{children:e}),jsxRuntime.jsxs(vg,{className:"w-auto min-w-[208px]",children:[jsxRuntime.jsx(vi,{slot:"start",className:"px-2 py-1.5 text-sm"}),jsxRuntime.jsx("span",{"aria-hidden":"true",className:"text-text-primary group-disabled:text-text-disabled forced-colors:text-[ButtonText] group-disabled:forced-colors:text-[GrayText]",children:"\u2013"}),jsxRuntime.jsx(vi,{slot:"end",className:"flex-1 px-2 py-1.5 text-sm"}),jsxRuntime.jsx(_,{variant:"icon",className:"mr-1 w-6 rounded outline-offset-0",children:jsxRuntime.jsx(lucideReact.CalendarIcon,{"aria-hidden":true,className:"h-4 w-4"})})]}),t&&jsxRuntime.jsx(Ce,{children:t}),typeof r=="string"?jsxRuntime.jsx(de,{children:r}):null,jsxRuntime.jsx(rt,{children:jsxRuntime.jsx(ha,{})})]})}var Ok=e=>{let t=Mt({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 Ci({label:e,description:t,errorMessage:r,size:o="md",tooltip:n,isRequired:a,transparent:i,validationResult:s,reserveErrorSpace:c=true,descriptionPlacement:l="below",...d}){let u=Ie.useId(),{isFocused:m,handleFocus:p,handleBlur:f}=wr();return jsxRuntime.jsx(reactAriaComponents.NumberField,{...d,id:u,isRequired:a,className:ve(d.className,"group flex flex-col gap-1"),step:d.step??1,onChange:g=>{typeof g=="number"&&(d.maxValue!=null&&g>d.maxValue?d.onChange?.(d.maxValue):d.minValue!=null&&g<d.minValue?d.onChange?.(d.minValue):d.onChange?.(g));},isInvalid:!!r||typeof d.value=="number"&&(d.maxValue!=null&&d.value>d.maxValue||d.minValue!=null&&d.value<d.minValue),children:({isDisabled:g,isInvalid:b})=>jsxRuntime.jsxs("div",{className:"flex flex-col gap-1",children:[e&&jsxRuntime.jsx(Ae,{size:o,tooltip:n,description:l==="tooltip"||l==="inline"?t:void 0,descriptionPlacement:l,isRequired:a,htmlFor:u,children:e}),jsxRuntime.jsx("div",{className:"relative",children:jsxRuntime.jsxs(reactAriaComponents.Group,{className:"relative",children:[jsxRuntime.jsx(reactAriaComponents.Input,{onFocus:v=>p(v,d.onFocus),onBlur:v=>f(v,d.onBlur),className:Ok({isInvalid:b||!!r,isDisabled:g,isFocused:m,transparent:i,size:o,className:typeof d.className=="string"?d.className:void 0})}),jsxRuntime.jsxs("div",{className:"absolute inset-y-[2px] right-[2px] flex flex-col divide-y divide-border-default border-l border-border-default overflow-hidden rounded-r-[calc(var(--control-border-radius)-2px)]",children:[jsxRuntime.jsx(reactAriaComponents.Button,{slot:"increment",isDisabled: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(B,{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(B,{name:"CaretDown",size:14})})]})]})}),c?jsxRuntime.jsx("div",{className:"mt-1 min-h-[20px]",children:r?jsxRuntime.jsx(de,{size:o,children:typeof r=="function"?r(s):r}):t&&l==="below"?jsxRuntime.jsx(Ce,{size:o,children:t}):null}):jsxRuntime.jsx(jsxRuntime.Fragment,{children:r?jsxRuntime.jsx(de,{size:o,className:"mt-1",children:typeof r=="function"?r(s):r}):t&&l==="below"?jsxRuntime.jsx(Ce,{size:o,className:"mt-1",children:t}):null})]})})}var ap={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 Gk({isSelected:e,isDisabled:t,size:r="md"}){let o="flex px-px items-center shrink-0 cursor-default rounded-full transition duration-200 ease-in-out shadow-inner border border-transparent",n=ap[r].track,a=Ke,i="focus-visible:outline-action-primary",s="";return e?s="bg-action-primary forced-colors:!bg-[Highlight] group-pressed:bg-action-primary-hover":s="bg-border-input group-pressed:bg-border-focus",[o,n,a,i,s,t?"bg-background-muted forced-colors:group-selected:!bg-[GrayText] forced-colors:border-[GrayText]":""].filter(Boolean).join(" ")}function Uk({isSelected:e,isDisabled:t,size:r="md"}){let o="transform rounded-full bg-background-surface outline-none shadow transition duration-200 ease-in-out",n=ap[r].handle;return [o,n,e?"translate-x-[100%]":"translate-x-0",t?"forced-colors:outline-[GrayText]":""].filter(Boolean).join(" ")}function Nl({children:e,variant:t="primary",size:r="md",...o}){return jsxRuntime.jsx(reactAriaComponents.Switch,{...o,className:ve(o.className,`group flex items-center gap-2 ${ap[r].text} text-text-primary transition disabled:text-text-disabled forced-colors:disabled:text-[GrayText]`),children:n=>jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("div",{className:Gk({...n,size:r}),children:jsxRuntime.jsx("span",{className:Uk({...n,size:r})})}),e]})})}function wx(e){return new Intl.NumberFormat("en-US").format(e)}function Nx({isOpen:e,onClose:t,facetConfigs:r,facetCounts:o={},currentFilters:n,onApply:a,onClear:i,title:s="Filters",resultCount:c}){let[l,d]=Ie.useState(n),[u,m]=Ie.useState({}),[p,f]=Ie.useState({}),[g,b]=Ie.useState(null),{isMobile:x}=Gt(),v=Ie.useMemo(()=>r.some(h=>h.group),[r]),{groups:C,ungroupedFacets:y,facetsByGroup:S}=Ie.useMemo(()=>{let h=new Set,W=[],U={};for(let K of r)K.group?(h.has(K.group)||(h.add(K.group),U[K.group]=[]),U[K.group].push(K)):W.push(K);return {groups:Array.from(h),ungroupedFacets:W,facetsByGroup:U}},[r]);Ie.useEffect(()=>{e&&(d(n),m({}),f({}),b(!x&&C.length>0?C[0]:null));},[e,n,C,x]);let N=Ie.useMemo(()=>!l||vl(l)?0:Pn(l).length,[l]),T=()=>{a(l),t();},M=()=>{let h=xi();d(h),i?i():a(h),t();},P=h=>{if(!l)return [];if(!Pn(l).includes(h))return [];let U=[];function K(te){if(te)for(let ue of te.conditions)"conditions"in ue?K(ue):ue.field===h&&ue.operator==="in"&&Array.isArray(ue.value)&&U.push(...ue.value.map(String));}return K(l),U},E=(h,W,U)=>{let K=Tn(l,h);W!==void 0&&(K=Ho(K,{field:h,operator:"gte",value:W})),U!==void 0&&(K=Ho(K,{field:h,operator:"lte",value:U})),d(K);},I=h=>{if(!l)return;let W;function U(K){if(K)for(let te of K.conditions)"conditions"in te?U(te):te.field===h&&te.operator==="eq"&&typeof te.value=="boolean"&&(W=te.value);}return U(l),W},A=(h,W)=>{let U=Tn(l,h);W!==void 0&&(U=Ho(U,{field:h,operator:"eq",value:W})),d(U);},w=(h,W,U)=>{let K=Tn(l,h);W&&(K=Ho(K,{field:h,operator:"gte",value:W.toString()})),U&&(K=Ho(K,{field:h,operator:"lte",value:U.toString()})),d(K);},k=h=>{let W=S[h]||[],U=l?Pn(l):[];return W.filter(K=>U.includes(K.field)).length},H="pr-9 bg-background-muted/50",G="border-t border-border-muted",z="text-sm font-medium text-text-link-default",Y=h=>jsxRuntime.jsx("span",{className:z,children:h}),Z=h=>{let W=o[h.field]||{},U=u[h.field]||"",K=[];h.values?K=h.values.map(j=>({value:String(j.value),label:j.label,count:W[String(j.value)]})):K=Object.entries(W).map(([j,ne])=>({value:j,label:j,count:ne}));let te=K.length;if(U){let j=U.toLowerCase();K=K.filter(ne=>ne.label.toLowerCase().includes(j));}K.sort((j,ne)=>j.count!==void 0&&ne.count!==void 0&&ne.count!==j.count?ne.count-j.count:j.label.localeCompare(ne.label));let ue=h.type||"string";if(ue==="string"||!h.type){let j=P(h.field),ne=h.searchThreshold??10,Se=h.maxVisibleOptions??50,oe=p[h.field]??false,ae=oe||K.length<=Se?K:K.slice(0,Se),pe=K.length>Se&&!oe;return jsxRuntime.jsxs(Fo,{id:h.field,children:[jsxRuntime.jsx(Bo,{title:h.label,description:h.description,className:H,endContent:j.length>0?Y(`${j.length} selected`):void 0}),jsxRuntime.jsx(Vo,{className:G,children:jsxRuntime.jsxs("div",{className:"space-y-4 pt-4 pb-4",children:[te>ne&&jsxRuntime.jsx(Rn,{value:U,onChange:be=>m(De=>({...De,[h.field]:be})),onClear:()=>m(be=>({...be,[h.field]:""})),placeholder:`Search ${h.label.toLowerCase()}...`,size:"sm",className:"w-full !max-w-none pr-4"}),jsxRuntime.jsx(Ru,{value:j,onChange:be=>{let De=Tn(l,h.field);be.length>0&&(De=Ho(De,{field:h.field,operator:"in",value:be})),d(De);},children:jsxRuntime.jsx("div",{className:"space-y-1.5",children:ae.map(be=>jsxRuntime.jsx("div",{className:"rounded-md py-2 pr-4 transition-colors hover:bg-background-hover",children:jsxRuntime.jsx(yn,{value:be.value,children:jsxRuntime.jsxs("div",{className:"flex items-center justify-between gap-3 flex-1",children:[h.renderLabel?h.renderLabel(be.value,be.label):jsxRuntime.jsx("span",{className:"text-sm font-medium text-text-primary",children:be.label}),be.count!==void 0&&jsxRuntime.jsx("span",{className:"text-xs font-medium text-text-secondary tabular-nums",children:wx(be.count)})]})})},be.value))})}),pe&&jsxRuntime.jsx("div",{className:"pt-2 border-t border-border-muted",children:jsxRuntime.jsxs(_,{variant:"ghost",size:"sm",onPress:()=>f(be=>({...be,[h.field]:true})),className:"w-full",children:["Show all ",K.length," options"]})}),oe&&K.length>Se&&jsxRuntime.jsx("div",{className:"pt-2 border-t border-border-muted",children:jsxRuntime.jsx(_,{variant:"ghost",size:"sm",onPress:()=>f(be=>({...be,[h.field]:false})),className:"w-full",children:"Show less"})})]})})]},h.field)}if(ue==="number"){let j,ne,Se=ae=>{if(ae)for(let pe of ae.conditions)"conditions"in pe?Se(pe):pe.field===h.field&&(pe.operator==="gte"&&typeof pe.value=="number"&&(j=pe.value),pe.operator==="lte"&&typeof pe.value=="number"&&(ne=pe.value));};Se(l);let oe=j!==void 0||ne!==void 0;return jsxRuntime.jsxs(Fo,{id:h.field,children:[jsxRuntime.jsx(Bo,{title:h.label,description:h.description,className:H,endContent:oe?Y(j!==void 0&&ne!==void 0?`${j} - ${ne}`:j!==void 0?`\u2265 ${j}`:`\u2264 ${ne}`):void 0}),jsxRuntime.jsx(Vo,{className:G,children:jsxRuntime.jsxs("div",{className:"grid grid-cols-2 gap-4 pt-4 pb-4",children:[jsxRuntime.jsx(Ci,{label:"Min",value:j,onChange:ae=>E(h.field,ae,ne)},`${h.field}-min`),jsxRuntime.jsx(Ci,{label:"Max",value:ne,onChange:ae=>E(h.field,j,ae)},`${h.field}-max`)]})})]},h.field)}if(ue==="boolean"){let j=I(h.field);return jsxRuntime.jsxs(Fo,{id:h.field,children:[jsxRuntime.jsx(Bo,{title:h.label,description:h.description,className:H,endContent:j!==void 0?Y(j?"Yes":"No"):void 0}),jsxRuntime.jsx(Vo,{className:G,children:jsxRuntime.jsxs("div",{className:"flex items-center justify-between pt-4 pb-4",children:[jsxRuntime.jsx("span",{className:"text-sm font-medium text-text-primary",children:j!==void 0?j?"Enabled":"Disabled":"No filter applied"}),jsxRuntime.jsx(Nl,{size:"lg",isSelected:j??false,onChange:ne=>A(h.field,ne?true:void 0),children:j?"Yes":"No"})]})})]},h.field)}if(ue==="date"){let j,ne,Se=De=>{if(De)for(let bt of De.conditions)"conditions"in bt?Se(bt):bt.field===h.field&&(bt.operator==="gte"&&(j=String(bt.value)),bt.operator==="lte"&&(ne=String(bt.value)));};Se(l);let oe=j!==void 0||ne!==void 0,ae=De=>{if(De)try{return /^\d{4}-\d{2}-\d{2}$/.test(De)?ei(De):void 0}catch{return}},pe=ae(j),be=ae(ne);return jsxRuntime.jsxs(Fo,{id:h.field,children:[jsxRuntime.jsx(Bo,{title:h.label,description:h.description,className:H,endContent:oe?Y("Date range selected"):void 0}),jsxRuntime.jsx(Vo,{className:G,children:jsxRuntime.jsx("div",{className:"pt-4 pb-4",children:jsxRuntime.jsx(wl,{label:"Date Range",value:pe&&be?{start:pe,end:be}:void 0,onChange:De=>{De?w(h.field,De.start,De.end):w(h.field,void 0,void 0);}})})})]},h.field)}return null},V=()=>jsxRuntime.jsxs("div",{className:"flex flex-col",children:[y.map(h=>{let U=(l?Pn(l):[]).includes(h.field);return jsxRuntime.jsxs("button",{type:"button",onClick:()=>b(`__ungrouped__${h.field}`),className:"flex items-center justify-between px-6 py-3 text-left hover:bg-background-hover border-b border-border-muted transition-colors",children:[jsxRuntime.jsx("span",{className:"text-sm font-medium text-text-primary",children:h.label}),jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[U&&jsxRuntime.jsx("span",{className:z,children:"1 active"}),jsxRuntime.jsx(B,{name:"CaretRight",size:"sm",className:"text-text-secondary"})]})]},h.field)}),C.map(h=>{let W=k(h);return jsxRuntime.jsxs("button",{type:"button",onClick:()=>b(h),className:"flex items-center justify-between px-6 py-3 text-left hover:bg-background-hover border-b border-border-muted transition-colors",children:[jsxRuntime.jsx("span",{className:"text-sm font-medium text-text-primary",children:h}),jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[W>0&&jsxRuntime.jsxs("span",{className:z,children:[W," active"]}),jsxRuntime.jsx(B,{name:"CaretRight",size:"sm",className:"text-text-secondary"})]})]},h)})]}),O=h=>{if(h.startsWith("__ungrouped__")){let U=h.replace("__ungrouped__",""),K=y.find(te=>te.field===U);return K?jsxRuntime.jsx(ca,{variant:"contained",density:"comfortable",showDividers:true,defaultExpandedKeys:[K.field],children:Z(K)}):null}let W=S[h]||[];return W.length===0?null:jsxRuntime.jsx(ca,{variant:"contained",density:"comfortable",showDividers:true,defaultExpandedKeys:[W[0].field],children:W.map(U=>Z(U))})},R=()=>{if(g){let h=g.startsWith("__ungrouped__")&&y.find(W=>W.field===g.replace("__ungrouped__",""))?.label||g;return jsxRuntime.jsxs("div",{className:"flex flex-col h-full",children:[jsxRuntime.jsxs("button",{type:"button",onClick:()=>b(null),className:"flex items-center gap-2 px-4 py-3 border-b border-border-muted hover:bg-background-hover transition-colors",children:[jsxRuntime.jsx(B,{name:"CaretLeft",size:"sm",className:"text-text-secondary"}),jsxRuntime.jsx("span",{className:"text-sm font-medium text-text-primary",children:h})]}),jsxRuntime.jsx("div",{className:"flex-1 overflow-y-auto",children:O(g)})]})}return V()},D=()=>jsxRuntime.jsxs("div",{className:"flex h-full",children:[jsxRuntime.jsxs("div",{className:"w-48 flex-shrink-0 border-r border-border-muted overflow-y-auto bg-background-muted/30",children:[y.map(h=>{let U=(l?Pn(l):[]).includes(h.field),K=g===`__ungrouped__${h.field}`;return jsxRuntime.jsxs("button",{type:"button",onClick:()=>b(`__ungrouped__${h.field}`),className:`flex items-center justify-between w-full px-4 py-3 text-left border-b border-border-muted transition-colors ${K?"bg-background-selected":"hover:bg-background-hover"}`,children:[jsxRuntime.jsx("span",{className:`text-sm truncate ${K?"font-semibold text-text-primary":"font-medium text-text-primary"}`,children:h.label}),U&&jsxRuntime.jsx("span",{className:"w-2 h-2 rounded-full bg-action-primary flex-shrink-0 ml-2"})]},h.field)}),C.map(h=>{let W=k(h),U=g===h;return jsxRuntime.jsxs("button",{type:"button",onClick:()=>b(h),className:`flex items-center justify-between w-full px-4 py-3 text-left border-b border-border-muted transition-colors ${U?"bg-background-selected":"hover:bg-background-hover"}`,children:[jsxRuntime.jsx("span",{className:`text-sm truncate ${U?"font-semibold text-text-primary":"font-medium text-text-primary"}`,children:h}),W>0&&jsxRuntime.jsx("span",{className:"w-2 h-2 rounded-full bg-action-primary flex-shrink-0 ml-2"})]},h)})]}),jsxRuntime.jsx("div",{className:"flex-1 overflow-y-auto",children:g?O(g):jsxRuntime.jsx("div",{className:"flex items-center justify-center h-full text-text-secondary text-sm",children:"Select a category to view filters"})})]}),F=()=>jsxRuntime.jsx(ca,{variant:"contained",density:"comfortable",showDividers:true,defaultExpandedKeys:[r[0].field],children:r.map(h=>Z(h))});return jsxRuntime.jsx(yr,{isOpen:e,onClose:t,title:v&&x&&g?g.startsWith("__ungrouped__")?y.find(h=>h.field===g.replace("__ungrouped__",""))?.label||s:g:N>0?`${s} (${N} active)`:s,hideCloseIcon:false,primaryAction:{label:"Apply filters",onPress:T,variant:"primary"},secondaryAction:{label:"Clear all",onPress:M},maxWidth:v?"800px":"700px",height:"600px",mobileHeight:"85vh",contentPadding:false,footerContent:c!==void 0?jsxRuntime.jsxs("div",{className:"text-sm text-text-secondary text-center",children:[jsxRuntime.jsx("span",{className:"font-semibold text-text-primary",children:wx(c)})," ",c===1?"result":"results"," with current filters"]}):void 0,children:r.length===0?jsxRuntime.jsx("div",{className:"py-12 text-center",children:jsxRuntime.jsx("div",{className:"text-sm font-medium text-text-secondary",children:"No filters available"})}):v?x?R():D():F()})}function sp(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 kr(e="normal",t){return tailwindMerge.twMerge({strong:"font-semibold text-text-primary",high:"font-semibold text-text-primary",normal:"text-text-primary",low:"text-text-secondary"}[e],t&&"hover:text-action-primary cursor-pointer transition-colors")}function ke(e="left",t){return tailwindMerge.twMerge("flex items-center gap-1 min-w-0 overflow-hidden",sp(e),t)}function Pl(e,t="\u2014"){return e==null||e===""?t:String(e)}var Wo={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 er(e="normal"){return {strong:Wo.lg,high:Wo.lg,normal:Wo.md,low:Wo.sm}[e]}function he(e,t){return typeof e=="function"?e(t):e}function kx(e="neutral",t="sm"){return tailwindMerge.twMerge("inline-flex items-center rounded-full font-medium",t==="sm"?"px-2 py-0.5 text-xs":"px-2.5 py-1 text-sm",{success:"bg-feedback-success-background text-feedback-success-text",error:"bg-feedback-error-background text-feedback-error-text",warning:"bg-feedback-warning-background text-feedback-warning-text",info:"bg-feedback-info-background text-feedback-info-text",neutral:"bg-background-muted text-text-secondary"}[e])}function Tx(e){return e?"success":"neutral"}function Rl(e,t=false){return t?e>0?"text-feedback-success-text":e<0?"text-feedback-error-text":"text-text-primary":"text-text-primary"}function lp(e="hover",t="secondary"){let r={primary:"text-action-primary hover:text-action-primary-hover visited:text-action-primary",secondary:"text-text-link-default hover:text-text-link-hover visited:text-text-link-default",default:"text-text-link-default hover:text-text-link-hover visited:text-text-link-default",brand:"text-action-primary hover:text-action-primary-hover visited:text-action-primary",muted:"text-text-secondary hover:text-text-secondary visited:text-text-secondary",unstyled:""},o={visible:"underline underline-offset-4 decoration-1 cursor-pointer",hover:"hover:underline hover:underline-offset-4 hover:decoration-1 cursor-pointer transition-colors",none:"cursor-pointer"},n=r[t],a=o[e]||"";return `${n} ${a}`.trim()}function $r(e,t,r,o="hover",n="secondary",a,i){if(!t)return e;let s=typeof t=="function"&&r?t(r):t,c=lp(o,n);return jsxRuntime.jsx("a",{href:s,className:tailwindMerge.twMerge(c,a==="strong"||a==="high"?"font-semibold":"",i),onClick:d=>{d.metaKey||d.ctrlKey;},children:e})}function Px({row:e,context:t,actions:r,align:o="right",size:n="sm"}){let{isLoading:a}=t;if(a)return jsxRuntime.jsx(J,{className:Wo.sm});let s=(typeof r=="function"?r(e):r).filter(l=>!he(l.hidden,e));if(s.length===0)return null;let c=ke(o);return jsxRuntime.jsx("div",{className:c,children:s.map(l=>{let d=he(l.disabled,e);return l.variant==="icon"||!l.label?jsxRuntime.jsx(_,{variant:"icon",size:n,onPress:()=>{l.onClick(e);},isDisabled:d,"aria-label":l.label||l.id,children:jsxRuntime.jsx(B,{name:l.icon||"DotsThree",size:n==="sm"?16:20})},l.id):jsxRuntime.jsxs(_,{variant:l.variant||"secondary",size:n,onPress:()=>{l.onClick(e);},isDisabled:d,children:[l.icon&&jsxRuntime.jsx(B,{name:l.icon,size:n==="sm"?14:16}),l.label]},l.id)})})}function Dx({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:d="left",emptyText:u="\u2014",className:m,maxVisible:p=2,maxLabelLength:f}){let{isLoading:g}=r,b=(N,T)=>{if(!f||N.length<=f)return jsxRuntime.jsx(jsxRuntime.Fragment,{children:N});let M=N.slice(0,f-1)+"\u2026";return jsxRuntime.jsx(jt,{content:T,children:jsxRuntime.jsx("span",{children:M})})};if(g)return jsxRuntime.jsx(J,{className:er("normal")});if(e==null||e==="")return jsxRuntime.jsx("div",{className:ke(d,"text-text-secondary"),children:u});if(Array.isArray(e)&&e.length===0)return jsxRuntime.jsx("div",{className:ke(d,"text-text-secondary"),children:u});let x=ke(d,m);if(Array.isArray(e)){let N=e.slice(0,p),T=e.slice(p),M=T.length>0;return jsxRuntime.jsx("div",{className:x,children:jsxRuntime.jsxs("div",{className:"flex items-center gap-1",children:[N.map((P,E)=>{let I=typeof o=="function"?o(P,t):o,A=typeof n=="function"?n(P,t):n!==void 0?n:String(P),w=typeof s=="function"?s(P,t):s,k=typeof l=="function"?l(P,t):l;return jsxRuntime.jsx("span",{className:"flex-shrink-0 whitespace-nowrap",children:jsxRuntime.jsx(et,{variant:I,size:a,shape:i,dot:w,dotPosition:c,dotPulse:k,children:b(A,A)})},E)}),M&&jsxRuntime.jsx(jt,{content:T.join(", "),children:jsxRuntime.jsx("span",{className:"flex-shrink-0 whitespace-nowrap",children:jsxRuntime.jsxs(et,{variant:"neutral",size:a,shape:i,children:["+",T.length]})})})]})})}let v=typeof o=="function"?o(e,t):o,C=typeof n=="function"?n(e,t):n!==void 0?n:String(e),y=typeof s=="function"?s(e,t):s,S=typeof l=="function"?l(e,t):l;return jsxRuntime.jsx("div",{className:x,children:jsxRuntime.jsx(et,{variant:v,size:a,shape:i,dot:y,dotPosition:c,dotPulse:S,children:b(C,C)})})}function Ex({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:d}){let{isLoading:u}=t;if(u)return jsxRuntime.jsx(J,{className:er(l)});let m=!!e;if(!m&&!s)return jsxRuntime.jsx("div",{className:ke(c,d)});let p=ke(c,d);switch(r){case "icon":return jsxRuntime.jsx("div",{className:p,children:jsxRuntime.jsx(B,{name:m?a:i,size:16,className:m?"text-feedback-success-text":"text-text-disabled"})});case "text":return jsxRuntime.jsx("div",{className:p,children:jsxRuntime.jsx("span",{className:kr(l),children:m?o:n})});case "badge":return jsxRuntime.jsx("div",{className:p,children:jsxRuntime.jsx(et,{variant:m?"success":"neutral",size:"sm",children:m?o:n})});default:return null}}function Lx({row:e,context:t,firstName:r,lastName:o,email:n,avatarUrl:a,layout:i="stacked",size:s="sm",href:c,LinkComponent:l,linkVariant:d="secondary",showEmail:u=false,badge:m,emphasis:p="normal",align:f="left",className:g,piiEntity:b}){let{isLoading:x}=t,v=he(r,e),C=he(o,e),y=he(n,e),S=he(a,e),N=he(c,e),T=typeof m=="function"?m(e):m,M=he(b,e),P=ke(f,g);return jsxRuntime.jsx("div",{className:P,children:jsxRuntime.jsx(qs,{firstName:v,lastName:C,email:y,avatarUrl:S,layout:i,size:s,href:N,LinkComponent:l,linkVariant:d,showEmail:u,badge:T,emphasis:p,isLoading:x,piiEntity:M})})}function Ax({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 Ix({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:d}){let{isLoading:u}=r;if(u)return jsxRuntime.jsx(J,{className:er(s)});if(!e)return jsxRuntime.jsx("div",{className:ke(i,"text-text-secondary"),children:a});let m=e instanceof Date?e:new Date(e);if(isNaN(m.getTime()))return jsxRuntime.jsx("div",{className:ke(i,"text-text-secondary"),children:a});let p;switch(o){case "date":p=m.toLocaleDateString("en-US",{year:"numeric",month:"short",day:"numeric"});break;case "time":p=m.toLocaleTimeString("en-US",{hour:"2-digit",minute:"2-digit"});break;case "datetime":p=m.toLocaleString("en-US",{year:"numeric",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"});break;case "relative":p=_k(m);break;case "custom":p=n?m.toLocaleString("en-US",n):m.toISOString();break;default:p=m.toLocaleDateString();}let f=ke(i,tailwindMerge.twMerge(kr(s),d)),g=he(c,t);return g?jsxRuntime.jsx("div",{className:f,children:$r(p,g,t,l)}):jsxRuntime.jsx("div",{className:f,children:p})}function _k(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 Dl({manufacturer:e,model:t,deviceType:r,deviceTypeIconName:o,logoUrl:n,layout:a="stacked",size:i="md",href:s,LinkComponent:c,linkVariant:l="unstyled",showDeviceTypeIcon:d=true,showLogo:u=true,emphasis:m="normal",isLoading:p=false,className:f,piiEntity:g}){let[b,x]=Ie.useState(false),v=o||(r?tT(r):"DeviceMobile"),y={xs:{iconSize:28,logoSize:"w-7 h-7",gap:"gap-1.5",textSize:"text-xs",secondaryTextSize:"text-xs",iconInTextSize:12,skeletonIcon:28,skeletonText:80,skeletonSecondary:60},sm:{iconSize:32,logoSize:"w-8 h-8",gap:"gap-2",textSize:"text-sm",secondaryTextSize:"text-xs",iconInTextSize:14,skeletonIcon:32,skeletonText:96,skeletonSecondary:72},md:{iconSize:32,logoSize:"w-9 h-9",gap:"gap-3",textSize:"text-base",secondaryTextSize:"text-sm",iconInTextSize:16,skeletonIcon:36,skeletonText:128,skeletonSecondary:96},lg:{iconSize:40,logoSize:"w-10 h-10",gap:"gap-3",textSize:"text-lg",secondaryTextSize:"text-base",iconInTextSize:18,skeletonIcon:40,skeletonText:160,skeletonSecondary:120}}[i],S=n&&!b&&u,T={strong:"font-semibold text-text-primary",high:"font-semibold text-text-primary",normal:"text-text-primary",low:"text-text-secondary"}[m],M=({children:P,className:E})=>s?c?jsxRuntime.jsx(c,{href:s,className:E,children:P}):jsxRuntime.jsx($e,{href:s,variant:l,className:tailwindMerge.twMerge("hover:underline",E),asButton:false,children:P}):jsxRuntime.jsx("span",{className:E,children:P});if(p)return a==="inline"?jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("flex items-center",y.gap,f),children:[jsxRuntime.jsx(J,{width:y.skeletonIcon,height:y.skeletonIcon,className:"flex-shrink-0 rounded"}),jsxRuntime.jsx(J,{width:y.skeletonText,height:y.skeletonIcon*.6})]}):jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("flex items-center",y.gap,f),children:[jsxRuntime.jsx(J,{width:y.skeletonIcon,height:y.skeletonIcon,className:"flex-shrink-0"}),jsxRuntime.jsxs("div",{className:"flex flex-col gap-1",children:[jsxRuntime.jsx(J,{width:y.skeletonText,height:16}),jsxRuntime.jsx(J,{width:y.skeletonSecondary,height:12})]})]});if(a==="inline"){let P=`${e} ${t}`;return jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("flex items-center",y.gap,f),children:[jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("flex-shrink-0 flex items-center justify-center rounded border border-border-muted",y.logoSize),children:S?jsxRuntime.jsx("img",{src:n,alt:`${e} logo`,className:"w-full h-full object-contain",onError:()=>x(true)}):jsxRuntime.jsx(B,{name:v,size:y.iconSize*.6,className:"text-text-secondary"})}),jsxRuntime.jsx(M,{className:tailwindMerge.twMerge("truncate leading-normal hover:text-text-primary",T,y.textSize,s&&"hover:underline hover:decoration-1 hover:underline-offset-4"),children:jsxRuntime.jsx("span",{"data-pii-type":g?"device-name":void 0,"data-pii-entity":g,children:P})})]})}return jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("flex items-center justify-start",y.gap,f),children:[u&&jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("flex-shrink-0 flex items-center justify-center rounded border border-border-muted",y.logoSize),children:S?jsxRuntime.jsx("img",{src:n,alt:`${e} logo`,className:"w-full h-full object-contain",onError:()=>x(true)}):jsxRuntime.jsx(B,{name:v,size:y.iconSize*.6,className:"text-text-secondary"})}),jsxRuntime.jsxs("div",{className:"flex flex-col items-start min-w-0",children:[jsxRuntime.jsx(M,{className:tailwindMerge.twMerge("truncate leading-normal hover:text-text-primary",T,y.textSize,s&&"hover:underline hover:decoration-1 hover:underline-offset-4"),children:jsxRuntime.jsx("span",{"data-pii-type":g?"device-name":void 0,"data-pii-entity":g,children:e})}),jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("flex items-center gap-1.5 text-text-secondary leading-normal",y.secondaryTextSize),children:[d&&jsxRuntime.jsx(B,{name:v,size:y.iconInTextSize,className:"flex-shrink-0"}),jsxRuntime.jsx("span",{className:"truncate","data-pii-type":g?"device-name":void 0,"data-pii-entity":g,children:t})]})]})]})}function tT(e){switch(e){case "battery":return "BatteryHigh";case "charger":return "ChargingStation";case "inverter":return "Power";case "thermostat":return "ThermometerSimple";case "vehicle":return "CarSimple";case "water_heater":return "DropHalfBottom";case "meter":return "Gauge";default:return "DeviceMobile"}}function Bx({row:e,context:t,manufacturer:r,model:o,deviceType:n,logoUrl:a,layout:i="stacked",size:s="sm",href:c,LinkComponent:l,linkVariant:d="secondary",showDeviceTypeIcon:u=true,showLogo:m=true,emphasis:p="normal",align:f="left",className:g,piiEntity:b}){let{isLoading:x}=t,v=he(r,e),C=he(o,e),y=he(n,e),S=he(a,e),N=he(c,e),T=he(b,e),M=ke(f,g);return jsxRuntime.jsx("div",{className:M,children:jsxRuntime.jsx(Dl,{manufacturer:v,model:C,deviceType:y,logoUrl:S,layout:i,size:s,href:N,LinkComponent:l,linkVariant:d,showDeviceTypeIcon:u,showLogo:m,emphasis:p,isLoading:x,piiEntity:T})})}var xU={charging:"percentage",discharging:"percentage",on:"kW",idle:void 0,off:void 0,heat:"temperature",cool:"temperature",auto:"temperature",eco:"temperature",unknown:void 0,connected:void 0,disconnected:void 0},rT=["charging","discharging","heat","cool","on","connected"],oT={unknown:"Unknown",on:"On",off:"Off",idle:"Idle",charging:"Charging",discharging:"Discharging",heat:"Heating",eco:"Eco Mode",cool:"Cooling",auto:"Auto",connected:"Connected",disconnected:"Disconnected"};function cp(e){return rT.includes(e)}function dp(e){return oT[e]}function En({state:e,label:t,icon:r,isLoading:o,size:n="sm",shape:a="pill",dot:i,dotPulse:s,fixedWidth:c,className:l,...d}){if(o)return jsxRuntime.jsx(J,{className:"inline-flex h-6 w-20"});let u=t??dp(e),m=cp(e);return jsxRuntime.jsxs(et,{variant:e,size:n,shape:a,dot:i??m,dotPulse:s??m,className:c?`w-28 justify-center ${l||""}`:l,...d,children:[r&&jsxRuntime.jsx(B,{name:r,size:n==="sm"?12:n==="md"?14:16}),u]})}var aT={importing:"Importing",exporting:"Exporting"};function zx(e){return aT[e]}function Ml({state:e,label:t,showIcon:r=false,isLoading:o,size:n="sm",shape:a="pill",fixedWidth:i,className:s,...c}){if(o)return jsxRuntime.jsx(J,{className:"inline-flex h-6 w-24"});let l=t??zx(e),d=e==="exporting"?"ArrowUp":"ArrowDown",u=n==="sm"?12:n==="md"?14:16;return r?jsxRuntime.jsx(et,{variant:e,size:n,shape:a,className:`w-6 justify-center ${s||""}`,...c,children:jsxRuntime.jsx(B,{name:d,size:u})}):jsxRuntime.jsx(et,{variant:e,size:n,shape:a,className:i?`w-28 justify-center ${s||""}`:s,...c,children:l})}function Ll({state:e,stateLabel:t,metric:r,metricFormatter:o,secondaryState:n,layout:a="horizontal",isLoading:i,size:s="sm",shape:c="pill",icon:l,fixedWidth:d,secondaryStateIconOnly:u=false,className:m}){if(i)return jsxRuntime.jsx(J,{className:tailwindMerge.twMerge("inline-flex h-6 w-32",m)});let p=r!=null&&o?rn(r,o):null,f=a==="horizontal",g=o&&!p;return jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("inline-flex items-center",f?"gap-2":"flex-col gap-1",m),children:[(p||g)&&jsxRuntime.jsx("span",{className:tailwindMerge.twMerge("font-medium inline-block",p?"text-text-primary":"text-text-secondary",s==="sm"&&"text-xs min-w-12",s==="md"&&"text-sm min-w-14",s==="lg"&&"text-base min-w-16"),children:p||"\u2014"}),jsxRuntime.jsx(En,{state:e,label:t,icon:l,size:s,shape:c,fixedWidth:d}),n&&jsxRuntime.jsx(jsxRuntime.Fragment,{children:n==="importing"||n==="exporting"?jsxRuntime.jsx(Ml,{state:n,size:s,shape:c,fixedWidth:d,showIcon:u}):jsxRuntime.jsx(En,{state:n,size:s,shape:c,fixedWidth:d})})]})}function Ox({value:e,row:t,context:r,metric:o,metricFormatter:n,secondaryState:a,size:i="sm",shape:s="pill",label:c,icon:l,fixedWidth:d=true,align:u="left",compact:m=false,className:p}){let{isLoading:f}=r;if(f){let y={pill:"rounded-full",rounded:"rounded-lg",square:"rounded-sm"}[s],S=o!=null||n!=null;return jsxRuntime.jsx("div",{className:"flex items-center gap-2",children:S?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(J,{className:"h-4 w-12"}),jsxRuntime.jsx(J,{className:`h-6 w-24 ${y}`}),jsxRuntime.jsx(J,{className:`h-6 w-20 ${y}`})]}):jsxRuntime.jsx(J,{className:`h-6 w-24 ${y}`})})}if(!e)return jsxRuntime.jsx("div",{className:ke(u,p),children:jsxRuntime.jsx("span",{className:"text-text-secondary",children:"\u2014"})});let g=he(o,t),b=he(a,t),x=typeof c=="function"?c(e,t):c,v=ke(u,p);return g!=null||n?jsxRuntime.jsx("div",{className:tailwindMerge.twMerge(v),children:jsxRuntime.jsx(Ll,{state:e,stateLabel:x,metric:g,metricFormatter:n,secondaryState:b||void 0,size:i,shape:s,icon:l,fixedWidth:d,secondaryStateIconOnly:m,layout:"horizontal"})}):jsxRuntime.jsx("div",{className:v,children:jsxRuntime.jsx(En,{state:e,label:x,icon:l,size:i,shape:s,fixedWidth:d})})}function Wx({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:d="text-text-secondary"}){let{isLoading:u}=r;if(u)return jsxRuntime.jsx(J,{className:er(a)});let m=zr({value:e,formatter:o,emptyText:l,emptyClassName:d}),p=kr(a),f=ke(n,tailwindMerge.twMerge(p,c)),g=jsxRuntime.jsx("div",{className:f,children:m}),b=he(i,t);return b?$r(g,b,t,s):g}var pp=Ie__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:d,segmentGap:u=2,barWidth:m,context:p})=>{let f=Ie.useMemo(()=>r===t?100:Math.max(0,Math.min(100,(e-t)/(r-t)*100)),[e,t,r]),g=Ie.useMemo(()=>o==="auto"&&a?a.type==="diverging"&&a.center!==void 0?Ga(e,t,r,a.center,a.scheme):Wa(e,t,r,a.scheme):o,[o,a,e,t,r]);if(p.isLoading)return jsxRuntime.jsx("div",{className:"flex items-center gap-2 w-full",style:{height:c},children:jsxRuntime.jsx("div",{className:"h-full flex-1 animate-pulse bg-border-default rounded"})});if(d&&d>0){let v=`calc((100% - ${u*(d-1)}px) / ${d})`,C=Math.ceil(f/100*d),y={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:y,children:Array.from({length:d}).map((S,N)=>{let T=N<C;return jsxRuntime.jsx("div",{className:"rounded-sm",style:{width:v,backgroundColor:T?g:n==="none"?"transparent":n,marginRight:N<d-1?`${u}px`:0}},N)})}),i&&jsxRuntime.jsx("span",{className:"text-sm text-text-primary 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:`${f}%`,minWidth:f>0?l:0,backgroundColor:g}})}),i&&jsxRuntime.jsx("span",{className:"text-sm text-text-primary whitespace-nowrap",children:s?s(e):e.toLocaleString()})]})});pp.displayName="HorizontalBarCell";var mp=Ie__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,d=a||100,u=i,{xScale:m,yScale:p,barWidth:f}=Ie.useMemo(()=>{if(s.length===0)return {xScale:scale.scaleTime({range:[0,d],domain:[new Date,new Date]}),yScale:scale.scaleLinear({range:[u,0],domain:[0,1]}),barWidth:2};let b=d3Array.extent(s,T=>c(T)),x=d3Array.min(s,T=>l(T))??0,v=d3Array.max(s,T=>l(T))??0,C=x<0?x:0,y=scale.scaleTime({range:[0,d],domain:b}),S=scale.scaleLinear({range:[u,0],domain:[C,v*1.05]}),N=s.length>1?d/s.length*.8:8;return {xScale:y,yScale:S,barWidth:Math.max(2,N)}},[s,d,u]);if(n.isLoading)return jsxRuntime.jsx("div",{className:"flex items-center gap-0.5",style:{width:d,height:u},children:Array.from({length:5}).map((b,x)=>jsxRuntime.jsx("div",{className:"flex-1 animate-pulse bg-border-default rounded"},x))});if(!s||s.length===0)return jsxRuntime.jsx("div",{className:"flex items-center justify-center text-text-secondary text-xs",style:{width:d,height:u},children:"No data"});let g=p(0);return jsxRuntime.jsx("svg",{width:d,height:u,children:s.map((b,x)=>{let v=l(b),C=m(c(b)),y=p(v),S=Math.abs(g-y),N=b.category&&o?.[b.category]?o[b.category]:r;return jsxRuntime.jsx(shape.Bar,{x:C-f/2,y:v>=0?y:g,width:f,height:S,fill:N,rx:1},`bar-${x}`)})})});mp.displayName="MiniBarCell";function Jx({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:d,linkBehavior:u="hover",showPositiveSign:m=false,colorCode:p=false,className:f}){let{isLoading:g}=r;if(g)return jsxRuntime.jsx(J,{className:er(l)});if(e==null||isNaN(Number(e)))return jsxRuntime.jsx("div",{className:ke(c,"text-text-secondary"),children:s});let b=Number(e),x;switch(o){case "currency":x=new Intl.NumberFormat("en-US",{style:"currency",currency:"USD",minimumFractionDigits:n,maximumFractionDigits:n}).format(b);break;case "percent":x=new Intl.NumberFormat("en-US",{style:"percent",minimumFractionDigits:n,maximumFractionDigits:n}).format(b/100);break;case "compact":x=new Intl.NumberFormat("en-US",{notation:"compact",minimumFractionDigits:n>0?1:0,maximumFractionDigits:n}).format(b);break;default:x=new Intl.NumberFormat("en-US",{minimumFractionDigits:n,maximumFractionDigits:n}).format(b);}let C=`${m&&b>0?"+":""}${x}`,y=p?Rl(b,true):kr(l),S=ke(c,tailwindMerge.twMerge(y,f)),N=jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[a&&jsxRuntime.jsx("span",{className:"text-text-secondary",children:a}),jsxRuntime.jsx("span",{children:C}),i&&jsxRuntime.jsx("span",{className:"text-text-secondary",children:i})]}),T=he(d,t);return T?jsxRuntime.jsx("div",{className:S,children:$r(N,T,t,u)}):jsxRuntime.jsx("div",{className:S,children:N})}var fp=Ie__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=Ie.useMemo(()=>Math.max(0,Math.min(100,e)),[e]),d=Ie.useMemo(()=>r==="auto"&&s?s.type==="diverging"&&s.center!==void 0?Ga(e,0,100,s.center,s.scheme):Wa(e,0,100,s.scheme):r,[r,s,e]);if(c.isLoading)return jsxRuntime.jsx("div",{className:"flex items-center gap-2",style:{height:n},children:jsxRuntime.jsx("div",{className:"h-full w-full animate-pulse bg-border-default rounded"})});if(a&&a>0){let m=`calc((100% - ${i*(a-1)}px) / ${a})`,p=Math.ceil(l/100*a);return jsxRuntime.jsxs("div",{className:"flex items-center gap-2 w-full",children:[jsxRuntime.jsx("div",{className:"flex gap-0.5 flex-1",style:{height:n},children:Array.from({length:a}).map((f,g)=>{let b=g<p,x=d;if(r==="auto"&&s&&b){let v=(g+1)/a*100;s.type==="diverging"&&s.center!==void 0?x=Ga(v,0,100,s.center,s.scheme):x=Wa(v,0,100,s.scheme);}return jsxRuntime.jsx("div",{className:"rounded-sm",style:{width:m,backgroundColor:b?x:o==="none"?"transparent":o,marginRight:g<a-1?`${i}px`:0}},g)})}),t&&jsxRuntime.jsxs("span",{className:"text-sm text-text-primary whitespace-nowrap",children:[l.toFixed(0),"%"]})]})}return jsxRuntime.jsxs("div",{className:"flex items-center gap-2 w-full",children:[jsxRuntime.jsx("div",{className:"relative flex-1 rounded-sm",style:{height:n,backgroundColor:o==="none"?"transparent":o},children:jsxRuntime.jsx("div",{className:"absolute left-0 top-0 h-full rounded-sm transition-all duration-300",style:{width:`${l}%`,backgroundColor:d}})}),t&&jsxRuntime.jsxs("span",{className:"text-sm text-text-primary whitespace-nowrap",children:[l.toFixed(0),"%"]})]})});fp.displayName="PercentBarCell";function qx({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:ke(a),children:jsxRuntime.jsx(J,{className:"h-4 w-4 rounded"})});let s=he(n,e),c=ke(a);return jsxRuntime.jsx("div",{className:c,children:jsxRuntime.jsx(yn,{isSelected:r,onChange:l=>{o?.(e,l);},isDisabled:s,"aria-label":"Select row"})})}function Fl({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:d=false,className:u,piiEntity:m}){let f={xs:{iconSize:16,iconContainerSize:"w-7 h-7",gap:"gap-1.5",textSize:"text-xs",secondaryTextSize:"text-xs",skeletonIconStacked:28,skeletonIconInline:16,skeletonText:80,skeletonSecondary:60},sm:{iconSize:20,iconContainerSize:"w-8 h-8",gap:"gap-2",textSize:"text-sm",secondaryTextSize:"text-xs",skeletonIconStacked:32,skeletonIconInline:20,skeletonText:96,skeletonSecondary:72},md:{iconSize:24,iconContainerSize:"w-9 h-9",gap:"gap-3",textSize:"text-base",secondaryTextSize:"text-sm",skeletonIconStacked:36,skeletonIconInline:24,skeletonText:128,skeletonSecondary:96},lg:{iconSize:28,iconContainerSize:"w-10 h-10",gap:"gap-3",textSize:"text-lg",secondaryTextSize:"text-base",skeletonIconStacked:40,skeletonIconInline:28,skeletonText:160,skeletonSecondary:120}}[a],b={strong:"font-semibold text-text-primary",high:"font-semibold text-text-primary",normal:"text-text-primary",low:"text-text-secondary"}[l],x=[];t&&x.push(t),r&&o?x.push(`${r} ${o}`):r?x.push(r):o&&x.push(o);let v=x.join(", "),C=({children:S,className:N})=>i?s?jsxRuntime.jsx(s,{href:i,className:N,children:S}):jsxRuntime.jsx($e,{href:i,variant:c,className:tailwindMerge.twMerge("hover:underline",N),asButton:false,children:S}):jsxRuntime.jsx("span",{className:N,children:S});if(d)return n==="inline"?jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("flex items-center",f.gap,u),children:[jsxRuntime.jsx(J,{width:f.skeletonIconInline,height:f.skeletonIconInline,className:"flex-shrink-0 rounded"}),jsxRuntime.jsx(J,{width:f.skeletonText,height:f.skeletonIconInline*.8})]}):jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("flex items-center",f.gap,u),children:[jsxRuntime.jsx(J,{width:f.skeletonIconStacked,height:f.skeletonIconStacked,className:"flex-shrink-0 rounded"}),jsxRuntime.jsxs("div",{className:"flex flex-col gap-1",children:[jsxRuntime.jsx(J,{width:f.skeletonText,height:16}),jsxRuntime.jsx(J,{width:f.skeletonSecondary,height:12})]})]});if(n==="inline")return jsxRuntime.jsxs(C,{className:tailwindMerge.twMerge("flex items-center",f.gap,i&&"hover:bg-background-hover transition-colors",u),children:[jsxRuntime.jsx(B,{name:"MapPin",size:f.iconSize,className:"text-text-secondary flex-shrink-0"}),jsxRuntime.jsx("span",{className:tailwindMerge.twMerge("leading-normal truncate hover:text-text-primary",b,f.textSize,i&&"hover:underline hover:decoration-1 hover:underline-offset-4"),"data-pii-type":m?"address":void 0,"data-pii-entity":m,children:e})]});let y=()=>{if(m){if(t&&r&&o)return "city-state-zip";if(t&&r)return "city-state";if(t)return "city";if(r)return "state";if(o)return "postal-code"}};return jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("flex items-center justify-start",f.gap,u),children:[jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("flex-shrink-0 flex items-center justify-center rounded border border-border-muted",f.iconContainerSize),children:jsxRuntime.jsx(B,{name:"MapPin",size:f.iconSize,className:"text-text-secondary"})}),jsxRuntime.jsxs("div",{className:"flex flex-col items-start min-w-0",children:[jsxRuntime.jsx(C,{className:tailwindMerge.twMerge("leading-normal truncate hover:text-text-primary",b,f.textSize,i&&"hover:underline hover:decoration-1 hover:underline-offset-4"),children:jsxRuntime.jsx("span",{"data-pii-type":m?"address":void 0,"data-pii-entity":m,children:e})}),v&&jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("text-text-secondary leading-normal truncate",f.secondaryTextSize),"data-pii-type":y(),"data-pii-entity":m,children:v})]})]})}function Zx({row:e,context:t,streetAddress:r,city:o,state:n,postalCode:a,layout:i="stacked",size:s="sm",href:c,LinkComponent:l,linkVariant:d="secondary",emphasis:u="normal",align:m="left",className:p,piiEntity:f}){let{isLoading:g}=t,b=he(r,e),x=he(o,e),v=he(n,e),C=he(a,e),y=he(c,e),S=he(f,e),N=ke(m,p);return jsxRuntime.jsx("div",{className:N,children:jsxRuntime.jsx(Fl,{streetAddress:b,city:x,state:v,postalCode:C,layout:i,size:s,href:y,LinkComponent:l,linkVariant:d,emphasis:u,isLoading:g,piiEntity:S})})}var gp=Ie__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||[],d=s||100,u=c,{xScale:m,yScale:p}=Ie.useMemo(()=>{if(l.length===0)return {xScale:scale.scaleTime({range:[0,d],domain:[new Date,new Date]}),yScale:scale.scaleLinear({range:[u,0],domain:[0,1]})};let g=d3Array.extent(l,C=>C.xValue),b=d3Array.min(l,C=>C.yValue)||0,x=d3Array.max(l,C=>C.yValue)||0,v=(x-b)*.1||1;return {xScale:scale.scaleTime({range:[0,d],domain:g}),yScale:scale.scaleLinear({range:[u,0],domain:[b-v,x+v]})}},[l,d,u]);if(i.isLoading)return jsxRuntime.jsx("div",{className:"flex items-center",style:{width:d,height:u},children:jsxRuntime.jsx("div",{className:"h-1 w-full animate-pulse bg-border-default rounded"})});if(!l||l.length===0)return jsxRuntime.jsx("div",{className:"flex items-center justify-center text-text-secondary text-xs",style:{width:d,height:u},children:"No data"});let f=a&&l[0]?.category&&a[l[0].category]?a[l[0].category]:o;return jsxRuntime.jsxs("svg",{width:d,height:u,className:"overflow-visible",children:[(r==="area"||r==="both")&&jsxRuntime.jsx(shape.AreaClosed,{data:l,x:g=>m(g.xValue),y:g=>p(g.yValue),yScale:p,fill:f,fillOpacity:.15,curve:curve.curveLinear}),(r==="line"||r==="both")&&jsxRuntime.jsx(shape.LinePath,{data:l,x:g=>m(g.xValue),y:g=>p(g.yValue),stroke:f,strokeWidth:n,strokeLinecap:"round",curve:curve.curveLinear})]})});gp.displayName="SparklineCell";function eh({value:e,row:t,context:r,prefix:o,suffix:n,emptyText:a="\u2014",href:i,linkBehavior:s="hover",linkVariant:c="secondary",emphasis:l="normal",truncate:d=true,copyable:u=false,align:m="left",className:p,piiType:f,piiEntity:g}){let{isLoading:b}=r;if(b)return jsxRuntime.jsx(J,{className:er(l)});let x=Pl(e,a),v=he(i,t),C=he(g,t),y=x,S=false,N=false;if(d&&x&&typeof x=="string")if(typeof d=="boolean")N=true;else {let{position:k="end",length:H=16,ellipsis:G="...",tooltip:z=true}=d;if(x.length>H){switch(k){case "start":y=cs(x,H);break;case "middle":y=_n(x,H);break;case "end":y=ds(x,H,G);break}S=z;}}let T=f&&C?{"data-pii-type":f,"data-pii-entity":C}:{},M=Object.keys(T).length>0,P=jsxRuntime.jsx("span",{className:N?"truncate":"",...T,children:y}),E=S?jsxRuntime.jsx(jt,{content:M?jsxRuntime.jsx("span",{...T,children:String(x)}):String(x),children:P}):P,I=jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[o&&jsxRuntime.jsx("span",{className:"text-text-secondary",children:o}),E,n&&jsxRuntime.jsx("span",{className:"text-text-secondary",children:n})]}),A=I;if(u&&x&&x!==a){let k=typeof u=="function"?u(t):String(x);A=jsxRuntime.jsx(Lo,{value:k,size:"sm",children:I});}if(v){let k=ke(m,p);return jsxRuntime.jsx("div",{className:k,children:$r(A,v,t,s,c,l)})}let w=ke(m,tailwindMerge.twMerge(kr(l),p));return jsxRuntime.jsx("div",{className:w,children:A})}var IT={sm:"sm:hidden",md:"md:hidden",lg:"lg:hidden",xl:"xl:hidden"},FT={sm:"hidden sm:grid",md:"hidden md:grid",lg:"hidden lg:grid",xl:"hidden xl:grid"};function Bl(e,t){return t.accessor?typeof t.accessor=="function"?t.accessor(e):e[t.accessor]:null}function Vl(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 Ol({row:e,columns:t,density:r,isLoading:o,onClick:n}){let a=t.filter(u=>u.mobile!==false).map(u=>{let m=u.mobile===false?null:u.mobile;return {...u,mobilePriority:m?.priority??2,mobileFormat:m?.format??"secondary",showLabel:m?.label??m?.format==="secondary",icon:m?.icon}}).sort((u,m)=>u.mobilePriority-m.mobilePriority),i=a.filter(u=>u.mobilePriority===1||u.mobileFormat==="primary"),s=a.filter(u=>u.mobilePriority===2&&u.mobileFormat!=="primary"),c=a.filter(u=>u.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(u=>{let m=Bl(e,u);return jsxRuntime.jsx("div",{className:"font-medium text-text-primary [&>*]:!justify-start [&>*]:!text-left",children:Vl(m,e,u,l)},u.id)})}),c.length>0&&jsxRuntime.jsx("div",{className:"ml-2 flex flex-wrap gap-1",children:c.map(u=>{let m=Bl(e,u);return jsxRuntime.jsx("div",{className:"inline-flex",children:Vl(m,e,u,l)},u.id)})})]}),s.length>0&&jsxRuntime.jsx("div",{className:"space-y-1",children:s.map(u=>{let m=Bl(e,u),p=u.showLabel&&u.label;return jsxRuntime.jsxs("div",{className:"flex items-center text-sm text-text-secondary",children:[u.icon&&jsxRuntime.jsx(B,{name:u.icon,className:"mr-1.5 h-4 w-4 flex-shrink-0"}),p&&jsxRuntime.jsxs("span",{className:"mr-1 font-medium",children:[u.label,":"]}),jsxRuntime.jsx("span",{className:"truncate [&>*]:!justify-start [&>*]:!text-left",children:Vl(m,e,u,l)})]},u.id)})})]})}function Hl({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 d=Bl(e,c),u=l===0;return jsxRuntime.jsxs("div",{children:[!u&&jsxRuntime.jsx("div",{className:"text-xs text-text-secondary",children:c.label}),jsxRuntime.jsx("div",{className:tailwindMerge.twMerge(u?"font-medium text-text-primary":"text-sm text-text-primary","[&>*]:!justify-start [&>*]:!text-left"),children:Vl(d,e,c,i)})]},c.id)})})})}function th(e="md"){return {mobile:IT[e],desktop:FT[e]}}function rh({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 qT={compact:"py-1.5 px-3 text-sm",default:"py-3 px-4 text-sm",relaxed:"py-4 px-4 text-base"},XT={left:"text-left justify-start",center:"text-center justify-center",right:"text-right justify-end"};function ZT(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 $T({column:e,sortConfig:t,onSort:r,stickyHeader:o,stickyFirstColumn:n,isFirstColumn:a,density:i="default",isLoading:s=false}){let c=e.reorderable!==false,{attributes:l,listeners:d,setNodeRef:u,transform:m,transition:p,isDragging:f}=sortable.useSortable({id:e.id,disabled:!c||s}),g=t?.columnId===e.id,b=g?t.direction:null,x=n&&a,v={...ZT(e),transform:utilities.CSS.Transform.toString(m),transition:p,opacity:f?.8:1,zIndex:f?50:void 0};return jsxRuntime.jsx("div",{ref:u,className:tailwindMerge.twMerge("flex items-center border-b border-border-default bg-background-surface",e.sortable?"gap-2":"gap-1",qT[i],XT[e.align||"left"],o&&"sticky top-0 z-10",x&&"sticky left-0 z-20 shadow-[2px_0_4px_-2px_rgba(0,0,0,0.1)]",o&&x&&"z-30",e.sortable&&!s&&"hover:bg-background-hover",s&&"cursor-not-allowed opacity-60",g?"font-bold text-text-primary":"font-medium text-text-secondary",f&&"bg-background-hover"),style:v,role:"columnheader","aria-sort":g?b==="asc"?"ascending":"descending":"none","aria-disabled":s,...l,...d,children:s?jsxRuntime.jsx(J,{className:"h-4 w-24"}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("span",{className:"flex-1 truncate cursor-pointer",onClick:()=>!s&&e.sortable&&r(e.id),children:e.label}),e.sortable&&jsxRuntime.jsx("button",{type:"button",className:"flex flex-shrink-0 cursor-pointer",onClick:()=>!s&&r(e.id),"aria-label":`Sort by ${e.label}`,children:g?jsxRuntime.jsx(B,{name:b==="asc"?"CaretUp":"CaretDown",size:14,weight:"bold",className:"text-text-primary"}):jsxRuntime.jsx(B,{name:"CaretUpDown",size:12,className:"text-text-secondary opacity-40"})})]})})}function nh({columns:e,columnOrder:t,onColumnOrderChange:r,sortConfig:o,onSort:n,stickyHeader:a,stickyFirstColumn:i,density:s="default",isLoading:c=false}){let l=core.useSensors(core.useSensor(core.PointerSensor,{activationConstraint:{distance:5}}),core.useSensor(core.KeyboardSensor,{coordinateGetter:sortable.sortableKeyboardCoordinates})),d=new Map(e.map(p=>[p.id,p])),u=p=>{let{active:f,over:g}=p;if(g&&f.id!==g.id){let b=t.indexOf(f.id),x=t.indexOf(g.id);if(d.get(g.id)?.reorderable===false)return;let C=0;for(let T=0;T<t.length&&d.get(t[T])?.reorderable===false;T++)C=T+1;if(x<C)return;let y=Math.min(b,x),S=Math.max(b,x);for(let T=y;T<=S;T++){if(T===b)continue;if(d.get(t[T])?.reorderable===false)return}let N=sortable.arrayMove(t,b,x);r(N);}},m=t.map(p=>d.get(p)).filter(p=>p!==void 0);return jsxRuntime.jsx(core.DndContext,{sensors:l,collisionDetection:core.closestCenter,onDragEnd:u,children:jsxRuntime.jsx(sortable.SortableContext,{items:t,strategy:sortable.horizontalListSortingStrategy,children:jsxRuntime.jsx("div",{className:"contents",role:"rowgroup",children:m.map((p,f)=>jsxRuntime.jsx($T,{column:p,sortConfig:o,onSort:n,stickyHeader:a,stickyFirstColumn:i,isFirstColumn:f===0,density:s,isLoading:c},p.id))})})})}var yp={compact:"py-1.5 px-3 text-sm",default:"py-3 px-4 text-sm",relaxed:"py-4 px-4 text-base"},vp={left:"text-left justify-start",center:"text-center justify-center",right:"text-right justify-end"},oP={full:"w-full",auto:"w-auto inline-block",contained:"w-full max-w-6xl mx-auto"},nP={auto:"table-auto",fixed:"table-fixed",responsive:"table-auto"};function Cp(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 aP(e,t){return t.accessor?typeof t.accessor=="function"?t.accessor(e):e[t.accessor]:null}function iP({column:e,sortConfig:t,onSort:r,stickyHeader:o,stickyFirstColumn:n,isFirstColumn:a,density:i="default",isLoading:s=false}){let c=t?.columnId===e.id,l=c?t.direction:null,d=n&&a;return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("flex items-center border-b border-border-default bg-background-surface",e.sortable?"gap-2":"gap-1",yp[i],vp[e.align||"left"],o&&"sticky top-0 z-10",d&&"sticky left-0 z-20 shadow-[2px_0_4px_-2px_rgba(0,0,0,0.1)]",o&&d&&"z-30",e.sortable&&!s&&"cursor-pointer hover:bg-background-hover",s&&"cursor-not-allowed opacity-60",c?"font-bold text-text-primary":"font-medium text-text-secondary"),onClick:()=>!s&&e.sortable&&r(e.id),role:"columnheader","aria-sort":c?l==="asc"?"ascending":"descending":"none","aria-disabled":s,style:Cp(e),children:s?jsxRuntime.jsx(J,{className:"h-4 w-24"}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("span",{className:"truncate",children:e.label}),e.sortable&&jsxRuntime.jsx("div",{className:"flex flex-shrink-0",children:c?jsxRuntime.jsx(B,{name:l==="asc"?"CaretUp":"CaretDown",size:14,weight:"bold",className:"text-text-primary"}):jsxRuntime.jsx(B,{name:"CaretUpDown",size:12,className:"text-text-secondary opacity-40"})})]})})}function sP({column:e,row:t,rowIndex:r,columnIndex:o,isHovered:n,density:a="default",className:i,stickyFirstColumn:s}){let c=s&&o===0,l=aP(t,e),d={isLoading:false,isHovered:n,rowIndex:r,columnIndex:o,density:a},u;if(e.cell){let m=e.cell,p=typeof e.cellProps=="function"?e.cellProps(l,t):e.cellProps;u=jsxRuntime.jsx(m,{value:l,row:t,context:d,...p});}else e.render?u=e.render(l,t,d):u=jsxRuntime.jsx("span",{className:"truncate",children:l?.toString()??""});if(e.popover){let m=e.popover,p,f="top",g=false,b="hover";typeof m=="string"?p=m:typeof m=="function"?p=m(l,t):(p=typeof m.content=="function"?m.content(l,t):m.content,f=m.placement||"top",g=m.showArrow??false,b=m.trigger||"hover"),u=jsxRuntime.jsxs(reactAriaComponents.DialogTrigger,{...b==="hover"?{trigger:"longPress"}:{},children:[jsxRuntime.jsx("div",{className:"cursor-help",children:u}),jsxRuntime.jsx(rt,{placement:f,showArrow:g,children:jsxRuntime.jsx("div",{className:"p-2",children:p})})]});}return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("flex items-center border-b border-border-default bg-background-surface",e.noCellPadding?"":yp[a],vp[e.align||"left"],c&&"sticky left-0 z-10 shadow-[2px_0_4px_-2px_rgba(0,0,0,0.1)]",i),role:"cell",style:Cp(e),children:u})}function lP({column:e,rowIndex:t,columnIndex:r,density:o="default",stickyFirstColumn:n}){let a=n&&r===0,i={isLoading:true,rowIndex:t,columnIndex:r,density:o},s;if(e.cell){let c=e.cell,l=typeof e.cellProps=="function"?e.cellProps(null,{}):e.cellProps;s=jsxRuntime.jsx(c,{value:null,row:{},context:i,...l});}else e.render?s=e.render(null,{},i):s=jsxRuntime.jsx(J,{className:"h-4 w-full max-w-[200px]"});return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("flex items-center border-b border-border-default bg-background-surface",e.noCellPadding?"":yp[o],vp[e.align||"left"],a&&"sticky left-0 z-10 shadow-[2px_0_4px_-2px_rgba(0,0,0,0.1)]"),role:"cell",style:Cp(e),children:s})}function cP(e,t){let r=new Set(["BUTTON","A","INPUT","SELECT","TEXTAREA"]),o=new Set(["button","link","checkbox","switch","menuitem","option"]),n=e;for(;n&&n!==t;){if(r.has(n.tagName))return true;let a=n.getAttribute("role");if(a&&o.has(a))return true;n=n.parentElement;}return false}function ah({columns:e,row:t,rowIndex:r,density:o="default",onClick:n,stickyFirstColumn:a}){let[i,s]=Ie.useState(false),c=Ie.useCallback(l=>{if(!n)return;let d=l.target,u=l.currentTarget;cP(d,u)||n(t);},[n,t]);return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("contents group",n&&"cursor-pointer"),role:"row",onClick:c,onMouseEnter:()=>s(true),onMouseLeave:()=>s(false),children:e.map((l,d)=>jsxRuntime.jsx(sP,{column:l,row:t,rowIndex:r,columnIndex:d,isHovered:i,density:o,className:n?"group-hover:bg-background-hover":"",stickyFirstColumn:a},l.id))})}function ih({columns:e,rowIndex:t,density:r="default",stickyFirstColumn:o}){return jsxRuntime.jsx("div",{className:"contents",role:"row",children:e.map((n,a)=>jsxRuntime.jsx(lP,{column:n,rowIndex:t,columnIndex:a,density:r,stickyFirstColumn:o},n.id))})}function sh({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:d="md",isLoading:u=false,loadingState:m,loadingRowCount:p=5,onLoadMore:f,hasMore:g=false,enableVirtualization:b,estimatedRowHeight:x,loadingIndicator:v,stickyHeader:C=false,stickyFirstColumn:y=false,onRowClick:S,getRowId:N,hideHeader:T=false,sortConfig:M,onSort:P,"aria-label":E,enableColumnReorder:I=false,columnOrder:A,onColumnOrderChange:w}){let[k,H]=Ie.useState(null),G=M!==void 0,z=G?M:k,Y=Ie.useRef(null),Z=Ie.useMemo(()=>e.map(re=>re.id),[e]),[V,O]=Ie.useState(Z),R=A!==void 0,D=R?A:V;Ie.useEffect(()=>{R||O(re=>{let xe=e.map(ie=>ie.id),Q=new Set(xe),$=new Set(re),X=re.filter(ie=>Q.has(ie)),fe=xe.filter(ie=>!$.has(ie));return [...X,...fe]});},[e,R]);let F=Ie.useCallback(re=>{R||O(re),w?.(re);},[R,w]),L=Ie.useMemo(()=>{if(!I&&!A)return e;let re=new Map(e.map(xe=>[xe.id,xe]));return D.map(xe=>re.get(xe)).filter(xe=>xe!==void 0)},[e,D,I,A]),h=f?No({items:t,onLoadMore:f,hasMore:g,isLoading:u,loadingState:m,enableVirtualization:b,estimatedItemSize:x||(o==="compact"?40:o==="relaxed"?60:48),overscan:5}):null,W=h?.scrollRef??Y,{loadMoreRef:U,virtualizer:K,virtualItems:te,isLoadingMore:ue,computedLoadingState:j}=h||{},{gridTemplateColumns:ne,totalMinWidth:Se}=Ie.useMemo(()=>{let re=0;return {gridTemplateColumns:L.map(Q=>{if(Q.minWidth?re+=typeof Q.minWidth=="number"?Q.minWidth:0:Q.width&&typeof Q.width=="number"&&(re+=Q.width),Q.width)return typeof Q.width=="number"?`${Q.width}px`:Q.width;if(Q.flex)return `${Q.flex}fr`;if(Q.minWidth&&Q.maxWidth){let $=typeof Q.minWidth=="number"?`${Q.minWidth}px`:Q.minWidth,X=typeof Q.maxWidth=="number"?`${Q.maxWidth}px`:Q.maxWidth;return `minmax(${$}, ${X})`}return Q.minWidth?`minmax(${typeof Q.minWidth=="number"?`${Q.minWidth}px`:Q.minWidth}, 1fr)`:Q.maxWidth?`minmax(0, ${typeof Q.maxWidth=="number"?`${Q.maxWidth}px`:Q.maxWidth})`:"1fr"}).join(" "),totalMinWidth:re}},[L]),oe=Ie.useCallback(re=>{if(!e.find($=>$.id===re)?.sortable)return;let Q;z?.columnId===re?Q={columnId:re,direction:z.direction==="asc"?"desc":"asc"}:Q={columnId:re,direction:"asc"},G||H(Q),P?.(Q);},[e,z,P,G]),ae=j==="loading"||u&&t.length===0,pe={};a?(pe.height=typeof a=="number"?`${a}px`:a,pe.overflowY="auto"):i?(pe.maxHeight=typeof i=="number"?`${i}px`:i,pe.overflowY="auto"):f&&(pe.height="600px",pe.overflowY="auto");let be=tailwindMerge.twMerge(oP[n],!f&&(s==="responsive"?"overflow-x-auto scrollbar-visible":"overflow-auto scrollbar-visible"),r),De=th(d),bt=c!=="none",$o=(re,xe)=>bt?c==="custom"&&l?l(re,xe):jsxRuntime.jsx(c==="cards"?Hl:Ol,{row:re,columns:L,density:o,isLoading:u,onClick:S?()=>S(re):void 0}):null,So=K?te?.map(re=>({virtualItem:re,row:t[re.index],index:re.index}))||[]:t.map((re,xe)=>({row:re,index:xe,virtualItem:null}));return jsxRuntime.jsxs("div",{ref:W,className:be,style:{...pe,position:K?"relative":void 0},children:[jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("grid border-separate border-spacing-0",nP[s],n==="auto"?"inline-grid w-auto":"w-full",bt&&De.desktop),role:"table","aria-label":E,style:{gridTemplateColumns:ne,minWidth:Se>0?`${Se}px`:void 0},children:[!T&&(I?jsxRuntime.jsx(nh,{columns:e,columnOrder:D,onColumnOrderChange:F,sortConfig:z,onSort:oe,stickyHeader:C,stickyFirstColumn:y,density:o,isLoading:ae}):jsxRuntime.jsx("div",{className:"contents",role:"rowgroup",children:L.map((re,xe)=>jsxRuntime.jsx(iP,{column:re,sortConfig:z,onSort:oe,stickyHeader:C,stickyFirstColumn:y,isFirstColumn:xe===0,density:o,isLoading:ae},re.id))})),K?jsxRuntime.jsx("div",{className:"col-span-full",style:{gridColumn:"1 / -1",height:`${K.getTotalSize()}px`,position:"relative"},role:"rowgroup",children:ae?Array.from({length:p}).map((re,xe)=>jsxRuntime.jsx("div",{className:"contents",children:jsxRuntime.jsx(ih,{columns:L,rowIndex:xe,density:o,stickyFirstColumn:y})},`loading-${xe}`)):t.length>0?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[So.map(({row:re,index:xe,virtualItem:Q})=>{if(!re||!Q)return null;let $=N?N(re):`row-${xe}`;return jsxRuntime.jsx("div",{style:{position:"absolute",top:0,left:0,width:"100%",display:"grid",gridTemplateColumns:ne,transform:`translateY(${Q.start}px)`},"data-index":Q.index,ref:K.measureElement,children:jsxRuntime.jsx(ah,{columns:L,row:re,rowIndex:xe,density:o,onClick:S,stickyFirstColumn:y})},$)}),ue&&jsxRuntime.jsx("div",{style:{position:"absolute",top:`${K.getTotalSize()}px`,left:0,width:"100%"},children:v||jsxRuntime.jsx(hr,{state:"loading-more"})})]}):jsxRuntime.jsx("div",{className:"py-12 text-center text-text-secondary",children:"No data available"})}):jsxRuntime.jsx("div",{className:"contents",role:"rowgroup",children:ae?Array.from({length:p}).map((re,xe)=>jsxRuntime.jsx(ih,{columns:L,rowIndex:xe,density:o,stickyFirstColumn:y},`loading-${xe}`)):t.length>0?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[So.map(({row:re,index:xe})=>{if(!re)return null;let Q=N?N(re):`row-${xe}`;return jsxRuntime.jsx(ah,{columns:L,row:re,rowIndex:xe,density:o,onClick:S,stickyFirstColumn:y},Q)}),ue&&jsxRuntime.jsx("div",{className:"col-span-full",style:{gridColumn:"1 / -1"},children:v||jsxRuntime.jsx(hr,{state:"loading-more"})})]}):jsxRuntime.jsx("div",{className:"col-span-full py-12 text-center text-text-secondary",role:"row",children:jsxRuntime.jsx("div",{role:"cell",children:"No data available"})})})]}),bt&&jsxRuntime.jsx("div",{className:De.mobile,children:ae?Array.from({length:p}).map((re,xe)=>jsxRuntime.jsx(rh,{density:o},`mobile-loading-${xe}`)):t.length>0?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[So.map(({row:re,index:xe})=>{if(!re)return null;let Q=N?N(re):`mobile-row-${xe}`;return jsxRuntime.jsx("div",{className:"border-b border-border-default last:border-b-0",children:$o(re,xe)},Q)}),ue&&(v||jsxRuntime.jsx(hr,{state:"loading-more"}))]}):jsxRuntime.jsx("div",{className:"py-12 text-center text-text-secondary",children:"No data available"})}),f&&g&&!ae&&(K?jsxRuntime.jsx("div",{ref:U,style:{position:"absolute",top:`${K.getTotalSize()}px`,left:0,width:"100%",height:1}}):jsxRuntime.jsx("div",{ref:U,className:"h-px w-full"}))]})}function ch({status:e,alertCount:t,showCount:r=false,isLoading:o,size:n="sm",shape:a="pill",...i}){if(o)return jsxRuntime.jsx(J,{className:"inline-flex h-6 w-20"});let s={healthy:"success",warning:"warning",error:"error",unknown:"neutral"},c={healthy:"Healthy",warning:"Warning",error:"Error",unknown:"Unknown"},l=e==="warning"||e==="error",d=r&&t?`${c[e]} (${t})`:c[e];return jsxRuntime.jsx(et,{variant:s[e],size:n,shape:a,dot:l,dotPulse:l,...i,children:d})}var uP={battery:"BatteryHigh",charger:"ChargingStation",thermostat:"ThermometerSimple",inverter:"Power",vehicle:"Car",water_heater:"DropHalfBottom",meter:"Gauge",gateway:"WifiHigh",other:"Cube",unknown:"Question"},pP={battery:"Battery",charger:"Charger",thermostat:"Thermostat",inverter:"Inverter",vehicle:"Vehicle",water_heater:"Water Heater",meter:"Meter",gateway:"Gateway",other:"Other",unknown:"Unknown"};function uh({deviceType:e,iconName:t,size:r="md",showLabel:o=false,className:n}){let a=t||(e?uP[e]:"Question"),i=e?pP[e]:void 0;return jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("inline-flex items-center",o?"flex-col gap-1":"gap-0",n),children:[jsxRuntime.jsx(B,{name:a,size:r}),o&&i&&jsxRuntime.jsx("span",{className:"text-xs text-text-secondary",children:i})]})}function Ti({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:d,className:u,primaryAction:m,secondaryAction:p,tertiaryAction:f,footerContent:g,contentPadding:b=true,maxWidth:x="400px"}){if(!s)return null;let v=t||r,C=m||p||f||g;return jsxRuntime.jsx(Rr,{children:jsxRuntime.jsx(nr,{isOpen:s,onOpenChange:y=>!y&&d?.(),isDismissable:true,transparent:l,children:jsxRuntime.jsx(reactAriaComponents.Modal,{className:"outline-none focus:outline-none focus-visible:outline-none ring-0 focus:ring-0 focus-visible:ring-0",children:jsxRuntime.jsxs(reactAriaComponents.Dialog,{className:tailwindMerge.twMerge("fixed top-0 bottom-0 flex flex-col bg-background-surface shadow-xl overflow-hidden",c==="right"?"right-0":"left-0",c==="right"?"animate-in slide-in-from-right duration-300 ease-out":"animate-in slide-in-from-left duration-300 ease-out","data-[exiting]:animate-out",c==="right"?"data-[exiting]:slide-out-to-right":"data-[exiting]:slide-out-to-left","data-[exiting]:duration-200 data-[exiting]:ease-in","outline-none focus-visible:outline focus-visible:outline-2 focus-visible:outline-action-default focus-visible:outline-offset-0",u),style:{maxWidth:x,width:"100%"},children:[v&&(a&&i?jsxRuntime.jsx(It,{title:t,headerContent:r,titleAlign:o,hideCloseIcon:n,hasBackArrow:true,onBack:i,onClose:d}):jsxRuntime.jsx(It,{title:t,headerContent:r,titleAlign:o,hideCloseIcon:n,onClose:d})),jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("flex-1 overflow-y-auto overscroll-contain",b?"px-6 py-6":"p-0"),children:e}),C&&jsxRuntime.jsx(Ro,{primaryAction:m,secondaryAction:p,tertiaryAction:f,footerContent:g})]})})})})}Ti.displayName="Drawer";var xP={sm:"gap-4 px-6 py-8",md:"gap-5 px-8 py-12",lg:"gap-6 px-10 py-16"},hP={sm:"xs",md:"sm",lg:"md"},yP={sm:ct("bodySm"),md:ct("bodySm"),lg:ct("bodyMd")},vP={sm:"h-10 w-10",md:"h-12 w-12",lg:"h-16 w-16"},CP={sm:20,md:24,lg:32},SP={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"},wP={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 fh({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:d=false,className:u}){let m=i==="sm"?"sm":"md",p=c==="spotlight",f=p?{background:wP[l]}:void 0,g=()=>a?jsxRuntime.jsx("div",{className:"empty-state-actions mt-2 flex flex-wrap items-center gap-3",children:a}):o||n?jsxRuntime.jsxs("div",{className:"empty-state-actions mt-2 flex flex-col gap-3",children:[o&&(o.href?jsxRuntime.jsx(_,{variant:"secondary",size:m,onPress:o.onPress,isDisabled:o.isDisabled,isLoading:o.isLoading,href:o.href,children:o.label}):jsxRuntime.jsx(_,{variant:"secondary",size:m,onPress:o.onPress,isDisabled:o.isDisabled,isLoading:o.isLoading,children:o.label})),n&&jsxRuntime.jsx($e,{href:n.href||"#",variant:"muted",onPress:n.onPress,className:ct("labelMd"),children:n.label})]}):null;return jsxRuntime.jsxs("section",{"data-testid":"empty-state",role:"status","aria-live":"polite",className:tailwindMerge.twMerge("flex w-full flex-col rounded-xl text-text-primary",xP[i],SP[s],d?"h-full justify-center":"",p?"relative overflow-hidden":"",u),style:f,children:[e&&jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("flex items-center justify-center rounded-full border border-border-muted bg-background-muted text-text-secondary",vP[i]),children:jsxRuntime.jsx(B,{name:e,size:CP[i]})}),jsxRuntime.jsx(Jt,{size:hP[i],tag:"h2",className:"text-text-secondary",children:t}),r&&jsxRuntime.jsx("p",{className:tailwindMerge.twMerge("max-w-xs text-text-secondary whitespace-pre-line",yP[i]),children:r}),g()]})}function gh({status:e,programName:t,isLoading:r,size:o="sm",shape:n="pill",...a}){if(r)return jsxRuntime.jsx(J,{className:"inline-flex h-6 w-20"});let i={enrolled:"success",eligible:"info",pending:"warning",not_eligible:"neutral",opted_out:"neutral"},s={enrolled:"Enrolled",eligible:"Eligible",pending:"Pending",not_eligible:"Not Eligible",opted_out:"Opted Out"},c=jsxRuntime.jsx(et,{variant:i[e],size:o,shape:n,...a,children:s[e]});return t?jsxRuntime.jsx(jt,{content:t,children:c}):c}function xh({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[d,u]=Ie.useState(false),[m,p]=Ie.useState(false),[f,g]=Ie.useState(null),[b,x]=Ie.useState(e),v=Ie.useRef(null),C=async N=>{if(g(null),n&&N.size>n){g(`File size must be less than ${(n/1024/1024).toFixed(2)}MB`);return}if(c&&N.type.startsWith("image/")){let T=new FileReader;T.onloadend=()=>{x(T.result);},T.readAsDataURL(N);}if(i){p(true);try{let T=await i(N);x(T),r?.(T);}catch(T){g("Failed to upload file"),console.error("Upload error:",T);}finally{p(false);}}t?.(N,b);},y=async N=>{try{let T=N.items;if(T.length>0){let M=T[0];if(M.kind==="file"){let P=await M.getFile();P&&C(P);}}}catch(T){g("Failed to upload file"),console.error("Upload error:",T);}finally{u(false);}},S=()=>{x(void 0),g(null),t?.(null),r?.(""),v.current&&(v.current.value="");};return jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("w-full",s),children:[jsxRuntime.jsxs(reactAriaComponents.DropZone,{className:tailwindMerge.twMerge("relative flex min-h-[200px] w-full flex-col items-center justify-center rounded-lg border-2 border-dashed transition-colors",d?"border-action-brand bg-action-brand/5":"border-border-muted hover:border-border-default",a&&"pointer-events-none opacity-50",f&&"border-feedback-error-border bg-feedback-error-background/50"),onDrop:y,onDropEnter:()=>u(true),onDropExit:()=>u(false),children:[b?jsxRuntime.jsxs("div",{className:"relative flex h-full w-full items-center justify-center p-4",children:[c&&(b.startsWith("data:image")||b.startsWith("http"))?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-secondary"}),jsxRuntime.jsx("span",{className:"text-sm text-text-secondary",children:"File uploaded"})]}),!a&&jsxRuntime.jsx(_,{variant:"icon",size:"sm",onPress:S,className:"absolute right-2 top-2 bg-background-surface shadow-md",children:jsxRuntime.jsx(lucideReact.X,{className:"h-4 w-4"})})]}):jsxRuntime.jsxs("div",{className:"flex flex-col items-center gap-4 p-6",children:[jsxRuntime.jsx(lucideReact.Upload,{className:"h-12 w-12 text-text-secondary"}),jsxRuntime.jsxs("div",{className:"text-center",children:[jsxRuntime.jsx("p",{className:"text-sm text-text-primary",children:l}),jsxRuntime.jsx("p",{className:"mt-1 text-xs text-text-secondary",children:o==="image/*"?"PNG, JPG, GIF up to 10MB":`Accepts ${o}`})]}),jsxRuntime.jsx(reactAriaComponents.FileTrigger,{acceptedFileTypes:o.split(","),onSelect:N=>{let T=Array.from(N||[]);T.length>0&&C(T[0]);},children:jsxRuntime.jsx(_,{variant:"secondary",size:"sm",isDisabled:a,children:"Choose File"})})]}),m&&jsxRuntime.jsx("div",{className:"absolute inset-0 flex items-center justify-center rounded-lg bg-background-surface/80",children:jsxRuntime.jsxs("div",{className:"flex flex-col items-center gap-2",children:[jsxRuntime.jsx("div",{className:"h-8 w-8 animate-spin rounded-full border-2 border-action-brand border-t-transparent"}),jsxRuntime.jsx("span",{className:"text-sm text-text-secondary",children:"Uploading..."})]})})]}),f&&jsxRuntime.jsx("p",{className:"mt-2 text-sm text-feedback-error-text",children:f})]})}function yh({version:e,isLatest:t,updateAvailable:r,isLoading:o,size:n="sm",shape:a="rounded",...i}){if(o)return jsxRuntime.jsx(J,{className:"inline-flex h-6 w-16"});let s="neutral",c=e;return t?s="success":r&&(s="warning",c=`${e} (Update)`),jsxRuntime.jsx(et,{variant:s,size:n,shape:a,...i,children:c})}function wa(e){return jsxRuntime.jsx(reactAriaComponents.Form,{validationBehavior:"aria",...e,className:tailwindMerge.twMerge("flex flex-col gap-6",e.className)})}function Ch({placeholder:e="Search...",value:t,onChange:r,isOpen:o,onOpenChange:n,trigger:a,children:i,showShortcutHint:s=true,showInput:c=true,className:l}){let[d,u]=Ie.useState(false),m=Wt("(max-width: 767px)"),p=o!==void 0?o:d,f=Ie.useCallback(v=>{n?n(v):u(v);},[n]);Ie.useEffect(()=>{let v=C=>{(C.metaKey||C.ctrlKey)&&C.key==="k"&&(C.preventDefault(),f(!p)),C.key==="Escape"&&p&&f(false);};return window.addEventListener("keydown",v),()=>window.removeEventListener("keydown",v)},[p,f]);let g=Ie.useCallback(v=>{r?.(v);},[r]),b=jsxRuntime.jsxs("button",{type:"button",className:"flex items-center gap-2 px-3 py-2 text-sm text-text-secondary hover:text-text-primary hover:bg-background-hover rounded-md transition-colors","aria-label":"Open search",children:[jsxRuntime.jsx(B,{name:"MagnifyingGlass",size:18}),!m&&s&&jsxRuntime.jsxs("span",{className:"hidden md:flex items-center gap-1 text-xs",children:[jsxRuntime.jsx("kbd",{className:"px-1.5 py-0.5 bg-background-muted border border-border-muted rounded text-xs",children:navigator.platform.includes("Mac")?"\u2318":"Ctrl"}),jsxRuntime.jsx("kbd",{className:"px-1.5 py-0.5 bg-background-muted border border-border-muted rounded text-xs",children:"K"})]})]}),x=a===null||Ie.isValidElement(a)&&a.type===Ie.Fragment&&!a.props.children;return m?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[!x&&(a?jsxRuntime.jsx("button",{type:"button",onClick:()=>f(true),className:"appearance-none bg-transparent border-none p-0 cursor-pointer",children:a}):jsxRuntime.jsx("button",{type:"button",onClick:()=>f(true),className:"appearance-none bg-transparent border-none p-0 cursor-pointer",children:b})),jsxRuntime.jsx(ot,{isOpen:p,onClose:()=>f(false),hideCloseIcon:false,contentPadding:false,maxHeight:"90vh",children:jsxRuntime.jsxs("div",{className:"flex flex-col h-full",children:[c&&jsxRuntime.jsx("div",{className:"p-4 border-b border-border-muted flex-shrink-0",children:jsxRuntime.jsx(Nr,{value:t,onChange:g,placeholder:e,showSearchIcon:true,isClearable:!!t,onClear:()=>r?.(""),reserveErrorSpace:false,className:l,autoFocus:true})}),jsxRuntime.jsx("div",{className:"flex-1 min-h-0 overflow-hidden",children:i})]})})]}):x?null:jsxRuntime.jsxs(reactAriaComponents.DialogTrigger,{isOpen:p,onOpenChange:f,children:[a||b,jsxRuntime.jsx(rt,{placement:"bottom",className:"w-[600px] max-w-[90vw] bg-background-surface shadow-xl border border-border-default rounded-lg overflow-hidden",children:jsxRuntime.jsxs("div",{className:"flex flex-col",children:[c&&jsxRuntime.jsx("div",{className:"p-4 border-b border-border-muted",children:jsxRuntime.jsx(Nr,{value:t,onChange:g,placeholder:e,showSearchIcon:true,isClearable:!!t,onClear:()=>r?.(""),reserveErrorSpace:false,className:l,autoFocus:true})}),jsxRuntime.jsx("div",{className:"max-h-[500px] overflow-hidden",children:i})]})})]})}function Nh({placeholder:e="Search...",value:t,onChange:r,isOpen:o,onOpenChange:n,children:a,maxHeight:i="400px",variant:s="default",className:c}){let[l,d]=Ie.useState(false),u=Wt("(max-width: 767px)"),m=Ie.useRef(null),p=Ie.useRef(null),f=o!==void 0?o:l,g=Ie.useCallback(E=>{n?n(E):d(E);},[n]);Ie.useEffect(()=>{let E=I=>{(I.metaKey||I.ctrlKey)&&I.key==="k"&&(I.preventDefault(),g(!f)),I.key==="Escape"&&f&&g(false);};return window.addEventListener("keydown",E),()=>window.removeEventListener("keydown",E)},[f,g]),Ie.useEffect(()=>{f&&!u&&m.current&&setTimeout(()=>{m.current?.querySelector("input")?.focus();},0);},[f,u]),Ie.useEffect(()=>{if(!f||u)return;let E=I=>{let A=I.target,w=m.current?.contains(A),k=p.current?.contains(A);!w&&!k&&g(false);};return document.addEventListener("mousedown",E,true),()=>document.removeEventListener("mousedown",E,true)},[f,u,g]);let b=E=>{r?.(E);},x=Ie.useCallback(()=>{g(false);},[g]),v=Ie.useCallback(()=>{r?.("");},[r]),[C,y]=Ie.useState(null);Ie.useEffect(()=>{if(f&&!u&&m.current){let E=null,I=()=>{let w=m.current?.getBoundingClientRect();w&&y({top:w.bottom+8,left:w.left,width:w.width});},A=()=>{E===null&&(E=requestAnimationFrame(()=>{I(),E=null;}));};return I(),window.addEventListener("resize",A),window.addEventListener("scroll",A,true),()=>{window.removeEventListener("resize",A),window.removeEventListener("scroll",A,true),E!==null&&cancelAnimationFrame(E);}}},[f,u]);let S=Ie.useCallback(()=>{g(true);},[g]);if(u)return jsxRuntime.jsxs("div",{className:c,children:[jsxRuntime.jsx("button",{type:"button",onClick:S,className:"flex items-center justify-center w-10 h-10 rounded-lg hover:bg-background-hover transition-colors","aria-label":"Open search",children:jsxRuntime.jsx(B,{name:"MagnifyingGlass",size:"md"})}),jsxRuntime.jsxs(ot,{isOpen:f,onClose:x,contentPadding:false,height:"80vh",children:[jsxRuntime.jsxs("div",{className:"flex items-center gap-2 px-4 pt-4",children:[jsxRuntime.jsx("div",{className:"flex-1",children:jsxRuntime.jsx(Nr,{value:t,onChange:b,placeholder:e,showSearchIcon:true,isClearable:!!t,onClear:v,reserveErrorSpace:false,autoFocus:true})}),jsxRuntime.jsx(_,{variant:"icon",onPress:x,"aria-label":"Close search",className:"flex-shrink-0",children:jsxRuntime.jsx(B,{name:"X",size:"md"})})]}),jsxRuntime.jsx("div",{className:"mt-4",children:a})]})]},"mobile");let N=E=>{let A=E.target.tagName==="INPUT";if(E.key==="ArrowDown"&&f&&A){E.preventDefault();let w=p.current?.querySelector("[data-search-result]");w&&w.focus();}},T=E=>{let I=E.target;if(!I.hasAttribute("data-search-result"))return;let w=Array.from(p.current?.querySelectorAll("[data-search-result]")||[]),k=w.indexOf(I);if(E.key==="ArrowDown"){E.preventDefault(),E.stopPropagation();let H=Math.min(k+1,w.length-1);w[H]?.focus();}else if(E.key==="ArrowUp")if(E.preventDefault(),E.stopPropagation(),k===0)m.current?.querySelector("input")?.focus();else {let H=Math.max(k-1,0);w[H]?.focus();}else E.key==="Escape"&&(E.preventDefault(),E.stopPropagation(),g(false),m.current?.querySelector("input")?.focus());},M=f&&C&&typeof document<"u"?reactDom.createPortal(jsxRuntime.jsx("div",{ref:p,style:{position:"fixed",top:`${C.top}px`,left:`${C.left}px`,width:`${C.width}px`,zIndex:9999},role:"listbox",onKeyDown:T,children:jsxRuntime.jsx("div",{className:"bg-background-surface shadow-2xl border border-border-default rounded-lg overflow-hidden animate-in fade-in zoom-in-95 duration-200",children:jsxRuntime.jsx("div",{className:"overflow-y-auto",style:{maxHeight:i},children:a})})}),document.body):null,P=s==="elevated"?"bg-background-muted/50 border-border-subtle/50 focus-within:bg-background-body focus-within:border-border-focus focus-within:shadow-md backdrop-blur-sm transition-all duration-200":"";return jsxRuntime.jsxs("div",{ref:m,className:`relative w-full ${c||""}`,onKeyDown:N,children:[jsxRuntime.jsx(Nr,{value:t,onChange:b,placeholder:e,showSearchIcon:true,isClearable:!!t,onClear:()=>r?.(""),reserveErrorSpace:false,className:P,onFocus:()=>g(true)}),M]},"desktop")}function kh({message:e="No results found",suggestion:t,icon:r="MagnifyingGlass",className:o=""}){return jsxRuntime.jsxs("div",{className:`flex flex-col items-center justify-center py-12 px-4 text-center ${o}`,children:[jsxRuntime.jsx("div",{className:"text-text-secondary mb-3",children:jsxRuntime.jsx(B,{name:r,size:48})}),jsxRuntime.jsx("p",{className:"text-base font-medium text-text-primary mb-1",children:e}),t&&jsxRuntime.jsx("p",{className:"text-sm text-text-secondary max-w-xs",children:t})]})}function Ph({count:e=3,className:t=""}){return jsxRuntime.jsx("div",{className:`flex flex-col ${t}`,children:Array.from({length:e}).map((r,o)=>jsxRuntime.jsxs("div",{className:"flex items-center gap-3 px-4 py-2.5",children:[jsxRuntime.jsx(J,{width:20,height:20,variant:"circle"}),jsxRuntime.jsxs("div",{className:"flex-1 min-w-0 space-y-2",children:[jsxRuntime.jsx(J,{width:"60%",height:16}),jsxRuntime.jsx(J,{width:"40%",height:12})]}),jsxRuntime.jsx(J,{width:16,height:16})]},o))})}function Dh({title:e,count:t,isLoading:r,footer:o,children:n,className:a}){return jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("flex flex-col",a),children:[jsxRuntime.jsxs("div",{className:"flex items-baseline gap-1.5 px-4 pt-4 pb-2 border-t border-border-muted first:border-t-0",children:[jsxRuntime.jsx("h3",{className:"text-sm font-semibold text-text-primary",children:e}),!r&&t!==void 0&&jsxRuntime.jsx("span",{className:"text-xs text-text-secondary",children:t}),r&&jsxRuntime.jsx("span",{className:"text-xs text-text-secondary animate-pulse",children:"Loading..."})]}),jsxRuntime.jsx("div",{className:"flex flex-col",children:n}),o&&jsxRuntime.jsx("div",{className:"px-4 py-2 border-t border-border-subtle",children:o})]})}function Eh({id:e,title:t,subtitle:r,metadata:o,icon:n,customIcon:a,onSelect:i,isFocused:s=false,className:c,testId:l}){return jsxRuntime.jsxs("div",{role:"option",tabIndex:0,onClick:()=>{i?.(e);},onKeyDown:m=>{let p=m.currentTarget;switch(m.key){case "Enter":case " ":{m.preventDefault(),i?.(e);break}case "ArrowDown":{m.preventDefault();let f=Array.from(document.querySelectorAll("[data-search-result]")),g=f.indexOf(p);g!==-1&&g<f.length-1&&f[g+1].focus();break}case "ArrowUp":{m.preventDefault();let f=Array.from(document.querySelectorAll("[data-search-result]")),g=f.indexOf(p);if(g>0)f[g-1].focus();else {let b=document.querySelector('input[type="text"][placeholder*="Search"]');b&&b.focus();}break}case "Escape":{m.preventDefault();let f=document.querySelector('input[type="text"][placeholder*="Search"]');f&&f.focus();break}}},"data-testid":l,"data-search-result":true,className:tailwindMerge.twMerge("group flex items-center gap-3 px-4 py-3 cursor-pointer outline-none transition-colors","text-text-primary hover:bg-background-hover","focus-visible:bg-background-muted focus-visible:outline-none","data-[focused]:bg-background-hover",s&&"bg-background-hover",c),"data-focused":s||void 0,children:[a?jsxRuntime.jsx("div",{className:"flex-shrink-0",children:a}):n?jsxRuntime.jsx("div",{className:"flex-shrink-0 text-text-secondary",children:jsxRuntime.jsx(B,{name:n,size:20})}):null,jsxRuntime.jsxs("div",{className:"flex-1 min-w-0",children:[jsxRuntime.jsxs("div",{className:"flex items-baseline gap-2",children:[jsxRuntime.jsx("span",{className:"font-medium text-text-primary truncate",children:t}),o&&jsxRuntime.jsx("span",{className:"text-xs text-text-secondary flex-shrink-0",children:o})]}),r&&jsxRuntime.jsx("div",{className:"text-sm text-text-secondary truncate mt-0.5",children:r})]}),jsxRuntime.jsx("div",{className:"flex-shrink-0 opacity-0 group-hover:opacity-100 group-focus-visible:opacity-100 group-data-[focused]:opacity-100 transition-opacity",children:jsxRuntime.jsx(B,{name:"ArrowRight",size:16,className:"text-text-secondary"})})]})}function Mh({children:e,maxHeight:t="400px",className:r}){return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("overflow-y-auto overscroll-contain","divide-y divide-border-muted",r),style:{maxHeight:t},children:e})}function Ah({placeholder:e="Search...",onClick:t,showShortcut:r=true,variant:o="default",className:n=""}){let a=typeof navigator<"u"&&navigator.platform.includes("Mac");return jsxRuntime.jsxs("button",{type:"button",onClick:t,className:`
|
|
29
|
+
`}})]})}var Es={prefix:String(Math.round(Math.random()*1e10)),current:0},Sg=Be__namespace.default.createContext(Es),G1=Be__namespace.default.createContext(false);var U1=!!(typeof window<"u"&&window.document&&window.document.createElement),_d=new WeakMap;function Y1(e=false){let t=Be.useContext(Sg),r=Be.useRef(null);if(r.current===null&&!e){var o,n;let a=(n=Be__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=_d.get(a);i==null?_d.set(a,{id:t.current,state:a.memoizedState}):a.memoizedState!==i.state&&(t.current=i.id,_d.delete(a));}r.current=++t.current;}return r.current}function K1(e){let t=Be.useContext(Sg);t===Es&&!U1&&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=Y1(!!e),o=t===Es&&process.env.NODE_ENV==="test"?"react-aria":`react-aria${t.prefix}`;return e||`${o}-${r}`}function J1(e){let t=Be__namespace.default.useId(),[r]=Be.useState(Ls()),o=r||process.env.NODE_ENV==="test"?"react-aria":`react-aria${Es.prefix}`;return e||`${o}-${t}`}typeof Be__namespace.default.useId=="function"?J1:K1;function q1(){return false}function X1(){return true}function Z1(e){return ()=>{}}function Ls(){return typeof Be__namespace.default.useSyncExternalStore=="function"?Be__namespace.default.useSyncExternalStore(Z1,q1,X1):Be.useContext(G1)}function wg(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function As(e,t,r){wg(e,t),t.set(e,r);}var $1=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),Q1=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function tu(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 $1.has(r.script)}let t=e.split("-")[0];return Q1.has(t)}var kg=Symbol.for("react-aria.i18n.locale");function Tg(){let e=typeof window<"u"&&window[kg]||typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e]);}catch{e="en-US";}return {locale:e,direction:tu(e)?"rtl":"ltr"}}var ru=Tg(),ri=new Set;function Ng(){ru=Tg();for(let e of ri)e(ru);}function Pg(){let e=Ls(),[t,r]=Be.useState(ru);return Be.useEffect(()=>(ri.size===0&&window.addEventListener("languagechange",Ng),ri.add(r),()=>{ri.delete(r),ri.size===0&&window.removeEventListener("languagechange",Ng);}),[]),e?{locale:typeof window<"u"&&window[kg]||"en-US",direction:"ltr"}:t}var ow=Be__namespace.default.createContext(null);function ou(){let e=Pg();return Be.useContext(ow)||e}function Is(e,t){return e-t*Math.floor(e/t)}var Rg=1721426;function Fs(e,t,r,o){t=Vs(e,t);let n=t-1,a=-2;return r<=2?a=0:Bs(t)&&(a=-1),Rg-1+365*n+Math.floor(n/4)-Math.floor(n/100)+Math.floor(n/400)+Math.floor((367*r-362)/12+a+o)}function Bs(e){return e%4===0&&(e%100!==0||e%400===0)}function Vs(e,t){return e==="BC"?1-t:t}function nw(e){let t="AD";return e<=0&&(t="BC",e=1-e),[t,e]}var aw={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]},wr=class{fromJulianDay(t){let r=t,o=r-Rg,n=Math.floor(o/146097),a=Is(o,146097),i=Math.floor(a/36524),s=Is(a,36524),c=Math.floor(s/1461),l=Is(s,1461),d=Math.floor(l/365),u=n*400+i*100+c*4+d+(i!==4&&d!==4?1:0),[m,p]=nw(u),f=r-Fs(m,p,1,1),g=2;r<Fs(m,p,3,1)?g=0:Bs(p)&&(g=1);let b=Math.floor(((f+g)*12+373)/367),x=r-Fs(m,p,b,1)+1;return new yn(m,p,b,x)}toJulianDay(t){return Fs(t.era,t.year,t.month,t.day)}getDaysInMonth(t){return aw[Bs(t.year)?"leapyear":"standard"][t.month-1]}getMonthsInYear(t){return 12}getDaysInYear(t){return Bs(t.year)?366:365}getMaximumMonthsInYear(){return 12}getMaximumDaysInMonth(){return 31}getYearsInEra(t){return 9999}getEras(){return ["BC","AD"]}isInverseEra(t){return t.era==="BC"}balanceDate(t){t.year<=0&&(t.era=t.era==="BC"?"AD":"BC",t.year=1-t.year);}constructor(){this.identifier="gregory";}};function au(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 iu(e,t){return e.calendar.toJulianDay(e)-t.calendar.toJulianDay(t)}function Mg(e,t){return Dg(e)-Dg(t)}function Dg(e){return e.hour*36e5+e.minute*6e4+e.second*1e3+e.millisecond}var nu=null;function vn(){return nu==null&&(nu=new Intl.DateTimeFormat().resolvedOptions().timeZone),nu}function Vo(e){e=cr(e,new wr);let t=Vs(e.era,e.year);return Ag(t,e.month,e.day,e.hour,e.minute,e.second,e.millisecond)}function Ag(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 lu(e,t){if(t==="UTC")return 0;if(e>0&&t===vn()&&true)return new Date(e).getTimezoneOffset()*-6e4;let{year:r,month:o,day:n,hour:a,minute:i,second:s}=Ig(e,t);return Ag(r,o,n,a,i,s,0)-Math.floor(e/1e3)*1e3}var Eg=new Map;function Ig(e,t){let r=Eg.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"}),Eg.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 Lg=864e5;function sw(e,t,r,o){return (r===o?[r]:[r,o]).filter(a=>lw(e,t,a))}function lw(e,t,r){let o=Ig(r,t);return e.year===o.year&&e.month===o.month&&e.day===o.day&&e.hour===o.hour&&e.minute===o.minute&&e.second===o.second}function Ar(e,t,r="compatible"){let o=qr(e);if(t==="UTC")return Vo(o);if(t===vn()&&r==="compatible"&&true){o=cr(o,new wr);let c=new Date,l=Vs(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=Vo(o),a=lu(n-Lg,t),i=lu(n+Lg,t),s=sw(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 cu(e,t,r="compatible"){return new Date(Ar(e,t,r))}function Nr(e,t){let r=lu(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(),d=o.getUTCMilliseconds();return new ma(n<1?"BC":"AD",n<1?-n+1:n,a,i,t,r,s,c,l,d)}function zs(e,t){return Nr(e.getTime(),t)}function qr(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 oi(e.calendar,e.era,e.year,e.month,e.day,r,o,n,a)}function cr(e,t){if(au(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,mo(o),o}function du(e,t,r){if(e instanceof ma)return e.timeZone===t?e:uu(e,t);let o=Ar(e,t,r);return Nr(o,t)}function Fg(e){let t=Vo(e)-e.offset;return new Date(t)}function uu(e,t){let r=Vo(e)-e.offset;return cr(Nr(r,t),e.calendar)}var ni=36e5;function ii(e,t){let r=e.copy(),o="hour"in r?pw(r,t):0;pu(r,t.years||0),r.calendar.balanceYearMonth&&r.calendar.balanceYearMonth(r,e),r.month+=t.months||0,mu(r),Bg(r),r.day+=(t.weeks||0)*7,r.day+=t.days||0,r.day+=o,dw(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 pu(e,t){var r,o;!((r=(o=e.calendar).isInverseEra)===null||r===void 0)&&r.call(o,e)&&(t=-t),e.year+=t;}function mu(e){for(;e.month<1;)pu(e,-1),e.month+=e.calendar.getMonthsInYear(e);let t=0;for(;e.month>(t=e.calendar.getMonthsInYear(e));)e.month-=t,pu(e,1);}function dw(e){for(;e.day<1;)e.month--,mu(e),e.day+=e.calendar.getDaysInMonth(e);for(;e.day>e.calendar.getDaysInMonth(e);)e.day-=e.calendar.getDaysInMonth(e),e.month++,mu(e);}function Bg(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 mo(e){e.calendar.constrainDate&&e.calendar.constrainDate(e),e.year=Math.max(1,Math.min(e.calendar.getYearsInEra(e),e.year)),Bg(e);}function Vg(e){let t={};for(let r in e)typeof e[r]=="number"&&(t[r]=-e[r]);return t}function fu(e,t){return ii(e,Vg(t))}function Hs(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),mo(r),r}function ai(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),zg(r),r}function uw(e){e.second+=Math.floor(e.millisecond/1e3),e.millisecond=Os(e.millisecond,1e3),e.minute+=Math.floor(e.second/60),e.second=Os(e.second,60),e.hour+=Math.floor(e.minute/60),e.minute=Os(e.minute,60);let t=Math.floor(e.hour/24);return e.hour=Os(e.hour,24),t}function zg(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 Os(e,t){let r=e%t;return r<0&&(r+=t),r}function pw(e,t){return e.hour+=t.hours||0,e.minute+=t.minutes||0,e.second+=t.seconds||0,e.millisecond+=t.milliseconds||0,uw(e)}function Ws(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=fo(c,r,0,s.length-1,o?.round),n.era=s[c],mo(n);break}case "year":var a,i;!((a=(i=n.calendar).isInverseEra)===null||a===void 0)&&a.call(i,n)&&(r=-r),n.year=fo(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=fo(e.month,r,1,e.calendar.getMonthsInYear(e),o?.round);break;case "day":n.day=fo(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),mo(n),n}function gu(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=fo(a,r,i,s,o?.round);break}case "minute":n.minute=fo(e.minute,r,0,59,o?.round);break;case "second":n.second=fo(e.second,r,0,59,o?.round);break;case "millisecond":n.millisecond=fo(e.millisecond,r,0,999,o?.round);break;default:throw new Error("Unsupported field "+t)}return n}function fo(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 bu(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=ii(qr(e),{years:t.years,months:t.months,weeks:t.weeks,days:t.days});r=Ar(n,e.timeZone);}else r=Vo(e)-e.offset;r+=t.milliseconds||0,r+=(t.seconds||0)*1e3,r+=(t.minutes||0)*6e4,r+=(t.hours||0)*36e5;let o=Nr(r,e.timeZone);return cr(o,e.calendar)}function Og(e,t){return bu(e,Vg(t))}function Hg(e,t,r,o){switch(t){case "hour":{let n=0,a=23;if(o?.hourCycle===12){let f=e.hour>=12;n=f?12:0,a=f?23:11;}let i=qr(e),s=cr(ai(i,{hour:n}),new wr),c=[Ar(s,e.timeZone,"earlier"),Ar(s,e.timeZone,"later")].filter(f=>Nr(f,e.timeZone).day===s.day)[0],l=cr(ai(i,{hour:a}),new wr),d=[Ar(l,e.timeZone,"earlier"),Ar(l,e.timeZone,"later")].filter(f=>Nr(f,e.timeZone).day===l.day).pop(),u=Vo(e)-e.offset,m=Math.floor(u/ni),p=u%ni;return u=fo(m,r,Math.floor(c/ni),Math.floor(d/ni),o?.round)*ni+p,cr(Nr(u,e.timeZone),e.calendar)}case "minute":case "second":case "millisecond":return gu(e,t,r,o);case "era":case "year":case "month":case "day":{let n=Ws(qr(e),t,r,o),a=Ar(n,e.timeZone);return cr(Nr(a,e.timeZone),e.calendar)}default:throw new Error("Unsupported field "+t)}}function Wg(e,t,r){let o=qr(e),n=ai(Hs(o,t),t);if(n.compare(o)===0)return e;let a=Ar(n,e.timeZone,r);return cr(Nr(a,e.timeZone),e.calendar)}var mw=/^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})$/;var fw=/^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})(?:T(\d{2}))?(?::(\d{2}))?(?::(\d{2}))?(\.\d+)?(?:(?:([+-]\d{2})(?::?(\d{2}))?)|Z)$/;function si(e){let t=e.match(mw);if(!t)throw fw.test(e)?new Error(`Invalid ISO 8601 date string: ${e}. Use parseAbsolute() instead.`):new Error("Invalid ISO 8601 date string: "+e);let r=new yn(xu(t[1],0,9999),xu(t[2],1,12),1);return r.day=xu(t[3],1,r.calendar.getDaysInMonth(r)),r}function xu(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 Gg(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 hu(e){let t=cr(e,new wr),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 yu(e){return `${hu(e)}T${Gg(e)}`}function bw(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 Ug(e){return `${yu(e)}${bw(e.offset)}[${e.timeZone}]`}function vu(e){let t=typeof e[0]=="object"?e.shift():new wr,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 xw=new WeakMap,yn=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 ii(this,t)}subtract(t){return fu(this,t)}set(t){return Hs(this,t)}cycle(t,r,o){return Ws(this,t,r,o)}toDate(t){return cu(this,t)}toString(){return hu(this)}compare(t){return iu(this,t)}constructor(...t){As(this,xw,{writable:true,value:void 0});let[r,o,n,a,i]=vu(t);this.calendar=r,this.era=o,this.year=n,this.month=a,this.day=i,mo(this);}};var hw=new WeakMap,oi=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 ii(this,t)}subtract(t){return fu(this,t)}set(t){return Hs(ai(this,t),t)}cycle(t,r,o){switch(t){case "era":case "year":case "month":case "day":return Ws(this,t,r,o);default:return gu(this,t,r,o)}}toDate(t,r){return cu(this,t,r)}toString(){return yu(this)}compare(t){let r=iu(this,t);return r===0?Mg(this,qr(t)):r}constructor(...t){As(this,hw,{writable:true,value:void 0});let[r,o,n,a,i]=vu(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,mo(this);}},yw=new WeakMap,ma=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 bu(this,t)}subtract(t){return Og(this,t)}set(t,r){return Wg(this,t,r)}cycle(t,r,o){return Hg(this,t,r,o)}toDate(){return Fg(this)}toString(){return Ug(this)}toAbsoluteString(){return this.toDate().toISOString()}compare(t){return this.toDate().getTime()-du(t,this.timeZone).toDate().getTime()}constructor(...t){As(this,yw,{writable:true,value:void 0});let[r,o,n,a,i]=vu(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,mo(this);}};var Cu=new Map;function Su(e){let{locale:t}=ou(),r=t+(e?Object.entries(e).sort((n,a)=>n[0]<a[0]?-1:1).join():"");if(Cu.has(r))return Cu.get(r);let o=new Intl.Collator(t,e);return Cu.set(r,o),o}function Gs(e){let t=Su({usage:"search",...e}),r=Be.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=Be.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=Be.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 Be.useMemo(()=>({startsWith:r,endsWith:o,contains:n}),[r,o,n])}var kw=({isEntering:e,isExiting:t,className:r})=>["max-w-[200px] group bg-action-default border border-action-default-hover text-[color:var(--color-action-default-text)] text-sm rounded-lg drop-shadow-lg will-change-transform px-3 py-1",e?"animate-in fade-in placement-bottom:slide-in-from-top-0.5 placement-top:slide-in-from-bottom-0.5 placement-left:slide-in-from-right-0.5 placement-right:slide-in-from-left-0.5 ease-out duration-200":"",t?"animate-out fade-out placement-bottom:slide-out-to-top-0.5 placement-top:slide-out-to-bottom-0.5 placement-left:slide-out-to-right-0.5 placement-right:slide-out-to-left-0.5 ease-in duration-150":"",r].filter(Boolean).join(" ");function Xt({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)=>kw({...n,className:o})),children:[jsxRuntime.jsx(reactAriaComponents.OverlayArrow,{children:jsxRuntime.jsx("svg",{width:8,height:8,viewBox:"0 0 8 8",className:"fill-action-default stroke-action-default-hover group-placement-left:-rotate-90 group-placement-right:rotate-90 group-placement-bottom:rotate-180 forced-colors:fill-[Canvas] forced-colors:stroke-[ButtonBorder]",children:jsxRuntime.jsx("path",{d:"M0 0 L4 4 L8 0"})})}),t]})]})}function Tr(){let[e,t]=Be__namespace.default.useState(false),r=Be__namespace.default.useCallback((n,a)=>{t(true),a?.(n);},[]),o=Be__namespace.default.useCallback((n,a)=>{t(false),a?.(n);},[]);return {isFocused:e,handleFocus:r,handleBlur:o}}var bt=Be__namespace.default.forwardRef(({children:e,className:t},r)=>jsxRuntime.jsx("div",{ref:r,className:tailwindMerge.twMerge("relative w-full",t),children:e}));bt.displayName="InputWrapper";function li({onClick:e,size:t="md",className:r}){return jsxRuntime.jsx("button",{type:"button",onClick:o=>{o.preventDefault(),o.stopPropagation(),e();},className:tailwindMerge.twMerge("absolute right-2 top-[48%] -translate-y-1/2 transform text-text-secondary hover:text-text-primary cursor-pointer",r),"aria-label":"Clear input",onMouseDown:o=>{o.preventDefault(),o.stopPropagation();},children:jsxRuntime.jsx(H,{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 Kg(e){return e.isDisabled?"bg-background-muted":e.transparent?"bg-transparent":"bg-background-input"}function Tw(e){return e==="sm"?"!text-base md:!text-[length:var(--control-text-sm)]":e==="md"?"!text-base md:!text-[length:var(--control-text-md)]":""}function At(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}),Kg({transparent:n,isDisabled:r}),ze[a].text,ze[a].height,ze[a].padding,Tw(a),i)}function Pw(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",Kg({transparent:a,isDisabled:n}),ze[t].height,zo({isFocused:r,isInvalid:o,isDisabled:n}),i)}function Fe({children:e,size:t="md",tooltip:r,description:o,descriptionPlacement:n="below",isRequired:a,className:i,htmlFor:s}){let c=r||o&&n==="tooltip",l=r||o,d=o&&n==="inline",u=jsxRuntime.jsxs("label",{htmlFor:s,className:tailwindMerge.twMerge(ze[t].text,"!text-text-label font-semibold flex items-center gap-1",i),children:[e,a&&jsxRuntime.jsx("span",{children:"*"}),c&&jsxRuntime.jsx("span",{className:"inline-flex items-center text-text-secondary",children:jsxRuntime.jsx(H,{name:"Info",size:t==="sm"?16:20})}),d&&jsxRuntime.jsx("span",{className:"text-text-secondary font-normal ml-1",children:o})]});return c&&l?jsxRuntime.jsx(Xt,{content:l,children:u}):u}function we({size:e="md",className:t,children:r,...o}){return jsxRuntime.jsx("div",{...o,className:tailwindMerge.twMerge("leading-[2.25] text-text-secondary",ze[e].text,t),children:r})}function ue({children:e,size:t="md",className:r}){return jsxRuntime.jsx("div",{role:"alert",className:tailwindMerge.twMerge(ze[t].text,"text-feedback-error-text",r),children:e})}function Ys({size:e="md",isInvalid:t,isDisabled:r,isFocused:o,transparent:n,className:a,...i}){return jsxRuntime.jsx("input",{className:At({isInvalid:t,isDisabled:r,isFocused:o,transparent:n,size:e,className:a}),...i})}function Jg(e){let{children:t,...r}=e;return jsxRuntime.jsx("div",{...r,className:Pw(e),children:typeof t=="function"?t(e):t})}function Mw({children:e,...t}){return jsxRuntime.jsx(reactAriaComponents.ListBox,{...t,className:Se(t.className,"outline-0"),children:e})}var Du=Be.createContext("md");function $g(){return Be.useContext(Du)}function Tu(e="md"){let t=e==="sm"?"!text-base md:!text-[length:var(--control-text-sm)]":e==="md"?"!text-base md:!text-[length:var(--control-text-md)]":"";return `flex-1 text-start data-[placeholder]:text-text-disabled overflow-hidden text-ellipsis whitespace-nowrap ${ze[e].text} ${t}`}function Bw(){let e=Be__namespace.default.useCallback((r,o)=>{o?.(r);},[]),t=Be__namespace.default.useCallback((r,o)=>{o?.(r);},[]);return {handleFocus:e,handleBlur:t}}function Sn({label:e,description:t,errorMessage:r,children:o,items:n,renderItem:a,renderSelectedValue:i,size:s="md",selectedKey:c,defaultSelectedKey:l,onSelectionChange:d,placeholder:u,showErrors:m=false,tooltip:p,isRequired:f,transparent:g,reserveErrorSpace:b=false,placement:x="bottom start",shouldFlip:h=true,menuWidth:C="match",descriptionPlacement:y="below",useMobileTray:S=true,...N}){let[T,E]=Be.useState(null),[R,M]=Be.useState(null),[A,L]=Be.useState(false),w=c??T??l,{handleFocus:k,handleBlur:O}=Bw(),{isMobile:G}=Yt(),B=S&&G,z=Be__namespace.default.useMemo(()=>!i||!w||!n?null:Array.from(n).find(F=>F.id===w)??null,[i,w,n]),X=D=>{d&&D!==null&&d(D),d||E(D);},V=Be.useRef(null),K=Be.useRef(null),P=()=>{B&&L(!A);};return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(reactAriaComponents.Select,{...N,selectedKey:w,defaultSelectedKey:l,onSelectionChange:X,placeholder:u,className:Se(N.className,"group flex w-full flex-col"),ref:V,onOpenChange:D=>{B||(D&&K.current?M(K.current.offsetWidth):D||V.current?.blur());},children:({isDisabled:D,isInvalid:F,isOpen:I})=>jsxRuntime.jsxs("div",{className:"flex flex-col",children:[e&&jsxRuntime.jsx(Fe,{size:s,tooltip:p,description:y==="tooltip"||y==="inline"?t:void 0,descriptionPlacement:y,isRequired:f,children:e}),jsxRuntime.jsx(bt,{children:jsxRuntime.jsx("div",{ref:K,children:jsxRuntime.jsxs(Q,{variant:"unstyled",className:tailwindMerge.twMerge(At({isInvalid:F||m&&!!r,isDisabled:D,isFocused:B?A:I,transparent:g,size:s}),"flex items-center text-start gap-4 cursor-pointer pl-[var(--control-padding-sm)]"),onFocus:v=>k(v,N.onFocus),onBlur:v=>O(v,N.onBlur),onPress:B?P:void 0,"data-open":B?A:I,children:[i&&z?jsxRuntime.jsx("div",{className:Tu(s),children:i(z)}):B&&w?jsxRuntime.jsx("div",{className:Tu(s),children:n?Array.from(n).find(Y=>Y.id===w)?.label:String(w)}):jsxRuntime.jsx(reactAriaComponents.SelectValue,{className:Tu(s)}),jsxRuntime.jsx(H,{name:"CaretDown","aria-hidden":true,className:tailwindMerge.twMerge("h-4 w-4 text-text-primary group-disabled:text-text-disabled forced-colors:text-[ButtonText] transition-transform",(B?A:I)&&"rotate-180")})]})})}),b?jsxRuntime.jsx("div",{className:"mt-1 min-h-[20px]",children:m?jsxRuntime.jsx(ue,{size:s,className:"text-feedback-error-text",children:typeof r=="function"&&N.validationResult?r(N.validationResult):typeof r=="string"?r:null}):t&&y==="below"?jsxRuntime.jsx(we,{size:s,children:t}):null}):jsxRuntime.jsx(jsxRuntime.Fragment,{children:m?jsxRuntime.jsx(ue,{size:s,className:"mt-1 text-feedback-error-text",children:typeof r=="function"&&N.validationResult?r(N.validationResult):typeof r=="string"?r:null}):t&&y==="below"?jsxRuntime.jsx(we,{size:s,className:"mt-1",children:t}):null}),B?null:jsxRuntime.jsx(at,{className:"bg-background-input shadow-xl border border-border-input/20 backdrop-blur-sm rounded-[var(--control-border-radius)]",style:{width:C==="match"&&R?`${R}px`:void 0,minWidth:C==="auto"&&R?`${R}px`:void 0,maxWidth:C==="auto"?"min(600px, 90vw)":void 0},placement:x,shouldFlip:h,children:jsxRuntime.jsx(Du.Provider,{value:"md",children:jsxRuntime.jsx(reactAriaComponents.ListBox,{items:n,className:"w-full max-h-[300px] overflow-auto bg-background-input p-0 outline-0",children:a&&n?v=>jsxRuntime.jsx(Zt,{id:v.id,textValue:v.label,children:jsxRuntime.jsx("span",{className:"overflow-hidden text-ellipsis whitespace-nowrap min-w-0 flex-1",children:a(v)})},v.id):o})})})]})}),B&&jsxRuntime.jsx(it,{isOpen:A,onClose:()=>L(false),title:e??"Select an option",contentPadding:false,children:jsxRuntime.jsx(Du.Provider,{value:"md",children:jsxRuntime.jsx(reactAriaComponents.ListBox,{items:n,className:"w-full bg-background-surface p-0 outline-0 [&_[role=option]]:border-b [&_[role=option]]:border-border-default [&_[role=option]:last-child]:border-0 [&_[role=option]]:!px-6 [&_[role=option]]:!py-4 [&_[role=option]]:rounded-none",selectionMode:"single",selectedKeys:w!=null?[w]:[],onSelectionChange:D=>{let F=Array.from(D)[0];F!=null&&(X(F),L(false));},children:a&&n?D=>jsxRuntime.jsx(Zt,{id:D.id,textValue:D.label,children:jsxRuntime.jsx("span",{className:"overflow-hidden text-ellipsis whitespace-nowrap min-w-0 flex-1",children:a(D)})},D.id):o})})})]})}function Zt({size:e,className:t,...r}){let o=$g(),n=e??o;return jsxRuntime.jsx(reactAriaComponents.ListBoxItem,{...r,className:tailwindMerge.twMerge("flex cursor-default items-center gap-2 rounded-sm px-3 outline-none text-text-primary data-[focused]:bg-background-hover data-[focus-visible]:ring-2 data-[focus-visible]:ring-action-default data-[focus-visible]:ring-inset data-[selected]:bg-background-selected data-[selected]:font-medium overflow-hidden",ze[n].paddingY,ze[n].text,t)})}var jw=[],qw={sm:"h-4 w-4",md:"h-5 w-5",lg:"h-6 w-6",xl:"h-7 w-7"},Xw={sm:"pl-8",md:"pl-10",lg:"pl-11",xl:"pl-13"},_g={sm:"py-1",md:"py-2",lg:"py-3",xl:"py-4"},Eu=(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 Zw(e,t,r){try{let o=e.url.replace("{q}",t),n=new URLSearchParams;e.extraParams&&Object.entries(e.extraParams).forEach(([c,l])=>{n.append(c,l.toString());});let a=`${o}${n.toString()?"?"+n.toString():""}`,i=await fetch(a,{method:"GET",headers:e.headers,signal:r});if(!i.ok)throw new Error(`HTTP error! status: ${i.status}`);let s=await i.json();return {items:e.transformResponse(s)}}catch(o){if(o instanceof Error&&o.name==="AbortError")return {items:[]};console.error("Error in REST request:",o);let n=o instanceof Error?o.message:"Unknown error occurred";return {items:[],error:n}}}async function $w(e,t,r){try{let o=e.graphqlQuery.replace(`$${e.variableKey||"filter"}`,`"${t}"`),n=await fetch(e.url,{method:"POST",headers:{"Content-Type":"application/json",...e.headers},body:JSON.stringify({query:o}),signal:r});if(!n.ok)throw new Error(`HTTP error! status: ${n.status}`);let a=await n.json();if(a.errors)throw new Error(a.errors[0]?.message||"GraphQL error occurred");return e.responsePath&&(a=e.responsePath.split(".").reduce((i,s)=>i?.[s],a)),{items:e.transformResponse(a)}}catch(o){if(o instanceof Error&&o.name==="AbortError")return {items:[]};console.error("Error in GraphQL request:",o);let n=o instanceof Error?o.message:"Unknown error occurred";return {items:[],error:n}}}function js({label:e,staticItems:t=jw,sections:r,selectedKey:o,defaultSelectedKey:n,onSelectionChange:a,requestConfig:i,defaultFilter:s,placeholder:c,errorMessage:l,description:d,size:u="md",tooltip:m,isRequired:p,isDisabled:f,isInvalid:g,validationResult:b,showErrors:x=true,renderItem:h,renderLeftIcon:C,renderSection:y,autoFocus:S=false,reserveErrorSpace:N=false,hideChevron:T=false,useMobileTray:E=true,className:R}){let M=Be__namespace.default.useRef(null),A=Be__namespace.default.useRef(null),[L,w]=Be__namespace.default.useState(),[k,O]=Be.useState(()=>Eu(o||n,t,r)),[G,B]=Be.useState(false),[z,X]=Be.useState(false),V=Ro(k),{contains:K}=Gs({sensitivity:"base"}),[P,D]=Be.useState(),{isMobile:F}=Yt(),I=E&&F,v=ze[u].text,W=reactStately.useAsyncList({async load({signal:te,filterText:ne=""}){if(!i)return {items:[]};if(!i.url||i.shouldLoad&&!i.shouldLoad(ne))return {items:[]};try{let me;return i.requestType==="GraphQL"?me=await $w(i,ne,te):me=await Zw(i,ne,te),D(me.error),{items:me.items}}catch(me){return me instanceof Error&&me.name==="AbortError"?{items:[]}:(console.error("Error loading items:",me),D(me instanceof Error?me.message:"Unknown error occurred"),{items:[]})}},initialFilterText:""}),Y=i&&V!==""?W:null,U=false,ee=Be.useRef("");Be.useEffect(()=>{S&&B(true);},[S]),Be.useEffect(()=>{let te=Eu(o,t,r);te!==k&&O(te);},[o,t,r]),Be.useEffect(()=>{let te=()=>{M.current&&w(M.current.offsetWidth);};return te(),window.addEventListener("resize",te),()=>window.removeEventListener("resize",te)},[]),Be.useEffect(()=>{V===""?ee.current="":Y&&V!==ee.current&&(ee.current=V,Y.setFilterText(V));},[V,Y]),U=ss(!!Y?.isLoading,300);let pe=Be__namespace.default.useMemo(()=>{if(!I||!k)return Y?Y.items:t;let te=Y?Y.items:t,ne=s??(i?()=>true:K);return te.filter(me=>ne(me.name,k))},[I,k,Y,t,s,K]),J=te=>{let ne=Eu(te,t,r);O(ne),a&&a(te);},re=te=>{O(te);},xe=()=>{I&&X(true);};return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(reactAriaComponents.ComboBox,{onSelectionChange:J,selectedKey:o||void 0,defaultSelectedKey:n||void 0,items:Y?Y.items:r?r.flatMap(te=>te.items):t,className:Se(R,"group flex flex-col w-full"),menuTrigger:I?"manual":i?"input":"focus",allowsEmptyCollection:!!i,isDisabled:f,isInvalid:g||!!l,inputValue:k,onInputChange:re,autoFocus:S&&!I,defaultFilter:s??(i?()=>true:K),"aria-label":e||c||"Autocomplete",children:te=>jsxRuntime.jsxs("div",{className:"flex flex-col",children:[e&&jsxRuntime.jsx(Fe,{size:u,tooltip:m,isRequired:p,children:e}),jsxRuntime.jsxs(bt,{ref:M,children:[C?jsxRuntime.jsx("div",{className:"pointer-events-none absolute left-3 top-[45%] -translate-y-1/2 z-10",children:C(U)}):jsxRuntime.jsx("div",{className:"pointer-events-none absolute left-3 top-1/2 -translate-y-1/2 z-10 flex items-center",children:U?jsxRuntime.jsx(po,{size:16,color:"text-text-secondary"}):jsxRuntime.jsx(H,{name:"MagnifyingGlass",className:`${qw[u]} text-text-secondary`})}),jsxRuntime.jsx(reactAriaComponents.Input,{className:At({isInvalid:g||!!l,isDisabled:f,isFocused:G||(I?z:te.isOpen),size:u,className:tailwindMerge.twMerge(Xw[u],k&&!f||!T&&!k?"pr-10":"pr-3",I&&"cursor-pointer",R)}),placeholder:c,disabled:f,onFocus:ne=>{B(true),I&&(ne.currentTarget.blur(),xe());},onBlur:()=>{B(false);},onClick:I?xe:void 0,readOnly:I,"aria-label":e||c||"Autocomplete"}),k&&!f&&jsxRuntime.jsx(li,{onClick:()=>{O(""),a?.(null);},size:u}),!T&&!k&&jsxRuntime.jsx(reactAriaComponents.Button,{className:"absolute right-3 top-[46%] -translate-y-1/2 transform text-text-secondary hover:text-text-primary","aria-label":"Toggle menu",isDisabled:f,children:({isPressed:ne})=>jsxRuntime.jsx(H,{name:ne?"CaretUp":"CaretDown",className:"h-4 w-4"})})]}),N?jsxRuntime.jsx("div",{className:"mt-1 min-h-[20px]",children:x&&P?jsxRuntime.jsx(ue,{size:u,className:"text-feedback-error-text",children:P}):x&&typeof l=="string"?jsxRuntime.jsx(ue,{size:u,className:"text-feedback-error-text",children:l}):x&&typeof l=="function"&&b?jsxRuntime.jsx(ue,{size:u,className:"text-feedback-error-text",children:l(b)}):d?jsxRuntime.jsx(we,{size:u,children:d}):null}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[d&&jsxRuntime.jsx(we,{size:u,className:"mt-1",children:d}),x&&P&&jsxRuntime.jsx(ue,{size:u,className:"text-feedback-error-text mt-1",children:P}),x&&typeof l=="string"&&jsxRuntime.jsx(ue,{size:u,className:"text-feedback-error-text mt-1",children:l}),x&&typeof l=="function"&&b&&jsxRuntime.jsx(ue,{size:u,className:"text-feedback-error-text mt-1",children:l(b)})]}),!I&&jsxRuntime.jsx(at,{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:L?`${L}px`:void 0,zIndex:9999},children:jsxRuntime.jsx(reactAriaComponents.ListBox,{"aria-label":e||c||"Suggestions",className:`max-h-[300px] overflow-auto bg-background-input outline-none ${v}`,children:r?r.map(ne=>{let me=ne.items.map(ve=>jsxRuntime.jsx(Zt,{id:ve.id,textValue:ve.name,size:u,className:`flex cursor-default items-center gap-2 px-3 ${_g[u]} text-text-primary outline-none data-[focused]:bg-background-hover data-[selected]:bg-background-selected data-[selected]:font-medium data-[focus-visible]:ring-0`,children:h?h(ve):ve.name},ve.id));if(y){let ve=y(ne,me);return Be__namespace.default.isValidElement(ve)&&ve.type===reactAriaComponents.ListBoxSection?ve:jsxRuntime.jsx(reactAriaComponents.ListBoxSection,{children:ve},ne.name)}return jsxRuntime.jsxs(reactAriaComponents.ListBoxSection,{children:[jsxRuntime.jsx(reactAriaComponents.Header,{className:"px-3 py-1 text-sm font-bold text-text-secondary",children:ne.name}),me]},ne.name)}):ne=>jsxRuntime.jsx(Zt,{id:ne.id,textValue:ne.name,size:u,className:`flex cursor-default items-center gap-2 px-3 ${_g[u]} text-text-primary outline-none data-[focused]:bg-background-hover data-[selected]:bg-background-selected data-[selected]:font-medium data-[focus-visible]:ring-0`,children:h?h(ne):ne.name},ne.id)})})]})}),I&&jsxRuntime.jsx(it,{isOpen:z,onClose:()=>X(false),title:e??c??"Search",contentPadding:false,height:"80vh",children:jsxRuntime.jsxs("div",{className:"flex flex-col h-full",children:[jsxRuntime.jsx("div",{className:"p-4 border-b border-border-default",children:jsxRuntime.jsxs(bt,{children:[jsxRuntime.jsx("div",{className:"pointer-events-none absolute left-3 top-[45%] -translate-y-1/2 z-10 flex items-center",children:U?jsxRuntime.jsx(po,{size:16,color:"text-text-secondary"}):jsxRuntime.jsx(H,{name:"MagnifyingGlass",className:"h-4 w-4 text-text-secondary"})}),jsxRuntime.jsx("input",{ref:A,type:"text",value:k,onChange:te=>re(te.target.value),placeholder:c,autoFocus:true,className:At({isInvalid:false,isDisabled:false,isFocused:true,size:"md",className:"pl-10 pr-10"})}),k&&jsxRuntime.jsx(li,{onClick:()=>{O(""),a?.(null);},size:"md"})]})}),jsxRuntime.jsx("div",{className:"flex-1 overflow-auto",children:jsxRuntime.jsx(reactAriaComponents.ListBox,{"aria-label":e||c||"Suggestions",items:pe,selectedKeys:o?[o]:[],selectionMode:"single",onSelectionChange:te=>{let ne=Array.from(te)[0];ne&&(J(ne),X(false));},className:"bg-background-input outline-none",children:te=>jsxRuntime.jsx(Zt,{id:te.id,textValue:te.name,size:"md",className:"flex cursor-default items-center gap-2 px-4 py-3 text-text-primary outline-none data-[focused]:bg-background-hover data-[selected]:bg-background-selected data-[selected]:font-medium data-[focus-visible]:ring-0",children:h?h(te):te.name},te.id)})})]})})]})}function go({src:e,alt:t,firstName:r,lastName:o,fullName:n,onClick:a,size:i="md",shape:s="circle",variant:c="user",className:l,status:d,bordered:u=false,piiEntity:m}){let[p,f]=Be.useState(false),g=Be.useCallback(()=>f(true),[]);Be.useEffect(()=>{f(false);},[e]);let b={xs:"h-6 w-6 text-xs",sm:"h-8 w-8 text-sm",md:"h-10 w-10 text-base",lg:"h-12 w-12 text-lg",xl:"h-16 w-16 text-xl"},x={xs:"h-1.5 w-1.5",sm:"h-2 w-2",md:"h-2.5 w-2.5",lg:"h-3 w-3",xl:"h-4 w-4"},h={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"},C={online:"bg-feedback-success-background border-feedback-success-border",offline:"bg-text-secondary border-border-muted",away:"bg-feedback-warning-background border-feedback-warning-border",busy:"bg-feedback-error-background border-feedback-error-border"},y={user:"bg-feedback-info-background text-feedback-info-text",team:"bg-feedback-info-background text-feedback-info-text",organization:"bg-feedback-success-background text-feedback-success-text"},S=s==="circle"?"rounded-full":"rounded-md",N=tailwindMerge.twMerge("relative inline-flex items-center justify-center overflow-hidden transition-opacity outline-none",b[i],S,a&&"cursor-pointer hover:opacity-80",u&&"ring-2 ring-background-surface",l),E=(()=>{if(r||o){let L=r?.[0]||"",w=o?.[0]||"";return (L+w).toUpperCase()}if(n){let L=n.split(" "),w=L[0]?.[0]||"",k=L[L.length-1]?.[0]||"";return w===k?w.toUpperCase():(w+k).toUpperCase()}return ""})(),R=()=>{let L={xs:14,sm:16,md:20,lg:24,xl:32}[i];switch(c){case "team":return jsxRuntime.jsx(lucideReact.Users,{size:L});case "organization":return jsxRuntime.jsx(lucideReact.Building2,{size:L});default:return jsxRuntime.jsx(lucideReact.User,{size:L})}},M=L=>{if(m)return c==="organization"?L?"organization-logo":"initials":L?"avatar":"initials"},A=()=>e&&!p?jsxRuntime.jsx("img",{src:e,alt:t||n||"Avatar",className:"h-full w-full object-cover",onError:g,"data-pii-type":M(true),"data-pii-entity":m}):E?jsxRuntime.jsx("span",{className:"font-semibold","data-pii-type":M(false),"data-pii-entity":m,children:E}):R();return jsxRuntime.jsxs("div",{className:"relative inline-block",children:[jsxRuntime.jsx("div",{"data-avatar":true,className:tailwindMerge.twMerge(N,!e||p?y[c]:""),onClick:a,role:a?"button":void 0,tabIndex:a?0:void 0,children:A()}),d&&jsxRuntime.jsx("span",{className:tailwindMerge.twMerge("absolute border-2 border-background-surface",S,x[i],h[i],C[d]),"aria-label":`Status: ${d}`})]})}var a2={default:"bg-feedback-info-background text-feedback-info-text",success:"bg-feedback-success-background text-feedback-success-text",error:"bg-feedback-error-background text-feedback-error-text",warning:"bg-feedback-warning-background text-feedback-warning-text",info:"bg-feedback-info-background text-feedback-info-text",primary:"bg-action-primary/10 text-action-primary border border-action-primary/20",brand:"bg-action-primary/10 text-action-primary border border-action-primary/20",secondary:"bg-action-secondary text-[color:var(--color-action-secondary-text)] border border-border-muted",neutral:"bg-background-muted text-text-secondary",charging:"bg-state-charging text-state-charging-text",discharging:"bg-state-discharging text-state-discharging-text",heat:"bg-state-heat text-state-heat-text",cool:"bg-state-cool text-state-cool-text",eco:"bg-state-eco text-state-eco-text",auto:"bg-state-auto text-state-auto-text",on:"bg-state-on text-state-on-text",off:"bg-state-off text-state-off-text",idle:"bg-state-idle text-state-idle-text",unknown:"bg-state-unknown text-state-unknown-text",connected:"bg-feedback-success-background text-feedback-success-text",disconnected:"bg-feedback-error-background text-feedback-error-text",importing:"bg-state-importing text-state-importing-text",exporting:"bg-state-exporting text-state-exporting-text"},i2={xs:"px-1.5 py-0.5 text-xs",sm:"px-2.5 py-1.5 text-xs",md:"px-3.5 py-2 text-sm",lg:"px-4 py-2.5 text-base"},s2={pill:"rounded-full",rounded:"rounded-lg",square:"rounded-sm"},l2={xs:"w-1 h-1",sm:"w-1.5 h-1.5",md:"w-2 h-2",lg:"w-2.5 h-2.5"};function ot({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",l2[r],i&&"animate-pulse"),"aria-hidden":"true"});return jsxRuntime.jsxs("span",{className:tailwindMerge.twMerge("inline-flex items-center gap-1.5 font-medium",i2[r],s2[o],a2[t],s),children:[n&&a==="left"&&c,e,n&&a==="right"&&c]})}var et=({href:e,children:t,className:r="",external:o=false,title:n,variant:a="secondary",onClick:i,asButton:s=false,onPress:c,showArrow:l=false,alwaysUnderlined:d=false,LinkComponent:u,"data-pii-type":m,"data-pii-entity":p})=>{let f={...m&&{"data-pii-type":m},...p&&{"data-pii-entity":p}},g=o?{target:"_blank",rel:"noopener noreferrer"}:{},y=`${`${d?"underline decoration-1 underline-offset-4 decoration-current":"hover:underline hover:decoration-1 hover:underline-offset-4 hover:decoration-current"} cursor-pointer`} ${{primary:"text-action-primary hover:text-action-primary-hover visited:text-action-primary",secondary:"text-text-link-default hover:text-text-link-hover visited:text-text-link-default",muted:"text-text-secondary hover:text-text-secondary visited:text-text-secondary",unstyled:""}[a==="brand"?"primary":a==="default"?"secondary":a]} ${r}`,S=jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[t,l&&jsxRuntime.jsxs("span",{children:["\xA0","\u2192"]})]});return s?jsxRuntime.jsx("button",{type:"button",className:y,onClick:c,title:n,...f,children:S}):u&&e?jsxRuntime.jsx(u,{href:e,className:y,title:n,onClick:i,...g,...f,children:S}):jsxRuntime.jsx("a",{href:e||"#",className:y,...g,...f,title:n,onClick:i,children:S})};var h2={info:{subtle:{container:"bg-feedback-info-background border-l-4 border-l-feedback-info-border",iconColor:"text-feedback-info-border",titleColor:"text-text-primary",bodyColor:"text-text-primary"},bold:{container:"bg-feedback-info-border border-feedback-info-border",iconColor:"text-text-inverse",titleColor:"text-text-inverse",bodyColor:"text-text-inverse/90"},icon:lucideReact.Info},success:{subtle:{container:"bg-feedback-success-background border-l-4 border-l-feedback-success-border",iconColor:"text-feedback-success-border",titleColor:"text-text-primary",bodyColor:"text-text-primary"},bold:{container:"bg-feedback-success-border border-feedback-success-border",iconColor:"text-text-inverse",titleColor:"text-text-inverse",bodyColor:"text-text-inverse/90"},icon:lucideReact.CheckCircle},warning:{subtle:{container:"bg-feedback-warning-background border-l-4 border-l-feedback-warning-border",iconColor:"text-feedback-warning-border",titleColor:"text-text-primary",bodyColor:"text-text-primary"},bold:{container:"bg-feedback-warning-border border-feedback-warning-border",iconColor:"text-text-inverse",titleColor:"text-text-inverse",bodyColor:"text-text-inverse/90"},icon:lucideReact.AlertCircle},error:{subtle:{container:"bg-feedback-error-background border-l-4 border-l-feedback-error-border",iconColor:"text-feedback-error-border",titleColor:"text-text-primary",bodyColor:"text-text-primary"},bold:{container:"bg-feedback-error-border border-feedback-error-border",iconColor:"text-text-inverse",titleColor:"text-text-inverse",bodyColor:"text-text-inverse/90"},icon:lucideReact.XCircle},discovery:{subtle:{container:"bg-background-muted border-l-4 border-l-action-brand",iconColor:"text-action-brand",titleColor:"text-text-primary",bodyColor:"text-text-primary"},bold:{container:"bg-action-brand border-action-brand",iconColor:"text-text-inverse",titleColor:"text-text-inverse",bodyColor:"text-text-inverse/90"},icon:lucideReact.Lightbulb}};function Xs({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:d,testId:u}){let m=h2[e],p=m[t],f=m.icon,g=!!(i||s),b=!!(r||o);return jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("flex gap-3 rounded-sm border p-4",p.container,d),role:"region","aria-live":"polite","data-testid":u,children:[!l&&jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("flex-shrink-0",p.iconColor),"aria-hidden":"true",children:c||jsxRuntime.jsx(f,{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:Jt(pt("headingSm"),p.titleColor),children:r}),o&&jsxRuntime.jsx("div",{className:Jt(pt("bodySm"),r?"mt-1":"",p.bodyColor),children:o})]}),g&&jsxRuntime.jsxs("div",{className:"flex flex-wrap items-center gap-3",children:[i&&(i.asLink?jsxRuntime.jsx(et,{asButton:true,onPress:i.onPress,variant:t==="bold"?"unstyled":"default",className:t==="bold"?"text-text-inverse hover:text-text-inverse/80":"",children:i.label}):jsxRuntime.jsx(Q,{size:"sm",variant:"primary",onPress:i.onPress,className:t==="bold"?"bg-background-surface text-text-primary hover:bg-background-surface/90":"",children:i.label})),s&&(s.asLink?jsxRuntime.jsx(et,{asButton:true,onPress:s.onPress,variant:t==="bold"?"unstyled":"default",className:t==="bold"?"text-text-inverse hover:text-text-inverse/80":"",children:s.label}):jsxRuntime.jsx(Q,{size:"sm",variant:"secondary",onPress:s.onPress,className:t==="bold"?"border-text-inverse/30 text-text-inverse hover:bg-text-inverse/10":"",children:s.label}))]})]}),n&&jsxRuntime.jsx("button",{type:"button",onClick:a,className:tailwindMerge.twMerge("flex h-8 w-8 flex-shrink-0 items-center justify-center self-start rounded-md transition-colors hover:bg-background-modal/10",p.iconColor,je()),"aria-label":"Dismiss banner",children:jsxRuntime.jsx(lucideReact.X,{className:"h-4 w-4"})})]})}function ob({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(Xs,{...o,className:a})})})}function Oo({value:e,children:t,className:r,size:o="sm",iconPosition:n="right"}){let[a,i]=Be.useState(false),l=jsxRuntime.jsx(Q,{variant:"icon",size:o,onPress:()=>{let u=e||(typeof t=="string"?t:"");navigator.clipboard.writeText(u),i(true),setTimeout(()=>{i(false);},2e3);},className:"!px-2 relative",style:{top:"0.5px"},children:jsxRuntime.jsx(H,{name:"Copy",size:o==="sm"?14:16})}),d=a?jsxRuntime.jsx(Xt,{content:"Copied!",children:l}):l;return jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("inline-flex items-center gap-0.5",r),children:[n==="left"&&d,t,n==="right"&&d]})}function Zs(e){let{children:t,maxWidth:r=600,className:o,...n}=e,{ref:a,width:i}=oa(),[s,c]=Be__namespace.default.useState(false),[l,d]=Be__namespace.default.useState(false),u=Be__namespace.default.useRef(false),m=Be__namespace.default.useMemo(()=>t&&!e.items&&typeof t!="function"?Be__namespace.default.Children.toArray(t):null,[t,e.items]);if(Be__namespace.default.useEffect(()=>{m&&m.length>=4&&i>0&&!u.current?(u.current=true,c(i>r),d(true)):(!m||m&&m.length<4)&&d(true);let p=setTimeout(()=>{l||d(true);},100);return ()=>clearTimeout(p)},[i,r,m,l]),m&&s&&m.length>=4){let p=m[0],f=m.slice(1,-2),g=m.slice(-2),b=f.map(x=>{if(Be__namespace.default.isValidElement(x)){let h=x.props;if(typeof h.children=="string")return {label:h.children,href:h.href}}return {label:"..."}});return jsxRuntime.jsxs(reactAriaComponents.Breadcrumbs,{...n,ref:a,className:tailwindMerge.twMerge("flex gap-2",l?"opacity-100":"opacity-0",o),children:[p,jsxRuntime.jsx(N2,{items:b}),g]})}return jsxRuntime.jsx(reactAriaComponents.Breadcrumbs,{...n,ref:a,className:tailwindMerge.twMerge("flex gap-2",l?"opacity-100":"opacity-0",o),children:t})}function N2({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(da,{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-secondary"})]})})}function $s(e){let{className:t,children:r,href:o,copyable:n,copyValue:a,...i}=e;return jsxRuntime.jsx(reactAriaComponents.Breadcrumb,{className:Se(t,"flex items-center gap-2"),...i,children:s=>{let c=s.isCurrent,l=typeof r=="function"?r(s):r;return jsxRuntime.jsx(jsxRuntime.Fragment,{children:c?n?jsxRuntime.jsx(Oo,{value:a||(typeof l=="string"?l:void 0),size:"sm",iconPosition:"right",children:jsxRuntime.jsx("span",{className:"max-w-[200px] truncate font-semibold text-text-primary sm:max-w-none",children:l})}):jsxRuntime.jsx("span",{className:"max-w-[200px] truncate font-semibold text-text-primary sm:max-w-none",children:l}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(et,{variant:"muted",href:o,className:"max-w-[150px] truncate sm:max-w-[300px] md:max-w-none",children:l}),jsxRuntime.jsx(lucideReact.ChevronRight,{className:"h-4 w-4 shrink-0 text-text-secondary"})]})})}})}function I2({isSelected:e,isDisabled:t}){let r=[je,"w-9 h-9 text-sm cursor-default rounded-sm flex items-center justify-center forced-color-adjust-none font-semibold"];return t?r.push("text-text-disabled forced-colors:text-[GrayText]"):e?r.push("bg-action-default text-text-inverse invalid:bg-feedback-error-border forced-colors:bg-[Highlight] forced-colors:invalid:bg-[Mark] forced-colors:text-[HighlightText]"):r.push("text-text-primary hover:bg-background-hover pressed:bg-background-selected"),r.join(" ")}function fa({errorMessage:e,...t}){return jsxRuntime.jsxs(reactAriaComponents.Calendar,{...t,children:[jsxRuntime.jsx(Qs,{}),jsxRuntime.jsxs(reactAriaComponents.CalendarGrid,{className:"border-separate [border-spacing:0] [&_td]:p-0 [&_td]:!border-0",children:[jsxRuntime.jsx(_s,{}),jsxRuntime.jsx(reactAriaComponents.CalendarGridBody,{children:r=>jsxRuntime.jsx(reactAriaComponents.CalendarCell,{date:r,className:({isSelected:o,isDisabled:n})=>`${I2({isSelected:o,isDisabled:n})} border-0`})})]}),e&&jsxRuntime.jsx(reactAriaComponents.Text,{slot:"errorMessage",className:"text-sm text-feedback-error-text",children:e})]})}function Qs(){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(H,{name:"CaretRight","aria-hidden":true,size:t}):jsxRuntime.jsx(H,{name:"CaretLeft","aria-hidden":true,size:t})}),jsxRuntime.jsx(reactAriaComponents.Heading,{className:"text-md mx-2 flex-1 text-center font-semibold text-text-primary"}),jsxRuntime.jsx(Q,{variant:"icon",slot:"next",className:"pr-0",children:e==="rtl"?jsxRuntime.jsx(H,{name:"CaretLeft","aria-hidden":true,size:t}):jsxRuntime.jsx(H,{name:"CaretRight","aria-hidden":true,size:t})})]})}function _s(){return jsxRuntime.jsx(reactAriaComponents.CalendarGridHeader,{children:e=>jsxRuntime.jsx(reactAriaComponents.CalendarHeaderCell,{className:"text-xs font-semibold text-text-secondary",children:e})})}var cb=Be__namespace.createContext(null);function Ho(){let e=Be__namespace.useContext(cb);if(!e)throw new Error("Carousel components must be used within a CarouselRoot");return e}function db({page:e,defaultPage:t=0,onPageChange:r,orientation:o="horizontal",loop:n=false,autoplay:a=false,autoplayDelay:i=4e3,allowMouseDrag:s=false,spacing:c="1rem",slidesPerView:l=1,slidesPerMove:d=1,className:u,children:m,...p}){let f=e!==void 0,[g,b]=Be__namespace.useState(t),x=f?e:g,h=Be__namespace.useRef(null),[C,y]=Be__namespace.useState(0),[S,N]=Be__namespace.useState(typeof a=="boolean"?a:!!a),[T,E]=Be__namespace.useState(false),R=Be__namespace.useRef(null),M=Be__namespace.useRef(null),A=typeof a=="object"&&a!==null&&a.delay?a.delay:i;Be__namespace.useEffect(()=>{if(h.current){let v=Math.max(1,Math.floor(Number(l)||1)),W=h.current.children;if(W.length===0){y(0);return}let Y=Math.ceil(W.length/v);y(Y);}},[m,l]);let L=Be__namespace.useRef(-1);Be__namespace.useEffect(()=>{if(x!==L.current&&h.current){let v=Array.from(h.current.children);if(v.length===0)return;let W=x*l,Y=Math.min(W,v.length-1),U=v[Y];U&&typeof U.scrollIntoView=="function"&&(U.scrollIntoView({behavior:"smooth",block:o==="vertical"?"start":"nearest",inline:o==="horizontal"?"start":"nearest"}),L.current=x);}},[x,l,o]);let w=Be__namespace.useCallback(v=>{let W=v;n?W<0?W=C-1:W>=C&&(W=0):W=Math.max(0,Math.min(v,C-1)),f||b(W),r?.(W);},[f,n,r,C]),k=Be__namespace.useCallback(()=>{w(x+d);},[x,w,d]),O=Be__namespace.useCallback(()=>{w(x-d);},[x,w,d]),G=Be__namespace.useRef(k);Be__namespace.useEffect(()=>{G.current=k;},[k]);let B=C>0&&(n||x<C-1),z=C>0&&(n||x>0),X=Be__namespace.useCallback(()=>{N(v=>!v);},[]);Be__namespace.useEffect(()=>{if(S&&C>1)return R.current=setInterval(()=>{G.current();},A),()=>{R.current&&(clearInterval(R.current),R.current=null);}},[S,C,A]);let V=Be__namespace.useCallback(()=>{R.current&&(clearInterval(R.current),R.current=null);},[]),K=Be__namespace.useCallback(()=>{S&&C>1&&(R.current=setInterval(()=>{G.current();},A));},[S,C,A]),P=Be__namespace.useCallback(v=>{if(!s)return;E(true);let W="touches"in v&&v.touches&&v.touches.length>0?v.touches[0].clientX:"clientX"in v?v.clientX:0,Y="touches"in v&&v.touches&&v.touches.length>0?v.touches[0].clientY:"clientY"in v?v.clientY:0;M.current={x:W,y:Y};},[s]),D=Be__namespace.useCallback(v=>{if(!T||!M.current)return;let W="touches"in v&&v.touches&&v.touches.length>0?v.touches[0].clientX:"clientX"in v?v.clientX:0,Y="touches"in v&&v.touches&&v.touches.length>0?v.touches[0].clientY:"clientY"in v?v.clientY:0,U=W-M.current.x,ee=Y-M.current.y,pe=50;o==="horizontal"&&Math.abs(U)>pe?(U>0?O():k(),E(false),M.current=null):o==="vertical"&&Math.abs(ee)>pe&&(ee>0?O():k(),E(false),M.current=null);},[T,o,k,O]),F=Be__namespace.useCallback(()=>{E(false),M.current=null;},[]),I={currentPage:x,totalPages:C,orientation:o,loop:n,spacing:c,slidesPerView:l,goToPage:w,goToNext:k,goToPrev:O,canGoNext:B,canGoPrev:z,isAutoplayActive:S,toggleAutoplay:X,itemsRef:h,isDragging:T,allowMouseDrag:s,handleDragStart:P,handleDragMove:D,handleDragEnd:F};return jsxRuntime.jsx(cb.Provider,{value:I,children:jsxRuntime.jsx("div",{...p,className:tailwindMerge.twMerge("relative w-full",o==="vertical"?"h-full":"",u),onMouseEnter:V,onMouseLeave:K,children:m})})}function ub({className:e,children:t,...r}){let{itemsRef:o,orientation:n,spacing:a,isDragging:i,allowMouseDrag:s,handleDragStart:c,handleDragMove:l,handleDragEnd:d}=Ho();return jsxRuntime.jsx("div",{ref:o,...r,className:tailwindMerge.twMerge("flex overflow-x-auto overflow-y-hidden snap-x snap-mandatory scrollbar-hide scroll-smooth",n==="vertical"&&"flex-col overflow-y-auto overflow-x-hidden snap-y",s&&i&&"cursor-grabbing select-none",s&&!i&&"cursor-grab",e),style:{gap:a,"--carousel-spacing":a,...r.style},onMouseDown:c,onMouseMove:l,onMouseUp:d,onMouseLeave:d,onTouchStart:c,onTouchMove:l,onTouchEnd:d,children:t})}function pb({index:e,className:t,children:r,...o}){let{orientation:n,slidesPerView:a}=Ho();return jsxRuntime.jsx("div",{...o,"data-index":e,className:tailwindMerge.twMerge("shrink-0 snap-start",n==="horizontal"?"h-full":"w-full",t),style:{width:n==="horizontal"?`calc((100% - (${a-1} * var(--carousel-spacing, 1rem))) / ${a})`:void 0,height:n==="vertical"?`calc((100% - (${a-1} * var(--carousel-spacing, 1rem))) / ${a})`:void 0,...o.style},children:r})}function mb({className:e,children:t,...r}){return jsxRuntime.jsx("div",{...r,className:tailwindMerge.twMerge("flex items-center justify-center gap-4 mt-4",e),children:t})}function fb({className:e,children:t,...r}){let{goToPrev:o,canGoPrev:n}=Ho();return jsxRuntime.jsx("button",{type:"button",...r,onClick:a=>{o(),r.onClick?.(a);},disabled:!n||r.disabled,"aria-label":"Previous slide",className:tailwindMerge.twMerge("inline-flex items-center justify-center rounded-md","h-10 w-10","bg-background-input border border-border-input","text-text-primary hover:bg-background-muted","transition-colors duration-200","disabled:opacity-40 disabled:cursor-not-allowed","focus-visible:outline focus-visible:outline-2 focus-visible:outline-action-default",e),children:t||jsxRuntime.jsx(H,{name:"CaretLeft",size:"sm"})})}function gb({className:e,children:t,...r}){let{goToNext:o,canGoNext:n}=Ho();return jsxRuntime.jsx("button",{type:"button",...r,onClick:a=>{o(),r.onClick?.(a);},disabled:!n||r.disabled,"aria-label":"Next slide",className:tailwindMerge.twMerge("inline-flex items-center justify-center rounded-md","h-10 w-10","bg-background-input border border-border-input","text-text-primary hover:bg-background-muted","transition-colors duration-200","disabled:opacity-40 disabled:cursor-not-allowed","focus-visible:outline focus-visible:outline-2 focus-visible:outline-action-default",e),children:t||jsxRuntime.jsx(H,{name:"CaretRight",size:"sm"})})}function Ou({index:e,className:t,children:r,...o}){let{currentPage:n,goToPage:a}=Ho(),i=n===e;return jsxRuntime.jsx("button",{type:"button",...o,onClick:s=>{a(e),o.onClick?.(s);},"aria-label":`Go to slide ${e+1}`,"aria-current":i,className:tailwindMerge.twMerge("h-2 rounded-full transition-all duration-200",i?"w-6 bg-action-brand":"w-2 bg-border-muted hover:bg-border-input","focus-visible:outline focus-visible:outline-2 focus-visible:outline-action-default",t),children:r})}function bb({className:e,...t}){let{totalPages:r}=Ho();return jsxRuntime.jsx("div",{...t,className:tailwindMerge.twMerge("flex items-center gap-2",e),role:"group","aria-label":"Carousel indicators",children:Array.from({length:r},(o,n)=>jsxRuntime.jsx(Ou,{index:n},n))})}function xb({className:e,children:t,...r}){let{isAutoplayActive:o,toggleAutoplay:n}=Ho();return jsxRuntime.jsx("button",{type:"button",...r,onClick:a=>{n(),r.onClick?.(a);},"aria-label":o?"Pause autoplay":"Start autoplay",className:tailwindMerge.twMerge("inline-flex items-center justify-center rounded-md","h-10 w-10","bg-background-input border border-border-input","text-text-primary hover:bg-background-muted","transition-colors duration-200","focus-visible:outline focus-visible:outline-2 focus-visible:outline-action-default",e),children:t||jsxRuntime.jsx(H,{name:o?"Pause":"Play",size:"sm"})})}function hb({className:e,...t}){let{currentPage:r,totalPages:o}=Ho();return jsxRuntime.jsxs("div",{...t,className:tailwindMerge.twMerge("text-sm text-text-secondary tabular-nums",e),"aria-live":"polite","aria-atomic":"true",children:[r+1," / ",o]})}var W2="focus:ring-action-primary",G2="bg-action-primary border-action-primary text-[color:var(--color-action-primary-text)] hover:bg-action-primary-hover hover:border-action-primary-hover";function Hu(e){return jsxRuntime.jsxs(reactAriaComponents.CheckboxGroup,{...e,className:Se(e.className,"flex flex-col gap-2"),children:[jsxRuntime.jsx(Fe,{children:e.label}),e.children,e.description&&jsxRuntime.jsx(we,{children:e.description}),jsxRuntime.jsx(ue,{children:typeof e.errorMessage=="function"?void 0:e.errorMessage})]})}function U2({isDisabled:e}){return `flex gap-2 items-center group text-sm transition ${e?"text-text-disabled":"text-text-secondary"}`}function Y2({isSelected:e,isInvalid:t,isDisabled:r,isIndeterminate:o}){let n="w-5 h-5 flex-shrink-0 rounded-[var(--control-border-radius)] flex items-center justify-center border-2 transition ring-offset-2 focus:ring-2",a=W2,i="";return r?i="border-border-muted bg-background-muted":t?i="border-feedback-error-border bg-feedback-error-background":e||o?i=G2:i="bg-background-input border-border-input hover:border-border-focus",`${n} ${a} ${i}`}var yb="w-4 h-4 text-current group-disabled:text-text-disabled";function Pn(e){let{children:t,variant:r,...o}=e;return jsxRuntime.jsx(reactAriaComponents.Checkbox,{...o,className:reactAriaComponents.composeRenderProps(e.className,(n,a)=>`${U2(a)} ${n||""}`),children:n=>{let{isSelected:a,isIndeterminate:i,...s}=n,c=jsxRuntime.jsx("div",{className:Y2({isSelected:a,isIndeterminate:i,...s}),children:i?jsxRuntime.jsx(lucideReact.Minus,{"aria-hidden":true,className:yb}):a?jsxRuntime.jsx(lucideReact.Check,{"aria-hidden":true,className:yb}):null});return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[c,typeof t=="function"?t(n):t]})}})}var j2={primary:"bg-action-primary/10 text-action-primary border border-action-primary/20 hover:bg-action-primary/15",secondary:"bg-action-secondary text-[color:var(--color-action-secondary-text)] border border-border-muted hover:bg-action-secondary-hover",info:"bg-feedback-info-background text-feedback-info-text border border-feedback-info-border hover:bg-feedback-info-background/80"};function Cb(e){return !e||e==="default"?"secondary":e==="brand"?"primary":e}var q2={xs:"px-1.5 py-[2px] gap-0.5",sm:"px-2 py-1 gap-1",md:"px-3 py-1.5 gap-1.5",lg:"px-3 py-2 gap-2",xl:"px-4 py-2.5 gap-2"},X2="opacity-75 cursor-not-allowed pointer-events-none";function Sb(e){let{variant:t,size:r,isDisabled:o,isClickable:n,className:a}=e,i=r==="xs"?"text-xs":ze[r].text;return tailwindMerge.twMerge("inline-flex items-center justify-center rounded-full font-medium transition-colors","whitespace-nowrap select-none",q2[r],i,j2[t],n&&!o&&"cursor-pointer",o&&X2,a)}function $r({children:e,onRemove:t,size:r="md",variant:o="secondary",isRemovable:n=true,isDisabled:a=false,className:i,onClick:s}){let c=!!s&&!a,l=n&&t&&!a,d=g=>{g.stopPropagation(),g.preventDefault(),t&&!a&&t();},u=()=>{s&&!a&&s();},m=r==="xs"?10:r==="sm"?12:r==="md"?14:16,f=jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("span",{className:"truncate",children:e}),l?c?jsxRuntime.jsx("span",{onClick:d,onKeyDown:g=>{(g.key==="Enter"||g.key===" ")&&(g.preventDefault(),d(g));},role:"button",tabIndex:0,className:"flex-shrink-0 rounded-full p-0.5 hover:bg-text-primary/10 transition-colors cursor-pointer","aria-label":"Remove",children:jsxRuntime.jsx(H,{name:"X",size:m,className:"text-current opacity-70 hover:opacity-100"})}):jsxRuntime.jsx("button",{type:"button",onClick:d,className:"flex-shrink-0 rounded-full p-0.5 hover:bg-text-primary/10 transition-colors cursor-pointer","aria-label":"Remove",tabIndex:-1,children:jsxRuntime.jsx(H,{name:"X",size:m,className:"text-current opacity-70 hover:opacity-100"})}):null]});return c?jsxRuntime.jsx("button",{type:"button",onClick:u,className:Sb({variant:Cb(o),size:r,isDisabled:a,isClickable:c,className:i}),disabled:a,children:f}):jsxRuntime.jsx("span",{className:Sb({variant:Cb(o),size:r,isDisabled:a,isClickable:c,className:i}),children:f})}function kb({label:e,description:t,errorMessage:r,size:o="md",tooltip:n,isRequired:a=false,isDisabled:i=false,isInvalid:s=false,validationResult:c,placeholder:l="Add items...",selectedItems:d=[],onItemsChange:u,staticItems:m,fetchSuggestions:p,chipVariant:f="secondary",showErrors:g=true,className:b}){let[x,h]=Be.useState(""),[C,y]=Be.useState([]),[S,N]=Be.useState(false),[T,E]=Be.useState(false),[R,M]=Be.useState(-1),A=Ro(x,300),L=Be.useRef(null),w=Be.useRef(null),{isFocused:k,handleFocus:O,handleBlur:G}=Tr(),B=Be.useId(),z=Be.useCallback(I=>{if(!u||!I.trim())return;let v=I.trim();if(d.includes(v)){h(""),E(false),y([]),M(-1);return}u([...d,v]),h(""),E(false),y([]),M(-1),L.current?.focus();},[d,u]),X=Be.useCallback(I=>{u&&u(d.filter(v=>v!==I));},[d,u]);Be.useEffect(()=>{if(!p)return;let I=true;return (async()=>{let W=A.trim();if(!W){I&&(N(false),y([]),E(false));return}N(true);try{let Y=await p(W);if(!I)return;y(Y),E(!0);}catch(Y){if(!I)return;console.error("Error fetching suggestions:",Y),y([]),E(false);}finally{I&&N(false);}})(),()=>{I=false;}},[A,p]),Be.useEffect(()=>{if(p||!m)return;if(!A.trim()){y([]),E(false);return}let I=m.filter(v=>v.name.toLowerCase().includes(A.toLowerCase())).map(v=>v.id);y(I),E(I.length>0||A.trim().length>0);},[A,m,p]);let V=Be.useMemo(()=>{let I=C.filter(v=>!d.includes(v));return x.trim()&&!I.includes(x.trim())&&!d.includes(x.trim())?[...I,`Create tag: "${x.trim()}"`]:I},[C,x,d]),K=Be.useCallback(I=>{h(I.target.value),M(-1),I.target.value&&E(true);},[]),P=Be.useCallback(I=>{i||(I.startsWith("Create tag:")?z(x):z(I));},[z,x,i]),D=Be.useCallback(I=>{if(!i)switch(I.key){case "Enter":case ",":if(I.preventDefault(),R>=0&&R<V.length){let v=V[R];v.startsWith("Create tag:")?z(x):z(v);}else x.trim()&&z(x.trim());break;case "Backspace":!x&&d.length>0&&(I.preventDefault(),X(d[d.length-1]));break;case "ArrowDown":I.preventDefault(),T&&M(v=>v<V.length-1?v+1:v);break;case "ArrowUp":I.preventDefault(),T&&M(v=>v>0?v-1:-1);break;case "Escape":E(false),M(-1);break}},[i,x,d,V,R,T,z,X]);Be.useEffect(()=>{let I=v=>{w.current&&v.target instanceof Node&&!w.current.contains(v.target)&&E(false);};return document.addEventListener("mousedown",I),()=>document.removeEventListener("mousedown",I)},[]);let F=()=>tailwindMerge.twMerge("flex items-center gap-1.5 rounded-md overflow-x-auto overflow-y-hidden","[&::-webkit-scrollbar]:hidden [-ms-overflow-style:none] [scrollbar-width:none]",zo({isInvalid:s,isDisabled:i,isFocused:k}),"bg-background-input",o==="sm"&&"px-2 py-1 h-[32px]",o==="md"&&"px-2.5 py-1.5 h-[40px]",o==="lg"&&"px-3 py-2 h-[44px]",o==="xl"&&"px-3.5 py-2.5 h-[48px]",i&&"opacity-50 cursor-not-allowed bg-background-muted");return jsxRuntime.jsxs("div",{ref:w,className:tailwindMerge.twMerge("relative flex flex-col gap-1",b),children:[e&&jsxRuntime.jsx(Fe,{size:o,tooltip:n,isRequired:a,children:e}),jsxRuntime.jsx(bt,{children:jsxRuntime.jsxs("div",{className:F(),onClick:()=>!i&&L.current?.focus(),children:[d.map(I=>jsxRuntime.jsx($r,{variant:f,size:"xs",onRemove:()=>X(I),isDisabled:i,className:"shrink-0 max-h-full",children:I},I)),jsxRuntime.jsx("input",{ref:L,type:"text",role:"combobox","aria-expanded":T,"aria-haspopup":"listbox","aria-controls":B,"aria-autocomplete":"list",value:x,onChange:K,onKeyDown:D,onFocus:I=>O(I),onBlur:I=>G(I),placeholder:d.length===0?l:"",disabled:i,className:"flex-1 min-w-[120px] h-full !border-0 !outline-none !ring-0 bg-transparent text-text-primary text-sm placeholder:text-text-disabled disabled:cursor-not-allowed focus:!ring-0 focus:!outline-none focus:!border-0 focus-visible:!ring-0 focus-visible:!outline-none focus-visible:!border-0",style:{boxShadow:"none",WebkitAppearance:"none",appearance:"none",border:"none",outline:"none"}})]})}),T&&(x||V.length>0)&&jsxRuntime.jsx("div",{id:B,role:"listbox",className:tailwindMerge.twMerge("absolute z-50 mt-1 rounded-lg border border-border-default","max-h-60 overflow-auto bg-background-surface shadow-lg","left-0 right-0 top-full"),children:S?jsxRuntime.jsx("div",{className:"px-3 py-2 text-sm text-text-secondary",children:"Loading..."}):V.length>0?V.map((I,v)=>jsxRuntime.jsx("div",{role:"option","aria-selected":v===R,className:tailwindMerge.twMerge("cursor-pointer px-3 py-2 text-sm transition-colors","hover:bg-background-hover",v===R&&"bg-background-selected",I.startsWith("Create tag:")&&"italic text-text-secondary"),onClick:()=>P(I),children:I},I)):x&&jsxRuntime.jsx("div",{className:"px-3 py-2 text-sm text-text-secondary",children:"No suggestions found"})}),t&&jsxRuntime.jsx(we,{size:o,className:"mt-1",children:t}),g&&typeof r=="string"&&jsxRuntime.jsx(ue,{size:o,className:"text-feedback-error-text mt-1",children:r}),g&&typeof r=="function"&&c&&jsxRuntime.jsx(ue,{size:o,className:"text-feedback-error-text mt-1",children:r(c)})]})}var aN={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')},iN={github:()=>import('ace-builds/src-noconflict/theme-github'),github_dark:()=>import('ace-builds/src-noconflict/theme-github_dark')},sN={"ext-language-tools":()=>import('ace-builds/src-noconflict/ext-language_tools')},pi=new Set;async function Gu(e,t){pi.has(e)||(await t(),pi.add(e));}async function lN(e,t,r){await Promise.all([Gu(`language:${e}`,aN[e]),Gu(`theme:${t}`,iN[t]),r?Gu("extension:language-tools",sN["ext-language-tools"]):void 0]);}function Pb(e,t,r){let o=pi.has(`language:${e}`)&&pi.has(`theme:${t}`);return r?o&&pi.has("extension:language-tools"):o}function Rb({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:d=50,showLineNumbers:u=true,showGutter:m=true,fontSize:p=14,wrapEnabled:f=false}){let g=Be.useRef(null),[b,x]=Be.useState(()=>Pb(o,n,!t)),h=Be.useMemo(()=>{if(a)return a;let C=(e.match(/\n/g)||[]).length+1;return `${Math.max(l,Math.min(C,d))*c+10}px`},[e,a,c,l,d]);return Be.useEffect(()=>{let C=false,y=!t;return Pb(o,n,y)?(x(true),()=>{C=true;}):(x(false),lN(o,n,y).then(()=>{C||x(true);}).catch(S=>{C||x(true),console.error("Failed to load Ace editor resources",S);}),()=>{C=true;})},[o,t,n]),Be.useEffect(()=>{b&&g.current?.editor&&g.current.editor.resize();},[h,b]),jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("overflow-hidden rounded-md border border-border-input",s),style:{width:i,height:h},children:b?jsxRuntime.jsx(oN__default.default,{ref:g,mode:o,theme:n,value:e,onChange:r,readOnly:t,width:"100%",height:"100%",fontSize:p,showPrintMargin:false,showGutter:m,highlightActiveLine:!t,setOptions:{useWorker:true,showLineNumbers:u,tabSize:2,enableBasicAutocompletion:!t,enableLiveAutocompletion:!t,enableSnippets:!t,showFoldWidgets:true,wrap:f},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 Mb=Be__namespace.createContext({variant:"contained",density:"comfortable",showDividers:true}),Eb=Be__namespace.createContext(null),mN={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"},Db={true:"divide-y divide-border-default",false:"gap-3"},fN={comfortable:"px-5 py-3",compact:"px-4 py-2.5"},gN={comfortable:"px-5 pt-0",compact:"px-4 pt-0"},bN={comfortable:"h-4 w-4",compact:"h-3.5 w-3.5"};function Ju(){return Be__namespace.useContext(Mb)}function xN(e){let t=Be__namespace.useContext(Eb);if(!t)throw new Error(`${e} must be used within a <CollapseItem>`);return t}function hN({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 yN({isDisabled:e,isPressed:t,density:r,variant:o,showDividers:n,className:a}){let i="group/collapse-header flex w-full items-start gap-4 text-left transition-colors duration-150",s=e?"cursor-not-allowed text-text-disabled":"cursor-pointer text-text-primary",c=t&&!e?"bg-background-hover":"",l=fN[r];return tailwindMerge.twMerge(i,je(),l,s,c,o==="plain"&&n?"px-0":"",a)}function vN({density:e,showDividers:t,className:r}){let o="text-text-primary",n=gN[e];return tailwindMerge.twMerge(o,n,t?"":"rounded-b-lg",r)}function ga({variant:e="contained",density:t="comfortable",showDividers:r=true,className:o,...n}){let a=Be__namespace.useMemo(()=>({variant:e,density:t,showDividers:r}),[e,t,r]),i=tailwindMerge.twMerge("flex w-full flex-col",mN[e],r?Db.true:Db.false,e==="plain"&&r?"border-y border-border-default/60":"");return jsxRuntime.jsx(Mb.Provider,{value:a,children:jsxRuntime.jsx(reactAriaComponents.DisclosureGroup,{...n,className:Se(o,i)})})}function Go({className:e,children:t,...r}){let{variant:o,showDividers:n}=Ju();return jsxRuntime.jsx(reactAriaComponents.Disclosure,{...r,className:reactAriaComponents.composeRenderProps(e,a=>hN({variant:o,showDividers:n,className:a})),children:a=>jsxRuntime.jsx(Eb.Provider,{value:a,children:t})})}Go.displayName="CollapseItem";function Uo({title:e,description:t,startContent:r,endContent:o,indicator:n,indicatorPosition:a="end",showIndicator:i=true,keepIndicatorSpace:s=false,children:c,className:l,...d}){let u=xN("CollapseHeader"),{density:m,variant:p,showDividers:f}=Ju(),g=bN[m];return jsxRuntime.jsx(reactAriaComponents.Button,{...d,slot:"trigger","data-expanded":u.isExpanded?"true":void 0,className:reactAriaComponents.composeRenderProps(l,(b,x)=>yN({isDisabled:x.isDisabled??false,isPressed:x.isPressed??false,density:m,variant:p,showDividers:f,className:b})),children:b=>{let x=b.isDisabled??false,h=i?typeof n=="function"?n({isExpanded:u.isExpanded,isDisabled:x}):n??jsxRuntime.jsx(H,{name:"CaretDown",size:m==="compact"?"xs":"sm",weight:"bold","aria-hidden":"true",className:tailwindMerge.twMerge("text-text-secondary transition-transform duration-200",u.isExpanded?"rotate-180":"rotate-0")}):null,C=h?jsxRuntime.jsx("span",{className:tailwindMerge.twMerge("flex flex-shrink-0 items-center justify-center text-text-secondary",g),"aria-hidden":"true",children:h}):s?jsxRuntime.jsx("span",{className:tailwindMerge.twMerge("flex flex-shrink-0 items-center justify-center",g),"aria-hidden":"true"}):null;return jsxRuntime.jsxs("div",{className:"flex w-full items-center gap-4",children:[a==="start"&&C,r&&jsxRuntime.jsx("div",{className:"flex flex-shrink-0 items-center text-text-secondary",children:r}),jsxRuntime.jsxs("div",{className:"flex min-w-0 flex-1 items-start gap-3",children:[c??jsxRuntime.jsxs("div",{className:"flex min-w-0 flex-1 flex-col gap-1 text-left",children:[e&&jsxRuntime.jsx("span",{className:"truncate font-medium text-text-primary",children:e}),t&&jsxRuntime.jsx("span",{className:"text-sm text-text-secondary",children:t})]}),o&&jsxRuntime.jsx("div",{className:"flex flex-shrink-0 items-center text-sm text-text-secondary",children:o})]}),a==="end"&&C]})}})}Uo.displayName="CollapseHeader";function Yo({className:e,children:t,...r}){let{density:o,showDividers:n}=Ju();return jsxRuntime.jsx(reactAriaComponents.DisclosurePanel,{...r,className:reactAriaComponents.composeRenderProps(e,a=>vN({density:o,showDividers:n,className:a})),children:t})}Yo.displayName="CollapseContent";function ba(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 qu(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 NN({label:e,description:t,errorMessage:r,size:o="md",tooltip:n,isRequired:a,transparent:i,className:s,validationResult:c,value:l,defaultValue:d,onChange:u,placeholder:m="#000000",showColorSwatch:p=true,reserveErrorSpace:f=true,...g}){let[b,x]=Be.useState(d||""),[h,C]=Be.useState(l||d||""),[y,S]=Be.useState(false),[N,T]=Be.useState(null),{isFocused:E,handleFocus:R,handleBlur:M}=Tr(),A=l!==void 0?l:b;Be.useEffect(()=>{l!==void 0&&C(l);},[l]);let L=A?!ba(A):false,w=Be.useCallback(G=>{if(C(G),ba(G)){let B=qu(G);u?u(B):x(B);}else G===""&&(u?u(""):x(""));},[u]),k=Be.useCallback(G=>{let B=qu(G);C(B),u?u(B):x(B);},[u]),O=Be.useCallback(G=>{if(ba(h)){let B=qu(h);C(B),u&&B!==A?u(B):!u&&B!==b&&x(B);}M(G,g.onBlur);},[h,A,b,u,M,g.onBlur]);return jsxRuntime.jsx(reactAriaComponents.TextField,{...g,isRequired:a,className:Se(s,"group flex flex-col"),children:({isDisabled:G})=>jsxRuntime.jsxs("div",{className:"flex flex-col",children:[e&&jsxRuntime.jsx(Fe,{size:o,tooltip:n,isRequired:a,children:e}),jsxRuntime.jsx(bt,{children:jsxRuntime.jsxs("div",{className:"flex gap-2",children:[jsxRuntime.jsxs("div",{className:"flex-1 relative",children:[jsxRuntime.jsx(Ys,{size:o,disabled:G,type:"text",value:h,placeholder:m,onFocus:B=>R(B,g.onFocus),onBlur:O,onChange:B=>w(B.target.value),className:tailwindMerge.twMerge(At({isInvalid:L,isDisabled:G,isFocused:E,size:o,transparent:i}),p?"pr-12":"pr-3","pl-3")}),p&&jsxRuntime.jsx("div",{className:"absolute right-3 top-1/2 -translate-y-1/2 pointer-events-none",style:{width:ze[o].height},children:jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("w-6 h-6 rounded border shadow-sm",ba(A)?"border-border-default":"border-border-default bg-background-muted"),style:ba(A)?{backgroundColor:A}:void 0,"aria-hidden":"true",children:!ba(A)&&jsxRuntime.jsx("div",{className:"w-full h-full flex items-center justify-center",children:jsxRuntime.jsx("div",{className:"w-3 h-3 rounded-full border-2 border-border-muted"})})})})]}),jsxRuntime.jsx("div",{ref:T,children:jsxRuntime.jsx(Q,{variant:"secondary",size:o,icon:"Palette",onPress:()=>S(!y),isDisabled:G,className:"flex-shrink-0",children:"Pick"})})]})}),f?jsxRuntime.jsx("div",{className:"mt-1 min-h-[20px]",children:typeof r=="string"?jsxRuntime.jsx(ue,{size:o,children:r}):typeof r=="function"&&c?jsxRuntime.jsx(ue,{size:o,children:r(c)}):t?jsxRuntime.jsx(we,{size:o,children:t}):null}):jsxRuntime.jsx(jsxRuntime.Fragment,{children:typeof r=="string"?jsxRuntime.jsx(ue,{size:o,className:"mt-1",children:r}):typeof r=="function"&&c?jsxRuntime.jsx(ue,{size:o,className:"mt-1",children:r(c)}):t?jsxRuntime.jsx(we,{size:o,className:"mt-1",children:t}):null}),y&&N&&jsxRuntime.jsx(at,{triggerRef:{current:N},isOpen:y,onOpenChange:S,placement:"bottom end",className:"bg-background-input shadow-xl border border-border-input/20 backdrop-blur-sm rounded-lg p-4",children:jsxRuntime.jsxs("div",{className:"flex flex-col gap-4",children:[jsxRuntime.jsx(reactColorful.HexColorPicker,{color:A||"#000000",onChange:k,style:{width:"200px",height:"200px"}}),jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[jsxRuntime.jsx("div",{className:"w-10 h-10 rounded border border-border-default shadow-sm flex-shrink-0",style:{backgroundColor:A||"#000000"}}),jsxRuntime.jsx("div",{className:"flex-1 text-text-primary text-[length:var(--control-text-sm)] font-mono",children:A||"#000000"})]})]})})]})})}function Ib({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:d="500px",minWidth:u="400px"}){return jsxRuntime.jsx(Sr,{isOpen:e,onClose:t,title:o,maxWidth:d,minWidth:u,primaryAction:{label:a,onPress:()=>{r();},variant:s??(c?"destructive":"primary"),isLoading:l},secondaryAction:{label:i,onPress:t,variant:"secondary",isDisabled:l},children:jsxRuntime.jsx("div",{className:"text-text-primary",children:n})})}function Fb({isConnected:e,connectedAt:t,disconnectedAt:r,showTimestamp:o=false,isLoading:n,size:a="sm",shape:i="pill",...s}){if(n)return jsxRuntime.jsx(j,{className:"inline-flex h-6 w-24"});let c=e?"Connected":"Disconnected",l=e?"success":"neutral",d=null;if(o){if(e&&t)d=ms(t);else if(!e&&r){let u=ms(r);d=u?`Offline ${u}`:null;}}return jsxRuntime.jsxs("div",{className:"inline-flex flex-col gap-1",children:[jsxRuntime.jsx(ot,{variant:l,size:a,shape:i,dot:e,dotPulse:e,...s,children:c}),d&&jsxRuntime.jsx("span",{className:"text-xs text-text-secondary",children:d})]})}function Bb({firstName:e,lastName:t,email:r,phone:o,avatarUrl:n,href:a,LinkComponent:i,variant:s="outlined",layout:c="horizontal",showEmail:l=true,showPhone:d=false,isLoading:u=false,className:m,contentClassName:p,piiEntity:f}){let g=`${e} ${t}`.trim(),b=({children:h,className:C})=>a?i?jsxRuntime.jsx(i,{href:a,className:C,children:h}):jsxRuntime.jsx(et,{href:a,variant:"unstyled",className:tailwindMerge.twMerge("hover:underline",C),asButton:false,children:h}):jsxRuntime.jsx("span",{className:C,children:h}),x=c==="vertical";return u?jsxRuntime.jsx(Oe,{variant:s,className:tailwindMerge.twMerge("flex flex-col",m),children:jsxRuntime.jsx(Oe.Content,{className:"flex items-center flex-1",children:jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("w-full",x?"flex flex-col items-center gap-4":"flex items-center gap-4"),children:[jsxRuntime.jsx(j,{width:56,height:56,className:"rounded flex-shrink-0"}),jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge(x?"w-full text-center":"flex-1","space-y-2"),children:[jsxRuntime.jsx(j,{width:"70%",height:20,className:tailwindMerge.twMerge(x&&"mx-auto")}),jsxRuntime.jsx(j,{width:"100%",height:16,className:tailwindMerge.twMerge(x&&"mx-auto")})]})]})})}):jsxRuntime.jsx(Oe,{variant:s,className:tailwindMerge.twMerge("group/card flex flex-col",m),children:jsxRuntime.jsx(Oe.Content,{className:tailwindMerge.twMerge("flex items-center flex-1",a&&"cursor-pointer",p),children:jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("relative w-full",x?"flex flex-col items-center gap-4 text-center":"flex items-center gap-4"),children:[jsxRuntime.jsx(go,{firstName:e,lastName:t,src:n,size:"xl",variant:"user",shape:"square",className:"flex-shrink-0",piiEntity:f}),jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge(x?"w-full":"flex-1 min-w-0"),children:[a&&jsxRuntime.jsx(b,{className:"after:absolute after:inset-0",children:jsxRuntime.jsx("span",{className:"sr-only",children:g})}),jsxRuntime.jsx("span",{className:"text-lg font-semibold leading-tight text-text-primary block mb-1.5 group-hover/card:text-text-brand transition-colors","data-pii-type":f?"full-name":void 0,"data-pii-entity":f,children:g}),jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("space-y-0.5",x&&"flex flex-col items-center"),children:[l&&r&&jsxRuntime.jsxs("div",{className:"flex items-center gap-2.5 text-text-primary",children:[jsxRuntime.jsx(H,{name:"Envelope",size:16,className:"text-text-secondary flex-shrink-0"}),jsxRuntime.jsx(et,{href:`mailto:${r}`,variant:"unstyled",className:tailwindMerge.twMerge("text-sm leading-relaxed text-text-primary relative z-20",x?"":"truncate"),"data-pii-type":f?"email":void 0,"data-pii-entity":f,children:r})]}),d&&o&&jsxRuntime.jsxs("div",{className:"flex items-center gap-2.5 text-text-primary",children:[jsxRuntime.jsx(H,{name:"Phone",size:16,className:"text-text-secondary flex-shrink-0"}),jsxRuntime.jsx(et,{href:`tel:${o}`,variant:"unstyled",className:tailwindMerge.twMerge("text-sm leading-relaxed text-text-primary relative z-20",x?"":"truncate"),"data-pii-type":f?"phone":void 0,"data-pii-entity":f,children:na(o)})]})]})]})]})})})}function rl({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:d=false,badge:u,avatarShape:m,isLoading:p=false,className:f,piiEntity:g}){let b=m??(n==="inline"?"circle":"square"),h={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],C=`${e} ${t}`.trim(),S={strong:"font-semibold text-text-primary",high:"font-semibold text-text-primary",normal:"text-text-primary",low:"text-text-secondary"}[l],N=({children:T,className:E})=>i?s?jsxRuntime.jsx(s,{href:i,className:E,children:T}):jsxRuntime.jsx(et,{href:i,variant:c,className:tailwindMerge.twMerge("hover:underline",E),asButton:false,children:T}):jsxRuntime.jsx("span",{className:E,children:T});return p?n==="inline"?jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("flex items-center",h.gap,f),children:[jsxRuntime.jsx(j,{width:h.skeletonAvatar,height:h.skeletonAvatar,className:"flex-shrink-0 rounded-full"}),jsxRuntime.jsx(j,{width:h.skeletonText,height:h.skeletonAvatar*.5})]}):jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("flex items-center",h.gap,f),children:[jsxRuntime.jsx(j,{width:h.skeletonAvatar,height:h.skeletonAvatar,className:"flex-shrink-0 rounded-full"}),jsxRuntime.jsxs("div",{className:"flex flex-col gap-1",children:[jsxRuntime.jsx(j,{width:h.skeletonText,height:16}),d&&jsxRuntime.jsx(j,{width:h.skeletonSecondary,height:12})]})]}):n==="inline"?jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("flex items-center",h.gap,f),children:[jsxRuntime.jsxs(N,{className:tailwindMerge.twMerge("flex items-center",h.gap),children:[jsxRuntime.jsx(go,{firstName:e,lastName:t,src:o,size:h.avatarSize,variant:"user",shape:b,className:"flex-shrink-0",piiEntity:g}),jsxRuntime.jsx("span",{className:tailwindMerge.twMerge("leading-normal truncate hover:text-text-primary",S,h.textSize,i&&"hover:underline hover:decoration-1 hover:underline-offset-4"),"data-pii-type":g?"full-name":void 0,"data-pii-entity":g,children:C})]}),u]}):jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("flex items-center justify-start",h.gap,f),children:[jsxRuntime.jsx(go,{firstName:e,lastName:t,src:o,size:h.avatarSize,variant:"user",shape:b,className:"flex-shrink-0",piiEntity:g}),jsxRuntime.jsxs("div",{className:"flex flex-col items-start min-w-0",children:[jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[jsxRuntime.jsx(N,{className:tailwindMerge.twMerge("leading-normal truncate hover:text-text-primary",S,h.textSize,i&&"hover:underline hover:decoration-1 hover:underline-offset-4"),children:jsxRuntime.jsx("span",{"data-pii-type":g?"full-name":void 0,"data-pii-entity":g,children:C})}),u]}),d&&r&&jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("text-text-secondary leading-normal truncate",h.secondaryTextSize),"data-pii-type":g?"email":void 0,"data-pii-entity":g,children:r})]})]})}var Vb={duration:.5,ease:"easeInOut"},Qr=Be.createContext(null),En=()=>{let e=Be.useContext(Qr);if(!e)throw new Error("useChartContext must be used within a ChartContextProvider");return e};var fi=({data:e,color:t="var(--color-viz-default)",baseline:r,fillOpacity:o=.1,showLine:n=true,animate:a=true})=>{let i=Be.useId(),s=Be.useId(),{xScale:c,yScale:l,animationSettings:d}=En(),u=c.range(),m=l.range(),p=(x,h)=>typeof r=="function"?r(x,h):r??0,f=x=>x.chartYValue??x.yValue,g={transformOrigin:`0 ${m[0]}px`,transformBox:"fill-box",isolation:"isolate"},b=jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[r===void 0?jsxRuntime.jsx(shape.AreaClosed,{data:e,x:x=>c(x.xValue),y:x=>l(f(x)),yScale:l,fill:`url(#${i})`,curve:curve.curveLinear}):jsxRuntime.jsx(shape.Area,{data:e,x:x=>c(x.xValue),y0:(x,h)=>l(p(x,h)),y1:x=>l(f(x)),fill:t,fillOpacity:o,curve:curve.curveLinear}),n?jsxRuntime.jsx(shape.LinePath,{data:e,x:x=>c(x.xValue),y:x=>l(f(x)),stroke:t,strokeWidth:3,curve:curve.curveLinear}):null]});return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsxs("defs",{children:[jsxRuntime.jsxs("linearGradient",{id:i,x1:"0%",y1:"0%",x2:"0%",y2:"100%",children:[jsxRuntime.jsx("stop",{offset:"50%",stopColor:t,stopOpacity:o}),jsxRuntime.jsx("stop",{offset:"100%",stopColor:t,stopOpacity:0})]}),jsxRuntime.jsx("clipPath",{id:s,children:jsxRuntime.jsx("rect",{x:u[0],y:m[1],width:u[1]-u[0],height:m[0]-m[1]})})]}),jsxRuntime.jsx("g",{clipPath:`url(#${s})`,children:a?jsxRuntime.jsx(framerMotion.motion.g,{initial:{scaleY:0},animate:{scaleY:1},transition:{duration:d.duration,ease:d.ease},style:g,children:b}):jsxRuntime.jsx("g",{style:g,children:b})})]})};var nl=({data:e,color:t="var(--color-viz-default)",opacity:r=1,categoryColors:o={}})=>{let{xScale:n,yScale:a,animationSettings:i}=En(),s=Be.useId(),c=n.range(),l=a.range(),d=[...e].sort((p,f)=>p.xValue.getTime()-f.xValue.getTime());if(d.length===0)return null;let u=d.length>1?d[1].xValue.getTime()-d[0].xValue.getTime():15*6e4,m=Math.abs(n(new Date(d[0].xValue.getTime()+u))-n(d[0].xValue));return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("defs",{children:jsxRuntime.jsx("clipPath",{id:s,children:jsxRuntime.jsx("rect",{x:c[0],y:l[1],width:c[1]-c[0],height:l[0]-l[1]})})}),jsxRuntime.jsx("g",{clipPath:`url(#${s})`,children:jsxRuntime.jsx(framerMotion.motion.g,{initial:{scaleY:0},animate:{scaleY:1},transition:{duration:i.duration,ease:i.ease},style:{transformOrigin:`0 ${a(0)}px`,isolation:"isolate"},children:d.map((p,f)=>{let g=n(p.xValue),b=a(p.yValue),x=a(0),h=Math.min(b,x),C=Math.abs(b-x),y=d[f+1],S=y?Math.abs(n(y.xValue)-g):m,N=p.category&&o[p.category]?o[p.category]:t;return jsxRuntime.jsx(shape.Bar,{x:g-S/2,y:h,width:S,height:C,fill:N,opacity:r,rx:1},p.xValue.getTime())})})})]})};var eo=os(lx()),dx=os(cx());var $N=["top","left","transform","className","children","innerRef"];function ip(){return ip=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o]);}return e},ip.apply(this,arguments)}function QN(e,t){if(e==null)return {};var r={},o=Object.keys(e),n,a;for(a=0;a<o.length;a++)n=o[a],!(t.indexOf(n)>=0)&&(r[n]=e[n]);return r}function gi(e){var t=e.top,r=t===void 0?0:t,o=e.left,n=o===void 0?0:o,a=e.transform,i=e.className,s=e.children,c=e.innerRef,l=QN(e,$N);return Be__namespace.default.createElement("g",ip({ref:c,className:(0, dx.default)("visx-group",i),transform:a||"translate("+n+", "+r+")"},l),s)}gi.propTypes={top:eo.default.number,left:eo.default.number,transform:eo.default.string,className:eo.default.string,children:eo.default.node,innerRef:eo.default.oneOfType([eo.default.string,eo.default.func,eo.default.object])};var nk=e=>e.baselineValue??0,Ue={top:0,right:0,bottom:50,left:60};function xo(e={type:"number"}){let t=i=>{if(i==null)return "-";let s=Yr({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=d=>{if(d==null)return "";if(typeof d=="string")return d;if(typeof d=="number")return d.toString();if(typeof d=="object"&&"props"in d){let u=d.props;if(u?.children)return Array.isArray(u.children)?u.children.map(c).join(""):c(u.children)}return ""};return c(s)||i.toString()}return i.toString()},r=i=>{if(i==null)return "-";if(typeof e=="string"){let s=Yr({value:i,formatter:e});return s===null?"-":String(s)}if(typeof e=="object"&&e.type)switch(e.type){case "energy":case "power":case "voltage":case "current":case "resistance":case "temperature":case "distance":return t(i);case "currency":return t(i);default:return t(i)}return t(i)},o,n,a;return typeof e=="object"&&e.type&&e.type==="number"&&("min"in e&&(o=e.min),"max"in e&&(n=e.max)),{format:t,tickFormat:r,min:o,max:n,tickInterval:a}}var sp=(e,t)=>{let r=d3Array.extent(e,o=>o.xValue);return scale.scaleTime({range:[Ue.left,t-Ue.right],domain:r,nice:true})},lp=(e,t,r,o)=>{let n=xo(r);if(o)return scale.scaleLinear({range:[t-Ue.bottom,Ue.top],domain:o,nice:true});let a=d3Array.min(e,l=>Math.min(l.yValue,l.chartYValue??l.yValue))||0,i=d3Array.max(e,l=>Math.max(l.yValue,l.chartYValue??l.yValue))||0,s=n.min!==void 0?n.min:a>=0?0:a*1.1,c=n.max!==void 0?n.max:i<=0?0:i*1.1;return scale.scaleLinear({range:[t-Ue.bottom,Ue.top],domain:[s,c],nice:true})};function ak(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 yl(e,t=12,r="system-ui"){return e.length===0?0:Math.max(...e.map(o=>ak(o,t,r)))}function bi(e){return e instanceof Date&&!Number.isNaN(e.getTime())}function ik(e,t,r=12,o=false){if(!bi(t[0])||!bi(t[1]))return console.warn("ChartAxis: Invalid date in domain, skipping tick calculation"),[];let n=t[0].getTime(),i=t[1].getTime()-n;if(i===0||i<1e3)return [t[0]];let s=Ld({start:t[0],end:t[1]},{compact:o}),l=[t[0],new Date((t[0].getTime()+t[1].getTime())/2),t[1]].map(b=>s(b)),d=yl(l,r),m=d+d,p=Math.floor(e/m),f=Math.max(2,Math.min(8,p));if(f<=2)return [t[0],t[1]];let g=[t[0]];for(let b=1;b<f-1;b++){let x=b/(f-1),h=n+i*x;g.push(new Date(h));}return g.push(t[1]),g}var sk=({top:e,scale:t,width:r})=>{let o=t.domain(),n=[o[0],o[o.length-1]],a=bi(n[0])&&bi(n[1]),i=r<400,s=a?n[0].getTime():0,c=a?n[1].getTime():0,l=Be.useMemo(()=>a?Ld({start:n[0],end:n[1]},{compact:i}):()=>"",[s,c,i,a]),d=Be.useMemo(()=>ik(r,n,12,i),[r,s,c,i]);return d.length===0?null:jsxRuntime.jsx(axis.Axis,{orientation:"bottom",top:e,scale:t,tickValues:d,tickFormat:u=>{let m=u;return bi(m)?l(m):""},stroke:"var(--color-border-muted)",tickStroke:"var(--color-border-muted)",tickLabelProps:(u,m,p)=>({fill:"var(--color-text-secondary)",fontSize:12,textAnchor:m===0?"start":m===p.length-1?"end":"middle"}),rangePadding:0})};function Cl(e,t=12){let r=t*2.5,o=Math.floor(e/r);return Math.max(2,Math.min(6,o))}var lk=({left:e,scale:t,yFormatter:r,height:o})=>{let n=xo(r),a=Be.useMemo(()=>!o||o<=0?5:Cl(o),[o]);return jsxRuntime.jsx(axis.Axis,{orientation:"left",left:e,scale:t,numTicks:a,tickFormat:i=>(n.tickFormat||n.format)(i),stroke:"var(--color-border-muted)",tickStroke:"var(--color-border-muted)",tickLabelProps:()=>({fill:"var(--color-text-secondary)",fontSize:12,textAnchor:"end",dy:"0.33em"})})},ck=({top:e,scale:t})=>jsxRuntime.jsx(axis.Axis,{orientation:"bottom",top:e,scale:t,stroke:"var(--color-border-muted)",tickStroke:"var(--color-border-muted)",tickLabelProps:()=>({fill:"var(--color-text-secondary)",fontSize:12,textAnchor:"middle",dy:"0.25em"})}),dk=({left:e,scale:t})=>jsxRuntime.jsx(axis.Axis,{orientation:"left",left:e,scale:t,stroke:"var(--color-border-muted)",tickStroke:"var(--color-border-muted)",tickLabelProps:()=>({fill:"var(--color-text-secondary)",fontSize:12,textAnchor:"end",dx:"-0.25em",dy:"0.33em"})}),uk=({top:e,scale:t,yFormatter:r,width:o})=>{let n=xo(r),a=Be.useMemo(()=>{if(!o||o<=0)return 5;let s=Math.floor(o/60);return Math.max(2,Math.min(8,s))},[o]);return jsxRuntime.jsx(axis.Axis,{orientation:"bottom",top:e,scale:t,numTicks:a,tickFormat:i=>(n.tickFormat||n.format)(i),stroke:"var(--color-border-muted)",tickStroke:"var(--color-border-muted)",tickLabelProps:()=>({fill:"var(--color-text-secondary)",fontSize:12,textAnchor:"middle",dy:"0.25em"})})},to={Bottom:sk,Left:lk,CategoryBottom:ck,CategoryLeft:dk,NumericBottom:uk};var va=({data:e,formatter:t,label:r,categoryLabels:o})=>{if(!e)return null;let n=Be__namespace.default.useContext(Qr),a=o??n?.categoryLabels,i=n?.xScale,s=n?.width,c=n?.height,l=xo(t),d=h=>{if(h.baselineValue===void 0)return l.format(h.value);let C=Math.min(h.baselineValue,h.value),y=Math.max(h.baselineValue,h.value);return `${l.format(C)} \u2013 ${l.format(y)}`},u=Be__namespace.default.useRef(null),[m,p]=Be__namespace.default.useState({x:0,y:0,translate:"translate(-50%, -100%)"});Be__namespace.default.useEffect(()=>{if(!u.current)return;let C=u.current.getBoundingClientRect(),y=s??window.innerWidth,S=c??window.innerHeight,N=e.x,T=e.y,E=16,R=e.x+C.width+E<=y,M=e.x-C.width-E>=0,A;e.position==="left"?A=M||!R:A=!R&&M;let L=A?"translate(calc(-100% - 16px), -50%)":"translate(16px, -50%)";if(!R&&!M){let w=y-e.x,k=e.x;w<=k?(N=y,L="translate(-100%, -50%)"):(N=0,L="translate(0, -50%)");}T-C.height/2<0?T=C.height/2:T+C.height/2>S&&(T=S-C.height/2),p({x:N,y:T,translate:L});},[e.x,e.y,e.position,s,c]);let f=i?.domain(),b=f&&f.length===2&&f.every(h=>h instanceof Date)?Zf({start:f[0],end:f[1]}):null,x=r||(b&&e.xValue instanceof Date?b(e.xValue):String(e.xValue));return jsxRuntime.jsx(framerMotion.AnimatePresence,{children:jsxRuntime.jsxs(framerMotion.motion.div,{ref:u,role:"tooltip","aria-live":"polite",initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},"data-testid":"tooltip",className:"pointer-events-none absolute z-50 rounded-lg bg-background-surface p-4 text-sm shadow-xl ring-1 ring-border-default whitespace-nowrap",style:{left:m.x,top:m.y,transform:m.translate},children:[jsxRuntime.jsx("div",{className:"mb-1 font-medium text-text-primary",children:x}),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(h=>jsxRuntime.jsxs("li",{className:"py-0.5",children:[jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[jsxRuntime.jsxs("span",{className:"font-medium text-text-primary",children:[h.label,":"]}),jsxRuntime.jsx("span",{className:"text-text-secondary",children:d(h)})]}),h.category&&jsxRuntime.jsxs("div",{className:"mt-0.5 flex items-center gap-2",children:[jsxRuntime.jsx("div",{className:"h-3 w-3",style:{backgroundColor:h.categoryColor||h.color,borderRadius:"1px"}}),jsxRuntime.jsx("span",{className:"text-sm text-text-secondary",children:a?.[h.category]||h.category})]})]},h.label))}),(()=>{let h=e.series[e.series.length-1],C=e.eventItems?.length?e.eventItems:[{label:h.label,color:h.color,metadata:e.eventMetadata}];return jsxRuntime.jsx("div",{className:"space-y-2",children:C.map((y,S)=>jsxRuntime.jsxs("div",{children:[jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[jsxRuntime.jsx("div",{className:"h-2 w-2 rounded-full",style:{backgroundColor:y.color}}),jsxRuntime.jsx("span",{className:"font-medium text-text-primary",children:y.label})]}),y.metadata&&Object.keys(y.metadata).length>0&&jsxRuntime.jsx("div",{className:"ml-4 mt-1 space-y-0.5 text-xs text-text-secondary",children:Object.entries(y.metadata).map(([N,T])=>jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[jsxRuntime.jsxs("span",{className:"capitalize",children:[N,":"]}),jsxRuntime.jsx("span",{className:"font-medium",children:T})]},N))})]},`${y.label}-${S}`))})})()]}):jsxRuntime.jsx("ul",{className:"list-none p-0",children:e.series.map(h=>jsxRuntime.jsxs("li",{className:"py-0.5",children:[jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[jsxRuntime.jsxs("span",{className:"font-medium text-text-primary",children:[h.label,":"]}),jsxRuntime.jsx("span",{className:"text-text-secondary",children:d(h)})]}),h.category&&jsxRuntime.jsxs("div",{className:"mt-0.5 flex items-center gap-2",children:[jsxRuntime.jsx("div",{className:"h-3 w-3",style:{backgroundColor:h.categoryColor||h.color,borderRadius:"1px"}}),jsxRuntime.jsx("span",{className:"text-sm text-text-secondary",children:a?.[h.category]||h.category})]})]},h.label))})]})})};var yk={top:20,right:20,bottom:50,left:60},hx=({data:e,width:t,height:r,margin:o=yk,color:n,yFormatter:a={type:"number"},showGrid:i=true,showAxes:s=true,animate:c=true,barRadius:l=4,barPadding:d=.3,onBarClick:u,onBarHover:m,activeIndex:p,className:f,style:g,"aria-label":b="Category bar chart",orientation:x="vertical",showTooltip:h=true})=>{let[C,y]=Be.useState(null),[S,N]=Be.useState(null),[T,E]=Be.useState(null),[R,M]=Be.useState(t??600),[A,L]=Be.useState(r??300),w=Be.useRef(null),k=p??C,O=Be.useId(),G=n||"var(--color-viz-default)";Be.useEffect(()=>{if(t!==void 0&&r!==void 0){M(t),L(r);return}if(!w.current)return;let P=new ResizeObserver(D=>{for(let F of D)t===void 0&&M(F.contentRect.width),r===void 0&&L(F.contentRect.height);});return P.observe(w.current),t===void 0&&M(w.current.offsetWidth),r===void 0&&L(w.current.offsetHeight||300),()=>{P.disconnect();}},[t,r]);let{xScale:B,yScale:z,innerWidth:X,innerHeight:V}=Be.useMemo(()=>{let P=R-o.left-o.right,D=A-o.top-o.bottom;if(x==="horizontal"){let I=d3Array.max(e,v=>v.value)||0;return {xScale:scale.scaleLinear({range:[0,P],domain:[0,I*1.1],nice:true}),yScale:scale.scaleBand({range:[0,D],domain:e.map(v=>v.label),padding:d}),innerWidth:P,innerHeight:D}}let F=d3Array.max(e,I=>I.value)||0;return {xScale:scale.scaleBand({range:[0,P],domain:e.map(I=>I.label),padding:d}),yScale:scale.scaleLinear({range:[D,0],domain:[0,F*1.1],nice:true}),innerWidth:P,innerHeight:D}},[e,R,A,o,d,x]);if(e.length===0)return jsxRuntime.jsx("div",{ref:w,className:tailwindMerge.twMerge("flex h-full min-h-[200px] w-full items-center justify-center rounded-lg border border-dashed border-border-default bg-background-surface text-sm font-medium text-text-secondary",f),style:r!==void 0?{height:r,...g}:g,children:"No data available"});let K=(P,D)=>{if(y(P),m?.(D,P),P!==null&&D){let F,I;if(x==="horizontal"){let W=B(D.value),Y=z(D.label)||0,U=z.bandwidth();F=o.left+W,I=o.top+Y+U/2;}else {let W=B,Y=z,U=W(D.label)??0,ee=W.bandwidth(),pe=Y(D.value);F=o.left+U+ee/2,I=o.top+pe;}let v=F>R/2;E(D.label),N({xValue:new Date,series:[{label:"Value",value:D.value,color:D.color||G}],x:F,y:I,position:v?"left":"right"});}else N(null),E(null);};return jsxRuntime.jsxs("div",{ref:w,className:tailwindMerge.twMerge("relative h-full w-full overflow-hidden rounded-lg bg-background-surface",f),style:r!==void 0?{height:r,...g}:g,"aria-label":b,role:"img",children:[jsxRuntime.jsxs("svg",{width:R,height:A,children:[jsxRuntime.jsx("defs",{children:jsxRuntime.jsx(gradient.LinearGradient,{id:`${O}-bar`,from:G,to:G,toOpacity:.85})}),jsxRuntime.jsxs(gi,{left:o.left,top:o.top,children:[i&&jsxRuntime.jsx("g",{className:"grid-lines",children:(x==="horizontal"?B.ticks(5):z.ticks(5)).map(P=>{let D=x==="horizontal"?0:z(P),F=x==="horizontal"?B(P):0;return jsxRuntime.jsx("line",{x1:x==="horizontal"?F:0,y1:x==="horizontal"?0:D,x2:x==="horizontal"?F:X,y2:x==="horizontal"?V:D,stroke:"var(--color-border-default)",strokeOpacity:.5,strokeDasharray:"2,3"},P)})}),e.map((P,D)=>{let F=k===D||k==null,I=P.color||`url(#${O}-bar)`;if(x==="horizontal"){let J=B(P.value),re=z.bandwidth(),xe=z(P.label)||0;return jsxRuntime.jsx(framerMotion.motion.rect,{x:0,y:xe,width:J,height:re,fill:I,rx:l,ry:l,initial:c?{width:0,opacity:.5}:void 0,animate:{width:J,opacity:F?1:.5},transition:{duration:.5,delay:D*.05,ease:"easeOut",opacity:{duration:.15,delay:0}},style:{cursor:u||m?"pointer":"default"},onMouseEnter:()=>K(D,P),onMouseLeave:()=>K(null,null),onClick:()=>u?.(P,D)},P.label)}let v=B,W=z,Y=v.bandwidth(),U=v(P.label)??0,ee=W(P.value),pe=Math.max(0,V-ee);return c?jsxRuntime.jsx(framerMotion.motion.rect,{x:U,width:Y,fill:I,rx:l,ry:l,initial:{y:V,height:0,opacity:.5},animate:{y:ee,height:pe,opacity:F?1:.5},transition:{duration:.5,delay:D*.05,ease:"easeOut",opacity:{duration:.15,delay:0}},style:{cursor:u||m?"pointer":"default"},onMouseEnter:()=>K(D,P),onMouseLeave:()=>K(null,null),onClick:()=>u?.(P,D)},P.label):jsxRuntime.jsx("rect",{x:U,y:ee,width:Y,height:pe,fill:I,rx:l,ry:l,opacity:F?1:.5,style:{cursor:u||m?"pointer":"default",transition:"opacity 150ms ease-out"},onMouseEnter:()=>K(D,P),onMouseLeave:()=>K(null,null),onClick:()=>u?.(P,D)},P.label)}),s&&x==="vertical"&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(to.CategoryBottom,{top:V,scale:B}),jsxRuntime.jsx(to.Left,{left:0,scale:z,yFormatter:a,height:V})]}),s&&x==="horizontal"&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(to.NumericBottom,{top:V,scale:B,yFormatter:a,width:X}),jsxRuntime.jsx(to.CategoryLeft,{left:0,scale:z})]})]})]}),h&&jsxRuntime.jsx(va,{data:S,formatter:a,label:T??void 0})]})};var yx=({item:e,onToggle:t})=>{let r=jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("div",{className:"h-3 w-3 shrink-0",style:{backgroundColor:e.fill,borderRadius:"1px",opacity:e.isHidden?.35:1}}),jsxRuntime.jsx("span",{className:`text-sm whitespace-nowrap ${e.isHidden?"text-text-disabled line-through":"text-text-secondary"}`,children:e.category})]});return t?jsxRuntime.jsx("button",{type:"button",className:"flex items-center gap-2 shrink-0 rounded-sm focus:outline-none focus:ring-2 focus:ring-border-focus disabled:cursor-not-allowed disabled:opacity-60","aria-pressed":!e.isHidden,"aria-label":`${e.isHidden?"Show":"Hide"} ${e.category}`,disabled:e.isDisabled,onClick:()=>t(e.category),children:r}):jsxRuntime.jsx("div",{className:"flex items-center gap-2 shrink-0",children:r})},Sk=({items:e,onToggle:t})=>e.length===0?null:jsxRuntime.jsx("div",{className:"flex items-center gap-3 flex-wrap",children:e.map(r=>jsxRuntime.jsx(yx,{item:r,onToggle:t},r.category))}),wl=({items:e,onExport:t,marginLeft:r=0,marginRight:o=0,isZoomed:n=false,onResetZoom:a,onLegendItemToggle:i})=>{let[s,c]=Be__namespace.default.useState(false),[l,d]=Be__namespace.default.useState(null),[u,m]=Be__namespace.default.useState(false),[p,f]=Be__namespace.default.useState(false),g=Be__namespace.default.useCallback(async x=>{c(true),d(x),f(false);try{await t(x);}catch(h){console.error("Export failed:",h);}finally{c(false),d(null);}},[t]),b=Be__namespace.default.useCallback(async x=>{await g(x);},[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(Sk,{items:e,onToggle:i})}),jsxRuntime.jsx("div",{className:"sm:hidden flex items-center gap-3",children:e.length>0&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("button",{onClick:()=>m(true),className:"text-sm text-text-secondary hover:text-text-primary transition-colors underline decoration-dotted underline-offset-4",children:"Legend"}),jsxRuntime.jsx(it,{isOpen:u,onClose:()=>m(false),title:"Legend",children:jsxRuntime.jsx("div",{className:"grid grid-cols-1 gap-3 p-4",children:e.map(x=>jsxRuntime.jsx(yx,{item:x,onToggle:i},x.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(H,{name:"ArrowsOut",size:16})}),jsxRuntime.jsx(Q,{variant:"secondary",size:"sm",onPress:()=>f(true),isDisabled:s,children:jsxRuntime.jsx(H,{name:"Export",size:16})}),jsxRuntime.jsx(it,{isOpen:p,onClose:()=>f(false),title:"Export Chart",contentPadding:false,children:jsxRuntime.jsxs("div",{className:"flex flex-col",children:[jsxRuntime.jsxs("button",{onClick:()=>g("csv"),disabled:s,className:"flex items-center gap-3 px-6 py-4 text-left hover:bg-background-hover active:bg-background-muted transition-colors disabled:opacity-50 disabled:cursor-not-allowed",children:[jsxRuntime.jsx(H,{name:"List",size:20,className:"text-text-secondary"}),jsxRuntime.jsx("span",{className:"text-sm text-text-primary",children:l==="csv"?"Exporting...":"Export as CSV"})]}),jsxRuntime.jsxs("button",{onClick:()=>g("svg"),disabled:s,className:"flex items-center gap-3 px-6 py-4 text-left hover:bg-background-hover active:bg-background-muted transition-colors disabled:opacity-50 disabled:cursor-not-allowed",children:[jsxRuntime.jsx(H,{name:"Code",size:20,className:"text-text-secondary"}),jsxRuntime.jsx("span",{className:"text-sm text-text-primary",children:l==="svg"?"Exporting...":"Export as SVG"})]}),jsxRuntime.jsxs("button",{onClick:()=>g("png"),disabled:s,className:"flex items-center gap-3 px-6 py-4 text-left hover:bg-background-hover active:bg-background-muted transition-colors disabled:opacity-50 disabled:cursor-not-allowed",children:[jsxRuntime.jsx(H,{name:"DownloadSimple",size:20,className:"text-text-secondary"}),jsxRuntime.jsx("span",{className:"text-sm text-text-primary",children:l==="png"?"Exporting...":"Export as PNG"})]})]})})]}),jsxRuntime.jsxs("div",{className:"hidden sm:flex items-center gap-2 shrink-0",children:[n&&a&&jsxRuntime.jsxs(Q,{variant:"secondary",size:"sm",onPress:a,children:[jsxRuntime.jsx(H,{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:s,children:[jsxRuntime.jsx(H,{name:"Export",size:16}),s?"Exporting...":"Export"]}),jsxRuntime.jsx(at,{placement:"top end",className:"min-w-48 p-1 bg-background-surface rounded-lg shadow-xl ring-1 ring-border-default",children:jsxRuntime.jsxs(reactAriaComponents.Menu,{onAction:b,className:"outline-none",children:[jsxRuntime.jsx(reactAriaComponents.MenuItem,{id:"csv",className:"flex items-center gap-2 px-3 py-2 text-sm text-text-primary rounded cursor-pointer hover:bg-background-hover focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-border-focus focus-visible:ring-offset-1 focus-visible:ring-offset-background-surface data-[focused]:bg-background-hover data-[focused]:ring-2 data-[focused]:ring-border-focus data-[focused]:ring-offset-1 data-[focused]:ring-offset-background-surface",isDisabled:s,children:jsxRuntime.jsxs("span",{className:"flex items-center gap-2",children:[jsxRuntime.jsx(H,{name:"List",size:14}),l==="csv"?"Exporting...":"Export as CSV"]})}),jsxRuntime.jsx(reactAriaComponents.MenuItem,{id:"svg",className:"flex items-center gap-2 px-3 py-2 text-sm text-text-primary rounded cursor-pointer hover:bg-background-hover focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-border-focus focus-visible:ring-offset-1 focus-visible:ring-offset-background-surface data-[focused]:bg-background-hover data-[focused]:ring-2 data-[focused]:ring-border-focus data-[focused]:ring-offset-1 data-[focused]:ring-offset-background-surface",isDisabled:s,children:jsxRuntime.jsxs("span",{className:"flex items-center gap-2",children:[jsxRuntime.jsx(H,{name:"Code",size:14}),l==="svg"?"Exporting...":"Export as SVG"]})}),jsxRuntime.jsx(reactAriaComponents.MenuItem,{id:"png",className:"flex items-center gap-2 px-3 py-2 text-sm text-text-primary rounded cursor-pointer hover:bg-background-hover focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-border-focus focus-visible:ring-offset-1 focus-visible:ring-offset-background-surface data-[focused]:bg-background-hover data-[focused]:ring-2 data-[focused]:ring-border-focus data-[focused]:ring-offset-1 data-[focused]:ring-offset-background-surface",isDisabled:s,children:jsxRuntime.jsxs("span",{className:"flex items-center gap-2",children:[jsxRuntime.jsx(H,{name:"DownloadSimple",size:14}),l==="png"?"Exporting...":"Export as PNG"]})})]})})]})]})]})};var dp=({data:e,seriesMetadata:t,width:r,height:o,onBrushChange:n,brushRegion:a,margin:i=Ue,yDomain:s})=>{let c=Be.useRef(null),l=Be.useRef(false),d=Be.useMemo(()=>e.flat(),[e]),u=Be.useMemo(()=>({top:10,bottom:15,left:i.left,right:i.right}),[i]),m=r-u.left-u.right,p=Be.useMemo(()=>{if(d.length===0)return scale.scaleTime({domain:[new Date,new Date],range:[0,m]});let h=new Date(Math.min(...d.map(y=>y.xValue.getTime()))),C=new Date(Math.max(...d.map(y=>y.xValue.getTime())));return scale.scaleTime({domain:[h,C],range:[0,m]})},[d,m]),f=Be.useMemo(()=>{let h=d.length>0?Math.max(0,...d.map(C=>C.yValue)):1;return scale.scaleLinear({domain:s??[0,h],range:[o-u.bottom,u.top]})},[d,o,s,u.top,u.bottom]),g=h=>{if(l.current)return;if(!h){n(null);return}let{x0:C,x1:y}=h;if(C===y)return;let S=new Date(C),N=new Date(y);if(!(Number.isNaN(S.getTime())||Number.isNaN(N.getTime()))){if(d.length>0){let T=Math.min(...d.map(L=>L.xValue.getTime())),E=Math.max(...d.map(L=>L.xValue.getTime())),M=(E-T)*.05;if(Math.abs(S.getTime()-T)<M&&Math.abs(N.getTime()-E)<M){n(null);return}}n([S,N]);}},b=Be.useMemo(()=>{if(d.length!==0)return {start:{x:0,y:u.top},end:{x:m,y:o-u.bottom}}},[m,o,d]);Be.useEffect(()=>{if(!c.current||d.length===0)return;let h=c.current.state;if(h?.isBrushing||h?.activeHandle)return;let C=Math.min(...d.map(R=>R.xValue.getTime())),y=Math.max(...d.map(R=>R.xValue.getTime())),S=a?a[0]:new Date(C),N=a?a[1]:new Date(y),T=c.current.state?.extent;if(T){let R=p.invert(T.x0),M=p.invert(T.x1),A=Math.abs(R.getTime()-S.getTime()),L=Math.abs(M.getTime()-N.getTime());if(A<1e3&&L<1e3)return}l.current=true;let E=R=>{let M=c.current.getExtent({x:p(S),y:u.top},{x:p(N),y:o-u.bottom});return {...R,start:{y:M.y0,x:M.x0},end:{y:M.y1,x:M.x1},extent:M}};c.current.updateBrush(E),setTimeout(()=>{l.current=false;},50);},[a,p,o,d]);let x={fill:"url(#brush_pattern)",fillOpacity:.15,stroke:"var(--color-border-focus)",strokeWidth:1.5,strokeOpacity:.3};return jsxRuntime.jsx("div",{className:"mt-2",children:jsxRuntime.jsxs("svg",{width:r,height:o,children:[jsxRuntime.jsx(pattern.PatternLines,{id:"brush_pattern",height:8,width:8,stroke:"var(--color-text-secondary)",strokeWidth:1,orientation:["diagonal"]}),jsxRuntime.jsxs("g",{transform:`translate(${u.left}, 0)`,children:[e.map((h,C)=>jsxRuntime.jsx(shape.LinePath,{data:h,x:y=>p(y.xValue),y:y=>f(y.yValue),stroke:t[C]?.color||"var(--color-gray-500)",strokeWidth:1.5,opacity:.8},`brush-series-${C}`)),jsxRuntime.jsx(brush.Brush,{xScale:p,yScale:f,width:m,height:o-u.top-u.bottom,margin:{top:u.top,bottom:u.bottom,left:0,right:0},handleSize:8,innerRef:c,resizeTriggerAreas:["left","right"],brushDirection:"horizontal",initialBrushPosition:b,onChange:g,onClick:()=>n(null),selectedBoxStyle:x,useWindowMoveEvents:true})]})]})})};function ho(e){switch(e){case "command":return Rt("--color-action-brand","#111111");case "success":return Rt("--color-feedback-success-border","#278a4a");case "warning":return Rt("--color-feedback-warning-border","#c88420");case "error":return Rt("--color-feedback-error-border","#c42d2d");case "alert":return Rt("--color-feedback-warning-border","#c88420");default:return Rt("--color-text-secondary","#525250")}}function kl({events:e,color:t,showLabels:r=false}){let o=Be.useContext(Qr),[n,a]=Be.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:d,seriesMetadata:u,seriesTypes:m,categoryColors:p}=o,f=e.filter(x=>{let h=i(x.timestamp);return h>=Ue.left&&h<=i.range()[1]}),g=Be.useCallback((x,h)=>{a(h);let C=i(x.timestamp),y=C>(i.range()[1]-Ue.right-Ue.left)/2+Ue.left,S=[];d&&u&&d.forEach((E,R)=>{if(E.length===0)return;let M=d3Array.bisector(O=>O.xValue).left,A=M(E,x.timestamp),L=E[A-1],w=E[A],k;if(!L)k=w;else if(!w)k=L;else {let O=Math.abs(x.timestamp.getTime()-L.xValue.getTime()),G=Math.abs(x.timestamp.getTime()-w.xValue.getTime());k=O<G?L:w;}k&&u[R]&&S.push({label:u[R].label,value:k.yValue,color:u[R].color,type:m?.[R]||"line",...k.category&&{category:k.category,categoryColor:p?.[k.category]}});});let T=f.filter(E=>Math.abs(i(E.timestamp)-C)<=10).map(E=>({label:E.label,color:t||ho(E.type),metadata:E.metadata}));S.push({label:T.length>1?`${T.length} events`:x.label,value:0,color:t||ho(x.type),type:"event"}),l.show({xValue:x.timestamp,series:S,x:C,y:S.length>1&&typeof S[0].value=="number"?s(S[0].value):c/2,position:y?"left":"right",isEvent:true,eventMetadata:x.metadata,eventItems:T});},[i,s,c,l,t,d,u,m,p,f]),b=Be.useCallback(()=>{a(null),l.hide();},[l]);return f.length===0?null:jsxRuntime.jsx("g",{className:"chart-event-markers","data-testid":"chart-event-markers",children:f.map((x,h)=>{let C=i(x.timestamp),y=t||ho(x.type),S=n===h;return jsxRuntime.jsxs("g",{children:[jsxRuntime.jsx("line",{x1:C,y1:Ue.top,x2:C,y2:c-Ue.bottom,stroke:y,strokeWidth:S?3:2,strokeDasharray:"4 4",strokeOpacity:S?.9:.6,pointerEvents:"none"}),jsxRuntime.jsx("circle",{cx:C,cy:Ue.top,r:S?5:4,fill:y,stroke:"var(--color-background-surface)",strokeWidth:2,pointerEvents:"none"}),jsxRuntime.jsx("circle",{cx:C,cy:c-Ue.bottom,r:S?5:4,fill:y,stroke:"var(--color-background-surface)",strokeWidth:2,pointerEvents:"none"}),r&&jsxRuntime.jsx("text",{x:C,y:Ue.top-8,textAnchor:"middle",fill:"var(--color-text-secondary)",fontSize:11,fontWeight:500,pointerEvents:"none",children:x.label}),jsxRuntime.jsx("rect",{x:C-10,y:Ue.top,width:20,height:c-Ue.top-Ue.bottom,fill:"transparent",style:{cursor:"pointer"},onMouseEnter:()=>g(x,h),onMouseLeave:b})]},`${x.timestamp.getTime()}-${h}`)})})}function Tl({spans:e,opacity:t=.25,color:r}){let o=Be.useContext(Qr),[n,a]=Be.useState(null),i=o?.xScale,s=o?.height,c=o?.tooltip,[l,d]=i?.domain()??[new Date(0),new Date(0)],[u,m]=i?.range()??[0,0],p=Be.useCallback((S,N)=>{if(!i||!c)return;a(N);let T=S.start<l?l:S.start,E=S.end>d?d:S.end,R=(i(T)+i(E))/2,M=R>(m-u)/2+u,L=e.filter(w=>w.end>w.start&&w.start<S.end&&w.end>S.start).map(w=>({label:w.label,color:w.color??r??ho(w.type),metadata:w.metadata}));c.show({xValue:S.start,series:[{label:L.length>1?`${L.length} scheduled commands`:S.label,value:0,color:S.color??r??ho(S.type),type:"event"}],x:R,y:(s??0)/2,position:M?"left":"right",isEvent:true,eventMetadata:S.metadata,eventItems:L});},[i,s,c,r,l,d,u,m,e]),f=Be.useCallback(()=>{a(null),c?.hide();},[c]);if(!o)return console.warn("ChartEventSpans must be used within a ChartContainer"),null;let{xScale:g,height:b}=o,x=Ue.top,C=b-Ue.bottom-x,y=e.filter(S=>S.end>S.start);return y.length===0?null:jsxRuntime.jsx("g",{className:"chart-event-spans","data-testid":"chart-event-spans",children:y.map((S,N)=>{let T=S.start<l?l:S.start,E=S.end>d?d:S.end;if(T>=d||E<=l)return null;let R=g(T),A=g(E)-R;if(A<=0)return null;let L=S.color??r??ho(S.type);return jsxRuntime.jsx("rect",{x:R,y:x,width:A,height:C,fill:L,fillOpacity:n===N?Math.min((t??.25)*1.8,1):t??.25,pointerEvents:"all",style:{cursor:"pointer"},onMouseEnter:()=>p(S,N),onMouseLeave:f},`${S.start.getTime()}-${S.end.getTime()}-${N}`)})})}var wi=({data:e,color:t="var(--color-viz-default)",strokeWidth:r=3,strokeDasharray:o,categoryColors:n={},animate:a=true})=>{let{xScale:i,yScale:s,animationSettings:c}=En(),l=s.range(),d=Object.keys(n).length>0,u=b=>b.category?n[b.category]??t:t,m=b=>b.chartYValue??b.yValue,p=e.length===1?e[0]:void 0,f=p?jsxRuntime.jsx("circle",{cx:i(p.xValue),cy:s(m(p)),r,fill:d?u(p):t}):d?e.slice(0,-1).map((b,x)=>{let h=e[x+1];return jsxRuntime.jsx(shape.LinePath,{data:[b,h],x:C=>i(C.xValue),y:C=>s(m(C)),stroke:u(b),strokeWidth:r,strokeDasharray:o,strokeLinecap:"round",curve:curve.curveLinear},`${b.xValue.getTime()}-${h.xValue.getTime()}`)}):jsxRuntime.jsx(shape.LinePath,{data:e,x:b=>i(b.xValue),y:b=>s(m(b)),stroke:t,strokeWidth:r,strokeDasharray:o,strokeLinecap:"round",curve:curve.curveLinear}),g={transformOrigin:`0 ${l[0]}px`,transformBox:"fill-box",isolation:"isolate"};return a?jsxRuntime.jsx(framerMotion.motion.g,{initial:{scaleY:0},animate:{scaleY:1},transition:{duration:c.duration,ease:c.ease},style:g,children:f}):jsxRuntime.jsx("g",{style:g,children:f})};function up(e,t,r){let o=e[1]-e[0],n=t/Math.max(1,r)*o;return [e[0]-n,e[1]-n]}function Dx(e,t,r){let o=e[1]-e[0],n=e[0]+t*o,a=o/r,i=n-t*a;return [i,i+a]}function pp(e,t,r=16,o=800){return t===1?e*r:t===2?e*o:e}var Mx=(e,t)=>{if(!t)return e;let r=e[1]-e[0];if(r>=t[1]-t[0])return [t[0],t[1]];let[o,n]=e;return n>t[1]&&(n=t[1],o=n-r),o<t[0]&&(o=t[0],n=o+r),[o,n]},Bk=e=>typeof requestAnimationFrame=="function"?requestAnimationFrame(e):setTimeout(()=>e(0),0),Vk=e=>{typeof cancelAnimationFrame=="function"?cancelAnimationFrame(e):clearTimeout(e);};function Ex(e){let{groupRef:t}=e,r=Be.useRef({xDomain:e.xDomain,plotWidthPx:e.plotWidthPx});r.current={xDomain:e.xDomain,plotWidthPx:e.plotWidthPx};let o=Be.useRef(e.onCommit);o.current=e.onCommit;let n=Be.useRef(e.panBoundsMs);n.current=e.panBoundsMs;let a=Be.useRef(e.settleMs??140);a.current=e.settleMs??140;let i=Be.useRef(e.zoomIntent??(A=>A.ctrlKey));i.current=e.zoomIntent??(A=>A.ctrlKey);let s=Be.useRef(e.onGestureStart);s.current=e.onGestureStart;let c=Be.useRef(null),l=Be.useRef({scale:1,cursorFrac:.5,panDxPx:0,timer:null}),d=Be.useRef(null),u=Be.useRef(null),m=Be.useRef(false),p=Be.useCallback(A=>{u.current=A,d.current==null&&(d.current=Bk(()=>{d.current=null,u.current!=null&&t.current?.setAttribute("transform",u.current);}));},[t]),f=Be.useCallback(()=>{d.current!=null&&(Vk(d.current),d.current=null),u.current=null,t.current?.removeAttribute("transform");},[t]),g=Be.useCallback(()=>{m.current||(m.current=true,s.current?.());},[]),b=Be.useCallback(()=>{m.current=false;},[]),x=Be.useCallback(()=>{l.current.timer!=null&&(clearTimeout(l.current.timer),l.current.timer=null);},[]),h=Be.useCallback(()=>{l.current={scale:1,cursorFrac:.5,panDxPx:0,timer:null};},[]),C=Be.useCallback(()=>{let{xDomain:A,plotWidthPx:L}=r.current,{scale:w,cursorFrac:k,panDxPx:O}=l.current;if(w===1&&O===0)return;let G=w!==1?Dx(A,k,w):A;O!==0&&(G=up(G,O,L)),o.current(Mx(G,n.current));},[]),y=Be.useCallback(()=>{l.current.timer!=null&&(x(),C(),h(),f());},[x,C,h,f]),S=Be.useCallback(A=>{y(),A.currentTarget.setPointerCapture?.(A.pointerId),c.current={startX:A.clientX,dxPx:0},g();},[y,g]),N=Be.useCallback(A=>{c.current&&(c.current.dxPx=A.clientX-c.current.startX,p(`translate(${c.current.dxPx},0)`));},[p]),T=Be.useCallback(A=>{if(!c.current)return;let{dxPx:L}=c.current;c.current=null,f(),b(),L!==0&&o.current(Mx(up(r.current.xDomain,L,r.current.plotWidthPx),n.current));},[f,b]),E=Be.useCallback(()=>{c.current&&(c.current=null,f(),b());},[f,b]),R=Be.useRef(null),M=Be.useCallback(A=>{if(R.current?.(),R.current=null,!A)return;let L=w=>{if(c.current)return;let{plotWidthPx:k}=r.current,O=pp(w.deltaY,w.deltaMode),G=pp(w.deltaX,w.deltaMode),B=i.current(w);if(!B&&G===0)return;if(w.preventDefault(),g(),B){let K=Math.min(1,Math.max(0,(w.clientX-A.getBoundingClientRect().left)/Math.max(1,k)));l.current.scale*=Math.exp(-O/200),l.current.cursorFrac=K;}else l.current.panDxPx-=G;let{scale:z,cursorFrac:X,panDxPx:V}=l.current;p(`translate(${X*k*(1-z)+V},0) scale(${z},1)`),x(),l.current.timer=setTimeout(()=>{C(),h(),f(),b();},a.current);};A.addEventListener("wheel",L,{passive:false}),R.current=()=>A.removeEventListener("wheel",L);},[p,f,x,C,h,g,b]);return Be.useEffect(()=>()=>{R.current?.(),R.current=null,f(),l.current.timer!=null&&clearTimeout(l.current.timer);},[f]),{onPointerDown:S,onPointerMove:N,onPointerUp:T,onPointerCancel:E,wheelTargetRef:M,gestureActiveRef:m}}var Fx=e=>e.type===fi||e.type===wi||e.type===nl,Yk=e=>e.type===kl||e.type===Tl,Kk=(e,t,r)=>{if(!e.tooltipRange||e.baseline===void 0)return;let o=typeof e.baseline=="function"?e.baseline(t,r):e.baseline;return typeof o=="number"&&Number.isFinite(o)&&o!==t.yValue?o:void 0},Jk=d3Array.bisector(e=>e.xValue).left,jk=()=>jsxRuntime.jsx("div",{className:"flex h-full items-center justify-center",children:jsxRuntime.jsx("p",{className:"text-text-secondary",children:"No data available"})}),qk=()=>jsxRuntime.jsxs("div",{className:"flex h-full flex-col gap-4 p-4",children:[jsxRuntime.jsx(j,{className:"h-full w-full"}),jsxRuntime.jsxs("div",{className:"flex gap-4",children:[jsxRuntime.jsx(j,{className:"h-4 w-24"}),jsxRuntime.jsx(j,{className:"h-4 w-24"})]})]}),Xk=({parentWidth:e,parentHeight:t,yFormatter:r={type:"number"},yDomain:o,referenceLines:n,isLoading:a=false,enableZoom:i=false,enableBrush:s=false,brushHeight:c=60,onZoomChange:l,zoomDomain:d,hiddenSeriesLabels:u,onHiddenSeriesChange:m,xDomain:p,panBounds:f,onViewportChange:g,onSizeChange:b,disableViewportFiltering:x=false,children:h})=>{let C=u!==void 0,y=p!=null,S=d!==void 0,[N,T]=Be.useState(null),[E,R]=Be.useState(null),M=S?d:E,[A,L]=Be.useState(()=>new Set),w=C?u:A,k=Be.useRef(null),O=Be.useRef(0),G=Be.useRef(""),B=Be.useRef(null),z=Be.useId(),X=Be.useRef(null),{colorMode:V}=jt(),K=Be.useMemo(()=>ja(),[V]),P=Be.useMemo(()=>kd(),[V]),{datasets:D,seriesMetadata:F,categoryInfo:I,categoryColors:v,categoryLabels:W,seriesTypes:Y}=Be.useMemo(()=>{let se=Be.Children.toArray(h).filter(Re=>Be.isValidElement(Re)&&Fx(Re)),Ve=se.filter(Re=>Re.props.data).length,ke=[],Ke=[],tt=[],dt=null,Me=null;se.forEach((Re,yt)=>{let Ee=Re.props;if(!Ee.data)return;ke.push(Ee.data);let ra=("color"in Ee&&Ee.color?Ee.color:void 0)||(Ve===1?P:K[yt%K.length]),ln=Re.type===fi;Ke.push({label:"label"in Ee&&Ee.label||`Series ${ke.length}`,color:ra,...ln&&"baseline"in Ee&&Ee.baseline!==void 0?{baseline:Ee.baseline,tooltipRange:"tooltipRange"in Ee&&Ee.tooltipRange||false}:{}});let Gc=ln?"area":Re.type===wi?"line":"bar";tt.push(Gc),"categoryColors"in Ee&&Ee.categoryColors&&(dt=Ee.categoryColors),"categoryLabels"in Ee&&Ee.categoryLabels&&(Me=Ee.categoryLabels);});let ut=null;if(dt){let Re=new Set;ke.forEach(yt=>{yt.forEach(Ee=>{Ee.category&&Re.add(Ee.category);});}),ut=Array.from(Re).map(yt=>({label:Me?.[yt]||yt,color:dt[yt]||"#6b7280"}));}return {datasets:ke,seriesMetadata:Ke,categoryInfo:ut,categoryColors:dt,categoryLabels:Me,seriesTypes:tt}},[h,P,K,V]),U=e,ee=s?c+8:0,pe=t-60-ee,J=Math.max(100,pe),re=Be.useCallback(q=>q?w.has(q):false,[w]),xe=Be.useMemo(()=>F.map((q,se)=>re(q.label)?null:se).filter(q=>q!==null),[F,re]),te=Be.useMemo(()=>xe.map(q=>D[q]).filter(q=>!!q),[D,xe]),ne=Be.useMemo(()=>xe.map(q=>F[q]).filter(q=>!!q),[F,xe]),me=Be.useMemo(()=>xe.map(q=>Y[q]).filter(q=>!!q),[Y,xe]),ve=me.findIndex(q=>q==="bar"),Je=ve!==-1,Pt=Be.useCallback((q,se)=>{let Ve=q.has(se);if(!Ve&&F.reduce((tt,dt)=>q.has(dt.label)||dt.label===se?tt:tt+1,0)<1)return q;let ke=new Set(q);return Ve?ke.delete(se):ke.add(se),ke},[F]),Ga=Be.useCallback(q=>{if(C){let se=u;if(!se.has(q)&&F.reduce((Ke,tt)=>se.has(tt.label)||tt.label===q?Ke:Ke+1,0)<1){T(null);return}m?.(ke=>Pt(ke,q));}else L(se=>Pt(se,q));T(null);},[C,u,m,F,Pt]),Ur=Be.useMemo(()=>F.map(q=>q.label).join(""),[F]),ce=Be.useRef(Ur);Be.useEffect(()=>{ce.current!==Ur&&(ce.current=Ur,C||L(q=>q.size===0?q:new Set));},[Ur,C]);let he=Be.useMemo(()=>te.flat(),[te]),ae=Be.useMemo(()=>{if(he.length===0)return null;let q=[...he].sort((se,Ve)=>se.xValue.getTime()-Ve.xValue.getTime());return [q[0].xValue,q[q.length-1].xValue]},[he]),Z=p??(M||ae),de=Be.useCallback(q=>{S?l?.(q):R(q);},[S,l]),oe=Be.useMemo(()=>x||!Z?D:D.map(se=>se.filter(Ve=>Ve.xValue>=Z[0]&&Ve.xValue<=Z[1])),[D,Z,x]),Ne=Be.useMemo(()=>xe.map(q=>oe[q]??[]),[xe,oe]);Be.useEffect(()=>{l&&l(M);},[M,l]);let $e=Be.useMemo(()=>xe.flatMap(q=>oe[q]??[]),[oe,xe]),Le=Be.useMemo(()=>lp($e,J,r,o),[$e,J,r,o]),nn=Be.useMemo(()=>{let q=J-Ue.top-Ue.bottom;return Cl(q)},[J]),ge=Be.useMemo(()=>{let q=xo(r),se=q.tickFormat||q.format,ke=Le.ticks(nn).map(dt=>se(dt)),Ke=yl(ke,12,"system-ui"),tt=Math.ceil(Ke)+12;return {...Ue,left:Math.max(tt,30)}},[Le,r,nn]),Qe=Be.useMemo(()=>Z?scale.scaleTime({domain:Z,range:[ge.left,U-ge.right]}):sp(he,U),[Z,he,U,ge]),Hc=Be.useCallback(q=>{if(!ae)return;let{scaleX:se,translateX:Ve}=q,ke=U-ge.left-ge.right,[Ke,tt]=ae,dt=tt.getTime()-Ke.getTime();if(dt<=0){de(null);return}let Me=-Ve,ut=Me+ke,Re=ke*se/dt,yt=Me/Re,Ee=ut/Re,sn=new Date(Ke.getTime()+yt),ra=new Date(Ke.getTime()+Ee),ln=Math.abs(sn.getTime()-Ke.getTime()),Gc=Math.abs(ra.getTime()-tt.getTime()),Em=dt*.02;ln<Em&&Gc<Em?de(null):de([sn,ra]);},[ae,U,ge,de]),Wc=Be.useMemo(()=>p?[p[0].getTime(),p[1].getTime()]:[0,0],[p]),Tm=Be.useMemo(()=>f?[f[0].getTime(),f[1].getTime()]:void 0,[f]),C0=Be.useCallback(q=>{g?.([new Date(q[0]),new Date(q[1])]);},[g]),S0=U-ge.left-ge.right,w0=Be.useCallback(()=>T(null),[]),{onPointerDown:N0,onPointerMove:k0,onPointerUp:T0,onPointerCancel:P0,wheelTargetRef:R0,gestureActiveRef:Pm}=Ex({xDomain:Wc,plotWidthPx:S0,groupRef:X,onCommit:C0,onGestureStart:w0,...Tm?{panBoundsMs:Tm}:{}});Be.useEffect(()=>{b?.(Math.max(0,U-ge.left-ge.right));},[U,ge,b]);let D0=Be.useCallback(q=>{if(Pm.current)return;let{left:se}=k.current?.getBoundingClientRect()||{left:0},Ve=q.clientX-se;if(q.timeStamp-(O.current||0)<16)return;O.current=q.timeStamp;let ke=Qe.invert(Ve),Ke=Ne.map((Me,ut)=>{if(!Me||Me.length===0)return null;let Re=Jk(Me,ke,1);if(Re===0)return {point:Me[0],index:0,datasetIndex:ut};if(Re>=Me.length)return {point:Me[Me.length-1],index:Me.length-1,datasetIndex:ut};let yt=Me[Re-1],Ee=Me[Re];if(!yt||!Ee)return null;let sn=Math.abs(yt.xValue.getTime()-ke.getTime()),ra=Math.abs(Ee.xValue.getTime()-ke.getTime()),ln=sn<ra;return {point:ln?yt:Ee,index:ln?Re-1:Re,datasetIndex:ut}}).filter(Me=>Me!==null&&ne[Me.datasetIndex]!==void 0).map(({point:Me,index:ut,datasetIndex:Re})=>({label:ne[Re].label,value:Me.yValue,baselineValue:Kk(ne[Re],Me,ut),color:ne[Re].color,point:Me,type:me[Re]}));if(Ke.length===0){T(null);return}let tt=Qe(Ke[0].point.xValue),dt=tt>(U-ge.right-ge.left)/2+ge.left;T({xValue:Ke[0].point.xValue,series:Ke.map(({label:Me,value:ut,baselineValue:Re,color:yt,point:Ee,type:sn})=>({label:Me,value:ut,...Re!==void 0?{baselineValue:Re}:{},chartY:Ee.chartYValue??ut,showMarker:Ee.showTooltipMarker??true,color:yt,type:sn,category:Ee.category,categoryColor:Ee.category&&v?v[Ee.category]:void 0})),x:tt,y:Le(Ke[0].point.chartYValue??Ke[0].value),position:dt?"left":"right"});},[Ne,ne,me,Qe,Le,U,v,ge,Pm]),M0=()=>{T(null);},E0=Be.useCallback(()=>{de(null),B.current&&B.current.reset();},[de]),rs=Be.useCallback(q=>{if(!(B.current&&ae))return;let[se,Ve]=ae,ke=Ve.getTime()-se.getTime();if(ke<=0){B.current.reset();return}if(!q){B.current.reset();return}let[Ke,tt]=q,dt=tt.getTime()-Ke.getTime();if(dt<=0){B.current.reset();return}let Me=ke/dt,ut=U-ge.left-ge.right,yt=-((Ke.getTime()-se.getTime())/ke)*ut*Me;B.current.setTransformMatrix({scaleX:Me,scaleY:1,translateX:yt,translateY:0,skewX:0,skewY:0});},[ae,U,ge]),L0=Be.useCallback(q=>{de(q),rs(q);},[de,rs]);Be.useEffect(()=>{y||S&&rs(d??null);},[y,S,d,rs]);let A0={width:U,height:J,xScale:Qe,yScale:Le,yFormatter:r,animationSettings:Vb,tooltip:{data:N,show:T,hide:()=>T(null)},datasets:Ne,seriesMetadata:ne,seriesTypes:me,categoryColors:v||void 0,categoryLabels:W||void 0},I0=Be.Children.toArray(h),Rm=0,an=[],Dm=[];I0.forEach(q=>{if(!Be.isValidElement(q)){an.push(q);return}if(Yk(q))Dm.push(q);else if(Fx(q)){let se=Rm;Rm++;let Ve=q.props,ke=F[se]?.label;if(re(ke))return;an.push(Be__namespace.default.cloneElement(q,{...Ve,data:oe[se]||Ve.data,color:F[se]?.color,...y?{animate:false}:{}}));}else an.push(q);});let F0=xe.length,B0=(I||F).map(q=>{let se=!I&&re(q.label);return {category:q.label,fill:q.color,isHidden:se,isDisabled:!I&&!se&&F0<=1}}),V0=Fm({datasets:te,metadata:{xLabel:"Date",yLabel:"Value",seriesLabels:ne.map(q=>q.label),timestamp:true},svgRef:k});if(a)return jsxRuntime.jsx(qk,{});if(D.length===0)return jsxRuntime.jsx(jk,{});let Mm=jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("title",{children:"Data chart visualization"}),jsxRuntime.jsx("g",{children:Le.ticks(nn).map(q=>{let se=Math.abs(q)<Number.EPSILON;return jsxRuntime.jsx(shape.Line,{from:{x:ge.left,y:Le(q)},to:{x:U-ge.right,y:Le(q)},stroke:se?"var(--color-border-default)":"var(--color-border-muted)",strokeWidth:se?1.5:1},`grid-line-${q}`)})}),x?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("defs",{children:jsxRuntime.jsx("clipPath",{id:z,children:jsxRuntime.jsx("rect",{x:Qe.range()[0],y:Le.range()[1],width:Qe.range()[1]-Qe.range()[0],height:Le.range()[0]-Le.range()[1]})})}),jsxRuntime.jsx("g",{clipPath:`url(#${z})`,children:y?jsxRuntime.jsx("g",{ref:X,children:an}):an})]}):y?jsxRuntime.jsx("g",{ref:X,children:an}):an,n&&n.length>0&&jsxRuntime.jsx("g",{children:n.map(q=>{let se=Le(q.value),Ve=q.color??"var(--color-error-base)";return jsxRuntime.jsxs("g",{children:[jsxRuntime.jsx(shape.Line,{from:{x:ge.left,y:se},to:{x:U-ge.right,y:se},stroke:Ve,strokeWidth:1.5,strokeDasharray:"6 4"}),q.label&&jsxRuntime.jsx("text",{x:U-ge.right-4,y:se-4,textAnchor:"end",fontSize:11,fill:Ve,children:q.label})]},`ref-line-${q.value}`)})}),jsxRuntime.jsx(to.Bottom,{top:J-ge.bottom,scale:Qe,width:U-ge.left-ge.right}),jsxRuntime.jsx(to.Left,{left:ge.left,scale:Le,yFormatter:r,height:J-ge.top-ge.bottom}),N&&!N.isEvent&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[Je?(()=>{let q=te[ve]??[];if(q.length===0)return null;let se=[...q].sort((Re,yt)=>Re.xValue.getTime()-yt.xValue.getTime()),Ve=se.findIndex(Re=>Re.xValue.getTime()===N.xValue.getTime()),ke=se[Ve+1],Ke=se.length>1&&ke?ke.xValue.getTime()-N.xValue.getTime():15*6e4,tt=Math.abs(Qe(new Date(N.xValue.getTime()+Ke))-Qe(N.xValue)),Me=Qe(N.xValue)-tt/2,ut=Le.range();return jsxRuntime.jsx("rect",{x:Me,y:ut[1],width:tt,height:ut[0]-ut[1],className:"fill-background-muted",opacity:.5,pointerEvents:"none",style:{transition:"all 100ms ease-out"}})})():null,N.series.filter(q=>q.type!=="bar"&&q.showMarker!==false).map(q=>jsxRuntime.jsxs("g",{children:[jsxRuntime.jsx("circle",{cx:Qe(N.xValue),cy:Le(q.chartY??q.value),r:8,fill:"white",stroke:q.color,strokeWidth:2,style:{transition:"all 100ms ease-out"}}),jsxRuntime.jsx("circle",{cx:Qe(N.xValue),cy:Le(q.chartY??q.value),r:4,fill:q.color,style:{transition:"all 100ms ease-out"}})]},`highlight-${q.label}`))]}),jsxRuntime.jsx("rect",{...y?{"data-camera-surface":""}:{},x:ge.left,y:ge.top,width:U-ge.left-ge.right,height:J-ge.top-ge.bottom,fill:"transparent",style:{cursor:y||i?"grab":"crosshair",touchAction:"none"},onMouseMove:D0,onMouseLeave:M0,...y?{onPointerDown:N0,onPointerMove:k0,onPointerUp:T0,onPointerCancel:P0,ref:R0}:{}}),Dm]});return jsxRuntime.jsx("div",{className:"relative flex h-full flex-col",children:jsxRuntime.jsxs(Qr.Provider,{value:A0,children:[i&&!y?jsxRuntime.jsx(zoom.Zoom,{width:U,height:J,scaleXMin:1,scaleXMax:20,scaleYMin:1,scaleYMax:1,constrain:q=>{let{scaleX:se,translateX:Ve}=q,ke=Math.max(1,Math.min(20,se)),Ke=1,tt=U-ge.left-ge.right,dt=0,Me=tt*(1-ke),ut=Math.max(Me,Math.min(dt,Ve));return {...q,scaleX:ke,scaleY:Ke,translateX:ut,translateY:0}},children:q=>{if(B.current=q,q.transformMatrix){let{scaleX:se,translateX:Ve}=q.transformMatrix,ke=`${se.toFixed(4)}-${Ve.toFixed(2)}`;ke!==G.current&&(G.current=ke,setTimeout(()=>{Hc(q.transformMatrix);},0));}return jsxRuntime.jsx("svg",{width:U,height:J,className:"overflow-visible",ref:se=>{k.current=se,q.containerRef.current!==se&&(q.containerRef.current=se);},role:"img","aria-label":"Data chart",style:{cursor:q.isDragging?"grabbing":"grab",touchAction:"none"},onMouseDown:q.dragStart,onMouseMove:q.dragMove,onMouseUp:q.dragEnd,onMouseLeave:()=>{q.isDragging&&q.dragEnd();},onTouchStart:q.dragStart,onTouchMove:q.dragMove,onTouchEnd:q.dragEnd,children:Mm})}}):jsxRuntime.jsx("svg",{width:U,height:J,className:"overflow-visible",ref:k,role:"img","aria-label":"Data chart",children:Mm}),jsxRuntime.jsx(va,{data:N,formatter:r}),s&&ae&&jsxRuntime.jsx(dp,{data:te,seriesMetadata:ne,width:U,height:c,onBrushChange:L0,brushRegion:M,margin:ge,...o?{yDomain:o}:{}}),jsxRuntime.jsx(wl,{onExport:V0,items:B0,marginLeft:0,marginRight:ge.right,isZoomed:M!==null,onResetZoom:E0,onLegendItemToggle:I?void 0:Ga})]})})},Bx=responsive.withParentSize(Xk);var tT=e=>e.toLocaleString(),rT=e=>`${Math.round(e*100)}%`,Hx=({data:e,width:t=800,height:r=400,padding:o=0,barGap:n=30,formatValue:a=tT,formatPercentage:i=rT,color:s,showScale:c=true,showOverallConversion:l=true,overallConversionLabel:d="Overall Conversion:",activeStageId:u,onStageClick:m,onStageHover:p,className:f,style:g,"aria-label":b="Funnel chart"})=>{let[x,h]=Be.useState(null),[C,y]=Be.useState(t),S=Be.useRef(null),N=u??x,T=Be.useId(),E=s||"var(--color-viz-default)";Be.useEffect(()=>{if(!S.current)return;let k=new ResizeObserver(O=>{for(let G of O)y(G.contentRect.width);});return k.observe(S.current),()=>{k.disconnect();}},[]);let{layout:R,overallConversion:M}=Be.useMemo(()=>{if(e.length===0)return {layout:[],overallConversion:0};let k=e[0].value,O=l?60:0,G=r-o*2-O,B=(e.length-1)*n,z=(G-B)/e.length,X=e.map((K,P)=>{let D=o+O+P*(z+n),F=k===0?0:K.value/k,I=F,v=P===0?null:e[P-1].value,W=v==null||v===0?0:1-K.value/v;return {stage:K,index:P,y:D,barHeight:z,widthPercent:F,conversionRate:I,dropOff:W}}),V=k===0?0:e[e.length-1].value/k;return {layout:X,overallConversion:V,maxValue:k}},[e,C,r,o,n,c,l]);if(e.length===0)return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("flex h-full min-h-[280px] w-full items-center justify-center rounded-lg border border-dashed border-border-default bg-background-surface text-sm font-medium text-text-secondary",f),style:{width:t,height:r,...g},children:"No funnel data available"});let A=c?60:0,L=o+A,w=C-o*2-A;return jsxRuntime.jsx("div",{ref:S,className:tailwindMerge.twMerge("relative w-full overflow-hidden rounded-lg bg-background-surface",f),style:{height:r,...g},"aria-label":b,role:"img",children:jsxRuntime.jsxs("svg",{width:"100%",height:r,className:"relative",children:[jsxRuntime.jsxs("defs",{children:[jsxRuntime.jsx(gradient.LinearGradient,{id:`${T}-bar`,from:E,to:E,toOpacity:.85}),jsxRuntime.jsx(gradient.LinearGradient,{id:`${T}-bg`,from:E,to:E,fromOpacity:.01,toOpacity:.15,x1:"0",y1:"0",x2:"1",y2:"0"})]}),l&&jsxRuntime.jsxs("text",{x:L,y:o+20,className:"fill-text-primary text-sm font-medium",children:[jsxRuntime.jsx("tspan",{className:"fill-text-secondary",children:d})," ",i(M)]}),c&&jsxRuntime.jsx("g",{children:R.map(k=>{let O=k.y+k.barHeight/2;return jsxRuntime.jsx("text",{x:o+A-12,y:O,textAnchor:"end",dominantBaseline:"middle",className:"fill-text-secondary text-xs",children:i(k.conversionRate)},k.stage.id)})}),R.map(k=>{let O=N===k.stage.id,G=w*k.widthPercent;return jsxRuntime.jsxs("g",{children:[jsxRuntime.jsx("rect",{x:L,y:k.y,width:w,height:k.barHeight,fill:`url(#${T}-bg)`,rx:4}),jsxRuntime.jsx(framerMotion.motion.rect,{x:L,y:k.y,width:G,height:k.barHeight,fill:`url(#${T}-bar)`,rx:4,initial:{width:0},animate:{width:G},transition:{duration:.6,delay:k.index*.1,ease:"easeOut"},opacity:O||N==null?1:.5,style:{cursor:m||p?"pointer":"default",transition:"opacity 150ms ease"},onMouseEnter:()=>{h(k.stage.id),p?.(k.stage);},onMouseLeave:()=>{h(null),p?.(null);},onClick:()=>m?.(k.stage)}),jsxRuntime.jsx("rect",{x:L+10,y:k.y+k.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:L+16,y:k.y+k.barHeight/2+4,className:"fill-text-primary text-xs font-semibold",style:{pointerEvents:"none"},children:a(k.stage.value)}),jsxRuntime.jsxs("text",{x:L,y:k.y-8,className:"fill-text-secondary text-xs",style:{pointerEvents:"none"},children:[jsxRuntime.jsx("tspan",{children:k.index+1})," ",k.stage.label]}),k.stage.secondaryValue&&jsxRuntime.jsx("text",{x:L+16,y:k.y-24,className:"fill-text-secondary text-xs",style:{pointerEvents:"none"},children:k.stage.secondaryValue}),k.index>0&&k.dropOff>0&&jsxRuntime.jsxs("text",{x:L+w,y:k.y-8,textAnchor:"end",className:"fill-text-secondary text-xs",children:[i(k.dropOff)," drop"]}),k.stage.annotation&&jsxRuntime.jsxs("g",{children:[jsxRuntime.jsx("rect",{x:L+G+8,y:k.y+8,width:60,height:24,rx:3,className:"fill-background-muted"}),jsxRuntime.jsx("text",{x:L+G+16,y:k.y+20,className:"fill-text-secondary text-xs font-medium",children:k.stage.annotation})]})]},k.stage.id)})]})})};function oT(e,t,r){return {field:e,operator:t,value:r}}function nT(e,t="AND"){return {logic:t,conditions:e}}function Ni(){return {logic:"AND",conditions:[]}}function Rl(e){return !e||e.conditions.length===0?true:e.conditions.every(t=>"conditions"in t?Rl(t):false)}function aT(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,d=[],u=[],m=[];for(let p of s)p.operator==="in"&&Array.isArray(p.value)?d.push(...p.value):p.operator==="eq"?typeof p.value!="boolean"&&!Array.isArray(p.value)?d.push(p.value):m.push(p):["gte","gt","lte","lt"].includes(p.operator)?u.push({operator:p.operator,value:typeof p.value=="boolean"||Array.isArray(p.value)?String(p.value):p.value}):m.push(p);if(d.length>0){let f=Array.from(new Set(d)).map(g=>c?.values?.find(x=>String(x.value)===String(g))?.label??g);a.push({id:`${i}-in`,label:l,value:f.join(", ")});}if(u.length>0){let p=u.find(g=>g.operator==="gte"||g.operator==="gt"),f=u.find(g=>g.operator==="lte"||g.operator==="lt");if(p&&f){let g=p.operator==="gte"?"\u2265":">",b=f.operator==="lte"?"\u2264":"<";a.push({id:`${i}-range`,label:l,value:`${g} ${p.value} and ${b} ${f.value}`});}else for(let g of u){let b;g.operator==="gte"?b="\u2265":g.operator==="gt"?b=">":g.operator==="lte"?b="\u2264":b="<",a.push({id:`${i}-${g.operator}`,label:l,value:`${b} ${g.value}`});}}for(let p of m){let f;p.operator==="neq"?f=`\u2260 ${p.value}`:p.operator==="contains"?f=`contains "${p.value}"`:p.operator==="startsWith"?f=`starts with "${p.value}"`:p.operator==="endsWith"?f=`ends with "${p.value}"`:f=String(p.value),a.push({id:`${i}-${p.operator}`,label:l,value:f});}}return a}function jo(e,t){let r=e||Ni();return {...r,conditions:[...r.conditions,t]}}function An(e,t){if(!e)return Ni();let r=e.conditions.filter(o=>"conditions"in o?An(o,t).conditions.length>0:o.field!==t);return {...e,conditions:r}}function In(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 ki({count:e,label:t="results",isLoading:r=false,className:o=""}){if(r)return jsxRuntime.jsx("div",{className:`flex items-center ${o}`,children:jsxRuntime.jsx(j,{width:80,height:16})});let n=t.endsWith("s")?t.slice(0,-1):t,a=e===1?n:t;return jsxRuntime.jsxs("div",{className:`text-sm text-text-secondary whitespace-nowrap ${o}`,children:[e.toLocaleString()," ",a]})}var dT=e=>{let t=At({isInvalid:e.isInvalid,isDisabled:e.isDisabled,isFocused:e.isFocused,transparent:e.transparent,size:e.size}),r=[e.showSearchIcon?"":"pl-3",e.isClearable&&e.hasValue||e.isPassword?"pr-8":"pr-3"].join(" ");return tailwindMerge.twMerge(t,r,e.className)};function Rr({label:e,description:t,errorMessage:r,size:o="md",tooltip:n,isRequired:a,transparent:i,showSearchIcon:s,isClearable:c,onClear:l,type:d,validationResult:u,reserveErrorSpace:m=true,isLoading:p=false,descriptionPlacement:f="below",...g}){let[b,x]=Be__namespace.default.useState(false),{isFocused:h,handleFocus:C,handleBlur:y}=Tr(),S=d==="password",N=ss(p,300);return jsxRuntime.jsx(reactAriaComponents.TextField,{...g,isRequired:a,className:Se(g.className,"group flex flex-col"),children:({isDisabled:T,isInvalid:E})=>jsxRuntime.jsxs("div",{className:"flex flex-col",children:[e&&jsxRuntime.jsx(Fe,{size:o,tooltip:n,description:f==="tooltip"||f==="inline"?t:void 0,descriptionPlacement:f,isRequired:a,children:e}),jsxRuntime.jsxs(bt,{children:[s&&jsxRuntime.jsx("div",{className:"pointer-events-none absolute top-1/2 -translate-y-1/2 transform flex items-center z-10",style:{left:9},children:(()=>{let R={sm:14,md:16,lg:18,xl:20}[o];return N?jsxRuntime.jsx(po,{size:R,color:"text-text-secondary"}):jsxRuntime.jsx(H,{name:"MagnifyingGlass",size:R,className:`transition-colors ${h?"text-action-brand":"text-text-secondary"}`})})()}),jsxRuntime.jsx(Ys,{size:o,disabled:T,type:S?b?"text":"password":d,value:g.value,defaultValue:g.defaultValue,placeholder:g.placeholder,onFocus:R=>C(R,g.onFocus),onBlur:R=>y(R,g.onBlur),onChange:R=>g.onChange?.(R.target.value),style:s?{paddingLeft:{sm:28,md:32,lg:36,xl:37}[o]}:void 0,className:dT({isInvalid:E,isDisabled:T,isFocused:h,size:o,transparent:i,showSearchIcon:s,isClearable:c,hasValue:!!g.value,isPassword:S,className:typeof g.className=="string"?g.className:void 0})}),c&&g.value&&!T&&jsxRuntime.jsx(li,{onClick:()=>{l?l():g.onChange&&g.onChange("");},size:o}),S&&!T&&jsxRuntime.jsx("button",{type:"button",onClick:()=>x(!b),className:"absolute right-3 top-1/2 -translate-y-1/2 transform text-text-secondary hover:text-text-primary","aria-label":b?"Hide password":"Show password",onMouseDown:R=>{R.preventDefault(),R.stopPropagation();},children:jsxRuntime.jsx(H,{name:b?"EyeSlash":"Eye",size:o==="sm"?16:20,className:"text-text-primary"})})]}),m?jsxRuntime.jsx("div",{className:"mt-1 min-h-[20px]",children:typeof r=="string"?jsxRuntime.jsx(ue,{size:o,children:r}):typeof r=="function"&&u?jsxRuntime.jsx(ue,{size:o,children:r(u)}):t&&f==="below"?jsxRuntime.jsx(we,{size:o,children:t}):null}):jsxRuntime.jsx(jsxRuntime.Fragment,{children:typeof r=="string"?jsxRuntime.jsx(ue,{size:o,className:"mt-1",children:r}):typeof r=="function"&&u?jsxRuntime.jsx(ue,{size:o,className:"mt-1",children:r(u)}):t&&f==="below"?jsxRuntime.jsx(we,{size:o,className:"mt-1",children:t}):null})]})})}function Fn({value:e,onChange:t,onClear:r,placeholder:o="Search...",size:n="sm",className:a="",isLoading:i=false}){return jsxRuntime.jsx("div",{className:`flex-1 min-w-0 sm:max-w-sm ${a}`,children:jsxRuntime.jsx(Rr,{value:e,onChange:t,placeholder:o,showSearchIcon:true,isClearable:!!e&&!!r,onClear:r,size:n,"aria-label":o,reserveErrorSpace:false,isLoading:i})})}function Ti({value:e,options:t,onChange:r,direction:o,onDirectionChange:n,showLabel:a=true,size:i="sm",className:s="",compact:c=false}){let[l,d]=Be.useState(false),u=o!==void 0&&n!==void 0,m=t.find(p=>p.value===e);return c?jsxRuntime.jsxs("div",{className:`flex items-center gap-2 ${s}`,children:[jsxRuntime.jsx(Q,{variant:"secondary",size:i,icon:"ArrowsDownUp","aria-label":`Sort by: ${m?.label||"Select"}`,onPress:()=>d(true)}),jsxRuntime.jsx(it,{isOpen:l,onClose:()=>d(false),title:"Sort by",contentPadding:false,children:jsxRuntime.jsx(reactAriaComponents.ListBox,{items:t.map(p=>({id:p.value,label:p.label,value:p.value})),className:"w-full bg-background-surface p-0 outline-0 [&_[role=option]]:border-b [&_[role=option]]:border-border-default [&_[role=option]:last-child]:border-0 [&_[role=option]]:!px-6 [&_[role=option]]:!py-4 [&_[role=option]]:rounded-none",selectionMode:"single",selectedKeys:e?[e]:[],onSelectionChange:p=>{let f=Array.from(p)[0];f!=null&&(r(f),d(false));},children:p=>jsxRuntime.jsx(Zt,{id:p.id,textValue:p.label,children:jsxRuntime.jsx("span",{className:"overflow-hidden text-ellipsis whitespace-nowrap min-w-0 flex-1",children:p.label})},p.id)})})]}):jsxRuntime.jsxs("div",{className:`flex items-center gap-2 ${s}`,children:[a&&jsxRuntime.jsx("span",{className:"text-sm text-text-secondary whitespace-nowrap",children:"Sort by:"}),jsxRuntime.jsx(Sn,{selectedKey:e,onSelectionChange:p=>r(p),size:i,className:"min-w-32",items:t.map(p=>({id:p.value,label:p.label,value:p.value})),renderItem:p=>p.label,"aria-label":"Sort by",reserveErrorSpace:false}),u&&jsxRuntime.jsx(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 Kx({search:e,searchMobileMode:t="expanded",filters:r=[],onRemoveFilter:o,onClearAllFilters:n,onManageFilters:a,exportControl:i,maxVisibleFilterChips:s=3,sort:c,resultsCount:l,leftControls:d,onManageColumns:u,columnPicker:m,customControls:p,actions:f,interactionMode:g="auto",sticky:b,stickyTop:x="0",zIndex:h=10,className:C="",style:y}){let S=r.length>0;if(!(e||S||a||c||l||d||u||m||p||f||i))return null;let T=b?"sticky bg-background-surface":"",E=b?{top:x,zIndex:h}:{};return jsxRuntime.jsxs("div",{className:`@container flex flex-col gap-3 bg-background-surface py-3 border-b border-border-default ${T} ${C}`,style:{...y,...E},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:[d,d&&l&&jsxRuntime.jsx("div",{className:"h-4 w-px bg-border-default"}),l&&jsxRuntime.jsx(ki,{count:l.count,label:l.label,isLoading:l.isLoading}),l&&c&&jsxRuntime.jsx("div",{className:"h-4 w-px bg-border-default"}),c&&jsxRuntime.jsx(Ti,{value:c.value,options:c.options,onChange:c.onChange,showLabel:c.showLabel,direction:c.direction,onDirectionChange:c.onDirectionChange}),u?jsxRuntime.jsx(Q,{variant:"secondary",size:"sm",icon:"Columns",onClick:u,children:"Columns"}):m,S&&o&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[r.slice(0,s).map(R=>jsxRuntime.jsxs($r,{variant:"primary",size:"sm",onRemove:()=>o(R.id),isRemovable:true,children:[R.label,": ",R.value]},R.id)),r.length>s&&a&&jsxRuntime.jsxs(Q,{variant:"ghost",size:"sm",onClick:a,className:"text-text-secondary hover:text-text-primary whitespace-nowrap",children:["+",r.length-s," more"]}),n&&jsxRuntime.jsx(Q,{variant:"ghost",size:"sm",onClick:n,className:"text-text-secondary hover:text-text-primary whitespace-nowrap",children:"Clear all"})]})]}),jsxRuntime.jsx("div",{className:"flex items-center gap-3 flex-shrink-0",children:p||jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[f&&f.items.length>0&&jsxRuntime.jsx(jsxRuntime.Fragment,{children:f.items.map(R=>jsxRuntime.jsx(Q,{variant:R.variant||"secondary",size:"sm",icon:R.icon,onPress:R.onClick,isDisabled:R.disabled,children:R.label},R.id))}),e&&jsxRuntime.jsx("div",{className:"w-64",children:jsxRuntime.jsx(Fn,{value:e.value,onChange:e.onChange,onClear:e.onClear,placeholder:e.placeholder,isLoading:e.isLoading})}),a&&jsxRuntime.jsx(Q,{variant:"secondary",size:"sm",icon:"Sliders",badgeNumber:r.length>0?r.length:void 0,onClick:a,children:"Filters"}),i&&jsxRuntime.jsx(Q,{variant:"secondary",size:"sm",icon:"Upload",onClick:i.onClick,isDisabled:i.isDisabled,children:i.label})]})})]}),jsxRuntime.jsxs("div",{className:"@[640px]:hidden",children:[jsxRuntime.jsx("div",{className:"flex flex-col gap-3 mb-3",children:jsxRuntime.jsx("div",{className:"flex items-center gap-3",children:p?jsxRuntime.jsx("div",{className:"flex-1",children:p}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[f&&f.items.length>0&&jsxRuntime.jsx(da,{items:f.items.map(R=>({id:R.id,name:R.label,iconName:R.icon,variant:R.variant==="destructive"?"destructive":"primary",disabled:R.disabled,onAction:R.onClick})),align:"left",size:"sm",children:jsxRuntime.jsx(Q,{variant:"secondary",size:"sm",icon:"DotsThreeVertical","aria-label":f.menuLabel||"Actions"})}),e&&jsxRuntime.jsx("div",{className:"flex-1",children:jsxRuntime.jsx(Fn,{value:e.value,onChange:e.onChange,onClear:e.onClear,placeholder:e.placeholder,isLoading:e.isLoading})}),a&&jsxRuntime.jsx(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)`:""}`}),i&&jsxRuntime.jsx(Q,{variant:"secondary",size:"sm",icon:"Upload",onClick:i.onClick,isDisabled:i.isDisabled,children:i.label})]})})}),jsxRuntime.jsxs("div",{className:"flex items-center justify-between gap-3",children:[jsxRuntime.jsxs("div",{className:"flex items-center gap-3",children:[d,l&&jsxRuntime.jsx(ki,{count:l.count,label:l.label,isLoading:l.isLoading})]}),jsxRuntime.jsx("div",{className:"flex items-center gap-2",children:c&&jsxRuntime.jsx(Ti,{value:c.value,options:c.options,onChange:c.onChange,showLabel:false,direction:c.direction,onDirectionChange:c.onDirectionChange,compact:g!=="desktop"})})]})]})]})}function Jx({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,d=e.slice(0,n),u=Math.max(0,e.length-n),m=u>0,p=a==="button"&&!!o,f=a==="chips"&&i&&!!o;if(!l&&!p&&!f)return null;let g=p&&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:[f&&jsxRuntime.jsx(Q,{variant:"secondary",size:s,icon:"Sliders",onClick:o,className:"whitespace-nowrap",children:"Filters"}),l&&d.map(h=>jsxRuntime.jsxs($r,{variant:"secondary",size:s,onRemove:()=>t(h.id),isRemovable:true,children:[h.label,": ",h.value]},h.id)),l&&m&&o&&jsxRuntime.jsxs(Q,{variant:"ghost",size:s,onClick:o,className:"text-text-secondary hover:text-text-primary whitespace-nowrap",children:["+",u," more"]}),l&&r&&jsxRuntime.jsx(Q,{variant:"ghost",size:s,onClick:r,className:"text-text-secondary hover:text-text-primary whitespace-nowrap",children:"Clear all"})]}),x=a==="button"?g:b;return jsxRuntime.jsx("div",{className:`flex flex-wrap items-center gap-2 ${c}`,children:x})}function qx({label:e,description:t,errorMessage:r,size:o="md",tooltip:n,isRequired:a,isDisabled:i,isInvalid:s,showCalendar:c=true,reserveErrorSpace:l=true,validationResult:d,className:u,...m}){let[p,f]=Be.useState(false),g=b=>{m.onChange&&b&&m.onChange(b),f(false);};return jsxRuntime.jsxs(reactAriaComponents.DateField,{...m,isDisabled:i,isRequired:a,isInvalid:s,className:Se(u,"flex flex-col gap-1"),children:[e&&jsxRuntime.jsx(Fe,{size:o,tooltip:n,isRequired:a,children:e}),jsxRuntime.jsx(bt,{children:jsxRuntime.jsxs("div",{className:"relative w-full",children:[jsxRuntime.jsx(Pi,{size:o,isDisabled:i,isInvalid:s,hasCalendar:c}),c&&!i&&jsxRuntime.jsxs(reactAriaComponents.DialogTrigger,{isOpen:p,onOpenChange:f,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-secondary hover:text-text-primary transition-colors","aria-label":"Open calendar",children:jsxRuntime.jsx(H,{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(fa,{value:m.value,onChange:g,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(ue,{size:o,children:r}):typeof r=="function"&&d?jsxRuntime.jsx(ue,{size:o,children:r(d)}):t?jsxRuntime.jsx(we,{size:o,children:t}):null}):jsxRuntime.jsx(jsxRuntime.Fragment,{children:typeof r=="string"?jsxRuntime.jsx(ue,{size:o,className:"mt-1",children:r}):typeof r=="function"&&d?jsxRuntime.jsx(ue,{size:o,className:"mt-1",children:r(d)}):t?jsxRuntime.jsx(we,{size:o,className:"mt-1",children:t}):null})]})}function NT({isPlaceholder:e,isDisabled:t,size:r="md"}){return tailwindMerge.twMerge("inline-block box-content px-0.5 rounded outline-none tabular-nums text-center transition-colors",{sm:"text-base md:text-xs",md:"text-base md:text-sm",lg:"text-base",xl:"text-lg"}[r],e?"text-text-disabled italic":"text-text-primary",t?"text-text-disabled cursor-not-allowed":"cursor-text",!t&&"hover:bg-background-hover","data-[focused]:bg-background-selected data-[focused]:text-text-primary")}function Pi({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:NT({isPlaceholder:i.isPlaceholder,isDisabled:!i.isEditable||t,size:e})})})}function ET({selectionState:e,isDisabled:t}){let r=`${je} w-full h-full flex items-center justify-center rounded-sm forced-color-adjust-none font-semibold`,o={none:"text-text-primary group-hover:bg-background-muted group-pressed:bg-background-muted",middle:["bg-background-selected group-hover:bg-background-muted forced-colors:group-hover:bg-[Highlight]","group-invalid:group-hover:bg-feedback-error-background forced-colors:group-invalid:group-hover:bg-[Mark]","group-pressed:bg-background-muted forced-colors:group-pressed:bg-[Highlight] forced-colors:text-[HighlightText]","group-invalid:group-pressed:bg-feedback-error-background forced-colors:group-invalid:group-pressed:bg-[Mark]"].join(" "),cap:"bg-action-default text-[color:var(--color-action-default-text)] group-invalid:bg-feedback-error-border forced-colors:bg-[Highlight] forced-colors:group-invalid:bg-[Mark] forced-colors:text-[HighlightText]"},n=t?"text-text-disabled forced-colors:text-text-disabled font-light":"";return [r,o[e],n].filter(Boolean).join(" ")}function ka({errorMessage:e,...t}){return jsxRuntime.jsxs(reactAriaComponents.RangeCalendar,{...t,children:[jsxRuntime.jsx(Qs,{}),jsxRuntime.jsxs(reactAriaComponents.CalendarGrid,{className:"w-full border-separate [border-spacing:0] [&_td]:p-0 [&_td]:!border-0",children:[jsxRuntime.jsx(_s,{}),jsxRuntime.jsx(reactAriaComponents.CalendarGridBody,{children:r=>jsxRuntime.jsx(reactAriaComponents.CalendarCell,{date:r,className:"selection-start:rounded-s-full selection-end:rounded-e-full [td:last-child_&]:rounded-e-end group h-9 w-9 cursor-default text-sm border-0 outside-month:text-text-disabled invalid:selected:bg-feedback-error-background forced-colors:selected:bg-[Highlight] forced-colors:selected:text-[HighlightText] forced-colors:invalid:selected:bg-[Mark] [td:first-child_&]:rounded-s-full [&]:border-0",children:({formattedDate:o,isSelected:n,isSelectionStart:a,isSelectionEnd:i,isFocusVisible:s,isDisabled:c})=>jsxRuntime.jsx("span",{className:ET({selectionState:n&&(a||i)?"cap":n?"middle":"none",isDisabled:c}),children:o})})})]}),e&&jsxRuntime.jsx(reactAriaComponents.Text,{slot:"errorMessage",className:"text-sm text-feedback-error-text",children:e})]})}function El({label:e,description:t,errorMessage:r,...o}){return jsxRuntime.jsxs(reactAriaComponents.DateRangePicker,{...o,className:Se(o.className,"group flex flex-col gap-1"),children:[e&&jsxRuntime.jsx(Fe,{children:e}),jsxRuntime.jsxs(Jg,{className:"w-auto min-w-[208px]",children:[jsxRuntime.jsx(Pi,{slot:"start",className:"px-2 py-1.5 text-sm"}),jsxRuntime.jsx("span",{"aria-hidden":"true",className:"text-text-primary group-disabled:text-text-disabled forced-colors:text-[ButtonText] group-disabled:forced-colors:text-[GrayText]",children:"\u2013"}),jsxRuntime.jsx(Pi,{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(we,{children:t}),typeof r=="string"?jsxRuntime.jsx(ue,{children:r}):null,jsxRuntime.jsx(at,{children:jsxRuntime.jsx(ka,{})})]})}var OT=e=>{let t=At({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 Ri({label:e,description:t,errorMessage:r,size:o="md",tooltip:n,isRequired:a,transparent:i,validationResult:s,reserveErrorSpace:c=true,descriptionPlacement:l="below",...d}){let u=Be.useId(),{isFocused:m,handleFocus:p,handleBlur:f}=Tr();return jsxRuntime.jsx(reactAriaComponents.NumberField,{...d,id:u,isRequired:a,className:Se(d.className,"group flex flex-col gap-1"),step:d.step??1,onChange:g=>{typeof g=="number"&&(d.maxValue!=null&&g>d.maxValue?d.onChange?.(d.maxValue):d.minValue!=null&&g<d.minValue?d.onChange?.(d.minValue):d.onChange?.(g));},isInvalid:!!r||typeof d.value=="number"&&(d.maxValue!=null&&d.value>d.maxValue||d.minValue!=null&&d.value<d.minValue),children:({isDisabled:g,isInvalid:b})=>jsxRuntime.jsxs("div",{className:"flex flex-col gap-1",children:[e&&jsxRuntime.jsx(Fe,{size:o,tooltip:n,description:l==="tooltip"||l==="inline"?t:void 0,descriptionPlacement:l,isRequired:a,htmlFor:u,children:e}),jsxRuntime.jsx("div",{className:"relative",children:jsxRuntime.jsxs(reactAriaComponents.Group,{className:"relative",children:[jsxRuntime.jsx(reactAriaComponents.Input,{onFocus:h=>p(h,d.onFocus),onBlur:h=>f(h,d.onBlur),className:OT({isInvalid:b||!!r,isDisabled:g,isFocused:m,transparent:i,size:o,className:typeof d.className=="string"?d.className:void 0})}),jsxRuntime.jsxs("div",{className:"absolute inset-y-[2px] right-[2px] flex flex-col divide-y divide-border-default border-l border-border-default overflow-hidden rounded-r-[calc(var(--control-border-radius)-2px)]",children:[jsxRuntime.jsx(reactAriaComponents.Button,{slot:"increment",isDisabled: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(H,{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(H,{name:"CaretDown",size:14})})]})]})}),c?jsxRuntime.jsx("div",{className:"mt-1 min-h-[20px]",children:r?jsxRuntime.jsx(ue,{size:o,children:typeof r=="function"?r(s):r}):t&&l==="below"?jsxRuntime.jsx(we,{size:o,children:t}):null}):jsxRuntime.jsx(jsxRuntime.Fragment,{children:r?jsxRuntime.jsx(ue,{size:o,className:"mt-1",children:typeof r=="function"?r(s):r}):t&&l==="below"?jsxRuntime.jsx(we,{size:o,className:"mt-1",children:t}):null})]})})}var yp={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 GT({isSelected:e,isDisabled:t,size:r="md"}){let o="flex px-px items-center shrink-0 cursor-default rounded-full transition duration-200 ease-in-out shadow-inner border border-transparent",n=yp[r].track,a=je,i="focus-visible:outline-action-primary",s="";return e?s="bg-action-primary forced-colors:!bg-[Highlight] group-pressed:bg-action-primary-hover":s="bg-border-input group-pressed:bg-border-focus",[o,n,a,i,s,t?"bg-background-muted forced-colors:group-selected:!bg-[GrayText] forced-colors:border-[GrayText]":""].filter(Boolean).join(" ")}function UT({isSelected:e,isDisabled:t,size:r="md"}){let o="transform rounded-full bg-background-surface outline-none shadow transition duration-200 ease-in-out",n=yp[r].handle;return [o,n,e?"translate-x-[100%]":"translate-x-0",t?"forced-colors:outline-[GrayText]":""].filter(Boolean).join(" ")}function Ll({children:e,variant:t="primary",size:r="md",...o}){return jsxRuntime.jsx(reactAriaComponents.Switch,{...o,className:Se(o.className,`group flex items-center gap-2 ${yp[r].text} text-text-primary transition disabled:text-text-disabled forced-colors:disabled:text-[GrayText]`),children:n=>jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("div",{className:GT({...n,size:r}),children:jsxRuntime.jsx("span",{className:UT({...n,size:r})})}),e]})})}function Qx(e){return new Intl.NumberFormat("en-US").format(e)}function _x({isOpen:e,onClose:t,facetConfigs:r,facetCounts:o={},currentFilters:n,onApply:a,onClear:i,title:s="Filters",resultCount:c}){let[l,d]=Be.useState(n),[u,m]=Be.useState({}),[p,f]=Be.useState({}),[g,b]=Be.useState(null),{isMobile:x}=Yt(),h=Be.useMemo(()=>r.some(v=>v.group),[r]),{groups:C,ungroupedFacets:y,facetsByGroup:S}=Be.useMemo(()=>{let v=new Set,W=[],Y={};for(let U of r)U.group?(v.has(U.group)||(v.add(U.group),Y[U.group]=[]),Y[U.group].push(U)):W.push(U);return {groups:Array.from(v),ungroupedFacets:W,facetsByGroup:Y}},[r]);Be.useEffect(()=>{e&&(d(n),m({}),f({}),b(!x&&C.length>0?C[0]:null));},[e,n,C,x]);let N=Be.useMemo(()=>!l||Rl(l)?0:In(l).length,[l]),T=()=>{a(l),t();},E=()=>{let v=Ni();d(v),i?i():a(v),t();},R=v=>{if(!l)return [];if(!In(l).includes(v))return [];let Y=[];function U(ee){if(ee)for(let pe of ee.conditions)"conditions"in pe?U(pe):pe.field===v&&pe.operator==="in"&&Array.isArray(pe.value)&&Y.push(...pe.value.map(String));}return U(l),Y},M=(v,W,Y)=>{let U=An(l,v);W!==void 0&&(U=jo(U,{field:v,operator:"gte",value:W})),Y!==void 0&&(U=jo(U,{field:v,operator:"lte",value:Y})),d(U);},A=v=>{if(!l)return;let W;function Y(U){if(U)for(let ee of U.conditions)"conditions"in ee?Y(ee):ee.field===v&&ee.operator==="eq"&&typeof ee.value=="boolean"&&(W=ee.value);}return Y(l),W},L=(v,W)=>{let Y=An(l,v);W!==void 0&&(Y=jo(Y,{field:v,operator:"eq",value:W})),d(Y);},w=(v,W,Y)=>{let U=An(l,v);W&&(U=jo(U,{field:v,operator:"gte",value:W.toString()})),Y&&(U=jo(U,{field:v,operator:"lte",value:Y.toString()})),d(U);},k=v=>{let W=S[v]||[],Y=l?In(l):[];return W.filter(U=>Y.includes(U.field)).length},O="pr-9 bg-background-muted/50",G="border-t border-border-muted",B="text-sm font-medium text-text-link-default",z=v=>jsxRuntime.jsx("span",{className:B,children:v}),X=v=>{let W=o[v.field]||{},Y=u[v.field]||"",U=[];v.values?U=v.values.map(J=>({value:String(J.value),label:J.label,count:W[String(J.value)]})):U=Object.entries(W).map(([J,re])=>({value:J,label:J,count:re}));let ee=U.length;if(Y){let J=Y.toLowerCase();U=U.filter(re=>re.label.toLowerCase().includes(J));}U.sort((J,re)=>J.count!==void 0&&re.count!==void 0&&re.count!==J.count?re.count-J.count:J.label.localeCompare(re.label));let pe=v.type||"string";if(pe==="string"||!v.type){let J=R(v.field),re=v.searchThreshold??10,xe=v.maxVisibleOptions??50,te=p[v.field]??false,ne=te||U.length<=xe?U:U.slice(0,xe),me=U.length>xe&&!te;return jsxRuntime.jsxs(Go,{id:v.field,children:[jsxRuntime.jsx(Uo,{title:v.label,description:v.description,className:O,endContent:J.length>0?z(`${J.length} selected`):void 0}),jsxRuntime.jsx(Yo,{className:G,children:jsxRuntime.jsxs("div",{className:"space-y-4 pt-4 pb-4",children:[ee>re&&jsxRuntime.jsx(Fn,{value:Y,onChange:ve=>m(Je=>({...Je,[v.field]:ve})),onClear:()=>m(ve=>({...ve,[v.field]:""})),placeholder:`Search ${v.label.toLowerCase()}...`,size:"sm",className:"w-full !max-w-none pr-4"}),jsxRuntime.jsx(Hu,{value:J,onChange:ve=>{let Je=An(l,v.field);ve.length>0&&(Je=jo(Je,{field:v.field,operator:"in",value:ve})),d(Je);},children:jsxRuntime.jsx("div",{className:"space-y-1.5",children:ne.map(ve=>jsxRuntime.jsx("div",{className:"rounded-md py-2 pr-4 transition-colors hover:bg-background-hover",children:jsxRuntime.jsx(Pn,{value:ve.value,children:jsxRuntime.jsxs("div",{className:"flex items-center justify-between gap-3 flex-1",children:[v.renderLabel?v.renderLabel(ve.value,ve.label):jsxRuntime.jsx("span",{className:"text-sm font-medium text-text-primary",children:ve.label}),ve.count!==void 0&&jsxRuntime.jsx("span",{className:"text-xs font-medium text-text-secondary tabular-nums",children:Qx(ve.count)})]})})},ve.value))})}),me&&jsxRuntime.jsx("div",{className:"pt-2 border-t border-border-muted",children:jsxRuntime.jsxs(Q,{variant:"ghost",size:"sm",onPress:()=>f(ve=>({...ve,[v.field]:true})),className:"w-full",children:["Show all ",U.length," options"]})}),te&&U.length>xe&&jsxRuntime.jsx("div",{className:"pt-2 border-t border-border-muted",children:jsxRuntime.jsx(Q,{variant:"ghost",size:"sm",onPress:()=>f(ve=>({...ve,[v.field]:false})),className:"w-full",children:"Show less"})})]})})]},v.field)}if(pe==="number"){let J,re,xe=ne=>{if(ne)for(let me of ne.conditions)"conditions"in me?xe(me):me.field===v.field&&(me.operator==="gte"&&typeof me.value=="number"&&(J=me.value),me.operator==="lte"&&typeof me.value=="number"&&(re=me.value));};xe(l);let te=J!==void 0||re!==void 0;return jsxRuntime.jsxs(Go,{id:v.field,children:[jsxRuntime.jsx(Uo,{title:v.label,description:v.description,className:O,endContent:te?z(J!==void 0&&re!==void 0?`${J} - ${re}`:J!==void 0?`\u2265 ${J}`:`\u2264 ${re}`):void 0}),jsxRuntime.jsx(Yo,{className:G,children:jsxRuntime.jsxs("div",{className:"grid grid-cols-2 gap-4 pt-4 pb-4",children:[jsxRuntime.jsx(Ri,{label:"Min",value:J,onChange:ne=>M(v.field,ne,re)},`${v.field}-min`),jsxRuntime.jsx(Ri,{label:"Max",value:re,onChange:ne=>M(v.field,J,ne)},`${v.field}-max`)]})})]},v.field)}if(pe==="boolean"){let J=A(v.field);return jsxRuntime.jsxs(Go,{id:v.field,children:[jsxRuntime.jsx(Uo,{title:v.label,description:v.description,className:O,endContent:J!==void 0?z(J?"Yes":"No"):void 0}),jsxRuntime.jsx(Yo,{className:G,children:jsxRuntime.jsxs("div",{className:"flex items-center justify-between pt-4 pb-4",children:[jsxRuntime.jsx("span",{className:"text-sm font-medium text-text-primary",children:J!==void 0?J?"Enabled":"Disabled":"No filter applied"}),jsxRuntime.jsx(Ll,{size:"lg",isSelected:J??false,onChange:re=>L(v.field,re?true:void 0),children:J?"Yes":"No"})]})})]},v.field)}if(pe==="date"){let J,re,xe=Je=>{if(Je)for(let Pt of Je.conditions)"conditions"in Pt?xe(Pt):Pt.field===v.field&&(Pt.operator==="gte"&&(J=String(Pt.value)),Pt.operator==="lte"&&(re=String(Pt.value)));};xe(l);let te=J!==void 0||re!==void 0,ne=Je=>{if(Je)try{return /^\d{4}-\d{2}-\d{2}$/.test(Je)?si(Je):void 0}catch{return}},me=ne(J),ve=ne(re);return jsxRuntime.jsxs(Go,{id:v.field,children:[jsxRuntime.jsx(Uo,{title:v.label,description:v.description,className:O,endContent:te?z("Date range selected"):void 0}),jsxRuntime.jsx(Yo,{className:G,children:jsxRuntime.jsx("div",{className:"pt-4 pb-4",children:jsxRuntime.jsx(El,{label:"Date Range",value:me&&ve?{start:me,end:ve}:void 0,onChange:Je=>{Je?w(v.field,Je.start,Je.end):w(v.field,void 0,void 0);}})})})]},v.field)}return null},V=()=>jsxRuntime.jsxs("div",{className:"flex flex-col",children:[y.map(v=>{let Y=(l?In(l):[]).includes(v.field);return jsxRuntime.jsxs("button",{type:"button",onClick:()=>b(`__ungrouped__${v.field}`),className:"flex items-center justify-between px-6 py-3 text-left hover:bg-background-hover border-b border-border-muted transition-colors",children:[jsxRuntime.jsx("span",{className:"text-sm font-medium text-text-primary",children:v.label}),jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[Y&&jsxRuntime.jsx("span",{className:B,children:"1 active"}),jsxRuntime.jsx(H,{name:"CaretRight",size:"sm",className:"text-text-secondary"})]})]},v.field)}),C.map(v=>{let W=k(v);return jsxRuntime.jsxs("button",{type:"button",onClick:()=>b(v),className:"flex items-center justify-between px-6 py-3 text-left hover:bg-background-hover border-b border-border-muted transition-colors",children:[jsxRuntime.jsx("span",{className:"text-sm font-medium text-text-primary",children:v}),jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[W>0&&jsxRuntime.jsxs("span",{className:B,children:[W," active"]}),jsxRuntime.jsx(H,{name:"CaretRight",size:"sm",className:"text-text-secondary"})]})]},v)})]}),K=v=>{if(v.startsWith("__ungrouped__")){let Y=v.replace("__ungrouped__",""),U=y.find(ee=>ee.field===Y);return U?jsxRuntime.jsx(ga,{variant:"contained",density:"comfortable",showDividers:true,defaultExpandedKeys:[U.field],children:X(U)}):null}let W=S[v]||[];return W.length===0?null:jsxRuntime.jsx(ga,{variant:"contained",density:"comfortable",showDividers:true,defaultExpandedKeys:[W[0].field],children:W.map(Y=>X(Y))})},P=()=>{if(g){let v=g.startsWith("__ungrouped__")&&y.find(W=>W.field===g.replace("__ungrouped__",""))?.label||g;return jsxRuntime.jsxs("div",{className:"flex flex-col h-full",children:[jsxRuntime.jsxs("button",{type:"button",onClick:()=>b(null),className:"flex items-center gap-2 px-4 py-3 border-b border-border-muted hover:bg-background-hover transition-colors",children:[jsxRuntime.jsx(H,{name:"CaretLeft",size:"sm",className:"text-text-secondary"}),jsxRuntime.jsx("span",{className:"text-sm font-medium text-text-primary",children:v})]}),jsxRuntime.jsx("div",{className:"flex-1 overflow-y-auto",children:K(g)})]})}return V()},D=()=>jsxRuntime.jsxs("div",{className:"flex h-full",children:[jsxRuntime.jsxs("div",{className:"w-48 flex-shrink-0 border-r border-border-muted overflow-y-auto bg-background-muted/30",children:[y.map(v=>{let Y=(l?In(l):[]).includes(v.field),U=g===`__ungrouped__${v.field}`;return jsxRuntime.jsxs("button",{type:"button",onClick:()=>b(`__ungrouped__${v.field}`),className:`flex items-center justify-between w-full px-4 py-3 text-left border-b border-border-muted transition-colors ${U?"bg-background-selected":"hover:bg-background-hover"}`,children:[jsxRuntime.jsx("span",{className:`text-sm truncate ${U?"font-semibold text-text-primary":"font-medium text-text-primary"}`,children:v.label}),Y&&jsxRuntime.jsx("span",{className:"w-2 h-2 rounded-full bg-action-primary flex-shrink-0 ml-2"})]},v.field)}),C.map(v=>{let W=k(v),Y=g===v;return jsxRuntime.jsxs("button",{type:"button",onClick:()=>b(v),className:`flex items-center justify-between w-full px-4 py-3 text-left border-b border-border-muted transition-colors ${Y?"bg-background-selected":"hover:bg-background-hover"}`,children:[jsxRuntime.jsx("span",{className:`text-sm truncate ${Y?"font-semibold text-text-primary":"font-medium text-text-primary"}`,children:v}),W>0&&jsxRuntime.jsx("span",{className:"w-2 h-2 rounded-full bg-action-primary flex-shrink-0 ml-2"})]},v)})]}),jsxRuntime.jsx("div",{className:"flex-1 overflow-y-auto",children:g?K(g):jsxRuntime.jsx("div",{className:"flex items-center justify-center h-full text-text-secondary text-sm",children:"Select a category to view filters"})})]}),F=()=>jsxRuntime.jsx(ga,{variant:"contained",density:"comfortable",showDividers:true,defaultExpandedKeys:[r[0].field],children:r.map(v=>X(v))});return jsxRuntime.jsx(Sr,{isOpen:e,onClose:t,title:h&&x&&g?g.startsWith("__ungrouped__")?y.find(v=>v.field===g.replace("__ungrouped__",""))?.label||s:g:N>0?`${s} (${N} active)`:s,hideCloseIcon:false,primaryAction:{label:"Apply filters",onPress:T,variant:"primary"},secondaryAction:{label:"Clear all",onPress:E},maxWidth:h?"800px":"700px",height:"600px",mobileHeight:"85vh",contentPadding:false,footerContent:c!==void 0?jsxRuntime.jsxs("div",{className:"text-sm text-text-secondary text-center",children:[jsxRuntime.jsx("span",{className:"font-semibold text-text-primary",children:Qx(c)})," ",c===1?"result":"results"," with current filters"]}):void 0,children:r.length===0?jsxRuntime.jsx("div",{className:"py-12 text-center",children:jsxRuntime.jsx("div",{className:"text-sm font-medium text-text-secondary",children:"No filters available"})}):h?x?P():D():F()})}function Cp(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 Dr(e="normal",t){return tailwindMerge.twMerge({strong:"font-semibold text-text-primary",high:"font-semibold text-text-primary",normal:"text-text-primary",low:"text-text-secondary"}[e],t&&"hover:text-action-primary cursor-pointer transition-colors")}function Pe(e="left",t){return tailwindMerge.twMerge("flex items-center gap-1 min-w-0 overflow-hidden",Cp(e),t)}function Fl(e,t="\u2014"){return e==null||e===""?t:String(e)}var qo={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 rr(e="normal"){return {strong:qo.lg,high:qo.lg,normal:qo.md,low:qo.sm}[e]}function ye(e,t){return typeof e=="function"?e(t):e}function eh(e="neutral",t="sm"){return tailwindMerge.twMerge("inline-flex items-center rounded-full font-medium",t==="sm"?"px-2 py-0.5 text-xs":"px-2.5 py-1 text-sm",{success:"bg-feedback-success-background text-feedback-success-text",error:"bg-feedback-error-background text-feedback-error-text",warning:"bg-feedback-warning-background text-feedback-warning-text",info:"bg-feedback-info-background text-feedback-info-text",neutral:"bg-background-muted text-text-secondary"}[e])}function th(e){return e?"success":"neutral"}function Bl(e,t=false){return t?e>0?"text-feedback-success-text":e<0?"text-feedback-error-text":"text-text-primary":"text-text-primary"}function Sp(e="hover",t="secondary"){let r={primary:"text-action-primary hover:text-action-primary-hover visited:text-action-primary",secondary:"text-text-link-default hover:text-text-link-hover visited:text-text-link-default",default:"text-text-link-default hover:text-text-link-hover visited:text-text-link-default",brand:"text-action-primary hover:text-action-primary-hover visited:text-action-primary",muted:"text-text-secondary hover:text-text-secondary visited:text-text-secondary",unstyled:""},o={visible:"underline underline-offset-4 decoration-1 cursor-pointer",hover:"hover:underline hover:underline-offset-4 hover:decoration-1 cursor-pointer transition-colors",none:"cursor-pointer"},n=r[t],a=o[e]||"";return `${n} ${a}`.trim()}function no(e,t,r,o="hover",n="secondary",a,i){if(!t)return e;let s=typeof t=="function"&&r?t(r):t,c=Sp(o,n);return jsxRuntime.jsx("a",{href:s,className:tailwindMerge.twMerge(c,a==="strong"||a==="high"?"font-semibold":"",i),onClick:d=>{d.metaKey||d.ctrlKey;},children:e})}function rh({row:e,context:t,actions:r,align:o="right",size:n="sm"}){let{isLoading:a}=t;if(a)return jsxRuntime.jsx(j,{className:qo.sm});let s=(typeof r=="function"?r(e):r).filter(l=>!ye(l.hidden,e));if(s.length===0)return null;let c=Pe(o);return jsxRuntime.jsx("div",{className:c,children:s.map(l=>{let d=ye(l.disabled,e);return l.variant==="icon"||!l.label?jsxRuntime.jsx(Q,{variant:"icon",size:n,onPress:()=>{l.onClick(e);},isDisabled:d,"aria-label":l.label||l.id,children:jsxRuntime.jsx(H,{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:d,children:[l.icon&&jsxRuntime.jsx(H,{name:l.icon,size:n==="sm"?14:16}),l.label]},l.id)})})}function nh({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:d="left",emptyText:u="\u2014",className:m,maxVisible:p=2,maxLabelLength:f}){let{isLoading:g}=r,b=(N,T)=>{if(!f||N.length<=f)return jsxRuntime.jsx(jsxRuntime.Fragment,{children:N});let E=N.slice(0,f-1)+"\u2026";return jsxRuntime.jsx(Xt,{content:T,children:jsxRuntime.jsx("span",{children:E})})};if(g)return jsxRuntime.jsx(j,{className:rr("normal")});if(e==null||e==="")return jsxRuntime.jsx("div",{className:Pe(d,"text-text-secondary"),children:u});if(Array.isArray(e)&&e.length===0)return jsxRuntime.jsx("div",{className:Pe(d,"text-text-secondary"),children:u});let x=Pe(d,m);if(Array.isArray(e)){let N=e.slice(0,p),T=e.slice(p),E=T.length>0;return jsxRuntime.jsx("div",{className:x,children:jsxRuntime.jsxs("div",{className:"flex items-center gap-1",children:[N.map((R,M)=>{let A=typeof o=="function"?o(R,t):o,L=typeof n=="function"?n(R,t):n!==void 0?n:String(R),w=typeof s=="function"?s(R,t):s,k=typeof l=="function"?l(R,t):l;return jsxRuntime.jsx("span",{className:"flex-shrink-0 whitespace-nowrap",children:jsxRuntime.jsx(ot,{variant:A,size:a,shape:i,dot:w,dotPosition:c,dotPulse:k,children:b(L,L)})},M)}),E&&jsxRuntime.jsx(Xt,{content:T.join(", "),children:jsxRuntime.jsx("span",{className:"flex-shrink-0 whitespace-nowrap",children:jsxRuntime.jsxs(ot,{variant:"neutral",size:a,shape:i,children:["+",T.length]})})})]})})}let h=typeof o=="function"?o(e,t):o,C=typeof n=="function"?n(e,t):n!==void 0?n:String(e),y=typeof s=="function"?s(e,t):s,S=typeof l=="function"?l(e,t):l;return jsxRuntime.jsx("div",{className:x,children:jsxRuntime.jsx(ot,{variant:h,size:a,shape:i,dot:y,dotPosition:c,dotPulse:S,children:b(C,C)})})}function ah({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:d}){let{isLoading:u}=t;if(u)return jsxRuntime.jsx(j,{className:rr(l)});let m=!!e;if(!m&&!s)return jsxRuntime.jsx("div",{className:Pe(c,d)});let p=Pe(c,d);switch(r){case "icon":return jsxRuntime.jsx("div",{className:p,children:jsxRuntime.jsx(H,{name:m?a:i,size:16,className:m?"text-feedback-success-text":"text-text-disabled"})});case "text":return jsxRuntime.jsx("div",{className:p,children:jsxRuntime.jsx("span",{className:Dr(l),children:m?o:n})});case "badge":return jsxRuntime.jsx("div",{className:p,children:jsxRuntime.jsx(ot,{variant:m?"success":"neutral",size:"sm",children:m?o:n})});default:return null}}function sh({row:e,context:t,firstName:r,lastName:o,email:n,avatarUrl:a,layout:i="stacked",size:s="sm",href:c,LinkComponent:l,linkVariant:d="secondary",showEmail:u=false,badge:m,emphasis:p="normal",align:f="left",className:g,piiEntity:b}){let{isLoading:x}=t,h=ye(r,e),C=ye(o,e),y=ye(n,e),S=ye(a,e),N=ye(c,e),T=typeof m=="function"?m(e):m,E=ye(b,e),R=Pe(f,g);return jsxRuntime.jsx("div",{className:R,children:jsxRuntime.jsx(rl,{firstName:h,lastName:C,email:y,avatarUrl:S,layout:i,size:s,href:N,LinkComponent:l,linkVariant:d,showEmail:u,badge:T,emphasis:p,isLoading:x,piiEntity:E})})}function lh({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 ch({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:d}){let{isLoading:u}=r;if(u)return jsxRuntime.jsx(j,{className:rr(s)});if(!e)return jsxRuntime.jsx("div",{className:Pe(i,"text-text-secondary"),children:a});let m=e instanceof Date?e:new Date(e);if(isNaN(m.getTime()))return jsxRuntime.jsx("div",{className:Pe(i,"text-text-secondary"),children:a});let p;switch(o){case "date":p=m.toLocaleDateString("en-US",{year:"numeric",month:"short",day:"numeric"});break;case "time":p=m.toLocaleTimeString("en-US",{hour:"2-digit",minute:"2-digit"});break;case "datetime":p=m.toLocaleString("en-US",{year:"numeric",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"});break;case "relative":p=_T(m);break;case "custom":p=n?m.toLocaleString("en-US",n):m.toISOString();break;default:p=m.toLocaleDateString();}let f=Pe(i,tailwindMerge.twMerge(Dr(s),d)),g=ye(c,t);return g?jsxRuntime.jsx("div",{className:f,children:no(p,g,t,l)}):jsxRuntime.jsx("div",{className:f,children:p})}function _T(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 Vl({manufacturer:e,model:t,deviceType:r,deviceTypeIconName:o,logoUrl:n,layout:a="stacked",size:i="md",href:s,LinkComponent:c,linkVariant:l="unstyled",showDeviceTypeIcon:d=true,showLogo:u=true,emphasis:m="normal",isLoading:p=false,className:f,piiEntity:g}){let[b,x]=Be.useState(false),h=o||(r?tP(r):"DeviceMobile"),y={xs:{iconSize:28,logoSize:"w-7 h-7",gap:"gap-1.5",textSize:"text-xs",secondaryTextSize:"text-xs",iconInTextSize:12,skeletonIcon:28,skeletonText:80,skeletonSecondary:60},sm:{iconSize:32,logoSize:"w-8 h-8",gap:"gap-2",textSize:"text-sm",secondaryTextSize:"text-xs",iconInTextSize:14,skeletonIcon:32,skeletonText:96,skeletonSecondary:72},md:{iconSize:32,logoSize:"w-9 h-9",gap:"gap-3",textSize:"text-base",secondaryTextSize:"text-sm",iconInTextSize:16,skeletonIcon:36,skeletonText:128,skeletonSecondary:96},lg:{iconSize:40,logoSize:"w-10 h-10",gap:"gap-3",textSize:"text-lg",secondaryTextSize:"text-base",iconInTextSize:18,skeletonIcon:40,skeletonText:160,skeletonSecondary:120}}[i],S=n&&!b&&u,T={strong:"font-semibold text-text-primary",high:"font-semibold text-text-primary",normal:"text-text-primary",low:"text-text-secondary"}[m],E=({children:R,className:M})=>s?c?jsxRuntime.jsx(c,{href:s,className:M,children:R}):jsxRuntime.jsx(et,{href:s,variant:l,className:tailwindMerge.twMerge("hover:underline",M),asButton:false,children:R}):jsxRuntime.jsx("span",{className:M,children:R});if(p)return a==="inline"?jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("flex items-center",y.gap,f),children:[jsxRuntime.jsx(j,{width:y.skeletonIcon,height:y.skeletonIcon,className:"flex-shrink-0 rounded"}),jsxRuntime.jsx(j,{width:y.skeletonText,height:y.skeletonIcon*.6})]}):jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("flex items-center",y.gap,f),children:[jsxRuntime.jsx(j,{width:y.skeletonIcon,height:y.skeletonIcon,className:"flex-shrink-0"}),jsxRuntime.jsxs("div",{className:"flex flex-col gap-1",children:[jsxRuntime.jsx(j,{width:y.skeletonText,height:16}),jsxRuntime.jsx(j,{width:y.skeletonSecondary,height:12})]})]});if(a==="inline"){let R=`${e} ${t}`;return jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("flex items-center",y.gap,f),children:[jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("flex-shrink-0 flex items-center justify-center rounded border border-border-muted",y.logoSize),children:S?jsxRuntime.jsx("img",{src:n,alt:`${e} logo`,className:"w-full h-full object-contain",onError:()=>x(true)}):jsxRuntime.jsx(H,{name:h,size:y.iconSize*.6,className:"text-text-secondary"})}),jsxRuntime.jsx(E,{className:tailwindMerge.twMerge("truncate leading-normal hover:text-text-primary",T,y.textSize,s&&"hover:underline hover:decoration-1 hover:underline-offset-4"),children:jsxRuntime.jsx("span",{"data-pii-type":g?"device-name":void 0,"data-pii-entity":g,children:R})})]})}return jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("flex items-center justify-start",y.gap,f),children:[u&&jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("flex-shrink-0 flex items-center justify-center rounded border border-border-muted",y.logoSize),children:S?jsxRuntime.jsx("img",{src:n,alt:`${e} logo`,className:"w-full h-full object-contain",onError:()=>x(true)}):jsxRuntime.jsx(H,{name:h,size:y.iconSize*.6,className:"text-text-secondary"})}),jsxRuntime.jsxs("div",{className:"flex flex-col items-start min-w-0",children:[jsxRuntime.jsx(E,{className:tailwindMerge.twMerge("truncate leading-normal hover:text-text-primary",T,y.textSize,s&&"hover:underline hover:decoration-1 hover:underline-offset-4"),children:jsxRuntime.jsx("span",{"data-pii-type":g?"device-name":void 0,"data-pii-entity":g,children:e})}),jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("flex items-center gap-1.5 text-text-secondary leading-normal",y.secondaryTextSize),children:[d&&jsxRuntime.jsx(H,{name:h,size:y.iconInTextSize,className:"flex-shrink-0"}),jsxRuntime.jsx("span",{className:"truncate","data-pii-type":g?"device-name":void 0,"data-pii-entity":g,children:t})]})]})]})}function tP(e){switch(e){case "battery":return "BatteryHigh";case "charger":return "ChargingStation";case "inverter":return "Power";case "thermostat":return "ThermometerSimple";case "vehicle":return "CarSimple";case "water_heater":return "DropHalfBottom";case "meter":return "Gauge";default:return "DeviceMobile"}}function uh({row:e,context:t,manufacturer:r,model:o,deviceType:n,logoUrl:a,layout:i="stacked",size:s="sm",href:c,LinkComponent:l,linkVariant:d="secondary",showDeviceTypeIcon:u=true,showLogo:m=true,emphasis:p="normal",align:f="left",className:g,piiEntity:b}){let{isLoading:x}=t,h=ye(r,e),C=ye(o,e),y=ye(n,e),S=ye(a,e),N=ye(c,e),T=ye(b,e),E=Pe(f,g);return jsxRuntime.jsx("div",{className:E,children:jsxRuntime.jsx(Vl,{manufacturer:h,model:C,deviceType:y,logoUrl:S,layout:i,size:s,href:N,LinkComponent:l,linkVariant:d,showDeviceTypeIcon:u,showLogo:m,emphasis:p,isLoading:x,piiEntity:T})})}var BY={charging:"percentage",discharging:"percentage",on:"kW",idle:void 0,off:void 0,heat:"temperature",cool:"temperature",auto:"temperature",eco:"temperature",unknown:void 0,connected:void 0,disconnected:void 0},rP=["charging","discharging","heat","cool","on","connected"],oP={unknown:"Unknown",on:"On",off:"Off",idle:"Idle",charging:"Charging",discharging:"Discharging",heat:"Heating",eco:"Eco Mode",cool:"Cooling",auto:"Auto",connected:"Connected",disconnected:"Disconnected"};function wp(e){return rP.includes(e)}function Np(e){return oP[e]}function Vn({state:e,label:t,icon:r,isLoading:o,size:n="sm",shape:a="pill",dot:i,dotPulse:s,fixedWidth:c,className:l,...d}){if(o)return jsxRuntime.jsx(j,{className:"inline-flex h-6 w-20"});let u=t??Np(e),m=wp(e);return jsxRuntime.jsxs(ot,{variant:e,size:n,shape:a,dot:i??m,dotPulse:s??m,className:c?`w-28 justify-center ${l||""}`:l,...d,children:[r&&jsxRuntime.jsx(H,{name:r,size:n==="sm"?12:n==="md"?14:16}),u]})}var aP={importing:"Importing",exporting:"Exporting"};function mh(e){return aP[e]}function Ol({state:e,label:t,showIcon:r=false,isLoading:o,size:n="sm",shape:a="pill",fixedWidth:i,className:s,...c}){if(o)return jsxRuntime.jsx(j,{className:"inline-flex h-6 w-24"});let l=t??mh(e),d=e==="exporting"?"ArrowUp":"ArrowDown",u=n==="sm"?12:n==="md"?14:16;return r?jsxRuntime.jsx(ot,{variant:e,size:n,shape:a,className:`w-6 justify-center ${s||""}`,...c,children:jsxRuntime.jsx(H,{name:d,size:u})}):jsxRuntime.jsx(ot,{variant:e,size:n,shape:a,className:i?`w-28 justify-center ${s||""}`:s,...c,children:l})}function Hl({state:e,stateLabel:t,metric:r,metricFormatter:o,secondaryState:n,layout:a="horizontal",isLoading:i,size:s="sm",shape:c="pill",icon:l,fixedWidth:d,secondaryStateIconOnly:u=false,className:m}){if(i)return jsxRuntime.jsx(j,{className:tailwindMerge.twMerge("inline-flex h-6 w-32",m)});let p=r!=null&&o?un(r,o):null,f=a==="horizontal",g=o&&!p;return jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("inline-flex items-center",f?"gap-2":"flex-col gap-1",m),children:[(p||g)&&jsxRuntime.jsx("span",{className:tailwindMerge.twMerge("font-medium inline-block",p?"text-text-primary":"text-text-secondary",s==="sm"&&"text-xs min-w-12",s==="md"&&"text-sm min-w-14",s==="lg"&&"text-base min-w-16"),children:p||"\u2014"}),jsxRuntime.jsx(Vn,{state:e,label:t,icon:l,size:s,shape:c,fixedWidth:d}),n&&jsxRuntime.jsx(jsxRuntime.Fragment,{children:n==="importing"||n==="exporting"?jsxRuntime.jsx(Ol,{state:n,size:s,shape:c,fixedWidth:d,showIcon:u}):jsxRuntime.jsx(Vn,{state:n,size:s,shape:c,fixedWidth:d})})]})}function fh({value:e,row:t,context:r,metric:o,metricFormatter:n,secondaryState:a,size:i="sm",shape:s="pill",label:c,icon:l,fixedWidth:d=true,align:u="left",compact:m=false,className:p}){let{isLoading:f}=r;if(f){let y={pill:"rounded-full",rounded:"rounded-lg",square:"rounded-sm"}[s],S=o!=null||n!=null;return jsxRuntime.jsx("div",{className:"flex items-center gap-2",children:S?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(j,{className:"h-4 w-12"}),jsxRuntime.jsx(j,{className:`h-6 w-24 ${y}`}),jsxRuntime.jsx(j,{className:`h-6 w-20 ${y}`})]}):jsxRuntime.jsx(j,{className:`h-6 w-24 ${y}`})})}if(!e)return jsxRuntime.jsx("div",{className:Pe(u,p),children:jsxRuntime.jsx("span",{className:"text-text-secondary",children:"\u2014"})});let g=ye(o,t),b=ye(a,t),x=typeof c=="function"?c(e,t):c,h=Pe(u,p);return g!=null||n?jsxRuntime.jsx("div",{className:tailwindMerge.twMerge(h),children:jsxRuntime.jsx(Hl,{state:e,stateLabel:x,metric:g,metricFormatter:n,secondaryState:b||void 0,size:i,shape:s,icon:l,fixedWidth:d,secondaryStateIconOnly:m,layout:"horizontal"})}):jsxRuntime.jsx("div",{className:h,children:jsxRuntime.jsx(Vn,{state:e,label:x,icon:l,size:i,shape:s,fixedWidth:d})})}function bh({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:d="text-text-secondary"}){let{isLoading:u}=r;if(u)return jsxRuntime.jsx(j,{className:rr(a)});let m=Yr({value:e,formatter:o,emptyText:l,emptyClassName:d}),p=Dr(a),f=Pe(n,tailwindMerge.twMerge(p,c)),g=jsxRuntime.jsx("div",{className:f,children:m}),b=ye(i,t);return b?no(g,b,t,s):g}var Tp=Be__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:d,segmentGap:u=2,barWidth:m,context:p})=>{let f=Be.useMemo(()=>r===t?100:Math.max(0,Math.min(100,(e-t)/(r-t)*100)),[e,t,r]),g=Be.useMemo(()=>o==="auto"&&a?a.type==="diverging"&&a.center!==void 0?Xa(e,t,r,a.center,a.scheme):qa(e,t,r,a.scheme):o,[o,a,e,t,r]);if(p.isLoading)return jsxRuntime.jsx("div",{className:"flex items-center gap-2 w-full",style:{height:c},children:jsxRuntime.jsx("div",{className:"h-full flex-1 animate-pulse bg-border-default rounded"})});if(d&&d>0){let h=`calc((100% - ${u*(d-1)}px) / ${d})`,C=Math.ceil(f/100*d),y={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:y,children:Array.from({length:d}).map((S,N)=>{let T=N<C;return jsxRuntime.jsx("div",{className:"rounded-sm",style:{width:h,backgroundColor:T?g:n==="none"?"transparent":n,marginRight:N<d-1?`${u}px`:0}},N)})}),i&&jsxRuntime.jsx("span",{className:"text-sm text-text-primary 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:`${f}%`,minWidth:f>0?l:0,backgroundColor:g}})}),i&&jsxRuntime.jsx("span",{className:"text-sm text-text-primary whitespace-nowrap",children:s?s(e):e.toLocaleString()})]})});Tp.displayName="HorizontalBarCell";var Pp=Be__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,d=a||100,u=i,{xScale:m,yScale:p,barWidth:f}=Be.useMemo(()=>{if(s.length===0)return {xScale:scale.scaleTime({range:[0,d],domain:[new Date,new Date]}),yScale:scale.scaleLinear({range:[u,0],domain:[0,1]}),barWidth:2};let b=d3Array.extent(s,T=>c(T)),x=d3Array.min(s,T=>l(T))??0,h=d3Array.max(s,T=>l(T))??0,C=x<0?x:0,y=scale.scaleTime({range:[0,d],domain:b}),S=scale.scaleLinear({range:[u,0],domain:[C,h*1.05]}),N=s.length>1?d/s.length*.8:8;return {xScale:y,yScale:S,barWidth:Math.max(2,N)}},[s,d,u]);if(n.isLoading)return jsxRuntime.jsx("div",{className:"flex items-center gap-0.5",style:{width:d,height:u},children:Array.from({length:5}).map((b,x)=>jsxRuntime.jsx("div",{className:"flex-1 animate-pulse bg-border-default rounded"},x))});if(!s||s.length===0)return jsxRuntime.jsx("div",{className:"flex items-center justify-center text-text-secondary text-xs",style:{width:d,height:u},children:"No data"});let g=p(0);return jsxRuntime.jsx("svg",{width:d,height:u,children:s.map((b,x)=>{let h=l(b),C=m(c(b)),y=p(h),S=Math.abs(g-y),N=b.category&&o?.[b.category]?o[b.category]:r;return jsxRuntime.jsx(shape.Bar,{x:C-f/2,y:h>=0?y:g,width:f,height:S,fill:N,rx:1},`bar-${x}`)})})});Pp.displayName="MiniBarCell";function Ch({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:d,linkBehavior:u="hover",showPositiveSign:m=false,colorCode:p=false,className:f}){let{isLoading:g}=r;if(g)return jsxRuntime.jsx(j,{className:rr(l)});if(e==null||isNaN(Number(e)))return jsxRuntime.jsx("div",{className:Pe(c,"text-text-secondary"),children:s});let b=Number(e),x;switch(o){case "currency":x=new Intl.NumberFormat("en-US",{style:"currency",currency:"USD",minimumFractionDigits:n,maximumFractionDigits:n}).format(b);break;case "percent":x=new Intl.NumberFormat("en-US",{style:"percent",minimumFractionDigits:n,maximumFractionDigits:n}).format(b/100);break;case "compact":x=new Intl.NumberFormat("en-US",{notation:"compact",minimumFractionDigits:n>0?1:0,maximumFractionDigits:n}).format(b);break;default:x=new Intl.NumberFormat("en-US",{minimumFractionDigits:n,maximumFractionDigits:n}).format(b);}let C=`${m&&b>0?"+":""}${x}`,y=p?Bl(b,true):Dr(l),S=Pe(c,tailwindMerge.twMerge(y,f)),N=jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[a&&jsxRuntime.jsx("span",{className:"text-text-secondary",children:a}),jsxRuntime.jsx("span",{children:C}),i&&jsxRuntime.jsx("span",{className:"text-text-secondary",children:i})]}),T=ye(d,t);return T?jsxRuntime.jsx("div",{className:S,children:no(N,T,t,u)}):jsxRuntime.jsx("div",{className:S,children:N})}var Rp=Be__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=Be.useMemo(()=>Math.max(0,Math.min(100,e)),[e]),d=Be.useMemo(()=>r==="auto"&&s?s.type==="diverging"&&s.center!==void 0?Xa(e,0,100,s.center,s.scheme):qa(e,0,100,s.scheme):r,[r,s,e]);if(c.isLoading)return jsxRuntime.jsx("div",{className:"flex items-center gap-2",style:{height:n},children:jsxRuntime.jsx("div",{className:"h-full w-full animate-pulse bg-border-default rounded"})});if(a&&a>0){let m=`calc((100% - ${i*(a-1)}px) / ${a})`,p=Math.ceil(l/100*a);return jsxRuntime.jsxs("div",{className:"flex items-center gap-2 w-full",children:[jsxRuntime.jsx("div",{className:"flex gap-0.5 flex-1",style:{height:n},children:Array.from({length:a}).map((f,g)=>{let b=g<p,x=d;if(r==="auto"&&s&&b){let h=(g+1)/a*100;s.type==="diverging"&&s.center!==void 0?x=Xa(h,0,100,s.center,s.scheme):x=qa(h,0,100,s.scheme);}return jsxRuntime.jsx("div",{className:"rounded-sm",style:{width:m,backgroundColor:b?x:o==="none"?"transparent":o,marginRight:g<a-1?`${i}px`:0}},g)})}),t&&jsxRuntime.jsxs("span",{className:"text-sm text-text-primary whitespace-nowrap",children:[l.toFixed(0),"%"]})]})}return jsxRuntime.jsxs("div",{className:"flex items-center gap-2 w-full",children:[jsxRuntime.jsx("div",{className:"relative flex-1 rounded-sm",style:{height:n,backgroundColor:o==="none"?"transparent":o},children:jsxRuntime.jsx("div",{className:"absolute left-0 top-0 h-full rounded-sm transition-all duration-300",style:{width:`${l}%`,backgroundColor:d}})}),t&&jsxRuntime.jsxs("span",{className:"text-sm text-text-primary whitespace-nowrap",children:[l.toFixed(0),"%"]})]})});Rp.displayName="PercentBarCell";function wh({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(j,{className:"h-4 w-4 rounded"})});let s=ye(n,e),c=Pe(a);return jsxRuntime.jsx("div",{className:c,children:jsxRuntime.jsx(Pn,{isSelected:r,onChange:l=>{o?.(e,l);},isDisabled:s,"aria-label":"Select row"})})}function Ul({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:d=false,className:u,piiEntity:m}){let f={xs:{iconSize:16,iconContainerSize:"w-7 h-7",gap:"gap-1.5",textSize:"text-xs",secondaryTextSize:"text-xs",skeletonIconStacked:28,skeletonIconInline:16,skeletonText:80,skeletonSecondary:60},sm:{iconSize:20,iconContainerSize:"w-8 h-8",gap:"gap-2",textSize:"text-sm",secondaryTextSize:"text-xs",skeletonIconStacked:32,skeletonIconInline:20,skeletonText:96,skeletonSecondary:72},md:{iconSize:24,iconContainerSize:"w-9 h-9",gap:"gap-3",textSize:"text-base",secondaryTextSize:"text-sm",skeletonIconStacked:36,skeletonIconInline:24,skeletonText:128,skeletonSecondary:96},lg:{iconSize:28,iconContainerSize:"w-10 h-10",gap:"gap-3",textSize:"text-lg",secondaryTextSize:"text-base",skeletonIconStacked:40,skeletonIconInline:28,skeletonText:160,skeletonSecondary:120}}[a],b={strong:"font-semibold text-text-primary",high:"font-semibold text-text-primary",normal:"text-text-primary",low:"text-text-secondary"}[l],x=[];t&&x.push(t),r&&o?x.push(`${r} ${o}`):r?x.push(r):o&&x.push(o);let h=x.join(", "),C=({children:S,className:N})=>i?s?jsxRuntime.jsx(s,{href:i,className:N,children:S}):jsxRuntime.jsx(et,{href:i,variant:c,className:tailwindMerge.twMerge("hover:underline",N),asButton:false,children:S}):jsxRuntime.jsx("span",{className:N,children:S});if(d)return n==="inline"?jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("flex items-center",f.gap,u),children:[jsxRuntime.jsx(j,{width:f.skeletonIconInline,height:f.skeletonIconInline,className:"flex-shrink-0 rounded"}),jsxRuntime.jsx(j,{width:f.skeletonText,height:f.skeletonIconInline*.8})]}):jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("flex items-center",f.gap,u),children:[jsxRuntime.jsx(j,{width:f.skeletonIconStacked,height:f.skeletonIconStacked,className:"flex-shrink-0 rounded"}),jsxRuntime.jsxs("div",{className:"flex flex-col gap-1",children:[jsxRuntime.jsx(j,{width:f.skeletonText,height:16}),jsxRuntime.jsx(j,{width:f.skeletonSecondary,height:12})]})]});if(n==="inline")return jsxRuntime.jsxs(C,{className:tailwindMerge.twMerge("flex items-center",f.gap,i&&"hover:bg-background-hover transition-colors",u),children:[jsxRuntime.jsx(H,{name:"MapPin",size:f.iconSize,className:"text-text-secondary flex-shrink-0"}),jsxRuntime.jsx("span",{className:tailwindMerge.twMerge("leading-normal truncate hover:text-text-primary",b,f.textSize,i&&"hover:underline hover:decoration-1 hover:underline-offset-4"),"data-pii-type":m?"address":void 0,"data-pii-entity":m,children:e})]});let y=()=>{if(m){if(t&&r&&o)return "city-state-zip";if(t&&r)return "city-state";if(t)return "city";if(r)return "state";if(o)return "postal-code"}};return jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("flex items-center justify-start",f.gap,u),children:[jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("flex-shrink-0 flex items-center justify-center rounded border border-border-muted",f.iconContainerSize),children:jsxRuntime.jsx(H,{name:"MapPin",size:f.iconSize,className:"text-text-secondary"})}),jsxRuntime.jsxs("div",{className:"flex flex-col items-start min-w-0",children:[jsxRuntime.jsx(C,{className:tailwindMerge.twMerge("leading-normal truncate hover:text-text-primary",b,f.textSize,i&&"hover:underline hover:decoration-1 hover:underline-offset-4"),children:jsxRuntime.jsx("span",{"data-pii-type":m?"address":void 0,"data-pii-entity":m,children:e})}),h&&jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("text-text-secondary leading-normal truncate",f.secondaryTextSize),"data-pii-type":y(),"data-pii-entity":m,children:h})]})]})}function kh({row:e,context:t,streetAddress:r,city:o,state:n,postalCode:a,layout:i="stacked",size:s="sm",href:c,LinkComponent:l,linkVariant:d="secondary",emphasis:u="normal",align:m="left",className:p,piiEntity:f}){let{isLoading:g}=t,b=ye(r,e),x=ye(o,e),h=ye(n,e),C=ye(a,e),y=ye(c,e),S=ye(f,e),N=Pe(m,p);return jsxRuntime.jsx("div",{className:N,children:jsxRuntime.jsx(Ul,{streetAddress:b,city:x,state:h,postalCode:C,layout:i,size:s,href:y,LinkComponent:l,linkVariant:d,emphasis:u,isLoading:g,piiEntity:S})})}var Dp=Be__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||[],d=s||100,u=c,{xScale:m,yScale:p}=Be.useMemo(()=>{if(l.length===0)return {xScale:scale.scaleTime({range:[0,d],domain:[new Date,new Date]}),yScale:scale.scaleLinear({range:[u,0],domain:[0,1]})};let g=d3Array.extent(l,C=>C.xValue),b=d3Array.min(l,C=>C.yValue)||0,x=d3Array.max(l,C=>C.yValue)||0,h=(x-b)*.1||1;return {xScale:scale.scaleTime({range:[0,d],domain:g}),yScale:scale.scaleLinear({range:[u,0],domain:[b-h,x+h]})}},[l,d,u]);if(i.isLoading)return jsxRuntime.jsx("div",{className:"flex items-center",style:{width:d,height:u},children:jsxRuntime.jsx("div",{className:"h-1 w-full animate-pulse bg-border-default rounded"})});if(!l||l.length===0)return jsxRuntime.jsx("div",{className:"flex items-center justify-center text-text-secondary text-xs",style:{width:d,height:u},children:"No data"});let f=a&&l[0]?.category&&a[l[0].category]?a[l[0].category]:o;return jsxRuntime.jsxs("svg",{width:d,height:u,className:"overflow-visible",children:[(r==="area"||r==="both")&&jsxRuntime.jsx(shape.AreaClosed,{data:l,x:g=>m(g.xValue),y:g=>p(g.yValue),yScale:p,fill:f,fillOpacity:.15,curve:curve.curveLinear}),(r==="line"||r==="both")&&jsxRuntime.jsx(shape.LinePath,{data:l,x:g=>m(g.xValue),y:g=>p(g.yValue),stroke:f,strokeWidth:n,strokeLinecap:"round",curve:curve.curveLinear})]})});Dp.displayName="SparklineCell";function Dh({value:e,row:t,context:r,prefix:o,suffix:n,emptyText:a="\u2014",href:i,linkBehavior:s="hover",linkVariant:c="secondary",emphasis:l="normal",truncate:d=true,copyable:u=false,align:m="left",className:p,piiType:f,piiEntity:g}){let{isLoading:b}=r;if(b)return jsxRuntime.jsx(j,{className:rr(l)});let x=Fl(e,a),h=ye(i,t),C=ye(g,t),y=x,S=false,N=false;if(d&&x&&typeof x=="string")if(typeof d=="boolean")N=true;else {let{position:k="end",length:O=16,ellipsis:G="...",tooltip:B=true}=d;if(x.length>O){switch(k){case "start":y=xs(x,O);break;case "middle":y=aa(x,O);break;case "end":y=hs(x,O,G);break}S=B;}}let T=f&&C?{"data-pii-type":f,"data-pii-entity":C}:{},E=Object.keys(T).length>0,R=jsxRuntime.jsx("span",{className:N?"truncate":"",...T,children:y}),M=S?jsxRuntime.jsx(Xt,{content:E?jsxRuntime.jsx("span",{...T,children:String(x)}):String(x),children:R}):R,A=jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[o&&jsxRuntime.jsx("span",{className:"text-text-secondary",children:o}),M,n&&jsxRuntime.jsx("span",{className:"text-text-secondary",children:n})]}),L=A;if(u&&x&&x!==a){let k=typeof u=="function"?u(t):String(x);L=jsxRuntime.jsx(Oo,{value:k,size:"sm",children:A});}if(h){let k=Pe(m,p);return jsxRuntime.jsx("div",{className:k,children:no(L,h,t,s,c,l)})}let w=Pe(m,tailwindMerge.twMerge(Dr(l),p));return jsxRuntime.jsx("div",{className:w,children:L})}var IP={sm:"sm:hidden",md:"md:hidden",lg:"lg:hidden",xl:"xl:hidden"},FP={sm:"hidden sm:grid",md:"hidden md:grid",lg:"hidden lg:grid",xl:"hidden xl:grid"};function Yl(e,t){return t.accessor?typeof t.accessor=="function"?t.accessor(e):e[t.accessor]:null}function Kl(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 jl({row:e,columns:t,density:r,isLoading:o,onClick:n}){let a=t.filter(u=>u.mobile!==false).map(u=>{let m=u.mobile===false?null:u.mobile;return {...u,mobilePriority:m?.priority??2,mobileFormat:m?.format??"secondary",showLabel:m?.label??m?.format==="secondary",icon:m?.icon}}).sort((u,m)=>u.mobilePriority-m.mobilePriority),i=a.filter(u=>u.mobilePriority===1||u.mobileFormat==="primary"),s=a.filter(u=>u.mobilePriority===2&&u.mobileFormat!=="primary"),c=a.filter(u=>u.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(u=>{let m=Yl(e,u);return jsxRuntime.jsx("div",{className:"font-medium text-text-primary [&>*]:!justify-start [&>*]:!text-left",children:Kl(m,e,u,l)},u.id)})}),c.length>0&&jsxRuntime.jsx("div",{className:"ml-2 flex flex-wrap gap-1",children:c.map(u=>{let m=Yl(e,u);return jsxRuntime.jsx("div",{className:"inline-flex",children:Kl(m,e,u,l)},u.id)})})]}),s.length>0&&jsxRuntime.jsx("div",{className:"space-y-1",children:s.map(u=>{let m=Yl(e,u),p=u.showLabel&&u.label;return jsxRuntime.jsxs("div",{className:"flex items-center text-sm text-text-secondary",children:[u.icon&&jsxRuntime.jsx(H,{name:u.icon,className:"mr-1.5 h-4 w-4 flex-shrink-0"}),p&&jsxRuntime.jsxs("span",{className:"mr-1 font-medium",children:[u.label,":"]}),jsxRuntime.jsx("span",{className:"truncate [&>*]:!justify-start [&>*]:!text-left",children:Kl(m,e,u,l)})]},u.id)})})]})}function ql({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 d=Yl(e,c),u=l===0;return jsxRuntime.jsxs("div",{children:[!u&&jsxRuntime.jsx("div",{className:"text-xs text-text-secondary",children:c.label}),jsxRuntime.jsx("div",{className:tailwindMerge.twMerge(u?"font-medium text-text-primary":"text-sm text-text-primary","[&>*]:!justify-start [&>*]:!text-left"),children:Kl(d,e,c,i)})]},c.id)})})})}function Mh(e="md"){return {mobile:IP[e],desktop:FP[e]}}function Eh({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 qP={compact:"py-1.5 px-3 text-sm",default:"py-3 px-4 text-sm",relaxed:"py-4 px-4 text-base"},XP={left:"text-left justify-start",center:"text-center justify-center",right:"text-right justify-end"};function ZP(e){let t={};return e.width!==void 0&&(t.width=typeof e.width=="number"?`${e.width}px`:e.width),e.minWidth!==void 0&&(t.minWidth=typeof e.minWidth=="number"?`${e.minWidth}px`:e.minWidth),e.maxWidth!==void 0&&(t.maxWidth=typeof e.maxWidth=="number"?`${e.maxWidth}px`:e.maxWidth),e.flex!==void 0&&(t.flex=`${e.flex} 1 0`),t}function $P({column:e,sortConfig:t,onSort:r,stickyHeader:o,stickyFirstColumn:n,isFirstColumn:a,density:i="default",isLoading:s=false}){let c=e.reorderable!==false,{attributes:l,listeners:d,setNodeRef:u,transform:m,transition:p,isDragging:f}=sortable.useSortable({id:e.id,disabled:!c||s}),g=t?.columnId===e.id,b=g?t.direction:null,x=n&&a,h={...ZP(e),transform:utilities.CSS.Transform.toString(m),transition:p,opacity:f?.8:1,zIndex:f?50:void 0};return jsxRuntime.jsx("div",{ref:u,className:tailwindMerge.twMerge("flex items-center border-b border-border-default bg-background-surface",e.sortable?"gap-2":"gap-1",qP[i],XP[e.align||"left"],o&&"sticky top-0 z-10",x&&"sticky left-0 z-20 shadow-[2px_0_4px_-2px_rgba(0,0,0,0.1)]",o&&x&&"z-30",e.sortable&&!s&&"hover:bg-background-hover",s&&"cursor-not-allowed opacity-60",g?"font-bold text-text-primary":"font-medium text-text-secondary",f&&"bg-background-hover"),style:h,role:"columnheader","aria-sort":g?b==="asc"?"ascending":"descending":"none","aria-disabled":s,...l,...d,children:s?jsxRuntime.jsx(j,{className:"h-4 w-24"}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("span",{className:"flex-1 truncate cursor-pointer",onClick:()=>!s&&e.sortable&&r(e.id),children:e.label}),e.sortable&&jsxRuntime.jsx("button",{type:"button",className:"flex flex-shrink-0 cursor-pointer",onClick:()=>!s&&r(e.id),"aria-label":`Sort by ${e.label}`,children:g?jsxRuntime.jsx(H,{name:b==="asc"?"CaretUp":"CaretDown",size:14,weight:"bold",className:"text-text-primary"}):jsxRuntime.jsx(H,{name:"CaretUpDown",size:12,className:"text-text-secondary opacity-40"})})]})})}function Ah({columns:e,columnOrder:t,onColumnOrderChange:r,sortConfig:o,onSort:n,stickyHeader:a,stickyFirstColumn:i,density:s="default",isLoading:c=false}){let l=core.useSensors(core.useSensor(core.PointerSensor,{activationConstraint:{distance:5}}),core.useSensor(core.KeyboardSensor,{coordinateGetter:sortable.sortableKeyboardCoordinates})),d=new Map(e.map(p=>[p.id,p])),u=p=>{let{active:f,over:g}=p;if(g&&f.id!==g.id){let b=t.indexOf(f.id),x=t.indexOf(g.id);if(d.get(g.id)?.reorderable===false)return;let C=0;for(let T=0;T<t.length&&d.get(t[T])?.reorderable===false;T++)C=T+1;if(x<C)return;let y=Math.min(b,x),S=Math.max(b,x);for(let T=y;T<=S;T++){if(T===b)continue;if(d.get(t[T])?.reorderable===false)return}let N=sortable.arrayMove(t,b,x);r(N);}},m=t.map(p=>d.get(p)).filter(p=>p!==void 0);return jsxRuntime.jsx(core.DndContext,{sensors:l,collisionDetection:core.closestCenter,onDragEnd:u,children:jsxRuntime.jsx(sortable.SortableContext,{items:t,strategy:sortable.horizontalListSortingStrategy,children:jsxRuntime.jsx("div",{className:"contents",role:"rowgroup",children:m.map((p,f)=>jsxRuntime.jsx($P,{column:p,sortConfig:o,onSort:n,stickyHeader:a,stickyFirstColumn:i,isFirstColumn:f===0,density:s,isLoading:c},p.id))})})})}var Ap={compact:"py-1.5 px-3 text-sm",default:"py-3 px-4 text-sm",relaxed:"py-4 px-4 text-base"},Ip={left:"text-left justify-start",center:"text-center justify-center",right:"text-right justify-end"},o5={full:"w-full",auto:"w-auto inline-block",contained:"w-full max-w-6xl mx-auto"},n5={auto:"table-auto",fixed:"table-fixed",responsive:"table-auto"};function Fp(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 a5(e,t){return t.accessor?typeof t.accessor=="function"?t.accessor(e):e[t.accessor]:null}function i5({column:e,sortConfig:t,onSort:r,stickyHeader:o,stickyFirstColumn:n,isFirstColumn:a,density:i="default",isLoading:s=false}){let c=t?.columnId===e.id,l=c?t.direction:null,d=n&&a;return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("flex items-center border-b border-border-default bg-background-surface",e.sortable?"gap-2":"gap-1",Ap[i],Ip[e.align||"left"],o&&"sticky top-0 z-10",d&&"sticky left-0 z-20 shadow-[2px_0_4px_-2px_rgba(0,0,0,0.1)]",o&&d&&"z-30",e.sortable&&!s&&"cursor-pointer hover:bg-background-hover",s&&"cursor-not-allowed opacity-60",c?"font-bold text-text-primary":"font-medium text-text-secondary"),onClick:()=>!s&&e.sortable&&r(e.id),role:"columnheader","aria-sort":c?l==="asc"?"ascending":"descending":"none","aria-disabled":s,style:Fp(e),children:s?jsxRuntime.jsx(j,{className:"h-4 w-24"}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("span",{className:"truncate",children:e.label}),e.sortable&&jsxRuntime.jsx("div",{className:"flex flex-shrink-0",children:c?jsxRuntime.jsx(H,{name:l==="asc"?"CaretUp":"CaretDown",size:14,weight:"bold",className:"text-text-primary"}):jsxRuntime.jsx(H,{name:"CaretUpDown",size:12,className:"text-text-secondary opacity-40"})})]})})}function s5({column:e,row:t,rowIndex:r,columnIndex:o,isHovered:n,density:a="default",className:i,stickyFirstColumn:s}){let c=s&&o===0,l=a5(t,e),d={isLoading:false,isHovered:n,rowIndex:r,columnIndex:o,density:a},u;if(e.cell){let m=e.cell,p=typeof e.cellProps=="function"?e.cellProps(l,t):e.cellProps;u=jsxRuntime.jsx(m,{value:l,row:t,context:d,...p});}else e.render?u=e.render(l,t,d):u=jsxRuntime.jsx("span",{className:"truncate",children:l?.toString()??""});if(e.popover){let m=e.popover,p,f="top",g=false,b="hover";typeof m=="string"?p=m:typeof m=="function"?p=m(l,t):(p=typeof m.content=="function"?m.content(l,t):m.content,f=m.placement||"top",g=m.showArrow??false,b=m.trigger||"hover"),u=jsxRuntime.jsxs(reactAriaComponents.DialogTrigger,{...b==="hover"?{trigger:"longPress"}:{},children:[jsxRuntime.jsx("div",{className:"cursor-help",children:u}),jsxRuntime.jsx(at,{placement:f,showArrow:g,children:jsxRuntime.jsx("div",{className:"p-2",children:p})})]});}return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("flex items-center border-b border-border-default bg-background-surface",e.noCellPadding?"":Ap[a],Ip[e.align||"left"],c&&"sticky left-0 z-10 shadow-[2px_0_4px_-2px_rgba(0,0,0,0.1)]",i),role:"cell",style:Fp(e),children:u})}function l5({column:e,rowIndex:t,columnIndex:r,density:o="default",stickyFirstColumn:n}){let a=n&&r===0,i={isLoading:true,rowIndex:t,columnIndex:r,density:o},s;if(e.cell){let c=e.cell,l=typeof e.cellProps=="function"?e.cellProps(null,{}):e.cellProps;s=jsxRuntime.jsx(c,{value:null,row:{},context:i,...l});}else e.render?s=e.render(null,{},i):s=jsxRuntime.jsx(j,{className:"h-4 w-full max-w-[200px]"});return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("flex items-center border-b border-border-default bg-background-surface",e.noCellPadding?"":Ap[o],Ip[e.align||"left"],a&&"sticky left-0 z-10 shadow-[2px_0_4px_-2px_rgba(0,0,0,0.1)]"),role:"cell",style:Fp(e),children:s})}function c5(e,t){let r=new Set(["BUTTON","A","INPUT","SELECT","TEXTAREA"]),o=new Set(["button","link","checkbox","switch","menuitem","option"]),n=e;for(;n&&n!==t;){if(r.has(n.tagName))return true;let a=n.getAttribute("role");if(a&&o.has(a))return true;n=n.parentElement;}return false}function Ih({columns:e,row:t,rowIndex:r,density:o="default",onClick:n,stickyFirstColumn:a}){let[i,s]=Be.useState(false),c=Be.useCallback(l=>{if(!n)return;let d=l.target,u=l.currentTarget;c5(d,u)||n(t);},[n,t]);return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("contents group",n&&"cursor-pointer"),role:"row",onClick:c,onMouseEnter:()=>s(true),onMouseLeave:()=>s(false),children:e.map((l,d)=>jsxRuntime.jsx(s5,{column:l,row:t,rowIndex:r,columnIndex:d,isHovered:i,density:o,className:n?"group-hover:bg-background-hover":"",stickyFirstColumn:a},l.id))})}function Fh({columns:e,rowIndex:t,density:r="default",stickyFirstColumn:o}){return jsxRuntime.jsx("div",{className:"contents",role:"row",children:e.map((n,a)=>jsxRuntime.jsx(l5,{column:n,rowIndex:t,columnIndex:a,density:r,stickyFirstColumn:o},n.id))})}function Bh({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:d="md",isLoading:u=false,loadingState:m,loadingRowCount:p=5,onLoadMore:f,hasMore:g=false,enableVirtualization:b,estimatedRowHeight:x,loadingIndicator:h,stickyHeader:C=false,stickyFirstColumn:y=false,onRowClick:S,getRowId:N,hideHeader:T=false,sortConfig:E,onSort:R,"aria-label":M,enableColumnReorder:A=false,columnOrder:L,onColumnOrderChange:w}){let[k,O]=Be.useState(null),G=E!==void 0,B=G?E:k,z=Be.useRef(null),X=Be.useMemo(()=>e.map(ce=>ce.id),[e]),[V,K]=Be.useState(X),P=L!==void 0,D=P?L:V;Be.useEffect(()=>{P||K(ce=>{let he=e.map(oe=>oe.id),ae=new Set(he),$=new Set(ce),Z=ce.filter(oe=>ae.has(oe)),de=he.filter(oe=>!$.has(oe));return [...Z,...de]});},[e,P]);let F=Be.useCallback(ce=>{P||K(ce),w?.(ce);},[P,w]),I=Be.useMemo(()=>{if(!A&&!L)return e;let ce=new Map(e.map(he=>[he.id,he]));return D.map(he=>ce.get(he)).filter(he=>he!==void 0)},[e,D,A,L]),v=f?Do({items:t,onLoadMore:f,hasMore:g,isLoading:u,loadingState:m,enableVirtualization:b,estimatedItemSize:x||(o==="compact"?40:o==="relaxed"?60:48),overscan:5}):null,W=v?.scrollRef??z,{loadMoreRef:Y,virtualizer:U,virtualItems:ee,isLoadingMore:pe,computedLoadingState:J}=v||{},{gridTemplateColumns:re,totalMinWidth:xe}=Be.useMemo(()=>{let ce=0;return {gridTemplateColumns:I.map(ae=>{if(ae.minWidth?ce+=typeof ae.minWidth=="number"?ae.minWidth:0:ae.width&&typeof ae.width=="number"&&(ce+=ae.width),ae.width)return typeof ae.width=="number"?`${ae.width}px`:ae.width;if(ae.flex)return `${ae.flex}fr`;if(ae.minWidth&&ae.maxWidth){let $=typeof ae.minWidth=="number"?`${ae.minWidth}px`:ae.minWidth,Z=typeof ae.maxWidth=="number"?`${ae.maxWidth}px`:ae.maxWidth;return `minmax(${$}, ${Z})`}return ae.minWidth?`minmax(${typeof ae.minWidth=="number"?`${ae.minWidth}px`:ae.minWidth}, 1fr)`:ae.maxWidth?`minmax(0, ${typeof ae.maxWidth=="number"?`${ae.maxWidth}px`:ae.maxWidth})`:"1fr"}).join(" "),totalMinWidth:ce}},[I]),te=Be.useCallback(ce=>{if(!e.find($=>$.id===ce)?.sortable)return;let ae;B?.columnId===ce?ae={columnId:ce,direction:B.direction==="asc"?"desc":"asc"}:ae={columnId:ce,direction:"asc"},G||O(ae),R?.(ae);},[e,B,R,G]),ne=J==="loading"||u&&t.length===0,me={};a?(me.height=typeof a=="number"?`${a}px`:a,me.overflowY="auto"):i?(me.maxHeight=typeof i=="number"?`${i}px`:i,me.overflowY="auto"):f&&(me.height="600px",me.overflowY="auto");let ve=tailwindMerge.twMerge(o5[n],!f&&(s==="responsive"?"overflow-x-auto scrollbar-visible":"overflow-auto scrollbar-visible"),r),Je=Mh(d),Pt=c!=="none",Ga=(ce,he)=>Pt?c==="custom"&&l?l(ce,he):jsxRuntime.jsx(c==="cards"?ql:jl,{row:ce,columns:I,density:o,isLoading:u,onClick:S?()=>S(ce):void 0}):null,Ur=U?ee?.map(ce=>({virtualItem:ce,row:t[ce.index],index:ce.index}))||[]:t.map((ce,he)=>({row:ce,index:he,virtualItem:null}));return jsxRuntime.jsxs("div",{ref:W,className:ve,style:{...me,position:U?"relative":void 0},children:[jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("grid border-separate border-spacing-0",n5[s],n==="auto"?"inline-grid w-auto":"w-full",Pt&&Je.desktop),role:"table","aria-label":M,style:{gridTemplateColumns:re,minWidth:xe>0?`${xe}px`:void 0},children:[!T&&(A?jsxRuntime.jsx(Ah,{columns:e,columnOrder:D,onColumnOrderChange:F,sortConfig:B,onSort:te,stickyHeader:C,stickyFirstColumn:y,density:o,isLoading:ne}):jsxRuntime.jsx("div",{className:"contents",role:"rowgroup",children:I.map((ce,he)=>jsxRuntime.jsx(i5,{column:ce,sortConfig:B,onSort:te,stickyHeader:C,stickyFirstColumn:y,isFirstColumn:he===0,density:o,isLoading:ne},ce.id))})),U?jsxRuntime.jsx("div",{className:"col-span-full",style:{gridColumn:"1 / -1",height:`${U.getTotalSize()}px`,position:"relative"},role:"rowgroup",children:ne?Array.from({length:p}).map((ce,he)=>jsxRuntime.jsx("div",{className:"contents",children:jsxRuntime.jsx(Fh,{columns:I,rowIndex:he,density:o,stickyFirstColumn:y})},`loading-${he}`)):t.length>0?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[Ur.map(({row:ce,index:he,virtualItem:ae})=>{if(!ce||!ae)return null;let $=N?N(ce):`row-${he}`;return jsxRuntime.jsx("div",{style:{position:"absolute",top:0,left:0,width:"100%",display:"grid",gridTemplateColumns:re,transform:`translateY(${ae.start}px)`},"data-index":ae.index,ref:U.measureElement,children:jsxRuntime.jsx(Ih,{columns:I,row:ce,rowIndex:he,density:o,onClick:S,stickyFirstColumn:y})},$)}),pe&&jsxRuntime.jsx("div",{style:{position:"absolute",top:`${U.getTotalSize()}px`,left:0,width:"100%"},children:h||jsxRuntime.jsx(Cr,{state:"loading-more"})})]}):jsxRuntime.jsx("div",{className:"py-12 text-center text-text-secondary",children:"No data available"})}):jsxRuntime.jsx("div",{className:"contents",role:"rowgroup",children:ne?Array.from({length:p}).map((ce,he)=>jsxRuntime.jsx(Fh,{columns:I,rowIndex:he,density:o,stickyFirstColumn:y},`loading-${he}`)):t.length>0?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[Ur.map(({row:ce,index:he})=>{if(!ce)return null;let ae=N?N(ce):`row-${he}`;return jsxRuntime.jsx(Ih,{columns:I,row:ce,rowIndex:he,density:o,onClick:S,stickyFirstColumn:y},ae)}),pe&&jsxRuntime.jsx("div",{className:"col-span-full",style:{gridColumn:"1 / -1"},children:h||jsxRuntime.jsx(Cr,{state:"loading-more"})})]}):jsxRuntime.jsx("div",{className:"col-span-full py-12 text-center text-text-secondary",role:"row",children:jsxRuntime.jsx("div",{role:"cell",children:"No data available"})})})]}),Pt&&jsxRuntime.jsx("div",{className:Je.mobile,children:ne?Array.from({length:p}).map((ce,he)=>jsxRuntime.jsx(Eh,{density:o},`mobile-loading-${he}`)):t.length>0?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[Ur.map(({row:ce,index:he})=>{if(!ce)return null;let ae=N?N(ce):`mobile-row-${he}`;return jsxRuntime.jsx("div",{className:"border-b border-border-default last:border-b-0",children:Ga(ce,he)},ae)}),pe&&(h||jsxRuntime.jsx(Cr,{state:"loading-more"}))]}):jsxRuntime.jsx("div",{className:"py-12 text-center text-text-secondary",children:"No data available"})}),f&&g&&!ne&&(U?jsxRuntime.jsx("div",{ref:Y,style:{position:"absolute",top:`${U.getTotalSize()}px`,left:0,width:"100%",height:1}}):jsxRuntime.jsx("div",{ref:Y,className:"h-px w-full"}))]})}function zh({status:e,alertCount:t,showCount:r=false,isLoading:o,size:n="sm",shape:a="pill",...i}){if(o)return jsxRuntime.jsx(j,{className:"inline-flex h-6 w-20"});let s={healthy:"success",warning:"warning",error:"error",unknown:"neutral"},c={healthy:"Healthy",warning:"Warning",error:"Error",unknown:"Unknown"},l=e==="warning"||e==="error",d=r&&t?`${c[e]} (${t})`:c[e];return jsxRuntime.jsx(ot,{variant:s[e],size:n,shape:a,dot:l,dotPulse:l,...i,children:d})}var u5={battery:"BatteryHigh",charger:"ChargingStation",thermostat:"ThermometerSimple",inverter:"Power",vehicle:"Car",water_heater:"DropHalfBottom",meter:"Gauge",gateway:"WifiHigh",other:"Cube",unknown:"Question"},p5={battery:"Battery",charger:"Charger",thermostat:"Thermostat",inverter:"Inverter",vehicle:"Vehicle",water_heater:"Water Heater",meter:"Meter",gateway:"Gateway",other:"Other",unknown:"Unknown"};function Hh({deviceType:e,iconName:t,size:r="md",showLabel:o=false,className:n}){let a=t||(e?u5[e]:"Question"),i=e?p5[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(H,{name:a,size:r}),o&&i&&jsxRuntime.jsx("span",{className:"text-xs text-text-secondary",children:i})]})}function Ai({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:d,className:u,primaryAction:m,secondaryAction:p,tertiaryAction:f,footerContent:g,contentPadding:b=true,maxWidth:x="400px"}){if(!s)return null;let h=t||r,C=m||p||f||g;return jsxRuntime.jsx(Lr,{children:jsxRuntime.jsx(ir,{isOpen:s,onOpenChange:y=>!y&&d?.(),isDismissable:true,transparent:l,children:jsxRuntime.jsx(reactAriaComponents.Modal,{className:"outline-none focus:outline-none focus-visible:outline-none ring-0 focus:ring-0 focus-visible:ring-0",children:jsxRuntime.jsxs(reactAriaComponents.Dialog,{className:tailwindMerge.twMerge("fixed top-0 bottom-0 flex flex-col bg-background-surface shadow-xl overflow-hidden",c==="right"?"right-0":"left-0",c==="right"?"animate-in slide-in-from-right duration-300 ease-out":"animate-in slide-in-from-left duration-300 ease-out","data-[exiting]:animate-out",c==="right"?"data-[exiting]:slide-out-to-right":"data-[exiting]:slide-out-to-left","data-[exiting]:duration-200 data-[exiting]:ease-in","outline-none focus-visible:outline focus-visible:outline-2 focus-visible:outline-action-default focus-visible:outline-offset-0",u),style:{maxWidth:x,width:"100%"},children:[h&&(a&&i?jsxRuntime.jsx(Bt,{title:t,headerContent:r,titleAlign:o,hideCloseIcon:n,hasBackArrow:true,onBack:i,onClose:d}):jsxRuntime.jsx(Bt,{title:t,headerContent:r,titleAlign:o,hideCloseIcon:n,onClose:d})),jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("flex-1 overflow-y-auto overscroll-contain",b?"px-6 py-6":"p-0"),children:e}),C&&jsxRuntime.jsx(Fo,{primaryAction:m,secondaryAction:p,tertiaryAction:f,footerContent:g})]})})})})}Ai.displayName="Drawer";var x5={sm:"gap-4 px-6 py-8",md:"gap-5 px-8 py-12",lg:"gap-6 px-10 py-16"},h5={sm:"xs",md:"sm",lg:"md"},y5={sm:pt("bodySm"),md:pt("bodySm"),lg:pt("bodyMd")},v5={sm:"h-10 w-10",md:"h-12 w-12",lg:"h-16 w-16"},C5={sm:20,md:24,lg:32},S5={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"},w5={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 Uh({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:d=false,className:u}){let m=i==="sm"?"sm":"md",p=c==="spotlight",f=p?{background:w5[l]}:void 0,g=()=>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(et,{href:n.href||"#",variant:"muted",onPress:n.onPress,className:pt("labelMd"),children:n.label})]}):null;return jsxRuntime.jsxs("section",{"data-testid":"empty-state",role:"status","aria-live":"polite",className:tailwindMerge.twMerge("flex w-full flex-col rounded-xl text-text-primary",x5[i],S5[s],d?"h-full justify-center":"",p?"relative overflow-hidden":"",u),style:f,children:[e&&jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("flex items-center justify-center rounded-full border border-border-muted bg-background-muted text-text-secondary",v5[i]),children:jsxRuntime.jsx(H,{name:e,size:C5[i]})}),jsxRuntime.jsx(qt,{size:h5[i],tag:"h2",className:"text-text-secondary",children:t}),r&&jsxRuntime.jsx("p",{className:tailwindMerge.twMerge("max-w-xs text-text-secondary whitespace-pre-line",y5[i]),children:r}),g()]})}function Yh({status:e,programName:t,isLoading:r,size:o="sm",shape:n="pill",...a}){if(r)return jsxRuntime.jsx(j,{className:"inline-flex h-6 w-20"});let i={enrolled:"success",eligible:"info",pending:"warning",not_eligible:"neutral",opted_out:"neutral"},s={enrolled:"Enrolled",eligible:"Eligible",pending:"Pending",not_eligible:"Not Eligible",opted_out:"Opted Out"},c=jsxRuntime.jsx(ot,{variant:i[e],size:o,shape:n,...a,children:s[e]});return t?jsxRuntime.jsx(Xt,{content:t,children:c}):c}function Jh({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[d,u]=Be.useState(false),[m,p]=Be.useState(false),[f,g]=Be.useState(null),[b,x]=Be.useState(e),h=Be.useRef(null),C=async N=>{if(g(null),n&&N.size>n){g(`File size must be less than ${(n/1024/1024).toFixed(2)}MB`);return}if(c&&N.type.startsWith("image/")){let T=new FileReader;T.onloadend=()=>{x(T.result);},T.readAsDataURL(N);}if(i){p(true);try{let T=await i(N);x(T),r?.(T);}catch(T){g("Failed to upload file"),console.error("Upload error:",T);}finally{p(false);}}t?.(N,b);},y=async N=>{try{let T=N.items;if(T.length>0){let E=T[0];if(E.kind==="file"){let R=await E.getFile();R&&C(R);}}}catch(T){g("Failed to upload file"),console.error("Upload error:",T);}finally{u(false);}},S=()=>{x(void 0),g(null),t?.(null),r?.(""),h.current&&(h.current.value="");};return jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("w-full",s),children:[jsxRuntime.jsxs(reactAriaComponents.DropZone,{className:tailwindMerge.twMerge("relative flex min-h-[200px] w-full flex-col items-center justify-center rounded-lg border-2 border-dashed transition-colors",d?"border-action-brand bg-action-brand/5":"border-border-muted hover:border-border-default",a&&"pointer-events-none opacity-50",f&&"border-feedback-error-border bg-feedback-error-background/50"),onDrop:y,onDropEnter:()=>u(true),onDropExit:()=>u(false),children:[b?jsxRuntime.jsxs("div",{className:"relative flex h-full w-full items-center justify-center p-4",children:[c&&(b.startsWith("data:image")||b.startsWith("http"))?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-secondary"}),jsxRuntime.jsx("span",{className:"text-sm text-text-secondary",children:"File uploaded"})]}),!a&&jsxRuntime.jsx(Q,{variant:"icon",size:"sm",onPress:S,className:"absolute right-2 top-2 bg-background-surface shadow-md",children:jsxRuntime.jsx(lucideReact.X,{className:"h-4 w-4"})})]}):jsxRuntime.jsxs("div",{className:"flex flex-col items-center gap-4 p-6",children:[jsxRuntime.jsx(lucideReact.Upload,{className:"h-12 w-12 text-text-secondary"}),jsxRuntime.jsxs("div",{className:"text-center",children:[jsxRuntime.jsx("p",{className:"text-sm text-text-primary",children:l}),jsxRuntime.jsx("p",{className:"mt-1 text-xs text-text-secondary",children:o==="image/*"?"PNG, JPG, GIF up to 10MB":`Accepts ${o}`})]}),jsxRuntime.jsx(reactAriaComponents.FileTrigger,{acceptedFileTypes:o.split(","),onSelect:N=>{let T=Array.from(N||[]);T.length>0&&C(T[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-secondary",children:"Uploading..."})]})})]}),f&&jsxRuntime.jsx("p",{className:"mt-2 text-sm text-feedback-error-text",children:f})]})}function qh({version:e,isLatest:t,updateAvailable:r,isLoading:o,size:n="sm",shape:a="rounded",...i}){if(o)return jsxRuntime.jsx(j,{className:"inline-flex h-6 w-16"});let s="neutral",c=e;return t?s="success":r&&(s="warning",c=`${e} (Update)`),jsxRuntime.jsx(ot,{variant:s,size:n,shape:a,...i,children:c})}function Ma(e){return jsxRuntime.jsx(reactAriaComponents.Form,{validationBehavior:"aria",...e,className:tailwindMerge.twMerge("flex flex-col gap-6",e.className)})}function Zh({placeholder:e="Search...",value:t,onChange:r,isOpen:o,onOpenChange:n,trigger:a,children:i,showShortcutHint:s=true,showInput:c=true,className:l}){let[d,u]=Be.useState(false),m=Ut("(max-width: 767px)"),p=o!==void 0?o:d,f=Be.useCallback(h=>{n?n(h):u(h);},[n]);Be.useEffect(()=>{let h=C=>{(C.metaKey||C.ctrlKey)&&C.key==="k"&&(C.preventDefault(),f(!p)),C.key==="Escape"&&p&&f(false);};return window.addEventListener("keydown",h),()=>window.removeEventListener("keydown",h)},[p,f]);let g=Be.useCallback(h=>{r?.(h);},[r]),b=jsxRuntime.jsxs("button",{type:"button",className:"flex items-center gap-2 px-3 py-2 text-sm text-text-secondary hover:text-text-primary hover:bg-background-hover rounded-md transition-colors","aria-label":"Open search",children:[jsxRuntime.jsx(H,{name:"MagnifyingGlass",size:18}),!m&&s&&jsxRuntime.jsxs("span",{className:"hidden md:flex items-center gap-1 text-xs",children:[jsxRuntime.jsx("kbd",{className:"px-1.5 py-0.5 bg-background-muted border border-border-muted rounded text-xs",children:navigator.platform.includes("Mac")?"\u2318":"Ctrl"}),jsxRuntime.jsx("kbd",{className:"px-1.5 py-0.5 bg-background-muted border border-border-muted rounded text-xs",children:"K"})]})]}),x=a===null||Be.isValidElement(a)&&a.type===Be.Fragment&&!a.props.children;return m?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[!x&&(a?jsxRuntime.jsx("button",{type:"button",onClick:()=>f(true),className:"appearance-none bg-transparent border-none p-0 cursor-pointer",children:a}):jsxRuntime.jsx("button",{type:"button",onClick:()=>f(true),className:"appearance-none bg-transparent border-none p-0 cursor-pointer",children:b})),jsxRuntime.jsx(it,{isOpen:p,onClose:()=>f(false),hideCloseIcon:false,contentPadding:false,maxHeight:"90vh",children:jsxRuntime.jsxs("div",{className:"flex flex-col h-full",children:[c&&jsxRuntime.jsx("div",{className:"p-4 border-b border-border-muted flex-shrink-0",children:jsxRuntime.jsx(Rr,{value:t,onChange:g,placeholder:e,showSearchIcon:true,isClearable:!!t,onClear:()=>r?.(""),reserveErrorSpace:false,className:l,autoFocus:true})}),jsxRuntime.jsx("div",{className:"flex-1 min-h-0 overflow-hidden",children:i})]})})]}):x?null:jsxRuntime.jsxs(reactAriaComponents.DialogTrigger,{isOpen:p,onOpenChange:f,children:[a||b,jsxRuntime.jsx(at,{placement:"bottom",className:"w-[600px] max-w-[90vw] bg-background-surface shadow-xl border border-border-default rounded-lg overflow-hidden",children:jsxRuntime.jsxs("div",{className:"flex flex-col",children:[c&&jsxRuntime.jsx("div",{className:"p-4 border-b border-border-muted",children:jsxRuntime.jsx(Rr,{value:t,onChange:g,placeholder:e,showSearchIcon:true,isClearable:!!t,onClear:()=>r?.(""),reserveErrorSpace:false,className:l,autoFocus:true})}),jsxRuntime.jsx("div",{className:"max-h-[500px] overflow-hidden",children:i})]})})]})}function _h({placeholder:e="Search...",value:t,onChange:r,isOpen:o,onOpenChange:n,children:a,maxHeight:i="400px",variant:s="default",className:c}){let[l,d]=Be.useState(false),u=Ut("(max-width: 767px)"),m=Be.useRef(null),p=Be.useRef(null),f=o!==void 0?o:l,g=Be.useCallback(M=>{n?n(M):d(M);},[n]);Be.useEffect(()=>{let M=A=>{(A.metaKey||A.ctrlKey)&&A.key==="k"&&(A.preventDefault(),g(!f)),A.key==="Escape"&&f&&g(false);};return window.addEventListener("keydown",M),()=>window.removeEventListener("keydown",M)},[f,g]),Be.useEffect(()=>{f&&!u&&m.current&&setTimeout(()=>{m.current?.querySelector("input")?.focus();},0);},[f,u]),Be.useEffect(()=>{if(!f||u)return;let M=A=>{let L=A.target,w=m.current?.contains(L),k=p.current?.contains(L);!w&&!k&&g(false);};return document.addEventListener("mousedown",M,true),()=>document.removeEventListener("mousedown",M,true)},[f,u,g]);let b=M=>{r?.(M);},x=Be.useCallback(()=>{g(false);},[g]),h=Be.useCallback(()=>{r?.("");},[r]),[C,y]=Be.useState(null);Be.useEffect(()=>{if(f&&!u&&m.current){let M=null,A=()=>{let w=m.current?.getBoundingClientRect();w&&y({top:w.bottom+8,left:w.left,width:w.width});},L=()=>{M===null&&(M=requestAnimationFrame(()=>{A(),M=null;}));};return A(),window.addEventListener("resize",L),window.addEventListener("scroll",L,true),()=>{window.removeEventListener("resize",L),window.removeEventListener("scroll",L,true),M!==null&&cancelAnimationFrame(M);}}},[f,u]);let S=Be.useCallback(()=>{g(true);},[g]);if(u)return jsxRuntime.jsxs("div",{className:c,children:[jsxRuntime.jsx("button",{type:"button",onClick:S,className:"flex items-center justify-center w-10 h-10 rounded-lg hover:bg-background-hover transition-colors","aria-label":"Open search",children:jsxRuntime.jsx(H,{name:"MagnifyingGlass",size:"md"})}),jsxRuntime.jsxs(it,{isOpen:f,onClose:x,contentPadding:false,height:"80vh",children:[jsxRuntime.jsxs("div",{className:"flex items-center gap-2 px-4 pt-4",children:[jsxRuntime.jsx("div",{className:"flex-1",children:jsxRuntime.jsx(Rr,{value:t,onChange:b,placeholder:e,showSearchIcon:true,isClearable:!!t,onClear:h,reserveErrorSpace:false,autoFocus:true})}),jsxRuntime.jsx(Q,{variant:"icon",onPress:x,"aria-label":"Close search",className:"flex-shrink-0",children:jsxRuntime.jsx(H,{name:"X",size:"md"})})]}),jsxRuntime.jsx("div",{className:"mt-4",children:a})]})]},"mobile");let N=M=>{let L=M.target.tagName==="INPUT";if(M.key==="ArrowDown"&&f&&L){M.preventDefault();let w=p.current?.querySelector("[data-search-result]");w&&w.focus();}},T=M=>{let A=M.target;if(!A.hasAttribute("data-search-result"))return;let w=Array.from(p.current?.querySelectorAll("[data-search-result]")||[]),k=w.indexOf(A);if(M.key==="ArrowDown"){M.preventDefault(),M.stopPropagation();let O=Math.min(k+1,w.length-1);w[O]?.focus();}else if(M.key==="ArrowUp")if(M.preventDefault(),M.stopPropagation(),k===0)m.current?.querySelector("input")?.focus();else {let O=Math.max(k-1,0);w[O]?.focus();}else M.key==="Escape"&&(M.preventDefault(),M.stopPropagation(),g(false),m.current?.querySelector("input")?.focus());},E=f&&C&&typeof document<"u"?reactDom.createPortal(jsxRuntime.jsx("div",{ref:p,style:{position:"fixed",top:`${C.top}px`,left:`${C.left}px`,width:`${C.width}px`,zIndex:9999},role:"listbox",onKeyDown:T,children:jsxRuntime.jsx("div",{className:"bg-background-surface shadow-2xl border border-border-default rounded-lg overflow-hidden animate-in fade-in zoom-in-95 duration-200",children:jsxRuntime.jsx("div",{className:"overflow-y-auto",style:{maxHeight:i},children:a})})}),document.body):null,R=s==="elevated"?"bg-background-muted/50 border-border-subtle/50 focus-within:bg-background-body focus-within:border-border-focus focus-within:shadow-md backdrop-blur-sm transition-all duration-200":"";return jsxRuntime.jsxs("div",{ref:m,className:`relative w-full ${c||""}`,onKeyDown:N,children:[jsxRuntime.jsx(Rr,{value:t,onChange:b,placeholder:e,showSearchIcon:true,isClearable:!!t,onClear:()=>r?.(""),reserveErrorSpace:false,className:R,onFocus:()=>g(true)}),E]},"desktop")}function ey({message:e="No results found",suggestion:t,icon:r="MagnifyingGlass",className:o=""}){return jsxRuntime.jsxs("div",{className:`flex flex-col items-center justify-center py-12 px-4 text-center ${o}`,children:[jsxRuntime.jsx("div",{className:"text-text-secondary mb-3",children:jsxRuntime.jsx(H,{name:r,size:48})}),jsxRuntime.jsx("p",{className:"text-base font-medium text-text-primary mb-1",children:e}),t&&jsxRuntime.jsx("p",{className:"text-sm text-text-secondary max-w-xs",children:t})]})}function ry({count:e=3,className:t=""}){return jsxRuntime.jsx("div",{className:`flex flex-col ${t}`,children:Array.from({length:e}).map((r,o)=>jsxRuntime.jsxs("div",{className:"flex items-center gap-3 px-4 py-2.5",children:[jsxRuntime.jsx(j,{width:20,height:20,variant:"circle"}),jsxRuntime.jsxs("div",{className:"flex-1 min-w-0 space-y-2",children:[jsxRuntime.jsx(j,{width:"60%",height:16}),jsxRuntime.jsx(j,{width:"40%",height:12})]}),jsxRuntime.jsx(j,{width:16,height:16})]},o))})}function ny({title:e,count:t,isLoading:r,footer:o,children:n,className:a}){return jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("flex flex-col",a),children:[jsxRuntime.jsxs("div",{className:"flex items-baseline gap-1.5 px-4 pt-4 pb-2 border-t border-border-muted first:border-t-0",children:[jsxRuntime.jsx("h3",{className:"text-sm font-semibold text-text-primary",children:e}),!r&&t!==void 0&&jsxRuntime.jsx("span",{className:"text-xs text-text-secondary",children:t}),r&&jsxRuntime.jsx("span",{className:"text-xs text-text-secondary animate-pulse",children:"Loading..."})]}),jsxRuntime.jsx("div",{className:"flex flex-col",children:n}),o&&jsxRuntime.jsx("div",{className:"px-4 py-2 border-t border-border-subtle",children:o})]})}function ay({id:e,title:t,subtitle:r,metadata:o,icon:n,customIcon:a,onSelect:i,isFocused:s=false,className:c,testId:l}){return jsxRuntime.jsxs("div",{role:"option",tabIndex:0,onClick:()=>{i?.(e);},onKeyDown:m=>{let p=m.currentTarget;switch(m.key){case "Enter":case " ":{m.preventDefault(),i?.(e);break}case "ArrowDown":{m.preventDefault();let f=Array.from(document.querySelectorAll("[data-search-result]")),g=f.indexOf(p);g!==-1&&g<f.length-1&&f[g+1].focus();break}case "ArrowUp":{m.preventDefault();let f=Array.from(document.querySelectorAll("[data-search-result]")),g=f.indexOf(p);if(g>0)f[g-1].focus();else {let b=document.querySelector('input[type="text"][placeholder*="Search"]');b&&b.focus();}break}case "Escape":{m.preventDefault();let f=document.querySelector('input[type="text"][placeholder*="Search"]');f&&f.focus();break}}},"data-testid":l,"data-search-result":true,className:tailwindMerge.twMerge("group flex items-center gap-3 px-4 py-3 cursor-pointer outline-none transition-colors","text-text-primary hover:bg-background-hover","focus-visible:bg-background-muted focus-visible:outline-none","data-[focused]:bg-background-hover",s&&"bg-background-hover",c),"data-focused":s||void 0,children:[a?jsxRuntime.jsx("div",{className:"flex-shrink-0",children:a}):n?jsxRuntime.jsx("div",{className:"flex-shrink-0 text-text-secondary",children:jsxRuntime.jsx(H,{name:n,size:20})}):null,jsxRuntime.jsxs("div",{className:"flex-1 min-w-0",children:[jsxRuntime.jsxs("div",{className:"flex items-baseline gap-2",children:[jsxRuntime.jsx("span",{className:"font-medium text-text-primary truncate",children:t}),o&&jsxRuntime.jsx("span",{className:"text-xs text-text-secondary flex-shrink-0",children:o})]}),r&&jsxRuntime.jsx("div",{className:"text-sm text-text-secondary truncate mt-0.5",children:r})]}),jsxRuntime.jsx("div",{className:"flex-shrink-0 opacity-0 group-hover:opacity-100 group-focus-visible:opacity-100 group-data-[focused]:opacity-100 transition-opacity",children:jsxRuntime.jsx(H,{name:"ArrowRight",size:16,className:"text-text-secondary"})})]})}function iy({children:e,maxHeight:t="400px",className:r}){return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("overflow-y-auto overscroll-contain","divide-y divide-border-muted",r),style:{maxHeight:t},children:e})}function ly({placeholder:e="Search...",onClick:t,showShortcut:r=true,variant:o="default",className:n=""}){let a=typeof navigator<"u"&&navigator.platform.includes("Mac");return jsxRuntime.jsxs("button",{type:"button",onClick:t,className:`
|
|
30
30
|
flex items-center gap-3 w-full px-4 py-2.5 rounded-lg
|
|
31
31
|
transition-all duration-200 cursor-text
|
|
32
32
|
${{default:`
|
|
@@ -38,14 +38,14 @@ Valid keys: `+JSON.stringify(Object.keys(w),null," "));var L=F(V,D,z,Y,Z+"."+D,
|
|
|
38
38
|
backdrop-blur-sm
|
|
39
39
|
`}[o]}
|
|
40
40
|
${n}
|
|
41
|
-
`,"aria-label":"Open search",children:[jsxRuntime.jsx(B,{name:"MagnifyingGlass",size:18,className:"flex-shrink-0 transition-colors text-text-secondary"}),jsxRuntime.jsx("span",{className:`flex-1 text-left text-sm transition-colors ${o==="elevated"?"text-text-secondary font-normal":"text-text-disabled"}`,children:e}),r&&jsxRuntime.jsxs("div",{className:"hidden sm:flex items-center gap-1 flex-shrink-0",children:[jsxRuntime.jsx("kbd",{className:`px-2 py-1 text-xs font-medium rounded transition-colors ${o==="elevated"?"bg-background-surface/80 border border-border-muted text-text-secondary":"bg-background-muted border border-border-muted"}`,children:a?"\u2318":"Ctrl"}),jsxRuntime.jsx("kbd",{className:`px-2 py-1 text-xs font-medium rounded transition-colors ${o==="elevated"?"bg-background-surface/80 border border-border-muted text-text-secondary":"bg-background-muted border border-border-muted"}`,children:"K"})]})]})}var KP={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"},JP={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"}},jP={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"},qP={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"},XP={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"},ZP={start:"items-start",center:"items-center",end:"items-end",stretch:"items-stretch",baseline:"items-baseline"},$P={start:"justify-start",center:"justify-center",end:"justify-end",between:"justify-between",around:"justify-around",evenly:"justify-evenly"},QP={row:"grid-flow-row",col:"grid-flow-col",dense:"grid-flow-dense","row-dense":"grid-flow-row-dense","col-dense":"grid-flow-col-dense"},_P={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"},e5={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 Fh(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 kp({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:d}){let u=tailwindMerge.twMerge("grid",s||c?"":Fh(e,KP,JP),!r&&!o&&jP[t],r&&qP[r],o&&XP[o],ZP[n],$P[a],QP[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:u,style:m,children:d})}function Bh({span:e,className:t,children:r}){let o=tailwindMerge.twMerge(Fh(e,_P,e5),t);return jsxRuntime.jsx("div",{className:o,children:r})}kp.Item=Bh;function t5(e,t){return Ie__namespace.default.isValidElement(e)?e:zr({value:e,formatter:t,emptyClassName:"text-text-secondary",emptyText:"\u2014"})}function r5(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 o5={neutral:"text-text-primary",success:"text-feedback-success",warning:"text-feedback-warning",error:"text-feedback-error",info:"text-feedback-info"},n5=24,a5=20;function i5({item:e,dense:t,valueAlign:r}){let o=r5(e),n=o?o5[o]:"",a=e.stackOnMobile,i=typeof e.value=="string"&&e.value.length>n5&&!e.formatter&&!Ie__namespace.default.isValidElement(e.value),s=t5(e.value,e.formatter),c=i?_n(e.value,a5):null,l=typeof e.copyable=="function"?e.copyable(e.value):String(e.value),d=e.piiType&&e.piiEntity?{"data-pii-type":e.piiType,"data-pii-entity":e.piiEntity}:{},u=Object.keys(d).length>0,m=i?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(jt,{content:u?jsxRuntime.jsx("span",{...d,children:String(e.value)}):String(e.value),children:jsxRuntime.jsx("span",{className:tailwindMerge.twMerge("md:hidden",e.href?"hover:underline cursor-pointer":""),...d,children:c})}),jsxRuntime.jsx("span",{className:tailwindMerge.twMerge("hidden md:inline",e.href?"hover:underline cursor-pointer":""),...d,children:s})]}):jsxRuntime.jsx("span",{className:e.href?"hover:underline cursor-pointer":"",...d,children:s}),p=e.copyable?jsxRuntime.jsx(Lo,{value:l,size:"sm",children:jsxRuntime.jsx("span",{className:"sr-only",children:"Copy"})}):null,f=e.copyable&&(e.copyIconPosition==="left"||!e.copyIconPosition),g=e.copyable&&e.copyIconPosition==="right",x=jsxRuntime.jsxs("dd",{className:tailwindMerge.twMerge(t?"text-sm":"text-base","font-medium",a?r==="start"?"text-left":"text-left sm:text-right":r==="start"?"text-left":"text-right",n,e.disabled&&"opacity-50","overflow-hidden min-w-0"),children:[jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("inline-flex items-center gap-1 max-w-full",r==="start"?"justify-start":"justify-end"),children:[jsxRuntime.jsxs("span",{className:"inline-flex items-center gap-1 min-w-0",children:[m,e.iconRight]}),g&&p]}),e.meta&&jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("text-xs text-text-secondary mt-0.5",r==="start"?"text-left":"text-right"),children:e.meta})]}),v=jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsxs("dt",{className:tailwindMerge.twMerge(t?"text-xs":"text-sm","text-text-secondary truncate","flex items-center gap-1",e.disabled&&"opacity-50"),children:[e.iconLeft,jsxRuntime.jsx("span",{title:typeof e.label=="string"?e.label:void 0,children:e.label}),e.tooltip&&jsxRuntime.jsx(B,{name:"Question",size:10,className:"text-text-secondary","aria-label":"More information"})]}),f&&jsxRuntime.jsx("div",{className:"flex items-center",children:p}),e.href?jsxRuntime.jsx("a",{href:e.href,onClick:e.onAction,className:"block",children:x}):x]});return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("grid",a?"items-start sm:items-center":f?"items-center":"items-start",a?f?"grid-cols-1 gap-y-1 sm:grid-cols-[minmax(120px,1fr)_auto_auto] sm:gap-x-1 sm:gap-y-0":t?"grid-cols-1 gap-y-1 sm:grid-cols-[minmax(120px,1fr)_1fr] sm:gap-x-2 sm:gap-y-0":"grid-cols-1 gap-y-1 sm:grid-cols-[minmax(120px,1fr)_1fr] sm:gap-x-4 sm:gap-y-0":f?"grid-cols-[minmax(120px,1fr)_auto_auto] gap-x-1":t?"grid-cols-[minmax(120px,1fr)_1fr] gap-x-2":"grid-cols-[minmax(120px,1fr)_1fr] gap-x-4"),children:v})}function ql({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,d)=>jsxRuntime.jsxs("div",{className:"grid grid-cols-[1fr_auto] items-start gap-x-4",children:[jsxRuntime.jsx(J,{className:"h-4 w-24"}),jsxRuntime.jsx(J,{className:"h-5 w-16"})]},d))}):s?jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("text-sm text-feedback-error",c),children:s}):i||!e.length?jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("text-sm text-text-secondary",c),children:"No data available"}):jsxRuntime.jsx("dl",{className:tailwindMerge.twMerge("grid",t==="two-column"?"md:grid-cols-2 gap-x-6":"grid-cols-1",r?"gap-y-1":"gap-y-2",c),children:e.map((l,d)=>jsxRuntime.jsxs(Ie__namespace.default.Fragment,{children:[n&&d>0&&t==="one-column"&&jsxRuntime.jsx("div",{className:"col-span-full border-t border-border-default -mt-1 mb-1"}),jsxRuntime.jsx(i5,{item:l,dense:r,valueAlign:o})]},l.id))})}function Oh({node:e,renderNodeList:t}){let r=e.children||[],o=e.metadata&&Object.keys(e.metadata).length>0;return jsxRuntime.jsxs("div",{className:"flex flex-col h-full",children:[jsxRuntime.jsx("div",{className:"flex-shrink-0 px-4 py-4",children:jsxRuntime.jsx("h3",{className:"font-semibold text-text-primary text-lg",children:e.name})}),o&&jsxRuntime.jsx("div",{className:"flex-shrink-0 border-y border-border-default px-4 py-4 bg-background-muted",children:jsxRuntime.jsx(ql,{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 tt={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 Pp=Ie__namespace.createContext(null);function Hh(){let e=Ie__namespace.useContext(Pp);if(!e)throw new Error("Hierarchy components must be used within HierarchyExplorer");return e}function Gh({node:e,renderNode:t}){let{selectedId:r,selectNode:o,navigateToNode:n,variant:a,size:i,showBullets:s,rootNodeId:c,stickyRootNode:l,navigationStack:d,setRootNodeSticky:u,useSplitLayout:m}=Hh(),p=Ie__namespace.useRef(null),f=Ie__namespace.useRef(null),g=r===e.id,b=e.disabled||false,x=!!(e.children&&e.children.length>0),v=!!(e.metadata&&Object.keys(e.metadata).length>0),C=x||v,y=c!==void 0&&e.id!==void 0&&c===e.id&&d.length===0;Ie__namespace.useLayoutEffect(()=>{y&&l&&p.current&&f.current===null&&requestAnimationFrame(()=>{p.current&&(f.current=p.current.offsetTop);});},[y,l]),Ie__namespace.useEffect(()=>{if(!y||!l||!p.current)return;let I=p.current.parentElement;for(;I;){let w=window.getComputedStyle(I).overflowY;if(w==="auto"||w==="scroll")break;I=I.parentElement;}if(!I)return;let A=()=>{if(!p.current||f.current===null)return;let w=I.getBoundingClientRect(),k=I.scrollTop,H=w.height,G=p.current.offsetHeight,Y=f.current-k,Z=Y+G,V=Y<0,O=Z>H;V?u("top",e):O?u("bottom",e):u(null,null);};return I.addEventListener("scroll",A),A(),()=>{I.removeEventListener("scroll",A);}},[y,l,e,u]);let S=()=>{b||(m?o(e):C?n(e):o(e));},N=I=>{b||(I.key==="Enter"||I.key===" ")&&(I.preventDefault(),S());},T={isSelected:g,isDisabled:b,hasChildren:x,hasMetadata:v,level:0},M=tailwindMerge.twMerge("relative cursor-pointer group",b&&"opacity-50 cursor-not-allowed"),P=tailwindMerge.twMerge("absolute inset-0 transition-colors",y&&!g&&!b&&"group-hover:bg-background-hover",y&&g&&!b&&a==="subtle"&&"bg-background-selected group-hover:bg-background-hover",y&&g&&b&&a==="subtle"&&"bg-background-selected",y&&g&&!b&&a==="solid"&&"bg-action-brand group-hover:bg-action-brand-hover",y&&g&&b&&a==="solid"&&"bg-action-brand",!y&&a==="subtle"&&!g&&!b&&"group-hover:bg-background-hover",!y&&a==="subtle"&&g&&!b&&"bg-background-selected group-hover:bg-background-hover",!y&&a==="subtle"&&g&&b&&"bg-background-selected",!y&&a==="solid"&&!g&&!b&&"group-hover:bg-background-hover",!y&&a==="solid"&&g&&!b&&"bg-action-brand group-hover:bg-action-brand-hover",!y&&a==="solid"&&g&&b&&"bg-action-brand"),E=tailwindMerge.twMerge("relative flex items-center gap-2 text-text-primary hover:text-text-primary transition-colors",tt[i].node,y&&!g&&"font-semibold",a==="subtle"&&g&&"text-text-link-default",a==="solid"&&g&&"text-[color:var(--color-action-brand-text)]");return jsxRuntime.jsxs("div",{ref:p,className:M,onClick:S,onKeyDown:N,role:"treeitem","aria-selected":g,"aria-disabled":b,tabIndex:0,"data-node-id":e.id,children:[jsxRuntime.jsx("div",{className:P}),jsxRuntime.jsxs("div",{className:E,children:[s&&jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("relative rounded-full flex items-center justify-center flex-shrink-0 z-20",y&&"bg-action-brand border-action-brand",!y&&"bg-background-muted border border-border-default"),style:{width:tt[i].bullet,height:tt[i].bullet},children:e.icon&&jsxRuntime.jsx(B,{name:e.icon,size:tt[i].icon,weight:y?"fill":"regular",className:y?"text-[color:var(--color-action-brand-text)]":"text-text-primary"})}),jsxRuntime.jsx("div",{className:"flex-1 min-w-0",children:t?t(e,T):jsxRuntime.jsx("span",{className:"truncate",children:e.name})}),C&&!m&&jsxRuntime.jsx("div",{className:"flex-shrink-0",children:jsxRuntime.jsx(B,{name:"CaretRight",size:tt[i].icon,className:"text-text-secondary"})})]})]})}function Yh({items:e,showConnector:t=false,scrollContainerRef:r,showBullets:o,size:n,renderNode:a}){return jsxRuntime.jsxs("div",{className:"relative",ref:t&&r?r:void 0,children:[o&&e.length>0&&t&&jsxRuntime.jsx("div",{className:"absolute w-px bg-text-secondary z-10 pointer-events-none",style:{left:`${tt[n].spacing.x+tt[n].bullet/2}px`,top:`${tt[n].spacing.y+tt[n].bullet/2}px`,bottom:`${tt[n].spacing.y+tt[n].bullet/2}px`},"aria-hidden":"true"}),e.map(i=>jsxRuntime.jsx(Gh,{node:i,renderNode:a},i.id))]})}function Kh(){let[e,t]=Ie.useState(()=>typeof window>"u"?false:window.matchMedia("(prefers-reduced-motion: reduce)").matches);return Ie.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 Ei({children:e,mode:t="sync",presenceKey:r}){let o=r!==void 0&&Ie__namespace.default.isValidElement(e)?Ie__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 m5={instant:0,fast:150,normal:250,slow:350,slower:500},Rp={xs:"4px",sm:"8px",md:"16px"};function f5(e){return e?typeof e=="string"&&e in Rp?Rp[e]:typeof e=="number"?`${e}px`:e:Rp.sm}function Mi({children:e,direction:t,distance:r="sm",duration:o="normal",delay:n=0,className:a}){let i=Kh(),s=typeof o=="number"?o:m5[o],c=f5(r),l=p=>{switch(t){case "left":return {x:`-${p}`};case "right":return {x:p};case "up":return {y:`-${p}`};case "down":return {y:p}}},d=i?{opacity:0}:{opacity:0,...l(c)},u={opacity:1,x:0,y:0},m=i?{opacity:0}:{opacity:0,...l(c)};return jsxRuntime.jsx(framerMotion.motion.div,{className:a,initial:d,animate:u,exit:m,transition:{duration:i?0:s/1e3,delay:i?0:n/1e3,ease:[.4,0,.2,1]},children:e})}function $l({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",tt[r].node),children:[jsxRuntime.jsx(B,{name:"CaretLeft",size:tt[r].icon,className:"text-text-secondary group-hover:text-text-primary transition-colors"}),jsxRuntime.jsx("span",{className:"font-medium text-text-primary group-hover:text-text-link-hover transition-colors",children:o})]})})}function Ql({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",tt[n].node,i?o==="subtle"?"text-text-link-default":"bg-action-brand text-[color:var(--color-action-brand-text)]":"font-semibold",t==="top"&&"top-0 border-b shadow-[0_4px_6px_-1px_rgba(0,0,0,0.1)]",t==="bottom"&&"bottom-0 border-t shadow-[0_-4px_6px_-1px_rgba(0,0,0,0.1)]"),children:[i&&o==="subtle"&&jsxRuntime.jsx("div",{className:"absolute inset-0 bg-background-selected"}),jsxRuntime.jsxs("div",{className:"flex items-center gap-2 cursor-pointer relative z-10",children:[a&&jsxRuntime.jsx("div",{className:"flex-shrink-0 rounded-full flex items-center justify-center bg-action-brand border-action-brand",style:{width:tt[n].bullet,height:tt[n].bullet},children:e.icon&&jsxRuntime.jsx(B,{name:e.icon,size:tt[n].icon,weight:"fill",className:"text-[color:var(--color-action-brand-text)]"})}),jsxRuntime.jsx("div",{className:"flex-1 min-w-0",children:jsxRuntime.jsx("span",{className:"truncate",children:e.name})})]})]})}function Xh({currentItems:e,currentParent:t,navigationStack:r,selectedId:o,variant:n,size:a,showBullets:i,slideDirection:s,viewKey:c,hasHeight:l,rootNodeStickyState:d,renderNodeList:u,renderDetailContent:m,onNavigateBack:p}){return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[r.length===0&&d.position&&d.node&&jsxRuntime.jsx(Ql,{node:d.node,position:d.position,selectedId:o,variant:n,size:a,showBullets:i}),r.length>0&&jsxRuntime.jsx($l,{navigationStack:r,onNavigateBack:p,size:a}),jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("relative",l&&"overflow-auto h-full"),children:jsxRuntime.jsx(Ei,{mode:"wait",presenceKey:c,children:r.length===0?u(e,true):jsxRuntime.jsx(Mi,{direction:s,distance:"100%",duration:"normal",children:m(t)})})})]})}function Ep(e,t){for(let r of e){if(r.id===t)return r;if(r.children&&r.children.length>0){let o=Ep(r.children,t);if(o)return o}}return null}function _l(e){if(e!==void 0)return typeof e=="number"?`${e}px`:e}function Zh(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 Qh({data:e,currentItems:t,navigationStack:r,selectedId:o,variant:n,size:a,showBullets:i,rootNodeStickyState:s,renderNodeList:c,renderDetailContent:l,renderEmptyState:d,onNavigateBack:u}){let m=o?Ep(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(Ql,{node:s.node,position:s.position,selectedId:o,variant:n,size:a,showBullets:i}),r.length>0&&jsxRuntime.jsx($l,{navigationStack:r,onNavigateBack:u,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(Ei,{mode:"wait",presenceKey:m?.id||"empty",children:m?jsxRuntime.jsx(Mi,{direction:"left",duration:"fast",children:l(m)}):d?d():jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("text-text-secondary text-center",tt[a].node,"py-8"),children:"Select an item to view details"})})})]})}function _h({data:e,renderNode:t,onNodeSelect:r,onNavigate:o,selectedId:n,rootNodeId:a,stickyRootNode:i=true,height:s,minHeight:c,maxHeight:l,variant:d="subtle",size:u="md",showBullets:m=true,layout:p="auto",splitBreakpoint:f=768,renderEmptyState:g,renderDetailView:b,className:x,"aria-label":v="Hierarchy explorer"}){let[C,y]=Ie__namespace.useState(null),[S,N]=Ie__namespace.useState([]),[T,M]=Ie__namespace.useState("left"),[P,E]=Ie__namespace.useState({position:null,node:null}),{ref:I,width:A}=$n(),w=Ie__namespace.useMemo(()=>p==="split"?true:p==="single"?false:A>=f,[p,A,f]),k=n!==void 0?n:C;Ie__namespace.useEffect(()=>{Zh(e,a);},[e,a]);let H=S.length>0?S[S.length-1]:null,G=H?H.children||[]:e,z=Ie__namespace.useCallback(U=>{M("left"),N(K=>[...K,U]),o?.(U,[...S,U]);},[S,o]),Y=Ie__namespace.useCallback(()=>{M("right"),N(U=>{let K=U.slice(0,-1);return o?.(K.length>0?K[K.length-1]:null,K),K});},[o]),Z=Ie__namespace.useCallback(U=>{n===void 0&&y(U.id),r?.(U,[...S,U]);},[n,S,r]),V=Ie__namespace.useCallback((U,K)=>{E({position:U,node:K});},[]),O=Ie__namespace.useMemo(()=>({selectedId:k,selectNode:Z,navigateToNode:z,navigateBack:Y,rootNodeId:a,stickyRootNode:i,variant:d,size:u,showBullets:m,onNodeSelect:r,onNavigate:o,navigationStack:S,setRootNodeSticky:V,useSplitLayout:w}),[k,Z,z,Y,a,i,d,u,m,r,o,S,V,w]),R=Ie__namespace.useRef(null);Ie__namespace.useEffect(()=>{if(!a||!R.current||S.length>0||w)return;let U=R.current,K=setTimeout(()=>{let te=U.querySelector(`[data-node-id="${a}"]`);te&&te.scrollIntoView({behavior:"auto",block:"center",inline:"nearest"});},100);return ()=>clearTimeout(K)},[a,S.length,w]);let D={height:_l(s),minHeight:_l(c),maxHeight:_l(l)},F=s!==void 0||l!==void 0,L=H?H.id:"root",h=Ie__namespace.useCallback((U,K=false)=>jsxRuntime.jsx(Yh,{items:U,showConnector:K,scrollContainerRef:K?R:null,showBullets:m,size:u,renderNode:t}),[m,u,t]),W=Ie__namespace.useCallback(U=>U?b?b(U,h):jsxRuntime.jsx(Oh,{node:U,renderNodeList:h}):null,[b,h]);return jsxRuntime.jsx(Pp.Provider,{value:O,children:jsxRuntime.jsx("div",{ref:I,className:tailwindMerge.twMerge("select-none bg-background-surface rounded-lg border border-border-default relative",F&&"overflow-hidden",!F&&"h-full flex flex-col",w&&!F&&"flex-row",w&&F&&"flex",x),style:D,role:"tree","aria-label":v,children:w?jsxRuntime.jsx(Qh,{data:e,currentItems:G,navigationStack:S,selectedId:k,variant:d,size:u,showBullets:m,rootNodeStickyState:P,renderNodeList:h,renderDetailContent:W,renderEmptyState:g,onNavigateBack:Y}):jsxRuntime.jsx(Xh,{currentItems:G,currentParent:H,navigationStack:S,selectedId:k,variant:d,size:u,showBullets:m,slideDirection:T,viewKey:L,hasHeight:F,rootNodeStickyState:P,renderNodeList:h,renderDetailContent:W,onNavigateBack:Y})})})}function D5({isEntering:e,isExiting:t,className:r=""}){let o=["group","bg-background-surface","forced-colors:bg-[Canvas]","text-text-primary","shadow-lg","rounded-[var(--control-border-radius)]","bg-clip-padding","border","border-border-default","outline-none","p-4","min-w-[260px]","max-w-[360px]"].filter(Boolean).join(" "),n=e?["animate-in","fade-in","zoom-in-95","placement-bottom:slide-in-from-top-1","placement-top:slide-in-from-bottom-1","placement-left:slide-in-from-right-1","placement-right:slide-in-from-left-1","ease-out","duration-200"].join(" "):"",a=t?["animate-out","fade-out","zoom-out-95","placement-bottom:slide-out-to-top-1","placement-top:slide-out-to-bottom-1","placement-left:slide-out-to-right-1","placement-right:slide-out-to-left-1","ease-in","duration-150"].join(" "):"";return [o,n,a,r].filter(Boolean).join(" ")}var ey=({children:e,delay:t=700,closeDelay:r=0,isOpen:o,defaultOpen:n,onOpenChange:a,isDisabled:i=false,...s})=>jsxRuntime.jsx(reactAriaComponents.TooltipTrigger,{delay:t,closeDelay:r,isOpen:o,defaultOpen:n,onOpenChange:a,isDisabled:i,...s,children:e}),ty=({children:e,className:t,showArrow:r=false,offset:o,...n})=>jsxRuntime.jsxs(reactAriaComponents.Tooltip,{...n,offset:o??(r?12:8),className:reactAriaComponents.composeRenderProps(t,(i,s)=>D5({...s,className:i})),children:[r&&jsxRuntime.jsx(reactAriaComponents.OverlayArrow,{children:jsxRuntime.jsx("svg",{width:12,height:12,viewBox:"0 0 12 12",className:"block fill-background-surface stroke-border-default stroke-1 group-placement-left:-rotate-90 group-placement-right:rotate-90 group-placement-bottom:rotate-180 forced-colors:fill-[Canvas] forced-colors:stroke-[ButtonBorder]",children:jsxRuntime.jsx("path",{d:"M0 0 L6 6 L12 0"})})}),e]});ty.displayName="HoverCardContent";var E5=Object.assign(ey,{Root:ey,Content:ty});function L5(e,t){return zr({value:e,formatter:t,emptyClassName:"text-text-secondary",emptyText:"\u2014"})}function A5(e,t="upIsGood"){if(e===0)return "text-text-secondary";let r=e>0;return t==="upIsGood"?r?"text-feedback-success":"text-feedback-error":r?"text-feedback-error":"text-feedback-success"}function I5({points:e,className:t,ariaLabel:r}){let i=e.map(p=>typeof p.y=="number"?p.y:0);if(i.length===0)return null;let s=Math.min(...i),l=Math.max(...i)-s,d=p=>l===0?20/2:18-(p-s)/l*16,u=60/Math.max(e.length-1,1),m=e.map((p,f)=>{let g=2+f*u,b=d(typeof p.y=="number"?p.y:0);return `${f===0?"M":"L"} ${g} ${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 oy({label:e,value:t,formatter:r,delta:o,deltaPeriodLabel:n,deltaIntent:a="upIsGood",trend:i,status:s,helpText:c,size:l="md",orientation:d="vertical",isLoading:u,empty:m,error:p,onClick:f,className:g,renderValue:b,renderDelta:x,renderTrend:v}){let y={sm:{label:ct("labelSm"),value:ct("displaySm"),delta:ct("labelSm"),gap:"gap-1"},md:{label:ct("labelMd"),value:ct("displayMd"),delta:ct("bodySm"),gap:"gap-2"},lg:{label:ct("labelLg"),value:ct("displayLg"),delta:ct("bodyMd"),gap:"gap-3"}}[l],S=u?jsxRuntime.jsx(J,{className:"h-7 w-20"}):m?jsxRuntime.jsx("span",{className:"text-text-secondary",children:"\u2014"}):p?jsxRuntime.jsx("span",{className:ct("bodySm","text-feedback-error"),children:typeof p=="string"?p:"Error"}):b?b(t):L5(t,r),N=x?x(o):o!==void 0&&!u&&!m&&!p?jsxRuntime.jsxs("div",{className:Yt(y.delta,A5(o,a),"flex items-center gap-1"),children:[o>0&&jsxRuntime.jsx(B,{name:"ArrowUp",size:12}),o<0&&jsxRuntime.jsx(B,{name:"ArrowDown",size:12}),o===0&&jsxRuntime.jsx(B,{name:"Minus",size:12}),jsxRuntime.jsxs("span",{children:[o>0?"+":"",Math.abs(o).toFixed(1),"%"]}),n&&jsxRuntime.jsxs("span",{className:"text-text-secondary",children:["\xB7 ",n]})]}):u&&o!==void 0?jsxRuntime.jsx(J,{className:"h-4 w-24"}):null,T=v?v(i):i&&i.length>0&&!u&&!p?jsxRuntime.jsx(I5,{points:i,ariaLabel:`${e} trend`,className:m?"opacity-30":""}):u&&i!==void 0?jsxRuntime.jsx(J,{className:"h-5 w-16"}):null;return jsxRuntime.jsxs("section",{className:tailwindMerge.twMerge("flex min-w-0",d==="horizontal"?`items-center ${y.gap}`:`flex-col ${y.gap}`,f&&"cursor-pointer hover:bg-background-muted rounded-lg px-3 py-2 -mx-3 -my-2 transition-colors",g),"aria-labelledby":`kpi-${e}`,onClick:f,children:[jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[jsxRuntime.jsx("h3",{id:`kpi-${e}`,className:Yt(y.label,"text-text-secondary truncate"),children:u?jsxRuntime.jsx(J,{className:"h-4 w-24"}):e}),c&&!u&&jsxRuntime.jsx(B,{name:"Question",size:12,className:"text-text-secondary cursor-help","aria-label":"Help"})]}),jsxRuntime.jsxs("div",{className:"flex items-baseline gap-2",children:[jsxRuntime.jsx("output",{className:Yt(y.value,p?"text-feedback-error":"text-text-primary"),"aria-label":`Value: ${S}`,children:S}),s&&!u&&!p&&jsxRuntime.jsx(et,{variant:s.tone||"neutral",size:"sm",children:s.value})]}),(N||T)&&jsxRuntime.jsxs("div",{className:"flex items-center gap-3",children:[N,T]})]})}var ny={xs:"gap-2",sm:"gap-3",md:"gap-4",lg:"gap-6",xl:"gap-8"},ay={start:"items-start",center:"items-center",stretch:"items-stretch"};function iy(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 Ap({children:e,cols:t={base:1,sm:2,md:3,lg:4},gap:r="md",align:o="stretch",equalizeHeights:n=true,header:a,isLoading:i,scrollOnMobile:s=false,scrollItemMinWidth:c="140px",className:l}){let d=i?Ie__namespace.default.Children.map(e,p=>Ie__namespace.default.isValidElement(p)&&p.type&&typeof p.type!="string"&&"displayName"in p.type?Ie__namespace.default.cloneElement(p,{isLoading:true}):p):e,u=s?Ie__namespace.default.Children.map(d,p=>jsxRuntime.jsx("div",{className:"shrink-0",style:{minWidth:c},children:p})):d,m=s?tailwindMerge.twMerge("flex overflow-x-auto pb-2 -mb-2",ny[r],"sm:grid sm:overflow-visible sm:pb-0 sm:-mb-0",iy({...typeof t=="object"?t:{base:t},base:void 0}),ay[o],n&&"sm:auto-rows-fr"):tailwindMerge.twMerge("grid",iy(t),ny[r],ay[o],n&&"auto-rows-fr","w-full");return jsxRuntime.jsxs("section",{className:tailwindMerge.twMerge("w-full",l),"aria-label":"Key metrics",children:[a&&jsxRuntime.jsx("div",{className:"mb-4",children:a}),jsxRuntime.jsx("div",{className:m,children:s?u:d})]})}Ap.displayName="KpiGroup";function cy({items:e,renderItem:t,selectedId:r,onSelect:o,onHoverChange:n,isLoading:a=false,loadingState:i,error:s=null,renderLoadingSkeleton:c,loadingSkeletonCount:l=5,emptyMessage:d="No results found.",variant:u="relaxed",showDividers:m=true,onLoadMore:p,hasMore:f=false,enableVirtualization:g,estimatedItemSize:b=60,loadingIndicator:x,"aria-label":v,className:C="",style:y}){let[S,N]=Ie.useState(null),T=Ie.useRef(null),M=Ie.useRef(new Map),{scrollRef:P,loadMoreRef:E,virtualizer:I,virtualItems:A,isLoadingMore:w,computedLoadingState:k}=No({items:e,onLoadMore:p,hasMore:f,isLoading:a,loadingState:i,enableVirtualization:g,estimatedItemSize:b,overscan:5}),H=P??T,G=Ie.useCallback((h,W)=>{o?.(h,W);},[o]),z=Ie.useCallback((h,W)=>{N(h),n?.(h,W);},[n]),Y=Ie.useCallback((h,W)=>{let U=h?.id;return typeof U=="string"&&U?U:`item-${W}`},[]),Z=Ie.useCallback(h=>{if(!H.current||e.length===0)return;let W=document.activeElement,U=e.findIndex((j,ne)=>{let Se=Y(j,ne),oe=M.current.get(Se);return oe&&(oe===W||oe.contains(W))}),K=U;switch(h.key){case "ArrowDown":h.preventDefault(),K=U===-1?0:Math.min(U+1,e.length-1);break;case "ArrowUp":h.preventDefault(),K=U===-1?0:Math.max(U-1,0);break;case "Home":h.preventDefault(),K=0;break;case "End":h.preventDefault(),K=e.length-1;break;default:return}let te=Y(e[K],K);M.current.get(te)?.focus();},[e,Y,H]),V=["flex flex-col","bg-background-surface","focus:outline-none focus:ring-2 focus:ring-border-focus focus:ring-offset-2"],O={dense:"gap-0",relaxed:"gap-0"},R=m?"divide-y divide-border-muted":"",D=[...V,O[u],R,C].filter(Boolean).join(" ");if(k==="loading"||a&&e.length===0){let h=c?jsxRuntime.jsx(jsxRuntime.Fragment,{children:Array.from({length:l}).map((W,U)=>jsxRuntime.jsx("div",{children:c()},`skeleton-${U}`))}):jsxRuntime.jsx(Df,{count:l,className:"space-y-0",children:jsxRuntime.jsxs("div",{className:"flex items-center gap-3 px-4 py-3",children:[jsxRuntime.jsx(J,{width:16,height:16,variant:"circle"}),jsxRuntime.jsxs("div",{className:"flex-1 space-y-2",children:[jsxRuntime.jsx(J,{width:"75%",height:16}),jsxRuntime.jsx(J,{width:"50%",height:14})]}),jsxRuntime.jsx(J,{width:60,height:20})]})});return jsxRuntime.jsx("div",{ref:H,className:D,style:y,role:"listbox","aria-label":v,"aria-busy":"true","aria-live":"polite",children:h})}if(s)return jsxRuntime.jsx("div",{ref:H,className:D,style:y,role:"listbox","aria-label":v,"aria-live":"polite",children:jsxRuntime.jsx("div",{className:"p-4 text-center text-feedback-error-text",children:s})});if(e.length===0)return jsxRuntime.jsx("div",{ref:H,className:D,style:y,role:"listbox","aria-label":v,"aria-live":"polite",children:jsxRuntime.jsx("div",{className:"p-4 text-center text-text-secondary",children:d})});let L=I?A?.map(h=>({virtualItem:h,item:e[h.index],index:h.index}))||[]:e.map((h,W)=>({item:h,index:W,virtualItem:null}));return jsxRuntime.jsxs("div",{ref:H,className:D,style:{...y,...p&&{overflow:"auto",height:y?.height||"600px"}},role:"listbox","aria-label":v,"aria-live":"polite",onKeyDown:Z,tabIndex:0,children:[I&&jsxRuntime.jsxs("div",{style:{height:`${I.getTotalSize()}px`,width:"100%",position:"relative"},children:[L.map(({virtualItem:h,item:W,index:U})=>{if(!h)return null;let K=Y(W,U),te=r===K,ue=S===K,j={id:K,role:"option","aria-selected":te,"aria-current":te?"page":void 0,tabIndex:te||r==null&&U===0?0:-1,onClick:ne=>G(ne,W),onMouseEnter:ne=>z(ne,W),onMouseLeave:ne=>z(null),onFocus:ne=>z(ne,W),onBlur:ne=>z(null),ref:ne=>{ne?M.current.set(K,ne):M.current.delete(K);}};return jsxRuntime.jsx("div",{"data-index":h.index,ref:I.measureElement,style:{position:"absolute",top:0,left:0,width:"100%",transform:`translateY(${h.start}px)`},children:t({item:W,index:U,isSelected:te,isHovered:ue,rowProps:j})},K)}),p&&f&&jsxRuntime.jsx("div",{ref:E,style:{position:"absolute",top:`${I.getTotalSize()}px`,left:0,width:"100%",height:1,pointerEvents:"none"}}),w&&jsxRuntime.jsx("div",{style:{position:"absolute",top:`${I.getTotalSize()}px`,left:0,width:"100%"},children:x||jsxRuntime.jsx(hr,{state:"loading-more"})})]}),!I&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[L.map(({item:h,index:W})=>{let U=Y(h,W),K=r===U,te=S===U,ue={id:U,role:"option","aria-selected":K,"aria-current":K?"page":void 0,tabIndex:K||r==null&&W===0?0:-1,onClick:j=>G(j,h),onMouseEnter:j=>z(j,h),onMouseLeave:j=>z(null),onFocus:j=>z(j,h),onBlur:j=>z(null),ref:j=>{j?M.current.set(U,j):M.current.delete(U);}};return jsxRuntime.jsx("div",{children:t({item:h,index:W,isSelected:K,isHovered:te,rowProps:ue})},U)}),p&&f&&jsxRuntime.jsx("div",{ref:E,style:{height:1}}),w&&(x||jsxRuntime.jsx(hr,{state:"loading-more"}))]})]})}function uy({id:e,title:t,subtitle:r,meta:o,leading:n,trailing:a,isSelected:i=false,isHovered:s=false,disabled:c=false,href:l,size:d="md",onClick:u,onMouseEnter:m,onMouseLeave:p,className:f="",style:g,piiTitleType:b,piiSubtitleType:x,piiEntity:v}){let C=()=>{!c&&u&&u(e);},y=()=>{!c&&m&&m(e);},S=()=>{!c&&p&&p(e);},T={sm:{container:"px-3 py-2 gap-2",title:"text-sm leading-tight",subtitle:"text-xs leading-tight",meta:"text-xs leading-tight",subtitleSpacing:"mt-1",metaSpacing:"mt-1"},md:{container:"px-4 py-3 gap-3",title:"text-base leading-tight",subtitle:"text-sm leading-tight",meta:"text-sm leading-tight",subtitleSpacing:"mt-1",metaSpacing:"mt-1"},lg:{container:"px-4 py-4 gap-3",title:"text-lg leading-tight",subtitle:"text-base leading-tight",meta:"text-sm leading-tight",subtitleSpacing:"mt-1",metaSpacing:"mt-1"},xl:{container:"px-5 py-5 gap-4",title:"text-xl leading-tight",subtitle:"text-base leading-tight",meta:"text-base leading-tight",subtitleSpacing:"mt-1.5",metaSpacing:"mt-1.5"}}[d],M=["flex items-center w-full text-left transition-all duration-200 ease-in-out",T.container,"border-l-2 border-l-transparent","rounded-sm",Ke()],P=[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"],E=[...M,...P,f].filter(Boolean).join(" "),I=jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[n&&jsxRuntime.jsx("div",{className:"flex-shrink-0 flex items-center justify-center",children:n}),jsxRuntime.jsx("div",{className:"flex-1 min-w-0",children:jsxRuntime.jsx("div",{className:"flex items-start justify-between gap-2",children:jsxRuntime.jsxs("div",{className:"flex-1 min-w-0",children:[jsxRuntime.jsx("div",{className:`text-text-primary font-medium truncate ${T.title}`,title:typeof t=="string"?t:void 0,"data-pii-type":b&&v?b:void 0,"data-pii-entity":b&&v?v:void 0,children:t}),r&&jsxRuntime.jsx("div",{className:`text-text-secondary truncate ${T.subtitle} ${T.subtitleSpacing}`,title:typeof r=="string"?r:void 0,"data-pii-type":x&&v?x:void 0,"data-pii-entity":x&&v?v:void 0,children:r}),o&&jsxRuntime.jsx("div",{className:`text-text-secondary ${T.meta} ${T.metaSpacing}`,children:o})]})})}),a&&jsxRuntime.jsx("div",{className:"flex-shrink-0",children:a})]});return l?jsxRuntime.jsx("a",{href:l,className:E,style:g,onMouseEnter:y,onMouseLeave:S,"aria-selected":i,"aria-current":i?"page":void 0,tabIndex:c?-1:0,children:I}):jsxRuntime.jsx("button",{type:"button",className:E,style:g,onClick:C,onMouseEnter:y,onMouseLeave:S,disabled:c,"aria-selected":i,tabIndex:c?-1:0,children:I})}function py({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:d}){let u={sm:"w-64",md:"w-80",lg:"w-96",xl:"w-[28rem]","2xl":"w-[32rem]",auto:"w-auto"},m={neutral:"bg-background-surface",subtle:"bg-background-subtle",brand:"bg-background-brand"},p={none:"",sm:"shadow-sm",md:"shadow-md"},f=tailwindMerge.twMerge("flex flex-col h-full",u[o],m[n],p[a],i&&"border-r border-border-muted",l);return jsxRuntime.jsxs("div",{className:f,style:d,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 Fp=[{type:"navigation",position:"bottom-right",showCompass:true,showGeolocate:true,showResetZoom:true}];var my="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJcAAACXCAYAAAAYn8l5AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAABtCSURBVHgB7Z2Jkty0GoV7hlz2HcIeSPGkPCmELRC2sO8kN5+L03XmR7IlW3LbSZ+qrp7pdtuydPTvki9u3Lhx/7ASLi4uDvfv973cvXv3Dn/++efh2rVrx2vyAo899tjwThu8Hfo+1d5SLLkv2vXzzz8fnnvuucPff/99eFhw7bAi/vnnn8Pl5eWVz3IDOHewGKgnnnjiCoEgHH///vvvh8cff3z4nrbE63lb+LvFQHMe2jR2P7p2bNMe4f24Grk02LkOjCQTCfmNE3KKdLo5l1jCk08+efjtt98OP/300yAlUgRTW3RdiLkEJZOEa4hccfItuWaN5O2B1cg1daNxEHzg4wCj8koGLXVOCMbnP/zww+GZZ54ZpIoGV8eLoC3IVYNWZPDzRIncG36t5dNkZ5CKfPHFFw9//PHH4ddffz3aYi7tJGkjkXvZjCJy6/P7/bRAzaTeJblaSJO//vrr8PTTTw/2F1IMSCX5gHAtV1VzpEBJe//3v/8NNl4vKdNDKo4dM5gVhxXR21OsgWwc3l944YXBFsPglxQDfM9rjXbTDqnnhwWrkStlYJ8aag8Ekv31448/DpJK3021me9RnU7KiOhkt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1pwpF3Z/Tq1kX1oKDcglalt0Mq5G+Zzha8dbY+rvA7Erz2Jf1VQQm9t9zxzU0kLlDp2uX9IwZVZxyO2G19y9ieD165lH9Fosk8DI5sufSSLSZBQSF3maHFuDcVGsLHjqrgKZLUX5JqjGehdg3ULYhq7fAkpy5voaGxxtFgmygtNBJMSfalN4Ghq0DVGhNw+TbZUJBvl6KdlImJXLsphrcJtyi/rBx7bNiPF3drqCfiaI7S/0yAfzPgdNJKqQ+lwh1XfSmYClPT+R2b/03chQhh/fQH7Dav+EOO2oojEn8WdyuYzZbw6+e/WpX6eGYK0xR3BJhumCL/0lYS1EWShiFKXp4HOjIdwcvzNzjuNg4uobmh3lmZNljg+RHIokP7iJ+//S9/0JF4UWgALQSUifcPn+AvCxKcp8u7vR5XAiSC3WYDByQWZ1myzFUtOgbu577+f5ZPq/B5Pf+nAAAAAElFTkSuQmCC";function hy(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 W5="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 yy(e){return tailwindMerge.twMerge(W5,e)}function jo({position:e="top-right",className:t,style:r,children:o}){return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge(hy(e),t),style:r,children:o})}function gr({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",...d}){let u=tailwindMerge.twMerge(yy(),s&&"bg-action-brand hover:bg-action-brand-hover border-action-brand",n),m=tailwindMerge.twMerge(a,s&&"text-text-inverse");return jsxRuntime.jsx(_,{...d,className:u,onPress:r,variant:i,size:"sm",isDisabled:o,"aria-label":c,"aria-pressed":s||void 0,type:"button",children:jsxRuntime.jsx(B,{name:e,size:t,className:m,weight:l})})}var j5=e=>[{id:"streets",name:"Streets",description:"Standard street map with traffic data",preview:e?by:xy},{id:"satellite",name:"Satellite",description:"Aerial imagery with street labels",preview:gy},{id:"neutral",name:"Neutral",description:"Clean design with light/dark variants",preview:e?my:fy}];function q5({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 Sy({position:e="bottom-left",className:t,style:r,currentMapType:o="streets",onMapTypeChange:n,layers:a=[],onLayerToggle:i,onClearAll:s}){let{isDarkTheme:c}=Kt(),{isMobile:l}=Gt(),[d,u]=Ie.useState(false),m=j5(c),p=b=>{n?.(b);},f=a.filter(b=>b.legend),g=jsxRuntime.jsxs("div",{className:l?"space-y-6 pb-6":"space-y-6",children:[jsxRuntime.jsxs("div",{children:[jsxRuntime.jsx("div",{className:"text-sm font-semibold text-text-primary mb-3",children:"Map type"}),jsxRuntime.jsx("div",{className:"grid grid-cols-3 gap-3",children:m.map(b=>jsxRuntime.jsxs("button",{type:"button",onClick:()=>p(b.id),className:"flex flex-col items-center space-y-2 p-3 rounded-lg text-center hover:bg-background-muted transition-colors border border-transparent "+(o===b.id?"bg-background-muted border-border":"hover:border-border"),children:[jsxRuntime.jsx("div",{className:"w-12 h-12 rounded-lg overflow-hidden bg-background-surface "+(o===b.id?"border-2 border-action-default":"border border-border-default"),children:jsxRuntime.jsx("img",{src:b.preview,alt:`${b.name} map preview`,className:"w-full h-full object-cover"})}),jsxRuntime.jsx("div",{className:"text-sm "+(o===b.id?"font-bold text-text-primary":"font-normal text-text-secondary"),children:b.name})]},b.id))})]}),f.length>0&&jsxRuntime.jsxs("div",{children:[jsxRuntime.jsxs("div",{className:"flex items-center justify-between mb-3",children:[jsxRuntime.jsx("div",{className:"text-sm font-semibold text-text-primary",children:"Map details"}),s&&jsxRuntime.jsx("button",{type:"button",onClick:s,className:"text-xs text-text-secondary hover:text-text-primary transition-colors",children:"Clear all"})]}),jsxRuntime.jsx("div",{className:"space-y-2",children:f.map(b=>jsxRuntime.jsx(yn,{isSelected:b.visible!==false,onChange:()=>i?.(b.id),children:jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[b.legend&&jsxRuntime.jsx(q5,{type:b.legend.swatch,color:b.legend.color}),jsxRuntime.jsx("span",{className:"text-sm text-text-primary",children:b.legend?.label})]})},b.id))})]})]});return jsxRuntime.jsx(jo,{position:e,className:t,style:r,children:jsxRuntime.jsx("div",{className:"relative",children:l?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(gr,{icon:"Stack",ariaLabel:"Map layers and settings",onPress:()=>u(true)}),jsxRuntime.jsx(ot,{isOpen:d,onClose:()=>u(false),title:"Map layers",animationVariant:"scale",children:g})]}):jsxRuntime.jsxs(reactAriaComponents.DialogTrigger,{children:[jsxRuntime.jsx(gr,{icon:"Stack",ariaLabel:"Map layers and settings"}),jsxRuntime.jsx(rt,{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 Ny({position:e="top-right",className:t,style:r,onToggle:o,isActive:n=false}){return jsxRuntime.jsx(jo,{position:e,className:tailwindMerge.twMerge("md:hidden",t),style:r,children:jsxRuntime.jsx(gr,{icon:"ListDashes",onPress:o,isActive:n,ariaLabel:n?"Hide list view":"Show list view"})})}var Q5={sm:"gap-2",md:"gap-4",lg:"gap-6"};function oc({position:e="top-right",className:t,style:r,children:o,orientation:n="vertical",spacing:a="md"}){return jsxRuntime.jsx(jo,{position:e,style:r,children:jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("flex",n==="vertical"?"flex-col":"flex-row",Q5[a],t),children:o})})}function Ty({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[d,u]=Ie.useState(false),m=Ie.useRef(true);Ie.useEffect(()=>()=>{m.current=false;},[]);let p=()=>{c?c():e.current&&e.current.easeTo({bearing:0,duration:500});},f=async()=>{if(!d)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{}u(true),navigator.geolocation.getCurrentPosition(C=>{if(!m.current)return;let{latitude:y,longitude:S}=C.coords;e.current&&e.current.flyTo({center:[S,y],zoom:15,duration:2e3}),u(false);},C=>{if(m.current){switch(console.warn("Geolocation error:",{code:C.code,message:C.message,PERMISSION_DENIED:C.PERMISSION_DENIED,POSITION_UNAVAILABLE:C.POSITION_UNAVAILABLE,TIMEOUT:C.TIMEOUT}),C.code){case C.PERMISSION_DENIED:console.warn("Location access denied. Please enable location services in your browser settings.");break;case C.POSITION_UNAVAILABLE:console.warn("Location information unavailable.");break;case C.TIMEOUT:console.warn("Location request timed out.");break;default:console.warn("Error getting location:",C.message);break}u(false);}},{enableHighAccuracy:true,timeout:1e4,maximumAge:0});}};if(!n&&!a&&!i)return null;let g=!i&&n,b=!i&&!n&&a,x=!a&&n;return jsxRuntime.jsxs(oc,{position:t,className:r,style:o,spacing:"sm",children:[i&&jsxRuntime.jsx(gr,{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(gr,{icon:"Compass",onPress:p,ariaLabel:"Reset map orientation",className:tailwindMerge.twMerge(!g&&"rounded-t-none border-t-0",!x&&"rounded-b-none border-b-0")}),a&&jsxRuntime.jsx(gr,{icon:d?"Spinner":"NavigationArrow",onPress:f,isDisabled:d,ariaLabel:"Go to my location",iconClassName:tailwindMerge.twMerge("text-text-primary",d&&"animate-spin"),className:tailwindMerge.twMerge(!b&&"rounded-t-none border-t-0",!b&&n&&"lg:rounded-t lg:border-t")})]})}function Ey({position:e="top-left",className:t,style:r,onSearch:o,placeholder:n="Search places...",showSearchInput:a=true}){let[i,s]=Ie.useState(false),[c,l]=Ie.useState(""),d=()=>{a?s(!i):o&&o("");},u=p=>{p.preventDefault(),o&&c.trim()&&(o(c.trim()),s(false));},m=p=>{p.key==="Escape"&&s(false);};return jsxRuntime.jsx(jo,{position:e,className:t,style:r,children:jsxRuntime.jsxs("div",{className:"relative",children:[jsxRuntime.jsx(gr,{icon:"MagnifyingGlass",onPress:d,ariaLabel:"Search"}),i&&a&&jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("absolute top-12 left-0 min-w-64","bg-background-surface border border-border rounded-lg shadow-xl p-3"),children:jsxRuntime.jsx("form",{onSubmit:u,children:jsxRuntime.jsxs("div",{className:"flex items-center space-x-2",children:[jsxRuntime.jsx("input",{type:"text",value:c,onChange:p=>l(p.target.value),onKeyDown:m,placeholder:n,className:tailwindMerge.twMerge("flex-1 px-3 py-2 text-sm rounded border","bg-background border-border text-text-primary placeholder:text-text-secondary","focus:outline-none focus:ring-2 focus:ring-action-brand"),autoFocus:true}),jsxRuntime.jsx(_,{type:"submit",variant:"primary",size:"sm",className:"px-3 py-2",children:"Search"})]})})})]})})}var o4={navigation:"bottom-right",layers:"bottom-left",search:"top-left",list:"top-right",custom:"top-right"};function Vp(e){return e.position??o4[e.type]}function My(e,t,r){let o=Vp(e),n=e.id??`${e.type}-${t}`;switch(e.type){case "navigation":{let i=e.showResetZoom!==false&&r.showResetButton;return jsxRuntime.jsx(Ty,{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(Sy,{position:o,currentMapType:e.currentMapType,onMapTypeChange:e.onMapTypeChange,layers:e.layers??r.layers,onLayerToggle:e.onLayerToggle,onClearAll:e.onClearAll,style:e.style,className:e.className},n);case "search":return jsxRuntime.jsx(Ey,{position:o,onSearch:e.onSearch,placeholder:e.placeholder,showSearchInput:e.showSearchInput,style:e.style,className:e.className},n);case "list":return jsxRuntime.jsx(Ny,{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 zp(e,t){let r=e.reduce((n,a,i)=>{let s=Vp(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(My(a[0].control,a[0].index,t));continue}let i={position:"static",top:"auto",right:"auto",bottom:"auto",left:"auto"};o.push(jsxRuntime.jsx(oc,{position:n,spacing:"sm",children:a.map(({control:s,index:c})=>{let l={...s,style:{...s.style,...i}};return My(l,c,t)})},`group-${n}`));}return o}function ac(){try{if(typeof process<"u"){let e=process.env.MAPBOX_ACCESS_TOKEN;if(e)return e}}catch{}try{if(typeof process<"u"){let e=process.env.NEXT_PUBLIC_MAPBOX_ACCESS_TOKEN;if(e)return e}}catch{}try{let e=undefined.VITE_MAPBOX_ACCESS_TOKEN;if(e)return e}catch{}}var Op={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 Hp(e){return e.kind==="vector"}function Wp(e){return e.kind==="geojson"}function Gp(e){return e.kind==="customPins"}function Up(e){return e.kind==="raster"}function Fi(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(a4,{spec:o,mapType:t},o.id);case "geojson":return jsxRuntime.jsx(s4,{spec:o,mapType:t},o.id);case "customPins":return jsxRuntime.jsx(l4,{spec:o,mapType:t},o.id);case "raster":return jsxRuntime.jsx(c4,{spec:o},o.id);case "clusteredVector":return jsxRuntime.jsx(i4,{spec:o,mapType:t},o.id);default:return console.warn("[Layers] Unknown layer kind:",o.kind),null}})})}function a4({spec:e,mapType:t}){let{colorMode:r}=Kt(),o=Ie.useMemo(()=>Fy(e.style,e.renderAs,r,t),[e.style,e.renderAs,r,t]),n=Ie.useMemo(()=>({visibility:e.visible===false?"none":"visible"}),[e.visible]),a={id:e.id,type:Iy(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(y4.Source,{...s,children:jsxRuntime.jsx(y4.Layer,{...a})},e.tileset)}function i4({spec:e}){let{colorMode:t,isDarkTheme:r}=Kt(),o=1.25,n=9,a=3,i=n*1.4,s=.2,c=[0,5],l=Ie.useMemo(()=>r?{clusters:e.clusterStyle?.color?Fr(e.clusterStyle.color):"#000000",shadow:e.clusterStyle?.shadowColor||"rgba(0, 0, 0, 0.5)",point:{fill:e.pointStyle?.color?Fr(e.pointStyle.color):"#000000",stroke:e.pointStyle?.borderColor||"#ffffff",shadow:"rgba(0, 0, 0, 0.5)"},text:{onCluster:"#ffffff"},selected:{fill:e.selectedStyle?.color?Fr(e.selectedStyle.color):"#444ae1"}}:{clusters:e.clusterStyle?.color?Fr(e.clusterStyle.color):"#000000",shadow:e.clusterStyle?.shadowColor||"rgba(0, 0, 0, 0.3)",point:{fill:e.pointStyle?.color?Fr(e.pointStyle.color):"#000000",stroke:e.pointStyle?.borderColor||"#ffffff",shadow:"rgba(0, 0, 0, 0.3)"},text:{onCluster:"#ffffff"},selected:{fill:e.selectedStyle?.color?Fr(e.selectedStyle.color):"#444ae1"}},[r,t,e.clusterStyle,e.pointStyle,e.selectedStyle]),d=10,u=30,m=Math.log(2),p=Math.log(2e3),f=(e.clusterStyle?.sizes?.length??0)>0,g=Ie.useMemo(()=>f?e.clusterStyle.sizes.map(({threshold:S,radius:N})=>({threshold:S,radius:N,color:l.clusters})):[{threshold:30,radius:20,color:l.clusters},{threshold:200,radius:35,color:l.clusters},{threshold:1e3,radius:50,color:l.clusters}],[f,e.clusterStyle?.sizes,l.clusters]),b=S=>f?["step",["get","point_count"],S[0].radius,...S.flatMap(({threshold:N,radius:T})=>[N,T])]:["interpolate",["linear"],["ln",["max",2,["get","point_count"]]],m,d,p,u],x=S=>f?["step",["get","point_count"],S[0].radius*o,...S.flatMap(({threshold:N,radius:T})=>[N,T*o])]:["interpolate",["linear"],["ln",["max",2,["get","point_count"]]],m,d*o,p,u*o],v=e.tileset.startsWith("mapbox://"),C={id:`${e.id}-source`,type:"vector"};v?C.url=e.tileset:(C.tiles=[e.tileset],C.minzoom=0,C.maxzoom=22);let y=Ie.useMemo(()=>{let S=e.pointStyle?.radius??n,N=e.pointStyle?.borderWidth??a,T=e.selectedStyle?.radius??n*1.5,M=P=>{let E={...P};return e.minZoom!==void 0&&(E.minzoom=e.minZoom),e.maxZoom!==void 0&&(E.maxzoom=e.maxZoom),E};return [M({id:`${e.id}-cluster-shadows`,type:"circle","source-layer":e.sourceLayer,filter:["==",["get","cluster"],true],paint:{"circle-radius":x(g),"circle-color":l.shadow,"circle-blur":.5,"circle-translate":[0,8]}}),M({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}}),M({id:`${e.id}-clusters`,type:"circle","source-layer":e.sourceLayer,filter:["==",["get","cluster"],true],paint:{"circle-radius":b(g),"circle-color":["step",["get","point_count"],g[0].color,...g.flatMap(({threshold:P,color:E})=>[P,E])]}}),M({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}}),M({id:`${e.id}-points`,type:"circle","source-layer":e.sourceLayer,filter:["all",["!=",["get","cluster"],true],["!=",["get","id"],e.selectedId||"selected"]],paint:{"circle-radius":S,"circle-color":l.point.fill,"circle-stroke-width":N,"circle-stroke-color":l.point.stroke}}),M({id:`${e.id}-selected-point`,type:"circle","source-layer":e.sourceLayer,filter:["==",["get","id"],e.selectedId||"selected"],paint:{"circle-radius":T,"circle-color":l.selected.fill,"circle-stroke-width":N,"circle-stroke-color":"#ffffff"}}),...e.pointStyle?.icon?[M({id:`${e.id}-points-icon`,type:"symbol","source-layer":e.sourceLayer,filter:["all",["!=",["get","cluster"],true],["!=",["get","id"],e.selectedId||"selected"]],layout:{"icon-image":e.pointStyle.icon.name,"icon-size":Ly(S,e.pointStyle.icon.size),"icon-allow-overlap":true,"icon-ignore-placement":true}}),M({id:`${e.id}-selected-point-icon`,type:"symbol","source-layer":e.sourceLayer,filter:["==",["get","id"],e.selectedId||"selected"],layout:{"icon-image":e.pointStyle.icon.name,"icon-size":Ly(T,e.pointStyle.icon.size),"icon-allow-overlap":true,"icon-ignore-placement":true}})]:[]]},[e.id,e.sourceLayer,e.selectedId,e.minZoom,e.maxZoom,e.pointStyle,e.selectedStyle,g,l,n,a,i,s]);return jsxRuntime.jsx(y4.Source,{...C,children:y.map(S=>jsxRuntime.jsx(y4.Layer,{...S},S.id))},e.tileset)}function s4({spec:e,mapType:t}){let{colorMode:r}=Kt(),o=Ie.useMemo(()=>typeof e.data=="string"?null:e.data,[e.data]),n=Ie.useMemo(()=>Fy(e.style,e.renderAs,r,t,o),[e.style,e.renderAs,r,t,o]),a=Ie.useMemo(()=>({visibility:e.visible===false?"none":"visible"}),[e.visible]),i=Ie.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:Iy(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(y4.Source,{...s,children:jsxRuntime.jsx(y4.Layer,{...c})})}function l4({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(y4.Marker,{longitude:a,latitude:i,anchor:"bottom",children:jsxRuntime.jsx(r,{...s})},`${e.id}-${n}`)})})}function c4({spec:e}){let t=Ie.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(y4.Source,{...r,children:jsxRuntime.jsx(y4.Layer,{...o})},e.tileset)}var Xo="#666";function Ly(e,t){let r=t??64;return e*2/r}function Iy(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 Fy(e,t,r,o,n){if(!e)return {};let a={};if(e.color){let i=Fr(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"]=Ay(e.width)),e.radius&&t==="circle"&&(a["circle-radius"]=Ay(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?Fr(e.borderColor,r,n):Fr(e.color||"#000",r,n)),t==="circle"&&e.borderWidth){a["circle-stroke-width"]=e.borderWidth;let i=e.borderColor?Fr(e.borderColor,r,n):kt(`map-${o}-border`,"#ffffff");a["circle-stroke-color"]=i;}return a}function d4(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(Fr(i));return n.push(Xo),n}function u4(e,t){let r=bf(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=fd(r),n=["match",["get",e]];for(let[a,i]of Object.entries(o))n.push(a),n.push(i);return n.push(Xo),n}function p4(e,t="viridis",r,o){let n=gd(r,e),a;if(o&&o!=="auto")a=o;else {if(a=bd(n),n.length===0)return console.warn(`[Layers] No numeric values found for property "${e}"`),Xo;console.log(`[Layers] Auto-calculated sequential scale for "${e}": ${a.min} to ${a.max}`);}let i=xd(t),s=["interpolate",["linear"],["get",e]];return i.forEach((c,l)=>{let d=l/(i.length-1),u=a.min+d*(a.max-a.min);s.push(u,c);}),s}function m4(e,t="redYellowBlue",r,o,n){let a=gd(r,e),i=xf(a,o),s;if(n&&n!=="auto")s=n;else {if(s=bd(a),a.length===0)return console.warn(`[Layers] No numeric values found for property "${e}"`),Xo;console.log(`[Layers] Auto-calculated diverging scale for "${e}": ${s.min} \u2190 ${i} \u2192 ${s.max}`);}let c=hd(t),l=4,d=["interpolate",["linear"],["get",e]];for(let u=0;u<=l;u++){let m=u/l,p=s.min+m*(i-s.min);d.push(p,c[u]);}for(let u=l+1;u<c.length;u++){let m=(u-l)/(c.length-1-l),p=i+m*(s.max-i);d.push(p,c[u]);}return d}function Fr(e,t,r){if(typeof e=="string")return e;if("token"in e)return kt(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?u4(e.by,r):(console.warn("[Layers] Categorical auto-assignment requires GeoJSON data (not URL-based data)"),Xo);if(e.palette==="sequential")return r?p4(e.by,e.scheme,r,e.scale):(console.warn("[Layers] Sequential palette requires GeoJSON data (not URL-based data)"),Xo);if(e.palette==="diverging")return r?m4(e.by,e.scheme,r,e.center,e.scale):(console.warn("[Layers] Diverging palette requires GeoJSON data (not URL-based data)"),Xo)}if("mapping"in e)return d4(e)}return Xo}function Ay(e){return typeof e=="number"?e:"byZoom"in e?["interpolate",["linear"],["zoom"],...e.byZoom.flatMap(([t,r])=>[t,r])]:e}var lc=null;function cc(){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():(lc||(lc=import('mapbox-gl/dist/mapbox-gl.css').then(()=>{}).catch(t=>{console.error("Failed to load Mapbox CSS",t),lc=null;})),lc)}function dc(){return jsxRuntime.jsx("div",{className:"absolute inset-0 z-50 bg-background-surface/90 backdrop-blur-sm pointer-events-none","data-testid":"map-loading-overlay",children:jsxRuntime.jsx("div",{className:"absolute inset-0 opacity-20",children:jsxRuntime.jsx("div",{className:"h-full w-full",style:{backgroundImage:`
|
|
41
|
+
`,"aria-label":"Open search",children:[jsxRuntime.jsx(H,{name:"MagnifyingGlass",size:18,className:"flex-shrink-0 transition-colors text-text-secondary"}),jsxRuntime.jsx("span",{className:`flex-1 text-left text-sm transition-colors ${o==="elevated"?"text-text-secondary font-normal":"text-text-disabled"}`,children:e}),r&&jsxRuntime.jsxs("div",{className:"hidden sm:flex items-center gap-1 flex-shrink-0",children:[jsxRuntime.jsx("kbd",{className:`px-2 py-1 text-xs font-medium rounded transition-colors ${o==="elevated"?"bg-background-surface/80 border border-border-muted text-text-secondary":"bg-background-muted border border-border-muted"}`,children:a?"\u2318":"Ctrl"}),jsxRuntime.jsx("kbd",{className:`px-2 py-1 text-xs font-medium rounded transition-colors ${o==="elevated"?"bg-background-surface/80 border border-border-muted text-text-secondary":"bg-background-muted border border-border-muted"}`,children:"K"})]})]})}var K5={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"},J5={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"}},j5={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"},q5={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"},X5={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"},Z5={start:"items-start",center:"items-center",end:"items-end",stretch:"items-stretch",baseline:"items-baseline"},$5={start:"justify-start",center:"justify-center",end:"justify-end",between:"justify-between",around:"justify-around",evenly:"justify-evenly"},Q5={row:"grid-flow-row",col:"grid-flow-col",dense:"grid-flow-dense","row-dense":"grid-flow-row-dense","col-dense":"grid-flow-col-dense"},_5={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"},e4={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 dy(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 Op({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:d}){let u=tailwindMerge.twMerge("grid",s||c?"":dy(e,K5,J5),!r&&!o&&j5[t],r&&q5[r],o&&X5[o],Z5[n],$5[a],Q5[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:u,style:m,children:d})}function uy({span:e,className:t,children:r}){let o=tailwindMerge.twMerge(dy(e,_5,e4),t);return jsxRuntime.jsx("div",{className:o,children:r})}Op.Item=uy;function t4(e,t){return Be__namespace.default.isValidElement(e)?e:Yr({value:e,formatter:t,emptyClassName:"text-text-secondary",emptyText:"\u2014"})}function r4(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 o4={neutral:"text-text-primary",success:"text-feedback-success",warning:"text-feedback-warning",error:"text-feedback-error",info:"text-feedback-info"},n4=24,a4=20;function i4({item:e,dense:t,valueAlign:r}){let o=r4(e),n=o?o4[o]:"",a=e.stackOnMobile,i=typeof e.value=="string"&&e.value.length>n4&&!e.formatter&&!Be__namespace.default.isValidElement(e.value),s=t4(e.value,e.formatter),c=i?aa(e.value,a4):null,l=typeof e.copyable=="function"?e.copyable(e.value):String(e.value),d=e.piiType&&e.piiEntity?{"data-pii-type":e.piiType,"data-pii-entity":e.piiEntity}:{},u=Object.keys(d).length>0,m=i?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(Xt,{content:u?jsxRuntime.jsx("span",{...d,children:String(e.value)}):String(e.value),children:jsxRuntime.jsx("span",{className:tailwindMerge.twMerge("md:hidden",e.href?"hover:underline cursor-pointer":""),...d,children:c})}),jsxRuntime.jsx("span",{className:tailwindMerge.twMerge("hidden md:inline",e.href?"hover:underline cursor-pointer":""),...d,children:s})]}):jsxRuntime.jsx("span",{className:e.href?"hover:underline cursor-pointer":"",...d,children:s}),p=e.copyable?jsxRuntime.jsx(Oo,{value:l,size:"sm",children:jsxRuntime.jsx("span",{className:"sr-only",children:"Copy"})}):null,f=e.copyable&&(e.copyIconPosition==="left"||!e.copyIconPosition),g=e.copyable&&e.copyIconPosition==="right",x=jsxRuntime.jsxs("dd",{className:tailwindMerge.twMerge(t?"text-sm":"text-base","font-medium",a?r==="start"?"text-left":"text-left sm:text-right":r==="start"?"text-left":"text-right",n,e.disabled&&"opacity-50","overflow-hidden min-w-0"),children:[jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("inline-flex items-center gap-1 max-w-full",r==="start"?"justify-start":"justify-end"),children:[jsxRuntime.jsxs("span",{className:"inline-flex items-center gap-1 min-w-0",children:[m,e.iconRight]}),g&&p]}),e.meta&&jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("text-xs text-text-secondary mt-0.5",r==="start"?"text-left":"text-right"),children:e.meta})]}),h=jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsxs("dt",{className:tailwindMerge.twMerge(t?"text-xs":"text-sm","text-text-secondary truncate","flex items-center gap-1",e.disabled&&"opacity-50"),children:[e.iconLeft,jsxRuntime.jsx("span",{title:typeof e.label=="string"?e.label:void 0,children:e.label}),e.tooltip&&jsxRuntime.jsx(H,{name:"Question",size:10,className:"text-text-secondary","aria-label":"More information"})]}),f&&jsxRuntime.jsx("div",{className:"flex items-center",children:p}),e.href?jsxRuntime.jsx("a",{href:e.href,onClick:e.onAction,className:"block",children:x}):x]});return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("grid",a?"items-start sm:items-center":f?"items-center":"items-start",a?f?"grid-cols-1 gap-y-1 sm:grid-cols-[minmax(120px,1fr)_auto_auto] sm:gap-x-1 sm:gap-y-0":t?"grid-cols-1 gap-y-1 sm:grid-cols-[minmax(120px,1fr)_1fr] sm:gap-x-2 sm:gap-y-0":"grid-cols-1 gap-y-1 sm:grid-cols-[minmax(120px,1fr)_1fr] sm:gap-x-4 sm:gap-y-0":f?"grid-cols-[minmax(120px,1fr)_auto_auto] gap-x-1":t?"grid-cols-[minmax(120px,1fr)_1fr] gap-x-2":"grid-cols-[minmax(120px,1fr)_1fr] gap-x-4"),children:h})}function rc({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,d)=>jsxRuntime.jsxs("div",{className:"grid grid-cols-[1fr_auto] items-start gap-x-4",children:[jsxRuntime.jsx(j,{className:"h-4 w-24"}),jsxRuntime.jsx(j,{className:"h-5 w-16"})]},d))}):s?jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("text-sm text-feedback-error",c),children:s}):i||!e.length?jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("text-sm text-text-secondary",c),children:"No data available"}):jsxRuntime.jsx("dl",{className:tailwindMerge.twMerge("grid",t==="two-column"?"md:grid-cols-2 gap-x-6":"grid-cols-1",r?"gap-y-1":"gap-y-2",c),children:e.map((l,d)=>jsxRuntime.jsxs(Be__namespace.default.Fragment,{children:[n&&d>0&&t==="one-column"&&jsxRuntime.jsx("div",{className:"col-span-full border-t border-border-default -mt-1 mb-1"}),jsxRuntime.jsx(i4,{item:l,dense:r,valueAlign:o})]},l.id))})}function fy({node:e,renderNodeList:t}){let r=e.children||[],o=e.metadata&&Object.keys(e.metadata).length>0;return jsxRuntime.jsxs("div",{className:"flex flex-col h-full",children:[jsxRuntime.jsx("div",{className:"flex-shrink-0 px-4 py-4",children:jsxRuntime.jsx("h3",{className:"font-semibold text-text-primary text-lg",children:e.name})}),o&&jsxRuntime.jsx("div",{className:"flex-shrink-0 border-y border-border-default px-4 py-4 bg-background-muted",children:jsxRuntime.jsx(rc,{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 nt={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 Wp=Be__namespace.createContext(null);function gy(){let e=Be__namespace.useContext(Wp);if(!e)throw new Error("Hierarchy components must be used within HierarchyExplorer");return e}function xy({node:e,renderNode:t}){let{selectedId:r,selectNode:o,navigateToNode:n,variant:a,size:i,showBullets:s,rootNodeId:c,stickyRootNode:l,navigationStack:d,setRootNodeSticky:u,useSplitLayout:m}=gy(),p=Be__namespace.useRef(null),f=Be__namespace.useRef(null),g=r===e.id,b=e.disabled||false,x=!!(e.children&&e.children.length>0),h=!!(e.metadata&&Object.keys(e.metadata).length>0),C=x||h,y=c!==void 0&&e.id!==void 0&&c===e.id&&d.length===0;Be__namespace.useLayoutEffect(()=>{y&&l&&p.current&&f.current===null&&requestAnimationFrame(()=>{p.current&&(f.current=p.current.offsetTop);});},[y,l]),Be__namespace.useEffect(()=>{if(!y||!l||!p.current)return;let A=p.current.parentElement;for(;A;){let w=window.getComputedStyle(A).overflowY;if(w==="auto"||w==="scroll")break;A=A.parentElement;}if(!A)return;let L=()=>{if(!p.current||f.current===null)return;let w=A.getBoundingClientRect(),k=A.scrollTop,O=w.height,G=p.current.offsetHeight,z=f.current-k,X=z+G,V=z<0,K=X>O;V?u("top",e):K?u("bottom",e):u(null,null);};return A.addEventListener("scroll",L),L(),()=>{A.removeEventListener("scroll",L);}},[y,l,e,u]);let S=()=>{b||(m?o(e):C?n(e):o(e));},N=A=>{b||(A.key==="Enter"||A.key===" ")&&(A.preventDefault(),S());},T={isSelected:g,isDisabled:b,hasChildren:x,hasMetadata:h,level:0},E=tailwindMerge.twMerge("relative cursor-pointer group",b&&"opacity-50 cursor-not-allowed"),R=tailwindMerge.twMerge("absolute inset-0 transition-colors",y&&!g&&!b&&"group-hover:bg-background-hover",y&&g&&!b&&a==="subtle"&&"bg-background-selected group-hover:bg-background-hover",y&&g&&b&&a==="subtle"&&"bg-background-selected",y&&g&&!b&&a==="solid"&&"bg-action-brand group-hover:bg-action-brand-hover",y&&g&&b&&a==="solid"&&"bg-action-brand",!y&&a==="subtle"&&!g&&!b&&"group-hover:bg-background-hover",!y&&a==="subtle"&&g&&!b&&"bg-background-selected group-hover:bg-background-hover",!y&&a==="subtle"&&g&&b&&"bg-background-selected",!y&&a==="solid"&&!g&&!b&&"group-hover:bg-background-hover",!y&&a==="solid"&&g&&!b&&"bg-action-brand group-hover:bg-action-brand-hover",!y&&a==="solid"&&g&&b&&"bg-action-brand"),M=tailwindMerge.twMerge("relative flex items-center gap-2 text-text-primary hover:text-text-primary transition-colors",nt[i].node,y&&!g&&"font-semibold",a==="subtle"&&g&&"text-text-link-default",a==="solid"&&g&&"text-[color:var(--color-action-brand-text)]");return jsxRuntime.jsxs("div",{ref:p,className:E,onClick:S,onKeyDown:N,role:"treeitem","aria-selected":g,"aria-disabled":b,tabIndex:0,"data-node-id":e.id,children:[jsxRuntime.jsx("div",{className:R}),jsxRuntime.jsxs("div",{className:M,children:[s&&jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("relative rounded-full flex items-center justify-center flex-shrink-0 z-20",y&&"bg-action-brand border-action-brand",!y&&"bg-background-muted border border-border-default"),style:{width:nt[i].bullet,height:nt[i].bullet},children:e.icon&&jsxRuntime.jsx(H,{name:e.icon,size:nt[i].icon,weight:y?"fill":"regular",className:y?"text-[color:var(--color-action-brand-text)]":"text-text-primary"})}),jsxRuntime.jsx("div",{className:"flex-1 min-w-0",children:t?t(e,T):jsxRuntime.jsx("span",{className:"truncate",children:e.name})}),C&&!m&&jsxRuntime.jsx("div",{className:"flex-shrink-0",children:jsxRuntime.jsx(H,{name:"CaretRight",size:nt[i].icon,className:"text-text-secondary"})})]})]})}function yy({items:e,showConnector:t=false,scrollContainerRef:r,showBullets:o,size:n,renderNode:a}){return jsxRuntime.jsxs("div",{className:"relative",ref:t&&r?r:void 0,children:[o&&e.length>0&&t&&jsxRuntime.jsx("div",{className:"absolute w-px bg-text-secondary z-10 pointer-events-none",style:{left:`${nt[n].spacing.x+nt[n].bullet/2}px`,top:`${nt[n].spacing.y+nt[n].bullet/2}px`,bottom:`${nt[n].spacing.y+nt[n].bullet/2}px`},"aria-hidden":"true"}),e.map(i=>jsxRuntime.jsx(xy,{node:i,renderNode:a},i.id))]})}function vy(){let[e,t]=Be.useState(()=>typeof window>"u"?false:window.matchMedia("(prefers-reduced-motion: reduce)").matches);return Be.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 Vi({children:e,mode:t="sync",presenceKey:r}){let o=r!==void 0&&Be__namespace.default.isValidElement(e)?Be__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 m4={instant:0,fast:150,normal:250,slow:350,slower:500},Gp={xs:"4px",sm:"8px",md:"16px"};function f4(e){return e?typeof e=="string"&&e in Gp?Gp[e]:typeof e=="number"?`${e}px`:e:Gp.sm}function zi({children:e,direction:t,distance:r="sm",duration:o="normal",delay:n=0,className:a}){let i=vy(),s=typeof o=="number"?o:m4[o],c=f4(r),l=p=>{switch(t){case "left":return {x:`-${p}`};case "right":return {x:p};case "up":return {y:`-${p}`};case "down":return {y:p}}},d=i?{opacity:0}:{opacity:0,...l(c)},u={opacity:1,x:0,y:0},m=i?{opacity:0}:{opacity:0,...l(c)};return jsxRuntime.jsx(framerMotion.motion.div,{className:a,initial:d,animate:u,exit:m,transition:{duration:i?0:s/1e3,delay:i?0:n/1e3,ease:[.4,0,.2,1]},children:e})}function ac({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",nt[r].node),children:[jsxRuntime.jsx(H,{name:"CaretLeft",size:nt[r].icon,className:"text-text-secondary group-hover:text-text-primary transition-colors"}),jsxRuntime.jsx("span",{className:"font-medium text-text-primary group-hover:text-text-link-hover transition-colors",children:o})]})})}function ic({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",nt[n].node,i?o==="subtle"?"text-text-link-default":"bg-action-brand text-[color:var(--color-action-brand-text)]":"font-semibold",t==="top"&&"top-0 border-b shadow-[0_4px_6px_-1px_rgba(0,0,0,0.1)]",t==="bottom"&&"bottom-0 border-t shadow-[0_-4px_6px_-1px_rgba(0,0,0,0.1)]"),children:[i&&o==="subtle"&&jsxRuntime.jsx("div",{className:"absolute inset-0 bg-background-selected"}),jsxRuntime.jsxs("div",{className:"flex items-center gap-2 cursor-pointer relative z-10",children:[a&&jsxRuntime.jsx("div",{className:"flex-shrink-0 rounded-full flex items-center justify-center bg-action-brand border-action-brand",style:{width:nt[n].bullet,height:nt[n].bullet},children:e.icon&&jsxRuntime.jsx(H,{name:e.icon,size:nt[n].icon,weight:"fill",className:"text-[color:var(--color-action-brand-text)]"})}),jsxRuntime.jsx("div",{className:"flex-1 min-w-0",children:jsxRuntime.jsx("span",{className:"truncate",children:e.name})})]})]})}function Ny({currentItems:e,currentParent:t,navigationStack:r,selectedId:o,variant:n,size:a,showBullets:i,slideDirection:s,viewKey:c,hasHeight:l,rootNodeStickyState:d,renderNodeList:u,renderDetailContent:m,onNavigateBack:p}){return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[r.length===0&&d.position&&d.node&&jsxRuntime.jsx(ic,{node:d.node,position:d.position,selectedId:o,variant:n,size:a,showBullets:i}),r.length>0&&jsxRuntime.jsx(ac,{navigationStack:r,onNavigateBack:p,size:a}),jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("relative",l&&"overflow-auto h-full"),children:jsxRuntime.jsx(Vi,{mode:"wait",presenceKey:c,children:r.length===0?u(e,true):jsxRuntime.jsx(zi,{direction:s,distance:"100%",duration:"normal",children:m(t)})})})]})}function Yp(e,t){for(let r of e){if(r.id===t)return r;if(r.children&&r.children.length>0){let o=Yp(r.children,t);if(o)return o}}return null}function sc(e){if(e!==void 0)return typeof e=="number"?`${e}px`:e}function ky(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 Py({data:e,currentItems:t,navigationStack:r,selectedId:o,variant:n,size:a,showBullets:i,rootNodeStickyState:s,renderNodeList:c,renderDetailContent:l,renderEmptyState:d,onNavigateBack:u}){let m=o?Yp(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(ic,{node:s.node,position:s.position,selectedId:o,variant:n,size:a,showBullets:i}),r.length>0&&jsxRuntime.jsx(ac,{navigationStack:r,onNavigateBack:u,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(Vi,{mode:"wait",presenceKey:m?.id||"empty",children:m?jsxRuntime.jsx(zi,{direction:"left",duration:"fast",children:l(m)}):d?d():jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("text-text-secondary text-center",nt[a].node,"py-8"),children:"Select an item to view details"})})})]})}function Ry({data:e,renderNode:t,onNodeSelect:r,onNavigate:o,selectedId:n,rootNodeId:a,stickyRootNode:i=true,height:s,minHeight:c,maxHeight:l,variant:d="subtle",size:u="md",showBullets:m=true,layout:p="auto",splitBreakpoint:f=768,renderEmptyState:g,renderDetailView:b,className:x,"aria-label":h="Hierarchy explorer"}){let[C,y]=Be__namespace.useState(null),[S,N]=Be__namespace.useState([]),[T,E]=Be__namespace.useState("left"),[R,M]=Be__namespace.useState({position:null,node:null}),{ref:A,width:L}=oa(),w=Be__namespace.useMemo(()=>p==="split"?true:p==="single"?false:L>=f,[p,L,f]),k=n!==void 0?n:C;Be__namespace.useEffect(()=>{ky(e,a);},[e,a]);let O=S.length>0?S[S.length-1]:null,G=O?O.children||[]:e,B=Be__namespace.useCallback(Y=>{E("left"),N(U=>[...U,Y]),o?.(Y,[...S,Y]);},[S,o]),z=Be__namespace.useCallback(()=>{E("right"),N(Y=>{let U=Y.slice(0,-1);return o?.(U.length>0?U[U.length-1]:null,U),U});},[o]),X=Be__namespace.useCallback(Y=>{n===void 0&&y(Y.id),r?.(Y,[...S,Y]);},[n,S,r]),V=Be__namespace.useCallback((Y,U)=>{M({position:Y,node:U});},[]),K=Be__namespace.useMemo(()=>({selectedId:k,selectNode:X,navigateToNode:B,navigateBack:z,rootNodeId:a,stickyRootNode:i,variant:d,size:u,showBullets:m,onNodeSelect:r,onNavigate:o,navigationStack:S,setRootNodeSticky:V,useSplitLayout:w}),[k,X,B,z,a,i,d,u,m,r,o,S,V,w]),P=Be__namespace.useRef(null);Be__namespace.useEffect(()=>{if(!a||!P.current||S.length>0||w)return;let Y=P.current,U=setTimeout(()=>{let ee=Y.querySelector(`[data-node-id="${a}"]`);ee&&ee.scrollIntoView({behavior:"auto",block:"center",inline:"nearest"});},100);return ()=>clearTimeout(U)},[a,S.length,w]);let D={height:sc(s),minHeight:sc(c),maxHeight:sc(l)},F=s!==void 0||l!==void 0,I=O?O.id:"root",v=Be__namespace.useCallback((Y,U=false)=>jsxRuntime.jsx(yy,{items:Y,showConnector:U,scrollContainerRef:U?P:null,showBullets:m,size:u,renderNode:t}),[m,u,t]),W=Be__namespace.useCallback(Y=>Y?b?b(Y,v):jsxRuntime.jsx(fy,{node:Y,renderNodeList:v}):null,[b,v]);return jsxRuntime.jsx(Wp.Provider,{value:K,children:jsxRuntime.jsx("div",{ref:A,className:tailwindMerge.twMerge("select-none bg-background-surface rounded-lg border border-border-default relative",F&&"overflow-hidden",!F&&"h-full flex flex-col",w&&!F&&"flex-row",w&&F&&"flex",x),style:D,role:"tree","aria-label":h,children:w?jsxRuntime.jsx(Py,{data:e,currentItems:G,navigationStack:S,selectedId:k,variant:d,size:u,showBullets:m,rootNodeStickyState:R,renderNodeList:v,renderDetailContent:W,renderEmptyState:g,onNavigateBack:z}):jsxRuntime.jsx(Ny,{currentItems:G,currentParent:O,navigationStack:S,selectedId:k,variant:d,size:u,showBullets:m,slideDirection:T,viewKey:I,hasHeight:F,rootNodeStickyState:R,renderNodeList:v,renderDetailContent:W,onNavigateBack:z})})})}function D4({isEntering:e,isExiting:t,className:r=""}){let o=["group","bg-background-surface","forced-colors:bg-[Canvas]","text-text-primary","shadow-lg","rounded-[var(--control-border-radius)]","bg-clip-padding","border","border-border-default","outline-none","p-4","min-w-[260px]","max-w-[360px]"].filter(Boolean).join(" "),n=e?["animate-in","fade-in","zoom-in-95","placement-bottom:slide-in-from-top-1","placement-top:slide-in-from-bottom-1","placement-left:slide-in-from-right-1","placement-right:slide-in-from-left-1","ease-out","duration-200"].join(" "):"",a=t?["animate-out","fade-out","zoom-out-95","placement-bottom:slide-out-to-top-1","placement-top:slide-out-to-bottom-1","placement-left:slide-out-to-right-1","placement-right:slide-out-to-left-1","ease-in","duration-150"].join(" "):"";return [o,n,a,r].filter(Boolean).join(" ")}var Dy=({children:e,delay:t=700,closeDelay:r=0,isOpen:o,defaultOpen:n,onOpenChange:a,isDisabled:i=false,...s})=>jsxRuntime.jsx(reactAriaComponents.TooltipTrigger,{delay:t,closeDelay:r,isOpen:o,defaultOpen:n,onOpenChange:a,isDisabled:i,...s,children:e}),My=({children:e,className:t,showArrow:r=false,offset:o,...n})=>jsxRuntime.jsxs(reactAriaComponents.Tooltip,{...n,offset:o??(r?12:8),className:reactAriaComponents.composeRenderProps(t,(i,s)=>D4({...s,className:i})),children:[r&&jsxRuntime.jsx(reactAriaComponents.OverlayArrow,{children:jsxRuntime.jsx("svg",{width:12,height:12,viewBox:"0 0 12 12",className:"block fill-background-surface stroke-border-default stroke-1 group-placement-left:-rotate-90 group-placement-right:rotate-90 group-placement-bottom:rotate-180 forced-colors:fill-[Canvas] forced-colors:stroke-[ButtonBorder]",children:jsxRuntime.jsx("path",{d:"M0 0 L6 6 L12 0"})})}),e]});My.displayName="HoverCardContent";var M4=Object.assign(Dy,{Root:Dy,Content:My});function L4(e,t){return Yr({value:e,formatter:t,emptyClassName:"text-text-secondary",emptyText:"\u2014"})}function A4(e,t="upIsGood"){if(e===0)return "text-text-secondary";let r=e>0;return t==="upIsGood"?r?"text-feedback-success":"text-feedback-error":r?"text-feedback-error":"text-feedback-success"}function I4({points:e,className:t,ariaLabel:r}){let i=e.map(p=>typeof p.y=="number"?p.y:0);if(i.length===0)return null;let s=Math.min(...i),l=Math.max(...i)-s,d=p=>l===0?20/2:18-(p-s)/l*16,u=60/Math.max(e.length-1,1),m=e.map((p,f)=>{let g=2+f*u,b=d(typeof p.y=="number"?p.y:0);return `${f===0?"M":"L"} ${g} ${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 Ly({label:e,value:t,formatter:r,delta:o,deltaPeriodLabel:n,deltaIntent:a="upIsGood",trend:i,status:s,helpText:c,size:l="md",orientation:d="vertical",isLoading:u,empty:m,error:p,onClick:f,className:g,renderValue:b,renderDelta:x,renderTrend:h}){let y={sm:{label:pt("labelSm"),value:pt("displaySm"),delta:pt("labelSm"),gap:"gap-1"},md:{label:pt("labelMd"),value:pt("displayMd"),delta:pt("bodySm"),gap:"gap-2"},lg:{label:pt("labelLg"),value:pt("displayLg"),delta:pt("bodyMd"),gap:"gap-3"}}[l],S=u?jsxRuntime.jsx(j,{className:"h-7 w-20"}):m?jsxRuntime.jsx("span",{className:"text-text-secondary",children:"\u2014"}):p?jsxRuntime.jsx("span",{className:pt("bodySm","text-feedback-error"),children:typeof p=="string"?p:"Error"}):b?b(t):L4(t,r),N=x?x(o):o!==void 0&&!u&&!m&&!p?jsxRuntime.jsxs("div",{className:Jt(y.delta,A4(o,a),"flex items-center gap-1"),children:[o>0&&jsxRuntime.jsx(H,{name:"ArrowUp",size:12}),o<0&&jsxRuntime.jsx(H,{name:"ArrowDown",size:12}),o===0&&jsxRuntime.jsx(H,{name:"Minus",size:12}),jsxRuntime.jsxs("span",{children:[o>0?"+":"",Math.abs(o).toFixed(1),"%"]}),n&&jsxRuntime.jsxs("span",{className:"text-text-secondary",children:["\xB7 ",n]})]}):u&&o!==void 0?jsxRuntime.jsx(j,{className:"h-4 w-24"}):null,T=h?h(i):i&&i.length>0&&!u&&!p?jsxRuntime.jsx(I4,{points:i,ariaLabel:`${e} trend`,className:m?"opacity-30":""}):u&&i!==void 0?jsxRuntime.jsx(j,{className:"h-5 w-16"}):null;return jsxRuntime.jsxs("section",{className:tailwindMerge.twMerge("flex min-w-0",d==="horizontal"?`items-center ${y.gap}`:`flex-col ${y.gap}`,f&&"cursor-pointer hover:bg-background-muted rounded-lg px-3 py-2 -mx-3 -my-2 transition-colors",g),"aria-labelledby":`kpi-${e}`,onClick:f,children:[jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[jsxRuntime.jsx("h3",{id:`kpi-${e}`,className:Jt(y.label,"text-text-secondary truncate"),children:u?jsxRuntime.jsx(j,{className:"h-4 w-24"}):e}),c&&!u&&jsxRuntime.jsx(H,{name:"Question",size:12,className:"text-text-secondary cursor-help","aria-label":"Help"})]}),jsxRuntime.jsxs("div",{className:"flex items-baseline gap-2",children:[jsxRuntime.jsx("output",{className:Jt(y.value,p?"text-feedback-error":"text-text-primary"),"aria-label":`Value: ${S}`,children:S}),s&&!u&&!p&&jsxRuntime.jsx(ot,{variant:s.tone||"neutral",size:"sm",children:s.value})]}),(N||T)&&jsxRuntime.jsxs("div",{className:"flex items-center gap-3",children:[N,T]})]})}var Ay={xs:"gap-2",sm:"gap-3",md:"gap-4",lg:"gap-6",xl:"gap-8"},Iy={start:"items-start",center:"items-center",stretch:"items-stretch"};function Fy(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 jp({children:e,cols:t={base:1,sm:2,md:3,lg:4},gap:r="md",align:o="stretch",equalizeHeights:n=true,header:a,isLoading:i,scrollOnMobile:s=false,scrollItemMinWidth:c="140px",className:l}){let d=i?Be__namespace.default.Children.map(e,p=>Be__namespace.default.isValidElement(p)&&p.type&&typeof p.type!="string"&&"displayName"in p.type?Be__namespace.default.cloneElement(p,{isLoading:true}):p):e,u=s?Be__namespace.default.Children.map(d,p=>jsxRuntime.jsx("div",{className:"shrink-0",style:{minWidth:c},children:p})):d,m=s?tailwindMerge.twMerge("flex overflow-x-auto pb-2 -mb-2",Ay[r],"sm:grid sm:overflow-visible sm:pb-0 sm:-mb-0",Fy({...typeof t=="object"?t:{base:t},base:void 0}),Iy[o],n&&"sm:auto-rows-fr"):tailwindMerge.twMerge("grid",Fy(t),Ay[r],Iy[o],n&&"auto-rows-fr","w-full");return jsxRuntime.jsxs("section",{className:tailwindMerge.twMerge("w-full",l),"aria-label":"Key metrics",children:[a&&jsxRuntime.jsx("div",{className:"mb-4",children:a}),jsxRuntime.jsx("div",{className:m,children:s?u:d})]})}jp.displayName="KpiGroup";function zy({items:e,renderItem:t,selectedId:r,onSelect:o,onHoverChange:n,isLoading:a=false,loadingState:i,error:s=null,renderLoadingSkeleton:c,loadingSkeletonCount:l=5,emptyMessage:d="No results found.",variant:u="relaxed",showDividers:m=true,onLoadMore:p,hasMore:f=false,enableVirtualization:g,estimatedItemSize:b=60,loadingIndicator:x,"aria-label":h,className:C="",style:y}){let[S,N]=Be.useState(null),T=Be.useRef(null),E=Be.useRef(new Map),{scrollRef:R,loadMoreRef:M,virtualizer:A,virtualItems:L,isLoadingMore:w,computedLoadingState:k}=Do({items:e,onLoadMore:p,hasMore:f,isLoading:a,loadingState:i,enableVirtualization:g,estimatedItemSize:b,overscan:5}),O=R??T,G=Be.useCallback((v,W)=>{o?.(v,W);},[o]),B=Be.useCallback((v,W)=>{N(v),n?.(v,W);},[n]),z=Be.useCallback((v,W)=>{let Y=v?.id;return typeof Y=="string"&&Y?Y:`item-${W}`},[]),X=Be.useCallback(v=>{if(!O.current||e.length===0)return;let W=document.activeElement,Y=e.findIndex((J,re)=>{let xe=z(J,re),te=E.current.get(xe);return te&&(te===W||te.contains(W))}),U=Y;switch(v.key){case "ArrowDown":v.preventDefault(),U=Y===-1?0:Math.min(Y+1,e.length-1);break;case "ArrowUp":v.preventDefault(),U=Y===-1?0:Math.max(Y-1,0);break;case "Home":v.preventDefault(),U=0;break;case "End":v.preventDefault(),U=e.length-1;break;default:return}let ee=z(e[U],U);E.current.get(ee)?.focus();},[e,z,O]),V=["flex flex-col","bg-background-surface","focus:outline-none focus:ring-2 focus:ring-border-focus focus:ring-offset-2"],K={dense:"gap-0",relaxed:"gap-0"},P=m?"divide-y divide-border-muted":"",D=[...V,K[u],P,C].filter(Boolean).join(" ");if(k==="loading"||a&&e.length===0){let v=c?jsxRuntime.jsx(jsxRuntime.Fragment,{children:Array.from({length:l}).map((W,Y)=>jsxRuntime.jsx("div",{children:c()},`skeleton-${Y}`))}):jsxRuntime.jsx(tg,{count:l,className:"space-y-0",children:jsxRuntime.jsxs("div",{className:"flex items-center gap-3 px-4 py-3",children:[jsxRuntime.jsx(j,{width:16,height:16,variant:"circle"}),jsxRuntime.jsxs("div",{className:"flex-1 space-y-2",children:[jsxRuntime.jsx(j,{width:"75%",height:16}),jsxRuntime.jsx(j,{width:"50%",height:14})]}),jsxRuntime.jsx(j,{width:60,height:20})]})});return jsxRuntime.jsx("div",{ref:O,className:D,style:y,role:"listbox","aria-label":h,"aria-busy":"true","aria-live":"polite",children:v})}if(s)return jsxRuntime.jsx("div",{ref:O,className:D,style:y,role:"listbox","aria-label":h,"aria-live":"polite",children:jsxRuntime.jsx("div",{className:"p-4 text-center text-feedback-error-text",children:s})});if(e.length===0)return jsxRuntime.jsx("div",{ref:O,className:D,style:y,role:"listbox","aria-label":h,"aria-live":"polite",children:jsxRuntime.jsx("div",{className:"p-4 text-center text-text-secondary",children:d})});let I=A?L?.map(v=>({virtualItem:v,item:e[v.index],index:v.index}))||[]:e.map((v,W)=>({item:v,index:W,virtualItem:null}));return jsxRuntime.jsxs("div",{ref:O,className:D,style:{...y,...p&&{overflow:"auto",height:y?.height||"600px"}},role:"listbox","aria-label":h,"aria-live":"polite",onKeyDown:X,tabIndex:0,children:[A&&jsxRuntime.jsxs("div",{style:{height:`${A.getTotalSize()}px`,width:"100%",position:"relative"},children:[I.map(({virtualItem:v,item:W,index:Y})=>{if(!v)return null;let U=z(W,Y),ee=r===U,pe=S===U,J={id:U,role:"option","aria-selected":ee,"aria-current":ee?"page":void 0,tabIndex:ee||r==null&&Y===0?0:-1,onClick:re=>G(re,W),onMouseEnter:re=>B(re,W),onMouseLeave:re=>B(null),onFocus:re=>B(re,W),onBlur:re=>B(null),ref:re=>{re?E.current.set(U,re):E.current.delete(U);}};return jsxRuntime.jsx("div",{"data-index":v.index,ref:A.measureElement,style:{position:"absolute",top:0,left:0,width:"100%",transform:`translateY(${v.start}px)`},children:t({item:W,index:Y,isSelected:ee,isHovered:pe,rowProps:J})},U)}),p&&f&&jsxRuntime.jsx("div",{ref:M,style:{position:"absolute",top:`${A.getTotalSize()}px`,left:0,width:"100%",height:1,pointerEvents:"none"}}),w&&jsxRuntime.jsx("div",{style:{position:"absolute",top:`${A.getTotalSize()}px`,left:0,width:"100%"},children:x||jsxRuntime.jsx(Cr,{state:"loading-more"})})]}),!A&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[I.map(({item:v,index:W})=>{let Y=z(v,W),U=r===Y,ee=S===Y,pe={id:Y,role:"option","aria-selected":U,"aria-current":U?"page":void 0,tabIndex:U||r==null&&W===0?0:-1,onClick:J=>G(J,v),onMouseEnter:J=>B(J,v),onMouseLeave:J=>B(null),onFocus:J=>B(J,v),onBlur:J=>B(null),ref:J=>{J?E.current.set(Y,J):E.current.delete(Y);}};return jsxRuntime.jsx("div",{children:t({item:v,index:W,isSelected:U,isHovered:ee,rowProps:pe})},Y)}),p&&f&&jsxRuntime.jsx("div",{ref:M,style:{height:1}}),w&&(x||jsxRuntime.jsx(Cr,{state:"loading-more"}))]})]})}function Hy({id:e,title:t,subtitle:r,meta:o,leading:n,trailing:a,isSelected:i=false,isHovered:s=false,disabled:c=false,href:l,size:d="md",onClick:u,onMouseEnter:m,onMouseLeave:p,className:f="",style:g,piiTitleType:b,piiSubtitleType:x,piiEntity:h}){let C=()=>{!c&&u&&u(e);},y=()=>{!c&&m&&m(e);},S=()=>{!c&&p&&p(e);},T={sm:{container:"px-3 py-2 gap-2",title:"text-sm leading-tight",subtitle:"text-xs leading-tight",meta:"text-xs leading-tight",subtitleSpacing:"mt-1",metaSpacing:"mt-1"},md:{container:"px-4 py-3 gap-3",title:"text-base leading-tight",subtitle:"text-sm leading-tight",meta:"text-sm leading-tight",subtitleSpacing:"mt-1",metaSpacing:"mt-1"},lg:{container:"px-4 py-4 gap-3",title:"text-lg leading-tight",subtitle:"text-base leading-tight",meta:"text-sm leading-tight",subtitleSpacing:"mt-1",metaSpacing:"mt-1"},xl:{container:"px-5 py-5 gap-4",title:"text-xl leading-tight",subtitle:"text-base leading-tight",meta:"text-base leading-tight",subtitleSpacing:"mt-1.5",metaSpacing:"mt-1.5"}}[d],E=["flex items-center w-full text-left transition-all duration-200 ease-in-out",T.container,"border-l-2 border-l-transparent","rounded-sm",je()],R=[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"],M=[...E,...R,f].filter(Boolean).join(" "),A=jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[n&&jsxRuntime.jsx("div",{className:"flex-shrink-0 flex items-center justify-center",children:n}),jsxRuntime.jsx("div",{className:"flex-1 min-w-0",children:jsxRuntime.jsx("div",{className:"flex items-start justify-between gap-2",children:jsxRuntime.jsxs("div",{className:"flex-1 min-w-0",children:[jsxRuntime.jsx("div",{className:`text-text-primary font-medium truncate ${T.title}`,title:typeof t=="string"?t:void 0,"data-pii-type":b&&h?b:void 0,"data-pii-entity":b&&h?h:void 0,children:t}),r&&jsxRuntime.jsx("div",{className:`text-text-secondary truncate ${T.subtitle} ${T.subtitleSpacing}`,title:typeof r=="string"?r:void 0,"data-pii-type":x&&h?x:void 0,"data-pii-entity":x&&h?h:void 0,children:r}),o&&jsxRuntime.jsx("div",{className:`text-text-secondary ${T.meta} ${T.metaSpacing}`,children:o})]})})}),a&&jsxRuntime.jsx("div",{className:"flex-shrink-0",children:a})]});return l?jsxRuntime.jsx("a",{href:l,className:M,style:g,onMouseEnter:y,onMouseLeave:S,"aria-selected":i,"aria-current":i?"page":void 0,tabIndex:c?-1:0,children:A}):jsxRuntime.jsx("button",{type:"button",className:M,style:g,onClick:C,onMouseEnter:y,onMouseLeave:S,disabled:c,"aria-selected":i,tabIndex:c?-1:0,children:A})}function Wy({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:d}){let u={sm:"w-64",md:"w-80",lg:"w-96",xl:"w-[28rem]","2xl":"w-[32rem]",auto:"w-auto"},m={neutral:"bg-background-surface",subtle:"bg-background-subtle",brand:"bg-background-brand"},p={none:"",sm:"shadow-sm",md:"shadow-md"},f=tailwindMerge.twMerge("flex flex-col h-full",u[o],m[n],p[a],i&&"border-r border-border-muted",l);return jsxRuntime.jsxs("div",{className:f,style:d,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 Xp=[{type:"navigation",position:"bottom-right",showCompass:true,showGeolocate:true,showResetZoom:true}];var Gy="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJcAAACXCAYAAAAYn8l5AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAABtCSURBVHgB7Z2Jkty0GoV7hlz2HcIeSPGkPCmELRC2sO8kN5+L03XmR7IlW3LbSZ+qrp7pdtuydPTvki9u3Lhx/7ASLi4uDvfv973cvXv3Dn/++efh2rVrx2vyAo899tjwThu8Hfo+1d5SLLkv2vXzzz8fnnvuucPff/99eFhw7bAi/vnnn8Pl5eWVz3IDOHewGKgnnnjiCoEgHH///vvvh8cff3z4nrbE63lb+LvFQHMe2jR2P7p2bNMe4f24Grk02LkOjCQTCfmNE3KKdLo5l1jCk08+efjtt98OP/300yAlUgRTW3RdiLkEJZOEa4hccfItuWaN5O2B1cg1daNxEHzg4wCj8koGLXVOCMbnP/zww+GZZ54ZpIoGV8eLoC3IVYNWZPDzRIncG36t5dNkZ5CKfPHFFw9//PHH4ddffz3aYi7tJGkjkXvZjCJy6/P7/bRAzaTeJblaSJO//vrr8PTTTw/2F1IMSCX5gHAtV1VzpEBJe//3v/8NNl4vKdNDKo4dM5gVhxXR21OsgWwc3l944YXBFsPglxQDfM9rjXbTDqnnhwWrkStlYJ8aag8Ekv31448/DpJK3021me9RnU7KiOhktAh9zMWaE3zVUMSWgdSAIHiRxJxQU5CmVAWPOQAMaAxrOIH1++hYtIYb92sY+o+cQT8FpBgEo/NRlaWhgVpCxOPXkFqRzL2vdSZXgGyxp556avh/KrApD692sOLxiqttyS51zGnX7skVbZnUaw5EsGjkp64P5kgub5u80q2mf+b04y5trik7KEb0UyRz20Z/x2MgGHYXYYsS9Zg7TwqRjIqrtYxHtVJ9c891TWJfYrlF+uHUiOTLDVg0blMdSEQ/ly7y87QgRTTyl6DEcC8lzdw2XfoJthYq6A2XFAqY+gtAKAKtRPM1+PIMhVbxqR6B1BzxW0u2FFYVU3slrwYd20sv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0lYS1EWShiFKXp4HOjIdwcvzNzjuNg4uobmh3lmZNljg+RHIokP7iJ+//S9/0JF4UWgALQSUifcPn+AvCxKcp8u7vR5XAiSC3WYDByQWZ1myzFUtOgbu577+f5ZPq/B5Pf+nAAAAAElFTkSuQmCC";function jy(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 W4="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 qy(e){return tailwindMerge.twMerge(W4,e)}function en({position:e="top-right",className:t,style:r,children:o}){return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge(jy(e),t),style:r,children:o})}function hr({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",...d}){let u=tailwindMerge.twMerge(qy(),s&&"bg-action-brand hover:bg-action-brand-hover border-action-brand",n),m=tailwindMerge.twMerge(a,s&&"text-text-inverse");return jsxRuntime.jsx(Q,{...d,className:u,onPress:r,variant:i,size:"sm",isDisabled:o,"aria-label":c,"aria-pressed":s||void 0,type:"button",children:jsxRuntime.jsx(H,{name:e,size:t,className:m,weight:l})})}var j4=e=>[{id:"streets",name:"Streets",description:"Standard street map with traffic data",preview:e?Ky:Jy},{id:"satellite",name:"Satellite",description:"Aerial imagery with street labels",preview:Yy},{id:"neutral",name:"Neutral",description:"Clean design with light/dark variants",preview:e?Gy:Uy}];function q4({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 $y({position:e="bottom-left",className:t,style:r,currentMapType:o="streets",onMapTypeChange:n,layers:a=[],onLayerToggle:i,onClearAll:s}){let{isDarkTheme:c}=jt(),{isMobile:l}=Yt(),[d,u]=Be.useState(false),m=j4(c),p=b=>{n?.(b);},f=a.filter(b=>b.legend),g=jsxRuntime.jsxs("div",{className:l?"space-y-6 pb-6":"space-y-6",children:[jsxRuntime.jsxs("div",{children:[jsxRuntime.jsx("div",{className:"text-sm font-semibold text-text-primary mb-3",children:"Map type"}),jsxRuntime.jsx("div",{className:"grid grid-cols-3 gap-3",children:m.map(b=>jsxRuntime.jsxs("button",{type:"button",onClick:()=>p(b.id),className:"flex flex-col items-center space-y-2 p-3 rounded-lg text-center hover:bg-background-muted transition-colors border border-transparent "+(o===b.id?"bg-background-muted border-border":"hover:border-border"),children:[jsxRuntime.jsx("div",{className:"w-12 h-12 rounded-lg overflow-hidden bg-background-surface "+(o===b.id?"border-2 border-action-default":"border border-border-default"),children:jsxRuntime.jsx("img",{src:b.preview,alt:`${b.name} map preview`,className:"w-full h-full object-cover"})}),jsxRuntime.jsx("div",{className:"text-sm "+(o===b.id?"font-bold text-text-primary":"font-normal text-text-secondary"),children:b.name})]},b.id))})]}),f.length>0&&jsxRuntime.jsxs("div",{children:[jsxRuntime.jsxs("div",{className:"flex items-center justify-between mb-3",children:[jsxRuntime.jsx("div",{className:"text-sm font-semibold text-text-primary",children:"Map details"}),s&&jsxRuntime.jsx("button",{type:"button",onClick:s,className:"text-xs text-text-secondary hover:text-text-primary transition-colors",children:"Clear all"})]}),jsxRuntime.jsx("div",{className:"space-y-2",children:f.map(b=>jsxRuntime.jsx(Pn,{isSelected:b.visible!==false,onChange:()=>i?.(b.id),children:jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[b.legend&&jsxRuntime.jsx(q4,{type:b.legend.swatch,color:b.legend.color}),jsxRuntime.jsx("span",{className:"text-sm text-text-primary",children:b.legend?.label})]})},b.id))})]})]});return jsxRuntime.jsx(en,{position:e,className:t,style:r,children:jsxRuntime.jsx("div",{className:"relative",children:l?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(hr,{icon:"Stack",ariaLabel:"Map layers and settings",onPress:()=>u(true)}),jsxRuntime.jsx(it,{isOpen:d,onClose:()=>u(false),title:"Map layers",animationVariant:"scale",children:g})]}):jsxRuntime.jsxs(reactAriaComponents.DialogTrigger,{children:[jsxRuntime.jsx(hr,{icon:"Stack",ariaLabel:"Map layers and settings"}),jsxRuntime.jsx(at,{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 _y({position:e="top-right",className:t,style:r,onToggle:o,isActive:n=false}){return jsxRuntime.jsx(en,{position:e,className:tailwindMerge.twMerge("md:hidden",t),style:r,children:jsxRuntime.jsx(hr,{icon:"ListDashes",onPress:o,isActive:n,ariaLabel:n?"Hide list view":"Show list view"})})}var Q4={sm:"gap-2",md:"gap-4",lg:"gap-6"};function uc({position:e="top-right",className:t,style:r,children:o,orientation:n="vertical",spacing:a="md"}){return jsxRuntime.jsx(en,{position:e,style:r,children:jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("flex",n==="vertical"?"flex-col":"flex-row",Q4[a],t),children:o})})}function tv({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[d,u]=Be.useState(false),m=Be.useRef(true);Be.useEffect(()=>()=>{m.current=false;},[]);let p=()=>{c?c():e.current&&e.current.easeTo({bearing:0,duration:500});},f=async()=>{if(!d)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{}u(true),navigator.geolocation.getCurrentPosition(C=>{if(!m.current)return;let{latitude:y,longitude:S}=C.coords;e.current&&e.current.flyTo({center:[S,y],zoom:15,duration:2e3}),u(false);},C=>{if(m.current){switch(console.warn("Geolocation error:",{code:C.code,message:C.message,PERMISSION_DENIED:C.PERMISSION_DENIED,POSITION_UNAVAILABLE:C.POSITION_UNAVAILABLE,TIMEOUT:C.TIMEOUT}),C.code){case C.PERMISSION_DENIED:console.warn("Location access denied. Please enable location services in your browser settings.");break;case C.POSITION_UNAVAILABLE:console.warn("Location information unavailable.");break;case C.TIMEOUT:console.warn("Location request timed out.");break;default:console.warn("Error getting location:",C.message);break}u(false);}},{enableHighAccuracy:true,timeout:1e4,maximumAge:0});}};if(!n&&!a&&!i)return null;let g=!i&&n,b=!i&&!n&&a,x=!a&&n;return jsxRuntime.jsxs(uc,{position:t,className:r,style:o,spacing:"sm",children:[i&&jsxRuntime.jsx(hr,{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(hr,{icon:"Compass",onPress:p,ariaLabel:"Reset map orientation",className:tailwindMerge.twMerge(!g&&"rounded-t-none border-t-0",!x&&"rounded-b-none border-b-0")}),a&&jsxRuntime.jsx(hr,{icon:d?"Spinner":"NavigationArrow",onPress:f,isDisabled:d,ariaLabel:"Go to my location",iconClassName:tailwindMerge.twMerge("text-text-primary",d&&"animate-spin"),className:tailwindMerge.twMerge(!b&&"rounded-t-none border-t-0",!b&&n&&"lg:rounded-t lg:border-t")})]})}function av({position:e="top-left",className:t,style:r,onSearch:o,placeholder:n="Search places...",showSearchInput:a=true}){let[i,s]=Be.useState(false),[c,l]=Be.useState(""),d=()=>{a?s(!i):o&&o("");},u=p=>{p.preventDefault(),o&&c.trim()&&(o(c.trim()),s(false));},m=p=>{p.key==="Escape"&&s(false);};return jsxRuntime.jsx(en,{position:e,className:t,style:r,children:jsxRuntime.jsxs("div",{className:"relative",children:[jsxRuntime.jsx(hr,{icon:"MagnifyingGlass",onPress:d,ariaLabel:"Search"}),i&&a&&jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("absolute top-12 left-0 min-w-64","bg-background-surface border border-border rounded-lg shadow-xl p-3"),children:jsxRuntime.jsx("form",{onSubmit:u,children:jsxRuntime.jsxs("div",{className:"flex items-center space-x-2",children:[jsxRuntime.jsx("input",{type:"text",value:c,onChange:p=>l(p.target.value),onKeyDown:m,placeholder:n,className:tailwindMerge.twMerge("flex-1 px-3 py-2 text-sm rounded border","bg-background border-border text-text-primary placeholder:text-text-secondary","focus:outline-none focus:ring-2 focus:ring-action-brand"),autoFocus:true}),jsxRuntime.jsx(Q,{type:"submit",variant:"primary",size:"sm",className:"px-3 py-2",children:"Search"})]})})})]})})}var oR={navigation:"bottom-right",layers:"bottom-left",search:"top-left",list:"top-right",custom:"top-right"};function $p(e){return e.position??oR[e.type]}function iv(e,t,r){let o=$p(e),n=e.id??`${e.type}-${t}`;switch(e.type){case "navigation":{let i=e.showResetZoom!==false&&r.showResetButton;return jsxRuntime.jsx(tv,{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($y,{position:o,currentMapType:e.currentMapType,onMapTypeChange:e.onMapTypeChange,layers:e.layers??r.layers,onLayerToggle:e.onLayerToggle,onClearAll:e.onClearAll,style:e.style,className:e.className},n);case "search":return jsxRuntime.jsx(av,{position:o,onSearch:e.onSearch,placeholder:e.placeholder,showSearchInput:e.showSearchInput,style:e.style,className:e.className},n);case "list":return jsxRuntime.jsx(_y,{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 Qp(e,t){let r=e.reduce((n,a,i)=>{let s=$p(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(iv(a[0].control,a[0].index,t));continue}let i={position:"static",top:"auto",right:"auto",bottom:"auto",left:"auto"};o.push(jsxRuntime.jsx(uc,{position:n,spacing:"sm",children:a.map(({control:s,index:c})=>{let l={...s,style:{...s.style,...i}};return iv(l,c,t)})},`group-${n}`));}return o}function mc(){try{if(typeof process<"u"){let e=process.env.MAPBOX_ACCESS_TOKEN;if(e)return e}}catch{}try{if(typeof process<"u"){let e=process.env.NEXT_PUBLIC_MAPBOX_ACCESS_TOKEN;if(e)return e}}catch{}try{let e=undefined.VITE_MAPBOX_ACCESS_TOKEN;if(e)return e}catch{}}var _p={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 em(e){return e.kind==="vector"}function tm(e){return e.kind==="geojson"}function rm(e){return e.kind==="customPins"}function om(e){return e.kind==="raster"}function Gi(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(aR,{spec:o,mapType:t},o.id);case "geojson":return jsxRuntime.jsx(sR,{spec:o,mapType:t},o.id);case "customPins":return jsxRuntime.jsx(lR,{spec:o,mapType:t},o.id);case "raster":return jsxRuntime.jsx(cR,{spec:o},o.id);case "clusteredVector":return jsxRuntime.jsx(iR,{spec:o,mapType:t},o.id);default:return console.warn("[Layers] Unknown layer kind:",o.kind),null}})})}function aR({spec:e,mapType:t}){let{colorMode:r}=jt(),o=Be.useMemo(()=>dv(e.style,e.renderAs,r,t),[e.style,e.renderAs,r,t]),n=Be.useMemo(()=>({visibility:e.visible===false?"none":"visible"}),[e.visible]),a={id:e.id,type:cv(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(yR.Source,{...s,children:jsxRuntime.jsx(yR.Layer,{...a})},e.tileset)}function iR({spec:e}){let{colorMode:t,isDarkTheme:r}=jt(),o=1.25,n=9,a=3,i=n*1.4,s=.2,c=[0,5],l=Be.useMemo(()=>r?{clusters:e.clusterStyle?.color?Hr(e.clusterStyle.color):"#000000",shadow:e.clusterStyle?.shadowColor||"rgba(0, 0, 0, 0.5)",point:{fill:e.pointStyle?.color?Hr(e.pointStyle.color):"#000000",stroke:e.pointStyle?.borderColor||"#ffffff",shadow:"rgba(0, 0, 0, 0.5)"},text:{onCluster:"#ffffff"},selected:{fill:e.selectedStyle?.color?Hr(e.selectedStyle.color):"#444ae1"}}:{clusters:e.clusterStyle?.color?Hr(e.clusterStyle.color):"#000000",shadow:e.clusterStyle?.shadowColor||"rgba(0, 0, 0, 0.3)",point:{fill:e.pointStyle?.color?Hr(e.pointStyle.color):"#000000",stroke:e.pointStyle?.borderColor||"#ffffff",shadow:"rgba(0, 0, 0, 0.3)"},text:{onCluster:"#ffffff"},selected:{fill:e.selectedStyle?.color?Hr(e.selectedStyle.color):"#444ae1"}},[r,t,e.clusterStyle,e.pointStyle,e.selectedStyle]),d=10,u=30,m=Math.log(2),p=Math.log(2e3),f=(e.clusterStyle?.sizes?.length??0)>0,g=Be.useMemo(()=>f?e.clusterStyle.sizes.map(({threshold:S,radius:N})=>({threshold:S,radius:N,color:l.clusters})):[{threshold:30,radius:20,color:l.clusters},{threshold:200,radius:35,color:l.clusters},{threshold:1e3,radius:50,color:l.clusters}],[f,e.clusterStyle?.sizes,l.clusters]),b=S=>f?["step",["get","point_count"],S[0].radius,...S.flatMap(({threshold:N,radius:T})=>[N,T])]:["interpolate",["linear"],["ln",["max",2,["get","point_count"]]],m,d,p,u],x=S=>f?["step",["get","point_count"],S[0].radius*o,...S.flatMap(({threshold:N,radius:T})=>[N,T*o])]:["interpolate",["linear"],["ln",["max",2,["get","point_count"]]],m,d*o,p,u*o],h=e.tileset.startsWith("mapbox://"),C={id:`${e.id}-source`,type:"vector"};h?C.url=e.tileset:(C.tiles=[e.tileset],C.minzoom=0,C.maxzoom=22);let y=Be.useMemo(()=>{let S=e.pointStyle?.radius??n,N=e.pointStyle?.borderWidth??a,T=e.selectedStyle?.radius??n*1.5,E=R=>{let M={...R};return e.minZoom!==void 0&&(M.minzoom=e.minZoom),e.maxZoom!==void 0&&(M.maxzoom=e.maxZoom),M};return [E({id:`${e.id}-cluster-shadows`,type:"circle","source-layer":e.sourceLayer,filter:["==",["get","cluster"],true],paint:{"circle-radius":x(g),"circle-color":l.shadow,"circle-blur":.5,"circle-translate":[0,8]}}),E({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}}),E({id:`${e.id}-clusters`,type:"circle","source-layer":e.sourceLayer,filter:["==",["get","cluster"],true],paint:{"circle-radius":b(g),"circle-color":["step",["get","point_count"],g[0].color,...g.flatMap(({threshold:R,color:M})=>[R,M])]}}),E({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}}),E({id:`${e.id}-points`,type:"circle","source-layer":e.sourceLayer,filter:["all",["!=",["get","cluster"],true],["!=",["get","id"],e.selectedId||"selected"]],paint:{"circle-radius":S,"circle-color":l.point.fill,"circle-stroke-width":N,"circle-stroke-color":l.point.stroke}}),E({id:`${e.id}-selected-point`,type:"circle","source-layer":e.sourceLayer,filter:["==",["get","id"],e.selectedId||"selected"],paint:{"circle-radius":T,"circle-color":l.selected.fill,"circle-stroke-width":N,"circle-stroke-color":"#ffffff"}}),...e.pointStyle?.icon?[E({id:`${e.id}-points-icon`,type:"symbol","source-layer":e.sourceLayer,filter:["all",["!=",["get","cluster"],true],["!=",["get","id"],e.selectedId||"selected"]],layout:{"icon-image":e.pointStyle.icon.name,"icon-size":sv(S,e.pointStyle.icon.size),"icon-allow-overlap":true,"icon-ignore-placement":true}}),E({id:`${e.id}-selected-point-icon`,type:"symbol","source-layer":e.sourceLayer,filter:["==",["get","id"],e.selectedId||"selected"],layout:{"icon-image":e.pointStyle.icon.name,"icon-size":sv(T,e.pointStyle.icon.size),"icon-allow-overlap":true,"icon-ignore-placement":true}})]:[]]},[e.id,e.sourceLayer,e.selectedId,e.minZoom,e.maxZoom,e.pointStyle,e.selectedStyle,g,l,n,a,i,s]);return jsxRuntime.jsx(yR.Source,{...C,children:y.map(S=>jsxRuntime.jsx(yR.Layer,{...S},S.id))},e.tileset)}function sR({spec:e,mapType:t}){let{colorMode:r}=jt(),o=Be.useMemo(()=>typeof e.data=="string"?null:e.data,[e.data]),n=Be.useMemo(()=>dv(e.style,e.renderAs,r,t,o),[e.style,e.renderAs,r,t,o]),a=Be.useMemo(()=>({visibility:e.visible===false?"none":"visible"}),[e.visible]),i=Be.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:cv(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(yR.Source,{...s,children:jsxRuntime.jsx(yR.Layer,{...c})})}function lR({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(yR.Marker,{longitude:a,latitude:i,anchor:"bottom",children:jsxRuntime.jsx(r,{...s})},`${e.id}-${n}`)})})}function cR({spec:e}){let t=Be.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(yR.Source,{...r,children:jsxRuntime.jsx(yR.Layer,{...o})},e.tileset)}var rn="#666";function sv(e,t){let r=t??64;return e*2/r}function cv(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 dv(e,t,r,o,n){if(!e)return {};let a={};if(e.color){let i=Hr(e.color,r,n);switch(t){case "line":a["line-color"]=i;break;case "fill":a["fill-color"]=i;break;case "circle":a["circle-color"]=i;break}}if(e.width&&t==="line"&&(a["line-width"]=lv(e.width)),e.radius&&t==="circle"&&(a["circle-radius"]=lv(e.radius)),e.opacity!==void 0)switch(t){case "line":a["line-opacity"]=e.opacity;break;case "fill":a["fill-opacity"]=e.opacity;break;case "circle":a["circle-opacity"]=e.opacity;break}if(e.fillOpacity!==void 0&&t==="fill"&&(a["fill-opacity"]=e.fillOpacity),t==="fill"&&e.borderWidth&&(a["fill-outline-color"]=e.borderColor?Hr(e.borderColor,r,n):Hr(e.color||"#000",r,n)),t==="circle"&&e.borderWidth){a["circle-stroke-width"]=e.borderWidth;let i=e.borderColor?Hr(e.borderColor,r,n):Rt(`map-${o}-border`,"#ffffff");a["circle-stroke-color"]=i;}return a}function dR(e,t){let r=e.by,o=e.mapping,n=["match",["get",r]];for(let[a,i]of Object.entries(o))n.push(a),n.push(Hr(i));return n.push(rn),n}function uR(e,t){let r=Gf(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=Td(r),n=["match",["get",e]];for(let[a,i]of Object.entries(o))n.push(a),n.push(i);return n.push(rn),n}function pR(e,t="viridis",r,o){let n=Pd(r,e),a;if(o&&o!=="auto")a=o;else {if(a=Rd(n),n.length===0)return console.warn(`[Layers] No numeric values found for property "${e}"`),rn;console.log(`[Layers] Auto-calculated sequential scale for "${e}": ${a.min} to ${a.max}`);}let i=Dd(t),s=["interpolate",["linear"],["get",e]];return i.forEach((c,l)=>{let d=l/(i.length-1),u=a.min+d*(a.max-a.min);s.push(u,c);}),s}function mR(e,t="redYellowBlue",r,o,n){let a=Pd(r,e),i=Uf(a,o),s;if(n&&n!=="auto")s=n;else {if(s=Rd(a),a.length===0)return console.warn(`[Layers] No numeric values found for property "${e}"`),rn;console.log(`[Layers] Auto-calculated diverging scale for "${e}": ${s.min} \u2190 ${i} \u2192 ${s.max}`);}let c=Md(t),l=4,d=["interpolate",["linear"],["get",e]];for(let u=0;u<=l;u++){let m=u/l,p=s.min+m*(i-s.min);d.push(p,c[u]);}for(let u=l+1;u<c.length;u++){let m=(u-l)/(c.length-1-l),p=i+m*(s.max-i);d.push(p,c[u]);}return d}function Hr(e,t,r){if(typeof e=="string")return e;if("token"in e)return Rt(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?uR(e.by,r):(console.warn("[Layers] Categorical auto-assignment requires GeoJSON data (not URL-based data)"),rn);if(e.palette==="sequential")return r?pR(e.by,e.scheme,r,e.scale):(console.warn("[Layers] Sequential palette requires GeoJSON data (not URL-based data)"),rn);if(e.palette==="diverging")return r?mR(e.by,e.scheme,r,e.center,e.scale):(console.warn("[Layers] Diverging palette requires GeoJSON data (not URL-based data)"),rn)}if("mapping"in e)return dR(e)}return rn}function lv(e){return typeof e=="number"?e:"byZoom"in e?["interpolate",["linear"],["zoom"],...e.byZoom.flatMap(([t,r])=>[t,r])]:e}var bc=null;function xc(){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():(bc||(bc=import('mapbox-gl/dist/mapbox-gl.css').then(()=>{}).catch(t=>{console.error("Failed to load Mapbox CSS",t),bc=null;})),bc)}function hc(){return jsxRuntime.jsx("div",{className:"absolute inset-0 z-50 bg-background-surface/90 backdrop-blur-sm pointer-events-none","data-testid":"map-loading-overlay",children:jsxRuntime.jsx("div",{className:"absolute inset-0 opacity-20",children:jsxRuntime.jsx("div",{className:"h-full w-full",style:{backgroundImage:`
|
|
42
42
|
linear-gradient(rgba(0,0,0,0.15) 1px, transparent 1px),
|
|
43
43
|
linear-gradient(90deg, rgba(0,0,0,0.15) 1px, transparent 1px)
|
|
44
|
-
`,backgroundSize:"30px 30px"}})})})}function uc({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-secondary ${t||""}`,children:jsxRuntime.jsxs("div",{className:"text-center",children:[jsxRuntime.jsx(B,{name:"MapPin",size:48,className:"mx-auto mb-2 opacity-50"}),jsxRuntime.jsx("p",{className:"text-sm",children:r})]})})}var Vy={streets:"streets",satellite:"satellite",neutral:"neutral"},pc="streets";function Bi(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 zy({longitude:e,latitude:t,showPulse:r=true,accuracy:o}){return jsxRuntime.jsx(y4.Marker,{longitude:e,latitude:t,anchor:"center",children:jsxRuntime.jsxs("div",{className:"relative flex items-center justify-center",children:[r&&jsxRuntime.jsx("div",{className:"absolute h-12 w-12 animate-[ping_2s_ease-in-out_infinite] rounded-full bg-action-brand opacity-30",style:{animationDelay:"0s"}}),jsxRuntime.jsx("div",{className:"relative z-10 flex h-5 w-5 items-center justify-center rounded-full bg-background-surface shadow-lg",children:jsxRuntime.jsx("div",{className:"h-3 w-3 rounded-full bg-action-brand"})}),o&&o>0&&jsxRuntime.jsx("div",{className:"pointer-events-none absolute rounded-full border border-action-brand/20 bg-action-brand/10",style:{width:`${Math.min(o/2,100)}px`,height:`${Math.min(o/2,100)}px`}})]})})}var Oi=Ie__namespace.default.forwardRef(({initialViewState:e,viewState:t,onViewStateChange:r,scrollEnabled:o=true,className:n,previewMode:a=false,previewModeCta:i,onPreviewModePress:s,mapType:c=pc,layers:l=[],mapboxAccessToken:d,transformRequest:u,isLoading:m=false,onLoad:p,controls:f="default",showUserLocation:g=true,onUserLocationChange:b,children:x,additionalInteractiveLayerIds:v=[],onMapClick:C,showMarker:y=false,markerLocation:S},N)=>{let T=d??ac();if(!T)return jsxRuntime.jsx("div",{className:`relative ${n||""}`,style:{width:"100%",height:"100%"},children:jsxRuntime.jsx(uc,{className:"w-full h-full",message:"Map unavailable"})});let{isDarkTheme:M}=Kt(),P=Ie.useRef(null),E=Ie.useRef(null),[I,A]=Ie.useState(false),[w,k]=Ie.useState(false);Ie.useEffect(()=>{cc();},[]);let[H,G]=Ie.useState(false),z=Ie.useRef(0),[Y,Z]=Ie.useState(null),[V,O]=Ie.useState(null),R=Ie.useRef(null),D=Ie.useRef(null),[F,L]=ts("interactiveMap.trackingLocation",false),[h,W]=Ie.useState(false);Ie.useEffect(()=>{if(!navigator.geolocation){W(true);return}if(F){if(!navigator.permissions?.query){W(true);return}navigator.permissions.query({name:"geolocation"}).then($=>{$.state!=="granted"&&L(false),W(true);}).catch(()=>{W(true);});}else W(true);},[]),Ie.useEffect(()=>{let $=setTimeout(()=>{I||k(true);},200);return ()=>clearTimeout($)},[I]),Ie.useEffect(()=>{D.current=null;},[c,M]),Ie.useEffect(()=>{if(I)return;let $=setInterval(()=>{if(P.current?.loaded()){A(true),k(false);let X=P.current.getMap?.();X&&D.current!==X&&(D.current=X,p?.()),clearInterval($);}},200);return ()=>clearInterval($)},[I,p]),Ie.useEffect(()=>{if(h){if(!F||a){R.current!==null&&(navigator.geolocation.clearWatch(R.current),R.current=null);return}if(!navigator.geolocation){console.warn("Geolocation is not supported by this browser.");return}return R.current=navigator.geolocation.watchPosition($=>{let X={latitude:$.coords.latitude,longitude:$.coords.longitude,accuracy:$.coords.accuracy};O(X),b?.(X);},$=>{console.warn("Geolocation error:",$.message),O(null),b?.(null);},{enableHighAccuracy:true,maximumAge:3e4,timeout:3e4}),()=>{R.current!==null&&(navigator.geolocation.clearWatch(R.current),R.current=null);}}},[F,a,b,h]);let U=Ie.useCallback(()=>{A(true),k(false);let $=P.current?.getMap?.();$&&D.current!==$&&(D.current=$,p?.());},[p]),K=Ie.useCallback(()=>{P.current&&e&&(G(false),z.current=0,P.current.flyTo({center:[e.longitude||0,e.latitude||0],zoom:e.zoom||0,bearing:e.bearing||0,pitch:e.pitch||0,duration:1e3}));},[e]),te=Ie.useMemo(()=>f===false||f===null?[]:f==="default"||f===void 0?Fp:f,[f]),ue=Ie.useCallback(()=>{if(!navigator.geolocation){console.warn("Geolocation is not supported by this browser.");return}L(true),navigator.geolocation.getCurrentPosition($=>{let{latitude:X,longitude:fe}=$.coords;P.current&&P.current.jumpTo({center:[fe,X],zoom:15});},$=>{console.warn("Geolocation error:",$.message),$.code===$.PERMISSION_DENIED&&L(false);},{enableHighAccuracy:true,timeout:1e4,maximumAge:0});},[]),j=Ie.useMemo(()=>{if(a)return null;let $=te.map(X=>X.type==="navigation"?{...X,onResetZoom:X.onResetZoom||K,onGeolocateClick:X.onGeolocateClick||ue}:X);return zp($,{mapRef:P,layers:l,showResetButton:H})},[te,P,a,l,K,H,ue]),ne=Ie.useMemo(()=>{let $=[];return l.filter(X=>X.events?.onClick||X.events?.onMouseEnter||X.events?.onMouseLeave||X.tooltip).forEach(X=>{X.kind==="clusteredVector"?($.push(`${X.id}-clusters`),$.push(`${X.id}-points`),$.push(`${X.id}-selected-point`)):$.push(X.id);}),[...$,...v]},[l,v]),Se=Ie.useMemo(()=>{let $=new Map;return l.forEach(X=>{X.events&&($.set(X.id,X.events),X.kind==="clusteredVector"&&($.set(`${X.id}-clusters`,X.events),$.set(`${X.id}-points`,X.events),$.set(`${X.id}-selected-point`,X.events)));}),$},[l]),oe=Ie.useMemo(()=>{let $=new Map;return l.forEach(X=>{X.tooltip&&($.set(X.id,X.tooltip),X.kind==="clusteredVector"&&($.set(`${X.id}-clusters`,X.tooltip),$.set(`${X.id}-points`,X.tooltip),$.set(`${X.id}-selected-point`,X.tooltip)));}),$},[l]),ae=Ie.useMemo(()=>{let $=new Map;return l.forEach(X=>{X.kind==="clusteredVector"&&($.set(X.id,X),$.set(`${X.id}-clusters`,X),$.set(`${X.id}-points`,X),$.set(`${X.id}-selected-point`,X));}),$},[l]),pe=Ie.useMemo(()=>{if(!y)return null;let $=S?.longitude??t?.longitude??e?.longitude,X=S?.latitude??t?.latitude??e?.latitude;return $===void 0||X===void 0?null:{longitude:$,latitude:X}},[y,S,t,e]),be=Ie.useCallback($=>{if(a)return;let X=$.features?.[0];if(!X||!X.layer)return;let fe=X.layer.id,ie=Se.get(fe),Te=oe.get(fe),Ye;X.geometry.type==="Point"?Ye=X.geometry.coordinates:Ye=[$.lngLat.lng,$.lngLat.lat];let Nt={id:X.id??X.properties?.id,lngLat:Ye,properties:X.properties||{},layerId:fe},Fa=ae.get(fe),Qo=X.properties?.cluster===true;if(Fa&&Qo){let or=P.current;if(or){let Xn=or.getZoom(),Xi=Math.min(Xn+3,18);or.flyTo({center:Ye,zoom:Xi,duration:1e3});}return}if(ie?.onClick&&ie.onClick(Nt),Te&&Te.trigger==="click"){let or;Fa&&"cluster"in Te?Te.point&&(or=Te.point(Nt)):"content"in Te&&(or=typeof Te.content=="function"?Te.content(Nt):Te.content),or&&Z({feature:Nt,content:or,bare:Te.bare});}C&&C($);},[Se,oe,a,C,ae,P,ne]),De=Ie.useCallback($=>{let X=$.features?.[0];if(!X||!X.layer)return null;let fe=X.layer.id,ie=oe.get(fe);if(!ie||ie.trigger!=="hover"&&ie.trigger!==void 0)return null;let Te;X.geometry.type==="Point"?Te=X.geometry.coordinates:Te=[$.lngLat.lng,$.lngLat.lat];let Ye={id:X.id??X.properties?.id,lngLat:Te,properties:X.properties||{},layerId:fe},Nt;if(ae.get(fe)&&"cluster"in ie){let Qo=X.properties?.cluster===true;if(Qo&&ie.cluster){let or=X.properties?.point_count||0;Nt=ie.cluster(or,Ye);}else !Qo&&ie.point?Nt=ie.point(Ye):Nt=Qo?`${X.properties?.point_count||0} items`:null;}else "content"in ie&&(Nt=typeof ie.content=="function"?ie.content(Ye):ie.content);return Nt?{feature:Ye,content:Nt,bare:ie.bare}:null},[oe,ae]),bt=Ie.useCallback($=>{if(a)return;let X=$.features?.[0];if(!X||!X.layer)return;let fe=X.layer.id,ie=Se.get(fe);if(ie?.onMouseEnter){let Ye;X.geometry.type==="Point"?Ye=X.geometry.coordinates:Ye=[$.lngLat.lng,$.lngLat.lat];let Nt={id:X.id??X.properties?.id,lngLat:Ye,properties:X.properties||{},layerId:fe};ie.onMouseEnter(Nt);}let Te=De($);Te&&Z(Te),P.current&&(P.current.getCanvas().style.cursor="pointer");},[Se,a,P,De]),$o=Ie.useCallback($=>{if(a)return;let X=$.features?.[0];if(!X||!X.layer)return;let fe=De($);if(fe){Z(ie=>ie&&ie.feature.layerId===fe.feature.layerId&&ie.feature.id===fe.feature.id?ie:fe);return}Z(ie=>{if(!ie)return ie;let Te=oe.get(ie.feature.layerId);return Te&&(Te.trigger==="hover"||Te.trigger===void 0)?null:ie});},[a,De,oe]),So=Ie.useCallback(()=>{if(!a){if(Se.forEach($=>{$.onMouseLeave?.();}),Y){let $=Y.feature.layerId,X=l.find(fe=>fe.id===$);if(!X){let fe=$.replace(/-(?:clusters|points|selected-point|cluster-shadows|points-shadow|cluster-count)$/,"");X=l.find(ie=>ie.id===fe);}X?.tooltip&&(X.tooltip.trigger||"hover")==="hover"&&Z(null);}P.current&&(P.current.getCanvas().style.cursor="");}},[Se,a,P,Y,l]),re=Ie.useCallback(($,X)=>{for(let fe of l)if(fe.tooltip&&!(X&&fe.id!==X)){if(fe.kind==="geojson"){if(typeof fe.data=="string")continue;let ie=fe.data,Ye=(ie.type==="FeatureCollection"?ie.features:[ie]).find(Nt=>Nt.id===$);if(Ye&&Ye.geometry.type==="Point")return {id:Ye.id,lngLat:Ye.geometry.coordinates,properties:Ye.properties||{},layerId:fe.id}}else if(fe.kind==="customPins"){let ie=fe.data.find(Te=>Te.id===$||Te._id===$||Te.key===$);if(ie)return {id:$,lngLat:fe.getPosition(ie),properties:ie,layerId:fe.id}}}return null},[l]);Ie.useImperativeHandle(N,()=>({showTooltip:($,X)=>{let fe=re($,X);if(!fe)return;let ie=l.find(Te=>Te.id===fe.layerId);if(ie?.tooltip&&"content"in ie.tooltip){let Te=typeof ie.tooltip.content=="function"?ie.tooltip.content(fe):ie.tooltip.content;Z({feature:fe,content:Te,bare:ie.tooltip.bare});}},hideTooltip:()=>{Z(null);},getMap:()=>P.current,markMapAsMoved:()=>{G(true);}}),[re,l]);let xe=($,X)=>u?u($,X):{url:$},Q=m||w;return jsxRuntime.jsx("div",{ref:E,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(y4__default.default,{ref:P,initialViewState:e,...t&&t,style:{width:"100%",height:"100%"},mapStyle:Bi(c,M),styleDiffing:false,mapboxAccessToken:T,transformRequest:xe,onLoad:U,onMove:a?void 0:$=>{if($.originalEvent&&I){let X=$.originalEvent.type,fe=Math.abs(($.viewState.latitude??0)-(e?.latitude??0)),ie=Math.abs(($.viewState.longitude??0)-(e?.longitude??0)),Te=Math.abs(($.viewState.zoom??0)-(e?.zoom??0));e&&(fe>1e-4||ie>1e-4||Te>.1)&&(X==="mousemove"||X==="touchmove"||X==="pointermove"?G(true):(X==="wheel"||X==="mousewheel")&&(z.current+=1,z.current>=3&&G(true)));}r?.($.viewState);},onClick:a?void 0:be,onMouseMove:a?void 0:$o,onMouseEnter:a?void 0:bt,onMouseLeave:a?void 0:So,interactiveLayerIds:a?[]:ne,scrollZoom:a?false:o,dragPan:!a,dragRotate:!a,doubleClickZoom:!a,interactive:!a,attributionControl:false,children:[jsxRuntime.jsx(y4.AttributionControl,{position:"top-left"}),j,Fi(l,c),x,pe&&jsxRuntime.jsx(y4.Marker,{longitude:pe.longitude,latitude:pe.latitude,anchor:"bottom",children:jsxRuntime.jsx(B,{name:"MapPin",size:36,className:"text-map-marker-default",weight:"fill"})}),g&&V&&jsxRuntime.jsx(zy,{longitude:V.longitude,latitude:V.latitude,accuracy:V.accuracy}),Y&&jsxRuntime.jsx(y4.Popup,{longitude:Y.feature.lngLat[0],latitude:Y.feature.lngLat[1],offset:15,closeButton:false,closeOnClick:false,className:Y.bare?"map-tooltip map-tooltip-bare":"map-tooltip",maxWidth:"none",children:Y.content})]},`map-${c}-${M}`),Q&&jsxRuntime.jsx(dc,{}),a&&i&&jsxRuntime.jsx("div",{className:"absolute bottom-8 right-8 z-10",children:i})]})})});Oi.displayName="InteractiveMap";async function Hy(e,t,r,o={}){if(e.hasImage(t))return;let n=o.size??64,a=o.color??"#2c2a26",i=o.weight??"regular",s=server.renderToStaticMarkup(Ie.createElement(r,{size:n,color:a,weight:i})),c=`data:image/svg+xml;charset=utf-8,${encodeURIComponent(s)}`;await new Promise((l,d)=>{let u=new Image(n,n);u.onload=()=>{try{e.hasImage(t)||e.addImage(t,u,{sdf:!1}),l();}catch(m){d(m instanceof Error?m:new Error(`Failed to addImage "${t}": ${String(m)}`));}},u.onerror=m=>{d(m instanceof Error?m:new Error(`Failed to load icon "${t}"`));},u.src=c;});}function Ea({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:d,showExpandToggle:u=false,expandedMapTitle:m="Explore map",expandedMapAddressLabel:p}){let f=i??ac(),{isDarkTheme:g}=Kt(),[b,x]=Ie.useState(false),[v,C]=Ie.useState(false),[y,S]=Ie.useState(false),N=Ie.useRef(null),T=Ie.useRef(null),M=Ie.useCallback(()=>S(true),[]),P=Ie.useCallback(()=>S(false),[]);Ie.useEffect(()=>{cc();},[]);let E={width:typeof e=="number"?`${e}px`:e,height:typeof t=="number"?`${t}px`:t};Ie.useEffect(()=>{let w=setTimeout(()=>{b||C(true);},200);return ()=>clearTimeout(w)},[b]);let I=Ie.useCallback(()=>{x(true),C(false),l?.();},[l]);Ie.useEffect(()=>{if(!T.current)return;let w=new ResizeObserver(()=>{N.current&&N.current.resize();});return w.observe(T.current),()=>{w.disconnect();}},[]);let A=o||v;return f?jsxRuntime.jsxs("div",{ref:T,style:E,className:`relative ${d||""}`,children:[jsxRuntime.jsxs(y4__default.default,{ref:N,mapboxAccessToken:f,initialViewState:r,style:{width:"100%",height:"100%"},mapStyle:Bi(n,g),onLoad:I,scrollZoom:false,dragPan:false,dragRotate:false,doubleClickZoom:false,touchZoomRotate:false,interactive:false,attributionControl:false,children:[c&&jsxRuntime.jsx(y4.AttributionControl,{position:"top-left"}),Fi(a,n),s&&r.longitude!==void 0&&r.latitude!==void 0&&jsxRuntime.jsx(y4.Marker,{longitude:r.longitude,latitude:r.latitude,anchor:"bottom",children:jsxRuntime.jsx(B,{name:"MapPin",size:36,className:"text-map-marker-default",weight:"fill"})})]}),u&&jsxRuntime.jsx("div",{className:"absolute top-4 right-4 z-20",children:jsxRuntime.jsx(gr,{icon:"ArrowsOutSimple",ariaLabel:"Expand map to fullscreen",onPress:M})}),u&&jsxRuntime.jsx(yr,{isOpen:y,onClose:P,title:m,contentPadding:false,maxWidth:"min(1100px, 100vw)",minWidth:"min(360px, 100vw)",height:"80vh",mobileHeight:"82vh",children:jsxRuntime.jsxs("div",{className:"flex flex-col h-full",children:[jsxRuntime.jsx("div",{className:"flex-1 min-h-0 overflow-hidden sm:mx-4 sm:mt-4 sm:rounded-xl sm:border sm:border-border-default",children:jsxRuntime.jsx(Oi,{initialViewState:r,mapType:n,mapboxAccessToken:f,showMarker:s,markerLocation:r.longitude!==void 0&&r.latitude!==void 0?{latitude:r.latitude,longitude:r.longitude}:void 0,layers:a})}),p&&jsxRuntime.jsx("p",{className:"text-sm text-text-secondary px-4 py-3 flex-shrink-0",children:p})]})}),A&&jsxRuntime.jsx(dc,{})]}):jsxRuntime.jsx(uc,{style:E,className:d})}var M4={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 Gy({label:e,size:t="md",variant:r="default",showWarningIndicator:o=true,warningThreshold:n=80,className:a,...i}){let s=M4[t];return jsxRuntime.jsx(reactAriaComponents.Meter,{...i,className:ve(a,"flex flex-col gap-1"),children:({percentage:c,valueText:l})=>{let d=o&&c>=n,u=r==="default"?L4(c):r;return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsxs("div",{className:"flex justify-between gap-2",children:[e&&jsxRuntime.jsx(Ae,{children:e}),jsxRuntime.jsxs("span",{className:tailwindMerge.twMerge(s.text,d?"text-feedback-error-text":"text-text-secondary"),children:[d&&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]",A4(u)),style:{width:`${Math.min(100,Math.max(0,c))}%`},role:"presentation","aria-hidden":"true"})})]})}})}function L4(e){return e<50?"success":e<70?"info":e<90?"warning":"error"}function A4(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 fc="bg-background-surface border-l-[3px] border-y border-r border-border-default text-text-primary",z4={success:{container:fc,iconName:"CheckCircle",iconColor:"text-feedback-success-text",borderColor:"var(--color-feedback-success-border)"},error:{container:fc,iconName:"XCircle",iconColor:"text-feedback-error-text",borderColor:"var(--color-feedback-error-border)"},warning:{container:fc,iconName:"Warning",iconColor:"text-feedback-warning-text",borderColor:"var(--color-feedback-warning-border)"},info:{container:fc,iconName:"Info",iconColor:"text-feedback-info-text",borderColor:"var(--color-feedback-info-border)"}};function bc({id:e,message:t,variant:r="info",duration:o=5e3,dismissible:n=true,onDismiss:a,className:i}){let{container:s,iconName:c,iconColor:l,borderColor:d}=z4[r];return Ie.useEffect(()=>{if(o>0){let u=setTimeout(()=>{a?.();},o);return ()=>clearTimeout(u)}},[o,a]),jsxRuntime.jsxs(framerMotion.motion.div,{layout:true,initial:{opacity:0,y:-20,scale:.95},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,scale:.95,transition:{duration:.2}},className:tailwindMerge.twMerge("pointer-events-auto flex items-center gap-3 rounded-lg p-4 shadow-lg",s,i),style:{borderLeftColor:d},children:[jsxRuntime.jsx(B,{name:c,size:20,className:l}),jsxRuntime.jsx("p",{className:"flex-1 select-text text-sm font-medium",children:t}),n&&jsxRuntime.jsx("button",{type:"button",onClick:a,className:"flex-shrink-0 rounded-md p-1 transition-colors hover:bg-background-hover","aria-label":"Dismiss notification",children:jsxRuntime.jsx(B,{name:"X",size:16})})]})}var K4={"top-left":"top-4 left-4 items-start","top-center":"top-4 left-1/2 -translate-x-1/2 items-start","top-right":"top-4 right-4 items-end","bottom-left":"bottom-4 left-4 items-start","bottom-center":"bottom-4 left-1/2 -translate-x-1/2 items-start","bottom-right":"bottom-4 right-4 items-end"};function xc({notices:e,onDismiss:t,position:r="bottom-center",className:o}){let[n,a]=Ie.useState(false);if(Ie.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",K4[r],o),"aria-live":"polite","aria-atomic":"true",children:jsxRuntime.jsx(framerMotion.AnimatePresence,{mode:"sync",children:e.map(s=>jsxRuntime.jsx(bc,{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 Uy=Ie.createContext(void 0);function Yy({children:e,position:t="bottom-center",maxNotices:r=5,defaultDuration:o=5e3,defaultDismissible:n=true}){let[a,i]=Ie.useState([]),s=Ie.useCallback((u,m)=>{let p=`notice-${Date.now()}-${Math.random()}`,f={id:p,message:u,variant:m?.variant||"info",duration:m?.duration??o,dismissible:m?.dismissible??n};return i(g=>{let b=[...g,f];return b.length>r?b.slice(-r):b}),p},[r,o,n]),c=Ie.useCallback(u=>{i(m=>m.filter(p=>p.id!==u));},[]),l=Ie.useCallback(()=>{i([]);},[]),d={notices:a,addNotice:s,removeNotice:c,clearNotices:l};return jsxRuntime.jsxs(Uy.Provider,{value:d,children:[e,jsxRuntime.jsx(xc,{notices:a,onDismiss:c,position:t})]})}function Ky(){let e=Ie.useContext(Uy);if(!e)throw new Error("useNoticeContext must be used within a NoticeProvider");return e}function Jy(){let{addNotice:e,removeNotice:t,clearNotices:r}=Ky(),o=Ie.useCallback((c,l)=>e(c,l),[e]),n=Ie.useCallback((c,l)=>e(c,{...l,variant:"success"}),[e]),a=Ie.useCallback((c,l)=>e(c,{...l,variant:"error"}),[e]),i=Ie.useCallback((c,l)=>e(c,{...l,variant:"warning"}),[e]),s=Ie.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 Q4={plain:"",contained:"bg-background-surface rounded-lg border border-border-default p-6",bordered:"border-y border-border-default py-6"},_4={none:"",sm:"my-4",md:"my-6 md:my-8",lg:"my-8 md:my-12"};function Ma({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 d=Ie__namespace.default.useId(),u=e?`${e}-heading`:d,m=t||r||o;return jsxRuntime.jsxs("section",{id:e,className:tailwindMerge.twMerge(_4[a],Q4[n],c),"aria-labelledby":t?u:void 0,children:[m&&jsxRuntime.jsxs("header",{id:u,className:tailwindMerge.twMerge("flex flex-col sm:flex-row sm:items-start sm:justify-between gap-4",i&&"border-b border-border-default pb-4 mb-6",!i&&l&&"mb-6"),children:[jsxRuntime.jsxs("div",{className:"min-w-0 flex-1",children:[t&&jsxRuntime.jsx(Jt,{tag:s,size:"md",className:"text-text-primary",children:t}),r&&jsxRuntime.jsx("p",{className:"mt-2 text-base text-text-secondary",children:r})]}),o&&jsxRuntime.jsx("div",{className:"flex-shrink-0",children:o})]}),l&&jsxRuntime.jsx("div",{className:"",children:l})]})}Ma.displayName="Section";function Cc({sections:e,activeSection:t,onSectionChange:r,orientation:o="responsive",className:n,scrollBehavior:a="smooth",stickyTop:i="1.5rem",sectionIdPrefix:s="section-",filterSection:c,scrollContainerId:l}){let d=Ie__namespace.useRef(null),u=Ie__namespace.useRef(null),[m,p]=Ie__namespace.useState(e[0]?.id||null),f=t??m,g=Ie__namespace.useCallback(()=>l?document.getElementById(l):null,[l]);Ie__namespace.useEffect(()=>{let y=window.location.hash;if(!y)return;let S=y.slice(1),N=e.find(T=>`${s}${T.id}`===S);N&&requestAnimationFrame(()=>{let T=document.getElementById(S);if(!T)return;let M=g();if(M){let P=M.getBoundingClientRect(),E=T.getBoundingClientRect(),I=M.scrollTop+(E.top-P.top);M.scrollTo({top:Math.max(0,I),behavior:"instant"});}else T.scrollIntoView({behavior:"instant",block:"start"});r?r(N.id):p(N.id);});},[]),Ie__namespace.useEffect(()=>{if(t!==void 0&&r)return;let y=M=>{if(!M)return false;let P=window.getComputedStyle(M);return P.display!=="none"&&P.visibility!=="hidden"&&P.opacity!=="0"},S=()=>{let M=y(d.current),P=y(u.current);if(!M&&!P)return null;let E=g(),I=new IntersectionObserver(A=>{A.forEach(w=>{if(w.isIntersecting){let k=w.target.id.replace(s,"");r?r(k):p(k);}});},{root:E??void 0,rootMargin:"-20% 0px -70% 0px",threshold:0});return e.forEach(A=>{let w=document.getElementById(`${s}${A.id}`);w&&I.observe(w);}),I},N=S(),T=()=>{N&&N.disconnect(),N=S();};return window.addEventListener("resize",T),()=>{N&&N.disconnect(),window.removeEventListener("resize",T);}},[e,s,t,r,o,g]);let b=Ie__namespace.useMemo(()=>c?e.filter(c):e,[e,c]),x=Ie__namespace.useCallback((y,S)=>{y.preventDefault();let N=document.getElementById(`${s}${S}`);if(N){let T=g();if(T){let M=T.getBoundingClientRect(),P=N.getBoundingClientRect(),E=T.scrollTop+(P.top-M.top),I=Math.max(0,T.scrollHeight-T.clientHeight);T.scrollTo({top:Math.max(0,Math.min(E,I)),behavior:a});}else {let M=N.getBoundingClientRect().top+window.scrollY,P=Math.max(0,document.documentElement.scrollHeight-window.innerHeight),E=Math.max(0,Math.min(M,P));window.scrollTo({top:E,behavior:a});}window.history.pushState&&window.history.pushState(null,"",`#${s}${S}`),r?r(S):p(S);}},[s,a,r,g]);if(b.length===0)return null;let v=o==="vertical"?"":o==="horizontal"?"hidden":"hidden lg:block",C=o==="horizontal"?"":o==="vertical"?"hidden":"lg:hidden";return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("nav",{ref:d,className:tailwindMerge.twMerge(v,n),"aria-label":"Section navigation",children:jsxRuntime.jsx("div",{className:"space-y-1",style:{position:"sticky",top:i},children:b.map(y=>{let S=f===y.id;return jsxRuntime.jsx("a",{href:`#${s}${y.id}`,onClick:N=>x(N,y.id),className:tailwindMerge.twMerge("block w-full text-left px-3 py-2 rounded-md text-sm transition-colors no-underline",S?"bg-background-muted text-text-primary font-semibold":"text-text-secondary hover:text-text-primary hover:bg-background-hover"),"aria-current":S?"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-secondary",children:y.count})]})},y.id)})})}),jsxRuntime.jsx("nav",{ref:u,className:tailwindMerge.twMerge(C,"overflow-x-auto scrollbar-hide sticky top-0 z-10 py-4 -mt-4",n),"aria-label":"Section navigation",children:jsxRuntime.jsx("div",{className:"flex gap-2 min-w-max",children:b.map(y=>{let S=f===y.id;return jsxRuntime.jsx("a",{href:`#${s}${y.id}`,onClick:N=>x(N,y.id),className:tailwindMerge.twMerge("inline-block px-4 py-2 rounded-md text-sm whitespace-nowrap transition-colors no-underline",S?"bg-background-muted text-text-primary font-semibold":"text-text-secondary hover:text-text-primary hover:bg-background-hover"),"aria-current":S?"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-secondary",children:["(",y.count,")"]})]})},y.id)})})})]})}function qy(e){return "primary"}var Sc=Ie__namespace.createContext({variant:"primary"});function aR({orientation:e,className:t=""}){return `flex flex-col w-full ${{horizontal:"",vertical:"flex-row"}[e]||""} ${t}`.trim()}function Nc({variant:e="primary",...t}){let r=qy();return jsxRuntime.jsx(Sc.Provider,{value:{variant:r},children:jsxRuntime.jsx("div",{className:"w-full h-auto",children:jsxRuntime.jsx(reactAriaComponents.Tabs,{...t,className:reactAriaComponents.composeRenderProps(t.className,(o,n)=>aR({...n,className:o}))})})})}function iR({orientation:e,sticky:t=false,className:r=""}){let o="flex gap-10 relative after:absolute after:bottom-0 after:left-0 after:right-0 after:h-[2px] after:bg-border-muted",n={horizontal:"flex-row w-full flex-nowrap overflow-x-auto scrollbar-hide",vertical:"flex-col items-start"},a=t?"sticky top-0 bg-background-surface z-10":"";return `${o} ${n[e]||""} ${a} ${r}`.trim()}function kc({variant:e,sticky:t=false,...r}){let o=Ie__namespace.useContext(Sc),n=qy(e??o.variant);return jsxRuntime.jsx(Sc.Provider,{value:{variant:n},children:jsxRuntime.jsx(reactAriaComponents.TabList,{...r,className:reactAriaComponents.composeRenderProps(r.className,(a,i)=>iR({...i,sticky:t,className:a||""}))})})}function sR({isSelected:e,isDisabled:t,variant:r,className:o=""}){let n="flex items-center cursor-default px-1 py-2 font-medium transition-all hover:cursor-pointer relative shrink-0 whitespace-nowrap",a=`${Ke()} ${r==="primary"?"focus-visible:outline-action-primary":""}`.trim(),i="";return t?i="text-text-disabled forced-colors:text-[GrayText] cursor-not-allowed":e?i="text-action-primary border-b-2 border-action-primary z-10 forced-colors:bg-[Highlight]":i="text-text-disabled hover:text-text-secondary",`${n} ${a} ${i} ${o}`.trim()}function Tc(e){let{variant:t}=Ie__namespace.useContext(Sc);return jsxRuntime.jsx(reactAriaComponents.Tab,{...e,"data-testid":e.id?`tab-${e.id}`:void 0,className:reactAriaComponents.composeRenderProps(e.className,(r,o)=>sR({...o,className:r,isSelected:o.isSelected,variant:t}))})}function lR({className:e=""}){let t="block w-full mt-4 text-text-primary",r=Ke();return `${t} ${r} ${e}`.trim()}function Xy(e){return jsxRuntime.jsx(reactAriaComponents.TabPanel,{...e,className:reactAriaComponents.composeRenderProps(e.className,(t,r)=>lR({...r,className:t||""}))})}function Gn({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 Zy({title:e,subtitle:t,breadcrumbs:r,breadcrumbsNode:o,media:n,actions:a,metadata:i,headingAs:s,sticky:c,stickyTop:l="0",zIndex:d=10,isLoading:u=false,className:m}){let p=c?"sticky bg-background-body":"",f=c?{top:l,zIndex:d}:{};return u?jsxRuntime.jsxs("header",{className:tailwindMerge.twMerge("mb-8 md:mb-12",p,m),style:f,"aria-labelledby":"page-title",children:[o||r?.length?jsxRuntime.jsx("div",{className:"mb-2 md:mb-4",children:jsxRuntime.jsx(J,{className:"h-4 w-32"})}):null,jsxRuntime.jsxs("div",{className:"flex flex-col md:flex-row md:items-start md:justify-between gap-4",children:[jsxRuntime.jsxs("div",{className:"min-w-0 flex-1",children:[jsxRuntime.jsx("div",{id:"page-title",children:jsxRuntime.jsx(J,{className:"h-8 w-64"})}),t?jsxRuntime.jsx(J,{className:"mt-2 h-5 w-48"}):null,i?jsxRuntime.jsx(J,{className:"mt-2 h-4 w-40"}):null,a?.length?jsxRuntime.jsx("div",{className:"mt-6 flex flex-col items-stretch gap-3 md:hidden",children:a.map((g,b)=>jsxRuntime.jsx(J,{className:"h-9 w-full"},b))}):null]}),a?.length?jsxRuntime.jsx("div",{className:"hidden md:flex md:items-start gap-2 shrink-0",children:a.map((g,b)=>jsxRuntime.jsx(J,{className:"h-9 w-24"},b))}):null]}),n?jsxRuntime.jsx("div",{className:"mt-4 md:mt-6",children:jsxRuntime.jsx(J,{className:"h-64 w-full"})}):null]}):jsxRuntime.jsxs("header",{className:tailwindMerge.twMerge("mb-8 md:mb-12",p,m),style:f,"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(Gs,{children:r.map((g,b)=>{let{label:x,...v}=g;return jsxRuntime.jsx(Us,{...v,children:x},`${x}-${b}`)})})}):null,jsxRuntime.jsxs("div",{className:"flex flex-col md:flex-row md:items-start md:justify-between gap-4",children:[jsxRuntime.jsxs("div",{className:"min-w-0 flex-1",children:[jsxRuntime.jsx("div",{id:"page-title",children:jsxRuntime.jsx(Jt,{tag:s||"h1",size:"xl",children:e})}),t?jsxRuntime.jsx("p",{className:"mt-2 text-base md:text-lg text-text-secondary",children:t}):null,i?jsxRuntime.jsx("div",{className:"mt-2 text-sm text-text-secondary",children:i}):null,a?.length?jsxRuntime.jsx("div",{className:"mt-6 flex flex-col items-stretch gap-3 md:hidden",children:a.map((g,b)=>jsxRuntime.jsx(Ie__namespace.default.Fragment,{children:g},b))}):null]}),a?.length?jsxRuntime.jsx("div",{className:"hidden md:flex md:items-start gap-2 shrink-0",children:a.map((g,b)=>jsxRuntime.jsx(Ie__namespace.default.Fragment,{children:g},b))}):null]}),n?jsxRuntime.jsx("div",{className:"mt-4 md:mt-6",children:n}):null]})}function $y({tabs:e,value:t,defaultValue:r,onChange:o,className:n,children:a}){let i=s=>{o?.(s);};return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("mb-3 md:mb-4 border-b-2 border-border-muted",n),children:jsxRuntime.jsxs(Nc,{selectedKey:t,defaultSelectedKey:r||e[0]?.id,onSelectionChange:i,children:[jsxRuntime.jsx(kc,{className:"after:bg-transparent",children:e.map(s=>jsxRuntime.jsx(Tc,{id:s.id,isDisabled:s.disabled,children:s.label},s.id))}),a]})})}function Qy({children:e,className:t,withSectionNav:r,navWidth:o="240px",gap:n="2rem",activeSection:a,onSectionChange:i,scrollBehavior:s,sectionIdPrefix:c="section-",scrollContainerId:l}){return r?jsxRuntime.jsx(cR,{position:r,navWidth:o,gap:n,activeSection:a,onSectionChange:i,scrollBehavior:s,sectionIdPrefix:c,scrollContainerId:l,className:t,children:e}):jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("w-full space-y-8 md:space-y-12",t),children:e})}function _y({children:e,sticky:t=true,className:r}){return jsxRuntime.jsx("aside",{className:tailwindMerge.twMerge(t?"lg:sticky lg:top-20":"",r),children:e})}function cR({activeSection:e,onSectionChange:t,position:r,navWidth:o,gap:n,children:a,className:i,scrollBehavior:s,sectionIdPrefix:c,scrollContainerId:l}){let d=Ie__namespace.default.useMemo(()=>{let g=[];return Ie__namespace.default.Children.forEach(a,b=>{if(Ie__namespace.default.isValidElement(b)&&(b.type===Ma||typeof b.type=="object"&&b.type?.displayName==="Section"||typeof b.type=="function"&&b.type?.displayName==="Section")){let x=b.props;x.id?g.push({id:x.id,label:x.navLabel||(typeof x.title=="string"?x.title:`Section ${x.id}`)}):process.env.NODE_ENV==="development"&&console.warn("Section component used within PageLayout.Content with withSectionNav must have an id prop");}}),g},[a]),u=Ie__namespace.default.useMemo(()=>{let g=Ie__namespace.default.Children.map(a,b=>{if(Ie__namespace.default.isValidElement(b)&&(b.type===Ma||typeof b.type=="object"&&b.type?.displayName==="Section"||typeof b.type=="function"&&b.type?.displayName==="Section")){let x=b.props;if(x.id)return Ie__namespace.default.cloneElement(b,{...x,id:`${c}${x.id}`})}return b});return jsxRuntime.jsx("div",{className:"space-y-8 md:space-y-12",children:g})},[a,c]),m=(g,b)=>jsxRuntime.jsx(Cc,{sections:d,activeSection:e,onSectionChange:t,orientation:g,scrollBehavior:s,sectionIdPrefix:c,scrollContainerId:l,className:b});if(r==="above")return jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("space-y-4",i),children:[jsxRuntime.jsx("div",{className:"sticky top-0 z-10 bg-background-body",children:m("horizontal")}),u]});let p=r==="left"?"var(--nav-width) 1fr":"1fr var(--nav-width)",f=r==="right"?"hidden lg:block sticky top-20 self-start [&_a]:text-right":"hidden lg:block sticky top-20 self-start";return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("div",{className:"lg:hidden sticky top-0 z-10 mt-3 mb-4 bg-background-body border-b border-border-default shadow-sm",children:m("horizontal","py-3 mt-0")}),jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("lg:grid",i),style:{gridTemplateColumns:p,gap:n,"--nav-width":o},children:[r==="left"&&jsxRuntime.jsx("nav",{className:f,children:m("vertical")}),u,r==="right"&&jsxRuntime.jsx("nav",{className:f,children:m("vertical")})]})]})}function ev({children:e,className:t}){return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("flex-1 overflow-auto min-h-0",t),children:e})}Gn.Header=Zy;Gn.Tabs=$y;Gn.Content=Qy;Gn.Aside=_y;Gn.ScrollableContent=ev;function uR(e){return typeof e=="object"&&e!==null&&"features"in e&&Array.isArray(e.features)&&"type"in e&&typeof e.type=="string"}var pR=process.env.NEXT_PUBLIC_MAPBOX_ACCESS_TOKEN||"";function ov({label:e,selectedKey:t,defaultSelectedKey:r,onSelectionChange:o,placeholder:n="Enter a location...",errorMessage:a,description:i,size:s="md",tooltip:c,isRequired:l,isDisabled:d,showErrors:u=true,autoFocus:m=false,onSelect:p,searchTypes:f=["place","address"],defaultFilter:g,validationResult:b,countryRestrictions:x,proximity:v="ip",hideCountry:C=false,showIcon:y=true,useMobileTray:S=true,className:N}){let T=Ie.useRef(new WeakMap),M=Ie.useRef([]),P={requestType:"REST",method:"GET",url:"https://api.mapbox.com/geocoding/v5/mapbox.places/{q}.json",extraParams:{access_token:pR,types:f.join(","),limit:"5",...x?.length?{country:x.join(",").toLowerCase()}:{},...v?{proximity:v==="ip"?"ip":v.join(",")}:{}},shouldLoad:A=>A.length>0,transformResponse:A=>{if(!uR(A))return [];let w=A.features.map(k=>{let H={id:k.id,name:k.place_name};return T.current.set(H,{type:k.place_type[0],center:k.center,context:k.context,address:k.address,text:k.text,properties:k.properties}),H});return w.length>0&&(M.current=w),w}},E=A=>{let w=T.current.get(A),k=A.name.split(", "),H=k[0],G=k.slice(1);C&&G.length>0&&(G=G.slice(0,-1));let z=G.join(", ");return jsxRuntime.jsxs("div",{className:"flex items-center gap-3 py-0.5",children:[y&&jsxRuntime.jsx(B,{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-secondary"}),jsxRuntime.jsxs("div",{className:"flex min-w-0 flex-col",children:[jsxRuntime.jsx("span",{className:"truncate font-medium text-text-primary",children:H}),z&&jsxRuntime.jsx("span",{className:"truncate text-sm text-text-secondary",children:z})]})]})},I=A=>A?jsxRuntime.jsx(B,{name:"CircleNotch",className:"h-4 w-4 animate-spin text-text-secondary"}):jsxRuntime.jsx(B,{name:"MagnifyingGlass",className:"h-4 w-4 text-text-secondary"});return jsxRuntime.jsx(Os,{"data-testid":"autocomplete","data-config":JSON.stringify({types:f.join(","),country:x?.join(",")?.toLowerCase(),proximity:v==="ip"?"ip":v?.join(",")}),label:e||void 0,selectedKey:t,defaultSelectedKey:r,onSelectionChange:A=>{if(o?.(A),A){let k=M.current.find(H=>H.id===A);if(k){let H=T.current.get(k);H&&p({id:k.id,place_name:k.name,place_type:[H.type],center:H.center,context:H.context,address:H.address,text:H.text,properties:H.properties});}}},requestConfig:P,placeholder:n,errorMessage:a,description:i,size:s,tooltip:c,isRequired:l,isDisabled:d,showErrors:u,autoFocus:m,renderItem:E,renderLeftIcon:I,defaultFilter:g,validationResult:b,hideChevron:true,useMobileTray:S,className:N})}function av({label:e,rightLabel:t,progressWidth:r=64,hideLabels:o=false,...n}){return jsxRuntime.jsx(reactAriaComponents.ProgressBar,{...n,className:ve(n.className,"flex flex-col gap-1"),children:({percentage:a,valueText:i,isIndeterminate:s})=>jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[!o&&jsxRuntime.jsxs("div",{className:"flex items-center justify-between gap-2",children:[jsxRuntime.jsx("span",{className:"text-sm text-text-primary",children:e}),jsxRuntime.jsx("span",{className:"text-sm text-text-primary",children:t||i})]}),jsxRuntime.jsx("div",{className:`relative h-2 w-${r} overflow-hidden rounded-full bg-background-muted outline-none`,children:jsxRuntime.jsx("div",{className:`absolute top-0 h-full rounded-full bg-action-default forced-colors:bg-[Highlight] ${s?"left-full duration-1000 ease-out animate-in slide-out-to-right-full repeat-infinite [--tw-enter-translate-x:calc(-16rem-100%)]":"left-0"}`,style:{width:(s?40:a)+"%"}})})]})})}function iv({as:e="div",size:t="md",tone:r="editorial",className:o="",children:n,...a}){let i=t==="md"?"":`prose-${t}`,s=r==="editorial"?"":`prose-${r}`;return jsxRuntime.jsx(e,{className:Yt("prose",i,s,o),...a,children:n})}function yR(e="2"){return {1:"p-2 text-xs",2:"p-3 text-sm",3:"p-4 text-base"}[e]}function vR(e){return e?"border-action-primary text-action-primary":"border-border text-text-primary"}function CR(){return "opacity-50 cursor-not-allowed"}function rm({value:e,isDisabled:t,className:r,children:o,size:n="2",variant:a="primary"}){return jsxRuntime.jsx(reactAriaComponents.Radio,{value:e,isDisabled:t,className:ve(r,"flex items-center justify-center cursor-pointer transition-all duration-200 focus:outline-none focus:ring-2 focus:ring-action-primary focus:ring-offset-2 rounded-lg min-h-[44px]"),children:({isSelected:s,isDisabled:c})=>jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("flex items-center justify-center w-full h-full transition-all duration-200 rounded-lg border-2 bg-background-surface",!(t||c)&&!s&&"hover:bg-background-hover hover:border-border-hover",yR(n),vR(s),(t||c)&&CR(),r),children:o})})}function om({value:e,defaultValue:t,onChange:r,isDisabled:o,isReadOnly:n,isRequired:a,className:i,children:s,size:c="2",variant:l="primary",columns:d="repeat(auto-fit, minmax(160px, 1fr))",gap:u="1"}){return jsxRuntime.jsx(reactAriaComponents.RadioGroup,{value:e,defaultValue:t,onChange:r,isDisabled:o,isReadOnly:n,isRequired:a,className:ve(i,"grid"),style:{gridTemplateColumns:/^\d+$/.test(String(d))?`repeat(${d}, minmax(0, 1fr))`:d,gap:u==="1"?"0.25rem":u==="2"?"0.5rem":u==="3"?"0.75rem":u==="4"?"1rem":typeof u=="number"?`${u}px`:u},children:Ie__namespace.default.Children.map(s,m=>Ie__namespace.default.isValidElement(m)?Ie__namespace.default.cloneElement(m,{size:c,variant:l}):m)})}function TR(e){return "primary"}var sv=Ie.createContext({variant:"primary"});function lv(e){let{variant:t="primary",...r}=e,o=TR();return jsxRuntime.jsx(sv.Provider,{value:{variant:o},children:jsxRuntime.jsxs(reactAriaComponents.RadioGroup,{...r,className:ve(e.className,"group flex flex-col gap-2"),children:[jsxRuntime.jsx(Ae,{children:e.label}),jsxRuntime.jsx("div",{className:`flex ${r.orientation==="horizontal"?"flex-row gap-4":"flex-col gap-2"}`,children:e.children}),e.description&&jsxRuntime.jsx(Ce,{children:e.description}),jsxRuntime.jsx(de,{children:typeof e.errorMessage=="function"&&e.validationResult?e.errorMessage(e.validationResult):typeof e.errorMessage=="string"?e.errorMessage:null})]})})}function PR({isSelected:e,isInvalid:t,isDisabled:r}){let n=[Ke(),"focus-visible:outline-action-primary","w-5 h-5 rounded-full border-2 bg-background-surface transition-all"];return r?n.push("border-border-muted forced-colors:!border-[GrayText]"):t?n.push("border-feedback-error-border group-pressed:border-feedback-error-border dark:group-pressed:border-feedback-error-border forced-colors:!border-[Mark]"):e?n.push("border-[7px] border-action-primary forced-colors:!border-[Highlight] group-pressed:border-action-primary-hover dark:group-pressed:border-action-primary-hover"):n.push("border-border-default group-pressed:border-border-focus dark:group-pressed:border-border-focus"),n.join(" ")}function cv(e){return Ie.useContext(sv),jsxRuntime.jsx(reactAriaComponents.Radio,{...e,className:ve(e.className,"group flex items-center gap-2 text-sm text-text-primary transition disabled:text-text-secondary dark:text-text-primary dark:disabled:text-text-secondary forced-colors:disabled:text-[GrayText]"),children:t=>jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("div",{className:PR(t)}),e.children]})})}var VR={sm:{toolbar:"p-1.5",contentWrapper:"min-h-[100px]",contentPadding:"p-3",placeholderPos:"left-3 top-3",prose:"prose-xs",h1:"[&_.ProseMirror_h1]:mb-2 [&_.ProseMirror_h1]:text-base [&_.ProseMirror_h1]:font-bold",h2:"[&_.ProseMirror_h2]:mb-1.5 [&_.ProseMirror_h2]:text-sm [&_.ProseMirror_h2]:font-semibold",p:"[&_.ProseMirror_p]:mb-1",list:"[&_.ProseMirror_ul]:mb-1 [&_.ProseMirror_ul]:ml-4 [&_.ProseMirror_ol]:mb-1 [&_.ProseMirror_ol]:ml-4",li:"[&_.ProseMirror_li]:mb-0.5",placeholderText:"text-xs"},md:{toolbar:"p-2",contentWrapper:"min-h-[200px]",contentPadding:"p-4",placeholderPos:"left-4 top-4",prose:"prose-sm",h1:"[&_.ProseMirror_h1]:mb-4 [&_.ProseMirror_h1]:text-2xl [&_.ProseMirror_h1]:font-bold",h2:"[&_.ProseMirror_h2]:mb-3 [&_.ProseMirror_h2]:text-xl [&_.ProseMirror_h2]:font-semibold",p:"[&_.ProseMirror_p]:mb-2",list:"[&_.ProseMirror_ul]:mb-2 [&_.ProseMirror_ul]:ml-6 [&_.ProseMirror_ol]:mb-2 [&_.ProseMirror_ol]:ml-6",li:"[&_.ProseMirror_li]:mb-1",placeholderText:"text-sm"},lg:{toolbar:"p-2.5",contentWrapper:"min-h-[250px]",contentPadding:"p-5",placeholderPos:"left-5 top-5",prose:"prose-base",h1:"[&_.ProseMirror_h1]:mb-5 [&_.ProseMirror_h1]:text-3xl [&_.ProseMirror_h1]:font-bold",h2:"[&_.ProseMirror_h2]:mb-4 [&_.ProseMirror_h2]:text-2xl [&_.ProseMirror_h2]:font-semibold",p:"[&_.ProseMirror_p]:mb-3",list:"[&_.ProseMirror_ul]:mb-3 [&_.ProseMirror_ul]:ml-6 [&_.ProseMirror_ol]:mb-3 [&_.ProseMirror_ol]:ml-6",li:"[&_.ProseMirror_li]:mb-1.5",placeholderText:"text-base"},xl:{toolbar:"p-3",contentWrapper:"min-h-[300px]",contentPadding:"p-6",placeholderPos:"left-6 top-6",prose:"prose-lg",h1:"[&_.ProseMirror_h1]:mb-6 [&_.ProseMirror_h1]:text-4xl [&_.ProseMirror_h1]:font-bold",h2:"[&_.ProseMirror_h2]:mb-5 [&_.ProseMirror_h2]:text-3xl [&_.ProseMirror_h2]:font-semibold",p:"[&_.ProseMirror_p]:mb-3",list:"[&_.ProseMirror_ul]:mb-3 [&_.ProseMirror_ul]:ml-8 [&_.ProseMirror_ol]:mb-3 [&_.ProseMirror_ol]:ml-8",li:"[&_.ProseMirror_li]:mb-2",placeholderText:"text-lg"}},Ia=({isActive:e=false,onPress:t,children:r})=>jsxRuntime.jsx(_,{variant:e?"secondary":"ghost",size:"sm",onPress:t,className:"p-1",children:r});function zR({initialUrl:e,isOpen:t,onClose:r,onSubmit:o}){let[n,a]=Ie.useState(e);return Ie__namespace.default.useEffect(()=>{a(e);},[e]),jsxRuntime.jsx(nr,{isDismissable:true,isOpen:t,onOpenChange:s=>!s&&r(),children:jsxRuntime.jsx(reactAriaComponents.Modal,{className:"flex items-center justify-center p-4 outline-none focus:outline-none focus-visible:outline-none ring-0 focus:ring-0 focus-visible:ring-0",children:jsxRuntime.jsx(reactAriaComponents.Dialog,{className:"relative bg-background-surface rounded-lg shadow-xl max-w-md w-full",children:jsxRuntime.jsxs("form",{onSubmit:s=>{s.preventDefault(),o(n),r();},children:[jsxRuntime.jsx(It,{title:"Insert Link",onClose:r}),jsxRuntime.jsx("div",{className:"p-6",children:jsxRuntime.jsx(Nr,{label:"URL",type:"url",value:n,onChange:a,autoFocus:true,className:"w-full"})}),jsxRuntime.jsxs("div",{className:"flex justify-end gap-2 border-t border-border-muted p-4",children:[jsxRuntime.jsx(_,{variant:"secondary",onPress:r,children:"Cancel"}),jsxRuntime.jsx(_,{type:"submit",children:"Save"})]})]})})})})}function pv({initialContent:e="",onChange:t,className:r,isDisabled:o=false,placeholder:n="Start typing...",id:a,size:i="md",headingLevels:s=[1,2]}){let c=VR[i],[l,d]=Ie.useState(false),u=react.useEditor({immediatelyRender:false,extensions:[AR__default.default.configure({heading:s.length>0?{levels:s}:false}),DR__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:f})=>{t?.(f.getHTML());},editorProps:{attributes:{class:tailwindMerge.twMerge(`prose ${c.prose} max-w-none`,"focus:outline-none","[&>*:first-child]:mt-0 [&>*:last-child]:mb-0")}}}),m=()=>{d(true);},p=f=>{f===""?u?.chain().focus().unsetLink().run():u?.chain().focus().setLink({href:f}).run();};return u?jsxRuntime.jsxs("div",{id:a,"data-richtexteditor":true,className:tailwindMerge.twMerge("flex flex-col rounded-md border border-border-input bg-background-input","outline-none focus-within:outline-none focus-within:border-border-input focus-within:ring-0 focus-within:shadow-none",o&&"opacity-50",r),style:{outline:"none"},children:[!o&&u&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsxs(menus.BubbleMenu,{editor:u,shouldShow:({editor:f})=>f.isActive("link")&&!l,className:"flex items-center gap-1 rounded-md border border-border-input bg-background-surface p-1 shadow-md",children:[jsxRuntime.jsxs(_,{variant:"ghost",size:"sm",className:"h-8 px-2",onPress:()=>{let f=u.getAttributes("link").href;f&&window.open(f,"_blank","noopener,noreferrer");},children:[jsxRuntime.jsx(B,{name:"ArrowSquareOut",className:"mr-1 h-4 w-4"}),"Open"]}),jsxRuntime.jsxs(_,{variant:"ghost",size:"sm",className:"h-8 px-2",onPress:m,children:[jsxRuntime.jsx(B,{name:"PencilSimple",className:"mr-1 h-4 w-4"}),"Edit"]}),jsxRuntime.jsxs(_,{variant:"ghost",size:"sm",className:"h-8 px-2",onPress:()=>u.chain().focus().unsetLink().run(),children:[jsxRuntime.jsx(B,{name:"X",className:"mr-1 h-4 w-4"}),"Remove"]})]}),jsxRuntime.jsx(zR,{isOpen:l,onClose:()=>d(false),onSubmit:p,initialUrl:u.getAttributes("link").href||""})]}),jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("flex items-center gap-1 border-b border-border-input",c.toolbar),children:[s.map(f=>jsxRuntime.jsx(Ia,{isActive:u.isActive("heading",{level:f}),onPress:()=>u.chain().focus().toggleHeading({level:f}).run(),children:jsxRuntime.jsxs("span",{className:"text-xs font-bold",children:["H",f]})},f)),jsxRuntime.jsx(Ia,{isActive:u.isActive("bold"),onPress:()=>u.chain().focus().toggleBold().run(),children:jsxRuntime.jsx("span",{className:"text-xs font-bold",children:"B"})}),jsxRuntime.jsx(Ia,{isActive:u.isActive("italic"),onPress:()=>u.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(Ia,{isActive:u.isActive("bulletList"),onPress:()=>u.chain().focus().toggleBulletList().run(),children:jsxRuntime.jsx(B,{name:"ListBullets",className:"h-4 w-4"})}),jsxRuntime.jsx(Ia,{isActive:u.isActive("orderedList"),onPress:()=>u.chain().focus().toggleOrderedList().run(),children:jsxRuntime.jsx(B,{name:"ListNumbers",className:"h-4 w-4"})}),jsxRuntime.jsx("div",{className:"mx-1 h-4 w-px bg-border-muted"}),jsxRuntime.jsx(Ia,{isActive:u.isActive("link"),onPress:m,children:jsxRuntime.jsx(B,{name:"PaperclipHorizontal",className:"h-4 w-4"})})]}),jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("relative w-full outline-none focus:outline-none",c.contentWrapper),children:[jsxRuntime.jsx(react.EditorContent,{editor:u,className:tailwindMerge.twMerge("w-full outline-none focus:outline-none",c.contentPadding,"[&_.ProseMirror]:min-h-[inherit]","[&_.ProseMirror]:outline-none [&_.ProseMirror]:focus:outline-none",c.h1,c.h2,c.p,"[&_.ProseMirror_ul]:list-disc","[&_.ProseMirror_ol]:list-decimal",c.list,c.li,"[&_.ProseMirror_blockquote]:border-l-4 [&_.ProseMirror_blockquote]:border-border-muted [&_.ProseMirror_blockquote]:pl-4 [&_.ProseMirror_blockquote]:italic","[&_.ProseMirror_code]:rounded [&_.ProseMirror_code]:bg-background-muted [&_.ProseMirror_code]:px-1 [&_.ProseMirror_code]:py-0.5 [&_.ProseMirror_code]:font-mono [&_.ProseMirror_code]:text-sm","[&_.ProseMirror_pre]:rounded-md [&_.ProseMirror_pre]:bg-background-muted [&_.ProseMirror_pre]:p-3 [&_.ProseMirror_pre]:font-mono [&_.ProseMirror_pre]:text-sm","[&_.ProseMirror_hr]:border-border-muted",o&&"pointer-events-none")}),u.isEmpty&&!o&&jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("pointer-events-none absolute text-text-secondary",c.placeholderPos,c.placeholderText),children:n})]})]}):null}function mv(e){return e==="brand"?"primary":e==="default"||e==="secondary"||!e?"subtle":e}var WR={sm:"h-[var(--control-sm-height)] text-xs",md:"h-[var(--control-md-height)] text-sm",lg:"h-[var(--control-lg-height)] text-base",xl:"h-[var(--control-xl-height)] text-lg"},GR={sm:14,md:16,lg:18,xl:20},UR=({isSelected:e,isFirst:t,isLast:r,isDisabled:o,variant:n="subtle"})=>{let a=mv(n),i=a==="primary"?"focus-visible:outline-action-primary":"focus-visible:outline-[color:var(--color-action-secondary-text)]";return a==="subtle"?tailwindMerge.twMerge(Ke(),"focus-visible:outline-[color:var(--color-action-secondary-text)]","px-3 text-center transition cursor-pointer forced-color-adjust-none -ml-px first:ml-0 flex items-center justify-center h-full gap-2",e?"bg-background-muted text-text-primary font-medium forced-colors:!bg-[Highlight] forced-colors:!text-[HighlightText]":"text-text-secondary hover:bg-background-hover pressed:bg-background-hover forced-colors:!bg-[ButtonFace] forced-colors:!text-[ButtonText]",!r&&"border-r border-border-muted",o&&"bg-background-muted text-text-disabled forced-colors:!bg-[ButtonFace] forced-colors:!text-[GrayText] border-border-muted forced-colors:border-[GrayText] cursor-not-allowed"):tailwindMerge.twMerge(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-action-primary text-[color:var(--color-action-primary-text)] font-semibold forced-colors:!bg-[Highlight] forced-colors:!text-[HighlightText]":"text-text-secondary hover:bg-background-hover pressed:bg-background-hover forced-colors:!bg-[ButtonFace] forced-colors:!text-[ButtonText] hover:font-semibold",!r&&"border-r border-border-muted",o&&"bg-background-muted text-text-disabled forced-colors:!bg-[ButtonFace] forced-colors:!text-[GrayText] border-border-muted forced-colors:border-[GrayText] cursor-not-allowed")};function Rc({options:e,value:t,onChange:r,size:o="md",className:n,isDisabled:a,variant:i="subtle",iconOnly:s=false,"aria-label":c}){return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("inline-flex overflow-hidden rounded-[var(--control-border-radius)]",mv(i)==="subtle"?"border border-border-muted":"border-2 border-border-muted",WR[o],n),role:"group","aria-label":c,children:e.map((l,d)=>{let u=s&&!!l.icon;return jsxRuntime.jsxs(reactAriaComponents.ToggleButton,{isSelected:t===l.id,onChange:()=>r(l.id),className:UR({isSelected:t===l.id,isFirst:d===0,isLast:d===e.length-1,isDisabled:a,variant:i}),isDisabled:a,"aria-label":l.label,children:[l.icon&&jsxRuntime.jsx(B,{name:l.icon,size:GR[o]}),u?jsxRuntime.jsx("span",{className:"sr-only",children:l.label}):jsxRuntime.jsx("span",{className:"inline-flex flex-col items-center after:content-[attr(data-label)] after:font-semibold after:h-0 after:overflow-hidden after:invisible","data-label":l.label,children:l.label})]},l.id)})})}function fv({streetAddress:e,city:t,state:r,postalCode:o,longitude:n,latitude:a,href:i,LinkComponent:s,variant:c="outlined",layout:l="stacked",showMap:d=true,mapHeight:u=200,mapboxAccessToken:m,isLoading:p=false,className:f,contentClassName:g,showMapExpandToggle:b=false,expandedMapTitle:x="Explore map",expandedMapAddressLabel:v,piiEntity:C}){let y=[];t&&y.push(t),r&&o?y.push(`${r} ${o}`):r?y.push(r):o&&y.push(o);let S=y.join(", "),N=v||[e,S].filter(Boolean).join(", "),T=d&&n!==void 0&&a!==void 0,M=({children:E,className:I})=>i?s?jsxRuntime.jsx(s,{href:i,className:I,children:E}):jsxRuntime.jsx($e,{href:i,variant:"unstyled",className:tailwindMerge.twMerge("hover:underline",I),asButton:false,children:E}):jsxRuntime.jsx("span",{className:I,children:E});if(p){let E=l==="row";return jsxRuntime.jsxs(Ve,{variant:c,className:tailwindMerge.twMerge(E?"flex flex-col md:flex-row":"flex flex-col",f),children:[T&&jsxRuntime.jsx(Ve.Media,{aspectRatio:"auto",className:tailwindMerge.twMerge(E&&"md:order-2 md:flex-[2] md:min-w-0"),children:jsxRuntime.jsx(J,{width:"100%",height:u})}),jsxRuntime.jsxs(Ve.Content,{className:tailwindMerge.twMerge("space-y-2 px-4 md:px-6",E&&"md:order-1 md:flex-[1] md:flex-shrink-0 md:flex md:flex-col md:justify-center"),children:[jsxRuntime.jsx(J,{width:"100%",height:16}),jsxRuntime.jsx(J,{width:"80%",height:16})]})]})}let P=l==="row";return jsxRuntime.jsxs(Ve,{variant:c,className:tailwindMerge.twMerge("group/card relative",i&&"cursor-pointer",P?"flex flex-col md:flex-row":"flex flex-col",f),children:[i&&jsxRuntime.jsx(M,{className:"after:absolute after:inset-0 after:z-10",children:jsxRuntime.jsx("span",{className:"sr-only",children:e})}),T&&jsxRuntime.jsx(Ve.Media,{aspectRatio:"auto",className:tailwindMerge.twMerge(P&&"md:order-2 md:flex-[2] md:min-w-0"),children:jsxRuntime.jsx(Ea,{height:u,initialViewState:{longitude:n,latitude:a,zoom:14},showMarker:true,mapboxAccessToken:m,showExpandToggle:b,expandedMapTitle:x,expandedMapAddressLabel:N})}),jsxRuntime.jsx(Ve.Content,{className:tailwindMerge.twMerge("px-4 md:px-6",P&&"md:order-1 md:flex-[1] md:flex-shrink-0 md:flex md:flex-col md:justify-center",g),children:jsxRuntime.jsxs("div",{className:"flex flex-col gap-1 min-w-0 text-left",children:[jsxRuntime.jsx("span",{className:"text-xl font-semibold leading-tight text-text-primary group-hover/card:text-text-brand transition-colors","data-pii-type":C?"address":void 0,"data-pii-entity":C,children:e}),S&&jsxRuntime.jsx("span",{className:"text-lg font-normal leading-relaxed text-text-secondary","data-pii-type":C?"city-state-zip":void 0,"data-pii-entity":C,children:S})]})})]})}function bv({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:d=false,className:u,contentClassName:m,fullHeight:p=false,showMapExpandToggle:f=false,expandedMapTitle:g="Explore map",expandedMapAddressLabel:b}){let x=[];e.city&&x.push(e.city),e.state&&e.postalCode?x.push(`${e.state} ${e.postalCode}`):e.state?x.push(e.state):e.postalCode&&x.push(e.postalCode);let v=x.join(", "),C=b||[e.streetAddress,v].filter(Boolean).join(", "),y=a&&e.longitude!==void 0&&e.latitude!==void 0,S=t?`${t.firstName} ${t.lastName}`.trim():"",N=({children:M,href:P,className:E})=>P?r?jsxRuntime.jsx(r,{href:P,className:E,children:M}):jsxRuntime.jsx($e,{href:P,variant:"unstyled",className:tailwindMerge.twMerge("hover:underline",E),asButton:false,children:M}):jsxRuntime.jsx("span",{className:E,children:M});if(d){let M=n==="row";return jsxRuntime.jsxs(Ve,{variant:o,className:tailwindMerge.twMerge(p&&"h-full",M?"flex flex-col md:flex-row":"flex flex-col",u),children:[y&&jsxRuntime.jsx(Ve.Media,{aspectRatio:"auto",className:tailwindMerge.twMerge(M&&"md:order-2 md:flex-[2] md:min-w-0",p&&"flex-1"),children:jsxRuntime.jsx(J,{width:"100%",height:p?"100%":i})}),jsxRuntime.jsxs(Ve.Content,{className:tailwindMerge.twMerge("space-y-4 px-4 py-4",M&&"md:order-1 md:flex-[1] md:flex-shrink-0 md:flex md:flex-col md:justify-center"),children:[jsxRuntime.jsxs("div",{className:"space-y-2",children:[jsxRuntime.jsx(J,{width:"100%",height:16}),jsxRuntime.jsx(J,{width:"80%",height:16})]}),t&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("div",{className:"border-t border-border-default"}),jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[jsxRuntime.jsx(J,{width:40,height:40,className:"rounded flex-shrink-0"}),jsxRuntime.jsxs("div",{className:"flex-1 space-y-1",children:[jsxRuntime.jsx(J,{width:"50%",height:14}),jsxRuntime.jsx(J,{width:"100%",height:12})]})]})]})]})]})}let T=n==="row";return jsxRuntime.jsxs(Ve,{variant:o,className:tailwindMerge.twMerge("group/card relative",e.href&&"cursor-pointer",p&&"h-full",T?"flex flex-col md:flex-row":"flex flex-col",u),children:[e.href&&jsxRuntime.jsx(N,{href:e.href,className:"after:absolute after:inset-0 after:z-10",children:jsxRuntime.jsx("span",{className:"sr-only",children:e.streetAddress})}),y&&jsxRuntime.jsx(Ve.Media,{aspectRatio:"auto",className:tailwindMerge.twMerge(T&&"md:order-2 md:flex-[2] md:min-w-0",p&&"flex-1"),children:jsxRuntime.jsx(Ea,{height:p?"100%":i,initialViewState:{longitude:e.longitude,latitude:e.latitude,zoom:14},showMarker:true,mapboxAccessToken:s,showExpandToggle:f,expandedMapTitle:g,expandedMapAddressLabel:C})}),jsxRuntime.jsxs(Ve.Content,{className:tailwindMerge.twMerge("space-y-4 px-4 py-4",T&&"md:order-1 md:flex-[1] md:flex-shrink-0 md:flex md:flex-col md:justify-center",m),children:[jsxRuntime.jsxs("div",{className:"flex flex-col gap-1 min-w-0 text-left",children:[jsxRuntime.jsx("span",{className:"text-xl font-semibold leading-tight text-text-primary group-hover/card:text-text-brand transition-colors","data-pii-type":e.piiEntity?"address":void 0,"data-pii-entity":e.piiEntity,children:e.streetAddress}),v&&jsxRuntime.jsx("span",{className:"text-lg font-normal leading-relaxed text-text-secondary","data-pii-type":e.piiEntity?"city-state-zip":void 0,"data-pii-entity":e.piiEntity,children:v})]}),t&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("div",{className:"border-t border-border-default"}),jsxRuntime.jsxs("div",{className:"flex items-center gap-2 relative",children:[jsxRuntime.jsx(so,{firstName:t.firstName,lastName:t.lastName,src:t.avatarUrl,size:"md",variant:"user",shape:"square",className:"flex-shrink-0",piiEntity:t.piiEntity}),jsxRuntime.jsxs("div",{className:"flex-1 min-w-0",children:[t.href?jsxRuntime.jsx(N,{href:t.href,className:"text-sm font-semibold leading-tight text-text-primary block mb-0.5 hover:text-text-brand transition-colors relative z-20",children:jsxRuntime.jsx("span",{"data-pii-type":t.piiEntity?"full-name":void 0,"data-pii-entity":t.piiEntity,children:S})}):jsxRuntime.jsx("span",{className:"text-sm font-semibold leading-tight text-text-primary block mb-0.5","data-pii-type":t.piiEntity?"full-name":void 0,"data-pii-entity":t.piiEntity,children:S}),jsxRuntime.jsxs("div",{className:"space-y-0.5",children:[c&&t.email&&jsxRuntime.jsxs("div",{className:"flex items-center gap-1.5 text-text-primary",children:[jsxRuntime.jsx(B,{name:"Envelope",size:12,className:"text-text-secondary flex-shrink-0"}),jsxRuntime.jsx($e,{href:`mailto:${t.email}`,variant:"unstyled",className:"text-xs leading-tight truncate text-text-primary relative z-20","data-pii-type":t.piiEntity?"email":void 0,"data-pii-entity":t.piiEntity,children:t.email})]}),l&&t.phone&&jsxRuntime.jsxs("div",{className:"flex items-center gap-1.5 text-text-primary",children:[jsxRuntime.jsx(B,{name:"Phone",size:12,className:"text-text-secondary flex-shrink-0"}),jsxRuntime.jsx($e,{href:`tel:${t.phone}`,variant:"unstyled",className:"text-xs leading-tight truncate text-text-primary relative z-20","data-pii-type":t.piiEntity?"phone":void 0,"data-pii-entity":t.piiEntity,children:Qn(t.phone)})]})]})]})]})]})]})]})}function xv({label:e,description:t,tooltip:r,errorMessage:o,size:n="md",className:a,value:i,defaultValue:s=0,onChange:c,min:l=0,max:d=100,step:u=1,disabled:m,showValue:p=true}){let f=typeof i=="number",[g,b]=Ie__namespace.default.useState(s),x=f?i:g,v=Math.min(Math.max(x,l),d),C=Math.max(d-l,1e-5),y=(v-l)/C*100;return jsxRuntime.jsxs("div",{className:ve(a,"group flex w-full flex-col gap-1"),children:[e&&jsxRuntime.jsx(Ae,{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:`${y}%`},"aria-hidden":true}),jsxRuntime.jsx("input",{type:"range",min:l,max:d,step:u,value:x,disabled:m,"aria-invalid":!!o,onChange:S=>{let N=Number(S.currentTarget.value);f||b(N),c?.(N);},className:tailwindMerge.twMerge("absolute inset-0 w-full cursor-pointer appearance-none bg-transparent outline-none","[&::-webkit-slider-thumb]:appearance-none [&::-webkit-slider-thumb]:h-4 [&::-webkit-slider-thumb]:w-4 [&::-webkit-slider-thumb]:rounded-full [&::-webkit-slider-thumb]:bg-background-input [&::-webkit-slider-thumb]:border [&::-webkit-slider-thumb]:border-border-input","hover:[&::-webkit-slider-thumb]:shadow-sm focus-visible:[&::-webkit-slider-thumb]:outline-2 focus-visible:[&::-webkit-slider-thumb]:outline-action-default","[&::-moz-range-thumb]:h-4 [&::-moz-range-thumb]:w-4 [&::-moz-range-thumb]:rounded-full [&::-moz-range-thumb]:bg-background-input [&::-moz-range-thumb]:border [&::-moz-range-thumb]:border-border-input","hover:[&::-moz-range-thumb]:shadow-sm focus-visible:[&::-moz-range-thumb]:outline-2 focus-visible:[&::-moz-range-thumb]:outline-action-default",m?"cursor-not-allowed opacity-60":void 0)})]}),p&&jsxRuntime.jsx("div",{className:"min-w-10 text-right text-sm text-text-primary tabular-nums",children:Math.round(v)})]}),t&&jsxRuntime.jsx(Ce,{className:"mt-2 text-text-secondary",children:t}),o&&jsxRuntime.jsx(de,{className:"mt-1",children:o})]})}var XR=Ie__namespace.default.createContext({orientation:"horizontal",isResizing:false});function yv(e,t){return e===void 0?t:e}function ZR(e,t){return typeof e=="number"?e:typeof e=="string"&&e.endsWith("%")?Number.parseFloat(e)/100*t:Number.parseFloat(e.toString())}function Ec({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:d,className:u,dividerClassName:m,children:p}){let f=Ie.useRef(null),[g,b]=Ie.useState(false),x=i==="horizontal"?400:300,v=yv(i==="horizontal"?e:t,x),[C,y]=Ie.useState(null),S=Ie.useCallback(A=>{if(!f.current||!g)return;let w=f.current.getBoundingClientRect(),k=i==="horizontal"?w.width:w.height,H=i==="horizontal"?A.clientX:A.clientY,z=(i==="horizontal"?w.right:w.bottom)-H,Y=k-z,Z=i==="horizontal"?r:o,V=i==="horizontal"?n:a;z<Z||Y<V||(y(z),c?.(z));},[g,i,r,o,n,a,c]),N=Ie.useCallback(()=>{b(false),d?.();},[d]),T=Ie.useCallback(A=>{A.preventDefault(),A.stopPropagation(),b(true),l?.();},[l]);Ie.useEffect(()=>{if(g)return document.addEventListener("mousemove",S),document.addEventListener("mouseup",N),document.body.style.cursor=i==="horizontal"?"col-resize":"row-resize",document.body.style.userSelect="none",()=>{document.removeEventListener("mousemove",S),document.removeEventListener("mouseup",N),document.body.style.cursor="",document.body.style.userSelect="";}},[g,S,N,i]);let M=Ie__namespace.default.Children.toArray(p).find(A=>Ie__namespace.default.isValidElement(A)&&A.type===Cv),P=Ie__namespace.default.Children.toArray(p).find(A=>Ie__namespace.default.isValidElement(A)&&A.type===Sv),E=C??v,I=typeof E=="number"?`${E}px`:E;return jsxRuntime.jsx(XR.Provider,{value:{orientation:i,isResizing:g},children:jsxRuntime.jsxs("div",{ref:f,className:tailwindMerge.twMerge("flex w-full h-full",i==="horizontal"?"flex-row":"flex-col",u),children:[jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("overflow-auto flex-1",i==="horizontal"?"h-full":"w-full"),children:M}),s&&jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("relative group flex-shrink-0",i==="horizontal"?"w-2 -mx-1 cursor-col-resize":"h-2 -my-1 cursor-row-resize",m),onMouseDown:T,role:"separator","aria-orientation":i,"aria-label":"Resize divider",tabIndex:0,onKeyDown:A=>{if(!f.current)return;let w=f.current.getBoundingClientRect(),k=i==="horizontal"?w.width:w.height,H=C??ZR(v,k),G=20,z=i==="horizontal"?r:o,Y=i==="horizontal"?n:a;if(i==="horizontal"){if(A.key==="ArrowLeft"){let Z=Math.min(H+G,k-Y);y(Z),c?.(Z);}else if(A.key==="ArrowRight"){let Z=Math.max(H-G,z);y(Z),c?.(Z);}}else if(A.key==="ArrowUp"){let Z=Math.min(H+G,k-Y);y(Z),c?.(Z);}else if(A.key==="ArrowDown"){let Z=Math.max(H-G,z);y(Z),c?.(Z);}},children:[jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("absolute bg-border-default transition-all",i==="horizontal"?"left-1/2 -translate-x-1/2 w-px h-full group-hover:w-1":"top-1/2 -translate-y-1/2 h-px w-full group-hover:h-1","group-hover:bg-action-brand/50",g&&"bg-action-brand",g&&(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"]:I},children:P})]})})}function Cv({className:e,children:t}){return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("w-full h-full",e),children:t})}function Sv({className:e,children:t}){return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("w-full h-full",e),children:t})}Ec.Main=Cv;Ec.Aside=Sv;var QR=e=>{let t=Mt({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 wv({label:e,description:t,errorMessage:r,size:o="md",tooltip:n,required:a,transparent:i,isInvalid:s,isDisabled:c,isResizable:l=false,className:d,validationResult:u,reserveErrorSpace:m=true,...p}){let{isFocused:f,handleFocus:g,handleBlur:b}=wr();return jsxRuntime.jsx("div",{className:"group flex flex-col",children:jsxRuntime.jsxs("div",{className:"flex flex-col",children:[e&&jsxRuntime.jsx(Ae,{size:o,tooltip:n,isRequired:a,children:e}),jsxRuntime.jsx(mt,{children:jsxRuntime.jsx("textarea",{...p,required:a,onFocus:x=>{p.onFocus&&p.onFocus(x),g(x);},onBlur:x=>{p.onBlur&&p.onBlur(x),b(x);},className:QR({isInvalid:s,isDisabled:c,isResizable:l,isFocused:f,size:o,transparent:i,className:d}),disabled:c})}),m?jsxRuntime.jsx("div",{className:"mt-1 min-h-[20px]",children:typeof r=="string"?jsxRuntime.jsx(de,{size:o,children:r}):typeof r=="function"&&u?jsxRuntime.jsx(de,{size:o,children:r(u)}):t?jsxRuntime.jsx(Ce,{size:o,children:t}):null}):jsxRuntime.jsx(jsxRuntime.Fragment,{children:typeof r=="string"?jsxRuntime.jsx(de,{size:o,className:"mt-1",children:r}):typeof r=="function"&&u?jsxRuntime.jsx(de,{size:o,className:"mt-1",children:r(u)}):t?jsxRuntime.jsx(Ce,{size:o,className:"mt-1",children:t}):null})]})})}function Pv({label:e,description:t,errorMessage:r,size:o="md",tooltip:n,required:a,transparent:i,isInvalid:s,isDisabled:c,isResizable:l=false,className:d,validationResult:u,value:m="",onChange:p,chips:f=[],onChipsChange:g,triggerPattern:b="{{",onTriggerDetected:x,onTriggerDismissed:v,renderChip:C,chipVariant:y="primary",chipSize:S,...N}){let T=Ie.useRef(null),{isFocused:M,handleFocus:P,handleBlur:E}=wr(),I=S||"sm",A=Ie.useRef(null),w=Ie.useCallback(V=>{let O="",R=D=>{if(D.nodeType===Node.TEXT_NODE){if(!D.parentElement?.closest("[data-chip-id]")){let L=D.textContent||"";O+=L;}}else if(D.nodeType===Node.ELEMENT_NODE){let F=D;if(F.hasAttribute("data-chip-id")){let L=F.getAttribute("data-chip-id");O+=`{{${L}}}`;return}else if(F.tagName==="BR"){O+=`
|
|
45
|
-
`;return}else F.tagName;}for(let F=0;F<D.childNodes.length;F++)
|
|
46
|
-
`)?
|
|
47
|
-
`).map((F,
|
|
48
|
-
`).length-1&&jsxRuntime.jsx("br",{})]},`line-${R}-${L}`)):O}):null;return jsxRuntime.jsx("div",{className:"group flex flex-col",children:jsxRuntime.jsxs("div",{className:"flex flex-col",children:[e&&jsxRuntime.jsx(Ae,{size:o,tooltip:n,isRequired:a,children:e}),jsxRuntime.jsx(mt,{children:jsxRuntime.jsx("div",{ref:T,contentEditable:!c,suppressContentEditableWarning:true,onInput:V=>{if(c)return;let O=V.target,R=O.querySelector("[data-chip-id]")!==null,D;if(R?(D=w(O),D=D.replace(/(\{\{[^}]+\}\})\s{2,}/g,"$1 ").replace(/\s{2,}(\{\{[^}]+\}\})/g," $1")):D=O.textContent||"",D===""){try{let h=document.createRange();h.selectNodeContents(O),h.collapse(!0);let W=window.getSelection();W?.removeAllRanges(),W?.addRange(h),A.current=0;}catch{}H("",0);return}if(D===m)return;let F=window.getSelection(),L=0;if(F&&F.rangeCount>0)try{let h=F.getRangeAt(0);if(R){let W=0,U=!1,K=te=>{if(U)return !0;if(te===h.startContainer)return W+=h.startOffset,U=!0,!0;if(te.nodeType===Node.TEXT_NODE){if(!te.parentElement?.closest("[data-chip-id]")){if(te.contains(h.startContainer))return W+=h.startOffset,U=!0,!0;W+=(te.textContent||"").length;}}else if(te.nodeType===Node.ELEMENT_NODE){let ue=te;if(ue.hasAttribute("data-chip-id")){if(ue.contains(h.startContainer)||ue===h.startContainer){let ne=ue.getAttribute("data-chip-id");return W+=`{{${ne}}}`.length,U=!0,!0}let j=ue.getAttribute("data-chip-id");return W+=`{{${j}}}`.length,!1}else if(ue.tagName==="BR")return ue===h.startContainer?(U=!0,!0):(W+=1,!1)}for(let ue=0;ue<te.childNodes.length;ue++)if(K(te.childNodes[ue]))return !0;return !1};K(O),L=W;}else {let W=document.createRange();W.setStart(O,0),W.setEnd(h.startContainer,h.startOffset),L=W.toString().length;}}catch{L=D.length;}A.current=L,H(D,L);},onKeyDown:V=>{if(c)return;let O=window.getSelection();if(!(!O||O.rangeCount===0))try{let R=O.getRangeAt(0),D=R.commonAncestorContainer;if(V.key==="ArrowLeft"||V.key==="ArrowRight"){let F=D.nodeType===Node.TEXT_NODE?D.parentElement?.closest("[data-chip-id]"):D.closest("[data-chip-id]");if(F){V.preventDefault();try{let L=document.createRange(),h=window.getSelection();V.key==="ArrowLeft"?L.setStartBefore(F):L.setStartAfter(F),L.collapse(!0),h?.removeAllRanges(),h?.addRange(L);}catch{}}}if(V.key==="Backspace"){let F=null;if(F=(D.nodeType===Node.TEXT_NODE?D.parentElement?.closest("[data-chip-id]"):D.closest("[data-chip-id]"))||null,!F)if(D.nodeType===Node.TEXT_NODE){let L=D;if(R.startOffset===0&&L.parentElement){let h=L.previousSibling;if(h&&h.nodeType===Node.ELEMENT_NODE){let W=h.closest("[data-chip-id]");W&&(F=W);}}}else {let L=D;if(R.startOffset>0){let h=L.childNodes[R.startOffset-1];if(h&&h.nodeType===Node.ELEMENT_NODE){let W=h.closest("[data-chip-id]");W&&(F=W);}}}if(F){V.preventDefault(),V.stopPropagation();let L=F.getAttribute("data-chip-id");if(!L)return;let h=`{{${L}}}`,W=m.indexOf(h);if(W!==-1){let U=m.slice(0,W)+m.slice(W+h.length),K=f.filter(te=>te.id!==L);A.current=W;try{window.getSelection()?.removeAllRanges();}catch{}g?.(K),p?.(U);}}}}catch{}},onFocus:V=>{c||(N.onFocus&&N.onFocus(V),P(V));},onBlur:V=>{c||(N.onBlur&&N.onBlur(V),E(V));},className:Y(),style:{whiteSpace:"pre-wrap",wordBreak:"break-word",...N.style},"data-placeholder":N.placeholder,children:Z()},m===""?"empty":"content")}),t&&jsxRuntime.jsx(Ce,{size:o,className:"mt-3",children:t}),typeof r=="string"&&jsxRuntime.jsx(de,{size:o,className:"mt-1",children:r}),typeof r=="function"&&u&&jsxRuntime.jsx(de,{size:o,className:"mt-1",children:r(u)})]})})}function i3(e){return e instanceof Date&&!Number.isNaN(e.getTime())}function lm(e){return i3(e)?e:(console.warn("Invalid date detected in TimeControls, using fallback:",e),new Date)}var Ev={FIVE_MINUTES:0,FIFTEEN_MINUTES:1,HOUR:2,DAY:3,WEEK:4,MONTH:5,YEAR:6},s3=[{id:"FIFTEEN_MINUTES",label:"15m"},{id:"HOUR",label:"1h"},{id:"DAY",label:"1d"},{id:"WEEK",label:"1w"}];function Mv({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:d=s3,autoAdjustWindowSize:u=false,className:m}){let[p,f]=Ie.useState(0),g=Ie.useRef(null),[b,x]=Ie.useState(false),v=R=>{let F=(R.before.getTime()-R.after.getTime())/(1e3*60*60);return F<=24?"FIFTEEN_MINUTES":F<=72||F<=168?"HOUR":("DAY")};Ie.useEffect(()=>{if(u&&!b&&o){let R=v(e);o(R);}},[e,u,b,o]);let C=R=>l.find(D=>{let F=D.getRange();return Math.abs(F.after.getTime()-R.after.getTime())<1e3*60*60*24&&Math.abs(F.before.getTime()-R.before.getTime())<1e3*60*60*24})?.id,[y,S]=Ie.useState(()=>C(e)),N=lm(e.after),T=lm(e.before),M=new Date(T);M.setDate(M.getDate()-1);let P={start:Es(N,pn()),end:Es(M,pn())};Ie.useEffect(()=>{let R=new ResizeObserver(D=>{for(let F of D)f(F.contentRect.width);});return g.current&&R.observe(g.current),()=>{g.current&&R.unobserve(g.current);}},[]);let E=[...d].sort((R,D)=>Ev[R.id]-Ev[D.id]),I=R=>{let D=R.toString(),F=l.find(L=>L.id===D);F&&(S(D),x(false),t(F.getRange()));},A=R=>{if(R?.start&&R?.end){S(void 0);let D=new Date(R.start.year,R.start.month-1,R.start.day,0,0,0,0),F=new Date(R.end.year,R.end.month-1,R.end.day+1,0,0,0,0);t({after:D,before:F});}},w=R=>{if(R){S(void 0);let D=new Date(R.year,R.month-1,R.day,0,0,0,0),F=new Date(R.year,R.month-1,R.day+1,0,0,0,0);t({after:D,before:F});}},k=R=>{o&&(x(true),o(R.toString()));},H=()=>{if(l.length>0){let R=l[0];S(R.id),x(false),t(R.getRange());}},G=(R,D=0)=>{let F=lm(R),L=new Date(F);return D!==0&&L.setDate(L.getDate()+D),L.toLocaleDateString("en-US")},z=E.map(R=>({id:R.id,label:R.label,value:R.id})),Y=l.map(R=>({id:R.id,label:R.label,value:R.id})),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-secondary",children:E.find(R=>R.id===r)?.label||r}):jsxRuntime.jsx(fn,{className:"w-full md:w-auto",selectedKey:r,onSelectionChange:k,items:z,size:"md","aria-label":"Select Window Size",children:R=>jsxRuntime.jsx(qt,{id:R.id,"aria-label":R.label,size:"md",children:R.label},R.id)}),V=c?jsxRuntime.jsx("div",{className:"flex items-center",children:jsxRuntime.jsxs(reactAriaComponents.DialogTrigger,{children:[jsxRuntime.jsxs(_,{className:"border-l pl-2 pr-2 hover:border-border-default hover:bg-background-muted hover:text-text-link-hover",variant:"secondary",children:[jsxRuntime.jsx(B,{name:"CalendarBlank",size:18}),jsxRuntime.jsx("span",{className:"ml-2 hidden md:block",children:G(e.after)})]}),jsxRuntime.jsx(rt,{className:"w-auto p-3",disableGroup:true,children:jsxRuntime.jsx(la,{"aria-label":"Select date",value:ei(N.toISOString().split("T")[0]),onChange:w})})]})}):jsxRuntime.jsxs("div",{className:"flex items-center",children:[jsxRuntime.jsxs(reactAriaComponents.DialogTrigger,{children:[jsxRuntime.jsxs(_,{className:"rounded-r-none border-l pl-2 pr-2 hover:border-border-default hover:bg-background-muted hover:text-text-link-hover",variant:"secondary",children:[jsxRuntime.jsx(B,{name:"CalendarBlank",size:18}),!y&&jsxRuntime.jsx("span",{className:"ml-2 hidden md:block",children:`${G(e.after)} - ${G(e.before,-1)}`})]}),jsxRuntime.jsx(rt,{className:"w-auto p-3",disableGroup:true,children:jsxRuntime.jsx(ha,{"aria-label":"Date range calendar",value:P,onChange:A})})]}),!y&&jsxRuntime.jsx(_,{variant:"ghost",size:"md",onPress:H,children:"Reset"})]}),O=p<600;return jsxRuntime.jsx("div",{ref:g,className:tailwindMerge.twMerge("flex w-full flex-wrap items-center justify-between gap-4",m),children:O?jsxRuntime.jsxs("div",{className:"flex w-full justify-between",children:[jsxRuntime.jsxs("div",{className:"flex items-center",children:[i&&V,a&&y!==void 0&&jsxRuntime.jsx(fn,{selectedKey:y,onSelectionChange:I,items:Y,size:"md","aria-label":"Select Date Range",children:R=>jsxRuntime.jsx(qt,{id:R.id,size:"md",children:R.label},R.id)})]}),jsxRuntime.jsx("div",{className:"flex items-center",children:n&&r&&Z})]}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsxs("div",{className:"flex items-center gap-4",children:[i&&V,a&&y!==void 0&&jsxRuntime.jsx(Rc,{options:l.map(R=>({id:R.id,label:R.label})),value:y,onChange:I,size:"sm",variant:"secondary","aria-label":"Select Date Range"})]}),jsxRuntime.jsx("div",{className:"flex items-center",children:n&&r&&Z})]})})}function p3({isPlaceholder:e,isDisabled:t,size:r="md"}){return tailwindMerge.twMerge("inline-block box-content px-0.5 rounded outline-none tabular-nums text-center transition-colors",{sm:"text-base md:text-xs",md:"text-base md:text-sm",lg:"text-base",xl:"text-lg"}[r],e?"text-text-disabled italic":"text-text-primary",t?"text-text-disabled cursor-not-allowed":"cursor-text",!t&&"hover:bg-background-hover","data-[focused]:bg-background-selected data-[focused]:text-text-primary")}function Av({label:e,description:t,errorMessage:r,size:o="md",tooltip:n,isRequired:a,isDisabled:i,isInvalid:s,reserveErrorSpace:c=true,validationResult:l,className:d,descriptionPlacement:u="below",...m}){return jsxRuntime.jsxs(reactAriaComponents.TimeField,{...m,isDisabled:i,isRequired:a,isInvalid:s,className:ve(d,"flex flex-col gap-1"),children:[e&&jsxRuntime.jsx(Ae,{size:o,tooltip:n,description:u==="tooltip"||u==="inline"?t:void 0,descriptionPlacement:u,isRequired:a,children:e}),jsxRuntime.jsx(mt,{children:jsxRuntime.jsx(reactAriaComponents.DateInput,{className:tailwindMerge.twMerge(Mo({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:p3({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(de,{size:o,children:r}):typeof r=="function"&&l?jsxRuntime.jsx(de,{size:o,children:r(l)}):t&&u==="below"?jsxRuntime.jsx(Ce,{size:o,children:t}):null}):jsxRuntime.jsx(jsxRuntime.Fragment,{children:typeof r=="string"?jsxRuntime.jsx(de,{size:o,className:"mt-1",children:r}):typeof r=="function"&&l?jsxRuntime.jsx(de,{size:o,className:"mt-1",children:r(l)}):t&&u==="below"?jsxRuntime.jsx(Ce,{size:o,className:"mt-1",children:t}):null})]})}function Iv({children:e,className:t=""}){return jsxRuntime.jsx("div",{className:`flex flex-col ${t}`.trim(),role:"list",children:e})}function Fv({children:e,variant:t="default",icon:r,label:o,isLast:n=false,className:a=""}){let s={default:{dot:"bg-border-default border-border-default",line:"bg-border-default",label:"text-text-secondary",content:"text-text-primary"},active:{dot:"bg-text-primary border-text-primary",line:"bg-border-default",label:"text-text-secondary",content:"text-text-primary font-medium"},muted:{dot:"bg-border-muted border-border-muted",line:"bg-border-muted",label:"text-text-secondary",content:"text-text-secondary"},success:{dot:"bg-feedback-success-border border-feedback-success-border",line:"bg-border-default",label:"text-text-secondary",content:"text-text-primary"},error:{dot:"bg-feedback-error-border border-feedback-error-border",line:"bg-border-default",label:"text-text-secondary",content:"text-text-primary"},warning:{dot:"bg-feedback-warning-border border-feedback-warning-border",line:"bg-border-default",label:"text-text-secondary",content:"text-text-primary"},info:{dot:"bg-feedback-info-border border-feedback-info-border",line:"bg-border-default",label:"text-text-secondary",content:"text-text-primary"}}[t];return jsxRuntime.jsxs("div",{className:`flex gap-3 ${a}`.trim(),role:"listitem",children:[jsxRuntime.jsxs("div",{className:"flex flex-col items-center",style:{width:"20px"},children:[jsxRuntime.jsx("div",{className:`flex items-center justify-center rounded-full border-2 ${s.dot}`,style:{width:"20px",height:"20px",flexShrink:0},children:r&&jsxRuntime.jsx(B,{name:r,size:12,className:"text-background-body"})}),!n&&jsxRuntime.jsx("div",{className:`w-0.5 flex-1 ${s.line}`,style:{minHeight:"24px"}})]}),jsxRuntime.jsxs("div",{className:"flex-1 pb-6",children:[o&&jsxRuntime.jsx("div",{className:`text-xs mb-1 ${s.label}`,children:o}),jsxRuntime.jsx("div",{className:`text-sm ${s.content}`,children:e})]})]})}function x3(e){return "primary"}var h3="flex font-medium justify-center items-center gap-2 text-center transition whitespace-nowrap box-border",Bv={primary:{selected:"bg-action-primary text-[color:var(--color-action-primary-text)] hover:bg-action-primary-hover forced-colors:bg-[ButtonText] forced-colors:text-[ButtonFace] border-2 border-transparent",unselected:"bg-transparent text-action-primary border-2 border-border-muted hover:bg-text-primary/[0.05] forced-colors:border-[ButtonBorder] forced-colors:bg-[ButtonFace] forced-colors:text-[ButtonText]"}},y3="opacity-[--control-hover-opacity] cursor-not-allowed pointer-events-none grayscale",v3="opacity-100 cursor-pointer",C3={"top-right":"-right-2 -top-2","top-left":"-left-2 -top-2","bottom-right":"-right-2 -bottom-2","bottom-left":"-left-2 -bottom-2"},S3={primary:"bg-action-primary text-[color:var(--color-action-primary-text)]",destructive:"bg-feedback-error-border text-text-inverse"};function w3(e){let{variant:t="primary",size:r="md",isDisabled:o,isSelected:n,borderRadius:a,borderRight:i,borderLeft:s}=e,c=x3(),l=`${h3} ${n?Bv[c].selected:Bv[c].unselected}`;return l+=` ${Be[r].text} ${Be[r].height} ${Be[r].padding} ${Be[r].gap}`,l+=` ${o?y3:v3}`,a==="left"&&(l+=" rounded-l-sm"),a==="right"&&(l+=" rounded-r-sm"),i&&(l+=" border-r"),s&&(l+=" border-l"),l+=` ${Ke()}`,(l+=" focus-visible:outline-action-primary"),tailwindMerge.twMerge(l)}function zv(e){let{className:t,children:r,onPress:o,icon:n,iconPosition:a="left",iconWeight:i,isLoading:s=false,loadingText:c,loadingIndicator:l,size:d="md",badgeNumber:u,badgeVariant:m="primary",badgePosition:p="top-right",...f}=e,g=n?jsxRuntime.jsx(B,{name:n,size:d,weight:i}):null,b=()=>{let v=jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[a==="left"&&g,r,a==="right"&&g]});return s?jsxRuntime.jsxs("div",{className:"relative inline-flex items-center justify-center",children:[jsxRuntime.jsx("div",{className:"absolute inset-0 flex items-center justify-center",children:l||jsxRuntime.jsx(B,{name:"CircleNotch",size:d,className:"animate-spin","aria-hidden":"true"})}),jsxRuntime.jsx("div",{className:"invisible","aria-hidden":"true",children:v}),c&&jsxRuntime.jsx("span",{className:"sr-only",role:"status","aria-live":"polite",children:c})]}):v},x=jsxRuntime.jsx(reactAriaComponents.ToggleButton,{onPress:o,...f,className:tailwindMerge.twMerge(w3(e),t),"aria-busy":s,children:b()});return u&&u>0?jsxRuntime.jsxs("div",{className:"relative",children:[x,jsxRuntime.jsx("span",{className:`absolute ${C3[p]} flex h-5 w-5 items-center justify-center rounded-full ${S3[m]} text-xs`,"aria-label":`${u} items`,children:u})]}):x}var ji={app:{icon:"AppWindow",label:{singular:"App",plural:"Apps"},description:"Workspace and integration apps"},site:{icon:"MapPin",label:{singular:"Site",plural:"Sites"},description:"Physical locations with energy systems"},device:{icon:"ShareNetwork",label:{singular:"Device",plural:"Devices"},description:"Connected energy devices"},customer:{icon:"Users",label:{singular:"Customer",plural:"Customers"},description:"End customers and site owners"},contact:{icon:"Users",label:{singular:"Contact",plural:"Contacts"},description:"Contact persons"},program:{icon:"ClipboardText",label:{singular:"Program",plural:"Programs"},description:"Demand response and VPP programs"},workflow:{icon:"FlowArrow",label:{singular:"Workflow",plural:"Workflows"},description:"Automated workflows and rules"},collection:{icon:"Stack",label:{singular:"Collection",plural:"Collections"},description:"Grouped entities"},board:{icon:"SquaresFour",label:{singular:"Board",plural:"Boards"},description:"Dashboard and monitoring boards"},report:{icon:"ChartLine",label:{singular:"Report",plural:"Reports"},description:"Analytics and reports"},event:{icon:"ClockCounterClockwise",label:{singular:"Event",plural:"Events"},description:"System events and activity"},alert:{icon:"Warning",label:{singular:"Alert",plural:"Alerts"},description:"Notifications and alerts"},monitor:{icon:"Pulse",label:{singular:"Monitor",plural:"Monitors"},description:"Threshold and status monitors"},command:{icon:"Play",label:{singular:"Command",plural:"Commands"},description:"Device commands and control"}};function k3(e){return ji[e]}function T3(e){return ji[e].icon}function P3(e,t=false){return t?ji[e].label.plural:ji[e].label.singular}function R3({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(yr,{title:c,primaryAction:{label:r,onPress:()=>{let u=document.getElementById(e);u&&u.requestSubmit();},variant:a},secondaryAction:n?{label:o,onPress:n,variant:i}:void 0,...l,children:jsxRuntime.jsx(wa,{id:e,onSubmit:t,children:s})})}function D3({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(Ti,{primaryAction:{label:r,onPress:()=>{let d=document.getElementById(e);d&&d.requestSubmit();},variant:a},secondaryAction:n?{label:o,onPress:n,variant:i}:void 0,...c,children:jsxRuntime.jsx(wa,{id:e,onSubmit:t,className:"mt-2",children:s})})}function M3({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 I3={sm:"gap-2",md:"gap-4",lg:"gap-6"};function F3(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 B3({cols:e={base:1},gap:t="lg",className:r,...o}){return jsxRuntime.jsx("div",{...o,className:tailwindMerge.twMerge("grid",F3(e),I3[t],r)})}function O3({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(Jt,{tag:"h3",size:"sm",children:e}):e,t?jsxRuntime.jsx(Ce,{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 H3(){return jsxRuntime.jsx("hr",{className:"border-border-muted"})}function W3({steps:e,currentStepId:t,onStepClick:r,className:o}){let n=e.findIndex(a=>a.id===t);return jsxRuntime.jsx("nav",{"aria-label":"Progress",className:tailwindMerge.twMerge("w-full",o),children:jsxRuntime.jsx("div",{className:"relative mb-12",children:jsxRuntime.jsx("ol",{className:"relative flex items-start justify-between",children:e.map((a,i)=>{let s=a.id===t,c=i<n,l=r&&(c||s);return jsxRuntime.jsxs("li",{className:"relative flex flex-col items-center",style:{flex:`1 1 ${100/e.length}%`},children:[jsxRuntime.jsx("button",{type:"button",disabled:!l,onClick:()=>l&&r?.(a.id),className:tailwindMerge.twMerge("relative z-10 flex h-10 w-10 flex-shrink-0 items-center justify-center rounded-full border-2 transition-colors bg-background-body",c&&"border-action-primary bg-action-primary text-text-inverse hover:bg-action-primary/90",s&&"border-action-primary bg-background-body text-action-primary",!c&&!s&&"border-border-default bg-background-body text-text-secondary",l&&"cursor-pointer",!l&&"cursor-default"),"aria-current":s?"step":void 0,children:c?jsxRuntime.jsx(B,{name:"Check",size:20,weight:"bold"}):jsxRuntime.jsx("span",{className:"text-sm font-semibold",children:i+1})}),i<e.length-1&&jsxRuntime.jsx("div",{className:"absolute top-5 h-0.5 transition-colors",style:{left:"50%",width:"100%",marginLeft:"20px",backgroundColor:i<n?"var(--color-action-primary)":"var(--color-border-default)"}}),jsxRuntime.jsxs("div",{className:"mt-3 flex flex-col items-center text-center w-32",children:[jsxRuntime.jsx("span",{className:tailwindMerge.twMerge("text-sm font-medium",s&&"text-text-default",c&&"text-text-primary",!s&&!c&&"text-text-secondary"),children:a.title}),a.description&&jsxRuntime.jsx("span",{className:"mt-1 text-xs text-text-secondary",children:a.description})]})]},a.id)})})})})}function U3({formId:e,show:t,isSubmitting:r,onCancel:o,primaryLabel:n="Save changes",secondaryLabel:a="Cancel",className:i}){return t?jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("fixed inset-x-0 bottom-0 z-40 border-t border-border-muted bg-background-surface/95 backdrop-blur supports-[backdrop-filter]:bg-background-surface/70",i),children:jsxRuntime.jsxs("div",{className:"mx-auto flex max-w-screen-lg items-center justify-between gap-3 p-3",children:[jsxRuntime.jsx("div",{className:"text-sm text-text-secondary",children:"You have unsaved changes"}),jsxRuntime.jsxs("div",{className:"flex gap-2",children:[jsxRuntime.jsx(_,{variant:"secondary",onPress:o,children:a}),jsxRuntime.jsx(_,{type:"submit",form:e,isDisabled:!!r,children:r?"Saving...":n})]})]})}):null}function Y3({when:e,message:t="You have unsaved changes. Leave anyway?"}){return Ie__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 K3({steps:e,initialStepId:t,canNavigate:r}){if(e.length===0)throw new Error("useWizard: steps array cannot be empty");let[o,n]=Ie__namespace.useState(t||e[0].id),a=e.findIndex(u=>u.id===o),i=a>0,s=a<e.length-1,c=async u=>u===o?true:r&&!await r(o,u)?false:(n(u),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 Coe(e){switch(e){case "charging":case "on":return "success";case "discharging":return "warning";case "heat":case "cool":return "info";case "off":case "idle":case "eco":case "auto":return "neutral";default:return "neutral"}}/*! Bundled license information:
|
|
44
|
+
`,backgroundSize:"30px 30px"}})})})}function yc({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-secondary ${t||""}`,children:jsxRuntime.jsxs("div",{className:"text-center",children:[jsxRuntime.jsx(H,{name:"MapPin",size:48,className:"mx-auto mb-2 opacity-50"}),jsxRuntime.jsx("p",{className:"text-sm",children:r})]})})}var pv={streets:"streets",satellite:"satellite",neutral:"neutral"},vc="streets";function Ui(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 mv({longitude:e,latitude:t,showPulse:r=true,accuracy:o}){return jsxRuntime.jsx(yR.Marker,{longitude:e,latitude:t,anchor:"center",children:jsxRuntime.jsxs("div",{className:"relative flex items-center justify-center",children:[r&&jsxRuntime.jsx("div",{className:"absolute h-12 w-12 animate-[ping_2s_ease-in-out_infinite] rounded-full bg-action-brand opacity-30",style:{animationDelay:"0s"}}),jsxRuntime.jsx("div",{className:"relative z-10 flex h-5 w-5 items-center justify-center rounded-full bg-background-surface shadow-lg",children:jsxRuntime.jsx("div",{className:"h-3 w-3 rounded-full bg-action-brand"})}),o&&o>0&&jsxRuntime.jsx("div",{className:"pointer-events-none absolute rounded-full border border-action-brand/20 bg-action-brand/10",style:{width:`${Math.min(o/2,100)}px`,height:`${Math.min(o/2,100)}px`}})]})})}var Ji=Be__namespace.default.forwardRef(({initialViewState:e,viewState:t,onViewStateChange:r,scrollEnabled:o=true,className:n,previewMode:a=false,previewModeCta:i,onPreviewModePress:s,mapType:c=vc,layers:l=[],mapboxAccessToken:d,transformRequest:u,isLoading:m=false,onLoad:p,controls:f="default",showUserLocation:g=true,onUserLocationChange:b,children:x,additionalInteractiveLayerIds:h=[],onMapClick:C,showMarker:y=false,markerLocation:S},N)=>{let T=d??mc();if(!T)return jsxRuntime.jsx("div",{className:`relative ${n||""}`,style:{width:"100%",height:"100%"},children:jsxRuntime.jsx(yc,{className:"w-full h-full",message:"Map unavailable"})});let{isDarkTheme:E}=jt(),R=Be.useRef(null),M=Be.useRef(null),[A,L]=Be.useState(false),[w,k]=Be.useState(false);Be.useEffect(()=>{xc();},[]);let[O,G]=Be.useState(false),B=Be.useRef(0),[z,X]=Be.useState(null),[V,K]=Be.useState(null),P=Be.useRef(null),D=Be.useRef(null),[F,I]=ls("interactiveMap.trackingLocation",false),[v,W]=Be.useState(false);Be.useEffect(()=>{if(!navigator.geolocation){W(true);return}if(F){if(!navigator.permissions?.query){W(true);return}navigator.permissions.query({name:"geolocation"}).then($=>{$.state!=="granted"&&I(false),W(true);}).catch(()=>{W(true);});}else W(true);},[]),Be.useEffect(()=>{let $=setTimeout(()=>{A||k(true);},200);return ()=>clearTimeout($)},[A]),Be.useEffect(()=>{D.current=null;},[c,E]),Be.useEffect(()=>{if(A)return;let $=setInterval(()=>{if(R.current?.loaded()){L(true),k(false);let Z=R.current.getMap?.();Z&&D.current!==Z&&(D.current=Z,p?.()),clearInterval($);}},200);return ()=>clearInterval($)},[A,p]),Be.useEffect(()=>{if(v){if(!F||a){P.current!==null&&(navigator.geolocation.clearWatch(P.current),P.current=null);return}if(!navigator.geolocation){console.warn("Geolocation is not supported by this browser.");return}return P.current=navigator.geolocation.watchPosition($=>{let Z={latitude:$.coords.latitude,longitude:$.coords.longitude,accuracy:$.coords.accuracy};K(Z),b?.(Z);},$=>{console.warn("Geolocation error:",$.message),K(null),b?.(null);},{enableHighAccuracy:true,maximumAge:3e4,timeout:3e4}),()=>{P.current!==null&&(navigator.geolocation.clearWatch(P.current),P.current=null);}}},[F,a,b,v]);let Y=Be.useCallback(()=>{L(true),k(false);let $=R.current?.getMap?.();$&&D.current!==$&&(D.current=$,p?.());},[p]),U=Be.useCallback(()=>{R.current&&e&&(G(false),B.current=0,R.current.flyTo({center:[e.longitude||0,e.latitude||0],zoom:e.zoom||0,bearing:e.bearing||0,pitch:e.pitch||0,duration:1e3}));},[e]),ee=Be.useMemo(()=>f===false||f===null?[]:f==="default"||f===void 0?Xp:f,[f]),pe=Be.useCallback(()=>{if(!navigator.geolocation){console.warn("Geolocation is not supported by this browser.");return}I(true),navigator.geolocation.getCurrentPosition($=>{let{latitude:Z,longitude:de}=$.coords;R.current&&R.current.jumpTo({center:[de,Z],zoom:15});},$=>{console.warn("Geolocation error:",$.message),$.code===$.PERMISSION_DENIED&&I(false);},{enableHighAccuracy:true,timeout:1e4,maximumAge:0});},[]),J=Be.useMemo(()=>{if(a)return null;let $=ee.map(Z=>Z.type==="navigation"?{...Z,onResetZoom:Z.onResetZoom||U,onGeolocateClick:Z.onGeolocateClick||pe}:Z);return Qp($,{mapRef:R,layers:l,showResetButton:O})},[ee,R,a,l,U,O,pe]),re=Be.useMemo(()=>{let $=[];return l.filter(Z=>Z.events?.onClick||Z.events?.onMouseEnter||Z.events?.onMouseLeave||Z.tooltip).forEach(Z=>{Z.kind==="clusteredVector"?($.push(`${Z.id}-clusters`),$.push(`${Z.id}-points`),$.push(`${Z.id}-selected-point`)):$.push(Z.id);}),[...$,...h]},[l,h]),xe=Be.useMemo(()=>{let $=new Map;return l.forEach(Z=>{Z.events&&($.set(Z.id,Z.events),Z.kind==="clusteredVector"&&($.set(`${Z.id}-clusters`,Z.events),$.set(`${Z.id}-points`,Z.events),$.set(`${Z.id}-selected-point`,Z.events)));}),$},[l]),te=Be.useMemo(()=>{let $=new Map;return l.forEach(Z=>{Z.tooltip&&($.set(Z.id,Z.tooltip),Z.kind==="clusteredVector"&&($.set(`${Z.id}-clusters`,Z.tooltip),$.set(`${Z.id}-points`,Z.tooltip),$.set(`${Z.id}-selected-point`,Z.tooltip)));}),$},[l]),ne=Be.useMemo(()=>{let $=new Map;return l.forEach(Z=>{Z.kind==="clusteredVector"&&($.set(Z.id,Z),$.set(`${Z.id}-clusters`,Z),$.set(`${Z.id}-points`,Z),$.set(`${Z.id}-selected-point`,Z));}),$},[l]),me=Be.useMemo(()=>{if(!y)return null;let $=S?.longitude??t?.longitude??e?.longitude,Z=S?.latitude??t?.latitude??e?.latitude;return $===void 0||Z===void 0?null:{longitude:$,latitude:Z}},[y,S,t,e]),ve=Be.useCallback($=>{if(a)return;let Z=$.features?.[0];if(!Z||!Z.layer)return;let de=Z.layer.id,oe=xe.get(de),Ne=te.get(de),$e;Z.geometry.type==="Point"?$e=Z.geometry.coordinates:$e=[$.lngLat.lng,$.lngLat.lat];let Le={id:Z.id??Z.properties?.id,lngLat:$e,properties:Z.properties||{},layerId:de},nn=ne.get(de),ge=Z.properties?.cluster===true;if(nn&&ge){let Qe=R.current;if(Qe){let Hc=Qe.getZoom(),Wc=Math.min(Hc+3,18);Qe.flyTo({center:$e,zoom:Wc,duration:1e3});}return}if(oe?.onClick&&oe.onClick(Le),Ne&&Ne.trigger==="click"){let Qe;nn&&"cluster"in Ne?Ne.point&&(Qe=Ne.point(Le)):"content"in Ne&&(Qe=typeof Ne.content=="function"?Ne.content(Le):Ne.content),Qe&&X({feature:Le,content:Qe,bare:Ne.bare});}C&&C($);},[xe,te,a,C,ne,R,re]),Je=Be.useCallback($=>{let Z=$.features?.[0];if(!Z||!Z.layer)return null;let de=Z.layer.id,oe=te.get(de);if(!oe||oe.trigger!=="hover"&&oe.trigger!==void 0)return null;let Ne;Z.geometry.type==="Point"?Ne=Z.geometry.coordinates:Ne=[$.lngLat.lng,$.lngLat.lat];let $e={id:Z.id??Z.properties?.id,lngLat:Ne,properties:Z.properties||{},layerId:de},Le;if(ne.get(de)&&"cluster"in oe){let ge=Z.properties?.cluster===true;if(ge&&oe.cluster){let Qe=Z.properties?.point_count||0;Le=oe.cluster(Qe,$e);}else !ge&&oe.point?Le=oe.point($e):Le=ge?`${Z.properties?.point_count||0} items`:null;}else "content"in oe&&(Le=typeof oe.content=="function"?oe.content($e):oe.content);return Le?{feature:$e,content:Le,bare:oe.bare}:null},[te,ne]),Pt=Be.useCallback($=>{if(a)return;let Z=$.features?.[0];if(!Z||!Z.layer)return;let de=Z.layer.id,oe=xe.get(de);if(oe?.onMouseEnter){let $e;Z.geometry.type==="Point"?$e=Z.geometry.coordinates:$e=[$.lngLat.lng,$.lngLat.lat];let Le={id:Z.id??Z.properties?.id,lngLat:$e,properties:Z.properties||{},layerId:de};oe.onMouseEnter(Le);}let Ne=Je($);Ne&&X(Ne),R.current&&(R.current.getCanvas().style.cursor="pointer");},[xe,a,R,Je]),Ga=Be.useCallback($=>{if(a)return;let Z=$.features?.[0];if(!Z||!Z.layer)return;let de=Je($);if(de){X(oe=>oe&&oe.feature.layerId===de.feature.layerId&&oe.feature.id===de.feature.id?oe:de);return}X(oe=>{if(!oe)return oe;let Ne=te.get(oe.feature.layerId);return Ne&&(Ne.trigger==="hover"||Ne.trigger===void 0)?null:oe});},[a,Je,te]),Ur=Be.useCallback(()=>{if(!a){if(xe.forEach($=>{$.onMouseLeave?.();}),z){let $=z.feature.layerId,Z=l.find(de=>de.id===$);if(!Z){let de=$.replace(/-(?:clusters|points|selected-point|cluster-shadows|points-shadow|cluster-count)$/,"");Z=l.find(oe=>oe.id===de);}Z?.tooltip&&(Z.tooltip.trigger||"hover")==="hover"&&X(null);}R.current&&(R.current.getCanvas().style.cursor="");}},[xe,a,R,z,l]),ce=Be.useCallback(($,Z)=>{for(let de of l)if(de.tooltip&&!(Z&&de.id!==Z)){if(de.kind==="geojson"){if(typeof de.data=="string")continue;let oe=de.data,$e=(oe.type==="FeatureCollection"?oe.features:[oe]).find(Le=>Le.id===$);if($e&&$e.geometry.type==="Point")return {id:$e.id,lngLat:$e.geometry.coordinates,properties:$e.properties||{},layerId:de.id}}else if(de.kind==="customPins"){let oe=de.data.find(Ne=>Ne.id===$||Ne._id===$||Ne.key===$);if(oe)return {id:$,lngLat:de.getPosition(oe),properties:oe,layerId:de.id}}}return null},[l]);Be.useImperativeHandle(N,()=>({showTooltip:($,Z)=>{let de=ce($,Z);if(!de)return;let oe=l.find(Ne=>Ne.id===de.layerId);if(oe?.tooltip&&"content"in oe.tooltip){let Ne=typeof oe.tooltip.content=="function"?oe.tooltip.content(de):oe.tooltip.content;X({feature:de,content:Ne,bare:oe.tooltip.bare});}},hideTooltip:()=>{X(null);},getMap:()=>R.current,markMapAsMoved:()=>{G(true);}}),[ce,l]);let he=($,Z)=>u?u($,Z):{url:$},ae=m||w;return jsxRuntime.jsx("div",{ref:M,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(yR__default.default,{ref:R,initialViewState:e,...t&&t,style:{width:"100%",height:"100%"},mapStyle:Ui(c,E),styleDiffing:false,mapboxAccessToken:T,transformRequest:he,onLoad:Y,onMove:a?void 0:$=>{if($.originalEvent&&A){let Z=$.originalEvent.type,de=Math.abs(($.viewState.latitude??0)-(e?.latitude??0)),oe=Math.abs(($.viewState.longitude??0)-(e?.longitude??0)),Ne=Math.abs(($.viewState.zoom??0)-(e?.zoom??0));e&&(de>1e-4||oe>1e-4||Ne>.1)&&(Z==="mousemove"||Z==="touchmove"||Z==="pointermove"?G(true):(Z==="wheel"||Z==="mousewheel")&&(B.current+=1,B.current>=3&&G(true)));}r?.($.viewState);},onClick:a?void 0:ve,onMouseMove:a?void 0:Ga,onMouseEnter:a?void 0:Pt,onMouseLeave:a?void 0:Ur,interactiveLayerIds:a?[]:re,scrollZoom:a?false:o,dragPan:!a,dragRotate:!a,doubleClickZoom:!a,interactive:!a,attributionControl:false,children:[jsxRuntime.jsx(yR.AttributionControl,{position:"top-left"}),J,Gi(l,c),x,me&&jsxRuntime.jsx(yR.Marker,{longitude:me.longitude,latitude:me.latitude,anchor:"bottom",children:jsxRuntime.jsx(H,{name:"MapPin",size:36,className:"text-map-marker-default",weight:"fill"})}),g&&V&&jsxRuntime.jsx(mv,{longitude:V.longitude,latitude:V.latitude,accuracy:V.accuracy}),z&&jsxRuntime.jsx(yR.Popup,{longitude:z.feature.lngLat[0],latitude:z.feature.lngLat[1],offset:15,closeButton:false,closeOnClick:false,className:z.bare?"map-tooltip map-tooltip-bare":"map-tooltip",maxWidth:"none",children:z.content})]},`map-${c}-${E}`),ae&&jsxRuntime.jsx(hc,{}),a&&i&&jsxRuntime.jsx("div",{className:"absolute bottom-8 right-8 z-10",children:i})]})})});Ji.displayName="InteractiveMap";async function gv(e,t,r,o={}){if(e.hasImage(t))return;let n=o.size??64,a=o.color??"#2c2a26",i=o.weight??"regular",s=server.renderToStaticMarkup(Be.createElement(r,{size:n,color:a,weight:i})),c=`data:image/svg+xml;charset=utf-8,${encodeURIComponent(s)}`;await new Promise((l,d)=>{let u=new Image(n,n);u.onload=()=>{try{e.hasImage(t)||e.addImage(t,u,{sdf:!1}),l();}catch(m){d(m instanceof Error?m:new Error(`Failed to addImage "${t}": ${String(m)}`));}},u.onerror=m=>{d(m instanceof Error?m:new Error(`Failed to load icon "${t}"`));},u.src=c;});}function Va({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:d,showExpandToggle:u=false,expandedMapTitle:m="Explore map",expandedMapAddressLabel:p}){let f=i??mc(),{isDarkTheme:g}=jt(),[b,x]=Be.useState(false),[h,C]=Be.useState(false),[y,S]=Be.useState(false),N=Be.useRef(null),T=Be.useRef(null),E=Be.useCallback(()=>S(true),[]),R=Be.useCallback(()=>S(false),[]);Be.useEffect(()=>{xc();},[]);let M={width:typeof e=="number"?`${e}px`:e,height:typeof t=="number"?`${t}px`:t};Be.useEffect(()=>{let w=setTimeout(()=>{b||C(true);},200);return ()=>clearTimeout(w)},[b]);let A=Be.useCallback(()=>{x(true),C(false),l?.();},[l]);Be.useEffect(()=>{if(!T.current)return;let w=new ResizeObserver(()=>{N.current&&N.current.resize();});return w.observe(T.current),()=>{w.disconnect();}},[]);let L=o||h;return f?jsxRuntime.jsxs("div",{ref:T,style:M,className:`relative ${d||""}`,children:[jsxRuntime.jsxs(yR__default.default,{ref:N,mapboxAccessToken:f,initialViewState:r,style:{width:"100%",height:"100%"},mapStyle:Ui(n,g),onLoad:A,scrollZoom:false,dragPan:false,dragRotate:false,doubleClickZoom:false,touchZoomRotate:false,interactive:false,attributionControl:false,children:[c&&jsxRuntime.jsx(yR.AttributionControl,{position:"top-left"}),Gi(a,n),s&&r.longitude!==void 0&&r.latitude!==void 0&&jsxRuntime.jsx(yR.Marker,{longitude:r.longitude,latitude:r.latitude,anchor:"bottom",children:jsxRuntime.jsx(H,{name:"MapPin",size:36,className:"text-map-marker-default",weight:"fill"})})]}),u&&jsxRuntime.jsx("div",{className:"absolute top-4 right-4 z-20",children:jsxRuntime.jsx(hr,{icon:"ArrowsOutSimple",ariaLabel:"Expand map to fullscreen",onPress:E})}),u&&jsxRuntime.jsx(Sr,{isOpen:y,onClose:R,title:m,contentPadding:false,maxWidth:"min(1100px, 100vw)",minWidth:"min(360px, 100vw)",height:"80vh",mobileHeight:"82vh",children:jsxRuntime.jsxs("div",{className:"flex flex-col h-full",children:[jsxRuntime.jsx("div",{className:"flex-1 min-h-0 overflow-hidden sm:mx-4 sm:mt-4 sm:rounded-xl sm:border sm:border-border-default",children:jsxRuntime.jsx(Ji,{initialViewState:r,mapType:n,mapboxAccessToken:f,showMarker:s,markerLocation:r.longitude!==void 0&&r.latitude!==void 0?{latitude:r.latitude,longitude:r.longitude}:void 0,layers:a})}),p&&jsxRuntime.jsx("p",{className:"text-sm text-text-secondary px-4 py-3 flex-shrink-0",children:p})]})}),L&&jsxRuntime.jsx(hc,{})]}):jsxRuntime.jsx(yc,{style:M,className:d})}var ER={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 xv({label:e,size:t="md",variant:r="default",showWarningIndicator:o=true,warningThreshold:n=80,className:a,...i}){let s=ER[t];return jsxRuntime.jsx(reactAriaComponents.Meter,{...i,className:Se(a,"flex flex-col gap-1"),children:({percentage:c,valueText:l})=>{let d=o&&c>=n,u=r==="default"?LR(c):r;return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsxs("div",{className:"flex justify-between gap-2",children:[e&&jsxRuntime.jsx(Fe,{children:e}),jsxRuntime.jsxs("span",{className:tailwindMerge.twMerge(s.text,d?"text-feedback-error-text":"text-text-secondary"),children:[d&&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]",AR(u)),style:{width:`${Math.min(100,Math.max(0,c))}%`},role:"presentation","aria-hidden":"true"})})]})}})}function LR(e){return e<50?"success":e<70?"info":e<90?"warning":"error"}function AR(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 Sc="bg-background-surface border-l-[3px] border-y border-r border-border-default text-text-primary",zR={success:{container:Sc,iconName:"CheckCircle",iconColor:"text-feedback-success-text",borderColor:"var(--color-feedback-success-border)"},error:{container:Sc,iconName:"XCircle",iconColor:"text-feedback-error-text",borderColor:"var(--color-feedback-error-border)"},warning:{container:Sc,iconName:"Warning",iconColor:"text-feedback-warning-text",borderColor:"var(--color-feedback-warning-border)"},info:{container:Sc,iconName:"Info",iconColor:"text-feedback-info-text",borderColor:"var(--color-feedback-info-border)"}};function Nc({id:e,message:t,variant:r="info",duration:o=5e3,dismissible:n=true,onDismiss:a,className:i}){let{container:s,iconName:c,iconColor:l,borderColor:d}=zR[r];return Be.useEffect(()=>{if(o>0){let u=setTimeout(()=>{a?.();},o);return ()=>clearTimeout(u)}},[o,a]),jsxRuntime.jsxs(framerMotion.motion.div,{layout:true,initial:{opacity:0,y:-20,scale:.95},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,scale:.95,transition:{duration:.2}},className:tailwindMerge.twMerge("pointer-events-auto flex items-center gap-3 rounded-lg p-4 shadow-lg",s,i),style:{borderLeftColor:d},children:[jsxRuntime.jsx(H,{name:c,size:20,className:l}),jsxRuntime.jsx("p",{className:"flex-1 select-text text-sm font-medium",children:t}),n&&jsxRuntime.jsx("button",{type:"button",onClick:a,className:"flex-shrink-0 rounded-md p-1 transition-colors hover:bg-background-hover","aria-label":"Dismiss notification",children:jsxRuntime.jsx(H,{name:"X",size:16})})]})}var KR={"top-left":"top-4 left-4 items-start","top-center":"top-4 left-1/2 -translate-x-1/2 items-start","top-right":"top-4 right-4 items-end","bottom-left":"bottom-4 left-4 items-start","bottom-center":"bottom-4 left-1/2 -translate-x-1/2 items-start","bottom-right":"bottom-4 right-4 items-end"};function kc({notices:e,onDismiss:t,position:r="bottom-center",className:o}){let[n,a]=Be.useState(false);if(Be.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",KR[r],o),"aria-live":"polite","aria-atomic":"true",children:jsxRuntime.jsx(framerMotion.AnimatePresence,{mode:"sync",children:e.map(s=>jsxRuntime.jsx(Nc,{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 hv=Be.createContext(void 0);function yv({children:e,position:t="bottom-center",maxNotices:r=5,defaultDuration:o=5e3,defaultDismissible:n=true}){let[a,i]=Be.useState([]),s=Be.useCallback((u,m)=>{let p=`notice-${Date.now()}-${Math.random()}`,f={id:p,message:u,variant:m?.variant||"info",duration:m?.duration??o,dismissible:m?.dismissible??n};return i(g=>{let b=[...g,f];return b.length>r?b.slice(-r):b}),p},[r,o,n]),c=Be.useCallback(u=>{i(m=>m.filter(p=>p.id!==u));},[]),l=Be.useCallback(()=>{i([]);},[]),d={notices:a,addNotice:s,removeNotice:c,clearNotices:l};return jsxRuntime.jsxs(hv.Provider,{value:d,children:[e,jsxRuntime.jsx(kc,{notices:a,onDismiss:c,position:t})]})}function vv(){let e=Be.useContext(hv);if(!e)throw new Error("useNoticeContext must be used within a NoticeProvider");return e}function Cv(){let{addNotice:e,removeNotice:t,clearNotices:r}=vv(),o=Be.useCallback((c,l)=>e(c,l),[e]),n=Be.useCallback((c,l)=>e(c,{...l,variant:"success"}),[e]),a=Be.useCallback((c,l)=>e(c,{...l,variant:"error"}),[e]),i=Be.useCallback((c,l)=>e(c,{...l,variant:"warning"}),[e]),s=Be.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 QR={plain:"",contained:"bg-background-surface rounded-lg border border-border-default p-6",bordered:"border-y border-border-default py-6"},_R={none:"",sm:"my-4",md:"my-6 md:my-8",lg:"my-8 md:my-12"};function za({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 d=Be__namespace.default.useId(),u=e?`${e}-heading`:d,m=t||r||o;return jsxRuntime.jsxs("section",{id:e,className:tailwindMerge.twMerge(_R[a],QR[n],c),"aria-labelledby":t?u:void 0,children:[m&&jsxRuntime.jsxs("header",{id:u,className:tailwindMerge.twMerge("flex flex-col sm:flex-row sm:items-start sm:justify-between gap-4",i&&"border-b border-border-default pb-4 mb-6",!i&&l&&"mb-6"),children:[jsxRuntime.jsxs("div",{className:"min-w-0 flex-1",children:[t&&jsxRuntime.jsx(qt,{tag:s,size:"md",className:"text-text-primary",children:t}),r&&jsxRuntime.jsx("p",{className:"mt-2 text-base text-text-secondary",children:r})]}),o&&jsxRuntime.jsx("div",{className:"flex-shrink-0",children:o})]}),l&&jsxRuntime.jsx("div",{className:"",children:l})]})}za.displayName="Section";function Dc({sections:e,activeSection:t,onSectionChange:r,orientation:o="responsive",className:n,scrollBehavior:a="smooth",stickyTop:i="1.5rem",sectionIdPrefix:s="section-",filterSection:c,scrollContainerId:l}){let d=Be__namespace.useRef(null),u=Be__namespace.useRef(null),[m,p]=Be__namespace.useState(e[0]?.id||null),f=t??m,g=Be__namespace.useCallback(()=>l?document.getElementById(l):null,[l]);Be__namespace.useEffect(()=>{let y=window.location.hash;if(!y)return;let S=y.slice(1),N=e.find(T=>`${s}${T.id}`===S);N&&requestAnimationFrame(()=>{let T=document.getElementById(S);if(!T)return;let E=g();if(E){let R=E.getBoundingClientRect(),M=T.getBoundingClientRect(),A=E.scrollTop+(M.top-R.top);E.scrollTo({top:Math.max(0,A),behavior:"instant"});}else T.scrollIntoView({behavior:"instant",block:"start"});r?r(N.id):p(N.id);});},[]),Be__namespace.useEffect(()=>{if(t!==void 0&&r)return;let y=E=>{if(!E)return false;let R=window.getComputedStyle(E);return R.display!=="none"&&R.visibility!=="hidden"&&R.opacity!=="0"},S=()=>{let E=y(d.current),R=y(u.current);if(!E&&!R)return null;let M=g(),A=new IntersectionObserver(L=>{L.forEach(w=>{if(w.isIntersecting){let k=w.target.id.replace(s,"");r?r(k):p(k);}});},{root:M??void 0,rootMargin:"-20% 0px -70% 0px",threshold:0});return e.forEach(L=>{let w=document.getElementById(`${s}${L.id}`);w&&A.observe(w);}),A},N=S(),T=()=>{N&&N.disconnect(),N=S();};return window.addEventListener("resize",T),()=>{N&&N.disconnect(),window.removeEventListener("resize",T);}},[e,s,t,r,o,g]);let b=Be__namespace.useMemo(()=>c?e.filter(c):e,[e,c]),x=Be__namespace.useCallback((y,S)=>{y.preventDefault();let N=document.getElementById(`${s}${S}`);if(N){let T=g();if(T){let E=T.getBoundingClientRect(),R=N.getBoundingClientRect(),M=T.scrollTop+(R.top-E.top),A=Math.max(0,T.scrollHeight-T.clientHeight);T.scrollTo({top:Math.max(0,Math.min(M,A)),behavior:a});}else {let E=N.getBoundingClientRect().top+window.scrollY,R=Math.max(0,document.documentElement.scrollHeight-window.innerHeight),M=Math.max(0,Math.min(E,R));window.scrollTo({top:M,behavior:a});}window.history.pushState&&window.history.pushState(null,"",`#${s}${S}`),r?r(S):p(S);}},[s,a,r,g]);if(b.length===0)return null;let h=o==="vertical"?"":o==="horizontal"?"hidden":"hidden lg:block",C=o==="horizontal"?"":o==="vertical"?"hidden":"lg:hidden";return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("nav",{ref:d,className:tailwindMerge.twMerge(h,n),"aria-label":"Section navigation",children:jsxRuntime.jsx("div",{className:"space-y-1",style:{position:"sticky",top:i},children:b.map(y=>{let S=f===y.id;return jsxRuntime.jsx("a",{href:`#${s}${y.id}`,onClick:N=>x(N,y.id),className:tailwindMerge.twMerge("block w-full text-left px-3 py-2 rounded-md text-sm transition-colors no-underline",S?"bg-background-muted text-text-primary font-semibold":"text-text-secondary hover:text-text-primary hover:bg-background-hover"),"aria-current":S?"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-secondary",children:y.count})]})},y.id)})})}),jsxRuntime.jsx("nav",{ref:u,className:tailwindMerge.twMerge(C,"overflow-x-auto scrollbar-hide sticky top-0 z-10 py-4 -mt-4",n),"aria-label":"Section navigation",children:jsxRuntime.jsx("div",{className:"flex gap-2 min-w-max",children:b.map(y=>{let S=f===y.id;return jsxRuntime.jsx("a",{href:`#${s}${y.id}`,onClick:N=>x(N,y.id),className:tailwindMerge.twMerge("inline-block px-4 py-2 rounded-md text-sm whitespace-nowrap transition-colors no-underline",S?"bg-background-muted text-text-primary font-semibold":"text-text-secondary hover:text-text-primary hover:bg-background-hover"),"aria-current":S?"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-secondary",children:["(",y.count,")"]})]})},y.id)})})})]})}function wv(e){return "primary"}var Mc=Be__namespace.createContext({variant:"primary"});function a3({orientation:e,className:t=""}){return `flex flex-col w-full ${{horizontal:"",vertical:"flex-row"}[e]||""} ${t}`.trim()}function Lc({variant:e="primary",...t}){let r=wv();return jsxRuntime.jsx(Mc.Provider,{value:{variant:r},children:jsxRuntime.jsx("div",{className:"w-full h-auto",children:jsxRuntime.jsx(reactAriaComponents.Tabs,{...t,className:reactAriaComponents.composeRenderProps(t.className,(o,n)=>a3({...n,className:o}))})})})}function i3({orientation:e,sticky:t=false,className:r=""}){let o="flex gap-10 relative after:absolute after:bottom-0 after:left-0 after:right-0 after:h-[2px] after:bg-border-muted",n={horizontal:"flex-row w-full flex-nowrap overflow-x-auto scrollbar-hide",vertical:"flex-col items-start"},a=t?"sticky top-0 bg-background-surface z-10":"";return `${o} ${n[e]||""} ${a} ${r}`.trim()}function Ac({variant:e,sticky:t=false,...r}){let o=Be__namespace.useContext(Mc),n=wv(e??o.variant);return jsxRuntime.jsx(Mc.Provider,{value:{variant:n},children:jsxRuntime.jsx(reactAriaComponents.TabList,{...r,className:reactAriaComponents.composeRenderProps(r.className,(a,i)=>i3({...i,sticky:t,className:a||""}))})})}function s3({isSelected:e,isDisabled:t,variant:r,className:o=""}){let n="flex items-center cursor-default px-1 py-2 font-medium transition-all hover:cursor-pointer relative shrink-0 whitespace-nowrap",a=`${je()} ${r==="primary"?"focus-visible:outline-action-primary":""}`.trim(),i="";return t?i="text-text-disabled forced-colors:text-[GrayText] cursor-not-allowed":e?i="text-action-primary border-b-2 border-action-primary z-10 forced-colors:bg-[Highlight]":i="text-text-disabled hover:text-text-secondary",`${n} ${a} ${i} ${o}`.trim()}function Ic(e){let{variant:t}=Be__namespace.useContext(Mc);return jsxRuntime.jsx(reactAriaComponents.Tab,{...e,"data-testid":e.id?`tab-${e.id}`:void 0,className:reactAriaComponents.composeRenderProps(e.className,(r,o)=>s3({...o,className:r,isSelected:o.isSelected,variant:t}))})}function l3({className:e=""}){let t="block w-full mt-4 text-text-primary",r=je();return `${t} ${r} ${e}`.trim()}function Nv(e){return jsxRuntime.jsx(reactAriaComponents.TabPanel,{...e,className:reactAriaComponents.composeRenderProps(e.className,(t,r)=>l3({...r,className:t||""}))})}function Xn({children:e,maxWidth:t=1400,paddingXClass:r="px-4 md:px-6",paddingYClass:o="pt-8 pb-14 md:pt-12 md:pb-28",className:n}){return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge(`w-full ${r} ${o}`,n),style:{marginInline:"auto",maxWidth:t},children:e})}function kv({title:e,subtitle:t,breadcrumbs:r,breadcrumbsNode:o,media:n,actions:a,metadata:i,headingAs:s,sticky:c,stickyTop:l="0",zIndex:d=10,isLoading:u=false,className:m}){let p=c?"sticky bg-background-body":"",f=c?{top:l,zIndex:d}:{};return u?jsxRuntime.jsxs("header",{className:tailwindMerge.twMerge("mb-8 md:mb-12",p,m),style:f,"aria-labelledby":"page-title",children:[o||r?.length?jsxRuntime.jsx("div",{className:"mb-2 md:mb-4",children:jsxRuntime.jsx(j,{className:"h-4 w-32"})}):null,jsxRuntime.jsxs("div",{className:"flex flex-col md:flex-row md:items-start md:justify-between gap-4",children:[jsxRuntime.jsxs("div",{className:"min-w-0 flex-1",children:[jsxRuntime.jsx("div",{id:"page-title",children:jsxRuntime.jsx(j,{className:"h-8 w-64"})}),t?jsxRuntime.jsx(j,{className:"mt-2 h-5 w-48"}):null,i?jsxRuntime.jsx(j,{className:"mt-2 h-4 w-40"}):null,a?.length?jsxRuntime.jsx("div",{className:"mt-6 flex flex-col items-stretch gap-3 md:hidden",children:a.map((g,b)=>jsxRuntime.jsx(j,{className:"h-9 w-full"},b))}):null]}),a?.length?jsxRuntime.jsx("div",{className:"hidden md:flex md:items-start gap-2 shrink-0",children:a.map((g,b)=>jsxRuntime.jsx(j,{className:"h-9 w-24"},b))}):null]}),n?jsxRuntime.jsx("div",{className:"mt-4 md:mt-6",children:jsxRuntime.jsx(j,{className:"h-64 w-full"})}):null]}):jsxRuntime.jsxs("header",{className:tailwindMerge.twMerge("mb-8 md:mb-12",p,m),style:f,"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(Zs,{children:r.map((g,b)=>{let{label:x,...h}=g;return jsxRuntime.jsx($s,{...h,children:x},`${x}-${b}`)})})}):null,jsxRuntime.jsxs("div",{className:"flex flex-col md:flex-row md:items-start md:justify-between gap-4",children:[jsxRuntime.jsxs("div",{className:"min-w-0 flex-1",children:[jsxRuntime.jsx("div",{id:"page-title",children:jsxRuntime.jsx(qt,{tag:s||"h1",size:"xl",children:e})}),t?jsxRuntime.jsx("p",{className:"mt-2 text-base md:text-lg text-text-secondary",children:t}):null,i?jsxRuntime.jsx("div",{className:"mt-2 text-sm text-text-secondary",children:i}):null,a?.length?jsxRuntime.jsx("div",{className:"mt-6 flex flex-col items-stretch gap-3 md:hidden",children:a.map((g,b)=>jsxRuntime.jsx(Be__namespace.default.Fragment,{children:g},b))}):null]}),a?.length?jsxRuntime.jsx("div",{className:"hidden md:flex md:items-start gap-2 shrink-0",children:a.map((g,b)=>jsxRuntime.jsx(Be__namespace.default.Fragment,{children:g},b))}):null]}),n?jsxRuntime.jsx("div",{className:"mt-4 md:mt-6",children:n}):null]})}function Tv({tabs:e,value:t,defaultValue:r,onChange:o,className:n,children:a}){let i=s=>{o?.(s);};return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("mb-3 md:mb-4 border-b-2 border-border-muted",n),children:jsxRuntime.jsxs(Lc,{selectedKey:t,defaultSelectedKey:r||e[0]?.id,onSelectionChange:i,children:[jsxRuntime.jsx(Ac,{className:"after:bg-transparent",children:e.map(s=>jsxRuntime.jsx(Ic,{id:s.id,isDisabled:s.disabled,children:s.label},s.id))}),a]})})}function Pv({children:e,className:t,withSectionNav:r,navWidth:o="240px",gap:n="2rem",activeSection:a,onSectionChange:i,scrollBehavior:s,sectionIdPrefix:c="section-",scrollContainerId:l}){return r?jsxRuntime.jsx(c3,{position:r,navWidth:o,gap:n,activeSection:a,onSectionChange:i,scrollBehavior:s,sectionIdPrefix:c,scrollContainerId:l,className:t,children:e}):jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("w-full space-y-8 md:space-y-12",t),children:e})}function Rv({children:e,sticky:t=true,className:r}){return jsxRuntime.jsx("aside",{className:tailwindMerge.twMerge(t?"lg:sticky lg:top-20":"",r),children:e})}function c3({activeSection:e,onSectionChange:t,position:r,navWidth:o,gap:n,children:a,className:i,scrollBehavior:s,sectionIdPrefix:c,scrollContainerId:l}){let d=Be__namespace.default.useMemo(()=>{let g=[];return Be__namespace.default.Children.forEach(a,b=>{if(Be__namespace.default.isValidElement(b)&&(b.type===za||typeof b.type=="object"&&b.type?.displayName==="Section"||typeof b.type=="function"&&b.type?.displayName==="Section")){let x=b.props;x.id?g.push({id:x.id,label:x.navLabel||(typeof x.title=="string"?x.title:`Section ${x.id}`)}):process.env.NODE_ENV==="development"&&console.warn("Section component used within PageLayout.Content with withSectionNav must have an id prop");}}),g},[a]),u=Be__namespace.default.useMemo(()=>{let g=Be__namespace.default.Children.map(a,b=>{if(Be__namespace.default.isValidElement(b)&&(b.type===za||typeof b.type=="object"&&b.type?.displayName==="Section"||typeof b.type=="function"&&b.type?.displayName==="Section")){let x=b.props;if(x.id)return Be__namespace.default.cloneElement(b,{...x,id:`${c}${x.id}`})}return b});return jsxRuntime.jsx("div",{className:"space-y-8 md:space-y-12",children:g})},[a,c]),m=(g,b)=>jsxRuntime.jsx(Dc,{sections:d,activeSection:e,onSectionChange:t,orientation:g,scrollBehavior:s,sectionIdPrefix:c,scrollContainerId:l,className:b});if(r==="above")return jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("space-y-4",i),children:[jsxRuntime.jsx("div",{className:"sticky top-0 z-10 bg-background-body",children:m("horizontal")}),u]});let p=r==="left"?"var(--nav-width) 1fr":"1fr var(--nav-width)",f=r==="right"?"hidden lg:block sticky top-20 self-start [&_a]:text-right":"hidden lg:block sticky top-20 self-start";return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("div",{className:"lg:hidden sticky top-0 z-10 mt-3 mb-4 bg-background-body border-b border-border-default shadow-sm",children:m("horizontal","py-3 mt-0")}),jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("lg:grid",i),style:{gridTemplateColumns:p,gap:n,"--nav-width":o},children:[r==="left"&&jsxRuntime.jsx("nav",{className:f,children:m("vertical")}),u,r==="right"&&jsxRuntime.jsx("nav",{className:f,children:m("vertical")})]})]})}function Dv({children:e,className:t}){return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("flex-1 overflow-auto min-h-0",t),children:e})}Xn.Header=kv;Xn.Tabs=Tv;Xn.Content=Pv;Xn.Aside=Rv;Xn.ScrollableContent=Dv;function u3(e){return typeof e=="object"&&e!==null&&"features"in e&&Array.isArray(e.features)&&"type"in e&&typeof e.type=="string"}var p3=process.env.NEXT_PUBLIC_MAPBOX_ACCESS_TOKEN||"";function Lv({label:e,selectedKey:t,defaultSelectedKey:r,onSelectionChange:o,placeholder:n="Enter a location...",errorMessage:a,description:i,size:s="md",tooltip:c,isRequired:l,isDisabled:d,showErrors:u=true,autoFocus:m=false,onSelect:p,searchTypes:f=["place","address"],defaultFilter:g,validationResult:b,countryRestrictions:x,proximity:h="ip",hideCountry:C=false,showIcon:y=true,useMobileTray:S=true,className:N}){let T=Be.useRef(new WeakMap),E=Be.useRef([]),R={requestType:"REST",method:"GET",url:"https://api.mapbox.com/geocoding/v5/mapbox.places/{q}.json",extraParams:{access_token:p3,types:f.join(","),limit:"5",...x?.length?{country:x.join(",").toLowerCase()}:{},...h?{proximity:h==="ip"?"ip":h.join(",")}:{}},shouldLoad:L=>L.length>0,transformResponse:L=>{if(!u3(L))return [];let w=L.features.map(k=>{let O={id:k.id,name:k.place_name};return T.current.set(O,{type:k.place_type[0],center:k.center,context:k.context,address:k.address,text:k.text,properties:k.properties}),O});return w.length>0&&(E.current=w),w}},M=L=>{let w=T.current.get(L),k=L.name.split(", "),O=k[0],G=k.slice(1);C&&G.length>0&&(G=G.slice(0,-1));let B=G.join(", ");return jsxRuntime.jsxs("div",{className:"flex items-center gap-3 py-0.5",children:[y&&jsxRuntime.jsx(H,{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-secondary"}),jsxRuntime.jsxs("div",{className:"flex min-w-0 flex-col",children:[jsxRuntime.jsx("span",{className:"truncate font-medium text-text-primary",children:O}),B&&jsxRuntime.jsx("span",{className:"truncate text-sm text-text-secondary",children:B})]})]})},A=L=>L?jsxRuntime.jsx(H,{name:"CircleNotch",className:"h-4 w-4 animate-spin text-text-secondary"}):jsxRuntime.jsx(H,{name:"MagnifyingGlass",className:"h-4 w-4 text-text-secondary"});return jsxRuntime.jsx(js,{"data-testid":"autocomplete","data-config":JSON.stringify({types:f.join(","),country:x?.join(",")?.toLowerCase(),proximity:h==="ip"?"ip":h?.join(",")}),label:e||void 0,selectedKey:t,defaultSelectedKey:r,onSelectionChange:L=>{if(o?.(L),L){let k=E.current.find(O=>O.id===L);if(k){let O=T.current.get(k);O&&p({id:k.id,place_name:k.name,place_type:[O.type],center:O.center,context:O.context,address:O.address,text:O.text,properties:O.properties});}}},requestConfig:R,placeholder:n,errorMessage:a,description:i,size:s,tooltip:c,isRequired:l,isDisabled:d,showErrors:u,autoFocus:m,renderItem:M,renderLeftIcon:A,defaultFilter:g,validationResult:b,hideChevron:true,useMobileTray:S,className:N})}function Iv({label:e,rightLabel:t,progressWidth:r=64,hideLabels:o=false,...n}){return jsxRuntime.jsx(reactAriaComponents.ProgressBar,{...n,className:Se(n.className,"flex flex-col gap-1"),children:({percentage:a,valueText:i,isIndeterminate:s})=>jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[!o&&jsxRuntime.jsxs("div",{className:"flex items-center justify-between gap-2",children:[jsxRuntime.jsx("span",{className:"text-sm text-text-primary",children:e}),jsxRuntime.jsx("span",{className:"text-sm text-text-primary",children:t||i})]}),jsxRuntime.jsx("div",{className:`relative h-2 w-${r} overflow-hidden rounded-full bg-background-muted outline-none`,children:jsxRuntime.jsx("div",{className:`absolute top-0 h-full rounded-full bg-action-default forced-colors:bg-[Highlight] ${s?"left-full duration-1000 ease-out animate-in slide-out-to-right-full repeat-infinite [--tw-enter-translate-x:calc(-16rem-100%)]":"left-0"}`,style:{width:(s?40:a)+"%"}})})]})})}function Fv({as:e="div",size:t="md",tone:r="editorial",className:o="",children:n,...a}){let i=t==="md"?"":`prose-${t}`,s=r==="editorial"?"":`prose-${r}`;return jsxRuntime.jsx(e,{className:Jt("prose",i,s,o),...a,children:n})}function y3(e="2"){return {1:"p-2 text-xs",2:"p-3 text-sm",3:"p-4 text-base"}[e]}function v3(e){return e?"border-action-primary text-action-primary":"border-border text-text-primary"}function C3(){return "opacity-50 cursor-not-allowed"}function bm({value:e,isDisabled:t,className:r,children:o,size:n="2",variant:a="primary"}){return jsxRuntime.jsx(reactAriaComponents.Radio,{value:e,isDisabled:t,className:Se(r,"flex items-center justify-center cursor-pointer transition-all duration-200 focus:outline-none focus:ring-2 focus:ring-action-primary focus:ring-offset-2 rounded-lg min-h-[44px]"),children:({isSelected:s,isDisabled:c})=>jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("flex items-center justify-center w-full h-full transition-all duration-200 rounded-lg border-2 bg-background-surface",!(t||c)&&!s&&"hover:bg-background-hover hover:border-border-hover",y3(n),v3(s),(t||c)&&C3(),r),children:o})})}function xm({value:e,defaultValue:t,onChange:r,isDisabled:o,isReadOnly:n,isRequired:a,className:i,children:s,size:c="2",variant:l="primary",columns:d="repeat(auto-fit, minmax(160px, 1fr))",gap:u="1"}){return jsxRuntime.jsx(reactAriaComponents.RadioGroup,{value:e,defaultValue:t,onChange:r,isDisabled:o,isReadOnly:n,isRequired:a,className:Se(i,"grid"),style:{gridTemplateColumns:/^\d+$/.test(String(d))?`repeat(${d}, minmax(0, 1fr))`:d,gap:u==="1"?"0.25rem":u==="2"?"0.5rem":u==="3"?"0.75rem":u==="4"?"1rem":typeof u=="number"?`${u}px`:u},children:Be__namespace.default.Children.map(s,m=>Be__namespace.default.isValidElement(m)?Be__namespace.default.cloneElement(m,{size:c,variant:l}):m)})}function T3(e){return "primary"}var Bv=Be.createContext({variant:"primary"});function Vv(e){let{variant:t="primary",...r}=e,o=T3();return jsxRuntime.jsx(Bv.Provider,{value:{variant:o},children:jsxRuntime.jsxs(reactAriaComponents.RadioGroup,{...r,className:Se(e.className,"group flex flex-col gap-2"),children:[jsxRuntime.jsx(Fe,{children:e.label}),jsxRuntime.jsx("div",{className:`flex ${r.orientation==="horizontal"?"flex-row gap-4":"flex-col gap-2"}`,children:e.children}),e.description&&jsxRuntime.jsx(we,{children:e.description}),jsxRuntime.jsx(ue,{children:typeof e.errorMessage=="function"&&e.validationResult?e.errorMessage(e.validationResult):typeof e.errorMessage=="string"?e.errorMessage:null})]})})}function P3({isSelected:e,isInvalid:t,isDisabled:r}){let n=[je(),"focus-visible:outline-action-primary","w-5 h-5 rounded-full border-2 bg-background-surface transition-all"];return r?n.push("border-border-muted forced-colors:!border-[GrayText]"):t?n.push("border-feedback-error-border group-pressed:border-feedback-error-border dark:group-pressed:border-feedback-error-border forced-colors:!border-[Mark]"):e?n.push("border-[7px] border-action-primary forced-colors:!border-[Highlight] group-pressed:border-action-primary-hover dark:group-pressed:border-action-primary-hover"):n.push("border-border-default group-pressed:border-border-focus dark:group-pressed:border-border-focus"),n.join(" ")}function zv(e){return Be.useContext(Bv),jsxRuntime.jsx(reactAriaComponents.Radio,{...e,className:Se(e.className,"group flex items-center gap-2 text-sm text-text-primary transition disabled:text-text-secondary dark:text-text-primary dark:disabled:text-text-secondary forced-colors:disabled:text-[GrayText]"),children:t=>jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("div",{className:P3(t)}),e.children]})})}var V3={sm:{toolbar:"p-1.5",contentWrapper:"min-h-[100px]",contentPadding:"p-3",placeholderPos:"left-3 top-3",prose:"prose-xs",h1:"[&_.ProseMirror_h1]:mb-2 [&_.ProseMirror_h1]:text-base [&_.ProseMirror_h1]:font-bold",h2:"[&_.ProseMirror_h2]:mb-1.5 [&_.ProseMirror_h2]:text-sm [&_.ProseMirror_h2]:font-semibold",p:"[&_.ProseMirror_p]:mb-1",list:"[&_.ProseMirror_ul]:mb-1 [&_.ProseMirror_ul]:ml-4 [&_.ProseMirror_ol]:mb-1 [&_.ProseMirror_ol]:ml-4",li:"[&_.ProseMirror_li]:mb-0.5",placeholderText:"text-xs"},md:{toolbar:"p-2",contentWrapper:"min-h-[200px]",contentPadding:"p-4",placeholderPos:"left-4 top-4",prose:"prose-sm",h1:"[&_.ProseMirror_h1]:mb-4 [&_.ProseMirror_h1]:text-2xl [&_.ProseMirror_h1]:font-bold",h2:"[&_.ProseMirror_h2]:mb-3 [&_.ProseMirror_h2]:text-xl [&_.ProseMirror_h2]:font-semibold",p:"[&_.ProseMirror_p]:mb-2",list:"[&_.ProseMirror_ul]:mb-2 [&_.ProseMirror_ul]:ml-6 [&_.ProseMirror_ol]:mb-2 [&_.ProseMirror_ol]:ml-6",li:"[&_.ProseMirror_li]:mb-1",placeholderText:"text-sm"},lg:{toolbar:"p-2.5",contentWrapper:"min-h-[250px]",contentPadding:"p-5",placeholderPos:"left-5 top-5",prose:"prose-base",h1:"[&_.ProseMirror_h1]:mb-5 [&_.ProseMirror_h1]:text-3xl [&_.ProseMirror_h1]:font-bold",h2:"[&_.ProseMirror_h2]:mb-4 [&_.ProseMirror_h2]:text-2xl [&_.ProseMirror_h2]:font-semibold",p:"[&_.ProseMirror_p]:mb-3",list:"[&_.ProseMirror_ul]:mb-3 [&_.ProseMirror_ul]:ml-6 [&_.ProseMirror_ol]:mb-3 [&_.ProseMirror_ol]:ml-6",li:"[&_.ProseMirror_li]:mb-1.5",placeholderText:"text-base"},xl:{toolbar:"p-3",contentWrapper:"min-h-[300px]",contentPadding:"p-6",placeholderPos:"left-6 top-6",prose:"prose-lg",h1:"[&_.ProseMirror_h1]:mb-6 [&_.ProseMirror_h1]:text-4xl [&_.ProseMirror_h1]:font-bold",h2:"[&_.ProseMirror_h2]:mb-5 [&_.ProseMirror_h2]:text-3xl [&_.ProseMirror_h2]:font-semibold",p:"[&_.ProseMirror_p]:mb-3",list:"[&_.ProseMirror_ul]:mb-3 [&_.ProseMirror_ul]:ml-8 [&_.ProseMirror_ol]:mb-3 [&_.ProseMirror_ol]:ml-8",li:"[&_.ProseMirror_li]:mb-2",placeholderText:"text-lg"}},Wa=({isActive:e=false,onPress:t,children:r})=>jsxRuntime.jsx(Q,{variant:e?"secondary":"ghost",size:"sm",onPress:t,className:"p-1",children:r});function z3({initialUrl:e,isOpen:t,onClose:r,onSubmit:o}){let[n,a]=Be.useState(e);return Be__namespace.default.useEffect(()=>{a(e);},[e]),jsxRuntime.jsx(ir,{isDismissable:true,isOpen:t,onOpenChange:s=>!s&&r(),children:jsxRuntime.jsx(reactAriaComponents.Modal,{className:"flex items-center justify-center p-4 outline-none focus:outline-none focus-visible:outline-none ring-0 focus:ring-0 focus-visible:ring-0",children:jsxRuntime.jsx(reactAriaComponents.Dialog,{className:"relative bg-background-surface rounded-lg shadow-xl max-w-md w-full",children:jsxRuntime.jsxs("form",{onSubmit:s=>{s.preventDefault(),o(n),r();},children:[jsxRuntime.jsx(Bt,{title:"Insert Link",onClose:r}),jsxRuntime.jsx("div",{className:"p-6",children:jsxRuntime.jsx(Rr,{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 Wv({initialContent:e="",onChange:t,className:r,isDisabled:o=false,placeholder:n="Start typing...",id:a,size:i="md",headingLevels:s=[1,2]}){let c=V3[i],[l,d]=Be.useState(false),u=react.useEditor({immediatelyRender:false,extensions:[A3__default.default.configure({heading:s.length>0?{levels:s}:false}),D3__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:f})=>{t?.(f.getHTML());},editorProps:{attributes:{class:tailwindMerge.twMerge(`prose ${c.prose} max-w-none`,"focus:outline-none","[&>*:first-child]:mt-0 [&>*:last-child]:mb-0")}}}),m=()=>{d(true);},p=f=>{f===""?u?.chain().focus().unsetLink().run():u?.chain().focus().setLink({href:f}).run();};return u?jsxRuntime.jsxs("div",{id:a,"data-richtexteditor":true,className:tailwindMerge.twMerge("flex flex-col rounded-md border border-border-input bg-background-input","outline-none focus-within:outline-none focus-within:border-border-input focus-within:ring-0 focus-within:shadow-none",o&&"opacity-50",r),style:{outline:"none"},children:[!o&&u&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsxs(menus.BubbleMenu,{editor:u,shouldShow:({editor:f})=>f.isActive("link")&&!l,className:"flex items-center gap-1 rounded-md border border-border-input bg-background-surface p-1 shadow-md",children:[jsxRuntime.jsxs(Q,{variant:"ghost",size:"sm",className:"h-8 px-2",onPress:()=>{let f=u.getAttributes("link").href;f&&window.open(f,"_blank","noopener,noreferrer");},children:[jsxRuntime.jsx(H,{name:"ArrowSquareOut",className:"mr-1 h-4 w-4"}),"Open"]}),jsxRuntime.jsxs(Q,{variant:"ghost",size:"sm",className:"h-8 px-2",onPress:m,children:[jsxRuntime.jsx(H,{name:"PencilSimple",className:"mr-1 h-4 w-4"}),"Edit"]}),jsxRuntime.jsxs(Q,{variant:"ghost",size:"sm",className:"h-8 px-2",onPress:()=>u.chain().focus().unsetLink().run(),children:[jsxRuntime.jsx(H,{name:"X",className:"mr-1 h-4 w-4"}),"Remove"]})]}),jsxRuntime.jsx(z3,{isOpen:l,onClose:()=>d(false),onSubmit:p,initialUrl:u.getAttributes("link").href||""})]}),jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("flex items-center gap-1 border-b border-border-input",c.toolbar),children:[s.map(f=>jsxRuntime.jsx(Wa,{isActive:u.isActive("heading",{level:f}),onPress:()=>u.chain().focus().toggleHeading({level:f}).run(),children:jsxRuntime.jsxs("span",{className:"text-xs font-bold",children:["H",f]})},f)),jsxRuntime.jsx(Wa,{isActive:u.isActive("bold"),onPress:()=>u.chain().focus().toggleBold().run(),children:jsxRuntime.jsx("span",{className:"text-xs font-bold",children:"B"})}),jsxRuntime.jsx(Wa,{isActive:u.isActive("italic"),onPress:()=>u.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(Wa,{isActive:u.isActive("bulletList"),onPress:()=>u.chain().focus().toggleBulletList().run(),children:jsxRuntime.jsx(H,{name:"ListBullets",className:"h-4 w-4"})}),jsxRuntime.jsx(Wa,{isActive:u.isActive("orderedList"),onPress:()=>u.chain().focus().toggleOrderedList().run(),children:jsxRuntime.jsx(H,{name:"ListNumbers",className:"h-4 w-4"})}),jsxRuntime.jsx("div",{className:"mx-1 h-4 w-px bg-border-muted"}),jsxRuntime.jsx(Wa,{isActive:u.isActive("link"),onPress:m,children:jsxRuntime.jsx(H,{name:"PaperclipHorizontal",className:"h-4 w-4"})})]}),jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("relative w-full outline-none focus:outline-none",c.contentWrapper),children:[jsxRuntime.jsx(react.EditorContent,{editor:u,className:tailwindMerge.twMerge("w-full outline-none focus:outline-none",c.contentPadding,"[&_.ProseMirror]:min-h-[inherit]","[&_.ProseMirror]:outline-none [&_.ProseMirror]:focus:outline-none",c.h1,c.h2,c.p,"[&_.ProseMirror_ul]:list-disc","[&_.ProseMirror_ol]:list-decimal",c.list,c.li,"[&_.ProseMirror_blockquote]:border-l-4 [&_.ProseMirror_blockquote]:border-border-muted [&_.ProseMirror_blockquote]:pl-4 [&_.ProseMirror_blockquote]:italic","[&_.ProseMirror_code]:rounded [&_.ProseMirror_code]:bg-background-muted [&_.ProseMirror_code]:px-1 [&_.ProseMirror_code]:py-0.5 [&_.ProseMirror_code]:font-mono [&_.ProseMirror_code]:text-sm","[&_.ProseMirror_pre]:rounded-md [&_.ProseMirror_pre]:bg-background-muted [&_.ProseMirror_pre]:p-3 [&_.ProseMirror_pre]:font-mono [&_.ProseMirror_pre]:text-sm","[&_.ProseMirror_hr]:border-border-muted",o&&"pointer-events-none")}),u.isEmpty&&!o&&jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("pointer-events-none absolute text-text-secondary",c.placeholderPos,c.placeholderText),children:n})]})]}):null}function Gv(e){return e==="brand"?"primary":e==="default"||e==="secondary"||!e?"subtle":e}var W3={sm:"h-[var(--control-sm-height)] text-xs",md:"h-[var(--control-md-height)] text-sm",lg:"h-[var(--control-lg-height)] text-base",xl:"h-[var(--control-xl-height)] text-lg"},G3={sm:14,md:16,lg:18,xl:20},U3=({isSelected:e,isFirst:t,isLast:r,isDisabled:o,variant:n="subtle"})=>{let a=Gv(n),i=a==="primary"?"focus-visible:outline-action-primary":"focus-visible:outline-[color:var(--color-action-secondary-text)]";return a==="subtle"?tailwindMerge.twMerge(je(),"focus-visible:outline-[color:var(--color-action-secondary-text)]","px-3 text-center transition cursor-pointer forced-color-adjust-none -ml-px first:ml-0 flex items-center justify-center h-full gap-2",e?"bg-background-muted text-text-primary font-medium forced-colors:!bg-[Highlight] forced-colors:!text-[HighlightText]":"text-text-secondary hover:bg-background-hover pressed:bg-background-hover forced-colors:!bg-[ButtonFace] forced-colors:!text-[ButtonText]",!r&&"border-r border-border-muted",o&&"bg-background-muted text-text-disabled forced-colors:!bg-[ButtonFace] forced-colors:!text-[GrayText] border-border-muted forced-colors:border-[GrayText] cursor-not-allowed"):tailwindMerge.twMerge(je(),i,"px-3 text-center transition cursor-pointer forced-color-adjust-none -ml-px first:ml-0 flex items-center justify-center h-full gap-2",e?"bg-action-primary text-[color:var(--color-action-primary-text)] font-semibold forced-colors:!bg-[Highlight] forced-colors:!text-[HighlightText]":"text-text-secondary hover:bg-background-hover pressed:bg-background-hover forced-colors:!bg-[ButtonFace] forced-colors:!text-[ButtonText] hover:font-semibold",!r&&"border-r border-border-muted",o&&"bg-background-muted text-text-disabled forced-colors:!bg-[ButtonFace] forced-colors:!text-[GrayText] border-border-muted forced-colors:border-[GrayText] cursor-not-allowed")};function Bc({options:e,value:t,onChange:r,size:o="md",className:n,isDisabled:a,variant:i="subtle",iconOnly:s=false,"aria-label":c}){return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("inline-flex overflow-hidden rounded-[var(--control-border-radius)]",Gv(i)==="subtle"?"border border-border-muted":"border-2 border-border-muted",W3[o],n),role:"group","aria-label":c,children:e.map((l,d)=>{let u=s&&!!l.icon;return jsxRuntime.jsxs(reactAriaComponents.ToggleButton,{isSelected:t===l.id,onChange:()=>r(l.id),className:U3({isSelected:t===l.id,isFirst:d===0,isLast:d===e.length-1,isDisabled:a,variant:i}),isDisabled:a,"aria-label":l.label,children:[l.icon&&jsxRuntime.jsx(H,{name:l.icon,size:G3[o]}),u?jsxRuntime.jsx("span",{className:"sr-only",children:l.label}):jsxRuntime.jsx("span",{className:"inline-flex flex-col items-center after:content-[attr(data-label)] after:font-semibold after:h-0 after:overflow-hidden after:invisible","data-label":l.label,children:l.label})]},l.id)})})}function Uv({streetAddress:e,city:t,state:r,postalCode:o,longitude:n,latitude:a,href:i,LinkComponent:s,variant:c="outlined",layout:l="stacked",showMap:d=true,mapHeight:u=200,mapboxAccessToken:m,isLoading:p=false,className:f,contentClassName:g,showMapExpandToggle:b=false,expandedMapTitle:x="Explore map",expandedMapAddressLabel:h,piiEntity:C}){let y=[];t&&y.push(t),r&&o?y.push(`${r} ${o}`):r?y.push(r):o&&y.push(o);let S=y.join(", "),N=h||[e,S].filter(Boolean).join(", "),T=d&&n!==void 0&&a!==void 0,E=({children:M,className:A})=>i?s?jsxRuntime.jsx(s,{href:i,className:A,children:M}):jsxRuntime.jsx(et,{href:i,variant:"unstyled",className:tailwindMerge.twMerge("hover:underline",A),asButton:false,children:M}):jsxRuntime.jsx("span",{className:A,children:M});if(p){let M=l==="row";return jsxRuntime.jsxs(Oe,{variant:c,className:tailwindMerge.twMerge(M?"flex flex-col md:flex-row":"flex flex-col",f),children:[T&&jsxRuntime.jsx(Oe.Media,{aspectRatio:"auto",className:tailwindMerge.twMerge(M&&"md:order-2 md:flex-[2] md:min-w-0"),children:jsxRuntime.jsx(j,{width:"100%",height:u})}),jsxRuntime.jsxs(Oe.Content,{className:tailwindMerge.twMerge("space-y-2 px-4 md:px-6",M&&"md:order-1 md:flex-[1] md:flex-shrink-0 md:flex md:flex-col md:justify-center"),children:[jsxRuntime.jsx(j,{width:"100%",height:16}),jsxRuntime.jsx(j,{width:"80%",height:16})]})]})}let R=l==="row";return jsxRuntime.jsxs(Oe,{variant:c,className:tailwindMerge.twMerge("group/card relative",i&&"cursor-pointer",R?"flex flex-col md:flex-row":"flex flex-col",f),children:[i&&jsxRuntime.jsx(E,{className:"after:absolute after:inset-0 after:z-10",children:jsxRuntime.jsx("span",{className:"sr-only",children:e})}),T&&jsxRuntime.jsx(Oe.Media,{aspectRatio:"auto",className:tailwindMerge.twMerge(R&&"md:order-2 md:flex-[2] md:min-w-0"),children:jsxRuntime.jsx(Va,{height:u,initialViewState:{longitude:n,latitude:a,zoom:14},showMarker:true,mapboxAccessToken:m,showExpandToggle:b,expandedMapTitle:x,expandedMapAddressLabel:N})}),jsxRuntime.jsx(Oe.Content,{className:tailwindMerge.twMerge("px-4 md:px-6",R&&"md:order-1 md:flex-[1] md:flex-shrink-0 md:flex md:flex-col md:justify-center",g),children:jsxRuntime.jsxs("div",{className:"flex flex-col gap-1 min-w-0 text-left",children:[jsxRuntime.jsx("span",{className:"text-xl font-semibold leading-tight text-text-primary group-hover/card:text-text-brand transition-colors","data-pii-type":C?"address":void 0,"data-pii-entity":C,children:e}),S&&jsxRuntime.jsx("span",{className:"text-lg font-normal leading-relaxed text-text-secondary","data-pii-type":C?"city-state-zip":void 0,"data-pii-entity":C,children:S})]})})]})}function Kv({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:d=false,className:u,contentClassName:m,fullHeight:p=false,showMapExpandToggle:f=false,expandedMapTitle:g="Explore map",expandedMapAddressLabel:b}){let x=[];e.city&&x.push(e.city),e.state&&e.postalCode?x.push(`${e.state} ${e.postalCode}`):e.state?x.push(e.state):e.postalCode&&x.push(e.postalCode);let h=x.join(", "),C=b||[e.streetAddress,h].filter(Boolean).join(", "),y=a&&e.longitude!==void 0&&e.latitude!==void 0,S=t?`${t.firstName} ${t.lastName}`.trim():"",N=({children:E,href:R,className:M})=>R?r?jsxRuntime.jsx(r,{href:R,className:M,children:E}):jsxRuntime.jsx(et,{href:R,variant:"unstyled",className:tailwindMerge.twMerge("hover:underline",M),asButton:false,children:E}):jsxRuntime.jsx("span",{className:M,children:E});if(d){let E=n==="row";return jsxRuntime.jsxs(Oe,{variant:o,className:tailwindMerge.twMerge(p&&"h-full",E?"flex flex-col md:flex-row":"flex flex-col",u),children:[y&&jsxRuntime.jsx(Oe.Media,{aspectRatio:"auto",className:tailwindMerge.twMerge(E&&"md:order-2 md:flex-[2] md:min-w-0",p&&"flex-1"),children:jsxRuntime.jsx(j,{width:"100%",height:p?"100%":i})}),jsxRuntime.jsxs(Oe.Content,{className:tailwindMerge.twMerge("space-y-4 px-4 py-4",E&&"md:order-1 md:flex-[1] md:flex-shrink-0 md:flex md:flex-col md:justify-center"),children:[jsxRuntime.jsxs("div",{className:"space-y-2",children:[jsxRuntime.jsx(j,{width:"100%",height:16}),jsxRuntime.jsx(j,{width:"80%",height:16})]}),t&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("div",{className:"border-t border-border-default"}),jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[jsxRuntime.jsx(j,{width:40,height:40,className:"rounded flex-shrink-0"}),jsxRuntime.jsxs("div",{className:"flex-1 space-y-1",children:[jsxRuntime.jsx(j,{width:"50%",height:14}),jsxRuntime.jsx(j,{width:"100%",height:12})]})]})]})]})]})}let T=n==="row";return jsxRuntime.jsxs(Oe,{variant:o,className:tailwindMerge.twMerge("group/card relative",e.href&&"cursor-pointer",p&&"h-full",T?"flex flex-col md:flex-row":"flex flex-col",u),children:[e.href&&jsxRuntime.jsx(N,{href:e.href,className:"after:absolute after:inset-0 after:z-10",children:jsxRuntime.jsx("span",{className:"sr-only",children:e.streetAddress})}),y&&jsxRuntime.jsx(Oe.Media,{aspectRatio:"auto",className:tailwindMerge.twMerge(T&&"md:order-2 md:flex-[2] md:min-w-0",p&&"flex-1"),children:jsxRuntime.jsx(Va,{height:p?"100%":i,initialViewState:{longitude:e.longitude,latitude:e.latitude,zoom:14},showMarker:true,mapboxAccessToken:s,showExpandToggle:f,expandedMapTitle:g,expandedMapAddressLabel:C})}),jsxRuntime.jsxs(Oe.Content,{className:tailwindMerge.twMerge("space-y-4 px-4 py-4",T&&"md:order-1 md:flex-[1] md:flex-shrink-0 md:flex md:flex-col md:justify-center",m),children:[jsxRuntime.jsxs("div",{className:"flex flex-col gap-1 min-w-0 text-left",children:[jsxRuntime.jsx("span",{className:"text-xl font-semibold leading-tight text-text-primary group-hover/card:text-text-brand transition-colors","data-pii-type":e.piiEntity?"address":void 0,"data-pii-entity":e.piiEntity,children:e.streetAddress}),h&&jsxRuntime.jsx("span",{className:"text-lg font-normal leading-relaxed text-text-secondary","data-pii-type":e.piiEntity?"city-state-zip":void 0,"data-pii-entity":e.piiEntity,children:h})]}),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(go,{firstName:t.firstName,lastName:t.lastName,src:t.avatarUrl,size:"md",variant:"user",shape:"square",className:"flex-shrink-0",piiEntity:t.piiEntity}),jsxRuntime.jsxs("div",{className:"flex-1 min-w-0",children:[t.href?jsxRuntime.jsx(N,{href:t.href,className:"text-sm font-semibold leading-tight text-text-primary block mb-0.5 hover:text-text-brand transition-colors relative z-20",children:jsxRuntime.jsx("span",{"data-pii-type":t.piiEntity?"full-name":void 0,"data-pii-entity":t.piiEntity,children:S})}):jsxRuntime.jsx("span",{className:"text-sm font-semibold leading-tight text-text-primary block mb-0.5","data-pii-type":t.piiEntity?"full-name":void 0,"data-pii-entity":t.piiEntity,children:S}),jsxRuntime.jsxs("div",{className:"space-y-0.5",children:[c&&t.email&&jsxRuntime.jsxs("div",{className:"flex items-center gap-1.5 text-text-primary",children:[jsxRuntime.jsx(H,{name:"Envelope",size:12,className:"text-text-secondary flex-shrink-0"}),jsxRuntime.jsx(et,{href:`mailto:${t.email}`,variant:"unstyled",className:"text-xs leading-tight truncate text-text-primary relative z-20","data-pii-type":t.piiEntity?"email":void 0,"data-pii-entity":t.piiEntity,children:t.email})]}),l&&t.phone&&jsxRuntime.jsxs("div",{className:"flex items-center gap-1.5 text-text-primary",children:[jsxRuntime.jsx(H,{name:"Phone",size:12,className:"text-text-secondary flex-shrink-0"}),jsxRuntime.jsx(et,{href:`tel:${t.phone}`,variant:"unstyled",className:"text-xs leading-tight truncate text-text-primary relative z-20","data-pii-type":t.piiEntity?"phone":void 0,"data-pii-entity":t.piiEntity,children:na(t.phone)})]})]})]})]})]})]})]})}function Jv({label:e,description:t,tooltip:r,errorMessage:o,size:n="md",className:a,value:i,defaultValue:s=0,onChange:c,min:l=0,max:d=100,step:u=1,disabled:m,showValue:p=true}){let f=typeof i=="number",[g,b]=Be__namespace.default.useState(s),x=f?i:g,h=Math.min(Math.max(x,l),d),C=Math.max(d-l,1e-5),y=(h-l)/C*100;return jsxRuntime.jsxs("div",{className:Se(a,"group flex w-full flex-col gap-1"),children:[e&&jsxRuntime.jsx(Fe,{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:`${y}%`},"aria-hidden":true}),jsxRuntime.jsx("input",{type:"range",min:l,max:d,step:u,value:x,disabled:m,"aria-invalid":!!o,onChange:S=>{let N=Number(S.currentTarget.value);f||b(N),c?.(N);},className:tailwindMerge.twMerge("absolute inset-0 w-full cursor-pointer appearance-none bg-transparent outline-none","[&::-webkit-slider-thumb]:appearance-none [&::-webkit-slider-thumb]:h-4 [&::-webkit-slider-thumb]:w-4 [&::-webkit-slider-thumb]:rounded-full [&::-webkit-slider-thumb]:bg-background-input [&::-webkit-slider-thumb]:border [&::-webkit-slider-thumb]:border-border-input","hover:[&::-webkit-slider-thumb]:shadow-sm focus-visible:[&::-webkit-slider-thumb]:outline-2 focus-visible:[&::-webkit-slider-thumb]:outline-action-default","[&::-moz-range-thumb]:h-4 [&::-moz-range-thumb]:w-4 [&::-moz-range-thumb]:rounded-full [&::-moz-range-thumb]:bg-background-input [&::-moz-range-thumb]:border [&::-moz-range-thumb]:border-border-input","hover:[&::-moz-range-thumb]:shadow-sm focus-visible:[&::-moz-range-thumb]:outline-2 focus-visible:[&::-moz-range-thumb]:outline-action-default",m?"cursor-not-allowed opacity-60":void 0)})]}),p&&jsxRuntime.jsx("div",{className:"min-w-10 text-right text-sm text-text-primary tabular-nums",children:Math.round(h)})]}),t&&jsxRuntime.jsx(we,{className:"mt-2 text-text-secondary",children:t}),o&&jsxRuntime.jsx(ue,{className:"mt-1",children:o})]})}var X3=Be__namespace.default.createContext({orientation:"horizontal",isResizing:false});function qv(e,t){return e===void 0?t:e}function Z3(e,t){return typeof e=="number"?e:typeof e=="string"&&e.endsWith("%")?Number.parseFloat(e)/100*t:Number.parseFloat(e.toString())}function zc({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:d,className:u,dividerClassName:m,children:p}){let f=Be.useRef(null),[g,b]=Be.useState(false),x=i==="horizontal"?400:300,h=qv(i==="horizontal"?e:t,x),[C,y]=Be.useState(null),S=Be.useCallback(L=>{if(!f.current||!g)return;let w=f.current.getBoundingClientRect(),k=i==="horizontal"?w.width:w.height,O=i==="horizontal"?L.clientX:L.clientY,B=(i==="horizontal"?w.right:w.bottom)-O,z=k-B,X=i==="horizontal"?r:o,V=i==="horizontal"?n:a;B<X||z<V||(y(B),c?.(B));},[g,i,r,o,n,a,c]),N=Be.useCallback(()=>{b(false),d?.();},[d]),T=Be.useCallback(L=>{L.preventDefault(),L.stopPropagation(),b(true),l?.();},[l]);Be.useEffect(()=>{if(g)return document.addEventListener("mousemove",S),document.addEventListener("mouseup",N),document.body.style.cursor=i==="horizontal"?"col-resize":"row-resize",document.body.style.userSelect="none",()=>{document.removeEventListener("mousemove",S),document.removeEventListener("mouseup",N),document.body.style.cursor="",document.body.style.userSelect="";}},[g,S,N,i]);let E=Be__namespace.default.Children.toArray(p).find(L=>Be__namespace.default.isValidElement(L)&&L.type===Zv),R=Be__namespace.default.Children.toArray(p).find(L=>Be__namespace.default.isValidElement(L)&&L.type===$v),M=C??h,A=typeof M=="number"?`${M}px`:M;return jsxRuntime.jsx(X3.Provider,{value:{orientation:i,isResizing:g},children:jsxRuntime.jsxs("div",{ref:f,className:tailwindMerge.twMerge("flex w-full h-full",i==="horizontal"?"flex-row":"flex-col",u),children:[jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("overflow-auto flex-1",i==="horizontal"?"h-full":"w-full"),children:E}),s&&jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("relative group flex-shrink-0",i==="horizontal"?"w-2 -mx-1 cursor-col-resize":"h-2 -my-1 cursor-row-resize",m),onMouseDown:T,role:"separator","aria-orientation":i,"aria-label":"Resize divider",tabIndex:0,onKeyDown:L=>{if(!f.current)return;let w=f.current.getBoundingClientRect(),k=i==="horizontal"?w.width:w.height,O=C??Z3(h,k),G=20,B=i==="horizontal"?r:o,z=i==="horizontal"?n:a;if(i==="horizontal"){if(L.key==="ArrowLeft"){let X=Math.min(O+G,k-z);y(X),c?.(X);}else if(L.key==="ArrowRight"){let X=Math.max(O-G,B);y(X),c?.(X);}}else if(L.key==="ArrowUp"){let X=Math.min(O+G,k-z);y(X),c?.(X);}else if(L.key==="ArrowDown"){let X=Math.max(O-G,B);y(X),c?.(X);}},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",g&&"bg-action-brand",g&&(i==="horizontal"?"w-1":"h-1"))}),jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("absolute",i==="horizontal"?"top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-1 h-8":"top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-8 h-1","bg-border-muted rounded-full opacity-0 group-hover:opacity-100 transition-opacity")})]}),jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("overflow-auto flex-shrink-0",i==="horizontal"?"h-full":"w-full"),style:{[i==="horizontal"?"width":"height"]:A},children:R})]})})}function Zv({className:e,children:t}){return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("w-full h-full",e),children:t})}function $v({className:e,children:t}){return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("w-full h-full",e),children:t})}zc.Main=Zv;zc.Aside=$v;var Q3=e=>{let t=At({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 Qv({label:e,description:t,errorMessage:r,size:o="md",tooltip:n,required:a,transparent:i,isInvalid:s,isDisabled:c,isResizable:l=false,className:d,validationResult:u,reserveErrorSpace:m=true,...p}){let{isFocused:f,handleFocus:g,handleBlur:b}=Tr();return jsxRuntime.jsx("div",{className:"group flex flex-col",children:jsxRuntime.jsxs("div",{className:"flex flex-col",children:[e&&jsxRuntime.jsx(Fe,{size:o,tooltip:n,isRequired:a,children:e}),jsxRuntime.jsx(bt,{children:jsxRuntime.jsx("textarea",{...p,required:a,onFocus:x=>{p.onFocus&&p.onFocus(x),g(x);},onBlur:x=>{p.onBlur&&p.onBlur(x),b(x);},className:Q3({isInvalid:s,isDisabled:c,isResizable:l,isFocused:f,size:o,transparent:i,className:d}),disabled:c})}),m?jsxRuntime.jsx("div",{className:"mt-1 min-h-[20px]",children:typeof r=="string"?jsxRuntime.jsx(ue,{size:o,children:r}):typeof r=="function"&&u?jsxRuntime.jsx(ue,{size:o,children:r(u)}):t?jsxRuntime.jsx(we,{size:o,children:t}):null}):jsxRuntime.jsx(jsxRuntime.Fragment,{children:typeof r=="string"?jsxRuntime.jsx(ue,{size:o,className:"mt-1",children:r}):typeof r=="function"&&u?jsxRuntime.jsx(ue,{size:o,className:"mt-1",children:r(u)}):t?jsxRuntime.jsx(we,{size:o,className:"mt-1",children:t}):null})]})})}function r0({label:e,description:t,errorMessage:r,size:o="md",tooltip:n,required:a,transparent:i,isInvalid:s,isDisabled:c,isResizable:l=false,className:d,validationResult:u,value:m="",onChange:p,chips:f=[],onChipsChange:g,triggerPattern:b="{{",onTriggerDetected:x,onTriggerDismissed:h,renderChip:C,chipVariant:y="primary",chipSize:S,...N}){let T=Be.useRef(null),{isFocused:E,handleFocus:R,handleBlur:M}=Tr(),A=S||"sm",L=Be.useRef(null),w=Be.useCallback(V=>{let K="",P=D=>{if(D.nodeType===Node.TEXT_NODE){if(!D.parentElement?.closest("[data-chip-id]")){let I=D.textContent||"";K+=I;}}else if(D.nodeType===Node.ELEMENT_NODE){let F=D;if(F.hasAttribute("data-chip-id")){let I=F.getAttribute("data-chip-id");K+=`{{${I}}}`;return}else if(F.tagName==="BR"){K+=`
|
|
45
|
+
`;return}else F.tagName;}for(let F=0;F<D.childNodes.length;F++)P(D.childNodes[F]);};return P(V),K},[]),k=Be.useCallback((V,K)=>{let P=document.createTreeWalker(V,NodeFilter.SHOW_TEXT,{acceptNode:W=>{let Y=W.parentElement;return Y&&Y.closest("[data-chip-id]")?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT}}),D=P.nextNode(),F=Math.max(0,K);for(;D;){let W=D.nodeValue||"";if(W.length>=F){let Y=document.createRange();Y.setStart(D,F),Y.collapse(true);let U=window.getSelection();U?.removeAllRanges(),U?.addRange(Y);return}F-=W.length,D=P.nextNode();}let I=window.getSelection(),v=document.createRange();v.selectNodeContents(V),v.collapse(false),I?.removeAllRanges(),I?.addRange(v);},[]);Be.useEffect(()=>{T.current&&!m&&T.current.textContent!==""&&(T.current.textContent="");},[m]),Be.useLayoutEffect(()=>{if(T.current){if(m===""){if(E)try{T.current.focus({preventScroll:!0}),k(T.current,0);}catch{}return}if(L.current!=null)try{k(T.current,L.current);}finally{L.current=null;}}},[m,k,E]);let O=Be.useCallback((V,K)=>{if(p?.(V),V===""){h?.();return}if(b&&x&&K!==void 0){let P=V.slice(0,K),D=typeof b=="string"?new RegExp(`\\${b}([^\\s]*)$`):b,F=P.match(D);if(F){let I=F[1]||"",v=K-F[0].length;x({query:I,position:K,startIndex:v});}else h?.();}},[p,b,x,h]),G=Be.useCallback(V=>{if(!g||!p)return;let K=f.filter(D=>D.id!==V);g(K);let P=m.replace(new RegExp(`\\{\\{${V}\\}\\}`,"g"),"");p(P);},[f,g,m,p]),B=Be.useCallback(V=>C?C(V,()=>G(V.id)):jsxRuntime.jsx($r,{variant:y,size:A,onRemove:c?void 0:()=>G(V.id),isDisabled:c,className:"py-0.5 px-1.5 gap-1 text-xs leading-none rounded-md",children:V.label},V.id),[C,y,A,G,c]),z=()=>{let V=At({isInvalid:s,isDisabled:c,isFocused:E,transparent:i,size:o}),K=`min-h-[100px] py-2 px-3 ${c?"resize-none":l?"resize-y":"resize-none"}`,P=tailwindMerge.twMerge("focus:outline-none overflow-auto","[&_[data-chip-id]::selection]:bg-action-primary/20","[&:empty]:before:content-[attr(data-placeholder)] [&:empty]:before:text-text-disabled [&:empty]:before:pointer-events-none");return tailwindMerge.twMerge(V,K,P,d)},X=()=>m?m.split(/(\{\{[^}]+\}\})/g).map((K,P)=>{let D=K.match(/\{\{([^}]+)\}\}/);if(D){let F=D[1],I=f.find(v=>v.id===F);if(I)return jsxRuntime.jsx("span",{className:"inline-block align-baseline cursor-pointer",contentEditable:false,suppressContentEditableWarning:true,"data-chip-id":F,style:{userSelect:"none",verticalAlign:"baseline",lineHeight:"1"},onClick:v=>{v.preventDefault();let W=window.getSelection(),Y=document.createRange();Y.selectNode(v.currentTarget),W?.removeAllRanges(),W?.addRange(Y);},children:B(I)},`chip-${F}-${P}`)}return K.includes(`
|
|
46
|
+
`)?K.split(`
|
|
47
|
+
`).map((F,I)=>jsxRuntime.jsxs(Be__namespace.default.Fragment,{children:[F,I<K.split(`
|
|
48
|
+
`).length-1&&jsxRuntime.jsx("br",{})]},`line-${P}-${I}`)):K}):null;return jsxRuntime.jsx("div",{className:"group flex flex-col",children:jsxRuntime.jsxs("div",{className:"flex flex-col",children:[e&&jsxRuntime.jsx(Fe,{size:o,tooltip:n,isRequired:a,children:e}),jsxRuntime.jsx(bt,{children:jsxRuntime.jsx("div",{ref:T,contentEditable:!c,suppressContentEditableWarning:true,onInput:V=>{if(c)return;let K=V.target,P=K.querySelector("[data-chip-id]")!==null,D;if(P?(D=w(K),D=D.replace(/(\{\{[^}]+\}\})\s{2,}/g,"$1 ").replace(/\s{2,}(\{\{[^}]+\}\})/g," $1")):D=K.textContent||"",D===""){try{let v=document.createRange();v.selectNodeContents(K),v.collapse(!0);let W=window.getSelection();W?.removeAllRanges(),W?.addRange(v),L.current=0;}catch{}O("",0);return}if(D===m)return;let F=window.getSelection(),I=0;if(F&&F.rangeCount>0)try{let v=F.getRangeAt(0);if(P){let W=0,Y=!1,U=ee=>{if(Y)return !0;if(ee===v.startContainer)return W+=v.startOffset,Y=!0,!0;if(ee.nodeType===Node.TEXT_NODE){if(!ee.parentElement?.closest("[data-chip-id]")){if(ee.contains(v.startContainer))return W+=v.startOffset,Y=!0,!0;W+=(ee.textContent||"").length;}}else if(ee.nodeType===Node.ELEMENT_NODE){let pe=ee;if(pe.hasAttribute("data-chip-id")){if(pe.contains(v.startContainer)||pe===v.startContainer){let re=pe.getAttribute("data-chip-id");return W+=`{{${re}}}`.length,Y=!0,!0}let J=pe.getAttribute("data-chip-id");return W+=`{{${J}}}`.length,!1}else if(pe.tagName==="BR")return pe===v.startContainer?(Y=!0,!0):(W+=1,!1)}for(let pe=0;pe<ee.childNodes.length;pe++)if(U(ee.childNodes[pe]))return !0;return !1};U(K),I=W;}else {let W=document.createRange();W.setStart(K,0),W.setEnd(v.startContainer,v.startOffset),I=W.toString().length;}}catch{I=D.length;}L.current=I,O(D,I);},onKeyDown:V=>{if(c)return;let K=window.getSelection();if(!(!K||K.rangeCount===0))try{let P=K.getRangeAt(0),D=P.commonAncestorContainer;if(V.key==="ArrowLeft"||V.key==="ArrowRight"){let F=D.nodeType===Node.TEXT_NODE?D.parentElement?.closest("[data-chip-id]"):D.closest("[data-chip-id]");if(F){V.preventDefault();try{let I=document.createRange(),v=window.getSelection();V.key==="ArrowLeft"?I.setStartBefore(F):I.setStartAfter(F),I.collapse(!0),v?.removeAllRanges(),v?.addRange(I);}catch{}}}if(V.key==="Backspace"){let F=null;if(F=(D.nodeType===Node.TEXT_NODE?D.parentElement?.closest("[data-chip-id]"):D.closest("[data-chip-id]"))||null,!F)if(D.nodeType===Node.TEXT_NODE){let I=D;if(P.startOffset===0&&I.parentElement){let v=I.previousSibling;if(v&&v.nodeType===Node.ELEMENT_NODE){let W=v.closest("[data-chip-id]");W&&(F=W);}}}else {let I=D;if(P.startOffset>0){let v=I.childNodes[P.startOffset-1];if(v&&v.nodeType===Node.ELEMENT_NODE){let W=v.closest("[data-chip-id]");W&&(F=W);}}}if(F){V.preventDefault(),V.stopPropagation();let I=F.getAttribute("data-chip-id");if(!I)return;let v=`{{${I}}}`,W=m.indexOf(v);if(W!==-1){let Y=m.slice(0,W)+m.slice(W+v.length),U=f.filter(ee=>ee.id!==I);L.current=W;try{window.getSelection()?.removeAllRanges();}catch{}g?.(U),p?.(Y);}}}}catch{}},onFocus:V=>{c||(N.onFocus&&N.onFocus(V),R(V));},onBlur:V=>{c||(N.onBlur&&N.onBlur(V),M(V));},className:z(),style:{whiteSpace:"pre-wrap",wordBreak:"break-word",...N.style},"data-placeholder":N.placeholder,children:X()},m===""?"empty":"content")}),t&&jsxRuntime.jsx(we,{size:o,className:"mt-3",children:t}),typeof r=="string"&&jsxRuntime.jsx(ue,{size:o,className:"mt-1",children:r}),typeof r=="function"&&u&&jsxRuntime.jsx(ue,{size:o,className:"mt-1",children:r(u)})]})})}function iD(e){return e instanceof Date&&!Number.isNaN(e.getTime())}function Sm(e){return iD(e)?e:(console.warn("Invalid date detected in TimeControls, using fallback:",e),new Date)}var a0={FIVE_MINUTES:0,FIFTEEN_MINUTES:1,HOUR:2,DAY:3,WEEK:4,MONTH:5,YEAR:6},sD=[{id:"FIFTEEN_MINUTES",label:"15m"},{id:"HOUR",label:"1h"},{id:"DAY",label:"1d"},{id:"WEEK",label:"1w"}];function i0({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:d=sD,autoAdjustWindowSize:u=false,className:m}){let[p,f]=Be.useState(0),g=Be.useRef(null),[b,x]=Be.useState(false),h=P=>{let F=(P.before.getTime()-P.after.getTime())/(1e3*60*60);return F<=24?"FIFTEEN_MINUTES":F<=72||F<=168?"HOUR":("DAY")};Be.useEffect(()=>{if(u&&!b&&o){let P=h(e);o(P);}},[e,u,b,o]);let C=P=>l.find(D=>{let F=D.getRange();return Math.abs(F.after.getTime()-P.after.getTime())<1e3*60*60*24&&Math.abs(F.before.getTime()-P.before.getTime())<1e3*60*60*24})?.id,[y,S]=Be.useState(()=>C(e)),N=Sm(e.after),T=Sm(e.before),E=new Date(T);E.setDate(E.getDate()-1);let R={start:zs(N,vn()),end:zs(E,vn())};Be.useEffect(()=>{let P=new ResizeObserver(D=>{for(let F of D)f(F.contentRect.width);});return g.current&&P.observe(g.current),()=>{g.current&&P.unobserve(g.current);}},[]);let M=[...d].sort((P,D)=>a0[P.id]-a0[D.id]),A=P=>{let D=P.toString(),F=l.find(I=>I.id===D);F&&(S(D),x(false),t(F.getRange()));},L=P=>{if(P?.start&&P?.end){S(void 0);let D=new Date(P.start.year,P.start.month-1,P.start.day,0,0,0,0),F=new Date(P.end.year,P.end.month-1,P.end.day+1,0,0,0,0);t({after:D,before:F});}},w=P=>{if(P){S(void 0);let D=new Date(P.year,P.month-1,P.day,0,0,0,0),F=new Date(P.year,P.month-1,P.day+1,0,0,0,0);t({after:D,before:F});}},k=P=>{o&&(x(true),o(P.toString()));},O=()=>{if(l.length>0){let P=l[0];S(P.id),x(false),t(P.getRange());}},G=(P,D=0)=>{let F=Sm(P),I=new Date(F);return D!==0&&I.setDate(I.getDate()+D),I.toLocaleDateString("en-US")},B=M.map(P=>({id:P.id,label:P.label,value:P.id})),z=l.map(P=>({id:P.id,label:P.label,value:P.id})),X=s?jsxRuntime.jsx("div",{className:"flex items-center rounded-md border border-border-muted bg-background-muted px-3 py-2 text-sm text-text-secondary",children:M.find(P=>P.id===r)?.label||r}):jsxRuntime.jsx(Sn,{className:"w-full md:w-auto",selectedKey:r,onSelectionChange:k,items:B,size:"md","aria-label":"Select Window Size",children:P=>jsxRuntime.jsx(Zt,{id:P.id,"aria-label":P.label,size:"md",children:P.label},P.id)}),V=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-text-link-hover",variant:"secondary",children:[jsxRuntime.jsx(H,{name:"CalendarBlank",size:18}),jsxRuntime.jsx("span",{className:"ml-2 hidden md:block",children:G(e.after)})]}),jsxRuntime.jsx(at,{className:"w-auto p-3",disableGroup:true,children:jsxRuntime.jsx(fa,{"aria-label":"Select date",value:si(N.toISOString().split("T")[0]),onChange:w})})]})}):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-text-link-hover",variant:"secondary",children:[jsxRuntime.jsx(H,{name:"CalendarBlank",size:18}),!y&&jsxRuntime.jsx("span",{className:"ml-2 hidden md:block",children:`${G(e.after)} - ${G(e.before,-1)}`})]}),jsxRuntime.jsx(at,{className:"w-auto p-3",disableGroup:true,children:jsxRuntime.jsx(ka,{"aria-label":"Date range calendar",value:R,onChange:L})})]}),!y&&jsxRuntime.jsx(Q,{variant:"ghost",size:"md",onPress:O,children:"Reset"})]}),K=p<600;return jsxRuntime.jsx("div",{ref:g,className:tailwindMerge.twMerge("flex w-full flex-wrap items-center justify-between gap-4",m),children:K?jsxRuntime.jsxs("div",{className:"flex w-full justify-between",children:[jsxRuntime.jsxs("div",{className:"flex items-center",children:[i&&V,a&&y!==void 0&&jsxRuntime.jsx(Sn,{selectedKey:y,onSelectionChange:A,items:z,size:"md","aria-label":"Select Date Range",children:P=>jsxRuntime.jsx(Zt,{id:P.id,size:"md",children:P.label},P.id)})]}),jsxRuntime.jsx("div",{className:"flex items-center",children:n&&r&&X})]}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsxs("div",{className:"flex items-center gap-4",children:[i&&V,a&&y!==void 0&&jsxRuntime.jsx(Bc,{options:l.map(P=>({id:P.id,label:P.label})),value:y,onChange:A,size:"sm",variant:"secondary","aria-label":"Select Date Range"})]}),jsxRuntime.jsx("div",{className:"flex items-center",children:n&&r&&X})]})})}function pD({isPlaceholder:e,isDisabled:t,size:r="md"}){return tailwindMerge.twMerge("inline-block box-content px-0.5 rounded outline-none tabular-nums text-center transition-colors",{sm:"text-base md:text-xs",md:"text-base md:text-sm",lg:"text-base",xl:"text-lg"}[r],e?"text-text-disabled italic":"text-text-primary",t?"text-text-disabled cursor-not-allowed":"cursor-text",!t&&"hover:bg-background-hover","data-[focused]:bg-background-selected data-[focused]:text-text-primary")}function l0({label:e,description:t,errorMessage:r,size:o="md",tooltip:n,isRequired:a,isDisabled:i,isInvalid:s,reserveErrorSpace:c=true,validationResult:l,className:d,descriptionPlacement:u="below",...m}){return jsxRuntime.jsxs(reactAriaComponents.TimeField,{...m,isDisabled:i,isRequired:a,isInvalid:s,className:Se(d,"flex flex-col gap-1"),children:[e&&jsxRuntime.jsx(Fe,{size:o,tooltip:n,description:u==="tooltip"||u==="inline"?t:void 0,descriptionPlacement:u,isRequired:a,children:e}),jsxRuntime.jsx(bt,{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:pD({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(ue,{size:o,children:r}):typeof r=="function"&&l?jsxRuntime.jsx(ue,{size:o,children:r(l)}):t&&u==="below"?jsxRuntime.jsx(we,{size:o,children:t}):null}):jsxRuntime.jsx(jsxRuntime.Fragment,{children:typeof r=="string"?jsxRuntime.jsx(ue,{size:o,className:"mt-1",children:r}):typeof r=="function"&&l?jsxRuntime.jsx(ue,{size:o,className:"mt-1",children:r(l)}):t&&u==="below"?jsxRuntime.jsx(we,{size:o,className:"mt-1",children:t}):null})]})}function c0({children:e,className:t=""}){return jsxRuntime.jsx("div",{className:`flex flex-col ${t}`.trim(),role:"list",children:e})}function d0({children:e,variant:t="default",icon:r,label:o,isLast:n=false,className:a=""}){let s={default:{dot:"bg-border-default border-border-default",line:"bg-border-default",label:"text-text-secondary",content:"text-text-primary"},active:{dot:"bg-text-primary border-text-primary",line:"bg-border-default",label:"text-text-secondary",content:"text-text-primary font-medium"},muted:{dot:"bg-border-muted border-border-muted",line:"bg-border-muted",label:"text-text-secondary",content:"text-text-secondary"},success:{dot:"bg-feedback-success-border border-feedback-success-border",line:"bg-border-default",label:"text-text-secondary",content:"text-text-primary"},error:{dot:"bg-feedback-error-border border-feedback-error-border",line:"bg-border-default",label:"text-text-secondary",content:"text-text-primary"},warning:{dot:"bg-feedback-warning-border border-feedback-warning-border",line:"bg-border-default",label:"text-text-secondary",content:"text-text-primary"},info:{dot:"bg-feedback-info-border border-feedback-info-border",line:"bg-border-default",label:"text-text-secondary",content:"text-text-primary"}}[t];return jsxRuntime.jsxs("div",{className:`flex gap-3 ${a}`.trim(),role:"listitem",children:[jsxRuntime.jsxs("div",{className:"flex flex-col items-center",style:{width:"20px"},children:[jsxRuntime.jsx("div",{className:`flex items-center justify-center rounded-full border-2 ${s.dot}`,style:{width:"20px",height:"20px",flexShrink:0},children:r&&jsxRuntime.jsx(H,{name:r,size:12,className:"text-background-body"})}),!n&&jsxRuntime.jsx("div",{className:`w-0.5 flex-1 ${s.line}`,style:{minHeight:"24px"}})]}),jsxRuntime.jsxs("div",{className:"flex-1 pb-6",children:[o&&jsxRuntime.jsx("div",{className:`text-xs mb-1 ${s.label}`,children:o}),jsxRuntime.jsx("div",{className:`text-sm ${s.content}`,children:e})]})]})}function xD(e){return "primary"}var hD="flex font-medium justify-center items-center gap-2 text-center transition whitespace-nowrap box-border",u0={primary:{selected:"bg-action-primary text-[color:var(--color-action-primary-text)] hover:bg-action-primary-hover forced-colors:bg-[ButtonText] forced-colors:text-[ButtonFace] border-2 border-transparent",unselected:"bg-transparent text-action-primary border-2 border-border-muted hover:bg-text-primary/[0.05] forced-colors:border-[ButtonBorder] forced-colors:bg-[ButtonFace] forced-colors:text-[ButtonText]"}},yD="opacity-[--control-hover-opacity] cursor-not-allowed pointer-events-none grayscale",vD="opacity-100 cursor-pointer",CD={"top-right":"-right-2 -top-2","top-left":"-left-2 -top-2","bottom-right":"-right-2 -bottom-2","bottom-left":"-left-2 -bottom-2"},SD={primary:"bg-action-primary text-[color:var(--color-action-primary-text)]",destructive:"bg-feedback-error-border text-text-inverse"};function wD(e){let{variant:t="primary",size:r="md",isDisabled:o,isSelected:n,borderRadius:a,borderRight:i,borderLeft:s}=e,c=xD(),l=`${hD} ${n?u0[c].selected:u0[c].unselected}`;return l+=` ${ze[r].text} ${ze[r].height} ${ze[r].padding} ${ze[r].gap}`,l+=` ${o?yD:vD}`,a==="left"&&(l+=" rounded-l-sm"),a==="right"&&(l+=" rounded-r-sm"),i&&(l+=" border-r"),s&&(l+=" border-l"),l+=` ${je()}`,(l+=" focus-visible:outline-action-primary"),tailwindMerge.twMerge(l)}function m0(e){let{className:t,children:r,onPress:o,icon:n,iconPosition:a="left",iconWeight:i,isLoading:s=false,loadingText:c,loadingIndicator:l,size:d="md",badgeNumber:u,badgeVariant:m="primary",badgePosition:p="top-right",...f}=e,g=n?jsxRuntime.jsx(H,{name:n,size:d,weight:i}):null,b=()=>{let h=jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[a==="left"&&g,r,a==="right"&&g]});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(H,{name:"CircleNotch",size:d,className:"animate-spin","aria-hidden":"true"})}),jsxRuntime.jsx("div",{className:"invisible","aria-hidden":"true",children:h}),c&&jsxRuntime.jsx("span",{className:"sr-only",role:"status","aria-live":"polite",children:c})]}):h},x=jsxRuntime.jsx(reactAriaComponents.ToggleButton,{onPress:o,...f,className:tailwindMerge.twMerge(wD(e),t),"aria-busy":s,children:b()});return u&&u>0?jsxRuntime.jsxs("div",{className:"relative",children:[x,jsxRuntime.jsx("span",{className:`absolute ${CD[p]} flex h-5 w-5 items-center justify-center rounded-full ${SD[m]} text-xs`,"aria-label":`${u} items`,children:u})]}):x}var es={app:{icon:"AppWindow",label:{singular:"App",plural:"Apps"},description:"Workspace and integration apps"},site:{icon:"MapPin",label:{singular:"Site",plural:"Sites"},description:"Physical locations with energy systems"},device:{icon:"ShareNetwork",label:{singular:"Device",plural:"Devices"},description:"Connected energy devices"},customer:{icon:"Users",label:{singular:"Customer",plural:"Customers"},description:"End customers and site owners"},contact:{icon:"Users",label:{singular:"Contact",plural:"Contacts"},description:"Contact persons"},program:{icon:"ClipboardText",label:{singular:"Program",plural:"Programs"},description:"Demand response and VPP programs"},workflow:{icon:"FlowArrow",label:{singular:"Workflow",plural:"Workflows"},description:"Automated workflows and rules"},collection:{icon:"Stack",label:{singular:"Collection",plural:"Collections"},description:"Grouped entities"},board:{icon:"SquaresFour",label:{singular:"Board",plural:"Boards"},description:"Dashboard and monitoring boards"},report:{icon:"ChartLine",label:{singular:"Report",plural:"Reports"},description:"Analytics and reports"},event:{icon:"ClockCounterClockwise",label:{singular:"Event",plural:"Events"},description:"System events and activity"},alert:{icon:"Warning",label:{singular:"Alert",plural:"Alerts"},description:"Notifications and alerts"},monitor:{icon:"Pulse",label:{singular:"Monitor",plural:"Monitors"},description:"Threshold and status monitors"},command:{icon:"Play",label:{singular:"Command",plural:"Commands"},description:"Device commands and control"}};function kD(e){return es[e]}function TD(e){return es[e].icon}function PD(e,t=false){return t?es[e].label.plural:es[e].label.singular}function RD({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(Sr,{title:c,primaryAction:{label:r,onPress:()=>{let u=document.getElementById(e);u&&u.requestSubmit();},variant:a},secondaryAction:n?{label:o,onPress:n,variant:i}:void 0,...l,children:jsxRuntime.jsx(Ma,{id:e,onSubmit:t,children:s})})}function DD({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(Ai,{primaryAction:{label:r,onPress:()=>{let d=document.getElementById(e);d&&d.requestSubmit();},variant:a},secondaryAction:n?{label:o,onPress:n,variant:i}:void 0,...c,children:jsxRuntime.jsx(Ma,{id:e,onSubmit:t,className:"mt-2",children:s})})}function ED({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 ID={sm:"gap-2",md:"gap-4",lg:"gap-6"};function FD(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 BD({cols:e={base:1},gap:t="lg",className:r,...o}){return jsxRuntime.jsx("div",{...o,className:tailwindMerge.twMerge("grid",FD(e),ID[t],r)})}function OD({title:e,description:t,showDivider:r,className:o,children:n,...a}){return jsxRuntime.jsxs("section",{...a,className:tailwindMerge.twMerge("flex flex-col",o),children:[(e||t)&&jsxRuntime.jsxs("div",{className:"flex flex-col gap-1 mb-6",children:[typeof e=="string"?jsxRuntime.jsx(qt,{tag:"h3",size:"sm",children:e}):e,t?jsxRuntime.jsx(we,{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 HD(){return jsxRuntime.jsx("hr",{className:"border-border-muted"})}function WD({steps:e,currentStepId:t,onStepClick:r,className:o}){let n=e.findIndex(a=>a.id===t);return jsxRuntime.jsx("nav",{"aria-label":"Progress",className:tailwindMerge.twMerge("w-full",o),children:jsxRuntime.jsx("div",{className:"relative mb-12",children:jsxRuntime.jsx("ol",{className:"relative flex items-start justify-between",children:e.map((a,i)=>{let s=a.id===t,c=i<n,l=r&&(c||s);return jsxRuntime.jsxs("li",{className:"relative flex flex-col items-center",style:{flex:`1 1 ${100/e.length}%`},children:[jsxRuntime.jsx("button",{type:"button",disabled:!l,onClick:()=>l&&r?.(a.id),className:tailwindMerge.twMerge("relative z-10 flex h-10 w-10 flex-shrink-0 items-center justify-center rounded-full border-2 transition-colors bg-background-body",c&&"border-action-primary bg-action-primary text-text-inverse hover:bg-action-primary/90",s&&"border-action-primary bg-background-body text-action-primary",!c&&!s&&"border-border-default bg-background-body text-text-secondary",l&&"cursor-pointer",!l&&"cursor-default"),"aria-current":s?"step":void 0,children:c?jsxRuntime.jsx(H,{name:"Check",size:20,weight:"bold"}):jsxRuntime.jsx("span",{className:"text-sm font-semibold",children:i+1})}),i<e.length-1&&jsxRuntime.jsx("div",{className:"absolute top-5 h-0.5 transition-colors",style:{left:"50%",width:"100%",marginLeft:"20px",backgroundColor:i<n?"var(--color-action-primary)":"var(--color-border-default)"}}),jsxRuntime.jsxs("div",{className:"mt-3 flex flex-col items-center text-center w-32",children:[jsxRuntime.jsx("span",{className:tailwindMerge.twMerge("text-sm font-medium",s&&"text-text-default",c&&"text-text-primary",!s&&!c&&"text-text-secondary"),children:a.title}),a.description&&jsxRuntime.jsx("span",{className:"mt-1 text-xs text-text-secondary",children:a.description})]})]},a.id)})})})})}function UD({formId:e,show:t,isSubmitting:r,onCancel:o,primaryLabel:n="Save changes",secondaryLabel:a="Cancel",className:i}){return t?jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("fixed inset-x-0 bottom-0 z-40 border-t border-border-muted bg-background-surface/95 backdrop-blur supports-[backdrop-filter]:bg-background-surface/70",i),children:jsxRuntime.jsxs("div",{className:"mx-auto flex max-w-screen-lg items-center justify-between gap-3 p-3",children:[jsxRuntime.jsx("div",{className:"text-sm text-text-secondary",children:"You have unsaved changes"}),jsxRuntime.jsxs("div",{className:"flex gap-2",children:[jsxRuntime.jsx(Q,{variant:"secondary",onPress:o,children:a}),jsxRuntime.jsx(Q,{type:"submit",form:e,isDisabled:!!r,children:r?"Saving...":n})]})]})}):null}function YD({when:e,message:t="You have unsaved changes. Leave anyway?"}){return Be__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 KD({steps:e,initialStepId:t,canNavigate:r}){if(e.length===0)throw new Error("useWizard: steps array cannot be empty");let[o,n]=Be__namespace.useState(t||e[0].id),a=e.findIndex(u=>u.id===o),i=a>0,s=a<e.length-1,c=async u=>u===o?true:r&&!await r(o,u)?false:(n(u),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 Hne(e){switch(e){case "charging":case "on":return "success";case "discharging":return "warning";case "heat":case "cool":return "info";case "off":case "idle":case "eco":case "auto":return "neutral";default:return "neutral"}}/*! Bundled license information:
|
|
49
49
|
|
|
50
50
|
react-is/cjs/react-is.production.min.js:
|
|
51
51
|
(** @license React v16.13.1
|
|
@@ -80,5 +80,5 @@ classnames/index.js:
|
|
|
80
80
|
Licensed under the MIT License (MIT), see
|
|
81
81
|
http://jedwatson.github.io/classnames
|
|
82
82
|
*)
|
|
83
|
-
*/Object.defineProperty(exports,"DialogTrigger",{enumerable:true,get:function(){return reactAriaComponents.DialogTrigger}});exports.ActionCell=Px;exports.ActionMenu=na;exports.ActivityFeed=Id;exports.ActivityFeedGroup=hs;exports.ActivityItem=ys;exports.Alert=Uf;exports.AppShell=Xf;exports.AreaSeries=si;exports.AutoMobileRenderer=Ol;exports.Autocomplete=Os;exports.Avatar=so;exports.BREAKPOINTS=tn;exports.Badge=et;exports.BadgeCell=Dx;exports.Banner=Ws;exports.BarSeries=Zs;exports.BooleanCell=Ex;exports.BrandProvider=mf;exports.BreadcrumbItem=Us;exports.Breadcrumbs=Gs;exports.Button=_;exports.Calendar=la;exports.Card=Ve;exports.CardContent=Pd;exports.CardFooter=Rd;exports.CardHeader=kd;exports.CardMedia=Td;exports.CardMobileRenderer=Hl;exports.CarouselAutoplayTrigger=Kg;exports.CarouselControl=Wg;exports.CarouselIndicator=Pu;exports.CarouselIndicatorGroup=Yg;exports.CarouselItem=Hg;exports.CarouselItemGroup=Og;exports.CarouselNextTrigger=Ug;exports.CarouselPrevTrigger=Gg;exports.CarouselProgressText=Jg;exports.CarouselRoot=zg;exports.CategoryBarChart=Kb;exports.ChartAxis=qr;exports.ChartBottomBar=gl;exports.ChartContainer=sx;exports.ChartContext=Jr;exports.ChartEventMarkers=xl;exports.ChartEventSpans=hl;exports.ChartTooltip=fa;exports.Checkbox=yn;exports.CheckboxGroup=Ru;exports.Chip=Kr;exports.ChipInputField=_g;exports.ClearButton=ti;exports.CodeEditor=rb;exports.Collapse=ca;exports.CollapseContent=Vo;exports.CollapseHeader=Bo;exports.CollapseItem=Fo;exports.ColorField=Pw;exports.ColorModeProvider=wf;exports.CommandPalette=Ch;exports.Confirm=lb;exports.ConnectionStatusBadge=cb;exports.ContactCard=db;exports.ContactMetaCell=Lx;exports.ContactMetaDisplay=qs;exports.CopyToClipboard=Lo;exports.CustomCell=Ax;exports.DEFAULT_MAP_TYPE=pc;exports.DataControls=bx;exports.DataTable=sh;exports.DateCell=Ix;exports.DateField=yx;exports.DateRangePicker=wl;exports.Description=Ce;exports.DeviceHealthBadge=ch;exports.DeviceMetaCell=Bx;exports.DeviceMetaDisplay=Dl;exports.DeviceStateBadge=En;exports.DeviceStateCell=Ox;exports.DeviceStateWithMetric=Ll;exports.DeviceTypeIcon=uh;exports.Dialog=yr;exports.DialogForm=R3;exports.DialogHeader=It;exports.Drawer=Ti;exports.DrawerForm=D3;exports.ENTITY_CONFIG=ji;exports.EmptyState=fh;exports.EnrollmentStatusBadge=gh;exports.ErrorBoundary=Rr;exports.FieldError=de;exports.FieldGroup=vg;exports.FileUpload=xh;exports.FilterChips=xx;exports.FilterDialog=Nx;exports.FirmwareVersionBadge=yh;exports.Form=wa;exports.FormActions=M3;exports.FormDivider=H3;exports.FormGrid=B3;exports.FormSection=O3;exports.FormStepper=W3;exports.FormatRegistry=ee;exports.FormattedCell=Wx;exports.FunnelSeries=ux;exports.GlobalSearch=Nh;exports.Grid=kp;exports.GridStateBadge=Ml;exports.Heading=Jt;exports.HierarchyExplorer=_h;exports.HorizontalBarCell=pp;exports.HoverCard=E5;exports.Icon=B;exports.InfiniteScrollIndicator=hr;exports.Input=Bs;exports.InputWrapper=mt;exports.InteractiveMap=Oi;exports.Kpi=oy;exports.KpiGroup=Ap;exports.Label=Ae;exports.LineSeries=gi;exports.List=cy;exports.ListBox=A1;exports.ListBoxItem=qt;exports.ListItem=uy;exports.ListPane=py;exports.Loader=no;exports.Logo=ia;exports.MAP_TYPES=Vy;exports.Meter=Gy;exports.MiniBarCell=mp;exports.ModalBackdrop=nr;exports.Notice=bc;exports.NoticeContainer=xc;exports.NoticeProvider=Yy;exports.NumberCell=Jx;exports.NumberField=Ci;exports.PageBanner=Mg;exports.PageLayout=Gn;exports.PercentBarCell=fp;exports.PlaceSearch=ov;exports.Popover=rt;exports.ProgressBar=av;exports.Prose=iv;exports.Radio=cv;exports.RadioCard=rm;exports.RadioCardGroup=om;exports.RadioGroup=lv;exports.RangeCalendar=ha;exports.ResultsCount=hi;exports.RichTextEditor=pv;exports.SKELETON_SIZES=Wo;exports.SaveBar=U3;exports.SearchControl=Rn;exports.SearchEmptyState=kh;exports.SearchLoadingState=Ph;exports.SearchResultGroup=Dh;exports.SearchResultItem=Eh;exports.SearchResultsList=Mh;exports.SearchTrigger=Ah;exports.Section=Ma;exports.SectionNav=Cc;exports.SegmentedControl=Rc;exports.Select=fn;exports.SelectCell=qx;exports.SideNav=Cs;exports.SiteCard=fv;exports.SiteContactCard=bv;exports.SiteMetaCell=Zx;exports.SiteMetaDisplay=Fl;exports.Skeleton=J;exports.Slider=xv;exports.SortControl=yi;exports.SparklineCell=gp;exports.SplitPane=Ec;exports.StackNav=Ss;exports.StatList=ql;exports.StaticMap=Ea;exports.Switch=Nl;exports.Tab=Tc;exports.TabList=kc;exports.TabPanel=Xy;exports.Tabs=Nc;exports.TextArea=wv;exports.TextAreaWithChips=Pv;exports.TextCell=eh;exports.TextField=Nr;exports.TextLink=$e;exports.TimeControls=Mv;exports.TimeField=Av;exports.Timeline=Iv;exports.TimelineItem=Fv;exports.ToggleButton=zv;exports.Tooltip=jt;exports.TopNav=qa;exports.Tray=ot;exports.UnsavedChangesPrompt=Y3;exports.activeDeviceStates=rT;exports.addFilterCondition=Ho;exports.applyDataOperations=Oc;exports.autoScaleCurrent=$0;exports.autoScaleDistance=Bm;exports.autoScaleEnergy=Hm;exports.autoScalePower=iC;exports.autoScaleResistance=sC;exports.autoScaleVoltage=fC;exports.baselineFromPoint=lN;exports.camelCaseToWords=rf;exports.capitalize=ef;exports.celsiusToFahrenheit=lC;exports.celsiusToKelvin=KE;exports.centimetersToInches=TE;exports.clearColorCache=ps;exports.createCategoryColorMap=LC;exports.createEmptyFilter=xi;exports.createFilter=ok;exports.createFilters=nk;exports.createFormat=gM;exports.createXScale=Xu;exports.createYScale=Zu;exports.defaultMargin=We;exports.deviceStateLabels=oT;exports.deviceStateMetricFormats=xU;exports.enumToSentenceCase=pC;exports.exportChart=zc;exports.exportTableAsCSV=Gc;exports.fahrenheitToCelsius=cC;exports.fahrenheitToKelvin=JE;exports.feetToMeters=xE;exports.feetToMiles=vE;exports.filterToChips=ak;exports.formatBoolean=Rm;exports.formatCapacity=XD;exports.formatComponentValue=zr;exports.formatCurrency=Am;exports.formatCurrent=Jc;exports.formatDate=Im;exports.formatDistance=Vm;exports.formatEmptyValue=Pl;exports.formatEnergy=ed;exports.formatFieldValue=rn;exports.formatInternationalPhone=td;exports.formatNumber=Lm;exports.formatPercent=Em;exports.formatPhone=Wm;exports.formatPhoneNumber=Qn;exports.formatPower=ad;exports.formatPowerRating=ZD;exports.formatResistance=sd;exports.formatTemperature=Xm;exports.formatText=nf;exports.formatUSPhone=is;exports.formatVoltage=dd;exports.getBadgeClasses=kx;exports.getBooleanBadgeVariant=Tx;exports.getCellAlignmentClasses=sp;exports.getCellContainerClasses=ke;exports.getCellTextClasses=kr;exports.getContrastingTextColor=AC;exports.getDateParts=uE;exports.getDefaultChartColor=md;exports.getDefaultColors=ff;exports.getDeviceStateDisplayLabel=dp;exports.getDeviceStateLabel=dp;exports.getEntityConfig=k3;exports.getEntityIcon=T3;exports.getEntityLabel=P3;exports.getEventColor=uo;exports.getExportFormatName=c0;exports.getExportHeaders=B0;exports.getFieldGroupStyles=E1;exports.getFilterFields=Pn;exports.getGridStateLabel=zx;exports.getInputBackgroundStyles=yg;exports.getInputBaseStyles=Mt;exports.getInputStateStyles=Mo;exports.getLinkClasses=lp;exports.getNumericColorClasses=Rl;exports.getResolvedColor=kt;exports.getSkeletonSize=er;exports.getStateTone=Coe;exports.getThemeCategoricalColors=Ha;exports.getYFormatSettings=co;exports.gridStateLabels=aT;exports.inchesToCentimeters=kE;exports.isActiveDeviceState=cp;exports.isActiveState=cp;exports.isCustomPinsLayer=Gp;exports.isExportSupported=l0;exports.isFilterEmpty=vl;exports.isGeoJsonLayer=Wp;exports.isLightColor=gf;exports.isNil=se;exports.isRasterLayer=Up;exports.isVectorLayer=Hp;exports.kelvinToCelsius=dC;exports.kelvinToFahrenheit=jE;exports.kilometersToMiles=yE;exports.layer=Op;exports.mapValuesToCategoricalColors=fd;exports.metersToFeet=bE;exports.metersToMiles=CE;exports.metersToYards=NE;exports.milesToFeet=Fm;exports.milesToKilometers=hE;exports.milesToMeters=SE;exports.parseBoolean=To;exports.prepareTableDataForExport=F0;exports.registerPhosphorIcon=Hy;exports.removeFilterCondition=Tn;exports.resolveValue=he;exports.snakeCaseToWords=of;exports.temperatureStringToSymbol=Ym;exports.toA=iE;exports.toActiveInactive=G0;exports.toAmps=ns;exports.toBoolean=ko;exports.toCelsius=Jm;exports.toCentimeters=rC;exports.toCheckmark=Y0;exports.toCompactNumber=q0;exports.toCurrency=Mm;exports.toCustomDateFormat=tC;exports.toDateString=Q0;exports.toEnabledDisabled=H0;exports.toFahrenheit=Km;exports.toFeet=Xc;exports.toFloat=J0;exports.toFormattedNumber=j0;exports.toFullDateTime=_0;exports.toGW=zE;exports.toGWh=Om;exports.toGigawatts=nd;exports.toISOString=eC;exports.toInches=nC;exports.toInteger=K0;exports.toKA=sE;exports.toKV=tM;exports.toKW=BE;exports.toKelvin=jm;exports.toKiloamps=Kc;exports.toKilohms=Gm;exports.toKilometers=qc;exports.toKilovolts=cd;exports.toKilowatts=rd;exports.toLowerCase=$m;exports.toMA=aE;exports.toMV=_E;exports.toMW=VE;exports.toMWh=zm;exports.toMegawatts=od;exports.toMegohms=Um;exports.toMeters=jc;exports.toMiles=Zc;exports.toMilliamps=Yc;exports.toMillimeters=oC;exports.toMilliohms=id;exports.toMillivolts=ld;exports.toNauticalMiles=gE;exports.toOhms=ls;exports.toOnOff=W0;exports.toPercentage=Dm;exports.toRelativeTime=as;exports.toScientificNotation=X0;exports.toSecret=mC;exports.toSentenceCase=Qm;exports.toTemperature=qm;exports.toTitleCase=_m;exports.toTrueFalse=U0;exports.toUpperCase=Zm;exports.toV=eM;exports.toVolts=us;exports.toW=FE;exports.toWatts=ss;exports.toWh=Qc;exports.toYards=$c;exports.tokWh=_c;exports.truncateEnd=ds;exports.truncateMiddle=_n;exports.truncateStart=cs;exports.typeRole=ct;exports.typographyRole=Or;exports.ucFirst=tf;exports.useBreakpoint=Gt;exports.useChartContext=wn;exports.useClientDataControls=Qi;exports.useColorMode=Kt;exports.useComponentFormatter=eE;exports.useDataControls=ym;exports.useDebounce=wo;exports.useElementSize=$n;exports.useInfiniteScroll=No;exports.useInputFocus=wr;exports.useLocalStorage=ts;exports.useMediaQuery=Wt;exports.useNotice=Jy;exports.useServerDataControls=_i;exports.useTableExport=Pm;exports.useWizard=K3;exports.wrapWithLink=$r;exports.yardsToMeters=wE;//# sourceMappingURL=index.cjs.map
|
|
83
|
+
*/Object.defineProperty(exports,"DialogTrigger",{enumerable:true,get:function(){return reactAriaComponents.DialogTrigger}});exports.ActionCell=rh;exports.ActionMenu=da;exports.ActivityFeed=Jd;exports.ActivityFeedGroup=Ts;exports.ActivityItem=Ps;exports.Alert=gg;exports.AppShell=Cg;exports.AreaSeries=fi;exports.AutoMobileRenderer=jl;exports.Autocomplete=js;exports.Avatar=go;exports.BREAKPOINTS=cn;exports.Badge=ot;exports.BadgeCell=nh;exports.Banner=Xs;exports.BarSeries=nl;exports.BooleanCell=ah;exports.BrandProvider=Of;exports.BreadcrumbItem=$s;exports.Breadcrumbs=Zs;exports.Button=Q;exports.Calendar=fa;exports.Card=Oe;exports.CardContent=Od;exports.CardFooter=Hd;exports.CardHeader=Vd;exports.CardMedia=zd;exports.CardMobileRenderer=ql;exports.CarouselAutoplayTrigger=xb;exports.CarouselControl=mb;exports.CarouselIndicator=Ou;exports.CarouselIndicatorGroup=bb;exports.CarouselItem=pb;exports.CarouselItemGroup=ub;exports.CarouselNextTrigger=gb;exports.CarouselPrevTrigger=fb;exports.CarouselProgressText=hb;exports.CarouselRoot=db;exports.CategoryBarChart=hx;exports.ChartAxis=to;exports.ChartBottomBar=wl;exports.ChartContainer=Bx;exports.ChartContext=Qr;exports.ChartEventMarkers=kl;exports.ChartEventSpans=Tl;exports.ChartTooltip=va;exports.Checkbox=Pn;exports.CheckboxGroup=Hu;exports.Chip=$r;exports.ChipInputField=kb;exports.ClearButton=li;exports.CodeEditor=Rb;exports.Collapse=ga;exports.CollapseContent=Yo;exports.CollapseHeader=Uo;exports.CollapseItem=Go;exports.ColorField=NN;exports.ColorModeProvider=Xf;exports.CommandPalette=Zh;exports.Confirm=Ib;exports.ConnectionStatusBadge=Fb;exports.ContactCard=Bb;exports.ContactMetaCell=sh;exports.ContactMetaDisplay=rl;exports.CopyToClipboard=Oo;exports.CustomCell=lh;exports.DEFAULT_MAP_TYPE=vc;exports.DataControls=Kx;exports.DataTable=Bh;exports.DateCell=ch;exports.DateField=qx;exports.DateRangePicker=El;exports.Description=we;exports.DeviceHealthBadge=zh;exports.DeviceMetaCell=uh;exports.DeviceMetaDisplay=Vl;exports.DeviceStateBadge=Vn;exports.DeviceStateCell=fh;exports.DeviceStateWithMetric=Hl;exports.DeviceTypeIcon=Hh;exports.Dialog=Sr;exports.DialogForm=RD;exports.DialogHeader=Bt;exports.Drawer=Ai;exports.DrawerForm=DD;exports.ENTITY_CONFIG=es;exports.EmptyState=Uh;exports.EnrollmentStatusBadge=Yh;exports.ErrorBoundary=Lr;exports.FieldError=ue;exports.FieldGroup=Jg;exports.FileUpload=Jh;exports.FilterChips=Jx;exports.FilterDialog=_x;exports.FirmwareVersionBadge=qh;exports.Form=Ma;exports.FormActions=ED;exports.FormDivider=HD;exports.FormGrid=BD;exports.FormSection=OD;exports.FormStepper=WD;exports.FormatRegistry=_;exports.FormattedCell=bh;exports.FunnelSeries=Hx;exports.GlobalSearch=_h;exports.Grid=Op;exports.GridStateBadge=Ol;exports.Heading=qt;exports.HierarchyExplorer=Ry;exports.HorizontalBarCell=Tp;exports.HoverCard=M4;exports.Icon=H;exports.InfiniteScrollIndicator=Cr;exports.Input=Ys;exports.InputWrapper=bt;exports.InteractiveMap=Ji;exports.Kpi=Ly;exports.KpiGroup=jp;exports.Label=Fe;exports.LineSeries=wi;exports.List=zy;exports.ListBox=Mw;exports.ListBoxItem=Zt;exports.ListItem=Hy;exports.ListPane=Wy;exports.Loader=po;exports.Logo=pa;exports.MAP_TYPES=pv;exports.Meter=xv;exports.MiniBarCell=Pp;exports.ModalBackdrop=ir;exports.Notice=Nc;exports.NoticeContainer=kc;exports.NoticeProvider=yv;exports.NumberCell=Ch;exports.NumberField=Ri;exports.PageBanner=ob;exports.PageLayout=Xn;exports.PercentBarCell=Rp;exports.PlaceSearch=Lv;exports.Popover=at;exports.ProgressBar=Iv;exports.Prose=Fv;exports.Radio=zv;exports.RadioCard=bm;exports.RadioCardGroup=xm;exports.RadioGroup=Vv;exports.RangeCalendar=ka;exports.ResultsCount=ki;exports.RichTextEditor=Wv;exports.SKELETON_SIZES=qo;exports.SaveBar=UD;exports.SearchControl=Fn;exports.SearchEmptyState=ey;exports.SearchLoadingState=ry;exports.SearchResultGroup=ny;exports.SearchResultItem=ay;exports.SearchResultsList=iy;exports.SearchTrigger=ly;exports.Section=za;exports.SectionNav=Dc;exports.SegmentedControl=Bc;exports.Select=Sn;exports.SelectCell=wh;exports.SideNav=Ds;exports.SiteCard=Uv;exports.SiteContactCard=Kv;exports.SiteMetaCell=kh;exports.SiteMetaDisplay=Ul;exports.Skeleton=j;exports.Slider=Jv;exports.SortControl=Ti;exports.SparklineCell=Dp;exports.SplitPane=zc;exports.StackNav=Ms;exports.StatList=rc;exports.StaticMap=Va;exports.Switch=Ll;exports.Tab=Ic;exports.TabList=Ac;exports.TabPanel=Nv;exports.Tabs=Lc;exports.TextArea=Qv;exports.TextAreaWithChips=r0;exports.TextCell=Dh;exports.TextField=Rr;exports.TextLink=et;exports.TimeControls=i0;exports.TimeField=l0;exports.Timeline=c0;exports.TimelineItem=d0;exports.ToggleButton=m0;exports.Tooltip=Xt;exports.TopNav=ti;exports.Tray=it;exports.UnsavedChangesPrompt=YD;exports.activeDeviceStates=rP;exports.addFilterCondition=jo;exports.applyDataOperations=Xc;exports.assembleSeries=qm;exports.autoScaleCurrent=qC;exports.autoScaleDistance=cf;exports.autoScaleEnergy=mf;exports.autoScalePower=oS;exports.autoScaleResistance=nS;exports.autoScaleVoltage=uS;exports.baselineFromPoint=nk;exports.camelCaseToWords=Df;exports.capitalize=Pf;exports.celsiusToFahrenheit=aS;exports.celsiusToKelvin=aL;exports.centimetersToInches=HE;exports.clearColorCache=vs;exports.createCategoryColorMap=DS;exports.createEmptyFilter=Ni;exports.createFilter=oT;exports.createFilters=nT;exports.createFormat=DL;exports.createXScale=sp;exports.createYScale=lp;exports.defaultMargin=Ue;exports.deviceStateLabels=oP;exports.deviceStateMetricFormats=BY;exports.emptyStore=Xm;exports.enumToSentenceCase=cS;exports.exportChart=qc;exports.exportTableAsCSV=Qc;exports.fahrenheitToCelsius=iS;exports.fahrenheitToKelvin=iL;exports.feetToMeters=EE;exports.feetToMiles=IE;exports.filterToChips=aT;exports.formatBoolean=ef;exports.formatCapacity=cE;exports.formatComponentValue=Yr;exports.formatCurrency=af;exports.formatCurrent=nd;exports.formatDate=sf;exports.formatDistance=df;exports.formatEmptyValue=Fl;exports.formatEnergy=pd;exports.formatFieldValue=un;exports.formatInternationalPhone=md;exports.formatNumber=nf;exports.formatPercent=rf;exports.formatPhone=ff;exports.formatPhoneNumber=na;exports.formatPower=xd;exports.formatPowerRating=dE;exports.formatResistance=yd;exports.formatTemperature=Sf;exports.formatText=Ef;exports.formatUSPhone=fs;exports.formatVoltage=Sd;exports.getBadgeClasses=eh;exports.getBooleanBadgeVariant=th;exports.getCellAlignmentClasses=Cp;exports.getCellContainerClasses=Pe;exports.getCellTextClasses=Dr;exports.getContrastingTextColor=MS;exports.getDateParts=kE;exports.getDefaultChartColor=kd;exports.getDefaultColors=Hf;exports.getDeviceStateDisplayLabel=Np;exports.getDeviceStateLabel=Np;exports.getEntityConfig=kD;exports.getEntityIcon=TD;exports.getEntityLabel=PD;exports.getEventColor=ho;exports.getExportFormatName=Q0;exports.getExportHeaders=kC;exports.getFieldGroupStyles=Pw;exports.getFilterFields=In;exports.getGridStateLabel=mh;exports.getInputBackgroundStyles=Kg;exports.getInputBaseStyles=At;exports.getInputStateStyles=zo;exports.getLinkClasses=Sp;exports.getNumericColorClasses=Bl;exports.getResolvedColor=Rt;exports.getSkeletonSize=rr;exports.getStateTone=Hne;exports.getThemeCategoricalColors=ja;exports.getYFormatSettings=xo;exports.gridStateLabels=aP;exports.inchesToCentimeters=OE;exports.isActiveDeviceState=wp;exports.isActiveState=wp;exports.isCustomPinsLayer=rm;exports.isExportSupported=$0;exports.isFilterEmpty=Rl;exports.isGeoJsonLayer=tm;exports.isLightColor=Wf;exports.isNil=ie;exports.isRasterLayer=om;exports.isVectorLayer=em;exports.kelvinToCelsius=sS;exports.kelvinToFahrenheit=sL;exports.kilometersToMiles=AE;exports.layer=_p;exports.mapValuesToCategoricalColors=Td;exports.metersToFeet=ME;exports.metersToMiles=FE;exports.metersToYards=zE;exports.milesToFeet=lf;exports.milesToKilometers=LE;exports.milesToMeters=BE;exports.parseBoolean=Ao;exports.prepareTableDataForExport=NC;exports.registerPhosphorIcon=gv;exports.removeFilterCondition=An;exports.resolveValue=ye;exports.snakeCaseToWords=Mf;exports.temperatureStringToSymbol=xf;exports.tierForViewport=_c;exports.tileIndexAt=PC;exports.tileKey=ar;exports.tileReducer=Zm;exports.tilesForViewport=Mo;exports.toA=vE;exports.toActiveInactive=OC;exports.toAmps=ps;exports.toBoolean=Lo;exports.toCelsius=yf;exports.toCentimeters=_C;exports.toCheckmark=WC;exports.toCompactNumber=KC;exports.toCurrency=of;exports.toCustomDateFormat=QC;exports.toDateString=XC;exports.toEnabledDisabled=VC;exports.toFahrenheit=hf;exports.toFeet=sd;exports.toFloat=UC;exports.toFormattedNumber=YC;exports.toFullDateTime=ZC;exports.toGW=QE;exports.toGWh=pf;exports.toGigawatts=bd;exports.toISOString=$C;exports.toInches=tS;exports.toInteger=GC;exports.toKA=CE;exports.toKV=gL;exports.toKW=ZE;exports.toKelvin=vf;exports.toKiloamps=od;exports.toKilohms=gf;exports.toKilometers=id;exports.toKilovolts=Cd;exports.toKilowatts=fd;exports.toLowerCase=Nf;exports.toMA=yE;exports.toMV=mL;exports.toMW=$E;exports.toMWh=uf;exports.toMegawatts=gd;exports.toMegohms=bf;exports.toMeters=ad;exports.toMiles=ld;exports.toMilliamps=rd;exports.toMillimeters=eS;exports.toMilliohms=hd;exports.toMillivolts=vd;exports.toNauticalMiles=DE;exports.toOhms=bs;exports.toOnOff=zC;exports.toPercentage=tf;exports.toRelativeTime=ms;exports.toScientificNotation=JC;exports.toSecret=dS;exports.toSentenceCase=kf;exports.toTemperature=Cf;exports.toTitleCase=Tf;exports.toTrueFalse=HC;exports.toUpperCase=wf;exports.toV=fL;exports.toVolts=ys;exports.toW=XE;exports.toWatts=gs;exports.toWh=dd;exports.toYards=cd;exports.tokWh=ud;exports.truncateEnd=hs;exports.truncateMiddle=aa;exports.truncateStart=xs;exports.typeRole=pt;exports.typographyRole=Kr;exports.ucFirst=Rf;exports.useBreakpoint=Yt;exports.useChartContext=En;exports.useClientDataControls=as;exports.useColorMode=jt;exports.useComponentFormatter=fE;exports.useDataControls=Vm;exports.useDebounce=Ro;exports.useElementSize=oa;exports.useInfiniteScroll=Do;exports.useInputFocus=Tr;exports.useLocalStorage=ls;exports.useMediaQuery=Ut;exports.useNotice=Cv;exports.useServerDataControls=is;exports.useTableExport=Km;exports.useTiledTimeSeries=IC;exports.useWizard=KD;exports.wrapWithLink=no;exports.yardsToMeters=VE;//# sourceMappingURL=index.cjs.map
|
|
84
84
|
//# sourceMappingURL=index.cjs.map
|