@deephaven/code-studio 1.9.1-beta.0 → 1.9.1-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/assets/{AppRoot-GxFauNCs.js → AppRoot-BUzwUdpM.js} +4 -4
- package/build/assets/{AppRoot-GxFauNCs.js.map → AppRoot-BUzwUdpM.js.map} +1 -1
- package/build/assets/{Chart--lbX9G11.js → Chart-B6OowKpR.js} +2 -2
- package/build/assets/{Chart--lbX9G11.js.map → Chart-B6OowKpR.js.map} +1 -1
- package/build/assets/{ControlType-3LyR4egF.js → ControlType-BR_1vsqN.js} +4 -4
- package/build/assets/{ControlType-3LyR4egF.js.map → ControlType-BR_1vsqN.js.map} +1 -1
- package/build/assets/{FormatterUtils-UIR8Ktik.js → FormatterUtils-CNpIvk_y.js} +2 -2
- package/build/assets/{FormatterUtils-UIR8Ktik.js.map → FormatterUtils-CNpIvk_y.js.map} +1 -1
- package/build/assets/{Grid-DdnuG04B.js → Grid-BqaQJrS6.js} +2 -2
- package/build/assets/{Grid-DdnuG04B.js.map → Grid-BqaQJrS6.js.map} +1 -1
- package/build/assets/GridTokenMouseHandler-ijnpuTJN.js +2 -0
- package/build/assets/GridTokenMouseHandler-ijnpuTJN.js.map +1 -0
- package/build/assets/{IrisGrid-WM930hWD.js → IrisGrid-Ce2qY-CD.js} +2 -2
- package/build/assets/{IrisGrid-WM930hWD.js.map → IrisGrid-Ce2qY-CD.js.map} +1 -1
- package/build/assets/{IrisGridModel-Cgl13nKS.js → IrisGridModel-DK3DHgSb.js} +3 -3
- package/build/assets/{IrisGridModel-Cgl13nKS.js.map → IrisGridModel-DK3DHgSb.js.map} +1 -1
- package/build/assets/{IrisGridShortcuts-CKe90WwN.js → IrisGridShortcuts-DToFyOm3.js} +2 -2
- package/build/assets/{IrisGridShortcuts-CKe90WwN.js.map → IrisGridShortcuts-DToFyOm3.js.map} +1 -1
- package/build/assets/IrisGridThemeProvider-CG0N8-XS.css +1 -0
- package/build/assets/{IrisGridThemeProvider-DPPhPAp1.js → IrisGridThemeProvider-EK9zMkiN.js} +4 -4
- package/build/assets/IrisGridThemeProvider-EK9zMkiN.js.map +1 -0
- package/build/assets/{LocalWorkspaceStorage-DgoABTDH.js → LocalWorkspaceStorage-DlYHUe5t.js} +3 -3
- package/build/assets/LocalWorkspaceStorage-DlYHUe5t.js.map +1 -0
- package/build/assets/{MarkdownEditor-DqUBPq7w.js → MarkdownEditor-B7YqInNH.js} +2 -2
- package/build/assets/{MarkdownEditor-DqUBPq7w.js.map → MarkdownEditor-B7YqInNH.js.map} +1 -1
- package/build/assets/{MarkdownNotebook-DjehiByh.js → MarkdownNotebook-322sGk6B.js} +2 -2
- package/build/assets/{MarkdownNotebook-DjehiByh.js.map → MarkdownNotebook-322sGk6B.js.map} +1 -1
- package/build/assets/{MissingPartitionError-4e8kQYaw.js → MissingPartitionError-UApmR7xf.js} +2 -2
- package/build/assets/{MissingPartitionError-4e8kQYaw.js.map → MissingPartitionError-UApmR7xf.js.map} +1 -1
- package/build/assets/{MockChartModel-nlPFGor0.js → MockChartModel-Csytz2Pu.js} +2 -2
- package/build/assets/{MockChartModel-nlPFGor0.js.map → MockChartModel-Csytz2Pu.js.map} +1 -1
- package/build/assets/{StyleGuideRoot-D0L92bpD.js → StyleGuideRoot-Cbgk5Xak.js} +2 -2
- package/build/assets/{StyleGuideRoot-D0L92bpD.js.map → StyleGuideRoot-Cbgk5Xak.js.map} +1 -1
- package/build/assets/{index-DKhmiQGp.js → index-B_HvBYqC.js} +2 -2
- package/build/assets/{index-DKhmiQGp.js.map → index-B_HvBYqC.js.map} +1 -1
- package/build/assets/{index-rmLvvU_y.js → index-DF-Xh2Oi.js} +3 -3
- package/build/assets/{index-rmLvvU_y.js.map → index-DF-Xh2Oi.js.map} +1 -1
- package/build/assets/{index-D9WHTGX3.js → index-x2RacGY8.js} +4 -4
- package/build/assets/{index-D9WHTGX3.js.map → index-x2RacGY8.js.map} +1 -1
- package/build/index.html +1 -1
- package/package.json +31 -31
- package/build/assets/GridTokenMouseHandler-UEAjitHa.js +0 -2
- package/build/assets/GridTokenMouseHandler-UEAjitHa.js.map +0 -1
- package/build/assets/IrisGridThemeProvider-DPPhPAp1.js.map +0 -1
- package/build/assets/IrisGridThemeProvider-ZQGq8tBG.css +0 -1
- package/build/assets/LocalWorkspaceStorage-DgoABTDH.js.map +0 -1
package/build/assets/{LocalWorkspaceStorage-DgoABTDH.js → LocalWorkspaceStorage-DlYHUe5t.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{ab as Pt,bu as wt,r as c,I as d,bv as xt,a7 as St,K as G,bw as Ot,L as Et,U as pe,bx as Tt,M as B,by as Ct,bz as Lt,av as Rt,aW as kt,a8 as Ft,a9 as _t,bA as Dt,H as It,bB as et,a3 as At,a0 as jt,bC as Nt}from"./vendor-CnD71-t1.js";import{G as Ut,s as U,aY as L,K as k,au as tt,t as $t,B as I,ar as Bt,Y as Mt,N as fe,as as Wt,u as Yt,aL as V,R as Gt,aN as qt,c2 as Ht,bX as zt,aZ as Kt,M as Xt,d4 as Qt,c3 as Jt,d5 as Vt,ce as Zt,cb as en,d6 as tn,cc as nn,aa as on,a5 as rn,a6 as an,cU as sn,cX as Pe,aw as ln,d2 as dn,bf as cn,ab as un,d7 as N,P as ne,d3 as pn,d8 as fn,d9 as hn,da as we,db as xe,dc as Se,dd as Oe,I as mn,D as yn,a as Ee}from"./ControlType-3LyR4egF.js";import{w as gn,l as nt,m as Te,k as bn,T as vn}from"./IrisGridShortcuts-CKe90WwN.js";import{k as Pn,aJ as wn,aK as xn,aL as Sn,e as On,M as En,b as Tn,aM as Cn,aN as Ln,c as Rn,aD as it,L as q,aG as kn,N as he,s as Fn,l as _n}from"./index-rmLvvU_y.js";import{e as Dn,U as In,l as Ce}from"./monaco-DaE0jI-i.js";function Le(t,e,n,i,o,r,s){try{var a=t[r](s),l=a.value}catch(u){return void n(u)}a.done?e(l):Promise.resolve(l).then(i,o)}function An(t){return function(){var e=this,n=arguments;return new Promise(function(i,o){var r=t.apply(e,n);function s(l){Le(r,i,o,s,a,"next",l)}function a(l){Le(r,i,o,s,a,"throw",l)}s(void 0)})}}var jn=[["api"],["client"],["dashboardData","*","connection"],["dashboardData","*","sessionWrapper"],["dashboardData","*","openedMap"],["layoutStorage"],["storage"]],ot=10;function Nn(t){var e=new Map;return function(i,o){var r,s=[...(r=e.get(this))!==null&&r!==void 0?r:[],i];if(o===Object(o)&&e.set(o,[...s]),s.shift(),!Un(s,t))return o instanceof Map?Array.from(o.entries()):o}}function Un(t,e){for(var n=function(s){if(t.length===e[s].length&&t.every((a,l)=>e[s][l]==="*"||a===e[s][l]))return{v:!0}},i,o=0;o<e.length;o+=1)if(i=n(o),i)return i.v;return!1}function $n(t){var e,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:ot,o=wt({maximumDepth:i});return(e=o(t,Nn(n),2))!==null&&e!==void 0?e:""}function Bn(t){return JSON.stringify(t,null,2)}function Mn(t){var e=t.getFullYear(),n=String(t.getMonth()+1).padStart(2,"0"),i=String(t.getDate()).padStart(2,"0"),o=String(t.getHours()).padStart(2,"0"),r=String(t.getMinutes()).padStart(2,"0"),s=String(t.getSeconds()).padStart(2,"0");return"".concat(e,"-").concat(n,"-").concat(i,"-").concat(o).concat(r).concat(s)}function Wn(t,e,n){return re.apply(this,arguments)}function re(){return re=An(function*(t,e,n){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:jn,o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:"".concat(Mn(new Date),"_support_logs"),r=arguments.length>5&&arguments[5]!==void 0?arguments[5]:ot,s=new Pt,a=s.folder(o);a.file("console.txt",t.getFormattedHistory()),e!=null&&a.file("metadata.json",Bn(e)),n!=null&&a.file("redux.json",$n(n,i,r));var l=yield s.generateAsync({type:"blob"}),u=document.createElement("a");u.href=URL.createObjectURL(l),u.download="".concat(o,".zip"),u.click()}),re.apply(this,arguments)}function Po(){var{selectedThemeKey:t,setSelectedThemeKey:e,themes:n}=Ut(),i=c.useCallback(o=>{o!=null&&e("".concat(o))},[e]);return d.jsx(xt,{label:"Pick a color scheme",items:n,selectedKey:t,onSelectionChange:i,children:o=>d.jsx(St,{children:o.name},o.themeKey)})}function wo(t){var{className:e,style:n}=t;return d.jsx("div",{className:G("dh-logo",e),style:n})}var Yn=["color","UNSAFE_style"];function Re(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,i)}return n}function K(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Re(Object(n),!0).forEach(function(i){Gn(t,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Re(Object(n)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(n,i))})}return t}function Gn(t,e,n){return(e=qn(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function qn(t){var e=Hn(t,"string");return typeof e=="symbol"?e:e+""}function Hn(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var i=n.call(t,e);if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function zn(t,e){if(t==null)return{};var n,i,o=Kn(t,e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);for(i=0;i<r.length;i++)n=r[i],e.indexOf(n)===-1&&{}.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}function Kn(t,e){if(t==null)return{};var n={};for(var i in t)if({}.hasOwnProperty.call(t,i)){if(e.indexOf(i)!==-1)continue;n[i]=t[i]}return n}var Xn=c.forwardRef((t,e)=>{var{color:n,UNSAFE_style:i}=t,o=zn(t,Yn),r=c.useMemo(()=>K(K({},i),{},{color:gn(n)}),[n,i]);return d.jsx(Ot,K(K({},o),{},{ref:e,UNSAFE_style:r}))});Xn.displayName="Heading";function rt(t,e,n){return(e=Qn(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Qn(t){var e=Jn(t,"string");return typeof e=="symbol"?e:e+""}function Jn(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var i=n.call(t,e);if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}class J extends c.Component{static getHeight(e){var n=e.scrollWidth-e.clientWidth;return e.scrollHeight-n}constructor(e){super(e),rt(this,"nodeRef",pe.createRef()),this.handleEntered=this.handleEntered.bind(this)}handleEntered(){var e=this.nodeRef.current;if(e){e.style.height="";var{autoFocusOnShow:n}=this.props;if(n!==void 0&&n){var i=e.querySelector("input, select, textarea");i!=null&&i.focus()}}}handleEnter(){var e=this.nodeRef.current;e&&(e.style.height="0")}handleEntering(){var e=this.nodeRef.current;e&&(e.style.height="".concat(J.getHeight(e),"px"))}handleExiting(){var e=this.nodeRef.current;e&&(e.style.height="0")}handleExit(){var e=this.nodeRef.current;e&&(e.style.height="".concat(J.getHeight(e),"px"))}render(){var{children:e,className:n,in:i,"data-testid":o}=this.props;return d.jsx(Et,{in:i,classNames:{enterActive:"collapsing",enterDone:"collapse show",exitActive:"collapsing",exitDone:"collapse"},onEnter:this.handleEnter,onEntering:this.handleEntering,onEntered:this.handleEntered,onExit:this.handleExit,onExiting:this.handleExiting,timeout:350,nodeRef:this.nodeRef,children:r=>d.jsx("div",{ref:this.nodeRef,className:G({collapse:r==="exited"},n),"data-testid":o,children:e})})}}rt(J,"defaultProps",{className:"",autoFocusOnShow:!1,"data-testid":void 0});var xo={CYCLE_TO_NEXT_STACK:U.createAndAdd({id:"NAVIGATION.CYCLE_TO_NEXT_STACK",name:"Cycle To Next Stack",shortcut:[L.CTRL,k.SINGLE_QUOTE],macShortcut:[L.CMD,k.SINGLE_QUOTE],isEditable:!0}),CYCLE_TO_PREVIOUS_STACK:U.createAndAdd({id:"NAVIGATION.CYCLE_TO_PREVIOUS_STACK",name:"Cycle To Previous Stack",shortcut:[L.CTRL,k.SEMICOLON],macShortcut:[L.CMD,k.SEMICOLON],isEditable:!0}),CYCLE_TO_NEXT_TAB:U.createAndAdd({id:"NAVIGATION.CYCLE_TO_NEXT_TAB",name:"Cycle To Next Tab",shortcut:[L.CTRL,L.SHIFT,k.DOUBLE_QUOTE],macShortcut:[L.CMD,L.SHIFT,k.SINGLE_QUOTE],isEditable:!0}),CYCLE_TO_PREVIOUS_TAB:U.createAndAdd({id:"NAVIGATION.CYCLE_TO_PREVIOUS_TAB",name:"Cycle To Previous Tab",shortcut:[L.CTRL,L.SHIFT,k.COLON],macShortcut:[L.CMD,L.SHIFT,k.SEMICOLON],isEditable:!0}),CYCLE_TO_NEXT_DASHBOARD:U.createAndAdd({id:"NAVIGATION.CYCLE_TO_NEXT_DASHBOARD",name:"Cycle To Next Dashboard",shortcut:[L.CTRL,k.PERIOD],macShortcut:[L.CMD,k.PERIOD],isEditable:!0}),CYCLE_TO_PREVIOUS_DASHBOARD:U.createAndAdd({id:"NAVIGATION.CYCLE_TO_PREVIOUS_DASHBOARD",name:"Cycle To Previous Dashboard",shortcut:[L.CTRL,k.COMMA],macShortcut:[L.CMD,k.COMMA],isEditable:!0})};function ke(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,i)}return n}function ie(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?ke(Object(n),!0).forEach(function(i){Vn(t,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ke(Object(n)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(n,i))})}return t}function Vn(t,e,n){return(e=Zn(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Zn(t){var e=ei(t,"string");return typeof e=="symbol"?e:e+""}function ei(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var i=n.call(t,e);if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var at=c.memo(t=>{var{tab:e,onClose:n,onSelect:i,isActive:o,activeRef:r,index:s,isDraggable:a,contextActions:l}=t,{key:u,isClosable:x=n!=null,title:f,icon:v}=e,g;return v!=null&&(g=pe.isValidElement(v)?v:d.jsx(B,{icon:v})),d.jsx(Tt,{draggableId:u,index:s,isDragDisabled:!a,children:(P,T)=>d.jsxs("div",{className:"context-menu-wrapper",ref:o?r:null,children:[d.jsxs("div",ie(ie(ie({ref:P.innerRef},P.draggableProps),P.dragHandleProps),{},{className:G("btn btn-link btn-nav-tab",{active:o},{dragging:T.isDragging}),"data-testid":"btn-nav-tab-".concat(f),role:"tab",tabIndex:0,onAuxClick:m=>{x&&m.button===1&&m.buttons===0&&(n==null||n(u))},onClick:m=>{if(x&&m.button===1&&m.buttons===0){n==null||n(u);return}m.button===0&&m.buttons===0&&(m.target.focus(),i(u))},onKeyPress:m=>{m.key==="Enter"&&i(u)},children:[g,d.jsxs("span",{className:"btn-nav-tab-title",children:[f,d.jsx($t,{children:f})]}),x&&d.jsx(I,{kind:"ghost",className:"btn-nav-tab-close",onClick:m=>{n==null||n(u),m.stopPropagation(),m.preventDefault()},icon:Pn,tooltip:"Close"})]})),d.jsx(tt,{actions:l})]})},u)});at.displayName="NavTab";function ti(t){var{onSelect:e,tabs:n=Bt}=t,[i,o]=c.useState(""),[r,s]=c.useState(0),a=c.useRef(null),l=c.useRef(null),u=c.useRef([]);c.useEffect(()=>{var p;(p=a.current)===null||p===void 0||p.focus()},[]),c.useEffect(()=>{s(0)},[i]),c.useEffect(()=>{if(r>=0&&u.current[r]){var p;(p=u.current[r])===null||p===void 0||p.scrollIntoView({behavior:"auto",block:"nearest"})}},[r]);var x=c.useCallback(p=>{o(p.target.value)},[]),f=c.useCallback(p=>{e(p)},[e]),v=c.useCallback(p=>{p.preventDefault()},[]),g=c.useMemo(()=>n.filter(p=>p.title.toLowerCase().includes(i.toLowerCase())),[i,n]).sort((p,R)=>{var b;return(b=p.title.localeCompare(R.title))!==null&&b!==void 0?b:0}),P=c.useCallback(p=>{if(p.key==="ArrowDown"&&g.length>0)p.preventDefault(),s(b=>b===-1?0:(b+1)%g.length);else if(p.key==="ArrowUp"&&g.length>0)p.preventDefault(),s(b=>b===-1?g.length-1:(b-1+g.length)%g.length);else if(p.key==="Enter"&&g.length>0){p.preventDefault();var R=r>=0?r:0;f(g[R])}else p.key==="Tab"&&p.preventDefault()},[g,r,f]),T=c.useMemo(()=>g.map((p,R)=>{var b;return d.jsx("li",{ref:F=>{u.current[R]=F},onMouseDown:v,children:d.jsxs(I,{kind:"ghost","data-testid":"dashboard-list-item-".concat((b=p.key)!==null&&b!==void 0?b:"","-button"),onClick:()=>f(p),className:r===R?"focused":"",style:{transition:"none"},children:[p.icon?d.jsx("span",{className:"dashboard-list-item-icon",children:pe.isValidElement(p.icon)?p.icon:d.jsx(B,{icon:p.icon})}):null,p.title]})},p.key)}),[g,f,r,v]),m=c.useMemo(()=>T.length===0?d.jsx("span",{children:"No open dashboard found."}):null,[T]);return d.jsxs("div",{className:"dashboard-list-container d-flex flex-column",children:[d.jsx("div",{className:"dashboard-list-header",children:d.jsx(Mt,{value:i,placeholder:"Find open dashboard",endPlaceholder:fe.OPEN_DASHBOARD_LIST.getDisplayText(),onChange:x,onKeyDown:P,ref:a})}),d.jsxs("ul",{className:"dashboard-list flex-grow-1",ref:l,children:[m&&d.jsx("li",{className:"dashboard-list-message",children:m}),!m&&T]})]})}function Fe(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,i)}return n}function _e(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Fe(Object(n),!0).forEach(function(i){ni(t,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Fe(Object(n)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(n,i))})}return t}function ni(t,e,n){return(e=ii(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function ii(t){var e=oi(t,"string");return typeof e=="symbol"?e:e+""}function oi(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var i=n.call(t,e);if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var ri=500,ai=.01,si=5e-4;function De(t){return t.scrollLeft===0}function Ie(t){return Math.abs(t.scrollLeft+t.clientWidth-t.scrollWidth)<=1||t.scrollWidth===0}function li(t,e,n){var{isClosable:i=!1,key:o}=t,r=[];if(i&&n!=null){r.push({title:"Close",order:10,group:20,action:()=>{n(o)}});for(var s=!0,a=e.length-1;a>0&&e[a].key!==t.key;a-=1)if(e[a].isClosable===!0){s=!1;break}r.push({title:"Close to the Right",order:20,group:20,action:()=>{for(var l=e.length-1;l>0&&e[l].key!==o;l-=1)e[l].isClosable===!0&&n(e[l].key)},disabled:s}),r.push({title:"Close All",order:30,group:20,action:()=>{e.forEach(l=>{l.isClosable===!0&&n(l.key)})}})}return r}function So(t){var{activeKey:e,tabs:n,onSelect:i,onReorder:o,onClose:r,makeContextActions:s}=t,a=c.useRef(),[l,u]=c.useState(!0),[x,f]=c.useState(!1),[v,g]=c.useState(!0),[P,T]=c.useState(!0),m=c.useCallback(()=>{a.current!=null&&(a.current.clientWidth<a.current.scrollWidth&&n.length>0?u(!0):u(!1),g(De(a.current)),T(Ie(a.current)))},[n]);nt(a.current,m);var p=c.useCallback(h=>{Te.stopDragging(),h.destination&&(o==null||o(h.source.index,h.destination.index))},[o]),R=c.useCallback(()=>{if(a.current!=null){var h=De(a.current);h!==v&&g(h);var y=Ie(a.current);y!==P&&T(y)}},[v,P]),b=c.useRef({cancelClick:!1}),F=c.useCallback(()=>{if(!(a.current==null||b.current.cancelClick))for(var{children:h}=a.current,y=h.length-1;y>=0;y-=1){var w=h[y];if(w.offsetLeft<a.current.scrollLeft-5){w.scrollIntoView({behavior:"smooth",block:"nearest",inline:"start"});return}}},[]),C=c.useCallback(()=>{if(!(a.current==null||b.current.cancelClick))for(var{children:h}=a.current,y=0;y<h.length;y+=1){var w=h[y];if(w.offsetLeft+w.offsetWidth-5>a.current.scrollLeft+a.current.offsetWidth){w.scrollIntoView({behavior:"smooth",block:"nearest",inline:"end"});return}}},[]),S=c.useCallback(function(h,y){var w=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,O=arguments.length>3?arguments[3]:void 0,_=a.current;_!=null&&(b.current.cancelClick=!0,h==="left"?_.scrollLeft=y-w:h==="right"&&(_.scrollLeft=y+w),b.current.rAF=requestAnimationFrame(z=>{var be=O??z,ve=z-be,te=ai*ve+.5*si*ve**2;te=Math.min(te,_.scrollWidth),S(h,y,te,be)}))},[]),j=c.useCallback(()=>{var{holdTimer:h,rAF:y}=b.current;h!=null&&(clearTimeout(h),b.current.holdTimer=void 0),y!=null&&(cancelAnimationFrame(y),b.current.rAF=void 0),window.removeEventListener("mouseup",j)},[]);c.useEffect(()=>()=>window.removeEventListener("mouseup",j),[j]);var H=c.useCallback(h=>{a.current!=null&&(b.current.holdTimer=window.setTimeout(S,ri,h,a.current.scrollLeft)),b.current.cancelClick=!1,window.addEventListener("mouseup",j)},[j,S]),pt=c.useCallback(()=>{H("left")},[H]),ft=c.useCallback(()=>{H("right")},[H]);c.useEffect(function(){var y,w=O=>{O.stopPropagation(),O.preventDefault();var _=O.currentTarget,z=Math.abs(O.deltaY)>Math.abs(O.deltaX)?O.deltaY:O.deltaX;_.scrollLeft+=Rt(z,-30,30)};return(y=a.current)===null||y===void 0||y.addEventListener("wheel",w),()=>{var O;(O=a.current)===null||O===void 0||O.removeEventListener("wheel",w)}},[]);var ht=c.useMemo(()=>{var h=new Map;return n.forEach(y=>{var{key:w}=y,O=[()=>li(y,n,r),()=>{var _;return(_=s==null?void 0:s(y))!==null&&_!==void 0?_:[]}];h.set(w,O)}),h},[s,n,r]),ee=c.useRef(null),mt=n.find(h=>h.key===e),yt=n.map((h,y)=>{var{key:w}=h,O=h===mt;return d.jsx(at,{tab:h,index:y,isActive:O,activeRef:ee,onSelect:i,onClose:r,isDraggable:o!=null,contextActions:ht.get(w)},w)});c.useEffect(function(){ee.current!=null&&ee.current.scrollIntoView({block:"nearest",inline:"nearest"})},[e]);var gt=()=>{f(!x)},bt=h=>{f(!1),i(h.key)},vt=()=>{f(!1)};return d.jsxs("nav",{className:"nav-container",children:[l&&d.jsx(I,{kind:"ghost",icon:d.jsx(B,{icon:wn,transform:"grow-4"}),className:"tab-controls-btn tab-controls-btn-left",tooltip:"Scroll left",onClick:F,onMouseDown:pt,disabled:v}),d.jsx(Ct,{onDragStart:Te.startDragging,onDragEnd:p,children:d.jsx(Lt,{droppableId:"droppable-tab-navigation",direction:"horizontal",children:(h,y)=>d.jsxs("div",_e(_e({ref:w=>{w!=null&&(a.current=w,h.innerRef(w))}},h.droppableProps),{},{className:G("nav nav-tabs",{dragging:y.draggingFromThisWith}),role:"tablist",onScroll:R,children:[yt,h.placeholder]}))})}),l&&d.jsx(I,{kind:"ghost",icon:d.jsx(B,{icon:xn,transform:"grow-4"}),className:"tab-controls-btn tab-controls-btn-right",tooltip:"Scroll right",onClick:C,onMouseDown:ft,disabled:P}),d.jsx(I,{kind:"ghost",icon:d.jsx(B,{icon:Sn,transform:"grow-4"}),className:"btn-dashboard-list-menu btn-show-dashboard-list",tooltip:"Search open dashboards",onClick:gt,disabled:n.length<2,style:{visibility:l?"visible":"hidden",marginLeft:"auto"},children:d.jsx(Wt,{isShown:x,className:"dashboard-list-menu-popper",onExited:vt,options:{placement:"bottom-start"},closeOnBlur:!0,interactive:!0,children:d.jsx(ti,{tabs:n,onSelect:bt})})}),d.jsx(tt,{actions:[{action:()=>{f(!x)},shortcut:fe.OPEN_DASHBOARD_LIST,isGlobal:!0}]})]})}function di(t,e){var n=Yt(),i=c.useMemo(()=>new n.CoreClient(t,e),[n,t,e]);return c.useEffect(()=>()=>{i.disconnect()},[i]),i}var me=c.createContext(null);me.displayName="ClientContext";function Oo(t){var{serverUrl:e,options:n,children:i}=t,o=di(e,n);return d.jsx(me.Provider,{value:o,children:i})}function ci(){return V(me,"No Client available in useClient. Was code wrapped in ClientBootstrap or ClientContext.Provider?")}var ui={$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).
|
|
1
|
+
import{ab as wt,bu as xt,r as c,I as d,bv as St,a7 as Ot,K as q,bw as Et,L as Tt,U as fe,bx as Ct,M as $,by as Lt,bz as Rt,av as kt,aW as Ft,a8 as _t,a9 as Dt,bA as It,H as At,bB as tt,a3 as jt,a0 as Nt,bC as Ut}from"./vendor-CnD71-t1.js";import{G as $t,s as N,aY as R,K as F,t as Bt,B as I,au as nt,ar as Mt,Y as Wt,N as he,as as Yt,u as Gt,aL as Z,R as qt,aN as Ht,c2 as zt,bX as Kt,aZ as Xt,M as Qt,d4 as Jt,c3 as Vt,d5 as Zt,ce as en,cb as tn,d6 as nn,cc as rn,aa as on,a5 as an,a6 as sn,cU as ln,cX as we,aw as dn,d2 as cn,bf as un,ab as pn,d7 as j,P as ie,d3 as fn,d8 as hn,d9 as mn,da as xe,db as Se,dc as Oe,dd as Ee,I as yn,D as gn,a as Te}from"./ControlType-BR_1vsqN.js";import{w as bn,l as it,m as Ce,k as vn,T as Pn}from"./IrisGridShortcuts-DToFyOm3.js";import{k as wn,aJ as xn,aK as Sn,aL as On,e as En,M as Tn,b as Cn,aM as Ln,aN as Rn,c as kn,aD as rt,L as H,aG as Fn,N as me,s as _n,l as Dn}from"./index-DF-Xh2Oi.js";import{e as In,U as An,l as Le}from"./monaco-DaE0jI-i.js";function Re(t,e,n,i,r,a,s){try{var l=t[a](s),o=l.value}catch(u){return void n(u)}l.done?e(o):Promise.resolve(o).then(i,r)}function jn(t){return function(){var e=this,n=arguments;return new Promise(function(i,r){var a=t.apply(e,n);function s(o){Re(a,i,r,s,l,"next",o)}function l(o){Re(a,i,r,s,l,"throw",o)}s(void 0)})}}var Nn=[["api"],["client"],["dashboardData","*","connection"],["dashboardData","*","sessionWrapper"],["dashboardData","*","openedMap"],["layoutStorage"],["storage"]],ot=10;function Un(t){var e=new Map;return function(i,r){var a,s=[...(a=e.get(this))!==null&&a!==void 0?a:[],i];if(r===Object(r)&&e.set(r,[...s]),s.shift(),!$n(s,t))return r instanceof Map?Array.from(r.entries()):r}}function $n(t,e){for(var n=function(s){if(t.length===e[s].length&&t.every((l,o)=>e[s][o]==="*"||l===e[s][o]))return{v:!0}},i,r=0;r<e.length;r+=1)if(i=n(r),i)return i.v;return!1}function Bn(t){var e,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:ot,r=xt({maximumDepth:i});return(e=r(t,Un(n),2))!==null&&e!==void 0?e:""}function Mn(t){return JSON.stringify(t,null,2)}function Wn(t){var e=t.getFullYear(),n=String(t.getMonth()+1).padStart(2,"0"),i=String(t.getDate()).padStart(2,"0"),r=String(t.getHours()).padStart(2,"0"),a=String(t.getMinutes()).padStart(2,"0"),s=String(t.getSeconds()).padStart(2,"0");return"".concat(e,"-").concat(n,"-").concat(i,"-").concat(r).concat(a).concat(s)}function Yn(t,e,n){return ae.apply(this,arguments)}function ae(){return ae=jn(function*(t,e,n){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:Nn,r=arguments.length>4&&arguments[4]!==void 0?arguments[4]:"".concat(Wn(new Date),"_support_logs"),a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:ot,s=new wt,l=s.folder(r);l.file("console.txt",t.getFormattedHistory()),e!=null&&l.file("metadata.json",Mn(e)),n!=null&&l.file("redux.json",Bn(n,i,a));var o=yield s.generateAsync({type:"blob"}),u=document.createElement("a");u.href=URL.createObjectURL(o),u.download="".concat(r,".zip"),u.click()}),ae.apply(this,arguments)}function Pr(){var{selectedThemeKey:t,setSelectedThemeKey:e,themes:n}=$t(),i=c.useCallback(r=>{r!=null&&e("".concat(r))},[e]);return d.jsx(St,{label:"Pick a color scheme",items:n,selectedKey:t,onSelectionChange:i,children:r=>d.jsx(Ot,{children:r.name},r.themeKey)})}function wr(t){var{className:e,style:n}=t;return d.jsx("div",{className:q("dh-logo",e),style:n})}var Gn=["color","UNSAFE_style"];function ke(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,i)}return n}function X(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?ke(Object(n),!0).forEach(function(i){qn(t,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ke(Object(n)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(n,i))})}return t}function qn(t,e,n){return(e=Hn(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Hn(t){var e=zn(t,"string");return typeof e=="symbol"?e:e+""}function zn(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var i=n.call(t,e);if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Kn(t,e){if(t==null)return{};var n,i,r=Xn(t,e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(i=0;i<a.length;i++)n=a[i],e.indexOf(n)===-1&&{}.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function Xn(t,e){if(t==null)return{};var n={};for(var i in t)if({}.hasOwnProperty.call(t,i)){if(e.indexOf(i)!==-1)continue;n[i]=t[i]}return n}var Qn=c.forwardRef((t,e)=>{var{color:n,UNSAFE_style:i}=t,r=Kn(t,Gn),a=c.useMemo(()=>X(X({},i),{},{color:bn(n)}),[n,i]);return d.jsx(Et,X(X({},r),{},{ref:e,UNSAFE_style:a}))});Qn.displayName="Heading";function at(t,e,n){return(e=Jn(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Jn(t){var e=Vn(t,"string");return typeof e=="symbol"?e:e+""}function Vn(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var i=n.call(t,e);if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}class V extends c.Component{static getHeight(e){var n=e.scrollWidth-e.clientWidth;return e.scrollHeight-n}constructor(e){super(e),at(this,"nodeRef",fe.createRef()),this.handleEntered=this.handleEntered.bind(this)}handleEntered(){var e=this.nodeRef.current;if(e){e.style.height="";var{autoFocusOnShow:n}=this.props;if(n!==void 0&&n){var i=e.querySelector("input, select, textarea");i!=null&&i.focus()}}}handleEnter(){var e=this.nodeRef.current;e&&(e.style.height="0")}handleEntering(){var e=this.nodeRef.current;e&&(e.style.height="".concat(V.getHeight(e),"px"))}handleExiting(){var e=this.nodeRef.current;e&&(e.style.height="0")}handleExit(){var e=this.nodeRef.current;e&&(e.style.height="".concat(V.getHeight(e),"px"))}render(){var{children:e,className:n,in:i,"data-testid":r}=this.props;return d.jsx(Tt,{in:i,classNames:{enterActive:"collapsing",enterDone:"collapse show",exitActive:"collapsing",exitDone:"collapse"},onEnter:this.handleEnter,onEntering:this.handleEntering,onEntered:this.handleEntered,onExit:this.handleExit,onExiting:this.handleExiting,timeout:350,nodeRef:this.nodeRef,children:a=>d.jsx("div",{ref:this.nodeRef,className:q({collapse:a==="exited"},n),"data-testid":r,children:e})})}}at(V,"defaultProps",{className:"",autoFocusOnShow:!1,"data-testid":void 0});var xr={CYCLE_TO_NEXT_STACK:N.createAndAdd({id:"NAVIGATION.CYCLE_TO_NEXT_STACK",name:"Cycle To Next Stack",shortcut:[R.CTRL,F.SINGLE_QUOTE],macShortcut:[R.CMD,F.SINGLE_QUOTE],isEditable:!0}),CYCLE_TO_PREVIOUS_STACK:N.createAndAdd({id:"NAVIGATION.CYCLE_TO_PREVIOUS_STACK",name:"Cycle To Previous Stack",shortcut:[R.CTRL,F.SEMICOLON],macShortcut:[R.CMD,F.SEMICOLON],isEditable:!0}),CYCLE_TO_NEXT_TAB:N.createAndAdd({id:"NAVIGATION.CYCLE_TO_NEXT_TAB",name:"Cycle To Next Tab",shortcut:[R.CTRL,R.SHIFT,F.DOUBLE_QUOTE],macShortcut:[R.CMD,R.SHIFT,F.SINGLE_QUOTE],isEditable:!0}),CYCLE_TO_PREVIOUS_TAB:N.createAndAdd({id:"NAVIGATION.CYCLE_TO_PREVIOUS_TAB",name:"Cycle To Previous Tab",shortcut:[R.CTRL,R.SHIFT,F.COLON],macShortcut:[R.CMD,R.SHIFT,F.SEMICOLON],isEditable:!0}),CYCLE_TO_NEXT_DASHBOARD:N.createAndAdd({id:"NAVIGATION.CYCLE_TO_NEXT_DASHBOARD",name:"Cycle To Next Dashboard",shortcut:[R.CTRL,F.PERIOD],macShortcut:[R.CMD,F.PERIOD],isEditable:!0}),CYCLE_TO_PREVIOUS_DASHBOARD:N.createAndAdd({id:"NAVIGATION.CYCLE_TO_PREVIOUS_DASHBOARD",name:"Cycle To Previous Dashboard",shortcut:[R.CTRL,F.COMMA],macShortcut:[R.CMD,F.COMMA],isEditable:!0})};function Fe(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,i)}return n}function re(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Fe(Object(n),!0).forEach(function(i){Zn(t,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Fe(Object(n)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(n,i))})}return t}function Zn(t,e,n){return(e=ei(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function ei(t){var e=ti(t,"string");return typeof e=="symbol"?e:e+""}function ti(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var i=n.call(t,e);if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var st=c.memo(t=>{var{tab:e,onClose:n,onSelect:i,isActive:r,activeRef:a,index:s,isDraggable:l,contextActions:o,renderAfterTabContent:u}=t,{key:b,isClosable:h=n!=null,title:g,icon:m}=e,P;return m!=null&&(P=fe.isValidElement(m)?m:d.jsx($,{icon:m})),d.jsx(Ct,{draggableId:b,index:s,isDragDisabled:!l,children:(w,x)=>d.jsxs("div",{className:"context-menu-wrapper",ref:r?a:null,children:[d.jsxs("div",re(re(re({ref:w.innerRef},w.draggableProps),w.dragHandleProps),{},{className:q("btn btn-link btn-nav-tab",{active:r},{dragging:x.isDragging}),"data-testid":"btn-nav-tab-".concat(g),role:"tab",tabIndex:0,onAuxClick:p=>{h&&p.button===1&&p.buttons===0&&(n==null||n(b))},onClick:p=>{if(h&&p.button===1&&p.buttons===0){n==null||n(b);return}p.button===0&&p.buttons===0&&(p.target.focus(),i(b))},onKeyPress:p=>{p.key==="Enter"&&i(b)},children:[P,d.jsxs("span",{className:"btn-nav-tab-title",children:[g,d.jsx(Bt,{children:g})]}),u==null?void 0:u(e),h&&d.jsx(I,{kind:"ghost",className:"btn-nav-tab-close",onClick:p=>{n==null||n(b),p.stopPropagation(),p.preventDefault()},icon:wn,tooltip:"Close"})]})),d.jsx(nt,{actions:o})]})},b)});st.displayName="NavTab";function ni(t){var{onSelect:e,tabs:n=Mt}=t,[i,r]=c.useState(""),[a,s]=c.useState(0),l=c.useRef(null),o=c.useRef(null),u=c.useRef([]);c.useEffect(()=>{var p;(p=l.current)===null||p===void 0||p.focus()},[]),c.useEffect(()=>{s(0)},[i]),c.useEffect(()=>{if(a>=0&&u.current[a]){var p;(p=u.current[a])===null||p===void 0||p.scrollIntoView({behavior:"auto",block:"nearest"})}},[a]);var b=c.useCallback(p=>{r(p.target.value)},[]),h=c.useCallback(p=>{e(p)},[e]),g=c.useCallback(p=>{p.preventDefault()},[]),m=c.useMemo(()=>n.filter(p=>p.title.toLowerCase().includes(i.toLowerCase())),[i,n]).sort((p,k)=>{var S;return(S=p.title.localeCompare(k.title))!==null&&S!==void 0?S:0}),P=c.useCallback(p=>{if(p.key==="ArrowDown"&&m.length>0)p.preventDefault(),s(S=>S===-1?0:(S+1)%m.length);else if(p.key==="ArrowUp"&&m.length>0)p.preventDefault(),s(S=>S===-1?m.length-1:(S-1+m.length)%m.length);else if(p.key==="Enter"&&m.length>0){p.preventDefault();var k=a>=0?a:0;h(m[k])}else p.key==="Tab"&&p.preventDefault()},[m,a,h]),w=c.useMemo(()=>m.map((p,k)=>{var S;return d.jsx("li",{ref:O=>{u.current[k]=O},onMouseDown:g,children:d.jsxs(I,{kind:"ghost","data-testid":"dashboard-list-item-".concat((S=p.key)!==null&&S!==void 0?S:"","-button"),onClick:()=>h(p),className:a===k?"focused":"",style:{transition:"none"},children:[p.icon?d.jsx("span",{className:"dashboard-list-item-icon",children:fe.isValidElement(p.icon)?p.icon:d.jsx($,{icon:p.icon})}):null,p.title]})},p.key)}),[m,h,a,g]),x=c.useMemo(()=>w.length===0?d.jsx("span",{children:"No open dashboard found."}):null,[w]);return d.jsxs("div",{className:"dashboard-list-container d-flex flex-column",children:[d.jsx("div",{className:"dashboard-list-header",children:d.jsx(Wt,{value:i,placeholder:"Find open dashboard",endPlaceholder:he.OPEN_DASHBOARD_LIST.getDisplayText(),onChange:b,onKeyDown:P,ref:l})}),d.jsxs("ul",{className:"dashboard-list flex-grow-1",ref:o,children:[x&&d.jsx("li",{className:"dashboard-list-message",children:x}),!x&&w]})]})}function _e(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,i)}return n}function De(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?_e(Object(n),!0).forEach(function(i){ii(t,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):_e(Object(n)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(n,i))})}return t}function ii(t,e,n){return(e=ri(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function ri(t){var e=oi(t,"string");return typeof e=="symbol"?e:e+""}function oi(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var i=n.call(t,e);if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var ai=500,si=.01,li=5e-4;function Ie(t){return t.scrollLeft===0}function Ae(t){return Math.abs(t.scrollLeft+t.clientWidth-t.scrollWidth)<=1||t.scrollWidth===0}function di(t,e,n){var{isClosable:i=!1,key:r}=t,a=[];if(i&&n!=null){a.push({title:"Close",order:10,group:20,action:()=>{n(r)}});for(var s=!0,l=e.length-1;l>0&&e[l].key!==t.key;l-=1)if(e[l].isClosable===!0){s=!1;break}a.push({title:"Close to the Right",order:20,group:20,action:()=>{for(var o=e.length-1;o>0&&e[o].key!==r;o-=1)e[o].isClosable===!0&&n(e[o].key)},disabled:s}),a.push({title:"Close All",order:30,group:20,action:()=>{e.forEach(o=>{o.isClosable===!0&&n(o.key)})}})}return a}function Sr(t){var{activeKey:e,tabs:n,onSelect:i,onReorder:r,onClose:a,makeContextActions:s,renderAfterTabContent:l}=t,o=c.useRef(),[u,b]=c.useState(!0),[h,g]=c.useState(!1),[m,P]=c.useState(!0),[w,x]=c.useState(!0),p=c.useCallback(()=>{o.current!=null&&(o.current.clientWidth<o.current.scrollWidth&&n.length>0?b(!0):b(!1),P(Ie(o.current)),x(Ae(o.current)))},[n]);it(o.current,p);var k=c.useCallback(f=>{Ce.stopDragging(),f.destination&&(r==null||r(f.source.index,f.destination.index))},[r]),S=c.useCallback(()=>{if(o.current!=null){var f=Ie(o.current);f!==m&&P(f);var y=Ae(o.current);y!==w&&x(y)}},[m,w]),O=c.useRef({cancelClick:!1}),L=c.useCallback(()=>{if(!(o.current==null||O.current.cancelClick))for(var{children:f}=o.current,y=f.length-1;y>=0;y-=1){var v=f[y];if(v.offsetLeft<o.current.scrollLeft-5){v.scrollIntoView({behavior:"smooth",block:"nearest",inline:"start"});return}}},[]),C=c.useCallback(()=>{if(!(o.current==null||O.current.cancelClick))for(var{children:f}=o.current,y=0;y<f.length;y+=1){var v=f[y];if(v.offsetLeft+v.offsetWidth-5>o.current.scrollLeft+o.current.offsetWidth){v.scrollIntoView({behavior:"smooth",block:"nearest",inline:"end"});return}}},[]),B=c.useCallback(function(f,y){var v=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,E=arguments.length>3?arguments[3]:void 0,_=o.current;_!=null&&(O.current.cancelClick=!0,f==="left"?_.scrollLeft=y-v:f==="right"&&(_.scrollLeft=y+v),O.current.rAF=requestAnimationFrame(K=>{var ve=E??K,Pe=K-ve,ne=si*Pe+.5*li*Pe**2;ne=Math.min(ne,_.scrollWidth),B(f,y,ne,ve)}))},[]),M=c.useCallback(()=>{var{holdTimer:f,rAF:y}=O.current;f!=null&&(clearTimeout(f),O.current.holdTimer=void 0),y!=null&&(cancelAnimationFrame(y),O.current.rAF=void 0),window.removeEventListener("mouseup",M)},[]);c.useEffect(()=>()=>window.removeEventListener("mouseup",M),[M]);var z=c.useCallback(f=>{o.current!=null&&(O.current.holdTimer=window.setTimeout(B,ai,f,o.current.scrollLeft)),O.current.cancelClick=!1,window.addEventListener("mouseup",M)},[M,B]),ft=c.useCallback(()=>{z("left")},[z]),ht=c.useCallback(()=>{z("right")},[z]);c.useEffect(function(){var y,v=E=>{E.stopPropagation(),E.preventDefault();var _=E.currentTarget,K=Math.abs(E.deltaY)>Math.abs(E.deltaX)?E.deltaY:E.deltaX;_.scrollLeft+=kt(K,-30,30)};return(y=o.current)===null||y===void 0||y.addEventListener("wheel",v),()=>{var E;(E=o.current)===null||E===void 0||E.removeEventListener("wheel",v)}},[]);var mt=c.useMemo(()=>{var f=new Map;return n.forEach(y=>{var{key:v}=y,E=[()=>di(y,n,a),()=>{var _;return(_=s==null?void 0:s(y))!==null&&_!==void 0?_:[]}];f.set(v,E)}),f},[s,n,a]),te=c.useRef(null),yt=n.find(f=>f.key===e),gt=n.map((f,y)=>{var{key:v}=f,E=f===yt;return d.jsx(st,{tab:f,index:y,isActive:E,activeRef:te,onSelect:i,onClose:a,isDraggable:r!=null,contextActions:mt.get(v),renderAfterTabContent:l},v)});c.useEffect(function(){te.current!=null&&te.current.scrollIntoView({block:"nearest",inline:"nearest"})},[e]);var bt=()=>{g(!h)},vt=f=>{g(!1),i(f.key)},Pt=()=>{g(!1)};return d.jsxs("nav",{className:"nav-container",children:[u&&d.jsx(I,{kind:"ghost",icon:d.jsx($,{icon:xn,transform:"grow-4"}),className:"tab-controls-btn tab-controls-btn-left",tooltip:"Scroll left",onClick:L,onMouseDown:ft,disabled:m}),d.jsx(Lt,{onDragStart:Ce.startDragging,onDragEnd:k,children:d.jsx(Rt,{droppableId:"droppable-tab-navigation",direction:"horizontal",children:(f,y)=>d.jsxs("div",De(De({ref:v=>{v!=null&&(o.current=v,f.innerRef(v))}},f.droppableProps),{},{className:q("nav nav-tabs",{dragging:y.draggingFromThisWith}),role:"tablist",onScroll:S,children:[gt,f.placeholder]}))})}),u&&d.jsx(I,{kind:"ghost",icon:d.jsx($,{icon:Sn,transform:"grow-4"}),className:"tab-controls-btn tab-controls-btn-right",tooltip:"Scroll right",onClick:C,onMouseDown:ht,disabled:w}),d.jsx(I,{kind:"ghost",icon:d.jsx($,{icon:On,transform:"grow-4"}),className:"btn-dashboard-list-menu btn-show-dashboard-list",tooltip:"Search open dashboards",onClick:bt,disabled:n.length<2,style:{visibility:u?"visible":"hidden",marginLeft:"auto"},children:d.jsx(Yt,{isShown:h,className:"dashboard-list-menu-popper",onExited:Pt,options:{placement:"bottom-start"},closeOnBlur:!0,interactive:!0,children:d.jsx(ni,{tabs:n,onSelect:vt})})}),d.jsx(nt,{actions:[{action:()=>{g(!h)},shortcut:he.OPEN_DASHBOARD_LIST,isGlobal:!0}]})]})}function ci(t,e){var n=Gt(),i=c.useMemo(()=>new n.CoreClient(t,e),[n,t,e]);return c.useEffect(()=>()=>{i.disconnect()},[i]),i}var ye=c.createContext(null);ye.displayName="ClientContext";function Or(t){var{serverUrl:e,options:n,children:i}=t,r=ci(e,n);return d.jsx(ye.Provider,{value:r,children:i})}function ui(){return Z(ye,"No Client available in useClient. Was code wrapped in ClientBootstrap or ClientContext.Provider?")}var pi={$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).
|
|
2
2
|
|
|
3
3
|
Used by the formatter and when enforcing long-line violations (like \`E501\`) to determine the visual width of a tab.
|
|
4
4
|
|
|
@@ -78,5 +78,5 @@ foo, bar, quux = this_is_a_long_line(lion, hippo, lemur, bear) ''' pass \`\`\`
|
|
|
78
78
|
|
|
79
79
|
( 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.
|
|
80
80
|
|
|
81
|
-
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 Ae(t,e,n,i,o,r,s){try{var a=t[r](s),l=a.value}catch(u){return void n(u)}a.done?e(l):Promise.resolve(l).then(i,o)}function pi(t){return function(){var e=this,n=arguments;return new Promise(function(i,o){var r=t.apply(e,n);function s(l){Ae(r,i,o,s,a,"next",l)}function a(l){Ae(r,i,o,s,a,"throw",l)}s(void 0)})}}var st=In.parse("inmemory://dh-config/ruff-settings.json");function fi(){var{schemas:t=[]}=Ce.json.jsonDefaults.diagnosticsOptions;t.some(e=>e.uri==="json://ruff-schema")||Ce.json.jsonDefaults.setDiagnosticsOptions({schemas:[...t,{uri:"json://ruff-schema",fileMatch:[st.toString()],schema:ui}]})}function hi(){return ae.apply(this,arguments)}function ae(){return ae=pi(function*(){return yield Xt.initRuff(),"v".concat(Dt.version())}),ae.apply(this,arguments)}function Eo(t){var{text:e,isOpen:n,onClose:i,onSave:o,readOnly:r=!1,defaultSettings:s=Gt}=t,[a,l]=c.useState(!1),[u,x]=c.useState(!1),f=c.useRef(),v=c.useMemo(()=>JSON.stringify(s,null,2),[s]),{data:g}=bn(hi),[P]=c.useState(()=>Dn.createModel(e,"json",st)),T=c.useCallback(()=>{n&&(i(),f.current=void 0,P.dispose())},[n,i,P]),m=c.useCallback(()=>{if(n){try{var C,S;o(JSON.parse((C=(S=f.current)===null||S===void 0||(S=S.getModel())===null||S===void 0?void 0:S.getValue())!==null&&C!==void 0?C:""))}catch{}T()}},[n,T,o]),p=c.useCallback(()=>{On(P),P.setValue(v)},[P,v]),R=c.useCallback(C=>{var S;try{JSON.parse(C),l(!0)}catch{l(!1)}x(((S=f.current)===null||S===void 0||(S=S.getModel())===null||S===void 0?void 0:S.getValue())===v)},[v]),b=qt(R,500,{leading:!0}),F=c.useCallback(C=>{f.current=C,P.onDidChangeContent(()=>{b(P.getValue())}),fi(),b(P.getValue())},[b,P]);return n?d.jsxs(En,{isOpen:n,centered:!0,keyboard:!0,clickOutside:!1,toggle:T,size:"lg",className:"ruff-settings-modal",children:[d.jsxs(Tn,{closeButton:!1,children:[d.jsxs("span",{className:"settings-modal-title mr-auto",children:["Ruff ",g," Settings"]}),d.jsx(kt,{href:"https://docs.astral.sh/ruff/settings/",target:"_blank",children:d.jsx(I,{kind:"ghost",onClick:Ht,icon:Cn,children:"Settings Docs"})}),d.jsxs(Ft,{isDisabled:u,onPress:p,children:[d.jsx(_t,{children:d.jsx(B,{icon:Ln})}),d.jsx(vn,{children:"Reset to default"})]})]}),d.jsx(Rn,{style:{height:"80vh"},children:d.jsx(zt,{onEditorInitialized:F,settings:{readOnly:r,value:e,language:"json",folding:!0,padding:{bottom:16},lineNumbers:"on",overviewRulerLanes:0,model:P}})}),d.jsx(Kt,{children:r?d.jsx(I,{kind:"secondary","data-dismiss":"modal",onClick:T,children:"Close"}):d.jsxs(d.Fragment,{children:[d.jsx(I,{kind:"secondary","data-dismiss":"modal",onClick:T,children:"Cancel"}),d.jsx(I,{kind:"primary","data-dismiss":"modal",tooltip:a?void 0:"Cannot save invalid JSON",disabled:!a,onClick:m,children:"Save"})]})})]}):null}var To="io.deephaven.message.LoginOptions.request",mi="io.deephaven.message.SessionDetails.request",Co="io.deephaven.broadcast",yi="io.deephaven.broadcast.Login",gi="io.deephaven.broadcast.Logout";function Lo(t){return it(t)&&t.message===yi}function Ro(t){return it(t)&&t.message===gi}function bi(t,e,n){return(e=vi(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function vi(t){var e=Pi(t,"string");return typeof e=="symbol"?e:e+""}function Pi(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var i=n.call(t,e);if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}class wi extends Error{constructor(){super(...arguments),bi(this,"isNoConsolesError",!0)}}function xi(t){return t.isNoConsolesError}function je(t,e,n,i,o,r,s){try{var a=t[r](s),l=a.value}catch(u){return void n(u)}a.done?e(l):Promise.resolve(l).then(i,o)}function Z(t){return function(){var e=this,n=arguments;return new Promise(function(i,o){var r=t.apply(e,n);function s(l){je(r,i,o,s,a,"next",l)}function a(l){je(r,i,o,s,a,"throw",l)}s(void 0)})}}var W=q.module("SessionUtils");function Si(t,e,n){return se.apply(this,arguments)}function se(){return se=Z(function*(t,e,n){W.info("Getting console types...");var i=yield e.getConsoleTypes();if(i.length===0)throw new wi("No console types available");W.info("Available types:",i);var o=i[0];W.info("Starting session with type",o);var r=yield e.startSession(o),s={type:o,id:It()};return W.info("Console session established",s),{session:r,config:s,connection:e,details:n,dh:t}}),se.apply(this,arguments)}function ko(t,e,n){return W.info("createCoreClient",e),new t.CoreClient(e,n)}function Oi(t){return t!=null&&typeof t=="object"}function Ei(){return le.apply(this,arguments)}function le(){return le=Z(function*(){var t=yield kn(mi);if(!Oi(t))throw new Error("Unexpected session details response: ".concat(t));return t}),le.apply(this,arguments)}function Fo(){return de.apply(this,arguments)}function de(){return de=Z(function*(){var t=new URLSearchParams(window.location.search);switch(t.get("authProvider")){case"parent":return Ei()}return{}}),de.apply(this,arguments)}function _o(t,e,n){return ce.apply(this,arguments)}function ce(){return ce=Z(function*(t,e,n){var i;try{i=yield Si(t,e,n)}catch(o){if(!xi(o))throw o}return i}),ce.apply(this,arguments)}function Ne(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,i)}return n}function Ti(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Ne(Object(n),!0).forEach(function(i){Ci(t,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ne(Object(n)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(n,i))})}return t}function Ci(t,e,n){return(e=Li(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Li(t){var e=Ri(t,"string");return typeof e=="symbol"?e:e+""}function Ri(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var i=n.call(t,e);if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var ki=100,oe=()=>{},Fi=Object.freeze({});function _i(t){var{id:e="default",children:n,emptyDashboard:i,layoutConfig:o,layoutSettings:r=Fi,onLayoutConfigChange:s=oe,onGoldenLayoutChange:a=oe,onLayoutInitialized:l=oe,fallbackComponent:u=Qt,hydrate:x,dehydrate:f,panelWrapper:v}=t,g=c.useRef(null),[P,T]=c.useState(!1),[m,p]=c.useState();c.useEffect(function(){if(!g.current){p(void 0);return}var F=Ti({},Jt.makeDefaultLayout());F.settings===void 0&&(F.settings={}),Object.assign(F.settings,r),F.content=[];var C=new Vt(F,g.current),S=()=>{C.off("initialised",S),T(!0)};return C.on("initialised",S),u!=null&&C.setFallbackComponent(u),C.init(),p(C),a(C),()=>{C.destroy()}},[r,u,a,T,p]);var R=c.useMemo(()=>et(()=>{m!=null&&m.isInitialised&&(m==null||m.updateSize())},ki),[m]);return nt(g.current,R),d.jsxs("div",{className:"dashboard-container w-100 h-100",children:[d.jsx("div",{className:"w-100 h-100",ref:g}),P&&m&&d.jsx(Zt.Provider,{value:m,children:d.jsx(en.Provider,{value:e,children:d.jsx(tn,{children:d.jsx(nn,{emptyDashboard:i,id:e,layout:m,layoutConfig:o,onLayoutChange:s,onLayoutInitialized:l,hydrate:x,dehydrate:f,panelWrapper:v,children:n})})})})]})}var Di=["id","isActive","plugins"];function Ue(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,i)}return n}function $e(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Ue(Object(n),!0).forEach(function(i){Ii(t,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ue(Object(n)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(n,i))})}return t}function Ii(t,e,n){return(e=Ai(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Ai(t){var e=ji(t,"string");return typeof e=="symbol"?e:e+""}function ji(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var i=n.call(t,e);if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Ni(t,e){if(t==null)return{};var n,i,o=Ui(t,e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);for(i=0;i<r.length;i++)n=r[i],e.indexOf(n)===-1&&{}.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}function Ui(t,e){if(t==null)return{};var n={};for(var i in t)if({}.hasOwnProperty.call(t,i)){if(e.indexOf(i)!==-1)continue;n[i]=t[i]}return n}function $i(t){var{id:e,isActive:n,plugins:i}=t,o=Ni(t,Di),[r,s]=c.useState(n),a=At(),l=c.useCallback(u=>{a(e===on?rn({layoutConfig:u}):an(e,{layoutConfig:u}))},[e,a]);return!r&&n&&s(!0),r?d.jsx(_i,$e($e({id:e,onLayoutConfigChange:l},o),{},{children:i})):d.jsx(he,{"data-testid":"lazy-dashboard-loading"})}function Bi(t){var e=[...t.entries()].filter(n=>{var[,i]=n;return sn(i)||Pe(i)});return e.map(n=>{var[i,o]=n;if(Pe(o)){var{DashboardPlugin:r}=o;return d.jsx(r,{},i)}var{component:s}=o;return d.jsx(s,{},i)})}function Do(){var t=ln(),e=c.useMemo(()=>Bi(t),[t]);return e}var Io=c.createContext({}),Mi=c.createContext({});Mi.displayName="UserPermissionsOverrideContext";var lt=c.createContext(null);lt.displayName="UserContext";var dt=c.createContext(null);dt.displayName="ConnectionContext";function Be(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,i)}return n}function Me(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Be(Object(n),!0).forEach(function(i){Wi(t,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Be(Object(n)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(n,i))})}return t}function Wi(t,e,n){return(e=Yi(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Yi(t){var e=Gi(t,"string");return typeof e=="symbol"?e:e+""}function Gi(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var i=n.call(t,e);if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Ao(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return{action:()=>{Wn(_n,Me(Me({},t),{},{userAgent:navigator.userAgent}),Fn.getState())},shortcut:fe.EXPORT_LOGS,isGlobal:e}}function We(t,e,n,i,o,r,s){try{var a=t[r](s),l=a.value}catch(u){return void n(u)}a.done?e(l):Promise.resolve(l).then(i,o)}function qi(t){return function(){var e=this,n=arguments;return new Promise(function(i,o){var r=t.apply(e,n);function s(l){We(r,i,o,s,a,"next",l)}function a(l){We(r,i,o,s,a,"throw",l)}s(void 0)})}}var ye=c.createContext(null);ye.displayName="ServerConfigContext";function jo(t){var{children:e}=t,n=ci(),[i,o]=c.useState(),[r,s]=c.useState();c.useEffect(function(){var u=!1;function x(){return f.apply(this,arguments)}function f(){return f=qi(function*(){try{var v=yield n.getServerConfigValues();u||o(new Map(v))}catch(g){u||s(g)}}),f.apply(this,arguments)}return x(),()=>{u=!0}},[n]);var a=i==null;return a||r!=null?d.jsx(he,{"data-testid":"server-config-bootstrap-loading",isLoading:a&&r==null,errorMessage:dn(r)}):d.jsx(ye.Provider,{value:i,children:e})}function No(){return V(ye,"No server config available in useServerConfig. Was code wrapped in ServerConfigBootstrap or ServerConfigContext.Provider?")}function Ye(t,e,n,i,o,r,s){try{var a=t[r](s),l=a.value}catch(u){return void n(u)}a.done?e(l):Promise.resolve(l).then(i,o)}function Hi(t){return function(){var e=this,n=arguments;return new Promise(function(i,o){var r=t.apply(e,n);function s(l){Ye(r,i,o,s,a,"next",l)}function a(l){Ye(r,i,o,s,a,"throw",l)}s(void 0)})}}function Ge(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,i)}return n}function qe(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Ge(Object(n),!0).forEach(function(i){zi(t,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ge(Object(n)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(n,i))})}return t}function zi(t,e,n){return(e=Ki(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Ki(t){var e=Xi(t,"string");return typeof e=="symbol"?e:e+""}function Xi(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var i=n.call(t,e);if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Uo(t){var{dashboards:e,activeDashboard:n,onLayoutInitialized:i,onGoldenLayoutChange:o,plugins:r,emptyDashboard:s=d.jsx(he,{"data-testid":"app-dashboards-loading"})}=t,a=cn(),l=c.useCallback((u,x)=>{var{metadata:f}=u;try{if(f!=null)return qe(qe({fetch:function(){var v=Hi(function*(){return a(f)});function g(){return v.apply(this,arguments)}return g}()},u),{},{localDashboardId:x})}catch{}return un.hydrate(u,x)},[a]);return d.jsx("div",{className:"tab-content",children:e.map(u=>d.jsx("div",{className:G("tab-pane",{active:u.id===n}),children:d.jsx($i,{id:u.id,isActive:u.id===n,emptyDashboard:s,layoutConfig:u.layoutConfig,layoutSettings:u.layoutSettings,onLayoutInitialized:i,onGoldenLayoutChange:o,hydrate:l,plugins:r},u.key)},u.id))})}function $o(){return V(dt,"No IdeConnection available in useConnection. Was code wrapped in ConnectionContext.Provider?")}function Bo(){return V(lt,"No user available in useUser. Was code wrapped in UserBootstrap or UserContext.Provider?")}function He(t,e,n,i,o,r,s){try{var a=t[r](s),l=a.value}catch(u){return void n(u)}a.done?e(l):Promise.resolve(l).then(i,o)}function Qi(t){return function(){var e=this,n=arguments;return new Promise(function(i,o){var r=t.apply(e,n);function s(l){He(r,i,o,s,a,"next",l)}function a(l){He(r,i,o,s,a,"throw",l)}s(void 0)})}}function D(t,e,n){return(e=Ji(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Ji(t){var e=Vi(t,"string");return typeof e=="symbol"?e:e+""}function Vi(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var i=n.call(t,e);if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var M=q.module("GrpcFileStorageTable");class Y{constructor(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:n;D(this,"storageService",void 0),D(this,"baseRoot",void 0),D(this,"root",void 0),D(this,"currentSize",0),D(this,"currentViewport",void 0),D(this,"listeners",[]),D(this,"viewportUpdatePromise",void 0),D(this,"currentViewportData",void 0),D(this,"childTables",new Map),this.storageService=e,this.baseRoot=n,this.root=i,i===n&&(this.doRefresh=jt(this.doRefresh.bind(this),Y.REFRESH_DEBOUNCE))}removeBaseRoot(e){return N.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 i=e.split("/"),o=i.shift();if((o===void 0||o==="")&&(o=i.shift()),o===void 0||o==="")throw new Error("Invalid path: ".concat(e));var r=i.join("/");if(n){if(!this.childTables.has(o)){var s=new Y(this.storageService,this.baseRoot,"".concat(this.root,"/").concat(o));this.childTables.set(o,s)}if(r){var a=this.childTables.get(o);a==null||a.setExpanded(r,n)}}else if(this.childTables.has(o))if(r){var l=this.childTables.get(o);l==null||l.setExpanded(r,n)}else this.childTables.delete(o);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){M.debug2("doRefresh",this.root),e(this.fetchData())}refresh(){var e;M.debug2("refresh",this.root),(e=this.viewportUpdatePromise)===null||e===void 0||e.cancel();var n=new Promise(o=>{this.doRefresh(o)}),i=ne.makeCancelable(n.then(o=>{if(this.viewportUpdatePromise!==i)throw new pn;return this.currentViewportData=o,this.sendUpdate(),o}));i.catch(o=>{ne.isCanceled(o)||M.error("Error updating viewport",o)}),this.viewportUpdatePromise=i}refreshInternal(){try{this.refresh()}catch(e){ne.isCanceled(e)||M.error("Unable to refresh data",e)}}fetchData(){var e=this;return Qi(function*(){var{currentViewport:n}=e;if(!n)throw new Error("No viewport set");for(var i=yield e.storageService.listItems(e.root),o=i.map(f=>({type:f.type,filename:e.removeBaseRoot(f.filename),basename:f.basename,id:e.removeBaseRoot(f.filename),isExpanded:f.type==="directory"?e.childTables.has(f.basename):void 0})).sort((f,v)=>f.type!==v.type?f.type==="directory"?-1:1:f.basename.localeCompare(v.basename)),r=0;r<o.length;r+=1){var s=o[r],{basename:a,filename:l}=s;if(l===e.removeBaseRoot("".concat(e.root,"/").concat(a))&&s.type==="directory"){var u=e.childTables.get(a);if(u!=null){u.setViewport({top:0,bottom:n.bottom-r});var x=yield u.getViewportData();o.splice(r+1,0,...x.items)}}}return e.currentSize=o.length,M.debug2(e.root,"items",o,n),o=o.slice(n.top,n.bottom),{items:o,offset:n.top}})()}sendUpdate(){for(var e,{listeners:n}=this,i=(e=this.currentViewportData)!==null&&e!==void 0?e:{items:[],offset:0},o=0;o<n.length;o+=1)n[o](i)}}D(Y,"REFRESH_DEBOUNCE",50);function ze(t,e,n,i,o,r,s){try{var a=t[r](s),l=a.value}catch(u){return void n(u)}a.done?e(l):Promise.resolve(l).then(i,o)}function A(t){return function(){var e=this,n=arguments;return new Promise(function(i,o){var r=t.apply(e,n);function s(l){ze(r,i,o,s,a,"next",l)}function a(l){ze(r,i,o,s,a,"throw",l)}s(void 0)})}}function $(t,e,n){return(e=Zi(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Zi(t){var e=eo(t,"string");return typeof e=="symbol"?e:e+""}function eo(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var i=n.call(t,e);if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var to=q.module("GrpcFileStorage");class ge{constructor(e,n){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"";$(this,"dh",void 0),$(this,"storageService",void 0),$(this,"tables",[]),$(this,"root",void 0),$(this,"refreshTables",et(()=>{this.tables.forEach(o=>o.refresh())},ge.REFRESH_THROTTLE)),this.dh=e,this.storageService=n,this.root=i}removeRoot(e){return N.removeRoot(this.root,e)}addRoot(e){return N.addRoot(this.root,e)}createDirectory(e){var n=this;return A(function*(){return yield n.storageService.createDirectory(n.addRoot(e)),n.refreshTables(),{type:"directory",id:e,filename:e,basename:N.getBaseName(e)}})()}getTable(){var e=this;return A(function*(){var n=new Y(e.storageService,e.root);return e.tables.push(n),n})()}saveFile(e){var n=this;return A(function*(){var i=n.dh.storage.FileContents.text(e.content);return yield n.storageService.saveFile(n.addRoot(e.filename),i,!0),n.refreshTables(),e})()}loadFile(e){var n=this;return A(function*(){var i=yield n.storageService.loadFile(n.addRoot(e)),o=yield i.text();return{filename:e,basename:N.getBaseName(e),content:o}})()}copyFile(e,n){var i=this;return A(function*(){var o=yield i.storageService.loadFile(i.addRoot(e));yield i.storageService.saveFile(i.addRoot(n),o,!1),i.refreshTables()})()}deleteFile(e){var n=this;return A(function*(){yield n.storageService.deleteItem(n.addRoot(e)),n.refreshTables()})()}moveFile(e,n){var i=this;return A(function*(){yield i.storageService.moveItem(i.addRoot(e),i.addRoot(n)),i.refreshTables()})()}info(e){var n=this;return A(function*(){var i=yield n.storageService.listItems(n.addRoot(N.getPath(e)),N.getBaseName(e));if(i.length===0)throw new fn;if(i.length>1)throw to.error("More than one matching file found, should never happen.",i),new Error("More than one matching file found");var o=i[0];if(!hn(o.type))throw new Error("Unexpected file type: ".concat(o.type));return{filename:n.removeRoot(o.filename),basename:o.basename,id:n.removeRoot(o.filename),type:o.type}})()}}$(ge,"REFRESH_THROTTLE",150);function Ke(t,e,n,i,o,r,s){try{var a=t[r](s),l=a.value}catch(u){return void n(u)}a.done?e(l):Promise.resolve(l).then(i,o)}function Xe(t){return function(){var e=this,n=arguments;return new Promise(function(i,o){var r=t.apply(e,n);function s(l){Ke(r,i,o,s,a,"next",l)}function a(l){Ke(r,i,o,s,a,"throw",l)}s(void 0)})}}function Qe(t,e,n){return(e=no(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function no(t){var e=io(t,"string");return typeof e=="symbol"?e:e+""}function io(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var i=n.call(t,e);if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}class Mo{constructor(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";Qe(this,"storageService",void 0),Qe(this,"root",void 0),this.storageService=e,this.root=n}getLayouts(){var e=this;return Xe(function*(){var n=yield e.storageService.listItems(e.root,"*.json");return n.map(i=>i.basename)})()}getLayout(e){var n=this;return Xe(function*(){var i=yield n.storageService.loadFile("".concat(n.root,"/").concat(e)),o=yield i.text();return JSON.parse(o)})()}}function oo(t){return t.version===2}function ro(t){return Array.isArray(t)}function Je(t,e,n,i,o,r,s){try{var a=t[r](s),l=a.value}catch(u){return void n(u)}a.done?e(l):Promise.resolve(l).then(i,o)}function ao(t){return function(){var e=this,n=arguments;return new Promise(function(i,o){var r=t.apply(e,n);function s(l){Je(r,i,o,s,a,"next",l)}function a(l){Je(r,i,o,s,a,"throw",l)}s(void 0)})}}var X=q.module("UserLayoutUtils"),so={layoutConfig:[{type:"column",content:[{type:"row",height:40,content:[{type:"stack",content:[{type:"react-component",component:we.COMPONENT,title:we.TITLE,isClosable:!1},{type:"react-component",component:xe.COMPONENT,title:xe.TITLE,isClosable:!1}]},{type:"stack",width:25,content:[{type:"react-component",component:Se.COMPONENT,title:Se.TITLE,isClosable:!1},{type:"react-component",component:Oe.COMPONENT,title:Oe.TITLE,isClosable:!1}]}]},{type:"row",content:[{type:"stack",title:"Notebooks",content:[]}]}]}],links:[],filterSets:[],version:2},lo={layoutConfig:[],links:[],filterSets:[],version:2};function ct(t){if(oo(t))return t;if(ro(t)){var e=t;return{layoutConfig:e,links:[],filterSets:[],version:2}}throw new Error("Unexpected layout import format: ".concat(t))}function co(t){return ue.apply(this,arguments)}function ue(){return ue=ao(function*(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;try{var n=yield t.getLayouts();if(n.length>0)try{var i=yield t.getLayout(n[0]);return ct(i)}catch(o){X.error("Unable to load layout",n[0],":",o),X.warn("No valid layouts found, falling back to default layout")}}catch(o){X.error("Unable to fetch layout list",o),X.warn("Falling back to default layout")}return e?so:lo}),ue.apply(this,arguments)}function uo(t){var{filterSets:e,layoutConfig:n,links:i,pluginDataMap:o}=t,r={filterSets:e,layoutConfig:n,links:i,pluginDataMap:o,version:2};return r}const po={exportLayout:uo,getDefaultLayout:co,normalizeLayout:ct};function Ve(t,e,n,i,o,r,s){try{var a=t[r](s),l=a.value}catch(u){return void n(u)}a.done?e(l):Promise.resolve(l).then(i,o)}function Q(t){return function(){var e=this,n=arguments;return new Promise(function(i,o){var r=t.apply(e,n);function s(l){Ve(r,i,o,s,a,"next",l)}function a(l){Ve(r,i,o,s,a,"throw",l)}s(void 0)})}}function ut(t,e,n){return(e=fo(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function fo(t){var e=ho(t,"string");return typeof e=="symbol"?e:e+""}function ho(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var i=n.call(t,e);if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var Ze=q.module("LocalWorkspaceStorage");class E{static getBooleanServerConfig(e,n){var i,o;if((e==null||(i=e.get(n))===null||i===void 0?void 0:i.toLowerCase())==="true")return!0;if((e==null||(o=e.get(n))===null||o===void 0?void 0:o.toLowerCase())==="false")return!1}static getJSONServerConfig(e,n){var i=e==null?void 0:e.get(n);if(i!=null)try{return JSON.parse(i)}catch{Ze.error("Unable to parse JSON server config for key ".concat(n,". Value: ").concat(i));return}}static makeDefaultWorkspaceSettings(e){var n={defaultDateTimeFormat:Ee.DEFAULT_DATETIME_FORMAT_STRING,formatter:[],timeZone:Ee.DEFAULT_TIME_ZONE_ID,showTimeZone:!1,showTSeparator:!0,disableMoveConfirmation:!1,defaultDecimalFormatOptions:{defaultFormatString:yn.DEFAULT_FORMAT_STRING},defaultIntegerFormatOptions:{defaultFormatString:mn.DEFAULT_FORMAT_STRING},truncateNumbersWithPound:!1,showEmptyStrings:!0,showNullStrings:!0,showExtraGroupColumn:!0,notebookSettings:{isMinimapEnabled:!1,formatOnSave:!1,python:{linter:{isEnabled:!0}}},webgl:!0,webglEditable:!0,gridDensity:"regular"},i={defaultDateTimeFormat:e==null?void 0:e.get("dateTimeFormat"),formatter:[],timeZone:e==null?void 0:e.get("timeZone"),showTimeZone:E.getBooleanServerConfig(e,"showTimeZone"),showTSeparator:E.getBooleanServerConfig(e,"showTSeparator"),disableMoveConfirmation:E.getBooleanServerConfig(e,"disableMoveConfirmation"),defaultDecimalFormatOptions:(e==null?void 0:e.get("decimalFormat"))!==void 0?{defaultFormatString:e==null?void 0:e.get("decimalFormat")}:void 0,defaultIntegerFormatOptions:(e==null?void 0:e.get("integerFormat"))!==void 0?{defaultFormatString:e==null?void 0:e.get("integerFormat")}:void 0,truncateNumbersWithPound:E.getBooleanServerConfig(e,"truncateNumbersWithPound"),showEmptyStrings:E.getBooleanServerConfig(e,"showEmptyStrings"),showNullStrings:E.getBooleanServerConfig(e,"showNullStrings"),showExtraGroupColumn:E.getBooleanServerConfig(e,"showExtraGroupColumn"),notebookSettings:{isMinimapEnabled:E.getBooleanServerConfig(e,"web.user.notebookSettings.isMinimapEnabled"),formatOnSave:E.getBooleanServerConfig(e,"web.user.notebookSettings.formatOnSave"),python:{linter:{isEnabled:E.getBooleanServerConfig(e,"web.user.notebookSettings.python.linter.isEnabled"),config:E.getJSONServerConfig(e,"web.user.notebookSettings.python.linter.config")}}},webgl:E.getBooleanServerConfig(e,"web.webgl"),webglEditable:E.getBooleanServerConfig(e,"web.webgl.editable")};return Nt({},n,i)}static makeWorkspaceData(e,n){return Q(function*(){var{filterSets:i,links:o,layoutConfig:r,pluginDataMap:s={}}=yield po.getDefaultLayout(e,n==null?void 0:n.isConsoleAvailable);return{settings:{},layoutConfig:r,closed:[{}],links:o,filterSets:i,pluginDataMap:s}})()}static makeDefaultWorkspace(e,n){return Q(function*(){return{data:yield E.makeWorkspaceData(e,n)}})()}constructor(e){ut(this,"layoutStorage",void 0),this.layoutStorage=e}load(e){var n=this;return Q(function*(){try{var i,o=JSON.parse((i=localStorage.getItem(E.STORAGE_KEY))!==null&&i!==void 0?i:"");return o}catch{return Ze.info("Unable to load workspace data, initializing to default data"),E.makeDefaultWorkspace(n.layoutStorage,e)}})()}save(e){return Q(function*(){return localStorage.setItem(E.STORAGE_KEY,JSON.stringify(e)),e})()}}ut(E,"STORAGE_KEY","deephaven.WorkspaceStorage");export{Uo as A,Co as B,J as C,ti as D,Mi as E,lt as F,Mo as G,Xn as H,Io as I,dt as J,jo as K,wo as L,Y as M,xo as N,oo as O,ro as P,so as Q,Eo as R,mi as S,Po as T,po as U,lo as V,ct as W,co as X,uo as Y,gi as a,So as b,Ao as c,$o as d,Wn as e,No as f,Bi as g,Bo as h,Fo as i,ge as j,E as k,_o as l,Oo as m,me as n,yi as o,To as p,wi as q,ko as r,Si as s,Lo as t,ci as u,Ro as v,xi as w,_i as x,$i as y,Do as z};
|
|
82
|
-
//# sourceMappingURL=LocalWorkspaceStorage-
|
|
81
|
+
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 je(t,e,n,i,r,a,s){try{var l=t[a](s),o=l.value}catch(u){return void n(u)}l.done?e(o):Promise.resolve(o).then(i,r)}function fi(t){return function(){var e=this,n=arguments;return new Promise(function(i,r){var a=t.apply(e,n);function s(o){je(a,i,r,s,l,"next",o)}function l(o){je(a,i,r,s,l,"throw",o)}s(void 0)})}}var lt=An.parse("inmemory://dh-config/ruff-settings.json");function hi(){var{schemas:t=[]}=Le.json.jsonDefaults.diagnosticsOptions;t.some(e=>e.uri==="json://ruff-schema")||Le.json.jsonDefaults.setDiagnosticsOptions({schemas:[...t,{uri:"json://ruff-schema",fileMatch:[lt.toString()],schema:pi}]})}function mi(){return se.apply(this,arguments)}function se(){return se=fi(function*(){return yield Qt.initRuff(),"v".concat(It.version())}),se.apply(this,arguments)}function Er(t){var{text:e,isOpen:n,onClose:i,onSave:r,readOnly:a=!1,defaultSettings:s=qt}=t,[l,o]=c.useState(!1),[u,b]=c.useState(!1),h=c.useRef(),g=c.useMemo(()=>JSON.stringify(s,null,2),[s]),{data:m}=vn(mi),[P]=c.useState(()=>In.createModel(e,"json",lt)),w=c.useCallback(()=>{n&&(i(),h.current=void 0,P.dispose())},[n,i,P]),x=c.useCallback(()=>{if(n){try{var L,C;r(JSON.parse((L=(C=h.current)===null||C===void 0||(C=C.getModel())===null||C===void 0?void 0:C.getValue())!==null&&L!==void 0?L:""))}catch{}w()}},[n,w,r]),p=c.useCallback(()=>{En(P),P.setValue(g)},[P,g]),k=c.useCallback(L=>{var C;try{JSON.parse(L),o(!0)}catch{o(!1)}b(((C=h.current)===null||C===void 0||(C=C.getModel())===null||C===void 0?void 0:C.getValue())===g)},[g]),S=Ht(k,500,{leading:!0}),O=c.useCallback(L=>{h.current=L,P.onDidChangeContent(()=>{S(P.getValue())}),hi(),S(P.getValue())},[S,P]);return n?d.jsxs(Tn,{isOpen:n,centered:!0,keyboard:!0,clickOutside:!1,toggle:w,size:"lg",className:"ruff-settings-modal",children:[d.jsxs(Cn,{closeButton:!1,children:[d.jsxs("span",{className:"settings-modal-title mr-auto",children:["Ruff ",m," Settings"]}),d.jsx(Ft,{href:"https://docs.astral.sh/ruff/settings/",target:"_blank",children:d.jsx(I,{kind:"ghost",onClick:zt,icon:Ln,children:"Settings Docs"})}),d.jsxs(_t,{isDisabled:u,onPress:p,children:[d.jsx(Dt,{children:d.jsx($,{icon:Rn})}),d.jsx(Pn,{children:"Reset to default"})]})]}),d.jsx(kn,{style:{height:"80vh"},children:d.jsx(Kt,{onEditorInitialized:O,settings:{readOnly:a,value:e,language:"json",folding:!0,padding:{bottom:16},lineNumbers:"on",overviewRulerLanes:0,model:P}})}),d.jsx(Xt,{children:a?d.jsx(I,{kind:"secondary","data-dismiss":"modal",onClick:w,children:"Close"}):d.jsxs(d.Fragment,{children:[d.jsx(I,{kind:"secondary","data-dismiss":"modal",onClick:w,children:"Cancel"}),d.jsx(I,{kind:"primary","data-dismiss":"modal",tooltip:l?void 0:"Cannot save invalid JSON",disabled:!l,onClick:x,children:"Save"})]})})]}):null}var Tr="io.deephaven.message.LoginOptions.request",yi="io.deephaven.message.SessionDetails.request",Cr="io.deephaven.broadcast",gi="io.deephaven.broadcast.Login",bi="io.deephaven.broadcast.Logout";function Lr(t){return rt(t)&&t.message===gi}function Rr(t){return rt(t)&&t.message===bi}function vi(t,e,n){return(e=Pi(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Pi(t){var e=wi(t,"string");return typeof e=="symbol"?e:e+""}function wi(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var i=n.call(t,e);if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}class xi extends Error{constructor(){super(...arguments),vi(this,"isNoConsolesError",!0)}}function Si(t){return t.isNoConsolesError}function Ne(t,e,n,i,r,a,s){try{var l=t[a](s),o=l.value}catch(u){return void n(u)}l.done?e(o):Promise.resolve(o).then(i,r)}function ee(t){return function(){var e=this,n=arguments;return new Promise(function(i,r){var a=t.apply(e,n);function s(o){Ne(a,i,r,s,l,"next",o)}function l(o){Ne(a,i,r,s,l,"throw",o)}s(void 0)})}}var Y=H.module("SessionUtils");function Oi(t,e,n){return le.apply(this,arguments)}function le(){return le=ee(function*(t,e,n){Y.info("Getting console types...");var i=yield e.getConsoleTypes();if(i.length===0)throw new xi("No console types available");Y.info("Available types:",i);var r=i[0];Y.info("Starting session with type",r);var a=yield e.startSession(r),s={type:r,id:At()};return Y.info("Console session established",s),{session:a,config:s,connection:e,details:n,dh:t}}),le.apply(this,arguments)}function kr(t,e,n){return Y.info("createCoreClient",e),new t.CoreClient(e,n)}function Ei(t){return t!=null&&typeof t=="object"}function Ti(){return de.apply(this,arguments)}function de(){return de=ee(function*(){var t=yield Fn(yi);if(!Ei(t))throw new Error("Unexpected session details response: ".concat(t));return t}),de.apply(this,arguments)}function Fr(){return ce.apply(this,arguments)}function ce(){return ce=ee(function*(){var t=new URLSearchParams(window.location.search);switch(t.get("authProvider")){case"parent":return Ti()}return{}}),ce.apply(this,arguments)}function _r(t,e,n){return ue.apply(this,arguments)}function ue(){return ue=ee(function*(t,e,n){var i;try{i=yield Oi(t,e,n)}catch(r){if(!Si(r))throw r}return i}),ue.apply(this,arguments)}function Ue(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,i)}return n}function Ci(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Ue(Object(n),!0).forEach(function(i){Li(t,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ue(Object(n)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(n,i))})}return t}function Li(t,e,n){return(e=Ri(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Ri(t){var e=ki(t,"string");return typeof e=="symbol"?e:e+""}function ki(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var i=n.call(t,e);if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var Fi=100,oe=()=>{},_i=Object.freeze({});function Di(t){var{id:e="default",children:n,emptyDashboard:i,layoutConfig:r,layoutSettings:a=_i,onLayoutConfigChange:s=oe,onGoldenLayoutChange:l=oe,onLayoutInitialized:o=oe,fallbackComponent:u=Jt,hydrate:b,dehydrate:h,panelWrapper:g}=t,m=c.useRef(null),[P,w]=c.useState(!1),[x,p]=c.useState();c.useEffect(function(){if(!m.current){p(void 0);return}var O=Ci({},Vt.makeDefaultLayout());O.settings===void 0&&(O.settings={}),Object.assign(O.settings,a),O.content=[];var L=new Zt(O,m.current),C=()=>{L.off("initialised",C),w(!0)};return L.on("initialised",C),u!=null&&L.setFallbackComponent(u),L.init(),p(L),l(L),()=>{L.destroy()}},[a,u,l,w,p]);var k=c.useMemo(()=>tt(()=>{x!=null&&x.isInitialised&&(x==null||x.updateSize())},Fi),[x]);return it(m.current,k),d.jsxs("div",{className:"dashboard-container w-100 h-100",children:[d.jsx("div",{className:"w-100 h-100",ref:m}),P&&x&&d.jsx(en.Provider,{value:x,children:d.jsx(tn.Provider,{value:e,children:d.jsx(nn,{children:d.jsx(rn,{emptyDashboard:i,id:e,layout:x,layoutConfig:r,onLayoutChange:s,onLayoutInitialized:o,hydrate:b,dehydrate:h,panelWrapper:g,children:n})})})})]})}var Ii=["id","isActive","plugins"];function $e(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,i)}return n}function Be(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?$e(Object(n),!0).forEach(function(i){Ai(t,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):$e(Object(n)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(n,i))})}return t}function Ai(t,e,n){return(e=ji(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function ji(t){var e=Ni(t,"string");return typeof e=="symbol"?e:e+""}function Ni(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var i=n.call(t,e);if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Ui(t,e){if(t==null)return{};var n,i,r=$i(t,e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(i=0;i<a.length;i++)n=a[i],e.indexOf(n)===-1&&{}.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function $i(t,e){if(t==null)return{};var n={};for(var i in t)if({}.hasOwnProperty.call(t,i)){if(e.indexOf(i)!==-1)continue;n[i]=t[i]}return n}function Bi(t){var{id:e,isActive:n,plugins:i}=t,r=Ui(t,Ii),[a,s]=c.useState(n),l=jt(),o=c.useCallback(u=>{l(e===on?an({layoutConfig:u}):sn(e,{layoutConfig:u}))},[e,l]);return!a&&n&&s(!0),a?d.jsx(Di,Be(Be({id:e,onLayoutConfigChange:o},r),{},{children:i})):d.jsx(me,{"data-testid":"lazy-dashboard-loading"})}function Mi(t){var e=[...t.entries()].filter(n=>{var[,i]=n;return ln(i)||we(i)});return e.map(n=>{var[i,r]=n;if(we(r)){var{DashboardPlugin:a}=r;return d.jsx(a,{},i)}var{component:s}=r;return d.jsx(s,{},i)})}function Dr(){var t=dn(),e=c.useMemo(()=>Mi(t),[t]);return e}var Ir=c.createContext({}),Wi=c.createContext({});Wi.displayName="UserPermissionsOverrideContext";var dt=c.createContext(null);dt.displayName="UserContext";var ct=c.createContext(null);ct.displayName="ConnectionContext";function Me(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,i)}return n}function We(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Me(Object(n),!0).forEach(function(i){Yi(t,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Me(Object(n)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(n,i))})}return t}function Yi(t,e,n){return(e=Gi(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Gi(t){var e=qi(t,"string");return typeof e=="symbol"?e:e+""}function qi(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var i=n.call(t,e);if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Ar(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return{action:()=>{Yn(Dn,We(We({},t),{},{userAgent:navigator.userAgent}),_n.getState())},shortcut:he.EXPORT_LOGS,isGlobal:e}}function Ye(t,e,n,i,r,a,s){try{var l=t[a](s),o=l.value}catch(u){return void n(u)}l.done?e(o):Promise.resolve(o).then(i,r)}function Hi(t){return function(){var e=this,n=arguments;return new Promise(function(i,r){var a=t.apply(e,n);function s(o){Ye(a,i,r,s,l,"next",o)}function l(o){Ye(a,i,r,s,l,"throw",o)}s(void 0)})}}var ge=c.createContext(null);ge.displayName="ServerConfigContext";function jr(t){var{children:e}=t,n=ui(),[i,r]=c.useState(),[a,s]=c.useState();c.useEffect(function(){var u=!1;function b(){return h.apply(this,arguments)}function h(){return h=Hi(function*(){try{var g=yield n.getServerConfigValues();u||r(new Map(g))}catch(m){u||s(m)}}),h.apply(this,arguments)}return b(),()=>{u=!0}},[n]);var l=i==null;return l||a!=null?d.jsx(me,{"data-testid":"server-config-bootstrap-loading",isLoading:l&&a==null,errorMessage:cn(a)}):d.jsx(ge.Provider,{value:i,children:e})}function Nr(){return Z(ge,"No server config available in useServerConfig. Was code wrapped in ServerConfigBootstrap or ServerConfigContext.Provider?")}function Ge(t,e,n,i,r,a,s){try{var l=t[a](s),o=l.value}catch(u){return void n(u)}l.done?e(o):Promise.resolve(o).then(i,r)}function zi(t){return function(){var e=this,n=arguments;return new Promise(function(i,r){var a=t.apply(e,n);function s(o){Ge(a,i,r,s,l,"next",o)}function l(o){Ge(a,i,r,s,l,"throw",o)}s(void 0)})}}function qe(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,i)}return n}function He(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?qe(Object(n),!0).forEach(function(i){Ki(t,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):qe(Object(n)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(n,i))})}return t}function Ki(t,e,n){return(e=Xi(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Xi(t){var e=Qi(t,"string");return typeof e=="symbol"?e:e+""}function Qi(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var i=n.call(t,e);if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Ur(t){var{dashboards:e,activeDashboard:n,onLayoutInitialized:i,onGoldenLayoutChange:r,plugins:a,emptyDashboard:s=d.jsx(me,{"data-testid":"app-dashboards-loading"})}=t,l=un(),o=c.useCallback((u,b)=>{var{metadata:h}=u;try{if(h!=null)return He(He({fetch:function(){var g=zi(function*(){return l(h)});function m(){return g.apply(this,arguments)}return m}()},u),{},{localDashboardId:b})}catch{}return pn.hydrate(u,b)},[l]);return d.jsx("div",{className:"tab-content",children:e.map(u=>d.jsx("div",{className:q("tab-pane",{active:u.id===n}),children:d.jsx(Bi,{id:u.id,isActive:u.id===n,emptyDashboard:s,layoutConfig:u.layoutConfig,layoutSettings:u.layoutSettings,onLayoutInitialized:i,onGoldenLayoutChange:r,hydrate:o,plugins:a},u.key)},u.id))})}function $r(){return Z(ct,"No IdeConnection available in useConnection. Was code wrapped in ConnectionContext.Provider?")}function Br(){return Z(dt,"No user available in useUser. Was code wrapped in UserBootstrap or UserContext.Provider?")}function ze(t,e,n,i,r,a,s){try{var l=t[a](s),o=l.value}catch(u){return void n(u)}l.done?e(o):Promise.resolve(o).then(i,r)}function Ji(t){return function(){var e=this,n=arguments;return new Promise(function(i,r){var a=t.apply(e,n);function s(o){ze(a,i,r,s,l,"next",o)}function l(o){ze(a,i,r,s,l,"throw",o)}s(void 0)})}}function D(t,e,n){return(e=Vi(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Vi(t){var e=Zi(t,"string");return typeof e=="symbol"?e:e+""}function Zi(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var i=n.call(t,e);if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var W=H.module("GrpcFileStorageTable");class G{constructor(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:n;D(this,"storageService",void 0),D(this,"baseRoot",void 0),D(this,"root",void 0),D(this,"currentSize",0),D(this,"currentViewport",void 0),D(this,"listeners",[]),D(this,"viewportUpdatePromise",void 0),D(this,"currentViewportData",void 0),D(this,"childTables",new Map),this.storageService=e,this.baseRoot=n,this.root=i,i===n&&(this.doRefresh=Nt(this.doRefresh.bind(this),G.REFRESH_DEBOUNCE))}removeBaseRoot(e){return j.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 i=e.split("/"),r=i.shift();if((r===void 0||r==="")&&(r=i.shift()),r===void 0||r==="")throw new Error("Invalid path: ".concat(e));var a=i.join("/");if(n){if(!this.childTables.has(r)){var s=new G(this.storageService,this.baseRoot,"".concat(this.root,"/").concat(r));this.childTables.set(r,s)}if(a){var l=this.childTables.get(r);l==null||l.setExpanded(a,n)}}else if(this.childTables.has(r))if(a){var o=this.childTables.get(r);o==null||o.setExpanded(a,n)}else this.childTables.delete(r);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){W.debug2("doRefresh",this.root),e(this.fetchData())}refresh(){var e;W.debug2("refresh",this.root),(e=this.viewportUpdatePromise)===null||e===void 0||e.cancel();var n=new Promise(r=>{this.doRefresh(r)}),i=ie.makeCancelable(n.then(r=>{if(this.viewportUpdatePromise!==i)throw new fn;return this.currentViewportData=r,this.sendUpdate(),r}));i.catch(r=>{ie.isCanceled(r)||W.error("Error updating viewport",r)}),this.viewportUpdatePromise=i}refreshInternal(){try{this.refresh()}catch(e){ie.isCanceled(e)||W.error("Unable to refresh data",e)}}fetchData(){var e=this;return Ji(function*(){var{currentViewport:n}=e;if(!n)throw new Error("No viewport set");for(var i=yield e.storageService.listItems(e.root),r=i.map(h=>({type:h.type,filename:e.removeBaseRoot(h.filename),basename:h.basename,id:e.removeBaseRoot(h.filename),isExpanded:h.type==="directory"?e.childTables.has(h.basename):void 0})).sort((h,g)=>h.type!==g.type?h.type==="directory"?-1:1:h.basename.localeCompare(g.basename)),a=0;a<r.length;a+=1){var s=r[a],{basename:l,filename:o}=s;if(o===e.removeBaseRoot("".concat(e.root,"/").concat(l))&&s.type==="directory"){var u=e.childTables.get(l);if(u!=null){u.setViewport({top:0,bottom:n.bottom-a});var b=yield u.getViewportData();r.splice(a+1,0,...b.items)}}}return e.currentSize=r.length,W.debug2(e.root,"items",r,n),r=r.slice(n.top,n.bottom),{items:r,offset:n.top}})()}sendUpdate(){for(var e,{listeners:n}=this,i=(e=this.currentViewportData)!==null&&e!==void 0?e:{items:[],offset:0},r=0;r<n.length;r+=1)n[r](i)}}D(G,"REFRESH_DEBOUNCE",50);function Ke(t,e,n,i,r,a,s){try{var l=t[a](s),o=l.value}catch(u){return void n(u)}l.done?e(o):Promise.resolve(o).then(i,r)}function A(t){return function(){var e=this,n=arguments;return new Promise(function(i,r){var a=t.apply(e,n);function s(o){Ke(a,i,r,s,l,"next",o)}function l(o){Ke(a,i,r,s,l,"throw",o)}s(void 0)})}}function U(t,e,n){return(e=er(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function er(t){var e=tr(t,"string");return typeof e=="symbol"?e:e+""}function tr(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var i=n.call(t,e);if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var nr=H.module("GrpcFileStorage");class be{constructor(e,n){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"";U(this,"dh",void 0),U(this,"storageService",void 0),U(this,"tables",[]),U(this,"root",void 0),U(this,"refreshTables",tt(()=>{this.tables.forEach(r=>r.refresh())},be.REFRESH_THROTTLE)),this.dh=e,this.storageService=n,this.root=i}removeRoot(e){return j.removeRoot(this.root,e)}addRoot(e){return j.addRoot(this.root,e)}createDirectory(e){var n=this;return A(function*(){return yield n.storageService.createDirectory(n.addRoot(e)),n.refreshTables(),{type:"directory",id:e,filename:e,basename:j.getBaseName(e)}})()}getTable(){var e=this;return A(function*(){var n=new G(e.storageService,e.root);return e.tables.push(n),n})()}saveFile(e){var n=this;return A(function*(){var i=n.dh.storage.FileContents.text(e.content);return yield n.storageService.saveFile(n.addRoot(e.filename),i,!0),n.refreshTables(),e})()}loadFile(e){var n=this;return A(function*(){var i=yield n.storageService.loadFile(n.addRoot(e)),r=yield i.text();return{filename:e,basename:j.getBaseName(e),content:r}})()}copyFile(e,n){var i=this;return A(function*(){var r=yield i.storageService.loadFile(i.addRoot(e));yield i.storageService.saveFile(i.addRoot(n),r,!1),i.refreshTables()})()}deleteFile(e){var n=this;return A(function*(){yield n.storageService.deleteItem(n.addRoot(e)),n.refreshTables()})()}moveFile(e,n){var i=this;return A(function*(){yield i.storageService.moveItem(i.addRoot(e),i.addRoot(n)),i.refreshTables()})()}info(e){var n=this;return A(function*(){var i=yield n.storageService.listItems(n.addRoot(j.getPath(e)),j.getBaseName(e));if(i.length===0)throw new hn;if(i.length>1)throw nr.error("More than one matching file found, should never happen.",i),new Error("More than one matching file found");var r=i[0];if(!mn(r.type))throw new Error("Unexpected file type: ".concat(r.type));return{filename:n.removeRoot(r.filename),basename:r.basename,id:n.removeRoot(r.filename),type:r.type}})()}}U(be,"REFRESH_THROTTLE",150);function Xe(t,e,n,i,r,a,s){try{var l=t[a](s),o=l.value}catch(u){return void n(u)}l.done?e(o):Promise.resolve(o).then(i,r)}function Qe(t){return function(){var e=this,n=arguments;return new Promise(function(i,r){var a=t.apply(e,n);function s(o){Xe(a,i,r,s,l,"next",o)}function l(o){Xe(a,i,r,s,l,"throw",o)}s(void 0)})}}function Je(t,e,n){return(e=ir(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function ir(t){var e=rr(t,"string");return typeof e=="symbol"?e:e+""}function rr(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var i=n.call(t,e);if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}class Mr{constructor(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";Je(this,"storageService",void 0),Je(this,"root",void 0),this.storageService=e,this.root=n}getLayouts(){var e=this;return Qe(function*(){var n=yield e.storageService.listItems(e.root,"*.json");return n.map(i=>i.basename)})()}getLayout(e){var n=this;return Qe(function*(){var i=yield n.storageService.loadFile("".concat(n.root,"/").concat(e)),r=yield i.text();return JSON.parse(r)})()}}function or(t){return t.version===2}function ar(t){return Array.isArray(t)}function Ve(t,e,n,i,r,a,s){try{var l=t[a](s),o=l.value}catch(u){return void n(u)}l.done?e(o):Promise.resolve(o).then(i,r)}function sr(t){return function(){var e=this,n=arguments;return new Promise(function(i,r){var a=t.apply(e,n);function s(o){Ve(a,i,r,s,l,"next",o)}function l(o){Ve(a,i,r,s,l,"throw",o)}s(void 0)})}}var Q=H.module("UserLayoutUtils"),lr={layoutConfig:[{type:"column",content:[{type:"row",height:40,content:[{type:"stack",content:[{type:"react-component",component:xe.COMPONENT,title:xe.TITLE,isClosable:!1},{type:"react-component",component:Se.COMPONENT,title:Se.TITLE,isClosable:!1}]},{type:"stack",width:25,content:[{type:"react-component",component:Oe.COMPONENT,title:Oe.TITLE,isClosable:!1},{type:"react-component",component:Ee.COMPONENT,title:Ee.TITLE,isClosable:!1}]}]},{type:"row",content:[{type:"stack",title:"Notebooks",content:[]}]}]}],links:[],filterSets:[],version:2},dr={layoutConfig:[],links:[],filterSets:[],version:2};function ut(t){if(or(t))return t;if(ar(t)){var e=t;return{layoutConfig:e,links:[],filterSets:[],version:2}}throw new Error("Unexpected layout import format: ".concat(t))}function cr(t){return pe.apply(this,arguments)}function pe(){return pe=sr(function*(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;try{var n=yield t.getLayouts();if(n.length>0)try{var i=yield t.getLayout(n[0]);return ut(i)}catch(r){Q.error("Unable to load layout",n[0],":",r),Q.warn("No valid layouts found, falling back to default layout")}}catch(r){Q.error("Unable to fetch layout list",r),Q.warn("Falling back to default layout")}return e?lr:dr}),pe.apply(this,arguments)}function ur(t){var{filterSets:e,layoutConfig:n,links:i,pluginDataMap:r}=t,a={filterSets:e,layoutConfig:n,links:i,pluginDataMap:r,version:2};return a}const pr={exportLayout:ur,getDefaultLayout:cr,normalizeLayout:ut};function Ze(t,e,n,i,r,a,s){try{var l=t[a](s),o=l.value}catch(u){return void n(u)}l.done?e(o):Promise.resolve(o).then(i,r)}function J(t){return function(){var e=this,n=arguments;return new Promise(function(i,r){var a=t.apply(e,n);function s(o){Ze(a,i,r,s,l,"next",o)}function l(o){Ze(a,i,r,s,l,"throw",o)}s(void 0)})}}function pt(t,e,n){return(e=fr(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function fr(t){var e=hr(t,"string");return typeof e=="symbol"?e:e+""}function hr(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var i=n.call(t,e);if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var et=H.module("LocalWorkspaceStorage");class T{static getBooleanServerConfig(e,n){var i,r;if((e==null||(i=e.get(n))===null||i===void 0?void 0:i.toLowerCase())==="true")return!0;if((e==null||(r=e.get(n))===null||r===void 0?void 0:r.toLowerCase())==="false")return!1}static getJSONServerConfig(e,n){var i=e==null?void 0:e.get(n);if(i!=null)try{return JSON.parse(i)}catch{et.error("Unable to parse JSON server config for key ".concat(n,". Value: ").concat(i));return}}static makeDefaultWorkspaceSettings(e){var n={defaultDateTimeFormat:Te.DEFAULT_DATETIME_FORMAT_STRING,formatter:[],timeZone:Te.DEFAULT_TIME_ZONE_ID,showTimeZone:!1,showTSeparator:!0,disableMoveConfirmation:!1,defaultDecimalFormatOptions:{defaultFormatString:gn.DEFAULT_FORMAT_STRING},defaultIntegerFormatOptions:{defaultFormatString:yn.DEFAULT_FORMAT_STRING},truncateNumbersWithPound:!1,showEmptyStrings:!0,showNullStrings:!0,showExtraGroupColumn:!0,notebookSettings:{isMinimapEnabled:!1,formatOnSave:!1,python:{linter:{isEnabled:!0}}},webgl:!0,webglEditable:!0,gridDensity:"regular"},i={defaultDateTimeFormat:e==null?void 0:e.get("dateTimeFormat"),formatter:[],timeZone:e==null?void 0:e.get("timeZone"),showTimeZone:T.getBooleanServerConfig(e,"showTimeZone"),showTSeparator:T.getBooleanServerConfig(e,"showTSeparator"),disableMoveConfirmation:T.getBooleanServerConfig(e,"disableMoveConfirmation"),defaultDecimalFormatOptions:(e==null?void 0:e.get("decimalFormat"))!==void 0?{defaultFormatString:e==null?void 0:e.get("decimalFormat")}:void 0,defaultIntegerFormatOptions:(e==null?void 0:e.get("integerFormat"))!==void 0?{defaultFormatString:e==null?void 0:e.get("integerFormat")}:void 0,truncateNumbersWithPound:T.getBooleanServerConfig(e,"truncateNumbersWithPound"),showEmptyStrings:T.getBooleanServerConfig(e,"showEmptyStrings"),showNullStrings:T.getBooleanServerConfig(e,"showNullStrings"),showExtraGroupColumn:T.getBooleanServerConfig(e,"showExtraGroupColumn"),notebookSettings:{isMinimapEnabled:T.getBooleanServerConfig(e,"web.user.notebookSettings.isMinimapEnabled"),formatOnSave:T.getBooleanServerConfig(e,"web.user.notebookSettings.formatOnSave"),python:{linter:{isEnabled:T.getBooleanServerConfig(e,"web.user.notebookSettings.python.linter.isEnabled"),config:T.getJSONServerConfig(e,"web.user.notebookSettings.python.linter.config")}}},webgl:T.getBooleanServerConfig(e,"web.webgl"),webglEditable:T.getBooleanServerConfig(e,"web.webgl.editable")};return Ut({},n,i)}static makeWorkspaceData(e,n){return J(function*(){var{filterSets:i,links:r,layoutConfig:a,pluginDataMap:s={}}=yield pr.getDefaultLayout(e,n==null?void 0:n.isConsoleAvailable);return{settings:{},layoutConfig:a,closed:[{}],links:r,filterSets:i,pluginDataMap:s}})()}static makeDefaultWorkspace(e,n){return J(function*(){return{data:yield T.makeWorkspaceData(e,n)}})()}constructor(e){pt(this,"layoutStorage",void 0),this.layoutStorage=e}load(e){var n=this;return J(function*(){try{var i,r=JSON.parse((i=localStorage.getItem(T.STORAGE_KEY))!==null&&i!==void 0?i:"");return r}catch{return et.info("Unable to load workspace data, initializing to default data"),T.makeDefaultWorkspace(n.layoutStorage,e)}})()}save(e){return J(function*(){return localStorage.setItem(T.STORAGE_KEY,JSON.stringify(e)),e})()}}pt(T,"STORAGE_KEY","deephaven.WorkspaceStorage");export{Ur as A,Cr as B,V as C,ni as D,Wi as E,dt as F,Mr as G,Qn as H,Ir as I,ct as J,jr as K,wr as L,G as M,xr as N,or as O,ar as P,lr as Q,Er as R,yi as S,Pr as T,pr as U,dr as V,ut as W,cr as X,ur as Y,bi as a,Sr as b,Ar as c,$r as d,Yn as e,Nr as f,Mi as g,Br as h,Fr as i,be as j,T as k,_r as l,Or as m,ye as n,gi as o,Tr as p,xi as q,kr as r,Oi as s,Lr as t,ui as u,Rr as v,Si as w,Di as x,Bi as y,Dr as z};
|
|
82
|
+
//# sourceMappingURL=LocalWorkspaceStorage-DlYHUe5t.js.map
|