streamlit-nightly 1.39.1.dev20241027__py2.py3-none-any.whl → 1.39.1.dev20241029__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.
Files changed (21) hide show
  1. streamlit/static/asset-manifest.json +9 -9
  2. streamlit/static/index.html +1 -1
  3. streamlit/static/static/js/8148.b29e43b5.chunk.js +1 -0
  4. streamlit/static/static/js/{8237.9d947ccb.chunk.js → 8237.58ae67da.chunk.js} +1 -1
  5. streamlit/static/static/js/{8460.38082ffb.chunk.js → 8460.8b3f792f.chunk.js} +1 -1
  6. streamlit/static/static/js/{8815.92ce1b4a.chunk.js → 8815.304ea46a.chunk.js} +1 -1
  7. streamlit/static/static/js/9923.8dc9e5ed.chunk.js +1 -0
  8. streamlit/static/static/js/9943.51b39296.chunk.js +1 -0
  9. streamlit/static/static/js/{main.76fe6c18.js → main.8c705f66.js} +4 -4
  10. streamlit/static/static/media/logo.b972e133efb66853e2af89f9219f1069.svg +7 -0
  11. {streamlit_nightly-1.39.1.dev20241027.dist-info → streamlit_nightly-1.39.1.dev20241029.dist-info}/METADATA +1 -1
  12. {streamlit_nightly-1.39.1.dev20241027.dist-info → streamlit_nightly-1.39.1.dev20241029.dist-info}/RECORD +17 -17
  13. {streamlit_nightly-1.39.1.dev20241027.dist-info → streamlit_nightly-1.39.1.dev20241029.dist-info}/WHEEL +1 -1
  14. streamlit/static/static/js/8148.5521cded.chunk.js +0 -1
  15. streamlit/static/static/js/9923.2bb9616f.chunk.js +0 -1
  16. streamlit/static/static/js/9943.7e306ca1.chunk.js +0 -1
  17. streamlit/static/static/media/logo.83ae4f2fb87e38be7cbb8a5d2beb64d2.svg +0 -5
  18. /streamlit/static/static/js/{main.76fe6c18.js.LICENSE.txt → main.8c705f66.js.LICENSE.txt} +0 -0
  19. {streamlit_nightly-1.39.1.dev20241027.data → streamlit_nightly-1.39.1.dev20241029.data}/scripts/streamlit.cmd +0 -0
  20. {streamlit_nightly-1.39.1.dev20241027.dist-info → streamlit_nightly-1.39.1.dev20241029.dist-info}/entry_points.txt +0 -0
  21. {streamlit_nightly-1.39.1.dev20241027.dist-info → streamlit_nightly-1.39.1.dev20241029.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,7 @@
1
+ <svg width="32" height="19" viewBox="0 0 32 19" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <g id="Group 2">
3
+ <path id="path3858" d="M15.998 11.078L10.3882 8.04522L0.650371 2.78157C0.641482 2.77247 0.623705 2.77248 0.614816 2.77248C0.259259 2.59975 -0.105186 2.96338 0.0281476 3.32702L4.98994 16.2698L4.99083 16.2725C4.99616 16.2852 5.00061 16.298 5.00594 16.3107C5.2095 16.7934 5.65394 17.0916 6.1375 17.2089C6.17839 17.218 6.20764 17.2262 6.25673 17.2362C6.30559 17.2473 6.37394 17.2625 6.43261 17.2671C6.44239 17.268 6.45128 17.268 6.46106 17.2689H6.46817C6.47528 17.2698 6.48239 17.2698 6.4895 17.2707H6.49928C6.5055 17.2716 6.51261 17.2716 6.51883 17.2716H6.53039C6.5375 17.2725 6.54461 17.2725 6.55172 17.2725C12.8348 17.9731 19.1763 17.9731 25.4593 17.2725C25.5349 17.2725 25.6087 17.2689 25.6798 17.2616C25.7029 17.2589 25.7251 17.2562 25.7473 17.2534C25.75 17.2525 25.7536 17.2525 25.7562 17.2516C25.7713 17.2498 25.7864 17.2471 25.8016 17.2443C25.8238 17.2416 25.846 17.2371 25.8682 17.2325C25.9127 17.2225 25.9329 17.2152 25.9932 17.194C26.0535 17.1729 26.1536 17.1358 26.2163 17.1049C26.279 17.074 26.3224 17.0443 26.3749 17.0107C26.4398 16.9689 26.5015 16.9261 26.5641 16.8781C26.5911 16.8569 26.6096 16.8434 26.6291 16.8243L26.6184 16.818L15.998 11.078Z" fill="#FF2B2B"/>
4
+ <path id="path5063" d="M31.3616 2.78158H31.3527L21.6113 8.04524L27.0265 16.2935L31.9758 3.32704V3.30886C32.1003 2.92704 31.7181 2.58158 31.3616 2.78158Z" fill="#7D353B"/>
5
+ <path id="path5101" d="M16.5171 0.278788C16.2682 -0.0930318 15.726 -0.0930318 15.486 0.278788L10.3882 8.04518L15.998 11.0779L26.6291 16.8242C26.6959 16.7574 26.7494 16.6922 26.806 16.6234C26.886 16.5225 26.9607 16.4143 27.0265 16.2934L21.6113 8.04518L16.5171 0.278788Z" fill="#BD4043"/>
6
+ </g>
7
+ </svg>
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: streamlit-nightly
3
- Version: 1.39.1.dev20241027
3
+ Version: 1.39.1.dev20241029
4
4
  Summary: A faster way to build and share data apps
5
5
  Home-page: https://streamlit.io
6
6
  Author: Snowflake Inc
@@ -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=NCd6E0c25gIQhiR3CUsD8MolQGqBAt6b0TCkDGWKha0,14713
350
+ streamlit/static/asset-manifest.json,sha256=iRszOEdrAV_kYWH7m-XU23z1MueTv3vZCH0t7_pZeOk,14713
351
351
  streamlit/static/favicon.png,sha256=if5cVgw7azxKOvV5FpGixga7JLn23rfnHcy1CdWI1-E,1019
352
- streamlit/static/index.html,sha256=_wo4dbX_ahndA31SDFpjm366Ol3RpIdoh8fZb4YCTn4,891
352
+ streamlit/static/index.html,sha256=GWCgDIZBxIN2okLd_rXajERGe5Bz8-HfFBxSIn5KOY0,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.a1bc16b2.css,sha256=mPtYM1NFajTb7mdT5xey2DzapUSnS_yMsUZN5TmJ4Lo,28563
@@ -399,28 +399,28 @@ streamlit/static/static/js/7809.4b5ac1e5.chunk.js,sha256=086ARIyLH5pJVD_lRXYcJZJ
399
399
  streamlit/static/static/js/783.788bb3ab.chunk.js,sha256=fU54-9m8e-yscWpoz9NxxvRje_OcGE5wJijHuVNxMXU,88546
400
400
  streamlit/static/static/js/797.36f1bf7d.chunk.js,sha256=lBSxYn2yOvQ9qigWurVjQBSLOh40cE8DyU8O7uBHIPY,9623
401
401
  streamlit/static/static/js/7983.15bb2017.chunk.js,sha256=wNR0QnXubELkrdJ1K1QKVltDS2q4yJ3NoQUZxO5FIDI,3358
402
- streamlit/static/static/js/8148.5521cded.chunk.js,sha256=gAXcXKai9Xz5WCnxIVs2HUTP1umSt83aaVvMhWTh_Xc,2138
402
+ streamlit/static/static/js/8148.b29e43b5.chunk.js,sha256=j11xZcAIYTwakE0N7VN6nuXpmGYPwlwtBqXCYpy7v_E,2178
403
403
  streamlit/static/static/js/8161.9b75f98a.chunk.js,sha256=vWAh7Nhi5kkx3Z330eIRlgh0B4FxgJjmRVaQNDDX_DU,3640
404
404
  streamlit/static/static/js/8166.1d69c908.chunk.js,sha256=sHs1Q8Wlc3gstHgkavln6MDkuBuZicLljS3AoNO4rG4,2762
405
- streamlit/static/static/js/8237.9d947ccb.chunk.js,sha256=TE526Er4a-jV7Rz73wttJQ_1olUpy-j-L5OPiarrmf0,12856
405
+ streamlit/static/static/js/8237.58ae67da.chunk.js,sha256=IlMlETo6SQWM1sN_g8q0bEmxxgOdk9Wqh9pBJQx99Xs,12896
406
406
  streamlit/static/static/js/84.414fa87b.chunk.js,sha256=sF7-dsOEXmnl7d-z2d0Fb7F8vyEWlUY2vEK7TQ5RK8k,622
407
- streamlit/static/static/js/8460.38082ffb.chunk.js,sha256=pE2ohKDObi3afqzShRhcHj4SMIHmSvnc8gtuSXS0AFU,14487
407
+ streamlit/static/static/js/8460.8b3f792f.chunk.js,sha256=xLPkXKHVzHer_fBnWmgYV60qb7aXiaTexos9Ar3TNdM,14527
408
408
  streamlit/static/static/js/8642.58110d15.chunk.js,sha256=fZhw8uCV5cuCz62H1Yw8LLgtH00H-tiWk3UlzAwJQF0,3380289
409
409
  streamlit/static/static/js/8642.58110d15.chunk.js.LICENSE.txt,sha256=eaJYPeiNKQAvVx6lv1DR9gIPG1pFwki2pcDLddtfQHw,5061
410
410
  streamlit/static/static/js/8648.92079acf.chunk.js,sha256=WpZpzt0hkqhjZ5CotTAZcQYz_C61hQD84_KcrDdXCBQ,22115
411
411
  streamlit/static/static/js/8790.0b98f286.chunk.js,sha256=P5TzrizssOnsqzKQLw91uOldd06TpYBnzdJf4QmH3Hg,791
412
- streamlit/static/static/js/8815.92ce1b4a.chunk.js,sha256=hnEln2tZDZUU2flQp4YeL7n9oFnNmyKi8yTGAqdPG4I,5905
412
+ streamlit/static/static/js/8815.304ea46a.chunk.js,sha256=S9deTa9jS_6OSLCyLwhOh9uALUGDJrJ0Ml-ucMWrwb0,5921
413
413
  streamlit/static/static/js/9060.1ec8dc2b.chunk.js,sha256=4eqbVFB_JXytGM3AFtzGHk1fywaaNDZuEsVm1AgPW6Y,686
414
414
  streamlit/static/static/js/9077.721329d6.chunk.js,sha256=J3aE0FDe8moAWsvWCNJfgfqQAbf-VPxj3uIFbRIJw3E,65779
415
415
  streamlit/static/static/js/9114.ee2dff18.chunk.js,sha256=koKnNzSEt7mLbczifdo4dib3Zw3REEnFuKb5yau12Q0,7545
416
416
  streamlit/static/static/js/9464.7e9a3c0a.chunk.js,sha256=63Fg1-eQ1Sx7Hb6rqtQaTOJ7CTZ8GZdyl7aMZJ-NcI8,1350
417
417
  streamlit/static/static/js/9528.a58c0ad2.chunk.js,sha256=LCX8VwyKfm9gr9lIAvz5d-8GnrpaOX13WoZPdogplbk,1872
418
418
  streamlit/static/static/js/954.07ce4880.chunk.js,sha256=E4zF-KsTfWSqRim6MOetITJgTNMs-Yype7yTE1EiB20,8868
419
- streamlit/static/static/js/9923.2bb9616f.chunk.js,sha256=EtTxhVpm_jY8E23uFAg-00WCnbvi1zXVRAky8JxbMaI,3579
420
- streamlit/static/static/js/9943.7e306ca1.chunk.js,sha256=w-NyC9woEtTMnJB6umkDSguV9RSovOsNbivOkNBnFtU,49399
419
+ streamlit/static/static/js/9923.8dc9e5ed.chunk.js,sha256=rSkx0D9ddN6CqM8jN4LjKmM1g40VRQ0ZN3l7D0EwV8A,3619
420
+ streamlit/static/static/js/9943.51b39296.chunk.js,sha256=z-NarGyLq_Llc7-8D2Bs5kSTiSwhVO9vYYEasoQ6O6w,49439
421
421
  streamlit/static/static/js/9993.5b55b4c2.chunk.js,sha256=uJI1SGarpF5Lc12L6nzoWCAPNtWOYmW6m6pf4tt_RkI,40386
422
- streamlit/static/static/js/main.76fe6c18.js,sha256=1uGA804AlV4xq7_fPj0R0Eb5uZZk7ufyD4Tfo3hZDZk,4480913
423
- streamlit/static/static/js/main.76fe6c18.js.LICENSE.txt,sha256=vcwWCW5VNoALG8YyhU5k8oDUNAwYisMZfiZ8X1cvtWk,4730
422
+ streamlit/static/static/js/main.8c705f66.js,sha256=oCy-rfLcwwwoKvnTijlpv7SDjSkSZ6VbtFT1EV-Gs2w,4480669
423
+ streamlit/static/static/js/main.8c705f66.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
@@ -505,7 +505,7 @@ streamlit/static/static/media/fireworks.0906f02ea43f1018a6d2.gif,sha256=ZO1V8cjx
505
505
  streamlit/static/static/media/flake-0.beded754e8024c73d9d2.png,sha256=mwp_1Zg61cZJ7jgoiFfrknakIGA_h4IkI8aGxXM0I_0,73528
506
506
  streamlit/static/static/media/flake-1.8077dc154e0bf900aa73.png,sha256=hg2VX6O9rmfQRbjxRDFQEH1s4DnINU91XPqHZjg2o5Q,86179
507
507
  streamlit/static/static/media/flake-2.e3f07d06933dd0e84c24.png,sha256=Ni-cIPie1Z-0GJoBoRavyH4_Itf-jCU-t33D_JJAKPQ,92182
508
- streamlit/static/static/media/logo.83ae4f2fb87e38be7cbb8a5d2beb64d2.svg,sha256=_ny9rpEr-fxCV2w83KwX1abcYB6WMKRUdrAv1RnzOUE,1697
508
+ streamlit/static/static/media/logo.b972e133efb66853e2af89f9219f1069.svg,sha256=5Tmo2wkHi3q28u_wAbTZFND72rTY9iZvlEB_cGR47f8,1775
509
509
  streamlit/static/static/media/rocket.add69fb2c850b62fa60077e3a5a06d28.svg,sha256=ktaisNsoPmxwjkauftCV2YO6zVkUWjUD2N3bqb97QeU,2582
510
510
  streamlit/static/static/media/snowflake.187cb4ca5fd443488e5b4bfc9c4d2b52.svg,sha256=Soe8chkasaXhxMYOakMAXRR1BEu2Xp02hosZrSXF6lc,7471
511
511
  streamlit/static/static/media/streamlit-mark-color.e5952193e5f735a3afb01a78a4dd4b41.svg,sha256=ZHCBDMsSP9Xk0i7Co1Hef_eegxZFvlY_xKP7YPBaZrg,1720
@@ -542,9 +542,9 @@ streamlit/web/server/server_util.py,sha256=ioIHkXNlA_ujj2Q3isziM8r5glKxgK2JZRoCD
542
542
  streamlit/web/server/stats_request_handler.py,sha256=e144zIhzLTB1PN4CwTCxElCoWMuo9IsBEPex2exHCQ0,3641
543
543
  streamlit/web/server/upload_file_request_handler.py,sha256=ftyKpARrUjOpRcFETIXuoTyOG_mo-ToOw5NI0y_W4lE,5003
544
544
  streamlit/web/server/websocket_headers.py,sha256=uUxypj04ondEC4ocBiYCndX_N06Zwe1Mt690Vupe08Y,2232
545
- streamlit_nightly-1.39.1.dev20241027.data/scripts/streamlit.cmd,sha256=ZEYM3vBJSp-k7vwSJ3ba5NzEk9-qHdSeLvGYAAe1mMw,676
546
- streamlit_nightly-1.39.1.dev20241027.dist-info/METADATA,sha256=8XmUiCgeLjDJCIxbTkumrmNTk-485yyROGj5FX-l0GI,8512
547
- streamlit_nightly-1.39.1.dev20241027.dist-info/WHEEL,sha256=TJ49d73sNs10F0aze1W_bTW2P_X7-F4YXOlBqoqA-jY,109
548
- streamlit_nightly-1.39.1.dev20241027.dist-info/entry_points.txt,sha256=uNJ4DwGNXEhOK0USwSNanjkYyR-Bk7eYQbJFDrWyOgY,53
549
- streamlit_nightly-1.39.1.dev20241027.dist-info/top_level.txt,sha256=V3FhKbm7G2LnR0s4SytavrjIPNIhvcsAGXfYHAwtQzw,10
550
- streamlit_nightly-1.39.1.dev20241027.dist-info/RECORD,,
545
+ streamlit_nightly-1.39.1.dev20241029.data/scripts/streamlit.cmd,sha256=ZEYM3vBJSp-k7vwSJ3ba5NzEk9-qHdSeLvGYAAe1mMw,676
546
+ streamlit_nightly-1.39.1.dev20241029.dist-info/METADATA,sha256=jYuDRwu3eidQl4II27wjphWmycJGTYVtbN4p5kDtYxw,8512
547
+ streamlit_nightly-1.39.1.dev20241029.dist-info/WHEEL,sha256=OpXWERl2xLPRHTvd2ZXo_iluPEQd8uSbYkJ53NAER_Y,109
548
+ streamlit_nightly-1.39.1.dev20241029.dist-info/entry_points.txt,sha256=uNJ4DwGNXEhOK0USwSNanjkYyR-Bk7eYQbJFDrWyOgY,53
549
+ streamlit_nightly-1.39.1.dev20241029.dist-info/top_level.txt,sha256=V3FhKbm7G2LnR0s4SytavrjIPNIhvcsAGXfYHAwtQzw,10
550
+ streamlit_nightly-1.39.1.dev20241029.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (75.2.0)
2
+ Generator: setuptools (75.3.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py2-none-any
5
5
  Tag: py3-none-any
@@ -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:()=>c});var i=n(58878),l=n(68262),s=n(13170),a=n(84996),r=n(55516);const d=(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 h=n(90782);const c=(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,s.graphviz)(`#${r}`).zoom(!1).fit(!0).scale(1).engine(t.engine).renderDot(t.spec),n||t.useContainerWidth){const e=(0,l.Ltv)(`#${r} > svg`).node();e.removeAttribute("width"),e.removeAttribute("height")}}catch(e){(0,a.vV)(e)}}),[r,t.engine,t.spec,t.useContainerWidth,n]),(0,h.jsx)(d,{className:"stGraphVizChart","data-testid":"stGraphVizChart",id:r,isFullScreen:n})}))},55516:(e,t,n)=>{"use strict";n.d(t,{A:()=>u});n(58878);var i=n(53124),l=n.n(i),s=n(41514),a=n(67214),r=n(64611),d=n(98226),h=n(4883),c=n(90782);const o=e=>{let{children:t,width:n,height:i,disableFullscreenMode:l}=e;const{expanded:o,fullHeight:u,fullWidth:p,zoomIn:g,zoomOut:m}=(0,d.H)();let f=s.u,x=g,w="View fullscreen";return o&&(f=a.Q,x=m,w="Exit fullscreen"),(0,c.jsxs)(h.g,{isExpanded:o,"data-testid":"stFullScreenFrame",children:[!l&&(0,c.jsx)(h.j,{"data-testid":"StyledFullScreenButton",onClick:x,title:w,isExpanded:o,children:(0,c.jsx)(r.A,{content:f})}),t({width:o?p:n,height:o?u:i,expanded:o,expand:g,collapse:m})]})};const u=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=n=>{const{width:i,height:l,disableFullscreenMode:s}=n;return(0,c.jsx)(o,{width:i,height:l,disableFullscreenMode:t||s,children:t=>{let{width:i,height:l,expanded:s,expand:a,collapse:r}=t;return(0,c.jsx)(e,{...n,width:i,height:l,isFullScreen:s,expand:a,collapse:r})}})};return n.displayName=`withFullScreenWrapper(${e.displayName||e.name})`,l()(n,e)}},34654:()=>{},7908:()=>{},62292:()=>{}}]);
@@ -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:()=>c});i(58878);var n=i(55516),l=i(89653);const r=(0,l.A)("div",{target:"e115fcil2"})((e=>{let{theme:t}=e;return{display:"flex",flexDirection:"row",flexWrap:"wrap",rowGap:t.spacing.lg}}),""),a=(0,l.A)("div",{target:"e115fcil1"})({name:"1xf0csu",styles:"display:flex;flex-direction:column;align-items:stretch;width:auto;flex-grow:0"}),d=(0,l.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 s,o=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"}(s||(s={}));const c=(0,n.A)((function(e){let t,{width:i,isFullScreen:n,element:l,height:c,endpoints:h}=e;const u=l.width;if([s.OriginalWidth,s.AutoWidth,s.MinImageOrContainer].includes(u))t=void 0;else if([s.ColumnWidth,s.MaxImageOrContainer].includes(u))t=i;else{if(!(u>0))throw Error(`Invalid image width: ${u}`);t=u}const m={};return c&&n?(m.maxHeight=c,m.objectFit="contain"):(m.width=t,m.maxWidth="100%"),(0,o.jsx)(r,{className:"stImage","data-testid":"stImage",style:{width:i},children:l.imgs.map(((e,t)=>{const i=e;return(0,o.jsxs)(a,{"data-testid":"stImageContainer",children:[(0,o.jsx)("img",{style:m,src:h.buildMediaURL(i.url),alt:t.toString()}),i.caption&&(0,o.jsx)(d,{"data-testid":"stImageCaption",style:m,children:` ${i.caption} `})]},t)}))})}))},55516:(e,t,i)=>{i.d(t,{A:()=>u});i(58878);var n=i(53124),l=i.n(n),r=i(41514),a=i(67214),d=i(64611),s=i(98226),o=i(4883),c=i(90782);const h=e=>{let{children:t,width:i,height:n,disableFullscreenMode:l}=e;const{expanded:h,fullHeight:u,fullWidth:m,zoomIn:g,zoomOut:p}=(0,s.H)();let x=r.u,f=g,w="View fullscreen";return h&&(x=a.Q,f=p,w="Exit fullscreen"),(0,c.jsxs)(o.g,{isExpanded:h,"data-testid":"stFullScreenFrame",children:[!l&&(0,c.jsx)(o.j,{"data-testid":"StyledFullScreenButton",onClick:f,title:w,isExpanded:h,children:(0,c.jsx)(d.A,{content:x})}),t({width:h?m:i,height:h?u:n,expanded:h,expand:g,collapse:p})]})};const u=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const i=i=>{const{width:n,height:l,disableFullscreenMode:r}=i;return(0,c.jsx)(h,{width:n,height:l,disableFullscreenMode:t||r,children:t=>{let{width:n,height:l,expanded:r,expand:a,collapse:d}=t;return(0,c.jsx)(e,{...i,width:n,height:l,isFullScreen:r,expand:a,collapse:d})}})};return i.displayName=`withFullScreenWrapper(${e.displayName||e.name})`,l()(i,e)}},41514:(e,t,i)=>{i.d(t,{u:()=>a});var n=i(68102),l=i(58878),r=i(68622),a=l.forwardRef((function(e,t){return l.createElement(r.I,(0,n.A)({iconAttrs:{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},iconVerticalAlign:"middle",iconViewBox:"0 0 8 8"},e,{ref:t}),l.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"}))}));a.displayName="FullscreenEnter"},67214:(e,t,i)=>{i.d(t,{Q:()=>a});var n=i(68102),l=i(58878),r=i(68622),a=l.forwardRef((function(e,t){return l.createElement(r.I,(0,n.A)({iconAttrs:{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},iconVerticalAlign:"middle",iconViewBox:"0 0 8 8"},e,{ref:t}),l.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"}))}));a.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:()=>m});n(58878);var i=n(53124),o=n.n(i),r=n(41514),l=n(67214),a=n(64611),s=n(98226),d=n(4883),u=n(90782);const c=e=>{let{children:t,width:n,height:i,disableFullscreenMode:o}=e;const{expanded:c,fullHeight:m,fullWidth:h,zoomIn:g,zoomOut:f}=(0,s.H)();let p=r.u,v=g,b="View fullscreen";return c&&(p=l.Q,v=f,b="Exit fullscreen"),(0,u.jsxs)(d.g,{isExpanded:c,"data-testid":"stFullScreenFrame",children:[!o&&(0,u.jsx)(d.j,{"data-testid":"StyledFullScreenButton",onClick:v,title:b,isExpanded:c,children:(0,u.jsx)(a.A,{content:p})}),t({width:c?h:n,height:c?m:i,expanded:c,expand:g,collapse:f})]})};const m=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=n=>{const{width:i,height:o,disableFullscreenMode:r}=n;return(0,u.jsx)(c,{width:i,height:o,disableFullscreenMode:t||r,children:t=>{let{width:i,height:o,expanded:r,expand:l,collapse:a}=t;return(0,u.jsx)(e,{...n,width:i,height:o,isFullScreen:r,expand:l,collapse:a})}})};return n.displayName=`withFullScreenWrapper(${e.displayName||e.name})`,o()(n,e)}},85850:(e,t,n)=>{n.d(t,{K:()=>v,A:()=>b});n(58878);var i=n(8151),o=n(12274),r=n(63186),l=n(4629),a=n(997),s=n(36459),d=n(84720),u=n(64611),c=n(89653),m=n(16795);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}}}}}),""),f=(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 p=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,p.jsx)("div",{"data-testid":"stElementToolbarButton",children:(0,p.jsx)(a.A,{content:(0,p.jsx)(l.Ay,{source:t,allowHTML:!1,style:{fontSize:c.fontSizes.sm}}),placement:a.W.TOP,onMouseEnterDelay:1e3,inline:!0,children:(0,p.jsxs)(s.Ay,{onClick:e=>{r&&r(),e.stopPropagation()},kind:d.KX.ELEMENT_TOOLBAR,"aria-label":t,children:[o&&(0,p.jsx)(u.A,{content:o,size:"md",testid:"stElementToolbarButtonIcon"}),m&&(0,p.jsx)("span",{children:m})]})})})}const b=e=>{let{onExpand:t,onCollapse:n,isFullScreen:i,locked:l,children:a,target:s,disableFullscreenMode:d}=e;return(0,p.jsx)(g,{className:"stElementToolbar","data-testid":"stElementToolbar",locked:l||i,target:s,children:(0,p.jsxs)(f,{children:[a,t&&!d&&!i&&(0,p.jsx)(v,{label:"Fullscreen",icon:o.g,onClick:()=>t()}),n&&!d&&i&&(0,p.jsx)(v,{label:"Close fullscreen",icon:r.Q,onClick:()=>n()})]})})}},251:(e,t,n)=>{n.r(t),n.d(t,{default:()=>Nt});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),f=n(25571),p=n(85850),v=n(84152),b=n(37638),y=n.n(b),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),R=n(34694),N=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 $(e,t){const n=t?"faded":"normal";return{kind:o.dd.Text,data:"",displayData:"",allowOverlay:!0,readonly:e,style:n}}function L(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 X(e,t){return(0,f.hX)(e)?t||{}:(0,f.hX)(t)?e||{}:y()(e,t)}function z(e){if((0,f.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:H(e))):[H(t)]}catch(t){return[H(e)]}}function H(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,f.hX)(e))return null;if("boolean"===typeof e)return e;const t=H(e).toLowerCase().trim();return""===t?null:!!I.includes(t)||!_.includes(t)&&void 0}function j(e){if((0,f.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,f.se)(t))return t}catch(t){}}else if(e instanceof Int32Array)return Number(e[0]);return Number(e)}function W(e,t,n){return Number.isNaN(e)||!Number.isFinite(e)?"":(0,f.hX)(t)||""===t?(0===n&&(e=Math.round(e)),T()(e).format((0,f.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[")?N.D0.formatPeriodType(BigInt(e),t):(0,R.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 Y(e){if((0,f.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 P(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),G=n(84996);function K(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,f.se)(e)?H(e):null,i=(0,f.se)(n)?q(n):"";return{...t,data:n,displayData:i,isMissingValue:(0,f.hX)(e)}}catch(n){return O(H(e),`The value cannot be interpreted as a string. Error: ${n}`)}},getCellValue:e=>void 0===e.data?null:e.data}}K.isEditableType=!1;const Z=K;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,f.hX)(i))return!e.isRequired;let o=H(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(H(e),n);if(t){const t=r(e);if(!1===t)return O(H(e),"Invalid input.");"string"===typeof t&&(e=t)}try{const t=(0,f.se)(e)?H(e):null,n=(0,f.se)(t)?q(t):"";return{...i,isMissingValue:(0,f.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=X({format:n,step:i,timezone:a},t.columnTypeOptions);let u,c,m;if((0,f.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,f.se)(d.min_value)&&(c=Y(d.min_value)||void 0),(0,f.se)(d.max_value)&&(m=Y(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}},p=e=>{const n=Y(e);return null===n?!t.isRequired:void 0!==n&&(!((0,f.se)(c)&&l(n)<l(c))&&!((0,f.se)(m)&&l(n)>l(m)))};return{...t,kind:e,sortMode:"default",validateInput:p,getCell(e,t){if(!0===t){const t=p(e);if(!1===t)return O(H(e),"Invalid input.");t instanceof Date&&(e=t)}const i=Y(e);let o="",r="",l=u;if(void 0===i)return O(H(e),"The value cannot be interpreted as a datetime object.");if(null!==i){let e=E().utc(i);if(!e.isValid())return O(H(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,f.hX)(i),data:{...g.data,date:i,displayDate:r,timezoneOffset:l}}},getCellValue(e){var t;return(0,f.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,f.se)(a)||(0,f.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(H(e),"The value cannot be interpreted as boolean."):{...t,data:n,isMissingValue:(0,f.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=N.D0.getTypeName(e.arrowType);let n;"timedelta64[ns]"===t?n="duration[ns]":t.startsWith("period[")&&(n=t);const i=X({step:se(t)?1:void 0,min_value:t.startsWith("uint")?0:void 0,format:n},e.columnTypeOptions),r=(0,f.hX)(i.min_value)||i.min_value<0,l=(0,f.se)(i.step)&&!Number.isNaN(i.step)?P(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=j(t);if((0,f.hX)(n))return!e.isRequired;if(Number.isNaN(n))return!1;let o=!1;return(0,f.se)(i.max_value)&&n>i.max_value&&(n=i.max_value,o=!0),!((0,f.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(H(e),"Invalid input.");"number"===typeof t&&(e=t)}let n=j(e),o="";if((0,f.se)(n)){if(Number.isNaN(n))return O(H(e),"The value cannot be interpreted as a number.");if((0,f.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(H(e),"The value is larger than the maximum supported integer values in number columns (2^53).");try{o=W(n,i.format,l)}catch(u){return O(H(n),(0,f.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,f.hX)(n),copyData:(0,f.hX)(n)?"":H(n)}},getCellValue:e=>void 0===e.data?null:e.data}}de.isEditableType=!0;const ue=de;function ce(e){let t="string";const n=X({options:"bool"===N.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=>H(e)))],value:""}};return{...e,kind:"selectbox",sortMode:"default",getCell(e,t){let n=null;return(0,f.se)(e)&&""!==e&&(n=H(e)),t&&!r.data.allowedValues.includes(n)?O(H(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,f.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=j(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,f.hX)(e)?[]:z(e);return{...t,data:n,isMissingValue:(0,f.hX)(e),copyData:(0,f.hX)(e)?"":H(n.map((e=>"string"===typeof e&&e.includes(",")?e.replace(/,/g," "):e)))}},getCellValue:e=>(0,f.hX)(e.data)||A(e)?null:e.data}}he.isEditableType=!1;const ge=he;function fe(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 pe(e,t){const n=e.types.index[t],i=e.indexNames[t];let o=!0;return"range"===N.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,f.hX)(l)&&(l={meta:null,numpy_type:"object",pandas_type:"object"}),"categorical"===N.D0.getTypeName(l)){const n=e.getCategoricalOptions(t);(0,f.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 be(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;const i=e.arrowType?N.D0.getTypeName(e.arrowType):null;let r;if("object"===e.kind)r=e.getCell((0,f.se)(t.content)?q(N.D0.format(t.content,t.contentType,t.field)):null);else if(["time","date","datetime"].includes(e.kind)&&(0,f.se)(t.content)&&("number"===typeof t.content||"bigint"===typeof t.content)){var l,a;let n;var s,d,u;if("time"===i&&(0,f.se)(null===(l=t.field)||void 0===l||null===(a=l.type)||void 0===a?void 0:a.unit))n=M().unix(N.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,f.hX)(t.content)?null:N.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,f.se)(t.displayContent)){var c,m,h,g;const n=q(t.displayContent);r.kind===o.dd.Text||r.kind===o.dd.Number&&(0,f.hX)(null===(c=e.columnTypeOptions)||void 0===c?void 0:c.format)||r.kind===o.dd.Uri&&(0,f.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,f.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=fe(t,"color",n);o&&(i.textDark=o);const r=fe(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 ye(e,t,n){const i=X({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,f.hX)(i.y_min)||(0,f.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,f.hX)(e))return F();const t=z(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=j(t[i]);if(Number.isNaN(e)||(0,f.hX)(e))return O(H(t),`The value cannot be interpreted as a numeric array. ${H(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=>W(e)))},isMissingValue:(0,f.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 ye("line_chart",e,"line")}function xe(e){return ye("bar_chart",e,"bar")}function Ce(e){return ye("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,f.se)(e)?[H(e)]:[];return{...t,data:n,isMissingValue:!(0,f.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,f.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,f.hX)(i))return!e.isRequired;const o=H(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,f.hX)(e))return{...r,data:null,isMissingValue:!0,onClickUri:()=>{}};const s=e;if("string"===typeof n)return O(H(s),n);if(o){if(!1===l(s))return O(H(s),"Invalid input.")}let d="";return s&&(d=void 0!==i?function(e,t){if((0,f.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,f.hX)(s),onClickUri:e=>{window.open(s.startsWith("www.")?`https://${s}`:s,"_blank","noopener,noreferrer"),e.preventDefault()},copyData:s}},getCellValue:e=>(0,f.hX)(e.data)?null:e.data}}Ee.isEditableType=!0;const ke=Ee;function Te(e){const t=se(N.D0.getTypeName(e.arrowType)),n=X({min_value:0,max_value:t?100:1,step:t?1:.01,format:t?"%3d%%":"percent"},e.columnTypeOptions);let i;try{i=W(n.max_value,n.format)}catch(a){i=H(n.max_value)}const r=(0,f.hX)(n.step)||Number.isNaN(n.step)?void 0:P(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,f.hX)(e))return F();if((0,f.hX)(n.min_value)||(0,f.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,f.hX)(n.step)||Number.isNaN(n.step))return O("Invalid step parameter",`The step parameter (${n.step}) must be a valid number.`);const t=j(e);if(Number.isNaN(t)||(0,f.hX)(t))return O(H(e),"The value cannot be interpreted as a number.");if(Number.isInteger(t)&&!Number.isSafeInteger(t))return O(H(e),"The value is larger than the maximum supported integer values in number columns (2^53).");let i="";try{i=W(t,n.format,r)}catch(a){return O(H(t),(0,f.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,f.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 Re=Te,Ne=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:Re})),Ie=[],_e="_index",Oe="_pos:",De={small:75,medium:200,large:400};function Ae(e){if(!(0,f.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?y()({...e},{title:n.label,width:Ae(n.width),isEditable:(0,f.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 $e(e){var t;const n=null===(t=e.columnTypeOptions)||void 0===t?void 0:t.type;let i;return(0,f.se)(n)&&(Ne.has(n)?i=Ne.get(n):(0,G.FF)(`Unknown column type configured in column configuration: ${n}`)),(0,f.hX)(i)&&(i=function(e){let t=e?N.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 Le=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,G.vV)(t),new Map}}(e.columns)),[e.columns]),l=e.useContainerWidth||(0,f.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={...pe(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=$e(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 Xe(e){return e.isIndex?_e:(0,f.hX)(e.name)?"":e.name}const ze=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[Xe(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,f.se)(t)&&(i[Xe(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(Xe(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,f.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 He=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,He.No)(e.colors.primary,.9),borderColor:e.colors.borderColorLight,horizontalBorderColor:e.colors.borderColorLight,fontFamily:e.genericFonts.bodyFont,bgSearchResult:(0,He.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,He.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,tableBorderWidth:e.sizes.borderWidth,headerIcons:t}};const je=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,f.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 be(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 We=n(53221);const Be=function(e,t,n){const[o,r]=i.useState(),{getCellContent:l,getOriginalIndex:a}=(0,We.uf)({columns:t.map((e=>L(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:L(n),direction:t,mode:n.sortMode})}),[o,s]);return{columns:s,sortColumn:d,getOriginalIndex:a,getCellContent:l}};var Ye=n(71034),Pe=n.n(Ye);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,f=a.columns.length>0,p=void 0!==a.current,v=i.useCallback((e=>{const t=!Pe()(e.rows.toArray(),a.rows.toArray()),n=!Pe()(e.columns.toArray(),a.columns.toArray()),i=!Pe()(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]),b=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:f,isCellSelected:p,clearSelection:b,processSelectionChange:v}};var qe=n(55562);const Je=",",Ge='"',Ke='"',Ze="\n",Qe="\ufeff",et=new RegExp(`[${[Je,Ge,Ze].join("")}]`);function tt(e){return e.map((e=>function(e){if((0,f.hX)(e))return"";const t=H(e);if(et.test(t))return`${Ge}${t.replace(new RegExp(Ge,"g"),Ke+Ge)}${Ge}`;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,G.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,G.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 f=d.getCell(g,!0);D(f)?(0,G.FF)(`Not applying the cell edit since it causes this error:\n ${f.data}`):(n.current.setCell(u,c,{...f,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,f.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]),p=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:p}};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,f.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,ft=50+ht,pt=2*gt+ht;const vt=function(e,t,n,o,r,l){let a=function(e){return Math.max(e*gt+ht,pt)}(t+(n?2:1)+(e.editingMode===g.i3.EditingMode.DYNAMIC?1:0)),s=Math.min(a,400);e.height&&(s=Math.max(e.height,pt),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,ft);let u,c=d;e.useContainerWidth?u=d:e.width&&(u=Math.min(Math.max(e.width,ft),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,f.se)(e.width)&&e.width>0;h({width:t?c:"100%",height:a})}else h({width:u||"100%",height:s})}),[l]),{minHeight:pt,maxHeight:a,minWidth:ft,maxWidth:c,resizableSize:m,setResizableSize:h}};var bt=n(89653),yt=n(90782);const wt=(0,bt.A)("img",{target:"e24uaba0"})({name:"6eya2z",styles:"max-width:100%;max-height:37.5rem;object-fit:scale-down"}),xt=e=>{let{urls:t}=e;const n=t&&t.length>0?t[0]:"";return n.startsWith("http")?(0,yt.jsx)("a",{href:n,target:"_blank",rel:"noreferrer noopener",children:(0,yt.jsx)(wt,{src:n})}):(0,yt.jsx)(wt,{src:n})};var Ct=n(3074),Mt=n(41639),St=n(4629),Et=n(88044),kt=n(16795);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,yt.jsx)(Ct.A,{content:(0,yt.jsx)(Et.hW,{"data-testid":"stDataFrameTooltipContent",children:(0,yt.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,yt.jsx)("div",{"data-testid":"stDataFrameTooltipTarget",style:{position:"fixed",top:t,left:n}})})},Rt=(0,bt.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 Nt=(0,h.A)((function(e){let{element:t,data:n,width:h,height:b,disabled:y,widgetMgr:w,isFullScreen:x,disableFullscreenMode:C,expand:M,collapse:S,fragmentId:E}=e;const k=i.useRef(null),T=i.useRef(null),R=i.useRef(null),{theme:N,headerIcons:I,tableBorderRadius:_,tableBorderWidth:O}=Ve(),{libConfig:{enforceDownloadInNewTab:D=!1}}=i.useContext(v.n),[A,F]=i.useState(!0),[X,z]=i.useState(!1),[H,V]=i.useState(!1),[j,W]=i.useState(!1),B=i.useMemo((()=>window.matchMedia&&window.matchMedia("(pointer: coarse)").matches),[]),Y=i.useMemo((()=>window.navigator.userAgent.includes("Mac OS")&&window.navigator.userAgent.includes("Safari")||window.navigator.userAgent.includes("Chrome")),[]);(0,f.hX)(t.editingMode)&&(t.editingMode=g.i3.EditingMode.READ_ONLY);const{READ_ONLY:P,DYNAMIC:U}=g.i3.EditingMode,q=n.dimensions,J=Math.max(0,q.dataRows),G=0===J&&!(t.editingMode===U&&q.dataColumns>0),K=J>15e4,Z=i.useRef(new ze(J)),[Q,ee]=i.useState(Z.current.getNumRows());i.useEffect((()=>{Z.current=new ze(J),ee(Z.current.getNumRows())}),[J]);const te=i.useCallback((()=>{Z.current=new ze(J),ee(Z.current.getNumRows())}),[J]),{columns:ne}=Le(t,n,y);i.useEffect((()=>{if(t.editingMode===P)return;const e=w.getStringValue({id:t.id,formId:t.formId});e&&(Z.current.fromJson(e,ne),ee(Z.current.getNumRows()))}),[]);const{getCellContent:ie}=je(n,ne,Q,Z),{columns:oe,sortColumn:re,getOriginalIndex:le,getCellContent:ae}=Be(J,ne,ie),se=i.useCallback((0,f.sg)(150,(e=>{const n={selection:{rows:[],columns:[]}};n.selection.rows=e.rows.toArray().map((e=>le(e))),n.selection.columns=e.columns.toArray().map((e=>Xe(oe[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,le,Xe]),{gridSelection:de,isRowSelectionActivated:ue,isMultiRowSelectionActivated:ce,isColumnSelectionActivated:me,isMultiColumnSelectionActivated:he,isRowSelected:ge,isColumnSelected:fe,isCellSelected:pe,clearSelection:ve,processSelectionChange:be}=Ue(t,G,y,oe,se);i.useEffect((()=>{ve(!0,!0)}),[x]);const ye=i.useCallback((e=>{var t;null===(t=T.current)||void 0===t||t.updateCells(e)}),[]);i.useEffect((()=>{if(!ue&&!me)return;const e=w.getStringValue({id:t.id,formId:t.formId});if(e){var n,i,r,l;const t=oe.map((e=>Xe(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){be({rows:s,columns:d,current:void 0})}}}),[]);const we=i.useCallback((()=>{Q!==Z.current.getNumRows()&&ee(Z.current.getNumRows())}),[Q]),xe=i.useCallback((0,f.sg)(150,(()=>{const e=Z.current.toJson(oe);let n=w.getStringValue({id:t.id,formId:t.formId});void 0===n&&(n=new ze(0).toJson([])),e!==n&&w.setStringValue({id:t.id,formId:t.formId},e,{fromUi:!0},E)})),[t.id,t.formId,w,E,oe,Z.current]),{exportToCsv:Ce}=it(ae,oe,Q,D),{onCellEdited:Me,onPaste:Se,onRowAppended:Ee,onDelete:ke,validateCell:Te}=ot(oe,t.editingMode!==U,Z,ae,le,ye,we,xe,ve),{tooltip:Re,clearTooltip:Ne,onItemHovered:Ie}=rt(oe,ae),{drawCell:_e,customRenderers:Oe}=ct(oe),De=i.useMemo((()=>oe.map((e=>L(e)))),[oe]),{columns:Ae,onColumnResize:Fe}=mt(De),$e=n.columns.length>1,{minHeight:He,maxHeight:We,minWidth:Ye,maxWidth:Pe,resizableSize:qe,setResizableSize:Je}=vt(t,Q,$e,h,b,x),Ge=i.useCallback((e=>{let[t,n]=e;return{...$(!0,!1),displayData:"empty",contentAlign:"center",allowOverlay:!1,themeOverride:{textDark:N.textLight},span:[0,Math.max(oe.length-1,0)]}}),[oe,N.textLight]),Ke=i.useCallback((()=>{te(),ve()}),[te,ve]);(0,m.X)({element:t,widgetMgr:w,onFormCleared:Ke});const Ze=!G&&t.editingMode===U&&!y,Qe=G?0:oe.filter((e=>e.isIndex)).length;return i.useEffect((()=>{setTimeout((()=>{if(R.current&&T.current){var e,t;const n=null===(e=R.current)||void 0===e||null===(t=e.querySelector(".dvn-stack"))||void 0===t?void 0:t.getBoundingClientRect();n&&(V(n.height>R.current.clientHeight),W(n.width>R.current.clientWidth))}}),1)}),[qe,Q,Ae]),(0,yt.jsxs)(Rt,{className:"stDataFrame","data-testid":"stDataFrame",hasCustomizedScrollbars:Y,ref:R,onMouseDown:e=>{if(R.current&&Y){const t=R.current.getBoundingClientRect();j&&t.height-7<e.clientY-t.top&&e.stopPropagation(),H&&t.width-7<e.clientX-t.left&&e.stopPropagation()}},onBlur:e=>{A||B||e.currentTarget.contains(e.relatedTarget)||ve(!0,!0)},children:[(0,yt.jsxs)(p.A,{isFullScreen:x,disableFullscreenMode:C,locked:ge&&!ue||pe||B&&A,onExpand:M,onCollapse:S,target:Rt,children:[(ue&&ge||me&&fe)&&(0,yt.jsx)(p.K,{label:"Clear selection",icon:a.b,onClick:()=>{ve(),Ne()}}),Ze&&ge&&(0,yt.jsx)(p.K,{label:"Delete row(s)",icon:s.e,onClick:()=>{ke&&(ke(de),Ne())}}),Ze&&!ge&&(0,yt.jsx)(p.K,{label:"Add row",icon:d.O,onClick:()=>{Ee&&(F(!0),Ee(),Ne())}}),!K&&!G&&(0,yt.jsx)(p.K,{label:"Download as CSV",icon:u.n,onClick:()=>Ce()}),!G&&(0,yt.jsx)(p.K,{label:"Search",icon:c.v,onClick:()=>{X?z(!1):(F(!0),z(!0)),Ne()}})]}),(0,yt.jsx)(l.c,{"data-testid":"stDataFrameResizable",ref:k,defaultSize:qe,style:{border:`${O} solid ${N.borderColor}`,borderRadius:`${_}`},minHeight:He,maxHeight:We,minWidth:Ye,maxWidth:Pe,size:qe,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&&Je({width:k.current.size.width,height:We-k.current.size.height===ht?k.current.size.height+ht:k.current.size.height})},children:(0,yt.jsx)(r.D,{className:"stDataFrameGlideDataEditor","data-testid":"stDataFrameGlideDataEditor",ref:T,columns:Ae,rows:G?1:Q,minColumnWidth:50,maxColumnWidth:1e3,maxColumnAutoWidth:500,rowHeight:gt,headerHeight:gt,getCellContent:G?Ge:ae,onColumnResize:B?void 0:Fe,resizeIndicator:"header",freezeColumns:Qe,smoothScrollX:!0,smoothScrollY:!0,verticalBorder:!0,getCellsForSelection:!0,rowMarkers:"none",rangeSelect:B?"cell":"rect",columnSelect:"none",rowSelect:"none",onItemHovered:Ie,keybindings:{downFill:!0},onKeyDown:e=>{(e.ctrlKey||e.metaKey)&&"f"===e.key&&(z((e=>!e)),e.stopPropagation(),e.preventDefault())},showSearch:X,onSearchClose:()=>{z(!1),Ne()},onHeaderClicked:(e,t)=>{G||K||me||(ue&&ge&&ve(),re(e))},gridSelection:de,onGridSelectionChange:e=>{(A||B)&&(be(e),void 0!==Re&&Ne())},theme:N,onMouseMove:e=>{"out-of-bounds"===e.kind&&A?F(!1):"out-of-bounds"===e.kind||A||F(!0)},fixedShadowX:!0,fixedShadowY:!0,experimental:{scrollbarWidthOverride:0,...Y&&{paddingBottom:j?-6:void 0,paddingRight:H?-6:void 0}},drawCell:_e,customRenderers:Oe,imageEditorOverride:xt,headerIcons:I,validateCell:Te,onPaste:!1,...ue&&{rowMarkers:{kind:"checkbox",checkboxStyle:"square",theme:{bgCell:N.bgHeader,bgCellMedium:N.bgHeader}},rowSelectionMode:ce?"multi":"auto",rowSelect:y?"none":ce?"multi":"single",rowSelectionBlending:"mixed",rangeSelectionBlending:"exclusive"},...me&&{columnSelect:y?"none":he?"multi":"single",columnSelectionBlending:"mixed",rangeSelectionBlending:"exclusive"},...!G&&t.editingMode!==P&&!y&&{fillHandle:!B,onCellEdited:Me,onPaste:Se,onDelete:ke},...!G&&t.editingMode===U&&{trailingRowOptions:{sticky:!1,tint:!0},rowMarkers:{kind:"checkbox",checkboxStyle:"square",theme:{bgCell:N.bgHeader,bgCellMedium:N.bgHeader}},rowSelectionMode:"multi",rowSelect:y?"none":"multi",onRowAppended:y?void 0:Ee,onHeaderClicked:void 0}})}),Re&&Re.content&&(0,yt.jsx)(Tt,{top:Re.top,left:Re.left,content:Re.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}}}]);
@@ -1,5 +0,0 @@
1
- <svg width="43" height="24" viewBox="0 0 43 24" fill="none" xmlns="http://www.w3.org/2000/svg">
2
- <path d="M21.3306 14.7705L13.8509 10.7268L0.867161 3.70863C0.855309 3.69651 0.831606 3.69651 0.819755 3.69651C0.345679 3.46621 -0.140248 3.95105 0.0375302 4.43591L6.65325 21.6929L6.65444 21.6966C6.66155 21.7135 6.66747 21.7305 6.67459 21.7475C6.94599 22.3911 7.53859 22.7887 8.18333 22.9451C8.23785 22.9572 8.27685 22.9682 8.34231 22.9815C8.40746 22.9963 8.49859 23.0166 8.57681 23.0226C8.58985 23.0238 8.6017 23.0238 8.61474 23.0251H8.62422C8.6337 23.0263 8.64318 23.0263 8.65267 23.0275H8.6657C8.674 23.0287 8.68348 23.0287 8.69178 23.0287H8.70718C8.71667 23.0299 8.72615 23.0299 8.73563 23.0299C17.1131 23.964 25.5683 23.964 33.9458 23.0299C34.0465 23.0299 34.1449 23.0251 34.2397 23.0154C34.2705 23.0117 34.3001 23.0081 34.3298 23.0044C34.3333 23.0032 34.3381 23.0032 34.3416 23.002C34.3618 22.9996 34.3819 22.996 34.4021 22.9923C34.4317 22.9887 34.4613 22.9826 34.491 22.9766C34.5502 22.9632 34.5772 22.9535 34.6576 22.9253C34.738 22.897 34.8715 22.8476 34.9551 22.8064C35.0386 22.7651 35.0966 22.7257 35.1665 22.6808C35.253 22.6251 35.3353 22.568 35.4187 22.504C35.4547 22.4758 35.4794 22.4578 35.5055 22.4323L35.4913 22.4238L21.3306 14.7705Z" fill="#FF2B2B"/>
3
- <path d="M41.8158 3.70881H41.804L28.8154 10.727L36.0356 21.7246L42.6348 4.43608V4.41184C42.8007 3.90275 42.2911 3.44214 41.8158 3.70881Z" fill="#7D353B"/>
4
- <path d="M22.0227 0.371706C21.6909 -0.124053 20.9679 -0.124053 20.6479 0.371706L13.8508 10.7269L21.3306 14.7706L35.5054 22.4323C35.5944 22.3431 35.6658 22.2563 35.7413 22.1645C35.848 22.03 35.9475 21.8857 36.0352 21.7245L28.815 10.7269L22.0227 0.371706Z" fill="#BD4043"/>
5
- </svg>