streamlit-nightly 1.34.1.dev20240513__py2.py3-none-any.whl → 1.34.1.dev20240516__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 (32) hide show
  1. streamlit/delta_generator.py +4 -4
  2. streamlit/elements/arrow.py +4 -4
  3. streamlit/elements/lib/column_config_utils.py +4 -1
  4. streamlit/elements/plotly_chart.py +4 -4
  5. streamlit/elements/vega_charts.py +410 -47
  6. streamlit/proto/ArrowVegaLiteChart_pb2.py +2 -2
  7. streamlit/proto/ArrowVegaLiteChart_pb2.pyi +15 -2
  8. streamlit/runtime/metrics_util.py +1 -1
  9. streamlit/runtime/state/common.py +3 -1
  10. streamlit/runtime/state/widgets.py +1 -0
  11. streamlit/static/asset-manifest.json +8 -10
  12. streamlit/static/index.html +1 -1
  13. streamlit/static/static/js/1168.14f7c6ff.chunk.js +1 -0
  14. streamlit/static/static/js/474.7eb0c6cd.chunk.js +1 -0
  15. streamlit/static/static/js/5345.73d26e5d.chunk.js +1 -0
  16. streamlit/static/static/js/5441.1b94928f.chunk.js +1 -0
  17. streamlit/static/static/js/8148.f80eec24.chunk.js +1 -0
  18. streamlit/static/static/js/{main.45247b52.js → main.60ba1bc7.js} +2 -2
  19. {streamlit_nightly-1.34.1.dev20240513.dist-info → streamlit_nightly-1.34.1.dev20240516.dist-info}/METADATA +1 -1
  20. {streamlit_nightly-1.34.1.dev20240513.dist-info → streamlit_nightly-1.34.1.dev20240516.dist-info}/RECORD +25 -27
  21. streamlit/static/static/js/1168.7452e363.chunk.js +0 -1
  22. streamlit/static/static/js/3631.be5c35fa.chunk.js +0 -1
  23. streamlit/static/static/js/474.87506447.chunk.js +0 -1
  24. streamlit/static/static/js/5345.65c91ee7.chunk.js +0 -1
  25. streamlit/static/static/js/5441.5bacdeda.chunk.js +0 -1
  26. streamlit/static/static/js/8148.cc5b50d8.chunk.js +0 -1
  27. streamlit/static/static/js/9758.6e6d8662.chunk.js +0 -1
  28. /streamlit/static/static/js/{main.45247b52.js.LICENSE.txt → main.60ba1bc7.js.LICENSE.txt} +0 -0
  29. {streamlit_nightly-1.34.1.dev20240513.data → streamlit_nightly-1.34.1.dev20240516.data}/scripts/streamlit.cmd +0 -0
  30. {streamlit_nightly-1.34.1.dev20240513.dist-info → streamlit_nightly-1.34.1.dev20240516.dist-info}/WHEEL +0 -0
  31. {streamlit_nightly-1.34.1.dev20240513.dist-info → streamlit_nightly-1.34.1.dev20240516.dist-info}/entry_points.txt +0 -0
  32. {streamlit_nightly-1.34.1.dev20240513.dist-info → streamlit_nightly-1.34.1.dev20240516.dist-info}/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: streamlit-nightly
3
- Version: 1.34.1.dev20240513
3
+ Version: 1.34.1.dev20240516
4
4
  Summary: A faster way to build and share data apps
5
5
  Home-page: https://streamlit.io
6
6
  Author: Snowflake Inc
@@ -10,7 +10,7 @@ streamlit/config_option.py,sha256=7kfzt-xhJs3awfyIHsyRaTBSxLpz1RioobDl5uXV37g,11
10
10
  streamlit/config_util.py,sha256=-MGb5eBrsZvNmqywmiBmo27ll1F9OmCDX4toGWglv2c,6015
11
11
  streamlit/constants.py,sha256=KhNjCeooky2bbW7QMX3ijOA5enHIOgj6Xo4TBhtTJNE,798
12
12
  streamlit/cursor.py,sha256=LUDB6o7xyGb1it_8rl5QU_N3MRhFCdtnd9tuTx78abU,6001
13
- streamlit/delta_generator.py,sha256=-wskvHM9NKDUtBoOGorIhkRmHy2tf1kjLJOki9ySwaY,28228
13
+ streamlit/delta_generator.py,sha256=0ml0BBQFlteQoHn08hl6VeHNzoJtCpp40HS-BzXTqds,28200
14
14
  streamlit/deprecation_util.py,sha256=3JxWWS424v1kQ-qOq-9sQNYPQ8_UERH3QpYtkWxLP74,6516
15
15
  streamlit/development.py,sha256=iO-KQc62Do9uSwoa5vV2tfImqz3QPhJ1Md6DETcnHkc,813
16
16
  streamlit/echo.py,sha256=s0tT_IXxh7BLHOapRS8syE5Tnm4Djm3-oKO0J0MY1wI,4077
@@ -60,7 +60,7 @@ streamlit/connections/sql_connection.py,sha256=Doi_bshOqNBhR7m42bvE6EPtUaLFBqaPR
60
60
  streamlit/connections/util.py,sha256=3Ryc93a5KstsVwQl6ug5cmb8F-WQoD4c0mBWNPLoFsY,3022
61
61
  streamlit/elements/__init__.py,sha256=Vrf1yVMOcTyhUPnYvsfyeL96Vpd5z8KoSV5ZzTcTQgU,616
62
62
  streamlit/elements/alert.py,sha256=nf_Pyr6s7ms8DNDp21__qSsZUddul_mHuXUR7e6rCZk,7432
63
- streamlit/elements/arrow.py,sha256=1__6GzEQ8q_z-p3Dahx1X5TEfOHRqXUCLlfbWWIj-iQ,23818
63
+ streamlit/elements/arrow.py,sha256=c4JpRCbHbZlnQLxMUbGSaRhbojKHz0BiADpa9DDaPkY,23830
64
64
  streamlit/elements/balloons.py,sha256=QnORgG96Opga1SVg8tUBOm-l3nMpKWmjvy1crcS2XaU,1482
65
65
  streamlit/elements/bokeh_chart.py,sha256=4Py_NZaxU22iR6WIvE8fxv3wnJqRRMIvouIiMA7EOqA,3916
66
66
  streamlit/elements/code.py,sha256=zltCajNi2DTPev4w19bdCoq_AJkWs9wRxnn4WEci6qM,2476
@@ -81,7 +81,7 @@ streamlit/elements/map.py,sha256=0zwVCZ9FjPUiCk5XfVe7vKg6UiLDbBLUkrHgnJz_Rr0,162
81
81
  streamlit/elements/markdown.py,sha256=gL_6MVMTysJFm_aHLimyJVj6BmGdhuGRnemvbzcquAc,10384
82
82
  streamlit/elements/media.py,sha256=ITHQYPWi2f8lxTv7D6HgH7GehafKkIBxv85BQWApKLg,29678
83
83
  streamlit/elements/metric.py,sha256=hmfjlZY-FVNrjkfRW_Lz--hgFNxNpePqBHDeslQ6b-c,10114
84
- streamlit/elements/plotly_chart.py,sha256=ymuSs0jwehWtmZ9LCr2KuTZiZhmQaSGpAiDyXZP-KFY,15332
84
+ streamlit/elements/plotly_chart.py,sha256=DVewmd1n7jzMjf7vKHz7Yx9cI82I3ZVmw7TgqjNYTxk,15344
85
85
  streamlit/elements/progress.py,sha256=7PbyifyZ4vqYijBonXWLsujST3mVaKVyMaYvP3yinEk,5844
86
86
  streamlit/elements/pyplot.py,sha256=TdYPt2K5tOCTO0OiLzN7LEBuy2ty_6SKXfGzmzFQNYw,6441
87
87
  streamlit/elements/snow.py,sha256=WHqk8zmfOr5iD0R-wLlAdlIkDDbiaayguTVmA4e7V_Q,1439
@@ -89,11 +89,11 @@ streamlit/elements/spinner.py,sha256=ZMJlO-J77lpQZbRPvqJ80ur9u11dBUwJr6JgDct8TLY
89
89
  streamlit/elements/text.py,sha256=-g2LYiJpP2OAdllpd7Df9rhTehIOEuiZN7-u1jwKEio,1856
90
90
  streamlit/elements/toast.py,sha256=pqA14fzEE9rJM4rBgUpXPsu6AeX3XyC5LCHBxXYHQvk,4336
91
91
  streamlit/elements/utils.py,sha256=Eo8X2KAa_Pkp7QOfFPKoMRNZ01oYt2DbZuHuqhosZv4,8085
92
- streamlit/elements/vega_charts.py,sha256=I3mkRQErbVUkpotGrXbfGCMDv-frGR2yCv33t3uFWRM,43912
92
+ streamlit/elements/vega_charts.py,sha256=af7ovcQBXnKAO4wQp59oj47h9B3qAGNzpdgoVLxJzgk,58273
93
93
  streamlit/elements/write.py,sha256=XYR20zqRcDJ8BQVE3s4mrY6gyWatr9ikXfkFqAod900,20804
94
94
  streamlit/elements/lib/__init__.py,sha256=Vrf1yVMOcTyhUPnYvsfyeL96Vpd5z8KoSV5ZzTcTQgU,616
95
95
  streamlit/elements/lib/built_in_chart_utils.py,sha256=_9zHVXvXtW1MF3GXU3eZm5aqe_IxwnDGu4idfV4fmJI,30666
96
- streamlit/elements/lib/column_config_utils.py,sha256=zkm0bY2dYFIhnnIpjZB2nAO9FM7waaSiDKUrSjYXtPU,17226
96
+ streamlit/elements/lib/column_config_utils.py,sha256=1ivu3gUuRWhAbtcjAeIJxYD8AaHlaDVEaFgwsaBUrjA,17374
97
97
  streamlit/elements/lib/column_types.py,sha256=DkSw7CyFKjjjC_cqBNwNFr15C2oyGILOYBshp3-lCCo,51174
98
98
  streamlit/elements/lib/dialog.py,sha256=IflTt5K7iWJPao689D-zXmKK5gd4FwEvtqRBqjOa4ug,5685
99
99
  streamlit/elements/lib/dicttools.py,sha256=NC0mMAu1vixFmth-SNLDbaLJ8A02v6AuU1GjJNR8Ydo,3839
@@ -134,8 +134,8 @@ streamlit/proto/AppPage_pb2.py,sha256=KeDDNVEEGyhhd338WXp2osH0eSUWwbsZiZKhjp9RmG
134
134
  streamlit/proto/AppPage_pb2.pyi,sha256=ZQFPWcRzxsv8koc4JrfHYeHeB9jljX45jx49pKxADtw,1971
135
135
  streamlit/proto/ArrowNamedDataSet_pb2.py,sha256=8G84C2kf4TIKLxf2YMJGwyU9yxUqqP5NhC8sRn1agHo,1410
136
136
  streamlit/proto/ArrowNamedDataSet_pb2.pyi,sha256=794aqFA6ifC_pQz5YiMUxrtBqOUK9pbE0KVzjM8_xyk,2051
137
- streamlit/proto/ArrowVegaLiteChart_pb2.py,sha256=iqX2mPKQEOzRzsyiJ6dgpUPrm1o4I2F--UcuIBGi2b8,1710
138
- streamlit/proto/ArrowVegaLiteChart_pb2.pyi,sha256=AHaPAQDuge8OifUqlN4u7d5mLiotmSvM1G09yGYdiQg,2898
137
+ streamlit/proto/ArrowVegaLiteChart_pb2.py,sha256=dsBisle-pg4SVya3_1_ooqr_Ouw-zOdAFyfHYBGS1Nc,1822
138
+ streamlit/proto/ArrowVegaLiteChart_pb2.pyi,sha256=uX_UTDbyMoAaFTqck20fg258IOvg-bJZ25i2tZvTLF0,3692
139
139
  streamlit/proto/Arrow_pb2.py,sha256=lgcWDVjfMUgwZYa20qne4A56csCnqKWgoAcFD_D5iuk,2299
140
140
  streamlit/proto/Arrow_pb2.pyi,sha256=qUUl_v8ZTtpufdhKZ82qYsQzEk4zHU9RXLdx1GTgvPQ,7651
141
141
  streamlit/proto/Audio_pb2.py,sha256=vtDpcfV7hiAeWT9xaZm0WzEqdlKDFLoiTvPvS1-qiy8,1390
@@ -291,7 +291,7 @@ streamlit/runtime/media_file_storage.py,sha256=hQkMC__XRjshEUD73QCSrX3vrfOOO0U7V
291
291
  streamlit/runtime/memory_media_file_storage.py,sha256=voiscKQAwKdhIExlsnCaZDRKrKso2yU7KlA92Cgqu2M,6331
292
292
  streamlit/runtime/memory_session_storage.py,sha256=Tx-_3oUg6i9UokpBUIWvqhpWE0WmjtX764KdOzNvDMs,2940
293
293
  streamlit/runtime/memory_uploaded_file_manager.py,sha256=rCLvdZv2nPlWeCiHnwV8phcVV43mUCgW7BaWkmEXgpM,4422
294
- streamlit/runtime/metrics_util.py,sha256=d1UkSsTK6pOdPS8RSzHM8uHGcmjInTopAhPpMaj4igQ,14265
294
+ streamlit/runtime/metrics_util.py,sha256=BvoxXldgwZlvO1kvVrkjBNqw9lkhGFhHxStoVW06j94,14267
295
295
  streamlit/runtime/runtime.py,sha256=7U_dxSi5kQAV3EVroORDGUf8V8UayQmQWDpqrNnmyUg,29438
296
296
  streamlit/runtime/runtime_util.py,sha256=FxOnGmLQWA9eEIWbNe1_l69XZrDGI51swJ4K_vekY9w,4192
297
297
  streamlit/runtime/script_data.py,sha256=-sBITUF0U7DIDL5LE_nFpXAvjnEfiJ9J3HAnnqML9ds,1749
@@ -324,22 +324,22 @@ streamlit/runtime/scriptrunner/script_requests.py,sha256=oGSvQ12To4eWX3Rp5edbBkW
324
324
  streamlit/runtime/scriptrunner/script_run_context.py,sha256=41zu9DQ71xed17XMAdEV2mPJLRyUFGEuZw4PqYH1u4w,8818
325
325
  streamlit/runtime/scriptrunner/script_runner.py,sha256=QT9Xs8pUzSLYpUZLQTat9MQvmdD1okeEYOWfmnRSe4Q,29911
326
326
  streamlit/runtime/state/__init__.py,sha256=UpfNfPrWJ6rVdD-qc0IP_bwZ4MrcNUjyU9wEKDK-eWM,1528
327
- streamlit/runtime/state/common.py,sha256=M_yJXkWeDGhFk_SgE9X8GddCYPu2abrXEjR7Gp1GN8A,8065
327
+ streamlit/runtime/state/common.py,sha256=fq7wSlVrQb8Lv5qNb1mSYjMERVEqImgRmTWCxPcYl4Y,8159
328
328
  streamlit/runtime/state/query_params.py,sha256=cESFE1Jq4oN6YpgocUsX0f1sSHMyGRoupbxm9X6v3NM,7477
329
329
  streamlit/runtime/state/query_params_proxy.py,sha256=gRv8cXDQkKT2IJ5xQ_uSecDOkcsI_Y7VcudCxnO2BEg,7192
330
330
  streamlit/runtime/state/safe_session_state.py,sha256=StGh9V-tm7MCfohgw5FFfwz8tDwwHLeucXAN-lLLObg,5169
331
331
  streamlit/runtime/state/session_state.py,sha256=jOIrZD94Cn1wrLdPZIcMYPxiGK1gbus1pD4FXSYp4Q4,27500
332
332
  streamlit/runtime/state/session_state_proxy.py,sha256=vg1w054kfdO77fZUgPcHz4A47ghy6hZdp_c6A4ExNIs,5469
333
- streamlit/runtime/state/widgets.py,sha256=ZA1GWhFrHBvi_ZZI23fpeEaOPhftsz8YIxeRXIaAoh4,11300
334
- streamlit/static/asset-manifest.json,sha256=O8yFFG_Dedj7r1XuumLg40DsHklV2N95P8c3Wb_NpjM,14509
333
+ streamlit/runtime/state/widgets.py,sha256=8uRQgUNZILuL9VNLs_ttdaMggVznj9Yw7Zc0Nva8Xt8,11343
334
+ streamlit/static/asset-manifest.json,sha256=iYqaR03OQXgthdkeHDdrQ-srcc31qnt9bfC0bLxTSaE,14353
335
335
  streamlit/static/favicon.png,sha256=if5cVgw7azxKOvV5FpGixga7JLn23rfnHcy1CdWI1-E,1019
336
- streamlit/static/index.html,sha256=sZKNHj3U0xfeTXWP6WSPpdsFDmLF-_lF3u8-oguSmdw,891
336
+ streamlit/static/index.html,sha256=wFEW13GEJkD0V64A4_Lcx8Jii3i4tjvczetSuMaBE_I,891
337
337
  streamlit/static/static/css/3466.8b8f33d6.chunk.css,sha256=4m2lbj1eVFXSaGCRBHZNhqyRz-4Ce9KogjJPxIq6On8,33275
338
338
  streamlit/static/static/css/5441.e3b876c5.chunk.css,sha256=XExLUUHInaWJp_m8TtBWhQ88SUuxZl6Jnnw5NA6rwI4,2633
