streamlit-nightly 1.39.1.dev20241016__py2.py3-none-any.whl → 1.39.1.dev20241017__py2.py3-none-any.whl
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.
- streamlit/static/asset-manifest.json +7 -7
- streamlit/static/index.html +1 -1
- streamlit/static/static/js/8148.5521cded.chunk.js +1 -0
- streamlit/static/static/js/8237.72e42692.chunk.js +1 -0
- streamlit/static/static/js/{8460.40cba8ba.chunk.js → 8460.05092ce1.chunk.js} +1 -1
- streamlit/static/static/js/9923.2bb9616f.chunk.js +1 -0
- streamlit/static/static/js/9943.0d8cd50b.chunk.js +1 -0
- streamlit/static/static/js/main.f85d22ce.js +28 -0
- {streamlit_nightly-1.39.1.dev20241016.dist-info → streamlit_nightly-1.39.1.dev20241017.dist-info}/METADATA +1 -1
- {streamlit_nightly-1.39.1.dev20241016.dist-info → streamlit_nightly-1.39.1.dev20241017.dist-info}/RECORD +15 -15
- streamlit/static/static/js/8148.aed4a6f0.chunk.js +0 -1
- streamlit/static/static/js/8237.5de71f48.chunk.js +0 -1
- streamlit/static/static/js/9923.21b1d895.chunk.js +0 -1
- streamlit/static/static/js/9943.d54fcda3.chunk.js +0 -1
- streamlit/static/static/js/main.555eaf62.js +0 -28
- /streamlit/static/static/js/{main.555eaf62.js.LICENSE.txt → main.f85d22ce.js.LICENSE.txt} +0 -0
- {streamlit_nightly-1.39.1.dev20241016.data → streamlit_nightly-1.39.1.dev20241017.data}/scripts/streamlit.cmd +0 -0
- {streamlit_nightly-1.39.1.dev20241016.dist-info → streamlit_nightly-1.39.1.dev20241017.dist-info}/WHEEL +0 -0
- {streamlit_nightly-1.39.1.dev20241016.dist-info → streamlit_nightly-1.39.1.dev20241017.dist-info}/entry_points.txt +0 -0
- {streamlit_nightly-1.39.1.dev20241016.dist-info → streamlit_nightly-1.39.1.dev20241017.dist-info}/top_level.txt +0 -0
@@ -347,9 +347,9 @@ streamlit/runtime/state/safe_session_state.py,sha256=WLFFyMtP4F19TWWBarKtSP942Ie
|
|
347
347
|
streamlit/runtime/state/session_state.py,sha256=SMBWsSZY29jAgL3QfX4xvJr9aLCNrHHUz9AmosX7FlQ,28850
|
348
348
|
streamlit/runtime/state/session_state_proxy.py,sha256=IWF43f6UWL4KyxNWF3aTv1sbykNI2hI5UsPF2UIfpdE,5524
|
349
349
|
streamlit/runtime/state/widgets.py,sha256=r5XOgHBh9AqS52rgKGgDXFGnkdY6ObUJBSSUBqkzTK8,5319
|
350
|
-
streamlit/static/asset-manifest.json,sha256=
|
350
|
+
streamlit/static/asset-manifest.json,sha256=GFFhkl9SKAtEw_ymrb4kY08HIih6DvJDM7SSRxyfAI0,14493
|
351
351
|
streamlit/static/favicon.png,sha256=if5cVgw7azxKOvV5FpGixga7JLn23rfnHcy1CdWI1-E,1019
|
352
|
-
streamlit/static/index.html,sha256=
|
352
|
+
streamlit/static/index.html,sha256=3QY05vKhf9Rr1ne3ClM0Ghbc27-tnUzxiQHJ0obgWvg,891
|
353
353
|
streamlit/static/static/css/4096.8b8f33d6.chunk.css,sha256=4m2lbj1eVFXSaGCRBHZNhqyRz-4Ce9KogjJPxIq6On8,33275
|
354
354
|
streamlit/static/static/css/9943.d452238e.chunk.css,sha256=B69nSRvppH7uO-_kso_XSGce7SJOCm8ZD1GB9g6fttA,12038
|
355
355
|
streamlit/static/static/css/main.5513bd04.css,sha256=9vuriEsFvHDyAwsI3vtBY9PNL8UOjqGwWZ4lZHsdFzw,29356
|
@@ -400,12 +400,12 @@ streamlit/static/static/js/7809.304e2c99.chunk.js,sha256=U7FV22v0bRHGtVNLuFe5NoN
|
|
400
400
|
streamlit/static/static/js/783.788bb3ab.chunk.js,sha256=fU54-9m8e-yscWpoz9NxxvRje_OcGE5wJijHuVNxMXU,88546
|
401
401
|
streamlit/static/static/js/797.36f1bf7d.chunk.js,sha256=lBSxYn2yOvQ9qigWurVjQBSLOh40cE8DyU8O7uBHIPY,9623
|
402
402
|
streamlit/static/static/js/7983.15bb2017.chunk.js,sha256=wNR0QnXubELkrdJ1K1QKVltDS2q4yJ3NoQUZxO5FIDI,3358
|
403
|
-
streamlit/static/static/js/8148.
|
403
|
+
streamlit/static/static/js/8148.5521cded.chunk.js,sha256=gAXcXKai9Xz5WCnxIVs2HUTP1umSt83aaVvMhWTh_Xc,2138
|
404
404
|
streamlit/static/static/js/8161.9b75f98a.chunk.js,sha256=vWAh7Nhi5kkx3Z330eIRlgh0B4FxgJjmRVaQNDDX_DU,3640
|
405
405
|
streamlit/static/static/js/8166.094f1288.chunk.js,sha256=8p_DkKjBuOErd7-xxq4qUgbE_W4E2D5R05SDOLbM9Zk,2746
|
406
|
-
streamlit/static/static/js/8237.
|
406
|
+
streamlit/static/static/js/8237.72e42692.chunk.js,sha256=-rlKSALerw77owIKArbtZotHxKYRG_ZTxzCywBeo_Mk,12842
|
407
407
|
streamlit/static/static/js/84.414fa87b.chunk.js,sha256=sF7-dsOEXmnl7d-z2d0Fb7F8vyEWlUY2vEK7TQ5RK8k,622
|
408
|
-
streamlit/static/static/js/8460.
|
408
|
+
streamlit/static/static/js/8460.05092ce1.chunk.js,sha256=v9_YAY9ASzB6_IFgMec0__XZQT7cCvg-1jAjHNgQIL8,14422
|
409
409
|
streamlit/static/static/js/8642.58110d15.chunk.js,sha256=fZhw8uCV5cuCz62H1Yw8LLgtH00H-tiWk3UlzAwJQF0,3380289
|
410
410
|
streamlit/static/static/js/8642.58110d15.chunk.js.LICENSE.txt,sha256=eaJYPeiNKQAvVx6lv1DR9gIPG1pFwki2pcDLddtfQHw,5061
|
411
411
|
streamlit/static/static/js/8648.92079acf.chunk.js,sha256=WpZpzt0hkqhjZ5CotTAZcQYz_C61hQD84_KcrDdXCBQ,22115
|
@@ -417,10 +417,10 @@ streamlit/static/static/js/9114.11dd8c48.chunk.js,sha256=UEWF2xEIgUp5gUebfvH3LdA
|
|
417
417
|
streamlit/static/static/js/9464.7e9a3c0a.chunk.js,sha256=63Fg1-eQ1Sx7Hb6rqtQaTOJ7CTZ8GZdyl7aMZJ-NcI8,1350
|
418
418
|
streamlit/static/static/js/9528.746f7a0e.chunk.js,sha256=KL6FfepG5LOH0P5pH4ieh5-rvx5o4YD77PKVAZIGlPg,1887
|
419
419
|
streamlit/static/static/js/954.88014372.chunk.js,sha256=iM-oVcorvEnZJzzEem6IrtXG6U63FfXPupeoIxFK92U,8769
|
420
|
-
streamlit/static/static/js/9923.
|
421
|
-
streamlit/static/static/js/9943.
|
422
|
-
streamlit/static/static/js/main.
|
423
|
-
streamlit/static/static/js/main.
|
420
|
+
streamlit/static/static/js/9923.2bb9616f.chunk.js,sha256=EtTxhVpm_jY8E23uFAg-00WCnbvi1zXVRAky8JxbMaI,3579
|
421
|
+
streamlit/static/static/js/9943.0d8cd50b.chunk.js,sha256=roc9cNDjD51bp4tGNoercdzJ22M08C36jMebwsbjW9c,49404
|
422
|
+
streamlit/static/static/js/main.f85d22ce.js,sha256=-NdMRcnxdsoWImVZeOnKW7EhQH6g3Z94XQu4khGPZJ0,4478127
|
423
|
+
streamlit/static/static/js/main.f85d22ce.js.LICENSE.txt,sha256=vcwWCW5VNoALG8YyhU5k8oDUNAwYisMZfiZ8X1cvtWk,4730
|
424
424
|
streamlit/static/static/media/KaTeX_AMS-Regular.73ea273a72f4aca30ca5.woff2,sha256=DN04fJWQoan5eUVgAi27WWVKfYbxh6oMgUla1C06cwg,28076
|
425
425
|
streamlit/static/static/media/KaTeX_AMS-Regular.853be92419a6c3766b9a.ttf,sha256=aFNIQLz90r_7bw6N60hoTdAefwTqKBMmdXevuQbeHRM,63632
|
426
426
|
streamlit/static/static/media/KaTeX_AMS-Regular.d562e886c52f12660a41.woff,sha256=MNqR6EyJP4deJSaJ-uvcWQsocRReitx_mp1NvYzgslE,33516
|
@@ -540,9 +540,9 @@ streamlit/web/server/server_util.py,sha256=ioIHkXNlA_ujj2Q3isziM8r5glKxgK2JZRoCD
|
|
540
540
|
streamlit/web/server/stats_request_handler.py,sha256=e144zIhzLTB1PN4CwTCxElCoWMuo9IsBEPex2exHCQ0,3641
|
541
541
|
streamlit/web/server/upload_file_request_handler.py,sha256=ftyKpARrUjOpRcFETIXuoTyOG_mo-ToOw5NI0y_W4lE,5003
|
542
542
|
streamlit/web/server/websocket_headers.py,sha256=uUxypj04ondEC4ocBiYCndX_N06Zwe1Mt690Vupe08Y,2232
|
543
|
-
streamlit_nightly-1.39.1.
|
544
|
-
streamlit_nightly-1.39.1.
|
545
|
-
streamlit_nightly-1.39.1.
|
546
|
-
streamlit_nightly-1.39.1.
|
547
|
-
streamlit_nightly-1.39.1.
|
548
|
-
streamlit_nightly-1.39.1.
|
543
|
+
streamlit_nightly-1.39.1.dev20241017.data/scripts/streamlit.cmd,sha256=ZEYM3vBJSp-k7vwSJ3ba5NzEk9-qHdSeLvGYAAe1mMw,676
|
544
|
+
streamlit_nightly-1.39.1.dev20241017.dist-info/METADATA,sha256=7Tckl3sOKwW24CbtGtGtSRYxmZBK0jAn7o6GGssZuvo,8512
|
545
|
+
streamlit_nightly-1.39.1.dev20241017.dist-info/WHEEL,sha256=TJ49d73sNs10F0aze1W_bTW2P_X7-F4YXOlBqoqA-jY,109
|
546
|
+
streamlit_nightly-1.39.1.dev20241017.dist-info/entry_points.txt,sha256=uNJ4DwGNXEhOK0USwSNanjkYyR-Bk7eYQbJFDrWyOgY,53
|
547
|
+
streamlit_nightly-1.39.1.dev20241017.dist-info/top_level.txt,sha256=V3FhKbm7G2LnR0s4SytavrjIPNIhvcsAGXfYHAwtQzw,10
|
548
|
+
streamlit_nightly-1.39.1.dev20241017.dist-info/RECORD,,
|
@@ -1 +0,0 @@
|
|
1
|
-
(self.webpackChunk_streamlit_app=self.webpackChunk_streamlit_app||[]).push([[8148],{67163:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var i=n(58878),s=n(68262),o=n(13170),d=n(84996),r=n(55516);const h=(0,n(89653).A)("div",{target:"e1uym6o70"})((e=>{let{theme:t,isFullScreen:n}=e;return{"& *":{fontFamily:t.genericFonts.bodyFont,fontSize:`calc(${t.fontSizes.twoSm} * 0.8)`},"& svg":{maxWidth:"100%",width:n?"100%":"auto",height:n?"100%":"auto"},width:n?"100%":"auto",height:n?"100%":"auto"}}),"");var l=n(90782);const a=(0,r.A)((function(e){let{element:t,isFullScreen:n}=e;const r=`st-graphviz-chart-${t.elementId}`;return(0,i.useEffect)((()=>{try{if((0,o.graphviz)(`#${r}`).zoom(!1).fit(!0).scale(1).engine(t.engine).renderDot(t.spec),n||t.useContainerWidth){const e=(0,s.Ltv)(`#${r} > svg`).node();e.removeAttribute("width"),e.removeAttribute("height")}}catch(e){(0,d.vV)(e)}}),[r,t.engine,t.spec,t.useContainerWidth,n]),(0,l.jsx)(h,{className:"stGraphVizChart","data-testid":"stGraphVizChart",id:r,isFullScreen:n})}))},55516:(e,t,n)=>{"use strict";n.d(t,{A:()=>g});var i=n(58878),s=n(53124),o=n.n(s),d=n(8151),r=n(41514),h=n(67214),l=n(64611),a=n(84152),c=n(25571),u=n(4883),p=n(90782);class m extends i.PureComponent{constructor(e){super(e),this.context=void 0,this.controlKeys=e=>{const{expanded:t}=this.state;27===e.keyCode&&t&&this.zoomOut()},this.zoomIn=()=>{document.body.style.overflow="hidden",this.context.setFullScreen(!0),this.setState({expanded:!0})},this.zoomOut=()=>{document.body.style.overflow="unset",this.context.setFullScreen(!1),this.setState({expanded:!1})},this.getWindowDimensions=()=>{const e=(0,c.NE)(this.props.theme.spacing.md),t=(0,c.NE)(this.props.theme.sizes.fullScreenHeaderHeight);return{fullWidth:window.innerWidth-2*e,fullHeight:window.innerHeight-(e+t)}},this.updateWindowDimensions=()=>{this.setState(this.getWindowDimensions())},this.state={expanded:!1,...this.getWindowDimensions()}}componentDidMount(){window.addEventListener("resize",this.updateWindowDimensions),document.addEventListener("keydown",this.controlKeys,!1)}componentWillUnmount(){window.removeEventListener("resize",this.updateWindowDimensions),document.removeEventListener("keydown",this.controlKeys,!1)}render(){const{expanded:e,fullWidth:t,fullHeight:n}=this.state,{children:i,width:s,height:o,disableFullscreenMode:d}=this.props;let a=r.u,c=this.zoomIn,m="View fullscreen";return e&&(a=h.Q,c=this.zoomOut,m="Exit fullscreen"),(0,p.jsxs)(u.g,{isExpanded:e,"data-testid":"stFullScreenFrame",children:[!d&&(0,p.jsx)(u.j,{"data-testid":"StyledFullScreenButton",onClick:c,title:m,isExpanded:e,children:(0,p.jsx)(l.A,{content:a})}),i(e?{width:t,height:n,expanded:e,expand:this.zoomIn,collapse:this.zoomOut}:{width:s,height:o,expanded:e,expand:this.zoomIn,collapse:this.zoomOut})]})}}m.contextType=a.n;const w=(0,d.b)(m);const g=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];class n extends i.PureComponent{constructor(){super(...arguments),this.render=()=>{const{width:n,height:i,disableFullscreenMode:s}=this.props;return(0,p.jsx)(w,{width:n,height:i,disableFullscreenMode:t||s,children:t=>{let{width:n,height:i,expanded:s,expand:o,collapse:d}=t;return(0,p.jsx)(e,{...this.props,width:n,height:i,isFullScreen:s,expand:o,collapse:d})}})}}}return n.displayName=`withFullScreenWrapper(${e.displayName||e.name})`,o()(n,e)}},34654:()=>{},7908:()=>{},62292:()=>{}}]);
|
@@ -1 +0,0 @@
|
|
1
|
-
"use strict";(self.webpackChunk_streamlit_app=self.webpackChunk_streamlit_app||[]).push([[8237],{78237:(e,l,o)=>{o.r(l),o.d(l,{default:()=>w});var t=o(58878),i=o(8151),n=o(43978),r=o(29669),s=o(55516),c=o(25571),a=o(34752),d=o(37638),p=o.n(d),u=o(58144),h=o(67253),f=o(84996);function m(e,l,o){return e=function(e,l){return(e=(e=(e=(e=(e=(e=(e=(e=e.replaceAll("#000032",(0,u.$E)(l))).replaceAll("#000033",(0,u.pf)(l))).replaceAll("#000034",(0,u.h7)(l))).replaceAll("#000035",(0,u.V9)(l))).replaceAll("#000036",(0,u.lH)(l))).replaceAll("#000037",(0,u.ZA)(l))).replaceAll("#000038",l.colors.bgColor)).replaceAll("#000039",l.colors.fadedText05)).replaceAll("#000040",l.colors.bgMix)}(e,l),e=function(e,l,o){const t="#000001",i="#000002",n="#000003",r="#000004",s="#000005",c="#000006",a="#000007",d="#000008",p="#000009",h="#000010";if("streamlit"===o){const o=(0,u.c6)(l);e=(e=(e=(e=(e=(e=(e=(e=(e=(e=e.replaceAll(t,o[0])).replaceAll(i,o[1])).replaceAll(n,o[2])).replaceAll(r,o[3])).replaceAll(s,o[4])).replaceAll(c,o[5])).replaceAll(a,o[6])).replaceAll(d,o[7])).replaceAll(p,o[8])).replaceAll(h,o[9])}else e=(e=(e=(e=(e=(e=(e=(e=(e=(e=e.replaceAll(t,"#636efa")).replaceAll(i,"#EF553B")).replaceAll(n,"#00cc96")).replaceAll(r,"#ab63fa")).replaceAll(s,"#FFA15A")).replaceAll(c,"#19d3f3")).replaceAll(a,"#FF6692")).replaceAll(d,"#B6E880")).replaceAll(p,"#FF97FF")).replaceAll(h,"#FECB52");return e}(e,l,o),e=function(e,l,o){const t="#000011",i="#000012",n="#000013",r="#000014",s="#000015",c="#000016",a="#000017",d="#000018",p="#000019",h="#000020";if("streamlit"===o){const o=(0,u.rp)(l);e=(e=(e=(e=(e=(e=(e=(e=(e=(e=e.replaceAll(t,o[0])).replaceAll(i,o[1])).replaceAll(n,o[2])).replaceAll(r,o[3])).replaceAll(s,o[4])).replaceAll(c,o[5])).replaceAll(a,o[6])).replaceAll(d,o[7])).replaceAll(p,o[8])).replaceAll(h,o[9])}else e=(e=(e=(e=(e=(e=(e=(e=(e=(e=e.replaceAll(t,"#0d0887")).replaceAll(i,"#46039f")).replaceAll(n,"#7201a8")).replaceAll(r,"#9c179e")).replaceAll(s,"#bd3786")).replaceAll(c,"#d8576b")).replaceAll(a,"#ed7953")).replaceAll(d,"#fb9f3a")).replaceAll(p,"#fdca26")).replaceAll(h,"#f0f921");return e}(e,l,o),e=function(e,l,o){const t="#000021",i="#000022",n="#000023",r="#000024",s="#000025",c="#000026",a="#000027",d="#000028",p="#000029",h="#000030",f="#000031";if("streamlit"===o){const o=(0,u.vk)(l);e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=e.replaceAll(t,o[0])).replaceAll(i,o[1])).replaceAll(n,o[2])).replaceAll(r,o[3])).replaceAll(s,o[4])).replaceAll(c,o[5])).replaceAll(a,o[6])).replaceAll(d,o[7])).replaceAll(p,o[8])).replaceAll(h,o[9])).replaceAll(f,o[10])}else e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=e.replaceAll(t,"#8e0152")).replaceAll(i,"#c51b7d")).replaceAll(n,"#de77ae")).replaceAll(r,"#f1b6da")).replaceAll(s,"#fde0ef")).replaceAll(c,"#f7f7f7")).replaceAll(a,"#e6f5d0")).replaceAll(d,"#b8e186")).replaceAll(p,"#7fbc41")).replaceAll(h,"#4d9221")).replaceAll(f,"#276419");return e}(e,l,o),e}function g(e,l){try{!function(e,l){const{genericFonts:o,colors:t,fontSizes:i}=l,n={font:{color:(0,u.lH)(l),family:o.bodyFont,size:i.twoSmPx},title:{color:t.headingColor,subtitleColor:t.bodyText,font:{family:o.headingFont,size:i.mdPx,color:t.headingColor},pad:{l:l.spacing.twoXSPx},xanchor:"left",x:0},legend:{title:{font:{size:i.twoSmPx,color:(0,u.lH)(l)},side:"top"},valign:"top",bordercolor:t.transparent,borderwidth:l.spacing.nonePx,font:{size:i.twoSmPx,color:(0,u.ZA)(l)}},paper_bgcolor:t.bgColor,plot_bgcolor:t.bgColor,yaxis:{ticklabelposition:"outside",zerolinecolor:(0,u.V9)(l),title:{font:{color:(0,u.lH)(l),size:i.smPx},standoff:l.spacing.twoXLPx},tickcolor:(0,u.V9)(l),tickfont:{color:(0,u.lH)(l),size:i.twoSmPx},gridcolor:(0,u.V9)(l),minor:{gridcolor:(0,u.V9)(l)},automargin:!0},xaxis:{zerolinecolor:(0,u.V9)(l),gridcolor:(0,u.V9)(l),showgrid:!1,tickfont:{color:(0,u.lH)(l),size:i.twoSmPx},tickcolor:(0,u.V9)(l),title:{font:{color:(0,u.lH)(l),size:i.smPx},standoff:l.spacing.xlPx},minor:{gridcolor:(0,u.V9)(l)},zeroline:!1,automargin:!0,rangeselector:{bgcolor:t.bgColor,bordercolor:(0,u.V9)(l),borderwidth:1,x:0}},margin:{pad:l.spacing.smPx,r:l.spacing.nonePx,l:l.spacing.nonePx},hoverlabel:{bgcolor:t.bgColor,bordercolor:t.borderColor,font:{color:(0,u.lH)(l),family:o.bodyFont,size:i.twoSmPx}},coloraxis:{colorbar:{thickness:16,xpad:l.spacing.twoXLPx,ticklabelposition:"outside",outlinecolor:t.transparent,outlinewidth:8,len:.75,y:.5745,title:{font:{color:(0,u.lH)(l),size:i.smPx}},tickfont:{color:(0,u.lH)(l),size:i.twoSmPx}}},ternary:{gridcolor:(0,u.lH)(l),bgcolor:t.bgColor,title:{font:{family:o.bodyFont,size:i.smPx}},color:(0,u.lH)(l),aaxis:{gridcolor:(0,u.lH)(l),linecolor:(0,u.lH)(l),tickfont:{family:o.bodyFont,size:i.twoSmPx}},baxis:{linecolor:(0,u.lH)(l),gridcolor:(0,u.lH)(l),tickfont:{family:o.bodyFont,size:i.twoSmPx}},caxis:{linecolor:(0,u.lH)(l),gridcolor:(0,u.lH)(l),tickfont:{family:o.bodyFont,size:i.twoSmPx}}}};p()(e,n)}(e.layout.template.layout,l)}catch(o){const e=(0,h.$)(o);(0,f.vV)(e)}"title"in e.layout&&(e.layout.title=p()(e.layout.title,{text:`<b>${e.layout.title.text}</b>`}))}var y=o(90782);const x={width:600,height:470,name:"fullscreen-expand",path:"M32 32C14.3 32 0 46.3 0 64v96c0 17.7 14.3 32 32 32s32-14.3 32-32V96h64c17.7 0 32-14.3 32-32s-14.3-32-32-32H32zM64 352c0-17.7-14.3-32-32-32s-32 14.3-32 32v96c0 17.7 14.3 32 32 32h96c17.7 0 32-14.3 32-32s-14.3-32-32-32H64V352zM320 32c-17.7 0-32 14.3-32 32s14.3 32 32 32h64v64c0 17.7 14.3 32 32 32s32-14.3 32-32V64c0-17.7-14.3-32-32-32H320zM448 352c0-17.7-14.3-32-32-32s-32 14.3-32 32v64H320c-17.7 0-32 14.3-32 32s14.3 32 32 32h96c17.7 0 32-14.3 32-32V352z"},A={width:600,height:470,name:"fullscreen-collapse",path:"M160 64c0-17.7-14.3-32-32-32s-32 14.3-32 32v64H32c-17.7 0-32 14.3-32 32s14.3 32 32 32h96c17.7 0 32-14.3 32-32V64zM32 320c-17.7 0-32 14.3-32 32s14.3 32 32 32H96v64c0 17.7 14.3 32 32 32s32-14.3 32-32V352c0-17.7-14.3-32-32-32H32zM352 64c0-17.7-14.3-32-32-32s-32 14.3-32 32v96c0 17.7 14.3 32 32 32h96c17.7 0 32-14.3 32-32s-14.3-32-32-32H352V64zM320 320c-17.7 0-32 14.3-32 32v96c0 17.7 14.3 32 32 32s32-14.3 32-32V384h64c17.7 0 32-14.3 32-32s-14.3-32-32-32H320z"};function v(e,l,o){const t=JSON.parse(m(JSON.stringify(e),o,l));return"streamlit"===l?g(t,o):t.layout=function(e,l){const{colors:o,genericFonts:t}=l,i={font:{color:o.bodyText,family:t.bodyFont},paper_bgcolor:o.bgColor,plot_bgcolor:o.secondaryBg};return{...e,font:{...i.font,...e.font},paper_bgcolor:e.paper_bgcolor||i.paper_bgcolor,plot_bgcolor:e.plot_bgcolor||i.plot_bgcolor}}(t.layout,o),t}function b(e,l,o,t){if(!e)return;const i={selection:{points:[],point_indices:[],box:[],lasso:[]}},n=new Set,s=[],a=[],d=[],{selections:p,points:u}=e;if(u&&u.forEach((function(e){d.push({...e,legendgroup:e.data.legendgroup||void 0,data:void 0,fullData:void 0}),(0,c.se)(e.pointIndex)&&n.add(e.pointIndex),(0,c.se)(e.pointIndices)&&e.pointIndices.length>0&&e.pointIndices.forEach((e=>n.add(e)))})),p&&p.forEach((e=>{if("rect"===e.type){const l=function(e){return"x0"in e&&"x1"in e&&"y0"in e&&"y1"in e?{x:[e.x0,e.x1],y:[e.y0,e.y1]}:{x:[],y:[]}}(e),o={xref:e.xref,yref:e.yref,x:l.x,y:l.y};s.push(o)}if("path"===e.type){const l=function(e){if(""===e)return{x:[],y:[]};const l=e.replace("M","").replace("Z","").split("L"),o=[],t=[];return l.forEach((e=>{const[l,i]=e.split(",").map(Number);o.push(l),t.push(i)})),{x:o,y:t}}(e.path),o={xref:e.xref,yref:e.yref,x:l.x,y:l.y};a.push(o)}})),i.selection.point_indices=Array.from(n),i.selection.points=d.map((e=>(0,c.wJ)(e))),i.selection.box=s,i.selection.lasso=a,i.selection.box.length>0&&!o.selectionMode.includes(r.P_.SelectionMode.BOX))return;if(i.selection.lasso.length>0&&!o.selectionMode.includes(r.P_.SelectionMode.LASSO))return;const h=l.getStringValue(o),f=JSON.stringify(i);h!==f&&l.setStringValue(o,f,{fromUi:!0},t)}const w=(0,s.A)((function(e){var l,o,s,c,d;let{element:p,width:u,height:h,widgetMgr:f,disabled:m,fragmentId:g,isFullScreen:w,expand:S,collapse:F,disableFullscreenMode:z}=e;const C=(0,i.u)(),M=(0,t.useMemo)((()=>p.spec?JSON.parse(p.spec):{layout:{},data:[],frames:void 0}),[p.id,p.spec]),[P,H]=(0,t.useState)((()=>{const e=f.getElementState(p.id,"figure");return e||v(M,p.theme,C)})),k=p.selectionMode.length>0&&!m,E=k&&p.selectionMode.includes(r.P_.SelectionMode.LASSO),V=k&&p.selectionMode.includes(r.P_.SelectionMode.BOX),_=k&&p.selectionMode.includes(r.P_.SelectionMode.POINTS),I=(0,t.useMemo)((()=>{if(!p.config)return{};const e=JSON.parse(p.config);var l;z||(e.modeBarButtonsToAdd=[{name:w?"Close fullscreen":"Fullscreen",icon:w?A:x,click:()=>{w&&F?F():S&&S()}},...null!==(l=e.modeBarButtonsToAdd)&&void 0!==l?l:[]]);if(!e.modeBarButtonsToRemove){e.displaylogo=!1;const l=["sendDataToCloud"];k?(E||l.push("lasso2d"),V||l.push("select2d")):l.push("lasso2d","select2d"),e.modeBarButtonsToRemove=l}return e}),[p.id,p.config,w,z,k,E,V,F,S]);(0,t.useEffect)((()=>{H((e=>v(e,p.theme,C)))}),[p.id,C,p.theme]),(0,t.useEffect)((()=>{let e=M.layout.clickmode,l=M.layout.hovermode,o=M.layout.dragmode;m?(e="none",o="pan"):k&&(M.layout.clickmode||(e=_?"event+select":"none"),M.layout.hovermode||(l="closest"),M.layout.dragmode||(o=_?"pan":V?"select":E?"lasso":"pan")),H((t=>t.layout.clickmode===e&&t.layout.hovermode===l&&t.layout.dragmode===o?t:{...t,layout:{...t.layout,clickmode:e,hovermode:l,dragmode:o}}))}),[p.id,k,_,V,E,m]);let L=-1===u?null===(l=P.layout)||void 0===l?void 0:l.width:Math.max(p.useContainerWidth?u:Math.min(null!==(o=M.layout.width)&&void 0!==o?o:u,u),150),O=M.layout.height;w&&(L=u,O=h),P.layout.height===O&&P.layout.width===L||H((e=>({...e,layout:{...e.layout,height:O,width:L}})));const W=(0,t.useCallback)((e=>{b(e,f,p,g)}),[p.id,f,g]),B=(0,t.useCallback)((function(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];!function(e,l,o){const t=e.getStringValue(l),i=JSON.stringify({selection:{points:[],point_indices:[],box:[],lasso:[]}});t!==i&&e.setStringValue(l,i,{fromUi:!0},o)}(f,p,g),e&&setTimeout((()=>{H((e=>({...e,data:e.data.map((e=>({...e,selectedpoints:null}))),layout:{...e.layout,selections:[]}})))}),50)}),[p.id,f,g]);return(0,t.useEffect)((()=>{if(!p.formId||!k)return;const e=new a.o;return e.manageFormClearListener(f,p.formId,B),()=>{e.disconnect()}}),[p.formId,f,k,B]),(0,t.useEffect)((()=>{var e,l,o;if(!k)return;let t;t="select"===(null===(e=P.layout)||void 0===e?void 0:e.dragmode)||"lasso"===(null===(l=P.layout)||void 0===l?void 0:l.dragmode)?"event":_?"event+select":"none",(null===(o=P.layout)||void 0===o?void 0:o.clickmode)!==t&&H((e=>({...e,layout:{...e.layout,clickmode:t}})))}),[null===(s=P.layout)||void 0===s?void 0:s.dragmode]),(0,y.jsx)("div",{className:"stPlotlyChart","data-testid":"stPlotlyChart",children:(0,y.jsx)(n.A,{data:P.data,layout:P.layout,config:I,frames:null!==(c=P.frames)&&void 0!==c?c:void 0,style:{visibility:void 0===(null===(d=P.layout)||void 0===d?void 0:d.width)?"hidden":void 0},onSelected:k?W:()=>{},onDoubleClick:k?()=>B():void 0,onDeselect:k?()=>{B(!1)}:void 0,onInitialized:e=>{f.setElementState(p.id,"figure",e)},onUpdate:e=>{f.setElementState(p.id,"figure",e),H(e)}},w?"fullscreen":"original")})}),!0)},55516:(e,l,o)=>{o.d(l,{A:()=>g});var t=o(58878),i=o(53124),n=o.n(i),r=o(8151),s=o(41514),c=o(67214),a=o(64611),d=o(84152),p=o(25571),u=o(4883),h=o(90782);class f extends t.PureComponent{constructor(e){super(e),this.context=void 0,this.controlKeys=e=>{const{expanded:l}=this.state;27===e.keyCode&&l&&this.zoomOut()},this.zoomIn=()=>{document.body.style.overflow="hidden",this.context.setFullScreen(!0),this.setState({expanded:!0})},this.zoomOut=()=>{document.body.style.overflow="unset",this.context.setFullScreen(!1),this.setState({expanded:!1})},this.getWindowDimensions=()=>{const e=(0,p.NE)(this.props.theme.spacing.md),l=(0,p.NE)(this.props.theme.sizes.fullScreenHeaderHeight);return{fullWidth:window.innerWidth-2*e,fullHeight:window.innerHeight-(e+l)}},this.updateWindowDimensions=()=>{this.setState(this.getWindowDimensions())},this.state={expanded:!1,...this.getWindowDimensions()}}componentDidMount(){window.addEventListener("resize",this.updateWindowDimensions),document.addEventListener("keydown",this.controlKeys,!1)}componentWillUnmount(){window.removeEventListener("resize",this.updateWindowDimensions),document.removeEventListener("keydown",this.controlKeys,!1)}render(){const{expanded:e,fullWidth:l,fullHeight:o}=this.state,{children:t,width:i,height:n,disableFullscreenMode:r}=this.props;let d=s.u,p=this.zoomIn,f="View fullscreen";return e&&(d=c.Q,p=this.zoomOut,f="Exit fullscreen"),(0,h.jsxs)(u.g,{isExpanded:e,"data-testid":"stFullScreenFrame",children:[!r&&(0,h.jsx)(u.j,{"data-testid":"StyledFullScreenButton",onClick:p,title:f,isExpanded:e,children:(0,h.jsx)(a.A,{content:d})}),t(e?{width:l,height:o,expanded:e,expand:this.zoomIn,collapse:this.zoomOut}:{width:i,height:n,expanded:e,expand:this.zoomIn,collapse:this.zoomOut})]})}}f.contextType=d.n;const m=(0,r.b)(f);const g=function(e){let l=arguments.length>1&&void 0!==arguments[1]&&arguments[1];class o extends t.PureComponent{constructor(){super(...arguments),this.render=()=>{const{width:o,height:t,disableFullscreenMode:i}=this.props;return(0,h.jsx)(m,{width:o,height:t,disableFullscreenMode:l||i,children:l=>{let{width:o,height:t,expanded:i,expand:n,collapse:r}=l;return(0,h.jsx)(e,{...this.props,width:o,height:t,isFullScreen:i,expand:n,collapse:r})}})}}}return o.displayName=`withFullScreenWrapper(${e.displayName||e.name})`,n()(o,e)}},34752:(e,l,o)=>{o.d(l,{X:()=>r,o:()=>n});var t=o(58878),i=o(25571);class n{constructor(){this.formClearListener=void 0,this.lastWidgetMgr=void 0,this.lastFormId=void 0}manageFormClearListener(e,l,o){(0,i.se)(this.formClearListener)&&this.lastWidgetMgr===e&&this.lastFormId===l||(this.disconnect(),(0,i._L)(l)&&(this.formClearListener=e.addFormClearedListener(l,o),this.lastWidgetMgr=e,this.lastFormId=l))}disconnect(){var e;null===(e=this.formClearListener)||void 0===e||e.disconnect(),this.formClearListener=void 0,this.lastWidgetMgr=void 0,this.lastFormId=void 0}}function r(e){let{element:l,widgetMgr:o,onFormCleared:n}=e;(0,t.useEffect)((()=>{if(!(0,i._L)(l.formId))return;const e=o.addFormClearedListener(l.formId,n);return()=>{e.disconnect()}}),[l,o,n])}}}]);
|
@@ -1 +0,0 @@
|
|
1
|
-
"use strict";(self.webpackChunk_streamlit_app=self.webpackChunk_streamlit_app||[]).push([[9923],{19923:(e,t,i)=>{i.r(t),i.d(t,{default:()=>h});i(58878);var n=i(55516),s=i(89653);const o=(0,s.A)("div",{target:"e115fcil2"})((e=>{let{theme:t}=e;return{display:"flex",flexDirection:"row",flexWrap:"wrap",rowGap:t.spacing.lg}}),""),r=(0,s.A)("div",{target:"e115fcil1"})({name:"1xf0csu",styles:"display:flex;flex-direction:column;align-items:stretch;width:auto;flex-grow:0"}),d=(0,s.A)("div",{target:"e115fcil0"})((e=>{let{theme:t}=e;return{fontFamily:t.genericFonts.bodyFont,fontSize:t.fontSizes.sm,color:t.colors.fadedText60,textAlign:"center",marginTop:t.spacing.xs,wordWrap:"break-word",padding:t.spacing.threeXS}}),"");var l,a=i(90782);!function(e){e[e.OriginalWidth=-1]="OriginalWidth",e[e.ColumnWidth=-2]="ColumnWidth",e[e.AutoWidth=-3]="AutoWidth",e[e.MinImageOrContainer=-4]="MinImageOrContainer",e[e.MaxImageOrContainer=-5]="MaxImageOrContainer"}(l||(l={}));const h=(0,n.A)((function(e){let t,{width:i,isFullScreen:n,element:s,height:h,endpoints:c}=e;const u=s.width;if([l.OriginalWidth,l.AutoWidth,l.MinImageOrContainer].includes(u))t=void 0;else if([l.ColumnWidth,l.MaxImageOrContainer].includes(u))t=i;else{if(!(u>0))throw Error(`Invalid image width: ${u}`);t=u}const m={};return h&&n?(m.maxHeight=h,m.objectFit="contain"):(m.width=t,m.maxWidth="100%"),(0,a.jsx)(o,{className:"stImage","data-testid":"stImage",style:{width:i},children:s.imgs.map(((e,t)=>{const i=e;return(0,a.jsxs)(r,{"data-testid":"stImageContainer",children:[(0,a.jsx)("img",{style:m,src:c.buildMediaURL(i.url),alt:t.toString()}),i.caption&&(0,a.jsx)(d,{"data-testid":"stImageCaption",style:m,children:` ${i.caption} `})]},t)}))})}))},55516:(e,t,i)=>{i.d(t,{A:()=>w});var n=i(58878),s=i(53124),o=i.n(s),r=i(8151),d=i(41514),l=i(67214),a=i(64611),h=i(84152),c=i(25571),u=i(4883),m=i(90782);class p extends n.PureComponent{constructor(e){super(e),this.context=void 0,this.controlKeys=e=>{const{expanded:t}=this.state;27===e.keyCode&&t&&this.zoomOut()},this.zoomIn=()=>{document.body.style.overflow="hidden",this.context.setFullScreen(!0),this.setState({expanded:!0})},this.zoomOut=()=>{document.body.style.overflow="unset",this.context.setFullScreen(!1),this.setState({expanded:!1})},this.getWindowDimensions=()=>{const e=(0,c.NE)(this.props.theme.spacing.md),t=(0,c.NE)(this.props.theme.sizes.fullScreenHeaderHeight);return{fullWidth:window.innerWidth-2*e,fullHeight:window.innerHeight-(e+t)}},this.updateWindowDimensions=()=>{this.setState(this.getWindowDimensions())},this.state={expanded:!1,...this.getWindowDimensions()}}componentDidMount(){window.addEventListener("resize",this.updateWindowDimensions),document.addEventListener("keydown",this.controlKeys,!1)}componentWillUnmount(){window.removeEventListener("resize",this.updateWindowDimensions),document.removeEventListener("keydown",this.controlKeys,!1)}render(){const{expanded:e,fullWidth:t,fullHeight:i}=this.state,{children:n,width:s,height:o,disableFullscreenMode:r}=this.props;let h=d.u,c=this.zoomIn,p="View fullscreen";return e&&(h=l.Q,c=this.zoomOut,p="Exit fullscreen"),(0,m.jsxs)(u.g,{isExpanded:e,"data-testid":"stFullScreenFrame",children:[!r&&(0,m.jsx)(u.j,{"data-testid":"StyledFullScreenButton",onClick:c,title:p,isExpanded:e,children:(0,m.jsx)(a.A,{content:h})}),n(e?{width:t,height:i,expanded:e,expand:this.zoomIn,collapse:this.zoomOut}:{width:s,height:o,expanded:e,expand:this.zoomIn,collapse:this.zoomOut})]})}}p.contextType=h.n;const g=(0,r.b)(p);const w=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];class i extends n.PureComponent{constructor(){super(...arguments),this.render=()=>{const{width:i,height:n,disableFullscreenMode:s}=this.props;return(0,m.jsx)(g,{width:i,height:n,disableFullscreenMode:t||s,children:t=>{let{width:i,height:n,expanded:s,expand:o,collapse:r}=t;return(0,m.jsx)(e,{...this.props,width:i,height:n,isFullScreen:s,expand:o,collapse:r})}})}}}return i.displayName=`withFullScreenWrapper(${e.displayName||e.name})`,o()(i,e)}},41514:(e,t,i)=>{i.d(t,{u:()=>r});var n=i(68102),s=i(58878),o=i(68622),r=s.forwardRef((function(e,t){return s.createElement(o.I,(0,n.A)({iconAttrs:{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},iconVerticalAlign:"middle",iconViewBox:"0 0 8 8"},e,{ref:t}),s.createElement("path",{d:"M0 0v4l1.5-1.5L3 4l1-1-1.5-1.5L4 0H0zm5 4L4 5l1.5 1.5L4 8h4V4L6.5 5.5 5 4z"}))}));r.displayName="FullscreenEnter"},67214:(e,t,i)=>{i.d(t,{Q:()=>r});var n=i(68102),s=i(58878),o=i(68622),r=s.forwardRef((function(e,t){return s.createElement(o.I,(0,n.A)({iconAttrs:{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},iconVerticalAlign:"middle",iconViewBox:"0 0 8 8"},e,{ref:t}),s.createElement("path",{d:"M1 0L0 1l1.5 1.5L0 4h4V0L2.5 1.5 1 0zm3 4v4l1.5-1.5L7 8l1-1-1.5-1.5L8 4H4z"}))}));r.displayName="FullscreenExit"}}]);
|
@@ -1 +0,0 @@
|
|
1
|
-
"use strict";(self.webpackChunk_streamlit_app=self.webpackChunk_streamlit_app||[]).push([[9943],{55516:(e,t,n)=>{n.d(t,{A:()=>f});var i=n(58878),o=n(53124),r=n.n(o),l=n(8151),a=n(41514),s=n(67214),d=n(64611),u=n(84152),c=n(25571),m=n(4883),h=n(90782);class g extends i.PureComponent{constructor(e){super(e),this.context=void 0,this.controlKeys=e=>{const{expanded:t}=this.state;27===e.keyCode&&t&&this.zoomOut()},this.zoomIn=()=>{document.body.style.overflow="hidden",this.context.setFullScreen(!0),this.setState({expanded:!0})},this.zoomOut=()=>{document.body.style.overflow="unset",this.context.setFullScreen(!1),this.setState({expanded:!1})},this.getWindowDimensions=()=>{const e=(0,c.NE)(this.props.theme.spacing.md),t=(0,c.NE)(this.props.theme.sizes.fullScreenHeaderHeight);return{fullWidth:window.innerWidth-2*e,fullHeight:window.innerHeight-(e+t)}},this.updateWindowDimensions=()=>{this.setState(this.getWindowDimensions())},this.state={expanded:!1,...this.getWindowDimensions()}}componentDidMount(){window.addEventListener("resize",this.updateWindowDimensions),document.addEventListener("keydown",this.controlKeys,!1)}componentWillUnmount(){window.removeEventListener("resize",this.updateWindowDimensions),document.removeEventListener("keydown",this.controlKeys,!1)}render(){const{expanded:e,fullWidth:t,fullHeight:n}=this.state,{children:i,width:o,height:r,disableFullscreenMode:l}=this.props;let u=a.u,c=this.zoomIn,g="View fullscreen";return e&&(u=s.Q,c=this.zoomOut,g="Exit fullscreen"),(0,h.jsxs)(m.g,{isExpanded:e,"data-testid":"stFullScreenFrame",children:[!l&&(0,h.jsx)(m.j,{"data-testid":"StyledFullScreenButton",onClick:c,title:g,isExpanded:e,children:(0,h.jsx)(d.A,{content:u})}),i(e?{width:t,height:n,expanded:e,expand:this.zoomIn,collapse:this.zoomOut}:{width:o,height:r,expanded:e,expand:this.zoomIn,collapse:this.zoomOut})]})}}g.contextType=u.n;const p=(0,l.b)(g);const f=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];class n extends i.PureComponent{constructor(){super(...arguments),this.render=()=>{const{width:n,height:i,disableFullscreenMode:o}=this.props;return(0,h.jsx)(p,{width:n,height:i,disableFullscreenMode:t||o,children:t=>{let{width:n,height:i,expanded:o,expand:r,collapse:l}=t;return(0,h.jsx)(e,{...this.props,width:n,height:i,isFullScreen:o,expand:r,collapse:l})}})}}}return n.displayName=`withFullScreenWrapper(${e.displayName||e.name})`,r()(n,e)}},85850:(e,t,n)=>{n.d(t,{K:()=>v,A:()=>y});n(58878);var i=n(8151),o=n(12274),r=n(63186),l=n(34914),a=n(997),s=n(36459),d=n(84720),u=n(64611),c=n(89653),m=n(58144);const h="-2.4rem",g=(0,c.A)("div",{target:"e2wxzia1"})((e=>{let{theme:t,locked:n,target:i}=e;return{padding:`${t.spacing.sm} 0 ${t.spacing.sm} ${t.spacing.sm}`,position:"absolute",top:n?h:"-1rem",right:t.spacing.none,transition:"none",...!n&&{opacity:0,"&:active, &:focus-visible, &:hover":{transition:"opacity 150ms 100ms, top 100ms 100ms",opacity:1,top:h},...i&&{[`${i}:hover &, ${i}:active &, ${i}:focus-visible &`]:{transition:"opacity 150ms 100ms, top 100ms 100ms",opacity:1,top:h}}}}}),""),p=(0,c.A)("div",{target:"e2wxzia0"})((e=>{let{theme:t}=e;return{color:(0,m.iq)(t)?t.colors.fadedText60:t.colors.bodyText,display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"flex-end",boxShadow:"1px 2px 8px rgba(0, 0, 0, 0.08)",borderRadius:t.radii.default,backgroundColor:t.colors.lightenedBg05,width:"fit-content",zIndex:t.zIndices.sidebar+1}}),"");var f=n(90782);function v(e){let{label:t,show_label:n,icon:o,onClick:r}=e;const c=(0,i.u)(),m=n?t:"";return(0,f.jsx)("div",{"data-testid":"stElementToolbarButton",children:(0,f.jsx)(a.A,{content:(0,f.jsx)(l.Ay,{source:t,allowHTML:!1,style:{fontSize:c.fontSizes.sm}}),placement:a.W.TOP,onMouseEnterDelay:1e3,inline:!0,children:(0,f.jsxs)(s.Ay,{onClick:e=>{r&&r(),e.stopPropagation()},kind:d.KX.ELEMENT_TOOLBAR,"aria-label":t,children:[o&&(0,f.jsx)(u.A,{content:o,size:"md",testid:"stElementToolbarButtonIcon"}),m&&(0,f.jsx)("span",{children:m})]})})})}const y=e=>{let{onExpand:t,onCollapse:n,isFullScreen:i,locked:l,children:a,target:s,disableFullscreenMode:d}=e;return(0,f.jsx)(g,{className:"stElementToolbar","data-testid":"stElementToolbar",locked:l||i,target:s,children:(0,f.jsxs)(p,{children:[a,t&&!d&&!i&&(0,f.jsx)(v,{label:"Fullscreen",icon:o.g,onClick:()=>t()}),n&&!d&&i&&(0,f.jsx)(v,{label:"Close fullscreen",icon:r.Q,onClick:()=>n()})]})})}},251:(e,t,n)=>{n.r(t),n.d(t,{default:()=>Rt});var i=n(58878),o=n(35753),r=n(79104),l=n(52583),a=n(68994),s=n(95241),d=n(61730),u=n(18364),c=n(2128),m=n(34752),h=n(55516),g=n(29669),p=n(25571),f=n(85850),v=n(84152),y=n(37638),b=n.n(y),w=n(30136),x=n.n(w),C=n(17643),M=n.n(C),S=(n(20641),n(91381)),E=n.n(S),k=n(37904),T=n.n(k),N=n(34694),R=n(85729);const I=["true","t","yes","y","on","1"],_=["false","f","no","n","off","0"];function O(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return e=`\u26a0\ufe0f ${e}`,{kind:o.dd.Text,readonly:!0,allowOverlay:!0,data:e+(t?`\n\n${t}\n`:""),displayData:e,isError:!0}}function D(e){return e.hasOwnProperty("isError")&&e.isError}function A(e){return e.hasOwnProperty("isMissingValue")&&e.isMissingValue}function F(){return arguments.length>0&&void 0!==arguments[0]&&arguments[0]?{kind:o.dd.Loading,allowOverlay:!1,isMissingValue:!0}:{kind:o.dd.Loading,allowOverlay:!1}}function z(e,t){const n=t?"faded":"normal";return{kind:o.dd.Text,data:"",displayData:"",allowOverlay:!0,readonly:e,style:n}}function $(e){return{id:e.id,title:e.title,hasMenu:!1,themeOverride:e.themeOverride,icon:e.icon,group:e.group,...e.isStretched&&{grow:e.isIndex?1:3},...e.width&&{width:e.width}}}function L(e,t){return(0,p.hX)(e)?t||{}:(0,p.hX)(t)?e||{}:b()(e,t)}function H(e){if((0,p.hX)(e))return[];if("number"===typeof e||"boolean"===typeof e)return[e];if("string"===typeof e){if(""===e)return[];if(!e.trim().startsWith("[")||!e.trim().endsWith("]"))return e.split(",");try{return JSON.parse(e)}catch(t){return[e]}}try{const t=JSON.parse(JSON.stringify(e,((e,t)=>"bigint"===typeof t?Number(t):t)));return Array.isArray(t)?t.map((e=>["string","number","boolean","null"].includes(typeof e)?e:X(e))):[X(t)]}catch(t){return[X(e)]}}function X(e){try{try{return x()(e)}catch(t){return JSON.stringify(e,((e,t)=>"bigint"===typeof t?Number(t):t))}}catch(t){return`[${typeof e}]`}}function V(e){if((0,p.hX)(e))return null;if("boolean"===typeof e)return e;const t=X(e).toLowerCase().trim();return""===t?null:!!I.includes(t)||!_.includes(t)&&void 0}function W(e){if((0,p.hX)(e))return null;if(Array.isArray(e))return NaN;if("string"===typeof e){if(0===e.trim().length)return null;try{const t=T().unformat(e.trim());if((0,p.se)(t))return t}catch(t){}}else if(e instanceof Int32Array)return Number(e[0]);return Number(e)}function j(e,t,n){return Number.isNaN(e)||!Number.isFinite(e)?"":(0,p.hX)(t)||""===t?(0===n&&(e=Math.round(e)),T()(e).format((0,p.se)(n)?`0,0.${"0".repeat(n)}`:"0,0.[0000]")):"percent"===t?new Intl.NumberFormat(void 0,{style:"percent",minimumFractionDigits:2,maximumFractionDigits:2}).format(e):["compact","scientific","engineering"].includes(t)?new Intl.NumberFormat(void 0,{notation:t}).format(e):"duration[ns]"===t?M().duration(e/1e6,"milliseconds").humanize():t.startsWith("period[")?R.D0.formatPeriodType(BigInt(e),t):(0,N.sprintf)(t,e)}function B(e,t){return"locale"===t?new Intl.DateTimeFormat(void 0,{dateStyle:"medium",timeStyle:"medium"}).format(e.toDate()):"distance"===t?e.fromNow():"relative"===t?e.calendar():e.format(t)}function P(e){if((0,p.hX)(e))return null;if(e instanceof Date)return isNaN(e.getTime())?void 0:e;if("string"===typeof e&&0===e.trim().length)return null;try{const t=Number(e);if(!isNaN(t)){let e=t;t>=10**18?e=t/1e3**3:t>=10**15?e=t/1e6:t>=10**12&&(e=t/1e3);const n=M().unix(e).utc();if(n.isValid())return n.toDate()}if("string"===typeof e){const t=M().utc(e);if(t.isValid())return t.toDate();const n=M().utc(e,[M().HTML5_FMT.TIME_MS,M().HTML5_FMT.TIME_SECONDS,M().HTML5_FMT.TIME]);if(n.isValid())return n.toDate()}}catch(t){return}}function Y(e){if(e%1===0)return 0;let t=e.toString();return-1!==t.indexOf("e")&&(t=e.toLocaleString("fullwide",{useGrouping:!1,maximumFractionDigits:20})),-1===t.indexOf(".")?0:t.split(".")[1].length}const U=new RegExp(/(\r\n|\n|\r)/gm);function q(e){return-1!==e.indexOf("\n")?e.replace(U," "):e}var J=n(8151),K=n(84996);function G(e){const t={kind:o.dd.Text,data:"",displayData:"",allowOverlay:!0,contentAlignment:e.contentAlignment,readonly:!0,style:e.isIndex?"faded":"normal"};return{...e,kind:"object",sortMode:"default",isEditable:!1,getCell(e){try{const n=(0,p.se)(e)?X(e):null,i=(0,p.se)(n)?q(n):"";return{...t,data:n,displayData:i,isMissingValue:(0,p.hX)(e)}}catch(n){return O(X(e),`The value cannot be interpreted as a string. Error: ${n}`)}},getCellValue:e=>void 0===e.data?null:e.data}}G.isEditableType=!1;const Z=G;function Q(e){const t=e.columnTypeOptions||{};let n;if(t.validate)try{n=new RegExp(t.validate,"us")}catch(l){n=`Invalid validate regex: ${t.validate}.\nError: ${l}`}const i={kind:o.dd.Text,data:"",displayData:"",allowOverlay:!0,contentAlignment:e.contentAlignment,readonly:!e.isEditable,style:e.isIndex?"faded":"normal"},r=i=>{if((0,p.hX)(i))return!e.isRequired;let o=X(i),r=!1;return t.max_chars&&o.length>t.max_chars&&(o=o.slice(0,t.max_chars),r=!0),!(n instanceof RegExp&&!1===n.test(o))&&(!r||o)};return{...e,kind:"text",sortMode:"default",validateInput:r,getCell(e,t){if("string"===typeof n)return O(X(e),n);if(t){const t=r(e);if(!1===t)return O(X(e),"Invalid input.");"string"===typeof t&&(e=t)}try{const t=(0,p.se)(e)?X(e):null,n=(0,p.se)(t)?q(t):"";return{...i,isMissingValue:(0,p.hX)(t),data:t,displayData:n}}catch(l){return O("Incompatible value",`The value cannot be interpreted as string. Error: ${l}`)}},getCellValue:e=>void 0===e.data?null:e.data}}Q.isEditableType=!0;const ee=Q;function te(e,t){return e=t.startsWith("+")||t.startsWith("-")?e.utcOffset(t,!1):e.tz(t)}function ne(e,t,n,i,r,l,a){var s;const d=L({format:n,step:i,timezone:a},t.columnTypeOptions);let u,c,m;if((0,p.se)(d.timezone))try{var h;u=(null===(h=te(E()(),d.timezone))||void 0===h?void 0:h.utcOffset())||void 0}catch(v){}(0,p.se)(d.min_value)&&(c=P(d.min_value)||void 0),(0,p.se)(d.max_value)&&(m=P(d.max_value)||void 0);const g={kind:o.dd.Custom,allowOverlay:!0,copyData:"",readonly:!t.isEditable,contentAlign:t.contentAlignment,style:t.isIndex?"faded":"normal",data:{kind:"date-picker-cell",date:void 0,displayDate:"",step:(null===(s=d.step)||void 0===s?void 0:s.toString())||"1",format:r,min:c,max:m}},f=e=>{const n=P(e);return null===n?!t.isRequired:void 0!==n&&(!((0,p.se)(c)&&l(n)<l(c))&&!((0,p.se)(m)&&l(n)>l(m)))};return{...t,kind:e,sortMode:"default",validateInput:f,getCell(e,t){if(!0===t){const t=f(e);if(!1===t)return O(X(e),"Invalid input.");t instanceof Date&&(e=t)}const i=P(e);let o="",r="",l=u;if(void 0===i)return O(X(e),"The value cannot be interpreted as a datetime object.");if(null!==i){let e=E().utc(i);if(!e.isValid())return O(X(i),`This should never happen. Please report this bug. \nError: ${e.toString()}`);if(d.timezone){try{e=te(e,d.timezone)}catch(v){return O(e.toISOString(),`Failed to adjust to the provided timezone: ${d.timezone}. \nError: ${v}`)}l=e.utcOffset()}try{r=B(e,d.format||n)}catch(v){return O(e.toISOString(),`Failed to format the date for rendering with: ${d.format}. \nError: ${v}`)}o=B(e,n)}return{...g,copyData:o,isMissingValue:(0,p.hX)(i),data:{...g.data,date:i,displayDate:r,timezoneOffset:l}}},getCellValue(e){var t;return(0,p.hX)(null===e||void 0===e||null===(t=e.data)||void 0===t?void 0:t.date)?null:l(e.data.date)}}}function ie(e){var t,n,i,o,r;let l="YYYY-MM-DD HH:mm:ss";(null===(t=e.columnTypeOptions)||void 0===t?void 0:t.step)>=60?l="YYYY-MM-DD HH:mm":(null===(n=e.columnTypeOptions)||void 0===n?void 0:n.step)<1&&(l="YYYY-MM-DD HH:mm:ss.SSS");const a=null===(i=e.arrowType)||void 0===i||null===(o=i.meta)||void 0===o?void 0:o.timezone,s=(0,p.se)(a)||(0,p.se)(null===e||void 0===e||null===(r=e.columnTypeOptions)||void 0===r?void 0:r.timezone);return ne("datetime",e,s?l+"Z":l,1,"datetime-local",(e=>s?e.toISOString():e.toISOString().replace("Z","")),a)}function oe(e){var t,n;let i="HH:mm:ss";return(null===(t=e.columnTypeOptions)||void 0===t?void 0:t.step)>=60?i="HH:mm":(null===(n=e.columnTypeOptions)||void 0===n?void 0:n.step)<1&&(i="HH:mm:ss.SSS"),ne("time",e,i,1,"time",(e=>e.toISOString().split("T")[1].replace("Z","")))}function re(e){return ne("date",e,"YYYY-MM-DD",1,"date",(e=>e.toISOString().split("T")[0]))}function le(e){const t={kind:o.dd.Boolean,data:!1,allowOverlay:!1,contentAlign:e.contentAlignment,readonly:!e.isEditable,style:e.isIndex?"faded":"normal"};return{...e,kind:"checkbox",sortMode:"default",getCell(e){let n=null;return n=V(e),void 0===n?O(X(e),"The value cannot be interpreted as boolean."):{...t,data:n,isMissingValue:(0,p.hX)(n)}},getCellValue:e=>void 0===e.data?null:e.data}}ie.isEditableType=!0,oe.isEditableType=!0,re.isEditableType=!0,le.isEditableType=!0;const ae=le;function se(e){return e.startsWith("int")&&!e.startsWith("interval")||"range"===e||e.startsWith("uint")}function de(e){const t=R.D0.getTypeName(e.arrowType);let n;"timedelta64[ns]"===t?n="duration[ns]":t.startsWith("period[")&&(n=t);const i=L({step:se(t)?1:void 0,min_value:t.startsWith("uint")?0:void 0,format:n},e.columnTypeOptions),r=(0,p.hX)(i.min_value)||i.min_value<0,l=(0,p.se)(i.step)&&!Number.isNaN(i.step)?Y(i.step):void 0,a={kind:o.dd.Number,data:void 0,displayData:"",readonly:!e.isEditable,allowOverlay:!0,contentAlign:e.contentAlignment||"right",style:e.isIndex?"faded":"normal",allowNegative:r,fixedDecimals:l,thousandSeparator:""},s=t=>{let n=W(t);if((0,p.hX)(n))return!e.isRequired;if(Number.isNaN(n))return!1;let o=!1;return(0,p.se)(i.max_value)&&n>i.max_value&&(n=i.max_value,o=!0),!((0,p.se)(i.min_value)&&n<i.min_value)&&(!o||n)};return{...e,kind:"number",sortMode:"smart",validateInput:s,getCell(e,t){if(!0===t){const t=s(e);if(!1===t)return O(X(e),"Invalid input.");"number"===typeof t&&(e=t)}let n=W(e),o="";if((0,p.se)(n)){if(Number.isNaN(n))return O(X(e),"The value cannot be interpreted as a number.");if((0,p.se)(l)&&(r=n,n=0===(d=l)?Math.trunc(r):Math.trunc(r*10**d)/10**d),Number.isInteger(n)&&!Number.isSafeInteger(n))return O(X(e),"The value is larger than the maximum supported integer values in number columns (2^53).");try{o=j(n,i.format,l)}catch(u){return O(X(n),(0,p.se)(i.format)?`Failed to format the number based on the provided format configuration: (${i.format}). Error: ${u}`:`Failed to format the number. Error: ${u}`)}}var r,d;return{...a,data:n,displayData:o,isMissingValue:(0,p.hX)(n),copyData:(0,p.hX)(n)?"":X(n)}},getCellValue:e=>void 0===e.data?null:e.data}}de.isEditableType=!0;const ue=de;function ce(e){let t="string";const n=L({options:"bool"===R.D0.getTypeName(e.arrowType)?[!0,!1]:[]},e.columnTypeOptions),i=new Set(n.options.map((e=>typeof e)));1===i.size&&(i.has("number")||i.has("bigint")?t="number":i.has("boolean")&&(t="boolean"));const r={kind:o.dd.Custom,allowOverlay:!0,copyData:"",contentAlign:e.contentAlignment,readonly:!e.isEditable,style:e.isIndex?"faded":"normal",data:{kind:"dropdown-cell",allowedValues:[...!0!==e.isRequired?[null]:[],...n.options.filter((e=>null!==e&&""!==e)).map((e=>X(e)))],value:""}};return{...e,kind:"selectbox",sortMode:"default",getCell(e,t){let n=null;return(0,p.se)(e)&&""!==e&&(n=X(e)),t&&!r.data.allowedValues.includes(n)?O(X(n),"The value is not part of the allowed options."):{...r,isMissingValue:null===n,copyData:n||"",data:{...r.data,value:n}}},getCellValue(e){var n,i,o,r,l,a,s;return(0,p.hX)(null===(n=e.data)||void 0===n?void 0:n.value)||""===(null===(i=e.data)||void 0===i?void 0:i.value)?null:"number"===t?null!==(r=W(null===(l=e.data)||void 0===l?void 0:l.value))&&void 0!==r?r:null:"boolean"===t?null!==(a=V(null===(s=e.data)||void 0===s?void 0:s.value))&&void 0!==a?a:null:null===(o=e.data)||void 0===o?void 0:o.value}}}ce.isEditableType=!0;const me=ce;function he(e){const t={kind:o.dd.Bubble,data:[],allowOverlay:!0,contentAlign:e.contentAlignment,style:e.isIndex?"faded":"normal"};return{...e,kind:"list",sortMode:"default",isEditable:!1,getCell(e){const n=(0,p.hX)(e)?[]:H(e);return{...t,data:n,isMissingValue:(0,p.hX)(e),copyData:(0,p.hX)(e)?"":X(n.map((e=>"string"===typeof e&&e.includes(",")?e.replace(/,/g," "):e)))}},getCellValue:e=>(0,p.hX)(e.data)||A(e)?null:e.data}}he.isEditableType=!1;const ge=he;function pe(e,t,n){const i=new RegExp(`${e}[,\\s].*{(?:[^}]*[\\s;]{1})?${t}:\\s*([^;}]+)[;]?.*}`,"gm");n=n.replace(/{/g," {");const o=i.exec(n);if(o)return o[1].trim()}function fe(e,t){const n=e.types.index[t],i=e.indexNames[t];let o=!0;return"range"===R.D0.getTypeName(n)&&(o=!1),{id:`index-${t}`,name:i,title:i,isEditable:o,arrowType:n,isIndex:!0,isHidden:!1}}function ve(e,t){const n=e.columns.map((e=>e[t])),i=n.length>0?n[n.length-1]:"",o=n.length>1?n.filter((e=>""!==e)).slice(0,-1).join(" / "):void 0;let r,l=e.types.data[t];if((0,p.hX)(l)&&(l={meta:null,numpy_type:"object",pandas_type:"object"}),"categorical"===R.D0.getTypeName(l)){const n=e.getCategoricalOptions(t);(0,p.se)(n)&&(r={options:n})}return{id:`column-${i}-${t}`,name:i,title:i,isEditable:!0,arrowType:l,columnTypeOptions:r,isIndex:!1,isHidden:!1,group:o}}function ye(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;const i=e.arrowType?R.D0.getTypeName(e.arrowType):null;let r;if("object"===e.kind)r=e.getCell((0,p.se)(t.content)?q(R.D0.format(t.content,t.contentType,t.field)):null);else if(["time","date","datetime"].includes(e.kind)&&(0,p.se)(t.content)&&("number"===typeof t.content||"bigint"===typeof t.content)){var l,a;let n;var s,d,u;if("time"===i&&(0,p.se)(null===(l=t.field)||void 0===l||null===(a=l.type)||void 0===a?void 0:a.unit))n=M().unix(R.D0.convertToSeconds(t.content,null!==(s=null===(d=t.field)||void 0===d||null===(u=d.type)||void 0===u?void 0:u.unit)&&void 0!==s?s:0)).utc().toDate();else n=M().utc(Number(t.content)).toDate();r=e.getCell(n)}else if("decimal"===i){const n=(0,p.hX)(t.content)?null:R.D0.format(t.content,t.contentType,t.field);r=e.getCell(n)}else r=e.getCell(t.content);if(D(r))return r;if(!e.isEditable){if((0,p.se)(t.displayContent)){var c,m,h,g;const n=q(t.displayContent);r.kind===o.dd.Text||r.kind===o.dd.Number&&(0,p.hX)(null===(c=e.columnTypeOptions)||void 0===c?void 0:c.format)||r.kind===o.dd.Uri&&(0,p.hX)(null===(m=e.columnTypeOptions)||void 0===m?void 0:m.display_text)?r={...r,displayData:n}:r.kind===o.dd.Custom&&"date-picker-cell"===(null===(h=r.data)||void 0===h?void 0:h.kind)&&(0,p.hX)(null===(g=e.columnTypeOptions)||void 0===g?void 0:g.format)&&(r={...r,data:{...r.data,displayDate:n}})}n&&t.cssId&&(r=function(e,t,n){const i={},o=pe(t,"color",n);o&&(i.textDark=o);const r=pe(t,"background-color",n);return r&&(i.bgCell=r),"yellow"===r&&void 0===o&&(i.textDark="#31333F"),i?{...e,themeOverride:i}:e}(r,t.cssId,n))}return r}function be(e,t,n){const i=L({y_min:0,y_max:1},t.columnTypeOptions),r={kind:o.dd.Custom,allowOverlay:!1,copyData:"",contentAlign:t.contentAlignment,data:{kind:"sparkline-cell",values:[],displayValues:[],graphKind:n,yAxis:[i.y_min,i.y_max]}};return{...t,kind:e,sortMode:"default",isEditable:!1,getCell(e){if((0,p.hX)(i.y_min)||(0,p.hX)(i.y_max)||Number.isNaN(i.y_min)||Number.isNaN(i.y_max)||i.y_min>=i.y_max)return O("Invalid min/max y-axis configuration",`The y_min (${i.y_min}) and y_max (${i.y_max}) configuration options must be valid numbers.`);if((0,p.hX)(e))return F();const t=H(e),n=[];let o=[];if(0===t.length)return F();let l=Number.MIN_SAFE_INTEGER,a=Number.MAX_SAFE_INTEGER;for(let i=0;i<t.length;i++){const e=W(t[i]);if(Number.isNaN(e)||(0,p.hX)(e))return O(X(t),`The value cannot be interpreted as a numeric array. ${X(e)} is not a number.`);e>l&&(l=e),e<a&&(a=e),n.push(e)}return o=n.length>0&&(l>i.y_max||a<i.y_min)?n.map((e=>l-a===0?l>(i.y_max||1)?i.y_max||1:i.y_min||0:((i.y_max||1)-(i.y_min||0))*((e-a)/(l-a))+(i.y_min||0))):n,{...r,copyData:n.join(","),data:{...r.data,values:o,displayValues:n.map((e=>j(e)))},isMissingValue:(0,p.hX)(e)}},getCellValue(e){var t,n;return e.kind===o.dd.Loading||void 0===(null===(t=e.data)||void 0===t?void 0:t.values)?null:null===(n=e.data)||void 0===n?void 0:n.values}}}function we(e){return be("line_chart",e,"line")}function xe(e){return be("bar_chart",e,"bar")}function Ce(e){return be("area_chart",e,"area")}function Me(e){const t={kind:o.dd.Image,data:[],displayData:[],readonly:!0,allowOverlay:!0,contentAlign:e.contentAlignment||"center",style:e.isIndex?"faded":"normal"};return{...e,kind:"image",sortMode:"default",isEditable:!1,getCell(e){const n=(0,p.se)(e)?[X(e)]:[];return{...t,data:n,isMissingValue:!(0,p.se)(e),displayData:n}},getCellValue:e=>void 0===e.data||0===e.data.length?null:e.data[0]}}we.isEditableType=!1,xe.isEditableType=!1,Ce.isEditableType=!1,Me.isEditableType=!1;const Se=Me;function Ee(e){const t=e.columnTypeOptions||{};let n,i;if(t.validate)try{n=new RegExp(t.validate,"us")}catch(a){n=`Invalid validate regex: ${t.validate}.\nError: ${a}`}if(!(0,p.hX)(t.display_text)&&t.display_text.includes("(")&&t.display_text.includes(")"))try{i=new RegExp(t.display_text,"us")}catch(a){i=void 0}const r={kind:o.dd.Uri,readonly:!e.isEditable,allowOverlay:!0,contentAlign:e.contentAlignment,style:e.isIndex?"faded":"normal",hoverEffect:!0,data:"",displayData:"",copyData:""},l=i=>{if((0,p.hX)(i))return!e.isRequired;const o=X(i);return!(t.max_chars&&o.length>t.max_chars)&&!(n instanceof RegExp&&!1===n.test(o))};return{...e,kind:"link",sortMode:"default",validateInput:l,getCell(e,o){if((0,p.hX)(e))return{...r,data:null,isMissingValue:!0,onClickUri:()=>{}};const s=e;if("string"===typeof n)return O(X(s),n);if(o){if(!1===l(s))return O(X(s),"Invalid input.")}let d="";return s&&(d=void 0!==i?function(e,t){if((0,p.hX)(t))return"";try{const n=t.match(e);return n&&void 0!==n[1]?decodeURI(n[1]):t}catch(a){return t}}(i,s):t.display_text||s),{...r,data:s,displayData:d,isMissingValue:(0,p.hX)(s),onClickUri:e=>{window.open(s.startsWith("www.")?`https://${s}`:s,"_blank","noopener,noreferrer"),e.preventDefault()},copyData:s}},getCellValue:e=>(0,p.hX)(e.data)?null:e.data}}Ee.isEditableType=!0;const ke=Ee;function Te(e){const t=se(R.D0.getTypeName(e.arrowType)),n=L({min_value:0,max_value:t?100:1,step:t?1:.01,format:t?"%3d%%":"percent"},e.columnTypeOptions);let i;try{i=j(n.max_value,n.format)}catch(a){i=X(n.max_value)}const r=(0,p.hX)(n.step)||Number.isNaN(n.step)?void 0:Y(n.step),l={kind:o.dd.Custom,allowOverlay:!1,copyData:"",contentAlign:e.contentAlignment,data:{kind:"range-cell",min:n.min_value,max:n.max_value,step:n.step,value:n.min_value,label:String(n.min_value),measureLabel:i,readonly:!0}};return{...e,kind:"progress",sortMode:"smart",isEditable:!1,getCell(e){if((0,p.hX)(e))return F();if((0,p.hX)(n.min_value)||(0,p.hX)(n.max_value)||Number.isNaN(n.min_value)||Number.isNaN(n.max_value)||n.min_value>=n.max_value)return O("Invalid min/max parameters",`The min_value (${n.min_value}) and max_value (${n.max_value}) parameters must be valid numbers.`);if((0,p.hX)(n.step)||Number.isNaN(n.step))return O("Invalid step parameter",`The step parameter (${n.step}) must be a valid number.`);const t=W(e);if(Number.isNaN(t)||(0,p.hX)(t))return O(X(e),"The value cannot be interpreted as a number.");if(Number.isInteger(t)&&!Number.isSafeInteger(t))return O(X(e),"The value is larger than the maximum supported integer values in number columns (2^53).");let i="";try{i=j(t,n.format,r)}catch(a){return O(X(t),(0,p.se)(n.format)?`Failed to format the number based on the provided format configuration: (${n.format}). Error: ${a}`:`Failed to format the number. Error: ${a}`)}const o=Math.min(n.max_value,Math.max(n.min_value,t));return{...l,isMissingValue:(0,p.hX)(e),copyData:String(t),data:{...l.data,value:o,label:i}}},getCellValue(e){var t,n;return e.kind===o.dd.Loading||void 0===(null===(t=e.data)||void 0===t?void 0:t.value)?null:null===(n=e.data)||void 0===n?void 0:n.value}}}Te.isEditableType=!1;const Ne=Te,Re=new Map(Object.entries({object:Z,text:ee,checkbox:ae,selectbox:me,list:ge,number:ue,link:ke,datetime:ie,date:re,time:oe,line_chart:we,bar_chart:xe,area_chart:Ce,image:Se,progress:Ne})),Ie=[],_e="_index",Oe="_pos:",De={small:75,medium:200,large:400};function Ae(e){if(!(0,p.hX)(e))return"number"===typeof e?e:e in De?De[e]:void 0}function Fe(e,t){if(!t)return e;let n;return t.has(e.name)&&e.name!==_e?n=t.get(e.name):t.has(`${Oe}${e.indexNumber}`)?n=t.get(`${Oe}${e.indexNumber}`):e.isIndex&&t.has(_e)&&(n=t.get(_e)),n?b()({...e},{title:n.label,width:Ae(n.width),isEditable:(0,p.se)(n.disabled)?!n.disabled:void 0,isHidden:n.hidden,isRequired:n.required,columnTypeOptions:n.type_config,contentAlignment:n.alignment,defaultValue:n.default,help:n.help}):e}function ze(e){var t;const n=null===(t=e.columnTypeOptions)||void 0===t?void 0:t.type;let i;return(0,p.se)(n)&&(Re.has(n)?i=Re.get(n):(0,K.FF)(`Unknown column type configured in column configuration: ${n}`)),(0,p.hX)(i)&&(i=function(e){let t=e?R.D0.getTypeName(e):null;return t?(t=t.toLowerCase().trim(),["unicode","empty","large_string[pyarrow]"].includes(t)?ee:["datetime","datetimetz"].includes(t)?ie:"time"===t?oe:"date"===t?re:["object","bytes"].includes(t)?Z:["bool"].includes(t)?ae:["int8","int16","int32","int64","uint8","uint16","uint32","uint64","float16","float32","float64","float96","float128","range","decimal"].includes(t)?ue:"categorical"===t?me:t.startsWith("list")?ge:Z):Z}(e.arrowType)),i}const $e=function(e,t,n){const o=(0,J.u)(),r=i.useMemo((()=>function(e){if(!e)return new Map;try{return new Map(Object.entries(JSON.parse(e)))}catch(t){return(0,K.vV)(t),new Map}}(e.columns)),[e.columns]),l=e.useContainerWidth||(0,p.se)(e.width)&&e.width>0;return{columns:i.useMemo((()=>{let i=function(e){const t=[],{dimensions:n}=e,i=n.headerColumns,o=n.dataColumns;if(0===i&&0===o)return t.push({id:"empty-index",title:"",indexNumber:0,isEditable:!1,isIndex:!0}),t;for(let r=0;r<i;r++){const n={...fe(e,r),indexNumber:r};t.push(n)}for(let r=0;r<o;r++){const n={...ve(e,r),indexNumber:r+i};t.push(n)}return t}(t).map((t=>{let i={...t,...Fe(t,r),isStretched:l};const a=ze(i);return(e.editingMode===g.i3.EditingMode.READ_ONLY||n||!1===a.isEditableType)&&(i={...i,isEditable:!1}),e.editingMode!==g.i3.EditingMode.READ_ONLY&&1==i.isEditable&&(i={...i,icon:"editable"},i.isRequired&&e.editingMode===g.i3.EditingMode.DYNAMIC&&(i={...i,isHidden:!1})),a(i,o)})).filter((e=>!e.isHidden));if(e.columnOrder&&e.columnOrder.length>0){const t=[];i.forEach((e=>{e.isIndex&&t.push(e)})),e.columnOrder.forEach((e=>{const n=i.find((t=>t.name===e));n&&!n.isIndex&&t.push(n)})),i=t}return i.length>0?i:[Z({id:"empty-index",title:"",indexNumber:0,isEditable:!1,isIndex:!0})]}),[t,r,l,n,e.editingMode,e.columnOrder,o])}};function Le(e){return e.isIndex?_e:(0,p.hX)(e.name)?"":e.name}const He=class{constructor(e){this.editedCells=new Map,this.addedRows=[],this.deletedRows=[],this.numRows=0,this.numRows=e}toJson(e){const t=new Map;e.forEach((e=>{t.set(e.indexNumber,e)}));const n={edited_rows:{},added_rows:[],deleted_rows:[]};this.editedCells.forEach(((e,i,o)=>{const r={};e.forEach(((e,n,i)=>{const o=t.get(n);o&&(r[Le(o)]=o.getCellValue(e))})),n.edited_rows[i]=r})),this.addedRows.forEach((e=>{const i={};let o=!1;e.forEach(((e,n,r)=>{const l=t.get(n);if(l){const t=l.getCellValue(e);l.isRequired&&l.isEditable&&A(e)&&(o=!0),(0,p.se)(t)&&(i[Le(l)]=t)}})),o||n.added_rows.push(i)})),n.deleted_rows=this.deletedRows;return JSON.stringify(n,((e,t)=>void 0===t?null:t))}fromJson(e,t){this.editedCells=new Map,this.addedRows=[],this.deletedRows=[];const n=JSON.parse(e),i=new Map;t.forEach((e=>{i.set(e.indexNumber,e)}));const o=new Map;t.forEach((e=>{o.set(Le(e),e)})),Object.keys(n.edited_rows).forEach((e=>{const t=Number(e),i=n.edited_rows[e];Object.keys(i).forEach((e=>{const n=i[e],r=o.get(e);if(r){const e=r.getCell(n);var l;if(e)this.editedCells.has(t)||this.editedCells.set(t,new Map),null===(l=this.editedCells.get(t))||void 0===l||l.set(r.indexNumber,e)}}))})),n.added_rows.forEach((e=>{const n=new Map;t.forEach((e=>{n.set(e.indexNumber,e.getCell(null))})),Object.keys(e).forEach((t=>{const i=e[t],r=o.get(t);if(r){const e=r.getCell(i);e&&n.set(r.indexNumber,e)}})),this.addedRows.push(n)})),this.deletedRows=n.deleted_rows}isAddedRow(e){return e>=this.numRows}getCell(e,t){if(this.isAddedRow(t))return this.addedRows[t-this.numRows].get(e);const n=this.editedCells.get(t);return void 0!==n?n.get(e):void 0}setCell(e,t,n){if(this.isAddedRow(t)){if(t-this.numRows>=this.addedRows.length)return;this.addedRows[t-this.numRows].set(e,n)}else{void 0===this.editedCells.get(t)&&this.editedCells.set(t,new Map);this.editedCells.get(t).set(e,n)}}addRow(e){this.addedRows.push(e)}deleteRows(e){e.sort(((e,t)=>t-e)).forEach((e=>{this.deleteRow(e)}))}deleteRow(e){(0,p.hX)(e)||e<0||(this.isAddedRow(e)?this.addedRows.splice(e-this.numRows,1):(this.deletedRows.includes(e)||(this.deletedRows.push(e),this.deletedRows=this.deletedRows.sort(((e,t)=>e-t))),this.editedCells.delete(e)))}getOriginalRowIndex(e){let t=e;for(let n=0;n<this.deletedRows.length&&!(this.deletedRows[n]>t);n++)t+=1;return t}getNumRows(){return this.numRows+this.addedRows.length-this.deletedRows.length}};var Xe=n(32735);const Ve=function(){const e=(0,J.u)(),t=i.useMemo((()=>({editable:e=>`<svg xmlns="http://www.w3.org/2000/svg" height="40" viewBox="0 96 960 960" width="40" fill="${e.bgColor}"><path d="m800.641 679.743-64.384-64.384 29-29q7.156-6.948 17.642-6.948 10.485 0 17.742 6.948l29 29q6.948 7.464 6.948 17.95 0 10.486-6.948 17.434l-29 29Zm-310.64 246.256v-64.383l210.82-210.821 64.384 64.384-210.821 210.82h-64.383Zm-360-204.872v-50.254h289.743v50.254H130.001Zm0-162.564v-50.255h454.615v50.255H130.001Zm0-162.307v-50.255h454.615v50.255H130.001Z"/></svg>`})),[]);return{theme:i.useMemo((()=>({accentColor:e.colors.primary,accentFg:e.colors.white,accentLight:(0,Xe.No)(e.colors.primary,.9),borderColor:e.colors.borderColorLight,horizontalBorderColor:e.colors.borderColorLight,fontFamily:e.genericFonts.bodyFont,bgSearchResult:(0,Xe.No)(e.colors.primary,.9),resizeIndicatorColor:e.colors.primary,bgIconHeader:e.colors.fadedText60,fgIconHeader:e.colors.white,bgHeader:e.colors.bgMix,bgHeaderHasFocus:e.colors.secondaryBg,bgHeaderHovered:e.colors.secondaryBg,textHeader:e.colors.fadedText60,textHeaderSelected:e.colors.white,textGroupHeader:e.colors.fadedText60,headerFontStyle:`${e.fontSizes.sm}`,baseFontStyle:e.fontSizes.sm,editorFontSize:e.fontSizes.sm,textDark:e.colors.bodyText,textMedium:(0,Xe.No)(e.colors.bodyText,.2),textLight:e.colors.fadedText40,textBubble:e.colors.fadedText60,bgCell:e.colors.bgColor,bgCellMedium:e.colors.bgColor,cellHorizontalPadding:8,cellVerticalPadding:3,bgBubble:e.colors.secondaryBg,bgBubbleSelected:e.colors.secondaryBg,linkColor:e.colors.linkText,drilldownBorder:e.colors.darkenedBgMix25})),[e]),tableBorderRadius:e.radii.default,headerIcons:t}};const We=function(e,t,n,o){const r=e.columns.length;return{getCellContent:i.useCallback((i=>{let[l,a]=i;if(l>t.length-1)return O("Column index out of bounds.","This should never happen. Please report this bug.");if(a>n-1)return O("Row index out of bounds.","This should never happen. Please report this bug.");const s=t[l],d=s.indexNumber,u=o.current.getOriginalRowIndex(a),c=o.current.isAddedRow(u);if(s.isEditable||c){const e=o.current.getCell(d,u);if((0,p.se)(e))return e;if(c)return O("Error during cell creation.",`This should never happen. Please report this bug. No cell found for an added row: col=${d}; row=${u}`)}try{return ye(s,e.getCell(u+r,d),e.cssStyles)}catch(m){return O("Error during cell creation.",`This should never happen. Please report this bug. \nError: ${m}`)}}),[t,n,e,o,r])}};var je=n(53221);const Be=function(e,t,n){const[o,r]=i.useState(),{getCellContent:l,getOriginalIndex:a}=(0,je.uf)({columns:t.map((e=>$(e))),getCellContent:n,rows:e,sort:o}),s=i.useMemo((()=>function(e,t){return void 0===t?e:e.map((e=>e.id===t.column.id?{...e,title:"asc"===t.direction?`\u2191 ${e.title}`:`\u2193 ${e.title}`}:e))}(t,o)),[t,o]),d=i.useCallback((e=>{let t="asc";const n=s[e];if(o&&o.column.id===n.id){if("asc"!==o.direction)return void r(void 0);t="desc"}r({column:$(n),direction:t,mode:n.sortMode})}),[o,s]);return{columns:s,sortColumn:d,getOriginalIndex:a,getCellContent:l}};var Pe=n(71034),Ye=n.n(Pe);const Ue=function(e,t,n,r,l){const[a,s]=i.useState({columns:o.I1.empty(),rows:o.I1.empty(),current:void 0}),d=!t&&!n&&(e.selectionMode.includes(g.i3.SelectionMode.MULTI_ROW)||e.selectionMode.includes(g.i3.SelectionMode.SINGLE_ROW)),u=d&&e.selectionMode.includes(g.i3.SelectionMode.MULTI_ROW),c=!t&&!n&&(e.selectionMode.includes(g.i3.SelectionMode.SINGLE_COLUMN)||e.selectionMode.includes(g.i3.SelectionMode.MULTI_COLUMN)),m=c&&e.selectionMode.includes(g.i3.SelectionMode.MULTI_COLUMN),h=a.rows.length>0,p=a.columns.length>0,f=void 0!==a.current,v=i.useCallback((e=>{const t=!Ye()(e.rows.toArray(),a.rows.toArray()),n=!Ye()(e.columns.toArray(),a.columns.toArray()),i=!Ye()(e.current,a.current);let o=d&&t||c&&n,u=e;if((d||c)&&void 0!==e.current&&i&&(u={...e,rows:a.rows,columns:a.columns},o=!1),t&&e.rows.length>0&&n&&0===e.columns.length&&(u={...u,columns:a.columns},o=!0),n&&e.columns.length>0&&t&&0===e.rows.length&&(u={...u,rows:a.rows},o=!0),n&&u.columns.length>=0){let e=u.columns;r.forEach(((t,n)=>{t.isIndex&&(e=e.remove(n))})),e.length<u.columns.length&&(u={...u,columns:e})}s(u),o&&l(u)}),[a,d,c,l,r]),y=i.useCallback((function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n={columns:t?a.columns:o.I1.empty(),rows:e?a.rows:o.I1.empty(),current:void 0};s(n),(!e&&d||!t&&c)&&l(n)}),[a,d,c,l]);return{gridSelection:a,isRowSelectionActivated:d,isMultiRowSelectionActivated:u,isColumnSelectionActivated:c,isMultiColumnSelectionActivated:m,isRowSelected:h,isColumnSelected:p,isCellSelected:f,clearSelection:y,processSelectionChange:v}};var qe=n(55562);const Je=",",Ke='"',Ge='"',Ze="\n",Qe="\ufeff",et=new RegExp(`[${[Je,Ke,Ze].join("")}]`);function tt(e){return e.map((e=>function(e){if((0,p.hX)(e))return"";const t=X(e);if(et.test(t))return`${Ke}${t.replace(new RegExp(Ke,"g"),Ge+Ke)}${Ke}`;return t}(e))).join(Je)+Ze}async function nt(e,t,n,i){const o=new TextEncoder;await e.write(o.encode(Qe));const r=n.map((e=>e.name));await e.write(o.encode(tt(r)));for(let l=0;l<i;l++){const i=[];n.forEach(((e,n,o)=>{i.push(e.getCellValue(t([n,l])))})),await e.write(o.encode(tt(i)))}await e.close()}const it=function(e,t,o,r){return{exportToCsv:i.useCallback((async()=>{const i=`${(new Date).toISOString().slice(0,16).replace(":","-")}_export.csv`;try{const r=await n.e(3966).then(n.bind(n,93966)),l=await r.showSaveFilePicker({suggestedName:i,types:[{accept:{"text/csv":[".csv"]}}],excludeAcceptAllOption:!1}),a=await l.createWritable();await nt(a,e,t,o)}catch(l){if(l instanceof Error&&"AbortError"===l.name)return;try{(0,K.FF)("Failed to export data as CSV with FileSystem API, trying fallback method",l);let n="";const a=new WritableStream({write:async e=>{n+=new TextDecoder("utf-8").decode(e)},close:async()=>{}});await nt(a.getWriter(),e,t,o);const s=new Blob([n],{type:"text/csv;charset=utf-8;"}),d=URL.createObjectURL(s),u=(0,qe.A)({enforceDownloadInNewTab:r,url:d,filename:i});u.style.display="none",document.body.appendChild(u),u.click(),document.body.removeChild(u),URL.revokeObjectURL(d)}catch(l){(0,K.vV)("Failed to export data as CSV",l)}}}),[t,o,e,r])}};const ot=function(e,t,n,o,r,l,a,s,d){const u=i.useCallback(((t,i)=>{let[l,a]=t;const d=e[l];if(!d.isEditable)return;const u=d.indexNumber,c=n.current.getOriginalRowIndex(r(a)),m=o([l,a]),h=d.getCellValue(m),g=d.getCellValue(i);if(!D(m)&&g===h)return;const p=d.getCell(g,!0);D(p)?(0,K.FF)(`Not applying the cell edit since it causes this error:\n ${p.data}`):(n.current.setCell(u,c,{...p,lastUpdated:performance.now()}),s())}),[e,n,r,o,s]),c=i.useCallback((()=>{if(t)return;const i=new Map;e.forEach((e=>{i.set(e.indexNumber,e.getCell(e.defaultValue))})),n.current.addRow(i),a()}),[e,n,t,a]),m=i.useCallback((()=>{t||(c(),s())}),[c,s,t]),h=i.useCallback((i=>{var o;if(i.rows.length>0){if(t)return!0;const e=i.rows.toArray().map((e=>n.current.getOriginalRowIndex(r(e))));return n.current.deleteRows(e),a(),d(),s(),!1}if(null!==(o=i.current)&&void 0!==o&&o.range){const t=[],n=i.current.range;for(let i=n.y;i<n.y+n.height;i++)for(let o=n.x;o<n.x+n.width;o++){const n=e[o];n.isEditable&&!n.isRequired&&(t.push({cell:[o,i]}),u([o,i],n.getCell(null)))}return t.length>0&&(s(),l(t)),!1}return!0}),[e,n,t,l,r,s,u,d,a]),g=i.useCallback(((i,a)=>{const[d,u]=i,m=[];for(let h=0;h<a.length;h++){const i=a[h];if(h+u>=n.current.getNumRows()){if(t)break;c()}for(let t=0;t<i.length;t++){const l=i[t],a=h+u,s=t+d;if(s>=e.length)break;const c=e[s];if(c.isEditable){const e=c.getCell(l,!0);if((0,p.se)(e)&&!D(e)){const t=c.indexNumber,i=n.current.getOriginalRowIndex(r(a)),l=c.getCellValue(o([s,a]));c.getCellValue(e)!==l&&(n.current.setCell(t,i,{...e,lastUpdated:performance.now()}),m.push({cell:[s,a]}))}}}m.length>0&&(s(),l(m))}return!1}),[e,n,t,r,o,c,s,l]),f=i.useCallback(((t,n)=>{const i=t[0];if(i>=e.length)return!0;const o=e[i];if(o.validateInput){const e=o.validateInput(o.getCellValue(n));return!0===e||!1===e?e:o.getCell(e)}return!0}),[e]);return{onCellEdited:u,onPaste:g,onRowAppended:m,onDelete:h,validateCell:f}};const rt=function(e,t){const[n,o]=i.useState(),r=i.useRef(null),l=i.useCallback((n=>{if(clearTimeout(r.current),r.current=0,o(void 0),("header"===n.kind||"cell"===n.kind)&&n.location){const i=n.location[0],l=n.location[1];let a;if(i<0||i>=e.length)return;const s=e[i];if("header"===n.kind&&(0,p.se)(s))a=s.help;else if("cell"===n.kind){const e=t([i,l]);s.isRequired&&s.isEditable&&A(e)?a="\u26a0\ufe0f Please fill out this cell.":function(e){return e.hasOwnProperty("tooltip")&&""!==e.tooltip}(e)&&(a=e.tooltip)}a&&(r.current=setTimeout((()=>{a&&o({content:a,left:n.bounds.x+n.bounds.width/2,top:n.bounds.y})}),600))}}),[e,t,o,r]);return{tooltip:n,clearTooltip:i.useCallback((()=>{o(void 0)}),[o]),onItemHovered:l}};var lt=n(28873),at=n(70128),st=n(13914),dt=n(43301),ut=n(67338);const ct=function(e){return{drawCell:i.useCallback(((t,n)=>{const{cell:i,theme:o,ctx:r,rect:l}=t,a=t.col;if(A(i)&&a<e.length){const i=e[a];return["checkbox","line_chart","bar_chart","progress"].includes(i.kind)?n():(e=>{const{cell:t,theme:n,ctx:i}=e;(0,lt.lR)({...e,theme:{...n,textDark:n.textLight,headerFontFull:`${n.headerFontStyle} ${n.fontFamily}`,baseFontFull:`${n.baseFontStyle} ${n.fontFamily}`,markerFontFull:`${n.markerFontStyle} ${n.fontFamily}`},spriteManager:{},hyperWrapping:!1},"None",t.contentAlign),i.fillStyle=n.textDark})(t),void(i.isRequired&&i.isEditable&&function(e,t,n){e.save(),e.beginPath(),e.moveTo(t.x+t.width-8,t.y+1),e.lineTo(t.x+t.width,t.y+1),e.lineTo(t.x+t.width,t.y+1+8),e.fillStyle=n.accentColor,e.fill(),e.restore()}(r,l,o))}n()}),[e]),customRenderers:i.useMemo((()=>[at.A,st.A,dt.A,ut.Ay,...Ie]),[])}};const mt=function(e){const[t,n]=(0,i.useState)((()=>new Map)),o=i.useCallback(((e,i,o,r)=>{e.id&&n(new Map(t).set(e.id,r))}),[t]);return{columns:i.useMemo((()=>e.map((e=>e.id&&t.has(e.id)&&void 0!==t.get(e.id)?{...e,width:t.get(e.id),grow:0}:e))),[e,t]),onColumnResize:o}},ht=2,gt=35,pt=50+ht,ft=2*gt+ht;const vt=function(e,t,n,o,r,l){let a=function(e){return Math.max(e*gt+ht,ft)}(t+(n?2:1)+(e.editingMode===g.i3.EditingMode.DYNAMIC?1:0)),s=Math.min(a,400);e.height&&(s=Math.max(e.height,ft),a=Math.max(e.height,a)),r&&(s=Math.min(s,r),a=Math.min(a,r),e.height||(s=a));const d=Math.max(o,pt);let u,c=d;e.useContainerWidth?u=d:e.width&&(u=Math.min(Math.max(e.width,pt),d),c=Math.min(Math.max(e.width,c),d));const[m,h]=i.useState({width:u||"100%",height:s});return i.useLayoutEffect((()=>{e.useContainerWidth&&"100%"===m.width&&h({width:d,height:m.height})}),[d]),i.useLayoutEffect((()=>{h({width:m.width,height:s})}),[t]),i.useLayoutEffect((()=>{h({width:u||"100%",height:m.height})}),[u]),i.useLayoutEffect((()=>{h({width:m.width,height:s})}),[s]),i.useLayoutEffect((()=>{if(l){const t=e.useContainerWidth||(0,p.se)(e.width)&&e.width>0;h({width:t?c:"100%",height:a})}else h({width:u||"100%",height:s})}),[l]),{minHeight:ft,maxHeight:a,minWidth:pt,maxWidth:c,resizableSize:m,setResizableSize:h}};var yt=n(89653),bt=n(90782);const wt=(0,yt.A)("img",{target:"e24uaba0"})({name:"1do33ec",styles:"max-width:100%;max-height:600px;object-fit:scale-down"}),xt=e=>{let{urls:t}=e;const n=t&&t.length>0?t[0]:"";return n.startsWith("http")?(0,bt.jsx)("a",{href:n,target:"_blank",rel:"noreferrer noopener",children:(0,bt.jsx)(wt,{src:n})}):(0,bt.jsx)(wt,{src:n})};var Ct=n(3074),Mt=n(41639),St=n(34914),Et=n(88044),kt=n(58144);const Tt=function(e){let{top:t,left:n,content:o,clearTooltip:r}=e;const[l,a]=i.useState(!0),s=(0,J.u)(),{colors:d,fontSizes:u,radii:c,fontWeights:m}=s,h=i.useCallback((()=>{a(!1),r()}),[r,a]);return(0,bt.jsx)(Ct.A,{content:(0,bt.jsx)(Et.hW,{"data-testid":"stDataFrameTooltipContent",children:(0,bt.jsx)(St.Ay,{style:{fontSize:u.sm},source:o,allowHTML:!1})}),placement:Mt.El.top,accessibilityType:Mt.IP.tooltip,showArrow:!1,popoverMargin:5,onClickOutside:h,onEsc:h,overrides:{Body:{style:{borderTopLeftRadius:c.default,borderTopRightRadius:c.default,borderBottomLeftRadius:c.default,borderBottomRightRadius:c.default,paddingTop:"0 !important",paddingBottom:"0 !important",paddingLeft:"0 !important",paddingRight:"0 !important",backgroundColor:"transparent"}},Inner:{style:{backgroundColor:(0,kt.iq)(s)?d.bgColor:d.secondaryBg,color:d.bodyText,fontSize:u.sm,fontWeight:m.normal,paddingTop:"0 !important",paddingBottom:"0 !important",paddingLeft:"0 !important",paddingRight:"0 !important"}}},isOpen:l,children:(0,bt.jsx)("div",{"data-testid":"stDataFrameTooltipTarget",style:{position:"fixed",top:t,left:n}})})},Nt=(0,yt.A)("div",{target:"e1w7nams0"})((e=>{let{hasCustomizedScrollbars:t,theme:n}=e;return{position:"relative",display:"inline-block","& .stDataFrameGlideDataEditor":{height:"100%",minWidth:"100%",borderRadius:n.radii.default},"& .dvn-scroller":{...!t&&{scrollbarWidth:"thin"},overflowX:"auto !important",overflowY:"auto !important"}}}),"");n(32595),n(1627);const Rt=(0,h.A)((function(e){let{element:t,data:n,width:h,height:y,disabled:b,widgetMgr:w,isFullScreen:x,disableFullscreenMode:C,expand:M,collapse:S,fragmentId:E}=e;const k=i.useRef(null),T=i.useRef(null),N=i.useRef(null),{theme:R,headerIcons:I,tableBorderRadius:_}=Ve(),{libConfig:{enforceDownloadInNewTab:O=!1}}=i.useContext(v.n),[D,A]=i.useState(!0),[F,L]=i.useState(!1),[H,X]=i.useState(!1),[V,W]=i.useState(!1),j=i.useMemo((()=>window.matchMedia&&window.matchMedia("(pointer: coarse)").matches),[]),B=i.useMemo((()=>window.navigator.userAgent.includes("Mac OS")&&window.navigator.userAgent.includes("Safari")||window.navigator.userAgent.includes("Chrome")),[]);(0,p.hX)(t.editingMode)&&(t.editingMode=g.i3.EditingMode.READ_ONLY);const{READ_ONLY:P,DYNAMIC:Y}=g.i3.EditingMode,U=n.dimensions,q=Math.max(0,U.dataRows),J=0===q&&!(t.editingMode===Y&&U.dataColumns>0),K=q>15e4,G=i.useRef(new He(q)),[Z,Q]=i.useState(G.current.getNumRows());i.useEffect((()=>{G.current=new He(q),Q(G.current.getNumRows())}),[q]);const ee=i.useCallback((()=>{G.current=new He(q),Q(G.current.getNumRows())}),[q]),{columns:te}=$e(t,n,b);i.useEffect((()=>{if(t.editingMode===P)return;const e=w.getStringValue({id:t.id,formId:t.formId});e&&(G.current.fromJson(e,te),Q(G.current.getNumRows()))}),[]);const{getCellContent:ne}=We(n,te,Z,G),{columns:ie,sortColumn:oe,getOriginalIndex:re,getCellContent:le}=Be(q,te,ne),ae=i.useCallback((0,p.sg)(150,(e=>{const n={selection:{rows:[],columns:[]}};n.selection.rows=e.rows.toArray().map((e=>re(e))),n.selection.columns=e.columns.toArray().map((e=>Le(ie[e])));const i=JSON.stringify(n),o=w.getStringValue({id:t.id,formId:t.formId});void 0!==o&&o===i||w.setStringValue({id:t.id,formId:t.formId},i,{fromUi:!0},E)})),[t.id,t.formId,w,E,re,Le]),{gridSelection:se,isRowSelectionActivated:de,isMultiRowSelectionActivated:ue,isColumnSelectionActivated:ce,isMultiColumnSelectionActivated:me,isRowSelected:he,isColumnSelected:ge,isCellSelected:pe,clearSelection:fe,processSelectionChange:ve}=Ue(t,J,b,ie,ae);i.useEffect((()=>{fe(!0,!0)}),[x]);const ye=i.useCallback((e=>{var t;null===(t=T.current)||void 0===t||t.updateCells(e)}),[]);i.useEffect((()=>{if(!de&&!ce)return;const e=w.getStringValue({id:t.id,formId:t.formId});if(e){var n,i,r,l;const t=ie.map((e=>Le(e))),a=JSON.parse(e);let s=o.I1.empty(),d=o.I1.empty();if(null===(n=a.selection)||void 0===n||null===(i=n.rows)||void 0===i||i.forEach((e=>{s=s.add(e)})),null===(r=a.selection)||void 0===r||null===(l=r.columns)||void 0===l||l.forEach((e=>{d=d.add(t.indexOf(e))})),s.length>0||d.length>0){ve({rows:s,columns:d,current:void 0})}}}),[]);const be=i.useCallback((()=>{Z!==G.current.getNumRows()&&Q(G.current.getNumRows())}),[Z]),we=i.useCallback((0,p.sg)(150,(()=>{const e=G.current.toJson(ie);let n=w.getStringValue({id:t.id,formId:t.formId});void 0===n&&(n=new He(0).toJson([])),e!==n&&w.setStringValue({id:t.id,formId:t.formId},e,{fromUi:!0},E)})),[t.id,t.formId,w,E,ie,G.current]),{exportToCsv:xe}=it(le,ie,Z,O),{onCellEdited:Ce,onPaste:Me,onRowAppended:Se,onDelete:Ee,validateCell:ke}=ot(ie,t.editingMode!==Y,G,le,re,ye,be,we,fe),{tooltip:Te,clearTooltip:Ne,onItemHovered:Re}=rt(ie,le),{drawCell:Ie,customRenderers:_e}=ct(ie),Oe=i.useMemo((()=>ie.map((e=>$(e)))),[ie]),{columns:De,onColumnResize:Ae}=mt(Oe),Fe=n.columns.length>1,{minHeight:ze,maxHeight:Xe,minWidth:je,maxWidth:Pe,resizableSize:Ye,setResizableSize:qe}=vt(t,Z,Fe,h,y,x),Je=i.useCallback((e=>{let[t,n]=e;return{...z(!0,!1),displayData:"empty",contentAlign:"center",allowOverlay:!1,themeOverride:{textDark:R.textLight},span:[0,Math.max(ie.length-1,0)]}}),[ie,R.textLight]);i.useEffect((()=>{if(!t.formId)return;const e=new m.o;return e.manageFormClearListener(w,t.formId,(()=>{ee(),fe()})),()=>{e.disconnect()}}),[t.formId,ee,fe,w]);const Ke=!J&&t.editingMode===Y&&!b,Ge=J?0:ie.filter((e=>e.isIndex)).length;return i.useEffect((()=>{setTimeout((()=>{if(N.current&&T.current){var e,t;const n=null===(e=N.current)||void 0===e||null===(t=e.querySelector(".dvn-stack"))||void 0===t?void 0:t.getBoundingClientRect();n&&(X(n.height>N.current.clientHeight),W(n.width>N.current.clientWidth))}}),1)}),[Ye,Z,De]),(0,bt.jsxs)(Nt,{className:"stDataFrame","data-testid":"stDataFrame",hasCustomizedScrollbars:B,ref:N,onMouseDown:e=>{if(N.current&&B){const t=N.current.getBoundingClientRect();V&&t.height-7<e.clientY-t.top&&e.stopPropagation(),H&&t.width-7<e.clientX-t.left&&e.stopPropagation()}},onBlur:e=>{D||j||e.currentTarget.contains(e.relatedTarget)||fe(!0,!0)},children:[(0,bt.jsxs)(f.A,{isFullScreen:x,disableFullscreenMode:C,locked:he&&!de||pe||j&&D,onExpand:M,onCollapse:S,target:Nt,children:[(de&&he||ce&&ge)&&(0,bt.jsx)(f.K,{label:"Clear selection",icon:a.b,onClick:()=>{fe(),Ne()}}),Ke&&he&&(0,bt.jsx)(f.K,{label:"Delete row(s)",icon:s.e,onClick:()=>{Ee&&(Ee(se),Ne())}}),Ke&&!he&&(0,bt.jsx)(f.K,{label:"Add row",icon:d.O,onClick:()=>{Se&&(A(!0),Se(),Ne())}}),!K&&!J&&(0,bt.jsx)(f.K,{label:"Download as CSV",icon:u.n,onClick:()=>xe()}),!J&&(0,bt.jsx)(f.K,{label:"Search",icon:c.v,onClick:()=>{F?L(!1):(A(!0),L(!0)),Ne()}})]}),(0,bt.jsx)(l.c,{"data-testid":"stDataFrameResizable",ref:k,defaultSize:Ye,style:{border:`1px solid ${R.borderColor}`,borderRadius:`${_}`},minHeight:ze,maxHeight:Xe,minWidth:je,maxWidth:Pe,size:Ye,enable:{top:!1,right:!1,bottom:!1,left:!1,topRight:!1,bottomRight:!0,bottomLeft:!1,topLeft:!1},grid:[1,gt],snapGap:gt/3,onResizeStop:(e,t,n,i)=>{k.current&&qe({width:k.current.size.width,height:Xe-k.current.size.height===ht?k.current.size.height+ht:k.current.size.height})},children:(0,bt.jsx)(r.D,{className:"stDataFrameGlideDataEditor","data-testid":"stDataFrameGlideDataEditor",ref:T,columns:De,rows:J?1:Z,minColumnWidth:50,maxColumnWidth:1e3,maxColumnAutoWidth:500,rowHeight:gt,headerHeight:gt,getCellContent:J?Je:le,onColumnResize:j?void 0:Ae,resizeIndicator:"header",freezeColumns:Ge,smoothScrollX:!0,smoothScrollY:!0,verticalBorder:!0,getCellsForSelection:!0,rowMarkers:"none",rangeSelect:j?"cell":"rect",columnSelect:"none",rowSelect:"none",onItemHovered:Re,keybindings:{downFill:!0},onKeyDown:e=>{(e.ctrlKey||e.metaKey)&&"f"===e.key&&(L((e=>!e)),e.stopPropagation(),e.preventDefault())},showSearch:F,onSearchClose:()=>{L(!1),Ne()},onHeaderClicked:(e,t)=>{J||K||ce||(de&&he&&fe(),oe(e))},gridSelection:se,onGridSelectionChange:e=>{(D||j)&&(ve(e),void 0!==Te&&Ne())},theme:R,onMouseMove:e=>{"out-of-bounds"===e.kind&&D?A(!1):"out-of-bounds"===e.kind||D||A(!0)},fixedShadowX:!0,fixedShadowY:!0,experimental:{scrollbarWidthOverride:0,...B&&{paddingBottom:V?-6:void 0,paddingRight:H?-6:void 0}},drawCell:Ie,customRenderers:_e,imageEditorOverride:xt,headerIcons:I,validateCell:ke,onPaste:!1,...de&&{rowMarkers:{kind:"checkbox",checkboxStyle:"square",theme:{bgCell:R.bgHeader,bgCellMedium:R.bgHeader}},rowSelectionMode:ue?"multi":"auto",rowSelect:b?"none":ue?"multi":"single",rowSelectionBlending:"mixed",rangeSelectionBlending:"exclusive"},...ce&&{columnSelect:b?"none":me?"multi":"single",columnSelectionBlending:"mixed",rangeSelectionBlending:"exclusive"},...!J&&t.editingMode!==P&&!b&&{fillHandle:!j,onCellEdited:Ce,onPaste:Me,onDelete:Ee},...!J&&t.editingMode===Y&&{trailingRowOptions:{sticky:!1,tint:!0},rowMarkers:{kind:"checkbox",checkboxStyle:"square",theme:{bgCell:R.bgHeader,bgCellMedium:R.bgHeader}},rowSelectionMode:"multi",rowSelect:b?"none":"multi",onRowAppended:b?void 0:Se,onHeaderClicked:void 0}})}),Te&&Te.content&&(0,bt.jsx)(Tt,{top:Te.top,left:Te.left,content:Te.content,clearTooltip:Ne})]})}),!0)},34752:(e,t,n)=>{n.d(t,{X:()=>l,o:()=>r});var i=n(58878),o=n(25571);class r{constructor(){this.formClearListener=void 0,this.lastWidgetMgr=void 0,this.lastFormId=void 0}manageFormClearListener(e,t,n){(0,o.se)(this.formClearListener)&&this.lastWidgetMgr===e&&this.lastFormId===t||(this.disconnect(),(0,o._L)(t)&&(this.formClearListener=e.addFormClearedListener(t,n),this.lastWidgetMgr=e,this.lastFormId=t))}disconnect(){var e;null===(e=this.formClearListener)||void 0===e||e.disconnect(),this.formClearListener=void 0,this.lastWidgetMgr=void 0,this.lastFormId=void 0}}function l(e){let{element:t,widgetMgr:n,onFormCleared:r}=e;(0,i.useEffect)((()=>{if(!(0,o._L)(t.formId))return;const e=n.addFormClearedListener(t.formId,r);return()=>{e.disconnect()}}),[t,n,r])}},55562:(e,t,n)=>{n.d(t,{A:()=>i});const i=e=>{let{enforceDownloadInNewTab:t,url:n,filename:i}=e;const o=document.createElement("a");return o.setAttribute("href",n),t?o.setAttribute("target","_blank"):o.setAttribute("target","_self"),o.setAttribute("download",i),o}}}]);
|