streamlit-nightly 1.52.3.dev20260101__py3-none-any.whl → 1.52.3.dev20260102__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 (459) hide show
  1. streamlit/__init__.py +1 -1
  2. streamlit/__main__.py +1 -1
  3. streamlit/auth_util.py +1 -1
  4. streamlit/cli_util.py +1 -1
  5. streamlit/column_config.py +1 -1
  6. streamlit/commands/__init__.py +1 -1
  7. streamlit/commands/echo.py +1 -1
  8. streamlit/commands/execution_control.py +1 -1
  9. streamlit/commands/experimental_query_params.py +1 -1
  10. streamlit/commands/logo.py +1 -1
  11. streamlit/commands/navigation.py +1 -1
  12. streamlit/commands/page_config.py +1 -1
  13. streamlit/components/__init__.py +1 -1
  14. streamlit/components/lib/__init__.py +1 -1
  15. streamlit/components/lib/local_component_registry.py +1 -1
  16. streamlit/components/types/__init__.py +1 -1
  17. streamlit/components/types/base_component_registry.py +1 -1
  18. streamlit/components/types/base_custom_component.py +1 -1
  19. streamlit/components/v1/__init__.py +1 -1
  20. streamlit/components/v1/component_arrow.py +1 -1
  21. streamlit/components/v1/component_registry.py +1 -1
  22. streamlit/components/v1/components.py +1 -1
  23. streamlit/components/v1/custom_component.py +1 -1
  24. streamlit/components/v2/__init__.py +1 -1
  25. streamlit/components/v2/bidi_component/__init__.py +1 -1
  26. streamlit/components/v2/bidi_component/constants.py +1 -1
  27. streamlit/components/v2/bidi_component/main.py +1 -1
  28. streamlit/components/v2/bidi_component/serialization.py +1 -1
  29. streamlit/components/v2/bidi_component/state.py +1 -1
  30. streamlit/components/v2/component_definition_resolver.py +1 -1
  31. streamlit/components/v2/component_file_watcher.py +1 -1
  32. streamlit/components/v2/component_manager.py +1 -1
  33. streamlit/components/v2/component_manifest_handler.py +1 -1
  34. streamlit/components/v2/component_path_utils.py +1 -1
  35. streamlit/components/v2/component_registry.py +1 -1
  36. streamlit/components/v2/get_bidi_component_manager.py +1 -1
  37. streamlit/components/v2/manifest_scanner.py +1 -1
  38. streamlit/components/v2/presentation.py +1 -1
  39. streamlit/components/v2/types.py +1 -1
  40. streamlit/config.py +1 -1
  41. streamlit/config_option.py +1 -1
  42. streamlit/config_util.py +1 -1
  43. streamlit/connections/__init__.py +1 -1
  44. streamlit/connections/base_connection.py +1 -1
  45. streamlit/connections/snowflake_connection.py +1 -1
  46. streamlit/connections/snowpark_connection.py +1 -1
  47. streamlit/connections/sql_connection.py +1 -1
  48. streamlit/connections/util.py +1 -1
  49. streamlit/cursor.py +1 -1
  50. streamlit/dataframe_util.py +1 -1
  51. streamlit/delta_generator.py +1 -1
  52. streamlit/delta_generator_singletons.py +1 -1
  53. streamlit/deprecation_util.py +1 -1
  54. streamlit/development.py +1 -1
  55. streamlit/elements/__init__.py +1 -1
  56. streamlit/elements/alert.py +1 -1
  57. streamlit/elements/arrow.py +1 -1
  58. streamlit/elements/balloons.py +1 -1
  59. streamlit/elements/bokeh_chart.py +1 -1
  60. streamlit/elements/code.py +1 -1
  61. streamlit/elements/deck_gl_json_chart.py +1 -1
  62. streamlit/elements/dialog_decorator.py +1 -1
  63. streamlit/elements/doc_string.py +1 -1
  64. streamlit/elements/empty.py +1 -1
  65. streamlit/elements/exception.py +1 -1
  66. streamlit/elements/form.py +1 -1
  67. streamlit/elements/graphviz_chart.py +1 -1
  68. streamlit/elements/heading.py +1 -1
  69. streamlit/elements/html.py +1 -1
  70. streamlit/elements/iframe.py +1 -1
  71. streamlit/elements/image.py +1 -1
  72. streamlit/elements/json.py +1 -1
  73. streamlit/elements/layouts.py +1 -1
  74. streamlit/elements/lib/__init__.py +1 -1
  75. streamlit/elements/lib/built_in_chart_utils.py +1 -1
  76. streamlit/elements/lib/color_util.py +1 -1
  77. streamlit/elements/lib/column_config_utils.py +1 -1
  78. streamlit/elements/lib/column_types.py +1 -1
  79. streamlit/elements/lib/dialog.py +1 -1
  80. streamlit/elements/lib/dicttools.py +1 -1
  81. streamlit/elements/lib/file_uploader_utils.py +1 -1
  82. streamlit/elements/lib/form_utils.py +1 -1
  83. streamlit/elements/lib/image_utils.py +1 -1
  84. streamlit/elements/lib/js_number.py +1 -1
  85. streamlit/elements/lib/layout_utils.py +1 -1
  86. streamlit/elements/lib/mutable_status_container.py +1 -1
  87. streamlit/elements/lib/options_selector_utils.py +1 -1
  88. streamlit/elements/lib/pandas_styler_utils.py +1 -1
  89. streamlit/elements/lib/policies.py +1 -1
  90. streamlit/elements/lib/shortcut_utils.py +1 -1
  91. streamlit/elements/lib/streamlit_plotly_theme.py +1 -1
  92. streamlit/elements/lib/subtitle_utils.py +1 -1
  93. streamlit/elements/lib/utils.py +1 -1
  94. streamlit/elements/map.py +1 -1
  95. streamlit/elements/markdown.py +1 -1
  96. streamlit/elements/media.py +1 -1
  97. streamlit/elements/metric.py +1 -1
  98. streamlit/elements/pdf.py +1 -1
  99. streamlit/elements/plotly_chart.py +1 -1
  100. streamlit/elements/progress.py +1 -1
  101. streamlit/elements/pyplot.py +1 -1
  102. streamlit/elements/snow.py +1 -1
  103. streamlit/elements/space.py +1 -1
  104. streamlit/elements/spinner.py +1 -1
  105. streamlit/elements/text.py +1 -1
  106. streamlit/elements/toast.py +1 -1
  107. streamlit/elements/vega_charts.py +1 -1
  108. streamlit/elements/widgets/__init__.py +1 -1
  109. streamlit/elements/widgets/audio_input.py +1 -1
  110. streamlit/elements/widgets/button.py +1 -1
  111. streamlit/elements/widgets/button_group.py +1 -1
  112. streamlit/elements/widgets/camera_input.py +1 -1
  113. streamlit/elements/widgets/chat.py +1 -1
  114. streamlit/elements/widgets/checkbox.py +1 -1
  115. streamlit/elements/widgets/color_picker.py +1 -1
  116. streamlit/elements/widgets/data_editor.py +1 -1
  117. streamlit/elements/widgets/file_uploader.py +1 -1
  118. streamlit/elements/widgets/multiselect.py +1 -1
  119. streamlit/elements/widgets/number_input.py +1 -1
  120. streamlit/elements/widgets/radio.py +1 -1
  121. streamlit/elements/widgets/select_slider.py +1 -1
  122. streamlit/elements/widgets/selectbox.py +1 -1
  123. streamlit/elements/widgets/slider.py +1 -1
  124. streamlit/elements/widgets/text_widgets.py +1 -1
  125. streamlit/elements/widgets/time_widgets.py +1 -1
  126. streamlit/elements/write.py +1 -1
  127. streamlit/emojis.py +1 -1
  128. streamlit/env_util.py +1 -1
  129. streamlit/error_util.py +1 -1
  130. streamlit/errors.py +1 -1
  131. streamlit/external/__init__.py +1 -1
  132. streamlit/external/langchain/__init__.py +1 -1
  133. streamlit/external/langchain/streamlit_callback_handler.py +1 -1
  134. streamlit/file_util.py +1 -1
  135. streamlit/git_util.py +1 -1
  136. streamlit/hello/__init__.py +1 -1
  137. streamlit/hello/animation_demo.py +1 -1
  138. streamlit/hello/dataframe_demo.py +1 -1
  139. streamlit/hello/hello.py +1 -1
  140. streamlit/hello/mapping_demo.py +1 -1
  141. streamlit/hello/plotting_demo.py +1 -1
  142. streamlit/hello/streamlit_app.py +1 -1
  143. streamlit/hello/utils.py +1 -1
  144. streamlit/logger.py +1 -1
  145. streamlit/material_icon_names.py +1 -1
  146. streamlit/navigation/__init__.py +1 -1
  147. streamlit/navigation/page.py +1 -1
  148. streamlit/net_util.py +1 -1
  149. streamlit/platform.py +1 -1
  150. streamlit/proto/Alert_pb2.pyi +1 -1
  151. streamlit/proto/AppPage_pb2.pyi +1 -1
  152. streamlit/proto/ArrowData_pb2.pyi +1 -1
  153. streamlit/proto/ArrowNamedDataSet_pb2.pyi +1 -1
  154. streamlit/proto/ArrowVegaLiteChart_pb2.pyi +1 -1
  155. streamlit/proto/Arrow_pb2.pyi +1 -1
  156. streamlit/proto/AudioInput_pb2.pyi +1 -1
  157. streamlit/proto/Audio_pb2.pyi +1 -1
  158. streamlit/proto/AuthRedirect_pb2.pyi +1 -1
  159. streamlit/proto/AutoRerun_pb2.pyi +1 -1
  160. streamlit/proto/BackMsg_pb2.pyi +1 -1
  161. streamlit/proto/Balloons_pb2.pyi +1 -1
  162. streamlit/proto/BidiComponent_pb2.pyi +1 -1
  163. streamlit/proto/Block_pb2.pyi +1 -1
  164. streamlit/proto/BokehChart_pb2.pyi +1 -1
  165. streamlit/proto/ButtonGroup_pb2.pyi +1 -1
  166. streamlit/proto/ButtonLikeIconPosition_pb2.pyi +1 -1
  167. streamlit/proto/Button_pb2.pyi +1 -1
  168. streamlit/proto/CameraInput_pb2.pyi +1 -1
  169. streamlit/proto/ChatInput_pb2.pyi +1 -1
  170. streamlit/proto/Checkbox_pb2.pyi +1 -1
  171. streamlit/proto/ClientState_pb2.pyi +1 -1
  172. streamlit/proto/Code_pb2.pyi +1 -1
  173. streamlit/proto/ColorPicker_pb2.pyi +1 -1
  174. streamlit/proto/Common_pb2.pyi +1 -1
  175. streamlit/proto/Components_pb2.pyi +1 -1
  176. streamlit/proto/DataFrame_pb2.pyi +1 -1
  177. streamlit/proto/DateInput_pb2.pyi +1 -1
  178. streamlit/proto/DateTimeInput_pb2.pyi +1 -1
  179. streamlit/proto/DeckGlJsonChart_pb2.pyi +1 -1
  180. streamlit/proto/Delta_pb2.pyi +1 -1
  181. streamlit/proto/DocString_pb2.pyi +1 -1
  182. streamlit/proto/DownloadButton_pb2.pyi +1 -1
  183. streamlit/proto/Element_pb2.pyi +1 -1
  184. streamlit/proto/Empty_pb2.pyi +1 -1
  185. streamlit/proto/Exception_pb2.pyi +1 -1
  186. streamlit/proto/Favicon_pb2.pyi +1 -1
  187. streamlit/proto/FileUploader_pb2.pyi +1 -1
  188. streamlit/proto/ForwardMsg_pb2.pyi +1 -1
  189. streamlit/proto/GapSize_pb2.pyi +1 -1
  190. streamlit/proto/GitInfo_pb2.pyi +1 -1
  191. streamlit/proto/GraphVizChart_pb2.pyi +1 -1
  192. streamlit/proto/Heading_pb2.pyi +1 -1
  193. streamlit/proto/HeightConfig_pb2.pyi +1 -1
  194. streamlit/proto/Html_pb2.pyi +1 -1
  195. streamlit/proto/IFrame_pb2.pyi +1 -1
  196. streamlit/proto/Image_pb2.pyi +1 -1
  197. streamlit/proto/Json_pb2.pyi +1 -1
  198. streamlit/proto/LabelVisibilityMessage_pb2.pyi +1 -1
  199. streamlit/proto/LinkButton_pb2.pyi +1 -1
  200. streamlit/proto/Logo_pb2.pyi +1 -1
  201. streamlit/proto/Markdown_pb2.pyi +1 -1
  202. streamlit/proto/Metric_pb2.pyi +1 -1
  203. streamlit/proto/MetricsEvent_pb2.pyi +1 -1
  204. streamlit/proto/MultiSelect_pb2.pyi +1 -1
  205. streamlit/proto/NamedDataSet_pb2.pyi +1 -1
  206. streamlit/proto/Navigation_pb2.pyi +1 -1
  207. streamlit/proto/NewSession_pb2.pyi +1 -1
  208. streamlit/proto/NumberInput_pb2.pyi +1 -1
  209. streamlit/proto/PageConfig_pb2.pyi +1 -1
  210. streamlit/proto/PageInfo_pb2.pyi +1 -1
  211. streamlit/proto/PageLink_pb2.pyi +1 -1
  212. streamlit/proto/PageNotFound_pb2.pyi +1 -1
  213. streamlit/proto/PageProfile_pb2.pyi +1 -1
  214. streamlit/proto/PagesChanged_pb2.pyi +1 -1
  215. streamlit/proto/ParentMessage_pb2.pyi +1 -1
  216. streamlit/proto/PlotlyChart_pb2.pyi +1 -1
  217. streamlit/proto/Progress_pb2.pyi +1 -1
  218. streamlit/proto/Radio_pb2.pyi +1 -1
  219. streamlit/proto/RootContainer_pb2.pyi +1 -1
  220. streamlit/proto/Selectbox_pb2.pyi +1 -1
  221. streamlit/proto/SessionEvent_pb2.pyi +1 -1
  222. streamlit/proto/SessionStatus_pb2.pyi +1 -1
  223. streamlit/proto/Skeleton_pb2.pyi +1 -1
  224. streamlit/proto/Slider_pb2.pyi +1 -1
  225. streamlit/proto/Snow_pb2.pyi +1 -1
  226. streamlit/proto/Space_pb2.pyi +1 -1
  227. streamlit/proto/Spinner_pb2.pyi +1 -1
  228. streamlit/proto/TextAlignmentConfig_pb2.pyi +1 -1
  229. streamlit/proto/TextArea_pb2.pyi +1 -1
  230. streamlit/proto/TextInput_pb2.pyi +1 -1
  231. streamlit/proto/Text_pb2.pyi +1 -1
  232. streamlit/proto/TimeInput_pb2.pyi +1 -1
  233. streamlit/proto/Toast_pb2.pyi +1 -1
  234. streamlit/proto/Transient_pb2.pyi +1 -1
  235. streamlit/proto/VegaLiteChart_pb2.pyi +1 -1
  236. streamlit/proto/Video_pb2.pyi +1 -1
  237. streamlit/proto/WidgetStates_pb2.pyi +1 -1
  238. streamlit/proto/WidthConfig_pb2.pyi +1 -1
  239. streamlit/proto/__init__.py +1 -1
  240. streamlit/runtime/__init__.py +1 -1
  241. streamlit/runtime/app_session.py +1 -1
  242. streamlit/runtime/caching/__init__.py +1 -1
  243. streamlit/runtime/caching/cache_data_api.py +1 -1
  244. streamlit/runtime/caching/cache_errors.py +1 -1
  245. streamlit/runtime/caching/cache_resource_api.py +1 -1
  246. streamlit/runtime/caching/cache_type.py +1 -1
  247. streamlit/runtime/caching/cache_utils.py +1 -1
  248. streamlit/runtime/caching/cached_message_replay.py +1 -1
  249. streamlit/runtime/caching/hashing.py +1 -1
  250. streamlit/runtime/caching/legacy_cache_api.py +1 -1
  251. streamlit/runtime/caching/storage/__init__.py +1 -1
  252. streamlit/runtime/caching/storage/cache_storage_protocol.py +1 -1
  253. streamlit/runtime/caching/storage/dummy_cache_storage.py +1 -1
  254. streamlit/runtime/caching/storage/in_memory_cache_storage_wrapper.py +1 -1
  255. streamlit/runtime/caching/storage/local_disk_cache_storage.py +1 -1
  256. streamlit/runtime/caching/ttl_cleanup_cache.py +1 -1
  257. streamlit/runtime/connection_factory.py +1 -1
  258. streamlit/runtime/context.py +1 -1
  259. streamlit/runtime/context_util.py +1 -1
  260. streamlit/runtime/credentials.py +1 -1
  261. streamlit/runtime/download_data_util.py +1 -1
  262. streamlit/runtime/forward_msg_cache.py +1 -1
  263. streamlit/runtime/forward_msg_queue.py +1 -1
  264. streamlit/runtime/fragment.py +1 -1
  265. streamlit/runtime/media_file_manager.py +1 -1
  266. streamlit/runtime/media_file_storage.py +1 -1
  267. streamlit/runtime/memory_media_file_storage.py +1 -1
  268. streamlit/runtime/memory_session_storage.py +1 -1
  269. streamlit/runtime/memory_uploaded_file_manager.py +1 -1
  270. streamlit/runtime/metrics_util.py +1 -1
  271. streamlit/runtime/pages_manager.py +1 -1
  272. streamlit/runtime/runtime.py +1 -1
  273. streamlit/runtime/runtime_util.py +1 -1
  274. streamlit/runtime/script_data.py +1 -1
  275. streamlit/runtime/scriptrunner/__init__.py +1 -1
  276. streamlit/runtime/scriptrunner/exec_code.py +1 -1
  277. streamlit/runtime/scriptrunner/magic.py +1 -1
  278. streamlit/runtime/scriptrunner/magic_funcs.py +1 -1
  279. streamlit/runtime/scriptrunner/script_cache.py +1 -1
  280. streamlit/runtime/scriptrunner/script_runner.py +1 -1
  281. streamlit/runtime/scriptrunner_utils/__init__.py +1 -1
  282. streamlit/runtime/scriptrunner_utils/exceptions.py +1 -1
  283. streamlit/runtime/scriptrunner_utils/script_requests.py +1 -1
  284. streamlit/runtime/scriptrunner_utils/script_run_context.py +1 -1
  285. streamlit/runtime/secrets.py +1 -1
  286. streamlit/runtime/session_manager.py +1 -1
  287. streamlit/runtime/state/__init__.py +1 -1
  288. streamlit/runtime/state/common.py +1 -1
  289. streamlit/runtime/state/presentation.py +1 -1
  290. streamlit/runtime/state/query_params.py +1 -1
  291. streamlit/runtime/state/query_params_proxy.py +1 -1
  292. streamlit/runtime/state/safe_session_state.py +1 -1
  293. streamlit/runtime/state/session_state.py +1 -1
  294. streamlit/runtime/state/session_state_proxy.py +1 -1
  295. streamlit/runtime/state/widgets.py +1 -1
  296. streamlit/runtime/stats.py +1 -1
  297. streamlit/runtime/theme_util.py +1 -1
  298. streamlit/runtime/uploaded_file_manager.py +1 -1
  299. streamlit/runtime/websocket_session_manager.py +1 -1
  300. streamlit/source_util.py +1 -1
  301. streamlit/static/index.html +2 -2
  302. streamlit/static/manifest.json +299 -299
  303. streamlit/static/static/js/{ErrorOutline.esm.bKqSjdNS.js → ErrorOutline.esm.0yuPC2le.js} +1 -1
  304. streamlit/static/static/js/{FileDownload.esm.DYcl0HsS.js → FileDownload.esm.3-xCz5Dn.js} +1 -1
  305. streamlit/static/static/js/{FileHelper.BG4elCiu.js → FileHelper.B7p1stfH.js} +1 -1
  306. streamlit/static/static/js/{FormClearHelper.CcrsaZUN.js → FormClearHelper.2gb34MMC.js} +1 -1
  307. streamlit/static/static/js/InputInstructions.CMaz--YN.js +1 -0
  308. streamlit/static/static/js/Particles.DD6E7DiG.js +1 -0
  309. streamlit/static/static/js/{ProgressBar.D54tj-jr.js → ProgressBar.CBHvskJx.js} +1 -1
  310. streamlit/static/static/js/{StreamlitSyntaxHighlighter.D6tqIUNe.js → StreamlitSyntaxHighlighter.Cbd0Ng31.js} +1 -1
  311. streamlit/static/static/js/{TableChart.esm.BsEqAKaW.js → TableChart.esm.DkPOnPiP.js} +1 -1
  312. streamlit/static/static/js/Toolbar.uViLYWIL.js +1 -0
  313. streamlit/static/static/js/{WidgetLabelHelpIconInline.tetiwgyt.js → WidgetLabelHelpIconInline.DrQP-jZR.js} +1 -1
  314. streamlit/static/static/js/{base-input.bCQ8S-FY.js → base-input.CWLDgMIQ.js} +1 -1
  315. streamlit/static/static/js/{checkbox.SvhUmEPl.js → checkbox.lSnX8MiZ.js} +1 -1
  316. streamlit/static/static/js/{createDownloadLinkElement.mdzy2wqu.js → createDownloadLinkElement.qE-XPzHd.js} +1 -1
  317. streamlit/static/static/js/{data-grid-overlay-editor.BRpG6UuQ.js → data-grid-overlay-editor.CixSgiOW.js} +1 -1
  318. streamlit/static/static/js/{downloader.BFho_Alx.js → downloader.BR9PJ-pW.js} +1 -1
  319. streamlit/static/static/js/{embed.CjSf3HQ8.js → embed.C4scQ-hW.js} +1 -1
  320. streamlit/static/static/js/{es6.DnRofDlD.js → es6.NjGX1Pno.js} +2 -2
  321. streamlit/static/static/js/{formatNumber.CtWVEKkt.js → formatNumber.DwAT32vb.js} +1 -1
  322. streamlit/static/static/js/{iconPosition.Docx9KVT.js → iconPosition.BF4yacmi.js} +1 -1
  323. streamlit/static/static/js/{iframeResizer.contentWindow.DPJjr14X.js → iframeResizer.contentWindow.BGF3G8-a.js} +1 -1
  324. streamlit/static/static/js/{index.-Uw_gjRk.js → index.-zR4Ojkd.js} +1 -1
  325. streamlit/static/static/js/{index.BkQCUqLQ.js → index.47QtlXbw.js} +2 -2
  326. streamlit/static/static/js/{index.D9DEa36h.js → index.AbRqTgeF.js} +1 -1
  327. streamlit/static/static/js/{index.BWwP9fh8.js → index.B2FiJl2X.js} +1 -1
  328. streamlit/static/static/js/{index.C40Nq5m8.js → index.BD8Aa49F.js} +1 -1
  329. streamlit/static/static/js/{index.8C-cS-O4.js → index.BDI5MuEQ.js} +2 -2
  330. streamlit/static/static/js/index.BMEupOtG.js +1 -0
  331. streamlit/static/static/js/index.BMxizVm_.js +1 -0
  332. streamlit/static/static/js/{index.CqMzbjp5.js → index.BO_-eOf-.js} +1 -1
  333. streamlit/static/static/js/{index.zN5Ficl0.js → index.BQm1_d2O.js} +2 -2
  334. streamlit/static/static/js/{index.DYR3j5ZF.js → index.B_rx628n.js} +1 -1
  335. streamlit/static/static/js/index.BdVxH2a1.js +2 -0
  336. streamlit/static/static/js/index.BduCcO_U.js +1 -0
  337. streamlit/static/static/js/{index.B4jgy50K.js → index.Bh-DEB0O.js} +1 -1
  338. streamlit/static/static/js/index.BibdADOD.js +1 -0
  339. streamlit/static/static/js/index.BsbD_ZbU.js +1 -0
  340. streamlit/static/static/js/{index.BZFLbiyp.js → index.Bu9qeYdI.js} +1 -1
  341. streamlit/static/static/js/index.BxQj1n_M.js +1 -0
  342. streamlit/static/static/js/{index.CggOKbv5.js → index.C1zhyjFt.js} +1 -1
  343. streamlit/static/static/js/{index.B-k1aQD6.js → index.C3Czde8V.js} +1 -1
  344. streamlit/static/static/js/{index.DzWfLgsQ.js → index.C4N9_AWk.js} +1 -1
  345. streamlit/static/static/js/{index.CNXi20U2.js → index.CSPw4GmF.js} +1 -1
  346. streamlit/static/static/js/{index.C8fg6FO8.js → index.CU6HHyYl.js} +2 -2
  347. streamlit/static/static/js/{index.D5m5f2G-.js → index.CW9ezGuy.js} +1 -1
  348. streamlit/static/static/js/{index.2hZ1_TTv.js → index.CYAiwpaf.js} +1 -1
  349. streamlit/static/static/js/{index.C3MpZoqE.js → index.Cd-5Vmzk.js} +1 -1
  350. streamlit/static/static/js/index.Ce0tmU7o.js +1 -0
  351. streamlit/static/static/js/index.Cio1dNsf.js +1 -0
  352. streamlit/static/static/js/index.CrqhxXJA.js +1 -0
  353. streamlit/static/static/js/{index.BakUx9hH.js → index.CsbjfvSm.js} +1 -1
  354. streamlit/static/static/js/{index.8I6SAQDm.js → index.D1JGP_72.js} +1 -1
  355. streamlit/static/static/js/{index.qg9M6uCh.js → index.DD6jbP16.js} +1 -1
  356. streamlit/static/static/js/{index.s88CwlpG.js → index.DEF4aL6h.js} +8 -8
  357. streamlit/static/static/js/{index.Dodgg4y_.js → index.DLYqRljk.js} +1 -1
  358. streamlit/static/static/js/index.DPeqx79l.js +7 -0
  359. streamlit/static/static/js/{index.Zx7pc4Ib.js → index.DPn1549d.js} +1 -1
  360. streamlit/static/static/js/{index.Bd9Ju7cE.js → index.DUS_Khvb.js} +1 -1
  361. streamlit/static/static/js/{index.CTdvJfB7.js → index.D_zZYX-F.js} +2 -2
  362. streamlit/static/static/js/index.DgxjQf8D.js +1 -0
  363. streamlit/static/static/js/{index.3BdSdx9Q.js → index.DkQIXYcv.js} +1 -1
  364. streamlit/static/static/js/{index.DF31ixLt.js → index.Duio3diQ.js} +2 -2
  365. streamlit/static/static/js/index.DwRMR_Ao.js +1 -0
  366. streamlit/static/static/js/index.Es18h2ap.js +1 -0
  367. streamlit/static/static/js/{index.BE-_bdmf.js → index.L46XQsIY.js} +2 -2
  368. streamlit/static/static/js/{index.DQm9mE0T.js → index.ayxJkxJS.js} +24 -24
  369. streamlit/static/static/js/index.dPnBpGLy.js +1 -0
  370. streamlit/static/static/js/{index.HrvNEmn1.js → index.iV4zN5GV.js} +1 -1
  371. streamlit/static/static/js/index.x9TEvcRW.js +1 -0
  372. streamlit/static/static/js/{input.DnsJ8I9O.js → input.BViGVyAy.js} +1 -1
  373. streamlit/static/static/js/{main.Cs9yv8mP.js → main.DCurQa2X.js} +1 -1
  374. streamlit/static/static/js/{memory.CnMAyKwP.js → memory.CeqRSVmL.js} +1 -1
  375. streamlit/static/static/js/{number-overlay-editor.CMfbFJmW.js → number-overlay-editor.BNei35vX.js} +1 -1
  376. streamlit/static/static/js/{pandasStylerUtils.pLaEIPZw.js → pandasStylerUtils.BQNPcCRH.js} +1 -1
  377. streamlit/static/static/js/{sandbox.BcdOGz3D.js → sandbox.Bkc6ExUI.js} +1 -1
  378. streamlit/static/static/js/styled-components.C0Ar4ws1.js +1 -0
  379. streamlit/static/static/js/{throttle.DM63_0Ui.js → throttle.DpJVqfiM.js} +1 -1
  380. streamlit/static/static/js/{timepicker.pd9YKJun.js → timepicker.plxFjD2l.js} +1 -1
  381. streamlit/static/static/js/{toConsumableArray.C-vxP4eC.js → toConsumableArray.nocm-m15.js} +1 -1
  382. streamlit/static/static/js/uniqueId.BgdRqRrS.js +1 -0
  383. streamlit/static/static/js/{useBasicWidgetState.S1_DeDAF.js → useBasicWidgetState.CD1aG6-a.js} +1 -1
  384. streamlit/static/static/js/{useIntlLocale.BwbkZTj-.js → useIntlLocale.DLuHgCFO.js} +1 -1
  385. streamlit/static/static/js/{useTextInputAutoExpand.DJy7lTuU.js → useTextInputAutoExpand.5E_gpUfB.js} +1 -1
  386. streamlit/static/static/js/{useUpdateUiValue.KsXqwLCs.js → useUpdateUiValue.DWX5Hfxx.js} +1 -1
  387. streamlit/static/static/js/{useWaveformController.DQSftrKy.js → useWaveformController.B3tf7xqQ.js} +1 -1
  388. streamlit/static/static/js/{withCalculatedWidth.Cf1aBuuB.js → withCalculatedWidth.kZou334h.js} +1 -1
  389. streamlit/static/static/js/withFullScreenWrapper.DGTtbbLe.js +1 -0
  390. streamlit/string_util.py +1 -1
  391. streamlit/temporary_directory.py +1 -1
  392. streamlit/testing/__init__.py +1 -1
  393. streamlit/testing/v1/__init__.py +1 -1
  394. streamlit/testing/v1/app_test.py +1 -1
  395. streamlit/testing/v1/element_tree.py +1 -1
  396. streamlit/testing/v1/local_script_runner.py +1 -1
  397. streamlit/testing/v1/util.py +1 -1
  398. streamlit/time_util.py +1 -1
  399. streamlit/type_util.py +1 -1
  400. streamlit/url_util.py +1 -1
  401. streamlit/user_info.py +1 -1
  402. streamlit/util.py +1 -1
  403. streamlit/version.py +1 -1
  404. streamlit/watcher/__init__.py +1 -1
  405. streamlit/watcher/event_based_path_watcher.py +1 -1
  406. streamlit/watcher/folder_black_list.py +1 -1
  407. streamlit/watcher/local_sources_watcher.py +1 -1
  408. streamlit/watcher/path_watcher.py +1 -1
  409. streamlit/watcher/polling_path_watcher.py +1 -1
  410. streamlit/watcher/util.py +1 -1
  411. streamlit/web/__init__.py +1 -1
  412. streamlit/web/bootstrap.py +1 -1
  413. streamlit/web/cache_storage_manager_config.py +1 -1
  414. streamlit/web/cli.py +1 -1
  415. streamlit/web/server/__init__.py +1 -1
  416. streamlit/web/server/app_static_file_handler.py +1 -1
  417. streamlit/web/server/authlib_tornado_integration.py +1 -1
  418. streamlit/web/server/bidi_component_request_handler.py +1 -1
  419. streamlit/web/server/browser_websocket_handler.py +1 -1
  420. streamlit/web/server/component_file_utils.py +1 -1
  421. streamlit/web/server/component_request_handler.py +1 -1
  422. streamlit/web/server/media_file_handler.py +1 -1
  423. streamlit/web/server/oauth_authlib_routes.py +1 -1
  424. streamlit/web/server/oidc_mixin.py +1 -1
  425. streamlit/web/server/routes.py +1 -1
  426. streamlit/web/server/server.py +1 -1
  427. streamlit/web/server/server_util.py +1 -1
  428. streamlit/web/server/stats_request_handler.py +1 -1
  429. streamlit/web/server/upload_file_request_handler.py +1 -1
  430. streamlit/web/server/websocket_headers.py +1 -1
  431. {streamlit_nightly-1.52.3.dev20260101.data → streamlit_nightly-1.52.3.dev20260102.data}/scripts/streamlit.cmd +1 -1
  432. {streamlit_nightly-1.52.3.dev20260101.dist-info → streamlit_nightly-1.52.3.dev20260102.dist-info}/METADATA +1 -1
  433. streamlit_nightly-1.52.3.dev20260102.dist-info/RECORD +630 -0
  434. streamlit/static/static/js/InputInstructions.B-hrhnKS.js +0 -1
  435. streamlit/static/static/js/Particles.C1lQDBme.js +0 -1
  436. streamlit/static/static/js/Toolbar.COFccaTT.js +0 -1
  437. streamlit/static/static/js/index.B-2OnxuC.js +0 -1
  438. streamlit/static/static/js/index.BPDinT9W.js +0 -1
  439. streamlit/static/static/js/index.BWYs56td.js +0 -1
  440. streamlit/static/static/js/index.Bt-J_LLo.js +0 -1
  441. streamlit/static/static/js/index.BukrvZZ2.js +0 -1
  442. streamlit/static/static/js/index.CFRlw_Q4.js +0 -1
  443. streamlit/static/static/js/index.CoOQHuCm.js +0 -1
  444. streamlit/static/static/js/index.D3xfIqy_.js +0 -1
  445. streamlit/static/static/js/index.D67NXgZL.js +0 -1
  446. streamlit/static/static/js/index.DEUimtV1.js +0 -1
  447. streamlit/static/static/js/index.DK27W5ov.js +0 -1
  448. streamlit/static/static/js/index.DWUM7LrZ.js +0 -1
  449. streamlit/static/static/js/index.DaxZAmvz.js +0 -2
  450. streamlit/static/static/js/index.Dq9InAZx.js +0 -1
  451. streamlit/static/static/js/index.DtZbhbEr.js +0 -7
  452. streamlit/static/static/js/index.f-UZuoZE.js +0 -1
  453. streamlit/static/static/js/styled-components.571s8DEN.js +0 -1
  454. streamlit/static/static/js/uniqueId.Cx7-DRlG.js +0 -1
  455. streamlit/static/static/js/withFullScreenWrapper.BBQ6--wm.js +0 -1
  456. streamlit_nightly-1.52.3.dev20260101.dist-info/RECORD +0 -630
  457. {streamlit_nightly-1.52.3.dev20260101.dist-info → streamlit_nightly-1.52.3.dev20260102.dist-info}/WHEEL +0 -0
  458. {streamlit_nightly-1.52.3.dev20260101.dist-info → streamlit_nightly-1.52.3.dev20260102.dist-info}/entry_points.txt +0 -0
  459. {streamlit_nightly-1.52.3.dev20260101.dist-info → streamlit_nightly-1.52.3.dev20260102.dist-info}/top_level.txt +0 -0