339
339
  streamlit/static/static/css/8148.49dfd2ce.chunk.css,sha256=LjBHDWjz8Hi0dr3DH9ujdlw4E2llc0xdDQHR64H4NQ8,12090
340
340
  streamlit/static/static/css/main.3aaaea00.css,sha256=naXr74hoMHcEtYRIM242vwZvl3yv3waMNyAlBU7_-h8,29246
341
341
  streamlit/static/static/js/1074.73973756.chunk.js,sha256=yYfPwAD3dU5390zR-Bx_1D7daQYbNTWlJLaLS1f-8RQ,5446
342
- streamlit/static/static/js/1168.7452e363.chunk.js,sha256=pWXEPnIHtOluwKFXTaCHnakys--FqbAKdu2ealLOlEw,14999
342
+ streamlit/static/static/js/1168.14f7c6ff.chunk.js,sha256=3p-FxlAt2zio7ld-yxQNzOgRNwC_YFB-UH7aay6Dt9w,15023
343
343
  streamlit/static/static/js/1307.0f0cca93.chunk.js,sha256=2FD0NFgIpYza42gMNfiJvSGlVQMarJ2-fRsCVT-tBs0,5857
344
344
  streamlit/static/static/js/1451.3b0a3e31.chunk.js,sha256=vRhjwzHQWIfETHeKITj1Y2AjyGFvZDjei7pLxcSicDk,5024
345
345
  streamlit/static/static/js/1479.6709db03.chunk.js,sha256=WiqEhTakao-C6xpgeqCYklaAVvSNA5oQfySGE0MJF44,9618
@@ -357,7 +357,6 @@ streamlit/static/static/js/3301.1d1b10bb.chunk.js,sha256=TbgR_nsEaMzQT3WmvPZ6hCC
357
357
  streamlit/static/static/js/3466.05d62820.chunk.js,sha256=m_N-3P_55iGreOsYeHE5byogeDZ2cwBONJDUepoTG6c,2306325
358
358
  streamlit/static/static/js/3466.05d62820.chunk.js.LICENSE.txt,sha256=PeHoWwanyVMJhSSZY5mBxJ_ViM-rFeBoTg9klHLMtdE,1219
359
359
  streamlit/static/static/js/3513.7dedbda2.chunk.js,sha256=kut9Dx6M-zOZ3BIcxx66F__iOqUUYuS_9nXZA258Lpk,1081
360
- streamlit/static/static/js/3631.be5c35fa.chunk.js,sha256=OzF7d8fqPR2XqRzc2JgG-HilB9pW5XQvav0qNal78lg,5288
361
360
  streamlit/static/static/js/4113.99983645.chunk.js,sha256=lSuWiYq2xuTjv47dPase8_rtmY24R_Seef8vIzSU9Fo,2610
362
361
  streamlit/static/static/js/4132.49bf3f2c.chunk.js,sha256=7VSP_20CCc0ynooZRtZBcr9g-afnXpGmrqlUpK6c0p8,9226
363
362
  streamlit/static/static/js/4132.49bf3f2c.chunk.js.LICENSE.txt,sha256=426lVBKMW2FKu5BqnSDpZnhms1QqJZ-nDvqwC62w-Z8,479
@@ -366,13 +365,13 @@ streamlit/static/static/js/4319.bf1c86bf.chunk.js,sha256=NvS6RzpYc6iEn8V7lyH8reM
366
365
  streamlit/static/static/js/4477.1bd49702.chunk.js,sha256=b7flhTyqosih9sf5vmJyjfFXvqHwKDQpwO8i-4sOrHI,20662
367
366
  streamlit/static/static/js/4500.b6f348d1.chunk.js,sha256=-lgkjMD-44gw_WlOjkI7v7Ruq1GV0-ZaN6r59gdBJEk,587
368
367
  streamlit/static/static/js/4666.c4b22a63.chunk.js,sha256=JytLRCjyXoE3jTzvwVfICWkK_cw_t7eTVrxXf964dyk,14830
369
- streamlit/static/static/js/474.87506447.chunk.js,sha256=53UXid5OtcopEqbX4i70AszYcQruFauTq2NjP-_5fsY,4800
368
+ streamlit/static/static/js/474.7eb0c6cd.chunk.js,sha256=dLMpCe2EfprzI2KdcoJtsKN5H4hPYCw3XLrqgWiR_mM,2741
370
369
  streamlit/static/static/js/5106.44f0ff51.chunk.js,sha256=aAGpqRrzVOlFHqBopYM2GLt9qcZ9h3fRxgFcuJ16nZw,7161
371
370
  streamlit/static/static/js/5117.04bfe5d3.chunk.js,sha256=X9_mcI6Axh7gJ1vHpnWY3WwvrJP4_8RjDj7lf3Sflps,21681
372
371
  streamlit/static/static/js/5249.f2f4070d.chunk.js,sha256=UYr_sBnftyILGh3k5zbw6FTT48T2_TJmiz2jVYFUAmg,2263616
373
- streamlit/static/static/js/5345.65c91ee7.chunk.js,sha256=tIPHPVcIHGQMIy3_4CrO5vbHlLjogYqzHZ42Y1p_FEk,8252
372
+ streamlit/static/static/js/5345.73d26e5d.chunk.js,sha256=22lINwDLHPN_xtCEcBrOh89IC2S2Jzz-3JIFVw1Pu-8,15117
374
373
  streamlit/static/static/js/5379.6571574f.chunk.js,sha256=g19Qe0ubL35F_bDHl42_p7sl_786ddUsysjhbJoERuw,10874
375
- streamlit/static/static/js/5441.5bacdeda.chunk.js,sha256=CAYHhOuQHS9j1hGJn6gONGHSbylTmS8mZdtwfLgh56w,12231
374
+ streamlit/static/static/js/5441.1b94928f.chunk.js,sha256=EkzUeUowby-YbnI6Xc5P9NgHndMWgiunJJrtNO7L4cA,14533
376
375
  streamlit/static/static/js/5791.9a42fb4b.chunk.js,sha256=6j7S1fDfB321ibbChH0lWkP3W2iNCCdJEPhtC-S9STM,107585
377
376
  streamlit/static/static/js/6013.4ba2d616.chunk.js,sha256=7hh155iz4ajC_ZbHQ1Vp2bkElHoDMdb9PeF-DIY-hWc,11449
378
377
  streamlit/static/static/js/6405.ac5a6f23.chunk.js,sha256=u7b4I7WVspIbm8eKcgMs2L0aTG3f414AHrJtDsHfwSU,13239
@@ -389,7 +388,7 @@ streamlit/static/static/js/7483.64f23be7.chunk.js.LICENSE.txt,sha256=MFVywCe4fCt
389
388
  streamlit/static/static/js/7602.e8abc06b.chunk.js,sha256=DADZDCiAPuadYigGbSyaeDZsnQgXZXKJCL7O1SLUIdU,13275
390
389
  streamlit/static/static/js/7805.acc6316a.chunk.js,sha256=YyXY3PAy2jMjjboKbm_8FKBYEyXVoAOaYOXzNVBQmLk,4610
391
390
  streamlit/static/static/js/8005.43974a35.chunk.js,sha256=0WJomUw6UcQmH5JyhRJbaTUPk52drggGHoau5qKzxoQ,3358
392
- streamlit/static/static/js/8148.cc5b50d8.chunk.js,sha256=eT9Wl2HYdfQGJnKGyBKlxAtSIz5lDB7qqEdthSJ3pSk,49951
391
+ streamlit/static/static/js/8148.f80eec24.chunk.js,sha256=3-vgWjb4UIL3l9e8CfR3ulHg4pFordj_mBMom7dqLxQ,51109
393
392
  streamlit/static/static/js/8427.bd0a7cf3.chunk.js,sha256=Knd2dmQBiSRgHnrNWZcGq0jCG5wPSm7aJ2T3kN6iWW4,3114
394
393
  streamlit/static/static/js/8477.de889fe5.chunk.js,sha256=zSHIjuqcBrVcEFGrUI_xbwRRRFfrU7iZntdezrPzMOw,1889
395
394
  streamlit/static/static/js/8492.0d93bd08.chunk.js,sha256=BYfb3-zW06nDj6mvKVIn8VmWHm4y5NIH-jfRYpBtXPk,15493
@@ -401,10 +400,9 @@ streamlit/static/static/js/9336.2d95d840.chunk.js,sha256=6nGdXfPdjgSauDXzdPVqijn
401
400
  streamlit/static/static/js/937.a1248039.chunk.js,sha256=NS-xyj3NwPLJvghF8AJ3H_kVfRg1LbZYl0HHF8klQj0,20791
402
401
  streamlit/static/static/js/937.a1248039.chunk.js.LICENSE.txt,sha256=KAhbcQ1jd_N8DfV6lLYlQ_EQOalgErOV-Sf87G-Rh2g,188
403
402
  streamlit/static/static/js/9656.8c935274.chunk.js,sha256=3VB6NT0EQErJUX2SYLQpmNAp19sWI45AbNOQLVjcvII,22113
404
- streamlit/static/static/js/9758.6e6d8662.chunk.js,sha256=3Gtwgkru2xQTl1mCxFjILQ_Ppb8DMKySHY5YVhm9ihY,2119
405
403
  streamlit/static/static/js/9865.fd93213d.chunk.js,sha256=Ul2N951ZrAXpJOWo4SV4AKlymjMMNPJxpea3uRt8B_Y,4011
406
- streamlit/static/static/js/main.45247b52.js,sha256=MT_1UWg1qzQQpexVuOifIZD2Qk6FOZnbq4VHWbfGvpY,4403722
407
- streamlit/static/static/js/main.45247b52.js.LICENSE.txt,sha256=YTeqT7R6idssTgnyi3gf0tRiq18-LiPeDOpsWcnbi34,3184
404
+ streamlit/static/static/js/main.60ba1bc7.js,sha256=3PixEja8Ew-WXhQIEvZh0OwbmF3NHRv5upvazwN7FzA,4405422
405
+ streamlit/static/static/js/main.60ba1bc7.js.LICENSE.txt,sha256=YTeqT7R6idssTgnyi3gf0tRiq18-LiPeDOpsWcnbi34,3184
408
406
  streamlit/static/static/media/KaTeX_AMS-Regular.73ea273a72f4aca30ca5.woff2,sha256=DN04fJWQoan5eUVgAi27WWVKfYbxh6oMgUla1C06cwg,28076
409
407
  streamlit/static/static/media/KaTeX_AMS-Regular.853be92419a6c3766b9a.ttf,sha256=aFNIQLz90r_7bw6N60hoTdAefwTqKBMmdXevuQbeHRM,63632
410
408
  streamlit/static/static/media/KaTeX_AMS-Regular.d562e886c52f12660a41.woff,sha256=MNqR6EyJP4deJSaJ-uvcWQsocRReitx_mp1NvYzgslE,33516
@@ -523,9 +521,9 @@ streamlit/web/server/server_util.py,sha256=FptUF-CjFh78VjeTQDi3R78m7E64MDe3wcklg
523
521
  streamlit/web/server/stats_request_handler.py,sha256=cL__KbJFIhdhf1Zt6skbLehUqT-jo56x1HARxogZDOI,3680
524
522
  streamlit/web/server/upload_file_request_handler.py,sha256=YPDmKWUnaGH9d4QNcMEsY5k1YIz_q-xW1K5fmgHaDzc,4966
525
523
  streamlit/web/server/websocket_headers.py,sha256=07SkWLcOxbyldl7UcBzrMKY9ZojypCQACiKoh5FcH7Y,1870
