@texturehq/edges 1.34.2 → 1.35.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +11 -11
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +1 -1
- package/dist/index.css.map +1 -1
- package/dist/index.d.cts +173 -1
- package/dist/index.d.ts +173 -1
- package/dist/index.js +11 -11
- package/dist/index.js.map +1 -1
- package/dist/styles.css +57 -0
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
'use strict';var reactAriaComponents=require('react-aria-components'),Ee=require('react'),fileSaver=require('file-saver'),Pv=require('papaparse'),Iv=require('fuse.js'),reactVirtual=require('@tanstack/react-virtual'),jsxRuntime=require('react/jsx-runtime'),luxon=require('luxon'),tailwindMerge=require('tailwind-merge'),H0=require('@phosphor-icons/react'),eS=require('@phosphor-icons/react/ssr'),reactStately=require('react-stately'),lucideReact=require('lucide-react'),framerMotion=require('framer-motion'),y2=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'),z5=require('react-map-gl'),server=require('react-dom/server'),q4=require('@tiptap/extension-link'),react=require('@tiptap/react'),menus=require('@tiptap/react/menus'),Q4=require('@tiptap/starter-kit');var _documentCurrentScript=typeof document!=='undefined'?document.currentScript:null;function _interopDefault(e){return e&&e.__esModule?e:{default:e}}function _interopNamespace(e){if(e&&e.__esModule)return e;var n=Object.create(null);if(e){Object.keys(e).forEach(function(k){if(k!=='default'){var d=Object.getOwnPropertyDescriptor(e,k);Object.defineProperty(n,k,d.get?d:{enumerable:true,get:function(){return e[k]}});}})}n.default=e;return Object.freeze(n)}var Ee__namespace=/*#__PURE__*/_interopNamespace(Ee);var Pv__default=/*#__PURE__*/_interopDefault(Pv);var Iv__default=/*#__PURE__*/_interopDefault(Iv);var H0__namespace=/*#__PURE__*/_interopNamespace(H0);var eS__namespace=/*#__PURE__*/_interopNamespace(eS);var y2__default=/*#__PURE__*/_interopDefault(y2);var z5__default=/*#__PURE__*/_interopDefault(z5);var q4__default=/*#__PURE__*/_interopDefault(q4);var Q4__default=/*#__PURE__*/_interopDefault(Q4);var hv=Object.create;var uc=Object.defineProperty;var yv=Object.getOwnPropertyDescriptor;var vv=Object.getOwnPropertyNames;var Cv=Object.getPrototypeOf,Sv=Object.prototype.hasOwnProperty;var wv=(e,t,r)=>t in e?uc(e,t,{enumerable:true,configurable:true,writable:true,value:r}):e[t]=r;var pr=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var Nv=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of vv(t))!Sv.call(e,n)&&n!==r&&uc(e,n,{get:()=>t[n],enumerable:!(o=yv(t,n))||o.enumerable});return e};var Vp=(e,t,r)=>(r=e!=null?hv(Cv(e)):{},Nv(!e||!e.__esModule?uc(r,"default",{value:e,enumerable:true}):r,e));var xa=(e,t,r)=>wv(e,typeof t!="symbol"?t+"":t,r);var Bg=pr(Ie=>{var pt=typeof Symbol=="function"&&Symbol.for,uu=pt?Symbol.for("react.element"):60103,pu=pt?Symbol.for("react.portal"):60106,Ds=pt?Symbol.for("react.fragment"):60107,Ms=pt?Symbol.for("react.strict_mode"):60108,Es=pt?Symbol.for("react.profiler"):60114,Ls=pt?Symbol.for("react.provider"):60109,As=pt?Symbol.for("react.context"):60110,mu=pt?Symbol.for("react.async_mode"):60111,Is=pt?Symbol.for("react.concurrent_mode"):60111,Fs=pt?Symbol.for("react.forward_ref"):60112,Bs=pt?Symbol.for("react.suspense"):60113,ew=pt?Symbol.for("react.suspense_list"):60120,Vs=pt?Symbol.for("react.memo"):60115,zs=pt?Symbol.for("react.lazy"):60116,tw=pt?Symbol.for("react.block"):60121,rw=pt?Symbol.for("react.fundamental"):60117,ow=pt?Symbol.for("react.responder"):60118,nw=pt?Symbol.for("react.scope"):60119;function Zt(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case uu:switch(e=e.type,e){case mu:case Is:case Ds:case Es:case Ms:case Bs:return e;default:switch(e=e&&e.$$typeof,e){case As:case Fs:case zs:case Vs:case Ls:return e;default:return t}}case pu:return t}}}function Fg(e){return Zt(e)===Is}Ie.AsyncMode=mu;Ie.ConcurrentMode=Is;Ie.ContextConsumer=As;Ie.ContextProvider=Ls;Ie.Element=uu;Ie.ForwardRef=Fs;Ie.Fragment=Ds;Ie.Lazy=zs;Ie.Memo=Vs;Ie.Portal=pu;Ie.Profiler=Es;Ie.StrictMode=Ms;Ie.Suspense=Bs;Ie.isAsyncMode=function(e){return Fg(e)||Zt(e)===mu};Ie.isConcurrentMode=Fg;Ie.isContextConsumer=function(e){return Zt(e)===As};Ie.isContextProvider=function(e){return Zt(e)===Ls};Ie.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===uu};Ie.isForwardRef=function(e){return Zt(e)===Fs};Ie.isFragment=function(e){return Zt(e)===Ds};Ie.isLazy=function(e){return Zt(e)===zs};Ie.isMemo=function(e){return Zt(e)===Vs};Ie.isPortal=function(e){return Zt(e)===pu};Ie.isProfiler=function(e){return Zt(e)===Es};Ie.isStrictMode=function(e){return Zt(e)===Ms};Ie.isSuspense=function(e){return Zt(e)===Bs};Ie.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Ds||e===Is||e===Es||e===Ms||e===Bs||e===ew||typeof e=="object"&&e!==null&&(e.$$typeof===zs||e.$$typeof===Vs||e.$$typeof===Ls||e.$$typeof===As||e.$$typeof===Fs||e.$$typeof===rw||e.$$typeof===ow||e.$$typeof===nw||e.$$typeof===tw)};Ie.typeOf=Zt;});var Vg=pr(Fe=>{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,u=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,m=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,f=e?Symbol.for("react.block"):60121,b=e?Symbol.for("react.fundamental"):60117,x=e?Symbol.for("react.responder"):60118,v=e?Symbol.for("react.scope"):60119;function C(Z){return typeof Z=="string"||typeof Z=="function"||Z===o||Z===l||Z===a||Z===n||Z===d||Z===m||typeof Z=="object"&&Z!==null&&(Z.$$typeof===g||Z.$$typeof===p||Z.$$typeof===i||Z.$$typeof===s||Z.$$typeof===u||Z.$$typeof===b||Z.$$typeof===x||Z.$$typeof===v||Z.$$typeof===f)}function y(Z){if(typeof Z=="object"&&Z!==null){var ne=Z.$$typeof;switch(ne){case t:var Te=Z.type;switch(Te){case c:case l:case o:case a:case n:case d:return Te;default:var ie=Te&&Te.$$typeof;switch(ie){case s:case u:case g:case p:case i:return ie;default:return ne}}case r:return ne}}}var S=c,k=l,R=s,E=i,D=t,L=u,V=o,A=g,N=p,T=r,z=a,W=n,F=d,K=false;function X(Z){return K||(K=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.")),G(Z)||y(Z)===c}function G(Z){return y(Z)===l}function Y(Z){return y(Z)===s}function P(Z){return y(Z)===i}function w(Z){return typeof Z=="object"&&Z!==null&&Z.$$typeof===t}function B(Z){return y(Z)===u}function M(Z){return y(Z)===o}function h(Z){return y(Z)===g}function O(Z){return y(Z)===p}function H(Z){return y(Z)===r}function j(Z){return y(Z)===a}function oe(Z){return y(Z)===n}function me(Z){return y(Z)===d}Fe.AsyncMode=S,Fe.ConcurrentMode=k,Fe.ContextConsumer=R,Fe.ContextProvider=E,Fe.Element=D,Fe.ForwardRef=L,Fe.Fragment=V,Fe.Lazy=A,Fe.Memo=N,Fe.Portal=T,Fe.Profiler=z,Fe.StrictMode=W,Fe.Suspense=F,Fe.isAsyncMode=X,Fe.isConcurrentMode=G,Fe.isContextConsumer=Y,Fe.isContextProvider=P,Fe.isElement=w,Fe.isForwardRef=B,Fe.isFragment=M,Fe.isLazy=h,Fe.isMemo=O,Fe.isPortal=H,Fe.isProfiler=j,Fe.isStrictMode=oe,Fe.isSuspense=me,Fe.isValidElementType=C,Fe.typeOf=y;})();});var gu=pr((UB,fu)=>{process.env.NODE_ENV==="production"?fu.exports=Bg():fu.exports=Vg();});var Hg=pr((YB,Og)=>{var zg=Object.getOwnPropertySymbols,aw=Object.prototype.hasOwnProperty,iw=Object.prototype.propertyIsEnumerable;function sw(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function lw(){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}}Og.exports=lw()?Object.assign:function(e,t){for(var r,o=sw(e),n,a=1;a<arguments.length;a++){r=Object(arguments[a]);for(var i in r)aw.call(r,i)&&(o[i]=r[i]);if(zg){n=zg(r);for(var s=0;s<n.length;s++)iw.call(r,n[s])&&(o[n[s]]=r[n[s]]);}}return o};});var Os=pr((KB,Wg)=>{var cw="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";Wg.exports=cw;});var bu=pr((JB,Gg)=>{Gg.exports=Function.call.bind(Object.prototype.hasOwnProperty);});var jg=pr((jB,Jg)=>{var xu=function(){};process.env.NODE_ENV!=="production"&&(Ug=Os(),Hs={},Yg=bu(),xu=function(e){var t="Warning: "+e;typeof console<"u"&&console.error(t);try{throw new Error(t)}catch{}});var Ug,Hs,Yg;function Kg(e,t,r,o,n){if(process.env.NODE_ENV!=="production"){for(var a in e)if(Yg(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,Ug);}catch(l){i=l;}if(i&&!(i instanceof Error)&&xu((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 Hs)){Hs[i.message]=true;var c=n?n():"";xu("Failed "+r+" type: "+i.message+(c??""));}}}}Kg.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(Hs={});};Jg.exports=Kg;});var Xg=pr((qB,Zg)=>{var dw=gu(),uw=Hg(),Jn=Os(),hu=bu(),qg=jg(),jn=function(){};process.env.NODE_ENV!=="production"&&(jn=function(e){var t="Warning: "+e;typeof console<"u"&&console.error(t);try{throw new Error(t)}catch{}});function Ws(){return null}Zg.exports=function(e,t){var r=typeof Symbol=="function"&&Symbol.iterator,o="@@iterator";function n(N){var T=N&&(r&&N[r]||N[o]);if(typeof T=="function")return T}var a="<<anonymous>>",i={array:u("array"),bigint:u("bigint"),bool:u("boolean"),func:u("function"),number:u("number"),object:u("object"),string:u("string"),symbol:u("symbol"),any:d(),arrayOf:m,element:p(),elementType:g(),instanceOf:f,node:C(),objectOf:x,oneOf:b,oneOfType:v,shape:S,exact:k};function s(N,T){return N===T?N!==0||1/N===1/T:N!==N&&T!==T}function c(N,T){this.message=N,this.data=T&&typeof T=="object"?T:{},this.stack="";}c.prototype=Error.prototype;function l(N){if(process.env.NODE_ENV!=="production")var T={},z=0;function W(K,X,G,Y,P,w,B){if(Y=Y||a,w=w||G,B!==Jn){if(t){var M=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 M.name="Invariant Violation",M}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var h=Y+":"+G;!T[h]&&z<3&&(jn("You are manually calling a React.PropTypes validation function for the `"+w+"` prop on `"+Y+"`. 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."),T[h]=true,z++);}}return X[G]==null?K?X[G]===null?new c("The "+P+" `"+w+"` is marked as required "+("in `"+Y+"`, but its value is `null`.")):new c("The "+P+" `"+w+"` is marked as required in "+("`"+Y+"`, but its value is `undefined`.")):null:N(X,G,Y,P,w)}var F=W.bind(null,false);return F.isRequired=W.bind(null,true),F}function u(N){function T(z,W,F,K,X,G){var Y=z[W],P=D(Y);if(P!==N){var w=L(Y);return new c("Invalid "+K+" `"+X+"` of type "+("`"+w+"` supplied to `"+F+"`, expected ")+("`"+N+"`."),{expectedType:N})}return null}return l(T)}function d(){return l(Ws)}function m(N){function T(z,W,F,K,X){if(typeof N!="function")return new c("Property `"+X+"` of component `"+F+"` has invalid PropType notation inside arrayOf.");var G=z[W];if(!Array.isArray(G)){var Y=D(G);return new c("Invalid "+K+" `"+X+"` of type "+("`"+Y+"` supplied to `"+F+"`, expected an array."))}for(var P=0;P<G.length;P++){var w=N(G,P,F,K,X+"["+P+"]",Jn);if(w instanceof Error)return w}return null}return l(T)}function p(){function N(T,z,W,F,K){var X=T[z];if(!e(X)){var G=D(X);return new c("Invalid "+F+" `"+K+"` of type "+("`"+G+"` supplied to `"+W+"`, expected a single ReactElement."))}return null}return l(N)}function g(){function N(T,z,W,F,K){var X=T[z];if(!dw.isValidElementType(X)){var G=D(X);return new c("Invalid "+F+" `"+K+"` of type "+("`"+G+"` supplied to `"+W+"`, expected a single ReactElement type."))}return null}return l(N)}function f(N){function T(z,W,F,K,X){if(!(z[W]instanceof N)){var G=N.name||a,Y=A(z[W]);return new c("Invalid "+K+" `"+X+"` of type "+("`"+Y+"` supplied to `"+F+"`, expected ")+("instance of `"+G+"`."))}return null}return l(T)}function b(N){if(!Array.isArray(N))return process.env.NODE_ENV!=="production"&&(arguments.length>1?jn("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])."):jn("Invalid argument supplied to oneOf, expected an array.")),Ws;function T(z,W,F,K,X){for(var G=z[W],Y=0;Y<N.length;Y++)if(s(G,N[Y]))return null;var P=JSON.stringify(N,function(B,M){var h=L(M);return h==="symbol"?String(M):M});return new c("Invalid "+K+" `"+X+"` of value `"+String(G)+"` "+("supplied to `"+F+"`, expected one of "+P+"."))}return l(T)}function x(N){function T(z,W,F,K,X){if(typeof N!="function")return new c("Property `"+X+"` of component `"+F+"` has invalid PropType notation inside objectOf.");var G=z[W],Y=D(G);if(Y!=="object")return new c("Invalid "+K+" `"+X+"` of type "+("`"+Y+"` supplied to `"+F+"`, expected an object."));for(var P in G)if(hu(G,P)){var w=N(G,P,F,K,X+"."+P,Jn);if(w instanceof Error)return w}return null}return l(T)}function v(N){if(!Array.isArray(N))return process.env.NODE_ENV!=="production"&&jn("Invalid argument supplied to oneOfType, expected an instance of array."),Ws;for(var T=0;T<N.length;T++){var z=N[T];if(typeof z!="function")return jn("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+V(z)+" at index "+T+"."),Ws}function W(F,K,X,G,Y){for(var P=[],w=0;w<N.length;w++){var B=N[w],M=B(F,K,X,G,Y,Jn);if(M==null)return null;M.data&&hu(M.data,"expectedType")&&P.push(M.data.expectedType);}var h=P.length>0?", expected one of type ["+P.join(", ")+"]":"";return new c("Invalid "+G+" `"+Y+"` supplied to "+("`"+X+"`"+h+"."))}return l(W)}function C(){function N(T,z,W,F,K){return R(T[z])?null:new c("Invalid "+F+" `"+K+"` supplied to "+("`"+W+"`, expected a ReactNode."))}return l(N)}function y(N,T,z,W,F){return new c((N||"React class")+": "+T+" type `"+z+"."+W+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+F+"`.")}function S(N){function T(z,W,F,K,X){var G=z[W],Y=D(G);if(Y!=="object")return new c("Invalid "+K+" `"+X+"` of type `"+Y+"` "+("supplied to `"+F+"`, expected `object`."));for(var P in N){var w=N[P];if(typeof w!="function")return y(F,K,X,P,L(w));var B=w(G,P,F,K,X+"."+P,Jn);if(B)return B}return null}return l(T)}function k(N){function T(z,W,F,K,X){var G=z[W],Y=D(G);if(Y!=="object")return new c("Invalid "+K+" `"+X+"` of type `"+Y+"` "+("supplied to `"+F+"`, expected `object`."));var P=uw({},z[W],N);for(var w in P){var B=N[w];if(hu(N,w)&&typeof B!="function")return y(F,K,X,w,L(B));if(!B)return new c("Invalid "+K+" `"+X+"` key `"+w+"` supplied to `"+F+"`.\nBad object: "+JSON.stringify(z[W],null," ")+`
|
|
2
|
-
Valid keys: `+JSON.stringify(Object.keys(
|
|
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=mc(t.filename||"chart","svg",t.timestamp!==!1);fileSaver.saveAs(s,c);}catch(r){throw new Error(`SVG export failed: ${r instanceof Error?r.message:"Unknown error"}`)}}async function Mv(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);Hp(n,i),i.setAttribute("width",String(a.width)),i.setAttribute("height",String(a.height)),i.removeAttribute("transform");let s=i.getElementsByTagName("text");Array.from(s).forEach(m=>{m.style.fontFamily||(m.style.fontFamily="system-ui, -apple-system, sans-serif"),m.style.fontSize||(m.style.fontSize="12px");});let c=document.createElementNS("http://www.w3.org/2000/svg","rect");c.setAttribute("width",String(a.width)),c.setAttribute("height",String(a.height)),c.setAttribute("fill","white"),i.insertBefore(c,i.firstChild);let u=new XMLSerializer().serializeToString(i);u.includes("xmlns=")||(u=u.replace("<svg",'<svg xmlns="http://www.w3.org/2000/svg"'));let d=new Blob([u],{type:"image/svg+xml;charset=utf-8"});return o=URL.createObjectURL(d),new Promise((m,p)=>{let g=new Image,f=setTimeout(()=>{o&&URL.revokeObjectURL(o),p(new Error("Image loading timeout"));},1e4);g.onload=()=>{clearTimeout(f);try{let b=document.createElement("canvas");b.width=a.width*r,b.height=a.height*r;let x=b.getContext("2d");if(!x)throw new Error("Canvas context not available");x.imageSmoothingEnabled=!0,x.imageSmoothingQuality="high",x.scale(r,r),x.fillStyle="white",x.fillRect(0,0,a.width,a.height),x.drawImage(g,0,0,a.width,a.height),b.toBlob(v=>{if(v){let C=mc(t.filename||"chart","png",t.timestamp!==!1);fileSaver.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);}},g.onerror=()=>{clearTimeout(f),o&&URL.revokeObjectURL(o),p(new Error("Failed to load SVG as image"));},g.src=o;})}catch(n){throw o&&URL.revokeObjectURL(o),new Error(`PNG export failed: ${n instanceof Error?n.message:"Unknown error"}`)}}function Ev(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 Lv(e){return {csv:"CSV Spreadsheet",svg:"SVG Vector Image",png:"PNG Image"}[e]||"Unknown Format"}function Wp({datasets:e,metadata:t,svgRef:r}){return Ee.useCallback(async o=>{try{await fc(o,e,t,r);}catch(n){throw console.error("Chart export failed:",n),n}},[e,t,r])}function ha(e,t){return t.split(".").reduce((r,o)=>r?.[o],e)}function Fv(e,t){let r=ha(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 Gp(e,t){if(t.conditions.length===0)return true;let r=t.conditions.map(o=>"conditions"in o?Gp(e,o):Fv(e,o));return t.logic==="AND"?r.every(Boolean):r.some(Boolean)}function Bv(e,t){return !t||t.conditions.length===0?e:e.filter(r=>Gp(r,t))}function Vv(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 zv(e,t){return t?[...e].sort((r,o)=>{let n=ha(r,t.field),a=ha(o,t.field);return Vv(n,a,t.direction)}):e}function Ov(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 Iv__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=ha(s,c);return l==null?false:String(l).toLowerCase().includes(i)}))}function Hv(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=ha(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 gc({data:e,filters:t,sort:r,search:o,facetConfigs:n=[]}){let a=Ov(e,o||null);a=Bv(a,t||null);let i=Hv(a,n);return a=zv(a,r||null),{data:a,facetCounts:i,resultCount:a.length}}function Mi({data:e,filters:t,sort:r,search:o,facetConfigs:n=[]}){return Ee.useMemo(()=>gc({data:e,filters:t,sort:r,search:o,facetConfigs:n}),[e,t,r,o,n])}function lo(e,t=300){let[r,o]=Ee.useState(e);return Ee.useEffect(()=>{let n=setTimeout(()=>o(e),t);return ()=>clearTimeout(n)},[e,t]),r}function Ei({filters:e,sort:t,search:r,onStateChange:o,searchDebounce:n=300}){let a=lo(r,n),i=Ee.useRef(true);Ee.useEffect(()=>{if(i.current){i.current=false;return}o({filters:e,sort:t,search:a});},[e,t,a,o]);}function Up(e){return e.mode==="client"?Mi({data:e.data,filters:e.filters,sort:e.sort,search:e.search,facetConfigs:e.facetConfigs}):(Ei({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 Li(e,t=300){let[r,o]=Ee.useState(false);return Ee.useEffect(()=>{if(e){let n=setTimeout(()=>{o(true);},t);return ()=>clearTimeout(n)}o(false);},[e,t]),r}function En(){let[e,t]=Ee.useState({width:0,height:0}),r=Ee.useRef(null),o=Ee.useRef(void 0),n=Ee.useCallback(a=>{if(r.current&&(r.current.disconnect(),r.current=null),o.current&&(cancelAnimationFrame(o.current),o.current=void 0),!a){t({width:0,height:0});return}let i=a.getBoundingClientRect();t({width:i.width,height:i.height}),r.current=new ResizeObserver(s=>{o.current&&cancelAnimationFrame(o.current),o.current=requestAnimationFrame(c=>{for(let l of s){let{width:u,height:d}=l.contentRect;t(m=>m.width!==u||m.height!==d?{width:u,height:d}:m);}});}),r.current.observe(a);},[]);return Ee.useEffect(()=>()=>{o.current&&cancelAnimationFrame(o.current),r.current&&r.current.disconnect();},[]),{ref:n,width:e.width,height:e.height}}function co({items:e,onLoadMore:t,hasMore:r,isLoading:o=false,loadingState:n,enableVirtualization:a,estimatedItemSize:i=50,overscan:s=5,scrollElement:c,loadMoreThreshold:l=100}){let u=Ee.useRef(null),d=Ee.useRef(null),m=Ee.useRef(false),[p,g]=Ee.useState(0);Ee.useEffect(()=>{d.current&&(c||u.current)&&g(E=>E+1);},[c,e.length]);let f=n||(o?e.length===0?"loading":"loading-more":"idle"),b=f==="loading",x=f==="loading-more",v=a!==void 0?a:e.length>=100,C=reactVirtual.useVirtualizer({count:e.length,getScrollElement:()=>c||u.current,estimateSize:()=>i,overscan:s}),y=v?C:null,S=v?C.getVirtualItems():[];Ee.useEffect(()=>{let E=d.current,D=c||u.current;if(!E||!D||!r||o||!t)return;let L=new IntersectionObserver(V=>{let[A]=V;A?.isIntersecting&&!m.current&&r&&t&&(m.current=true,Promise.resolve(t()).finally(()=>{m.current=false;}));},{root:D,rootMargin:`0px 0px ${l}px 0px`,threshold:0});return L.observe(E),()=>{L.disconnect();}},[r,o,t,c,l,p]);let k=Ee.useCallback((E,D)=>{y?y.scrollToIndex(E,D):u.current&&u.current.children[E]?.scrollIntoView({behavior:"smooth",block:D?.align||"start"});},[y]),R=Ee.useCallback(()=>{y?y.scrollToIndex(0,{align:"start"}):u.current&&u.current.scrollTo({top:0,behavior:"smooth"});},[y]);return {virtualizer:y,virtualItems:S,computedLoadingState:f,isInitialLoad:b,isLoadingMore:x,scrollRef:u,loadMoreRef:d,scrollToIndex:k,scrollToTop:R}}function Ai(e,t){let[r,o]=Ee.useState(()=>{if(typeof window>"u")return t;try{let i=window.localStorage.getItem(e);return i?JSON.parse(i):t}catch(i){return console.error(`Error reading localStorage key "${e}":`,i),t}});Ee.useEffect(()=>{if(!(typeof window>"u"))try{window.localStorage.setItem(e,JSON.stringify(r));}catch(i){console.error(`Error writing to localStorage key "${e}":`,i);}},[e,r]);let n=Ee.useCallback(i=>{try{o(s=>i instanceof Function?i(s):i);}catch(s){console.error(`Error setting value for localStorage key "${e}":`,s);}},[e]),a=Ee.useCallback(()=>{try{typeof window<"u"&&window.localStorage.removeItem(e),o(t);}catch(i){console.error(`Error removing localStorage key "${e}":`,i);}},[e,t]);return [r,n,a]}function o0(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 n0(e,t){return t.accessor?typeof t.accessor=="function"?t.accessor(e):e[t.accessor]:null}function qp(e,t){let r=n0(t,e);return e.exportValue?e.exportValue(r,t)??"":r==null?"":r instanceof Date?r.toISOString():typeof r=="object"?JSON.stringify(r):r}function xc(e){return e.filter(t=>t.exportable!==false)}function Zp(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 hc(e){let{columns:t,data:r,metadata:o={}}=e;try{let n=xc(t);if(n.length===0)throw new Error("No exportable columns found");Zp(n);let a=r.map(l=>{let u={};for(let d of n){let m=d.exportLabel||d.label;u[m]=qp(d,l);}return u}),i=Pv__default.default.unparse(a,{header:!0,skipEmptyLines:!0}),s=new Blob([i],{type:"text/csv;charset=utf-8;"}),c=o0(o.filename||"table-data","csv",o.timestamp!==!1);fileSaver.saveAs(s,c);}catch(n){throw new Error(`CSV export failed: ${n instanceof Error?n.message:"Unknown error"}`)}}function a0(e){let{columns:t,data:r}=e,o=xc(t);return Zp(o),r.map(n=>{let a={};for(let i of o){let s=i.exportLabel||i.label;a[s]=qp(i,n);}return a})}function i0(e){return xc(e).map(t=>t.exportLabel||t.label)}function Xp({columns:e,data:t,metadata:r}){let n=e.filter(i=>i.exportable!==false).length>0&&t.length>0;return {exportCSV:Ee.useCallback(async()=>{try{await hc({columns:e,data:t,metadata:r});}catch(i){throw console.error("Table export failed:",i),i}},[e,t,r]),canExport:n}}function Ii(e=true){let[t,r]=Ee.useState(null);return Ee.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 yc=class{constructor(){xa(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();}},re=new yc;var uo=(e,t="Yes",r="No")=>e==null?null:e?t:r,d0=e=>uo(e,"Enabled","Disabled"),u0=e=>uo(e,"On","Off"),p0=e=>uo(e,"Active","Inactive"),m0=e=>uo(e,"True","False"),f0=e=>uo(e,"\u2713","\u2717"),po=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},$p=(e,t)=>{if(t.hideWhenNull&&e==null)return null;if(e==null)return t.nullText??null;let r=po(e);return r===null?t.nullText??null:uo(r,t.trueText??"Yes",t.falseText??"No")};re.register("boolean",(e,t,r)=>{let o=po(e);return o!==null?uo(o,typeof t=="string"?t:"Yes",typeof r=="string"?r:"No"):null});re.register("yesNo",e=>{let t=po(e);return t!==null?uo(t,"Yes","No"):null});re.register("enabledDisabled",e=>{let t=po(e);return t!==null?d0(t):null});re.register("onOff",e=>{let t=po(e);return t!==null?u0(t):null});re.register("activeInactive",e=>{let t=po(e);return t!==null?p0(t):null});re.register("trueFalse",e=>{let t=po(e);return t!==null?m0(t):null});re.register("checkmark",e=>{let t=po(e);return t!==null?f0(t):null});var le=e=>e==null,Qp=(e,t=0)=>le(e)?null:`${e.toFixed(t)}%`,_p=(e,t=0)=>Qp(e,t)??"\u2014",g0=e=>le(e)?null:Math.round(e).toString(),b0=(e,t=1)=>le(e)?null:e.toFixed(t),x0=(e,t,r=true)=>{if(le(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)},h0=(e,t="short")=>le(e)?null:new Intl.NumberFormat("en-US",{notation:"compact",compactDisplay:t}).format(e),y0=(e,t=2)=>le(e)?null:e.toExponential(t),em=(e,t="USD",r)=>{if(le(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)},tm=(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)},rm=(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:em(r,t.currency,t)};re.register("percentage",(e,t)=>typeof e=="number"?Qp(e,typeof t=="number"?t:0):null);re.register("integer",e=>typeof e=="number"?g0(e):null);re.register("float",(e,t)=>typeof e=="number"?b0(e,typeof t=="number"?t:1):null);re.register("number",(e,t,r)=>{let o=typeof e=="string"?parseFloat(e):Number(e);return isNaN(o)?null:x0(o,typeof t=="number"?t:void 0,typeof r=="boolean"?r:true)});re.register("compact",(e,t)=>typeof e=="number"?h0(e,t==="long"?"long":"short"):null);re.register("scientific",(e,t)=>typeof e=="number"?y0(e,typeof t=="number"?t:2):null);re.register("currency",(e,t,r)=>typeof e=="number"?em(e,typeof t=="string"?t:"USD",typeof r=="object"&&r!==null?r:{}):null);function bD(e,t=1){return le(e)?null:Math.abs(e)>=1e3?`${(e/1e3).toFixed(t)} MWh`:`${e.toFixed(t)} kWh`}function xD(e,t=1){return le(e)?null:Math.abs(e)>=1e3?`${(e/1e3).toFixed(t)} MW`:`${e.toFixed(t)} kW`}function kr({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=Oo(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=Oo(e,{type:"date"});return jsxRuntime.jsx("time",{dateTime:e.toISOString(),title:e.toISOString(),children:n})}if(typeof e=="number")return Oo(e,{type:"number"});if(typeof e=="boolean")return Oo(e,{type:"boolean"})}return String(e)}function CD(e,t,r){return Ee__namespace.default.useCallback(o=>kr({value:o,formatter:e,emptyClassName:t,emptyText:r}),[e,t,r])}var vc=(e,t=0)=>{if(le(e))return null;let r=e*1e3;return t===0?`${Math.round(r)} mA`:`${r.toFixed(t)} mA`},Bi=(e,t=1)=>le(e)?null:`${e.toFixed(t)} A`,Cc=(e,t=2)=>le(e)?null:`${(e/1e3).toFixed(t)} kA`,C0=(e,t)=>{if(le(e))return null;let r=Math.abs(e);return r>=1e3?Cc(e,t??2):r<1?vc(e,t??0):Bi(e,t??1)},Sc=(e,t)=>{if(t.hideWhenNull&&e==null||t.hideWhenZero&&e===0)return null;if(e==null)return t.nullText??null;let r=typeof e=="string"?parseFloat(e):Number(e);if(isNaN(r))return t.nullText??null;let o=t.decimals;if(t.unit)switch(t.unit){case "kA":return Cc(r,o??2);case "mA":return vc(r,o??0);case "A":return Bi(r,o??1)}return t.autoScale!==false?C0(r,o):Bi(r,o??1)};re.register("current",Sc);var kD=vc,PD=Bi,RD=Cc;var Ho=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},S0=(e,t=false,r)=>{if(!e)return null;let o=Ho(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)},Vi=e=>{if(!e)return null;let t=Ho(e);return t?t.toRelative():"Invalid Date"},w0=(e,t)=>{if(!e)return null;let r=Ho(e);return r?(t?r.setZone(t):r).toLocaleString(luxon.DateTime.DATETIME_MED_WITH_WEEKDAY):"Invalid Date"},N0=e=>{if(!e)return null;let t=Ho(e);return t?t.toISO():null},T0=(e,t,r)=>{if(!e)return null;let o=Ho(e);return o?(r?o.setZone(r):o).toFormat(t):"Invalid Date"},LD=e=>{let t=Ho(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},om=(e,t)=>{if(t.hideWhenNull&&e==null)return null;if(e==null)return t.nullText??null;let r=Ho(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)};re.register("date",(e,t,r)=>S0(e,typeof t=="boolean"?t:false,typeof r=="string"?r:void 0));re.register("relativeTime",e=>Vi(e));re.register("fullDateTime",(e,t)=>w0(e,typeof t=="string"?t:void 0));re.register("isoString",e=>N0(e));re.register("customDateFormat",(e,t,r)=>typeof t=="string"?T0(e,t,typeof r=="string"?r:void 0):null);var wc=(e,t=1)=>le(e)?null:`${e.toFixed(t)} m`,k0=(e,t=1)=>le(e)?null:`${(e*100).toFixed(t)} cm`,P0=(e,t=0)=>le(e)?null:`${(e*1e3).toFixed(t)} mm`,Nc=(e,t=1)=>le(e)?null:`${(e/1e3).toFixed(t)} km`,Tc=(e,t=0)=>le(e)?null:`${e.toFixed(t)} ft`,R0=(e,t=1)=>le(e)?null:`${e.toFixed(t)} in`,kc=(e,t=1)=>le(e)?null:`${e.toFixed(t)} mi`,Pc=(e,t=0)=>le(e)?null:`${e.toFixed(t)} yd`,BD=(e,t=1)=>le(e)?null:`${e.toFixed(t)} nm`,VD=e=>e*3.28084,zD=e=>e/3.28084,OD=e=>e*1.60934,HD=e=>e/1.60934,WD=e=>e/5280,nm=e=>e*5280,GD=e=>e/1609.34,UD=e=>e*1609.34,YD=e=>e*.9144,KD=e=>e/.9144,JD=e=>e*2.54,jD=e=>e/2.54,am=(e,t=false,r=1)=>{if(le(e))return null;let o=Math.abs(e);return t?o>=1e3?Nc(e,r):o<.01?P0(e,0):o<1?k0(e,r):wc(e,r):o<.01?Tc(nm(e),0):o<.1?Pc(nm(e)/3,0):kc(e,r)},im=(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 am(r,n,o)}switch(t.unit){case "km":return Nc(r,o);case "ft":return Tc(r,o);case "mi":return kc(r,o);case "yd":return Pc(r,o);default:return wc(r,o)}};re.register("miles",(e,t)=>typeof e=="number"?kc(e,typeof t=="number"?t:1):null);re.register("kilometers",(e,t)=>typeof e=="number"?Nc(e,typeof t=="number"?t:1):null);re.register("meters",(e,t)=>typeof e=="number"?wc(e,typeof t=="number"?t:1):null);re.register("feet",(e,t)=>typeof e=="number"?Tc(e,typeof t=="number"?t:0):null);re.register("yards",(e,t)=>typeof e=="number"?Pc(e,typeof t=="number"?t:0):null);re.register("inches",(e,t)=>typeof e=="number"?R0(e,typeof t=="number"?t:1):null);re.register("autoScaleDistance",(e,t,r)=>typeof e=="number"?am(e,typeof t=="boolean"?t:false,typeof r=="number"?r:1):null);var Rc=(e,t=1)=>le(e)?null:`${e.toFixed(t)} Wh`,Dc=(e,t=1)=>le(e)?null:`${(e/1e3).toFixed(t)} kWh`,sm=(e,t=1)=>le(e)?null:`${(e/1e6).toFixed(t)} MWh`,lm=(e,t=1)=>le(e)?null:`${(e/1e9).toFixed(t)} GWh`,cm=(e,t=1)=>{if(le(e))return null;let r=Math.abs(e);return r>=1e9?lm(e,t):r>=1e6?sm(e,t):r>=1e3?Dc(e,t):Rc(e,t)},D0={Wh:1,kWh:1e3,MWh:1e6,GWh:1e9},Mc=(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*D0[t.sourceUnit]:r,n=t.decimals??1;if(t.unit)switch(t.unit){case "GWh":return lm(o,n);case "MWh":return sm(o,n);case "kWh":return Dc(o,n);case "Wh":return Rc(o,n)}return t.autoScale!==false?cm(o,n):Rc(o,n)};re.register("kWh",e=>typeof e=="number"?Dc(e):null);re.register("autoScaleEnergy",(e,t)=>typeof e=="number"?cm(e,typeof t=="number"?t:1):null);re.register("energy",Mc);var zi=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},Ec=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():zi(e)},Ln=e=>e?e.startsWith("+")||e.length>11?Ec(e):zi(e):null,dm=(e,t)=>{if(t.hideWhenNull&&e==null)return null;if(e==null)return t.nullText??null;let r=String(e);if(t.international)return Ec(r);switch(t.country){case "US":case "CA":return zi(r);default:return Ln(r)}};re.register("phoneNumber",e=>typeof e=="string"?Ln(e):null);re.register("usPhone",e=>typeof e=="string"?zi(e):null);re.register("internationalPhone",e=>typeof e=="string"?Ec(e):null);var Oi=(e,t=0)=>le(e)?null:t===0?`${Math.round(e)} W`:`${e.toFixed(t)} W`,Lc=(e,t=1)=>le(e)?null:`${(e/1e3).toFixed(t)} kW`,Ac=(e,t=1)=>le(e)?null:`${(e/1e6).toFixed(t)} MW`,Ic=(e,t=2)=>le(e)?null:`${(e/1e9).toFixed(t)} GW`,M0=(e,t)=>{if(le(e))return null;let r=Math.abs(e);return r>=1e9?Ic(e,t??2):r>=1e6?Ac(e,t??1):r>=1e3?Lc(e,t??1):Oi(e,t??0)},Fc=(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 Ic(r,o??2);case "MW":return Ac(r,o??1);case "kW":return Lc(r,o??1);case "W":return Oi(r,o??0)}return t.autoScale!==false?M0(r,o):Oi(r,o??0)};re.register("power",Fc);var rM=Oi,oM=Lc,nM=Ac,aM=Ic;var Bc=(e,t=1)=>le(e)?null:`${(e*1e3).toFixed(t)} m\u03A9`,Hi=(e,t=1)=>le(e)?null:`${e.toFixed(t)} \u03A9`,um=(e,t=1)=>le(e)?null:`${(e/1e3).toFixed(t)} k\u03A9`,pm=(e,t=2)=>le(e)?null:`${(e/1e6).toFixed(t)} M\u03A9`,E0=(e,t)=>{if(le(e))return null;let r=Math.abs(e);return r>=1e6?pm(e,t??2):r>=1e3?um(e,t??1):r<1?Bc(e,t??1):Hi(e,t??1)},Vc=(e,t)=>{if(t.hideWhenNull&&e==null||t.hideWhenZero&&e===0)return null;if(e==null)return t.nullText??null;let r=typeof e=="string"?parseFloat(e):Number(e);if(isNaN(r))return t.nullText??null;let o=t.decimals;if(t.unit)switch(t.unit){case "M\u03A9":return pm(r,o??2);case "k\u03A9":return um(r,o??1);case "m\u03A9":return Bc(r,o??1);case "\u03A9":return Hi(r,o??1)}return t.autoScale!==false?E0(r,o):Hi(r,o??1)};re.register("resistance",Vc);re.register("ohms",e=>typeof e=="number"?Hi(e):null);re.register("milliohms",e=>typeof e=="number"?Bc(e):null);var mm=e=>{switch(e){case "FAHRENHEIT":return "F";case "CELSIUS":return "C";case "KELVIN":return "K";default:return "F"}},fm=(e,t=0)=>le(e)?null:`${e.toFixed(t)}\xB0F`,gm=(e,t=true,r=0)=>le(e)?null:`${(t?(e-32)*(5/9):e).toFixed(r)}\xB0C`,bm=(e,t=true,r=0)=>le(e)?null:`${(t?(e-32)*(5/9)+273.15:e+273.15).toFixed(r)}K`,L0=e=>e*9/5+32,A0=e=>(e-32)*(5/9),pM=e=>e+273.15,I0=e=>e-273.15,mM=e=>A0(e)+273.15,fM=e=>L0(I0(e)),xm=(e,t="F",r=0)=>{if(le(e))return null;switch(typeof t=="string"&&t.length>1?mm(t):t){case "C":return gm(e,true,r);case "K":return bm(e,true,r);default:return fm(e,r)}},hm=(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?mm(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 xm(r,n,o)};re.register("temperature",(e,t,r)=>typeof e=="number"?xm(e,typeof t=="string"?t:"F",typeof r=="number"?r:0):null);re.register("fahrenheit",(e,t)=>typeof e=="number"?fm(e,typeof t=="number"?t:0):null);re.register("celsius",(e,t,r)=>typeof e=="number"?gm(e,typeof t=="boolean"?t:true,typeof r=="number"?r:0):null);re.register("kelvin",(e,t,r)=>typeof e=="number"?bm(e,typeof t=="boolean"?t:true,typeof r=="number"?r:0):null);var F0=(e,t)=>!!(t.hideWhenNull&&e==null||t.hideWhenZero&&e===0),ym=e=>e?.toUpperCase()??"",vm=e=>e?.toLowerCase()??"",Cm=e=>e?e.charAt(0).toUpperCase()+e.slice(1).toLowerCase():"",Sm=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(" ")},wm=e=>e?e.split(/\s+/).map(t=>t.charAt(0).toUpperCase()+t.slice(1).toLowerCase()).join(" "):"",Nm=e=>e?e.charAt(0).toUpperCase()+e.slice(1):"",Tm=e=>e?e.replace(/([A-Z])/g," $1").replace(/^./,t=>t.toUpperCase()).trim():"",km=e=>e?e.toLowerCase().split("_").map(t=>Nm(t)).join(" "):"",B0=e=>e?e.includes("_")?km(e):e.toUpperCase()===e?Nm(e.toLowerCase()):Tm(e):"",An=(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)}`},Wi=(e,t=8)=>e?e.length<=t?e:`...${e.slice(-t)}`:"",Gi=(e,t=16,r="...")=>e?e.length<=t?e:e.slice(0,t)+r:"",V0=e=>{if(!e)return "";let t=e.toString(),r=t.slice(-4),o=t.length-4;return o>0?"*".repeat(o)+r:t},Pm=(e,t)=>{if(F0(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=ym(r);break;case "lowercase":r=vm(r);break;case "capitalize":r=wm(r);break;case "titleCase":r=Sm(r);break;case "sentenceCase":r=Cm(r);break}}),t.truncate){let{length:o,position:n,ellipsis:a="..."}=t.truncate;switch(n){case "start":r=Wi(r,o);break;case "middle":r=An(r,o);break;case "end":r=Gi(r,o,a);break}}return r};re.register("uppercase",e=>ym(String(e)));re.register("lowercase",e=>vm(String(e)));re.register("sentenceCase",e=>Cm(String(e)));re.register("titleCase",e=>Sm(String(e)));re.register("capitalize",e=>wm(String(e)));re.register("camelCaseToWords",e=>Tm(String(e)));re.register("snakeCaseToWords",e=>km(String(e)));re.register("enumToSentenceCase",e=>B0(String(e)));re.register("truncateMiddle",(e,t)=>An(String(e),typeof t=="number"?t:16));re.register("truncateStart",(e,t)=>Wi(String(e),typeof t=="number"?t:8));re.register("truncateEnd",(e,t,r)=>Gi(String(e),typeof t=="number"?t:16,typeof r=="string"?r:"..."));re.register("secret",e=>V0(String(e)));var zc=(e,t=0)=>{if(le(e))return null;let r=e*1e3;return t===0?`${Math.round(r)} mV`:`${r.toFixed(t)} mV`},Ui=(e,t=0)=>le(e)?null:t===0?`${Math.round(e)} V`:`${e.toFixed(t)} V`,Oc=(e,t=1)=>le(e)?null:`${(e/1e3).toFixed(t)} kV`,z0=(e,t)=>{if(le(e))return null;let r=Math.abs(e);return r>=1e3?Oc(e,t??1):r<1?zc(e,t??0):Ui(e,t??0)},Hc=(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 Oc(r,o??1);case "mV":return zc(r,o??0);case "V":return Ui(r,o??0)}return t.autoScale!==false?z0(r,o):Ui(r,o??0)};re.register("voltage",Hc);var vM=zc,CM=Ui,SM=Oc;var O0=(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:_p(r,t.decimals??0)},Oo=(e,t)=>{switch(t.type){case "text":return Pm(e,t);case "number":return tm(e,t);case "percentage":return O0(e,t);case "currency":return rm(e,t);case "date":return om(e,t);case "boolean":return $p(e,t);case "energy":return Mc(e,t);case "power":return Fc(e,t);case "voltage":return Hc(e,t);case "current":return Sc(e,t);case "resistance":return Vc(e,t);case "temperature":return hm(e,t);case "distance":return im(e,t);case "phone":return dm(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}},BM=(e,t)=>({type:e,...t});function Dt(...e){return e.filter(Boolean).join(" ")}var Pr={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 et(e,...t){return Dt(Pr[e],...t)}var In={xs:16,sm:20,md:24,lg:32,xl:40,"2xl":48},I=Ee.memo(({name:e,size:t="md",color:r,weight:o="regular",className:n,ariaLabel:a,...i})=>{let s=H0__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 In?In[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}`})});I.displayName="Icon";var Mm=Ee.memo(({variant:e="subtle",shape:t="square",containerSize:r,containerClassName:o,size:n="md",className:a,name:i,color:s,weight:c,ariaLabel:l,ref:u,...d})=>{let m=typeof n=="string"&&n in In?In[n]:n,p=r?typeof r=="string"&&r in In?In[r]:r:m*1.75,g=tailwindMerge.twMerge("inline-flex items-center justify-center flex-shrink-0",t==="circle"?"rounded-full":"rounded-lg",e==="subtle"&&"bg-background-muted",e==="solid"&&"bg-action-brand text-[color:var(--color-action-brand-text)]",e==="outline"&&"border-2 border-current",o);return jsxRuntime.jsx("div",{className:g,style:{width:p,height:p},children:jsxRuntime.jsx(I,{...d,name:i,size:n,color:s,weight:c,className:a,ariaLabel:l})})});Mm.displayName="IconWithContainer";function Ut({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 $0({isEntering:e,isExiting:t,className:r="",disableGroup:o=false}){let n=[!o&&"group","bg-background-surface","forced-colors:bg-[Canvas]","shadow-lg","rounded-[var(--control-border-radius)]","bg-clip-padding","border","border-border-default","outline-none"].filter(Boolean).join(" "),a=e?["animate-in","fade-in","placement-bottom:slide-in-from-top-1","placement-top:slide-in-from-bottom-1","placement-left:slide-in-from-right-1","placement-right:slide-in-from-left-1","ease-out","duration-200"].join(" "):"",i=t?["animate-out","fade-out","placement-bottom:slide-out-to-top-1","placement-top:slide-out-to-bottom-1","placement-left:slide-out-to-right-1","placement-right:slide-out-to-left-1","ease-in","duration-150"].join(" "):"";return [n,a,i,r].filter(Boolean).join(" ")}function Ze({children:e,showArrow:t=false,withBackdrop:r=false,className:o,isDismissable:n=true,disableGroup:a=false,...i}){let c=reactAriaComponents.useSlottedContext(reactAriaComponents.PopoverContext)?.trigger==="SubmenuTrigger",l=t?12:8;l=c?l-6:l;let u=jsxRuntime.jsxs(reactAriaComponents.Popover,{offset:l,...i,className:reactAriaComponents.composeRenderProps(o,(d,m)=>$0({...m,className:d,disableGroup:a})),children:[t&&jsxRuntime.jsx(reactAriaComponents.OverlayArrow,{children:jsxRuntime.jsx("svg",{width:12,height:12,viewBox:"0 0 12 12",className:"block fill-background-surface stroke-border-default stroke-1 group-placement-left:-rotate-90 group-placement-right:rotate-90 group-placement-bottom:rotate-180 forced-colors:fill-[Canvas] forced-colors:stroke-[ButtonBorder]",children:jsxRuntime.jsx("path",{d:"M0 0 L6 6 L12 0"})})}),e]});return r?jsxRuntime.jsx(Ut,{isDismissable:n,children:jsxRuntime.jsx(reactAriaComponents.Modal,{className:"outline-none focus:outline-none focus-visible:outline-none ring-0 focus:ring-0 focus-visible:ring-0",isDismissable:n,children:u})}):u}var 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 Em(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 Lm(e){return e.replace(/[{}<>]/g,"")}function Am(e){return Object.entries(e).map(([t,r])=>`${Lm(t)}: ${Lm(r)};`).join(" ")}function Fm({variables:e,darkVariables:t,children:r}){let n=Ee.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?Em(e):null,c=i?Em(t):null,l=s?`[data-brand-scope="${n}"] { ${Am(s)} }`:"",u=c?`.theme-dark [data-brand-scope="${n}"] { ${Am(c)} }`:"",d=[l,u].filter(Boolean).join(`
|
|
4
|
-
`);return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("style",{dangerouslySetInnerHTML:{__html:d}}),jsxRuntime.jsx("div",{"data-brand-scope":n,children:r})]})}var va=new Map,ft=(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)}`),va.has(r))return va.get(r);try{let o=document.body||document.documentElement,a=getComputedStyle(o).getPropertyValue(r).trim();if(a)return va.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)"?(va.set(r,s),s):t}catch(o){return console.warn(`Failed to resolve color for ${e}:`,o),t}},Yi=()=>{va.clear();},Ca=()=>{let e=[];for(let t=1;t<=12;t++){let r=ft(`--color-viz-categorical-${t}`,"");r&&e.push(r);}return e.length===0?Bm():e},Bm=()=>["#5424db","#d92361","#e86a00","#5d89ff","#9a47e2","#f24cb8","#0ba286","#9c28af","#036e45","#52a119","#ff513d","#046691"],Uc=()=>ft("--color-viz-default","#444ae1"),rC=(e,t)=>{let r={},o=Ca();return e.forEach((n,a)=>{t&&t[n]?r[n]=t[n]:r[n]=o[a%o.length];}),r};var Vm=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},oC=e=>Vm(e)?ft("--color-text-primary","#333333"):ft("--color-text-inverse","#ffffff"),zm=(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()},Om=e=>{let t=Ca(),r={};return e.forEach((o,n)=>{r[o]=t[n%t.length];}),r};var Yc=(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)},Kc=e=>e.length===0?(console.warn("[Colors] Cannot calculate bounds from empty array"),{min:0,max:1}):{min:e[0],max:e[e.length-1]},Hm=(e,t)=>{if(typeof t=="number")return t;if(e.length===0)return console.warn("[Colors] Cannot calculate center from empty array, defaulting to 0"),0;if(t==="median"){let r=Math.floor(e.length/2);return e.length%2===0?(e[r-1]+e[r])/2:e[r]}return e.reduce((r,o)=>r+o,0)/e.length},Jc=(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=ft(i);n.push(s);}return n},jc=(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=ft(i);n.push(s);}return n},Sa=(e,t,r,o="viridis")=>{let n=Jc(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]},wa=(e,t,r,o,n="redYellowBlue")=>{let a=jc(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 qc=Ee.createContext({mode:"system",colorMode:"light",isDarkTheme:false,toggleTheme:()=>{}}),Mt=()=>Ee.useContext(qc);function lC(){return typeof window>"u"?"light":window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function Um(){if(typeof window>"u")return "system";let e=localStorage.getItem("colorModePreference");return e==="light"||e==="dark"||e==="system"?e:"system"}function Ym(e){return e==="system"?lC():e}var Jm=({children:e})=>{let[t,r]=Ee.useState(Um),[o,n]=Ee.useState(()=>Ym(Um())),a=o==="dark",i=Ee.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")),Yi();},[]);Ee.useEffect(()=>{Yi();let c=Ym(t);if(n(c),i(c),t==="system"){let l=window.matchMedia("(prefers-color-scheme: dark)"),u=d=>{let m=d.matches?"dark":"light";n(m),i(m);};return l.addEventListener("change",u),()=>{l.removeEventListener("change",u);}}},[t,i]);let s=Ee.useCallback(()=>{r(c=>{let l=c==="system"?"light":c==="light"?"dark":"system";return localStorage.setItem("colorModePreference",l),l});},[]);return jsxRuntime.jsx(qc.Provider,{value:{mode:t,colorMode:o,isDarkTheme:a,toggleTheme:s},children:e})};function Fn(e){return e instanceof Date&&!Number.isNaN(e.getTime())}function Wo(e,t){return Fn(e)?t.format(e):""}function jm(e){if(!Fn(e.start)||!Fn(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=>Wo(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=>Wo(i,a)}function Zc(e,t){if(!Fn(e.start)||!Fn(e.end))return ()=>"";let r=(e.end.getTime()-e.start.getTime())/(1e3*60*60),o=t?.compact??false,n=l=>u=>Fn(u)?l(u):"";if(r<=24){if(o)return n(u=>{let d=u.getHours(),m=d>=12?"pm":"am";return `${d%12||12}${m}`});let l=new Intl.DateTimeFormat("en",{hour:"numeric",minute:"2-digit"});return u=>Wo(u,l)}if(r<=48){if(o)return n(u=>{let d=u.getMonth()+1,m=u.getDate(),p=u.getHours(),g=p>=12?"p":"a",f=p%12||12;return `${d}/${m} ${f}${g}`});let l=new Intl.DateTimeFormat("en",{month:"short",day:"numeric",hour:"numeric"});return u=>Wo(u,l)}if(r<=168){if(o)return n(u=>{let d=u.getDate();return `${u.toLocaleDateString("en",{weekday:"short"}).charAt(0)}${d}`});let l=new Intl.DateTimeFormat("en",{weekday:"short",day:"numeric"});return u=>Wo(u,l)}if(r<=720){if(o)return n(u=>{let d=u.getMonth()+1,m=u.getDate();return `${d}/${m}`});let l=new Intl.DateTimeFormat("en",{month:"short",day:"numeric"});return u=>Wo(u,l)}let a=e.start.getFullYear(),i=e.end.getFullYear(),s=a!==i;if(o)return n(l=>{let u=l.getMonth()+1,d=l.getDate(),m=s?`/${l.getFullYear().toString().slice(-2)}`:"";return `${u}/${d}${m}`});let c=new Intl.DateTimeFormat("en",{month:"short",day:"numeric",...s&&{year:"numeric"}});return l=>Wo(l,c)}function Oe(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 Ce(e,t){return reactAriaComponents.composeRenderProps(e,r=>tailwindMerge.twMerge(t,r))}var Le={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 mC="flex font-medium justify-center items-center gap-2 text-center transition rounded-[var(--control-border-radius)] whitespace-nowrap box-border",fC="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",gC={primary:fC,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-action-destructive text-[color:var(--color-action-destructive-text)] hover:bg-action-destructive-hover forced-colors:bg-[Mark] forced-colors:text-[MarkText] border-2 border-transparent",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"},Zm={full:"w-full",default:"w-fit"},bC="opacity-50 cursor-not-allowed pointer-events-none",xC="opacity-100 cursor-pointer",hC={"top-right":"-right-2 -top-2","top-left":"-left-2 -top-2","bottom-right":"-right-2 -bottom-2","bottom-left":"-left-2 -bottom-2"},yC={primary:"bg-action-primary text-[color:var(--color-action-primary-text)]",destructive:"bg-action-destructive text-[color:var(--color-action-destructive-text)] hover:bg-action-destructive-hover forced-colors:bg-[Mark] forced-colors:text-[MarkText] border-2 border-transparent"};function vC(e){return !e||e==="default"||e==="brand"?"primary":e}function CC(e){let{variant:t="primary",size:r="md",isDisabled:o,fullWidth:n=false,isLoading:a=false}=e,i=vC(t),s=i==="unstyled"?"":`${mC} ${gC[i]}`;i!=="unstyled"&&(s+=` ${Le[r].text} ${Le[r].height} ${Le[r].padding} ${Le[r].gap}`),o||a?s+=` ${bC}`:s+=` ${xC}`,n?s+=` ${Zm.full}`:s+=` ${Zm.default}`;let c=i==="primary"?"focus-visible:outline-action-primary":void 0;return [s,Oe(),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:u,badgeNumber:d,badgeVariant:m="primary",badgePosition:p="top-right",style:g,target:f,rel:b,...x}=e,v=t?jsxRuntime.jsx(I,{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(I,{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=(d??0)>0,k=tailwindMerge.twMerge(CC(e),u),R=l?{href:l,target:f,rel:b,...x}:{};if(l){let{onPress:D,onPressStart:L,onPressEnd:V,onPressChange:A,onPressUp:N,onAuxClick:T,onContextMenu:z,onDoubleClick:W,...F}=x;Object.assign(R,F);}let E=l?jsxRuntime.jsx(reactAriaComponents.Link,{...R,...o&&{"aria-busy":true},style:S?void 0:g,className:k,children:o?y:typeof r=="function"?(function(D){return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[s==="left"&&v,r(D),s==="right"&&v]})}):C}):jsxRuntime.jsx(reactAriaComponents.Button,{...x,...o&&{"aria-busy":true},style:S?void 0:g,className:k,children:o?y:typeof r=="function"?(function(D){return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[s==="left"&&v,r(D),s==="right"&&v]})}):C});return S?jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("relative flex",u),style:g,children:[E,jsxRuntime.jsx("span",{className:`absolute ${hC[p]} flex h-5 w-5 items-center justify-center rounded-full ${yC[m]} text-xs font-medium`,"aria-label":`${d} items`,children:d})]}):E}function $c({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($c,{action:r,defaultVariant:"destructive"})}),jsxRuntime.jsxs("div",{className:"flex items-center gap-3",children:[t&&jsxRuntime.jsx($c,{action:t,defaultVariant:"secondary"}),e&&jsxRuntime.jsx($c,{action:e,defaultVariant:"primary"})]})]})]})}var SC={heading:{sm:Pr.headingSm,md:Pr.headingMd,lg:Pr.headingLg,xl:Pr.headingXl},display:{sm:Pr.displaySm,md:Pr.displayMd,lg:Pr.displayLg,xl:Pr.displayXl}},wC={page:"h-16 leading-[62px]"};function Et({tag:e="h1",variant:t="heading",size:r="lg",height:o,className:n="",children:a}){let i=r==="xs"?"sm":r,s=SC[t][i],c=o?wC[o]:"";return jsxRuntime.jsx(e,{className:Dt(s,"text-text-primary",c,n),children:a})}var Ct=({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(I,{name:"CaretLeft","data-testid":"back-arrow"})}),i||jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[e&&jsxRuntime.jsx(Et,{size:"xs",children:e}),t&&!r&&jsxRuntime.jsx(Q,{variant:"icon",onPress:t,"aria-label":"Close dialog",children:jsxRuntime.jsx(I,{name:"X","data-testid":"close-button"})})]})]});var J=({width:e,height:t,variant:r="rect",animation:o="pulse",gradient:n=false,flex:a=false,stack:i,responsive:s,delay:c=0,adjustAnimationSpeedBasedOnWidth:l=false,ariaLabel:u,className:d,"data-testid":m})=>{let[p,g]=Ee.useState(c===0);if(Ee.useEffect(()=>{if(c>0){let S=setTimeout(()=>g(true),c);return ()=>clearTimeout(S)}},[c]),!p)return null;let f=n?"bg-gradient-to-r from-[var(--color-skeleton-base)] via-[var(--color-skeleton-highlight)] to-[var(--color-skeleton-base)]":"bg-[var(--color-skeleton-base)]",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,k])=>`${S}:w-[${k}]`).join(" "):"";return i?jsxRuntime.jsx("div",{className:"space-y-2","data-testid":m,children:i.map((S,k)=>jsxRuntime.jsx("div",{className:tailwindMerge.twMerge(f,x,v,C,y,d),style:{width:S,height:t}},k))}):jsxRuntime.jsx("div",{className:tailwindMerge.twMerge(f,x,v,C,y,d),style:{width:e,height:t},role:"presentation","aria-hidden":!u,"aria-label":u??void 0,"data-testid":m})},Qm=({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 DC={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"},MC="rounded-lg",_c={square:"aspect-square",video:"aspect-video",wide:"aspect-[2/1]",auto:""},EC={start:"justify-start",end:"justify-end",center:"justify-center",between:"justify-between"};function Ae({variant:e="outlined",className:t,children:r,isLoading:o=false,layout:n="default"}){return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("w-full overflow-hidden",DC[e],MC,n==="flex"&&"flex flex-col",t),"data-testid":"card",children:o?jsxRuntime.jsx(J,{width:"100%",height:"100%",className:"rounded-none"}):r})}function ed({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(Et,{tag:"h3",size:"sm",className:"text-text-primary",children:e}):e}),t&&jsxRuntime.jsx("div",{className:et("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",_c[r],o),children:jsxRuntime.jsx(J,{width:"100%",height:"100%"})}):n?jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("overflow-hidden",_c[r],o),children:n}):e?jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("overflow-hidden",_c[r],o),children:jsxRuntime.jsx("img",{src:e,alt:t||"",className:"w-full h-full object-cover",loading:"lazy"})}):null}function rd({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 od({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",EC[r],e),children:t}):null}Ae.Header=ed;Ae.Media=td;Ae.Content=rd;Ae.Footer=od;var mr=class extends Ee.Component{constructor(){super(...arguments);xa(this,"state",{hasError:false});xa(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(Ae,{children:[this.props.title&&jsxRuntime.jsx(Ae.Header,{title:this.props.title}),jsxRuntime.jsx(Ae.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 FC=.3,BC=.5;function Xe({children:e,title:t,headerContent:r,titleAlign:o="left",hideCloseIcon:n=false,hasBackArrow:a=false,onBack:i,isOpen:s,onClose:c,isDismissable:l=true,transparentOverlay:u=false,primaryAction:d,secondaryAction:m,footerContent:p,maxHeight:g="80vh",height:f,maxWidth:b="640px",contentPadding:x=true,showHandle:v=true,animationVariant:C="scale",className:y}){let[S,k]=Ee.useState(false),[R,E]=Ee.useState(0),[D,L]=Ee.useState(false),V=Ii(s),A=V?.height??null,N=V?.keyboardOffset??0,T=Ee.useRef(null),z=Ee.useRef(null),W=Ee.useRef(null),F=Ee.useRef({isDragging:false,startY:0,startTime:0,pointerId:null});Ee.useEffect(()=>{if(s){let w=setTimeout(()=>{k(true),setTimeout(()=>k(false),600);},400);return ()=>clearTimeout(w)}},[s]),Ee.useEffect(()=>{s||(E(0),L(false),F.current={isDragging:false,startY:0,startTime:0,pointerId:null});},[s]),Ee.useEffect(()=>{let w=z.current;if(!w||!s)return;let B=null,M=h=>{let O=h.target;O&&["INPUT","TEXTAREA","SELECT"].includes(O.tagName)&&(B&&clearTimeout(B),B=setTimeout(()=>{O.scrollIntoView({block:"nearest",behavior:"smooth"});},320));};return w.addEventListener("focusin",M),()=>{w.removeEventListener("focusin",M),B&&clearTimeout(B);}},[s]);let K=Ee.useCallback(w=>{l&&(w.pointerType!=="touch"&&w.pointerType!=="pen"||(W.current&&(clearTimeout(W.current),W.current=null),F.current={isDragging:true,startY:w.clientY,startTime:Date.now(),pointerId:w.pointerId},L(false),w.currentTarget.setPointerCapture(w.pointerId)));},[l]),X=Ee.useCallback(w=>{let{isDragging:B,startY:M,pointerId:h}=F.current;if(!B||w.pointerId!==h)return;let O=w.clientY-M;E(Math.max(0,O));},[]),G=Ee.useCallback(w=>{let{isDragging:B,startY:M,startTime:h,pointerId:O}=F.current;if(!B||w.pointerId!==O)return;let H=w.clientY-M,j=Date.now()-h,oe=H/j;F.current={isDragging:false,startY:0,startTime:0,pointerId:null};let Z=(T.current?.getBoundingClientRect().height??0)*FC;(H>Z||oe>BC&&H>50)&&l?(c?.(),E(0)):(L(true),E(0),W.current=setTimeout(()=>{L(false),W.current=null;},200));},[l,c]);if(!s)return null;let Y=t||r,P=d||m||p;return jsxRuntime.jsx(mr,{children:jsxRuntime.jsx(Ut,{isOpen:s,onOpenChange:w=>{w||c?.();},isDismissable:l,transparent:u,style:{paddingBottom:N>0?`${N}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:T,className:tailwindMerge.twMerge("w-full",D&&"transition-transform duration-200"),style:{transform:R>0?`translateY(${R}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,...f?{height:f}:{maxHeight:/\d/.test(g)?A!==null?`min(${g}, ${Math.max(A-8,0)}px, 100dvh)`:`min(${g}, 100dvh)`:g}},children:[v&&jsxRuntime.jsx("div",{className:"absolute top-0 left-0 right-0 h-8 z-10 flex justify-center items-start pt-2 touch-none cursor-grab active:cursor-grabbing",onPointerDown:K,onPointerMove:X,onPointerUp:G,onPointerCancel:G,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]")})}),Y&&(a?jsxRuntime.jsx(Ct,{title:t,headerContent:r,titleAlign:o,hideCloseIcon:n||!c,hasBackArrow:true,onBack:i??(()=>{}),onClose:c||(()=>{})}):jsxRuntime.jsx(Ct,{title:t,headerContent:r,titleAlign:o,hideCloseIcon:n||!c,onClose:c||(()=>{})})),jsxRuntime.jsx("div",{ref:z,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:d,secondaryAction:m,footerContent:p})]})})})})})}Xe.displayName="Tray";function zn({children:e,items:t,className:r,align:o="left",textAlign:n="left",size:a="md",onAction:i,header:s,footer:c,useMobileTray:l=true,popoverClassName:u}){let[d,m]=Ee.useState(false),{isMobile:p}=Pt();if(l&&p){let f=Ee__namespace.default.isValidElement(e)?Ee__namespace.default.cloneElement(e,{onPress:()=>m(true)}):e,v=(C=>{if(typeof C=="string")return C;if(Ee__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(k=>typeof k=="string")||""}return ""})(e)||"Actions";return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("div",{className:r,children:f}),jsxRuntime.jsx(Xe,{isOpen:d,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(I,{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(Ze,{className:tailwindMerge.twMerge("w-fit min-w-[180px] overflow-auto rounded-[var(--control-border-radius)] border border-border-default","bg-background-surface shadow-lg","animate-in fade-in zoom-in-97","duration-200 ease-out","data-[exiting]:animate-out data-[exiting]:fade-out data-[exiting]:zoom-out-97","data-[exiting]:duration-150 data-[exiting]:ease-in",o==="right"?"origin-top-right":"origin-top-left",u),placement:o==="right"?"bottom end":"bottom start",children:jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("flex min-w-[180px] flex-col gap-1",u),children:[s?jsxRuntime.jsx("div",{className:"px-3 pb-2 pt-3",children:s}):null,jsxRuntime.jsx(reactAriaComponents.Menu,{className:"!outline-none",children:t.map(f=>jsxRuntime.jsx(WC,{id:f.id,onAction:()=>{f.onAction?f.onAction():i?.(f);},textAlign:n,size:a,iconName:f.iconName,isDisabled:f.disabled,variant:f.variant,subtitle:f.subtitle,render:f.render,noPadding:f.noPadding,"data-testid":f.testId,children:f.name},f.id))}),c?jsxRuntime.jsx("div",{className:"px-3 pb-3 pt-2",children:c}):null]})})]})})}function WC({textAlign:e="left",iconName:t,size:r="md",isDisabled:o,children:n,variant:a="default",subtitle:i,render:s,noPadding:c,...l}){let u={sm:"px-3 py-2 text-sm",md:i?"px-4 py-2.5 text-base":"px-4 py-2 text-base"},d="text-text-primary hover:bg-background-hover data-[focused]:bg-background-hover data-[focus-visible]:ring-2 data-[focus-visible]:ring-action-primary data-[focus-visible]:ring-inset",m={primary:d,default:d,destructive:"text-feedback-error-text hover:bg-feedback-error-background data-[focused]:bg-feedback-error-background data-[focus-visible]:ring-2 data-[focus-visible]:ring-feedback-error-border data-[focus-visible]:ring-inset"};return s?jsxRuntime.jsx(reactAriaComponents.MenuItem,{...l,isDisabled:o,className:tailwindMerge.twMerge("group box-border flex w-full cursor-pointer items-center rounded-sm outline-none transition-colors",!c&&u[r],m[a],e==="right"?"justify-end":"justify-start",o&&"pointer-events-none opacity-50"),children:s()}):jsxRuntime.jsxs(reactAriaComponents.MenuItem,{...l,isDisabled:o,className:tailwindMerge.twMerge("group box-border flex w-full cursor-pointer items-center rounded-sm outline-none transition-colors",!c&&u[r],m[a],e==="right"?"justify-end":"justify-start",o&&"pointer-events-none opacity-50"),children:[t&&e==="left"&&jsxRuntime.jsx(I,{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(I,{name:t,size:r==="sm"?16:20,className:"ml-3 flex-shrink-0"})]})}var Kr=({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 tr({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(Kr,{size:20,color:"text-text-secondary"}),t&&jsxRuntime.jsx("span",{className:"text-sm","aria-hidden":"true",children:t})]});return o||n}var On=Ee.createContext({variant:"timeline",size:"md"});function sf(){return Ee.useContext(On)}function qi(e){return Ee.isValidElement(e)&&e.type===$i}function ZC(e){return Ee.isValidElement(e)&&e.type===Xi}function cd({variant:e="timeline",size:t="md",className:r,children:o,items:n,renderItem:a,isLoading:i=false,loadingState:s,error:c=null,renderLoadingSkeleton:l,loadingSkeletonCount:u=5,emptyMessage:d="No activity found.",onLoadMore:m,hasMore:p=false,enableVirtualization:g,estimatedItemSize:f,loadingIndicator:b,height:x,maxHeight:v,...C}){let y=Ee.useRef(null),{isMobile:S}=Pt(),k=S?"stacked":e,R=n!==void 0&&a!==void 0,{scrollRef:E,loadMoreRef:D,virtualizer:L,virtualItems:V,isLoadingMore:A,computedLoadingState:N}=co({items:n||[],onLoadMore:R?m:void 0,hasMore:R?p:false,isLoading:i,loadingState:s,enableVirtualization:R?g:false,estimatedItemSize:f||(k==="stacked"?120:150),overscan:5}),T=R&&E?E:y,z=Ee.useMemo(()=>({variant:k,size:t}),[k,t]),W=k==="timeline"?t==="sm"?"gap-4":"gap-6":"gap-0",F=k==="stacked"?"divide-y divide-border-subtle rounded-lg border border-border-subtle bg-background-surface":"",K={};if(R&&m&&(x?(K.height=typeof x=="number"?`${x}px`:x,K.overflowY="auto"):v?(K.maxHeight=typeof v=="number"?`${v}px`:v,K.overflowY="auto"):(K.height="600px",K.overflowY="auto")),R){let Y=N==="loading"||i&&(!n||n.length===0);if(Y){let w=l?jsxRuntime.jsx(jsxRuntime.Fragment,{children:Array.from({length:u}).map((B,M)=>jsxRuntime.jsx("div",{children:l()},`skeleton-${M}`))}):jsxRuntime.jsx(jsxRuntime.Fragment,{children:Array.from({length:u}).map((B,M)=>{let h=t==="sm"?"gap-2":"gap-3";if(k==="timeline"){let O=t==="sm"?"pt-3":"pt-4",H=t==="sm"?"p-3":"p-4";return jsxRuntime.jsxs("div",{className:"group relative grid items-start gap-4 grid-cols-[3rem_1fr]",children:[jsxRuntime.jsxs("div",{className:`relative flex h-full flex-col items-center ${O}`,children:[jsxRuntime.jsx(J,{width:32,height:32,variant:"circle"}),M<u-1&&jsxRuntime.jsx("span",{className:"absolute top-[2rem] left-1/2 w-0 border-l-2 border-dotted -translate-x-1/2 h-[calc(100%+2.5rem)] border-border-muted"})]}),jsxRuntime.jsxs("div",{className:`min-w-0 flex flex-col ${h} ${H} rounded-md border border-border-subtle bg-background-surface`,children:[jsxRuntime.jsxs("div",{className:"flex items-center justify-between gap-3",children:[jsxRuntime.jsx(J,{width:"50%",height:16}),jsxRuntime.jsx(J,{width:"15%",height:12})]}),jsxRuntime.jsx(J,{width:"85%",height:t==="sm"?14:15}),jsxRuntime.jsx(J,{width:"70%",height:t==="sm"?14:15})]})]},`skeleton-${M}`)}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-${M}`)})});return jsxRuntime.jsx(On.Provider,{value:z,children:jsxRuntime.jsx("div",{ref:T,"data-slot":"feed","data-variant":k,className:tailwindMerge.twMerge("flex flex-col",W,F,r),style:K,...C,children:w})})}if(c)return jsxRuntime.jsx(On.Provider,{value:z,children:jsxRuntime.jsx("div",{ref:T,"data-slot":"feed","data-variant":k,className:tailwindMerge.twMerge("flex flex-col",W,F,r),style:K,...C,children:jsxRuntime.jsx("div",{className:"p-4 text-center text-feedback-error-text",children:c})})});if(!n||n.length===0)return jsxRuntime.jsx(On.Provider,{value:z,children:jsxRuntime.jsx("div",{ref:T,"data-slot":"feed","data-variant":k,className:tailwindMerge.twMerge("flex flex-col",W,F,r),style:K,...C,children:jsxRuntime.jsx("div",{className:"p-4 text-center text-text-secondary",children:d})})});let P=L?V?.map(w=>({virtualItem:w,item:n[w.index],index:w.index}))||[]:n.map((w,B)=>({item:w,index:B,virtualItem:null}));return jsxRuntime.jsx(On.Provider,{value:z,children:jsxRuntime.jsxs("div",{ref:T,"data-slot":"feed","data-variant":k,className:tailwindMerge.twMerge("flex flex-col",W,F,r),style:{...K,position:L?"relative":void 0},...C,children:[L?jsxRuntime.jsxs("div",{style:{height:`${L.getTotalSize()}px`,position:"relative"},children:[P.map(({item:w,index:B,virtualItem:M})=>{if(!w||!M)return null;let h=a(w,B),O=k==="timeline"&&Ee.isValidElement(h)&&qi(h)?Ee.cloneElement(h,{showConnector:B!==n.length-1}):h;return jsxRuntime.jsx("div",{style:{position:"absolute",top:0,left:0,width:"100%",transform:`translateY(${M.start}px)`},"data-index":M.index,ref:L.measureElement,children:O},`item-${B}`)}),A&&jsxRuntime.jsx("div",{style:{position:"absolute",top:`${L.getTotalSize()}px`,left:0,width:"100%"},children:b||jsxRuntime.jsx(tr,{state:"loading-more"})})]}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[P.map(({item:w,index:B})=>{let M=a(w,B);if(k==="timeline"&&Ee.isValidElement(M)&&qi(M)){let h=B===n.length-1;return jsxRuntime.jsx("div",{children:Ee.cloneElement(M,{showConnector:!h})},`item-${B}`)}return jsxRuntime.jsx("div",{children:M},`item-${B}`)}),A&&(b||jsxRuntime.jsx(tr,{state:"loading-more"}))]}),m&&p&&!Y&&jsxRuntime.jsx("div",{ref:D,style:L?{position:"absolute",top:`${L.getTotalSize()}px`,left:0,width:"100%",height:1}:{height:1,width:"100%"}})]})})}let X=Ee.Children.toArray(o),G=X.map((Y,P)=>{if(qi(Y)){let w=Y.props.showConnector??(k==="timeline"&&P<X.length-1),B=k==="timeline"&&P>0;return Ee.cloneElement(Y,{showConnector:w,showIncomingConnector:B})}if(ZC(Y)){let w=P===X.length-1;return Ee.cloneElement(Y,{__isLastGroup:w,__isFirstGroup:P===0})}return Y});return jsxRuntime.jsx(On.Provider,{value:z,children:jsxRuntime.jsx("div",{"data-slot":"feed","data-variant":k,className:tailwindMerge.twMerge("flex flex-col",W,F,r),...C,children:G})})}cd.displayName="ActivityFeed";function Xi(e){let{variant:t,size:r}=sf(),{title:o,description:n,actions:a,children:i,className:s,__isLastGroup:c=false,__isFirstGroup:l=false,...u}=e,d=Ee.Children.toArray(i),m=d.map((f,b)=>{if(qi(f)){let x=f.props.showConnector??(t==="timeline"&&!(c&&b===d.length-1));return Ee.cloneElement(f,{showConnector:x,showIncomingConnector:t==="timeline"&&!(l&&b===0)})}return f}),p=t==="timeline"?"pl-[3rem]":r==="sm"?"px-3":"px-4",g=r==="sm"?"gap-3":"gap-4";return jsxRuntime.jsxs("section",{"data-slot":"group",className:tailwindMerge.twMerge("flex flex-col",s),...u,children:[(o||n||a)&&jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("mb-2 flex flex-wrap items-end justify-between gap-2",p),children:[jsxRuntime.jsxs("div",{className:"flex min-w-0 flex-col gap-1",children:[o&&jsxRuntime.jsx("span",{className:"text-xs font-semibold uppercase tracking-wide text-text-secondary",children:o}),n&&jsxRuntime.jsx("span",{className:"text-sm text-text-secondary",children:n})]}),a&&jsxRuntime.jsx("div",{className:"flex flex-shrink-0 items-center gap-2",children:a})]}),jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("flex flex-col",g),children:m})]})}Xi.displayName="ActivityFeedGroup";var nf={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"},XC={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"},$C={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 $i(e){let{variant:t,size:r}=sf(),{title:o,description:n,timestamp:a,meta:i,media:s,actions:c,visual:l,icon:u,iconWeight:d,tone:m="neutral",surface:p,isHighlighted:g=false,showConnector:f=true,hideIndicator:b=false,interactive:x,className:v,children:C,onKeyDown:y,showIncomingConnector:S,...k}=e,R=l??(u?jsxRuntime.jsx(I,{name:u,weight:d||"fill",className:"h-4 w-4"}):null),E=p??(t==="stacked"?"minimal":"subtle"),D=r==="sm"?"gap-2":"gap-3",L="text-xs text-text-secondary",V=r==="sm"?"text-sm":"text-[15px]",A="text-xs text-text-secondary",N=x??typeof k.onClick=="function",T=P=>{if(!N){y?.(P);return}P.key===" "?P.preventDefault():P.key==="Enter"&&(P.preventDefault(),P.currentTarget.click()),y?.(P);},z=P=>{N&&P.key===" "&&(P.preventDefault(),P.currentTarget.click());},W=N?tailwindMerge.twMerge("group cursor-pointer",Oe()):void 0,K=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",nf[m]),children:R}),t==="timeline"&&f&&jsxRuntime.jsx("span",{"data-slot":"separator",className:"absolute top-[2rem] left-1/2 w-0 border-l-2 border-dotted -translate-x-1/2 h-[calc(100%+2.5rem)] border-border-muted"})]}),X=g?tailwindMerge.twMerge(XC[m],E==="minimal"?"rounded-md border border-border-muted":$C[m]):"";if(t==="stacked")return jsxRuntime.jsxs("div",{"data-slot":"item","data-variant":"stacked",role:N?"button":void 0,tabIndex:N?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,W,N?"transition-colors hover:bg-background-subtle/80":"",v),onKeyDown:T,onKeyUp:z,...k,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",nf[m]),children:R}),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",D),children:[n&&jsxRuntime.jsx("div",{"data-slot":"description",className:tailwindMerge.twMerge("text-text-secondary",V),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",L),children:a})]})]});let G=E==="minimal"?r==="sm"?"py-2":"py-3":r==="sm"?"p-3":"p-4",Y={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:N?"button":void 0,tabIndex:N?0:void 0,className:tailwindMerge.twMerge("group relative grid items-start gap-4 grid-cols-[3rem_1fr]",W,v),onKeyDown:T,onKeyUp:z,...k,children:[b?jsxRuntime.jsx("div",{}):K,jsxRuntime.jsxs("div",{"data-slot":"content",className:tailwindMerge.twMerge("min-w-0 flex flex-col",D,G,Y[E],X,N?"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",L),children:a})]}),n&&jsxRuntime.jsx("div",{"data-slot":"description",className:tailwindMerge.twMerge("text-text-secondary",V),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})]})]})}$i.displayName="ActivityItem";function rr({isOpen:e,onClose:t,title:r,headerContent:o,titleAlign:n="left",hideCloseIcon:a=false,hasBackArrow:i=false,onBack:s,children:c,primaryAction:l,secondaryAction:u,tertiaryAction:d,footerContent:m,transparentOverlay:p=false,maxWidth:g="600px",minWidth:f="400px",maxHeight:b="85vh",height:x,mobileMaxHeight:v="90vh",mobileHeight:C,contentPadding:y=true,className:S}){let k=kt("(max-width: 767px)"),R=Ii(k&&e===void 0),E=R?.height??null,D=R?.keyboardOffset??0,L=Ee.useRef(null),V=Ee.useCallback(()=>{L.current&&L.current.scrollTop!==0&&(L.current.scrollTop=0);},[]),A=Ee.useRef(null),N=Ee.useRef(null);Ee.useEffect(()=>{let K=N.current;if(!K||!k)return;let X=null,G=Y=>{let P=Y.target;P&&["INPUT","TEXTAREA","SELECT"].includes(P.tagName)&&(X&&clearTimeout(X),X=setTimeout(()=>{P.scrollIntoView({block:"nearest",behavior:"smooth"});},320));};return K.addEventListener("focusin",G),()=>{K.removeEventListener("focusin",G),X&&clearTimeout(X);}},[k]);let T=Ee.useCallback(()=>{A.current&&A.current.scrollTop!==0&&(A.current.scrollTop=0);},[]);if(e===false)return null;let z=r||o,W=l||u||d||m,F=e!==void 0;return k?F?jsxRuntime.jsx(Xe,{isOpen:e,onClose:t,title:r,headerContent:o,titleAlign:n,hideCloseIcon:a,hasBackArrow:i,onBack:s,primaryAction:l,secondaryAction:u,footerContent:m,transparentOverlay:p,maxHeight:v,height:C,maxWidth:g,contentPadding:y,showHandle:true,animationVariant:"scale",className:S,children:c}):jsxRuntime.jsx(mr,{children:jsxRuntime.jsx(Ut,{isDismissable:true,transparent:p,style:{paddingBottom:D>0?`${D}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:L,onScroll:V,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)?E!==null?`min(${v}, ${Math.max(E-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"})}),z&&(i?jsxRuntime.jsx(Ct,{title:r,headerContent:o,titleAlign:n,hideCloseIcon:a||!t,hasBackArrow:true,onBack:s,onClose:t||(()=>{})}):jsxRuntime.jsx(Ct,{title:r,headerContent:o,titleAlign:n,hideCloseIcon:a||!t,onClose:t||(()=>{})})),jsxRuntime.jsx("div",{ref:N,className:tailwindMerge.twMerge("flex-1 min-h-0 overflow-y-auto overscroll-contain",y?"px-6 py-6":"p-0"),children:c}),W&&jsxRuntime.jsx(fo,{primaryAction:l,secondaryAction:u,tertiaryAction:d,footerContent:m})]})})})}):jsxRuntime.jsx(mr,{children:jsxRuntime.jsx(Ut,{...F?{isOpen:e,onOpenChange:K=>{!K&&t&&t();}}:{},isDismissable:true,transparent:p,className:"flex items-center justify-center",children:jsxRuntime.jsx(reactAriaComponents.Modal,{className:"w-full p-4 outline-none focus:outline-none focus-visible:outline-none ring-0 focus:ring-0 focus-visible:ring-0",style:{maxWidth:g},children:jsxRuntime.jsxs(reactAriaComponents.Dialog,{ref:A,onScroll:T,className:tailwindMerge.twMerge("relative flex w-full flex-col","bg-background-surface","shadow-2xl shadow-black/20","border border-border-default/50","rounded-md","overflow-hidden","outline-none focus:outline-none focus-visible:outline-none ring-0 focus:ring-0","animate-in fade-in zoom-in-96 slide-in-from-bottom-2","duration-300 ease-out","data-[exiting]:animate-out data-[exiting]:fade-out data-[exiting]:zoom-out-95","data-[exiting]:duration-200 data-[exiting]:ease-in",S),style:{minWidth:f,...x?{height:x}:{maxHeight:b}},children:[z&&(i?jsxRuntime.jsx(Ct,{title:r,headerContent:o,titleAlign:n,hideCloseIcon:a||!t,hasBackArrow:true,onBack:s,onClose:t||(()=>{})}):jsxRuntime.jsx(Ct,{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}),W&&jsxRuntime.jsx(fo,{primaryAction:l,secondaryAction:u,tertiaryAction:d,footerContent:m})]})})})})}function mf({isOpen:e,onClose:t,title:r,message:o,confirmLabel:n="OK",confirmVariant:a="primary",maxWidth:i="400px",minWidth:s="320px"}){return jsxRuntime.jsx(rr,{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 _i=({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 es=({topItems:e=[],bottomItems:t=[],bottomContent:r,logo:o,showLogo:n=true,linkComponent:a="a",className:i="",mobileMenuId:s="app-mobile-menu",sidebarCollapseId:c="app-sidebar-collapse"})=>{let l=p=>p.length>0&&"items"in p[0],u=p=>l(p)?p:[{id:"default-section",items:p}],d=(p,g,f)=>jsxRuntime.jsxs("div",{className:"space-y-0.5",children:[p.title&&jsxRuntime.jsx("div",{className:"px-6 py-1 text-xs font-medium text-text-secondary uppercase tracking-wider","data-collapse-hide":"",children:p.title}),jsxRuntime.jsx("div",{className:"space-y-0.5",children:p.items.map(b=>m(b))}),g<f-1&&jsxRuntime.jsx("div",{className:"border-b border-border-subtle mx-6 my-2","data-collapse-hide":""})]},p.id),m=(p,g=false)=>{if(p.children&&p.children.length>0){let x=`category-${p.id}`;return jsxRuntime.jsxs("div",{className:"group/category",children:[jsxRuntime.jsx("input",{type:"checkbox",id:x,className:"peer/category hidden",defaultChecked:p.isExpanded,"aria-hidden":"true"}),jsxRuntime.jsxs("label",{htmlFor:x,className:"flex items-center gap-3 px-6 py-1 text-text-primary hover:bg-background-hover hover:text-text-primary cursor-pointer transition-all duration-200","data-collapse-center":"",children:[p.icon&&jsxRuntime.jsx("span",{className:"flex-shrink-0 w-3.5 h-3.5 flex items-center justify-center transition-all duration-200","data-collapse-icon":"",children:p.icon}),jsxRuntime.jsx("span",{className:"transition-all duration-200","data-collapse-hide":"",children:p.label}),jsxRuntime.jsx("span",{className:"flex-1","data-collapse-hide":""}),jsxRuntime.jsx("svg",{className:"w-4 h-4 transform transition-transform duration-200 peer-checked/category:rotate-180 ml-auto",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg","data-collapse-hide":"",children:jsxRuntime.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 9l-7 7-7-7"})})]}),jsxRuntime.jsx("div",{className:"hidden peer-checked/category:block bg-background-subtle border-l-2 border-border-subtle ml-6","data-collapse-hide-category":"",children:p.children.map(v=>m(v,true))})]},p.id)}let f={href:p.href||"#",className:`flex items-center gap-3 transition-all duration-200 hover:bg-background-hover ${g?"pl-8 pr-6 py-1 text-sm":"px-6 py-1"} ${p.isActive?`bg-action-brand/10 text-action-brand ${g?"":"border-l-2 border-action-brand"}`:"text-text-primary hover:text-text-primary"}`,"aria-current":p.isActive?"page":void 0,"data-collapse-center":g?void 0:""},b=jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[p.icon&&!g&&jsxRuntime.jsx("span",{className:"flex-shrink-0 w-3.5 h-3.5 flex items-center justify-center transition-all duration-200","data-collapse-icon":"",children:p.icon}),jsxRuntime.jsx("span",{className:"transition-all duration-200","data-collapse-hide":"",children:p.label})]});return a==="a"?jsxRuntime.jsx("a",{...f,children:b},p.id):jsxRuntime.jsx(a,{...f,children:b},p.id)};return jsxRuntime.jsxs("div",{className:`flex flex-col h-full ${i}`,children:[jsxRuntime.jsxs("div",{className:"flex items-center justify-between h-[60px] px-6 border-b border-border-default",children:[n&&jsxRuntime.jsx("div",{className:"relative top-[-1px] transition-all duration-200","data-collapse-hide":"",children:o||jsxRuntime.jsx(_i,{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":"Toggle sidebar","data-collapse-toggle":"",children:jsxRuntime.jsx("svg",{className:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntime.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M4 6h16M4 12h16M4 18h16"})})}),jsxRuntime.jsx("label",{htmlFor:s,className:"md:hidden flex items-center justify-center w-8 h-8 rounded hover:bg-background-hover cursor-pointer transition-colors","aria-label":"Close menu",children:jsxRuntime.jsx("svg",{className:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntime.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})})]}),jsxRuntime.jsxs("nav",{className:"flex-1 flex flex-col overflow-hidden",children:[e&&e.length>0&&jsxRuntime.jsx("div",{className:"flex-1 overflow-y-auto py-2 scrollbar-hide",children:u(e).map((p,g,f)=>d(p,g,f.length))}),t&&t.length>0&&jsxRuntime.jsx("div",{className:"flex-shrink-0 border-t bg-background-muted/30",children:jsxRuntime.jsx("div",{className:"mt-2 pb-2 space-y-0.5",children:t.map(p=>m(p))})}),r&&jsxRuntime.jsx("div",{className:"flex-shrink-0 border-t border-border-default",children:jsxRuntime.jsx("div",{"data-collapse-hide":"",children:r})})]})]})};var go={xs:16,sm:20,md:24,lg:32,xl:40,"2xl":48},Yo=Ee.memo(({name:e,size:t="md",color:r,weight:o="regular",className:n,ariaLabel:a,...i})=>{let s=eS__namespace[e];if(!s)return null;let c=typeof t=="string"?t in go?go[t]:go.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}`})});Yo.displayName="IconSSR";var tS=Ee.memo(({variant:e="subtle",shape:t="square",containerSize:r,containerClassName:o,size:n="md",className:a,name:i,color:s,weight:c,ariaLabel:l,ref:u,...d})=>{let m=typeof n=="string"?n in go?go[n]:go.md:n,p=r?typeof r=="string"?r in go?go[r]:m*1.75:r:m*1.75,g=tailwindMerge.twMerge("inline-flex items-center justify-center flex-shrink-0",t==="circle"?"rounded-full":"rounded-lg",e==="subtle"&&"bg-background-muted",e==="solid"&&"bg-action-brand text-[color:var(--color-action-brand-text)]",e==="outline"&&"border-2 border-current",o);return jsxRuntime.jsx("div",{className:g,style:{width:p,height:p},children:jsxRuntime.jsx(Yo,{...d,name:i,size:n,color:s,weight:c,className:a,ariaLabel:l})})});tS.displayName="IconSSRWithContainer";var Da=({rightContent:e,centerContent:t,showMobileMenu:r=true,avatar:o,showColorModeSwitcher:n=false,toggleTheme:a,isDarkThemeEnabled:i=false,colorMode:s,actions:c,className:l="",mobileMenuId:u="app-mobile-menu"})=>{let d=()=>{switch(s||(i?"dark":"light")){case "system":return jsxRuntime.jsx(Yo,{name:"Monitor",size:"sm"});case "light":return jsxRuntime.jsx(Yo,{name:"Sun",size:"sm"});case "dark":return jsxRuntime.jsx(Yo,{name:"Moon",size:"sm"})}},m=()=>{switch(s||(i?"dark":"light")){case "system":return "Switch to light mode";case "light":return "Switch to dark mode";case "dark":return "Switch to system mode";default:return "Toggle theme"}};return jsxRuntime.jsx("header",{className:`h-[60px] bg-background-surface border-b ${l}`,children:jsxRuntime.jsxs("div",{className:"relative flex h-full items-center",children:[jsxRuntime.jsx("div",{className:"flex items-center h-full flex-shrink-0",children:r&&jsxRuntime.jsx("label",{htmlFor:u,className:"md:hidden cursor-pointer","aria-label":"Open menu",children:jsxRuntime.jsx("div",{className:"flex h-full w-14 flex-col items-center justify-center border-r hover:bg-background-hover transition-colors",children:jsxRuntime.jsx(Yo,{name:"List",size:"sm"})})})}),t&&jsxRuntime.jsx("div",{className:"flex-1 flex justify-end md:justify-center md:px-4 min-w-0",children:jsxRuntime.jsx("div",{className:"w-full md:max-w-4xl min-w-0",children:t})}),!t&&jsxRuntime.jsx("div",{className:"flex-1"}),jsxRuntime.jsxs("div",{className:"flex items-center gap-4 pr-4 flex-shrink-0 ml-4",children:[e,n&&a&&jsxRuntime.jsx("button",{type:"button",onClick:a,className:"flex items-center justify-center w-8 h-8 rounded hover:bg-background-hover transition-colors","aria-label":m(),children:d()}),c,o&&jsxRuntime.jsx("div",{className:"flex items-center",children:o})]})]})})};function xf({sideNav:e,topNav:t,children:r,contentPaddingX:o,contentPaddingY:n,showSidebarBorder:a=true,mainClassName:i,enableJsEnhancements:s=false}){let c="app-mobile-menu",l="app-sidebar-collapse";return jsxRuntime.jsxs("div",{className:"min-h-[100dvh] bg-background text-text-primary relative",children:[jsxRuntime.jsx("input",{type:"checkbox",id:l,className:"sr-only peer/sidebar","aria-hidden":"true"}),jsxRuntime.jsx("a",{href:"#app-content",className:"sr-only focus:not-sr-only focus:absolute focus:left-4 focus:top-4 z-50 rounded px-3 py-2 bg-background-surface shadow",children:"Skip to content"}),jsxRuntime.jsx(Da,{...t,mobileMenuId:c,className:["sticky top-0 flex-shrink-0 z-30 md:hidden",t?.className].filter(Boolean).join(" ")}),jsxRuntime.jsxs("div",{className:"flex w-full h-[calc(100dvh-60px)] md:h-[100dvh] relative overflow-hidden",children:[jsxRuntime.jsx("input",{type:"checkbox",id:c,className:"sr-only peer/mobile","aria-hidden":"true"}),jsxRuntime.jsx("label",{htmlFor:c,className:"fixed inset-0 bg-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("aside",{id:"app-sidebar",className:["bg-background-surface","border-r border-border-default","transition-all duration-300 ease-in-out","fixed md:relative","left-0 top-0 bottom-0","z-[60] md:z-10","w-80 md:w-64","h-[100dvh] md:h-full","-translate-x-full","peer-checked/mobile:translate-x-0","md:translate-x-0",a?"":"!border-r-0",e?.className||""].filter(Boolean).join(" "),children:jsxRuntime.jsx(es,{...e,mobileMenuId:c,sidebarCollapseId:l,className:"h-full"})}),jsxRuntime.jsxs("div",{className:"flex-1 flex flex-col h-full overflow-hidden",children:[jsxRuntime.jsx("div",{className:"sticky top-0 flex-shrink-0 hidden md:block z-20",children:jsxRuntime.jsx(Da,{...t,className:t?.className})}),jsxRuntime.jsx("main",{id:"app-content",className:["flex-1 overflow-y-auto overflow-x-hidden bg-background-body",o,n,i||""].join(" "),role:"main",children:r})]})]}),jsxRuntime.jsx("style",{dangerouslySetInnerHTML:{__html:`
|
|
1
|
+
'use strict';var reactAriaComponents=require('react-aria-components'),Ee=require('react'),fileSaver=require('file-saver'),Fv=require('papaparse'),Gv=require('fuse.js'),reactVirtual=require('@tanstack/react-virtual'),jsxRuntime=require('react/jsx-runtime'),luxon=require('luxon'),tailwindMerge=require('tailwind-merge'),q0=require('@phosphor-icons/react'),lS=require('@phosphor-icons/react/ssr'),reactStately=require('react-stately'),lucideReact=require('lucide-react'),framerMotion=require('framer-motion'),P2=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'),J5=require('react-map-gl'),server=require('react-dom/server'),rR=require('@tiptap/extension-link'),react=require('@tiptap/react'),menus=require('@tiptap/react/menus'),iR=require('@tiptap/starter-kit');var _documentCurrentScript=typeof document!=='undefined'?document.currentScript:null;function _interopDefault(e){return e&&e.__esModule?e:{default:e}}function _interopNamespace(e){if(e&&e.__esModule)return e;var n=Object.create(null);if(e){Object.keys(e).forEach(function(k){if(k!=='default'){var d=Object.getOwnPropertyDescriptor(e,k);Object.defineProperty(n,k,d.get?d:{enumerable:true,get:function(){return e[k]}});}})}n.default=e;return Object.freeze(n)}var Ee__namespace=/*#__PURE__*/_interopNamespace(Ee);var Fv__default=/*#__PURE__*/_interopDefault(Fv);var Gv__default=/*#__PURE__*/_interopDefault(Gv);var q0__namespace=/*#__PURE__*/_interopNamespace(q0);var lS__namespace=/*#__PURE__*/_interopNamespace(lS);var P2__default=/*#__PURE__*/_interopDefault(P2);var J5__default=/*#__PURE__*/_interopDefault(J5);var rR__default=/*#__PURE__*/_interopDefault(rR);var iR__default=/*#__PURE__*/_interopDefault(iR);var Tv=Object.create;var gc=Object.defineProperty;var Pv=Object.getOwnPropertyDescriptor;var Rv=Object.getOwnPropertyNames;var Dv=Object.getPrototypeOf,Mv=Object.prototype.hasOwnProperty;var Ev=(e,t,r)=>t in e?gc(e,t,{enumerable:true,configurable:true,writable:true,value:r}):e[t]=r;var fr=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var Lv=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of Rv(t))!Mv.call(e,n)&&n!==r&&gc(e,n,{get:()=>t[n],enumerable:!(o=Pv(t,n))||o.enumerable});return e};var Up=(e,t,r)=>(r=e!=null?Tv(Dv(e)):{},Lv(!e||!e.__esModule?gc(r,"default",{value:e,enumerable:true}):r,e));var Ca=(e,t,r)=>Ev(e,typeof t!="symbol"?t+"":t,r);var Gg=fr(Ie=>{var mt=typeof Symbol=="function"&&Symbol.for,gu=mt?Symbol.for("react.element"):60103,bu=mt?Symbol.for("react.portal"):60106,As=mt?Symbol.for("react.fragment"):60107,Is=mt?Symbol.for("react.strict_mode"):60108,Fs=mt?Symbol.for("react.profiler"):60114,Bs=mt?Symbol.for("react.provider"):60109,Vs=mt?Symbol.for("react.context"):60110,xu=mt?Symbol.for("react.async_mode"):60111,zs=mt?Symbol.for("react.concurrent_mode"):60111,Os=mt?Symbol.for("react.forward_ref"):60112,Hs=mt?Symbol.for("react.suspense"):60113,lw=mt?Symbol.for("react.suspense_list"):60120,Ws=mt?Symbol.for("react.memo"):60115,Gs=mt?Symbol.for("react.lazy"):60116,cw=mt?Symbol.for("react.block"):60121,dw=mt?Symbol.for("react.fundamental"):60117,uw=mt?Symbol.for("react.responder"):60118,pw=mt?Symbol.for("react.scope"):60119;function $t(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case gu:switch(e=e.type,e){case xu:case zs:case As:case Fs:case Is:case Hs:return e;default:switch(e=e&&e.$$typeof,e){case Vs:case Os:case Gs:case Ws:case Bs:return e;default:return t}}case bu:return t}}}function Wg(e){return $t(e)===zs}Ie.AsyncMode=xu;Ie.ConcurrentMode=zs;Ie.ContextConsumer=Vs;Ie.ContextProvider=Bs;Ie.Element=gu;Ie.ForwardRef=Os;Ie.Fragment=As;Ie.Lazy=Gs;Ie.Memo=Ws;Ie.Portal=bu;Ie.Profiler=Fs;Ie.StrictMode=Is;Ie.Suspense=Hs;Ie.isAsyncMode=function(e){return Wg(e)||$t(e)===xu};Ie.isConcurrentMode=Wg;Ie.isContextConsumer=function(e){return $t(e)===Vs};Ie.isContextProvider=function(e){return $t(e)===Bs};Ie.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===gu};Ie.isForwardRef=function(e){return $t(e)===Os};Ie.isFragment=function(e){return $t(e)===As};Ie.isLazy=function(e){return $t(e)===Gs};Ie.isMemo=function(e){return $t(e)===Ws};Ie.isPortal=function(e){return $t(e)===bu};Ie.isProfiler=function(e){return $t(e)===Fs};Ie.isStrictMode=function(e){return $t(e)===Is};Ie.isSuspense=function(e){return $t(e)===Hs};Ie.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===As||e===zs||e===Fs||e===Is||e===Hs||e===lw||typeof e=="object"&&e!==null&&(e.$$typeof===Gs||e.$$typeof===Ws||e.$$typeof===Bs||e.$$typeof===Vs||e.$$typeof===Os||e.$$typeof===dw||e.$$typeof===uw||e.$$typeof===pw||e.$$typeof===cw)};Ie.typeOf=$t;});var Ug=fr(Fe=>{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,u=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,m=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,f=e?Symbol.for("react.block"):60121,b=e?Symbol.for("react.fundamental"):60117,x=e?Symbol.for("react.responder"):60118,v=e?Symbol.for("react.scope"):60119;function C(Z){return typeof Z=="string"||typeof Z=="function"||Z===o||Z===l||Z===a||Z===n||Z===d||Z===m||typeof Z=="object"&&Z!==null&&(Z.$$typeof===g||Z.$$typeof===p||Z.$$typeof===i||Z.$$typeof===s||Z.$$typeof===u||Z.$$typeof===b||Z.$$typeof===x||Z.$$typeof===v||Z.$$typeof===f)}function y(Z){if(typeof Z=="object"&&Z!==null){var ne=Z.$$typeof;switch(ne){case t:var ke=Z.type;switch(ke){case c:case l:case o:case a:case n:case d:return ke;default:var ie=ke&&ke.$$typeof;switch(ie){case s:case u:case g:case p:case i:return ie;default:return ne}}case r:return ne}}}var w=c,T=l,R=s,E=i,D=t,L=u,z=o,A=g,S=p,N=r,F=a,W=n,I=d,K=false;function X(Z){return K||(K=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.")),G(Z)||y(Z)===c}function G(Z){return y(Z)===l}function Y(Z){return y(Z)===s}function P(Z){return y(Z)===i}function k(Z){return typeof Z=="object"&&Z!==null&&Z.$$typeof===t}function V(Z){return y(Z)===u}function M(Z){return y(Z)===o}function h(Z){return y(Z)===g}function O(Z){return y(Z)===p}function H(Z){return y(Z)===r}function j(Z){return y(Z)===a}function oe(Z){return y(Z)===n}function me(Z){return y(Z)===d}Fe.AsyncMode=w,Fe.ConcurrentMode=T,Fe.ContextConsumer=R,Fe.ContextProvider=E,Fe.Element=D,Fe.ForwardRef=L,Fe.Fragment=z,Fe.Lazy=A,Fe.Memo=S,Fe.Portal=N,Fe.Profiler=F,Fe.StrictMode=W,Fe.Suspense=I,Fe.isAsyncMode=X,Fe.isConcurrentMode=G,Fe.isContextConsumer=Y,Fe.isContextProvider=P,Fe.isElement=k,Fe.isForwardRef=V,Fe.isFragment=M,Fe.isLazy=h,Fe.isMemo=O,Fe.isPortal=H,Fe.isProfiler=j,Fe.isStrictMode=oe,Fe.isSuspense=me,Fe.isValidElementType=C,Fe.typeOf=y;})();});var yu=fr((iV,hu)=>{process.env.NODE_ENV==="production"?hu.exports=Gg():hu.exports=Ug();});var Jg=fr((sV,Kg)=>{var Yg=Object.getOwnPropertySymbols,mw=Object.prototype.hasOwnProperty,fw=Object.prototype.propertyIsEnumerable;function gw(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function bw(){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}}Kg.exports=bw()?Object.assign:function(e,t){for(var r,o=gw(e),n,a=1;a<arguments.length;a++){r=Object(arguments[a]);for(var i in r)mw.call(r,i)&&(o[i]=r[i]);if(Yg){n=Yg(r);for(var s=0;s<n.length;s++)fw.call(r,n[s])&&(o[n[s]]=r[n[s]]);}}return o};});var Us=fr((lV,jg)=>{var xw="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";jg.exports=xw;});var vu=fr((cV,qg)=>{qg.exports=Function.call.bind(Object.prototype.hasOwnProperty);});var _g=fr((dV,Qg)=>{var Cu=function(){};process.env.NODE_ENV!=="production"&&(Zg=Us(),Ys={},Xg=vu(),Cu=function(e){var t="Warning: "+e;typeof console<"u"&&console.error(t);try{throw new Error(t)}catch{}});var Zg,Ys,Xg;function $g(e,t,r,o,n){if(process.env.NODE_ENV!=="production"){for(var a in e)if(Xg(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,Zg);}catch(l){i=l;}if(i&&!(i instanceof Error)&&Cu((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 Ys)){Ys[i.message]=true;var c=n?n():"";Cu("Failed "+r+" type: "+i.message+(c??""));}}}}$g.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(Ys={});};Qg.exports=$g;});var rb=fr((uV,tb)=>{var hw=yu(),yw=Jg(),qn=Us(),Su=vu(),eb=_g(),Zn=function(){};process.env.NODE_ENV!=="production"&&(Zn=function(e){var t="Warning: "+e;typeof console<"u"&&console.error(t);try{throw new Error(t)}catch{}});function Ks(){return null}tb.exports=function(e,t){var r=typeof Symbol=="function"&&Symbol.iterator,o="@@iterator";function n(S){var N=S&&(r&&S[r]||S[o]);if(typeof N=="function")return N}var a="<<anonymous>>",i={array:u("array"),bigint:u("bigint"),bool:u("boolean"),func:u("function"),number:u("number"),object:u("object"),string:u("string"),symbol:u("symbol"),any:d(),arrayOf:m,element:p(),elementType:g(),instanceOf:f,node:C(),objectOf:x,oneOf:b,oneOfType:v,shape:w,exact:T};function s(S,N){return S===N?S!==0||1/S===1/N:S!==S&&N!==N}function c(S,N){this.message=S,this.data=N&&typeof N=="object"?N:{},this.stack="";}c.prototype=Error.prototype;function l(S){if(process.env.NODE_ENV!=="production")var N={},F=0;function W(K,X,G,Y,P,k,V){if(Y=Y||a,k=k||G,V!==qn){if(t){var M=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 M.name="Invariant Violation",M}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var h=Y+":"+G;!N[h]&&F<3&&(Zn("You are manually calling a React.PropTypes validation function for the `"+k+"` prop on `"+Y+"`. 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."),N[h]=true,F++);}}return X[G]==null?K?X[G]===null?new c("The "+P+" `"+k+"` is marked as required "+("in `"+Y+"`, but its value is `null`.")):new c("The "+P+" `"+k+"` is marked as required in "+("`"+Y+"`, but its value is `undefined`.")):null:S(X,G,Y,P,k)}var I=W.bind(null,false);return I.isRequired=W.bind(null,true),I}function u(S){function N(F,W,I,K,X,G){var Y=F[W],P=D(Y);if(P!==S){var k=L(Y);return new c("Invalid "+K+" `"+X+"` of type "+("`"+k+"` supplied to `"+I+"`, expected ")+("`"+S+"`."),{expectedType:S})}return null}return l(N)}function d(){return l(Ks)}function m(S){function N(F,W,I,K,X){if(typeof S!="function")return new c("Property `"+X+"` of component `"+I+"` has invalid PropType notation inside arrayOf.");var G=F[W];if(!Array.isArray(G)){var Y=D(G);return new c("Invalid "+K+" `"+X+"` of type "+("`"+Y+"` supplied to `"+I+"`, expected an array."))}for(var P=0;P<G.length;P++){var k=S(G,P,I,K,X+"["+P+"]",qn);if(k instanceof Error)return k}return null}return l(N)}function p(){function S(N,F,W,I,K){var X=N[F];if(!e(X)){var G=D(X);return new c("Invalid "+I+" `"+K+"` of type "+("`"+G+"` supplied to `"+W+"`, expected a single ReactElement."))}return null}return l(S)}function g(){function S(N,F,W,I,K){var X=N[F];if(!hw.isValidElementType(X)){var G=D(X);return new c("Invalid "+I+" `"+K+"` of type "+("`"+G+"` supplied to `"+W+"`, expected a single ReactElement type."))}return null}return l(S)}function f(S){function N(F,W,I,K,X){if(!(F[W]instanceof S)){var G=S.name||a,Y=A(F[W]);return new c("Invalid "+K+" `"+X+"` of type "+("`"+Y+"` supplied to `"+I+"`, expected ")+("instance of `"+G+"`."))}return null}return l(N)}function b(S){if(!Array.isArray(S))return process.env.NODE_ENV!=="production"&&(arguments.length>1?Zn("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])."):Zn("Invalid argument supplied to oneOf, expected an array.")),Ks;function N(F,W,I,K,X){for(var G=F[W],Y=0;Y<S.length;Y++)if(s(G,S[Y]))return null;var P=JSON.stringify(S,function(V,M){var h=L(M);return h==="symbol"?String(M):M});return new c("Invalid "+K+" `"+X+"` of value `"+String(G)+"` "+("supplied to `"+I+"`, expected one of "+P+"."))}return l(N)}function x(S){function N(F,W,I,K,X){if(typeof S!="function")return new c("Property `"+X+"` of component `"+I+"` has invalid PropType notation inside objectOf.");var G=F[W],Y=D(G);if(Y!=="object")return new c("Invalid "+K+" `"+X+"` of type "+("`"+Y+"` supplied to `"+I+"`, expected an object."));for(var P in G)if(Su(G,P)){var k=S(G,P,I,K,X+"."+P,qn);if(k instanceof Error)return k}return null}return l(N)}function v(S){if(!Array.isArray(S))return process.env.NODE_ENV!=="production"&&Zn("Invalid argument supplied to oneOfType, expected an instance of array."),Ks;for(var N=0;N<S.length;N++){var F=S[N];if(typeof F!="function")return Zn("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+z(F)+" at index "+N+"."),Ks}function W(I,K,X,G,Y){for(var P=[],k=0;k<S.length;k++){var V=S[k],M=V(I,K,X,G,Y,qn);if(M==null)return null;M.data&&Su(M.data,"expectedType")&&P.push(M.data.expectedType);}var h=P.length>0?", expected one of type ["+P.join(", ")+"]":"";return new c("Invalid "+G+" `"+Y+"` supplied to "+("`"+X+"`"+h+"."))}return l(W)}function C(){function S(N,F,W,I,K){return R(N[F])?null:new c("Invalid "+I+" `"+K+"` supplied to "+("`"+W+"`, expected a ReactNode."))}return l(S)}function y(S,N,F,W,I){return new c((S||"React class")+": "+N+" type `"+F+"."+W+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+I+"`.")}function w(S){function N(F,W,I,K,X){var G=F[W],Y=D(G);if(Y!=="object")return new c("Invalid "+K+" `"+X+"` of type `"+Y+"` "+("supplied to `"+I+"`, expected `object`."));for(var P in S){var k=S[P];if(typeof k!="function")return y(I,K,X,P,L(k));var V=k(G,P,I,K,X+"."+P,qn);if(V)return V}return null}return l(N)}function T(S){function N(F,W,I,K,X){var G=F[W],Y=D(G);if(Y!=="object")return new c("Invalid "+K+" `"+X+"` of type `"+Y+"` "+("supplied to `"+I+"`, expected `object`."));var P=yw({},F[W],S);for(var k in P){var V=S[k];if(Su(S,k)&&typeof V!="function")return y(I,K,X,k,L(V));if(!V)return new c("Invalid "+K+" `"+X+"` key `"+k+"` supplied to `"+I+"`.\nBad object: "+JSON.stringify(F[W],null," ")+`
|
|
2
|
+
Valid keys: `+JSON.stringify(Object.keys(S),null," "));var M=V(G,k,I,K,X+"."+k,qn);if(M)return M}return null}return l(N)}function R(S){switch(typeof S){case "number":case "string":case "undefined":return true;case "boolean":return !S;case "object":if(Array.isArray(S))return S.every(R);if(S===null||e(S))return true;var N=n(S);if(N){var F=N.call(S),W;if(N!==S.entries){for(;!(W=F.next()).done;)if(!R(W.value))return false}else for(;!(W=F.next()).done;){var I=W.value;if(I&&!R(I[1]))return false}}else return false;return true;default:return false}}function E(S,N){return S==="symbol"?true:N?N["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&N instanceof Symbol:false}function D(S){var N=typeof S;return Array.isArray(S)?"array":S instanceof RegExp?"object":E(N,S)?"symbol":N}function L(S){if(typeof S>"u"||S===null)return ""+S;var N=D(S);if(N==="object"){if(S instanceof Date)return "date";if(S instanceof RegExp)return "regexp"}return N}function z(S){var N=L(S);switch(N){case "array":case "object":return "an "+N;case "boolean":case "date":case "regexp":return "a "+N;default:return N}}function A(S){return !S.constructor||!S.constructor.name?a:S.constructor.name}return i.checkPropTypes=eb,i.resetWarningCache=eb.resetWarningCache,i.PropTypes=i,i};});var ib=fr((pV,ab)=>{var vw=Us();function ob(){}function nb(){}nb.resetWarningCache=ob;ab.exports=function(){function e(o,n,a,i,s,c){if(c!==vw){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:nb,resetWarningCache:ob};return r.PropTypes=r,r};});var cb=fr((mV,wu)=>{process.env.NODE_ENV!=="production"?(sb=yu(),lb=true,wu.exports=rb()(sb.isElement,lb)):wu.exports=ib()();var sb,lb;});var db=fr((fV,Js)=>{(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 Js<"u"&&Js.exports?(t.default=t,Js.exports=t):typeof define=="function"&&typeof define.amd=="object"&&define.amd?define("classnames",[],function(){return t}):window.classNames=t;})();});function Pt(e,t=false){let[r,o]=Ee.useState(t);return Ee.useEffect(()=>{if(typeof window>"u")return;let n=window.matchMedia(e);o(n.matches);let a=i=>{o(i.matches);};return n.addEventListener("change",a),()=>{n.removeEventListener("change",a);}},[e]),r}var Ho={sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"};function Rt(e="base"){let t=Pt(`(min-width: ${Ho.sm})`,e!=="base"),r=Pt(`(min-width: ${Ho.md})`,["md","lg","xl","2xl"].includes(e)),o=Pt(`(min-width: ${Ho.lg})`,["lg","xl","2xl"].includes(e)),n=Pt(`(min-width: ${Ho.xl})`,["xl","2xl"].includes(e)),a=Pt(`(min-width: ${Ho["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 Yp=["stroke","fill","color","stop-color","flood-color","lighting-color"],Kp=/var\s*\(/;function Jp(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 Yp){let u=s.getAttribute(l);if(u&&Kp.test(u)){let d=c.getPropertyValue(l);d&&s.setAttribute(l,d.trim());}}if(s instanceof HTMLElement||s instanceof SVGElement)for(let l of Yp){let u=l,d=s.style.getPropertyValue(u);if(d&&Kp.test(d)){let m=c.getPropertyValue(u);m&&s.style.setProperty(u,m.trim());}}}}function xc(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 hc(e,t,r={},o){let n=Array.isArray(t[0])?t:[t];try{switch(e){case "csv":await Bv(n,r);break;case "svg":await Vv(o,r);break;case "png":await zv(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 Bv(e,t){try{let r=new Map;e.forEach(c=>{c.forEach(l=>{let u=l.xValue.getTime();r.has(u)||r.set(u,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((u,d)=>{let m=t.seriesLabels?.[d]||`Series ${d+1}`,p=u.find(g=>g.xValue.getTime()===c.getTime());l[m]=p?p.yValue:"",p?.category&&(l[`${m} Category`]=p.category);}),l}),a=Fv__default.default.unparse(n,{header:!0,skipEmptyLines:!0}),i=new Blob([a],{type:"text/csv;charset=utf-8;"}),s=xc(t.filename||"chart-data","csv",t.timestamp!==!1);fileSaver.saveAs(i,s);}catch(r){throw new Error(`CSV export failed: ${r instanceof Error?r.message:"Unknown error"}`)}}async function Vv(e,t){if(!e.current)throw new Error("SVG element not found");try{let r=e.current,o=r.cloneNode(!0);if(Jp(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=xc(t.filename||"chart","svg",t.timestamp!==!1);fileSaver.saveAs(s,c);}catch(r){throw new Error(`SVG export failed: ${r instanceof Error?r.message:"Unknown error"}`)}}async function zv(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);Jp(n,i),i.setAttribute("width",String(a.width)),i.setAttribute("height",String(a.height)),i.removeAttribute("transform");let s=i.getElementsByTagName("text");Array.from(s).forEach(m=>{m.style.fontFamily||(m.style.fontFamily="system-ui, -apple-system, sans-serif"),m.style.fontSize||(m.style.fontSize="12px");});let c=document.createElementNS("http://www.w3.org/2000/svg","rect");c.setAttribute("width",String(a.width)),c.setAttribute("height",String(a.height)),c.setAttribute("fill","white"),i.insertBefore(c,i.firstChild);let u=new XMLSerializer().serializeToString(i);u.includes("xmlns=")||(u=u.replace("<svg",'<svg xmlns="http://www.w3.org/2000/svg"'));let d=new Blob([u],{type:"image/svg+xml;charset=utf-8"});return o=URL.createObjectURL(d),new Promise((m,p)=>{let g=new Image,f=setTimeout(()=>{o&&URL.revokeObjectURL(o),p(new Error("Image loading timeout"));},1e4);g.onload=()=>{clearTimeout(f);try{let b=document.createElement("canvas");b.width=a.width*r,b.height=a.height*r;let x=b.getContext("2d");if(!x)throw new Error("Canvas context not available");x.imageSmoothingEnabled=!0,x.imageSmoothingQuality="high",x.scale(r,r),x.fillStyle="white",x.fillRect(0,0,a.width,a.height),x.drawImage(g,0,0,a.width,a.height),b.toBlob(v=>{if(v){let C=xc(t.filename||"chart","png",t.timestamp!==!1);fileSaver.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);}},g.onerror=()=>{clearTimeout(f),o&&URL.revokeObjectURL(o),p(new Error("Failed to load SVG as image"));},g.src=o;})}catch(n){throw o&&URL.revokeObjectURL(o),new Error(`PNG export failed: ${n instanceof Error?n.message:"Unknown error"}`)}}function Ov(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 Hv(e){return {csv:"CSV Spreadsheet",svg:"SVG Vector Image",png:"PNG Image"}[e]||"Unknown Format"}function jp({datasets:e,metadata:t,svgRef:r}){return Ee.useCallback(async o=>{try{await hc(o,e,t,r);}catch(n){throw console.error("Chart export failed:",n),n}},[e,t,r])}function Sa(e,t){return t.split(".").reduce((r,o)=>r?.[o],e)}function Uv(e,t){let r=Sa(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 qp(e,t){if(t.conditions.length===0)return true;let r=t.conditions.map(o=>"conditions"in o?qp(e,o):Uv(e,o));return t.logic==="AND"?r.every(Boolean):r.some(Boolean)}function Yv(e,t){return !t||t.conditions.length===0?e:e.filter(r=>qp(r,t))}function Kv(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 Jv(e,t){return t?[...e].sort((r,o)=>{let n=Sa(r,t.field),a=Sa(o,t.field);return Kv(n,a,t.direction)}):e}function jv(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 Gv__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=Sa(s,c);return l==null?false:String(l).toLowerCase().includes(i)}))}function qv(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=Sa(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 yc({data:e,filters:t,sort:r,search:o,facetConfigs:n=[]}){let a=jv(e,o||null);a=Yv(a,t||null);let i=qv(a,n);return a=Jv(a,r||null),{data:a,facetCounts:i,resultCount:a.length}}function Ii({data:e,filters:t,sort:r,search:o,facetConfigs:n=[]}){return Ee.useMemo(()=>yc({data:e,filters:t,sort:r,search:o,facetConfigs:n}),[e,t,r,o,n])}function uo(e,t=300){let[r,o]=Ee.useState(e);return Ee.useEffect(()=>{let n=setTimeout(()=>o(e),t);return ()=>clearTimeout(n)},[e,t]),r}function Fi({filters:e,sort:t,search:r,onStateChange:o,searchDebounce:n=300}){let a=uo(r,n),i=Ee.useRef(true);Ee.useEffect(()=>{if(i.current){i.current=false;return}o({filters:e,sort:t,search:a});},[e,t,a,o]);}function Zp(e){return e.mode==="client"?Ii({data:e.data,filters:e.filters,sort:e.sort,search:e.search,facetConfigs:e.facetConfigs}):(Fi({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 Bi(e,t=300){let[r,o]=Ee.useState(false);return Ee.useEffect(()=>{if(e){let n=setTimeout(()=>{o(true);},t);return ()=>clearTimeout(n)}o(false);},[e,t]),r}function An(){let[e,t]=Ee.useState({width:0,height:0}),r=Ee.useRef(null),o=Ee.useRef(void 0),n=Ee.useCallback(a=>{if(r.current&&(r.current.disconnect(),r.current=null),o.current&&(cancelAnimationFrame(o.current),o.current=void 0),!a){t({width:0,height:0});return}let i=a.getBoundingClientRect();t({width:i.width,height:i.height}),r.current=new ResizeObserver(s=>{o.current&&cancelAnimationFrame(o.current),o.current=requestAnimationFrame(c=>{for(let l of s){let{width:u,height:d}=l.contentRect;t(m=>m.width!==u||m.height!==d?{width:u,height:d}:m);}});}),r.current.observe(a);},[]);return Ee.useEffect(()=>()=>{o.current&&cancelAnimationFrame(o.current),r.current&&r.current.disconnect();},[]),{ref:n,width:e.width,height:e.height}}function po({items:e,onLoadMore:t,hasMore:r,isLoading:o=false,loadingState:n,enableVirtualization:a,estimatedItemSize:i=50,overscan:s=5,scrollElement:c,loadMoreThreshold:l=100}){let u=Ee.useRef(null),d=Ee.useRef(null),m=Ee.useRef(false),[p,g]=Ee.useState(0);Ee.useEffect(()=>{d.current&&(c||u.current)&&g(E=>E+1);},[c,e.length]);let f=n||(o?e.length===0?"loading":"loading-more":"idle"),b=f==="loading",x=f==="loading-more",v=a!==void 0?a:e.length>=100,C=reactVirtual.useVirtualizer({count:e.length,getScrollElement:()=>c||u.current,estimateSize:()=>i,overscan:s}),y=v?C:null,w=v?C.getVirtualItems():[];Ee.useEffect(()=>{let E=d.current,D=c||u.current;if(!E||!D||!r||o||!t)return;let L=new IntersectionObserver(z=>{let[A]=z;A?.isIntersecting&&!m.current&&r&&t&&(m.current=true,Promise.resolve(t()).finally(()=>{m.current=false;}));},{root:D,rootMargin:`0px 0px ${l}px 0px`,threshold:0});return L.observe(E),()=>{L.disconnect();}},[r,o,t,c,l,p]);let T=Ee.useCallback((E,D)=>{y?y.scrollToIndex(E,D):u.current&&u.current.children[E]?.scrollIntoView({behavior:"smooth",block:D?.align||"start"});},[y]),R=Ee.useCallback(()=>{y?y.scrollToIndex(0,{align:"start"}):u.current&&u.current.scrollTo({top:0,behavior:"smooth"});},[y]);return {virtualizer:y,virtualItems:w,computedLoadingState:f,isInitialLoad:b,isLoadingMore:x,scrollRef:u,loadMoreRef:d,scrollToIndex:T,scrollToTop:R}}function Vi(e,t){let[r,o]=Ee.useState(()=>{if(typeof window>"u")return t;try{let i=window.localStorage.getItem(e);return i?JSON.parse(i):t}catch(i){return console.error(`Error reading localStorage key "${e}":`,i),t}});Ee.useEffect(()=>{if(!(typeof window>"u"))try{window.localStorage.setItem(e,JSON.stringify(r));}catch(i){console.error(`Error writing to localStorage key "${e}":`,i);}},[e,r]);let n=Ee.useCallback(i=>{try{o(s=>i instanceof Function?i(s):i);}catch(s){console.error(`Error setting value for localStorage key "${e}":`,s);}},[e]),a=Ee.useCallback(()=>{try{typeof window<"u"&&window.localStorage.removeItem(e),o(t);}catch(i){console.error(`Error removing localStorage key "${e}":`,i);}},[e,t]);return [r,n,a]}function u0(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 p0(e,t){return t.accessor?typeof t.accessor=="function"?t.accessor(e):e[t.accessor]:null}function em(e,t){let r=p0(t,e);return e.exportValue?e.exportValue(r,t)??"":r==null?"":r instanceof Date?r.toISOString():typeof r=="object"?JSON.stringify(r):r}function Cc(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 Sc(e){let{columns:t,data:r,metadata:o={}}=e;try{let n=Cc(t);if(n.length===0)throw new Error("No exportable columns found");tm(n);let a=r.map(l=>{let u={};for(let d of n){let m=d.exportLabel||d.label;u[m]=em(d,l);}return u}),i=Fv__default.default.unparse(a,{header:!0,skipEmptyLines:!0}),s=new Blob([i],{type:"text/csv;charset=utf-8;"}),c=u0(o.filename||"table-data","csv",o.timestamp!==!1);fileSaver.saveAs(s,c);}catch(n){throw new Error(`CSV export failed: ${n instanceof Error?n.message:"Unknown error"}`)}}function m0(e){let{columns:t,data:r}=e,o=Cc(t);return tm(o),r.map(n=>{let a={};for(let i of o){let s=i.exportLabel||i.label;a[s]=em(i,n);}return a})}function f0(e){return Cc(e).map(t=>t.exportLabel||t.label)}function rm({columns:e,data:t,metadata:r}){let n=e.filter(i=>i.exportable!==false).length>0&&t.length>0;return {exportCSV:Ee.useCallback(async()=>{try{await Sc({columns:e,data:t,metadata:r});}catch(i){throw console.error("Table export failed:",i),i}},[e,t,r]),canExport:n}}function zi(e=true){let[t,r]=Ee.useState(null);return Ee.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 wc=class{constructor(){Ca(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();}},re=new wc;var mo=(e,t="Yes",r="No")=>e==null?null:e?t:r,h0=e=>mo(e,"Enabled","Disabled"),y0=e=>mo(e,"On","Off"),v0=e=>mo(e,"Active","Inactive"),C0=e=>mo(e,"True","False"),S0=e=>mo(e,"\u2713","\u2717"),fo=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},om=(e,t)=>{if(t.hideWhenNull&&e==null)return null;if(e==null)return t.nullText??null;let r=fo(e);return r===null?t.nullText??null:mo(r,t.trueText??"Yes",t.falseText??"No")};re.register("boolean",(e,t,r)=>{let o=fo(e);return o!==null?mo(o,typeof t=="string"?t:"Yes",typeof r=="string"?r:"No"):null});re.register("yesNo",e=>{let t=fo(e);return t!==null?mo(t,"Yes","No"):null});re.register("enabledDisabled",e=>{let t=fo(e);return t!==null?h0(t):null});re.register("onOff",e=>{let t=fo(e);return t!==null?y0(t):null});re.register("activeInactive",e=>{let t=fo(e);return t!==null?v0(t):null});re.register("trueFalse",e=>{let t=fo(e);return t!==null?C0(t):null});re.register("checkmark",e=>{let t=fo(e);return t!==null?S0(t):null});var le=e=>e==null,nm=(e,t=0)=>le(e)?null:`${e.toFixed(t)}%`,am=(e,t=0)=>nm(e,t)??"\u2014",w0=e=>le(e)?null:Math.round(e).toString(),N0=(e,t=1)=>le(e)?null:e.toFixed(t),k0=(e,t,r=true)=>{if(le(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)},T0=(e,t="short")=>le(e)?null:new Intl.NumberFormat("en-US",{notation:"compact",compactDisplay:t}).format(e),P0=(e,t=2)=>le(e)?null:e.toExponential(t),im=(e,t="USD",r)=>{if(le(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)},sm=(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)},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);return isNaN(r)?t.nullText??null:im(r,t.currency,t)};re.register("percentage",(e,t)=>typeof e=="number"?nm(e,typeof t=="number"?t:0):null);re.register("integer",e=>typeof e=="number"?w0(e):null);re.register("float",(e,t)=>typeof e=="number"?N0(e,typeof t=="number"?t:1):null);re.register("number",(e,t,r)=>{let o=typeof e=="string"?parseFloat(e):Number(e);return isNaN(o)?null:k0(o,typeof t=="number"?t:void 0,typeof r=="boolean"?r:true)});re.register("compact",(e,t)=>typeof e=="number"?T0(e,t==="long"?"long":"short"):null);re.register("scientific",(e,t)=>typeof e=="number"?P0(e,typeof t=="number"?t:2):null);re.register("currency",(e,t,r)=>typeof e=="number"?im(e,typeof t=="string"?t:"USD",typeof r=="object"&&r!==null?r:{}):null);function AD(e,t=1){return le(e)?null:Math.abs(e)>=1e3?`${(e/1e3).toFixed(t)} MWh`:`${e.toFixed(t)} kWh`}function ID(e,t=1){return le(e)?null:Math.abs(e)>=1e3?`${(e/1e3).toFixed(t)} MW`:`${e.toFixed(t)} kW`}function Rr({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=Wo(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=Wo(e,{type:"date"});return jsxRuntime.jsx("time",{dateTime:e.toISOString(),title:e.toISOString(),children:n})}if(typeof e=="number")return Wo(e,{type:"number"});if(typeof e=="boolean")return Wo(e,{type:"boolean"})}return String(e)}function zD(e,t,r){return Ee__namespace.default.useCallback(o=>Rr({value:o,formatter:e,emptyClassName:t,emptyText:r}),[e,t,r])}var Nc=(e,t=0)=>{if(le(e))return null;let r=e*1e3;return t===0?`${Math.round(r)} mA`:`${r.toFixed(t)} mA`},Hi=(e,t=1)=>le(e)?null:`${e.toFixed(t)} A`,kc=(e,t=2)=>le(e)?null:`${(e/1e3).toFixed(t)} kA`,D0=(e,t)=>{if(le(e))return null;let r=Math.abs(e);return r>=1e3?kc(e,t??2):r<1?Nc(e,t??0):Hi(e,t??1)},Tc=(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 Nc(r,o??0);case "A":return Hi(r,o??1)}return t.autoScale!==false?D0(r,o):Hi(r,o??1)};re.register("current",Tc);var UD=Nc,YD=Hi,KD=kc;var Go=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},M0=(e,t=false,r)=>{if(!e)return null;let o=Go(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)},Wi=e=>{if(!e)return null;let t=Go(e);return t?t.toRelative():"Invalid Date"},E0=(e,t)=>{if(!e)return null;let r=Go(e);return r?(t?r.setZone(t):r).toLocaleString(luxon.DateTime.DATETIME_MED_WITH_WEEKDAY):"Invalid Date"},L0=e=>{if(!e)return null;let t=Go(e);return t?t.toISO():null},A0=(e,t,r)=>{if(!e)return null;let o=Go(e);return o?(r?o.setZone(r):o).toFormat(t):"Invalid Date"},ZD=e=>{let t=Go(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},cm=(e,t)=>{if(t.hideWhenNull&&e==null)return null;if(e==null)return t.nullText??null;let r=Go(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)};re.register("date",(e,t,r)=>M0(e,typeof t=="boolean"?t:false,typeof r=="string"?r:void 0));re.register("relativeTime",e=>Wi(e));re.register("fullDateTime",(e,t)=>E0(e,typeof t=="string"?t:void 0));re.register("isoString",e=>L0(e));re.register("customDateFormat",(e,t,r)=>typeof t=="string"?A0(e,t,typeof r=="string"?r:void 0):null);var Pc=(e,t=1)=>le(e)?null:`${e.toFixed(t)} m`,I0=(e,t=1)=>le(e)?null:`${(e*100).toFixed(t)} cm`,F0=(e,t=0)=>le(e)?null:`${(e*1e3).toFixed(t)} mm`,Rc=(e,t=1)=>le(e)?null:`${(e/1e3).toFixed(t)} km`,Dc=(e,t=0)=>le(e)?null:`${e.toFixed(t)} ft`,B0=(e,t=1)=>le(e)?null:`${e.toFixed(t)} in`,Mc=(e,t=1)=>le(e)?null:`${e.toFixed(t)} mi`,Ec=(e,t=0)=>le(e)?null:`${e.toFixed(t)} yd`,_D=(e,t=1)=>le(e)?null:`${e.toFixed(t)} nm`,eM=e=>e*3.28084,tM=e=>e/3.28084,rM=e=>e*1.60934,oM=e=>e/1.60934,nM=e=>e/5280,dm=e=>e*5280,aM=e=>e/1609.34,iM=e=>e*1609.34,sM=e=>e*.9144,lM=e=>e/.9144,cM=e=>e*2.54,dM=e=>e/2.54,um=(e,t=false,r=1)=>{if(le(e))return null;let o=Math.abs(e);return t?o>=1e3?Rc(e,r):o<.01?F0(e,0):o<1?I0(e,r):Pc(e,r):o<.01?Dc(dm(e),0):o<.1?Ec(dm(e)/3,0):Mc(e,r)},pm=(e,t)=>{if(t.hideWhenNull&&e==null||t.hideWhenZero&&e===0)return null;if(e==null)return t.nullText??null;let r=typeof e=="string"?parseFloat(e):Number(e);if(isNaN(r))return t.nullText??null;let o=t.decimals??1;if(t.autoScale){let n=t.unit==="m"||t.unit==="km";return um(r,n,o)}switch(t.unit){case "km":return Rc(r,o);case "ft":return Dc(r,o);case "mi":return Mc(r,o);case "yd":return Ec(r,o);default:return Pc(r,o)}};re.register("miles",(e,t)=>typeof e=="number"?Mc(e,typeof t=="number"?t:1):null);re.register("kilometers",(e,t)=>typeof e=="number"?Rc(e,typeof t=="number"?t:1):null);re.register("meters",(e,t)=>typeof e=="number"?Pc(e,typeof t=="number"?t:1):null);re.register("feet",(e,t)=>typeof e=="number"?Dc(e,typeof t=="number"?t:0):null);re.register("yards",(e,t)=>typeof e=="number"?Ec(e,typeof t=="number"?t:0):null);re.register("inches",(e,t)=>typeof e=="number"?B0(e,typeof t=="number"?t:1):null);re.register("autoScaleDistance",(e,t,r)=>typeof e=="number"?um(e,typeof t=="boolean"?t:false,typeof r=="number"?r:1):null);var Lc=(e,t=1)=>le(e)?null:`${e.toFixed(t)} Wh`,Ac=(e,t=1)=>le(e)?null:`${(e/1e3).toFixed(t)} kWh`,mm=(e,t=1)=>le(e)?null:`${(e/1e6).toFixed(t)} MWh`,fm=(e,t=1)=>le(e)?null:`${(e/1e9).toFixed(t)} GWh`,gm=(e,t=1)=>{if(le(e))return null;let r=Math.abs(e);return r>=1e9?fm(e,t):r>=1e6?mm(e,t):r>=1e3?Ac(e,t):Lc(e,t)},V0={Wh:1,kWh:1e3,MWh:1e6,GWh:1e9},Ic=(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*V0[t.sourceUnit]:r,n=t.decimals??1;if(t.unit)switch(t.unit){case "GWh":return fm(o,n);case "MWh":return mm(o,n);case "kWh":return Ac(o,n);case "Wh":return Lc(o,n)}return t.autoScale!==false?gm(o,n):Lc(o,n)};re.register("kWh",e=>typeof e=="number"?Ac(e):null);re.register("autoScaleEnergy",(e,t)=>typeof e=="number"?gm(e,typeof t=="number"?t:1):null);re.register("energy",Ic);var Gi=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},Fc=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():Gi(e)},In=e=>e?e.startsWith("+")||e.length>11?Fc(e):Gi(e):null,bm=(e,t)=>{if(t.hideWhenNull&&e==null)return null;if(e==null)return t.nullText??null;let r=String(e);if(t.international)return Fc(r);switch(t.country){case "US":case "CA":return Gi(r);default:return In(r)}};re.register("phoneNumber",e=>typeof e=="string"?In(e):null);re.register("usPhone",e=>typeof e=="string"?Gi(e):null);re.register("internationalPhone",e=>typeof e=="string"?Fc(e):null);var Ui=(e,t=0)=>le(e)?null:t===0?`${Math.round(e)} W`:`${e.toFixed(t)} W`,Bc=(e,t=1)=>le(e)?null:`${(e/1e3).toFixed(t)} kW`,Vc=(e,t=1)=>le(e)?null:`${(e/1e6).toFixed(t)} MW`,zc=(e,t=2)=>le(e)?null:`${(e/1e9).toFixed(t)} GW`,z0=(e,t)=>{if(le(e))return null;let r=Math.abs(e);return r>=1e9?zc(e,t??2):r>=1e6?Vc(e,t??1):r>=1e3?Bc(e,t??1):Ui(e,t??0)},Oc=(e,t)=>{if(t.hideWhenNull&&e==null||t.hideWhenZero&&e===0)return null;if(e==null)return t.nullText??null;let r=typeof e=="string"?parseFloat(e):Number(e);if(isNaN(r))return t.nullText??null;let o=t.decimals;if(t.unit)switch(t.unit){case "GW":return zc(r,o??2);case "MW":return Vc(r,o??1);case "kW":return Bc(r,o??1);case "W":return Ui(r,o??0)}return t.autoScale!==false?z0(r,o):Ui(r,o??0)};re.register("power",Oc);var yM=Ui,vM=Bc,CM=Vc,SM=zc;var Hc=(e,t=1)=>le(e)?null:`${(e*1e3).toFixed(t)} m\u03A9`,Yi=(e,t=1)=>le(e)?null:`${e.toFixed(t)} \u03A9`,xm=(e,t=1)=>le(e)?null:`${(e/1e3).toFixed(t)} k\u03A9`,hm=(e,t=2)=>le(e)?null:`${(e/1e6).toFixed(t)} M\u03A9`,O0=(e,t)=>{if(le(e))return null;let r=Math.abs(e);return r>=1e6?hm(e,t??2):r>=1e3?xm(e,t??1):r<1?Hc(e,t??1):Yi(e,t??1)},Wc=(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 hm(r,o??2);case "k\u03A9":return xm(r,o??1);case "m\u03A9":return Hc(r,o??1);case "\u03A9":return Yi(r,o??1)}return t.autoScale!==false?O0(r,o):Yi(r,o??1)};re.register("resistance",Wc);re.register("ohms",e=>typeof e=="number"?Yi(e):null);re.register("milliohms",e=>typeof e=="number"?Hc(e):null);var ym=e=>{switch(e){case "FAHRENHEIT":return "F";case "CELSIUS":return "C";case "KELVIN":return "K";default:return "F"}},vm=(e,t=0)=>le(e)?null:`${e.toFixed(t)}\xB0F`,Cm=(e,t=true,r=0)=>le(e)?null:`${(t?(e-32)*(5/9):e).toFixed(r)}\xB0C`,Sm=(e,t=true,r=0)=>le(e)?null:`${(t?(e-32)*(5/9)+273.15:e+273.15).toFixed(r)}K`,H0=e=>e*9/5+32,W0=e=>(e-32)*(5/9),DM=e=>e+273.15,G0=e=>e-273.15,MM=e=>W0(e)+273.15,EM=e=>H0(G0(e)),wm=(e,t="F",r=0)=>{if(le(e))return null;switch(typeof t=="string"&&t.length>1?ym(t):t){case "C":return Cm(e,true,r);case "K":return Sm(e,true,r);default:return vm(e,r)}},Nm=(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 wm(r,n,o)};re.register("temperature",(e,t,r)=>typeof e=="number"?wm(e,typeof t=="string"?t:"F",typeof r=="number"?r:0):null);re.register("fahrenheit",(e,t)=>typeof e=="number"?vm(e,typeof t=="number"?t:0):null);re.register("celsius",(e,t,r)=>typeof e=="number"?Cm(e,typeof t=="boolean"?t:true,typeof r=="number"?r:0):null);re.register("kelvin",(e,t,r)=>typeof e=="number"?Sm(e,typeof t=="boolean"?t:true,typeof r=="number"?r:0):null);var U0=(e,t)=>!!(t.hideWhenNull&&e==null||t.hideWhenZero&&e===0),km=e=>e?.toUpperCase()??"",Tm=e=>e?.toLowerCase()??"",Pm=e=>e?e.charAt(0).toUpperCase()+e.slice(1).toLowerCase():"",Rm=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(" ")},Dm=e=>e?e.split(/\s+/).map(t=>t.charAt(0).toUpperCase()+t.slice(1).toLowerCase()).join(" "):"",Mm=e=>e?e.charAt(0).toUpperCase()+e.slice(1):"",Em=e=>e?e.replace(/([A-Z])/g," $1").replace(/^./,t=>t.toUpperCase()).trim():"",Lm=e=>e?e.toLowerCase().split("_").map(t=>Mm(t)).join(" "):"",Y0=e=>e?e.includes("_")?Lm(e):e.toUpperCase()===e?Mm(e.toLowerCase()):Em(e):"",Fn=(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)}`},Ki=(e,t=8)=>e?e.length<=t?e:`...${e.slice(-t)}`:"",Ji=(e,t=16,r="...")=>e?e.length<=t?e:e.slice(0,t)+r:"",K0=e=>{if(!e)return "";let t=e.toString(),r=t.slice(-4),o=t.length-4;return o>0?"*".repeat(o)+r:t},Am=(e,t)=>{if(U0(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=km(r);break;case "lowercase":r=Tm(r);break;case "capitalize":r=Dm(r);break;case "titleCase":r=Rm(r);break;case "sentenceCase":r=Pm(r);break}}),t.truncate){let{length:o,position:n,ellipsis:a="..."}=t.truncate;switch(n){case "start":r=Ki(r,o);break;case "middle":r=Fn(r,o);break;case "end":r=Ji(r,o,a);break}}return r};re.register("uppercase",e=>km(String(e)));re.register("lowercase",e=>Tm(String(e)));re.register("sentenceCase",e=>Pm(String(e)));re.register("titleCase",e=>Rm(String(e)));re.register("capitalize",e=>Dm(String(e)));re.register("camelCaseToWords",e=>Em(String(e)));re.register("snakeCaseToWords",e=>Lm(String(e)));re.register("enumToSentenceCase",e=>Y0(String(e)));re.register("truncateMiddle",(e,t)=>Fn(String(e),typeof t=="number"?t:16));re.register("truncateStart",(e,t)=>Ki(String(e),typeof t=="number"?t:8));re.register("truncateEnd",(e,t,r)=>Ji(String(e),typeof t=="number"?t:16,typeof r=="string"?r:"..."));re.register("secret",e=>K0(String(e)));var Gc=(e,t=0)=>{if(le(e))return null;let r=e*1e3;return t===0?`${Math.round(r)} mV`:`${r.toFixed(t)} mV`},ji=(e,t=0)=>le(e)?null:t===0?`${Math.round(e)} V`:`${e.toFixed(t)} V`,Uc=(e,t=1)=>le(e)?null:`${(e/1e3).toFixed(t)} kV`,J0=(e,t)=>{if(le(e))return null;let r=Math.abs(e);return r>=1e3?Uc(e,t??1):r<1?Gc(e,t??0):ji(e,t??0)},Yc=(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 Uc(r,o??1);case "mV":return Gc(r,o??0);case "V":return ji(r,o??0)}return t.autoScale!==false?J0(r,o):ji(r,o??0)};re.register("voltage",Yc);var VM=Gc,zM=ji,OM=Uc;var j0=(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:am(r,t.decimals??0)},Wo=(e,t)=>{switch(t.type){case "text":return Am(e,t);case "number":return sm(e,t);case "percentage":return j0(e,t);case "currency":return lm(e,t);case "date":return cm(e,t);case "boolean":return om(e,t);case "energy":return Ic(e,t);case "power":return Oc(e,t);case "voltage":return Yc(e,t);case "current":return Tc(e,t);case "resistance":return Wc(e,t);case "temperature":return Nm(e,t);case "distance":return pm(e,t);case "phone":return bm(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}},_M=(e,t)=>({type:e,...t});function Mt(...e){return e.filter(Boolean).join(" ")}var Dr={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 et(e,...t){return Mt(Dr[e],...t)}var Bn={xs:16,sm:20,md:24,lg:32,xl:40,"2xl":48},B=Ee.memo(({name:e,size:t="md",color:r,weight:o="regular",className:n,ariaLabel:a,...i})=>{let s=q0__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 Bn?Bn[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 Bm=Ee.memo(({variant:e="subtle",shape:t="square",containerSize:r,containerClassName:o,size:n="md",className:a,name:i,color:s,weight:c,ariaLabel:l,ref:u,...d})=>{let m=typeof n=="string"&&n in Bn?Bn[n]:n,p=r?typeof r=="string"&&r in Bn?Bn[r]:r:m*1.75,g=tailwindMerge.twMerge("inline-flex items-center justify-center flex-shrink-0",t==="circle"?"rounded-full":"rounded-lg",e==="subtle"&&"bg-background-muted",e==="solid"&&"bg-action-brand text-[color:var(--color-action-brand-text)]",e==="outline"&&"border-2 border-current",o);return jsxRuntime.jsx("div",{className:g,style:{width:p,height:p},children:jsxRuntime.jsx(B,{...d,name:i,size:n,color:s,weight:c,className:a,ariaLabel:l})})});Bm.displayName="IconWithContainer";function Kt({transparent:e=false,className:t,children:r,...o}){return jsxRuntime.jsx(reactAriaComponents.ModalOverlay,{...o,className:reactAriaComponents.composeRenderProps(t,(n,a)=>tailwindMerge.twMerge("fixed inset-0 z-50","outline-none focus:outline-none focus-visible:outline-none ring-0 focus:ring-0 focus-visible:ring-0",e?"bg-transparent":["bg-gradient-to-br from-background-modal/20 via-background-modal/15 to-background-modal/20","backdrop-blur-[2px]","supports-[backdrop-filter]:bg-background-modal/15"].join(" "),a.isEntering&&["animate-in fade-in","duration-300 ease-out"].join(" "),a.isExiting&&["animate-out fade-out","duration-200 ease-in"].join(" "),n)),children:r})}function aC({isEntering:e,isExiting:t,className:r="",disableGroup:o=false}){let n=[!o&&"group","bg-background-surface","forced-colors:bg-[Canvas]","shadow-lg","rounded-[var(--control-border-radius)]","bg-clip-padding","border","border-border-default","outline-none"].filter(Boolean).join(" "),a=e?["animate-in","fade-in","placement-bottom:slide-in-from-top-1","placement-top:slide-in-from-bottom-1","placement-left:slide-in-from-right-1","placement-right:slide-in-from-left-1","ease-out","duration-200"].join(" "):"",i=t?["animate-out","fade-out","placement-bottom:slide-out-to-top-1","placement-top:slide-out-to-bottom-1","placement-left:slide-out-to-right-1","placement-right:slide-out-to-left-1","ease-in","duration-150"].join(" "):"";return [n,a,i,r].filter(Boolean).join(" ")}function Ze({children:e,showArrow:t=false,withBackdrop:r=false,className:o,isDismissable:n=true,disableGroup:a=false,...i}){let c=reactAriaComponents.useSlottedContext(reactAriaComponents.PopoverContext)?.trigger==="SubmenuTrigger",l=t?12:8;l=c?l-6:l;let u=jsxRuntime.jsxs(reactAriaComponents.Popover,{offset:l,...i,className:reactAriaComponents.composeRenderProps(o,(d,m)=>aC({...m,className:d,disableGroup:a})),children:[t&&jsxRuntime.jsx(reactAriaComponents.OverlayArrow,{children:jsxRuntime.jsx("svg",{width:12,height:12,viewBox:"0 0 12 12",className:"block fill-background-surface stroke-border-default stroke-1 group-placement-left:-rotate-90 group-placement-right:rotate-90 group-placement-bottom:rotate-180 forced-colors:fill-[Canvas] forced-colors:stroke-[ButtonBorder]",children:jsxRuntime.jsx("path",{d:"M0 0 L6 6 L12 0"})})}),e]});return r?jsxRuntime.jsx(Kt,{isDismissable:n,children:jsxRuntime.jsx(reactAriaComponents.Modal,{className:"outline-none focus:outline-none focus-visible:outline-none ring-0 focus:ring-0 focus-visible:ring-0",isDismissable:n,children:u})}):u}var lC={"--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 Vm(e){let t={...e};for(let[r,o]of Object.entries(lC))if(e[r])for(let n of o)e[n]||(t[n]=e[r]);return t}function zm(e){return e.replace(/[{}<>]/g,"")}function Om(e){return Object.entries(e).map(([t,r])=>`${zm(t)}: ${zm(r)};`).join(" ")}function Wm({variables:e,darkVariables:t,children:r}){let n=Ee.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?Vm(e):null,c=i?Vm(t):null,l=s?`[data-brand-scope="${n}"] { ${Om(s)} }`:"",u=c?`.theme-dark [data-brand-scope="${n}"] { ${Om(c)} }`:"",d=[l,u].filter(Boolean).join(`
|
|
4
|
+
`);return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("style",{dangerouslySetInnerHTML:{__html:d}}),jsxRuntime.jsx("div",{"data-brand-scope":n,children:r})]})}var Na=new Map,gt=(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)}`),Na.has(r))return Na.get(r);try{let o=document.body||document.documentElement,a=getComputedStyle(o).getPropertyValue(r).trim();if(a)return Na.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)"?(Na.set(r,s),s):t}catch(o){return console.warn(`Failed to resolve color for ${e}:`,o),t}},qi=()=>{Na.clear();},ka=()=>{let e=[];for(let t=1;t<=12;t++){let r=gt(`--color-viz-categorical-${t}`,"");r&&e.push(r);}return e.length===0?Gm():e},Gm=()=>["#5424db","#d92361","#e86a00","#5d89ff","#9a47e2","#f24cb8","#0ba286","#9c28af","#036e45","#52a119","#ff513d","#046691"],jc=()=>gt("--color-viz-default","#444ae1"),dC=(e,t)=>{let r={},o=ka();return e.forEach((n,a)=>{t&&t[n]?r[n]=t[n]:r[n]=o[a%o.length];}),r};var Um=e=>{let t=e.match(/\d+/g);if(!t||t.length<3)return true;let[r,o,n]=t.map(Number);return (.299*r+.587*o+.114*n)/255>.5},uC=e=>Um(e)?gt("--color-text-primary","#333333"):gt("--color-text-inverse","#ffffff"),Ym=(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()},Km=e=>{let t=ka(),r={};return e.forEach((o,n)=>{r[o]=t[n%t.length];}),r};var qc=(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)},Zc=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]},Jm=(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},Xc=(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=gt(i);n.push(s);}return n},$c=(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=gt(i);n.push(s);}return n},Ta=(e,t,r,o="viridis")=>{let n=Xc(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]},Pa=(e,t,r,o,n="redYellowBlue")=>{let a=$c(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 Qc=Ee.createContext({mode:"system",colorMode:"light",isDarkTheme:false,toggleTheme:()=>{}}),Et=()=>Ee.useContext(Qc);function bC(){return typeof window>"u"?"light":window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function Zm(){if(typeof window>"u")return "system";let e=localStorage.getItem("colorModePreference");return e==="light"||e==="dark"||e==="system"?e:"system"}function Xm(e){return e==="system"?bC():e}var Qm=({children:e})=>{let[t,r]=Ee.useState(Zm),[o,n]=Ee.useState(()=>Xm(Zm())),a=o==="dark",i=Ee.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")),qi();},[]);Ee.useEffect(()=>{qi();let c=Xm(t);if(n(c),i(c),t==="system"){let l=window.matchMedia("(prefers-color-scheme: dark)"),u=d=>{let m=d.matches?"dark":"light";n(m),i(m);};return l.addEventListener("change",u),()=>{l.removeEventListener("change",u);}}},[t,i]);let s=Ee.useCallback(()=>{r(c=>{let l=c==="system"?"light":c==="light"?"dark":"system";return localStorage.setItem("colorModePreference",l),l});},[]);return jsxRuntime.jsx(Qc.Provider,{value:{mode:t,colorMode:o,isDarkTheme:a,toggleTheme:s},children:e})};function Vn(e){return e instanceof Date&&!Number.isNaN(e.getTime())}function Uo(e,t){return Vn(e)?t.format(e):""}function _m(e){if(!Vn(e.start)||!Vn(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=>Uo(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=>Uo(i,a)}function _c(e,t){if(!Vn(e.start)||!Vn(e.end))return ()=>"";let r=(e.end.getTime()-e.start.getTime())/(1e3*60*60),o=t?.compact??false,n=l=>u=>Vn(u)?l(u):"";if(r<=24){if(o)return n(u=>{let d=u.getHours(),m=d>=12?"pm":"am";return `${d%12||12}${m}`});let l=new Intl.DateTimeFormat("en",{hour:"numeric",minute:"2-digit"});return u=>Uo(u,l)}if(r<=48){if(o)return n(u=>{let d=u.getMonth()+1,m=u.getDate(),p=u.getHours(),g=p>=12?"p":"a",f=p%12||12;return `${d}/${m} ${f}${g}`});let l=new Intl.DateTimeFormat("en",{month:"short",day:"numeric",hour:"numeric"});return u=>Uo(u,l)}if(r<=168){if(o)return n(u=>{let d=u.getDate();return `${u.toLocaleDateString("en",{weekday:"short"}).charAt(0)}${d}`});let l=new Intl.DateTimeFormat("en",{weekday:"short",day:"numeric"});return u=>Uo(u,l)}if(r<=720){if(o)return n(u=>{let d=u.getMonth()+1,m=u.getDate();return `${d}/${m}`});let l=new Intl.DateTimeFormat("en",{month:"short",day:"numeric"});return u=>Uo(u,l)}let a=e.start.getFullYear(),i=e.end.getFullYear(),s=a!==i;if(o)return n(l=>{let u=l.getMonth()+1,d=l.getDate(),m=s?`/${l.getFullYear().toString().slice(-2)}`:"";return `${u}/${d}${m}`});let c=new Intl.DateTimeFormat("en",{month:"short",day:"numeric",...s&&{year:"numeric"}});return l=>Uo(l,c)}function Oe(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 Ce(e,t){return reactAriaComponents.composeRenderProps(e,r=>tailwindMerge.twMerge(t,r))}var Le={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 CC="flex font-medium justify-center items-center gap-2 text-center transition rounded-[var(--control-border-radius)] whitespace-nowrap box-border",SC="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",wC={primary:SC,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-action-destructive text-[color:var(--color-action-destructive-text)] hover:bg-action-destructive-hover forced-colors:bg-[Mark] forced-colors:text-[MarkText] border-2 border-transparent",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"},NC="opacity-50 cursor-not-allowed pointer-events-none",kC="opacity-100 cursor-pointer",TC={"top-right":"-right-2 -top-2","top-left":"-left-2 -top-2","bottom-right":"-right-2 -bottom-2","bottom-left":"-left-2 -bottom-2"},PC={primary:"bg-action-primary text-[color:var(--color-action-primary-text)]",destructive:"bg-action-destructive text-[color:var(--color-action-destructive-text)] hover:bg-action-destructive-hover forced-colors:bg-[Mark] forced-colors:text-[MarkText] border-2 border-transparent"};function RC(e){return !e||e==="default"||e==="brand"?"primary":e}function DC(e){let{variant:t="primary",size:r="md",isDisabled:o,fullWidth:n=false,isLoading:a=false}=e,i=RC(t),s=i==="unstyled"?"":`${CC} ${wC[i]}`;i!=="unstyled"&&(s+=` ${Le[r].text} ${Le[r].height} ${Le[r].padding} ${Le[r].gap}`),o||a?s+=` ${NC}`:s+=` ${kC}`,n?s+=` ${tf.full}`:s+=` ${tf.default}`;let c=i==="primary"?"focus-visible:outline-action-primary":void 0;return [s,Oe(),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:u,badgeNumber:d,badgeVariant:m="primary",badgePosition:p="top-right",style:g,target:f,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})]}),w=(d??0)>0,T=tailwindMerge.twMerge(DC(e),u),R=l?{href:l,target:f,rel:b,...x}:{};if(l){let{onPress:D,onPressStart:L,onPressEnd:z,onPressChange:A,onPressUp:S,onAuxClick:N,onContextMenu:F,onDoubleClick:W,...I}=x;Object.assign(R,I);}let E=l?jsxRuntime.jsx(reactAriaComponents.Link,{...R,...o&&{"aria-busy":true},style:w?void 0:g,className:T,children:o?y:typeof r=="function"?(function(D){return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[s==="left"&&v,r(D),s==="right"&&v]})}):C}):jsxRuntime.jsx(reactAriaComponents.Button,{...x,...o&&{"aria-busy":true},style:w?void 0:g,className:T,children:o?y:typeof r=="function"?(function(D){return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[s==="left"&&v,r(D),s==="right"&&v]})}):C});return w?jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("relative flex",u),style:g,children:[E,jsxRuntime.jsx("span",{className:`absolute ${TC[p]} flex h-5 w-5 items-center justify-center rounded-full ${PC[m]} text-xs font-medium`,"aria-label":`${d} items`,children:d})]}):E}function td({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 bo({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(td,{action:r,defaultVariant:"destructive"})}),jsxRuntime.jsxs("div",{className:"flex items-center gap-3",children:[t&&jsxRuntime.jsx(td,{action:t,defaultVariant:"secondary"}),e&&jsxRuntime.jsx(td,{action:e,defaultVariant:"primary"})]})]})]})}var MC={heading:{sm:Dr.headingSm,md:Dr.headingMd,lg:Dr.headingLg,xl:Dr.headingXl},display:{sm:Dr.displaySm,md:Dr.displayMd,lg:Dr.displayLg,xl:Dr.displayXl}},EC={page:"h-16 leading-[62px]"};function Lt({tag:e="h1",variant:t="heading",size:r="lg",height:o,className:n="",children:a}){let i=r==="xs"?"sm":r,s=MC[t][i],c=o?EC[o]:"";return jsxRuntime.jsx(e,{className:Mt(s,"text-text-primary",c,n),children:a})}var St=({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(B,{name:"CaretLeft","data-testid":"back-arrow"})}),i||jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[e&&jsxRuntime.jsx(Lt,{size:"xs",children:e}),t&&!r&&jsxRuntime.jsx(Q,{variant:"icon",onPress:t,"aria-label":"Close dialog",children:jsxRuntime.jsx(B,{name:"X","data-testid":"close-button"})})]})]});var J=({width:e,height:t,variant:r="rect",animation:o="pulse",gradient:n=false,flex:a=false,stack:i,responsive:s,delay:c=0,adjustAnimationSpeedBasedOnWidth:l=false,ariaLabel:u,className:d,"data-testid":m})=>{let[p,g]=Ee.useState(c===0);if(Ee.useEffect(()=>{if(c>0){let w=setTimeout(()=>g(true),c);return ()=>clearTimeout(w)}},[c]),!p)return null;let f=n?"bg-gradient-to-r from-[var(--color-skeleton-base)] via-[var(--color-skeleton-highlight)] to-[var(--color-skeleton-base)]":"bg-[var(--color-skeleton-base)]",b=l&&e?(()=>{let w=typeof e=="number"?e:parseFloat(String(e));return isNaN(w)?"":`animation-duration-[${Math.max(.8,w/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(([w,T])=>`${w}:w-[${T}]`).join(" "):"";return i?jsxRuntime.jsx("div",{className:"space-y-2","data-testid":m,children:i.map((w,T)=>jsxRuntime.jsx("div",{className:tailwindMerge.twMerge(f,x,v,C,y,d),style:{width:w,height:t}},T))}):jsxRuntime.jsx("div",{className:tailwindMerge.twMerge(f,x,v,C,y,d),style:{width:e,height:t},role:"presentation","aria-hidden":!u,"aria-label":u??void 0,"data-testid":m})},nf=({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 VC={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"},zC="rounded-lg",od={square:"aspect-square",video:"aspect-video",wide:"aspect-[2/1]",auto:""},OC={start:"justify-start",end:"justify-end",center:"justify-center",between:"justify-between"};function Ae({variant:e="outlined",className:t,children:r,isLoading:o=false,layout:n="default"}){return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("w-full overflow-hidden",VC[e],zC,n==="flex"&&"flex flex-col",t),"data-testid":"card",children:o?jsxRuntime.jsx(J,{width:"100%",height:"100%",className:"rounded-none"}):r})}function nd({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(Lt,{tag:"h3",size:"sm",className:"text-text-primary",children:e}):e}),t&&jsxRuntime.jsx("div",{className:et("bodySm","text-text-secondary"),children:t})]}),r&&jsxRuntime.jsx("div",{className:"flex-shrink-0",children:r})]})})}function ad({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",od[r],o),children:jsxRuntime.jsx(J,{width:"100%",height:"100%"})}):n?jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("overflow-hidden",od[r],o),children:n}):e?jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("overflow-hidden",od[r],o),children:jsxRuntime.jsx("img",{src:e,alt:t||"",className:"w-full h-full object-cover",loading:"lazy"})}):null}function id({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 sd({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",OC[r],e),children:t}):null}Ae.Header=nd;Ae.Media=ad;Ae.Content=id;Ae.Footer=sd;var gr=class extends Ee.Component{constructor(){super(...arguments);Ca(this,"state",{hasError:false});Ca(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(Ae,{children:[this.props.title&&jsxRuntime.jsx(Ae.Header,{title:this.props.title}),jsxRuntime.jsx(Ae.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 UC=.3,YC=.5;function Xe({children:e,title:t,headerContent:r,titleAlign:o="left",hideCloseIcon:n=false,hasBackArrow:a=false,onBack:i,isOpen:s,onClose:c,isDismissable:l=true,transparentOverlay:u=false,primaryAction:d,secondaryAction:m,footerContent:p,maxHeight:g="80vh",height:f,maxWidth:b="640px",contentPadding:x=true,showHandle:v=true,animationVariant:C="scale",className:y}){let[w,T]=Ee.useState(false),[R,E]=Ee.useState(0),[D,L]=Ee.useState(false),z=zi(s),A=z?.height??null,S=z?.keyboardOffset??0,N=Ee.useRef(null),F=Ee.useRef(null),W=Ee.useRef(null),I=Ee.useRef({isDragging:false,startY:0,startTime:0,pointerId:null});Ee.useEffect(()=>{if(s){let k=setTimeout(()=>{T(true),setTimeout(()=>T(false),600);},400);return ()=>clearTimeout(k)}},[s]),Ee.useEffect(()=>{s||(E(0),L(false),I.current={isDragging:false,startY:0,startTime:0,pointerId:null});},[s]),Ee.useEffect(()=>{let k=F.current;if(!k||!s)return;let V=null,M=h=>{let O=h.target;O&&["INPUT","TEXTAREA","SELECT"].includes(O.tagName)&&(V&&clearTimeout(V),V=setTimeout(()=>{O.scrollIntoView({block:"nearest",behavior:"smooth"});},320));};return k.addEventListener("focusin",M),()=>{k.removeEventListener("focusin",M),V&&clearTimeout(V);}},[s]);let K=Ee.useCallback(k=>{l&&(k.pointerType!=="touch"&&k.pointerType!=="pen"||(W.current&&(clearTimeout(W.current),W.current=null),I.current={isDragging:true,startY:k.clientY,startTime:Date.now(),pointerId:k.pointerId},L(false),k.currentTarget.setPointerCapture(k.pointerId)));},[l]),X=Ee.useCallback(k=>{let{isDragging:V,startY:M,pointerId:h}=I.current;if(!V||k.pointerId!==h)return;let O=k.clientY-M;E(Math.max(0,O));},[]),G=Ee.useCallback(k=>{let{isDragging:V,startY:M,startTime:h,pointerId:O}=I.current;if(!V||k.pointerId!==O)return;let H=k.clientY-M,j=Date.now()-h,oe=H/j;I.current={isDragging:false,startY:0,startTime:0,pointerId:null};let Z=(N.current?.getBoundingClientRect().height??0)*UC;(H>Z||oe>YC&&H>50)&&l?(c?.(),E(0)):(L(true),E(0),W.current=setTimeout(()=>{L(false),W.current=null;},200));},[l,c]);if(!s)return null;let Y=t||r,P=d||m||p;return jsxRuntime.jsx(gr,{children:jsxRuntime.jsx(Kt,{isOpen:s,onOpenChange:k=>{k||c?.();},isDismissable:l,transparent:u,style:{paddingBottom:S>0?`${S}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:N,className:tailwindMerge.twMerge("w-full",D&&"transition-transform duration-200"),style:{transform:R>0?`translateY(${R}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,...f?{height:f}:{maxHeight:/\d/.test(g)?A!==null?`min(${g}, ${Math.max(A-8,0)}px, 100dvh)`:`min(${g}, 100dvh)`:g}},children:[v&&jsxRuntime.jsx("div",{className:"absolute top-0 left-0 right-0 h-8 z-10 flex justify-center items-start pt-2 touch-none cursor-grab active:cursor-grabbing",onPointerDown:K,onPointerMove:X,onPointerUp:G,onPointerCancel:G,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",w&&"animate-[handle-wiggle_0.6s_ease-in-out]")})}),Y&&(a?jsxRuntime.jsx(St,{title:t,headerContent:r,titleAlign:o,hideCloseIcon:n||!c,hasBackArrow:true,onBack:i??(()=>{}),onClose:c||(()=>{})}):jsxRuntime.jsx(St,{title:t,headerContent:r,titleAlign:o,hideCloseIcon:n||!c,onClose:c||(()=>{})})),jsxRuntime.jsx("div",{ref:F,className:tailwindMerge.twMerge("flex-1 min-h-0 overflow-y-auto overscroll-contain",x?"p-4":"p-0"),children:e}),P&&jsxRuntime.jsx(bo,{primaryAction:d,secondaryAction:m,footerContent:p})]})})})})})}Xe.displayName="Tray";function Hn({children:e,items:t,className:r,align:o="left",textAlign:n="left",size:a="md",onAction:i,header:s,footer:c,useMobileTray:l=true,popoverClassName:u}){let[d,m]=Ee.useState(false),{isMobile:p}=Rt();if(l&&p){let f=Ee__namespace.default.isValidElement(e)?Ee__namespace.default.cloneElement(e,{onPress:()=>m(true)}):e,v=(C=>{if(typeof C=="string")return C;if(Ee__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(T=>typeof T=="string")||""}return ""})(e)||"Actions";return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("div",{className:r,children:f}),jsxRuntime.jsx(Xe,{isOpen:d,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(Ze,{className:tailwindMerge.twMerge("w-fit min-w-[180px] overflow-auto rounded-[var(--control-border-radius)] border border-border-default","bg-background-surface shadow-lg","animate-in fade-in zoom-in-97","duration-200 ease-out","data-[exiting]:animate-out data-[exiting]:fade-out data-[exiting]:zoom-out-97","data-[exiting]:duration-150 data-[exiting]:ease-in",o==="right"?"origin-top-right":"origin-top-left",u),placement:o==="right"?"bottom end":"bottom start",children:jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("flex min-w-[180px] flex-col gap-1",u),children:[s?jsxRuntime.jsx("div",{className:"px-3 pb-2 pt-3",children:s}):null,jsxRuntime.jsx(reactAriaComponents.Menu,{className:"!outline-none",children:t.map(f=>jsxRuntime.jsx(ZC,{id:f.id,onAction:()=>{f.onAction?f.onAction():i?.(f);},textAlign:n,size:a,iconName:f.iconName,isDisabled:f.disabled,variant:f.variant,subtitle:f.subtitle,render:f.render,noPadding:f.noPadding,"data-testid":f.testId,children:f.name},f.id))}),c?jsxRuntime.jsx("div",{className:"px-3 pb-3 pt-2",children:c}):null]})})]})})}function ZC({textAlign:e="left",iconName:t,size:r="md",isDisabled:o,children:n,variant:a="default",subtitle:i,render:s,noPadding:c,...l}){let u={sm:"px-3 py-2 text-sm",md:i?"px-4 py-2.5 text-base":"px-4 py-2 text-base"},d="text-text-primary hover:bg-background-hover data-[focused]:bg-background-hover data-[focus-visible]:ring-2 data-[focus-visible]:ring-action-primary data-[focus-visible]:ring-inset",m={primary:d,default:d,destructive:"text-feedback-error-text hover:bg-feedback-error-background data-[focused]:bg-feedback-error-background data-[focus-visible]:ring-2 data-[focus-visible]:ring-feedback-error-border data-[focus-visible]:ring-inset"};return s?jsxRuntime.jsx(reactAriaComponents.MenuItem,{...l,isDisabled:o,className:tailwindMerge.twMerge("group box-border flex w-full cursor-pointer items-center rounded-sm outline-none transition-colors",!c&&u[r],m[a],e==="right"?"justify-end":"justify-start",o&&"pointer-events-none opacity-50"),children:s()}):jsxRuntime.jsxs(reactAriaComponents.MenuItem,{...l,isDisabled:o,className:tailwindMerge.twMerge("group box-border flex w-full cursor-pointer items-center rounded-sm outline-none transition-colors",!c&&u[r],m[a],e==="right"?"justify-end":"justify-start",o&&"pointer-events-none opacity-50"),children:[t&&e==="left"&&jsxRuntime.jsx(B,{name:t,size:r==="sm"?16:20,className:"mr-3 flex-shrink-0"}),jsxRuntime.jsxs("div",{className:"flex flex-1 flex-col",children:[jsxRuntime.jsx("span",{className:i?"font-medium":"",children:n}),i&&jsxRuntime.jsx("span",{className:"text-sm text-text-secondary",children:i})]}),t&&e==="right"&&jsxRuntime.jsx(B,{name:t,size:r==="sm"?16:20,className:"ml-3 flex-shrink-0"})]})}var jr=({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 or({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(jr,{size:20,color:"text-text-secondary"}),t&&jsxRuntime.jsx("span",{className:"text-sm","aria-hidden":"true",children:t})]});return o||n}var Wn=Ee.createContext({variant:"timeline",size:"md"});function mf(){return Ee.useContext(Wn)}function Qi(e){return Ee.isValidElement(e)&&e.type===ts}function oS(e){return Ee.isValidElement(e)&&e.type===es}function md({variant:e="timeline",size:t="md",className:r,children:o,items:n,renderItem:a,isLoading:i=false,loadingState:s,error:c=null,renderLoadingSkeleton:l,loadingSkeletonCount:u=5,emptyMessage:d="No activity found.",onLoadMore:m,hasMore:p=false,enableVirtualization:g,estimatedItemSize:f,loadingIndicator:b,height:x,maxHeight:v,...C}){let y=Ee.useRef(null),{isMobile:w}=Rt(),T=w?"stacked":e,R=n!==void 0&&a!==void 0,{scrollRef:E,loadMoreRef:D,virtualizer:L,virtualItems:z,isLoadingMore:A,computedLoadingState:S}=po({items:n||[],onLoadMore:R?m:void 0,hasMore:R?p:false,isLoading:i,loadingState:s,enableVirtualization:R?g:false,estimatedItemSize:f||(T==="stacked"?120:150),overscan:5}),N=R&&E?E:y,F=Ee.useMemo(()=>({variant:T,size:t}),[T,t]),W=T==="timeline"?t==="sm"?"gap-4":"gap-6":"gap-0",I=T==="stacked"?"divide-y divide-border-subtle rounded-lg border border-border-subtle bg-background-surface":"",K={};if(R&&m&&(x?(K.height=typeof x=="number"?`${x}px`:x,K.overflowY="auto"):v?(K.maxHeight=typeof v=="number"?`${v}px`:v,K.overflowY="auto"):(K.height="600px",K.overflowY="auto")),R){let Y=S==="loading"||i&&(!n||n.length===0);if(Y){let k=l?jsxRuntime.jsx(jsxRuntime.Fragment,{children:Array.from({length:u}).map((V,M)=>jsxRuntime.jsx("div",{children:l()},`skeleton-${M}`))}):jsxRuntime.jsx(jsxRuntime.Fragment,{children:Array.from({length:u}).map((V,M)=>{let h=t==="sm"?"gap-2":"gap-3";if(T==="timeline"){let O=t==="sm"?"pt-3":"pt-4",H=t==="sm"?"p-3":"p-4";return jsxRuntime.jsxs("div",{className:"group relative grid items-start gap-4 grid-cols-[3rem_1fr]",children:[jsxRuntime.jsxs("div",{className:`relative flex h-full flex-col items-center ${O}`,children:[jsxRuntime.jsx(J,{width:32,height:32,variant:"circle"}),M<u-1&&jsxRuntime.jsx("span",{className:"absolute top-[2rem] left-1/2 w-0 border-l-2 border-dotted -translate-x-1/2 h-[calc(100%+2.5rem)] border-border-muted"})]}),jsxRuntime.jsxs("div",{className:`min-w-0 flex flex-col ${h} ${H} rounded-md border border-border-subtle bg-background-surface`,children:[jsxRuntime.jsxs("div",{className:"flex items-center justify-between gap-3",children:[jsxRuntime.jsx(J,{width:"50%",height:16}),jsxRuntime.jsx(J,{width:"15%",height:12})]}),jsxRuntime.jsx(J,{width:"85%",height:t==="sm"?14:15}),jsxRuntime.jsx(J,{width:"70%",height:t==="sm"?14:15})]})]},`skeleton-${M}`)}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-${M}`)})});return jsxRuntime.jsx(Wn.Provider,{value:F,children:jsxRuntime.jsx("div",{ref:N,"data-slot":"feed","data-variant":T,className:tailwindMerge.twMerge("flex flex-col",W,I,r),style:K,...C,children:k})})}if(c)return jsxRuntime.jsx(Wn.Provider,{value:F,children:jsxRuntime.jsx("div",{ref:N,"data-slot":"feed","data-variant":T,className:tailwindMerge.twMerge("flex flex-col",W,I,r),style:K,...C,children:jsxRuntime.jsx("div",{className:"p-4 text-center text-feedback-error-text",children:c})})});if(!n||n.length===0)return jsxRuntime.jsx(Wn.Provider,{value:F,children:jsxRuntime.jsx("div",{ref:N,"data-slot":"feed","data-variant":T,className:tailwindMerge.twMerge("flex flex-col",W,I,r),style:K,...C,children:jsxRuntime.jsx("div",{className:"p-4 text-center text-text-secondary",children:d})})});let P=L?z?.map(k=>({virtualItem:k,item:n[k.index],index:k.index}))||[]:n.map((k,V)=>({item:k,index:V,virtualItem:null}));return jsxRuntime.jsx(Wn.Provider,{value:F,children:jsxRuntime.jsxs("div",{ref:N,"data-slot":"feed","data-variant":T,className:tailwindMerge.twMerge("flex flex-col",W,I,r),style:{...K,position:L?"relative":void 0},...C,children:[L?jsxRuntime.jsxs("div",{style:{height:`${L.getTotalSize()}px`,position:"relative"},children:[P.map(({item:k,index:V,virtualItem:M})=>{if(!k||!M)return null;let h=a(k,V),O=T==="timeline"&&Ee.isValidElement(h)&&Qi(h)?Ee.cloneElement(h,{showConnector:V!==n.length-1}):h;return jsxRuntime.jsx("div",{style:{position:"absolute",top:0,left:0,width:"100%",transform:`translateY(${M.start}px)`},"data-index":M.index,ref:L.measureElement,children:O},`item-${V}`)}),A&&jsxRuntime.jsx("div",{style:{position:"absolute",top:`${L.getTotalSize()}px`,left:0,width:"100%"},children:b||jsxRuntime.jsx(or,{state:"loading-more"})})]}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[P.map(({item:k,index:V})=>{let M=a(k,V);if(T==="timeline"&&Ee.isValidElement(M)&&Qi(M)){let h=V===n.length-1;return jsxRuntime.jsx("div",{children:Ee.cloneElement(M,{showConnector:!h})},`item-${V}`)}return jsxRuntime.jsx("div",{children:M},`item-${V}`)}),A&&(b||jsxRuntime.jsx(or,{state:"loading-more"}))]}),m&&p&&!Y&&jsxRuntime.jsx("div",{ref:D,style:L?{position:"absolute",top:`${L.getTotalSize()}px`,left:0,width:"100%",height:1}:{height:1,width:"100%"}})]})})}let X=Ee.Children.toArray(o),G=X.map((Y,P)=>{if(Qi(Y)){let k=Y.props.showConnector??(T==="timeline"&&P<X.length-1),V=T==="timeline"&&P>0;return Ee.cloneElement(Y,{showConnector:k,showIncomingConnector:V})}if(oS(Y)){let k=P===X.length-1;return Ee.cloneElement(Y,{__isLastGroup:k,__isFirstGroup:P===0})}return Y});return jsxRuntime.jsx(Wn.Provider,{value:F,children:jsxRuntime.jsx("div",{"data-slot":"feed","data-variant":T,className:tailwindMerge.twMerge("flex flex-col",W,I,r),...C,children:G})})}md.displayName="ActivityFeed";function es(e){let{variant:t,size:r}=mf(),{title:o,description:n,actions:a,children:i,className:s,__isLastGroup:c=false,__isFirstGroup:l=false,...u}=e,d=Ee.Children.toArray(i),m=d.map((f,b)=>{if(Qi(f)){let x=f.props.showConnector??(t==="timeline"&&!(c&&b===d.length-1));return Ee.cloneElement(f,{showConnector:x,showIncomingConnector:t==="timeline"&&!(l&&b===0)})}return f}),p=t==="timeline"?"pl-[3rem]":r==="sm"?"px-3":"px-4",g=r==="sm"?"gap-3":"gap-4";return jsxRuntime.jsxs("section",{"data-slot":"group",className:tailwindMerge.twMerge("flex flex-col",s),...u,children:[(o||n||a)&&jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("mb-2 flex flex-wrap items-end justify-between gap-2",p),children:[jsxRuntime.jsxs("div",{className:"flex min-w-0 flex-col gap-1",children:[o&&jsxRuntime.jsx("span",{className:"text-xs font-semibold uppercase tracking-wide text-text-secondary",children:o}),n&&jsxRuntime.jsx("span",{className:"text-sm text-text-secondary",children:n})]}),a&&jsxRuntime.jsx("div",{className:"flex flex-shrink-0 items-center gap-2",children:a})]}),jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("flex flex-col",g),children:m})]})}es.displayName="ActivityFeedGroup";var uf={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"},nS={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"},aS={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 ts(e){let{variant:t,size:r}=mf(),{title:o,description:n,timestamp:a,meta:i,media:s,actions:c,visual:l,icon:u,iconWeight:d,tone:m="neutral",surface:p,isHighlighted:g=false,showConnector:f=true,hideIndicator:b=false,interactive:x,className:v,children:C,onKeyDown:y,showIncomingConnector:w,...T}=e,R=l??(u?jsxRuntime.jsx(B,{name:u,weight:d||"fill",className:"h-4 w-4"}):null),E=p??(t==="stacked"?"minimal":"subtle"),D=r==="sm"?"gap-2":"gap-3",L="text-xs text-text-secondary",z=r==="sm"?"text-sm":"text-[15px]",A="text-xs text-text-secondary",S=x??typeof T.onClick=="function",N=P=>{if(!S){y?.(P);return}P.key===" "?P.preventDefault():P.key==="Enter"&&(P.preventDefault(),P.currentTarget.click()),y?.(P);},F=P=>{S&&P.key===" "&&(P.preventDefault(),P.currentTarget.click());},W=S?tailwindMerge.twMerge("group cursor-pointer",Oe()):void 0,K=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",uf[m]),children:R}),t==="timeline"&&f&&jsxRuntime.jsx("span",{"data-slot":"separator",className:"absolute top-[2rem] left-1/2 w-0 border-l-2 border-dotted -translate-x-1/2 h-[calc(100%+2.5rem)] border-border-muted"})]}),X=g?tailwindMerge.twMerge(nS[m],E==="minimal"?"rounded-md border border-border-muted":aS[m]):"";if(t==="stacked")return jsxRuntime.jsxs("div",{"data-slot":"item","data-variant":"stacked",role:S?"button":void 0,tabIndex:S?0:void 0,className:tailwindMerge.twMerge("flex flex-col",r==="sm"?"px-3 py-3":"px-4 py-4",{minimal:"",subtle:"bg-background-subtle",solid:"bg-background-muted"}[E],X,W,S?"transition-colors hover:bg-background-subtle/80":"",v),onKeyDown:N,onKeyUp:F,...T,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",uf[m]),children:R}),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",D),children:[n&&jsxRuntime.jsx("div",{"data-slot":"description",className:tailwindMerge.twMerge("text-text-secondary",z),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",L),children:a})]})]});let G=E==="minimal"?r==="sm"?"py-2":"py-3":r==="sm"?"p-3":"p-4",Y={minimal:"",subtle:"rounded-md border border-border-subtle bg-background-surface",solid:"rounded-md bg-background-muted shadow-sm"};return jsxRuntime.jsxs("div",{"data-slot":"item","data-variant":"timeline",role:S?"button":void 0,tabIndex:S?0:void 0,className:tailwindMerge.twMerge("group relative grid items-start gap-4 grid-cols-[3rem_1fr]",W,v),onKeyDown:N,onKeyUp:F,...T,children:[b?jsxRuntime.jsx("div",{}):K,jsxRuntime.jsxs("div",{"data-slot":"content",className:tailwindMerge.twMerge("min-w-0 flex flex-col",D,G,Y[E],X,S?"transition-colors group-hover:bg-background-subtle/70":""),children:[jsxRuntime.jsxs("div",{className:"flex items-center justify-between gap-3",children:[jsxRuntime.jsx("div",{"data-slot":"title",className:"min-w-0 flex-1 text-sm font-semibold text-text-primary",children:o}),a&&jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("flex-shrink-0",L),children:a})]}),n&&jsxRuntime.jsx("div",{"data-slot":"description",className:tailwindMerge.twMerge("text-text-secondary",z),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})]})]})}ts.displayName="ActivityItem";function nr({isOpen:e,onClose:t,title:r,headerContent:o,titleAlign:n="left",hideCloseIcon:a=false,hasBackArrow:i=false,onBack:s,children:c,primaryAction:l,secondaryAction:u,tertiaryAction:d,footerContent:m,transparentOverlay:p=false,maxWidth:g="600px",minWidth:f="400px",maxHeight:b="85vh",height:x,mobileMaxHeight:v="90vh",mobileHeight:C,contentPadding:y=true,className:w}){let T=Pt("(max-width: 767px)"),R=zi(T&&e===void 0),E=R?.height??null,D=R?.keyboardOffset??0,L=Ee.useRef(null),z=Ee.useCallback(()=>{L.current&&L.current.scrollTop!==0&&(L.current.scrollTop=0);},[]),A=Ee.useRef(null),S=Ee.useRef(null);Ee.useEffect(()=>{let K=S.current;if(!K||!T)return;let X=null,G=Y=>{let P=Y.target;P&&["INPUT","TEXTAREA","SELECT"].includes(P.tagName)&&(X&&clearTimeout(X),X=setTimeout(()=>{P.scrollIntoView({block:"nearest",behavior:"smooth"});},320));};return K.addEventListener("focusin",G),()=>{K.removeEventListener("focusin",G),X&&clearTimeout(X);}},[T]);let N=Ee.useCallback(()=>{A.current&&A.current.scrollTop!==0&&(A.current.scrollTop=0);},[]);if(e===false)return null;let F=r||o,W=l||u||d||m,I=e!==void 0;return T?I?jsxRuntime.jsx(Xe,{isOpen:e,onClose:t,title:r,headerContent:o,titleAlign:n,hideCloseIcon:a,hasBackArrow:i,onBack:s,primaryAction:l,secondaryAction:u,footerContent:m,transparentOverlay:p,maxHeight:v,height:C,maxWidth:g,contentPadding:y,showHandle:true,animationVariant:"scale",className:w,children:c}):jsxRuntime.jsx(gr,{children:jsxRuntime.jsx(Kt,{isDismissable:true,transparent:p,style:{paddingBottom:D>0?`${D}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:L,onScroll:z,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",w),style:{...C?{height:C}:{maxHeight:/\d/.test(v)?E!==null?`min(${v}, ${Math.max(E-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"})}),F&&(i?jsxRuntime.jsx(St,{title:r,headerContent:o,titleAlign:n,hideCloseIcon:a||!t,hasBackArrow:true,onBack:s,onClose:t||(()=>{})}):jsxRuntime.jsx(St,{title:r,headerContent:o,titleAlign:n,hideCloseIcon:a||!t,onClose:t||(()=>{})})),jsxRuntime.jsx("div",{ref:S,className:tailwindMerge.twMerge("flex-1 min-h-0 overflow-y-auto overscroll-contain",y?"px-6 py-6":"p-0"),children:c}),W&&jsxRuntime.jsx(bo,{primaryAction:l,secondaryAction:u,tertiaryAction:d,footerContent:m})]})})})}):jsxRuntime.jsx(gr,{children:jsxRuntime.jsx(Kt,{...I?{isOpen:e,onOpenChange:K=>{!K&&t&&t();}}:{},isDismissable:true,transparent:p,className:"flex items-center justify-center",children:jsxRuntime.jsx(reactAriaComponents.Modal,{className:"w-full p-4 outline-none focus:outline-none focus-visible:outline-none ring-0 focus:ring-0 focus-visible:ring-0",style:{maxWidth:g},children:jsxRuntime.jsxs(reactAriaComponents.Dialog,{ref:A,onScroll:N,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",w),style:{minWidth:f,...x?{height:x}:{maxHeight:b}},children:[F&&(i?jsxRuntime.jsx(St,{title:r,headerContent:o,titleAlign:n,hideCloseIcon:a||!t,hasBackArrow:true,onBack:s,onClose:t||(()=>{})}):jsxRuntime.jsx(St,{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}),W&&jsxRuntime.jsx(bo,{primaryAction:l,secondaryAction:u,tertiaryAction:d,footerContent:m})]})})})})}function yf({isOpen:e,onClose:t,title:r,message:o,confirmLabel:n="OK",confirmVariant:a="primary",maxWidth:i="400px",minWidth:s="320px"}){return jsxRuntime.jsx(nr,{isOpen:e,onClose:t,title:r,maxWidth:i,minWidth:s,primaryAction:{label:n,onPress:t,variant:a},children:jsxRuntime.jsx("div",{className:"text-text-primary",children:o})})}var os=({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 ns=({topItems:e=[],bottomItems:t=[],bottomContent:r,logo:o,showLogo:n=true,linkComponent:a="a",className:i="",mobileMenuId:s="app-mobile-menu",sidebarCollapseId:c="app-sidebar-collapse"})=>{let l=p=>p.length>0&&"items"in p[0],u=p=>l(p)?p:[{id:"default-section",items:p}],d=(p,g,f)=>jsxRuntime.jsxs("div",{className:"space-y-0.5",children:[p.title&&jsxRuntime.jsx("div",{className:"px-6 py-1 text-xs font-medium text-text-secondary uppercase tracking-wider","data-collapse-hide":"",children:p.title}),jsxRuntime.jsx("div",{className:"space-y-0.5",children:p.items.map(b=>m(b))}),g<f-1&&jsxRuntime.jsx("div",{className:"border-b border-border-subtle mx-6 my-2","data-collapse-hide":""})]},p.id),m=(p,g=false)=>{if(p.children&&p.children.length>0){let x=`category-${p.id}`;return jsxRuntime.jsxs("div",{className:"group/category",children:[jsxRuntime.jsx("input",{type:"checkbox",id:x,className:"peer/category hidden",defaultChecked:p.isExpanded,"aria-hidden":"true"}),jsxRuntime.jsxs("label",{htmlFor:x,className:"flex items-center gap-3 px-6 py-1 text-text-primary hover:bg-background-hover hover:text-text-primary cursor-pointer transition-all duration-200","data-collapse-center":"",children:[p.icon&&jsxRuntime.jsx("span",{className:"flex-shrink-0 w-3.5 h-3.5 flex items-center justify-center transition-all duration-200","data-collapse-icon":"",children:p.icon}),jsxRuntime.jsx("span",{className:"transition-all duration-200","data-collapse-hide":"",children:p.label}),jsxRuntime.jsx("span",{className:"flex-1","data-collapse-hide":""}),jsxRuntime.jsx("svg",{className:"w-4 h-4 transform transition-transform duration-200 peer-checked/category:rotate-180 ml-auto",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg","data-collapse-hide":"",children:jsxRuntime.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 9l-7 7-7-7"})})]}),jsxRuntime.jsx("div",{className:"hidden peer-checked/category:block bg-background-subtle border-l-2 border-border-subtle ml-6","data-collapse-hide-category":"",children:p.children.map(v=>m(v,true))})]},p.id)}let f={href:p.href||"#",className:`flex items-center gap-3 transition-all duration-200 hover:bg-background-hover ${g?"pl-8 pr-6 py-1 text-sm":"px-6 py-1"} ${p.isActive?`bg-action-brand/10 text-action-brand ${g?"":"border-l-2 border-action-brand"}`:"text-text-primary hover:text-text-primary"}`,"aria-current":p.isActive?"page":void 0,"data-collapse-center":g?void 0:""},b=jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[p.icon&&!g&&jsxRuntime.jsx("span",{className:"flex-shrink-0 w-3.5 h-3.5 flex items-center justify-center transition-all duration-200","data-collapse-icon":"",children:p.icon}),jsxRuntime.jsx("span",{className:"transition-all duration-200","data-collapse-hide":"",children:p.label})]});return a==="a"?jsxRuntime.jsx("a",{...f,children:b},p.id):jsxRuntime.jsx(a,{...f,children:b},p.id)};return jsxRuntime.jsxs("div",{className:`flex flex-col h-full ${i}`,children:[jsxRuntime.jsxs("div",{className:"flex items-center justify-between h-[60px] px-6 border-b border-border-default",children:[n&&jsxRuntime.jsx("div",{className:"relative top-[-1px] transition-all duration-200","data-collapse-hide":"",children:o||jsxRuntime.jsx(os,{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":"Toggle sidebar","data-collapse-toggle":"",children:jsxRuntime.jsx("svg",{className:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntime.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M4 6h16M4 12h16M4 18h16"})})}),jsxRuntime.jsx("label",{htmlFor:s,className:"md:hidden flex items-center justify-center w-8 h-8 rounded hover:bg-background-hover cursor-pointer transition-colors","aria-label":"Close menu",children:jsxRuntime.jsx("svg",{className:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntime.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})})]}),jsxRuntime.jsxs("nav",{className:"flex-1 flex flex-col overflow-hidden",children:[e&&e.length>0&&jsxRuntime.jsx("div",{className:"flex-1 overflow-y-auto py-2 scrollbar-hide",children:u(e).map((p,g,f)=>d(p,g,f.length))}),t&&t.length>0&&jsxRuntime.jsx("div",{className:"flex-shrink-0 border-t bg-background-muted/30",children:jsxRuntime.jsx("div",{className:"mt-2 pb-2 space-y-0.5",children:t.map(p=>m(p))})}),r&&jsxRuntime.jsx("div",{className:"flex-shrink-0 border-t border-border-default",children:jsxRuntime.jsx("div",{"data-collapse-hide":"",children:r})})]})]})};var xo={xs:16,sm:20,md:24,lg:32,xl:40,"2xl":48},Jo=Ee.memo(({name:e,size:t="md",color:r,weight:o="regular",className:n,ariaLabel:a,...i})=>{let s=lS__namespace[e];if(!s)return null;let c=typeof t=="string"?t in xo?xo[t]:xo.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}`})});Jo.displayName="IconSSR";var cS=Ee.memo(({variant:e="subtle",shape:t="square",containerSize:r,containerClassName:o,size:n="md",className:a,name:i,color:s,weight:c,ariaLabel:l,ref:u,...d})=>{let m=typeof n=="string"?n in xo?xo[n]:xo.md:n,p=r?typeof r=="string"?r in xo?xo[r]:m*1.75:r:m*1.75,g=tailwindMerge.twMerge("inline-flex items-center justify-center flex-shrink-0",t==="circle"?"rounded-full":"rounded-lg",e==="subtle"&&"bg-background-muted",e==="solid"&&"bg-action-brand text-[color:var(--color-action-brand-text)]",e==="outline"&&"border-2 border-current",o);return jsxRuntime.jsx("div",{className:g,style:{width:p,height:p},children:jsxRuntime.jsx(Jo,{...d,name:i,size:n,color:s,weight:c,className:a,ariaLabel:l})})});cS.displayName="IconSSRWithContainer";var Aa=({rightContent:e,centerContent:t,showMobileMenu:r=true,avatar:o,showColorModeSwitcher:n=false,toggleTheme:a,isDarkThemeEnabled:i=false,colorMode:s,actions:c,className:l="",mobileMenuId:u="app-mobile-menu"})=>{let d=()=>{switch(s||(i?"dark":"light")){case "system":return jsxRuntime.jsx(Jo,{name:"Monitor",size:"sm"});case "light":return jsxRuntime.jsx(Jo,{name:"Sun",size:"sm"});case "dark":return jsxRuntime.jsx(Jo,{name:"Moon",size:"sm"})}},m=()=>{switch(s||(i?"dark":"light")){case "system":return "Switch to light mode";case "light":return "Switch to dark mode";case "dark":return "Switch to system mode";default:return "Toggle theme"}};return jsxRuntime.jsx("header",{className:`h-[60px] bg-background-surface border-b ${l}`,children:jsxRuntime.jsxs("div",{className:"relative flex h-full items-center",children:[jsxRuntime.jsx("div",{className:"flex items-center h-full flex-shrink-0",children:r&&jsxRuntime.jsx("label",{htmlFor:u,className:"md:hidden cursor-pointer","aria-label":"Open menu",children:jsxRuntime.jsx("div",{className:"flex h-full w-14 flex-col items-center justify-center border-r hover:bg-background-hover transition-colors",children:jsxRuntime.jsx(Jo,{name:"List",size:"sm"})})})}),t&&jsxRuntime.jsx("div",{className:"flex-1 flex justify-end md:justify-center md:px-4 min-w-0",children:jsxRuntime.jsx("div",{className:"w-full md:max-w-4xl min-w-0",children:t})}),!t&&jsxRuntime.jsx("div",{className:"flex-1"}),jsxRuntime.jsxs("div",{className:"flex items-center gap-4 pr-4 flex-shrink-0 ml-4",children:[e,n&&a&&jsxRuntime.jsx("button",{type:"button",onClick:a,className:"flex items-center justify-center w-8 h-8 rounded hover:bg-background-hover transition-colors","aria-label":m(),children:d()}),c,o&&jsxRuntime.jsx("div",{className:"flex items-center",children:o})]})]})})};function wf({sideNav:e,topNav:t,children:r,contentPaddingX:o,contentPaddingY:n,showSidebarBorder:a=true,mainClassName:i,enableJsEnhancements:s=false}){let c="app-mobile-menu",l="app-sidebar-collapse";return jsxRuntime.jsxs("div",{className:"min-h-[100dvh] bg-background text-text-primary relative",children:[jsxRuntime.jsx("input",{type:"checkbox",id:l,className:"sr-only peer/sidebar","aria-hidden":"true"}),jsxRuntime.jsx("a",{href:"#app-content",className:"sr-only focus:not-sr-only focus:absolute focus:left-4 focus:top-4 z-50 rounded px-3 py-2 bg-background-surface shadow",children:"Skip to content"}),jsxRuntime.jsx(Aa,{...t,mobileMenuId:c,className:["sticky top-0 flex-shrink-0 z-30 md:hidden",t?.className].filter(Boolean).join(" ")}),jsxRuntime.jsxs("div",{className:"flex w-full h-[calc(100dvh-60px)] md:h-[100dvh] relative overflow-hidden",children:[jsxRuntime.jsx("input",{type:"checkbox",id:c,className:"sr-only peer/mobile","aria-hidden":"true"}),jsxRuntime.jsx("label",{htmlFor:c,className:"fixed inset-0 bg-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("aside",{id:"app-sidebar",className:["bg-background-surface","border-r border-border-default","transition-all duration-300 ease-in-out","fixed md:relative","left-0 top-0 bottom-0","z-[60] md:z-10","w-80 md:w-64","h-[100dvh] md:h-full","-translate-x-full","peer-checked/mobile:translate-x-0","md:translate-x-0",a?"":"!border-r-0",e?.className||""].filter(Boolean).join(" "),children:jsxRuntime.jsx(ns,{...e,mobileMenuId:c,sidebarCollapseId:l,className:"h-full"})}),jsxRuntime.jsxs("div",{className:"flex-1 flex flex-col h-full overflow-hidden",children:[jsxRuntime.jsx("div",{className:"sticky top-0 flex-shrink-0 hidden md:block z-20",children:jsxRuntime.jsx(Aa,{...t,className:t?.className})}),jsxRuntime.jsx("main",{id:"app-content",className:["flex-1 overflow-y-auto overflow-x-hidden bg-background-body",o,n,i||""].join(" "),role:"main",children:r})]})]}),jsxRuntime.jsx("style",{dangerouslySetInnerHTML:{__html:`
|
|
5
5
|
@media (min-width: 768px) {
|
|
6
6
|
/* Collapse sidebar width */
|
|
7
7
|
#${l}:checked ~ * #app-sidebar {
|
|
@@ -92,7 +92,7 @@ Valid keys: `+JSON.stringify(Object.keys(N),null," "));var M=B(G,w,F,K,X+"."+w,
|
|
|
92
92
|
});
|
|
93
93
|
}
|
|
94
94
|
})();
|
|
95
|
-
`}})]})}var ts={prefix:String(Math.round(Math.random()*1e10)),current:0},hf=Ee__namespace.default.createContext(ts),nS=Ee__namespace.default.createContext(false);var aS=!!(typeof window<"u"&&window.document&&window.document.createElement),fd=new WeakMap;function iS(e=false){let t=Ee.useContext(hf),r=Ee.useRef(null);if(r.current===null&&!e){var o,n;let a=(n=Ee__namespace.default.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||n===void 0||(o=n.ReactCurrentOwner)===null||o===void 0?void 0:o.current;if(a){let i=fd.get(a);i==null?fd.set(a,{id:t.current,state:a.memoizedState}):a.memoizedState!==i.state&&(t.current=i.id,fd.delete(a));}r.current=++t.current;}return r.current}function sS(e){let t=Ee.useContext(hf);t===ts&&!aS&&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=iS(!!e),o=t===ts&&process.env.NODE_ENV==="test"?"react-aria":`react-aria${t.prefix}`;return e||`${o}-${r}`}function lS(e){let t=Ee__namespace.default.useId(),[r]=Ee.useState(rs()),o=r||process.env.NODE_ENV==="test"?"react-aria":`react-aria${ts.prefix}`;return e||`${o}-${t}`}typeof Ee__namespace.default.useId=="function"?lS:sS;function dS(){return false}function uS(){return true}function pS(e){return ()=>{}}function rs(){return typeof Ee__namespace.default.useSyncExternalStore=="function"?Ee__namespace.default.useSyncExternalStore(pS,dS,uS):Ee.useContext(nS)}function yf(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function os(e,t,r){yf(e,t),t.set(e,r);}var mS=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),fS=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function bd(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 mS.has(r.script)}let t=e.split("-")[0];return fS.has(t)}var Cf=Symbol.for("react-aria.i18n.locale");function Sf(){let e=typeof window<"u"&&window[Cf]||typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e]);}catch{e="en-US";}return {locale:e,direction:bd(e)?"rtl":"ltr"}}var xd=Sf(),Ma=new Set;function vf(){xd=Sf();for(let e of Ma)e(xd);}function wf(){let e=rs(),[t,r]=Ee.useState(xd);return Ee.useEffect(()=>(Ma.size===0&&window.addEventListener("languagechange",vf),Ma.add(r),()=>{Ma.delete(r),Ma.size===0&&window.removeEventListener("languagechange",vf);}),[]),e?{locale:typeof window<"u"&&window[Cf]||"en-US",direction:"ltr"}:t}var yS=Ee__namespace.default.createContext(null);function hd(){let e=wf();return Ee.useContext(yS)||e}function ns(e,t){return e-t*Math.floor(e/t)}var Nf=1721426;function as(e,t,r,o){t=ss(e,t);let n=t-1,a=-2;return r<=2?a=0:is(t)&&(a=-1),Nf-1+365*n+Math.floor(n/4)-Math.floor(n/100)+Math.floor(n/400)+Math.floor((367*r-362)/12+a+o)}function is(e){return e%4===0&&(e%100!==0||e%400===0)}function ss(e,t){return e==="BC"?1-t:t}function vS(e){let t="AD";return e<=0&&(t="BC",e=1-e),[t,e]}var CS={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]},nr=class{fromJulianDay(t){let r=t,o=r-Nf,n=Math.floor(o/146097),a=ns(o,146097),i=Math.floor(a/36524),s=ns(a,36524),c=Math.floor(s/1461),l=ns(s,1461),u=Math.floor(l/365),d=n*400+i*100+c*4+u+(i!==4&&u!==4?1:0),[m,p]=vS(d),g=r-as(m,p,1,1),f=2;r<as(m,p,3,1)?f=0:is(p)&&(f=1);let b=Math.floor(((g+f)*12+373)/367),x=r-as(m,p,b,1)+1;return new Jo(m,p,b,x)}toJulianDay(t){return as(t.era,t.year,t.month,t.day)}getDaysInMonth(t){return CS[is(t.year)?"leapyear":"standard"][t.month-1]}getMonthsInYear(t){return 12}getDaysInYear(t){return is(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 vd(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 Cd(e,t){return e.calendar.toJulianDay(e)-t.calendar.toJulianDay(t)}function kf(e,t){return Tf(e)-Tf(t)}function Tf(e){return e.hour*36e5+e.minute*6e4+e.second*1e3+e.millisecond}var yd=null;function jo(){return yd==null&&(yd=new Intl.DateTimeFormat().resolvedOptions().timeZone),yd}function bo(e){e=Kt(e,new nr);let t=ss(e.era,e.year);return Df(t,e.month,e.day,e.hour,e.minute,e.second,e.millisecond)}function Df(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 wd(e,t){if(t==="UTC")return 0;if(e>0&&t===jo()&&true)return new Date(e).getTimezoneOffset()*-6e4;let{year:r,month:o,day:n,hour:a,minute:i,second:s}=Mf(e,t);return Df(r,o,n,a,i,s,0)-Math.floor(e/1e3)*1e3}var Pf=new Map;function Mf(e,t){let r=Pf.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"}),Pf.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 Rf=864e5;function wS(e,t,r,o){return (r===o?[r]:[r,o]).filter(a=>NS(e,t,a))}function NS(e,t,r){let o=Mf(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 fr(e,t,r="compatible"){let o=Mr(e);if(t==="UTC")return bo(o);if(t===jo()&&r==="compatible"&&true){o=Kt(o,new nr);let c=new Date,l=ss(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=bo(o),a=wd(n-Rf,t),i=wd(n+Rf,t),s=wS(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 Nd(e,t,r="compatible"){return new Date(fr(e,t,r))}function ar(e,t){let r=wd(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(),u=o.getUTCMilliseconds();return new Hn(n<1?"BC":"AD",n<1?-n+1:n,a,i,t,r,s,c,l,u)}function ls(e,t){return ar(e.getTime(),t)}function Mr(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 Ea(e.calendar,e.era,e.year,e.month,e.day,r,o,n,a)}function Kt(e,t){if(vd(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,Jr(o),o}function Td(e,t,r){if(e instanceof Hn)return e.timeZone===t?e:kd(e,t);let o=fr(e,t,r);return ar(o,t)}function Ef(e){let t=bo(e)-e.offset;return new Date(t)}function kd(e,t){let r=bo(e)-e.offset;return Kt(ar(r,t),e.calendar)}var La=36e5;function Ia(e,t){let r=e.copy(),o="hour"in r?RS(r,t):0;Pd(r,t.years||0),r.calendar.balanceYearMonth&&r.calendar.balanceYearMonth(r,e),r.month+=t.months||0,Rd(r),Lf(r),r.day+=(t.weeks||0)*7,r.day+=t.days||0,r.day+=o,kS(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 Pd(e,t){var r,o;!((r=(o=e.calendar).isInverseEra)===null||r===void 0)&&r.call(o,e)&&(t=-t),e.year+=t;}function Rd(e){for(;e.month<1;)Pd(e,-1),e.month+=e.calendar.getMonthsInYear(e);let t=0;for(;e.month>(t=e.calendar.getMonthsInYear(e));)e.month-=t,Pd(e,1);}function kS(e){for(;e.day<1;)e.month--,Rd(e),e.day+=e.calendar.getDaysInMonth(e);for(;e.day>e.calendar.getDaysInMonth(e);)e.day-=e.calendar.getDaysInMonth(e),e.month++,Rd(e);}function Lf(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 Jr(e){e.calendar.constrainDate&&e.calendar.constrainDate(e),e.year=Math.max(1,Math.min(e.calendar.getYearsInEra(e),e.year)),Lf(e);}function Af(e){let t={};for(let r in e)typeof e[r]=="number"&&(t[r]=-e[r]);return t}function Dd(e,t){return Ia(e,Af(t))}function ds(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),Jr(r),r}function Aa(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),If(r),r}function PS(e){e.second+=Math.floor(e.millisecond/1e3),e.millisecond=cs(e.millisecond,1e3),e.minute+=Math.floor(e.second/60),e.second=cs(e.second,60),e.hour+=Math.floor(e.minute/60),e.minute=cs(e.minute,60);let t=Math.floor(e.hour/24);return e.hour=cs(e.hour,24),t}function If(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 cs(e,t){let r=e%t;return r<0&&(r+=t),r}function RS(e,t){return e.hour+=t.hours||0,e.minute+=t.minutes||0,e.second+=t.seconds||0,e.millisecond+=t.milliseconds||0,PS(e)}function us(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=jr(c,r,0,s.length-1,o?.round),n.era=s[c],Jr(n);break}case "year":var a,i;!((a=(i=n.calendar).isInverseEra)===null||a===void 0)&&a.call(i,n)&&(r=-r),n.year=jr(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=jr(e.month,r,1,e.calendar.getMonthsInYear(e),o?.round);break;case "day":n.day=jr(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),Jr(n),n}function Md(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=jr(a,r,i,s,o?.round);break}case "minute":n.minute=jr(e.minute,r,0,59,o?.round);break;case "second":n.second=jr(e.second,r,0,59,o?.round);break;case "millisecond":n.millisecond=jr(e.millisecond,r,0,999,o?.round);break;default:throw new Error("Unsupported field "+t)}return n}function jr(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 Ed(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=Ia(Mr(e),{years:t.years,months:t.months,weeks:t.weeks,days:t.days});r=fr(n,e.timeZone);}else r=bo(e)-e.offset;r+=t.milliseconds||0,r+=(t.seconds||0)*1e3,r+=(t.minutes||0)*6e4,r+=(t.hours||0)*36e5;let o=ar(r,e.timeZone);return Kt(o,e.calendar)}function Ff(e,t){return Ed(e,Af(t))}function Bf(e,t,r,o){switch(t){case "hour":{let n=0,a=23;if(o?.hourCycle===12){let g=e.hour>=12;n=g?12:0,a=g?23:11;}let i=Mr(e),s=Kt(Aa(i,{hour:n}),new nr),c=[fr(s,e.timeZone,"earlier"),fr(s,e.timeZone,"later")].filter(g=>ar(g,e.timeZone).day===s.day)[0],l=Kt(Aa(i,{hour:a}),new nr),u=[fr(l,e.timeZone,"earlier"),fr(l,e.timeZone,"later")].filter(g=>ar(g,e.timeZone).day===l.day).pop(),d=bo(e)-e.offset,m=Math.floor(d/La),p=d%La;return d=jr(m,r,Math.floor(c/La),Math.floor(u/La),o?.round)*La+p,Kt(ar(d,e.timeZone),e.calendar)}case "minute":case "second":case "millisecond":return Md(e,t,r,o);case "era":case "year":case "month":case "day":{let n=us(Mr(e),t,r,o),a=fr(n,e.timeZone);return Kt(ar(a,e.timeZone),e.calendar)}default:throw new Error("Unsupported field "+t)}}function Vf(e,t,r){let o=Mr(e),n=Aa(ds(o,t),t);if(n.compare(o)===0)return e;let a=fr(n,e.timeZone,r);return Kt(ar(a,e.timeZone),e.calendar)}var DS=/^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})$/;var MS=/^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})(?:T(\d{2}))?(?::(\d{2}))?(?::(\d{2}))?(\.\d+)?(?:(?:([+-]\d{2})(?::?(\d{2}))?)|Z)$/;function Fa(e){let t=e.match(DS);if(!t)throw MS.test(e)?new Error(`Invalid ISO 8601 date string: ${e}. Use parseAbsolute() instead.`):new Error("Invalid ISO 8601 date string: "+e);let r=new Jo(Ld(t[1],0,9999),Ld(t[2],1,12),1);return r.day=Ld(t[3],1,r.calendar.getDaysInMonth(r)),r}function Ld(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 zf(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 Ad(e){let t=Kt(e,new nr),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 Id(e){return `${Ad(e)}T${zf(e)}`}function LS(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 Of(e){return `${Id(e)}${LS(e.offset)}[${e.timeZone}]`}function Fd(e){let t=typeof e[0]=="object"?e.shift():new nr,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 AS=new WeakMap,Jo=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 Ia(this,t)}subtract(t){return Dd(this,t)}set(t){return ds(this,t)}cycle(t,r,o){return us(this,t,r,o)}toDate(t){return Nd(this,t)}toString(){return Ad(this)}compare(t){return Cd(this,t)}constructor(...t){os(this,AS,{writable:true,value:void 0});let[r,o,n,a,i]=Fd(t);this.calendar=r,this.era=o,this.year=n,this.month=a,this.day=i,Jr(this);}};var IS=new WeakMap,Ea=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 Ia(this,t)}subtract(t){return Dd(this,t)}set(t){return ds(Aa(this,t),t)}cycle(t,r,o){switch(t){case "era":case "year":case "month":case "day":return us(this,t,r,o);default:return Md(this,t,r,o)}}toDate(t,r){return Nd(this,t,r)}toString(){return Id(this)}compare(t){let r=Cd(this,t);return r===0?kf(this,Mr(t)):r}constructor(...t){os(this,IS,{writable:true,value:void 0});let[r,o,n,a,i]=Fd(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,Jr(this);}},FS=new WeakMap,Hn=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 Ed(this,t)}subtract(t){return Ff(this,t)}set(t,r){return Vf(this,t,r)}cycle(t,r,o){return Bf(this,t,r,o)}toDate(){return Ef(this)}toString(){return Of(this)}toAbsoluteString(){return this.toDate().toISOString()}compare(t){return this.toDate().getTime()-Td(t,this.timeZone).toDate().getTime()}constructor(...t){os(this,FS,{writable:true,value:void 0});let[r,o,n,a,i]=Fd(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,Jr(this);}};var Bd=new Map;function Vd(e){let{locale:t}=hd(),r=t+(e?Object.entries(e).sort((n,a)=>n[0]<a[0]?-1:1).join():"");if(Bd.has(r))return Bd.get(r);let o=new Intl.Collator(t,e);return Bd.set(r,o),o}function ps(e){let t=Vd({usage:"search",...e}),r=Ee.useCallback((a,i)=>i.length===0?true:(a=a.normalize("NFC"),i=i.normalize("NFC"),t.compare(a.slice(0,i.length),i)===0),[t]),o=Ee.useCallback((a,i)=>i.length===0?true:(a=a.normalize("NFC"),i=i.normalize("NFC"),t.compare(a.slice(-i.length),i)===0),[t]),n=Ee.useCallback((a,i)=>{if(i.length===0)return true;a=a.normalize("NFC"),i=i.normalize("NFC");let s=0,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 Ee.useMemo(()=>({startsWith:r,endsWith:o,contains:n}),[r,o,n])}var WS=({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 Lt({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)=>WS({...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 sr(){let[e,t]=Ee__namespace.default.useState(false),r=Ee__namespace.default.useCallback((n,a)=>{t(true),a?.(n);},[]),o=Ee__namespace.default.useCallback((n,a)=>{t(false),a?.(n);},[]);return {isFocused:e,handleFocus:r,handleBlur:o}}var nt=Ee__namespace.default.forwardRef(({children:e,className:t},r)=>jsxRuntime.jsx("div",{ref:r,className:tailwindMerge.twMerge("relative w-full",t),children:e}));nt.displayName="InputWrapper";function Ba({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(I,{name:"X",size:t==="sm"?16:20})})}function xo(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 Wf(e){return e.isDisabled?"bg-background-muted":e.transparent?"bg-transparent":"bg-background-input"}function GS(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 ht(e){let{isInvalid:t,isDisabled:r,isFocused:o,transparent:n,size:a="md",className:i}=e;return tailwindMerge.twMerge("w-full",xo({isInvalid:t,isDisabled:r,isFocused:o}),Wf({transparent:n,isDisabled:r}),Le[a].text,Le[a].height,Le[a].padding,GS(a),i)}function US(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",Wf({transparent:a,isDisabled:n}),Le[t].height,xo({isFocused:r,isInvalid:o,isDisabled:n}),i)}function Me({children:e,size:t="md",tooltip:r,description:o,descriptionPlacement:n="below",isRequired:a,className:i,htmlFor:s}){let c=r||o&&n==="tooltip",l=r||o,u=o&&n==="inline",d=jsxRuntime.jsxs("label",{htmlFor:s,className:tailwindMerge.twMerge(Le[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(I,{name:"Info",size:t==="sm"?16:20})}),u&&jsxRuntime.jsx("span",{className:"text-text-secondary font-normal ml-1",children:o})]});return c&&l?jsxRuntime.jsx(Lt,{content:l,children:d}):d}function Se({size:e="md",className:t,children:r,...o}){return jsxRuntime.jsx("div",{...o,className:tailwindMerge.twMerge("leading-[2.25] text-text-secondary",Le[e].text,t),children:r})}function pe({children:e,size:t="md",className:r}){return jsxRuntime.jsx("div",{role:"alert",className:tailwindMerge.twMerge(Le[t].text,"text-feedback-error-text",r),children:e})}function fs({size:e="md",isInvalid:t,isDisabled:r,isFocused:o,transparent:n,className:a,...i}){return jsxRuntime.jsx("input",{className:ht({isInvalid:t,isDisabled:r,isFocused:o,transparent:n,size:e,className:a}),...i})}function Gf(e){let{children:t,...r}=e;return jsxRuntime.jsx("div",{...r,className:US(e),children:typeof t=="function"?t(e):t})}function JS({children:e,...t}){return jsxRuntime.jsx(reactAriaComponents.ListBox,{...t,className:Ce(t.className,"outline-0"),children:e})}var Yd=Ee.createContext("md");function jf(){return Ee.useContext(Yd)}function Wd(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 ${Le[e].text} ${t}`}function QS(){let e=Ee__namespace.default.useCallback((r,o)=>{o?.(r);},[]),t=Ee__namespace.default.useCallback((r,o)=>{o?.(r);},[]);return {handleFocus:e,handleBlur:t}}function Zo({label:e,description:t,errorMessage:r,children:o,items:n,renderItem:a,renderSelectedValue:i,size:s="md",selectedKey:c,defaultSelectedKey:l,onSelectionChange:u,placeholder:d,showErrors:m=false,tooltip:p,isRequired:g,transparent:f,reserveErrorSpace:b=false,placement:x="bottom start",shouldFlip:v=true,menuWidth:C="match",descriptionPlacement:y="below",useMobileTray:S=true,...k}){let[R,E]=Ee.useState(null),[D,L]=Ee.useState(null),[V,A]=Ee.useState(false),N=c??R??l,{handleFocus:T,handleBlur:z}=QS(),{isMobile:W}=Pt(),F=S&&W,K=Ee__namespace.default.useMemo(()=>!i||!N||!n?null:Array.from(n).find(B=>B.id===N)??null,[i,N,n]),X=w=>{u&&w!==null&&u(w),u||E(w);},G=Ee.useRef(null),Y=Ee.useRef(null),P=()=>{F&&A(!V);};return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(reactAriaComponents.Select,{...k,selectedKey:N,defaultSelectedKey:l,onSelectionChange:X,placeholder:d,className:Ce(k.className,"group flex w-full flex-col"),ref:G,onOpenChange:w=>{F||(w&&Y.current?L(Y.current.offsetWidth):w||G.current?.blur());},children:({isDisabled:w,isInvalid:B,isOpen:M})=>jsxRuntime.jsxs("div",{className:"flex flex-col",children:[e&&jsxRuntime.jsx(Me,{size:s,tooltip:p,description:y==="tooltip"||y==="inline"?t:void 0,descriptionPlacement:y,isRequired:g,children:e}),jsxRuntime.jsx(nt,{children:jsxRuntime.jsx("div",{ref:Y,children:jsxRuntime.jsxs(Q,{variant:"unstyled",className:tailwindMerge.twMerge(ht({isInvalid:B||m&&!!r,isDisabled:w,isFocused:F?V:M,transparent:f,size:s}),"flex items-center text-start gap-4 cursor-pointer pl-[var(--control-padding-sm)]"),onFocus:h=>T(h,k.onFocus),onBlur:h=>z(h,k.onBlur),onPress:F?P:void 0,"data-open":F?V:M,children:[i&&K?jsxRuntime.jsx("div",{className:Wd(s),children:i(K)}):F&&N?jsxRuntime.jsx("div",{className:Wd(s),children:n?Array.from(n).find(H=>H.id===N)?.label:String(N)}):jsxRuntime.jsx(reactAriaComponents.SelectValue,{className:Wd(s)}),jsxRuntime.jsx(I,{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",(F?V:M)&&"rotate-180")})]})})}),b?jsxRuntime.jsx("div",{className:"mt-1 min-h-[20px]",children:m?jsxRuntime.jsx(pe,{size:s,className:"text-feedback-error-text",children:typeof r=="function"&&k.validationResult?r(k.validationResult):typeof r=="string"?r:null}):t&&y==="below"?jsxRuntime.jsx(Se,{size:s,children:t}):null}):jsxRuntime.jsx(jsxRuntime.Fragment,{children:m?jsxRuntime.jsx(pe,{size:s,className:"mt-1 text-feedback-error-text",children:typeof r=="function"&&k.validationResult?r(k.validationResult):typeof r=="string"?r:null}):t&&y==="below"?jsxRuntime.jsx(Se,{size:s,className:"mt-1",children:t}):null}),F?null:jsxRuntime.jsx(Ze,{className:"bg-background-input shadow-xl border border-border-input/20 backdrop-blur-sm rounded-[var(--control-border-radius)]",style:{width:C==="match"&&D?`${D}px`:void 0,minWidth:C==="auto"&&D?`${D}px`:void 0,maxWidth:C==="auto"?"min(600px, 90vw)":void 0},placement:x,shouldFlip:v,children:jsxRuntime.jsx(Yd.Provider,{value:"md",children:jsxRuntime.jsx(reactAriaComponents.ListBox,{items:n,className:"w-full max-h-[300px] overflow-auto bg-background-input p-0 outline-0",children:a&&n?h=>jsxRuntime.jsx(At,{id:h.id,textValue:h.label,children:jsxRuntime.jsx("span",{className:"overflow-hidden text-ellipsis whitespace-nowrap min-w-0 flex-1",children:a(h)})},h.id):o})})})]})}),F&&jsxRuntime.jsx(Xe,{isOpen:V,onClose:()=>A(false),title:e??"Select an option",contentPadding:false,children:jsxRuntime.jsx(Yd.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:N!=null?[N]:[],onSelectionChange:w=>{let B=Array.from(w)[0];B!=null&&(X(B),A(false));},children:a&&n?w=>jsxRuntime.jsx(At,{id:w.id,textValue:w.label,children:jsxRuntime.jsx("span",{className:"overflow-hidden text-ellipsis whitespace-nowrap min-w-0 flex-1",children:a(w)})},w.id):o})})})]})}function At({size:e,className:t,...r}){let o=jf(),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",Le[n].paddingY,Le[n].text,t)})}var c1=[],d1={sm:"h-4 w-4",md:"h-5 w-5",lg:"h-6 w-6",xl:"h-7 w-7"},u1={sm:"pl-8",md:"pl-10",lg:"pl-11",xl:"pl-13"},Zf={sm:"py-1",md:"py-2",lg:"py-3",xl:"py-4"},Jd=(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 p1(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 m1(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 hs({label:e,staticItems:t=c1,sections:r,selectedKey:o,defaultSelectedKey:n,onSelectionChange:a,requestConfig:i,defaultFilter:s,placeholder:c,errorMessage:l,description:u,size:d="md",tooltip:m,isRequired:p,isDisabled:g,isInvalid:f,validationResult:b,showErrors:x=true,renderItem:v,renderLeftIcon:C,renderSection:y,autoFocus:S=false,reserveErrorSpace:k=false,hideChevron:R=false,useMobileTray:E=true,className:D}){let L=Ee__namespace.default.useRef(null),V=Ee__namespace.default.useRef(null),[A,N]=Ee__namespace.default.useState(),[T,z]=Ee.useState(()=>Jd(o||n,t,r)),[W,F]=Ee.useState(false),[K,X]=Ee.useState(false),G=lo(T),{contains:Y}=ps({sensitivity:"base"}),[P,w]=Ee.useState(),{isMobile:B}=Pt(),M=E&&B,h=Le[d].text,O=reactStately.useAsyncList({async load({signal:ie,filterText:ue=""}){if(!i)return {items:[]};if(!i.url||i.shouldLoad&&!i.shouldLoad(ue))return {items:[]};try{let ge;return i.requestType==="GraphQL"?ge=await m1(i,ue,ie):ge=await p1(i,ue,ie),w(ge.error),{items:ge.items}}catch(ge){return ge instanceof Error&&ge.name==="AbortError"?{items:[]}:(console.error("Error loading items:",ge),w(ge instanceof Error?ge.message:"Unknown error occurred"),{items:[]})}},initialFilterText:""}),H=i&&G!==""?O:null,j=false,oe=Ee.useRef("");Ee.useEffect(()=>{S&&F(true);},[S]),Ee.useEffect(()=>{let ie=Jd(o,t,r);ie!==T&&z(ie);},[o,t,r]),Ee.useEffect(()=>{let ie=()=>{L.current&&N(L.current.offsetWidth);};return ie(),window.addEventListener("resize",ie),()=>window.removeEventListener("resize",ie)},[]),Ee.useEffect(()=>{G===""?oe.current="":H&&G!==oe.current&&(oe.current=G,H.setFilterText(G));},[G,H]),j=Li(!!H?.isLoading,300);let me=Ee__namespace.default.useMemo(()=>{if(!M||!T)return H?H.items:t;let ie=H?H.items:t,ue=s||Y;return ie.filter(ge=>ue(ge.name,T))},[M,T,H,t,s,Y]),Z=ie=>{let ue=Jd(ie,t,r);z(ue),a&&a(ie);},ne=ie=>{z(ie);},Te=()=>{M&&X(true);};return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(reactAriaComponents.ComboBox,{onSelectionChange:Z,selectedKey:o||void 0,defaultSelectedKey:n||void 0,defaultItems:r?r.flatMap(ie=>ie.items):t,items:H?H.items:void 0,className:Ce(D,"group flex flex-col w-full"),menuTrigger:M?"manual":"focus",isDisabled:g,isInvalid:f||!!l,inputValue:T,onInputChange:ne,autoFocus:S&&!M,defaultFilter:s||Y,"aria-label":e||c||"Autocomplete",children:ie=>jsxRuntime.jsxs("div",{className:"flex flex-col",children:[e&&jsxRuntime.jsx(Me,{size:d,tooltip:m,isRequired:p,children:e}),jsxRuntime.jsxs(nt,{ref:L,children:[C?jsxRuntime.jsx("div",{className:"pointer-events-none absolute left-3 top-[45%] -translate-y-1/2 z-10",children:C(j)}):jsxRuntime.jsx("div",{className:"pointer-events-none absolute left-3 top-1/2 -translate-y-1/2 z-10 flex items-center",children:j?jsxRuntime.jsx(Kr,{size:16,color:"text-text-secondary"}):jsxRuntime.jsx(I,{name:"MagnifyingGlass",className:`${d1[d]} text-text-secondary`})}),jsxRuntime.jsx(reactAriaComponents.Input,{className:ht({isInvalid:f||!!l,isDisabled:g,isFocused:W||(M?K:ie.isOpen),size:d,className:tailwindMerge.twMerge(u1[d],T&&!g||!R&&!T?"pr-10":"pr-3",M&&"cursor-pointer",D)}),placeholder:c,disabled:g,onFocus:ue=>{F(true),M&&(ue.currentTarget.blur(),Te());},onBlur:()=>{F(false);},onClick:M?Te:void 0,readOnly:M,"aria-label":e||c||"Autocomplete"}),T&&!g&&jsxRuntime.jsx(Ba,{onClick:()=>{z(""),a?.(null);},size:d}),!R&&!T&&jsxRuntime.jsx(reactAriaComponents.Button,{className:"absolute right-3 top-[46%] -translate-y-1/2 transform text-text-secondary hover:text-text-primary","aria-label":"Toggle menu",isDisabled:g,children:({isPressed:ue})=>jsxRuntime.jsx(I,{name:ue?"CaretUp":"CaretDown",className:"h-4 w-4"})})]}),k?jsxRuntime.jsx("div",{className:"mt-1 min-h-[20px]",children:x&&P?jsxRuntime.jsx(pe,{size:d,className:"text-feedback-error-text",children:P}):x&&typeof l=="string"?jsxRuntime.jsx(pe,{size:d,className:"text-feedback-error-text",children:l}):x&&typeof l=="function"&&b?jsxRuntime.jsx(pe,{size:d,className:"text-feedback-error-text",children:l(b)}):u?jsxRuntime.jsx(Se,{size:d,children:u}):null}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[u&&jsxRuntime.jsx(Se,{size:d,className:"mt-1",children:u}),x&&P&&jsxRuntime.jsx(pe,{size:d,className:"text-feedback-error-text mt-1",children:P}),x&&typeof l=="string"&&jsxRuntime.jsx(pe,{size:d,className:"text-feedback-error-text mt-1",children:l}),x&&typeof l=="function"&&b&&jsxRuntime.jsx(pe,{size:d,className:"text-feedback-error-text mt-1",children:l(b)})]}),!M&&jsxRuntime.jsx(Ze,{className:"bg-background-input shadow-xl border border-border-input/20 backdrop-blur-sm ring-1 ring-black/5 rounded-[var(--control-border-radius)]",style:{minWidth:A?`${A}px`:void 0},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(ue=>{let ge=ue.items.map($=>jsxRuntime.jsx(At,{id:$.id,textValue:$.name,size:d,className:`flex cursor-default items-center gap-2 px-3 ${Zf[d]} text-text-primary outline-none data-[focused]:bg-background-hover data-[selected]:bg-background-selected data-[selected]:font-medium data-[focus-visible]:ring-0`,children:v?v($):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[$.name,jsxRuntime.jsx(I,{name:"X",className:"ml-auto h-4 w-4 text-text-secondary opacity-0 data-[focused]:opacity-100 data-[selected]:opacity-100"})]})},$.id));if(y){let $=y(ue,ge);return Ee__namespace.default.isValidElement($)&&$.type===reactAriaComponents.ListBoxSection?$:jsxRuntime.jsx(reactAriaComponents.ListBoxSection,{children:$},ue.name)}return jsxRuntime.jsxs(reactAriaComponents.ListBoxSection,{children:[jsxRuntime.jsx(reactAriaComponents.Header,{className:"px-3 py-1 text-sm font-bold text-text-secondary",children:ue.name}),ge]},ue.name)}):ue=>jsxRuntime.jsx(At,{id:ue.id,textValue:ue.name,size:d,className:`flex cursor-default items-center gap-2 px-3 ${Zf[d]} text-text-primary outline-none data-[focused]:bg-background-hover data-[selected]:bg-background-selected data-[selected]:font-medium data-[focus-visible]:ring-0`,children:v?v(ue):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[ue.name,jsxRuntime.jsx(I,{name:"X",className:"ml-auto h-4 w-4 text-text-secondary opacity-0 data-[focused]:opacity-100 data-[selected]:opacity-100"})]})},ue.id)})})]})}),M&&jsxRuntime.jsx(Xe,{isOpen:K,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(nt,{children:[jsxRuntime.jsx("div",{className:"pointer-events-none absolute left-3 top-[45%] -translate-y-1/2 z-10 flex items-center",children:j?jsxRuntime.jsx(Kr,{size:16,color:"text-text-secondary"}):jsxRuntime.jsx(I,{name:"MagnifyingGlass",className:"h-4 w-4 text-text-secondary"})}),jsxRuntime.jsx("input",{ref:V,type:"text",value:T,onChange:ie=>ne(ie.target.value),placeholder:c,autoFocus:true,className:ht({isInvalid:false,isDisabled:false,isFocused:true,size:"md",className:"pl-10 pr-10"})}),T&&jsxRuntime.jsx(Ba,{onClick:()=>{z(""),a?.(null);},size:"md"})]})}),jsxRuntime.jsx("div",{className:"flex-1 overflow-auto",children:jsxRuntime.jsx(reactAriaComponents.ListBox,{"aria-label":e||c||"Suggestions",items:me,selectedKeys:o?[o]:[],selectionMode:"single",onSelectionChange:ie=>{let ue=Array.from(ie)[0];ue&&(Z(ue),X(false));},className:"bg-background-input outline-none",children:ie=>jsxRuntime.jsx(At,{id:ie.id,textValue:ie.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(ie):ie.name},ie.id)})})]})})]})}function Zr({src:e,alt:t,firstName:r,lastName:o,fullName:n,onClick:a,size:i="md",shape:s="circle",variant:c="user",className:l,status:u,bordered:d=false,piiEntity:m}){let[p,g]=Ee.useState(false),f=Ee.useCallback(()=>g(true),[]);Ee.useEffect(()=>{g(false);},[e]);let b={xs:"h-6 w-6 text-xs",sm:"h-8 w-8 text-sm",md:"h-10 w-10 text-base",lg:"h-12 w-12 text-lg",xl:"h-16 w-16 text-xl"},x={xs:"h-1.5 w-1.5",sm:"h-2 w-2",md:"h-2.5 w-2.5",lg:"h-3 w-3",xl:"h-4 w-4"},v={xs:"bottom-0 right-0",sm:"bottom-0 right-0",md:"bottom-0 right-0",lg:"bottom-0.5 right-0.5",xl:"bottom-1 right-1"},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",k=tailwindMerge.twMerge("relative inline-flex items-center justify-center overflow-hidden transition-opacity outline-none",b[i],S,a&&"cursor-pointer hover:opacity-80",d&&"ring-2 ring-background-surface",l),E=(()=>{if(r||o){let A=r?.[0]||"",N=o?.[0]||"";return (A+N).toUpperCase()}if(n){let A=n.split(" "),N=A[0]?.[0]||"",T=A[A.length-1]?.[0]||"";return N===T?N.toUpperCase():(N+T).toUpperCase()}return ""})(),D=()=>{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})}},L=A=>{if(m)return c==="organization"?A?"organization-logo":"initials":A?"avatar":"initials"},V=()=>e&&!p?jsxRuntime.jsx("img",{src:e,alt:t||n||"Avatar",className:"h-full w-full object-cover",onError:f,"data-pii-type":L(true),"data-pii-entity":m}):E?jsxRuntime.jsx("span",{className:"font-semibold","data-pii-type":L(false),"data-pii-entity":m,children:E}):D();return jsxRuntime.jsxs("div",{className:"relative inline-block",children:[jsxRuntime.jsx("div",{"data-avatar":true,className:tailwindMerge.twMerge(k,!e||p?y[c]:""),onClick:a,role:a?"button":void 0,tabIndex:a?0:void 0,children:V()}),u&&jsxRuntime.jsx("span",{className:tailwindMerge.twMerge("absolute border-2 border-background-surface",S,x[i],v[i],C[u]),"aria-label":`Status: ${u}`})]})}var C1={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"},S1={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"},w1={pill:"rounded-full",rounded:"rounded-lg",square:"rounded-sm"},N1={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 Je({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",N1[r],i&&"animate-pulse"),"aria-hidden":"true"});return jsxRuntime.jsxs("span",{className:tailwindMerge.twMerge("inline-flex items-center gap-1.5 font-medium",S1[r],w1[o],C1[t],s),children:[n&&a==="left"&&c,e,n&&a==="right"&&c]})}var Ue=({href:e,children:t,className:r="",external:o=false,title:n,variant:a="secondary",onClick:i,asButton:s=false,onPress:c,showArrow:l=false,alwaysUnderlined:u=false,LinkComponent:d,"data-pii-type":m,"data-pii-entity":p})=>{let g={...m&&{"data-pii-type":m},...p&&{"data-pii-entity":p}},f=o?{target:"_blank",rel:"noopener noreferrer"}:{},y=`${`${u?"underline decoration-1 underline-offset-4 decoration-current":"hover:underline hover:decoration-1 hover:underline-offset-4 hover:decoration-current"} cursor-pointer`} ${{primary:"text-action-primary hover:text-action-primary-hover visited:text-action-primary",secondary:"text-text-link-default hover:text-text-link-hover visited:text-text-link-default",muted:"text-text-secondary hover:text-text-secondary visited:text-text-secondary",unstyled:""}[a==="brand"?"primary":a==="default"?"secondary":a]} ${r}`,S=jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[t,l&&jsxRuntime.jsxs("span",{children:["\xA0","\u2192"]})]});return s?jsxRuntime.jsx("button",{type:"button",className:y,onClick:c,title:n,...g,children:S}):d&&e?jsxRuntime.jsx(d,{href:e,className:y,title:n,onClick:i,...f,...g,children:S}):jsxRuntime.jsx("a",{href:e||"#",className:y,...f,...g,title:n,onClick:i,children:S})};var I1={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 vs({variant:e="info",appearance:t="subtle",title:r,children:o,dismissible:n=false,onDismiss:a,primaryAction:i,secondaryAction:s,icon:c,hideIcon:l=false,className:u,testId:d}){let m=I1[e],p=m[t],g=m.icon,f=!!(i||s),b=!!(r||o);return jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("flex gap-3 rounded-sm border p-4",p.container,u),role:"region","aria-live":"polite","data-testid":d,children:[!l&&jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("flex-shrink-0",p.iconColor),"aria-hidden":"true",children:c||jsxRuntime.jsx(g,{className:"h-5 w-5"})}),jsxRuntime.jsxs("div",{className:"flex min-w-0 flex-1 flex-col gap-3",children:[b&&jsxRuntime.jsxs("div",{className:"flex-1",children:[r&&jsxRuntime.jsx("div",{className:Dt(et("headingSm"),p.titleColor),children:r}),o&&jsxRuntime.jsx("div",{className:Dt(et("bodySm"),r?"mt-1":"",p.bodyColor),children:o})]}),f&&jsxRuntime.jsxs("div",{className:"flex flex-wrap items-center gap-3",children:[i&&(i.asLink?jsxRuntime.jsx(Ue,{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(Ue,{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,Oe()),"aria-label":"Dismiss banner",children:jsxRuntime.jsx(lucideReact.X,{className:"h-4 w-4"})})]})}function Qf({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(vs,{...o,className:a})})})}function ho({value:e,children:t,className:r,size:o="sm",iconPosition:n="right"}){let[a,i]=Ee.useState(false),l=jsxRuntime.jsx(Q,{variant:"icon",size:o,onPress:()=>{let d=e||(typeof t=="string"?t:"");navigator.clipboard.writeText(d),i(true),setTimeout(()=>{i(false);},2e3);},className:"!px-2 relative",style:{top:"0.5px"},children:jsxRuntime.jsx(I,{name:"Copy",size:o==="sm"?14:16})}),u=a?jsxRuntime.jsx(Lt,{content:"Copied!",children:l}):l;return jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("inline-flex items-center gap-0.5",r),children:[n==="left"&&u,t,n==="right"&&u]})}function Cs(e){let{children:t,maxWidth:r=600,className:o,...n}=e,{ref:a,width:i}=En(),[s,c]=Ee__namespace.default.useState(false),[l,u]=Ee__namespace.default.useState(false),d=Ee__namespace.default.useRef(false),m=Ee__namespace.default.useMemo(()=>t&&!e.items&&typeof t!="function"?Ee__namespace.default.Children.toArray(t):null,[t,e.items]);if(Ee__namespace.default.useEffect(()=>{m&&m.length>=4&&i>0&&!d.current?(d.current=true,c(i>r),u(true)):(!m||m&&m.length<4)&&u(true);let p=setTimeout(()=>{l||u(true);},100);return ()=>clearTimeout(p)},[i,r,m,l]),m&&s&&m.length>=4){let p=m[0],g=m.slice(1,-2),f=m.slice(-2),b=g.map(x=>{if(Ee__namespace.default.isValidElement(x)){let v=x.props;if(typeof v.children=="string")return {label:v.children,href:v.href}}return {label:"..."}});return jsxRuntime.jsxs(reactAriaComponents.Breadcrumbs,{...n,ref:a,className:tailwindMerge.twMerge("flex gap-2",l?"opacity-100":"opacity-0",o),children:[p,jsxRuntime.jsx(H1,{items:b}),f]})}return jsxRuntime.jsx(reactAriaComponents.Breadcrumbs,{...n,ref:a,className:tailwindMerge.twMerge("flex gap-2",l?"opacity-100":"opacity-0",o),children:t})}function H1({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(zn,{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 Ss(e){let{className:t,children:r,href:o,copyable:n,copyValue:a,...i}=e;return jsxRuntime.jsx(reactAriaComponents.Breadcrumb,{className:Ce(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(ho,{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(Ue,{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 X1({isSelected:e,isDisabled:t}){let r=[Oe,"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 Wn({errorMessage:e,...t}){return jsxRuntime.jsxs(reactAriaComponents.Calendar,{...t,children:[jsxRuntime.jsx(ws,{}),jsxRuntime.jsxs(reactAriaComponents.CalendarGrid,{className:"border-separate [border-spacing:0] [&_td]:p-0 [&_td]:!border-0",children:[jsxRuntime.jsx(Ns,{}),jsxRuntime.jsx(reactAriaComponents.CalendarGridBody,{children:r=>jsxRuntime.jsx(reactAriaComponents.CalendarCell,{date:r,className:({isSelected:o,isDisabled:n})=>`${X1({isSelected:o,isDisabled:n})} border-0`})})]}),e&&jsxRuntime.jsx(reactAriaComponents.Text,{slot:"errorMessage",className:"text-sm text-feedback-error-text",children:e})]})}function ws(){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(I,{name:"CaretRight","aria-hidden":true,size:t}):jsxRuntime.jsx(I,{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(I,{name:"CaretLeft","aria-hidden":true,size:t}):jsxRuntime.jsx(I,{name:"CaretRight","aria-hidden":true,size:t})})]})}function Ns(){return jsxRuntime.jsx(reactAriaComponents.CalendarGridHeader,{children:e=>jsxRuntime.jsx(reactAriaComponents.CalendarHeaderCell,{className:"text-xs font-semibold text-text-secondary",children:e})})}var ng=Ee__namespace.createContext(null);function yo(){let e=Ee__namespace.useContext(ng);if(!e)throw new Error("Carousel components must be used within a CarouselRoot");return e}function ag({page:e,defaultPage:t=0,onPageChange:r,orientation:o="horizontal",loop:n=false,autoplay:a=false,autoplayDelay:i=4e3,allowMouseDrag:s=false,spacing:c="1rem",slidesPerView:l=1,slidesPerMove:u=1,className:d,children:m,...p}){let g=e!==void 0,[f,b]=Ee__namespace.useState(t),x=g?e:f,v=Ee__namespace.useRef(null),[C,y]=Ee__namespace.useState(0),[S,k]=Ee__namespace.useState(typeof a=="boolean"?a:!!a),[R,E]=Ee__namespace.useState(false),D=Ee__namespace.useRef(null),L=Ee__namespace.useRef(null),V=typeof a=="object"&&a!==null&&a.delay?a.delay:i;Ee__namespace.useEffect(()=>{if(v.current){let h=Math.max(1,Math.floor(Number(l)||1)),O=v.current.children;if(O.length===0){y(0);return}let H=Math.ceil(O.length/h);y(H);}},[m,l]);let A=Ee__namespace.useRef(-1);Ee__namespace.useEffect(()=>{if(x!==A.current&&v.current){let h=Array.from(v.current.children);if(h.length===0)return;let O=x*l,H=Math.min(O,h.length-1),j=h[H];j&&typeof j.scrollIntoView=="function"&&(j.scrollIntoView({behavior:"smooth",block:o==="vertical"?"start":"nearest",inline:o==="horizontal"?"start":"nearest"}),A.current=x);}},[x,l,o]);let N=Ee__namespace.useCallback(h=>{let O=h;n?O<0?O=C-1:O>=C&&(O=0):O=Math.max(0,Math.min(h,C-1)),g||b(O),r?.(O);},[g,n,r,C]),T=Ee__namespace.useCallback(()=>{N(x+u);},[x,N,u]),z=Ee__namespace.useCallback(()=>{N(x-u);},[x,N,u]),W=Ee__namespace.useRef(T);Ee__namespace.useEffect(()=>{W.current=T;},[T]);let F=C>0&&(n||x<C-1),K=C>0&&(n||x>0),X=Ee__namespace.useCallback(()=>{k(h=>!h);},[]);Ee__namespace.useEffect(()=>{if(S&&C>1)return D.current=setInterval(()=>{W.current();},V),()=>{D.current&&(clearInterval(D.current),D.current=null);}},[S,C,V]);let G=Ee__namespace.useCallback(()=>{D.current&&(clearInterval(D.current),D.current=null);},[]),Y=Ee__namespace.useCallback(()=>{S&&C>1&&(D.current=setInterval(()=>{W.current();},V));},[S,C,V]),P=Ee__namespace.useCallback(h=>{if(!s)return;E(true);let O="touches"in h&&h.touches&&h.touches.length>0?h.touches[0].clientX:"clientX"in h?h.clientX:0,H="touches"in h&&h.touches&&h.touches.length>0?h.touches[0].clientY:"clientY"in h?h.clientY:0;L.current={x:O,y:H};},[s]),w=Ee__namespace.useCallback(h=>{if(!R||!L.current)return;let O="touches"in h&&h.touches&&h.touches.length>0?h.touches[0].clientX:"clientX"in h?h.clientX:0,H="touches"in h&&h.touches&&h.touches.length>0?h.touches[0].clientY:"clientY"in h?h.clientY:0,j=O-L.current.x,oe=H-L.current.y,me=50;o==="horizontal"&&Math.abs(j)>me?(j>0?z():T(),E(false),L.current=null):o==="vertical"&&Math.abs(oe)>me&&(oe>0?z():T(),E(false),L.current=null);},[R,o,T,z]),B=Ee__namespace.useCallback(()=>{E(false),L.current=null;},[]),M={currentPage:x,totalPages:C,orientation:o,loop:n,spacing:c,slidesPerView:l,goToPage:N,goToNext:T,goToPrev:z,canGoNext:F,canGoPrev:K,isAutoplayActive:S,toggleAutoplay:X,itemsRef:v,isDragging:R,allowMouseDrag:s,handleDragStart:P,handleDragMove:w,handleDragEnd:B};return jsxRuntime.jsx(ng.Provider,{value:M,children:jsxRuntime.jsx("div",{...p,className:tailwindMerge.twMerge("relative w-full",o==="vertical"?"h-full":"",d),onMouseEnter:G,onMouseLeave:Y,children:m})})}function ig({className:e,children:t,...r}){let{itemsRef:o,orientation:n,spacing:a,isDragging:i,allowMouseDrag:s,handleDragStart:c,handleDragMove:l,handleDragEnd:u}=yo();return jsxRuntime.jsx("div",{ref:o,...r,className:tailwindMerge.twMerge("flex overflow-x-auto overflow-y-hidden snap-x snap-mandatory scrollbar-hide scroll-smooth",n==="vertical"&&"flex-col overflow-y-auto overflow-x-hidden snap-y",s&&i&&"cursor-grabbing select-none",s&&!i&&"cursor-grab",e),style:{gap:a,"--carousel-spacing":a,...r.style},onMouseDown:c,onMouseMove:l,onMouseUp:u,onMouseLeave:u,onTouchStart:c,onTouchMove:l,onTouchEnd:u,children:t})}function sg({index:e,className:t,children:r,...o}){let{orientation:n,slidesPerView:a}=yo();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 lg({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 cg({className:e,children:t,...r}){let{goToPrev:o,canGoPrev:n}=yo();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(I,{name:"CaretLeft",size:"sm"})})}function dg({className:e,children:t,...r}){let{goToNext:o,canGoNext:n}=yo();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(I,{name:"CaretRight",size:"sm"})})}function eu({index:e,className:t,children:r,...o}){let{currentPage:n,goToPage:a}=yo(),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 ug({className:e,...t}){let{totalPages:r}=yo();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(eu,{index:n},n))})}function pg({className:e,children:t,...r}){let{isAutoplayActive:o,toggleAutoplay:n}=yo();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(I,{name:o?"Pause":"Play",size:"sm"})})}function mg({className:e,...t}){let{currentPage:r,totalPages:o}=yo();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 o2="focus:ring-action-primary",n2="bg-action-primary border-action-primary text-[color:var(--color-action-primary-text)] hover:bg-action-primary-hover hover:border-action-primary-hover";function tu(e){return jsxRuntime.jsxs(reactAriaComponents.CheckboxGroup,{...e,className:Ce(e.className,"flex flex-col gap-2"),children:[jsxRuntime.jsx(Me,{children:e.label}),e.children,e.description&&jsxRuntime.jsx(Se,{children:e.description}),jsxRuntime.jsx(pe,{children:typeof e.errorMessage=="function"?void 0:e.errorMessage})]})}function a2({isDisabled:e}){return `flex gap-2 items-center group text-sm transition ${e?"text-text-disabled":"text-text-secondary"}`}function i2({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=o2,i="";return r?i="border-border-muted bg-background-muted":t?i="border-feedback-error-border bg-feedback-error-background":e||o?i=n2:i="bg-background-input border-border-input hover:border-border-focus",`${n} ${a} ${i}`}var fg="w-4 h-4 text-current group-disabled:text-text-disabled";function _o(e){let{children:t,variant:r,...o}=e;return jsxRuntime.jsx(reactAriaComponents.Checkbox,{...o,className:reactAriaComponents.composeRenderProps(e.className,(n,a)=>`${a2(a)} ${n||""}`),children:n=>{let{isSelected:a,isIndeterminate:i,...s}=n,c=jsxRuntime.jsx("div",{className:i2({isSelected:a,isIndeterminate:i,...s}),children:i?jsxRuntime.jsx(lucideReact.Minus,{"aria-hidden":true,className:fg}):a?jsxRuntime.jsx(lucideReact.Check,{"aria-hidden":true,className:fg}):null});return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[c,typeof t=="function"?t(n):t]})}})}var c2={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 bg(e){return !e||e==="default"?"secondary":e==="brand"?"primary":e}var d2={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"},u2="opacity-75 cursor-not-allowed pointer-events-none";function xg(e){let{variant:t,size:r,isDisabled:o,isClickable:n,className:a}=e,i=r==="xs"?"text-xs":Le[r].text;return tailwindMerge.twMerge("inline-flex items-center justify-center rounded-full font-medium transition-colors","whitespace-nowrap select-none",d2[r],i,c2[t],n&&!o&&"cursor-pointer",o&&u2,a)}function Ar({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,u=f=>{f.stopPropagation(),f.preventDefault(),t&&!a&&t();},d=()=>{s&&!a&&s();},m=r==="xs"?10:r==="sm"?12:r==="md"?14:16,g=jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("span",{className:"truncate",children:e}),l?c?jsxRuntime.jsx("span",{onClick:u,onKeyDown:f=>{(f.key==="Enter"||f.key===" ")&&(f.preventDefault(),u(f));},role:"button",tabIndex:0,className:"flex-shrink-0 rounded-full p-0.5 hover:bg-text-primary/10 transition-colors cursor-pointer","aria-label":"Remove",children:jsxRuntime.jsx(I,{name:"X",size:m,className:"text-current opacity-70 hover:opacity-100"})}):jsxRuntime.jsx("button",{type:"button",onClick:u,className:"flex-shrink-0 rounded-full p-0.5 hover:bg-text-primary/10 transition-colors cursor-pointer","aria-label":"Remove",tabIndex:-1,children:jsxRuntime.jsx(I,{name:"X",size:m,className:"text-current opacity-70 hover:opacity-100"})}):null]});return c?jsxRuntime.jsx("button",{type:"button",onClick:d,className:xg({variant:bg(o),size:r,isDisabled:a,isClickable:c,className:i}),disabled:a,children:g}):jsxRuntime.jsx("span",{className:xg({variant:bg(o),size:r,isDisabled:a,isClickable:c,className:i}),children:g})}function vg({label:e,description:t,errorMessage:r,size:o="md",tooltip:n,isRequired:a=false,isDisabled:i=false,isInvalid:s=false,validationResult:c,placeholder:l="Add items...",selectedItems:u=[],onItemsChange:d,staticItems:m,fetchSuggestions:p,chipVariant:g="secondary",showErrors:f=true,className:b}){let[x,v]=Ee.useState(""),[C,y]=Ee.useState([]),[S,k]=Ee.useState(false),[R,E]=Ee.useState(false),[D,L]=Ee.useState(-1),V=lo(x,300),A=Ee.useRef(null),N=Ee.useRef(null),{isFocused:T,handleFocus:z,handleBlur:W}=sr(),F=Ee.useId(),K=Ee.useCallback(M=>{if(!d||!M.trim())return;let h=M.trim();if(u.includes(h)){v(""),E(false),y([]),L(-1);return}d([...u,h]),v(""),E(false),y([]),L(-1),A.current?.focus();},[u,d]),X=Ee.useCallback(M=>{d&&d(u.filter(h=>h!==M));},[u,d]);Ee.useEffect(()=>{if(!p)return;let M=true;return (async()=>{let O=V.trim();if(!O){M&&(k(false),y([]),E(false));return}k(true);try{let H=await p(O);if(!M)return;y(H),E(!0);}catch(H){if(!M)return;console.error("Error fetching suggestions:",H),y([]),E(false);}finally{M&&k(false);}})(),()=>{M=false;}},[V,p]),Ee.useEffect(()=>{if(p||!m)return;if(!V.trim()){y([]),E(false);return}let M=m.filter(h=>h.name.toLowerCase().includes(V.toLowerCase())).map(h=>h.id);y(M),E(M.length>0||V.trim().length>0);},[V,m,p]);let G=Ee.useMemo(()=>{let M=C.filter(h=>!u.includes(h));return x.trim()&&!M.includes(x.trim())&&!u.includes(x.trim())?[...M,`Create tag: "${x.trim()}"`]:M},[C,x,u]),Y=Ee.useCallback(M=>{v(M.target.value),L(-1),M.target.value&&E(true);},[]),P=Ee.useCallback(M=>{i||(M.startsWith("Create tag:")?K(x):K(M));},[K,x,i]),w=Ee.useCallback(M=>{if(!i)switch(M.key){case "Enter":case ",":if(M.preventDefault(),D>=0&&D<G.length){let h=G[D];h.startsWith("Create tag:")?K(x):K(h);}else x.trim()&&K(x.trim());break;case "Backspace":!x&&u.length>0&&(M.preventDefault(),X(u[u.length-1]));break;case "ArrowDown":M.preventDefault(),R&&L(h=>h<G.length-1?h+1:h);break;case "ArrowUp":M.preventDefault(),R&&L(h=>h>0?h-1:-1);break;case "Escape":E(false),L(-1);break}},[i,x,u,G,D,R,K,X]);Ee.useEffect(()=>{let M=h=>{N.current&&h.target instanceof Node&&!N.current.contains(h.target)&&E(false);};return document.addEventListener("mousedown",M),()=>document.removeEventListener("mousedown",M)},[]);let B=()=>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]",xo({isInvalid:s,isDisabled:i,isFocused:T}),"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:N,className:tailwindMerge.twMerge("relative flex flex-col gap-1",b),children:[e&&jsxRuntime.jsx(Me,{size:o,tooltip:n,isRequired:a,children:e}),jsxRuntime.jsx(nt,{children:jsxRuntime.jsxs("div",{className:B(),onClick:()=>!i&&A.current?.focus(),children:[u.map(M=>jsxRuntime.jsx(Ar,{variant:g,size:"xs",onRemove:()=>X(M),isDisabled:i,className:"shrink-0 max-h-full",children:M},M)),jsxRuntime.jsx("input",{ref:A,type:"text",role:"combobox","aria-expanded":R,"aria-haspopup":"listbox","aria-controls":F,"aria-autocomplete":"list",value:x,onChange:Y,onKeyDown:w,onFocus:M=>z(M),onBlur:M=>W(M),placeholder:u.length===0?l:"",disabled:i,className:"flex-1 min-w-[120px] h-full !border-0 !outline-none !ring-0 bg-transparent text-text-primary text-sm placeholder:text-text-disabled disabled:cursor-not-allowed focus:!ring-0 focus:!outline-none focus:!border-0 focus-visible:!ring-0 focus-visible:!outline-none focus-visible:!border-0",style:{boxShadow:"none",WebkitAppearance:"none",appearance:"none",border:"none",outline:"none"}})]})}),R&&(x||G.length>0)&&jsxRuntime.jsx("div",{id:F,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..."}):G.length>0?G.map((M,h)=>jsxRuntime.jsx("div",{role:"option","aria-selected":h===D,className:tailwindMerge.twMerge("cursor-pointer px-3 py-2 text-sm transition-colors","hover:bg-background-hover",h===D&&"bg-background-selected",M.startsWith("Create tag:")&&"italic text-text-secondary"),onClick:()=>P(M),children:M},M)):x&&jsxRuntime.jsx("div",{className:"px-3 py-2 text-sm text-text-secondary",children:"No suggestions found"})}),t&&jsxRuntime.jsx(Se,{size:o,className:"mt-1",children:t}),f&&typeof r=="string"&&jsxRuntime.jsx(pe,{size:o,className:"text-feedback-error-text mt-1",children:r}),f&&typeof r=="function"&&c&&jsxRuntime.jsx(pe,{size:o,className:"text-feedback-error-text mt-1",children:r(c)})]})}var C2={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')},S2={github:()=>import('ace-builds/src-noconflict/theme-github'),github_dark:()=>import('ace-builds/src-noconflict/theme-github_dark')},w2={"ext-language-tools":()=>import('ace-builds/src-noconflict/ext-language_tools')},Ha=new Set;async function ou(e,t){Ha.has(e)||(await t(),Ha.add(e));}async function N2(e,t,r){await Promise.all([ou(`language:${e}`,C2[e]),ou(`theme:${t}`,S2[t]),r?ou("extension:language-tools",w2["ext-language-tools"]):void 0]);}function Sg(e,t,r){let o=Ha.has(`language:${e}`)&&Ha.has(`theme:${t}`);return r?o&&Ha.has("extension:language-tools"):o}function wg({value:e,readOnly:t=false,onChange:r,language:o="json",theme:n="github_dark",height:a,width:i="100%",className:s,lineHeight:c=19,minLines:l=3,maxLines:u=50,showLineNumbers:d=true,showGutter:m=true,fontSize:p=14,wrapEnabled:g=false}){let f=Ee.useRef(null),[b,x]=Ee.useState(()=>Sg(o,n,!t)),v=Ee.useMemo(()=>{if(a)return a;let C=(e.match(/\n/g)||[]).length+1;return `${Math.max(l,Math.min(C,u))*c+10}px`},[e,a,c,l,u]);return Ee.useEffect(()=>{let C=false,y=!t;return Sg(o,n,y)?(x(true),()=>{C=true;}):(x(false),N2(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]),Ee.useEffect(()=>{b&&f.current?.editor&&f.current.editor.resize();},[v,b]),jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("overflow-hidden rounded-md border border-border-input",s),style:{width:i,height:v},children:b?jsxRuntime.jsx(y2__default.default,{ref:f,mode:o,theme:n,value:e,onChange:r,readOnly:t,width:"100%",height:"100%",fontSize:p,showPrintMargin:false,showGutter:m,highlightActiveLine:!t,setOptions:{useWorker:true,showLineNumbers:d,tabSize:2,enableBasicAutocompletion:!t,enableLiveAutocompletion:!t,enableSnippets:!t,showFoldWidgets:true,wrap:g},editorProps:{$blockScrolling:true}}):jsxRuntime.jsx("div",{className:"flex h-full w-full items-center justify-center bg-surface-muted text-foreground-muted",children:"Loading editor\u2026"})})}var Tg=Ee__namespace.createContext({variant:"contained",density:"comfortable",showDividers:true}),kg=Ee__namespace.createContext(null),D2={contained:"rounded-lg border border-border-default bg-background-surface overflow-hidden",bordered:"rounded-lg border border-border-default bg-background-surface",plain:"bg-transparent"},Ng={true:"divide-y divide-border-default",false:"gap-3"},M2={comfortable:"px-5 py-3",compact:"px-4 py-2.5"},E2={comfortable:"px-5 pt-0",compact:"px-4 pt-0"},L2={comfortable:"h-4 w-4",compact:"h-3.5 w-3.5"};function su(){return Ee__namespace.useContext(Tg)}function A2(e){let t=Ee__namespace.useContext(kg);if(!t)throw new Error(`${e} must be used within a <CollapseItem>`);return t}function I2({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 F2({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=M2[r];return tailwindMerge.twMerge(i,Oe(),l,s,c,o==="plain"&&n?"px-0":"",a)}function B2({density:e,showDividers:t,className:r}){let o="text-text-primary",n=E2[e];return tailwindMerge.twMerge(o,n,t?"":"rounded-b-lg",r)}function Gn({variant:e="contained",density:t="comfortable",showDividers:r=true,className:o,...n}){let a=Ee__namespace.useMemo(()=>({variant:e,density:t,showDividers:r}),[e,t,r]),i=tailwindMerge.twMerge("flex w-full flex-col",D2[e],r?Ng.true:Ng.false,e==="plain"&&r?"border-y border-border-default/60":"");return jsxRuntime.jsx(Tg.Provider,{value:a,children:jsxRuntime.jsx(reactAriaComponents.DisclosureGroup,{...n,className:Ce(o,i)})})}function Co({className:e,children:t,...r}){let{variant:o,showDividers:n}=su();return jsxRuntime.jsx(reactAriaComponents.Disclosure,{...r,className:reactAriaComponents.composeRenderProps(e,a=>I2({variant:o,showDividers:n,className:a})),children:a=>jsxRuntime.jsx(kg.Provider,{value:a,children:t})})}Co.displayName="CollapseItem";function So({title:e,description:t,startContent:r,endContent:o,indicator:n,indicatorPosition:a="end",showIndicator:i=true,keepIndicatorSpace:s=false,children:c,className:l,...u}){let d=A2("CollapseHeader"),{density:m,variant:p,showDividers:g}=su(),f=L2[m];return jsxRuntime.jsx(reactAriaComponents.Button,{...u,slot:"trigger","data-expanded":d.isExpanded?"true":void 0,className:reactAriaComponents.composeRenderProps(l,(b,x)=>F2({isDisabled:x.isDisabled??false,isPressed:x.isPressed??false,density:m,variant:p,showDividers:g,className:b})),children:b=>{let x=b.isDisabled??false,v=i?typeof n=="function"?n({isExpanded:d.isExpanded,isDisabled:x}):n??jsxRuntime.jsx(I,{name:"CaretDown",size:m==="compact"?"xs":"sm",weight:"bold","aria-hidden":"true",className:tailwindMerge.twMerge("text-text-secondary transition-transform duration-200",d.isExpanded?"rotate-180":"rotate-0")}):null,C=v?jsxRuntime.jsx("span",{className:tailwindMerge.twMerge("flex flex-shrink-0 items-center justify-center text-text-secondary",f),"aria-hidden":"true",children:v}):s?jsxRuntime.jsx("span",{className:tailwindMerge.twMerge("flex flex-shrink-0 items-center justify-center",f),"aria-hidden":"true"}):null;return jsxRuntime.jsxs("div",{className:"flex w-full items-center gap-4",children:[a==="start"&&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]})}})}So.displayName="CollapseHeader";function wo({className:e,children:t,...r}){let{density:o,showDividers:n}=su();return jsxRuntime.jsx(reactAriaComponents.DisclosurePanel,{...r,className:reactAriaComponents.composeRenderProps(e,a=>B2({density:o,showDividers:n,className:a})),children:t})}wo.displayName="CollapseContent";function Un(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 cu(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 H2({label:e,description:t,errorMessage:r,size:o="md",tooltip:n,isRequired:a,transparent:i,className:s,validationResult:c,value:l,defaultValue:u,onChange:d,placeholder:m="#000000",showColorSwatch:p=true,reserveErrorSpace:g=true,...f}){let[b,x]=Ee.useState(u||""),[v,C]=Ee.useState(l||u||""),[y,S]=Ee.useState(false),[k,R]=Ee.useState(null),{isFocused:E,handleFocus:D,handleBlur:L}=sr(),V=l!==void 0?l:b;Ee.useEffect(()=>{l!==void 0&&C(l);},[l]);let A=V?!Un(V):false,N=Ee.useCallback(W=>{if(C(W),Un(W)){let F=cu(W);d?d(F):x(F);}else W===""&&(d?d(""):x(""));},[d]),T=Ee.useCallback(W=>{let F=cu(W);C(F),d?d(F):x(F);},[d]),z=Ee.useCallback(W=>{if(Un(v)){let F=cu(v);C(F),d&&F!==V?d(F):!d&&F!==b&&x(F);}L(W,f.onBlur);},[v,V,b,d,L,f.onBlur]);return jsxRuntime.jsx(reactAriaComponents.TextField,{...f,isRequired:a,className:Ce(s,"group flex flex-col"),children:({isDisabled:W})=>jsxRuntime.jsxs("div",{className:"flex flex-col",children:[e&&jsxRuntime.jsx(Me,{size:o,tooltip:n,isRequired:a,children:e}),jsxRuntime.jsx(nt,{children:jsxRuntime.jsxs("div",{className:"flex gap-2",children:[jsxRuntime.jsxs("div",{className:"flex-1 relative",children:[jsxRuntime.jsx(fs,{size:o,disabled:W,type:"text",value:v,placeholder:m,onFocus:F=>D(F,f.onFocus),onBlur:z,onChange:F=>N(F.target.value),className:tailwindMerge.twMerge(ht({isInvalid:A,isDisabled:W,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:Le[o].height},children:jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("w-6 h-6 rounded border shadow-sm",Un(V)?"border-border-default":"border-border-default bg-background-muted"),style:Un(V)?{backgroundColor:V}:void 0,"aria-hidden":"true",children:!Un(V)&&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:R,children:jsxRuntime.jsx(Q,{variant:"secondary",size:o,icon:"Palette",onPress:()=>S(!y),isDisabled:W,className:"flex-shrink-0",children:"Pick"})})]})}),g?jsxRuntime.jsx("div",{className:"mt-1 min-h-[20px]",children:typeof r=="string"?jsxRuntime.jsx(pe,{size:o,children:r}):typeof r=="function"&&c?jsxRuntime.jsx(pe,{size:o,children:r(c)}):t?jsxRuntime.jsx(Se,{size:o,children:t}):null}):jsxRuntime.jsx(jsxRuntime.Fragment,{children:typeof r=="string"?jsxRuntime.jsx(pe,{size:o,className:"mt-1",children:r}):typeof r=="function"&&c?jsxRuntime.jsx(pe,{size:o,className:"mt-1",children:r(c)}):t?jsxRuntime.jsx(Se,{size:o,className:"mt-1",children:t}):null}),y&&k&&jsxRuntime.jsx(Ze,{triggerRef:{current:k},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:V||"#000000",onChange:T,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:V||"#000000"}}),jsxRuntime.jsx("div",{className:"flex-1 text-text-primary text-[length:var(--control-text-sm)] font-mono",children:V||"#000000"})]})]})})]})})}function Dg({isOpen:e,onClose:t,onConfirm:r,title:o,message:n,confirmLabel:a="Confirm",cancelLabel:i="Cancel",confirmVariant:s,isDestructive:c=false,isLoading:l=false,maxWidth:u="500px",minWidth:d="400px"}){return jsxRuntime.jsx(rr,{isOpen:e,onClose:t,title:o,maxWidth:u,minWidth:d,primaryAction:{label:a,onPress:()=>{r();},variant:s??(c?"destructive":"primary"),isLoading:l},secondaryAction:{label:i,onPress:t,variant:"secondary",isDisabled:l},children:jsxRuntime.jsx("div",{className:"text-text-primary",children:n})})}function Mg({isConnected:e,connectedAt:t,disconnectedAt:r,showTimestamp:o=false,isLoading:n,size:a="sm",shape:i="pill",...s}){if(n)return jsxRuntime.jsx(J,{className:"inline-flex h-6 w-24"});let c=e?"Connected":"Disconnected",l=e?"success":"neutral",u=null;if(o){if(e&&t)u=Vi(t);else if(!e&&r){let d=Vi(r);u=d?`Offline ${d}`:null;}}return jsxRuntime.jsxs("div",{className:"inline-flex flex-col gap-1",children:[jsxRuntime.jsx(Je,{variant:l,size:a,shape:i,dot:e,dotPulse:e,...s,children:c}),u&&jsxRuntime.jsx("span",{className:"text-xs text-text-secondary",children:u})]})}function Eg({firstName:e,lastName:t,email:r,phone:o,avatarUrl:n,href:a,LinkComponent:i,variant:s="outlined",layout:c="horizontal",showEmail:l=true,showPhone:u=false,isLoading:d=false,className:m,contentClassName:p,piiEntity:g}){let f=`${e} ${t}`.trim(),b=({children:v,className:C})=>a?i?jsxRuntime.jsx(i,{href:a,className:C,children:v}):jsxRuntime.jsx(Ue,{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 d?jsxRuntime.jsx(Ae,{variant:s,className:tailwindMerge.twMerge("flex flex-col",m),children:jsxRuntime.jsx(Ae.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(Ae,{variant:s,className:tailwindMerge.twMerge("group/card flex flex-col",m),children:jsxRuntime.jsx(Ae.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(Zr,{firstName:e,lastName:t,src:n,size:"xl",variant:"user",shape:"square",className:"flex-shrink-0",piiEntity:g}),jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge(x?"w-full":"flex-1 min-w-0"),children:[a&&jsxRuntime.jsx(b,{className:"after:absolute after:inset-0",children:jsxRuntime.jsx("span",{className:"sr-only",children:f})}),jsxRuntime.jsx("span",{className:"text-lg font-semibold leading-tight text-text-primary block mb-1.5 group-hover/card:text-text-brand transition-colors","data-pii-type":g?"full-name":void 0,"data-pii-entity":g,children:f}),jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("space-y-0.5",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(I,{name:"Envelope",size:16,className:"text-text-secondary flex-shrink-0"}),jsxRuntime.jsx(Ue,{href:`mailto:${r}`,variant:"unstyled",className:tailwindMerge.twMerge("text-sm leading-relaxed text-text-primary relative z-20",x?"":"truncate"),"data-pii-type":g?"email":void 0,"data-pii-entity":g,children:r})]}),u&&o&&jsxRuntime.jsxs("div",{className:"flex items-center gap-2.5 text-text-primary",children:[jsxRuntime.jsx(I,{name:"Phone",size:16,className:"text-text-secondary flex-shrink-0"}),jsxRuntime.jsx(Ue,{href:`tel:${o}`,variant:"unstyled",className:tailwindMerge.twMerge("text-sm leading-relaxed text-text-primary relative z-20",x?"":"truncate"),"data-pii-type":g?"phone":void 0,"data-pii-entity":g,children:Ln(o)})]})]})]})]})})})}function Ps({firstName:e,lastName:t,email:r,avatarUrl:o,layout:n="stacked",size:a="md",href:i,LinkComponent:s,linkVariant:c="unstyled",emphasis:l="normal",showEmail:u=false,badge:d,avatarShape:m,isLoading:p=false,className:g,piiEntity:f}){let 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],k=({children:R,className:E})=>i?s?jsxRuntime.jsx(s,{href:i,className:E,children:R}):jsxRuntime.jsx(Ue,{href:i,variant:c,className:tailwindMerge.twMerge("hover:underline",E),asButton:false,children:R}):jsxRuntime.jsx("span",{className:E,children:R});return p?n==="inline"?jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("flex items-center",v.gap,g),children:[jsxRuntime.jsx(J,{width:v.skeletonAvatar,height:v.skeletonAvatar,className:"flex-shrink-0 rounded-full"}),jsxRuntime.jsx(J,{width:v.skeletonText,height:v.skeletonAvatar*.5})]}):jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("flex items-center",v.gap,g),children:[jsxRuntime.jsx(J,{width:v.skeletonAvatar,height:v.skeletonAvatar,className:"flex-shrink-0 rounded-full"}),jsxRuntime.jsxs("div",{className:"flex flex-col gap-1",children:[jsxRuntime.jsx(J,{width:v.skeletonText,height:16}),u&&jsxRuntime.jsx(J,{width:v.skeletonSecondary,height:12})]})]}):n==="inline"?jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("flex items-center",v.gap,g),children:[jsxRuntime.jsxs(k,{className:tailwindMerge.twMerge("flex items-center",v.gap),children:[jsxRuntime.jsx(Zr,{firstName:e,lastName:t,src:o,size:v.avatarSize,variant:"user",shape:b,className:"flex-shrink-0",piiEntity:f}),jsxRuntime.jsx("span",{className:tailwindMerge.twMerge("leading-normal truncate hover:text-text-primary",S,v.textSize,i&&"hover:underline hover:decoration-1 hover:underline-offset-4"),"data-pii-type":f?"full-name":void 0,"data-pii-entity":f,children:C})]}),d]}):jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("flex items-center justify-start",v.gap,g),children:[jsxRuntime.jsx(Zr,{firstName:e,lastName:t,src:o,size:v.avatarSize,variant:"user",shape:b,className:"flex-shrink-0",piiEntity:f}),jsxRuntime.jsxs("div",{className:"flex flex-col items-start min-w-0",children:[jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[jsxRuntime.jsx(k,{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":f?"full-name":void 0,"data-pii-entity":f,children:C})}),d]}),u&&r&&jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("text-text-secondary leading-normal truncate",v.secondaryTextSize),"data-pii-type":f?"email":void 0,"data-pii-entity":f,children:r})]})]})}var Lg={duration:.5,ease:"easeInOut"},To=Ee.createContext(null),on=()=>{let e=Ee.useContext(To);if(!e)throw new Error("useChartContext must be used within a ChartContextProvider");return e};var Ga=({data:e,color:t="var(--color-viz-default)"})=>{let r=Ee.useId(),o=Ee.useId(),{xScale:n,yScale:a,animationSettings:i}=on(),s=n.range(),c=a.range();return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsxs("defs",{children:[jsxRuntime.jsxs("linearGradient",{id:r,x1:"0%",y1:"0%",x2:"0%",y2:"100%",children:[jsxRuntime.jsx("stop",{offset:"50%",stopColor:t,stopOpacity:.1}),jsxRuntime.jsx("stop",{offset:"100%",stopColor:t,stopOpacity:0})]}),jsxRuntime.jsx("clipPath",{id:o,children:jsxRuntime.jsx("rect",{x:s[0],y:c[1],width:s[1]-s[0],height:c[0]-c[1]})})]}),jsxRuntime.jsx("g",{clipPath:`url(#${o})`,children:jsxRuntime.jsxs(framerMotion.motion.g,{initial:{scaleY:0},animate:{scaleY:1},transition:{duration:i.duration,ease:i.ease},style:{transformOrigin:`0 ${c[0]}px`,transformBox:"fill-box",isolation:"isolate"},children:[jsxRuntime.jsx(shape.AreaClosed,{data:e,x:l=>n(l.xValue),y:l=>a(l.yValue),yScale:a,fill:`url(#${r})`,curve:curve.curveLinear}),jsxRuntime.jsx(shape.LinePath,{data:e,x:l=>n(l.xValue),y:l=>a(l.yValue),stroke:t,strokeWidth:3,curve:curve.curveLinear})]})})]})};var Kn=({data:e,color:t="var(--color-viz-default)",opacity:r=1,categoryColors:o={}})=>{let{xScale:n,yScale:a,animationSettings:i}=on(),s=Ee.useId(),c=n.range(),l=a.range(),u=[...e].sort((p,g)=>p.xValue.getTime()-g.xValue.getTime());if(u.length===0)return null;let d=u.length>1?u[1].xValue.getTime()-u[0].xValue.getTime():15*6e4,m=Math.abs(n(new Date(u[0].xValue.getTime()+d))-n(u[0].xValue));return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("defs",{children:jsxRuntime.jsx("clipPath",{id:s,children:jsxRuntime.jsx("rect",{x:c[0],y:l[1],width:c[1]-c[0],height:l[0]-l[1]})})}),jsxRuntime.jsx("g",{clipPath:`url(#${s})`,children:jsxRuntime.jsx(framerMotion.motion.g,{initial:{scaleY:0},animate:{scaleY:1},transition:{duration:i.duration,ease:i.ease},style:{transformOrigin:`0 ${a(0)}px`,isolation:"isolate"},children:u.map((p,g)=>{let f=n(p.xValue),b=a(p.yValue),x=a(0),v=Math.min(b,x),C=Math.abs(b-x),y=u[g+1],S=y?Math.abs(n(y.xValue)-f):m,k=p.category&&o[p.category]?o[p.category]:t;return jsxRuntime.jsx(shape.Bar,{x:f-S/2,y:v,width:S,height:C,fill:k,opacity:r,rx:1},p.xValue.getTime())})})})]})};var Ir=Vp(ob()),ab=Vp(nb());var mw=["top","left","transform","className","children","innerRef"];function vu(){return vu=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},vu.apply(this,arguments)}function fw(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 Ua(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=fw(e,mw);return Ee__namespace.default.createElement("g",vu({ref:c,className:(0, ab.default)("visx-group",i),transform:a||"translate("+n+", "+r+")"},l),s)}Ua.propTypes={top:Ir.default.number,left:Ir.default.number,transform:Ir.default.string,className:Ir.default.string,children:Ir.default.node,innerRef:Ir.default.oneOfType([Ir.default.string,Ir.default.func,Ir.default.object])};var Ye={top:0,right:0,bottom:50,left:60};function $r(e={type:"number"}){let t=i=>{if(i==null)return "-";let s=kr({value:i,formatter:e});if(s===null)return "-";if(typeof s=="string")return s;if(typeof s=="number")return s.toString();if(typeof s=="object"&&s!==null&&"props"in s){let c=u=>{if(u==null)return "";if(typeof u=="string")return u;if(typeof u=="number")return u.toString();if(typeof u=="object"&&"props"in u){let d=u.props;if(d?.children)return Array.isArray(d.children)?d.children.map(c).join(""):c(d.children)}return ""};return c(s)||i.toString()}return i.toString()},r=i=>{if(i==null)return "-";if(typeof e=="string"){let s=kr({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 Cu=(e,t)=>{let r=d3Array.extent(e,o=>o.xValue);return scale.scaleTime({range:[Ye.left,t-Ye.right],domain:r,nice:true})},Su=(e,t,r)=>{let o=$r(r),n=d3Array.min(e,c=>c.yValue)||0,a=d3Array.max(e,c=>c.yValue)||0,i=o.min!==void 0?o.min:n>=0?0:n*1.1,s=o.max!==void 0?o.max:a<=0?0:a*1.1;return scale.scaleLinear({range:[t-Ye.bottom,Ye.top],domain:[i,s],nice:true})};function Cw(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 Us(e,t=12,r="system-ui"){return e.length===0?0:Math.max(...e.map(o=>Cw(o,t,r)))}function Ya(e){return e instanceof Date&&!Number.isNaN(e.getTime())}function Sw(e,t,r=12,o=false){if(!Ya(t[0])||!Ya(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=Zc({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)),u=Us(l,r),m=u+u,p=Math.floor(e/m),g=Math.max(2,Math.min(8,p));if(g<=2)return [t[0],t[1]];let f=[t[0]];for(let b=1;b<g-1;b++){let x=b/(g-1),v=n+i*x;f.push(new Date(v));}return f.push(t[1]),f}var ww=({top:e,scale:t,width:r})=>{let o=t.domain(),n=[o[0],o[o.length-1]],a=Ya(n[0])&&Ya(n[1]),i=r<400,s=a?n[0].getTime():0,c=a?n[1].getTime():0,l=Ee.useMemo(()=>a?Zc({start:n[0],end:n[1]},{compact:i}):()=>"",[s,c,i,a]),u=Ee.useMemo(()=>Sw(r,n,12,i),[r,s,c,i]);return u.length===0?null:jsxRuntime.jsx(axis.Axis,{orientation:"bottom",top:e,scale:t,tickValues:u,tickFormat:d=>{let m=d;return Ya(m)?l(m):""},stroke:"var(--color-border-muted)",tickStroke:"var(--color-border-muted)",tickLabelProps:(d,m,p)=>({fill:"var(--color-text-secondary)",fontSize:12,textAnchor:m===0?"start":m===p.length-1?"end":"middle"}),rangePadding:0})};function Ks(e,t=12){let r=t*2.5,o=Math.floor(e/r);return Math.max(2,Math.min(6,o))}var Nw=({left:e,scale:t,yFormatter:r,height:o})=>{let n=$r(r),a=Ee.useMemo(()=>!o||o<=0?5:Ks(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"})})},Tw=({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"})}),kw=({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"})}),Pw=({top:e,scale:t,yFormatter:r,width:o})=>{let n=$r(r),a=Ee.useMemo(()=>{if(!o||o<=0)return 5;let s=Math.floor(o/60);return Math.max(2,Math.min(8,s))},[o]);return jsxRuntime.jsx(axis.Axis,{orientation:"bottom",top:e,scale:t,numTicks:a,tickFormat:i=>(n.tickFormat||n.format)(i),stroke:"var(--color-border-muted)",tickStroke:"var(--color-border-muted)",tickLabelProps:()=>({fill:"var(--color-text-secondary)",fontSize:12,textAnchor:"middle",dy:"0.25em"})})},Fr={Bottom:ww,Left:Nw,CategoryBottom:Tw,CategoryLeft:kw,NumericBottom:Pw};var qn=({data:e,formatter:t,label:r,categoryLabels:o})=>{if(!e)return null;let n=Ee__namespace.default.useContext(To),a=o??n?.categoryLabels,i=n?.xScale,s=$r(t),c=Ee__namespace.default.useRef(null),[l,u]=Ee__namespace.default.useState({x:0,y:0,translate:"translate(-50%, -100%)"});Ee__namespace.default.useEffect(()=>{if(!c.current)return;let b=c.current.getBoundingClientRect(),x=window.innerHeight,v=window.innerWidth,C=e.x,y=e.y,S=e.position==="left"?"translate(calc(-100% - 16px), -50%)":"translate(16px, -50%)";e.position==="left"&&C-b.width-16<0?S="translate(16px, -50%)":e.position==="right"&&C+b.width+16>v&&(S="translate(calc(-100% - 16px), -50%)"),y-b.height/2<0?y=b.height/2:y+b.height/2>x&&(y=x-b.height/2),u({x:C,y,translate:S});},[e.x,e.y,e.position]);let d=i?.domain(),p=d&&d.length===2&&d.every(f=>f instanceof Date)?jm({start:d[0],end:d[1]}):null,g=r||(p&&e.xValue instanceof Date?p(e.xValue):String(e.xValue));return jsxRuntime.jsx(framerMotion.AnimatePresence,{children:jsxRuntime.jsxs(framerMotion.motion.div,{ref:c,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:l.x,top:l.y,transform:l.translate},children:[jsxRuntime.jsx("div",{className:"mb-1 font-medium text-text-primary",children:g}),e.isEvent?jsxRuntime.jsxs("div",{className:"space-y-2",children:[e.series.length>1&&jsxRuntime.jsx("ul",{className:"list-none p-0 border-b border-border-default pb-2",children:e.series.slice(0,-1).map(f=>jsxRuntime.jsxs("li",{className:"py-0.5",children:[jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[jsxRuntime.jsxs("span",{className:"font-medium text-text-primary",children:[f.label,":"]}),jsxRuntime.jsx("span",{className:"text-text-secondary",children:s.format(f.value)})]}),f.category&&jsxRuntime.jsxs("div",{className:"mt-0.5 flex items-center gap-2",children:[jsxRuntime.jsx("div",{className:"h-3 w-3",style:{backgroundColor:f.categoryColor||f.color,borderRadius:"1px"}}),jsxRuntime.jsx("span",{className:"text-sm text-text-secondary",children:a?.[f.category]||f.category})]})]},f.label))}),(()=>{let f=e.series[e.series.length-1];return jsxRuntime.jsxs("div",{children:[jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[jsxRuntime.jsx("div",{className:"h-2 w-2 rounded-full",style:{backgroundColor:f.color}}),jsxRuntime.jsx("span",{className:"font-medium text-text-primary",children:f.label})]}),e.eventMetadata&&Object.keys(e.eventMetadata).length>0&&jsxRuntime.jsx("div",{className:"ml-4 mt-1 space-y-0.5 text-xs text-text-secondary",children:Object.entries(e.eventMetadata).map(([b,x])=>jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[jsxRuntime.jsxs("span",{className:"capitalize",children:[b,":"]}),jsxRuntime.jsx("span",{className:"font-medium",children:x})]},b))})]})})()]}):jsxRuntime.jsx("ul",{className:"list-none p-0",children:e.series.map(f=>jsxRuntime.jsxs("li",{className:"py-0.5",children:[jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[jsxRuntime.jsxs("span",{className:"font-medium text-text-primary",children:[f.label,":"]}),jsxRuntime.jsx("span",{className:"text-text-secondary",children:s.format(f.value)})]}),f.category&&jsxRuntime.jsxs("div",{className:"mt-0.5 flex items-center gap-2",children:[jsxRuntime.jsx("div",{className:"h-3 w-3",style:{backgroundColor:f.categoryColor||f.color,borderRadius:"1px"}}),jsxRuntime.jsx("span",{className:"text-sm text-text-secondary",children:a?.[f.category]||f.category})]})]},f.label))})]})})};var Fw={top:20,right:20,bottom:50,left:60},pb=({data:e,width:t,height:r,margin:o=Fw,color:n,yFormatter:a={type:"number"},showGrid:i=true,showAxes:s=true,animate:c=true,barRadius:l=4,barPadding:u=.3,onBarClick:d,onBarHover:m,activeIndex:p,className:g,style:f,"aria-label":b="Category bar chart",orientation:x="vertical",showTooltip:v=true})=>{let[C,y]=Ee.useState(null),[S,k]=Ee.useState(null),[R,E]=Ee.useState(null),[D,L]=Ee.useState(t??600),[V,A]=Ee.useState(r??300),N=Ee.useRef(null),T=p??C,z=Ee.useId(),W=n||"var(--color-viz-default)";Ee.useEffect(()=>{if(t!==void 0&&r!==void 0){L(t),A(r);return}if(!N.current)return;let P=new ResizeObserver(w=>{for(let B of w)t===void 0&&L(B.contentRect.width),r===void 0&&A(B.contentRect.height);});return P.observe(N.current),t===void 0&&L(N.current.offsetWidth),r===void 0&&A(N.current.offsetHeight||300),()=>{P.disconnect();}},[t,r]);let{xScale:F,yScale:K,innerWidth:X,innerHeight:G}=Ee.useMemo(()=>{let P=D-o.left-o.right,w=V-o.top-o.bottom;if(x==="horizontal"){let M=d3Array.max(e,h=>h.value)||0;return {xScale:scale.scaleLinear({range:[0,P],domain:[0,M*1.1],nice:true}),yScale:scale.scaleBand({range:[0,w],domain:e.map(h=>h.label),padding:u}),innerWidth:P,innerHeight:w}}let B=d3Array.max(e,M=>M.value)||0;return {xScale:scale.scaleBand({range:[0,P],domain:e.map(M=>M.label),padding:u}),yScale:scale.scaleLinear({range:[w,0],domain:[0,B*1.1],nice:true}),innerWidth:P,innerHeight:w}},[e,D,V,o,u,x]);if(e.length===0)return jsxRuntime.jsx("div",{ref:N,className:tailwindMerge.twMerge("flex h-full min-h-[200px] w-full items-center justify-center rounded-lg border border-dashed border-border-default bg-background-surface text-sm font-medium text-text-secondary",g),style:r!==void 0?{height:r,...f}:f,children:"No data available"});let Y=(P,w)=>{if(y(P),m?.(w,P),P!==null&&w){let B,M;if(x==="horizontal"){let O=F(w.value),H=K(w.label)||0,j=K.bandwidth();B=o.left+O,M=o.top+H+j/2;}else {let O=F,H=K,j=O(w.label)??0,oe=O.bandwidth(),me=H(w.value);B=o.left+j+oe/2,M=o.top+me;}let h=B>D/2;E(w.label),k({xValue:new Date,series:[{label:"Value",value:w.value,color:w.color||W}],x:B,y:M,position:h?"left":"right"});}else k(null),E(null);};return jsxRuntime.jsxs("div",{ref:N,className:tailwindMerge.twMerge("relative h-full w-full overflow-hidden rounded-lg bg-background-surface",g),style:r!==void 0?{height:r,...f}:f,"aria-label":b,role:"img",children:[jsxRuntime.jsxs("svg",{width:D,height:V,children:[jsxRuntime.jsx("defs",{children:jsxRuntime.jsx(gradient.LinearGradient,{id:`${z}-bar`,from:W,to:W,toOpacity:.85})}),jsxRuntime.jsxs(Ua,{left:o.left,top:o.top,children:[i&&jsxRuntime.jsx("g",{className:"grid-lines",children:(x==="horizontal"?F.ticks(5):K.ticks(5)).map(P=>{let w=x==="horizontal"?0:K(P),B=x==="horizontal"?F(P):0;return jsxRuntime.jsx("line",{x1:x==="horizontal"?B:0,y1:x==="horizontal"?0:w,x2:x==="horizontal"?B:X,y2:x==="horizontal"?G:w,stroke:"var(--color-border-default)",strokeOpacity:.5,strokeDasharray:"2,3"},P)})}),e.map((P,w)=>{let B=T===w||T==null,M=P.color||`url(#${z}-bar)`;if(x==="horizontal"){let Z=F(P.value),ne=K.bandwidth(),Te=K(P.label)||0;return jsxRuntime.jsx(framerMotion.motion.rect,{x:0,y:Te,width:Z,height:ne,fill:M,rx:l,ry:l,initial:c?{width:0,opacity:.5}:void 0,animate:{width:Z,opacity:B?1:.5},transition:{duration:.5,delay:w*.05,ease:"easeOut",opacity:{duration:.15,delay:0}},style:{cursor:d||m?"pointer":"default"},onMouseEnter:()=>Y(w,P),onMouseLeave:()=>Y(null,null),onClick:()=>d?.(P,w)},P.label)}let h=F,O=K,H=h.bandwidth(),j=h(P.label)??0,oe=O(P.value),me=Math.max(0,G-oe);return c?jsxRuntime.jsx(framerMotion.motion.rect,{x:j,width:H,fill:M,rx:l,ry:l,initial:{y:G,height:0,opacity:.5},animate:{y:oe,height:me,opacity:B?1:.5},transition:{duration:.5,delay:w*.05,ease:"easeOut",opacity:{duration:.15,delay:0}},style:{cursor:d||m?"pointer":"default"},onMouseEnter:()=>Y(w,P),onMouseLeave:()=>Y(null,null),onClick:()=>d?.(P,w)},P.label):jsxRuntime.jsx("rect",{x:j,y:oe,width:H,height:me,fill:M,rx:l,ry:l,opacity:B?1:.5,style:{cursor:d||m?"pointer":"default",transition:"opacity 150ms ease-out"},onMouseEnter:()=>Y(w,P),onMouseLeave:()=>Y(null,null),onClick:()=>d?.(P,w)},P.label)}),s&&x==="vertical"&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(Fr.CategoryBottom,{top:G,scale:F}),jsxRuntime.jsx(Fr.Left,{left:0,scale:K,yFormatter:a,height:G})]}),s&&x==="horizontal"&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(Fr.NumericBottom,{top:G,scale:F,yFormatter:a,width:X}),jsxRuntime.jsx(Fr.CategoryLeft,{left:0,scale:K})]})]})]}),v&&jsxRuntime.jsx(qn,{data:S,formatter:a,label:R??void 0})]})};var mb=({item:e})=>jsxRuntime.jsxs("div",{className:"flex items-center gap-2 shrink-0",children:[jsxRuntime.jsx("div",{className:"h-3 w-3 shrink-0",style:{backgroundColor:e.fill,borderRadius:"1px"}}),jsxRuntime.jsx("span",{className:"text-sm text-text-secondary whitespace-nowrap",children:e.category})]}),zw=({items:e})=>e.length===0?null:jsxRuntime.jsx("div",{className:"flex items-center gap-3 flex-wrap",children:e.map(t=>jsxRuntime.jsx(mb,{item:t},t.category))}),js=({items:e,onExport:t,marginLeft:r=0,marginRight:o=0,isZoomed:n=false,onResetZoom:a})=>{let[i,s]=Ee__namespace.default.useState(false),[c,l]=Ee__namespace.default.useState(null),[u,d]=Ee__namespace.default.useState(false),[m,p]=Ee__namespace.default.useState(false),g=Ee__namespace.default.useCallback(async b=>{s(true),l(b),p(false);try{await t(b);}catch(x){console.error("Export failed:",x);}finally{s(false),l(null);}},[t]),f=Ee__namespace.default.useCallback(async b=>{await g(b);},[g]);return jsxRuntime.jsxs("div",{className:"mt-4 flex items-center justify-between gap-3 min-h-[32px]",style:{marginLeft:r,marginRight:o},children:[jsxRuntime.jsx("div",{className:"hidden sm:block flex-1 min-w-0",children:jsxRuntime.jsx(zw,{items:e})}),jsxRuntime.jsx("div",{className:"sm:hidden flex items-center gap-3",children:e.length>0&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("button",{onClick:()=>d(true),className:"text-sm text-text-secondary hover:text-text-primary transition-colors underline decoration-dotted underline-offset-4",children:"Legend"}),jsxRuntime.jsx(Xe,{isOpen:u,onClose:()=>d(false),title:"Legend",children:jsxRuntime.jsx("div",{className:"grid grid-cols-1 gap-3 p-4",children:e.map(b=>jsxRuntime.jsx(mb,{item:b},b.category))})})]})}),jsxRuntime.jsxs("div",{className:"sm:hidden flex items-center gap-2 shrink-0",children:[n&&a&&jsxRuntime.jsx(Q,{variant:"secondary",size:"sm",onPress:a,children:jsxRuntime.jsx(I,{name:"ArrowsOut",size:16})}),jsxRuntime.jsx(Q,{variant:"secondary",size:"sm",onPress:()=>p(true),isDisabled:i,children:jsxRuntime.jsx(I,{name:"Export",size:16})}),jsxRuntime.jsx(Xe,{isOpen:m,onClose:()=>p(false),title:"Export Chart",contentPadding:false,children:jsxRuntime.jsxs("div",{className:"flex flex-col",children:[jsxRuntime.jsxs("button",{onClick:()=>g("csv"),disabled:i,className:"flex items-center gap-3 px-6 py-4 text-left hover:bg-background-hover active:bg-background-muted transition-colors disabled:opacity-50 disabled:cursor-not-allowed",children:[jsxRuntime.jsx(I,{name:"List",size:20,className:"text-text-secondary"}),jsxRuntime.jsx("span",{className:"text-sm text-text-primary",children:c==="csv"?"Exporting...":"Export as CSV"})]}),jsxRuntime.jsxs("button",{onClick:()=>g("svg"),disabled:i,className:"flex items-center gap-3 px-6 py-4 text-left hover:bg-background-hover active:bg-background-muted transition-colors disabled:opacity-50 disabled:cursor-not-allowed",children:[jsxRuntime.jsx(I,{name:"Code",size:20,className:"text-text-secondary"}),jsxRuntime.jsx("span",{className:"text-sm text-text-primary",children:c==="svg"?"Exporting...":"Export as SVG"})]}),jsxRuntime.jsxs("button",{onClick:()=>g("png"),disabled:i,className:"flex items-center gap-3 px-6 py-4 text-left hover:bg-background-hover active:bg-background-muted transition-colors disabled:opacity-50 disabled:cursor-not-allowed",children:[jsxRuntime.jsx(I,{name:"DownloadSimple",size:20,className:"text-text-secondary"}),jsxRuntime.jsx("span",{className:"text-sm text-text-primary",children:c==="png"?"Exporting...":"Export as PNG"})]})]})})]}),jsxRuntime.jsxs("div",{className:"hidden sm:flex items-center gap-2 shrink-0",children:[n&&a&&jsxRuntime.jsxs(Q,{variant:"secondary",size:"sm",onPress:a,children:[jsxRuntime.jsx(I,{name:"ArrowsOut",size:16}),jsxRuntime.jsx("span",{className:"hidden sm:inline",children:"Reset Zoom"})]}),jsxRuntime.jsxs(reactAriaComponents.DialogTrigger,{children:[jsxRuntime.jsxs(Q,{variant:"secondary",size:"sm",isDisabled:i,children:[jsxRuntime.jsx(I,{name:"Export",size:16}),i?"Exporting...":"Export"]}),jsxRuntime.jsx(Ze,{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:f,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:i,children:jsxRuntime.jsxs("span",{className:"flex items-center gap-2",children:[jsxRuntime.jsx(I,{name:"List",size:14}),c==="csv"?"Exporting...":"Export as CSV"]})}),jsxRuntime.jsx(reactAriaComponents.MenuItem,{id:"svg",className:"flex items-center gap-2 px-3 py-2 text-sm text-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:i,children:jsxRuntime.jsxs("span",{className:"flex items-center gap-2",children:[jsxRuntime.jsx(I,{name:"Code",size:14}),c==="svg"?"Exporting...":"Export as SVG"]})}),jsxRuntime.jsx(reactAriaComponents.MenuItem,{id:"png",className:"flex items-center gap-2 px-3 py-2 text-sm text-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:i,children:jsxRuntime.jsxs("span",{className:"flex items-center gap-2",children:[jsxRuntime.jsx(I,{name:"DownloadSimple",size:14}),c==="png"?"Exporting...":"Export as PNG"]})})]})})]})]})]})};var Nu=({data:e,seriesMetadata:t,width:r,height:o,onBrushChange:n,brushRegion:a,margin:i=Ye})=>{let s=Ee.useRef(null),c=Ee.useRef(false),l=Ee.useMemo(()=>e.flat(),[e]),u=Ee.useMemo(()=>({top:10,bottom:15,left:i.left,right:i.right}),[i]),d=r-u.left-u.right,m=Ee.useMemo(()=>{if(l.length===0)return scale.scaleTime({domain:[new Date,new Date],range:[0,d]});let x=new Date(Math.min(...l.map(C=>C.xValue.getTime()))),v=new Date(Math.max(...l.map(C=>C.xValue.getTime())));return scale.scaleTime({domain:[x,v],range:[0,d]})},[l,d]),p=Ee.useMemo(()=>{let x=l.length>0?Math.max(0,...l.map(v=>v.yValue)):1;return scale.scaleLinear({domain:[0,x],range:[o-u.bottom,u.top]})},[l,o]),g=x=>{if(c.current)return;if(!x){n(null);return}let{x0:v,x1:C}=x;if(v===C)return;let y=new Date(v),S=new Date(C);if(!(Number.isNaN(y.getTime())||Number.isNaN(S.getTime()))){if(l.length>0){let k=Math.min(...l.map(V=>V.xValue.getTime())),R=Math.max(...l.map(V=>V.xValue.getTime())),D=(R-k)*.05;if(Math.abs(y.getTime()-k)<D&&Math.abs(S.getTime()-R)<D){n(null);return}}n([y,S]);}},f=Ee.useMemo(()=>{if(l.length!==0)return {start:{x:0,y:u.top},end:{x:d,y:o-u.bottom}}},[d,o,l]);Ee.useEffect(()=>{if(!s.current||l.length===0)return;let x=s.current.state;if(x?.isBrushing||x?.activeHandle)return;let v=Math.min(...l.map(E=>E.xValue.getTime())),C=Math.max(...l.map(E=>E.xValue.getTime())),y=a?a[0]:new Date(v),S=a?a[1]:new Date(C),k=s.current.state?.extent;if(k){let E=m.invert(k.x0),D=m.invert(k.x1),L=Math.abs(E.getTime()-y.getTime()),V=Math.abs(D.getTime()-S.getTime());if(L<1e3&&V<1e3)return}c.current=true;let R=E=>{let D=s.current.getExtent({x:m(y),y:u.top},{x:m(S),y:o-u.bottom});return {...E,start:{y:D.y0,x:D.x0},end:{y:D.y1,x:D.x1},extent:D}};s.current.updateBrush(R),setTimeout(()=>{c.current=false;},50);},[a,m,o,l]);let b={fill:"url(#brush_pattern)",fillOpacity:.15,stroke:"var(--color-border-focus)",strokeWidth:1.5,strokeOpacity:.3};return jsxRuntime.jsx("div",{className:"mt-2",children:jsxRuntime.jsxs("svg",{width:r,height:o,children:[jsxRuntime.jsx(pattern.PatternLines,{id:"brush_pattern",height:8,width:8,stroke:"var(--color-text-secondary)",strokeWidth:1,orientation:["diagonal"]}),jsxRuntime.jsxs("g",{transform:`translate(${u.left}, 0)`,children:[e.map((x,v)=>jsxRuntime.jsx(shape.LinePath,{data:x,x:C=>m(C.xValue),y:C=>p(C.yValue),stroke:t[v]?.color||"var(--color-gray-500)",strokeWidth:1.5,opacity:.8},`brush-series-${v}`)),jsxRuntime.jsx(brush.Brush,{xScale:m,yScale:p,width:d,height:o-u.top-u.bottom,margin:{top:u.top,bottom:u.bottom,left:0,right:0},handleSize:8,innerRef:s,resizeTriggerAreas:["left","right"],brushDirection:"horizontal",initialBrushPosition:f,onChange:g,onClick:()=>n(null),selectedBoxStyle:b,useWindowMoveEvents:true})]})]})})};function hb(e){switch(e){case "command":return ft("--color-action-brand","#111111");case "success":return ft("--color-feedback-success-border","#278a4a");case "warning":return ft("--color-feedback-warning-border","#c88420");case "error":return ft("--color-feedback-error-border","#c42d2d");case "alert":return ft("--color-feedback-warning-border","#c88420");default:return ft("--color-text-secondary","#525250")}}function Zs({events:e,color:t,showLabels:r=false}){let o=Ee.useContext(To),[n,a]=Ee.useState(null);if(!o)return console.warn("ChartEventMarkers must be used within a ChartContainer"),null;let{xScale:i,yScale:s,height:c,tooltip:l,datasets:u,seriesMetadata:d,seriesTypes:m,categoryColors:p}=o,g=e.filter(x=>{let v=i(x.timestamp);return v>=Ye.left&&v<=i.range()[1]}),f=Ee.useCallback((x,v)=>{a(v);let C=i(x.timestamp),y=C>(i.range()[1]-Ye.right-Ye.left)/2+Ye.left,S=[];u&&d&&u.forEach((k,R)=>{if(k.length===0)return;let E=d3Array.bisector(N=>N.xValue).left,D=E(k,x.timestamp),L=k[D-1],V=k[D],A;if(!L)A=V;else if(!V)A=L;else {let N=Math.abs(x.timestamp.getTime()-L.xValue.getTime()),T=Math.abs(x.timestamp.getTime()-V.xValue.getTime());A=N<T?L:V;}A&&d[R]&&S.push({label:d[R].label,value:A.yValue,color:d[R].color,type:m?.[R]||"line",...A.category&&{category:A.category,categoryColor:p?.[A.category]}});}),S.push({label:x.label,value:0,color:t||hb(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});},[i,s,c,l,t,u,d,m,p]),b=Ee.useCallback(()=>{a(null),l.hide();},[l]);return g.length===0?null:jsxRuntime.jsx("g",{className:"chart-event-markers","data-testid":"chart-event-markers",children:g.map((x,v)=>{let C=i(x.timestamp),y=t||hb(x.type),S=n===v;return jsxRuntime.jsxs("g",{children:[jsxRuntime.jsx("line",{x1:C,y1:Ye.top,x2:C,y2:c-Ye.bottom,stroke:y,strokeWidth:S?3:2,strokeDasharray:"4 4",strokeOpacity:S?.9:.6,pointerEvents:"none"}),jsxRuntime.jsx("circle",{cx:C,cy:Ye.top,r:S?5:4,fill:y,stroke:"var(--color-background-surface)",strokeWidth:2,pointerEvents:"none"}),jsxRuntime.jsx("circle",{cx:C,cy:c-Ye.bottom,r:S?5:4,fill:y,stroke:"var(--color-background-surface)",strokeWidth:2,pointerEvents:"none"}),r&&jsxRuntime.jsx("text",{x:C,y:Ye.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:Ye.top,width:20,height:c-Ye.top-Ye.bottom,fill:"transparent",style:{cursor:"pointer"},onMouseEnter:()=>f(x,v),onMouseLeave:b})]},`${x.timestamp.getTime()}-${v}`)})})}var Xa=({data:e,color:t="var(--color-viz-default)",strokeWidth:r=3,strokeDasharray:o,categoryColors:n={}})=>{let{xScale:a,yScale:i,animationSettings:s}=on(),c=i.range(),l=Object.keys(n).length>0,u=m=>m.category?n[m.category]??t:t,d=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:d?jsxRuntime.jsx("circle",{cx:a(d.xValue),cy:i(d.yValue),r,fill:l?u(d):t}):l?e.slice(0,-1).map((m,p)=>{let g=e[p+1];return jsxRuntime.jsx(shape.LinePath,{data:[m,g],x:f=>a(f.xValue),y:f=>i(f.yValue),stroke:u(m),strokeWidth:r,strokeDasharray:o,strokeLinecap:"round",curve:curve.curveLinear},`${m.xValue.getTime()}-${g.xValue.getTime()}`)}):jsxRuntime.jsx(shape.LinePath,{data:e,x:m=>a(m.xValue),y:m=>i(m.yValue),stroke:t,strokeWidth:r,strokeDasharray:o,strokeLinecap:"round",curve:curve.curveLinear})})};var Nb=e=>e.type===Ga||e.type===Xa||e.type===Kn,oN=e=>e.type===Zs,nN=d3Array.bisector(e=>e.xValue).left,aN=()=>jsxRuntime.jsx("div",{className:"flex h-full items-center justify-center",children:jsxRuntime.jsx("p",{className:"text-text-secondary",children:"No data available"})}),iN=()=>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"})]})]}),sN=({parentWidth:e,parentHeight:t,yFormatter:r={type:"number"},isLoading:o=false,enableZoom:n=false,enableBrush:a=false,brushHeight:i=60,onZoomChange:s,children:c})=>{let[l,u]=Ee.useState(null),[d,m]=Ee.useState(null),p=Ee.useRef(null),g=Ee.useRef(0),f=Ee.useRef(""),b=Ee.useRef(null),{colorMode:x}=Mt(),v=Ee.useMemo(()=>Ca(),[x]),C=Ee.useMemo(()=>Uc(),[x]),{datasets:y,seriesMetadata:S,categoryInfo:k,categoryColors:R,categoryLabels:E,hasBarSeries:D,firstBarSeriesIndex:L,seriesTypes:V}=Ee.useMemo(()=>{let se=Ee.Children.toArray(c).filter(ee=>Ee.isValidElement(ee)&&Nb(ee)),Ne=se.filter(ee=>ee.props.data).length,Ve=se.some(ee=>ee.type===Kn),De=[],te=[],ce=[],_=null,q=null,U=null;se.forEach((ee,be)=>{let he=ee.props;if(!he.data)return;De.push(he.data);let Vo=("color"in he&&he.color?he.color:void 0)||(Ne===1?C:v[be%v.length]);te.push({label:"label"in he&&he.label||`Series ${De.length}`,color:Vo});let Nr=ee.type===Ga?"area":ee.type===Xa?"line":"bar";ce.push(Nr),"categoryColors"in he&&he.categoryColors&&(_=he.categoryColors),"categoryLabels"in he&&he.categoryLabels&&(q=he.categoryLabels),ee.type===Kn&&U===null&&(U=De.length-1);});let ae=null;if(_){let ee=new Set;De.forEach(be=>{be.forEach(he=>{he.category&&ee.add(he.category);});}),ae=Array.from(ee).map(be=>({label:q?.[be]||be,color:_[be]||"#6b7280"}));}return {datasets:De,seriesMetadata:te,categoryInfo:ae,categoryColors:_,categoryLabels:q,hasBarSeries:Ve,firstBarSeriesIndex:U,seriesTypes:ce}},[c,C,v,x]),A=e,N=a?i+8:0,T=t-60-N,z=Math.max(100,T),W=Ee.useMemo(()=>y.flat(),[y]),F=Ee.useMemo(()=>{if(W.length===0)return null;let $=[...W].sort((se,Ne)=>se.xValue.getTime()-Ne.xValue.getTime());return [$[0].xValue,$[$.length-1].xValue]},[W]),K=d||F,X=Ee.useMemo(()=>K?y.map(se=>se.filter(Ne=>Ne.xValue>=K[0]&&Ne.xValue<=K[1])):y,[y,K]);Ee.useEffect(()=>{s&&s(d);},[d,s]);let G=Ee.useMemo(()=>X.flat(),[X]),Y=Ee.useMemo(()=>Su(G,z,r),[G,z,r]),P=Ee.useMemo(()=>{let $=z-Ye.top-Ye.bottom;return Ks($)},[z]),w=Ee.useMemo(()=>{let $=$r(r),se=$.tickFormat||$.format,Ve=Y.ticks(P).map(ce=>se(ce)),De=Us(Ve,12,"system-ui"),te=Math.ceil(De)+12;return {...Ye,left:Math.max(te,30)}},[Y,r,P]),B=Ee.useMemo(()=>K?scale.scaleTime({domain:K,range:[w.left,A-w.right]}):Cu(W,A),[K,W,A,w]),M=Ee.useCallback($=>{if(!F)return;let{scaleX:se,translateX:Ne}=$,Ve=A-w.left-w.right,[De,te]=F,ce=te.getTime()-De.getTime();if(ce<=0){m(null);return}let _=-Ne,q=_+Ve,U=Ve*se/ce,ae=_/U,ee=q/U,be=new Date(De.getTime()+ae),he=new Date(De.getTime()+ee),st=Math.abs(be.getTime()-De.getTime()),Vo=Math.abs(he.getTime()-te.getTime()),Nr=ce*.02;st<Nr&&Vo<Nr?m(null):m([be,he]);},[F,A,w]),h=Ee.useCallback($=>{let{left:se}=p.current?.getBoundingClientRect()||{left:0},Ne=$.clientX-se;if($.timeStamp-(g.current||0)<16)return;g.current=$.timeStamp;let Ve=B.invert(Ne),De=y.map((_,q)=>{if(!_||_.length===0)return null;let U=nN(_,Ve,1);if(U===0)return {point:_[0],datasetIndex:q};if(U>=_.length)return {point:_[_.length-1],datasetIndex:q};let ae=_[U-1],ee=_[U];if(!ae||!ee)return null;let be=Math.abs(ae.xValue.getTime()-Ve.getTime()),he=Math.abs(ee.xValue.getTime()-Ve.getTime());return {point:be<he?ae:ee,datasetIndex:q}}).filter(_=>_!==null&&S[_.datasetIndex]!==void 0).map(({point:_,datasetIndex:q})=>({label:S[q].label,value:_.yValue,color:S[q].color,point:_,type:V[q]}));if(De.length===0){u(null);return}let te=B(De[0].point.xValue),ce=te>(A-w.right-w.left)/2+w.left;u({xValue:De[0].point.xValue,series:De.map(({label:_,value:q,color:U,point:ae,type:ee})=>({label:_,value:q,color:U,type:ee,category:ae.category,categoryColor:ae.category&&R?R[ae.category]:void 0})),x:te,y:Y(De[0].value),position:ce?"left":"right"});},[y,X,S,V,B,Y,A,R,w]),O=()=>{u(null);},H=Ee.useCallback(()=>{m(null),b.current&&b.current.reset();},[]),j=Ee.useCallback($=>{if(m($),b.current&&F){let[se,Ne]=F,Ve=Ne.getTime()-se.getTime();if(Ve<=0){b.current.reset();return}if(!$)b.current.reset();else {let[De,te]=$,ce=te.getTime()-De.getTime();if(ce<=0){b.current.reset();return}let _=Ve/ce,q=A-w.left-w.right,ae=-((De.getTime()-se.getTime())/Ve)*q*_;b.current.setTransformMatrix({scaleX:_,scaleY:1,translateX:ae,translateY:0,skewX:0,skewY:0});}}},[F,A,w]),oe={width:A,height:z,xScale:B,yScale:Y,yFormatter:r,animationSettings:Lg,tooltip:{data:l,show:u,hide:()=>u(null)},datasets:X,seriesMetadata:S,seriesTypes:V,categoryColors:R||void 0,categoryLabels:E||void 0},me=Ee.Children.toArray(c),Z=0,ne=[],Te=[];me.forEach($=>{if(!Ee.isValidElement($)){ne.push($);return}if(oN($))Te.push($);else if(Nb($)){let se=Z;Z++;let Ne=$.props;ne.push(Ee__namespace.default.cloneElement($,{...Ne,data:X[se]||Ne.data,color:S[se]?.color}));}else ne.push($);});let ie=(k||S).map($=>({category:$.label,fill:$.color})),ue=Wp({datasets:y,metadata:{xLabel:"Date",yLabel:"Value",seriesLabels:S.map($=>$.label),timestamp:true},svgRef:p});if(o)return jsxRuntime.jsx(iN,{});if(y.length===0)return jsxRuntime.jsx(aN,{});let ge=jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("title",{children:"Data chart visualization"}),jsxRuntime.jsx("g",{children:Y.ticks(P).map($=>jsxRuntime.jsx(shape.Line,{from:{x:w.left,y:Y($)},to:{x:A-w.right,y:Y($)},stroke:"var(--color-border-muted)",strokeWidth:1},`grid-line-${$}`))}),ne,jsxRuntime.jsx(Fr.Bottom,{top:z-w.bottom,scale:B,width:A-w.left-w.right}),jsxRuntime.jsx(Fr.Left,{left:w.left,scale:Y,yFormatter:r,height:z-w.top-w.bottom}),l&&!l.isEvent&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[D&&L!==null?(()=>{let $=X[L]??[];if($.length===0)return null;let se=[...$].sort((U,ae)=>U.xValue.getTime()-ae.xValue.getTime()),Ne=se.findIndex(U=>U.xValue.getTime()===l.xValue.getTime()),Ve=se[Ne+1],De=se.length>1&&Ve?Ve.xValue.getTime()-l.xValue.getTime():15*6e4,te=Math.abs(B(new Date(l.xValue.getTime()+De))-B(l.xValue)),_=B(l.xValue)-te/2,q=Y.range();return jsxRuntime.jsx("rect",{x:_,y:q[1],width:te,height:q[0]-q[1],className:"fill-background-muted",opacity:.5,pointerEvents:"none",style:{transition:"all 100ms ease-out"}})})():null,l.series.filter($=>$.type!=="bar").map($=>jsxRuntime.jsxs("g",{children:[jsxRuntime.jsx("circle",{cx:B(l.xValue),cy:Y($.value),r:8,fill:"white",stroke:$.color,strokeWidth:2,style:{transition:"all 100ms ease-out"}}),jsxRuntime.jsx("circle",{cx:B(l.xValue),cy:Y($.value),r:4,fill:$.color,style:{transition:"all 100ms ease-out"}})]},`highlight-${$.label}`))]}),jsxRuntime.jsx("rect",{x:w.left,y:w.top,width:A-w.left-w.right,height:z-w.top-w.bottom,fill:"transparent",style:{cursor:n?"grab":"crosshair"},onMouseMove:h,onMouseLeave:O}),Te]});return jsxRuntime.jsx("div",{className:"relative flex h-full flex-col",children:jsxRuntime.jsxs(To.Provider,{value:oe,children:[n?jsxRuntime.jsx(zoom.Zoom,{width:A,height:z,scaleXMin:1,scaleXMax:20,scaleYMin:1,scaleYMax:1,constrain:$=>{let{scaleX:se,translateX:Ne}=$,Ve=Math.max(1,Math.min(20,se)),De=1,te=A-w.left-w.right,ce=0,_=te*(1-Ve),q=Math.max(_,Math.min(ce,Ne));return {...$,scaleX:Ve,scaleY:De,translateX:q,translateY:0}},children:$=>{if(b.current=$,$.transformMatrix){let{scaleX:se,translateX:Ne}=$.transformMatrix,Ve=`${se.toFixed(4)}-${Ne.toFixed(2)}`;Ve!==f.current&&(f.current=Ve,setTimeout(()=>{M($.transformMatrix);},0));}return jsxRuntime.jsx("svg",{width:A,height:z,className:"overflow-visible",ref:se=>{p.current=se,$.containerRef.current!==se&&($.containerRef.current=se);},role:"img","aria-label":"Data chart",style:{cursor:$.isDragging?"grabbing":"grab",touchAction:"none"},onMouseDown:$.dragStart,onMouseMove:$.dragMove,onMouseUp:$.dragEnd,onMouseLeave:()=>{$.isDragging&&$.dragEnd();},onTouchStart:$.dragStart,onTouchMove:$.dragMove,onTouchEnd:$.dragEnd,children:ge})}}):jsxRuntime.jsx("svg",{width:A,height:z,className:"overflow-visible",ref:p,role:"img","aria-label":"Data chart",children:ge}),jsxRuntime.jsx(qn,{data:l,formatter:r}),a&&F&&jsxRuntime.jsx(Nu,{data:y,seriesMetadata:S,width:A,height:i,onBrushChange:j,brushRegion:d,margin:w}),jsxRuntime.jsx(js,{onExport:ue,items:ie,marginLeft:0,marginRight:w.right,isZoomed:d!==null,onResetZoom:H})]})})},kb=responsive.withParentSize(sN);var mN=e=>e.toLocaleString(),fN=e=>`${Math.round(e*100)}%`,Mb=({data:e,width:t=800,height:r=400,padding:o=0,barGap:n=30,formatValue:a=mN,formatPercentage:i=fN,color:s,showScale:c=true,showOverallConversion:l=true,overallConversionLabel:u="Overall Conversion:",activeStageId:d,onStageClick:m,onStageHover:p,className:g,style:f,"aria-label":b="Funnel chart"})=>{let[x,v]=Ee.useState(null),[C,y]=Ee.useState(t),S=Ee.useRef(null),k=d??x,R=Ee.useId(),E=s||"var(--color-viz-default)";Ee.useEffect(()=>{if(!S.current)return;let T=new ResizeObserver(z=>{for(let W of z)y(W.contentRect.width);});return T.observe(S.current),()=>{T.disconnect();}},[]);let{layout:D,overallConversion:L}=Ee.useMemo(()=>{if(e.length===0)return {layout:[],overallConversion:0};let T=e[0].value,z=l?60:0,W=r-o*2-z,F=(e.length-1)*n,K=(W-F)/e.length,X=e.map((Y,P)=>{let w=o+z+P*(K+n),B=T===0?0:Y.value/T,M=B,h=P===0?null:e[P-1].value,O=h==null||h===0?0:1-Y.value/h;return {stage:Y,index:P,y:w,barHeight:K,widthPercent:B,conversionRate:M,dropOff:O}}),G=T===0?0:e[e.length-1].value/T;return {layout:X,overallConversion:G,maxValue:T}},[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",g),style:{width:t,height:r,...f},children:"No funnel data available"});let V=c?60:0,A=o+V,N=C-o*2-V;return jsxRuntime.jsx("div",{ref:S,className:tailwindMerge.twMerge("relative w-full overflow-hidden rounded-lg bg-background-surface",g),style:{height:r,...f},"aria-label":b,role:"img",children:jsxRuntime.jsxs("svg",{width:"100%",height:r,className:"relative",children:[jsxRuntime.jsxs("defs",{children:[jsxRuntime.jsx(gradient.LinearGradient,{id:`${R}-bar`,from:E,to:E,toOpacity:.85}),jsxRuntime.jsx(gradient.LinearGradient,{id:`${R}-bg`,from:E,to:E,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:u})," ",i(L)]}),c&&jsxRuntime.jsx("g",{children:D.map(T=>{let z=T.y+T.barHeight/2;return jsxRuntime.jsx("text",{x:o+V-12,y:z,textAnchor:"end",dominantBaseline:"middle",className:"fill-text-secondary text-xs",children:i(T.conversionRate)},T.stage.id)})}),D.map(T=>{let z=k===T.stage.id,W=N*T.widthPercent;return jsxRuntime.jsxs("g",{children:[jsxRuntime.jsx("rect",{x:A,y:T.y,width:N,height:T.barHeight,fill:`url(#${R}-bg)`,rx:4}),jsxRuntime.jsx(framerMotion.motion.rect,{x:A,y:T.y,width:W,height:T.barHeight,fill:`url(#${R}-bar)`,rx:4,initial:{width:0},animate:{width:W},transition:{duration:.6,delay:T.index*.1,ease:"easeOut"},opacity:z||k==null?1:.5,style:{cursor:m||p?"pointer":"default",transition:"opacity 150ms ease"},onMouseEnter:()=>{v(T.stage.id),p?.(T.stage);},onMouseLeave:()=>{v(null),p?.(null);},onClick:()=>m?.(T.stage)}),jsxRuntime.jsx("rect",{x:A+10,y:T.y+T.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:T.y+T.barHeight/2+4,className:"fill-text-primary text-xs font-semibold",style:{pointerEvents:"none"},children:a(T.stage.value)}),jsxRuntime.jsxs("text",{x:A,y:T.y-8,className:"fill-text-secondary text-xs",style:{pointerEvents:"none"},children:[jsxRuntime.jsx("tspan",{children:T.index+1})," ",T.stage.label]}),T.stage.secondaryValue&&jsxRuntime.jsx("text",{x:A+16,y:T.y-24,className:"fill-text-secondary text-xs",style:{pointerEvents:"none"},children:T.stage.secondaryValue}),T.index>0&&T.dropOff>0&&jsxRuntime.jsxs("text",{x:A+N,y:T.y-8,textAnchor:"end",className:"fill-text-secondary text-xs",children:[i(T.dropOff)," drop"]}),T.stage.annotation&&jsxRuntime.jsxs("g",{children:[jsxRuntime.jsx("rect",{x:A+W+8,y:T.y+8,width:60,height:24,rx:3,className:"fill-background-muted"}),jsxRuntime.jsx("text",{x:A+W+16,y:T.y+20,className:"fill-text-secondary text-xs font-medium",children:T.stage.annotation})]})]},T.stage.id)})]})})};function gN(e,t,r){return {field:e,operator:t,value:r}}function bN(e,t="AND"){return {logic:t,conditions:e}}function $a(){return {logic:"AND",conditions:[]}}function _s(e){return !e||e.conditions.length===0?true:e.conditions.every(t=>"conditions"in t?_s(t):false)}function xN(e,t){if(!e)return [];let r=new Map(t?.map(i=>[i.field,i])),o=new Map;function n(i){if("conditions"in i)i.conditions.forEach(s=>n(s));else {let s=o.get(i.field)||[];s.push(i),o.set(i.field,s);}}e.conditions.forEach(i=>n(i));let a=[];for(let[i,s]of o.entries()){let c=r.get(i),l=c?.label||i,u=[],d=[],m=[];for(let p of s)p.operator==="in"&&Array.isArray(p.value)?u.push(...p.value):p.operator==="eq"?typeof p.value!="boolean"&&!Array.isArray(p.value)?u.push(p.value):m.push(p):["gte","gt","lte","lt"].includes(p.operator)?d.push({operator:p.operator,value:typeof p.value=="boolean"||Array.isArray(p.value)?String(p.value):p.value}):m.push(p);if(u.length>0){let g=Array.from(new Set(u)).map(f=>c?.values?.find(x=>String(x.value)===String(f))?.label??f);a.push({id:`${i}-in`,label:l,value:g.join(", ")});}if(d.length>0){let p=d.find(f=>f.operator==="gte"||f.operator==="gt"),g=d.find(f=>f.operator==="lte"||f.operator==="lt");if(p&&g){let f=p.operator==="gte"?"\u2265":">",b=g.operator==="lte"?"\u2264":"<";a.push({id:`${i}-range`,label:l,value:`${f} ${p.value} and ${b} ${g.value}`});}else for(let f of d){let b;f.operator==="gte"?b="\u2265":f.operator==="gt"?b=">":f.operator==="lte"?b="\u2264":b="<",a.push({id:`${i}-${f.operator}`,label:l,value:`${b} ${f.value}`});}}for(let p of m){let g;p.operator==="neq"?g=`\u2260 ${p.value}`:p.operator==="contains"?g=`contains "${p.value}"`:p.operator==="startsWith"?g=`starts with "${p.value}"`:p.operator==="endsWith"?g=`ends with "${p.value}"`:g=String(p.value),a.push({id:`${i}-${p.operator}`,label:l,value:g});}}return a}function ko(e,t){let r=e||$a();return {...r,conditions:[...r.conditions,t]}}function sn(e,t){if(!e)return $a();let r=e.conditions.filter(o=>"conditions"in o?sn(o,t).conditions.length>0:o.field!==t);return {...e,conditions:r}}function ln(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 Qa({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 SN=e=>{let t=ht({isInvalid:e.isInvalid,isDisabled:e.isDisabled,isFocused:e.isFocused,transparent:e.transparent,size:e.size}),r=[e.showSearchIcon?"":"pl-3",e.isClearable&&e.hasValue||e.isPassword?"pr-8":"pr-3"].join(" ");return tailwindMerge.twMerge(t,r,e.className)};function lr({label:e,description:t,errorMessage:r,size:o="md",tooltip:n,isRequired:a,transparent:i,showSearchIcon:s,isClearable:c,onClear:l,type:u,validationResult:d,reserveErrorSpace:m=true,isLoading:p=false,descriptionPlacement:g="below",...f}){let[b,x]=Ee__namespace.default.useState(false),{isFocused:v,handleFocus:C,handleBlur:y}=sr(),S=u==="password",k=Li(p,300);return jsxRuntime.jsx(reactAriaComponents.TextField,{...f,isRequired:a,className:Ce(f.className,"group flex flex-col"),children:({isDisabled:R,isInvalid:E})=>jsxRuntime.jsxs("div",{className:"flex flex-col",children:[e&&jsxRuntime.jsx(Me,{size:o,tooltip:n,description:g==="tooltip"||g==="inline"?t:void 0,descriptionPlacement:g,isRequired:a,children:e}),jsxRuntime.jsxs(nt,{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 D={sm:14,md:16,lg:18,xl:20}[o];return k?jsxRuntime.jsx(Kr,{size:D,color:"text-text-secondary"}):jsxRuntime.jsx(I,{name:"MagnifyingGlass",size:D,className:`transition-colors ${v?"text-action-brand":"text-text-secondary"}`})})()}),jsxRuntime.jsx(fs,{size:o,disabled:R,type:S?b?"text":"password":u,value:f.value,defaultValue:f.defaultValue,placeholder:f.placeholder,onFocus:D=>C(D,f.onFocus),onBlur:D=>y(D,f.onBlur),onChange:D=>f.onChange?.(D.target.value),style:s?{paddingLeft:{sm:28,md:32,lg:36,xl:37}[o]}:void 0,className:SN({isInvalid:E,isDisabled:R,isFocused:v,size:o,transparent:i,showSearchIcon:s,isClearable:c,hasValue:!!f.value,isPassword:S,className:typeof f.className=="string"?f.className:void 0})}),c&&f.value&&!R&&jsxRuntime.jsx(Ba,{onClick:()=>{l?l():f.onChange&&f.onChange("");},size:o}),S&&!R&&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:D=>{D.preventDefault(),D.stopPropagation();},children:jsxRuntime.jsx(I,{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(pe,{size:o,children:r}):typeof r=="function"&&d?jsxRuntime.jsx(pe,{size:o,children:r(d)}):t&&g==="below"?jsxRuntime.jsx(Se,{size:o,children:t}):null}):jsxRuntime.jsx(jsxRuntime.Fragment,{children:typeof r=="string"?jsxRuntime.jsx(pe,{size:o,className:"mt-1",children:r}):typeof r=="function"&&d?jsxRuntime.jsx(pe,{size:o,className:"mt-1",children:r(d)}):t&&g==="below"?jsxRuntime.jsx(Se,{size:o,className:"mt-1",children:t}):null})]})})}function cn({value:e,onChange:t,onClear:r,placeholder:o="Search...",size:n="sm",className:a="",isLoading:i=false}){return jsxRuntime.jsx("div",{className:`flex-1 min-w-0 sm:max-w-sm ${a}`,children:jsxRuntime.jsx(lr,{value:e,onChange:t,placeholder:o,showSearchIcon:true,isClearable:!!e&&!!r,onClear:r,size:n,"aria-label":o,reserveErrorSpace:false,isLoading:i})})}function _a({value:e,options:t,onChange:r,direction:o,onDirectionChange:n,showLabel:a=true,size:i="sm",className:s="",compact:c=false}){let[l,u]=Ee.useState(false),d=o!==void 0&&n!==void 0,m=t.find(p=>p.value===e);return c?jsxRuntime.jsxs("div",{className:`flex items-center gap-2 ${s}`,children:[jsxRuntime.jsx(Q,{variant:"secondary",size:i,icon:"ArrowsDownUp","aria-label":`Sort by: ${m?.label||"Select"}`,onPress:()=>u(true)}),jsxRuntime.jsx(Xe,{isOpen:l,onClose:()=>u(false),title:"Sort by",contentPadding:false,children:jsxRuntime.jsx(reactAriaComponents.ListBox,{items:t.map(p=>({id:p.value,label:p.label,value:p.value})),className:"w-full bg-background-surface p-0 outline-0 [&_[role=option]]:border-b [&_[role=option]]:border-border-default [&_[role=option]:last-child]:border-0 [&_[role=option]]:!px-6 [&_[role=option]]:!py-4 [&_[role=option]]:rounded-none",selectionMode:"single",selectedKeys:e?[e]:[],onSelectionChange:p=>{let g=Array.from(p)[0];g!=null&&(r(g),u(false));},children:p=>jsxRuntime.jsx(At,{id:p.id,textValue:p.label,children:jsxRuntime.jsx("span",{className:"overflow-hidden text-ellipsis whitespace-nowrap min-w-0 flex-1",children:p.label})},p.id)})})]}):jsxRuntime.jsxs("div",{className:`flex items-center gap-2 ${s}`,children:[a&&jsxRuntime.jsx("span",{className:"text-sm text-text-secondary whitespace-nowrap",children:"Sort by:"}),jsxRuntime.jsx(Zo,{selectedKey:e,onSelectionChange:p=>r(p),size:i,className:"min-w-32",items:t.map(p=>({id:p.value,label:p.label,value:p.value})),renderItem:p=>p.label,"aria-label":"Sort by",reserveErrorSpace:false}),d&&jsxRuntime.jsx(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 Fb({search:e,searchMobileMode:t="expanded",filters:r=[],onRemoveFilter:o,onClearAllFilters:n,onManageFilters:a,exportControl:i,maxVisibleFilterChips:s=3,sort:c,resultsCount:l,leftControls:u,onManageColumns:d,columnPicker:m,customControls:p,actions:g,interactionMode:f="auto",sticky:b,stickyTop:x="0",zIndex:v=10,className:C="",style:y}){let S=r.length>0;if(!(e||S||a||c||l||u||d||m||p||g||i))return null;let R=b?"sticky bg-background-surface":"",E=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 ${R} ${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:[u,u&&l&&jsxRuntime.jsx("div",{className:"h-4 w-px bg-border-default"}),l&&jsxRuntime.jsx(Qa,{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(_a,{value:c.value,options:c.options,onChange:c.onChange,showLabel:c.showLabel,direction:c.direction,onDirectionChange:c.onDirectionChange}),d?jsxRuntime.jsx(Q,{variant:"secondary",size:"sm",icon:"Columns",onClick:d,children:"Columns"}):m,S&&o&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[r.slice(0,s).map(D=>jsxRuntime.jsxs(Ar,{variant:"primary",size:"sm",onRemove:()=>o(D.id),isRemovable:true,children:[D.label,": ",D.value]},D.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:[g&&g.items.length>0&&jsxRuntime.jsx(jsxRuntime.Fragment,{children:g.items.map(D=>jsxRuntime.jsx(Q,{variant:D.variant||"secondary",size:"sm",icon:D.icon,onPress:D.onClick,isDisabled:D.disabled,children:D.label},D.id))}),e&&jsxRuntime.jsx("div",{className:"w-64",children:jsxRuntime.jsx(cn,{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:[g&&g.items.length>0&&jsxRuntime.jsx(zn,{items:g.items.map(D=>({id:D.id,name:D.label,iconName:D.icon,variant:D.variant==="destructive"?"destructive":"primary",disabled:D.disabled,onAction:D.onClick})),align:"left",size:"sm",children:jsxRuntime.jsx(Q,{variant:"secondary",size:"sm",icon:"DotsThreeVertical","aria-label":g.menuLabel||"Actions"})}),e&&jsxRuntime.jsx("div",{className:"flex-1",children:jsxRuntime.jsx(cn,{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:[u,l&&jsxRuntime.jsx(Qa,{count:l.count,label:l.label,isLoading:l.isLoading})]}),jsxRuntime.jsx("div",{className:"flex items-center gap-2",children:c&&jsxRuntime.jsx(_a,{value:c.value,options:c.options,onChange:c.onChange,showLabel:false,direction:c.direction,onDirectionChange:c.onDirectionChange,compact:f!=="desktop"})})]})]})]})}function Bb({filters:e,onRemove:t,onClearAll:r,onManageFilters:o,maxVisibleChips:n=3,mode:a="chips",showManageButton:i=true,size:s="sm",className:c=""}){let l=e.length>0,u=e.slice(0,n),d=Math.max(0,e.length-n),m=d>0,p=a==="button"&&!!o,g=a==="chips"&&i&&!!o;if(!l&&!p&&!g)return null;let f=p&&jsxRuntime.jsxs(Q,{variant:"secondary",size:s,onClick:o,className:"whitespace-nowrap",children:[e.length," ",e.length===1?"filter":"filters"]}),b=jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[g&&jsxRuntime.jsx(Q,{variant:"secondary",size:s,icon:"Sliders",onClick:o,className:"whitespace-nowrap",children:"Filters"}),l&&u.map(v=>jsxRuntime.jsxs(Ar,{variant:"secondary",size:s,onRemove:()=>t(v.id),isRemovable:true,children:[v.label,": ",v.value]},v.id)),l&&m&&o&&jsxRuntime.jsxs(Q,{variant:"ghost",size:s,onClick:o,className:"text-text-secondary hover:text-text-primary whitespace-nowrap",children:["+",d," 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"?f:b;return jsxRuntime.jsx("div",{className:`flex flex-wrap items-center gap-2 ${c}`,children:x})}function zb({label:e,description:t,errorMessage:r,size:o="md",tooltip:n,isRequired:a,isDisabled:i,isInvalid:s,showCalendar:c=true,reserveErrorSpace:l=true,validationResult:u,className:d,...m}){let[p,g]=Ee.useState(false),f=b=>{m.onChange&&b&&m.onChange(b),g(false);};return jsxRuntime.jsxs(reactAriaComponents.DateField,{...m,isDisabled:i,isRequired:a,isInvalid:s,className:Ce(d,"flex flex-col gap-1"),children:[e&&jsxRuntime.jsx(Me,{size:o,tooltip:n,isRequired:a,children:e}),jsxRuntime.jsx(nt,{children:jsxRuntime.jsxs("div",{className:"relative w-full",children:[jsxRuntime.jsx(ei,{size:o,isDisabled:i,isInvalid:s,hasCalendar:c}),c&&!i&&jsxRuntime.jsxs(reactAriaComponents.DialogTrigger,{isOpen:p,onOpenChange:g,children:[jsxRuntime.jsx(Q,{variant:"unstyled",className:"absolute right-2 top-1/2 -translate-y-1/2 flex h-8 w-8 items-center justify-center rounded hover:bg-background-hover text-text-secondary hover:text-text-primary transition-colors","aria-label":"Open calendar",children:jsxRuntime.jsx(I,{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(Wn,{value:m.value,onChange:f,minValue:m.minValue,maxValue:m.maxValue,isDisabled:i,isReadOnly:m.isReadOnly,isDateUnavailable:m.isDateUnavailable})})})]})]})}),l?jsxRuntime.jsx("div",{className:"mt-1 min-h-[20px]",children:typeof r=="string"?jsxRuntime.jsx(pe,{size:o,children:r}):typeof r=="function"&&u?jsxRuntime.jsx(pe,{size:o,children:r(u)}):t?jsxRuntime.jsx(Se,{size:o,children:t}):null}):jsxRuntime.jsx(jsxRuntime.Fragment,{children:typeof r=="string"?jsxRuntime.jsx(pe,{size:o,className:"mt-1",children:r}):typeof r=="function"&&u?jsxRuntime.jsx(pe,{size:o,className:"mt-1",children:r(u)}):t?jsxRuntime.jsx(Se,{size:o,className:"mt-1",children:t}):null})]})}function BN({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 ei({size:e="md",isDisabled:t,isInvalid:r,hasCalendar:o,className:n,...a}){return jsxRuntime.jsx(reactAriaComponents.DateInput,{className:tailwindMerge.twMerge(xo({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:BN({isPlaceholder:i.isPlaceholder,isDisabled:!i.isEditable||t,size:e})})})}function UN({selectionState:e,isDisabled:t}){let r=`${Oe} 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 _n({errorMessage:e,...t}){return jsxRuntime.jsxs(reactAriaComponents.RangeCalendar,{...t,children:[jsxRuntime.jsx(ws,{}),jsxRuntime.jsxs(reactAriaComponents.CalendarGrid,{className:"w-full border-separate [border-spacing:0] [&_td]:p-0 [&_td]:!border-0",children:[jsxRuntime.jsx(Ns,{}),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:UN({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 rl({label:e,description:t,errorMessage:r,...o}){return jsxRuntime.jsxs(reactAriaComponents.DateRangePicker,{...o,className:Ce(o.className,"group flex flex-col gap-1"),children:[e&&jsxRuntime.jsx(Me,{children:e}),jsxRuntime.jsxs(Gf,{className:"w-auto min-w-[208px]",children:[jsxRuntime.jsx(ei,{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(ei,{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(Se,{children:t}),typeof r=="string"?jsxRuntime.jsx(pe,{children:r}):null,jsxRuntime.jsx(Ze,{children:jsxRuntime.jsx(_n,{})})]})}var $N=e=>{let t=ht({isInvalid:e.isInvalid,isDisabled:e.isDisabled,isFocused:e.isFocused,transparent:e.transparent,size:e.size});return tailwindMerge.twMerge(t,"pr-9","[appearance:textfield] [&::-webkit-outer-spin-button]:appearance-none [&::-webkit-inner-spin-button]:appearance-none",e.className)};function ti({label:e,description:t,errorMessage:r,size:o="md",tooltip:n,isRequired:a,transparent:i,validationResult:s,reserveErrorSpace:c=true,descriptionPlacement:l="below",...u}){let d=Ee.useId(),{isFocused:m,handleFocus:p,handleBlur:g}=sr();return jsxRuntime.jsx(reactAriaComponents.NumberField,{...u,id:d,isRequired:a,className:Ce(u.className,"group flex flex-col gap-1"),step:u.step??1,onChange:f=>{typeof f=="number"&&(u.maxValue!=null&&f>u.maxValue?u.onChange?.(u.maxValue):u.minValue!=null&&f<u.minValue?u.onChange?.(u.minValue):u.onChange?.(f));},isInvalid:!!r||typeof u.value=="number"&&(u.maxValue!=null&&u.value>u.maxValue||u.minValue!=null&&u.value<u.minValue),children:({isDisabled:f,isInvalid:b})=>jsxRuntime.jsxs("div",{className:"flex flex-col gap-1",children:[e&&jsxRuntime.jsx(Me,{size:o,tooltip:n,description:l==="tooltip"||l==="inline"?t:void 0,descriptionPlacement:l,isRequired:a,htmlFor:d,children:e}),jsxRuntime.jsx("div",{className:"relative",children:jsxRuntime.jsxs(reactAriaComponents.Group,{className:"relative",children:[jsxRuntime.jsx(reactAriaComponents.Input,{onFocus:v=>p(v,u.onFocus),onBlur:v=>g(v,u.onBlur),className:$N({isInvalid:b||!!r,isDisabled:f,isFocused:m,transparent:i,size:o,className:typeof u.className=="string"?u.className:void 0})}),jsxRuntime.jsxs("div",{className:"absolute inset-y-[2px] right-[2px] flex flex-col divide-y divide-border-default border-l border-border-default overflow-hidden rounded-r-[calc(var(--control-border-radius)-2px)]",children:[jsxRuntime.jsx(reactAriaComponents.Button,{slot:"increment",isDisabled:f,className:"flex h-1/2 w-7 items-center justify-center bg-background-input hover:bg-background-input-hover active:bg-background-input-active disabled:cursor-not-allowed disabled:opacity-50",children:jsxRuntime.jsx(I,{name:"CaretUp",size:14})}),jsxRuntime.jsx(reactAriaComponents.Button,{slot:"decrement",isDisabled:f,className:"flex h-1/2 w-7 items-center justify-center bg-background-input hover:bg-background-input-hover active:bg-background-input-active disabled:cursor-not-allowed disabled:opacity-50",children:jsxRuntime.jsx(I,{name:"CaretDown",size:14})})]})]})}),c?jsxRuntime.jsx("div",{className:"mt-1 min-h-[20px]",children:r?jsxRuntime.jsx(pe,{size:o,children:typeof r=="function"?r(s):r}):t&&l==="below"?jsxRuntime.jsx(Se,{size:o,children:t}):null}):jsxRuntime.jsx(jsxRuntime.Fragment,{children:r?jsxRuntime.jsx(pe,{size:o,className:"mt-1",children:typeof r=="function"?r(s):r}):t&&l==="below"?jsxRuntime.jsx(Se,{size:o,className:"mt-1",children:t}):null})]})})}var Du={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 eT({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=Du[r].track,a=Oe,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 tT({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=Du[r].handle;return [o,n,e?"translate-x-[100%]":"translate-x-0",t?"forced-colors:outline-[GrayText]":""].filter(Boolean).join(" ")}function ol({children:e,variant:t="primary",size:r="md",...o}){return jsxRuntime.jsx(reactAriaComponents.Switch,{...o,className:Ce(o.className,`group flex items-center gap-2 ${Du[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:eT({...n,size:r}),children:jsxRuntime.jsx("span",{className:tT({...n,size:r})})}),e]})})}function Gb(e){return new Intl.NumberFormat("en-US").format(e)}function Ub({isOpen:e,onClose:t,facetConfigs:r,facetCounts:o={},currentFilters:n,onApply:a,onClear:i,title:s="Filters",resultCount:c}){let[l,u]=Ee.useState(n),[d,m]=Ee.useState({}),[p,g]=Ee.useState({}),[f,b]=Ee.useState(null),{isMobile:x}=Pt(),v=Ee.useMemo(()=>r.some(h=>h.group),[r]),{groups:C,ungroupedFacets:y,facetsByGroup:S}=Ee.useMemo(()=>{let h=new Set,O=[],H={};for(let j of r)j.group?(h.has(j.group)||(h.add(j.group),H[j.group]=[]),H[j.group].push(j)):O.push(j);return {groups:Array.from(h),ungroupedFacets:O,facetsByGroup:H}},[r]);Ee.useEffect(()=>{e&&(u(n),m({}),g({}),b(!x&&C.length>0?C[0]:null));},[e,n,C,x]);let k=Ee.useMemo(()=>!l||_s(l)?0:ln(l).length,[l]),R=()=>{a(l),t();},E=()=>{let h=$a();u(h),i?i():a(h),t();},D=h=>{if(!l)return [];if(!ln(l).includes(h))return [];let H=[];function j(oe){if(oe)for(let me of oe.conditions)"conditions"in me?j(me):me.field===h&&me.operator==="in"&&Array.isArray(me.value)&&H.push(...me.value.map(String));}return j(l),H},L=(h,O,H)=>{let j=sn(l,h);O!==void 0&&(j=ko(j,{field:h,operator:"gte",value:O})),H!==void 0&&(j=ko(j,{field:h,operator:"lte",value:H})),u(j);},V=h=>{if(!l)return;let O;function H(j){if(j)for(let oe of j.conditions)"conditions"in oe?H(oe):oe.field===h&&oe.operator==="eq"&&typeof oe.value=="boolean"&&(O=oe.value);}return H(l),O},A=(h,O)=>{let H=sn(l,h);O!==void 0&&(H=ko(H,{field:h,operator:"eq",value:O})),u(H);},N=(h,O,H)=>{let j=sn(l,h);O&&(j=ko(j,{field:h,operator:"gte",value:O.toString()})),H&&(j=ko(j,{field:h,operator:"lte",value:H.toString()})),u(j);},T=h=>{let O=S[h]||[],H=l?ln(l):[];return O.filter(j=>H.includes(j.field)).length},z="pr-9 bg-background-muted/50",W="border-t border-border-muted",F="text-sm font-medium text-text-link-default",K=h=>jsxRuntime.jsx("span",{className:F,children:h}),X=h=>{let O=o[h.field]||{},H=d[h.field]||"",j=[];h.values?j=h.values.map(Z=>({value:String(Z.value),label:Z.label,count:O[String(Z.value)]})):j=Object.entries(O).map(([Z,ne])=>({value:Z,label:Z,count:ne}));let oe=j.length;if(H){let Z=H.toLowerCase();j=j.filter(ne=>ne.label.toLowerCase().includes(Z));}j.sort((Z,ne)=>Z.count!==void 0&&ne.count!==void 0&&ne.count!==Z.count?ne.count-Z.count:Z.label.localeCompare(ne.label));let me=h.type||"string";if(me==="string"||!h.type){let Z=D(h.field),ne=h.searchThreshold??10,Te=h.maxVisibleOptions??50,ie=p[h.field]??false,ue=ie||j.length<=Te?j:j.slice(0,Te),ge=j.length>Te&&!ie;return jsxRuntime.jsxs(Co,{id:h.field,children:[jsxRuntime.jsx(So,{title:h.label,description:h.description,className:z,endContent:Z.length>0?K(`${Z.length} selected`):void 0}),jsxRuntime.jsx(wo,{className:W,children:jsxRuntime.jsxs("div",{className:"space-y-4 pt-4 pb-4",children:[oe>ne&&jsxRuntime.jsx(cn,{value:H,onChange:$=>m(se=>({...se,[h.field]:$})),onClear:()=>m($=>({...$,[h.field]:""})),placeholder:`Search ${h.label.toLowerCase()}...`,size:"sm",className:"w-full !max-w-none pr-4"}),jsxRuntime.jsx(tu,{value:Z,onChange:$=>{let se=sn(l,h.field);$.length>0&&(se=ko(se,{field:h.field,operator:"in",value:$})),u(se);},children:jsxRuntime.jsx("div",{className:"space-y-1.5",children:ue.map($=>jsxRuntime.jsx("div",{className:"rounded-md py-2 pr-4 transition-colors hover:bg-background-hover",children:jsxRuntime.jsx(_o,{value:$.value,children:jsxRuntime.jsxs("div",{className:"flex items-center justify-between gap-3 flex-1",children:[h.renderLabel?h.renderLabel($.value,$.label):jsxRuntime.jsx("span",{className:"text-sm font-medium text-text-primary",children:$.label}),$.count!==void 0&&jsxRuntime.jsx("span",{className:"text-xs font-medium text-text-secondary tabular-nums",children:Gb($.count)})]})})},$.value))})}),ge&&jsxRuntime.jsx("div",{className:"pt-2 border-t border-border-muted",children:jsxRuntime.jsxs(Q,{variant:"ghost",size:"sm",onPress:()=>g($=>({...$,[h.field]:true})),className:"w-full",children:["Show all ",j.length," options"]})}),ie&&j.length>Te&&jsxRuntime.jsx("div",{className:"pt-2 border-t border-border-muted",children:jsxRuntime.jsx(Q,{variant:"ghost",size:"sm",onPress:()=>g($=>({...$,[h.field]:false})),className:"w-full",children:"Show less"})})]})})]},h.field)}if(me==="number"){let Z,ne,Te=ue=>{if(ue)for(let ge of ue.conditions)"conditions"in ge?Te(ge):ge.field===h.field&&(ge.operator==="gte"&&typeof ge.value=="number"&&(Z=ge.value),ge.operator==="lte"&&typeof ge.value=="number"&&(ne=ge.value));};Te(l);let ie=Z!==void 0||ne!==void 0;return jsxRuntime.jsxs(Co,{id:h.field,children:[jsxRuntime.jsx(So,{title:h.label,description:h.description,className:z,endContent:ie?K(Z!==void 0&&ne!==void 0?`${Z} - ${ne}`:Z!==void 0?`\u2265 ${Z}`:`\u2264 ${ne}`):void 0}),jsxRuntime.jsx(wo,{className:W,children:jsxRuntime.jsxs("div",{className:"grid grid-cols-2 gap-4 pt-4 pb-4",children:[jsxRuntime.jsx(ti,{label:"Min",value:Z,onChange:ue=>L(h.field,ue,ne)},`${h.field}-min`),jsxRuntime.jsx(ti,{label:"Max",value:ne,onChange:ue=>L(h.field,Z,ue)},`${h.field}-max`)]})})]},h.field)}if(me==="boolean"){let Z=V(h.field);return jsxRuntime.jsxs(Co,{id:h.field,children:[jsxRuntime.jsx(So,{title:h.label,description:h.description,className:z,endContent:Z!==void 0?K(Z?"Yes":"No"):void 0}),jsxRuntime.jsx(wo,{className:W,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:Z!==void 0?Z?"Enabled":"Disabled":"No filter applied"}),jsxRuntime.jsx(ol,{size:"lg",isSelected:Z??false,onChange:ne=>A(h.field,ne?true:void 0),children:Z?"Yes":"No"})]})})]},h.field)}if(me==="date"){let Z,ne,Te=se=>{if(se)for(let Ne of se.conditions)"conditions"in Ne?Te(Ne):Ne.field===h.field&&(Ne.operator==="gte"&&(Z=String(Ne.value)),Ne.operator==="lte"&&(ne=String(Ne.value)));};Te(l);let ie=Z!==void 0||ne!==void 0,ue=se=>{if(se)try{return /^\d{4}-\d{2}-\d{2}$/.test(se)?Fa(se):void 0}catch{return}},ge=ue(Z),$=ue(ne);return jsxRuntime.jsxs(Co,{id:h.field,children:[jsxRuntime.jsx(So,{title:h.label,description:h.description,className:z,endContent:ie?K("Date range selected"):void 0}),jsxRuntime.jsx(wo,{className:W,children:jsxRuntime.jsx("div",{className:"pt-4 pb-4",children:jsxRuntime.jsx(rl,{label:"Date Range",value:ge&&$?{start:ge,end:$}:void 0,onChange:se=>{se?N(h.field,se.start,se.end):N(h.field,void 0,void 0);}})})})]},h.field)}return null},G=()=>jsxRuntime.jsxs("div",{className:"flex flex-col",children:[y.map(h=>{let H=(l?ln(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:[H&&jsxRuntime.jsx("span",{className:F,children:"1 active"}),jsxRuntime.jsx(I,{name:"CaretRight",size:"sm",className:"text-text-secondary"})]})]},h.field)}),C.map(h=>{let O=T(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:[O>0&&jsxRuntime.jsxs("span",{className:F,children:[O," active"]}),jsxRuntime.jsx(I,{name:"CaretRight",size:"sm",className:"text-text-secondary"})]})]},h)})]}),Y=h=>{if(h.startsWith("__ungrouped__")){let H=h.replace("__ungrouped__",""),j=y.find(oe=>oe.field===H);return j?jsxRuntime.jsx(Gn,{variant:"contained",density:"comfortable",showDividers:true,defaultExpandedKeys:[j.field],children:X(j)}):null}let O=S[h]||[];return O.length===0?null:jsxRuntime.jsx(Gn,{variant:"contained",density:"comfortable",showDividers:true,defaultExpandedKeys:[O[0].field],children:O.map(H=>X(H))})},P=()=>{if(f){let h=f.startsWith("__ungrouped__")&&y.find(O=>O.field===f.replace("__ungrouped__",""))?.label||f;return jsxRuntime.jsxs("div",{className:"flex flex-col h-full",children:[jsxRuntime.jsxs("button",{type:"button",onClick:()=>b(null),className:"flex items-center gap-2 px-4 py-3 border-b border-border-muted hover:bg-background-hover transition-colors",children:[jsxRuntime.jsx(I,{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:Y(f)})]})}return G()},w=()=>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 H=(l?ln(l):[]).includes(h.field),j=f===`__ungrouped__${h.field}`;return jsxRuntime.jsxs("button",{type:"button",onClick:()=>b(`__ungrouped__${h.field}`),className:`flex items-center justify-between w-full px-4 py-3 text-left border-b border-border-muted transition-colors ${j?"bg-background-selected":"hover:bg-background-hover"}`,children:[jsxRuntime.jsx("span",{className:`text-sm truncate ${j?"font-semibold text-text-primary":"font-medium text-text-primary"}`,children:h.label}),H&&jsxRuntime.jsx("span",{className:"w-2 h-2 rounded-full bg-action-primary flex-shrink-0 ml-2"})]},h.field)}),C.map(h=>{let O=T(h),H=f===h;return jsxRuntime.jsxs("button",{type:"button",onClick:()=>b(h),className:`flex items-center justify-between w-full px-4 py-3 text-left border-b border-border-muted transition-colors ${H?"bg-background-selected":"hover:bg-background-hover"}`,children:[jsxRuntime.jsx("span",{className:`text-sm truncate ${H?"font-semibold text-text-primary":"font-medium text-text-primary"}`,children:h}),O>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:f?Y(f):jsxRuntime.jsx("div",{className:"flex items-center justify-center h-full text-text-secondary text-sm",children:"Select a category to view filters"})})]}),B=()=>jsxRuntime.jsx(Gn,{variant:"contained",density:"comfortable",showDividers:true,defaultExpandedKeys:[r[0].field],children:r.map(h=>X(h))});return jsxRuntime.jsx(rr,{isOpen:e,onClose:t,title:v&&x&&f?f.startsWith("__ungrouped__")?y.find(h=>h.field===f.replace("__ungrouped__",""))?.label||s:f:k>0?`${s} (${k} active)`:s,hideCloseIcon:false,primaryAction:{label:"Apply filters",onPress:R,variant:"primary"},secondaryAction:{label:"Clear all",onPress:E},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:Gb(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?P():w():B()})}function Eu(e="left"){switch(e){case "center":return "justify-center text-center";case "right":return "justify-end text-right";default:return "justify-start text-left"}}function cr(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",Eu(e),t)}function il(e,t="\u2014"){return e==null||e===""?t:String(e)}var Po={xs:"h-4 w-12",sm:"h-4 w-20",md:"h-4 w-24",lg:"h-4 w-32",xl:"h-4 w-40"};function Ht(e="normal"){return {strong:Po.lg,high:Po.lg,normal:Po.md,low:Po.sm}[e]}function ye(e,t){return typeof e=="function"?e(t):e}function Yb(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 Kb(e){return e?"success":"neutral"}function sl(e,t=false){return t?e>0?"text-feedback-success-text":e<0?"text-feedback-error-text":"text-text-primary":"text-text-primary"}function Lu(e="hover",t="secondary"){let r={primary:"text-action-primary hover:text-action-primary-hover visited:text-action-primary",secondary:"text-text-link-default hover:text-text-link-hover visited:text-text-link-default",default:"text-text-link-default hover:text-text-link-hover visited:text-text-link-default",brand:"text-action-primary hover:text-action-primary-hover visited:text-action-primary",muted:"text-text-secondary hover:text-text-secondary visited:text-text-secondary",unstyled:""},o={visible:"underline underline-offset-4 decoration-1 cursor-pointer",hover:"hover:underline hover:underline-offset-4 hover:decoration-1 cursor-pointer transition-colors",none:"cursor-pointer"},n=r[t],a=o[e]||"";return `${n} ${a}`.trim()}function zr(e,t,r,o="hover",n="secondary",a,i){if(!t)return e;let s=typeof t=="function"&&r?t(r):t,c=Lu(o,n);return jsxRuntime.jsx("a",{href:s,className:tailwindMerge.twMerge(c,a==="strong"||a==="high"?"font-semibold":"",i),onClick:u=>{u.metaKey||u.ctrlKey;},children:e})}function Jb({row:e,context:t,actions:r,align:o="right",size:n="sm"}){let{isLoading:a}=t;if(a)return jsxRuntime.jsx(J,{className:Po.sm});let s=(typeof r=="function"?r(e):r).filter(l=>!ye(l.hidden,e));if(s.length===0)return null;let c=ke(o);return jsxRuntime.jsx("div",{className:c,children:s.map(l=>{let u=ye(l.disabled,e);return l.variant==="icon"||!l.label?jsxRuntime.jsx(Q,{variant:"icon",size:n,onPress:()=>{l.onClick(e);},isDisabled:u,"aria-label":l.label||l.id,children:jsxRuntime.jsx(I,{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:u,children:[l.icon&&jsxRuntime.jsx(I,{name:l.icon,size:n==="sm"?14:16}),l.label]},l.id)})})}function qb({value:e,row:t,context:r,variant:o="default",label:n,size:a="sm",shape:i="square",dot:s,dotPosition:c="left",dotPulse:l,align:u="left",emptyText:d="\u2014",className:m,maxVisible:p=2,maxLabelLength:g}){let{isLoading:f}=r,b=(k,R)=>{if(!g||k.length<=g)return jsxRuntime.jsx(jsxRuntime.Fragment,{children:k});let E=k.slice(0,g-1)+"\u2026";return jsxRuntime.jsx(Lt,{content:R,children:jsxRuntime.jsx("span",{children:E})})};if(f)return jsxRuntime.jsx(J,{className:Ht("normal")});if(e==null||e==="")return jsxRuntime.jsx("div",{className:ke(u,"text-text-secondary"),children:d});if(Array.isArray(e)&&e.length===0)return jsxRuntime.jsx("div",{className:ke(u,"text-text-secondary"),children:d});let x=ke(u,m);if(Array.isArray(e)){let k=e.slice(0,p),R=e.slice(p),E=R.length>0;return jsxRuntime.jsx("div",{className:x,children:jsxRuntime.jsxs("div",{className:"flex items-center gap-1",children:[k.map((D,L)=>{let V=typeof o=="function"?o(D,t):o,A=typeof n=="function"?n(D,t):n!==void 0?n:String(D),N=typeof s=="function"?s(D,t):s,T=typeof l=="function"?l(D,t):l;return jsxRuntime.jsx("span",{className:"flex-shrink-0 whitespace-nowrap",children:jsxRuntime.jsx(Je,{variant:V,size:a,shape:i,dot:N,dotPosition:c,dotPulse:T,children:b(A,A)})},L)}),E&&jsxRuntime.jsx(Lt,{content:R.join(", "),children:jsxRuntime.jsx("span",{className:"flex-shrink-0 whitespace-nowrap",children:jsxRuntime.jsxs(Je,{variant:"neutral",size:a,shape:i,children:["+",R.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(Je,{variant:v,size:a,shape:i,dot:y,dotPosition:c,dotPulse:S,children:b(C,C)})})}function Zb({value:e,context:t,format:r="icon",trueText:o="Yes",falseText:n="No",trueIcon:a="Check",falseIcon:i="X",showFalse:s=true,align:c="center",emphasis:l="normal",className:u}){let{isLoading:d}=t;if(d)return jsxRuntime.jsx(J,{className:Ht(l)});let m=!!e;if(!m&&!s)return jsxRuntime.jsx("div",{className:ke(c,u)});let p=ke(c,u);switch(r){case "icon":return jsxRuntime.jsx("div",{className:p,children:jsxRuntime.jsx(I,{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:cr(l),children:m?o:n})});case "badge":return jsxRuntime.jsx("div",{className:p,children:jsxRuntime.jsx(Je,{variant:m?"success":"neutral",size:"sm",children:m?o:n})});default:return null}}function $b({row:e,context:t,firstName:r,lastName:o,email:n,avatarUrl:a,layout:i="stacked",size:s="sm",href:c,LinkComponent:l,linkVariant:u="secondary",showEmail:d=false,badge:m,emphasis:p="normal",align:g="left",className:f,piiEntity:b}){let{isLoading:x}=t,v=ye(r,e),C=ye(o,e),y=ye(n,e),S=ye(a,e),k=ye(c,e),R=typeof m=="function"?m(e):m,E=ye(b,e),D=ke(g,f);return jsxRuntime.jsx("div",{className:D,children:jsxRuntime.jsx(Ps,{firstName:v,lastName:C,email:y,avatarUrl:S,layout:i,size:s,href:k,LinkComponent:l,linkVariant:u,showEmail:d,badge:R,emphasis:p,isLoading:x,piiEntity:E})})}function Qb({value:e,row:t,context:r,render:o,className:n}){let a=o(e,t,r);return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("h-full w-full",n),children:a})}function _b({value:e,row:t,context:r,format:o="date",customFormat:n,emptyText:a="\u2014",align:i="left",emphasis:s="normal",href:c,linkBehavior:l="hover",className:u}){let{isLoading:d}=r;if(d)return jsxRuntime.jsx(J,{className:Ht(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=uT(m);break;case "custom":p=n?m.toLocaleString("en-US",n):m.toISOString();break;default:p=m.toLocaleDateString();}let g=ke(i,tailwindMerge.twMerge(cr(s),u)),f=ye(c,t);return f?jsxRuntime.jsx("div",{className:g,children:zr(p,f,t,l)}):jsxRuntime.jsx("div",{className:g,children:p})}function uT(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 ll({manufacturer:e,model:t,deviceType:r,deviceTypeIconName:o,logoUrl:n,layout:a="stacked",size:i="md",href:s,LinkComponent:c,linkVariant:l="unstyled",showDeviceTypeIcon:u=true,showLogo:d=true,emphasis:m="normal",isLoading:p=false,className:g,piiEntity:f}){let[b,x]=Ee.useState(false),v=o||(r?mT(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&&d,R={strong:"font-semibold text-text-primary",high:"font-semibold text-text-primary",normal:"text-text-primary",low:"text-text-secondary"}[m],E=({children:D,className:L})=>s?c?jsxRuntime.jsx(c,{href:s,className:L,children:D}):jsxRuntime.jsx(Ue,{href:s,variant:l,className:tailwindMerge.twMerge("hover:underline",L),asButton:false,children:D}):jsxRuntime.jsx("span",{className:L,children:D});if(p)return a==="inline"?jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("flex items-center",y.gap,g),children:[jsxRuntime.jsx(J,{width:y.skeletonIcon,height:y.skeletonIcon,className:"flex-shrink-0 rounded"}),jsxRuntime.jsx(J,{width:y.skeletonText,height:y.skeletonIcon*.6})]}):jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("flex items-center",y.gap,g),children:[jsxRuntime.jsx(J,{width:y.skeletonIcon,height:y.skeletonIcon,className:"flex-shrink-0"}),jsxRuntime.jsxs("div",{className:"flex flex-col gap-1",children:[jsxRuntime.jsx(J,{width:y.skeletonText,height:16}),jsxRuntime.jsx(J,{width:y.skeletonSecondary,height:12})]})]});if(a==="inline"){let D=`${e} ${t}`;return jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("flex items-center",y.gap,g),children:[jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("flex-shrink-0 flex items-center justify-center rounded border border-border-muted",y.logoSize),children:S?jsxRuntime.jsx("img",{src:n,alt:`${e} logo`,className:"w-full h-full object-contain",onError:()=>x(true)}):jsxRuntime.jsx(I,{name:v,size:y.iconSize*.6,className:"text-text-secondary"})}),jsxRuntime.jsx(E,{className:tailwindMerge.twMerge("truncate leading-normal hover:text-text-primary",R,y.textSize,s&&"hover:underline hover:decoration-1 hover:underline-offset-4"),children:jsxRuntime.jsx("span",{"data-pii-type":f?"device-name":void 0,"data-pii-entity":f,children:D})})]})}return jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("flex items-center justify-start",y.gap,g),children:[d&&jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("flex-shrink-0 flex items-center justify-center rounded border border-border-muted",y.logoSize),children:S?jsxRuntime.jsx("img",{src:n,alt:`${e} logo`,className:"w-full h-full object-contain",onError:()=>x(true)}):jsxRuntime.jsx(I,{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(E,{className:tailwindMerge.twMerge("truncate leading-normal hover:text-text-primary",R,y.textSize,s&&"hover:underline hover:decoration-1 hover:underline-offset-4"),children:jsxRuntime.jsx("span",{"data-pii-type":f?"device-name":void 0,"data-pii-entity":f,children:e})}),jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("flex items-center gap-1.5 text-text-secondary leading-normal",y.secondaryTextSize),children:[u&&jsxRuntime.jsx(I,{name:v,size:y.iconInTextSize,className:"flex-shrink-0"}),jsxRuntime.jsx("span",{className:"truncate","data-pii-type":f?"device-name":void 0,"data-pii-entity":f,children:t})]})]})]})}function mT(e){switch(e){case "battery":return "BatteryHigh";case "charger":return "ChargingStation";case "inverter":return "Power";case "thermostat":return "ThermometerSimple";case "vehicle":return "CarSimple";case "meter":return "Gauge";default:return "DeviceMobile"}}function tx({row:e,context:t,manufacturer:r,model:o,deviceType:n,logoUrl:a,layout:i="stacked",size:s="sm",href:c,LinkComponent:l,linkVariant:u="secondary",showDeviceTypeIcon:d=true,showLogo:m=true,emphasis:p="normal",align:g="left",className:f,piiEntity:b}){let{isLoading:x}=t,v=ye(r,e),C=ye(o,e),y=ye(n,e),S=ye(a,e),k=ye(c,e),R=ye(b,e),E=ke(g,f);return jsxRuntime.jsx("div",{className:E,children:jsxRuntime.jsx(ll,{manufacturer:v,model:C,deviceType:y,logoUrl:S,layout:i,size:s,href:k,LinkComponent:l,linkVariant:u,showDeviceTypeIcon:d,showLogo:m,emphasis:p,isLoading:x,piiEntity:R})})}var fG={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},fT=["charging","discharging","heat","cool","on","connected"],gT={unknown:"Unknown",on:"On",off:"Off",idle:"Idle",charging:"Charging",discharging:"Discharging",heat:"Heating",eco:"Eco Mode",cool:"Cooling",auto:"Auto",connected:"Connected",disconnected:"Disconnected"};function Au(e){return fT.includes(e)}function Iu(e){return gT[e]}function un({state:e,label:t,icon:r,isLoading:o,size:n="sm",shape:a="pill",dot:i,dotPulse:s,fixedWidth:c,className:l,...u}){if(o)return jsxRuntime.jsx(J,{className:"inline-flex h-6 w-20"});let d=t??Iu(e),m=Au(e);return jsxRuntime.jsxs(Je,{variant:e,size:n,shape:a,dot:i??m,dotPulse:s??m,className:c?`w-28 justify-center ${l||""}`:l,...u,children:[r&&jsxRuntime.jsx(I,{name:r,size:n==="sm"?12:n==="md"?14:16}),d]})}var xT={importing:"Importing",exporting:"Exporting"};function ox(e){return xT[e]}function dl({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??ox(e),u=e==="exporting"?"ArrowUp":"ArrowDown",d=n==="sm"?12:n==="md"?14:16;return r?jsxRuntime.jsx(Je,{variant:e,size:n,shape:a,className:`w-6 justify-center ${s||""}`,...c,children:jsxRuntime.jsx(I,{name:u,size:d})}):jsxRuntime.jsx(Je,{variant:e,size:n,shape:a,className:i?`w-28 justify-center ${s||""}`:s,...c,children:l})}function ul({state:e,stateLabel:t,metric:r,metricFormatter:o,secondaryState:n,layout:a="horizontal",isLoading:i,size:s="sm",shape:c="pill",icon:l,fixedWidth:u,secondaryStateIconOnly:d=false,className:m}){if(i)return jsxRuntime.jsx(J,{className:tailwindMerge.twMerge("inline-flex h-6 w-32",m)});let p=r!=null&&o?Oo(r,o):null,g=a==="horizontal",f=o&&!p;return jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("inline-flex items-center",g?"gap-2":"flex-col gap-1",m),children:[(p||f)&&jsxRuntime.jsx("span",{className:tailwindMerge.twMerge("font-medium inline-block",p?"text-text-primary":"text-text-secondary",s==="sm"&&"text-xs min-w-12",s==="md"&&"text-sm min-w-14",s==="lg"&&"text-base min-w-16"),children:p||"\u2014"}),jsxRuntime.jsx(un,{state:e,label:t,icon:l,size:s,shape:c,fixedWidth:u}),n&&jsxRuntime.jsx(jsxRuntime.Fragment,{children:n==="importing"||n==="exporting"?jsxRuntime.jsx(dl,{state:n,size:s,shape:c,fixedWidth:u,showIcon:d}):jsxRuntime.jsx(un,{state:n,size:s,shape:c,fixedWidth:u})})]})}function nx({value:e,row:t,context:r,metric:o,metricFormatter:n,secondaryState:a,size:i="sm",shape:s="pill",label:c,icon:l,fixedWidth:u=true,align:d="left",compact:m=false,className:p}){let{isLoading:g}=r;if(g){let 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(d,p),children:jsxRuntime.jsx("span",{className:"text-text-secondary",children:"\u2014"})});let f=ye(o,t),b=ye(a,t),x=typeof c=="function"?c(e,t):c,v=ke(d,p);return f!=null||n?jsxRuntime.jsx("div",{className:tailwindMerge.twMerge(v),children:jsxRuntime.jsx(ul,{state:e,stateLabel:x,metric:f,metricFormatter:n,secondaryState:b||void 0,size:i,shape:s,icon:l,fixedWidth:u,secondaryStateIconOnly:m,layout:"horizontal"})}):jsxRuntime.jsx("div",{className:v,children:jsxRuntime.jsx(un,{state:e,label:x,icon:l,size:i,shape:s,fixedWidth:u})})}function ix({value:e,row:t,context:r,formatter:o,align:n="left",emphasis:a="normal",href:i,linkBehavior:s="hover",className:c,emptyText:l="\u2014",emptyClassName:u="text-text-secondary"}){let{isLoading:d}=r;if(d)return jsxRuntime.jsx(J,{className:Ht(a)});let m=kr({value:e,formatter:o,emptyText:l,emptyClassName:u}),p=cr(a),g=ke(n,tailwindMerge.twMerge(p,c)),f=jsxRuntime.jsx("div",{className:g,children:m}),b=ye(i,t);return b?zr(f,b,t,s):f}var Bu=Ee__namespace.default.memo(({value:e,min:t,max:r,color:o="var(--color-viz-default)",backgroundColor:n="var(--color-background-muted)",colorScale:a,showLabel:i=true,formatLabel:s,height:c=20,minWidth:l=4,segments:u,segmentGap:d=2,barWidth:m,context:p})=>{let g=Ee.useMemo(()=>r===t?100:Math.max(0,Math.min(100,(e-t)/(r-t)*100)),[e,t,r]),f=Ee.useMemo(()=>o==="auto"&&a?a.type==="diverging"&&a.center!==void 0?wa(e,t,r,a.center,a.scheme):Sa(e,t,r,a.scheme):o,[o,a,e,t,r]);if(p.isLoading)return jsxRuntime.jsx("div",{className:"flex items-center gap-2 w-full",style:{height:c},children:jsxRuntime.jsx("div",{className:"h-full flex-1 animate-pulse bg-border-default rounded"})});if(u&&u>0){let v=`calc((100% - ${d*(u-1)}px) / ${u})`,C=Math.ceil(g/100*u),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:u}).map((S,k)=>{let R=k<C;return jsxRuntime.jsx("div",{className:"rounded-sm",style:{width:v,backgroundColor:R?f:n==="none"?"transparent":n,marginRight:k<u-1?`${d}px`:0}},k)})}),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:`${g}%`,minWidth:g>0?l:0,backgroundColor:f}})}),i&&jsxRuntime.jsx("span",{className:"text-sm text-text-primary whitespace-nowrap",children:s?s(e):e.toLocaleString()})]})});Bu.displayName="HorizontalBarCell";var Vu=Ee__namespace.default.memo(({value:e,data:t,color:r="var(--color-viz-default)",categoryColors:o,context:n,width:a,height:i=40})=>{let s=e||t||[],c=b=>"xValue"in b?b.xValue:b.x,l=b=>"yValue"in b?b.yValue:b.y,u=a||100,d=i,{xScale:m,yScale:p,barWidth:g}=Ee.useMemo(()=>{if(s.length===0)return {xScale:scale.scaleTime({range:[0,u],domain:[new Date,new Date]}),yScale:scale.scaleLinear({range:[d,0],domain:[0,1]}),barWidth:2};let b=d3Array.extent(s,R=>c(R)),x=d3Array.min(s,R=>l(R))??0,v=d3Array.max(s,R=>l(R))??0,C=x<0?x:0,y=scale.scaleTime({range:[0,u],domain:b}),S=scale.scaleLinear({range:[d,0],domain:[C,v*1.05]}),k=s.length>1?u/s.length*.8:8;return {xScale:y,yScale:S,barWidth:Math.max(2,k)}},[s,u,d]);if(n.isLoading)return jsxRuntime.jsx("div",{className:"flex items-center gap-0.5",style:{width:u,height:d},children:Array.from({length:5}).map((b,x)=>jsxRuntime.jsx("div",{className:"flex-1 animate-pulse bg-border-default rounded"},x))});if(!s||s.length===0)return jsxRuntime.jsx("div",{className:"flex items-center justify-center text-text-secondary text-xs",style:{width:u,height:d},children:"No data"});let f=p(0);return jsxRuntime.jsx("svg",{width:u,height:d,children:s.map((b,x)=>{let v=l(b),C=m(c(b)),y=p(v),S=Math.abs(f-y),k=b.category&&o?.[b.category]?o[b.category]:r;return jsxRuntime.jsx(shape.Bar,{x:C-g/2,y:v>=0?y:f,width:g,height:S,fill:k,rx:1},`bar-${x}`)})})});Vu.displayName="MiniBarCell";function ux({value:e,row:t,context:r,format:o="number",decimals:n=0,prefix:a,suffix:i,emptyText:s="\u2014",align:c="right",emphasis:l="normal",href:u,linkBehavior:d="hover",showPositiveSign:m=false,colorCode:p=false,className:g}){let{isLoading:f}=r;if(f)return jsxRuntime.jsx(J,{className:Ht(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?sl(b,true):cr(l),S=ke(c,tailwindMerge.twMerge(y,g)),k=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})]}),R=ye(u,t);return R?jsxRuntime.jsx("div",{className:S,children:zr(k,R,t,d)}):jsxRuntime.jsx("div",{className:S,children:k})}var zu=Ee__namespace.default.memo(({value:e,showLabel:t=true,color:r="var(--color-viz-categorical-1)",backgroundColor:o="var(--color-background-muted)",height:n=20,segments:a,segmentGap:i=2,colorScale:s,context:c})=>{let l=Ee.useMemo(()=>Math.max(0,Math.min(100,e)),[e]),u=Ee.useMemo(()=>r==="auto"&&s?s.type==="diverging"&&s.center!==void 0?wa(e,0,100,s.center,s.scheme):Sa(e,0,100,s.scheme):r,[r,s,e]);if(c.isLoading)return jsxRuntime.jsx("div",{className:"flex items-center gap-2",style:{height:n},children:jsxRuntime.jsx("div",{className:"h-full w-full animate-pulse bg-border-default rounded"})});if(a&&a>0){let m=`calc((100% - ${i*(a-1)}px) / ${a})`,p=Math.ceil(l/100*a);return jsxRuntime.jsxs("div",{className:"flex items-center gap-2 w-full",children:[jsxRuntime.jsx("div",{className:"flex gap-0.5 flex-1",style:{height:n},children:Array.from({length:a}).map((g,f)=>{let b=f<p,x=u;if(r==="auto"&&s&&b){let v=(f+1)/a*100;s.type==="diverging"&&s.center!==void 0?x=wa(v,0,100,s.center,s.scheme):x=Sa(v,0,100,s.scheme);}return jsxRuntime.jsx("div",{className:"rounded-sm",style:{width:m,backgroundColor:b?x:o==="none"?"transparent":o,marginRight:f<a-1?`${i}px`:0}},f)})}),t&&jsxRuntime.jsxs("span",{className:"text-sm text-text-primary whitespace-nowrap",children:[l.toFixed(0),"%"]})]})}return jsxRuntime.jsxs("div",{className:"flex items-center gap-2 w-full",children:[jsxRuntime.jsx("div",{className:"relative flex-1 rounded-sm",style:{height:n,backgroundColor:o==="none"?"transparent":o},children:jsxRuntime.jsx("div",{className:"absolute left-0 top-0 h-full rounded-sm transition-all duration-300",style:{width:`${l}%`,backgroundColor:u}})}),t&&jsxRuntime.jsxs("span",{className:"text-sm text-text-primary whitespace-nowrap",children:[l.toFixed(0),"%"]})]})});zu.displayName="PercentBarCell";function mx({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=ye(n,e),c=ke(a);return jsxRuntime.jsx("div",{className:c,children:jsxRuntime.jsx(_o,{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:u=false,className:d,piiEntity:m}){let g={xs:{iconSize:16,iconContainerSize:"w-7 h-7",gap:"gap-1.5",textSize:"text-xs",secondaryTextSize:"text-xs",skeletonIconStacked:28,skeletonIconInline:16,skeletonText:80,skeletonSecondary:60},sm:{iconSize:20,iconContainerSize:"w-8 h-8",gap:"gap-2",textSize:"text-sm",secondaryTextSize:"text-xs",skeletonIconStacked:32,skeletonIconInline:20,skeletonText:96,skeletonSecondary:72},md:{iconSize:24,iconContainerSize:"w-9 h-9",gap:"gap-3",textSize:"text-base",secondaryTextSize:"text-sm",skeletonIconStacked:36,skeletonIconInline:24,skeletonText:128,skeletonSecondary:96},lg:{iconSize:28,iconContainerSize:"w-10 h-10",gap:"gap-3",textSize:"text-lg",secondaryTextSize:"text-base",skeletonIconStacked:40,skeletonIconInline:28,skeletonText:160,skeletonSecondary:120}}[a],b={strong:"font-semibold text-text-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:k})=>i?s?jsxRuntime.jsx(s,{href:i,className:k,children:S}):jsxRuntime.jsx(Ue,{href:i,variant:c,className:tailwindMerge.twMerge("hover:underline",k),asButton:false,children:S}):jsxRuntime.jsx("span",{className:k,children:S});if(u)return n==="inline"?jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("flex items-center",g.gap,d),children:[jsxRuntime.jsx(J,{width:g.skeletonIconInline,height:g.skeletonIconInline,className:"flex-shrink-0 rounded"}),jsxRuntime.jsx(J,{width:g.skeletonText,height:g.skeletonIconInline*.8})]}):jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("flex items-center",g.gap,d),children:[jsxRuntime.jsx(J,{width:g.skeletonIconStacked,height:g.skeletonIconStacked,className:"flex-shrink-0 rounded"}),jsxRuntime.jsxs("div",{className:"flex flex-col gap-1",children:[jsxRuntime.jsx(J,{width:g.skeletonText,height:16}),jsxRuntime.jsx(J,{width:g.skeletonSecondary,height:12})]})]});if(n==="inline")return jsxRuntime.jsxs(C,{className:tailwindMerge.twMerge("flex items-center",g.gap,i&&"hover:bg-background-hover transition-colors",d),children:[jsxRuntime.jsx(I,{name:"MapPin",size:g.iconSize,className:"text-text-secondary flex-shrink-0"}),jsxRuntime.jsx("span",{className:tailwindMerge.twMerge("leading-normal truncate hover:text-text-primary",b,g.textSize,i&&"hover:underline hover:decoration-1 hover:underline-offset-4"),"data-pii-type":m?"address":void 0,"data-pii-entity":m,children:e})]});let 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",g.gap,d),children:[jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("flex-shrink-0 flex items-center justify-center rounded border border-border-muted",g.iconContainerSize),children:jsxRuntime.jsx(I,{name:"MapPin",size:g.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,g.textSize,i&&"hover:underline hover:decoration-1 hover:underline-offset-4"),children:jsxRuntime.jsx("span",{"data-pii-type":m?"address":void 0,"data-pii-entity":m,children:e})}),v&&jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("text-text-secondary leading-normal truncate",g.secondaryTextSize),"data-pii-type":y(),"data-pii-entity":m,children:v})]})]})}function gx({row:e,context:t,streetAddress:r,city:o,state:n,postalCode:a,layout:i="stacked",size:s="sm",href:c,LinkComponent:l,linkVariant:u="secondary",emphasis:d="normal",align:m="left",className:p,piiEntity:g}){let{isLoading:f}=t,b=ye(r,e),x=ye(o,e),v=ye(n,e),C=ye(a,e),y=ye(c,e),S=ye(g,e),k=ke(m,p);return jsxRuntime.jsx("div",{className:k,children:jsxRuntime.jsx(fl,{streetAddress:b,city:x,state:v,postalCode:C,layout:i,size:s,href:y,LinkComponent:l,linkVariant:u,emphasis:d,isLoading:f,piiEntity:S})})}var Ou=Ee__namespace.default.memo(({value:e,data:t,type:r="line",color:o="var(--color-viz-default)",strokeWidth:n=2,categoryColors:a,context:i,width:s,height:c=40})=>{let l=e||t||[],u=s||100,d=c,{xScale:m,yScale:p}=Ee.useMemo(()=>{if(l.length===0)return {xScale:scale.scaleTime({range:[0,u],domain:[new Date,new Date]}),yScale:scale.scaleLinear({range:[d,0],domain:[0,1]})};let f=d3Array.extent(l,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,u],domain:f}),yScale:scale.scaleLinear({range:[d,0],domain:[b-v,x+v]})}},[l,u,d]);if(i.isLoading)return jsxRuntime.jsx("div",{className:"flex items-center",style:{width:u,height:d},children:jsxRuntime.jsx("div",{className:"h-1 w-full animate-pulse bg-border-default rounded"})});if(!l||l.length===0)return jsxRuntime.jsx("div",{className:"flex items-center justify-center text-text-secondary text-xs",style:{width:u,height:d},children:"No data"});let g=a&&l[0]?.category&&a[l[0].category]?a[l[0].category]:o;return jsxRuntime.jsxs("svg",{width:u,height:d,className:"overflow-visible",children:[(r==="area"||r==="both")&&jsxRuntime.jsx(shape.AreaClosed,{data:l,x:f=>m(f.xValue),y:f=>p(f.yValue),yScale:p,fill:g,fillOpacity:.15,curve:curve.curveLinear}),(r==="line"||r==="both")&&jsxRuntime.jsx(shape.LinePath,{data:l,x:f=>m(f.xValue),y:f=>p(f.yValue),stroke:g,strokeWidth:n,strokeLinecap:"round",curve:curve.curveLinear})]})});Ou.displayName="SparklineCell";function yx({value:e,row:t,context:r,prefix:o,suffix:n,emptyText:a="\u2014",href:i,linkBehavior:s="hover",linkVariant:c="secondary",emphasis:l="normal",truncate:u=true,copyable:d=false,align:m="left",className:p,piiType:g,piiEntity:f}){let{isLoading:b}=r;if(b)return jsxRuntime.jsx(J,{className:Ht(l)});let x=il(e,a),v=ye(i,t),C=ye(f,t),y=x,S=false,k=false;if(u&&x&&typeof x=="string")if(typeof u=="boolean")k=true;else {let{position:T="end",length:z=16,ellipsis:W="...",tooltip:F=true}=u;if(x.length>z){switch(T){case "start":y=Wi(x,z);break;case "middle":y=An(x,z);break;case "end":y=Gi(x,z,W);break}S=F;}}let R=g&&C?{"data-pii-type":g,"data-pii-entity":C}:{},E=Object.keys(R).length>0,D=jsxRuntime.jsx("span",{className:k?"truncate":"",...R,children:y}),L=S?jsxRuntime.jsx(Lt,{content:E?jsxRuntime.jsx("span",{...R,children:String(x)}):String(x),children:D}):D,V=jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[o&&jsxRuntime.jsx("span",{className:"text-text-secondary",children:o}),L,n&&jsxRuntime.jsx("span",{className:"text-text-secondary",children:n})]}),A=V;if(d&&x&&x!==a){let T=typeof d=="function"?d(t):String(x);A=jsxRuntime.jsx(ho,{value:T,size:"sm",children:V});}if(v){let T=ke(m,p);return jsxRuntime.jsx("div",{className:T,children:zr(A,v,t,s,c,l)})}let N=ke(m,tailwindMerge.twMerge(cr(l),p));return jsxRuntime.jsx("div",{className:N,children:A})}var JT={sm:"sm:hidden",md:"md:hidden",lg:"lg:hidden",xl:"xl:hidden"},jT={sm:"hidden sm:grid",md:"hidden md:grid",lg:"hidden lg:grid",xl:"hidden xl:grid"};function gl(e,t){return t.accessor?typeof t.accessor=="function"?t.accessor(e):e[t.accessor]:null}function bl(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 hl({row:e,columns:t,density:r,isLoading:o,onClick:n}){let a=t.filter(d=>d.mobile!==false).map(d=>{let m=d.mobile===false?null:d.mobile;return {...d,mobilePriority:m?.priority??2,mobileFormat:m?.format??"secondary",showLabel:m?.label??m?.format==="secondary",icon:m?.icon}}).sort((d,m)=>d.mobilePriority-m.mobilePriority),i=a.filter(d=>d.mobilePriority===1||d.mobileFormat==="primary"),s=a.filter(d=>d.mobilePriority===2&&d.mobileFormat!=="primary"),c=a.filter(d=>d.mobileFormat==="badge"),l={isLoading:!!o,rowIndex:0,columnIndex:0,density:r};return jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("border-b border-border-default bg-background-surface transition-colors",n&&"cursor-pointer hover:bg-background-hover active:bg-background-pressed",{compact:"px-3 py-2",default:"px-4 py-3",relaxed:"px-4 py-4"}[r]),onClick:n,role:n?"button":void 0,tabIndex:n?0:void 0,children:[i.length>0&&jsxRuntime.jsxs("div",{className:"mb-2 flex items-start justify-between",children:[jsxRuntime.jsx("div",{className:"flex-1",children:i.map(d=>{let m=gl(e,d);return jsxRuntime.jsx("div",{className:"font-medium text-text-primary [&>*]:!justify-start [&>*]:!text-left",children:bl(m,e,d,l)},d.id)})}),c.length>0&&jsxRuntime.jsx("div",{className:"ml-2 flex flex-wrap gap-1",children:c.map(d=>{let m=gl(e,d);return jsxRuntime.jsx("div",{className:"inline-flex",children:bl(m,e,d,l)},d.id)})})]}),s.length>0&&jsxRuntime.jsx("div",{className:"space-y-1",children:s.map(d=>{let m=gl(e,d),p=d.showLabel&&d.label;return jsxRuntime.jsxs("div",{className:"flex items-center text-sm text-text-secondary",children:[d.icon&&jsxRuntime.jsx(I,{name:d.icon,className:"mr-1.5 h-4 w-4 flex-shrink-0"}),p&&jsxRuntime.jsxs("span",{className:"mr-1 font-medium",children:[d.label,":"]}),jsxRuntime.jsx("span",{className:"truncate [&>*]:!justify-start [&>*]:!text-left",children:bl(m,e,d,l)})]},d.id)})})]})}function yl({row:e,columns:t,density:r,isLoading:o,onClick:n}){let a=t.filter(c=>c.mobile!==false),i={isLoading:!!o,rowIndex:0,columnIndex:0,density:r};return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("border-b border-border-default bg-background-surface transition-colors",n&&"cursor-pointer hover:bg-background-hover active:bg-background-pressed",{compact:"px-3 py-2",default:"px-4 py-3",relaxed:"px-4 py-4"}[r]),onClick:n,role:n?"button":void 0,tabIndex:n?0:void 0,children:jsxRuntime.jsx("div",{className:"space-y-2",children:a.map((c,l)=>{let u=gl(e,c),d=l===0;return jsxRuntime.jsxs("div",{children:[!d&&jsxRuntime.jsx("div",{className:"text-xs text-text-secondary",children:c.label}),jsxRuntime.jsx("div",{className:tailwindMerge.twMerge(d?"font-medium text-text-primary":"text-sm text-text-primary","[&>*]:!justify-start [&>*]:!text-left"),children:bl(u,e,c,i)})]},c.id)})})})}function vx(e="md"){return {mobile:JT[e],desktop:jT[e]}}function Cx({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 ik={compact:"py-1.5 px-3 text-sm",default:"py-3 px-4 text-sm",relaxed:"py-4 px-4 text-base"},sk={left:"text-left justify-start",center:"text-center justify-center",right:"text-right justify-end"};function lk(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 ck({column:e,sortConfig:t,onSort:r,stickyHeader:o,stickyFirstColumn:n,isFirstColumn:a,density:i="default",isLoading:s=false}){let c=e.reorderable!==false,{attributes:l,listeners:u,setNodeRef:d,transform:m,transition:p,isDragging:g}=sortable.useSortable({id:e.id,disabled:!c||s}),f=t?.columnId===e.id,b=f?t.direction:null,x=n&&a,v={...lk(e),transform:utilities.CSS.Transform.toString(m),transition:p,opacity:g?.8:1,zIndex:g?50:void 0};return jsxRuntime.jsx("div",{ref:d,className:tailwindMerge.twMerge("flex items-center border-b border-border-default bg-background-surface",e.sortable?"gap-2":"gap-1",ik[i],sk[e.align||"left"],o&&"sticky top-0 z-10",x&&"sticky left-0 z-20 shadow-[2px_0_4px_-2px_rgba(0,0,0,0.1)]",o&&x&&"z-30",e.sortable&&!s&&"hover:bg-background-hover",s&&"cursor-not-allowed opacity-60",f?"font-bold text-text-primary":"font-medium text-text-secondary",g&&"bg-background-hover"),style:v,role:"columnheader","aria-sort":f?b==="asc"?"ascending":"descending":"none","aria-disabled":s,...l,...u,children:s?jsxRuntime.jsx(J,{className:"h-4 w-24"}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("span",{className:"flex-1 truncate cursor-pointer",onClick:()=>!s&&e.sortable&&r(e.id),children:e.label}),e.sortable&&jsxRuntime.jsx("button",{type:"button",className:"flex flex-shrink-0 cursor-pointer",onClick:()=>!s&&r(e.id),"aria-label":`Sort by ${e.label}`,children:f?jsxRuntime.jsx(I,{name:b==="asc"?"CaretUp":"CaretDown",size:14,weight:"bold",className:"text-text-primary"}):jsxRuntime.jsx(I,{name:"CaretUpDown",size:12,className:"text-text-secondary opacity-40"})})]})})}function wx({columns:e,columnOrder:t,onColumnOrderChange:r,sortConfig:o,onSort:n,stickyHeader:a,stickyFirstColumn:i,density:s="default",isLoading:c=false}){let l=core.useSensors(core.useSensor(core.PointerSensor,{activationConstraint:{distance:5}}),core.useSensor(core.KeyboardSensor,{coordinateGetter:sortable.sortableKeyboardCoordinates})),u=new Map(e.map(p=>[p.id,p])),d=p=>{let{active:g,over:f}=p;if(f&&g.id!==f.id){let b=t.indexOf(g.id),x=t.indexOf(f.id);if(u.get(f.id)?.reorderable===false)return;let C=0;for(let R=0;R<t.length&&u.get(t[R])?.reorderable===false;R++)C=R+1;if(x<C)return;let y=Math.min(b,x),S=Math.max(b,x);for(let R=y;R<=S;R++){if(R===b)continue;if(u.get(t[R])?.reorderable===false)return}let k=sortable.arrayMove(t,b,x);r(k);}},m=t.map(p=>u.get(p)).filter(p=>p!==void 0);return jsxRuntime.jsx(core.DndContext,{sensors:l,collisionDetection:core.closestCenter,onDragEnd:d,children:jsxRuntime.jsx(sortable.SortableContext,{items:t,strategy:sortable.horizontalListSortingStrategy,children:jsxRuntime.jsx("div",{className:"contents",role:"rowgroup",children:m.map((p,g)=>jsxRuntime.jsx(ck,{column:p,sortConfig:o,onSort:n,stickyHeader:a,stickyFirstColumn:i,isFirstColumn:g===0,density:s,isLoading:c},p.id))})})})}var Uu={compact:"py-1.5 px-3 text-sm",default:"py-3 px-4 text-sm",relaxed:"py-4 px-4 text-base"},Yu={left:"text-left justify-start",center:"text-center justify-center",right:"text-right justify-end"},gk={full:"w-full",auto:"w-auto inline-block",contained:"w-full max-w-6xl mx-auto"},bk={auto:"table-auto",fixed:"table-fixed",responsive:"table-auto"};function Ku(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 xk(e,t){return t.accessor?typeof t.accessor=="function"?t.accessor(e):e[t.accessor]:null}function hk({column:e,sortConfig:t,onSort:r,stickyHeader:o,stickyFirstColumn:n,isFirstColumn:a,density:i="default",isLoading:s=false}){let c=t?.columnId===e.id,l=c?t.direction:null,u=n&&a;return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("flex items-center border-b border-border-default bg-background-surface",e.sortable?"gap-2":"gap-1",Uu[i],Yu[e.align||"left"],o&&"sticky top-0 z-10",u&&"sticky left-0 z-20 shadow-[2px_0_4px_-2px_rgba(0,0,0,0.1)]",o&&u&&"z-30",e.sortable&&!s&&"cursor-pointer hover:bg-background-hover",s&&"cursor-not-allowed opacity-60",c?"font-bold text-text-primary":"font-medium text-text-secondary"),onClick:()=>!s&&e.sortable&&r(e.id),role:"columnheader","aria-sort":c?l==="asc"?"ascending":"descending":"none","aria-disabled":s,style:Ku(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(I,{name:l==="asc"?"CaretUp":"CaretDown",size:14,weight:"bold",className:"text-text-primary"}):jsxRuntime.jsx(I,{name:"CaretUpDown",size:12,className:"text-text-secondary opacity-40"})})]})})}function yk({column:e,row:t,rowIndex:r,columnIndex:o,isHovered:n,density:a="default",className:i,stickyFirstColumn:s}){let c=s&&o===0,l=xk(t,e),u={isLoading:false,isHovered:n,rowIndex:r,columnIndex:o,density:a},d;if(e.cell){let m=e.cell,p=typeof e.cellProps=="function"?e.cellProps(l,t):e.cellProps;d=jsxRuntime.jsx(m,{value:l,row:t,context:u,...p});}else e.render?d=e.render(l,t,u):d=jsxRuntime.jsx("span",{className:"truncate",children:l?.toString()??""});if(e.popover){let m=e.popover,p,g="top",f=false,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,g=m.placement||"top",f=m.showArrow??false,b=m.trigger||"hover"),d=jsxRuntime.jsxs(reactAriaComponents.DialogTrigger,{...b==="hover"?{trigger:"longPress"}:{},children:[jsxRuntime.jsx("div",{className:"cursor-help",children:d}),jsxRuntime.jsx(Ze,{placement:g,showArrow:f,children:jsxRuntime.jsx("div",{className:"p-2",children:p})})]});}return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("flex items-center border-b border-border-default bg-background-surface",e.noCellPadding?"":Uu[a],Yu[e.align||"left"],c&&"sticky left-0 z-10 shadow-[2px_0_4px_-2px_rgba(0,0,0,0.1)]",i),role:"cell",style:Ku(e),children:d})}function vk({column:e,rowIndex:t,columnIndex:r,density:o="default",stickyFirstColumn:n}){let a=n&&r===0,i={isLoading:true,rowIndex:t,columnIndex:r,density:o},s;if(e.cell){let c=e.cell,l=typeof e.cellProps=="function"?e.cellProps(null,{}):e.cellProps;s=jsxRuntime.jsx(c,{value:null,row:{},context:i,...l});}else e.render?s=e.render(null,{},i):s=jsxRuntime.jsx(J,{className:"h-4 w-full max-w-[200px]"});return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("flex items-center border-b border-border-default bg-background-surface",e.noCellPadding?"":Uu[o],Yu[e.align||"left"],a&&"sticky left-0 z-10 shadow-[2px_0_4px_-2px_rgba(0,0,0,0.1)]"),role:"cell",style:Ku(e),children:s})}function Ck(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 Nx({columns:e,row:t,rowIndex:r,density:o="default",onClick:n,stickyFirstColumn:a}){let[i,s]=Ee.useState(false),c=Ee.useCallback(l=>{if(!n)return;let u=l.target,d=l.currentTarget;Ck(u,d)||n(t);},[n,t]);return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("contents group",n&&"cursor-pointer"),role:"row",onClick:c,onMouseEnter:()=>s(true),onMouseLeave:()=>s(false),children:e.map((l,u)=>jsxRuntime.jsx(yk,{column:l,row:t,rowIndex:r,columnIndex:u,isHovered:i,density:o,className:n?"group-hover:bg-background-hover":"",stickyFirstColumn:a},l.id))})}function Tx({columns:e,rowIndex:t,density:r="default",stickyFirstColumn:o}){return jsxRuntime.jsx("div",{className:"contents",role:"row",children:e.map((n,a)=>jsxRuntime.jsx(vk,{column:n,rowIndex:t,columnIndex:a,density:r,stickyFirstColumn:o},n.id))})}function kx({columns:e,data:t,className:r,density:o="default",width:n="full",height:a,maxHeight:i,layout:s="auto",mobileRenderer:c="auto",customMobileRowRender:l,mobileBreakpoint:u="md",isLoading:d=false,loadingState:m,loadingRowCount:p=5,onLoadMore:g,hasMore:f=false,enableVirtualization:b,estimatedRowHeight:x,loadingIndicator:v,stickyHeader:C=false,stickyFirstColumn:y=false,onRowClick:S,getRowId:k,hideHeader:R=false,sortConfig:E,onSort:D,"aria-label":L,enableColumnReorder:V=false,columnOrder:A,onColumnOrderChange:N}){let[T,z]=Ee.useState(null),W=E!==void 0,F=W?E:T,K=Ee.useRef(null),X=Ee.useMemo(()=>e.map(te=>te.id),[e]),[G,Y]=Ee.useState(X),P=A!==void 0,w=P?A:G;Ee.useEffect(()=>{P||Y(te=>{let ce=e.map(ee=>ee.id),_=new Set(ce),q=new Set(te),U=te.filter(ee=>_.has(ee)),ae=ce.filter(ee=>!q.has(ee));return [...U,...ae]});},[e,P]);let B=Ee.useCallback(te=>{P||Y(te),N?.(te);},[P,N]),M=Ee.useMemo(()=>{if(!V&&!A)return e;let te=new Map(e.map(ce=>[ce.id,ce]));return w.map(ce=>te.get(ce)).filter(ce=>ce!==void 0)},[e,w,V,A]),h=g?co({items:t,onLoadMore:g,hasMore:f,isLoading:d,loadingState:m,enableVirtualization:b,estimatedItemSize:x||(o==="compact"?40:o==="relaxed"?60:48),overscan:5}):null,O=h?.scrollRef??K,{loadMoreRef:H,virtualizer:j,virtualItems:oe,isLoadingMore:me,computedLoadingState:Z}=h||{},{gridTemplateColumns:ne,totalMinWidth:Te}=Ee.useMemo(()=>{let te=0;return {gridTemplateColumns:M.map(_=>{if(_.minWidth?te+=typeof _.minWidth=="number"?_.minWidth:0:_.width&&typeof _.width=="number"&&(te+=_.width),_.width)return typeof _.width=="number"?`${_.width}px`:_.width;if(_.flex)return `${_.flex}fr`;if(_.minWidth&&_.maxWidth){let q=typeof _.minWidth=="number"?`${_.minWidth}px`:_.minWidth,U=typeof _.maxWidth=="number"?`${_.maxWidth}px`:_.maxWidth;return `minmax(${q}, ${U})`}return _.minWidth?`minmax(${typeof _.minWidth=="number"?`${_.minWidth}px`:_.minWidth}, 1fr)`:_.maxWidth?`minmax(0, ${typeof _.maxWidth=="number"?`${_.maxWidth}px`:_.maxWidth})`:"1fr"}).join(" "),totalMinWidth:te}},[M]),ie=Ee.useCallback(te=>{if(!e.find(q=>q.id===te)?.sortable)return;let _;F?.columnId===te?_={columnId:te,direction:F.direction==="asc"?"desc":"asc"}:_={columnId:te,direction:"asc"},W||z(_),D?.(_);},[e,F,D,W]),ue=Z==="loading"||d&&t.length===0,ge={};a?(ge.height=typeof a=="number"?`${a}px`:a,ge.overflowY="auto"):i?(ge.maxHeight=typeof i=="number"?`${i}px`:i,ge.overflowY="auto"):g&&(ge.height="600px",ge.overflowY="auto");let $=tailwindMerge.twMerge(gk[n],!g&&(s==="responsive"?"overflow-x-auto scrollbar-visible":"overflow-auto scrollbar-visible"),r),se=vx(u),Ne=c!=="none",Ve=(te,ce)=>Ne?c==="custom"&&l?l(te,ce):jsxRuntime.jsx(c==="cards"?yl:hl,{row:te,columns:M,density:o,isLoading:d,onClick:S?()=>S(te):void 0}):null,De=j?oe?.map(te=>({virtualItem:te,row:t[te.index],index:te.index}))||[]:t.map((te,ce)=>({row:te,index:ce,virtualItem:null}));return jsxRuntime.jsxs("div",{ref:O,className:$,style:{...ge,position:j?"relative":void 0},children:[jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("grid border-separate border-spacing-0",bk[s],n==="auto"?"inline-grid w-auto":"w-full",Ne&&se.desktop),role:"table","aria-label":L,style:{gridTemplateColumns:ne,minWidth:Te>0?`${Te}px`:void 0},children:[!R&&(V?jsxRuntime.jsx(wx,{columns:e,columnOrder:w,onColumnOrderChange:B,sortConfig:F,onSort:ie,stickyHeader:C,stickyFirstColumn:y,density:o,isLoading:ue}):jsxRuntime.jsx("div",{className:"contents",role:"rowgroup",children:M.map((te,ce)=>jsxRuntime.jsx(hk,{column:te,sortConfig:F,onSort:ie,stickyHeader:C,stickyFirstColumn:y,isFirstColumn:ce===0,density:o,isLoading:ue},te.id))})),j?jsxRuntime.jsx("div",{className:"col-span-full",style:{gridColumn:"1 / -1",height:`${j.getTotalSize()}px`,position:"relative"},role:"rowgroup",children:ue?Array.from({length:p}).map((te,ce)=>jsxRuntime.jsx("div",{className:"contents",children:jsxRuntime.jsx(Tx,{columns:M,rowIndex:ce,density:o,stickyFirstColumn:y})},`loading-${ce}`)):t.length>0?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[De.map(({row:te,index:ce,virtualItem:_})=>{if(!te||!_)return null;let q=k?k(te):`row-${ce}`;return jsxRuntime.jsx("div",{style:{position:"absolute",top:0,left:0,width:"100%",display:"grid",gridTemplateColumns:ne,transform:`translateY(${_.start}px)`},"data-index":_.index,ref:j.measureElement,children:jsxRuntime.jsx(Nx,{columns:M,row:te,rowIndex:ce,density:o,onClick:S,stickyFirstColumn:y})},q)}),me&&jsxRuntime.jsx("div",{style:{position:"absolute",top:`${j.getTotalSize()}px`,left:0,width:"100%"},children:v||jsxRuntime.jsx(tr,{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:ue?Array.from({length:p}).map((te,ce)=>jsxRuntime.jsx(Tx,{columns:M,rowIndex:ce,density:o,stickyFirstColumn:y},`loading-${ce}`)):t.length>0?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[De.map(({row:te,index:ce})=>{if(!te)return null;let _=k?k(te):`row-${ce}`;return jsxRuntime.jsx(Nx,{columns:M,row:te,rowIndex:ce,density:o,onClick:S,stickyFirstColumn:y},_)}),me&&jsxRuntime.jsx("div",{className:"col-span-full",style:{gridColumn:"1 / -1"},children:v||jsxRuntime.jsx(tr,{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"})})})]}),Ne&&jsxRuntime.jsx("div",{className:se.mobile,children:ue?Array.from({length:p}).map((te,ce)=>jsxRuntime.jsx(Cx,{density:o},`mobile-loading-${ce}`)):t.length>0?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[De.map(({row:te,index:ce})=>{if(!te)return null;let _=k?k(te):`mobile-row-${ce}`;return jsxRuntime.jsx("div",{className:"border-b border-border-default last:border-b-0",children:Ve(te,ce)},_)}),me&&(v||jsxRuntime.jsx(tr,{state:"loading-more"}))]}):jsxRuntime.jsx("div",{className:"py-12 text-center text-text-secondary",children:"No data available"})}),g&&f&&!ue&&(j?jsxRuntime.jsx("div",{ref:H,style:{position:"absolute",top:`${j.getTotalSize()}px`,left:0,width:"100%",height:1}}):jsxRuntime.jsx("div",{ref:H,className:"h-px w-full"}))]})}function Rx({status:e,alertCount:t,showCount:r=false,isLoading:o,size:n="sm",shape:a="pill",...i}){if(o)return jsxRuntime.jsx(J,{className:"inline-flex h-6 w-20"});let s={healthy:"success",warning:"warning",error:"error",unknown:"neutral"},c={healthy:"Healthy",warning:"Warning",error:"Error",unknown:"Unknown"},l=e==="warning"||e==="error",u=r&&t?`${c[e]} (${t})`:c[e];return jsxRuntime.jsx(Je,{variant:s[e],size:n,shape:a,dot:l,dotPulse:l,...i,children:u})}var wk={battery:"BatteryHigh",charger:"ChargingStation",thermostat:"ThermometerSimple",inverter:"Power",vehicle:"Car",meter:"Gauge",gateway:"WifiHigh",other:"Cube",unknown:"Question"},Nk={battery:"Battery",charger:"Charger",thermostat:"Thermostat",inverter:"Inverter",vehicle:"Vehicle",meter:"Meter",gateway:"Gateway",other:"Other",unknown:"Unknown"};function Mx({deviceType:e,iconName:t,size:r="md",showLabel:o=false,className:n}){let a=t||(e?wk[e]:"Question"),i=e?Nk[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(I,{name:a,size:r}),o&&i&&jsxRuntime.jsx("span",{className:"text-xs text-text-secondary",children:i})]})}function ii({children:e,title:t,headerContent:r,titleAlign:o="left",hideCloseIcon:n=false,hasBackArrow:a=false,onBack:i,isOpen:s,slideInFrom:c="right",transparentOverlay:l=false,onClose:u,className:d,primaryAction:m,secondaryAction:p,tertiaryAction:g,footerContent:f,contentPadding:b=true,maxWidth:x="400px"}){if(!s)return null;let v=t||r,C=m||p||g||f;return jsxRuntime.jsx(mr,{children:jsxRuntime.jsx(Ut,{isOpen:s,onOpenChange:y=>!y&&u?.(),isDismissable:true,transparent:l,children:jsxRuntime.jsx(reactAriaComponents.Modal,{className:"outline-none focus:outline-none focus-visible:outline-none ring-0 focus:ring-0 focus-visible:ring-0",children:jsxRuntime.jsxs(reactAriaComponents.Dialog,{className:tailwindMerge.twMerge("fixed top-0 bottom-0 flex flex-col bg-background-surface shadow-xl overflow-hidden",c==="right"?"right-0":"left-0",c==="right"?"animate-in slide-in-from-right duration-300 ease-out":"animate-in slide-in-from-left duration-300 ease-out","data-[exiting]:animate-out",c==="right"?"data-[exiting]:slide-out-to-right":"data-[exiting]:slide-out-to-left","data-[exiting]:duration-200 data-[exiting]:ease-in","outline-none focus-visible:outline focus-visible:outline-2 focus-visible:outline-action-default focus-visible:outline-offset-0",d),style:{maxWidth:x,width:"100%"},children:[v&&(a&&i?jsxRuntime.jsx(Ct,{title:t,headerContent:r,titleAlign:o,hideCloseIcon:n,hasBackArrow:true,onBack:i,onClose:u}):jsxRuntime.jsx(Ct,{title:t,headerContent:r,titleAlign:o,hideCloseIcon:n,onClose:u})),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:g,footerContent:f})]})})})})}ii.displayName="Drawer";var Dk={sm:"gap-4 px-6 py-8",md:"gap-5 px-8 py-12",lg:"gap-6 px-10 py-16"},Mk={sm:"xs",md:"sm",lg:"md"},Ek={sm:et("bodySm"),md:et("bodySm"),lg:et("bodyMd")},Lk={sm:"h-10 w-10",md:"h-12 w-12",lg:"h-16 w-16"},Ak={sm:20,md:24,lg:32},Ik={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"},Fk={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 Ax({icon:e,title:t,description:r,primaryAction:o,secondaryAction:n,actions:a,size:i="md",alignment:s="center",variant:c="default",spotlightPattern:l="mesh",fullHeight:u=false,className:d}){let m=i==="sm"?"sm":"md",p=c==="spotlight",g=p?{background:Fk[l]}:void 0,f=()=>a?jsxRuntime.jsx("div",{className:"empty-state-actions mt-2 flex flex-wrap items-center gap-3",children:a}):o||n?jsxRuntime.jsxs("div",{className:"empty-state-actions mt-2 flex flex-col gap-3",children:[o&&(o.href?jsxRuntime.jsx(Q,{variant:"secondary",size:m,onPress:o.onPress,isDisabled:o.isDisabled,isLoading:o.isLoading,href:o.href,children:o.label}):jsxRuntime.jsx(Q,{variant:"secondary",size:m,onPress:o.onPress,isDisabled:o.isDisabled,isLoading:o.isLoading,children:o.label})),n&&jsxRuntime.jsx(Ue,{href:n.href||"#",variant:"muted",onPress:n.onPress,className:et("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",Dk[i],Ik[s],u?"h-full justify-center":"",p?"relative overflow-hidden":"",d),style:g,children:[e&&jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("flex items-center justify-center rounded-full border border-border-muted bg-background-muted text-text-secondary",Lk[i]),children:jsxRuntime.jsx(I,{name:e,size:Ak[i]})}),jsxRuntime.jsx(Et,{size:Mk[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",Ek[i]),children:r}),f()]})}function Ix({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(Je,{variant:i[e],size:o,shape:n,...a,children:s[e]});return t?jsxRuntime.jsx(Lt,{content:t,children:c}):c}function Bx({value:e,onChange:t,onUrlChange:r,accept:o="image/*",maxSize:n,isDisabled:a=false,onUpload:i,className:s,showPreview:c=true,placeholder:l="Drop files here or click to browse"}){let[u,d]=Ee.useState(false),[m,p]=Ee.useState(false),[g,f]=Ee.useState(null),[b,x]=Ee.useState(e),v=Ee.useRef(null),C=async k=>{if(f(null),n&&k.size>n){f(`File size must be less than ${(n/1024/1024).toFixed(2)}MB`);return}if(c&&k.type.startsWith("image/")){let R=new FileReader;R.onloadend=()=>{x(R.result);},R.readAsDataURL(k);}if(i){p(true);try{let R=await i(k);x(R),r?.(R);}catch(R){f("Failed to upload file"),console.error("Upload error:",R);}finally{p(false);}}t?.(k,b);},y=async k=>{try{let R=k.items;if(R.length>0){let E=R[0];if(E.kind==="file"){let D=await E.getFile();D&&C(D);}}}catch(R){f("Failed to upload file"),console.error("Upload error:",R);}finally{d(false);}},S=()=>{x(void 0),f(null),t?.(null),r?.(""),v.current&&(v.current.value="");};return jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("w-full",s),children:[jsxRuntime.jsxs(reactAriaComponents.DropZone,{className:tailwindMerge.twMerge("relative flex min-h-[200px] w-full flex-col items-center justify-center rounded-lg border-2 border-dashed transition-colors",u?"border-action-brand bg-action-brand/5":"border-border-muted hover:border-border-default",a&&"pointer-events-none opacity-50",g&&"border-feedback-error-border bg-feedback-error-background/50"),onDrop:y,onDropEnter:()=>d(true),onDropExit:()=>d(false),children:[b?jsxRuntime.jsxs("div",{className:"relative flex h-full w-full items-center justify-center p-4",children:[c&&(b.startsWith("data:image")||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:k=>{let R=Array.from(k||[]);R.length>0&&C(R[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..."})]})})]}),g&&jsxRuntime.jsx("p",{className:"mt-2 text-sm text-feedback-error-text",children:g})]})}function zx({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(Je,{variant:s,size:n,shape:a,...i,children:c})}function na(e){return jsxRuntime.jsx(reactAriaComponents.Form,{validationBehavior:"aria",...e,className:tailwindMerge.twMerge("flex flex-col gap-6",e.className)})}function Hx({placeholder:e="Search...",value:t,onChange:r,isOpen:o,onOpenChange:n,trigger:a,children:i,showShortcutHint:s=true,showInput:c=true,className:l}){let[u,d]=Ee.useState(false),m=kt("(max-width: 767px)"),p=o!==void 0?o:u,g=Ee.useCallback(v=>{n?n(v):d(v);},[n]);Ee.useEffect(()=>{let v=C=>{(C.metaKey||C.ctrlKey)&&C.key==="k"&&(C.preventDefault(),g(!p)),C.key==="Escape"&&p&&g(false);};return window.addEventListener("keydown",v),()=>window.removeEventListener("keydown",v)},[p,g]);let f=Ee.useCallback(v=>{r?.(v);},[r]),b=jsxRuntime.jsxs("button",{type:"button",className:"flex items-center gap-2 px-3 py-2 text-sm text-text-secondary hover:text-text-primary hover:bg-background-hover rounded-md transition-colors","aria-label":"Open search",children:[jsxRuntime.jsx(I,{name:"MagnifyingGlass",size:18}),!m&&s&&jsxRuntime.jsxs("span",{className:"hidden md:flex items-center gap-1 text-xs",children:[jsxRuntime.jsx("kbd",{className:"px-1.5 py-0.5 bg-background-muted border border-border-muted rounded text-xs",children:navigator.platform.includes("Mac")?"\u2318":"Ctrl"}),jsxRuntime.jsx("kbd",{className:"px-1.5 py-0.5 bg-background-muted border border-border-muted rounded text-xs",children:"K"})]})]}),x=a===null||Ee.isValidElement(a)&&a.type===Ee.Fragment&&!a.props.children;return m?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[!x&&(a?jsxRuntime.jsx("button",{type:"button",onClick:()=>g(true),className:"appearance-none bg-transparent border-none p-0 cursor-pointer",children:a}):jsxRuntime.jsx("button",{type:"button",onClick:()=>g(true),className:"appearance-none bg-transparent border-none p-0 cursor-pointer",children:b})),jsxRuntime.jsx(Xe,{isOpen:p,onClose:()=>g(false),hideCloseIcon:false,contentPadding:false,maxHeight:"90vh",children:jsxRuntime.jsxs("div",{className:"flex flex-col h-full",children:[c&&jsxRuntime.jsx("div",{className:"p-4 border-b border-border-muted flex-shrink-0",children:jsxRuntime.jsx(lr,{value:t,onChange:f,placeholder:e,showSearchIcon:true,isClearable:!!t,onClear:()=>r?.(""),reserveErrorSpace:false,className:l,autoFocus:true})}),jsxRuntime.jsx("div",{className:"flex-1 min-h-0 overflow-hidden",children:i})]})})]}):x?null:jsxRuntime.jsxs(reactAriaComponents.DialogTrigger,{isOpen:p,onOpenChange:g,children:[a||b,jsxRuntime.jsx(Ze,{placement:"bottom",className:"w-[600px] max-w-[90vw] bg-background-surface shadow-xl border border-border-default rounded-lg overflow-hidden",children:jsxRuntime.jsxs("div",{className:"flex flex-col",children:[c&&jsxRuntime.jsx("div",{className:"p-4 border-b border-border-muted",children:jsxRuntime.jsx(lr,{value:t,onChange:f,placeholder:e,showSearchIcon:true,isClearable:!!t,onClear:()=>r?.(""),reserveErrorSpace:false,className:l,autoFocus:true})}),jsxRuntime.jsx("div",{className:"max-h-[500px] overflow-hidden",children:i})]})})]})}function Ux({placeholder:e="Search...",value:t,onChange:r,isOpen:o,onOpenChange:n,children:a,maxHeight:i="400px",variant:s="default",className:c}){let[l,u]=Ee.useState(false),d=kt("(max-width: 767px)"),m=Ee.useRef(null),p=Ee.useRef(null),g=o!==void 0?o:l,f=Ee.useCallback(L=>{n?n(L):u(L);},[n]);Ee.useEffect(()=>{let L=V=>{(V.metaKey||V.ctrlKey)&&V.key==="k"&&(V.preventDefault(),f(!g)),V.key==="Escape"&&g&&f(false);};return window.addEventListener("keydown",L),()=>window.removeEventListener("keydown",L)},[g,f]),Ee.useEffect(()=>{g&&!d&&m.current&&setTimeout(()=>{m.current?.querySelector("input")?.focus();},0);},[g,d]),Ee.useEffect(()=>{if(!g||d)return;let L=V=>{let A=V.target,N=m.current?.contains(A),T=p.current?.contains(A);!N&&!T&&f(false);};return document.addEventListener("mousedown",L,true),()=>document.removeEventListener("mousedown",L,true)},[g,d,f]);let b=L=>{r?.(L);},x=Ee.useCallback(()=>{f(false);},[f]),v=Ee.useCallback(()=>{r?.("");},[r]),[C,y]=Ee.useState(null);Ee.useEffect(()=>{if(g&&!d&&m.current){let L=null,V=()=>{let N=m.current?.getBoundingClientRect();N&&y({top:N.bottom+8,left:N.left,width:N.width});},A=()=>{L===null&&(L=requestAnimationFrame(()=>{V(),L=null;}));};return V(),window.addEventListener("resize",A),window.addEventListener("scroll",A,true),()=>{window.removeEventListener("resize",A),window.removeEventListener("scroll",A,true),L!==null&&cancelAnimationFrame(L);}}},[g,d]);let S=Ee.useCallback(()=>{f(true);},[f]);if(d)return jsxRuntime.jsxs("div",{className:c,children:[jsxRuntime.jsx("button",{type:"button",onClick:S,className:"flex items-center justify-center w-10 h-10 rounded-lg hover:bg-background-hover transition-colors","aria-label":"Open search",children:jsxRuntime.jsx(I,{name:"MagnifyingGlass",size:"md"})}),jsxRuntime.jsxs(Xe,{isOpen:g,onClose:x,contentPadding:false,height:"80vh",children:[jsxRuntime.jsxs("div",{className:"flex items-center gap-2 px-4 pt-4",children:[jsxRuntime.jsx("div",{className:"flex-1",children:jsxRuntime.jsx(lr,{value:t,onChange:b,placeholder:e,showSearchIcon:true,isClearable:!!t,onClear:v,reserveErrorSpace:false,autoFocus:true})}),jsxRuntime.jsx(Q,{variant:"icon",onPress:x,"aria-label":"Close search",className:"flex-shrink-0",children:jsxRuntime.jsx(I,{name:"X",size:"md"})})]}),jsxRuntime.jsx("div",{className:"mt-4",children:a})]})]},"mobile");let k=L=>{let A=L.target.tagName==="INPUT";if(L.key==="ArrowDown"&&g&&A){L.preventDefault();let N=p.current?.querySelector("[data-search-result]");N&&N.focus();}},R=L=>{let V=L.target;if(!V.hasAttribute("data-search-result"))return;let N=Array.from(p.current?.querySelectorAll("[data-search-result]")||[]),T=N.indexOf(V);if(L.key==="ArrowDown"){L.preventDefault(),L.stopPropagation();let z=Math.min(T+1,N.length-1);N[z]?.focus();}else if(L.key==="ArrowUp")if(L.preventDefault(),L.stopPropagation(),T===0)m.current?.querySelector("input")?.focus();else {let z=Math.max(T-1,0);N[z]?.focus();}else L.key==="Escape"&&(L.preventDefault(),L.stopPropagation(),f(false),m.current?.querySelector("input")?.focus());},E=g&&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:R,children:jsxRuntime.jsx("div",{className:"bg-background-surface shadow-2xl border border-border-default rounded-lg overflow-hidden animate-in fade-in zoom-in-95 duration-200",children:jsxRuntime.jsx("div",{className:"overflow-y-auto",style:{maxHeight:i},children:a})})}),document.body):null,D=s==="elevated"?"bg-background-muted/50 border-border-subtle/50 focus-within:bg-background-body focus-within:border-border-focus focus-within:shadow-md backdrop-blur-sm transition-all duration-200":"";return jsxRuntime.jsxs("div",{ref:m,className:`relative w-full ${c||""}`,onKeyDown:k,children:[jsxRuntime.jsx(lr,{value:t,onChange:b,placeholder:e,showSearchIcon:true,isClearable:!!t,onClear:()=>r?.(""),reserveErrorSpace:false,className:D,onFocus:()=>f(true)}),E]},"desktop")}function Yx({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(I,{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 Jx({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 qx({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 Zx({id:e,title:t,subtitle:r,metadata:o,icon:n,customIcon:a,onSelect:i,isFocused:s=false,className:c,testId:l}){return jsxRuntime.jsxs("div",{role:"option",tabIndex:0,onClick:()=>{i?.(e);},onKeyDown:m=>{let p=m.currentTarget;switch(m.key){case "Enter":case " ":{m.preventDefault(),i?.(e);break}case "ArrowDown":{m.preventDefault();let g=Array.from(document.querySelectorAll("[data-search-result]")),f=g.indexOf(p);f!==-1&&f<g.length-1&&g[f+1].focus();break}case "ArrowUp":{m.preventDefault();let g=Array.from(document.querySelectorAll("[data-search-result]")),f=g.indexOf(p);if(f>0)g[f-1].focus();else {let b=document.querySelector('input[type="text"][placeholder*="Search"]');b&&b.focus();}break}case "Escape":{m.preventDefault();let g=document.querySelector('input[type="text"][placeholder*="Search"]');g&&g.focus();break}}},"data-testid":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(I,{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(I,{name:"ArrowRight",size:16,className:"text-text-secondary"})})]})}function Xx({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 Qx({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:`
|
|
95
|
+
`}})]})}var as={prefix:String(Math.round(Math.random()*1e10)),current:0},Nf=Ee__namespace.default.createContext(as),pS=Ee__namespace.default.createContext(false);var mS=!!(typeof window<"u"&&window.document&&window.document.createElement),hd=new WeakMap;function fS(e=false){let t=Ee.useContext(Nf),r=Ee.useRef(null);if(r.current===null&&!e){var o,n;let a=(n=Ee__namespace.default.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||n===void 0||(o=n.ReactCurrentOwner)===null||o===void 0?void 0:o.current;if(a){let i=hd.get(a);i==null?hd.set(a,{id:t.current,state:a.memoizedState}):a.memoizedState!==i.state&&(t.current=i.id,hd.delete(a));}r.current=++t.current;}return r.current}function gS(e){let t=Ee.useContext(Nf);t===as&&!mS&&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=fS(!!e),o=t===as&&process.env.NODE_ENV==="test"?"react-aria":`react-aria${t.prefix}`;return e||`${o}-${r}`}function bS(e){let t=Ee__namespace.default.useId(),[r]=Ee.useState(is()),o=r||process.env.NODE_ENV==="test"?"react-aria":`react-aria${as.prefix}`;return e||`${o}-${t}`}typeof Ee__namespace.default.useId=="function"?bS:gS;function hS(){return false}function yS(){return true}function vS(e){return ()=>{}}function is(){return typeof Ee__namespace.default.useSyncExternalStore=="function"?Ee__namespace.default.useSyncExternalStore(vS,hS,yS):Ee.useContext(pS)}function kf(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function ss(e,t,r){kf(e,t),t.set(e,r);}var CS=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),SS=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function vd(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 CS.has(r.script)}let t=e.split("-")[0];return SS.has(t)}var Pf=Symbol.for("react-aria.i18n.locale");function Rf(){let e=typeof window<"u"&&window[Pf]||typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e]);}catch{e="en-US";}return {locale:e,direction:vd(e)?"rtl":"ltr"}}var Cd=Rf(),Ia=new Set;function Tf(){Cd=Rf();for(let e of Ia)e(Cd);}function Df(){let e=is(),[t,r]=Ee.useState(Cd);return Ee.useEffect(()=>(Ia.size===0&&window.addEventListener("languagechange",Tf),Ia.add(r),()=>{Ia.delete(r),Ia.size===0&&window.removeEventListener("languagechange",Tf);}),[]),e?{locale:typeof window<"u"&&window[Pf]||"en-US",direction:"ltr"}:t}var PS=Ee__namespace.default.createContext(null);function Sd(){let e=Df();return Ee.useContext(PS)||e}function ls(e,t){return e-t*Math.floor(e/t)}var Mf=1721426;function cs(e,t,r,o){t=us(e,t);let n=t-1,a=-2;return r<=2?a=0:ds(t)&&(a=-1),Mf-1+365*n+Math.floor(n/4)-Math.floor(n/100)+Math.floor(n/400)+Math.floor((367*r-362)/12+a+o)}function ds(e){return e%4===0&&(e%100!==0||e%400===0)}function us(e,t){return e==="BC"?1-t:t}function RS(e){let t="AD";return e<=0&&(t="BC",e=1-e),[t,e]}var DS={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]},ir=class{fromJulianDay(t){let r=t,o=r-Mf,n=Math.floor(o/146097),a=ls(o,146097),i=Math.floor(a/36524),s=ls(a,36524),c=Math.floor(s/1461),l=ls(s,1461),u=Math.floor(l/365),d=n*400+i*100+c*4+u+(i!==4&&u!==4?1:0),[m,p]=RS(d),g=r-cs(m,p,1,1),f=2;r<cs(m,p,3,1)?f=0:ds(p)&&(f=1);let b=Math.floor(((g+f)*12+373)/367),x=r-cs(m,p,b,1)+1;return new qo(m,p,b,x)}toJulianDay(t){return cs(t.era,t.year,t.month,t.day)}getDaysInMonth(t){return DS[ds(t.year)?"leapyear":"standard"][t.month-1]}getMonthsInYear(t){return 12}getDaysInYear(t){return ds(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 Nd(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 kd(e,t){return e.calendar.toJulianDay(e)-t.calendar.toJulianDay(t)}function Lf(e,t){return Ef(e)-Ef(t)}function Ef(e){return e.hour*36e5+e.minute*6e4+e.second*1e3+e.millisecond}var wd=null;function Zo(){return wd==null&&(wd=new Intl.DateTimeFormat().resolvedOptions().timeZone),wd}function ho(e){e=jt(e,new ir);let t=us(e.era,e.year);return Ff(t,e.month,e.day,e.hour,e.minute,e.second,e.millisecond)}function Ff(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 Pd(e,t){if(t==="UTC")return 0;if(e>0&&t===Zo()&&true)return new Date(e).getTimezoneOffset()*-6e4;let{year:r,month:o,day:n,hour:a,minute:i,second:s}=Bf(e,t);return Ff(r,o,n,a,i,s,0)-Math.floor(e/1e3)*1e3}var Af=new Map;function Bf(e,t){let r=Af.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"}),Af.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 If=864e5;function ES(e,t,r,o){return (r===o?[r]:[r,o]).filter(a=>LS(e,t,a))}function LS(e,t,r){let o=Bf(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 br(e,t,r="compatible"){let o=Lr(e);if(t==="UTC")return ho(o);if(t===Zo()&&r==="compatible"&&true){o=jt(o,new ir);let c=new Date,l=us(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=ho(o),a=Pd(n-If,t),i=Pd(n+If,t),s=ES(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 Rd(e,t,r="compatible"){return new Date(br(e,t,r))}function sr(e,t){let r=Pd(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(),u=o.getUTCMilliseconds();return new Gn(n<1?"BC":"AD",n<1?-n+1:n,a,i,t,r,s,c,l,u)}function ps(e,t){return sr(e.getTime(),t)}function Lr(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 Fa(e.calendar,e.era,e.year,e.month,e.day,r,o,n,a)}function jt(e,t){if(Nd(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,qr(o),o}function Dd(e,t,r){if(e instanceof Gn)return e.timeZone===t?e:Md(e,t);let o=br(e,t,r);return sr(o,t)}function Vf(e){let t=ho(e)-e.offset;return new Date(t)}function Md(e,t){let r=ho(e)-e.offset;return jt(sr(r,t),e.calendar)}var Ba=36e5;function za(e,t){let r=e.copy(),o="hour"in r?BS(r,t):0;Ed(r,t.years||0),r.calendar.balanceYearMonth&&r.calendar.balanceYearMonth(r,e),r.month+=t.months||0,Ld(r),zf(r),r.day+=(t.weeks||0)*7,r.day+=t.days||0,r.day+=o,IS(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 Ed(e,t){var r,o;!((r=(o=e.calendar).isInverseEra)===null||r===void 0)&&r.call(o,e)&&(t=-t),e.year+=t;}function Ld(e){for(;e.month<1;)Ed(e,-1),e.month+=e.calendar.getMonthsInYear(e);let t=0;for(;e.month>(t=e.calendar.getMonthsInYear(e));)e.month-=t,Ed(e,1);}function IS(e){for(;e.day<1;)e.month--,Ld(e),e.day+=e.calendar.getDaysInMonth(e);for(;e.day>e.calendar.getDaysInMonth(e);)e.day-=e.calendar.getDaysInMonth(e),e.month++,Ld(e);}function zf(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 qr(e){e.calendar.constrainDate&&e.calendar.constrainDate(e),e.year=Math.max(1,Math.min(e.calendar.getYearsInEra(e),e.year)),zf(e);}function Of(e){let t={};for(let r in e)typeof e[r]=="number"&&(t[r]=-e[r]);return t}function Ad(e,t){return za(e,Of(t))}function fs(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),qr(r),r}function Va(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),Hf(r),r}function FS(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 Hf(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 BS(e,t){return e.hour+=t.hours||0,e.minute+=t.minutes||0,e.second+=t.seconds||0,e.millisecond+=t.milliseconds||0,FS(e)}function gs(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=Zr(c,r,0,s.length-1,o?.round),n.era=s[c],qr(n);break}case "year":var a,i;!((a=(i=n.calendar).isInverseEra)===null||a===void 0)&&a.call(i,n)&&(r=-r),n.year=Zr(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=Zr(e.month,r,1,e.calendar.getMonthsInYear(e),o?.round);break;case "day":n.day=Zr(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),qr(n),n}function Id(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=Zr(a,r,i,s,o?.round);break}case "minute":n.minute=Zr(e.minute,r,0,59,o?.round);break;case "second":n.second=Zr(e.second,r,0,59,o?.round);break;case "millisecond":n.millisecond=Zr(e.millisecond,r,0,999,o?.round);break;default:throw new Error("Unsupported field "+t)}return n}function Zr(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 Fd(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=za(Lr(e),{years:t.years,months:t.months,weeks:t.weeks,days:t.days});r=br(n,e.timeZone);}else r=ho(e)-e.offset;r+=t.milliseconds||0,r+=(t.seconds||0)*1e3,r+=(t.minutes||0)*6e4,r+=(t.hours||0)*36e5;let o=sr(r,e.timeZone);return jt(o,e.calendar)}function Wf(e,t){return Fd(e,Of(t))}function Gf(e,t,r,o){switch(t){case "hour":{let n=0,a=23;if(o?.hourCycle===12){let g=e.hour>=12;n=g?12:0,a=g?23:11;}let i=Lr(e),s=jt(Va(i,{hour:n}),new ir),c=[br(s,e.timeZone,"earlier"),br(s,e.timeZone,"later")].filter(g=>sr(g,e.timeZone).day===s.day)[0],l=jt(Va(i,{hour:a}),new ir),u=[br(l,e.timeZone,"earlier"),br(l,e.timeZone,"later")].filter(g=>sr(g,e.timeZone).day===l.day).pop(),d=ho(e)-e.offset,m=Math.floor(d/Ba),p=d%Ba;return d=Zr(m,r,Math.floor(c/Ba),Math.floor(u/Ba),o?.round)*Ba+p,jt(sr(d,e.timeZone),e.calendar)}case "minute":case "second":case "millisecond":return Id(e,t,r,o);case "era":case "year":case "month":case "day":{let n=gs(Lr(e),t,r,o),a=br(n,e.timeZone);return jt(sr(a,e.timeZone),e.calendar)}default:throw new Error("Unsupported field "+t)}}function Uf(e,t,r){let o=Lr(e),n=Va(fs(o,t),t);if(n.compare(o)===0)return e;let a=br(n,e.timeZone,r);return jt(sr(a,e.timeZone),e.calendar)}var VS=/^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})$/;var zS=/^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})(?:T(\d{2}))?(?::(\d{2}))?(?::(\d{2}))?(\.\d+)?(?:(?:([+-]\d{2})(?::?(\d{2}))?)|Z)$/;function Oa(e){let t=e.match(VS);if(!t)throw zS.test(e)?new Error(`Invalid ISO 8601 date string: ${e}. Use parseAbsolute() instead.`):new Error("Invalid ISO 8601 date string: "+e);let r=new qo(Bd(t[1],0,9999),Bd(t[2],1,12),1);return r.day=Bd(t[3],1,r.calendar.getDaysInMonth(r)),r}function Bd(e,t,r){let o=Number(e);if(o<t||o>r)throw new RangeError(`Value out of range: ${t} <= ${o} <= ${r}`);return o}function Yf(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 Vd(e){let t=jt(e,new ir),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 zd(e){return `${Vd(e)}T${Yf(e)}`}function HS(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 Kf(e){return `${zd(e)}${HS(e.offset)}[${e.timeZone}]`}function Od(e){let t=typeof e[0]=="object"?e.shift():new ir,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 WS=new WeakMap,qo=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 za(this,t)}subtract(t){return Ad(this,t)}set(t){return fs(this,t)}cycle(t,r,o){return gs(this,t,r,o)}toDate(t){return Rd(this,t)}toString(){return Vd(this)}compare(t){return kd(this,t)}constructor(...t){ss(this,WS,{writable:true,value:void 0});let[r,o,n,a,i]=Od(t);this.calendar=r,this.era=o,this.year=n,this.month=a,this.day=i,qr(this);}};var GS=new WeakMap,Fa=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 za(this,t)}subtract(t){return Ad(this,t)}set(t){return fs(Va(this,t),t)}cycle(t,r,o){switch(t){case "era":case "year":case "month":case "day":return gs(this,t,r,o);default:return Id(this,t,r,o)}}toDate(t,r){return Rd(this,t,r)}toString(){return zd(this)}compare(t){let r=kd(this,t);return r===0?Lf(this,Lr(t)):r}constructor(...t){ss(this,GS,{writable:true,value:void 0});let[r,o,n,a,i]=Od(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,qr(this);}},US=new WeakMap,Gn=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 Fd(this,t)}subtract(t){return Wf(this,t)}set(t,r){return Uf(this,t,r)}cycle(t,r,o){return Gf(this,t,r,o)}toDate(){return Vf(this)}toString(){return Kf(this)}toAbsoluteString(){return this.toDate().toISOString()}compare(t){return this.toDate().getTime()-Dd(t,this.timeZone).toDate().getTime()}constructor(...t){ss(this,US,{writable:true,value:void 0});let[r,o,n,a,i]=Od(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,qr(this);}};var Hd=new Map;function Wd(e){let{locale:t}=Sd(),r=t+(e?Object.entries(e).sort((n,a)=>n[0]<a[0]?-1:1).join():"");if(Hd.has(r))return Hd.get(r);let o=new Intl.Collator(t,e);return Hd.set(r,o),o}function bs(e){let t=Wd({usage:"search",...e}),r=Ee.useCallback((a,i)=>i.length===0?true:(a=a.normalize("NFC"),i=i.normalize("NFC"),t.compare(a.slice(0,i.length),i)===0),[t]),o=Ee.useCallback((a,i)=>i.length===0?true:(a=a.normalize("NFC"),i=i.normalize("NFC"),t.compare(a.slice(-i.length),i)===0),[t]),n=Ee.useCallback((a,i)=>{if(i.length===0)return true;a=a.normalize("NFC"),i=i.normalize("NFC");let s=0,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 Ee.useMemo(()=>({startsWith:r,endsWith:o,contains:n}),[r,o,n])}var ZS=({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 At({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)=>ZS({...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 cr(){let[e,t]=Ee__namespace.default.useState(false),r=Ee__namespace.default.useCallback((n,a)=>{t(true),a?.(n);},[]),o=Ee__namespace.default.useCallback((n,a)=>{t(false),a?.(n);},[]);return {isFocused:e,handleFocus:r,handleBlur:o}}var nt=Ee__namespace.default.forwardRef(({children:e,className:t},r)=>jsxRuntime.jsx("div",{ref:r,className:tailwindMerge.twMerge("relative w-full",t),children:e}));nt.displayName="InputWrapper";function Ha({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 yo(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 jf(e){return e.isDisabled?"bg-background-muted":e.transparent?"bg-transparent":"bg-background-input"}function XS(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 yt(e){let{isInvalid:t,isDisabled:r,isFocused:o,transparent:n,size:a="md",className:i}=e;return tailwindMerge.twMerge("w-full",yo({isInvalid:t,isDisabled:r,isFocused:o}),jf({transparent:n,isDisabled:r}),Le[a].text,Le[a].height,Le[a].padding,XS(a),i)}function $S(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",jf({transparent:a,isDisabled:n}),Le[t].height,yo({isFocused:r,isInvalid:o,isDisabled:n}),i)}function Me({children:e,size:t="md",tooltip:r,description:o,descriptionPlacement:n="below",isRequired:a,className:i,htmlFor:s}){let c=r||o&&n==="tooltip",l=r||o,u=o&&n==="inline",d=jsxRuntime.jsxs("label",{htmlFor:s,className:tailwindMerge.twMerge(Le[t].text,"!text-text-label font-semibold flex items-center gap-1",i),children:[e,a&&jsxRuntime.jsx("span",{children:"*"}),c&&jsxRuntime.jsx("span",{className:"inline-flex items-center text-text-secondary",children:jsxRuntime.jsx(B,{name:"Info",size:t==="sm"?16:20})}),u&&jsxRuntime.jsx("span",{className:"text-text-secondary font-normal ml-1",children:o})]});return c&&l?jsxRuntime.jsx(At,{content:l,children:d}):d}function Se({size:e="md",className:t,children:r,...o}){return jsxRuntime.jsx("div",{...o,className:tailwindMerge.twMerge("leading-[2.25] text-text-secondary",Le[e].text,t),children:r})}function pe({children:e,size:t="md",className:r}){return jsxRuntime.jsx("div",{role:"alert",className:tailwindMerge.twMerge(Le[t].text,"text-feedback-error-text",r),children:e})}function hs({size:e="md",isInvalid:t,isDisabled:r,isFocused:o,transparent:n,className:a,...i}){return jsxRuntime.jsx("input",{className:yt({isInvalid:t,isDisabled:r,isFocused:o,transparent:n,size:e,className:a}),...i})}function qf(e){let{children:t,...r}=e;return jsxRuntime.jsx("div",{...r,className:$S(e),children:typeof t=="function"?t(e):t})}function e1({children:e,...t}){return jsxRuntime.jsx(reactAriaComponents.ListBox,{...t,className:Ce(t.className,"outline-0"),children:e})}var qd=Ee.createContext("md");function _f(){return Ee.useContext(qd)}function Kd(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 ${Le[e].text} ${t}`}function i1(){let e=Ee__namespace.default.useCallback((r,o)=>{o?.(r);},[]),t=Ee__namespace.default.useCallback((r,o)=>{o?.(r);},[]);return {handleFocus:e,handleBlur:t}}function $o({label:e,description:t,errorMessage:r,children:o,items:n,renderItem:a,renderSelectedValue:i,size:s="md",selectedKey:c,defaultSelectedKey:l,onSelectionChange:u,placeholder:d,showErrors:m=false,tooltip:p,isRequired:g,transparent:f,reserveErrorSpace:b=false,placement:x="bottom start",shouldFlip:v=true,menuWidth:C="match",descriptionPlacement:y="below",useMobileTray:w=true,...T}){let[R,E]=Ee.useState(null),[D,L]=Ee.useState(null),[z,A]=Ee.useState(false),S=c??R??l,{handleFocus:N,handleBlur:F}=i1(),{isMobile:W}=Rt(),I=w&&W,K=Ee__namespace.default.useMemo(()=>!i||!S||!n?null:Array.from(n).find(V=>V.id===S)??null,[i,S,n]),X=k=>{u&&k!==null&&u(k),u||E(k);},G=Ee.useRef(null),Y=Ee.useRef(null),P=()=>{I&&A(!z);};return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(reactAriaComponents.Select,{...T,selectedKey:S,defaultSelectedKey:l,onSelectionChange:X,placeholder:d,className:Ce(T.className,"group flex w-full flex-col"),ref:G,onOpenChange:k=>{I||(k&&Y.current?L(Y.current.offsetWidth):k||G.current?.blur());},children:({isDisabled:k,isInvalid:V,isOpen:M})=>jsxRuntime.jsxs("div",{className:"flex flex-col",children:[e&&jsxRuntime.jsx(Me,{size:s,tooltip:p,description:y==="tooltip"||y==="inline"?t:void 0,descriptionPlacement:y,isRequired:g,children:e}),jsxRuntime.jsx(nt,{children:jsxRuntime.jsx("div",{ref:Y,children:jsxRuntime.jsxs(Q,{variant:"unstyled",className:tailwindMerge.twMerge(yt({isInvalid:V||m&&!!r,isDisabled:k,isFocused:I?z:M,transparent:f,size:s}),"flex items-center text-start gap-4 cursor-pointer pl-[var(--control-padding-sm)]"),onFocus:h=>N(h,T.onFocus),onBlur:h=>F(h,T.onBlur),onPress:I?P:void 0,"data-open":I?z:M,children:[i&&K?jsxRuntime.jsx("div",{className:Kd(s),children:i(K)}):I&&S?jsxRuntime.jsx("div",{className:Kd(s),children:n?Array.from(n).find(H=>H.id===S)?.label:String(S)}):jsxRuntime.jsx(reactAriaComponents.SelectValue,{className:Kd(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",(I?z:M)&&"rotate-180")})]})})}),b?jsxRuntime.jsx("div",{className:"mt-1 min-h-[20px]",children:m?jsxRuntime.jsx(pe,{size:s,className:"text-feedback-error-text",children:typeof r=="function"&&T.validationResult?r(T.validationResult):typeof r=="string"?r:null}):t&&y==="below"?jsxRuntime.jsx(Se,{size:s,children:t}):null}):jsxRuntime.jsx(jsxRuntime.Fragment,{children:m?jsxRuntime.jsx(pe,{size:s,className:"mt-1 text-feedback-error-text",children:typeof r=="function"&&T.validationResult?r(T.validationResult):typeof r=="string"?r:null}):t&&y==="below"?jsxRuntime.jsx(Se,{size:s,className:"mt-1",children:t}):null}),I?null:jsxRuntime.jsx(Ze,{className:"bg-background-input shadow-xl border border-border-input/20 backdrop-blur-sm rounded-[var(--control-border-radius)]",style:{width:C==="match"&&D?`${D}px`:void 0,minWidth:C==="auto"&&D?`${D}px`:void 0,maxWidth:C==="auto"?"min(600px, 90vw)":void 0},placement:x,shouldFlip:v,children:jsxRuntime.jsx(qd.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(It,{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})})})]})}),I&&jsxRuntime.jsx(Xe,{isOpen:z,onClose:()=>A(false),title:e??"Select an option",contentPadding:false,children:jsxRuntime.jsx(qd.Provider,{value:"md",children:jsxRuntime.jsx(reactAriaComponents.ListBox,{items:n,className:"w-full bg-background-surface p-0 outline-0 [&_[role=option]]:border-b [&_[role=option]]:border-border-default [&_[role=option]:last-child]:border-0 [&_[role=option]]:!px-6 [&_[role=option]]:!py-4 [&_[role=option]]:rounded-none",selectionMode:"single",selectedKeys:S!=null?[S]:[],onSelectionChange:k=>{let V=Array.from(k)[0];V!=null&&(X(V),A(false));},children:a&&n?k=>jsxRuntime.jsx(It,{id:k.id,textValue:k.label,children:jsxRuntime.jsx("span",{className:"overflow-hidden text-ellipsis whitespace-nowrap min-w-0 flex-1",children:a(k)})},k.id):o})})})]})}function It({size:e,className:t,...r}){let o=_f(),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",Le[n].paddingY,Le[n].text,t)})}var x1=[],h1={sm:"h-4 w-4",md:"h-5 w-5",lg:"h-6 w-6",xl:"h-7 w-7"},y1={sm:"pl-8",md:"pl-10",lg:"pl-11",xl:"pl-13"},tg={sm:"py-1",md:"py-2",lg:"py-3",xl:"py-4"},Xd=(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 v1(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 C1(e,t,r){try{let o=e.graphqlQuery.replace(`$${e.variableKey||"filter"}`,`"${t}"`),n=await fetch(e.url,{method:"POST",headers:{"Content-Type":"application/json",...e.headers},body:JSON.stringify({query:o}),signal:r});if(!n.ok)throw new Error(`HTTP error! status: ${n.status}`);let a=await n.json();if(a.errors)throw new Error(a.errors[0]?.message||"GraphQL error occurred");return e.responsePath&&(a=e.responsePath.split(".").reduce((i,s)=>i?.[s],a)),{items:e.transformResponse(a)}}catch(o){if(o instanceof Error&&o.name==="AbortError")return {items:[]};console.error("Error in GraphQL request:",o);let n=o instanceof Error?o.message:"Unknown error occurred";return {items:[],error:n}}}function Ss({label:e,staticItems:t=x1,sections:r,selectedKey:o,defaultSelectedKey:n,onSelectionChange:a,requestConfig:i,defaultFilter:s,placeholder:c,errorMessage:l,description:u,size:d="md",tooltip:m,isRequired:p,isDisabled:g,isInvalid:f,validationResult:b,showErrors:x=true,renderItem:v,renderLeftIcon:C,renderSection:y,autoFocus:w=false,reserveErrorSpace:T=false,hideChevron:R=false,useMobileTray:E=true,className:D}){let L=Ee__namespace.default.useRef(null),z=Ee__namespace.default.useRef(null),[A,S]=Ee__namespace.default.useState(),[N,F]=Ee.useState(()=>Xd(o||n,t,r)),[W,I]=Ee.useState(false),[K,X]=Ee.useState(false),G=uo(N),{contains:Y}=bs({sensitivity:"base"}),[P,k]=Ee.useState(),{isMobile:V}=Rt(),M=E&&V,h=Le[d].text,O=reactStately.useAsyncList({async load({signal:ie,filterText:ue=""}){if(!i)return {items:[]};if(!i.url||i.shouldLoad&&!i.shouldLoad(ue))return {items:[]};try{let ge;return i.requestType==="GraphQL"?ge=await C1(i,ue,ie):ge=await v1(i,ue,ie),k(ge.error),{items:ge.items}}catch(ge){return ge instanceof Error&&ge.name==="AbortError"?{items:[]}:(console.error("Error loading items:",ge),k(ge instanceof Error?ge.message:"Unknown error occurred"),{items:[]})}},initialFilterText:""}),H=i&&G!==""?O:null,j=false,oe=Ee.useRef("");Ee.useEffect(()=>{w&&I(true);},[w]),Ee.useEffect(()=>{let ie=Xd(o,t,r);ie!==N&&F(ie);},[o,t,r]),Ee.useEffect(()=>{let ie=()=>{L.current&&S(L.current.offsetWidth);};return ie(),window.addEventListener("resize",ie),()=>window.removeEventListener("resize",ie)},[]),Ee.useEffect(()=>{G===""?oe.current="":H&&G!==oe.current&&(oe.current=G,H.setFilterText(G));},[G,H]),j=Bi(!!H?.isLoading,300);let me=Ee__namespace.default.useMemo(()=>{if(!M||!N)return H?H.items:t;let ie=H?H.items:t,ue=s||Y;return ie.filter(ge=>ue(ge.name,N))},[M,N,H,t,s,Y]),Z=ie=>{let ue=Xd(ie,t,r);F(ue),a&&a(ie);},ne=ie=>{F(ie);},ke=()=>{M&&X(true);};return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(reactAriaComponents.ComboBox,{onSelectionChange:Z,selectedKey:o||void 0,defaultSelectedKey:n||void 0,defaultItems:r?r.flatMap(ie=>ie.items):t,items:H?H.items:void 0,className:Ce(D,"group flex flex-col w-full"),menuTrigger:M?"manual":"focus",isDisabled:g,isInvalid:f||!!l,inputValue:N,onInputChange:ne,autoFocus:w&&!M,defaultFilter:s||Y,"aria-label":e||c||"Autocomplete",children:ie=>jsxRuntime.jsxs("div",{className:"flex flex-col",children:[e&&jsxRuntime.jsx(Me,{size:d,tooltip:m,isRequired:p,children:e}),jsxRuntime.jsxs(nt,{ref:L,children:[C?jsxRuntime.jsx("div",{className:"pointer-events-none absolute left-3 top-[45%] -translate-y-1/2 z-10",children:C(j)}):jsxRuntime.jsx("div",{className:"pointer-events-none absolute left-3 top-1/2 -translate-y-1/2 z-10 flex items-center",children:j?jsxRuntime.jsx(jr,{size:16,color:"text-text-secondary"}):jsxRuntime.jsx(B,{name:"MagnifyingGlass",className:`${h1[d]} text-text-secondary`})}),jsxRuntime.jsx(reactAriaComponents.Input,{className:yt({isInvalid:f||!!l,isDisabled:g,isFocused:W||(M?K:ie.isOpen),size:d,className:tailwindMerge.twMerge(y1[d],N&&!g||!R&&!N?"pr-10":"pr-3",M&&"cursor-pointer",D)}),placeholder:c,disabled:g,onFocus:ue=>{I(true),M&&(ue.currentTarget.blur(),ke());},onBlur:()=>{I(false);},onClick:M?ke:void 0,readOnly:M,"aria-label":e||c||"Autocomplete"}),N&&!g&&jsxRuntime.jsx(Ha,{onClick:()=>{F(""),a?.(null);},size:d}),!R&&!N&&jsxRuntime.jsx(reactAriaComponents.Button,{className:"absolute right-3 top-[46%] -translate-y-1/2 transform text-text-secondary hover:text-text-primary","aria-label":"Toggle menu",isDisabled:g,children:({isPressed:ue})=>jsxRuntime.jsx(B,{name:ue?"CaretUp":"CaretDown",className:"h-4 w-4"})})]}),T?jsxRuntime.jsx("div",{className:"mt-1 min-h-[20px]",children:x&&P?jsxRuntime.jsx(pe,{size:d,className:"text-feedback-error-text",children:P}):x&&typeof l=="string"?jsxRuntime.jsx(pe,{size:d,className:"text-feedback-error-text",children:l}):x&&typeof l=="function"&&b?jsxRuntime.jsx(pe,{size:d,className:"text-feedback-error-text",children:l(b)}):u?jsxRuntime.jsx(Se,{size:d,children:u}):null}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[u&&jsxRuntime.jsx(Se,{size:d,className:"mt-1",children:u}),x&&P&&jsxRuntime.jsx(pe,{size:d,className:"text-feedback-error-text mt-1",children:P}),x&&typeof l=="string"&&jsxRuntime.jsx(pe,{size:d,className:"text-feedback-error-text mt-1",children:l}),x&&typeof l=="function"&&b&&jsxRuntime.jsx(pe,{size:d,className:"text-feedback-error-text mt-1",children:l(b)})]}),!M&&jsxRuntime.jsx(Ze,{className:"bg-background-input shadow-xl border border-border-input/20 backdrop-blur-sm ring-1 ring-black/5 rounded-[var(--control-border-radius)]",style:{minWidth:A?`${A}px`:void 0},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(ue=>{let ge=ue.items.map($=>jsxRuntime.jsx(It,{id:$.id,textValue:$.name,size:d,className:`flex cursor-default items-center gap-2 px-3 ${tg[d]} text-text-primary outline-none data-[focused]:bg-background-hover data-[selected]:bg-background-selected data-[selected]:font-medium data-[focus-visible]:ring-0`,children:v?v($):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[$.name,jsxRuntime.jsx(B,{name:"X",className:"ml-auto h-4 w-4 text-text-secondary opacity-0 data-[focused]:opacity-100 data-[selected]:opacity-100"})]})},$.id));if(y){let $=y(ue,ge);return Ee__namespace.default.isValidElement($)&&$.type===reactAriaComponents.ListBoxSection?$:jsxRuntime.jsx(reactAriaComponents.ListBoxSection,{children:$},ue.name)}return jsxRuntime.jsxs(reactAriaComponents.ListBoxSection,{children:[jsxRuntime.jsx(reactAriaComponents.Header,{className:"px-3 py-1 text-sm font-bold text-text-secondary",children:ue.name}),ge]},ue.name)}):ue=>jsxRuntime.jsx(It,{id:ue.id,textValue:ue.name,size:d,className:`flex cursor-default items-center gap-2 px-3 ${tg[d]} text-text-primary outline-none data-[focused]:bg-background-hover data-[selected]:bg-background-selected data-[selected]:font-medium data-[focus-visible]:ring-0`,children:v?v(ue):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[ue.name,jsxRuntime.jsx(B,{name:"X",className:"ml-auto h-4 w-4 text-text-secondary opacity-0 data-[focused]:opacity-100 data-[selected]:opacity-100"})]})},ue.id)})})]})}),M&&jsxRuntime.jsx(Xe,{isOpen:K,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(nt,{children:[jsxRuntime.jsx("div",{className:"pointer-events-none absolute left-3 top-[45%] -translate-y-1/2 z-10 flex items-center",children:j?jsxRuntime.jsx(jr,{size:16,color:"text-text-secondary"}):jsxRuntime.jsx(B,{name:"MagnifyingGlass",className:"h-4 w-4 text-text-secondary"})}),jsxRuntime.jsx("input",{ref:z,type:"text",value:N,onChange:ie=>ne(ie.target.value),placeholder:c,autoFocus:true,className:yt({isInvalid:false,isDisabled:false,isFocused:true,size:"md",className:"pl-10 pr-10"})}),N&&jsxRuntime.jsx(Ha,{onClick:()=>{F(""),a?.(null);},size:"md"})]})}),jsxRuntime.jsx("div",{className:"flex-1 overflow-auto",children:jsxRuntime.jsx(reactAriaComponents.ListBox,{"aria-label":e||c||"Suggestions",items:me,selectedKeys:o?[o]:[],selectionMode:"single",onSelectionChange:ie=>{let ue=Array.from(ie)[0];ue&&(Z(ue),X(false));},className:"bg-background-input outline-none",children:ie=>jsxRuntime.jsx(It,{id:ie.id,textValue:ie.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(ie):ie.name},ie.id)})})]})})]})}function $r({src:e,alt:t,firstName:r,lastName:o,fullName:n,onClick:a,size:i="md",shape:s="circle",variant:c="user",className:l,status:u,bordered:d=false,piiEntity:m}){let[p,g]=Ee.useState(false),f=Ee.useCallback(()=>g(true),[]);Ee.useEffect(()=>{g(false);},[e]);let b={xs:"h-6 w-6 text-xs",sm:"h-8 w-8 text-sm",md:"h-10 w-10 text-base",lg:"h-12 w-12 text-lg",xl:"h-16 w-16 text-xl"},x={xs:"h-1.5 w-1.5",sm:"h-2 w-2",md:"h-2.5 w-2.5",lg:"h-3 w-3",xl:"h-4 w-4"},v={xs:"bottom-0 right-0",sm:"bottom-0 right-0",md:"bottom-0 right-0",lg:"bottom-0.5 right-0.5",xl:"bottom-1 right-1"},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"},w=s==="circle"?"rounded-full":"rounded-md",T=tailwindMerge.twMerge("relative inline-flex items-center justify-center overflow-hidden transition-opacity outline-none",b[i],w,a&&"cursor-pointer hover:opacity-80",d&&"ring-2 ring-background-surface",l),E=(()=>{if(r||o){let A=r?.[0]||"",S=o?.[0]||"";return (A+S).toUpperCase()}if(n){let A=n.split(" "),S=A[0]?.[0]||"",N=A[A.length-1]?.[0]||"";return S===N?S.toUpperCase():(S+N).toUpperCase()}return ""})(),D=()=>{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})}},L=A=>{if(m)return c==="organization"?A?"organization-logo":"initials":A?"avatar":"initials"},z=()=>e&&!p?jsxRuntime.jsx("img",{src:e,alt:t||n||"Avatar",className:"h-full w-full object-cover",onError:f,"data-pii-type":L(true),"data-pii-entity":m}):E?jsxRuntime.jsx("span",{className:"font-semibold","data-pii-type":L(false),"data-pii-entity":m,children:E}):D();return jsxRuntime.jsxs("div",{className:"relative inline-block",children:[jsxRuntime.jsx("div",{"data-avatar":true,className:tailwindMerge.twMerge(T,!e||p?y[c]:""),onClick:a,role:a?"button":void 0,tabIndex:a?0:void 0,children:z()}),u&&jsxRuntime.jsx("span",{className:tailwindMerge.twMerge("absolute border-2 border-background-surface",w,x[i],v[i],C[u]),"aria-label":`Status: ${u}`})]})}var D1={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"},M1={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"},E1={pill:"rounded-full",rounded:"rounded-lg",square:"rounded-sm"},L1={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 Je({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",L1[r],i&&"animate-pulse"),"aria-hidden":"true"});return jsxRuntime.jsxs("span",{className:tailwindMerge.twMerge("inline-flex items-center gap-1.5 font-medium",M1[r],E1[o],D1[t],s),children:[n&&a==="left"&&c,e,n&&a==="right"&&c]})}var Ue=({href:e,children:t,className:r="",external:o=false,title:n,variant:a="secondary",onClick:i,asButton:s=false,onPress:c,showArrow:l=false,alwaysUnderlined:u=false,LinkComponent:d,"data-pii-type":m,"data-pii-entity":p})=>{let g={...m&&{"data-pii-type":m},...p&&{"data-pii-entity":p}},f=o?{target:"_blank",rel:"noopener noreferrer"}:{},y=`${`${u?"underline decoration-1 underline-offset-4 decoration-current":"hover:underline hover:decoration-1 hover:underline-offset-4 hover:decoration-current"} cursor-pointer`} ${{primary:"text-action-primary hover:text-action-primary-hover visited:text-action-primary",secondary:"text-text-link-default hover:text-text-link-hover visited:text-text-link-default",muted:"text-text-secondary hover:text-text-secondary visited:text-text-secondary",unstyled:""}[a==="brand"?"primary":a==="default"?"secondary":a]} ${r}`,w=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,...g,children:w}):d&&e?jsxRuntime.jsx(d,{href:e,className:y,title:n,onClick:i,...f,...g,children:w}):jsxRuntime.jsx("a",{href:e||"#",className:y,...f,...g,title:n,onClick:i,children:w})};var G1={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 Ns({variant:e="info",appearance:t="subtle",title:r,children:o,dismissible:n=false,onDismiss:a,primaryAction:i,secondaryAction:s,icon:c,hideIcon:l=false,className:u,testId:d}){let m=G1[e],p=m[t],g=m.icon,f=!!(i||s),b=!!(r||o);return jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("flex gap-3 rounded-sm border p-4",p.container,u),role:"region","aria-live":"polite","data-testid":d,children:[!l&&jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("flex-shrink-0",p.iconColor),"aria-hidden":"true",children:c||jsxRuntime.jsx(g,{className:"h-5 w-5"})}),jsxRuntime.jsxs("div",{className:"flex min-w-0 flex-1 flex-col gap-3",children:[b&&jsxRuntime.jsxs("div",{className:"flex-1",children:[r&&jsxRuntime.jsx("div",{className:Mt(et("headingSm"),p.titleColor),children:r}),o&&jsxRuntime.jsx("div",{className:Mt(et("bodySm"),r?"mt-1":"",p.bodyColor),children:o})]}),f&&jsxRuntime.jsxs("div",{className:"flex flex-wrap items-center gap-3",children:[i&&(i.asLink?jsxRuntime.jsx(Ue,{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(Ue,{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,Oe()),"aria-label":"Dismiss banner",children:jsxRuntime.jsx(lucideReact.X,{className:"h-4 w-4"})})]})}function ng({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(Ns,{...o,className:a})})})}function vo({value:e,children:t,className:r,size:o="sm",iconPosition:n="right"}){let[a,i]=Ee.useState(false),l=jsxRuntime.jsx(Q,{variant:"icon",size:o,onPress:()=>{let d=e||(typeof t=="string"?t:"");navigator.clipboard.writeText(d),i(true),setTimeout(()=>{i(false);},2e3);},className:"!px-2 relative",style:{top:"0.5px"},children:jsxRuntime.jsx(B,{name:"Copy",size:o==="sm"?14:16})}),u=a?jsxRuntime.jsx(At,{content:"Copied!",children:l}):l;return jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("inline-flex items-center gap-0.5",r),children:[n==="left"&&u,t,n==="right"&&u]})}function ks(e){let{children:t,maxWidth:r=600,className:o,...n}=e,{ref:a,width:i}=An(),[s,c]=Ee__namespace.default.useState(false),[l,u]=Ee__namespace.default.useState(false),d=Ee__namespace.default.useRef(false),m=Ee__namespace.default.useMemo(()=>t&&!e.items&&typeof t!="function"?Ee__namespace.default.Children.toArray(t):null,[t,e.items]);if(Ee__namespace.default.useEffect(()=>{m&&m.length>=4&&i>0&&!d.current?(d.current=true,c(i>r),u(true)):(!m||m&&m.length<4)&&u(true);let p=setTimeout(()=>{l||u(true);},100);return ()=>clearTimeout(p)},[i,r,m,l]),m&&s&&m.length>=4){let p=m[0],g=m.slice(1,-2),f=m.slice(-2),b=g.map(x=>{if(Ee__namespace.default.isValidElement(x)){let v=x.props;if(typeof v.children=="string")return {label:v.children,href:v.href}}return {label:"..."}});return jsxRuntime.jsxs(reactAriaComponents.Breadcrumbs,{...n,ref:a,className:tailwindMerge.twMerge("flex gap-2",l?"opacity-100":"opacity-0",o),children:[p,jsxRuntime.jsx(q1,{items:b}),f]})}return jsxRuntime.jsx(reactAriaComponents.Breadcrumbs,{...n,ref:a,className:tailwindMerge.twMerge("flex gap-2",l?"opacity-100":"opacity-0",o),children:t})}function q1({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(Hn,{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 Ts(e){let{className:t,children:r,href:o,copyable:n,copyValue:a,...i}=e;return jsxRuntime.jsx(reactAriaComponents.Breadcrumb,{className:Ce(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(vo,{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(Ue,{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 n2({isSelected:e,isDisabled:t}){let r=[Oe,"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 Un({errorMessage:e,...t}){return jsxRuntime.jsxs(reactAriaComponents.Calendar,{...t,children:[jsxRuntime.jsx(Ps,{}),jsxRuntime.jsxs(reactAriaComponents.CalendarGrid,{className:"border-separate [border-spacing:0] [&_td]:p-0 [&_td]:!border-0",children:[jsxRuntime.jsx(Rs,{}),jsxRuntime.jsx(reactAriaComponents.CalendarGridBody,{children:r=>jsxRuntime.jsx(reactAriaComponents.CalendarCell,{date:r,className:({isSelected:o,isDisabled:n})=>`${n2({isSelected:o,isDisabled:n})} border-0`})})]}),e&&jsxRuntime.jsx(reactAriaComponents.Text,{slot:"errorMessage",className:"text-sm text-feedback-error-text",children:e})]})}function Ps(){let{direction:e}=reactAriaComponents.useLocale(),t=18;return jsxRuntime.jsxs("header",{className:"flex w-full items-center gap-1 px-1 pb-4",children:[jsxRuntime.jsx(Q,{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(Q,{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 Rs(){return jsxRuntime.jsx(reactAriaComponents.CalendarGridHeader,{children:e=>jsxRuntime.jsx(reactAriaComponents.CalendarHeaderCell,{className:"text-xs font-semibold text-text-secondary",children:e})})}var dg=Ee__namespace.createContext(null);function Co(){let e=Ee__namespace.useContext(dg);if(!e)throw new Error("Carousel components must be used within a CarouselRoot");return e}function ug({page:e,defaultPage:t=0,onPageChange:r,orientation:o="horizontal",loop:n=false,autoplay:a=false,autoplayDelay:i=4e3,allowMouseDrag:s=false,spacing:c="1rem",slidesPerView:l=1,slidesPerMove:u=1,className:d,children:m,...p}){let g=e!==void 0,[f,b]=Ee__namespace.useState(t),x=g?e:f,v=Ee__namespace.useRef(null),[C,y]=Ee__namespace.useState(0),[w,T]=Ee__namespace.useState(typeof a=="boolean"?a:!!a),[R,E]=Ee__namespace.useState(false),D=Ee__namespace.useRef(null),L=Ee__namespace.useRef(null),z=typeof a=="object"&&a!==null&&a.delay?a.delay:i;Ee__namespace.useEffect(()=>{if(v.current){let h=Math.max(1,Math.floor(Number(l)||1)),O=v.current.children;if(O.length===0){y(0);return}let H=Math.ceil(O.length/h);y(H);}},[m,l]);let A=Ee__namespace.useRef(-1);Ee__namespace.useEffect(()=>{if(x!==A.current&&v.current){let h=Array.from(v.current.children);if(h.length===0)return;let O=x*l,H=Math.min(O,h.length-1),j=h[H];j&&typeof j.scrollIntoView=="function"&&(j.scrollIntoView({behavior:"smooth",block:o==="vertical"?"start":"nearest",inline:o==="horizontal"?"start":"nearest"}),A.current=x);}},[x,l,o]);let S=Ee__namespace.useCallback(h=>{let O=h;n?O<0?O=C-1:O>=C&&(O=0):O=Math.max(0,Math.min(h,C-1)),g||b(O),r?.(O);},[g,n,r,C]),N=Ee__namespace.useCallback(()=>{S(x+u);},[x,S,u]),F=Ee__namespace.useCallback(()=>{S(x-u);},[x,S,u]),W=Ee__namespace.useRef(N);Ee__namespace.useEffect(()=>{W.current=N;},[N]);let I=C>0&&(n||x<C-1),K=C>0&&(n||x>0),X=Ee__namespace.useCallback(()=>{T(h=>!h);},[]);Ee__namespace.useEffect(()=>{if(w&&C>1)return D.current=setInterval(()=>{W.current();},z),()=>{D.current&&(clearInterval(D.current),D.current=null);}},[w,C,z]);let G=Ee__namespace.useCallback(()=>{D.current&&(clearInterval(D.current),D.current=null);},[]),Y=Ee__namespace.useCallback(()=>{w&&C>1&&(D.current=setInterval(()=>{W.current();},z));},[w,C,z]),P=Ee__namespace.useCallback(h=>{if(!s)return;E(true);let O="touches"in h&&h.touches&&h.touches.length>0?h.touches[0].clientX:"clientX"in h?h.clientX:0,H="touches"in h&&h.touches&&h.touches.length>0?h.touches[0].clientY:"clientY"in h?h.clientY:0;L.current={x:O,y:H};},[s]),k=Ee__namespace.useCallback(h=>{if(!R||!L.current)return;let O="touches"in h&&h.touches&&h.touches.length>0?h.touches[0].clientX:"clientX"in h?h.clientX:0,H="touches"in h&&h.touches&&h.touches.length>0?h.touches[0].clientY:"clientY"in h?h.clientY:0,j=O-L.current.x,oe=H-L.current.y,me=50;o==="horizontal"&&Math.abs(j)>me?(j>0?F():N(),E(false),L.current=null):o==="vertical"&&Math.abs(oe)>me&&(oe>0?F():N(),E(false),L.current=null);},[R,o,N,F]),V=Ee__namespace.useCallback(()=>{E(false),L.current=null;},[]),M={currentPage:x,totalPages:C,orientation:o,loop:n,spacing:c,slidesPerView:l,goToPage:S,goToNext:N,goToPrev:F,canGoNext:I,canGoPrev:K,isAutoplayActive:w,toggleAutoplay:X,itemsRef:v,isDragging:R,allowMouseDrag:s,handleDragStart:P,handleDragMove:k,handleDragEnd:V};return jsxRuntime.jsx(dg.Provider,{value:M,children:jsxRuntime.jsx("div",{...p,className:tailwindMerge.twMerge("relative w-full",o==="vertical"?"h-full":"",d),onMouseEnter:G,onMouseLeave:Y,children:m})})}function pg({className:e,children:t,...r}){let{itemsRef:o,orientation:n,spacing:a,isDragging:i,allowMouseDrag:s,handleDragStart:c,handleDragMove:l,handleDragEnd:u}=Co();return jsxRuntime.jsx("div",{ref:o,...r,className:tailwindMerge.twMerge("flex overflow-x-auto overflow-y-hidden snap-x snap-mandatory scrollbar-hide scroll-smooth",n==="vertical"&&"flex-col overflow-y-auto overflow-x-hidden snap-y",s&&i&&"cursor-grabbing select-none",s&&!i&&"cursor-grab",e),style:{gap:a,"--carousel-spacing":a,...r.style},onMouseDown:c,onMouseMove:l,onMouseUp:u,onMouseLeave:u,onTouchStart:c,onTouchMove:l,onTouchEnd:u,children:t})}function mg({index:e,className:t,children:r,...o}){let{orientation:n,slidesPerView:a}=Co();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 fg({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}=Co();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 bg({className:e,children:t,...r}){let{goToNext:o,canGoNext:n}=Co();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 nu({index:e,className:t,children:r,...o}){let{currentPage:n,goToPage:a}=Co(),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 xg({className:e,...t}){let{totalPages:r}=Co();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(nu,{index:n},n))})}function hg({className:e,children:t,...r}){let{isAutoplayActive:o,toggleAutoplay:n}=Co();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 yg({className:e,...t}){let{currentPage:r,totalPages:o}=Co();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 u2="focus:ring-action-primary",p2="bg-action-primary border-action-primary text-[color:var(--color-action-primary-text)] hover:bg-action-primary-hover hover:border-action-primary-hover";function au(e){return jsxRuntime.jsxs(reactAriaComponents.CheckboxGroup,{...e,className:Ce(e.className,"flex flex-col gap-2"),children:[jsxRuntime.jsx(Me,{children:e.label}),e.children,e.description&&jsxRuntime.jsx(Se,{children:e.description}),jsxRuntime.jsx(pe,{children:typeof e.errorMessage=="function"?void 0:e.errorMessage})]})}function m2({isDisabled:e}){return `flex gap-2 items-center group text-sm transition ${e?"text-text-disabled":"text-text-secondary"}`}function f2({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=u2,i="";return r?i="border-border-muted bg-background-muted":t?i="border-feedback-error-border bg-feedback-error-background":e||o?i=p2:i="bg-background-input border-border-input hover:border-border-focus",`${n} ${a} ${i}`}var vg="w-4 h-4 text-current group-disabled:text-text-disabled";function tn(e){let{children:t,variant:r,...o}=e;return jsxRuntime.jsx(reactAriaComponents.Checkbox,{...o,className:reactAriaComponents.composeRenderProps(e.className,(n,a)=>`${m2(a)} ${n||""}`),children:n=>{let{isSelected:a,isIndeterminate:i,...s}=n,c=jsxRuntime.jsx("div",{className:f2({isSelected:a,isIndeterminate:i,...s}),children:i?jsxRuntime.jsx(lucideReact.Minus,{"aria-hidden":true,className:vg}):a?jsxRuntime.jsx(lucideReact.Check,{"aria-hidden":true,className:vg}):null});return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[c,typeof t=="function"?t(n):t]})}})}var x2={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 Sg(e){return !e||e==="default"?"secondary":e==="brand"?"primary":e}var h2={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"},y2="opacity-75 cursor-not-allowed pointer-events-none";function wg(e){let{variant:t,size:r,isDisabled:o,isClickable:n,className:a}=e,i=r==="xs"?"text-xs":Le[r].text;return tailwindMerge.twMerge("inline-flex items-center justify-center rounded-full font-medium transition-colors","whitespace-nowrap select-none",h2[r],i,x2[t],n&&!o&&"cursor-pointer",o&&y2,a)}function Fr({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,u=f=>{f.stopPropagation(),f.preventDefault(),t&&!a&&t();},d=()=>{s&&!a&&s();},m=r==="xs"?10:r==="sm"?12:r==="md"?14:16,g=jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("span",{className:"truncate",children:e}),l?c?jsxRuntime.jsx("span",{onClick:u,onKeyDown:f=>{(f.key==="Enter"||f.key===" ")&&(f.preventDefault(),u(f));},role:"button",tabIndex:0,className:"flex-shrink-0 rounded-full p-0.5 hover:bg-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:u,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:d,className:wg({variant:Sg(o),size:r,isDisabled:a,isClickable:c,className:i}),disabled:a,children:g}):jsxRuntime.jsx("span",{className:wg({variant:Sg(o),size:r,isDisabled:a,isClickable:c,className:i}),children:g})}function Tg({label:e,description:t,errorMessage:r,size:o="md",tooltip:n,isRequired:a=false,isDisabled:i=false,isInvalid:s=false,validationResult:c,placeholder:l="Add items...",selectedItems:u=[],onItemsChange:d,staticItems:m,fetchSuggestions:p,chipVariant:g="secondary",showErrors:f=true,className:b}){let[x,v]=Ee.useState(""),[C,y]=Ee.useState([]),[w,T]=Ee.useState(false),[R,E]=Ee.useState(false),[D,L]=Ee.useState(-1),z=uo(x,300),A=Ee.useRef(null),S=Ee.useRef(null),{isFocused:N,handleFocus:F,handleBlur:W}=cr(),I=Ee.useId(),K=Ee.useCallback(M=>{if(!d||!M.trim())return;let h=M.trim();if(u.includes(h)){v(""),E(false),y([]),L(-1);return}d([...u,h]),v(""),E(false),y([]),L(-1),A.current?.focus();},[u,d]),X=Ee.useCallback(M=>{d&&d(u.filter(h=>h!==M));},[u,d]);Ee.useEffect(()=>{if(!p)return;let M=true;return (async()=>{let O=z.trim();if(!O){M&&(T(false),y([]),E(false));return}T(true);try{let H=await p(O);if(!M)return;y(H),E(!0);}catch(H){if(!M)return;console.error("Error fetching suggestions:",H),y([]),E(false);}finally{M&&T(false);}})(),()=>{M=false;}},[z,p]),Ee.useEffect(()=>{if(p||!m)return;if(!z.trim()){y([]),E(false);return}let M=m.filter(h=>h.name.toLowerCase().includes(z.toLowerCase())).map(h=>h.id);y(M),E(M.length>0||z.trim().length>0);},[z,m,p]);let G=Ee.useMemo(()=>{let M=C.filter(h=>!u.includes(h));return x.trim()&&!M.includes(x.trim())&&!u.includes(x.trim())?[...M,`Create tag: "${x.trim()}"`]:M},[C,x,u]),Y=Ee.useCallback(M=>{v(M.target.value),L(-1),M.target.value&&E(true);},[]),P=Ee.useCallback(M=>{i||(M.startsWith("Create tag:")?K(x):K(M));},[K,x,i]),k=Ee.useCallback(M=>{if(!i)switch(M.key){case "Enter":case ",":if(M.preventDefault(),D>=0&&D<G.length){let h=G[D];h.startsWith("Create tag:")?K(x):K(h);}else x.trim()&&K(x.trim());break;case "Backspace":!x&&u.length>0&&(M.preventDefault(),X(u[u.length-1]));break;case "ArrowDown":M.preventDefault(),R&&L(h=>h<G.length-1?h+1:h);break;case "ArrowUp":M.preventDefault(),R&&L(h=>h>0?h-1:-1);break;case "Escape":E(false),L(-1);break}},[i,x,u,G,D,R,K,X]);Ee.useEffect(()=>{let M=h=>{S.current&&h.target instanceof Node&&!S.current.contains(h.target)&&E(false);};return document.addEventListener("mousedown",M),()=>document.removeEventListener("mousedown",M)},[]);let V=()=>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]",yo({isInvalid:s,isDisabled:i,isFocused:N}),"bg-background-input",o==="sm"&&"px-2 py-1 h-[32px]",o==="md"&&"px-2.5 py-1.5 h-[40px]",o==="lg"&&"px-3 py-2 h-[44px]",o==="xl"&&"px-3.5 py-2.5 h-[48px]",i&&"opacity-50 cursor-not-allowed bg-background-muted");return jsxRuntime.jsxs("div",{ref:S,className:tailwindMerge.twMerge("relative flex flex-col gap-1",b),children:[e&&jsxRuntime.jsx(Me,{size:o,tooltip:n,isRequired:a,children:e}),jsxRuntime.jsx(nt,{children:jsxRuntime.jsxs("div",{className:V(),onClick:()=>!i&&A.current?.focus(),children:[u.map(M=>jsxRuntime.jsx(Fr,{variant:g,size:"xs",onRemove:()=>X(M),isDisabled:i,className:"shrink-0 max-h-full",children:M},M)),jsxRuntime.jsx("input",{ref:A,type:"text",role:"combobox","aria-expanded":R,"aria-haspopup":"listbox","aria-controls":I,"aria-autocomplete":"list",value:x,onChange:Y,onKeyDown:k,onFocus:M=>F(M),onBlur:M=>W(M),placeholder:u.length===0?l:"",disabled:i,className:"flex-1 min-w-[120px] h-full !border-0 !outline-none !ring-0 bg-transparent text-text-primary text-sm placeholder:text-text-disabled disabled:cursor-not-allowed focus:!ring-0 focus:!outline-none focus:!border-0 focus-visible:!ring-0 focus-visible:!outline-none focus-visible:!border-0",style:{boxShadow:"none",WebkitAppearance:"none",appearance:"none",border:"none",outline:"none"}})]})}),R&&(x||G.length>0)&&jsxRuntime.jsx("div",{id:I,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:w?jsxRuntime.jsx("div",{className:"px-3 py-2 text-sm text-text-secondary",children:"Loading..."}):G.length>0?G.map((M,h)=>jsxRuntime.jsx("div",{role:"option","aria-selected":h===D,className:tailwindMerge.twMerge("cursor-pointer px-3 py-2 text-sm transition-colors","hover:bg-background-hover",h===D&&"bg-background-selected",M.startsWith("Create tag:")&&"italic text-text-secondary"),onClick:()=>P(M),children:M},M)):x&&jsxRuntime.jsx("div",{className:"px-3 py-2 text-sm text-text-secondary",children:"No suggestions found"})}),t&&jsxRuntime.jsx(Se,{size:o,className:"mt-1",children:t}),f&&typeof r=="string"&&jsxRuntime.jsx(pe,{size:o,className:"text-feedback-error-text mt-1",children:r}),f&&typeof r=="function"&&c&&jsxRuntime.jsx(pe,{size:o,className:"text-feedback-error-text mt-1",children:r(c)})]})}var D2={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')},M2={github:()=>import('ace-builds/src-noconflict/theme-github'),github_dark:()=>import('ace-builds/src-noconflict/theme-github_dark')},E2={"ext-language-tools":()=>import('ace-builds/src-noconflict/ext-language_tools')},Ya=new Set;async function su(e,t){Ya.has(e)||(await t(),Ya.add(e));}async function L2(e,t,r){await Promise.all([su(`language:${e}`,D2[e]),su(`theme:${t}`,M2[t]),r?su("extension:language-tools",E2["ext-language-tools"]):void 0]);}function Rg(e,t,r){let o=Ya.has(`language:${e}`)&&Ya.has(`theme:${t}`);return r?o&&Ya.has("extension:language-tools"):o}function Dg({value:e,readOnly:t=false,onChange:r,language:o="json",theme:n="github_dark",height:a,width:i="100%",className:s,lineHeight:c=19,minLines:l=3,maxLines:u=50,showLineNumbers:d=true,showGutter:m=true,fontSize:p=14,wrapEnabled:g=false}){let f=Ee.useRef(null),[b,x]=Ee.useState(()=>Rg(o,n,!t)),v=Ee.useMemo(()=>{if(a)return a;let C=(e.match(/\n/g)||[]).length+1;return `${Math.max(l,Math.min(C,u))*c+10}px`},[e,a,c,l,u]);return Ee.useEffect(()=>{let C=false,y=!t;return Rg(o,n,y)?(x(true),()=>{C=true;}):(x(false),L2(o,n,y).then(()=>{C||x(true);}).catch(w=>{C||x(true),console.error("Failed to load Ace editor resources",w);}),()=>{C=true;})},[o,t,n]),Ee.useEffect(()=>{b&&f.current?.editor&&f.current.editor.resize();},[v,b]),jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("overflow-hidden rounded-md border border-border-input",s),style:{width:i,height:v},children:b?jsxRuntime.jsx(P2__default.default,{ref:f,mode:o,theme:n,value:e,onChange:r,readOnly:t,width:"100%",height:"100%",fontSize:p,showPrintMargin:false,showGutter:m,highlightActiveLine:!t,setOptions:{useWorker:true,showLineNumbers:d,tabSize:2,enableBasicAutocompletion:!t,enableLiveAutocompletion:!t,enableSnippets:!t,showFoldWidgets:true,wrap:g},editorProps:{$blockScrolling:true}}):jsxRuntime.jsx("div",{className:"flex h-full w-full items-center justify-center bg-surface-muted text-foreground-muted",children:"Loading editor\u2026"})})}var Eg=Ee__namespace.createContext({variant:"contained",density:"comfortable",showDividers:true}),Lg=Ee__namespace.createContext(null),V2={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"},Mg={true:"divide-y divide-border-default",false:"gap-3"},z2={comfortable:"px-5 py-3",compact:"px-4 py-2.5"},O2={comfortable:"px-5 pt-0",compact:"px-4 pt-0"},H2={comfortable:"h-4 w-4",compact:"h-3.5 w-3.5"};function uu(){return Ee__namespace.useContext(Eg)}function W2(e){let t=Ee__namespace.useContext(Lg);if(!t)throw new Error(`${e} must be used within a <CollapseItem>`);return t}function G2({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 U2({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=z2[r];return tailwindMerge.twMerge(i,Oe(),l,s,c,o==="plain"&&n?"px-0":"",a)}function Y2({density:e,showDividers:t,className:r}){let o="text-text-primary",n=O2[e];return tailwindMerge.twMerge(o,n,t?"":"rounded-b-lg",r)}function Yn({variant:e="contained",density:t="comfortable",showDividers:r=true,className:o,...n}){let a=Ee__namespace.useMemo(()=>({variant:e,density:t,showDividers:r}),[e,t,r]),i=tailwindMerge.twMerge("flex w-full flex-col",V2[e],r?Mg.true:Mg.false,e==="plain"&&r?"border-y border-border-default/60":"");return jsxRuntime.jsx(Eg.Provider,{value:a,children:jsxRuntime.jsx(reactAriaComponents.DisclosureGroup,{...n,className:Ce(o,i)})})}function wo({className:e,children:t,...r}){let{variant:o,showDividers:n}=uu();return jsxRuntime.jsx(reactAriaComponents.Disclosure,{...r,className:reactAriaComponents.composeRenderProps(e,a=>G2({variant:o,showDividers:n,className:a})),children:a=>jsxRuntime.jsx(Lg.Provider,{value:a,children:t})})}wo.displayName="CollapseItem";function No({title:e,description:t,startContent:r,endContent:o,indicator:n,indicatorPosition:a="end",showIndicator:i=true,keepIndicatorSpace:s=false,children:c,className:l,...u}){let d=W2("CollapseHeader"),{density:m,variant:p,showDividers:g}=uu(),f=H2[m];return jsxRuntime.jsx(reactAriaComponents.Button,{...u,slot:"trigger","data-expanded":d.isExpanded?"true":void 0,className:reactAriaComponents.composeRenderProps(l,(b,x)=>U2({isDisabled:x.isDisabled??false,isPressed:x.isPressed??false,density:m,variant:p,showDividers:g,className:b})),children:b=>{let x=b.isDisabled??false,v=i?typeof n=="function"?n({isExpanded:d.isExpanded,isDisabled:x}):n??jsxRuntime.jsx(B,{name:"CaretDown",size:m==="compact"?"xs":"sm",weight:"bold","aria-hidden":"true",className:tailwindMerge.twMerge("text-text-secondary transition-transform duration-200",d.isExpanded?"rotate-180":"rotate-0")}):null,C=v?jsxRuntime.jsx("span",{className:tailwindMerge.twMerge("flex flex-shrink-0 items-center justify-center text-text-secondary",f),"aria-hidden":"true",children:v}):s?jsxRuntime.jsx("span",{className:tailwindMerge.twMerge("flex flex-shrink-0 items-center justify-center",f),"aria-hidden":"true"}):null;return jsxRuntime.jsxs("div",{className:"flex w-full items-center gap-4",children:[a==="start"&&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]})}})}No.displayName="CollapseHeader";function ko({className:e,children:t,...r}){let{density:o,showDividers:n}=uu();return jsxRuntime.jsx(reactAriaComponents.DisclosurePanel,{...r,className:reactAriaComponents.composeRenderProps(e,a=>Y2({density:o,showDividers:n,className:a})),children:t})}ko.displayName="CollapseContent";function Kn(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 mu(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 q2({label:e,description:t,errorMessage:r,size:o="md",tooltip:n,isRequired:a,transparent:i,className:s,validationResult:c,value:l,defaultValue:u,onChange:d,placeholder:m="#000000",showColorSwatch:p=true,reserveErrorSpace:g=true,...f}){let[b,x]=Ee.useState(u||""),[v,C]=Ee.useState(l||u||""),[y,w]=Ee.useState(false),[T,R]=Ee.useState(null),{isFocused:E,handleFocus:D,handleBlur:L}=cr(),z=l!==void 0?l:b;Ee.useEffect(()=>{l!==void 0&&C(l);},[l]);let A=z?!Kn(z):false,S=Ee.useCallback(W=>{if(C(W),Kn(W)){let I=mu(W);d?d(I):x(I);}else W===""&&(d?d(""):x(""));},[d]),N=Ee.useCallback(W=>{let I=mu(W);C(I),d?d(I):x(I);},[d]),F=Ee.useCallback(W=>{if(Kn(v)){let I=mu(v);C(I),d&&I!==z?d(I):!d&&I!==b&&x(I);}L(W,f.onBlur);},[v,z,b,d,L,f.onBlur]);return jsxRuntime.jsx(reactAriaComponents.TextField,{...f,isRequired:a,className:Ce(s,"group flex flex-col"),children:({isDisabled:W})=>jsxRuntime.jsxs("div",{className:"flex flex-col",children:[e&&jsxRuntime.jsx(Me,{size:o,tooltip:n,isRequired:a,children:e}),jsxRuntime.jsx(nt,{children:jsxRuntime.jsxs("div",{className:"flex gap-2",children:[jsxRuntime.jsxs("div",{className:"flex-1 relative",children:[jsxRuntime.jsx(hs,{size:o,disabled:W,type:"text",value:v,placeholder:m,onFocus:I=>D(I,f.onFocus),onBlur:F,onChange:I=>S(I.target.value),className:tailwindMerge.twMerge(yt({isInvalid:A,isDisabled:W,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:Le[o].height},children:jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("w-6 h-6 rounded border shadow-sm",Kn(z)?"border-border-default":"border-border-default bg-background-muted"),style:Kn(z)?{backgroundColor:z}:void 0,"aria-hidden":"true",children:!Kn(z)&&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:R,children:jsxRuntime.jsx(Q,{variant:"secondary",size:o,icon:"Palette",onPress:()=>w(!y),isDisabled:W,className:"flex-shrink-0",children:"Pick"})})]})}),g?jsxRuntime.jsx("div",{className:"mt-1 min-h-[20px]",children:typeof r=="string"?jsxRuntime.jsx(pe,{size:o,children:r}):typeof r=="function"&&c?jsxRuntime.jsx(pe,{size:o,children:r(c)}):t?jsxRuntime.jsx(Se,{size:o,children:t}):null}):jsxRuntime.jsx(jsxRuntime.Fragment,{children:typeof r=="string"?jsxRuntime.jsx(pe,{size:o,className:"mt-1",children:r}):typeof r=="function"&&c?jsxRuntime.jsx(pe,{size:o,className:"mt-1",children:r(c)}):t?jsxRuntime.jsx(Se,{size:o,className:"mt-1",children:t}):null}),y&&T&&jsxRuntime.jsx(Ze,{triggerRef:{current:T},isOpen:y,onOpenChange:w,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:z||"#000000",onChange:N,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:z||"#000000"}}),jsxRuntime.jsx("div",{className:"flex-1 text-text-primary text-[length:var(--control-text-sm)] font-mono",children:z||"#000000"})]})]})})]})})}function Fg({isOpen:e,onClose:t,onConfirm:r,title:o,message:n,confirmLabel:a="Confirm",cancelLabel:i="Cancel",confirmVariant:s,isDestructive:c=false,isLoading:l=false,maxWidth:u="500px",minWidth:d="400px"}){return jsxRuntime.jsx(nr,{isOpen:e,onClose:t,title:o,maxWidth:u,minWidth:d,primaryAction:{label:a,onPress:()=>{r();},variant:s??(c?"destructive":"primary"),isLoading:l},secondaryAction:{label:i,onPress:t,variant:"secondary",isDisabled:l},children:jsxRuntime.jsx("div",{className:"text-text-primary",children:n})})}function Bg({isConnected:e,connectedAt:t,disconnectedAt:r,showTimestamp:o=false,isLoading:n,size:a="sm",shape:i="pill",...s}){if(n)return jsxRuntime.jsx(J,{className:"inline-flex h-6 w-24"});let c=e?"Connected":"Disconnected",l=e?"success":"neutral",u=null;if(o){if(e&&t)u=Wi(t);else if(!e&&r){let d=Wi(r);u=d?`Offline ${d}`:null;}}return jsxRuntime.jsxs("div",{className:"inline-flex flex-col gap-1",children:[jsxRuntime.jsx(Je,{variant:l,size:a,shape:i,dot:e,dotPulse:e,...s,children:c}),u&&jsxRuntime.jsx("span",{className:"text-xs text-text-secondary",children:u})]})}function Vg({firstName:e,lastName:t,email:r,phone:o,avatarUrl:n,href:a,LinkComponent:i,variant:s="outlined",layout:c="horizontal",showEmail:l=true,showPhone:u=false,isLoading:d=false,className:m,contentClassName:p,piiEntity:g}){let f=`${e} ${t}`.trim(),b=({children:v,className:C})=>a?i?jsxRuntime.jsx(i,{href:a,className:C,children:v}):jsxRuntime.jsx(Ue,{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 d?jsxRuntime.jsx(Ae,{variant:s,className:tailwindMerge.twMerge("flex flex-col",m),children:jsxRuntime.jsx(Ae.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(Ae,{variant:s,className:tailwindMerge.twMerge("group/card flex flex-col",m),children:jsxRuntime.jsx(Ae.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($r,{firstName:e,lastName:t,src:n,size:"xl",variant:"user",shape:"square",className:"flex-shrink-0",piiEntity:g}),jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge(x?"w-full":"flex-1 min-w-0"),children:[a&&jsxRuntime.jsx(b,{className:"after:absolute after:inset-0",children:jsxRuntime.jsx("span",{className:"sr-only",children:f})}),jsxRuntime.jsx("span",{className:"text-lg font-semibold leading-tight text-text-primary block mb-1.5 group-hover/card:text-text-brand transition-colors","data-pii-type":g?"full-name":void 0,"data-pii-entity":g,children:f}),jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("space-y-0.5",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(Ue,{href:`mailto:${r}`,variant:"unstyled",className:tailwindMerge.twMerge("text-sm leading-relaxed text-text-primary relative z-20",x?"":"truncate"),"data-pii-type":g?"email":void 0,"data-pii-entity":g,children:r})]}),u&&o&&jsxRuntime.jsxs("div",{className:"flex items-center gap-2.5 text-text-primary",children:[jsxRuntime.jsx(B,{name:"Phone",size:16,className:"text-text-secondary flex-shrink-0"}),jsxRuntime.jsx(Ue,{href:`tel:${o}`,variant:"unstyled",className:tailwindMerge.twMerge("text-sm leading-relaxed text-text-primary relative z-20",x?"":"truncate"),"data-pii-type":g?"phone":void 0,"data-pii-entity":g,children:In(o)})]})]})]})]})})})}function Es({firstName:e,lastName:t,email:r,avatarUrl:o,layout:n="stacked",size:a="md",href:i,LinkComponent:s,linkVariant:c="unstyled",emphasis:l="normal",showEmail:u=false,badge:d,avatarShape:m,isLoading:p=false,className:g,piiEntity:f}){let 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(),w={strong:"font-semibold text-text-primary",high:"font-semibold text-text-primary",normal:"text-text-primary",low:"text-text-secondary"}[l],T=({children:R,className:E})=>i?s?jsxRuntime.jsx(s,{href:i,className:E,children:R}):jsxRuntime.jsx(Ue,{href:i,variant:c,className:tailwindMerge.twMerge("hover:underline",E),asButton:false,children:R}):jsxRuntime.jsx("span",{className:E,children:R});return p?n==="inline"?jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("flex items-center",v.gap,g),children:[jsxRuntime.jsx(J,{width:v.skeletonAvatar,height:v.skeletonAvatar,className:"flex-shrink-0 rounded-full"}),jsxRuntime.jsx(J,{width:v.skeletonText,height:v.skeletonAvatar*.5})]}):jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("flex items-center",v.gap,g),children:[jsxRuntime.jsx(J,{width:v.skeletonAvatar,height:v.skeletonAvatar,className:"flex-shrink-0 rounded-full"}),jsxRuntime.jsxs("div",{className:"flex flex-col gap-1",children:[jsxRuntime.jsx(J,{width:v.skeletonText,height:16}),u&&jsxRuntime.jsx(J,{width:v.skeletonSecondary,height:12})]})]}):n==="inline"?jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("flex items-center",v.gap,g),children:[jsxRuntime.jsxs(T,{className:tailwindMerge.twMerge("flex items-center",v.gap),children:[jsxRuntime.jsx($r,{firstName:e,lastName:t,src:o,size:v.avatarSize,variant:"user",shape:b,className:"flex-shrink-0",piiEntity:f}),jsxRuntime.jsx("span",{className:tailwindMerge.twMerge("leading-normal truncate hover:text-text-primary",w,v.textSize,i&&"hover:underline hover:decoration-1 hover:underline-offset-4"),"data-pii-type":f?"full-name":void 0,"data-pii-entity":f,children:C})]}),d]}):jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("flex items-center justify-start",v.gap,g),children:[jsxRuntime.jsx($r,{firstName:e,lastName:t,src:o,size:v.avatarSize,variant:"user",shape:b,className:"flex-shrink-0",piiEntity:f}),jsxRuntime.jsxs("div",{className:"flex flex-col items-start min-w-0",children:[jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[jsxRuntime.jsx(T,{className:tailwindMerge.twMerge("leading-normal truncate hover:text-text-primary",w,v.textSize,i&&"hover:underline hover:decoration-1 hover:underline-offset-4"),children:jsxRuntime.jsx("span",{"data-pii-type":f?"full-name":void 0,"data-pii-entity":f,children:C})}),d]}),u&&r&&jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("text-text-secondary leading-normal truncate",v.secondaryTextSize),"data-pii-type":f?"email":void 0,"data-pii-entity":f,children:r})]})]})}var zg={duration:.5,ease:"easeInOut"},Po=Ee.createContext(null),an=()=>{let e=Ee.useContext(Po);if(!e)throw new Error("useChartContext must be used within a ChartContextProvider");return e};var Ja=({data:e,color:t="var(--color-viz-default)"})=>{let r=Ee.useId(),o=Ee.useId(),{xScale:n,yScale:a,animationSettings:i}=an(),s=n.range(),c=a.range();return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsxs("defs",{children:[jsxRuntime.jsxs("linearGradient",{id:r,x1:"0%",y1:"0%",x2:"0%",y2:"100%",children:[jsxRuntime.jsx("stop",{offset:"50%",stopColor:t,stopOpacity:.1}),jsxRuntime.jsx("stop",{offset:"100%",stopColor:t,stopOpacity:0})]}),jsxRuntime.jsx("clipPath",{id:o,children:jsxRuntime.jsx("rect",{x:s[0],y:c[1],width:s[1]-s[0],height:c[0]-c[1]})})]}),jsxRuntime.jsx("g",{clipPath:`url(#${o})`,children:jsxRuntime.jsxs(framerMotion.motion.g,{initial:{scaleY:0},animate:{scaleY:1},transition:{duration:i.duration,ease:i.ease},style:{transformOrigin:`0 ${c[0]}px`,transformBox:"fill-box",isolation:"isolate"},children:[jsxRuntime.jsx(shape.AreaClosed,{data:e,x:l=>n(l.xValue),y:l=>a(l.yValue),yScale:a,fill:`url(#${r})`,curve:curve.curveLinear}),jsxRuntime.jsx(shape.LinePath,{data:e,x:l=>n(l.xValue),y:l=>a(l.yValue),stroke:t,strokeWidth:3,curve:curve.curveLinear})]})})]})};var jn=({data:e,color:t="var(--color-viz-default)",opacity:r=1,categoryColors:o={}})=>{let{xScale:n,yScale:a,animationSettings:i}=an(),s=Ee.useId(),c=n.range(),l=a.range(),u=[...e].sort((p,g)=>p.xValue.getTime()-g.xValue.getTime());if(u.length===0)return null;let d=u.length>1?u[1].xValue.getTime()-u[0].xValue.getTime():15*6e4,m=Math.abs(n(new Date(u[0].xValue.getTime()+d))-n(u[0].xValue));return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("defs",{children:jsxRuntime.jsx("clipPath",{id:s,children:jsxRuntime.jsx("rect",{x:c[0],y:l[1],width:c[1]-c[0],height:l[0]-l[1]})})}),jsxRuntime.jsx("g",{clipPath:`url(#${s})`,children:jsxRuntime.jsx(framerMotion.motion.g,{initial:{scaleY:0},animate:{scaleY:1},transition:{duration:i.duration,ease:i.ease},style:{transformOrigin:`0 ${a(0)}px`,isolation:"isolate"},children:u.map((p,g)=>{let f=n(p.xValue),b=a(p.yValue),x=a(0),v=Math.min(b,x),C=Math.abs(b-x),y=u[g+1],w=y?Math.abs(n(y.xValue)-f):m,T=p.category&&o[p.category]?o[p.category]:t;return jsxRuntime.jsx(shape.Bar,{x:f-w/2,y:v,width:w,height:C,fill:T,opacity:r,rx:1},p.xValue.getTime())})})})]})};var Br=Up(cb()),ub=Up(db());var Cw=["top","left","transform","className","children","innerRef"];function Nu(){return Nu=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},Nu.apply(this,arguments)}function Sw(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 ja(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=Sw(e,Cw);return Ee__namespace.default.createElement("g",Nu({ref:c,className:(0, ub.default)("visx-group",i),transform:a||"translate("+n+", "+r+")"},l),s)}ja.propTypes={top:Br.default.number,left:Br.default.number,transform:Br.default.string,className:Br.default.string,children:Br.default.node,innerRef:Br.default.oneOfType([Br.default.string,Br.default.func,Br.default.object])};var Ye={top:0,right:0,bottom:50,left:60};function _r(e={type:"number"}){let t=i=>{if(i==null)return "-";let s=Rr({value:i,formatter:e});if(s===null)return "-";if(typeof s=="string")return s;if(typeof s=="number")return s.toString();if(typeof s=="object"&&s!==null&&"props"in s){let c=u=>{if(u==null)return "";if(typeof u=="string")return u;if(typeof u=="number")return u.toString();if(typeof u=="object"&&"props"in u){let d=u.props;if(d?.children)return Array.isArray(d.children)?d.children.map(c).join(""):c(d.children)}return ""};return c(s)||i.toString()}return i.toString()},r=i=>{if(i==null)return "-";if(typeof e=="string"){let s=Rr({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 ku=(e,t)=>{let r=d3Array.extent(e,o=>o.xValue);return scale.scaleTime({range:[Ye.left,t-Ye.right],domain:r,nice:true})},Tu=(e,t,r)=>{let o=_r(r),n=d3Array.min(e,c=>c.yValue)||0,a=d3Array.max(e,c=>c.yValue)||0,i=o.min!==void 0?o.min:n>=0?0:n*1.1,s=o.max!==void 0?o.max:a<=0?0:a*1.1;return scale.scaleLinear({range:[t-Ye.bottom,Ye.top],domain:[i,s],nice:true})};function Dw(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 js(e,t=12,r="system-ui"){return e.length===0?0:Math.max(...e.map(o=>Dw(o,t,r)))}function qa(e){return e instanceof Date&&!Number.isNaN(e.getTime())}function Mw(e,t,r=12,o=false){if(!qa(t[0])||!qa(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=_c({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)),u=js(l,r),m=u+u,p=Math.floor(e/m),g=Math.max(2,Math.min(8,p));if(g<=2)return [t[0],t[1]];let f=[t[0]];for(let b=1;b<g-1;b++){let x=b/(g-1),v=n+i*x;f.push(new Date(v));}return f.push(t[1]),f}var Ew=({top:e,scale:t,width:r})=>{let o=t.domain(),n=[o[0],o[o.length-1]],a=qa(n[0])&&qa(n[1]),i=r<400,s=a?n[0].getTime():0,c=a?n[1].getTime():0,l=Ee.useMemo(()=>a?_c({start:n[0],end:n[1]},{compact:i}):()=>"",[s,c,i,a]),u=Ee.useMemo(()=>Mw(r,n,12,i),[r,s,c,i]);return u.length===0?null:jsxRuntime.jsx(axis.Axis,{orientation:"bottom",top:e,scale:t,tickValues:u,tickFormat:d=>{let m=d;return qa(m)?l(m):""},stroke:"var(--color-border-muted)",tickStroke:"var(--color-border-muted)",tickLabelProps:(d,m,p)=>({fill:"var(--color-text-secondary)",fontSize:12,textAnchor:m===0?"start":m===p.length-1?"end":"middle"}),rangePadding:0})};function Zs(e,t=12){let r=t*2.5,o=Math.floor(e/r);return Math.max(2,Math.min(6,o))}var Lw=({left:e,scale:t,yFormatter:r,height:o})=>{let n=_r(r),a=Ee.useMemo(()=>!o||o<=0?5:Zs(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"})})},Aw=({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"})}),Iw=({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"})}),Fw=({top:e,scale:t,yFormatter:r,width:o})=>{let n=_r(r),a=Ee.useMemo(()=>{if(!o||o<=0)return 5;let s=Math.floor(o/60);return Math.max(2,Math.min(8,s))},[o]);return jsxRuntime.jsx(axis.Axis,{orientation:"bottom",top:e,scale:t,numTicks:a,tickFormat:i=>(n.tickFormat||n.format)(i),stroke:"var(--color-border-muted)",tickStroke:"var(--color-border-muted)",tickLabelProps:()=>({fill:"var(--color-text-secondary)",fontSize:12,textAnchor:"middle",dy:"0.25em"})})},Vr={Bottom:Ew,Left:Lw,CategoryBottom:Aw,CategoryLeft:Iw,NumericBottom:Fw};var Xn=({data:e,formatter:t,label:r,categoryLabels:o})=>{if(!e)return null;let n=Ee__namespace.default.useContext(Po),a=o??n?.categoryLabels,i=n?.xScale,s=_r(t),c=Ee__namespace.default.useRef(null),[l,u]=Ee__namespace.default.useState({x:0,y:0,translate:"translate(-50%, -100%)"});Ee__namespace.default.useEffect(()=>{if(!c.current)return;let b=c.current.getBoundingClientRect(),x=window.innerHeight,v=window.innerWidth,C=e.x,y=e.y,w=e.position==="left"?"translate(calc(-100% - 16px), -50%)":"translate(16px, -50%)";e.position==="left"&&C-b.width-16<0?w="translate(16px, -50%)":e.position==="right"&&C+b.width+16>v&&(w="translate(calc(-100% - 16px), -50%)"),y-b.height/2<0?y=b.height/2:y+b.height/2>x&&(y=x-b.height/2),u({x:C,y,translate:w});},[e.x,e.y,e.position]);let d=i?.domain(),p=d&&d.length===2&&d.every(f=>f instanceof Date)?_m({start:d[0],end:d[1]}):null,g=r||(p&&e.xValue instanceof Date?p(e.xValue):String(e.xValue));return jsxRuntime.jsx(framerMotion.AnimatePresence,{children:jsxRuntime.jsxs(framerMotion.motion.div,{ref:c,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:l.x,top:l.y,transform:l.translate},children:[jsxRuntime.jsx("div",{className:"mb-1 font-medium text-text-primary",children:g}),e.isEvent?jsxRuntime.jsxs("div",{className:"space-y-2",children:[e.series.length>1&&jsxRuntime.jsx("ul",{className:"list-none p-0 border-b border-border-default pb-2",children:e.series.slice(0,-1).map(f=>jsxRuntime.jsxs("li",{className:"py-0.5",children:[jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[jsxRuntime.jsxs("span",{className:"font-medium text-text-primary",children:[f.label,":"]}),jsxRuntime.jsx("span",{className:"text-text-secondary",children:s.format(f.value)})]}),f.category&&jsxRuntime.jsxs("div",{className:"mt-0.5 flex items-center gap-2",children:[jsxRuntime.jsx("div",{className:"h-3 w-3",style:{backgroundColor:f.categoryColor||f.color,borderRadius:"1px"}}),jsxRuntime.jsx("span",{className:"text-sm text-text-secondary",children:a?.[f.category]||f.category})]})]},f.label))}),(()=>{let f=e.series[e.series.length-1];return jsxRuntime.jsxs("div",{children:[jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[jsxRuntime.jsx("div",{className:"h-2 w-2 rounded-full",style:{backgroundColor:f.color}}),jsxRuntime.jsx("span",{className:"font-medium text-text-primary",children:f.label})]}),e.eventMetadata&&Object.keys(e.eventMetadata).length>0&&jsxRuntime.jsx("div",{className:"ml-4 mt-1 space-y-0.5 text-xs text-text-secondary",children:Object.entries(e.eventMetadata).map(([b,x])=>jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[jsxRuntime.jsxs("span",{className:"capitalize",children:[b,":"]}),jsxRuntime.jsx("span",{className:"font-medium",children:x})]},b))})]})})()]}):jsxRuntime.jsx("ul",{className:"list-none p-0",children:e.series.map(f=>jsxRuntime.jsxs("li",{className:"py-0.5",children:[jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[jsxRuntime.jsxs("span",{className:"font-medium text-text-primary",children:[f.label,":"]}),jsxRuntime.jsx("span",{className:"text-text-secondary",children:s.format(f.value)})]}),f.category&&jsxRuntime.jsxs("div",{className:"mt-0.5 flex items-center gap-2",children:[jsxRuntime.jsx("div",{className:"h-3 w-3",style:{backgroundColor:f.categoryColor||f.color,borderRadius:"1px"}}),jsxRuntime.jsx("span",{className:"text-sm text-text-secondary",children:a?.[f.category]||f.category})]})]},f.label))})]})})};var Uw={top:20,right:20,bottom:50,left:60},hb=({data:e,width:t,height:r,margin:o=Uw,color:n,yFormatter:a={type:"number"},showGrid:i=true,showAxes:s=true,animate:c=true,barRadius:l=4,barPadding:u=.3,onBarClick:d,onBarHover:m,activeIndex:p,className:g,style:f,"aria-label":b="Category bar chart",orientation:x="vertical",showTooltip:v=true})=>{let[C,y]=Ee.useState(null),[w,T]=Ee.useState(null),[R,E]=Ee.useState(null),[D,L]=Ee.useState(t??600),[z,A]=Ee.useState(r??300),S=Ee.useRef(null),N=p??C,F=Ee.useId(),W=n||"var(--color-viz-default)";Ee.useEffect(()=>{if(t!==void 0&&r!==void 0){L(t),A(r);return}if(!S.current)return;let P=new ResizeObserver(k=>{for(let V of k)t===void 0&&L(V.contentRect.width),r===void 0&&A(V.contentRect.height);});return P.observe(S.current),t===void 0&&L(S.current.offsetWidth),r===void 0&&A(S.current.offsetHeight||300),()=>{P.disconnect();}},[t,r]);let{xScale:I,yScale:K,innerWidth:X,innerHeight:G}=Ee.useMemo(()=>{let P=D-o.left-o.right,k=z-o.top-o.bottom;if(x==="horizontal"){let M=d3Array.max(e,h=>h.value)||0;return {xScale:scale.scaleLinear({range:[0,P],domain:[0,M*1.1],nice:true}),yScale:scale.scaleBand({range:[0,k],domain:e.map(h=>h.label),padding:u}),innerWidth:P,innerHeight:k}}let V=d3Array.max(e,M=>M.value)||0;return {xScale:scale.scaleBand({range:[0,P],domain:e.map(M=>M.label),padding:u}),yScale:scale.scaleLinear({range:[k,0],domain:[0,V*1.1],nice:true}),innerWidth:P,innerHeight:k}},[e,D,z,o,u,x]);if(e.length===0)return jsxRuntime.jsx("div",{ref:S,className:tailwindMerge.twMerge("flex h-full min-h-[200px] w-full items-center justify-center rounded-lg border border-dashed border-border-default bg-background-surface text-sm font-medium text-text-secondary",g),style:r!==void 0?{height:r,...f}:f,children:"No data available"});let Y=(P,k)=>{if(y(P),m?.(k,P),P!==null&&k){let V,M;if(x==="horizontal"){let O=I(k.value),H=K(k.label)||0,j=K.bandwidth();V=o.left+O,M=o.top+H+j/2;}else {let O=I,H=K,j=O(k.label)??0,oe=O.bandwidth(),me=H(k.value);V=o.left+j+oe/2,M=o.top+me;}let h=V>D/2;E(k.label),T({xValue:new Date,series:[{label:"Value",value:k.value,color:k.color||W}],x:V,y:M,position:h?"left":"right"});}else T(null),E(null);};return jsxRuntime.jsxs("div",{ref:S,className:tailwindMerge.twMerge("relative h-full w-full overflow-hidden rounded-lg bg-background-surface",g),style:r!==void 0?{height:r,...f}:f,"aria-label":b,role:"img",children:[jsxRuntime.jsxs("svg",{width:D,height:z,children:[jsxRuntime.jsx("defs",{children:jsxRuntime.jsx(gradient.LinearGradient,{id:`${F}-bar`,from:W,to:W,toOpacity:.85})}),jsxRuntime.jsxs(ja,{left:o.left,top:o.top,children:[i&&jsxRuntime.jsx("g",{className:"grid-lines",children:(x==="horizontal"?I.ticks(5):K.ticks(5)).map(P=>{let k=x==="horizontal"?0:K(P),V=x==="horizontal"?I(P):0;return jsxRuntime.jsx("line",{x1:x==="horizontal"?V:0,y1:x==="horizontal"?0:k,x2:x==="horizontal"?V:X,y2:x==="horizontal"?G:k,stroke:"var(--color-border-default)",strokeOpacity:.5,strokeDasharray:"2,3"},P)})}),e.map((P,k)=>{let V=N===k||N==null,M=P.color||`url(#${F}-bar)`;if(x==="horizontal"){let Z=I(P.value),ne=K.bandwidth(),ke=K(P.label)||0;return jsxRuntime.jsx(framerMotion.motion.rect,{x:0,y:ke,width:Z,height:ne,fill:M,rx:l,ry:l,initial:c?{width:0,opacity:.5}:void 0,animate:{width:Z,opacity:V?1:.5},transition:{duration:.5,delay:k*.05,ease:"easeOut",opacity:{duration:.15,delay:0}},style:{cursor:d||m?"pointer":"default"},onMouseEnter:()=>Y(k,P),onMouseLeave:()=>Y(null,null),onClick:()=>d?.(P,k)},P.label)}let h=I,O=K,H=h.bandwidth(),j=h(P.label)??0,oe=O(P.value),me=Math.max(0,G-oe);return c?jsxRuntime.jsx(framerMotion.motion.rect,{x:j,width:H,fill:M,rx:l,ry:l,initial:{y:G,height:0,opacity:.5},animate:{y:oe,height:me,opacity:V?1:.5},transition:{duration:.5,delay:k*.05,ease:"easeOut",opacity:{duration:.15,delay:0}},style:{cursor:d||m?"pointer":"default"},onMouseEnter:()=>Y(k,P),onMouseLeave:()=>Y(null,null),onClick:()=>d?.(P,k)},P.label):jsxRuntime.jsx("rect",{x:j,y:oe,width:H,height:me,fill:M,rx:l,ry:l,opacity:V?1:.5,style:{cursor:d||m?"pointer":"default",transition:"opacity 150ms ease-out"},onMouseEnter:()=>Y(k,P),onMouseLeave:()=>Y(null,null),onClick:()=>d?.(P,k)},P.label)}),s&&x==="vertical"&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(Vr.CategoryBottom,{top:G,scale:I}),jsxRuntime.jsx(Vr.Left,{left:0,scale:K,yFormatter:a,height:G})]}),s&&x==="horizontal"&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(Vr.NumericBottom,{top:G,scale:I,yFormatter:a,width:X}),jsxRuntime.jsx(Vr.CategoryLeft,{left:0,scale:K})]})]})]}),v&&jsxRuntime.jsx(Xn,{data:w,formatter:a,label:R??void 0})]})};var yb=({item:e})=>jsxRuntime.jsxs("div",{className:"flex items-center gap-2 shrink-0",children:[jsxRuntime.jsx("div",{className:"h-3 w-3 shrink-0",style:{backgroundColor:e.fill,borderRadius:"1px"}}),jsxRuntime.jsx("span",{className:"text-sm text-text-secondary whitespace-nowrap",children:e.category})]}),Jw=({items:e})=>e.length===0?null:jsxRuntime.jsx("div",{className:"flex items-center gap-3 flex-wrap",children:e.map(t=>jsxRuntime.jsx(yb,{item:t},t.category))}),$s=({items:e,onExport:t,marginLeft:r=0,marginRight:o=0,isZoomed:n=false,onResetZoom:a})=>{let[i,s]=Ee__namespace.default.useState(false),[c,l]=Ee__namespace.default.useState(null),[u,d]=Ee__namespace.default.useState(false),[m,p]=Ee__namespace.default.useState(false),g=Ee__namespace.default.useCallback(async b=>{s(true),l(b),p(false);try{await t(b);}catch(x){console.error("Export failed:",x);}finally{s(false),l(null);}},[t]),f=Ee__namespace.default.useCallback(async b=>{await g(b);},[g]);return jsxRuntime.jsxs("div",{className:"mt-4 flex items-center justify-between gap-3 min-h-[32px]",style:{marginLeft:r,marginRight:o},children:[jsxRuntime.jsx("div",{className:"hidden sm:block flex-1 min-w-0",children:jsxRuntime.jsx(Jw,{items:e})}),jsxRuntime.jsx("div",{className:"sm:hidden flex items-center gap-3",children:e.length>0&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("button",{onClick:()=>d(true),className:"text-sm text-text-secondary hover:text-text-primary transition-colors underline decoration-dotted underline-offset-4",children:"Legend"}),jsxRuntime.jsx(Xe,{isOpen:u,onClose:()=>d(false),title:"Legend",children:jsxRuntime.jsx("div",{className:"grid grid-cols-1 gap-3 p-4",children:e.map(b=>jsxRuntime.jsx(yb,{item:b},b.category))})})]})}),jsxRuntime.jsxs("div",{className:"sm:hidden flex items-center gap-2 shrink-0",children:[n&&a&&jsxRuntime.jsx(Q,{variant:"secondary",size:"sm",onPress:a,children:jsxRuntime.jsx(B,{name:"ArrowsOut",size:16})}),jsxRuntime.jsx(Q,{variant:"secondary",size:"sm",onPress:()=>p(true),isDisabled:i,children:jsxRuntime.jsx(B,{name:"Export",size:16})}),jsxRuntime.jsx(Xe,{isOpen:m,onClose:()=>p(false),title:"Export Chart",contentPadding:false,children:jsxRuntime.jsxs("div",{className:"flex flex-col",children:[jsxRuntime.jsxs("button",{onClick:()=>g("csv"),disabled:i,className:"flex items-center gap-3 px-6 py-4 text-left hover:bg-background-hover active:bg-background-muted transition-colors disabled:opacity-50 disabled:cursor-not-allowed",children:[jsxRuntime.jsx(B,{name:"List",size:20,className:"text-text-secondary"}),jsxRuntime.jsx("span",{className:"text-sm text-text-primary",children:c==="csv"?"Exporting...":"Export as CSV"})]}),jsxRuntime.jsxs("button",{onClick:()=>g("svg"),disabled:i,className:"flex items-center gap-3 px-6 py-4 text-left hover:bg-background-hover active:bg-background-muted transition-colors disabled:opacity-50 disabled:cursor-not-allowed",children:[jsxRuntime.jsx(B,{name:"Code",size:20,className:"text-text-secondary"}),jsxRuntime.jsx("span",{className:"text-sm text-text-primary",children:c==="svg"?"Exporting...":"Export as SVG"})]}),jsxRuntime.jsxs("button",{onClick:()=>g("png"),disabled:i,className:"flex items-center gap-3 px-6 py-4 text-left hover:bg-background-hover active:bg-background-muted transition-colors disabled:opacity-50 disabled:cursor-not-allowed",children:[jsxRuntime.jsx(B,{name:"DownloadSimple",size:20,className:"text-text-secondary"}),jsxRuntime.jsx("span",{className:"text-sm text-text-primary",children:c==="png"?"Exporting...":"Export as PNG"})]})]})})]}),jsxRuntime.jsxs("div",{className:"hidden sm:flex items-center gap-2 shrink-0",children:[n&&a&&jsxRuntime.jsxs(Q,{variant:"secondary",size:"sm",onPress:a,children:[jsxRuntime.jsx(B,{name:"ArrowsOut",size:16}),jsxRuntime.jsx("span",{className:"hidden sm:inline",children:"Reset Zoom"})]}),jsxRuntime.jsxs(reactAriaComponents.DialogTrigger,{children:[jsxRuntime.jsxs(Q,{variant:"secondary",size:"sm",isDisabled:i,children:[jsxRuntime.jsx(B,{name:"Export",size:16}),i?"Exporting...":"Export"]}),jsxRuntime.jsx(Ze,{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:f,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:i,children:jsxRuntime.jsxs("span",{className:"flex items-center gap-2",children:[jsxRuntime.jsx(B,{name:"List",size:14}),c==="csv"?"Exporting...":"Export as CSV"]})}),jsxRuntime.jsx(reactAriaComponents.MenuItem,{id:"svg",className:"flex items-center gap-2 px-3 py-2 text-sm text-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:i,children:jsxRuntime.jsxs("span",{className:"flex items-center gap-2",children:[jsxRuntime.jsx(B,{name:"Code",size:14}),c==="svg"?"Exporting...":"Export as SVG"]})}),jsxRuntime.jsx(reactAriaComponents.MenuItem,{id:"png",className:"flex items-center gap-2 px-3 py-2 text-sm text-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:i,children:jsxRuntime.jsxs("span",{className:"flex items-center gap-2",children:[jsxRuntime.jsx(B,{name:"DownloadSimple",size:14}),c==="png"?"Exporting...":"Export as PNG"]})})]})})]})]})]})};var Ru=({data:e,seriesMetadata:t,width:r,height:o,onBrushChange:n,brushRegion:a,margin:i=Ye})=>{let s=Ee.useRef(null),c=Ee.useRef(false),l=Ee.useMemo(()=>e.flat(),[e]),u=Ee.useMemo(()=>({top:10,bottom:15,left:i.left,right:i.right}),[i]),d=r-u.left-u.right,m=Ee.useMemo(()=>{if(l.length===0)return scale.scaleTime({domain:[new Date,new Date],range:[0,d]});let x=new Date(Math.min(...l.map(C=>C.xValue.getTime()))),v=new Date(Math.max(...l.map(C=>C.xValue.getTime())));return scale.scaleTime({domain:[x,v],range:[0,d]})},[l,d]),p=Ee.useMemo(()=>{let x=l.length>0?Math.max(0,...l.map(v=>v.yValue)):1;return scale.scaleLinear({domain:[0,x],range:[o-u.bottom,u.top]})},[l,o]),g=x=>{if(c.current)return;if(!x){n(null);return}let{x0:v,x1:C}=x;if(v===C)return;let y=new Date(v),w=new Date(C);if(!(Number.isNaN(y.getTime())||Number.isNaN(w.getTime()))){if(l.length>0){let T=Math.min(...l.map(z=>z.xValue.getTime())),R=Math.max(...l.map(z=>z.xValue.getTime())),D=(R-T)*.05;if(Math.abs(y.getTime()-T)<D&&Math.abs(w.getTime()-R)<D){n(null);return}}n([y,w]);}},f=Ee.useMemo(()=>{if(l.length!==0)return {start:{x:0,y:u.top},end:{x:d,y:o-u.bottom}}},[d,o,l]);Ee.useEffect(()=>{if(!s.current||l.length===0)return;let x=s.current.state;if(x?.isBrushing||x?.activeHandle)return;let v=Math.min(...l.map(E=>E.xValue.getTime())),C=Math.max(...l.map(E=>E.xValue.getTime())),y=a?a[0]:new Date(v),w=a?a[1]:new Date(C),T=s.current.state?.extent;if(T){let E=m.invert(T.x0),D=m.invert(T.x1),L=Math.abs(E.getTime()-y.getTime()),z=Math.abs(D.getTime()-w.getTime());if(L<1e3&&z<1e3)return}c.current=true;let R=E=>{let D=s.current.getExtent({x:m(y),y:u.top},{x:m(w),y:o-u.bottom});return {...E,start:{y:D.y0,x:D.x0},end:{y:D.y1,x:D.x1},extent:D}};s.current.updateBrush(R),setTimeout(()=>{c.current=false;},50);},[a,m,o,l]);let b={fill:"url(#brush_pattern)",fillOpacity:.15,stroke:"var(--color-border-focus)",strokeWidth:1.5,strokeOpacity:.3};return jsxRuntime.jsx("div",{className:"mt-2",children:jsxRuntime.jsxs("svg",{width:r,height:o,children:[jsxRuntime.jsx(pattern.PatternLines,{id:"brush_pattern",height:8,width:8,stroke:"var(--color-text-secondary)",strokeWidth:1,orientation:["diagonal"]}),jsxRuntime.jsxs("g",{transform:`translate(${u.left}, 0)`,children:[e.map((x,v)=>jsxRuntime.jsx(shape.LinePath,{data:x,x:C=>m(C.xValue),y:C=>p(C.yValue),stroke:t[v]?.color||"var(--color-gray-500)",strokeWidth:1.5,opacity:.8},`brush-series-${v}`)),jsxRuntime.jsx(brush.Brush,{xScale:m,yScale:p,width:d,height:o-u.top-u.bottom,margin:{top:u.top,bottom:u.bottom,left:0,right:0},handleSize:8,innerRef:s,resizeTriggerAreas:["left","right"],brushDirection:"horizontal",initialBrushPosition:f,onChange:g,onClick:()=>n(null),selectedBoxStyle:b,useWindowMoveEvents:true})]})]})})};function Nb(e){switch(e){case "command":return gt("--color-action-brand","#111111");case "success":return gt("--color-feedback-success-border","#278a4a");case "warning":return gt("--color-feedback-warning-border","#c88420");case "error":return gt("--color-feedback-error-border","#c42d2d");case "alert":return gt("--color-feedback-warning-border","#c88420");default:return gt("--color-text-secondary","#525250")}}function _s({events:e,color:t,showLabels:r=false}){let o=Ee.useContext(Po),[n,a]=Ee.useState(null);if(!o)return console.warn("ChartEventMarkers must be used within a ChartContainer"),null;let{xScale:i,yScale:s,height:c,tooltip:l,datasets:u,seriesMetadata:d,seriesTypes:m,categoryColors:p}=o,g=e.filter(x=>{let v=i(x.timestamp);return v>=Ye.left&&v<=i.range()[1]}),f=Ee.useCallback((x,v)=>{a(v);let C=i(x.timestamp),y=C>(i.range()[1]-Ye.right-Ye.left)/2+Ye.left,w=[];u&&d&&u.forEach((T,R)=>{if(T.length===0)return;let E=d3Array.bisector(S=>S.xValue).left,D=E(T,x.timestamp),L=T[D-1],z=T[D],A;if(!L)A=z;else if(!z)A=L;else {let S=Math.abs(x.timestamp.getTime()-L.xValue.getTime()),N=Math.abs(x.timestamp.getTime()-z.xValue.getTime());A=S<N?L:z;}A&&d[R]&&w.push({label:d[R].label,value:A.yValue,color:d[R].color,type:m?.[R]||"line",...A.category&&{category:A.category,categoryColor:p?.[A.category]}});}),w.push({label:x.label,value:0,color:t||Nb(x.type),type:"event"}),l.show({xValue:x.timestamp,series:w,x:C,y:w.length>1&&typeof w[0].value=="number"?s(w[0].value):c/2,position:y?"left":"right",isEvent:true,eventMetadata:x.metadata});},[i,s,c,l,t,u,d,m,p]),b=Ee.useCallback(()=>{a(null),l.hide();},[l]);return g.length===0?null:jsxRuntime.jsx("g",{className:"chart-event-markers","data-testid":"chart-event-markers",children:g.map((x,v)=>{let C=i(x.timestamp),y=t||Nb(x.type),w=n===v;return jsxRuntime.jsxs("g",{children:[jsxRuntime.jsx("line",{x1:C,y1:Ye.top,x2:C,y2:c-Ye.bottom,stroke:y,strokeWidth:w?3:2,strokeDasharray:"4 4",strokeOpacity:w?.9:.6,pointerEvents:"none"}),jsxRuntime.jsx("circle",{cx:C,cy:Ye.top,r:w?5:4,fill:y,stroke:"var(--color-background-surface)",strokeWidth:2,pointerEvents:"none"}),jsxRuntime.jsx("circle",{cx:C,cy:c-Ye.bottom,r:w?5:4,fill:y,stroke:"var(--color-background-surface)",strokeWidth:2,pointerEvents:"none"}),r&&jsxRuntime.jsx("text",{x:C,y:Ye.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:Ye.top,width:20,height:c-Ye.top-Ye.bottom,fill:"transparent",style:{cursor:"pointer"},onMouseEnter:()=>f(x,v),onMouseLeave:b})]},`${x.timestamp.getTime()}-${v}`)})})}var ei=({data:e,color:t="var(--color-viz-default)",strokeWidth:r=3,strokeDasharray:o,categoryColors:n={}})=>{let{xScale:a,yScale:i,animationSettings:s}=an(),c=i.range(),l=Object.keys(n).length>0,u=m=>m.category?n[m.category]??t:t,d=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:d?jsxRuntime.jsx("circle",{cx:a(d.xValue),cy:i(d.yValue),r,fill:l?u(d):t}):l?e.slice(0,-1).map((m,p)=>{let g=e[p+1];return jsxRuntime.jsx(shape.LinePath,{data:[m,g],x:f=>a(f.xValue),y:f=>i(f.yValue),stroke:u(m),strokeWidth:r,strokeDasharray:o,strokeLinecap:"round",curve:curve.curveLinear},`${m.xValue.getTime()}-${g.xValue.getTime()}`)}):jsxRuntime.jsx(shape.LinePath,{data:e,x:m=>a(m.xValue),y:m=>i(m.yValue),stroke:t,strokeWidth:r,strokeDasharray:o,strokeLinecap:"round",curve:curve.curveLinear})})};var Mb=e=>e.type===Ja||e.type===ei||e.type===jn,uN=e=>e.type===_s,pN=d3Array.bisector(e=>e.xValue).left,mN=()=>jsxRuntime.jsx("div",{className:"flex h-full items-center justify-center",children:jsxRuntime.jsx("p",{className:"text-text-secondary",children:"No data available"})}),fN=()=>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"})]})]}),gN=({parentWidth:e,parentHeight:t,yFormatter:r={type:"number"},isLoading:o=false,enableZoom:n=false,enableBrush:a=false,brushHeight:i=60,onZoomChange:s,children:c})=>{let[l,u]=Ee.useState(null),[d,m]=Ee.useState(null),p=Ee.useRef(null),g=Ee.useRef(0),f=Ee.useRef(""),b=Ee.useRef(null),{colorMode:x}=Et(),v=Ee.useMemo(()=>ka(),[x]),C=Ee.useMemo(()=>jc(),[x]),{datasets:y,seriesMetadata:w,categoryInfo:T,categoryColors:R,categoryLabels:E,hasBarSeries:D,firstBarSeriesIndex:L,seriesTypes:z}=Ee.useMemo(()=>{let se=Ee.Children.toArray(c).filter(ee=>Ee.isValidElement(ee)&&Mb(ee)),Ne=se.filter(ee=>ee.props.data).length,Ve=se.some(ee=>ee.type===jn),De=[],te=[],ce=[],_=null,q=null,U=null;se.forEach((ee,be)=>{let he=ee.props;if(!he.data)return;De.push(he.data);let Oo=("color"in he&&he.color?he.color:void 0)||(Ne===1?C:v[be%v.length]);te.push({label:"label"in he&&he.label||`Series ${De.length}`,color:Oo});let Tr=ee.type===Ja?"area":ee.type===ei?"line":"bar";ce.push(Tr),"categoryColors"in he&&he.categoryColors&&(_=he.categoryColors),"categoryLabels"in he&&he.categoryLabels&&(q=he.categoryLabels),ee.type===jn&&U===null&&(U=De.length-1);});let ae=null;if(_){let ee=new Set;De.forEach(be=>{be.forEach(he=>{he.category&&ee.add(he.category);});}),ae=Array.from(ee).map(be=>({label:q?.[be]||be,color:_[be]||"#6b7280"}));}return {datasets:De,seriesMetadata:te,categoryInfo:ae,categoryColors:_,categoryLabels:q,hasBarSeries:Ve,firstBarSeriesIndex:U,seriesTypes:ce}},[c,C,v,x]),A=e,S=a?i+8:0,N=t-60-S,F=Math.max(100,N),W=Ee.useMemo(()=>y.flat(),[y]),I=Ee.useMemo(()=>{if(W.length===0)return null;let $=[...W].sort((se,Ne)=>se.xValue.getTime()-Ne.xValue.getTime());return [$[0].xValue,$[$.length-1].xValue]},[W]),K=d||I,X=Ee.useMemo(()=>K?y.map(se=>se.filter(Ne=>Ne.xValue>=K[0]&&Ne.xValue<=K[1])):y,[y,K]);Ee.useEffect(()=>{s&&s(d);},[d,s]);let G=Ee.useMemo(()=>X.flat(),[X]),Y=Ee.useMemo(()=>Tu(G,F,r),[G,F,r]),P=Ee.useMemo(()=>{let $=F-Ye.top-Ye.bottom;return Zs($)},[F]),k=Ee.useMemo(()=>{let $=_r(r),se=$.tickFormat||$.format,Ve=Y.ticks(P).map(ce=>se(ce)),De=js(Ve,12,"system-ui"),te=Math.ceil(De)+12;return {...Ye,left:Math.max(te,30)}},[Y,r,P]),V=Ee.useMemo(()=>K?scale.scaleTime({domain:K,range:[k.left,A-k.right]}):ku(W,A),[K,W,A,k]),M=Ee.useCallback($=>{if(!I)return;let{scaleX:se,translateX:Ne}=$,Ve=A-k.left-k.right,[De,te]=I,ce=te.getTime()-De.getTime();if(ce<=0){m(null);return}let _=-Ne,q=_+Ve,U=Ve*se/ce,ae=_/U,ee=q/U,be=new Date(De.getTime()+ae),he=new Date(De.getTime()+ee),lt=Math.abs(be.getTime()-De.getTime()),Oo=Math.abs(he.getTime()-te.getTime()),Tr=ce*.02;lt<Tr&&Oo<Tr?m(null):m([be,he]);},[I,A,k]),h=Ee.useCallback($=>{let{left:se}=p.current?.getBoundingClientRect()||{left:0},Ne=$.clientX-se;if($.timeStamp-(g.current||0)<16)return;g.current=$.timeStamp;let Ve=V.invert(Ne),De=y.map((_,q)=>{if(!_||_.length===0)return null;let U=pN(_,Ve,1);if(U===0)return {point:_[0],datasetIndex:q};if(U>=_.length)return {point:_[_.length-1],datasetIndex:q};let ae=_[U-1],ee=_[U];if(!ae||!ee)return null;let be=Math.abs(ae.xValue.getTime()-Ve.getTime()),he=Math.abs(ee.xValue.getTime()-Ve.getTime());return {point:be<he?ae:ee,datasetIndex:q}}).filter(_=>_!==null&&w[_.datasetIndex]!==void 0).map(({point:_,datasetIndex:q})=>({label:w[q].label,value:_.yValue,color:w[q].color,point:_,type:z[q]}));if(De.length===0){u(null);return}let te=V(De[0].point.xValue),ce=te>(A-k.right-k.left)/2+k.left;u({xValue:De[0].point.xValue,series:De.map(({label:_,value:q,color:U,point:ae,type:ee})=>({label:_,value:q,color:U,type:ee,category:ae.category,categoryColor:ae.category&&R?R[ae.category]:void 0})),x:te,y:Y(De[0].value),position:ce?"left":"right"});},[y,X,w,z,V,Y,A,R,k]),O=()=>{u(null);},H=Ee.useCallback(()=>{m(null),b.current&&b.current.reset();},[]),j=Ee.useCallback($=>{if(m($),b.current&&I){let[se,Ne]=I,Ve=Ne.getTime()-se.getTime();if(Ve<=0){b.current.reset();return}if(!$)b.current.reset();else {let[De,te]=$,ce=te.getTime()-De.getTime();if(ce<=0){b.current.reset();return}let _=Ve/ce,q=A-k.left-k.right,ae=-((De.getTime()-se.getTime())/Ve)*q*_;b.current.setTransformMatrix({scaleX:_,scaleY:1,translateX:ae,translateY:0,skewX:0,skewY:0});}}},[I,A,k]),oe={width:A,height:F,xScale:V,yScale:Y,yFormatter:r,animationSettings:zg,tooltip:{data:l,show:u,hide:()=>u(null)},datasets:X,seriesMetadata:w,seriesTypes:z,categoryColors:R||void 0,categoryLabels:E||void 0},me=Ee.Children.toArray(c),Z=0,ne=[],ke=[];me.forEach($=>{if(!Ee.isValidElement($)){ne.push($);return}if(uN($))ke.push($);else if(Mb($)){let se=Z;Z++;let Ne=$.props;ne.push(Ee__namespace.default.cloneElement($,{...Ne,data:X[se]||Ne.data,color:w[se]?.color}));}else ne.push($);});let ie=(T||w).map($=>({category:$.label,fill:$.color})),ue=jp({datasets:y,metadata:{xLabel:"Date",yLabel:"Value",seriesLabels:w.map($=>$.label),timestamp:true},svgRef:p});if(o)return jsxRuntime.jsx(fN,{});if(y.length===0)return jsxRuntime.jsx(mN,{});let ge=jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("title",{children:"Data chart visualization"}),jsxRuntime.jsx("g",{children:Y.ticks(P).map($=>jsxRuntime.jsx(shape.Line,{from:{x:k.left,y:Y($)},to:{x:A-k.right,y:Y($)},stroke:"var(--color-border-muted)",strokeWidth:1},`grid-line-${$}`))}),ne,jsxRuntime.jsx(Vr.Bottom,{top:F-k.bottom,scale:V,width:A-k.left-k.right}),jsxRuntime.jsx(Vr.Left,{left:k.left,scale:Y,yFormatter:r,height:F-k.top-k.bottom}),l&&!l.isEvent&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[D&&L!==null?(()=>{let $=X[L]??[];if($.length===0)return null;let se=[...$].sort((U,ae)=>U.xValue.getTime()-ae.xValue.getTime()),Ne=se.findIndex(U=>U.xValue.getTime()===l.xValue.getTime()),Ve=se[Ne+1],De=se.length>1&&Ve?Ve.xValue.getTime()-l.xValue.getTime():15*6e4,te=Math.abs(V(new Date(l.xValue.getTime()+De))-V(l.xValue)),_=V(l.xValue)-te/2,q=Y.range();return jsxRuntime.jsx("rect",{x:_,y:q[1],width:te,height:q[0]-q[1],className:"fill-background-muted",opacity:.5,pointerEvents:"none",style:{transition:"all 100ms ease-out"}})})():null,l.series.filter($=>$.type!=="bar").map($=>jsxRuntime.jsxs("g",{children:[jsxRuntime.jsx("circle",{cx:V(l.xValue),cy:Y($.value),r:8,fill:"white",stroke:$.color,strokeWidth:2,style:{transition:"all 100ms ease-out"}}),jsxRuntime.jsx("circle",{cx:V(l.xValue),cy:Y($.value),r:4,fill:$.color,style:{transition:"all 100ms ease-out"}})]},`highlight-${$.label}`))]}),jsxRuntime.jsx("rect",{x:k.left,y:k.top,width:A-k.left-k.right,height:F-k.top-k.bottom,fill:"transparent",style:{cursor:n?"grab":"crosshair"},onMouseMove:h,onMouseLeave:O}),ke]});return jsxRuntime.jsx("div",{className:"relative flex h-full flex-col",children:jsxRuntime.jsxs(Po.Provider,{value:oe,children:[n?jsxRuntime.jsx(zoom.Zoom,{width:A,height:F,scaleXMin:1,scaleXMax:20,scaleYMin:1,scaleYMax:1,constrain:$=>{let{scaleX:se,translateX:Ne}=$,Ve=Math.max(1,Math.min(20,se)),De=1,te=A-k.left-k.right,ce=0,_=te*(1-Ve),q=Math.max(_,Math.min(ce,Ne));return {...$,scaleX:Ve,scaleY:De,translateX:q,translateY:0}},children:$=>{if(b.current=$,$.transformMatrix){let{scaleX:se,translateX:Ne}=$.transformMatrix,Ve=`${se.toFixed(4)}-${Ne.toFixed(2)}`;Ve!==f.current&&(f.current=Ve,setTimeout(()=>{M($.transformMatrix);},0));}return jsxRuntime.jsx("svg",{width:A,height:F,className:"overflow-visible",ref:se=>{p.current=se,$.containerRef.current!==se&&($.containerRef.current=se);},role:"img","aria-label":"Data chart",style:{cursor:$.isDragging?"grabbing":"grab",touchAction:"none"},onMouseDown:$.dragStart,onMouseMove:$.dragMove,onMouseUp:$.dragEnd,onMouseLeave:()=>{$.isDragging&&$.dragEnd();},onTouchStart:$.dragStart,onTouchMove:$.dragMove,onTouchEnd:$.dragEnd,children:ge})}}):jsxRuntime.jsx("svg",{width:A,height:F,className:"overflow-visible",ref:p,role:"img","aria-label":"Data chart",children:ge}),jsxRuntime.jsx(Xn,{data:l,formatter:r}),a&&I&&jsxRuntime.jsx(Ru,{data:y,seriesMetadata:w,width:A,height:i,onBrushChange:j,brushRegion:d,margin:k}),jsxRuntime.jsx($s,{onExport:ue,items:ie,marginLeft:0,marginRight:k.right,isZoomed:d!==null,onResetZoom:H})]})})},Lb=responsive.withParentSize(gN);var CN=e=>e.toLocaleString(),SN=e=>`${Math.round(e*100)}%`,Bb=({data:e,width:t=800,height:r=400,padding:o=0,barGap:n=30,formatValue:a=CN,formatPercentage:i=SN,color:s,showScale:c=true,showOverallConversion:l=true,overallConversionLabel:u="Overall Conversion:",activeStageId:d,onStageClick:m,onStageHover:p,className:g,style:f,"aria-label":b="Funnel chart"})=>{let[x,v]=Ee.useState(null),[C,y]=Ee.useState(t),w=Ee.useRef(null),T=d??x,R=Ee.useId(),E=s||"var(--color-viz-default)";Ee.useEffect(()=>{if(!w.current)return;let N=new ResizeObserver(F=>{for(let W of F)y(W.contentRect.width);});return N.observe(w.current),()=>{N.disconnect();}},[]);let{layout:D,overallConversion:L}=Ee.useMemo(()=>{if(e.length===0)return {layout:[],overallConversion:0};let N=e[0].value,F=l?60:0,W=r-o*2-F,I=(e.length-1)*n,K=(W-I)/e.length,X=e.map((Y,P)=>{let k=o+F+P*(K+n),V=N===0?0:Y.value/N,M=V,h=P===0?null:e[P-1].value,O=h==null||h===0?0:1-Y.value/h;return {stage:Y,index:P,y:k,barHeight:K,widthPercent:V,conversionRate:M,dropOff:O}}),G=N===0?0:e[e.length-1].value/N;return {layout:X,overallConversion:G,maxValue:N}},[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",g),style:{width:t,height:r,...f},children:"No funnel data available"});let z=c?60:0,A=o+z,S=C-o*2-z;return jsxRuntime.jsx("div",{ref:w,className:tailwindMerge.twMerge("relative w-full overflow-hidden rounded-lg bg-background-surface",g),style:{height:r,...f},"aria-label":b,role:"img",children:jsxRuntime.jsxs("svg",{width:"100%",height:r,className:"relative",children:[jsxRuntime.jsxs("defs",{children:[jsxRuntime.jsx(gradient.LinearGradient,{id:`${R}-bar`,from:E,to:E,toOpacity:.85}),jsxRuntime.jsx(gradient.LinearGradient,{id:`${R}-bg`,from:E,to:E,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:u})," ",i(L)]}),c&&jsxRuntime.jsx("g",{children:D.map(N=>{let F=N.y+N.barHeight/2;return jsxRuntime.jsx("text",{x:o+z-12,y:F,textAnchor:"end",dominantBaseline:"middle",className:"fill-text-secondary text-xs",children:i(N.conversionRate)},N.stage.id)})}),D.map(N=>{let F=T===N.stage.id,W=S*N.widthPercent;return jsxRuntime.jsxs("g",{children:[jsxRuntime.jsx("rect",{x:A,y:N.y,width:S,height:N.barHeight,fill:`url(#${R}-bg)`,rx:4}),jsxRuntime.jsx(framerMotion.motion.rect,{x:A,y:N.y,width:W,height:N.barHeight,fill:`url(#${R}-bar)`,rx:4,initial:{width:0},animate:{width:W},transition:{duration:.6,delay:N.index*.1,ease:"easeOut"},opacity:F||T==null?1:.5,style:{cursor:m||p?"pointer":"default",transition:"opacity 150ms ease"},onMouseEnter:()=>{v(N.stage.id),p?.(N.stage);},onMouseLeave:()=>{v(null),p?.(null);},onClick:()=>m?.(N.stage)}),jsxRuntime.jsx("rect",{x:A+10,y:N.y+N.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:N.y+N.barHeight/2+4,className:"fill-text-primary text-xs font-semibold",style:{pointerEvents:"none"},children:a(N.stage.value)}),jsxRuntime.jsxs("text",{x:A,y:N.y-8,className:"fill-text-secondary text-xs",style:{pointerEvents:"none"},children:[jsxRuntime.jsx("tspan",{children:N.index+1})," ",N.stage.label]}),N.stage.secondaryValue&&jsxRuntime.jsx("text",{x:A+16,y:N.y-24,className:"fill-text-secondary text-xs",style:{pointerEvents:"none"},children:N.stage.secondaryValue}),N.index>0&&N.dropOff>0&&jsxRuntime.jsxs("text",{x:A+S,y:N.y-8,textAnchor:"end",className:"fill-text-secondary text-xs",children:[i(N.dropOff)," drop"]}),N.stage.annotation&&jsxRuntime.jsxs("g",{children:[jsxRuntime.jsx("rect",{x:A+W+8,y:N.y+8,width:60,height:24,rx:3,className:"fill-background-muted"}),jsxRuntime.jsx("text",{x:A+W+16,y:N.y+20,className:"fill-text-secondary text-xs font-medium",children:N.stage.annotation})]})]},N.stage.id)})]})})};function wN(e,t,r){return {field:e,operator:t,value:r}}function NN(e,t="AND"){return {logic:t,conditions:e}}function ti(){return {logic:"AND",conditions:[]}}function ol(e){return !e||e.conditions.length===0?true:e.conditions.every(t=>"conditions"in t?ol(t):false)}function kN(e,t){if(!e)return [];let r=new Map(t?.map(i=>[i.field,i])),o=new Map;function n(i){if("conditions"in i)i.conditions.forEach(s=>n(s));else {let s=o.get(i.field)||[];s.push(i),o.set(i.field,s);}}e.conditions.forEach(i=>n(i));let a=[];for(let[i,s]of o.entries()){let c=r.get(i),l=c?.label||i,u=[],d=[],m=[];for(let p of s)p.operator==="in"&&Array.isArray(p.value)?u.push(...p.value):p.operator==="eq"?typeof p.value!="boolean"&&!Array.isArray(p.value)?u.push(p.value):m.push(p):["gte","gt","lte","lt"].includes(p.operator)?d.push({operator:p.operator,value:typeof p.value=="boolean"||Array.isArray(p.value)?String(p.value):p.value}):m.push(p);if(u.length>0){let g=Array.from(new Set(u)).map(f=>c?.values?.find(x=>String(x.value)===String(f))?.label??f);a.push({id:`${i}-in`,label:l,value:g.join(", ")});}if(d.length>0){let p=d.find(f=>f.operator==="gte"||f.operator==="gt"),g=d.find(f=>f.operator==="lte"||f.operator==="lt");if(p&&g){let f=p.operator==="gte"?"\u2265":">",b=g.operator==="lte"?"\u2264":"<";a.push({id:`${i}-range`,label:l,value:`${f} ${p.value} and ${b} ${g.value}`});}else for(let f of d){let b;f.operator==="gte"?b="\u2265":f.operator==="gt"?b=">":f.operator==="lte"?b="\u2264":b="<",a.push({id:`${i}-${f.operator}`,label:l,value:`${b} ${f.value}`});}}for(let p of m){let g;p.operator==="neq"?g=`\u2260 ${p.value}`:p.operator==="contains"?g=`contains "${p.value}"`:p.operator==="startsWith"?g=`starts with "${p.value}"`:p.operator==="endsWith"?g=`ends with "${p.value}"`:g=String(p.value),a.push({id:`${i}-${p.operator}`,label:l,value:g});}}return a}function Ro(e,t){let r=e||ti();return {...r,conditions:[...r.conditions,t]}}function cn(e,t){if(!e)return ti();let r=e.conditions.filter(o=>"conditions"in o?cn(o,t).conditions.length>0:o.field!==t);return {...e,conditions:r}}function dn(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 ri({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 MN=e=>{let t=yt({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 dr({label:e,description:t,errorMessage:r,size:o="md",tooltip:n,isRequired:a,transparent:i,showSearchIcon:s,isClearable:c,onClear:l,type:u,validationResult:d,reserveErrorSpace:m=true,isLoading:p=false,descriptionPlacement:g="below",...f}){let[b,x]=Ee__namespace.default.useState(false),{isFocused:v,handleFocus:C,handleBlur:y}=cr(),w=u==="password",T=Bi(p,300);return jsxRuntime.jsx(reactAriaComponents.TextField,{...f,isRequired:a,className:Ce(f.className,"group flex flex-col"),children:({isDisabled:R,isInvalid:E})=>jsxRuntime.jsxs("div",{className:"flex flex-col",children:[e&&jsxRuntime.jsx(Me,{size:o,tooltip:n,description:g==="tooltip"||g==="inline"?t:void 0,descriptionPlacement:g,isRequired:a,children:e}),jsxRuntime.jsxs(nt,{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 D={sm:14,md:16,lg:18,xl:20}[o];return T?jsxRuntime.jsx(jr,{size:D,color:"text-text-secondary"}):jsxRuntime.jsx(B,{name:"MagnifyingGlass",size:D,className:`transition-colors ${v?"text-action-brand":"text-text-secondary"}`})})()}),jsxRuntime.jsx(hs,{size:o,disabled:R,type:w?b?"text":"password":u,value:f.value,defaultValue:f.defaultValue,placeholder:f.placeholder,onFocus:D=>C(D,f.onFocus),onBlur:D=>y(D,f.onBlur),onChange:D=>f.onChange?.(D.target.value),style:s?{paddingLeft:{sm:28,md:32,lg:36,xl:37}[o]}:void 0,className:MN({isInvalid:E,isDisabled:R,isFocused:v,size:o,transparent:i,showSearchIcon:s,isClearable:c,hasValue:!!f.value,isPassword:w,className:typeof f.className=="string"?f.className:void 0})}),c&&f.value&&!R&&jsxRuntime.jsx(Ha,{onClick:()=>{l?l():f.onChange&&f.onChange("");},size:o}),w&&!R&&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:D=>{D.preventDefault(),D.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(pe,{size:o,children:r}):typeof r=="function"&&d?jsxRuntime.jsx(pe,{size:o,children:r(d)}):t&&g==="below"?jsxRuntime.jsx(Se,{size:o,children:t}):null}):jsxRuntime.jsx(jsxRuntime.Fragment,{children:typeof r=="string"?jsxRuntime.jsx(pe,{size:o,className:"mt-1",children:r}):typeof r=="function"&&d?jsxRuntime.jsx(pe,{size:o,className:"mt-1",children:r(d)}):t&&g==="below"?jsxRuntime.jsx(Se,{size:o,className:"mt-1",children:t}):null})]})})}function un({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(dr,{value:e,onChange:t,placeholder:o,showSearchIcon:true,isClearable:!!e&&!!r,onClear:r,size:n,"aria-label":o,reserveErrorSpace:false,isLoading:i})})}function oi({value:e,options:t,onChange:r,direction:o,onDirectionChange:n,showLabel:a=true,size:i="sm",className:s="",compact:c=false}){let[l,u]=Ee.useState(false),d=o!==void 0&&n!==void 0,m=t.find(p=>p.value===e);return c?jsxRuntime.jsxs("div",{className:`flex items-center gap-2 ${s}`,children:[jsxRuntime.jsx(Q,{variant:"secondary",size:i,icon:"ArrowsDownUp","aria-label":`Sort by: ${m?.label||"Select"}`,onPress:()=>u(true)}),jsxRuntime.jsx(Xe,{isOpen:l,onClose:()=>u(false),title:"Sort by",contentPadding:false,children:jsxRuntime.jsx(reactAriaComponents.ListBox,{items:t.map(p=>({id:p.value,label:p.label,value:p.value})),className:"w-full bg-background-surface p-0 outline-0 [&_[role=option]]:border-b [&_[role=option]]:border-border-default [&_[role=option]:last-child]:border-0 [&_[role=option]]:!px-6 [&_[role=option]]:!py-4 [&_[role=option]]:rounded-none",selectionMode:"single",selectedKeys:e?[e]:[],onSelectionChange:p=>{let g=Array.from(p)[0];g!=null&&(r(g),u(false));},children:p=>jsxRuntime.jsx(It,{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($o,{selectedKey:e,onSelectionChange:p=>r(p),size:i,className:"min-w-32",items:t.map(p=>({id:p.value,label:p.label,value:p.value})),renderItem:p=>p.label,"aria-label":"Sort by",reserveErrorSpace:false}),d&&jsxRuntime.jsx(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 Wb({search:e,searchMobileMode:t="expanded",filters:r=[],onRemoveFilter:o,onClearAllFilters:n,onManageFilters:a,exportControl:i,maxVisibleFilterChips:s=3,sort:c,resultsCount:l,leftControls:u,onManageColumns:d,columnPicker:m,customControls:p,actions:g,interactionMode:f="auto",sticky:b,stickyTop:x="0",zIndex:v=10,className:C="",style:y}){let w=r.length>0;if(!(e||w||a||c||l||u||d||m||p||g||i))return null;let R=b?"sticky bg-background-surface":"",E=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 ${R} ${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:[u,u&&l&&jsxRuntime.jsx("div",{className:"h-4 w-px bg-border-default"}),l&&jsxRuntime.jsx(ri,{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(oi,{value:c.value,options:c.options,onChange:c.onChange,showLabel:c.showLabel,direction:c.direction,onDirectionChange:c.onDirectionChange}),d?jsxRuntime.jsx(Q,{variant:"secondary",size:"sm",icon:"Columns",onClick:d,children:"Columns"}):m,w&&o&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[r.slice(0,s).map(D=>jsxRuntime.jsxs(Fr,{variant:"primary",size:"sm",onRemove:()=>o(D.id),isRemovable:true,children:[D.label,": ",D.value]},D.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:[g&&g.items.length>0&&jsxRuntime.jsx(jsxRuntime.Fragment,{children:g.items.map(D=>jsxRuntime.jsx(Q,{variant:D.variant||"secondary",size:"sm",icon:D.icon,onPress:D.onClick,isDisabled:D.disabled,children:D.label},D.id))}),e&&jsxRuntime.jsx("div",{className:"w-64",children:jsxRuntime.jsx(un,{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:[g&&g.items.length>0&&jsxRuntime.jsx(Hn,{items:g.items.map(D=>({id:D.id,name:D.label,iconName:D.icon,variant:D.variant==="destructive"?"destructive":"primary",disabled:D.disabled,onAction:D.onClick})),align:"left",size:"sm",children:jsxRuntime.jsx(Q,{variant:"secondary",size:"sm",icon:"DotsThreeVertical","aria-label":g.menuLabel||"Actions"})}),e&&jsxRuntime.jsx("div",{className:"flex-1",children:jsxRuntime.jsx(un,{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:[u,l&&jsxRuntime.jsx(ri,{count:l.count,label:l.label,isLoading:l.isLoading})]}),jsxRuntime.jsx("div",{className:"flex items-center gap-2",children:c&&jsxRuntime.jsx(oi,{value:c.value,options:c.options,onChange:c.onChange,showLabel:false,direction:c.direction,onDirectionChange:c.onDirectionChange,compact:f!=="desktop"})})]})]})]})}function Gb({filters:e,onRemove:t,onClearAll:r,onManageFilters:o,maxVisibleChips:n=3,mode:a="chips",showManageButton:i=true,size:s="sm",className:c=""}){let l=e.length>0,u=e.slice(0,n),d=Math.max(0,e.length-n),m=d>0,p=a==="button"&&!!o,g=a==="chips"&&i&&!!o;if(!l&&!p&&!g)return null;let f=p&&jsxRuntime.jsxs(Q,{variant:"secondary",size:s,onClick:o,className:"whitespace-nowrap",children:[e.length," ",e.length===1?"filter":"filters"]}),b=jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[g&&jsxRuntime.jsx(Q,{variant:"secondary",size:s,icon:"Sliders",onClick:o,className:"whitespace-nowrap",children:"Filters"}),l&&u.map(v=>jsxRuntime.jsxs(Fr,{variant:"secondary",size:s,onRemove:()=>t(v.id),isRemovable:true,children:[v.label,": ",v.value]},v.id)),l&&m&&o&&jsxRuntime.jsxs(Q,{variant:"ghost",size:s,onClick:o,className:"text-text-secondary hover:text-text-primary whitespace-nowrap",children:["+",d," 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"?f:b;return jsxRuntime.jsx("div",{className:`flex flex-wrap items-center gap-2 ${c}`,children:x})}function Yb({label:e,description:t,errorMessage:r,size:o="md",tooltip:n,isRequired:a,isDisabled:i,isInvalid:s,showCalendar:c=true,reserveErrorSpace:l=true,validationResult:u,className:d,...m}){let[p,g]=Ee.useState(false),f=b=>{m.onChange&&b&&m.onChange(b),g(false);};return jsxRuntime.jsxs(reactAriaComponents.DateField,{...m,isDisabled:i,isRequired:a,isInvalid:s,className:Ce(d,"flex flex-col gap-1"),children:[e&&jsxRuntime.jsx(Me,{size:o,tooltip:n,isRequired:a,children:e}),jsxRuntime.jsx(nt,{children:jsxRuntime.jsxs("div",{className:"relative w-full",children:[jsxRuntime.jsx(ni,{size:o,isDisabled:i,isInvalid:s,hasCalendar:c}),c&&!i&&jsxRuntime.jsxs(reactAriaComponents.DialogTrigger,{isOpen:p,onOpenChange:g,children:[jsxRuntime.jsx(Q,{variant:"unstyled",className:"absolute right-2 top-1/2 -translate-y-1/2 flex h-8 w-8 items-center justify-center rounded hover:bg-background-hover text-text-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(Un,{value:m.value,onChange:f,minValue:m.minValue,maxValue:m.maxValue,isDisabled:i,isReadOnly:m.isReadOnly,isDateUnavailable:m.isDateUnavailable})})})]})]})}),l?jsxRuntime.jsx("div",{className:"mt-1 min-h-[20px]",children:typeof r=="string"?jsxRuntime.jsx(pe,{size:o,children:r}):typeof r=="function"&&u?jsxRuntime.jsx(pe,{size:o,children:r(u)}):t?jsxRuntime.jsx(Se,{size:o,children:t}):null}):jsxRuntime.jsx(jsxRuntime.Fragment,{children:typeof r=="string"?jsxRuntime.jsx(pe,{size:o,className:"mt-1",children:r}):typeof r=="function"&&u?jsxRuntime.jsx(pe,{size:o,className:"mt-1",children:r(u)}):t?jsxRuntime.jsx(Se,{size:o,className:"mt-1",children:t}):null})]})}function YN({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 ni({size:e="md",isDisabled:t,isInvalid:r,hasCalendar:o,className:n,...a}){return jsxRuntime.jsx(reactAriaComponents.DateInput,{className:tailwindMerge.twMerge(yo({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:YN({isPlaceholder:i.isPlaceholder,isDisabled:!i.isEditable||t,size:e})})})}function $N({selectionState:e,isDisabled:t}){let r=`${Oe} 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 ta({errorMessage:e,...t}){return jsxRuntime.jsxs(reactAriaComponents.RangeCalendar,{...t,children:[jsxRuntime.jsx(Ps,{}),jsxRuntime.jsxs(reactAriaComponents.CalendarGrid,{className:"w-full border-separate [border-spacing:0] [&_td]:p-0 [&_td]:!border-0",children:[jsxRuntime.jsx(Rs,{}),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:$N({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 il({label:e,description:t,errorMessage:r,...o}){return jsxRuntime.jsxs(reactAriaComponents.DateRangePicker,{...o,className:Ce(o.className,"group flex flex-col gap-1"),children:[e&&jsxRuntime.jsx(Me,{children:e}),jsxRuntime.jsxs(qf,{className:"w-auto min-w-[208px]",children:[jsxRuntime.jsx(ni,{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(ni,{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(Se,{children:t}),typeof r=="string"?jsxRuntime.jsx(pe,{children:r}):null,jsxRuntime.jsx(Ze,{children:jsxRuntime.jsx(ta,{})})]})}var ak=e=>{let t=yt({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 ai({label:e,description:t,errorMessage:r,size:o="md",tooltip:n,isRequired:a,transparent:i,validationResult:s,reserveErrorSpace:c=true,descriptionPlacement:l="below",...u}){let d=Ee.useId(),{isFocused:m,handleFocus:p,handleBlur:g}=cr();return jsxRuntime.jsx(reactAriaComponents.NumberField,{...u,id:d,isRequired:a,className:Ce(u.className,"group flex flex-col gap-1"),step:u.step??1,onChange:f=>{typeof f=="number"&&(u.maxValue!=null&&f>u.maxValue?u.onChange?.(u.maxValue):u.minValue!=null&&f<u.minValue?u.onChange?.(u.minValue):u.onChange?.(f));},isInvalid:!!r||typeof u.value=="number"&&(u.maxValue!=null&&u.value>u.maxValue||u.minValue!=null&&u.value<u.minValue),children:({isDisabled:f,isInvalid:b})=>jsxRuntime.jsxs("div",{className:"flex flex-col gap-1",children:[e&&jsxRuntime.jsx(Me,{size:o,tooltip:n,description:l==="tooltip"||l==="inline"?t:void 0,descriptionPlacement:l,isRequired:a,htmlFor:d,children:e}),jsxRuntime.jsx("div",{className:"relative",children:jsxRuntime.jsxs(reactAriaComponents.Group,{className:"relative",children:[jsxRuntime.jsx(reactAriaComponents.Input,{onFocus:v=>p(v,u.onFocus),onBlur:v=>g(v,u.onBlur),className:ak({isInvalid:b||!!r,isDisabled:f,isFocused:m,transparent:i,size:o,className:typeof u.className=="string"?u.className:void 0})}),jsxRuntime.jsxs("div",{className:"absolute inset-y-[2px] right-[2px] flex flex-col divide-y divide-border-default border-l border-border-default overflow-hidden rounded-r-[calc(var(--control-border-radius)-2px)]",children:[jsxRuntime.jsx(reactAriaComponents.Button,{slot:"increment",isDisabled:f,className:"flex h-1/2 w-7 items-center justify-center bg-background-input hover:bg-background-input-hover active:bg-background-input-active disabled:cursor-not-allowed disabled:opacity-50",children:jsxRuntime.jsx(B,{name:"CaretUp",size:14})}),jsxRuntime.jsx(reactAriaComponents.Button,{slot:"decrement",isDisabled:f,className:"flex h-1/2 w-7 items-center justify-center bg-background-input hover:bg-background-input-hover active:bg-background-input-active disabled:cursor-not-allowed disabled:opacity-50",children:jsxRuntime.jsx(B,{name:"CaretDown",size:14})})]})]})}),c?jsxRuntime.jsx("div",{className:"mt-1 min-h-[20px]",children:r?jsxRuntime.jsx(pe,{size:o,children:typeof r=="function"?r(s):r}):t&&l==="below"?jsxRuntime.jsx(Se,{size:o,children:t}):null}):jsxRuntime.jsx(jsxRuntime.Fragment,{children:r?jsxRuntime.jsx(pe,{size:o,className:"mt-1",children:typeof r=="function"?r(s):r}):t&&l==="below"?jsxRuntime.jsx(Se,{size:o,className:"mt-1",children:t}):null})]})})}var Au={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 lk({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=Au[r].track,a=Oe,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 ck({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=Au[r].handle;return [o,n,e?"translate-x-[100%]":"translate-x-0",t?"forced-colors:outline-[GrayText]":""].filter(Boolean).join(" ")}function sl({children:e,variant:t="primary",size:r="md",...o}){return jsxRuntime.jsx(reactAriaComponents.Switch,{...o,className:Ce(o.className,`group flex items-center gap-2 ${Au[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:lk({...n,size:r}),children:jsxRuntime.jsx("span",{className:ck({...n,size:r})})}),e]})})}function qb(e){return new Intl.NumberFormat("en-US").format(e)}function Zb({isOpen:e,onClose:t,facetConfigs:r,facetCounts:o={},currentFilters:n,onApply:a,onClear:i,title:s="Filters",resultCount:c}){let[l,u]=Ee.useState(n),[d,m]=Ee.useState({}),[p,g]=Ee.useState({}),[f,b]=Ee.useState(null),{isMobile:x}=Rt(),v=Ee.useMemo(()=>r.some(h=>h.group),[r]),{groups:C,ungroupedFacets:y,facetsByGroup:w}=Ee.useMemo(()=>{let h=new Set,O=[],H={};for(let j of r)j.group?(h.has(j.group)||(h.add(j.group),H[j.group]=[]),H[j.group].push(j)):O.push(j);return {groups:Array.from(h),ungroupedFacets:O,facetsByGroup:H}},[r]);Ee.useEffect(()=>{e&&(u(n),m({}),g({}),b(!x&&C.length>0?C[0]:null));},[e,n,C,x]);let T=Ee.useMemo(()=>!l||ol(l)?0:dn(l).length,[l]),R=()=>{a(l),t();},E=()=>{let h=ti();u(h),i?i():a(h),t();},D=h=>{if(!l)return [];if(!dn(l).includes(h))return [];let H=[];function j(oe){if(oe)for(let me of oe.conditions)"conditions"in me?j(me):me.field===h&&me.operator==="in"&&Array.isArray(me.value)&&H.push(...me.value.map(String));}return j(l),H},L=(h,O,H)=>{let j=cn(l,h);O!==void 0&&(j=Ro(j,{field:h,operator:"gte",value:O})),H!==void 0&&(j=Ro(j,{field:h,operator:"lte",value:H})),u(j);},z=h=>{if(!l)return;let O;function H(j){if(j)for(let oe of j.conditions)"conditions"in oe?H(oe):oe.field===h&&oe.operator==="eq"&&typeof oe.value=="boolean"&&(O=oe.value);}return H(l),O},A=(h,O)=>{let H=cn(l,h);O!==void 0&&(H=Ro(H,{field:h,operator:"eq",value:O})),u(H);},S=(h,O,H)=>{let j=cn(l,h);O&&(j=Ro(j,{field:h,operator:"gte",value:O.toString()})),H&&(j=Ro(j,{field:h,operator:"lte",value:H.toString()})),u(j);},N=h=>{let O=w[h]||[],H=l?dn(l):[];return O.filter(j=>H.includes(j.field)).length},F="pr-9 bg-background-muted/50",W="border-t border-border-muted",I="text-sm font-medium text-text-link-default",K=h=>jsxRuntime.jsx("span",{className:I,children:h}),X=h=>{let O=o[h.field]||{},H=d[h.field]||"",j=[];h.values?j=h.values.map(Z=>({value:String(Z.value),label:Z.label,count:O[String(Z.value)]})):j=Object.entries(O).map(([Z,ne])=>({value:Z,label:Z,count:ne}));let oe=j.length;if(H){let Z=H.toLowerCase();j=j.filter(ne=>ne.label.toLowerCase().includes(Z));}j.sort((Z,ne)=>Z.count!==void 0&&ne.count!==void 0&&ne.count!==Z.count?ne.count-Z.count:Z.label.localeCompare(ne.label));let me=h.type||"string";if(me==="string"||!h.type){let Z=D(h.field),ne=h.searchThreshold??10,ke=h.maxVisibleOptions??50,ie=p[h.field]??false,ue=ie||j.length<=ke?j:j.slice(0,ke),ge=j.length>ke&&!ie;return jsxRuntime.jsxs(wo,{id:h.field,children:[jsxRuntime.jsx(No,{title:h.label,description:h.description,className:F,endContent:Z.length>0?K(`${Z.length} selected`):void 0}),jsxRuntime.jsx(ko,{className:W,children:jsxRuntime.jsxs("div",{className:"space-y-4 pt-4 pb-4",children:[oe>ne&&jsxRuntime.jsx(un,{value:H,onChange:$=>m(se=>({...se,[h.field]:$})),onClear:()=>m($=>({...$,[h.field]:""})),placeholder:`Search ${h.label.toLowerCase()}...`,size:"sm",className:"w-full !max-w-none pr-4"}),jsxRuntime.jsx(au,{value:Z,onChange:$=>{let se=cn(l,h.field);$.length>0&&(se=Ro(se,{field:h.field,operator:"in",value:$})),u(se);},children:jsxRuntime.jsx("div",{className:"space-y-1.5",children:ue.map($=>jsxRuntime.jsx("div",{className:"rounded-md py-2 pr-4 transition-colors hover:bg-background-hover",children:jsxRuntime.jsx(tn,{value:$.value,children:jsxRuntime.jsxs("div",{className:"flex items-center justify-between gap-3 flex-1",children:[h.renderLabel?h.renderLabel($.value,$.label):jsxRuntime.jsx("span",{className:"text-sm font-medium text-text-primary",children:$.label}),$.count!==void 0&&jsxRuntime.jsx("span",{className:"text-xs font-medium text-text-secondary tabular-nums",children:qb($.count)})]})})},$.value))})}),ge&&jsxRuntime.jsx("div",{className:"pt-2 border-t border-border-muted",children:jsxRuntime.jsxs(Q,{variant:"ghost",size:"sm",onPress:()=>g($=>({...$,[h.field]:true})),className:"w-full",children:["Show all ",j.length," options"]})}),ie&&j.length>ke&&jsxRuntime.jsx("div",{className:"pt-2 border-t border-border-muted",children:jsxRuntime.jsx(Q,{variant:"ghost",size:"sm",onPress:()=>g($=>({...$,[h.field]:false})),className:"w-full",children:"Show less"})})]})})]},h.field)}if(me==="number"){let Z,ne,ke=ue=>{if(ue)for(let ge of ue.conditions)"conditions"in ge?ke(ge):ge.field===h.field&&(ge.operator==="gte"&&typeof ge.value=="number"&&(Z=ge.value),ge.operator==="lte"&&typeof ge.value=="number"&&(ne=ge.value));};ke(l);let ie=Z!==void 0||ne!==void 0;return jsxRuntime.jsxs(wo,{id:h.field,children:[jsxRuntime.jsx(No,{title:h.label,description:h.description,className:F,endContent:ie?K(Z!==void 0&&ne!==void 0?`${Z} - ${ne}`:Z!==void 0?`\u2265 ${Z}`:`\u2264 ${ne}`):void 0}),jsxRuntime.jsx(ko,{className:W,children:jsxRuntime.jsxs("div",{className:"grid grid-cols-2 gap-4 pt-4 pb-4",children:[jsxRuntime.jsx(ai,{label:"Min",value:Z,onChange:ue=>L(h.field,ue,ne)},`${h.field}-min`),jsxRuntime.jsx(ai,{label:"Max",value:ne,onChange:ue=>L(h.field,Z,ue)},`${h.field}-max`)]})})]},h.field)}if(me==="boolean"){let Z=z(h.field);return jsxRuntime.jsxs(wo,{id:h.field,children:[jsxRuntime.jsx(No,{title:h.label,description:h.description,className:F,endContent:Z!==void 0?K(Z?"Yes":"No"):void 0}),jsxRuntime.jsx(ko,{className:W,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:Z!==void 0?Z?"Enabled":"Disabled":"No filter applied"}),jsxRuntime.jsx(sl,{size:"lg",isSelected:Z??false,onChange:ne=>A(h.field,ne?true:void 0),children:Z?"Yes":"No"})]})})]},h.field)}if(me==="date"){let Z,ne,ke=se=>{if(se)for(let Ne of se.conditions)"conditions"in Ne?ke(Ne):Ne.field===h.field&&(Ne.operator==="gte"&&(Z=String(Ne.value)),Ne.operator==="lte"&&(ne=String(Ne.value)));};ke(l);let ie=Z!==void 0||ne!==void 0,ue=se=>{if(se)try{return /^\d{4}-\d{2}-\d{2}$/.test(se)?Oa(se):void 0}catch{return}},ge=ue(Z),$=ue(ne);return jsxRuntime.jsxs(wo,{id:h.field,children:[jsxRuntime.jsx(No,{title:h.label,description:h.description,className:F,endContent:ie?K("Date range selected"):void 0}),jsxRuntime.jsx(ko,{className:W,children:jsxRuntime.jsx("div",{className:"pt-4 pb-4",children:jsxRuntime.jsx(il,{label:"Date Range",value:ge&&$?{start:ge,end:$}:void 0,onChange:se=>{se?S(h.field,se.start,se.end):S(h.field,void 0,void 0);}})})})]},h.field)}return null},G=()=>jsxRuntime.jsxs("div",{className:"flex flex-col",children:[y.map(h=>{let H=(l?dn(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:[H&&jsxRuntime.jsx("span",{className:I,children:"1 active"}),jsxRuntime.jsx(B,{name:"CaretRight",size:"sm",className:"text-text-secondary"})]})]},h.field)}),C.map(h=>{let O=N(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:[O>0&&jsxRuntime.jsxs("span",{className:I,children:[O," active"]}),jsxRuntime.jsx(B,{name:"CaretRight",size:"sm",className:"text-text-secondary"})]})]},h)})]}),Y=h=>{if(h.startsWith("__ungrouped__")){let H=h.replace("__ungrouped__",""),j=y.find(oe=>oe.field===H);return j?jsxRuntime.jsx(Yn,{variant:"contained",density:"comfortable",showDividers:true,defaultExpandedKeys:[j.field],children:X(j)}):null}let O=w[h]||[];return O.length===0?null:jsxRuntime.jsx(Yn,{variant:"contained",density:"comfortable",showDividers:true,defaultExpandedKeys:[O[0].field],children:O.map(H=>X(H))})},P=()=>{if(f){let h=f.startsWith("__ungrouped__")&&y.find(O=>O.field===f.replace("__ungrouped__",""))?.label||f;return jsxRuntime.jsxs("div",{className:"flex flex-col h-full",children:[jsxRuntime.jsxs("button",{type:"button",onClick:()=>b(null),className:"flex items-center gap-2 px-4 py-3 border-b border-border-muted hover:bg-background-hover transition-colors",children:[jsxRuntime.jsx(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:Y(f)})]})}return G()},k=()=>jsxRuntime.jsxs("div",{className:"flex h-full",children:[jsxRuntime.jsxs("div",{className:"w-48 flex-shrink-0 border-r border-border-muted overflow-y-auto bg-background-muted/30",children:[y.map(h=>{let H=(l?dn(l):[]).includes(h.field),j=f===`__ungrouped__${h.field}`;return jsxRuntime.jsxs("button",{type:"button",onClick:()=>b(`__ungrouped__${h.field}`),className:`flex items-center justify-between w-full px-4 py-3 text-left border-b border-border-muted transition-colors ${j?"bg-background-selected":"hover:bg-background-hover"}`,children:[jsxRuntime.jsx("span",{className:`text-sm truncate ${j?"font-semibold text-text-primary":"font-medium text-text-primary"}`,children:h.label}),H&&jsxRuntime.jsx("span",{className:"w-2 h-2 rounded-full bg-action-primary flex-shrink-0 ml-2"})]},h.field)}),C.map(h=>{let O=N(h),H=f===h;return jsxRuntime.jsxs("button",{type:"button",onClick:()=>b(h),className:`flex items-center justify-between w-full px-4 py-3 text-left border-b border-border-muted transition-colors ${H?"bg-background-selected":"hover:bg-background-hover"}`,children:[jsxRuntime.jsx("span",{className:`text-sm truncate ${H?"font-semibold text-text-primary":"font-medium text-text-primary"}`,children:h}),O>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:f?Y(f):jsxRuntime.jsx("div",{className:"flex items-center justify-center h-full text-text-secondary text-sm",children:"Select a category to view filters"})})]}),V=()=>jsxRuntime.jsx(Yn,{variant:"contained",density:"comfortable",showDividers:true,defaultExpandedKeys:[r[0].field],children:r.map(h=>X(h))});return jsxRuntime.jsx(nr,{isOpen:e,onClose:t,title:v&&x&&f?f.startsWith("__ungrouped__")?y.find(h=>h.field===f.replace("__ungrouped__",""))?.label||s:f:T>0?`${s} (${T} active)`:s,hideCloseIcon:false,primaryAction:{label:"Apply filters",onPress:R,variant:"primary"},secondaryAction:{label:"Clear all",onPress:E},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:qb(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?P():k():V()})}function Fu(e="left"){switch(e){case "center":return "justify-center text-center";case "right":return "justify-end text-right";default:return "justify-start text-left"}}function ur(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 Te(e="left",t){return tailwindMerge.twMerge("flex items-center gap-1 min-w-0 overflow-hidden",Fu(e),t)}function dl(e,t="\u2014"){return e==null||e===""?t:String(e)}var Do={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 Wt(e="normal"){return {strong:Do.lg,high:Do.lg,normal:Do.md,low:Do.sm}[e]}function ye(e,t){return typeof e=="function"?e(t):e}function Xb(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 $b(e){return e?"success":"neutral"}function ul(e,t=false){return t?e>0?"text-feedback-success-text":e<0?"text-feedback-error-text":"text-text-primary":"text-text-primary"}function Bu(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 Hr(e,t,r,o="hover",n="secondary",a,i){if(!t)return e;let s=typeof t=="function"&&r?t(r):t,c=Bu(o,n);return jsxRuntime.jsx("a",{href:s,className:tailwindMerge.twMerge(c,a==="strong"||a==="high"?"font-semibold":"",i),onClick:u=>{u.metaKey||u.ctrlKey;},children:e})}function Qb({row:e,context:t,actions:r,align:o="right",size:n="sm"}){let{isLoading:a}=t;if(a)return jsxRuntime.jsx(J,{className:Do.sm});let s=(typeof r=="function"?r(e):r).filter(l=>!ye(l.hidden,e));if(s.length===0)return null;let c=Te(o);return jsxRuntime.jsx("div",{className:c,children:s.map(l=>{let u=ye(l.disabled,e);return l.variant==="icon"||!l.label?jsxRuntime.jsx(Q,{variant:"icon",size:n,onPress:()=>{l.onClick(e);},isDisabled:u,"aria-label":l.label||l.id,children:jsxRuntime.jsx(B,{name:l.icon||"DotsThree",size:n==="sm"?16:20})},l.id):jsxRuntime.jsxs(Q,{variant:l.variant||"secondary",size:n,onPress:()=>{l.onClick(e);},isDisabled:u,children:[l.icon&&jsxRuntime.jsx(B,{name:l.icon,size:n==="sm"?14:16}),l.label]},l.id)})})}function ex({value:e,row:t,context:r,variant:o="default",label:n,size:a="sm",shape:i="square",dot:s,dotPosition:c="left",dotPulse:l,align:u="left",emptyText:d="\u2014",className:m,maxVisible:p=2,maxLabelLength:g}){let{isLoading:f}=r,b=(T,R)=>{if(!g||T.length<=g)return jsxRuntime.jsx(jsxRuntime.Fragment,{children:T});let E=T.slice(0,g-1)+"\u2026";return jsxRuntime.jsx(At,{content:R,children:jsxRuntime.jsx("span",{children:E})})};if(f)return jsxRuntime.jsx(J,{className:Wt("normal")});if(e==null||e==="")return jsxRuntime.jsx("div",{className:Te(u,"text-text-secondary"),children:d});if(Array.isArray(e)&&e.length===0)return jsxRuntime.jsx("div",{className:Te(u,"text-text-secondary"),children:d});let x=Te(u,m);if(Array.isArray(e)){let T=e.slice(0,p),R=e.slice(p),E=R.length>0;return jsxRuntime.jsx("div",{className:x,children:jsxRuntime.jsxs("div",{className:"flex items-center gap-1",children:[T.map((D,L)=>{let z=typeof o=="function"?o(D,t):o,A=typeof n=="function"?n(D,t):n!==void 0?n:String(D),S=typeof s=="function"?s(D,t):s,N=typeof l=="function"?l(D,t):l;return jsxRuntime.jsx("span",{className:"flex-shrink-0 whitespace-nowrap",children:jsxRuntime.jsx(Je,{variant:z,size:a,shape:i,dot:S,dotPosition:c,dotPulse:N,children:b(A,A)})},L)}),E&&jsxRuntime.jsx(At,{content:R.join(", "),children:jsxRuntime.jsx("span",{className:"flex-shrink-0 whitespace-nowrap",children:jsxRuntime.jsxs(Je,{variant:"neutral",size:a,shape:i,children:["+",R.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,w=typeof l=="function"?l(e,t):l;return jsxRuntime.jsx("div",{className:x,children:jsxRuntime.jsx(Je,{variant:v,size:a,shape:i,dot:y,dotPosition:c,dotPulse:w,children:b(C,C)})})}function tx({value:e,context:t,format:r="icon",trueText:o="Yes",falseText:n="No",trueIcon:a="Check",falseIcon:i="X",showFalse:s=true,align:c="center",emphasis:l="normal",className:u}){let{isLoading:d}=t;if(d)return jsxRuntime.jsx(J,{className:Wt(l)});let m=!!e;if(!m&&!s)return jsxRuntime.jsx("div",{className:Te(c,u)});let p=Te(c,u);switch(r){case "icon":return jsxRuntime.jsx("div",{className:p,children:jsxRuntime.jsx(B,{name:m?a:i,size:16,className:m?"text-feedback-success-text":"text-text-disabled"})});case "text":return jsxRuntime.jsx("div",{className:p,children:jsxRuntime.jsx("span",{className:ur(l),children:m?o:n})});case "badge":return jsxRuntime.jsx("div",{className:p,children:jsxRuntime.jsx(Je,{variant:m?"success":"neutral",size:"sm",children:m?o:n})});default:return null}}function ox({row:e,context:t,firstName:r,lastName:o,email:n,avatarUrl:a,layout:i="stacked",size:s="sm",href:c,LinkComponent:l,linkVariant:u="secondary",showEmail:d=false,badge:m,emphasis:p="normal",align:g="left",className:f,piiEntity:b}){let{isLoading:x}=t,v=ye(r,e),C=ye(o,e),y=ye(n,e),w=ye(a,e),T=ye(c,e),R=typeof m=="function"?m(e):m,E=ye(b,e),D=Te(g,f);return jsxRuntime.jsx("div",{className:D,children:jsxRuntime.jsx(Es,{firstName:v,lastName:C,email:y,avatarUrl:w,layout:i,size:s,href:T,LinkComponent:l,linkVariant:u,showEmail:d,badge:R,emphasis:p,isLoading:x,piiEntity:E})})}function nx({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 ax({value:e,row:t,context:r,format:o="date",customFormat:n,emptyText:a="\u2014",align:i="left",emphasis:s="normal",href:c,linkBehavior:l="hover",className:u}){let{isLoading:d}=r;if(d)return jsxRuntime.jsx(J,{className:Wt(s)});if(!e)return jsxRuntime.jsx("div",{className:Te(i,"text-text-secondary"),children:a});let m=e instanceof Date?e:new Date(e);if(isNaN(m.getTime()))return jsxRuntime.jsx("div",{className:Te(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=yk(m);break;case "custom":p=n?m.toLocaleString("en-US",n):m.toISOString();break;default:p=m.toLocaleDateString();}let g=Te(i,tailwindMerge.twMerge(ur(s),u)),f=ye(c,t);return f?jsxRuntime.jsx("div",{className:g,children:Hr(p,f,t,l)}):jsxRuntime.jsx("div",{className:g,children:p})}function yk(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 pl({manufacturer:e,model:t,deviceType:r,deviceTypeIconName:o,logoUrl:n,layout:a="stacked",size:i="md",href:s,LinkComponent:c,linkVariant:l="unstyled",showDeviceTypeIcon:u=true,showLogo:d=true,emphasis:m="normal",isLoading:p=false,className:g,piiEntity:f}){let[b,x]=Ee.useState(false),v=o||(r?Ck(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],w=n&&!b&&d,R={strong:"font-semibold text-text-primary",high:"font-semibold text-text-primary",normal:"text-text-primary",low:"text-text-secondary"}[m],E=({children:D,className:L})=>s?c?jsxRuntime.jsx(c,{href:s,className:L,children:D}):jsxRuntime.jsx(Ue,{href:s,variant:l,className:tailwindMerge.twMerge("hover:underline",L),asButton:false,children:D}):jsxRuntime.jsx("span",{className:L,children:D});if(p)return a==="inline"?jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("flex items-center",y.gap,g),children:[jsxRuntime.jsx(J,{width:y.skeletonIcon,height:y.skeletonIcon,className:"flex-shrink-0 rounded"}),jsxRuntime.jsx(J,{width:y.skeletonText,height:y.skeletonIcon*.6})]}):jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("flex items-center",y.gap,g),children:[jsxRuntime.jsx(J,{width:y.skeletonIcon,height:y.skeletonIcon,className:"flex-shrink-0"}),jsxRuntime.jsxs("div",{className:"flex flex-col gap-1",children:[jsxRuntime.jsx(J,{width:y.skeletonText,height:16}),jsxRuntime.jsx(J,{width:y.skeletonSecondary,height:12})]})]});if(a==="inline"){let D=`${e} ${t}`;return jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("flex items-center",y.gap,g),children:[jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("flex-shrink-0 flex items-center justify-center rounded border border-border-muted",y.logoSize),children:w?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(E,{className:tailwindMerge.twMerge("truncate leading-normal hover:text-text-primary",R,y.textSize,s&&"hover:underline hover:decoration-1 hover:underline-offset-4"),children:jsxRuntime.jsx("span",{"data-pii-type":f?"device-name":void 0,"data-pii-entity":f,children:D})})]})}return jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("flex items-center justify-start",y.gap,g),children:[d&&jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("flex-shrink-0 flex items-center justify-center rounded border border-border-muted",y.logoSize),children:w?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(E,{className:tailwindMerge.twMerge("truncate leading-normal hover:text-text-primary",R,y.textSize,s&&"hover:underline hover:decoration-1 hover:underline-offset-4"),children:jsxRuntime.jsx("span",{"data-pii-type":f?"device-name":void 0,"data-pii-entity":f,children:e})}),jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("flex items-center gap-1.5 text-text-secondary leading-normal",y.secondaryTextSize),children:[u&&jsxRuntime.jsx(B,{name:v,size:y.iconInTextSize,className:"flex-shrink-0"}),jsxRuntime.jsx("span",{className:"truncate","data-pii-type":f?"device-name":void 0,"data-pii-entity":f,children:t})]})]})]})}function Ck(e){switch(e){case "battery":return "BatteryHigh";case "charger":return "ChargingStation";case "inverter":return "Power";case "thermostat":return "ThermometerSimple";case "vehicle":return "CarSimple";case "meter":return "Gauge";default:return "DeviceMobile"}}function sx({row:e,context:t,manufacturer:r,model:o,deviceType:n,logoUrl:a,layout:i="stacked",size:s="sm",href:c,LinkComponent:l,linkVariant:u="secondary",showDeviceTypeIcon:d=true,showLogo:m=true,emphasis:p="normal",align:g="left",className:f,piiEntity:b}){let{isLoading:x}=t,v=ye(r,e),C=ye(o,e),y=ye(n,e),w=ye(a,e),T=ye(c,e),R=ye(b,e),E=Te(g,f);return jsxRuntime.jsx("div",{className:E,children:jsxRuntime.jsx(pl,{manufacturer:v,model:C,deviceType:y,logoUrl:w,layout:i,size:s,href:T,LinkComponent:l,linkVariant:u,showDeviceTypeIcon:d,showLogo:m,emphasis:p,isLoading:x,piiEntity:R})})}var EG={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},Sk=["charging","discharging","heat","cool","on","connected"],wk={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 Vu(e){return Sk.includes(e)}function zu(e){return wk[e]}function mn({state:e,label:t,icon:r,isLoading:o,size:n="sm",shape:a="pill",dot:i,dotPulse:s,fixedWidth:c,className:l,...u}){if(o)return jsxRuntime.jsx(J,{className:"inline-flex h-6 w-20"});let d=t??zu(e),m=Vu(e);return jsxRuntime.jsxs(Je,{variant:e,size:n,shape:a,dot:i??m,dotPulse:s??m,className:c?`w-28 justify-center ${l||""}`:l,...u,children:[r&&jsxRuntime.jsx(B,{name:r,size:n==="sm"?12:n==="md"?14:16}),d]})}var kk={importing:"Importing",exporting:"Exporting"};function cx(e){return kk[e]}function fl({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??cx(e),u=e==="exporting"?"ArrowUp":"ArrowDown",d=n==="sm"?12:n==="md"?14:16;return r?jsxRuntime.jsx(Je,{variant:e,size:n,shape:a,className:`w-6 justify-center ${s||""}`,...c,children:jsxRuntime.jsx(B,{name:u,size:d})}):jsxRuntime.jsx(Je,{variant:e,size:n,shape:a,className:i?`w-28 justify-center ${s||""}`:s,...c,children:l})}function gl({state:e,stateLabel:t,metric:r,metricFormatter:o,secondaryState:n,layout:a="horizontal",isLoading:i,size:s="sm",shape:c="pill",icon:l,fixedWidth:u,secondaryStateIconOnly:d=false,className:m}){if(i)return jsxRuntime.jsx(J,{className:tailwindMerge.twMerge("inline-flex h-6 w-32",m)});let p=r!=null&&o?Wo(r,o):null,g=a==="horizontal",f=o&&!p;return jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("inline-flex items-center",g?"gap-2":"flex-col gap-1",m),children:[(p||f)&&jsxRuntime.jsx("span",{className:tailwindMerge.twMerge("font-medium inline-block",p?"text-text-primary":"text-text-secondary",s==="sm"&&"text-xs min-w-12",s==="md"&&"text-sm min-w-14",s==="lg"&&"text-base min-w-16"),children:p||"\u2014"}),jsxRuntime.jsx(mn,{state:e,label:t,icon:l,size:s,shape:c,fixedWidth:u}),n&&jsxRuntime.jsx(jsxRuntime.Fragment,{children:n==="importing"||n==="exporting"?jsxRuntime.jsx(fl,{state:n,size:s,shape:c,fixedWidth:u,showIcon:d}):jsxRuntime.jsx(mn,{state:n,size:s,shape:c,fixedWidth:u})})]})}function dx({value:e,row:t,context:r,metric:o,metricFormatter:n,secondaryState:a,size:i="sm",shape:s="pill",label:c,icon:l,fixedWidth:u=true,align:d="left",compact:m=false,className:p}){let{isLoading:g}=r;if(g){let y={pill:"rounded-full",rounded:"rounded-lg",square:"rounded-sm"}[s],w=o!=null||n!=null;return jsxRuntime.jsx("div",{className:"flex items-center gap-2",children:w?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:Te(d,p),children:jsxRuntime.jsx("span",{className:"text-text-secondary",children:"\u2014"})});let f=ye(o,t),b=ye(a,t),x=typeof c=="function"?c(e,t):c,v=Te(d,p);return f!=null||n?jsxRuntime.jsx("div",{className:tailwindMerge.twMerge(v),children:jsxRuntime.jsx(gl,{state:e,stateLabel:x,metric:f,metricFormatter:n,secondaryState:b||void 0,size:i,shape:s,icon:l,fixedWidth:u,secondaryStateIconOnly:m,layout:"horizontal"})}):jsxRuntime.jsx("div",{className:v,children:jsxRuntime.jsx(mn,{state:e,label:x,icon:l,size:i,shape:s,fixedWidth:u})})}function px({value:e,row:t,context:r,formatter:o,align:n="left",emphasis:a="normal",href:i,linkBehavior:s="hover",className:c,emptyText:l="\u2014",emptyClassName:u="text-text-secondary"}){let{isLoading:d}=r;if(d)return jsxRuntime.jsx(J,{className:Wt(a)});let m=Rr({value:e,formatter:o,emptyText:l,emptyClassName:u}),p=ur(a),g=Te(n,tailwindMerge.twMerge(p,c)),f=jsxRuntime.jsx("div",{className:g,children:m}),b=ye(i,t);return b?Hr(f,b,t,s):f}var Hu=Ee__namespace.default.memo(({value:e,min:t,max:r,color:o="var(--color-viz-default)",backgroundColor:n="var(--color-background-muted)",colorScale:a,showLabel:i=true,formatLabel:s,height:c=20,minWidth:l=4,segments:u,segmentGap:d=2,barWidth:m,context:p})=>{let g=Ee.useMemo(()=>r===t?100:Math.max(0,Math.min(100,(e-t)/(r-t)*100)),[e,t,r]),f=Ee.useMemo(()=>o==="auto"&&a?a.type==="diverging"&&a.center!==void 0?Pa(e,t,r,a.center,a.scheme):Ta(e,t,r,a.scheme):o,[o,a,e,t,r]);if(p.isLoading)return jsxRuntime.jsx("div",{className:"flex items-center gap-2 w-full",style:{height:c},children:jsxRuntime.jsx("div",{className:"h-full flex-1 animate-pulse bg-border-default rounded"})});if(u&&u>0){let v=`calc((100% - ${d*(u-1)}px) / ${u})`,C=Math.ceil(g/100*u),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:u}).map((w,T)=>{let R=T<C;return jsxRuntime.jsx("div",{className:"rounded-sm",style:{width:v,backgroundColor:R?f:n==="none"?"transparent":n,marginRight:T<u-1?`${d}px`:0}},T)})}),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:`${g}%`,minWidth:g>0?l:0,backgroundColor:f}})}),i&&jsxRuntime.jsx("span",{className:"text-sm text-text-primary whitespace-nowrap",children:s?s(e):e.toLocaleString()})]})});Hu.displayName="HorizontalBarCell";var Wu=Ee__namespace.default.memo(({value:e,data:t,color:r="var(--color-viz-default)",categoryColors:o,context:n,width:a,height:i=40})=>{let s=e||t||[],c=b=>"xValue"in b?b.xValue:b.x,l=b=>"yValue"in b?b.yValue:b.y,u=a||100,d=i,{xScale:m,yScale:p,barWidth:g}=Ee.useMemo(()=>{if(s.length===0)return {xScale:scale.scaleTime({range:[0,u],domain:[new Date,new Date]}),yScale:scale.scaleLinear({range:[d,0],domain:[0,1]}),barWidth:2};let b=d3Array.extent(s,R=>c(R)),x=d3Array.min(s,R=>l(R))??0,v=d3Array.max(s,R=>l(R))??0,C=x<0?x:0,y=scale.scaleTime({range:[0,u],domain:b}),w=scale.scaleLinear({range:[d,0],domain:[C,v*1.05]}),T=s.length>1?u/s.length*.8:8;return {xScale:y,yScale:w,barWidth:Math.max(2,T)}},[s,u,d]);if(n.isLoading)return jsxRuntime.jsx("div",{className:"flex items-center gap-0.5",style:{width:u,height:d},children:Array.from({length:5}).map((b,x)=>jsxRuntime.jsx("div",{className:"flex-1 animate-pulse bg-border-default rounded"},x))});if(!s||s.length===0)return jsxRuntime.jsx("div",{className:"flex items-center justify-center text-text-secondary text-xs",style:{width:u,height:d},children:"No data"});let f=p(0);return jsxRuntime.jsx("svg",{width:u,height:d,children:s.map((b,x)=>{let v=l(b),C=m(c(b)),y=p(v),w=Math.abs(f-y),T=b.category&&o?.[b.category]?o[b.category]:r;return jsxRuntime.jsx(shape.Bar,{x:C-g/2,y:v>=0?y:f,width:g,height:w,fill:T,rx:1},`bar-${x}`)})})});Wu.displayName="MiniBarCell";function xx({value:e,row:t,context:r,format:o="number",decimals:n=0,prefix:a,suffix:i,emptyText:s="\u2014",align:c="right",emphasis:l="normal",href:u,linkBehavior:d="hover",showPositiveSign:m=false,colorCode:p=false,className:g}){let{isLoading:f}=r;if(f)return jsxRuntime.jsx(J,{className:Wt(l)});if(e==null||isNaN(Number(e)))return jsxRuntime.jsx("div",{className:Te(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?ul(b,true):ur(l),w=Te(c,tailwindMerge.twMerge(y,g)),T=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})]}),R=ye(u,t);return R?jsxRuntime.jsx("div",{className:w,children:Hr(T,R,t,d)}):jsxRuntime.jsx("div",{className:w,children:T})}var Gu=Ee__namespace.default.memo(({value:e,showLabel:t=true,color:r="var(--color-viz-categorical-1)",backgroundColor:o="var(--color-background-muted)",height:n=20,segments:a,segmentGap:i=2,colorScale:s,context:c})=>{let l=Ee.useMemo(()=>Math.max(0,Math.min(100,e)),[e]),u=Ee.useMemo(()=>r==="auto"&&s?s.type==="diverging"&&s.center!==void 0?Pa(e,0,100,s.center,s.scheme):Ta(e,0,100,s.scheme):r,[r,s,e]);if(c.isLoading)return jsxRuntime.jsx("div",{className:"flex items-center gap-2",style:{height:n},children:jsxRuntime.jsx("div",{className:"h-full w-full animate-pulse bg-border-default rounded"})});if(a&&a>0){let m=`calc((100% - ${i*(a-1)}px) / ${a})`,p=Math.ceil(l/100*a);return jsxRuntime.jsxs("div",{className:"flex items-center gap-2 w-full",children:[jsxRuntime.jsx("div",{className:"flex gap-0.5 flex-1",style:{height:n},children:Array.from({length:a}).map((g,f)=>{let b=f<p,x=u;if(r==="auto"&&s&&b){let v=(f+1)/a*100;s.type==="diverging"&&s.center!==void 0?x=Pa(v,0,100,s.center,s.scheme):x=Ta(v,0,100,s.scheme);}return jsxRuntime.jsx("div",{className:"rounded-sm",style:{width:m,backgroundColor:b?x:o==="none"?"transparent":o,marginRight:f<a-1?`${i}px`:0}},f)})}),t&&jsxRuntime.jsxs("span",{className:"text-sm text-text-primary whitespace-nowrap",children:[l.toFixed(0),"%"]})]})}return jsxRuntime.jsxs("div",{className:"flex items-center gap-2 w-full",children:[jsxRuntime.jsx("div",{className:"relative flex-1 rounded-sm",style:{height:n,backgroundColor:o==="none"?"transparent":o},children:jsxRuntime.jsx("div",{className:"absolute left-0 top-0 h-full rounded-sm transition-all duration-300",style:{width:`${l}%`,backgroundColor:u}})}),t&&jsxRuntime.jsxs("span",{className:"text-sm text-text-primary whitespace-nowrap",children:[l.toFixed(0),"%"]})]})});Gu.displayName="PercentBarCell";function yx({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:Te(a),children:jsxRuntime.jsx(J,{className:"h-4 w-4 rounded"})});let s=ye(n,e),c=Te(a);return jsxRuntime.jsx("div",{className:c,children:jsxRuntime.jsx(tn,{isSelected:r,onChange:l=>{o?.(e,l);},isDisabled:s,"aria-label":"Select row"})})}function hl({streetAddress:e,city:t,state:r,postalCode:o,layout:n="stacked",size:a="md",href:i,LinkComponent:s,linkVariant:c="unstyled",emphasis:l="normal",isLoading:u=false,className:d,piiEntity:m}){let g={xs:{iconSize:16,iconContainerSize:"w-7 h-7",gap:"gap-1.5",textSize:"text-xs",secondaryTextSize:"text-xs",skeletonIconStacked:28,skeletonIconInline:16,skeletonText:80,skeletonSecondary:60},sm:{iconSize:20,iconContainerSize:"w-8 h-8",gap:"gap-2",textSize:"text-sm",secondaryTextSize:"text-xs",skeletonIconStacked:32,skeletonIconInline:20,skeletonText:96,skeletonSecondary:72},md:{iconSize:24,iconContainerSize:"w-9 h-9",gap:"gap-3",textSize:"text-base",secondaryTextSize:"text-sm",skeletonIconStacked:36,skeletonIconInline:24,skeletonText:128,skeletonSecondary:96},lg:{iconSize:28,iconContainerSize:"w-10 h-10",gap:"gap-3",textSize:"text-lg",secondaryTextSize:"text-base",skeletonIconStacked:40,skeletonIconInline:28,skeletonText:160,skeletonSecondary:120}}[a],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:w,className:T})=>i?s?jsxRuntime.jsx(s,{href:i,className:T,children:w}):jsxRuntime.jsx(Ue,{href:i,variant:c,className:tailwindMerge.twMerge("hover:underline",T),asButton:false,children:w}):jsxRuntime.jsx("span",{className:T,children:w});if(u)return n==="inline"?jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("flex items-center",g.gap,d),children:[jsxRuntime.jsx(J,{width:g.skeletonIconInline,height:g.skeletonIconInline,className:"flex-shrink-0 rounded"}),jsxRuntime.jsx(J,{width:g.skeletonText,height:g.skeletonIconInline*.8})]}):jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("flex items-center",g.gap,d),children:[jsxRuntime.jsx(J,{width:g.skeletonIconStacked,height:g.skeletonIconStacked,className:"flex-shrink-0 rounded"}),jsxRuntime.jsxs("div",{className:"flex flex-col gap-1",children:[jsxRuntime.jsx(J,{width:g.skeletonText,height:16}),jsxRuntime.jsx(J,{width:g.skeletonSecondary,height:12})]})]});if(n==="inline")return jsxRuntime.jsxs(C,{className:tailwindMerge.twMerge("flex items-center",g.gap,i&&"hover:bg-background-hover transition-colors",d),children:[jsxRuntime.jsx(B,{name:"MapPin",size:g.iconSize,className:"text-text-secondary flex-shrink-0"}),jsxRuntime.jsx("span",{className:tailwindMerge.twMerge("leading-normal truncate hover:text-text-primary",b,g.textSize,i&&"hover:underline hover:decoration-1 hover:underline-offset-4"),"data-pii-type":m?"address":void 0,"data-pii-entity":m,children:e})]});let 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",g.gap,d),children:[jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("flex-shrink-0 flex items-center justify-center rounded border border-border-muted",g.iconContainerSize),children:jsxRuntime.jsx(B,{name:"MapPin",size:g.iconSize,className:"text-text-secondary"})}),jsxRuntime.jsxs("div",{className:"flex flex-col items-start min-w-0",children:[jsxRuntime.jsx(C,{className:tailwindMerge.twMerge("leading-normal truncate hover:text-text-primary",b,g.textSize,i&&"hover:underline hover:decoration-1 hover:underline-offset-4"),children:jsxRuntime.jsx("span",{"data-pii-type":m?"address":void 0,"data-pii-entity":m,children:e})}),v&&jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("text-text-secondary leading-normal truncate",g.secondaryTextSize),"data-pii-type":y(),"data-pii-entity":m,children:v})]})]})}function Cx({row:e,context:t,streetAddress:r,city:o,state:n,postalCode:a,layout:i="stacked",size:s="sm",href:c,LinkComponent:l,linkVariant:u="secondary",emphasis:d="normal",align:m="left",className:p,piiEntity:g}){let{isLoading:f}=t,b=ye(r,e),x=ye(o,e),v=ye(n,e),C=ye(a,e),y=ye(c,e),w=ye(g,e),T=Te(m,p);return jsxRuntime.jsx("div",{className:T,children:jsxRuntime.jsx(hl,{streetAddress:b,city:x,state:v,postalCode:C,layout:i,size:s,href:y,LinkComponent:l,linkVariant:u,emphasis:d,isLoading:f,piiEntity:w})})}var Uu=Ee__namespace.default.memo(({value:e,data:t,type:r="line",color:o="var(--color-viz-default)",strokeWidth:n=2,categoryColors:a,context:i,width:s,height:c=40})=>{let l=e||t||[],u=s||100,d=c,{xScale:m,yScale:p}=Ee.useMemo(()=>{if(l.length===0)return {xScale:scale.scaleTime({range:[0,u],domain:[new Date,new Date]}),yScale:scale.scaleLinear({range:[d,0],domain:[0,1]})};let f=d3Array.extent(l,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,u],domain:f}),yScale:scale.scaleLinear({range:[d,0],domain:[b-v,x+v]})}},[l,u,d]);if(i.isLoading)return jsxRuntime.jsx("div",{className:"flex items-center",style:{width:u,height:d},children:jsxRuntime.jsx("div",{className:"h-1 w-full animate-pulse bg-border-default rounded"})});if(!l||l.length===0)return jsxRuntime.jsx("div",{className:"flex items-center justify-center text-text-secondary text-xs",style:{width:u,height:d},children:"No data"});let g=a&&l[0]?.category&&a[l[0].category]?a[l[0].category]:o;return jsxRuntime.jsxs("svg",{width:u,height:d,className:"overflow-visible",children:[(r==="area"||r==="both")&&jsxRuntime.jsx(shape.AreaClosed,{data:l,x:f=>m(f.xValue),y:f=>p(f.yValue),yScale:p,fill:g,fillOpacity:.15,curve:curve.curveLinear}),(r==="line"||r==="both")&&jsxRuntime.jsx(shape.LinePath,{data:l,x:f=>m(f.xValue),y:f=>p(f.yValue),stroke:g,strokeWidth:n,strokeLinecap:"round",curve:curve.curveLinear})]})});Uu.displayName="SparklineCell";function kx({value:e,row:t,context:r,prefix:o,suffix:n,emptyText:a="\u2014",href:i,linkBehavior:s="hover",linkVariant:c="secondary",emphasis:l="normal",truncate:u=true,copyable:d=false,align:m="left",className:p,piiType:g,piiEntity:f}){let{isLoading:b}=r;if(b)return jsxRuntime.jsx(J,{className:Wt(l)});let x=dl(e,a),v=ye(i,t),C=ye(f,t),y=x,w=false,T=false;if(u&&x&&typeof x=="string")if(typeof u=="boolean")T=true;else {let{position:N="end",length:F=16,ellipsis:W="...",tooltip:I=true}=u;if(x.length>F){switch(N){case "start":y=Ki(x,F);break;case "middle":y=Fn(x,F);break;case "end":y=Ji(x,F,W);break}w=I;}}let R=g&&C?{"data-pii-type":g,"data-pii-entity":C}:{},E=Object.keys(R).length>0,D=jsxRuntime.jsx("span",{className:T?"truncate":"",...R,children:y}),L=w?jsxRuntime.jsx(At,{content:E?jsxRuntime.jsx("span",{...R,children:String(x)}):String(x),children:D}):D,z=jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[o&&jsxRuntime.jsx("span",{className:"text-text-secondary",children:o}),L,n&&jsxRuntime.jsx("span",{className:"text-text-secondary",children:n})]}),A=z;if(d&&x&&x!==a){let N=typeof d=="function"?d(t):String(x);A=jsxRuntime.jsx(vo,{value:N,size:"sm",children:z});}if(v){let N=Te(m,p);return jsxRuntime.jsx("div",{className:N,children:Hr(A,v,t,s,c,l)})}let S=Te(m,tailwindMerge.twMerge(ur(l),p));return jsxRuntime.jsx("div",{className:S,children:A})}var eT={sm:"sm:hidden",md:"md:hidden",lg:"lg:hidden",xl:"xl:hidden"},tT={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 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 Sl({row:e,columns:t,density:r,isLoading:o,onClick:n}){let a=t.filter(d=>d.mobile!==false).map(d=>{let m=d.mobile===false?null:d.mobile;return {...d,mobilePriority:m?.priority??2,mobileFormat:m?.format??"secondary",showLabel:m?.label??m?.format==="secondary",icon:m?.icon}}).sort((d,m)=>d.mobilePriority-m.mobilePriority),i=a.filter(d=>d.mobilePriority===1||d.mobileFormat==="primary"),s=a.filter(d=>d.mobilePriority===2&&d.mobileFormat!=="primary"),c=a.filter(d=>d.mobileFormat==="badge"),l={isLoading:!!o,rowIndex:0,columnIndex:0,density:r};return jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("border-b border-border-default bg-background-surface transition-colors",n&&"cursor-pointer hover:bg-background-hover active:bg-background-pressed",{compact:"px-3 py-2",default:"px-4 py-3",relaxed:"px-4 py-4"}[r]),onClick:n,role:n?"button":void 0,tabIndex:n?0:void 0,children:[i.length>0&&jsxRuntime.jsxs("div",{className:"mb-2 flex items-start justify-between",children:[jsxRuntime.jsx("div",{className:"flex-1",children:i.map(d=>{let m=yl(e,d);return jsxRuntime.jsx("div",{className:"font-medium text-text-primary [&>*]:!justify-start [&>*]:!text-left",children:vl(m,e,d,l)},d.id)})}),c.length>0&&jsxRuntime.jsx("div",{className:"ml-2 flex flex-wrap gap-1",children:c.map(d=>{let m=yl(e,d);return jsxRuntime.jsx("div",{className:"inline-flex",children:vl(m,e,d,l)},d.id)})})]}),s.length>0&&jsxRuntime.jsx("div",{className:"space-y-1",children:s.map(d=>{let m=yl(e,d),p=d.showLabel&&d.label;return jsxRuntime.jsxs("div",{className:"flex items-center text-sm text-text-secondary",children:[d.icon&&jsxRuntime.jsx(B,{name:d.icon,className:"mr-1.5 h-4 w-4 flex-shrink-0"}),p&&jsxRuntime.jsxs("span",{className:"mr-1 font-medium",children:[d.label,":"]}),jsxRuntime.jsx("span",{className:"truncate [&>*]:!justify-start [&>*]:!text-left",children:vl(m,e,d,l)})]},d.id)})})]})}function wl({row:e,columns:t,density:r,isLoading:o,onClick:n}){let a=t.filter(c=>c.mobile!==false),i={isLoading:!!o,rowIndex:0,columnIndex:0,density:r};return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("border-b border-border-default bg-background-surface transition-colors",n&&"cursor-pointer hover:bg-background-hover active:bg-background-pressed",{compact:"px-3 py-2",default:"px-4 py-3",relaxed:"px-4 py-4"}[r]),onClick:n,role:n?"button":void 0,tabIndex:n?0:void 0,children:jsxRuntime.jsx("div",{className:"space-y-2",children:a.map((c,l)=>{let u=yl(e,c),d=l===0;return jsxRuntime.jsxs("div",{children:[!d&&jsxRuntime.jsx("div",{className:"text-xs text-text-secondary",children:c.label}),jsxRuntime.jsx("div",{className:tailwindMerge.twMerge(d?"font-medium text-text-primary":"text-sm text-text-primary","[&>*]:!justify-start [&>*]:!text-left"),children:vl(u,e,c,i)})]},c.id)})})})}function Tx(e="md"){return {mobile:eT[e],desktop:tT[e]}}function Px({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 fT={compact:"py-1.5 px-3 text-sm",default:"py-3 px-4 text-sm",relaxed:"py-4 px-4 text-base"},gT={left:"text-left justify-start",center:"text-center justify-center",right:"text-right justify-end"};function bT(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 xT({column:e,sortConfig:t,onSort:r,stickyHeader:o,stickyFirstColumn:n,isFirstColumn:a,density:i="default",isLoading:s=false}){let c=e.reorderable!==false,{attributes:l,listeners:u,setNodeRef:d,transform:m,transition:p,isDragging:g}=sortable.useSortable({id:e.id,disabled:!c||s}),f=t?.columnId===e.id,b=f?t.direction:null,x=n&&a,v={...bT(e),transform:utilities.CSS.Transform.toString(m),transition:p,opacity:g?.8:1,zIndex:g?50:void 0};return jsxRuntime.jsx("div",{ref:d,className:tailwindMerge.twMerge("flex items-center border-b border-border-default bg-background-surface",e.sortable?"gap-2":"gap-1",fT[i],gT[e.align||"left"],o&&"sticky top-0 z-10",x&&"sticky left-0 z-20 shadow-[2px_0_4px_-2px_rgba(0,0,0,0.1)]",o&&x&&"z-30",e.sortable&&!s&&"hover:bg-background-hover",s&&"cursor-not-allowed opacity-60",f?"font-bold text-text-primary":"font-medium text-text-secondary",g&&"bg-background-hover"),style:v,role:"columnheader","aria-sort":f?b==="asc"?"ascending":"descending":"none","aria-disabled":s,...l,...u,children:s?jsxRuntime.jsx(J,{className:"h-4 w-24"}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("span",{className:"flex-1 truncate cursor-pointer",onClick:()=>!s&&e.sortable&&r(e.id),children:e.label}),e.sortable&&jsxRuntime.jsx("button",{type:"button",className:"flex flex-shrink-0 cursor-pointer",onClick:()=>!s&&r(e.id),"aria-label":`Sort by ${e.label}`,children:f?jsxRuntime.jsx(B,{name: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 Dx({columns:e,columnOrder:t,onColumnOrderChange:r,sortConfig:o,onSort:n,stickyHeader:a,stickyFirstColumn:i,density:s="default",isLoading:c=false}){let l=core.useSensors(core.useSensor(core.PointerSensor,{activationConstraint:{distance:5}}),core.useSensor(core.KeyboardSensor,{coordinateGetter:sortable.sortableKeyboardCoordinates})),u=new Map(e.map(p=>[p.id,p])),d=p=>{let{active:g,over:f}=p;if(f&&g.id!==f.id){let b=t.indexOf(g.id),x=t.indexOf(f.id);if(u.get(f.id)?.reorderable===false)return;let C=0;for(let R=0;R<t.length&&u.get(t[R])?.reorderable===false;R++)C=R+1;if(x<C)return;let y=Math.min(b,x),w=Math.max(b,x);for(let R=y;R<=w;R++){if(R===b)continue;if(u.get(t[R])?.reorderable===false)return}let T=sortable.arrayMove(t,b,x);r(T);}},m=t.map(p=>u.get(p)).filter(p=>p!==void 0);return jsxRuntime.jsx(core.DndContext,{sensors:l,collisionDetection:core.closestCenter,onDragEnd:d,children:jsxRuntime.jsx(sortable.SortableContext,{items:t,strategy:sortable.horizontalListSortingStrategy,children:jsxRuntime.jsx("div",{className:"contents",role:"rowgroup",children:m.map((p,g)=>jsxRuntime.jsx(xT,{column:p,sortConfig:o,onSort:n,stickyHeader:a,stickyFirstColumn:i,isFirstColumn:g===0,density:s,isLoading:c},p.id))})})})}var ju={compact:"py-1.5 px-3 text-sm",default:"py-3 px-4 text-sm",relaxed:"py-4 px-4 text-base"},qu={left:"text-left justify-start",center:"text-center justify-center",right:"text-right justify-end"},wT={full:"w-full",auto:"w-auto inline-block",contained:"w-full max-w-6xl mx-auto"},NT={auto:"table-auto",fixed:"table-fixed",responsive:"table-auto"};function Zu(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 kT(e,t){return t.accessor?typeof t.accessor=="function"?t.accessor(e):e[t.accessor]:null}function TT({column:e,sortConfig:t,onSort:r,stickyHeader:o,stickyFirstColumn:n,isFirstColumn:a,density:i="default",isLoading:s=false}){let c=t?.columnId===e.id,l=c?t.direction:null,u=n&&a;return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("flex items-center border-b border-border-default bg-background-surface",e.sortable?"gap-2":"gap-1",ju[i],qu[e.align||"left"],o&&"sticky top-0 z-10",u&&"sticky left-0 z-20 shadow-[2px_0_4px_-2px_rgba(0,0,0,0.1)]",o&&u&&"z-30",e.sortable&&!s&&"cursor-pointer hover:bg-background-hover",s&&"cursor-not-allowed opacity-60",c?"font-bold text-text-primary":"font-medium text-text-secondary"),onClick:()=>!s&&e.sortable&&r(e.id),role:"columnheader","aria-sort":c?l==="asc"?"ascending":"descending":"none","aria-disabled":s,style:Zu(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 PT({column:e,row:t,rowIndex:r,columnIndex:o,isHovered:n,density:a="default",className:i,stickyFirstColumn:s}){let c=s&&o===0,l=kT(t,e),u={isLoading:false,isHovered:n,rowIndex:r,columnIndex:o,density:a},d;if(e.cell){let m=e.cell,p=typeof e.cellProps=="function"?e.cellProps(l,t):e.cellProps;d=jsxRuntime.jsx(m,{value:l,row:t,context:u,...p});}else e.render?d=e.render(l,t,u):d=jsxRuntime.jsx("span",{className:"truncate",children:l?.toString()??""});if(e.popover){let m=e.popover,p,g="top",f=false,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,g=m.placement||"top",f=m.showArrow??false,b=m.trigger||"hover"),d=jsxRuntime.jsxs(reactAriaComponents.DialogTrigger,{...b==="hover"?{trigger:"longPress"}:{},children:[jsxRuntime.jsx("div",{className:"cursor-help",children:d}),jsxRuntime.jsx(Ze,{placement:g,showArrow:f,children:jsxRuntime.jsx("div",{className:"p-2",children:p})})]});}return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("flex items-center border-b border-border-default bg-background-surface",e.noCellPadding?"":ju[a],qu[e.align||"left"],c&&"sticky left-0 z-10 shadow-[2px_0_4px_-2px_rgba(0,0,0,0.1)]",i),role:"cell",style:Zu(e),children:d})}function RT({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?"":ju[o],qu[e.align||"left"],a&&"sticky left-0 z-10 shadow-[2px_0_4px_-2px_rgba(0,0,0,0.1)]"),role:"cell",style:Zu(e),children:s})}function DT(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 Mx({columns:e,row:t,rowIndex:r,density:o="default",onClick:n,stickyFirstColumn:a}){let[i,s]=Ee.useState(false),c=Ee.useCallback(l=>{if(!n)return;let u=l.target,d=l.currentTarget;DT(u,d)||n(t);},[n,t]);return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("contents group",n&&"cursor-pointer"),role:"row",onClick:c,onMouseEnter:()=>s(true),onMouseLeave:()=>s(false),children:e.map((l,u)=>jsxRuntime.jsx(PT,{column:l,row:t,rowIndex:r,columnIndex:u,isHovered:i,density:o,className:n?"group-hover:bg-background-hover":"",stickyFirstColumn:a},l.id))})}function Ex({columns:e,rowIndex:t,density:r="default",stickyFirstColumn:o}){return jsxRuntime.jsx("div",{className:"contents",role:"row",children:e.map((n,a)=>jsxRuntime.jsx(RT,{column:n,rowIndex:t,columnIndex:a,density:r,stickyFirstColumn:o},n.id))})}function Lx({columns:e,data:t,className:r,density:o="default",width:n="full",height:a,maxHeight:i,layout:s="auto",mobileRenderer:c="auto",customMobileRowRender:l,mobileBreakpoint:u="md",isLoading:d=false,loadingState:m,loadingRowCount:p=5,onLoadMore:g,hasMore:f=false,enableVirtualization:b,estimatedRowHeight:x,loadingIndicator:v,stickyHeader:C=false,stickyFirstColumn:y=false,onRowClick:w,getRowId:T,hideHeader:R=false,sortConfig:E,onSort:D,"aria-label":L,enableColumnReorder:z=false,columnOrder:A,onColumnOrderChange:S}){let[N,F]=Ee.useState(null),W=E!==void 0,I=W?E:N,K=Ee.useRef(null),X=Ee.useMemo(()=>e.map(te=>te.id),[e]),[G,Y]=Ee.useState(X),P=A!==void 0,k=P?A:G;Ee.useEffect(()=>{P||Y(te=>{let ce=e.map(ee=>ee.id),_=new Set(ce),q=new Set(te),U=te.filter(ee=>_.has(ee)),ae=ce.filter(ee=>!q.has(ee));return [...U,...ae]});},[e,P]);let V=Ee.useCallback(te=>{P||Y(te),S?.(te);},[P,S]),M=Ee.useMemo(()=>{if(!z&&!A)return e;let te=new Map(e.map(ce=>[ce.id,ce]));return k.map(ce=>te.get(ce)).filter(ce=>ce!==void 0)},[e,k,z,A]),h=g?po({items:t,onLoadMore:g,hasMore:f,isLoading:d,loadingState:m,enableVirtualization:b,estimatedItemSize:x||(o==="compact"?40:o==="relaxed"?60:48),overscan:5}):null,O=h?.scrollRef??K,{loadMoreRef:H,virtualizer:j,virtualItems:oe,isLoadingMore:me,computedLoadingState:Z}=h||{},{gridTemplateColumns:ne,totalMinWidth:ke}=Ee.useMemo(()=>{let te=0;return {gridTemplateColumns:M.map(_=>{if(_.minWidth?te+=typeof _.minWidth=="number"?_.minWidth:0:_.width&&typeof _.width=="number"&&(te+=_.width),_.width)return typeof _.width=="number"?`${_.width}px`:_.width;if(_.flex)return `${_.flex}fr`;if(_.minWidth&&_.maxWidth){let q=typeof _.minWidth=="number"?`${_.minWidth}px`:_.minWidth,U=typeof _.maxWidth=="number"?`${_.maxWidth}px`:_.maxWidth;return `minmax(${q}, ${U})`}return _.minWidth?`minmax(${typeof _.minWidth=="number"?`${_.minWidth}px`:_.minWidth}, 1fr)`:_.maxWidth?`minmax(0, ${typeof _.maxWidth=="number"?`${_.maxWidth}px`:_.maxWidth})`:"1fr"}).join(" "),totalMinWidth:te}},[M]),ie=Ee.useCallback(te=>{if(!e.find(q=>q.id===te)?.sortable)return;let _;I?.columnId===te?_={columnId:te,direction:I.direction==="asc"?"desc":"asc"}:_={columnId:te,direction:"asc"},W||F(_),D?.(_);},[e,I,D,W]),ue=Z==="loading"||d&&t.length===0,ge={};a?(ge.height=typeof a=="number"?`${a}px`:a,ge.overflowY="auto"):i?(ge.maxHeight=typeof i=="number"?`${i}px`:i,ge.overflowY="auto"):g&&(ge.height="600px",ge.overflowY="auto");let $=tailwindMerge.twMerge(wT[n],!g&&(s==="responsive"?"overflow-x-auto scrollbar-visible":"overflow-auto scrollbar-visible"),r),se=Tx(u),Ne=c!=="none",Ve=(te,ce)=>Ne?c==="custom"&&l?l(te,ce):jsxRuntime.jsx(c==="cards"?wl:Sl,{row:te,columns:M,density:o,isLoading:d,onClick:w?()=>w(te):void 0}):null,De=j?oe?.map(te=>({virtualItem:te,row:t[te.index],index:te.index}))||[]:t.map((te,ce)=>({row:te,index:ce,virtualItem:null}));return jsxRuntime.jsxs("div",{ref:O,className:$,style:{...ge,position:j?"relative":void 0},children:[jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("grid border-separate border-spacing-0",NT[s],n==="auto"?"inline-grid w-auto":"w-full",Ne&&se.desktop),role:"table","aria-label":L,style:{gridTemplateColumns:ne,minWidth:ke>0?`${ke}px`:void 0},children:[!R&&(z?jsxRuntime.jsx(Dx,{columns:e,columnOrder:k,onColumnOrderChange:V,sortConfig:I,onSort:ie,stickyHeader:C,stickyFirstColumn:y,density:o,isLoading:ue}):jsxRuntime.jsx("div",{className:"contents",role:"rowgroup",children:M.map((te,ce)=>jsxRuntime.jsx(TT,{column:te,sortConfig:I,onSort:ie,stickyHeader:C,stickyFirstColumn:y,isFirstColumn:ce===0,density:o,isLoading:ue},te.id))})),j?jsxRuntime.jsx("div",{className:"col-span-full",style:{gridColumn:"1 / -1",height:`${j.getTotalSize()}px`,position:"relative"},role:"rowgroup",children:ue?Array.from({length:p}).map((te,ce)=>jsxRuntime.jsx("div",{className:"contents",children:jsxRuntime.jsx(Ex,{columns:M,rowIndex:ce,density:o,stickyFirstColumn:y})},`loading-${ce}`)):t.length>0?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[De.map(({row:te,index:ce,virtualItem:_})=>{if(!te||!_)return null;let q=T?T(te):`row-${ce}`;return jsxRuntime.jsx("div",{style:{position:"absolute",top:0,left:0,width:"100%",display:"grid",gridTemplateColumns:ne,transform:`translateY(${_.start}px)`},"data-index":_.index,ref:j.measureElement,children:jsxRuntime.jsx(Mx,{columns:M,row:te,rowIndex:ce,density:o,onClick:w,stickyFirstColumn:y})},q)}),me&&jsxRuntime.jsx("div",{style:{position:"absolute",top:`${j.getTotalSize()}px`,left:0,width:"100%"},children:v||jsxRuntime.jsx(or,{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:ue?Array.from({length:p}).map((te,ce)=>jsxRuntime.jsx(Ex,{columns:M,rowIndex:ce,density:o,stickyFirstColumn:y},`loading-${ce}`)):t.length>0?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[De.map(({row:te,index:ce})=>{if(!te)return null;let _=T?T(te):`row-${ce}`;return jsxRuntime.jsx(Mx,{columns:M,row:te,rowIndex:ce,density:o,onClick:w,stickyFirstColumn:y},_)}),me&&jsxRuntime.jsx("div",{className:"col-span-full",style:{gridColumn:"1 / -1"},children:v||jsxRuntime.jsx(or,{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"})})})]}),Ne&&jsxRuntime.jsx("div",{className:se.mobile,children:ue?Array.from({length:p}).map((te,ce)=>jsxRuntime.jsx(Px,{density:o},`mobile-loading-${ce}`)):t.length>0?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[De.map(({row:te,index:ce})=>{if(!te)return null;let _=T?T(te):`mobile-row-${ce}`;return jsxRuntime.jsx("div",{className:"border-b border-border-default last:border-b-0",children:Ve(te,ce)},_)}),me&&(v||jsxRuntime.jsx(or,{state:"loading-more"}))]}):jsxRuntime.jsx("div",{className:"py-12 text-center text-text-secondary",children:"No data available"})}),g&&f&&!ue&&(j?jsxRuntime.jsx("div",{ref:H,style:{position:"absolute",top:`${j.getTotalSize()}px`,left:0,width:"100%",height:1}}):jsxRuntime.jsx("div",{ref:H,className:"h-px w-full"}))]})}function Ix({status:e,alertCount:t,showCount:r=false,isLoading:o,size:n="sm",shape:a="pill",...i}){if(o)return jsxRuntime.jsx(J,{className:"inline-flex h-6 w-20"});let s={healthy:"success",warning:"warning",error:"error",unknown:"neutral"},c={healthy:"Healthy",warning:"Warning",error:"Error",unknown:"Unknown"},l=e==="warning"||e==="error",u=r&&t?`${c[e]} (${t})`:c[e];return jsxRuntime.jsx(Je,{variant:s[e],size:n,shape:a,dot:l,dotPulse:l,...i,children:u})}var ET={battery:"BatteryHigh",charger:"ChargingStation",thermostat:"ThermometerSimple",inverter:"Power",vehicle:"Car",meter:"Gauge",gateway:"WifiHigh",other:"Cube",unknown:"Question"},LT={battery:"Battery",charger:"Charger",thermostat:"Thermostat",inverter:"Inverter",vehicle:"Vehicle",meter:"Meter",gateway:"Gateway",other:"Other",unknown:"Unknown"};function Bx({deviceType:e,iconName:t,size:r="md",showLabel:o=false,className:n}){let a=t||(e?ET[e]:"Question"),i=e?LT[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 di({children:e,title:t,headerContent:r,titleAlign:o="left",hideCloseIcon:n=false,hasBackArrow:a=false,onBack:i,isOpen:s,slideInFrom:c="right",transparentOverlay:l=false,onClose:u,className:d,primaryAction:m,secondaryAction:p,tertiaryAction:g,footerContent:f,contentPadding:b=true,maxWidth:x="400px"}){if(!s)return null;let v=t||r,C=m||p||g||f;return jsxRuntime.jsx(gr,{children:jsxRuntime.jsx(Kt,{isOpen:s,onOpenChange:y=>!y&&u?.(),isDismissable:true,transparent:l,children:jsxRuntime.jsx(reactAriaComponents.Modal,{className:"outline-none focus:outline-none focus-visible:outline-none ring-0 focus:ring-0 focus-visible:ring-0",children:jsxRuntime.jsxs(reactAriaComponents.Dialog,{className:tailwindMerge.twMerge("fixed top-0 bottom-0 flex flex-col bg-background-surface shadow-xl overflow-hidden",c==="right"?"right-0":"left-0",c==="right"?"animate-in slide-in-from-right duration-300 ease-out":"animate-in slide-in-from-left duration-300 ease-out","data-[exiting]:animate-out",c==="right"?"data-[exiting]:slide-out-to-right":"data-[exiting]:slide-out-to-left","data-[exiting]:duration-200 data-[exiting]:ease-in","outline-none focus-visible:outline focus-visible:outline-2 focus-visible:outline-action-default focus-visible:outline-offset-0",d),style:{maxWidth:x,width:"100%"},children:[v&&(a&&i?jsxRuntime.jsx(St,{title:t,headerContent:r,titleAlign:o,hideCloseIcon:n,hasBackArrow:true,onBack:i,onClose:u}):jsxRuntime.jsx(St,{title:t,headerContent:r,titleAlign:o,hideCloseIcon:n,onClose:u})),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(bo,{primaryAction:m,secondaryAction:p,tertiaryAction:g,footerContent:f})]})})})})}di.displayName="Drawer";var VT={sm:"gap-4 px-6 py-8",md:"gap-5 px-8 py-12",lg:"gap-6 px-10 py-16"},zT={sm:"xs",md:"sm",lg:"md"},OT={sm:et("bodySm"),md:et("bodySm"),lg:et("bodyMd")},HT={sm:"h-10 w-10",md:"h-12 w-12",lg:"h-16 w-16"},WT={sm:20,md:24,lg:32},GT={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"},UT={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 Ox({icon:e,title:t,description:r,primaryAction:o,secondaryAction:n,actions:a,size:i="md",alignment:s="center",variant:c="default",spotlightPattern:l="mesh",fullHeight:u=false,className:d}){let m=i==="sm"?"sm":"md",p=c==="spotlight",g=p?{background:UT[l]}:void 0,f=()=>a?jsxRuntime.jsx("div",{className:"empty-state-actions mt-2 flex flex-wrap items-center gap-3",children:a}):o||n?jsxRuntime.jsxs("div",{className:"empty-state-actions mt-2 flex flex-col gap-3",children:[o&&(o.href?jsxRuntime.jsx(Q,{variant:"secondary",size:m,onPress:o.onPress,isDisabled:o.isDisabled,isLoading:o.isLoading,href:o.href,children:o.label}):jsxRuntime.jsx(Q,{variant:"secondary",size:m,onPress:o.onPress,isDisabled:o.isDisabled,isLoading:o.isLoading,children:o.label})),n&&jsxRuntime.jsx(Ue,{href:n.href||"#",variant:"muted",onPress:n.onPress,className:et("labelMd"),children:n.label})]}):null;return jsxRuntime.jsxs("section",{"data-testid":"empty-state",role:"status","aria-live":"polite",className:tailwindMerge.twMerge("flex w-full flex-col rounded-xl text-text-primary",VT[i],GT[s],u?"h-full justify-center":"",p?"relative overflow-hidden":"",d),style:g,children:[e&&jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("flex items-center justify-center rounded-full border border-border-muted bg-background-muted text-text-secondary",HT[i]),children:jsxRuntime.jsx(B,{name:e,size:WT[i]})}),jsxRuntime.jsx(Lt,{size:zT[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",OT[i]),children:r}),f()]})}function Hx({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(Je,{variant:i[e],size:o,shape:n,...a,children:s[e]});return t?jsxRuntime.jsx(At,{content:t,children:c}):c}function Gx({value:e,onChange:t,onUrlChange:r,accept:o="image/*",maxSize:n,isDisabled:a=false,onUpload:i,className:s,showPreview:c=true,placeholder:l="Drop files here or click to browse"}){let[u,d]=Ee.useState(false),[m,p]=Ee.useState(false),[g,f]=Ee.useState(null),[b,x]=Ee.useState(e),v=Ee.useRef(null),C=async T=>{if(f(null),n&&T.size>n){f(`File size must be less than ${(n/1024/1024).toFixed(2)}MB`);return}if(c&&T.type.startsWith("image/")){let R=new FileReader;R.onloadend=()=>{x(R.result);},R.readAsDataURL(T);}if(i){p(true);try{let R=await i(T);x(R),r?.(R);}catch(R){f("Failed to upload file"),console.error("Upload error:",R);}finally{p(false);}}t?.(T,b);},y=async T=>{try{let R=T.items;if(R.length>0){let E=R[0];if(E.kind==="file"){let D=await E.getFile();D&&C(D);}}}catch(R){f("Failed to upload file"),console.error("Upload error:",R);}finally{d(false);}},w=()=>{x(void 0),f(null),t?.(null),r?.(""),v.current&&(v.current.value="");};return jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("w-full",s),children:[jsxRuntime.jsxs(reactAriaComponents.DropZone,{className:tailwindMerge.twMerge("relative flex min-h-[200px] w-full flex-col items-center justify-center rounded-lg border-2 border-dashed transition-colors",u?"border-action-brand bg-action-brand/5":"border-border-muted hover:border-border-default",a&&"pointer-events-none opacity-50",g&&"border-feedback-error-border bg-feedback-error-background/50"),onDrop:y,onDropEnter:()=>d(true),onDropExit:()=>d(false),children:[b?jsxRuntime.jsxs("div",{className:"relative flex h-full w-full items-center justify-center p-4",children:[c&&(b.startsWith("data:image")||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:w,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:T=>{let R=Array.from(T||[]);R.length>0&&C(R[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..."})]})})]}),g&&jsxRuntime.jsx("p",{className:"mt-2 text-sm text-feedback-error-text",children:g})]})}function Yx({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(Je,{variant:s,size:n,shape:a,...i,children:c})}function ia(e){return jsxRuntime.jsx(reactAriaComponents.Form,{validationBehavior:"aria",...e,className:tailwindMerge.twMerge("flex flex-col gap-6",e.className)})}function Jx({placeholder:e="Search...",value:t,onChange:r,isOpen:o,onOpenChange:n,trigger:a,children:i,showShortcutHint:s=true,showInput:c=true,className:l}){let[u,d]=Ee.useState(false),m=Pt("(max-width: 767px)"),p=o!==void 0?o:u,g=Ee.useCallback(v=>{n?n(v):d(v);},[n]);Ee.useEffect(()=>{let v=C=>{(C.metaKey||C.ctrlKey)&&C.key==="k"&&(C.preventDefault(),g(!p)),C.key==="Escape"&&p&&g(false);};return window.addEventListener("keydown",v),()=>window.removeEventListener("keydown",v)},[p,g]);let f=Ee.useCallback(v=>{r?.(v);},[r]),b=jsxRuntime.jsxs("button",{type:"button",className:"flex items-center gap-2 px-3 py-2 text-sm text-text-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||Ee.isValidElement(a)&&a.type===Ee.Fragment&&!a.props.children;return m?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[!x&&(a?jsxRuntime.jsx("button",{type:"button",onClick:()=>g(true),className:"appearance-none bg-transparent border-none p-0 cursor-pointer",children:a}):jsxRuntime.jsx("button",{type:"button",onClick:()=>g(true),className:"appearance-none bg-transparent border-none p-0 cursor-pointer",children:b})),jsxRuntime.jsx(Xe,{isOpen:p,onClose:()=>g(false),hideCloseIcon:false,contentPadding:false,maxHeight:"90vh",children:jsxRuntime.jsxs("div",{className:"flex flex-col h-full",children:[c&&jsxRuntime.jsx("div",{className:"p-4 border-b border-border-muted flex-shrink-0",children:jsxRuntime.jsx(dr,{value:t,onChange:f,placeholder:e,showSearchIcon:true,isClearable:!!t,onClear:()=>r?.(""),reserveErrorSpace:false,className:l,autoFocus:true})}),jsxRuntime.jsx("div",{className:"flex-1 min-h-0 overflow-hidden",children:i})]})})]}):x?null:jsxRuntime.jsxs(reactAriaComponents.DialogTrigger,{isOpen:p,onOpenChange:g,children:[a||b,jsxRuntime.jsx(Ze,{placement:"bottom",className:"w-[600px] max-w-[90vw] bg-background-surface shadow-xl border border-border-default rounded-lg overflow-hidden",children:jsxRuntime.jsxs("div",{className:"flex flex-col",children:[c&&jsxRuntime.jsx("div",{className:"p-4 border-b border-border-muted",children:jsxRuntime.jsx(dr,{value:t,onChange:f,placeholder:e,showSearchIcon:true,isClearable:!!t,onClear:()=>r?.(""),reserveErrorSpace:false,className:l,autoFocus:true})}),jsxRuntime.jsx("div",{className:"max-h-[500px] overflow-hidden",children:i})]})})]})}function Zx({placeholder:e="Search...",value:t,onChange:r,isOpen:o,onOpenChange:n,children:a,maxHeight:i="400px",variant:s="default",className:c}){let[l,u]=Ee.useState(false),d=Pt("(max-width: 767px)"),m=Ee.useRef(null),p=Ee.useRef(null),g=o!==void 0?o:l,f=Ee.useCallback(L=>{n?n(L):u(L);},[n]);Ee.useEffect(()=>{let L=z=>{(z.metaKey||z.ctrlKey)&&z.key==="k"&&(z.preventDefault(),f(!g)),z.key==="Escape"&&g&&f(false);};return window.addEventListener("keydown",L),()=>window.removeEventListener("keydown",L)},[g,f]),Ee.useEffect(()=>{g&&!d&&m.current&&setTimeout(()=>{m.current?.querySelector("input")?.focus();},0);},[g,d]),Ee.useEffect(()=>{if(!g||d)return;let L=z=>{let A=z.target,S=m.current?.contains(A),N=p.current?.contains(A);!S&&!N&&f(false);};return document.addEventListener("mousedown",L,true),()=>document.removeEventListener("mousedown",L,true)},[g,d,f]);let b=L=>{r?.(L);},x=Ee.useCallback(()=>{f(false);},[f]),v=Ee.useCallback(()=>{r?.("");},[r]),[C,y]=Ee.useState(null);Ee.useEffect(()=>{if(g&&!d&&m.current){let L=null,z=()=>{let S=m.current?.getBoundingClientRect();S&&y({top:S.bottom+8,left:S.left,width:S.width});},A=()=>{L===null&&(L=requestAnimationFrame(()=>{z(),L=null;}));};return z(),window.addEventListener("resize",A),window.addEventListener("scroll",A,true),()=>{window.removeEventListener("resize",A),window.removeEventListener("scroll",A,true),L!==null&&cancelAnimationFrame(L);}}},[g,d]);let w=Ee.useCallback(()=>{f(true);},[f]);if(d)return jsxRuntime.jsxs("div",{className:c,children:[jsxRuntime.jsx("button",{type:"button",onClick:w,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(Xe,{isOpen:g,onClose:x,contentPadding:false,height:"80vh",children:[jsxRuntime.jsxs("div",{className:"flex items-center gap-2 px-4 pt-4",children:[jsxRuntime.jsx("div",{className:"flex-1",children:jsxRuntime.jsx(dr,{value:t,onChange:b,placeholder:e,showSearchIcon:true,isClearable:!!t,onClear:v,reserveErrorSpace:false,autoFocus:true})}),jsxRuntime.jsx(Q,{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 T=L=>{let A=L.target.tagName==="INPUT";if(L.key==="ArrowDown"&&g&&A){L.preventDefault();let S=p.current?.querySelector("[data-search-result]");S&&S.focus();}},R=L=>{let z=L.target;if(!z.hasAttribute("data-search-result"))return;let S=Array.from(p.current?.querySelectorAll("[data-search-result]")||[]),N=S.indexOf(z);if(L.key==="ArrowDown"){L.preventDefault(),L.stopPropagation();let F=Math.min(N+1,S.length-1);S[F]?.focus();}else if(L.key==="ArrowUp")if(L.preventDefault(),L.stopPropagation(),N===0)m.current?.querySelector("input")?.focus();else {let F=Math.max(N-1,0);S[F]?.focus();}else L.key==="Escape"&&(L.preventDefault(),L.stopPropagation(),f(false),m.current?.querySelector("input")?.focus());},E=g&&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:R,children:jsxRuntime.jsx("div",{className:"bg-background-surface shadow-2xl border border-border-default rounded-lg overflow-hidden animate-in fade-in zoom-in-95 duration-200",children:jsxRuntime.jsx("div",{className:"overflow-y-auto",style:{maxHeight:i},children:a})})}),document.body):null,D=s==="elevated"?"bg-background-muted/50 border-border-subtle/50 focus-within:bg-background-body focus-within:border-border-focus focus-within:shadow-md backdrop-blur-sm transition-all duration-200":"";return jsxRuntime.jsxs("div",{ref:m,className:`relative w-full ${c||""}`,onKeyDown:T,children:[jsxRuntime.jsx(dr,{value:t,onChange:b,placeholder:e,showSearchIcon:true,isClearable:!!t,onClear:()=>r?.(""),reserveErrorSpace:false,className:D,onFocus:()=>f(true)}),E]},"desktop")}function Xx({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 Qx({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 eh({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 th({id:e,title:t,subtitle:r,metadata:o,icon:n,customIcon:a,onSelect:i,isFocused:s=false,className:c,testId:l}){return jsxRuntime.jsxs("div",{role:"option",tabIndex:0,onClick:()=>{i?.(e);},onKeyDown:m=>{let p=m.currentTarget;switch(m.key){case "Enter":case " ":{m.preventDefault(),i?.(e);break}case "ArrowDown":{m.preventDefault();let g=Array.from(document.querySelectorAll("[data-search-result]")),f=g.indexOf(p);f!==-1&&f<g.length-1&&g[f+1].focus();break}case "ArrowUp":{m.preventDefault();let g=Array.from(document.querySelectorAll("[data-search-result]")),f=g.indexOf(p);if(f>0)g[f-1].focus();else {let b=document.querySelector('input[type="text"][placeholder*="Search"]');b&&b.focus();}break}case "Escape":{m.preventDefault();let g=document.querySelector('input[type="text"][placeholder*="Search"]');g&&g.focus();break}}},"data-testid":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 rh({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 nh({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:`
|
|
96
96
|
flex items-center gap-3 w-full px-4 py-2.5 rounded-lg
|
|
97
97
|
transition-all duration-200 cursor-text
|
|
98
98
|
${{default:`
|
|
@@ -104,14 +104,14 @@ Valid keys: `+JSON.stringify(Object.keys(N),null," "));var M=B(G,w,F,K,X+"."+w,
|
|
|
104
104
|
backdrop-blur-sm
|
|
105
105
|
`}[o]}
|
|
106
106
|
${n}
|
|
107
|
-
`,"aria-label":"Open search",children:[jsxRuntime.jsx(I,{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 oP={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"},nP={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"}},aP={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"},iP={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"},sP={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"},lP={start:"items-start",center:"items-center",end:"items-end",stretch:"items-stretch",baseline:"items-baseline"},cP={start:"justify-start",center:"justify-center",end:"justify-end",between:"justify-between",around:"justify-around",evenly:"justify-evenly"},dP={row:"grid-flow-row",col:"grid-flow-col",dense:"grid-flow-dense","row-dense":"grid-flow-row-dense","col-dense":"grid-flow-col-dense"},uP={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"},pP={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 eh(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 Zu({cols:e=1,gap:t="md",gapX:r,gapY:o,align:n="stretch",justify:a="start",flow:i="row",autoFit:s,autoFill:c,className:l,children:u}){let d=tailwindMerge.twMerge("grid",s||c?"":eh(e,oP,nP),!r&&!o&&aP[t],r&&iP[r],o&&sP[o],lP[n],cP[a],dP[i],l),m={};return s?m.gridTemplateColumns=`repeat(auto-fit, minmax(${s}, 1fr))`:c&&(m.gridTemplateColumns=`repeat(auto-fill, minmax(${c}, 1fr))`),jsxRuntime.jsx("div",{className:d,style:m,children:u})}function th({span:e,className:t,children:r}){let o=tailwindMerge.twMerge(eh(e,uP,pP),t);return jsxRuntime.jsx("div",{className:o,children:r})}Zu.Item=th;function mP(e,t){return Ee__namespace.default.isValidElement(e)?e:kr({value:e,formatter:t,emptyClassName:"text-text-secondary",emptyText:"\u2014"})}function fP(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 gP={neutral:"text-text-primary",success:"text-feedback-success",warning:"text-feedback-warning",error:"text-feedback-error",info:"text-feedback-info"},bP=24,xP=20;function hP({item:e,dense:t,valueAlign:r}){let o=fP(e),n=o?gP[o]:"",a=e.stackOnMobile,i=typeof e.value=="string"&&e.value.length>bP&&!e.formatter&&!Ee__namespace.default.isValidElement(e.value),s=mP(e.value,e.formatter),c=i?An(e.value,xP):null,l=typeof e.copyable=="function"?e.copyable(e.value):String(e.value),u=e.piiType&&e.piiEntity?{"data-pii-type":e.piiType,"data-pii-entity":e.piiEntity}:{},d=Object.keys(u).length>0,m=i?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(Lt,{content:d?jsxRuntime.jsx("span",{...u,children:String(e.value)}):String(e.value),children:jsxRuntime.jsx("span",{className:tailwindMerge.twMerge("md:hidden",e.href?"hover:underline cursor-pointer":""),...u,children:c})}),jsxRuntime.jsx("span",{className:tailwindMerge.twMerge("hidden md:inline",e.href?"hover:underline cursor-pointer":""),...u,children:s})]}):jsxRuntime.jsx("span",{className:e.href?"hover:underline cursor-pointer":"",...u,children:s}),p=e.copyable?jsxRuntime.jsx(ho,{value:l,size:"sm",children:jsxRuntime.jsx("span",{className:"sr-only",children:"Copy"})}):null,g=e.copyable&&(e.copyIconPosition==="left"||!e.copyIconPosition),f=e.copyable&&e.copyIconPosition==="right",x=jsxRuntime.jsxs("dd",{className:tailwindMerge.twMerge(t?"text-sm":"text-base","font-medium",a?r==="start"?"text-left":"text-left sm:text-right":r==="start"?"text-left":"text-right",n,e.disabled&&"opacity-50","overflow-hidden min-w-0"),children:[jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("inline-flex items-center gap-1 max-w-full",r==="start"?"justify-start":"justify-end"),children:[jsxRuntime.jsxs("span",{className:"inline-flex items-center gap-1 min-w-0",children:[m,e.iconRight]}),f&&p]}),e.meta&&jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("text-xs text-text-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(I,{name:"Question",size:10,className:"text-text-secondary","aria-label":"More information"})]}),g&&jsxRuntime.jsx("div",{className:"flex items-center",children:p}),e.href?jsxRuntime.jsx("a",{href:e.href,onClick:e.onAction,className:"block",children:x}):x]});return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("grid",a?"items-start sm:items-center":g?"items-center":"items-start",a?g?"grid-cols-1 gap-y-1 sm:grid-cols-[minmax(120px,1fr)_auto_auto] sm:gap-x-1 sm:gap-y-0":t?"grid-cols-1 gap-y-1 sm:grid-cols-[minmax(120px,1fr)_1fr] sm:gap-x-2 sm:gap-y-0":"grid-cols-1 gap-y-1 sm:grid-cols-[minmax(120px,1fr)_1fr] sm:gap-x-4 sm:gap-y-0":g?"grid-cols-[minmax(120px,1fr)_auto_auto] gap-x-1":t?"grid-cols-[minmax(120px,1fr)_1fr] gap-x-2":"grid-cols-[minmax(120px,1fr)_1fr] gap-x-4"),children:v})}function Pl({items:e,layout:t="one-column",dense:r=false,valueAlign:o="end",showDividers:n=false,skeleton:a=false,empty:i=false,error:s,className:c}){return a?jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("grid",t==="two-column"?"md:grid-cols-2 gap-x-6":"grid-cols-1",r?"gap-y-1":"gap-y-2",c),children:Array.from({length:e.length||4}).map((l,u)=>jsxRuntime.jsxs("div",{className:"grid grid-cols-[1fr_auto] items-start gap-x-4",children:[jsxRuntime.jsx(J,{className:"h-4 w-24"}),jsxRuntime.jsx(J,{className:"h-5 w-16"})]},u))}):s?jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("text-sm text-feedback-error",c),children:s}):i||!e.length?jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("text-sm text-text-secondary",c),children:"No data available"}):jsxRuntime.jsx("dl",{className:tailwindMerge.twMerge("grid",t==="two-column"?"md:grid-cols-2 gap-x-6":"grid-cols-1",r?"gap-y-1":"gap-y-2",c),children:e.map((l,u)=>jsxRuntime.jsxs(Ee__namespace.default.Fragment,{children:[n&&u>0&&t==="one-column"&&jsxRuntime.jsx("div",{className:"col-span-full border-t border-border-default -mt-1 mb-1"}),jsxRuntime.jsx(hP,{item:l,dense:r,valueAlign:o})]},l.id))})}function nh({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(Pl,{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 qe={xs:{node:"px-2 py-2 text-xs",icon:"xs",bullet:24,spacing:{x:8,y:8}},sm:{node:"px-3 py-2.5 text-sm",icon:"xs",bullet:28,spacing:{x:12,y:10}},md:{node:"px-4 py-3 text-base",icon:"sm",bullet:32,spacing:{x:16,y:12}}};var $u=Ee__namespace.createContext(null);function ah(){let e=Ee__namespace.useContext($u);if(!e)throw new Error("Hierarchy components must be used within HierarchyExplorer");return e}function sh({node:e,renderNode:t}){let{selectedId:r,selectNode:o,navigateToNode:n,variant:a,size:i,showBullets:s,rootNodeId:c,stickyRootNode:l,navigationStack:u,setRootNodeSticky:d,useSplitLayout:m}=ah(),p=Ee__namespace.useRef(null),g=Ee__namespace.useRef(null),f=r===e.id,b=e.disabled||false,x=!!(e.children&&e.children.length>0),v=!!(e.metadata&&Object.keys(e.metadata).length>0),C=x||v,y=c!==void 0&&e.id!==void 0&&c===e.id&&u.length===0;Ee__namespace.useLayoutEffect(()=>{y&&l&&p.current&&g.current===null&&requestAnimationFrame(()=>{p.current&&(g.current=p.current.offsetTop);});},[y,l]),Ee__namespace.useEffect(()=>{if(!y||!l||!p.current)return;let V=p.current.parentElement;for(;V;){let N=window.getComputedStyle(V).overflowY;if(N==="auto"||N==="scroll")break;V=V.parentElement;}if(!V)return;let A=()=>{if(!p.current||g.current===null)return;let N=V.getBoundingClientRect(),T=V.scrollTop,z=N.height,W=p.current.offsetHeight,K=g.current-T,X=K+W,G=K<0,Y=X>z;G?d("top",e):Y?d("bottom",e):d(null,null);};return V.addEventListener("scroll",A),A(),()=>{V.removeEventListener("scroll",A);}},[y,l,e,d]);let S=()=>{b||(m?o(e):C?n(e):o(e));},k=V=>{b||(V.key==="Enter"||V.key===" ")&&(V.preventDefault(),S());},R={isSelected:f,isDisabled:b,hasChildren:x,hasMetadata:v,level:0},E=tailwindMerge.twMerge("relative cursor-pointer group",b&&"opacity-50 cursor-not-allowed"),D=tailwindMerge.twMerge("absolute inset-0 transition-colors",y&&!f&&!b&&"group-hover:bg-background-hover",y&&f&&!b&&a==="subtle"&&"bg-background-selected group-hover:bg-background-hover",y&&f&&b&&a==="subtle"&&"bg-background-selected",y&&f&&!b&&a==="solid"&&"bg-action-brand group-hover:bg-action-brand-hover",y&&f&&b&&a==="solid"&&"bg-action-brand",!y&&a==="subtle"&&!f&&!b&&"group-hover:bg-background-hover",!y&&a==="subtle"&&f&&!b&&"bg-background-selected group-hover:bg-background-hover",!y&&a==="subtle"&&f&&b&&"bg-background-selected",!y&&a==="solid"&&!f&&!b&&"group-hover:bg-background-hover",!y&&a==="solid"&&f&&!b&&"bg-action-brand group-hover:bg-action-brand-hover",!y&&a==="solid"&&f&&b&&"bg-action-brand"),L=tailwindMerge.twMerge("relative flex items-center gap-2 text-text-primary hover:text-text-primary transition-colors",qe[i].node,y&&!f&&"font-semibold",a==="subtle"&&f&&"text-text-link-default",a==="solid"&&f&&"text-[color:var(--color-action-brand-text)]");return jsxRuntime.jsxs("div",{ref:p,className:E,onClick:S,onKeyDown:k,role:"treeitem","aria-selected":f,"aria-disabled":b,tabIndex:0,"data-node-id":e.id,children:[jsxRuntime.jsx("div",{className:D}),jsxRuntime.jsxs("div",{className:L,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:qe[i].bullet,height:qe[i].bullet},children:e.icon&&jsxRuntime.jsx(I,{name:e.icon,size:qe[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,R):jsxRuntime.jsx("span",{className:"truncate",children:e.name})}),C&&!m&&jsxRuntime.jsx("div",{className:"flex-shrink-0",children:jsxRuntime.jsx(I,{name:"CaretRight",size:qe[i].icon,className:"text-text-secondary"})})]})]})}function ch({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:`${qe[n].spacing.x+qe[n].bullet/2}px`,top:`${qe[n].spacing.y+qe[n].bullet/2}px`,bottom:`${qe[n].spacing.y+qe[n].bullet/2}px`},"aria-hidden":"true"}),e.map(i=>jsxRuntime.jsx(sh,{node:i,renderNode:a},i.id))]})}function dh(){let[e,t]=Ee.useState(()=>typeof window>"u"?false:window.matchMedia("(prefers-reduced-motion: reduce)").matches);return Ee.useEffect(()=>{let r=window.matchMedia("(prefers-reduced-motion: reduce)");t(r.matches);let o=n=>{t(n.matches);};return r.addEventListener("change",o),()=>{r.removeEventListener("change",o);}},[]),e}function di({children:e,mode:t="sync",presenceKey:r}){let o=r!==void 0&&Ee__namespace.default.isValidElement(e)?Ee__namespace.default.cloneElement(e,{key:r}):r!==void 0?jsxRuntime.jsx("div",{children:e},r):e;return jsxRuntime.jsx(framerMotion.AnimatePresence,{mode:t,children:o})}var TP={instant:0,fast:150,normal:250,slow:350,slower:500},Qu={xs:"4px",sm:"8px",md:"16px"};function kP(e){return e?typeof e=="string"&&e in Qu?Qu[e]:typeof e=="number"?`${e}px`:e:Qu.sm}function ui({children:e,direction:t,distance:r="sm",duration:o="normal",delay:n=0,className:a}){let i=dh(),s=typeof o=="number"?o:TP[o],c=kP(r),l=p=>{switch(t){case "left":return {x:`-${p}`};case "right":return {x:p};case "up":return {y:`-${p}`};case "down":return {y:p}}},u=i?{opacity:0}:{opacity:0,...l(c)},d={opacity:1,x:0,y:0},m=i?{opacity:0}:{opacity:0,...l(c)};return jsxRuntime.jsx(framerMotion.motion.div,{className:a,initial:u,animate:d,exit:m,transition:{duration:i?0:s/1e3,delay:i?0:n/1e3,ease:[.4,0,.2,1]},children:e})}function Ml({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",qe[r].node),children:[jsxRuntime.jsx(I,{name:"CaretLeft",size:qe[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 El({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",qe[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:qe[n].bullet,height:qe[n].bullet},children:e.icon&&jsxRuntime.jsx(I,{name:e.icon,size:qe[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 fh({currentItems:e,currentParent:t,navigationStack:r,selectedId:o,variant:n,size:a,showBullets:i,slideDirection:s,viewKey:c,hasHeight:l,rootNodeStickyState:u,renderNodeList:d,renderDetailContent:m,onNavigateBack:p}){return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[r.length===0&&u.position&&u.node&&jsxRuntime.jsx(El,{node:u.node,position:u.position,selectedId:o,variant:n,size:a,showBullets:i}),r.length>0&&jsxRuntime.jsx(Ml,{navigationStack:r,onNavigateBack:p,size:a}),jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("relative",l&&"overflow-auto h-full"),children:jsxRuntime.jsx(di,{mode:"wait",presenceKey:c,children:r.length===0?d(e,true):jsxRuntime.jsx(ui,{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 Ll(e){if(e!==void 0)return typeof e=="number"?`${e}px`:e}function gh(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 xh({data:e,currentItems:t,navigationStack:r,selectedId:o,variant:n,size:a,showBullets:i,rootNodeStickyState:s,renderNodeList:c,renderDetailContent:l,renderEmptyState:u,onNavigateBack:d}){let m=o?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(El,{node:s.node,position:s.position,selectedId:o,variant:n,size:a,showBullets:i}),r.length>0&&jsxRuntime.jsx(Ml,{navigationStack:r,onNavigateBack:d,size:a}),jsxRuntime.jsx("div",{className:"flex-1 overflow-auto",children:c(t,r.length===0)})]}),jsxRuntime.jsx("div",{className:"flex-1 min-w-0 overflow-auto bg-background-body",children:jsxRuntime.jsx(di,{mode:"wait",presenceKey:m?.id||"empty",children:m?jsxRuntime.jsx(ui,{direction:"left",duration:"fast",children:l(m)}):u?u():jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("text-text-secondary text-center",qe[a].node,"py-8"),children:"Select an item to view details"})})})]})}function hh({data:e,renderNode:t,onNodeSelect:r,onNavigate:o,selectedId:n,rootNodeId:a,stickyRootNode:i=true,height:s,minHeight:c,maxHeight:l,variant:u="subtle",size:d="md",showBullets:m=true,layout:p="auto",splitBreakpoint:g=768,renderEmptyState:f,renderDetailView:b,className:x,"aria-label":v="Hierarchy explorer"}){let[C,y]=Ee__namespace.useState(null),[S,k]=Ee__namespace.useState([]),[R,E]=Ee__namespace.useState("left"),[D,L]=Ee__namespace.useState({position:null,node:null}),{ref:V,width:A}=En(),N=Ee__namespace.useMemo(()=>p==="split"?true:p==="single"?false:A>=g,[p,A,g]),T=n!==void 0?n:C;Ee__namespace.useEffect(()=>{gh(e,a);},[e,a]);let z=S.length>0?S[S.length-1]:null,W=z?z.children||[]:e,F=Ee__namespace.useCallback(H=>{E("left"),k(j=>[...j,H]),o?.(H,[...S,H]);},[S,o]),K=Ee__namespace.useCallback(()=>{E("right"),k(H=>{let j=H.slice(0,-1);return o?.(j.length>0?j[j.length-1]:null,j),j});},[o]),X=Ee__namespace.useCallback(H=>{n===void 0&&y(H.id),r?.(H,[...S,H]);},[n,S,r]),G=Ee__namespace.useCallback((H,j)=>{L({position:H,node:j});},[]),Y=Ee__namespace.useMemo(()=>({selectedId:T,selectNode:X,navigateToNode:F,navigateBack:K,rootNodeId:a,stickyRootNode:i,variant:u,size:d,showBullets:m,onNodeSelect:r,onNavigate:o,navigationStack:S,setRootNodeSticky:G,useSplitLayout:N}),[T,X,F,K,a,i,u,d,m,r,o,S,G,N]),P=Ee__namespace.useRef(null);Ee__namespace.useEffect(()=>{if(!a||!P.current||S.length>0||N)return;let H=P.current,j=setTimeout(()=>{let oe=H.querySelector(`[data-node-id="${a}"]`);oe&&oe.scrollIntoView({behavior:"auto",block:"center",inline:"nearest"});},100);return ()=>clearTimeout(j)},[a,S.length,N]);let w={height:Ll(s),minHeight:Ll(c),maxHeight:Ll(l)},B=s!==void 0||l!==void 0,M=z?z.id:"root",h=Ee__namespace.useCallback((H,j=false)=>jsxRuntime.jsx(ch,{items:H,showConnector:j,scrollContainerRef:j?P:null,showBullets:m,size:d,renderNode:t}),[m,d,t]),O=Ee__namespace.useCallback(H=>H?b?b(H,h):jsxRuntime.jsx(nh,{node:H,renderNodeList:h}):null,[b,h]);return jsxRuntime.jsx($u.Provider,{value:Y,children:jsxRuntime.jsx("div",{ref:V,className:tailwindMerge.twMerge("select-none bg-background-surface rounded-lg border border-border-default relative",B&&"overflow-hidden",!B&&"h-full flex flex-col",N&&!B&&"flex-row",N&&B&&"flex",x),style:w,role:"tree","aria-label":v,children:N?jsxRuntime.jsx(xh,{data:e,currentItems:W,navigationStack:S,selectedId:T,variant:u,size:d,showBullets:m,rootNodeStickyState:D,renderNodeList:h,renderDetailContent:O,renderEmptyState:f,onNavigateBack:K}):jsxRuntime.jsx(fh,{currentItems:W,currentParent:z,navigationStack:S,selectedId:T,variant:u,size:d,showBullets:m,slideDirection:R,viewKey:M,hasHeight:B,rootNodeStickyState:D,renderNodeList:h,renderDetailContent:O,onNavigateBack:K})})})}function WP({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 yh=({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}),vh=({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)=>WP({...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]});vh.displayName="HoverCardContent";var GP=Object.assign(yh,{Root:yh,Content:vh});function YP(e,t){return kr({value:e,formatter:t,emptyClassName:"text-text-secondary",emptyText:"\u2014"})}function KP(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 JP({points:e,className:t,ariaLabel:r}){let i=e.map(p=>typeof p.y=="number"?p.y:0);if(i.length===0)return null;let s=Math.min(...i),l=Math.max(...i)-s,u=p=>l===0?20/2:18-(p-s)/l*16,d=60/Math.max(e.length-1,1),m=e.map((p,g)=>{let f=2+g*d,b=u(typeof p.y=="number"?p.y:0);return `${g===0?"M":"L"} ${f} ${b}`}).join(" ");return jsxRuntime.jsx("svg",{width:64,height:20,role:"img","aria-label":r,className:tailwindMerge.twMerge("overflow-visible",t),children:jsxRuntime.jsx("path",{d:m,fill:"none",strokeWidth:"1.5",className:"stroke-border-muted"})})}function Sh({label:e,value:t,formatter:r,delta:o,deltaPeriodLabel:n,deltaIntent:a="upIsGood",trend:i,status:s,helpText:c,size:l="md",orientation:u="vertical",isLoading:d,empty:m,error:p,onClick:g,className:f,renderValue:b,renderDelta:x,renderTrend:v}){let y={sm:{label:et("labelSm"),value:et("displaySm"),delta:et("labelSm"),gap:"gap-1"},md:{label:et("labelMd"),value:et("displayMd"),delta:et("bodySm"),gap:"gap-2"},lg:{label:et("labelLg"),value:et("displayLg"),delta:et("bodyMd"),gap:"gap-3"}}[l],S=d?jsxRuntime.jsx(J,{className:"h-7 w-20"}):m?jsxRuntime.jsx("span",{className:"text-text-secondary",children:"\u2014"}):p?jsxRuntime.jsx("span",{className:et("bodySm","text-feedback-error"),children:typeof p=="string"?p:"Error"}):b?b(t):YP(t,r),k=x?x(o):o!==void 0&&!d&&!m&&!p?jsxRuntime.jsxs("div",{className:Dt(y.delta,KP(o,a),"flex items-center gap-1"),children:[o>0&&jsxRuntime.jsx(I,{name:"ArrowUp",size:12}),o<0&&jsxRuntime.jsx(I,{name:"ArrowDown",size:12}),o===0&&jsxRuntime.jsx(I,{name:"Minus",size:12}),jsxRuntime.jsxs("span",{children:[o>0?"+":"",Math.abs(o).toFixed(1),"%"]}),n&&jsxRuntime.jsxs("span",{className:"text-text-secondary",children:["\xB7 ",n]})]}):d&&o!==void 0?jsxRuntime.jsx(J,{className:"h-4 w-24"}):null,R=v?v(i):i&&i.length>0&&!d&&!p?jsxRuntime.jsx(JP,{points:i,ariaLabel:`${e} trend`,className:m?"opacity-30":""}):d&&i!==void 0?jsxRuntime.jsx(J,{className:"h-5 w-16"}):null;return jsxRuntime.jsxs("section",{className:tailwindMerge.twMerge("flex min-w-0",u==="horizontal"?`items-center ${y.gap}`:`flex-col ${y.gap}`,g&&"cursor-pointer hover:bg-background-muted rounded-lg px-3 py-2 -mx-3 -my-2 transition-colors",f),"aria-labelledby":`kpi-${e}`,onClick:g,children:[jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[jsxRuntime.jsx("h3",{id:`kpi-${e}`,className:Dt(y.label,"text-text-secondary truncate"),children:d?jsxRuntime.jsx(J,{className:"h-4 w-24"}):e}),c&&!d&&jsxRuntime.jsx(I,{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:Dt(y.value,p?"text-feedback-error":"text-text-primary"),"aria-label":`Value: ${S}`,children:S}),s&&!d&&!p&&jsxRuntime.jsx(Je,{variant:s.tone||"neutral",size:"sm",children:s.value})]}),(k||R)&&jsxRuntime.jsxs("div",{className:"flex items-center gap-3",children:[k,R]})]})}var wh={xs:"gap-2",sm:"gap-3",md:"gap-4",lg:"gap-6",xl:"gap-8"},Nh={start:"items-start",center:"items-center",stretch:"items-stretch"};function Th(e){if(typeof e=="number")return `grid-cols-${e}`;let t=[];return e.base!==void 0&&t.push(`grid-cols-${e.base}`),e.sm!==void 0&&t.push(`sm:grid-cols-${e.sm}`),e.md!==void 0&&t.push(`md:grid-cols-${e.md}`),e.lg!==void 0&&t.push(`lg:grid-cols-${e.lg}`),e.xl!==void 0&&t.push(`xl:grid-cols-${e.xl}`),e["2xl"]!==void 0&&t.push(`2xl:grid-cols-${e["2xl"]}`),t.join(" ")}function op({children:e,cols:t={base:1,sm:2,md:3,lg:4},gap:r="md",align:o="stretch",equalizeHeights:n=true,header:a,isLoading:i,scrollOnMobile:s=false,scrollItemMinWidth:c="140px",className:l}){let u=i?Ee__namespace.default.Children.map(e,p=>Ee__namespace.default.isValidElement(p)&&p.type&&typeof p.type!="string"&&"displayName"in p.type?Ee__namespace.default.cloneElement(p,{isLoading:true}):p):e,d=s?Ee__namespace.default.Children.map(u,p=>jsxRuntime.jsx("div",{className:"shrink-0",style:{minWidth:c},children:p})):u,m=s?tailwindMerge.twMerge("flex overflow-x-auto pb-2 -mb-2",wh[r],"sm:grid sm:overflow-visible sm:pb-0 sm:-mb-0",Th({...typeof t=="object"?t:{base:t},base:void 0}),Nh[o],n&&"sm:auto-rows-fr"):tailwindMerge.twMerge("grid",Th(t),wh[r],Nh[o],n&&"auto-rows-fr","w-full");return jsxRuntime.jsxs("section",{className:tailwindMerge.twMerge("w-full",l),"aria-label":"Key metrics",children:[a&&jsxRuntime.jsx("div",{className:"mb-4",children:a}),jsxRuntime.jsx("div",{className:m,children:s?d:u})]})}op.displayName="KpiGroup";function Rh({items:e,renderItem:t,selectedId:r,onSelect:o,onHoverChange:n,isLoading:a=false,loadingState:i,error:s=null,renderLoadingSkeleton:c,loadingSkeletonCount:l=5,emptyMessage:u="No results found.",variant:d="relaxed",showDividers:m=true,onLoadMore:p,hasMore:g=false,enableVirtualization:f,estimatedItemSize:b=60,loadingIndicator:x,"aria-label":v,className:C="",style:y}){let[S,k]=Ee.useState(null),R=Ee.useRef(null),E=Ee.useRef(new Map),{scrollRef:D,loadMoreRef:L,virtualizer:V,virtualItems:A,isLoadingMore:N,computedLoadingState:T}=co({items:e,onLoadMore:p,hasMore:g,isLoading:a,loadingState:i,enableVirtualization:f,estimatedItemSize:b,overscan:5}),z=D??R,W=Ee.useCallback((h,O)=>{o?.(h,O);},[o]),F=Ee.useCallback((h,O)=>{k(h),n?.(h,O);},[n]),K=Ee.useCallback((h,O)=>{let H=h?.id;return typeof H=="string"&&H?H:`item-${O}`},[]),X=Ee.useCallback(h=>{if(!z.current||e.length===0)return;let O=document.activeElement,H=e.findIndex((Z,ne)=>{let Te=K(Z,ne),ie=E.current.get(Te);return ie&&(ie===O||ie.contains(O))}),j=H;switch(h.key){case "ArrowDown":h.preventDefault(),j=H===-1?0:Math.min(H+1,e.length-1);break;case "ArrowUp":h.preventDefault(),j=H===-1?0:Math.max(H-1,0);break;case "Home":h.preventDefault(),j=0;break;case "End":h.preventDefault(),j=e.length-1;break;default:return}let oe=K(e[j],j);E.current.get(oe)?.focus();},[e,K,z]),G=["flex flex-col","bg-background-surface","focus:outline-none focus:ring-2 focus:ring-border-focus focus:ring-offset-2"],Y={dense:"gap-0",relaxed:"gap-0"},P=m?"divide-y divide-border-muted":"",w=[...G,Y[d],P,C].filter(Boolean).join(" ");if(T==="loading"||a&&e.length===0){let h=c?jsxRuntime.jsx(jsxRuntime.Fragment,{children:Array.from({length:l}).map((O,H)=>jsxRuntime.jsx("div",{children:c()},`skeleton-${H}`))}):jsxRuntime.jsx(Qm,{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:z,className:w,style:y,role:"listbox","aria-label":v,"aria-busy":"true","aria-live":"polite",children:h})}if(s)return jsxRuntime.jsx("div",{ref:z,className:w,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:z,className:w,style:y,role:"listbox","aria-label":v,"aria-live":"polite",children:jsxRuntime.jsx("div",{className:"p-4 text-center text-text-secondary",children:u})});let M=V?A?.map(h=>({virtualItem:h,item:e[h.index],index:h.index}))||[]:e.map((h,O)=>({item:h,index:O,virtualItem:null}));return jsxRuntime.jsxs("div",{ref:z,className:w,style:{...y,...p&&{overflow:"auto",height:y?.height||"600px"}},role:"listbox","aria-label":v,"aria-live":"polite",onKeyDown:X,tabIndex:0,children:[V&&jsxRuntime.jsxs("div",{style:{height:`${V.getTotalSize()}px`,width:"100%",position:"relative"},children:[M.map(({virtualItem:h,item:O,index:H})=>{if(!h)return null;let j=K(O,H),oe=r===j,me=S===j,Z={id:j,role:"option","aria-selected":oe,"aria-current":oe?"page":void 0,tabIndex:oe||r==null&&H===0?0:-1,onClick:ne=>W(ne,O),onMouseEnter:ne=>F(ne,O),onMouseLeave:ne=>F(null),onFocus:ne=>F(ne,O),onBlur:ne=>F(null),ref:ne=>{ne?E.current.set(j,ne):E.current.delete(j);}};return jsxRuntime.jsx("div",{"data-index":h.index,ref:V.measureElement,style:{position:"absolute",top:0,left:0,width:"100%",transform:`translateY(${h.start}px)`},children:t({item:O,index:H,isSelected:oe,isHovered:me,rowProps:Z})},j)}),p&&g&&jsxRuntime.jsx("div",{ref:L,style:{position:"absolute",top:`${V.getTotalSize()}px`,left:0,width:"100%",height:1,pointerEvents:"none"}}),N&&jsxRuntime.jsx("div",{style:{position:"absolute",top:`${V.getTotalSize()}px`,left:0,width:"100%"},children:x||jsxRuntime.jsx(tr,{state:"loading-more"})})]}),!V&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[M.map(({item:h,index:O})=>{let H=K(h,O),j=r===H,oe=S===H,me={id:H,role:"option","aria-selected":j,"aria-current":j?"page":void 0,tabIndex:j||r==null&&O===0?0:-1,onClick:Z=>W(Z,h),onMouseEnter:Z=>F(Z,h),onMouseLeave:Z=>F(null),onFocus:Z=>F(Z,h),onBlur:Z=>F(null),ref:Z=>{Z?E.current.set(H,Z):E.current.delete(H);}};return jsxRuntime.jsx("div",{children:t({item:h,index:O,isSelected:j,isHovered:oe,rowProps:me})},H)}),p&&g&&jsxRuntime.jsx("div",{ref:L,style:{height:1}}),N&&(x||jsxRuntime.jsx(tr,{state:"loading-more"}))]})]})}function Mh({id:e,title:t,subtitle:r,meta:o,leading:n,trailing:a,isSelected:i=false,isHovered:s=false,disabled:c=false,href:l,size:u="md",onClick:d,onMouseEnter:m,onMouseLeave:p,className:g="",style:f,piiTitleType:b,piiSubtitleType:x,piiEntity:v}){let C=()=>{!c&&d&&d(e);},y=()=>{!c&&m&&m(e);},S=()=>{!c&&p&&p(e);},R={sm:{container:"px-3 py-2 gap-2",title:"text-sm leading-tight",subtitle:"text-xs leading-tight",meta:"text-xs leading-tight",subtitleSpacing:"mt-1",metaSpacing:"mt-1"},md:{container:"px-4 py-3 gap-3",title:"text-base leading-tight",subtitle:"text-sm leading-tight",meta:"text-sm leading-tight",subtitleSpacing:"mt-1",metaSpacing:"mt-1"},lg:{container:"px-4 py-4 gap-3",title:"text-lg leading-tight",subtitle:"text-base leading-tight",meta:"text-sm leading-tight",subtitleSpacing:"mt-1",metaSpacing:"mt-1"},xl:{container:"px-5 py-5 gap-4",title:"text-xl leading-tight",subtitle:"text-base leading-tight",meta:"text-base leading-tight",subtitleSpacing:"mt-1.5",metaSpacing:"mt-1.5"}}[u],E=["flex items-center w-full text-left transition-all duration-200 ease-in-out",R.container,"border-l-2 border-l-transparent","rounded-sm",Oe()],D=[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"],L=[...E,...D,g].filter(Boolean).join(" "),V=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 ${R.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 ${R.subtitle} ${R.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 ${R.meta} ${R.metaSpacing}`,children:o})]})})}),a&&jsxRuntime.jsx("div",{className:"flex-shrink-0",children:a})]});return l?jsxRuntime.jsx("a",{href:l,className:L,style:f,onMouseEnter:y,onMouseLeave:S,"aria-selected":i,"aria-current":i?"page":void 0,tabIndex:c?-1:0,children:V}):jsxRuntime.jsx("button",{type:"button",className:L,style:f,onClick:C,onMouseEnter:y,onMouseLeave:S,disabled:c,"aria-selected":i,tabIndex:c?-1:0,children:V})}function Eh({header:e,children:t,footer:r,width:o="md",tone:n="neutral",elevation:a="sm",showDivider:i=true,"aria-label":s,"aria-labelledby":c,className:l="",style:u}){let d={sm:"w-64",md:"w-80",lg:"w-96",xl:"w-[28rem]","2xl":"w-[32rem]",auto:"w-auto"},m={neutral:"bg-background-surface",subtle:"bg-background-subtle",brand:"bg-background-brand"},p={none:"",sm:"shadow-sm",md:"shadow-md"},g=tailwindMerge.twMerge("flex flex-col h-full",d[o],m[n],p[a],i&&"border-r border-border-muted",l);return jsxRuntime.jsxs("div",{className:g,style:u,role:"complementary","aria-label":s,"aria-labelledby":c,children:[e&&jsxRuntime.jsx("div",{className:"flex-shrink-0 sticky top-0 z-10 bg-inherit border-b border-border-muted",children:e}),jsxRuntime.jsx("div",{className:"flex-1 overflow-y-auto overflow-x-hidden",children:t}),r&&jsxRuntime.jsx("div",{className:"flex-shrink-0 border-t border-border-muted bg-inherit",children:r})]})}var to={chip:{bg:"#ffffff",border:"#2c2a26",fg:"#2c2a26"},active:{bg:"#111111",border:"#111111",fg:"#ffffff"},cluster:{primary:"#3945a8",neutral:"#2c2a26"},badge:{external:{bg:"#111111",fg:"#ffffff",borderColor:"#ffffff",fontSize:11,diameter:22},inline:{fg:"#2c2a26",fontSize:13}}};function Cn(e){if(!e)return to;let t={};if(e.cluster)for(let[r,o]of Object.entries(e.cluster))typeof o=="string"&&(t[r]=o);return {chip:{...to.chip,...e.chip},active:{...to.active,...e.active},cluster:{...to.cluster,...t},badge:{external:{...to.badge.external,...e.badge?.external},inline:{...to.badge.inline,...e.badge?.inline}}}}var Lh=Ee.forwardRef(function({count:t,glyphs:r,tone:o="neutral",onClick:n,ariaLabel:a,tokens:i,className:s,style:c},l){let u=Cn(i),d=u.chip,m=u.cluster[o]??o,p=typeof n=="function",g={display:"inline-flex",alignItems:"center",gap:6,padding:"5px 9px",background:d.bg,color:d.fg,border:`1.5px solid ${m}`,borderRadius:999,boxShadow:"0 2px 5px rgba(0,0,0,.2)",fontFamily:"Inter, system-ui, sans-serif",fontSize:13,fontWeight:700,fontVariantNumeric:"tabular-nums",cursor:p?"pointer":"default",lineHeight:1,whiteSpace:"nowrap",...c},f=jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("span",{children:t}),r&&r.length>0?jsxRuntime.jsx("span",{style:{display:"inline-flex",gap:2,opacity:.7},children:r.map((b,x)=>jsxRuntime.jsx(Ee__namespace.default.Fragment,{children:b},`glyph-${x}`))}):null]});return p?jsxRuntime.jsx("button",{ref:l,type:"button",onClick:n,"aria-label":a,className:s,style:g,children:f}):jsxRuntime.jsx("span",{ref:l,"aria-label":a,role:a?"img":void 0,className:s,style:g,children:f})});function Ih({items:e,title:t,orientation:r="horizontal",className:o,style:n}){if(e.length===0)return null;let a=r==="horizontal",i=a?{display:"flex",flexWrap:"wrap",alignItems:"center",columnGap:24,rowGap:8}:{display:"flex",flexDirection:"column",gap:8},s={fontSize:12,fontWeight:600,color:"var(--color-text-secondary, #6b6b6b)",...a?{flexBasis:"100%"}:null};return jsxRuntime.jsxs("div",{className:o,style:{...i,...n},children:[t?jsxRuntime.jsx("div",{style:s,children:t}):null,e.map((c,l)=>jsxRuntime.jsxs("div",{style:{display:"inline-flex",alignItems:"center",gap:8},children:[typeof c.swatch=="string"?jsxRuntime.jsx("span",{"aria-hidden":true,style:{display:"inline-block",width:12,height:12,borderRadius:999,background:c.swatch}}):jsxRuntime.jsx("span",{"aria-hidden":true,style:{display:"inline-flex"},children:c.swatch}),jsxRuntime.jsx("span",{style:{fontSize:13,color:"var(--color-text-primary, inherit)"},children:c.label})]},c.id??`item-${l}`))]})}var Fh=Ee.forwardRef(function({icon:t,label:r,active:o=false,badge:n,onClick:a,ariaLabel:i,tokens:s,className:c,style:l},u){let d=Cn(s),m=o?d.active:d.chip,p=typeof a=="function",g=r!=null&&r!=="",f={display:"inline-flex",alignItems:"center",justifyContent:"center",gap:g?6:0,minWidth:28,height:28,padding:g?"0 10px":0,background:m.bg,color:m.fg,border:`${o?2:1.5}px solid ${m.border}`,borderRadius:999,boxShadow:o?"0 4px 10px rgba(0,0,0,.3)":"0 1px 3px rgba(0,0,0,.18)",cursor:p?"pointer":"default",lineHeight:1,fontFamily:"Inter, system-ui, sans-serif",fontSize:13,fontWeight:600,whiteSpace:"nowrap",position:"relative",...l},b=jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[t,g?jsxRuntime.jsx("span",{children:r}):null,n?jsxRuntime.jsx("span",{style:{position:"absolute",top:-6,right:-6,pointerEvents:"none"},children:n}):null]});return p?jsxRuntime.jsx("button",{ref:u,type:"button",onClick:a,"aria-label":i,className:c,style:f,children:b}):jsxRuntime.jsx("span",{ref:u,"aria-label":i,role:i?"img":void 0,className:c,style:f,children:b})});function Bh({children:e,variant:t="external",tokens:r,ariaLabel:o}){let n=Cn(r);if(t==="external"){let i=n.badge.external;return jsxRuntime.jsx("span",{"aria-label":o,style:{display:"inline-flex",alignItems:"center",justifyContent:"center",minWidth:i.diameter,height:i.diameter,padding:"0 6px",background:i.bg,color:i.fg,border:`2px solid ${i.borderColor}`,borderRadius:999,fontSize:i.fontSize,fontWeight:700,fontFamily:"Inter, system-ui, sans-serif",fontVariantNumeric:"tabular-nums",lineHeight:1},children:e})}let a=n.badge.inline;return jsxRuntime.jsx("span",{"aria-label":o,style:{color:a.fg,fontSize:a.fontSize,fontWeight:700,fontVariantNumeric:"tabular-nums",lineHeight:1},children:e})}var ap=[{type:"navigation",position:"bottom-right",showCompass:true,showGeolocate:true,showResetZoom:true}];var Vh="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJcAAACXCAYAAAAYn8l5AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAABtCSURBVHgB7Z2Jkty0GoV7hlz2HcIeSPGkPCmELRC2sO8kN5+L03XmR7IlW3LbSZ+qrp7pdtuydPTvki9u3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kkkQh8f3l2Ov2Eo49GsVUhyHa/TWV8phayCKxDNRKMlpWD7MfL4fpmRivouXJQTJpmubjdDaj6JfeNjsstz7ocrZnOSaGcYiwrHNHEbecf03fE1hR7qgVo99vl/IZXQLY8RfNSvSJkWodyR41vr4h50bknYYhINUG8/u1L3p8q9K20l5Ky9ecCzV91hAQDS0eIgtArWU3vewVLXA0yoopUDTc2EZI7fBKeaQkH7gdmvMEgw11AkbR5N6amqujqnCAkYbl8gHs4wFShtxY9vm9oFqdwubeWeqKTznacNJ/CbCpqTjwKTE7jMs3QHaRzUkyvCvTdKQmzuGyfyqHEKJkOQJmBwazq0Nl88X77Dk09SoHR6YU2RxMUSDP8fw6bxvv7AnkLrBK/29eNS5r4U+x8EA6nBlsj0ETm9gjUO7p5DqPDOkOIptbQgNDeH/unQWDz/ZdA0zBOJ/f1sXQI6QyPqxtnMII3/NEh9kJGEBI+zqmyVwLXglLm+u3o6W6t8oiBZc1pwpF3Z/Tq1kX1oKDcglalt0Mq5G+Zzha8dbY+rvA7Erz2Jf1VQQm9t9zxzU0kLlDp2uX9IwZVZxyO2G19y9ieD165lH9Fosk8DI5sufSSLSZBQSF3maHFuDcVGsLHjqrgKZLUX5JqjGehdg3ULYhq7fAkpy5voaGxxtFgmygtNBJMSfalN4Ghq0DVGhNw+TbZUJBvl6KdlImJXLsphrcJtyi/rBx7bNiPF3drqCfiaI7S/0yAfzPgdNJKqQ+lwh1XfSmYClPT+R2b/03chQhh/fQH7Dav+EOO2oojEn8WdyuYzZbw6+e/WpX6eGYK0xR3BJhumCL/0lYS1EWShiFKXp4HOjIdwcvzNzjuNg4uobmh3lmZNljg+RHIokP7iJ+//S9/0JF4UWgALQSUifcPn+AvCxKcp8u7vR5XAiSC3WYDByQWZ1myzFUtOgbu577+f5ZPq/B5Pf+nAAAAAElFTkSuQmCC";function Gh(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 i5="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 Uh(e){return tailwindMerge.twMerge(i5,e)}function Ao({position:e="top-right",className:t,style:r,children:o}){return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge(Gh(e),t),style:r,children:o})}function _t({icon:e,iconSize:t=24,onPress:r,isDisabled:o=false,className:n,iconClassName:a="text-text-primary",variant:i="secondary",isActive:s=false,ariaLabel:c,iconWeight:l="regular",...u}){let d=tailwindMerge.twMerge(Uh(),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,{...u,className:d,onPress:r,variant:i,size:"sm",isDisabled:o,"aria-label":c,"aria-pressed":s||void 0,type:"button",children:jsxRuntime.jsx(I,{name:e,size:t,className:m,weight:l})})}var p5=e=>[{id:"streets",name:"Streets",description:"Standard street map with traffic data",preview:e?Hh:Wh},{id:"satellite",name:"Satellite",description:"Aerial imagery with street labels",preview:Oh},{id:"neutral",name:"Neutral",description:"Clean design with light/dark variants",preview:e?Vh:zh}];function m5({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 Jh({position:e="bottom-left",className:t,style:r,currentMapType:o="streets",onMapTypeChange:n,layers:a=[],onLayerToggle:i,onClearAll:s}){let{isDarkTheme:c}=Mt(),{isMobile:l}=Pt(),[u,d]=Ee.useState(false),m=p5(c),p=b=>{n?.(b);},g=a.filter(b=>b.legend),f=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))})]}),g.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:g.map(b=>jsxRuntime.jsx(_o,{isSelected:b.visible!==false,onChange:()=>i?.(b.id),children:jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[b.legend&&jsxRuntime.jsx(m5,{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(Ao,{position:e,className:t,style:r,children:jsxRuntime.jsx("div",{className:"relative",children:l?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(_t,{icon:"Stack",ariaLabel:"Map layers and settings",onPress:()=>d(true)}),jsxRuntime.jsx(Xe,{isOpen:u,onClose:()=>d(false),title:"Map layers",animationVariant:"scale",children:f})]}):jsxRuntime.jsxs(reactAriaComponents.DialogTrigger,{children:[jsxRuntime.jsx(_t,{icon:"Stack",ariaLabel:"Map layers and settings"}),jsxRuntime.jsx(Ze,{placement:"top start",children:jsxRuntime.jsx(reactAriaComponents.Dialog,{"aria-label":"Map layers and settings",className:"p-4 min-w-80 bg-background-surface border border-border rounded-lg shadow-xl focus:outline-none focus:ring-0",children:f})})]})})})}function qh({position:e="top-right",className:t,style:r,onToggle:o,isActive:n=false}){return jsxRuntime.jsx(Ao,{position:e,className:tailwindMerge.twMerge("md:hidden",t),style:r,children:jsxRuntime.jsx(_t,{icon:"ListDashes",onPress:o,isActive:n,ariaLabel:n?"Hide list view":"Show list view"})})}var x5={sm:"gap-2",md:"gap-4",lg:"gap-6"};function Vl({position:e="top-right",className:t,style:r,children:o,orientation:n="vertical",spacing:a="md"}){return jsxRuntime.jsx(Ao,{position:e,style:r,children:jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("flex",n==="vertical"?"flex-col":"flex-row",x5[a],t),children:o})})}function Xh({mapRef:e,position:t="bottom-right",className:r,style:o,showCompass:n=true,showGeolocate:a=true,showResetZoom:i=true,onResetZoom:s,onCompassClick:c,onGeolocateClick:l}){let[u,d]=Ee.useState(false),m=Ee.useRef(true);Ee.useEffect(()=>()=>{m.current=false;},[]);let p=()=>{c?c():e.current&&e.current.easeTo({bearing:0,duration:500});},g=async()=>{if(!u)if(l)l();else {if(!navigator.geolocation){console.warn("Geolocation is not supported by this browser.");return}if(navigator.permissions?.query)try{if((await navigator.permissions.query({name:"geolocation"})).state==="denied"){console.warn("Geolocation permission was previously denied. Please enable location services in your browser settings.");return}}catch{}d(true),navigator.geolocation.getCurrentPosition(C=>{if(!m.current)return;let{latitude:y,longitude:S}=C.coords;e.current&&e.current.flyTo({center:[S,y],zoom:15,duration:2e3}),d(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}d(false);}},{enableHighAccuracy:true,timeout:1e4,maximumAge:0});}};if(!n&&!a&&!i)return null;let f=!i&&n,b=!i&&!n&&a,x=!a&&n;return jsxRuntime.jsxs(Vl,{position:t,className:r,style:o,spacing:"sm",children:[i&&jsxRuntime.jsx(_t,{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(_t,{icon:"Compass",onPress:p,ariaLabel:"Reset map orientation",className:tailwindMerge.twMerge(!f&&"rounded-t-none border-t-0",!x&&"rounded-b-none border-b-0")}),a&&jsxRuntime.jsx(_t,{icon:u?"Spinner":"NavigationArrow",onPress:g,isDisabled:u,ariaLabel:"Go to my location",iconClassName:tailwindMerge.twMerge("text-text-primary",u&&"animate-spin"),className:tailwindMerge.twMerge(!b&&"rounded-t-none border-t-0",!b&&n&&"lg:rounded-t lg:border-t")})]})}function ey({position:e="top-left",className:t,style:r,onSearch:o,placeholder:n="Search places...",showSearchInput:a=true}){let[i,s]=Ee.useState(false),[c,l]=Ee.useState(""),u=()=>{a?s(!i):o&&o("");},d=p=>{p.preventDefault(),o&&c.trim()&&(o(c.trim()),s(false));},m=p=>{p.key==="Escape"&&s(false);};return jsxRuntime.jsx(Ao,{position:e,className:t,style:r,children:jsxRuntime.jsxs("div",{className:"relative",children:[jsxRuntime.jsx(_t,{icon:"MagnifyingGlass",onPress:u,ariaLabel:"Search"}),i&&a&&jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("absolute top-12 left-0 min-w-64","bg-background-surface border border-border rounded-lg shadow-xl p-3"),children:jsxRuntime.jsx("form",{onSubmit:d,children:jsxRuntime.jsxs("div",{className:"flex items-center space-x-2",children:[jsxRuntime.jsx("input",{type:"text",value:c,onChange:p=>l(p.target.value),onKeyDown:m,placeholder:n,className:tailwindMerge.twMerge("flex-1 px-3 py-2 text-sm rounded border","bg-background border-border text-text-primary placeholder:text-text-secondary","focus:outline-none focus:ring-2 focus:ring-action-brand"),autoFocus:true}),jsxRuntime.jsx(Q,{type:"submit",variant:"primary",size:"sm",className:"px-3 py-2",children:"Search"})]})})})]})})}var S5={navigation:"bottom-right",layers:"bottom-left",search:"top-left",list:"top-right",custom:"top-right"};function sp(e){return e.position??S5[e.type]}function ty(e,t,r){let o=sp(e),n=e.id??`${e.type}-${t}`;switch(e.type){case "navigation":{let i=e.showResetZoom!==false&&r.showResetButton;return jsxRuntime.jsx(Xh,{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(Jh,{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(qh,{position:o,onToggle:e.onToggle,isActive:e.isActive,style:e.style,className:e.className},n);case "custom":return jsxRuntime.jsx("div",{children:e.render(r)},n);default:return null}}function lp(e,t){let r=e.reduce((n,a,i)=>{let s=sp(a);return n[s]||(n[s]=[]),n[s].push({control:a,index:i}),n},{}),o=[];for(let[n,a]of Object.entries(r)){if(a.length===1){o.push(ty(a[0].control,a[0].index,t));continue}let i={position:"static",top:"auto",right:"auto",bottom:"auto",left:"auto"};o.push(jsxRuntime.jsx(Vl,{position:n,spacing:"sm",children:a.map(({control:s,index:c})=>{let l={...s,style:{...s.style,...i}};return ty(l,c,t)})},`group-${n}`));}return o}function Ol(){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 cp={vector:e=>({kind:"vector",...e}),geojson:e=>({kind:"geojson",...e}),customPins:e=>({kind:"customPins",...e}),raster:e=>({kind:"raster",...e}),clusteredVector:e=>({kind:"clusteredVector",...e})};function dp(e){return e.kind==="vector"}function up(e){return e.kind==="geojson"}function pp(e){return e.kind==="customPins"}function mp(e){return e.kind==="raster"}function bi(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(N5,{spec:o,mapType:t},o.id);case "geojson":return jsxRuntime.jsx(k5,{spec:o,mapType:t},o.id);case "customPins":return jsxRuntime.jsx(P5,{spec:o,mapType:t},o.id);case "raster":return jsxRuntime.jsx(R5,{spec:o},o.id);case "clusteredVector":return jsxRuntime.jsx(T5,{spec:o,mapType:t},o.id);default:return console.warn("[Layers] Unknown layer kind:",o.kind),null}})})}function N5({spec:e,mapType:t}){let{colorMode:r}=Mt(),o=Ee.useMemo(()=>ay(e.style,e.renderAs,r,t),[e.style,e.renderAs,r,t]),n=Ee.useMemo(()=>({visibility:e.visible===false?"none":"visible"}),[e.visible]),a={id:e.id,type:ny(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(z5.Source,{...s,children:jsxRuntime.jsx(z5.Layer,{...a})},e.tileset)}function T5({spec:e}){let{colorMode:t,isDarkTheme:r}=Mt(),o=1.25,n=9,a=3,i=n*1.4,s=.2,c=[0,5],l=Ee.useMemo(()=>r?{clusters:e.clusterStyle?.color?Cr(e.clusterStyle.color):"#000000",shadow:e.clusterStyle?.shadowColor||"rgba(0, 0, 0, 0.5)",point:{fill:e.pointStyle?.color?Cr(e.pointStyle.color):"#000000",stroke:e.pointStyle?.borderColor||"#ffffff",shadow:"rgba(0, 0, 0, 0.5)"},text:{onCluster:"#ffffff"},selected:{fill:e.selectedStyle?.color?Cr(e.selectedStyle.color):"#444ae1"}}:{clusters:e.clusterStyle?.color?Cr(e.clusterStyle.color):"#000000",shadow:e.clusterStyle?.shadowColor||"rgba(0, 0, 0, 0.3)",point:{fill:e.pointStyle?.color?Cr(e.pointStyle.color):"#000000",stroke:e.pointStyle?.borderColor||"#ffffff",shadow:"rgba(0, 0, 0, 0.3)"},text:{onCluster:"#ffffff"},selected:{fill:e.selectedStyle?.color?Cr(e.selectedStyle.color):"#444ae1"}},[r,t,e.clusterStyle,e.pointStyle,e.selectedStyle]),u=10,d=30,m=Math.log(2),p=Math.log(2e3),g=(e.clusterStyle?.sizes?.length??0)>0,f=Ee.useMemo(()=>g?e.clusterStyle.sizes.map(({threshold:S,radius:k})=>({threshold:S,radius:k,color:l.clusters})):[{threshold:30,radius:20,color:l.clusters},{threshold:200,radius:35,color:l.clusters},{threshold:1e3,radius:50,color:l.clusters}],[g,e.clusterStyle?.sizes,l.clusters]),b=S=>g?["step",["get","point_count"],S[0].radius,...S.flatMap(({threshold:k,radius:R})=>[k,R])]:["interpolate",["linear"],["ln",["max",2,["get","point_count"]]],m,u,p,d],x=S=>g?["step",["get","point_count"],S[0].radius*o,...S.flatMap(({threshold:k,radius:R})=>[k,R*o])]:["interpolate",["linear"],["ln",["max",2,["get","point_count"]]],m,u*o,p,d*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=Ee.useMemo(()=>{let S=e.pointStyle?.radius??n,k=e.pointStyle?.borderWidth??a,R=e.selectedStyle?.radius??n*1.5,E=D=>{let L={...D};return e.minZoom!==void 0&&(L.minzoom=e.minZoom),e.maxZoom!==void 0&&(L.maxzoom=e.maxZoom),L};return [E({id:`${e.id}-cluster-shadows`,type:"circle","source-layer":e.sourceLayer,filter:["==",["get","cluster"],true],paint:{"circle-radius":x(f),"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(f),"circle-color":["step",["get","point_count"],f[0].color,...f.flatMap(({threshold:D,color:L})=>[D,L])]}}),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":k,"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":R,"circle-color":l.selected.fill,"circle-stroke-width":k,"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":ry(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":ry(R,e.pointStyle.icon.size),"icon-allow-overlap":true,"icon-ignore-placement":true}})]:[]]},[e.id,e.sourceLayer,e.selectedId,e.minZoom,e.maxZoom,e.pointStyle,e.selectedStyle,f,l,n,a,i,s]);return jsxRuntime.jsx(z5.Source,{...C,children:y.map(S=>jsxRuntime.jsx(z5.Layer,{...S},S.id))},e.tileset)}function k5({spec:e,mapType:t}){let{colorMode:r}=Mt(),o=Ee.useMemo(()=>typeof e.data=="string"?null:e.data,[e.data]),n=Ee.useMemo(()=>ay(e.style,e.renderAs,r,t,o),[e.style,e.renderAs,r,t,o]),a=Ee.useMemo(()=>({visibility:e.visible===false?"none":"visible"}),[e.visible]),i=Ee.useMemo(()=>(typeof e.data=="string",e.data),[e.data]),s={id:`${e.id}-source`,type:"geojson",data:i};e.cluster?.enabled&&(s.cluster=true,s.clusterRadius=e.cluster.radius??50,s.clusterMaxZoom=e.cluster.maxZoom??14);let c={id:e.id,type:ny(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(z5.Source,{...s,children:jsxRuntime.jsx(z5.Layer,{...c})})}function P5({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(z5.Marker,{longitude:a,latitude:i,anchor:"bottom",children:jsxRuntime.jsx(r,{...s})},`${e.id}-${n}`)})})}function R5({spec:e}){let t=Ee.useMemo(()=>{if(!e.style)return {};let n={};return e.style.opacity!==void 0&&(n["raster-opacity"]=e.style.opacity),e.style.brightnessMin!==void 0&&(n["raster-brightness-min"]=e.style.brightnessMin),e.style.brightnessMax!==void 0&&(n["raster-brightness-max"]=e.style.brightnessMax),e.style.contrast!==void 0&&(n["raster-contrast"]=e.style.contrast),e.style.saturation!==void 0&&(n["raster-saturation"]=e.style.saturation),e.style.hueRotate!==void 0&&(n["raster-hue-rotate"]=e.style.hueRotate),e.style.fadeDuration!==void 0&&(n["raster-fade-duration"]=e.style.fadeDuration),n},[e.style]),r={id:`${e.id}-source`,type:"raster",tiles:[e.tileset]};e.tileSize&&(r.tileSize=e.tileSize);let o={id:e.id,type:"raster",paint:t};return e.minZoom!==void 0&&(o.minzoom=e.minZoom),e.maxZoom!==void 0&&(o.maxzoom=e.maxZoom),jsxRuntime.jsx(z5.Source,{...r,children:jsxRuntime.jsx(z5.Layer,{...o})},e.tileset)}var Fo="#666";function ry(e,t){let r=t??64;return e*2/r}function ny(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 ay(e,t,r,o,n){if(!e)return {};let a={};if(e.color){let i=Cr(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"]=oy(e.width)),e.radius&&t==="circle"&&(a["circle-radius"]=oy(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?Cr(e.borderColor,r,n):Cr(e.color||"#000",r,n)),t==="circle"&&e.borderWidth){a["circle-stroke-width"]=e.borderWidth;let i=e.borderColor?Cr(e.borderColor,r,n):ft(`map-${o}-border`,"#ffffff");a["circle-stroke-color"]=i;}return a}function D5(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(Cr(i));return n.push(Fo),n}function M5(e,t){let r=zm(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=Om(r),n=["match",["get",e]];for(let[a,i]of Object.entries(o))n.push(a),n.push(i);return n.push(Fo),n}function E5(e,t="viridis",r,o){let n=Yc(r,e),a;if(o&&o!=="auto")a=o;else {if(a=Kc(n),n.length===0)return console.warn(`[Layers] No numeric values found for property "${e}"`),Fo;console.log(`[Layers] Auto-calculated sequential scale for "${e}": ${a.min} to ${a.max}`);}let i=Jc(t),s=["interpolate",["linear"],["get",e]];return i.forEach((c,l)=>{let u=l/(i.length-1),d=a.min+u*(a.max-a.min);s.push(d,c);}),s}function L5(e,t="redYellowBlue",r,o,n){let a=Yc(r,e),i=Hm(a,o),s;if(n&&n!=="auto")s=n;else {if(s=Kc(a),a.length===0)return console.warn(`[Layers] No numeric values found for property "${e}"`),Fo;console.log(`[Layers] Auto-calculated diverging scale for "${e}": ${s.min} \u2190 ${i} \u2192 ${s.max}`);}let c=jc(t),l=4,u=["interpolate",["linear"],["get",e]];for(let d=0;d<=l;d++){let m=d/l,p=s.min+m*(i-s.min);u.push(p,c[d]);}for(let d=l+1;d<c.length;d++){let m=(d-l)/(c.length-1-l),p=i+m*(s.max-i);u.push(p,c[d]);}return u}function Cr(e,t,r){if(typeof e=="string")return e;if("token"in e)return ft(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?M5(e.by,r):(console.warn("[Layers] Categorical auto-assignment requires GeoJSON data (not URL-based data)"),Fo);if(e.palette==="sequential")return r?E5(e.by,e.scheme,r,e.scale):(console.warn("[Layers] Sequential palette requires GeoJSON data (not URL-based data)"),Fo);if(e.palette==="diverging")return r?L5(e.by,e.scheme,r,e.center,e.scale):(console.warn("[Layers] Diverging palette requires GeoJSON data (not URL-based data)"),Fo)}if("mapping"in e)return D5(e)}return Fo}function oy(e){return typeof e=="number"?e:"byZoom"in e?["interpolate",["linear"],["zoom"],...e.byZoom.flatMap(([t,r])=>[t,r])]:e}var Gl=null;function Ul(){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():(Gl||(Gl=import('mapbox-gl/dist/mapbox-gl.css').then(()=>{}).catch(t=>{console.error("Failed to load Mapbox CSS",t),Gl=null;})),Gl)}function Yl(){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:`
|
|
107
|
+
`,"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 uP={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"},pP={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"}},mP={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"},fP={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"},gP={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"},bP={start:"items-start",center:"items-center",end:"items-end",stretch:"items-stretch",baseline:"items-baseline"},xP={start:"justify-start",center:"justify-center",end:"justify-end",between:"justify-between",around:"justify-around",evenly:"justify-evenly"},hP={row:"grid-flow-row",col:"grid-flow-col",dense:"grid-flow-dense","row-dense":"grid-flow-row-dense","col-dense":"grid-flow-col-dense"},yP={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"},vP={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 ih(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 _u({cols:e=1,gap:t="md",gapX:r,gapY:o,align:n="stretch",justify:a="start",flow:i="row",autoFit:s,autoFill:c,className:l,children:u}){let d=tailwindMerge.twMerge("grid",s||c?"":ih(e,uP,pP),!r&&!o&&mP[t],r&&fP[r],o&&gP[o],bP[n],xP[a],hP[i],l),m={};return s?m.gridTemplateColumns=`repeat(auto-fit, minmax(${s}, 1fr))`:c&&(m.gridTemplateColumns=`repeat(auto-fill, minmax(${c}, 1fr))`),jsxRuntime.jsx("div",{className:d,style:m,children:u})}function sh({span:e,className:t,children:r}){let o=tailwindMerge.twMerge(ih(e,yP,vP),t);return jsxRuntime.jsx("div",{className:o,children:r})}_u.Item=sh;function CP(e,t){return Ee__namespace.default.isValidElement(e)?e:Rr({value:e,formatter:t,emptyClassName:"text-text-secondary",emptyText:"\u2014"})}function SP(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 wP={neutral:"text-text-primary",success:"text-feedback-success",warning:"text-feedback-warning",error:"text-feedback-error",info:"text-feedback-info"},NP=24,kP=20;function TP({item:e,dense:t,valueAlign:r}){let o=SP(e),n=o?wP[o]:"",a=e.stackOnMobile,i=typeof e.value=="string"&&e.value.length>NP&&!e.formatter&&!Ee__namespace.default.isValidElement(e.value),s=CP(e.value,e.formatter),c=i?Fn(e.value,kP):null,l=typeof e.copyable=="function"?e.copyable(e.value):String(e.value),u=e.piiType&&e.piiEntity?{"data-pii-type":e.piiType,"data-pii-entity":e.piiEntity}:{},d=Object.keys(u).length>0,m=i?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(At,{content:d?jsxRuntime.jsx("span",{...u,children:String(e.value)}):String(e.value),children:jsxRuntime.jsx("span",{className:tailwindMerge.twMerge("md:hidden",e.href?"hover:underline cursor-pointer":""),...u,children:c})}),jsxRuntime.jsx("span",{className:tailwindMerge.twMerge("hidden md:inline",e.href?"hover:underline cursor-pointer":""),...u,children:s})]}):jsxRuntime.jsx("span",{className:e.href?"hover:underline cursor-pointer":"",...u,children:s}),p=e.copyable?jsxRuntime.jsx(vo,{value:l,size:"sm",children:jsxRuntime.jsx("span",{className:"sr-only",children:"Copy"})}):null,g=e.copyable&&(e.copyIconPosition==="left"||!e.copyIconPosition),f=e.copyable&&e.copyIconPosition==="right",x=jsxRuntime.jsxs("dd",{className:tailwindMerge.twMerge(t?"text-sm":"text-base","font-medium",a?r==="start"?"text-left":"text-left sm:text-right":r==="start"?"text-left":"text-right",n,e.disabled&&"opacity-50","overflow-hidden min-w-0"),children:[jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("inline-flex items-center gap-1 max-w-full",r==="start"?"justify-start":"justify-end"),children:[jsxRuntime.jsxs("span",{className:"inline-flex items-center gap-1 min-w-0",children:[m,e.iconRight]}),f&&p]}),e.meta&&jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("text-xs text-text-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"})]}),g&&jsxRuntime.jsx("div",{className:"flex items-center",children:p}),e.href?jsxRuntime.jsx("a",{href:e.href,onClick:e.onAction,className:"block",children:x}):x]});return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("grid",a?"items-start sm:items-center":g?"items-center":"items-start",a?g?"grid-cols-1 gap-y-1 sm:grid-cols-[minmax(120px,1fr)_auto_auto] sm:gap-x-1 sm:gap-y-0":t?"grid-cols-1 gap-y-1 sm:grid-cols-[minmax(120px,1fr)_1fr] sm:gap-x-2 sm:gap-y-0":"grid-cols-1 gap-y-1 sm:grid-cols-[minmax(120px,1fr)_1fr] sm:gap-x-4 sm:gap-y-0":g?"grid-cols-[minmax(120px,1fr)_auto_auto] gap-x-1":t?"grid-cols-[minmax(120px,1fr)_1fr] gap-x-2":"grid-cols-[minmax(120px,1fr)_1fr] gap-x-4"),children:v})}function El({items:e,layout:t="one-column",dense:r=false,valueAlign:o="end",showDividers:n=false,skeleton:a=false,empty:i=false,error:s,className:c}){return a?jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("grid",t==="two-column"?"md:grid-cols-2 gap-x-6":"grid-cols-1",r?"gap-y-1":"gap-y-2",c),children:Array.from({length:e.length||4}).map((l,u)=>jsxRuntime.jsxs("div",{className:"grid grid-cols-[1fr_auto] items-start gap-x-4",children:[jsxRuntime.jsx(J,{className:"h-4 w-24"}),jsxRuntime.jsx(J,{className:"h-5 w-16"})]},u))}):s?jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("text-sm text-feedback-error",c),children:s}):i||!e.length?jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("text-sm text-text-secondary",c),children:"No data available"}):jsxRuntime.jsx("dl",{className:tailwindMerge.twMerge("grid",t==="two-column"?"md:grid-cols-2 gap-x-6":"grid-cols-1",r?"gap-y-1":"gap-y-2",c),children:e.map((l,u)=>jsxRuntime.jsxs(Ee__namespace.default.Fragment,{children:[n&&u>0&&t==="one-column"&&jsxRuntime.jsx("div",{className:"col-span-full border-t border-border-default -mt-1 mb-1"}),jsxRuntime.jsx(TP,{item:l,dense:r,valueAlign:o})]},l.id))})}function dh({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(El,{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 qe={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 tp=Ee__namespace.createContext(null);function uh(){let e=Ee__namespace.useContext(tp);if(!e)throw new Error("Hierarchy components must be used within HierarchyExplorer");return e}function mh({node:e,renderNode:t}){let{selectedId:r,selectNode:o,navigateToNode:n,variant:a,size:i,showBullets:s,rootNodeId:c,stickyRootNode:l,navigationStack:u,setRootNodeSticky:d,useSplitLayout:m}=uh(),p=Ee__namespace.useRef(null),g=Ee__namespace.useRef(null),f=r===e.id,b=e.disabled||false,x=!!(e.children&&e.children.length>0),v=!!(e.metadata&&Object.keys(e.metadata).length>0),C=x||v,y=c!==void 0&&e.id!==void 0&&c===e.id&&u.length===0;Ee__namespace.useLayoutEffect(()=>{y&&l&&p.current&&g.current===null&&requestAnimationFrame(()=>{p.current&&(g.current=p.current.offsetTop);});},[y,l]),Ee__namespace.useEffect(()=>{if(!y||!l||!p.current)return;let z=p.current.parentElement;for(;z;){let S=window.getComputedStyle(z).overflowY;if(S==="auto"||S==="scroll")break;z=z.parentElement;}if(!z)return;let A=()=>{if(!p.current||g.current===null)return;let S=z.getBoundingClientRect(),N=z.scrollTop,F=S.height,W=p.current.offsetHeight,K=g.current-N,X=K+W,G=K<0,Y=X>F;G?d("top",e):Y?d("bottom",e):d(null,null);};return z.addEventListener("scroll",A),A(),()=>{z.removeEventListener("scroll",A);}},[y,l,e,d]);let w=()=>{b||(m?o(e):C?n(e):o(e));},T=z=>{b||(z.key==="Enter"||z.key===" ")&&(z.preventDefault(),w());},R={isSelected:f,isDisabled:b,hasChildren:x,hasMetadata:v,level:0},E=tailwindMerge.twMerge("relative cursor-pointer group",b&&"opacity-50 cursor-not-allowed"),D=tailwindMerge.twMerge("absolute inset-0 transition-colors",y&&!f&&!b&&"group-hover:bg-background-hover",y&&f&&!b&&a==="subtle"&&"bg-background-selected group-hover:bg-background-hover",y&&f&&b&&a==="subtle"&&"bg-background-selected",y&&f&&!b&&a==="solid"&&"bg-action-brand group-hover:bg-action-brand-hover",y&&f&&b&&a==="solid"&&"bg-action-brand",!y&&a==="subtle"&&!f&&!b&&"group-hover:bg-background-hover",!y&&a==="subtle"&&f&&!b&&"bg-background-selected group-hover:bg-background-hover",!y&&a==="subtle"&&f&&b&&"bg-background-selected",!y&&a==="solid"&&!f&&!b&&"group-hover:bg-background-hover",!y&&a==="solid"&&f&&!b&&"bg-action-brand group-hover:bg-action-brand-hover",!y&&a==="solid"&&f&&b&&"bg-action-brand"),L=tailwindMerge.twMerge("relative flex items-center gap-2 text-text-primary hover:text-text-primary transition-colors",qe[i].node,y&&!f&&"font-semibold",a==="subtle"&&f&&"text-text-link-default",a==="solid"&&f&&"text-[color:var(--color-action-brand-text)]");return jsxRuntime.jsxs("div",{ref:p,className:E,onClick:w,onKeyDown:T,role:"treeitem","aria-selected":f,"aria-disabled":b,tabIndex:0,"data-node-id":e.id,children:[jsxRuntime.jsx("div",{className:D}),jsxRuntime.jsxs("div",{className:L,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:qe[i].bullet,height:qe[i].bullet},children:e.icon&&jsxRuntime.jsx(B,{name:e.icon,size:qe[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,R):jsxRuntime.jsx("span",{className:"truncate",children:e.name})}),C&&!m&&jsxRuntime.jsx("div",{className:"flex-shrink-0",children:jsxRuntime.jsx(B,{name:"CaretRight",size:qe[i].icon,className:"text-text-secondary"})})]})]})}function gh({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:`${qe[n].spacing.x+qe[n].bullet/2}px`,top:`${qe[n].spacing.y+qe[n].bullet/2}px`,bottom:`${qe[n].spacing.y+qe[n].bullet/2}px`},"aria-hidden":"true"}),e.map(i=>jsxRuntime.jsx(mh,{node:i,renderNode:a},i.id))]})}function bh(){let[e,t]=Ee.useState(()=>typeof window>"u"?false:window.matchMedia("(prefers-reduced-motion: reduce)").matches);return Ee.useEffect(()=>{let r=window.matchMedia("(prefers-reduced-motion: reduce)");t(r.matches);let o=n=>{t(n.matches);};return r.addEventListener("change",o),()=>{r.removeEventListener("change",o);}},[]),e}function fi({children:e,mode:t="sync",presenceKey:r}){let o=r!==void 0&&Ee__namespace.default.isValidElement(e)?Ee__namespace.default.cloneElement(e,{key:r}):r!==void 0?jsxRuntime.jsx("div",{children:e},r):e;return jsxRuntime.jsx(framerMotion.AnimatePresence,{mode:t,children:o})}var AP={instant:0,fast:150,normal:250,slow:350,slower:500},rp={xs:"4px",sm:"8px",md:"16px"};function IP(e){return e?typeof e=="string"&&e in rp?rp[e]:typeof e=="number"?`${e}px`:e:rp.sm}function gi({children:e,direction:t,distance:r="sm",duration:o="normal",delay:n=0,className:a}){let i=bh(),s=typeof o=="number"?o:AP[o],c=IP(r),l=p=>{switch(t){case "left":return {x:`-${p}`};case "right":return {x:p};case "up":return {y:`-${p}`};case "down":return {y:p}}},u=i?{opacity:0}:{opacity:0,...l(c)},d={opacity:1,x:0,y:0},m=i?{opacity:0}:{opacity:0,...l(c)};return jsxRuntime.jsx(framerMotion.motion.div,{className:a,initial:u,animate:d,exit:m,transition:{duration:i?0:s/1e3,delay:i?0:n/1e3,ease:[.4,0,.2,1]},children:e})}function Il({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",qe[r].node),children:[jsxRuntime.jsx(B,{name:"CaretLeft",size:qe[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 Fl({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",qe[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:qe[n].bullet,height:qe[n].bullet},children:e.icon&&jsxRuntime.jsx(B,{name:e.icon,size:qe[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 vh({currentItems:e,currentParent:t,navigationStack:r,selectedId:o,variant:n,size:a,showBullets:i,slideDirection:s,viewKey:c,hasHeight:l,rootNodeStickyState:u,renderNodeList:d,renderDetailContent:m,onNavigateBack:p}){return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[r.length===0&&u.position&&u.node&&jsxRuntime.jsx(Fl,{node:u.node,position:u.position,selectedId:o,variant:n,size:a,showBullets:i}),r.length>0&&jsxRuntime.jsx(Il,{navigationStack:r,onNavigateBack:p,size:a}),jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("relative",l&&"overflow-auto h-full"),children:jsxRuntime.jsx(fi,{mode:"wait",presenceKey:c,children:r.length===0?d(e,true):jsxRuntime.jsx(gi,{direction:s,distance:"100%",duration:"normal",children:m(t)})})})]})}function np(e,t){for(let r of e){if(r.id===t)return r;if(r.children&&r.children.length>0){let o=np(r.children,t);if(o)return o}}return null}function Bl(e){if(e!==void 0)return typeof e=="number"?`${e}px`:e}function Ch(e,t){if(process.env.NODE_ENV!=="development")return;let r=new Set,o=(n,a="root")=>{for(let i=0;i<n.length;i++){let s=n[i],c=`${a}[${i}]`;s.id?r.has(s.id)?console.warn(`[HierarchyExplorer] Duplicate node ID found: "${s.id}". Each node must have a unique ID.`):r.add(s.id):console.warn(`[HierarchyExplorer] Node at ${c} is missing an "id" field. Node name: "${s.name||"(unnamed)"}"`),s.children&&o(s.children,`${c}.children`);}};o(e),t&&!r.has(t)&&console.warn(`[HierarchyExplorer] Root node ID "${t}" not found in data. No node will be highlighted as root.`);}function wh({data:e,currentItems:t,navigationStack:r,selectedId:o,variant:n,size:a,showBullets:i,rootNodeStickyState:s,renderNodeList:c,renderDetailContent:l,renderEmptyState:u,onNavigateBack:d}){let m=o?np(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(Fl,{node:s.node,position:s.position,selectedId:o,variant:n,size:a,showBullets:i}),r.length>0&&jsxRuntime.jsx(Il,{navigationStack:r,onNavigateBack:d,size:a}),jsxRuntime.jsx("div",{className:"flex-1 overflow-auto",children:c(t,r.length===0)})]}),jsxRuntime.jsx("div",{className:"flex-1 min-w-0 overflow-auto bg-background-body",children:jsxRuntime.jsx(fi,{mode:"wait",presenceKey:m?.id||"empty",children:m?jsxRuntime.jsx(gi,{direction:"left",duration:"fast",children:l(m)}):u?u():jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("text-text-secondary text-center",qe[a].node,"py-8"),children:"Select an item to view details"})})})]})}function Nh({data:e,renderNode:t,onNodeSelect:r,onNavigate:o,selectedId:n,rootNodeId:a,stickyRootNode:i=true,height:s,minHeight:c,maxHeight:l,variant:u="subtle",size:d="md",showBullets:m=true,layout:p="auto",splitBreakpoint:g=768,renderEmptyState:f,renderDetailView:b,className:x,"aria-label":v="Hierarchy explorer"}){let[C,y]=Ee__namespace.useState(null),[w,T]=Ee__namespace.useState([]),[R,E]=Ee__namespace.useState("left"),[D,L]=Ee__namespace.useState({position:null,node:null}),{ref:z,width:A}=An(),S=Ee__namespace.useMemo(()=>p==="split"?true:p==="single"?false:A>=g,[p,A,g]),N=n!==void 0?n:C;Ee__namespace.useEffect(()=>{Ch(e,a);},[e,a]);let F=w.length>0?w[w.length-1]:null,W=F?F.children||[]:e,I=Ee__namespace.useCallback(H=>{E("left"),T(j=>[...j,H]),o?.(H,[...w,H]);},[w,o]),K=Ee__namespace.useCallback(()=>{E("right"),T(H=>{let j=H.slice(0,-1);return o?.(j.length>0?j[j.length-1]:null,j),j});},[o]),X=Ee__namespace.useCallback(H=>{n===void 0&&y(H.id),r?.(H,[...w,H]);},[n,w,r]),G=Ee__namespace.useCallback((H,j)=>{L({position:H,node:j});},[]),Y=Ee__namespace.useMemo(()=>({selectedId:N,selectNode:X,navigateToNode:I,navigateBack:K,rootNodeId:a,stickyRootNode:i,variant:u,size:d,showBullets:m,onNodeSelect:r,onNavigate:o,navigationStack:w,setRootNodeSticky:G,useSplitLayout:S}),[N,X,I,K,a,i,u,d,m,r,o,w,G,S]),P=Ee__namespace.useRef(null);Ee__namespace.useEffect(()=>{if(!a||!P.current||w.length>0||S)return;let H=P.current,j=setTimeout(()=>{let oe=H.querySelector(`[data-node-id="${a}"]`);oe&&oe.scrollIntoView({behavior:"auto",block:"center",inline:"nearest"});},100);return ()=>clearTimeout(j)},[a,w.length,S]);let k={height:Bl(s),minHeight:Bl(c),maxHeight:Bl(l)},V=s!==void 0||l!==void 0,M=F?F.id:"root",h=Ee__namespace.useCallback((H,j=false)=>jsxRuntime.jsx(gh,{items:H,showConnector:j,scrollContainerRef:j?P:null,showBullets:m,size:d,renderNode:t}),[m,d,t]),O=Ee__namespace.useCallback(H=>H?b?b(H,h):jsxRuntime.jsx(dh,{node:H,renderNodeList:h}):null,[b,h]);return jsxRuntime.jsx(tp.Provider,{value:Y,children:jsxRuntime.jsx("div",{ref:z,className:tailwindMerge.twMerge("select-none bg-background-surface rounded-lg border border-border-default relative",V&&"overflow-hidden",!V&&"h-full flex flex-col",S&&!V&&"flex-row",S&&V&&"flex",x),style:k,role:"tree","aria-label":v,children:S?jsxRuntime.jsx(wh,{data:e,currentItems:W,navigationStack:w,selectedId:N,variant:u,size:d,showBullets:m,rootNodeStickyState:D,renderNodeList:h,renderDetailContent:O,renderEmptyState:f,onNavigateBack:K}):jsxRuntime.jsx(vh,{currentItems:W,currentParent:F,navigationStack:w,selectedId:N,variant:u,size:d,showBullets:m,slideDirection:R,viewKey:M,hasHeight:V,rootNodeStickyState:D,renderNodeList:h,renderDetailContent:O,onNavigateBack:K})})})}function ZP({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 kh=({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}),Th=({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)=>ZP({...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]});Th.displayName="HoverCardContent";var XP=Object.assign(kh,{Root:kh,Content:Th});function QP(e,t){return Rr({value:e,formatter:t,emptyClassName:"text-text-secondary",emptyText:"\u2014"})}function _P(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 e5({points:e,className:t,ariaLabel:r}){let i=e.map(p=>typeof p.y=="number"?p.y:0);if(i.length===0)return null;let s=Math.min(...i),l=Math.max(...i)-s,u=p=>l===0?20/2:18-(p-s)/l*16,d=60/Math.max(e.length-1,1),m=e.map((p,g)=>{let f=2+g*d,b=u(typeof p.y=="number"?p.y:0);return `${g===0?"M":"L"} ${f} ${b}`}).join(" ");return jsxRuntime.jsx("svg",{width:64,height:20,role:"img","aria-label":r,className:tailwindMerge.twMerge("overflow-visible",t),children:jsxRuntime.jsx("path",{d:m,fill:"none",strokeWidth:"1.5",className:"stroke-border-muted"})})}function Rh({label:e,value:t,formatter:r,delta:o,deltaPeriodLabel:n,deltaIntent:a="upIsGood",trend:i,status:s,helpText:c,size:l="md",orientation:u="vertical",isLoading:d,empty:m,error:p,onClick:g,className:f,renderValue:b,renderDelta:x,renderTrend:v}){let y={sm:{label:et("labelSm"),value:et("displaySm"),delta:et("labelSm"),gap:"gap-1"},md:{label:et("labelMd"),value:et("displayMd"),delta:et("bodySm"),gap:"gap-2"},lg:{label:et("labelLg"),value:et("displayLg"),delta:et("bodyMd"),gap:"gap-3"}}[l],w=d?jsxRuntime.jsx(J,{className:"h-7 w-20"}):m?jsxRuntime.jsx("span",{className:"text-text-secondary",children:"\u2014"}):p?jsxRuntime.jsx("span",{className:et("bodySm","text-feedback-error"),children:typeof p=="string"?p:"Error"}):b?b(t):QP(t,r),T=x?x(o):o!==void 0&&!d&&!m&&!p?jsxRuntime.jsxs("div",{className:Mt(y.delta,_P(o,a),"flex items-center gap-1"),children:[o>0&&jsxRuntime.jsx(B,{name:"ArrowUp",size:12}),o<0&&jsxRuntime.jsx(B,{name:"ArrowDown",size:12}),o===0&&jsxRuntime.jsx(B,{name:"Minus",size:12}),jsxRuntime.jsxs("span",{children:[o>0?"+":"",Math.abs(o).toFixed(1),"%"]}),n&&jsxRuntime.jsxs("span",{className:"text-text-secondary",children:["\xB7 ",n]})]}):d&&o!==void 0?jsxRuntime.jsx(J,{className:"h-4 w-24"}):null,R=v?v(i):i&&i.length>0&&!d&&!p?jsxRuntime.jsx(e5,{points:i,ariaLabel:`${e} trend`,className:m?"opacity-30":""}):d&&i!==void 0?jsxRuntime.jsx(J,{className:"h-5 w-16"}):null;return jsxRuntime.jsxs("section",{className:tailwindMerge.twMerge("flex min-w-0",u==="horizontal"?`items-center ${y.gap}`:`flex-col ${y.gap}`,g&&"cursor-pointer hover:bg-background-muted rounded-lg px-3 py-2 -mx-3 -my-2 transition-colors",f),"aria-labelledby":`kpi-${e}`,onClick:g,children:[jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[jsxRuntime.jsx("h3",{id:`kpi-${e}`,className:Mt(y.label,"text-text-secondary truncate"),children:d?jsxRuntime.jsx(J,{className:"h-4 w-24"}):e}),c&&!d&&jsxRuntime.jsx(B,{name:"Question",size:12,className:"text-text-secondary cursor-help","aria-label":"Help"})]}),jsxRuntime.jsxs("div",{className:"flex items-baseline gap-2",children:[jsxRuntime.jsx("output",{className:Mt(y.value,p?"text-feedback-error":"text-text-primary"),"aria-label":`Value: ${w}`,children:w}),s&&!d&&!p&&jsxRuntime.jsx(Je,{variant:s.tone||"neutral",size:"sm",children:s.value})]}),(T||R)&&jsxRuntime.jsxs("div",{className:"flex items-center gap-3",children:[T,R]})]})}var Dh={xs:"gap-2",sm:"gap-3",md:"gap-4",lg:"gap-6",xl:"gap-8"},Mh={start:"items-start",center:"items-center",stretch:"items-stretch"};function Eh(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 sp({children:e,cols:t={base:1,sm:2,md:3,lg:4},gap:r="md",align:o="stretch",equalizeHeights:n=true,header:a,isLoading:i,scrollOnMobile:s=false,scrollItemMinWidth:c="140px",className:l}){let u=i?Ee__namespace.default.Children.map(e,p=>Ee__namespace.default.isValidElement(p)&&p.type&&typeof p.type!="string"&&"displayName"in p.type?Ee__namespace.default.cloneElement(p,{isLoading:true}):p):e,d=s?Ee__namespace.default.Children.map(u,p=>jsxRuntime.jsx("div",{className:"shrink-0",style:{minWidth:c},children:p})):u,m=s?tailwindMerge.twMerge("flex overflow-x-auto pb-2 -mb-2",Dh[r],"sm:grid sm:overflow-visible sm:pb-0 sm:-mb-0",Eh({...typeof t=="object"?t:{base:t},base:void 0}),Mh[o],n&&"sm:auto-rows-fr"):tailwindMerge.twMerge("grid",Eh(t),Dh[r],Mh[o],n&&"auto-rows-fr","w-full");return jsxRuntime.jsxs("section",{className:tailwindMerge.twMerge("w-full",l),"aria-label":"Key metrics",children:[a&&jsxRuntime.jsx("div",{className:"mb-4",children:a}),jsxRuntime.jsx("div",{className:m,children:s?d:u})]})}sp.displayName="KpiGroup";function Ih({items:e,renderItem:t,selectedId:r,onSelect:o,onHoverChange:n,isLoading:a=false,loadingState:i,error:s=null,renderLoadingSkeleton:c,loadingSkeletonCount:l=5,emptyMessage:u="No results found.",variant:d="relaxed",showDividers:m=true,onLoadMore:p,hasMore:g=false,enableVirtualization:f,estimatedItemSize:b=60,loadingIndicator:x,"aria-label":v,className:C="",style:y}){let[w,T]=Ee.useState(null),R=Ee.useRef(null),E=Ee.useRef(new Map),{scrollRef:D,loadMoreRef:L,virtualizer:z,virtualItems:A,isLoadingMore:S,computedLoadingState:N}=po({items:e,onLoadMore:p,hasMore:g,isLoading:a,loadingState:i,enableVirtualization:f,estimatedItemSize:b,overscan:5}),F=D??R,W=Ee.useCallback((h,O)=>{o?.(h,O);},[o]),I=Ee.useCallback((h,O)=>{T(h),n?.(h,O);},[n]),K=Ee.useCallback((h,O)=>{let H=h?.id;return typeof H=="string"&&H?H:`item-${O}`},[]),X=Ee.useCallback(h=>{if(!F.current||e.length===0)return;let O=document.activeElement,H=e.findIndex((Z,ne)=>{let ke=K(Z,ne),ie=E.current.get(ke);return ie&&(ie===O||ie.contains(O))}),j=H;switch(h.key){case "ArrowDown":h.preventDefault(),j=H===-1?0:Math.min(H+1,e.length-1);break;case "ArrowUp":h.preventDefault(),j=H===-1?0:Math.max(H-1,0);break;case "Home":h.preventDefault(),j=0;break;case "End":h.preventDefault(),j=e.length-1;break;default:return}let oe=K(e[j],j);E.current.get(oe)?.focus();},[e,K,F]),G=["flex flex-col","bg-background-surface","focus:outline-none focus:ring-2 focus:ring-border-focus focus:ring-offset-2"],Y={dense:"gap-0",relaxed:"gap-0"},P=m?"divide-y divide-border-muted":"",k=[...G,Y[d],P,C].filter(Boolean).join(" ");if(N==="loading"||a&&e.length===0){let h=c?jsxRuntime.jsx(jsxRuntime.Fragment,{children:Array.from({length:l}).map((O,H)=>jsxRuntime.jsx("div",{children:c()},`skeleton-${H}`))}):jsxRuntime.jsx(nf,{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:F,className:k,style:y,role:"listbox","aria-label":v,"aria-busy":"true","aria-live":"polite",children:h})}if(s)return jsxRuntime.jsx("div",{ref:F,className:k,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:F,className:k,style:y,role:"listbox","aria-label":v,"aria-live":"polite",children:jsxRuntime.jsx("div",{className:"p-4 text-center text-text-secondary",children:u})});let M=z?A?.map(h=>({virtualItem:h,item:e[h.index],index:h.index}))||[]:e.map((h,O)=>({item:h,index:O,virtualItem:null}));return jsxRuntime.jsxs("div",{ref:F,className:k,style:{...y,...p&&{overflow:"auto",height:y?.height||"600px"}},role:"listbox","aria-label":v,"aria-live":"polite",onKeyDown:X,tabIndex:0,children:[z&&jsxRuntime.jsxs("div",{style:{height:`${z.getTotalSize()}px`,width:"100%",position:"relative"},children:[M.map(({virtualItem:h,item:O,index:H})=>{if(!h)return null;let j=K(O,H),oe=r===j,me=w===j,Z={id:j,role:"option","aria-selected":oe,"aria-current":oe?"page":void 0,tabIndex:oe||r==null&&H===0?0:-1,onClick:ne=>W(ne,O),onMouseEnter:ne=>I(ne,O),onMouseLeave:ne=>I(null),onFocus:ne=>I(ne,O),onBlur:ne=>I(null),ref:ne=>{ne?E.current.set(j,ne):E.current.delete(j);}};return jsxRuntime.jsx("div",{"data-index":h.index,ref:z.measureElement,style:{position:"absolute",top:0,left:0,width:"100%",transform:`translateY(${h.start}px)`},children:t({item:O,index:H,isSelected:oe,isHovered:me,rowProps:Z})},j)}),p&&g&&jsxRuntime.jsx("div",{ref:L,style:{position:"absolute",top:`${z.getTotalSize()}px`,left:0,width:"100%",height:1,pointerEvents:"none"}}),S&&jsxRuntime.jsx("div",{style:{position:"absolute",top:`${z.getTotalSize()}px`,left:0,width:"100%"},children:x||jsxRuntime.jsx(or,{state:"loading-more"})})]}),!z&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[M.map(({item:h,index:O})=>{let H=K(h,O),j=r===H,oe=w===H,me={id:H,role:"option","aria-selected":j,"aria-current":j?"page":void 0,tabIndex:j||r==null&&O===0?0:-1,onClick:Z=>W(Z,h),onMouseEnter:Z=>I(Z,h),onMouseLeave:Z=>I(null),onFocus:Z=>I(Z,h),onBlur:Z=>I(null),ref:Z=>{Z?E.current.set(H,Z):E.current.delete(H);}};return jsxRuntime.jsx("div",{children:t({item:h,index:O,isSelected:j,isHovered:oe,rowProps:me})},H)}),p&&g&&jsxRuntime.jsx("div",{ref:L,style:{height:1}}),S&&(x||jsxRuntime.jsx(or,{state:"loading-more"}))]})]})}function Bh({id:e,title:t,subtitle:r,meta:o,leading:n,trailing:a,isSelected:i=false,isHovered:s=false,disabled:c=false,href:l,size:u="md",onClick:d,onMouseEnter:m,onMouseLeave:p,className:g="",style:f,piiTitleType:b,piiSubtitleType:x,piiEntity:v}){let C=()=>{!c&&d&&d(e);},y=()=>{!c&&m&&m(e);},w=()=>{!c&&p&&p(e);},R={sm:{container:"px-3 py-2 gap-2",title:"text-sm leading-tight",subtitle:"text-xs leading-tight",meta:"text-xs leading-tight",subtitleSpacing:"mt-1",metaSpacing:"mt-1"},md:{container:"px-4 py-3 gap-3",title:"text-base leading-tight",subtitle:"text-sm leading-tight",meta:"text-sm leading-tight",subtitleSpacing:"mt-1",metaSpacing:"mt-1"},lg:{container:"px-4 py-4 gap-3",title:"text-lg leading-tight",subtitle:"text-base leading-tight",meta:"text-sm leading-tight",subtitleSpacing:"mt-1",metaSpacing:"mt-1"},xl:{container:"px-5 py-5 gap-4",title:"text-xl leading-tight",subtitle:"text-base leading-tight",meta:"text-base leading-tight",subtitleSpacing:"mt-1.5",metaSpacing:"mt-1.5"}}[u],E=["flex items-center w-full text-left transition-all duration-200 ease-in-out",R.container,"border-l-2 border-l-transparent","rounded-sm",Oe()],D=[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"],L=[...E,...D,g].filter(Boolean).join(" "),z=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 ${R.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 ${R.subtitle} ${R.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 ${R.meta} ${R.metaSpacing}`,children:o})]})})}),a&&jsxRuntime.jsx("div",{className:"flex-shrink-0",children:a})]});return l?jsxRuntime.jsx("a",{href:l,className:L,style:f,onMouseEnter:y,onMouseLeave:w,"aria-selected":i,"aria-current":i?"page":void 0,tabIndex:c?-1:0,children:z}):jsxRuntime.jsx("button",{type:"button",className:L,style:f,onClick:C,onMouseEnter:y,onMouseLeave:w,disabled:c,"aria-selected":i,tabIndex:c?-1:0,children:z})}function Vh({header:e,children:t,footer:r,width:o="md",tone:n="neutral",elevation:a="sm",showDivider:i=true,"aria-label":s,"aria-labelledby":c,className:l="",style:u}){let d={sm:"w-64",md:"w-80",lg:"w-96",xl:"w-[28rem]","2xl":"w-[32rem]",auto:"w-auto"},m={neutral:"bg-background-surface",subtle:"bg-background-subtle",brand:"bg-background-brand"},p={none:"",sm:"shadow-sm",md:"shadow-md"},g=tailwindMerge.twMerge("flex flex-col h-full",d[o],m[n],p[a],i&&"border-r border-border-muted",l);return jsxRuntime.jsxs("div",{className:g,style:u,role:"complementary","aria-label":s,"aria-labelledby":c,children:[e&&jsxRuntime.jsx("div",{className:"flex-shrink-0 sticky top-0 z-10 bg-inherit border-b border-border-muted",children:e}),jsxRuntime.jsx("div",{className:"flex-1 overflow-y-auto overflow-x-hidden",children:t}),r&&jsxRuntime.jsx("div",{className:"flex-shrink-0 border-t border-border-muted bg-inherit",children:r})]})}var oo={chip:{bg:"#ffffff",border:"#2c2a26",fg:"#2c2a26"},active:{bg:"#111111",border:"#111111",fg:"#ffffff"},cluster:{primary:"#3945a8",neutral:"#2c2a26"},badge:{external:{bg:"#111111",fg:"#ffffff",borderColor:"#ffffff",fontSize:11,diameter:22},inline:{fg:"#2c2a26",fontSize:13}}};function wn(e){if(!e)return oo;let t={};if(e.cluster)for(let[r,o]of Object.entries(e.cluster))typeof o=="string"&&(t[r]=o);return {chip:{...oo.chip,...e.chip},active:{...oo.active,...e.active},cluster:{...oo.cluster,...t},badge:{external:{...oo.badge.external,...e.badge?.external},inline:{...oo.badge.inline,...e.badge?.inline}}}}var zh=Ee.forwardRef(function({count:t,glyphs:r,tone:o="neutral",onClick:n,ariaLabel:a,tokens:i,className:s,style:c},l){let u=wn(i),d=u.chip,m=u.cluster[o]??o,p=typeof n=="function",g={display:"inline-flex",alignItems:"center",gap:6,padding:"5px 9px",background:d.bg,color:d.fg,border:`1.5px solid ${m}`,borderRadius:999,boxShadow:"0 2px 5px rgba(0,0,0,.2)",fontFamily:"Inter, system-ui, sans-serif",fontSize:13,fontWeight:700,fontVariantNumeric:"tabular-nums",cursor:p?"pointer":"default",lineHeight:1,whiteSpace:"nowrap",...c},f=jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("span",{children:t}),r&&r.length>0?jsxRuntime.jsx("span",{style:{display:"inline-flex",gap:2,opacity:.7},children:r.map((b,x)=>jsxRuntime.jsx(Ee__namespace.default.Fragment,{children:b},`glyph-${x}`))}):null]});return p?jsxRuntime.jsx("button",{ref:l,type:"button",onClick:n,"aria-label":a,className:s,style:g,children:f}):jsxRuntime.jsx("span",{ref:l,"aria-label":a,role:a?"img":void 0,className:s,style:g,children:f})});function Hh({items:e,title:t,orientation:r="horizontal",className:o,style:n}){if(e.length===0)return null;let a=r==="horizontal",i=a?{display:"flex",flexWrap:"wrap",alignItems:"center",columnGap:24,rowGap:8}:{display:"flex",flexDirection:"column",gap:8},s={fontSize:12,fontWeight:600,color:"var(--color-text-secondary, #6b6b6b)",...a?{flexBasis:"100%"}:null};return jsxRuntime.jsxs("div",{className:o,style:{...i,...n},children:[t?jsxRuntime.jsx("div",{style:s,children:t}):null,e.map((c,l)=>jsxRuntime.jsxs("div",{style:{display:"inline-flex",alignItems:"center",gap:8},children:[typeof c.swatch=="string"?jsxRuntime.jsx("span",{"aria-hidden":true,style:{display:"inline-block",width:12,height:12,borderRadius:999,background:c.swatch}}):jsxRuntime.jsx("span",{"aria-hidden":true,style:{display:"inline-flex"},children:c.swatch}),jsxRuntime.jsx("span",{style:{fontSize:13,color:"var(--color-text-primary, inherit)"},children:c.label})]},c.id??`item-${l}`))]})}var Wh=Ee.forwardRef(function({icon:t,label:r,active:o=false,badge:n,onClick:a,ariaLabel:i,tokens:s,className:c,style:l},u){let d=wn(s),m=o?d.active:d.chip,p=typeof a=="function",g=r!=null&&r!=="",f={display:"inline-flex",alignItems:"center",justifyContent:"center",gap:g?6:0,minWidth:28,height:28,padding:g?"0 10px":0,background:m.bg,color:m.fg,border:`${o?2:1.5}px solid ${m.border}`,borderRadius:999,boxShadow:o?"0 4px 10px rgba(0,0,0,.3)":"0 1px 3px rgba(0,0,0,.18)",cursor:p?"pointer":"default",lineHeight:1,fontFamily:"Inter, system-ui, sans-serif",fontSize:13,fontWeight:600,whiteSpace:"nowrap",position:"relative",...l},b=jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[t,g?jsxRuntime.jsx("span",{children:r}):null,n?jsxRuntime.jsx("span",{style:{position:"absolute",top:-6,right:-6,pointerEvents:"none"},children:n}):null]});return p?jsxRuntime.jsx("button",{ref:u,type:"button",onClick:a,"aria-label":i,className:c,style:f,children:b}):jsxRuntime.jsx("span",{ref:u,"aria-label":i,role:i?"img":void 0,className:c,style:f,children:b})});function Gh({children:e,variant:t="external",tokens:r,ariaLabel:o}){let n=wn(r);if(t==="external"){let i=n.badge.external;return jsxRuntime.jsx("span",{"aria-label":o,style:{display:"inline-flex",alignItems:"center",justifyContent:"center",minWidth:i.diameter,height:i.diameter,padding:"0 6px",background:i.bg,color:i.fg,border:`2px solid ${i.borderColor}`,borderRadius:999,fontSize:i.fontSize,fontWeight:700,fontFamily:"Inter, system-ui, sans-serif",fontVariantNumeric:"tabular-nums",lineHeight:1},children:e})}let a=n.badge.inline;return jsxRuntime.jsx("span",{"aria-label":o,style:{color:a.fg,fontSize:a.fontSize,fontWeight:700,fontVariantNumeric:"tabular-nums",lineHeight:1},children:e})}var cp=[{type:"navigation",position:"bottom-right",showCompass:true,showGeolocate:true,showResetZoom:true}];var Uh="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJcAAACXCAYAAAAYn8l5AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAABtCSURBVHgB7Z2Jkty0GoV7hlz2HcIeSPGkPCmELRC2sO8kN5+L03XmR7IlW3LbSZ+qrp7pdtuydPTvki9u3Lhx/7ASLi4uDvfv973cvXv3Dn/++efh2rVrx2vyAo899tjwThu8Hf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L4fpmRivouXJQTJpmubjdDaj6JfeNjsstz7ocrZnOSaGcYiwrHNHEbecf03fE1hR7qgVo99vl/IZXQLY8RfNSvSJkWodyR41vr4h50bknYYhINUG8/u1L3p8q9K20l5Ky9ecCzV91hAQDS0eIgtArWU3vewVLXA0yoopUDTc2EZI7fBKeaQkH7gdmvMEgw11AkbR5N6amqujqnCAkYbl8gHs4wFShtxY9vm9oFqdwubeWeqKTznacNJ/CbCpqTjwKTE7jMs3QHaRzUkyvCvTdKQmzuGyfyqHEKJkOQJmBwazq0Nl88X77Dk09SoHR6YU2RxMUSDP8fw6bxvv7AnkLrBK/29eNS5r4U+x8EA6nBlsj0ETm9gjUO7p5DqPDOkOIptbQgNDeH/unQWDz/ZdA0zBOJ/f1sXQI6QyPqxtnMII3/NEh9kJGEBI+zqmyVwLXglLm+u3o6W6t8oiBZc1pwpF3Z/Tq1kX1oKDcglalt0Mq5G+Zzha8dbY+rvA7Erz2Jf1VQQm9t9zxzU0kLlDp2uX9IwZVZxyO2G19y9ieD165lH9Fosk8DI5sufSSLSZBQSF3maHFuDcVGsLHjqrgKZLUX5JqjGehdg3ULYhq7fAkpy5voaGxxtFgmygtNBJMSfalN4Ghq0DVGhNw+TbZUJBvl6KdlImJXLsphrcJtyi/rBx7bNiPF3drqCfiaI7S/0yAfzPgdNJKqQ+lwh1XfSmYClPT+R2b/03chQhh/fQH7Dav+EOO2oojEn8WdyuYzZbw6+e/WpX6eGYK0xR3BJhumCL/0lYS1EWShiFKXp4HOjIdwcvzNzjuNg4uobmh3lmZNljg+RHIokP7iJ+//S9/0JF4UWgALQSUifcPn+AvCxKcp8u7vR5XAiSC3WYDByQWZ1myzFUtOgbu577+f5ZPq/B5Pf+nAAAAAElFTkSuQmCC";function qh(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 f5="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 Zh(e){return tailwindMerge.twMerge(f5,e)}function Fo({position:e="top-right",className:t,style:r,children:o}){return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge(qh(e),t),style:r,children:o})}function tr({icon:e,iconSize:t=24,onPress:r,isDisabled:o=false,className:n,iconClassName:a="text-text-primary",variant:i="secondary",isActive:s=false,ariaLabel:c,iconWeight:l="regular",...u}){let d=tailwindMerge.twMerge(Zh(),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,{...u,className:d,onPress:r,variant:i,size:"sm",isDisabled:o,"aria-label":c,"aria-pressed":s||void 0,type:"button",children:jsxRuntime.jsx(B,{name:e,size:t,className:m,weight:l})})}var v5=e=>[{id:"streets",name:"Streets",description:"Standard street map with traffic data",preview:e?Jh:jh},{id:"satellite",name:"Satellite",description:"Aerial imagery with street labels",preview:Kh},{id:"neutral",name:"Neutral",description:"Clean design with light/dark variants",preview:e?Uh:Yh}];function C5({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 Qh({position:e="bottom-left",className:t,style:r,currentMapType:o="streets",onMapTypeChange:n,layers:a=[],onLayerToggle:i,onClearAll:s}){let{isDarkTheme:c}=Et(),{isMobile:l}=Rt(),[u,d]=Ee.useState(false),m=v5(c),p=b=>{n?.(b);},g=a.filter(b=>b.legend),f=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))})]}),g.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:g.map(b=>jsxRuntime.jsx(tn,{isSelected:b.visible!==false,onChange:()=>i?.(b.id),children:jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[b.legend&&jsxRuntime.jsx(C5,{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(Fo,{position:e,className:t,style:r,children:jsxRuntime.jsx("div",{className:"relative",children:l?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(tr,{icon:"Stack",ariaLabel:"Map layers and settings",onPress:()=>d(true)}),jsxRuntime.jsx(Xe,{isOpen:u,onClose:()=>d(false),title:"Map layers",animationVariant:"scale",children:f})]}):jsxRuntime.jsxs(reactAriaComponents.DialogTrigger,{children:[jsxRuntime.jsx(tr,{icon:"Stack",ariaLabel:"Map layers and settings"}),jsxRuntime.jsx(Ze,{placement:"top start",children:jsxRuntime.jsx(reactAriaComponents.Dialog,{"aria-label":"Map layers and settings",className:"p-4 min-w-80 bg-background-surface border border-border rounded-lg shadow-xl focus:outline-none focus:ring-0",children:f})})]})})})}function ey({position:e="top-right",className:t,style:r,onToggle:o,isActive:n=false}){return jsxRuntime.jsx(Fo,{position:e,className:tailwindMerge.twMerge("md:hidden",t),style:r,children:jsxRuntime.jsx(tr,{icon:"ListDashes",onPress:o,isActive:n,ariaLabel:n?"Hide list view":"Show list view"})})}var k5={sm:"gap-2",md:"gap-4",lg:"gap-6"};function Wl({position:e="top-right",className:t,style:r,children:o,orientation:n="vertical",spacing:a="md"}){return jsxRuntime.jsx(Fo,{position:e,style:r,children:jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("flex",n==="vertical"?"flex-col":"flex-row",k5[a],t),children:o})})}function ry({mapRef:e,position:t="bottom-right",className:r,style:o,showCompass:n=true,showGeolocate:a=true,showResetZoom:i=true,onResetZoom:s,onCompassClick:c,onGeolocateClick:l}){let[u,d]=Ee.useState(false),m=Ee.useRef(true);Ee.useEffect(()=>()=>{m.current=false;},[]);let p=()=>{c?c():e.current&&e.current.easeTo({bearing:0,duration:500});},g=async()=>{if(!u)if(l)l();else {if(!navigator.geolocation){console.warn("Geolocation is not supported by this browser.");return}if(navigator.permissions?.query)try{if((await navigator.permissions.query({name:"geolocation"})).state==="denied"){console.warn("Geolocation permission was previously denied. Please enable location services in your browser settings.");return}}catch{}d(true),navigator.geolocation.getCurrentPosition(C=>{if(!m.current)return;let{latitude:y,longitude:w}=C.coords;e.current&&e.current.flyTo({center:[w,y],zoom:15,duration:2e3}),d(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}d(false);}},{enableHighAccuracy:true,timeout:1e4,maximumAge:0});}};if(!n&&!a&&!i)return null;let f=!i&&n,b=!i&&!n&&a,x=!a&&n;return jsxRuntime.jsxs(Wl,{position:t,className:r,style:o,spacing:"sm",children:[i&&jsxRuntime.jsx(tr,{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(tr,{icon:"Compass",onPress:p,ariaLabel:"Reset map orientation",className:tailwindMerge.twMerge(!f&&"rounded-t-none border-t-0",!x&&"rounded-b-none border-b-0")}),a&&jsxRuntime.jsx(tr,{icon:u?"Spinner":"NavigationArrow",onPress:g,isDisabled:u,ariaLabel:"Go to my location",iconClassName:tailwindMerge.twMerge("text-text-primary",u&&"animate-spin"),className:tailwindMerge.twMerge(!b&&"rounded-t-none border-t-0",!b&&n&&"lg:rounded-t lg:border-t")})]})}function iy({position:e="top-left",className:t,style:r,onSearch:o,placeholder:n="Search places...",showSearchInput:a=true}){let[i,s]=Ee.useState(false),[c,l]=Ee.useState(""),u=()=>{a?s(!i):o&&o("");},d=p=>{p.preventDefault(),o&&c.trim()&&(o(c.trim()),s(false));},m=p=>{p.key==="Escape"&&s(false);};return jsxRuntime.jsx(Fo,{position:e,className:t,style:r,children:jsxRuntime.jsxs("div",{className:"relative",children:[jsxRuntime.jsx(tr,{icon:"MagnifyingGlass",onPress:u,ariaLabel:"Search"}),i&&a&&jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("absolute top-12 left-0 min-w-64","bg-background-surface border border-border rounded-lg shadow-xl p-3"),children:jsxRuntime.jsx("form",{onSubmit:d,children:jsxRuntime.jsxs("div",{className:"flex items-center space-x-2",children:[jsxRuntime.jsx("input",{type:"text",value:c,onChange:p=>l(p.target.value),onKeyDown:m,placeholder:n,className:tailwindMerge.twMerge("flex-1 px-3 py-2 text-sm rounded border","bg-background border-border text-text-primary placeholder:text-text-secondary","focus:outline-none focus:ring-2 focus:ring-action-brand"),autoFocus:true}),jsxRuntime.jsx(Q,{type:"submit",variant:"primary",size:"sm",className:"px-3 py-2",children:"Search"})]})})})]})})}var M5={navigation:"bottom-right",layers:"bottom-left",search:"top-left",list:"top-right",custom:"top-right"};function up(e){return e.position??M5[e.type]}function sy(e,t,r){let o=up(e),n=e.id??`${e.type}-${t}`;switch(e.type){case "navigation":{let i=e.showResetZoom!==false&&r.showResetButton;return jsxRuntime.jsx(ry,{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(Qh,{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(iy,{position:o,onSearch:e.onSearch,placeholder:e.placeholder,showSearchInput:e.showSearchInput,style:e.style,className:e.className},n);case "list":return jsxRuntime.jsx(ey,{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 pp(e,t){let r=e.reduce((n,a,i)=>{let s=up(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(sy(a[0].control,a[0].index,t));continue}let i={position:"static",top:"auto",right:"auto",bottom:"auto",left:"auto"};o.push(jsxRuntime.jsx(Wl,{position:n,spacing:"sm",children:a.map(({control:s,index:c})=>{let l={...s,style:{...s.style,...i}};return sy(l,c,t)})},`group-${n}`));}return o}function Ul(){try{if(typeof process<"u"){let e=process.env.MAPBOX_ACCESS_TOKEN;if(e)return e}}catch{}try{if(typeof process<"u"){let e=process.env.NEXT_PUBLIC_MAPBOX_ACCESS_TOKEN;if(e)return e}}catch{}try{let e=undefined.VITE_MAPBOX_ACCESS_TOKEN;if(e)return e}catch{}}var mp={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 fp(e){return e.kind==="vector"}function gp(e){return e.kind==="geojson"}function bp(e){return e.kind==="customPins"}function xp(e){return e.kind==="raster"}function vi(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(L5,{spec:o,mapType:t},o.id);case "geojson":return jsxRuntime.jsx(I5,{spec:o,mapType:t},o.id);case "customPins":return jsxRuntime.jsx(F5,{spec:o,mapType:t},o.id);case "raster":return jsxRuntime.jsx(B5,{spec:o},o.id);case "clusteredVector":return jsxRuntime.jsx(A5,{spec:o,mapType:t},o.id);default:return console.warn("[Layers] Unknown layer kind:",o.kind),null}})})}function L5({spec:e,mapType:t}){let{colorMode:r}=Et(),o=Ee.useMemo(()=>uy(e.style,e.renderAs,r,t),[e.style,e.renderAs,r,t]),n=Ee.useMemo(()=>({visibility:e.visible===false?"none":"visible"}),[e.visible]),a={id:e.id,type:dy(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(J5.Source,{...s,children:jsxRuntime.jsx(J5.Layer,{...a})},e.tileset)}function A5({spec:e}){let{colorMode:t,isDarkTheme:r}=Et(),o=1.25,n=9,a=3,i=n*1.4,s=.2,c=[0,5],l=Ee.useMemo(()=>r?{clusters:e.clusterStyle?.color?wr(e.clusterStyle.color):"#000000",shadow:e.clusterStyle?.shadowColor||"rgba(0, 0, 0, 0.5)",point:{fill:e.pointStyle?.color?wr(e.pointStyle.color):"#000000",stroke:e.pointStyle?.borderColor||"#ffffff",shadow:"rgba(0, 0, 0, 0.5)"},text:{onCluster:"#ffffff"},selected:{fill:e.selectedStyle?.color?wr(e.selectedStyle.color):"#444ae1"}}:{clusters:e.clusterStyle?.color?wr(e.clusterStyle.color):"#000000",shadow:e.clusterStyle?.shadowColor||"rgba(0, 0, 0, 0.3)",point:{fill:e.pointStyle?.color?wr(e.pointStyle.color):"#000000",stroke:e.pointStyle?.borderColor||"#ffffff",shadow:"rgba(0, 0, 0, 0.3)"},text:{onCluster:"#ffffff"},selected:{fill:e.selectedStyle?.color?wr(e.selectedStyle.color):"#444ae1"}},[r,t,e.clusterStyle,e.pointStyle,e.selectedStyle]),u=10,d=30,m=Math.log(2),p=Math.log(2e3),g=(e.clusterStyle?.sizes?.length??0)>0,f=Ee.useMemo(()=>g?e.clusterStyle.sizes.map(({threshold:w,radius:T})=>({threshold:w,radius:T,color:l.clusters})):[{threshold:30,radius:20,color:l.clusters},{threshold:200,radius:35,color:l.clusters},{threshold:1e3,radius:50,color:l.clusters}],[g,e.clusterStyle?.sizes,l.clusters]),b=w=>g?["step",["get","point_count"],w[0].radius,...w.flatMap(({threshold:T,radius:R})=>[T,R])]:["interpolate",["linear"],["ln",["max",2,["get","point_count"]]],m,u,p,d],x=w=>g?["step",["get","point_count"],w[0].radius*o,...w.flatMap(({threshold:T,radius:R})=>[T,R*o])]:["interpolate",["linear"],["ln",["max",2,["get","point_count"]]],m,u*o,p,d*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=Ee.useMemo(()=>{let w=e.pointStyle?.radius??n,T=e.pointStyle?.borderWidth??a,R=e.selectedStyle?.radius??n*1.5,E=D=>{let L={...D};return e.minZoom!==void 0&&(L.minzoom=e.minZoom),e.maxZoom!==void 0&&(L.maxzoom=e.maxZoom),L};return [E({id:`${e.id}-cluster-shadows`,type:"circle","source-layer":e.sourceLayer,filter:["==",["get","cluster"],true],paint:{"circle-radius":x(f),"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(f),"circle-color":["step",["get","point_count"],f[0].color,...f.flatMap(({threshold:D,color:L})=>[D,L])]}}),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":w,"circle-color":l.point.fill,"circle-stroke-width":T,"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":R,"circle-color":l.selected.fill,"circle-stroke-width":T,"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":ly(w,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":ly(R,e.pointStyle.icon.size),"icon-allow-overlap":true,"icon-ignore-placement":true}})]:[]]},[e.id,e.sourceLayer,e.selectedId,e.minZoom,e.maxZoom,e.pointStyle,e.selectedStyle,f,l,n,a,i,s]);return jsxRuntime.jsx(J5.Source,{...C,children:y.map(w=>jsxRuntime.jsx(J5.Layer,{...w},w.id))},e.tileset)}function I5({spec:e,mapType:t}){let{colorMode:r}=Et(),o=Ee.useMemo(()=>typeof e.data=="string"?null:e.data,[e.data]),n=Ee.useMemo(()=>uy(e.style,e.renderAs,r,t,o),[e.style,e.renderAs,r,t,o]),a=Ee.useMemo(()=>({visibility:e.visible===false?"none":"visible"}),[e.visible]),i=Ee.useMemo(()=>(typeof e.data=="string",e.data),[e.data]),s={id:`${e.id}-source`,type:"geojson",data:i};e.cluster?.enabled&&(s.cluster=true,s.clusterRadius=e.cluster.radius??50,s.clusterMaxZoom=e.cluster.maxZoom??14);let c={id:e.id,type:dy(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(J5.Source,{...s,children:jsxRuntime.jsx(J5.Layer,{...c})})}function F5({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(J5.Marker,{longitude:a,latitude:i,anchor:"bottom",children:jsxRuntime.jsx(r,{...s})},`${e.id}-${n}`)})})}function B5({spec:e}){let t=Ee.useMemo(()=>{if(!e.style)return {};let n={};return e.style.opacity!==void 0&&(n["raster-opacity"]=e.style.opacity),e.style.brightnessMin!==void 0&&(n["raster-brightness-min"]=e.style.brightnessMin),e.style.brightnessMax!==void 0&&(n["raster-brightness-max"]=e.style.brightnessMax),e.style.contrast!==void 0&&(n["raster-contrast"]=e.style.contrast),e.style.saturation!==void 0&&(n["raster-saturation"]=e.style.saturation),e.style.hueRotate!==void 0&&(n["raster-hue-rotate"]=e.style.hueRotate),e.style.fadeDuration!==void 0&&(n["raster-fade-duration"]=e.style.fadeDuration),n},[e.style]),r={id:`${e.id}-source`,type:"raster",tiles:[e.tileset]};e.tileSize&&(r.tileSize=e.tileSize);let o={id:e.id,type:"raster",paint:t};return e.minZoom!==void 0&&(o.minzoom=e.minZoom),e.maxZoom!==void 0&&(o.maxzoom=e.maxZoom),jsxRuntime.jsx(J5.Source,{...r,children:jsxRuntime.jsx(J5.Layer,{...o})},e.tileset)}var Vo="#666";function ly(e,t){let r=t??64;return e*2/r}function dy(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 uy(e,t,r,o,n){if(!e)return {};let a={};if(e.color){let i=wr(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"]=cy(e.width)),e.radius&&t==="circle"&&(a["circle-radius"]=cy(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?wr(e.borderColor,r,n):wr(e.color||"#000",r,n)),t==="circle"&&e.borderWidth){a["circle-stroke-width"]=e.borderWidth;let i=e.borderColor?wr(e.borderColor,r,n):gt(`map-${o}-border`,"#ffffff");a["circle-stroke-color"]=i;}return a}function V5(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(wr(i));return n.push(Vo),n}function z5(e,t){let r=Ym(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=Km(r),n=["match",["get",e]];for(let[a,i]of Object.entries(o))n.push(a),n.push(i);return n.push(Vo),n}function O5(e,t="viridis",r,o){let n=qc(r,e),a;if(o&&o!=="auto")a=o;else {if(a=Zc(n),n.length===0)return console.warn(`[Layers] No numeric values found for property "${e}"`),Vo;console.log(`[Layers] Auto-calculated sequential scale for "${e}": ${a.min} to ${a.max}`);}let i=Xc(t),s=["interpolate",["linear"],["get",e]];return i.forEach((c,l)=>{let u=l/(i.length-1),d=a.min+u*(a.max-a.min);s.push(d,c);}),s}function H5(e,t="redYellowBlue",r,o,n){let a=qc(r,e),i=Jm(a,o),s;if(n&&n!=="auto")s=n;else {if(s=Zc(a),a.length===0)return console.warn(`[Layers] No numeric values found for property "${e}"`),Vo;console.log(`[Layers] Auto-calculated diverging scale for "${e}": ${s.min} \u2190 ${i} \u2192 ${s.max}`);}let c=$c(t),l=4,u=["interpolate",["linear"],["get",e]];for(let d=0;d<=l;d++){let m=d/l,p=s.min+m*(i-s.min);u.push(p,c[d]);}for(let d=l+1;d<c.length;d++){let m=(d-l)/(c.length-1-l),p=i+m*(s.max-i);u.push(p,c[d]);}return u}function wr(e,t,r){if(typeof e=="string")return e;if("token"in e)return gt(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?z5(e.by,r):(console.warn("[Layers] Categorical auto-assignment requires GeoJSON data (not URL-based data)"),Vo);if(e.palette==="sequential")return r?O5(e.by,e.scheme,r,e.scale):(console.warn("[Layers] Sequential palette requires GeoJSON data (not URL-based data)"),Vo);if(e.palette==="diverging")return r?H5(e.by,e.scheme,r,e.center,e.scale):(console.warn("[Layers] Diverging palette requires GeoJSON data (not URL-based data)"),Vo)}if("mapping"in e)return V5(e)}return Vo}function cy(e){return typeof e=="number"?e:"byZoom"in e?["interpolate",["linear"],["zoom"],...e.byZoom.flatMap(([t,r])=>[t,r])]:e}var Jl=null;function jl(){return typeof window>"u"||process.env.NODE_ENV==="test"||typeof process<"u"&&process.env?.CHROMATIC||typeof ({ url: (typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('index.cjs', document.baseURI).href)) })<"u"&&undefined?.CHROMATIC?Promise.resolve():(Jl||(Jl=import('mapbox-gl/dist/mapbox-gl.css').then(()=>{}).catch(t=>{console.error("Failed to load Mapbox CSS",t),Jl=null;})),Jl)}function ql(){return jsxRuntime.jsx("div",{className:"absolute inset-0 z-50 bg-background-surface/90 backdrop-blur-sm pointer-events-none","data-testid":"map-loading-overlay",children:jsxRuntime.jsx("div",{className:"absolute inset-0 opacity-20",children:jsxRuntime.jsx("div",{className:"h-full w-full",style:{backgroundImage:`
|
|
108
108
|
linear-gradient(rgba(0,0,0,0.15) 1px, transparent 1px),
|
|
109
109
|
linear-gradient(90deg, rgba(0,0,0,0.15) 1px, transparent 1px)
|
|
110
|
-
`,backgroundSize:"30px 30px"}})})})}function Kl({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(I,{name:"MapPin",size:48,className:"mx-auto mb-2 opacity-50"}),jsxRuntime.jsx("p",{className:"text-sm",children:r})]})})}var sy={streets:"streets",satellite:"satellite",neutral:"neutral"},Jl="streets";function xi(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 ly({longitude:e,latitude:t,showPulse:r=true,accuracy:o}){return jsxRuntime.jsx(z5.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 vi=Ee__namespace.default.forwardRef(({initialViewState:e,viewState:t,onViewStateChange:r,scrollEnabled:o=true,className:n,previewMode:a=false,previewModeCta:i,onPreviewModePress:s,mapType:c=Jl,layers:l=[],mapboxAccessToken:u,transformRequest:d,isLoading:m=false,onLoad:p,controls:g="default",showUserLocation:f=true,onUserLocationChange:b,children:x,additionalInteractiveLayerIds:v=[],onMapClick:C,showMarker:y=false,markerLocation:S},k)=>{let R=u??Ol();if(!R)return jsxRuntime.jsx("div",{className:`relative ${n||""}`,style:{width:"100%",height:"100%"},children:jsxRuntime.jsx(Kl,{className:"w-full h-full",message:"Map unavailable"})});let{isDarkTheme:E}=Mt(),D=Ee.useRef(null),L=Ee.useRef(null),[V,A]=Ee.useState(false),[N,T]=Ee.useState(false);Ee.useEffect(()=>{Ul();},[]);let[z,W]=Ee.useState(false),F=Ee.useRef(0),[K,X]=Ee.useState(null),[G,Y]=Ee.useState(null),P=Ee.useRef(null),w=Ee.useRef(null),[B,M]=Ai("interactiveMap.trackingLocation",false),[h,O]=Ee.useState(false);Ee.useEffect(()=>{if(!navigator.geolocation){O(true);return}if(B){if(!navigator.permissions?.query){O(true);return}navigator.permissions.query({name:"geolocation"}).then(q=>{q.state!=="granted"&&M(false),O(true);}).catch(()=>{O(true);});}else O(true);},[]),Ee.useEffect(()=>{let q=setTimeout(()=>{V||T(true);},200);return ()=>clearTimeout(q)},[V]),Ee.useEffect(()=>{w.current=null;},[c,E]),Ee.useEffect(()=>{if(V)return;let q=setInterval(()=>{if(D.current?.loaded()){A(true),T(false);let U=D.current.getMap?.();U&&w.current!==U&&(w.current=U,p?.()),clearInterval(q);}},200);return ()=>clearInterval(q)},[V,p]),Ee.useEffect(()=>{if(h){if(!B||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(q=>{let U={latitude:q.coords.latitude,longitude:q.coords.longitude,accuracy:q.coords.accuracy};Y(U),b?.(U);},q=>{console.warn("Geolocation error:",q.message),Y(null),b?.(null);},{enableHighAccuracy:true,maximumAge:3e4,timeout:3e4}),()=>{P.current!==null&&(navigator.geolocation.clearWatch(P.current),P.current=null);}}},[B,a,b,h]);let H=Ee.useCallback(()=>{A(true),T(false);let q=D.current?.getMap?.();q&&w.current!==q&&(w.current=q,p?.());},[p]),j=Ee.useCallback(()=>{D.current&&e&&(W(false),F.current=0,D.current.flyTo({center:[e.longitude||0,e.latitude||0],zoom:e.zoom||0,bearing:e.bearing||0,pitch:e.pitch||0,duration:1e3}));},[e]),oe=Ee.useMemo(()=>g===false||g===null?[]:g==="default"||g===void 0?ap:g,[g]),me=Ee.useCallback(()=>{if(!navigator.geolocation){console.warn("Geolocation is not supported by this browser.");return}M(true),navigator.geolocation.getCurrentPosition(q=>{let{latitude:U,longitude:ae}=q.coords;D.current&&D.current.jumpTo({center:[ae,U],zoom:15});},q=>{console.warn("Geolocation error:",q.message),q.code===q.PERMISSION_DENIED&&M(false);},{enableHighAccuracy:true,timeout:1e4,maximumAge:0});},[]),Z=Ee.useMemo(()=>{if(a)return null;let q=oe.map(U=>U.type==="navigation"?{...U,onResetZoom:U.onResetZoom||j,onGeolocateClick:U.onGeolocateClick||me}:U);return lp(q,{mapRef:D,layers:l,showResetButton:z})},[oe,D,a,l,j,z,me]),ne=Ee.useMemo(()=>{let q=[];return l.filter(U=>U.events?.onClick||U.events?.onMouseEnter||U.events?.onMouseLeave||U.tooltip).forEach(U=>{U.kind==="clusteredVector"?(q.push(`${U.id}-clusters`),q.push(`${U.id}-points`),q.push(`${U.id}-selected-point`)):q.push(U.id);}),[...q,...v]},[l,v]),Te=Ee.useMemo(()=>{let q=new Map;return l.forEach(U=>{U.events&&(q.set(U.id,U.events),U.kind==="clusteredVector"&&(q.set(`${U.id}-clusters`,U.events),q.set(`${U.id}-points`,U.events),q.set(`${U.id}-selected-point`,U.events)));}),q},[l]),ie=Ee.useMemo(()=>{let q=new Map;return l.forEach(U=>{U.tooltip&&(q.set(U.id,U.tooltip),U.kind==="clusteredVector"&&(q.set(`${U.id}-clusters`,U.tooltip),q.set(`${U.id}-points`,U.tooltip),q.set(`${U.id}-selected-point`,U.tooltip)));}),q},[l]),ue=Ee.useMemo(()=>{let q=new Map;return l.forEach(U=>{U.kind==="clusteredVector"&&(q.set(U.id,U),q.set(`${U.id}-clusters`,U),q.set(`${U.id}-points`,U),q.set(`${U.id}-selected-point`,U));}),q},[l]),ge=Ee.useMemo(()=>{if(!y)return null;let q=S?.longitude??t?.longitude??e?.longitude,U=S?.latitude??t?.latitude??e?.latitude;return q===void 0||U===void 0?null:{longitude:q,latitude:U}},[y,S,t,e]),$=Ee.useCallback(q=>{if(a)return;let U=q.features?.[0];if(!U||!U.layer)return;let ae=U.layer.id,ee=Te.get(ae),be=ie.get(ae),he;U.geometry.type==="Point"?he=U.geometry.coordinates:he=[q.lngLat.lng,q.lngLat.lat];let st={id:U.id??U.properties?.id,lngLat:he,properties:U.properties||{},layerId:ae},Vo=ue.get(ae),Nr=U.properties?.cluster===true;if(Vo&&Nr){let Tr=D.current;if(Tr){let bv=Tr.getZoom(),xv=Math.min(bv+3,18);Tr.flyTo({center:he,zoom:xv,duration:1e3});}return}if(ee?.onClick&&ee.onClick(st),be&&be.trigger==="click"){let Tr;Vo&&"cluster"in be?be.point&&(Tr=be.point(st)):"content"in be&&(Tr=typeof be.content=="function"?be.content(st):be.content),Tr&&X({feature:st,content:Tr,bare:be.bare});}C&&C(q);},[Te,ie,a,C,ue,D,ne]),se=Ee.useCallback(q=>{let U=q.features?.[0];if(!U||!U.layer)return null;let ae=U.layer.id,ee=ie.get(ae);if(!ee||ee.trigger!=="hover"&&ee.trigger!==void 0)return null;let be;U.geometry.type==="Point"?be=U.geometry.coordinates:be=[q.lngLat.lng,q.lngLat.lat];let he={id:U.id??U.properties?.id,lngLat:be,properties:U.properties||{},layerId:ae},st;if(ue.get(ae)&&"cluster"in ee){let Nr=U.properties?.cluster===true;if(Nr&&ee.cluster){let Tr=U.properties?.point_count||0;st=ee.cluster(Tr,he);}else !Nr&&ee.point?st=ee.point(he):st=Nr?`${U.properties?.point_count||0} items`:null;}else "content"in ee&&(st=typeof ee.content=="function"?ee.content(he):ee.content);return st?{feature:he,content:st,bare:ee.bare}:null},[ie,ue]),Ne=Ee.useCallback(q=>{if(a)return;let U=q.features?.[0];if(!U||!U.layer)return;let ae=U.layer.id,ee=Te.get(ae);if(ee?.onMouseEnter){let he;U.geometry.type==="Point"?he=U.geometry.coordinates:he=[q.lngLat.lng,q.lngLat.lat];let st={id:U.id??U.properties?.id,lngLat:he,properties:U.properties||{},layerId:ae};ee.onMouseEnter(st);}let be=se(q);be&&X(be),D.current&&(D.current.getCanvas().style.cursor="pointer");},[Te,a,D,se]),Ve=Ee.useCallback(q=>{if(a)return;let U=q.features?.[0];if(!U||!U.layer)return;let ae=se(q);if(ae){X(ee=>ee&&ee.feature.layerId===ae.feature.layerId&&ee.feature.id===ae.feature.id?ee:ae);return}X(ee=>{if(!ee)return ee;let be=ie.get(ee.feature.layerId);return be&&(be.trigger==="hover"||be.trigger===void 0)?null:ee});},[a,se,ie]),De=Ee.useCallback(()=>{if(!a){if(Te.forEach(q=>{q.onMouseLeave?.();}),K){let q=K.feature.layerId,U=l.find(ae=>ae.id===q);if(!U){let ae=q.replace(/-(?:clusters|points|selected-point|cluster-shadows|points-shadow|cluster-count)$/,"");U=l.find(ee=>ee.id===ae);}U?.tooltip&&(U.tooltip.trigger||"hover")==="hover"&&X(null);}D.current&&(D.current.getCanvas().style.cursor="");}},[Te,a,D,K,l]),te=Ee.useCallback((q,U)=>{for(let ae of l)if(ae.tooltip&&!(U&&ae.id!==U)){if(ae.kind==="geojson"){if(typeof ae.data=="string")continue;let ee=ae.data,he=(ee.type==="FeatureCollection"?ee.features:[ee]).find(st=>st.id===q);if(he&&he.geometry.type==="Point")return {id:he.id,lngLat:he.geometry.coordinates,properties:he.properties||{},layerId:ae.id}}else if(ae.kind==="customPins"){let ee=ae.data.find(be=>be.id===q||be._id===q||be.key===q);if(ee)return {id:q,lngLat:ae.getPosition(ee),properties:ee,layerId:ae.id}}}return null},[l]);Ee.useImperativeHandle(k,()=>({showTooltip:(q,U)=>{let ae=te(q,U);if(!ae)return;let ee=l.find(be=>be.id===ae.layerId);if(ee?.tooltip&&"content"in ee.tooltip){let be=typeof ee.tooltip.content=="function"?ee.tooltip.content(ae):ee.tooltip.content;X({feature:ae,content:be,bare:ee.tooltip.bare});}},hideTooltip:()=>{X(null);},getMap:()=>D.current,markMapAsMoved:()=>{W(true);}}),[te,l]);let ce=(q,U)=>d?d(q,U):{url:q},_=m||N;return jsxRuntime.jsx("div",{ref:L,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(z5__default.default,{ref:D,initialViewState:e,...t&&t,style:{width:"100%",height:"100%"},mapStyle:xi(c,E),styleDiffing:false,mapboxAccessToken:R,transformRequest:ce,onLoad:H,onMove:a?void 0:q=>{if(q.originalEvent&&V){let U=q.originalEvent.type,ae=Math.abs((q.viewState.latitude??0)-(e?.latitude??0)),ee=Math.abs((q.viewState.longitude??0)-(e?.longitude??0)),be=Math.abs((q.viewState.zoom??0)-(e?.zoom??0));e&&(ae>1e-4||ee>1e-4||be>.1)&&(U==="mousemove"||U==="touchmove"||U==="pointermove"?W(true):(U==="wheel"||U==="mousewheel")&&(F.current+=1,F.current>=3&&W(true)));}r?.(q.viewState);},onClick:a?void 0:$,onMouseMove:a?void 0:Ve,onMouseEnter:a?void 0:Ne,onMouseLeave:a?void 0:De,interactiveLayerIds:a?[]:ne,scrollZoom:a?false:o,dragPan:!a,dragRotate:!a,doubleClickZoom:!a,interactive:!a,attributionControl:false,children:[jsxRuntime.jsx(z5.AttributionControl,{position:"top-left"}),Z,bi(l,c),x,ge&&jsxRuntime.jsx(z5.Marker,{longitude:ge.longitude,latitude:ge.latitude,anchor:"bottom",children:jsxRuntime.jsx(I,{name:"MapPin",size:36,className:"text-map-marker-default",weight:"fill"})}),f&&G&&jsxRuntime.jsx(ly,{longitude:G.longitude,latitude:G.latitude,accuracy:G.accuracy}),K&&jsxRuntime.jsx(z5.Popup,{longitude:K.feature.lngLat[0],latitude:K.feature.lngLat[1],offset:15,closeButton:false,closeOnClick:false,className:K.bare?"map-tooltip map-tooltip-bare":"map-tooltip",maxWidth:"none",children:K.content})]},`map-${c}-${E}`),_&&jsxRuntime.jsx(Yl,{}),a&&i&&jsxRuntime.jsx("div",{className:"absolute bottom-8 right-8 z-10",children:i})]})})});vi.displayName="InteractiveMap";async function dy(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(Ee.createElement(r,{size:n,color:a,weight:i})),c=`data:image/svg+xml;charset=utf-8,${encodeURIComponent(s)}`;await new Promise((l,u)=>{let d=new Image(n,n);d.onload=()=>{try{e.hasImage(t)||e.addImage(t,d,{sdf:!1}),l();}catch(m){u(m instanceof Error?m:new Error(`Failed to addImage "${t}": ${String(m)}`));}},d.onerror=m=>{u(m instanceof Error?m:new Error(`Failed to load icon "${t}"`));},d.src=c;});}function pa({width:e="100%",height:t="100%",initialViewState:r={longitude:-122.4194,latitude:37.7749,zoom:14},isLoading:o=false,mapType:n="streets",layers:a=[],mapboxAccessToken:i,showMarker:s=true,showAttribution:c=false,onLoad:l,className:u,showExpandToggle:d=false,expandedMapTitle:m="Explore map",expandedMapAddressLabel:p}){let g=i??Ol(),{isDarkTheme:f}=Mt(),[b,x]=Ee.useState(false),[v,C]=Ee.useState(false),[y,S]=Ee.useState(false),k=Ee.useRef(null),R=Ee.useRef(null),E=Ee.useCallback(()=>S(true),[]),D=Ee.useCallback(()=>S(false),[]);Ee.useEffect(()=>{Ul();},[]);let L={width:typeof e=="number"?`${e}px`:e,height:typeof t=="number"?`${t}px`:t};Ee.useEffect(()=>{let N=setTimeout(()=>{b||C(true);},200);return ()=>clearTimeout(N)},[b]);let V=Ee.useCallback(()=>{x(true),C(false),l?.();},[l]);Ee.useEffect(()=>{if(!R.current)return;let N=new ResizeObserver(()=>{k.current&&k.current.resize();});return N.observe(R.current),()=>{N.disconnect();}},[]);let A=o||v;return g?jsxRuntime.jsxs("div",{ref:R,style:L,className:`relative ${u||""}`,children:[jsxRuntime.jsxs(z5__default.default,{ref:k,mapboxAccessToken:g,initialViewState:r,style:{width:"100%",height:"100%"},mapStyle:xi(n,f),onLoad:V,scrollZoom:false,dragPan:false,dragRotate:false,doubleClickZoom:false,touchZoomRotate:false,interactive:false,attributionControl:false,children:[c&&jsxRuntime.jsx(z5.AttributionControl,{position:"top-left"}),bi(a,n),s&&r.longitude!==void 0&&r.latitude!==void 0&&jsxRuntime.jsx(z5.Marker,{longitude:r.longitude,latitude:r.latitude,anchor:"bottom",children:jsxRuntime.jsx(I,{name:"MapPin",size:36,className:"text-map-marker-default",weight:"fill"})})]}),d&&jsxRuntime.jsx("div",{className:"absolute top-4 right-4 z-20",children:jsxRuntime.jsx(_t,{icon:"ArrowsOutSimple",ariaLabel:"Expand map to fullscreen",onPress:E})}),d&&jsxRuntime.jsx(rr,{isOpen:y,onClose:D,title:m,contentPadding:false,maxWidth:"min(1100px, 100vw)",minWidth:"min(360px, 100vw)",height:"80vh",mobileHeight:"82vh",children:jsxRuntime.jsxs("div",{className:"flex flex-col h-full",children:[jsxRuntime.jsx("div",{className:"flex-1 min-h-0 overflow-hidden sm:mx-4 sm:mt-4 sm:rounded-xl sm:border sm:border-border-default",children:jsxRuntime.jsx(vi,{initialViewState:r,mapType:n,mapboxAccessToken:g,showMarker:s,markerLocation:r.longitude!==void 0&&r.latitude!==void 0?{latitude:r.latitude,longitude:r.longitude}:void 0,layers:a})}),p&&jsxRuntime.jsx("p",{className:"text-sm text-text-secondary px-4 py-3 flex-shrink-0",children:p})]})}),A&&jsxRuntime.jsx(Yl,{})]}):jsxRuntime.jsx(Kl,{style:L,className:u})}var X5={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 py({label:e,size:t="md",variant:r="default",showWarningIndicator:o=true,warningThreshold:n=80,className:a,...i}){let s=X5[t];return jsxRuntime.jsx(reactAriaComponents.Meter,{...i,className:Ce(a,"flex flex-col gap-1"),children:({percentage:c,valueText:l})=>{let u=o&&c>=n,d=r==="default"?$5(c):r;return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsxs("div",{className:"flex justify-between gap-2",children:[e&&jsxRuntime.jsx(Me,{children:e}),jsxRuntime.jsxs("span",{className:tailwindMerge.twMerge(s.text,u?"text-feedback-error-text":"text-text-secondary"),children:[u&&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]",Q5(d)),style:{width:`${Math.min(100,Math.max(0,c))}%`},role:"presentation","aria-hidden":"true"})})]})}})}function $5(e){return e<50?"success":e<70?"info":e<90?"warning":"error"}function Q5(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 ql="bg-background-surface border-l-[3px] border-y border-r border-border-default text-text-primary",o4={success:{container:ql,iconName:"CheckCircle",iconColor:"text-feedback-success-text",borderColor:"var(--color-feedback-success-border)"},error:{container:ql,iconName:"XCircle",iconColor:"text-feedback-error-text",borderColor:"var(--color-feedback-error-border)"},warning:{container:ql,iconName:"Warning",iconColor:"text-feedback-warning-text",borderColor:"var(--color-feedback-warning-border)"},info:{container:ql,iconName:"Info",iconColor:"text-feedback-info-text",borderColor:"var(--color-feedback-info-border)"}};function Xl({id:e,message:t,variant:r="info",duration:o=5e3,dismissible:n=true,onDismiss:a,className:i}){let{container:s,iconName:c,iconColor:l,borderColor:u}=o4[r];return Ee.useEffect(()=>{if(o>0){let d=setTimeout(()=>{a?.();},o);return ()=>clearTimeout(d)}},[o,a]),jsxRuntime.jsxs(framerMotion.motion.div,{layout:true,initial:{opacity:0,y:-20,scale:.95},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,scale:.95,transition:{duration:.2}},className:tailwindMerge.twMerge("pointer-events-auto flex items-center gap-3 rounded-lg p-4 shadow-lg",s,i),style:{borderLeftColor:u},children:[jsxRuntime.jsx(I,{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(I,{name:"X",size:16})})]})}var d4={"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 $l({notices:e,onDismiss:t,position:r="bottom-center",className:o}){let[n,a]=Ee.useState(false);if(Ee.useEffect(()=>{a(true);},[]),!n)return null;let i=jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("pointer-events-none fixed z-50 flex flex-col gap-2",d4[r],o),"aria-live":"polite","aria-atomic":"true",children:jsxRuntime.jsx(framerMotion.AnimatePresence,{mode:"sync",children:e.map(s=>jsxRuntime.jsx(Xl,{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 my=Ee.createContext(void 0);function fy({children:e,position:t="bottom-center",maxNotices:r=5,defaultDuration:o=5e3,defaultDismissible:n=true}){let[a,i]=Ee.useState([]),s=Ee.useCallback((d,m)=>{let p=`notice-${Date.now()}-${Math.random()}`,g={id:p,message:d,variant:m?.variant||"info",duration:m?.duration??o,dismissible:m?.dismissible??n};return i(f=>{let b=[...f,g];return b.length>r?b.slice(-r):b}),p},[r,o,n]),c=Ee.useCallback(d=>{i(m=>m.filter(p=>p.id!==d));},[]),l=Ee.useCallback(()=>{i([]);},[]),u={notices:a,addNotice:s,removeNotice:c,clearNotices:l};return jsxRuntime.jsxs(my.Provider,{value:u,children:[e,jsxRuntime.jsx($l,{notices:a,onDismiss:c,position:t})]})}function gy(){let e=Ee.useContext(my);if(!e)throw new Error("useNoticeContext must be used within a NoticeProvider");return e}function by(){let{addNotice:e,removeNotice:t,clearNotices:r}=gy(),o=Ee.useCallback((c,l)=>e(c,l),[e]),n=Ee.useCallback((c,l)=>e(c,{...l,variant:"success"}),[e]),a=Ee.useCallback((c,l)=>e(c,{...l,variant:"error"}),[e]),i=Ee.useCallback((c,l)=>e(c,{...l,variant:"warning"}),[e]),s=Ee.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 x4={plain:"",contained:"bg-background-surface rounded-lg border border-border-default p-6",bordered:"border-y border-border-default py-6"},h4={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 u=Ee__namespace.default.useId(),d=e?`${e}-heading`:u,m=t||r||o;return jsxRuntime.jsxs("section",{id:e,className:tailwindMerge.twMerge(h4[a],x4[n],c),"aria-labelledby":t?d:void 0,children:[m&&jsxRuntime.jsxs("header",{id:d,className:tailwindMerge.twMerge("flex flex-col sm:flex-row sm:items-start sm:justify-between gap-4",i&&"border-b border-border-default pb-4 mb-6",!i&&l&&"mb-6"),children:[jsxRuntime.jsxs("div",{className:"min-w-0 flex-1",children:[t&&jsxRuntime.jsx(Et,{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 tc({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 u=Ee__namespace.useRef(null),d=Ee__namespace.useRef(null),[m,p]=Ee__namespace.useState(e[0]?.id||null),g=t??m,f=Ee__namespace.useCallback(()=>l?document.getElementById(l):null,[l]);Ee__namespace.useEffect(()=>{let y=window.location.hash;if(!y)return;let S=y.slice(1),k=e.find(R=>`${s}${R.id}`===S);k&&requestAnimationFrame(()=>{let R=document.getElementById(S);if(!R)return;let E=f();if(E){let D=E.getBoundingClientRect(),L=R.getBoundingClientRect(),V=E.scrollTop+(L.top-D.top);E.scrollTo({top:Math.max(0,V),behavior:"instant"});}else R.scrollIntoView({behavior:"instant",block:"start"});r?r(k.id):p(k.id);});},[]),Ee__namespace.useEffect(()=>{if(t!==void 0&&r)return;let y=E=>{if(!E)return false;let D=window.getComputedStyle(E);return D.display!=="none"&&D.visibility!=="hidden"&&D.opacity!=="0"},S=()=>{let E=y(u.current),D=y(d.current);if(!E&&!D)return null;let L=f(),V=new IntersectionObserver(A=>{A.forEach(N=>{if(N.isIntersecting){let T=N.target.id.replace(s,"");r?r(T):p(T);}});},{root:L??void 0,rootMargin:"-20% 0px -70% 0px",threshold:0});return e.forEach(A=>{let N=document.getElementById(`${s}${A.id}`);N&&V.observe(N);}),V},k=S(),R=()=>{k&&k.disconnect(),k=S();};return window.addEventListener("resize",R),()=>{k&&k.disconnect(),window.removeEventListener("resize",R);}},[e,s,t,r,o,f]);let b=Ee__namespace.useMemo(()=>c?e.filter(c):e,[e,c]),x=Ee__namespace.useCallback((y,S)=>{y.preventDefault();let k=document.getElementById(`${s}${S}`);if(k){let R=f();if(R){let E=R.getBoundingClientRect(),D=k.getBoundingClientRect(),L=R.scrollTop+(D.top-E.top),V=Math.max(0,R.scrollHeight-R.clientHeight);R.scrollTo({top:Math.max(0,Math.min(L,V)),behavior:a});}else {let E=k.getBoundingClientRect().top+window.scrollY,D=Math.max(0,document.documentElement.scrollHeight-window.innerHeight),L=Math.max(0,Math.min(E,D));window.scrollTo({top:L,behavior:a});}window.history.pushState&&window.history.pushState(null,"",`#${s}${S}`),r?r(S):p(S);}},[s,a,r,f]);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:u,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=g===y.id;return jsxRuntime.jsx("a",{href:`#${s}${y.id}`,onClick:k=>x(k,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:d,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=g===y.id;return jsxRuntime.jsx("a",{href:`#${s}${y.id}`,onClick:k=>x(k,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 hy(e){return "primary"}var rc=Ee__namespace.createContext({variant:"primary"});function N4({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=hy();return jsxRuntime.jsx(rc.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)=>N4({...n,className:o}))})})})}function T4({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=Ee__namespace.useContext(rc),n=hy(e??o.variant);return jsxRuntime.jsx(rc.Provider,{value:{variant:n},children:jsxRuntime.jsx(reactAriaComponents.TabList,{...r,className:reactAriaComponents.composeRenderProps(r.className,(a,i)=>T4({...i,sticky:t,className:a||""}))})})}function k4({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=`${Oe()} ${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}=Ee__namespace.useContext(rc);return jsxRuntime.jsx(reactAriaComponents.Tab,{...e,"data-testid":e.id?`tab-${e.id}`:void 0,className:reactAriaComponents.composeRenderProps(e.className,(r,o)=>k4({...o,className:r,isSelected:o.isSelected,variant:t}))})}function P4({className:e=""}){let t="block w-full mt-4 text-text-primary",r=Oe();return `${t} ${r} ${e}`.trim()}function yy(e){return jsxRuntime.jsx(reactAriaComponents.TabPanel,{...e,className:reactAriaComponents.composeRenderProps(e.className,(t,r)=>P4({...r,className:t||""}))})}function Nn({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 vy({title:e,subtitle:t,breadcrumbs:r,breadcrumbsNode:o,media:n,actions:a,metadata:i,headingAs:s,sticky:c,stickyTop:l="0",zIndex:u=10,isLoading:d=false,className:m}){let p=c?"sticky bg-background-body":"",g=c?{top:l,zIndex:u}:{};return d?jsxRuntime.jsxs("header",{className:tailwindMerge.twMerge("mb-8 md:mb-12",p,m),style:g,"aria-labelledby":"page-title",children:[o||r?.length?jsxRuntime.jsx("div",{className:"mb-2 md:mb-4",children:jsxRuntime.jsx(J,{className:"h-4 w-32"})}):null,jsxRuntime.jsxs("div",{className:"flex flex-col md:flex-row md:items-start md:justify-between gap-4",children:[jsxRuntime.jsxs("div",{className:"min-w-0 flex-1",children:[jsxRuntime.jsx("div",{id:"page-title",children:jsxRuntime.jsx(J,{className:"h-8 w-64"})}),t?jsxRuntime.jsx(J,{className:"mt-2 h-5 w-48"}):null,i?jsxRuntime.jsx(J,{className:"mt-2 h-4 w-40"}):null,a?.length?jsxRuntime.jsx("div",{className:"mt-6 flex flex-col items-stretch gap-3 md:hidden",children:a.map((f,b)=>jsxRuntime.jsx(J,{className:"h-9 w-full"},b))}):null]}),a?.length?jsxRuntime.jsx("div",{className:"hidden md:flex md:items-start gap-2 shrink-0",children:a.map((f,b)=>jsxRuntime.jsx(J,{className:"h-9 w-24"},b))}):null]}),n?jsxRuntime.jsx("div",{className:"mt-4 md:mt-6",children:jsxRuntime.jsx(J,{className:"h-64 w-full"})}):null]}):jsxRuntime.jsxs("header",{className:tailwindMerge.twMerge("mb-8 md:mb-12",p,m),style:g,"aria-labelledby":"page-title",children:[o?jsxRuntime.jsx("div",{className:"mb-2 md:mb-4",children:o}):r?.length?jsxRuntime.jsx("div",{className:"mb-2 md:mb-4",children:jsxRuntime.jsx(Cs,{children:r.map((f,b)=>{let{label:x,...v}=f;return jsxRuntime.jsx(Ss,{...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(Et,{tag:s||"h1",size:"xl",children:e})}),t?jsxRuntime.jsx("p",{className:"mt-2 text-base md:text-lg text-text-secondary",children:t}):null,i?jsxRuntime.jsx("div",{className:"mt-2 text-sm text-text-secondary",children:i}):null,a?.length?jsxRuntime.jsx("div",{className:"mt-6 flex flex-col items-stretch gap-3 md:hidden",children:a.map((f,b)=>jsxRuntime.jsx(Ee__namespace.default.Fragment,{children:f},b))}):null]}),a?.length?jsxRuntime.jsx("div",{className:"hidden md:flex md:items-start gap-2 shrink-0",children:a.map((f,b)=>jsxRuntime.jsx(Ee__namespace.default.Fragment,{children:f},b))}):null]}),n?jsxRuntime.jsx("div",{className:"mt-4 md:mt-6",children:n}):null]})}function Cy({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(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 Sy({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(R4,{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 wy({children:e,sticky:t=true,className:r}){return jsxRuntime.jsx("aside",{className:tailwindMerge.twMerge(t?"lg:sticky lg:top-20":"",r),children:e})}function R4({activeSection:e,onSectionChange:t,position:r,navWidth:o,gap:n,children:a,className:i,scrollBehavior:s,sectionIdPrefix:c,scrollContainerId:l}){let u=Ee__namespace.default.useMemo(()=>{let f=[];return Ee__namespace.default.Children.forEach(a,b=>{if(Ee__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?f.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");}}),f},[a]),d=Ee__namespace.default.useMemo(()=>{let f=Ee__namespace.default.Children.map(a,b=>{if(Ee__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 Ee__namespace.default.cloneElement(b,{...x,id:`${c}${x.id}`})}return b});return jsxRuntime.jsx("div",{className:"space-y-8 md:space-y-12",children:f})},[a,c]),m=(f,b)=>jsxRuntime.jsx(tc,{sections:u,activeSection:e,onSectionChange:t,orientation:f,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")}),d]});let p=r==="left"?"var(--nav-width) 1fr":"1fr var(--nav-width)",g=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:g,children:m("vertical")}),d,r==="right"&&jsxRuntime.jsx("nav",{className:g,children:m("vertical")})]})]})}function Ny({children:e,className:t}){return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("flex-1 overflow-auto min-h-0",t),children:e})}Nn.Header=vy;Nn.Tabs=Cy;Nn.Content=Sy;Nn.Aside=wy;Nn.ScrollableContent=Ny;function M4(e){return typeof e=="object"&&e!==null&&"features"in e&&Array.isArray(e.features)&&"type"in e&&typeof e.type=="string"}var E4=process.env.NEXT_PUBLIC_MAPBOX_ACCESS_TOKEN||"";function Py({label:e,selectedKey:t,defaultSelectedKey:r,onSelectionChange:o,placeholder:n="Enter a location...",errorMessage:a,description:i,size:s="md",tooltip:c,isRequired:l,isDisabled:u,showErrors:d=true,autoFocus:m=false,onSelect:p,searchTypes:g=["place","address"],defaultFilter:f,validationResult:b,countryRestrictions:x,proximity:v="ip",hideCountry:C=false,showIcon:y=true,useMobileTray:S=true,className:k}){let R=Ee.useRef(new WeakMap),E=Ee.useRef([]),D={requestType:"REST",method:"GET",url:"https://api.mapbox.com/geocoding/v5/mapbox.places/{q}.json",extraParams:{access_token:E4,types:g.join(","),limit:"5",...x?.length?{country:x.join(",").toLowerCase()}:{},...v?{proximity:v==="ip"?"ip":v.join(",")}:{}},shouldLoad:A=>A.length>0,transformResponse:A=>{if(!M4(A))return [];let N=A.features.map(T=>{let z={id:T.id,name:T.place_name};return R.current.set(z,{type:T.place_type[0],center:T.center,context:T.context,address:T.address,text:T.text,properties:T.properties}),z});return N.length>0&&(E.current=N),N}},L=A=>{let N=R.current.get(A),T=A.name.split(", "),z=T[0],W=T.slice(1);C&&W.length>0&&(W=W.slice(0,-1));let F=W.join(", ");return jsxRuntime.jsxs("div",{className:"flex items-center gap-3 py-0.5",children:[y&&jsxRuntime.jsx(I,{name:N?.type==="address"?"MapPin":N?.type==="place"?"Buildings":N?.type==="region"?"MapPinArea":N?.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:z}),F&&jsxRuntime.jsx("span",{className:"truncate text-sm text-text-secondary",children:F})]})]})},V=A=>A?jsxRuntime.jsx(I,{name:"CircleNotch",className:"h-4 w-4 animate-spin text-text-secondary"}):jsxRuntime.jsx(I,{name:"MagnifyingGlass",className:"h-4 w-4 text-text-secondary"});return jsxRuntime.jsx(hs,{"data-testid":"autocomplete","data-config":JSON.stringify({types:g.join(","),country:x?.join(",")?.toLowerCase(),proximity:v==="ip"?"ip":v?.join(",")}),label:e||void 0,selectedKey:t,defaultSelectedKey:r,onSelectionChange:A=>{if(o?.(A),A){let T=E.current.find(z=>z.id===A);if(T){let z=R.current.get(T);z&&p({id:T.id,place_name:T.name,place_type:[z.type],center:z.center,context:z.context,address:z.address,text:z.text,properties:z.properties});}}},requestConfig:D,placeholder:n,errorMessage:a,description:i,size:s,tooltip:c,isRequired:l,isDisabled:u,showErrors:d,autoFocus:m,renderItem:L,renderLeftIcon:V,defaultFilter:f,validationResult:b,hideChevron:true,useMobileTray:S,className:k})}function Dy({label:e,rightLabel:t,progressWidth:r=64,hideLabels:o=false,...n}){return jsxRuntime.jsx(reactAriaComponents.ProgressBar,{...n,className:Ce(n.className,"flex flex-col gap-1"),children:({percentage:a,valueText:i,isIndeterminate:s})=>jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[!o&&jsxRuntime.jsxs("div",{className:"flex items-center justify-between gap-2",children:[jsxRuntime.jsx("span",{className:"text-sm text-text-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 My({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:Dt("prose",i,s,o),...a,children:n})}function z4(e="2"){return {1:"p-2 text-xs",2:"p-3 text-sm",3:"p-4 text-base"}[e]}function O4(e){return e?"border-action-primary text-action-primary":"border-border text-text-primary"}function H4(){return "opacity-50 cursor-not-allowed"}function kp({value:e,isDisabled:t,className:r,children:o,size:n="2",variant:a="primary"}){return jsxRuntime.jsx(reactAriaComponents.Radio,{value:e,isDisabled:t,className:Ce(r,"flex items-center justify-center cursor-pointer transition-all duration-200 focus:outline-none focus:ring-2 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",z4(n),O4(s),(t||c)&&H4(),r),children:o})})}function Pp({value:e,defaultValue:t,onChange:r,isDisabled:o,isReadOnly:n,isRequired:a,className:i,children:s,size:c="2",variant:l="primary",columns:u="repeat(auto-fit, minmax(160px, 1fr))",gap:d="1"}){return jsxRuntime.jsx(reactAriaComponents.RadioGroup,{value:e,defaultValue:t,onChange:r,isDisabled:o,isReadOnly:n,isRequired:a,className:Ce(i,"grid"),style:{gridTemplateColumns:/^\d+$/.test(String(u))?`repeat(${u}, minmax(0, 1fr))`:u,gap:d==="1"?"0.25rem":d==="2"?"0.5rem":d==="3"?"0.75rem":d==="4"?"1rem":typeof d=="number"?`${d}px`:d},children:Ee__namespace.default.Children.map(s,m=>Ee__namespace.default.isValidElement(m)?Ee__namespace.default.cloneElement(m,{size:c,variant:l}):m)})}function K4(e){return "primary"}var Ey=Ee.createContext({variant:"primary"});function Ly(e){let{variant:t="primary",...r}=e,o=K4();return jsxRuntime.jsx(Ey.Provider,{value:{variant:o},children:jsxRuntime.jsxs(reactAriaComponents.RadioGroup,{...r,className:Ce(e.className,"group flex flex-col gap-2"),children:[jsxRuntime.jsx(Me,{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(Se,{children:e.description}),jsxRuntime.jsx(pe,{children:typeof e.errorMessage=="function"&&e.validationResult?e.errorMessage(e.validationResult):typeof e.errorMessage=="string"?e.errorMessage:null})]})})}function J4({isSelected:e,isInvalid:t,isDisabled:r}){let n=[Oe(),"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 Ay(e){return Ee.useContext(Ey),jsxRuntime.jsx(reactAriaComponents.Radio,{...e,className:Ce(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:J4(t)}),e.children]})})}var rR={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"}},ba=({isActive:e=false,onPress:t,children:r})=>jsxRuntime.jsx(Q,{variant:e?"secondary":"ghost",size:"sm",onPress:t,className:"p-1",children:r});function oR({initialUrl:e,isOpen:t,onClose:r,onSubmit:o}){let[n,a]=Ee.useState(e);return Ee__namespace.default.useEffect(()=>{a(e);},[e]),jsxRuntime.jsx(Ut,{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(Ct,{title:"Insert Link",onClose:r}),jsxRuntime.jsx("div",{className:"p-6",children:jsxRuntime.jsx(lr,{label:"URL",type:"url",value:n,onChange:a,autoFocus:true,className:"w-full"})}),jsxRuntime.jsxs("div",{className:"flex justify-end gap-2 border-t border-border-muted p-4",children:[jsxRuntime.jsx(Q,{variant:"secondary",onPress:r,children:"Cancel"}),jsxRuntime.jsx(Q,{type:"submit",children:"Save"})]})]})})})})}function By({initialContent:e="",onChange:t,className:r,isDisabled:o=false,placeholder:n="Start typing...",id:a,size:i="md",headingLevels:s=[1,2]}){let c=rR[i],[l,u]=Ee.useState(false),d=react.useEditor({immediatelyRender:false,extensions:[Q4__default.default.configure({heading:s.length>0?{levels:s}:false}),q4__default.default.configure({openOnClick:false,HTMLAttributes:{class:"text-text-link-default hover:text-text-link-hover underline decoration-text-link-default/30 hover:decoration-text-link-hover cursor-pointer"}})],content:e,editable:!o,onUpdate:({editor:g})=>{t?.(g.getHTML());},editorProps:{attributes:{class:tailwindMerge.twMerge(`prose ${c.prose} max-w-none`,"focus:outline-none","[&>*:first-child]:mt-0 [&>*:last-child]:mb-0")}}}),m=()=>{u(true);},p=g=>{g===""?d?.chain().focus().unsetLink().run():d?.chain().focus().setLink({href:g}).run();};return d?jsxRuntime.jsxs("div",{id:a,"data-richtexteditor":true,className:tailwindMerge.twMerge("flex flex-col rounded-md border border-border-input bg-background-input","outline-none focus-within:outline-none focus-within:border-border-input focus-within:ring-0 focus-within:shadow-none",o&&"opacity-50",r),style:{outline:"none"},children:[!o&&d&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsxs(menus.BubbleMenu,{editor:d,shouldShow:({editor:g})=>g.isActive("link")&&!l,className:"flex items-center gap-1 rounded-md border border-border-input bg-background-surface p-1 shadow-md",children:[jsxRuntime.jsxs(Q,{variant:"ghost",size:"sm",className:"h-8 px-2",onPress:()=>{let g=d.getAttributes("link").href;g&&window.open(g,"_blank","noopener,noreferrer");},children:[jsxRuntime.jsx(I,{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(I,{name:"PencilSimple",className:"mr-1 h-4 w-4"}),"Edit"]}),jsxRuntime.jsxs(Q,{variant:"ghost",size:"sm",className:"h-8 px-2",onPress:()=>d.chain().focus().unsetLink().run(),children:[jsxRuntime.jsx(I,{name:"X",className:"mr-1 h-4 w-4"}),"Remove"]})]}),jsxRuntime.jsx(oR,{isOpen:l,onClose:()=>u(false),onSubmit:p,initialUrl:d.getAttributes("link").href||""})]}),jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("flex items-center gap-1 border-b border-border-input",c.toolbar),children:[s.map(g=>jsxRuntime.jsx(ba,{isActive:d.isActive("heading",{level:g}),onPress:()=>d.chain().focus().toggleHeading({level:g}).run(),children:jsxRuntime.jsxs("span",{className:"text-xs font-bold",children:["H",g]})},g)),jsxRuntime.jsx(ba,{isActive:d.isActive("bold"),onPress:()=>d.chain().focus().toggleBold().run(),children:jsxRuntime.jsx("span",{className:"text-xs font-bold",children:"B"})}),jsxRuntime.jsx(ba,{isActive:d.isActive("italic"),onPress:()=>d.chain().focus().toggleItalic().run(),children:jsxRuntime.jsx("span",{className:"text-xs italic",children:"I"})}),jsxRuntime.jsx("div",{className:"mx-1 h-4 w-px bg-border-muted"}),jsxRuntime.jsx(ba,{isActive:d.isActive("bulletList"),onPress:()=>d.chain().focus().toggleBulletList().run(),children:jsxRuntime.jsx(I,{name:"ListBullets",className:"h-4 w-4"})}),jsxRuntime.jsx(ba,{isActive:d.isActive("orderedList"),onPress:()=>d.chain().focus().toggleOrderedList().run(),children:jsxRuntime.jsx(I,{name:"ListNumbers",className:"h-4 w-4"})}),jsxRuntime.jsx("div",{className:"mx-1 h-4 w-px bg-border-muted"}),jsxRuntime.jsx(ba,{isActive:d.isActive("link"),onPress:m,children:jsxRuntime.jsx(I,{name:"PaperclipHorizontal",className:"h-4 w-4"})})]}),jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("relative w-full outline-none focus:outline-none",c.contentWrapper),children:[jsxRuntime.jsx(react.EditorContent,{editor:d,className:tailwindMerge.twMerge("w-full outline-none focus:outline-none",c.contentPadding,"[&_.ProseMirror]:min-h-[inherit]","[&_.ProseMirror]:outline-none [&_.ProseMirror]:focus:outline-none",c.h1,c.h2,c.p,"[&_.ProseMirror_ul]:list-disc","[&_.ProseMirror_ol]:list-decimal",c.list,c.li,"[&_.ProseMirror_blockquote]:border-l-4 [&_.ProseMirror_blockquote]:border-border-muted [&_.ProseMirror_blockquote]:pl-4 [&_.ProseMirror_blockquote]:italic","[&_.ProseMirror_code]:rounded [&_.ProseMirror_code]:bg-background-muted [&_.ProseMirror_code]:px-1 [&_.ProseMirror_code]:py-0.5 [&_.ProseMirror_code]:font-mono [&_.ProseMirror_code]:text-sm","[&_.ProseMirror_pre]:rounded-md [&_.ProseMirror_pre]:bg-background-muted [&_.ProseMirror_pre]:p-3 [&_.ProseMirror_pre]:font-mono [&_.ProseMirror_pre]:text-sm","[&_.ProseMirror_hr]:border-border-muted",o&&"pointer-events-none")}),d.isEmpty&&!o&&jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("pointer-events-none absolute text-text-secondary",c.placeholderPos,c.placeholderText),children:n})]})]}):null}function Vy(e){return e==="brand"?"primary":e==="default"||e==="secondary"||!e?"subtle":e}var iR={sm:"h-8 text-xs",md:"h-10 text-sm",lg:"h-12 text-base",xl:"h-14 text-lg"},sR={sm:14,md:16,lg:18,xl:20},lR=({isSelected:e,isFirst:t,isLast:r,isDisabled:o,variant:n="subtle"})=>{let a=Vy(n),i=a==="primary"?"focus-visible:outline-action-primary":"focus-visible:outline-[color:var(--color-action-secondary-text)]";return a==="subtle"?tailwindMerge.twMerge(Oe(),"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(Oe(),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 sc({options:e,value:t,onChange:r,size:o="md",className:n,isDisabled:a,variant:i="subtle","aria-label":s}){return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("inline-flex overflow-hidden rounded-md",Vy(i)==="subtle"?"border border-border-muted":"border-2 border-border-muted",iR[o],n),role:"group","aria-label":s,children:e.map((c,l)=>jsxRuntime.jsxs(reactAriaComponents.ToggleButton,{isSelected:t===c.id,onChange:()=>r(c.id),className:lR({isSelected:t===c.id,isFirst:l===0,isLast:l===e.length-1,isDisabled:a,variant:i}),isDisabled:a,"aria-label":c.label,children:[c.icon&&jsxRuntime.jsx(I,{name:c.icon,size:sR[o]}),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":c.label,children:c.label})]},c.id))})}function zy({streetAddress:e,city:t,state:r,postalCode:o,longitude:n,latitude:a,href:i,LinkComponent:s,variant:c="outlined",layout:l="stacked",showMap:u=true,mapHeight:d=200,mapboxAccessToken:m,isLoading:p=false,className:g,contentClassName:f,showMapExpandToggle: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(", "),k=v||[e,S].filter(Boolean).join(", "),R=u&&n!==void 0&&a!==void 0,E=({children:L,className:V})=>i?s?jsxRuntime.jsx(s,{href:i,className:V,children:L}):jsxRuntime.jsx(Ue,{href:i,variant:"unstyled",className:tailwindMerge.twMerge("hover:underline",V),asButton:false,children:L}):jsxRuntime.jsx("span",{className:V,children:L});if(p){let L=l==="row";return jsxRuntime.jsxs(Ae,{variant:c,className:tailwindMerge.twMerge(L?"flex flex-col md:flex-row":"flex flex-col",g),children:[R&&jsxRuntime.jsx(Ae.Media,{aspectRatio:"auto",className:tailwindMerge.twMerge(L&&"md:order-2 md:flex-[2] md:min-w-0"),children:jsxRuntime.jsx(J,{width:"100%",height:d})}),jsxRuntime.jsxs(Ae.Content,{className:tailwindMerge.twMerge("space-y-2 px-4 md:px-6",L&&"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 D=l==="row";return jsxRuntime.jsxs(Ae,{variant:c,className:tailwindMerge.twMerge("group/card relative",i&&"cursor-pointer",D?"flex flex-col md:flex-row":"flex flex-col",g),children:[i&&jsxRuntime.jsx(E,{className:"after:absolute after:inset-0 after:z-10",children:jsxRuntime.jsx("span",{className:"sr-only",children:e})}),R&&jsxRuntime.jsx(Ae.Media,{aspectRatio:"auto",className:tailwindMerge.twMerge(D&&"md:order-2 md:flex-[2] md:min-w-0"),children:jsxRuntime.jsx(pa,{height:d,initialViewState:{longitude:n,latitude:a,zoom:14},showMarker:true,mapboxAccessToken:m,showExpandToggle:b,expandedMapTitle:x,expandedMapAddressLabel:k})}),jsxRuntime.jsx(Ae.Content,{className:tailwindMerge.twMerge("px-4 md:px-6",D&&"md:order-1 md:flex-[1] md:flex-shrink-0 md:flex md:flex-col md:justify-center",f),children:jsxRuntime.jsxs("div",{className:"flex flex-col gap-1 min-w-0 text-left",children:[jsxRuntime.jsx("span",{className:"text-xl font-semibold leading-tight text-text-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 Hy({site:e,contact:t,LinkComponent:r,variant:o="outlined",layout:n="stacked",showMap:a=true,mapHeight:i=200,mapboxAccessToken:s,showEmail:c=true,showPhone:l=false,isLoading:u=false,className:d,contentClassName:m,fullHeight:p=false,showMapExpandToggle:g=false,expandedMapTitle:f="Explore map",expandedMapAddressLabel: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():"",k=({children:E,href:D,className:L})=>D?r?jsxRuntime.jsx(r,{href:D,className:L,children:E}):jsxRuntime.jsx(Ue,{href:D,variant:"unstyled",className:tailwindMerge.twMerge("hover:underline",L),asButton:false,children:E}):jsxRuntime.jsx("span",{className:L,children:E});if(u){let E=n==="row";return jsxRuntime.jsxs(Ae,{variant:o,className:tailwindMerge.twMerge(p&&"h-full",E?"flex flex-col md:flex-row":"flex flex-col",d),children:[y&&jsxRuntime.jsx(Ae.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(Ae.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 R=n==="row";return jsxRuntime.jsxs(Ae,{variant:o,className:tailwindMerge.twMerge("group/card relative",e.href&&"cursor-pointer",p&&"h-full",R?"flex flex-col md:flex-row":"flex flex-col",d),children:[e.href&&jsxRuntime.jsx(k,{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(Ae.Media,{aspectRatio:"auto",className:tailwindMerge.twMerge(R&&"md:order-2 md:flex-[2] md:min-w-0",p&&"flex-1"),children:jsxRuntime.jsx(pa,{height:p?"100%":i,initialViewState:{longitude:e.longitude,latitude:e.latitude,zoom:14},showMarker:true,mapboxAccessToken:s,showExpandToggle:g,expandedMapTitle:f,expandedMapAddressLabel:C})}),jsxRuntime.jsxs(Ae.Content,{className:tailwindMerge.twMerge("space-y-4 px-4 py-4",R&&"md:order-1 md:flex-[1] md:flex-shrink-0 md:flex md:flex-col md:justify-center",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(Zr,{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(k,{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(I,{name:"Envelope",size:12,className:"text-text-secondary flex-shrink-0"}),jsxRuntime.jsx(Ue,{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(I,{name:"Phone",size:12,className:"text-text-secondary flex-shrink-0"}),jsxRuntime.jsx(Ue,{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:Ln(t.phone)})]})]})]})]})]})]})]})}function Wy({label:e,description:t,tooltip:r,errorMessage:o,size:n="md",className:a,value:i,defaultValue:s=0,onChange:c,min:l=0,max:u=100,step:d=1,disabled:m,showValue:p=true}){let g=typeof i=="number",[f,b]=Ee__namespace.default.useState(s),x=g?i:f,v=Math.min(Math.max(x,l),u),C=Math.max(u-l,1e-5),y=(v-l)/C*100;return jsxRuntime.jsxs("div",{className:Ce(a,"group flex w-full flex-col gap-1"),children:[e&&jsxRuntime.jsx(Me,{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:u,step:d,value:x,disabled:m,"aria-invalid":!!o,onChange:S=>{let k=Number(S.currentTarget.value);g||b(k),c?.(k);},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(Se,{className:"mt-2 text-text-secondary",children:t}),o&&jsxRuntime.jsx(pe,{className:"mt-1",children:o})]})}var fR=Ee__namespace.default.createContext({orientation:"horizontal",isResizing:false});function Uy(e,t){return e===void 0?t:e}function gR(e,t){return typeof e=="number"?e:typeof e=="string"&&e.endsWith("%")?Number.parseFloat(e)/100*t:Number.parseFloat(e.toString())}function cc({asideWidth:e,asideHeight:t,minAsideWidth:r=240,minAsideHeight:o=200,minMainWidth:n=400,minMainHeight:a=300,orientation:i="horizontal",resizable:s=false,onAsideResize:c,onResizeStart:l,onResizeEnd:u,className:d,dividerClassName:m,children:p}){let g=Ee.useRef(null),[f,b]=Ee.useState(false),x=i==="horizontal"?400:300,v=Uy(i==="horizontal"?e:t,x),[C,y]=Ee.useState(null),S=Ee.useCallback(A=>{if(!g.current||!f)return;let N=g.current.getBoundingClientRect(),T=i==="horizontal"?N.width:N.height,z=i==="horizontal"?A.clientX:A.clientY,F=(i==="horizontal"?N.right:N.bottom)-z,K=T-F,X=i==="horizontal"?r:o,G=i==="horizontal"?n:a;F<X||K<G||(y(F),c?.(F));},[f,i,r,o,n,a,c]),k=Ee.useCallback(()=>{b(false),u?.();},[u]),R=Ee.useCallback(A=>{A.preventDefault(),A.stopPropagation(),b(true),l?.();},[l]);Ee.useEffect(()=>{if(f)return document.addEventListener("mousemove",S),document.addEventListener("mouseup",k),document.body.style.cursor=i==="horizontal"?"col-resize":"row-resize",document.body.style.userSelect="none",()=>{document.removeEventListener("mousemove",S),document.removeEventListener("mouseup",k),document.body.style.cursor="",document.body.style.userSelect="";}},[f,S,k,i]);let E=Ee__namespace.default.Children.toArray(p).find(A=>Ee__namespace.default.isValidElement(A)&&A.type===Ky),D=Ee__namespace.default.Children.toArray(p).find(A=>Ee__namespace.default.isValidElement(A)&&A.type===Jy),L=C??v,V=typeof L=="number"?`${L}px`:L;return jsxRuntime.jsx(fR.Provider,{value:{orientation:i,isResizing:f},children:jsxRuntime.jsxs("div",{ref:g,className:tailwindMerge.twMerge("flex w-full h-full",i==="horizontal"?"flex-row":"flex-col",d),children:[jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("overflow-auto flex-1",i==="horizontal"?"h-full":"w-full"),children: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:R,role:"separator","aria-orientation":i,"aria-label":"Resize divider",tabIndex:0,onKeyDown:A=>{if(!g.current)return;let N=g.current.getBoundingClientRect(),T=i==="horizontal"?N.width:N.height,z=C??gR(v,T),W=20,F=i==="horizontal"?r:o,K=i==="horizontal"?n:a;if(i==="horizontal"){if(A.key==="ArrowLeft"){let X=Math.min(z+W,T-K);y(X),c?.(X);}else if(A.key==="ArrowRight"){let X=Math.max(z-W,F);y(X),c?.(X);}}else if(A.key==="ArrowUp"){let X=Math.min(z+W,T-K);y(X),c?.(X);}else if(A.key==="ArrowDown"){let X=Math.max(z-W,F);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",f&&"bg-action-brand",f&&(i==="horizontal"?"w-1":"h-1"))}),jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("absolute",i==="horizontal"?"top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-1 h-8":"top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-8 h-1","bg-border-muted rounded-full opacity-0 group-hover:opacity-100 transition-opacity")})]}),jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("overflow-auto flex-shrink-0",i==="horizontal"?"h-full":"w-full"),style:{[i==="horizontal"?"width":"height"]:V},children:D})]})})}function Ky({className:e,children:t}){return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("w-full h-full",e),children:t})}function Jy({className:e,children:t}){return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("w-full h-full",e),children:t})}cc.Main=Ky;cc.Aside=Jy;var xR=e=>{let t=ht({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 jy({label:e,description:t,errorMessage:r,size:o="md",tooltip:n,required:a,transparent:i,isInvalid:s,isDisabled:c,isResizable:l=false,className:u,validationResult:d,reserveErrorSpace:m=true,...p}){let{isFocused:g,handleFocus:f,handleBlur:b}=sr();return jsxRuntime.jsx("div",{className:"group flex flex-col",children:jsxRuntime.jsxs("div",{className:"flex flex-col",children:[e&&jsxRuntime.jsx(Me,{size:o,tooltip:n,isRequired:a,children:e}),jsxRuntime.jsx(nt,{children:jsxRuntime.jsx("textarea",{...p,required:a,onFocus:x=>{p.onFocus&&p.onFocus(x),f(x);},onBlur:x=>{p.onBlur&&p.onBlur(x),b(x);},className:xR({isInvalid:s,isDisabled:c,isResizable:l,isFocused:g,size:o,transparent:i,className:u}),disabled:c})}),m?jsxRuntime.jsx("div",{className:"mt-1 min-h-[20px]",children:typeof r=="string"?jsxRuntime.jsx(pe,{size:o,children:r}):typeof r=="function"&&d?jsxRuntime.jsx(pe,{size:o,children:r(d)}):t?jsxRuntime.jsx(Se,{size:o,children:t}):null}):jsxRuntime.jsx(jsxRuntime.Fragment,{children:typeof r=="string"?jsxRuntime.jsx(pe,{size:o,className:"mt-1",children:r}):typeof r=="function"&&d?jsxRuntime.jsx(pe,{size:o,className:"mt-1",children:r(d)}):t?jsxRuntime.jsx(Se,{size:o,className:"mt-1",children:t}):null})]})})}function $y({label:e,description:t,errorMessage:r,size:o="md",tooltip:n,required:a,transparent:i,isInvalid:s,isDisabled:c,isResizable:l=false,className:u,validationResult:d,value:m="",onChange:p,chips:g=[],onChipsChange:f,triggerPattern:b="{{",onTriggerDetected:x,onTriggerDismissed:v,renderChip:C,chipVariant:y="primary",chipSize:S,...k}){let R=Ee.useRef(null),{isFocused:E,handleFocus:D,handleBlur:L}=sr(),V=S||"sm",A=Ee.useRef(null),N=Ee.useCallback(G=>{let Y="",P=w=>{if(w.nodeType===Node.TEXT_NODE){if(!w.parentElement?.closest("[data-chip-id]")){let M=w.textContent||"";Y+=M;}}else if(w.nodeType===Node.ELEMENT_NODE){let B=w;if(B.hasAttribute("data-chip-id")){let M=B.getAttribute("data-chip-id");Y+=`{{${M}}}`;return}else if(B.tagName==="BR"){Y+=`
|
|
111
|
-
`;return}else
|
|
110
|
+
`,backgroundSize:"30px 30px"}})})})}function Zl({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 my={streets:"streets",satellite:"satellite",neutral:"neutral"},Xl="streets";function Ci(e,t){switch(e){case "streets":return t?"mapbox://styles/victor-texture/clzwxtrng005s01p93rtr04op":"mapbox://styles/mapbox/streets-v12";case "satellite":return "mapbox://styles/mapbox/satellite-streets-v12";case "neutral":return t?"mapbox://styles/mapbox/dark-v11":"mapbox://styles/mapbox/light-v11";default:return t?"mapbox://styles/victor-texture/clzwxtrng005s01p93rtr04op":"mapbox://styles/mapbox/streets-v12"}}function fy({longitude:e,latitude:t,showPulse:r=true,accuracy:o}){return jsxRuntime.jsx(J5.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 Ni=Ee__namespace.default.forwardRef(({initialViewState:e,viewState:t,onViewStateChange:r,scrollEnabled:o=true,className:n,previewMode:a=false,previewModeCta:i,onPreviewModePress:s,mapType:c=Xl,layers:l=[],mapboxAccessToken:u,transformRequest:d,isLoading:m=false,onLoad:p,controls:g="default",showUserLocation:f=true,onUserLocationChange:b,children:x,additionalInteractiveLayerIds:v=[],onMapClick:C,showMarker:y=false,markerLocation:w},T)=>{let R=u??Ul();if(!R)return jsxRuntime.jsx("div",{className:`relative ${n||""}`,style:{width:"100%",height:"100%"},children:jsxRuntime.jsx(Zl,{className:"w-full h-full",message:"Map unavailable"})});let{isDarkTheme:E}=Et(),D=Ee.useRef(null),L=Ee.useRef(null),[z,A]=Ee.useState(false),[S,N]=Ee.useState(false);Ee.useEffect(()=>{jl();},[]);let[F,W]=Ee.useState(false),I=Ee.useRef(0),[K,X]=Ee.useState(null),[G,Y]=Ee.useState(null),P=Ee.useRef(null),k=Ee.useRef(null),[V,M]=Vi("interactiveMap.trackingLocation",false),[h,O]=Ee.useState(false);Ee.useEffect(()=>{if(!navigator.geolocation){O(true);return}if(V){if(!navigator.permissions?.query){O(true);return}navigator.permissions.query({name:"geolocation"}).then(q=>{q.state!=="granted"&&M(false),O(true);}).catch(()=>{O(true);});}else O(true);},[]),Ee.useEffect(()=>{let q=setTimeout(()=>{z||N(true);},200);return ()=>clearTimeout(q)},[z]),Ee.useEffect(()=>{k.current=null;},[c,E]),Ee.useEffect(()=>{if(z)return;let q=setInterval(()=>{if(D.current?.loaded()){A(true),N(false);let U=D.current.getMap?.();U&&k.current!==U&&(k.current=U,p?.()),clearInterval(q);}},200);return ()=>clearInterval(q)},[z,p]),Ee.useEffect(()=>{if(h){if(!V||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(q=>{let U={latitude:q.coords.latitude,longitude:q.coords.longitude,accuracy:q.coords.accuracy};Y(U),b?.(U);},q=>{console.warn("Geolocation error:",q.message),Y(null),b?.(null);},{enableHighAccuracy:true,maximumAge:3e4,timeout:3e4}),()=>{P.current!==null&&(navigator.geolocation.clearWatch(P.current),P.current=null);}}},[V,a,b,h]);let H=Ee.useCallback(()=>{A(true),N(false);let q=D.current?.getMap?.();q&&k.current!==q&&(k.current=q,p?.());},[p]),j=Ee.useCallback(()=>{D.current&&e&&(W(false),I.current=0,D.current.flyTo({center:[e.longitude||0,e.latitude||0],zoom:e.zoom||0,bearing:e.bearing||0,pitch:e.pitch||0,duration:1e3}));},[e]),oe=Ee.useMemo(()=>g===false||g===null?[]:g==="default"||g===void 0?cp:g,[g]),me=Ee.useCallback(()=>{if(!navigator.geolocation){console.warn("Geolocation is not supported by this browser.");return}M(true),navigator.geolocation.getCurrentPosition(q=>{let{latitude:U,longitude:ae}=q.coords;D.current&&D.current.jumpTo({center:[ae,U],zoom:15});},q=>{console.warn("Geolocation error:",q.message),q.code===q.PERMISSION_DENIED&&M(false);},{enableHighAccuracy:true,timeout:1e4,maximumAge:0});},[]),Z=Ee.useMemo(()=>{if(a)return null;let q=oe.map(U=>U.type==="navigation"?{...U,onResetZoom:U.onResetZoom||j,onGeolocateClick:U.onGeolocateClick||me}:U);return pp(q,{mapRef:D,layers:l,showResetButton:F})},[oe,D,a,l,j,F,me]),ne=Ee.useMemo(()=>{let q=[];return l.filter(U=>U.events?.onClick||U.events?.onMouseEnter||U.events?.onMouseLeave||U.tooltip).forEach(U=>{U.kind==="clusteredVector"?(q.push(`${U.id}-clusters`),q.push(`${U.id}-points`),q.push(`${U.id}-selected-point`)):q.push(U.id);}),[...q,...v]},[l,v]),ke=Ee.useMemo(()=>{let q=new Map;return l.forEach(U=>{U.events&&(q.set(U.id,U.events),U.kind==="clusteredVector"&&(q.set(`${U.id}-clusters`,U.events),q.set(`${U.id}-points`,U.events),q.set(`${U.id}-selected-point`,U.events)));}),q},[l]),ie=Ee.useMemo(()=>{let q=new Map;return l.forEach(U=>{U.tooltip&&(q.set(U.id,U.tooltip),U.kind==="clusteredVector"&&(q.set(`${U.id}-clusters`,U.tooltip),q.set(`${U.id}-points`,U.tooltip),q.set(`${U.id}-selected-point`,U.tooltip)));}),q},[l]),ue=Ee.useMemo(()=>{let q=new Map;return l.forEach(U=>{U.kind==="clusteredVector"&&(q.set(U.id,U),q.set(`${U.id}-clusters`,U),q.set(`${U.id}-points`,U),q.set(`${U.id}-selected-point`,U));}),q},[l]),ge=Ee.useMemo(()=>{if(!y)return null;let q=w?.longitude??t?.longitude??e?.longitude,U=w?.latitude??t?.latitude??e?.latitude;return q===void 0||U===void 0?null:{longitude:q,latitude:U}},[y,w,t,e]),$=Ee.useCallback(q=>{if(a)return;let U=q.features?.[0];if(!U||!U.layer)return;let ae=U.layer.id,ee=ke.get(ae),be=ie.get(ae),he;U.geometry.type==="Point"?he=U.geometry.coordinates:he=[q.lngLat.lng,q.lngLat.lat];let lt={id:U.id??U.properties?.id,lngLat:he,properties:U.properties||{},layerId:ae},Oo=ue.get(ae),Tr=U.properties?.cluster===true;if(Oo&&Tr){let Pr=D.current;if(Pr){let Nv=Pr.getZoom(),kv=Math.min(Nv+3,18);Pr.flyTo({center:he,zoom:kv,duration:1e3});}return}if(ee?.onClick&&ee.onClick(lt),be&&be.trigger==="click"){let Pr;Oo&&"cluster"in be?be.point&&(Pr=be.point(lt)):"content"in be&&(Pr=typeof be.content=="function"?be.content(lt):be.content),Pr&&X({feature:lt,content:Pr,bare:be.bare});}C&&C(q);},[ke,ie,a,C,ue,D,ne]),se=Ee.useCallback(q=>{let U=q.features?.[0];if(!U||!U.layer)return null;let ae=U.layer.id,ee=ie.get(ae);if(!ee||ee.trigger!=="hover"&&ee.trigger!==void 0)return null;let be;U.geometry.type==="Point"?be=U.geometry.coordinates:be=[q.lngLat.lng,q.lngLat.lat];let he={id:U.id??U.properties?.id,lngLat:be,properties:U.properties||{},layerId:ae},lt;if(ue.get(ae)&&"cluster"in ee){let Tr=U.properties?.cluster===true;if(Tr&&ee.cluster){let Pr=U.properties?.point_count||0;lt=ee.cluster(Pr,he);}else !Tr&&ee.point?lt=ee.point(he):lt=Tr?`${U.properties?.point_count||0} items`:null;}else "content"in ee&&(lt=typeof ee.content=="function"?ee.content(he):ee.content);return lt?{feature:he,content:lt,bare:ee.bare}:null},[ie,ue]),Ne=Ee.useCallback(q=>{if(a)return;let U=q.features?.[0];if(!U||!U.layer)return;let ae=U.layer.id,ee=ke.get(ae);if(ee?.onMouseEnter){let he;U.geometry.type==="Point"?he=U.geometry.coordinates:he=[q.lngLat.lng,q.lngLat.lat];let lt={id:U.id??U.properties?.id,lngLat:he,properties:U.properties||{},layerId:ae};ee.onMouseEnter(lt);}let be=se(q);be&&X(be),D.current&&(D.current.getCanvas().style.cursor="pointer");},[ke,a,D,se]),Ve=Ee.useCallback(q=>{if(a)return;let U=q.features?.[0];if(!U||!U.layer)return;let ae=se(q);if(ae){X(ee=>ee&&ee.feature.layerId===ae.feature.layerId&&ee.feature.id===ae.feature.id?ee:ae);return}X(ee=>{if(!ee)return ee;let be=ie.get(ee.feature.layerId);return be&&(be.trigger==="hover"||be.trigger===void 0)?null:ee});},[a,se,ie]),De=Ee.useCallback(()=>{if(!a){if(ke.forEach(q=>{q.onMouseLeave?.();}),K){let q=K.feature.layerId,U=l.find(ae=>ae.id===q);if(!U){let ae=q.replace(/-(?:clusters|points|selected-point|cluster-shadows|points-shadow|cluster-count)$/,"");U=l.find(ee=>ee.id===ae);}U?.tooltip&&(U.tooltip.trigger||"hover")==="hover"&&X(null);}D.current&&(D.current.getCanvas().style.cursor="");}},[ke,a,D,K,l]),te=Ee.useCallback((q,U)=>{for(let ae of l)if(ae.tooltip&&!(U&&ae.id!==U)){if(ae.kind==="geojson"){if(typeof ae.data=="string")continue;let ee=ae.data,he=(ee.type==="FeatureCollection"?ee.features:[ee]).find(lt=>lt.id===q);if(he&&he.geometry.type==="Point")return {id:he.id,lngLat:he.geometry.coordinates,properties:he.properties||{},layerId:ae.id}}else if(ae.kind==="customPins"){let ee=ae.data.find(be=>be.id===q||be._id===q||be.key===q);if(ee)return {id:q,lngLat:ae.getPosition(ee),properties:ee,layerId:ae.id}}}return null},[l]);Ee.useImperativeHandle(T,()=>({showTooltip:(q,U)=>{let ae=te(q,U);if(!ae)return;let ee=l.find(be=>be.id===ae.layerId);if(ee?.tooltip&&"content"in ee.tooltip){let be=typeof ee.tooltip.content=="function"?ee.tooltip.content(ae):ee.tooltip.content;X({feature:ae,content:be,bare:ee.tooltip.bare});}},hideTooltip:()=>{X(null);},getMap:()=>D.current,markMapAsMoved:()=>{W(true);}}),[te,l]);let ce=(q,U)=>d?d(q,U):{url:q},_=m||S;return jsxRuntime.jsx("div",{ref:L,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(J5__default.default,{ref:D,initialViewState:e,...t&&t,style:{width:"100%",height:"100%"},mapStyle:Ci(c,E),styleDiffing:false,mapboxAccessToken:R,transformRequest:ce,onLoad:H,onMove:a?void 0:q=>{if(q.originalEvent&&z){let U=q.originalEvent.type,ae=Math.abs((q.viewState.latitude??0)-(e?.latitude??0)),ee=Math.abs((q.viewState.longitude??0)-(e?.longitude??0)),be=Math.abs((q.viewState.zoom??0)-(e?.zoom??0));e&&(ae>1e-4||ee>1e-4||be>.1)&&(U==="mousemove"||U==="touchmove"||U==="pointermove"?W(true):(U==="wheel"||U==="mousewheel")&&(I.current+=1,I.current>=3&&W(true)));}r?.(q.viewState);},onClick:a?void 0:$,onMouseMove:a?void 0:Ve,onMouseEnter:a?void 0:Ne,onMouseLeave:a?void 0:De,interactiveLayerIds:a?[]:ne,scrollZoom:a?false:o,dragPan:!a,dragRotate:!a,doubleClickZoom:!a,interactive:!a,attributionControl:false,children:[jsxRuntime.jsx(J5.AttributionControl,{position:"top-left"}),Z,vi(l,c),x,ge&&jsxRuntime.jsx(J5.Marker,{longitude:ge.longitude,latitude:ge.latitude,anchor:"bottom",children:jsxRuntime.jsx(B,{name:"MapPin",size:36,className:"text-map-marker-default",weight:"fill"})}),f&&G&&jsxRuntime.jsx(fy,{longitude:G.longitude,latitude:G.latitude,accuracy:G.accuracy}),K&&jsxRuntime.jsx(J5.Popup,{longitude:K.feature.lngLat[0],latitude:K.feature.lngLat[1],offset:15,closeButton:false,closeOnClick:false,className:K.bare?"map-tooltip map-tooltip-bare":"map-tooltip",maxWidth:"none",children:K.content})]},`map-${c}-${E}`),_&&jsxRuntime.jsx(ql,{}),a&&i&&jsxRuntime.jsx("div",{className:"absolute bottom-8 right-8 z-10",children:i})]})})});Ni.displayName="InteractiveMap";async function by(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(Ee.createElement(r,{size:n,color:a,weight:i})),c=`data:image/svg+xml;charset=utf-8,${encodeURIComponent(s)}`;await new Promise((l,u)=>{let d=new Image(n,n);d.onload=()=>{try{e.hasImage(t)||e.addImage(t,d,{sdf:!1}),l();}catch(m){u(m instanceof Error?m:new Error(`Failed to addImage "${t}": ${String(m)}`));}},d.onerror=m=>{u(m instanceof Error?m:new Error(`Failed to load icon "${t}"`));},d.src=c;});}function fa({width:e="100%",height:t="100%",initialViewState:r={longitude:-122.4194,latitude:37.7749,zoom:14},isLoading:o=false,mapType:n="streets",layers:a=[],mapboxAccessToken:i,showMarker:s=true,showAttribution:c=false,onLoad:l,className:u,showExpandToggle:d=false,expandedMapTitle:m="Explore map",expandedMapAddressLabel:p}){let g=i??Ul(),{isDarkTheme:f}=Et(),[b,x]=Ee.useState(false),[v,C]=Ee.useState(false),[y,w]=Ee.useState(false),T=Ee.useRef(null),R=Ee.useRef(null),E=Ee.useCallback(()=>w(true),[]),D=Ee.useCallback(()=>w(false),[]);Ee.useEffect(()=>{jl();},[]);let L={width:typeof e=="number"?`${e}px`:e,height:typeof t=="number"?`${t}px`:t};Ee.useEffect(()=>{let S=setTimeout(()=>{b||C(true);},200);return ()=>clearTimeout(S)},[b]);let z=Ee.useCallback(()=>{x(true),C(false),l?.();},[l]);Ee.useEffect(()=>{if(!R.current)return;let S=new ResizeObserver(()=>{T.current&&T.current.resize();});return S.observe(R.current),()=>{S.disconnect();}},[]);let A=o||v;return g?jsxRuntime.jsxs("div",{ref:R,style:L,className:`relative ${u||""}`,children:[jsxRuntime.jsxs(J5__default.default,{ref:T,mapboxAccessToken:g,initialViewState:r,style:{width:"100%",height:"100%"},mapStyle:Ci(n,f),onLoad:z,scrollZoom:false,dragPan:false,dragRotate:false,doubleClickZoom:false,touchZoomRotate:false,interactive:false,attributionControl:false,children:[c&&jsxRuntime.jsx(J5.AttributionControl,{position:"top-left"}),vi(a,n),s&&r.longitude!==void 0&&r.latitude!==void 0&&jsxRuntime.jsx(J5.Marker,{longitude:r.longitude,latitude:r.latitude,anchor:"bottom",children:jsxRuntime.jsx(B,{name:"MapPin",size:36,className:"text-map-marker-default",weight:"fill"})})]}),d&&jsxRuntime.jsx("div",{className:"absolute top-4 right-4 z-20",children:jsxRuntime.jsx(tr,{icon:"ArrowsOutSimple",ariaLabel:"Expand map to fullscreen",onPress:E})}),d&&jsxRuntime.jsx(nr,{isOpen:y,onClose:D,title:m,contentPadding:false,maxWidth:"min(1100px, 100vw)",minWidth:"min(360px, 100vw)",height:"80vh",mobileHeight:"82vh",children:jsxRuntime.jsxs("div",{className:"flex flex-col h-full",children:[jsxRuntime.jsx("div",{className:"flex-1 min-h-0 overflow-hidden sm:mx-4 sm:mt-4 sm:rounded-xl sm:border sm:border-border-default",children:jsxRuntime.jsx(Ni,{initialViewState:r,mapType:n,mapboxAccessToken:g,showMarker:s,markerLocation:r.longitude!==void 0&&r.latitude!==void 0?{latitude:r.latitude,longitude:r.longitude}:void 0,layers:a})}),p&&jsxRuntime.jsx("p",{className:"text-sm text-text-secondary px-4 py-3 flex-shrink-0",children:p})]})}),A&&jsxRuntime.jsx(ql,{})]}):jsxRuntime.jsx(Zl,{style:L,className:u})}var n4={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 hy({label:e,size:t="md",variant:r="default",showWarningIndicator:o=true,warningThreshold:n=80,className:a,...i}){let s=n4[t];return jsxRuntime.jsx(reactAriaComponents.Meter,{...i,className:Ce(a,"flex flex-col gap-1"),children:({percentage:c,valueText:l})=>{let u=o&&c>=n,d=r==="default"?a4(c):r;return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsxs("div",{className:"flex justify-between gap-2",children:[e&&jsxRuntime.jsx(Me,{children:e}),jsxRuntime.jsxs("span",{className:tailwindMerge.twMerge(s.text,u?"text-feedback-error-text":"text-text-secondary"),children:[u&&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]",i4(d)),style:{width:`${Math.min(100,Math.max(0,c))}%`},role:"presentation","aria-hidden":"true"})})]})}})}function a4(e){return e<50?"success":e<70?"info":e<90?"warning":"error"}function i4(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 Ql="bg-background-surface border-l-[3px] border-y border-r border-border-default text-text-primary",u4={success:{container:Ql,iconName:"CheckCircle",iconColor:"text-feedback-success-text",borderColor:"var(--color-feedback-success-border)"},error:{container:Ql,iconName:"XCircle",iconColor:"text-feedback-error-text",borderColor:"var(--color-feedback-error-border)"},warning:{container:Ql,iconName:"Warning",iconColor:"text-feedback-warning-text",borderColor:"var(--color-feedback-warning-border)"},info:{container:Ql,iconName:"Info",iconColor:"text-feedback-info-text",borderColor:"var(--color-feedback-info-border)"}};function ec({id:e,message:t,variant:r="info",duration:o=5e3,dismissible:n=true,onDismiss:a,className:i}){let{container:s,iconName:c,iconColor:l,borderColor:u}=u4[r];return Ee.useEffect(()=>{if(o>0){let d=setTimeout(()=>{a?.();},o);return ()=>clearTimeout(d)}},[o,a]),jsxRuntime.jsxs(framerMotion.motion.div,{layout:true,initial:{opacity:0,y:-20,scale:.95},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,scale:.95,transition:{duration:.2}},className:tailwindMerge.twMerge("pointer-events-auto flex items-center gap-3 rounded-lg p-4 shadow-lg",s,i),style:{borderLeftColor:u},children:[jsxRuntime.jsx(B,{name:c,size:20,className:l}),jsxRuntime.jsx("p",{className:"flex-1 select-text text-sm font-medium",children:t}),n&&jsxRuntime.jsx("button",{type:"button",onClick:a,className:"flex-shrink-0 rounded-md p-1 transition-colors hover:bg-background-hover","aria-label":"Dismiss notification",children:jsxRuntime.jsx(B,{name:"X",size:16})})]})}var h4={"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 tc({notices:e,onDismiss:t,position:r="bottom-center",className:o}){let[n,a]=Ee.useState(false);if(Ee.useEffect(()=>{a(true);},[]),!n)return null;let i=jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("pointer-events-none fixed z-50 flex flex-col gap-2",h4[r],o),"aria-live":"polite","aria-atomic":"true",children:jsxRuntime.jsx(framerMotion.AnimatePresence,{mode:"sync",children:e.map(s=>jsxRuntime.jsx(ec,{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 yy=Ee.createContext(void 0);function vy({children:e,position:t="bottom-center",maxNotices:r=5,defaultDuration:o=5e3,defaultDismissible:n=true}){let[a,i]=Ee.useState([]),s=Ee.useCallback((d,m)=>{let p=`notice-${Date.now()}-${Math.random()}`,g={id:p,message:d,variant:m?.variant||"info",duration:m?.duration??o,dismissible:m?.dismissible??n};return i(f=>{let b=[...f,g];return b.length>r?b.slice(-r):b}),p},[r,o,n]),c=Ee.useCallback(d=>{i(m=>m.filter(p=>p.id!==d));},[]),l=Ee.useCallback(()=>{i([]);},[]),u={notices:a,addNotice:s,removeNotice:c,clearNotices:l};return jsxRuntime.jsxs(yy.Provider,{value:u,children:[e,jsxRuntime.jsx(tc,{notices:a,onDismiss:c,position:t})]})}function Cy(){let e=Ee.useContext(yy);if(!e)throw new Error("useNoticeContext must be used within a NoticeProvider");return e}function Sy(){let{addNotice:e,removeNotice:t,clearNotices:r}=Cy(),o=Ee.useCallback((c,l)=>e(c,l),[e]),n=Ee.useCallback((c,l)=>e(c,{...l,variant:"success"}),[e]),a=Ee.useCallback((c,l)=>e(c,{...l,variant:"error"}),[e]),i=Ee.useCallback((c,l)=>e(c,{...l,variant:"warning"}),[e]),s=Ee.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 k4={plain:"",contained:"bg-background-surface rounded-lg border border-border-default p-6",bordered:"border-y border-border-default py-6"},T4={none:"",sm:"my-4",md:"my-6 md:my-8",lg:"my-8 md:my-12"};function ga({id:e,title:t,description:r,actions:o,variant:n="plain",spacing:a="none",withDivider:i=false,headingAs:s="h2",className:c,children:l}){let u=Ee__namespace.default.useId(),d=e?`${e}-heading`:u,m=t||r||o;return jsxRuntime.jsxs("section",{id:e,className:tailwindMerge.twMerge(T4[a],k4[n],c),"aria-labelledby":t?d:void 0,children:[m&&jsxRuntime.jsxs("header",{id:d,className:tailwindMerge.twMerge("flex flex-col sm:flex-row sm:items-start sm:justify-between gap-4",i&&"border-b border-border-default pb-4 mb-6",!i&&l&&"mb-6"),children:[jsxRuntime.jsxs("div",{className:"min-w-0 flex-1",children:[t&&jsxRuntime.jsx(Lt,{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})]})}ga.displayName="Section";function ac({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 u=Ee__namespace.useRef(null),d=Ee__namespace.useRef(null),[m,p]=Ee__namespace.useState(e[0]?.id||null),g=t??m,f=Ee__namespace.useCallback(()=>l?document.getElementById(l):null,[l]);Ee__namespace.useEffect(()=>{let y=window.location.hash;if(!y)return;let w=y.slice(1),T=e.find(R=>`${s}${R.id}`===w);T&&requestAnimationFrame(()=>{let R=document.getElementById(w);if(!R)return;let E=f();if(E){let D=E.getBoundingClientRect(),L=R.getBoundingClientRect(),z=E.scrollTop+(L.top-D.top);E.scrollTo({top:Math.max(0,z),behavior:"instant"});}else R.scrollIntoView({behavior:"instant",block:"start"});r?r(T.id):p(T.id);});},[]),Ee__namespace.useEffect(()=>{if(t!==void 0&&r)return;let y=E=>{if(!E)return false;let D=window.getComputedStyle(E);return D.display!=="none"&&D.visibility!=="hidden"&&D.opacity!=="0"},w=()=>{let E=y(u.current),D=y(d.current);if(!E&&!D)return null;let L=f(),z=new IntersectionObserver(A=>{A.forEach(S=>{if(S.isIntersecting){let N=S.target.id.replace(s,"");r?r(N):p(N);}});},{root:L??void 0,rootMargin:"-20% 0px -70% 0px",threshold:0});return e.forEach(A=>{let S=document.getElementById(`${s}${A.id}`);S&&z.observe(S);}),z},T=w(),R=()=>{T&&T.disconnect(),T=w();};return window.addEventListener("resize",R),()=>{T&&T.disconnect(),window.removeEventListener("resize",R);}},[e,s,t,r,o,f]);let b=Ee__namespace.useMemo(()=>c?e.filter(c):e,[e,c]),x=Ee__namespace.useCallback((y,w)=>{y.preventDefault();let T=document.getElementById(`${s}${w}`);if(T){let R=f();if(R){let E=R.getBoundingClientRect(),D=T.getBoundingClientRect(),L=R.scrollTop+(D.top-E.top),z=Math.max(0,R.scrollHeight-R.clientHeight);R.scrollTo({top:Math.max(0,Math.min(L,z)),behavior:a});}else {let E=T.getBoundingClientRect().top+window.scrollY,D=Math.max(0,document.documentElement.scrollHeight-window.innerHeight),L=Math.max(0,Math.min(E,D));window.scrollTo({top:L,behavior:a});}window.history.pushState&&window.history.pushState(null,"",`#${s}${w}`),r?r(w):p(w);}},[s,a,r,f]);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:u,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 w=g===y.id;return jsxRuntime.jsx("a",{href:`#${s}${y.id}`,onClick:T=>x(T,y.id),className:tailwindMerge.twMerge("block w-full text-left px-3 py-2 rounded-md text-sm transition-colors no-underline",w?"bg-background-muted text-text-primary font-semibold":"text-text-secondary hover:text-text-primary hover:bg-background-hover"),"aria-current":w?"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:d,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 w=g===y.id;return jsxRuntime.jsx("a",{href:`#${s}${y.id}`,onClick:T=>x(T,y.id),className:tailwindMerge.twMerge("inline-block px-4 py-2 rounded-md text-sm whitespace-nowrap transition-colors no-underline",w?"bg-background-muted text-text-primary font-semibold":"text-text-secondary hover:text-text-primary hover:bg-background-hover"),"aria-current":w?"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 Ny(e){return "primary"}var ic=Ee__namespace.createContext({variant:"primary"});function L4({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=Ny();return jsxRuntime.jsx(ic.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)=>L4({...n,className:o}))})})})}function A4({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 cc({variant:e,sticky:t=false,...r}){let o=Ee__namespace.useContext(ic),n=Ny(e??o.variant);return jsxRuntime.jsx(ic.Provider,{value:{variant:n},children:jsxRuntime.jsx(reactAriaComponents.TabList,{...r,className:reactAriaComponents.composeRenderProps(r.className,(a,i)=>A4({...i,sticky:t,className:a||""}))})})}function I4({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=`${Oe()} ${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 dc(e){let{variant:t}=Ee__namespace.useContext(ic);return jsxRuntime.jsx(reactAriaComponents.Tab,{...e,"data-testid":e.id?`tab-${e.id}`:void 0,className:reactAriaComponents.composeRenderProps(e.className,(r,o)=>I4({...o,className:r,isSelected:o.isSelected,variant:t}))})}function F4({className:e=""}){let t="block w-full mt-4 text-text-primary",r=Oe();return `${t} ${r} ${e}`.trim()}function ky(e){return jsxRuntime.jsx(reactAriaComponents.TabPanel,{...e,className:reactAriaComponents.composeRenderProps(e.className,(t,r)=>F4({...r,className:t||""}))})}function Tn({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 Ty({title:e,subtitle:t,breadcrumbs:r,breadcrumbsNode:o,media:n,actions:a,metadata:i,headingAs:s,sticky:c,stickyTop:l="0",zIndex:u=10,isLoading:d=false,className:m}){let p=c?"sticky bg-background-body":"",g=c?{top:l,zIndex:u}:{};return d?jsxRuntime.jsxs("header",{className:tailwindMerge.twMerge("mb-8 md:mb-12",p,m),style:g,"aria-labelledby":"page-title",children:[o||r?.length?jsxRuntime.jsx("div",{className:"mb-2 md:mb-4",children:jsxRuntime.jsx(J,{className:"h-4 w-32"})}):null,jsxRuntime.jsxs("div",{className:"flex flex-col md:flex-row md:items-start md:justify-between gap-4",children:[jsxRuntime.jsxs("div",{className:"min-w-0 flex-1",children:[jsxRuntime.jsx("div",{id:"page-title",children:jsxRuntime.jsx(J,{className:"h-8 w-64"})}),t?jsxRuntime.jsx(J,{className:"mt-2 h-5 w-48"}):null,i?jsxRuntime.jsx(J,{className:"mt-2 h-4 w-40"}):null,a?.length?jsxRuntime.jsx("div",{className:"mt-6 flex flex-col items-stretch gap-3 md:hidden",children:a.map((f,b)=>jsxRuntime.jsx(J,{className:"h-9 w-full"},b))}):null]}),a?.length?jsxRuntime.jsx("div",{className:"hidden md:flex md:items-start gap-2 shrink-0",children:a.map((f,b)=>jsxRuntime.jsx(J,{className:"h-9 w-24"},b))}):null]}),n?jsxRuntime.jsx("div",{className:"mt-4 md:mt-6",children:jsxRuntime.jsx(J,{className:"h-64 w-full"})}):null]}):jsxRuntime.jsxs("header",{className:tailwindMerge.twMerge("mb-8 md:mb-12",p,m),style:g,"aria-labelledby":"page-title",children:[o?jsxRuntime.jsx("div",{className:"mb-2 md:mb-4",children:o}):r?.length?jsxRuntime.jsx("div",{className:"mb-2 md:mb-4",children:jsxRuntime.jsx(ks,{children:r.map((f,b)=>{let{label:x,...v}=f;return jsxRuntime.jsx(Ts,{...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(Lt,{tag:s||"h1",size:"xl",children:e})}),t?jsxRuntime.jsx("p",{className:"mt-2 text-base md:text-lg text-text-secondary",children:t}):null,i?jsxRuntime.jsx("div",{className:"mt-2 text-sm text-text-secondary",children:i}):null,a?.length?jsxRuntime.jsx("div",{className:"mt-6 flex flex-col items-stretch gap-3 md:hidden",children:a.map((f,b)=>jsxRuntime.jsx(Ee__namespace.default.Fragment,{children:f},b))}):null]}),a?.length?jsxRuntime.jsx("div",{className:"hidden md:flex md:items-start gap-2 shrink-0",children:a.map((f,b)=>jsxRuntime.jsx(Ee__namespace.default.Fragment,{children:f},b))}):null]}),n?jsxRuntime.jsx("div",{className:"mt-4 md:mt-6",children:n}):null]})}function Py({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(cc,{className:"after:bg-transparent",children:e.map(s=>jsxRuntime.jsx(dc,{id:s.id,isDisabled:s.disabled,children:s.label},s.id))}),a]})})}function Ry({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(B4,{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 Dy({children:e,sticky:t=true,className:r}){return jsxRuntime.jsx("aside",{className:tailwindMerge.twMerge(t?"lg:sticky lg:top-20":"",r),children:e})}function B4({activeSection:e,onSectionChange:t,position:r,navWidth:o,gap:n,children:a,className:i,scrollBehavior:s,sectionIdPrefix:c,scrollContainerId:l}){let u=Ee__namespace.default.useMemo(()=>{let f=[];return Ee__namespace.default.Children.forEach(a,b=>{if(Ee__namespace.default.isValidElement(b)&&(b.type===ga||typeof b.type=="object"&&b.type?.displayName==="Section"||typeof b.type=="function"&&b.type?.displayName==="Section")){let x=b.props;x.id?f.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");}}),f},[a]),d=Ee__namespace.default.useMemo(()=>{let f=Ee__namespace.default.Children.map(a,b=>{if(Ee__namespace.default.isValidElement(b)&&(b.type===ga||typeof b.type=="object"&&b.type?.displayName==="Section"||typeof b.type=="function"&&b.type?.displayName==="Section")){let x=b.props;if(x.id)return Ee__namespace.default.cloneElement(b,{...x,id:`${c}${x.id}`})}return b});return jsxRuntime.jsx("div",{className:"space-y-8 md:space-y-12",children:f})},[a,c]),m=(f,b)=>jsxRuntime.jsx(ac,{sections:u,activeSection:e,onSectionChange:t,orientation:f,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")}),d]});let p=r==="left"?"var(--nav-width) 1fr":"1fr var(--nav-width)",g=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:g,children:m("vertical")}),d,r==="right"&&jsxRuntime.jsx("nav",{className:g,children:m("vertical")})]})]})}function My({children:e,className:t}){return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("flex-1 overflow-auto min-h-0",t),children:e})}Tn.Header=Ty;Tn.Tabs=Py;Tn.Content=Ry;Tn.Aside=Dy;Tn.ScrollableContent=My;function z4(e){return typeof e=="object"&&e!==null&&"features"in e&&Array.isArray(e.features)&&"type"in e&&typeof e.type=="string"}var O4=process.env.NEXT_PUBLIC_MAPBOX_ACCESS_TOKEN||"";function Ay({label:e,selectedKey:t,defaultSelectedKey:r,onSelectionChange:o,placeholder:n="Enter a location...",errorMessage:a,description:i,size:s="md",tooltip:c,isRequired:l,isDisabled:u,showErrors:d=true,autoFocus:m=false,onSelect:p,searchTypes:g=["place","address"],defaultFilter:f,validationResult:b,countryRestrictions:x,proximity:v="ip",hideCountry:C=false,showIcon:y=true,useMobileTray:w=true,className:T}){let R=Ee.useRef(new WeakMap),E=Ee.useRef([]),D={requestType:"REST",method:"GET",url:"https://api.mapbox.com/geocoding/v5/mapbox.places/{q}.json",extraParams:{access_token:O4,types:g.join(","),limit:"5",...x?.length?{country:x.join(",").toLowerCase()}:{},...v?{proximity:v==="ip"?"ip":v.join(",")}:{}},shouldLoad:A=>A.length>0,transformResponse:A=>{if(!z4(A))return [];let S=A.features.map(N=>{let F={id:N.id,name:N.place_name};return R.current.set(F,{type:N.place_type[0],center:N.center,context:N.context,address:N.address,text:N.text,properties:N.properties}),F});return S.length>0&&(E.current=S),S}},L=A=>{let S=R.current.get(A),N=A.name.split(", "),F=N[0],W=N.slice(1);C&&W.length>0&&(W=W.slice(0,-1));let I=W.join(", ");return jsxRuntime.jsxs("div",{className:"flex items-center gap-3 py-0.5",children:[y&&jsxRuntime.jsx(B,{name:S?.type==="address"?"MapPin":S?.type==="place"?"Buildings":S?.type==="region"?"MapPinArea":S?.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:F}),I&&jsxRuntime.jsx("span",{className:"truncate text-sm text-text-secondary",children:I})]})]})},z=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(Ss,{"data-testid":"autocomplete","data-config":JSON.stringify({types:g.join(","),country:x?.join(",")?.toLowerCase(),proximity:v==="ip"?"ip":v?.join(",")}),label:e||void 0,selectedKey:t,defaultSelectedKey:r,onSelectionChange:A=>{if(o?.(A),A){let N=E.current.find(F=>F.id===A);if(N){let F=R.current.get(N);F&&p({id:N.id,place_name:N.name,place_type:[F.type],center:F.center,context:F.context,address:F.address,text:F.text,properties:F.properties});}}},requestConfig:D,placeholder:n,errorMessage:a,description:i,size:s,tooltip:c,isRequired:l,isDisabled:u,showErrors:d,autoFocus:m,renderItem:L,renderLeftIcon:z,defaultFilter:f,validationResult:b,hideChevron:true,useMobileTray:w,className:T})}function Fy({label:e,rightLabel:t,progressWidth:r=64,hideLabels:o=false,...n}){return jsxRuntime.jsx(reactAriaComponents.ProgressBar,{...n,className:Ce(n.className,"flex flex-col gap-1"),children:({percentage:a,valueText:i,isIndeterminate:s})=>jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[!o&&jsxRuntime.jsxs("div",{className:"flex items-center justify-between gap-2",children:[jsxRuntime.jsx("span",{className:"text-sm text-text-primary",children:e}),jsxRuntime.jsx("span",{className:"text-sm text-text-primary",children:t||i})]}),jsxRuntime.jsx("div",{className:`relative h-2 w-${r} overflow-hidden rounded-full bg-background-muted outline-none`,children:jsxRuntime.jsx("div",{className:`absolute top-0 h-full rounded-full bg-action-default forced-colors:bg-[Highlight] ${s?"left-full duration-1000 ease-out animate-in slide-out-to-right-full repeat-infinite [--tw-enter-translate-x:calc(-16rem-100%)]":"left-0"}`,style:{width:(s?40:a)+"%"}})})]})})}function By({as:e="div",size:t="md",tone:r="editorial",className:o="",children:n,...a}){let i=t==="md"?"":`prose-${t}`,s=r==="editorial"?"":`prose-${r}`;return jsxRuntime.jsx(e,{className:Mt("prose",i,s,o),...a,children:n})}function J4(e="2"){return {1:"p-2 text-xs",2:"p-3 text-sm",3:"p-4 text-base"}[e]}function j4(e){return e?"border-action-primary text-action-primary":"border-border text-text-primary"}function q4(){return "opacity-50 cursor-not-allowed"}function Mp({value:e,isDisabled:t,className:r,children:o,size:n="2",variant:a="primary"}){return jsxRuntime.jsx(reactAriaComponents.Radio,{value:e,isDisabled:t,className:Ce(r,"flex items-center justify-center cursor-pointer transition-all duration-200 focus:outline-none focus:ring-2 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",J4(n),j4(s),(t||c)&&q4(),r),children:o})})}function Ep({value:e,defaultValue:t,onChange:r,isDisabled:o,isReadOnly:n,isRequired:a,className:i,children:s,size:c="2",variant:l="primary",columns:u="repeat(auto-fit, minmax(160px, 1fr))",gap:d="1"}){return jsxRuntime.jsx(reactAriaComponents.RadioGroup,{value:e,defaultValue:t,onChange:r,isDisabled:o,isReadOnly:n,isRequired:a,className:Ce(i,"grid"),style:{gridTemplateColumns:/^\d+$/.test(String(u))?`repeat(${u}, minmax(0, 1fr))`:u,gap:d==="1"?"0.25rem":d==="2"?"0.5rem":d==="3"?"0.75rem":d==="4"?"1rem":typeof d=="number"?`${d}px`:d},children:Ee__namespace.default.Children.map(s,m=>Ee__namespace.default.isValidElement(m)?Ee__namespace.default.cloneElement(m,{size:c,variant:l}):m)})}function _4(e){return "primary"}var Vy=Ee.createContext({variant:"primary"});function zy(e){let{variant:t="primary",...r}=e,o=_4();return jsxRuntime.jsx(Vy.Provider,{value:{variant:o},children:jsxRuntime.jsxs(reactAriaComponents.RadioGroup,{...r,className:Ce(e.className,"group flex flex-col gap-2"),children:[jsxRuntime.jsx(Me,{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(Se,{children:e.description}),jsxRuntime.jsx(pe,{children:typeof e.errorMessage=="function"&&e.validationResult?e.errorMessage(e.validationResult):typeof e.errorMessage=="string"?e.errorMessage:null})]})})}function eR({isSelected:e,isInvalid:t,isDisabled:r}){let n=[Oe(),"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 Oy(e){return Ee.useContext(Vy),jsxRuntime.jsx(reactAriaComponents.Radio,{...e,className:Ce(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:eR(t)}),e.children]})})}var dR={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"}},ha=({isActive:e=false,onPress:t,children:r})=>jsxRuntime.jsx(Q,{variant:e?"secondary":"ghost",size:"sm",onPress:t,className:"p-1",children:r});function uR({initialUrl:e,isOpen:t,onClose:r,onSubmit:o}){let[n,a]=Ee.useState(e);return Ee__namespace.default.useEffect(()=>{a(e);},[e]),jsxRuntime.jsx(Kt,{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(St,{title:"Insert Link",onClose:r}),jsxRuntime.jsx("div",{className:"p-6",children:jsxRuntime.jsx(dr,{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 Gy({initialContent:e="",onChange:t,className:r,isDisabled:o=false,placeholder:n="Start typing...",id:a,size:i="md",headingLevels:s=[1,2]}){let c=dR[i],[l,u]=Ee.useState(false),d=react.useEditor({immediatelyRender:false,extensions:[iR__default.default.configure({heading:s.length>0?{levels:s}:false}),rR__default.default.configure({openOnClick:false,HTMLAttributes:{class:"text-text-link-default hover:text-text-link-hover underline decoration-text-link-default/30 hover:decoration-text-link-hover cursor-pointer"}})],content:e,editable:!o,onUpdate:({editor:g})=>{t?.(g.getHTML());},editorProps:{attributes:{class:tailwindMerge.twMerge(`prose ${c.prose} max-w-none`,"focus:outline-none","[&>*:first-child]:mt-0 [&>*:last-child]:mb-0")}}}),m=()=>{u(true);},p=g=>{g===""?d?.chain().focus().unsetLink().run():d?.chain().focus().setLink({href:g}).run();};return d?jsxRuntime.jsxs("div",{id:a,"data-richtexteditor":true,className:tailwindMerge.twMerge("flex flex-col rounded-md border border-border-input bg-background-input","outline-none focus-within:outline-none focus-within:border-border-input focus-within:ring-0 focus-within:shadow-none",o&&"opacity-50",r),style:{outline:"none"},children:[!o&&d&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsxs(menus.BubbleMenu,{editor:d,shouldShow:({editor:g})=>g.isActive("link")&&!l,className:"flex items-center gap-1 rounded-md border border-border-input bg-background-surface p-1 shadow-md",children:[jsxRuntime.jsxs(Q,{variant:"ghost",size:"sm",className:"h-8 px-2",onPress:()=>{let g=d.getAttributes("link").href;g&&window.open(g,"_blank","noopener,noreferrer");},children:[jsxRuntime.jsx(B,{name:"ArrowSquareOut",className:"mr-1 h-4 w-4"}),"Open"]}),jsxRuntime.jsxs(Q,{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(Q,{variant:"ghost",size:"sm",className:"h-8 px-2",onPress:()=>d.chain().focus().unsetLink().run(),children:[jsxRuntime.jsx(B,{name:"X",className:"mr-1 h-4 w-4"}),"Remove"]})]}),jsxRuntime.jsx(uR,{isOpen:l,onClose:()=>u(false),onSubmit:p,initialUrl:d.getAttributes("link").href||""})]}),jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("flex items-center gap-1 border-b border-border-input",c.toolbar),children:[s.map(g=>jsxRuntime.jsx(ha,{isActive:d.isActive("heading",{level:g}),onPress:()=>d.chain().focus().toggleHeading({level:g}).run(),children:jsxRuntime.jsxs("span",{className:"text-xs font-bold",children:["H",g]})},g)),jsxRuntime.jsx(ha,{isActive:d.isActive("bold"),onPress:()=>d.chain().focus().toggleBold().run(),children:jsxRuntime.jsx("span",{className:"text-xs font-bold",children:"B"})}),jsxRuntime.jsx(ha,{isActive:d.isActive("italic"),onPress:()=>d.chain().focus().toggleItalic().run(),children:jsxRuntime.jsx("span",{className:"text-xs italic",children:"I"})}),jsxRuntime.jsx("div",{className:"mx-1 h-4 w-px bg-border-muted"}),jsxRuntime.jsx(ha,{isActive:d.isActive("bulletList"),onPress:()=>d.chain().focus().toggleBulletList().run(),children:jsxRuntime.jsx(B,{name:"ListBullets",className:"h-4 w-4"})}),jsxRuntime.jsx(ha,{isActive:d.isActive("orderedList"),onPress:()=>d.chain().focus().toggleOrderedList().run(),children:jsxRuntime.jsx(B,{name:"ListNumbers",className:"h-4 w-4"})}),jsxRuntime.jsx("div",{className:"mx-1 h-4 w-px bg-border-muted"}),jsxRuntime.jsx(ha,{isActive:d.isActive("link"),onPress:m,children:jsxRuntime.jsx(B,{name:"PaperclipHorizontal",className:"h-4 w-4"})})]}),jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("relative w-full outline-none focus:outline-none",c.contentWrapper),children:[jsxRuntime.jsx(react.EditorContent,{editor:d,className:tailwindMerge.twMerge("w-full outline-none focus:outline-none",c.contentPadding,"[&_.ProseMirror]:min-h-[inherit]","[&_.ProseMirror]:outline-none [&_.ProseMirror]:focus:outline-none",c.h1,c.h2,c.p,"[&_.ProseMirror_ul]:list-disc","[&_.ProseMirror_ol]:list-decimal",c.list,c.li,"[&_.ProseMirror_blockquote]:border-l-4 [&_.ProseMirror_blockquote]:border-border-muted [&_.ProseMirror_blockquote]:pl-4 [&_.ProseMirror_blockquote]:italic","[&_.ProseMirror_code]:rounded [&_.ProseMirror_code]:bg-background-muted [&_.ProseMirror_code]:px-1 [&_.ProseMirror_code]:py-0.5 [&_.ProseMirror_code]:font-mono [&_.ProseMirror_code]:text-sm","[&_.ProseMirror_pre]:rounded-md [&_.ProseMirror_pre]:bg-background-muted [&_.ProseMirror_pre]:p-3 [&_.ProseMirror_pre]:font-mono [&_.ProseMirror_pre]:text-sm","[&_.ProseMirror_hr]:border-border-muted",o&&"pointer-events-none")}),d.isEmpty&&!o&&jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("pointer-events-none absolute text-text-secondary",c.placeholderPos,c.placeholderText),children:n})]})]}):null}function Uy(e){return e==="brand"?"primary":e==="default"||e==="secondary"||!e?"subtle":e}var fR={sm:"h-8 text-xs",md:"h-10 text-sm",lg:"h-12 text-base",xl:"h-14 text-lg"},gR={sm:14,md:16,lg:18,xl:20},bR=({isSelected:e,isFirst:t,isLast:r,isDisabled:o,variant:n="subtle"})=>{let a=Uy(n),i=a==="primary"?"focus-visible:outline-action-primary":"focus-visible:outline-[color:var(--color-action-secondary-text)]";return a==="subtle"?tailwindMerge.twMerge(Oe(),"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(Oe(),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 uc({options:e,value:t,onChange:r,size:o="md",className:n,isDisabled:a,variant:i="subtle","aria-label":s}){return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("inline-flex overflow-hidden rounded-md",Uy(i)==="subtle"?"border border-border-muted":"border-2 border-border-muted",fR[o],n),role:"group","aria-label":s,children:e.map((c,l)=>jsxRuntime.jsxs(reactAriaComponents.ToggleButton,{isSelected:t===c.id,onChange:()=>r(c.id),className:bR({isSelected:t===c.id,isFirst:l===0,isLast:l===e.length-1,isDisabled:a,variant:i}),isDisabled:a,"aria-label":c.label,children:[c.icon&&jsxRuntime.jsx(B,{name:c.icon,size:gR[o]}),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":c.label,children:c.label})]},c.id))})}function Yy({streetAddress:e,city:t,state:r,postalCode:o,longitude:n,latitude:a,href:i,LinkComponent:s,variant:c="outlined",layout:l="stacked",showMap:u=true,mapHeight:d=200,mapboxAccessToken:m,isLoading:p=false,className:g,contentClassName:f,showMapExpandToggle: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 w=y.join(", "),T=v||[e,w].filter(Boolean).join(", "),R=u&&n!==void 0&&a!==void 0,E=({children:L,className:z})=>i?s?jsxRuntime.jsx(s,{href:i,className:z,children:L}):jsxRuntime.jsx(Ue,{href:i,variant:"unstyled",className:tailwindMerge.twMerge("hover:underline",z),asButton:false,children:L}):jsxRuntime.jsx("span",{className:z,children:L});if(p){let L=l==="row";return jsxRuntime.jsxs(Ae,{variant:c,className:tailwindMerge.twMerge(L?"flex flex-col md:flex-row":"flex flex-col",g),children:[R&&jsxRuntime.jsx(Ae.Media,{aspectRatio:"auto",className:tailwindMerge.twMerge(L&&"md:order-2 md:flex-[2] md:min-w-0"),children:jsxRuntime.jsx(J,{width:"100%",height:d})}),jsxRuntime.jsxs(Ae.Content,{className:tailwindMerge.twMerge("space-y-2 px-4 md:px-6",L&&"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 D=l==="row";return jsxRuntime.jsxs(Ae,{variant:c,className:tailwindMerge.twMerge("group/card relative",i&&"cursor-pointer",D?"flex flex-col md:flex-row":"flex flex-col",g),children:[i&&jsxRuntime.jsx(E,{className:"after:absolute after:inset-0 after:z-10",children:jsxRuntime.jsx("span",{className:"sr-only",children:e})}),R&&jsxRuntime.jsx(Ae.Media,{aspectRatio:"auto",className:tailwindMerge.twMerge(D&&"md:order-2 md:flex-[2] md:min-w-0"),children:jsxRuntime.jsx(fa,{height:d,initialViewState:{longitude:n,latitude:a,zoom:14},showMarker:true,mapboxAccessToken:m,showExpandToggle:b,expandedMapTitle:x,expandedMapAddressLabel:T})}),jsxRuntime.jsx(Ae.Content,{className:tailwindMerge.twMerge("px-4 md:px-6",D&&"md:order-1 md:flex-[1] md:flex-shrink-0 md:flex md:flex-col md:justify-center",f),children:jsxRuntime.jsxs("div",{className:"flex flex-col gap-1 min-w-0 text-left",children:[jsxRuntime.jsx("span",{className:"text-xl font-semibold leading-tight text-text-primary group-hover/card:text-text-brand transition-colors","data-pii-type":C?"address":void 0,"data-pii-entity":C,children:e}),w&&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:w})]})})]})}function Jy({site:e,contact:t,LinkComponent:r,variant:o="outlined",layout:n="stacked",showMap:a=true,mapHeight:i=200,mapboxAccessToken:s,showEmail:c=true,showPhone:l=false,isLoading:u=false,className:d,contentClassName:m,fullHeight:p=false,showMapExpandToggle:g=false,expandedMapTitle:f="Explore map",expandedMapAddressLabel: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,w=t?`${t.firstName} ${t.lastName}`.trim():"",T=({children:E,href:D,className:L})=>D?r?jsxRuntime.jsx(r,{href:D,className:L,children:E}):jsxRuntime.jsx(Ue,{href:D,variant:"unstyled",className:tailwindMerge.twMerge("hover:underline",L),asButton:false,children:E}):jsxRuntime.jsx("span",{className:L,children:E});if(u){let E=n==="row";return jsxRuntime.jsxs(Ae,{variant:o,className:tailwindMerge.twMerge(p&&"h-full",E?"flex flex-col md:flex-row":"flex flex-col",d),children:[y&&jsxRuntime.jsx(Ae.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(Ae.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 R=n==="row";return jsxRuntime.jsxs(Ae,{variant:o,className:tailwindMerge.twMerge("group/card relative",e.href&&"cursor-pointer",p&&"h-full",R?"flex flex-col md:flex-row":"flex flex-col",d),children:[e.href&&jsxRuntime.jsx(T,{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(Ae.Media,{aspectRatio:"auto",className:tailwindMerge.twMerge(R&&"md:order-2 md:flex-[2] md:min-w-0",p&&"flex-1"),children:jsxRuntime.jsx(fa,{height:p?"100%":i,initialViewState:{longitude:e.longitude,latitude:e.latitude,zoom:14},showMarker:true,mapboxAccessToken:s,showExpandToggle:g,expandedMapTitle:f,expandedMapAddressLabel:C})}),jsxRuntime.jsxs(Ae.Content,{className:tailwindMerge.twMerge("space-y-4 px-4 py-4",R&&"md:order-1 md:flex-[1] md:flex-shrink-0 md:flex md:flex-col md:justify-center",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($r,{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(T,{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:w})}):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:w}),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(Ue,{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(Ue,{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:In(t.phone)})]})]})]})]})]})]})]})}function jy({label:e,description:t,tooltip:r,errorMessage:o,size:n="md",className:a,value:i,defaultValue:s=0,onChange:c,min:l=0,max:u=100,step:d=1,disabled:m,showValue:p=true}){let g=typeof i=="number",[f,b]=Ee__namespace.default.useState(s),x=g?i:f,v=Math.min(Math.max(x,l),u),C=Math.max(u-l,1e-5),y=(v-l)/C*100;return jsxRuntime.jsxs("div",{className:Ce(a,"group flex w-full flex-col gap-1"),children:[e&&jsxRuntime.jsx(Me,{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:u,step:d,value:x,disabled:m,"aria-invalid":!!o,onChange:w=>{let T=Number(w.currentTarget.value);g||b(T),c?.(T);},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(Se,{className:"mt-2 text-text-secondary",children:t}),o&&jsxRuntime.jsx(pe,{className:"mt-1",children:o})]})}var SR=Ee__namespace.default.createContext({orientation:"horizontal",isResizing:false});function Zy(e,t){return e===void 0?t:e}function wR(e,t){return typeof e=="number"?e:typeof e=="string"&&e.endsWith("%")?Number.parseFloat(e)/100*t:Number.parseFloat(e.toString())}function mc({asideWidth:e,asideHeight:t,minAsideWidth:r=240,minAsideHeight:o=200,minMainWidth:n=400,minMainHeight:a=300,orientation:i="horizontal",resizable:s=false,onAsideResize:c,onResizeStart:l,onResizeEnd:u,className:d,dividerClassName:m,children:p}){let g=Ee.useRef(null),[f,b]=Ee.useState(false),x=i==="horizontal"?400:300,v=Zy(i==="horizontal"?e:t,x),[C,y]=Ee.useState(null),w=Ee.useCallback(A=>{if(!g.current||!f)return;let S=g.current.getBoundingClientRect(),N=i==="horizontal"?S.width:S.height,F=i==="horizontal"?A.clientX:A.clientY,I=(i==="horizontal"?S.right:S.bottom)-F,K=N-I,X=i==="horizontal"?r:o,G=i==="horizontal"?n:a;I<X||K<G||(y(I),c?.(I));},[f,i,r,o,n,a,c]),T=Ee.useCallback(()=>{b(false),u?.();},[u]),R=Ee.useCallback(A=>{A.preventDefault(),A.stopPropagation(),b(true),l?.();},[l]);Ee.useEffect(()=>{if(f)return document.addEventListener("mousemove",w),document.addEventListener("mouseup",T),document.body.style.cursor=i==="horizontal"?"col-resize":"row-resize",document.body.style.userSelect="none",()=>{document.removeEventListener("mousemove",w),document.removeEventListener("mouseup",T),document.body.style.cursor="",document.body.style.userSelect="";}},[f,w,T,i]);let E=Ee__namespace.default.Children.toArray(p).find(A=>Ee__namespace.default.isValidElement(A)&&A.type===$y),D=Ee__namespace.default.Children.toArray(p).find(A=>Ee__namespace.default.isValidElement(A)&&A.type===Qy),L=C??v,z=typeof L=="number"?`${L}px`:L;return jsxRuntime.jsx(SR.Provider,{value:{orientation:i,isResizing:f},children:jsxRuntime.jsxs("div",{ref:g,className:tailwindMerge.twMerge("flex w-full h-full",i==="horizontal"?"flex-row":"flex-col",d),children:[jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("overflow-auto flex-1",i==="horizontal"?"h-full":"w-full"),children: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:R,role:"separator","aria-orientation":i,"aria-label":"Resize divider",tabIndex:0,onKeyDown:A=>{if(!g.current)return;let S=g.current.getBoundingClientRect(),N=i==="horizontal"?S.width:S.height,F=C??wR(v,N),W=20,I=i==="horizontal"?r:o,K=i==="horizontal"?n:a;if(i==="horizontal"){if(A.key==="ArrowLeft"){let X=Math.min(F+W,N-K);y(X),c?.(X);}else if(A.key==="ArrowRight"){let X=Math.max(F-W,I);y(X),c?.(X);}}else if(A.key==="ArrowUp"){let X=Math.min(F+W,N-K);y(X),c?.(X);}else if(A.key==="ArrowDown"){let X=Math.max(F-W,I);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",f&&"bg-action-brand",f&&(i==="horizontal"?"w-1":"h-1"))}),jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("absolute",i==="horizontal"?"top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-1 h-8":"top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-8 h-1","bg-border-muted rounded-full opacity-0 group-hover:opacity-100 transition-opacity")})]}),jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("overflow-auto flex-shrink-0",i==="horizontal"?"h-full":"w-full"),style:{[i==="horizontal"?"width":"height"]:z},children:D})]})})}function $y({className:e,children:t}){return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("w-full h-full",e),children:t})}function Qy({className:e,children:t}){return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("w-full h-full",e),children:t})}mc.Main=$y;mc.Aside=Qy;function va(e){return e.id??e.href??e.label}function Bp(e,t,r=[]){for(let o of e){if(o.href===t||o.id===t)return o.children?.length&&o.pushOnSelect!==false?[...r,va(o)]:r;if(o.children?.length){let n=Bp(o.children,t,[...r,va(o)]);if(n)return n}}return null}function _y(e,t){let r=[],o=e;for(let n of t){let a=o.find(i=>va(i)===n);if(!a)break;r.push(a),o=a.children??[];}return r}function NR(e,t){let r=[{path:[],items:e}],o=_y(e,t),n=[];for(let a of o){if(!a.children?.length)break;n=[...n,va(a)],r.push({path:n,parent:a,items:a.children});}return r}var kR=({href:e,...t})=>jsxRuntime.jsx("a",{href:e,...t});function TR(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 ev({items:e,value:t,defaultStack:r,stack:o,onStackChange:n,onSelect:a,linkComponent:i=kR,header:s,footer:c,rootLabel:l,sticky:u=true,width:d=260,ariaLabel:m="Navigation",theme:p,animated:g=true,style:f,className:b}){let[x,v]=Ee__namespace.useState(()=>o!==void 0?o:r!==void 0?r:t?Bp(e,t)??[]:[]),C=o??x,y=Ee__namespace.useCallback(S=>{o===void 0&&v(S),n?.(S);},[o,n]),w=Ee__namespace.useRef(false);Ee__namespace.useEffect(()=>{if(o!==void 0||!w.current&&(w.current=true,r!==void 0)||!t)return;let S=Bp(e,t);v(N=>{let F=S??[];return ER(N,F)?N:F});},[t,e,o,r]);let T=Ee__namespace.useMemo(()=>NR(e,C),[e,C]),R=Ee__namespace.useCallback((S,N)=>{S.children?.length&&y([...N,va(S)]);},[y]),E=Ee__namespace.useCallback(()=>{y(C.slice(0,-1));},[C,y]),D=Ee__namespace.useCallback((S,N)=>{let F=_y(e,C);if(a?.(N,F),!!N.children?.length&&N.pushOnSelect!==false){let I=T[T.length-1]?.path??[];R(N,I);}N.href||S.preventDefault();},[e,C,a,R,T]),L=Ee__namespace.useCallback(S=>t?S.href===t||S.id===t:false,[t]),z=u?"sticky top-0 h-[100dvh]":"",A={width:d,...TR(p),...f};return jsxRuntime.jsxs("aside",{role:"navigation","aria-label":m,"data-edges-stack-nav":"",className:tailwindMerge.twMerge("edges-stack-nav flex flex-col flex-shrink-0 overflow-hidden",g&&"edges-stack-nav--animated",z,b),style:A,children:[s?jsxRuntime.jsx("div",{className:"edges-stack-nav__header",children:s}):null,jsxRuntime.jsx("div",{className:"relative flex-1 overflow-hidden",children:T.map((S,N)=>{let F=S.path.length,W=N===T.length-1,I=N<T.length-1,K=F===0?"__root__":S.path.join("/");return jsxRuntime.jsx(PR,{pane:S,parentPath:S.path.slice(0,-1),depth:F,isTop:W,isAbove:I,rootLabel:l,LinkComponent:i,isActive:L,onSelect:D,onBack:E,animated:g},K)})}),c?jsxRuntime.jsx("div",{className:"edges-stack-nav__footer",children:c}):null]})}function PR({pane:e,depth:t,isTop:r,isAbove:o,rootLabel:n,LinkComponent:a,isActive:i,onSelect:s,onBack:c,animated:l}){let u=r?"edges-stack-nav__pane--top":o?"edges-stack-nav__pane--above":"edges-stack-nav__pane--below";return jsxRuntime.jsxs("nav",{"aria-label":e.parent?.label??n??"Navigation","aria-hidden":r?void 0:true,inert:r?void 0:true,className:tailwindMerge.twMerge("edges-stack-nav__pane absolute inset-0 flex flex-col gap-px overflow-y-auto px-2 py-3",!l&&"edges-stack-nav__pane--instant",u),children:[t>0&&e.parent?jsxRuntime.jsxs("button",{type:"button",className:"edges-stack-nav__back edges-stack-nav__row flex w-full 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(MR,{}),jsxRuntime.jsx("span",{children:e.parent.label})]}):n?jsxRuntime.jsx("div",{className:"px-3 pb-2 text-xs font-medium uppercase tracking-wider text-text-secondary",children:n}):null,e.items.map(d=>jsxRuntime.jsx(RR,{item:d,LinkComponent:a,isActive:i(d),onSelect:s},va(d)))]})}function RR({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-4 pb-1 text-xs font-medium uppercase tracking-wider 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(DR,{}):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 DR(){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 MR(){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 ER(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 IR=e=>{let t=yt({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 tv({label:e,description:t,errorMessage:r,size:o="md",tooltip:n,required:a,transparent:i,isInvalid:s,isDisabled:c,isResizable:l=false,className:u,validationResult:d,reserveErrorSpace:m=true,...p}){let{isFocused:g,handleFocus:f,handleBlur:b}=cr();return jsxRuntime.jsx("div",{className:"group flex flex-col",children:jsxRuntime.jsxs("div",{className:"flex flex-col",children:[e&&jsxRuntime.jsx(Me,{size:o,tooltip:n,isRequired:a,children:e}),jsxRuntime.jsx(nt,{children:jsxRuntime.jsx("textarea",{...p,required:a,onFocus:x=>{p.onFocus&&p.onFocus(x),f(x);},onBlur:x=>{p.onBlur&&p.onBlur(x),b(x);},className:IR({isInvalid:s,isDisabled:c,isResizable:l,isFocused:g,size:o,transparent:i,className:u}),disabled:c})}),m?jsxRuntime.jsx("div",{className:"mt-1 min-h-[20px]",children:typeof r=="string"?jsxRuntime.jsx(pe,{size:o,children:r}):typeof r=="function"&&d?jsxRuntime.jsx(pe,{size:o,children:r(d)}):t?jsxRuntime.jsx(Se,{size:o,children:t}):null}):jsxRuntime.jsx(jsxRuntime.Fragment,{children:typeof r=="string"?jsxRuntime.jsx(pe,{size:o,className:"mt-1",children:r}):typeof r=="function"&&d?jsxRuntime.jsx(pe,{size:o,className:"mt-1",children:r(d)}):t?jsxRuntime.jsx(Se,{size:o,className:"mt-1",children:t}):null})]})})}function av({label:e,description:t,errorMessage:r,size:o="md",tooltip:n,required:a,transparent:i,isInvalid:s,isDisabled:c,isResizable:l=false,className:u,validationResult:d,value:m="",onChange:p,chips:g=[],onChipsChange:f,triggerPattern:b="{{",onTriggerDetected:x,onTriggerDismissed:v,renderChip:C,chipVariant:y="primary",chipSize:w,...T}){let R=Ee.useRef(null),{isFocused:E,handleFocus:D,handleBlur:L}=cr(),z=w||"sm",A=Ee.useRef(null),S=Ee.useCallback(G=>{let Y="",P=k=>{if(k.nodeType===Node.TEXT_NODE){if(!k.parentElement?.closest("[data-chip-id]")){let M=k.textContent||"";Y+=M;}}else if(k.nodeType===Node.ELEMENT_NODE){let V=k;if(V.hasAttribute("data-chip-id")){let M=V.getAttribute("data-chip-id");Y+=`{{${M}}}`;return}else if(V.tagName==="BR"){Y+=`
|
|
111
|
+
`;return}else V.tagName;}for(let V=0;V<k.childNodes.length;V++)P(k.childNodes[V]);};return P(G),Y},[]),N=Ee.useCallback((G,Y)=>{let P=document.createTreeWalker(G,NodeFilter.SHOW_TEXT,{acceptNode:O=>{let H=O.parentElement;return H&&H.closest("[data-chip-id]")?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT}}),k=P.nextNode(),V=Math.max(0,Y);for(;k;){let O=k.nodeValue||"";if(O.length>=V){let H=document.createRange();H.setStart(k,V),H.collapse(true);let j=window.getSelection();j?.removeAllRanges(),j?.addRange(H);return}V-=O.length,k=P.nextNode();}let M=window.getSelection(),h=document.createRange();h.selectNodeContents(G),h.collapse(false),M?.removeAllRanges(),M?.addRange(h);},[]);Ee.useEffect(()=>{R.current&&!m&&R.current.textContent!==""&&(R.current.textContent="");},[m]),Ee.useLayoutEffect(()=>{if(R.current){if(m===""){if(E)try{R.current.focus({preventScroll:!0}),N(R.current,0);}catch{}return}if(A.current!=null)try{N(R.current,A.current);}finally{A.current=null;}}},[m,N,E]);let F=Ee.useCallback((G,Y)=>{if(p?.(G),G===""){v?.();return}if(b&&x&&Y!==void 0){let P=G.slice(0,Y),k=typeof b=="string"?new RegExp(`\\${b}([^\\s]*)$`):b,V=P.match(k);if(V){let M=V[1]||"",h=Y-V[0].length;x({query:M,position:Y,startIndex:h});}else v?.();}},[p,b,x,v]),W=Ee.useCallback(G=>{if(!f||!p)return;let Y=g.filter(k=>k.id!==G);f(Y);let P=m.replace(new RegExp(`\\{\\{${G}\\}\\}`,"g"),"");p(P);},[g,f,m,p]),I=Ee.useCallback(G=>C?C(G,()=>W(G.id)):jsxRuntime.jsx(Fr,{variant:y,size:z,onRemove:c?void 0:()=>W(G.id),isDisabled:c,className:"py-0.5 px-1.5 gap-1 text-xs leading-none rounded-md",children:G.label},G.id),[C,y,z,W,c]),K=()=>{let G=yt({isInvalid:s,isDisabled:c,isFocused:E,transparent:i,size:o}),Y=`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(G,Y,P,u)},X=()=>m?m.split(/(\{\{[^}]+\}\})/g).map((Y,P)=>{let k=Y.match(/\{\{([^}]+)\}\}/);if(k){let V=k[1],M=g.find(h=>h.id===V);if(M)return jsxRuntime.jsx("span",{className:"inline-block align-baseline cursor-pointer",contentEditable:false,suppressContentEditableWarning:true,"data-chip-id":V,style:{userSelect:"none",verticalAlign:"baseline",lineHeight:"1"},onClick:h=>{h.preventDefault();let O=window.getSelection(),H=document.createRange();H.selectNode(h.currentTarget),O?.removeAllRanges(),O?.addRange(H);},children:I(M)},`chip-${V}-${P}`)}return Y.includes(`
|
|
112
112
|
`)?Y.split(`
|
|
113
|
-
`).map((
|
|
114
|
-
`).length-1&&jsxRuntime.jsx("br",{})]},`line-${P}-${M}`)):Y}):null;return jsxRuntime.jsx("div",{className:"group flex flex-col",children:jsxRuntime.jsxs("div",{className:"flex flex-col",children:[e&&jsxRuntime.jsx(Me,{size:o,tooltip:n,isRequired:a,children:e}),jsxRuntime.jsx(nt,{children:jsxRuntime.jsx("div",{ref:R,contentEditable:!c,suppressContentEditableWarning:true,onInput:G=>{if(c)return;let Y=G.target,P=Y.querySelector("[data-chip-id]")!==null,w;if(P?(w=N(Y),w=w.replace(/(\{\{[^}]+\}\})\s{2,}/g,"$1 ").replace(/\s{2,}(\{\{[^}]+\}\})/g," $1")):w=Y.textContent||"",w===""){try{let h=document.createRange();h.selectNodeContents(Y),h.collapse(!0);let O=window.getSelection();O?.removeAllRanges(),O?.addRange(h),A.current=0;}catch{}z("",0);return}if(w===m)return;let B=window.getSelection(),M=0;if(B&&B.rangeCount>0)try{let h=B.getRangeAt(0);if(P){let O=0,H=!1,j=oe=>{if(H)return !0;if(oe===h.startContainer)return O+=h.startOffset,H=!0,!0;if(oe.nodeType===Node.TEXT_NODE){if(!oe.parentElement?.closest("[data-chip-id]")){if(oe.contains(h.startContainer))return O+=h.startOffset,H=!0,!0;O+=(oe.textContent||"").length;}}else if(oe.nodeType===Node.ELEMENT_NODE){let me=oe;if(me.hasAttribute("data-chip-id")){if(me.contains(h.startContainer)||me===h.startContainer){let ne=me.getAttribute("data-chip-id");return O+=`{{${ne}}}`.length,H=!0,!0}let Z=me.getAttribute("data-chip-id");return O+=`{{${Z}}}`.length,!1}else if(me.tagName==="BR")return me===h.startContainer?(H=!0,!0):(O+=1,!1)}for(let me=0;me<oe.childNodes.length;me++)if(j(oe.childNodes[me]))return !0;return !1};j(Y),M=O;}else {let O=document.createRange();O.setStart(Y,0),O.setEnd(h.startContainer,h.startOffset),M=O.toString().length;}}catch{M=w.length;}A.current=M,z(w,M);},onKeyDown:G=>{if(c)return;let Y=window.getSelection();if(!(!Y||Y.rangeCount===0))try{let P=Y.getRangeAt(0),w=P.commonAncestorContainer;if(G.key==="ArrowLeft"||G.key==="ArrowRight"){let B=w.nodeType===Node.TEXT_NODE?w.parentElement?.closest("[data-chip-id]"):w.closest("[data-chip-id]");if(B){G.preventDefault();try{let M=document.createRange(),h=window.getSelection();G.key==="ArrowLeft"?M.setStartBefore(B):M.setStartAfter(B),M.collapse(!0),h?.removeAllRanges(),h?.addRange(M);}catch{}}}if(G.key==="Backspace"){let B=null;if(B=(w.nodeType===Node.TEXT_NODE?w.parentElement?.closest("[data-chip-id]"):w.closest("[data-chip-id]"))||null,!B)if(w.nodeType===Node.TEXT_NODE){let M=w;if(P.startOffset===0&&M.parentElement){let h=M.previousSibling;if(h&&h.nodeType===Node.ELEMENT_NODE){let O=h.closest("[data-chip-id]");O&&(B=O);}}}else {let M=w;if(P.startOffset>0){let h=M.childNodes[P.startOffset-1];if(h&&h.nodeType===Node.ELEMENT_NODE){let O=h.closest("[data-chip-id]");O&&(B=O);}}}if(B){G.preventDefault(),G.stopPropagation();let M=B.getAttribute("data-chip-id");if(!M)return;let h=`{{${M}}}`,O=m.indexOf(h);if(O!==-1){let H=m.slice(0,O)+m.slice(O+h.length),j=g.filter(oe=>oe.id!==M);A.current=O;try{window.getSelection()?.removeAllRanges();}catch{}f?.(j),p?.(H);}}}}catch{}},onFocus:G=>{c||(k.onFocus&&k.onFocus(G),D(G));},onBlur:G=>{c||(k.onBlur&&k.onBlur(G),L(G));},className:K(),style:{whiteSpace:"pre-wrap",wordBreak:"break-word",...k.style},"data-placeholder":k.placeholder,children:X()},m===""?"empty":"content")}),t&&jsxRuntime.jsx(Se,{size:o,className:"mt-3",children:t}),typeof r=="string"&&jsxRuntime.jsx(pe,{size:o,className:"mt-1",children:r}),typeof r=="function"&&d&&jsxRuntime.jsx(pe,{size:o,className:"mt-1",children:r(d)})]})})}function TR(e){return e instanceof Date&&!Number.isNaN(e.getTime())}function Ap(e){return TR(e)?e:(console.warn("Invalid date detected in TimeControls, using fallback:",e),new Date)}var ev={FIFTEEN_MINUTES:1,HOUR:2,DAY:3,WEEK:4,MONTH:5,YEAR:6},kR=[{id:"FIFTEEN_MINUTES",label:"15m"},{id:"HOUR",label:"1h"},{id:"DAY",label:"1d"},{id:"WEEK",label:"1w"}];function tv({dateRange:e,onDateRangeChange:t,windowSize:r,onWindowSizeChange:o,showWindowSize:n=true,showRangeSelector:a=true,allowDatePicker:i=false,lockWindowSize:s=false,restrictToSingleDay:c=false,presetRanges:l=[],windowSizeOptions:u=kR,autoAdjustWindowSize:d=false,className:m}){let[p,g]=Ee.useState(0),f=Ee.useRef(null),[b,x]=Ee.useState(false),v=P=>{let B=(P.before.getTime()-P.after.getTime())/(1e3*60*60);return B<=24?"FIFTEEN_MINUTES":B<=72||B<=168?"HOUR":("DAY")};Ee.useEffect(()=>{if(d&&!b&&o){let P=v(e);o(P);}},[e,d,b,o]);let C=P=>l.find(w=>{let B=w.getRange();return Math.abs(B.after.getTime()-P.after.getTime())<1e3*60*60*24&&Math.abs(B.before.getTime()-P.before.getTime())<1e3*60*60*24})?.id,[y,S]=Ee.useState(()=>C(e)),k=Ap(e.after),R=Ap(e.before),E=new Date(R);E.setDate(E.getDate()-1);let D={start:ls(k,jo()),end:ls(E,jo())};Ee.useEffect(()=>{let P=new ResizeObserver(w=>{for(let B of w)g(B.contentRect.width);});return f.current&&P.observe(f.current),()=>{f.current&&P.unobserve(f.current);}},[]);let L=[...u].sort((P,w)=>ev[P.id]-ev[w.id]),V=P=>{let w=P.toString(),B=l.find(M=>M.id===w);B&&(S(w),x(false),t(B.getRange()));},A=P=>{if(P?.start&&P?.end){S(void 0);let w=new Date(P.start.year,P.start.month-1,P.start.day,0,0,0,0),B=new Date(P.end.year,P.end.month-1,P.end.day+1,0,0,0,0);t({after:w,before:B});}},N=P=>{if(P){S(void 0);let w=new Date(P.year,P.month-1,P.day,0,0,0,0),B=new Date(P.year,P.month-1,P.day+1,0,0,0,0);t({after:w,before:B});}},T=P=>{o&&(x(true),o(P.toString()));},z=()=>{if(l.length>0){let P=l[0];S(P.id),x(false),t(P.getRange());}},W=(P,w=0)=>{let B=Ap(P),M=new Date(B);return w!==0&&M.setDate(M.getDate()+w),M.toLocaleDateString("en-US")},F=L.map(P=>({id:P.id,label:P.label,value:P.id})),K=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:L.find(P=>P.id===r)?.label||r}):jsxRuntime.jsx(Zo,{className:"w-full md:w-auto",selectedKey:r,onSelectionChange:T,items:F,size:"md","aria-label":"Select Window Size",children:P=>jsxRuntime.jsx(At,{id:P.id,"aria-label":P.label,size:"md",children:P.label},P.id)}),G=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(I,{name:"CalendarBlank",size:18}),jsxRuntime.jsx("span",{className:"ml-2 hidden md:block",children:W(e.after)})]}),jsxRuntime.jsx(Ze,{className:"w-auto p-3",disableGroup:true,children:jsxRuntime.jsx(Wn,{"aria-label":"Select date",value:Fa(k.toISOString().split("T")[0]),onChange:N})})]})}):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(I,{name:"CalendarBlank",size:18}),!y&&jsxRuntime.jsx("span",{className:"ml-2 hidden md:block",children:`${W(e.after)} - ${W(e.before,-1)}`})]}),jsxRuntime.jsx(Ze,{className:"w-auto p-3",disableGroup:true,children:jsxRuntime.jsx(_n,{"aria-label":"Date range calendar",value:D,onChange:A})})]}),!y&&jsxRuntime.jsx(Q,{variant:"ghost",size:"md",onPress:z,children:"Reset"})]}),Y=p<600;return jsxRuntime.jsx("div",{ref:f,className:tailwindMerge.twMerge("flex w-full flex-wrap items-center justify-between gap-4",m),children:Y?jsxRuntime.jsxs("div",{className:"flex w-full justify-between",children:[jsxRuntime.jsxs("div",{className:"flex items-center",children:[i&&G,a&&y!==void 0&&jsxRuntime.jsx(Zo,{selectedKey:y,onSelectionChange:V,items:K,size:"md","aria-label":"Select Date Range",children:P=>jsxRuntime.jsx(At,{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&&G,a&&y!==void 0&&jsxRuntime.jsx(sc,{options:l.map(P=>({id:P.id,label:P.label})),value:y,onChange:V,size:"sm",variant:"secondary","aria-label":"Select Date Range"})]}),jsxRuntime.jsx("div",{className:"flex items-center",children:n&&r&&X})]})})}function ER({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 ov({label:e,description:t,errorMessage:r,size:o="md",tooltip:n,isRequired:a,isDisabled:i,isInvalid:s,reserveErrorSpace:c=true,validationResult:l,className:u,descriptionPlacement:d="below",...m}){return jsxRuntime.jsxs(reactAriaComponents.TimeField,{...m,isDisabled:i,isRequired:a,isInvalid:s,className:Ce(u,"flex flex-col gap-1"),children:[e&&jsxRuntime.jsx(Me,{size:o,tooltip:n,description:d==="tooltip"||d==="inline"?t:void 0,descriptionPlacement:d,isRequired:a,children:e}),jsxRuntime.jsx(nt,{children:jsxRuntime.jsx(reactAriaComponents.DateInput,{className:tailwindMerge.twMerge(xo({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:ER({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(pe,{size:o,children:r}):typeof r=="function"&&l?jsxRuntime.jsx(pe,{size:o,children:r(l)}):t&&d==="below"?jsxRuntime.jsx(Se,{size:o,children:t}):null}):jsxRuntime.jsx(jsxRuntime.Fragment,{children:typeof r=="string"?jsxRuntime.jsx(pe,{size:o,className:"mt-1",children:r}):typeof r=="function"&&l?jsxRuntime.jsx(pe,{size:o,className:"mt-1",children:r(l)}):t&&d==="below"?jsxRuntime.jsx(Se,{size:o,className:"mt-1",children:t}):null})]})}function nv({children:e,className:t=""}){return jsxRuntime.jsx("div",{className:`flex flex-col ${t}`.trim(),role:"list",children:e})}function av({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(I,{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 BR(e){return "primary"}var VR="flex font-medium justify-center items-center gap-2 text-center transition whitespace-nowrap box-border",iv={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]"}},zR="opacity-[--control-hover-opacity] cursor-not-allowed pointer-events-none grayscale",OR="opacity-100 cursor-pointer",HR={"top-right":"-right-2 -top-2","top-left":"-left-2 -top-2","bottom-right":"-right-2 -bottom-2","bottom-left":"-left-2 -bottom-2"},WR={primary:"bg-action-primary text-[color:var(--color-action-primary-text)]",destructive:"bg-action-destructive text-[color:var(--color-action-destructive-text)]"};function GR(e){let{variant:t="primary",size:r="md",isDisabled:o,isSelected:n,borderRadius:a,borderRight:i,borderLeft:s}=e,c=BR(),l=`${VR} ${n?iv[c].selected:iv[c].unselected}`;return l+=` ${Le[r].text} ${Le[r].height} ${Le[r].padding} ${Le[r].gap}`,l+=` ${o?zR:OR}`,a==="left"&&(l+=" rounded-l-sm"),a==="right"&&(l+=" rounded-r-sm"),i&&(l+=" border-r"),s&&(l+=" border-l"),l+=` ${Oe()}`,(l+=" focus-visible:outline-action-primary"),tailwindMerge.twMerge(l)}function lv(e){let{className:t,children:r,onPress:o,icon:n,iconPosition:a="left",iconWeight:i,isLoading:s=false,loadingText:c,loadingIndicator:l,size:u="md",badgeNumber:d,badgeVariant:m="primary",badgePosition:p="top-right",...g}=e,f=n?jsxRuntime.jsx(I,{name:n,size:u,weight:i}):null,b=()=>{let v=jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[a==="left"&&f,r,a==="right"&&f]});return s?jsxRuntime.jsxs("div",{className:"relative inline-flex items-center justify-center",children:[jsxRuntime.jsx("div",{className:"absolute inset-0 flex items-center justify-center",children:l||jsxRuntime.jsx(I,{name:"CircleNotch",size:u,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,...g,className:tailwindMerge.twMerge(GR(e),t),"aria-busy":s,children:b()});return d&&d>0?jsxRuntime.jsxs("div",{className:"relative",children:[x,jsxRuntime.jsx("span",{className:`absolute ${HR[p]} flex h-5 w-5 items-center justify-center rounded-full ${WR[m]} text-xs`,"aria-label":`${d} items`,children:d})]}):x}var Ri={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 YR(e){return Ri[e]}function KR(e){return Ri[e].icon}function JR(e,t=false){return t?Ri[e].label.plural:Ri[e].label.singular}function jR({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(rr,{title:c,primaryAction:{label:r,onPress:()=>{let d=document.getElementById(e);d&&d.requestSubmit();},variant:a},secondaryAction:n?{label:o,onPress:n,variant:i}:void 0,...l,children:jsxRuntime.jsx(na,{id:e,onSubmit:t,children:s})})}function qR({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(ii,{primaryAction:{label:r,onPress:()=>{let u=document.getElementById(e);u&&u.requestSubmit();},variant:a},secondaryAction:n?{label:o,onPress:n,variant:i}:void 0,...c,children:jsxRuntime.jsx(na,{id:e,onSubmit:t,className:"mt-2",children:s})})}function XR({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 _R={sm:"gap-2",md:"gap-4",lg:"gap-6"};function e3(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 t3({cols:e={base:1},gap:t="lg",className:r,...o}){return jsxRuntime.jsx("div",{...o,className:tailwindMerge.twMerge("grid",e3(e),_R[t],r)})}function n3({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(Et,{tag:"h3",size:"sm",children:e}):e,t?jsxRuntime.jsx(Se,{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 a3(){return jsxRuntime.jsx("hr",{className:"border-border-muted"})}function i3({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(I,{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 l3({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 c3({when:e,message:t="You have unsaved changes. Leave anyway?"}){return Ee__namespace.useEffect(()=>{if(!e)return;let r=o=>(o.preventDefault(),o.returnValue=t,t);return window.addEventListener("beforeunload",r),()=>window.removeEventListener("beforeunload",r)},[e,t]),null}function d3({steps:e,initialStepId:t,canNavigate:r}){if(e.length===0)throw new Error("useWizard: steps array cannot be empty");let[o,n]=Ee__namespace.useState(t||e[0].id),a=e.findIndex(d=>d.id===o),i=a>0,s=a<e.length-1,c=async d=>d===o?true:r&&!await r(o,d)?false:(n(d),true);return {steps:e,currentStepId:o,setCurrentStepId:c,next:async()=>!s||a===-1?false:c(e[a+1].id),prev:async()=>!i||a===-1?false:c(e[a-1].id),hasNext:s,hasPrev:i,stepIndex:a}}function Are(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:
|
|
113
|
+
`).map((V,M)=>jsxRuntime.jsxs(Ee__namespace.default.Fragment,{children:[V,M<Y.split(`
|
|
114
|
+
`).length-1&&jsxRuntime.jsx("br",{})]},`line-${P}-${M}`)):Y}):null;return jsxRuntime.jsx("div",{className:"group flex flex-col",children:jsxRuntime.jsxs("div",{className:"flex flex-col",children:[e&&jsxRuntime.jsx(Me,{size:o,tooltip:n,isRequired:a,children:e}),jsxRuntime.jsx(nt,{children:jsxRuntime.jsx("div",{ref:R,contentEditable:!c,suppressContentEditableWarning:true,onInput:G=>{if(c)return;let Y=G.target,P=Y.querySelector("[data-chip-id]")!==null,k;if(P?(k=S(Y),k=k.replace(/(\{\{[^}]+\}\})\s{2,}/g,"$1 ").replace(/\s{2,}(\{\{[^}]+\}\})/g," $1")):k=Y.textContent||"",k===""){try{let h=document.createRange();h.selectNodeContents(Y),h.collapse(!0);let O=window.getSelection();O?.removeAllRanges(),O?.addRange(h),A.current=0;}catch{}F("",0);return}if(k===m)return;let V=window.getSelection(),M=0;if(V&&V.rangeCount>0)try{let h=V.getRangeAt(0);if(P){let O=0,H=!1,j=oe=>{if(H)return !0;if(oe===h.startContainer)return O+=h.startOffset,H=!0,!0;if(oe.nodeType===Node.TEXT_NODE){if(!oe.parentElement?.closest("[data-chip-id]")){if(oe.contains(h.startContainer))return O+=h.startOffset,H=!0,!0;O+=(oe.textContent||"").length;}}else if(oe.nodeType===Node.ELEMENT_NODE){let me=oe;if(me.hasAttribute("data-chip-id")){if(me.contains(h.startContainer)||me===h.startContainer){let ne=me.getAttribute("data-chip-id");return O+=`{{${ne}}}`.length,H=!0,!0}let Z=me.getAttribute("data-chip-id");return O+=`{{${Z}}}`.length,!1}else if(me.tagName==="BR")return me===h.startContainer?(H=!0,!0):(O+=1,!1)}for(let me=0;me<oe.childNodes.length;me++)if(j(oe.childNodes[me]))return !0;return !1};j(Y),M=O;}else {let O=document.createRange();O.setStart(Y,0),O.setEnd(h.startContainer,h.startOffset),M=O.toString().length;}}catch{M=k.length;}A.current=M,F(k,M);},onKeyDown:G=>{if(c)return;let Y=window.getSelection();if(!(!Y||Y.rangeCount===0))try{let P=Y.getRangeAt(0),k=P.commonAncestorContainer;if(G.key==="ArrowLeft"||G.key==="ArrowRight"){let V=k.nodeType===Node.TEXT_NODE?k.parentElement?.closest("[data-chip-id]"):k.closest("[data-chip-id]");if(V){G.preventDefault();try{let M=document.createRange(),h=window.getSelection();G.key==="ArrowLeft"?M.setStartBefore(V):M.setStartAfter(V),M.collapse(!0),h?.removeAllRanges(),h?.addRange(M);}catch{}}}if(G.key==="Backspace"){let V=null;if(V=(k.nodeType===Node.TEXT_NODE?k.parentElement?.closest("[data-chip-id]"):k.closest("[data-chip-id]"))||null,!V)if(k.nodeType===Node.TEXT_NODE){let M=k;if(P.startOffset===0&&M.parentElement){let h=M.previousSibling;if(h&&h.nodeType===Node.ELEMENT_NODE){let O=h.closest("[data-chip-id]");O&&(V=O);}}}else {let M=k;if(P.startOffset>0){let h=M.childNodes[P.startOffset-1];if(h&&h.nodeType===Node.ELEMENT_NODE){let O=h.closest("[data-chip-id]");O&&(V=O);}}}if(V){G.preventDefault(),G.stopPropagation();let M=V.getAttribute("data-chip-id");if(!M)return;let h=`{{${M}}}`,O=m.indexOf(h);if(O!==-1){let H=m.slice(0,O)+m.slice(O+h.length),j=g.filter(oe=>oe.id!==M);A.current=O;try{window.getSelection()?.removeAllRanges();}catch{}f?.(j),p?.(H);}}}}catch{}},onFocus:G=>{c||(T.onFocus&&T.onFocus(G),D(G));},onBlur:G=>{c||(T.onBlur&&T.onBlur(G),L(G));},className:K(),style:{whiteSpace:"pre-wrap",wordBreak:"break-word",...T.style},"data-placeholder":T.placeholder,children:X()},m===""?"empty":"content")}),t&&jsxRuntime.jsx(Se,{size:o,className:"mt-3",children:t}),typeof r=="string"&&jsxRuntime.jsx(pe,{size:o,className:"mt-1",children:r}),typeof r=="function"&&d&&jsxRuntime.jsx(pe,{size:o,className:"mt-1",children:r(d)})]})})}function GR(e){return e instanceof Date&&!Number.isNaN(e.getTime())}function Op(e){return GR(e)?e:(console.warn("Invalid date detected in TimeControls, using fallback:",e),new Date)}var lv={FIFTEEN_MINUTES:1,HOUR:2,DAY:3,WEEK:4,MONTH:5,YEAR:6},UR=[{id:"FIFTEEN_MINUTES",label:"15m"},{id:"HOUR",label:"1h"},{id:"DAY",label:"1d"},{id:"WEEK",label:"1w"}];function cv({dateRange:e,onDateRangeChange:t,windowSize:r,onWindowSizeChange:o,showWindowSize:n=true,showRangeSelector:a=true,allowDatePicker:i=false,lockWindowSize:s=false,restrictToSingleDay:c=false,presetRanges:l=[],windowSizeOptions:u=UR,autoAdjustWindowSize:d=false,className:m}){let[p,g]=Ee.useState(0),f=Ee.useRef(null),[b,x]=Ee.useState(false),v=P=>{let V=(P.before.getTime()-P.after.getTime())/(1e3*60*60);return V<=24?"FIFTEEN_MINUTES":V<=72||V<=168?"HOUR":("DAY")};Ee.useEffect(()=>{if(d&&!b&&o){let P=v(e);o(P);}},[e,d,b,o]);let C=P=>l.find(k=>{let V=k.getRange();return Math.abs(V.after.getTime()-P.after.getTime())<1e3*60*60*24&&Math.abs(V.before.getTime()-P.before.getTime())<1e3*60*60*24})?.id,[y,w]=Ee.useState(()=>C(e)),T=Op(e.after),R=Op(e.before),E=new Date(R);E.setDate(E.getDate()-1);let D={start:ps(T,Zo()),end:ps(E,Zo())};Ee.useEffect(()=>{let P=new ResizeObserver(k=>{for(let V of k)g(V.contentRect.width);});return f.current&&P.observe(f.current),()=>{f.current&&P.unobserve(f.current);}},[]);let L=[...u].sort((P,k)=>lv[P.id]-lv[k.id]),z=P=>{let k=P.toString(),V=l.find(M=>M.id===k);V&&(w(k),x(false),t(V.getRange()));},A=P=>{if(P?.start&&P?.end){w(void 0);let k=new Date(P.start.year,P.start.month-1,P.start.day,0,0,0,0),V=new Date(P.end.year,P.end.month-1,P.end.day+1,0,0,0,0);t({after:k,before:V});}},S=P=>{if(P){w(void 0);let k=new Date(P.year,P.month-1,P.day,0,0,0,0),V=new Date(P.year,P.month-1,P.day+1,0,0,0,0);t({after:k,before:V});}},N=P=>{o&&(x(true),o(P.toString()));},F=()=>{if(l.length>0){let P=l[0];w(P.id),x(false),t(P.getRange());}},W=(P,k=0)=>{let V=Op(P),M=new Date(V);return k!==0&&M.setDate(M.getDate()+k),M.toLocaleDateString("en-US")},I=L.map(P=>({id:P.id,label:P.label,value:P.id})),K=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:L.find(P=>P.id===r)?.label||r}):jsxRuntime.jsx($o,{className:"w-full md:w-auto",selectedKey:r,onSelectionChange:N,items:I,size:"md","aria-label":"Select Window Size",children:P=>jsxRuntime.jsx(It,{id:P.id,"aria-label":P.label,size:"md",children:P.label},P.id)}),G=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(B,{name:"CalendarBlank",size:18}),jsxRuntime.jsx("span",{className:"ml-2 hidden md:block",children:W(e.after)})]}),jsxRuntime.jsx(Ze,{className:"w-auto p-3",disableGroup:true,children:jsxRuntime.jsx(Un,{"aria-label":"Select date",value:Oa(T.toISOString().split("T")[0]),onChange:S})})]})}):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(B,{name:"CalendarBlank",size:18}),!y&&jsxRuntime.jsx("span",{className:"ml-2 hidden md:block",children:`${W(e.after)} - ${W(e.before,-1)}`})]}),jsxRuntime.jsx(Ze,{className:"w-auto p-3",disableGroup:true,children:jsxRuntime.jsx(ta,{"aria-label":"Date range calendar",value:D,onChange:A})})]}),!y&&jsxRuntime.jsx(Q,{variant:"ghost",size:"md",onPress:F,children:"Reset"})]}),Y=p<600;return jsxRuntime.jsx("div",{ref:f,className:tailwindMerge.twMerge("flex w-full flex-wrap items-center justify-between gap-4",m),children:Y?jsxRuntime.jsxs("div",{className:"flex w-full justify-between",children:[jsxRuntime.jsxs("div",{className:"flex items-center",children:[i&&G,a&&y!==void 0&&jsxRuntime.jsx($o,{selectedKey:y,onSelectionChange:z,items:K,size:"md","aria-label":"Select Date Range",children:P=>jsxRuntime.jsx(It,{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&&G,a&&y!==void 0&&jsxRuntime.jsx(uc,{options:l.map(P=>({id:P.id,label:P.label})),value:y,onChange:z,size:"sm",variant:"secondary","aria-label":"Select Date Range"})]}),jsxRuntime.jsx("div",{className:"flex items-center",children:n&&r&&X})]})})}function qR({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 uv({label:e,description:t,errorMessage:r,size:o="md",tooltip:n,isRequired:a,isDisabled:i,isInvalid:s,reserveErrorSpace:c=true,validationResult:l,className:u,descriptionPlacement:d="below",...m}){return jsxRuntime.jsxs(reactAriaComponents.TimeField,{...m,isDisabled:i,isRequired:a,isInvalid:s,className:Ce(u,"flex flex-col gap-1"),children:[e&&jsxRuntime.jsx(Me,{size:o,tooltip:n,description:d==="tooltip"||d==="inline"?t:void 0,descriptionPlacement:d,isRequired:a,children:e}),jsxRuntime.jsx(nt,{children:jsxRuntime.jsx(reactAriaComponents.DateInput,{className:tailwindMerge.twMerge(yo({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:qR({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(pe,{size:o,children:r}):typeof r=="function"&&l?jsxRuntime.jsx(pe,{size:o,children:r(l)}):t&&d==="below"?jsxRuntime.jsx(Se,{size:o,children:t}):null}):jsxRuntime.jsx(jsxRuntime.Fragment,{children:typeof r=="string"?jsxRuntime.jsx(pe,{size:o,className:"mt-1",children:r}):typeof r=="function"&&l?jsxRuntime.jsx(pe,{size:o,className:"mt-1",children:r(l)}):t&&d==="below"?jsxRuntime.jsx(Se,{size:o,className:"mt-1",children:t}):null})]})}function pv({children:e,className:t=""}){return jsxRuntime.jsx("div",{className:`flex flex-col ${t}`.trim(),role:"list",children:e})}function mv({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 _R(e){return "primary"}var e3="flex font-medium justify-center items-center gap-2 text-center transition whitespace-nowrap box-border",fv={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]"}},t3="opacity-[--control-hover-opacity] cursor-not-allowed pointer-events-none grayscale",r3="opacity-100 cursor-pointer",o3={"top-right":"-right-2 -top-2","top-left":"-left-2 -top-2","bottom-right":"-right-2 -bottom-2","bottom-left":"-left-2 -bottom-2"},n3={primary:"bg-action-primary text-[color:var(--color-action-primary-text)]",destructive:"bg-action-destructive text-[color:var(--color-action-destructive-text)]"};function a3(e){let{variant:t="primary",size:r="md",isDisabled:o,isSelected:n,borderRadius:a,borderRight:i,borderLeft:s}=e,c=_R(),l=`${e3} ${n?fv[c].selected:fv[c].unselected}`;return l+=` ${Le[r].text} ${Le[r].height} ${Le[r].padding} ${Le[r].gap}`,l+=` ${o?t3:r3}`,a==="left"&&(l+=" rounded-l-sm"),a==="right"&&(l+=" rounded-r-sm"),i&&(l+=" border-r"),s&&(l+=" border-l"),l+=` ${Oe()}`,(l+=" focus-visible:outline-action-primary"),tailwindMerge.twMerge(l)}function bv(e){let{className:t,children:r,onPress:o,icon:n,iconPosition:a="left",iconWeight:i,isLoading:s=false,loadingText:c,loadingIndicator:l,size:u="md",badgeNumber:d,badgeVariant:m="primary",badgePosition:p="top-right",...g}=e,f=n?jsxRuntime.jsx(B,{name:n,size:u,weight:i}):null,b=()=>{let v=jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[a==="left"&&f,r,a==="right"&&f]});return s?jsxRuntime.jsxs("div",{className:"relative inline-flex items-center justify-center",children:[jsxRuntime.jsx("div",{className:"absolute inset-0 flex items-center justify-center",children:l||jsxRuntime.jsx(B,{name:"CircleNotch",size:u,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,...g,className:tailwindMerge.twMerge(a3(e),t),"aria-busy":s,children:b()});return d&&d>0?jsxRuntime.jsxs("div",{className:"relative",children:[x,jsxRuntime.jsx("span",{className:`absolute ${o3[p]} flex h-5 w-5 items-center justify-center rounded-full ${n3[m]} text-xs`,"aria-label":`${d} items`,children:d})]}):x}var Li={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 s3(e){return Li[e]}function l3(e){return Li[e].icon}function c3(e,t=false){return t?Li[e].label.plural:Li[e].label.singular}function d3({formId:e="dialog-form",onSubmit:t,primaryLabel:r="Save",secondaryLabel:o="Cancel",onCancel:n,primaryVariant:a,secondaryVariant:i="secondary",children:s,title:c,...l}){return jsxRuntime.jsx(nr,{title:c,primaryAction:{label:r,onPress:()=>{let d=document.getElementById(e);d&&d.requestSubmit();},variant:a},secondaryAction:n?{label:o,onPress:n,variant:i}:void 0,...l,children:jsxRuntime.jsx(ia,{id:e,onSubmit:t,children:s})})}function u3({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(di,{primaryAction:{label:r,onPress:()=>{let u=document.getElementById(e);u&&u.requestSubmit();},variant:a},secondaryAction:n?{label:o,onPress:n,variant:i}:void 0,...c,children:jsxRuntime.jsx(ia,{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 b3={sm:"gap-2",md:"gap-4",lg:"gap-6"};function x3(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 h3({cols:e={base:1},gap:t="lg",className:r,...o}){return jsxRuntime.jsx("div",{...o,className:tailwindMerge.twMerge("grid",x3(e),b3[t],r)})}function C3({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(Lt,{tag:"h3",size:"sm",children:e}):e,t?jsxRuntime.jsx(Se,{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 S3(){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 k3({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 T3({when:e,message:t="You have unsaved changes. Leave anyway?"}){return Ee__namespace.useEffect(()=>{if(!e)return;let r=o=>(o.preventDefault(),o.returnValue=t,t);return window.addEventListener("beforeunload",r),()=>window.removeEventListener("beforeunload",r)},[e,t]),null}function P3({steps:e,initialStepId:t,canNavigate:r}){if(e.length===0)throw new Error("useWizard: steps array cannot be empty");let[o,n]=Ee__namespace.useState(t||e[0].id),a=e.findIndex(d=>d.id===o),i=a>0,s=a<e.length-1,c=async d=>d===o?true:r&&!await r(o,d)?false:(n(d),true);return {steps:e,currentStepId:o,setCurrentStepId:c,next:async()=>!s||a===-1?false:c(e[a+1].id),prev:async()=>!i||a===-1?false:c(e[a-1].id),hasNext:s,hasPrev:i,stepIndex:a}}function noe(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:
|
|
115
115
|
|
|
116
116
|
react-is/cjs/react-is.production.min.js:
|
|
117
117
|
(** @license React v16.13.1
|
|
@@ -146,5 +146,5 @@ classnames/index.js:
|
|
|
146
146
|
Licensed under the MIT License (MIT), see
|
|
147
147
|
http://jedwatson.github.io/classnames
|
|
148
148
|
*)
|
|
149
|
-
*/Object.defineProperty(exports,"DialogTrigger",{enumerable:true,get:function(){return reactAriaComponents.DialogTrigger}});exports.ActionCell=
|
|
149
|
+
*/Object.defineProperty(exports,"DialogTrigger",{enumerable:true,get:function(){return reactAriaComponents.DialogTrigger}});exports.ActionCell=Qb;exports.ActionMenu=Hn;exports.ActivityFeed=md;exports.ActivityFeedGroup=es;exports.ActivityItem=ts;exports.Alert=yf;exports.AppShell=wf;exports.AreaSeries=Ja;exports.AutoMobileRenderer=Sl;exports.Autocomplete=Ss;exports.Avatar=$r;exports.BREAKPOINTS=Ho;exports.Badge=Je;exports.BadgeCell=ex;exports.Banner=Ns;exports.BarSeries=jn;exports.BooleanCell=tx;exports.BrandProvider=Wm;exports.BreadcrumbItem=Ts;exports.Breadcrumbs=ks;exports.Button=Q;exports.Calendar=Un;exports.Card=Ae;exports.CardContent=id;exports.CardFooter=sd;exports.CardHeader=nd;exports.CardMedia=ad;exports.CardMobileRenderer=wl;exports.CarouselAutoplayTrigger=hg;exports.CarouselControl=fg;exports.CarouselIndicator=nu;exports.CarouselIndicatorGroup=xg;exports.CarouselItem=mg;exports.CarouselItemGroup=pg;exports.CarouselNextTrigger=bg;exports.CarouselPrevTrigger=gg;exports.CarouselProgressText=yg;exports.CarouselRoot=ug;exports.CategoryBarChart=hb;exports.ChartAxis=Vr;exports.ChartBottomBar=$s;exports.ChartContainer=Lb;exports.ChartContext=Po;exports.ChartEventMarkers=_s;exports.ChartTooltip=Xn;exports.Checkbox=tn;exports.CheckboxGroup=au;exports.Chip=Fr;exports.ChipInputField=Tg;exports.ClearButton=Ha;exports.CodeEditor=Dg;exports.Collapse=Yn;exports.CollapseContent=ko;exports.CollapseHeader=No;exports.CollapseItem=wo;exports.ColorField=q2;exports.ColorModeProvider=Qm;exports.CommandPalette=Jx;exports.Confirm=Fg;exports.ConnectionStatusBadge=Bg;exports.ContactCard=Vg;exports.ContactMetaCell=ox;exports.ContactMetaDisplay=Es;exports.CopyToClipboard=vo;exports.CustomCell=nx;exports.DEFAULT_MAP_TYPE=Xl;exports.DataControls=Wb;exports.DataTable=Lx;exports.DateCell=ax;exports.DateField=Yb;exports.DateRangePicker=il;exports.Description=Se;exports.DeviceHealthBadge=Ix;exports.DeviceMetaCell=sx;exports.DeviceMetaDisplay=pl;exports.DeviceStateBadge=mn;exports.DeviceStateCell=dx;exports.DeviceStateWithMetric=gl;exports.DeviceTypeIcon=Bx;exports.Dialog=nr;exports.DialogForm=d3;exports.DialogHeader=St;exports.Drawer=di;exports.DrawerForm=u3;exports.ENTITY_CONFIG=Li;exports.EmptyState=Ox;exports.EnrollmentStatusBadge=Hx;exports.ErrorBoundary=gr;exports.FieldError=pe;exports.FieldGroup=qf;exports.FileUpload=Gx;exports.FilterChips=Gb;exports.FilterDialog=Zb;exports.FirmwareVersionBadge=Yx;exports.Form=ia;exports.FormActions=m3;exports.FormDivider=S3;exports.FormGrid=h3;exports.FormSection=C3;exports.FormStepper=w3;exports.FormatRegistry=re;exports.FormattedCell=px;exports.FunnelSeries=Bb;exports.GlobalSearch=Zx;exports.Grid=_u;exports.GridStateBadge=fl;exports.Heading=Lt;exports.HierarchyExplorer=Nh;exports.HorizontalBarCell=Hu;exports.HoverCard=XP;exports.Icon=B;exports.InfiniteScrollIndicator=or;exports.Input=hs;exports.InputWrapper=nt;exports.InteractiveMap=Ni;exports.Kpi=Rh;exports.KpiGroup=sp;exports.Label=Me;exports.LineSeries=ei;exports.List=Ih;exports.ListBox=e1;exports.ListBoxItem=It;exports.ListItem=Bh;exports.ListPane=Vh;exports.Loader=jr;exports.Logo=os;exports.MAP_TYPES=my;exports.MapClusterMarker=zh;exports.MapLegend=Hh;exports.MapMarker=Wh;exports.MapMarkerBadge=Gh;exports.Meter=hy;exports.MiniBarCell=Wu;exports.ModalBackdrop=Kt;exports.Notice=ec;exports.NoticeContainer=tc;exports.NoticeProvider=vy;exports.NumberCell=xx;exports.NumberField=ai;exports.PageBanner=ng;exports.PageLayout=Tn;exports.PercentBarCell=Gu;exports.PlaceSearch=Ay;exports.Popover=Ze;exports.ProgressBar=Fy;exports.Prose=By;exports.Radio=Oy;exports.RadioCard=Mp;exports.RadioCardGroup=Ep;exports.RadioGroup=zy;exports.RangeCalendar=ta;exports.ResultsCount=ri;exports.RichTextEditor=Gy;exports.SKELETON_SIZES=Do;exports.SaveBar=k3;exports.SearchControl=un;exports.SearchEmptyState=Xx;exports.SearchLoadingState=Qx;exports.SearchResultGroup=eh;exports.SearchResultItem=th;exports.SearchResultsList=rh;exports.SearchTrigger=nh;exports.Section=ga;exports.SectionNav=ac;exports.SegmentedControl=uc;exports.Select=$o;exports.SelectCell=yx;exports.SideNav=ns;exports.SiteCard=Yy;exports.SiteContactCard=Jy;exports.SiteMetaCell=Cx;exports.SiteMetaDisplay=hl;exports.Skeleton=J;exports.Slider=jy;exports.SortControl=oi;exports.SparklineCell=Uu;exports.SplitPane=mc;exports.StackNav=ev;exports.StatList=El;exports.StaticMap=fa;exports.Switch=sl;exports.Tab=dc;exports.TabList=cc;exports.TabPanel=ky;exports.Tabs=lc;exports.TextArea=tv;exports.TextAreaWithChips=av;exports.TextCell=kx;exports.TextField=dr;exports.TextLink=Ue;exports.TimeControls=cv;exports.TimeField=uv;exports.Timeline=pv;exports.TimelineItem=mv;exports.ToggleButton=bv;exports.Tooltip=At;exports.TopNav=Aa;exports.Tray=Xe;exports.UnsavedChangesPrompt=T3;exports.activeDeviceStates=Sk;exports.addFilterCondition=Ro;exports.applyDataOperations=yc;exports.autoScaleCurrent=D0;exports.autoScaleDistance=um;exports.autoScaleEnergy=gm;exports.autoScalePower=z0;exports.autoScaleResistance=O0;exports.autoScaleVoltage=J0;exports.camelCaseToWords=Em;exports.capitalize=Dm;exports.celsiusToFahrenheit=H0;exports.celsiusToKelvin=DM;exports.centimetersToInches=dM;exports.clearColorCache=qi;exports.createCategoryColorMap=dC;exports.createEmptyFilter=ti;exports.createFilter=wN;exports.createFilters=NN;exports.createFormat=_M;exports.createXScale=ku;exports.createYScale=Tu;exports.defaultMargin=Ye;exports.deviceStateLabels=wk;exports.deviceStateMetricFormats=EG;exports.enumToSentenceCase=Y0;exports.exportChart=hc;exports.exportTableAsCSV=Sc;exports.fahrenheitToCelsius=W0;exports.fahrenheitToKelvin=MM;exports.feetToMeters=tM;exports.feetToMiles=nM;exports.filterToChips=kN;exports.formatBoolean=om;exports.formatCapacity=AD;exports.formatComponentValue=Rr;exports.formatCurrency=lm;exports.formatCurrent=Tc;exports.formatDate=cm;exports.formatDistance=pm;exports.formatEmptyValue=dl;exports.formatEnergy=Ic;exports.formatFieldValue=Wo;exports.formatInternationalPhone=Fc;exports.formatNumber=sm;exports.formatPercent=am;exports.formatPhone=bm;exports.formatPhoneNumber=In;exports.formatPower=Oc;exports.formatPowerRating=ID;exports.formatResistance=Wc;exports.formatTemperature=Nm;exports.formatText=Am;exports.formatUSPhone=Gi;exports.formatVoltage=Yc;exports.getBadgeClasses=Xb;exports.getBooleanBadgeVariant=$b;exports.getCellAlignmentClasses=Fu;exports.getCellContainerClasses=Te;exports.getCellTextClasses=ur;exports.getContrastingTextColor=uC;exports.getDateParts=ZD;exports.getDefaultChartColor=jc;exports.getDefaultColors=Gm;exports.getDeviceStateDisplayLabel=zu;exports.getDeviceStateLabel=zu;exports.getEntityConfig=s3;exports.getEntityIcon=l3;exports.getEntityLabel=c3;exports.getExportFormatName=Hv;exports.getExportHeaders=f0;exports.getFieldGroupStyles=$S;exports.getFilterFields=dn;exports.getGridStateLabel=cx;exports.getInputBackgroundStyles=jf;exports.getInputBaseStyles=yt;exports.getInputStateStyles=yo;exports.getLinkClasses=Bu;exports.getNumericColorClasses=ul;exports.getResolvedColor=gt;exports.getSkeletonSize=Wt;exports.getStateTone=noe;exports.getThemeCategoricalColors=ka;exports.getYFormatSettings=_r;exports.gridStateLabels=kk;exports.inchesToCentimeters=cM;exports.isActiveDeviceState=Vu;exports.isActiveState=Vu;exports.isCustomPinsLayer=bp;exports.isExportSupported=Ov;exports.isFilterEmpty=ol;exports.isGeoJsonLayer=gp;exports.isLightColor=Um;exports.isNil=le;exports.isRasterLayer=xp;exports.isVectorLayer=fp;exports.kelvinToCelsius=G0;exports.kelvinToFahrenheit=EM;exports.kilometersToMiles=oM;exports.layer=mp;exports.mapMarkerTokens=oo;exports.mergeMapMarkerTokens=wn;exports.metersToFeet=eM;exports.metersToMiles=aM;exports.metersToYards=lM;exports.milesToFeet=dm;exports.milesToKilometers=rM;exports.milesToMeters=iM;exports.parseBoolean=fo;exports.prepareTableDataForExport=m0;exports.registerPhosphorIcon=by;exports.removeFilterCondition=cn;exports.resolveValue=ye;exports.snakeCaseToWords=Lm;exports.temperatureStringToSymbol=ym;exports.toA=YD;exports.toActiveInactive=v0;exports.toAmps=Hi;exports.toBoolean=mo;exports.toCelsius=Cm;exports.toCentimeters=I0;exports.toCheckmark=S0;exports.toCompactNumber=T0;exports.toCurrency=im;exports.toCustomDateFormat=A0;exports.toDateString=M0;exports.toEnabledDisabled=h0;exports.toFahrenheit=vm;exports.toFeet=Dc;exports.toFloat=N0;exports.toFormattedNumber=k0;exports.toFullDateTime=E0;exports.toGW=SM;exports.toGWh=fm;exports.toGigawatts=zc;exports.toISOString=L0;exports.toInches=B0;exports.toInteger=w0;exports.toKA=KD;exports.toKV=OM;exports.toKW=vM;exports.toKelvin=Sm;exports.toKiloamps=kc;exports.toKilohms=xm;exports.toKilometers=Rc;exports.toKilovolts=Uc;exports.toKilowatts=Bc;exports.toLowerCase=Tm;exports.toMA=UD;exports.toMV=VM;exports.toMW=CM;exports.toMWh=mm;exports.toMegawatts=Vc;exports.toMegohms=hm;exports.toMeters=Pc;exports.toMiles=Mc;exports.toMilliamps=Nc;exports.toMillimeters=F0;exports.toMilliohms=Hc;exports.toMillivolts=Gc;exports.toNauticalMiles=_D;exports.toOhms=Yi;exports.toOnOff=y0;exports.toPercentage=nm;exports.toRelativeTime=Wi;exports.toScientificNotation=P0;exports.toSecret=K0;exports.toSentenceCase=Pm;exports.toTemperature=wm;exports.toTitleCase=Rm;exports.toTrueFalse=C0;exports.toUpperCase=km;exports.toV=zM;exports.toVolts=ji;exports.toW=yM;exports.toWatts=Ui;exports.toWh=Lc;exports.toYards=Ec;exports.tokWh=Ac;exports.truncateEnd=Ji;exports.truncateMiddle=Fn;exports.truncateStart=Ki;exports.typeRole=et;exports.typographyRole=Dr;exports.ucFirst=Mm;exports.useBreakpoint=Rt;exports.useChartContext=an;exports.useClientDataControls=Ii;exports.useColorMode=Et;exports.useComponentFormatter=zD;exports.useDataControls=Zp;exports.useDebounce=uo;exports.useElementSize=An;exports.useInfiniteScroll=po;exports.useInputFocus=cr;exports.useLocalStorage=Vi;exports.useMediaQuery=Pt;exports.useNotice=Sy;exports.useServerDataControls=Fi;exports.useTableExport=rm;exports.useWizard=P3;exports.wrapWithLink=Hr;exports.yardsToMeters=sM;//# sourceMappingURL=index.cjs.map
|
|
150
150
|
//# sourceMappingURL=index.cjs.map
|