@@ -1,2 +1,2 @@
1
- import{K as _,r as u,W as ao,cv as O,ct as co,aM as io,l as lo,j as m,X as U,V as fo,cw as go,F as D,aN as V}from"./index.DQm9mE0T.js";function Co(o,e,r,n){for(var t=-1,s=o==null?0:o.length;++t<s;)r=e(r,o[t],t,o);return r}function xo(o){return function(e){return o?.[e]}}var po={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},ho=xo(po),mo=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,bo="\\u0300-\\u036f",So="\\ufe20-\\ufe2f",yo="\\u20d0-\\u20ff",Ro=bo+So+yo,Eo="["+Ro+"]",Fo=RegExp(Eo,"g");function wo(o){return o=_(o),o&&o.replace(mo,ho).replace(Fo,"")}var vo=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function Bo(o){return o.match(vo)||[]}var ko=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function To(o){return ko.test(o)}var H="\\ud800-\\udfff",zo="\\u0300-\\u036f",Ao="\\ufe20-\\ufe2f",Uo="\\u20d0-\\u20ff",Io=zo+Ao+Uo,J="\\u2700-\\u27bf",Z="a-z\\xdf-\\xf6\\xf8-\\xff",Wo="\\xac\\xb1\\xd7\\xf7",Oo="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Lo="\\u2000-\\u206f",Mo=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",G="A-Z\\xc0-\\xd6\\xd8-\\xde",jo="\\ufe0e\\ufe0f",K=Wo+Oo+Lo+Mo,Y="['’]",L="["+K+"]",$o="["+Io+"]",q="\\d+",No="["+J+"]",X="["+Z+"]",Q="[^"+H+K+q+J+Z+G+"]",Po="\\ud83c[\\udffb-\\udfff]",_o="(?:"+$o+"|"+Po+")",Do="[^"+H+"]",oo="(?:\\ud83c[\\udde6-\\uddff]){2}",eo="[\\ud800-\\udbff][\\udc00-\\udfff]",w="["+G+"]",Vo="\\u200d",M="(?:"+X+"|"+Q+")",Ho="(?:"+w+"|"+Q+")",j="(?:"+Y+"(?:d|ll|m|re|s|t|ve))?",$="(?:"+Y+"(?:D|LL|M|RE|S|T|VE))?",ro=_o+"?",to="["+jo+"]?",Jo="(?:"+Vo+"(?:"+[Do,oo,eo].join("|")+")"+to+ro+")*",Zo="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Go="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Ko=to+ro+Jo,Yo="(?:"+[No,oo,eo].join("|")+")"+Ko,qo=RegExp([w+"?"+X+"+"+j+"(?="+[L,w,"$"].join("|")+")",Ho+"+"+$+"(?="+[L,w+M,"$"].join("|")+")",w+"?"+M+"+"+j,w+"+"+$,Go,Zo,q,Yo].join("|"),"g");function Xo(o){return o.match(qo)||[]}function Qo(o,e,r){return o=_(o),e=e,e===void 0?To(o)?Xo(o):Bo(o):o.match(e)||[]}var oe="['’]",ee=RegExp(oe,"g");function re(o){return function(e){return Co(Qo(wo(e).replace(ee,"")),o,"")}}var te=re(function(o,e,r){return o+(r?"-":"")+e.toLowerCase()});const B=u.createContext(null);B.displayName="BidiComponentContext";const v=ao.getLogger("BidiComponent"),N="__",z="__streamlit_arrow_ref__",ne="$$STREAMLIT_INTERNAL_KEY",se=(o,e)=>{if(o&&typeof o=="object"&&!Array.isArray(o)){if(typeof o[z]=="string"){const n=o[z],t=e[n];if(t)try{return O(t)}catch{return null}return null}const r={};for(const[n,t]of Object.entries(o))if(t&&typeof t=="object"&&!Array.isArray(t)&&typeof t[z]=="string"){const s=t[z],a=e[s];if(a)try{r[n]=O(a)}catch{r[n]=null}else r[n]=null}else r[n]=t;return r}return o},ue=({arrowBlobs:o,arrowData:e,bytes:r,data:n,json:t,mixedJson:s})=>{switch(n){case"json":return t?JSON.parse(t):null;case"arrowData":return e??null;case"bytes":return r??null;case"mixed":{if(s&&o){const a=JSON.parse(s),i={};return Object.entries(o).forEach(([l,d])=>{d?.data&&(i[l]=d.data)}),se(a,i)}return null}case"any":case void 0:return null;default:co(n)}},ae=(o,e="--st")=>{const r={};return Object.entries(o).forEach(([n,t])=>{const s=te(n),a=`${e}-${s}`;if(typeof t=="boolean"){r[a]=t?"1":"0";return}if(t==null){r[a]="unset";return}if(Array.isArray(t)){r[a]=t.join(",");return}if(typeof t=="number"||typeof t=="string"){r[a]=String(t);return}r[a]="unset"}),r},ce=o=>{const e=[o.fontSizes.h1FontSize,o.fontSizes.h2FontSize,o.fontSizes.h3FontSize,o.fontSizes.h4FontSize,o.fontSizes.h5FontSize,o.fontSizes.h6FontSize],r=[o.fontWeights.h1FontWeight,o.fontWeights.h2FontWeight,o.fontWeights.h3FontWeight,o.fontWeights.h4FontWeight,o.fontWeights.h5FontWeight,o.fontWeights.h6FontWeight];return{primaryColor:o.colors.primary,backgroundColor:o.colors.bgColor,secondaryBackgroundColor:o.colors.secondaryBg,textColor:o.colors.bodyText,linkColor:o.colors.link,linkUnderline:o.linkUnderline,headingFont:o.genericFonts.headingFont,codeFont:o.genericFonts.codeFont,baseRadius:o.radii.default,buttonRadius:o.radii.button,baseFontSize:typeof o.fontSizes.baseFontSize=="number"?`${o.fontSizes.baseFontSize}px`:String(o.fontSizes.baseFontSize),baseFontWeight:o.fontWeights.normal,codeFontWeight:o.fontWeights.code,codeFontSize:o.fontSizes.codeFontSize,headingFontSizes:e,headingFontSize1:e[0],headingFontSize2:e[1],headingFontSize3:e[2],headingFontSize4:e[3],headingFontSize5:e[4],headingFontSize6:e[5],headingFontWeights:r,headingFontWeight1:r[0],headingFontWeight2:r[1],headingFontWeight3:r[2],headingFontWeight4:r[3],headingFontWeight5:r[4],headingFontWeight6:r[5],borderColor:o.colors.borderColor,dataframeBorderColor:o.colors.dataframeBorderColor,dataframeHeaderBackgroundColor:o.colors.dataframeHeaderBackgroundColor,codeBackgroundColor:o.colors.codeBackgroundColor,font:o.genericFonts.bodyFont,chartCategoricalColors:o.colors.chartCategoricalColors,chartSequentialColors:o.colors.chartSequentialColors,headingColor:o.colors.headingColor,borderColorLight:o.colors.borderColorLight,codeTextColor:o.colors.codeTextColor,widgetBorderColor:o.colors.widgetBorderColor||"transparent",redColor:o.colors.redColor,orangeColor:o.colors.orangeColor,yellowColor:o.colors.yellowColor,blueColor:o.colors.blueColor,greenColor:o.colors.greenColor,violetColor:o.colors.violetColor,grayColor:o.colors.grayColor,redBackgroundColor:o.colors.redBackgroundColor,orangeBackgroundColor:o.colors.orangeBackgroundColor,yellowBackgroundColor:o.colors.yellowBackgroundColor,blueBackgroundColor:o.colors.blueBackgroundColor,greenBackgroundColor:o.colors.greenBackgroundColor,violetBackgroundColor:o.colors.violetBackgroundColor,grayBackgroundColor:o.colors.grayBackgroundColor,redTextColor:o.colors.redTextColor,orangeTextColor:o.colors.orangeTextColor,yellowTextColor:o.colors.yellowTextColor,blueTextColor:o.colors.blueTextColor,greenTextColor:o.colors.greenTextColor,violetTextColor:o.colors.violetTextColor,grayTextColor:o.colors.grayTextColor}},ie=u.memo(({element:o,children:e,widgetMgr:r,fragmentId:n,componentRegistry:t})=>{const{arrowData:s,bytes:a,componentName:i,cssContent:l,cssSourcePath:d,data:f,htmlContent:g,id:c,jsContent:b,json:p,jsSourcePath:h,mixed:C}=o,R=u.useMemo(()=>({id:o.id,formId:o.formId}),[o.id,o.formId]),k=u.useCallback(()=>{const F=r.getJsonValue(R);if(!F)return{};try{return JSON.parse(F)}catch(I){const y=io(I);return v.warn("Failed to parse widget JSON value; returning empty object.",{widgetId:R.id,formId:R.formId,error:y.message}),{}}},[R,r]),T=u.useMemo(()=>ue({arrowBlobs:C?.arrowBlobs||void 0,arrowData:s?.data||void 0,bytes:a,data:f,json:p,mixedJson:C?.json||void 0}),[f,p,s?.data,a,C?.json,C?.arrowBlobs]),S=lo(),E=u.useMemo(()=>ce(S),[S]),x=u.useMemo(()=>({componentName:i,componentRegistry:t,cssContent:l?.trim(),cssSourcePath:d||void 0,data:T,fragmentId:n,getWidgetValue:k,htmlContent:g?.trim(),id:c,formId:o.formId||void 0,jsContent:b||void 0,jsSourcePath:h||void 0,theme:E,widgetMgr:r}),[i,t,l,d,n,k,g,c,o.formId,b,h,T,E,r]);return m(B.Provider,{value:x,children:e})}),no=(o,e)=>{if(o instanceof Error)return o;const r=e?`${e}: ${String(o)}`:String(o);return new Error(r)},A=(o,e,r)=>{const n=no(o,r);v.error(`BidiComponent Error: ${n.message}`,o),e(n)},de=(o,e)=>{try{const n=document.createRange().createContextualFragment(o);e.appendChild(n)}catch(r){v.warn("createContextualFragment failed, falling back to innerHTML",r),e.innerHTML=o}},so=({containerRef:o,setError:e,skip:r=!1})=>{const n=u.useRef(null),{htmlContent:t,cssContent:s,cssSourcePath:a,componentName:i,componentRegistry:{getBidiComponentURL:l}}=U(B),d=u.useMemo(()=>{if(a)return l(i,a)},[i,a,l]),f=fo(d);return u.useEffect(()=>{if(r)return;const g=o.current;if(g)try{if(n.current?.parentNode===g&&g.removeChild(n.current),n.current=document.createElement("div"),t){const c=document.createElement("div");de(t,c),n.current.appendChild(c)}if(s){const c=document.createElement("style");c.textContent=s,n.current.appendChild(c)}else if(d){const c=document.createElement("link");c.href=d,c.rel="stylesheet",f&&(c.crossOrigin=f),c.onerror=()=>{A(new Error(`Failed to load CSS from ${d}`),e)},n.current.appendChild(c)}g.appendChild(n.current)}catch(c){A(c,e,"Failed to process HTML/CSS content")}},[t,s,o,f,d,e,r]),n};class le{constructor(){this.hashSeed=2166136261,this.hashPrime=16777619,this.cache=new Map}computeHash(e){let r=this.hashSeed;for(let n=0;n<e.length;n++)r^=e.charCodeAt(n),r=Math.imul(r>>>0,this.hashPrime)>>>0;return(r>>>0).toString(16)}getOrCreateUrlForJs(e,r){const n=this.computeHash(e),t=this.cache.get(n);if(t)return{url:t,hash:n};const s=`${e}
2
- //# sourceURL=${r}-${n}.js`,a=new Blob([s],{type:"text/javascript"}),i=URL.createObjectURL(a);return this.cache.set(n,i),{url:i,hash:n}}}const fe=new le,ge="events";function Ce(o){if(o.includes(N))throw new Error("Base component id must not contain the delimiter sequence");return`${ne}_${o}${N}${ge}`}const P=async({componentId:o,componentIdForWidgetMgr:e,componentName:r,data:n,formId:t,fragmentId:s,getWidgetValue:a,moduleUrl:i,parentElement:l,widgetMgr:d})=>{const f=await import(i);if(!f)throw new Error("JS module does not exist.");if(!f.default||typeof f.default!="function")throw new Error("JS module does not have a default export function.");const g=(b,p)=>{let h={};try{h={...a(),[b]:p}}catch(C){v.error(`Failed to get existing value for ${b}`,C),h={[b]:p}}d.setJsonValue({id:e,formId:t},h,{fromUi:!0},s)},c=(b,p)=>{if(t){v.warn("BidiComponent: setTriggerValue ignored inside st.form. Triggers are not allowed in forms; use setStateValue and form submit instead.");return}const h=Ce(e);d.setTriggerValue({id:h,formId:t},{fromUi:!0},s,{event:b,value:p})};return f.default({name:r,data:n,key:o,parentElement:l,setStateValue:g,setTriggerValue:c})},uo=({containerRef:o,setError:e,skip:r=!1})=>{const t=`st-bidi-component-${u.useMemo(()=>go(),[])}`,{componentName:s,data:a,formId:i,fragmentId:l,getWidgetValue:d,id:f,jsContent:g,jsSourcePath:c,theme:b,widgetMgr:p,componentRegistry:{getBidiComponentURL:h}}=U(B),C=u.useMemo(()=>{if(c)return h(s,c)},[s,c,h]),R=u.useRef(),k=u.useRef(),T=u.useRef(!1);u.useEffect(()=>{const{current:S}=o;if(r||!g&&!C||!S)return;(async()=>{try{if(g){const{url:x}=fe.getOrCreateUrlForJs(g,`st-bidi-${s}`);R.current=await P({componentId:t,componentIdForWidgetMgr:f,componentName:s,data:a,formId:i,fragmentId:l,getWidgetValue:d,moduleUrl:x,parentElement:S,widgetMgr:p})}else if(C){const x=C;try{await new Promise((F,I)=>{const y=document.createElement("script");y.type="module",y.src=x,y.async=!0,y.onload=()=>F(),y.onerror=()=>I(new Error(`Failed to load script from ${C}`)),document.head.appendChild(y),k.current=y}),R.current=await P({componentId:t,componentIdForWidgetMgr:f,componentName:s,data:a,formId:i,fragmentId:l,getWidgetValue:d,moduleUrl:x,parentElement:S,widgetMgr:p})}catch(F){throw no(F,`Failed to load or execute script from ${C}`)}}}catch(x){T.current||A(x,e)}})()},[t,s,o,a,i,l,d,f,g,C,e,r,p,b]),u.useEffect(()=>()=>{T.current=!0;const S=R.current;S&&Promise.resolve(S).then(x=>{x?.()}).catch(x=>{v.error("Failed to run custom component cleanup",x)});const E=k.current;E?.parentNode&&E.parentNode.removeChild(E)},[])},xe=D("div",{target:"e10xsstg0"})(({cssCustomProperties:o})=>({...o,display:"contents"})),W=D("div",{target:"e10xsstg1"})({width:"100%",height:"100%"}),pe=u.memo(()=>{const o=u.useRef(null),e=u.useRef(null),[r,n]=u.useState(!1),[t,s]=u.useState(null),{id:a}=U(B);u.useEffect(()=>{if(o.current)try{if(o.current.shadowRoot){e.current=o.current.shadowRoot,n(!0);return}e.current=o.current.attachShadow({mode:"open"}),n(!0)}catch(l){A(l,s,"Failed to create shadow DOM")}},[a]);const i=!r||!!t;return so({containerRef:e,setError:s,skip:i}),uo({containerRef:e,setError:s,skip:i}),t?m(V,{name:"BidiComponent Error",message:t.message,stack:t.stack}):m(W,{ref:o,"data-testid":"stBidiComponentIsolated"})}),he=u.memo(()=>{const o=u.useRef(null),[e,r]=u.useState(null),n=!!e;return so({containerRef:o,setError:r,skip:n}),uo({containerRef:o,setError:r,skip:n}),e?m(V,{name:"BidiComponent Error",message:e.message,stack:e.stack}):m(W,{ref:o,"data-testid":"stBidiComponentRegular"})}),me=({children:o})=>{const{theme:e}=U(B),r=u.useMemo(()=>ae(e),[e]);return m(xe,{cssCustomProperties:r,children:o})},be=({element:o,widgetMgr:e,fragmentId:r,componentRegistry:n})=>{const{isolateStyles:t}=o;return m(ie,{element:o,widgetMgr:e,fragmentId:r,componentRegistry:n,children:m(W,{className:"stBidiComponent",children:m(me,{children:t?m(pe,{}):m(he,{})})})})},ye=u.memo(be);export{B as BidiComponentContext,ye as default};
1
+ import{K as _,r as u,W as ao,cv as O,ct as co,aM as io,l as lo,j as m,X as U,V as fo,cw as go,F as D,aN as V}from"./index.ayxJkxJS.js";function Co(o,e,r,n){for(var t=-1,s=o==null?0:o.length;++t<s;)r=e(r,o[t],t,o);return r}function xo(o){return function(e){return o?.[e]}}var po={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},ho=xo(po),mo=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,bo="\\u0300-\\u036f",So="\\ufe20-\\ufe2f",yo="\\u20d0-\\u20ff",Ro=bo+So+yo,Eo="["+Ro+"]",Fo=RegExp(Eo,"g");function wo(o){return o=_(o),o&&o.replace(mo,ho).replace(Fo,"")}var vo=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function ko(o){return o.match(vo)||[]}var Bo=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function To(o){return Bo.test(o)}var H="\\ud800-\\udfff",zo="\\u0300-\\u036f",Ao="\\ufe20-\\ufe2f",Uo="\\u20d0-\\u20ff",Io=zo+Ao+Uo,J="\\u2700-\\u27bf",Z="a-z\\xdf-\\xf6\\xf8-\\xff",Wo="\\xac\\xb1\\xd7\\xf7",Oo="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Lo="\\u2000-\\u206f",Mo=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",G="A-Z\\xc0-\\xd6\\xd8-\\xde",jo="\\ufe0e\\ufe0f",K=Wo+Oo+Lo+Mo,Y="['’]",L="["+K+"]",$o="["+Io+"]",q="\\d+",No="["+J+"]",X="["+Z+"]",Q="[^"+H+K+q+J+Z+G+"]",Po="\\ud83c[\\udffb-\\udfff]",_o="(?:"+$o+"|"+Po+")",Do="[^"+H+"]",oo="(?:\\ud83c[\\udde6-\\uddff]){2}",eo="[\\ud800-\\udbff][\\udc00-\\udfff]",w="["+G+"]",Vo="\\u200d",M="(?:"+X+"|"+Q+")",Ho="(?:"+w+"|"+Q+")",j="(?:"+Y+"(?:d|ll|m|re|s|t|ve))?",$="(?:"+Y+"(?:D|LL|M|RE|S|T|VE))?",ro=_o+"?",to="["+jo+"]?",Jo="(?:"+Vo+"(?:"+[Do,oo,eo].join("|")+")"+to+ro+")*",Zo="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Go="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Ko=to+ro+Jo,Yo="(?:"+[No,oo,eo].join("|")+")"+Ko,qo=RegExp([w+"?"+X+"+"+j+"(?="+[L,w,"$"].join("|")+")",Ho+"+"+$+"(?="+[L,w+M,"$"].join("|")+")",w+"?"+M+"+"+j,w+"+"+$,Go,Zo,q,Yo].join("|"),"g");function Xo(o){return o.match(qo)||[]}function Qo(o,e,r){return o=_(o),e=e,e===void 0?To(o)?Xo(o):ko(o):o.match(e)||[]}var oe="['’]",ee=RegExp(oe,"g");function re(o){return function(e){return Co(Qo(wo(e).replace(ee,"")),o,"")}}var te=re(function(o,e,r){return o+(r?"-":"")+e.toLowerCase()});const k=u.createContext(null);k.displayName="BidiComponentContext";const v=ao.getLogger("BidiComponent"),N="__",z="__streamlit_arrow_ref__",ne="$$STREAMLIT_INTERNAL_KEY",se=(o,e)=>{if(o&&typeof o=="object"&&!Array.isArray(o)){if(typeof o[z]=="string"){const n=o[z],t=e[n];if(t)try{return O(t)}catch{return null}return null}const r={};for(const[n,t]of Object.entries(o))if(t&&typeof t=="object"&&!Array.isArray(t)&&typeof t[z]=="string"){const s=t[z],a=e[s];if(a)try{r[n]=O(a)}catch{r[n]=null}else r[n]=null}else r[n]=t;return r}return o},ue=({arrowBlobs:o,arrowData:e,bytes:r,data:n,json:t,mixedJson:s})=>{switch(n){case"json":return t?JSON.parse(t):null;case"arrowData":return e??null;case"bytes":return r??null;case"mixed":{if(s&&o){const a=JSON.parse(s),i={};return Object.entries(o).forEach(([l,d])=>{d?.data&&(i[l]=d.data)}),se(a,i)}return null}case"any":case void 0:return null;default:co(n)}},ae=(o,e="--st")=>{const r={};return Object.entries(o).forEach(([n,t])=>{const s=te(n),a=`${e}-${s}`;if(typeof t=="boolean"){r[a]=t?"1":"0";return}if(t==null){r[a]="unset";return}if(Array.isArray(t)){r[a]=t.join(",");return}if(typeof t=="number"||typeof t=="string"){r[a]=String(t);return}r[a]="unset"}),r},ce=o=>{const e=[o.fontSizes.h1FontSize,o.fontSizes.h2FontSize,o.fontSizes.h3FontSize,o.fontSizes.h4FontSize,o.fontSizes.h5FontSize,o.fontSizes.h6FontSize],r=[o.fontWeights.h1FontWeight,o.fontWeights.h2FontWeight,o.fontWeights.h3FontWeight,o.fontWeights.h4FontWeight,o.fontWeights.h5FontWeight,o.fontWeights.h6FontWeight];return{primaryColor:o.colors.primary,backgroundColor:o.colors.bgColor,secondaryBackgroundColor:o.colors.secondaryBg,textColor:o.colors.bodyText,linkColor:o.colors.link,linkUnderline:o.linkUnderline,headingFont:o.genericFonts.headingFont,codeFont:o.genericFonts.codeFont,baseRadius:o.radii.default,buttonRadius:o.radii.button,baseFontSize:typeof o.fontSizes.baseFontSize=="number"?`${o.fontSizes.baseFontSize}px`:String(o.fontSizes.baseFontSize),baseFontWeight:o.fontWeights.normal,codeFontWeight:o.fontWeights.code,codeFontSize:o.fontSizes.codeFontSize,headingFontSizes:e,headingFontSize1:e[0],headingFontSize2:e[1],headingFontSize3:e[2],headingFontSize4:e[3],headingFontSize5:e[4],headingFontSize6:e[5],headingFontWeights:r,headingFontWeight1:r[0],headingFontWeight2:r[1],headingFontWeight3:r[2],headingFontWeight4:r[3],headingFontWeight5:r[4],headingFontWeight6:r[5],borderColor:o.colors.borderColor,dataframeBorderColor:o.colors.dataframeBorderColor,dataframeHeaderBackgroundColor:o.colors.dataframeHeaderBackgroundColor,codeBackgroundColor:o.colors.codeBackgroundColor,font:o.genericFonts.bodyFont,chartCategoricalColors:o.colors.chartCategoricalColors,chartSequentialColors:o.colors.chartSequentialColors,headingColor:o.colors.headingColor,borderColorLight:o.colors.borderColorLight,codeTextColor:o.colors.codeTextColor,widgetBorderColor:o.colors.widgetBorderColor||"transparent",redColor:o.colors.redColor,orangeColor:o.colors.orangeColor,yellowColor:o.colors.yellowColor,blueColor:o.colors.blueColor,greenColor:o.colors.greenColor,violetColor:o.colors.violetColor,grayColor:o.colors.grayColor,redBackgroundColor:o.colors.redBackgroundColor,orangeBackgroundColor:o.colors.orangeBackgroundColor,yellowBackgroundColor:o.colors.yellowBackgroundColor,blueBackgroundColor:o.colors.blueBackgroundColor,greenBackgroundColor:o.colors.greenBackgroundColor,violetBackgroundColor:o.colors.violetBackgroundColor,grayBackgroundColor:o.colors.grayBackgroundColor,redTextColor:o.colors.redTextColor,orangeTextColor:o.colors.orangeTextColor,yellowTextColor:o.colors.yellowTextColor,blueTextColor:o.colors.blueTextColor,greenTextColor:o.colors.greenTextColor,violetTextColor:o.colors.violetTextColor,grayTextColor:o.colors.grayTextColor}},ie=u.memo(({element:o,children:e,widgetMgr:r,fragmentId:n,componentRegistry:t})=>{const{arrowData:s,bytes:a,componentName:i,cssContent:l,cssSourcePath:d,data:f,htmlContent:g,id:c,jsContent:b,json:p,jsSourcePath:h,mixed:C}=o,R=u.useMemo(()=>({id:o.id,formId:o.formId}),[o.id,o.formId]),B=u.useCallback(()=>{const F=r.getJsonValue(R);if(!F)return{};try{return JSON.parse(F)}catch(I){const y=io(I);return v.warn("Failed to parse widget JSON value; returning empty object.",{widgetId:R.id,formId:R.formId,error:y.message}),{}}},[R,r]),T=u.useMemo(()=>ue({arrowBlobs:C?.arrowBlobs||void 0,arrowData:s?.data||void 0,bytes:a,data:f,json:p,mixedJson:C?.json||void 0}),[f,p,s?.data,a,C?.json,C?.arrowBlobs]),S=lo(),E=u.useMemo(()=>ce(S),[S]),x=u.useMemo(()=>({componentName:i,componentRegistry:t,cssContent:l?.trim(),cssSourcePath:d||void 0,data:T,fragmentId:n,getWidgetValue:B,htmlContent:g?.trim(),id:c,formId:o.formId||void 0,jsContent:b||void 0,jsSourcePath:h||void 0,theme:E,widgetMgr:r}),[i,t,l,d,n,B,g,c,o.formId,b,h,T,E,r]);return m(k.Provider,{value:x,children:e})}),no=(o,e)=>{if(o instanceof Error)return o;const r=e?`${e}: ${String(o)}`:String(o);return new Error(r)},A=(o,e,r)=>{const n=no(o,r);v.error(`BidiComponent Error: ${n.message}`,o),e(n)},de=(o,e)=>{try{const n=document.createRange().createContextualFragment(o);e.appendChild(n)}catch(r){v.warn("createContextualFragment failed, falling back to innerHTML",r),e.innerHTML=o}},so=({containerRef:o,setError:e,skip:r=!1})=>{const n=u.useRef(null),{htmlContent:t,cssContent:s,cssSourcePath:a,componentName:i,componentRegistry:{getBidiComponentURL:l}}=U(k),d=u.useMemo(()=>{if(a)return l(i,a)},[i,a,l]),f=fo(d);return u.useEffect(()=>{if(r)return;const g=o.current;if(g)try{if(n.current?.parentNode===g&&g.removeChild(n.current),n.current=document.createElement("div"),t){const c=document.createElement("div");de(t,c),n.current.appendChild(c)}if(s){const c=document.createElement("style");c.textContent=s,n.current.appendChild(c)}else if(d){const c=document.createElement("link");c.href=d,c.rel="stylesheet",f&&(c.crossOrigin=f),c.onerror=()=>{A(new Error(`Failed to load CSS from ${d}`),e)},n.current.appendChild(c)}g.appendChild(n.current)}catch(c){A(c,e,"Failed to process HTML/CSS content")}},[t,s,o,f,d,e,r]),n};class le{constructor(){this.hashSeed=2166136261,this.hashPrime=16777619,this.cache=new Map}computeHash(e){let r=this.hashSeed;for(let n=0;n<e.length;n++)r^=e.charCodeAt(n),r=Math.imul(r>>>0,this.hashPrime)>>>0;return(r>>>0).toString(16)}getOrCreateUrlForJs(e,r){const n=this.computeHash(e),t=this.cache.get(n);if(t)return{url:t,hash:n};const s=`${e}
2
+ //# sourceURL=${r}-${n}.js`,a=new Blob([s],{type:"text/javascript"}),i=URL.createObjectURL(a);return this.cache.set(n,i),{url:i,hash:n}}}const fe=new le,ge="events";function Ce(o){if(o.includes(N))throw new Error("Base component id must not contain the delimiter sequence");return`${ne}_${o}${N}${ge}`}const P=async({componentId:o,componentIdForWidgetMgr:e,componentName:r,data:n,formId:t,fragmentId:s,getWidgetValue:a,moduleUrl:i,parentElement:l,widgetMgr:d})=>{const f=await import(i);if(!f)throw new Error("JS module does not exist.");if(!f.default||typeof f.default!="function")throw new Error("JS module does not have a default export function.");const g=(b,p)=>{let h={};try{h={...a(),[b]:p}}catch(C){v.error(`Failed to get existing value for ${b}`,C),h={[b]:p}}d.setJsonValue({id:e,formId:t},h,{fromUi:!0},s)},c=(b,p)=>{if(t){v.warn("BidiComponent: setTriggerValue ignored inside st.form. Triggers are not allowed in forms; use setStateValue and form submit instead.");return}const h=Ce(e);d.setTriggerValue({id:h,formId:t},{fromUi:!0},s,{event:b,value:p})};return f.default({name:r,data:n,key:o,parentElement:l,setStateValue:g,setTriggerValue:c})},uo=({containerRef:o,setError:e,skip:r=!1})=>{const t=`st-bidi-component-${u.useMemo(()=>go(),[])}`,{componentName:s,data:a,formId:i,fragmentId:l,getWidgetValue:d,id:f,jsContent:g,jsSourcePath:c,theme:b,widgetMgr:p,componentRegistry:{getBidiComponentURL:h}}=U(k),C=u.useMemo(()=>{if(c)return h(s,c)},[s,c,h]),R=u.useRef(),B=u.useRef(),T=u.useRef(!1);u.useEffect(()=>{const{current:S}=o;if(r||!g&&!C||!S)return;(async()=>{try{if(g){const{url:x}=fe.getOrCreateUrlForJs(g,`st-bidi-${s}`);R.current=await P({componentId:t,componentIdForWidgetMgr:f,componentName:s,data:a,formId:i,fragmentId:l,getWidgetValue:d,moduleUrl:x,parentElement:S,widgetMgr:p})}else if(C){const x=C;try{await new Promise((F,I)=>{const y=document.createElement("script");y.type="module",y.src=x,y.async=!0,y.onload=()=>F(),y.onerror=()=>I(new Error(`Failed to load script from ${C}`)),document.head.appendChild(y),B.current=y}),R.current=await P({componentId:t,componentIdForWidgetMgr:f,componentName:s,data:a,formId:i,fragmentId:l,getWidgetValue:d,moduleUrl:x,parentElement:S,widgetMgr:p})}catch(F){throw no(F,`Failed to load or execute script from ${C}`)}}}catch(x){T.current||A(x,e)}})()},[t,s,o,a,i,l,d,f,g,C,e,r,p,b]),u.useEffect(()=>()=>{T.current=!0;const S=R.current;S&&Promise.resolve(S).then(x=>{x?.()}).catch(x=>{v.error("Failed to run custom component cleanup",x)});const E=B.current;E?.parentNode&&E.parentNode.removeChild(E)},[])},xe=D("div",{target:"epzkg1s0"})(({cssCustomProperties:o})=>({...o,display:"contents"})),W=D("div",{target:"epzkg1s1"})({width:"100%",height:"100%"}),pe=u.memo(()=>{const o=u.useRef(null),e=u.useRef(null),[r,n]=u.useState(!1),[t,s]=u.useState(null),{id:a}=U(k);u.useEffect(()=>{if(o.current)try{if(o.current.shadowRoot){e.current=o.current.shadowRoot,n(!0);return}e.current=o.current.attachShadow({mode:"open"}),n(!0)}catch(l){A(l,s,"Failed to create shadow DOM")}},[a]);const i=!r||!!t;return so({containerRef:e,setError:s,skip:i}),uo({containerRef:e,setError:s,skip:i}),t?m(V,{name:"BidiComponent Error",message:t.message,stack:t.stack}):m(W,{ref:o,"data-testid":"stBidiComponentIsolated"})}),he=u.memo(()=>{const o=u.useRef(null),[e,r]=u.useState(null),n=!!e;return so({containerRef:o,setError:r,skip:n}),uo({containerRef:o,setError:r,skip:n}),e?m(V,{name:"BidiComponent Error",message:e.message,stack:e.stack}):m(W,{ref:o,"data-testid":"stBidiComponentRegular"})}),me=({children:o})=>{const{theme:e}=U(k),r=u.useMemo(()=>ae(e),[e]);return m(xe,{cssCustomProperties:r,children:o})},be=({element:o,widgetMgr:e,fragmentId:r,componentRegistry:n})=>{const{isolateStyles:t}=o;return m(ie,{element:o,widgetMgr:e,fragmentId:r,componentRegistry:n,children:m(W,{className:"stBidiComponent",children:m(me,{children:t?m(pe,{}):m(he,{})})})})},ye=u.memo(be);export{k as BidiComponentContext,ye as default};