526
- streamlit_nightly-1.34.1.dev20240513.data/scripts/streamlit.cmd,sha256=ZEYM3vBJSp-k7vwSJ3ba5NzEk9-qHdSeLvGYAAe1mMw,676
527
- streamlit_nightly-1.34.1.dev20240513.dist-info/METADATA,sha256=aNW5AKra4YlfiGJmZXKo2CBjSz24ViJG0Ku1mGNRoQE,8528
528
- streamlit_nightly-1.34.1.dev20240513.dist-info/WHEEL,sha256=DZajD4pwLWue70CAfc7YaxT1wLUciNBvN_TTcvXpltE,110
529
- streamlit_nightly-1.34.1.dev20240513.dist-info/entry_points.txt,sha256=uNJ4DwGNXEhOK0USwSNanjkYyR-Bk7eYQbJFDrWyOgY,53
530
- streamlit_nightly-1.34.1.dev20240513.dist-info/top_level.txt,sha256=V3FhKbm7G2LnR0s4SytavrjIPNIhvcsAGXfYHAwtQzw,10
531
- streamlit_nightly-1.34.1.dev20240513.dist-info/RECORD,,
524
+ streamlit_nightly-1.34.1.dev20240516.data/scripts/streamlit.cmd,sha256=ZEYM3vBJSp-k7vwSJ3ba5NzEk9-qHdSeLvGYAAe1mMw,676
525
+ streamlit_nightly-1.34.1.dev20240516.dist-info/METADATA,sha256=jAW76Gki90OcgicevK78TMzWxoEQoeXMAsTzq49eWZE,8528
526
+ streamlit_nightly-1.34.1.dev20240516.dist-info/WHEEL,sha256=DZajD4pwLWue70CAfc7YaxT1wLUciNBvN_TTcvXpltE,110
527
+ streamlit_nightly-1.34.1.dev20240516.dist-info/entry_points.txt,sha256=uNJ4DwGNXEhOK0USwSNanjkYyR-Bk7eYQbJFDrWyOgY,53
528
+ streamlit_nightly-1.34.1.dev20240516.dist-info/top_level.txt,sha256=V3FhKbm7G2LnR0s4SytavrjIPNIhvcsAGXfYHAwtQzw,10
529
+ streamlit_nightly-1.34.1.dev20240516.dist-info/RECORD,,
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunk_streamlit_app=self.webpackChunk_streamlit_app||[]).push([[1168],{71168:(e,o,t)=>{t.r(o),t.d(o,{default:()=>w});var l=t(66845),n=t(25621),i=t(42736),r=t(16295),s=t(23593),c=t(50641),a=t(87814),d=t(96825),p=t.n(d),u=t(27466),h=t(63765),m=t(23849);function f(e,o,t){return e=function(e,o){return(e=(e=(e=(e=(e=(e=(e=(e=e.replaceAll("#000032",(0,u.By)(o))).replaceAll("#000033",(0,u.He)(o))).replaceAll("#000034",(0,u.Iy)(o)?o.colors.blue80:o.colors.blue40)).replaceAll("#000035",(0,u.ny)(o))).replaceAll("#000036",(0,u.Xy)(o))).replaceAll("#000037",(0,u.yq)(o))).replaceAll("#000038",o.colors.bgColor)).replaceAll("#000039",o.colors.fadedText05)).replaceAll("#000040",o.colors.bgMix)}(e,o),e=function(e,o,t){const l="#000001",n="#000002",i="#000003",r="#000004",s="#000005",c="#000006",a="#000007",d="#000008",p="#000009",h="#000010";if("streamlit"===t){const t=(0,u.iY)(o);e=(e=(e=(e=(e=(e=(e=(e=(e=(e=e.replaceAll(l,t[0])).replaceAll(n,t[1])).replaceAll(i,t[2])).replaceAll(r,t[3])).replaceAll(s,t[4])).replaceAll(c,t[5])).replaceAll(a,t[6])).replaceAll(d,t[7])).replaceAll(p,t[8])).replaceAll(h,t[9])}else e=(e=(e=(e=(e=(e=(e=(e=(e=(e=e.replaceAll(l,"#636efa")).replaceAll(n,"#EF553B")).replaceAll(i,"#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,o,t),e=function(e,o,t){const l="#000011",n="#000012",i="#000013",r="#000014",s="#000015",c="#000016",a="#000017",d="#000018",p="#000019",h="#000020";if("streamlit"===t){const t=(0,u.Gy)(o);e=(e=(e=(e=(e=(e=(e=(e=(e=(e=e.replaceAll(l,t[0])).replaceAll(n,t[1])).replaceAll(i,t[2])).replaceAll(r,t[3])).replaceAll(s,t[4])).replaceAll(c,t[5])).replaceAll(a,t[6])).replaceAll(d,t[7])).replaceAll(p,t[8])).replaceAll(h,t[9])}else e=(e=(e=(e=(e=(e=(e=(e=(e=(e=e.replaceAll(l,"#0d0887")).replaceAll(n,"#46039f")).replaceAll(i,"#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,o,t),e=function(e,o,t){const l="#000021",n="#000022",i="#000023",r="#000024",s="#000025",c="#000026",a="#000027",d="#000028",p="#000029",h="#000030",m="#000031";if("streamlit"===t){const t=(0,u.ru)(o);e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=e.replaceAll(l,t[0])).replaceAll(n,t[1])).replaceAll(i,t[2])).replaceAll(r,t[3])).replaceAll(s,t[4])).replaceAll(c,t[5])).replaceAll(a,t[6])).replaceAll(d,t[7])).replaceAll(p,t[8])).replaceAll(h,t[9])).replaceAll(m,t[10])}else e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=e.replaceAll(l,"#8e0152")).replaceAll(n,"#c51b7d")).replaceAll(i,"#de77ae")).replaceAll(r,"#f1b6da")).replaceAll(s,"#fde0ef")).replaceAll(c,"#f7f7f7")).replaceAll(a,"#e6f5d0")).replaceAll(d,"#b8e186")).replaceAll(p,"#7fbc41")).replaceAll(h,"#4d9221")).replaceAll(m,"#276419");return e}(e,o,t),e}function y(e,o){try{!function(e,o){const{genericFonts:t,colors:l,fontSizes:n}=o,i={font:{color:(0,u.Xy)(o),family:t.bodyFont,size:n.twoSmPx},title:{color:l.headingColor,subtitleColor:l.bodyText,font:{family:t.headingFont,size:n.mdPx,color:l.headingColor},pad:{l:o.spacing.twoXSPx},xanchor:"left",x:0},legend:{title:{font:{size:n.twoSmPx,color:(0,u.Xy)(o)},side:"top"},valign:"top",bordercolor:l.transparent,borderwidth:o.spacing.nonePx,font:{size:n.twoSmPx,color:(0,u.yq)(o)}},paper_bgcolor:l.bgColor,plot_bgcolor:l.bgColor,yaxis:{ticklabelposition:"outside",zerolinecolor:(0,u.ny)(o),title:{font:{color:(0,u.Xy)(o),size:n.smPx},standoff:o.spacing.twoXLPx},tickcolor:(0,u.ny)(o),tickfont:{color:(0,u.Xy)(o),size:n.twoSmPx},gridcolor:(0,u.ny)(o),minor:{gridcolor:(0,u.ny)(o)},automargin:!0},xaxis:{zerolinecolor:(0,u.ny)(o),gridcolor:(0,u.ny)(o),showgrid:!1,tickfont:{color:(0,u.Xy)(o),size:n.twoSmPx},tickcolor:(0,u.ny)(o),title:{font:{color:(0,u.Xy)(o),size:n.smPx},standoff:o.spacing.xlPx},minor:{gridcolor:(0,u.ny)(o)},zeroline:!1,automargin:!0,rangeselector:{bgcolor:l.bgColor,bordercolor:(0,u.ny)(o),borderwidth:1,x:0}},margin:{pad:o.spacing.smPx,r:o.spacing.nonePx,l:o.spacing.nonePx},hoverlabel:{bgcolor:l.bgColor,bordercolor:l.fadedText10,font:{color:(0,u.Xy)(o),family:t.bodyFont,size:n.twoSmPx}},coloraxis:{colorbar:{thickness:16,xpad:o.spacing.twoXLPx,ticklabelposition:"outside",outlinecolor:l.transparent,outlinewidth:8,len:.75,y:.5745,title:{font:{color:(0,u.Xy)(o),size:n.smPx}},tickfont:{color:(0,u.Xy)(o),size:n.twoSmPx}}},ternary:{gridcolor:(0,u.Xy)(o),bgcolor:l.bgColor,title:{font:{family:t.bodyFont,size:n.smPx}},color:(0,u.Xy)(o),aaxis:{gridcolor:(0,u.Xy)(o),linecolor:(0,u.Xy)(o),tickfont:{family:t.bodyFont,size:n.twoSmPx}},baxis:{linecolor:(0,u.Xy)(o),gridcolor:(0,u.Xy)(o),tickfont:{family:t.bodyFont,size:n.twoSmPx}},caxis:{linecolor:(0,u.Xy)(o),gridcolor:(0,u.Xy)(o),tickfont:{family:t.bodyFont,size:n.twoSmPx}}}};p()(e,i)}(e.layout.template.layout,o)}catch(t){const e=(0,h.b)(t);(0,m.H)(e)}"title"in e.layout&&(e.layout.title=p()(e.layout.title,{text:"<b>".concat(e.layout.title.text,"</b>")}))}var g=t(40864);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"},b={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,o,t){const l=JSON.parse(f(JSON.stringify(e),t,o));return"streamlit"===o?y(l,t):l.layout=function(e,o){const{colors:t,genericFonts:l}=o,n={font:{color:t.bodyText,family:l.bodyFont},paper_bgcolor:t.bgColor,plot_bgcolor:t.secondaryBg};return{...e,font:{...n.font,...e.font},paper_bgcolor:e.paper_bgcolor||n.paper_bgcolor,plot_bgcolor:e.plot_bgcolor||n.plot_bgcolor}}(l.layout,t),l}function A(e,o,t,l){if(!e)return;const n={select:{points:[],point_indices:[],box:[],lasso:[]}},i=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.bb)(e.pointIndex)&&i.add(e.pointIndex),(0,c.bb)(e.pointIndices)&&e.pointIndices.length>0&&e.pointIndices.forEach((e=>i.add(e)))})),p&&p.forEach((e=>{if("rect"===e.type){const o=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),t={xref:e.xref,yref:e.yref,x:o.x,y:o.y};s.push(t)}if("path"===e.type){const o=function(e){if(""===e)return{x:[],y:[]};const o=e.replace("M","").replace("Z","").split("L"),t=[],l=[];return o.forEach((e=>{const[o,n]=e.split(",").map(Number);t.push(o),l.push(n)})),{x:t,y:l}}(e.path),t={xref:e.xref,yref:e.yref,x:o.x,y:o.y};a.push(t)}})),n.select.point_indices=Array.from(i),n.select.points=d.map((e=>(0,c.KI)(e))),n.select.box=s,n.select.lasso=a,n.select.box.length>0&&!t.selectionMode.includes(r.hP.SelectionMode.BOX))return;if(n.select.lasso.length>0&&!t.selectionMode.includes(r.hP.SelectionMode.LASSO))return;const h=o.getStringValue(t),m=JSON.stringify(n);h!==m&&o.setStringValue(t,m,{fromUi:!0},l)}const w=(0,s.Z)((function(e){var o,t,s,c,d;let{element:p,width:u,height:h,widgetMgr:m,disabled:f,fragmentId:y,isFullScreen:w,expand:S,collapse:z,disableFullscreenMode:F}=e;const C=(0,n.u)(),M=(0,l.useMemo)((()=>p.spec?JSON.parse(p.spec):{layout:{},data:[],frames:void 0}),[p.id,p.spec]),[P,k]=(0,l.useState)((()=>{const e=m.getElementState(p.id,"figure");return e||v(M,p.theme,C)})),I=p.selectionMode.length>0&&!f,E=I&&p.selectionMode.includes(r.hP.SelectionMode.LASSO),X=I&&p.selectionMode.includes(r.hP.SelectionMode.BOX),L=I&&p.selectionMode.includes(r.hP.SelectionMode.POINTS),T=(0,l.useMemo)((()=>{if(!p.config)return{};const e=JSON.parse(p.config);if(F||(e.modeBarButtonsToAdd=[{name:w?"Close fullscreen":"Fullscreen",icon:w?b:x,click:()=>{w&&z?z():S&&S()}}]),!e.modeBarButtonsToRemove){e.displaylogo=!1;const o=["sendDataToCloud"];I?(E||o.push("lasso2d"),X||o.push("select2d")):o.push("lasso2d","select2d"),e.modeBarButtonsToRemove=o}return e}),[p.id,p.config,w,F,I,E,X,z,S]);(0,l.useEffect)((()=>{k((e=>v(e,p.theme,C)))}),[p.id,C,p.theme]),(0,l.useEffect)((()=>{let e=M.layout.clickmode,o=M.layout.hovermode,t=M.layout.dragmode;f?(e="none",t="pan"):I&&(M.layout.clickmode||(e=L?"event+select":"none"),M.layout.hovermode||(o="closest"),M.layout.dragmode||(t=L?"pan":X?"select":E?"lasso":"pan")),k((l=>l.layout.clickmode===e&&l.layout.hovermode===o&&l.layout.dragmode===t?l:{...l,layout:{...l.layout,clickmode:e,hovermode:o,dragmode:t}}))}),[p.id,I,L,X,E,f]);let W=-1===u?null===(o=P.layout)||void 0===o?void 0:o.width:Math.max(p.useContainerWidth?u:Math.min(null!==(t=M.layout.width)&&void 0!==t?t:u,u),150),_=M.layout.height;w&&(W=u,_=h),P.layout.height===_&&P.layout.width===W||k((e=>({...e,layout:{...e.layout,height:_,width:W}})));const O=(0,l.useCallback)((e=>{A(e,m,p,y)}),[p.id,m,y]),V=(0,l.useCallback)((function(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];!function(e,o,t){const l=e.getStringValue(o),n=JSON.stringify({select:{points:[],point_indices:[],box:[],lasso:[]}});l!==n&&e.setStringValue(o,n,{fromUi:!0},t)}(m,p,y),e&&setTimeout((()=>{k((e=>({...e,data:e.data.map((e=>({...e,selectedpoints:null}))),layout:{...e.layout,selections:[]}})))}),50)}),[p.id,m,y]);return(0,l.useEffect)((()=>{if(!p.formId||!I)return;const e=new a.K;return e.manageFormClearListener(m,p.formId,V),()=>{e.disconnect()}}),[p.formId,m,I,V]),(0,l.useEffect)((()=>{var e,o,t;if(!I)return;let l;l="select"===(null===(e=P.layout)||void 0===e?void 0:e.dragmode)||"lasso"===(null===(o=P.layout)||void 0===o?void 0:o.dragmode)?"event":L?"event+select":"none",(null===(t=P.layout)||void 0===t?void 0:t.clickmode)!==l&&k((e=>({...e,layout:{...e.layout,clickmode:l}})))}),[null===(s=P.layout)||void 0===s?void 0:s.dragmode]),(0,g.jsx)(i.Z,{className:"stPlotlyChart",data:P.data,layout:P.layout,config:T,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:I?O:()=>{},onDoubleClick:I?()=>V():void 0,onDeselect:I?()=>{V(!1)}:void 0,onInitialized:e=>{m.setElementState(p.id,"figure",e)},onUpdate:e=>{m.setElementState(p.id,"figure",e),k(e)}},w?"fullscreen":"original")}),!0)},23593:(e,o,t)=>{t.d(o,{Z:()=>g});var l=t(66845),n=t(13005),i=t.n(n),r=t(25621),s=t(82218),c=t(97781),a=t(46927),d=t(66694),p=t(1515);const u=(0,p.Z)("button",{target:"e1vs0wn31"})((e=>{let{isExpanded:o,theme:t}=e;const l=o?{right:"0.4rem",top:"0.5rem",backgroundColor:"transparent"}:{right:"-3.0rem",top:"-0.375rem",opacity:0,transform:"scale(0)",backgroundColor:t.colors.lightenedBg05};return{position:"absolute",display:"flex",alignItems:"center",justifyContent:"center",zIndex:t.zIndices.sidebar+1,height:"2.5rem",width:"2.5rem",transition:"opacity 300ms 150ms, transform 300ms 150ms",border:"none",color:t.colors.fadedText60,borderRadius:"50%",...l,"&:focus":{outline:"none"},"&:active, &:focus-visible, &:hover":{opacity:1,outline:"none",transform:"scale(1)",color:t.colors.bodyText,transition:"none"}}}),""),h=(0,p.Z)("div",{target:"e1vs0wn30"})((e=>{let{theme:o,isExpanded:t}=e;return{"&:hover":{[u]:{opacity:1,transform:"scale(1)",transition:"none"}},...t?{position:"fixed",top:0,left:0,bottom:0,right:0,background:o.colors.bgColor,zIndex:o.zIndices.fullscreenWrapper,padding:o.spacing.md,paddingTop:"2.875rem",overflow:["auto","overlay"],display:"flex",alignItems:"center",justifyContent:"center"}:{}}}),"");var m=t(40864);class f extends l.PureComponent{constructor(e){super(e),this.context=void 0,this.controlKeys=e=>{const{expanded:o}=this.state;27===e.keyCode&&o&&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.convertScssRemValueToPixels=e=>parseFloat(e)*parseFloat(getComputedStyle(document.documentElement).fontSize),this.getWindowDimensions=()=>{const e=this.convertScssRemValueToPixels(this.props.theme.spacing.md),o=this.convertScssRemValueToPixels("2.875rem");return{fullWidth:window.innerWidth-2*e,fullHeight:window.innerHeight-(e+o)}},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:o,fullHeight:t}=this.state,{children:l,width:n,height:i,disableFullscreenMode:r}=this.props;let d=s.d,p=this.zoomIn,f="View fullscreen";return e&&(d=c.m,p=this.zoomOut,f="Exit fullscreen"),(0,m.jsxs)(h,{isExpanded:e,"data-testid":"stFullScreenFrame",children:[!r&&(0,m.jsx)(u,{"data-testid":"StyledFullScreenButton",onClick:p,title:f,isExpanded:e,children:(0,m.jsx)(a.Z,{content:d})}),l(e?{width:o,height:t,expanded:e,expand:this.zoomIn,collapse:this.zoomOut}:{width:n,height:i,expanded:e,expand:this.zoomIn,collapse:this.zoomOut})]})}}f.contextType=d.E;const y=(0,r.b)(f);const g=function(e){let o=arguments.length>1&&void 0!==arguments[1]&&arguments[1];class t extends l.PureComponent{constructor(){super(...arguments),this.render=()=>{const{width:t,height:l,disableFullscreenMode:n}=this.props;return(0,m.jsx)(y,{width:t,height:l,disableFullscreenMode:o||n,children:o=>{let{width:t,height:l,expanded:n,expand:i,collapse:r}=o;return(0,m.jsx)(e,{...this.props,width:t,height:l,isFullScreen:n,expand:i,collapse:r})}})}}}return t.displayName="withFullScreenWrapper(".concat(e.displayName||e.name,")"),i()(t,e)}},87814:(e,o,t)=>{t.d(o,{K:()=>n});var l=t(50641);class n{constructor(){this.formClearListener=void 0,this.lastWidgetMgr=void 0,this.lastFormId=void 0}manageFormClearListener(e,o,t){null!=this.formClearListener&&this.lastWidgetMgr===e&&this.lastFormId===o||(this.disconnect(),(0,l.bM)(o)&&(this.formClearListener=e.addFormClearedListener(o,t),this.lastWidgetMgr=e,this.lastFormId=o))}disconnect(){var e;null===(e=this.formClearListener)||void 0===e||e.disconnect(),this.formClearListener=void 0,this.lastWidgetMgr=void 0,this.lastFormId=void 0}}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunk_streamlit_app=self.webpackChunk_streamlit_app||[]).push([[3631,9758,3053],{13053:(e,t,i)=>{i.r(t),i.d(t,{FileHandle:()=>a,FolderHandle:()=>o,default:()=>l});var r=i(69758);const{DISALLOWED:n}=r.errors;class s{constructor(e,t){this.writer=e,this.fileEntry=t}async write(e){if("object"===typeof e)if("write"===e.type){if(Number.isInteger(e.position)&&e.position>=0&&(this.writer.seek(e.position),this.writer.position!==e.position&&(await new Promise(((t,i)=>{this.writer.onwriteend=t,this.writer.onerror=i,this.writer.truncate(e.position)})),this.writer.seek(e.position))),!("data"in e))throw new DOMException("Failed to execute 'write' on 'UnderlyingSinkBase': Invalid params passed. write requires a data argument","SyntaxError");e=e.data}else{if("seek"===e.type){if(Number.isInteger(e.position)&&e.position>=0){if(this.writer.seek(e.position),this.writer.position!==e.position)throw new DOMException("seeking position failed","InvalidStateError");return}throw new DOMException("Failed to execute 'write' on 'UnderlyingSinkBase': Invalid params passed. seek requires a position argument","SyntaxError")}if("truncate"===e.type)return new Promise((t=>{if(!(Number.isInteger(e.size)&&e.size>=0))throw new DOMException("Failed to execute 'write' on 'UnderlyingSinkBase': Invalid params passed. truncate requires a size argument","SyntaxError");this.writer.onwriteend=e=>t(),this.writer.truncate(e.size)}))}await new Promise(((t,i)=>{this.writer.onwriteend=t,this.writer.onerror=i,this.writer.write(new Blob([e]))}))}close(){return new Promise(this.fileEntry.file.bind(this.fileEntry))}}class a{constructor(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this.file=e,this.kind="file",this.writable=t,this.readable=!0}get name(){return this.file.name}isSameEntry(e){return this.file.toURL()===e.file.toURL()}getFile(){return new Promise(this.file.file.bind(this.file))}createWritable(e){if(!this.writable)throw new DOMException(...n);return new Promise(((t,i)=>this.file.createWriter((i=>{!1===e.keepExistingData?(i.onwriteend=e=>t(new s(i,this.file)),i.truncate(0)):t(new s(i,this.file))}),i)))}}class o{constructor(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this.dir=e,this.writable=t,this.readable=!0,this.kind="directory",this.name=e.name}isSameEntry(e){return this.dir.fullPath===e.dir.fullPath}async*entries(){const e=this.dir.createReader(),t=await new Promise(e.readEntries.bind(e));for(const i of t)yield[i.name,i.isFile?new a(i,this.writable):new o(i,this.writable)]}getDirectoryHandle(e,t){return new Promise(((i,r)=>{this.dir.getDirectory(e,t,(e=>{i(new o(e))}),r)}))}getFileHandle(e,t){return new Promise(((i,r)=>this.dir.getFile(e,t,(e=>i(new a(e))),r)))}async removeEntry(e,t){const i=await this.getDirectoryHandle(e,{create:!1}).catch((t=>"TypeMismatchError"===t.name?this.getFileHandle(e,{create:!1}):t));if(i instanceof Error)throw i;return new Promise(((e,r)=>{i instanceof o?t.recursive?i.dir.removeRecursively((()=>e()),r):i.dir.remove((()=>e()),r):i.file&&i.file.remove((()=>e()),r)}))}}const l=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new Promise(((t,i)=>window.webkitRequestFileSystem(e._persistent,0,(e=>t(new o(e.root))),i)))}},69758:(e,t,i)=>{i.r(t),i.d(t,{config:()=>n,errors:()=>r,fromDataTransfer:()=>s,getDirHandlesFromInput:()=>a,getFileHandlesFromInput:()=>o});const r={INVALID:["seeking position failed.","InvalidStateError"],GONE:["A requested file or directory could not be found at the time an operation was processed.","NotFoundError"],MISMATCH:["The path supplied exists, but was not an entry of requested type.","TypeMismatchError"],MOD_ERR:["The object can not be modified in this way.","InvalidModificationError"],SYNTAX:e=>["Failed to execute 'write' on 'UnderlyingSinkBase': Invalid params passed. ".concat(e),"SyntaxError"],SECURITY:["It was determined that certain files are unsafe for access within a Web application, or that too many calls are being made on file resources.","SecurityError"],DISALLOWED:["The request is not allowed by the user agent or the platform in the current context.","NotAllowedError"]},n={writable:globalThis.WritableStream};async function s(e){console.warn("deprecated fromDataTransfer - use `dt.items[0].getAsFileSystemHandle()` instead");const[t,r,n]=await Promise.all([i.e(8005).then(i.bind(i,28005)),i.e(3053).then(i.bind(i,13053)),Promise.resolve().then(i.bind(i,46979))]),s=new t.FolderHandle("",!1);return s._entries=e.map((e=>e.isFile?new r.FileHandle(e,!1):new r.FolderHandle(e,!1))),new n.FileSystemDirectoryHandle(s)}async function a(e){const{FolderHandle:t,FileHandle:r}=await i.e(8005).then(i.bind(i,28005)),{FileSystemDirectoryHandle:n}=await Promise.resolve().then(i.bind(i,46979)),s=Array.from(e.files),a=s[0].webkitRelativePath.split("/",1)[0],o=new t(a,!1);return s.forEach((e=>{const i=e.webkitRelativePath.split("/");i.shift();const n=i.pop();i.reduce(((e,i)=>(e._entries[i]||(e._entries[i]=new t(i,!1)),e._entries[i])),o)._entries[n]=new r(e.name,e,!1)})),new n(o)}async function o(e){const{FileHandle:t}=await i.e(8005).then(i.bind(i,28005)),{FileSystemFileHandle:r}=await Promise.resolve().then(i.bind(i,8192));return Array.from(e.files).map((e=>new r(new t(e.name,e,!1))))}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunk_streamlit_app=self.webpackChunk_streamlit_app||[]).push([[474,9758],{60474:(e,t,r)=>{r.r(t),r.d(t,{FileHandle:()=>h});var n=r(69758),a=r(60643);const{WritableStream:s,TransformStream:i,DOMException:o,Blob:l}=a.Z,{GONE:c}=n.errors,d=/constructor/i.test(window.HTMLElement)||window.safari||window.WebKitPoint;class h{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"unkown";this.name=e,this.kind="file"}async getFile(){throw new o(...c)}async isSameEntry(e){return this===e}async createWritable(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const r=await(null===(e=navigator.serviceWorker)||void 0===e?void 0:e.getRegistration()),n=document.createElement("a"),a=new i,o=a.writable;if(n.download=this.name,d||!r){let e=[];a.readable.pipeTo(new s({write(t){e.push(new l([t]))},close(){const t=new l(e,{type:"application/octet-stream; charset=utf-8"});e=[],n.href=URL.createObjectURL(t),n.click(),setTimeout((()=>URL.revokeObjectURL(n.href)),1e4)}}))}else{const{writable:e,readablePort:n}=new m(s),o=encodeURIComponent(this.name).replace(/['()]/g,escape).replace(/\*/g,"%2A"),l={"content-disposition":"attachment; filename*=UTF-8''"+o,"content-type":"application/octet-stream; charset=utf-8",...t.size?{"content-length":t.size}:{}},c=setTimeout((()=>r.active.postMessage(0)),1e4);a.readable.pipeThrough(new i({transform(e,t){if(e instanceof Uint8Array)return t.enqueue(e);const r=new Response(e).body.getReader(),n=e=>r.read().then((e=>e.done?0:n(t.enqueue(e.value))));return n()}})).pipeTo(e).finally((()=>{clearInterval(c)})),r.active.postMessage({url:r.scope+o,headers:l,readablePort:n},[n]);const d=document.createElement("iframe");d.hidden=!0,d.src=r.scope+o,document.body.appendChild(d)}return o.getWriter()}}class p{constructor(e){e.onmessage=e=>this._onMessage(e.data),this._port=e,this._resetReady()}start(e){return this._controller=e,this._readyPromise}write(e){const t={type:0,chunk:e};return this._port.postMessage(t,[e.buffer]),this._resetReady(),this._readyPromise}close(){this._port.postMessage({type:2}),this._port.close()}abort(e){this._port.postMessage({type:1,reason:e}),this._port.close()}_onMessage(e){0===e.type&&this._resolveReady(),1===e.type&&this._onError(e.reason)}_onError(e){this._controller.error(e),this._rejectReady(e),this._port.close()}_resetReady(){this._readyPromise=new Promise(((e,t)=>{this._readyResolve=e,this._readyReject=t})),this._readyPending=!0}_resolveReady(){this._readyResolve(),this._readyPending=!1}_rejectReady(e){this._readyPending||this._resetReady(),this._readyPromise.catch((()=>{})),this._readyReject(e),this._readyPending=!1}}class m{constructor(e){const t=new MessageChannel;this.readablePort=t.port1,this.writable=new e(new p(t.port2))}}},69758:(e,t,r)=>{r.r(t),r.d(t,{config:()=>a,errors:()=>n,fromDataTransfer:()=>s,getDirHandlesFromInput:()=>i,getFileHandlesFromInput:()=>o});const n={INVALID:["seeking position failed.","InvalidStateError"],GONE:["A requested file or directory could not be found at the time an operation was processed.","NotFoundError"],MISMATCH:["The path supplied exists, but was not an entry of requested type.","TypeMismatchError"],MOD_ERR:["The object can not be modified in this way.","InvalidModificationError"],SYNTAX:e=>["Failed to execute 'write' on 'UnderlyingSinkBase': Invalid params passed. ".concat(e),"SyntaxError"],SECURITY:["It was determined that certain files are unsafe for access within a Web application, or that too many calls are being made on file resources.","SecurityError"],DISALLOWED:["The request is not allowed by the user agent or the platform in the current context.","NotAllowedError"]},a={writable:globalThis.WritableStream};async function s(e){console.warn("deprecated fromDataTransfer - use `dt.items[0].getAsFileSystemHandle()` instead");const[t,n,a]=await Promise.all([r.e(8005).then(r.bind(r,28005)),r.e(3053).then(r.bind(r,13053)),Promise.resolve().then(r.bind(r,46979))]),s=new t.FolderHandle("",!1);return s._entries=e.map((e=>e.isFile?new n.FileHandle(e,!1):new n.FolderHandle(e,!1))),new a.FileSystemDirectoryHandle(s)}async function i(e){const{FolderHandle:t,FileHandle:n}=await r.e(8005).then(r.bind(r,28005)),{FileSystemDirectoryHandle:a}=await Promise.resolve().then(r.bind(r,46979)),s=Array.from(e.files),i=s[0].webkitRelativePath.split("/",1)[0],o=new t(i,!1);return s.forEach((e=>{const r=e.webkitRelativePath.split("/");r.shift();const a=r.pop();r.reduce(((e,r)=>(e._entries[r]||(e._entries[r]=new t(r,!1)),e._entries[r])),o)._entries[a]=new n(e.name,e,!1)})),new a(o)}async function o(e){const{FileHandle:t}=await r.e(8005).then(r.bind(r,28005)),{FileSystemFileHandle:n}=await Promise.resolve().then(r.bind(r,8192));return Array.from(e.files).map((e=>new n(new t(e.name,e,!1))))}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunk_streamlit_app=self.webpackChunk_streamlit_app||[]).push([[5345],{46979:(e,t,r)=>{r.r(t),r.d(t,{FileSystemDirectoryHandle:()=>o,default:()=>l});var i=r(64649),n=r(93232);let a;const s=Symbol("adapter");a=Symbol.asyncIterator;class o extends n.Z{constructor(e){super(e),(0,i.Z)(this,s,void 0),this[s]=e}async getDirectoryHandle(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(""===e)throw new TypeError("Name can't be an empty string.");if("."===e||".."===e||e.includes("/"))throw new TypeError("Name contains invalid characters.");t.create=!!t.create;const r=await this[s].getDirectoryHandle(e,t);return new o(r)}async*entries(){const{FileSystemFileHandle:e}=await Promise.resolve().then(r.bind(r,8192));for await(const[t,r]of this[s].entries())yield[r.name,"file"===r.kind?new e(r):new o(r)]}async*getEntries(){const{FileSystemFileHandle:e}=await Promise.resolve().then(r.bind(r,8192));console.warn("deprecated, use .entries() instead");for await(let t of this[s].entries())yield"file"===t.kind?new e(t):new o(t)}async getFileHandle(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{FileSystemFileHandle:i}=await Promise.resolve().then(r.bind(r,8192));if(""===e)throw new TypeError("Name can't be an empty string.");if("."===e||".."===e||e.includes("/"))throw new TypeError("Name contains invalid characters.");t.create=!!t.create;return new i(await this[s].getFileHandle(e,t))}async removeEntry(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(""===e)throw new TypeError("Name can't be an empty string.");if("."===e||".."===e||e.includes("/"))throw new TypeError("Name contains invalid characters.");return t.recursive=!!t.recursive,this[s].removeEntry(e,t)}async resolve(e){if(await e.isSameEntry(this))return[];const t=[{handle:this,path:[]}];for(;t.length;){let{handle:r,path:i}=t.pop();for await(const n of r.values()){if(await n.isSameEntry(e))return[...i,n.name];"directory"===n.kind&&t.push({handle:n,path:[...i,n.name]})}}return null}async*keys(){for await(const[e]of this[s].entries())yield e}async*values(){for await(const[e,t]of this)yield t}[a](){return this.entries()}}Object.defineProperty(o.prototype,Symbol.toStringTag,{value:"FileSystemDirectoryHandle",writable:!1,enumerable:!1,configurable:!0}),Object.defineProperties(o.prototype,{getDirectoryHandle:{enumerable:!0},entries:{enumerable:!0},getFileHandle:{enumerable:!0},removeEntry:{enumerable:!0}});const l=o},8192:(e,t,r)=>{r.r(t),r.d(t,{FileSystemFileHandle:()=>o,default:()=>l});var i=r(64649),n=r(93232),a=r(82572);const s=Symbol("adapter");class o extends n.Z{constructor(e){super(e),(0,i.Z)(this,s,void 0),this[s]=e}async createWritable(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new a.Z(await this[s].createWritable(e))}async getFile(){return this[s].getFile()}}Object.defineProperty(o.prototype,Symbol.toStringTag,{value:"FileSystemFileHandle",writable:!1,enumerable:!1,configurable:!0}),Object.defineProperties(o.prototype,{createWritable:{enumerable:!0},getFile:{enumerable:!0}});const l=o},93232:(e,t,r)=>{r.d(t,{Z:()=>s});var i=r(64649);const n=Symbol("adapter");class a{constructor(e){(0,i.Z)(this,n,void 0),(0,i.Z)(this,"name",void 0),(0,i.Z)(this,"kind",void 0),this.kind=e.kind,this.name=e.name,this[n]=e}async queryPermission(){let{mode:e="read"}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=this[n];if(t.queryPermission)return t.queryPermission({mode:e});if("read"===e)return"granted";if("readwrite"===e)return t.writable?"granted":"denied";throw new TypeError("Mode ".concat(e," must be 'read' or 'readwrite'"))}async requestPermission(){let{mode:e="read"}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=this[n];if(t.requestPermission)return t.requestPermission({mode:e});if("read"===e)return"granted";if("readwrite"===e)return t.writable?"granted":"denied";throw new TypeError("Mode ".concat(e," must be 'read' or 'readwrite'"))}async remove(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};await this[n].remove(e)}async isSameEntry(e){return this===e||!(!e||"object"!==typeof e||this.kind!==e.kind||!e[n])&&this[n].isSameEntry(e[n])}}Object.defineProperty(a.prototype,Symbol.toStringTag,{value:"FileSystemHandle",writable:!1,enumerable:!1,configurable:!0});const s=a},82572:(e,t,r)=>{r.d(t,{Z:()=>s});var i=r(60643);const{WritableStream:n}=i.Z;class a extends n{constructor(){super(...arguments),Object.setPrototypeOf(this,a.prototype),this._closed=!1}close(){this._closed=!0;const e=this.getWriter(),t=e.close();return e.releaseLock(),t}seek(e){return this.write({type:"seek",position:e})}truncate(e){return this.write({type:"truncate",size:e})}write(e){if(this._closed)return Promise.reject(new TypeError("Cannot write to a CLOSED writable stream"));const t=this.getWriter(),r=t.write(e);return t.releaseLock(),r}}Object.defineProperty(a.prototype,Symbol.toStringTag,{value:"FileSystemWritableFileStream",writable:!1,enumerable:!1,configurable:!0}),Object.defineProperties(a.prototype,{close:{enumerable:!0},seek:{enumerable:!0},truncate:{enumerable:!0},write:{enumerable:!0}});const s=a},60643:(e,t,r)=>{r.d(t,{Z:()=>i});const i={ReadableStream:globalThis.ReadableStream,WritableStream:globalThis.WritableStream,TransformStream:globalThis.TransformStream,DOMException:globalThis.DOMException,Blob:globalThis.Blob,File:globalThis.File}},95345:(e,t,r)=>{r.r(t),r.d(t,{FileSystemDirectoryHandle:()=>m.default,FileSystemFileHandle:()=>y.default,FileSystemHandle:()=>u.Z,FileSystemWritableFileStream:()=>h.Z,getOriginPrivateDirectory:()=>d,showDirectoryPicker:()=>n,showOpenFilePicker:()=>o,showSaveFilePicker:()=>c});const i=globalThis.showDirectoryPicker;const n=async function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(i&&!e._preferPolyfill)return i(e);const t=document.createElement("input");if(t.type="file",!("webkitdirectory"in t))throw new Error("HTMLInputElement.webkitdirectory is not supported");t.style.position="fixed",t.style.top="-100000px",t.style.left="-100000px",document.body.appendChild(t),t.webkitdirectory=!0;const n=r.e(9758).then(r.bind(r,69758));return await new Promise((e=>{t.addEventListener("change",e),t.click()})),n.then((e=>e.getDirHandlesFromInput(t)))},a={accepts:[]},s=globalThis.showOpenFilePicker;const o=async function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t={...a,...e};if(s&&!e._preferPolyfill)return s(t);const i=document.createElement("input");i.type="file",i.multiple=t.multiple,i.accept=(t.accepts||[]).map((e=>[...(e.extensions||[]).map((e=>"."+e)),...e.mimeTypes||[]])).flat().join(","),i.style.position="fixed",i.style.top="-100000px",i.style.left="-100000px",document.body.appendChild(i);const n=r.e(9758).then(r.bind(r,69758));return await new Promise((e=>{i.addEventListener("change",e),i.click()})),n.then((e=>e.getFileHandlesFromInput(i)))},l=globalThis.showSaveFilePicker;const c=async function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(l&&!e._preferPolyfill)return l(e);e._name&&(console.warn("deprecated _name, spec now have `suggestedName`"),e.suggestedName=e._name);const{FileSystemFileHandle:t}=await Promise.resolve().then(r.bind(r,8192)),{FileHandle:i}=await r.e(474).then(r.bind(r,60474));return new t(new i(e.suggestedName))};globalThis.DataTransferItem&&!DataTransferItem.prototype.getAsFileSystemHandle&&(DataTransferItem.prototype.getAsFileSystemHandle=async function(){const e=this.webkitGetAsEntry(),[{FileHandle:t,FolderHandle:i},{FileSystemDirectoryHandle:n},{FileSystemFileHandle:a}]=await Promise.all([r.e(3631).then(r.bind(r,13053)),Promise.resolve().then(r.bind(r,46979)),Promise.resolve().then(r.bind(r,8192))]);return e.isFile?new a(new t(e,!1)):new n(new i(e,!1))});const d=async function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};var i,n;if(!e)return(null===(i=globalThis.navigator)||void 0===i||null===(n=i.storage)||void 0===n?void 0:n.getDirectory())||globalThis.getOriginPrivateDirectory();const{FileSystemDirectoryHandle:a}=await Promise.resolve().then(r.bind(r,46979)),s=await e;return new a(await(s.default?s.default(t):s(t)))};var m=r(46979),y=r(8192),u=r(93232),h=r(82572)}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunk_streamlit_app=self.webpackChunk_streamlit_app||[]).push([[5441],{5441:(e,t,o)=>{o.r(t),o.d(t,{default:()=>W});var n=o(66845),i=o(25621),s=o(72965),a=o(94206),r=o(60784),l=o(23849),d=o(23593),c=o(63765),h=o(91191);const u={DATAFRAME_INDEX:"(index)"},m=new Set([h.GI.DatetimeIndex,h.GI.Float64Index,h.GI.Int64Index,h.GI.RangeIndex,h.GI.UInt64Index]);function g(e){var t;if(0===(null===(t=e.datasets)||void 0===t?void 0:t.length))return null;const o={};return e.datasets.forEach((e=>{if(!e)return;const t=e.hasName?e.name:null;o[t]=e.data})),o}function p(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(e.isEmpty())return[];const o=[],{dataRows:n,dataColumns:i}=e.dimensions,s=h.fu.getTypeName(e.types.index[0]),a=m.has(s);for(let r=t;r<n;r++){const t={};if(a){const o=e.getIndexValue(r,0);t[u.DATAFRAME_INDEX]="bigint"===typeof o?Number(o):o}for(let o=0;o<i;o++){const n=e.getDataValue(r,o),i=e.types.data[o],s=h.fu.getTypeName(i);if("datetimetz"!==s&&(n instanceof Date||Number.isFinite(n))&&(s.startsWith("datetime")||"date"===s)){const i=60*new Date(n).getTimezoneOffset()*1e3;t[e.columns[0][o]]=n.valueOf()+i}else t[e.columns[0][o]]="bigint"===typeof n?Number(n):n}o.push(t)}return o}var f=o(96825),b=o.n(f),w=o(99394),y=o.n(w),x=o(27466);function v(e,t){const o={font:t.genericFonts.bodyFont,background:t.colors.bgColor,fieldTitle:"verbal",autosize:{type:"fit",contains:"padding"},title:{align:"left",anchor:"start",color:t.colors.headingColor,titleFontStyle:"normal",fontWeight:t.fontWeights.bold,fontSize:t.fontSizes.smPx+2,orient:"top",offset:26},header:{titleFontWeight:t.fontWeights.normal,titleFontSize:t.fontSizes.mdPx,titleColor:(0,x.Xy)(t),titleFontStyle:"normal",labelFontSize:t.fontSizes.twoSmPx,labelFontWeight:t.fontWeights.normal,labelColor:(0,x.Xy)(t),labelFontStyle:"normal"},axis:{labelFontSize:t.fontSizes.twoSmPx,labelFontWeight:t.fontWeights.normal,labelColor:(0,x.Xy)(t),labelFontStyle:"normal",titleFontWeight:t.fontWeights.normal,titleFontSize:t.fontSizes.smPx,titleColor:(0,x.Xy)(t),titleFontStyle:"normal",ticks:!1,gridColor:(0,x.ny)(t),domain:!1,domainWidth:1,domainColor:(0,x.ny)(t),labelFlush:!0,labelFlushOffset:1,labelBound:!1,labelLimit:100,titlePadding:t.spacing.lgPx,labelPadding:t.spacing.lgPx,labelSeparation:t.spacing.twoXSPx,labelOverlap:!0},legend:{labelFontSize:t.fontSizes.smPx,labelFontWeight:t.fontWeights.normal,labelColor:(0,x.Xy)(t),titleFontSize:t.fontSizes.smPx,titleFontWeight:t.fontWeights.normal,titleFontStyle:"normal",titleColor:(0,x.Xy)(t),titlePadding:5,labelPadding:t.spacing.lgPx,columnPadding:t.spacing.smPx,rowPadding:t.spacing.twoXSPx,padding:7,symbolStrokeWidth:4},range:{category:(0,x.iY)(t),diverging:(0,x.ru)(t),ramp:(0,x.Gy)(t),heatmap:(0,x.Gy)(t)},view:{columns:1,strokeWidth:0,stroke:"transparent",continuousHeight:350,continuousWidth:400,discreteHeight:350,discreteWidth:{step:20}},concat:{columns:1},facet:{columns:1},mark:{tooltip:!0,...(0,x.Iy)(t)?{color:"#0068C9"}:{color:"#83C9FF"}},bar:{binSpacing:t.spacing.twoXSPx,discreteBandSize:{band:.85}},axisDiscrete:{grid:!1},axisXPoint:{grid:!1},axisTemporal:{grid:!1},axisXBand:{grid:!1}};return e?y()({},o,e,((e,t)=>Array.isArray(t)?t:void 0)):o}const S=(0,o(1515).Z)("div",{target:"egd2k5h0"})((e=>{let{theme:t,useContainerWidth:o,isFullScreen:n}=e;return{width:o||n?"100%":"auto",height:n?"100%":"auto","&.vega-embed":{"&:hover summary, .vega-embed:focus summary":{background:"transparent"},"&.has-actions":{paddingRight:0},".vega-actions":{zIndex:t.zIndices.popupMenu,backgroundColor:t.colors.bgColor,boxShadow:"rgb(0 0 0 / 16%) 0px 4px 16px",border:"1px solid ".concat(t.colors.fadedText10),a:{fontFamily:t.genericFonts.bodyFont,fontWeight:t.fontWeights.normal,fontSize:t.fontSizes.md,margin:0,padding:"".concat(t.spacing.twoXS," ").concat(t.spacing.twoXL),color:t.colors.bodyText},"a:hover":{backgroundColor:t.colors.secondaryBg,color:t.colors.bodyText},":before":{content:"none"},":after":{content:"none"}},summary:{opacity:0,height:"auto",zIndex:t.zIndices.menuButton,border:"none",boxShadow:"none",borderRadius:t.radii.lg,color:t.colors.fadedText10,backgroundColor:"transparent",transition:"opacity 300ms 150ms,transform 300ms 150ms","&:active, &:focus-visible, &:hover":{border:"none",boxShadow:"none",color:t.colors.bodyText,opacity:"1 !important",background:t.colors.darkenedBgMix25}}}}}),"");var F=o(40864);const z="source";class C extends n.PureComponent{constructor(){super(...arguments),this.vegaView=void 0,this.vegaFinalizer=void 0,this.defaultDataName=z,this.element=null,this.state={error:void 0},this.finalizeView=()=>{this.vegaFinalizer&&this.vegaFinalizer(),this.vegaFinalizer=void 0,this.vegaView=void 0},this.generateSpec=()=>{var e,t;const{element:o,theme:n,isFullScreen:i,width:s,height:a}=this.props,r=JSON.parse(o.spec),{useContainerWidth:l}=o;if("streamlit"===o.vegaLiteTheme?r.config=v(r.config,n):"streamlit"===(null===(e=r.usermeta)||void 0===e||null===(t=e.embedOptions)||void 0===t?void 0:t.theme)?(r.config=v(r.config,n),r.usermeta.embedOptions.theme=void 0):r.config=function(e,t){const{colors:o,fontSizes:n,genericFonts:i}=t,s={labelFont:i.bodyFont,titleFont:i.bodyFont,labelFontSize:n.twoSmPx,titleFontSize:n.twoSmPx},a={background:o.bgColor,axis:{labelColor:o.bodyText,titleColor:o.bodyText,gridColor:(0,x.ny)(t),...s},legend:{labelColor:o.bodyText,titleColor:o.bodyText,...s},title:{color:o.bodyText,subtitleColor:o.bodyText,...s},header:{labelColor:o.bodyText,titleColor:o.bodyText,...s},view:{stroke:(0,x.ny)(t),continuousHeight:350,continuousWidth:400,discreteHeight:350,discreteWidth:{step:20}},mark:{tooltip:!0}};return e?b()({},a,e):a}(r.config,n),i?(r.width=s,r.height=a,"vconcat"in r&&r.vconcat.forEach((e=>{e.width=s}))):l&&(r.width=s,"vconcat"in r&&r.vconcat.forEach((e=>{e.width=s}))),r.padding||(r.padding={}),null==r.padding.bottom&&(r.padding.bottom=20),r.datasets)throw new Error("Datasets should not be passed as part of the spec");return r}}async componentDidMount(){try{await this.createView()}catch(e){const t=(0,c.b)(e);this.setState({error:t})}}componentWillUnmount(){this.finalizeView()}async componentDidUpdate(e){const{element:t,theme:o}=e,{element:n,theme:i}=this.props,s=t.spec,{spec:a}=n;if(!this.vegaView||s!==a||o!==i||e.width!==this.props.width||e.height!==this.props.height||e.element.vegaLiteTheme!==this.props.element.vegaLiteTheme){(0,l.ji)("Vega spec changed.");try{await this.createView()}catch(m){const e=(0,c.b)(m);this.setState({error:e})}return}const r=t.data,{data:d}=n;(r||d)&&this.updateData(this.defaultDataName,r,d);const h=g(t)||{},u=g(n)||{};for(const[l,c]of Object.entries(u)){const e=l||this.defaultDataName,t=h[e];this.updateData(e,t,c)}for(const l of Object.keys(h))u.hasOwnProperty(l)||l===this.defaultDataName||this.updateData(l,null,null);this.vegaView.resize().runAsync()}updateData(e,t,o){if(!this.vegaView)throw new Error("Chart has not been drawn yet");if(!o||0===o.data.numRows){return void(this.vegaView._runtime.data.hasOwnProperty(e)&&this.vegaView.remove(e,a.truthy))}if(!t||0===t.data.numRows)return void this.vegaView.insert(e,p(o));const{dataRows:n,dataColumns:i}=t.dimensions,{dataRows:s,dataColumns:r}=o.dimensions;if(function(e,t,o,n,i,s){if(o!==s)return!1;if(t>=i)return!1;if(0===t)return!1;const a=s-1,r=t-1;return e.getDataValue(0,a)===n.getDataValue(0,a)&&e.getDataValue(r,a)===n.getDataValue(r,a)}(t,n,i,o,s,r))n<s&&this.vegaView.insert(e,p(o,n));else{const t=a.changeset().remove(a.truthy).insert(p(o));this.vegaView.change(e,t),(0,l.ji)("Had to clear the ".concat(e," dataset before inserting data through Vega view."))}}async createView(){if((0,l.ji)("Creating a new Vega view."),!this.element)throw Error("Element missing.");this.finalizeView();const e=this.props.element,t=this.generateSpec(),o={ast:!0,expr:r.N,tooltip:{disableDefaultStyle:!0},defaultStyle:!1,forceActionsMenu:!0},{vgSpec:n,view:i,finalize:a}=await(0,s.ZP)(this.element,t,o);this.vegaView=i,this.vegaFinalizer=a;const d=function(e){const t=g(e);if(null==t)return null;const o={};for(const[n,i]of Object.entries(t))o[n]=p(i);return o}(e),c=d?Object.keys(d):[];if(1===c.length){const[e]=c;this.defaultDataName=e}else 0===c.length&&n.data&&(this.defaultDataName=z);const h=function(e){const t=e.data;return t&&0!==t.data.numRows?p(t):null}(e);if(h&&i.insert(this.defaultDataName,h),d)for(const[s,r]of Object.entries(d))i.insert(s,r);await i.runAsync(),this.vegaView.resize().runAsync()}render(){if(this.state.error)throw this.state.error;return(0,F.jsx)(S,{"data-testid":"stArrowVegaLiteChart",useContainerWidth:this.props.element.useContainerWidth,isFullScreen:this.props.isFullScreen,ref:e=>{this.element=e}})}}const W=(0,i.b)((0,d.Z)(C))},23593:(e,t,o)=>{o.d(t,{Z:()=>b});var n=o(66845),i=o(13005),s=o.n(i),a=o(25621),r=o(82218),l=o(97781),d=o(46927),c=o(66694),h=o(1515);const u=(0,h.Z)("button",{target:"e1vs0wn31"})((e=>{let{isExpanded:t,theme:o}=e;const n=t?{right:"0.4rem",top:"0.5rem",backgroundColor:"transparent"}:{right:"-3.0rem",top:"-0.375rem",opacity:0,transform:"scale(0)",backgroundColor:o.colors.lightenedBg05};return{position:"absolute",display:"flex",alignItems:"center",justifyContent:"center",zIndex:o.zIndices.sidebar+1,height:"2.5rem",width:"2.5rem",transition:"opacity 300ms 150ms, transform 300ms 150ms",border:"none",color:o.colors.fadedText60,borderRadius:"50%",...n,"&:focus":{outline:"none"},"&:active, &:focus-visible, &:hover":{opacity:1,outline:"none",transform:"scale(1)",color:o.colors.bodyText,transition:"none"}}}),""),m=(0,h.Z)("div",{target:"e1vs0wn30"})((e=>{let{theme:t,isExpanded:o}=e;return{"&:hover":{[u]:{opacity:1,transform:"scale(1)",transition:"none"}},...o?{position:"fixed",top:0,left:0,bottom:0,right:0,background:t.colors.bgColor,zIndex:t.zIndices.fullscreenWrapper,padding:t.spacing.md,paddingTop:"2.875rem",overflow:["auto","overlay"],display:"flex",alignItems:"center",justifyContent:"center"}:{}}}),"");var g=o(40864);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.convertScssRemValueToPixels=e=>parseFloat(e)*parseFloat(getComputedStyle(document.documentElement).fontSize),this.getWindowDimensions=()=>{const e=this.convertScssRemValueToPixels(this.props.theme.spacing.md),t=this.convertScssRemValueToPixels("2.875rem");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:o}=this.state,{children:n,width:i,height:s,disableFullscreenMode:a}=this.props;let c=r.d,h=this.zoomIn,p="View fullscreen";return e&&(c=l.m,h=this.zoomOut,p="Exit fullscreen"),(0,g.jsxs)(m,{isExpanded:e,"data-testid":"stFullScreenFrame",children:[!a&&(0,g.jsx)(u,{"data-testid":"StyledFullScreenButton",onClick:h,title:p,isExpanded:e,children:(0,g.jsx)(d.Z,{content:c})}),n(e?{width:t,height:o,expanded:e,expand:this.zoomIn,collapse:this.zoomOut}:{width:i,height:s,expanded:e,expand:this.zoomIn,collapse:this.zoomOut})]})}}p.contextType=c.E;const f=(0,a.b)(p);const b=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];class o extends n.PureComponent{constructor(){super(...arguments),this.render=()=>{const{width:o,height:n,disableFullscreenMode:i}=this.props;return(0,g.jsx)(f,{width:o,height:n,disableFullscreenMode:t||i,children:t=>{let{width:o,height:n,expanded:i,expand:s,collapse:a}=t;return(0,g.jsx)(e,{...this.props,width:o,height:n,isFullScreen:i,expand:s,collapse:a})}})}}}return o.displayName="withFullScreenWrapper(".concat(e.displayName||e.name,")"),s()(o,e)}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunk_streamlit_app=self.webpackChunk_streamlit_app||[]).push([[8148],{23593:(e,t,n)=>{n.d(t,{Z:()=>b});var i=n(66845),o=n(13005),l=n.n(o),r=n(25621),a=n(82218),s=n(97781),d=n(46927),c=n(66694),u=n(1515);const m=(0,u.Z)("button",{target:"e1vs0wn31"})((e=>{let{isExpanded:t,theme:n}=e;const i=t?{right:"0.4rem",top:"0.5rem",backgroundColor:"transparent"}:{right:"-3.0rem",top:"-0.375rem",opacity:0,transform:"scale(0)",backgroundColor:n.colors.lightenedBg05};return{position:"absolute",display:"flex",alignItems:"center",justifyContent:"center",zIndex:n.zIndices.sidebar+1,height:"2.5rem",width:"2.5rem",transition:"opacity 300ms 150ms, transform 300ms 150ms",border:"none",color:n.colors.fadedText60,borderRadius:"50%",...i,"&:focus":{outline:"none"},"&:active, &:focus-visible, &:hover":{opacity:1,outline:"none",transform:"scale(1)",color:n.colors.bodyText,transition:"none"}}}),""),h=(0,u.Z)("div",{target:"e1vs0wn30"})((e=>{let{theme:t,isExpanded:n}=e;return{"&:hover":{[m]:{opacity:1,transform:"scale(1)",transition:"none"}},...n?{position:"fixed",top:0,left:0,bottom:0,right:0,background:t.colors.bgColor,zIndex:t.zIndices.fullscreenWrapper,padding:t.spacing.md,paddingTop:"2.875rem",overflow:["auto","overlay"],display:"flex",alignItems:"center",justifyContent:"center"}:{}}}),"");var p=n(40864);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.convertScssRemValueToPixels=e=>parseFloat(e)*parseFloat(getComputedStyle(document.documentElement).fontSize),this.getWindowDimensions=()=>{const e=this.convertScssRemValueToPixels(this.props.theme.spacing.md),t=this.convertScssRemValueToPixels("2.875rem");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:l,disableFullscreenMode:r}=this.props;let c=a.d,u=this.zoomIn,g="View fullscreen";return e&&(c=s.m,u=this.zoomOut,g="Exit fullscreen"),(0,p.jsxs)(h,{isExpanded:e,"data-testid":"stFullScreenFrame",children:[!r&&(0,p.jsx)(m,{"data-testid":"StyledFullScreenButton",onClick:u,title:g,isExpanded:e,children:(0,p.jsx)(d.Z,{content:c})}),i(e?{width:t,height:n,expanded:e,expand:this.zoomIn,collapse:this.zoomOut}:{width:o,height:l,expanded:e,expand:this.zoomIn,collapse:this.zoomOut})]})}}g.contextType=c.E;const f=(0,r.b)(g);const b=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,p.jsx)(f,{width:n,height:i,disableFullscreenMode:t||o,children:t=>{let{width:n,height:i,expanded:o,expand:l,collapse:r}=t;return(0,p.jsx)(e,{...this.props,width:n,height:i,isFullScreen:o,expand:l,collapse:r})}})}}}return n.displayName="withFullScreenWrapper(".concat(e.displayName||e.name,")"),l()(n,e)}},75064:(e,t,n)=>{n.r(t),n.d(t,{default:()=>Ot});var i=n(66845),o=n(67930),l=n(78170),r=n(17330),a=n(20545),s=n(57463),d=n(97943),c=n(41342),u=n(17875),m=n(87814),h=n(23593),p=n(16295),g=n(50641),f=n(25621),b=n(34367),v=n(31011),y=n(63730),w=n(68411),x=n(9003),C=n(81354),M=n(46927),S=n(1515),E=n(27466);const T=(0,S.Z)("div",{target:"e2wxzia1"})((e=>{let{theme:t,locked:n,target:i}=e;return{padding:"0.5rem 0 0.5rem 0.5rem",position:"absolute",top:n?"-2.4rem":"-1rem",right:t.spacing.none,transition:"none",...!n&&{opacity:0,"&:active, &:focus-visible, &:hover":{transition:"opacity 150ms 100ms, top 100ms 100ms",opacity:1,top:"-2.4rem"},...i&&{["".concat(i,":hover &, ").concat(i,":active &, ").concat(i,":focus-visible &")]:{transition:"opacity 150ms 100ms, top 100ms 100ms",opacity:1,top:"-2.4rem"}}}}}),""),k=(0,S.Z)("div",{target:"e2wxzia0"})((e=>{let{theme:t}=e;return{color:(0,E.Iy)(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.lg,backgroundColor:t.colors.lightenedBg05,width:"fit-content",zIndex:t.zIndices.sidebar+1}}),"");var R=n(40864);function N(e){let{label:t,show_label:n,icon:i,onClick:o}=e;const l=(0,f.u)(),r=n?t:"";return(0,R.jsx)("div",{"data-testid":"stElementToolbarButton",children:(0,R.jsx)(w.Z,{content:(0,R.jsx)(y.ZP,{source:t,allowHTML:!1,style:{fontSize:l.fontSizes.sm}}),placement:w.u.TOP,onMouseEnterDelay:1e3,inline:!0,children:(0,R.jsxs)(x.ZP,{onClick:e=>{o&&o(),e.stopPropagation()},kind:C.nW.ELEMENT_TOOLBAR,children:[i&&(0,R.jsx)(M.Z,{content:i,size:"md",testid:"stElementToolbarButtonIcon"}),r&&(0,R.jsx)("span",{children:r})]})})})}const I=e=>{let{onExpand:t,onCollapse:n,isFullScreen:i,locked:o,children:l,target:r,disableFullscreenMode:a}=e;return(0,R.jsx)(T,{className:"stElementToolbar","data-testid":"stElementToolbar",locked:o||i,target:r,children:(0,R.jsxs)(k,{children:[l,t&&!a&&!i&&(0,R.jsx)(N,{label:"Fullscreen",icon:b.i,onClick:()=>t()}),n&&!a&&i&&(0,R.jsx)(N,{label:"Close fullscreen",icon:v.m,onClick:()=>n()})]})})};var _=n(38145),O=n.n(_),D=n(96825),F=n.n(D),A=n(29724),z=n.n(A),V=n(52347),H=n(53608),L=n.n(H),W=(n(87717),n(55842),n(91191));const j=["true","t","yes","y","on","1"],B=["false","f","no","n","off","0"];function P(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return e="\u26a0\ufe0f ".concat(e),{kind:o.p6.Text,readonly:!0,allowOverlay:!0,data:e+(t?"\n\n".concat(t,"\n"):""),displayData:e,isError:!0}}function Z(e){return e.hasOwnProperty("isError")&&e.isError}function Y(e){return e.hasOwnProperty("isMissingValue")&&e.isMissingValue}function U(){return arguments.length>0&&void 0!==arguments[0]&&arguments[0]?{kind:o.p6.Loading,allowOverlay:!1,isMissingValue:!0}:{kind:o.p6.Loading,allowOverlay:!1}}function q(e,t){const n=t?"faded":"normal";return{kind:o.p6.Text,data:"",displayData:"",allowOverlay:!0,readonly:e,style:n}}function J(e){return{id:e.id,title:e.title,hasMenu:!1,themeOverride:e.themeOverride,icon:e.icon,...e.isStretched&&{grow:e.isIndex?1:3},...e.width&&{width:e.width}}}function K(e,t){return(0,g.le)(e)?t||{}:(0,g.le)(t)?e||{}:F()(e,t)}function G(e){if((0,g.le)(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 O()(e)}catch(t){return JSON.stringify(e,((e,t)=>"bigint"===typeof t?Number(t):t))}}catch(t){return"[".concat(typeof e,"]")}}function Q(e){if((0,g.le)(e))return null;if("boolean"===typeof e)return e;const t=X(e).toLowerCase().trim();return""===t?null:!!j.includes(t)||!B.includes(t)&&void 0}function $(e){if((0,g.le)(e))return null;if(Array.isArray(e))return NaN;if("string"===typeof e){if(0===e.trim().length)return null;try{const t=z().unformat(e.trim());if((0,g.bb)(t))return t}catch(t){}}else if(e instanceof Int32Array)return Number(e[0]);return Number(e)}function ee(e,t,n){return Number.isNaN(e)||!Number.isFinite(e)?"":(0,g.le)(t)||""===t?(0===n&&(e=Math.round(e)),z()(e).format((0,g.bb)(n)?"0,0.".concat("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?L().duration(e/1e6,"milliseconds").humanize():t.startsWith("period[")?W.fu.formatPeriodType(BigInt(e),t):(0,V.sprintf)(t,e)}function te(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 ne(e){if((0,g.le)(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=L().unix(e).utc();if(n.isValid())return n.toDate()}if("string"===typeof e){const t=L().utc(e);if(t.isValid())return t.toDate();const n=L().utc(e,[L().HTML5_FMT.TIME_MS,L().HTML5_FMT.TIME_SECONDS,L().HTML5_FMT.TIME]);if(n.isValid())return n.toDate()}}catch(t){return}}function ie(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 oe=new RegExp(/(\r\n|\n|\r)/gm);function le(e){return-1!==e.indexOf("\n")?e.replace(oe," "):e}var re=n(23849);function ae(e){const t={kind:o.p6.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,g.bb)(e)?X(e):null,i=(0,g.bb)(n)?le(n):"";return{...t,data:n,displayData:i,isMissingValue:(0,g.le)(e)}}catch(n){return P(X(e),"The value cannot be interpreted as a string. Error: ".concat(n))}},getCellValue:e=>void 0===e.data?null:e.data}}ae.isEditableType=!1;const se=ae;function de(e){const t=e.columnTypeOptions||{};let n;if(t.validate)try{n=new RegExp(t.validate,"us")}catch(r){n="Invalid validate regex: ".concat(t.validate,".\nError: ").concat(r)}const i={kind:o.p6.Text,data:"",displayData:"",allowOverlay:!0,contentAlignment:e.contentAlignment,readonly:!e.isEditable,style:e.isIndex?"faded":"normal"},l=i=>{if((0,g.le)(i))return!e.isRequired;let o=X(i),l=!1;return t.max_chars&&o.length>t.max_chars&&(o=o.slice(0,t.max_chars),l=!0),!(n instanceof RegExp&&!1===n.test(o))&&(!l||o)};return{...e,kind:"text",sortMode:"default",validateInput:l,getCell(e,t){if("string"===typeof n)return P(X(e),n);if(t){const t=l(e);if(!1===t)return P(X(e),"Invalid input.");"string"===typeof t&&(e=t)}try{const t=(0,g.bb)(e)?X(e):null,n=(0,g.bb)(t)?le(t):"";return{...i,isMissingValue:(0,g.le)(t),data:t,displayData:n}}catch(r){return P("Incompatible value","The value cannot be interpreted as string. Error: ".concat(r))}},getCellValue:e=>void 0===e.data?null:e.data}}de.isEditableType=!0;const ce=de;function ue(e,t){return e=t.startsWith("+")||t.startsWith("-")?e.utcOffset(t,!1):e.tz(t)}function me(e,t,n,i,l,r,a){var s;const d=K({format:n,step:i,timezone:a},t.columnTypeOptions);let c,u,m;if((0,g.bb)(d.timezone))try{var h;c=(null===(h=ue(L()(),d.timezone))||void 0===h?void 0:h.utcOffset())||void 0}catch(b){}(0,g.bb)(d.min_value)&&(u=ne(d.min_value)||void 0),(0,g.bb)(d.max_value)&&(m=ne(d.max_value)||void 0);const p={kind:o.p6.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:l,min:u,max:m}},f=e=>{const n=ne(e);return null===n?!t.isRequired:void 0!==n&&(!((0,g.bb)(u)&&r(n)<r(u))&&!((0,g.bb)(m)&&r(n)>r(m)))};return{...t,kind:e,sortMode:"default",validateInput:f,getCell(e,t){if(!0===t){const t=f(e);if(!1===t)return P(X(e),"Invalid input.");t instanceof Date&&(e=t)}const i=ne(e);let o="",l="",r=c;if(void 0===i)return P(X(e),"The value cannot be interpreted as a datetime object.");if(null!==i){let e=L().utc(i);if(!e.isValid())return P(X(i),"This should never happen. Please report this bug. \nError: ".concat(e.toString()));if(d.timezone){try{e=ue(e,d.timezone)}catch(b){return P(e.toISOString(),"Failed to adjust to the provided timezone: ".concat(d.timezone,". \nError: ").concat(b))}r=e.utcOffset()}try{l=te(e,d.format||n)}catch(b){return P(e.toISOString(),"Failed to format the date for rendering with: ".concat(d.format,". \nError: ").concat(b))}o=te(e,n)}return{...p,copyData:o,isMissingValue:(0,g.le)(i),data:{...p.data,date:i,displayDate:l,timezoneOffset:r}}},getCellValue(e){var t;return(0,g.le)(null===e||void 0===e||null===(t=e.data)||void 0===t?void 0:t.date)?null:r(e.data.date)}}}function he(e){var t,n,i,o,l;let r="YYYY-MM-DD HH:mm:ss";(null===(t=e.columnTypeOptions)||void 0===t?void 0:t.step)>=60?r="YYYY-MM-DD HH:mm":(null===(n=e.columnTypeOptions)||void 0===n?void 0:n.step)<1&&(r="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,g.bb)(a)||(0,g.bb)(null===e||void 0===e||null===(l=e.columnTypeOptions)||void 0===l?void 0:l.timezone);return me("datetime",e,s?r+"Z":r,1,"datetime-local",(e=>s?e.toISOString():e.toISOString().replace("Z","")),a)}function pe(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"),me("time",e,i,1,"time",(e=>e.toISOString().split("T")[1].replace("Z","")))}function ge(e){return me("date",e,"YYYY-MM-DD",1,"date",(e=>e.toISOString().split("T")[0]))}function fe(e){const t={kind:o.p6.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=Q(e),void 0===n?P(X(e),"The value cannot be interpreted as boolean."):{...t,data:n,isMissingValue:(0,g.le)(n)}},getCellValue:e=>void 0===e.data?null:e.data}}he.isEditableType=!0,pe.isEditableType=!0,ge.isEditableType=!0,fe.isEditableType=!0;const be=fe;function ve(e){return e.startsWith("int")&&!e.startsWith("interval")||"range"===e||e.startsWith("uint")}function ye(e){const t=W.fu.getTypeName(e.arrowType);let n;"timedelta64[ns]"===t?n="duration[ns]":t.startsWith("period[")&&(n=t);const i=K({step:ve(t)?1:void 0,min_value:t.startsWith("uint")?0:void 0,format:n},e.columnTypeOptions),l=(0,g.le)(i.min_value)||i.min_value<0,r=(0,g.bb)(i.step)&&!Number.isNaN(i.step)?ie(i.step):void 0,a={kind:o.p6.Number,data:void 0,displayData:"",readonly:!e.isEditable,allowOverlay:!0,contentAlign:e.contentAlignment||"right",style:e.isIndex?"faded":"normal",allowNegative:l,fixedDecimals:r},s=t=>{let n=$(t);if((0,g.le)(n))return!e.isRequired;if(Number.isNaN(n))return!1;let o=!1;return(0,g.bb)(i.max_value)&&n>i.max_value&&(n=i.max_value,o=!0),!((0,g.bb)(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 P(X(e),"Invalid input.");"number"===typeof t&&(e=t)}let n=$(e),o="";if((0,g.bb)(n)){if(Number.isNaN(n))return P(X(e),"The value cannot be interpreted as a number.");if((0,g.bb)(r)&&(l=n,n=0===(d=r)?Math.trunc(l):Math.trunc(l*10**d)/10**d),Number.isInteger(n)&&!Number.isSafeInteger(n))return P(X(e),"The value is larger than the maximum supported integer values in number columns (2^53).");try{o=ee(n,i.format,r)}catch(c){return P(X(n),(0,g.bb)(i.format)?"Failed to format the number based on the provided format configuration: (".concat(i.format,"). Error: ").concat(c):"Failed to format the number. Error: ".concat(c))}}var l,d;return{...a,data:n,displayData:o,isMissingValue:(0,g.le)(n)}},getCellValue:e=>void 0===e.data?null:e.data}}ye.isEditableType=!0;const we=ye;function xe(e){let t="string";const n=K({options:"bool"===W.fu.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 l={kind:o.p6.Custom,allowOverlay:!0,copyData:"",contentAlign:e.contentAlignment,readonly:!e.isEditable,data:{kind:"dropdown-cell",allowedValues:[...!0!==e.isRequired?[null]:[],...n.options.filter((e=>null!==e&&""!==e)).map((e=>X(e)))],value:"",readonly:!e.isEditable}};return{...e,kind:"selectbox",sortMode:"default",getCell(e,t){let n=null;return(0,g.bb)(e)&&""!==e&&(n=X(e)),t&&!l.data.allowedValues.includes(n)?P(X(n),"The value is not part of the allowed options."):{...l,isMissingValue:null===n,copyData:n||"",data:{...l.data,value:n}}},getCellValue(e){var n,i,o,l,r,a,s;return(0,g.le)(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!==(l=$(null===(r=e.data)||void 0===r?void 0:r.value))&&void 0!==l?l:null:"boolean"===t?null!==(a=Q(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}}}xe.isEditableType=!0;const Ce=xe;function Me(e){const t={kind:o.p6.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,g.le)(e)?[]:G(e);return{...t,data:n,isMissingValue:(0,g.le)(e),copyData:(0,g.le)(e)?"":X(n.map((e=>"string"===typeof e&&e.includes(",")?e.replace(/,/g," "):e)))}},getCellValue:e=>(0,g.le)(e.data)||Y(e)?null:e.data}}Me.isEditableType=!1;const Se=Me;function Ee(e,t,n){const i=new RegExp("".concat(e,"[,\\s].*{(?:[^}]*[\\s;]{1})?").concat(t,":\\s*([^;}]+)[;]?.*}"),"gm");n=n.replace(/{/g," {");const o=i.exec(n);if(o)return o[1].trim()}function Te(e,t){const n=e.types.index[t],i=e.indexNames[t];let o=!0;return"range"===W.fu.getTypeName(n)&&(o=!1),{id:"index-".concat(t),name:i,title:i,isEditable:o,arrowType:n,isIndex:!0,isHidden:!1}}function ke(e,t){const n=e.columns[0][t];let i,o=e.types.data[t];if((0,g.le)(o)&&(o={meta:null,numpy_type:"object",pandas_type:"object"}),"categorical"===W.fu.getTypeName(o)){const n=e.getCategoricalOptions(t);(0,g.bb)(n)&&(i={options:n})}return{id:"column-".concat(n,"-").concat(t),name:n,title:n,isEditable:!0,arrowType:o,columnTypeOptions:i,isIndex:!1,isHidden:!1}}function Re(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;const i=e.arrowType?W.fu.getTypeName(e.arrowType):null;let l;if("object"===e.kind)l=e.getCell((0,g.bb)(t.content)?le(W.fu.format(t.content,t.contentType,t.field)):null);else if(["time","date","datetime"].includes(e.kind)&&(0,g.bb)(t.content)&&("number"===typeof t.content||"bigint"===typeof t.content)){var r,a;let n;var s,d,c;if("time"===i&&(0,g.bb)(null===(r=t.field)||void 0===r||null===(a=r.type)||void 0===a?void 0:a.unit))n=L().unix(W.fu.convertToSeconds(t.content,null!==(s=null===(d=t.field)||void 0===d||null===(c=d.type)||void 0===c?void 0:c.unit)&&void 0!==s?s:0)).utc().toDate();else n=L().utc(Number(t.content)).toDate();l=e.getCell(n)}else if("decimal"===i){const n=(0,g.le)(t.content)?null:W.fu.format(t.content,t.contentType,t.field);l=e.getCell(n)}else l=e.getCell(t.content);if(Z(l))return l;if(!e.isEditable){if((0,g.bb)(t.displayContent)){var u;const e=le(t.displayContent);l.kind===o.p6.Text||l.kind===o.p6.Number||l.kind===o.p6.Uri?l={...l,displayData:e}:l.kind===o.p6.Custom&&"date-picker-cell"===(null===(u=l.data)||void 0===u?void 0:u.kind)&&(l={...l,data:{...l.data,displayDate:e}})}n&&t.cssId&&(l=function(e,t,n){const i={},o=Ee(t,"color",n);o&&(i.textDark=o);const l=Ee(t,"background-color",n);return l&&(i.bgCell=l),"yellow"===l&&void 0===o&&(i.textDark="#31333F"),i?{...e,themeOverride:i}:e}(l,t.cssId,n))}return l}function Ne(e){const t=e.columnTypeOptions||{};let n,i;if(t.validate)try{n=new RegExp(t.validate,"us")}catch(a){n="Invalid validate regex: ".concat(t.validate,".\nError: ").concat(a)}if(!(0,g.le)(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 l={kind:o.p6.Uri,readonly:!e.isEditable,allowOverlay:!0,contentAlign:e.contentAlignment,style:e.isIndex?"faded":"normal",hoverEffect:!0,data:"",displayData:"",copyData:""},r=i=>{if((0,g.le)(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:r,getCell(e,o){if((0,g.le)(e))return{...l,data:null,isMissingValue:!0,onClickUri:()=>{}};const s=e;if("string"===typeof n)return P(X(s),n);if(o){if(!1===r(s))return P(X(s),"Invalid input.")}let d="";return s&&(d=void 0!==i?function(e,t){if((0,g.le)(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),{...l,data:s,displayData:d,isMissingValue:(0,g.le)(s),onClickUri:e=>{window.open(s.startsWith("www.")?"https://".concat(s):s,"_blank","noopener,noreferrer"),e.preventDefault()},copyData:s}},getCellValue:e=>(0,g.le)(e.data)?null:e.data}}Ne.isEditableType=!0;const Ie=Ne;function _e(e){const t={kind:o.p6.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,g.bb)(e)?[X(e)]:[];return{...t,data:n,isMissingValue:!(0,g.bb)(e),displayData:n}},getCellValue:e=>void 0===e.data||0===e.data.length?null:e.data[0]}}_e.isEditableType=!1;const Oe=_e;function De(e){const t=ve(W.fu.getTypeName(e.arrowType)),n=K({min_value:0,max_value:t?100:1,step:t?1:.01,format:t?"%3d%%":"percent"},e.columnTypeOptions);let i;try{i=ee(n.max_value,n.format)}catch(a){i=X(n.max_value)}const l=(0,g.le)(n.step)||Number.isNaN(n.step)?void 0:ie(n.step),r={kind:o.p6.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,g.le)(e))return U();if((0,g.le)(n.min_value)||(0,g.le)(n.max_value)||Number.isNaN(n.min_value)||Number.isNaN(n.max_value)||n.min_value>=n.max_value)return P("Invalid min/max parameters","The min_value (".concat(n.min_value,") and max_value (").concat(n.max_value,") parameters must be valid numbers."));if((0,g.le)(n.step)||Number.isNaN(n.step))return P("Invalid step parameter","The step parameter (".concat(n.step,") must be a valid number."));const t=$(e);if(Number.isNaN(t)||(0,g.le)(t))return P(X(e),"The value cannot be interpreted as a number.");if(Number.isInteger(t)&&!Number.isSafeInteger(t))return P(X(e),"The value is larger than the maximum supported integer values in number columns (2^53).");let i="";try{i=ee(t,n.format,l)}catch(a){return P(X(t),(0,g.bb)(n.format)?"Failed to format the number based on the provided format configuration: (".concat(n.format,"). Error: ").concat(a):"Failed to format the number. Error: ".concat(a))}const o=Math.min(n.max_value,Math.max(n.min_value,t));return{...r,isMissingValue:(0,g.le)(e),copyData:String(t),data:{...r.data,value:o,label:i}}},getCellValue(e){var t,n;return e.kind===o.p6.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}}}De.isEditableType=!1;const Fe=De;function Ae(e,t,n){const i=K({y_min:0,y_max:1},t.columnTypeOptions),l={kind:o.p6.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,g.le)(i.y_min)||(0,g.le)(i.y_max)||Number.isNaN(i.y_min)||Number.isNaN(i.y_max)||i.y_min>=i.y_max)return P("Invalid min/max y-axis configuration","The y_min (".concat(i.y_min,") and y_max (").concat(i.y_max,") configuration options must be valid numbers."));if((0,g.le)(e))return U();const t=G(e),n=[];let o=[];if(0===t.length)return U();let r=Number.MIN_SAFE_INTEGER,a=Number.MAX_SAFE_INTEGER;for(let i=0;i<t.length;i++){const e=$(t[i]);if(Number.isNaN(e)||(0,g.le)(e))return P(X(t),"The value cannot be interpreted as a numeric array. ".concat(X(e)," is not a number."));e>r&&(r=e),e<a&&(a=e),n.push(e)}return o=n.length>0&&(r>i.y_max||a<i.y_min)?n.map((e=>r-a===0?r>(i.y_max||1)?i.y_max||1:i.y_min||0:((i.y_max||1)-(i.y_min||0))*((e-a)/(r-a))+(i.y_min||0))):n,{...l,copyData:n.join(","),data:{...l.data,values:o,displayValues:n.map((e=>ee(e)))},isMissingValue:(0,g.le)(e)}},getCellValue(e){var t,n;return e.kind===o.p6.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 ze(e){return Ae("line_chart",e,"line")}function Ve(e){return Ae("bar_chart",e,"bar")}function He(e){return Ae("area_chart",e,"area")}ze.isEditableType=!1,Ve.isEditableType=!1,He.isEditableType=!1;const Le=new Map(Object.entries({object:se,text:ce,checkbox:be,selectbox:Ce,list:Se,number:we,link:Ie,datetime:he,date:ge,time:pe,line_chart:ze,bar_chart:Ve,area_chart:He,image:Oe,progress:Fe})),We=[],je="_index",Be="_pos:",Pe={small:75,medium:200,large:400};function Ze(e){if(!(0,g.le)(e))return"number"===typeof e?e:e in Pe?Pe[e]:void 0}function Ye(e,t){if(!t)return e;let n;return t.has(e.name)&&e.name!==je?n=t.get(e.name):t.has("".concat(Be).concat(e.indexNumber))?n=t.get("".concat(Be).concat(e.indexNumber)):e.isIndex&&t.has(je)&&(n=t.get(je)),n?F()({...e},{title:n.label,width:Ze(n.width),isEditable:(0,g.bb)(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 Ue(e){var t;const n=null===(t=e.columnTypeOptions)||void 0===t?void 0:t.type;let i;return(0,g.bb)(n)&&(Le.has(n)?i=Le.get(n):(0,re.KE)("Unknown column type configured in column configuration: ".concat(n))),(0,g.le)(i)&&(i=function(e){let t=e?W.fu.getTypeName(e):null;return t?(t=t.toLowerCase().trim(),["unicode","empty"].includes(t)?ce:["datetime","datetimetz"].includes(t)?he:"time"===t?pe:"date"===t?ge:["object","bytes"].includes(t)?se:["bool"].includes(t)?be:["int8","int16","int32","int64","uint8","uint16","uint32","uint64","float16","float32","float64","float96","float128","range","decimal"].includes(t)?we:"categorical"===t?Ce:t.startsWith("list")?Se:se):se}(e.arrowType)),i}const qe=function(e,t,n){const o=(0,f.u)(),l=i.useMemo((()=>function(e){if(!e)return new Map;try{return new Map(Object.entries(JSON.parse(e)))}catch(t){return(0,re.H)(t),new Map}}(e.columns)),[e.columns]),r=e.useContainerWidth||(0,g.bb)(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 l=0;l<i;l++){const n={...Te(e,l),indexNumber:l};t.push(n)}for(let l=0;l<o;l++){const n={...ke(e,l),indexNumber:l+i};t.push(n)}return t}(t).map((t=>{let i={...t,...Ye(t,l),isStretched:r};const a=Ue(i);return(e.editingMode===p.Eh.EditingMode.READ_ONLY||n||!1===a.isEditableType)&&(i={...i,isEditable:!1}),e.editingMode!==p.Eh.EditingMode.READ_ONLY&&1==i.isEditable&&(i={...i,icon:"editable"},i.isRequired&&e.editingMode===p.Eh.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:[se({id:"empty-index",title:"",indexNumber:0,isEditable:!1,isIndex:!0})]}),[t,l,r,n,e.editingMode,e.columnOrder,o])}};function Je(e){return e.isIndex?je:(0,g.le)(e.name)?"":e.name}const Ke=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 l={};e.forEach(((e,n,i)=>{const o=t.get(n);o&&(l[Je(o)]=o.getCellValue(e))})),n.edited_rows[i]=l})),this.addedRows.forEach((e=>{const i={};let o=!1;e.forEach(((e,n,l)=>{const r=t.get(n);if(r){const t=r.getCellValue(e);r.isRequired&&r.isEditable&&Y(e)&&(o=!0),(0,g.bb)(t)&&(i[Je(r)]=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(Je(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],l=o.get(e);if(l){const e=l.getCell(n);var r;if(e)this.editedCells.has(t)||this.editedCells.set(t,new Map),null===(r=this.editedCells.get(t))||void 0===r||r.set(l.indexNumber,e)}}))})),n.added_rows.forEach((e=>{const t=new Map;Object.keys(e).forEach((n=>{const i=e[n],l=o.get(n);if(l){const e=l.getCell(i);e&&t.set(l.indexNumber,e)}})),this.addedRows.push(t)})),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,g.le)(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 Ge=n(35704);const Xe=function(){const e=(0,f.u)(),t=i.useMemo((()=>({editable:e=>'<svg xmlns="http://www.w3.org/2000/svg" height="40" viewBox="0 96 960 960" width="40" fill="'.concat(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,Ge.DZ)(e.colors.primary,.9),borderColor:e.colors.fadedText05,horizontalBorderColor:e.colors.fadedText05,fontFamily:e.genericFonts.bodyFont,bgSearchResult:(0,Ge.DZ)(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:"".concat(e.fontSizes.sm),baseFontStyle:e.fontSizes.sm,editorFontSize:e.fontSizes.sm,textDark:e.colors.bodyText,textMedium:(0,Ge.DZ)(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.lg,headerIcons:t}};const Qe=function(e,t,n,o){return{getCellContent:i.useCallback((i=>{let[l,r]=i;if(l>t.length-1)return P("Column index out of bounds.","This should never happen. Please report this bug.");if(r>n-1)return P("Row index out of bounds.","This should never happen. Please report this bug.");const a=t[l],s=a.indexNumber,d=o.current.getOriginalRowIndex(r);if(a.isEditable||o.current.isAddedRow(d)){const e=o.current.getCell(s,d);if(void 0!==e)return e}try{return Re(a,e.getCell(d+1,s),e.cssStyles)}catch(c){return P("Error during cell creation.","This should never happen. Please report this bug. \nError: ".concat(c))}}),[t,n,e,o])}};var $e=n(32700);const et=function(e,t,n){const[o,l]=i.useState(),{getCellContent:r,getOriginalIndex:a}=(0,$e.fF)({columns:t.map((e=>J(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 ".concat(e.title):"\u2193 ".concat(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 l(void 0);t="desc"}l({column:J(n),direction:t,mode:n.sortMode})}),[o,s]);return{columns:s,sortColumn:d,getOriginalIndex:a,getCellContent:r}};var tt=n(62813),nt=n.n(tt);const it=function(e,t,n,l){const[r,a]=i.useState({columns:o.EV.empty(),rows:o.EV.empty(),current:void 0}),s=!t&&!n&&(e.selectionMode.includes(p.Eh.SelectionMode.MULTI_ROW)||e.selectionMode.includes(p.Eh.SelectionMode.SINGLE_ROW)),d=s&&e.selectionMode.includes(p.Eh.SelectionMode.MULTI_ROW),c=!t&&!n&&(e.selectionMode.includes(p.Eh.SelectionMode.SINGLE_COLUMN)||e.selectionMode.includes(p.Eh.SelectionMode.MULTI_COLUMN)),u=c&&e.selectionMode.includes(p.Eh.SelectionMode.MULTI_COLUMN),m=r.rows.length>0,h=r.columns.length>0,g=void 0!==r.current,f=i.useCallback((e=>{const t=!nt()(e.rows.toArray(),r.rows.toArray()),n=!nt()(e.columns.toArray(),r.columns.toArray()),i=!nt()(e.current,r.current);let o=s&&t||c&&n,d=e;(s||c)&&void 0!==e.current&&i&&(d={...e,rows:r.rows,columns:r.columns},o=!1),t&&e.rows.length>0&&n&&0===e.columns.length&&(d={...d,columns:r.columns},o=!0),n&&e.columns.length>0&&t&&0===e.rows.length&&(d={...d,rows:r.rows},o=!0),a(d),o&&l(d)}),[r,s,c,l]),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?r.columns:o.EV.empty(),rows:e?r.rows:o.EV.empty(),current:void 0};a(n),(!e&&s||!t&&c)&&l(n)}),[r,s,c,l]);return{gridSelection:r,isRowSelectionActivated:s,isMultiRowSelectionActivated:d,isColumnSelectionActivated:c,isMultiColumnSelectionActivated:u,isRowSelected:m,isColumnSelected:h,isCellSelected:g,clearSelection:b,processSelectionChange:f}},ot=",",lt='"',rt='"',at="\n",st=new RegExp("[".concat([ot,lt,at].join(""),"]"));function dt(e){return e.map((e=>function(e){if((0,g.le)(e))return"";const t=X(e);if(st.test(t))return"".concat(lt).concat(t.replace(new RegExp(lt,"g"),rt+lt)).concat(lt);return t}(e))).join(ot)+at}const ct=function(e,t,o){return{exportToCsv:i.useCallback((async()=>{try{const i=await n.e(5345).then(n.bind(n,95345)),l=(new Date).toISOString().slice(0,16).replace(":","-"),r="".concat(l,"_export.csv"),a=await i.showSaveFilePicker({suggestedName:r,types:[{accept:{"text/csv":[".csv"]}}],excludeAcceptAllOption:!1}),s=new TextEncoder,d=await a.createWritable();await d.write(s.encode("\ufeff"));const c=t.map((e=>e.name));await d.write(s.encode(dt(c)));for(let n=0;n<o;n++){const i=[];t.forEach(((t,o,l)=>{i.push(t.getCellValue(e([o,n])))})),await d.write(s.encode(dt(i)))}await d.close()}catch(i){(0,re.KE)("Failed to export data as CSV",i)}}),[t,o,e])}};const ut=function(e,t,n,o,l,r,a,s,d){const c=i.useCallback(((t,i)=>{let[r,a]=t;const d=e[r];if(!d.isEditable)return;const c=d.indexNumber,u=n.current.getOriginalRowIndex(l(a)),m=o([r,a]),h=d.getCellValue(m),p=d.getCellValue(i);if(!Z(m)&&p===h)return;const g=d.getCell(p,!0);Z(g)?(0,re.KE)("Not applying the cell edit since it causes this error:\n ".concat(g.data)):(n.current.setCell(c,u,{...g,lastUpdated:performance.now()}),s())}),[e,n,l,o,s]),u=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||(u(),s())}),[u,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(l(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]}),c([o,i],n.getCell(null)))}return t.length>0&&(s(),r(t)),!1}return!0}),[e,n,t,r,l,s,c,d,a]),p=i.useCallback(((i,a)=>{const[d,c]=i,m=[];for(let h=0;h<a.length;h++){const i=a[h];if(h+c>=n.current.getNumRows()){if(t)break;u()}for(let t=0;t<i.length;t++){const r=i[t],a=h+c,s=t+d;if(s>=e.length)break;const u=e[s];if(u.isEditable){const e=u.getCell(r,!0);if((0,g.bb)(e)&&!Z(e)){const t=u.indexNumber,i=n.current.getOriginalRowIndex(l(a)),r=u.getCellValue(o([s,a]));u.getCellValue(e)!==r&&(n.current.setCell(t,i,{...e,lastUpdated:performance.now()}),m.push({cell:[s,a]}))}}}m.length>0&&(s(),r(m))}return!1}),[e,n,t,l,o,u,s,r]),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:c,onPaste:p,onRowAppended:m,onDelete:h,validateCell:f}};const mt=function(e,t){const[n,o]=i.useState(),l=i.useRef(null),r=i.useCallback((n=>{if(clearTimeout(l.current),l.current=0,o(void 0),("header"===n.kind||"cell"===n.kind)&&n.location){const i=n.location[0],r=n.location[1];let a;if(i<0||i>=e.length)return;const s=e[i];if("header"===n.kind&&(0,g.bb)(s))a=s.help;else if("cell"===n.kind){const e=t([i,r]);s.isRequired&&s.isEditable&&Y(e)?a="\u26a0\ufe0f Please fill out this cell.":function(e){return e.hasOwnProperty("tooltip")&&""!==e.tooltip}(e)&&(a=e.tooltip)}a&&(l.current=setTimeout((()=>{a&&o({content:a,left:n.bounds.x+n.bounds.width/2,top:n.bounds.y})}),600))}}),[e,t,o,l]);return{tooltip:n,clearTooltip:i.useCallback((()=>{o(void 0)}),[o]),onItemHovered:r}};var ht=n(39806),pt=n(97613),gt=n(5527),ft=n(85e3),bt=n(37538);const vt=function(e){return{drawCell:i.useCallback(((t,n)=>{const{cell:i,theme:o,ctx:l,rect:r}=t,a=t.col;if(Y(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,ht.L6)({...e,theme:{...n,textDark:n.textLight,headerFontFull:"".concat(n.headerFontStyle," ").concat(n.fontFamily),baseFontFull:"".concat(n.baseFontStyle," ").concat(n.fontFamily),markerFontFull:"".concat(n.markerFontStyle," ").concat(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()}(l,r,o))}n()}),[e]),customRenderers:i.useMemo((()=>[pt.Z,gt.Z,ft.Z,bt.ZP,...We]),[])}};const yt=function(e){const[t,n]=(0,i.useState)((()=>new Map)),o=i.useCallback(((e,i,o,l)=>{e.id&&n(new Map(t).set(e.id,l))}),[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}},wt=2,xt=35,Ct=50+wt,Mt=2*xt+wt;const St=function(e,t,n,o,l){let r,a=function(e){return Math.max(e*xt+wt,Mt)}(t+1+(e.editingMode===p.Eh.EditingMode.DYNAMIC?1:0)),s=Math.min(a,400);e.height&&(s=Math.max(e.height,Mt),a=Math.max(e.height,a)),o&&(s=Math.min(s,o),a=Math.min(a,o),e.height||(s=a));let d=n;e.useContainerWidth?r=n:e.width&&(r=Math.min(Math.max(e.width,Ct),n),d=Math.min(Math.max(e.width,d),n));const[c,u]=i.useState({width:r||"100%",height:s});return i.useLayoutEffect((()=>{e.useContainerWidth&&"100%"===c.width&&u({width:n,height:c.height})}),[n]),i.useLayoutEffect((()=>{u({width:c.width,height:s})}),[t]),i.useLayoutEffect((()=>{u({width:r||"100%",height:c.height})}),[r]),i.useLayoutEffect((()=>{u({width:c.width,height:s})}),[s]),i.useLayoutEffect((()=>{if(l){const t=e.useContainerWidth||(0,g.bb)(e.width)&&e.width>0;u({width:t?d:"100%",height:a})}else u({width:r||"100%",height:s})}),[l]),{minHeight:Mt,maxHeight:a,minWidth:Ct,maxWidth:d,resizableSize:c,setResizableSize:u}},Et=(0,S.Z)("img",{target:"e24uaba0"})((()=>({maxWidth:"100%",maxHeight:"600px",objectFit:"scale-down"})),""),Tt=e=>{let{urls:t}=e;const n=t&&t.length>0?t[0]:"";return n.startsWith("http")?(0,R.jsx)("a",{href:n,target:"_blank",rel:"noreferrer noopener",children:(0,R.jsx)(Et,{src:n})}):(0,R.jsx)(Et,{src:n})};var kt=n(31572),Rt=n(13553),Nt=n(80152);const It=function(e){let{top:t,left:n,content:o,clearTooltip:l}=e;const[r,a]=i.useState(!0),s=(0,f.u)(),{colors:d,fontSizes:c,radii:u}=s,m=i.useCallback((()=>{a(!1),l()}),[l,a]);return(0,R.jsx)(kt.Z,{content:(0,R.jsx)(Nt.Uo,{className:"stTooltipContent",children:(0,R.jsx)(y.ZP,{style:{fontSize:c.sm},source:o,allowHTML:!1})}),placement:Rt.r4.top,accessibilityType:Rt.SI.tooltip,showArrow:!1,popoverMargin:5,onClickOutside:m,onEsc:m,overrides:{Body:{style:{borderTopLeftRadius:u.md,borderTopRightRadius:u.md,borderBottomLeftRadius:u.md,borderBottomRightRadius:u.md,paddingTop:"0 !important",paddingBottom:"0 !important",paddingLeft:"0 !important",paddingRight:"0 !important",backgroundColor:"transparent"}},Inner:{style:{backgroundColor:(0,E.Iy)(s)?d.bgColor:d.secondaryBg,color:d.bodyText,fontSize:c.sm,fontWeight:"normal",paddingTop:"0 !important",paddingBottom:"0 !important",paddingLeft:"0 !important",paddingRight:"0 !important"}}},isOpen:r,children:(0,R.jsx)("div",{className:"stTooltipTarget","data-testid":"stTooltipTarget",style:{position:"fixed",top:t,left:n}})})},_t=(0,S.Z)("div",{target:"e1w7nams0"})((e=>{let{hasCustomizedScrollbars:t,theme:n}=e;return{position:"relative",display:"inline-block","& .glideDataEditor":{height:"100%",minWidth:"100%",borderRadius:n.radii.lg},"& .dvn-scroller":{...!t&&{scrollbarWidth:"thin"},overflowX:"auto !important",overflowY:"auto !important"}}}),"");n(2739),n(24665);const Ot=(0,h.Z)((function(e){let{element:t,data:n,width:h,height:f,disabled:b,widgetMgr:v,isFullScreen:y,disableFullscreenMode:w,expand:x,collapse:C,fragmentId:M}=e;const S=i.useRef(null),E=i.useRef(null),T=i.useRef(null),{theme:k,headerIcons:_,tableBorderRadius:O}=Xe(),[D,F]=i.useState(!0),[A,z]=i.useState(!1),[V,H]=i.useState(!1),[L,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,g.le)(t.editingMode)&&(t.editingMode=p.Eh.EditingMode.READ_ONLY);const{READ_ONLY:P,DYNAMIC:Z}=p.Eh.EditingMode,Y=n.dimensions,U=Math.max(0,Y.rows-1),K=0===U&&!(t.editingMode===Z&&Y.dataColumns>0),G=U>15e4,X=i.useRef(new Ke(U)),[Q,$]=i.useState(X.current.getNumRows());i.useEffect((()=>{X.current=new Ke(U),$(X.current.getNumRows())}),[U]);const ee=i.useCallback((()=>{X.current=new Ke(U),$(X.current.getNumRows())}),[U]),{columns:te}=qe(t,n,b);i.useEffect((()=>{if(t.editingMode===P)return;const e=v.getStringValue({id:t.id,formId:t.formId});e&&(X.current.fromJson(e,te),$(X.current.getNumRows()))}),[]);const{getCellContent:ne}=Qe(n,te,Q,X),{columns:ie,sortColumn:oe,getOriginalIndex:le,getCellContent:re}=et(U,te,ne),ae=i.useCallback((0,g.Ds)(150,(e=>{const n={select:{rows:[],columns:[]}};n.select.rows=e.rows.toArray().map((e=>le(e))),n.select.columns=e.columns.toArray().map((e=>Je(te[e])));const i=JSON.stringify(n),o=v.getStringValue({id:t.id,formId:t.formId});void 0!==o&&o===i||v.setStringValue({id:t.id,formId:t.formId},i,{fromUi:!0},M)})),[t.id,t.formId,v,M]),{gridSelection:se,isRowSelectionActivated:de,isMultiRowSelectionActivated:ce,isColumnSelectionActivated:ue,isMultiColumnSelectionActivated:me,isRowSelected:he,isColumnSelected:pe,isCellSelected:ge,clearSelection:fe,processSelectionChange:be}=it(t,K,b,ae);i.useEffect((()=>{fe(!0,!0)}),[y]);const ve=i.useCallback((e=>{var t;null===(t=E.current)||void 0===t||t.updateCells(e)}),[]);i.useEffect((()=>{if(!de&&!ue)return;const e=v.getStringValue({id:t.id,formId:t.formId});if(e){var n,i,l,r;const t=ie.map((e=>Je(e))),a=JSON.parse(e);let s=o.EV.empty(),d=o.EV.empty();if(null===(n=a.select)||void 0===n||null===(i=n.rows)||void 0===i||i.forEach((e=>{s=s.add(e)})),null===(l=a.select)||void 0===l||null===(r=l.columns)||void 0===r||r.forEach((e=>{d=d.add(t.indexOf(e))})),s.length>0||d.length>0){be({rows:s,columns:d,current:void 0})}}}),[]);const ye=i.useCallback((()=>{Q!==X.current.getNumRows()&&$(X.current.getNumRows())}),[Q]),we=i.useCallback((0,g.Ds)(150,(()=>{const e=X.current.toJson(ie);let n=v.getStringValue({id:t.id,formId:t.formId});void 0===n&&(n=new Ke(0).toJson([])),e!==n&&v.setStringValue({id:t.id,formId:t.formId},e,{fromUi:!0},M)})),[t.id,t.formId,v,M,ie,X.current]),{exportToCsv:xe}=ct(re,ie,Q),{onCellEdited:Ce,onPaste:Me,onRowAppended:Se,onDelete:Ee,validateCell:Te}=ut(ie,t.editingMode!==Z,X,re,le,ve,ye,we,fe),{tooltip:ke,clearTooltip:Re,onItemHovered:Ne}=mt(ie,re),{drawCell:Ie,customRenderers:_e}=vt(ie),Oe=i.useMemo((()=>ie.map((e=>J(e)))),[ie]),{columns:De,onColumnResize:Fe}=yt(Oe),{minHeight:Ae,maxHeight:ze,minWidth:Ve,maxWidth:He,resizableSize:Le,setResizableSize:We}=St(t,Q,h,f,y),je=i.useCallback((e=>{let[t,n]=e;return{...q(!0,!1),displayData:"empty",contentAlign:"center",allowOverlay:!1,themeOverride:{textDark:k.textLight},span:[0,Math.max(ie.length-1,0)]}}),[ie,k.textLight]);i.useEffect((()=>{if(!t.formId)return;const e=new m.K;return e.manageFormClearListener(v,t.formId,(()=>{ee(),fe()})),()=>{e.disconnect()}}),[t.formId,ee,fe,v]);const Be=!K&&t.editingMode===Z&&!b,Pe=K?0:ie.filter((e=>e.isIndex)).length;return i.useEffect((()=>{setTimeout((()=>{if(T.current&&E.current){var e,t;const n=null===(e=T.current)||void 0===e||null===(t=e.querySelector(".dvn-stack"))||void 0===t?void 0:t.getBoundingClientRect();n&&(H(n.height>T.current.clientHeight),W(n.width>T.current.clientWidth))}}),1)}),[Le,Q,De]),(0,R.jsxs)(_t,{"data-testid":"stDataFrame",className:"stDataFrame",hasCustomizedScrollbars:B,ref:T,onMouseDown:e=>{if(T.current&&B){const t=T.current.getBoundingClientRect();L&&t.height-7<e.clientY-t.top&&e.stopPropagation(),V&&t.width-7<e.clientX-t.left&&e.stopPropagation()}},onBlur:e=>{D||j||e.currentTarget.contains(e.relatedTarget)||fe(!0,!0)},children:[(0,R.jsxs)(I,{isFullScreen:y,disableFullscreenMode:w,locked:he&&!de||ge||j&&D,onExpand:x,onCollapse:C,target:_t,children:[(de&&he||ue&&pe)&&(0,R.jsx)(N,{label:"Clear selection",icon:a.x,onClick:()=>{fe(),Re()}}),Be&&he&&(0,R.jsx)(N,{label:"Delete row(s)",icon:s.H,onClick:()=>{Ee&&(Ee(se),Re())}}),Be&&!he&&(0,R.jsx)(N,{label:"Add row",icon:d.m,onClick:()=>{Se&&(F(!0),Se(),Re())}}),!G&&!K&&(0,R.jsx)(N,{label:"Download as CSV",icon:c.k,onClick:()=>xe()}),!K&&(0,R.jsx)(N,{label:"Search",icon:u.o,onClick:()=>{A?z(!1):(F(!0),z(!0)),Re()}})]}),(0,R.jsx)(r.e,{"data-testid":"stDataFrameResizable",ref:S,defaultSize:Le,style:{border:"1px solid ".concat(k.borderColor),borderRadius:"".concat(O)},minHeight:Ae,maxHeight:ze,minWidth:Ve,maxWidth:He,size:Le,enable:{top:!1,right:!1,bottom:!1,left:!1,topRight:!1,bottomRight:!0,bottomLeft:!1,topLeft:!1},grid:[1,xt],snapGap:xt/3,onResizeStop:(e,t,n,i)=>{S.current&&We({width:S.current.size.width,height:ze-S.current.size.height===wt?S.current.size.height+wt:S.current.size.height})},children:(0,R.jsx)(l.F,{className:"glideDataEditor",ref:E,columns:De,rows:K?1:Q,minColumnWidth:50,maxColumnWidth:1e3,maxColumnAutoWidth:500,rowHeight:xt,headerHeight:xt,getCellContent:K?je:re,onColumnResize:j?void 0:Fe,resizeIndicator:"header",freezeColumns:Pe,smoothScrollX:!0,smoothScrollY:!0,verticalBorder:!0,getCellsForSelection:!0,rowMarkers:"none",rangeSelect:j?"cell":"rect",columnSelect:"none",rowSelect:"none",onItemHovered:Ne,keybindings:{downFill:!0},onKeyDown:e=>{(e.ctrlKey||e.metaKey)&&"f"===e.key&&(z((e=>!e)),e.stopPropagation(),e.preventDefault())},showSearch:A,onSearchClose:()=>{z(!1),Re()},onHeaderClicked:(e,t)=>{K||G||ue||(de&&he&&fe(),oe(e))},gridSelection:se,onGridSelectionChange:e=>{(D||j)&&(be(e),void 0!==ke&&Re())},theme:k,onMouseMove:e=>{"out-of-bounds"===e.kind&&D?F(!1):"out-of-bounds"===e.kind||D||F(!0)},fixedShadowX:!0,fixedShadowY:!0,experimental:{scrollbarWidthOverride:0,...B&&{paddingBottom:L?-6:void 0,paddingRight:V?-6:void 0}},drawCell:Ie,customRenderers:_e,imageEditorOverride:Tt,headerIcons:_,validateCell:Te,onPaste:!1,...de&&{rowMarkers:{kind:"checkbox",checkboxStyle:"square",theme:{bgCell:k.bgHeader,bgCellMedium:k.bgHeader}},rowSelectionMode:ce?"multi":"auto",rowSelect:b?"none":ce?"multi":"single",rowSelectionBlending:"mixed",rangeSelectionBlending:"exclusive"},...ue&&{columnSelect:b?"none":me?"multi":"single",columnSelectionBlending:"mixed",rangeSelectionBlending:"exclusive"},...!K&&t.editingMode!==P&&!b&&{fillHandle:!j,onCellEdited:Ce,onPaste:Me,onDelete:Ee},...!K&&t.editingMode===Z&&{trailingRowOptions:{sticky:!1,tint:!0},rowMarkers:{kind:"checkbox",checkboxStyle:"square",theme:{bgCell:k.bgHeader,bgCellMedium:k.bgHeader}},rowSelectionMode:"multi",rowSelect:b?"none":"multi",onRowAppended:b?void 0:Se,onHeaderClicked:void 0}})}),ke&&ke.content&&(0,R.jsx)(It,{top:ke.top,left:ke.left,content:ke.content,clearTooltip:Re})]})}),!0)},87814:(e,t,n)=>{n.d(t,{K:()=>o});var i=n(50641);class o{constructor(){this.formClearListener=void 0,this.lastWidgetMgr=void 0,this.lastFormId=void 0}manageFormClearListener(e,t,n){null!=this.formClearListener&&this.lastWidgetMgr===e&&this.lastFormId===t||(this.disconnect(),(0,i.bM)(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}}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunk_streamlit_app=self.webpackChunk_streamlit_app||[]).push([[9758],{69758:(e,t,n)=>{n.r(t),n.d(t,{config:()=>a,errors:()=>r,fromDataTransfer:()=>i,getDirHandlesFromInput:()=>o,getFileHandlesFromInput:()=>s});const r={INVALID:["seeking position failed.","InvalidStateError"],GONE:["A requested file or directory could not be found at the time an operation was processed.","NotFoundError"],MISMATCH:["The path supplied exists, but was not an entry of requested type.","TypeMismatchError"],MOD_ERR:["The object can not be modified in this way.","InvalidModificationError"],SYNTAX:e=>["Failed to execute 'write' on 'UnderlyingSinkBase': Invalid params passed. ".concat(e),"SyntaxError"],SECURITY:["It was determined that certain files are unsafe for access within a Web application, or that too many calls are being made on file resources.","SecurityError"],DISALLOWED:["The request is not allowed by the user agent or the platform in the current context.","NotAllowedError"]},a={writable:globalThis.WritableStream};async function i(e){console.warn("deprecated fromDataTransfer - use `dt.items[0].getAsFileSystemHandle()` instead");const[t,r,a]=await Promise.all([n.e(8005).then(n.bind(n,28005)),n.e(3053).then(n.bind(n,13053)),Promise.resolve().then(n.bind(n,46979))]),i=new t.FolderHandle("",!1);return i._entries=e.map((e=>e.isFile?new r.FileHandle(e,!1):new r.FolderHandle(e,!1))),new a.FileSystemDirectoryHandle(i)}async function o(e){const{FolderHandle:t,FileHandle:r}=await n.e(8005).then(n.bind(n,28005)),{FileSystemDirectoryHandle:a}=await Promise.resolve().then(n.bind(n,46979)),i=Array.from(e.files),o=i[0].webkitRelativePath.split("/",1)[0],s=new t(o,!1);return i.forEach((e=>{const n=e.webkitRelativePath.split("/");n.shift();const a=n.pop();n.reduce(((e,n)=>(e._entries[n]||(e._entries[n]=new t(n,!1)),e._entries[n])),s)._entries[a]=new r(e.name,e,!1)})),new a(s)}async function s(e){const{FileHandle:t}=await n.e(8005).then(n.bind(n,28005)),{FileSystemFileHandle:r}=await Promise.resolve().then(n.bind(n,8192));return Array.from(e.files).map((e=>new r(new t(e.name,e,!1))))}}}]);