@deephaven/embed-widget 1.13.0 → 1.15.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (27) hide show
  1. package/build/assets/{App-B2pAGQHM.js → App-BwYPmKs1.js} +2 -2
  2. package/build/assets/{App-B2pAGQHM.js.map → App-BwYPmKs1.js.map} +1 -1
  3. package/build/assets/{Chart-D0mvOQeR.js → Chart-DpAX1kU9.js} +2 -2
  4. package/build/assets/{Chart-D0mvOQeR.js.map → Chart-DpAX1kU9.js.map} +1 -1
  5. package/build/assets/{IrisGrid-BAEWjqsP.js → IrisGrid-lXHDqgOc.js} +2 -2
  6. package/build/assets/{IrisGrid-BAEWjqsP.js.map → IrisGrid-lXHDqgOc.js.map} +1 -1
  7. package/build/assets/IrisGridThemeProvider-D1WMJ-f-.js +12 -0
  8. package/build/assets/IrisGridThemeProvider-D1WMJ-f-.js.map +1 -0
  9. package/build/assets/{LocalWorkspaceStorage-mvICFrlR.js → LocalWorkspaceStorage-DCry6bwG.js} +2 -2
  10. package/build/assets/{LocalWorkspaceStorage-mvICFrlR.js.map → LocalWorkspaceStorage-DCry6bwG.js.map} +1 -1
  11. package/build/assets/{LogPanel-BcMugwec.js → LogPanel-DtxZygrY.js} +2 -2
  12. package/build/assets/{LogPanel-BcMugwec.js.map → LogPanel-DtxZygrY.js.map} +1 -1
  13. package/build/assets/{MarkdownEditor-CdTPlZEB.js → MarkdownEditor-DTSMlBwd.js} +2 -2
  14. package/build/assets/{MarkdownEditor-CdTPlZEB.js.map → MarkdownEditor-DTSMlBwd.js.map} +1 -1
  15. package/build/assets/{MarkdownNotebook-C4vSRTHg.js → MarkdownNotebook-DDvlL_-R.js} +2 -2
  16. package/build/assets/{MarkdownNotebook-C4vSRTHg.js.map → MarkdownNotebook-DDvlL_-R.js.map} +1 -1
  17. package/build/assets/{index-ClzsYCKK.js → index-DyTRgJVI.js} +3 -3
  18. package/build/assets/{index-ClzsYCKK.js.map → index-DyTRgJVI.js.map} +1 -1
  19. package/build/assets/{index-Oq9pYG4A.js → index-S6ypQ8vd.js} +4 -4
  20. package/build/assets/index-S6ypQ8vd.js.map +1 -0
  21. package/build/assets/{index-IcoubmP7.js → index-bNPEJZLd.js} +4 -4
  22. package/build/assets/{index-IcoubmP7.js.map → index-bNPEJZLd.js.map} +1 -1
  23. package/build/index.html +2 -2
  24. package/package.json +9 -9
  25. package/build/assets/IrisGridThemeProvider-BASQ6h4_.js +0 -12
  26. package/build/assets/IrisGridThemeProvider-BASQ6h4_.js.map +0 -1
  27. package/build/assets/index-Oq9pYG4A.js.map +0 -1
@@ -1,6 +1,6 @@
1
- import{r as c,J as $,P as _o,D as u,Q as Ro,S as ze,T as Do,U as Lo,V as Ao,W as Fo,C as Bt,X as No,G as N,Y as Wt,Z as Kr,a0 as Mo,a1 as $o,a2 as Uo,a3 as yt,a4 as Bo,a5 as qr,a6 as Xe,a7 as Le,I as Y,a8 as zr,a9 as Xr,aa as Ht,ab as Qr,ac as Jr,ad as vt,ae as Wo,af as je,ag as Zr,H as ei,ah as ti,ai as Ho,aj as Vo,ak as Go,al as ni,am as Yo,an as Ko,ao as qo,ap as zo,aq as Xo,ar as Qo,as as Jo,at as Zo,au as es,av as ts,aw as ns,ax as rs,ay as is,az as as,aA as os,aB as ss,aC as ls,aD as us,aE as cs,aF as ds,aG as ps,aH as fs,aI as hs,aJ as ms,aK as ri,aL as gs,aM as ys,aN as vs,aO as bs,aP as Ps,aQ as xs,aR as ws,aS as Ss,aT as Os,aU as Es,aV as Cs,aW as Ts,aX as js,aY as Is,aZ as ks,a_ as _s,a$ as Rs,b0 as Ds,b1 as Ls,b2 as As,b3 as Fs,b4 as Ns,O as Ms,b5 as $s,b6 as Us,b7 as Bs,b8 as Ws,b9 as Hs,ba as Vs,L as Gs,N as Ys,bb as bt,bc as Ks,bd as qs,be as Pn,bf as zs,bg as Xs,bh as Qs,bi as Js,R as Zs,bj as el,bk as tl,bl as ii,bm as nl,bn as rl}from"./vendor-COicag8P.js";import{i as ai,b as Vt,p as oi,a as B,r as si,M as li,c as ui,g as Gt,L as me,v as ci,d as Yt,e as Kt,f as Qe,h as il,j as al,k as ol,l as sl,m as ll,n as di,o as ul,q as cl,s as dl,t as pi,u as Je,w as pl,T as Pt,C as fl,D as hl,x as ml,y as gl,z as yl,A as vl,B as bl,E as Pl,F as xl,G as fi,N as wl,P as Sl,S as Ol,H as El,I as Cl,J as Tl,K as jl,W as Il,O as kl,Q as _l,R as Rl,U as Dl,V as Ll,X as Al,Y as Fl,Z as Nl,_ as Ml,$ as $l,a0 as Ul,a1 as Bl,a2 as Wl,a3 as Hl,a4 as Vl,a5 as Gl,a6 as Yl,a7 as Kl,a8 as ql,a9 as zl,aa as Xl,ab as Ql,ac as qt,ad as Jl,ae as Ze,af as zt,ag as Zl,ah as hi,ai as eu,aj as tu,ak as nu,al as ru,am as iu,an as au}from"./index-ClzsYCKK.js";import{C as mi,e as ou,a as Ae,F as su,f as lu,D as xn,g as uu,h as cu,d as du,U as et,i as gi,j as yi,k as pu,c as fu,S as hu}from"./LocalWorkspaceStorage-mvICFrlR.js";import{A as Xb,o as Qb,p as Jb,G as Zb,L as e0,l as t0,s as n0,r as r0,n as i0,m as a0,q as o0,u as s0,b as l0}from"./LocalWorkspaceStorage-mvICFrlR.js";import{k as mu,l as gu,m as yu,n as vu,o as Ie,p as bu,q as Pu,t as xu,v as wu,w as tt,x as ne,y as J,z as Su,T as nt,A as Fe,H as Xt,P as rt,C as le,B as he,D as vi,F as Ve,G as bi,r as pe,M as H,K as q,R as wn,I as xt,J as V,L as Pi,N as wt,O as it,E as xi,Q as Qt,U as at,V as wi,W as Ou,X as Eu,c as Cu,Y as Tu,Z as Si,_ as Oi,S as ju,$ as Iu,a0 as ku,a1 as Ei,a2 as _u,a3 as Ru,a4 as Du,a5 as Ci,a6 as Lu,a7 as Au,a8 as Fu,a9 as Nu,aa as Ti,ab as Mu,u as ge,ac as ji,g as $u,ad as Uu,ae as Bu,af as Wu,ag as Ii,ah as Hu,ai as Vu,aj as Gu,ak as Yu,al as Ku,am as qu,an as ki,ao as Jt,ap as _i,aq as Ri,ar as Di,as as Li,s as Ai,at as Sn,au as zu,av as Xu,aw as Qu,ax as Ju,ay as Zu,az as ec,aA as tc,aB as nc,aC as rc,aD as ic,aE as ac,aF as oc,aG as sc,aH as lc,aI as Fi,aJ as uc,aK as cc,aL as dc,aM as pc,aN as fc,aO as hc,aP as mc,aQ as gc,aR as yc,e as vc,b as bc,aS as Pc,aT as xc,aU as wc,aV as Sc,aW as Oc,aX as Ec,aY as Cc,aZ as Tc,a_ as jc,a$ as Ic,b0 as kc,b1 as _c,b2 as Rc,b3 as Dc,b4 as Lc,b5 as Ac,b6 as Ni,b7 as Fc,b8 as Nc,a as Mc,b9 as $c,ba as Uc,bb as Bc,bc as Wc,bd as Hc,be as Vc,bf as Gc,bg as Yc,bh as Mi,bi as $i,bj as ot,bk as Kc,bl as Ui,bm as qc,bn as zc,bo as St,bp as Xc,bq as Bi,br as Qc,bs as Ot,bt as Jc,bu as Zc,bv as ed,bw as ke,bx as Wi,by as Hi,bz as td,bA as Vi,bB as nd,bC as rd,bD as Gi,bE as Yi,bF as Ki,bG as On,bH as id,bI as ad,bJ as od,bK as sd,bL as ld,bM as ud,bN as cd,bO as dd,bP as pd,bQ as fd,bR as hd,bS as md,bT as gd,bU as yd,bV as vd,bW as bd,bX as Pd,bY as xd,bZ as wd,b_ as Sd,b$ as fe,c0 as Od,c1 as Ed}from"./LogPanel-BcMugwec.js";import{F as Zt,C as Cd,S as Td,u as en,D as jd,B as Id,a as kd,b as _d,c as Rd,d as tn,e as Et,I as Dd,f as Ld,T as Ad,g as Fd,h as nn,i as Nd,j as qi,k as zi,l as Md,m as Xi,n as rn,o as Qi,p as Ji,q as $d,r as Ud,s as Bd,t as Wd,v as Hd,w as Vd,x as Gd,y as Yd,z as Kd,A as Zi,E as qd,G as zd,H as Xd,J as ea,K as ta,L as na,M as Qd,N as Jd,O as Zd,P as ep,Q as tp,R as ra,U as np,V as rp,W as ia,X as ip,Y as En,Z as ap,_ as op,$ as sp,a0 as lp,a1 as up,a2 as cp,a3 as dp,a4 as pp,a5 as fp,a6 as hp,a7 as mp,a8 as gp,a9 as yp,aa as vp,ab as bp,ac as Pp,ad as xp,ae as wp,af as Sp,ag as Op,ah as Ep,ai as aa}from"./index-IcoubmP7.js";import{D as Cp}from"./DownsamplingError--AAvWHv_.js";import{e as Ke,c as Tp,d as jp,a as Ip,f as kp,b as _p,g as Rp,h as Dp,i as Lp,j as oa,u as Ap,k as Fp,l as Np,m as Mp,n as Se,o as $p,p as Up,q as Ge,r as Ct,s as sa,t as an,v as on,w as la,x as ua,y as sn,A as ln,M as un,D as ca,z as Bp,B as Tt,C as Wp,E as Hp,F as Vp,G as Gp,H as Yp,I as Kp,J as qp,K as zp,L as da,N as Xp,O as Qp,P as Jp,Q as Zp,R as pa,S as ef,T as tf,U as nf,V as rf,W as af,X as of,Y as fa,Z as sf,_ as lf,$ as uf,a0 as cf,a1 as df,a2 as pf,a3 as ff,a4 as hf,a5 as mf,a6 as gf,a7 as yf,a8 as vf,a9 as bf,aa as Pf,ab as ha,ac as xf,ad as wf,ae as Sf,af as Of,ag as Ef,ah as Cf,ai as Ye,aj as Tf,ak as ma,al as jf,am as cn,an as de,ao as Cn,ap as ga,aq as If,ar as kf,as as ya,at as va,au as _f,av as Rf,aw as Df,ax as Lf,ay as Af,az as Ff,aA as Nf,aB as Mf,aC as $f,aD as Uf,aE as Bf,aF as Wf,aG as Hf,aH as Vf,aI as Gf,aJ as Yf,aK as Kf,aL as qf,aM as zf,aN as Xf,aO as Qf,aP as Jf,aQ as Zf,aR as eh,aS as th,aT as nh,aU as rh,aV as ih,aW as ah,aX as oh,aY as sh,aZ as ba,a_ as lh,a$ as uh,b0 as ch,b1 as dh,b2 as ph,b3 as fh,b4 as hh,b5 as mh,b6 as gh,b7 as yh,b8 as vh,b9 as bh}from"./IrisGridThemeProvider-BASQ6h4_.js";import{u as st}from"./useResizeObserver-De8SPJuc.js";import{m as Ph,u as xh}from"./useMergeRef-DhQ-tCu8.js";import"./helpers-BosuxZz1.js";var wh=["children","keepMounted"];function Tn(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function jn(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Tn(Object(n),!0).forEach(function(r){Sh(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Tn(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function Sh(t,e,n){return(e=Oh(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Oh(t){var e=Eh(t,"string");return typeof e=="symbol"?e:e+""}function Eh(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Ch(t,e){if(t==null)return{};var n,r,i=Th(t,e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(r=0;r<a.length;r++)n=a[r],e.indexOf(n)===-1&&{}.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function Th(t,e){if(t==null)return{};var n={};for(var r in t)if({}.hasOwnProperty.call(t,r)){if(e.indexOf(r)!==-1)continue;n[r]=t[r]}return n}function jh(t){var{children:e,keepMounted:n=!1}=t,r=Ch(t,wh),i=n&&typeof e!="function",a=c.useRef(new Map),o=c.useMemo(()=>{var s=[],d=new Map;return i?($.Children.forEach(e,f=>{if(!(f==null||f.key==null)){if(typeof f.props.children=="function")throw new Error("DHCTabPanels cannot use keepMounted with an ItemRenderer function as its children");var p=a.current.get(f.key);p==null&&(p=_o({attributes:{style:"display: contents"}})),d.set(f.key,p),s.push(u.jsx(Ro,{node:p,children:f.props.children},f.key))}}),a.current=d,s):(a.current=d,s)},[e,i]),l=c.useMemo(()=>{var s=[];return i&&$.Children.forEach(e,d=>{if(d==null||d.key==null){s.push(d);return}var f=a.current.get(d.key);if(f==null){s.push(d);return}s.push(u.jsx(ze,{children:u.jsx(Do,{node:f})},d.key))}),s},[e,i]);return u.jsxs(u.Fragment,{children:[i&&o,u.jsx(Lo,jn(jn({},r),{},{children:i?l:e}))]})}function In(t,e,n,r,i,a,o){try{var l=t[a](o),s=l.value}catch(d){return void n(d)}l.done?e(s):Promise.resolve(s).then(r,i)}function Ih(t){return function(){var e=this,n=arguments;return new Promise(function(r,i){var a=t.apply(e,n);function o(s){In(a,r,i,o,l,"next",s)}function l(s){In(a,r,i,o,l,"throw",s)}o(void 0)})}}var kh=[["api"],["client"],["dashboardData","*","connection"],["dashboardData","*","sessionWrapper"],["dashboardData","*","openedMap"],["layoutStorage"],["storage"]],Pa=10;function _h(t){var e=new Map;return function(r,i){var a,o=[...(a=e.get(this))!==null&&a!==void 0?a:[],r];if(i===Object(i)&&e.set(i,[...o]),o.shift(),!Rh(o,t))return i instanceof Map?Array.from(i.entries()):i}}function Rh(t,e){for(var n=function(o){if(t.length===e[o].length&&t.every((l,s)=>e[o][s]==="*"||l===e[o][s]))return{v:!0}},r,i=0;i<e.length;i+=1)if(r=n(i),r)return r.v;return!1}function Dh(t){var e,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Pa,i=Fo({maximumDepth:r});return(e=i(t,_h(n),2))!==null&&e!==void 0?e:""}function Lh(t){return JSON.stringify(t,null,2)}function Ah(t){var e=t.getFullYear(),n=String(t.getMonth()+1).padStart(2,"0"),r=String(t.getDate()).padStart(2,"0"),i=String(t.getHours()).padStart(2,"0"),a=String(t.getMinutes()).padStart(2,"0"),o=String(t.getSeconds()).padStart(2,"0");return"".concat(e,"-").concat(n,"-").concat(r,"-").concat(i).concat(a).concat(o)}function Fh(t,e,n){return jt.apply(this,arguments)}function jt(){return jt=Ih(function*(t,e,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:kh,i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:"".concat(Ah(new Date),"_support_logs"),a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:Pa,o=new Ao,l=o.folder(i);l.file("console.txt",t.getFormattedHistory()),e!=null&&l.file("metadata.json",Lh(e)),n!=null&&l.file("redux.json",Dh(n,r,a));var s=yield o.generateAsync({type:"blob"}),d=document.createElement("a");d.href=URL.createObjectURL(s),d.download="".concat(i,".zip"),d.click()}),jt.apply(this,arguments)}function Nh(t,e){return t===0?0:e==="all"||t===e.size?"all":e.size}function xa(t,e){return t===e?!0:t==="all"||e==="all"||t.size!==e.size?!1:[...t.keys()].every(n=>e.has(n))}function wa(t,e){return t.isInverted===e.isInverted&&xa(t.selection,e.selection)}function Sa(t,e,n){if(t==="all")return"all";var r=[...t.keys()];return new Set(r.map(i=>{var a=e(i);if(a===void 0)throw new Error("Could not find item with key ".concat(i));return n(a)}))}function Oa(t,e,n){var r=t==="all"||t.size>e/2,i=t;return r&&(i=t==="all"?new Set:new Set([...mu(0,e-1)].map(n).filter(a=>!t.has(a)))),{selection:i,isInverted:r}}function Mh(t,e){return c.useCallback(function(){var n=t(...arguments);return e(),n},[e,t])}function $h(t){return c.useCallback(e=>{t(e.target.value)},[t])}function dn(t,e){return c.useCallback(n=>{typeof t=="function"?t(e(n)):t.current=e(n)},[e,t])}function Ea(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:ai,[e,n]=c.useState(0),[r,i]=c.useState(0),[a,o]=c.useState(0),[l,s]=c.useState(0),d=c.useMemo(()=>new DOMRect(e,r,a,l),[l,a,e,r]),[f,p]=c.useState(null),h=dn(p,t),m=c.useCallback(y=>{var P,[v]=y,g=(P=v==null?void 0:v.contentRect)!==null&&P!==void 0?P:{x:0,y:0,width:0,height:0};n(g.x),i(g.y),o(g.width),s(g.height)},[]);return st(f,m),{ref:h,contentRect:d}}function Uh(t){var[e,n]=c.useState(!0);return c.useEffect(()=>{var r=setTimeout(()=>{n(!1)},t);return()=>{clearTimeout(r)}},[t]),e}function Bh(t){var[e,n]=c.useState(t);return c.useEffect(()=>{n(t)},[t]),[e,n]}function Wh(t,e,n,r){var i=c.useRef(0);c.useEffect(()=>{i.current>=n||r&&(i.current+=1,t())},[n,r,...e])}function Ca(t,e){var n=c.useRef(t),r=e(n.current,t)?n.current:t;return n.current=r,r}function Hh(t){t.preventDefault()}function Ta(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,e=c.useMemo(()=>"useSubmitButtonRef-".concat(Bt()),[]),n=c.useCallback(a=>{var o;a==null||(o=a.UNSAFE_getDOMNode())===null||o===void 0||o.setAttribute("form",e)},[e]),r=c.useMemo(()=>({id:e,onSubmit:t?void 0:Hh}),[e,t]),i=c.useMemo(()=>({form:e,ref:n}),[e,n]);return{formProps:r,submitButtonProps:i}}function ja(t,e,n){var{getItem:r,selectedKeys:i,items:a}=t;return c.useMemo(()=>{var{selection:o,isInverted:l}=Oa(i,a.length,n);return{selection:Sa(o,r,e),isInverted:l}},[i,a.length,n,r,e])}function Ia(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ai,n=c.useRef();return c.useEffect(()=>()=>{var r;return(r=n.current)===null||r===void 0?void 0:r.call(n)},[]),c.useCallback(r=>{var i;(i=n.current)===null||i===void 0||i.call(n);var a=e(r);a&&(a.addEventListener("scroll",t),n.current=()=>{a.removeEventListener("scroll",t),n.current=void 0})},[e,t])}function kn(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function _n(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?kn(Object(n),!0).forEach(function(r){Vh(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):kn(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function Vh(t,e,n){return(e=Gh(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Gh(t){var e=Yh(t,"string");return typeof e=="symbol"?e:e+""}function Yh(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Kh(t,e,n,r){var i=arguments.length===4;return c.useCallback(a=>{var o=i?a??r:a;n(_n(_n({},t),{},{[e]:o}))},[n,t,e,i,r])}function Ne(t,e){var[n,r]=c.useState(!0),[i,a]=c.useState(t),[o,l]=c.useState(t),[s,d]=c.useState(e);return(t!==o||e!==s)&&(r(!0),l(t),d(e)),c.useEffect(()=>{var f=!1,p=setTimeout(()=>{f||(r(!1),a(t))},e);return()=>{f=!0,clearTimeout(p)}},[t,e]),{isDebouncing:n,value:i}}function ka(t,e){return c.useCallback(n=>{if(n!=null){var r=e==null?[n]:n.querySelectorAll(e);r.forEach(i=>{Object.entries(t).forEach(a=>{var[o,l]=a;i.setAttribute(o,l)})})}},[t,e])}var _a={spellCheck:!1};function qh(t){var e=ka(_a,t);return dn(e,Ke)}const zh=Object.freeze(Object.defineProperty({__proto__:null,SPELLCHECK_FALSE_ATTRIBUTE:_a,createValidationProps:Tp,defaultGetKey:jp,extractSpectrumHTMLElement:Ke,extractSpectrumLastChildHTMLElement:Ip,findSpectrumComboBoxScrollArea:kp,findSpectrumPickerScrollArea:_p,findSpectrumPopoverScrollArea:Rp,getPositionOfSelectedItem:Dp,getSelectedItemCountOrAll:Nh,identityExtractHTMLElement:Lp,isElementOfType:oa,isSelectionEqual:xa,isSelectionMaybeInvertedEqual:wa,mapSelection:Sa,mergeRefs:Ph,optimizeSelection:Oa,useAsyncInterval:gu,useCallbackWithAction:Mh,useChangeEventValueCallback:$h,useCheckOverflow:Ap,useContentRect:Ea,useContextOrThrow:yu,useCopyToClipboard:vu,useDebouncedCallback:Ie,useDebouncedValue:Ne,useDelay:Uh,useDependentState:Bh,useEffectNTimesWhen:Wh,useFormWithDetachedSubmitButton:Ta,useForwardedRef:bu,useIsEqualMemo:Ca,useIsMountedRef:Pu,useMappedRef:dn,useMappedSelection:ja,useMergeRef:xh,useOnChange:Fp,useOnScrollOffsetChangeCallback:Np,useOnScrollRef:Ia,usePopoverOnScrollRef:Mp,usePrevious:xu,usePromiseFactory:Se,usePropChangeCallback:Kh,useResizeObserver:st,useSetAttributesCallback:ka,useSpectrumDisableSpellcheckRef:qh,useThrottledCallback:wu,useUndoRedo:$p,useWindowedListData:Up},Symbol.toStringTag,{value:"Module"}));var Xh=["aria-label","aria-labelledby","aria-describedby","aria-details","marginX","marginY","width","height","minWidth","minHeight","maxWidth","maxHeight","flex","flexGrow","flexShrink","flexBasis","justifySelf","alignSelf","order","gridArea","gridColumn","gridRow","gridColumnStart","gridColumnEnd","gridRowStart","gridRowEnd","position","zIndex","top","bottom","start","end","left","right","isHidden"];function Qh(t,e){if(t==null)return{};var n,r,i=Jh(t,e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(r=0;r<a.length;r++)n=a[r],e.indexOf(n)===-1&&{}.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function Jh(t,e){if(t==null)return{};var n={};for(var r in t)if({}.hasOwnProperty.call(t,r)){if(e.indexOf(r)!==-1)continue;n[r]=t[r]}return n}function Ra(t){var{"aria-label":e,"aria-labelledby":n,"aria-describedby":r,"aria-details":i,marginX:a,marginY:o,width:l,height:s,minWidth:d,minHeight:f,maxWidth:p,maxHeight:h,flex:m,flexGrow:y,flexShrink:P,flexBasis:v,justifySelf:g,alignSelf:x,order:S,gridArea:E,gridColumn:b,gridRow:O,gridColumnStart:_,gridColumnEnd:I,gridRowStart:R,gridRowEnd:F,position:W,zIndex:j,top:L,bottom:D,start:U,end:Q,left:Z,right:G,isHidden:k}=t,w=Qh(t,Xh);return{ariaLabelProps:{"aria-label":e,"aria-labelledby":n,"aria-describedby":r,"aria-details":i},styleProps:{marginX:a,marginY:o,width:l,height:s,minWidth:d,minHeight:f,maxWidth:p,maxHeight:h,flex:m,flexGrow:y,flexShrink:P,flexBasis:v,justifySelf:g,alignSelf:x,order:S,gridArea:E,gridColumn:b,gridRow:O,gridColumnStart:_,gridColumnEnd:I,gridRowStart:R,gridRowEnd:F,position:W,zIndex:j,top:L,bottom:D,start:U,end:Q,left:Z,right:G,isHidden:k},componentProps:w}}function Da(t){var{normalizedItems:e,defaultSelectedKeys:n,disabledKeys:r,selectedKeys:i,onChange:a}=t,o=c.useMemo(()=>Ge(i),[i]),l=c.useMemo(()=>Ge(n),[n]),s=c.useMemo(()=>Ge(r),[r]),d=c.useCallback(f=>{if(a!=null){if(f==="all"){a("all");return}var p=new Set;e.forEach(h=>{f.has(String(Ct(h)))&&p.add(Ct(h))}),a(p)}},[e,a]);return{selectedStringKeys:o,defaultSelectedStringKeys:l,disabledStringKeys:s,onStringSelectionChange:d}}function Zh(){var{selectedThemeKey:t,setSelectedThemeKey:e,themes:n}=tt(),r=c.useCallback(i=>{i!=null&&e("".concat(i))},[e]);return u.jsx(No,{label:"Pick a color scheme",items:n,selectedKey:t,onSelectionChange:r,children:i=>u.jsx(ze,{children:i.name},i.themeKey)})}function em(t){var{className:e,style:n}=t;return u.jsx("div",{className:N("dh-logo",e),style:n})}var Rn=B.module("useExternalTheme");function La(){var[t,e]=c.useState(()=>{var r=Vt();return{isEnabled:r,isPending:r}}),n=c.useCallback(r=>{var i=oi(r);e({isEnabled:!0,isPending:!1,themeData:i})},[]);return c.useEffect(()=>{if(!t.isEnabled)return;Rn.debug("Requesting external theme data");function r(i){var a=Gt();i.source!==window&&i.source!==a||i.data.message===li&&ui(i.data.payload)&&n(i.data.payload)}return window.addEventListener("message",r),si().then(n).catch(i=>{Rn.error(i),e({isEnabled:!0,isPending:!1})}),()=>{window.removeEventListener("message",r)}},[n,t.isEnabled]),t}var lt=c.createContext(!1);lt.displayName="FontsLoadedContext";function Aa(t){var{fontClassNames:e=["fira-sans-regular","fira-sans-semibold","fira-mono"],children:n}=t,[r,i]=c.useState(!1);return c.useEffect(function(){document.fonts.ready.then(()=>{i(!0)})},[]),u.jsxs(u.Fragment,{children:[u.jsx(lt.Provider,{value:r,children:n}),u.jsx("div",{id:"preload-fonts",style:{visibility:"hidden",position:"absolute",top:-1e4},children:e.map(a=>u.jsx("p",{className:a,children:"preload"},a))})]})}function Fa(t){var{children:e}=t,n=c.useContext(lt);return n?u.jsx(u.Fragment,{children:e}):u.jsx(me,{"data-testid":"fonts-loaded-loading"})}var tm=["UNSAFE_className"],nm=["forceRerenderKey","ref"];function Dn(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function Ln(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Dn(Object(n),!0).forEach(function(r){rm(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Dn(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function rm(t,e,n){return(e=im(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function im(t){var e=am(t,"string");return typeof e=="symbol"?e:e+""}function am(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function An(t,e){if(t==null)return{};var n,r,i=om(t,e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(r=0;r<a.length;r++)n=a[r],e.indexOf(n)===-1&&{}.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function om(t,e){if(t==null)return{};var n={};for(var r in t)if({}.hasOwnProperty.call(t,r)){if(e.indexOf(r)!==-1)continue;n[r]=t[r]}return n}function Na(t){var{UNSAFE_className:e}=t,n=An(t,tm),r=sa(n),{forceRerenderKey:i,ref:a}=r,o=An(r,nm);return c.createElement(Wt,Ln(Ln({},o),{},{key:i,ref:a,UNSAFE_className:N("dh-combobox","dh-combobox-normalized",e)}))}var sm=["onScroll"];function Fn(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function Me(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Fn(Object(n),!0).forEach(function(r){lm(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Fn(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function lm(t,e,n){return(e=um(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function um(t){var e=cm(t,"string");return typeof e=="symbol"?e:e+""}function cm(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function dm(t,e){if(t==null)return{};var n,r,i=pm(t,e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(r=0;r<a.length;r++)n=a[r],e.indexOf(n)===-1&&{}.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function pm(t,e){if(t==null)return{};var n={};for(var r in t)if({}.hasOwnProperty.call(t,r)){if(e.indexOf(r)!==-1)continue;n[r]=t[r]}return n}function pn(t){var e,n,{ariaLabelProps:r,componentProps:i,styleProps:a}=Ra(t),{onScroll:o=ne}=i,l=dm(i,sm),{scale:s}=an(),d=Ia(o,Ke),{ref:f,contentRect:p}=Ea(Ke);return u.jsx(Kr,Me(Me({direction:"column",ref:f},a),{},{minHeight:(e=a.minHeight)!==null&&e!==void 0?e:1,UNSAFE_className:N("dh-list-view-wrapper","dh-list-view-wrapper-density-".concat((n=l.density)!==null&&n!==void 0?n:"regular"),"dh-list-view-wrapper-scale-".concat(s),a.UNSAFE_className),children:p.height===0?null:u.jsx(Mo,Me(Me({ref:d},r),l))}))}var fm=["children","tooltip","selectedKeys","defaultSelectedKeys","disabledKeys","UNSAFE_className","onChange","onScroll","onSelectionChange"];function Nn(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function Mn(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Nn(Object(n),!0).forEach(function(r){hm(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Nn(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function hm(t,e,n){return(e=mm(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function mm(t){var e=gm(t,"string");return typeof e=="symbol"?e:e+""}function gm(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function ym(t,e){if(t==null)return{};var n,r,i=vm(t,e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(r=0;r<a.length;r++)n=a[r],e.indexOf(n)===-1&&{}.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function vm(t,e){if(t==null)return{};var n={};for(var r in t)if({}.hasOwnProperty.call(t,r)){if(e.indexOf(r)!==-1)continue;n[r]=t[r]}return n}function bm(t){var{children:e,tooltip:n=!0,selectedKeys:r,defaultSelectedKeys:i,disabledKeys:a,UNSAFE_className:o,onChange:l,onScroll:s=ne,onSelectionChange:d}=t,f=ym(t,fm),p=c.useMemo(()=>on(n,"bottom"),[n]),h=c.useMemo(()=>la(e,p),[e,p]);return u.jsx(pn,Mn(Mn({},f),{},{UNSAFE_className:N("dh-list-view",o),selectedKeys:r,defaultSelectedKeys:i,disabledKeys:a,onScroll:s,onSelectionChange:l??d,children:h}))}var Pm=["normalizedItems","tooltip","selectedKeys","defaultSelectedKeys","disabledKeys","showItemIcons","actions","UNSAFE_className","onChange","onSelectionChange"];function $n(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function Un(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?$n(Object(n),!0).forEach(function(r){xm(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):$n(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function xm(t,e,n){return(e=wm(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function wm(t){var e=Sm(t,"string");return typeof e=="symbol"?e:e+""}function Sm(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Om(t,e){if(t==null)return{};var n,r,i=Em(t,e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(r=0;r<a.length;r++)n=a[r],e.indexOf(n)===-1&&{}.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function Em(t,e){if(t==null)return{};var n={};for(var r in t)if({}.hasOwnProperty.call(t,r)){if(e.indexOf(r)!==-1)continue;n[r]=t[r]}return n}function Ma(t){var{normalizedItems:e,tooltip:n=!0,selectedKeys:r,defaultSelectedKeys:i,disabledKeys:a,showItemIcons:o,actions:l,UNSAFE_className:s,onChange:d,onSelectionChange:f}=t,p=Om(t,Pm),h=c.useMemo(()=>on(n,"bottom"),[n]),m=ua({itemIconSlot:"illustration",showItemDescriptions:!1,showItemIcons:o,tooltipOptions:h,actions:l}),y="".concat(o,"-").concat(h==null?void 0:h.placement),{selectedStringKeys:P,defaultSelectedStringKeys:v,disabledStringKeys:g,onStringSelectionChange:x}=Da({normalizedItems:e,selectedKeys:r,defaultSelectedKeys:i,disabledKeys:a,onChange:d??f});return c.createElement(pn,Un(Un({},p),{},{UNSAFE_className:N("dh-list-view-normalized",s),key:y,items:e,selectedKeys:P,defaultSelectedKeys:v,disabledKeys:g,onSelectionChange:x}),m)}var Cm=["backgroundColor","borderColor","borderStartColor","borderEndColor","borderTopColor","borderBottomColor","borderXColor","borderYColor","UNSAFE_style"];function Bn(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function $e(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Bn(Object(n),!0).forEach(function(r){Tm(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Bn(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function Tm(t,e,n){return(e=jm(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function jm(t){var e=Im(t,"string");return typeof e=="symbol"?e:e+""}function Im(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function km(t,e){if(t==null)return{};var n,r,i=_m(t,e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(r=0;r<a.length;r++)n=a[r],e.indexOf(n)===-1&&{}.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function _m(t,e){if(t==null)return{};var n={};for(var r in t)if({}.hasOwnProperty.call(t,r)){if(e.indexOf(r)!==-1)continue;n[r]=t[r]}return n}var $a=c.forwardRef((t,e)=>{var{backgroundColor:n,borderColor:r,borderStartColor:i,borderEndColor:a,borderTopColor:o,borderBottomColor:l,borderXColor:s,borderYColor:d,UNSAFE_style:f}=t,p=km(t,Cm),{direction:h}=$o(),m=c.useMemo(()=>{var y={};return r!==void 0&&(y.borderColor=J(r)),s!==void 0&&(y.borderLeftColor=J(s),y.borderRightColor=J(s)),d!==void 0&&(y.borderTopColor=J(d),y.borderBottomColor=J(d)),i!==void 0&&(y[h==="rtl"?"borderRightColor":"borderLeftColor"]=J(i)),a!==void 0&&(y[h==="rtl"?"borderLeftColor":"borderRightColor"]=J(a)),o!==void 0&&(y.borderTopColor=J(o)),l!==void 0&&(y.borderBottomColor=J(l)),$e($e({},f),{},{backgroundColor:J(n)},y)},[n,f,r,i,a,o,l,s,d,h]);return u.jsx(Uo,$e($e({},p),{},{ref:e,UNSAFE_style:m}))});$a.displayName="View";var Rm=["children"];function Wn(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function Hn(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Wn(Object(n),!0).forEach(function(r){Dm(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Wn(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function Dm(t,e,n){return(e=Lm(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Lm(t){var e=Am(t,"string");return typeof e=="symbol"?e:e+""}function Am(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Fm(t,e){if(t==null)return{};var n,r,i=Nm(t,e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(r=0;r<a.length;r++)n=a[r],e.indexOf(n)===-1&&{}.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function Nm(t,e){if(t==null)return{};var n={};for(var r in t)if({}.hasOwnProperty.call(t,r)){if(e.indexOf(r)!==-1)continue;n[r]=t[r]}return n}function Mm(t){var{children:e}=t,n=Fm(t,Rm),r=c.useMemo(()=>Su(e).map(i=>oa(i,yt)?i:u.jsx(yt,{value:String(i),children:String(i)},String(i))),[e]);return u.jsx(Bo,Hn(Hn({},n),{},{children:r}))}var $m=["ariaLabel","icon","isQuiet","labelText","children","onOpenChange","tooltip"];function Vn(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function Gn(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Vn(Object(n),!0).forEach(function(r){Um(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Vn(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function Um(t,e,n){return(e=Bm(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Bm(t){var e=Wm(t,"string");return typeof e=="symbol"?e:e+""}function Wm(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Hm(t,e){if(t==null)return{};var n,r,i=Vm(t,e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(r=0;r<a.length;r++)n=a[r],e.indexOf(n)===-1&&{}.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function Vm(t,e){if(t==null)return{};var n={};for(var r in t)if({}.hasOwnProperty.call(t,r)){if(e.indexOf(r)!==-1)continue;n[r]=t[r]}return n}function Ua(t){var{ariaLabel:e,icon:n,isQuiet:r,labelText:i,children:a,onOpenChange:o,tooltip:l}=t,s=Hm(t,$m),d=i==null&&l!=null?"action-button-icon-with-tooltip":void 0;return u.jsxs(qr,{type:"popover",onOpenChange:o,children:[u.jsxs(Xe,Gn(Gn({},s),{},{"aria-label":e??i,isQuiet:r,children:[u.jsx(Le,{UNSAFE_className:d,children:u.jsx(Y,{icon:n})}),i==null?null:u.jsx(nt,{children:i}),l==null?null:u.jsx(Fe,{children:l})]})),a]})}function Yn(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function Ue(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Yn(Object(n),!0).forEach(function(r){Gm(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Yn(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function Gm(t,e,n){return(e=Ym(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Ym(t){var e=Km(t,"string");return typeof e=="symbol"?e:e+""}function Km(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Ba(t){var{heading:e,confirmationButtonLabel:n,children:r,onCancel:i,onConfirm:a}=t,{formProps:o,submitButtonProps:l}=Ta();return u.jsxs(zr,{children:[u.jsx(Xt,{level:3,UNSAFE_className:sn.spectrumDialogComponentHeading,children:e}),u.jsx(Xr,{}),u.jsx(Ht,{children:u.jsx(Qr,Ue(Ue({},o),{},{children:r}))}),u.jsxs(Jr,{children:[u.jsx(vt,{variant:"secondary",onPress:i,children:"Cancel"}),u.jsx(vt,Ue(Ue({},l),{},{style:"fill",variant:"negative",onPress:a,type:"submit",children:n}))]})]})}function qm(t){var{ariaLabel:e,heading:n,confirmationButtonLabel:r,isHidden:i,children:a,tooltip:o,onConfirm:l}=t,s=c.useCallback(d=>u.jsx(Ba,{heading:n,confirmationButtonLabel:r,onCancel:d,onConfirm:()=>{d(),l()},children:a}),[a,r,n,l]);return u.jsx(Ua,{ariaLabel:e,icon:ci,isHidden:i,isQuiet:!0,height:ln,tooltip:o,children:s})}var zm=["icon","label","tooltip"];function Kn(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function qn(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Kn(Object(n),!0).forEach(function(r){Xm(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Kn(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function Xm(t,e,n){return(e=Qm(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Qm(t){var e=Jm(t,"string");return typeof e=="symbol"?e:e+""}function Jm(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Zm(t,e){if(t==null)return{};var n,r,i=eg(t,e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(r=0;r<a.length;r++)n=a[r],e.indexOf(n)===-1&&{}.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function eg(t,e){if(t==null)return{};var n={};for(var r in t)if({}.hasOwnProperty.call(t,r)){if(e.indexOf(r)!==-1)continue;n[r]=t[r]}return n}function Wa(t){var{icon:e,label:n,tooltip:r}=t,i=Zm(t,zm);return u.jsxs(Xe,qn(qn({},i),{},{"aria-label":n,isQuiet:!0,height:ln,children:[u.jsx(Le,{UNSAFE_className:r==null?void 0:"action-button-icon-with-tooltip",children:u.jsx(Y,{icon:e})}),r==null?null:u.jsx(Fe,{children:r})]}))}Wa.displayName="IconActionButton";function zn(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function tg(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?zn(Object(n),!0).forEach(function(r){ue(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):zn(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function ue(t,e,n){return(e=ng(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function ng(t){var e=rg(t,"string");return typeof e=="symbol"?e:e+""}function rg(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var ig=100,Ha=function(t){return t.UP="UP",t.DOWN="DOWN",t}(Ha||{});class te extends c.Component{constructor(e){super(e),ue(this,"popper",void 0),ue(this,"cbContainer",void 0),ue(this,"menuContainer",void 0),ue(this,"input",void 0),ue(this,"getCachedFilteredOptions",Wo((r,i)=>r.filter(a=>a.title.toLowerCase().indexOf(i.toLowerCase())>=0),{max:1e3}));var{popperOptions:n}=this.props;n=tg({placement:"bottom-end",modifiers:{preventOverflow:{enabled:!1}}},n),this.state={title:"",filteredOptions:[],keyboardOptionIndex:0,menuIsOpen:!1,inputWidth:100,invalid:!1,popperOptions:n},this.handleMenuKeyDown=this.handleMenuKeyDown.bind(this),this.handleMenuBlur=this.handleMenuBlur.bind(this),this.handleInputChange=this.handleInputChange.bind(this),this.handleInputKeyDown=this.handleInputKeyDown.bind(this),this.handleInputBlur=this.handleInputBlur.bind(this),this.handelInputFocus=this.handelInputFocus.bind(this),this.handleInputClick=this.handleInputClick.bind(this),this.updateInputValue=je(this.updateInputValue,ig),this.handleOptionClick=this.handleOptionClick.bind(this),this.handleMenuOpened=this.handleMenuOpened.bind(this),this.handleMenuExited=this.handleMenuExited.bind(this),this.popper=$.createRef(),this.cbContainer=$.createRef(),this.menuContainer=$.createRef(),this.input=$.createRef()}setInputWidth(){this.cbContainer.current&&this.setState({inputWidth:this.cbContainer.current.getBoundingClientRect().width})}getValueAndValidate(e){if(!e)return this.setState({invalid:!1}),{value:e,isValid:!1};var{options:n}=this.props,r=n.filter(i=>i.title.toLowerCase()===e.toLowerCase());return r.length<1?(this.setState({invalid:!0}),{value:e,isValid:!1}):(this.setState({invalid:!1}),{value:r[0].value,isValid:!0})}updateInputValue(e){var{menuIsOpen:n}=this.state,{value:r,isValid:i}=this.getValueAndValidate(e);n&&this.processFilterChange(e),this.fireOnChange(r,i)}fireOnChange(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,{onChange:r}=this.props;r(e,n)}processFilterChange(e){var n,{options:r}=this.props,{menuIsOpen:i}=this.state,a=e?this.getCachedFilteredOptions(r,e):r,o=a.length===1&&a[0].title===e;if(this.setState({filteredOptions:a,keyboardOptionIndex:0}),o&&i){this.closeMenu();return}(n=this.popper.current)===null||n===void 0||n.scheduleUpdate()}resetValue(){this.setState({title:""}),this.fireOnChange("")}handleResize(){this.setInputWidth()}handleMenuKeyDown(e){var n,{filteredOptions:r,keyboardOptionIndex:i}=this.state,a=r[i];switch(e.key){case"Enter":case"ArrowRight":e.stopPropagation(),e.preventDefault(),a!=null&&(this.setState({title:a.title,invalid:!1}),this.fireOnChange(a.value)),this.closeMenu(),(n=this.input.current)===null||n===void 0||n.focus();break;case"ArrowUp":e.stopPropagation(),e.preventDefault(),this.navigateMenu(te.MENU_NAVIGATION_DIRECTION.UP);break;case"ArrowDown":e.stopPropagation(),e.preventDefault(),this.navigateMenu(te.MENU_NAVIGATION_DIRECTION.DOWN);break;case"Tab":if(e.stopPropagation(),e.preventDefault(),e.shiftKey){this.navigateMenu(te.MENU_NAVIGATION_DIRECTION.UP);break}this.navigateMenu(te.MENU_NAVIGATION_DIRECTION.DOWN);break;case"Escape":e.preventDefault(),e.stopPropagation(),this.closeMenu();break}}navigateMenu(e){var{filteredOptions:n,keyboardOptionIndex:r}=this.state,i=r;e===te.MENU_NAVIGATION_DIRECTION.UP?r>0?(i=(i-1)%n.length,this.setState({keyboardOptionIndex:i})):r===0&&(i=n.length-1,this.setState({keyboardOptionIndex:i})):e===te.MENU_NAVIGATION_DIRECTION.DOWN&&r<n.length&&(i=(i+1)%n.length,this.setState({keyboardOptionIndex:i})),this.scrollOptionIntoView(i)}handleInputKeyDown(e){var{onEnter:n}=this.props,{menuIsOpen:r}=this.state;r?this.handleMenuKeyDown(e):e.key==="Enter"?n():e.key==="Escape"?(this.resetValue(),e.preventDefault(),e.stopPropagation()):e.key==="ArrowRight"||e.key==="ArrowLeft"||e.key==="Tab"||e.key==="Shift"||this.openMenu()}handleInputChange(e){this.setState({title:e.target.value}),this.updateInputValue(e.target.value)}handleOptionClick(e){var n;this.setState({title:e.title,invalid:!1}),this.fireOnChange(e.value),this.closeMenu(),(n=this.input.current)===null||n===void 0||n.focus()}handelInputFocus(){var{menuIsOpen:e}=this.state;e||this.openMenu()}handleInputClick(){var{menuIsOpen:e}=this.state;e||this.openMenu()}handleInputBlur(e){var{menuIsOpen:n}=this.state;n&&e.relatedTarget instanceof Element&&this.popper.current!==null&&this.popper.current.element.contains(e.relatedTarget)||this.closeMenu(!1)}handleMenuBlur(e){e.relatedTarget===this.input.current||e.relatedTarget instanceof Element&&this.popper.current!==null&&this.popper.current.element.contains(e.relatedTarget)||this.closeMenu(!1)}handleMenuOpened(){var e;(e=this.input.current)===null||e===void 0||e.focus()}handleMenuExited(){var{menuIsOpen:e}=this.state;e&&this.setState({menuIsOpen:!1,keyboardOptionIndex:0})}openMenu(){var{title:e}=this.state;this.processFilterChange(e),this.setInputWidth(),this.setState({menuIsOpen:!0}),window.requestAnimationFrame(()=>{var n;(n=this.popper.current)===null||n===void 0||n.show()})}closeMenu(){var e,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;if(this.setState({menuIsOpen:!1,keyboardOptionIndex:0}),n){var r;(r=this.input.current)===null||r===void 0||r.focus()}(e=this.popper.current)===null||e===void 0||e.hide()}scrollOptionIntoView(e){if(this.menuContainer.current){var n;(n=this.menuContainer.current.children.item(e))===null||n===void 0||n.scrollIntoView({behavior:"smooth",block:"nearest"})}}renderMenuElement(){var{inputWidth:e}=this.state;return u.jsx("div",{className:N("aci-options"),ref:this.menuContainer,role:"presentation",onKeyDown:this.handleMenuKeyDown,style:{width:e},onBlur:this.handleMenuBlur,children:this.renderOptions()})}renderOptions(){var{noMatchText:e}=this.props,{title:n,filteredOptions:r}=this.state;return n&&r.length===0?u.jsx("div",{className:"no-match",children:e}):r.map((i,a)=>this.renderOption(i,a))}renderOption(e,n){var{keyboardOptionIndex:r}=this.state,i="option-".concat(n,"-").concat(e.value);return u.jsx("button",{type:"button",className:N("aci-option-btn",{"keyboard-active":r===n}),onClick:()=>this.handleOptionClick(e),onFocus:()=>this.setState({keyboardOptionIndex:n}),children:e.title},i)}render(){var{options:e,inputPlaceholder:n,disabled:r,className:i,defaultTitle:a,spellCheck:o,"data-testid":l}=this.props,{title:s,menuIsOpen:d,popperOptions:f,invalid:p}=this.state;return u.jsxs("div",{className:"aci-container",ref:this.cbContainer,children:[u.jsx("input",{value:s||a,className:N("form-control",i,"aci-input",{"is-invalid":p&&!d}),ref:this.input,onChange:this.handleInputChange,placeholder:n||e[0].title,disabled:r,onFocus:this.handelInputFocus,onClick:this.handleInputClick,onBlur:this.handleInputBlur,onKeyDown:this.handleInputKeyDown,spellCheck:o,"data-testid":l}),u.jsx(rt,{ref:this.popper,options:f,className:N("aci-options-popper interactive"),onEntered:this.handleMenuOpened,onExited:this.handleMenuExited,children:this.renderMenuElement()})]})}}ue(te,"defaultProps",{onChange(){},inputPlaceholder:"",disabled:!1,className:"",defaultTitle:"",popperOptions:null,spellCheck:!0,onEnter(){},noMatchText:"No matching items found","data-testid":void 0});ue(te,"MENU_NAVIGATION_DIRECTION",Ha);function ag(t){var{className:e="",value:n,onChange:r,spellCheck:i=!1,placeholder:a="",disabled:o=!1,delimiter:l="",id:s="","data-testid":d}=t,[f,p]=c.useState(n),[h,m]=c.useState(!1),y=c.useRef(null);c.useEffect(function(){p(n)},[n]);function P(_){return _.trim().split(l).filter(I=>I).join(`
1
+ import{r as c,J as $,P as _o,D as u,Q as Ro,S as ze,T as Do,U as Lo,V as Ao,W as Fo,C as Bt,X as No,G as N,Y as Wt,Z as Kr,a0 as Mo,a1 as $o,a2 as Uo,a3 as yt,a4 as Bo,a5 as qr,a6 as Xe,a7 as Le,I as Y,a8 as zr,a9 as Xr,aa as Ht,ab as Qr,ac as Jr,ad as vt,ae as Wo,af as je,ag as Zr,H as ei,ah as ti,ai as Ho,aj as Vo,ak as Go,al as ni,am as Yo,an as Ko,ao as qo,ap as zo,aq as Xo,ar as Qo,as as Jo,at as Zo,au as es,av as ts,aw as ns,ax as rs,ay as is,az as as,aA as os,aB as ss,aC as ls,aD as us,aE as cs,aF as ds,aG as ps,aH as fs,aI as hs,aJ as ms,aK as ri,aL as gs,aM as ys,aN as vs,aO as bs,aP as Ps,aQ as xs,aR as ws,aS as Ss,aT as Os,aU as Es,aV as Cs,aW as Ts,aX as js,aY as Is,aZ as ks,a_ as _s,a$ as Rs,b0 as Ds,b1 as Ls,b2 as As,b3 as Fs,b4 as Ns,O as Ms,b5 as $s,b6 as Us,b7 as Bs,b8 as Ws,b9 as Hs,ba as Vs,L as Gs,N as Ys,bb as bt,bc as Ks,bd as qs,be as Pn,bf as zs,bg as Xs,bh as Qs,bi as Js,R as Zs,bj as el,bk as tl,bl as ii,bm as nl,bn as rl}from"./vendor-COicag8P.js";import{i as ai,b as Vt,p as oi,a as B,r as si,M as li,c as ui,g as Gt,L as me,v as ci,d as Yt,e as Kt,f as Qe,h as il,j as al,k as ol,l as sl,m as ll,n as di,o as ul,q as cl,s as dl,t as pi,u as Je,w as pl,T as Pt,C as fl,D as hl,x as ml,y as gl,z as yl,A as vl,B as bl,E as Pl,F as xl,G as fi,N as wl,P as Sl,S as Ol,H as El,I as Cl,J as Tl,K as jl,W as Il,O as kl,Q as _l,R as Rl,U as Dl,V as Ll,X as Al,Y as Fl,Z as Nl,_ as Ml,$ as $l,a0 as Ul,a1 as Bl,a2 as Wl,a3 as Hl,a4 as Vl,a5 as Gl,a6 as Yl,a7 as Kl,a8 as ql,a9 as zl,aa as Xl,ab as Ql,ac as qt,ad as Jl,ae as Ze,af as zt,ag as Zl,ah as hi,ai as eu,aj as tu,ak as nu,al as ru,am as iu,an as au}from"./index-DyTRgJVI.js";import{C as mi,e as ou,a as Ae,F as su,f as lu,D as xn,g as uu,h as cu,d as du,U as et,i as gi,j as yi,k as pu,c as fu,S as hu}from"./LocalWorkspaceStorage-DCry6bwG.js";import{A as Qb,o as Jb,p as Zb,G as e0,L as t0,l as n0,s as r0,r as i0,n as a0,m as o0,q as s0,u as l0,b as u0}from"./LocalWorkspaceStorage-DCry6bwG.js";import{k as mu,l as gu,m as yu,n as vu,o as Ie,p as bu,q as Pu,t as xu,v as wu,w as tt,x as ne,y as J,z as Su,T as nt,A as Fe,H as Xt,P as rt,C as le,B as he,D as vi,F as Ve,G as bi,r as pe,M as H,K as q,R as wn,I as xt,J as V,L as Pi,N as wt,O as it,E as xi,Q as Qt,U as at,V as wi,W as Ou,X as Eu,c as Cu,Y as Tu,Z as Si,_ as Oi,S as ju,$ as Iu,a0 as ku,a1 as Ei,a2 as _u,a3 as Ru,a4 as Du,a5 as Ci,a6 as Lu,a7 as Au,a8 as Fu,a9 as Nu,aa as Ti,ab as Mu,u as ge,ac as ji,g as $u,ad as Uu,ae as Bu,af as Wu,ag as Ii,ah as Hu,ai as Vu,aj as Gu,ak as Yu,al as Ku,am as qu,an as ki,ao as Jt,ap as _i,aq as Ri,ar as Di,as as Li,s as Ai,at as Sn,au as zu,av as Xu,aw as Qu,ax as Ju,ay as Zu,az as ec,aA as tc,aB as nc,aC as rc,aD as ic,aE as ac,aF as oc,aG as sc,aH as lc,aI as Fi,aJ as uc,aK as cc,aL as dc,aM as pc,aN as fc,aO as hc,aP as mc,aQ as gc,aR as yc,e as vc,b as bc,aS as Pc,aT as xc,aU as wc,aV as Sc,aW as Oc,aX as Ec,aY as Cc,aZ as Tc,a_ as jc,a$ as Ic,b0 as kc,b1 as _c,b2 as Rc,b3 as Dc,b4 as Lc,b5 as Ac,b6 as Ni,b7 as Fc,b8 as Nc,a as Mc,b9 as $c,ba as Uc,bb as Bc,bc as Wc,bd as Hc,be as Vc,bf as Gc,bg as Yc,bh as Mi,bi as $i,bj as ot,bk as Kc,bl as Ui,bm as qc,bn as zc,bo as St,bp as Xc,bq as Bi,br as Qc,bs as Ot,bt as Jc,bu as Zc,bv as ed,bw as ke,bx as Wi,by as Hi,bz as td,bA as Vi,bB as nd,bC as rd,bD as Gi,bE as Yi,bF as Ki,bG as On,bH as id,bI as ad,bJ as od,bK as sd,bL as ld,bM as ud,bN as cd,bO as dd,bP as pd,bQ as fd,bR as hd,bS as md,bT as gd,bU as yd,bV as vd,bW as bd,bX as Pd,bY as xd,bZ as wd,b_ as Sd,b$ as fe,c0 as Od,c1 as Ed}from"./LogPanel-DtxZygrY.js";import{F as Zt,C as Cd,S as Td,u as en,D as jd,B as Id,a as kd,b as _d,c as Rd,d as tn,e as Et,I as Dd,f as Ld,T as Ad,g as Fd,h as nn,i as Nd,j as qi,k as zi,l as Md,m as Xi,n as rn,o as Qi,p as Ji,q as $d,r as Ud,s as Bd,t as Wd,v as Hd,w as Vd,x as Gd,y as Yd,z as Kd,A as Zi,E as qd,G as zd,H as Xd,J as ea,K as ta,L as na,M as Qd,N as Jd,O as Zd,P as ep,Q as tp,R as ra,U as np,V as rp,W as ia,X as ip,Y as En,Z as ap,_ as op,$ as sp,a0 as lp,a1 as up,a2 as cp,a3 as dp,a4 as pp,a5 as fp,a6 as hp,a7 as mp,a8 as gp,a9 as yp,aa as vp,ab as bp,ac as Pp,ad as xp,ae as wp,af as Sp,ag as Op,ah as Ep,ai as aa}from"./index-bNPEJZLd.js";import{D as Cp}from"./DownsamplingError--AAvWHv_.js";import{e as Ke,c as Tp,d as jp,a as Ip,f as kp,b as _p,g as Rp,h as Dp,i as Lp,j as oa,u as Ap,k as Fp,l as Np,m as Mp,n as Se,o as $p,p as Up,q as Ge,r as Ct,s as sa,t as an,v as on,w as la,x as ua,y as sn,A as ln,M as un,D as ca,z as Bp,B as Tt,C as Wp,E as Hp,F as Vp,G as Gp,H as Yp,I as Kp,J as qp,K as zp,L as da,N as Xp,O as Qp,P as Jp,Q as Zp,R as pa,S as ef,T as tf,U as nf,V as rf,W as af,X as of,Y as fa,Z as sf,_ as lf,$ as uf,a0 as cf,a1 as df,a2 as pf,a3 as ff,a4 as hf,a5 as mf,a6 as gf,a7 as yf,a8 as vf,a9 as bf,aa as Pf,ab as ha,ac as xf,ad as wf,ae as Sf,af as Of,ag as Ef,ah as Cf,ai as Ye,aj as Tf,ak as ma,al as jf,am as cn,an as de,ao as Cn,ap as ga,aq as If,ar as kf,as as ya,at as va,au as _f,av as Rf,aw as Df,ax as Lf,ay as Af,az as Ff,aA as Nf,aB as Mf,aC as $f,aD as Uf,aE as Bf,aF as Wf,aG as Hf,aH as Vf,aI as Gf,aJ as Yf,aK as Kf,aL as qf,aM as zf,aN as Xf,aO as Qf,aP as Jf,aQ as Zf,aR as eh,aS as th,aT as nh,aU as rh,aV as ih,aW as ah,aX as oh,aY as sh,aZ as ba,a_ as lh,a$ as uh,b0 as ch,b1 as dh,b2 as ph,b3 as fh,b4 as hh,b5 as mh,b6 as gh,b7 as yh,b8 as vh,b9 as bh}from"./IrisGridThemeProvider-D1WMJ-f-.js";import{u as st}from"./useResizeObserver-De8SPJuc.js";import{m as Ph,u as xh}from"./useMergeRef-DhQ-tCu8.js";import"./helpers-BosuxZz1.js";var wh=["children","keepMounted"];function Tn(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function jn(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Tn(Object(n),!0).forEach(function(r){Sh(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Tn(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function Sh(t,e,n){return(e=Oh(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Oh(t){var e=Eh(t,"string");return typeof e=="symbol"?e:e+""}function Eh(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Ch(t,e){if(t==null)return{};var n,r,i=Th(t,e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(r=0;r<a.length;r++)n=a[r],e.indexOf(n)===-1&&{}.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function Th(t,e){if(t==null)return{};var n={};for(var r in t)if({}.hasOwnProperty.call(t,r)){if(e.indexOf(r)!==-1)continue;n[r]=t[r]}return n}function jh(t){var{children:e,keepMounted:n=!1}=t,r=Ch(t,wh),i=n&&typeof e!="function",a=c.useRef(new Map),o=c.useMemo(()=>{var s=[],d=new Map;return i?($.Children.forEach(e,f=>{if(!(f==null||f.key==null)){if(typeof f.props.children=="function")throw new Error("DHCTabPanels cannot use keepMounted with an ItemRenderer function as its children");var p=a.current.get(f.key);p==null&&(p=_o({attributes:{style:"display: contents"}})),d.set(f.key,p),s.push(u.jsx(Ro,{node:p,children:f.props.children},f.key))}}),a.current=d,s):(a.current=d,s)},[e,i]),l=c.useMemo(()=>{var s=[];return i&&$.Children.forEach(e,d=>{if(d==null||d.key==null){s.push(d);return}var f=a.current.get(d.key);if(f==null){s.push(d);return}s.push(u.jsx(ze,{children:u.jsx(Do,{node:f})},d.key))}),s},[e,i]);return u.jsxs(u.Fragment,{children:[i&&o,u.jsx(Lo,jn(jn({},r),{},{children:i?l:e}))]})}function In(t,e,n,r,i,a,o){try{var l=t[a](o),s=l.value}catch(d){return void n(d)}l.done?e(s):Promise.resolve(s).then(r,i)}function Ih(t){return function(){var e=this,n=arguments;return new Promise(function(r,i){var a=t.apply(e,n);function o(s){In(a,r,i,o,l,"next",s)}function l(s){In(a,r,i,o,l,"throw",s)}o(void 0)})}}var kh=[["api"],["client"],["dashboardData","*","connection"],["dashboardData","*","sessionWrapper"],["dashboardData","*","openedMap"],["layoutStorage"],["storage"]],Pa=10;function _h(t){var e=new Map;return function(r,i){var a,o=[...(a=e.get(this))!==null&&a!==void 0?a:[],r];if(i===Object(i)&&e.set(i,[...o]),o.shift(),!Rh(o,t))return i instanceof Map?Array.from(i.entries()):i}}function Rh(t,e){for(var n=function(o){if(t.length===e[o].length&&t.every((l,s)=>e[o][s]==="*"||l===e[o][s]))return{v:!0}},r,i=0;i<e.length;i+=1)if(r=n(i),r)return r.v;return!1}function Dh(t){var e,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Pa,i=Fo({maximumDepth:r});return(e=i(t,_h(n),2))!==null&&e!==void 0?e:""}function Lh(t){return JSON.stringify(t,null,2)}function Ah(t){var e=t.getFullYear(),n=String(t.getMonth()+1).padStart(2,"0"),r=String(t.getDate()).padStart(2,"0"),i=String(t.getHours()).padStart(2,"0"),a=String(t.getMinutes()).padStart(2,"0"),o=String(t.getSeconds()).padStart(2,"0");return"".concat(e,"-").concat(n,"-").concat(r,"-").concat(i).concat(a).concat(o)}function Fh(t,e,n){return jt.apply(this,arguments)}function jt(){return jt=Ih(function*(t,e,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:kh,i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:"".concat(Ah(new Date),"_support_logs"),a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:Pa,o=new Ao,l=o.folder(i);l.file("console.txt",t.getFormattedHistory()),e!=null&&l.file("metadata.json",Lh(e)),n!=null&&l.file("redux.json",Dh(n,r,a));var s=yield o.generateAsync({type:"blob"}),d=document.createElement("a");d.href=URL.createObjectURL(s),d.download="".concat(i,".zip"),d.click()}),jt.apply(this,arguments)}function Nh(t,e){return t===0?0:e==="all"||t===e.size?"all":e.size}function xa(t,e){return t===e?!0:t==="all"||e==="all"||t.size!==e.size?!1:[...t.keys()].every(n=>e.has(n))}function wa(t,e){return t.isInverted===e.isInverted&&xa(t.selection,e.selection)}function Sa(t,e,n){if(t==="all")return"all";var r=[...t.keys()];return new Set(r.map(i=>{var a=e(i);if(a===void 0)throw new Error("Could not find item with key ".concat(i));return n(a)}))}function Oa(t,e,n){var r=t==="all"||t.size>e/2,i=t;return r&&(i=t==="all"?new Set:new Set([...mu(0,e-1)].map(n).filter(a=>!t.has(a)))),{selection:i,isInverted:r}}function Mh(t,e){return c.useCallback(function(){var n=t(...arguments);return e(),n},[e,t])}function $h(t){return c.useCallback(e=>{t(e.target.value)},[t])}function dn(t,e){return c.useCallback(n=>{typeof t=="function"?t(e(n)):t.current=e(n)},[e,t])}function Ea(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:ai,[e,n]=c.useState(0),[r,i]=c.useState(0),[a,o]=c.useState(0),[l,s]=c.useState(0),d=c.useMemo(()=>new DOMRect(e,r,a,l),[l,a,e,r]),[f,p]=c.useState(null),h=dn(p,t),m=c.useCallback(y=>{var P,[v]=y,g=(P=v==null?void 0:v.contentRect)!==null&&P!==void 0?P:{x:0,y:0,width:0,height:0};n(g.x),i(g.y),o(g.width),s(g.height)},[]);return st(f,m),{ref:h,contentRect:d}}function Uh(t){var[e,n]=c.useState(!0);return c.useEffect(()=>{var r=setTimeout(()=>{n(!1)},t);return()=>{clearTimeout(r)}},[t]),e}function Bh(t){var[e,n]=c.useState(t);return c.useEffect(()=>{n(t)},[t]),[e,n]}function Wh(t,e,n,r){var i=c.useRef(0);c.useEffect(()=>{i.current>=n||r&&(i.current+=1,t())},[n,r,...e])}function Ca(t,e){var n=c.useRef(t),r=e(n.current,t)?n.current:t;return n.current=r,r}function Hh(t){t.preventDefault()}function Ta(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,e=c.useMemo(()=>"useSubmitButtonRef-".concat(Bt()),[]),n=c.useCallback(a=>{var o;a==null||(o=a.UNSAFE_getDOMNode())===null||o===void 0||o.setAttribute("form",e)},[e]),r=c.useMemo(()=>({id:e,onSubmit:t?void 0:Hh}),[e,t]),i=c.useMemo(()=>({form:e,ref:n}),[e,n]);return{formProps:r,submitButtonProps:i}}function ja(t,e,n){var{getItem:r,selectedKeys:i,items:a}=t;return c.useMemo(()=>{var{selection:o,isInverted:l}=Oa(i,a.length,n);return{selection:Sa(o,r,e),isInverted:l}},[i,a.length,n,r,e])}function Ia(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ai,n=c.useRef();return c.useEffect(()=>()=>{var r;return(r=n.current)===null||r===void 0?void 0:r.call(n)},[]),c.useCallback(r=>{var i;(i=n.current)===null||i===void 0||i.call(n);var a=e(r);a&&(a.addEventListener("scroll",t),n.current=()=>{a.removeEventListener("scroll",t),n.current=void 0})},[e,t])}function kn(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function _n(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?kn(Object(n),!0).forEach(function(r){Vh(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):kn(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function Vh(t,e,n){return(e=Gh(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Gh(t){var e=Yh(t,"string");return typeof e=="symbol"?e:e+""}function Yh(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Kh(t,e,n,r){var i=arguments.length===4;return c.useCallback(a=>{var o=i?a??r:a;n(_n(_n({},t),{},{[e]:o}))},[n,t,e,i,r])}function Ne(t,e){var[n,r]=c.useState(!0),[i,a]=c.useState(t),[o,l]=c.useState(t),[s,d]=c.useState(e);return(t!==o||e!==s)&&(r(!0),l(t),d(e)),c.useEffect(()=>{var f=!1,p=setTimeout(()=>{f||(r(!1),a(t))},e);return()=>{f=!0,clearTimeout(p)}},[t,e]),{isDebouncing:n,value:i}}function ka(t,e){return c.useCallback(n=>{if(n!=null){var r=e==null?[n]:n.querySelectorAll(e);r.forEach(i=>{Object.entries(t).forEach(a=>{var[o,l]=a;i.setAttribute(o,l)})})}},[t,e])}var _a={spellCheck:!1};function qh(t){var e=ka(_a,t);return dn(e,Ke)}function zh(t,e,n){var r=c.useMemo(()=>typeof t=="string"?[t]:t,[t]);c.useEffect(()=>(r.forEach(i=>window.addEventListener(i,e,n)),()=>r.forEach(i=>window.removeEventListener(i,e,n))),[r,e,n])}const Xh=Object.freeze(Object.defineProperty({__proto__:null,SPELLCHECK_FALSE_ATTRIBUTE:_a,createValidationProps:Tp,defaultGetKey:jp,extractSpectrumHTMLElement:Ke,extractSpectrumLastChildHTMLElement:Ip,findSpectrumComboBoxScrollArea:kp,findSpectrumPickerScrollArea:_p,findSpectrumPopoverScrollArea:Rp,getPositionOfSelectedItem:Dp,getSelectedItemCountOrAll:Nh,identityExtractHTMLElement:Lp,isElementOfType:oa,isSelectionEqual:xa,isSelectionMaybeInvertedEqual:wa,mapSelection:Sa,mergeRefs:Ph,optimizeSelection:Oa,useAsyncInterval:gu,useCallbackWithAction:Mh,useChangeEventValueCallback:$h,useCheckOverflow:Ap,useContentRect:Ea,useContextOrThrow:yu,useCopyToClipboard:vu,useDebouncedCallback:Ie,useDebouncedValue:Ne,useDelay:Uh,useDependentState:Bh,useEffectNTimesWhen:Wh,useFormWithDetachedSubmitButton:Ta,useForwardedRef:bu,useIsEqualMemo:Ca,useIsMountedRef:Pu,useMappedRef:dn,useMappedSelection:ja,useMergeRef:xh,useOnChange:Fp,useOnScrollOffsetChangeCallback:Np,useOnScrollRef:Ia,usePopoverOnScrollRef:Mp,usePrevious:xu,usePromiseFactory:Se,usePropChangeCallback:Kh,useResizeObserver:st,useSetAttributesCallback:ka,useSpectrumDisableSpellcheckRef:qh,useThrottledCallback:wu,useUndoRedo:$p,useWindowListener:zh,useWindowedListData:Up},Symbol.toStringTag,{value:"Module"}));var Qh=["aria-label","aria-labelledby","aria-describedby","aria-details","marginX","marginY","width","height","minWidth","minHeight","maxWidth","maxHeight","flex","flexGrow","flexShrink","flexBasis","justifySelf","alignSelf","order","gridArea","gridColumn","gridRow","gridColumnStart","gridColumnEnd","gridRowStart","gridRowEnd","position","zIndex","top","bottom","start","end","left","right","isHidden"];function Jh(t,e){if(t==null)return{};var n,r,i=Zh(t,e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(r=0;r<a.length;r++)n=a[r],e.indexOf(n)===-1&&{}.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function Zh(t,e){if(t==null)return{};var n={};for(var r in t)if({}.hasOwnProperty.call(t,r)){if(e.indexOf(r)!==-1)continue;n[r]=t[r]}return n}function Ra(t){var{"aria-label":e,"aria-labelledby":n,"aria-describedby":r,"aria-details":i,marginX:a,marginY:o,width:l,height:s,minWidth:d,minHeight:f,maxWidth:p,maxHeight:h,flex:m,flexGrow:y,flexShrink:P,flexBasis:v,justifySelf:g,alignSelf:x,order:S,gridArea:E,gridColumn:b,gridRow:O,gridColumnStart:_,gridColumnEnd:I,gridRowStart:R,gridRowEnd:F,position:W,zIndex:j,top:L,bottom:D,start:U,end:Q,left:Z,right:G,isHidden:k}=t,w=Jh(t,Qh);return{ariaLabelProps:{"aria-label":e,"aria-labelledby":n,"aria-describedby":r,"aria-details":i},styleProps:{marginX:a,marginY:o,width:l,height:s,minWidth:d,minHeight:f,maxWidth:p,maxHeight:h,flex:m,flexGrow:y,flexShrink:P,flexBasis:v,justifySelf:g,alignSelf:x,order:S,gridArea:E,gridColumn:b,gridRow:O,gridColumnStart:_,gridColumnEnd:I,gridRowStart:R,gridRowEnd:F,position:W,zIndex:j,top:L,bottom:D,start:U,end:Q,left:Z,right:G,isHidden:k},componentProps:w}}function Da(t){var{normalizedItems:e,defaultSelectedKeys:n,disabledKeys:r,selectedKeys:i,onChange:a}=t,o=c.useMemo(()=>Ge(i),[i]),l=c.useMemo(()=>Ge(n),[n]),s=c.useMemo(()=>Ge(r),[r]),d=c.useCallback(f=>{if(a!=null){if(f==="all"){a("all");return}var p=new Set;e.forEach(h=>{f.has(String(Ct(h)))&&p.add(Ct(h))}),a(p)}},[e,a]);return{selectedStringKeys:o,defaultSelectedStringKeys:l,disabledStringKeys:s,onStringSelectionChange:d}}function em(){var{selectedThemeKey:t,setSelectedThemeKey:e,themes:n}=tt(),r=c.useCallback(i=>{i!=null&&e("".concat(i))},[e]);return u.jsx(No,{label:"Pick a color scheme",items:n,selectedKey:t,onSelectionChange:r,children:i=>u.jsx(ze,{children:i.name},i.themeKey)})}function tm(t){var{className:e,style:n}=t;return u.jsx("div",{className:N("dh-logo",e),style:n})}var Rn=B.module("useExternalTheme");function La(){var[t,e]=c.useState(()=>{var r=Vt();return{isEnabled:r,isPending:r}}),n=c.useCallback(r=>{var i=oi(r);e({isEnabled:!0,isPending:!1,themeData:i})},[]);return c.useEffect(()=>{if(!t.isEnabled)return;Rn.debug("Requesting external theme data");function r(i){var a=Gt();i.source!==window&&i.source!==a||i.data.message===li&&ui(i.data.payload)&&n(i.data.payload)}return window.addEventListener("message",r),si().then(n).catch(i=>{Rn.error(i),e({isEnabled:!0,isPending:!1})}),()=>{window.removeEventListener("message",r)}},[n,t.isEnabled]),t}var lt=c.createContext(!1);lt.displayName="FontsLoadedContext";function Aa(t){var{fontClassNames:e=["fira-sans-regular","fira-sans-semibold","fira-mono"],children:n}=t,[r,i]=c.useState(!1);return c.useEffect(function(){document.fonts.ready.then(()=>{i(!0)})},[]),u.jsxs(u.Fragment,{children:[u.jsx(lt.Provider,{value:r,children:n}),u.jsx("div",{id:"preload-fonts",style:{visibility:"hidden",position:"absolute",top:-1e4},children:e.map(a=>u.jsx("p",{className:a,children:"preload"},a))})]})}function Fa(t){var{children:e}=t,n=c.useContext(lt);return n?u.jsx(u.Fragment,{children:e}):u.jsx(me,{"data-testid":"fonts-loaded-loading"})}var nm=["UNSAFE_className"],rm=["forceRerenderKey","ref"];function Dn(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function Ln(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Dn(Object(n),!0).forEach(function(r){im(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Dn(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function im(t,e,n){return(e=am(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function am(t){var e=om(t,"string");return typeof e=="symbol"?e:e+""}function om(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function An(t,e){if(t==null)return{};var n,r,i=sm(t,e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(r=0;r<a.length;r++)n=a[r],e.indexOf(n)===-1&&{}.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function sm(t,e){if(t==null)return{};var n={};for(var r in t)if({}.hasOwnProperty.call(t,r)){if(e.indexOf(r)!==-1)continue;n[r]=t[r]}return n}function Na(t){var{UNSAFE_className:e}=t,n=An(t,nm),r=sa(n),{forceRerenderKey:i,ref:a}=r,o=An(r,rm);return c.createElement(Wt,Ln(Ln({},o),{},{key:i,ref:a,UNSAFE_className:N("dh-combobox","dh-combobox-normalized",e)}))}var lm=["onScroll"];function Fn(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function Me(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Fn(Object(n),!0).forEach(function(r){um(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Fn(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function um(t,e,n){return(e=cm(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function cm(t){var e=dm(t,"string");return typeof e=="symbol"?e:e+""}function dm(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function pm(t,e){if(t==null)return{};var n,r,i=fm(t,e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(r=0;r<a.length;r++)n=a[r],e.indexOf(n)===-1&&{}.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function fm(t,e){if(t==null)return{};var n={};for(var r in t)if({}.hasOwnProperty.call(t,r)){if(e.indexOf(r)!==-1)continue;n[r]=t[r]}return n}function pn(t){var e,n,{ariaLabelProps:r,componentProps:i,styleProps:a}=Ra(t),{onScroll:o=ne}=i,l=pm(i,lm),{scale:s}=an(),d=Ia(o,Ke),{ref:f,contentRect:p}=Ea(Ke);return u.jsx(Kr,Me(Me({direction:"column",ref:f},a),{},{minHeight:(e=a.minHeight)!==null&&e!==void 0?e:1,UNSAFE_className:N("dh-list-view-wrapper","dh-list-view-wrapper-density-".concat((n=l.density)!==null&&n!==void 0?n:"regular"),"dh-list-view-wrapper-scale-".concat(s),a.UNSAFE_className),children:p.height===0?null:u.jsx(Mo,Me(Me({ref:d},r),l))}))}var hm=["children","tooltip","selectedKeys","defaultSelectedKeys","disabledKeys","UNSAFE_className","onChange","onScroll","onSelectionChange"];function Nn(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function Mn(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Nn(Object(n),!0).forEach(function(r){mm(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Nn(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function mm(t,e,n){return(e=gm(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function gm(t){var e=ym(t,"string");return typeof e=="symbol"?e:e+""}function ym(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function vm(t,e){if(t==null)return{};var n,r,i=bm(t,e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(r=0;r<a.length;r++)n=a[r],e.indexOf(n)===-1&&{}.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function bm(t,e){if(t==null)return{};var n={};for(var r in t)if({}.hasOwnProperty.call(t,r)){if(e.indexOf(r)!==-1)continue;n[r]=t[r]}return n}function Pm(t){var{children:e,tooltip:n=!0,selectedKeys:r,defaultSelectedKeys:i,disabledKeys:a,UNSAFE_className:o,onChange:l,onScroll:s=ne,onSelectionChange:d}=t,f=vm(t,hm),p=c.useMemo(()=>on(n,"bottom"),[n]),h=c.useMemo(()=>la(e,p),[e,p]);return u.jsx(pn,Mn(Mn({},f),{},{UNSAFE_className:N("dh-list-view",o),selectedKeys:r,defaultSelectedKeys:i,disabledKeys:a,onScroll:s,onSelectionChange:l??d,children:h}))}var xm=["normalizedItems","tooltip","selectedKeys","defaultSelectedKeys","disabledKeys","showItemIcons","actions","UNSAFE_className","onChange","onSelectionChange"];function $n(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function Un(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?$n(Object(n),!0).forEach(function(r){wm(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):$n(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function wm(t,e,n){return(e=Sm(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Sm(t){var e=Om(t,"string");return typeof e=="symbol"?e:e+""}function Om(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Em(t,e){if(t==null)return{};var n,r,i=Cm(t,e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(r=0;r<a.length;r++)n=a[r],e.indexOf(n)===-1&&{}.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function Cm(t,e){if(t==null)return{};var n={};for(var r in t)if({}.hasOwnProperty.call(t,r)){if(e.indexOf(r)!==-1)continue;n[r]=t[r]}return n}function Ma(t){var{normalizedItems:e,tooltip:n=!0,selectedKeys:r,defaultSelectedKeys:i,disabledKeys:a,showItemIcons:o,actions:l,UNSAFE_className:s,onChange:d,onSelectionChange:f}=t,p=Em(t,xm),h=c.useMemo(()=>on(n,"bottom"),[n]),m=ua({itemIconSlot:"illustration",showItemDescriptions:!1,showItemIcons:o,tooltipOptions:h,actions:l}),y="".concat(o,"-").concat(h==null?void 0:h.placement),{selectedStringKeys:P,defaultSelectedStringKeys:v,disabledStringKeys:g,onStringSelectionChange:x}=Da({normalizedItems:e,selectedKeys:r,defaultSelectedKeys:i,disabledKeys:a,onChange:d??f});return c.createElement(pn,Un(Un({},p),{},{UNSAFE_className:N("dh-list-view-normalized",s),key:y,items:e,selectedKeys:P,defaultSelectedKeys:v,disabledKeys:g,onSelectionChange:x}),m)}var Tm=["backgroundColor","borderColor","borderStartColor","borderEndColor","borderTopColor","borderBottomColor","borderXColor","borderYColor","UNSAFE_style"];function Bn(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function $e(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Bn(Object(n),!0).forEach(function(r){jm(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Bn(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function jm(t,e,n){return(e=Im(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Im(t){var e=km(t,"string");return typeof e=="symbol"?e:e+""}function km(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function _m(t,e){if(t==null)return{};var n,r,i=Rm(t,e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(r=0;r<a.length;r++)n=a[r],e.indexOf(n)===-1&&{}.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function Rm(t,e){if(t==null)return{};var n={};for(var r in t)if({}.hasOwnProperty.call(t,r)){if(e.indexOf(r)!==-1)continue;n[r]=t[r]}return n}var $a=c.forwardRef((t,e)=>{var{backgroundColor:n,borderColor:r,borderStartColor:i,borderEndColor:a,borderTopColor:o,borderBottomColor:l,borderXColor:s,borderYColor:d,UNSAFE_style:f}=t,p=_m(t,Tm),{direction:h}=$o(),m=c.useMemo(()=>{var y={};return r!==void 0&&(y.borderColor=J(r)),s!==void 0&&(y.borderLeftColor=J(s),y.borderRightColor=J(s)),d!==void 0&&(y.borderTopColor=J(d),y.borderBottomColor=J(d)),i!==void 0&&(y[h==="rtl"?"borderRightColor":"borderLeftColor"]=J(i)),a!==void 0&&(y[h==="rtl"?"borderLeftColor":"borderRightColor"]=J(a)),o!==void 0&&(y.borderTopColor=J(o)),l!==void 0&&(y.borderBottomColor=J(l)),$e($e({},f),{},{backgroundColor:J(n)},y)},[n,f,r,i,a,o,l,s,d,h]);return u.jsx(Uo,$e($e({},p),{},{ref:e,UNSAFE_style:m}))});$a.displayName="View";var Dm=["children"];function Wn(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function Hn(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Wn(Object(n),!0).forEach(function(r){Lm(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Wn(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function Lm(t,e,n){return(e=Am(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Am(t){var e=Fm(t,"string");return typeof e=="symbol"?e:e+""}function Fm(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Nm(t,e){if(t==null)return{};var n,r,i=Mm(t,e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(r=0;r<a.length;r++)n=a[r],e.indexOf(n)===-1&&{}.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function Mm(t,e){if(t==null)return{};var n={};for(var r in t)if({}.hasOwnProperty.call(t,r)){if(e.indexOf(r)!==-1)continue;n[r]=t[r]}return n}function $m(t){var{children:e}=t,n=Nm(t,Dm),r=c.useMemo(()=>Su(e).map(i=>oa(i,yt)?i:u.jsx(yt,{value:String(i),children:String(i)},String(i))),[e]);return u.jsx(Bo,Hn(Hn({},n),{},{children:r}))}var Um=["ariaLabel","icon","isQuiet","labelText","children","onOpenChange","tooltip"];function Vn(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function Gn(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Vn(Object(n),!0).forEach(function(r){Bm(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Vn(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function Bm(t,e,n){return(e=Wm(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Wm(t){var e=Hm(t,"string");return typeof e=="symbol"?e:e+""}function Hm(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Vm(t,e){if(t==null)return{};var n,r,i=Gm(t,e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(r=0;r<a.length;r++)n=a[r],e.indexOf(n)===-1&&{}.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function Gm(t,e){if(t==null)return{};var n={};for(var r in t)if({}.hasOwnProperty.call(t,r)){if(e.indexOf(r)!==-1)continue;n[r]=t[r]}return n}function Ua(t){var{ariaLabel:e,icon:n,isQuiet:r,labelText:i,children:a,onOpenChange:o,tooltip:l}=t,s=Vm(t,Um),d=i==null&&l!=null?"action-button-icon-with-tooltip":void 0;return u.jsxs(qr,{type:"popover",onOpenChange:o,children:[u.jsxs(Xe,Gn(Gn({},s),{},{"aria-label":e??i,isQuiet:r,children:[u.jsx(Le,{UNSAFE_className:d,children:u.jsx(Y,{icon:n})}),i==null?null:u.jsx(nt,{children:i}),l==null?null:u.jsx(Fe,{children:l})]})),a]})}function Yn(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function Ue(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Yn(Object(n),!0).forEach(function(r){Ym(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Yn(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function Ym(t,e,n){return(e=Km(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Km(t){var e=qm(t,"string");return typeof e=="symbol"?e:e+""}function qm(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Ba(t){var{heading:e,confirmationButtonLabel:n,children:r,onCancel:i,onConfirm:a}=t,{formProps:o,submitButtonProps:l}=Ta();return u.jsxs(zr,{children:[u.jsx(Xt,{level:3,UNSAFE_className:sn.spectrumDialogComponentHeading,children:e}),u.jsx(Xr,{}),u.jsx(Ht,{children:u.jsx(Qr,Ue(Ue({},o),{},{children:r}))}),u.jsxs(Jr,{children:[u.jsx(vt,{variant:"secondary",onPress:i,children:"Cancel"}),u.jsx(vt,Ue(Ue({},l),{},{style:"fill",variant:"negative",onPress:a,type:"submit",children:n}))]})]})}function zm(t){var{ariaLabel:e,heading:n,confirmationButtonLabel:r,isHidden:i,children:a,tooltip:o,onConfirm:l}=t,s=c.useCallback(d=>u.jsx(Ba,{heading:n,confirmationButtonLabel:r,onCancel:d,onConfirm:()=>{d(),l()},children:a}),[a,r,n,l]);return u.jsx(Ua,{ariaLabel:e,icon:ci,isHidden:i,isQuiet:!0,height:ln,tooltip:o,children:s})}var Xm=["icon","label","tooltip"];function Kn(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function qn(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Kn(Object(n),!0).forEach(function(r){Qm(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Kn(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function Qm(t,e,n){return(e=Jm(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Jm(t){var e=Zm(t,"string");return typeof e=="symbol"?e:e+""}function Zm(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function eg(t,e){if(t==null)return{};var n,r,i=tg(t,e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(r=0;r<a.length;r++)n=a[r],e.indexOf(n)===-1&&{}.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function tg(t,e){if(t==null)return{};var n={};for(var r in t)if({}.hasOwnProperty.call(t,r)){if(e.indexOf(r)!==-1)continue;n[r]=t[r]}return n}function Wa(t){var{icon:e,label:n,tooltip:r}=t,i=eg(t,Xm);return u.jsxs(Xe,qn(qn({},i),{},{"aria-label":n,isQuiet:!0,height:ln,children:[u.jsx(Le,{UNSAFE_className:r==null?void 0:"action-button-icon-with-tooltip",children:u.jsx(Y,{icon:e})}),r==null?null:u.jsx(Fe,{children:r})]}))}Wa.displayName="IconActionButton";function zn(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function ng(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?zn(Object(n),!0).forEach(function(r){ue(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):zn(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function ue(t,e,n){return(e=rg(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function rg(t){var e=ig(t,"string");return typeof e=="symbol"?e:e+""}function ig(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var ag=100,Ha=function(t){return t.UP="UP",t.DOWN="DOWN",t}(Ha||{});class te extends c.Component{constructor(e){super(e),ue(this,"popper",void 0),ue(this,"cbContainer",void 0),ue(this,"menuContainer",void 0),ue(this,"input",void 0),ue(this,"getCachedFilteredOptions",Wo((r,i)=>r.filter(a=>a.title.toLowerCase().indexOf(i.toLowerCase())>=0),{max:1e3}));var{popperOptions:n}=this.props;n=ng({placement:"bottom-end",modifiers:{preventOverflow:{enabled:!1}}},n),this.state={title:"",filteredOptions:[],keyboardOptionIndex:0,menuIsOpen:!1,inputWidth:100,invalid:!1,popperOptions:n},this.handleMenuKeyDown=this.handleMenuKeyDown.bind(this),this.handleMenuBlur=this.handleMenuBlur.bind(this),this.handleInputChange=this.handleInputChange.bind(this),this.handleInputKeyDown=this.handleInputKeyDown.bind(this),this.handleInputBlur=this.handleInputBlur.bind(this),this.handelInputFocus=this.handelInputFocus.bind(this),this.handleInputClick=this.handleInputClick.bind(this),this.updateInputValue=je(this.updateInputValue,ag),this.handleOptionClick=this.handleOptionClick.bind(this),this.handleMenuOpened=this.handleMenuOpened.bind(this),this.handleMenuExited=this.handleMenuExited.bind(this),this.popper=$.createRef(),this.cbContainer=$.createRef(),this.menuContainer=$.createRef(),this.input=$.createRef()}setInputWidth(){this.cbContainer.current&&this.setState({inputWidth:this.cbContainer.current.getBoundingClientRect().width})}getValueAndValidate(e){if(!e)return this.setState({invalid:!1}),{value:e,isValid:!1};var{options:n}=this.props,r=n.filter(i=>i.title.toLowerCase()===e.toLowerCase());return r.length<1?(this.setState({invalid:!0}),{value:e,isValid:!1}):(this.setState({invalid:!1}),{value:r[0].value,isValid:!0})}updateInputValue(e){var{menuIsOpen:n}=this.state,{value:r,isValid:i}=this.getValueAndValidate(e);n&&this.processFilterChange(e),this.fireOnChange(r,i)}fireOnChange(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,{onChange:r}=this.props;r(e,n)}processFilterChange(e){var n,{options:r}=this.props,{menuIsOpen:i}=this.state,a=e?this.getCachedFilteredOptions(r,e):r,o=a.length===1&&a[0].title===e;if(this.setState({filteredOptions:a,keyboardOptionIndex:0}),o&&i){this.closeMenu();return}(n=this.popper.current)===null||n===void 0||n.scheduleUpdate()}resetValue(){this.setState({title:""}),this.fireOnChange("")}handleResize(){this.setInputWidth()}handleMenuKeyDown(e){var n,{filteredOptions:r,keyboardOptionIndex:i}=this.state,a=r[i];switch(e.key){case"Enter":case"ArrowRight":e.stopPropagation(),e.preventDefault(),a!=null&&(this.setState({title:a.title,invalid:!1}),this.fireOnChange(a.value)),this.closeMenu(),(n=this.input.current)===null||n===void 0||n.focus();break;case"ArrowUp":e.stopPropagation(),e.preventDefault(),this.navigateMenu(te.MENU_NAVIGATION_DIRECTION.UP);break;case"ArrowDown":e.stopPropagation(),e.preventDefault(),this.navigateMenu(te.MENU_NAVIGATION_DIRECTION.DOWN);break;case"Tab":if(e.stopPropagation(),e.preventDefault(),e.shiftKey){this.navigateMenu(te.MENU_NAVIGATION_DIRECTION.UP);break}this.navigateMenu(te.MENU_NAVIGATION_DIRECTION.DOWN);break;case"Escape":e.preventDefault(),e.stopPropagation(),this.closeMenu();break}}navigateMenu(e){var{filteredOptions:n,keyboardOptionIndex:r}=this.state,i=r;e===te.MENU_NAVIGATION_DIRECTION.UP?r>0?(i=(i-1)%n.length,this.setState({keyboardOptionIndex:i})):r===0&&(i=n.length-1,this.setState({keyboardOptionIndex:i})):e===te.MENU_NAVIGATION_DIRECTION.DOWN&&r<n.length&&(i=(i+1)%n.length,this.setState({keyboardOptionIndex:i})),this.scrollOptionIntoView(i)}handleInputKeyDown(e){var{onEnter:n}=this.props,{menuIsOpen:r}=this.state;r?this.handleMenuKeyDown(e):e.key==="Enter"?n():e.key==="Escape"?(this.resetValue(),e.preventDefault(),e.stopPropagation()):e.key==="ArrowRight"||e.key==="ArrowLeft"||e.key==="Tab"||e.key==="Shift"||this.openMenu()}handleInputChange(e){this.setState({title:e.target.value}),this.updateInputValue(e.target.value)}handleOptionClick(e){var n;this.setState({title:e.title,invalid:!1}),this.fireOnChange(e.value),this.closeMenu(),(n=this.input.current)===null||n===void 0||n.focus()}handelInputFocus(){var{menuIsOpen:e}=this.state;e||this.openMenu()}handleInputClick(){var{menuIsOpen:e}=this.state;e||this.openMenu()}handleInputBlur(e){var{menuIsOpen:n}=this.state;n&&e.relatedTarget instanceof Element&&this.popper.current!==null&&this.popper.current.element.contains(e.relatedTarget)||this.closeMenu(!1)}handleMenuBlur(e){e.relatedTarget===this.input.current||e.relatedTarget instanceof Element&&this.popper.current!==null&&this.popper.current.element.contains(e.relatedTarget)||this.closeMenu(!1)}handleMenuOpened(){var e;(e=this.input.current)===null||e===void 0||e.focus()}handleMenuExited(){var{menuIsOpen:e}=this.state;e&&this.setState({menuIsOpen:!1,keyboardOptionIndex:0})}openMenu(){var{title:e}=this.state;this.processFilterChange(e),this.setInputWidth(),this.setState({menuIsOpen:!0}),window.requestAnimationFrame(()=>{var n;(n=this.popper.current)===null||n===void 0||n.show()})}closeMenu(){var e,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;if(this.setState({menuIsOpen:!1,keyboardOptionIndex:0}),n){var r;(r=this.input.current)===null||r===void 0||r.focus()}(e=this.popper.current)===null||e===void 0||e.hide()}scrollOptionIntoView(e){if(this.menuContainer.current){var n;(n=this.menuContainer.current.children.item(e))===null||n===void 0||n.scrollIntoView({behavior:"smooth",block:"nearest"})}}renderMenuElement(){var{inputWidth:e}=this.state;return u.jsx("div",{className:N("aci-options"),ref:this.menuContainer,role:"presentation",onKeyDown:this.handleMenuKeyDown,style:{width:e},onBlur:this.handleMenuBlur,children:this.renderOptions()})}renderOptions(){var{noMatchText:e}=this.props,{title:n,filteredOptions:r}=this.state;return n&&r.length===0?u.jsx("div",{className:"no-match",children:e}):r.map((i,a)=>this.renderOption(i,a))}renderOption(e,n){var{keyboardOptionIndex:r}=this.state,i="option-".concat(n,"-").concat(e.value);return u.jsx("button",{type:"button",className:N("aci-option-btn",{"keyboard-active":r===n}),onClick:()=>this.handleOptionClick(e),onFocus:()=>this.setState({keyboardOptionIndex:n}),children:e.title},i)}render(){var{options:e,inputPlaceholder:n,disabled:r,className:i,defaultTitle:a,spellCheck:o,"data-testid":l}=this.props,{title:s,menuIsOpen:d,popperOptions:f,invalid:p}=this.state;return u.jsxs("div",{className:"aci-container",ref:this.cbContainer,children:[u.jsx("input",{value:s||a,className:N("form-control",i,"aci-input",{"is-invalid":p&&!d}),ref:this.input,onChange:this.handleInputChange,placeholder:n||e[0].title,disabled:r,onFocus:this.handelInputFocus,onClick:this.handleInputClick,onBlur:this.handleInputBlur,onKeyDown:this.handleInputKeyDown,spellCheck:o,"data-testid":l}),u.jsx(rt,{ref:this.popper,options:f,className:N("aci-options-popper interactive"),onEntered:this.handleMenuOpened,onExited:this.handleMenuExited,children:this.renderMenuElement()})]})}}ue(te,"defaultProps",{onChange(){},inputPlaceholder:"",disabled:!1,className:"",defaultTitle:"",popperOptions:null,spellCheck:!0,onEnter(){},noMatchText:"No matching items found","data-testid":void 0});ue(te,"MENU_NAVIGATION_DIRECTION",Ha);function og(t){var{className:e="",value:n,onChange:r,spellCheck:i=!1,placeholder:a="",disabled:o=!1,delimiter:l="",id:s="","data-testid":d}=t,[f,p]=c.useState(n),[h,m]=c.useState(!1),y=c.useRef(null);c.useEffect(function(){p(n)},[n]);function P(_){return _.trim().split(l).filter(I=>I).join(`
2
2
  `.concat(l.trim()))}function v(_){return _.split(`
3
- `).map(I=>I.trim()).join(" ")}function g(){if(y.current){y.current.style.height="0";var _=y.current.scrollHeight+(y.current.offsetHeight-y.current.clientHeight);_>0&&(y.current.style.height="".concat(_,"px"))}}function x(_){var I=_.target.value;h&&(l&&(I=P(I)),m(!1)),p(I),r(I)}function S(){y.current&&(l&&(p(P(f)),g()),y.current.scrollLeft=0)}function E(){y.current&&document.activeElement!==y.current&&y.current.focus()}function b(){l&&(p(v(f)),r(v(f)))}function O(){m(!0)}return c.useEffect(function(){g()},[f]),u.jsx("textarea",{ref:y,id:s,className:N(e,"auto-resize-textarea form-control"),placeholder:a,value:f,rows:1,onChange:x,onFocus:S,onMouseDown:E,onBlur:b,onPaste:O,spellCheck:i,disabled:o,"data-testid":d})}function Va(t){var{blockInteraction:e=!0,children:n,debounceMs:r,isOpen:i=!1}=t,{value:a}=Ne(i,r);return u.jsxs(u.Fragment,{children:[e&&i&&u.jsx("div",{className:"modal-backdrop",style:{backgroundColor:"transparent"},"data-testid":"debounced-modal-backdrop"}),$.cloneElement(n,{isOpen:i&&a})]})}function Ga(t){var{className:e,icon:n,isOpen:r=!1,subtitle:i,title:a}=t;return u.jsx(Yt,{isOpen:r,className:e,children:u.jsx(Kt,{children:u.jsxs("div",{className:"info-modal",children:[n!=null&&u.jsx("div",{className:"message-icon",children:u.jsx(Y,{icon:n})}),u.jsx("div",{className:"message-header",children:a}),i!=null&&u.jsx("div",{className:"message-content",children:i})]})})})}function Xn(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function Qn(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Xn(Object(n),!0).forEach(function(r){og(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Xn(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function og(t,e,n){return(e=sg(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function sg(t){var e=lg(t,"string");return typeof e=="symbol"?e:e+""}function lg(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var ug=[];function cg(t){var{styleProps:e,selectedItemCount:n,onClearSelection:r}=t;return u.jsx(Zr,Qn(Qn({UNSAFE_className:sn.spectrumActionBar},e),{},{isEmphasized:!0,selectedItemCount:n,onClearSelection:r,children:ug}))}function Jn(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function dg(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Jn(Object(n),!0).forEach(function(r){oe(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Jn(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function oe(t,e,n){return(e=pg(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function pg(t){var e=fg(t,"string");return typeof e=="symbol"?e:e+""}function fg(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var Zn=B.module("ContextMenu");class _e extends c.PureComponent{static handleContextMenu(e){e.metaKey||(e.stopPropagation(),e.preventDefault())}constructor(e){super(e),oe(this,"container",void 0),oe(this,"oldFocus",void 0),oe(this,"activeSubMenuRef",void 0),oe(this,"subMenuTimer",void 0),oe(this,"rAF",void 0),oe(this,"initialPosition",void 0),this.handleBlur=this.handleBlur.bind(this),this.handleCloseSubMenu=this.handleCloseSubMenu.bind(this),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleMenuItemClick=this.handleMenuItemClick.bind(this),this.handleMenuItemContextMenu=this.handleMenuItemContextMenu.bind(this),this.handleMenuItemMouseMove=this.handleMenuItemMouseMove.bind(this),this.handleMouseLeave=this.handleMouseLeave.bind(this),this.handleWindowResize=this.handleWindowResize.bind(this),this.container=$.createRef(),this.oldFocus=document.activeElement,this.activeSubMenuRef=$.createRef(),this.subMenuTimer=0,this.rAF=0,this.initialPosition={top:e.top,left:e.left},this.state={menuItems:[],pendingItems:[],activeSubMenu:null,hasOverflow:!1,subMenuTop:null,subMenuLeft:null,subMenuParentWidth:0,subMenuParentHeight:0,keyboardIndex:-1,mouseIndex:-1}}componentDidMount(){this.initMenu(),this.verifyPosition(),window.addEventListener("resize",this.handleWindowResize),this.rAF=window.requestAnimationFrame(()=>{var e;(e=this.container.current)===null||e===void 0||e.focus();var{onMenuOpened:n}=this.props;n(this)})}componentDidUpdate(e,n){var{actions:r}=this.props,{activeSubMenu:i}=this.state;if(i!==n.activeSubMenu)if(i==null){var a;(a=this.container.current)===null||a===void 0||a.focus()}else this.setActiveSubMenuPosition();if(e.actions!==r&&(this.initMenu(),this.container.current==null||!this.container.current.contains(document.activeElement))){var o;(o=this.container.current)===null||o===void 0||o.focus()}this.verifyPosition()}componentWillUnmount(){this.cancelPromises(),window.removeEventListener("resize",this.handleWindowResize),cancelAnimationFrame(this.rAF)}getKeyboardIndex(){var{options:e}=this.props;if(e.separateKeyboardMouse!==void 0&&e.separateKeyboardMouse){var{keyboardIndex:n}=this.state;return n}return this.getMouseIndex()}setKeyboardIndex(e){var{options:n}=this.props;n.separateKeyboardMouse!==void 0&&n.separateKeyboardMouse?this.setState({keyboardIndex:e}):this.setMouseIndex(e)}getMouseIndex(){var{mouseIndex:e}=this.state;return e}setMouseIndex(e){this.setState({mouseIndex:e})}initMenu(){this.cancelPromises(),cancelAnimationFrame(this.rAF);var{options:e}=this.props,n=e.initialKeyboardIndex;n===void 0&&(n=-1);for(var{actions:r}=this.props,i=le.getMenuItems(r),a=[],o=i.length-1;o>=0;o-=1){var l=i[o];l instanceof Promise?this.initMenuPromise(l):a.push(l)}this.setState({mouseIndex:-1,keyboardIndex:n,activeSubMenu:null,menuItems:le.sortActions(a)})}initMenuPromise(e){var n=he.makeCancelable(e);this.setState(r=>({pendingItems:r.pendingItems.concat(n)})),n.then(r=>{this.setState(i=>{var a=i.pendingItems.indexOf(n);if(a>=0){var o=i.pendingItems.slice();return o.splice(a,1),{menuItems:le.sortActions(i.menuItems.concat(r)),pendingItems:o}}return null})},r=>{he.isCanceled(r)||(this.setState(i=>{var a=i.pendingItems.indexOf(n);if(a>=0){var o=i.pendingItems.slice();return o.splice(a,1),{pendingItems:o}}return null}),Zn.error(r))})}cancelPromises(){var{pendingItems:e}=this.state;e.map(n=>n.cancel())}setActiveSubMenuPosition(){if(this.activeSubMenuRef.current!==null){var e=this.activeSubMenuRef.current.getBoundingClientRect();this.setState({subMenuTop:e.top,subMenuLeft:e.right,subMenuParentHeight:e.height,subMenuParentWidth:e.width})}}verifyPosition(){var e,n,r,i,{options:a,updatePosition:o,subMenuParentWidth:l,subMenuParentHeight:s,top:d,left:f}=this.props;if(!(!this.container.current||a.doNotVerifyPosition!=null&&a.doNotVerifyPosition)){var{top:p,left:h}=this.initialPosition,{width:m,height:y}=(e=(n=this.container.current)===null||n===void 0?void 0:n.getBoundingClientRect())!==null&&e!==void 0?e:{width:0,height:0},P=((r=(i=this.container.current)===null||i===void 0?void 0:i.scrollHeight)!==null&&r!==void 0?r:0)>window.innerHeight;y===0||m===0||(p+y>window.innerHeight&&(p-y-s>0?p-=y-s:p=window.innerHeight-y),h+m>window.innerWidth&&(h=h-m-l),(f!==h||d!==p)&&(this.setState({hasOverflow:P}),o(p,h)))}}handleWindowResize(){this.container.current&&this.closeMenu(!0)}handleBlur(e){if(!this.container.current){Zn.warn("Container is null!");return}if(!this.container.current.contains(e.relatedTarget)){for(var n=e.relatedTarget,r=!1;n&&!r;)r=n.hasAttribute("data-dh-context-menu"),n=n.parentElement;r||this.closeMenu(!0)}}isEscapeKey(e){var{left:n}=this.props;return e==="Escape"||n<0&&e==="ArrowRight"||e==="ArrowLeft"}handleKeyDown(e){var{menuItems:n}=this.state,r=this.getKeyboardIndex(),i=r,a=!1;if(e.key==="Enter"||e.key===" "){r>=0&&r<n.length&&this.handleMenuItemClick(n[r],e);return}if(e.key==="ArrowRight"?r>=0&&r<=n.length?a=!0:i=0:this.isEscapeKey(e.key)?i=null:e.key==="ArrowUp"||e.shiftKey&&e.key==="Tab"?i=le.getNextMenuItem(i,-1,n):(e.key==="ArrowDown"||e.key==="Tab")&&(i=le.getNextMenuItem(i,1,n)),a){this.openSubMenu(r),e.preventDefault(),e.stopPropagation();return}r!==i&&(i!==null?this.setKeyboardIndex(i):(this.closeMenu(),this.oldFocus instanceof HTMLElement&&this.oldFocus.focus()),e.preventDefault(),e.stopPropagation())}openSubMenu(e){var{menuItems:n,activeSubMenu:r}=this.state,i=n[e].actions?e:null;r!==i&&this.setState({activeSubMenu:i,subMenuTop:null,subMenuLeft:null})}closeMenu(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,{closeMenu:n,onMenuClosed:r}=this.props;cancelAnimationFrame(this.rAF),this.rAF=window.requestAnimationFrame(()=>{n(e),r(this)})}closeSubMenu(){this.setState({activeSubMenu:null})}handleCloseSubMenu(e){e?this.closeMenu(!0):this.closeSubMenu()}handleMenuItemClick(e,n){n.preventDefault(),n.stopPropagation();var{menuItems:r}=this.state;e!=null&&(e.disabled===void 0||!e.disabled)&&(e.actions!=null?this.openSubMenu(r.indexOf(e)):e.action!=null&&(e.action(n.nativeEvent),this.closeMenu(!0)))}handleMenuItemContextMenu(e,n){n.metaKey||this.handleMenuItemClick(e,n)}handleMenuItemMouseMove(e){var{menuItems:n}=this.state,r=n.indexOf(e);this.setMouseIndex(r),r>=0&&r<n.length&&(e.disabled===void 0||!e.disabled)&&this.openSubMenu(r)}handleMouseLeave(){this.setMouseIndex(-1)}render(){for(var e=[],{top:n,left:r}=this.props,{activeSubMenu:i,hasOverflow:a,keyboardIndex:o,menuItems:l,mouseIndex:s,pendingItems:d,subMenuTop:f,subMenuLeft:p,subMenuParentWidth:h,subMenuParentHeight:m}=this.state,y=0;y<l.length;y+=1){var P=l[y];y>0&&P.group!==l[y-1].group&&e.push(u.jsx("hr",{},"".concat(y,".separator")));var v=u.jsx(vi,{ref:i===y?this.activeSubMenuRef:null,isKeyboardSelected:o===y,isMouseSelected:s===y,menuItem:P,closeMenu:this.handleCloseSubMenu,onMenuItemClick:this.handleMenuItemClick,onMenuItemMouseMove:this.handleMenuItemMouseMove,onMenuItemContextMenu:this.handleMenuItemContextMenu},y);e.push(v)}var g=null;d.length>0&&(g=u.jsx("div",{className:"loading",children:u.jsx(Qe,{className:"loading-spinner-vertical-align"})}));var{menuStyle:x,"data-testid":S}=this.props,E=i!==null&&f!==null&&p!==null;return u.jsxs(u.Fragment,{children:[u.jsxs("div",{className:N({"has-overflow":a},"context-menu-container"),style:dg({top:n,left:r},x),ref:this.container,"data-dh-context-menu":!0,onBlur:this.handleBlur,onKeyDown:this.handleKeyDown,onMouseLeave:this.handleMouseLeave,onContextMenu:_e.handleContextMenu,role:"menuitem",tabIndex:0,"data-testid":S,children:[e,g]}),E&&i!==null&&f!==null&&p!==null&&u.jsx(_e,{actions:l[i].actions||[],closeMenu:this.handleCloseSubMenu,top:f,left:p,updatePosition:(b,O)=>{this.setState({subMenuTop:b,subMenuLeft:O})},subMenuParentWidth:h,subMenuParentHeight:m},"sub-".concat(i))]})}}oe(_e,"defaultProps",{subMenuParentWidth:0,subMenuParentHeight:0,closeMenu(){},onMenuOpened(){},onMenuClosed(){},options:{},menuStyle:{},"data-testid":void 0});function er(t,e,n){return(e=hg(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function hg(t){var e=mg(t,"string");return typeof e=="symbol"?e:e+""}function mg(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}class Ya extends c.Component{constructor(e){super(e),er(this,"container",void 0),er(this,"openMenu",void 0),this.handleMenuClose=this.handleMenuClose.bind(this),this.handleContextMenu=this.handleContextMenu.bind(this),this.container=$.createRef(),this.openMenu=$.createRef(),this.state={actions:null,left:0,top:0}}componentDidMount(){var e;(e=this.container.current)!==null&&e!==void 0&&e.parentElement&&this.container.current.parentElement.addEventListener("contextmenu",this.handleContextMenu)}componentWillUnmount(){var e;(e=this.container.current)!==null&&e!==void 0&&e.parentElement&&this.container.current.parentElement.removeEventListener("contextmenu",this.handleContextMenu)}handleContextMenu(e){if(this.container.current){var n=this.container.current.getBoundingClientRect(),r=e.clientY-n.top,i=e.clientX-n.left,{actions:a}=this.state;if(a!=null&&e.target===this.container.current){e.preventDefault(),this.setState({actions:null},()=>{var l=document.elementFromPoint(i,r),s=new MouseEvent("contextmenu",{clientX:e.clientX,clientY:e.clientY,bubbles:!0,cancelable:!0});l==null||l.dispatchEvent(s)});return}if(le.isContextActionEvent(e)&&!(e.metaKey||e.ctrlKey)){var o=le.getMenuItems(e.contextActions);o.length!==0&&(e.preventDefault(),this.setState({actions:o,top:r,left:i}))}}}handleMenuClose(e){e===this.openMenu.current&&this.setState({actions:null})}render(){var e=null,{"data-testid":n}=this.props,{actions:r,top:i,left:a}=this.state;return r&&(e=u.jsx(_e,{ref:this.openMenu,actions:r,onMenuClosed:this.handleMenuClose,top:i,left:a,updatePosition:(o,l)=>{this.setState({top:o,left:l})},"data-testid":n})),u.jsx("div",{className:N("context-menu-root",{active:r}),ref:this.container,children:e})}}function Ka(t,e,n){return(e=gg(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function gg(t){var e=yg(t,"string");return typeof e=="symbol"?e:e+""}function yg(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}class Re extends c.Component{static getHeight(e){var n=e.scrollWidth-e.clientWidth;return e.scrollHeight-n}constructor(e){super(e),Ka(this,"nodeRef",$.createRef()),this.handleEntered=this.handleEntered.bind(this)}handleEntered(){var e=this.nodeRef.current;if(e){e.style.height="";var{autoFocusOnShow:n}=this.props;if(n!==void 0&&n){var r=e.querySelector("input, select, textarea");r!=null&&r.focus()}}}handleEnter(){var e=this.nodeRef.current;e&&(e.style.height="0")}handleEntering(){var e=this.nodeRef.current;e&&(e.style.height="".concat(Re.getHeight(e),"px"))}handleExiting(){var e=this.nodeRef.current;e&&(e.style.height="0")}handleExit(){var e=this.nodeRef.current;e&&(e.style.height="".concat(Re.getHeight(e),"px"))}render(){var{children:e,className:n,in:r,"data-testid":i}=this.props;return u.jsx(ei,{in:r,classNames:{enterActive:"collapsing",enterDone:"collapse show",exitActive:"collapsing",exitDone:"collapse"},onEnter:this.handleEnter,onEntering:this.handleEntering,onEntered:this.handleEntered,onExit:this.handleExit,onExiting:this.handleExiting,timeout:350,nodeRef:this.nodeRef,children:a=>u.jsx("div",{ref:this.nodeRef,className:N({collapse:a==="exited"},n),"data-testid":i,children:e})})}}Ka(Re,"defaultProps",{className:"",autoFocusOnShow:!1,"data-testid":void 0});var vg=B.module("TimeInput"),bg="([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]",Pg=["00:00:00","12:34:56","23:59:59"];function tr(t){return t!=null?"".concat(t.substring(0,8).replace(/\u2007/g,"0")).concat("00:00:00".substring(t.length)):t}var qe=$.forwardRef((t,e)=>{var{allowValueWrapping:n=!0,className:r="",onChange:i=ne,value:a=0,onFocus:o=ne,onBlur:l=ne,onSelect:s=ne,"data-testid":d}=t,[f,p]=c.useState(Ve.formatTime(a)),h=c.useRef(a),[m,y]=c.useState(),P=c.useRef(null);c.useImperativeHandle(e,()=>({focus:()=>{var b;(b=P.current)===null||b===void 0||b.focus()},setSelection:b=>{var O;(O=P.current)===null||O===void 0||O.focus(),y(b)}}),[]),c.useEffect(function(){h.current!==a&&(p(Ve.formatTime(a)),h.current=a)},[h,a]);function v(b,O,_){var I=b.selectionStart===0?24:60,R=parseInt(_,10)-O;return Number.isNaN(R)?R=0:n?R=(R%I+I)%I:R=Math.min(Math.max(0,R),I-1),"".concat(R).padStart(2,"0")}function g(b,O,_,I,R){return I===0&&R===2&&O===1&&parseInt(_,10)>1?"0".concat(_).concat(b.substring(2)):ca(b,O,_)}var x=c.useCallback(b=>{vg.debug("handleChange",b),p(b),h.current=Ve.parseTime(tr(b)),i(h.current)},[i]),S=c.useCallback(()=>{var b=tr(f);b!==f&&p(b),l()},[f,l]),E=c.useCallback(b=>{y(b),s(b)},[s]);return u.jsx(un,{ref:P,className:r,example:Pg,getNextSegmentValue:v,getPreferredReplacementString:g,onChange:x,onSelect:E,pattern:bg,selection:m,value:f,onFocus:o,onBlur:S,"data-testid":d})});function nr(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function xg(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?nr(Object(n),!0).forEach(function(r){ce(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):nr(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function ce(t,e,n){return(e=wg(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function wg(t){var e=Sg(t,"string");return typeof e=="symbol"?e:e+""}function Sg(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var rr=-1,qa=function(t){return t.UP="UP",t.DOWN="DOWN",t}(qa||{});class z extends c.Component{constructor(e){super(e),ce(this,"csContainer",void 0),ce(this,"menuContainer",void 0),ce(this,"button",void 0),ce(this,"input",void 0);var{value:n,valueToTime:r}=e;this.toggleMenu=this.toggleMenu.bind(this),this.handleMenuKeyDown=this.handleMenuKeyDown.bind(this),this.closeMenu=this.closeMenu.bind(this),this.handleOptionClick=this.handleOptionClick.bind(this),this.handleOptionFocus=this.handleOptionFocus.bind(this),this.handleMenuOpened=this.handleMenuOpened.bind(this),this.handleMenuExited=this.handleMenuExited.bind(this),this.handleCustomInput=this.handleCustomInput.bind(this),this.csContainer=$.createRef(),this.menuContainer=$.createRef(),this.button=$.createRef(),this.input=$.createRef(),this.state={keyboardOptionIndex:0,menuIsOpen:!1,inputWidth:100,customTime:r(n),inputFocused:!1}}getSelectedText(){var{options:e,value:n,placeholder:r}=this.props,{customTime:i}=this.state;if(n===null)return r;for(var a=0;a<e.length;a+=1){var o=e[a];if(o.value===n)return o.title}return Ve.formatTime(i)}setInputWidth(){this.csContainer.current&&this.setState({inputWidth:this.csContainer.current.getBoundingClientRect().width})}focus(){var e;(e=this.button.current)===null||e===void 0||e.focus()}updateInputValue(e){var{onChange:n}=this.props;n(e)}handleResize(){this.setInputWidth()}handleMenuKeyDown(e){var n,{keyboardOptionIndex:r,inputFocused:i}=this.state,{options:a}=this.props;switch(e.key){case"Enter":case" ":i?this.updateFromCustom():this.updateInputValue(a[r].value),this.closeMenu(),(n=this.button.current)===null||n===void 0||n.focus(),e.stopPropagation(),e.preventDefault();break;case"Tab":e.shiftKey?this.handleMenuNavigation(z.MENU_NAVIGATION_DIRECTION.UP):this.handleMenuNavigation(z.MENU_NAVIGATION_DIRECTION.DOWN),e.stopPropagation(),e.preventDefault();break;case"ArrowUp":this.handleMenuNavigation(z.MENU_NAVIGATION_DIRECTION.UP),e.stopPropagation(),e.preventDefault();break;case"ArrowDown":this.handleMenuNavigation(z.MENU_NAVIGATION_DIRECTION.DOWN),e.stopPropagation(),e.preventDefault();break;case"Escape":this.closeMenu();break}}handleMenuNavigation(e){var{keyboardOptionIndex:n,inputFocused:r}=this.state,{options:i}=this.props,a=i.length,o=n;switch(e){case z.MENU_NAVIGATION_DIRECTION.UP:if(!r&&n===0){this.focusInput();break}else r&&this.focusOption(n);n>0&&!r?(o=(o-1)%a,this.setState({keyboardOptionIndex:o})):n===0&&(o=a-1,this.setState({keyboardOptionIndex:o})),this.scrollOptionIntoView(o);break;case z.MENU_NAVIGATION_DIRECTION.DOWN:if(!r&&n===a-1){this.focusInput();break}else r&&this.focusOption(n);n<a&&!(r&&n===0)&&(o=(o+1)%a,this.setState({keyboardOptionIndex:o})),this.scrollOptionIntoView(o);break}}handleOptionClick(e){var n=Number(e.currentTarget.value),{options:r,timeToValue:i}=this.props,{customTime:a}=this.state;if(n===rr){var o=i(a);this.updateAndClose(o)}else this.updateAndClose(r[n].value)}updateAndClose(e){var n;this.updateInputValue(e),this.closeMenu(),(n=this.button.current)===null||n===void 0||n.focus()}handleOptionFocus(e){this.setState({keyboardOptionIndex:Number(e.target.value)})}handleMenuOpened(){var e,{options:n,value:r}=this.props,{keyboardOptionIndex:i}=this.state;this.scrollOptionIntoView(i);var a=(e=this.menuContainer.current)===null||e===void 0?void 0:e.querySelector(".cs-option-btn.keyboard-active");if(a instanceof HTMLElement&&a.focus(),r!==null){var o=n.map(l=>l.value).indexOf(r);o<0&&this.focusInput()}}focusInput(){var e;(e=this.input.current)===null||e===void 0||e.focus()}focusOption(e){var n,r=(n=this.menuContainer.current)===null||n===void 0?void 0:n.querySelector(".cs-options");if(r&&r.children!=null){var i=r.children.item(e);i instanceof HTMLElement&&i.focus()}}handleMenuExited(){var{menuIsOpen:e}=this.state;e&&this.setState({menuIsOpen:!1,keyboardOptionIndex:0})}handleCustomInput(e){var{timeToValue:n}=this.props,r=n(e);this.updateInputValue(r),this.setState({customTime:e})}updateFromCustom(){var{timeToValue:e}=this.props,{customTime:n}=this.state,r=e(n);this.updateInputValue(r)}toggleMenu(e){var{menuIsOpen:n}=this.state;n?this.closeMenu():this.openMenu(),e.stopPropagation()}openMenu(){this.updateKeyboardIndex(),this.setInputWidth(),this.setState({menuIsOpen:!0})}closeMenu(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;if(this.setState({menuIsOpen:!1}),e){var n;(n=this.button.current)===null||n===void 0||n.focus()}}updateKeyboardIndex(){var{options:e,value:n}=this.props;if(n!==null){var r=e.map(i=>i.value).indexOf(n);r>0&&this.setState({keyboardOptionIndex:r})}}scrollOptionIntoView(e){var n,r=(n=this.menuContainer.current)===null||n===void 0?void 0:n.querySelector(".cs-options");if(r&&r.children!=null){var i=r.children.item(e);i instanceof HTMLElement&&i.offsetTop>z.DROP_DOWN_MENU_HEIGHT?r.scrollTop=i.offsetTop-z.DROP_DOWN_MENU_HEIGHT:(i instanceof HTMLElement&&i.offsetTop<0||e===0)&&(r.scrollTop=0)}}renderMenuElement(){var{inputWidth:e}=this.state;return u.jsx("div",{className:"cs-menu-container",ref:this.menuContainer,role:"presentation",onKeyDown:this.handleMenuKeyDown,onClick:n=>{n.stopPropagation()},style:{width:e},children:u.jsx("div",{className:"cs-options-container",children:u.jsx("div",{className:"cs-options",children:this.renderOptions()})})})}renderOptions(){for(var{options:e,value:n,icon:r,customText:i}=this.props,{keyboardOptionIndex:a,customTime:o,inputFocused:l}=this.state,s=!1,d=[],f=0;f<e.length;f+=1){var p=e[f],h="option-".concat(f,"-").concat(p.value);s=s||p.value===n,d.push(u.jsxs("button",{type:"button",value:f,className:N("cs-option-btn",{"keyboard-active":a===f&&!l}),onClick:this.handleOptionClick,onFocus:this.handleOptionFocus,children:[p.value===n&&u.jsx(Y,{icon:r,className:"mr-2"}),p.value!==n&&u.jsx("span",{className:"mr-4"}),p.title]},h))}return d.push(u.jsx("hr",{className:"cs-divider"},"option-divider")),d.push(u.jsxs("button",{type:"button",value:rr,className:N("cs-option-btn",{"keyboard-active":l}),onClick:this.handleOptionClick,onFocus:this.handleOptionFocus,children:[!s&&n!==null?u.jsx(Y,{icon:r,className:"mr-2"}):u.jsx("span",{className:"mr-4"}),i]},"option-custom-label")),d.push(u.jsxs("div",{className:"cs-custom-container",children:[u.jsx("span",{className:"mr-2"}),u.jsx(qe,{ref:this.input,onChange:this.handleCustomInput,value:o,onFocus:()=>this.setState({inputFocused:!0}),onBlur:()=>this.setState({inputFocused:!1})},"option-input"),u.jsx("span",{className:"ml-2"})]},"cs-custom-container")),d.push(u.jsx("hr",{className:"mb-2"},"option-end")),d}render(){var{disabled:e,invalid:n,value:r,"data-testid":i}=this.props,{menuIsOpen:a}=this.state,{popperOptions:o}=this.props;return o=xg({placement:"bottom-end",modifiers:{preventOverflow:{enabled:!1}}},o),u.jsx("div",{className:"input-group cs-container context-menu",ref:this.csContainer,"data-testid":i,children:u.jsx("div",{className:N("input-group-append cs-dropdown",{"cs-dropdown-invalid":n}),children:u.jsxs("button",{type:"button",className:N("btn cs-btn form-control",{"cs-btn-invalid":n}),ref:this.button,onClick:this.toggleMenu,disabled:e,children:[u.jsx("span",{className:N({"text-muted":r===null}),children:this.getSelectedText()}),u.jsx("span",{className:"cs-caret"}),u.jsx(bi,{isShown:a,actions:{menuElement:this.renderMenuElement()},popperOptions:o,popperClassName:"CustomTimeSelect",onMenuOpened:this.handleMenuOpened,onMenuClosed:this.handleMenuExited,menuStyle:{maxWidth:"100rem"}})]})})})}}ce(z,"MENU_NAVIGATION_DIRECTION",qa);ce(z,"DROP_DOWN_MENU_HEIGHT",125);ce(z,"defaultProps",{onChange(){},value:null,disabled:!1,popperOptions:{},icon:il,customText:"Custom",placeholder:"Select a time",valueToTime:t=>t===null?0:Math.round(t/1e3),timeToValue:t=>t*1e3,invalid:!1,"data-testid":void 0});var Og=B.module("DateInput"),Eg="[12][0-9]{3}-(0[1-9]|1[0-2])-(0[1-9]|[1-2][0-9]|3[0-1])",Cg=["2000-01-01","2022-12-31"],Tg="YYYY-MM-DD",za=$.forwardRef((t,e)=>{var{className:n="",onChange:r=()=>{},defaultValue:i="",onFocus:a=()=>{},onBlur:o=()=>{},"data-testid":l}=t,[s,d]=c.useState(i),[f,p]=c.useState(),h=c.useCallback(m=>{Og.debug("handleChange",m),d(m),r(m)},[r]);return u.jsx("div",{className:"d-flex flex-row align-items-center",children:u.jsx(un,{ref:e,className:N(n),example:Cg,getNextSegmentValue:Bp,onChange:h,onSelect:p,pattern:Eg,placeholder:Tg,selection:f,value:s,onFocus:a,onBlur:o,"data-testid":l})})});za.displayName="DateInput";var jg={CYCLE_TO_NEXT_STACK:pe.createAndAdd({id:"NAVIGATION.CYCLE_TO_NEXT_STACK",name:"Cycle To Next Stack",shortcut:[H.CTRL,q.SINGLE_QUOTE],macShortcut:[H.CMD,q.SINGLE_QUOTE],isEditable:!0}),CYCLE_TO_PREVIOUS_STACK:pe.createAndAdd({id:"NAVIGATION.CYCLE_TO_PREVIOUS_STACK",name:"Cycle To Previous Stack",shortcut:[H.CTRL,q.SEMICOLON],macShortcut:[H.CMD,q.SEMICOLON],isEditable:!0}),CYCLE_TO_NEXT_TAB:pe.createAndAdd({id:"NAVIGATION.CYCLE_TO_NEXT_TAB",name:"Cycle To Next Tab",shortcut:[H.CTRL,H.SHIFT,q.DOUBLE_QUOTE],macShortcut:[H.CMD,H.SHIFT,q.SINGLE_QUOTE],isEditable:!0}),CYCLE_TO_PREVIOUS_TAB:pe.createAndAdd({id:"NAVIGATION.CYCLE_TO_PREVIOUS_TAB",name:"Cycle To Previous Tab",shortcut:[H.CTRL,H.SHIFT,q.COLON],macShortcut:[H.CMD,H.SHIFT,q.SEMICOLON],isEditable:!0}),CYCLE_TO_NEXT_DASHBOARD:pe.createAndAdd({id:"NAVIGATION.CYCLE_TO_NEXT_DASHBOARD",name:"Cycle To Next Dashboard",shortcut:[H.CTRL,q.PERIOD],macShortcut:[H.CMD,q.PERIOD],isEditable:!0}),CYCLE_TO_PREVIOUS_DASHBOARD:pe.createAndAdd({id:"NAVIGATION.CYCLE_TO_PREVIOUS_DASHBOARD",name:"Cycle To Previous Dashboard",shortcut:[H.CTRL,q.COMMA],macShortcut:[H.CMD,q.COMMA],isEditable:!0})};function Ig(t){var{isInvalid:e=!1,items:n,onAdd:r=()=>{},onDelete:i=()=>{},validate:a=()=>null}=t,[o,l]=c.useState(null),[s,d]=c.useState([]),[f,p]=c.useState(""),h=c.useCallback(S=>{d(S)},[]),m=c.useCallback(()=>{i(wn.getItemsInRanges(n,s)),d([])},[n,s,i]),y=c.useCallback(()=>{if(f!==""){var S=a(f);S==null?(r(f),p("")):l(S)}},[f,r,a]),P=c.useCallback(S=>{var{value:E}=S.target;p(E),l(E===""?null:a(E))},[a]),v=c.useCallback(()=>{d([])},[]),g=c.useCallback(S=>{S.key==="Enter"&&y()},[y]),x=c.useMemo(()=>14+ti(n.length,1,6)*xt.DEFAULT_ROW_HEIGHT,[n.length]);return u.jsxs("div",{className:N("editable-item-list-container",{"is-invalid":e}),children:[u.jsx("div",{style:{height:x},children:u.jsx(xt,{itemCount:n.length,items:n.map((S,E)=>({value:S,isSelected:wn.isSelected(s,E)})),offset:0,selectedRanges:s,onSelectionChange:h,isMultiSelect:!0})}),u.jsxs("div",{className:"d-flex flex-row pt-2",children:[u.jsx("div",{className:"d-flex flex-grow-1",children:u.jsx("input",{className:N("form-control",{"is-invalid":o!=null}),placeholder:"Enter value",type:"text",value:f,onChange:P,onFocus:v,onKeyDown:g})}),u.jsxs("div",{className:"d-flex align-items-start mt-1 ml-2",children:[u.jsx(V,{kind:"ghost",onClick:y,disabled:o!=null||f==="",icon:al,tooltip:"Add new item","data-testid":"add-item-button"}),u.jsx(V,{kind:"ghost",onClick:m,disabled:s.length===0,icon:ci,tooltip:"Delete selected items","data-testid":"delete-item-button"})]})]})]})}function kg(t){var{message:e,isExpanded:n=!1,type:r="Error"}=t,[i,a]=c.useState(!1),[o,l]=c.useState(!1),s=c.useRef(null),d=c.useRef(null),f=c.useCallback(()=>{if(!(o||n||d.current==null)){var h=d.current.scrollHeight>d.current.clientHeight;a(h)}},[o,n]),p=Ie(f,100);return st(s.current,p),c.useLayoutEffect(p,[p]),u.jsxs("div",{className:N("error-view",{expanded:o||n}),ref:s,children:[u.jsxs("div",{className:"error-view-header",children:[u.jsxs("div",{className:"error-view-header-text",children:[u.jsx(Y,{icon:ol}),u.jsx("span",{children:r})]}),u.jsxs("div",{className:"error-view-buttons",children:[u.jsx(Pi,{UNSAFE_className:"error-view-copy-button",tooltip:"Copy error contents",copy:"".concat(r,": ").concat(e).trim()}),(i||o)&&!n&&u.jsx(V,{kind:"danger",className:"error-view-expand-button",onClick:()=>{l(!o)},icon:o?sl:ll,children:o?"Show Less":"Show More"})]})]}),u.jsx("pre",{className:"error-view-text",ref:d,children:e})]})}function _g(t,e,n){return(e=Rg(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Rg(t){var e=Dg(t,"string");return typeof e=="symbol"?e:e+""}function Dg(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}class Pe extends c.Component{static isParentSelected(e,n){var r=n.get(e);if(r===void 0)return!1;if(typeof r=="boolean")return r;var i=Array.from(r.values()).includes(!0),a=Array.from(r.values()).includes(!1);return i&&a?null:i}constructor(e){super(e),this.toggleMenu=this.toggleMenu.bind(this),this.toggleValueFor=this.toggleValueFor.bind(this),this.selectAll=this.selectAll.bind(this),this.clear=this.clear.bind(this),this.state={menuIsOpen:!1}}toggleMenu(e){e.stopPropagation(),e.preventDefault(),this.setState(n=>{var{menuIsOpen:r}=n;return{menuIsOpen:!r}})}toggleValueFor(e,n){var{valueMap:r,onUpdateValueMap:i}=this.props,a=new Map(r),o=a.get(e);if(o instanceof Map){var l=new Map(o);if(n!=null)l.set(n,o.get(n)!==!0);else{var s=Pe.isParentSelected(e,a),d=s==null||!s;o.forEach((h,m)=>l.set(m,d))}a.set(e,l)}else a.set(e,o==null||!o);var f=a.get(e);if(n===void 0&&f!==void 0&&typeof f!="boolean"){var p=Pe.isParentSelected(e,r);p!=null&&p?f.forEach((h,m)=>f.set(m,!1)):f.forEach((h,m)=>f.set(m,!0))}i(a)}setAllValues(e){var{valueMap:n,onUpdateValueMap:r}=this.props,i=new Map;n.forEach((a,o)=>{if(typeof a=="boolean")i.set(o,e);else{var l=new Map;a.forEach((s,d)=>l.set(d,e)),i.set(o,l)}}),r(i)}selectAll(){this.setAllValues(!0)}clear(){this.setAllValues(!1)}renderMenuElement(){var{valueMap:e,"data-testid":n}=this.props;return u.jsxs("div",{className:"hcm-menu-container",children:[Array.from(e.entries()).map(r=>{var[i,a]=r;return u.jsxs("div",{children:[u.jsx(wt,{className:"hcm-parent",checked:Pe.isParentSelected(i,e),onChange:()=>this.toggleValueFor(i),children:i}),a!==void 0&&typeof a!="boolean"&&Array.from(a.entries()).map(o=>{var[l,s]=o;return u.jsx(wt,{className:"hcm-child",checked:s,onChange:()=>this.toggleValueFor(i,l),children:l},l)})]},i)}),u.jsx(V,{kind:"ghost",onClick:this.selectAll,"data-testid":n!==void 0?"".concat(n,"-btn-select-all"):void 0,children:"Select All"}),u.jsx(V,{kind:"ghost",onClick:this.clear,"data-testid":n!==void 0?"".concat(n,"-btn-clear"):void 0,children:"Clear"})]})}render(){var{menuText:e,className:n,icon:r,id:i,"data-testid":a}=this.props,{menuIsOpen:o}=this.state;return u.jsxs("button",{type:"button",className:N("btn hcm-btn",n),onClick:this.toggleMenu,id:i,"data-testid":a,children:[u.jsxs("span",{children:[r&&u.jsx(Y,{icon:r,className:"hcm-icon mr-1"}),e]}),u.jsx("span",{className:"cs-caret"}),u.jsx(rt,{options:{placement:"bottom"},isShown:o,onExited:()=>{this.setState({menuIsOpen:!1})},closeOnBlur:!0,interactive:!0,children:this.renderMenuElement()})]})}}_g(Pe,"defaultProps",{className:"",icon:null,id:"","data-testid":void 0});function ir(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function pt(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?ir(Object(n),!0).forEach(function(r){Lg(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ir(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function Lg(t,e,n){return(e=Ag(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Ag(t){var e=Fg(t,"string");return typeof e=="symbol"?e:e+""}function Fg(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var Xa=c.memo(t=>{var{tab:e,onClose:n,onSelect:r,isActive:i,activeRef:a,index:o,isDraggable:l,contextActions:s,renderAfterTabContent:d}=t,{key:f,isClosable:p=n!=null,title:h,icon:m}=e,y;return m!=null&&(y=$.isValidElement(m)?m:u.jsx(Y,{icon:m})),u.jsx(Ho,{draggableId:f,index:o,isDragDisabled:!l,children:(P,v)=>u.jsxs("div",{className:"context-menu-wrapper",ref:i?a:null,children:[u.jsxs("div",pt(pt(pt({ref:P.innerRef},P.draggableProps),P.dragHandleProps),{},{className:N("btn btn-link btn-nav-tab",{active:i},{dragging:v.isDragging}),"data-testid":"btn-nav-tab-".concat(h),role:"tab",tabIndex:0,onAuxClick:g=>{p&&g.button===1&&g.buttons===0&&(n==null||n(f))},onClick:g=>{if(p&&g.button===1&&g.buttons===0){n==null||n(f);return}g.button===0&&g.buttons===0&&(g.target.focus(),r(f))},onKeyPress:g=>{g.key==="Enter"&&r(f)},children:[y,u.jsxs("span",{className:"btn-nav-tab-title",children:[h,u.jsx(Fe,{children:h})]}),d==null?void 0:d(e),p&&u.jsx(V,{kind:"ghost",className:"btn-nav-tab-close",onClick:g=>{n==null||n(f),g.stopPropagation(),g.preventDefault()},icon:di,tooltip:"Close"})]})),u.jsx(it,{actions:s})]})},f)});Xa.displayName="NavTab";function Qa(t){var{onSelect:e,tabs:n=xi}=t,[r,i]=c.useState(""),[a,o]=c.useState(0),l=c.useRef(null),s=c.useRef(null),d=c.useRef([]);c.useEffect(()=>{var g;(g=l.current)===null||g===void 0||g.focus()},[]),c.useEffect(()=>{o(0)},[r]),c.useEffect(()=>{if(a>=0&&d.current[a]){var g;(g=d.current[a])===null||g===void 0||g.scrollIntoView({behavior:"auto",block:"nearest"})}},[a]);var f=c.useCallback(g=>{i(g.target.value)},[]),p=c.useCallback(g=>{e(g)},[e]),h=c.useCallback(g=>{g.preventDefault()},[]),m=c.useMemo(()=>n.filter(g=>g.title.toLowerCase().includes(r.toLowerCase())),[r,n]).sort((g,x)=>{var S;return(S=g.title.localeCompare(x.title))!==null&&S!==void 0?S:0}),y=c.useCallback(g=>{if(g.key==="ArrowDown"&&m.length>0)g.preventDefault(),o(S=>S===-1?0:(S+1)%m.length);else if(g.key==="ArrowUp"&&m.length>0)g.preventDefault(),o(S=>S===-1?m.length-1:(S-1+m.length)%m.length);else if(g.key==="Enter"&&m.length>0){g.preventDefault();var x=a>=0?a:0;p(m[x])}else g.key==="Tab"&&g.preventDefault()},[m,a,p]),P=c.useMemo(()=>m.map((g,x)=>{var S;return u.jsx("li",{ref:E=>{d.current[x]=E},onMouseDown:h,children:u.jsxs(V,{kind:"ghost","data-testid":"dashboard-list-item-".concat((S=g.key)!==null&&S!==void 0?S:"","-button"),onClick:()=>p(g),className:a===x?"focused":"",style:{transition:"none"},children:[g.icon?u.jsx("span",{className:"dashboard-list-item-icon",children:$.isValidElement(g.icon)?g.icon:u.jsx(Y,{icon:g.icon})}):null,g.title]})},g.key)}),[m,p,a,h]),v=c.useMemo(()=>P.length===0?u.jsx("span",{children:"No open dashboard found."}):null,[P]);return u.jsxs("div",{className:"dashboard-list-container d-flex flex-column",children:[u.jsx("div",{className:"dashboard-list-header",children:u.jsx(Qt,{value:r,placeholder:"Find open dashboard",endPlaceholder:at.OPEN_DASHBOARD_LIST.getDisplayText(),onChange:f,onKeyDown:y,ref:l})}),u.jsxs("ul",{className:"dashboard-list flex-grow-1",ref:s,children:[v&&u.jsx("li",{className:"dashboard-list-message",children:v}),!v&&P]})]})}function ar(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function or(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?ar(Object(n),!0).forEach(function(r){Ng(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ar(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function Ng(t,e,n){return(e=Mg(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Mg(t){var e=$g(t,"string");return typeof e=="symbol"?e:e+""}function $g(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var Ug=500,Bg=.01,Wg=5e-4;function sr(t){return t.scrollLeft===0}function lr(t){return Math.abs(t.scrollLeft+t.clientWidth-t.scrollWidth)<=1||t.scrollWidth===0}function Hg(t,e,n){var{isClosable:r=!1,key:i}=t,a=[];if(r&&n!=null){a.push({title:"Close",order:10,group:20,action:()=>{n(i)}});for(var o=!0,l=e.length-1;l>0&&e[l].key!==t.key;l-=1)if(e[l].isClosable===!0){o=!1;break}a.push({title:"Close to the Right",order:20,group:20,action:()=>{for(var s=e.length-1;s>0&&e[s].key!==i;s-=1)e[s].isClosable===!0&&n(e[s].key)},disabled:o}),a.push({title:"Close All",order:30,group:20,action:()=>{e.forEach(s=>{s.isClosable===!0&&n(s.key)})}})}return a}function Vg(t){var{activeKey:e,tabs:n,onSelect:r,onReorder:i,onClose:a,makeContextActions:o,renderAfterTabContent:l}=t,s=c.useRef(),[d,f]=c.useState(!0),[p,h]=c.useState(!1),[m,y]=c.useState(!0),[P,v]=c.useState(!0),g=c.useCallback(()=>{s.current!=null&&(s.current.clientWidth<s.current.scrollWidth&&n.length>0?f(!0):f(!1),y(sr(s.current)),v(lr(s.current)))},[n]);st(s.current,g);var x=c.useCallback(k=>{Tt.stopDragging(),k.destination&&(i==null||i(k.source.index,k.destination.index))},[i]),S=c.useCallback(()=>{if(s.current!=null){var k=sr(s.current);k!==m&&y(k);var w=lr(s.current);w!==P&&v(w)}},[m,P]),E=c.useRef({cancelClick:!1}),b=c.useCallback(()=>{if(!(s.current==null||E.current.cancelClick))for(var{children:k}=s.current,w=k.length-1;w>=0;w-=1){var T=k[w];if(T.offsetLeft<s.current.scrollLeft-5){T.scrollIntoView({behavior:"smooth",block:"nearest",inline:"start"});return}}},[]),O=c.useCallback(()=>{if(!(s.current==null||E.current.cancelClick))for(var{children:k}=s.current,w=0;w<k.length;w+=1){var T=k[w];if(T.offsetLeft+T.offsetWidth-5>s.current.scrollLeft+s.current.offsetWidth){T.scrollIntoView({behavior:"smooth",block:"nearest",inline:"end"});return}}},[]),_=c.useCallback(function(k,w){var T=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,C=arguments.length>3?arguments[3]:void 0,A=s.current;A!=null&&(E.current.cancelClick=!0,k==="left"?A.scrollLeft=w-T:k==="right"&&(A.scrollLeft=w+T),E.current.rAF=requestAnimationFrame(K=>{var Oe=C??K,bn=K-Oe,dt=Bg*bn+.5*Wg*bn**2;dt=Math.min(dt,A.scrollWidth),_(k,w,dt,Oe)}))},[]),I=c.useCallback(()=>{var{holdTimer:k,rAF:w}=E.current;k!=null&&(clearTimeout(k),E.current.holdTimer=void 0),w!=null&&(cancelAnimationFrame(w),E.current.rAF=void 0),window.removeEventListener("mouseup",I)},[]);c.useEffect(()=>()=>window.removeEventListener("mouseup",I),[I]);var R=c.useCallback(k=>{s.current!=null&&(E.current.holdTimer=window.setTimeout(_,Ug,k,s.current.scrollLeft)),E.current.cancelClick=!1,window.addEventListener("mouseup",I)},[I,_]),F=c.useCallback(()=>{R("left")},[R]),W=c.useCallback(()=>{R("right")},[R]);c.useEffect(function(){var w,T=C=>{C.stopPropagation(),C.preventDefault();var A=C.currentTarget,K=Math.abs(C.deltaY)>Math.abs(C.deltaX)?C.deltaY:C.deltaX;A.scrollLeft+=ti(K,-30,30)};return(w=s.current)===null||w===void 0||w.addEventListener("wheel",T),()=>{var C;(C=s.current)===null||C===void 0||C.removeEventListener("wheel",T)}},[]);var j=c.useMemo(()=>{var k=new Map;return n.forEach(w=>{var{key:T}=w,C=[()=>Hg(w,n,a),()=>{var A;return(A=o==null?void 0:o(w))!==null&&A!==void 0?A:[]}];k.set(T,C)}),k},[o,n,a]),L=c.useRef(null),D=n.find(k=>k.key===e),U=n.map((k,w)=>{var{key:T}=k,C=k===D;return u.jsx(Xa,{tab:k,index:w,isActive:C,activeRef:L,onSelect:r,onClose:a,isDraggable:i!=null,contextActions:j.get(T),renderAfterTabContent:l},T)});c.useEffect(function(){L.current!=null&&L.current.scrollIntoView({block:"nearest",inline:"nearest"})},[e]);var Q=()=>{h(!p)},Z=k=>{h(!1),r(k.key)},G=()=>{h(!1)};return u.jsxs("nav",{className:"nav-container",children:[d&&u.jsx(V,{kind:"ghost",icon:u.jsx(Y,{icon:ul,transform:"grow-4"}),className:"tab-controls-btn tab-controls-btn-left",tooltip:"Scroll left",onClick:b,onMouseDown:F,disabled:m}),u.jsx(Vo,{onDragStart:Tt.startDragging,onDragEnd:x,children:u.jsx(Go,{droppableId:"droppable-tab-navigation",direction:"horizontal",children:(k,w)=>u.jsxs("div",or(or({ref:T=>{T!=null&&(s.current=T,k.innerRef(T))}},k.droppableProps),{},{className:N("nav nav-tabs",{dragging:w.draggingFromThisWith}),role:"tablist",onScroll:S,children:[U,k.placeholder]}))})}),d&&u.jsx(V,{kind:"ghost",icon:u.jsx(Y,{icon:cl,transform:"grow-4"}),className:"tab-controls-btn tab-controls-btn-right",tooltip:"Scroll right",onClick:O,onMouseDown:W,disabled:P}),u.jsx(V,{kind:"ghost",icon:u.jsx(Y,{icon:dl,transform:"grow-4"}),className:"btn-dashboard-list-menu btn-show-dashboard-list",tooltip:"Search open dashboards",onClick:Q,disabled:n.length<2,style:{visibility:d?"visible":"hidden",marginLeft:"auto"},children:u.jsx(rt,{isShown:p,className:"dashboard-list-menu-popper",onExited:G,options:{placement:"bottom-start"},closeOnBlur:!0,interactive:!0,children:u.jsx(Qa,{tabs:n,onSelect:Z})})}),u.jsx(it,{actions:[{action:()=>{h(!p)},shortcut:at.OPEN_DASHBOARD_LIST,isGlobal:!0}]})]})}var Gg=.025,Yg=.9,Kg=.1,qg=.618,ur=80,ye={SIZE:8,DOT_SIZE:2},ie=18,zg=250,Xg=60*1e3,Qg={background:"var(--dh-color-random-area-plot-animation-bg)",foregroundFill:"var(--dh-color-random-area-plot-animation-fg-fill)",foregroundStroke:"var(--dh-color-random-area-plot-animation-fg-stroke)",gridColor:"var(--dh-color-random-area-plot-animation-grid)"};function Jg(){return pi(Qg)}var Ja=$.memo(()=>{var{activeThemes:t}=tt(),e=c.useMemo(Jg,[t]),n=c.useRef(null),r=c.useRef(null),[i,a]=c.useState(!1),o=window.devicePixelRatio,l,s,d,f,p,h=null,m=[];function y(){var j;r.current!=null&&(d=r.current.offsetWidth,f=r.current.offsetHeight),n.current!=null&&(n.current.style.width="".concat(d,"px"),n.current.style.height="".concat(f,"px"),n.current.width=d*o,n.current.height=f*o),(j=l)===null||j===void 0||j.scale(o,o)}function P(){var{foregroundFill:j,foregroundStroke:L}=e,D=document.createElement("canvas");D.width=ye.SIZE,D.height=ye.SIZE;var U=D.getContext("2d");return U!=null&&(U.fillStyle=L,U.fillRect(0,0,ye.DOT_SIZE,ye.DOT_SIZE),U.fillStyle=j,U.fillRect(0,0,ye.SIZE,ye.SIZE)),U==null?void 0:U.createPattern(D,"repeat")}function v(j){var L=Math.random()-.5,D=Gg*L;return j<Kg?D=Math.abs(D):j>Yg&&(D=-Math.abs(D)),j+D}function g(){for(var j=[],L=qg,D=0;D<d+ie;D+=1)L=v(L),j.push(L);return j}function x(){for(;m.length>=d+ie;)m.pop();for(;m.length<d+ie;)m.push(v(m[m.length-1]))}function S(j,L){L.beginPath(),L.moveTo(-1,f+1),L.lineTo(-1,f*j[0]);for(var D=0;D<j.length;D+=1)L.lineTo(D,f*j[D]);L.lineTo(d+ie,f*j[j.length-1]),L.lineTo(d+ie,f+1),L.closePath()}function E(j){j.beginPath();for(var L=1;L<d;L+=ur)j.moveTo(L,0),j.lineTo(L,f);for(var D=1;D<f;D+=ur)j.moveTo(0,D),j.lineTo(d,D)}function b(j){h=h??j;var{background:L,foregroundStroke:D,gridColor:U}=e;Je(l),l.fillStyle=L,l.fillRect(0,0,d,f),E(l),l.lineWidth=1,l.strokeStyle=U,l.stroke();var Q=((h??0)-(j??0))/(1e3/ie);if(l.translate(Q,0),S(m,l),l.lineWidth=2,l.strokeStyle=D,l.stroke(),l.translate(-Q,0),s!=null&&(l.fillStyle=s),l.fill(),l.setTransform(o,0,0,o,0,0),(j??0)-(h??0)>1e3/ie){for(var Z=Math.floor(((j??0)-(h??0))/(1e3/ie)),G=0;G<Z;G+=1)m.shift(),m.push(v(m[m.length-1]));h=j}p!=null&&cancelAnimationFrame(p),p=requestAnimationFrame(b)}var O=je(()=>{p=requestAnimationFrame(j=>{y(),x(),a(!1),b(j)})},zg,{leading:!0});function _(){a(!0),p!=null&&cancelAnimationFrame(p),p=null,h=null}var I=je(()=>{_()},Xg);function R(){p==null&&(a(!1),y(),x(),p=requestAnimationFrame(b)),I()}function F(){document.hasFocus()&&R()}function W(){p!=null&&cancelAnimationFrame(p),I(),O()}return c.useEffect(()=>{var j;return l=(j=n.current)===null||j===void 0?void 0:j.getContext("2d",{alpha:!1}),y(),m=g(),s=P(),b(),I(),window.addEventListener("resize",W),window.addEventListener("focus",R),window.addEventListener("blur",_),window.addEventListener("mousemove",F),window.addEventListener("keydown",F),()=>{p!=null&&cancelAnimationFrame(p),window.removeEventListener("resize",W),window.removeEventListener("focus",R),window.removeEventListener("blur",_),window.removeEventListener("mousemove",F),window.removeEventListener("keydown",F),I.cancel(),O.cancel()}},[e]),u.jsx("div",{className:"random-area-plot-animation-container",ref:r,children:u.jsx("canvas",{ref:n,className:i?"shade":""})})});function Za(t){var{text:e,placement:n="top-start"}=t,r=c.useMemo(()=>({placement:n}),[n]);return u.jsxs(u.Fragment,{children:[u.jsx(nt,{UNSAFE_className:sn.spectrumEllipsis,children:e??u.jsx(u.Fragment,{children:" "})}),e==null||e===""?null:u.jsx(Fe,{options:r,children:e})]})}var Zg=["scrollRef","getItemDisplayText","getKey"];function cr(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function dr(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?cr(Object(n),!0).forEach(function(r){ey(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):cr(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function ey(t,e,n){return(e=ty(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function ty(t){var e=ny(t,"string");return typeof e=="symbol"?e:e+""}function ny(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function ry(t,e){if(t==null)return{};var n,r,i=iy(t,e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(r=0;r<a.length;r++)n=a[r],e.indexOf(n)===-1&&{}.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function iy(t,e){if(t==null)return{};var n={};for(var r in t)if({}.hasOwnProperty.call(t,r)){if(e.indexOf(r)!==-1)continue;n[r]=t[r]}return n}function ay(t){var{scrollRef:e,getItemDisplayText:n,getKey:r}=t,i=ry(t,Zg),a=c.useCallback(o=>{var l=r(o),s=n(o);return u.jsx(ze,{textValue:s??String(l),children:u.jsx(Za,{text:s})},l)},[n,r]);return u.jsx(Wt,dr(dr({},i),{},{ref:e,menuTrigger:"focus",onSelectionChange:i.onSelectionChange,children:a}))}var oy=500;function sy(t){var{heading:e,content:n,delayMs:r=oy}=t,[i,a]=c.useState(!1);return c.useEffect(()=>{window.setTimeout(()=>{a(!0)},r)},[r]),i?u.jsxs(ni,{children:[u.jsx(Le,{size:"XXL",children:u.jsx(Y,{icon:pl})}),u.jsx(Xt,{children:e}),n==null?null:u.jsx(Ht,{children:n})]}):null}const eo={"handle-size":"15px","popover-width":"90px"};var Be=parseInt(eo["handle-size"],10),pr=parseInt(eo["popover-width"],10),X=24*60*60-1,fr=5*60;function ly(t){var{startTime:e,endTime:n,onChange:r,isStartModified:i=!1,isEndModified:a=!1,"data-testid":o}=t,[l,s]=c.useState(e),[d,f]=c.useState(n),p=c.useRef(null);c.useEffect(function(){s(e),f(n)},[e,n]);var h=c.useCallback((P,v)=>{var g=P,x=v;g===x&&(x<X?x+=1:g-=1),s(g),f(x),r({startTime:g,endTime:x})},[s,f,r]),m=c.useCallback(P=>{h(P,d)},[h,d]),y=c.useCallback(P=>{h(l,P)},[h,l]);return u.jsxs("div",{className:"time-slider","data-testid":o,children:[u.jsx(uy,{startTime:l,endTime:d,onStartTimeChange:m,onEndTimeChange:y,isStartModified:i,isEndModified:a}),u.jsxs("div",{className:"track",ref:p,children:[u.jsx(cy,{startTime:l,endTime:d}),u.jsx("div",{className:"ticks",children:Array(24).fill(null).map((P,v)=>u.jsx("div",{className:"tick"},v))}),u.jsx(hr,{track:p,time:l,setTime:m}),u.jsx(hr,{track:p,time:d,setTime:y})]}),u.jsxs("div",{className:"tick-labels",children:[u.jsx("div",{className:"tick-label",children:"0:00"}),u.jsx("div",{className:"tick-label-wrapper",children:Array(24).fill(null).map((P,v)=>u.jsx("div",{className:"tick-label",children:"".concat(v+1,":00")},v))})]})]})}function uy(t){var{startTime:e,endTime:n,onStartTimeChange:r,onEndTimeChange:i,isStartModified:a,isEndModified:o,"data-testid":l}=t,s=e>n,[d,f]=c.useState(s?n:e),[p,h]=c.useState(s?e:n),m=c.useRef(null),y=c.useRef(null),P=c.useRef(null),v=c.useRef(null);c.useEffect(function(){f(e>n?n:e),h(e>n?e:n)},[e,n]),c.useEffect(function(){if(P.current!==null){var O;(O=y.current)===null||O===void 0||O.setSelection(P.current)}if(v.current!==null){var _;(_=m.current)===null||_===void 0||_.setSelection(v.current)}},[s]);function g(b){e<=n?r(b):i(b)}function x(b){e<=n?i(b):r(b)}var S=c.useCallback(b=>{P.current=b,v.current=null},[]),E=c.useCallback(b=>{P.current=null,v.current=b},[]);return u.jsxs("div",{className:"time-slider-popovers",children:[u.jsx("div",{className:"flex",style:{flexBasis:"calc(".concat(d/X*100,"% - ").concat(pr/2,"px)")}}),u.jsxs("div",{className:"handle-popper",children:[u.jsx("label",{className:N({modified:s?o:a}),children:s?"End Time":"Start Time"}),u.jsx(qe,{ref:m,allowValueWrapping:!1,value:d,onChange:g,onSelect:S,"data-testid":l!==void 0?"".concat(l,"-input-1"):void 0})]}),u.jsx("div",{className:"flex-spacer"}),u.jsxs("div",{className:"handle-popper",children:[u.jsx("label",{className:N({modified:s?a:o}),children:s?"Start Time":"End Time"}),u.jsx(qe,{ref:y,allowValueWrapping:!1,value:p,onChange:x,onSelect:E,"data-testid":l!==void 0?"".concat(l,"-input-2"):void 0})]}),u.jsx("div",{className:"flex",style:{flexBasis:"calc(".concat((X-p)/X*100,"% - ").concat(pr/2,"px)")}})]})}function cy(t){var{startTime:e,endTime:n,"data-testid":r}=t;return u.jsxs("div",{className:"track-fills","data-testid":r,children:[e>n&&u.jsxs(u.Fragment,{children:[u.jsx("div",{className:"track-fill track-fill-start",style:{transform:"scaleX(".concat(n/X,")")}}),u.jsx("div",{className:"track-fill track-fill-end",style:{transform:"scaleX(".concat((X-e)/X,")")}})]}),e<n&&u.jsx("div",{className:"track-fill track-fill-middle",style:{transform:"translateX(".concat(e/X*100,"%) scaleX(").concat((n-e)/X,")")}})]})}function hr(t){var{track:e,time:n,setTime:r,"data-testid":i}=t,a=c.useMemo(()=>{var h=3600,m=Be/2;return n<h?m=n/h*(Be/2):n>23*h&&(m=Be/2+1/(X-23*h)*(n-23*h)*(Be/2)),"translateX(calc(".concat(n/X*100,"% - ").concat(m,"px))")},[n]),o=c.useCallback(h=>{if(!e.current)return 0;var m=e.current.getBoundingClientRect(),y=Math.max(h-m.left,0),P=X*Math.min(1,y/m.width),v=fr*Math.round(P/fr),g=Math.min(X,v);return g},[e]),l=c.useCallback(h=>{var{clientX:m}=h;r(o(m))},[r,o]),s=c.useCallback(h=>{var{clientX:m}=h;r(o(m)),window.removeEventListener("mousemove",l),window.removeEventListener("mouseup",s),document.documentElement.classList.remove("drag-pointer-events-none")},[r,o,l]),d=c.useCallback(()=>{window.addEventListener("mousemove",l),window.addEventListener("mouseup",s),document.documentElement.classList.add("drag-pointer-events-none")},[l,s]),f=c.useCallback(()=>{window.removeEventListener("mousemove",l),window.removeEventListener("mouseup",s),document.documentElement.classList.remove("drag-pointer-events-none")},[l,s]),p=c.useCallback(()=>{d()},[d]);return c.useEffect(function(){return()=>{f()}},[f]),u.jsx("div",{className:"handle-track",style:{transform:a},children:u.jsx("button",{className:"handle",type:"button","aria-label":"Change time",onMouseDown:p,"data-testid":i})})}function to(t){var{buttons:e,isShown:n=!1,classNames:r,message:i,type:a,onClick:o,onDismiss:l,"data-testid":s}=t,d=c.useRef(null),f=e&&e.length!==0;return u.jsx(ei,{in:n,timeout:Pt.transitionMs,classNames:"toast-notification-slide-up",mountOnEnter:!0,unmountOnExit:!0,nodeRef:d,children:u.jsxs("div",{ref:d,className:N("toast-notification",r,a),role:"presentation",onClick:o,onKeyPress:o,"data-testid":s,children:[u.jsx("div",{className:"message-container",children:u.jsx("span",{className:"message",children:i})}),u.jsx(Zt,{in:f,timeout:Pt.transitionSlowMs,mountOnEnter:!0,unmountOnExit:!0,children:u.jsx("div",{className:"buttons-container",children:e})}),l&&u.jsx(V,{kind:"ghost",icon:di,tooltip:"Close notification",className:"my-2",onClick:l})]})})}to.TYPE=Object.freeze({ERROR:"error"});const dy=Object.freeze(Object.defineProperty({__proto__:null,ACTION_ICON_HEIGHT:ln,Accordion:Yo,ActionBar:Zr,ActionButton:Xe,ActionButtonDialogTrigger:Ua,ActionGroup:Wp,ActionMenu:Hp,AlertDialog:Ko,AutoCompleteInput:te,AutoResizeTextarea:ag,Avatar:qo,Badge:zo,BasicModal:wi,Breadcrumbs:Xo,BulkActionBar:cg,Button:V,ButtonGroup:Jr,CSS_VAR_EXPRESSION_PREFIX:fl,Calendar:Qo,CardFlip:Cd,Checkbox:wt,CheckboxGroup:Mm,Collapse:Re,ColorEditor:Jo,ColorPicker:Zo,ColorValues:Ou,ComboBox:Vp,ComboBoxNormalized:Na,ConfirmActionButton:qm,ConfirmationDialog:Ba,Content:Ht,ContextActionUtils:le,ContextActions:it,ContextMenuItem:vi,ContextMenuRoot:Ya,ContextualHelp:es,ContextualHelpTrigger:ts,CopyButton:Pi,CustomTimeSelect:z,DEFAULT_DARK_THEME_KEY:hl,DEFAULT_DARK_THEME_PALETTE:ml,DEFAULT_GET_PREFERRED_REPLACEMENT_STRING:ca,DEFAULT_LIGHT_THEME_KEY:gl,DEFAULT_PRELOAD_DATA_VARIABLES:yl,DH_CSS_VAR_NAME_REGEXP:vl,DH_VAR_PREFIX:bl,DashboardList:Qa,DateField:ns,DateInput:za,DatePicker:rs,DateRangePicker:is,DateTimeInput:Gp,DebouncedModal:Va,DebouncedSearchInput:Eu,Dialog:zr,DialogContainer:as,DialogTrigger:qr,Disclosure:os,DisclosurePanel:ss,DisclosureTitle:ls,Divider:Xr,DragUtils:Tt,DraggableItemList:Yp,DropdownMenu:bi,EXTERNAL_THEME_KEY:Pl,EditableItemList:Ig,ErrorBoundary:Cu,ErrorView:kg,FadeTransition:Zt,Flex:Kr,FontBootstrap:Aa,FontsLoaded:Fa,FontsLoadedContext:lt,Footer:us,Form:Qr,GLOBAL_SHORTCUTS:at,Grid:cs,Header:ds,Heading:Xt,HierarchicalCheckboxMenu:Pe,ITEM_EMPTY_STRING_TEXT_VALUE:Kp,Icon:Le,IconActionButton:Wa,IllustratedMessage:ni,Image:ps,InfoModal:Ga,InlineAlert:fs,Item:ze,ItemContent:qp,ItemList:xt,ItemListItem:Tu,ItemTooltip:zp,KEY:q,Keyboard:hs,LIST_VIEW_ROW_HEIGHTS:da,LabeledValue:ms,Link:ri,ListActionGroup:Xp,ListActionMenu:Qp,ListView:bm,ListViewNormalized:Ma,ListViewWrapper:pn,LoadingOverlay:me,LoadingSpinner:Qe,LogicButton:gs,Logo:em,MODIFIER:H,MSG_REQUEST_GET_THEME:xl,MSG_REQUEST_SET_THEME:li,MaskedInput:un,Menu:Jp,MenuItem:Zp,MenuTrigger:ys,Meter:vs,Modal:Yt,ModalBody:Kt,ModalFooter:Si,ModalHeader:fi,NAVIGATION_SHORTCUTS:jg,NON_WHITESPACE_REGEX:wl,NavTabList:Vg,NumberField:bs,Option:pa,PICKER_ITEM_HEIGHTS:ef,PICKER_TOP_OFFSET:tf,PRELOAD_TRANSPARENT_THEME_QUERY_PARAM:Sl,Page:nf,Picker:rf,PickerNormalized:af,Popper:rt,ProgressBar:Ps,ProgressCircle:xs,Radio:ws,RadioGroup:Ss,RandomAreaPlotAnimation:Ja,RangeCalendar:Os,RangeSlider:Es,SVG_ICON_MANUAL_COLOR_MAP:Ol,SearchField:Cs,SearchInput:Qt,SearchableCombobox:ay,Section:of,Select:Oi,SelectValueList:fa,Shortcut:ju,ShortcutRegistry:pe,SlideTransition:sf,Slider:Ts,SocketedButton:Td,SpectrumButton:vt,SpectrumCheckbox:yt,SpectrumComboBox:Wt,SpectrumMenu:js,SplitButtonGroup:Iu,Stack:lf,StatusLight:Is,SubmenuTrigger:ks,Switch:_s,TABLE_ROW_HEIGHT:uf,THEME_CACHE_LOCAL_STORAGE_KEY:El,THEME_KEY_OVERRIDE_QUERY_PARAM:Cl,TMP_CSS_PROP_PREFIX:Tl,TRANSPARENT_PRELOAD_DATA_VARIABLES:jl,TabList:Rs,TabPanels:jh,TableViewEmptyState:sy,Tabs:Ds,TagGroup:Ls,Text:nt,TextArea:As,TextField:Fs,TextWithTooltip:Za,ThemeContext:ku,ThemeExport:Pt,ThemePicker:Zh,ThemeProvider:Ei,TimeField:Ns,TimeInput:qe,TimeSlider:ly,ToastContainer:Ms,ToastNotification:to,ToastQueue:$s,ToggleButton:Us,Tooltip:Fe,UISwitch:_u,View:$a,WHITESPACE_REGEX:Il,Well:Bs,XComponentMapContext:Ru,XComponentMapProvider:Du,baseStyleProps:Ws,calculatePreloadStyleContent:kl,canHaveRef:Ci,colorValueStyle:J,createCssVariableResolver:_l,createPreloadStyleElement:Rl,createXComponent:Lu,extractDistinctCssVariableExpressions:Dl,fillToLength:cf,getActiveThemes:Ll,getDefaultBaseThemes:Al,getDefaultSelectedThemeKey:Fl,getExpressionRanges:Nl,getItemKey:Ct,getItemTextValue:df,getPositionOfSelectedItemElement:pf,getThemeKey:Ml,getThemeKeyOverride:$l,getThemePreloadData:Ul,isBaseThemeKey:Bl,isClassComponent:Au,isDHColorValue:Fu,isExternalThemeData:ui,isExternalThemeEnabled:Vt,isForwardRefComponentType:Nu,isItemElement:ff,isItemElementWithDescription:hf,isItemOrSection:mf,isNormalizedItemsWithKeysList:gf,isNormalizedSection:yf,isPreloadTransparentTheme:Wl,isSectionElement:vf,isValidColorVar:Hl,isWrappedComponent:Ti,itemSelectionToStringSet:Ge,normalizeTooltipOptions:on,overrideSVGFillColors:Vl,parseExternalThemeData:oi,preloadTheme:Gl,replaceSVGFillColor:Yl,requestExternalThemeData:si,resolveCssVariablesInRecord:pi,resolveCssVariablesInString:Kl,separateSpectrumProps:Ra,setThemePreloadData:ql,themeDHDefault:zl,themeDark:Xl,themeLight:Ql,trimTrailingMask:bf,useExternalTheme:La,useOnChangeTrackUncontrolled:Pf,usePickerItemScale:ha,usePickerNormalizedProps:sa,usePickerProps:xf,usePickerScrollOnOpen:wf,useRenderNormalizedItem:ua,useSpectrumThemeProvider:an,useStaticItemInitialScrollPosition:Sf,useStringifiedMultiSelection:Da,useStringifiedSelection:Of,useStyleProps:Hs,useTheme:tt,useXComponent:Mu,viewStyleProps:Vs,wrapIcon:Ef,wrapItemChildren:la,wrapPrimitiveWithText:Cf},Symbol.toStringTag,{value:"Module"}));var no=$.memo(t=>{var{children:e,onError:n,widget:r}=t,[i,a]=en(r);return a!=null?(n==null||n(a),null):i==null?null:u.jsx(qt.Provider,{value:i,children:e})});no.displayName="DeferredApiBootstrap";var ut=c.createContext(null);ut.displayName="ObjectFetchManagerContext";function ro(t){var[e,n]=c.useState({status:"loading"}),r=c.useContext(ut);return c.useEffect(()=>{if(r==null){n({error:new Error("No ObjectFetchManager available in context"),status:"error"});return}return n(i=>i.status==="loading"?i:{status:"loading"}),r.subscribe(t,n)},[t,r]),e}function mr(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function gr(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?mr(Object(n),!0).forEach(function(r){py(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):mr(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function py(t,e,n){return(e=fy(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function fy(t){var e=hy(t,"string");return typeof e=="symbol"?e:e+""}function hy(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function yr(t,e,n,r,i,a,o){try{var l=t[a](o),s=l.value}catch(d){return void n(d)}l.done?e(s):Promise.resolve(s).then(r,i)}function my(t){return function(){var e=this,n=arguments;return new Promise(function(r,i){var a=t.apply(e,n);function o(s){yr(a,r,i,o,l,"next",s)}function l(s){yr(a,r,i,o,l,"throw",s)}o(void 0)})}}var We=B.module("useWidget");function gy(t){var[e,n]=c.useState(()=>({widget:null,error:null})),r=ro(t),[i,a]=en(t),o=ge(),l=i??o;c.useEffect(function(){We.debug("loadWidget",t);var{status:f}=r;if(f==="error"){n({widget:null,error:r.error});return}if(f==="loading"){n({widget:null,error:null});return}var{fetch:p}=r,h=!1;function m(){return y.apply(this,arguments)}function y(){return y=my(function*(){try{Je(p);var P=yield p();if(h){We.debug2("loadWidgetInternal cancelled",t,P),P.close(),"exportedObjects"in P&&P.exportedObjects.forEach(v=>{v.close()});return}We.debug("loadWidgetInternal done",t,P),n({widget:P,error:null})}catch(v){if(h)return;We.error("loadWidgetInternal error",t,v),n({widget:null,error:v??new Error("Null error")})}}),y.apply(this,arguments)}return m(),()=>{h=!0}},[t,r]);var s=c.useMemo(()=>{var d;return gr(gr({},e),{},{error:(d=e.error)!==null&&d!==void 0?d:a,api:e.widget!=null?l:null})},[e,l,a]);return s}const yy=Object.freeze(Object.defineProperty({__proto__:null,ApiBootstrap:Jl,ApiContext:qt,ClientBootstrap:mi,ClientContext:ou,DeferredApiBootstrap:no,DeferredApiContext:jd,ObjectFetchManagerContext:ut,ObjectFetcherContext:ji,getVariableDescriptor:$u,isIdVariableDescriptor:Uu,isNameVariableDescriptor:Bu,isVariableDescriptor:Wu,sanitizeVariableDescriptor:Ii,useApi:ge,useClient:Ae,useDeferredApi:en,useObjectFetch:ro,useObjectFetcher:Hu,useWidget:gy},Symbol.toStringTag,{value:"Module"}));function vy(t){return function(n){var{children:r}=n;return u.jsx(qt.Provider,{value:t,children:r})}}var io="io.deephaven.message.LoginOptions.request",ao="io.deephaven.message.SessionDetails.request",oo="io.deephaven.broadcast",fn="io.deephaven.broadcast.Login",so="io.deephaven.broadcast.Logout";function lo(t){return Ze(t)&&t.message===fn}function uo(t){return Ze(t)&&t.message===so}function by(t,e,n){return(e=Py(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Py(t){var e=xy(t,"string");return typeof e=="symbol"?e:e+""}function xy(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}class co extends Error{constructor(){super(...arguments),by(this,"isNoConsolesError",!0)}}function po(t){return t.isNoConsolesError}function vr(t,e,n,r,i,a,o){try{var l=t[a](o),s=l.value}catch(d){return void n(d)}l.done?e(s):Promise.resolve(s).then(r,i)}function ct(t){return function(){var e=this,n=arguments;return new Promise(function(r,i){var a=t.apply(e,n);function o(s){vr(a,r,i,o,l,"next",s)}function l(s){vr(a,r,i,o,l,"throw",s)}o(void 0)})}}var Te=B.module("SessionUtils");function fo(t,e,n){return It.apply(this,arguments)}function It(){return It=ct(function*(t,e,n){Te.info("Getting console types...");var r=yield e.getConsoleTypes();if(r.length===0)throw new co("No console types available");Te.info("Available types:",r);var i=r[0];Te.info("Starting session with type",i);var a=yield e.startSession(i),o={type:i,id:Bt()};return Te.info("Console session established",o),{session:a,config:o,connection:e,details:n,dh:t}}),It.apply(this,arguments)}function wy(t,e,n){return Te.info("createCoreClient",e),new t.CoreClient(e,n)}function Sy(t){return t!=null&&typeof t=="object"}function Oy(){return kt.apply(this,arguments)}function kt(){return kt=ct(function*(){var t=yield zt(ao);if(!Sy(t))throw new Error("Unexpected session details response: ".concat(t));return t}),kt.apply(this,arguments)}function Ey(){return _t.apply(this,arguments)}function _t(){return _t=ct(function*(){var t=new URLSearchParams(window.location.search);switch(t.get("authProvider")){case"parent":return Oy()}return{}}),_t.apply(this,arguments)}function Cy(t,e,n){return Rt.apply(this,arguments)}function Rt(){return Rt=ct(function*(t,e,n){var r;try{r=yield fo(t,e,n)}catch(i){if(!po(i))throw i}return r}),Rt.apply(this,arguments)}const Ty=Object.freeze(Object.defineProperty({__proto__:null,BROADCAST_CHANNEL_NAME:oo,BROADCAST_LOGIN_MESSAGE:fn,BROADCAST_LOGOUT_MESSAGE:so,BooleanColumnFormatter:Id,CharColumnFormatter:kd,DateTimeColumnFormatter:Vu,DateUtils:_d,DecimalColumnFormatter:Gu,DefaultColumnFormatter:Rd,FETCH_TIMEOUT:su,Formatter:tn,FormatterUtils:Et,ITEM_KEY_PREFIX:Dd,IntegerColumnFormatter:Yu,LOGIN_OPTIONS_REQUEST:io,NewTableColumnTypes:Ku,NoConsolesError:co,SESSION_DETAILS_REQUEST:ao,StringColumnFormatter:Ld,TableColumnFormatter:qu,TableUtils:Ad,createComboboxFilterArgs:Fd,createCoreClient:wy,createFilterConditionFactory:nn,createFormatterFromSettings:Nd,createKeyedItemKey:qi,createNotNullOrEmptyFilterCondition:zi,createOnTableUpdatedHandler:Md,createSearchTextFilter:Xi,createSelectedValuesFilter:rn,createSessionWrapper:fo,createShowOnlyEmptyFilterCondition:Qi,createValueFilter:Ji,defaultRowDeserializer:$d,fetchVariableDefinition:lu,generateEmptyKeyedItems:Ud,getColumnFormats:Bd,getDateTimeFormatterOptions:Wd,getSessionDetails:Ey,getSize:Hd,getWindowParent:Gt,isBroadcastLoginMessage:lo,isBroadcastLogoutMessage:uo,isClosed:Vd,isCustomColumnFormatDefined:Gd,isMessage:Ze,isNoConsolesError:po,isResponse:Zl,isSortDirection:Yd,loadSessionWrapper:Cy,makeMessage:hi,makeResponse:eu,padFirstAndLastRow:Kd,requestParentResponse:zt},Symbol.toStringTag,{value:"Module"}));function jy(t,e,n){return(e=Iy(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Iy(t){var e=ky(t,"string");return typeof e=="symbol"?e:e+""}function ky(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}class _y extends Error{constructor(){super(...arguments),jy(this,"isColumnNameError",!0)}}function Ry(t,e,n){return(e=Dy(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Dy(t){var e=Ly(t,"string");return typeof e=="symbol"?e:e+""}function Ly(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}class Ay extends Error{constructor(){super(...arguments),Ry(this,"isTableDisconnectError",!0)}}var He=B.module("useTable"),ho=(t,e,n,r)=>{var i=ge(),[a,o]=c.useState(void 0),[l,s]=c.useState([]),[d,f]=c.useState(null),[p,h]=c.useState(null);c.useEffect(()=>{if(r===void 0){o(t==null?void 0:t.columns),f(null);return}try{o(t==null?void 0:t.findColumns(r)),f(null)}catch(v){He.error("Column not found",v,r),f(new _y("Invalid columnNames argument"))}},[t,r]),c.useEffect(()=>{if(!a||!t){He.debug2("Table or column not initialized, skip viewport update.");return}He.debug2("Setting viewport",e,n),t.setViewport(e,n,a)},[a,t,e,n]);var m=c.useCallback(v=>{var{detail:g}=v;if(!a){He.error("Columns not initialized.");return}var x=a.map(S=>g.rows.map(E=>E.get(S)));s(x)},[a]),y=c.useCallback(()=>{h(new Ay("Table disconnected"))},[]),P=c.useCallback(()=>{h(null)},[]);return Ye(t,i.Table.EVENT_UPDATED,m),Ye(t,i.Table.EVENT_DISCONNECT,y),Ye(t,i.Table.EVENT_RECONNECT,P),{columns:a,data:l,error:p??d}},mo=(t,e,n,r)=>{var i=c.useMemo(()=>[r],[r]),{columns:a=[],data:o=[],error:l}=ho(t,e,n,i);return{column:a[0],data:o[0],error:l}};function br(t,e,n,r,i,a,o){try{var l=t[a](o),s=l.value}catch(d){return void n(d)}l.done?e(s):Promise.resolve(s).then(r,i)}function Fy(t){return function(){var e=this,n=arguments;return new Promise(function(r,i){var a=t.apply(e,n);function o(s){br(a,r,i,o,l,"next",s)}function l(s){br(a,r,i,o,l,"throw",s)}o(void 0)})}}var re=B.module("TableInput"),ft=250;function Ny(t){var e,n,{className:r=void 0,columnName:i,settings:a,defaultValue:o=[],isInvalid:l=!1,onChange:s=ne,onBlur:d=ne,table:f}=t,p=c.useRef(null),h=ge(),m=c.useMemo(()=>{var w=Et.getColumnFormats(a),T=Et.getDateTimeFormatterOptions(a),{defaultDecimalFormatOptions:C={},defaultIntegerFormatOptions:A={}}=a;return new tn(h,w,T,C,A)},[h,a]),[y,P]=c.useState(""),[v,g]=c.useState(new Set(o)),[x,S]=c.useState(),E=c.useRef(null),b=Math.min((e=x==null?void 0:x.size)!==null&&e!==void 0?e:0,ft),{column:O,data:_,error:I}=mo(x,0,ft-1,i),R=c.useCallback(w=>O?m.getFormattedString(w,O.type,O.name):"".concat(w),[O,m]),[F,W]=c.useMemo(()=>{var w=new Set(v),T=[];if(_==null)return[T,null];if(_.forEach(A=>{var K="".concat(A),Oe=v.has(K);Oe&&w.delete(K),T.push({value:K,displayValue:R(A),isSelected:Oe})}),w.size>0){re.debug2("Selection has items that are missing from the viewport");var C=new Set(v);return Array.from(w).forEach(A=>{C.delete(A)}),[T,C]}return[T,null]},[_,v,R]);c.useEffect(()=>{W!==null&&(g(W),s(Array.from(W)))},[s,W]);var j=c.useCallback(function(){var w=Fy(function*(T){try{var C=yield T;re.debug("Table resolved",C),S(C)}catch(A){if(he.isCanceled(A))return;re.error(A)}});return function(T){return w.apply(this,arguments)}}(),[]);c.useEffect(()=>{var w=he.makeCancelable(f);return j(w),()=>{re.debug2("Cancel table promise"),w.cancel()}},[f,j]);var L=c.useCallback(w=>{var{value:T}=w.target;P(T);var C=F.findIndex(K=>K.displayValue.includes(T));if(C>-1){var A;re.debug2("Found ".concat(T," at index ").concat(C)),(A=E.current)===null||A===void 0||A.scrollIntoView(C)}else re.debug2("".concat(T," not found"))},[F,E]),D=c.useCallback(w=>{if(re.debug("handleSelect",w),w>=F.length){re.error("Invalid index",w);return}var T=F[w].value,C=new Set(v);F[w].isSelected?C.delete(T):C.add(T),g(C),s(Array.from(C))},[s,F,v]),U=c.useCallback(()=>{var w=F.map(C=>C.value),T=new Set(w);g(T),s(w)},[F,s]),Q=c.useCallback(()=>{g(new Set),s([])},[s]),Z=c.useCallback(()=>{},[]),G=c.useCallback(w=>{var T,{relatedTarget:C}=w;re.debug("handleChildBlur",C,C instanceof HTMLElement,p.current,(T=p.current)===null||T===void 0?void 0:T.contains(C)),(!C||p.current&&C instanceof HTMLElement&&!p.current.contains(C))&&d()},[d]),k=F.length===0;return u.jsxs("div",{ref:p,className:N("table-input-container d-flex flex-column position-relative",r),children:[u.jsx(Qt,{disabled:!!I||k,value:y,placeholder:"Search",onChange:L,className:"mb-2 d-flex",onBlur:G}),u.jsx(fa,{className:"table-input-list",disabled:x===void 0||k,isInvalid:l,items:k?[{value:"Empty",isSelected:!1}]:F,itemCount:b,offset:0,onSelect:D,onViewportChange:Z,ref:E,onBlur:G}),x&&u.jsxs("div",{className:"meta-row",children:[u.jsx("div",{className:"d-flex align-items-center text-muted small",children:x!=null&&x.size>b&&u.jsxs(u.Fragment,{children:["Table is too large, showing the first ",ft," items."]})}),u.jsxs("div",{children:[u.jsx("button",{type:"button",className:"btn btn-link",onBlur:G,onClick:U,children:"Select All"}),u.jsx("button",{type:"button",className:"btn btn-link mr-a",onBlur:G,onClick:Q,children:"Clear"})]})]}),x==null||I&&u.jsx("div",{className:"h-100 w-100 position-absolute",children:u.jsx(me,{isLoaded:x!=null,isLoading:x==null&&I==null,errorMessage:(n=I==null?void 0:I.message)!==null&&n!==void 0?n:null,"data-testid":"table-input-loading"})})]})}var My=["onInputChange","onSearchTextChange"];function Pr(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function xr(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Pr(Object(n),!0).forEach(function(r){$y(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Pr(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function $y(t,e,n){return(e=Uy(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Uy(t){var e=By(t,"string");return typeof e=="symbol"?e:e+""}function By(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Wy(t,e){if(t==null)return{};var n,r,i=Hy(t,e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(r=0;r<a.length;r++)n=a[r],e.indexOf(n)===-1&&{}.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function Hy(t,e){if(t==null)return{};var n={};for(var r in t)if({}.hasOwnProperty.call(t,r)){if(e.indexOf(r)!==-1)continue;n[r]=t[r]}return n}function Vy(t){var e=Tf(t),{onInputChange:n,onSearchTextChange:r}=e,i=Wy(e,My),a=c.useRef(!1),o=c.useRef(""),l=c.useCallback(d=>{n==null||n(d),a.current?r(d):(r(""),o.current=d)},[n,r]),s=c.useCallback((d,f)=>{var p;(p=i.onOpenChange)===null||p===void 0||p.call(i,d),d?f==="input"&&r(o.current):r(""),a.current=d},[r,i]);return u.jsx(Na,xr(xr({},i),{},{onInputChange:l,onOpenChange:s}))}var Gy=["table","keyColumn","labelColumn","iconColumn","settings"];function wr(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function Sr(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?wr(Object(n),!0).forEach(function(r){Yy(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):wr(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function Yy(t,e,n){return(e=Ky(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Ky(t){var e=qy(t,"string");return typeof e=="symbol"?e:e+""}function qy(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function zy(t,e){if(t==null)return{};var n,r,i=Xy(t,e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(r=0;r<a.length;r++)n=a[r],e.indexOf(n)===-1&&{}.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function Xy(t,e){if(t==null)return{};var n={};for(var r in t)if({}.hasOwnProperty.call(t,r)){if(e.indexOf(r)!==-1)continue;n[r]=t[r]}return n}function Qy(t){var e,{table:n,keyColumn:r,labelColumn:i,iconColumn:a,settings:o}=t,l=zy(t,Gy),{scale:s}=an(),d=da[(e=l.density)!==null&&e!==void 0?e:"regular"][s],{getFormattedString:f}=ma(o),p=jf({table:n,iconColumnName:a,keyColumnName:r,labelColumnName:i,formatValue:f}),{viewportData:h,onScroll:m}=cn({reuseItemsOnTableResize:!0,table:n,itemHeight:d,deserializeRow:p});return u.jsx(Ma,Sr(Sr({},l),{},{normalizedItems:h.items,showItemIcons:a!=null,onScroll:m}))}function Jy(t){return typeof t=="object"&&t!=null&&"equals"in t&&typeof t.equals=="function"}function Zy(t){return"".concat(t)}function ev(t){var{column:e,table:n,filter:r=xi,onChange:i,selectedValue:a,disabled:o,className:l,formatValue:s=Zy,maxSize:d=1e3}=t,f=ge(),[p,h]=c.useState([]);c.useEffect(()=>{if(n==null){h([]);return}var v=e??n.columns[0];n.applyFilter(r);var g=n.setViewport(0,d,[v]);return g.addEventListener(f.Table.EVENT_UPDATED,x=>{var{detail:S}=x,E=S.rows.map(b=>{var O;return(O=b.get(v))!==null&&O!==void 0?O:null});h(E)}),()=>{g.close()}},[e,f,r,d,n]);var m=c.useMemo(()=>a===void 0?[void 0,...p]:p,[a,p]),y=c.useMemo(()=>m.findIndex(v=>v===a||Jy(v)&&v.equals(a)),[a,m]),P=c.useCallback(v=>{var g=parseInt(v,10);i(m[g])},[i,m]);return u.jsx(Oi,{className:l,value:y,onChange:P,disabled:o,children:m.map((v,g)=>u.jsx(pa,{value:g,children:s(v)},"".concat(g)))})}var Or=B.module("useBroadcastChannel");function hn(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:ne,e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:oo,n=c.useMemo(()=>new BroadcastChannel(e),[e]);return c.useEffect(()=>()=>{n.close()},[n]),c.useEffect(()=>{function r(i){var{data:a}=i;if(!Ze(a)){Or.debug("Ignoring non-deephaven message",a);return}Or.debug("event received",a),t(i)}return n.addEventListener("message",r),()=>{n.removeEventListener("message",r)}},[n,t]),n}function mn(t,e){var n=c.useCallback(r=>{lo(r.data)?t==null||t(r.data):uo(r.data)&&(e==null||e(r.data))},[t,e]);hn(n)}function tv(t,e,n,r){var i=de(),[a,o]=c.useState(""),{value:l}=Ne(a,n),s=c.useCallback(h=>{o(h.trim())},[]),{data:d,isLoading:f}=Se(i.doesColumnValueExist,[t,e,l,r]),p=f||a!==l?null:d;return{valueTrimmed:a,valueTrimmedDebounced:l,valueExists:p,trimAndUpdateValue:s}}var Er=B.module("useDebouncedViewportSearch"),nv=200;function rv(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:nv,r=de(),{table:i,applyFiltersAndRefresh:a}=t,o=c.useMemo(()=>je(l=>{if(Er.debug("Applying debounced searchText '".concat(l,"'")),i!=null){var s=l.trim();if(s===""){a([]);return}var d=i.findColumn(e),f=r.makeFilterValue(d.type,s),p=[d.filter().contains(f)];a(p)}},n),[a,e,n,i,r]);return c.useEffect(()=>()=>{Er.debug("Cancelling debounced search function"),o.cancel()},[o]),o}var go=300;function iv(t){var{viewportData:e,columnName:n,shouldSelectAllOnNoSelection:r,mapItemToValue:i}=t,a=de(),o=ja(e,i,qi),{value:l}=Ne(o,go),s=Ca(l,wa);return c.useMemo(()=>rn(a,n,s.selection,r,s.isInverted),[n,s,r,a])}function av(t,e,n,r){var i=c.useRef("");return i.current=n,c.useMemo(()=>{var a=t.length>0&&t[0].item==null;return!a&&r!=null&&(i.current===""||r.toLowerCase().includes(i.current.toLowerCase()))?[{key:r,item:{[e]:r}},...t]:t},[r,e,t])}function Cr(t,e,n,r,i,a,o){try{var l=t[a](o),s=l.value}catch(d){return void n(d)}l.done?e(s):Promise.resolve(s).then(r,i)}function ov(t){return function(){var e=this,n=arguments;return new Promise(function(r,i){var a=t.apply(e,n);function o(s){Cr(a,r,i,o,l,"next",s)}function l(s){Cr(a,r,i,o,l,"throw",s)}o(void 0)})}}function sv(t){var{table:e,columnName:n,defaultValue:r,itemHeight:i,topOffset:a=0,value:o}=t;return c.useCallback(ov(function*(){if(e==null||o===""||o===r)return a;var l=e.findColumn(n),s=yield e.seekRow(0,l,"String",o),d=r==null?0:1;return(s+d)*i+a}),[n,r,i,e,a,o])}function lv(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"or",n=de(),r=c.useMemo(()=>zi(n),[n]);return c.useMemo(()=>nn(t,r,e),[t,e,r])}function uv(t){var{maybeTable:e,columnName:n,mapItemToValue:r,filterConditionFactories:i=[],trimSearchText:a=!1,timeZone:o}=t,{itemHeight:l}=ha(),s=de(),[d,f]=c.useState(""),[p,h]=c.useState(""),m=c.useCallback(w=>{h(a?w.trim():w)},[a]),y=c.useMemo(()=>a?d.trim():d,[d,a]),[P,v]=c.useState(null),[g,x]=c.useState(()=>new Map),{data:S,isLoading:E}=Se(s.doesColumnValueExist,[e,n,p,!1]),{isDebouncing:b}=Ne(p,Cn),O=b||E?null:S,_=c.useMemo(()=>Xi(s,n,p,o),[p,n,s,o]),I=c.useMemo(()=>rn(s,n,new Set(g.keys()),!1,!0),[n,g,s]),{data:R}=Se(s.createDistinctSortedColumnTable,[e,n,"asc",...i]);ga(R);var F=cn({table:R,itemHeight:l,viewportSize:If,viewportPadding:kf}),W=y.length>0&&F.size===0,j=g.has(y),L=Ie(m,Cn),D=c.useCallback(w=>{f(w),L(w)},[L]),U=Ie(v,0),Q=c.useCallback(w=>{if(f(""),m(""),v(w),U(null),w!=null){var T=F.viewportData.findItem(w);if(T!=null){var C=r(T);x(A=>{var K=new Map(A);return K.set(C,{value:C}),K})}}},[m,U,F.viewportData,r]),Z=c.useCallback(w=>{x(T=>{if(w.size===0)return T;var C=new Map(T);for(var A of w)C.set(A,{value:A});return C})},[]),G=c.useCallback(w=>{x(T=>{if(w==="all")return new Map;var C=new Map(T);for(var A of w)C.delete(A);return C})},[]),k=ya(F.table,_,I);return va(F,k),c.useMemo(()=>({list:F,hasSearchTextWithZeroResults:W,searchText:d,searchTextExists:O,searchTextIsInSelectedValues:j,selectedKey:P,selectedValueMap:g,onSearchTextChange:D,onSelectKey:Q,onAddValues:Z,onRemoveValues:G}),[W,F,Z,G,D,Q,d,O,j,P,g])}function Tr(t,e,n,r,i,a,o){try{var l=t[a](o),s=l.value}catch(d){return void n(d)}l.done?e(s):Promise.resolve(s).then(r,i)}function cv(t){return function(){var e=this,n=arguments;return new Promise(function(r,i){var a=t.apply(e,n);function o(s){Tr(a,r,i,o,l,"next",s)}function l(s){Tr(a,r,i,o,l,"throw",s)}o(void 0)})}}function dv(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];var i=c.useCallback(cv(function*(){var d;return(d=t==null?void 0:t.selectDistinct(t.findColumns(n)))!==null&&d!==void 0?d:null}),[t,...n]),{data:a,error:o,isError:l,isLoading:s}=Se(i,[]);return c.useEffect(()=>()=>{a==null||a.close()},[a]),{distinctTable:a,error:o,isError:l,isLoading:s}}function pv(t,e){var n=de(),r=c.useMemo(()=>Qi(n,t),[t,n]);return c.useMemo(()=>nn(e,r),[e,r])}function fv(t,e,n){var r=de();return c.useMemo(()=>Ji(r,t,e,n),[t,n,r,e])}const hv=Object.freeze(Object.defineProperty({__proto__:null,ComboBox:Vy,DEBOUNCE_MS:go,ListView:Qy,Picker:_f,TableDropdown:ev,TableInput:Ny,makeApiContextWrapper:vy,useBroadcastChannel:hn,useBroadcastLoginListener:mn,useCheckIfExistsValue:tv,useDebouncedViewportSearch:rv,useDebouncedViewportSelectionFilter:iv,useFilterConditionFactories:ya,useFilteredItemsWithDefaultValue:av,useFormatter:ma,useGetItemIndexByValue:Rf,useGetItemPosition:sv,useInitializeViewportData:Df,useNotNullOrEmptyFilter:lv,usePickerWithSelectedValues:uv,useSearchableViewportData:Lf,useSelectDistinctTable:dv,useSetPaddedViewportCallback:Af,useShowOnlyEmptyFilter:pv,useTable:ho,useTableClose:Ff,useTableColumn:mo,useTableListener:Ye,useTableSize:Nf,useTableUtils:de,useValueFilter:fv,useViewportData:cn,useViewportFilter:va,useWidgetClose:ga},Symbol.toStringTag,{value:"Module"}));function yo(t){var{isEnabled:e,isPending:n,themeData:r}=La();return c.useMemo(()=>e?n?null:r?[r]:[]:t==null?null:ki(t),[e,n,r,t])}function mv(t){var{fetch:e,type:n}=t,r=Jt(),i=c.useMemo(()=>[...r.values()].filter(_i).find(o=>[o.supportedTypes].flat().includes(n)),[r,n]);if(i!=null){var a=i.component;return u.jsx(a,{fetch:e})}throw new Error("Unknown widget type '".concat(n,"'"))}function gv(t){var{dashboardProps:e,componentName:n,component:r,supportedTypes:i,hydrate:a,dehydrate:o}=t,{id:l,layout:s,registerComponent:d}=e,f=c.useCallback(p=>{var{dragEvent:h,panelId:m=Bt(),widget:y}=p,{name:P,type:v}=y,g=v!=null&&(Array.isArray(i)&&i.includes(v)||v===i);if(g){var x={localDashboardId:l,metadata:y};a!=null&&(x=a(x,l));var S={type:"react-component",component:n,props:x,title:P??void 0,id:m},{root:E}=s;Ri.openComponent({root:E,config:S,dragEvent:h})}},[n,a,l,s,i]);Zi(d,r,a,o),Di(s.eventHub,f)}function yv(t,e){var n=Gs(),r=Ys(a=>Li(a,t,e)),i=c.useCallback(a=>n(Ai(t,e,a)),[t,e,n]);return[r,i]}const vv=Object.freeze(Object.defineProperty({__proto__:null,BasePanel:Sn,CLOSE_DASHBOARD:zu,CREATE_DASHBOARD:Xu,DEFAULT_DASHBOARD_ID:Qu,DH_ID_PROP:Ju,Dashboard:xn,DashboardIdContext:Zu,DashboardLayout:ec,DashboardUtils:tc,GLPropTypes:nc,LayoutManagerContext:rc,LayoutUtils:Ri,LazyDashboard:uu,Panel:Sn,PanelErrorBoundary:ic,PanelEvent:ac,PanelIdContext:oc,PanelManager:sc,PersistentStateContext:lc,PersistentStateProvider:Fi,SET_DASHBOARD_DATA:uc,TabEvent:cc,assertIsDashboardPluginProps:qd,canHaveRef:Ci,default:xn,dehydrate:dc,emitCloseDashboard:pc,emitCreateDashboard:fc,emitCycleToNextStack:hc,emitCycleToNextTab:mc,emitCycleToPreviousStack:gc,emitCycleToPreviousTab:yc,emitPanelOpen:vc,getAllDashboardsData:bc,getClosedPanelsForDashboard:Pc,getDashboardData:xc,getOpenedPanelMapForDashboard:wc,getPluginDataForDashboard:Li,getPluginDataMapForDashboard:Sc,hydrate:Oc,isDashboardPluginProps:zd,isWrappedComponent:Ti,listenForCloseDashboard:Ec,listenForCreateDashboard:Cc,listenForCycleToNextStack:Tc,listenForCycleToNextTab:jc,listenForCycleToPreviousStack:Ic,listenForCycleToPreviousTab:kc,listenForPanelOpen:_c,reducers:Rc,setDashboardData:Dc,setDashboardPluginData:Ai,updateDashboardData:Lc,useAppDispatch:Ac,useAppSelector:Ni,useAppStore:Fc,useCloseDashboardListener:Nc,useCreateDashboardListener:Mc,useCycleToNextStackListener:$c,useCycleToNextTabListener:Uc,useCycleToPreviousStackListener:Bc,useCycleToPreviousTabListener:Wc,useDashboardId:Hc,useDashboardPanel:gv,useDashboardPluginData:yv,useDhId:Vc,useLayoutManager:Xd,useListener:Gc,usePanelId:Yc,usePanelOpenListener:Di,usePanelRegistration:Zi,usePersistentState:ea},Symbol.toStringTag,{value:"Module"}));function bv(){var t=Jt(),e=c.useMemo(()=>Mi(t),[t]);return e}const Pv=Object.freeze(Object.defineProperty({__proto__:null,PersistentStateProvider:Fi,PluginType:$i,PluginsContext:ot,WidgetView:mv,getDashboardPlugins:cu,getIconForPlugin:Kc,getPluginsElementMap:Mi,getThemeDataFromPlugins:ki,isAuthPlugin:Ui,isDashboardPlugin:qc,isElementPlugin:zc,isLegacyAuthPlugin:St,isLegacyDashboardPlugin:Xc,isLegacyPlugin:Bi,isLegacyTablePlugin:Qc,isPlugin:Ot,isTablePlugin:Jc,isThemePlugin:Zc,isWidgetPlugin:_i,pluginSupportsType:ed,useCustomThemes:yo,useDashboardPlugins:du,usePersistentState:ea,usePlugins:Jt,usePluginsElementMap:bv},Symbol.toStringTag,{value:"Module"}));function xv(t){if(t==null)return!1;var e=t;return e.Component!==void 0&&typeof e.isAvailable=="function"}var vo="io.deephaven.auth.AnonymousAuthenticationHandler",wv="io.deephaven.authentication.psk.PskAuthenticationHandler";function jr(t,e,n){return(e=Sv(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Sv(t){var e=Ov(t,"string");return typeof e=="symbol"?e:e+""}function Ov(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}class bo extends Error{constructor(){super(...arguments),jr(this,"name","AuthenticationError"),jr(this,"isAuthenticationError",!0)}}function Ir(t,e,n,r,i,a,o){try{var l=t[a](o),s=l.value}catch(d){return void n(d)}l.done?e(s):Promise.resolve(s).then(r,i)}function Ev(t){return function(){var e=this,n=arguments;return new Promise(function(r,i){var a=t.apply(e,n);function o(s){Ir(a,r,i,o,l,"next",s)}function l(s){Ir(a,r,i,o,l,"throw",s)}o(void 0)})}}var kr=B.module("AuthPluginBase");function gn(t){var{children:e,getLoginOptions:n}=t,r=Ae(),[i,a]=c.useState(),[o,l]=c.useState(!1);return c.useEffect(()=>{var s=!1;function d(){if(s)throw new Wi("Login canceled.")}function f(){return p.apply(this,arguments)}function p(){return p=Ev(function*(){try{var h=yield n();d(),kr.info("Logging in..."),yield r.login(h),d(),l(!0)}catch(P){if(!s){var m;kr.error("Unable to login:",P);var y=(m=ke(P))!==null&&m!==void 0?m:"Unable to login. Verify credentials.";a(new bo(y)),l(!1)}}}),p.apply(this,arguments)}return f(),()=>{s=!0}},[r,n]),o?u.jsx(u.Fragment,{children:e}):u.jsx(me,{"data-testid":"auth-base-loading",isLoading:i==null,isLoaded:!1,errorMessage:ke(i)})}var Cv={canLogout:!1};function Tv(t){var{children:e}=t,n=ge(),r=c.useCallback(()=>({type:n.CoreClient.LOGIN_TYPE_ANONYMOUS}),[n]);return u.jsx(gn,{getLoginOptions:r,children:u.jsx(et.Provider,{value:Cv,children:e})})}var Po={Component:Tv,isAvailable:t=>t.includes(vo)};function _r(t,e,n,r,i,a,o){try{var l=t[a](o),s=l.value}catch(d){return void n(d)}l.done?e(s):Promise.resolve(s).then(r,i)}function jv(t){return function(){var e=this,n=arguments;return new Promise(function(r,i){var a=t.apply(e,n);function o(s){_r(a,r,i,o,l,"next",s)}function l(s){_r(a,r,i,o,l,"throw",s)}o(void 0)})}}var Iv=B.module("AuthPluginParent"),kv={canLogout:!1};function _v(t){return t!=null&&typeof t.type=="string"}function Rv(){return Dt.apply(this,arguments)}function Dt(){return Dt=jv(function*(){Iv.info("Logging in by delegating to parent window...");var t=yield zt(io);if(!_v(t))throw new Error("Unexpected login options response: ".concat(t));return t}),Dt.apply(this,arguments)}function Dv(){var t;return(t=new URLSearchParams(window.location.search).get("authProvider"))!==null&&t!==void 0?t:""}function Lv(t){var{children:e}=t;return u.jsx(gn,{getLoginOptions:Rv,children:u.jsx(et.Provider,{value:kv,children:e})})}var xo={Component:Lv,isAvailable:()=>Gt()!=null&&Dv()==="parent"};function wo(t){var{children:e,errorMessage:n,isLoggingIn:r=!1,onSubmit:i}=t;return u.jsxs("form",{className:"login-form",onSubmit:a=>{a.preventDefault(),a.stopPropagation(),i==null||i(a)},children:[u.jsx("div",{className:"flex-spacer"}),u.jsxs("div",{className:"flex-wrapper",children:[u.jsx("fieldset",{disabled:r,className:"container-fluid",children:e}),u.jsx("div",{className:"form-group d-flex justify-content-end align-items-center mb-0",children:u.jsxs("button",{type:"submit",className:N("btn btn-primary",{"btn-spinner":r},{"btn-cancelable":r}),"data-testid":"btn-login",children:[r&&u.jsxs("span",{children:[u.jsx(Qe,{className:"mr-2 loading-spinner-vertical-align"}),u.jsx("span",{className:"btn-normal-content",children:"Logging in"}),u.jsx("span",{className:"btn-hover-content",children:"Cancel"})]}),!r&&"Login"]})})]}),u.jsx("div",{className:"flex-spacer",children:n!=null&&u.jsx("p",{className:"error-message mb-0",role:"alert",children:"".concat(n)})})]})}function So(t){var{children:e,logoPath:n="./logo.png"}=t;return u.jsxs("div",{className:"login-container",children:[u.jsx(Ja,{}),u.jsxs("div",{className:"login-box",children:[u.jsx("div",{className:"logo",children:u.jsx("img",{src:n,alt:"Deephaven Data Labs"})}),e,u.jsxs("p",{className:"footer",children:["© 2016-",new Date().getFullYear()," Deephaven Data Labs LLC. Patent Pending."]})]})]})}function Rr(t,e,n,r,i,a,o){try{var l=t[a](o),s=l.value}catch(d){return void n(d)}l.done?e(s):Promise.resolve(s).then(r,i)}function ht(t){return function(){var e=this,n=arguments;return new Promise(function(r,i){var a=t.apply(e,n);function o(s){Rr(a,r,i,o,l,"next",s)}function l(s){Rr(a,r,i,o,l,"throw",s)}o(void 0)})}}var Lt="io.deephaven.authentication.psk.PskAuthenticationHandler",Oo="psk",At="io.deephaven.web.client.auth.psk.token",be=B.module("AuthPluginPsk");function Av(){return new URLSearchParams(window.location.search).get(Oo)}function Fv(){be.debug2("clearWindowToken");var t=new URL(window.location.href);t.searchParams.delete(Oo),window.history.replaceState(null,"",t.href)}function Dr(){var t;return(t=bt.get(At))!==null&&t!==void 0?t:null}function mt(t){be.debug2("Storing token in cookie",t),t!=null?bt.set(At,t,{secure:!0,sameSite:"strict"}):bt.remove(At)}function Nv(t){var{children:e,logoPath:n}=t,r=Ae(),i=c.useRef(null),a=c.useRef(null),[o,l]=c.useState(),[s,d]=c.useState(!1),[f,p]=c.useState(!1),[h,m]=c.useState(!1),[y,P]=c.useState(""),v=c.useCallback(function(){var b=ht(function*(O){var _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;be.info("Logging in..."),m(!0);var I=null;try{if(I=r.login({type:Lt,token:O}),a.current=I,yield I,be.info("Logged in successfully"),a.current!==I)return;mt(O),p(!0)}catch(W){if(a.current!==I)return;if(d(!0),_){var R;be.error("Unable to login",W);var F=(R=ke(W))!==null&&R!==void 0?R:"Unable to login: Verify credentials.";l(new bo(F))}}m(!1)});return function(O){return b.apply(this,arguments)}}(),[r]),g=c.useCallback(()=>{a.current=null,m(!1)},[]),x=c.useCallback(ht(function*(){be.debug("onLogin");var b=Dr();f||h||b==null||v(b,!1)}),[f,h,v]),S=c.useCallback(()=>{mt(null)},[]);mn(x,S),c.useEffect(()=>{var b=!1;function O(){return _.apply(this,arguments)}function _(){return _=ht(function*(){var I,R=(I=Av())!==null&&I!==void 0?I:Dr();if(Fv(),R==null){d(!0);return}m(!0);try{yield r.login({type:Lt,token:R}),b||(mt(R),p(!0),m(!1))}catch{b||(d(!0),m(!1))}}),_.apply(this,arguments)}return O(),()=>{b=!0}},[r]);var E=c.useCallback(()=>{h?g():v(y)},[g,h,v,y]);return c.useEffect(function(){var O;(O=i.current)===null||O===void 0||O.focus()},[i,s]),u.jsxs(u.Fragment,{children:[f&&e,s&&u.jsx(Zt,{in:!f,mountOnEnter:!0,unmountOnExit:!0,children:u.jsx(So,{logoPath:n,children:u.jsx(wo,{errorMessage:ke(o),isLoggingIn:h,onSubmit:E,children:u.jsxs("div",{className:"form-group",children:[u.jsx("label",{htmlFor:"auth-psk-token-input",children:"Token"}),u.jsx("input",{id:"auth-psk-token-input",name:"token",className:"input-token form-control",type:"text",autoComplete:"username",autoCapitalize:"none",autoCorrect:"off",spellCheck:"false",ref:i,value:y,onChange:b=>{l(void 0),P(b.target.value)}})]})})})}),u.jsx(me,{"data-testid":"auth-psk-loading",isLoaded:f||s,isLoading:!f&&!s})]})}var Eo={Component:Nv,isAvailable:t=>t.includes(Lt)};function Lr(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function gt(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Lr(Object(n),!0).forEach(function(r){Mv(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Lr(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function Mv(t,e,n){return(e=$v(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function $v(t){var e=Uv(t,"string");return typeof e=="symbol"?e:e+""}function Uv(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var Bv=B.module("UserUtils");function Co(t,e){return t.get("internal.webClient.appInit.".concat(e))}function To(t){var e,n,r,i,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};function l(v){return Co(t,v)}function s(v,g){var x=l(v);return x==="true"?!0:x==="false"?!1:(x!==void 0&&Bv.warn("Unexpected value for ".concat(v,": ").concat(x)),g)}var d=(e=l("name"))!==null&&e!==void 0?e:"",f=(n=l("operateAs"))!==null&&n!==void 0?n:d,p=(r=(i=l("groups"))===null||i===void 0?void 0:i.split(","))!==null&&r!==void 0?r:[],h=s("canCopy",!0),m=s("canDownloadCsv",!0),y=s("canUsePanels",!0),P=s("canLogout",!0);return gt(gt({name:d,operateAs:f,groups:p},a),{},{permissions:gt({canUsePanels:y,canCopy:h,canDownloadCsv:m,canLogout:P},o)})}const Wv=Object.freeze(Object.defineProperty({__proto__:null,AUTH_HANDLER_TYPE_ANONYMOUS:vo,AUTH_HANDLER_TYPE_PSK:wv,AuthPluginAnonymous:Po,AuthPluginBase:gn,AuthPluginParent:xo,AuthPluginPsk:Eo,Login:So,LoginForm:wo,UserContext:gi,UserOverrideContext:yi,UserPermissionsOverrideContext:et,getAppInitValue:Co,getUserFromConfig:To,isAuthPlugin:xv},Symbol.toStringTag,{value:"Module"}));function xe(t,e,n){return(e=Hv(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Hv(t){var e=Vv(t,"string");return typeof e=="symbol"?e:e+""}function Vv(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}class M extends ta{static get theme(){return M._theme==null&&(M._theme=Hi()),M._theme}static makeRandomSeries(e){for(var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:100,i=[],a=[],o=[],l=[],s=new Date("2018-06-01"),d=0;d<r;d+=1){var f=new Date(s.getFullYear(),s.getMonth(),s.getDate()+d-r);i.push("".concat(f.getFullYear(),"-").concat(f.getMonth()+1,"-").concat(f.getDate()));var p=(Math.sin(d/r*e)*r/3+Math.cos(d*.2)*r/6+Math.sin(d*.5)*r/10+M.random()*r/5+d*M.smoothing)*n;p=Math.round(p*100)/100,a.push(p),l.push(40+d*M.smoothing),o.push(Math.sin(d/r*e)*r/3+M.random()*r/10+d*M.smoothing)}return{x:i,y:a,s:o,l}}static makeScatter(e){return{name:"SCTR",x:e.x,y:e.y,type:"scatter",mode:"markers",hoverinfo:"skip",marker:{size:5}}}static makeArea(e){return{name:"AREA",x:e.x,y:e.s,type:"scatter",mode:"line",fill:"tozeroy",hoverinfo:"all",line:{width:3}}}static makeTrendline(e){return{name:"Trendline <br>R<sup>2</sup> = 0.91",x:e.x,y:e.l,type:"scatter",mode:"line",hoverinfo:"skip",line:{width:3,dash:"dot"}}}static makeErrorBand(e){for(var n=[],r=[],i=0;i<e.y.length;i+=1){var a=e.y[i];n[i]=Math.round((a+18)*100)/100,r[i]=Math.round((a-18)*100)/100}var o=n.concat(r.reverse());return{name:"error",x:e.x.concat(e.x.slice().reverse()),y:o,type:"scatter",mode:"line",hoverinfo:"skip",fill:"toself",line:{width:0,color:M.theme.error_band_line_color,shape:"spline"}}}static makeLine(e){return{name:"LINE",x:e.x,y:e.y,type:"scatter",mode:"line",hoverinfo:"x+y+text+name",line:{width:3}}}static makeRandomData(){var e=M.makeRandomSeries(6),n=M.makeArea(e),r=M.makeTrendline(e),i=M.makeRandomSeries(2),a=M.makeLine(i),o=M.makeErrorBand(i);return[n,r,a,o]}static makeDefaultLayout(e){var n={template:new na(e).makeDefaultTemplate(M.theme)};return n.title={text:"Chart"},n.xaxis={title:{text:"Datestamp"}},n.yaxis={title:{text:"Price"}},n}constructor(e){var{data:n=M.makeRandomData(),layout:r=M.makeDefaultLayout(e),filterFields:i=[]}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(e),xe(this,"data",void 0),xe(this,"filterFields",void 0),xe(this,"layout",void 0),this.data=n,this.layout=r,this.filterFields=i}getData(){return this.data}getLayout(){return this.layout}getFilterColumnMap(){for(var e=new Map,n=0;n<this.filterFields.length;n+=1){var r=this.filterFields[n],i="java.lang.String";e.set(r,{name:r,type:i})}return e}isFilterRequired(){return this.filterFields.length>0}setFilter(){this.fireUpdate(this.data)}}xe(M,"random",Math.random.bind(Math));xe(M,"smoothing",1.5);xe(M,"_theme",void 0);const Gv=Object.freeze(Object.defineProperty({__proto__:null,Chart:Qd,ChartModel:ta,ChartModelFactory:Jd,ChartThemeContext:td,ChartThemeProvider:Vi,ChartUtils:na,DownsamplingError:Cp,FigureChartModel:Zd,MockChartModel:M,Plot:nd,defaultChartTheme:Hi,isFigureChartModel:ep,isWebGLSupported:tp,useChartTheme:rd},Symbol.toStringTag,{value:"Module"}));function jo(t){var{children:e}=t,{activeThemes:n}=tt();return c.useEffect(function(){n!=null&&Gi.initTheme()},[n]),u.jsx(u.Fragment,{children:e})}var Yv={$schema:"http://json-schema.org/draft-07/schema#",title:"Options",type:"object",properties:{"allowed-confusables":{description:'A list of allowed "confusable" Unicode characters to ignore when enforcing `RUF001`, `RUF002`, and `RUF003`.',deprecated:!0,type:["array","null"],items:{type:"string",maxLength:1,minLength:1}},builtins:{description:"A list of builtins to treat as defined references, in addition to the system builtins.",type:["array","null"],items:{type:"string"}},"cache-dir":{description:"A path to the cache directory.\n\nBy default, Ruff stores cache results in a `.ruff_cache` directory in the current project root.\n\nHowever, Ruff will also respect the `RUFF_CACHE_DIR` environment variable, which takes precedence over that default.\n\nThis setting will override even the `RUFF_CACHE_DIR` environment variable, if set.",type:["string","null"]},"dummy-variable-rgx":{description:'A regular expression used to identify "dummy" variables, or those which should be ignored when enforcing (e.g.) unused-variable rules. The default expression matches `_`, `__`, and `_var`, but not `_var_`.',deprecated:!0,type:["string","null"]},exclude:{description:"A list of file patterns to exclude from formatting and linting.\n\nExclusions are based on globs, and can be either:\n\n- Single-path patterns, like `.mypy_cache` (to exclude any directory named `.mypy_cache` in the tree), `foo.py` (to exclude any file named `foo.py`), or `foo_*.py` (to exclude any file matching `foo_*.py` ). - Relative patterns, like `directory/foo.py` (to exclude that specific file) or `directory/*.py` (to exclude any Python files in `directory`). Note that these paths are relative to the project root (e.g., the directory containing your `pyproject.toml`).\n\nFor more information on the glob syntax, refer to the [`globset` documentation](https://docs.rs/globset/latest/globset/#syntax).\n\nNote that you'll typically want to use [`extend-exclude`](#extend-exclude) to modify the excluded paths.",type:["array","null"],items:{type:"string"}},"explicit-preview-rules":{description:"Whether to require exact codes to select preview rules. When enabled, preview rules will not be selected by prefixes — the full code of each preview rule will be required to enable the rule.",deprecated:!0,type:["boolean","null"]},extend:{description:"A path to a local `pyproject.toml` file to merge into this configuration. User home directory and environment variables will be expanded.\n\nTo resolve the current `pyproject.toml` file, Ruff will first resolve this base configuration file, then merge in any properties defined in the current configuration file.",type:["string","null"]},"extend-exclude":{description:"A list of file patterns to omit from formatting and linting, in addition to those specified by [`exclude`](#exclude).\n\nExclusions are based on globs, and can be either:\n\n- Single-path patterns, like `.mypy_cache` (to exclude any directory named `.mypy_cache` in the tree), `foo.py` (to exclude any file named `foo.py`), or `foo_*.py` (to exclude any file matching `foo_*.py` ). - Relative patterns, like `directory/foo.py` (to exclude that specific file) or `directory/*.py` (to exclude any Python files in `directory`). Note that these paths are relative to the project root (e.g., the directory containing your `pyproject.toml`).\n\nFor more information on the glob syntax, refer to the [`globset` documentation](https://docs.rs/globset/latest/globset/#syntax).",type:["array","null"],items:{type:"string"}},"extend-fixable":{description:"A list of rule codes or prefixes to consider fixable, in addition to those specified by [`fixable`](#lint_fixable).",deprecated:!0,type:["array","null"],items:{$ref:"#/definitions/RuleSelector"}},"extend-ignore":{description:"A list of rule codes or prefixes to ignore, in addition to those specified by `ignore`.",deprecated:!0,type:["array","null"],items:{$ref:"#/definitions/RuleSelector"}},"extend-include":{description:"A list of file patterns to include when linting, in addition to those specified by [`include`](#include).\n\nInclusion are based on globs, and should be single-path patterns, like `*.pyw`, to include any file with the `.pyw` extension.\n\nFor more information on the glob syntax, refer to the [`globset` documentation](https://docs.rs/globset/latest/globset/#syntax).",type:["array","null"],items:{type:"string"}},"extend-per-file-ignores":{description:"A list of mappings from file pattern to rule codes or prefixes to exclude, in addition to any rules excluded by [`per-file-ignores`](#lint_per-file-ignores).",deprecated:!0,type:["object","null"],additionalProperties:{type:"array",items:{$ref:"#/definitions/RuleSelector"}}},"extend-safe-fixes":{description:"A list of rule codes or prefixes for which unsafe fixes should be considered safe.",deprecated:!0,type:["array","null"],items:{$ref:"#/definitions/RuleSelector"}},"extend-select":{description:"A list of rule codes or prefixes to enable, in addition to those specified by [`select`](#lint_select).",deprecated:!0,type:["array","null"],items:{$ref:"#/definitions/RuleSelector"}},"extend-unfixable":{description:"A list of rule codes or prefixes to consider non-auto-fixable, in addition to those specified by [`unfixable`](#lint_unfixable).",deprecated:!0,type:["array","null"],items:{$ref:"#/definitions/RuleSelector"}},"extend-unsafe-fixes":{description:"A list of rule codes or prefixes for which safe fixes should be considered unsafe.",deprecated:!0,type:["array","null"],items:{$ref:"#/definitions/RuleSelector"}},external:{description:"A list of rule codes or prefixes that are unsupported by Ruff, but should be preserved when (e.g.) validating `# noqa` directives. Useful for retaining `# noqa` directives that cover plugins not yet implemented by Ruff.",deprecated:!0,type:["array","null"],items:{type:"string"}},fix:{description:"Enable fix behavior by-default when running `ruff` (overridden by the `--fix` and `--no-fix` command-line flags). Only includes automatic fixes unless `--unsafe-fixes` is provided.",type:["boolean","null"]},"fix-only":{description:"Like [`fix`](#fix), but disables reporting on leftover violation. Implies [`fix`](#fix).",type:["boolean","null"]},fixable:{description:"A list of rule codes or prefixes to consider fixable. By default, all rules are considered fixable.",deprecated:!0,type:["array","null"],items:{$ref:"#/definitions/RuleSelector"}},"flake8-annotations":{description:"Options for the `flake8-annotations` plugin.",deprecated:!0,anyOf:[{$ref:"#/definitions/Flake8AnnotationsOptions"},{type:"null"}]},"flake8-bandit":{description:"Options for the `flake8-bandit` plugin.",deprecated:!0,anyOf:[{$ref:"#/definitions/Flake8BanditOptions"},{type:"null"}]},"flake8-boolean-trap":{description:"Options for the `flake8-boolean-trap` plugin.",deprecated:!0,anyOf:[{$ref:"#/definitions/Flake8BooleanTrapOptions"},{type:"null"}]},"flake8-bugbear":{description:"Options for the `flake8-bugbear` plugin.",deprecated:!0,anyOf:[{$ref:"#/definitions/Flake8BugbearOptions"},{type:"null"}]},"flake8-builtins":{description:"Options for the `flake8-builtins` plugin.",deprecated:!0,anyOf:[{$ref:"#/definitions/Flake8BuiltinsOptions"},{type:"null"}]},"flake8-comprehensions":{description:"Options for the `flake8-comprehensions` plugin.",deprecated:!0,anyOf:[{$ref:"#/definitions/Flake8ComprehensionsOptions"},{type:"null"}]},"flake8-copyright":{description:"Options for the `flake8-copyright` plugin.",deprecated:!0,anyOf:[{$ref:"#/definitions/Flake8CopyrightOptions"},{type:"null"}]},"flake8-errmsg":{description:"Options for the `flake8-errmsg` plugin.",deprecated:!0,anyOf:[{$ref:"#/definitions/Flake8ErrMsgOptions"},{type:"null"}]},"flake8-gettext":{description:"Options for the `flake8-gettext` plugin.",deprecated:!0,anyOf:[{$ref:"#/definitions/Flake8GetTextOptions"},{type:"null"}]},"flake8-implicit-str-concat":{description:"Options for the `flake8-implicit-str-concat` plugin.",deprecated:!0,anyOf:[{$ref:"#/definitions/Flake8ImplicitStrConcatOptions"},{type:"null"}]},"flake8-import-conventions":{description:"Options for the `flake8-import-conventions` plugin.",deprecated:!0,anyOf:[{$ref:"#/definitions/Flake8ImportConventionsOptions"},{type:"null"}]},"flake8-pytest-style":{description:"Options for the `flake8-pytest-style` plugin.",deprecated:!0,anyOf:[{$ref:"#/definitions/Flake8PytestStyleOptions"},{type:"null"}]},"flake8-quotes":{description:"Options for the `flake8-quotes` plugin.",deprecated:!0,anyOf:[{$ref:"#/definitions/Flake8QuotesOptions"},{type:"null"}]},"flake8-self":{description:"Options for the `flake8_self` plugin.",deprecated:!0,anyOf:[{$ref:"#/definitions/Flake8SelfOptions"},{type:"null"}]},"flake8-tidy-imports":{description:"Options for the `flake8-tidy-imports` plugin.",deprecated:!0,anyOf:[{$ref:"#/definitions/Flake8TidyImportsOptions"},{type:"null"}]},"flake8-type-checking":{description:"Options for the `flake8-type-checking` plugin.",deprecated:!0,anyOf:[{$ref:"#/definitions/Flake8TypeCheckingOptions"},{type:"null"}]},"flake8-unused-arguments":{description:"Options for the `flake8-unused-arguments` plugin.",deprecated:!0,anyOf:[{$ref:"#/definitions/Flake8UnusedArgumentsOptions"},{type:"null"}]},"force-exclude":{description:"Whether to enforce [`exclude`](#exclude) and [`extend-exclude`](#extend-exclude) patterns, even for paths that are passed to Ruff explicitly. Typically, Ruff will lint any paths passed in directly, even if they would typically be excluded. Setting `force-exclude = true` will cause Ruff to respect these exclusions unequivocally.\n\nThis is useful for [`pre-commit`](https://pre-commit.com/), which explicitly passes all changed files to the [`ruff-pre-commit`](https://github.com/astral-sh/ruff-pre-commit) plugin, regardless of whether they're marked as excluded by Ruff's own settings.",type:["boolean","null"]},format:{description:"Options to configure code formatting.",anyOf:[{$ref:"#/definitions/FormatOptions"},{type:"null"}]},ignore:{description:"A list of rule codes or prefixes to ignore. Prefixes can specify exact rules (like `F841`), entire categories (like `F`), or anything in between.\n\nWhen breaking ties between enabled and disabled rules (via `select` and `ignore`, respectively), more specific prefixes override less specific prefixes.",deprecated:!0,type:["array","null"],items:{$ref:"#/definitions/RuleSelector"}},"ignore-init-module-imports":{description:"Avoid automatically removing unused imports in `__init__.py` files. Such imports will still be flagged, but with a dedicated message suggesting that the import is either added to the module's `__all__` symbol, or re-exported with a redundant alias (e.g., `import os as os`).\n\nThis option is enabled by default, but you can opt-in to removal of imports via an unsafe fix.",deprecated:!0,type:["boolean","null"]},include:{description:"A list of file patterns to include when linting.\n\nInclusion are based on globs, and should be single-path patterns, like `*.pyw`, to include any file with the `.pyw` extension. `pyproject.toml` is included here not for configuration but because we lint whether e.g. the `[project]` matches the schema.\n\nNotebook files (`.ipynb` extension) are included by default on Ruff 0.6.0+.\n\nFor more information on the glob syntax, refer to the [`globset` documentation](https://docs.rs/globset/latest/globset/#syntax).",type:["array","null"],items:{type:"string"}},"indent-width":{description:`The number of spaces per indentation level (tab).
3
+ `).map(I=>I.trim()).join(" ")}function g(){if(y.current){y.current.style.height="0";var _=y.current.scrollHeight+(y.current.offsetHeight-y.current.clientHeight);_>0&&(y.current.style.height="".concat(_,"px"))}}function x(_){var I=_.target.value;h&&(l&&(I=P(I)),m(!1)),p(I),r(I)}function S(){y.current&&(l&&(p(P(f)),g()),y.current.scrollLeft=0)}function E(){y.current&&document.activeElement!==y.current&&y.current.focus()}function b(){l&&(p(v(f)),r(v(f)))}function O(){m(!0)}return c.useEffect(function(){g()},[f]),u.jsx("textarea",{ref:y,id:s,className:N(e,"auto-resize-textarea form-control"),placeholder:a,value:f,rows:1,onChange:x,onFocus:S,onMouseDown:E,onBlur:b,onPaste:O,spellCheck:i,disabled:o,"data-testid":d})}function Va(t){var{blockInteraction:e=!0,children:n,debounceMs:r,isOpen:i=!1}=t,{value:a}=Ne(i,r);return u.jsxs(u.Fragment,{children:[e&&i&&u.jsx("div",{className:"modal-backdrop",style:{backgroundColor:"transparent"},"data-testid":"debounced-modal-backdrop"}),$.cloneElement(n,{isOpen:i&&a})]})}function Ga(t){var{className:e,icon:n,isOpen:r=!1,subtitle:i,title:a}=t;return u.jsx(Yt,{isOpen:r,className:e,children:u.jsx(Kt,{children:u.jsxs("div",{className:"info-modal",children:[n!=null&&u.jsx("div",{className:"message-icon",children:u.jsx(Y,{icon:n})}),u.jsx("div",{className:"message-header",children:a}),i!=null&&u.jsx("div",{className:"message-content",children:i})]})})})}function Xn(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function Qn(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Xn(Object(n),!0).forEach(function(r){sg(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Xn(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function sg(t,e,n){return(e=lg(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function lg(t){var e=ug(t,"string");return typeof e=="symbol"?e:e+""}function ug(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var cg=[];function dg(t){var{styleProps:e,selectedItemCount:n,onClearSelection:r}=t;return u.jsx(Zr,Qn(Qn({UNSAFE_className:sn.spectrumActionBar},e),{},{isEmphasized:!0,selectedItemCount:n,onClearSelection:r,children:cg}))}function Jn(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function pg(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Jn(Object(n),!0).forEach(function(r){oe(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Jn(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function oe(t,e,n){return(e=fg(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function fg(t){var e=hg(t,"string");return typeof e=="symbol"?e:e+""}function hg(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var Zn=B.module("ContextMenu");class _e extends c.PureComponent{static handleContextMenu(e){e.metaKey||(e.stopPropagation(),e.preventDefault())}constructor(e){super(e),oe(this,"container",void 0),oe(this,"oldFocus",void 0),oe(this,"activeSubMenuRef",void 0),oe(this,"subMenuTimer",void 0),oe(this,"rAF",void 0),oe(this,"initialPosition",void 0),this.handleBlur=this.handleBlur.bind(this),this.handleCloseSubMenu=this.handleCloseSubMenu.bind(this),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleMenuItemClick=this.handleMenuItemClick.bind(this),this.handleMenuItemContextMenu=this.handleMenuItemContextMenu.bind(this),this.handleMenuItemMouseMove=this.handleMenuItemMouseMove.bind(this),this.handleMouseLeave=this.handleMouseLeave.bind(this),this.handleWindowResize=this.handleWindowResize.bind(this),this.container=$.createRef(),this.oldFocus=document.activeElement,this.activeSubMenuRef=$.createRef(),this.subMenuTimer=0,this.rAF=0,this.initialPosition={top:e.top,left:e.left},this.state={menuItems:[],pendingItems:[],activeSubMenu:null,hasOverflow:!1,subMenuTop:null,subMenuLeft:null,subMenuParentWidth:0,subMenuParentHeight:0,keyboardIndex:-1,mouseIndex:-1}}componentDidMount(){this.initMenu(),this.verifyPosition(),window.addEventListener("resize",this.handleWindowResize),this.rAF=window.requestAnimationFrame(()=>{var e;(e=this.container.current)===null||e===void 0||e.focus();var{onMenuOpened:n}=this.props;n(this)})}componentDidUpdate(e,n){var{actions:r}=this.props,{activeSubMenu:i}=this.state;if(i!==n.activeSubMenu)if(i==null){var a;(a=this.container.current)===null||a===void 0||a.focus()}else this.setActiveSubMenuPosition();if(e.actions!==r&&(this.initMenu(),this.container.current==null||!this.container.current.contains(document.activeElement))){var o;(o=this.container.current)===null||o===void 0||o.focus()}this.verifyPosition()}componentWillUnmount(){this.cancelPromises(),window.removeEventListener("resize",this.handleWindowResize),cancelAnimationFrame(this.rAF)}getKeyboardIndex(){var{options:e}=this.props;if(e.separateKeyboardMouse!==void 0&&e.separateKeyboardMouse){var{keyboardIndex:n}=this.state;return n}return this.getMouseIndex()}setKeyboardIndex(e){var{options:n}=this.props;n.separateKeyboardMouse!==void 0&&n.separateKeyboardMouse?this.setState({keyboardIndex:e}):this.setMouseIndex(e)}getMouseIndex(){var{mouseIndex:e}=this.state;return e}setMouseIndex(e){this.setState({mouseIndex:e})}initMenu(){this.cancelPromises(),cancelAnimationFrame(this.rAF);var{options:e}=this.props,n=e.initialKeyboardIndex;n===void 0&&(n=-1);for(var{actions:r}=this.props,i=le.getMenuItems(r),a=[],o=i.length-1;o>=0;o-=1){var l=i[o];l instanceof Promise?this.initMenuPromise(l):a.push(l)}this.setState({mouseIndex:-1,keyboardIndex:n,activeSubMenu:null,menuItems:le.sortActions(a)})}initMenuPromise(e){var n=he.makeCancelable(e);this.setState(r=>({pendingItems:r.pendingItems.concat(n)})),n.then(r=>{this.setState(i=>{var a=i.pendingItems.indexOf(n);if(a>=0){var o=i.pendingItems.slice();return o.splice(a,1),{menuItems:le.sortActions(i.menuItems.concat(r)),pendingItems:o}}return null})},r=>{he.isCanceled(r)||(this.setState(i=>{var a=i.pendingItems.indexOf(n);if(a>=0){var o=i.pendingItems.slice();return o.splice(a,1),{pendingItems:o}}return null}),Zn.error(r))})}cancelPromises(){var{pendingItems:e}=this.state;e.map(n=>n.cancel())}setActiveSubMenuPosition(){if(this.activeSubMenuRef.current!==null){var e=this.activeSubMenuRef.current.getBoundingClientRect();this.setState({subMenuTop:e.top,subMenuLeft:e.right,subMenuParentHeight:e.height,subMenuParentWidth:e.width})}}verifyPosition(){var e,n,r,i,{options:a,updatePosition:o,subMenuParentWidth:l,subMenuParentHeight:s,top:d,left:f}=this.props;if(!(!this.container.current||a.doNotVerifyPosition!=null&&a.doNotVerifyPosition)){var{top:p,left:h}=this.initialPosition,{width:m,height:y}=(e=(n=this.container.current)===null||n===void 0?void 0:n.getBoundingClientRect())!==null&&e!==void 0?e:{width:0,height:0},P=((r=(i=this.container.current)===null||i===void 0?void 0:i.scrollHeight)!==null&&r!==void 0?r:0)>window.innerHeight;y===0||m===0||(p+y>window.innerHeight&&(p-y-s>0?p-=y-s:p=window.innerHeight-y),h+m>window.innerWidth&&(h=h-m-l),(f!==h||d!==p)&&(this.setState({hasOverflow:P}),o(p,h)))}}handleWindowResize(){this.container.current&&this.closeMenu(!0)}handleBlur(e){if(!this.container.current){Zn.warn("Container is null!");return}if(!this.container.current.contains(e.relatedTarget)){for(var n=e.relatedTarget,r=!1;n&&!r;)r=n.hasAttribute("data-dh-context-menu"),n=n.parentElement;r||this.closeMenu(!0)}}isEscapeKey(e){var{left:n}=this.props;return e==="Escape"||n<0&&e==="ArrowRight"||e==="ArrowLeft"}handleKeyDown(e){var{menuItems:n}=this.state,r=this.getKeyboardIndex(),i=r,a=!1;if(e.key==="Enter"||e.key===" "){r>=0&&r<n.length&&this.handleMenuItemClick(n[r],e);return}if(e.key==="ArrowRight"?r>=0&&r<=n.length?a=!0:i=0:this.isEscapeKey(e.key)?i=null:e.key==="ArrowUp"||e.shiftKey&&e.key==="Tab"?i=le.getNextMenuItem(i,-1,n):(e.key==="ArrowDown"||e.key==="Tab")&&(i=le.getNextMenuItem(i,1,n)),a){this.openSubMenu(r),e.preventDefault(),e.stopPropagation();return}r!==i&&(i!==null?this.setKeyboardIndex(i):(this.closeMenu(),this.oldFocus instanceof HTMLElement&&this.oldFocus.focus()),e.preventDefault(),e.stopPropagation())}openSubMenu(e){var{menuItems:n,activeSubMenu:r}=this.state,i=n[e].actions?e:null;r!==i&&this.setState({activeSubMenu:i,subMenuTop:null,subMenuLeft:null})}closeMenu(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,{closeMenu:n,onMenuClosed:r}=this.props;cancelAnimationFrame(this.rAF),this.rAF=window.requestAnimationFrame(()=>{n(e),r(this)})}closeSubMenu(){this.setState({activeSubMenu:null})}handleCloseSubMenu(e){e?this.closeMenu(!0):this.closeSubMenu()}handleMenuItemClick(e,n){n.preventDefault(),n.stopPropagation();var{menuItems:r}=this.state;e!=null&&(e.disabled===void 0||!e.disabled)&&(e.actions!=null?this.openSubMenu(r.indexOf(e)):e.action!=null&&(e.action(n.nativeEvent),this.closeMenu(!0)))}handleMenuItemContextMenu(e,n){n.metaKey||this.handleMenuItemClick(e,n)}handleMenuItemMouseMove(e){var{menuItems:n}=this.state,r=n.indexOf(e);this.setMouseIndex(r),r>=0&&r<n.length&&(e.disabled===void 0||!e.disabled)&&this.openSubMenu(r)}handleMouseLeave(){this.setMouseIndex(-1)}render(){for(var e=[],{top:n,left:r}=this.props,{activeSubMenu:i,hasOverflow:a,keyboardIndex:o,menuItems:l,mouseIndex:s,pendingItems:d,subMenuTop:f,subMenuLeft:p,subMenuParentWidth:h,subMenuParentHeight:m}=this.state,y=0;y<l.length;y+=1){var P=l[y];y>0&&P.group!==l[y-1].group&&e.push(u.jsx("hr",{},"".concat(y,".separator")));var v=u.jsx(vi,{ref:i===y?this.activeSubMenuRef:null,isKeyboardSelected:o===y,isMouseSelected:s===y,menuItem:P,closeMenu:this.handleCloseSubMenu,onMenuItemClick:this.handleMenuItemClick,onMenuItemMouseMove:this.handleMenuItemMouseMove,onMenuItemContextMenu:this.handleMenuItemContextMenu},y);e.push(v)}var g=null;d.length>0&&(g=u.jsx("div",{className:"loading",children:u.jsx(Qe,{className:"loading-spinner-vertical-align"})}));var{menuStyle:x,"data-testid":S}=this.props,E=i!==null&&f!==null&&p!==null;return u.jsxs(u.Fragment,{children:[u.jsxs("div",{className:N({"has-overflow":a},"context-menu-container"),style:pg({top:n,left:r},x),ref:this.container,"data-dh-context-menu":!0,onBlur:this.handleBlur,onKeyDown:this.handleKeyDown,onMouseLeave:this.handleMouseLeave,onContextMenu:_e.handleContextMenu,role:"menuitem",tabIndex:0,"data-testid":S,children:[e,g]}),E&&i!==null&&f!==null&&p!==null&&u.jsx(_e,{actions:l[i].actions||[],closeMenu:this.handleCloseSubMenu,top:f,left:p,updatePosition:(b,O)=>{this.setState({subMenuTop:b,subMenuLeft:O})},subMenuParentWidth:h,subMenuParentHeight:m},"sub-".concat(i))]})}}oe(_e,"defaultProps",{subMenuParentWidth:0,subMenuParentHeight:0,closeMenu(){},onMenuOpened(){},onMenuClosed(){},options:{},menuStyle:{},"data-testid":void 0});function er(t,e,n){return(e=mg(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function mg(t){var e=gg(t,"string");return typeof e=="symbol"?e:e+""}function gg(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}class Ya extends c.Component{constructor(e){super(e),er(this,"container",void 0),er(this,"openMenu",void 0),this.handleMenuClose=this.handleMenuClose.bind(this),this.handleContextMenu=this.handleContextMenu.bind(this),this.container=$.createRef(),this.openMenu=$.createRef(),this.state={actions:null,left:0,top:0}}componentDidMount(){var e;(e=this.container.current)!==null&&e!==void 0&&e.parentElement&&this.container.current.parentElement.addEventListener("contextmenu",this.handleContextMenu)}componentWillUnmount(){var e;(e=this.container.current)!==null&&e!==void 0&&e.parentElement&&this.container.current.parentElement.removeEventListener("contextmenu",this.handleContextMenu)}handleContextMenu(e){if(this.container.current){var n=this.container.current.getBoundingClientRect(),r=e.clientY-n.top,i=e.clientX-n.left,{actions:a}=this.state;if(a!=null&&e.target===this.container.current){e.preventDefault(),this.setState({actions:null},()=>{var l=document.elementFromPoint(i,r),s=new MouseEvent("contextmenu",{clientX:e.clientX,clientY:e.clientY,bubbles:!0,cancelable:!0});l==null||l.dispatchEvent(s)});return}if(le.isContextActionEvent(e)&&!(e.metaKey||e.ctrlKey)){var o=le.getMenuItems(e.contextActions);o.length!==0&&(e.preventDefault(),this.setState({actions:o,top:r,left:i}))}}}handleMenuClose(e){e===this.openMenu.current&&this.setState({actions:null})}render(){var e=null,{"data-testid":n}=this.props,{actions:r,top:i,left:a}=this.state;return r&&(e=u.jsx(_e,{ref:this.openMenu,actions:r,onMenuClosed:this.handleMenuClose,top:i,left:a,updatePosition:(o,l)=>{this.setState({top:o,left:l})},"data-testid":n})),u.jsx("div",{className:N("context-menu-root",{active:r}),ref:this.container,children:e})}}function Ka(t,e,n){return(e=yg(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function yg(t){var e=vg(t,"string");return typeof e=="symbol"?e:e+""}function vg(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}class Re extends c.Component{static getHeight(e){var n=e.scrollWidth-e.clientWidth;return e.scrollHeight-n}constructor(e){super(e),Ka(this,"nodeRef",$.createRef()),this.handleEntered=this.handleEntered.bind(this)}handleEntered(){var e=this.nodeRef.current;if(e){e.style.height="";var{autoFocusOnShow:n}=this.props;if(n!==void 0&&n){var r=e.querySelector("input, select, textarea");r!=null&&r.focus()}}}handleEnter(){var e=this.nodeRef.current;e&&(e.style.height="0")}handleEntering(){var e=this.nodeRef.current;e&&(e.style.height="".concat(Re.getHeight(e),"px"))}handleExiting(){var e=this.nodeRef.current;e&&(e.style.height="0")}handleExit(){var e=this.nodeRef.current;e&&(e.style.height="".concat(Re.getHeight(e),"px"))}render(){var{children:e,className:n,in:r,"data-testid":i}=this.props;return u.jsx(ei,{in:r,classNames:{enterActive:"collapsing",enterDone:"collapse show",exitActive:"collapsing",exitDone:"collapse"},onEnter:this.handleEnter,onEntering:this.handleEntering,onEntered:this.handleEntered,onExit:this.handleExit,onExiting:this.handleExiting,timeout:350,nodeRef:this.nodeRef,children:a=>u.jsx("div",{ref:this.nodeRef,className:N({collapse:a==="exited"},n),"data-testid":i,children:e})})}}Ka(Re,"defaultProps",{className:"",autoFocusOnShow:!1,"data-testid":void 0});var bg=B.module("TimeInput"),Pg="([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]",xg=["00:00:00","12:34:56","23:59:59"];function tr(t){return t!=null?"".concat(t.substring(0,8).replace(/\u2007/g,"0")).concat("00:00:00".substring(t.length)):t}var qe=$.forwardRef((t,e)=>{var{allowValueWrapping:n=!0,className:r="",onChange:i=ne,value:a=0,onFocus:o=ne,onBlur:l=ne,onSelect:s=ne,"data-testid":d}=t,[f,p]=c.useState(Ve.formatTime(a)),h=c.useRef(a),[m,y]=c.useState(),P=c.useRef(null);c.useImperativeHandle(e,()=>({focus:()=>{var b;(b=P.current)===null||b===void 0||b.focus()},setSelection:b=>{var O;(O=P.current)===null||O===void 0||O.focus(),y(b)}}),[]),c.useEffect(function(){h.current!==a&&(p(Ve.formatTime(a)),h.current=a)},[h,a]);function v(b,O,_){var I=b.selectionStart===0?24:60,R=parseInt(_,10)-O;return Number.isNaN(R)?R=0:n?R=(R%I+I)%I:R=Math.min(Math.max(0,R),I-1),"".concat(R).padStart(2,"0")}function g(b,O,_,I,R){return I===0&&R===2&&O===1&&parseInt(_,10)>1?"0".concat(_).concat(b.substring(2)):ca(b,O,_)}var x=c.useCallback(b=>{bg.debug("handleChange",b),p(b),h.current=Ve.parseTime(tr(b)),i(h.current)},[i]),S=c.useCallback(()=>{var b=tr(f);b!==f&&p(b),l()},[f,l]),E=c.useCallback(b=>{y(b),s(b)},[s]);return u.jsx(un,{ref:P,className:r,example:xg,getNextSegmentValue:v,getPreferredReplacementString:g,onChange:x,onSelect:E,pattern:Pg,selection:m,value:f,onFocus:o,onBlur:S,"data-testid":d})});function nr(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function wg(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?nr(Object(n),!0).forEach(function(r){ce(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):nr(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function ce(t,e,n){return(e=Sg(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Sg(t){var e=Og(t,"string");return typeof e=="symbol"?e:e+""}function Og(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var rr=-1,qa=function(t){return t.UP="UP",t.DOWN="DOWN",t}(qa||{});class z extends c.Component{constructor(e){super(e),ce(this,"csContainer",void 0),ce(this,"menuContainer",void 0),ce(this,"button",void 0),ce(this,"input",void 0);var{value:n,valueToTime:r}=e;this.toggleMenu=this.toggleMenu.bind(this),this.handleMenuKeyDown=this.handleMenuKeyDown.bind(this),this.closeMenu=this.closeMenu.bind(this),this.handleOptionClick=this.handleOptionClick.bind(this),this.handleOptionFocus=this.handleOptionFocus.bind(this),this.handleMenuOpened=this.handleMenuOpened.bind(this),this.handleMenuExited=this.handleMenuExited.bind(this),this.handleCustomInput=this.handleCustomInput.bind(this),this.csContainer=$.createRef(),this.menuContainer=$.createRef(),this.button=$.createRef(),this.input=$.createRef(),this.state={keyboardOptionIndex:0,menuIsOpen:!1,inputWidth:100,customTime:r(n),inputFocused:!1}}getSelectedText(){var{options:e,value:n,placeholder:r}=this.props,{customTime:i}=this.state;if(n===null)return r;for(var a=0;a<e.length;a+=1){var o=e[a];if(o.value===n)return o.title}return Ve.formatTime(i)}setInputWidth(){this.csContainer.current&&this.setState({inputWidth:this.csContainer.current.getBoundingClientRect().width})}focus(){var e;(e=this.button.current)===null||e===void 0||e.focus()}updateInputValue(e){var{onChange:n}=this.props;n(e)}handleResize(){this.setInputWidth()}handleMenuKeyDown(e){var n,{keyboardOptionIndex:r,inputFocused:i}=this.state,{options:a}=this.props;switch(e.key){case"Enter":case" ":i?this.updateFromCustom():this.updateInputValue(a[r].value),this.closeMenu(),(n=this.button.current)===null||n===void 0||n.focus(),e.stopPropagation(),e.preventDefault();break;case"Tab":e.shiftKey?this.handleMenuNavigation(z.MENU_NAVIGATION_DIRECTION.UP):this.handleMenuNavigation(z.MENU_NAVIGATION_DIRECTION.DOWN),e.stopPropagation(),e.preventDefault();break;case"ArrowUp":this.handleMenuNavigation(z.MENU_NAVIGATION_DIRECTION.UP),e.stopPropagation(),e.preventDefault();break;case"ArrowDown":this.handleMenuNavigation(z.MENU_NAVIGATION_DIRECTION.DOWN),e.stopPropagation(),e.preventDefault();break;case"Escape":this.closeMenu();break}}handleMenuNavigation(e){var{keyboardOptionIndex:n,inputFocused:r}=this.state,{options:i}=this.props,a=i.length,o=n;switch(e){case z.MENU_NAVIGATION_DIRECTION.UP:if(!r&&n===0){this.focusInput();break}else r&&this.focusOption(n);n>0&&!r?(o=(o-1)%a,this.setState({keyboardOptionIndex:o})):n===0&&(o=a-1,this.setState({keyboardOptionIndex:o})),this.scrollOptionIntoView(o);break;case z.MENU_NAVIGATION_DIRECTION.DOWN:if(!r&&n===a-1){this.focusInput();break}else r&&this.focusOption(n);n<a&&!(r&&n===0)&&(o=(o+1)%a,this.setState({keyboardOptionIndex:o})),this.scrollOptionIntoView(o);break}}handleOptionClick(e){var n=Number(e.currentTarget.value),{options:r,timeToValue:i}=this.props,{customTime:a}=this.state;if(n===rr){var o=i(a);this.updateAndClose(o)}else this.updateAndClose(r[n].value)}updateAndClose(e){var n;this.updateInputValue(e),this.closeMenu(),(n=this.button.current)===null||n===void 0||n.focus()}handleOptionFocus(e){this.setState({keyboardOptionIndex:Number(e.target.value)})}handleMenuOpened(){var e,{options:n,value:r}=this.props,{keyboardOptionIndex:i}=this.state;this.scrollOptionIntoView(i);var a=(e=this.menuContainer.current)===null||e===void 0?void 0:e.querySelector(".cs-option-btn.keyboard-active");if(a instanceof HTMLElement&&a.focus(),r!==null){var o=n.map(l=>l.value).indexOf(r);o<0&&this.focusInput()}}focusInput(){var e;(e=this.input.current)===null||e===void 0||e.focus()}focusOption(e){var n,r=(n=this.menuContainer.current)===null||n===void 0?void 0:n.querySelector(".cs-options");if(r&&r.children!=null){var i=r.children.item(e);i instanceof HTMLElement&&i.focus()}}handleMenuExited(){var{menuIsOpen:e}=this.state;e&&this.setState({menuIsOpen:!1,keyboardOptionIndex:0})}handleCustomInput(e){var{timeToValue:n}=this.props,r=n(e);this.updateInputValue(r),this.setState({customTime:e})}updateFromCustom(){var{timeToValue:e}=this.props,{customTime:n}=this.state,r=e(n);this.updateInputValue(r)}toggleMenu(e){var{menuIsOpen:n}=this.state;n?this.closeMenu():this.openMenu(),e.stopPropagation()}openMenu(){this.updateKeyboardIndex(),this.setInputWidth(),this.setState({menuIsOpen:!0})}closeMenu(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;if(this.setState({menuIsOpen:!1}),e){var n;(n=this.button.current)===null||n===void 0||n.focus()}}updateKeyboardIndex(){var{options:e,value:n}=this.props;if(n!==null){var r=e.map(i=>i.value).indexOf(n);r>0&&this.setState({keyboardOptionIndex:r})}}scrollOptionIntoView(e){var n,r=(n=this.menuContainer.current)===null||n===void 0?void 0:n.querySelector(".cs-options");if(r&&r.children!=null){var i=r.children.item(e);i instanceof HTMLElement&&i.offsetTop>z.DROP_DOWN_MENU_HEIGHT?r.scrollTop=i.offsetTop-z.DROP_DOWN_MENU_HEIGHT:(i instanceof HTMLElement&&i.offsetTop<0||e===0)&&(r.scrollTop=0)}}renderMenuElement(){var{inputWidth:e}=this.state;return u.jsx("div",{className:"cs-menu-container",ref:this.menuContainer,role:"presentation",onKeyDown:this.handleMenuKeyDown,onClick:n=>{n.stopPropagation()},style:{width:e},children:u.jsx("div",{className:"cs-options-container",children:u.jsx("div",{className:"cs-options",children:this.renderOptions()})})})}renderOptions(){for(var{options:e,value:n,icon:r,customText:i}=this.props,{keyboardOptionIndex:a,customTime:o,inputFocused:l}=this.state,s=!1,d=[],f=0;f<e.length;f+=1){var p=e[f],h="option-".concat(f,"-").concat(p.value);s=s||p.value===n,d.push(u.jsxs("button",{type:"button",value:f,className:N("cs-option-btn",{"keyboard-active":a===f&&!l}),onClick:this.handleOptionClick,onFocus:this.handleOptionFocus,children:[p.value===n&&u.jsx(Y,{icon:r,className:"mr-2"}),p.value!==n&&u.jsx("span",{className:"mr-4"}),p.title]},h))}return d.push(u.jsx("hr",{className:"cs-divider"},"option-divider")),d.push(u.jsxs("button",{type:"button",value:rr,className:N("cs-option-btn",{"keyboard-active":l}),onClick:this.handleOptionClick,onFocus:this.handleOptionFocus,children:[!s&&n!==null?u.jsx(Y,{icon:r,className:"mr-2"}):u.jsx("span",{className:"mr-4"}),i]},"option-custom-label")),d.push(u.jsxs("div",{className:"cs-custom-container",children:[u.jsx("span",{className:"mr-2"}),u.jsx(qe,{ref:this.input,onChange:this.handleCustomInput,value:o,onFocus:()=>this.setState({inputFocused:!0}),onBlur:()=>this.setState({inputFocused:!1})},"option-input"),u.jsx("span",{className:"ml-2"})]},"cs-custom-container")),d.push(u.jsx("hr",{className:"mb-2"},"option-end")),d}render(){var{disabled:e,invalid:n,value:r,"data-testid":i}=this.props,{menuIsOpen:a}=this.state,{popperOptions:o}=this.props;return o=wg({placement:"bottom-end",modifiers:{preventOverflow:{enabled:!1}}},o),u.jsx("div",{className:"input-group cs-container context-menu",ref:this.csContainer,"data-testid":i,children:u.jsx("div",{className:N("input-group-append cs-dropdown",{"cs-dropdown-invalid":n}),children:u.jsxs("button",{type:"button",className:N("btn cs-btn form-control",{"cs-btn-invalid":n}),ref:this.button,onClick:this.toggleMenu,disabled:e,children:[u.jsx("span",{className:N({"text-muted":r===null}),children:this.getSelectedText()}),u.jsx("span",{className:"cs-caret"}),u.jsx(bi,{isShown:a,actions:{menuElement:this.renderMenuElement()},popperOptions:o,popperClassName:"CustomTimeSelect",onMenuOpened:this.handleMenuOpened,onMenuClosed:this.handleMenuExited,menuStyle:{maxWidth:"100rem"}})]})})})}}ce(z,"MENU_NAVIGATION_DIRECTION",qa);ce(z,"DROP_DOWN_MENU_HEIGHT",125);ce(z,"defaultProps",{onChange(){},value:null,disabled:!1,popperOptions:{},icon:il,customText:"Custom",placeholder:"Select a time",valueToTime:t=>t===null?0:Math.round(t/1e3),timeToValue:t=>t*1e3,invalid:!1,"data-testid":void 0});var Eg=B.module("DateInput"),Cg="[12][0-9]{3}-(0[1-9]|1[0-2])-(0[1-9]|[1-2][0-9]|3[0-1])",Tg=["2000-01-01","2022-12-31"],jg="YYYY-MM-DD",za=$.forwardRef((t,e)=>{var{className:n="",onChange:r=()=>{},defaultValue:i="",onFocus:a=()=>{},onBlur:o=()=>{},"data-testid":l}=t,[s,d]=c.useState(i),[f,p]=c.useState(),h=c.useCallback(m=>{Eg.debug("handleChange",m),d(m),r(m)},[r]);return u.jsx("div",{className:"d-flex flex-row align-items-center",children:u.jsx(un,{ref:e,className:N(n),example:Tg,getNextSegmentValue:Bp,onChange:h,onSelect:p,pattern:Cg,placeholder:jg,selection:f,value:s,onFocus:a,onBlur:o,"data-testid":l})})});za.displayName="DateInput";var Ig={CYCLE_TO_NEXT_STACK:pe.createAndAdd({id:"NAVIGATION.CYCLE_TO_NEXT_STACK",name:"Cycle To Next Stack",shortcut:[H.CTRL,q.SINGLE_QUOTE],macShortcut:[H.CMD,q.SINGLE_QUOTE],isEditable:!0}),CYCLE_TO_PREVIOUS_STACK:pe.createAndAdd({id:"NAVIGATION.CYCLE_TO_PREVIOUS_STACK",name:"Cycle To Previous Stack",shortcut:[H.CTRL,q.SEMICOLON],macShortcut:[H.CMD,q.SEMICOLON],isEditable:!0}),CYCLE_TO_NEXT_TAB:pe.createAndAdd({id:"NAVIGATION.CYCLE_TO_NEXT_TAB",name:"Cycle To Next Tab",shortcut:[H.CTRL,H.SHIFT,q.DOUBLE_QUOTE],macShortcut:[H.CMD,H.SHIFT,q.SINGLE_QUOTE],isEditable:!0}),CYCLE_TO_PREVIOUS_TAB:pe.createAndAdd({id:"NAVIGATION.CYCLE_TO_PREVIOUS_TAB",name:"Cycle To Previous Tab",shortcut:[H.CTRL,H.SHIFT,q.COLON],macShortcut:[H.CMD,H.SHIFT,q.SEMICOLON],isEditable:!0}),CYCLE_TO_NEXT_DASHBOARD:pe.createAndAdd({id:"NAVIGATION.CYCLE_TO_NEXT_DASHBOARD",name:"Cycle To Next Dashboard",shortcut:[H.CTRL,q.PERIOD],macShortcut:[H.CMD,q.PERIOD],isEditable:!0}),CYCLE_TO_PREVIOUS_DASHBOARD:pe.createAndAdd({id:"NAVIGATION.CYCLE_TO_PREVIOUS_DASHBOARD",name:"Cycle To Previous Dashboard",shortcut:[H.CTRL,q.COMMA],macShortcut:[H.CMD,q.COMMA],isEditable:!0})};function kg(t){var{isInvalid:e=!1,items:n,onAdd:r=()=>{},onDelete:i=()=>{},validate:a=()=>null}=t,[o,l]=c.useState(null),[s,d]=c.useState([]),[f,p]=c.useState(""),h=c.useCallback(S=>{d(S)},[]),m=c.useCallback(()=>{i(wn.getItemsInRanges(n,s)),d([])},[n,s,i]),y=c.useCallback(()=>{if(f!==""){var S=a(f);S==null?(r(f),p("")):l(S)}},[f,r,a]),P=c.useCallback(S=>{var{value:E}=S.target;p(E),l(E===""?null:a(E))},[a]),v=c.useCallback(()=>{d([])},[]),g=c.useCallback(S=>{S.key==="Enter"&&y()},[y]),x=c.useMemo(()=>14+ti(n.length,1,6)*xt.DEFAULT_ROW_HEIGHT,[n.length]);return u.jsxs("div",{className:N("editable-item-list-container",{"is-invalid":e}),children:[u.jsx("div",{style:{height:x},children:u.jsx(xt,{itemCount:n.length,items:n.map((S,E)=>({value:S,isSelected:wn.isSelected(s,E)})),offset:0,selectedRanges:s,onSelectionChange:h,isMultiSelect:!0})}),u.jsxs("div",{className:"d-flex flex-row pt-2",children:[u.jsx("div",{className:"d-flex flex-grow-1",children:u.jsx("input",{className:N("form-control",{"is-invalid":o!=null}),placeholder:"Enter value",type:"text",value:f,onChange:P,onFocus:v,onKeyDown:g})}),u.jsxs("div",{className:"d-flex align-items-start mt-1 ml-2",children:[u.jsx(V,{kind:"ghost",onClick:y,disabled:o!=null||f==="",icon:al,tooltip:"Add new item","data-testid":"add-item-button"}),u.jsx(V,{kind:"ghost",onClick:m,disabled:s.length===0,icon:ci,tooltip:"Delete selected items","data-testid":"delete-item-button"})]})]})]})}function _g(t){var{message:e,isExpanded:n=!1,type:r="Error"}=t,[i,a]=c.useState(!1),[o,l]=c.useState(!1),s=c.useRef(null),d=c.useRef(null),f=c.useCallback(()=>{if(!(o||n||d.current==null)){var h=d.current.scrollHeight>d.current.clientHeight;a(h)}},[o,n]),p=Ie(f,100);return st(s.current,p),c.useLayoutEffect(p,[p]),u.jsxs("div",{className:N("error-view",{expanded:o||n}),ref:s,children:[u.jsxs("div",{className:"error-view-header",children:[u.jsxs("div",{className:"error-view-header-text",children:[u.jsx(Y,{icon:ol}),u.jsx("span",{children:r})]}),u.jsxs("div",{className:"error-view-buttons",children:[u.jsx(Pi,{UNSAFE_className:"error-view-copy-button",tooltip:"Copy error contents",copy:"".concat(r,": ").concat(e).trim()}),(i||o)&&!n&&u.jsx(V,{kind:"danger",className:"error-view-expand-button",onClick:()=>{l(!o)},icon:o?sl:ll,children:o?"Show Less":"Show More"})]})]}),u.jsx("pre",{className:"error-view-text",ref:d,children:e})]})}function Rg(t,e,n){return(e=Dg(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Dg(t){var e=Lg(t,"string");return typeof e=="symbol"?e:e+""}function Lg(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}class Pe extends c.Component{static isParentSelected(e,n){var r=n.get(e);if(r===void 0)return!1;if(typeof r=="boolean")return r;var i=Array.from(r.values()).includes(!0),a=Array.from(r.values()).includes(!1);return i&&a?null:i}constructor(e){super(e),this.toggleMenu=this.toggleMenu.bind(this),this.toggleValueFor=this.toggleValueFor.bind(this),this.selectAll=this.selectAll.bind(this),this.clear=this.clear.bind(this),this.state={menuIsOpen:!1}}toggleMenu(e){e.stopPropagation(),e.preventDefault(),this.setState(n=>{var{menuIsOpen:r}=n;return{menuIsOpen:!r}})}toggleValueFor(e,n){var{valueMap:r,onUpdateValueMap:i}=this.props,a=new Map(r),o=a.get(e);if(o instanceof Map){var l=new Map(o);if(n!=null)l.set(n,o.get(n)!==!0);else{var s=Pe.isParentSelected(e,a),d=s==null||!s;o.forEach((h,m)=>l.set(m,d))}a.set(e,l)}else a.set(e,o==null||!o);var f=a.get(e);if(n===void 0&&f!==void 0&&typeof f!="boolean"){var p=Pe.isParentSelected(e,r);p!=null&&p?f.forEach((h,m)=>f.set(m,!1)):f.forEach((h,m)=>f.set(m,!0))}i(a)}setAllValues(e){var{valueMap:n,onUpdateValueMap:r}=this.props,i=new Map;n.forEach((a,o)=>{if(typeof a=="boolean")i.set(o,e);else{var l=new Map;a.forEach((s,d)=>l.set(d,e)),i.set(o,l)}}),r(i)}selectAll(){this.setAllValues(!0)}clear(){this.setAllValues(!1)}renderMenuElement(){var{valueMap:e,"data-testid":n}=this.props;return u.jsxs("div",{className:"hcm-menu-container",children:[Array.from(e.entries()).map(r=>{var[i,a]=r;return u.jsxs("div",{children:[u.jsx(wt,{className:"hcm-parent",checked:Pe.isParentSelected(i,e),onChange:()=>this.toggleValueFor(i),children:i}),a!==void 0&&typeof a!="boolean"&&Array.from(a.entries()).map(o=>{var[l,s]=o;return u.jsx(wt,{className:"hcm-child",checked:s,onChange:()=>this.toggleValueFor(i,l),children:l},l)})]},i)}),u.jsx(V,{kind:"ghost",onClick:this.selectAll,"data-testid":n!==void 0?"".concat(n,"-btn-select-all"):void 0,children:"Select All"}),u.jsx(V,{kind:"ghost",onClick:this.clear,"data-testid":n!==void 0?"".concat(n,"-btn-clear"):void 0,children:"Clear"})]})}render(){var{menuText:e,className:n,icon:r,id:i,"data-testid":a}=this.props,{menuIsOpen:o}=this.state;return u.jsxs("button",{type:"button",className:N("btn hcm-btn",n),onClick:this.toggleMenu,id:i,"data-testid":a,children:[u.jsxs("span",{children:[r&&u.jsx(Y,{icon:r,className:"hcm-icon mr-1"}),e]}),u.jsx("span",{className:"cs-caret"}),u.jsx(rt,{options:{placement:"bottom"},isShown:o,onExited:()=>{this.setState({menuIsOpen:!1})},closeOnBlur:!0,interactive:!0,children:this.renderMenuElement()})]})}}Rg(Pe,"defaultProps",{className:"",icon:null,id:"","data-testid":void 0});function ir(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function pt(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?ir(Object(n),!0).forEach(function(r){Ag(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ir(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function Ag(t,e,n){return(e=Fg(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Fg(t){var e=Ng(t,"string");return typeof e=="symbol"?e:e+""}function Ng(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var Xa=c.memo(t=>{var{tab:e,onClose:n,onSelect:r,isActive:i,activeRef:a,index:o,isDraggable:l,contextActions:s,renderAfterTabContent:d}=t,{key:f,isClosable:p=n!=null,title:h,icon:m}=e,y;return m!=null&&(y=$.isValidElement(m)?m:u.jsx(Y,{icon:m})),u.jsx(Ho,{draggableId:f,index:o,isDragDisabled:!l,children:(P,v)=>u.jsxs("div",{className:"context-menu-wrapper",ref:i?a:null,children:[u.jsxs("div",pt(pt(pt({ref:P.innerRef},P.draggableProps),P.dragHandleProps),{},{className:N("btn btn-link btn-nav-tab",{active:i},{dragging:v.isDragging}),"data-testid":"btn-nav-tab-".concat(h),role:"tab",tabIndex:0,onAuxClick:g=>{p&&g.button===1&&g.buttons===0&&(n==null||n(f))},onClick:g=>{if(p&&g.button===1&&g.buttons===0){n==null||n(f);return}g.button===0&&g.buttons===0&&(g.target.focus(),r(f))},onKeyPress:g=>{g.key==="Enter"&&r(f)},children:[y,u.jsxs("span",{className:"btn-nav-tab-title",children:[h,u.jsx(Fe,{children:h})]}),d==null?void 0:d(e),p&&u.jsx(V,{kind:"ghost",className:"btn-nav-tab-close",onClick:g=>{n==null||n(f),g.stopPropagation(),g.preventDefault()},icon:di,tooltip:"Close"})]})),u.jsx(it,{actions:s})]})},f)});Xa.displayName="NavTab";function Qa(t){var{onSelect:e,tabs:n=xi}=t,[r,i]=c.useState(""),[a,o]=c.useState(0),l=c.useRef(null),s=c.useRef(null),d=c.useRef([]);c.useEffect(()=>{var g;(g=l.current)===null||g===void 0||g.focus()},[]),c.useEffect(()=>{o(0)},[r]),c.useEffect(()=>{if(a>=0&&d.current[a]){var g;(g=d.current[a])===null||g===void 0||g.scrollIntoView({behavior:"auto",block:"nearest"})}},[a]);var f=c.useCallback(g=>{i(g.target.value)},[]),p=c.useCallback(g=>{e(g)},[e]),h=c.useCallback(g=>{g.preventDefault()},[]),m=c.useMemo(()=>n.filter(g=>g.title.toLowerCase().includes(r.toLowerCase())),[r,n]).sort((g,x)=>{var S;return(S=g.title.localeCompare(x.title))!==null&&S!==void 0?S:0}),y=c.useCallback(g=>{if(g.key==="ArrowDown"&&m.length>0)g.preventDefault(),o(S=>S===-1?0:(S+1)%m.length);else if(g.key==="ArrowUp"&&m.length>0)g.preventDefault(),o(S=>S===-1?m.length-1:(S-1+m.length)%m.length);else if(g.key==="Enter"&&m.length>0){g.preventDefault();var x=a>=0?a:0;p(m[x])}else g.key==="Tab"&&g.preventDefault()},[m,a,p]),P=c.useMemo(()=>m.map((g,x)=>{var S;return u.jsx("li",{ref:E=>{d.current[x]=E},onMouseDown:h,children:u.jsxs(V,{kind:"ghost","data-testid":"dashboard-list-item-".concat((S=g.key)!==null&&S!==void 0?S:"","-button"),onClick:()=>p(g),className:a===x?"focused":"",style:{transition:"none"},children:[g.icon?u.jsx("span",{className:"dashboard-list-item-icon",children:$.isValidElement(g.icon)?g.icon:u.jsx(Y,{icon:g.icon})}):null,g.title]})},g.key)}),[m,p,a,h]),v=c.useMemo(()=>P.length===0?u.jsx("span",{children:"No open dashboard found."}):null,[P]);return u.jsxs("div",{className:"dashboard-list-container d-flex flex-column",children:[u.jsx("div",{className:"dashboard-list-header",children:u.jsx(Qt,{value:r,placeholder:"Find open dashboard",endPlaceholder:at.OPEN_DASHBOARD_LIST.getDisplayText(),onChange:f,onKeyDown:y,ref:l})}),u.jsxs("ul",{className:"dashboard-list flex-grow-1",ref:s,children:[v&&u.jsx("li",{className:"dashboard-list-message",children:v}),!v&&P]})]})}function ar(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function or(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?ar(Object(n),!0).forEach(function(r){Mg(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ar(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function Mg(t,e,n){return(e=$g(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function $g(t){var e=Ug(t,"string");return typeof e=="symbol"?e:e+""}function Ug(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var Bg=500,Wg=.01,Hg=5e-4;function sr(t){return t.scrollLeft===0}function lr(t){return Math.abs(t.scrollLeft+t.clientWidth-t.scrollWidth)<=1||t.scrollWidth===0}function Vg(t,e,n){var{isClosable:r=!1,key:i}=t,a=[];if(r&&n!=null){a.push({title:"Close",order:10,group:20,action:()=>{n(i)}});for(var o=!0,l=e.length-1;l>0&&e[l].key!==t.key;l-=1)if(e[l].isClosable===!0){o=!1;break}a.push({title:"Close to the Right",order:20,group:20,action:()=>{for(var s=e.length-1;s>0&&e[s].key!==i;s-=1)e[s].isClosable===!0&&n(e[s].key)},disabled:o}),a.push({title:"Close All",order:30,group:20,action:()=>{e.forEach(s=>{s.isClosable===!0&&n(s.key)})}})}return a}function Gg(t){var{activeKey:e,tabs:n,onSelect:r,onReorder:i,onClose:a,makeContextActions:o,renderAfterTabContent:l}=t,s=c.useRef(),[d,f]=c.useState(!0),[p,h]=c.useState(!1),[m,y]=c.useState(!0),[P,v]=c.useState(!0),g=c.useCallback(()=>{s.current!=null&&(s.current.clientWidth<s.current.scrollWidth&&n.length>0?f(!0):f(!1),y(sr(s.current)),v(lr(s.current)))},[n]);st(s.current,g);var x=c.useCallback(k=>{Tt.stopDragging(),k.destination&&(i==null||i(k.source.index,k.destination.index))},[i]),S=c.useCallback(()=>{if(s.current!=null){var k=sr(s.current);k!==m&&y(k);var w=lr(s.current);w!==P&&v(w)}},[m,P]),E=c.useRef({cancelClick:!1}),b=c.useCallback(()=>{if(!(s.current==null||E.current.cancelClick))for(var{children:k}=s.current,w=k.length-1;w>=0;w-=1){var T=k[w];if(T.offsetLeft<s.current.scrollLeft-5){T.scrollIntoView({behavior:"smooth",block:"nearest",inline:"start"});return}}},[]),O=c.useCallback(()=>{if(!(s.current==null||E.current.cancelClick))for(var{children:k}=s.current,w=0;w<k.length;w+=1){var T=k[w];if(T.offsetLeft+T.offsetWidth-5>s.current.scrollLeft+s.current.offsetWidth){T.scrollIntoView({behavior:"smooth",block:"nearest",inline:"end"});return}}},[]),_=c.useCallback(function(k,w){var T=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,C=arguments.length>3?arguments[3]:void 0,A=s.current;A!=null&&(E.current.cancelClick=!0,k==="left"?A.scrollLeft=w-T:k==="right"&&(A.scrollLeft=w+T),E.current.rAF=requestAnimationFrame(K=>{var Oe=C??K,bn=K-Oe,dt=Wg*bn+.5*Hg*bn**2;dt=Math.min(dt,A.scrollWidth),_(k,w,dt,Oe)}))},[]),I=c.useCallback(()=>{var{holdTimer:k,rAF:w}=E.current;k!=null&&(clearTimeout(k),E.current.holdTimer=void 0),w!=null&&(cancelAnimationFrame(w),E.current.rAF=void 0),window.removeEventListener("mouseup",I)},[]);c.useEffect(()=>()=>window.removeEventListener("mouseup",I),[I]);var R=c.useCallback(k=>{s.current!=null&&(E.current.holdTimer=window.setTimeout(_,Bg,k,s.current.scrollLeft)),E.current.cancelClick=!1,window.addEventListener("mouseup",I)},[I,_]),F=c.useCallback(()=>{R("left")},[R]),W=c.useCallback(()=>{R("right")},[R]);c.useEffect(function(){var w,T=C=>{C.stopPropagation(),C.preventDefault();var A=C.currentTarget,K=Math.abs(C.deltaY)>Math.abs(C.deltaX)?C.deltaY:C.deltaX;A.scrollLeft+=ti(K,-30,30)};return(w=s.current)===null||w===void 0||w.addEventListener("wheel",T),()=>{var C;(C=s.current)===null||C===void 0||C.removeEventListener("wheel",T)}},[]);var j=c.useMemo(()=>{var k=new Map;return n.forEach(w=>{var{key:T}=w,C=[()=>Vg(w,n,a),()=>{var A;return(A=o==null?void 0:o(w))!==null&&A!==void 0?A:[]}];k.set(T,C)}),k},[o,n,a]),L=c.useRef(null),D=n.find(k=>k.key===e),U=n.map((k,w)=>{var{key:T}=k,C=k===D;return u.jsx(Xa,{tab:k,index:w,isActive:C,activeRef:L,onSelect:r,onClose:a,isDraggable:i!=null,contextActions:j.get(T),renderAfterTabContent:l},T)});c.useEffect(function(){L.current!=null&&L.current.scrollIntoView({block:"nearest",inline:"nearest"})},[e]);var Q=()=>{h(!p)},Z=k=>{h(!1),r(k.key)},G=()=>{h(!1)};return u.jsxs("nav",{className:"nav-container",children:[d&&u.jsx(V,{kind:"ghost",icon:u.jsx(Y,{icon:ul,transform:"grow-4"}),className:"tab-controls-btn tab-controls-btn-left",tooltip:"Scroll left",onClick:b,onMouseDown:F,disabled:m}),u.jsx(Vo,{onDragStart:Tt.startDragging,onDragEnd:x,children:u.jsx(Go,{droppableId:"droppable-tab-navigation",direction:"horizontal",children:(k,w)=>u.jsxs("div",or(or({ref:T=>{T!=null&&(s.current=T,k.innerRef(T))}},k.droppableProps),{},{className:N("nav nav-tabs",{dragging:w.draggingFromThisWith}),role:"tablist",onScroll:S,children:[U,k.placeholder]}))})}),d&&u.jsx(V,{kind:"ghost",icon:u.jsx(Y,{icon:cl,transform:"grow-4"}),className:"tab-controls-btn tab-controls-btn-right",tooltip:"Scroll right",onClick:O,onMouseDown:W,disabled:P}),u.jsx(V,{kind:"ghost",icon:u.jsx(Y,{icon:dl,transform:"grow-4"}),className:"btn-dashboard-list-menu btn-show-dashboard-list",tooltip:"Search open dashboards",onClick:Q,disabled:n.length<2,style:{visibility:d?"visible":"hidden",marginLeft:"auto"},children:u.jsx(rt,{isShown:p,className:"dashboard-list-menu-popper",onExited:G,options:{placement:"bottom-start"},closeOnBlur:!0,interactive:!0,children:u.jsx(Qa,{tabs:n,onSelect:Z})})}),u.jsx(it,{actions:[{action:()=>{h(!p)},shortcut:at.OPEN_DASHBOARD_LIST,isGlobal:!0}]})]})}var Yg=.025,Kg=.9,qg=.1,zg=.618,ur=80,ye={SIZE:8,DOT_SIZE:2},ie=18,Xg=250,Qg=60*1e3,Jg={background:"var(--dh-color-random-area-plot-animation-bg)",foregroundFill:"var(--dh-color-random-area-plot-animation-fg-fill)",foregroundStroke:"var(--dh-color-random-area-plot-animation-fg-stroke)",gridColor:"var(--dh-color-random-area-plot-animation-grid)"};function Zg(){return pi(Jg)}var Ja=$.memo(()=>{var{activeThemes:t}=tt(),e=c.useMemo(Zg,[t]),n=c.useRef(null),r=c.useRef(null),[i,a]=c.useState(!1),o=window.devicePixelRatio,l,s,d,f,p,h=null,m=[];function y(){var j;r.current!=null&&(d=r.current.offsetWidth,f=r.current.offsetHeight),n.current!=null&&(n.current.style.width="".concat(d,"px"),n.current.style.height="".concat(f,"px"),n.current.width=d*o,n.current.height=f*o),(j=l)===null||j===void 0||j.scale(o,o)}function P(){var{foregroundFill:j,foregroundStroke:L}=e,D=document.createElement("canvas");D.width=ye.SIZE,D.height=ye.SIZE;var U=D.getContext("2d");return U!=null&&(U.fillStyle=L,U.fillRect(0,0,ye.DOT_SIZE,ye.DOT_SIZE),U.fillStyle=j,U.fillRect(0,0,ye.SIZE,ye.SIZE)),U==null?void 0:U.createPattern(D,"repeat")}function v(j){var L=Math.random()-.5,D=Yg*L;return j<qg?D=Math.abs(D):j>Kg&&(D=-Math.abs(D)),j+D}function g(){for(var j=[],L=zg,D=0;D<d+ie;D+=1)L=v(L),j.push(L);return j}function x(){for(;m.length>=d+ie;)m.pop();for(;m.length<d+ie;)m.push(v(m[m.length-1]))}function S(j,L){L.beginPath(),L.moveTo(-1,f+1),L.lineTo(-1,f*j[0]);for(var D=0;D<j.length;D+=1)L.lineTo(D,f*j[D]);L.lineTo(d+ie,f*j[j.length-1]),L.lineTo(d+ie,f+1),L.closePath()}function E(j){j.beginPath();for(var L=1;L<d;L+=ur)j.moveTo(L,0),j.lineTo(L,f);for(var D=1;D<f;D+=ur)j.moveTo(0,D),j.lineTo(d,D)}function b(j){h=h??j;var{background:L,foregroundStroke:D,gridColor:U}=e;Je(l),l.fillStyle=L,l.fillRect(0,0,d,f),E(l),l.lineWidth=1,l.strokeStyle=U,l.stroke();var Q=((h??0)-(j??0))/(1e3/ie);if(l.translate(Q,0),S(m,l),l.lineWidth=2,l.strokeStyle=D,l.stroke(),l.translate(-Q,0),s!=null&&(l.fillStyle=s),l.fill(),l.setTransform(o,0,0,o,0,0),(j??0)-(h??0)>1e3/ie){for(var Z=Math.floor(((j??0)-(h??0))/(1e3/ie)),G=0;G<Z;G+=1)m.shift(),m.push(v(m[m.length-1]));h=j}p!=null&&cancelAnimationFrame(p),p=requestAnimationFrame(b)}var O=je(()=>{p=requestAnimationFrame(j=>{y(),x(),a(!1),b(j)})},Xg,{leading:!0});function _(){a(!0),p!=null&&cancelAnimationFrame(p),p=null,h=null}var I=je(()=>{_()},Qg);function R(){p==null&&(a(!1),y(),x(),p=requestAnimationFrame(b)),I()}function F(){document.hasFocus()&&R()}function W(){p!=null&&cancelAnimationFrame(p),I(),O()}return c.useEffect(()=>{var j;return l=(j=n.current)===null||j===void 0?void 0:j.getContext("2d",{alpha:!1}),y(),m=g(),s=P(),b(),I(),window.addEventListener("resize",W),window.addEventListener("focus",R),window.addEventListener("blur",_),window.addEventListener("mousemove",F),window.addEventListener("keydown",F),()=>{p!=null&&cancelAnimationFrame(p),window.removeEventListener("resize",W),window.removeEventListener("focus",R),window.removeEventListener("blur",_),window.removeEventListener("mousemove",F),window.removeEventListener("keydown",F),I.cancel(),O.cancel()}},[e]),u.jsx("div",{className:"random-area-plot-animation-container",ref:r,children:u.jsx("canvas",{ref:n,className:i?"shade":""})})});function Za(t){var{text:e,placement:n="top-start"}=t,r=c.useMemo(()=>({placement:n}),[n]);return u.jsxs(u.Fragment,{children:[u.jsx(nt,{UNSAFE_className:sn.spectrumEllipsis,children:e??u.jsx(u.Fragment,{children:" "})}),e==null||e===""?null:u.jsx(Fe,{options:r,children:e})]})}var ey=["scrollRef","getItemDisplayText","getKey"];function cr(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function dr(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?cr(Object(n),!0).forEach(function(r){ty(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):cr(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function ty(t,e,n){return(e=ny(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function ny(t){var e=ry(t,"string");return typeof e=="symbol"?e:e+""}function ry(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function iy(t,e){if(t==null)return{};var n,r,i=ay(t,e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(r=0;r<a.length;r++)n=a[r],e.indexOf(n)===-1&&{}.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function ay(t,e){if(t==null)return{};var n={};for(var r in t)if({}.hasOwnProperty.call(t,r)){if(e.indexOf(r)!==-1)continue;n[r]=t[r]}return n}function oy(t){var{scrollRef:e,getItemDisplayText:n,getKey:r}=t,i=iy(t,ey),a=c.useCallback(o=>{var l=r(o),s=n(o);return u.jsx(ze,{textValue:s??String(l),children:u.jsx(Za,{text:s})},l)},[n,r]);return u.jsx(Wt,dr(dr({},i),{},{ref:e,menuTrigger:"focus",onSelectionChange:i.onSelectionChange,children:a}))}var sy=500;function ly(t){var{heading:e,content:n,delayMs:r=sy}=t,[i,a]=c.useState(!1);return c.useEffect(()=>{window.setTimeout(()=>{a(!0)},r)},[r]),i?u.jsxs(ni,{children:[u.jsx(Le,{size:"XXL",children:u.jsx(Y,{icon:pl})}),u.jsx(Xt,{children:e}),n==null?null:u.jsx(Ht,{children:n})]}):null}const eo={"handle-size":"15px","popover-width":"90px"};var Be=parseInt(eo["handle-size"],10),pr=parseInt(eo["popover-width"],10),X=24*60*60-1,fr=5*60;function uy(t){var{startTime:e,endTime:n,onChange:r,isStartModified:i=!1,isEndModified:a=!1,"data-testid":o}=t,[l,s]=c.useState(e),[d,f]=c.useState(n),p=c.useRef(null);c.useEffect(function(){s(e),f(n)},[e,n]);var h=c.useCallback((P,v)=>{var g=P,x=v;g===x&&(x<X?x+=1:g-=1),s(g),f(x),r({startTime:g,endTime:x})},[s,f,r]),m=c.useCallback(P=>{h(P,d)},[h,d]),y=c.useCallback(P=>{h(l,P)},[h,l]);return u.jsxs("div",{className:"time-slider","data-testid":o,children:[u.jsx(cy,{startTime:l,endTime:d,onStartTimeChange:m,onEndTimeChange:y,isStartModified:i,isEndModified:a}),u.jsxs("div",{className:"track",ref:p,children:[u.jsx(dy,{startTime:l,endTime:d}),u.jsx("div",{className:"ticks",children:Array(24).fill(null).map((P,v)=>u.jsx("div",{className:"tick"},v))}),u.jsx(hr,{track:p,time:l,setTime:m}),u.jsx(hr,{track:p,time:d,setTime:y})]}),u.jsxs("div",{className:"tick-labels",children:[u.jsx("div",{className:"tick-label",children:"0:00"}),u.jsx("div",{className:"tick-label-wrapper",children:Array(24).fill(null).map((P,v)=>u.jsx("div",{className:"tick-label",children:"".concat(v+1,":00")},v))})]})]})}function cy(t){var{startTime:e,endTime:n,onStartTimeChange:r,onEndTimeChange:i,isStartModified:a,isEndModified:o,"data-testid":l}=t,s=e>n,[d,f]=c.useState(s?n:e),[p,h]=c.useState(s?e:n),m=c.useRef(null),y=c.useRef(null),P=c.useRef(null),v=c.useRef(null);c.useEffect(function(){f(e>n?n:e),h(e>n?e:n)},[e,n]),c.useEffect(function(){if(P.current!==null){var O;(O=y.current)===null||O===void 0||O.setSelection(P.current)}if(v.current!==null){var _;(_=m.current)===null||_===void 0||_.setSelection(v.current)}},[s]);function g(b){e<=n?r(b):i(b)}function x(b){e<=n?i(b):r(b)}var S=c.useCallback(b=>{P.current=b,v.current=null},[]),E=c.useCallback(b=>{P.current=null,v.current=b},[]);return u.jsxs("div",{className:"time-slider-popovers",children:[u.jsx("div",{className:"flex",style:{flexBasis:"calc(".concat(d/X*100,"% - ").concat(pr/2,"px)")}}),u.jsxs("div",{className:"handle-popper",children:[u.jsx("label",{className:N({modified:s?o:a}),children:s?"End Time":"Start Time"}),u.jsx(qe,{ref:m,allowValueWrapping:!1,value:d,onChange:g,onSelect:S,"data-testid":l!==void 0?"".concat(l,"-input-1"):void 0})]}),u.jsx("div",{className:"flex-spacer"}),u.jsxs("div",{className:"handle-popper",children:[u.jsx("label",{className:N({modified:s?a:o}),children:s?"Start Time":"End Time"}),u.jsx(qe,{ref:y,allowValueWrapping:!1,value:p,onChange:x,onSelect:E,"data-testid":l!==void 0?"".concat(l,"-input-2"):void 0})]}),u.jsx("div",{className:"flex",style:{flexBasis:"calc(".concat((X-p)/X*100,"% - ").concat(pr/2,"px)")}})]})}function dy(t){var{startTime:e,endTime:n,"data-testid":r}=t;return u.jsxs("div",{className:"track-fills","data-testid":r,children:[e>n&&u.jsxs(u.Fragment,{children:[u.jsx("div",{className:"track-fill track-fill-start",style:{transform:"scaleX(".concat(n/X,")")}}),u.jsx("div",{className:"track-fill track-fill-end",style:{transform:"scaleX(".concat((X-e)/X,")")}})]}),e<n&&u.jsx("div",{className:"track-fill track-fill-middle",style:{transform:"translateX(".concat(e/X*100,"%) scaleX(").concat((n-e)/X,")")}})]})}function hr(t){var{track:e,time:n,setTime:r,"data-testid":i}=t,a=c.useMemo(()=>{var h=3600,m=Be/2;return n<h?m=n/h*(Be/2):n>23*h&&(m=Be/2+1/(X-23*h)*(n-23*h)*(Be/2)),"translateX(calc(".concat(n/X*100,"% - ").concat(m,"px))")},[n]),o=c.useCallback(h=>{if(!e.current)return 0;var m=e.current.getBoundingClientRect(),y=Math.max(h-m.left,0),P=X*Math.min(1,y/m.width),v=fr*Math.round(P/fr),g=Math.min(X,v);return g},[e]),l=c.useCallback(h=>{var{clientX:m}=h;r(o(m))},[r,o]),s=c.useCallback(h=>{var{clientX:m}=h;r(o(m)),window.removeEventListener("mousemove",l),window.removeEventListener("mouseup",s),document.documentElement.classList.remove("drag-pointer-events-none")},[r,o,l]),d=c.useCallback(()=>{window.addEventListener("mousemove",l),window.addEventListener("mouseup",s),document.documentElement.classList.add("drag-pointer-events-none")},[l,s]),f=c.useCallback(()=>{window.removeEventListener("mousemove",l),window.removeEventListener("mouseup",s),document.documentElement.classList.remove("drag-pointer-events-none")},[l,s]),p=c.useCallback(()=>{d()},[d]);return c.useEffect(function(){return()=>{f()}},[f]),u.jsx("div",{className:"handle-track",style:{transform:a},children:u.jsx("button",{className:"handle",type:"button","aria-label":"Change time",onMouseDown:p,"data-testid":i})})}function to(t){var{buttons:e,isShown:n=!1,classNames:r,message:i,type:a,onClick:o,onDismiss:l,"data-testid":s}=t,d=c.useRef(null),f=e&&e.length!==0;return u.jsx(ei,{in:n,timeout:Pt.transitionMs,classNames:"toast-notification-slide-up",mountOnEnter:!0,unmountOnExit:!0,nodeRef:d,children:u.jsxs("div",{ref:d,className:N("toast-notification",r,a),role:"presentation",onClick:o,onKeyPress:o,"data-testid":s,children:[u.jsx("div",{className:"message-container",children:u.jsx("span",{className:"message",children:i})}),u.jsx(Zt,{in:f,timeout:Pt.transitionSlowMs,mountOnEnter:!0,unmountOnExit:!0,children:u.jsx("div",{className:"buttons-container",children:e})}),l&&u.jsx(V,{kind:"ghost",icon:di,tooltip:"Close notification",className:"my-2",onClick:l})]})})}to.TYPE=Object.freeze({ERROR:"error"});const py=Object.freeze(Object.defineProperty({__proto__:null,ACTION_ICON_HEIGHT:ln,Accordion:Yo,ActionBar:Zr,ActionButton:Xe,ActionButtonDialogTrigger:Ua,ActionGroup:Wp,ActionMenu:Hp,AlertDialog:Ko,AutoCompleteInput:te,AutoResizeTextarea:og,Avatar:qo,Badge:zo,BasicModal:wi,Breadcrumbs:Xo,BulkActionBar:dg,Button:V,ButtonGroup:Jr,CSS_VAR_EXPRESSION_PREFIX:fl,Calendar:Qo,CardFlip:Cd,Checkbox:wt,CheckboxGroup:$m,Collapse:Re,ColorEditor:Jo,ColorPicker:Zo,ColorValues:Ou,ComboBox:Vp,ComboBoxNormalized:Na,ConfirmActionButton:zm,ConfirmationDialog:Ba,Content:Ht,ContextActionUtils:le,ContextActions:it,ContextMenuItem:vi,ContextMenuRoot:Ya,ContextualHelp:es,ContextualHelpTrigger:ts,CopyButton:Pi,CustomTimeSelect:z,DEFAULT_DARK_THEME_KEY:hl,DEFAULT_DARK_THEME_PALETTE:ml,DEFAULT_GET_PREFERRED_REPLACEMENT_STRING:ca,DEFAULT_LIGHT_THEME_KEY:gl,DEFAULT_PRELOAD_DATA_VARIABLES:yl,DH_CSS_VAR_NAME_REGEXP:vl,DH_VAR_PREFIX:bl,DashboardList:Qa,DateField:ns,DateInput:za,DatePicker:rs,DateRangePicker:is,DateTimeInput:Gp,DebouncedModal:Va,DebouncedSearchInput:Eu,Dialog:zr,DialogContainer:as,DialogTrigger:qr,Disclosure:os,DisclosurePanel:ss,DisclosureTitle:ls,Divider:Xr,DragUtils:Tt,DraggableItemList:Yp,DropdownMenu:bi,EXTERNAL_THEME_KEY:Pl,EditableItemList:kg,ErrorBoundary:Cu,ErrorView:_g,FadeTransition:Zt,Flex:Kr,FontBootstrap:Aa,FontsLoaded:Fa,FontsLoadedContext:lt,Footer:us,Form:Qr,GLOBAL_SHORTCUTS:at,Grid:cs,Header:ds,Heading:Xt,HierarchicalCheckboxMenu:Pe,ITEM_EMPTY_STRING_TEXT_VALUE:Kp,Icon:Le,IconActionButton:Wa,IllustratedMessage:ni,Image:ps,InfoModal:Ga,InlineAlert:fs,Item:ze,ItemContent:qp,ItemList:xt,ItemListItem:Tu,ItemTooltip:zp,KEY:q,Keyboard:hs,LIST_VIEW_ROW_HEIGHTS:da,LabeledValue:ms,Link:ri,ListActionGroup:Xp,ListActionMenu:Qp,ListView:Pm,ListViewNormalized:Ma,ListViewWrapper:pn,LoadingOverlay:me,LoadingSpinner:Qe,LogicButton:gs,Logo:tm,MODIFIER:H,MSG_REQUEST_GET_THEME:xl,MSG_REQUEST_SET_THEME:li,MaskedInput:un,Menu:Jp,MenuItem:Zp,MenuTrigger:ys,Meter:vs,Modal:Yt,ModalBody:Kt,ModalFooter:Si,ModalHeader:fi,NAVIGATION_SHORTCUTS:Ig,NON_WHITESPACE_REGEX:wl,NavTabList:Gg,NumberField:bs,Option:pa,PICKER_ITEM_HEIGHTS:ef,PICKER_TOP_OFFSET:tf,PRELOAD_TRANSPARENT_THEME_QUERY_PARAM:Sl,Page:nf,Picker:rf,PickerNormalized:af,Popper:rt,ProgressBar:Ps,ProgressCircle:xs,Radio:ws,RadioGroup:Ss,RandomAreaPlotAnimation:Ja,RangeCalendar:Os,RangeSlider:Es,SVG_ICON_MANUAL_COLOR_MAP:Ol,SearchField:Cs,SearchInput:Qt,SearchableCombobox:oy,Section:of,Select:Oi,SelectValueList:fa,Shortcut:ju,ShortcutRegistry:pe,SlideTransition:sf,Slider:Ts,SocketedButton:Td,SpectrumButton:vt,SpectrumCheckbox:yt,SpectrumComboBox:Wt,SpectrumMenu:js,SplitButtonGroup:Iu,Stack:lf,StatusLight:Is,SubmenuTrigger:ks,Switch:_s,TABLE_ROW_HEIGHT:uf,THEME_CACHE_LOCAL_STORAGE_KEY:El,THEME_KEY_OVERRIDE_QUERY_PARAM:Cl,TMP_CSS_PROP_PREFIX:Tl,TRANSPARENT_PRELOAD_DATA_VARIABLES:jl,TabList:Rs,TabPanels:jh,TableViewEmptyState:ly,Tabs:Ds,TagGroup:Ls,Text:nt,TextArea:As,TextField:Fs,TextWithTooltip:Za,ThemeContext:ku,ThemeExport:Pt,ThemePicker:em,ThemeProvider:Ei,TimeField:Ns,TimeInput:qe,TimeSlider:uy,ToastContainer:Ms,ToastNotification:to,ToastQueue:$s,ToggleButton:Us,Tooltip:Fe,UISwitch:_u,View:$a,WHITESPACE_REGEX:Il,Well:Bs,XComponentMapContext:Ru,XComponentMapProvider:Du,baseStyleProps:Ws,calculatePreloadStyleContent:kl,canHaveRef:Ci,colorValueStyle:J,createCssVariableResolver:_l,createPreloadStyleElement:Rl,createXComponent:Lu,extractDistinctCssVariableExpressions:Dl,fillToLength:cf,getActiveThemes:Ll,getDefaultBaseThemes:Al,getDefaultSelectedThemeKey:Fl,getExpressionRanges:Nl,getItemKey:Ct,getItemTextValue:df,getPositionOfSelectedItemElement:pf,getThemeKey:Ml,getThemeKeyOverride:$l,getThemePreloadData:Ul,isBaseThemeKey:Bl,isClassComponent:Au,isDHColorValue:Fu,isExternalThemeData:ui,isExternalThemeEnabled:Vt,isForwardRefComponentType:Nu,isItemElement:ff,isItemElementWithDescription:hf,isItemOrSection:mf,isNormalizedItemsWithKeysList:gf,isNormalizedSection:yf,isPreloadTransparentTheme:Wl,isSectionElement:vf,isValidColorVar:Hl,isWrappedComponent:Ti,itemSelectionToStringSet:Ge,normalizeTooltipOptions:on,overrideSVGFillColors:Vl,parseExternalThemeData:oi,preloadTheme:Gl,replaceSVGFillColor:Yl,requestExternalThemeData:si,resolveCssVariablesInRecord:pi,resolveCssVariablesInString:Kl,separateSpectrumProps:Ra,setThemePreloadData:ql,themeDHDefault:zl,themeDark:Xl,themeLight:Ql,trimTrailingMask:bf,useExternalTheme:La,useOnChangeTrackUncontrolled:Pf,usePickerItemScale:ha,usePickerNormalizedProps:sa,usePickerProps:xf,usePickerScrollOnOpen:wf,useRenderNormalizedItem:ua,useSpectrumThemeProvider:an,useStaticItemInitialScrollPosition:Sf,useStringifiedMultiSelection:Da,useStringifiedSelection:Of,useStyleProps:Hs,useTheme:tt,useXComponent:Mu,viewStyleProps:Vs,wrapIcon:Ef,wrapItemChildren:la,wrapPrimitiveWithText:Cf},Symbol.toStringTag,{value:"Module"}));var no=$.memo(t=>{var{children:e,onError:n,widget:r}=t,[i,a]=en(r);return a!=null?(n==null||n(a),null):i==null?null:u.jsx(qt.Provider,{value:i,children:e})});no.displayName="DeferredApiBootstrap";var ut=c.createContext(null);ut.displayName="ObjectFetchManagerContext";function ro(t){var[e,n]=c.useState({status:"loading"}),r=c.useContext(ut);return c.useEffect(()=>{if(r==null){n({error:new Error("No ObjectFetchManager available in context"),status:"error"});return}return n(i=>i.status==="loading"?i:{status:"loading"}),r.subscribe(t,n)},[t,r]),e}function mr(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function gr(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?mr(Object(n),!0).forEach(function(r){fy(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):mr(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function fy(t,e,n){return(e=hy(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function hy(t){var e=my(t,"string");return typeof e=="symbol"?e:e+""}function my(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function yr(t,e,n,r,i,a,o){try{var l=t[a](o),s=l.value}catch(d){return void n(d)}l.done?e(s):Promise.resolve(s).then(r,i)}function gy(t){return function(){var e=this,n=arguments;return new Promise(function(r,i){var a=t.apply(e,n);function o(s){yr(a,r,i,o,l,"next",s)}function l(s){yr(a,r,i,o,l,"throw",s)}o(void 0)})}}var We=B.module("useWidget");function yy(t){var[e,n]=c.useState(()=>({widget:null,error:null})),r=ro(t),[i,a]=en(t),o=ge(),l=i??o;c.useEffect(function(){We.debug("loadWidget",t);var{status:f}=r;if(f==="error"){n({widget:null,error:r.error});return}if(f==="loading"){n({widget:null,error:null});return}var{fetch:p}=r,h=!1;function m(){return y.apply(this,arguments)}function y(){return y=gy(function*(){try{Je(p);var P=yield p();if(h){We.debug2("loadWidgetInternal cancelled",t,P),P.close(),"exportedObjects"in P&&P.exportedObjects.forEach(v=>{v.close()});return}We.debug("loadWidgetInternal done",t,P),n({widget:P,error:null})}catch(v){if(h)return;We.error("loadWidgetInternal error",t,v),n({widget:null,error:v??new Error("Null error")})}}),y.apply(this,arguments)}return m(),()=>{h=!0}},[t,r]);var s=c.useMemo(()=>{var d;return gr(gr({},e),{},{error:(d=e.error)!==null&&d!==void 0?d:a,api:e.widget!=null?l:null})},[e,l,a]);return s}const vy=Object.freeze(Object.defineProperty({__proto__:null,ApiBootstrap:Jl,ApiContext:qt,ClientBootstrap:mi,ClientContext:ou,DeferredApiBootstrap:no,DeferredApiContext:jd,ObjectFetchManagerContext:ut,ObjectFetcherContext:ji,getVariableDescriptor:$u,isIdVariableDescriptor:Uu,isNameVariableDescriptor:Bu,isVariableDescriptor:Wu,sanitizeVariableDescriptor:Ii,useApi:ge,useClient:Ae,useDeferredApi:en,useObjectFetch:ro,useObjectFetcher:Hu,useWidget:yy},Symbol.toStringTag,{value:"Module"}));function by(t){return function(n){var{children:r}=n;return u.jsx(qt.Provider,{value:t,children:r})}}var io="io.deephaven.message.LoginOptions.request",ao="io.deephaven.message.SessionDetails.request",oo="io.deephaven.broadcast",fn="io.deephaven.broadcast.Login",so="io.deephaven.broadcast.Logout";function lo(t){return Ze(t)&&t.message===fn}function uo(t){return Ze(t)&&t.message===so}function Py(t,e,n){return(e=xy(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function xy(t){var e=wy(t,"string");return typeof e=="symbol"?e:e+""}function wy(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}class co extends Error{constructor(){super(...arguments),Py(this,"isNoConsolesError",!0)}}function po(t){return t.isNoConsolesError}function vr(t,e,n,r,i,a,o){try{var l=t[a](o),s=l.value}catch(d){return void n(d)}l.done?e(s):Promise.resolve(s).then(r,i)}function ct(t){return function(){var e=this,n=arguments;return new Promise(function(r,i){var a=t.apply(e,n);function o(s){vr(a,r,i,o,l,"next",s)}function l(s){vr(a,r,i,o,l,"throw",s)}o(void 0)})}}var Te=B.module("SessionUtils");function fo(t,e,n){return It.apply(this,arguments)}function It(){return It=ct(function*(t,e,n){Te.info("Getting console types...");var r=yield e.getConsoleTypes();if(r.length===0)throw new co("No console types available");Te.info("Available types:",r);var i=r[0];Te.info("Starting session with type",i);var a=yield e.startSession(i),o={type:i,id:Bt()};return Te.info("Console session established",o),{session:a,config:o,connection:e,details:n,dh:t}}),It.apply(this,arguments)}function Sy(t,e,n){return Te.info("createCoreClient",e),new t.CoreClient(e,n)}function Oy(t){return t!=null&&typeof t=="object"}function Ey(){return kt.apply(this,arguments)}function kt(){return kt=ct(function*(){var t=yield zt(ao);if(!Oy(t))throw new Error("Unexpected session details response: ".concat(t));return t}),kt.apply(this,arguments)}function Cy(){return _t.apply(this,arguments)}function _t(){return _t=ct(function*(){var t=new URLSearchParams(window.location.search);switch(t.get("authProvider")){case"parent":return Ey()}return{}}),_t.apply(this,arguments)}function Ty(t,e,n){return Rt.apply(this,arguments)}function Rt(){return Rt=ct(function*(t,e,n){var r;try{r=yield fo(t,e,n)}catch(i){if(!po(i))throw i}return r}),Rt.apply(this,arguments)}const jy=Object.freeze(Object.defineProperty({__proto__:null,BROADCAST_CHANNEL_NAME:oo,BROADCAST_LOGIN_MESSAGE:fn,BROADCAST_LOGOUT_MESSAGE:so,BooleanColumnFormatter:Id,CharColumnFormatter:kd,DateTimeColumnFormatter:Vu,DateUtils:_d,DecimalColumnFormatter:Gu,DefaultColumnFormatter:Rd,FETCH_TIMEOUT:su,Formatter:tn,FormatterUtils:Et,ITEM_KEY_PREFIX:Dd,IntegerColumnFormatter:Yu,LOGIN_OPTIONS_REQUEST:io,NewTableColumnTypes:Ku,NoConsolesError:co,SESSION_DETAILS_REQUEST:ao,StringColumnFormatter:Ld,TableColumnFormatter:qu,TableUtils:Ad,createComboboxFilterArgs:Fd,createCoreClient:Sy,createFilterConditionFactory:nn,createFormatterFromSettings:Nd,createKeyedItemKey:qi,createNotNullOrEmptyFilterCondition:zi,createOnTableUpdatedHandler:Md,createSearchTextFilter:Xi,createSelectedValuesFilter:rn,createSessionWrapper:fo,createShowOnlyEmptyFilterCondition:Qi,createValueFilter:Ji,defaultRowDeserializer:$d,fetchVariableDefinition:lu,generateEmptyKeyedItems:Ud,getColumnFormats:Bd,getDateTimeFormatterOptions:Wd,getSessionDetails:Cy,getSize:Hd,getWindowParent:Gt,isBroadcastLoginMessage:lo,isBroadcastLogoutMessage:uo,isClosed:Vd,isCustomColumnFormatDefined:Gd,isMessage:Ze,isNoConsolesError:po,isResponse:Zl,isSortDirection:Yd,loadSessionWrapper:Ty,makeMessage:hi,makeResponse:eu,padFirstAndLastRow:Kd,requestParentResponse:zt},Symbol.toStringTag,{value:"Module"}));function Iy(t,e,n){return(e=ky(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function ky(t){var e=_y(t,"string");return typeof e=="symbol"?e:e+""}function _y(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}class Ry extends Error{constructor(){super(...arguments),Iy(this,"isColumnNameError",!0)}}function Dy(t,e,n){return(e=Ly(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Ly(t){var e=Ay(t,"string");return typeof e=="symbol"?e:e+""}function Ay(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}class Fy extends Error{constructor(){super(...arguments),Dy(this,"isTableDisconnectError",!0)}}var He=B.module("useTable"),ho=(t,e,n,r)=>{var i=ge(),[a,o]=c.useState(void 0),[l,s]=c.useState([]),[d,f]=c.useState(null),[p,h]=c.useState(null);c.useEffect(()=>{if(r===void 0){o(t==null?void 0:t.columns),f(null);return}try{o(t==null?void 0:t.findColumns(r)),f(null)}catch(v){He.error("Column not found",v,r),f(new Ry("Invalid columnNames argument"))}},[t,r]),c.useEffect(()=>{if(!a||!t){He.debug2("Table or column not initialized, skip viewport update.");return}He.debug2("Setting viewport",e,n),t.setViewport(e,n,a)},[a,t,e,n]);var m=c.useCallback(v=>{var{detail:g}=v;if(!a){He.error("Columns not initialized.");return}var x=a.map(S=>g.rows.map(E=>E.get(S)));s(x)},[a]),y=c.useCallback(()=>{h(new Fy("Table disconnected"))},[]),P=c.useCallback(()=>{h(null)},[]);return Ye(t,i.Table.EVENT_UPDATED,m),Ye(t,i.Table.EVENT_DISCONNECT,y),Ye(t,i.Table.EVENT_RECONNECT,P),{columns:a,data:l,error:p??d}},mo=(t,e,n,r)=>{var i=c.useMemo(()=>[r],[r]),{columns:a=[],data:o=[],error:l}=ho(t,e,n,i);return{column:a[0],data:o[0],error:l}};function br(t,e,n,r,i,a,o){try{var l=t[a](o),s=l.value}catch(d){return void n(d)}l.done?e(s):Promise.resolve(s).then(r,i)}function Ny(t){return function(){var e=this,n=arguments;return new Promise(function(r,i){var a=t.apply(e,n);function o(s){br(a,r,i,o,l,"next",s)}function l(s){br(a,r,i,o,l,"throw",s)}o(void 0)})}}var re=B.module("TableInput"),ft=250;function My(t){var e,n,{className:r=void 0,columnName:i,settings:a,defaultValue:o=[],isInvalid:l=!1,onChange:s=ne,onBlur:d=ne,table:f}=t,p=c.useRef(null),h=ge(),m=c.useMemo(()=>{var w=Et.getColumnFormats(a),T=Et.getDateTimeFormatterOptions(a),{defaultDecimalFormatOptions:C={},defaultIntegerFormatOptions:A={}}=a;return new tn(h,w,T,C,A)},[h,a]),[y,P]=c.useState(""),[v,g]=c.useState(new Set(o)),[x,S]=c.useState(),E=c.useRef(null),b=Math.min((e=x==null?void 0:x.size)!==null&&e!==void 0?e:0,ft),{column:O,data:_,error:I}=mo(x,0,ft-1,i),R=c.useCallback(w=>O?m.getFormattedString(w,O.type,O.name):"".concat(w),[O,m]),[F,W]=c.useMemo(()=>{var w=new Set(v),T=[];if(_==null)return[T,null];if(_.forEach(A=>{var K="".concat(A),Oe=v.has(K);Oe&&w.delete(K),T.push({value:K,displayValue:R(A),isSelected:Oe})}),w.size>0){re.debug2("Selection has items that are missing from the viewport");var C=new Set(v);return Array.from(w).forEach(A=>{C.delete(A)}),[T,C]}return[T,null]},[_,v,R]);c.useEffect(()=>{W!==null&&(g(W),s(Array.from(W)))},[s,W]);var j=c.useCallback(function(){var w=Ny(function*(T){try{var C=yield T;re.debug("Table resolved",C),S(C)}catch(A){if(he.isCanceled(A))return;re.error(A)}});return function(T){return w.apply(this,arguments)}}(),[]);c.useEffect(()=>{var w=he.makeCancelable(f);return j(w),()=>{re.debug2("Cancel table promise"),w.cancel()}},[f,j]);var L=c.useCallback(w=>{var{value:T}=w.target;P(T);var C=F.findIndex(K=>K.displayValue.includes(T));if(C>-1){var A;re.debug2("Found ".concat(T," at index ").concat(C)),(A=E.current)===null||A===void 0||A.scrollIntoView(C)}else re.debug2("".concat(T," not found"))},[F,E]),D=c.useCallback(w=>{if(re.debug("handleSelect",w),w>=F.length){re.error("Invalid index",w);return}var T=F[w].value,C=new Set(v);F[w].isSelected?C.delete(T):C.add(T),g(C),s(Array.from(C))},[s,F,v]),U=c.useCallback(()=>{var w=F.map(C=>C.value),T=new Set(w);g(T),s(w)},[F,s]),Q=c.useCallback(()=>{g(new Set),s([])},[s]),Z=c.useCallback(()=>{},[]),G=c.useCallback(w=>{var T,{relatedTarget:C}=w;re.debug("handleChildBlur",C,C instanceof HTMLElement,p.current,(T=p.current)===null||T===void 0?void 0:T.contains(C)),(!C||p.current&&C instanceof HTMLElement&&!p.current.contains(C))&&d()},[d]),k=F.length===0;return u.jsxs("div",{ref:p,className:N("table-input-container d-flex flex-column position-relative",r),children:[u.jsx(Qt,{disabled:!!I||k,value:y,placeholder:"Search",onChange:L,className:"mb-2 d-flex",onBlur:G}),u.jsx(fa,{className:"table-input-list",disabled:x===void 0||k,isInvalid:l,items:k?[{value:"Empty",isSelected:!1}]:F,itemCount:b,offset:0,onSelect:D,onViewportChange:Z,ref:E,onBlur:G}),x&&u.jsxs("div",{className:"meta-row",children:[u.jsx("div",{className:"d-flex align-items-center text-muted small",children:x!=null&&x.size>b&&u.jsxs(u.Fragment,{children:["Table is too large, showing the first ",ft," items."]})}),u.jsxs("div",{children:[u.jsx("button",{type:"button",className:"btn btn-link",onBlur:G,onClick:U,children:"Select All"}),u.jsx("button",{type:"button",className:"btn btn-link mr-a",onBlur:G,onClick:Q,children:"Clear"})]})]}),x==null||I&&u.jsx("div",{className:"h-100 w-100 position-absolute",children:u.jsx(me,{isLoaded:x!=null,isLoading:x==null&&I==null,errorMessage:(n=I==null?void 0:I.message)!==null&&n!==void 0?n:null,"data-testid":"table-input-loading"})})]})}var $y=["onInputChange","onSearchTextChange"];function Pr(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function xr(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Pr(Object(n),!0).forEach(function(r){Uy(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Pr(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function Uy(t,e,n){return(e=By(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function By(t){var e=Wy(t,"string");return typeof e=="symbol"?e:e+""}function Wy(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Hy(t,e){if(t==null)return{};var n,r,i=Vy(t,e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(r=0;r<a.length;r++)n=a[r],e.indexOf(n)===-1&&{}.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function Vy(t,e){if(t==null)return{};var n={};for(var r in t)if({}.hasOwnProperty.call(t,r)){if(e.indexOf(r)!==-1)continue;n[r]=t[r]}return n}function Gy(t){var e=Tf(t),{onInputChange:n,onSearchTextChange:r}=e,i=Hy(e,$y),a=c.useRef(!1),o=c.useRef(""),l=c.useCallback(d=>{n==null||n(d),a.current?r(d):(r(""),o.current=d)},[n,r]),s=c.useCallback((d,f)=>{var p;(p=i.onOpenChange)===null||p===void 0||p.call(i,d),d?f==="input"&&r(o.current):r(""),a.current=d},[r,i]);return u.jsx(Na,xr(xr({},i),{},{onInputChange:l,onOpenChange:s}))}var Yy=["table","keyColumn","labelColumn","iconColumn","settings"];function wr(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function Sr(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?wr(Object(n),!0).forEach(function(r){Ky(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):wr(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function Ky(t,e,n){return(e=qy(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function qy(t){var e=zy(t,"string");return typeof e=="symbol"?e:e+""}function zy(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Xy(t,e){if(t==null)return{};var n,r,i=Qy(t,e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(r=0;r<a.length;r++)n=a[r],e.indexOf(n)===-1&&{}.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function Qy(t,e){if(t==null)return{};var n={};for(var r in t)if({}.hasOwnProperty.call(t,r)){if(e.indexOf(r)!==-1)continue;n[r]=t[r]}return n}function Jy(t){var e,{table:n,keyColumn:r,labelColumn:i,iconColumn:a,settings:o}=t,l=Xy(t,Yy),{scale:s}=an(),d=da[(e=l.density)!==null&&e!==void 0?e:"regular"][s],{getFormattedString:f}=ma(o),p=jf({table:n,iconColumnName:a,keyColumnName:r,labelColumnName:i,formatValue:f}),{viewportData:h,onScroll:m}=cn({reuseItemsOnTableResize:!0,table:n,itemHeight:d,deserializeRow:p});return u.jsx(Ma,Sr(Sr({},l),{},{normalizedItems:h.items,showItemIcons:a!=null,onScroll:m}))}function Zy(t){return typeof t=="object"&&t!=null&&"equals"in t&&typeof t.equals=="function"}function ev(t){return"".concat(t)}function tv(t){var{column:e,table:n,filter:r=xi,onChange:i,selectedValue:a,disabled:o,className:l,formatValue:s=ev,maxSize:d=1e3}=t,f=ge(),[p,h]=c.useState([]);c.useEffect(()=>{if(n==null){h([]);return}var v=e??n.columns[0];n.applyFilter(r);var g=n.setViewport(0,d,[v]);return g.addEventListener(f.Table.EVENT_UPDATED,x=>{var{detail:S}=x,E=S.rows.map(b=>{var O;return(O=b.get(v))!==null&&O!==void 0?O:null});h(E)}),()=>{g.close()}},[e,f,r,d,n]);var m=c.useMemo(()=>a===void 0?[void 0,...p]:p,[a,p]),y=c.useMemo(()=>m.findIndex(v=>v===a||Zy(v)&&v.equals(a)),[a,m]),P=c.useCallback(v=>{var g=parseInt(v,10);i(m[g])},[i,m]);return u.jsx(Oi,{className:l,value:y,onChange:P,disabled:o,children:m.map((v,g)=>u.jsx(pa,{value:g,children:s(v)},"".concat(g)))})}var Or=B.module("useBroadcastChannel");function hn(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:ne,e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:oo,n=c.useMemo(()=>new BroadcastChannel(e),[e]);return c.useEffect(()=>()=>{n.close()},[n]),c.useEffect(()=>{function r(i){var{data:a}=i;if(!Ze(a)){Or.debug("Ignoring non-deephaven message",a);return}Or.debug("event received",a),t(i)}return n.addEventListener("message",r),()=>{n.removeEventListener("message",r)}},[n,t]),n}function mn(t,e){var n=c.useCallback(r=>{lo(r.data)?t==null||t(r.data):uo(r.data)&&(e==null||e(r.data))},[t,e]);hn(n)}function nv(t,e,n,r){var i=de(),[a,o]=c.useState(""),{value:l}=Ne(a,n),s=c.useCallback(h=>{o(h.trim())},[]),{data:d,isLoading:f}=Se(i.doesColumnValueExist,[t,e,l,r]),p=f||a!==l?null:d;return{valueTrimmed:a,valueTrimmedDebounced:l,valueExists:p,trimAndUpdateValue:s}}var Er=B.module("useDebouncedViewportSearch"),rv=200;function iv(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:rv,r=de(),{table:i,applyFiltersAndRefresh:a}=t,o=c.useMemo(()=>je(l=>{if(Er.debug("Applying debounced searchText '".concat(l,"'")),i!=null){var s=l.trim();if(s===""){a([]);return}var d=i.findColumn(e),f=r.makeFilterValue(d.type,s),p=[d.filter().contains(f)];a(p)}},n),[a,e,n,i,r]);return c.useEffect(()=>()=>{Er.debug("Cancelling debounced search function"),o.cancel()},[o]),o}var go=300;function av(t){var{viewportData:e,columnName:n,shouldSelectAllOnNoSelection:r,mapItemToValue:i}=t,a=de(),o=ja(e,i,qi),{value:l}=Ne(o,go),s=Ca(l,wa);return c.useMemo(()=>rn(a,n,s.selection,r,s.isInverted),[n,s,r,a])}function ov(t,e,n,r){var i=c.useRef("");return i.current=n,c.useMemo(()=>{var a=t.length>0&&t[0].item==null;return!a&&r!=null&&(i.current===""||r.toLowerCase().includes(i.current.toLowerCase()))?[{key:r,item:{[e]:r}},...t]:t},[r,e,t])}function Cr(t,e,n,r,i,a,o){try{var l=t[a](o),s=l.value}catch(d){return void n(d)}l.done?e(s):Promise.resolve(s).then(r,i)}function sv(t){return function(){var e=this,n=arguments;return new Promise(function(r,i){var a=t.apply(e,n);function o(s){Cr(a,r,i,o,l,"next",s)}function l(s){Cr(a,r,i,o,l,"throw",s)}o(void 0)})}}function lv(t){var{table:e,columnName:n,defaultValue:r,itemHeight:i,topOffset:a=0,value:o}=t;return c.useCallback(sv(function*(){if(e==null||o===""||o===r)return a;var l=e.findColumn(n),s=yield e.seekRow(0,l,"String",o),d=r==null?0:1;return(s+d)*i+a}),[n,r,i,e,a,o])}function uv(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"or",n=de(),r=c.useMemo(()=>zi(n),[n]);return c.useMemo(()=>nn(t,r,e),[t,e,r])}function cv(t){var{maybeTable:e,columnName:n,mapItemToValue:r,filterConditionFactories:i=[],trimSearchText:a=!1,timeZone:o}=t,{itemHeight:l}=ha(),s=de(),[d,f]=c.useState(""),[p,h]=c.useState(""),m=c.useCallback(w=>{h(a?w.trim():w)},[a]),y=c.useMemo(()=>a?d.trim():d,[d,a]),[P,v]=c.useState(null),[g,x]=c.useState(()=>new Map),{data:S,isLoading:E}=Se(s.doesColumnValueExist,[e,n,p,!1]),{isDebouncing:b}=Ne(p,Cn),O=b||E?null:S,_=c.useMemo(()=>Xi(s,n,p,o),[p,n,s,o]),I=c.useMemo(()=>rn(s,n,new Set(g.keys()),!1,!0),[n,g,s]),{data:R}=Se(s.createDistinctSortedColumnTable,[e,n,"asc",...i]);ga(R);var F=cn({table:R,itemHeight:l,viewportSize:If,viewportPadding:kf}),W=y.length>0&&F.size===0,j=g.has(y),L=Ie(m,Cn),D=c.useCallback(w=>{f(w),L(w)},[L]),U=Ie(v,0),Q=c.useCallback(w=>{if(f(""),m(""),v(w),U(null),w!=null){var T=F.viewportData.findItem(w);if(T!=null){var C=r(T);x(A=>{var K=new Map(A);return K.set(C,{value:C}),K})}}},[m,U,F.viewportData,r]),Z=c.useCallback(w=>{x(T=>{if(w.size===0)return T;var C=new Map(T);for(var A of w)C.set(A,{value:A});return C})},[]),G=c.useCallback(w=>{x(T=>{if(w==="all")return new Map;var C=new Map(T);for(var A of w)C.delete(A);return C})},[]),k=ya(F.table,_,I);return va(F,k),c.useMemo(()=>({list:F,hasSearchTextWithZeroResults:W,searchText:d,searchTextExists:O,searchTextIsInSelectedValues:j,selectedKey:P,selectedValueMap:g,onSearchTextChange:D,onSelectKey:Q,onAddValues:Z,onRemoveValues:G}),[W,F,Z,G,D,Q,d,O,j,P,g])}function Tr(t,e,n,r,i,a,o){try{var l=t[a](o),s=l.value}catch(d){return void n(d)}l.done?e(s):Promise.resolve(s).then(r,i)}function dv(t){return function(){var e=this,n=arguments;return new Promise(function(r,i){var a=t.apply(e,n);function o(s){Tr(a,r,i,o,l,"next",s)}function l(s){Tr(a,r,i,o,l,"throw",s)}o(void 0)})}}function pv(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];var i=c.useCallback(dv(function*(){var d;return(d=t==null?void 0:t.selectDistinct(t.findColumns(n)))!==null&&d!==void 0?d:null}),[t,...n]),{data:a,error:o,isError:l,isLoading:s}=Se(i,[]);return c.useEffect(()=>()=>{a==null||a.close()},[a]),{distinctTable:a,error:o,isError:l,isLoading:s}}function fv(t,e){var n=de(),r=c.useMemo(()=>Qi(n,t),[t,n]);return c.useMemo(()=>nn(e,r),[e,r])}function hv(t,e,n){var r=de();return c.useMemo(()=>Ji(r,t,e,n),[t,n,r,e])}const mv=Object.freeze(Object.defineProperty({__proto__:null,ComboBox:Gy,DEBOUNCE_MS:go,ListView:Jy,Picker:_f,TableDropdown:tv,TableInput:My,makeApiContextWrapper:by,useBroadcastChannel:hn,useBroadcastLoginListener:mn,useCheckIfExistsValue:nv,useDebouncedViewportSearch:iv,useDebouncedViewportSelectionFilter:av,useFilterConditionFactories:ya,useFilteredItemsWithDefaultValue:ov,useFormatter:ma,useGetItemIndexByValue:Rf,useGetItemPosition:lv,useInitializeViewportData:Df,useNotNullOrEmptyFilter:uv,usePickerWithSelectedValues:cv,useSearchableViewportData:Lf,useSelectDistinctTable:pv,useSetPaddedViewportCallback:Af,useShowOnlyEmptyFilter:fv,useTable:ho,useTableClose:Ff,useTableColumn:mo,useTableListener:Ye,useTableSize:Nf,useTableUtils:de,useValueFilter:hv,useViewportData:cn,useViewportFilter:va,useWidgetClose:ga},Symbol.toStringTag,{value:"Module"}));function yo(t){var{isEnabled:e,isPending:n,themeData:r}=La();return c.useMemo(()=>e?n?null:r?[r]:[]:t==null?null:ki(t),[e,n,r,t])}function gv(t){var{fetch:e,type:n}=t,r=Jt(),i=c.useMemo(()=>[...r.values()].filter(_i).find(o=>[o.supportedTypes].flat().includes(n)),[r,n]);if(i!=null){var a=i.component;return u.jsx(a,{fetch:e})}throw new Error("Unknown widget type '".concat(n,"'"))}function yv(t){var{dashboardProps:e,componentName:n,component:r,supportedTypes:i,hydrate:a,dehydrate:o}=t,{id:l,layout:s,registerComponent:d}=e,f=c.useCallback(p=>{var{dragEvent:h,panelId:m=Bt(),widget:y}=p,{name:P,type:v}=y,g=v!=null&&(Array.isArray(i)&&i.includes(v)||v===i);if(g){var x={localDashboardId:l,metadata:y};a!=null&&(x=a(x,l));var S={type:"react-component",component:n,props:x,title:P??void 0,id:m},{root:E}=s;Ri.openComponent({root:E,config:S,dragEvent:h})}},[n,a,l,s,i]);Zi(d,r,a,o),Di(s.eventHub,f)}function vv(t,e){var n=Gs(),r=Ys(a=>Li(a,t,e)),i=c.useCallback(a=>n(Ai(t,e,a)),[t,e,n]);return[r,i]}const bv=Object.freeze(Object.defineProperty({__proto__:null,BasePanel:Sn,CLOSE_DASHBOARD:zu,CREATE_DASHBOARD:Xu,DEFAULT_DASHBOARD_ID:Qu,DH_ID_PROP:Ju,Dashboard:xn,DashboardIdContext:Zu,DashboardLayout:ec,DashboardUtils:tc,GLPropTypes:nc,LayoutManagerContext:rc,LayoutUtils:Ri,LazyDashboard:uu,Panel:Sn,PanelErrorBoundary:ic,PanelEvent:ac,PanelIdContext:oc,PanelManager:sc,PersistentStateContext:lc,PersistentStateProvider:Fi,SET_DASHBOARD_DATA:uc,TabEvent:cc,assertIsDashboardPluginProps:qd,canHaveRef:Ci,default:xn,dehydrate:dc,emitCloseDashboard:pc,emitCreateDashboard:fc,emitCycleToNextStack:hc,emitCycleToNextTab:mc,emitCycleToPreviousStack:gc,emitCycleToPreviousTab:yc,emitPanelOpen:vc,getAllDashboardsData:bc,getClosedPanelsForDashboard:Pc,getDashboardData:xc,getOpenedPanelMapForDashboard:wc,getPluginDataForDashboard:Li,getPluginDataMapForDashboard:Sc,hydrate:Oc,isDashboardPluginProps:zd,isWrappedComponent:Ti,listenForCloseDashboard:Ec,listenForCreateDashboard:Cc,listenForCycleToNextStack:Tc,listenForCycleToNextTab:jc,listenForCycleToPreviousStack:Ic,listenForCycleToPreviousTab:kc,listenForPanelOpen:_c,reducers:Rc,setDashboardData:Dc,setDashboardPluginData:Ai,updateDashboardData:Lc,useAppDispatch:Ac,useAppSelector:Ni,useAppStore:Fc,useCloseDashboardListener:Nc,useCreateDashboardListener:Mc,useCycleToNextStackListener:$c,useCycleToNextTabListener:Uc,useCycleToPreviousStackListener:Bc,useCycleToPreviousTabListener:Wc,useDashboardId:Hc,useDashboardPanel:yv,useDashboardPluginData:vv,useDhId:Vc,useLayoutManager:Xd,useListener:Gc,usePanelId:Yc,usePanelOpenListener:Di,usePanelRegistration:Zi,usePersistentState:ea},Symbol.toStringTag,{value:"Module"}));function Pv(){var t=Jt(),e=c.useMemo(()=>Mi(t),[t]);return e}const xv=Object.freeze(Object.defineProperty({__proto__:null,PersistentStateProvider:Fi,PluginType:$i,PluginsContext:ot,WidgetView:gv,getDashboardPlugins:cu,getIconForPlugin:Kc,getPluginsElementMap:Mi,getThemeDataFromPlugins:ki,isAuthPlugin:Ui,isDashboardPlugin:qc,isElementPlugin:zc,isLegacyAuthPlugin:St,isLegacyDashboardPlugin:Xc,isLegacyPlugin:Bi,isLegacyTablePlugin:Qc,isPlugin:Ot,isTablePlugin:Jc,isThemePlugin:Zc,isWidgetPlugin:_i,pluginSupportsType:ed,useCustomThemes:yo,useDashboardPlugins:du,usePersistentState:ea,usePlugins:Jt,usePluginsElementMap:Pv},Symbol.toStringTag,{value:"Module"}));function wv(t){if(t==null)return!1;var e=t;return e.Component!==void 0&&typeof e.isAvailable=="function"}var vo="io.deephaven.auth.AnonymousAuthenticationHandler",Sv="io.deephaven.authentication.psk.PskAuthenticationHandler";function jr(t,e,n){return(e=Ov(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Ov(t){var e=Ev(t,"string");return typeof e=="symbol"?e:e+""}function Ev(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}class bo extends Error{constructor(){super(...arguments),jr(this,"name","AuthenticationError"),jr(this,"isAuthenticationError",!0)}}function Ir(t,e,n,r,i,a,o){try{var l=t[a](o),s=l.value}catch(d){return void n(d)}l.done?e(s):Promise.resolve(s).then(r,i)}function Cv(t){return function(){var e=this,n=arguments;return new Promise(function(r,i){var a=t.apply(e,n);function o(s){Ir(a,r,i,o,l,"next",s)}function l(s){Ir(a,r,i,o,l,"throw",s)}o(void 0)})}}var kr=B.module("AuthPluginBase");function gn(t){var{children:e,getLoginOptions:n}=t,r=Ae(),[i,a]=c.useState(),[o,l]=c.useState(!1);return c.useEffect(()=>{var s=!1;function d(){if(s)throw new Wi("Login canceled.")}function f(){return p.apply(this,arguments)}function p(){return p=Cv(function*(){try{var h=yield n();d(),kr.info("Logging in..."),yield r.login(h),d(),l(!0)}catch(P){if(!s){var m;kr.error("Unable to login:",P);var y=(m=ke(P))!==null&&m!==void 0?m:"Unable to login. Verify credentials.";a(new bo(y)),l(!1)}}}),p.apply(this,arguments)}return f(),()=>{s=!0}},[r,n]),o?u.jsx(u.Fragment,{children:e}):u.jsx(me,{"data-testid":"auth-base-loading",isLoading:i==null,isLoaded:!1,errorMessage:ke(i)})}var Tv={canLogout:!1};function jv(t){var{children:e}=t,n=ge(),r=c.useCallback(()=>({type:n.CoreClient.LOGIN_TYPE_ANONYMOUS}),[n]);return u.jsx(gn,{getLoginOptions:r,children:u.jsx(et.Provider,{value:Tv,children:e})})}var Po={Component:jv,isAvailable:t=>t.includes(vo)};function _r(t,e,n,r,i,a,o){try{var l=t[a](o),s=l.value}catch(d){return void n(d)}l.done?e(s):Promise.resolve(s).then(r,i)}function Iv(t){return function(){var e=this,n=arguments;return new Promise(function(r,i){var a=t.apply(e,n);function o(s){_r(a,r,i,o,l,"next",s)}function l(s){_r(a,r,i,o,l,"throw",s)}o(void 0)})}}var kv=B.module("AuthPluginParent"),_v={canLogout:!1};function Rv(t){return t!=null&&typeof t.type=="string"}function Dv(){return Dt.apply(this,arguments)}function Dt(){return Dt=Iv(function*(){kv.info("Logging in by delegating to parent window...");var t=yield zt(io);if(!Rv(t))throw new Error("Unexpected login options response: ".concat(t));return t}),Dt.apply(this,arguments)}function Lv(){var t;return(t=new URLSearchParams(window.location.search).get("authProvider"))!==null&&t!==void 0?t:""}function Av(t){var{children:e}=t;return u.jsx(gn,{getLoginOptions:Dv,children:u.jsx(et.Provider,{value:_v,children:e})})}var xo={Component:Av,isAvailable:()=>Gt()!=null&&Lv()==="parent"};function wo(t){var{children:e,errorMessage:n,isLoggingIn:r=!1,onSubmit:i}=t;return u.jsxs("form",{className:"login-form",onSubmit:a=>{a.preventDefault(),a.stopPropagation(),i==null||i(a)},children:[u.jsx("div",{className:"flex-spacer"}),u.jsxs("div",{className:"flex-wrapper",children:[u.jsx("fieldset",{disabled:r,className:"container-fluid",children:e}),u.jsx("div",{className:"form-group d-flex justify-content-end align-items-center mb-0",children:u.jsxs("button",{type:"submit",className:N("btn btn-primary",{"btn-spinner":r},{"btn-cancelable":r}),"data-testid":"btn-login",children:[r&&u.jsxs("span",{children:[u.jsx(Qe,{className:"mr-2 loading-spinner-vertical-align"}),u.jsx("span",{className:"btn-normal-content",children:"Logging in"}),u.jsx("span",{className:"btn-hover-content",children:"Cancel"})]}),!r&&"Login"]})})]}),u.jsx("div",{className:"flex-spacer",children:n!=null&&u.jsx("p",{className:"error-message mb-0",role:"alert",children:"".concat(n)})})]})}function So(t){var{children:e,logoPath:n="./logo.png"}=t;return u.jsxs("div",{className:"login-container",children:[u.jsx(Ja,{}),u.jsxs("div",{className:"login-box",children:[u.jsx("div",{className:"logo",children:u.jsx("img",{src:n,alt:"Deephaven Data Labs"})}),e,u.jsxs("p",{className:"footer",children:["© 2016-",new Date().getFullYear()," Deephaven Data Labs LLC. Patent Pending."]})]})]})}function Rr(t,e,n,r,i,a,o){try{var l=t[a](o),s=l.value}catch(d){return void n(d)}l.done?e(s):Promise.resolve(s).then(r,i)}function ht(t){return function(){var e=this,n=arguments;return new Promise(function(r,i){var a=t.apply(e,n);function o(s){Rr(a,r,i,o,l,"next",s)}function l(s){Rr(a,r,i,o,l,"throw",s)}o(void 0)})}}var Lt="io.deephaven.authentication.psk.PskAuthenticationHandler",Oo="psk",At="io.deephaven.web.client.auth.psk.token",be=B.module("AuthPluginPsk");function Fv(){return new URLSearchParams(window.location.search).get(Oo)}function Nv(){be.debug2("clearWindowToken");var t=new URL(window.location.href);t.searchParams.delete(Oo),window.history.replaceState(null,"",t.href)}function Dr(){var t;return(t=bt.get(At))!==null&&t!==void 0?t:null}function mt(t){be.debug2("Storing token in cookie",t),t!=null?bt.set(At,t,{secure:!0,sameSite:"strict"}):bt.remove(At)}function Mv(t){var{children:e,logoPath:n}=t,r=Ae(),i=c.useRef(null),a=c.useRef(null),[o,l]=c.useState(),[s,d]=c.useState(!1),[f,p]=c.useState(!1),[h,m]=c.useState(!1),[y,P]=c.useState(""),v=c.useCallback(function(){var b=ht(function*(O){var _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;be.info("Logging in..."),m(!0);var I=null;try{if(I=r.login({type:Lt,token:O}),a.current=I,yield I,be.info("Logged in successfully"),a.current!==I)return;mt(O),p(!0)}catch(W){if(a.current!==I)return;if(d(!0),_){var R;be.error("Unable to login",W);var F=(R=ke(W))!==null&&R!==void 0?R:"Unable to login: Verify credentials.";l(new bo(F))}}m(!1)});return function(O){return b.apply(this,arguments)}}(),[r]),g=c.useCallback(()=>{a.current=null,m(!1)},[]),x=c.useCallback(ht(function*(){be.debug("onLogin");var b=Dr();f||h||b==null||v(b,!1)}),[f,h,v]),S=c.useCallback(()=>{mt(null)},[]);mn(x,S),c.useEffect(()=>{var b=!1;function O(){return _.apply(this,arguments)}function _(){return _=ht(function*(){var I,R=(I=Fv())!==null&&I!==void 0?I:Dr();if(Nv(),R==null){d(!0);return}m(!0);try{yield r.login({type:Lt,token:R}),b||(mt(R),p(!0),m(!1))}catch{b||(d(!0),m(!1))}}),_.apply(this,arguments)}return O(),()=>{b=!0}},[r]);var E=c.useCallback(()=>{h?g():v(y)},[g,h,v,y]);return c.useEffect(function(){var O;(O=i.current)===null||O===void 0||O.focus()},[i,s]),u.jsxs(u.Fragment,{children:[f&&e,s&&u.jsx(Zt,{in:!f,mountOnEnter:!0,unmountOnExit:!0,children:u.jsx(So,{logoPath:n,children:u.jsx(wo,{errorMessage:ke(o),isLoggingIn:h,onSubmit:E,children:u.jsxs("div",{className:"form-group",children:[u.jsx("label",{htmlFor:"auth-psk-token-input",children:"Token"}),u.jsx("input",{id:"auth-psk-token-input",name:"token",className:"input-token form-control",type:"text",autoComplete:"username",autoCapitalize:"none",autoCorrect:"off",spellCheck:"false",ref:i,value:y,onChange:b=>{l(void 0),P(b.target.value)}})]})})})}),u.jsx(me,{"data-testid":"auth-psk-loading",isLoaded:f||s,isLoading:!f&&!s})]})}var Eo={Component:Mv,isAvailable:t=>t.includes(Lt)};function Lr(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function gt(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Lr(Object(n),!0).forEach(function(r){$v(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Lr(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function $v(t,e,n){return(e=Uv(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Uv(t){var e=Bv(t,"string");return typeof e=="symbol"?e:e+""}function Bv(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var Wv=B.module("UserUtils");function Co(t,e){return t.get("internal.webClient.appInit.".concat(e))}function To(t){var e,n,r,i,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};function l(v){return Co(t,v)}function s(v,g){var x=l(v);return x==="true"?!0:x==="false"?!1:(x!==void 0&&Wv.warn("Unexpected value for ".concat(v,": ").concat(x)),g)}var d=(e=l("name"))!==null&&e!==void 0?e:"",f=(n=l("operateAs"))!==null&&n!==void 0?n:d,p=(r=(i=l("groups"))===null||i===void 0?void 0:i.split(","))!==null&&r!==void 0?r:[],h=s("canCopy",!0),m=s("canDownloadCsv",!0),y=s("canUsePanels",!0),P=s("canLogout",!0);return gt(gt({name:d,operateAs:f,groups:p},a),{},{permissions:gt({canUsePanels:y,canCopy:h,canDownloadCsv:m,canLogout:P},o)})}const Hv=Object.freeze(Object.defineProperty({__proto__:null,AUTH_HANDLER_TYPE_ANONYMOUS:vo,AUTH_HANDLER_TYPE_PSK:Sv,AuthPluginAnonymous:Po,AuthPluginBase:gn,AuthPluginParent:xo,AuthPluginPsk:Eo,Login:So,LoginForm:wo,UserContext:gi,UserOverrideContext:yi,UserPermissionsOverrideContext:et,getAppInitValue:Co,getUserFromConfig:To,isAuthPlugin:wv},Symbol.toStringTag,{value:"Module"}));function xe(t,e,n){return(e=Vv(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Vv(t){var e=Gv(t,"string");return typeof e=="symbol"?e:e+""}function Gv(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}class M extends ta{static get theme(){return M._theme==null&&(M._theme=Hi()),M._theme}static makeRandomSeries(e){for(var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:100,i=[],a=[],o=[],l=[],s=new Date("2018-06-01"),d=0;d<r;d+=1){var f=new Date(s.getFullYear(),s.getMonth(),s.getDate()+d-r);i.push("".concat(f.getFullYear(),"-").concat(f.getMonth()+1,"-").concat(f.getDate()));var p=(Math.sin(d/r*e)*r/3+Math.cos(d*.2)*r/6+Math.sin(d*.5)*r/10+M.random()*r/5+d*M.smoothing)*n;p=Math.round(p*100)/100,a.push(p),l.push(40+d*M.smoothing),o.push(Math.sin(d/r*e)*r/3+M.random()*r/10+d*M.smoothing)}return{x:i,y:a,s:o,l}}static makeScatter(e){return{name:"SCTR",x:e.x,y:e.y,type:"scatter",mode:"markers",hoverinfo:"skip",marker:{size:5}}}static makeArea(e){return{name:"AREA",x:e.x,y:e.s,type:"scatter",mode:"line",fill:"tozeroy",hoverinfo:"all",line:{width:3}}}static makeTrendline(e){return{name:"Trendline <br>R<sup>2</sup> = 0.91",x:e.x,y:e.l,type:"scatter",mode:"line",hoverinfo:"skip",line:{width:3,dash:"dot"}}}static makeErrorBand(e){for(var n=[],r=[],i=0;i<e.y.length;i+=1){var a=e.y[i];n[i]=Math.round((a+18)*100)/100,r[i]=Math.round((a-18)*100)/100}var o=n.concat(r.reverse());return{name:"error",x:e.x.concat(e.x.slice().reverse()),y:o,type:"scatter",mode:"line",hoverinfo:"skip",fill:"toself",line:{width:0,color:M.theme.error_band_line_color,shape:"spline"}}}static makeLine(e){return{name:"LINE",x:e.x,y:e.y,type:"scatter",mode:"line",hoverinfo:"x+y+text+name",line:{width:3}}}static makeRandomData(){var e=M.makeRandomSeries(6),n=M.makeArea(e),r=M.makeTrendline(e),i=M.makeRandomSeries(2),a=M.makeLine(i),o=M.makeErrorBand(i);return[n,r,a,o]}static makeDefaultLayout(e){var n={template:new na(e).makeDefaultTemplate(M.theme)};return n.title={text:"Chart"},n.xaxis={title:{text:"Datestamp"}},n.yaxis={title:{text:"Price"}},n}constructor(e){var{data:n=M.makeRandomData(),layout:r=M.makeDefaultLayout(e),filterFields:i=[]}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(e),xe(this,"data",void 0),xe(this,"filterFields",void 0),xe(this,"layout",void 0),this.data=n,this.layout=r,this.filterFields=i}getData(){return this.data}getLayout(){return this.layout}getFilterColumnMap(){for(var e=new Map,n=0;n<this.filterFields.length;n+=1){var r=this.filterFields[n],i="java.lang.String";e.set(r,{name:r,type:i})}return e}isFilterRequired(){return this.filterFields.length>0}setFilter(){this.fireUpdate(this.data)}}xe(M,"random",Math.random.bind(Math));xe(M,"smoothing",1.5);xe(M,"_theme",void 0);const Yv=Object.freeze(Object.defineProperty({__proto__:null,Chart:Qd,ChartModel:ta,ChartModelFactory:Jd,ChartThemeContext:td,ChartThemeProvider:Vi,ChartUtils:na,DownsamplingError:Cp,FigureChartModel:Zd,MockChartModel:M,Plot:nd,defaultChartTheme:Hi,isFigureChartModel:ep,isWebGLSupported:tp,useChartTheme:rd},Symbol.toStringTag,{value:"Module"}));function jo(t){var{children:e}=t,{activeThemes:n}=tt();return c.useEffect(function(){n!=null&&Gi.initTheme()},[n]),u.jsx(u.Fragment,{children:e})}var Kv={$schema:"http://json-schema.org/draft-07/schema#",title:"Options",type:"object",properties:{"allowed-confusables":{description:'A list of allowed "confusable" Unicode characters to ignore when enforcing `RUF001`, `RUF002`, and `RUF003`.',deprecated:!0,type:["array","null"],items:{type:"string",maxLength:1,minLength:1}},builtins:{description:"A list of builtins to treat as defined references, in addition to the system builtins.",type:["array","null"],items:{type:"string"}},"cache-dir":{description:"A path to the cache directory.\n\nBy default, Ruff stores cache results in a `.ruff_cache` directory in the current project root.\n\nHowever, Ruff will also respect the `RUFF_CACHE_DIR` environment variable, which takes precedence over that default.\n\nThis setting will override even the `RUFF_CACHE_DIR` environment variable, if set.",type:["string","null"]},"dummy-variable-rgx":{description:'A regular expression used to identify "dummy" variables, or those which should be ignored when enforcing (e.g.) unused-variable rules. The default expression matches `_`, `__`, and `_var`, but not `_var_`.',deprecated:!0,type:["string","null"]},exclude:{description:"A list of file patterns to exclude from formatting and linting.\n\nExclusions are based on globs, and can be either:\n\n- Single-path patterns, like `.mypy_cache` (to exclude any directory named `.mypy_cache` in the tree), `foo.py` (to exclude any file named `foo.py`), or `foo_*.py` (to exclude any file matching `foo_*.py` ). - Relative patterns, like `directory/foo.py` (to exclude that specific file) or `directory/*.py` (to exclude any Python files in `directory`). Note that these paths are relative to the project root (e.g., the directory containing your `pyproject.toml`).\n\nFor more information on the glob syntax, refer to the [`globset` documentation](https://docs.rs/globset/latest/globset/#syntax).\n\nNote that you'll typically want to use [`extend-exclude`](#extend-exclude) to modify the excluded paths.",type:["array","null"],items:{type:"string"}},"explicit-preview-rules":{description:"Whether to require exact codes to select preview rules. When enabled, preview rules will not be selected by prefixes — the full code of each preview rule will be required to enable the rule.",deprecated:!0,type:["boolean","null"]},extend:{description:"A path to a local `pyproject.toml` file to merge into this configuration. User home directory and environment variables will be expanded.\n\nTo resolve the current `pyproject.toml` file, Ruff will first resolve this base configuration file, then merge in any properties defined in the current configuration file.",type:["string","null"]},"extend-exclude":{description:"A list of file patterns to omit from formatting and linting, in addition to those specified by [`exclude`](#exclude).\n\nExclusions are based on globs, and can be either:\n\n- Single-path patterns, like `.mypy_cache` (to exclude any directory named `.mypy_cache` in the tree), `foo.py` (to exclude any file named `foo.py`), or `foo_*.py` (to exclude any file matching `foo_*.py` ). - Relative patterns, like `directory/foo.py` (to exclude that specific file) or `directory/*.py` (to exclude any Python files in `directory`). Note that these paths are relative to the project root (e.g., the directory containing your `pyproject.toml`).\n\nFor more information on the glob syntax, refer to the [`globset` documentation](https://docs.rs/globset/latest/globset/#syntax).",type:["array","null"],items:{type:"string"}},"extend-fixable":{description:"A list of rule codes or prefixes to consider fixable, in addition to those specified by [`fixable`](#lint_fixable).",deprecated:!0,type:["array","null"],items:{$ref:"#/definitions/RuleSelector"}},"extend-ignore":{description:"A list of rule codes or prefixes to ignore, in addition to those specified by `ignore`.",deprecated:!0,type:["array","null"],items:{$ref:"#/definitions/RuleSelector"}},"extend-include":{description:"A list of file patterns to include when linting, in addition to those specified by [`include`](#include).\n\nInclusion are based on globs, and should be single-path patterns, like `*.pyw`, to include any file with the `.pyw` extension.\n\nFor more information on the glob syntax, refer to the [`globset` documentation](https://docs.rs/globset/latest/globset/#syntax).",type:["array","null"],items:{type:"string"}},"extend-per-file-ignores":{description:"A list of mappings from file pattern to rule codes or prefixes to exclude, in addition to any rules excluded by [`per-file-ignores`](#lint_per-file-ignores).",deprecated:!0,type:["object","null"],additionalProperties:{type:"array",items:{$ref:"#/definitions/RuleSelector"}}},"extend-safe-fixes":{description:"A list of rule codes or prefixes for which unsafe fixes should be considered safe.",deprecated:!0,type:["array","null"],items:{$ref:"#/definitions/RuleSelector"}},"extend-select":{description:"A list of rule codes or prefixes to enable, in addition to those specified by [`select`](#lint_select).",deprecated:!0,type:["array","null"],items:{$ref:"#/definitions/RuleSelector"}},"extend-unfixable":{description:"A list of rule codes or prefixes to consider non-auto-fixable, in addition to those specified by [`unfixable`](#lint_unfixable).",deprecated:!0,type:["array","null"],items:{$ref:"#/definitions/RuleSelector"}},"extend-unsafe-fixes":{description:"A list of rule codes or prefixes for which safe fixes should be considered unsafe.",deprecated:!0,type:["array","null"],items:{$ref:"#/definitions/RuleSelector"}},external:{description:"A list of rule codes or prefixes that are unsupported by Ruff, but should be preserved when (e.g.) validating `# noqa` directives. Useful for retaining `# noqa` directives that cover plugins not yet implemented by Ruff.",deprecated:!0,type:["array","null"],items:{type:"string"}},fix:{description:"Enable fix behavior by-default when running `ruff` (overridden by the `--fix` and `--no-fix` command-line flags). Only includes automatic fixes unless `--unsafe-fixes` is provided.",type:["boolean","null"]},"fix-only":{description:"Like [`fix`](#fix), but disables reporting on leftover violation. Implies [`fix`](#fix).",type:["boolean","null"]},fixable:{description:"A list of rule codes or prefixes to consider fixable. By default, all rules are considered fixable.",deprecated:!0,type:["array","null"],items:{$ref:"#/definitions/RuleSelector"}},"flake8-annotations":{description:"Options for the `flake8-annotations` plugin.",deprecated:!0,anyOf:[{$ref:"#/definitions/Flake8AnnotationsOptions"},{type:"null"}]},"flake8-bandit":{description:"Options for the `flake8-bandit` plugin.",deprecated:!0,anyOf:[{$ref:"#/definitions/Flake8BanditOptions"},{type:"null"}]},"flake8-boolean-trap":{description:"Options for the `flake8-boolean-trap` plugin.",deprecated:!0,anyOf:[{$ref:"#/definitions/Flake8BooleanTrapOptions"},{type:"null"}]},"flake8-bugbear":{description:"Options for the `flake8-bugbear` plugin.",deprecated:!0,anyOf:[{$ref:"#/definitions/Flake8BugbearOptions"},{type:"null"}]},"flake8-builtins":{description:"Options for the `flake8-builtins` plugin.",deprecated:!0,anyOf:[{$ref:"#/definitions/Flake8BuiltinsOptions"},{type:"null"}]},"flake8-comprehensions":{description:"Options for the `flake8-comprehensions` plugin.",deprecated:!0,anyOf:[{$ref:"#/definitions/Flake8ComprehensionsOptions"},{type:"null"}]},"flake8-copyright":{description:"Options for the `flake8-copyright` plugin.",deprecated:!0,anyOf:[{$ref:"#/definitions/Flake8CopyrightOptions"},{type:"null"}]},"flake8-errmsg":{description:"Options for the `flake8-errmsg` plugin.",deprecated:!0,anyOf:[{$ref:"#/definitions/Flake8ErrMsgOptions"},{type:"null"}]},"flake8-gettext":{description:"Options for the `flake8-gettext` plugin.",deprecated:!0,anyOf:[{$ref:"#/definitions/Flake8GetTextOptions"},{type:"null"}]},"flake8-implicit-str-concat":{description:"Options for the `flake8-implicit-str-concat` plugin.",deprecated:!0,anyOf:[{$ref:"#/definitions/Flake8ImplicitStrConcatOptions"},{type:"null"}]},"flake8-import-conventions":{description:"Options for the `flake8-import-conventions` plugin.",deprecated:!0,anyOf:[{$ref:"#/definitions/Flake8ImportConventionsOptions"},{type:"null"}]},"flake8-pytest-style":{description:"Options for the `flake8-pytest-style` plugin.",deprecated:!0,anyOf:[{$ref:"#/definitions/Flake8PytestStyleOptions"},{type:"null"}]},"flake8-quotes":{description:"Options for the `flake8-quotes` plugin.",deprecated:!0,anyOf:[{$ref:"#/definitions/Flake8QuotesOptions"},{type:"null"}]},"flake8-self":{description:"Options for the `flake8_self` plugin.",deprecated:!0,anyOf:[{$ref:"#/definitions/Flake8SelfOptions"},{type:"null"}]},"flake8-tidy-imports":{description:"Options for the `flake8-tidy-imports` plugin.",deprecated:!0,anyOf:[{$ref:"#/definitions/Flake8TidyImportsOptions"},{type:"null"}]},"flake8-type-checking":{description:"Options for the `flake8-type-checking` plugin.",deprecated:!0,anyOf:[{$ref:"#/definitions/Flake8TypeCheckingOptions"},{type:"null"}]},"flake8-unused-arguments":{description:"Options for the `flake8-unused-arguments` plugin.",deprecated:!0,anyOf:[{$ref:"#/definitions/Flake8UnusedArgumentsOptions"},{type:"null"}]},"force-exclude":{description:"Whether to enforce [`exclude`](#exclude) and [`extend-exclude`](#extend-exclude) patterns, even for paths that are passed to Ruff explicitly. Typically, Ruff will lint any paths passed in directly, even if they would typically be excluded. Setting `force-exclude = true` will cause Ruff to respect these exclusions unequivocally.\n\nThis is useful for [`pre-commit`](https://pre-commit.com/), which explicitly passes all changed files to the [`ruff-pre-commit`](https://github.com/astral-sh/ruff-pre-commit) plugin, regardless of whether they're marked as excluded by Ruff's own settings.",type:["boolean","null"]},format:{description:"Options to configure code formatting.",anyOf:[{$ref:"#/definitions/FormatOptions"},{type:"null"}]},ignore:{description:"A list of rule codes or prefixes to ignore. Prefixes can specify exact rules (like `F841`), entire categories (like `F`), or anything in between.\n\nWhen breaking ties between enabled and disabled rules (via `select` and `ignore`, respectively), more specific prefixes override less specific prefixes.",deprecated:!0,type:["array","null"],items:{$ref:"#/definitions/RuleSelector"}},"ignore-init-module-imports":{description:"Avoid automatically removing unused imports in `__init__.py` files. Such imports will still be flagged, but with a dedicated message suggesting that the import is either added to the module's `__all__` symbol, or re-exported with a redundant alias (e.g., `import os as os`).\n\nThis option is enabled by default, but you can opt-in to removal of imports via an unsafe fix.",deprecated:!0,type:["boolean","null"]},include:{description:"A list of file patterns to include when linting.\n\nInclusion are based on globs, and should be single-path patterns, like `*.pyw`, to include any file with the `.pyw` extension. `pyproject.toml` is included here not for configuration but because we lint whether e.g. the `[project]` matches the schema.\n\nNotebook files (`.ipynb` extension) are included by default on Ruff 0.6.0+.\n\nFor more information on the glob syntax, refer to the [`globset` documentation](https://docs.rs/globset/latest/globset/#syntax).",type:["array","null"],items:{type:"string"}},"indent-width":{description:`The number of spaces per indentation level (tab).
4
4
 
5
5
  Used by the formatter and when enforcing long-line violations (like \`E501\`) to determine the visual width of a tab.
6
6
 
@@ -80,5 +80,5 @@ foo, bar, quux = this_is_a_long_line(lion, hippo, lemur, bear) ''' pass \`\`\`
80
80
 
81
81
  ( foo, bar, quux, ) = this_is_a_long_line( lion, hippo, lemur, bear, ) """ pass \`\`\``,anyOf:[{$ref:"#/definitions/DocstringCodeLineWidth"},{type:"null"}]},exclude:{description:"A list of file patterns to exclude from formatting in addition to the files excluded globally (see [`exclude`](#exclude), and [`extend-exclude`](#extend-exclude)).\n\nExclusions are based on globs, and can be either:\n\n- Single-path patterns, like `.mypy_cache` (to exclude any directory named `.mypy_cache` in the tree), `foo.py` (to exclude any file named `foo.py`), or `foo_*.py` (to exclude any file matching `foo_*.py` ). - Relative patterns, like `directory/foo.py` (to exclude that specific file) or `directory/*.py` (to exclude any Python files in `directory`). Note that these paths are relative to the project root (e.g., the directory containing your `pyproject.toml`).\n\nFor more information on the glob syntax, refer to the [`globset` documentation](https://docs.rs/globset/latest/globset/#syntax).",type:["array","null"],items:{type:"string"}},"indent-style":{description:'Whether to use spaces or tabs for indentation.\n\n`indent-style = "space"` (default):\n\n```python def f(): print("Hello") # Spaces indent the `print` statement. ```\n\n`indent-style = "tab"`:\n\n```python def f(): print("Hello") # A tab `\\t` indents the `print` statement. ```\n\nPEP 8 recommends using spaces for [indentation](https://peps.python.org/pep-0008/#indentation). We care about accessibility; if you do not need tabs for accessibility, we do not recommend you use them.\n\nSee [`indent-width`](#indent-width) to configure the number of spaces per indentation and the tab width.',anyOf:[{$ref:"#/definitions/IndentStyle"},{type:"null"}]},"line-ending":{description:"The character Ruff uses at the end of a line.\n\n* `auto`: The newline style is detected automatically on a file per file basis. Files with mixed line endings will be converted to the first detected line ending. Defaults to `\\n` for files that contain no line endings. * `lf`: Line endings will be converted to `\\n`. The default line ending on Unix. * `cr-lf`: Line endings will be converted to `\\r\\n`. The default line ending on Windows. * `native`: Line endings will be converted to `\\n` on Unix and `\\r\\n` on Windows.",anyOf:[{$ref:"#/definitions/LineEnding"},{type:"null"}]},preview:{description:"Whether to enable the unstable preview style formatting.",type:["boolean","null"]},"quote-style":{description:'Configures the preferred quote character for strings. The recommended options are\n\n* `double` (default): Use double quotes `"` * `single`: Use single quotes `\'`\n\nIn compliance with [PEP 8](https://peps.python.org/pep-0008/) and [PEP 257](https://peps.python.org/pep-0257/), Ruff prefers double quotes for triple quoted strings and docstrings even when using `quote-style = "single"`.\n\nRuff deviates from using the configured quotes if doing so prevents the need for escaping quote characters inside the string:\n\n```python a = "a string without any quotes" b = "It\'s monday morning" ```\n\nRuff will change the quotes of the string assigned to `a` to single quotes when using `quote-style = "single"`. However, Ruff uses double quotes for the string assigned to `b` because using single quotes would require escaping the `\'`, which leads to the less readable code: `\'It\\\'s monday morning\'`.\n\nIn addition, Ruff supports the quote style `preserve` for projects that already use a mixture of single and double quotes and can\'t migrate to the `double` or `single` style. The quote style `preserve` leaves the quotes of all strings unchanged.',anyOf:[{$ref:"#/definitions/QuoteStyle"},{type:"null"}]},"skip-magic-trailing-comma":{description:"Ruff uses existing trailing commas as an indication that short lines should be left separate. If this option is set to `true`, the magic trailing comma is ignored.\n\nFor example, Ruff leaves the arguments separate even though collapsing the arguments to a single line doesn't exceed the line length if `skip-magic-trailing-comma = false`:\n\n```python # The arguments remain on separate lines because of the trailing comma after `b` def test( a, b, ): pass ```\n\nSetting `skip-magic-trailing-comma = true` changes the formatting to:\n\n```python # The arguments remain on separate lines because of the trailing comma after `b` def test(a, b): pass ```",type:["boolean","null"]}},additionalProperties:!1},ImportSection:{anyOf:[{$ref:"#/definitions/ImportType"},{type:"string"}]},ImportType:{type:"string",enum:["future","standard-library","third-party","first-party","local-folder"]},IndentStyle:{oneOf:[{description:"Use tabs to indent code.",type:"string",enum:["tab"]},{description:"Use [`IndentWidth`] spaces to indent code.",type:"string",enum:["space"]}]},IndentWidth:{description:"The size of a tab.",type:"integer",format:"uint8",minimum:1},IsortOptions:{type:"object",properties:{"case-sensitive":{description:"Sort imports taking into account case sensitivity.",type:["boolean","null"]},classes:{description:"An override list of tokens to always recognize as a Class for [`order-by-type`](#lint_isort_order-by-type) regardless of casing.",type:["array","null"],items:{type:"string"}},"combine-as-imports":{description:"Combines as imports on the same line. See isort's [`combine-as-imports`](https://pycqa.github.io/isort/docs/configuration/options.html#combine-as-imports) option.",type:["boolean","null"]},constants:{description:"An override list of tokens to always recognize as a CONSTANT for [`order-by-type`](#lint_isort_order-by-type) regardless of casing.",type:["array","null"],items:{type:"string"}},"default-section":{description:"Define a default section for any imports that don't fit into the specified [`section-order`](#lint_isort_section-order).",anyOf:[{$ref:"#/definitions/ImportSection"},{type:"null"}]},"detect-same-package":{description:"Whether to automatically mark imports from within the same package as first-party. For example, when `detect-same-package = true`, then when analyzing files within the `foo` package, any imports from within the `foo` package will be considered first-party.\n\nThis heuristic is often unnecessary when `src` is configured to detect all first-party sources; however, if `src` is _not_ configured, this heuristic can be useful to detect first-party imports from _within_ (but not _across_) first-party packages.",type:["boolean","null"]},"extra-standard-library":{description:"A list of modules to consider standard-library, in addition to those known to Ruff in advance.\n\nSupports glob patterns. For more information on the glob syntax, refer to the [`globset` documentation](https://docs.rs/globset/latest/globset/#syntax).",type:["array","null"],items:{type:"string"}},"force-single-line":{description:"Forces all from imports to appear on their own line.",type:["boolean","null"]},"force-sort-within-sections":{description:"Don't sort straight-style imports (like `import sys`) before from-style imports (like `from itertools import groupby`). Instead, sort the imports by module, independent of import style.",type:["boolean","null"]},"force-to-top":{description:"Force specific imports to the top of their appropriate section.",type:["array","null"],items:{type:"string"}},"force-wrap-aliases":{description:"Force `import from` statements with multiple members and at least one alias (e.g., `import A as B`) to wrap such that every line contains exactly one member. For example, this formatting would be retained, rather than condensing to a single line:\n\n```python from .utils import ( test_directory as test_directory, test_id as test_id ) ```\n\nNote that this setting is only effective when combined with `combine-as-imports = true`. When [`combine-as-imports`](#lint_isort_combine-as-imports) isn't enabled, every aliased `import from` will be given its own line, in which case, wrapping is not necessary.\n\nWhen using the formatter, ensure that [`format.skip-magic-trailing-comma`](#format_skip-magic-trailing-comma) is set to `false` (default) when enabling `force-wrap-aliases` to avoid that the formatter collapses members if they all fit on a single line.",type:["boolean","null"]},"forced-separate":{description:"A list of modules to separate into auxiliary block(s) of imports, in the order specified.",type:["array","null"],items:{type:"string"}},"from-first":{description:"Whether to place `import from` imports before straight imports when sorting.\n\nFor example, by default, imports will be sorted such that straight imports appear before `import from` imports, as in: ```python import os import sys from typing import List ```\n\nSetting `from-first = true` will instead sort such that `import from` imports appear before straight imports, as in: ```python from typing import List import os import sys ```",type:["boolean","null"]},"known-first-party":{description:"A list of modules to consider first-party, regardless of whether they can be identified as such via introspection of the local filesystem.\n\nSupports glob patterns. For more information on the glob syntax, refer to the [`globset` documentation](https://docs.rs/globset/latest/globset/#syntax).",type:["array","null"],items:{type:"string"}},"known-local-folder":{description:"A list of modules to consider being a local folder. Generally, this is reserved for relative imports (`from . import module`).\n\nSupports glob patterns. For more information on the glob syntax, refer to the [`globset` documentation](https://docs.rs/globset/latest/globset/#syntax).",type:["array","null"],items:{type:"string"}},"known-third-party":{description:"A list of modules to consider third-party, regardless of whether they can be identified as such via introspection of the local filesystem.\n\nSupports glob patterns. For more information on the glob syntax, refer to the [`globset` documentation](https://docs.rs/globset/latest/globset/#syntax).",type:["array","null"],items:{type:"string"}},"length-sort":{description:"Sort imports by their string length, such that shorter imports appear before longer imports. For example, by default, imports will be sorted alphabetically, as in: ```python import collections import os ```\n\nSetting `length-sort = true` will instead sort such that shorter imports appear before longer imports, as in: ```python import os import collections ```",type:["boolean","null"]},"length-sort-straight":{description:"Sort straight imports by their string length. Similar to [`length-sort`](#lint_isort_length-sort), but applies only to straight imports and doesn't affect `from` imports.",type:["boolean","null"]},"lines-after-imports":{description:"The number of blank lines to place after imports. Use `-1` for automatic determination.\n\nRuff uses at most one blank line after imports in typing stub files (files with `.pyi` extension) in accordance to the typing style recommendations ([source](https://typing.readthedocs.io/en/latest/source/stubs.html#blank-lines)).\n\nWhen using the formatter, only the values `-1`, `1`, and `2` are compatible because it enforces at least one empty and at most two empty lines after imports.",type:["integer","null"],format:"int"},"lines-between-types":{description:'The number of lines to place between "direct" and `import from` imports.\n\nWhen using the formatter, only the values `0` and `1` are compatible because it preserves up to one empty line after imports in nested blocks.',type:["integer","null"],format:"uint",minimum:0},"no-lines-before":{description:"A list of sections that should _not_ be delineated from the previous section via empty lines.",type:["array","null"],items:{$ref:"#/definitions/ImportSection"}},"no-sections":{description:"Put all imports into the same section bucket.\n\nFor example, rather than separating standard library and third-party imports, as in: ```python import os import sys\n\nimport numpy import pandas ```\n\nSetting `no-sections = true` will instead group all imports into a single section: ```python import numpy import os import pandas import sys ```",type:["boolean","null"]},"order-by-type":{description:"Order imports by type, which is determined by case, in addition to alphabetically.",type:["boolean","null"]},"relative-imports-order":{description:'Whether to place "closer" imports (fewer `.` characters, most local) before "further" imports (more `.` characters, least local), or vice versa.\n\nThe default ("furthest-to-closest") is equivalent to isort\'s [`reverse-relative`](https://pycqa.github.io/isort/docs/configuration/options.html#reverse-relative) default (`reverse-relative = false`); setting this to "closest-to-furthest" is equivalent to isort\'s `reverse-relative = true`.',anyOf:[{$ref:"#/definitions/RelativeImportsOrder"},{type:"null"}]},"required-imports":{description:"Add the specified import line to all files.",type:["array","null"],items:{$ref:"#/definitions/NameImports"}},"section-order":{description:"Override in which order the sections should be output. Can be used to move custom sections.",type:["array","null"],items:{$ref:"#/definitions/ImportSection"}},sections:{description:'A list of mappings from section names to modules.\n\nBy default, imports are categorized according to their type (e.g., `future`, `third-party`, and so on). This setting allows you to group modules into custom sections, to augment or override the built-in sections.\n\nFor example, to group all testing utilities, you could create a `testing` section: ```toml testing = ["pytest", "hypothesis"] ```\n\nThe values in the list are treated as glob patterns. For example, to match all packages in the LangChain ecosystem (`langchain-core`, `langchain-openai`, etc.): ```toml langchain = ["langchain-*"] ```\n\nCustom sections should typically be inserted into the [`section-order`](#lint_isort_section-order) list to ensure that they\'re displayed as a standalone group and in the intended order, as in: ```toml section-order = [ "future", "standard-library", "third-party", "first-party", "local-folder", "testing" ] ```\n\nIf a custom section is omitted from [`section-order`](#lint_isort_section-order), imports in that section will be assigned to the [`default-section`](#lint_isort_default-section) (which defaults to `third-party`).',type:["object","null"],additionalProperties:{type:"array",items:{type:"string"}}},"single-line-exclusions":{description:"One or more modules to exclude from the single line rule.",type:["array","null"],items:{type:"string"}},"split-on-trailing-comma":{description:"If a comma is placed after the last member in a multi-line import, then the imports will never be folded into one line.\n\nSee isort's [`split-on-trailing-comma`](https://pycqa.github.io/isort/docs/configuration/options.html#split-on-trailing-comma) option.\n\nWhen using the formatter, ensure that [`format.skip-magic-trailing-comma`](#format_skip-magic-trailing-comma) is set to `false` (default) when enabling `split-on-trailing-comma` to avoid that the formatter removes the trailing commas.",type:["boolean","null"]},variables:{description:"An override list of tokens to always recognize as a var for [`order-by-type`](#lint_isort_order-by-type) regardless of casing.",type:["array","null"],items:{type:"string"}}},additionalProperties:!1},LineEnding:{oneOf:[{description:"The newline style is detected automatically on a file per file basis. Files with mixed line endings will be converted to the first detected line ending. Defaults to [`LineEnding::Lf`] for a files that contain no line endings.",type:"string",enum:["auto"]},{description:"Line endings will be converted to `\\n` as is common on Unix.",type:"string",enum:["lf"]},{description:"Line endings will be converted to `\\r\\n` as is common on Windows.",type:"string",enum:["cr-lf"]},{description:"Line endings will be converted to `\\n` on Unix and `\\r\\n` on Windows.",type:"string",enum:["native"]}]},LineLength:{description:`The length of a line of text that is considered too long.
82
82
 
83
- The allowed range of values is 1..=320`,type:"integer",format:"uint16",maximum:320,minimum:1},LineWidth:{description:"The maximum visual width to which the formatter should try to limit a line.",type:"integer",format:"uint16",minimum:1},LintOptions:{description:"Configures how Ruff checks your code.\n\nOptions specified in the `lint` section take precedence over the deprecated top-level settings.",type:"object",properties:{"allowed-confusables":{description:'A list of allowed "confusable" Unicode characters to ignore when enforcing `RUF001`, `RUF002`, and `RUF003`.',type:["array","null"],items:{type:"string",maxLength:1,minLength:1}},"dummy-variable-rgx":{description:'A regular expression used to identify "dummy" variables, or those which should be ignored when enforcing (e.g.) unused-variable rules. The default expression matches `_`, `__`, and `_var`, but not `_var_`.',type:["string","null"]},exclude:{description:"A list of file patterns to exclude from linting in addition to the files excluded globally (see [`exclude`](#exclude), and [`extend-exclude`](#extend-exclude)).\n\nExclusions are based on globs, and can be either:\n\n- Single-path patterns, like `.mypy_cache` (to exclude any directory named `.mypy_cache` in the tree), `foo.py` (to exclude any file named `foo.py`), or `foo_*.py` (to exclude any file matching `foo_*.py` ). - Relative patterns, like `directory/foo.py` (to exclude that specific file) or `directory/*.py` (to exclude any Python files in `directory`). Note that these paths are relative to the project root (e.g., the directory containing your `pyproject.toml`).\n\nFor more information on the glob syntax, refer to the [`globset` documentation](https://docs.rs/globset/latest/globset/#syntax).",type:["array","null"],items:{type:"string"}},"explicit-preview-rules":{description:"Whether to require exact codes to select preview rules. When enabled, preview rules will not be selected by prefixes — the full code of each preview rule will be required to enable the rule.",type:["boolean","null"]},"extend-fixable":{description:"A list of rule codes or prefixes to consider fixable, in addition to those specified by [`fixable`](#lint_fixable).",type:["array","null"],items:{$ref:"#/definitions/RuleSelector"}},"extend-ignore":{description:"A list of rule codes or prefixes to ignore, in addition to those specified by `ignore`.",deprecated:!0,type:["array","null"],items:{$ref:"#/definitions/RuleSelector"}},"extend-per-file-ignores":{description:"A list of mappings from file pattern to rule codes or prefixes to exclude, in addition to any rules excluded by [`per-file-ignores`](#lint_per-file-ignores).",type:["object","null"],additionalProperties:{type:"array",items:{$ref:"#/definitions/RuleSelector"}}},"extend-safe-fixes":{description:"A list of rule codes or prefixes for which unsafe fixes should be considered safe.",type:["array","null"],items:{$ref:"#/definitions/RuleSelector"}},"extend-select":{description:"A list of rule codes or prefixes to enable, in addition to those specified by [`select`](#lint_select).",type:["array","null"],items:{$ref:"#/definitions/RuleSelector"}},"extend-unfixable":{description:"A list of rule codes or prefixes to consider non-auto-fixable, in addition to those specified by [`unfixable`](#lint_unfixable).",deprecated:!0,type:["array","null"],items:{$ref:"#/definitions/RuleSelector"}},"extend-unsafe-fixes":{description:"A list of rule codes or prefixes for which safe fixes should be considered unsafe.",type:["array","null"],items:{$ref:"#/definitions/RuleSelector"}},external:{description:"A list of rule codes or prefixes that are unsupported by Ruff, but should be preserved when (e.g.) validating `# noqa` directives. Useful for retaining `# noqa` directives that cover plugins not yet implemented by Ruff.",type:["array","null"],items:{type:"string"}},fixable:{description:"A list of rule codes or prefixes to consider fixable. By default, all rules are considered fixable.",type:["array","null"],items:{$ref:"#/definitions/RuleSelector"}},"flake8-annotations":{description:"Options for the `flake8-annotations` plugin.",anyOf:[{$ref:"#/definitions/Flake8AnnotationsOptions"},{type:"null"}]},"flake8-bandit":{description:"Options for the `flake8-bandit` plugin.",anyOf:[{$ref:"#/definitions/Flake8BanditOptions"},{type:"null"}]},"flake8-boolean-trap":{description:"Options for the `flake8-boolean-trap` plugin.",anyOf:[{$ref:"#/definitions/Flake8BooleanTrapOptions"},{type:"null"}]},"flake8-bugbear":{description:"Options for the `flake8-bugbear` plugin.",anyOf:[{$ref:"#/definitions/Flake8BugbearOptions"},{type:"null"}]},"flake8-builtins":{description:"Options for the `flake8-builtins` plugin.",anyOf:[{$ref:"#/definitions/Flake8BuiltinsOptions"},{type:"null"}]},"flake8-comprehensions":{description:"Options for the `flake8-comprehensions` plugin.",anyOf:[{$ref:"#/definitions/Flake8ComprehensionsOptions"},{type:"null"}]},"flake8-copyright":{description:"Options for the `flake8-copyright` plugin.",anyOf:[{$ref:"#/definitions/Flake8CopyrightOptions"},{type:"null"}]},"flake8-errmsg":{description:"Options for the `flake8-errmsg` plugin.",anyOf:[{$ref:"#/definitions/Flake8ErrMsgOptions"},{type:"null"}]},"flake8-gettext":{description:"Options for the `flake8-gettext` plugin.",anyOf:[{$ref:"#/definitions/Flake8GetTextOptions"},{type:"null"}]},"flake8-implicit-str-concat":{description:"Options for the `flake8-implicit-str-concat` plugin.",anyOf:[{$ref:"#/definitions/Flake8ImplicitStrConcatOptions"},{type:"null"}]},"flake8-import-conventions":{description:"Options for the `flake8-import-conventions` plugin.",anyOf:[{$ref:"#/definitions/Flake8ImportConventionsOptions"},{type:"null"}]},"flake8-pytest-style":{description:"Options for the `flake8-pytest-style` plugin.",anyOf:[{$ref:"#/definitions/Flake8PytestStyleOptions"},{type:"null"}]},"flake8-quotes":{description:"Options for the `flake8-quotes` plugin.",anyOf:[{$ref:"#/definitions/Flake8QuotesOptions"},{type:"null"}]},"flake8-self":{description:"Options for the `flake8_self` plugin.",anyOf:[{$ref:"#/definitions/Flake8SelfOptions"},{type:"null"}]},"flake8-tidy-imports":{description:"Options for the `flake8-tidy-imports` plugin.",anyOf:[{$ref:"#/definitions/Flake8TidyImportsOptions"},{type:"null"}]},"flake8-type-checking":{description:"Options for the `flake8-type-checking` plugin.",anyOf:[{$ref:"#/definitions/Flake8TypeCheckingOptions"},{type:"null"}]},"flake8-unused-arguments":{description:"Options for the `flake8-unused-arguments` plugin.",anyOf:[{$ref:"#/definitions/Flake8UnusedArgumentsOptions"},{type:"null"}]},ignore:{description:"A list of rule codes or prefixes to ignore. Prefixes can specify exact rules (like `F841`), entire categories (like `F`), or anything in between.\n\nWhen breaking ties between enabled and disabled rules (via `select` and `ignore`, respectively), more specific prefixes override less specific prefixes.",type:["array","null"],items:{$ref:"#/definitions/RuleSelector"}},"ignore-init-module-imports":{description:"Avoid automatically removing unused imports in `__init__.py` files. Such imports will still be flagged, but with a dedicated message suggesting that the import is either added to the module's `__all__` symbol, or re-exported with a redundant alias (e.g., `import os as os`).\n\nThis option is enabled by default, but you can opt-in to removal of imports via an unsafe fix.",deprecated:!0,type:["boolean","null"]},isort:{description:"Options for the `isort` plugin.",anyOf:[{$ref:"#/definitions/IsortOptions"},{type:"null"}]},"logger-objects":{description:'A list of objects that should be treated equivalently to a `logging.Logger` object.\n\nThis is useful for ensuring proper diagnostics (e.g., to identify `logging` deprecations and other best-practices) for projects that re-export a `logging.Logger` object from a common module.\n\nFor example, if you have a module `logging_setup.py` with the following contents: ```python import logging\n\nlogger = logging.getLogger(__name__) ```\n\nAdding `"logging_setup.logger"` to `logger-objects` will ensure that `logging_setup.logger` is treated as a `logging.Logger` object when imported from other modules (e.g., `from logging_setup import logger`).',type:["array","null"],items:{type:"string"}},mccabe:{description:"Options for the `mccabe` plugin.",anyOf:[{$ref:"#/definitions/McCabeOptions"},{type:"null"}]},"pep8-naming":{description:"Options for the `pep8-naming` plugin.",anyOf:[{$ref:"#/definitions/Pep8NamingOptions"},{type:"null"}]},"per-file-ignores":{description:"A list of mappings from file pattern to rule codes or prefixes to exclude, when considering any matching files. An initial '!' negates the file pattern.",type:["object","null"],additionalProperties:{type:"array",items:{$ref:"#/definitions/RuleSelector"}}},preview:{description:"Whether to enable preview mode. When preview mode is enabled, Ruff will use unstable rules and fixes.",type:["boolean","null"]},pycodestyle:{description:"Options for the `pycodestyle` plugin.",anyOf:[{$ref:"#/definitions/PycodestyleOptions"},{type:"null"}]},pydocstyle:{description:"Options for the `pydocstyle` plugin.",anyOf:[{$ref:"#/definitions/PydocstyleOptions"},{type:"null"}]},pyflakes:{description:"Options for the `pyflakes` plugin.",anyOf:[{$ref:"#/definitions/PyflakesOptions"},{type:"null"}]},pylint:{description:"Options for the `pylint` plugin.",anyOf:[{$ref:"#/definitions/PylintOptions"},{type:"null"}]},pyupgrade:{description:"Options for the `pyupgrade` plugin.",anyOf:[{$ref:"#/definitions/PyUpgradeOptions"},{type:"null"}]},ruff:{description:"Options for the `ruff` plugin",anyOf:[{$ref:"#/definitions/RuffOptions"},{type:"null"}]},select:{description:"A list of rule codes or prefixes to enable. Prefixes can specify exact rules (like `F841`), entire categories (like `F`), or anything in between.\n\nWhen breaking ties between enabled and disabled rules (via `select` and `ignore`, respectively), more specific prefixes override less specific prefixes.",type:["array","null"],items:{$ref:"#/definitions/RuleSelector"}},"task-tags":{description:'A list of task tags to recognize (e.g., "TODO", "FIXME", "XXX").\n\nComments starting with these tags will be ignored by commented-out code detection (`ERA`), and skipped by line-length rules (`E501`) if [`ignore-overlong-task-comments`](#lint_pycodestyle_ignore-overlong-task-comments) is set to `true`.',type:["array","null"],items:{type:"string"}},"typing-modules":{description:"A list of modules whose exports should be treated equivalently to members of the `typing` module.\n\nThis is useful for ensuring proper type annotation inference for projects that re-export `typing` and `typing_extensions` members from a compatibility module. If omitted, any members imported from modules apart from `typing` and `typing_extensions` will be treated as ordinary Python objects.",type:["array","null"],items:{type:"string"}},unfixable:{description:"A list of rule codes or prefixes to consider non-fixable.",type:["array","null"],items:{$ref:"#/definitions/RuleSelector"}}},additionalProperties:!1},McCabeOptions:{type:"object",properties:{"max-complexity":{description:"The maximum McCabe complexity to allow before triggering `C901` errors.",type:["integer","null"],format:"uint",minimum:0}},additionalProperties:!1},NameImports:{type:"string"},OutputFormat:{oneOf:[{type:"string",enum:["concise","full","json","json-lines","junit","grouped","github","gitlab","pylint","rdjson","azure","sarif"]},{deprecated:!0,type:"string",enum:["text"]}]},ParametrizeNameType:{type:"string",enum:["csv","tuple","list"]},ParametrizeValuesRowType:{type:"string",enum:["tuple","list"]},ParametrizeValuesType:{type:"string",enum:["tuple","list"]},Pep8NamingOptions:{type:"object",properties:{"classmethod-decorators":{description:"A list of decorators that, when applied to a method, indicate that the method should be treated as a class method (in addition to the builtin `@classmethod`).\n\nFor example, Ruff will expect that any method decorated by a decorator in this list takes a `cls` argument as its first argument.\n\nExpects to receive a list of fully-qualified names (e.g., `pydantic.validator`, rather than `validator`) or alternatively a plain name which is then matched against the last segment in case the decorator itself consists of a dotted name.",type:["array","null"],items:{type:"string"}},"extend-ignore-names":{description:'Additional names (or patterns) to ignore when considering `pep8-naming` violations, in addition to those included in [`ignore-names`](#lint_pep8-naming_ignore-names).\n\nSupports glob patterns. For example, to ignore all names starting with `test_` or ending with `_test`, you could use `ignore-names = ["test_*", "*_test"]`. For more information on the glob syntax, refer to the [`globset` documentation](https://docs.rs/globset/latest/globset/#syntax).',type:["array","null"],items:{type:"string"}},"ignore-names":{description:'A list of names (or patterns) to ignore when considering `pep8-naming` violations.\n\nSupports glob patterns. For example, to ignore all names starting with `test_` or ending with `_test`, you could use `ignore-names = ["test_*", "*_test"]`. For more information on the glob syntax, refer to the [`globset` documentation](https://docs.rs/globset/latest/globset/#syntax).',type:["array","null"],items:{type:"string"}},"staticmethod-decorators":{description:"A list of decorators that, when applied to a method, indicate that the method should be treated as a static method (in addition to the builtin `@staticmethod`).\n\nFor example, Ruff will expect that any method decorated by a decorator in this list has no `self` or `cls` argument.\n\nExpects to receive a list of fully-qualified names (e.g., `belay.Device.teardown`, rather than `teardown`) or alternatively a plain name which is then matched against the last segment in case the decorator itself consists of a dotted name.",type:["array","null"],items:{type:"string"}}},additionalProperties:!1},PyUpgradeOptions:{type:"object",properties:{"keep-runtime-typing":{description:"Whether to avoid [PEP 585](https://peps.python.org/pep-0585/) (`List[int]` -> `list[int]`) and [PEP 604](https://peps.python.org/pep-0604/) (`Union[str, int]` -> `str | int`) rewrites even if a file imports `from __future__ import annotations`.\n\nThis setting is only applicable when the target Python version is below 3.9 and 3.10 respectively, and is most commonly used when working with libraries like Pydantic and FastAPI, which rely on the ability to parse type annotations at runtime. The use of `from __future__ import annotations` causes Python to treat the type annotations as strings, which typically allows for the use of language features that appear in later Python versions but are not yet supported by the current version (e.g., `str | int`). However, libraries that rely on runtime type annotations will break if the annotations are incompatible with the current Python version.\n\nFor example, while the following is valid Python 3.8 code due to the presence of `from __future__ import annotations`, the use of `str | int` prior to Python 3.10 will cause Pydantic to raise a `TypeError` at runtime:\n\n```python from __future__ import annotations\n\nimport pydantic\n\nclass Foo(pydantic.BaseModel): bar: str | int ```",type:["boolean","null"]}},additionalProperties:!1},PycodestyleOptions:{type:"object",properties:{"ignore-overlong-task-comments":{description:'Whether line-length violations (`E501`) should be triggered for comments starting with [`task-tags`](#lint_task-tags) (by default: "TODO", "FIXME", and "XXX").',type:["boolean","null"]},"max-doc-length":{description:"The maximum line length to allow for [`doc-line-too-long`](https://docs.astral.sh/ruff/rules/doc-line-too-long/) violations within documentation (`W505`), including standalone comments. By default, this is set to `null` which disables reporting violations.\n\nThe length is determined by the number of characters per line, except for lines containing Asian characters or emojis. For these lines, the [unicode width](https://unicode.org/reports/tr11/) of each character is added up to determine the length.\n\nSee the [`doc-line-too-long`](https://docs.astral.sh/ruff/rules/doc-line-too-long/) rule for more information.",anyOf:[{$ref:"#/definitions/LineLength"},{type:"null"}]},"max-line-length":{description:"The maximum line length to allow for [`line-too-long`](https://docs.astral.sh/ruff/rules/line-too-long/) violations. By default, this is set to the value of the [`line-length`](#line-length) option.\n\nUse this option when you want to detect extra-long lines that the formatter can't automatically split by setting `pycodestyle.line-length` to a value larger than [`line-length`](#line-length).\n\n```toml # The formatter wraps lines at a length of 88. line-length = 88\n\n[pycodestyle] # E501 reports lines that exceed the length of 100. max-line-length = 100 ```\n\nThe length is determined by the number of characters per line, except for lines containing East Asian characters or emojis. For these lines, the [unicode width](https://unicode.org/reports/tr11/) of each character is added up to determine the length.\n\nSee the [`line-too-long`](https://docs.astral.sh/ruff/rules/line-too-long/) rule for more information.",anyOf:[{$ref:"#/definitions/LineLength"},{type:"null"}]}},additionalProperties:!1},PydocstyleOptions:{type:"object",properties:{convention:{description:'Whether to use Google-style, NumPy-style conventions, or the [PEP 257](https://peps.python.org/pep-0257/) defaults when analyzing docstring sections.\n\nEnabling a convention will disable all rules that are not included in the specified convention. As such, the intended workflow is to enable a convention and then selectively enable or disable any additional rules on top of it.\n\nFor example, to use Google-style conventions but avoid requiring documentation for every function parameter:\n\n```toml [tool.ruff.lint] # Enable all `pydocstyle` rules, limiting to those that adhere to the # Google convention via `convention = "google"`, below. select = ["D"]\n\n# On top of the Google convention, disable `D417`, which requires # documentation for every function parameter. ignore = ["D417"]\n\n[tool.ruff.lint.pydocstyle] convention = "google" ```\n\nTo enable an additional rule that\'s excluded from the convention, select the desired rule via its fully qualified rule code (e.g., `D400` instead of `D4` or `D40`):\n\n```toml [tool.ruff.lint] # Enable D400 on top of the Google convention. extend-select = ["D400"]\n\n[tool.ruff.lint.pydocstyle] convention = "google" ```',anyOf:[{$ref:"#/definitions/Convention"},{type:"null"}]},"ignore-decorators":{description:"Ignore docstrings for functions or methods decorated with the specified fully-qualified decorators.",type:["array","null"],items:{type:"string"}},"property-decorators":{description:"A list of decorators that, when applied to a method, indicate that the method should be treated as a property (in addition to the builtin `@property` and standard-library `@functools.cached_property`).\n\nFor example, Ruff will expect that any method decorated by a decorator in this list can use a non-imperative summary line.",type:["array","null"],items:{type:"string"}}},additionalProperties:!1},PyflakesOptions:{type:"object",properties:{"extend-generics":{description:'Additional functions or classes to consider generic, such that any subscripts should be treated as type annotation (e.g., `ForeignKey` in `django.db.models.ForeignKey["User"]`.\n\nExpects to receive a list of fully-qualified names (e.g., `django.db.models.ForeignKey`, rather than `ForeignKey`).',type:["array","null"],items:{type:"string"}}},additionalProperties:!1},PylintOptions:{type:"object",properties:{"allow-dunder-method-names":{description:"Dunder methods name to allow, in addition to the default set from the Python standard library (see `PLW3201`).",type:["array","null"],items:{type:"string"},uniqueItems:!0},"allow-magic-value-types":{description:'Constant types to ignore when used as "magic values" (see `PLR2004`).',type:["array","null"],items:{$ref:"#/definitions/ConstantType"}},"max-args":{description:"Maximum number of arguments allowed for a function or method definition (see `PLR0913`).",type:["integer","null"],format:"uint",minimum:0},"max-bool-expr":{description:"Maximum number of Boolean expressions allowed within a single `if` statement (see `PLR0916`).",type:["integer","null"],format:"uint",minimum:0},"max-branches":{description:"Maximum number of branches allowed for a function or method body (see `PLR0912`).",type:["integer","null"],format:"uint",minimum:0},"max-locals":{description:"Maximum number of local variables allowed for a function or method body (see `PLR0914`).",type:["integer","null"],format:"uint",minimum:0},"max-nested-blocks":{description:"Maximum number of nested blocks allowed within a function or method body (see `PLR1702`).",type:["integer","null"],format:"uint",minimum:0},"max-positional-args":{description:"Maximum number of positional arguments allowed for a function or method definition (see `PLR0917`).\n\nIf not specified, defaults to the value of `max-args`.",type:["integer","null"],format:"uint",minimum:0},"max-public-methods":{description:"Maximum number of public methods allowed for a class (see `PLR0904`).",type:["integer","null"],format:"uint",minimum:0},"max-returns":{description:"Maximum number of return statements allowed for a function or method body (see `PLR0911`)",type:["integer","null"],format:"uint",minimum:0},"max-statements":{description:"Maximum number of statements allowed for a function or method body (see `PLR0915`).",type:["integer","null"],format:"uint",minimum:0}},additionalProperties:!1},PythonVersion:{type:"string",enum:["py37","py38","py39","py310","py311","py312","py313"]},Quote:{oneOf:[{description:"Use double quotes.",type:"string",enum:["double"]},{description:"Use single quotes.",type:"string",enum:["single"]}]},QuoteStyle:{type:"string",enum:["single","double","preserve"]},RelativeImportsOrder:{oneOf:[{description:'Place "closer" imports (fewer `.` characters, most local) before "further" imports (more `.` characters, least local).',type:"string",enum:["closest-to-furthest"]},{description:'Place "further" imports (more `.` characters, least local) imports before "closer" imports (fewer `.` characters, most local).',type:"string",enum:["furthest-to-closest"]}]},RequiredVersion:{type:"string"},RuffOptions:{type:"object",properties:{"parenthesize-tuple-in-subscript":{description:"Whether to prefer accessing items keyed by tuples with parentheses around the tuple (see `RUF031`).",type:["boolean","null"]}},additionalProperties:!1},RuleSelector:{type:"string",enum:["A","A0","A00","A001","A002","A003","A004","A005","A006","AIR","AIR0","AIR00","AIR001","ALL","ANN","ANN0","ANN00","ANN001","ANN002","ANN003","ANN1","ANN10","ANN101","ANN102","ANN2","ANN20","ANN201","ANN202","ANN204","ANN205","ANN206","ANN4","ANN40","ANN401","ARG","ARG0","ARG00","ARG001","ARG002","ARG003","ARG004","ARG005","ASYNC","ASYNC1","ASYNC10","ASYNC100","ASYNC105","ASYNC109","ASYNC11","ASYNC110","ASYNC115","ASYNC116","ASYNC2","ASYNC21","ASYNC210","ASYNC22","ASYNC220","ASYNC221","ASYNC222","ASYNC23","ASYNC230","ASYNC25","ASYNC251","B","B0","B00","B002","B003","B004","B005","B006","B007","B008","B009","B01","B010","B011","B012","B013","B014","B015","B016","B017","B018","B019","B02","B020","B021","B022","B023","B024","B025","B026","B027","B028","B029","B03","B030","B031","B032","B033","B034","B035","B039","B9","B90","B901","B904","B905","B909","BLE","BLE0","BLE00","BLE001","C","C4","C40","C400","C401","C402","C403","C404","C405","C406","C408","C409","C41","C410","C411","C413","C414","C415","C416","C417","C418","C419","C42","C420","C9","C90","C901","COM","COM8","COM81","COM812","COM818","COM819","CPY","CPY0","CPY00","CPY001","D","D1","D10","D100","D101","D102","D103","D104","D105","D106","D107","D2","D20","D200","D201","D202","D203","D204","D205","D206","D207","D208","D209","D21","D210","D211","D212","D213","D214","D215","D3","D30","D300","D301","D4","D40","D400","D401","D402","D403","D404","D405","D406","D407","D408","D409","D41","D410","D411","D412","D413","D414","D415","D416","D417","D418","D419","DJ","DJ0","DJ00","DJ001","DJ003","DJ006","DJ007","DJ008","DJ01","DJ012","DJ013","DOC","DOC2","DOC20","DOC201","DOC202","DOC4","DOC40","DOC402","DOC403","DOC5","DOC50","DOC501","DOC502","DTZ","DTZ0","DTZ00","DTZ001","DTZ002","DTZ003","DTZ004","DTZ005","DTZ006","DTZ007","DTZ01","DTZ011","DTZ012","E","E1","E10","E101","E11","E111","E112","E113","E114","E115","E116","E117","E2","E20","E201","E202","E203","E204","E21","E211","E22","E221","E222","E223","E224","E225","E226","E227","E228","E23","E231","E24","E241","E242","E25","E251","E252","E26","E261","E262","E265","E266","E27","E271","E272","E273","E274","E275","E3","E30","E301","E302","E303","E304","E305","E306","E4","E40","E401","E402","E5","E50","E501","E502","E7","E70","E701","E702","E703","E71","E711","E712","E713","E714","E72","E721","E722","E73","E731","E74","E741","E742","E743","E9","E90","E902","E99","E999","EM","EM1","EM10","EM101","EM102","EM103","ERA","ERA0","ERA00","ERA001","EXE","EXE0","EXE00","EXE001","EXE002","EXE003","EXE004","EXE005","F","F4","F40","F401","F402","F403","F404","F405","F406","F407","F5","F50","F501","F502","F503","F504","F505","F506","F507","F508","F509","F52","F521","F522","F523","F524","F525","F54","F541","F6","F60","F601","F602","F62","F621","F622","F63","F631","F632","F633","F634","F7","F70","F701","F702","F704","F706","F707","F72","F722","F8","F81","F811","F82","F821","F822","F823","F84","F841","F842","F9","F90","F901","FA","FA1","FA10","FA100","FA102","FAST","FAST0","FAST00","FAST001","FAST002","FAST003","FBT","FBT0","FBT00","FBT001","FBT002","FBT003","FIX","FIX0","FIX00","FIX001","FIX002","FIX003","FIX004","FLY","FLY0","FLY00","FLY002","FURB","FURB1","FURB10","FURB101","FURB103","FURB105","FURB11","FURB110","FURB113","FURB116","FURB118","FURB12","FURB129","FURB13","FURB131","FURB132","FURB136","FURB14","FURB140","FURB142","FURB145","FURB148","FURB15","FURB152","FURB154","FURB157","FURB16","FURB161","FURB163","FURB164","FURB166","FURB167","FURB168","FURB169","FURB17","FURB171","FURB177","FURB18","FURB180","FURB181","FURB187","FURB19","FURB192","G","G0","G00","G001","G002","G003","G004","G01","G010","G1","G10","G101","G2","G20","G201","G202","I","I0","I00","I001","I002","ICN","ICN0","ICN00","ICN001","ICN002","ICN003","INP","INP0","INP00","INP001","INT","INT0","INT00","INT001","INT002","INT003","ISC","ISC0","ISC00","ISC001","ISC002","ISC003","LOG","LOG0","LOG00","LOG001","LOG002","LOG007","LOG009","N","N8","N80","N801","N802","N803","N804","N805","N806","N807","N81","N811","N812","N813","N814","N815","N816","N817","N818","N9","N99","N999","NPY","NPY0","NPY00","NPY001","NPY002","NPY003","NPY2","NPY20","NPY201","PD","PD0","PD00","PD002","PD003","PD004","PD007","PD008","PD009","PD01","PD010","PD011","PD012","PD013","PD015","PD1","PD10","PD101","PD9","PD90","PD901","PERF","PERF1","PERF10","PERF101","PERF102","PERF2","PERF20","PERF203","PERF4","PERF40","PERF401","PERF402","PERF403","PGH","PGH0","PGH00","PGH003","PGH004","PGH005","PIE","PIE7","PIE79","PIE790","PIE794","PIE796","PIE8","PIE80","PIE800","PIE804","PIE807","PIE808","PIE81","PIE810","PL","PLC","PLC0","PLC01","PLC010","PLC0105","PLC013","PLC0131","PLC0132","PLC02","PLC020","PLC0205","PLC0206","PLC0208","PLC04","PLC041","PLC0414","PLC0415","PLC1","PLC19","PLC190","PLC1901","PLC2","PLC24","PLC240","PLC2401","PLC2403","PLC27","PLC270","PLC2701","PLC28","PLC280","PLC2801","PLC3","PLC30","PLC300","PLC3002","PLE","PLE0","PLE01","PLE010","PLE0100","PLE0101","PLE011","PLE0115","PLE0116","PLE0117","PLE0118","PLE02","PLE023","PLE0237","PLE024","PLE0241","PLE03","PLE030","PLE0302","PLE0303","PLE0304","PLE0305","PLE0307","PLE0308","PLE0309","PLE06","PLE060","PLE0604","PLE0605","PLE064","PLE0643","PLE07","PLE070","PLE0704","PLE1","PLE11","PLE113","PLE1132","PLE114","PLE1141","PLE1142","PLE12","PLE120","PLE1205","PLE1206","PLE13","PLE130","PLE1300","PLE1307","PLE131","PLE1310","PLE15","PLE150","PLE1507","PLE151","PLE1519","PLE152","PLE1520","PLE17","PLE170","PLE1700","PLE2","PLE25","PLE250","PLE2502","PLE251","PLE2510","PLE2512","PLE2513","PLE2514","PLE2515","PLE4","PLE47","PLE470","PLE4703","PLR","PLR0","PLR01","PLR012","PLR0124","PLR013","PLR0133","PLR02","PLR020","PLR0202","PLR0203","PLR0206","PLR04","PLR040","PLR0402","PLR09","PLR090","PLR0904","PLR091","PLR0911","PLR0912","PLR0913","PLR0914","PLR0915","PLR0916","PLR0917","PLR1","PLR17","PLR170","PLR1702","PLR1704","PLR171","PLR1711","PLR1714","PLR172","PLR1722","PLR173","PLR1730","PLR1733","PLR1736","PLR2","PLR20","PLR200","PLR2004","PLR204","PLR2044","PLR5","PLR55","PLR550","PLR5501","PLR6","PLR61","PLR610","PLR6104","PLR62","PLR620","PLR6201","PLR63","PLR630","PLR6301","PLW","PLW0","PLW01","PLW010","PLW0108","PLW012","PLW0120","PLW0127","PLW0128","PLW0129","PLW013","PLW0131","PLW0133","PLW017","PLW0177","PLW02","PLW021","PLW0211","PLW024","PLW0245","PLW04","PLW040","PLW0406","PLW06","PLW060","PLW0602","PLW0603","PLW0604","PLW064","PLW0642","PLW07","PLW071","PLW0711","PLW1","PLW15","PLW150","PLW1501","PLW1508","PLW1509","PLW151","PLW1510","PLW1514","PLW16","PLW164","PLW1641","PLW2","PLW21","PLW210","PLW2101","PLW29","PLW290","PLW2901","PLW3","PLW32","PLW320","PLW3201","PLW33","PLW330","PLW3301","PT","PT0","PT00","PT001","PT002","PT003","PT004","PT005","PT006","PT007","PT008","PT009","PT01","PT010","PT011","PT012","PT013","PT014","PT015","PT016","PT017","PT018","PT019","PT02","PT020","PT021","PT022","PT023","PT024","PT025","PT026","PT027","PTH","PTH1","PTH10","PTH100","PTH101","PTH102","PTH103","PTH104","PTH105","PTH106","PTH107","PTH108","PTH109","PTH11","PTH110","PTH111","PTH112","PTH113","PTH114","PTH115","PTH116","PTH117","PTH118","PTH119","PTH12","PTH120","PTH121","PTH122","PTH123","PTH124","PTH2","PTH20","PTH201","PTH202","PTH203","PTH204","PTH205","PTH206","PTH207","PYI","PYI0","PYI00","PYI001","PYI002","PYI003","PYI004","PYI005","PYI006","PYI007","PYI008","PYI009","PYI01","PYI010","PYI011","PYI012","PYI013","PYI014","PYI015","PYI016","PYI017","PYI018","PYI019","PYI02","PYI020","PYI021","PYI024","PYI025","PYI026","PYI029","PYI03","PYI030","PYI032","PYI033","PYI034","PYI035","PYI036","PYI04","PYI041","PYI042","PYI043","PYI044","PYI045","PYI046","PYI047","PYI048","PYI049","PYI05","PYI050","PYI051","PYI052","PYI053","PYI054","PYI055","PYI056","PYI057","PYI058","PYI059","PYI06","PYI062","PYI063","PYI064","PYI066","Q","Q0","Q00","Q000","Q001","Q002","Q003","Q004","RET","RET5","RET50","RET501","RET502","RET503","RET504","RET505","RET506","RET507","RET508","RSE","RSE1","RSE10","RSE102","RUF","RUF0","RUF00","RUF001","RUF002","RUF003","RUF005","RUF006","RUF007","RUF008","RUF009","RUF01","RUF010","RUF012","RUF013","RUF015","RUF016","RUF017","RUF018","RUF019","RUF02","RUF020","RUF021","RUF022","RUF023","RUF024","RUF026","RUF027","RUF028","RUF029","RUF03","RUF030","RUF031","RUF032","RUF033","RUF034","RUF1","RUF10","RUF100","RUF101","RUF2","RUF20","RUF200","S","S1","S10","S101","S102","S103","S104","S105","S106","S107","S108","S11","S110","S112","S113","S2","S20","S201","S202","S3","S30","S301","S302","S303","S304","S305","S306","S307","S308","S31","S310","S311","S312","S313","S314","S315","S316","S317","S318","S319","S32","S320","S321","S323","S324","S4","S40","S401","S402","S403","S404","S405","S406","S407","S408","S409","S41","S411","S412","S413","S415","S5","S50","S501","S502","S503","S504","S505","S506","S507","S508","S509","S6","S60","S601","S602","S603","S604","S605","S606","S607","S608","S609","S61","S610","S611","S612","S7","S70","S701","S702","SIM","SIM1","SIM10","SIM101","SIM102","SIM103","SIM105","SIM107","SIM108","SIM109","SIM11","SIM110","SIM112","SIM113","SIM114","SIM115","SIM116","SIM117","SIM118","SIM2","SIM20","SIM201","SIM202","SIM208","SIM21","SIM210","SIM211","SIM212","SIM22","SIM220","SIM221","SIM222","SIM223","SIM3","SIM30","SIM300","SIM4","SIM40","SIM401","SIM9","SIM91","SIM910","SIM911","SLF","SLF0","SLF00","SLF001","SLOT","SLOT0","SLOT00","SLOT000","SLOT001","SLOT002","T","T1","T10","T100","T2","T20","T201","T203","TCH","TCH0","TCH00","TCH001","TCH002","TCH003","TCH004","TCH005","TCH01","TCH010","TD","TD0","TD00","TD001","TD002","TD003","TD004","TD005","TD006","TD007","TID","TID2","TID25","TID251","TID252","TID253","TRY","TRY0","TRY00","TRY002","TRY003","TRY004","TRY2","TRY20","TRY201","TRY3","TRY30","TRY300","TRY301","TRY302","TRY4","TRY40","TRY400","TRY401","UP","UP0","UP00","UP001","UP003","UP004","UP005","UP006","UP007","UP008","UP009","UP01","UP010","UP011","UP012","UP013","UP014","UP015","UP017","UP018","UP019","UP02","UP020","UP021","UP022","UP023","UP024","UP025","UP026","UP027","UP028","UP029","UP03","UP030","UP031","UP032","UP033","UP034","UP035","UP036","UP037","UP038","UP039","UP04","UP040","UP041","UP042","UP043","W","W1","W19","W191","W2","W29","W291","W292","W293","W3","W39","W391","W5","W50","W505","W6","W60","W605","YTT","YTT1","YTT10","YTT101","YTT102","YTT103","YTT2","YTT20","YTT201","YTT202","YTT203","YTT204","YTT3","YTT30","YTT301","YTT302","YTT303"]},Strictness:{oneOf:[{description:"Ban imports that extend into the parent module or beyond.",type:"string",enum:["parents"]},{description:"Ban all relative imports.",type:"string",enum:["all"]}]}}};function Ar(t,e,n,r,i,a,o){try{var l=t[a](o),s=l.value}catch(d){return void n(d)}l.done?e(s):Promise.resolve(s).then(r,i)}function Kv(t){return function(){var e=this,n=arguments;return new Promise(function(r,i){var a=t.apply(e,n);function o(s){Ar(a,r,i,o,l,"next",s)}function l(s){Ar(a,r,i,o,l,"throw",s)}o(void 0)})}}var Io=qs.parse("inmemory://dh-config/ruff-settings.json");function qv(){var{schemas:t=[]}=Pn.json.jsonDefaults.diagnosticsOptions;t.some(e=>e.uri==="json://ruff-schema")||Pn.json.jsonDefaults.setDiagnosticsOptions({schemas:[...t,{uri:"json://ruff-schema",fileMatch:[Io.toString()],schema:Yv}]})}function zv(){return Ft.apply(this,arguments)}function Ft(){return Ft=Kv(function*(){return yield Ki.initRuff(),"v".concat(zs.version())}),Ft.apply(this,arguments)}function Xv(t){var{text:e,isOpen:n,onClose:r,onSave:i,readOnly:a=!1,defaultSettings:o=Yi}=t,[l,s]=c.useState(!1),[d,f]=c.useState(!1),p=c.useRef(),h=c.useMemo(()=>JSON.stringify(o,null,2),[o]),{data:m}=Se(zv),[y]=c.useState(()=>Ks.createModel(e,"json",Io)),P=c.useCallback(()=>{n&&(r(),p.current=void 0,y.dispose())},[n,r,y]),v=c.useCallback(()=>{if(n){try{var b,O;i(JSON.parse((b=(O=p.current)===null||O===void 0||(O=O.getModel())===null||O===void 0?void 0:O.getValue())!==null&&b!==void 0?b:""))}catch{}P()}},[n,P,i]),g=c.useCallback(()=>{Je(y),y.setValue(h)},[y,h]),x=c.useCallback(b=>{var O;try{JSON.parse(b),s(!0)}catch{s(!1)}f(((O=p.current)===null||O===void 0||(O=O.getModel())===null||O===void 0?void 0:O.getValue())===h)},[h]),S=Ie(x,500,{leading:!0}),E=c.useCallback(b=>{p.current=b,y.onDidChangeContent(()=>{S(y.getValue())}),qv(),S(y.getValue())},[S,y]);return n?u.jsxs(Yt,{isOpen:n,centered:!0,keyboard:!0,clickOutside:!1,toggle:P,size:"lg",className:"ruff-settings-modal",children:[u.jsxs(fi,{closeButton:!1,children:[u.jsxs("span",{className:"settings-modal-title mr-auto",children:["Ruff ",m," Settings"]}),u.jsx(ri,{href:"https://docs.astral.sh/ruff/settings/",target:"_blank",children:u.jsx(V,{kind:"ghost",onClick:ne,icon:tu,children:"Settings Docs"})}),u.jsxs(Xe,{isDisabled:d,onPress:g,children:[u.jsx(Le,{children:u.jsx(Y,{icon:nu})}),u.jsx(nt,{children:"Reset to default"})]})]}),u.jsx(Kt,{style:{height:"80vh"},children:u.jsx(ra,{onEditorInitialized:E,settings:{readOnly:a,value:e,language:"json",folding:!0,padding:{bottom:16},lineNumbers:"on",overviewRulerLanes:0,model:y}})}),u.jsx(Si,{children:a?u.jsx(V,{kind:"secondary","data-dismiss":"modal",onClick:P,children:"Close"}):u.jsxs(u.Fragment,{children:[u.jsx(V,{kind:"secondary","data-dismiss":"modal",onClick:P,children:"Cancel"}),u.jsx(V,{kind:"primary","data-dismiss":"modal",tooltip:l?void 0:"Cannot save invalid JSON",disabled:!l,onClick:v,children:"Save"})]})})]}):null}const Qv=Object.freeze(Object.defineProperty({__proto__:null,Code:id,CommandHistory:ad,CommandHistoryActions:od,CommandHistoryItem:sd,CommandHistoryItemTooltip:ld,Console:On,ConsoleConstants:ud,ConsoleHistory:cd,ConsoleHistoryItem:dd,ConsoleHistoryItemResult:pd,ConsoleHistoryResultErrorMessage:fd,ConsoleHistoryResultInProgress:hd,ConsoleInput:md,ConsoleStatusBar:gd,ConsoleUtils:yd,Editor:ra,HeapUsage:vd,LogView:bd,MonacoProviders:Ki,MonacoTheme:Pd,MonacoThemeProvider:jo,MonacoUtils:Gi,ObjectIcon:xd,RUFF_DEFAULT_SETTINGS:Yi,RuffSettingsModal:Xv,SHORTCUTS:wd,ScriptEditor:np,ScriptEditorUtils:rp,default:On},Symbol.toStringTag,{value:"Module"}));function Nt(t,e,n){return(e=Jv(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Jv(t){var e=Zv(t,"string");return typeof e=="symbol"?e:e+""}function Zv(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}class we{static valueForCell(e,n,r){var i="".concat(e,",").concat(n);return r!==void 0&&r&&(i="(".concat(i,")")),i}constructor(e){Nt(this,"dh",void 0),Nt(this,"irisGridUtils",void 0),this.dh=e,this.irisGridUtils=new ia(e)}makeColumn(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:we.DEFAULT_TYPE,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;return new this.dh.Column({index:r,name:e,type:n})}makeRollupTableConfig(){return new this.dh.RollupTableConfig}makeColumns(){for(var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:5,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",r=[],i=0;i<e;i+=1)r.push(this.makeColumn("".concat(n).concat(i),we.DEFAULT_TYPE,i));return r}static makeUserColumnWidths(){for(var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:5,n=new Map,r=0;r<e;r+=1)n.set(r.toString(),100);return n}makeRow(e){var n=new this.dh.Row({index:e,name:"".concat(e)});return n.get=jest.fn(r=>we.valueForCell(e,r.index)),n}makeFilter(){return new this.dh.FilterCondition}makeSort(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.makeColumn();return new this.dh.Sort({column:e})}hydrateSort(e,n){return this.irisGridUtils.hydrateDhSort(n,e)}makeTable(){var{columns:e=this.makeColumns(),size:n=1e9,sort:r=[],layoutHints:i={}}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=new this.dh.Table({columns:e,size:n,sort:r});return a.copy=jest.fn(()=>Promise.resolve(a)),a.freeze=jest.fn(()=>Promise.resolve(a)),a.layoutHints=i,a}makeTreeTable(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.makeColumns(),n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1e9,a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:[],o=arguments.length>5?arguments[5]:void 0,l=new this.dh.TreeTable({columns:e,aggregatedColumns:n,groupedColumns:r,size:i,sort:a,layoutHints:o});return l.copy=jest.fn(()=>Promise.resolve(l)),l}static makeInputTable(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],{keys:r,values:i}=[...e,...n].reduce((a,o)=>(e.includes(o)?a.keys.push(o.name):a.values.push(o.name),a),{keys:[],values:[]});return{keys:r,values:i}}makeSubscription(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.makeTable();return new this.dh.TableViewportSubscription({table:e})}makeModel(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.makeTable(),n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,{dh:i}=this;return new ip(i,e,n??new tn(i),r)}}Nt(we,"DEFAULT_TYPE","java.lang.String");const eb=Object.freeze(Object.defineProperty({__proto__:null,AdvancedSettings:ap,AdvancedSettingsType:op,AggregationEdit:Mf,AggregationOperation:sp,AggregationUtils:lp,Aggregations:$f,BarIcon:Uf,ChartBuilder:Bf,ColumnHeaderGroup:up,CustomColumnBuilder:Wf,DownloadServiceWorkerUtils:Hf,FormatColumnWhereIcon:Vf,FormatRowWhereIcon:Gf,HistogramIcon:Yf,InputEditor:Kf,IrisGrid:En,IrisGridCacheUtils:cp,IrisGridCellOverflowMouseHandler:qf,IrisGridCellRendererUtils:zf,IrisGridColumnSelectMouseHandler:Xf,IrisGridColumnTooltipMouseHandler:Qf,IrisGridContextMenuHandler:Jf,IrisGridCopyCellMouseHandler:Zf,IrisGridDataSelectMouseHandler:eh,IrisGridFilterMouseHandler:th,IrisGridMetricCalculator:nh,IrisGridModel:dp,IrisGridModelFactory:pp,IrisGridPartitionedTableModel:fp,IrisGridPartitionedTableMouseHandler:rh,IrisGridRenderer:ih,IrisGridRowTreeMouseHandler:ah,IrisGridSortMouseHandler:oh,IrisGridTableModel:hp,IrisGridTableModelTemplate:mp,IrisGridTestUtils:we,IrisGridThemeContext:sh,IrisGridThemeProvider:ba,IrisGridTokenMouseHandler:lh,IrisGridTreeTableModel:gp,IrisGridUtils:ia,LineIcon:uh,OptionType:ch,PendingMouseHandler:dh,PieIcon:ph,RollupRows:fh,SHORTCUTS:hh,ScatterIcon:mh,TableCsvExporter:gh,TableSaver:yh,VisibilityOrderingBuilder:vh,createDefaultIrisGridTheme:bh,default:En,isColumnHeaderGroup:yp,isIrisGridTableModelTemplate:vp,isIrisGridTreeTableModel:bp,isPanelStateV1:Pp,isPanelStateV2:xp,isPartitionedGridModel:wp,isPartitionedGridModelProvider:Sp,isUITreeRow:Op},Symbol.toStringTag,{value:"Module"}));var ko={react:$,"react-dom":Zs,redux:Js,"react-redux":Qs,"@adobe/react-spectrum":Xs,"@deephaven/auth-plugins":Wv,"@deephaven/chart":Gv,"@deephaven/components":dy,"@deephaven/console":Qv,"@deephaven/dashboard":vv,"@deephaven/dashboard-core-plugins":Ep,"@deephaven/icons":ru,"@deephaven/iris-grid":eb,"@deephaven/jsapi-bootstrap":yy,"@deephaven/jsapi-components":hv,"@deephaven/jsapi-utils":Ty,"@deephaven/log":B,"@deephaven/plugin":Pv,"@deephaven/react-hooks":zh},tb=tl.createRequires(ko),nb=el({requires:tb});function Fr(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function Nr(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Fr(Object(n),!0).forEach(function(r){rb(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Fr(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function rb(t,e,n){return(e=ib(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function ib(t){var e=ab(t,"string");return typeof e=="symbol"?e:e+""}function ab(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Mr(t,e,n,r,i,a,o){try{var l=t[a](o),s=l.value}catch(d){return void n(d)}l.done?e(s):Promise.resolve(s).then(r,i)}function yn(t){return function(){var e=this,n=arguments;return new Promise(function(r,i){var a=t.apply(e,n);function o(s){Mr(a,r,i,o,l,"next",s)}function l(s){Mr(a,r,i,o,l,"throw",s)}o(void 0)})}}var se=B.module("@deephaven/app-utils.PluginUtils");function ob(t){return Mt.apply(this,arguments)}function Mt(){return Mt=yn(function*(t){var e=yield nb(t);return e}),Mt.apply(this,arguments)}function sb(t){return $t.apply(this,arguments)}function $t(){return $t=yn(function*(t){var e=yield fetch(t);if(!e.ok)throw new Error(e.statusText);try{return yield e.json()}catch{throw new Error("Could not be parsed as JSON")}}),$t.apply(this,arguments)}function lb(t){return typeof t=="object"&&t!=null&&typeof t.default=="object"}function ub(t){return Ot(t)?t:lb(t)&&Ot(t.default)?t.default:Bi(t)?t:null}function cb(t){return Ut.apply(this,arguments)}function Ut(){return Ut=yn(function*(t){se.debug("Loading plugins...");try{var e=yield sb("".concat(t,"/manifest.json"));if(!Array.isArray(e.plugins))throw new Error("Plugin manifest JSON does not contain plugins array");se.debug("Plugin manifest loaded:",e);for(var n=[],r=0;r<e.plugins.length;r+=1){var{name:i,main:a}=e.plugins[r],o="".concat(t,"/").concat(i,"/").concat(a);n.push(ob(o))}for(var l=yield Promise.allSettled(n),s=new Map,d=0;d<l.length;d+=1){var f=l[d],{name:p,version:h}=e.plugins[d];if(f.status==="fulfilled"){var m=ub(f.value);m==null?se.error("Plugin '".concat(p,"' is missing an exported value.")):s.set(p,Nr(Nr({},m),{},{version:h}))}else se.error("Unable to load plugin '".concat(p,"'"),f.reason)}return se.info("Plugins loaded:",s),s}catch(y){return se.error("Unable to load plugins:",y),new Map}}),Ut.apply(this,arguments)}function db(t){var e,n;return(e=(n=t.get("AuthHandlers"))===null||n===void 0?void 0:n.split(","))!==null&&e!==void 0?e:[]}function pb(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:new Map,r=db(e),i=[...t.entries(),...n.entries()].filter(s=>{var[,d]=s;return Ui(d)||St(d)}).map(s=>{var[d,f]=s;return St(f)?{type:$i.AUTH_PLUGIN,name:d,component:f.AuthPlugin.Component,isAvailable:f.AuthPlugin.isAvailable}:f}),a=i.filter(s=>{var{isAvailable:d}=s;return d(r,e)});if(a.length===0)throw new Error("No login plugins found, please register a login plugin for auth handlers: ".concat(r));a.length>1&&se.warn("More than one login plugin available, will use the first one: ",a.map(s=>{var{name:d}=s;return d}).join(", "));var{name:o,component:l}=a[0];return se.info("Using LoginPlugin",o),l}var fb=ii.createRequires(()=>ko),Gb=ii.createRemoteComponent({requires:fb});function $r(t,e,n,r,i,a,o){try{var l=t[a](o),s=l.value}catch(d){return void n(d)}l.done?e(s):Promise.resolve(s).then(r,i)}function hb(t){return function(){var e=this,n=arguments;return new Promise(function(r,i){var a=t.apply(e,n);function o(s){$r(a,r,i,o,l,"next",s)}function l(s){$r(a,r,i,o,l,"throw",s)}o(void 0)})}}function mb(t){var{pluginsUrl:e,getCorePlugins:n,children:r}=t,[i,a]=c.useState(null);return c.useEffect(function(){var l=!1;function s(){return d.apply(this,arguments)}function d(){return d=hb(function*(){var f,p=(f=yield n==null?void 0:n())!==null&&f!==void 0?f:[],h=yield cb(e);if(!l){var m=p.map(y=>[y.name,y]);a(new Map([...m,...h]))}}),d.apply(this,arguments)}return s(),()=>{l=!0}},[e,n]),u.jsx(ot.Provider,{value:i,children:r})}function gb(){var t=hn();return c.useEffect(function(){t.postMessage(hi(fn))},[t]),null}function Ur(t,e,n,r,i,a,o){try{var l=t[a](o),s=l.value}catch(d){return void n(d)}l.done?e(s):Promise.resolve(s).then(r,i)}function yb(t){return function(){var e=this,n=arguments;return new Promise(function(r,i){var a=t.apply(e,n);function o(s){Ur(a,r,i,o,l,"next",s)}function l(s){Ur(a,r,i,o,l,"throw",s)}o(void 0)})}}var vb=new Map([["@deephaven/auth-plugins.AuthPluginParent",{AuthPlugin:xo}],["@deephaven/auth-plugins.AuthPluginPsk",{AuthPlugin:Eo}],["@deephaven/auth-plugins.AuthPluginAnonymous",{AuthPlugin:Po}]]);function bb(t){var{children:e}=t,n=Ae(),r=c.useContext(ot),[i,a]=c.useState(),[o,l]=c.useState();c.useEffect(function(){var p=!1;function h(){return m.apply(this,arguments)}function m(){return m=yb(function*(){try{var y=yield n.getAuthConfigValues();p||a(new Map(y))}catch(P){p||l(P)}}),m.apply(this,arguments)}return h(),()=>{p=!0}},[n]);var s=c.useMemo(()=>{if(!(r==null||i==null))try{return pb(r,i,vb)}catch(f){l(f)}},[i,r]),d=s==null||i==null;return d||o!=null?u.jsx(me,{isLoading:d&&o==null,errorMessage:ke(o),"data-testid":"auth-bootstrap-loading-error"}):u.jsx(s,{authConfigValues:i,children:u.jsxs(u.Fragment,{children:[u.jsx(gb,{}),e]})})}function Br(t,e,n,r,i,a,o){try{var l=t[a](o),s=l.value}catch(d){return void n(d)}l.done?e(s):Promise.resolve(s).then(r,i)}function Wr(t){return function(){var e=this,n=arguments;return new Promise(function(r,i){var a=t.apply(e,n);function o(s){Br(a,r,i,o,l,"next",s)}function l(s){Br(a,r,i,o,l,"throw",s)}o(void 0)})}}var Ee=B.module("@deephaven/app-utils.ConnectionBootstrap");function Pb(t){var{children:e}=t,n=ge(),r=Ae(),[i,a]=c.useState(),[o,l]=c.useState(),[s,d]=c.useState("connecting"),f=s==="failed",p=s==="shutdown",h=s==="reconnecting",m=s==="not_connecting";c.useEffect(function(){var x=!1;function S(){return E.apply(this,arguments)}function E(){return E=Wr(function*(){try{var b=yield r.getAsIdeConnection();if(x)return;l(b),d("connected")}catch(O){if(x)return;a(O),d("not_connecting")}}),E.apply(this,arguments)}return S(),()=>{x=!0}},[n,r]),c.useEffect(function(){if(o==null||p)return;function x(E){var{detail:b}=E;Ee.info("Disconnect","".concat(JSON.stringify(b))),d("reconnecting")}var S=o.addEventListener(n.IdeConnection.EVENT_DISCONNECT,x);return S},[n,o,p]),c.useEffect(function(){if(o==null||p)return;function x(E){var{detail:b}=E;Ee.info("Reconnect","".concat(JSON.stringify(b))),d("connected")}var S=o.addEventListener(n.CoreClient.EVENT_RECONNECT,x);return S},[n,o,p]),c.useEffect(function(){if(o==null)return;function x(E){var{detail:b}=E;Ee.info("Shutdown","".concat(JSON.stringify(b))),a("Server shutdown: ".concat(b??"Unknown reason")),d("shutdown")}var S=o.addEventListener(n.IdeConnection.EVENT_SHUTDOWN,x);return S},[n,o]),c.useEffect(function(){if(o==null||p)return;function x(E){var{detail:b}=E;Ee.warn("Reconnect authentication failed","".concat(JSON.stringify(b))),a("Reconnect authentication failed: ".concat(b??"Unknown reason")),d("failed")}var S=o.addEventListener(n.CoreClient.EVENT_RECONNECT_AUTH_FAILED,x);return S},[n,o,p]);var y=c.useCallback(function(){var g=Wr(function*(x){if(Je(o,"No connection available to fetch object with"),typeof x=="string")throw new Error("No URI resolvers available in Core");return o.getObject(Ii(x))});return function(x){return g.apply(this,arguments)}}(),[o]),P=c.useMemo(()=>({subscribe:(g,x)=>(x({fetch:()=>y(g),status:"ready"}),()=>{})}),[y]);function v(){Ee.info("Refreshing application"),window.location.reload()}return p||s==="connecting"||m?u.jsx(me,{"data-testid":"connection-bootstrap-loading",isLoading:i==null,errorMessage:i!=null?"".concat(i):void 0}):u.jsx(pu.Provider,{value:o??null,children:u.jsx(ji.Provider,{value:y,children:u.jsxs(ut.Provider,{value:P,children:[e,u.jsx(Va,{isOpen:h,debounceMs:1e3,children:u.jsx(Ga,{icon:iu,title:u.jsxs(u.Fragment,{children:[u.jsx(Qe,{})," Attempting to reconnect..."]}),subtitle:"Please check your network connection."})}),u.jsx(wi,{confirmButtonText:"Refresh",onConfirm:v,isOpen:f,headerText:"Authentication failed",bodyText:"Credentials are invalid. Please refresh your browser to try and reconnect."})]})})})}function Yb(t){return new URL(t,"".concat(window.location))}function xb(){var t=new URLSearchParams(window.location.search);return t.get("envoyPrefix")}function wb(){var t=xb();return t!=null?{headers:{"envoy-prefix":t}}:{headers:{}}}function Hr(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function Vr(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Hr(Object(n),!0).forEach(function(r){Sb(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Hr(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function Sb(t,e,n){return(e=Ob(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Ob(t){var e=Eb(t,"string");return typeof e=="symbol"?e:e+""}function Eb(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Cb(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return{action:()=>{Fh(au,Vr(Vr({},t),{},{userAgent:navigator.userAgent}),aa.getState())},shortcut:at.EXPORT_LOGS,isGlobal:e}}function Tb(t){var{children:e}=t,n=fu(),r=c.useContext(yi),i=c.useContext(et),a=To(n,r,i);return u.jsx(gi.Provider,{value:a,children:e})}function jb(t){var{children:e}=t,n=Ni(Sd),r=c.useContext(ot),i=yo(r),a=Vt();return u.jsx(Ei,{themes:i,waitForActivation:a,children:u.jsx(Vi,{children:u.jsx(jo,{children:u.jsx(ba,{density:n.gridDensity,children:e})})})})}function Kb(t){var{fontClassNames:e,pluginsUrl:n,getCorePlugins:r,serverUrl:i,logMetadata:a,children:o}=t,l=c.useMemo(()=>wb(),[]),[s,d]=c.useState(0),f=c.useCallback(()=>{},[]),p=c.useCallback(()=>{requestAnimationFrame(()=>{d(m=>m+1)})},[]);mn(f,p);var h=c.useMemo(()=>[Cb(a,!0)],[a]);return u.jsxs(nl,{store:aa,children:[u.jsx(Aa,{fontClassNames:e,children:u.jsx(mb,{getCorePlugins:r,pluginsUrl:n,children:u.jsx(jb,{children:u.jsxs(mi,{serverUrl:i,options:l,children:[u.jsx(bb,{children:u.jsx(hu,{children:u.jsx(Tb,{children:u.jsx(Pb,{children:u.jsx(Fa,{children:o})})})})}),u.jsx(it,{actions:h})]},s)})})}),u.jsx(Ya,{})]})}function Gr(t,e,n,r,i,a,o){try{var l=t[a](o),s=l.value}catch(d){return void n(d)}l.done?e(s):Promise.resolve(s).then(r,i)}function Ib(t){return function(){var e=this,n=arguments;return new Promise(function(r,i){var a=t.apply(e,n);function o(s){Gr(a,r,i,o,l,"next",s)}function l(s){Gr(a,r,i,o,l,"throw",s)}o(void 0)})}}function ee(t,e,n){return(e=kb(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function kb(t){var e=_b(t,"string");return typeof e=="symbol"?e:e+""}function _b(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var Ce=B.module("GrpcFileStorageTable");class De{constructor(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:n;ee(this,"storageService",void 0),ee(this,"baseRoot",void 0),ee(this,"root",void 0),ee(this,"currentSize",0),ee(this,"currentViewport",void 0),ee(this,"listeners",[]),ee(this,"viewportUpdatePromise",void 0),ee(this,"currentViewportData",void 0),ee(this,"childTables",new Map),this.storageService=e,this.baseRoot=n,this.root=r,r===n&&(this.doRefresh=je(this.doRefresh.bind(this),De.REFRESH_DEBOUNCE))}removeBaseRoot(e){return fe.removeRoot(this.baseRoot,e)}getViewportData(){var e;return this.viewportUpdatePromise||this.refreshInternal(),(e=this.viewportUpdatePromise)!==null&&e!==void 0?e:Promise.resolve({items:[],offset:0})}getSnapshot(e){throw new Error("Method not implemented.")}get size(){return this.currentSize}setExpanded(e,n){var r=e.split("/"),i=r.shift();if((i===void 0||i==="")&&(i=r.shift()),i===void 0||i==="")throw new Error("Invalid path: ".concat(e));var a=r.join("/");if(n){if(!this.childTables.has(i)){var o=new De(this.storageService,this.baseRoot,"".concat(this.root,"/").concat(i));this.childTables.set(i,o)}if(a){var l=this.childTables.get(i);l==null||l.setExpanded(a,n)}}else if(this.childTables.has(i))if(a){var s=this.childTables.get(i);s==null||s.setExpanded(a,n)}else this.childTables.delete(i);this.currentViewport&&this.refreshInternal()}collapseAll(){this.childTables.clear(),this.currentViewport&&this.refreshInternal()}setSearch(e){throw new Error("Method not implemented.")}setViewport(e){this.currentViewport=e,this.refreshInternal()}setFilters(){throw new Error("Method not implemented.")}setSorts(){throw new Error("Method not implemented.")}setReversed(){throw new Error("Method not implemented.")}close(){this.listeners=[]}onUpdate(e){return this.listeners=[...this.listeners,e],()=>{this.listeners=this.listeners.filter(n=>n!==e)}}doRefresh(e){Ce.debug2("doRefresh",this.root),e(this.fetchData())}refresh(){var e;Ce.debug2("refresh",this.root),(e=this.viewportUpdatePromise)===null||e===void 0||e.cancel();var n=new Promise(i=>{this.doRefresh(i)}),r=he.makeCancelable(n.then(i=>{if(this.viewportUpdatePromise!==r)throw new Wi;return this.currentViewportData=i,this.sendUpdate(),i}));r.catch(i=>{he.isCanceled(i)||Ce.error("Error updating viewport",i)}),this.viewportUpdatePromise=r}refreshInternal(){try{this.refresh()}catch(e){he.isCanceled(e)||Ce.error("Unable to refresh data",e)}}fetchData(){var e=this;return Ib(function*(){var{currentViewport:n}=e;if(!n)throw new Error("No viewport set");for(var r=yield e.storageService.listItems(e.root),i=r.map(p=>({type:p.type,filename:e.removeBaseRoot(p.filename),basename:p.basename,id:e.removeBaseRoot(p.filename),isExpanded:p.type==="directory"?e.childTables.has(p.basename):void 0})).sort((p,h)=>p.type!==h.type?p.type==="directory"?-1:1:p.basename.localeCompare(h.basename)),a=0;a<i.length;a+=1){var o=i[a],{basename:l,filename:s}=o;if(s===e.removeBaseRoot("".concat(e.root,"/").concat(l))&&o.type==="directory"){var d=e.childTables.get(l);if(d!=null){d.setViewport({top:0,bottom:n.bottom-a});var f=yield d.getViewportData();i.splice(a+1,0,...f.items)}}}return e.currentSize=i.length,Ce.debug2(e.root,"items",i,n),i=i.slice(n.top,n.bottom),{items:i,offset:n.top}})()}sendUpdate(){for(var e,{listeners:n}=this,r=(e=this.currentViewportData)!==null&&e!==void 0?e:{items:[],offset:0},i=0;i<n.length;i+=1)n[i](r)}}ee(De,"REFRESH_DEBOUNCE",50);function Yr(t,e,n,r,i,a,o){try{var l=t[a](o),s=l.value}catch(d){return void n(d)}l.done?e(s):Promise.resolve(s).then(r,i)}function ae(t){return function(){var e=this,n=arguments;return new Promise(function(r,i){var a=t.apply(e,n);function o(s){Yr(a,r,i,o,l,"next",s)}function l(s){Yr(a,r,i,o,l,"throw",s)}o(void 0)})}}function ve(t,e,n){return(e=Rb(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Rb(t){var e=Db(t,"string");return typeof e=="symbol"?e:e+""}function Db(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var Lb=B.module("GrpcFileStorage");class vn{constructor(e,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"";ve(this,"dh",void 0),ve(this,"storageService",void 0),ve(this,"tables",[]),ve(this,"root",void 0),ve(this,"refreshTables",rl(()=>{this.tables.forEach(i=>i.refresh())},vn.REFRESH_THROTTLE)),this.dh=e,this.storageService=n,this.root=r}removeRoot(e){return fe.removeRoot(this.root,e)}addRoot(e){return fe.addRoot(this.root,e)}createDirectory(e){var n=this;return ae(function*(){return yield n.storageService.createDirectory(n.addRoot(e)),n.refreshTables(),{type:"directory",id:e,filename:e,basename:fe.getBaseName(e)}})()}getTable(){var e=this;return ae(function*(){var n=new De(e.storageService,e.root);return e.tables.push(n),n})()}saveFile(e){var n=this;return ae(function*(){var r=n.dh.storage.FileContents.text(e.content);return yield n.storageService.saveFile(n.addRoot(e.filename),r,!0),n.refreshTables(),e})()}loadFile(e){var n=this;return ae(function*(){var r=yield n.storageService.loadFile(n.addRoot(e)),i=yield r.text();return{filename:e,basename:fe.getBaseName(e),content:i}})()}copyFile(e,n){var r=this;return ae(function*(){var i=yield r.storageService.loadFile(r.addRoot(e));yield r.storageService.saveFile(r.addRoot(n),i,!1),r.refreshTables()})()}deleteFile(e){var n=this;return ae(function*(){yield n.storageService.deleteItem(n.addRoot(e)),n.refreshTables()})()}moveFile(e,n){var r=this;return ae(function*(){yield r.storageService.moveItem(r.addRoot(e),r.addRoot(n)),r.refreshTables()})()}info(e){var n=this;return ae(function*(){var r=yield n.storageService.listItems(n.addRoot(fe.getPath(e)),fe.getBaseName(e));if(r.length===0)throw new Od;if(r.length>1)throw Lb.error("More than one matching file found, should never happen.",r),new Error("More than one matching file found");var i=r[0];if(!Ed(i.type))throw new Error("Unexpected file type: ".concat(i.type));return{filename:n.removeRoot(i.filename),basename:i.basename,id:n.removeRoot(i.filename),type:i.type}})()}}ve(vn,"REFRESH_THROTTLE",150);export{Kb as AppBootstrap,Xb as AppDashboards,bb as AuthBootstrap,Pb as ConnectionBootstrap,pu as ConnectionContext,Qb as DEFAULT_LAYOUT_CONFIG,Jb as DEFAULT_LAYOUT_CONFIG_NO_CONSOLE,vn as GrpcFileStorage,De as GrpcFileStorageTable,Zb as GrpcLayoutStorage,e0 as LocalWorkspaceStorage,mb as PluginsBootstrap,Gb as RemoteComponent,jb as ThemeBootstrap,t0 as UserLayoutUtils,Cb as createExportLogsContextAction,n0 as exportLayout,db as getAuthHandlers,pb as getAuthPluginComponent,Yb as getBaseUrl,wb as getConnectOptions,r0 as getDefaultLayout,xb as getEnvoyPrefix,ub as getPluginModuleValue,i0 as isLayoutV1,a0 as isLayoutV2,sb as loadJson,ob as loadModulePlugin,cb as loadModulePlugins,o0 as normalizeLayout,s0 as useConnection,fu as useServerConfig,l0 as useUser};
84
- //# sourceMappingURL=index-Oq9pYG4A.js.map
83
+ The allowed range of values is 1..=320`,type:"integer",format:"uint16",maximum:320,minimum:1},LineWidth:{description:"The maximum visual width to which the formatter should try to limit a line.",type:"integer",format:"uint16",minimum:1},LintOptions:{description:"Configures how Ruff checks your code.\n\nOptions specified in the `lint` section take precedence over the deprecated top-level settings.",type:"object",properties:{"allowed-confusables":{description:'A list of allowed "confusable" Unicode characters to ignore when enforcing `RUF001`, `RUF002`, and `RUF003`.',type:["array","null"],items:{type:"string",maxLength:1,minLength:1}},"dummy-variable-rgx":{description:'A regular expression used to identify "dummy" variables, or those which should be ignored when enforcing (e.g.) unused-variable rules. The default expression matches `_`, `__`, and `_var`, but not `_var_`.',type:["string","null"]},exclude:{description:"A list of file patterns to exclude from linting in addition to the files excluded globally (see [`exclude`](#exclude), and [`extend-exclude`](#extend-exclude)).\n\nExclusions are based on globs, and can be either:\n\n- Single-path patterns, like `.mypy_cache` (to exclude any directory named `.mypy_cache` in the tree), `foo.py` (to exclude any file named `foo.py`), or `foo_*.py` (to exclude any file matching `foo_*.py` ). - Relative patterns, like `directory/foo.py` (to exclude that specific file) or `directory/*.py` (to exclude any Python files in `directory`). Note that these paths are relative to the project root (e.g., the directory containing your `pyproject.toml`).\n\nFor more information on the glob syntax, refer to the [`globset` documentation](https://docs.rs/globset/latest/globset/#syntax).",type:["array","null"],items:{type:"string"}},"explicit-preview-rules":{description:"Whether to require exact codes to select preview rules. When enabled, preview rules will not be selected by prefixes — the full code of each preview rule will be required to enable the rule.",type:["boolean","null"]},"extend-fixable":{description:"A list of rule codes or prefixes to consider fixable, in addition to those specified by [`fixable`](#lint_fixable).",type:["array","null"],items:{$ref:"#/definitions/RuleSelector"}},"extend-ignore":{description:"A list of rule codes or prefixes to ignore, in addition to those specified by `ignore`.",deprecated:!0,type:["array","null"],items:{$ref:"#/definitions/RuleSelector"}},"extend-per-file-ignores":{description:"A list of mappings from file pattern to rule codes or prefixes to exclude, in addition to any rules excluded by [`per-file-ignores`](#lint_per-file-ignores).",type:["object","null"],additionalProperties:{type:"array",items:{$ref:"#/definitions/RuleSelector"}}},"extend-safe-fixes":{description:"A list of rule codes or prefixes for which unsafe fixes should be considered safe.",type:["array","null"],items:{$ref:"#/definitions/RuleSelector"}},"extend-select":{description:"A list of rule codes or prefixes to enable, in addition to those specified by [`select`](#lint_select).",type:["array","null"],items:{$ref:"#/definitions/RuleSelector"}},"extend-unfixable":{description:"A list of rule codes or prefixes to consider non-auto-fixable, in addition to those specified by [`unfixable`](#lint_unfixable).",deprecated:!0,type:["array","null"],items:{$ref:"#/definitions/RuleSelector"}},"extend-unsafe-fixes":{description:"A list of rule codes or prefixes for which safe fixes should be considered unsafe.",type:["array","null"],items:{$ref:"#/definitions/RuleSelector"}},external:{description:"A list of rule codes or prefixes that are unsupported by Ruff, but should be preserved when (e.g.) validating `# noqa` directives. Useful for retaining `# noqa` directives that cover plugins not yet implemented by Ruff.",type:["array","null"],items:{type:"string"}},fixable:{description:"A list of rule codes or prefixes to consider fixable. By default, all rules are considered fixable.",type:["array","null"],items:{$ref:"#/definitions/RuleSelector"}},"flake8-annotations":{description:"Options for the `flake8-annotations` plugin.",anyOf:[{$ref:"#/definitions/Flake8AnnotationsOptions"},{type:"null"}]},"flake8-bandit":{description:"Options for the `flake8-bandit` plugin.",anyOf:[{$ref:"#/definitions/Flake8BanditOptions"},{type:"null"}]},"flake8-boolean-trap":{description:"Options for the `flake8-boolean-trap` plugin.",anyOf:[{$ref:"#/definitions/Flake8BooleanTrapOptions"},{type:"null"}]},"flake8-bugbear":{description:"Options for the `flake8-bugbear` plugin.",anyOf:[{$ref:"#/definitions/Flake8BugbearOptions"},{type:"null"}]},"flake8-builtins":{description:"Options for the `flake8-builtins` plugin.",anyOf:[{$ref:"#/definitions/Flake8BuiltinsOptions"},{type:"null"}]},"flake8-comprehensions":{description:"Options for the `flake8-comprehensions` plugin.",anyOf:[{$ref:"#/definitions/Flake8ComprehensionsOptions"},{type:"null"}]},"flake8-copyright":{description:"Options for the `flake8-copyright` plugin.",anyOf:[{$ref:"#/definitions/Flake8CopyrightOptions"},{type:"null"}]},"flake8-errmsg":{description:"Options for the `flake8-errmsg` plugin.",anyOf:[{$ref:"#/definitions/Flake8ErrMsgOptions"},{type:"null"}]},"flake8-gettext":{description:"Options for the `flake8-gettext` plugin.",anyOf:[{$ref:"#/definitions/Flake8GetTextOptions"},{type:"null"}]},"flake8-implicit-str-concat":{description:"Options for the `flake8-implicit-str-concat` plugin.",anyOf:[{$ref:"#/definitions/Flake8ImplicitStrConcatOptions"},{type:"null"}]},"flake8-import-conventions":{description:"Options for the `flake8-import-conventions` plugin.",anyOf:[{$ref:"#/definitions/Flake8ImportConventionsOptions"},{type:"null"}]},"flake8-pytest-style":{description:"Options for the `flake8-pytest-style` plugin.",anyOf:[{$ref:"#/definitions/Flake8PytestStyleOptions"},{type:"null"}]},"flake8-quotes":{description:"Options for the `flake8-quotes` plugin.",anyOf:[{$ref:"#/definitions/Flake8QuotesOptions"},{type:"null"}]},"flake8-self":{description:"Options for the `flake8_self` plugin.",anyOf:[{$ref:"#/definitions/Flake8SelfOptions"},{type:"null"}]},"flake8-tidy-imports":{description:"Options for the `flake8-tidy-imports` plugin.",anyOf:[{$ref:"#/definitions/Flake8TidyImportsOptions"},{type:"null"}]},"flake8-type-checking":{description:"Options for the `flake8-type-checking` plugin.",anyOf:[{$ref:"#/definitions/Flake8TypeCheckingOptions"},{type:"null"}]},"flake8-unused-arguments":{description:"Options for the `flake8-unused-arguments` plugin.",anyOf:[{$ref:"#/definitions/Flake8UnusedArgumentsOptions"},{type:"null"}]},ignore:{description:"A list of rule codes or prefixes to ignore. Prefixes can specify exact rules (like `F841`), entire categories (like `F`), or anything in between.\n\nWhen breaking ties between enabled and disabled rules (via `select` and `ignore`, respectively), more specific prefixes override less specific prefixes.",type:["array","null"],items:{$ref:"#/definitions/RuleSelector"}},"ignore-init-module-imports":{description:"Avoid automatically removing unused imports in `__init__.py` files. Such imports will still be flagged, but with a dedicated message suggesting that the import is either added to the module's `__all__` symbol, or re-exported with a redundant alias (e.g., `import os as os`).\n\nThis option is enabled by default, but you can opt-in to removal of imports via an unsafe fix.",deprecated:!0,type:["boolean","null"]},isort:{description:"Options for the `isort` plugin.",anyOf:[{$ref:"#/definitions/IsortOptions"},{type:"null"}]},"logger-objects":{description:'A list of objects that should be treated equivalently to a `logging.Logger` object.\n\nThis is useful for ensuring proper diagnostics (e.g., to identify `logging` deprecations and other best-practices) for projects that re-export a `logging.Logger` object from a common module.\n\nFor example, if you have a module `logging_setup.py` with the following contents: ```python import logging\n\nlogger = logging.getLogger(__name__) ```\n\nAdding `"logging_setup.logger"` to `logger-objects` will ensure that `logging_setup.logger` is treated as a `logging.Logger` object when imported from other modules (e.g., `from logging_setup import logger`).',type:["array","null"],items:{type:"string"}},mccabe:{description:"Options for the `mccabe` plugin.",anyOf:[{$ref:"#/definitions/McCabeOptions"},{type:"null"}]},"pep8-naming":{description:"Options for the `pep8-naming` plugin.",anyOf:[{$ref:"#/definitions/Pep8NamingOptions"},{type:"null"}]},"per-file-ignores":{description:"A list of mappings from file pattern to rule codes or prefixes to exclude, when considering any matching files. An initial '!' negates the file pattern.",type:["object","null"],additionalProperties:{type:"array",items:{$ref:"#/definitions/RuleSelector"}}},preview:{description:"Whether to enable preview mode. When preview mode is enabled, Ruff will use unstable rules and fixes.",type:["boolean","null"]},pycodestyle:{description:"Options for the `pycodestyle` plugin.",anyOf:[{$ref:"#/definitions/PycodestyleOptions"},{type:"null"}]},pydocstyle:{description:"Options for the `pydocstyle` plugin.",anyOf:[{$ref:"#/definitions/PydocstyleOptions"},{type:"null"}]},pyflakes:{description:"Options for the `pyflakes` plugin.",anyOf:[{$ref:"#/definitions/PyflakesOptions"},{type:"null"}]},pylint:{description:"Options for the `pylint` plugin.",anyOf:[{$ref:"#/definitions/PylintOptions"},{type:"null"}]},pyupgrade:{description:"Options for the `pyupgrade` plugin.",anyOf:[{$ref:"#/definitions/PyUpgradeOptions"},{type:"null"}]},ruff:{description:"Options for the `ruff` plugin",anyOf:[{$ref:"#/definitions/RuffOptions"},{type:"null"}]},select:{description:"A list of rule codes or prefixes to enable. Prefixes can specify exact rules (like `F841`), entire categories (like `F`), or anything in between.\n\nWhen breaking ties between enabled and disabled rules (via `select` and `ignore`, respectively), more specific prefixes override less specific prefixes.",type:["array","null"],items:{$ref:"#/definitions/RuleSelector"}},"task-tags":{description:'A list of task tags to recognize (e.g., "TODO", "FIXME", "XXX").\n\nComments starting with these tags will be ignored by commented-out code detection (`ERA`), and skipped by line-length rules (`E501`) if [`ignore-overlong-task-comments`](#lint_pycodestyle_ignore-overlong-task-comments) is set to `true`.',type:["array","null"],items:{type:"string"}},"typing-modules":{description:"A list of modules whose exports should be treated equivalently to members of the `typing` module.\n\nThis is useful for ensuring proper type annotation inference for projects that re-export `typing` and `typing_extensions` members from a compatibility module. If omitted, any members imported from modules apart from `typing` and `typing_extensions` will be treated as ordinary Python objects.",type:["array","null"],items:{type:"string"}},unfixable:{description:"A list of rule codes or prefixes to consider non-fixable.",type:["array","null"],items:{$ref:"#/definitions/RuleSelector"}}},additionalProperties:!1},McCabeOptions:{type:"object",properties:{"max-complexity":{description:"The maximum McCabe complexity to allow before triggering `C901` errors.",type:["integer","null"],format:"uint",minimum:0}},additionalProperties:!1},NameImports:{type:"string"},OutputFormat:{oneOf:[{type:"string",enum:["concise","full","json","json-lines","junit","grouped","github","gitlab","pylint","rdjson","azure","sarif"]},{deprecated:!0,type:"string",enum:["text"]}]},ParametrizeNameType:{type:"string",enum:["csv","tuple","list"]},ParametrizeValuesRowType:{type:"string",enum:["tuple","list"]},ParametrizeValuesType:{type:"string",enum:["tuple","list"]},Pep8NamingOptions:{type:"object",properties:{"classmethod-decorators":{description:"A list of decorators that, when applied to a method, indicate that the method should be treated as a class method (in addition to the builtin `@classmethod`).\n\nFor example, Ruff will expect that any method decorated by a decorator in this list takes a `cls` argument as its first argument.\n\nExpects to receive a list of fully-qualified names (e.g., `pydantic.validator`, rather than `validator`) or alternatively a plain name which is then matched against the last segment in case the decorator itself consists of a dotted name.",type:["array","null"],items:{type:"string"}},"extend-ignore-names":{description:'Additional names (or patterns) to ignore when considering `pep8-naming` violations, in addition to those included in [`ignore-names`](#lint_pep8-naming_ignore-names).\n\nSupports glob patterns. For example, to ignore all names starting with `test_` or ending with `_test`, you could use `ignore-names = ["test_*", "*_test"]`. For more information on the glob syntax, refer to the [`globset` documentation](https://docs.rs/globset/latest/globset/#syntax).',type:["array","null"],items:{type:"string"}},"ignore-names":{description:'A list of names (or patterns) to ignore when considering `pep8-naming` violations.\n\nSupports glob patterns. For example, to ignore all names starting with `test_` or ending with `_test`, you could use `ignore-names = ["test_*", "*_test"]`. For more information on the glob syntax, refer to the [`globset` documentation](https://docs.rs/globset/latest/globset/#syntax).',type:["array","null"],items:{type:"string"}},"staticmethod-decorators":{description:"A list of decorators that, when applied to a method, indicate that the method should be treated as a static method (in addition to the builtin `@staticmethod`).\n\nFor example, Ruff will expect that any method decorated by a decorator in this list has no `self` or `cls` argument.\n\nExpects to receive a list of fully-qualified names (e.g., `belay.Device.teardown`, rather than `teardown`) or alternatively a plain name which is then matched against the last segment in case the decorator itself consists of a dotted name.",type:["array","null"],items:{type:"string"}}},additionalProperties:!1},PyUpgradeOptions:{type:"object",properties:{"keep-runtime-typing":{description:"Whether to avoid [PEP 585](https://peps.python.org/pep-0585/) (`List[int]` -> `list[int]`) and [PEP 604](https://peps.python.org/pep-0604/) (`Union[str, int]` -> `str | int`) rewrites even if a file imports `from __future__ import annotations`.\n\nThis setting is only applicable when the target Python version is below 3.9 and 3.10 respectively, and is most commonly used when working with libraries like Pydantic and FastAPI, which rely on the ability to parse type annotations at runtime. The use of `from __future__ import annotations` causes Python to treat the type annotations as strings, which typically allows for the use of language features that appear in later Python versions but are not yet supported by the current version (e.g., `str | int`). However, libraries that rely on runtime type annotations will break if the annotations are incompatible with the current Python version.\n\nFor example, while the following is valid Python 3.8 code due to the presence of `from __future__ import annotations`, the use of `str | int` prior to Python 3.10 will cause Pydantic to raise a `TypeError` at runtime:\n\n```python from __future__ import annotations\n\nimport pydantic\n\nclass Foo(pydantic.BaseModel): bar: str | int ```",type:["boolean","null"]}},additionalProperties:!1},PycodestyleOptions:{type:"object",properties:{"ignore-overlong-task-comments":{description:'Whether line-length violations (`E501`) should be triggered for comments starting with [`task-tags`](#lint_task-tags) (by default: "TODO", "FIXME", and "XXX").',type:["boolean","null"]},"max-doc-length":{description:"The maximum line length to allow for [`doc-line-too-long`](https://docs.astral.sh/ruff/rules/doc-line-too-long/) violations within documentation (`W505`), including standalone comments. By default, this is set to `null` which disables reporting violations.\n\nThe length is determined by the number of characters per line, except for lines containing Asian characters or emojis. For these lines, the [unicode width](https://unicode.org/reports/tr11/) of each character is added up to determine the length.\n\nSee the [`doc-line-too-long`](https://docs.astral.sh/ruff/rules/doc-line-too-long/) rule for more information.",anyOf:[{$ref:"#/definitions/LineLength"},{type:"null"}]},"max-line-length":{description:"The maximum line length to allow for [`line-too-long`](https://docs.astral.sh/ruff/rules/line-too-long/) violations. By default, this is set to the value of the [`line-length`](#line-length) option.\n\nUse this option when you want to detect extra-long lines that the formatter can't automatically split by setting `pycodestyle.line-length` to a value larger than [`line-length`](#line-length).\n\n```toml # The formatter wraps lines at a length of 88. line-length = 88\n\n[pycodestyle] # E501 reports lines that exceed the length of 100. max-line-length = 100 ```\n\nThe length is determined by the number of characters per line, except for lines containing East Asian characters or emojis. For these lines, the [unicode width](https://unicode.org/reports/tr11/) of each character is added up to determine the length.\n\nSee the [`line-too-long`](https://docs.astral.sh/ruff/rules/line-too-long/) rule for more information.",anyOf:[{$ref:"#/definitions/LineLength"},{type:"null"}]}},additionalProperties:!1},PydocstyleOptions:{type:"object",properties:{convention:{description:'Whether to use Google-style, NumPy-style conventions, or the [PEP 257](https://peps.python.org/pep-0257/) defaults when analyzing docstring sections.\n\nEnabling a convention will disable all rules that are not included in the specified convention. As such, the intended workflow is to enable a convention and then selectively enable or disable any additional rules on top of it.\n\nFor example, to use Google-style conventions but avoid requiring documentation for every function parameter:\n\n```toml [tool.ruff.lint] # Enable all `pydocstyle` rules, limiting to those that adhere to the # Google convention via `convention = "google"`, below. select = ["D"]\n\n# On top of the Google convention, disable `D417`, which requires # documentation for every function parameter. ignore = ["D417"]\n\n[tool.ruff.lint.pydocstyle] convention = "google" ```\n\nTo enable an additional rule that\'s excluded from the convention, select the desired rule via its fully qualified rule code (e.g., `D400` instead of `D4` or `D40`):\n\n```toml [tool.ruff.lint] # Enable D400 on top of the Google convention. extend-select = ["D400"]\n\n[tool.ruff.lint.pydocstyle] convention = "google" ```',anyOf:[{$ref:"#/definitions/Convention"},{type:"null"}]},"ignore-decorators":{description:"Ignore docstrings for functions or methods decorated with the specified fully-qualified decorators.",type:["array","null"],items:{type:"string"}},"property-decorators":{description:"A list of decorators that, when applied to a method, indicate that the method should be treated as a property (in addition to the builtin `@property` and standard-library `@functools.cached_property`).\n\nFor example, Ruff will expect that any method decorated by a decorator in this list can use a non-imperative summary line.",type:["array","null"],items:{type:"string"}}},additionalProperties:!1},PyflakesOptions:{type:"object",properties:{"extend-generics":{description:'Additional functions or classes to consider generic, such that any subscripts should be treated as type annotation (e.g., `ForeignKey` in `django.db.models.ForeignKey["User"]`.\n\nExpects to receive a list of fully-qualified names (e.g., `django.db.models.ForeignKey`, rather than `ForeignKey`).',type:["array","null"],items:{type:"string"}}},additionalProperties:!1},PylintOptions:{type:"object",properties:{"allow-dunder-method-names":{description:"Dunder methods name to allow, in addition to the default set from the Python standard library (see `PLW3201`).",type:["array","null"],items:{type:"string"},uniqueItems:!0},"allow-magic-value-types":{description:'Constant types to ignore when used as "magic values" (see `PLR2004`).',type:["array","null"],items:{$ref:"#/definitions/ConstantType"}},"max-args":{description:"Maximum number of arguments allowed for a function or method definition (see `PLR0913`).",type:["integer","null"],format:"uint",minimum:0},"max-bool-expr":{description:"Maximum number of Boolean expressions allowed within a single `if` statement (see `PLR0916`).",type:["integer","null"],format:"uint",minimum:0},"max-branches":{description:"Maximum number of branches allowed for a function or method body (see `PLR0912`).",type:["integer","null"],format:"uint",minimum:0},"max-locals":{description:"Maximum number of local variables allowed for a function or method body (see `PLR0914`).",type:["integer","null"],format:"uint",minimum:0},"max-nested-blocks":{description:"Maximum number of nested blocks allowed within a function or method body (see `PLR1702`).",type:["integer","null"],format:"uint",minimum:0},"max-positional-args":{description:"Maximum number of positional arguments allowed for a function or method definition (see `PLR0917`).\n\nIf not specified, defaults to the value of `max-args`.",type:["integer","null"],format:"uint",minimum:0},"max-public-methods":{description:"Maximum number of public methods allowed for a class (see `PLR0904`).",type:["integer","null"],format:"uint",minimum:0},"max-returns":{description:"Maximum number of return statements allowed for a function or method body (see `PLR0911`)",type:["integer","null"],format:"uint",minimum:0},"max-statements":{description:"Maximum number of statements allowed for a function or method body (see `PLR0915`).",type:["integer","null"],format:"uint",minimum:0}},additionalProperties:!1},PythonVersion:{type:"string",enum:["py37","py38","py39","py310","py311","py312","py313"]},Quote:{oneOf:[{description:"Use double quotes.",type:"string",enum:["double"]},{description:"Use single quotes.",type:"string",enum:["single"]}]},QuoteStyle:{type:"string",enum:["single","double","preserve"]},RelativeImportsOrder:{oneOf:[{description:'Place "closer" imports (fewer `.` characters, most local) before "further" imports (more `.` characters, least local).',type:"string",enum:["closest-to-furthest"]},{description:'Place "further" imports (more `.` characters, least local) imports before "closer" imports (fewer `.` characters, most local).',type:"string",enum:["furthest-to-closest"]}]},RequiredVersion:{type:"string"},RuffOptions:{type:"object",properties:{"parenthesize-tuple-in-subscript":{description:"Whether to prefer accessing items keyed by tuples with parentheses around the tuple (see `RUF031`).",type:["boolean","null"]}},additionalProperties:!1},RuleSelector:{type:"string",enum:["A","A0","A00","A001","A002","A003","A004","A005","A006","AIR","AIR0","AIR00","AIR001","ALL","ANN","ANN0","ANN00","ANN001","ANN002","ANN003","ANN1","ANN10","ANN101","ANN102","ANN2","ANN20","ANN201","ANN202","ANN204","ANN205","ANN206","ANN4","ANN40","ANN401","ARG","ARG0","ARG00","ARG001","ARG002","ARG003","ARG004","ARG005","ASYNC","ASYNC1","ASYNC10","ASYNC100","ASYNC105","ASYNC109","ASYNC11","ASYNC110","ASYNC115","ASYNC116","ASYNC2","ASYNC21","ASYNC210","ASYNC22","ASYNC220","ASYNC221","ASYNC222","ASYNC23","ASYNC230","ASYNC25","ASYNC251","B","B0","B00","B002","B003","B004","B005","B006","B007","B008","B009","B01","B010","B011","B012","B013","B014","B015","B016","B017","B018","B019","B02","B020","B021","B022","B023","B024","B025","B026","B027","B028","B029","B03","B030","B031","B032","B033","B034","B035","B039","B9","B90","B901","B904","B905","B909","BLE","BLE0","BLE00","BLE001","C","C4","C40","C400","C401","C402","C403","C404","C405","C406","C408","C409","C41","C410","C411","C413","C414","C415","C416","C417","C418","C419","C42","C420","C9","C90","C901","COM","COM8","COM81","COM812","COM818","COM819","CPY","CPY0","CPY00","CPY001","D","D1","D10","D100","D101","D102","D103","D104","D105","D106","D107","D2","D20","D200","D201","D202","D203","D204","D205","D206","D207","D208","D209","D21","D210","D211","D212","D213","D214","D215","D3","D30","D300","D301","D4","D40","D400","D401","D402","D403","D404","D405","D406","D407","D408","D409","D41","D410","D411","D412","D413","D414","D415","D416","D417","D418","D419","DJ","DJ0","DJ00","DJ001","DJ003","DJ006","DJ007","DJ008","DJ01","DJ012","DJ013","DOC","DOC2","DOC20","DOC201","DOC202","DOC4","DOC40","DOC402","DOC403","DOC5","DOC50","DOC501","DOC502","DTZ","DTZ0","DTZ00","DTZ001","DTZ002","DTZ003","DTZ004","DTZ005","DTZ006","DTZ007","DTZ01","DTZ011","DTZ012","E","E1","E10","E101","E11","E111","E112","E113","E114","E115","E116","E117","E2","E20","E201","E202","E203","E204","E21","E211","E22","E221","E222","E223","E224","E225","E226","E227","E228","E23","E231","E24","E241","E242","E25","E251","E252","E26","E261","E262","E265","E266","E27","E271","E272","E273","E274","E275","E3","E30","E301","E302","E303","E304","E305","E306","E4","E40","E401","E402","E5","E50","E501","E502","E7","E70","E701","E702","E703","E71","E711","E712","E713","E714","E72","E721","E722","E73","E731","E74","E741","E742","E743","E9","E90","E902","E99","E999","EM","EM1","EM10","EM101","EM102","EM103","ERA","ERA0","ERA00","ERA001","EXE","EXE0","EXE00","EXE001","EXE002","EXE003","EXE004","EXE005","F","F4","F40","F401","F402","F403","F404","F405","F406","F407","F5","F50","F501","F502","F503","F504","F505","F506","F507","F508","F509","F52","F521","F522","F523","F524","F525","F54","F541","F6","F60","F601","F602","F62","F621","F622","F63","F631","F632","F633","F634","F7","F70","F701","F702","F704","F706","F707","F72","F722","F8","F81","F811","F82","F821","F822","F823","F84","F841","F842","F9","F90","F901","FA","FA1","FA10","FA100","FA102","FAST","FAST0","FAST00","FAST001","FAST002","FAST003","FBT","FBT0","FBT00","FBT001","FBT002","FBT003","FIX","FIX0","FIX00","FIX001","FIX002","FIX003","FIX004","FLY","FLY0","FLY00","FLY002","FURB","FURB1","FURB10","FURB101","FURB103","FURB105","FURB11","FURB110","FURB113","FURB116","FURB118","FURB12","FURB129","FURB13","FURB131","FURB132","FURB136","FURB14","FURB140","FURB142","FURB145","FURB148","FURB15","FURB152","FURB154","FURB157","FURB16","FURB161","FURB163","FURB164","FURB166","FURB167","FURB168","FURB169","FURB17","FURB171","FURB177","FURB18","FURB180","FURB181","FURB187","FURB19","FURB192","G","G0","G00","G001","G002","G003","G004","G01","G010","G1","G10","G101","G2","G20","G201","G202","I","I0","I00","I001","I002","ICN","ICN0","ICN00","ICN001","ICN002","ICN003","INP","INP0","INP00","INP001","INT","INT0","INT00","INT001","INT002","INT003","ISC","ISC0","ISC00","ISC001","ISC002","ISC003","LOG","LOG0","LOG00","LOG001","LOG002","LOG007","LOG009","N","N8","N80","N801","N802","N803","N804","N805","N806","N807","N81","N811","N812","N813","N814","N815","N816","N817","N818","N9","N99","N999","NPY","NPY0","NPY00","NPY001","NPY002","NPY003","NPY2","NPY20","NPY201","PD","PD0","PD00","PD002","PD003","PD004","PD007","PD008","PD009","PD01","PD010","PD011","PD012","PD013","PD015","PD1","PD10","PD101","PD9","PD90","PD901","PERF","PERF1","PERF10","PERF101","PERF102","PERF2","PERF20","PERF203","PERF4","PERF40","PERF401","PERF402","PERF403","PGH","PGH0","PGH00","PGH003","PGH004","PGH005","PIE","PIE7","PIE79","PIE790","PIE794","PIE796","PIE8","PIE80","PIE800","PIE804","PIE807","PIE808","PIE81","PIE810","PL","PLC","PLC0","PLC01","PLC010","PLC0105","PLC013","PLC0131","PLC0132","PLC02","PLC020","PLC0205","PLC0206","PLC0208","PLC04","PLC041","PLC0414","PLC0415","PLC1","PLC19","PLC190","PLC1901","PLC2","PLC24","PLC240","PLC2401","PLC2403","PLC27","PLC270","PLC2701","PLC28","PLC280","PLC2801","PLC3","PLC30","PLC300","PLC3002","PLE","PLE0","PLE01","PLE010","PLE0100","PLE0101","PLE011","PLE0115","PLE0116","PLE0117","PLE0118","PLE02","PLE023","PLE0237","PLE024","PLE0241","PLE03","PLE030","PLE0302","PLE0303","PLE0304","PLE0305","PLE0307","PLE0308","PLE0309","PLE06","PLE060","PLE0604","PLE0605","PLE064","PLE0643","PLE07","PLE070","PLE0704","PLE1","PLE11","PLE113","PLE1132","PLE114","PLE1141","PLE1142","PLE12","PLE120","PLE1205","PLE1206","PLE13","PLE130","PLE1300","PLE1307","PLE131","PLE1310","PLE15","PLE150","PLE1507","PLE151","PLE1519","PLE152","PLE1520","PLE17","PLE170","PLE1700","PLE2","PLE25","PLE250","PLE2502","PLE251","PLE2510","PLE2512","PLE2513","PLE2514","PLE2515","PLE4","PLE47","PLE470","PLE4703","PLR","PLR0","PLR01","PLR012","PLR0124","PLR013","PLR0133","PLR02","PLR020","PLR0202","PLR0203","PLR0206","PLR04","PLR040","PLR0402","PLR09","PLR090","PLR0904","PLR091","PLR0911","PLR0912","PLR0913","PLR0914","PLR0915","PLR0916","PLR0917","PLR1","PLR17","PLR170","PLR1702","PLR1704","PLR171","PLR1711","PLR1714","PLR172","PLR1722","PLR173","PLR1730","PLR1733","PLR1736","PLR2","PLR20","PLR200","PLR2004","PLR204","PLR2044","PLR5","PLR55","PLR550","PLR5501","PLR6","PLR61","PLR610","PLR6104","PLR62","PLR620","PLR6201","PLR63","PLR630","PLR6301","PLW","PLW0","PLW01","PLW010","PLW0108","PLW012","PLW0120","PLW0127","PLW0128","PLW0129","PLW013","PLW0131","PLW0133","PLW017","PLW0177","PLW02","PLW021","PLW0211","PLW024","PLW0245","PLW04","PLW040","PLW0406","PLW06","PLW060","PLW0602","PLW0603","PLW0604","PLW064","PLW0642","PLW07","PLW071","PLW0711","PLW1","PLW15","PLW150","PLW1501","PLW1508","PLW1509","PLW151","PLW1510","PLW1514","PLW16","PLW164","PLW1641","PLW2","PLW21","PLW210","PLW2101","PLW29","PLW290","PLW2901","PLW3","PLW32","PLW320","PLW3201","PLW33","PLW330","PLW3301","PT","PT0","PT00","PT001","PT002","PT003","PT004","PT005","PT006","PT007","PT008","PT009","PT01","PT010","PT011","PT012","PT013","PT014","PT015","PT016","PT017","PT018","PT019","PT02","PT020","PT021","PT022","PT023","PT024","PT025","PT026","PT027","PTH","PTH1","PTH10","PTH100","PTH101","PTH102","PTH103","PTH104","PTH105","PTH106","PTH107","PTH108","PTH109","PTH11","PTH110","PTH111","PTH112","PTH113","PTH114","PTH115","PTH116","PTH117","PTH118","PTH119","PTH12","PTH120","PTH121","PTH122","PTH123","PTH124","PTH2","PTH20","PTH201","PTH202","PTH203","PTH204","PTH205","PTH206","PTH207","PYI","PYI0","PYI00","PYI001","PYI002","PYI003","PYI004","PYI005","PYI006","PYI007","PYI008","PYI009","PYI01","PYI010","PYI011","PYI012","PYI013","PYI014","PYI015","PYI016","PYI017","PYI018","PYI019","PYI02","PYI020","PYI021","PYI024","PYI025","PYI026","PYI029","PYI03","PYI030","PYI032","PYI033","PYI034","PYI035","PYI036","PYI04","PYI041","PYI042","PYI043","PYI044","PYI045","PYI046","PYI047","PYI048","PYI049","PYI05","PYI050","PYI051","PYI052","PYI053","PYI054","PYI055","PYI056","PYI057","PYI058","PYI059","PYI06","PYI062","PYI063","PYI064","PYI066","Q","Q0","Q00","Q000","Q001","Q002","Q003","Q004","RET","RET5","RET50","RET501","RET502","RET503","RET504","RET505","RET506","RET507","RET508","RSE","RSE1","RSE10","RSE102","RUF","RUF0","RUF00","RUF001","RUF002","RUF003","RUF005","RUF006","RUF007","RUF008","RUF009","RUF01","RUF010","RUF012","RUF013","RUF015","RUF016","RUF017","RUF018","RUF019","RUF02","RUF020","RUF021","RUF022","RUF023","RUF024","RUF026","RUF027","RUF028","RUF029","RUF03","RUF030","RUF031","RUF032","RUF033","RUF034","RUF1","RUF10","RUF100","RUF101","RUF2","RUF20","RUF200","S","S1","S10","S101","S102","S103","S104","S105","S106","S107","S108","S11","S110","S112","S113","S2","S20","S201","S202","S3","S30","S301","S302","S303","S304","S305","S306","S307","S308","S31","S310","S311","S312","S313","S314","S315","S316","S317","S318","S319","S32","S320","S321","S323","S324","S4","S40","S401","S402","S403","S404","S405","S406","S407","S408","S409","S41","S411","S412","S413","S415","S5","S50","S501","S502","S503","S504","S505","S506","S507","S508","S509","S6","S60","S601","S602","S603","S604","S605","S606","S607","S608","S609","S61","S610","S611","S612","S7","S70","S701","S702","SIM","SIM1","SIM10","SIM101","SIM102","SIM103","SIM105","SIM107","SIM108","SIM109","SIM11","SIM110","SIM112","SIM113","SIM114","SIM115","SIM116","SIM117","SIM118","SIM2","SIM20","SIM201","SIM202","SIM208","SIM21","SIM210","SIM211","SIM212","SIM22","SIM220","SIM221","SIM222","SIM223","SIM3","SIM30","SIM300","SIM4","SIM40","SIM401","SIM9","SIM91","SIM910","SIM911","SLF","SLF0","SLF00","SLF001","SLOT","SLOT0","SLOT00","SLOT000","SLOT001","SLOT002","T","T1","T10","T100","T2","T20","T201","T203","TCH","TCH0","TCH00","TCH001","TCH002","TCH003","TCH004","TCH005","TCH01","TCH010","TD","TD0","TD00","TD001","TD002","TD003","TD004","TD005","TD006","TD007","TID","TID2","TID25","TID251","TID252","TID253","TRY","TRY0","TRY00","TRY002","TRY003","TRY004","TRY2","TRY20","TRY201","TRY3","TRY30","TRY300","TRY301","TRY302","TRY4","TRY40","TRY400","TRY401","UP","UP0","UP00","UP001","UP003","UP004","UP005","UP006","UP007","UP008","UP009","UP01","UP010","UP011","UP012","UP013","UP014","UP015","UP017","UP018","UP019","UP02","UP020","UP021","UP022","UP023","UP024","UP025","UP026","UP027","UP028","UP029","UP03","UP030","UP031","UP032","UP033","UP034","UP035","UP036","UP037","UP038","UP039","UP04","UP040","UP041","UP042","UP043","W","W1","W19","W191","W2","W29","W291","W292","W293","W3","W39","W391","W5","W50","W505","W6","W60","W605","YTT","YTT1","YTT10","YTT101","YTT102","YTT103","YTT2","YTT20","YTT201","YTT202","YTT203","YTT204","YTT3","YTT30","YTT301","YTT302","YTT303"]},Strictness:{oneOf:[{description:"Ban imports that extend into the parent module or beyond.",type:"string",enum:["parents"]},{description:"Ban all relative imports.",type:"string",enum:["all"]}]}}};function Ar(t,e,n,r,i,a,o){try{var l=t[a](o),s=l.value}catch(d){return void n(d)}l.done?e(s):Promise.resolve(s).then(r,i)}function qv(t){return function(){var e=this,n=arguments;return new Promise(function(r,i){var a=t.apply(e,n);function o(s){Ar(a,r,i,o,l,"next",s)}function l(s){Ar(a,r,i,o,l,"throw",s)}o(void 0)})}}var Io=qs.parse("inmemory://dh-config/ruff-settings.json");function zv(){var{schemas:t=[]}=Pn.json.jsonDefaults.diagnosticsOptions;t.some(e=>e.uri==="json://ruff-schema")||Pn.json.jsonDefaults.setDiagnosticsOptions({schemas:[...t,{uri:"json://ruff-schema",fileMatch:[Io.toString()],schema:Kv}]})}function Xv(){return Ft.apply(this,arguments)}function Ft(){return Ft=qv(function*(){return yield Ki.initRuff(),"v".concat(zs.version())}),Ft.apply(this,arguments)}function Qv(t){var{text:e,isOpen:n,onClose:r,onSave:i,readOnly:a=!1,defaultSettings:o=Yi}=t,[l,s]=c.useState(!1),[d,f]=c.useState(!1),p=c.useRef(),h=c.useMemo(()=>JSON.stringify(o,null,2),[o]),{data:m}=Se(Xv),[y]=c.useState(()=>Ks.createModel(e,"json",Io)),P=c.useCallback(()=>{n&&(r(),p.current=void 0,y.dispose())},[n,r,y]),v=c.useCallback(()=>{if(n){try{var b,O;i(JSON.parse((b=(O=p.current)===null||O===void 0||(O=O.getModel())===null||O===void 0?void 0:O.getValue())!==null&&b!==void 0?b:""))}catch{}P()}},[n,P,i]),g=c.useCallback(()=>{Je(y),y.setValue(h)},[y,h]),x=c.useCallback(b=>{var O;try{JSON.parse(b),s(!0)}catch{s(!1)}f(((O=p.current)===null||O===void 0||(O=O.getModel())===null||O===void 0?void 0:O.getValue())===h)},[h]),S=Ie(x,500,{leading:!0}),E=c.useCallback(b=>{p.current=b,y.onDidChangeContent(()=>{S(y.getValue())}),zv(),S(y.getValue())},[S,y]);return n?u.jsxs(Yt,{isOpen:n,centered:!0,keyboard:!0,clickOutside:!1,toggle:P,size:"lg",className:"ruff-settings-modal",children:[u.jsxs(fi,{closeButton:!1,children:[u.jsxs("span",{className:"settings-modal-title mr-auto",children:["Ruff ",m," Settings"]}),u.jsx(ri,{href:"https://docs.astral.sh/ruff/settings/",target:"_blank",children:u.jsx(V,{kind:"ghost",onClick:ne,icon:tu,children:"Settings Docs"})}),u.jsxs(Xe,{isDisabled:d,onPress:g,children:[u.jsx(Le,{children:u.jsx(Y,{icon:nu})}),u.jsx(nt,{children:"Reset to default"})]})]}),u.jsx(Kt,{style:{height:"80vh"},children:u.jsx(ra,{onEditorInitialized:E,settings:{readOnly:a,value:e,language:"json",folding:!0,padding:{bottom:16},lineNumbers:"on",overviewRulerLanes:0,model:y}})}),u.jsx(Si,{children:a?u.jsx(V,{kind:"secondary","data-dismiss":"modal",onClick:P,children:"Close"}):u.jsxs(u.Fragment,{children:[u.jsx(V,{kind:"secondary","data-dismiss":"modal",onClick:P,children:"Cancel"}),u.jsx(V,{kind:"primary","data-dismiss":"modal",tooltip:l?void 0:"Cannot save invalid JSON",disabled:!l,onClick:v,children:"Save"})]})})]}):null}const Jv=Object.freeze(Object.defineProperty({__proto__:null,Code:id,CommandHistory:ad,CommandHistoryActions:od,CommandHistoryItem:sd,CommandHistoryItemTooltip:ld,Console:On,ConsoleConstants:ud,ConsoleHistory:cd,ConsoleHistoryItem:dd,ConsoleHistoryItemResult:pd,ConsoleHistoryResultErrorMessage:fd,ConsoleHistoryResultInProgress:hd,ConsoleInput:md,ConsoleStatusBar:gd,ConsoleUtils:yd,Editor:ra,HeapUsage:vd,LogView:bd,MonacoProviders:Ki,MonacoTheme:Pd,MonacoThemeProvider:jo,MonacoUtils:Gi,ObjectIcon:xd,RUFF_DEFAULT_SETTINGS:Yi,RuffSettingsModal:Qv,SHORTCUTS:wd,ScriptEditor:np,ScriptEditorUtils:rp,default:On},Symbol.toStringTag,{value:"Module"}));function Nt(t,e,n){return(e=Zv(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Zv(t){var e=eb(t,"string");return typeof e=="symbol"?e:e+""}function eb(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}class we{static valueForCell(e,n,r){var i="".concat(e,",").concat(n);return r!==void 0&&r&&(i="(".concat(i,")")),i}constructor(e){Nt(this,"dh",void 0),Nt(this,"irisGridUtils",void 0),this.dh=e,this.irisGridUtils=new ia(e)}makeColumn(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:we.DEFAULT_TYPE,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;return new this.dh.Column({index:r,name:e,type:n})}makeRollupTableConfig(){return new this.dh.RollupTableConfig}makeColumns(){for(var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:5,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",r=[],i=0;i<e;i+=1)r.push(this.makeColumn("".concat(n).concat(i),we.DEFAULT_TYPE,i));return r}static makeUserColumnWidths(){for(var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:5,n=new Map,r=0;r<e;r+=1)n.set(r.toString(),100);return n}makeRow(e){var n=new this.dh.Row({index:e,name:"".concat(e)});return n.get=jest.fn(r=>we.valueForCell(e,r.index)),n}makeFilter(){return new this.dh.FilterCondition}makeSort(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.makeColumn();return new this.dh.Sort({column:e})}hydrateSort(e,n){return this.irisGridUtils.hydrateDhSort(n,e)}makeTable(){var{columns:e=this.makeColumns(),size:n=1e9,sort:r=[],layoutHints:i={}}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=new this.dh.Table({columns:e,size:n,sort:r});return a.copy=jest.fn(()=>Promise.resolve(a)),a.freeze=jest.fn(()=>Promise.resolve(a)),a.layoutHints=i,a}makeTreeTable(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.makeColumns(),n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1e9,a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:[],o=arguments.length>5?arguments[5]:void 0,l=new this.dh.TreeTable({columns:e,aggregatedColumns:n,groupedColumns:r,size:i,sort:a,layoutHints:o});return l.copy=jest.fn(()=>Promise.resolve(l)),l}static makeInputTable(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],{keys:r,values:i}=[...e,...n].reduce((a,o)=>(e.includes(o)?a.keys.push(o.name):a.values.push(o.name),a),{keys:[],values:[]});return{keys:r,values:i}}makeSubscription(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.makeTable();return new this.dh.TableViewportSubscription({table:e})}makeModel(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.makeTable(),n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,{dh:i}=this;return new ip(i,e,n??new tn(i),r)}}Nt(we,"DEFAULT_TYPE","java.lang.String");const tb=Object.freeze(Object.defineProperty({__proto__:null,AdvancedSettings:ap,AdvancedSettingsType:op,AggregationEdit:Mf,AggregationOperation:sp,AggregationUtils:lp,Aggregations:$f,BarIcon:Uf,ChartBuilder:Bf,ColumnHeaderGroup:up,CustomColumnBuilder:Wf,DownloadServiceWorkerUtils:Hf,FormatColumnWhereIcon:Vf,FormatRowWhereIcon:Gf,HistogramIcon:Yf,InputEditor:Kf,IrisGrid:En,IrisGridCacheUtils:cp,IrisGridCellOverflowMouseHandler:qf,IrisGridCellRendererUtils:zf,IrisGridColumnSelectMouseHandler:Xf,IrisGridColumnTooltipMouseHandler:Qf,IrisGridContextMenuHandler:Jf,IrisGridCopyCellMouseHandler:Zf,IrisGridDataSelectMouseHandler:eh,IrisGridFilterMouseHandler:th,IrisGridMetricCalculator:nh,IrisGridModel:dp,IrisGridModelFactory:pp,IrisGridPartitionedTableModel:fp,IrisGridPartitionedTableMouseHandler:rh,IrisGridRenderer:ih,IrisGridRowTreeMouseHandler:ah,IrisGridSortMouseHandler:oh,IrisGridTableModel:hp,IrisGridTableModelTemplate:mp,IrisGridTestUtils:we,IrisGridThemeContext:sh,IrisGridThemeProvider:ba,IrisGridTokenMouseHandler:lh,IrisGridTreeTableModel:gp,IrisGridUtils:ia,LineIcon:uh,OptionType:ch,PendingMouseHandler:dh,PieIcon:ph,RollupRows:fh,SHORTCUTS:hh,ScatterIcon:mh,TableCsvExporter:gh,TableSaver:yh,VisibilityOrderingBuilder:vh,createDefaultIrisGridTheme:bh,default:En,isColumnHeaderGroup:yp,isIrisGridTableModelTemplate:vp,isIrisGridTreeTableModel:bp,isPanelStateV1:Pp,isPanelStateV2:xp,isPartitionedGridModel:wp,isPartitionedGridModelProvider:Sp,isUITreeRow:Op},Symbol.toStringTag,{value:"Module"}));var ko={react:$,"react-dom":Zs,redux:Js,"react-redux":Qs,"@adobe/react-spectrum":Xs,"@deephaven/auth-plugins":Hv,"@deephaven/chart":Yv,"@deephaven/components":py,"@deephaven/console":Jv,"@deephaven/dashboard":bv,"@deephaven/dashboard-core-plugins":Ep,"@deephaven/icons":ru,"@deephaven/iris-grid":tb,"@deephaven/jsapi-bootstrap":vy,"@deephaven/jsapi-components":mv,"@deephaven/jsapi-utils":jy,"@deephaven/log":B,"@deephaven/plugin":xv,"@deephaven/react-hooks":Xh},nb=tl.createRequires(ko),rb=el({requires:nb});function Fr(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function Nr(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Fr(Object(n),!0).forEach(function(r){ib(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Fr(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function ib(t,e,n){return(e=ab(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function ab(t){var e=ob(t,"string");return typeof e=="symbol"?e:e+""}function ob(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Mr(t,e,n,r,i,a,o){try{var l=t[a](o),s=l.value}catch(d){return void n(d)}l.done?e(s):Promise.resolve(s).then(r,i)}function yn(t){return function(){var e=this,n=arguments;return new Promise(function(r,i){var a=t.apply(e,n);function o(s){Mr(a,r,i,o,l,"next",s)}function l(s){Mr(a,r,i,o,l,"throw",s)}o(void 0)})}}var se=B.module("@deephaven/app-utils.PluginUtils");function sb(t){return Mt.apply(this,arguments)}function Mt(){return Mt=yn(function*(t){var e=yield rb(t);return e}),Mt.apply(this,arguments)}function lb(t){return $t.apply(this,arguments)}function $t(){return $t=yn(function*(t){var e=yield fetch(t);if(!e.ok)throw new Error(e.statusText);try{return yield e.json()}catch{throw new Error("Could not be parsed as JSON")}}),$t.apply(this,arguments)}function ub(t){return typeof t=="object"&&t!=null&&typeof t.default=="object"}function cb(t){return Ot(t)?t:ub(t)&&Ot(t.default)?t.default:Bi(t)?t:null}function db(t){return Ut.apply(this,arguments)}function Ut(){return Ut=yn(function*(t){se.debug("Loading plugins...");try{var e=yield lb("".concat(t,"/manifest.json"));if(!Array.isArray(e.plugins))throw new Error("Plugin manifest JSON does not contain plugins array");se.debug("Plugin manifest loaded:",e);for(var n=[],r=0;r<e.plugins.length;r+=1){var{name:i,main:a}=e.plugins[r],o="".concat(t,"/").concat(i,"/").concat(a);n.push(sb(o))}for(var l=yield Promise.allSettled(n),s=new Map,d=0;d<l.length;d+=1){var f=l[d],{name:p,version:h}=e.plugins[d];if(f.status==="fulfilled"){var m=cb(f.value);m==null?se.error("Plugin '".concat(p,"' is missing an exported value.")):s.set(p,Nr(Nr({},m),{},{version:h}))}else se.error("Unable to load plugin '".concat(p,"'"),f.reason)}return se.info("Plugins loaded:",s),s}catch(y){return se.error("Unable to load plugins:",y),new Map}}),Ut.apply(this,arguments)}function pb(t){var e,n;return(e=(n=t.get("AuthHandlers"))===null||n===void 0?void 0:n.split(","))!==null&&e!==void 0?e:[]}function fb(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:new Map,r=pb(e),i=[...t.entries(),...n.entries()].filter(s=>{var[,d]=s;return Ui(d)||St(d)}).map(s=>{var[d,f]=s;return St(f)?{type:$i.AUTH_PLUGIN,name:d,component:f.AuthPlugin.Component,isAvailable:f.AuthPlugin.isAvailable}:f}),a=i.filter(s=>{var{isAvailable:d}=s;return d(r,e)});if(a.length===0)throw new Error("No login plugins found, please register a login plugin for auth handlers: ".concat(r));a.length>1&&se.warn("More than one login plugin available, will use the first one: ",a.map(s=>{var{name:d}=s;return d}).join(", "));var{name:o,component:l}=a[0];return se.info("Using LoginPlugin",o),l}var hb=ii.createRequires(()=>ko),Yb=ii.createRemoteComponent({requires:hb});function $r(t,e,n,r,i,a,o){try{var l=t[a](o),s=l.value}catch(d){return void n(d)}l.done?e(s):Promise.resolve(s).then(r,i)}function mb(t){return function(){var e=this,n=arguments;return new Promise(function(r,i){var a=t.apply(e,n);function o(s){$r(a,r,i,o,l,"next",s)}function l(s){$r(a,r,i,o,l,"throw",s)}o(void 0)})}}function gb(t){var{pluginsUrl:e,getCorePlugins:n,children:r}=t,[i,a]=c.useState(null);return c.useEffect(function(){var l=!1;function s(){return d.apply(this,arguments)}function d(){return d=mb(function*(){var f,p=(f=yield n==null?void 0:n())!==null&&f!==void 0?f:[],h=yield db(e);if(!l){var m=p.map(y=>[y.name,y]);a(new Map([...m,...h]))}}),d.apply(this,arguments)}return s(),()=>{l=!0}},[e,n]),u.jsx(ot.Provider,{value:i,children:r})}function yb(){var t=hn();return c.useEffect(function(){t.postMessage(hi(fn))},[t]),null}function Ur(t,e,n,r,i,a,o){try{var l=t[a](o),s=l.value}catch(d){return void n(d)}l.done?e(s):Promise.resolve(s).then(r,i)}function vb(t){return function(){var e=this,n=arguments;return new Promise(function(r,i){var a=t.apply(e,n);function o(s){Ur(a,r,i,o,l,"next",s)}function l(s){Ur(a,r,i,o,l,"throw",s)}o(void 0)})}}var bb=new Map([["@deephaven/auth-plugins.AuthPluginParent",{AuthPlugin:xo}],["@deephaven/auth-plugins.AuthPluginPsk",{AuthPlugin:Eo}],["@deephaven/auth-plugins.AuthPluginAnonymous",{AuthPlugin:Po}]]);function Pb(t){var{children:e}=t,n=Ae(),r=c.useContext(ot),[i,a]=c.useState(),[o,l]=c.useState();c.useEffect(function(){var p=!1;function h(){return m.apply(this,arguments)}function m(){return m=vb(function*(){try{var y=yield n.getAuthConfigValues();p||a(new Map(y))}catch(P){p||l(P)}}),m.apply(this,arguments)}return h(),()=>{p=!0}},[n]);var s=c.useMemo(()=>{if(!(r==null||i==null))try{return fb(r,i,bb)}catch(f){l(f)}},[i,r]),d=s==null||i==null;return d||o!=null?u.jsx(me,{isLoading:d&&o==null,errorMessage:ke(o),"data-testid":"auth-bootstrap-loading-error"}):u.jsx(s,{authConfigValues:i,children:u.jsxs(u.Fragment,{children:[u.jsx(yb,{}),e]})})}function Br(t,e,n,r,i,a,o){try{var l=t[a](o),s=l.value}catch(d){return void n(d)}l.done?e(s):Promise.resolve(s).then(r,i)}function Wr(t){return function(){var e=this,n=arguments;return new Promise(function(r,i){var a=t.apply(e,n);function o(s){Br(a,r,i,o,l,"next",s)}function l(s){Br(a,r,i,o,l,"throw",s)}o(void 0)})}}var Ee=B.module("@deephaven/app-utils.ConnectionBootstrap");function xb(t){var{children:e}=t,n=ge(),r=Ae(),[i,a]=c.useState(),[o,l]=c.useState(),[s,d]=c.useState("connecting"),f=s==="failed",p=s==="shutdown",h=s==="reconnecting",m=s==="not_connecting";c.useEffect(function(){var x=!1;function S(){return E.apply(this,arguments)}function E(){return E=Wr(function*(){try{var b=yield r.getAsIdeConnection();if(x)return;l(b),d("connected")}catch(O){if(x)return;a(O),d("not_connecting")}}),E.apply(this,arguments)}return S(),()=>{x=!0}},[n,r]),c.useEffect(function(){if(o==null||p)return;function x(E){var{detail:b}=E;Ee.info("Disconnect","".concat(JSON.stringify(b))),d("reconnecting")}var S=o.addEventListener(n.IdeConnection.EVENT_DISCONNECT,x);return S},[n,o,p]),c.useEffect(function(){if(o==null||p)return;function x(E){var{detail:b}=E;Ee.info("Reconnect","".concat(JSON.stringify(b))),d("connected")}var S=o.addEventListener(n.CoreClient.EVENT_RECONNECT,x);return S},[n,o,p]),c.useEffect(function(){if(o==null)return;function x(E){var{detail:b}=E;Ee.info("Shutdown","".concat(JSON.stringify(b))),a("Server shutdown: ".concat(b??"Unknown reason")),d("shutdown")}var S=o.addEventListener(n.IdeConnection.EVENT_SHUTDOWN,x);return S},[n,o]),c.useEffect(function(){if(o==null||p)return;function x(E){var{detail:b}=E;Ee.warn("Reconnect authentication failed","".concat(JSON.stringify(b))),a("Reconnect authentication failed: ".concat(b??"Unknown reason")),d("failed")}var S=o.addEventListener(n.CoreClient.EVENT_RECONNECT_AUTH_FAILED,x);return S},[n,o,p]);var y=c.useCallback(function(){var g=Wr(function*(x){if(Je(o,"No connection available to fetch object with"),typeof x=="string")throw new Error("No URI resolvers available in Core");return o.getObject(Ii(x))});return function(x){return g.apply(this,arguments)}}(),[o]),P=c.useMemo(()=>({subscribe:(g,x)=>(x({fetch:()=>y(g),status:"ready"}),()=>{})}),[y]);function v(){Ee.info("Refreshing application"),window.location.reload()}return p||s==="connecting"||m?u.jsx(me,{"data-testid":"connection-bootstrap-loading",isLoading:i==null,errorMessage:i!=null?"".concat(i):void 0}):u.jsx(pu.Provider,{value:o??null,children:u.jsx(ji.Provider,{value:y,children:u.jsxs(ut.Provider,{value:P,children:[e,u.jsx(Va,{isOpen:h,debounceMs:1e3,children:u.jsx(Ga,{icon:iu,title:u.jsxs(u.Fragment,{children:[u.jsx(Qe,{})," Attempting to reconnect..."]}),subtitle:"Please check your network connection."})}),u.jsx(wi,{confirmButtonText:"Refresh",onConfirm:v,isOpen:f,headerText:"Authentication failed",bodyText:"Credentials are invalid. Please refresh your browser to try and reconnect."})]})})})}function Kb(t){return new URL(t,"".concat(window.location))}function wb(){var t=new URLSearchParams(window.location.search);return t.get("envoyPrefix")}function Sb(){var t=wb();return t!=null?{headers:{"envoy-prefix":t}}:{headers:{}}}function Hr(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function Vr(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Hr(Object(n),!0).forEach(function(r){Ob(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Hr(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function Ob(t,e,n){return(e=Eb(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Eb(t){var e=Cb(t,"string");return typeof e=="symbol"?e:e+""}function Cb(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Tb(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return{action:()=>{Fh(au,Vr(Vr({},t),{},{userAgent:navigator.userAgent}),aa.getState())},shortcut:at.EXPORT_LOGS,isGlobal:e}}function jb(t){var{children:e}=t,n=fu(),r=c.useContext(yi),i=c.useContext(et),a=To(n,r,i);return u.jsx(gi.Provider,{value:a,children:e})}function Ib(t){var{children:e}=t,n=Ni(Sd),r=c.useContext(ot),i=yo(r),a=Vt();return u.jsx(Ei,{themes:i,waitForActivation:a,children:u.jsx(Vi,{children:u.jsx(jo,{children:u.jsx(ba,{density:n.gridDensity,children:e})})})})}function qb(t){var{fontClassNames:e,pluginsUrl:n,getCorePlugins:r,serverUrl:i,logMetadata:a,children:o}=t,l=c.useMemo(()=>Sb(),[]),[s,d]=c.useState(0),f=c.useCallback(()=>{},[]),p=c.useCallback(()=>{requestAnimationFrame(()=>{d(m=>m+1)})},[]);mn(f,p);var h=c.useMemo(()=>[Tb(a,!0)],[a]);return u.jsxs(nl,{store:aa,children:[u.jsx(Aa,{fontClassNames:e,children:u.jsx(gb,{getCorePlugins:r,pluginsUrl:n,children:u.jsx(Ib,{children:u.jsxs(mi,{serverUrl:i,options:l,children:[u.jsx(Pb,{children:u.jsx(hu,{children:u.jsx(jb,{children:u.jsx(xb,{children:u.jsx(Fa,{children:o})})})})}),u.jsx(it,{actions:h})]},s)})})}),u.jsx(Ya,{})]})}function Gr(t,e,n,r,i,a,o){try{var l=t[a](o),s=l.value}catch(d){return void n(d)}l.done?e(s):Promise.resolve(s).then(r,i)}function kb(t){return function(){var e=this,n=arguments;return new Promise(function(r,i){var a=t.apply(e,n);function o(s){Gr(a,r,i,o,l,"next",s)}function l(s){Gr(a,r,i,o,l,"throw",s)}o(void 0)})}}function ee(t,e,n){return(e=_b(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function _b(t){var e=Rb(t,"string");return typeof e=="symbol"?e:e+""}function Rb(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var Ce=B.module("GrpcFileStorageTable");class De{constructor(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:n;ee(this,"storageService",void 0),ee(this,"baseRoot",void 0),ee(this,"root",void 0),ee(this,"currentSize",0),ee(this,"currentViewport",void 0),ee(this,"listeners",[]),ee(this,"viewportUpdatePromise",void 0),ee(this,"currentViewportData",void 0),ee(this,"childTables",new Map),this.storageService=e,this.baseRoot=n,this.root=r,r===n&&(this.doRefresh=je(this.doRefresh.bind(this),De.REFRESH_DEBOUNCE))}removeBaseRoot(e){return fe.removeRoot(this.baseRoot,e)}getViewportData(){var e;return this.viewportUpdatePromise||this.refreshInternal(),(e=this.viewportUpdatePromise)!==null&&e!==void 0?e:Promise.resolve({items:[],offset:0})}getSnapshot(e){throw new Error("Method not implemented.")}get size(){return this.currentSize}setExpanded(e,n){var r=e.split("/"),i=r.shift();if((i===void 0||i==="")&&(i=r.shift()),i===void 0||i==="")throw new Error("Invalid path: ".concat(e));var a=r.join("/");if(n){if(!this.childTables.has(i)){var o=new De(this.storageService,this.baseRoot,"".concat(this.root,"/").concat(i));this.childTables.set(i,o)}if(a){var l=this.childTables.get(i);l==null||l.setExpanded(a,n)}}else if(this.childTables.has(i))if(a){var s=this.childTables.get(i);s==null||s.setExpanded(a,n)}else this.childTables.delete(i);this.currentViewport&&this.refreshInternal()}collapseAll(){this.childTables.clear(),this.currentViewport&&this.refreshInternal()}setSearch(e){throw new Error("Method not implemented.")}setViewport(e){this.currentViewport=e,this.refreshInternal()}setFilters(){throw new Error("Method not implemented.")}setSorts(){throw new Error("Method not implemented.")}setReversed(){throw new Error("Method not implemented.")}close(){this.listeners=[]}onUpdate(e){return this.listeners=[...this.listeners,e],()=>{this.listeners=this.listeners.filter(n=>n!==e)}}doRefresh(e){Ce.debug2("doRefresh",this.root),e(this.fetchData())}refresh(){var e;Ce.debug2("refresh",this.root),(e=this.viewportUpdatePromise)===null||e===void 0||e.cancel();var n=new Promise(i=>{this.doRefresh(i)}),r=he.makeCancelable(n.then(i=>{if(this.viewportUpdatePromise!==r)throw new Wi;return this.currentViewportData=i,this.sendUpdate(),i}));r.catch(i=>{he.isCanceled(i)||Ce.error("Error updating viewport",i)}),this.viewportUpdatePromise=r}refreshInternal(){try{this.refresh()}catch(e){he.isCanceled(e)||Ce.error("Unable to refresh data",e)}}fetchData(){var e=this;return kb(function*(){var{currentViewport:n}=e;if(!n)throw new Error("No viewport set");for(var r=yield e.storageService.listItems(e.root),i=r.map(p=>({type:p.type,filename:e.removeBaseRoot(p.filename),basename:p.basename,id:e.removeBaseRoot(p.filename),isExpanded:p.type==="directory"?e.childTables.has(p.basename):void 0})).sort((p,h)=>p.type!==h.type?p.type==="directory"?-1:1:p.basename.localeCompare(h.basename)),a=0;a<i.length;a+=1){var o=i[a],{basename:l,filename:s}=o;if(s===e.removeBaseRoot("".concat(e.root,"/").concat(l))&&o.type==="directory"){var d=e.childTables.get(l);if(d!=null){d.setViewport({top:0,bottom:n.bottom-a});var f=yield d.getViewportData();i.splice(a+1,0,...f.items)}}}return e.currentSize=i.length,Ce.debug2(e.root,"items",i,n),i=i.slice(n.top,n.bottom),{items:i,offset:n.top}})()}sendUpdate(){for(var e,{listeners:n}=this,r=(e=this.currentViewportData)!==null&&e!==void 0?e:{items:[],offset:0},i=0;i<n.length;i+=1)n[i](r)}}ee(De,"REFRESH_DEBOUNCE",50);function Yr(t,e,n,r,i,a,o){try{var l=t[a](o),s=l.value}catch(d){return void n(d)}l.done?e(s):Promise.resolve(s).then(r,i)}function ae(t){return function(){var e=this,n=arguments;return new Promise(function(r,i){var a=t.apply(e,n);function o(s){Yr(a,r,i,o,l,"next",s)}function l(s){Yr(a,r,i,o,l,"throw",s)}o(void 0)})}}function ve(t,e,n){return(e=Db(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Db(t){var e=Lb(t,"string");return typeof e=="symbol"?e:e+""}function Lb(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var Ab=B.module("GrpcFileStorage");class vn{constructor(e,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"";ve(this,"dh",void 0),ve(this,"storageService",void 0),ve(this,"tables",[]),ve(this,"root",void 0),ve(this,"refreshTables",rl(()=>{this.tables.forEach(i=>i.refresh())},vn.REFRESH_THROTTLE)),this.dh=e,this.storageService=n,this.root=r}removeRoot(e){return fe.removeRoot(this.root,e)}addRoot(e){return fe.addRoot(this.root,e)}createDirectory(e){var n=this;return ae(function*(){return yield n.storageService.createDirectory(n.addRoot(e)),n.refreshTables(),{type:"directory",id:e,filename:e,basename:fe.getBaseName(e)}})()}getTable(){var e=this;return ae(function*(){var n=new De(e.storageService,e.root);return e.tables.push(n),n})()}saveFile(e){var n=this;return ae(function*(){var r=n.dh.storage.FileContents.text(e.content);return yield n.storageService.saveFile(n.addRoot(e.filename),r,!0),n.refreshTables(),e})()}loadFile(e){var n=this;return ae(function*(){var r=yield n.storageService.loadFile(n.addRoot(e)),i=yield r.text();return{filename:e,basename:fe.getBaseName(e),content:i}})()}copyFile(e,n){var r=this;return ae(function*(){var i=yield r.storageService.loadFile(r.addRoot(e));yield r.storageService.saveFile(r.addRoot(n),i,!1),r.refreshTables()})()}deleteFile(e){var n=this;return ae(function*(){yield n.storageService.deleteItem(n.addRoot(e)),n.refreshTables()})()}moveFile(e,n){var r=this;return ae(function*(){yield r.storageService.moveItem(r.addRoot(e),r.addRoot(n)),r.refreshTables()})()}info(e){var n=this;return ae(function*(){var r=yield n.storageService.listItems(n.addRoot(fe.getPath(e)),fe.getBaseName(e));if(r.length===0)throw new Od;if(r.length>1)throw Ab.error("More than one matching file found, should never happen.",r),new Error("More than one matching file found");var i=r[0];if(!Ed(i.type))throw new Error("Unexpected file type: ".concat(i.type));return{filename:n.removeRoot(i.filename),basename:i.basename,id:n.removeRoot(i.filename),type:i.type}})()}}ve(vn,"REFRESH_THROTTLE",150);export{qb as AppBootstrap,Qb as AppDashboards,Pb as AuthBootstrap,xb as ConnectionBootstrap,pu as ConnectionContext,Jb as DEFAULT_LAYOUT_CONFIG,Zb as DEFAULT_LAYOUT_CONFIG_NO_CONSOLE,vn as GrpcFileStorage,De as GrpcFileStorageTable,e0 as GrpcLayoutStorage,t0 as LocalWorkspaceStorage,gb as PluginsBootstrap,Yb as RemoteComponent,Ib as ThemeBootstrap,n0 as UserLayoutUtils,Tb as createExportLogsContextAction,r0 as exportLayout,pb as getAuthHandlers,fb as getAuthPluginComponent,Kb as getBaseUrl,Sb as getConnectOptions,i0 as getDefaultLayout,wb as getEnvoyPrefix,cb as getPluginModuleValue,a0 as isLayoutV1,o0 as isLayoutV2,lb as loadJson,sb as loadModulePlugin,db as loadModulePlugins,s0 as normalizeLayout,l0 as useConnection,fu as useServerConfig,u0 as useUser};
84
+ //# sourceMappingURL=index-S6ypQ8vd.js.map