@deephaven/embed-widget 1.1.0 → 1.1.1-beta.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/assets/{App-DAgAtWCH.js → App-B4237Rfs.js} +2 -2
- package/build/assets/{App-DAgAtWCH.js.map → App-B4237Rfs.js.map} +1 -1
- package/build/assets/{Chart-qriEV-9V.js → Chart-DKo6JHe5.js} +2 -2
- package/build/assets/{Chart-qriEV-9V.js.map → Chart-DKo6JHe5.js.map} +1 -1
- package/build/assets/{IrisGrid-CYybSB6J.js → IrisGrid-B7GJURdX.js} +3 -3
- package/build/assets/IrisGrid-B7GJURdX.js.map +1 -0
- package/build/assets/{IrisGridThemeProvider-B4AYoMew.js → IrisGridThemeProvider-DbbOy1p_.js} +5 -5
- package/build/assets/IrisGridThemeProvider-DbbOy1p_.js.map +1 -0
- package/build/assets/{LocalWorkspaceStorage-DzqiSO69.js → LocalWorkspaceStorage-OkFWE-95.js} +2 -2
- package/build/assets/{LocalWorkspaceStorage-DzqiSO69.js.map → LocalWorkspaceStorage-OkFWE-95.js.map} +1 -1
- package/build/assets/{LogPanel-DhlW2KPe.js → LogPanel-D_aEK-rM.js} +2 -2
- package/build/assets/{LogPanel-DhlW2KPe.js.map → LogPanel-D_aEK-rM.js.map} +1 -1
- package/build/assets/{MarkdownEditor-DyOYK3DP.js → MarkdownEditor-BwhDSgnl.js} +2 -2
- package/build/assets/{MarkdownEditor-DyOYK3DP.js.map → MarkdownEditor-BwhDSgnl.js.map} +1 -1
- package/build/assets/{MarkdownNotebook-BhYEYF2b.js → MarkdownNotebook-DJIIq2wZ.js} +2 -2
- package/build/assets/{MarkdownNotebook-BhYEYF2b.js.map → MarkdownNotebook-DJIIq2wZ.js.map} +1 -1
- package/build/assets/{index-HppPbzSh.js → index-BamkMMOH.js} +4 -4
- package/build/assets/index-BamkMMOH.js.map +1 -0
- package/build/assets/{index-su8-Y4m1.js → index-C_5T8Vok.js} +5 -5
- package/build/assets/{index-su8-Y4m1.js.map → index-C_5T8Vok.js.map} +1 -1
- package/build/assets/{index-C1ckEaGN.js → index-WrKLdkaP.js} +3 -3
- package/build/assets/{index-C1ckEaGN.js.map → index-WrKLdkaP.js.map} +1 -1
- package/build/index.html +1 -1
- package/package.json +17 -17
- package/build/assets/IrisGrid-CYybSB6J.js.map +0 -1
- package/build/assets/IrisGridThemeProvider-B4AYoMew.js.map +0 -1
- package/build/assets/index-HppPbzSh.js.map +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import{r as c,K as U,O as Co,F as u,P as jo,Q as ze,S as Io,T as _o,U as ko,D as Nt,V as Ro,I as F,W as Mt,X as Hr,Y as Do,Z as Lo,a0 as Ao,a1 as Fo,a2 as pt,a3 as No,a4 as Yr,a5 as Xe,a6 as Le,J as Z,a7 as Gr,a8 as Kr,a9 as $t,aa as qr,ab as zr,ac as ft,ad as Mo,ae as je,af as M,ag as Xr,H as Qr,ah as Jr,ai as $o,aj as Uo,ak as Bo,al as Zr,am as Wo,an as Vo,ao as Ho,ap as Yo,aq as Go,ar as Ko,as as qo,at as zo,au as Xo,av as Qo,aw as Jo,ax as Zo,ay as es,az as ts,aA as ns,aB as rs,aC as is,aD as as,aE as os,aF as ss,aG as ls,aH as us,aI as cs,aJ as ds,aK as ei,aL as ps,aM as fs,aN as hs,aO as ms,aP as gs,aQ as ys,aR as vs,aS as bs,aT as Ps,aU as xs,aV as ws,aW as Os,aX as Ss,aY as Es,aZ as Ts,a_ as Cs,a$ as js,b0 as Is,b1 as _s,b2 as ks,b3 as Rs,b4 as Ds,N as Ls,b5 as As,b6 as Fs,b7 as Ns,b8 as Ms,b9 as $s,ba as Us,bb as ht,L as Bs,M as Ws,bc as Vs,bd as Hs,be as vn,bf as Ys,R as Gs,bg as Ks,bh as qs,bi as zs,bj as Xs,bk as Qs,bl as ti,bm as Js,bn as Zs}from"./vendor-CiEcCTfT.js";import{i as ni,L as V,b as Ut,p as ri,r as ii,M as ai,c as oi,g as Bt,v as si,d as Wt,e as Vt,f as Qe,h as el,j as tl,k as nl,l as rl,m as il,n as li,o as al,q as ol,s as ui,t as Je,u as sl,T as mt,C as ll,D as ul,w as cl,x as dl,y as pl,z as fl,A as hl,E as ml,a as ge,B as gl,F as ci,N as yl,P as vl,S as bl,G as Pl,H as xl,I as wl,J as Ol,W as Sl,K as El,O as Tl,Q as Cl,R as jl,U as Il,V as _l,X as kl,Y as Rl,Z as Dl,_ as Ll,$ as Al,a0 as Fl,a1 as Nl,a2 as Ml,a3 as $l,a4 as Ul,a5 as Bl,a6 as Wl,a7 as Vl,a8 as Hl,a9 as Yl,aa as Gl,ab as Ht,ac as Kl,ad as Yt,ae as Gt,af as ql,ag as di,ah as zl,ai as Xl,aj as Ql,ak as Jl,al as Zl,am as eu}from"./index-C1ckEaGN.js";import{e as Ze,C as pi,g as tu,a as Ae,F as nu,f as ru,h as iu,d as au,U as et,i as fi,j as hi,D as bn,k as ou,l as su,c as lu,S as uu}from"./LocalWorkspaceStorage-DzqiSO69.js";import{A as Gb,p as Kb,q as qb,G as zb,L as Xb,m as Qb,t as Jb,s as Zb,o as e0,n as t0,r as n0,u as r0,b as i0}from"./LocalWorkspaceStorage-DzqiSO69.js";import{k as cu,l as du,m as pu,n as Ie,o as fu,p as hu,q as mu,t as gu,v as tt,w as nt,x as yu,T as Fe,P as Kt,C as ce,y as me,z as mi,A as Ye,D as gi,r as fe,M as Y,K as z,R as Pn,I as gt,B as K,F as yt,G as qt,H as yi,J as vu,c as bu,L as vi,N as Pu,O as bi,Q as Pi,U as xi,S as xu,V as wu,W as Ou,X as wi,Y as Su,Z as Eu,_ as Tu,$ as Oi,a0 as Cu,a1 as ju,a2 as Iu,a3 as Si,a4 as _u,a5 as Ei,g as ku,a6 as Ru,a7 as Du,a8 as Lu,a9 as Ti,u as Se,aa as Au,ab as Fu,ac as Nu,ad as Mu,ae as $u,af as Uu,E as Bu,ag as Ci,ah as ji,ai as Ii,aj as _i,ak as rt,al as Wu,am as ki,an as Vu,ao as vt,ap as Hu,aq as Ri,ar as Yu,as as bt,at as Gu,au as Ku,av as qu,aw as _e,ax as Di,ay as Li,az as zu,aA as Ai,aB as Xu,aC as Qu,aD as Fi,aE as Ni,aF as Mi,s as $i,aG as xn,aH as Ju,aI as Zu,aJ as ec,aK as tc,aL as nc,aM as rc,aN as ic,aO as ac,aP as oc,aQ as sc,aR as lc,aS as uc,aT as cc,aU as dc,aV as pc,aW as fc,aX as hc,aY as mc,aZ as gc,a_ as yc,a$ as vc,b0 as bc,e as Pc,b as xc,b1 as wc,b2 as Oc,b3 as Sc,b4 as Ec,b5 as Tc,b6 as Cc,b7 as jc,b8 as Ic,b9 as _c,ba as kc,bb as Rc,bc as Dc,bd as Lc,be as Ac,bf as Fc,bg as Nc,bh as Ui,bi as Mc,bj as $c,a as Uc,bk as Bc,bl as Wc,bm as Vc,bn as Hc,bo as Yc,bp as Gc,bq as Kc,br as qc,bs as Bi,bt as Wi,bu as Vi,bv as wn,bw as zc,bx as Xc,by as Qc,bz as Jc,bA as Zc,bB as ed,bC as td,bD as nd,bE as rd,bF as id,bG as ad,bH as od,bI as sd,bJ as ld,bK as ud,bL as cd,bM as dd,bN as pd,bO as fd,bP as hd,bQ as he,bR as md,bS as gd}from"./LogPanel-DhlW2KPe.js";import{u as yd,C as Hi,F as zt,a as vd,S as bd,b as Yi,D as Pd,B as xd,c as wd,d as Od,e as Sd,f as Xt,g as Pt,I as Ed,h as Td,T as Cd,i as jd,j as Qt,k as Id,l as Gi,m as Ki,n as _d,o as qi,p as Jt,q as zi,r as Xi,s as kd,t as Rd,v as Dd,w as Ld,x as Ad,y as Qi,z as Fd,A as Nd,E as Md,P as $d,G as Ud,H as Bd,J as Ji,K as Zi,L as Wd,M as Vd,N as Hd,O as Yd,Q as Gd,R as ea,U as Kd,V as qd,W as zd,X as ta,Y as Xd,Z as Qd,_ as Jd,$ as On,a0 as Zd,a1 as ep,a2 as tp,a3 as np,a4 as rp,a5 as ip,a6 as ap,a7 as op,a8 as sp,a9 as lp,aa as up,ab as cp,ac as dp,ad as pp,ae as fp,af as hp,ag as mp,ah as gp,ai as yp,aj as vp,ak as bp,al as na}from"./index-su8-Y4m1.js";import{D as Pp}from"./DownsamplingError-CG8EVVqo.js";import{e as qe,c as xp,d as wp,a as Op,f as Sp,b as Ep,g as Tp,h as Cp,i as jp,j as ra,u as Ip,k as _p,l as kp,m as Rp,n as Oe,o as Dp,p as Ge,q as xt,r as ia,s as Zt,t as en,w as aa,v as oa,x as J,T as it,y as tn,A as nn,M as rn,D as sa,z as Lp,B as wt,C as Ap,E as Fp,F as Np,G as Mp,H as $p,I as Up,J as Bp,K as Wp,L as Vp,N as la,O as Hp,P as Yp,Q as Gp,R as Kp,S as ua,U as qp,V as zp,W as Xp,X as Qp,Y as Jp,Z as Zp,_ as ca,$ as ef,a0 as tf,a1 as nf,a2 as rf,a3 as af,a4 as of,a5 as sf,a6 as lf,a7 as uf,a8 as cf,a9 as df,aa as pf,ab as ff,ac as hf,ad as mf,ae as da,af as gf,ag as yf,ah as vf,ai as bf,aj as Pf,ak as xf,al as Ke,am as wf,an as pa,ao as Of,ap as an,aq as pe,ar as Sn,as as fa,at as ha,au as Sf,av as Ef,aw as Tf,ax as Cf,ay as jf,az as If,aA as _f,aB as kf,aC as Rf,aD as Df,aE as Lf,aF as Af,aG as Ff,aH as Nf,aI as Mf,aJ as $f,aK as Uf,aL as Bf,aM as Wf,aN as Vf,aO as Hf,aP as Yf,aQ as Gf,aR as Kf,aS as qf,aT as zf,aU as Xf,aV as Qf,aW as Jf,aX as Zf,aY as eh,aZ as ma,a_ as th,a$ as nh,b0 as rh,b1 as ih,b2 as ah,b3 as oh,b4 as sh,b5 as lh,b6 as uh,b7 as ch,b8 as dh,b9 as ph}from"./IrisGridThemeProvider-B4AYoMew.js";import{m as fh,u as hh}from"./useMergeRef-D2wjRM4J.js";import"./helpers-BosuxZz1.js";var mh=["children","keepMounted"];function En(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 Tn(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?En(Object(n),!0).forEach(function(r){gh(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):En(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function gh(t,e,n){return(e=yh(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function yh(t){var e=vh(t,"string");return typeof e=="symbol"?e:e+""}function vh(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function bh(t,e){if(t==null)return{};var n,r,i=Ph(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 Ph(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 xh(t){var{children:e,keepMounted:n=!1}=t,r=bh(t,mh),i=n&&typeof e!="function",a=c.useRef(new Map),o=c.useMemo(()=>{var l=[],d=new Map;return i?(U.Children.forEach(e,f=>{if(!(f==null||f.key==null)){var p=a.current.get(f.key);p==null&&(p=Co({attributes:{style:"display: contents"}})),d.set(f.key,p),l.push(u.jsx(jo,{node:p,children:f.props.children},f.key))}}),a.current=d,l):(a.current=d,l)},[e,i]),s=c.useMemo(()=>{var l=[];return i&&U.Children.forEach(e,d=>{if(d==null||d.key==null){l.push(d);return}var f=a.current.get(d.key);if(f==null){l.push(d);return}l.push(u.jsx(ze,{children:u.jsx(Io,{node:f})},d.key))}),l},[e,i]);return u.jsxs(u.Fragment,{children:[i&&o,u.jsx(_o,Tn(Tn({},r),{},{children:i?s:e}))]})}function Cn(t,e,n,r,i,a,o){try{var s=t[a](o),l=s.value}catch(d){return void n(d)}s.done?e(l):Promise.resolve(l).then(r,i)}function wh(t){return function(){var e=this,n=arguments;return new Promise(function(r,i){var a=t.apply(e,n);function o(l){Cn(a,r,i,o,s,"next",l)}function s(l){Cn(a,r,i,o,s,"throw",l)}o(void 0)})}}var Oh=[["api"],["client"],["dashboardData","*","connection"],["dashboardData","*","sessionWrapper"],["layoutStorage"],["storage"]];function ga(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(),!ya(o,t))return i instanceof Map?Array.from(i.entries()):i}}function ya(t,e){for(var n=function(o){if(t.length===e[o].length&&t.every((s,l)=>e[o][l]==="*"||s===e[o][l]))return{v:!0}},r=0;r<e.length;r+=1){var i=n(r);if(typeof i=="object")return i.v}return!1}function va(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"root",r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:new Map([[t,"root"]]),i={};return Object.entries(t).forEach(a=>{var[o,s]=a;try{JSON.stringify(s,ga(e)),i[o]=s}catch{var l=s;if(typeof s=="bigint")i[o]=s.toString();else if(r.has(l))i[o]="Circular ref to ".concat(r.get(l));else{var d="".concat(n,".").concat(o);r.set(l,d);var f=d.split(".").slice(1);ya(f,e)||(i[o]=va(s,e,d,r))}}}),i}function Sh(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return JSON.stringify(va(t,e),ga(e),2)}function Eh(t){return JSON.stringify(t,null,2)}function Th(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 Ch(t,e,n){return Ot.apply(this,arguments)}function Ot(){return Ot=wh(function*(t,e,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:Oh,i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:"".concat(Th(new Date),"_support_logs"),a=new ko,o=a.folder(i);o.file("console.txt",t.getFormattedHistory()),e!=null&&o.file("metadata.json",Eh(e)),n!=null&&o.file("redux.json",Sh(n,r));var s=yield a.generateAsync({type:"blob"}),l=document.createElement("a");l.href=URL.createObjectURL(s),l.download="".concat(i,".zip"),l.click()}),Ot.apply(this,arguments)}function jh(t,e){return t===0?0:e==="all"||t===e.size?"all":e.size}function ba(t,e){return t===e?!0:t==="all"||e==="all"||t.size!==e.size?!1:[...t.keys()].every(n=>e.has(n))}function Pa(t,e){return t.isInverted===e.isInverted&&ba(t.selection,e.selection)}function xa(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 wa(t,e,n){var r=t==="all"||t.size>e/2,i=t;return r&&(i=t==="all"?new Set:new Set([...cu(0,e-1)].map(n).filter(a=>!t.has(a)))),{selection:i,isInverted:r}}function Ih(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 on(t,e){return c.useCallback(n=>{typeof t=="function"?t(e(n)):t.current=e(n)},[e,t])}function Oa(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:ni,[e,n]=c.useState(0),[r,i]=c.useState(0),[a,o]=c.useState(0),[s,l]=c.useState(0),d=c.useMemo(()=>new DOMRect(e,r,a,s),[s,a,e,r]),[f,p]=c.useState(null),h=on(p,t),m=c.useCallback(g=>{var x,[y]=g,b=(x=y==null?void 0:y.contentRect)!==null&&x!==void 0?x:{x:0,y:0,width:0,height:0};n(b.x),i(b.y),o(b.width),l(b.height)},[]);return Ze(f,m),{ref:h,contentRect:d}}function kh(t){var[e,n]=c.useState(!0);return c.useEffect(()=>{var r=setTimeout(()=>{n(!1)},t);return()=>{clearTimeout(r)}},[t]),e}function Rh(t){var[e,n]=c.useState(t);return c.useEffect(()=>{n(t)},[t]),[e,n]}function Dh(t,e,n,r){var i=c.useRef(0);c.useEffect(()=>{i.current>=n||r&&(i.current+=1,t())},[n,r,...e])}function Sa(t,e){var n=c.useRef(t),r=e(n.current,t)?n.current:t;return n.current=r,r}function Lh(t){t.preventDefault()}function Ea(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,e=c.useMemo(()=>"useSubmitButtonRef-".concat(Nt()),[]),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:Lh}),[e,t]),i=c.useMemo(()=>({form:e,ref:n}),[e,n]);return{formProps:r,submitButtonProps:i}}function Ta(t,e,n){var{getItem:r,selectedKeys:i,items:a}=t;return c.useMemo(()=>{var{selection:o,isInverted:s}=wa(i,a.length,n);return{selection:xa(o,r,e),isInverted:s}},[i,a.length,n,r,e])}function Ca(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ni,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 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 In(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){Ah(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 Ah(t,e,n){return(e=Fh(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Fh(t){var e=Nh(t,"string");return typeof e=="symbol"?e:e+""}function Nh(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Mh(t,e,n,r){var i=arguments.length===4;return c.useCallback(a=>{var o=i?a??r:a;n(In(In({},t),{},{[e]:o}))},[n,t,e,i,r])}function Ne(t,e){var[n,r]=c.useState(!0),[i,a]=c.useState(t),[o,s]=c.useState(t),[l,d]=c.useState(e);return(t!==o||e!==l)&&(r(!0),s(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 ja(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,s]=a;i.setAttribute(o,s)})})}},[t,e])}var Ia={spellCheck:!1};function $h(t){var e=ja(Ia,t);return on(e,qe)}const Uh=Object.freeze(Object.defineProperty({__proto__:null,SPELLCHECK_FALSE_ATTRIBUTE:Ia,createValidationProps:xp,defaultGetKey:wp,extractSpectrumHTMLElement:qe,extractSpectrumLastChildHTMLElement:Op,findSpectrumComboBoxScrollArea:Sp,findSpectrumPickerScrollArea:Ep,findSpectrumPopoverScrollArea:Tp,getPositionOfSelectedItem:Cp,getSelectedItemCountOrAll:jh,identityExtractHTMLElement:jp,isElementOfType:ra,isSelectionEqual:ba,isSelectionMaybeInvertedEqual:Pa,mapSelection:xa,mergeRefs:fh,optimizeSelection:wa,useAsyncInterval:du,useCallbackWithAction:Ih,useChangeEventValueCallback:_h,useCheckOverflow:Ip,useContentRect:Oa,useContextOrThrow:pu,useCopyToClipboard:yd,useDebouncedCallback:Ie,useDebouncedValue:Ne,useDelay:kh,useDependentState:Rh,useEffectNTimesWhen:Dh,useFormWithDetachedSubmitButton:Ea,useForwardedRef:fu,useIsEqualMemo:Sa,useIsMountedRef:hu,useMappedRef:on,useMappedSelection:Ta,useMergeRef:hh,useOnChange:_p,useOnScrollOffsetChangeCallback:kp,useOnScrollRef:Ca,usePopoverOnScrollRef:Rp,usePrevious:mu,usePromiseFactory:Oe,usePropChangeCallback:Mh,useResizeObserver:Ze,useSetAttributesCallback:ja,useSpectrumDisableSpellcheckRef:$h,useThrottledCallback:gu,useWindowedListData:Dp},Symbol.toStringTag,{value:"Module"}));var Bh=["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 Wh(t,e){if(t==null)return{};var n,r,i=Vh(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 Vh(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 _a(t){var{"aria-label":e,"aria-labelledby":n,"aria-describedby":r,"aria-details":i,marginX:a,marginY:o,width:s,height:l,minWidth:d,minHeight:f,maxWidth:p,maxHeight:h,flex:m,flexGrow:g,flexShrink:x,flexBasis:y,justifySelf:b,alignSelf:P,order:C,gridArea:j,gridColumn:v,gridRow:S,gridColumnStart:I,gridColumnEnd:_,gridRowStart:A,gridRowEnd:L,position:H,zIndex:E,top:w,bottom:O,start:k,end:N,left:W,right:G,isHidden:q}=t,T=Wh(t,Bh);return{ariaLabelProps:{"aria-label":e,"aria-labelledby":n,"aria-describedby":r,"aria-details":i},styleProps:{marginX:a,marginY:o,width:s,height:l,minWidth:d,minHeight:f,maxWidth:p,maxHeight:h,flex:m,flexGrow:g,flexShrink:x,flexBasis:y,justifySelf:b,alignSelf:P,order:C,gridArea:j,gridColumn:v,gridRow:S,gridColumnStart:I,gridColumnEnd:_,gridRowStart:A,gridRowEnd:L,position:H,zIndex:E,top:w,bottom:O,start:k,end:N,left:W,right:G,isHidden:q},componentProps:T}}function ka(t){var{normalizedItems:e,defaultSelectedKeys:n,disabledKeys:r,selectedKeys:i,onChange:a}=t,o=c.useMemo(()=>Ge(i),[i]),s=c.useMemo(()=>Ge(n),[n]),l=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(xt(h)))&&p.add(xt(h))}),a(p)}},[e,a]);return{selectedStringKeys:o,defaultSelectedStringKeys:s,disabledStringKeys:l,onStringSelectionChange:d}}function Hh(){var{selectedThemeKey:t,setSelectedThemeKey:e,themes:n}=tt(),r=c.useCallback(i=>{e(i)},[e]);return u.jsx(Ro,{label:"Pick a color scheme",items:n,selectedKey:t,onSelectionChange:r,children:i=>u.jsx(ze,{children:i.name},i.themeKey)})}function Yh(t){var{className:e,style:n}=t;return u.jsx("div",{className:F("dh-logo",e),style:n})}var _n=V.module("useExternalTheme");function Ra(){var[t,e]=c.useState(()=>{var r=Ut();return{isEnabled:r,isPending:r}}),n=c.useCallback(r=>{var i=ri(r);e({isEnabled:!0,isPending:!1,themeData:i})},[]);return c.useEffect(()=>{if(!t.isEnabled)return;_n.debug("Requesting external theme data");function r(i){var a=Bt();i.source!==window&&i.source!==a||i.data.message===ai&&oi(i.data.payload)&&n(i.data.payload)}return window.addEventListener("message",r),ii().then(n).catch(i=>{_n.error(i),e({isEnabled:!0,isPending:!1})}),()=>{window.removeEventListener("message",r)}},[n,t.isEnabled]),t}var Gh=["UNSAFE_className"],Kh=["forceRerenderKey","ref"];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 Rn(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){qh(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 qh(t,e,n){return(e=zh(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function zh(t){var e=Xh(t,"string");return typeof e=="symbol"?e:e+""}function Xh(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Dn(t,e){if(t==null)return{};var n,r,i=Qh(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 Qh(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 Da(t){var{UNSAFE_className:e}=t,n=Dn(t,Gh),r=ia(n),{forceRerenderKey:i,ref:a}=r,o=Dn(r,Kh);return c.createElement(Mt,Rn(Rn({},o),{},{key:i,ref:a,UNSAFE_className:F("dh-combobox","dh-combobox-normalized",e)}))}var Jh=["onScroll"];function Ln(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?Ln(Object(n),!0).forEach(function(r){Zh(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ln(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function Zh(t,e,n){return(e=em(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function em(t){var e=tm(t,"string");return typeof e=="symbol"?e:e+""}function tm(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");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=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}function sn(t){var e,n,{ariaLabelProps:r,componentProps:i,styleProps:a}=_a(t),{onScroll:o=nt}=i,s=nm(i,Jh),{scale:l}=Zt(),d=Ca(o,qe),{ref:f,contentRect:p}=Oa(qe);return u.jsx(Hr,Me(Me({direction:"column",ref:f},a),{},{minHeight:(e=a.minHeight)!==null&&e!==void 0?e:1,UNSAFE_className:F("dh-list-view-wrapper","dh-list-view-wrapper-density-".concat((n=s.density)!==null&&n!==void 0?n:"regular"),"dh-list-view-wrapper-scale-".concat(l),a.UNSAFE_className),children:p.height===0?null:u.jsx(Do,Me(Me({ref:d},r),s))}))}var im=["children","tooltip","selectedKeys","defaultSelectedKeys","disabledKeys","UNSAFE_className","onChange","onScroll","onSelectionChange"];function An(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 Fn(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?An(Object(n),!0).forEach(function(r){am(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):An(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function am(t,e,n){return(e=om(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function om(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||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function lm(t,e){if(t==null)return{};var n,r,i=um(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 um(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 cm(t){var{children:e,tooltip:n=!0,selectedKeys:r,defaultSelectedKeys:i,disabledKeys:a,UNSAFE_className:o,onChange:s,onScroll:l=nt,onSelectionChange:d}=t,f=lm(t,im),p=c.useMemo(()=>en(n,"bottom"),[n]),h=c.useMemo(()=>aa(e,p),[e,p]);return u.jsx(sn,Fn(Fn({},f),{},{UNSAFE_className:F("dh-list-view",o),selectedKeys:r,defaultSelectedKeys:i,disabledKeys:a,onScroll:l,onSelectionChange:s??d,children:h}))}var dm=["normalizedItems","tooltip","selectedKeys","defaultSelectedKeys","disabledKeys","showItemIcons","actions","UNSAFE_className","onChange","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){pm(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 pm(t,e,n){return(e=fm(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function fm(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||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function mm(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 La(t){var{normalizedItems:e,tooltip:n=!0,selectedKeys:r,defaultSelectedKeys:i,disabledKeys:a,showItemIcons:o,actions:s,UNSAFE_className:l,onChange:d,onSelectionChange:f}=t,p=mm(t,dm),h=c.useMemo(()=>en(n,"bottom"),[n]),m=oa({itemIconSlot:"illustration",showItemDescriptions:!1,showItemIcons:o,tooltipOptions:h,actions:s}),g="".concat(o,"-").concat(h==null?void 0:h.placement),{selectedStringKeys:x,defaultSelectedStringKeys:y,disabledStringKeys:b,onStringSelectionChange:P}=ka({normalizedItems:e,selectedKeys:r,defaultSelectedKeys:i,disabledKeys:a,onChange:d??f});return c.createElement(sn,Mn(Mn({},p),{},{UNSAFE_className:F("dh-list-view-normalized",l),key:g,items:e,selectedKeys:x,defaultSelectedKeys:y,disabledKeys:b,onSelectionChange:P}),m)}var ym=["color","UNSAFE_style"];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 $e(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){vm(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 vm(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=Pm(t,"string");return typeof e=="symbol"?e:e+""}function Pm(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function xm(t,e){if(t==null)return{};var n,r,i=wm(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 wm(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 at=c.forwardRef((t,e)=>{var{color:n,UNSAFE_style:r}=t,i=xm(t,ym),a=c.useMemo(()=>$e($e({},r),{},{color:J(n)}),[n,r]);return u.jsx(Lo,$e($e({},i),{},{ref:e,UNSAFE_style:a}))});at.displayName="Heading";var Om=["backgroundColor","borderColor","borderStartColor","borderEndColor","borderTopColor","borderBottomColor","borderXColor","borderYColor","UNSAFE_style"];function Un(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?Un(Object(n),!0).forEach(function(r){Sm(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Un(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function Sm(t,e,n){return(e=Em(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Em(t){var e=Tm(t,"string");return typeof e=="symbol"?e:e+""}function Tm(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Cm(t,e){if(t==null)return{};var n,r,i=jm(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 jm(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 Aa=c.forwardRef((t,e)=>{var{backgroundColor:n,borderColor:r,borderStartColor:i,borderEndColor:a,borderTopColor:o,borderBottomColor:s,borderXColor:l,borderYColor:d,UNSAFE_style:f}=t,p=Cm(t,Om),{direction:h}=Ao(),m=c.useMemo(()=>{var g={};return r!==void 0&&(g.borderColor=J(r)),l!==void 0&&(g.borderLeftColor=J(l),g.borderRightColor=J(l)),d!==void 0&&(g.borderTopColor=J(d),g.borderBottomColor=J(d)),i!==void 0&&(g[h==="rtl"?"borderRightColor":"borderLeftColor"]=J(i)),a!==void 0&&(g[h==="rtl"?"borderLeftColor":"borderRightColor"]=J(a)),o!==void 0&&(g.borderTopColor=J(o)),s!==void 0&&(g.borderBottomColor=J(s)),Ue(Ue({},f),{},{backgroundColor:J(n)},g)},[n,f,r,i,a,o,s,l,d,h]);return u.jsx(Fo,Ue(Ue({},p),{},{ref:e,UNSAFE_style:m}))});Aa.displayName="View";var Im=["children"];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 Wn(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){_m(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 _m(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=Rm(t,"string");return typeof e=="symbol"?e:e+""}function Rm(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");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=Lm(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 Lm(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 Am(t){var{children:e}=t,n=Dm(t,Im),r=c.useMemo(()=>yu(e).map(i=>ra(i,pt)?i:u.jsx(pt,{value:String(i),children:String(i)},String(i))),[e]);return u.jsx(No,Wn(Wn({},n),{},{children:r}))}var Fm=["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 Hn(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){Nm(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 Nm(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=$m(t,"string");return typeof e=="symbol"?e:e+""}function $m(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Um(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 Fa(t){var{ariaLabel:e,icon:n,isQuiet:r,labelText:i,children:a,onOpenChange:o,tooltip:s}=t,l=Um(t,Fm),d=i==null&&s!=null?"action-button-icon-with-tooltip":void 0;return u.jsxs(Yr,{type:"popover",onOpenChange:o,children:[u.jsxs(Xe,Hn(Hn({},l),{},{"aria-label":e??i,isQuiet:r,children:[u.jsx(Le,{UNSAFE_className:d,children:u.jsx(Z,{icon:n})}),i==null?null:u.jsx(it,{children:i}),s==null?null:u.jsx(Fe,{children:s})]})),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 Be(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){Wm(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 Wm(t,e,n){return(e=Vm(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Vm(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||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Na(t){var{heading:e,confirmationButtonLabel:n,children:r,onCancel:i,onConfirm:a}=t,{formProps:o,submitButtonProps:s}=Ea();return u.jsxs(Gr,{children:[u.jsx(at,{level:3,UNSAFE_className:tn.spectrumDialogComponentHeading,children:e}),u.jsx(Kr,{}),u.jsx($t,{children:u.jsx(qr,Be(Be({},o),{},{children:r}))}),u.jsxs(zr,{children:[u.jsx(ft,{variant:"secondary",onPress:i,children:"Cancel"}),u.jsx(ft,Be(Be({},s),{},{style:"fill",variant:"negative",onPress:a,type:"submit",children:n}))]})]})}function Ym(t){var{ariaLabel:e,heading:n,confirmationButtonLabel:r,isHidden:i,children:a,tooltip:o,onConfirm:s}=t,l=c.useCallback(d=>u.jsx(Na,{heading:n,confirmationButtonLabel:r,onCancel:d,onConfirm:()=>{d(),s()},children:a}),[a,r,n,s]);return u.jsx(Fa,{ariaLabel:e,icon:si,isHidden:i,isQuiet:!0,height:nn,tooltip:o,children:l})}var Gm=["icon","label","tooltip"];function Gn(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 Kn(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Gn(Object(n),!0).forEach(function(r){Km(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Gn(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function Km(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=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||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Xm(t,e){if(t==null)return{};var n,r,i=Qm(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 Qm(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{icon:e,label:n,tooltip:r}=t,i=Xm(t,Gm);return u.jsxs(Xe,Kn(Kn({},i),{},{"aria-label":n,isQuiet:!0,height:nn,children:[u.jsx(Le,{UNSAFE_className:r==null?void 0:"action-button-icon-with-tooltip",children:u.jsx(Z,{icon:e})}),r==null?null:u.jsx(Fe,{children:r})]}))}Ma.displayName="IconActionButton";function qn(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 Jm(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?qn(Object(n),!0).forEach(function(r){ie(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):qn(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function ie(t,e,n){return(e=Zm(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Zm(t){var e=eg(t,"string");return typeof e=="symbol"?e:e+""}function eg(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var tg=100,St;(function(t){t.UP="UP",t.DOWN="DOWN"})(St||(St={}));class ee extends c.Component{constructor(e){super(e),ie(this,"popper",void 0),ie(this,"cbContainer",void 0),ie(this,"menuContainer",void 0),ie(this,"input",void 0),ie(this,"getCachedFilteredOptions",Mo((r,i)=>r.filter(a=>a.title.toLowerCase().indexOf(i.toLowerCase())>=0),{max:1e3}));var{popperOptions:n}=this.props;n=Jm({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,tg),this.handleOptionClick=this.handleOptionClick.bind(this),this.handleMenuOpened=this.handleMenuOpened.bind(this),this.handleMenuExited=this.handleMenuExited.bind(this),this.popper=U.createRef(),this.cbContainer=U.createRef(),this.menuContainer=U.createRef(),this.input=U.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(ee.MENU_NAVIGATION_DIRECTION.UP);break;case"ArrowDown":e.stopPropagation(),e.preventDefault(),this.navigateMenu(ee.MENU_NAVIGATION_DIRECTION.DOWN);break;case"Tab":if(e.stopPropagation(),e.preventDefault(),e.shiftKey){this.navigateMenu(ee.MENU_NAVIGATION_DIRECTION.UP);break}this.navigateMenu(ee.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===ee.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===ee.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:F("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:F("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":s}=this.props,{title:l,menuIsOpen:d,popperOptions:f,invalid:p}=this.state;return u.jsxs("div",{className:"aci-container",ref:this.cbContainer,children:[u.jsx("input",{value:l||a,className:F("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":s}),u.jsx(Kt,{ref:this.popper,options:f,className:F("aci-options-popper interactive"),onEntered:this.handleMenuOpened,onExited:this.handleMenuExited,children:this.renderMenuElement()})]})}}ie(ee,"propTypes",{options:M.arrayOf(M.shape({title:M.string.isRequired,value:M.string.isRequired})).isRequired,popperOptions:M.shape({}),onChange:M.func,inputPlaceholder:M.string,disabled:M.bool,className:M.string,defaultTitle:M.string,spellCheck:M.bool,onEnter:M.func,noMatchText:M.string,"data-testid":M.string});ie(ee,"defaultProps",{onChange(){},inputPlaceholder:"",disabled:!1,className:"",defaultTitle:"",popperOptions:null,spellCheck:!0,onEnter(){},noMatchText:"No matching items found","data-testid":void 0});ie(ee,"MENU_NAVIGATION_DIRECTION",St);function ln(t){var{className:e="",value:n,onChange:r,spellCheck:i=!1,placeholder:a="",disabled:o=!1,delimiter:s="",id:l="","data-testid":d}=t,[f,p]=c.useState(n),[h,m]=c.useState(!1),g=c.useRef(null);c.useEffect(function(){p(n)},[n]);function x(I){return I.trim().split(s).filter(_=>_).join(`
|
|
1
|
+
import{r as c,K as U,O as To,F as u,P as Co,Q as ze,S as jo,T as Io,U as _o,D as Mt,V as ko,I as F,W as $t,X as Hr,Y as Ro,Z as Do,a0 as Lo,a1 as Ao,a2 as ft,a3 as Fo,a4 as Yr,a5 as Xe,a6 as Le,J as Z,a7 as Gr,a8 as Kr,a9 as Ut,aa as qr,ab as zr,ac as ht,ad as No,ae as je,af as M,ag as Xr,H as Qr,ah as Jr,ai as Mo,aj as $o,ak as Uo,al as Zr,am as Bo,an as Wo,ao as Vo,ap as Ho,aq as Yo,ar as Go,as as Ko,at as qo,au as zo,av as Xo,aw as Qo,ax as Jo,ay as Zo,az as es,aA as ts,aB as ns,aC as rs,aD as is,aE as as,aF as os,aG as ss,aH as ls,aI as us,aJ as cs,aK as ei,aL as ds,aM as ps,aN as fs,aO as hs,aP as ms,aQ as gs,aR as ys,aS as vs,aT as bs,aU as Ps,aV as xs,aW as ws,aX as Os,aY as Ss,aZ as Es,a_ as Ts,a$ as Cs,b0 as js,b1 as Is,b2 as _s,b3 as ks,b4 as Rs,N as Ds,b5 as Ls,b6 as As,b7 as Fs,b8 as Ns,b9 as Ms,ba as $s,bb as mt,L as Us,M as Bs,bc as Ws,bd as Vs,be as vn,bf as Hs,R as Ys,bg as Gs,bh as Ks,bi as qs,bj as zs,bk as Xs,bl as ti,bm as Qs,bn as Js}from"./vendor-CiEcCTfT.js";import{i as ni,L as V,b as Bt,p as ri,r as ii,M as ai,c as oi,g as Wt,v as si,d as Vt,e as Ht,f as Qe,h as Zs,j as el,k as tl,l as nl,m as rl,n as li,o as il,q as al,s as ui,t as Je,u as ol,T as gt,C as sl,D as ll,w as ul,x as cl,y as dl,z as pl,A as fl,E as hl,a as ge,B as ml,F as ci,N as gl,P as yl,S as vl,G as bl,H as Pl,I as xl,J as wl,W as Ol,K as Sl,O as El,Q as Tl,R as Cl,U as jl,V as Il,X as _l,Y as kl,Z as Rl,_ as Dl,$ as Ll,a0 as Al,a1 as Fl,a2 as Nl,a3 as Ml,a4 as $l,a5 as Ul,a6 as Bl,a7 as Wl,a8 as Vl,a9 as Hl,aa as Yl,ab as Yt,ac as Gl,ad as Ze,ae as Gt,af as Kl,ag as di,ah as ql,ai as zl,aj as Xl,ak as Ql,al as Jl,am as Zl}from"./index-WrKLdkaP.js";import{e as et,C as pi,g as eu,a as Ae,F as tu,f as nu,h as ru,d as iu,U as tt,i as fi,j as hi,D as bn,k as au,l as ou,c as su,S as lu}from"./LocalWorkspaceStorage-OkFWE-95.js";import{A as Gb,p as Kb,q as qb,G as zb,L as Xb,m as Qb,t as Jb,s as Zb,o as e0,n as t0,r as n0,u as r0,b as i0}from"./LocalWorkspaceStorage-OkFWE-95.js";import{k as uu,l as cu,m as du,n as Ie,o as pu,p as fu,q as hu,t as mu,v as nt,w as rt,x as gu,T as Fe,P as Kt,C as ce,y as me,z as mi,A as Ye,D as gi,r as fe,M as Y,K as z,R as Pn,I as yt,B as K,F as vt,G as qt,H as yi,J as yu,c as vu,L as vi,N as bu,O as bi,Q as Pi,U as xi,S as Pu,V as xu,W as wu,X as wi,Y as Ou,Z as Su,_ as Eu,$ as Oi,a0 as Tu,a1 as Cu,a2 as ju,a3 as Si,a4 as Iu,a5 as Ei,g as _u,a6 as ku,a7 as Ru,a8 as Du,a9 as Ti,u as Se,aa as Lu,ab as Au,ac as Fu,ad as Nu,ae as Mu,af as $u,E as Uu,ag as Ci,ah as ji,ai as Ii,aj as _i,ak as it,al as Bu,am as ki,an as Wu,ao as bt,ap as Vu,aq as Ri,ar as Hu,as as Pt,at as Yu,au as Gu,av as Ku,aw as _e,ax as Di,ay as Li,az as qu,aA as Ai,aB as zu,aC as Xu,aD as Fi,aE as Ni,aF as Mi,s as $i,aG as xn,aH as Qu,aI as Ju,aJ as Zu,aK as ec,aL as tc,aM as nc,aN as rc,aO as ic,aP as ac,aQ as oc,aR as sc,aS as lc,aT as uc,aU as cc,aV as dc,aW as pc,aX as fc,aY as hc,aZ as mc,a_ as gc,a$ as yc,b0 as vc,e as bc,b as Pc,b1 as xc,b2 as wc,b3 as Oc,b4 as Sc,b5 as Ec,b6 as Tc,b7 as Cc,b8 as jc,b9 as Ic,ba as _c,bb as kc,bc as Rc,bd as Dc,be as Lc,bf as Ac,bg as Fc,bh as Ui,bi as Nc,bj as Mc,a as $c,bk as Uc,bl as Bc,bm as Wc,bn as Vc,bo as Hc,bp as Yc,bq as Gc,br as Kc,bs as Bi,bt as Wi,bu as Vi,bv as wn,bw as qc,bx as zc,by as Xc,bz as Qc,bA as Jc,bB as Zc,bC as ed,bD as td,bE as nd,bF as rd,bG as id,bH as ad,bI as od,bJ as sd,bK as ld,bL as ud,bM as cd,bN as dd,bO as pd,bP as fd,bQ as he,bR as hd,bS as md}from"./LogPanel-D_aEK-rM.js";import{u as gd,C as Hi,F as zt,a as yd,S as vd,b as Yi,D as bd,B as Pd,c as xd,d as wd,e as Od,f as Xt,g as xt,I as Sd,h as Ed,T as Td,i as Cd,j as Qt,k as jd,l as Gi,m as Ki,n as Id,o as qi,p as Jt,q as zi,r as Xi,s as _d,t as kd,v as Rd,w as Dd,x as Ld,y as Ad,z as Fd,A as Nd,E as Md,P as $d,G as Ud,H as Bd,J as Qi,K as Ji,L as Wd,M as Vd,N as Hd,O as Yd,Q as Gd,R as Zi,U as Kd,V as qd,W as zd,X as ea,Y as Xd,Z as Qd,_ as Jd,$ as On,a0 as Zd,a1 as ep,a2 as tp,a3 as np,a4 as rp,a5 as ip,a6 as ap,a7 as op,a8 as sp,a9 as lp,aa as up,ab as cp,ac as dp,ad as pp,ae as fp,af as hp,ag as mp,ah as gp,ai as yp,aj as vp,ak as bp,al as ta}from"./index-C_5T8Vok.js";import{D as Pp}from"./DownsamplingError-CG8EVVqo.js";import{e as qe,c as xp,d as wp,a as Op,f as Sp,b as Ep,g as Tp,h as Cp,i as jp,j as na,u as Ip,k as _p,l as kp,m as Rp,n as Oe,o as Dp,p as Ge,q as wt,r as ra,s as Zt,t as en,w as ia,v as aa,x as J,T as at,y as tn,A as nn,M as rn,D as oa,z as Lp,B as Ot,C as Ap,E as Fp,F as Np,G as Mp,H as $p,I as Up,J as Bp,K as Wp,L as Vp,N as sa,O as Hp,P as Yp,Q as Gp,R as Kp,S as la,U as qp,V as zp,W as Xp,X as Qp,Y as Jp,Z as Zp,_ as ua,$ as ef,a0 as tf,a1 as nf,a2 as rf,a3 as af,a4 as of,a5 as sf,a6 as lf,a7 as uf,a8 as cf,a9 as df,aa as pf,ab as ff,ac as hf,ad as mf,ae as ca,af as gf,ag as yf,ah as vf,ai as bf,aj as Pf,ak as xf,al as Ke,am as wf,an as da,ao as Of,ap as an,aq as pe,ar as Sn,as as pa,at as fa,au as ha,av as Sf,aw as Ef,ax as Tf,ay as Cf,az as jf,aA as If,aB as _f,aC as kf,aD as Rf,aE as Df,aF as Lf,aG as Af,aH as Ff,aI as Nf,aJ as Mf,aK as $f,aL as Uf,aM as Bf,aN as Wf,aO as Vf,aP as Hf,aQ as Yf,aR as Gf,aS as Kf,aT as qf,aU as zf,aV as Xf,aW as Qf,aX as Jf,aY as Zf,aZ as eh,a_ as ma,a$ as th,b0 as nh,b1 as rh,b2 as ih,b3 as ah,b4 as oh,b5 as sh,b6 as lh,b7 as uh,b8 as ch,b9 as dh,ba as ph}from"./IrisGridThemeProvider-DbbOy1p_.js";import{m as fh,u as hh}from"./useMergeRef-D2wjRM4J.js";import"./helpers-BosuxZz1.js";var mh=["children","keepMounted"];function En(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 Tn(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?En(Object(n),!0).forEach(function(r){gh(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):En(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function gh(t,e,n){return(e=yh(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function yh(t){var e=vh(t,"string");return typeof e=="symbol"?e:e+""}function vh(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function bh(t,e){if(t==null)return{};var n,r,i=Ph(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 Ph(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 xh(t){var{children:e,keepMounted:n=!1}=t,r=bh(t,mh),i=n&&typeof e!="function",a=c.useRef(new Map),o=c.useMemo(()=>{var l=[],d=new Map;return i?(U.Children.forEach(e,f=>{if(!(f==null||f.key==null)){var p=a.current.get(f.key);p==null&&(p=To({attributes:{style:"display: contents"}})),d.set(f.key,p),l.push(u.jsx(Co,{node:p,children:f.props.children},f.key))}}),a.current=d,l):(a.current=d,l)},[e,i]),s=c.useMemo(()=>{var l=[];return i&&U.Children.forEach(e,d=>{if(d==null||d.key==null){l.push(d);return}var f=a.current.get(d.key);if(f==null){l.push(d);return}l.push(u.jsx(ze,{children:u.jsx(jo,{node:f})},d.key))}),l},[e,i]);return u.jsxs(u.Fragment,{children:[i&&o,u.jsx(Io,Tn(Tn({},r),{},{children:i?s:e}))]})}function Cn(t,e,n,r,i,a,o){try{var s=t[a](o),l=s.value}catch(d){return void n(d)}s.done?e(l):Promise.resolve(l).then(r,i)}function wh(t){return function(){var e=this,n=arguments;return new Promise(function(r,i){var a=t.apply(e,n);function o(l){Cn(a,r,i,o,s,"next",l)}function s(l){Cn(a,r,i,o,s,"throw",l)}o(void 0)})}}var Oh=[["api"],["client"],["dashboardData","*","connection"],["dashboardData","*","sessionWrapper"],["layoutStorage"],["storage"]];function ga(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(),!ya(o,t))return i instanceof Map?Array.from(i.entries()):i}}function ya(t,e){for(var n=function(o){if(t.length===e[o].length&&t.every((s,l)=>e[o][l]==="*"||s===e[o][l]))return{v:!0}},r=0;r<e.length;r+=1){var i=n(r);if(typeof i=="object")return i.v}return!1}function va(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"root",r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:new Map([[t,"root"]]),i={};return Object.entries(t).forEach(a=>{var[o,s]=a;try{JSON.stringify(s,ga(e)),i[o]=s}catch{var l=s;if(typeof s=="bigint")i[o]=s.toString();else if(r.has(l))i[o]="Circular ref to ".concat(r.get(l));else{var d="".concat(n,".").concat(o);r.set(l,d);var f=d.split(".").slice(1);ya(f,e)||(i[o]=va(s,e,d,r))}}}),i}function Sh(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return JSON.stringify(va(t,e),ga(e),2)}function Eh(t){return JSON.stringify(t,null,2)}function Th(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 Ch(t,e,n){return St.apply(this,arguments)}function St(){return St=wh(function*(t,e,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:Oh,i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:"".concat(Th(new Date),"_support_logs"),a=new _o,o=a.folder(i);o.file("console.txt",t.getFormattedHistory()),e!=null&&o.file("metadata.json",Eh(e)),n!=null&&o.file("redux.json",Sh(n,r));var s=yield a.generateAsync({type:"blob"}),l=document.createElement("a");l.href=URL.createObjectURL(s),l.download="".concat(i,".zip"),l.click()}),St.apply(this,arguments)}function jh(t,e){return t===0?0:e==="all"||t===e.size?"all":e.size}function ba(t,e){return t===e?!0:t==="all"||e==="all"||t.size!==e.size?!1:[...t.keys()].every(n=>e.has(n))}function Pa(t,e){return t.isInverted===e.isInverted&&ba(t.selection,e.selection)}function xa(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 wa(t,e,n){var r=t==="all"||t.size>e/2,i=t;return r&&(i=t==="all"?new Set:new Set([...uu(0,e-1)].map(n).filter(a=>!t.has(a)))),{selection:i,isInverted:r}}function Ih(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 on(t,e){return c.useCallback(n=>{typeof t=="function"?t(e(n)):t.current=e(n)},[e,t])}function Oa(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:ni,[e,n]=c.useState(0),[r,i]=c.useState(0),[a,o]=c.useState(0),[s,l]=c.useState(0),d=c.useMemo(()=>new DOMRect(e,r,a,s),[s,a,e,r]),[f,p]=c.useState(null),h=on(p,t),m=c.useCallback(g=>{var x,[y]=g,b=(x=y==null?void 0:y.contentRect)!==null&&x!==void 0?x:{x:0,y:0,width:0,height:0};n(b.x),i(b.y),o(b.width),l(b.height)},[]);return et(f,m),{ref:h,contentRect:d}}function kh(t){var[e,n]=c.useState(!0);return c.useEffect(()=>{var r=setTimeout(()=>{n(!1)},t);return()=>{clearTimeout(r)}},[t]),e}function Rh(t){var[e,n]=c.useState(t);return c.useEffect(()=>{n(t)},[t]),[e,n]}function Dh(t,e,n,r){var i=c.useRef(0);c.useEffect(()=>{i.current>=n||r&&(i.current+=1,t())},[n,r,...e])}function Sa(t,e){var n=c.useRef(t),r=e(n.current,t)?n.current:t;return n.current=r,r}function Lh(t){t.preventDefault()}function Ea(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,e=c.useMemo(()=>"useSubmitButtonRef-".concat(Mt()),[]),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:Lh}),[e,t]),i=c.useMemo(()=>({form:e,ref:n}),[e,n]);return{formProps:r,submitButtonProps:i}}function Ta(t,e,n){var{getItem:r,selectedKeys:i,items:a}=t;return c.useMemo(()=>{var{selection:o,isInverted:s}=wa(i,a.length,n);return{selection:xa(o,r,e),isInverted:s}},[i,a.length,n,r,e])}function Ca(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ni,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 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 In(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){Ah(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 Ah(t,e,n){return(e=Fh(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Fh(t){var e=Nh(t,"string");return typeof e=="symbol"?e:e+""}function Nh(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Mh(t,e,n,r){var i=arguments.length===4;return c.useCallback(a=>{var o=i?a??r:a;n(In(In({},t),{},{[e]:o}))},[n,t,e,i,r])}function Ne(t,e){var[n,r]=c.useState(!0),[i,a]=c.useState(t),[o,s]=c.useState(t),[l,d]=c.useState(e);return(t!==o||e!==l)&&(r(!0),s(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 ja(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,s]=a;i.setAttribute(o,s)})})}},[t,e])}var Ia={spellCheck:!1};function $h(t){var e=ja(Ia,t);return on(e,qe)}const Uh=Object.freeze(Object.defineProperty({__proto__:null,SPELLCHECK_FALSE_ATTRIBUTE:Ia,createValidationProps:xp,defaultGetKey:wp,extractSpectrumHTMLElement:qe,extractSpectrumLastChildHTMLElement:Op,findSpectrumComboBoxScrollArea:Sp,findSpectrumPickerScrollArea:Ep,findSpectrumPopoverScrollArea:Tp,getPositionOfSelectedItem:Cp,getSelectedItemCountOrAll:jh,identityExtractHTMLElement:jp,isElementOfType:na,isSelectionEqual:ba,isSelectionMaybeInvertedEqual:Pa,mapSelection:xa,mergeRefs:fh,optimizeSelection:wa,useAsyncInterval:cu,useCallbackWithAction:Ih,useChangeEventValueCallback:_h,useCheckOverflow:Ip,useContentRect:Oa,useContextOrThrow:du,useCopyToClipboard:gd,useDebouncedCallback:Ie,useDebouncedValue:Ne,useDelay:kh,useDependentState:Rh,useEffectNTimesWhen:Dh,useFormWithDetachedSubmitButton:Ea,useForwardedRef:pu,useIsEqualMemo:Sa,useIsMountedRef:fu,useMappedRef:on,useMappedSelection:Ta,useMergeRef:hh,useOnChange:_p,useOnScrollOffsetChangeCallback:kp,useOnScrollRef:Ca,usePopoverOnScrollRef:Rp,usePrevious:hu,usePromiseFactory:Oe,usePropChangeCallback:Mh,useResizeObserver:et,useSetAttributesCallback:ja,useSpectrumDisableSpellcheckRef:$h,useThrottledCallback:mu,useWindowedListData:Dp},Symbol.toStringTag,{value:"Module"}));var Bh=["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 Wh(t,e){if(t==null)return{};var n,r,i=Vh(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 Vh(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 _a(t){var{"aria-label":e,"aria-labelledby":n,"aria-describedby":r,"aria-details":i,marginX:a,marginY:o,width:s,height:l,minWidth:d,minHeight:f,maxWidth:p,maxHeight:h,flex:m,flexGrow:g,flexShrink:x,flexBasis:y,justifySelf:b,alignSelf:P,order:C,gridArea:j,gridColumn:v,gridRow:S,gridColumnStart:I,gridColumnEnd:_,gridRowStart:A,gridRowEnd:L,position:H,zIndex:E,top:w,bottom:O,start:k,end:N,left:W,right:G,isHidden:q}=t,T=Wh(t,Bh);return{ariaLabelProps:{"aria-label":e,"aria-labelledby":n,"aria-describedby":r,"aria-details":i},styleProps:{marginX:a,marginY:o,width:s,height:l,minWidth:d,minHeight:f,maxWidth:p,maxHeight:h,flex:m,flexGrow:g,flexShrink:x,flexBasis:y,justifySelf:b,alignSelf:P,order:C,gridArea:j,gridColumn:v,gridRow:S,gridColumnStart:I,gridColumnEnd:_,gridRowStart:A,gridRowEnd:L,position:H,zIndex:E,top:w,bottom:O,start:k,end:N,left:W,right:G,isHidden:q},componentProps:T}}function ka(t){var{normalizedItems:e,defaultSelectedKeys:n,disabledKeys:r,selectedKeys:i,onChange:a}=t,o=c.useMemo(()=>Ge(i),[i]),s=c.useMemo(()=>Ge(n),[n]),l=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(wt(h)))&&p.add(wt(h))}),a(p)}},[e,a]);return{selectedStringKeys:o,defaultSelectedStringKeys:s,disabledStringKeys:l,onStringSelectionChange:d}}function Hh(){var{selectedThemeKey:t,setSelectedThemeKey:e,themes:n}=nt(),r=c.useCallback(i=>{e(i)},[e]);return u.jsx(ko,{label:"Pick a color scheme",items:n,selectedKey:t,onSelectionChange:r,children:i=>u.jsx(ze,{children:i.name},i.themeKey)})}function Yh(t){var{className:e,style:n}=t;return u.jsx("div",{className:F("dh-logo",e),style:n})}var _n=V.module("useExternalTheme");function Ra(){var[t,e]=c.useState(()=>{var r=Bt();return{isEnabled:r,isPending:r}}),n=c.useCallback(r=>{var i=ri(r);e({isEnabled:!0,isPending:!1,themeData:i})},[]);return c.useEffect(()=>{if(!t.isEnabled)return;_n.debug("Requesting external theme data");function r(i){var a=Wt();i.source!==window&&i.source!==a||i.data.message===ai&&oi(i.data.payload)&&n(i.data.payload)}return window.addEventListener("message",r),ii().then(n).catch(i=>{_n.error(i),e({isEnabled:!0,isPending:!1})}),()=>{window.removeEventListener("message",r)}},[n,t.isEnabled]),t}var Gh=["UNSAFE_className"],Kh=["forceRerenderKey","ref"];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 Rn(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){qh(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 qh(t,e,n){return(e=zh(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function zh(t){var e=Xh(t,"string");return typeof e=="symbol"?e:e+""}function Xh(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Dn(t,e){if(t==null)return{};var n,r,i=Qh(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 Qh(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 Da(t){var{UNSAFE_className:e}=t,n=Dn(t,Gh),r=ra(n),{forceRerenderKey:i,ref:a}=r,o=Dn(r,Kh);return c.createElement($t,Rn(Rn({},o),{},{key:i,ref:a,UNSAFE_className:F("dh-combobox","dh-combobox-normalized",e)}))}var Jh=["onScroll"];function Ln(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?Ln(Object(n),!0).forEach(function(r){Zh(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ln(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function Zh(t,e,n){return(e=em(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function em(t){var e=tm(t,"string");return typeof e=="symbol"?e:e+""}function tm(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");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=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}function sn(t){var e,n,{ariaLabelProps:r,componentProps:i,styleProps:a}=_a(t),{onScroll:o=rt}=i,s=nm(i,Jh),{scale:l}=Zt(),d=Ca(o,qe),{ref:f,contentRect:p}=Oa(qe);return u.jsx(Hr,Me(Me({direction:"column",ref:f},a),{},{minHeight:(e=a.minHeight)!==null&&e!==void 0?e:1,UNSAFE_className:F("dh-list-view-wrapper","dh-list-view-wrapper-density-".concat((n=s.density)!==null&&n!==void 0?n:"regular"),"dh-list-view-wrapper-scale-".concat(l),a.UNSAFE_className),children:p.height===0?null:u.jsx(Ro,Me(Me({ref:d},r),s))}))}var im=["children","tooltip","selectedKeys","defaultSelectedKeys","disabledKeys","UNSAFE_className","onChange","onScroll","onSelectionChange"];function An(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 Fn(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?An(Object(n),!0).forEach(function(r){am(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):An(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function am(t,e,n){return(e=om(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function om(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||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function lm(t,e){if(t==null)return{};var n,r,i=um(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 um(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 cm(t){var{children:e,tooltip:n=!0,selectedKeys:r,defaultSelectedKeys:i,disabledKeys:a,UNSAFE_className:o,onChange:s,onScroll:l=rt,onSelectionChange:d}=t,f=lm(t,im),p=c.useMemo(()=>en(n,"bottom"),[n]),h=c.useMemo(()=>ia(e,p),[e,p]);return u.jsx(sn,Fn(Fn({},f),{},{UNSAFE_className:F("dh-list-view",o),selectedKeys:r,defaultSelectedKeys:i,disabledKeys:a,onScroll:l,onSelectionChange:s??d,children:h}))}var dm=["normalizedItems","tooltip","selectedKeys","defaultSelectedKeys","disabledKeys","showItemIcons","actions","UNSAFE_className","onChange","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){pm(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 pm(t,e,n){return(e=fm(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function fm(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||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function mm(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 La(t){var{normalizedItems:e,tooltip:n=!0,selectedKeys:r,defaultSelectedKeys:i,disabledKeys:a,showItemIcons:o,actions:s,UNSAFE_className:l,onChange:d,onSelectionChange:f}=t,p=mm(t,dm),h=c.useMemo(()=>en(n,"bottom"),[n]),m=aa({itemIconSlot:"illustration",showItemDescriptions:!1,showItemIcons:o,tooltipOptions:h,actions:s}),g="".concat(o,"-").concat(h==null?void 0:h.placement),{selectedStringKeys:x,defaultSelectedStringKeys:y,disabledStringKeys:b,onStringSelectionChange:P}=ka({normalizedItems:e,selectedKeys:r,defaultSelectedKeys:i,disabledKeys:a,onChange:d??f});return c.createElement(sn,Mn(Mn({},p),{},{UNSAFE_className:F("dh-list-view-normalized",l),key:g,items:e,selectedKeys:x,defaultSelectedKeys:y,disabledKeys:b,onSelectionChange:P}),m)}var ym=["color","UNSAFE_style"];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 $e(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){vm(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 vm(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=Pm(t,"string");return typeof e=="symbol"?e:e+""}function Pm(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function xm(t,e){if(t==null)return{};var n,r,i=wm(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 wm(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 ot=c.forwardRef((t,e)=>{var{color:n,UNSAFE_style:r}=t,i=xm(t,ym),a=c.useMemo(()=>$e($e({},r),{},{color:J(n)}),[n,r]);return u.jsx(Do,$e($e({},i),{},{ref:e,UNSAFE_style:a}))});ot.displayName="Heading";var Om=["backgroundColor","borderColor","borderStartColor","borderEndColor","borderTopColor","borderBottomColor","borderXColor","borderYColor","UNSAFE_style"];function Un(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?Un(Object(n),!0).forEach(function(r){Sm(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Un(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function Sm(t,e,n){return(e=Em(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Em(t){var e=Tm(t,"string");return typeof e=="symbol"?e:e+""}function Tm(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Cm(t,e){if(t==null)return{};var n,r,i=jm(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 jm(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 Aa=c.forwardRef((t,e)=>{var{backgroundColor:n,borderColor:r,borderStartColor:i,borderEndColor:a,borderTopColor:o,borderBottomColor:s,borderXColor:l,borderYColor:d,UNSAFE_style:f}=t,p=Cm(t,Om),{direction:h}=Lo(),m=c.useMemo(()=>{var g={};return r!==void 0&&(g.borderColor=J(r)),l!==void 0&&(g.borderLeftColor=J(l),g.borderRightColor=J(l)),d!==void 0&&(g.borderTopColor=J(d),g.borderBottomColor=J(d)),i!==void 0&&(g[h==="rtl"?"borderRightColor":"borderLeftColor"]=J(i)),a!==void 0&&(g[h==="rtl"?"borderLeftColor":"borderRightColor"]=J(a)),o!==void 0&&(g.borderTopColor=J(o)),s!==void 0&&(g.borderBottomColor=J(s)),Ue(Ue({},f),{},{backgroundColor:J(n)},g)},[n,f,r,i,a,o,s,l,d,h]);return u.jsx(Ao,Ue(Ue({},p),{},{ref:e,UNSAFE_style:m}))});Aa.displayName="View";var Im=["children"];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 Wn(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){_m(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 _m(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=Rm(t,"string");return typeof e=="symbol"?e:e+""}function Rm(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");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=Lm(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 Lm(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 Am(t){var{children:e}=t,n=Dm(t,Im),r=c.useMemo(()=>gu(e).map(i=>na(i,ft)?i:u.jsx(ft,{value:String(i),children:String(i)},String(i))),[e]);return u.jsx(Fo,Wn(Wn({},n),{},{children:r}))}var Fm=["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 Hn(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){Nm(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 Nm(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=$m(t,"string");return typeof e=="symbol"?e:e+""}function $m(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Um(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 Fa(t){var{ariaLabel:e,icon:n,isQuiet:r,labelText:i,children:a,onOpenChange:o,tooltip:s}=t,l=Um(t,Fm),d=i==null&&s!=null?"action-button-icon-with-tooltip":void 0;return u.jsxs(Yr,{type:"popover",onOpenChange:o,children:[u.jsxs(Xe,Hn(Hn({},l),{},{"aria-label":e??i,isQuiet:r,children:[u.jsx(Le,{UNSAFE_className:d,children:u.jsx(Z,{icon:n})}),i==null?null:u.jsx(at,{children:i}),s==null?null:u.jsx(Fe,{children:s})]})),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 Be(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){Wm(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 Wm(t,e,n){return(e=Vm(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Vm(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||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Na(t){var{heading:e,confirmationButtonLabel:n,children:r,onCancel:i,onConfirm:a}=t,{formProps:o,submitButtonProps:s}=Ea();return u.jsxs(Gr,{children:[u.jsx(ot,{level:3,UNSAFE_className:tn.spectrumDialogComponentHeading,children:e}),u.jsx(Kr,{}),u.jsx(Ut,{children:u.jsx(qr,Be(Be({},o),{},{children:r}))}),u.jsxs(zr,{children:[u.jsx(ht,{variant:"secondary",onPress:i,children:"Cancel"}),u.jsx(ht,Be(Be({},s),{},{style:"fill",variant:"negative",onPress:a,type:"submit",children:n}))]})]})}function Ym(t){var{ariaLabel:e,heading:n,confirmationButtonLabel:r,isHidden:i,children:a,tooltip:o,onConfirm:s}=t,l=c.useCallback(d=>u.jsx(Na,{heading:n,confirmationButtonLabel:r,onCancel:d,onConfirm:()=>{d(),s()},children:a}),[a,r,n,s]);return u.jsx(Fa,{ariaLabel:e,icon:si,isHidden:i,isQuiet:!0,height:nn,tooltip:o,children:l})}var Gm=["icon","label","tooltip"];function Gn(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 Kn(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Gn(Object(n),!0).forEach(function(r){Km(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Gn(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function Km(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=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||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Xm(t,e){if(t==null)return{};var n,r,i=Qm(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 Qm(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{icon:e,label:n,tooltip:r}=t,i=Xm(t,Gm);return u.jsxs(Xe,Kn(Kn({},i),{},{"aria-label":n,isQuiet:!0,height:nn,children:[u.jsx(Le,{UNSAFE_className:r==null?void 0:"action-button-icon-with-tooltip",children:u.jsx(Z,{icon:e})}),r==null?null:u.jsx(Fe,{children:r})]}))}Ma.displayName="IconActionButton";function qn(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 Jm(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?qn(Object(n),!0).forEach(function(r){ie(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):qn(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function ie(t,e,n){return(e=Zm(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Zm(t){var e=eg(t,"string");return typeof e=="symbol"?e:e+""}function eg(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var tg=100,Et;(function(t){t.UP="UP",t.DOWN="DOWN"})(Et||(Et={}));class ee extends c.Component{constructor(e){super(e),ie(this,"popper",void 0),ie(this,"cbContainer",void 0),ie(this,"menuContainer",void 0),ie(this,"input",void 0),ie(this,"getCachedFilteredOptions",No((r,i)=>r.filter(a=>a.title.toLowerCase().indexOf(i.toLowerCase())>=0),{max:1e3}));var{popperOptions:n}=this.props;n=Jm({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,tg),this.handleOptionClick=this.handleOptionClick.bind(this),this.handleMenuOpened=this.handleMenuOpened.bind(this),this.handleMenuExited=this.handleMenuExited.bind(this),this.popper=U.createRef(),this.cbContainer=U.createRef(),this.menuContainer=U.createRef(),this.input=U.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(ee.MENU_NAVIGATION_DIRECTION.UP);break;case"ArrowDown":e.stopPropagation(),e.preventDefault(),this.navigateMenu(ee.MENU_NAVIGATION_DIRECTION.DOWN);break;case"Tab":if(e.stopPropagation(),e.preventDefault(),e.shiftKey){this.navigateMenu(ee.MENU_NAVIGATION_DIRECTION.UP);break}this.navigateMenu(ee.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===ee.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===ee.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:F("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:F("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":s}=this.props,{title:l,menuIsOpen:d,popperOptions:f,invalid:p}=this.state;return u.jsxs("div",{className:"aci-container",ref:this.cbContainer,children:[u.jsx("input",{value:l||a,className:F("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":s}),u.jsx(Kt,{ref:this.popper,options:f,className:F("aci-options-popper interactive"),onEntered:this.handleMenuOpened,onExited:this.handleMenuExited,children:this.renderMenuElement()})]})}}ie(ee,"propTypes",{options:M.arrayOf(M.shape({title:M.string.isRequired,value:M.string.isRequired})).isRequired,popperOptions:M.shape({}),onChange:M.func,inputPlaceholder:M.string,disabled:M.bool,className:M.string,defaultTitle:M.string,spellCheck:M.bool,onEnter:M.func,noMatchText:M.string,"data-testid":M.string});ie(ee,"defaultProps",{onChange(){},inputPlaceholder:"",disabled:!1,className:"",defaultTitle:"",popperOptions:null,spellCheck:!0,onEnter(){},noMatchText:"No matching items found","data-testid":void 0});ie(ee,"MENU_NAVIGATION_DIRECTION",Et);function ln(t){var{className:e="",value:n,onChange:r,spellCheck:i=!1,placeholder:a="",disabled:o=!1,delimiter:s="",id:l="","data-testid":d}=t,[f,p]=c.useState(n),[h,m]=c.useState(!1),g=c.useRef(null);c.useEffect(function(){p(n)},[n]);function x(I){return I.trim().split(s).filter(_=>_).join(`
|
|
2
2
|
`.concat(s.trim()))}function y(I){return I.split(`
|
|
3
|
-
`).map(_=>_.trim()).join(" ")}function b(){if(g.current){g.current.style.height="0";var I=g.current.scrollHeight+(g.current.offsetHeight-g.current.clientHeight);I>0&&(g.current.style.height="".concat(I,"px"))}}function P(I){var _=I.target.value;h&&(s&&(_=x(_)),m(!1)),p(_),r(_)}function C(){g.current&&(s&&(p(x(f)),b()),g.current.scrollLeft=0)}function j(){g.current&&document.activeElement!==g.current&&g.current.focus()}function v(){s&&(p(y(f)),r(y(f)))}function S(){m(!0)}return c.useEffect(function(){b()},[f]),u.jsx("textarea",{ref:g,id:l,className:F(e,"auto-resize-textarea form-control"),placeholder:a,value:f,rows:1,onChange:P,onFocus:C,onMouseDown:j,onBlur:v,onPaste:S,spellCheck:i,disabled:o,"data-testid":d})}ln.propTypes={value:M.string.isRequired,onChange:M.func.isRequired,className:M.string,placeholder:M.string,spellCheck:M.bool,disabled:M.bool,delimiter:M.string,id:M.string,"data-testid":M.string};ln.defaultProps={className:"",id:"",placeholder:"",disabled:!1,spellCheck:!1,delimiter:"","data-testid":void 0};function $a(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"}),U.cloneElement(n,{isOpen:i&&a})]})}function Ua(t){var{className:e,icon:n,isOpen:r=!1,subtitle:i,title:a}=t;return u.jsx(Wt,{isOpen:r,className:e,children:u.jsx(Vt,{children:u.jsxs("div",{className:"info-modal",children:[n!=null&&u.jsx("div",{className:"message-icon",children:u.jsx(Z,{icon:n})}),u.jsx("div",{className:"message-header",children:a}),i!=null&&u.jsx("div",{className:"message-content",children:i})]})})})}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 Xn(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){ng(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 ng(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||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var ag=[];function og(t){var{styleProps:e,selectedItemCount:n,onClearSelection:r}=t;return u.jsx(Xr,Xn(Xn({UNSAFE_className:tn.spectrumActionBar},e),{},{isEmphasized:!0,selectedItemCount:n,onClearSelection:r,children:ag}))}function Qn(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 sg(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Qn(Object(n),!0).forEach(function(r){le(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Qn(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function le(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||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var Jn=V.module("ContextMenu");class ke extends c.PureComponent{static handleContextMenu(e){e.metaKey||(e.stopPropagation(),e.preventDefault())}constructor(e){super(e),le(this,"container",void 0),le(this,"oldFocus",void 0),le(this,"activeSubMenuRef",void 0),le(this,"subMenuTimer",void 0),le(this,"rAF",void 0),le(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=U.createRef(),this.oldFocus=document.activeElement,this.activeSubMenuRef=U.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=ce.getMenuItems(r),a=[],o=i.length-1;o>=0;o-=1){var s=i[o];s instanceof Promise?this.initMenuPromise(s):a.push(s)}this.setState({mouseIndex:-1,keyboardIndex:n,activeSubMenu:null,menuItems:ce.sortActions(a)})}initMenuPromise(e){var n=me.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:ce.sortActions(i.menuItems.concat(r)),pendingItems:o}}return null})},r=>{me.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}),Jn.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:s,subMenuParentHeight:l,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:g}=(e=(n=this.container.current)===null||n===void 0?void 0:n.getBoundingClientRect())!==null&&e!==void 0?e:{width:0,height:0},x=((r=(i=this.container.current)===null||i===void 0?void 0:i.scrollHeight)!==null&&r!==void 0?r:0)>window.innerHeight;g===0||m===0||(p+g>window.innerHeight&&(p-g-l>0?p-=g-l:p=window.innerHeight-g),h+m>window.innerWidth&&(h=h-m-s),(f!==h||d!==p)&&(this.setState({hasOverflow:x}),o(p,h)))}}handleWindowResize(){this.container.current&&this.closeMenu(!0)}handleBlur(e){if(!this.container.current){Jn.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=ce.getNextMenuItem(i,-1,n):(e.key==="ArrowDown"||e.key==="Tab")&&(i=ce.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:s,mouseIndex:l,pendingItems:d,subMenuTop:f,subMenuLeft:p,subMenuParentWidth:h,subMenuParentHeight:m}=this.state,g=0;g<s.length;g+=1){var x=s[g];g>0&&x.group!==s[g-1].group&&e.push(u.jsx("hr",{},"".concat(g,".separator")));var y=u.jsx(mi,{ref:i===g?this.activeSubMenuRef:null,isKeyboardSelected:o===g,isMouseSelected:l===g,menuItem:x,closeMenu:this.handleCloseSubMenu,onMenuItemClick:this.handleMenuItemClick,onMenuItemMouseMove:this.handleMenuItemMouseMove,onMenuItemContextMenu:this.handleMenuItemContextMenu},g);e.push(y)}var b=null;d.length>0&&(b=u.jsx("div",{className:"loading",children:u.jsx(Qe,{className:"loading-spinner-vertical-align"})}));var{menuStyle:P,"data-testid":C}=this.props,j=i!==null&&f!==null&&p!==null;return u.jsxs(u.Fragment,{children:[u.jsxs("div",{className:F({"has-overflow":a},"context-menu-container"),style:sg({top:n,left:r},P),ref:this.container,"data-dh-context-menu":!0,onBlur:this.handleBlur,onKeyDown:this.handleKeyDown,onMouseLeave:this.handleMouseLeave,onContextMenu:ke.handleContextMenu,role:"menuitem",tabIndex:0,"data-testid":C,children:[e,b]}),j&&i!==null&&f!==null&&p!==null&&u.jsx(ke,{actions:s[i].actions||[],closeMenu:this.handleCloseSubMenu,top:f,left:p,updatePosition:(v,S)=>{this.setState({subMenuTop:v,subMenuLeft:S})},subMenuParentWidth:h,subMenuParentHeight:m},"sub-".concat(i))]})}}le(ke,"defaultProps",{subMenuParentWidth:0,subMenuParentHeight:0,closeMenu(){},onMenuOpened(){},onMenuClosed(){},options:{},menuStyle:{},"data-testid":void 0});function Zn(t,e,n){return(e=cg(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function cg(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||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}class Ba extends c.Component{constructor(e){super(e),Zn(this,"container",void 0),Zn(this,"openMenu",void 0),this.handleMenuClose=this.handleMenuClose.bind(this),this.handleContextMenu=this.handleContextMenu.bind(this),this.container=U.createRef(),this.openMenu=U.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 s=document.elementFromPoint(i,r),l=new MouseEvent("contextmenu",{clientX:e.clientX,clientY:e.clientY,bubbles:!0,cancelable:!0});s==null||s.dispatchEvent(l)});return}if(ce.isContextActionEvent(e)&&!(e.metaKey||e.ctrlKey)){var o=ce.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(ke,{ref:this.openMenu,actions:r,onMenuClosed:this.handleMenuClose,top:i,left:a,updatePosition:(o,s)=>{this.setState({top:o,left:s})},"data-testid":n})),u.jsx("div",{className:F("context-menu-root",{active:r}),ref:this.container,children:e})}}function Wa(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||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}class ne extends c.Component{static handleEnter(e){var n=e;n.style.height="0"}static handleEntering(e){var n=e;n.style.height="".concat(ne.getHeight(n),"px")}static handleExiting(e){var n=e;n.style.height="0"}static handleExit(e){var n=e;n.style.height="".concat(ne.getHeight(n),"px")}static getHeight(e){var n=e.scrollWidth-e.clientWidth;return e.scrollHeight-n}constructor(e){super(e),this.handleEntered=this.handleEntered.bind(this)}handleEntered(e){var n=e;n.style.height="";var{autoFocusOnShow:r}=this.props;if(r!==void 0&&r){var i=n.querySelector("input, select, textarea");i!=null&&i.focus()}}render(){var{children:e,className:n,in:r,"data-testid":i}=this.props;return u.jsx(Qr,{in:r,classNames:{enterActive:"collapsing",enterDone:"collapse show",exitActive:"collapsing",exitDone:"collapse"},onEnter:ne.handleEnter,onEntering:ne.handleEntering,onEntered:this.handleEntered,onExit:ne.handleExit,onExiting:ne.handleExiting,timeout:350,children:a=>u.jsx("div",{className:F({collapse:a==="exited"},n),"data-testid":i,children:e})})}}Wa(ne,"propTypes",{className:M.string,in:M.bool.isRequired,children:M.node.isRequired,autoFocusOnShow:M.bool,"data-testid":M.string});Wa(ne,"defaultProps",{className:"",autoFocusOnShow:!1,"data-testid":void 0});var hg=V.module("TimeInput"),mg="([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]",gg=["00:00:00","12:34:56","23:59:59"];function er(t){return t!=null?"".concat(t.substring(0,8).replace(/\u2007/g,"0")).concat("00:00:00".substring(t.length)):t}var Re=U.forwardRef((t,e)=>{var{allowValueWrapping:n=!0,className:r="",onChange:i=()=>!1,value:a=0,onFocus:o=()=>!1,onBlur:s=()=>!1,onSelect:l=()=>!1,"data-testid":d}=t,[f,p]=c.useState(Ye.formatTime(a)),h=c.useRef(a),[m,g]=c.useState(),x=c.useRef(null);c.useImperativeHandle(e,()=>({focus:()=>{var v;(v=x.current)===null||v===void 0||v.focus()},setSelection:v=>{var S;(S=x.current)===null||S===void 0||S.focus(),g(v)}}),[]),c.useEffect(function(){h.current!==a&&(p(Ye.formatTime(a)),h.current=a)},[h,a]);function y(v,S,I){var _=v.selectionStart===0?24:60,A=parseInt(I,10)-S;return Number.isNaN(A)?A=0:n?A=(A%_+_)%_:A=Math.min(Math.max(0,A),_-1),"".concat(A).padStart(2,"0")}function b(v,S,I,_,A){return _===0&&A===2&&S===1&&parseInt(I,10)>1?"0".concat(I).concat(v.substring(2)):sa(v,S,I)}var P=c.useCallback(v=>{hg.debug("handleChange",v),p(v),h.current=Ye.parseTime(er(v)),i(h.current)},[i]),C=c.useCallback(()=>{var v=er(f);v!==f&&p(v),s()},[f,s]),j=c.useCallback(v=>{g(v),l(v)},[l]);return u.jsx(rn,{ref:x,className:r,example:gg,getNextSegmentValue:y,getPreferredReplacementString:b,onChange:P,onSelect:j,pattern:mg,selection:m,value:f,onFocus:o,onBlur:C,"data-testid":d})});Re.defaultProps={allowValueWrapping:!0,className:"",onChange:()=>!1,onSelect:()=>!1,value:0,onFocus:()=>!1,onBlur:()=>!1,"data-testid":void 0};function tr(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 yg(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?tr(Object(n),!0).forEach(function(r){de(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):tr(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function de(t,e,n){return(e=vg(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function vg(t){var e=bg(t,"string");return typeof e=="symbol"?e:e+""}function bg(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var nr=-1,Et;(function(t){t.UP="UP",t.DOWN="DOWN"})(Et||(Et={}));class X extends c.Component{constructor(e){super(e),de(this,"csContainer",void 0),de(this,"menuContainer",void 0),de(this,"button",void 0),de(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=U.createRef(),this.menuContainer=U.createRef(),this.button=U.createRef(),this.input=U.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 Ye.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(X.MENU_NAVIGATION_DIRECTION.UP):this.handleMenuNavigation(X.MENU_NAVIGATION_DIRECTION.DOWN),e.stopPropagation(),e.preventDefault();break;case"ArrowUp":this.handleMenuNavigation(X.MENU_NAVIGATION_DIRECTION.UP),e.stopPropagation(),e.preventDefault();break;case"ArrowDown":this.handleMenuNavigation(X.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 X.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 X.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===nr){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(s=>s.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>X.DROP_DOWN_MENU_HEIGHT?r.scrollTop=i.offsetTop-X.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:s}=this.state,l=!1,d=[],f=0;f<e.length;f+=1){var p=e[f],h="option-".concat(f,"-").concat(p.value);l=l||p.value===n,d.push(u.jsxs("button",{type:"button",value:f,className:F("cs-option-btn",{"keyboard-active":a===f&&!s}),onClick:this.handleOptionClick,onFocus:this.handleOptionFocus,children:[p.value===n&&u.jsx(Z,{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:nr,className:F("cs-option-btn",{"keyboard-active":s}),onClick:this.handleOptionClick,onFocus:this.handleOptionFocus,children:[!l&&n!==null?u.jsx(Z,{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(Re,{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=yg({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:F("input-group-append cs-dropdown",{"cs-dropdown-invalid":n}),children:u.jsxs("button",{type:"button",className:F("btn cs-btn form-control",{"cs-btn-invalid":n}),ref:this.button,onClick:this.toggleMenu,disabled:e,children:[u.jsx("span",{className:F({"text-muted":r===null}),children:this.getSelectedText()}),u.jsx("span",{className:"cs-caret"}),u.jsx(gi,{isShown:a,actions:{menuElement:this.renderMenuElement()},popperOptions:o,popperClassName:"CustomTimeSelect",onMenuOpened:this.handleMenuOpened,onMenuClosed:this.handleMenuExited,menuStyle:{maxWidth:"100rem"}})]})})})}}de(X,"MENU_NAVIGATION_DIRECTION",Et);de(X,"DROP_DOWN_MENU_HEIGHT",125);de(X,"defaultProps",{onChange(){},value:null,disabled:!1,popperOptions:{},icon:el,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 Pg=V.module("DateInput"),xg="[12][0-9]{3}-(0[1-9]|1[0-2])-(0[1-9]|[1-2][0-9]|3[0-1])",wg=["2000-01-01","2022-12-31"],Og="YYYY-MM-DD",Va=U.forwardRef((t,e)=>{var{className:n="",onChange:r=()=>{},defaultValue:i="",onFocus:a=()=>{},onBlur:o=()=>{},"data-testid":s}=t,[l,d]=c.useState(i),[f,p]=c.useState(),h=c.useCallback(m=>{Pg.debug("handleChange",m),d(m),r(m)},[r]);return u.jsx("div",{className:"d-flex flex-row align-items-center",children:u.jsx(rn,{ref:e,className:F(n),example:wg,getNextSegmentValue:Lp,onChange:h,onSelect:p,pattern:xg,placeholder:Og,selection:f,value:l,onFocus:a,onBlur:o,"data-testid":s})})});Va.displayName="DateInput";var Sg={CYCLE_TO_NEXT_STACK:fe.createAndAdd({id:"NAVIGATION.CYCLE_TO_NEXT_STACK",name:"Cycle To Next Stack",shortcut:[Y.CTRL,z.SINGLE_QUOTE],macShortcut:[Y.CMD,z.SINGLE_QUOTE],isEditable:!0}),CYCLE_TO_PREVIOUS_STACK:fe.createAndAdd({id:"NAVIGATION.CYCLE_TO_PREVIOUS_STACK",name:"Cycle To Previous Stack",shortcut:[Y.CTRL,z.SEMICOLON],macShortcut:[Y.CMD,z.SEMICOLON],isEditable:!0}),CYCLE_TO_NEXT_TAB:fe.createAndAdd({id:"NAVIGATION.CYCLE_TO_NEXT_TAB",name:"Cycle To Next Tab",shortcut:[Y.CTRL,Y.SHIFT,z.DOUBLE_QUOTE],macShortcut:[Y.CMD,Y.SHIFT,z.SINGLE_QUOTE],isEditable:!0}),CYCLE_TO_PREVIOUS_TAB:fe.createAndAdd({id:"NAVIGATION.CYCLE_TO_PREVIOUS_TAB",name:"Cycle To Previous TAB",shortcut:[Y.CTRL,Y.SHIFT,z.COLON],macShortcut:[Y.CMD,Y.SHIFT,z.SEMICOLON],isEditable:!0}),CYCLE_TO_NEXT_DASHBOARD:fe.createAndAdd({id:"NAVIGATION.CYCLE_TO_NEXT_DASHBOARD",name:"Cycle To Next Dashboard",shortcut:[Y.CTRL,z.PERIOD],macShortcut:[Y.CMD,z.PERIOD],isEditable:!0}),CYCLE_TO_PREVIOUS_DASHBOARD:fe.createAndAdd({id:"NAVIGATION.CYCLE_TO_PREVIOUS_DASHBOARD",name:"Cycle To Previous Dashboard",shortcut:[Y.CTRL,z.COMMA],macShortcut:[Y.CMD,z.COMMA],isEditable:!0})};function Eg(t){var{isInvalid:e=!1,items:n,onAdd:r=()=>{},onDelete:i=()=>{},validate:a=()=>null}=t,[o,s]=c.useState(null),[l,d]=c.useState([]),[f,p]=c.useState(""),h=c.useCallback(C=>{d(C)},[]),m=c.useCallback(()=>{i(Pn.getItemsInRanges(n,l)),d([])},[n,l,i]),g=c.useCallback(()=>{if(f!==""){var C=a(f);C==null?(r(f),p("")):s(C)}},[f,r,a]),x=c.useCallback(C=>{var{value:j}=C.target;p(j),s(j===""?null:a(j))},[a]),y=c.useCallback(()=>{d([])},[]),b=c.useCallback(C=>{C.key==="Enter"&&g()},[g]),P=c.useMemo(()=>14+Jr(n.length,1,6)*gt.DEFAULT_ROW_HEIGHT,[n.length]);return u.jsxs("div",{className:F("editable-item-list-container",{"is-invalid":e}),children:[u.jsx("div",{style:{height:P},children:u.jsx(gt,{itemCount:n.length,items:n.map((C,j)=>({value:C,isSelected:Pn.isSelected(l,j)})),offset:0,selectedRanges:l,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:F("form-control",{"is-invalid":o!=null}),placeholder:"Enter value",type:"text",value:f,onChange:x,onFocus:y,onKeyDown:b})}),u.jsxs("div",{className:"d-flex align-items-start mt-1 ml-2",children:[u.jsx(K,{kind:"ghost",onClick:g,disabled:o!=null||f==="",icon:tl,tooltip:"Add new item","data-testid":"add-item-button"}),u.jsx(K,{kind:"ghost",onClick:m,disabled:l.length===0,icon:si,tooltip:"Delete selected items","data-testid":"delete-item-button"})]})]})]})}function Tg(t){var{message:e,isExpanded:n=!1,type:r="Error"}=t,[i,a]=c.useState(!1),[o,s]=c.useState(!1),l=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 Ze(l.current,p),c.useLayoutEffect(p,[p]),u.jsxs("div",{className:F("error-view",{expanded:o||n}),ref:l,children:[u.jsxs("div",{className:"error-view-header",children:[u.jsxs("div",{className:"error-view-header-text",children:[u.jsx(Z,{icon:nl}),u.jsx("span",{children:r})]}),u.jsxs("div",{className:"error-view-buttons",children:[u.jsx(Hi,{kind:"danger",className:"error-view-copy-button",tooltip:"Copy exception contents",copy:"".concat(r,": ").concat(e).trim()}),(i||o)&&!n&&u.jsx(K,{kind:"danger",className:"error-view-expand-button",onClick:()=>{s(!o)},icon:o?rl:il,children:o?"Show Less":"Show More"})]})]}),u.jsx("pre",{className:"error-view-text",ref:d,children:e})]})}function Cg(t,e,n){return(e=jg(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function jg(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||"default");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 s=new Map(o);if(n!=null)s.set(n,o.get(n)!==!0);else{var l=Pe.isParentSelected(e,a),d=l==null||!l;o.forEach((h,m)=>s.set(m,d))}a.set(e,s)}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 s=new Map;a.forEach((l,d)=>s.set(d,e)),i.set(o,s)}}),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(yt,{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[s,l]=o;return u.jsx(yt,{className:"hcm-child",checked:l,onChange:()=>this.toggleValueFor(i,s),children:s},s)})]},i)}),u.jsx(K,{kind:"ghost",onClick:this.selectAll,"data-testid":n!==void 0?"".concat(n,"-btn-select-all"):void 0,children:"Select All"}),u.jsx(K,{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:F("btn hcm-btn",n),onClick:this.toggleMenu,id:i,"data-testid":a,children:[u.jsxs("span",{children:[r&&u.jsx(Z,{icon:r,className:"hcm-icon mr-1"}),e]}),u.jsx("span",{className:"cs-caret"}),u.jsx(Kt,{options:{placement:"bottom"},isShown:o,onExited:()=>{this.setState({menuIsOpen:!1})},closeOnBlur:!0,interactive:!0,children:this.renderMenuElement()})]})}}Cg(Pe,"defaultProps",{className:"",icon:null,id:"","data-testid":void 0});function rr(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 st(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?rr(Object(n),!0).forEach(function(r){_g(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):rr(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function _g(t,e,n){return(e=kg(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function kg(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||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var Ha=c.memo(t=>{var{tab:e,onClose:n,onSelect:r,isActive:i,activeRef:a,index:o,isDraggable:s,contextActions:l}=t,{key:d,isClosable:f=n!=null,title:p,icon:h}=e,m;return h!=null&&(m=U.isValidElement(h)?h:u.jsx(Z,{icon:h})),u.jsx($o,{draggableId:d,index:o,isDragDisabled:!s,children:(g,x)=>u.jsxs("div",{className:"context-menu-wrapper",ref:i?a:null,children:[u.jsxs("div",st(st(st({ref:g.innerRef},g.draggableProps),g.dragHandleProps),{},{className:F("btn btn-link btn-nav-tab",{active:i},{dragging:x.isDragging}),"data-testid":"btn-nav-tab-".concat(p),role:"tab",tabIndex:0,onAuxClick:y=>{f&&y.button===1&&y.buttons===0&&(n==null||n(d))},onClick:y=>{if(f&&y.button===1&&y.buttons===0){n==null||n(d);return}y.button===0&&y.buttons===0&&(y.target.focus(),r(d))},onKeyPress:y=>{y.key==="Enter"&&r(d)},children:[m,u.jsxs("span",{className:"btn-nav-tab-title",children:[p,u.jsx(Fe,{children:p})]}),f&&u.jsx(K,{kind:"ghost",className:"btn-nav-tab-close",onClick:y=>{n==null||n(d),y.stopPropagation(),y.preventDefault()},icon:li,tooltip:"Close"})]})),u.jsx(qt,{actions:l})]})},d)});Ha.displayName="NavTab";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 ar(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){Dg(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 Dg(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=Ag(t,"string");return typeof e=="symbol"?e:e+""}function Ag(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var Fg=500,Ng=.01,Mg=5e-4;function or(t){return t.scrollLeft===0}function sr(t){return t.scrollLeft+t.clientWidth===t.scrollWidth||t.scrollWidth===0}function $g(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,s=e.length-1;s>0&&e[s].key!==t.key;s-=1)if(e[s].isClosable===!0){o=!1;break}a.push({title:"Close to the Right",order:20,group:20,action:()=>{for(var l=e.length-1;l>0&&e[l].key!==i;l-=1)e[l].isClosable===!0&&n(e[l].key)},disabled:o}),a.push({title:"Close All",order:30,group:20,action:()=>{e.forEach(l=>{l.isClosable===!0&&n(l.key)})}})}return a}function Ug(t){var{activeKey:e,tabs:n,onSelect:r,onReorder:i,onClose:a,makeContextActions:o}=t,s=c.useRef(),[l,d]=c.useState(!0),[f,p]=c.useState(!0),[h,m]=c.useState(!0),g=c.useCallback(()=>{s.current!=null&&(s.current.clientWidth<s.current.scrollWidth&&n.length>0?d(!0):d(!1),p(or(s.current)),m(sr(s.current)))},[n]);Ze(s.current,g);var x=c.useCallback(w=>{wt.stopDragging(),w.destination&&(i==null||i(w.source.index,w.destination.index))},[i]),y=c.useCallback(()=>{if(s.current!=null){var w=or(s.current);w!==f&&p(w);var O=sr(s.current);O!==h&&m(O)}},[f,h]),b=c.useRef({cancelClick:!1}),P=c.useCallback(()=>{if(!(s.current==null||b.current.cancelClick))for(var{children:w}=s.current,O=w.length-1;O>=0;O-=1){var k=w[O];if(k.offsetLeft<s.current.scrollLeft-5){k.scrollIntoView({behavior:"smooth",block:"nearest",inline:"start"});return}}},[]),C=c.useCallback(()=>{if(!(s.current==null||b.current.cancelClick))for(var{children:w}=s.current,O=0;O<w.length;O+=1){var k=w[O];if(k.offsetLeft+5>s.current.scrollLeft+s.current.offsetWidth){k.scrollIntoView({behavior:"smooth",block:"nearest",inline:"end"});return}}},[]),j=c.useCallback(function(w,O){var k=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,N=arguments.length>3?arguments[3]:void 0,W=s.current;W!=null&&(b.current.cancelClick=!0,w==="left"?W.scrollLeft=O-k:w==="right"&&(W.scrollLeft=O+k),b.current.rAF=requestAnimationFrame(G=>{var q=N??G,T=G-q,R=Ng*T+.5*Mg*T**2;R=Math.min(R,W.scrollWidth),j(w,O,R,q)}))},[]),v=c.useCallback(()=>{var{holdTimer:w,rAF:O}=b.current;w!=null&&(clearTimeout(w),b.current.holdTimer=void 0),O!=null&&(cancelAnimationFrame(O),b.current.rAF=void 0),window.removeEventListener("mouseup",v)},[]);c.useEffect(()=>()=>window.removeEventListener("mouseup",v),[v]);var S=c.useCallback(w=>{s.current!=null&&(b.current.holdTimer=window.setTimeout(j,Fg,w,s.current.scrollLeft)),b.current.cancelClick=!1,window.addEventListener("mouseup",v)},[v,j]),I=c.useCallback(()=>{S("left")},[S]),_=c.useCallback(()=>{S("right")},[S]);c.useEffect(function(){var O,k=N=>{N.stopPropagation(),N.preventDefault();var W=N.currentTarget,G=Math.abs(N.deltaY)>Math.abs(N.deltaX)?N.deltaY:N.deltaX;W.scrollLeft+=Jr(G,-30,30)};return(O=s.current)===null||O===void 0||O.addEventListener("wheel",k),()=>{var N;(N=s.current)===null||N===void 0||N.removeEventListener("wheel",k)}},[]);var A=c.useMemo(()=>{var w=new Map;return n.forEach(O=>{var{key:k}=O,N=[()=>$g(O,n,a),()=>{var W;return(W=o==null?void 0:o(O))!==null&&W!==void 0?W:[]}];w.set(k,N)}),w},[o,n,a]),L=c.useRef(null),H=n.find(w=>w.key===e),E=n.map((w,O)=>{var{key:k}=w,N=w===H;return u.jsx(Ha,{tab:w,index:O,isActive:N,activeRef:L,onSelect:r,onClose:a,isDraggable:i!=null,contextActions:A.get(k)},k)});return c.useEffect(function(){L.current!=null&&L.current.scrollIntoView({block:"nearest",inline:"nearest"})},[e]),u.jsxs("nav",{className:"nav-container",children:[l&&u.jsx(K,{kind:"ghost",icon:u.jsx(Z,{icon:al,transform:"grow-4"}),className:"tab-controls-btn tab-controls-btn-left",tooltip:"Scroll left",onClick:P,onMouseDown:I,disabled:f}),u.jsx(Uo,{onDragStart:wt.startDragging,onDragEnd:x,children:u.jsx(Bo,{droppableId:"droppable-tab-navigation",direction:"horizontal",children:(w,O)=>u.jsxs("div",ar(ar({ref:k=>{k!=null&&(s.current=k,w.innerRef(k))}},w.droppableProps),{},{className:F("nav nav-tabs",{dragging:O.draggingFromThisWith}),role:"tablist",onScroll:y,children:[E,w.placeholder]}))})}),l&&u.jsx(K,{kind:"ghost",icon:u.jsx(Z,{icon:ol,transform:"grow-4"}),className:"tab-controls-btn tab-controls-btn-right",tooltip:"Scroll right",onClick:C,onMouseDown:_,disabled:h})]})}var Bg=.025,Wg=.9,Vg=.1,Hg=.618,lr=80,ye={SIZE:8,DOT_SIZE:2},oe=18,Yg=250,Gg=60*1e3,Kg={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 qg(){return ui(Kg)}var Ya=U.memo(()=>{var{activeThemes:t}=tt(),e=c.useMemo(qg,[t]),n=c.useRef(null),r=c.useRef(null),[i,a]=c.useState(!1),o=window.devicePixelRatio,s,l,d,f,p,h=null,m=[];function g(){var E;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),(E=s)===null||E===void 0||E.scale(o,o)}function x(){var{foregroundFill:E,foregroundStroke:w}=e,O=document.createElement("canvas");O.width=ye.SIZE,O.height=ye.SIZE;var k=O.getContext("2d");return k!=null&&(k.fillStyle=w,k.fillRect(0,0,ye.DOT_SIZE,ye.DOT_SIZE),k.fillStyle=E,k.fillRect(0,0,ye.SIZE,ye.SIZE)),k==null?void 0:k.createPattern(O,"repeat")}function y(E){var w=Math.random()-.5,O=Bg*w;return E<Vg?O=Math.abs(O):E>Wg&&(O=-Math.abs(O)),E+O}function b(){for(var E=[],w=Hg,O=0;O<d+oe;O+=1)w=y(w),E.push(w);return E}function P(){for(;m.length>=d+oe;)m.pop();for(;m.length<d+oe;)m.push(y(m[m.length-1]))}function C(E,w){w.beginPath(),w.moveTo(-1,f+1),w.lineTo(-1,f*E[0]);for(var O=0;O<E.length;O+=1)w.lineTo(O,f*E[O]);w.lineTo(d+oe,f*E[E.length-1]),w.lineTo(d+oe,f+1),w.closePath()}function j(E){E.beginPath();for(var w=1;w<d;w+=lr)E.moveTo(w,0),E.lineTo(w,f);for(var O=1;O<f;O+=lr)E.moveTo(0,O),E.lineTo(d,O)}function v(E){var w,O,k;h=(w=h)!==null&&w!==void 0?w:E;var{background:N,foregroundStroke:W,gridColor:G}=e;Je(s),s.fillStyle=N,s.fillRect(0,0,d,f),j(s),s.lineWidth=1,s.strokeStyle=G,s.stroke();var q=(((O=h)!==null&&O!==void 0?O:0)-(E??0))/(1e3/oe);if(s.translate(q,0),C(m,s),s.lineWidth=2,s.strokeStyle=W,s.stroke(),s.translate(-q,0),l!=null&&(s.fillStyle=l),s.fill(),s.setTransform(o,0,0,o,0,0),(E??0)-((k=h)!==null&&k!==void 0?k:0)>1e3/oe){for(var T,R=Math.floor(((E??0)-((T=h)!==null&&T!==void 0?T:0))/(1e3/oe)),D=0;D<R;D+=1)m.shift(),m.push(y(m[m.length-1]));h=E}p!=null&&cancelAnimationFrame(p),p=requestAnimationFrame(v)}var S=je(()=>{p=requestAnimationFrame(E=>{g(),P(),a(!1),v(E)})},Yg,{leading:!0});function I(){a(!0),p!=null&&cancelAnimationFrame(p),p=null,h=null}var _=je(()=>{I()},Gg);function A(){p==null&&(a(!1),g(),P(),p=requestAnimationFrame(v)),_()}function L(){document.hasFocus()&&A()}function H(){p!=null&&cancelAnimationFrame(p),_(),S()}return c.useEffect(()=>{var E;return s=(E=n.current)===null||E===void 0?void 0:E.getContext("2d",{alpha:!1}),g(),m=b(),l=x(),v(),_(),window.addEventListener("resize",H),window.addEventListener("focus",A),window.addEventListener("blur",I),window.addEventListener("mousemove",L),window.addEventListener("keydown",L),()=>{p!=null&&cancelAnimationFrame(p),window.removeEventListener("resize",H),window.removeEventListener("focus",A),window.removeEventListener("blur",I),window.removeEventListener("mousemove",L),window.removeEventListener("keydown",L),_.cancel(),S.cancel()}},[e]),u.jsx("div",{className:"random-area-plot-animation-container",ref:r,children:u.jsx("canvas",{ref:n,className:i?"shade":""})})});function Ga(t){var{text:e,placement:n="top-start"}=t,r=c.useMemo(()=>({placement:n}),[n]);return u.jsxs(u.Fragment,{children:[u.jsx(it,{UNSAFE_className:tn.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 ur(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 cr(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?ur(Object(n),!0).forEach(function(r){Xg(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ur(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function Xg(t,e,n){return(e=Qg(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Qg(t){var e=Jg(t,"string");return typeof e=="symbol"?e:e+""}function Jg(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Zg(t,e){if(t==null)return{};var n,r,i=ey(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 ey(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 ty(t){var{scrollRef:e,getItemDisplayText:n,getKey:r}=t,i=Zg(t,zg),a=c.useCallback(o=>{var s=r(o),l=n(o);return u.jsx(ze,{textValue:l??String(s),children:u.jsx(Ga,{text:l})},s)},[n,r]);return u.jsx(Mt,cr(cr({},i),{},{ref:e,menuTrigger:"focus",onSelectionChange:i.onSelectionChange,children:a}))}var ny=500;function ry(t){var{heading:e,content:n,delayMs:r=ny}=t,[i,a]=c.useState(!1);return c.useEffect(()=>{window.setTimeout(()=>{a(!0)},r)},[r]),i?u.jsxs(Zr,{children:[u.jsx(Le,{size:"XXL",children:u.jsx(Z,{icon:sl})}),u.jsx(at,{children:e}),n==null?null:u.jsx($t,{children:n})]}):null}const iy="_modified_5rbci_24",ay="_track_5rbci_35",oy="_handle_5rbci_15",sy="_ticks_5rbci_103",Ka={"handle-size":"15px","popover-width":"90px","time-slider":"_time-slider_5rbci_5","time-slider-popovers":"_time-slider-popovers_5rbci_10","handle-popper":"_handle-popper_5rbci_15",modified:iy,"flex-spacer":"_flex-spacer_5rbci_31",track:ay,"track-fills":"_track-fills_5rbci_42","track-fill":"_track-fill_5rbci_42","track-fill-start":"_track-fill-start_5rbci_60","track-fill-middle":"_track-fill-middle_5rbci_61","track-fill-end":"_track-fill-end_5rbci_64","handle-track":"_handle-track_5rbci_67",handle:oy,ticks:sy,"tick-labels":"_tick-labels_5rbci_121","tick-label":"_tick-label_5rbci_121","tick-label-wrapper":"_tick-label-wrapper_5rbci_137"};var We=parseInt(Ka["handle-size"],10),dr=parseInt(Ka["popover-width"],10),Q=24*60*60-1,pr=5*60;function ly(t){var{startTime:e,endTime:n,onChange:r,isStartModified:i=!1,isEndModified:a=!1,"data-testid":o}=t,[s,l]=c.useState(e),[d,f]=c.useState(n),p=c.useRef(null);c.useEffect(function(){l(e),f(n)},[e,n]);var h=c.useCallback((x,y)=>{var b=x,P=y;b===P&&(P<Q?P+=1:b-=1),l(b),f(P),r({startTime:b,endTime:P})},[l,f,r]),m=c.useCallback(x=>{h(x,d)},[h,d]),g=c.useCallback(x=>{h(s,x)},[h,s]);return u.jsxs("div",{className:"time-slider","data-testid":o,children:[u.jsx(uy,{startTime:s,endTime:d,onStartTimeChange:m,onEndTimeChange:g,isStartModified:i,isEndModified:a}),u.jsxs("div",{className:"track",ref:p,children:[u.jsx(cy,{startTime:s,endTime:d}),u.jsx("div",{className:"ticks",children:Array(24).fill(null).map((x,y)=>u.jsx("div",{className:"tick"},y))}),u.jsx(fr,{track:p,time:s,setTime:m}),u.jsx(fr,{track:p,time:d,setTime:g})]}),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((x,y)=>u.jsx("div",{className:"tick-label",children:"".concat(y+1,":00")},y))})]})]})}function uy(t){var{startTime:e,endTime:n,onStartTimeChange:r,onEndTimeChange:i,isStartModified:a,isEndModified:o,"data-testid":s}=t,l=e>n,[d,f]=c.useState(l?n:e),[p,h]=c.useState(l?e:n),m=c.useRef(null),g=c.useRef(null),x=c.useRef(null),y=c.useRef(null);c.useEffect(function(){f(e>n?n:e),h(e>n?e:n)},[e,n]),c.useEffect(function(){if(x.current!==null){var S;(S=g.current)===null||S===void 0||S.setSelection(x.current)}if(y.current!==null){var I;(I=m.current)===null||I===void 0||I.setSelection(y.current)}},[l]);function b(v){e<=n?r(v):i(v)}function P(v){e<=n?i(v):r(v)}var C=c.useCallback(v=>{x.current=v,y.current=null},[]),j=c.useCallback(v=>{x.current=null,y.current=v},[]);return u.jsxs("div",{className:"time-slider-popovers",children:[u.jsx("div",{className:"flex",style:{flexBasis:"calc(".concat(d/Q*100,"% - ").concat(dr/2,"px)")}}),u.jsxs("div",{className:"handle-popper",children:[u.jsx("label",{className:F({modified:l?o:a}),children:l?"End Time":"Start Time"}),u.jsx(Re,{ref:m,allowValueWrapping:!1,value:d,onChange:b,onSelect:C,"data-testid":s!==void 0?"".concat(s,"-input-1"):void 0})]}),u.jsx("div",{className:"flex-spacer"}),u.jsxs("div",{className:"handle-popper",children:[u.jsx("label",{className:F({modified:l?a:o}),children:l?"Start Time":"End Time"}),u.jsx(Re,{ref:g,allowValueWrapping:!1,value:p,onChange:P,onSelect:j,"data-testid":s!==void 0?"".concat(s,"-input-2"):void 0})]}),u.jsx("div",{className:"flex",style:{flexBasis:"calc(".concat((Q-p)/Q*100,"% - ").concat(dr/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/Q,")")}}),u.jsx("div",{className:"track-fill track-fill-end",style:{transform:"scaleX(".concat((Q-e)/Q,")")}})]}),e<n&&u.jsx("div",{className:"track-fill track-fill-middle",style:{transform:"translateX(".concat(e/Q*100,"%) scaleX(").concat((n-e)/Q,")")}})]})}function fr(t){var{track:e,time:n,setTime:r,"data-testid":i}=t,a=c.useMemo(()=>{var h=3600,m=We/2;return n<h?m=n/h*(We/2):n>23*h&&(m=We/2+1/(Q-23*h)*(n-23*h)*(We/2)),"translateX(calc(".concat(n/Q*100,"% - ").concat(m,"px))")},[n]),o=c.useCallback(h=>{if(!e.current)return 0;var m=e.current.getBoundingClientRect(),g=Math.max(h-m.left,0),x=Q*Math.min(1,g/m.width),y=pr*Math.round(x/pr),b=Math.min(Q,y);return b},[e]),s=c.useCallback(h=>{var{clientX:m}=h;r(o(m))},[r,o]),l=c.useCallback(h=>{var{clientX:m}=h;r(o(m)),window.removeEventListener("mousemove",s),window.removeEventListener("mouseup",l),document.documentElement.classList.remove("drag-pointer-events-none")},[r,o,s]),d=c.useCallback(()=>{window.addEventListener("mousemove",s),window.addEventListener("mouseup",l),document.documentElement.classList.add("drag-pointer-events-none")},[s,l]),f=c.useCallback(()=>{window.removeEventListener("mousemove",s),window.removeEventListener("mouseup",l),document.documentElement.classList.remove("drag-pointer-events-none")},[s,l]),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 qa(t){var{buttons:e,isShown:n=!1,classNames:r,message:i,type:a,onClick:o,onDismiss:s,"data-testid":l}=t,d=e&&e.length!==0;return u.jsx(Qr,{in:n,timeout:mt.transitionMs,classNames:"toast-notification-slide-up",mountOnEnter:!0,unmountOnExit:!0,children:u.jsxs("div",{className:F("toast-notification",r,a),role:"presentation",onClick:o,onKeyPress:o,"data-testid":l,children:[u.jsx("div",{className:"message-container",children:u.jsx("span",{className:"message",children:i})}),u.jsx(zt,{in:d,timeout:mt.transitionSlowMs,mountOnEnter:!0,unmountOnExit:!0,children:u.jsx("div",{className:"buttons-container",children:e})}),s&&u.jsx(K,{kind:"ghost",icon:li,tooltip:"Close notification",className:"my-2",onClick:s})]})})}qa.TYPE=Object.freeze({ERROR:"error"});const dy=Object.freeze(Object.defineProperty({__proto__:null,ACTION_ICON_HEIGHT:nn,Accordion:Wo,ActionBar:Xr,ActionButton:Xe,ActionButtonDialogTrigger:Fa,ActionGroup:Ap,ActionMenu:Fp,AlertDialog:Vo,AutoCompleteInput:ee,AutoResizeTextarea:ln,Avatar:Ho,Badge:Yo,BasicModal:yi,Breadcrumbs:Go,BulkActionBar:og,Button:K,ButtonGroup:zr,CSS_VAR_EXPRESSION_PREFIX:ll,Calendar:Ko,CardFlip:vd,Checkbox:yt,CheckboxGroup:Am,Collapse:ne,ColorEditor:qo,ColorPicker:zo,ColorValues:Np,ComboBox:Mp,ComboBoxNormalized:Da,ConfirmActionButton:Ym,ConfirmationDialog:Na,Content:$t,ContextActionUtils:ce,ContextActions:qt,ContextMenuItem:mi,ContextMenuRoot:Ba,ContextualHelp:Xo,ContextualHelpTrigger:Qo,CopyButton:Hi,CustomTimeSelect:X,DEFAULT_DARK_THEME_KEY:ul,DEFAULT_DARK_THEME_PALETTE:cl,DEFAULT_GET_PREFERRED_REPLACEMENT_STRING:sa,DEFAULT_LIGHT_THEME_KEY:dl,DEFAULT_PRELOAD_DATA_VARIABLES:pl,DH_CSS_VAR_NAME_REGEXP:fl,DH_VAR_PREFIX:hl,DateField:Jo,DateInput:Va,DatePicker:Zo,DateRangePicker:es,DateTimeInput:$p,DebouncedModal:$a,DebouncedSearchInput:vu,Dialog:Gr,DialogContainer:ts,DialogTrigger:Yr,Disclosure:ns,DisclosurePanel:rs,DisclosureTitle:is,Divider:Kr,DragUtils:wt,DraggableItemList:Up,DropdownMenu:gi,EXTERNAL_THEME_KEY:ml,EditableItemList:Eg,ErrorBoundary:bu,ErrorView:Tg,FadeTransition:zt,Flex:Hr,Footer:as,Form:qr,GLOBAL_SHORTCUTS:vi,Grid:os,Header:ss,Heading:at,HierarchicalCheckboxMenu:Pe,ITEM_EMPTY_STRING_TEXT_VALUE:Bp,Icon:Le,IconActionButton:Ma,IllustratedMessage:Zr,Image:ls,InfoModal:Ua,InlineAlert:us,Item:ze,ItemContent:Wp,ItemList:gt,ItemListItem:Pu,ItemTooltip:Vp,get KEY(){return z},Keyboard:cs,LIST_VIEW_ROW_HEIGHTS:la,LabeledValue:ds,Link:ei,ListActionGroup:Hp,ListActionMenu:Yp,ListView:cm,ListViewNormalized:La,ListViewWrapper:sn,LoadingOverlay:ge,LoadingSpinner:Qe,LogicButton:ps,Logo:Yh,get MODIFIER(){return Y},MSG_REQUEST_GET_THEME:gl,MSG_REQUEST_SET_THEME:ai,MaskedInput:rn,Menu:Gp,MenuItem:Kp,MenuTrigger:fs,Meter:hs,Modal:Wt,ModalBody:Vt,ModalFooter:bi,ModalHeader:ci,NAVIGATION_SHORTCUTS:Sg,NON_WHITESPACE_REGEX:yl,NavTabList:Ug,NumberField:ms,Option:ua,PICKER_ITEM_HEIGHTS:qp,PICKER_TOP_OFFSET:zp,PRELOAD_TRANSPARENT_THEME_QUERY_PARAM:vl,Page:Xp,Picker:Qp,PickerNormalized:Jp,Popper:Kt,ProgressBar:gs,ProgressCircle:ys,Radio:vs,RadioGroup:bs,RandomAreaPlotAnimation:Ya,RangeCalendar:Ps,RangeSlider:xs,SVG_ICON_MANUAL_COLOR_MAP:bl,SearchField:ws,SearchInput:Pi,SearchableCombobox:ty,Section:Zp,Select:xi,SelectValueList:ca,Shortcut:xu,ShortcutRegistry:fe,SlideTransition:ef,Slider:Os,SocketedButton:bd,SpectrumButton:ft,SpectrumCheckbox:pt,SpectrumComboBox:Mt,SpectrumMenu:Ss,SplitButtonGroup:wu,Stack:tf,StatusLight:Es,SubmenuTrigger:Ts,Switch:Cs,TABLE_ROW_HEIGHT:nf,THEME_CACHE_LOCAL_STORAGE_KEY:Pl,THEME_KEY_OVERRIDE_QUERY_PARAM:xl,TMP_CSS_PROP_PREFIX:wl,TRANSPARENT_PRELOAD_DATA_VARIABLES:Ol,TabList:js,TabPanels:xh,TableViewEmptyState:ry,Tabs:Is,TagGroup:_s,Text:it,TextArea:ks,TextField:Rs,TextWithTooltip:Ga,ThemeContext:Ou,ThemeExport:mt,ThemePicker:Hh,ThemeProvider:wi,TimeField:Ds,TimeInput:Re,TimeSlider:ly,ToastContainer:Ls,ToastNotification:qa,ToastQueue:As,ToggleButton:Fs,Tooltip:Fe,UISwitch:Su,View:Aa,WHITESPACE_REGEX:Sl,Well:Ns,XComponentMapContext:Eu,XComponentMapProvider:Tu,baseStyleProps:Ms,calculatePreloadStyleContent:El,canHaveRef:Oi,colorValueStyle:J,createCssVariableResolver:Tl,createPreloadStyleElement:Cl,createXComponent:Cu,extractDistinctCssVariableExpressions:jl,fillToLength:rf,getActiveThemes:Il,getDefaultBaseThemes:_l,getDefaultSelectedThemeKey:kl,getExpressionRanges:Rl,getItemKey:xt,getItemTextValue:af,getPositionOfSelectedItemElement:of,getThemeKey:Dl,getThemeKeyOverride:Ll,getThemePreloadData:Al,isBaseThemeKey:Fl,isClassComponent:ju,isDHColorValue:sf,isExternalThemeData:oi,isExternalThemeEnabled:Ut,isForwardRefComponentType:Iu,isItemElement:lf,isItemElementWithDescription:uf,isItemOrSection:cf,isNormalizedItemsWithKeysList:df,isNormalizedSection:pf,isPreloadTransparentTheme:Nl,isSectionElement:ff,isValidColorVar:Ml,isWrappedComponent:Si,itemSelectionToStringSet:Ge,normalizeTooltipOptions:en,overrideSVGFillColors:$l,parseExternalThemeData:ri,preloadTheme:Ul,replaceSVGFillColor:Bl,requestExternalThemeData:ii,resolveCssVariablesInRecord:ui,resolveCssVariablesInString:Wl,separateSpectrumProps:_a,setThemePreloadData:Vl,themeDHDefault:Hl,themeDark:Yl,themeLight:Gl,trimTrailingMask:hf,useExternalTheme:Ra,useOnChangeTrackUncontrolled:mf,usePickerItemScale:da,usePickerNormalizedProps:ia,usePickerProps:gf,usePickerScrollOnOpen:yf,useRenderNormalizedItem:oa,useSpectrumThemeProvider:Zt,useStaticItemInitialScrollPosition:vf,useStringifiedMultiSelection:ka,useStringifiedSelection:bf,useStyleProps:$s,useTheme:tt,useXComponent:_u,viewStyleProps:Us,wrapIcon:Pf,wrapItemChildren:aa,wrapPrimitiveWithText:xf},Symbol.toStringTag,{value:"Module"}));var za=U.memo(t=>{var{children:e,onError:n,widget:r}=t,[i,a]=Yi(r);return a!=null?(n==null||n(a),null):i==null?null:u.jsx(Ht.Provider,{value:i,children:e})});za.displayName="DeferredApiBootstrap";var un=c.createContext(null);function Xa(t){var[e,n]=c.useState({status:"loading"}),r=c.useContext(un);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 hr(t,e,n,r,i,a,o){try{var s=t[a](o),l=s.value}catch(d){return void n(d)}s.done?e(l):Promise.resolve(l).then(r,i)}function py(t){return function(){var e=this,n=arguments;return new Promise(function(r,i){var a=t.apply(e,n);function o(l){hr(a,r,i,o,s,"next",l)}function s(l){hr(a,r,i,o,s,"throw",l)}o(void 0)})}}var Ve=V.module("useWidget");function fy(t){var[e,n]=c.useState(()=>({widget:null,error:null})),r=Xa(t);return c.useEffect(function(){Ve.debug("loadWidget",t);var{status:a}=r;if(a==="error"){n({widget:null,error:r.error});return}if(a==="loading"){n({widget:null,error:null});return}var{fetch:o}=r,s=!1;function l(){return d.apply(this,arguments)}function d(){return d=py(function*(){try{Je(o);var f=yield o();if(s){Ve.debug2("loadWidgetInternal cancelled",t,f),f.close(),"exportedObjects"in f&&f.exportedObjects.forEach(p=>{p.close()});return}Ve.debug("loadWidgetInternal done",t,f),n({widget:f,error:null})}catch(p){if(s)return;Ve.error("loadWidgetInternal error",t,p),n({widget:null,error:p??new Error("Null error")})}}),d.apply(this,arguments)}return l(),()=>{s=!0}},[t,r]),e}const hy=Object.freeze(Object.defineProperty({__proto__:null,ApiBootstrap:Kl,ApiContext:Ht,ClientBootstrap:pi,ClientContext:tu,DeferredApiBootstrap:za,DeferredApiContext:Pd,ObjectFetchManagerContext:un,ObjectFetcherContext:Ei,getVariableDescriptor:ku,isIdVariableDescriptor:Ru,isNameVariableDescriptor:Du,isVariableDescriptor:Lu,sanitizeVariableDescriptor:Ti,useApi:Se,useClient:Ae,useDeferredApi:Yi,useObjectFetch:Xa,useObjectFetcher:Au,useWidget:fy},Symbol.toStringTag,{value:"Module"}));function my(t){return function(n){var{children:r}=n;return u.jsx(Ht.Provider,{value:t,children:r})}}var Qa="io.deephaven.message.LoginOptions.request",Ja="io.deephaven.message.SessionDetails.request",Za="io.deephaven.broadcast",cn="io.deephaven.broadcast.Login",eo="io.deephaven.broadcast.Logout";function to(t){return Yt(t)&&t.message===cn}function no(t){return Yt(t)&&t.message===eo}function gy(t,e,n){return(e=yy(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function yy(t){var e=vy(t,"string");return typeof e=="symbol"?e:e+""}function vy(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}class ro extends Error{constructor(){super(...arguments),gy(this,"isNoConsolesError",!0)}}function io(t){return t.isNoConsolesError}function mr(t,e,n,r,i,a,o){try{var s=t[a](o),l=s.value}catch(d){return void n(d)}s.done?e(l):Promise.resolve(l).then(r,i)}function ot(t){return function(){var e=this,n=arguments;return new Promise(function(r,i){var a=t.apply(e,n);function o(l){mr(a,r,i,o,s,"next",l)}function s(l){mr(a,r,i,o,s,"throw",l)}o(void 0)})}}var Ce=V.module("SessionUtils");function ao(t,e,n){return Tt.apply(this,arguments)}function Tt(){return Tt=ot(function*(t,e,n){Ce.info("Getting console types...");var r=yield e.getConsoleTypes();if(r.length===0)throw new ro("No console types available");Ce.info("Available types:",r);var i=r[0];Ce.info("Starting session with type",i);var a=yield e.startSession(i),o={type:i,id:Nt()};return Ce.info("Console session established",o),{session:a,config:o,connection:e,details:n,dh:t}}),Tt.apply(this,arguments)}function by(t,e,n){return Ce.info("createCoreClient",e),new t.CoreClient(e,n)}function Py(t){return t!=null&&typeof t=="object"}function xy(){return Ct.apply(this,arguments)}function Ct(){return Ct=ot(function*(){var t=yield Gt(Ja);if(!Py(t))throw new Error("Unexpected session details response: ".concat(t));return t}),Ct.apply(this,arguments)}function wy(){return jt.apply(this,arguments)}function jt(){return jt=ot(function*(){var t=new URLSearchParams(window.location.search);switch(t.get("authProvider")){case"parent":return xy()}return{}}),jt.apply(this,arguments)}function Oy(t,e,n){return It.apply(this,arguments)}function It(){return It=ot(function*(t,e,n){var r;try{r=yield ao(t,e,n)}catch(i){if(!io(i))throw i}return r}),It.apply(this,arguments)}const Sy=Object.freeze(Object.defineProperty({__proto__:null,BROADCAST_CHANNEL_NAME:Za,BROADCAST_LOGIN_MESSAGE:cn,BROADCAST_LOGOUT_MESSAGE:eo,BooleanColumnFormatter:xd,CharColumnFormatter:wd,DateTimeColumnFormatter:Fu,DateUtils:Od,DecimalColumnFormatter:Nu,DefaultColumnFormatter:Sd,FETCH_TIMEOUT:nu,Formatter:Xt,FormatterUtils:Pt,ITEM_KEY_PREFIX:Ed,IntegerColumnFormatter:Mu,LOGIN_OPTIONS_REQUEST:Qa,NewTableColumnTypes:$u,NoConsolesError:ro,SESSION_DETAILS_REQUEST:Ja,StringColumnFormatter:Td,TableColumnFormatter:Uu,TableUtils:Cd,createComboboxFilterArgs:jd,createCoreClient:by,createFilterConditionFactory:Qt,createFormatterFromSettings:Id,createKeyedItemKey:Gi,createNotNullOrEmptyFilterCondition:Ki,createOnTableUpdatedHandler:_d,createSearchTextFilter:qi,createSelectedValuesFilter:Jt,createSessionWrapper:ao,createShowOnlyEmptyFilterCondition:zi,createValueFilter:Xi,defaultRowDeserializer:kd,fetchVariableDefinition:ru,generateEmptyKeyedItems:Rd,getColumnFormats:Dd,getDateTimeFormatterOptions:Ld,getSessionDetails:wy,getSize:Ad,getWindowParent:Bt,isBroadcastLoginMessage:to,isBroadcastLogoutMessage:no,isClosed:Qi,isCustomColumnFormatDefined:Fd,isNoConsolesError:io,isResponse:ql,isSortDirection:Nd,loadSessionWrapper:Oy,makeMessage:di,makeResponse:zl,padFirstAndLastRow:Md,requestParentResponse:Gt},Symbol.toStringTag,{value:"Module"}));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=Cy(t,"string");return typeof e=="symbol"?e:e+""}function Cy(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}class jy extends Error{constructor(){super(...arguments),Ey(this,"isColumnNameError",!0)}}function Iy(t,e,n){return(e=_y(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function _y(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||"default");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,"isTableDisconnectError",!0)}}var He=V.module("useTable"),oo=(t,e,n,r)=>{var i=Se(),[a,o]=c.useState(void 0),[s,l]=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(y){He.error("Column not found",y,r),f(new jy("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(y=>{var{detail:b}=y;if(!a){He.error("Columns not initialized.");return}var P=a.map(C=>b.rows.map(j=>j.get(C)));l(P)},[a]),g=c.useCallback(()=>{h(new Ry("Table disconnected"))},[]),x=c.useCallback(()=>{h(null)},[]);return Ke(t,i.Table.EVENT_UPDATED,m),Ke(t,i.Table.EVENT_DISCONNECT,g),Ke(t,i.Table.EVENT_RECONNECT,x),{columns:a,data:s,error:p??d}},so=(t,e,n,r)=>{var i=c.useMemo(()=>[r],[r]),{columns:a=[],data:o=[],error:s}=oo(t,e,n,i);return{column:a[0],data:o[0],error:s}};function gr(t,e,n,r,i,a,o){try{var s=t[a](o),l=s.value}catch(d){return void n(d)}s.done?e(l):Promise.resolve(l).then(r,i)}function Dy(t){return function(){var e=this,n=arguments;return new Promise(function(r,i){var a=t.apply(e,n);function o(l){gr(a,r,i,o,s,"next",l)}function s(l){gr(a,r,i,o,s,"throw",l)}o(void 0)})}}var re=V.module("TableInput"),lt=250;function dn(t){var e,n,{className:r=void 0,columnName:i,settings:a,defaultValue:o=[],isInvalid:s=!1,onChange:l=()=>!1,onBlur:d=()=>!1,table:f}=t,p=c.useRef(null),h=Se(),m=c.useMemo(()=>{var T=Pt.getColumnFormats(a),R=Pt.getDateTimeFormatterOptions(a),{defaultDecimalFormatOptions:D={},defaultIntegerFormatOptions:B={}}=a;return new Xt(h,T,R,D,B)},[h,a]),[g,x]=c.useState(""),[y,b]=c.useState(new Set(o)),[P,C]=c.useState(),j=c.useRef(null),v=Math.min((e=P==null?void 0:P.size)!==null&&e!==void 0?e:0,lt),{column:S,data:I,error:_}=so(P,0,lt-1,i),A=c.useCallback(T=>S?m.getFormattedString(T,S.type,S.name):"".concat(T),[S,m]),[L,H]=c.useMemo(()=>{var T=new Set(y),R=[];if(I==null)return[R,null];if(I.forEach(B=>{var ae="".concat(B),yn=y.has(ae);yn&&T.delete(ae),R.push({value:ae,displayValue:A(B),isSelected:yn})}),T.size>0){re.debug2("Selection has items that are missing from the viewport");var D=new Set(y);return Array.from(T).forEach(B=>{D.delete(B)}),[R,D]}return[R,null]},[I,y,A]);c.useEffect(()=>{H!==null&&(b(H),l(Array.from(H)))},[l,H]);var E=c.useCallback(function(){var T=Dy(function*(R){try{var D=yield R;re.debug("Table resolved",D),C(D)}catch(B){if(me.isCanceled(B))return;re.error(B)}});return function(R){return T.apply(this,arguments)}}(),[]);c.useEffect(()=>{var T=me.makeCancelable(f);return E(T),()=>{re.debug2("Cancel table promise"),T.cancel()}},[f,E]);var w=c.useCallback(T=>{var{value:R}=T.target;x(R);var D=L.findIndex(ae=>ae.displayValue.includes(R));if(D>-1){var B;re.debug2("Found ".concat(R," at index ").concat(D)),(B=j.current)===null||B===void 0||B.scrollIntoView(D)}else re.debug2("".concat(R," not found"))},[L,j]),O=c.useCallback(T=>{if(re.debug("handleSelect",T),T>=L.length){re.error("Invalid index",T);return}var R=L[T].value,D=new Set(y);L[T].isSelected?D.delete(R):D.add(R),b(D),l(Array.from(D))},[l,L,y]),k=c.useCallback(()=>{var T=L.map(D=>D.value),R=new Set(T);b(R),l(T)},[L,l]),N=c.useCallback(()=>{b(new Set),l([])},[l]),W=c.useCallback(()=>{},[]),G=c.useCallback(T=>{var R,{relatedTarget:D}=T;re.debug("handleChildBlur",D,D instanceof HTMLElement,p.current,(R=p.current)===null||R===void 0?void 0:R.contains(D)),(!D||p.current&&D instanceof HTMLElement&&!p.current.contains(D))&&d()},[d]),q=L.length===0;return u.jsxs("div",{ref:p,className:F("table-input-container d-flex flex-column position-relative",r),children:[u.jsx(Pi,{disabled:!!_||q,value:g,placeholder:"Search",onChange:w,className:"mb-2 d-flex",onBlur:G}),u.jsx(ca,{className:"table-input-list",disabled:P===void 0||q,isInvalid:s,items:q?[{value:"Empty",isSelected:!1}]:L,itemCount:v,offset:0,onSelect:O,onViewportChange:W,ref:j,onBlur:G}),P&&u.jsxs("div",{className:"meta-row",children:[u.jsx("div",{className:"d-flex align-items-center text-muted small",children:P!=null&&P.size>v&&u.jsxs(u.Fragment,{children:["Table is too large, showing the first ",lt," items."]})}),u.jsxs("div",{children:[u.jsx("button",{type:"button",className:"btn btn-link",onBlur:G,onClick:k,children:"Select All"}),u.jsx("button",{type:"button",className:"btn btn-link mr-a",onBlur:G,onClick:N,children:"Clear"})]})]}),P==null||_&&u.jsx("div",{className:"h-100 w-100 position-absolute",children:u.jsx(ge,{isLoaded:P!=null,isLoading:P==null&&_==null,errorMessage:(n=_==null?void 0:_.message)!==null&&n!==void 0?n:null})})]})}dn.displayName="TableInput";dn.defaultProps={isInvalid:!1,className:void 0};var Ly=["onInputChange","onSearchTextChange"];function yr(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?yr(Object(n),!0).forEach(function(r){Ay(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):yr(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function Ay(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=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||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function My(t,e){if(t==null)return{};var n,r,i=$y(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 $y(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 Uy(t){var e=wf(t),{onInputChange:n,onSearchTextChange:r}=e,i=My(e,Ly),a=c.useRef(!1),o=c.useRef(""),s=c.useCallback(d=>{n==null||n(d),a.current?r(d):(r(""),o.current=d)},[n,r]),l=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(Da,vr(vr({},i),{},{onInputChange:s,onOpenChange:l}))}var By=["table","keyColumn","labelColumn","iconColumn","settings"];function br(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 Pr(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?br(Object(n),!0).forEach(function(r){Wy(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):br(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function Wy(t,e,n){return(e=Vy(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Vy(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||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Yy(t,e){if(t==null)return{};var n,r,i=Gy(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 Gy(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 Ky(t){var e,{table:n,keyColumn:r,labelColumn:i,iconColumn:a,settings:o}=t,s=Yy(t,By),{scale:l}=Zt(),d=la[(e=s.density)!==null&&e!==void 0?e:"regular"][l],{getFormattedString:f}=pa(o),p=Of({table:n,iconColumnName:a,keyColumnName:r,labelColumnName:i,formatValue:f}),{viewportData:h,onScroll:m}=an({reuseItemsOnTableResize:!0,table:n,itemHeight:d,deserializeRow:p});return u.jsx(La,Pr(Pr({},s),{},{normalizedItems:h.items,showItemIcons:a!=null,onScroll:m}))}function qy(t){return typeof t=="object"&&t!=null&&"equals"in t&&typeof t.equals=="function"}function zy(t){return"".concat(t)}function Xy(t){var{column:e,table:n,filter:r=Bu,onChange:i,selectedValue:a,disabled:o,className:s,formatValue:l=zy,maxSize:d=1e3}=t,f=Se(),[p,h]=c.useState([]);c.useEffect(()=>{if(n==null){h([]);return}var y=e??n.columns[0];n.applyFilter(r);var b=n.setViewport(0,d,[y]);return b.addEventListener(f.Table.EVENT_UPDATED,P=>{var{detail:C}=P,j=C.rows.map(v=>{var S;return(S=v.get(y))!==null&&S!==void 0?S:null});h(j)}),()=>{b.close()}},[e,f,r,d,n]);var m=c.useMemo(()=>a===void 0?[void 0,...p]:p,[a,p]),g=c.useMemo(()=>m.findIndex(y=>y===a||qy(y)&&y.equals(a)),[a,m]),x=c.useCallback(y=>{i(m[y])},[i,m]);return u.jsx(xi,{className:s,value:g,onChange:x,disabled:o,children:m.map((y,b)=>u.jsx(ua,{value:b,children:l(y)},"".concat(b)))})}var xr=V.module("useBroadcastChannel");function pn(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:nt,e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Za,n=c.useMemo(()=>new BroadcastChannel(e),[e]);return c.useEffect(()=>()=>{n.close()},[n]),c.useEffect(()=>{function r(i){var{data:a}=i;if(!Yt(a)){xr.debug("Ignoring non-deephaven message",a);return}xr.debug("event received",a),t(i)}return n.addEventListener("message",r),()=>{n.removeEventListener("message",r)}},[n,t]),n}function fn(t,e){var n=c.useCallback(r=>{to(r.data)?t==null||t(r.data):no(r.data)&&(e==null||e(r.data))},[t,e]);pn(n)}function Qy(t,e,n,r){var i=pe(),[a,o]=c.useState(""),{value:s}=Ne(a,n),l=c.useCallback(h=>{o(h.trim())},[]),{data:d,isLoading:f}=Oe(i.doesColumnValueExist,[t,e,s,r]),p=f||a!==s?null:d;return{valueTrimmed:a,valueTrimmedDebounced:s,valueExists:p,trimAndUpdateValue:l}}var wr=V.module("useDebouncedViewportSearch"),Jy=200;function Zy(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Jy,r=pe(),{table:i,applyFiltersAndRefresh:a}=t,o=c.useMemo(()=>je(s=>{if(wr.debug("Applying debounced searchText '".concat(s,"'")),i!=null){var l=s.trim();if(l===""){a([]);return}var d=i.findColumn(e),f=r.makeFilterValue(d.type,l),p=[d.filter().contains(f)];a(p)}},n),[a,e,n,i,r]);return c.useEffect(()=>()=>{wr.debug("Cancelling debounced search function"),o.cancel()},[o]),o}var lo=300;function ev(t){var{viewportData:e,columnName:n,shouldSelectAllOnNoSelection:r,mapItemToValue:i}=t,a=pe(),o=Ta(e,i,Gi),{value:s}=Ne(o,lo),l=Sa(s,Pa);return c.useMemo(()=>Jt(a,n,l.selection,r,l.isInverted),[n,l,r,a])}function tv(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 Or(t,e,n,r,i,a,o){try{var s=t[a](o),l=s.value}catch(d){return void n(d)}s.done?e(l):Promise.resolve(l).then(r,i)}function nv(t){return function(){var e=this,n=arguments;return new Promise(function(r,i){var a=t.apply(e,n);function o(l){Or(a,r,i,o,s,"next",l)}function s(l){Or(a,r,i,o,s,"throw",l)}o(void 0)})}}function rv(t){var{table:e,columnName:n,defaultValue:r,itemHeight:i,topOffset:a=0,value:o}=t;return c.useCallback(nv(function*(){if(e==null||o===""||o===r)return a;var s=e.findColumn(n),l=yield e.seekRow(0,s,"String",o),d=r==null?0:1;return(l+d)*i+a}),[n,r,i,e,a,o])}function iv(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"or",n=pe(),r=c.useMemo(()=>Ki(n),[n]);return c.useMemo(()=>Qt(t,r,e),[t,e,r])}function uo(t){c.useEffect(()=>()=>{t!=null&&(Qi(t)||t.close())},[t])}function av(t){var{maybeTable:e,columnName:n,mapItemToValue:r,filterConditionFactories:i=[],trimSearchText:a=!1,timeZone:o}=t,{itemHeight:s}=da(),l=pe(),[d,f]=c.useState(""),[p,h]=c.useState(""),m=c.useCallback(T=>{h(a?T.trim():T)},[a]),g=c.useMemo(()=>a?d.trim():d,[d,a]),[x,y]=c.useState(null),[b,P]=c.useState(()=>new Map),{data:C,isLoading:j}=Oe(l.doesColumnValueExist,[e,n,p,!1]),{isDebouncing:v}=Ne(p,Sn),S=v||j?null:C,I=c.useMemo(()=>qi(l,n,p,o),[p,n,l,o]),_=c.useMemo(()=>Jt(l,n,new Set(b.keys()),!1,!0),[n,b,l]),{data:A}=Oe(l.createDistinctSortedColumnTable,[e,n,"asc",...i]);uo(A);var L=an({table:A,itemHeight:s,viewportSize:Sf,viewportPadding:Ef}),H=g.length>0&&L.size===0,E=b.has(g),w=Ie(m,Sn),O=c.useCallback(T=>{f(T),w(T)},[w]),k=Ie(y,0),N=c.useCallback(T=>{if(f(""),m(""),y(T),k(null),T!=null){var R=L.viewportData.findItem(T);if(R!=null){var D=r(R);P(B=>{var ae=new Map(B);return ae.set(D,{value:D}),ae})}}},[m,k,L.viewportData,r]),W=c.useCallback(T=>{P(R=>{if(T.size===0)return R;var D=new Map(R);for(var B of T)D.set(B,{value:B});return D})},[]),G=c.useCallback(T=>{P(R=>{if(T==="all")return new Map;var D=new Map(R);for(var B of T)D.delete(B);return D})},[]),q=fa(L.table,I,_);return ha(L,q),c.useMemo(()=>({list:L,hasSearchTextWithZeroResults:H,searchText:d,searchTextExists:S,searchTextIsInSelectedValues:E,selectedKey:x,selectedValueMap:b,onSearchTextChange:O,onSelectKey:N,onAddValues:W,onRemoveValues:G}),[H,L,W,G,O,N,d,S,E,x,b])}function Sr(t,e,n,r,i,a,o){try{var s=t[a](o),l=s.value}catch(d){return void n(d)}s.done?e(l):Promise.resolve(l).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(l){Sr(a,r,i,o,s,"next",l)}function s(l){Sr(a,r,i,o,s,"throw",l)}o(void 0)})}}function sv(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(ov(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:s,isLoading:l}=Oe(i,[]);return c.useEffect(()=>()=>{a==null||a.close()},[a]),{distinctTable:a,error:o,isError:s,isLoading:l}}function lv(t,e){var n=pe(),r=c.useMemo(()=>zi(n,t),[t,n]);return c.useMemo(()=>Qt(e,r),[e,r])}function uv(t,e,n){var r=pe();return c.useMemo(()=>Xi(r,t,e,n),[t,n,r,e])}const cv=Object.freeze(Object.defineProperty({__proto__:null,ComboBox:Uy,DEBOUNCE_MS:lo,ListView:Ky,Picker:Tf,TableDropdown:Xy,TableInput:dn,makeApiContextWrapper:my,useBroadcastChannel:pn,useBroadcastLoginListener:fn,useCheckIfExistsValue:Qy,useDebouncedViewportSearch:Zy,useDebouncedViewportSelectionFilter:ev,useFilterConditionFactories:fa,useFilteredItemsWithDefaultValue:tv,useFormatter:pa,useGetItemIndexByValue:Cf,useGetItemPosition:rv,useInitializeViewportData:jf,useNotNullOrEmptyFilter:iv,usePickerWithSelectedValues:av,useSearchableViewportData:If,useSelectDistinctTable:sv,useSetPaddedViewportCallback:_f,useShowOnlyEmptyFilter:lv,useTable:oo,useTableClose:uo,useTableColumn:so,useTableListener:Ke,useTableSize:kf,useTableUtils:pe,useValueFilter:uv,useViewportData:an,useViewportFilter:ha},Symbol.toStringTag,{value:"Module"}));var co=c.createContext(!1);function dv(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(co.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 po(t){var{isEnabled:e,isPending:n,themeData:r}=Ra();return c.useMemo(()=>e?n?null:r?[r]:[]:t==null?null:Ci(t),[e,n,r,t])}function pv(t){var{fetch:e,type:n}=t,r=ji(),i=c.useMemo(()=>[...r.values()].filter(Ii).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,"'"))}const fv=Object.freeze(Object.defineProperty({__proto__:null,PersistentStateContext:$d,PersistentStateProvider:Ud,PluginType:_i,PluginsContext:rt,WidgetView:pv,getDashboardPlugins:iu,getIconForPlugin:Wu,getThemeDataFromPlugins:Ci,isAuthPlugin:ki,isDashboardPlugin:Vu,isLegacyAuthPlugin:vt,isLegacyDashboardPlugin:Hu,isLegacyPlugin:Ri,isLegacyTablePlugin:Yu,isPlugin:bt,isTablePlugin:Gu,isThemePlugin:Ku,isWidgetPlugin:Ii,pluginSupportsType:qu,useCustomThemes:po,useDashboardPlugins:au,usePersistentState:Bd,usePlugins:ji},Symbol.toStringTag,{value:"Module"}));function hv(t){if(t==null)return!1;var e=t;return e.Component!==void 0&&typeof e.isAvailable=="function"}var fo="io.deephaven.auth.AnonymousAuthenticationHandler",mv="io.deephaven.authentication.psk.PskAuthenticationHandler";function Er(t,e,n){return(e=gv(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function gv(t){var e=yv(t,"string");return typeof e=="symbol"?e:e+""}function yv(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}class ho extends Error{constructor(){super(...arguments),Er(this,"name","AuthenticationError"),Er(this,"isAuthenticationError",!0)}}function Tr(t,e,n,r,i,a,o){try{var s=t[a](o),l=s.value}catch(d){return void n(d)}s.done?e(l):Promise.resolve(l).then(r,i)}function vv(t){return function(){var e=this,n=arguments;return new Promise(function(r,i){var a=t.apply(e,n);function o(l){Tr(a,r,i,o,s,"next",l)}function s(l){Tr(a,r,i,o,s,"throw",l)}o(void 0)})}}var Cr=V.module("AuthPluginBase");function hn(t){var{children:e,getLoginOptions:n}=t,r=Ae(),[i,a]=c.useState(),[o,s]=c.useState(!1);return c.useEffect(()=>{var l=!1;function d(){if(l)throw new Di("Login canceled.")}function f(){return p.apply(this,arguments)}function p(){return p=vv(function*(){try{var h=yield n();d(),Cr.info("Logging in..."),yield r.login(h),d(),s(!0)}catch(x){if(!l){var m;Cr.error("Unable to login:",x);var g=(m=_e(x))!==null&&m!==void 0?m:"Unable to login. Verify credentials.";a(new ho(g)),s(!1)}}}),p.apply(this,arguments)}return f(),()=>{l=!0}},[r,n]),o?u.jsx(u.Fragment,{children:e}):u.jsx(ge,{"data-testid":"auth-base-loading",isLoading:i==null,isLoaded:!1,errorMessage:_e(i)})}var bv={canLogout:!1};function Pv(t){var{children:e}=t,n=Se(),r=c.useCallback(()=>({type:n.CoreClient.LOGIN_TYPE_ANONYMOUS}),[n]);return u.jsx(hn,{getLoginOptions:r,children:u.jsx(et.Provider,{value:bv,children:e})})}var mo={Component:Pv,isAvailable:t=>t.includes(fo)};function jr(t,e,n,r,i,a,o){try{var s=t[a](o),l=s.value}catch(d){return void n(d)}s.done?e(l):Promise.resolve(l).then(r,i)}function xv(t){return function(){var e=this,n=arguments;return new Promise(function(r,i){var a=t.apply(e,n);function o(l){jr(a,r,i,o,s,"next",l)}function s(l){jr(a,r,i,o,s,"throw",l)}o(void 0)})}}var wv=V.module("AuthPluginParent"),Ov={canLogout:!1};function Sv(t){return t!=null&&typeof t.type=="string"}function Ev(){return _t.apply(this,arguments)}function _t(){return _t=xv(function*(){wv.info("Logging in by delegating to parent window...");var t=yield Gt(Qa);if(!Sv(t))throw new Error("Unexpected login options response: ".concat(t));return t}),_t.apply(this,arguments)}function Tv(){var t;return(t=new URLSearchParams(window.location.search).get("authProvider"))!==null&&t!==void 0?t:""}function Cv(t){var{children:e}=t;return u.jsx(hn,{getLoginOptions:Ev,children:u.jsx(et.Provider,{value:Ov,children:e})})}var go={Component:Cv,isAvailable:()=>Bt()!=null&&Tv()==="parent"};function yo(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:F("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 vo(t){var{children:e,logoPath:n="./logo.png"}=t;return u.jsxs("div",{className:"login-container",children:[u.jsx(Ya,{}),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 Ir(t,e,n,r,i,a,o){try{var s=t[a](o),l=s.value}catch(d){return void n(d)}s.done?e(l):Promise.resolve(l).then(r,i)}function ut(t){return function(){var e=this,n=arguments;return new Promise(function(r,i){var a=t.apply(e,n);function o(l){Ir(a,r,i,o,s,"next",l)}function s(l){Ir(a,r,i,o,s,"throw",l)}o(void 0)})}}var kt="io.deephaven.authentication.psk.PskAuthenticationHandler",bo="psk",Rt="io.deephaven.web.client.auth.psk.token",be=V.module("AuthPluginPsk");function jv(){return new URLSearchParams(window.location.search).get(bo)}function Iv(){be.debug2("clearWindowToken");var t=new URL(window.location.href);t.searchParams.delete(bo),window.history.replaceState(null,"",t.href)}function _r(){var t;return(t=ht.get(Rt))!==null&&t!==void 0?t:null}function ct(t){be.debug2("Storing token in cookie",t),t!=null?ht.set(Rt,t,{secure:!0,sameSite:"strict"}):ht.remove(Rt)}function _v(t){var{children:e,logoPath:n}=t,r=Ae(),i=c.useRef(null),a=c.useRef(null),[o,s]=c.useState(),[l,d]=c.useState(!1),[f,p]=c.useState(!1),[h,m]=c.useState(!1),[g,x]=c.useState(""),y=c.useCallback(function(){var v=ut(function*(S){var I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;be.info("Logging in..."),m(!0);var _=null;try{if(_=r.login({type:kt,token:S}),a.current=_,yield _,be.info("Logged in successfully"),a.current!==_)return;ct(S),p(!0)}catch(H){if(a.current!==_)return;if(d(!0),I){var A;be.error("Unable to login",H);var L=(A=_e(H))!==null&&A!==void 0?A:"Unable to login: Verify credentials.";s(new ho(L))}}m(!1)});return function(S){return v.apply(this,arguments)}}(),[r]),b=c.useCallback(()=>{a.current=null,m(!1)},[]),P=c.useCallback(ut(function*(){be.debug("onLogin");var v=_r();f||h||v==null||y(v,!1)}),[f,h,y]),C=c.useCallback(()=>{ct(null)},[]);fn(P,C),c.useEffect(()=>{var v=!1;function S(){return I.apply(this,arguments)}function I(){return I=ut(function*(){var _,A=(_=jv())!==null&&_!==void 0?_:_r();if(Iv(),A==null){d(!0);return}m(!0);try{yield r.login({type:kt,token:A}),v||(ct(A),p(!0),m(!1))}catch{v||(d(!0),m(!1))}}),I.apply(this,arguments)}return S(),()=>{v=!0}},[r]);var j=c.useCallback(()=>{h?b():y(g)},[b,h,y,g]);return c.useEffect(function(){var S;(S=i.current)===null||S===void 0||S.focus()},[i,l]),u.jsxs(u.Fragment,{children:[f&&e,l&&u.jsx(zt,{in:!f,mountOnEnter:!0,unmountOnExit:!0,children:u.jsx(vo,{logoPath:n,children:u.jsx(yo,{errorMessage:_e(o),isLoggingIn:h,onSubmit:j,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:g,onChange:v=>{s(void 0),x(v.target.value)}})]})})})}),u.jsx(ge,{"data-testid":"auth-psk-loading",isLoaded:f||l,isLoading:!f&&!l})]})}var Po={Component:_v,isAvailable:t=>t.includes(kt)};function kr(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 dt(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?kr(Object(n),!0).forEach(function(r){kv(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):kr(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function kv(t,e,n){return(e=Rv(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Rv(t){var e=Dv(t,"string");return typeof e=="symbol"?e:e+""}function Dv(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var Lv=V.module("UserUtils");function xo(t,e){return t.get("internal.webClient.appInit.".concat(e))}function wo(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 s(y){return xo(t,y)}function l(y,b){var P=s(y);return P==="true"?!0:P==="false"?!1:(P!==void 0&&Lv.warn("Unexpected value for ".concat(y,": ").concat(P)),b)}var d=(e=s("name"))!==null&&e!==void 0?e:"",f=(n=s("operateAs"))!==null&&n!==void 0?n:d,p=(r=(i=s("groups"))===null||i===void 0?void 0:i.split(","))!==null&&r!==void 0?r:[],h=l("canCopy",!0),m=l("canDownloadCsv",!0),g=l("canUsePanels",!0),x=l("canLogout",!0);return dt(dt({name:d,operateAs:f,groups:p},a),{},{permissions:dt({canUsePanels:g,canCopy:h,canDownloadCsv:m,canLogout:x},o)})}const Av=Object.freeze(Object.defineProperty({__proto__:null,AUTH_HANDLER_TYPE_ANONYMOUS:fo,AUTH_HANDLER_TYPE_PSK:mv,AuthPluginAnonymous:mo,AuthPluginBase:hn,AuthPluginParent:go,AuthPluginPsk:Po,Login:vo,LoginForm:yo,UserContext:fi,UserOverrideContext:hi,UserPermissionsOverrideContext:et,getAppInitValue:xo,getUserFromConfig:wo,isAuthPlugin:hv},Symbol.toStringTag,{value:"Module"}));function xe(t,e,n){return(e=Fv(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Fv(t){var e=Nv(t,"string");return typeof e=="symbol"?e:e+""}function Nv(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}class $ extends Ji{static get theme(){return $._theme==null&&($._theme=Li()),$._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=[],s=[],l=new Date("2018-06-01"),d=0;d<r;d+=1){var f=new Date(l.getFullYear(),l.getMonth(),l.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+$.random()*r/5+d*$.smoothing)*n;p=Math.round(p*100)/100,a.push(p),s.push(40+d*$.smoothing),o.push(Math.sin(d/r*e)*r/3+$.random()*r/10+d*$.smoothing)}return{x:i,y:a,s:o,l:s}}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:$.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=$.makeRandomSeries(6),n=$.makeArea(e),r=$.makeTrendline(e),i=$.makeRandomSeries(2),a=$.makeLine(i),o=$.makeErrorBand(i);return[n,r,a,o]}static makeDefaultLayout(e){var n={template:new Zi(e).makeDefaultTemplate($.theme)};return n.title="Chart",n.xaxis={title:"Datestamp"},n.yaxis={title:"Price"},n}constructor(e){var{data:n=$.makeRandomData(),layout:r=$.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($,"random",Math.random.bind(Math));xe($,"smoothing",1.5);xe($,"_theme",void 0);const Mv=Object.freeze(Object.defineProperty({__proto__:null,Chart:Wd,ChartModel:Ji,ChartModelFactory:Vd,ChartThemeContext:zu,ChartThemeProvider:Ai,ChartUtils:Zi,DownsamplingError:Pp,FigureChartModel:Hd,MockChartModel:$,Plot:Xu,defaultChartTheme:Li,isFigureChartModel:Yd,isWebGLSupported:Gd,useChartTheme:Qu},Symbol.toStringTag,{value:"Module"}));function $v(t){var{dashboardProps:e,componentName:n,component:r,supportedTypes:i,hydrate:a,dehydrate:o}=t,{id:s,layout:l,registerComponent:d}=e,f=c.useCallback(p=>{var{dragEvent:h,panelId:m=Nt(),widget:g}=p,{name:x,type:y}=g,b=y!=null&&(Array.isArray(i)&&i.includes(y)||y===i);if(b){var P={localDashboardId:s,metadata:g};a!=null&&(P=a(P,s));var C={type:"react-component",component:n,props:P,title:x??void 0,id:m},{root:j}=l;Fi.openComponent({root:j,config:C,dragEvent:h})}},[n,a,s,l,i]);ea(d,r,a,o),Ni(l.eventHub,f)}function Uv(t,e){var n=Bs(),r=Ws(a=>Mi(a,t,e)),i=c.useCallback(a=>n($i(t,e,a)),[t,e,n]);return[r,i]}const Bv=Object.freeze(Object.defineProperty({__proto__:null,BasePanel:xn,CLOSE_DASHBOARD:Ju,CREATE_DASHBOARD:Zu,DEFAULT_DASHBOARD_ID:ec,DH_ID_PROP:tc,Dashboard:bn,DashboardIdContext:nc,DashboardLayout:rc,DashboardUtils:ic,GLPropTypes:ac,LayoutManagerContext:oc,LayoutUtils:Fi,LazyDashboard:ou,Panel:xn,PanelErrorBoundary:sc,PanelEvent:lc,PanelIdContext:uc,PanelManager:cc,SET_DASHBOARD_DATA:dc,TabEvent:pc,assertIsDashboardPluginProps:Kd,canHaveRef:Oi,default:bn,dehydrate:fc,emitCloseDashboard:hc,emitCreateDashboard:mc,emitCycleToNextStack:gc,emitCycleToNextTab:yc,emitCycleToPreviousStack:vc,emitCycleToPreviousTab:bc,emitPanelOpen:Pc,getAllDashboardsData:xc,getClosedPanelsForDashboard:wc,getDashboardData:Oc,getOpenedPanelMapForDashboard:Sc,getPluginDataForDashboard:Mi,getPluginDataMapForDashboard:Ec,hydrate:Tc,isDashboardPluginProps:qd,isWrappedComponent:Si,listenForCloseDashboard:Cc,listenForCreateDashboard:jc,listenForCycleToNextStack:Ic,listenForCycleToNextTab:_c,listenForCycleToPreviousStack:kc,listenForCycleToPreviousTab:Rc,listenForPanelOpen:Dc,reducers:Lc,setDashboardData:Ac,setDashboardPluginData:$i,updateDashboardData:Fc,useAppDispatch:Nc,useAppSelector:Ui,useAppStore:Mc,useCloseDashboardListener:$c,useCreateDashboardListener:Uc,useCycleToNextStackListener:Bc,useCycleToNextTabListener:Wc,useCycleToPreviousStackListener:Vc,useCycleToPreviousTabListener:Hc,useDashboardId:Yc,useDashboardPanel:$v,useDashboardPluginData:Uv,useDhId:Gc,useLayoutManager:zd,useListener:Kc,usePanelId:qc,usePanelOpenListener:Ni,usePanelRegistration:ea},Symbol.toStringTag,{value:"Module"}));function Oo(t){var{children:e}=t,{activeThemes:n}=tt();return c.useEffect(function(){n!=null&&Bi.initTheme()},[n]),u.jsx(u.Fragment,{children:e})}var Wv={$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(_=>_.trim()).join(" ")}function b(){if(g.current){g.current.style.height="0";var I=g.current.scrollHeight+(g.current.offsetHeight-g.current.clientHeight);I>0&&(g.current.style.height="".concat(I,"px"))}}function P(I){var _=I.target.value;h&&(s&&(_=x(_)),m(!1)),p(_),r(_)}function C(){g.current&&(s&&(p(x(f)),b()),g.current.scrollLeft=0)}function j(){g.current&&document.activeElement!==g.current&&g.current.focus()}function v(){s&&(p(y(f)),r(y(f)))}function S(){m(!0)}return c.useEffect(function(){b()},[f]),u.jsx("textarea",{ref:g,id:l,className:F(e,"auto-resize-textarea form-control"),placeholder:a,value:f,rows:1,onChange:P,onFocus:C,onMouseDown:j,onBlur:v,onPaste:S,spellCheck:i,disabled:o,"data-testid":d})}ln.propTypes={value:M.string.isRequired,onChange:M.func.isRequired,className:M.string,placeholder:M.string,spellCheck:M.bool,disabled:M.bool,delimiter:M.string,id:M.string,"data-testid":M.string};ln.defaultProps={className:"",id:"",placeholder:"",disabled:!1,spellCheck:!1,delimiter:"","data-testid":void 0};function $a(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"}),U.cloneElement(n,{isOpen:i&&a})]})}function Ua(t){var{className:e,icon:n,isOpen:r=!1,subtitle:i,title:a}=t;return u.jsx(Vt,{isOpen:r,className:e,children:u.jsx(Ht,{children:u.jsxs("div",{className:"info-modal",children:[n!=null&&u.jsx("div",{className:"message-icon",children:u.jsx(Z,{icon:n})}),u.jsx("div",{className:"message-header",children:a}),i!=null&&u.jsx("div",{className:"message-content",children:i})]})})})}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 Xn(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){ng(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 ng(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||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var ag=[];function og(t){var{styleProps:e,selectedItemCount:n,onClearSelection:r}=t;return u.jsx(Xr,Xn(Xn({UNSAFE_className:tn.spectrumActionBar},e),{},{isEmphasized:!0,selectedItemCount:n,onClearSelection:r,children:ag}))}function Qn(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 sg(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Qn(Object(n),!0).forEach(function(r){le(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Qn(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function le(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||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var Jn=V.module("ContextMenu");class ke extends c.PureComponent{static handleContextMenu(e){e.metaKey||(e.stopPropagation(),e.preventDefault())}constructor(e){super(e),le(this,"container",void 0),le(this,"oldFocus",void 0),le(this,"activeSubMenuRef",void 0),le(this,"subMenuTimer",void 0),le(this,"rAF",void 0),le(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=U.createRef(),this.oldFocus=document.activeElement,this.activeSubMenuRef=U.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=ce.getMenuItems(r),a=[],o=i.length-1;o>=0;o-=1){var s=i[o];s instanceof Promise?this.initMenuPromise(s):a.push(s)}this.setState({mouseIndex:-1,keyboardIndex:n,activeSubMenu:null,menuItems:ce.sortActions(a)})}initMenuPromise(e){var n=me.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:ce.sortActions(i.menuItems.concat(r)),pendingItems:o}}return null})},r=>{me.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}),Jn.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:s,subMenuParentHeight:l,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:g}=(e=(n=this.container.current)===null||n===void 0?void 0:n.getBoundingClientRect())!==null&&e!==void 0?e:{width:0,height:0},x=((r=(i=this.container.current)===null||i===void 0?void 0:i.scrollHeight)!==null&&r!==void 0?r:0)>window.innerHeight;g===0||m===0||(p+g>window.innerHeight&&(p-g-l>0?p-=g-l:p=window.innerHeight-g),h+m>window.innerWidth&&(h=h-m-s),(f!==h||d!==p)&&(this.setState({hasOverflow:x}),o(p,h)))}}handleWindowResize(){this.container.current&&this.closeMenu(!0)}handleBlur(e){if(!this.container.current){Jn.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=ce.getNextMenuItem(i,-1,n):(e.key==="ArrowDown"||e.key==="Tab")&&(i=ce.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:s,mouseIndex:l,pendingItems:d,subMenuTop:f,subMenuLeft:p,subMenuParentWidth:h,subMenuParentHeight:m}=this.state,g=0;g<s.length;g+=1){var x=s[g];g>0&&x.group!==s[g-1].group&&e.push(u.jsx("hr",{},"".concat(g,".separator")));var y=u.jsx(mi,{ref:i===g?this.activeSubMenuRef:null,isKeyboardSelected:o===g,isMouseSelected:l===g,menuItem:x,closeMenu:this.handleCloseSubMenu,onMenuItemClick:this.handleMenuItemClick,onMenuItemMouseMove:this.handleMenuItemMouseMove,onMenuItemContextMenu:this.handleMenuItemContextMenu},g);e.push(y)}var b=null;d.length>0&&(b=u.jsx("div",{className:"loading",children:u.jsx(Qe,{className:"loading-spinner-vertical-align"})}));var{menuStyle:P,"data-testid":C}=this.props,j=i!==null&&f!==null&&p!==null;return u.jsxs(u.Fragment,{children:[u.jsxs("div",{className:F({"has-overflow":a},"context-menu-container"),style:sg({top:n,left:r},P),ref:this.container,"data-dh-context-menu":!0,onBlur:this.handleBlur,onKeyDown:this.handleKeyDown,onMouseLeave:this.handleMouseLeave,onContextMenu:ke.handleContextMenu,role:"menuitem",tabIndex:0,"data-testid":C,children:[e,b]}),j&&i!==null&&f!==null&&p!==null&&u.jsx(ke,{actions:s[i].actions||[],closeMenu:this.handleCloseSubMenu,top:f,left:p,updatePosition:(v,S)=>{this.setState({subMenuTop:v,subMenuLeft:S})},subMenuParentWidth:h,subMenuParentHeight:m},"sub-".concat(i))]})}}le(ke,"defaultProps",{subMenuParentWidth:0,subMenuParentHeight:0,closeMenu(){},onMenuOpened(){},onMenuClosed(){},options:{},menuStyle:{},"data-testid":void 0});function Zn(t,e,n){return(e=cg(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function cg(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||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}class Ba extends c.Component{constructor(e){super(e),Zn(this,"container",void 0),Zn(this,"openMenu",void 0),this.handleMenuClose=this.handleMenuClose.bind(this),this.handleContextMenu=this.handleContextMenu.bind(this),this.container=U.createRef(),this.openMenu=U.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 s=document.elementFromPoint(i,r),l=new MouseEvent("contextmenu",{clientX:e.clientX,clientY:e.clientY,bubbles:!0,cancelable:!0});s==null||s.dispatchEvent(l)});return}if(ce.isContextActionEvent(e)&&!(e.metaKey||e.ctrlKey)){var o=ce.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(ke,{ref:this.openMenu,actions:r,onMenuClosed:this.handleMenuClose,top:i,left:a,updatePosition:(o,s)=>{this.setState({top:o,left:s})},"data-testid":n})),u.jsx("div",{className:F("context-menu-root",{active:r}),ref:this.container,children:e})}}function Wa(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||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}class ne extends c.Component{static handleEnter(e){var n=e;n.style.height="0"}static handleEntering(e){var n=e;n.style.height="".concat(ne.getHeight(n),"px")}static handleExiting(e){var n=e;n.style.height="0"}static handleExit(e){var n=e;n.style.height="".concat(ne.getHeight(n),"px")}static getHeight(e){var n=e.scrollWidth-e.clientWidth;return e.scrollHeight-n}constructor(e){super(e),this.handleEntered=this.handleEntered.bind(this)}handleEntered(e){var n=e;n.style.height="";var{autoFocusOnShow:r}=this.props;if(r!==void 0&&r){var i=n.querySelector("input, select, textarea");i!=null&&i.focus()}}render(){var{children:e,className:n,in:r,"data-testid":i}=this.props;return u.jsx(Qr,{in:r,classNames:{enterActive:"collapsing",enterDone:"collapse show",exitActive:"collapsing",exitDone:"collapse"},onEnter:ne.handleEnter,onEntering:ne.handleEntering,onEntered:this.handleEntered,onExit:ne.handleExit,onExiting:ne.handleExiting,timeout:350,children:a=>u.jsx("div",{className:F({collapse:a==="exited"},n),"data-testid":i,children:e})})}}Wa(ne,"propTypes",{className:M.string,in:M.bool.isRequired,children:M.node.isRequired,autoFocusOnShow:M.bool,"data-testid":M.string});Wa(ne,"defaultProps",{className:"",autoFocusOnShow:!1,"data-testid":void 0});var hg=V.module("TimeInput"),mg="([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]",gg=["00:00:00","12:34:56","23:59:59"];function er(t){return t!=null?"".concat(t.substring(0,8).replace(/\u2007/g,"0")).concat("00:00:00".substring(t.length)):t}var Re=U.forwardRef((t,e)=>{var{allowValueWrapping:n=!0,className:r="",onChange:i=()=>!1,value:a=0,onFocus:o=()=>!1,onBlur:s=()=>!1,onSelect:l=()=>!1,"data-testid":d}=t,[f,p]=c.useState(Ye.formatTime(a)),h=c.useRef(a),[m,g]=c.useState(),x=c.useRef(null);c.useImperativeHandle(e,()=>({focus:()=>{var v;(v=x.current)===null||v===void 0||v.focus()},setSelection:v=>{var S;(S=x.current)===null||S===void 0||S.focus(),g(v)}}),[]),c.useEffect(function(){h.current!==a&&(p(Ye.formatTime(a)),h.current=a)},[h,a]);function y(v,S,I){var _=v.selectionStart===0?24:60,A=parseInt(I,10)-S;return Number.isNaN(A)?A=0:n?A=(A%_+_)%_:A=Math.min(Math.max(0,A),_-1),"".concat(A).padStart(2,"0")}function b(v,S,I,_,A){return _===0&&A===2&&S===1&&parseInt(I,10)>1?"0".concat(I).concat(v.substring(2)):oa(v,S,I)}var P=c.useCallback(v=>{hg.debug("handleChange",v),p(v),h.current=Ye.parseTime(er(v)),i(h.current)},[i]),C=c.useCallback(()=>{var v=er(f);v!==f&&p(v),s()},[f,s]),j=c.useCallback(v=>{g(v),l(v)},[l]);return u.jsx(rn,{ref:x,className:r,example:gg,getNextSegmentValue:y,getPreferredReplacementString:b,onChange:P,onSelect:j,pattern:mg,selection:m,value:f,onFocus:o,onBlur:C,"data-testid":d})});Re.defaultProps={allowValueWrapping:!0,className:"",onChange:()=>!1,onSelect:()=>!1,value:0,onFocus:()=>!1,onBlur:()=>!1,"data-testid":void 0};function tr(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 yg(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?tr(Object(n),!0).forEach(function(r){de(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):tr(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function de(t,e,n){return(e=vg(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function vg(t){var e=bg(t,"string");return typeof e=="symbol"?e:e+""}function bg(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var nr=-1,Tt;(function(t){t.UP="UP",t.DOWN="DOWN"})(Tt||(Tt={}));class X extends c.Component{constructor(e){super(e),de(this,"csContainer",void 0),de(this,"menuContainer",void 0),de(this,"button",void 0),de(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=U.createRef(),this.menuContainer=U.createRef(),this.button=U.createRef(),this.input=U.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 Ye.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(X.MENU_NAVIGATION_DIRECTION.UP):this.handleMenuNavigation(X.MENU_NAVIGATION_DIRECTION.DOWN),e.stopPropagation(),e.preventDefault();break;case"ArrowUp":this.handleMenuNavigation(X.MENU_NAVIGATION_DIRECTION.UP),e.stopPropagation(),e.preventDefault();break;case"ArrowDown":this.handleMenuNavigation(X.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 X.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 X.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===nr){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(s=>s.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>X.DROP_DOWN_MENU_HEIGHT?r.scrollTop=i.offsetTop-X.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:s}=this.state,l=!1,d=[],f=0;f<e.length;f+=1){var p=e[f],h="option-".concat(f,"-").concat(p.value);l=l||p.value===n,d.push(u.jsxs("button",{type:"button",value:f,className:F("cs-option-btn",{"keyboard-active":a===f&&!s}),onClick:this.handleOptionClick,onFocus:this.handleOptionFocus,children:[p.value===n&&u.jsx(Z,{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:nr,className:F("cs-option-btn",{"keyboard-active":s}),onClick:this.handleOptionClick,onFocus:this.handleOptionFocus,children:[!l&&n!==null?u.jsx(Z,{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(Re,{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=yg({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:F("input-group-append cs-dropdown",{"cs-dropdown-invalid":n}),children:u.jsxs("button",{type:"button",className:F("btn cs-btn form-control",{"cs-btn-invalid":n}),ref:this.button,onClick:this.toggleMenu,disabled:e,children:[u.jsx("span",{className:F({"text-muted":r===null}),children:this.getSelectedText()}),u.jsx("span",{className:"cs-caret"}),u.jsx(gi,{isShown:a,actions:{menuElement:this.renderMenuElement()},popperOptions:o,popperClassName:"CustomTimeSelect",onMenuOpened:this.handleMenuOpened,onMenuClosed:this.handleMenuExited,menuStyle:{maxWidth:"100rem"}})]})})})}}de(X,"MENU_NAVIGATION_DIRECTION",Tt);de(X,"DROP_DOWN_MENU_HEIGHT",125);de(X,"defaultProps",{onChange(){},value:null,disabled:!1,popperOptions:{},icon:Zs,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 Pg=V.module("DateInput"),xg="[12][0-9]{3}-(0[1-9]|1[0-2])-(0[1-9]|[1-2][0-9]|3[0-1])",wg=["2000-01-01","2022-12-31"],Og="YYYY-MM-DD",Va=U.forwardRef((t,e)=>{var{className:n="",onChange:r=()=>{},defaultValue:i="",onFocus:a=()=>{},onBlur:o=()=>{},"data-testid":s}=t,[l,d]=c.useState(i),[f,p]=c.useState(),h=c.useCallback(m=>{Pg.debug("handleChange",m),d(m),r(m)},[r]);return u.jsx("div",{className:"d-flex flex-row align-items-center",children:u.jsx(rn,{ref:e,className:F(n),example:wg,getNextSegmentValue:Lp,onChange:h,onSelect:p,pattern:xg,placeholder:Og,selection:f,value:l,onFocus:a,onBlur:o,"data-testid":s})})});Va.displayName="DateInput";var Sg={CYCLE_TO_NEXT_STACK:fe.createAndAdd({id:"NAVIGATION.CYCLE_TO_NEXT_STACK",name:"Cycle To Next Stack",shortcut:[Y.CTRL,z.SINGLE_QUOTE],macShortcut:[Y.CMD,z.SINGLE_QUOTE],isEditable:!0}),CYCLE_TO_PREVIOUS_STACK:fe.createAndAdd({id:"NAVIGATION.CYCLE_TO_PREVIOUS_STACK",name:"Cycle To Previous Stack",shortcut:[Y.CTRL,z.SEMICOLON],macShortcut:[Y.CMD,z.SEMICOLON],isEditable:!0}),CYCLE_TO_NEXT_TAB:fe.createAndAdd({id:"NAVIGATION.CYCLE_TO_NEXT_TAB",name:"Cycle To Next Tab",shortcut:[Y.CTRL,Y.SHIFT,z.DOUBLE_QUOTE],macShortcut:[Y.CMD,Y.SHIFT,z.SINGLE_QUOTE],isEditable:!0}),CYCLE_TO_PREVIOUS_TAB:fe.createAndAdd({id:"NAVIGATION.CYCLE_TO_PREVIOUS_TAB",name:"Cycle To Previous TAB",shortcut:[Y.CTRL,Y.SHIFT,z.COLON],macShortcut:[Y.CMD,Y.SHIFT,z.SEMICOLON],isEditable:!0}),CYCLE_TO_NEXT_DASHBOARD:fe.createAndAdd({id:"NAVIGATION.CYCLE_TO_NEXT_DASHBOARD",name:"Cycle To Next Dashboard",shortcut:[Y.CTRL,z.PERIOD],macShortcut:[Y.CMD,z.PERIOD],isEditable:!0}),CYCLE_TO_PREVIOUS_DASHBOARD:fe.createAndAdd({id:"NAVIGATION.CYCLE_TO_PREVIOUS_DASHBOARD",name:"Cycle To Previous Dashboard",shortcut:[Y.CTRL,z.COMMA],macShortcut:[Y.CMD,z.COMMA],isEditable:!0})};function Eg(t){var{isInvalid:e=!1,items:n,onAdd:r=()=>{},onDelete:i=()=>{},validate:a=()=>null}=t,[o,s]=c.useState(null),[l,d]=c.useState([]),[f,p]=c.useState(""),h=c.useCallback(C=>{d(C)},[]),m=c.useCallback(()=>{i(Pn.getItemsInRanges(n,l)),d([])},[n,l,i]),g=c.useCallback(()=>{if(f!==""){var C=a(f);C==null?(r(f),p("")):s(C)}},[f,r,a]),x=c.useCallback(C=>{var{value:j}=C.target;p(j),s(j===""?null:a(j))},[a]),y=c.useCallback(()=>{d([])},[]),b=c.useCallback(C=>{C.key==="Enter"&&g()},[g]),P=c.useMemo(()=>14+Jr(n.length,1,6)*yt.DEFAULT_ROW_HEIGHT,[n.length]);return u.jsxs("div",{className:F("editable-item-list-container",{"is-invalid":e}),children:[u.jsx("div",{style:{height:P},children:u.jsx(yt,{itemCount:n.length,items:n.map((C,j)=>({value:C,isSelected:Pn.isSelected(l,j)})),offset:0,selectedRanges:l,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:F("form-control",{"is-invalid":o!=null}),placeholder:"Enter value",type:"text",value:f,onChange:x,onFocus:y,onKeyDown:b})}),u.jsxs("div",{className:"d-flex align-items-start mt-1 ml-2",children:[u.jsx(K,{kind:"ghost",onClick:g,disabled:o!=null||f==="",icon:el,tooltip:"Add new item","data-testid":"add-item-button"}),u.jsx(K,{kind:"ghost",onClick:m,disabled:l.length===0,icon:si,tooltip:"Delete selected items","data-testid":"delete-item-button"})]})]})]})}function Tg(t){var{message:e,isExpanded:n=!1,type:r="Error"}=t,[i,a]=c.useState(!1),[o,s]=c.useState(!1),l=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 et(l.current,p),c.useLayoutEffect(p,[p]),u.jsxs("div",{className:F("error-view",{expanded:o||n}),ref:l,children:[u.jsxs("div",{className:"error-view-header",children:[u.jsxs("div",{className:"error-view-header-text",children:[u.jsx(Z,{icon:tl}),u.jsx("span",{children:r})]}),u.jsxs("div",{className:"error-view-buttons",children:[u.jsx(Hi,{kind:"danger",className:"error-view-copy-button",tooltip:"Copy exception contents",copy:"".concat(r,": ").concat(e).trim()}),(i||o)&&!n&&u.jsx(K,{kind:"danger",className:"error-view-expand-button",onClick:()=>{s(!o)},icon:o?nl:rl,children:o?"Show Less":"Show More"})]})]}),u.jsx("pre",{className:"error-view-text",ref:d,children:e})]})}function Cg(t,e,n){return(e=jg(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function jg(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||"default");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 s=new Map(o);if(n!=null)s.set(n,o.get(n)!==!0);else{var l=Pe.isParentSelected(e,a),d=l==null||!l;o.forEach((h,m)=>s.set(m,d))}a.set(e,s)}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 s=new Map;a.forEach((l,d)=>s.set(d,e)),i.set(o,s)}}),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(vt,{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[s,l]=o;return u.jsx(vt,{className:"hcm-child",checked:l,onChange:()=>this.toggleValueFor(i,s),children:s},s)})]},i)}),u.jsx(K,{kind:"ghost",onClick:this.selectAll,"data-testid":n!==void 0?"".concat(n,"-btn-select-all"):void 0,children:"Select All"}),u.jsx(K,{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:F("btn hcm-btn",n),onClick:this.toggleMenu,id:i,"data-testid":a,children:[u.jsxs("span",{children:[r&&u.jsx(Z,{icon:r,className:"hcm-icon mr-1"}),e]}),u.jsx("span",{className:"cs-caret"}),u.jsx(Kt,{options:{placement:"bottom"},isShown:o,onExited:()=>{this.setState({menuIsOpen:!1})},closeOnBlur:!0,interactive:!0,children:this.renderMenuElement()})]})}}Cg(Pe,"defaultProps",{className:"",icon:null,id:"","data-testid":void 0});function rr(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 lt(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?rr(Object(n),!0).forEach(function(r){_g(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):rr(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function _g(t,e,n){return(e=kg(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function kg(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||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var Ha=c.memo(t=>{var{tab:e,onClose:n,onSelect:r,isActive:i,activeRef:a,index:o,isDraggable:s,contextActions:l}=t,{key:d,isClosable:f=n!=null,title:p,icon:h}=e,m;return h!=null&&(m=U.isValidElement(h)?h:u.jsx(Z,{icon:h})),u.jsx(Mo,{draggableId:d,index:o,isDragDisabled:!s,children:(g,x)=>u.jsxs("div",{className:"context-menu-wrapper",ref:i?a:null,children:[u.jsxs("div",lt(lt(lt({ref:g.innerRef},g.draggableProps),g.dragHandleProps),{},{className:F("btn btn-link btn-nav-tab",{active:i},{dragging:x.isDragging}),"data-testid":"btn-nav-tab-".concat(p),role:"tab",tabIndex:0,onAuxClick:y=>{f&&y.button===1&&y.buttons===0&&(n==null||n(d))},onClick:y=>{if(f&&y.button===1&&y.buttons===0){n==null||n(d);return}y.button===0&&y.buttons===0&&(y.target.focus(),r(d))},onKeyPress:y=>{y.key==="Enter"&&r(d)},children:[m,u.jsxs("span",{className:"btn-nav-tab-title",children:[p,u.jsx(Fe,{children:p})]}),f&&u.jsx(K,{kind:"ghost",className:"btn-nav-tab-close",onClick:y=>{n==null||n(d),y.stopPropagation(),y.preventDefault()},icon:li,tooltip:"Close"})]})),u.jsx(qt,{actions:l})]})},d)});Ha.displayName="NavTab";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 ar(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){Dg(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 Dg(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=Ag(t,"string");return typeof e=="symbol"?e:e+""}function Ag(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var Fg=500,Ng=.01,Mg=5e-4;function or(t){return t.scrollLeft===0}function sr(t){return t.scrollLeft+t.clientWidth===t.scrollWidth||t.scrollWidth===0}function $g(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,s=e.length-1;s>0&&e[s].key!==t.key;s-=1)if(e[s].isClosable===!0){o=!1;break}a.push({title:"Close to the Right",order:20,group:20,action:()=>{for(var l=e.length-1;l>0&&e[l].key!==i;l-=1)e[l].isClosable===!0&&n(e[l].key)},disabled:o}),a.push({title:"Close All",order:30,group:20,action:()=>{e.forEach(l=>{l.isClosable===!0&&n(l.key)})}})}return a}function Ug(t){var{activeKey:e,tabs:n,onSelect:r,onReorder:i,onClose:a,makeContextActions:o}=t,s=c.useRef(),[l,d]=c.useState(!0),[f,p]=c.useState(!0),[h,m]=c.useState(!0),g=c.useCallback(()=>{s.current!=null&&(s.current.clientWidth<s.current.scrollWidth&&n.length>0?d(!0):d(!1),p(or(s.current)),m(sr(s.current)))},[n]);et(s.current,g);var x=c.useCallback(w=>{Ot.stopDragging(),w.destination&&(i==null||i(w.source.index,w.destination.index))},[i]),y=c.useCallback(()=>{if(s.current!=null){var w=or(s.current);w!==f&&p(w);var O=sr(s.current);O!==h&&m(O)}},[f,h]),b=c.useRef({cancelClick:!1}),P=c.useCallback(()=>{if(!(s.current==null||b.current.cancelClick))for(var{children:w}=s.current,O=w.length-1;O>=0;O-=1){var k=w[O];if(k.offsetLeft<s.current.scrollLeft-5){k.scrollIntoView({behavior:"smooth",block:"nearest",inline:"start"});return}}},[]),C=c.useCallback(()=>{if(!(s.current==null||b.current.cancelClick))for(var{children:w}=s.current,O=0;O<w.length;O+=1){var k=w[O];if(k.offsetLeft+5>s.current.scrollLeft+s.current.offsetWidth){k.scrollIntoView({behavior:"smooth",block:"nearest",inline:"end"});return}}},[]),j=c.useCallback(function(w,O){var k=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,N=arguments.length>3?arguments[3]:void 0,W=s.current;W!=null&&(b.current.cancelClick=!0,w==="left"?W.scrollLeft=O-k:w==="right"&&(W.scrollLeft=O+k),b.current.rAF=requestAnimationFrame(G=>{var q=N??G,T=G-q,R=Ng*T+.5*Mg*T**2;R=Math.min(R,W.scrollWidth),j(w,O,R,q)}))},[]),v=c.useCallback(()=>{var{holdTimer:w,rAF:O}=b.current;w!=null&&(clearTimeout(w),b.current.holdTimer=void 0),O!=null&&(cancelAnimationFrame(O),b.current.rAF=void 0),window.removeEventListener("mouseup",v)},[]);c.useEffect(()=>()=>window.removeEventListener("mouseup",v),[v]);var S=c.useCallback(w=>{s.current!=null&&(b.current.holdTimer=window.setTimeout(j,Fg,w,s.current.scrollLeft)),b.current.cancelClick=!1,window.addEventListener("mouseup",v)},[v,j]),I=c.useCallback(()=>{S("left")},[S]),_=c.useCallback(()=>{S("right")},[S]);c.useEffect(function(){var O,k=N=>{N.stopPropagation(),N.preventDefault();var W=N.currentTarget,G=Math.abs(N.deltaY)>Math.abs(N.deltaX)?N.deltaY:N.deltaX;W.scrollLeft+=Jr(G,-30,30)};return(O=s.current)===null||O===void 0||O.addEventListener("wheel",k),()=>{var N;(N=s.current)===null||N===void 0||N.removeEventListener("wheel",k)}},[]);var A=c.useMemo(()=>{var w=new Map;return n.forEach(O=>{var{key:k}=O,N=[()=>$g(O,n,a),()=>{var W;return(W=o==null?void 0:o(O))!==null&&W!==void 0?W:[]}];w.set(k,N)}),w},[o,n,a]),L=c.useRef(null),H=n.find(w=>w.key===e),E=n.map((w,O)=>{var{key:k}=w,N=w===H;return u.jsx(Ha,{tab:w,index:O,isActive:N,activeRef:L,onSelect:r,onClose:a,isDraggable:i!=null,contextActions:A.get(k)},k)});return c.useEffect(function(){L.current!=null&&L.current.scrollIntoView({block:"nearest",inline:"nearest"})},[e]),u.jsxs("nav",{className:"nav-container",children:[l&&u.jsx(K,{kind:"ghost",icon:u.jsx(Z,{icon:il,transform:"grow-4"}),className:"tab-controls-btn tab-controls-btn-left",tooltip:"Scroll left",onClick:P,onMouseDown:I,disabled:f}),u.jsx($o,{onDragStart:Ot.startDragging,onDragEnd:x,children:u.jsx(Uo,{droppableId:"droppable-tab-navigation",direction:"horizontal",children:(w,O)=>u.jsxs("div",ar(ar({ref:k=>{k!=null&&(s.current=k,w.innerRef(k))}},w.droppableProps),{},{className:F("nav nav-tabs",{dragging:O.draggingFromThisWith}),role:"tablist",onScroll:y,children:[E,w.placeholder]}))})}),l&&u.jsx(K,{kind:"ghost",icon:u.jsx(Z,{icon:al,transform:"grow-4"}),className:"tab-controls-btn tab-controls-btn-right",tooltip:"Scroll right",onClick:C,onMouseDown:_,disabled:h})]})}var Bg=.025,Wg=.9,Vg=.1,Hg=.618,lr=80,ye={SIZE:8,DOT_SIZE:2},oe=18,Yg=250,Gg=60*1e3,Kg={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 qg(){return ui(Kg)}var Ya=U.memo(()=>{var{activeThemes:t}=nt(),e=c.useMemo(qg,[t]),n=c.useRef(null),r=c.useRef(null),[i,a]=c.useState(!1),o=window.devicePixelRatio,s,l,d,f,p,h=null,m=[];function g(){var E;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),(E=s)===null||E===void 0||E.scale(o,o)}function x(){var{foregroundFill:E,foregroundStroke:w}=e,O=document.createElement("canvas");O.width=ye.SIZE,O.height=ye.SIZE;var k=O.getContext("2d");return k!=null&&(k.fillStyle=w,k.fillRect(0,0,ye.DOT_SIZE,ye.DOT_SIZE),k.fillStyle=E,k.fillRect(0,0,ye.SIZE,ye.SIZE)),k==null?void 0:k.createPattern(O,"repeat")}function y(E){var w=Math.random()-.5,O=Bg*w;return E<Vg?O=Math.abs(O):E>Wg&&(O=-Math.abs(O)),E+O}function b(){for(var E=[],w=Hg,O=0;O<d+oe;O+=1)w=y(w),E.push(w);return E}function P(){for(;m.length>=d+oe;)m.pop();for(;m.length<d+oe;)m.push(y(m[m.length-1]))}function C(E,w){w.beginPath(),w.moveTo(-1,f+1),w.lineTo(-1,f*E[0]);for(var O=0;O<E.length;O+=1)w.lineTo(O,f*E[O]);w.lineTo(d+oe,f*E[E.length-1]),w.lineTo(d+oe,f+1),w.closePath()}function j(E){E.beginPath();for(var w=1;w<d;w+=lr)E.moveTo(w,0),E.lineTo(w,f);for(var O=1;O<f;O+=lr)E.moveTo(0,O),E.lineTo(d,O)}function v(E){var w,O,k;h=(w=h)!==null&&w!==void 0?w:E;var{background:N,foregroundStroke:W,gridColor:G}=e;Je(s),s.fillStyle=N,s.fillRect(0,0,d,f),j(s),s.lineWidth=1,s.strokeStyle=G,s.stroke();var q=(((O=h)!==null&&O!==void 0?O:0)-(E??0))/(1e3/oe);if(s.translate(q,0),C(m,s),s.lineWidth=2,s.strokeStyle=W,s.stroke(),s.translate(-q,0),l!=null&&(s.fillStyle=l),s.fill(),s.setTransform(o,0,0,o,0,0),(E??0)-((k=h)!==null&&k!==void 0?k:0)>1e3/oe){for(var T,R=Math.floor(((E??0)-((T=h)!==null&&T!==void 0?T:0))/(1e3/oe)),D=0;D<R;D+=1)m.shift(),m.push(y(m[m.length-1]));h=E}p!=null&&cancelAnimationFrame(p),p=requestAnimationFrame(v)}var S=je(()=>{p=requestAnimationFrame(E=>{g(),P(),a(!1),v(E)})},Yg,{leading:!0});function I(){a(!0),p!=null&&cancelAnimationFrame(p),p=null,h=null}var _=je(()=>{I()},Gg);function A(){p==null&&(a(!1),g(),P(),p=requestAnimationFrame(v)),_()}function L(){document.hasFocus()&&A()}function H(){p!=null&&cancelAnimationFrame(p),_(),S()}return c.useEffect(()=>{var E;return s=(E=n.current)===null||E===void 0?void 0:E.getContext("2d",{alpha:!1}),g(),m=b(),l=x(),v(),_(),window.addEventListener("resize",H),window.addEventListener("focus",A),window.addEventListener("blur",I),window.addEventListener("mousemove",L),window.addEventListener("keydown",L),()=>{p!=null&&cancelAnimationFrame(p),window.removeEventListener("resize",H),window.removeEventListener("focus",A),window.removeEventListener("blur",I),window.removeEventListener("mousemove",L),window.removeEventListener("keydown",L),_.cancel(),S.cancel()}},[e]),u.jsx("div",{className:"random-area-plot-animation-container",ref:r,children:u.jsx("canvas",{ref:n,className:i?"shade":""})})});function Ga(t){var{text:e,placement:n="top-start"}=t,r=c.useMemo(()=>({placement:n}),[n]);return u.jsxs(u.Fragment,{children:[u.jsx(at,{UNSAFE_className:tn.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 ur(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 cr(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?ur(Object(n),!0).forEach(function(r){Xg(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ur(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function Xg(t,e,n){return(e=Qg(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Qg(t){var e=Jg(t,"string");return typeof e=="symbol"?e:e+""}function Jg(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Zg(t,e){if(t==null)return{};var n,r,i=ey(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 ey(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 ty(t){var{scrollRef:e,getItemDisplayText:n,getKey:r}=t,i=Zg(t,zg),a=c.useCallback(o=>{var s=r(o),l=n(o);return u.jsx(ze,{textValue:l??String(s),children:u.jsx(Ga,{text:l})},s)},[n,r]);return u.jsx($t,cr(cr({},i),{},{ref:e,menuTrigger:"focus",onSelectionChange:i.onSelectionChange,children:a}))}var ny=500;function ry(t){var{heading:e,content:n,delayMs:r=ny}=t,[i,a]=c.useState(!1);return c.useEffect(()=>{window.setTimeout(()=>{a(!0)},r)},[r]),i?u.jsxs(Zr,{children:[u.jsx(Le,{size:"XXL",children:u.jsx(Z,{icon:ol})}),u.jsx(ot,{children:e}),n==null?null:u.jsx(Ut,{children:n})]}):null}const iy="_modified_5rbci_24",ay="_track_5rbci_35",oy="_handle_5rbci_15",sy="_ticks_5rbci_103",Ka={"handle-size":"15px","popover-width":"90px","time-slider":"_time-slider_5rbci_5","time-slider-popovers":"_time-slider-popovers_5rbci_10","handle-popper":"_handle-popper_5rbci_15",modified:iy,"flex-spacer":"_flex-spacer_5rbci_31",track:ay,"track-fills":"_track-fills_5rbci_42","track-fill":"_track-fill_5rbci_42","track-fill-start":"_track-fill-start_5rbci_60","track-fill-middle":"_track-fill-middle_5rbci_61","track-fill-end":"_track-fill-end_5rbci_64","handle-track":"_handle-track_5rbci_67",handle:oy,ticks:sy,"tick-labels":"_tick-labels_5rbci_121","tick-label":"_tick-label_5rbci_121","tick-label-wrapper":"_tick-label-wrapper_5rbci_137"};var We=parseInt(Ka["handle-size"],10),dr=parseInt(Ka["popover-width"],10),Q=24*60*60-1,pr=5*60;function ly(t){var{startTime:e,endTime:n,onChange:r,isStartModified:i=!1,isEndModified:a=!1,"data-testid":o}=t,[s,l]=c.useState(e),[d,f]=c.useState(n),p=c.useRef(null);c.useEffect(function(){l(e),f(n)},[e,n]);var h=c.useCallback((x,y)=>{var b=x,P=y;b===P&&(P<Q?P+=1:b-=1),l(b),f(P),r({startTime:b,endTime:P})},[l,f,r]),m=c.useCallback(x=>{h(x,d)},[h,d]),g=c.useCallback(x=>{h(s,x)},[h,s]);return u.jsxs("div",{className:"time-slider","data-testid":o,children:[u.jsx(uy,{startTime:s,endTime:d,onStartTimeChange:m,onEndTimeChange:g,isStartModified:i,isEndModified:a}),u.jsxs("div",{className:"track",ref:p,children:[u.jsx(cy,{startTime:s,endTime:d}),u.jsx("div",{className:"ticks",children:Array(24).fill(null).map((x,y)=>u.jsx("div",{className:"tick"},y))}),u.jsx(fr,{track:p,time:s,setTime:m}),u.jsx(fr,{track:p,time:d,setTime:g})]}),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((x,y)=>u.jsx("div",{className:"tick-label",children:"".concat(y+1,":00")},y))})]})]})}function uy(t){var{startTime:e,endTime:n,onStartTimeChange:r,onEndTimeChange:i,isStartModified:a,isEndModified:o,"data-testid":s}=t,l=e>n,[d,f]=c.useState(l?n:e),[p,h]=c.useState(l?e:n),m=c.useRef(null),g=c.useRef(null),x=c.useRef(null),y=c.useRef(null);c.useEffect(function(){f(e>n?n:e),h(e>n?e:n)},[e,n]),c.useEffect(function(){if(x.current!==null){var S;(S=g.current)===null||S===void 0||S.setSelection(x.current)}if(y.current!==null){var I;(I=m.current)===null||I===void 0||I.setSelection(y.current)}},[l]);function b(v){e<=n?r(v):i(v)}function P(v){e<=n?i(v):r(v)}var C=c.useCallback(v=>{x.current=v,y.current=null},[]),j=c.useCallback(v=>{x.current=null,y.current=v},[]);return u.jsxs("div",{className:"time-slider-popovers",children:[u.jsx("div",{className:"flex",style:{flexBasis:"calc(".concat(d/Q*100,"% - ").concat(dr/2,"px)")}}),u.jsxs("div",{className:"handle-popper",children:[u.jsx("label",{className:F({modified:l?o:a}),children:l?"End Time":"Start Time"}),u.jsx(Re,{ref:m,allowValueWrapping:!1,value:d,onChange:b,onSelect:C,"data-testid":s!==void 0?"".concat(s,"-input-1"):void 0})]}),u.jsx("div",{className:"flex-spacer"}),u.jsxs("div",{className:"handle-popper",children:[u.jsx("label",{className:F({modified:l?a:o}),children:l?"Start Time":"End Time"}),u.jsx(Re,{ref:g,allowValueWrapping:!1,value:p,onChange:P,onSelect:j,"data-testid":s!==void 0?"".concat(s,"-input-2"):void 0})]}),u.jsx("div",{className:"flex",style:{flexBasis:"calc(".concat((Q-p)/Q*100,"% - ").concat(dr/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/Q,")")}}),u.jsx("div",{className:"track-fill track-fill-end",style:{transform:"scaleX(".concat((Q-e)/Q,")")}})]}),e<n&&u.jsx("div",{className:"track-fill track-fill-middle",style:{transform:"translateX(".concat(e/Q*100,"%) scaleX(").concat((n-e)/Q,")")}})]})}function fr(t){var{track:e,time:n,setTime:r,"data-testid":i}=t,a=c.useMemo(()=>{var h=3600,m=We/2;return n<h?m=n/h*(We/2):n>23*h&&(m=We/2+1/(Q-23*h)*(n-23*h)*(We/2)),"translateX(calc(".concat(n/Q*100,"% - ").concat(m,"px))")},[n]),o=c.useCallback(h=>{if(!e.current)return 0;var m=e.current.getBoundingClientRect(),g=Math.max(h-m.left,0),x=Q*Math.min(1,g/m.width),y=pr*Math.round(x/pr),b=Math.min(Q,y);return b},[e]),s=c.useCallback(h=>{var{clientX:m}=h;r(o(m))},[r,o]),l=c.useCallback(h=>{var{clientX:m}=h;r(o(m)),window.removeEventListener("mousemove",s),window.removeEventListener("mouseup",l),document.documentElement.classList.remove("drag-pointer-events-none")},[r,o,s]),d=c.useCallback(()=>{window.addEventListener("mousemove",s),window.addEventListener("mouseup",l),document.documentElement.classList.add("drag-pointer-events-none")},[s,l]),f=c.useCallback(()=>{window.removeEventListener("mousemove",s),window.removeEventListener("mouseup",l),document.documentElement.classList.remove("drag-pointer-events-none")},[s,l]),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 qa(t){var{buttons:e,isShown:n=!1,classNames:r,message:i,type:a,onClick:o,onDismiss:s,"data-testid":l}=t,d=e&&e.length!==0;return u.jsx(Qr,{in:n,timeout:gt.transitionMs,classNames:"toast-notification-slide-up",mountOnEnter:!0,unmountOnExit:!0,children:u.jsxs("div",{className:F("toast-notification",r,a),role:"presentation",onClick:o,onKeyPress:o,"data-testid":l,children:[u.jsx("div",{className:"message-container",children:u.jsx("span",{className:"message",children:i})}),u.jsx(zt,{in:d,timeout:gt.transitionSlowMs,mountOnEnter:!0,unmountOnExit:!0,children:u.jsx("div",{className:"buttons-container",children:e})}),s&&u.jsx(K,{kind:"ghost",icon:li,tooltip:"Close notification",className:"my-2",onClick:s})]})})}qa.TYPE=Object.freeze({ERROR:"error"});const dy=Object.freeze(Object.defineProperty({__proto__:null,ACTION_ICON_HEIGHT:nn,Accordion:Bo,ActionBar:Xr,ActionButton:Xe,ActionButtonDialogTrigger:Fa,ActionGroup:Ap,ActionMenu:Fp,AlertDialog:Wo,AutoCompleteInput:ee,AutoResizeTextarea:ln,Avatar:Vo,Badge:Ho,BasicModal:yi,Breadcrumbs:Yo,BulkActionBar:og,Button:K,ButtonGroup:zr,CSS_VAR_EXPRESSION_PREFIX:sl,Calendar:Go,CardFlip:yd,Checkbox:vt,CheckboxGroup:Am,Collapse:ne,ColorEditor:Ko,ColorPicker:qo,ColorValues:Np,ComboBox:Mp,ComboBoxNormalized:Da,ConfirmActionButton:Ym,ConfirmationDialog:Na,Content:Ut,ContextActionUtils:ce,ContextActions:qt,ContextMenuItem:mi,ContextMenuRoot:Ba,ContextualHelp:zo,ContextualHelpTrigger:Xo,CopyButton:Hi,CustomTimeSelect:X,DEFAULT_DARK_THEME_KEY:ll,DEFAULT_DARK_THEME_PALETTE:ul,DEFAULT_GET_PREFERRED_REPLACEMENT_STRING:oa,DEFAULT_LIGHT_THEME_KEY:cl,DEFAULT_PRELOAD_DATA_VARIABLES:dl,DH_CSS_VAR_NAME_REGEXP:pl,DH_VAR_PREFIX:fl,DateField:Qo,DateInput:Va,DatePicker:Jo,DateRangePicker:Zo,DateTimeInput:$p,DebouncedModal:$a,DebouncedSearchInput:yu,Dialog:Gr,DialogContainer:es,DialogTrigger:Yr,Disclosure:ts,DisclosurePanel:ns,DisclosureTitle:rs,Divider:Kr,DragUtils:Ot,DraggableItemList:Up,DropdownMenu:gi,EXTERNAL_THEME_KEY:hl,EditableItemList:Eg,ErrorBoundary:vu,ErrorView:Tg,FadeTransition:zt,Flex:Hr,Footer:is,Form:qr,GLOBAL_SHORTCUTS:vi,Grid:as,Header:os,Heading:ot,HierarchicalCheckboxMenu:Pe,ITEM_EMPTY_STRING_TEXT_VALUE:Bp,Icon:Le,IconActionButton:Ma,IllustratedMessage:Zr,Image:ss,InfoModal:Ua,InlineAlert:ls,Item:ze,ItemContent:Wp,ItemList:yt,ItemListItem:bu,ItemTooltip:Vp,get KEY(){return z},Keyboard:us,LIST_VIEW_ROW_HEIGHTS:sa,LabeledValue:cs,Link:ei,ListActionGroup:Hp,ListActionMenu:Yp,ListView:cm,ListViewNormalized:La,ListViewWrapper:sn,LoadingOverlay:ge,LoadingSpinner:Qe,LogicButton:ds,Logo:Yh,get MODIFIER(){return Y},MSG_REQUEST_GET_THEME:ml,MSG_REQUEST_SET_THEME:ai,MaskedInput:rn,Menu:Gp,MenuItem:Kp,MenuTrigger:ps,Meter:fs,Modal:Vt,ModalBody:Ht,ModalFooter:bi,ModalHeader:ci,NAVIGATION_SHORTCUTS:Sg,NON_WHITESPACE_REGEX:gl,NavTabList:Ug,NumberField:hs,Option:la,PICKER_ITEM_HEIGHTS:qp,PICKER_TOP_OFFSET:zp,PRELOAD_TRANSPARENT_THEME_QUERY_PARAM:yl,Page:Xp,Picker:Qp,PickerNormalized:Jp,Popper:Kt,ProgressBar:ms,ProgressCircle:gs,Radio:ys,RadioGroup:vs,RandomAreaPlotAnimation:Ya,RangeCalendar:bs,RangeSlider:Ps,SVG_ICON_MANUAL_COLOR_MAP:vl,SearchField:xs,SearchInput:Pi,SearchableCombobox:ty,Section:Zp,Select:xi,SelectValueList:ua,Shortcut:Pu,ShortcutRegistry:fe,SlideTransition:ef,Slider:ws,SocketedButton:vd,SpectrumButton:ht,SpectrumCheckbox:ft,SpectrumComboBox:$t,SpectrumMenu:Os,SplitButtonGroup:xu,Stack:tf,StatusLight:Ss,SubmenuTrigger:Es,Switch:Ts,TABLE_ROW_HEIGHT:nf,THEME_CACHE_LOCAL_STORAGE_KEY:bl,THEME_KEY_OVERRIDE_QUERY_PARAM:Pl,TMP_CSS_PROP_PREFIX:xl,TRANSPARENT_PRELOAD_DATA_VARIABLES:wl,TabList:Cs,TabPanels:xh,TableViewEmptyState:ry,Tabs:js,TagGroup:Is,Text:at,TextArea:_s,TextField:ks,TextWithTooltip:Ga,ThemeContext:wu,ThemeExport:gt,ThemePicker:Hh,ThemeProvider:wi,TimeField:Rs,TimeInput:Re,TimeSlider:ly,ToastContainer:Ds,ToastNotification:qa,ToastQueue:Ls,ToggleButton:As,Tooltip:Fe,UISwitch:Ou,View:Aa,WHITESPACE_REGEX:Ol,Well:Fs,XComponentMapContext:Su,XComponentMapProvider:Eu,baseStyleProps:Ns,calculatePreloadStyleContent:Sl,canHaveRef:Oi,colorValueStyle:J,createCssVariableResolver:El,createPreloadStyleElement:Tl,createXComponent:Tu,extractDistinctCssVariableExpressions:Cl,fillToLength:rf,getActiveThemes:jl,getDefaultBaseThemes:Il,getDefaultSelectedThemeKey:_l,getExpressionRanges:kl,getItemKey:wt,getItemTextValue:af,getPositionOfSelectedItemElement:of,getThemeKey:Rl,getThemeKeyOverride:Dl,getThemePreloadData:Ll,isBaseThemeKey:Al,isClassComponent:Cu,isDHColorValue:sf,isExternalThemeData:oi,isExternalThemeEnabled:Bt,isForwardRefComponentType:ju,isItemElement:lf,isItemElementWithDescription:uf,isItemOrSection:cf,isNormalizedItemsWithKeysList:df,isNormalizedSection:pf,isPreloadTransparentTheme:Fl,isSectionElement:ff,isValidColorVar:Nl,isWrappedComponent:Si,itemSelectionToStringSet:Ge,normalizeTooltipOptions:en,overrideSVGFillColors:Ml,parseExternalThemeData:ri,preloadTheme:$l,replaceSVGFillColor:Ul,requestExternalThemeData:ii,resolveCssVariablesInRecord:ui,resolveCssVariablesInString:Bl,separateSpectrumProps:_a,setThemePreloadData:Wl,themeDHDefault:Vl,themeDark:Hl,themeLight:Yl,trimTrailingMask:hf,useExternalTheme:Ra,useOnChangeTrackUncontrolled:mf,usePickerItemScale:ca,usePickerNormalizedProps:ra,usePickerProps:gf,usePickerScrollOnOpen:yf,useRenderNormalizedItem:aa,useSpectrumThemeProvider:Zt,useStaticItemInitialScrollPosition:vf,useStringifiedMultiSelection:ka,useStringifiedSelection:bf,useStyleProps:Ms,useTheme:nt,useXComponent:Iu,viewStyleProps:$s,wrapIcon:Pf,wrapItemChildren:ia,wrapPrimitiveWithText:xf},Symbol.toStringTag,{value:"Module"}));var za=U.memo(t=>{var{children:e,onError:n,widget:r}=t,[i,a]=Yi(r);return a!=null?(n==null||n(a),null):i==null?null:u.jsx(Yt.Provider,{value:i,children:e})});za.displayName="DeferredApiBootstrap";var un=c.createContext(null);function Xa(t){var[e,n]=c.useState({status:"loading"}),r=c.useContext(un);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 hr(t,e,n,r,i,a,o){try{var s=t[a](o),l=s.value}catch(d){return void n(d)}s.done?e(l):Promise.resolve(l).then(r,i)}function py(t){return function(){var e=this,n=arguments;return new Promise(function(r,i){var a=t.apply(e,n);function o(l){hr(a,r,i,o,s,"next",l)}function s(l){hr(a,r,i,o,s,"throw",l)}o(void 0)})}}var Ve=V.module("useWidget");function fy(t){var[e,n]=c.useState(()=>({widget:null,error:null})),r=Xa(t);return c.useEffect(function(){Ve.debug("loadWidget",t);var{status:a}=r;if(a==="error"){n({widget:null,error:r.error});return}if(a==="loading"){n({widget:null,error:null});return}var{fetch:o}=r,s=!1;function l(){return d.apply(this,arguments)}function d(){return d=py(function*(){try{Je(o);var f=yield o();if(s){Ve.debug2("loadWidgetInternal cancelled",t,f),f.close(),"exportedObjects"in f&&f.exportedObjects.forEach(p=>{p.close()});return}Ve.debug("loadWidgetInternal done",t,f),n({widget:f,error:null})}catch(p){if(s)return;Ve.error("loadWidgetInternal error",t,p),n({widget:null,error:p??new Error("Null error")})}}),d.apply(this,arguments)}return l(),()=>{s=!0}},[t,r]),e}const hy=Object.freeze(Object.defineProperty({__proto__:null,ApiBootstrap:Gl,ApiContext:Yt,ClientBootstrap:pi,ClientContext:eu,DeferredApiBootstrap:za,DeferredApiContext:bd,ObjectFetchManagerContext:un,ObjectFetcherContext:Ei,getVariableDescriptor:_u,isIdVariableDescriptor:ku,isNameVariableDescriptor:Ru,isVariableDescriptor:Du,sanitizeVariableDescriptor:Ti,useApi:Se,useClient:Ae,useDeferredApi:Yi,useObjectFetch:Xa,useObjectFetcher:Lu,useWidget:fy},Symbol.toStringTag,{value:"Module"}));function my(t){return function(n){var{children:r}=n;return u.jsx(Yt.Provider,{value:t,children:r})}}var Qa="io.deephaven.message.LoginOptions.request",Ja="io.deephaven.message.SessionDetails.request",Za="io.deephaven.broadcast",cn="io.deephaven.broadcast.Login",eo="io.deephaven.broadcast.Logout";function to(t){return Ze(t)&&t.message===cn}function no(t){return Ze(t)&&t.message===eo}function gy(t,e,n){return(e=yy(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function yy(t){var e=vy(t,"string");return typeof e=="symbol"?e:e+""}function vy(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}class ro extends Error{constructor(){super(...arguments),gy(this,"isNoConsolesError",!0)}}function io(t){return t.isNoConsolesError}function mr(t,e,n,r,i,a,o){try{var s=t[a](o),l=s.value}catch(d){return void n(d)}s.done?e(l):Promise.resolve(l).then(r,i)}function st(t){return function(){var e=this,n=arguments;return new Promise(function(r,i){var a=t.apply(e,n);function o(l){mr(a,r,i,o,s,"next",l)}function s(l){mr(a,r,i,o,s,"throw",l)}o(void 0)})}}var Ce=V.module("SessionUtils");function ao(t,e,n){return Ct.apply(this,arguments)}function Ct(){return Ct=st(function*(t,e,n){Ce.info("Getting console types...");var r=yield e.getConsoleTypes();if(r.length===0)throw new ro("No console types available");Ce.info("Available types:",r);var i=r[0];Ce.info("Starting session with type",i);var a=yield e.startSession(i),o={type:i,id:Mt()};return Ce.info("Console session established",o),{session:a,config:o,connection:e,details:n,dh:t}}),Ct.apply(this,arguments)}function by(t,e,n){return Ce.info("createCoreClient",e),new t.CoreClient(e,n)}function Py(t){return t!=null&&typeof t=="object"}function xy(){return jt.apply(this,arguments)}function jt(){return jt=st(function*(){var t=yield Gt(Ja);if(!Py(t))throw new Error("Unexpected session details response: ".concat(t));return t}),jt.apply(this,arguments)}function wy(){return It.apply(this,arguments)}function It(){return It=st(function*(){var t=new URLSearchParams(window.location.search);switch(t.get("authProvider")){case"parent":return xy()}return{}}),It.apply(this,arguments)}function Oy(t,e,n){return _t.apply(this,arguments)}function _t(){return _t=st(function*(t,e,n){var r;try{r=yield ao(t,e,n)}catch(i){if(!io(i))throw i}return r}),_t.apply(this,arguments)}const Sy=Object.freeze(Object.defineProperty({__proto__:null,BROADCAST_CHANNEL_NAME:Za,BROADCAST_LOGIN_MESSAGE:cn,BROADCAST_LOGOUT_MESSAGE:eo,BooleanColumnFormatter:Pd,CharColumnFormatter:xd,DateTimeColumnFormatter:Au,DateUtils:wd,DecimalColumnFormatter:Fu,DefaultColumnFormatter:Od,FETCH_TIMEOUT:tu,Formatter:Xt,FormatterUtils:xt,ITEM_KEY_PREFIX:Sd,IntegerColumnFormatter:Nu,LOGIN_OPTIONS_REQUEST:Qa,NewTableColumnTypes:Mu,NoConsolesError:ro,SESSION_DETAILS_REQUEST:Ja,StringColumnFormatter:Ed,TableColumnFormatter:$u,TableUtils:Td,createComboboxFilterArgs:Cd,createCoreClient:by,createFilterConditionFactory:Qt,createFormatterFromSettings:jd,createKeyedItemKey:Gi,createNotNullOrEmptyFilterCondition:Ki,createOnTableUpdatedHandler:Id,createSearchTextFilter:qi,createSelectedValuesFilter:Jt,createSessionWrapper:ao,createShowOnlyEmptyFilterCondition:zi,createValueFilter:Xi,defaultRowDeserializer:_d,fetchVariableDefinition:nu,generateEmptyKeyedItems:kd,getColumnFormats:Rd,getDateTimeFormatterOptions:Dd,getSessionDetails:wy,getSize:Ld,getWindowParent:Wt,isBroadcastLoginMessage:to,isBroadcastLogoutMessage:no,isClosed:Ad,isCustomColumnFormatDefined:Fd,isMessage:Ze,isNoConsolesError:io,isResponse:Kl,isSortDirection:Nd,loadSessionWrapper:Oy,makeMessage:di,makeResponse:ql,padFirstAndLastRow:Md,requestParentResponse:Gt},Symbol.toStringTag,{value:"Module"}));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=Cy(t,"string");return typeof e=="symbol"?e:e+""}function Cy(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}class jy extends Error{constructor(){super(...arguments),Ey(this,"isColumnNameError",!0)}}function Iy(t,e,n){return(e=_y(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function _y(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||"default");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,"isTableDisconnectError",!0)}}var He=V.module("useTable"),oo=(t,e,n,r)=>{var i=Se(),[a,o]=c.useState(void 0),[s,l]=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(y){He.error("Column not found",y,r),f(new jy("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(y=>{var{detail:b}=y;if(!a){He.error("Columns not initialized.");return}var P=a.map(C=>b.rows.map(j=>j.get(C)));l(P)},[a]),g=c.useCallback(()=>{h(new Ry("Table disconnected"))},[]),x=c.useCallback(()=>{h(null)},[]);return Ke(t,i.Table.EVENT_UPDATED,m),Ke(t,i.Table.EVENT_DISCONNECT,g),Ke(t,i.Table.EVENT_RECONNECT,x),{columns:a,data:s,error:p??d}},so=(t,e,n,r)=>{var i=c.useMemo(()=>[r],[r]),{columns:a=[],data:o=[],error:s}=oo(t,e,n,i);return{column:a[0],data:o[0],error:s}};function gr(t,e,n,r,i,a,o){try{var s=t[a](o),l=s.value}catch(d){return void n(d)}s.done?e(l):Promise.resolve(l).then(r,i)}function Dy(t){return function(){var e=this,n=arguments;return new Promise(function(r,i){var a=t.apply(e,n);function o(l){gr(a,r,i,o,s,"next",l)}function s(l){gr(a,r,i,o,s,"throw",l)}o(void 0)})}}var re=V.module("TableInput"),ut=250;function dn(t){var e,n,{className:r=void 0,columnName:i,settings:a,defaultValue:o=[],isInvalid:s=!1,onChange:l=()=>!1,onBlur:d=()=>!1,table:f}=t,p=c.useRef(null),h=Se(),m=c.useMemo(()=>{var T=xt.getColumnFormats(a),R=xt.getDateTimeFormatterOptions(a),{defaultDecimalFormatOptions:D={},defaultIntegerFormatOptions:B={}}=a;return new Xt(h,T,R,D,B)},[h,a]),[g,x]=c.useState(""),[y,b]=c.useState(new Set(o)),[P,C]=c.useState(),j=c.useRef(null),v=Math.min((e=P==null?void 0:P.size)!==null&&e!==void 0?e:0,ut),{column:S,data:I,error:_}=so(P,0,ut-1,i),A=c.useCallback(T=>S?m.getFormattedString(T,S.type,S.name):"".concat(T),[S,m]),[L,H]=c.useMemo(()=>{var T=new Set(y),R=[];if(I==null)return[R,null];if(I.forEach(B=>{var ae="".concat(B),yn=y.has(ae);yn&&T.delete(ae),R.push({value:ae,displayValue:A(B),isSelected:yn})}),T.size>0){re.debug2("Selection has items that are missing from the viewport");var D=new Set(y);return Array.from(T).forEach(B=>{D.delete(B)}),[R,D]}return[R,null]},[I,y,A]);c.useEffect(()=>{H!==null&&(b(H),l(Array.from(H)))},[l,H]);var E=c.useCallback(function(){var T=Dy(function*(R){try{var D=yield R;re.debug("Table resolved",D),C(D)}catch(B){if(me.isCanceled(B))return;re.error(B)}});return function(R){return T.apply(this,arguments)}}(),[]);c.useEffect(()=>{var T=me.makeCancelable(f);return E(T),()=>{re.debug2("Cancel table promise"),T.cancel()}},[f,E]);var w=c.useCallback(T=>{var{value:R}=T.target;x(R);var D=L.findIndex(ae=>ae.displayValue.includes(R));if(D>-1){var B;re.debug2("Found ".concat(R," at index ").concat(D)),(B=j.current)===null||B===void 0||B.scrollIntoView(D)}else re.debug2("".concat(R," not found"))},[L,j]),O=c.useCallback(T=>{if(re.debug("handleSelect",T),T>=L.length){re.error("Invalid index",T);return}var R=L[T].value,D=new Set(y);L[T].isSelected?D.delete(R):D.add(R),b(D),l(Array.from(D))},[l,L,y]),k=c.useCallback(()=>{var T=L.map(D=>D.value),R=new Set(T);b(R),l(T)},[L,l]),N=c.useCallback(()=>{b(new Set),l([])},[l]),W=c.useCallback(()=>{},[]),G=c.useCallback(T=>{var R,{relatedTarget:D}=T;re.debug("handleChildBlur",D,D instanceof HTMLElement,p.current,(R=p.current)===null||R===void 0?void 0:R.contains(D)),(!D||p.current&&D instanceof HTMLElement&&!p.current.contains(D))&&d()},[d]),q=L.length===0;return u.jsxs("div",{ref:p,className:F("table-input-container d-flex flex-column position-relative",r),children:[u.jsx(Pi,{disabled:!!_||q,value:g,placeholder:"Search",onChange:w,className:"mb-2 d-flex",onBlur:G}),u.jsx(ua,{className:"table-input-list",disabled:P===void 0||q,isInvalid:s,items:q?[{value:"Empty",isSelected:!1}]:L,itemCount:v,offset:0,onSelect:O,onViewportChange:W,ref:j,onBlur:G}),P&&u.jsxs("div",{className:"meta-row",children:[u.jsx("div",{className:"d-flex align-items-center text-muted small",children:P!=null&&P.size>v&&u.jsxs(u.Fragment,{children:["Table is too large, showing the first ",ut," items."]})}),u.jsxs("div",{children:[u.jsx("button",{type:"button",className:"btn btn-link",onBlur:G,onClick:k,children:"Select All"}),u.jsx("button",{type:"button",className:"btn btn-link mr-a",onBlur:G,onClick:N,children:"Clear"})]})]}),P==null||_&&u.jsx("div",{className:"h-100 w-100 position-absolute",children:u.jsx(ge,{isLoaded:P!=null,isLoading:P==null&&_==null,errorMessage:(n=_==null?void 0:_.message)!==null&&n!==void 0?n:null})})]})}dn.displayName="TableInput";dn.defaultProps={isInvalid:!1,className:void 0};var Ly=["onInputChange","onSearchTextChange"];function yr(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?yr(Object(n),!0).forEach(function(r){Ay(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):yr(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function Ay(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=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||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function My(t,e){if(t==null)return{};var n,r,i=$y(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 $y(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 Uy(t){var e=wf(t),{onInputChange:n,onSearchTextChange:r}=e,i=My(e,Ly),a=c.useRef(!1),o=c.useRef(""),s=c.useCallback(d=>{n==null||n(d),a.current?r(d):(r(""),o.current=d)},[n,r]),l=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(Da,vr(vr({},i),{},{onInputChange:s,onOpenChange:l}))}var By=["table","keyColumn","labelColumn","iconColumn","settings"];function br(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 Pr(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?br(Object(n),!0).forEach(function(r){Wy(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):br(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function Wy(t,e,n){return(e=Vy(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Vy(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||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Yy(t,e){if(t==null)return{};var n,r,i=Gy(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 Gy(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 Ky(t){var e,{table:n,keyColumn:r,labelColumn:i,iconColumn:a,settings:o}=t,s=Yy(t,By),{scale:l}=Zt(),d=sa[(e=s.density)!==null&&e!==void 0?e:"regular"][l],{getFormattedString:f}=da(o),p=Of({table:n,iconColumnName:a,keyColumnName:r,labelColumnName:i,formatValue:f}),{viewportData:h,onScroll:m}=an({reuseItemsOnTableResize:!0,table:n,itemHeight:d,deserializeRow:p});return u.jsx(La,Pr(Pr({},s),{},{normalizedItems:h.items,showItemIcons:a!=null,onScroll:m}))}function qy(t){return typeof t=="object"&&t!=null&&"equals"in t&&typeof t.equals=="function"}function zy(t){return"".concat(t)}function Xy(t){var{column:e,table:n,filter:r=Uu,onChange:i,selectedValue:a,disabled:o,className:s,formatValue:l=zy,maxSize:d=1e3}=t,f=Se(),[p,h]=c.useState([]);c.useEffect(()=>{if(n==null){h([]);return}var y=e??n.columns[0];n.applyFilter(r);var b=n.setViewport(0,d,[y]);return b.addEventListener(f.Table.EVENT_UPDATED,P=>{var{detail:C}=P,j=C.rows.map(v=>{var S;return(S=v.get(y))!==null&&S!==void 0?S:null});h(j)}),()=>{b.close()}},[e,f,r,d,n]);var m=c.useMemo(()=>a===void 0?[void 0,...p]:p,[a,p]),g=c.useMemo(()=>m.findIndex(y=>y===a||qy(y)&&y.equals(a)),[a,m]),x=c.useCallback(y=>{i(m[y])},[i,m]);return u.jsx(xi,{className:s,value:g,onChange:x,disabled:o,children:m.map((y,b)=>u.jsx(la,{value:b,children:l(y)},"".concat(b)))})}var xr=V.module("useBroadcastChannel");function pn(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:rt,e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Za,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)){xr.debug("Ignoring non-deephaven message",a);return}xr.debug("event received",a),t(i)}return n.addEventListener("message",r),()=>{n.removeEventListener("message",r)}},[n,t]),n}function fn(t,e){var n=c.useCallback(r=>{to(r.data)?t==null||t(r.data):no(r.data)&&(e==null||e(r.data))},[t,e]);pn(n)}function Qy(t,e,n,r){var i=pe(),[a,o]=c.useState(""),{value:s}=Ne(a,n),l=c.useCallback(h=>{o(h.trim())},[]),{data:d,isLoading:f}=Oe(i.doesColumnValueExist,[t,e,s,r]),p=f||a!==s?null:d;return{valueTrimmed:a,valueTrimmedDebounced:s,valueExists:p,trimAndUpdateValue:l}}var wr=V.module("useDebouncedViewportSearch"),Jy=200;function Zy(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Jy,r=pe(),{table:i,applyFiltersAndRefresh:a}=t,o=c.useMemo(()=>je(s=>{if(wr.debug("Applying debounced searchText '".concat(s,"'")),i!=null){var l=s.trim();if(l===""){a([]);return}var d=i.findColumn(e),f=r.makeFilterValue(d.type,l),p=[d.filter().contains(f)];a(p)}},n),[a,e,n,i,r]);return c.useEffect(()=>()=>{wr.debug("Cancelling debounced search function"),o.cancel()},[o]),o}var lo=300;function ev(t){var{viewportData:e,columnName:n,shouldSelectAllOnNoSelection:r,mapItemToValue:i}=t,a=pe(),o=Ta(e,i,Gi),{value:s}=Ne(o,lo),l=Sa(s,Pa);return c.useMemo(()=>Jt(a,n,l.selection,r,l.isInverted),[n,l,r,a])}function tv(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 Or(t,e,n,r,i,a,o){try{var s=t[a](o),l=s.value}catch(d){return void n(d)}s.done?e(l):Promise.resolve(l).then(r,i)}function nv(t){return function(){var e=this,n=arguments;return new Promise(function(r,i){var a=t.apply(e,n);function o(l){Or(a,r,i,o,s,"next",l)}function s(l){Or(a,r,i,o,s,"throw",l)}o(void 0)})}}function rv(t){var{table:e,columnName:n,defaultValue:r,itemHeight:i,topOffset:a=0,value:o}=t;return c.useCallback(nv(function*(){if(e==null||o===""||o===r)return a;var s=e.findColumn(n),l=yield e.seekRow(0,s,"String",o),d=r==null?0:1;return(l+d)*i+a}),[n,r,i,e,a,o])}function iv(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"or",n=pe(),r=c.useMemo(()=>Ki(n),[n]);return c.useMemo(()=>Qt(t,r,e),[t,e,r])}function av(t){var{maybeTable:e,columnName:n,mapItemToValue:r,filterConditionFactories:i=[],trimSearchText:a=!1,timeZone:o}=t,{itemHeight:s}=ca(),l=pe(),[d,f]=c.useState(""),[p,h]=c.useState(""),m=c.useCallback(T=>{h(a?T.trim():T)},[a]),g=c.useMemo(()=>a?d.trim():d,[d,a]),[x,y]=c.useState(null),[b,P]=c.useState(()=>new Map),{data:C,isLoading:j}=Oe(l.doesColumnValueExist,[e,n,p,!1]),{isDebouncing:v}=Ne(p,Sn),S=v||j?null:C,I=c.useMemo(()=>qi(l,n,p,o),[p,n,l,o]),_=c.useMemo(()=>Jt(l,n,new Set(b.keys()),!1,!0),[n,b,l]),{data:A}=Oe(l.createDistinctSortedColumnTable,[e,n,"asc",...i]);pa(A);var L=an({table:A,itemHeight:s,viewportSize:Sf,viewportPadding:Ef}),H=g.length>0&&L.size===0,E=b.has(g),w=Ie(m,Sn),O=c.useCallback(T=>{f(T),w(T)},[w]),k=Ie(y,0),N=c.useCallback(T=>{if(f(""),m(""),y(T),k(null),T!=null){var R=L.viewportData.findItem(T);if(R!=null){var D=r(R);P(B=>{var ae=new Map(B);return ae.set(D,{value:D}),ae})}}},[m,k,L.viewportData,r]),W=c.useCallback(T=>{P(R=>{if(T.size===0)return R;var D=new Map(R);for(var B of T)D.set(B,{value:B});return D})},[]),G=c.useCallback(T=>{P(R=>{if(T==="all")return new Map;var D=new Map(R);for(var B of T)D.delete(B);return D})},[]),q=fa(L.table,I,_);return ha(L,q),c.useMemo(()=>({list:L,hasSearchTextWithZeroResults:H,searchText:d,searchTextExists:S,searchTextIsInSelectedValues:E,selectedKey:x,selectedValueMap:b,onSearchTextChange:O,onSelectKey:N,onAddValues:W,onRemoveValues:G}),[H,L,W,G,O,N,d,S,E,x,b])}function Sr(t,e,n,r,i,a,o){try{var s=t[a](o),l=s.value}catch(d){return void n(d)}s.done?e(l):Promise.resolve(l).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(l){Sr(a,r,i,o,s,"next",l)}function s(l){Sr(a,r,i,o,s,"throw",l)}o(void 0)})}}function sv(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(ov(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:s,isLoading:l}=Oe(i,[]);return c.useEffect(()=>()=>{a==null||a.close()},[a]),{distinctTable:a,error:o,isError:s,isLoading:l}}function lv(t,e){var n=pe(),r=c.useMemo(()=>zi(n,t),[t,n]);return c.useMemo(()=>Qt(e,r),[e,r])}function uv(t,e,n){var r=pe();return c.useMemo(()=>Xi(r,t,e,n),[t,n,r,e])}const cv=Object.freeze(Object.defineProperty({__proto__:null,ComboBox:Uy,DEBOUNCE_MS:lo,ListView:Ky,Picker:Tf,TableDropdown:Xy,TableInput:dn,makeApiContextWrapper:my,useBroadcastChannel:pn,useBroadcastLoginListener:fn,useCheckIfExistsValue:Qy,useDebouncedViewportSearch:Zy,useDebouncedViewportSelectionFilter:ev,useFilterConditionFactories:fa,useFilteredItemsWithDefaultValue:tv,useFormatter:da,useGetItemIndexByValue:Cf,useGetItemPosition:rv,useInitializeViewportData:jf,useNotNullOrEmptyFilter:iv,usePickerWithSelectedValues:av,useSearchableViewportData:If,useSelectDistinctTable:sv,useSetPaddedViewportCallback:_f,useShowOnlyEmptyFilter:lv,useTable:oo,useTableClose:pa,useTableColumn:so,useTableListener:Ke,useTableSize:kf,useTableUtils:pe,useValueFilter:uv,useViewportData:an,useViewportFilter:ha},Symbol.toStringTag,{value:"Module"}));var uo=c.createContext(!1);function dv(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(uo.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 co(t){var{isEnabled:e,isPending:n,themeData:r}=Ra();return c.useMemo(()=>e?n?null:r?[r]:[]:t==null?null:Ci(t),[e,n,r,t])}function pv(t){var{fetch:e,type:n}=t,r=ji(),i=c.useMemo(()=>[...r.values()].filter(Ii).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,"'"))}const fv=Object.freeze(Object.defineProperty({__proto__:null,PersistentStateContext:$d,PersistentStateProvider:Ud,PluginType:_i,PluginsContext:it,WidgetView:pv,getDashboardPlugins:ru,getIconForPlugin:Bu,getThemeDataFromPlugins:Ci,isAuthPlugin:ki,isDashboardPlugin:Wu,isLegacyAuthPlugin:bt,isLegacyDashboardPlugin:Vu,isLegacyPlugin:Ri,isLegacyTablePlugin:Hu,isPlugin:Pt,isTablePlugin:Yu,isThemePlugin:Gu,isWidgetPlugin:Ii,pluginSupportsType:Ku,useCustomThemes:co,useDashboardPlugins:iu,usePersistentState:Bd,usePlugins:ji},Symbol.toStringTag,{value:"Module"}));function hv(t){if(t==null)return!1;var e=t;return e.Component!==void 0&&typeof e.isAvailable=="function"}var po="io.deephaven.auth.AnonymousAuthenticationHandler",mv="io.deephaven.authentication.psk.PskAuthenticationHandler";function Er(t,e,n){return(e=gv(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function gv(t){var e=yv(t,"string");return typeof e=="symbol"?e:e+""}function yv(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}class fo extends Error{constructor(){super(...arguments),Er(this,"name","AuthenticationError"),Er(this,"isAuthenticationError",!0)}}function Tr(t,e,n,r,i,a,o){try{var s=t[a](o),l=s.value}catch(d){return void n(d)}s.done?e(l):Promise.resolve(l).then(r,i)}function vv(t){return function(){var e=this,n=arguments;return new Promise(function(r,i){var a=t.apply(e,n);function o(l){Tr(a,r,i,o,s,"next",l)}function s(l){Tr(a,r,i,o,s,"throw",l)}o(void 0)})}}var Cr=V.module("AuthPluginBase");function hn(t){var{children:e,getLoginOptions:n}=t,r=Ae(),[i,a]=c.useState(),[o,s]=c.useState(!1);return c.useEffect(()=>{var l=!1;function d(){if(l)throw new Di("Login canceled.")}function f(){return p.apply(this,arguments)}function p(){return p=vv(function*(){try{var h=yield n();d(),Cr.info("Logging in..."),yield r.login(h),d(),s(!0)}catch(x){if(!l){var m;Cr.error("Unable to login:",x);var g=(m=_e(x))!==null&&m!==void 0?m:"Unable to login. Verify credentials.";a(new fo(g)),s(!1)}}}),p.apply(this,arguments)}return f(),()=>{l=!0}},[r,n]),o?u.jsx(u.Fragment,{children:e}):u.jsx(ge,{"data-testid":"auth-base-loading",isLoading:i==null,isLoaded:!1,errorMessage:_e(i)})}var bv={canLogout:!1};function Pv(t){var{children:e}=t,n=Se(),r=c.useCallback(()=>({type:n.CoreClient.LOGIN_TYPE_ANONYMOUS}),[n]);return u.jsx(hn,{getLoginOptions:r,children:u.jsx(tt.Provider,{value:bv,children:e})})}var ho={Component:Pv,isAvailable:t=>t.includes(po)};function jr(t,e,n,r,i,a,o){try{var s=t[a](o),l=s.value}catch(d){return void n(d)}s.done?e(l):Promise.resolve(l).then(r,i)}function xv(t){return function(){var e=this,n=arguments;return new Promise(function(r,i){var a=t.apply(e,n);function o(l){jr(a,r,i,o,s,"next",l)}function s(l){jr(a,r,i,o,s,"throw",l)}o(void 0)})}}var wv=V.module("AuthPluginParent"),Ov={canLogout:!1};function Sv(t){return t!=null&&typeof t.type=="string"}function Ev(){return kt.apply(this,arguments)}function kt(){return kt=xv(function*(){wv.info("Logging in by delegating to parent window...");var t=yield Gt(Qa);if(!Sv(t))throw new Error("Unexpected login options response: ".concat(t));return t}),kt.apply(this,arguments)}function Tv(){var t;return(t=new URLSearchParams(window.location.search).get("authProvider"))!==null&&t!==void 0?t:""}function Cv(t){var{children:e}=t;return u.jsx(hn,{getLoginOptions:Ev,children:u.jsx(tt.Provider,{value:Ov,children:e})})}var mo={Component:Cv,isAvailable:()=>Wt()!=null&&Tv()==="parent"};function go(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:F("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 yo(t){var{children:e,logoPath:n="./logo.png"}=t;return u.jsxs("div",{className:"login-container",children:[u.jsx(Ya,{}),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 Ir(t,e,n,r,i,a,o){try{var s=t[a](o),l=s.value}catch(d){return void n(d)}s.done?e(l):Promise.resolve(l).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(l){Ir(a,r,i,o,s,"next",l)}function s(l){Ir(a,r,i,o,s,"throw",l)}o(void 0)})}}var Rt="io.deephaven.authentication.psk.PskAuthenticationHandler",vo="psk",Dt="io.deephaven.web.client.auth.psk.token",be=V.module("AuthPluginPsk");function jv(){return new URLSearchParams(window.location.search).get(vo)}function Iv(){be.debug2("clearWindowToken");var t=new URL(window.location.href);t.searchParams.delete(vo),window.history.replaceState(null,"",t.href)}function _r(){var t;return(t=mt.get(Dt))!==null&&t!==void 0?t:null}function dt(t){be.debug2("Storing token in cookie",t),t!=null?mt.set(Dt,t,{secure:!0,sameSite:"strict"}):mt.remove(Dt)}function _v(t){var{children:e,logoPath:n}=t,r=Ae(),i=c.useRef(null),a=c.useRef(null),[o,s]=c.useState(),[l,d]=c.useState(!1),[f,p]=c.useState(!1),[h,m]=c.useState(!1),[g,x]=c.useState(""),y=c.useCallback(function(){var v=ct(function*(S){var I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;be.info("Logging in..."),m(!0);var _=null;try{if(_=r.login({type:Rt,token:S}),a.current=_,yield _,be.info("Logged in successfully"),a.current!==_)return;dt(S),p(!0)}catch(H){if(a.current!==_)return;if(d(!0),I){var A;be.error("Unable to login",H);var L=(A=_e(H))!==null&&A!==void 0?A:"Unable to login: Verify credentials.";s(new fo(L))}}m(!1)});return function(S){return v.apply(this,arguments)}}(),[r]),b=c.useCallback(()=>{a.current=null,m(!1)},[]),P=c.useCallback(ct(function*(){be.debug("onLogin");var v=_r();f||h||v==null||y(v,!1)}),[f,h,y]),C=c.useCallback(()=>{dt(null)},[]);fn(P,C),c.useEffect(()=>{var v=!1;function S(){return I.apply(this,arguments)}function I(){return I=ct(function*(){var _,A=(_=jv())!==null&&_!==void 0?_:_r();if(Iv(),A==null){d(!0);return}m(!0);try{yield r.login({type:Rt,token:A}),v||(dt(A),p(!0),m(!1))}catch{v||(d(!0),m(!1))}}),I.apply(this,arguments)}return S(),()=>{v=!0}},[r]);var j=c.useCallback(()=>{h?b():y(g)},[b,h,y,g]);return c.useEffect(function(){var S;(S=i.current)===null||S===void 0||S.focus()},[i,l]),u.jsxs(u.Fragment,{children:[f&&e,l&&u.jsx(zt,{in:!f,mountOnEnter:!0,unmountOnExit:!0,children:u.jsx(yo,{logoPath:n,children:u.jsx(go,{errorMessage:_e(o),isLoggingIn:h,onSubmit:j,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:g,onChange:v=>{s(void 0),x(v.target.value)}})]})})})}),u.jsx(ge,{"data-testid":"auth-psk-loading",isLoaded:f||l,isLoading:!f&&!l})]})}var bo={Component:_v,isAvailable:t=>t.includes(Rt)};function kr(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?kr(Object(n),!0).forEach(function(r){kv(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):kr(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function kv(t,e,n){return(e=Rv(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Rv(t){var e=Dv(t,"string");return typeof e=="symbol"?e:e+""}function Dv(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var Lv=V.module("UserUtils");function Po(t,e){return t.get("internal.webClient.appInit.".concat(e))}function xo(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 s(y){return Po(t,y)}function l(y,b){var P=s(y);return P==="true"?!0:P==="false"?!1:(P!==void 0&&Lv.warn("Unexpected value for ".concat(y,": ").concat(P)),b)}var d=(e=s("name"))!==null&&e!==void 0?e:"",f=(n=s("operateAs"))!==null&&n!==void 0?n:d,p=(r=(i=s("groups"))===null||i===void 0?void 0:i.split(","))!==null&&r!==void 0?r:[],h=l("canCopy",!0),m=l("canDownloadCsv",!0),g=l("canUsePanels",!0),x=l("canLogout",!0);return pt(pt({name:d,operateAs:f,groups:p},a),{},{permissions:pt({canUsePanels:g,canCopy:h,canDownloadCsv:m,canLogout:x},o)})}const Av=Object.freeze(Object.defineProperty({__proto__:null,AUTH_HANDLER_TYPE_ANONYMOUS:po,AUTH_HANDLER_TYPE_PSK:mv,AuthPluginAnonymous:ho,AuthPluginBase:hn,AuthPluginParent:mo,AuthPluginPsk:bo,Login:yo,LoginForm:go,UserContext:fi,UserOverrideContext:hi,UserPermissionsOverrideContext:tt,getAppInitValue:Po,getUserFromConfig:xo,isAuthPlugin:hv},Symbol.toStringTag,{value:"Module"}));function xe(t,e,n){return(e=Fv(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Fv(t){var e=Nv(t,"string");return typeof e=="symbol"?e:e+""}function Nv(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}class $ extends Qi{static get theme(){return $._theme==null&&($._theme=Li()),$._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=[],s=[],l=new Date("2018-06-01"),d=0;d<r;d+=1){var f=new Date(l.getFullYear(),l.getMonth(),l.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+$.random()*r/5+d*$.smoothing)*n;p=Math.round(p*100)/100,a.push(p),s.push(40+d*$.smoothing),o.push(Math.sin(d/r*e)*r/3+$.random()*r/10+d*$.smoothing)}return{x:i,y:a,s:o,l:s}}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:$.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=$.makeRandomSeries(6),n=$.makeArea(e),r=$.makeTrendline(e),i=$.makeRandomSeries(2),a=$.makeLine(i),o=$.makeErrorBand(i);return[n,r,a,o]}static makeDefaultLayout(e){var n={template:new Ji(e).makeDefaultTemplate($.theme)};return n.title="Chart",n.xaxis={title:"Datestamp"},n.yaxis={title:"Price"},n}constructor(e){var{data:n=$.makeRandomData(),layout:r=$.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($,"random",Math.random.bind(Math));xe($,"smoothing",1.5);xe($,"_theme",void 0);const Mv=Object.freeze(Object.defineProperty({__proto__:null,Chart:Wd,ChartModel:Qi,ChartModelFactory:Vd,ChartThemeContext:qu,ChartThemeProvider:Ai,ChartUtils:Ji,DownsamplingError:Pp,FigureChartModel:Hd,MockChartModel:$,Plot:zu,defaultChartTheme:Li,isFigureChartModel:Yd,isWebGLSupported:Gd,useChartTheme:Xu},Symbol.toStringTag,{value:"Module"}));function $v(t){var{dashboardProps:e,componentName:n,component:r,supportedTypes:i,hydrate:a,dehydrate:o}=t,{id:s,layout:l,registerComponent:d}=e,f=c.useCallback(p=>{var{dragEvent:h,panelId:m=Mt(),widget:g}=p,{name:x,type:y}=g,b=y!=null&&(Array.isArray(i)&&i.includes(y)||y===i);if(b){var P={localDashboardId:s,metadata:g};a!=null&&(P=a(P,s));var C={type:"react-component",component:n,props:P,title:x??void 0,id:m},{root:j}=l;Fi.openComponent({root:j,config:C,dragEvent:h})}},[n,a,s,l,i]);Zi(d,r,a,o),Ni(l.eventHub,f)}function Uv(t,e){var n=Us(),r=Bs(a=>Mi(a,t,e)),i=c.useCallback(a=>n($i(t,e,a)),[t,e,n]);return[r,i]}const Bv=Object.freeze(Object.defineProperty({__proto__:null,BasePanel:xn,CLOSE_DASHBOARD:Qu,CREATE_DASHBOARD:Ju,DEFAULT_DASHBOARD_ID:Zu,DH_ID_PROP:ec,Dashboard:bn,DashboardIdContext:tc,DashboardLayout:nc,DashboardUtils:rc,GLPropTypes:ic,LayoutManagerContext:ac,LayoutUtils:Fi,LazyDashboard:au,Panel:xn,PanelErrorBoundary:oc,PanelEvent:sc,PanelIdContext:lc,PanelManager:uc,SET_DASHBOARD_DATA:cc,TabEvent:dc,assertIsDashboardPluginProps:Kd,canHaveRef:Oi,default:bn,dehydrate:pc,emitCloseDashboard:fc,emitCreateDashboard:hc,emitCycleToNextStack:mc,emitCycleToNextTab:gc,emitCycleToPreviousStack:yc,emitCycleToPreviousTab:vc,emitPanelOpen:bc,getAllDashboardsData:Pc,getClosedPanelsForDashboard:xc,getDashboardData:wc,getOpenedPanelMapForDashboard:Oc,getPluginDataForDashboard:Mi,getPluginDataMapForDashboard:Sc,hydrate:Ec,isDashboardPluginProps:qd,isWrappedComponent:Si,listenForCloseDashboard:Tc,listenForCreateDashboard:Cc,listenForCycleToNextStack:jc,listenForCycleToNextTab:Ic,listenForCycleToPreviousStack:_c,listenForCycleToPreviousTab:kc,listenForPanelOpen:Rc,reducers:Dc,setDashboardData:Lc,setDashboardPluginData:$i,updateDashboardData:Ac,useAppDispatch:Fc,useAppSelector:Ui,useAppStore:Nc,useCloseDashboardListener:Mc,useCreateDashboardListener:$c,useCycleToNextStackListener:Uc,useCycleToNextTabListener:Bc,useCycleToPreviousStackListener:Wc,useCycleToPreviousTabListener:Vc,useDashboardId:Hc,useDashboardPanel:$v,useDashboardPluginData:Uv,useDhId:Yc,useLayoutManager:zd,useListener:Gc,usePanelId:Kc,usePanelOpenListener:Ni,usePanelRegistration:Zi},Symbol.toStringTag,{value:"Module"}));function wo(t){var{children:e}=t,{activeThemes:n}=nt();return c.useEffect(function(){n!=null&&Bi.initTheme()},[n]),u.jsx(u.Fragment,{children:e})}var Wv={$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 Rr(t,e,n,r,i,a,o){try{var s=t[a](o),l=s.value}catch(d){return void n(d)}s.done?e(l):Promise.resolve(l).then(r,i)}function Vv(t){return function(){var e=this,n=arguments;return new Promise(function(r,i){var a=t.apply(e,n);function o(l){Rr(a,r,i,o,s,"next",l)}function s(l){Rr(a,r,i,o,s,"throw",l)}o(void 0)})}}var So=Hs.parse("inmemory://dh-config/ruff-settings.json");function Hv(){var{schemas:t=[]}=vn.json.jsonDefaults.diagnosticsOptions;t.some(e=>e.uri==="json://ruff-schema")||vn.json.jsonDefaults.setDiagnosticsOptions({schemas:[...t,{uri:"json://ruff-schema",fileMatch:[So.toString()],schema:Wv}]})}function Yv(){return Dt.apply(this,arguments)}function Dt(){return Dt=Vv(function*(){return yield Vi.initRuff(),"v".concat(Ys.version())}),Dt.apply(this,arguments)}function Gv(t){var{text:e,isOpen:n,onClose:r,onSave:i,readOnly:a=!1,defaultSettings:o=Wi}=t,[s,l]=c.useState(!1),[d,f]=c.useState(!1),p=c.useRef(),h=c.useMemo(()=>JSON.stringify(o,null,2),[o]),{data:m}=Oe(Yv),[g]=c.useState(()=>Vs.createModel(e,"json",So)),x=c.useCallback(()=>{n&&(r(),p.current=void 0,g.dispose())},[n,r,g]),y=c.useCallback(()=>{if(n){try{var v,S,I;i(JSON.parse((v=(S=p.current)===null||S===void 0||(I=S.getModel())===null||I===void 0?void 0:I.getValue())!==null&&v!==void 0?v:""))}catch{}x()}},[n,x,i]),b=c.useCallback(()=>{Je(g),g.setValue(h)},[g,h]),P=c.useCallback(v=>{var S,I;try{JSON.parse(v),l(!0)}catch{l(!1)}f(((S=p.current)===null||S===void 0||(I=S.getModel())===null||I===void 0?void 0:I.getValue())===h)},[h]),C=Ie(P,500,{leading:!0}),j=c.useCallback(v=>{p.current=v,g.onDidChangeContent(()=>{C(g.getValue())}),Hv(),C(g.getValue())},[C,g]);return n?u.jsxs(Wt,{isOpen:n,centered:!0,keyboard:!0,clickOutside:!1,toggle:x,size:"lg",className:"ruff-settings-modal",children:[u.jsxs(ci,{closeButton:!1,children:[u.jsxs("span",{className:"settings-modal-title mr-auto",children:["Ruff ",m," Settings"]}),u.jsx(ei,{href:"https://docs.astral.sh/ruff/settings/",target:"_blank",children:u.jsx(K,{kind:"ghost",onClick:nt,icon:Xl,children:"Settings Docs"})}),u.jsxs(Xe,{isDisabled:d,onPress:b,children:[u.jsx(Le,{children:u.jsx(Z,{icon:Ql})}),u.jsx(it,{children:"Reset to default"})]})]}),u.jsx(Vt,{style:{height:"80vh"},children:u.jsx(ta,{onEditorInitialized:j,settings:{readOnly:a,value:e,language:"json",folding:!0,padding:{bottom:16},lineNumbers:"on",overviewRulerLanes:0,model:g}})}),u.jsx(bi,{children:a?u.jsx(K,{kind:"secondary","data-dismiss":"modal",onClick:x,children:"Close"}):u.jsxs(u.Fragment,{children:[u.jsx(K,{kind:"secondary","data-dismiss":"modal",onClick:x,children:"Cancel"}),u.jsx(K,{kind:"primary","data-dismiss":"modal",tooltip:s?void 0:"Cannot save invalid JSON",disabled:!s,onClick:y,children:"Save"})]})})]}):null}const Kv=Object.freeze(Object.defineProperty({__proto__:null,Code:zc,CommandHistory:Xc,CommandHistoryActions:Qc,CommandHistoryItem:Jc,CommandHistoryItemTooltip:Zc,Console:wn,ConsoleConstants:ed,ConsoleHistory:td,ConsoleHistoryItem:nd,ConsoleHistoryItemResult:rd,ConsoleHistoryResultErrorMessage:id,ConsoleHistoryResultInProgress:ad,ConsoleInput:od,ConsoleStatusBar:sd,ConsoleUtils:ld,Editor:ta,HeapUsage:ud,LogView:cd,MonacoProviders:Vi,MonacoTheme:dd,MonacoThemeProvider:Oo,MonacoUtils:Bi,ObjectIcon:pd,RUFF_DEFAULT_SETTINGS:Wi,RuffSettingsModal:Gv,SHORTCUTS:fd,ScriptEditor:Xd,ScriptEditorUtils:Qd,default:wn},Symbol.toStringTag,{value:"Module"}));function Eo(t,e,n){return(e=qv(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function qv(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||"default");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){Eo(this,"dh",void 0),this.dh=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(){return new this.dh.Sort}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,s=new this.dh.TreeTable({columns:e,aggregatedColumns:n,groupedColumns:r,size:i,sort:a,layoutHints:o});return s.copy=jest.fn(()=>Promise.resolve(s)),s}makeInputTable(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return new this.dh.InputTable(e)}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 Jd(i,e,n??new Xt(i),r)}}Eo(we,"DEFAULT_TYPE","java.lang.String");const Xv=Object.freeze(Object.defineProperty({__proto__:null,AdvancedSettings:Zd,AdvancedSettingsType:ep,AggregationEdit:Rf,AggregationOperation:tp,AggregationUtils:np,Aggregations:Df,BarIcon:Lf,ChartBuilder:Af,ColumnHeaderGroup:rp,CustomColumnBuilder:Ff,DownloadServiceWorkerUtils:Nf,FormatColumnWhereIcon:Mf,FormatRowWhereIcon:$f,HistogramIcon:Uf,InputEditor:Bf,IrisGrid:On,IrisGridCacheUtils:ip,IrisGridCellOverflowMouseHandler:Wf,IrisGridColumnSelectMouseHandler:Vf,IrisGridColumnTooltipMouseHandler:Hf,IrisGridContextMenuHandler:Yf,IrisGridCopyCellMouseHandler:Gf,IrisGridDataSelectMouseHandler:Kf,IrisGridFilterMouseHandler:qf,IrisGridMetricCalculator:zf,IrisGridModel:ap,IrisGridModelFactory:op,IrisGridPartitionedTableModel:sp,IrisGridPartitionedTableMouseHandler:Xf,IrisGridRenderer:Qf,IrisGridRowTreeMouseHandler:Jf,IrisGridSortMouseHandler:Zf,IrisGridTableModel:lp,IrisGridTableModelTemplate:up,IrisGridTestUtils:we,IrisGridThemeContext:eh,IrisGridThemeProvider:ma,IrisGridTokenMouseHandler:th,IrisGridTreeTableModel:cp,IrisGridUtils:dp,LineIcon:nh,OptionType:rh,PendingMouseHandler:ih,PieIcon:ah,RollupRows:oh,SHORTCUTS:sh,ScatterIcon:lh,TableCsvExporter:uh,TableSaver:ch,VisibilityOrderingBuilder:dh,createDefaultIrisGridTheme:ph,default:On,isIrisGridTableModelTemplate:pp,isIrisGridTreeTableModel:fp,isPanelStateV1:hp,isPanelStateV2:mp,isPartitionedGridModel:gp,isPartitionedGridModelProvider:yp,isUITreeRow:vp},Symbol.toStringTag,{value:"Module"}));var To={react:U,"react-dom":Gs,redux:Ks,"react-redux":qs,"@adobe/react-spectrum":zs,"@deephaven/auth-plugins":Av,"@deephaven/chart":Mv,"@deephaven/components":dy,"@deephaven/console":Kv,"@deephaven/dashboard":Bv,"@deephaven/dashboard-core-plugins":bp,"@deephaven/icons":Jl,"@deephaven/iris-grid":Xv,"@deephaven/jsapi-bootstrap":hy,"@deephaven/jsapi-components":cv,"@deephaven/jsapi-utils":Sy,"@deephaven/log":V,"@deephaven/plugin":fv,"@deephaven/react-hooks":Uh},Qv=Xs.createRequires(To),Jv=Qs({requires:Qv});function Dr(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 Lr(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Dr(Object(n),!0).forEach(function(r){Zv(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Dr(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function Zv(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=tb(t,"string");return typeof e=="symbol"?e:e+""}function tb(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Ar(t,e,n,r,i,a,o){try{var s=t[a](o),l=s.value}catch(d){return void n(d)}s.done?e(l):Promise.resolve(l).then(r,i)}function mn(t){return function(){var e=this,n=arguments;return new Promise(function(r,i){var a=t.apply(e,n);function o(l){Ar(a,r,i,o,s,"next",l)}function s(l){Ar(a,r,i,o,s,"throw",l)}o(void 0)})}}var ue=V.module("@deephaven/app-utils.PluginUtils");function nb(t){return Lt.apply(this,arguments)}function Lt(){return Lt=mn(function*(t){var e=yield Jv(t);return e}),Lt.apply(this,arguments)}function rb(t){return At.apply(this,arguments)}function At(){return At=mn(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")}}),At.apply(this,arguments)}function ib(t){return typeof t=="object"&&t!=null&&typeof t.default=="object"}function ab(t){return bt(t)?t:ib(t)&&bt(t.default)?t.default:Ri(t)?t:null}function ob(t){return Ft.apply(this,arguments)}function Ft(){return Ft=mn(function*(t){ue.debug("Loading plugins...");try{var e=yield rb("".concat(t,"/manifest.json"));if(!Array.isArray(e.plugins))throw new Error("Plugin manifest JSON does not contain plugins array");ue.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(nb(o))}for(var s=yield Promise.allSettled(n),l=new Map,d=0;d<s.length;d+=1){var f=s[d],{name:p,version:h}=e.plugins[d];if(f.status==="fulfilled"){var m=ab(f.value);m==null?ue.error("Plugin '".concat(p,"' is missing an exported value.")):l.set(p,Lr(Lr({},m),{},{version:h}))}else ue.error("Unable to load plugin '".concat(p,"'"),f.reason)}return ue.info("Plugins loaded:",l),l}catch(g){return ue.error("Unable to load plugins:",g),new Map}}),Ft.apply(this,arguments)}function sb(t){var e,n;return(e=(n=t.get("AuthHandlers"))===null||n===void 0?void 0:n.split(","))!==null&&e!==void 0?e:[]}function lb(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:new Map,r=sb(e),i=[...t.entries(),...n.entries()].filter(l=>{var[,d]=l;return ki(d)||vt(d)}).map(l=>{var[d,f]=l;return vt(f)?{type:_i.AUTH_PLUGIN,name:d,component:f.AuthPlugin.Component,isAvailable:f.AuthPlugin.isAvailable}:f}),a=i.filter(l=>{var{isAvailable:d}=l;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&&ue.warn("More than one login plugin available, will use the first one: ",a.map(l=>{var{name:d}=l;return d}).join(", "));var{name:o,component:s}=a[0];return ue.info("Using LoginPlugin",o),s}var ub=ti.createRequires(()=>To),Bb=ti.createRemoteComponent({requires:ub});function Fr(t,e,n,r,i,a,o){try{var s=t[a](o),l=s.value}catch(d){return void n(d)}s.done?e(l):Promise.resolve(l).then(r,i)}function cb(t){return function(){var e=this,n=arguments;return new Promise(function(r,i){var a=t.apply(e,n);function o(l){Fr(a,r,i,o,s,"next",l)}function s(l){Fr(a,r,i,o,s,"throw",l)}o(void 0)})}}function db(t){var{pluginsUrl:e,getCorePlugins:n,children:r}=t,[i,a]=c.useState(null);return c.useEffect(function(){var s=!1;function l(){return d.apply(this,arguments)}function d(){return d=cb(function*(){var f,p=(f=yield n==null?void 0:n())!==null&&f!==void 0?f:[],h=yield ob(e);if(!s){var m=p.map(g=>[g.name,g]);a(new Map([...m,...h]))}}),d.apply(this,arguments)}return l(),()=>{s=!0}},[e,n]),u.jsx(rt.Provider,{value:i,children:r})}function pb(){var t=pn();return c.useEffect(function(){t.postMessage(di(cn))},[t]),null}function Nr(t,e,n,r,i,a,o){try{var s=t[a](o),l=s.value}catch(d){return void n(d)}s.done?e(l):Promise.resolve(l).then(r,i)}function fb(t){return function(){var e=this,n=arguments;return new Promise(function(r,i){var a=t.apply(e,n);function o(l){Nr(a,r,i,o,s,"next",l)}function s(l){Nr(a,r,i,o,s,"throw",l)}o(void 0)})}}var hb=new Map([["@deephaven/auth-plugins.AuthPluginParent",{AuthPlugin:go}],["@deephaven/auth-plugins.AuthPluginPsk",{AuthPlugin:Po}],["@deephaven/auth-plugins.AuthPluginAnonymous",{AuthPlugin:mo}]]);function mb(t){var{children:e}=t,n=Ae(),r=c.useContext(rt),[i,a]=c.useState(),[o,s]=c.useState();c.useEffect(function(){var p=!1;function h(){return m.apply(this,arguments)}function m(){return m=fb(function*(){try{var g=yield n.getAuthConfigValues();p||a(new Map(g))}catch(x){p||s(x)}}),m.apply(this,arguments)}return h(),()=>{p=!0}},[n]);var l=c.useMemo(()=>{if(!(r==null||i==null))try{return lb(r,i,hb)}catch(f){s(f)}},[i,r]),d=l==null||i==null;return d||o!=null?u.jsx(ge,{isLoading:d&&o==null,errorMessage:_e(o)}):u.jsx(l,{authConfigValues:i,children:u.jsxs(u.Fragment,{children:[u.jsx(pb,{}),e]})})}function Mr(t,e,n,r,i,a,o){try{var s=t[a](o),l=s.value}catch(d){return void n(d)}s.done?e(l):Promise.resolve(l).then(r,i)}function $r(t){return function(){var e=this,n=arguments;return new Promise(function(r,i){var a=t.apply(e,n);function o(l){Mr(a,r,i,o,s,"next",l)}function s(l){Mr(a,r,i,o,s,"throw",l)}o(void 0)})}}var Ee=V.module("@deephaven/app-utils.ConnectionBootstrap");function gb(t){var{children:e}=t,n=Se(),r=Ae(),[i,a]=c.useState(),[o,s]=c.useState(),[l,d]=c.useState("connecting"),f=l==="failed",p=l==="shutdown",h=l==="reconnecting",m=l==="not_connecting";c.useEffect(function(){var P=!1;function C(){return j.apply(this,arguments)}function j(){return j=$r(function*(){try{var v=yield r.getAsIdeConnection();if(P)return;s(v),d("connected")}catch(S){if(P)return;a(S),d("not_connecting")}}),j.apply(this,arguments)}return C(),()=>{P=!0}},[n,r]),c.useEffect(function(){if(o==null||p)return;function P(j){var{detail:v}=j;Ee.info("Disconnect","".concat(JSON.stringify(v))),d("reconnecting")}var C=o.addEventListener(n.IdeConnection.EVENT_DISCONNECT,P);return C},[n,o,p]),c.useEffect(function(){if(o==null||p)return;function P(j){var{detail:v}=j;Ee.info("Reconnect","".concat(JSON.stringify(v))),d("connected")}var C=o.addEventListener(n.CoreClient.EVENT_RECONNECT,P);return C},[n,o,p]),c.useEffect(function(){if(o==null)return;function P(j){var{detail:v}=j;Ee.info("Shutdown","".concat(JSON.stringify(v))),a("Server shutdown: ".concat(v??"Unknown reason")),d("shutdown")}var C=o.addEventListener(n.IdeConnection.EVENT_SHUTDOWN,P);return C},[n,o]),c.useEffect(function(){if(o==null||p)return;function P(j){var{detail:v}=j;Ee.warn("Reconnect authentication failed","".concat(JSON.stringify(v))),a("Reconnect authentication failed: ".concat(v??"Unknown reason")),d("failed")}var C=o.addEventListener(n.CoreClient.EVENT_RECONNECT_AUTH_FAILED,P);return C},[n,o,p]);var g=c.useCallback(function(){var b=$r(function*(P){return Je(o,"No connection available to fetch object with"),o.getObject(Ti(P))});return function(P){return b.apply(this,arguments)}}(),[o]),x=c.useMemo(()=>({subscribe:(b,P)=>(P({fetch:()=>g(b),status:"ready"}),()=>{})}),[g]);function y(){Ee.info("Refreshing application"),window.location.reload()}return p||l==="connecting"||m?u.jsx(ge,{"data-testid":"connection-bootstrap-loading",isLoading:!1,errorMessage:i!=null?"".concat(i):void 0}):u.jsx(su.Provider,{value:o??null,children:u.jsx(Ei.Provider,{value:g,children:u.jsxs(un.Provider,{value:x,children:[e,u.jsx($a,{isOpen:h,debounceMs:1e3,children:u.jsx(Ua,{icon:Zl,title:u.jsxs(u.Fragment,{children:[u.jsx(Qe,{})," Attempting to reconnect..."]}),subtitle:"Please check your network connection."})}),u.jsx(yi,{confirmButtonText:"Refresh",onConfirm:y,isOpen:f,headerText:"Authentication failed",bodyText:"Credentials are invalid. Please refresh your browser to try and reconnect."})]})})})}function Wb(t){return new URL(t,"".concat(window.location))}function yb(){var t=new URLSearchParams(window.location.search);return t.get("envoyPrefix")}function vb(){var t=yb();return t!=null?{headers:{"envoy-prefix":t}}:{headers:{}}}function Ur(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 Br(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Ur(Object(n),!0).forEach(function(r){bb(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ur(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function bb(t,e,n){return(e=Pb(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Pb(t){var e=xb(t,"string");return typeof e=="symbol"?e:e+""}function xb(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function wb(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return{action:()=>{Ch(eu,Br(Br({},t),{},{userAgent:navigator.userAgent}),na.getState())},shortcut:vi.EXPORT_LOGS,isGlobal:e}}function Ob(t){var{children:e}=t,n=c.useContext(co);return n?u.jsx(u.Fragment,{children:e}):u.jsx(ge,{"data-testid":"fonts-loaded-loading"})}function Sb(t){var{children:e}=t,n=lu(),r=c.useContext(hi),i=c.useContext(et),a=wo(n,r,i);return u.jsx(fi.Provider,{value:a,children:e})}function Eb(t){var{children:e}=t,n=Ui(hd),r=c.useContext(rt),i=po(r),a=Ut();return u.jsx(wi,{themes:i,waitForActivation:a,children:u.jsx(Ai,{children:u.jsx(Oo,{children:u.jsx(ma,{density:n.gridDensity,children:e})})})})}function Vb(t){var{fontClassNames:e,pluginsUrl:n,getCorePlugins:r,serverUrl:i,logMetadata:a,children:o}=t,s=c.useMemo(()=>vb(),[]),[l,d]=c.useState(0),f=c.useCallback(()=>{},[]),p=c.useCallback(()=>{requestAnimationFrame(()=>{d(m=>m+1)})},[]);fn(f,p);var h=c.useMemo(()=>[wb(a,!0)],[a]);return u.jsxs(Js,{store:na,children:[u.jsx(dv,{fontClassNames:e,children:u.jsx(db,{getCorePlugins:r,pluginsUrl:n,children:u.jsx(Eb,{children:u.jsxs(pi,{serverUrl:i,options:s,children:[u.jsx(mb,{children:u.jsx(uu,{children:u.jsx(Sb,{children:u.jsx(gb,{children:u.jsx(Ob,{children:o})})})})}),u.jsx(qt,{actions:h})]},l)})})}),u.jsx(Ba,{})]})}function Wr(t,e,n,r,i,a,o){try{var s=t[a](o),l=s.value}catch(d){return void n(d)}s.done?e(l):Promise.resolve(l).then(r,i)}function Tb(t){return function(){var e=this,n=arguments;return new Promise(function(r,i){var a=t.apply(e,n);function o(l){Wr(a,r,i,o,s,"next",l)}function s(l){Wr(a,r,i,o,s,"throw",l)}o(void 0)})}}function te(t,e,n){return(e=Cb(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Cb(t){var e=jb(t,"string");return typeof e=="symbol"?e:e+""}function jb(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var Te=V.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;te(this,"storageService",void 0),te(this,"baseRoot",void 0),te(this,"root",void 0),te(this,"currentSize",0),te(this,"currentViewport",void 0),te(this,"listeners",[]),te(this,"viewportUpdatePromise",void 0),te(this,"currentViewportData",void 0),te(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 he.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 s=this.childTables.get(i);s==null||s.setExpanded(a,n)}}else if(this.childTables.has(i))if(a){var l=this.childTables.get(i);l==null||l.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){Te.debug2("doRefresh",this.root),e(this.fetchData())}refresh(){var e;Te.debug2("refresh",this.root),(e=this.viewportUpdatePromise)===null||e===void 0||e.cancel();var n=new Promise(i=>{this.doRefresh(i)}),r=me.makeCancelable(n.then(i=>{if(this.viewportUpdatePromise!==r)throw new Di;return this.currentViewportData=i,this.sendUpdate(),i}));r.catch(i=>{me.isCanceled(i)||Te.error("Error updating viewport",i)}),this.viewportUpdatePromise=r}refreshInternal(){try{this.refresh()}catch(e){me.isCanceled(e)||Te.error("Unable to refresh data",e)}}fetchData(){var e=this;return Tb(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:s,filename:l}=o;if(l===e.removeBaseRoot("".concat(e.root,"/").concat(s))&&o.type==="directory"){var d=e.childTables.get(s);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,Te.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)}}te(De,"REFRESH_DEBOUNCE",50);function Vr(t,e,n,r,i,a,o){try{var s=t[a](o),l=s.value}catch(d){return void n(d)}s.done?e(l):Promise.resolve(l).then(r,i)}function se(t){return function(){var e=this,n=arguments;return new Promise(function(r,i){var a=t.apply(e,n);function o(l){Vr(a,r,i,o,s,"next",l)}function s(l){Vr(a,r,i,o,s,"throw",l)}o(void 0)})}}function ve(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=_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||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var kb=V.module("GrpcFileStorage");class gn{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",Zs(()=>{this.tables.forEach(i=>i.refresh())},gn.REFRESH_THROTTLE)),this.dh=e,this.storageService=n,this.root=r}removeRoot(e){return he.removeRoot(this.root,e)}addRoot(e){return he.addRoot(this.root,e)}createDirectory(e){var n=this;return se(function*(){return yield n.storageService.createDirectory(n.addRoot(e)),n.refreshTables(),{type:"directory",id:e,filename:e,basename:he.getBaseName(e)}})()}getTable(){var e=this;return se(function*(){var n=new De(e.storageService,e.root);return e.tables.push(n),n})()}saveFile(e){var n=this;return se(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 se(function*(){var r=yield n.storageService.loadFile(n.addRoot(e)),i=yield r.text();return{filename:e,basename:he.getBaseName(e),content:i}})()}copyFile(e,n){var r=this;return se(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 se(function*(){yield n.storageService.deleteItem(n.addRoot(e)),n.refreshTables()})()}moveFile(e,n){var r=this;return se(function*(){yield r.storageService.moveItem(r.addRoot(e),r.addRoot(n)),r.refreshTables()})()}info(e){var n=this;return se(function*(){var r=yield n.storageService.listItems(n.addRoot(he.getPath(e)),he.getBaseName(e));if(r.length===0)throw new md;if(r.length>1)throw kb.error("More than one matching file found, should never happen.",r),new Error("More than one matching file found");var i=r[0];if(!gd(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(gn,"REFRESH_THROTTLE",150);export{Vb as AppBootstrap,Gb as AppDashboards,mb as AuthBootstrap,gb as ConnectionBootstrap,su as ConnectionContext,Kb as DEFAULT_LAYOUT_CONFIG,qb as DEFAULT_LAYOUT_CONFIG_NO_CONSOLE,dv as FontBootstrap,Ob as FontsLoaded,co as FontsLoadedContext,gn as GrpcFileStorage,De as GrpcFileStorageTable,zb as GrpcLayoutStorage,Xb as LocalWorkspaceStorage,db as PluginsBootstrap,Bb as RemoteComponent,Eb as ThemeBootstrap,Qb as UserLayoutUtils,wb as createExportLogsContextAction,Jb as exportLayout,sb as getAuthHandlers,lb as getAuthPluginComponent,Wb as getBaseUrl,vb as getConnectOptions,Zb as getDefaultLayout,yb as getEnvoyPrefix,ab as getPluginModuleValue,e0 as isLayoutV1,t0 as isLayoutV2,rb as loadJson,nb as loadModulePlugin,ob as loadModulePlugins,n0 as normalizeLayout,r0 as useConnection,lu as useServerConfig,i0 as useUser};
|
|
84
|
-
//# sourceMappingURL=index-
|
|
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 Rr(t,e,n,r,i,a,o){try{var s=t[a](o),l=s.value}catch(d){return void n(d)}s.done?e(l):Promise.resolve(l).then(r,i)}function Vv(t){return function(){var e=this,n=arguments;return new Promise(function(r,i){var a=t.apply(e,n);function o(l){Rr(a,r,i,o,s,"next",l)}function s(l){Rr(a,r,i,o,s,"throw",l)}o(void 0)})}}var Oo=Vs.parse("inmemory://dh-config/ruff-settings.json");function Hv(){var{schemas:t=[]}=vn.json.jsonDefaults.diagnosticsOptions;t.some(e=>e.uri==="json://ruff-schema")||vn.json.jsonDefaults.setDiagnosticsOptions({schemas:[...t,{uri:"json://ruff-schema",fileMatch:[Oo.toString()],schema:Wv}]})}function Yv(){return Lt.apply(this,arguments)}function Lt(){return Lt=Vv(function*(){return yield Vi.initRuff(),"v".concat(Hs.version())}),Lt.apply(this,arguments)}function Gv(t){var{text:e,isOpen:n,onClose:r,onSave:i,readOnly:a=!1,defaultSettings:o=Wi}=t,[s,l]=c.useState(!1),[d,f]=c.useState(!1),p=c.useRef(),h=c.useMemo(()=>JSON.stringify(o,null,2),[o]),{data:m}=Oe(Yv),[g]=c.useState(()=>Ws.createModel(e,"json",Oo)),x=c.useCallback(()=>{n&&(r(),p.current=void 0,g.dispose())},[n,r,g]),y=c.useCallback(()=>{if(n){try{var v,S,I;i(JSON.parse((v=(S=p.current)===null||S===void 0||(I=S.getModel())===null||I===void 0?void 0:I.getValue())!==null&&v!==void 0?v:""))}catch{}x()}},[n,x,i]),b=c.useCallback(()=>{Je(g),g.setValue(h)},[g,h]),P=c.useCallback(v=>{var S,I;try{JSON.parse(v),l(!0)}catch{l(!1)}f(((S=p.current)===null||S===void 0||(I=S.getModel())===null||I===void 0?void 0:I.getValue())===h)},[h]),C=Ie(P,500,{leading:!0}),j=c.useCallback(v=>{p.current=v,g.onDidChangeContent(()=>{C(g.getValue())}),Hv(),C(g.getValue())},[C,g]);return n?u.jsxs(Vt,{isOpen:n,centered:!0,keyboard:!0,clickOutside:!1,toggle:x,size:"lg",className:"ruff-settings-modal",children:[u.jsxs(ci,{closeButton:!1,children:[u.jsxs("span",{className:"settings-modal-title mr-auto",children:["Ruff ",m," Settings"]}),u.jsx(ei,{href:"https://docs.astral.sh/ruff/settings/",target:"_blank",children:u.jsx(K,{kind:"ghost",onClick:rt,icon:zl,children:"Settings Docs"})}),u.jsxs(Xe,{isDisabled:d,onPress:b,children:[u.jsx(Le,{children:u.jsx(Z,{icon:Xl})}),u.jsx(at,{children:"Reset to default"})]})]}),u.jsx(Ht,{style:{height:"80vh"},children:u.jsx(ea,{onEditorInitialized:j,settings:{readOnly:a,value:e,language:"json",folding:!0,padding:{bottom:16},lineNumbers:"on",overviewRulerLanes:0,model:g}})}),u.jsx(bi,{children:a?u.jsx(K,{kind:"secondary","data-dismiss":"modal",onClick:x,children:"Close"}):u.jsxs(u.Fragment,{children:[u.jsx(K,{kind:"secondary","data-dismiss":"modal",onClick:x,children:"Cancel"}),u.jsx(K,{kind:"primary","data-dismiss":"modal",tooltip:s?void 0:"Cannot save invalid JSON",disabled:!s,onClick:y,children:"Save"})]})})]}):null}const Kv=Object.freeze(Object.defineProperty({__proto__:null,Code:qc,CommandHistory:zc,CommandHistoryActions:Xc,CommandHistoryItem:Qc,CommandHistoryItemTooltip:Jc,Console:wn,ConsoleConstants:Zc,ConsoleHistory:ed,ConsoleHistoryItem:td,ConsoleHistoryItemResult:nd,ConsoleHistoryResultErrorMessage:rd,ConsoleHistoryResultInProgress:id,ConsoleInput:ad,ConsoleStatusBar:od,ConsoleUtils:sd,Editor:ea,HeapUsage:ld,LogView:ud,MonacoProviders:Vi,MonacoTheme:cd,MonacoThemeProvider:wo,MonacoUtils:Bi,ObjectIcon:dd,RUFF_DEFAULT_SETTINGS:Wi,RuffSettingsModal:Gv,SHORTCUTS:pd,ScriptEditor:Xd,ScriptEditorUtils:Qd,default:wn},Symbol.toStringTag,{value:"Module"}));function So(t,e,n){return(e=qv(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function qv(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||"default");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){So(this,"dh",void 0),this.dh=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(){return new this.dh.Sort}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,s=new this.dh.TreeTable({columns:e,aggregatedColumns:n,groupedColumns:r,size:i,sort:a,layoutHints:o});return s.copy=jest.fn(()=>Promise.resolve(s)),s}makeInputTable(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return new this.dh.InputTable(e)}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 Jd(i,e,n??new Xt(i),r)}}So(we,"DEFAULT_TYPE","java.lang.String");const Xv=Object.freeze(Object.defineProperty({__proto__:null,AdvancedSettings:Zd,AdvancedSettingsType:ep,AggregationEdit:Rf,AggregationOperation:tp,AggregationUtils:np,Aggregations:Df,BarIcon:Lf,ChartBuilder:Af,ColumnHeaderGroup:rp,CustomColumnBuilder:Ff,DownloadServiceWorkerUtils:Nf,FormatColumnWhereIcon:Mf,FormatRowWhereIcon:$f,HistogramIcon:Uf,InputEditor:Bf,IrisGrid:On,IrisGridCacheUtils:ip,IrisGridCellOverflowMouseHandler:Wf,IrisGridColumnSelectMouseHandler:Vf,IrisGridColumnTooltipMouseHandler:Hf,IrisGridContextMenuHandler:Yf,IrisGridCopyCellMouseHandler:Gf,IrisGridDataSelectMouseHandler:Kf,IrisGridFilterMouseHandler:qf,IrisGridMetricCalculator:zf,IrisGridModel:ap,IrisGridModelFactory:op,IrisGridPartitionedTableModel:sp,IrisGridPartitionedTableMouseHandler:Xf,IrisGridRenderer:Qf,IrisGridRowTreeMouseHandler:Jf,IrisGridSortMouseHandler:Zf,IrisGridTableModel:lp,IrisGridTableModelTemplate:up,IrisGridTestUtils:we,IrisGridThemeContext:eh,IrisGridThemeProvider:ma,IrisGridTokenMouseHandler:th,IrisGridTreeTableModel:cp,IrisGridUtils:dp,LineIcon:nh,OptionType:rh,PendingMouseHandler:ih,PieIcon:ah,RollupRows:oh,SHORTCUTS:sh,ScatterIcon:lh,TableCsvExporter:uh,TableSaver:ch,VisibilityOrderingBuilder:dh,createDefaultIrisGridTheme:ph,default:On,isIrisGridTableModelTemplate:pp,isIrisGridTreeTableModel:fp,isPanelStateV1:hp,isPanelStateV2:mp,isPartitionedGridModel:gp,isPartitionedGridModelProvider:yp,isUITreeRow:vp},Symbol.toStringTag,{value:"Module"}));var Eo={react:U,"react-dom":Ys,redux:Gs,"react-redux":Ks,"@adobe/react-spectrum":qs,"@deephaven/auth-plugins":Av,"@deephaven/chart":Mv,"@deephaven/components":dy,"@deephaven/console":Kv,"@deephaven/dashboard":Bv,"@deephaven/dashboard-core-plugins":bp,"@deephaven/icons":Ql,"@deephaven/iris-grid":Xv,"@deephaven/jsapi-bootstrap":hy,"@deephaven/jsapi-components":cv,"@deephaven/jsapi-utils":Sy,"@deephaven/log":V,"@deephaven/plugin":fv,"@deephaven/react-hooks":Uh},Qv=zs.createRequires(Eo),Jv=Xs({requires:Qv});function Dr(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 Lr(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Dr(Object(n),!0).forEach(function(r){Zv(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Dr(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function Zv(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=tb(t,"string");return typeof e=="symbol"?e:e+""}function tb(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Ar(t,e,n,r,i,a,o){try{var s=t[a](o),l=s.value}catch(d){return void n(d)}s.done?e(l):Promise.resolve(l).then(r,i)}function mn(t){return function(){var e=this,n=arguments;return new Promise(function(r,i){var a=t.apply(e,n);function o(l){Ar(a,r,i,o,s,"next",l)}function s(l){Ar(a,r,i,o,s,"throw",l)}o(void 0)})}}var ue=V.module("@deephaven/app-utils.PluginUtils");function nb(t){return At.apply(this,arguments)}function At(){return At=mn(function*(t){var e=yield Jv(t);return e}),At.apply(this,arguments)}function rb(t){return Ft.apply(this,arguments)}function Ft(){return Ft=mn(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")}}),Ft.apply(this,arguments)}function ib(t){return typeof t=="object"&&t!=null&&typeof t.default=="object"}function ab(t){return Pt(t)?t:ib(t)&&Pt(t.default)?t.default:Ri(t)?t:null}function ob(t){return Nt.apply(this,arguments)}function Nt(){return Nt=mn(function*(t){ue.debug("Loading plugins...");try{var e=yield rb("".concat(t,"/manifest.json"));if(!Array.isArray(e.plugins))throw new Error("Plugin manifest JSON does not contain plugins array");ue.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(nb(o))}for(var s=yield Promise.allSettled(n),l=new Map,d=0;d<s.length;d+=1){var f=s[d],{name:p,version:h}=e.plugins[d];if(f.status==="fulfilled"){var m=ab(f.value);m==null?ue.error("Plugin '".concat(p,"' is missing an exported value.")):l.set(p,Lr(Lr({},m),{},{version:h}))}else ue.error("Unable to load plugin '".concat(p,"'"),f.reason)}return ue.info("Plugins loaded:",l),l}catch(g){return ue.error("Unable to load plugins:",g),new Map}}),Nt.apply(this,arguments)}function sb(t){var e,n;return(e=(n=t.get("AuthHandlers"))===null||n===void 0?void 0:n.split(","))!==null&&e!==void 0?e:[]}function lb(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:new Map,r=sb(e),i=[...t.entries(),...n.entries()].filter(l=>{var[,d]=l;return ki(d)||bt(d)}).map(l=>{var[d,f]=l;return bt(f)?{type:_i.AUTH_PLUGIN,name:d,component:f.AuthPlugin.Component,isAvailable:f.AuthPlugin.isAvailable}:f}),a=i.filter(l=>{var{isAvailable:d}=l;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&&ue.warn("More than one login plugin available, will use the first one: ",a.map(l=>{var{name:d}=l;return d}).join(", "));var{name:o,component:s}=a[0];return ue.info("Using LoginPlugin",o),s}var ub=ti.createRequires(()=>Eo),Bb=ti.createRemoteComponent({requires:ub});function Fr(t,e,n,r,i,a,o){try{var s=t[a](o),l=s.value}catch(d){return void n(d)}s.done?e(l):Promise.resolve(l).then(r,i)}function cb(t){return function(){var e=this,n=arguments;return new Promise(function(r,i){var a=t.apply(e,n);function o(l){Fr(a,r,i,o,s,"next",l)}function s(l){Fr(a,r,i,o,s,"throw",l)}o(void 0)})}}function db(t){var{pluginsUrl:e,getCorePlugins:n,children:r}=t,[i,a]=c.useState(null);return c.useEffect(function(){var s=!1;function l(){return d.apply(this,arguments)}function d(){return d=cb(function*(){var f,p=(f=yield n==null?void 0:n())!==null&&f!==void 0?f:[],h=yield ob(e);if(!s){var m=p.map(g=>[g.name,g]);a(new Map([...m,...h]))}}),d.apply(this,arguments)}return l(),()=>{s=!0}},[e,n]),u.jsx(it.Provider,{value:i,children:r})}function pb(){var t=pn();return c.useEffect(function(){t.postMessage(di(cn))},[t]),null}function Nr(t,e,n,r,i,a,o){try{var s=t[a](o),l=s.value}catch(d){return void n(d)}s.done?e(l):Promise.resolve(l).then(r,i)}function fb(t){return function(){var e=this,n=arguments;return new Promise(function(r,i){var a=t.apply(e,n);function o(l){Nr(a,r,i,o,s,"next",l)}function s(l){Nr(a,r,i,o,s,"throw",l)}o(void 0)})}}var hb=new Map([["@deephaven/auth-plugins.AuthPluginParent",{AuthPlugin:mo}],["@deephaven/auth-plugins.AuthPluginPsk",{AuthPlugin:bo}],["@deephaven/auth-plugins.AuthPluginAnonymous",{AuthPlugin:ho}]]);function mb(t){var{children:e}=t,n=Ae(),r=c.useContext(it),[i,a]=c.useState(),[o,s]=c.useState();c.useEffect(function(){var p=!1;function h(){return m.apply(this,arguments)}function m(){return m=fb(function*(){try{var g=yield n.getAuthConfigValues();p||a(new Map(g))}catch(x){p||s(x)}}),m.apply(this,arguments)}return h(),()=>{p=!0}},[n]);var l=c.useMemo(()=>{if(!(r==null||i==null))try{return lb(r,i,hb)}catch(f){s(f)}},[i,r]),d=l==null||i==null;return d||o!=null?u.jsx(ge,{isLoading:d&&o==null,errorMessage:_e(o)}):u.jsx(l,{authConfigValues:i,children:u.jsxs(u.Fragment,{children:[u.jsx(pb,{}),e]})})}function Mr(t,e,n,r,i,a,o){try{var s=t[a](o),l=s.value}catch(d){return void n(d)}s.done?e(l):Promise.resolve(l).then(r,i)}function $r(t){return function(){var e=this,n=arguments;return new Promise(function(r,i){var a=t.apply(e,n);function o(l){Mr(a,r,i,o,s,"next",l)}function s(l){Mr(a,r,i,o,s,"throw",l)}o(void 0)})}}var Ee=V.module("@deephaven/app-utils.ConnectionBootstrap");function gb(t){var{children:e}=t,n=Se(),r=Ae(),[i,a]=c.useState(),[o,s]=c.useState(),[l,d]=c.useState("connecting"),f=l==="failed",p=l==="shutdown",h=l==="reconnecting",m=l==="not_connecting";c.useEffect(function(){var P=!1;function C(){return j.apply(this,arguments)}function j(){return j=$r(function*(){try{var v=yield r.getAsIdeConnection();if(P)return;s(v),d("connected")}catch(S){if(P)return;a(S),d("not_connecting")}}),j.apply(this,arguments)}return C(),()=>{P=!0}},[n,r]),c.useEffect(function(){if(o==null||p)return;function P(j){var{detail:v}=j;Ee.info("Disconnect","".concat(JSON.stringify(v))),d("reconnecting")}var C=o.addEventListener(n.IdeConnection.EVENT_DISCONNECT,P);return C},[n,o,p]),c.useEffect(function(){if(o==null||p)return;function P(j){var{detail:v}=j;Ee.info("Reconnect","".concat(JSON.stringify(v))),d("connected")}var C=o.addEventListener(n.CoreClient.EVENT_RECONNECT,P);return C},[n,o,p]),c.useEffect(function(){if(o==null)return;function P(j){var{detail:v}=j;Ee.info("Shutdown","".concat(JSON.stringify(v))),a("Server shutdown: ".concat(v??"Unknown reason")),d("shutdown")}var C=o.addEventListener(n.IdeConnection.EVENT_SHUTDOWN,P);return C},[n,o]),c.useEffect(function(){if(o==null||p)return;function P(j){var{detail:v}=j;Ee.warn("Reconnect authentication failed","".concat(JSON.stringify(v))),a("Reconnect authentication failed: ".concat(v??"Unknown reason")),d("failed")}var C=o.addEventListener(n.CoreClient.EVENT_RECONNECT_AUTH_FAILED,P);return C},[n,o,p]);var g=c.useCallback(function(){var b=$r(function*(P){return Je(o,"No connection available to fetch object with"),o.getObject(Ti(P))});return function(P){return b.apply(this,arguments)}}(),[o]),x=c.useMemo(()=>({subscribe:(b,P)=>(P({fetch:()=>g(b),status:"ready"}),()=>{})}),[g]);function y(){Ee.info("Refreshing application"),window.location.reload()}return p||l==="connecting"||m?u.jsx(ge,{"data-testid":"connection-bootstrap-loading",isLoading:!1,errorMessage:i!=null?"".concat(i):void 0}):u.jsx(ou.Provider,{value:o??null,children:u.jsx(Ei.Provider,{value:g,children:u.jsxs(un.Provider,{value:x,children:[e,u.jsx($a,{isOpen:h,debounceMs:1e3,children:u.jsx(Ua,{icon:Jl,title:u.jsxs(u.Fragment,{children:[u.jsx(Qe,{})," Attempting to reconnect..."]}),subtitle:"Please check your network connection."})}),u.jsx(yi,{confirmButtonText:"Refresh",onConfirm:y,isOpen:f,headerText:"Authentication failed",bodyText:"Credentials are invalid. Please refresh your browser to try and reconnect."})]})})})}function Wb(t){return new URL(t,"".concat(window.location))}function yb(){var t=new URLSearchParams(window.location.search);return t.get("envoyPrefix")}function vb(){var t=yb();return t!=null?{headers:{"envoy-prefix":t}}:{headers:{}}}function Ur(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 Br(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Ur(Object(n),!0).forEach(function(r){bb(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ur(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function bb(t,e,n){return(e=Pb(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Pb(t){var e=xb(t,"string");return typeof e=="symbol"?e:e+""}function xb(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function wb(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return{action:()=>{Ch(Zl,Br(Br({},t),{},{userAgent:navigator.userAgent}),ta.getState())},shortcut:vi.EXPORT_LOGS,isGlobal:e}}function Ob(t){var{children:e}=t,n=c.useContext(uo);return n?u.jsx(u.Fragment,{children:e}):u.jsx(ge,{"data-testid":"fonts-loaded-loading"})}function Sb(t){var{children:e}=t,n=su(),r=c.useContext(hi),i=c.useContext(tt),a=xo(n,r,i);return u.jsx(fi.Provider,{value:a,children:e})}function Eb(t){var{children:e}=t,n=Ui(fd),r=c.useContext(it),i=co(r),a=Bt();return u.jsx(wi,{themes:i,waitForActivation:a,children:u.jsx(Ai,{children:u.jsx(wo,{children:u.jsx(ma,{density:n.gridDensity,children:e})})})})}function Vb(t){var{fontClassNames:e,pluginsUrl:n,getCorePlugins:r,serverUrl:i,logMetadata:a,children:o}=t,s=c.useMemo(()=>vb(),[]),[l,d]=c.useState(0),f=c.useCallback(()=>{},[]),p=c.useCallback(()=>{requestAnimationFrame(()=>{d(m=>m+1)})},[]);fn(f,p);var h=c.useMemo(()=>[wb(a,!0)],[a]);return u.jsxs(Qs,{store:ta,children:[u.jsx(dv,{fontClassNames:e,children:u.jsx(db,{getCorePlugins:r,pluginsUrl:n,children:u.jsx(Eb,{children:u.jsxs(pi,{serverUrl:i,options:s,children:[u.jsx(mb,{children:u.jsx(lu,{children:u.jsx(Sb,{children:u.jsx(gb,{children:u.jsx(Ob,{children:o})})})})}),u.jsx(qt,{actions:h})]},l)})})}),u.jsx(Ba,{})]})}function Wr(t,e,n,r,i,a,o){try{var s=t[a](o),l=s.value}catch(d){return void n(d)}s.done?e(l):Promise.resolve(l).then(r,i)}function Tb(t){return function(){var e=this,n=arguments;return new Promise(function(r,i){var a=t.apply(e,n);function o(l){Wr(a,r,i,o,s,"next",l)}function s(l){Wr(a,r,i,o,s,"throw",l)}o(void 0)})}}function te(t,e,n){return(e=Cb(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Cb(t){var e=jb(t,"string");return typeof e=="symbol"?e:e+""}function jb(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var Te=V.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;te(this,"storageService",void 0),te(this,"baseRoot",void 0),te(this,"root",void 0),te(this,"currentSize",0),te(this,"currentViewport",void 0),te(this,"listeners",[]),te(this,"viewportUpdatePromise",void 0),te(this,"currentViewportData",void 0),te(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 he.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 s=this.childTables.get(i);s==null||s.setExpanded(a,n)}}else if(this.childTables.has(i))if(a){var l=this.childTables.get(i);l==null||l.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){Te.debug2("doRefresh",this.root),e(this.fetchData())}refresh(){var e;Te.debug2("refresh",this.root),(e=this.viewportUpdatePromise)===null||e===void 0||e.cancel();var n=new Promise(i=>{this.doRefresh(i)}),r=me.makeCancelable(n.then(i=>{if(this.viewportUpdatePromise!==r)throw new Di;return this.currentViewportData=i,this.sendUpdate(),i}));r.catch(i=>{me.isCanceled(i)||Te.error("Error updating viewport",i)}),this.viewportUpdatePromise=r}refreshInternal(){try{this.refresh()}catch(e){me.isCanceled(e)||Te.error("Unable to refresh data",e)}}fetchData(){var e=this;return Tb(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:s,filename:l}=o;if(l===e.removeBaseRoot("".concat(e.root,"/").concat(s))&&o.type==="directory"){var d=e.childTables.get(s);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,Te.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)}}te(De,"REFRESH_DEBOUNCE",50);function Vr(t,e,n,r,i,a,o){try{var s=t[a](o),l=s.value}catch(d){return void n(d)}s.done?e(l):Promise.resolve(l).then(r,i)}function se(t){return function(){var e=this,n=arguments;return new Promise(function(r,i){var a=t.apply(e,n);function o(l){Vr(a,r,i,o,s,"next",l)}function s(l){Vr(a,r,i,o,s,"throw",l)}o(void 0)})}}function ve(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=_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||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var kb=V.module("GrpcFileStorage");class gn{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",Js(()=>{this.tables.forEach(i=>i.refresh())},gn.REFRESH_THROTTLE)),this.dh=e,this.storageService=n,this.root=r}removeRoot(e){return he.removeRoot(this.root,e)}addRoot(e){return he.addRoot(this.root,e)}createDirectory(e){var n=this;return se(function*(){return yield n.storageService.createDirectory(n.addRoot(e)),n.refreshTables(),{type:"directory",id:e,filename:e,basename:he.getBaseName(e)}})()}getTable(){var e=this;return se(function*(){var n=new De(e.storageService,e.root);return e.tables.push(n),n})()}saveFile(e){var n=this;return se(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 se(function*(){var r=yield n.storageService.loadFile(n.addRoot(e)),i=yield r.text();return{filename:e,basename:he.getBaseName(e),content:i}})()}copyFile(e,n){var r=this;return se(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 se(function*(){yield n.storageService.deleteItem(n.addRoot(e)),n.refreshTables()})()}moveFile(e,n){var r=this;return se(function*(){yield r.storageService.moveItem(r.addRoot(e),r.addRoot(n)),r.refreshTables()})()}info(e){var n=this;return se(function*(){var r=yield n.storageService.listItems(n.addRoot(he.getPath(e)),he.getBaseName(e));if(r.length===0)throw new hd;if(r.length>1)throw kb.error("More than one matching file found, should never happen.",r),new Error("More than one matching file found");var i=r[0];if(!md(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(gn,"REFRESH_THROTTLE",150);export{Vb as AppBootstrap,Gb as AppDashboards,mb as AuthBootstrap,gb as ConnectionBootstrap,ou as ConnectionContext,Kb as DEFAULT_LAYOUT_CONFIG,qb as DEFAULT_LAYOUT_CONFIG_NO_CONSOLE,dv as FontBootstrap,Ob as FontsLoaded,uo as FontsLoadedContext,gn as GrpcFileStorage,De as GrpcFileStorageTable,zb as GrpcLayoutStorage,Xb as LocalWorkspaceStorage,db as PluginsBootstrap,Bb as RemoteComponent,Eb as ThemeBootstrap,Qb as UserLayoutUtils,wb as createExportLogsContextAction,Jb as exportLayout,sb as getAuthHandlers,lb as getAuthPluginComponent,Wb as getBaseUrl,vb as getConnectOptions,Zb as getDefaultLayout,yb as getEnvoyPrefix,ab as getPluginModuleValue,e0 as isLayoutV1,t0 as isLayoutV2,rb as loadJson,nb as loadModulePlugin,ob as loadModulePlugins,n0 as normalizeLayout,r0 as useConnection,su as useServerConfig,i0 as useUser};
|
|
84
|
+
//# sourceMappingURL=index-BamkMMOH.js.map
|