@baishuyun/chat-sdk 0.0.1-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (469) hide show
  1. package/.storybook/main.ts +21 -0
  2. package/.storybook/preview-head.html +1 -0
  3. package/.storybook/preview.ts +16 -0
  4. package/.turbo/turbo-build.log +82 -0
  5. package/components.json +22 -0
  6. package/dist/chat-sdk.js +55613 -0
  7. package/dist/chat-sdk.js.map +1 -0
  8. package/dist/chat-sdk.umd.cjs +661 -0
  9. package/dist/chat-sdk.umd.cjs.map +1 -0
  10. package/dist/chat.d.ts +5 -0
  11. package/dist/chat.d.ts.map +1 -0
  12. package/dist/components/biz-comp/FakeBotMsg.d.ts +7 -0
  13. package/dist/components/biz-comp/FakeBotMsg.d.ts.map +1 -0
  14. package/dist/components/biz-comp/FieldChecker.d.ts +16 -0
  15. package/dist/components/biz-comp/FieldChecker.d.ts.map +1 -0
  16. package/dist/components/biz-comp/FieldCheckerListMsg.d.ts +12 -0
  17. package/dist/components/biz-comp/FieldCheckerListMsg.d.ts.map +1 -0
  18. package/dist/components/biz-comp/FieldValueChecker.d.ts +14 -0
  19. package/dist/components/biz-comp/FieldValueChecker.d.ts.map +1 -0
  20. package/dist/components/biz-comp/SubformFieldsValueChecker.d.ts +20 -0
  21. package/dist/components/biz-comp/SubformFieldsValueChecker.d.ts.map +1 -0
  22. package/dist/components/biz-comp/chat-client.d.ts +13 -0
  23. package/dist/components/biz-comp/chat-client.d.ts.map +1 -0
  24. package/dist/components/biz-comp/chat-frame.d.ts +6 -0
  25. package/dist/components/biz-comp/chat-frame.d.ts.map +1 -0
  26. package/dist/components/biz-comp/conversation.d.ts +10 -0
  27. package/dist/components/biz-comp/conversation.d.ts.map +1 -0
  28. package/dist/components/biz-comp/dock-btn.d.ts +2 -0
  29. package/dist/components/biz-comp/dock-btn.d.ts.map +1 -0
  30. package/dist/components/biz-comp/field-icon.d.ts +5 -0
  31. package/dist/components/biz-comp/field-icon.d.ts.map +1 -0
  32. package/dist/components/biz-comp/markdown-part.d.ts +5 -0
  33. package/dist/components/biz-comp/markdown-part.d.ts.map +1 -0
  34. package/dist/components/biz-comp/markdown.d.ts +5 -0
  35. package/dist/components/biz-comp/markdown.d.ts.map +1 -0
  36. package/dist/components/biz-comp/message-content.d.ts +6 -0
  37. package/dist/components/biz-comp/message-content.d.ts.map +1 -0
  38. package/dist/components/biz-comp/messages.d.ts +3 -0
  39. package/dist/components/biz-comp/messages.d.ts.map +1 -0
  40. package/dist/components/biz-comp/multi-modal-input/attachment-btn.d.ts +9 -0
  41. package/dist/components/biz-comp/multi-modal-input/attachment-btn.d.ts.map +1 -0
  42. package/dist/components/biz-comp/multi-modal-input/clear-btn.d.ts +7 -0
  43. package/dist/components/biz-comp/multi-modal-input/clear-btn.d.ts.map +1 -0
  44. package/dist/components/biz-comp/multi-modal-input/index.d.ts +21 -0
  45. package/dist/components/biz-comp/multi-modal-input/index.d.ts.map +1 -0
  46. package/dist/components/biz-comp/multi-modal-input/preview-attachment.d.ts +12 -0
  47. package/dist/components/biz-comp/multi-modal-input/preview-attachment.d.ts.map +1 -0
  48. package/dist/components/biz-comp/multi-modal-input/prompt-input.d.ts +35 -0
  49. package/dist/components/biz-comp/multi-modal-input/prompt-input.d.ts.map +1 -0
  50. package/dist/components/biz-comp/opening-lines.d.ts +3 -0
  51. package/dist/components/biz-comp/opening-lines.d.ts.map +1 -0
  52. package/dist/components/biz-comp/preview-message-wrapper.d.ts +9 -0
  53. package/dist/components/biz-comp/preview-message-wrapper.d.ts.map +1 -0
  54. package/dist/components/biz-comp/preview-message.d.ts +11 -0
  55. package/dist/components/biz-comp/preview-message.d.ts.map +1 -0
  56. package/dist/components/biz-comp/response.d.ts +6 -0
  57. package/dist/components/biz-comp/response.d.ts.map +1 -0
  58. package/dist/components/biz-comp/suggestions.d.ts +7 -0
  59. package/dist/components/biz-comp/suggestions.d.ts.map +1 -0
  60. package/dist/components/bs-ui/abs-fullscreen-gradient-bg.d.ts +9 -0
  61. package/dist/components/bs-ui/abs-fullscreen-gradient-bg.d.ts.map +1 -0
  62. package/dist/components/bs-ui/attachments-previewer.d.ts +15 -0
  63. package/dist/components/bs-ui/attachments-previewer.d.ts.map +1 -0
  64. package/dist/components/bs-ui/border-color-animation.d.ts +9 -0
  65. package/dist/components/bs-ui/border-color-animation.d.ts.map +1 -0
  66. package/dist/components/bs-ui/bot-avatar-name.d.ts +6 -0
  67. package/dist/components/bs-ui/bot-avatar-name.d.ts.map +1 -0
  68. package/dist/components/bs-ui/bot-icon.d.ts +5 -0
  69. package/dist/components/bs-ui/bot-icon.d.ts.map +1 -0
  70. package/dist/components/bs-ui/bs-icons.d.ts +39 -0
  71. package/dist/components/bs-ui/bs-icons.d.ts.map +1 -0
  72. package/dist/components/bs-ui/card.d.ts +10 -0
  73. package/dist/components/bs-ui/card.d.ts.map +1 -0
  74. package/dist/components/bs-ui/chat-area-header.d.ts +9 -0
  75. package/dist/components/bs-ui/chat-area-header.d.ts.map +1 -0
  76. package/dist/components/bs-ui/collapsible-txt-msg.d.ts +10 -0
  77. package/dist/components/bs-ui/collapsible-txt-msg.d.ts.map +1 -0
  78. package/dist/components/bs-ui/confirm-dialog.d.ts +26 -0
  79. package/dist/components/bs-ui/confirm-dialog.d.ts.map +1 -0
  80. package/dist/components/bs-ui/fields-generating-indicator.d.ts +2 -0
  81. package/dist/components/bs-ui/fields-generating-indicator.d.ts.map +1 -0
  82. package/dist/components/bs-ui/fields-portal.d.ts +8 -0
  83. package/dist/components/bs-ui/fields-portal.d.ts.map +1 -0
  84. package/dist/components/bs-ui/fields-previewer.d.ts +12 -0
  85. package/dist/components/bs-ui/fields-previewer.d.ts.map +1 -0
  86. package/dist/components/bs-ui/font-icon.d.ts +6 -0
  87. package/dist/components/bs-ui/font-icon.d.ts.map +1 -0
  88. package/dist/components/bs-ui/form-info-editor.d.ts +37 -0
  89. package/dist/components/bs-ui/form-info-editor.d.ts.map +1 -0
  90. package/dist/components/bs-ui/generate-animation.d.ts +4 -0
  91. package/dist/components/bs-ui/generate-animation.d.ts.map +1 -0
  92. package/dist/components/bs-ui/icon-btn.d.ts +7 -0
  93. package/dist/components/bs-ui/icon-btn.d.ts.map +1 -0
  94. package/dist/components/bs-ui/line-checker.d.ts +15 -0
  95. package/dist/components/bs-ui/line-checker.d.ts.map +1 -0
  96. package/dist/components/bs-ui/linear-gradient-border-btn.d.ts +10 -0
  97. package/dist/components/bs-ui/linear-gradient-border-btn.d.ts.map +1 -0
  98. package/dist/components/bs-ui/linear-gradient-color-bg-animation.d.ts +8 -0
  99. package/dist/components/bs-ui/linear-gradient-color-bg-animation.d.ts.map +1 -0
  100. package/dist/components/bs-ui/option-item.d.ts +9 -0
  101. package/dist/components/bs-ui/option-item.d.ts.map +1 -0
  102. package/dist/components/bs-ui/previewer-header.d.ts +13 -0
  103. package/dist/components/bs-ui/previewer-header.d.ts.map +1 -0
  104. package/dist/components/bs-ui/primary-confirm-btn.d.ts +7 -0
  105. package/dist/components/bs-ui/primary-confirm-btn.d.ts.map +1 -0
  106. package/dist/components/bs-ui/primary-entry-btn.d.ts +9 -0
  107. package/dist/components/bs-ui/primary-entry-btn.d.ts.map +1 -0
  108. package/dist/components/bs-ui/tab-radio-group.d.ts +16 -0
  109. package/dist/components/bs-ui/tab-radio-group.d.ts.map +1 -0
  110. package/dist/components/bs-ui/tooltip.d.ts +5 -0
  111. package/dist/components/bs-ui/tooltip.d.ts.map +1 -0
  112. package/dist/components/bs-ui/user-txt-msg-bubble.d.ts +6 -0
  113. package/dist/components/bs-ui/user-txt-msg-bubble.d.ts.map +1 -0
  114. package/dist/components/ui/badge.d.ts +10 -0
  115. package/dist/components/ui/badge.d.ts.map +1 -0
  116. package/dist/components/ui/button.d.ts +12 -0
  117. package/dist/components/ui/button.d.ts.map +1 -0
  118. package/dist/components/ui/card.d.ts +9 -0
  119. package/dist/components/ui/card.d.ts.map +1 -0
  120. package/dist/components/ui/checkbox.d.ts +5 -0
  121. package/dist/components/ui/checkbox.d.ts.map +1 -0
  122. package/dist/components/ui/collapsible.d.ts +6 -0
  123. package/dist/components/ui/collapsible.d.ts.map +1 -0
  124. package/dist/components/ui/dialog.d.ts +24 -0
  125. package/dist/components/ui/dialog.d.ts.map +1 -0
  126. package/dist/components/ui/dropdown-menu.d.ts +28 -0
  127. package/dist/components/ui/dropdown-menu.d.ts.map +1 -0
  128. package/dist/components/ui/icons.d.ts +176 -0
  129. package/dist/components/ui/icons.d.ts.map +1 -0
  130. package/dist/components/ui/input-group.d.ts +17 -0
  131. package/dist/components/ui/input-group.d.ts.map +1 -0
  132. package/dist/components/ui/input.d.ts +4 -0
  133. package/dist/components/ui/input.d.ts.map +1 -0
  134. package/dist/components/ui/label.d.ts +6 -0
  135. package/dist/components/ui/label.d.ts.map +1 -0
  136. package/dist/components/ui/one-time-click-btn.d.ts +4 -0
  137. package/dist/components/ui/one-time-click-btn.d.ts.map +1 -0
  138. package/dist/components/ui/select.d.ts +14 -0
  139. package/dist/components/ui/select.d.ts.map +1 -0
  140. package/dist/components/ui/spinner.d.ts +3 -0
  141. package/dist/components/ui/spinner.d.ts.map +1 -0
  142. package/dist/components/ui/tabs.d.ts +8 -0
  143. package/dist/components/ui/tabs.d.ts.map +1 -0
  144. package/dist/components/ui/textarea.d.ts +4 -0
  145. package/dist/components/ui/textarea.d.ts.map +1 -0
  146. package/dist/components/ui/tooltip.d.ts +8 -0
  147. package/dist/components/ui/tooltip.d.ts.map +1 -0
  148. package/dist/components/web-comp/fields-previewer-web-component.d.ts +61 -0
  149. package/dist/components/web-comp/fields-previewer-web-component.d.ts.map +1 -0
  150. package/dist/const/index.d.ts +4 -0
  151. package/dist/const/index.d.ts.map +1 -0
  152. package/dist/const/ui.d.ts +4 -0
  153. package/dist/const/ui.d.ts.map +1 -0
  154. package/dist/hooks/use-evt-bus.d.ts +2 -0
  155. package/dist/hooks/use-evt-bus.d.ts.map +1 -0
  156. package/dist/hooks/use-evt.d.ts +3 -0
  157. package/dist/hooks/use-evt.d.ts.map +1 -0
  158. package/dist/hooks/use-frame-mode.d.ts +5 -0
  159. package/dist/hooks/use-frame-mode.d.ts.map +1 -0
  160. package/dist/hooks/use-plugin-component.d.ts +5 -0
  161. package/dist/hooks/use-plugin-component.d.ts.map +1 -0
  162. package/dist/hooks/use-plugin-ctx.d.ts +3 -0
  163. package/dist/hooks/use-plugin-ctx.d.ts.map +1 -0
  164. package/dist/hooks/use-plugin-custom-components.d.ts +4 -0
  165. package/dist/hooks/use-plugin-custom-components.d.ts.map +1 -0
  166. package/dist/hooks/use-plugin-life-cycle-chain-runner.d.ts +5 -0
  167. package/dist/hooks/use-plugin-life-cycle-chain-runner.d.ts.map +1 -0
  168. package/dist/hooks/use-plugin-list.d.ts +2 -0
  169. package/dist/hooks/use-plugin-list.d.ts.map +1 -0
  170. package/dist/hooks/use-plugin.d.ts +2 -0
  171. package/dist/hooks/use-plugin.d.ts.map +1 -0
  172. package/dist/hooks/use-shadow.d.ts +25 -0
  173. package/dist/hooks/use-shadow.d.ts.map +1 -0
  174. package/dist/index.css +1 -0
  175. package/dist/index.d.ts +6 -0
  176. package/dist/index.d.ts.map +1 -0
  177. package/dist/lib/event-emitter.d.ts +39 -0
  178. package/dist/lib/event-emitter.d.ts.map +1 -0
  179. package/dist/lib/utils.d.ts +30 -0
  180. package/dist/lib/utils.d.ts.map +1 -0
  181. package/dist/plugins/form-builder-base-plugin/const.d.ts +3 -0
  182. package/dist/plugins/form-builder-base-plugin/const.d.ts.map +1 -0
  183. package/dist/plugins/form-builder-base-plugin/index.d.ts +7 -0
  184. package/dist/plugins/form-builder-base-plugin/index.d.ts.map +1 -0
  185. package/dist/plugins/form-builder-base-plugin/types.d.ts +12 -0
  186. package/dist/plugins/form-builder-base-plugin/types.d.ts.map +1 -0
  187. package/dist/plugins/form-filling-plugin/components/FormFillingOpeningLines.d.ts +2 -0
  188. package/dist/plugins/form-filling-plugin/components/FormFillingOpeningLines.d.ts.map +1 -0
  189. package/dist/plugins/form-filling-plugin/components/avatar.d.ts +5 -0
  190. package/dist/plugins/form-filling-plugin/components/avatar.d.ts.map +1 -0
  191. package/dist/plugins/form-filling-plugin/components/entry-btn.d.ts +3 -0
  192. package/dist/plugins/form-filling-plugin/components/entry-btn.d.ts.map +1 -0
  193. package/dist/plugins/form-filling-plugin/components/msg-part.d.ts +3 -0
  194. package/dist/plugins/form-filling-plugin/components/msg-part.d.ts.map +1 -0
  195. package/dist/plugins/form-filling-plugin/const.d.ts +612 -0
  196. package/dist/plugins/form-filling-plugin/const.d.ts.map +1 -0
  197. package/dist/plugins/form-filling-plugin/index.d.ts +13 -0
  198. package/dist/plugins/form-filling-plugin/index.d.ts.map +1 -0
  199. package/dist/plugins/form-filling-plugin/types.d.ts +8 -0
  200. package/dist/plugins/form-filling-plugin/types.d.ts.map +1 -0
  201. package/dist/plugins/form-filling-plugin/utils.d.ts +4 -0
  202. package/dist/plugins/form-filling-plugin/utils.d.ts.map +1 -0
  203. package/dist/plugins/general-model-form-builder-plugin/components/confirmer.d.ts +9 -0
  204. package/dist/plugins/general-model-form-builder-plugin/components/confirmer.d.ts.map +1 -0
  205. package/dist/plugins/general-model-form-builder-plugin/components/ghost-evt-dispatcher.d.ts +10 -0
  206. package/dist/plugins/general-model-form-builder-plugin/components/ghost-evt-dispatcher.d.ts.map +1 -0
  207. package/dist/plugins/general-model-form-builder-plugin/components/msg-part.d.ts +3 -0
  208. package/dist/plugins/general-model-form-builder-plugin/components/msg-part.d.ts.map +1 -0
  209. package/dist/plugins/general-model-form-builder-plugin/components/new-confirmer.d.ts +10 -0
  210. package/dist/plugins/general-model-form-builder-plugin/components/new-confirmer.d.ts.map +1 -0
  211. package/dist/plugins/general-model-form-builder-plugin/const.d.ts +3 -0
  212. package/dist/plugins/general-model-form-builder-plugin/const.d.ts.map +1 -0
  213. package/dist/plugins/general-model-form-builder-plugin/index.d.ts +9 -0
  214. package/dist/plugins/general-model-form-builder-plugin/index.d.ts.map +1 -0
  215. package/dist/plugins/general-model-form-builder-plugin/types.d.ts +3 -0
  216. package/dist/plugins/general-model-form-builder-plugin/types.d.ts.map +1 -0
  217. package/dist/plugins/mcp-form-builder-plugin/components/create-form-confirm.d.ts +7 -0
  218. package/dist/plugins/mcp-form-builder-plugin/components/create-form-confirm.d.ts.map +1 -0
  219. package/dist/plugins/mcp-form-builder-plugin/components/entry-btn.d.ts +3 -0
  220. package/dist/plugins/mcp-form-builder-plugin/components/entry-btn.d.ts.map +1 -0
  221. package/dist/plugins/mcp-form-builder-plugin/components/follow-up.d.ts +3 -0
  222. package/dist/plugins/mcp-form-builder-plugin/components/follow-up.d.ts.map +1 -0
  223. package/dist/plugins/mcp-form-builder-plugin/components/msg-part.d.ts +3 -0
  224. package/dist/plugins/mcp-form-builder-plugin/components/msg-part.d.ts.map +1 -0
  225. package/dist/plugins/mcp-form-builder-plugin/const/index.d.ts +12 -0
  226. package/dist/plugins/mcp-form-builder-plugin/const/index.d.ts.map +1 -0
  227. package/dist/plugins/mcp-form-builder-plugin/hooks/index.d.ts +1 -0
  228. package/dist/plugins/mcp-form-builder-plugin/hooks/index.d.ts.map +1 -0
  229. package/dist/plugins/mcp-form-builder-plugin/hooks/use-fields-confirmed.d.ts +2 -0
  230. package/dist/plugins/mcp-form-builder-plugin/hooks/use-fields-confirmed.d.ts.map +1 -0
  231. package/dist/plugins/mcp-form-builder-plugin/index.d.ts +23 -0
  232. package/dist/plugins/mcp-form-builder-plugin/index.d.ts.map +1 -0
  233. package/dist/plugins/mcp-form-builder-plugin/types.d.ts +17 -0
  234. package/dist/plugins/mcp-form-builder-plugin/types.d.ts.map +1 -0
  235. package/dist/plugins/mcp-form-builder-plugin/utils/index.d.ts +51 -0
  236. package/dist/plugins/mcp-form-builder-plugin/utils/index.d.ts.map +1 -0
  237. package/dist/sdk.impl.d.ts +21 -0
  238. package/dist/sdk.impl.d.ts.map +1 -0
  239. package/dist/store/context.d.ts +12 -0
  240. package/dist/store/context.d.ts.map +1 -0
  241. package/dist/store/index.d.ts +13 -0
  242. package/dist/store/index.d.ts.map +1 -0
  243. package/dist/stories/AbsFullscreenGradientBg.stories.d.ts +17 -0
  244. package/dist/stories/AbsFullscreenGradientBg.stories.d.ts.map +1 -0
  245. package/dist/stories/AttachmentsPreviewer.stories.d.ts +16 -0
  246. package/dist/stories/AttachmentsPreviewer.stories.d.ts.map +1 -0
  247. package/dist/stories/BorderColorAnimation.stories.d.ts +24 -0
  248. package/dist/stories/BorderColorAnimation.stories.d.ts.map +1 -0
  249. package/dist/stories/BotAvatarAndName.stories.d.ts +18 -0
  250. package/dist/stories/BotAvatarAndName.stories.d.ts.map +1 -0
  251. package/dist/stories/BotIcon.stories.d.ts +17 -0
  252. package/dist/stories/BotIcon.stories.d.ts.map +1 -0
  253. package/dist/stories/BsTooltip.stories.d.ts +7 -0
  254. package/dist/stories/BsTooltip.stories.d.ts.map +1 -0
  255. package/dist/stories/Card.stories.d.ts +14 -0
  256. package/dist/stories/Card.stories.d.ts.map +1 -0
  257. package/dist/stories/ChatAreaHeader.stories.d.ts +14 -0
  258. package/dist/stories/ChatAreaHeader.stories.d.ts.map +1 -0
  259. package/dist/stories/CollapsibleTextMsg.stories.d.ts +16 -0
  260. package/dist/stories/CollapsibleTextMsg.stories.d.ts.map +1 -0
  261. package/dist/stories/ConfirmDialog.stories.d.ts +61 -0
  262. package/dist/stories/ConfirmDialog.stories.d.ts.map +1 -0
  263. package/dist/stories/FormInfoEditor.stories.d.ts +15 -0
  264. package/dist/stories/FormInfoEditor.stories.d.ts.map +1 -0
  265. package/dist/stories/GenerateAnimation.stories.d.ts +16 -0
  266. package/dist/stories/GenerateAnimation.stories.d.ts.map +1 -0
  267. package/dist/stories/IconBtn.stories.d.ts +14 -0
  268. package/dist/stories/IconBtn.stories.d.ts.map +1 -0
  269. package/dist/stories/IconLib.d.ts +12 -0
  270. package/dist/stories/IconLib.d.ts.map +1 -0
  271. package/dist/stories/Icons.stories.d.ts +24 -0
  272. package/dist/stories/Icons.stories.d.ts.map +1 -0
  273. package/dist/stories/LineChecker.stories.d.ts +23 -0
  274. package/dist/stories/LineChecker.stories.d.ts.map +1 -0
  275. package/dist/stories/LinearGradientBorderBtn.stories.d.ts +22 -0
  276. package/dist/stories/LinearGradientBorderBtn.stories.d.ts.map +1 -0
  277. package/dist/stories/LinearGradientColorBgAnimation.stories.d.ts +23 -0
  278. package/dist/stories/LinearGradientColorBgAnimation.stories.d.ts.map +1 -0
  279. package/dist/stories/OptionItem.stories.d.ts +20 -0
  280. package/dist/stories/OptionItem.stories.d.ts.map +1 -0
  281. package/dist/stories/PreviewerHeader.stories.d.ts +9 -0
  282. package/dist/stories/PreviewerHeader.stories.d.ts.map +1 -0
  283. package/dist/stories/PrimaryConfirmBtn.stories.d.ts +16 -0
  284. package/dist/stories/PrimaryConfirmBtn.stories.d.ts.map +1 -0
  285. package/dist/stories/PrimaryEntryBtn.stories.d.ts +26 -0
  286. package/dist/stories/PrimaryEntryBtn.stories.d.ts.map +1 -0
  287. package/dist/stories/TabRadioGroup.stories.d.ts +18 -0
  288. package/dist/stories/TabRadioGroup.stories.d.ts.map +1 -0
  289. package/dist/stories/UserTextMsgBubble.stories.d.ts +14 -0
  290. package/dist/stories/UserTextMsgBubble.stories.d.ts.map +1 -0
  291. package/dist/stories/fields-generating.stories.d.ts +14 -0
  292. package/dist/stories/fields-generating.stories.d.ts.map +1 -0
  293. package/dist/stories/fields-previewer.stories.d.ts +18 -0
  294. package/dist/stories/fields-previewer.stories.d.ts.map +1 -0
  295. package/package.json +76 -0
  296. package/scripts/inline-style-inject.ts +36 -0
  297. package/src/chat.tsx +56 -0
  298. package/src/components/biz-comp/FakeBotMsg.tsx +52 -0
  299. package/src/components/biz-comp/FieldChecker.tsx +114 -0
  300. package/src/components/biz-comp/FieldCheckerListMsg.tsx +34 -0
  301. package/src/components/biz-comp/FieldValueChecker.tsx +98 -0
  302. package/src/components/biz-comp/SubformFieldsValueChecker.tsx +166 -0
  303. package/src/components/biz-comp/chat-client.tsx +206 -0
  304. package/src/components/biz-comp/chat-frame.tsx +25 -0
  305. package/src/components/biz-comp/conversation.tsx +70 -0
  306. package/src/components/biz-comp/dock-btn.tsx +52 -0
  307. package/src/components/biz-comp/field-icon.tsx +8 -0
  308. package/src/components/biz-comp/markdown-part.tsx +48 -0
  309. package/src/components/biz-comp/markdown.tsx +36 -0
  310. package/src/components/biz-comp/message-content.tsx +21 -0
  311. package/src/components/biz-comp/messages.tsx +42 -0
  312. package/src/components/biz-comp/multi-modal-input/attachment-btn.tsx +30 -0
  313. package/src/components/biz-comp/multi-modal-input/clear-btn.tsx +42 -0
  314. package/src/components/biz-comp/multi-modal-input/index.tsx +422 -0
  315. package/src/components/biz-comp/multi-modal-input/preview-attachment.tsx +72 -0
  316. package/src/components/biz-comp/multi-modal-input/prompt-input.tsx +260 -0
  317. package/src/components/biz-comp/opening-lines.tsx +34 -0
  318. package/src/components/biz-comp/preview-message-wrapper.tsx +55 -0
  319. package/src/components/biz-comp/preview-message.tsx +91 -0
  320. package/src/components/biz-comp/response.tsx +23 -0
  321. package/src/components/biz-comp/suggestions.tsx +78 -0
  322. package/src/components/bs-ui/abs-fullscreen-gradient-bg.tsx +34 -0
  323. package/src/components/bs-ui/attachments-previewer.tsx +229 -0
  324. package/src/components/bs-ui/border-color-animation.tsx +58 -0
  325. package/src/components/bs-ui/bot-avatar-name.tsx +25 -0
  326. package/src/components/bs-ui/bot-icon.tsx +23 -0
  327. package/src/components/bs-ui/bs-icons.tsx +801 -0
  328. package/src/components/bs-ui/card.tsx +37 -0
  329. package/src/components/bs-ui/chat-area-header.tsx +41 -0
  330. package/src/components/bs-ui/collapsible-txt-msg.tsx +50 -0
  331. package/src/components/bs-ui/confirm-dialog.tsx +128 -0
  332. package/src/components/bs-ui/fields-generating-indicator.tsx +50 -0
  333. package/src/components/bs-ui/fields-portal.tsx +18 -0
  334. package/src/components/bs-ui/fields-previewer.tsx +109 -0
  335. package/src/components/bs-ui/font-icon.tsx +17 -0
  336. package/src/components/bs-ui/form-info-editor.tsx +286 -0
  337. package/src/components/bs-ui/generate-animation.tsx +54 -0
  338. package/src/components/bs-ui/icon-btn.tsx +31 -0
  339. package/src/components/bs-ui/line-checker.tsx +129 -0
  340. package/src/components/bs-ui/linear-gradient-border-btn.tsx +48 -0
  341. package/src/components/bs-ui/linear-gradient-color-bg-animation.tsx +103 -0
  342. package/src/components/bs-ui/option-item.tsx +28 -0
  343. package/src/components/bs-ui/previewer-header.tsx +134 -0
  344. package/src/components/bs-ui/primary-confirm-btn.tsx +46 -0
  345. package/src/components/bs-ui/primary-entry-btn.tsx +37 -0
  346. package/src/components/bs-ui/tab-radio-group.tsx +73 -0
  347. package/src/components/bs-ui/tooltip.tsx +18 -0
  348. package/src/components/bs-ui/user-txt-msg-bubble.tsx +19 -0
  349. package/src/components/ui/badge.tsx +36 -0
  350. package/src/components/ui/button.tsx +51 -0
  351. package/src/components/ui/card.tsx +76 -0
  352. package/src/components/ui/checkbox.tsx +29 -0
  353. package/src/components/ui/collapsible.tsx +9 -0
  354. package/src/components/ui/dialog.tsx +104 -0
  355. package/src/components/ui/dropdown-menu.tsx +199 -0
  356. package/src/components/ui/icons.tsx +1288 -0
  357. package/src/components/ui/input-group.tsx +172 -0
  358. package/src/components/ui/input.tsx +22 -0
  359. package/src/components/ui/label.tsx +24 -0
  360. package/src/components/ui/one-time-click-btn.tsx +32 -0
  361. package/src/components/ui/select.tsx +157 -0
  362. package/src/components/ui/spinner.tsx +17 -0
  363. package/src/components/ui/tabs.tsx +53 -0
  364. package/src/components/ui/textarea.tsx +22 -0
  365. package/src/components/ui/tooltip.tsx +34 -0
  366. package/src/components/web-comp/fields-previewer-web-component.ts +259 -0
  367. package/src/const/index.ts +61 -0
  368. package/src/const/ui.ts +7 -0
  369. package/src/global.d.ts +1 -0
  370. package/src/hooks/use-evt-bus.ts +11 -0
  371. package/src/hooks/use-evt.ts +17 -0
  372. package/src/hooks/use-frame-mode.ts +13 -0
  373. package/src/hooks/use-plugin-component.ts +12 -0
  374. package/src/hooks/use-plugin-ctx.ts +12 -0
  375. package/src/hooks/use-plugin-custom-components.ts +31 -0
  376. package/src/hooks/use-plugin-life-cycle-chain-runner.ts +26 -0
  377. package/src/hooks/use-plugin-list.ts +11 -0
  378. package/src/hooks/use-plugin.ts +11 -0
  379. package/src/hooks/use-shadow.ts +128 -0
  380. package/src/index.tsx +10 -0
  381. package/src/lib/event-emitter.ts +93 -0
  382. package/src/lib/utils.ts +222 -0
  383. package/src/plugins/form-builder-base-plugin/const.ts +27 -0
  384. package/src/plugins/form-builder-base-plugin/index.ts +45 -0
  385. package/src/plugins/form-builder-base-plugin/types.ts +13 -0
  386. package/src/plugins/form-filling-plugin/components/FormFillingOpeningLines.tsx +3 -0
  387. package/src/plugins/form-filling-plugin/components/avatar.tsx +14 -0
  388. package/src/plugins/form-filling-plugin/components/entry-btn.tsx +15 -0
  389. package/src/plugins/form-filling-plugin/components/msg-part.tsx +90 -0
  390. package/src/plugins/form-filling-plugin/const.ts +595 -0
  391. package/src/plugins/form-filling-plugin/index.ts +135 -0
  392. package/src/plugins/form-filling-plugin/types.ts +11 -0
  393. package/src/plugins/form-filling-plugin/utils.ts +63 -0
  394. package/src/plugins/general-model-form-builder-plugin/components/confirmer.tsx +90 -0
  395. package/src/plugins/general-model-form-builder-plugin/components/ghost-evt-dispatcher.tsx +69 -0
  396. package/src/plugins/general-model-form-builder-plugin/components/msg-part.tsx +147 -0
  397. package/src/plugins/general-model-form-builder-plugin/components/new-confirmer.tsx +191 -0
  398. package/src/plugins/general-model-form-builder-plugin/const.ts +3 -0
  399. package/src/plugins/general-model-form-builder-plugin/index.ts +20 -0
  400. package/src/plugins/general-model-form-builder-plugin/types.ts +1 -0
  401. package/src/plugins/mcp-form-builder-plugin/components/create-form-confirm.tsx +126 -0
  402. package/src/plugins/mcp-form-builder-plugin/components/entry-btn.tsx +9 -0
  403. package/src/plugins/mcp-form-builder-plugin/components/follow-up.tsx +15 -0
  404. package/src/plugins/mcp-form-builder-plugin/components/msg-part.tsx +135 -0
  405. package/src/plugins/mcp-form-builder-plugin/const/index.ts +13 -0
  406. package/src/plugins/mcp-form-builder-plugin/hooks/index.ts +0 -0
  407. package/src/plugins/mcp-form-builder-plugin/hooks/use-fields-confirmed.ts +12 -0
  408. package/src/plugins/mcp-form-builder-plugin/index.ts +225 -0
  409. package/src/plugins/mcp-form-builder-plugin/types.ts +21 -0
  410. package/src/plugins/mcp-form-builder-plugin/utils/index.ts +450 -0
  411. package/src/sdk.impl.tsx +108 -0
  412. package/src/store/context.tsx +22 -0
  413. package/src/store/index.ts +53 -0
  414. package/src/stories/AbsFullscreenGradientBg.stories.tsx +36 -0
  415. package/src/stories/AttachmentsPreviewer.stories.tsx +188 -0
  416. package/src/stories/BorderColorAnimation.stories.tsx +60 -0
  417. package/src/stories/BotAvatarAndName.stories.ts +24 -0
  418. package/src/stories/BotIcon.stories.ts +22 -0
  419. package/src/stories/BsTooltip.stories.tsx +32 -0
  420. package/src/stories/Card.stories.tsx +28 -0
  421. package/src/stories/ChatAreaHeader.stories.ts +26 -0
  422. package/src/stories/CollapsibleTextMsg.stories.ts +44 -0
  423. package/src/stories/ConfirmDialog.stories.tsx +123 -0
  424. package/src/stories/FormInfoEditor.stories.tsx +183 -0
  425. package/src/stories/GenerateAnimation.stories.ts +20 -0
  426. package/src/stories/IconBtn.stories.tsx +26 -0
  427. package/src/stories/IconLib.tsx +47 -0
  428. package/src/stories/Icons.stories.ts +22 -0
  429. package/src/stories/LineChecker.stories.tsx +134 -0
  430. package/src/stories/LinearGradientBorderBtn.stories.tsx +86 -0
  431. package/src/stories/LinearGradientColorBgAnimation.stories.tsx +60 -0
  432. package/src/stories/OptionItem.stories.tsx +77 -0
  433. package/src/stories/PreviewerHeader.stories.tsx +45 -0
  434. package/src/stories/PrimaryConfirmBtn.stories.ts +37 -0
  435. package/src/stories/PrimaryEntryBtn.stories.tsx +74 -0
  436. package/src/stories/TabRadioGroup.stories.tsx +84 -0
  437. package/src/stories/UserTextMsgBubble.stories.ts +24 -0
  438. package/src/stories/assets/accessibility.png +0 -0
  439. package/src/stories/assets/accessibility.svg +1 -0
  440. package/src/stories/assets/addon-library.png +0 -0
  441. package/src/stories/assets/assets.png +0 -0
  442. package/src/stories/assets/avif-test-image.avif +0 -0
  443. package/src/stories/assets/context.png +0 -0
  444. package/src/stories/assets/demo.css +539 -0
  445. package/src/stories/assets/demo_index.html +7988 -0
  446. package/src/stories/assets/discord.svg +1 -0
  447. package/src/stories/assets/docs.png +0 -0
  448. package/src/stories/assets/figma-plugin.png +0 -0
  449. package/src/stories/assets/github.svg +1 -0
  450. package/src/stories/assets/iconfont.css +1377 -0
  451. package/src/stories/assets/iconfont.eot +0 -0
  452. package/src/stories/assets/iconfont.json +2382 -0
  453. package/src/stories/assets/iconfont.svg +697 -0
  454. package/src/stories/assets/iconfont.ttf +0 -0
  455. package/src/stories/assets/iconfont.woff +0 -0
  456. package/src/stories/assets/iconfont.woff2 +0 -0
  457. package/src/stories/assets/share.png +0 -0
  458. package/src/stories/assets/styling.png +0 -0
  459. package/src/stories/assets/testing.png +0 -0
  460. package/src/stories/assets/theming.png +0 -0
  461. package/src/stories/assets/tutorials.svg +1 -0
  462. package/src/stories/assets/youtube.svg +1 -0
  463. package/src/stories/fields-generating.stories.tsx +22 -0
  464. package/src/stories/fields-previewer.stories.tsx +67 -0
  465. package/src/style.css +172 -0
  466. package/stats.html +4949 -0
  467. package/tailwind.config.js +49 -0
  468. package/tsconfig.json +13 -0
  469. package/vite.config.ts +38 -0
@@ -0,0 +1,661 @@
1
+ (function(na,Ii){typeof exports=="object"&&typeof module!="undefined"?Ii(exports):typeof define=="function"&&define.amd?define(["exports"],Ii):(na=typeof globalThis!="undefined"?globalThis:na||self,Ii(na["bs-chat-sdk"]={}))})(this,function(na){"use strict";var zue=Object.defineProperty;var jue=(na,Ii,Uf)=>Ii in na?zue(na,Ii,{enumerable:!0,configurable:!0,writable:!0,value:Uf}):na[Ii]=Uf;var kt=(na,Ii,Uf)=>jue(na,typeof Ii!="symbol"?Ii+"":Ii,Uf);var bN,xN,CN,SN,e0;var Ii=document.createElement("style");Ii.textContent=`/*! tailwindcss v4.1.18 | MIT License | https://tailwindcss.com */@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-pan-x:initial;--tw-pan-y:initial;--tw-pinch-zoom:initial;--tw-space-y-reverse:0;--tw-border-style:solid;--tw-gradient-position:initial;--tw-gradient-from:#0000;--tw-gradient-via:#0000;--tw-gradient-to:#0000;--tw-gradient-stops:initial;--tw-gradient-via-stops:initial;--tw-gradient-from-position:0%;--tw-gradient-via-position:50%;--tw-gradient-to-position:100%;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-outline-style:solid;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-duration:initial;--tw-ease:initial;--tw-space-x-reverse:0;--tw-animation-delay:0s;--tw-animation-direction:normal;--tw-animation-duration:initial;--tw-animation-fill-mode:none;--tw-animation-iteration-count:1;--tw-enter-blur:0;--tw-enter-opacity:1;--tw-enter-rotate:0;--tw-enter-scale:1;--tw-enter-translate-x:0;--tw-enter-translate-y:0;--tw-exit-blur:0;--tw-exit-opacity:1;--tw-exit-rotate:0;--tw-exit-scale:1;--tw-exit-translate-x:0;--tw-exit-translate-y:0}}}@layer theme{:root,:host{--font-sans:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";--font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--color-gray-50:oklch(98.5% .002 247.839);--color-gray-500:oklch(55.1% .027 264.364);--color-gray-600:oklch(44.6% .03 256.802);--color-black:#000;--color-white:#fff;--spacing:.25rem;--container-sm:24rem;--container-lg:32rem;--container-4xl:56rem;--text-xs:.75rem;--text-xs--line-height:calc(1/.75);--text-sm:.875rem;--text-sm--line-height:calc(1.25/.875);--text-base:1rem;--text-base--line-height: 1.5 ;--text-lg:1.125rem;--text-lg--line-height:calc(1.75/1.125);--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--tracking-tight:-.025em;--tracking-widest:.1em;--leading-normal:1.5;--ease-out:cubic-bezier(0,0,.2,1);--ease-in-out:cubic-bezier(.4,0,.2,1);--animate-spin:spin 1s linear infinite;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4,0,.2,1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono);--radius:.625rem;--tw-space-y-reverse:0;--tw-border-style:solid;--tw-shadow:0 0 #0000;--tw-inset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-outline-style:solid;--tw-translate-x:0;--tw-translate-y:0;--tw-animation-delay:0s;--tw-animation-direction:normal;--tw-animation-fill-mode:none;--tw-animation-iteration-count:1;--tw-enter-blur:0;--tw-enter-opacity:1;--tw-enter-rotate:0;--tw-enter-scale:1;--tw-enter-translate-x:0;--tw-enter-translate-y:0;--tw-exit-blur:0;--tw-exit-opacity:1;--tw-exit-rotate:0;--tw-exit-scale:1;--tw-exit-translate-x:0;--tw-exit-translate-y:0;--background:oklch(100% 0 0);--foreground:oklch(12.9% .042 264.695);--card:oklch(100% 0 0);--card-foreground:oklch(12.9% .042 264.695);--popover:oklch(100% 0 0);--popover-foreground:oklch(12.9% .042 264.695);--primary:oklch(20.8% .042 265.755);--primary-foreground:oklch(98.4% .003 247.858);--secondary:oklch(96.8% .007 247.896);--secondary-foreground:oklch(20.8% .042 265.755);--muted:oklch(96.8% .007 247.896);--muted-foreground:oklch(55.4% .046 257.417);--accent:oklch(96.8% .007 247.896);--accent-foreground:oklch(20.8% .042 265.755);--destructive:oklch(57.7% .245 27.325);--border:oklch(92.9% .013 255.508);--input:oklch(92.9% .013 255.508);--ring:oklch(70.4% .04 256.788);--chart-1:oklch(64.6% .222 41.116);--chart-2:oklch(60% .118 184.704);--chart-3:oklch(39.8% .07 227.392);--chart-4:oklch(82.8% .189 84.429);--chart-5:oklch(76.9% .188 70.08);--sidebar:oklch(98.4% .003 247.858);--sidebar-foreground:oklch(12.9% .042 264.695);--sidebar-primary:oklch(20.8% .042 265.755);--sidebar-primary-foreground:oklch(98.4% .003 247.858);--sidebar-accent:oklch(96.8% .007 247.896);--sidebar-accent-foreground:oklch(20.8% .042 265.755);--sidebar-border:oklch(92.9% .013 255.508);--sidebar-ring:oklch(70.4% .04 256.788)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}*{border-color:var(--border);outline-color:#90a1b980}@supports (color:color-mix(in lab,red,red)){*{outline-color:color-mix(in oklab,var(--ring)50%,transparent)}}body{background-color:var(--background);color:var(--foreground)}}@layer components;@layer utilities{.pointer-events-none{pointer-events:none}.collapse{visibility:collapse}.visible{visibility:visible}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.static{position:static}.inset-0{inset:calc(var(--spacing)*0)}.inset-x-0{inset-inline:calc(var(--spacing)*0)}.-top-4{top:calc(var(--spacing)*-4)}.-top-\\[6px\\]{top:-6px}.top-0\\.5{top:calc(var(--spacing)*.5)}.top-1\\/2{top:50%}.top-\\[3px\\]{top:3px}.top-\\[8px\\]{top:8px}.top-\\[50\\%\\]{top:50%}.top-full{top:100%}.-right-\\[6px\\]{right:-6px}.right-0{right:calc(var(--spacing)*0)}.right-0\\.5{right:calc(var(--spacing)*.5)}.right-2{right:calc(var(--spacing)*2)}.bottom-0{bottom:calc(var(--spacing)*0)}.bottom-4{bottom:calc(var(--spacing)*4)}.-left-4{left:calc(var(--spacing)*-4)}.-left-\\[4px\\]{left:-4px}.left-0{left:calc(var(--spacing)*0)}.left-1\\/2{left:50%}.left-2{left:calc(var(--spacing)*2)}.left-\\[50\\%\\]{left:50%}.z-10{z-index:10}.z-50{z-index:50}.z-\\[5\\]{z-index:5}.order-first{order:-9999}.order-last{order:9999}.container{width:100%}@media (min-width:40rem){.container{max-width:40rem}}@media (min-width:48rem){.container{max-width:48rem}}@media (min-width:64rem){.container{max-width:64rem}}@media (min-width:80rem){.container{max-width:80rem}}@media (min-width:96rem){.container{max-width:96rem}}.m-64{margin:calc(var(--spacing)*64)}.m-96{margin:calc(var(--spacing)*96)}.m-128{margin:calc(var(--spacing)*128)}.m-160{margin:calc(var(--spacing)*160)}.m-256{margin:calc(var(--spacing)*256)}.m-288{margin:calc(var(--spacing)*288)}.m-320{margin:calc(var(--spacing)*320)}.m-640{margin:calc(var(--spacing)*640)}.m-768{margin:calc(var(--spacing)*768)}.m-\\[20px\\]{margin:20px}.-mx-1{margin-inline:calc(var(--spacing)*-1)}.mx-auto{margin-inline:auto}.my-1{margin-block:calc(var(--spacing)*1)}.prose{color:var(--tw-prose-body);max-width:65ch}.prose :where(p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em}.prose :where([class~=lead]):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-lead);margin-top:1.2em;margin-bottom:1.2em;font-size:1.25em;line-height:1.6}.prose :where(a):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-links);font-weight:500;text-decoration:underline}.prose :where(strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-bold);font-weight:600}.prose :where(a strong):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(blockquote strong):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(thead th strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em;padding-inline-start:1.625em;list-style-type:decimal}.prose :where(ol[type=A]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-alpha}.prose :where(ol[type=a]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-alpha}.prose :where(ol[type=A s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-alpha}.prose :where(ol[type=a s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-alpha}.prose :where(ol[type=I]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-roman}.prose :where(ol[type=i]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-roman}.prose :where(ol[type=I s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-roman}.prose :where(ol[type=i s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-roman}.prose :where(ol[type="1"]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:decimal}.prose :where(ul):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em;padding-inline-start:1.625em;list-style-type:disc}.prose :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *))::marker{color:var(--tw-prose-counters);font-weight:400}.prose :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *))::marker{color:var(--tw-prose-bullets)}.prose :where(dt):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);margin-top:1.25em;font-weight:600}.prose :where(hr):not(:where([class~=not-prose],[class~=not-prose] *)){border-color:var(--tw-prose-hr);border-top-width:1px;margin-top:3em;margin-bottom:3em}.prose :where(blockquote):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-quotes);border-inline-start-width:.25rem;border-inline-start-color:var(--tw-prose-quote-borders);quotes:"“""”""‘""’";margin-top:1.6em;margin-bottom:1.6em;padding-inline-start:1em;font-style:italic;font-weight:500}.prose :where(blockquote p:first-of-type):not(:where([class~=not-prose],[class~=not-prose] *)):before{content:open-quote}.prose :where(blockquote p:last-of-type):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:close-quote}.prose :where(h1):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);margin-top:0;margin-bottom:.888889em;font-size:2.25em;font-weight:800;line-height:1.11111}.prose :where(h1 strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-weight:900}.prose :where(h2):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);margin-top:2em;margin-bottom:1em;font-size:1.5em;font-weight:700;line-height:1.33333}.prose :where(h2 strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-weight:800}.prose :where(h3):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);margin-top:1.6em;margin-bottom:.6em;font-size:1.25em;font-weight:600;line-height:1.6}.prose :where(h3 strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-weight:700}.prose :where(h4):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);margin-top:1.5em;margin-bottom:.5em;font-weight:600;line-height:1.5}.prose :where(h4 strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-weight:700}.prose :where(img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(picture):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em;display:block}.prose :where(video):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(kbd):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-kbd);box-shadow:0 0 0 1px var(--tw-prose-kbd-shadows),0 3px 0 var(--tw-prose-kbd-shadows);padding-top:.1875em;padding-inline-end:.375em;padding-bottom:.1875em;border-radius:.3125rem;padding-inline-start:.375em;font-family:inherit;font-size:.875em;font-weight:500}.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-code);font-size:.875em;font-weight:600}.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)):before,.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:"\`"}.prose :where(a code):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(h1 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(h2 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-size:.875em}.prose :where(h3 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-size:.9em}.prose :where(h4 code):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(blockquote code):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(thead th code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(pre):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-pre-code);background-color:var(--tw-prose-pre-bg);padding-top:.857143em;padding-inline-end:1.14286em;padding-bottom:.857143em;border-radius:.375rem;margin-top:1.71429em;margin-bottom:1.71429em;padding-inline-start:1.14286em;font-size:.875em;font-weight:400;line-height:1.71429;overflow-x:auto}.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:inherit;color:inherit;font-size:inherit;font-family:inherit;line-height:inherit;background-color:#0000;border-width:0;border-radius:0;padding:0}.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)):before,.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:none}.prose :where(table):not(:where([class~=not-prose],[class~=not-prose] *)){table-layout:auto;width:100%;margin-top:2em;margin-bottom:2em;font-size:.875em;line-height:1.71429}.prose :where(thead):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:1px;border-bottom-color:var(--tw-prose-th-borders)}.prose :where(thead th):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);vertical-align:bottom;padding-inline-end:.571429em;padding-bottom:.571429em;padding-inline-start:.571429em;font-weight:600}.prose :where(tbody tr):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:1px;border-bottom-color:var(--tw-prose-td-borders)}.prose :where(tbody tr:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:0}.prose :where(tbody td):not(:where([class~=not-prose],[class~=not-prose] *)){vertical-align:baseline}.prose :where(tfoot):not(:where([class~=not-prose],[class~=not-prose] *)){border-top-width:1px;border-top-color:var(--tw-prose-th-borders)}.prose :where(tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){vertical-align:top}.prose :where(th,td):not(:where([class~=not-prose],[class~=not-prose] *)){text-align:start}.prose :where(figure>*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose :where(figcaption):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-captions);margin-top:.857143em;font-size:.875em;line-height:1.42857}.prose{--tw-prose-body:oklch(37.3% .034 259.733);--tw-prose-headings:oklch(21% .034 264.665);--tw-prose-lead:oklch(44.6% .03 256.802);--tw-prose-links:oklch(21% .034 264.665);--tw-prose-bold:oklch(21% .034 264.665);--tw-prose-counters:oklch(55.1% .027 264.364);--tw-prose-bullets:oklch(87.2% .01 258.338);--tw-prose-hr:oklch(92.8% .006 264.531);--tw-prose-quotes:oklch(21% .034 264.665);--tw-prose-quote-borders:oklch(92.8% .006 264.531);--tw-prose-captions:oklch(55.1% .027 264.364);--tw-prose-kbd:oklch(21% .034 264.665);--tw-prose-kbd-shadows:oklab(21% -.00316127 -.0338527/.1);--tw-prose-code:oklch(21% .034 264.665);--tw-prose-pre-code:oklch(92.8% .006 264.531);--tw-prose-pre-bg:oklch(27.8% .033 256.848);--tw-prose-th-borders:oklch(87.2% .01 258.338);--tw-prose-td-borders:oklch(92.8% .006 264.531);--tw-prose-invert-body:oklch(87.2% .01 258.338);--tw-prose-invert-headings:#fff;--tw-prose-invert-lead:oklch(70.7% .022 261.325);--tw-prose-invert-links:#fff;--tw-prose-invert-bold:#fff;--tw-prose-invert-counters:oklch(70.7% .022 261.325);--tw-prose-invert-bullets:oklch(44.6% .03 256.802);--tw-prose-invert-hr:oklch(37.3% .034 259.733);--tw-prose-invert-quotes:oklch(96.7% .003 264.542);--tw-prose-invert-quote-borders:oklch(37.3% .034 259.733);--tw-prose-invert-captions:oklch(70.7% .022 261.325);--tw-prose-invert-kbd:#fff;--tw-prose-invert-kbd-shadows:#ffffff1a;--tw-prose-invert-code:#fff;--tw-prose-invert-pre-code:oklch(87.2% .01 258.338);--tw-prose-invert-pre-bg:#00000080;--tw-prose-invert-th-borders:oklch(44.6% .03 256.802);--tw-prose-invert-td-borders:oklch(37.3% .034 259.733);font-size:1rem;line-height:1.75}.prose :where(picture>img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose :where(li):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5em;margin-bottom:.5em}.prose :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.375em}.prose :where(.prose>ul>li p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.75em;margin-bottom:.75em}.prose :where(.prose>ul>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em}.prose :where(.prose>ul>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.25em}.prose :where(.prose>ol>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em}.prose :where(.prose>ol>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.25em}.prose :where(ul ul,ul ol,ol ul,ol ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.75em;margin-bottom:.75em}.prose :where(dl):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em}.prose :where(dd):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5em;padding-inline-start:1.625em}.prose :where(hr+*):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(h2+*):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(h3+*):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(h4+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(thead th:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose :where(thead th:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose :where(tbody td,tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){padding-top:.571429em;padding-inline-end:.571429em;padding-bottom:.571429em;padding-inline-start:.571429em}.prose :where(tbody td:first-child,tfoot td:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose :where(tbody td:last-child,tfoot td:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose :where(figure):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(.prose>:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(.prose>:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:0}.mt-2{margin-top:calc(var(--spacing)*2)}.mt-\\[2px\\]{margin-top:2px}.mt-\\[4px\\]{margin-top:4px}.mr-\\[10px\\]{margin-right:10px}.mb-2{margin-bottom:calc(var(--spacing)*2)}.ml-\\[16px\\]{margin-left:16px}.ml-auto{margin-left:auto}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline-flex{display:inline-flex}.table{display:table}.field-sizing-content{field-sizing:content}.field-sizing-fixed{field-sizing:fixed}.aspect-square{aspect-ratio:1}.size-0\\.5{width:calc(var(--spacing)*.5);height:calc(var(--spacing)*.5)}.size-4{width:calc(var(--spacing)*4);height:calc(var(--spacing)*4)}.size-6{width:calc(var(--spacing)*6);height:calc(var(--spacing)*6)}.size-8{width:calc(var(--spacing)*8);height:calc(var(--spacing)*8)}.size-16{width:calc(var(--spacing)*16);height:calc(var(--spacing)*16)}.size-\\[30px\\]{width:30px;height:30px}.size-\\[36px\\]{width:36px;height:36px}.size-full{width:100%;height:100%}.h-2{height:calc(var(--spacing)*2)}.h-3\\.5{height:calc(var(--spacing)*3.5)}.h-4{height:calc(var(--spacing)*4)}.h-5{height:calc(var(--spacing)*5)}.h-6{height:calc(var(--spacing)*6)}.h-8{height:calc(var(--spacing)*8)}.h-9{height:calc(var(--spacing)*9)}.h-10{height:calc(var(--spacing)*10)}.h-\\[2px\\]{height:2px}.h-\\[5px\\]{height:5px}.h-\\[8px\\]{height:8px}.h-\\[16px\\]{height:16px}.h-\\[24px\\]{height:24px}.h-\\[26px\\]{height:26px}.h-\\[30px\\]{height:30px}.h-\\[31px\\]{height:31px}.h-\\[32px\\]{height:32px}.h-\\[34px\\]{height:34px}.h-\\[40px\\]{height:40px}.h-\\[52px\\]{height:52px}.h-\\[56px\\]{height:56px}.h-\\[calc\\(100\\%-90px\\)\\]{height:calc(100% - 90px)}.h-\\[var\\(--radix-select-trigger-height\\)\\]{height:var(--radix-select-trigger-height)}.h-auto{height:auto}.h-full{height:100%}.h-px{height:1px}.max-h-\\[--radix-select-content-available-height\\]{max-height:--radix-select-content-available-height}.max-h-\\[6lh\\]{max-height:6lh}.max-h-\\[var\\(--radix-dropdown-menu-content-available-height\\)\\]{max-height:var(--radix-dropdown-menu-content-available-height)}.min-h-0{min-height:calc(var(--spacing)*0)}.min-h-96{min-height:calc(var(--spacing)*96)}.min-h-\\[60px\\]{min-height:60px}.w-2{width:calc(var(--spacing)*2)}.w-3\\.5{width:calc(var(--spacing)*3.5)}.w-4{width:calc(var(--spacing)*4)}.w-5{width:calc(var(--spacing)*5)}.w-\\[2px\\]{width:2px}.w-\\[5px\\]{width:5px}.w-\\[8px\\]{width:8px}.w-\\[16px\\]{width:16px}.w-\\[24px\\]{width:24px}.w-\\[26px\\]{width:26px}.w-\\[40px\\]{width:40px}.w-\\[94px\\]{width:94px}.w-\\[100px\\]{width:100px}.w-\\[160px\\]{width:160px}.w-\\[200px\\]{width:200px}.w-\\[300px\\]{width:300px}.w-\\[328px\\]{width:328px}.w-\\[360px\\]{width:360px}.w-\\[380px\\]{width:380px}.w-\\[400px\\]{width:400px}.w-\\[420px\\]{width:420px}.w-\\[480px\\]{width:480px}.w-\\[calc\\(100\\%-40px\\)\\]{width:calc(100% - 40px)}.w-fit{width:fit-content}.w-full{width:100%}.max-w-4xl{max-width:var(--container-4xl)}.max-w-\\[288px\\]{max-width:288px}.max-w-\\[350px\\]{max-width:350px}.max-w-\\[480px\\]{max-width:480px}.max-w-\\[calc\\(100\\%-2\\.5rem\\)\\]{max-width:calc(100% - 2.5rem)}.max-w-lg{max-width:var(--container-lg)}.max-w-sm{max-width:var(--container-sm)}.min-w-0{min-width:calc(var(--spacing)*0)}.min-w-\\[8rem\\]{min-width:8rem}.min-w-\\[200px\\]{min-width:200px}.min-w-\\[300px\\]{min-width:300px}.min-w-\\[var\\(--radix-select-trigger-width\\)\\]{min-width:var(--radix-select-trigger-width)}.flex-0{flex:0}.flex-1{flex:1}.flex-shrink-0,.shrink-0{flex-shrink:0}.flex-grow,.flex-grow-1,.grow{flex-grow:1}.grow-0{flex-grow:0}.origin-\\[--radix-dropdown-menu-content-transform-origin\\]{transform-origin:--radix-dropdown-menu-content-transform-origin}.origin-\\[--radix-select-content-transform-origin\\]{transform-origin:--radix-select-content-transform-origin}.origin-\\[--radix-tooltip-content-transform-origin\\]{transform-origin:--radix-tooltip-content-transform-origin}.-translate-x-1\\/2{--tw-translate-x: -50% ;translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-x-\\[-50\\%\\]{--tw-translate-x:-50%;translate:var(--tw-translate-x)var(--tw-translate-y)}.-translate-y-1\\/2{--tw-translate-y: -50% ;translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-y-\\[-50\\%\\]{--tw-translate-y:-50%;translate:var(--tw-translate-x)var(--tw-translate-y)}.-rotate-45{rotate:-45deg}.rotate-180{rotate:180deg}.transform{transform:var(--tw-rotate-x,)var(--tw-rotate-y,)var(--tw-rotate-z,)var(--tw-skew-x,)var(--tw-skew-y,)}.animate-in{animation:enter var(--tw-animation-duration,var(--tw-duration,.15s))var(--tw-ease,ease)var(--tw-animation-delay,0s)var(--tw-animation-iteration-count,1)var(--tw-animation-direction,normal)var(--tw-animation-fill-mode,none)}.animate-spin{animation:var(--animate-spin)}.cursor-default{cursor:default}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.cursor-text{cursor:text}.touch-pan-y{--tw-pan-y:pan-y;touch-action:var(--tw-pan-x,)var(--tw-pan-y,)var(--tw-pinch-zoom,)}.resize{resize:both}.resize-none{resize:none}.grid-cols-6{grid-template-columns:repeat(6,minmax(0,1fr))}.flex-col{flex-direction:column}.flex-col-reverse{flex-direction:column-reverse}.flex-row{flex-direction:row}.place-content-center{place-content:center}.items-center{align-items:center}.items-end{align-items:flex-end}.items-start{align-items:flex-start}.\\!justify-between{justify-content:space-between!important}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-start{justify-content:flex-start}.gap-0{gap:calc(var(--spacing)*0)}.gap-1{gap:calc(var(--spacing)*1)}.gap-1\\.5{gap:calc(var(--spacing)*1.5)}.gap-2{gap:calc(var(--spacing)*2)}.gap-2\\.5{gap:calc(var(--spacing)*2.5)}.gap-3{gap:calc(var(--spacing)*3)}.gap-4{gap:calc(var(--spacing)*4)}.gap-\\[2px\\]{gap:2px}.gap-\\[6px\\]{gap:6px}.gap-\\[8px\\]{gap:8px}.gap-\\[10px\\]{gap:10px}.gap-\\[22px\\]{gap:22px}.gap-\\[40px\\]{gap:40px}:where(.space-y-1\\.5>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*1.5)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*1.5)*calc(1 - var(--tw-space-y-reverse)))}.self-start{align-self:flex-start}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-hidden{overflow:hidden}.overflow-visible{overflow:visible}.overflow-x-auto{overflow-x:auto}.overflow-x-hidden{overflow-x:hidden}.overflow-x-scroll{overflow-x:scroll}.overflow-y-auto{overflow-y:auto}.overflow-y-scroll{overflow-y:scroll}.rounded{border-radius:.625rem}.rounded-\\[2px\\]{border-radius:2px}.rounded-\\[4px\\]{border-radius:4px}.rounded-\\[5px\\]{border-radius:5px}.rounded-\\[6px\\]{border-radius:6px}.rounded-\\[9\\.5px\\]{border-radius:9.5px}.rounded-\\[10px\\]{border-radius:10px}.rounded-\\[18px\\]{border-radius:18px}.rounded-\\[100px\\]{border-radius:100px}.rounded-\\[calc\\(var\\(--radius\\)-5px\\)\\]{border-radius:calc(var(--radius) - 5px)}.rounded-full{border-radius:3.40282e38px}.rounded-lg{border-radius:var(--radius)}.rounded-md{border-radius:calc(var(--radius) - 2px)}.rounded-none{border-radius:0}.rounded-sm{border-radius:calc(var(--radius) - 4px)}.rounded-xl{border-radius:calc(var(--radius) + 4px)}.border{border-style:var(--tw-border-style);border-width:1px}.border-0{border-style:var(--tw-border-style);border-width:0}.border-0\\!{border-style:var(--tw-border-style)!important;border-width:0!important}.border-2{border-style:var(--tw-border-style);border-width:2px}.border-t-0\\!{border-top-style:var(--tw-border-style)!important;border-top-width:0!important}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-none{--tw-border-style:none;border-style:none}.border-none\\!{--tw-border-style:none!important;border-style:none!important}.border-solid{--tw-border-style:solid;border-style:solid}.border-\\[\\#0265ff\\]{border-color:#0265ff}.border-\\[\\#EFF0F6\\]{border-color:#eff0f6}.border-\\[\\#e0e0e0\\]{border-color:#e0e0e0}.border-input{border-color:var(--input)}.border-primary{border-color:var(--primary)}.border-transparent{border-color:#0000}.bg-\\[\\#0265FF\\],.bg-\\[\\#0265ff\\]{background-color:#0265ff}.bg-\\[\\#999\\]{background-color:#999}.bg-\\[\\#525867\\]{background-color:#525867}.bg-\\[\\#EFF0F6\\]{background-color:#eff0f6}.bg-\\[\\#F5F7FA\\]{background-color:#f5f7fa}.bg-\\[\\#f0f0f0\\]{background-color:#f0f0f0}.bg-\\[\\#fafafa\\]{background-color:#fafafa}.bg-\\[\\#fff\\]{background-color:#fff}.bg-background{background-color:var(--background)}.bg-black\\/30{background-color:#0000004d}@supports (color:color-mix(in lab,red,red)){.bg-black\\/30{background-color:color-mix(in oklab,var(--color-black)30%,transparent)}}.bg-black\\/50{background-color:#00000080}@supports (color:color-mix(in lab,red,red)){.bg-black\\/50{background-color:color-mix(in oklab,var(--color-black)50%,transparent)}}.bg-card{background-color:var(--card)}.bg-destructive{background-color:var(--destructive)}.bg-muted{background-color:var(--muted)}.bg-popover{background-color:var(--popover)}.bg-primary{background-color:var(--primary)}.bg-secondary{background-color:var(--secondary)}.bg-transparent{background-color:#0000}.bg-white{background-color:var(--color-white)}.bg-linear-to-t{--tw-gradient-position:to top}@supports (background-image:linear-gradient(in lab,red,red)){.bg-linear-to-t{--tw-gradient-position:to top in oklab}}.bg-linear-to-t{background-image:linear-gradient(var(--tw-gradient-stops))}.bg-gradient-to-b{--tw-gradient-position:to bottom in oklab;background-image:linear-gradient(var(--tw-gradient-stops))}.bg-gradient-to-l{--tw-gradient-position:to left in oklab;background-image:linear-gradient(var(--tw-gradient-stops))}.bg-gradient-to-r{--tw-gradient-position:to right in oklab;background-image:linear-gradient(var(--tw-gradient-stops))}.bg-\\[linear-gradient\\(180deg\\,\\#DBE9FF_0\\%\\,\\#E9FFFD_100\\%\\)\\]{background-image:linear-gradient(#dbe9ff,#e9fffd)}.from-\\[\\#84B4FF\\]{--tw-gradient-from:#84b4ff;--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.from-black\\/80{--tw-gradient-from:#000c}@supports (color:color-mix(in lab,red,red)){.from-black\\/80{--tw-gradient-from:color-mix(in oklab,var(--color-black)80%,transparent)}}.from-black\\/80{--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.from-white{--tw-gradient-from:var(--color-white);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.via-white{--tw-gradient-via:var(--color-white);--tw-gradient-via-stops:var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-via)var(--tw-gradient-via-position),var(--tw-gradient-to)var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-via-stops)}.via-\\[63\\.57\\%\\]{--tw-gradient-via-position:63.57%}.to-\\[\\#B1FAFF\\]{--tw-gradient-to:#b1faff;--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.to-transparent{--tw-gradient-to:transparent;--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.fill-\\[\\#525867\\]{fill:#525867}.fill-current{fill:currentColor}.object-cover{object-fit:cover}.p-0{padding:calc(var(--spacing)*0)}.p-1{padding:calc(var(--spacing)*1)}.p-2\\.5{padding:calc(var(--spacing)*2.5)}.p-4{padding:calc(var(--spacing)*4)}.p-6{padding:calc(var(--spacing)*6)}.p-9{padding:calc(var(--spacing)*9)}.p-\\[1px\\]{padding:1px}.p-\\[2px\\]{padding:2px}.p-\\[10px\\]{padding:10px}.p-\\[12px\\]{padding:12px}.px-0{padding-inline:calc(var(--spacing)*0)}.px-1{padding-inline:calc(var(--spacing)*1)}.px-1\\.5{padding-inline:calc(var(--spacing)*1.5)}.px-2{padding-inline:calc(var(--spacing)*2)}.px-2\\.5{padding-inline:calc(var(--spacing)*2.5)}.px-3{padding-inline:calc(var(--spacing)*3)}.px-4{padding-inline:calc(var(--spacing)*4)}.px-5{padding-inline:calc(var(--spacing)*5)}.px-8{padding-inline:calc(var(--spacing)*8)}.px-\\[10px\\]{padding-inline:10px}.px-\\[20px\\]{padding-inline:20px}.py-0{padding-block:calc(var(--spacing)*0)}.py-0\\.5{padding-block:calc(var(--spacing)*.5)}.py-1{padding-block:calc(var(--spacing)*1)}.py-1\\.5{padding-block:calc(var(--spacing)*1.5)}.py-2{padding-block:calc(var(--spacing)*2)}.py-3{padding-block:calc(var(--spacing)*3)}.py-4{padding-block:calc(var(--spacing)*4)}.py-\\[6px\\]{padding-block:6px}.py-\\[7px\\]{padding-block:7px}.py-\\[8px\\]{padding-block:8px}.py-\\[10px\\]{padding-block:10px}.pt-0{padding-top:calc(var(--spacing)*0)}.pt-3{padding-top:calc(var(--spacing)*3)}.pt-6{padding-top:calc(var(--spacing)*6)}.pr-2{padding-right:calc(var(--spacing)*2)}.pr-3{padding-right:calc(var(--spacing)*3)}.pr-8{padding-right:calc(var(--spacing)*8)}.pb-0{padding-bottom:calc(var(--spacing)*0)}.pb-3{padding-bottom:calc(var(--spacing)*3)}.pl-2{padding-left:calc(var(--spacing)*2)}.pl-3{padding-left:calc(var(--spacing)*3)}.pl-6{padding-left:calc(var(--spacing)*6)}.pl-8{padding-left:calc(var(--spacing)*8)}.pl-\\[36px\\]{padding-left:36px}.pl-\\[38px\\]{padding-left:38px}.text-center{text-align:center}.text-left{text-align:left}.text-right{text-align:right}.text-base{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.text-\\[10px\\]{font-size:10px}.text-\\[12px\\]{font-size:12px}.text-\\[13px\\]{font-size:13px}.text-\\[14px\\]{font-size:14px}.text-\\[16px\\]{font-size:16px}.leading-5{--tw-leading:calc(var(--spacing)*5);line-height:calc(var(--spacing)*5)}.leading-\\[16px\\]{--tw-leading:16px;line-height:16px}.leading-none{--tw-leading:1;line-height:1}.leading-normal{--tw-leading:var(--leading-normal);line-height:var(--leading-normal)}.font-\\[400\\]{--tw-font-weight:400;font-weight:400}.font-\\[500\\]{--tw-font-weight:500;font-weight:500}.font-\\[700\\]{--tw-font-weight:700;font-weight:700}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.tracking-tight{--tw-tracking:var(--tracking-tight);letter-spacing:var(--tracking-tight)}.tracking-widest{--tw-tracking:var(--tracking-widest);letter-spacing:var(--tracking-widest)}.break-words{overflow-wrap:break-word}.whitespace-nowrap{white-space:nowrap}.text-\\[\\#4D609F\\]{color:#4d609f}.text-\\[\\#6F829E\\]{color:#6f829e}.text-\\[\\#0265FF\\],.text-\\[\\#0265ff\\]{color:#0265ff}.text-\\[\\#666\\]{color:#666}.text-\\[\\#999\\]{color:#999}.text-\\[\\#12111\\]{color:#12111}.text-\\[\\#030303\\]{color:#030303}.text-\\[\\#121111\\]{color:#121111}.text-\\[\\#999999\\]{color:#999}.text-black{color:var(--color-black)}.text-card-foreground{color:var(--card-foreground)}.text-current{color:currentColor}.text-foreground{color:var(--foreground)}.text-gray-500{color:var(--color-gray-500)}.text-gray-600{color:var(--color-gray-600)}.text-muted-foreground{color:var(--muted-foreground)}.text-popover-foreground{color:var(--popover-foreground)}.text-primary{color:var(--primary)}.text-primary-foreground{color:var(--primary-foreground)}.text-secondary-foreground{color:var(--secondary-foreground)}.text-white{color:var(--color-white)}.italic{font-style:italic}.underline{text-decoration-line:underline}.underline-offset-4{text-underline-offset:4px}.opacity-0{opacity:0}.opacity-50{opacity:.5}.opacity-60{opacity:.6}.opacity-80{opacity:.8}.opacity-100{opacity:1}.shadow{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-\\[0px_0px_10px_0px_rgba\\(0\\,0\\,0\\,0\\.04\\)\\]{--tw-shadow:0px 0px 10px 0px var(--tw-shadow-color,#0000000a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-\\[0px_0px_10px_0px_rgba\\(0\\,0\\,0\\,0\\.06\\)\\]{--tw-shadow:0px 0px 10px 0px var(--tw-shadow-color,#0000000f);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-lg{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a),0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-md{--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,#0000001a),0 2px 4px -2px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-none{--tw-shadow:0 0 #0000;box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-sm{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-xs{--tw-shadow:0 1px 2px 0 var(--tw-shadow-color,#0000000d);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring-0{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(0px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring-offset-background{--tw-ring-offset-color:var(--background)}.outline-hidden{--tw-outline-style:none;outline-style:none}@media (forced-colors:active){.outline-hidden{outline-offset:2px;outline:2px solid #0000}}.outline{outline-style:var(--tw-outline-style);outline-width:1px}.blur-\\[7px\\]{--tw-blur:blur(7px);filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}.invert{--tw-invert:invert(100%);filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}.filter{filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}.transition-\\[color\\,box-shadow\\]{transition-property:color,box-shadow;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-shadow{transition-property:box-shadow;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-200{--tw-duration:.2s;transition-duration:.2s}.ease-in-out{--tw-ease:var(--ease-in-out);transition-timing-function:var(--ease-in-out)}.ease-out{--tw-ease:var(--ease-out);transition-timing-function:var(--ease-out)}.will-change-scroll{will-change:scroll-position}.animate-in{--tw-enter-opacity:initial;--tw-enter-scale:initial;--tw-enter-rotate:initial;--tw-enter-translate-x:initial;--tw-enter-translate-y:initial;animation-name:enter;animation-duration:.15s}.outline-none{--tw-outline-style:none;outline-style:none}.select-none{-webkit-user-select:none;user-select:none}.\\[-ms-overflow-style\\:none\\]{-ms-overflow-style:none}.\\[scrollbar-width\\:none\\]{scrollbar-width:none}.duration-200{animation-duration:.2s}.ease-in-out{animation-timing-function:cubic-bezier(.4,0,.2,1)}.ease-out{animation-timing-function:cubic-bezier(0,0,.2,1)}.fade-in-0{--tw-enter-opacity:0}.zoom-in-95{--tw-enter-scale:.95}@media (hover:hover){.group-hover\\:opacity-100:is(:where(.group):hover *){opacity:1}}.group-has-\\[\\>input\\]\\/input-group\\:pt-2\\.5:is(:where(.group\\/input-group):has(>input) *){padding-top:calc(var(--spacing)*2.5)}.group-has-\\[\\>input\\]\\/input-group\\:pb-2\\.5:is(:where(.group\\/input-group):has(>input) *){padding-bottom:calc(var(--spacing)*2.5)}.group-data-\\[disabled\\=true\\]\\/input-group\\:opacity-50:is(:where(.group\\/input-group)[data-disabled=true] *){opacity:.5}.group-\\[\\.is-assistant\\]\\:bg-secondary:is(:where(.group).is-assistant *){background-color:var(--secondary)}.group-\\[\\.is-assistant\\]\\:text-foreground:is(:where(.group).is-assistant *){color:var(--foreground)}.group-\\[\\.is-user\\]\\:bg-primary:is(:where(.group).is-user *){background-color:var(--primary)}.group-\\[\\.is-user\\]\\:text-primary-foreground:is(:where(.group).is-user *){color:var(--primary-foreground)}.peer-disabled\\:cursor-not-allowed:is(:where(.peer):disabled~*){cursor:not-allowed}.peer-disabled\\:opacity-70:is(:where(.peer):disabled~*){opacity:.7}.file\\:border-0::file-selector-button{border-style:var(--tw-border-style);border-width:0}.file\\:bg-transparent::file-selector-button{background-color:#0000}.file\\:text-sm::file-selector-button{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.file\\:font-medium::file-selector-button{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.file\\:text-foreground::file-selector-button{color:var(--foreground)}.placeholder\\:text-\\[\\#999\\]::placeholder{color:#999}.placeholder\\:text-muted-foreground::placeholder{color:var(--muted-foreground)}.focus-within\\:border-border:focus-within{border-color:var(--border)}@media (hover:hover){.hover\\:border-\\[\\#0265ff\\]:hover{border-color:#0265ff}.hover\\:border-\\[\\#E0E0E0\\]:hover,.hover\\:border-\\[\\#e0e0e0\\]:hover{border-color:#e0e0e0}.hover\\:bg-\\[\\#0265FF\\]\\/90:hover{background-color:#0265ffe6}.hover\\:bg-\\[\\#0265ff\\]\\/80:hover{background-color:#0265ffcc}.hover\\:bg-\\[\\#EFF0F6\\]:hover,.hover\\:bg-\\[\\#eff0f6\\]:hover{background-color:#eff0f6}.hover\\:bg-\\[\\#f0f0f0\\]:hover{background-color:#f0f0f0}.hover\\:bg-\\[\\#f5f9ff\\]:hover{background-color:#f5f9ff}.hover\\:bg-accent:hover{background-color:var(--accent)}.hover\\:bg-destructive\\/80:hover{background-color:#e40014cc}@supports (color:color-mix(in lab,red,red)){.hover\\:bg-destructive\\/80:hover{background-color:color-mix(in oklab,var(--destructive)80%,transparent)}}.hover\\:bg-destructive\\/90:hover{background-color:#e40014e6}@supports (color:color-mix(in lab,red,red)){.hover\\:bg-destructive\\/90:hover{background-color:color-mix(in oklab,var(--destructive)90%,transparent)}}.hover\\:bg-gray-50:hover{background-color:var(--color-gray-50)}.hover\\:bg-primary\\/80:hover{background-color:#0f172bcc}@supports (color:color-mix(in lab,red,red)){.hover\\:bg-primary\\/80:hover{background-color:color-mix(in oklab,var(--primary)80%,transparent)}}.hover\\:bg-primary\\/90:hover{background-color:#0f172be6}@supports (color:color-mix(in lab,red,red)){.hover\\:bg-primary\\/90:hover{background-color:color-mix(in oklab,var(--primary)90%,transparent)}}.hover\\:bg-secondary\\/80:hover{background-color:#f1f5f9cc}@supports (color:color-mix(in lab,red,red)){.hover\\:bg-secondary\\/80:hover{background-color:color-mix(in oklab,var(--secondary)80%,transparent)}}.hover\\:bg-white:hover{background-color:var(--color-white)}.hover\\:text-\\[\\#0265FF\\]:hover{color:#0265ff}.hover\\:text-\\[\\#0265ff\\]\\/80:hover{color:#0265ffcc}.hover\\:text-\\[\\#121111\\]:hover{color:#121111}.hover\\:text-accent-foreground:hover{color:var(--accent-foreground)}.hover\\:text-foreground:hover{color:var(--foreground)}.hover\\:underline:hover{text-decoration-line:underline}.hover\\:opacity-70:hover{opacity:.7}.hover\\:opacity-90:hover{opacity:.9}.hover\\:shadow-md:hover{--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,#0000001a),0 2px 4px -2px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}}.focus\\:border-\\[\\#0265ff\\]:focus{border-color:#0265ff}.focus\\:bg-accent:focus{background-color:var(--accent)}.focus\\:text-accent-foreground:focus{color:var(--accent-foreground)}.focus\\:ring-1:focus{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(1px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus\\:ring-2:focus{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(2px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus\\:ring-ring:focus{--tw-ring-color:var(--ring)}.focus\\:ring-offset-2:focus{--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset,)0 0 0 var(--tw-ring-offset-width)var(--tw-ring-offset-color)}.focus\\:outline-none:focus{--tw-outline-style:none;outline-style:none}.focus-visible\\:ring-0:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(0px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus-visible\\:ring-1:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(1px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus-visible\\:ring-2:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(2px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus-visible\\:ring-ring:focus-visible{--tw-ring-color:var(--ring)}.focus-visible\\:ring-offset-0:focus-visible{--tw-ring-offset-width:0px;--tw-ring-offset-shadow:var(--tw-ring-inset,)0 0 0 var(--tw-ring-offset-width)var(--tw-ring-offset-color)}.focus-visible\\:ring-offset-2:focus-visible{--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset,)0 0 0 var(--tw-ring-offset-width)var(--tw-ring-offset-color)}.focus-visible\\:outline-none:focus-visible{--tw-outline-style:none;outline-style:none}.disabled\\:pointer-events-none:disabled{pointer-events:none}.disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\\:bg-\\[\\#E5E6EB\\]:disabled{background-color:#e5e6eb}.disabled\\:text-white:disabled{color:var(--color-white)}.disabled\\:opacity-50:disabled{opacity:.5}.disabled\\:opacity-95:disabled{opacity:.95}.has-\\[\\[data-slot\\=input-group-control\\]\\:focus-visible\\]\\:ring-1:has([data-slot=input-group-control]:focus-visible){--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(1px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.has-\\[\\[data-slot\\=input-group-control\\]\\:focus-visible\\]\\:ring-ring:has([data-slot=input-group-control]:focus-visible){--tw-ring-color:var(--ring)}.has-\\[\\[data-slot\\]\\[aria-invalid\\=true\\]\\]\\:border-destructive:has([data-slot][aria-invalid=true]){border-color:var(--destructive)}.has-\\[\\[data-slot\\]\\[aria-invalid\\=true\\]\\]\\:ring-destructive\\/20:has([data-slot][aria-invalid=true]){--tw-ring-color:#e4001433}@supports (color:color-mix(in lab,red,red)){.has-\\[\\[data-slot\\]\\[aria-invalid\\=true\\]\\]\\:ring-destructive\\/20:has([data-slot][aria-invalid=true]){--tw-ring-color:color-mix(in oklab,var(--destructive)20%,transparent)}}.has-\\[\\>\\[data-align\\=block-end\\]\\]\\:h-auto:has(>[data-align=block-end]){height:auto}.has-\\[\\>\\[data-align\\=block-end\\]\\]\\:flex-col:has(>[data-align=block-end]){flex-direction:column}.has-\\[\\>\\[data-align\\=block-start\\]\\]\\:h-auto:has(>[data-align=block-start]){height:auto}.has-\\[\\>\\[data-align\\=block-start\\]\\]\\:flex-col:has(>[data-align=block-start]){flex-direction:column}.has-\\[\\>button\\]\\:mr-\\[-0\\.4rem\\]:has(>button){margin-right:-.4rem}.has-\\[\\>button\\]\\:ml-\\[-0\\.45rem\\]:has(>button){margin-left:-.45rem}.has-\\[\\>kbd\\]\\:mr-\\[-0\\.35rem\\]:has(>kbd){margin-right:-.35rem}.has-\\[\\>kbd\\]\\:ml-\\[-0\\.35rem\\]:has(>kbd){margin-left:-.35rem}.has-\\[\\>svg\\]\\:p-0:has(>svg){padding:calc(var(--spacing)*0)}.has-\\[\\>svg\\]\\:px-2:has(>svg){padding-inline:calc(var(--spacing)*2)}.has-\\[\\>svg\\]\\:px-2\\.5:has(>svg){padding-inline:calc(var(--spacing)*2.5)}.has-\\[\\>textarea\\]\\:h-auto:has(>textarea){height:auto}.aria-expanded\\:bg-accent[aria-expanded=true]{background-color:var(--accent)}.aria-expanded\\:text-foreground[aria-expanded=true]{color:var(--foreground)}.data-\\[disabled\\]\\:pointer-events-none[data-disabled]{pointer-events:none}.data-\\[disabled\\]\\:opacity-50[data-disabled]{opacity:.5}.data-\\[placeholder\\]\\:text-muted-foreground[data-placeholder]{color:var(--muted-foreground)}.data-\\[side\\=bottom\\]\\:translate-y-1[data-side=bottom]{--tw-translate-y:calc(var(--spacing)*1);translate:var(--tw-translate-x)var(--tw-translate-y)}.data-\\[side\\=bottom\\]\\:slide-in-from-top-2[data-side=bottom]{--tw-enter-translate-y:calc(2*var(--spacing)*-1)}.data-\\[side\\=left\\]\\:-translate-x-1[data-side=left]{--tw-translate-x:calc(var(--spacing)*-1);translate:var(--tw-translate-x)var(--tw-translate-y)}.data-\\[side\\=left\\]\\:slide-in-from-right-2[data-side=left]{--tw-enter-translate-x:calc(2*var(--spacing))}.data-\\[side\\=right\\]\\:translate-x-1[data-side=right]{--tw-translate-x:calc(var(--spacing)*1);translate:var(--tw-translate-x)var(--tw-translate-y)}.data-\\[side\\=right\\]\\:slide-in-from-left-2[data-side=right]{--tw-enter-translate-x:calc(2*var(--spacing)*-1)}.data-\\[side\\=top\\]\\:-translate-y-1[data-side=top]{--tw-translate-y:calc(var(--spacing)*-1);translate:var(--tw-translate-x)var(--tw-translate-y)}.data-\\[side\\=top\\]\\:slide-in-from-bottom-2[data-side=top]{--tw-enter-translate-y:calc(2*var(--spacing))}.data-\\[state\\=active\\]\\:bg-background[data-state=active]{background-color:var(--background)}.data-\\[state\\=active\\]\\:text-foreground[data-state=active]{color:var(--foreground)}.data-\\[state\\=active\\]\\:shadow[data-state=active]{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.data-\\[state\\=checked\\]\\:border-\\[\\#0265ff\\][data-state=checked]{border-color:#0265ff}.data-\\[state\\=checked\\]\\:border-\\[\\#E0E0E0\\][data-state=checked]{border-color:#e0e0e0}.data-\\[state\\=checked\\]\\:bg-\\[\\#0265ff\\][data-state=checked]{background-color:#0265ff}.data-\\[state\\=checked\\]\\:bg-primary[data-state=checked]{background-color:var(--primary)}.data-\\[state\\=checked\\]\\:bg-white[data-state=checked]{background-color:var(--color-white)}.data-\\[state\\=checked\\]\\:text-\\[\\#0265FF\\][data-state=checked]{color:#0265ff}.data-\\[state\\=checked\\]\\:text-primary-foreground[data-state=checked]{color:var(--primary-foreground)}.data-\\[state\\=closed\\]\\:animate-out[data-state=closed]{animation:exit var(--tw-animation-duration,var(--tw-duration,.15s))var(--tw-ease,ease)var(--tw-animation-delay,0s)var(--tw-animation-iteration-count,1)var(--tw-animation-direction,normal)var(--tw-animation-fill-mode,none);--tw-exit-opacity:initial;--tw-exit-scale:initial;--tw-exit-rotate:initial;--tw-exit-translate-x:initial;--tw-exit-translate-y:initial;animation-name:exit;animation-duration:.15s}.data-\\[state\\=closed\\]\\:fade-out-0[data-state=closed]{--tw-exit-opacity:0}.data-\\[state\\=closed\\]\\:slide-out-to-left-1\\/2[data-state=closed]{--tw-exit-translate-x: -50% }.data-\\[state\\=closed\\]\\:slide-out-to-top-\\[48\\%\\][data-state=closed]{--tw-exit-translate-y: -48% }.data-\\[state\\=closed\\]\\:zoom-out-95[data-state=closed]{--tw-exit-scale:.95}.data-\\[state\\=open\\]\\:animate-in[data-state=open]{animation:enter var(--tw-animation-duration,var(--tw-duration,.15s))var(--tw-ease,ease)var(--tw-animation-delay,0s)var(--tw-animation-iteration-count,1)var(--tw-animation-direction,normal)var(--tw-animation-fill-mode,none)}.data-\\[state\\=open\\]\\:bg-accent[data-state=open]{background-color:var(--accent)}.data-\\[state\\=open\\]\\:animate-in[data-state=open]{--tw-enter-opacity:initial;--tw-enter-scale:initial;--tw-enter-rotate:initial;--tw-enter-translate-x:initial;--tw-enter-translate-y:initial;animation-name:enter;animation-duration:.15s}.data-\\[state\\=open\\]\\:fade-in-0[data-state=open]{--tw-enter-opacity:0}.data-\\[state\\=open\\]\\:slide-in-from-left-1\\/2[data-state=open]{--tw-enter-translate-x: -50% }.data-\\[state\\=open\\]\\:slide-in-from-top-\\[48\\%\\][data-state=open]{--tw-enter-translate-y: -48% }.data-\\[state\\=open\\]\\:zoom-in-95[data-state=open]{--tw-enter-scale:.95}@media (min-width:40rem){.sm\\:max-w-\\[min\\(fit-content\\,80\\%\\)\\]{max-width:min(fit-content,80%)}.sm\\:flex-row{flex-direction:row}.sm\\:justify-end{justify-content:flex-end}.sm\\:gap-2{gap:calc(var(--spacing)*2)}:where(.sm\\:space-x-2>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-start:calc(calc(var(--spacing)*2)*var(--tw-space-x-reverse));margin-inline-end:calc(calc(var(--spacing)*2)*calc(1 - var(--tw-space-x-reverse)))}.sm\\:rounded-lg{border-radius:var(--radius)}.sm\\:text-left{text-align:left}}@media (min-width:48rem){.md\\:gap-4{gap:calc(var(--spacing)*4)}.md\\:px-4{padding-inline:calc(var(--spacing)*4)}.md\\:text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}}.dark\\:border-0:is(.dark *){border-style:var(--tw-border-style);border-width:0}.dark\\:border-transparent\\!:is(.dark *){border-color:#0000!important}.dark\\:bg-input\\/30:is(.dark *){background-color:#e2e8f04d}@supports (color:color-mix(in lab,red,red)){.dark\\:bg-input\\/30:is(.dark *){background-color:color-mix(in oklab,var(--input)30%,transparent)}}.dark\\:bg-transparent:is(.dark *){background-color:#0000}.dark\\:has-\\[\\[data-slot\\]\\[aria-invalid\\=true\\]\\]\\:ring-destructive\\/40:is(.dark *):has([data-slot][aria-invalid=true]){--tw-ring-color:#e4001466}@supports (color:color-mix(in lab,red,red)){.dark\\:has-\\[\\[data-slot\\]\\[aria-invalid\\=true\\]\\]\\:ring-destructive\\/40:is(.dark *):has([data-slot][aria-invalid=true]){--tw-ring-color:color-mix(in oklab,var(--destructive)40%,transparent)}}.\\[\\&_button\\:first-child\\]\\:rounded-bl-xl button:first-child{border-bottom-left-radius:calc(var(--radius) + 4px)}.\\[\\&_code\\]\\:whitespace-pre-wrap code{white-space:pre-wrap}.\\[\\&_pre\\]\\:max-w-full pre{max-width:100%}.\\[\\&_pre\\]\\:overflow-x-auto pre{overflow-x:auto}.\\[\\&_svg\\]\\:pointer-events-none svg{pointer-events:none}.\\[\\&_svg\\]\\:size-4 svg{width:calc(var(--spacing)*4);height:calc(var(--spacing)*4)}.\\[\\&_svg\\]\\:shrink-0 svg{flex-shrink:0}.\\[\\&_svg\\:not\\(\\[class\\*\\=\\'size-\\'\\]\\)\\]\\:size-4 svg:not([class*=size-]){width:calc(var(--spacing)*4);height:calc(var(--spacing)*4)}.\\[\\&\\:\\:-webkit-scrollbar\\]\\:hidden::-webkit-scrollbar{display:none}.\\[\\.border-b\\]\\:pb-3.border-b{padding-bottom:calc(var(--spacing)*3)}.\\[\\.border-t\\]\\:pt-3.border-t{padding-top:calc(var(--spacing)*3)}.\\[\\&\\>\\*\\:first-child\\]\\:mt-0>:first-child{margin-top:calc(var(--spacing)*0)}.\\[\\&\\>\\*\\:last-child\\]\\:mb-0>:last-child{margin-bottom:calc(var(--spacing)*0)}.\\[\\&\\>button\\]\\:hidden>button{display:none}.has-\\[\\>\\[data-align\\=block-end\\]\\]\\:\\[\\&\\>input\\]\\:pt-3:has(>[data-align=block-end])>input{padding-top:calc(var(--spacing)*3)}.has-\\[\\>\\[data-align\\=block-start\\]\\]\\:\\[\\&\\>input\\]\\:pb-3:has(>[data-align=block-start])>input{padding-bottom:calc(var(--spacing)*3)}.has-\\[\\>\\[data-align\\=inline-end\\]\\]\\:\\[\\&\\>input\\]\\:pr-2:has(>[data-align=inline-end])>input{padding-right:calc(var(--spacing)*2)}.has-\\[\\>\\[data-align\\=inline-start\\]\\]\\:\\[\\&\\>input\\]\\:pl-2:has(>[data-align=inline-start])>input{padding-left:calc(var(--spacing)*2)}.\\[\\&\\>kbd\\]\\:rounded-\\[calc\\(var\\(--radius\\)-5px\\)\\]>kbd{border-radius:calc(var(--radius) - 5px)}.\\[\\&\\>span\\]\\:line-clamp-1>span{-webkit-line-clamp:1;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.\\[\\&\\>svg\\]\\:size-4>svg{width:calc(var(--spacing)*4);height:calc(var(--spacing)*4)}.\\[\\&\\>svg\\]\\:shrink-0>svg{flex-shrink:0}.\\[\\&\\>svg\\:not\\(\\[class\\*\\=\\'size-\\'\\]\\)\\]\\:size-3\\.5>svg:not([class*=size-]){width:calc(var(--spacing)*3.5);height:calc(var(--spacing)*3.5)}.\\[\\&\\>svg\\:not\\(\\[class\\*\\=\\'size-\\'\\]\\)\\]\\:size-4>svg:not([class*=size-]){width:calc(var(--spacing)*4);height:calc(var(--spacing)*4)}}@property --tw-animation-delay{syntax:"*";inherits:false;initial-value:0s}@property --tw-animation-direction{syntax:"*";inherits:false;initial-value:normal}@property --tw-animation-duration{syntax:"*";inherits:false}@property --tw-animation-fill-mode{syntax:"*";inherits:false;initial-value:none}@property --tw-animation-iteration-count{syntax:"*";inherits:false;initial-value:1}@property --tw-enter-blur{syntax:"*";inherits:false;initial-value:0}@property --tw-enter-opacity{syntax:"*";inherits:false;initial-value:1}@property --tw-enter-rotate{syntax:"*";inherits:false;initial-value:0}@property --tw-enter-scale{syntax:"*";inherits:false;initial-value:1}@property --tw-enter-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-enter-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-blur{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-opacity{syntax:"*";inherits:false;initial-value:1}@property --tw-exit-rotate{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-scale{syntax:"*";inherits:false;initial-value:1}@property --tw-exit-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-translate-y{syntax:"*";inherits:false;initial-value:0}.dark{--background:oklch(12.9% .042 264.695);--foreground:oklch(98.4% .003 247.858);--card:oklch(20.8% .042 265.755);--card-foreground:oklch(98.4% .003 247.858);--popover:oklch(20.8% .042 265.755);--popover-foreground:oklch(98.4% .003 247.858);--primary:oklch(92.9% .013 255.508);--primary-foreground:oklch(20.8% .042 265.755);--secondary:oklch(27.9% .041 260.031);--secondary-foreground:oklch(98.4% .003 247.858);--muted:oklch(27.9% .041 260.031);--muted-foreground:oklch(70.4% .04 256.788);--accent:oklch(27.9% .041 260.031);--accent-foreground:#eff0f6;--destructive:oklch(70.4% .191 22.216);--border:oklch(100% 0 0/.1);--input:oklch(100% 0 0/.15);--ring:oklch(55.1% .027 264.364);--chart-1:oklch(48.8% .243 264.376);--chart-2:oklch(69.6% .17 162.48);--chart-3:oklch(76.9% .188 70.08);--chart-4:oklch(62.7% .265 303.9);--chart-5:oklch(64.5% .246 16.439);--sidebar:oklch(20.8% .042 265.755);--sidebar-foreground:oklch(98.4% .003 247.858);--sidebar-primary:oklch(48.8% .243 264.376);--sidebar-primary-foreground:oklch(98.4% .003 247.858);--sidebar-accent:oklch(27.9% .041 260.031);--sidebar-accent-foreground:oklch(98.4% .003 247.858);--sidebar-border:oklch(100% 0 0/.1);--sidebar-ring:oklch(55.1% .027 264.364)}.scrollbar-hide::-webkit-scrollbar{display:none}.scrollbar-hide{-ms-overflow-style:none;scrollbar-width:none}@keyframes enter{0%{opacity:var(--tw-enter-opacity,1);transform:translate3d(var(--tw-enter-translate-x,0),var(--tw-enter-translate-y,0),0)scale3d(var(--tw-enter-scale,1),var(--tw-enter-scale,1),var(--tw-enter-scale,1))rotate(var(--tw-enter-rotate,0))}}@keyframes exit{to{opacity:var(--tw-exit-opacity,1);transform:translate3d(var(--tw-exit-translate-x,0),var(--tw-exit-translate-y,0),0)scale3d(var(--tw-exit-scale,1),var(--tw-exit-scale,1),var(--tw-exit-scale,1))rotate(var(--tw-exit-rotate,0))}}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-pan-x{syntax:"*";inherits:false}@property --tw-pan-y{syntax:"*";inherits:false}@property --tw-pinch-zoom{syntax:"*";inherits:false}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-gradient-position{syntax:"*";inherits:false}@property --tw-gradient-from{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-via{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-to{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-stops{syntax:"*";inherits:false}@property --tw-gradient-via-stops{syntax:"*";inherits:false}@property --tw-gradient-from-position{syntax:"<length-percentage>";inherits:false;initial-value:0%}@property --tw-gradient-via-position{syntax:"<length-percentage>";inherits:false;initial-value:50%}@property --tw-gradient-to-position{syntax:"<length-percentage>";inherits:false;initial-value:100%}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-tracking{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}@property --tw-space-x-reverse{syntax:"*";inherits:false;initial-value:0}@keyframes spin{to{transform:rotate(360deg)}}
2
+ /*$vite$:1*/`,document.head.appendChild(Ii);function Uf(e,t){for(var n=0;n<t.length;n++){const i=t[n];if(typeof i!="string"&&!Array.isArray(i)){for(const o in i)if(o!=="default"&&!(o in e)){const l=Object.getOwnPropertyDescriptor(i,o);l&&Object.defineProperty(e,o,l.get?l:{enumerable:!0,get:()=>i[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var ug=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function Uu(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var W9={exports:{}},fh={},cg={exports:{}},hn={};/**
3
+ * @license React
4
+ * react.production.min.js
5
+ *
6
+ * Copyright (c) Facebook, Inc. and its affiliates.
7
+ *
8
+ * This source code is licensed under the MIT license found in the
9
+ * LICENSE file in the root directory of this source tree.
10
+ */var ww;function sI(){if(ww)return hn;ww=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),c=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),v=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),y=Symbol.iterator;function S(K){return K===null||typeof K!="object"?null:(K=y&&K[y]||K["@@iterator"],typeof K=="function"?K:null)}var C={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},R=Object.assign,M={};function L(K,fe,$){this.props=K,this.context=fe,this.refs=M,this.updater=$||C}L.prototype.isReactComponent={},L.prototype.setState=function(K,fe){if(typeof K!="object"&&typeof K!="function"&&K!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,K,fe,"setState")},L.prototype.forceUpdate=function(K){this.updater.enqueueForceUpdate(this,K,"forceUpdate")};function I(){}I.prototype=L.prototype;function j(K,fe,$){this.props=K,this.context=fe,this.refs=M,this.updater=$||C}var U=j.prototype=new I;U.constructor=j,R(U,L.prototype),U.isPureReactComponent=!0;var P=Array.isArray,Z=Object.prototype.hasOwnProperty,B={current:null},W={key:!0,ref:!0,__self:!0,__source:!0};function G(K,fe,$){var Fe,it={},Be=null,Ee=null;if(fe!=null)for(Fe in fe.ref!==void 0&&(Ee=fe.ref),fe.key!==void 0&&(Be=""+fe.key),fe)Z.call(fe,Fe)&&!W.hasOwnProperty(Fe)&&(it[Fe]=fe[Fe]);var Ze=arguments.length-2;if(Ze===1)it.children=$;else if(1<Ze){for(var Je=Array(Ze),We=0;We<Ze;We++)Je[We]=arguments[We+2];it.children=Je}if(K&&K.defaultProps)for(Fe in Ze=K.defaultProps,Ze)it[Fe]===void 0&&(it[Fe]=Ze[Fe]);return{$$typeof:e,type:K,key:Be,ref:Ee,props:it,_owner:B.current}}function se(K,fe){return{$$typeof:e,type:K.type,key:fe,ref:K.ref,props:K.props,_owner:K._owner}}function ke(K){return typeof K=="object"&&K!==null&&K.$$typeof===e}function ve(K){var fe={"=":"=0",":":"=2"};return"$"+K.replace(/[=:]/g,function($){return fe[$]})}var de=/\/+/g;function ge(K,fe){return typeof K=="object"&&K!==null&&K.key!=null?ve(""+K.key):fe.toString(36)}function Re(K,fe,$,Fe,it){var Be=typeof K;(Be==="undefined"||Be==="boolean")&&(K=null);var Ee=!1;if(K===null)Ee=!0;else switch(Be){case"string":case"number":Ee=!0;break;case"object":switch(K.$$typeof){case e:case t:Ee=!0}}if(Ee)return Ee=K,it=it(Ee),K=Fe===""?"."+ge(Ee,0):Fe,P(it)?($="",K!=null&&($=K.replace(de,"$&/")+"/"),Re(it,fe,$,"",function(We){return We})):it!=null&&(ke(it)&&(it=se(it,$+(!it.key||Ee&&Ee.key===it.key?"":(""+it.key).replace(de,"$&/")+"/")+K)),fe.push(it)),1;if(Ee=0,Fe=Fe===""?".":Fe+":",P(K))for(var Ze=0;Ze<K.length;Ze++){Be=K[Ze];var Je=Fe+ge(Be,Ze);Ee+=Re(Be,fe,$,Je,it)}else if(Je=S(K),typeof Je=="function")for(K=Je.call(K),Ze=0;!(Be=K.next()).done;)Be=Be.value,Je=Fe+ge(Be,Ze++),Ee+=Re(Be,fe,$,Je,it);else if(Be==="object")throw fe=String(K),Error("Objects are not valid as a React child (found: "+(fe==="[object Object]"?"object with keys {"+Object.keys(K).join(", ")+"}":fe)+"). If you meant to render a collection of children, use an array instead.");return Ee}function be(K,fe,$){if(K==null)return K;var Fe=[],it=0;return Re(K,Fe,"","",function(Be){return fe.call($,Be,it++)}),Fe}function Ie(K){if(K._status===-1){var fe=K._result;fe=fe(),fe.then(function($){(K._status===0||K._status===-1)&&(K._status=1,K._result=$)},function($){(K._status===0||K._status===-1)&&(K._status=2,K._result=$)}),K._status===-1&&(K._status=0,K._result=fe)}if(K._status===1)return K._result.default;throw K._result}var ye={current:null},Q={transition:null},Ne={ReactCurrentDispatcher:ye,ReactCurrentBatchConfig:Q,ReactCurrentOwner:B};function H(){throw Error("act(...) is not supported in production builds of React.")}return hn.Children={map:be,forEach:function(K,fe,$){be(K,function(){fe.apply(this,arguments)},$)},count:function(K){var fe=0;return be(K,function(){fe++}),fe},toArray:function(K){return be(K,function(fe){return fe})||[]},only:function(K){if(!ke(K))throw Error("React.Children.only expected to receive a single React element child.");return K}},hn.Component=L,hn.Fragment=n,hn.Profiler=o,hn.PureComponent=j,hn.StrictMode=i,hn.Suspense=m,hn.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Ne,hn.act=H,hn.cloneElement=function(K,fe,$){if(K==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+K+".");var Fe=R({},K.props),it=K.key,Be=K.ref,Ee=K._owner;if(fe!=null){if(fe.ref!==void 0&&(Be=fe.ref,Ee=B.current),fe.key!==void 0&&(it=""+fe.key),K.type&&K.type.defaultProps)var Ze=K.type.defaultProps;for(Je in fe)Z.call(fe,Je)&&!W.hasOwnProperty(Je)&&(Fe[Je]=fe[Je]===void 0&&Ze!==void 0?Ze[Je]:fe[Je])}var Je=arguments.length-2;if(Je===1)Fe.children=$;else if(1<Je){Ze=Array(Je);for(var We=0;We<Je;We++)Ze[We]=arguments[We+2];Fe.children=Ze}return{$$typeof:e,type:K.type,key:it,ref:Be,props:Fe,_owner:Ee}},hn.createContext=function(K){return K={$$typeof:c,_currentValue:K,_currentValue2:K,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},K.Provider={$$typeof:l,_context:K},K.Consumer=K},hn.createElement=G,hn.createFactory=function(K){var fe=G.bind(null,K);return fe.type=K,fe},hn.createRef=function(){return{current:null}},hn.forwardRef=function(K){return{$$typeof:f,render:K}},hn.isValidElement=ke,hn.lazy=function(K){return{$$typeof:b,_payload:{_status:-1,_result:K},_init:Ie}},hn.memo=function(K,fe){return{$$typeof:v,type:K,compare:fe===void 0?null:fe}},hn.startTransition=function(K){var fe=Q.transition;Q.transition={};try{K()}finally{Q.transition=fe}},hn.unstable_act=H,hn.useCallback=function(K,fe){return ye.current.useCallback(K,fe)},hn.useContext=function(K){return ye.current.useContext(K)},hn.useDebugValue=function(){},hn.useDeferredValue=function(K){return ye.current.useDeferredValue(K)},hn.useEffect=function(K,fe){return ye.current.useEffect(K,fe)},hn.useId=function(){return ye.current.useId()},hn.useImperativeHandle=function(K,fe,$){return ye.current.useImperativeHandle(K,fe,$)},hn.useInsertionEffect=function(K,fe){return ye.current.useInsertionEffect(K,fe)},hn.useLayoutEffect=function(K,fe){return ye.current.useLayoutEffect(K,fe)},hn.useMemo=function(K,fe){return ye.current.useMemo(K,fe)},hn.useReducer=function(K,fe,$){return ye.current.useReducer(K,fe,$)},hn.useRef=function(K){return ye.current.useRef(K)},hn.useState=function(K){return ye.current.useState(K)},hn.useSyncExternalStore=function(K,fe,$){return ye.current.useSyncExternalStore(K,fe,$)},hn.useTransition=function(){return ye.current.useTransition()},hn.version="18.3.1",hn}var ph={exports:{}};/**
11
+ * @license React
12
+ * react.development.js
13
+ *
14
+ * Copyright (c) Facebook, Inc. and its affiliates.
15
+ *
16
+ * This source code is licensed under the MIT license found in the
17
+ * LICENSE file in the root directory of this source tree.
18
+ */ph.exports;var bw;function lI(){return bw||(bw=1,function(e,t){process.env.NODE_ENV!=="production"&&function(){typeof __REACT_DEVTOOLS_GLOBAL_HOOK__!="undefined"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var n="18.3.1",i=Symbol.for("react.element"),o=Symbol.for("react.portal"),l=Symbol.for("react.fragment"),c=Symbol.for("react.strict_mode"),f=Symbol.for("react.profiler"),m=Symbol.for("react.provider"),v=Symbol.for("react.context"),b=Symbol.for("react.forward_ref"),y=Symbol.for("react.suspense"),S=Symbol.for("react.suspense_list"),C=Symbol.for("react.memo"),R=Symbol.for("react.lazy"),M=Symbol.for("react.offscreen"),L=Symbol.iterator,I="@@iterator";function j(A){if(A===null||typeof A!="object")return null;var Y=L&&A[L]||A[I];return typeof Y=="function"?Y:null}var U={current:null},P={transition:null},Z={current:null,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1},B={current:null},W={},G=null;function se(A){G=A}W.setExtraStackFrame=function(A){G=A},W.getCurrentStack=null,W.getStackAddendum=function(){var A="";G&&(A+=G);var Y=W.getCurrentStack;return Y&&(A+=Y()||""),A};var ke=!1,ve=!1,de=!1,ge=!1,Re=!1,be={ReactCurrentDispatcher:U,ReactCurrentBatchConfig:P,ReactCurrentOwner:B};be.ReactDebugCurrentFrame=W,be.ReactCurrentActQueue=Z;function Ie(A){{for(var Y=arguments.length,ce=new Array(Y>1?Y-1:0),we=1;we<Y;we++)ce[we-1]=arguments[we];Q("warn",A,ce)}}function ye(A){{for(var Y=arguments.length,ce=new Array(Y>1?Y-1:0),we=1;we<Y;we++)ce[we-1]=arguments[we];Q("error",A,ce)}}function Q(A,Y,ce){{var we=be.ReactDebugCurrentFrame,He=we.getStackAddendum();He!==""&&(Y+="%s",ce=ce.concat([He]));var Ot=ce.map(function(Ye){return String(Ye)});Ot.unshift("Warning: "+Y),Function.prototype.apply.call(console[A],console,Ot)}}var Ne={};function H(A,Y){{var ce=A.constructor,we=ce&&(ce.displayName||ce.name)||"ReactClass",He=we+"."+Y;if(Ne[He])return;ye("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",Y,we),Ne[He]=!0}}var K={isMounted:function(A){return!1},enqueueForceUpdate:function(A,Y,ce){H(A,"forceUpdate")},enqueueReplaceState:function(A,Y,ce,we){H(A,"replaceState")},enqueueSetState:function(A,Y,ce,we){H(A,"setState")}},fe=Object.assign,$={};Object.freeze($);function Fe(A,Y,ce){this.props=A,this.context=Y,this.refs=$,this.updater=ce||K}Fe.prototype.isReactComponent={},Fe.prototype.setState=function(A,Y){if(typeof A!="object"&&typeof A!="function"&&A!=null)throw new Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,A,Y,"setState")},Fe.prototype.forceUpdate=function(A){this.updater.enqueueForceUpdate(this,A,"forceUpdate")};{var it={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]},Be=function(A,Y){Object.defineProperty(Fe.prototype,A,{get:function(){Ie("%s(...) is deprecated in plain JavaScript React classes. %s",Y[0],Y[1])}})};for(var Ee in it)it.hasOwnProperty(Ee)&&Be(Ee,it[Ee])}function Ze(){}Ze.prototype=Fe.prototype;function Je(A,Y,ce){this.props=A,this.context=Y,this.refs=$,this.updater=ce||K}var We=Je.prototype=new Ze;We.constructor=Je,fe(We,Fe.prototype),We.isPureReactComponent=!0;function Xe(){var A={current:null};return Object.seal(A),A}var Et=Array.isArray;function wt(A){return Et(A)}function lt(A){{var Y=typeof Symbol=="function"&&Symbol.toStringTag,ce=Y&&A[Symbol.toStringTag]||A.constructor.name||"Object";return ce}}function vt(A){try{return zt(A),!1}catch(Y){return!0}}function zt(A){return""+A}function Ct(A){if(vt(A))return ye("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",lt(A)),zt(A)}function Dn(A,Y,ce){var we=A.displayName;if(we)return we;var He=Y.displayName||Y.name||"";return He!==""?ce+"("+He+")":ce}function Hn(A){return A.displayName||"Context"}function Ue(A){if(A==null)return null;if(typeof A.tag=="number"&&ye("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof A=="function")return A.displayName||A.name||null;if(typeof A=="string")return A;switch(A){case l:return"Fragment";case o:return"Portal";case f:return"Profiler";case c:return"StrictMode";case y:return"Suspense";case S:return"SuspenseList"}if(typeof A=="object")switch(A.$$typeof){case v:var Y=A;return Hn(Y)+".Consumer";case m:var ce=A;return Hn(ce._context)+".Provider";case b:return Dn(A,A.render,"ForwardRef");case C:var we=A.displayName||null;return we!==null?we:Ue(A.type)||"Memo";case R:{var He=A,Ot=He._payload,Ye=He._init;try{return Ue(Ye(Ot))}catch(Dt){return null}}}return null}var Mt=Object.prototype.hasOwnProperty,Pn={key:!0,ref:!0,__self:!0,__source:!0},Wt,pr,Vn;Vn={};function me(A){if(Mt.call(A,"ref")){var Y=Object.getOwnPropertyDescriptor(A,"ref").get;if(Y&&Y.isReactWarning)return!1}return A.ref!==void 0}function Me(A){if(Mt.call(A,"key")){var Y=Object.getOwnPropertyDescriptor(A,"key").get;if(Y&&Y.isReactWarning)return!1}return A.key!==void 0}function ut(A,Y){var ce=function(){Wt||(Wt=!0,ye("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",Y))};ce.isReactWarning=!0,Object.defineProperty(A,"key",{get:ce,configurable:!0})}function It(A,Y){var ce=function(){pr||(pr=!0,ye("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",Y))};ce.isReactWarning=!0,Object.defineProperty(A,"ref",{get:ce,configurable:!0})}function Te(A){if(typeof A.ref=="string"&&B.current&&A.__self&&B.current.stateNode!==A.__self){var Y=Ue(B.current.type);Vn[Y]||(ye('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',Y,A.ref),Vn[Y]=!0)}}var qe=function(A,Y,ce,we,He,Ot,Ye){var Dt={$$typeof:i,type:A,key:Y,ref:ce,props:Ye,_owner:Ot};return Dt._store={},Object.defineProperty(Dt._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(Dt,"_self",{configurable:!1,enumerable:!1,writable:!1,value:we}),Object.defineProperty(Dt,"_source",{configurable:!1,enumerable:!1,writable:!1,value:He}),Object.freeze&&(Object.freeze(Dt.props),Object.freeze(Dt)),Dt};function Nt(A,Y,ce){var we,He={},Ot=null,Ye=null,Dt=null,un=null;if(Y!=null){me(Y)&&(Ye=Y.ref,Te(Y)),Me(Y)&&(Ct(Y.key),Ot=""+Y.key),Dt=Y.__self===void 0?null:Y.__self,un=Y.__source===void 0?null:Y.__source;for(we in Y)Mt.call(Y,we)&&!Pn.hasOwnProperty(we)&&(He[we]=Y[we])}var xn=arguments.length-2;if(xn===1)He.children=ce;else if(xn>1){for(var nr=Array(xn),$n=0;$n<xn;$n++)nr[$n]=arguments[$n+2];Object.freeze&&Object.freeze(nr),He.children=nr}if(A&&A.defaultProps){var nn=A.defaultProps;for(we in nn)He[we]===void 0&&(He[we]=nn[we])}if(Ot||Ye){var Zn=typeof A=="function"?A.displayName||A.name||"Unknown":A;Ot&&ut(He,Zn),Ye&&It(He,Zn)}return qe(A,Ot,Ye,Dt,un,B.current,He)}function gt(A,Y){var ce=qe(A.type,Y,A.ref,A._self,A._source,A._owner,A.props);return ce}function Xt(A,Y,ce){if(A==null)throw new Error("React.cloneElement(...): The argument must be a React element, but you passed "+A+".");var we,He=fe({},A.props),Ot=A.key,Ye=A.ref,Dt=A._self,un=A._source,xn=A._owner;if(Y!=null){me(Y)&&(Ye=Y.ref,xn=B.current),Me(Y)&&(Ct(Y.key),Ot=""+Y.key);var nr;A.type&&A.type.defaultProps&&(nr=A.type.defaultProps);for(we in Y)Mt.call(Y,we)&&!Pn.hasOwnProperty(we)&&(Y[we]===void 0&&nr!==void 0?He[we]=nr[we]:He[we]=Y[we])}var $n=arguments.length-2;if($n===1)He.children=ce;else if($n>1){for(var nn=Array($n),Zn=0;Zn<$n;Zn++)nn[Zn]=arguments[Zn+2];He.children=nn}return qe(A.type,Ot,Ye,Dt,un,xn,He)}function sn(A){return typeof A=="object"&&A!==null&&A.$$typeof===i}var Qt=".",Kn=":";function cn(A){var Y=/[=:]/g,ce={"=":"=0",":":"=2"},we=A.replace(Y,function(He){return ce[He]});return"$"+we}var Sn=!1,_n=/\/+/g;function da(A){return A.replace(_n,"$&/")}function jr(A,Y){return typeof A=="object"&&A!==null&&A.key!=null?(Ct(A.key),cn(""+A.key)):Y.toString(36)}function Yr(A,Y,ce,we,He){var Ot=typeof A;(Ot==="undefined"||Ot==="boolean")&&(A=null);var Ye=!1;if(A===null)Ye=!0;else switch(Ot){case"string":case"number":Ye=!0;break;case"object":switch(A.$$typeof){case i:case o:Ye=!0}}if(Ye){var Dt=A,un=He(Dt),xn=we===""?Qt+jr(Dt,0):we;if(wt(un)){var nr="";xn!=null&&(nr=da(xn)+"/"),Yr(un,Y,nr,"",function(sm){return sm})}else un!=null&&(sn(un)&&(un.key&&(!Dt||Dt.key!==un.key)&&Ct(un.key),un=gt(un,ce+(un.key&&(!Dt||Dt.key!==un.key)?da(""+un.key)+"/":"")+xn)),Y.push(un));return 1}var $n,nn,Zn=0,yr=we===""?Qt:we+Kn;if(wt(A))for(var cl=0;cl<A.length;cl++)$n=A[cl],nn=yr+jr($n,cl),Zn+=Yr($n,Y,ce,nn,He);else{var Rd=j(A);if(typeof Rd=="function"){var xs=A;Rd===xs.entries&&(Sn||Ie("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),Sn=!0);for(var Md=Rd.call(xs),tu,om=0;!(tu=Md.next()).done;)$n=tu.value,nn=yr+jr($n,om++),Zn+=Yr($n,Y,ce,nn,He)}else if(Ot==="object"){var Mp=String(A);throw new Error("Objects are not valid as a React child (found: "+(Mp==="[object Object]"?"object with keys {"+Object.keys(A).join(", ")+"}":Mp)+"). If you meant to render a collection of children, use an array instead.")}}return Zn}function Rr(A,Y,ce){if(A==null)return A;var we=[],He=0;return Yr(A,we,"","",function(Ot){return Y.call(ce,Ot,He++)}),we}function vo(A){var Y=0;return Rr(A,function(){Y++}),Y}function jo(A,Y,ce){Rr(A,function(){Y.apply(this,arguments)},ce)}function Jr(A){return Rr(A,function(Y){return Y})||[]}function go(A){if(!sn(A))throw new Error("React.Children.only expected to receive a single React element child.");return A}function _t(A){var Y={$$typeof:v,_currentValue:A,_currentValue2:A,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null};Y.Provider={$$typeof:m,_context:Y};var ce=!1,we=!1,He=!1;{var Ot={$$typeof:v,_context:Y};Object.defineProperties(Ot,{Provider:{get:function(){return we||(we=!0,ye("Rendering <Context.Consumer.Provider> is not supported and will be removed in a future major release. Did you mean to render <Context.Provider> instead?")),Y.Provider},set:function(Ye){Y.Provider=Ye}},_currentValue:{get:function(){return Y._currentValue},set:function(Ye){Y._currentValue=Ye}},_currentValue2:{get:function(){return Y._currentValue2},set:function(Ye){Y._currentValue2=Ye}},_threadCount:{get:function(){return Y._threadCount},set:function(Ye){Y._threadCount=Ye}},Consumer:{get:function(){return ce||(ce=!0,ye("Rendering <Context.Consumer.Consumer> is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?")),Y.Consumer}},displayName:{get:function(){return Y.displayName},set:function(Ye){He||(Ie("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.",Ye),He=!0)}}}),Y.Consumer=Ot}return Y._currentRenderer=null,Y._currentRenderer2=null,Y}var kn=-1,Mr=0,gr=1,La=2;function Nr(A){if(A._status===kn){var Y=A._result,ce=Y();if(ce.then(function(Ot){if(A._status===Mr||A._status===kn){var Ye=A;Ye._status=gr,Ye._result=Ot}},function(Ot){if(A._status===Mr||A._status===kn){var Ye=A;Ye._status=La,Ye._result=Ot}}),A._status===kn){var we=A;we._status=Mr,we._result=ce}}if(A._status===gr){var He=A._result;return He===void 0&&ye(`lazy: Expected the result of a dynamic import() call. Instead received: %s
19
+
20
+ Your code should look like:
21
+ const MyComponent = lazy(() => import('./MyComponent'))
22
+
23
+ Did you accidentally put curly braces around the import?`,He),"default"in He||ye(`lazy: Expected the result of a dynamic import() call. Instead received: %s
24
+
25
+ Your code should look like:
26
+ const MyComponent = lazy(() => import('./MyComponent'))`,He),He.default}else throw A._result}function xi(A){var Y={_status:kn,_result:A},ce={$$typeof:R,_payload:Y,_init:Nr};{var we,He;Object.defineProperties(ce,{defaultProps:{configurable:!0,get:function(){return we},set:function(Ot){ye("React.lazy(...): It is not supported to assign `defaultProps` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),we=Ot,Object.defineProperty(ce,"defaultProps",{enumerable:!0})}},propTypes:{configurable:!0,get:function(){return He},set:function(Ot){ye("React.lazy(...): It is not supported to assign `propTypes` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),He=Ot,Object.defineProperty(ce,"propTypes",{enumerable:!0})}}})}return ce}function er(A){A!=null&&A.$$typeof===C?ye("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof A!="function"?ye("forwardRef requires a render function but was given %s.",A===null?"null":typeof A):A.length!==0&&A.length!==2&&ye("forwardRef render functions accept exactly two parameters: props and ref. %s",A.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),A!=null&&(A.defaultProps!=null||A.propTypes!=null)&&ye("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?");var Y={$$typeof:b,render:A};{var ce;Object.defineProperty(Y,"displayName",{enumerable:!1,configurable:!0,get:function(){return ce},set:function(we){ce=we,!A.name&&!A.displayName&&(A.displayName=we)}})}return Y}var J;J=Symbol.for("react.module.reference");function Oe(A){return!!(typeof A=="string"||typeof A=="function"||A===l||A===f||Re||A===c||A===y||A===S||ge||A===M||ke||ve||de||typeof A=="object"&&A!==null&&(A.$$typeof===R||A.$$typeof===C||A.$$typeof===m||A.$$typeof===v||A.$$typeof===b||A.$$typeof===J||A.getModuleId!==void 0))}function Ke(A,Y){Oe(A)||ye("memo: The first argument must be a component. Instead received: %s",A===null?"null":typeof A);var ce={$$typeof:C,type:A,compare:Y===void 0?null:Y};{var we;Object.defineProperty(ce,"displayName",{enumerable:!1,configurable:!0,get:function(){return we},set:function(He){we=He,!A.name&&!A.displayName&&(A.displayName=He)}})}return ce}function st(){var A=U.current;return A===null&&ye(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
27
+ 1. You might have mismatching versions of React and the renderer (such as React DOM)
28
+ 2. You might be breaking the Rules of Hooks
29
+ 3. You might have more than one copy of React in the same app
30
+ See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.`),A}function Gt(A){var Y=st();if(A._context!==void 0){var ce=A._context;ce.Consumer===A?ye("Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be removed in a future major release. Did you mean to call useContext(Context) instead?"):ce.Provider===A&&ye("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?")}return Y.useContext(A)}function Vt(A){var Y=st();return Y.useState(A)}function ln(A,Y,ce){var we=st();return we.useReducer(A,Y,ce)}function rn(A){var Y=st();return Y.useRef(A)}function Or(A,Y){var ce=st();return ce.useEffect(A,Y)}function tr(A,Y){var ce=st();return ce.useInsertionEffect(A,Y)}function ir(A,Y){var ce=st();return ce.useLayoutEffect(A,Y)}function fa(A,Y){var ce=st();return ce.useCallback(A,Y)}function yo(A,Y){var ce=st();return ce.useMemo(A,Y)}function wo(A,Y,ce){var we=st();return we.useImperativeHandle(A,Y,ce)}function Yt(A,Y){{var ce=st();return ce.useDebugValue(A,Y)}}function en(){var A=st();return A.useTransition()}function bo(A){var Y=st();return Y.useDeferredValue(A)}function Yl(){var A=st();return A.useId()}function Jl(A,Y,ce){var we=st();return we.useSyncExternalStore(A,Y,ce)}var rl=0,ic,al,Ka,kd,Aa,Tp,Rp;function oc(){}oc.__reactDisabledLog=!0;function il(){{if(rl===0){ic=console.log,al=console.info,Ka=console.warn,kd=console.error,Aa=console.group,Tp=console.groupCollapsed,Rp=console.groupEnd;var A={configurable:!0,enumerable:!0,value:oc,writable:!0};Object.defineProperties(console,{info:A,log:A,warn:A,error:A,group:A,groupCollapsed:A,groupEnd:A})}rl++}}function Ci(){{if(rl--,rl===0){var A={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:fe({},A,{value:ic}),info:fe({},A,{value:al}),warn:fe({},A,{value:Ka}),error:fe({},A,{value:kd}),group:fe({},A,{value:Aa}),groupCollapsed:fe({},A,{value:Tp}),groupEnd:fe({},A,{value:Rp})})}rl<0&&ye("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var xo=be.ReactCurrentDispatcher,Co;function sc(A,Y,ce){{if(Co===void 0)try{throw Error()}catch(He){var we=He.stack.trim().match(/\n( *(at )?)/);Co=we&&we[1]||""}return`
31
+ `+Co+A}}var Kl=!1,ol;{var lc=typeof WeakMap=="function"?WeakMap:Map;ol=new lc}function uc(A,Y){if(!A||Kl)return"";{var ce=ol.get(A);if(ce!==void 0)return ce}var we;Kl=!0;var He=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var Ot;Ot=xo.current,xo.current=null,il();try{if(Y){var Ye=function(){throw Error()};if(Object.defineProperty(Ye.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Ye,[])}catch(yr){we=yr}Reflect.construct(A,[],Ye)}else{try{Ye.call()}catch(yr){we=yr}A.call(Ye.prototype)}}else{try{throw Error()}catch(yr){we=yr}A()}}catch(yr){if(yr&&we&&typeof yr.stack=="string"){for(var Dt=yr.stack.split(`
32
+ `),un=we.stack.split(`
33
+ `),xn=Dt.length-1,nr=un.length-1;xn>=1&&nr>=0&&Dt[xn]!==un[nr];)nr--;for(;xn>=1&&nr>=0;xn--,nr--)if(Dt[xn]!==un[nr]){if(xn!==1||nr!==1)do if(xn--,nr--,nr<0||Dt[xn]!==un[nr]){var $n=`
34
+ `+Dt[xn].replace(" at new "," at ");return A.displayName&&$n.includes("<anonymous>")&&($n=$n.replace("<anonymous>",A.displayName)),typeof A=="function"&&ol.set(A,$n),$n}while(xn>=1&&nr>=0);break}}}finally{Kl=!1,xo.current=Ot,Ci(),Error.prepareStackTrace=He}var nn=A?A.displayName||A.name:"",Zn=nn?sc(nn):"";return typeof A=="function"&&ol.set(A,Zn),Zn}function ws(A,Y,ce){return uc(A,!1)}function am(A){var Y=A.prototype;return!!(Y&&Y.isReactComponent)}function bs(A,Y,ce){if(A==null)return"";if(typeof A=="function")return uc(A,am(A));if(typeof A=="string")return sc(A);switch(A){case y:return sc("Suspense");case S:return sc("SuspenseList")}if(typeof A=="object")switch(A.$$typeof){case b:return ws(A.render);case C:return bs(A.type,Y,ce);case R:{var we=A,He=we._payload,Ot=we._init;try{return bs(Ot(He),Y,ce)}catch(Ye){}}}return""}var Tn={},cc=be.ReactDebugCurrentFrame;function bn(A){if(A){var Y=A._owner,ce=bs(A.type,A._source,Y?Y.type:null);cc.setExtraStackFrame(ce)}else cc.setExtraStackFrame(null)}function Ed(A,Y,ce,we,He){{var Ot=Function.call.bind(Mt);for(var Ye in A)if(Ot(A,Ye)){var Dt=void 0;try{if(typeof A[Ye]!="function"){var un=Error((we||"React class")+": "+ce+" type `"+Ye+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof A[Ye]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw un.name="Invariant Violation",un}Dt=A[Ye](Y,Ye,we,ce,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(xn){Dt=xn}Dt&&!(Dt instanceof Error)&&(bn(He),ye("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",we||"React class",ce,Ye,typeof Dt),bn(null)),Dt instanceof Error&&!(Dt.message in Tn)&&(Tn[Dt.message]=!0,bn(He),ye("Failed %s type: %s",ce,Dt.message),bn(null))}}}function Fo(A){if(A){var Y=A._owner,ce=bs(A.type,A._source,Y?Y.type:null);se(ce)}else se(null)}var Ht;Ht=!1;function dc(){if(B.current){var A=Ue(B.current.type);if(A)return`
35
+
36
+ Check the render method of \``+A+"`."}return""}function pa(A){if(A!==void 0){var Y=A.fileName.replace(/^.*[\\\/]/,""),ce=A.lineNumber;return`
37
+
38
+ Check your code at `+Y+":"+ce+"."}return""}function Uo(A){return A!=null?pa(A.__source):""}var Ia={};function Ho(A){var Y=dc();if(!Y){var ce=typeof A=="string"?A:A.displayName||A.name;ce&&(Y=`
39
+
40
+ Check the top-level render call using <`+ce+">.")}return Y}function or(A,Y){if(!(!A._store||A._store.validated||A.key!=null)){A._store.validated=!0;var ce=Ho(Y);if(!Ia[ce]){Ia[ce]=!0;var we="";A&&A._owner&&A._owner!==B.current&&(we=" It was passed a child from "+Ue(A._owner.type)+"."),Fo(A),ye('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',ce,we),Fo(null)}}}function Bn(A,Y){if(typeof A=="object"){if(wt(A))for(var ce=0;ce<A.length;ce++){var we=A[ce];sn(we)&&or(we,Y)}else if(sn(A))A._store&&(A._store.validated=!0);else if(A){var He=j(A);if(typeof He=="function"&&He!==A.entries)for(var Ot=He.call(A),Ye;!(Ye=Ot.next()).done;)sn(Ye.value)&&or(Ye.value,Y)}}}function sl(A){{var Y=A.type;if(Y==null||typeof Y=="string")return;var ce;if(typeof Y=="function")ce=Y.propTypes;else if(typeof Y=="object"&&(Y.$$typeof===b||Y.$$typeof===C))ce=Y.propTypes;else return;if(ce){var we=Ue(Y);Ed(ce,A.props,"prop",we,A)}else if(Y.PropTypes!==void 0&&!Ht){Ht=!0;var He=Ue(Y);ye("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",He||"Unknown")}typeof Y.getDefaultProps=="function"&&!Y.getDefaultProps.isReactClassApproved&&ye("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Kr(A){{for(var Y=Object.keys(A.props),ce=0;ce<Y.length;ce++){var we=Y[ce];if(we!=="children"&&we!=="key"){Fo(A),ye("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",we),Fo(null);break}}A.ref!==null&&(Fo(A),ye("Invalid attribute `ref` supplied to `React.Fragment`."),Fo(null))}}function Da(A,Y,ce){var we=Oe(A);if(!we){var He="";(A===void 0||typeof A=="object"&&A!==null&&Object.keys(A).length===0)&&(He+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var Ot=Uo(Y);Ot?He+=Ot:He+=dc();var Ye;A===null?Ye="null":wt(A)?Ye="array":A!==void 0&&A.$$typeof===i?(Ye="<"+(Ue(A.type)||"Unknown")+" />",He=" Did you accidentally export a JSX literal instead of a component?"):Ye=typeof A,ye("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",Ye,He)}var Dt=Nt.apply(this,arguments);if(Dt==null)return Dt;if(we)for(var un=2;un<arguments.length;un++)Bn(arguments[un],A);return A===l?Kr(Dt):sl(Dt),Dt}var Vi=!1;function Xl(A){var Y=Da.bind(null,A);return Y.type=A,Vi||(Vi=!0,Ie("React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead.")),Object.defineProperty(Y,"type",{enumerable:!1,get:function(){return Ie("Factory.type is deprecated. Access the class directly before passing it to createFactory."),Object.defineProperty(this,"type",{value:A}),A}}),Y}function _d(A,Y,ce){for(var we=Xt.apply(this,arguments),He=2;He<arguments.length;He++)Bn(arguments[He],we.type);return sl(we),we}function Td(A,Y){var ce=P.transition;P.transition={};var we=P.transition;P.transition._updatedFibers=new Set;try{A()}finally{if(P.transition=ce,ce===null&&we._updatedFibers){var He=we._updatedFibers.size;He>10&&Ie("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."),we._updatedFibers.clear()}}}var ll=!1,Ql=null;function im(A){if(Ql===null)try{var Y=("require"+Math.random()).slice(0,7),ce=e&&e[Y];Ql=ce.call(e,"timers").setImmediate}catch(we){Ql=function(He){ll===!1&&(ll=!0,typeof MessageChannel=="undefined"&&ye("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."));var Ot=new MessageChannel;Ot.port1.onmessage=He,Ot.port2.postMessage(void 0)}}return Ql(A)}var Bi=0,So=!1;function Vo(A){{var Y=Bi;Bi++,Z.current===null&&(Z.current=[]);var ce=Z.isBatchingLegacy,we;try{if(Z.isBatchingLegacy=!0,we=A(),!ce&&Z.didScheduleLegacyUpdate){var He=Z.current;He!==null&&(Z.didScheduleLegacyUpdate=!1,ul(He))}}catch(nn){throw $i(Y),nn}finally{Z.isBatchingLegacy=ce}if(we!==null&&typeof we=="object"&&typeof we.then=="function"){var Ot=we,Ye=!1,Dt={then:function(nn,Zn){Ye=!0,Ot.then(function(yr){$i(Y),Bi===0?fc(yr,nn,Zn):nn(yr)},function(yr){$i(Y),Zn(yr)})}};return!So&&typeof Promise!="undefined"&&Promise.resolve().then(function(){}).then(function(){Ye||(So=!0,ye("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"))}),Dt}else{var un=we;if($i(Y),Bi===0){var xn=Z.current;xn!==null&&(ul(xn),Z.current=null);var nr={then:function(nn,Zn){Z.current===null?(Z.current=[],fc(un,nn,Zn)):nn(un)}};return nr}else{var $n={then:function(nn,Zn){nn(un)}};return $n}}}}function $i(A){A!==Bi-1&&ye("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "),Bi=A}function fc(A,Y,ce){{var we=Z.current;if(we!==null)try{ul(we),im(function(){we.length===0?(Z.current=null,Y(A)):fc(A,Y,ce)})}catch(He){ce(He)}else Y(A)}}var pc=!1;function ul(A){if(!pc){pc=!0;var Y=0;try{for(;Y<A.length;Y++){var ce=A[Y];do ce=ce(!0);while(ce!==null)}A.length=0}catch(we){throw A=A.slice(Y+1),we}finally{pc=!1}}}var eu=Da,hc=_d,mc=Xl,ko={map:Rr,forEach:jo,count:vo,toArray:Jr,only:go};t.Children=ko,t.Component=Fe,t.Fragment=l,t.Profiler=f,t.PureComponent=Je,t.StrictMode=c,t.Suspense=y,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=be,t.act=Vo,t.cloneElement=hc,t.createContext=_t,t.createElement=eu,t.createFactory=mc,t.createRef=Xe,t.forwardRef=er,t.isValidElement=sn,t.lazy=xi,t.memo=Ke,t.startTransition=Td,t.unstable_act=Vo,t.useCallback=fa,t.useContext=Gt,t.useDebugValue=Yt,t.useDeferredValue=bo,t.useEffect=Or,t.useId=Yl,t.useImperativeHandle=wo,t.useInsertionEffect=tr,t.useLayoutEffect=ir,t.useMemo=yo,t.useReducer=ln,t.useRef=rn,t.useState=Vt,t.useSyncExternalStore=Jl,t.useTransition=en,t.version=n,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__!="undefined"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()}(ph,ph.exports)),ph.exports}var xw;function Hl(){return xw||(xw=1,process.env.NODE_ENV==="production"?cg.exports=sI():cg.exports=lI()),cg.exports}/**
41
+ * @license React
42
+ * react-jsx-runtime.production.min.js
43
+ *
44
+ * Copyright (c) Facebook, Inc. and its affiliates.
45
+ *
46
+ * This source code is licensed under the MIT license found in the
47
+ * LICENSE file in the root directory of this source tree.
48
+ */var Cw;function uI(){if(Cw)return fh;Cw=1;var e=Hl(),t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),i=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function c(f,m,v){var b,y={},S=null,C=null;v!==void 0&&(S=""+v),m.key!==void 0&&(S=""+m.key),m.ref!==void 0&&(C=m.ref);for(b in m)i.call(m,b)&&!l.hasOwnProperty(b)&&(y[b]=m[b]);if(f&&f.defaultProps)for(b in m=f.defaultProps,m)y[b]===void 0&&(y[b]=m[b]);return{$$typeof:t,type:f,key:S,ref:C,props:y,_owner:o.current}}return fh.Fragment=n,fh.jsx=c,fh.jsxs=c,fh}var hh={};/**
49
+ * @license React
50
+ * react-jsx-runtime.development.js
51
+ *
52
+ * Copyright (c) Facebook, Inc. and its affiliates.
53
+ *
54
+ * This source code is licensed under the MIT license found in the
55
+ * LICENSE file in the root directory of this source tree.
56
+ */var Sw;function cI(){return Sw||(Sw=1,process.env.NODE_ENV!=="production"&&function(){var e=Hl(),t=Symbol.for("react.element"),n=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),c=Symbol.for("react.provider"),f=Symbol.for("react.context"),m=Symbol.for("react.forward_ref"),v=Symbol.for("react.suspense"),b=Symbol.for("react.suspense_list"),y=Symbol.for("react.memo"),S=Symbol.for("react.lazy"),C=Symbol.for("react.offscreen"),R=Symbol.iterator,M="@@iterator";function L(J){if(J===null||typeof J!="object")return null;var Oe=R&&J[R]||J[M];return typeof Oe=="function"?Oe:null}var I=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function j(J){{for(var Oe=arguments.length,Ke=new Array(Oe>1?Oe-1:0),st=1;st<Oe;st++)Ke[st-1]=arguments[st];U("error",J,Ke)}}function U(J,Oe,Ke){{var st=I.ReactDebugCurrentFrame,Gt=st.getStackAddendum();Gt!==""&&(Oe+="%s",Ke=Ke.concat([Gt]));var Vt=Ke.map(function(ln){return String(ln)});Vt.unshift("Warning: "+Oe),Function.prototype.apply.call(console[J],console,Vt)}}var P=!1,Z=!1,B=!1,W=!1,G=!1,se;se=Symbol.for("react.module.reference");function ke(J){return!!(typeof J=="string"||typeof J=="function"||J===i||J===l||G||J===o||J===v||J===b||W||J===C||P||Z||B||typeof J=="object"&&J!==null&&(J.$$typeof===S||J.$$typeof===y||J.$$typeof===c||J.$$typeof===f||J.$$typeof===m||J.$$typeof===se||J.getModuleId!==void 0))}function ve(J,Oe,Ke){var st=J.displayName;if(st)return st;var Gt=Oe.displayName||Oe.name||"";return Gt!==""?Ke+"("+Gt+")":Ke}function de(J){return J.displayName||"Context"}function ge(J){if(J==null)return null;if(typeof J.tag=="number"&&j("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof J=="function")return J.displayName||J.name||null;if(typeof J=="string")return J;switch(J){case i:return"Fragment";case n:return"Portal";case l:return"Profiler";case o:return"StrictMode";case v:return"Suspense";case b:return"SuspenseList"}if(typeof J=="object")switch(J.$$typeof){case f:var Oe=J;return de(Oe)+".Consumer";case c:var Ke=J;return de(Ke._context)+".Provider";case m:return ve(J,J.render,"ForwardRef");case y:var st=J.displayName||null;return st!==null?st:ge(J.type)||"Memo";case S:{var Gt=J,Vt=Gt._payload,ln=Gt._init;try{return ge(ln(Vt))}catch(rn){return null}}}return null}var Re=Object.assign,be=0,Ie,ye,Q,Ne,H,K,fe;function $(){}$.__reactDisabledLog=!0;function Fe(){{if(be===0){Ie=console.log,ye=console.info,Q=console.warn,Ne=console.error,H=console.group,K=console.groupCollapsed,fe=console.groupEnd;var J={configurable:!0,enumerable:!0,value:$,writable:!0};Object.defineProperties(console,{info:J,log:J,warn:J,error:J,group:J,groupCollapsed:J,groupEnd:J})}be++}}function it(){{if(be--,be===0){var J={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:Re({},J,{value:Ie}),info:Re({},J,{value:ye}),warn:Re({},J,{value:Q}),error:Re({},J,{value:Ne}),group:Re({},J,{value:H}),groupCollapsed:Re({},J,{value:K}),groupEnd:Re({},J,{value:fe})})}be<0&&j("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Be=I.ReactCurrentDispatcher,Ee;function Ze(J,Oe,Ke){{if(Ee===void 0)try{throw Error()}catch(Gt){var st=Gt.stack.trim().match(/\n( *(at )?)/);Ee=st&&st[1]||""}return`
57
+ `+Ee+J}}var Je=!1,We;{var Xe=typeof WeakMap=="function"?WeakMap:Map;We=new Xe}function Et(J,Oe){if(!J||Je)return"";{var Ke=We.get(J);if(Ke!==void 0)return Ke}var st;Je=!0;var Gt=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var Vt;Vt=Be.current,Be.current=null,Fe();try{if(Oe){var ln=function(){throw Error()};if(Object.defineProperty(ln.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ln,[])}catch(Yt){st=Yt}Reflect.construct(J,[],ln)}else{try{ln.call()}catch(Yt){st=Yt}J.call(ln.prototype)}}else{try{throw Error()}catch(Yt){st=Yt}J()}}catch(Yt){if(Yt&&st&&typeof Yt.stack=="string"){for(var rn=Yt.stack.split(`
58
+ `),Or=st.stack.split(`
59
+ `),tr=rn.length-1,ir=Or.length-1;tr>=1&&ir>=0&&rn[tr]!==Or[ir];)ir--;for(;tr>=1&&ir>=0;tr--,ir--)if(rn[tr]!==Or[ir]){if(tr!==1||ir!==1)do if(tr--,ir--,ir<0||rn[tr]!==Or[ir]){var fa=`
60
+ `+rn[tr].replace(" at new "," at ");return J.displayName&&fa.includes("<anonymous>")&&(fa=fa.replace("<anonymous>",J.displayName)),typeof J=="function"&&We.set(J,fa),fa}while(tr>=1&&ir>=0);break}}}finally{Je=!1,Be.current=Vt,it(),Error.prepareStackTrace=Gt}var yo=J?J.displayName||J.name:"",wo=yo?Ze(yo):"";return typeof J=="function"&&We.set(J,wo),wo}function wt(J,Oe,Ke){return Et(J,!1)}function lt(J){var Oe=J.prototype;return!!(Oe&&Oe.isReactComponent)}function vt(J,Oe,Ke){if(J==null)return"";if(typeof J=="function")return Et(J,lt(J));if(typeof J=="string")return Ze(J);switch(J){case v:return Ze("Suspense");case b:return Ze("SuspenseList")}if(typeof J=="object")switch(J.$$typeof){case m:return wt(J.render);case y:return vt(J.type,Oe,Ke);case S:{var st=J,Gt=st._payload,Vt=st._init;try{return vt(Vt(Gt),Oe,Ke)}catch(ln){}}}return""}var zt=Object.prototype.hasOwnProperty,Ct={},Dn=I.ReactDebugCurrentFrame;function Hn(J){if(J){var Oe=J._owner,Ke=vt(J.type,J._source,Oe?Oe.type:null);Dn.setExtraStackFrame(Ke)}else Dn.setExtraStackFrame(null)}function Ue(J,Oe,Ke,st,Gt){{var Vt=Function.call.bind(zt);for(var ln in J)if(Vt(J,ln)){var rn=void 0;try{if(typeof J[ln]!="function"){var Or=Error((st||"React class")+": "+Ke+" type `"+ln+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof J[ln]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw Or.name="Invariant Violation",Or}rn=J[ln](Oe,ln,st,Ke,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(tr){rn=tr}rn&&!(rn instanceof Error)&&(Hn(Gt),j("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",st||"React class",Ke,ln,typeof rn),Hn(null)),rn instanceof Error&&!(rn.message in Ct)&&(Ct[rn.message]=!0,Hn(Gt),j("Failed %s type: %s",Ke,rn.message),Hn(null))}}}var Mt=Array.isArray;function Pn(J){return Mt(J)}function Wt(J){{var Oe=typeof Symbol=="function"&&Symbol.toStringTag,Ke=Oe&&J[Symbol.toStringTag]||J.constructor.name||"Object";return Ke}}function pr(J){try{return Vn(J),!1}catch(Oe){return!0}}function Vn(J){return""+J}function me(J){if(pr(J))return j("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Wt(J)),Vn(J)}var Me=I.ReactCurrentOwner,ut={key:!0,ref:!0,__self:!0,__source:!0},It,Te;function qe(J){if(zt.call(J,"ref")){var Oe=Object.getOwnPropertyDescriptor(J,"ref").get;if(Oe&&Oe.isReactWarning)return!1}return J.ref!==void 0}function Nt(J){if(zt.call(J,"key")){var Oe=Object.getOwnPropertyDescriptor(J,"key").get;if(Oe&&Oe.isReactWarning)return!1}return J.key!==void 0}function gt(J,Oe){typeof J.ref=="string"&&Me.current}function Xt(J,Oe){{var Ke=function(){It||(It=!0,j("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",Oe))};Ke.isReactWarning=!0,Object.defineProperty(J,"key",{get:Ke,configurable:!0})}}function sn(J,Oe){{var Ke=function(){Te||(Te=!0,j("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",Oe))};Ke.isReactWarning=!0,Object.defineProperty(J,"ref",{get:Ke,configurable:!0})}}var Qt=function(J,Oe,Ke,st,Gt,Vt,ln){var rn={$$typeof:t,type:J,key:Oe,ref:Ke,props:ln,_owner:Vt};return rn._store={},Object.defineProperty(rn._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(rn,"_self",{configurable:!1,enumerable:!1,writable:!1,value:st}),Object.defineProperty(rn,"_source",{configurable:!1,enumerable:!1,writable:!1,value:Gt}),Object.freeze&&(Object.freeze(rn.props),Object.freeze(rn)),rn};function Kn(J,Oe,Ke,st,Gt){{var Vt,ln={},rn=null,Or=null;Ke!==void 0&&(me(Ke),rn=""+Ke),Nt(Oe)&&(me(Oe.key),rn=""+Oe.key),qe(Oe)&&(Or=Oe.ref,gt(Oe,Gt));for(Vt in Oe)zt.call(Oe,Vt)&&!ut.hasOwnProperty(Vt)&&(ln[Vt]=Oe[Vt]);if(J&&J.defaultProps){var tr=J.defaultProps;for(Vt in tr)ln[Vt]===void 0&&(ln[Vt]=tr[Vt])}if(rn||Or){var ir=typeof J=="function"?J.displayName||J.name||"Unknown":J;rn&&Xt(ln,ir),Or&&sn(ln,ir)}return Qt(J,rn,Or,Gt,st,Me.current,ln)}}var cn=I.ReactCurrentOwner,Sn=I.ReactDebugCurrentFrame;function _n(J){if(J){var Oe=J._owner,Ke=vt(J.type,J._source,Oe?Oe.type:null);Sn.setExtraStackFrame(Ke)}else Sn.setExtraStackFrame(null)}var da;da=!1;function jr(J){return typeof J=="object"&&J!==null&&J.$$typeof===t}function Yr(){{if(cn.current){var J=ge(cn.current.type);if(J)return`
61
+
62
+ Check the render method of \``+J+"`."}return""}}function Rr(J){return""}var vo={};function jo(J){{var Oe=Yr();if(!Oe){var Ke=typeof J=="string"?J:J.displayName||J.name;Ke&&(Oe=`
63
+
64
+ Check the top-level render call using <`+Ke+">.")}return Oe}}function Jr(J,Oe){{if(!J._store||J._store.validated||J.key!=null)return;J._store.validated=!0;var Ke=jo(Oe);if(vo[Ke])return;vo[Ke]=!0;var st="";J&&J._owner&&J._owner!==cn.current&&(st=" It was passed a child from "+ge(J._owner.type)+"."),_n(J),j('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',Ke,st),_n(null)}}function go(J,Oe){{if(typeof J!="object")return;if(Pn(J))for(var Ke=0;Ke<J.length;Ke++){var st=J[Ke];jr(st)&&Jr(st,Oe)}else if(jr(J))J._store&&(J._store.validated=!0);else if(J){var Gt=L(J);if(typeof Gt=="function"&&Gt!==J.entries)for(var Vt=Gt.call(J),ln;!(ln=Vt.next()).done;)jr(ln.value)&&Jr(ln.value,Oe)}}}function _t(J){{var Oe=J.type;if(Oe==null||typeof Oe=="string")return;var Ke;if(typeof Oe=="function")Ke=Oe.propTypes;else if(typeof Oe=="object"&&(Oe.$$typeof===m||Oe.$$typeof===y))Ke=Oe.propTypes;else return;if(Ke){var st=ge(Oe);Ue(Ke,J.props,"prop",st,J)}else if(Oe.PropTypes!==void 0&&!da){da=!0;var Gt=ge(Oe);j("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",Gt||"Unknown")}typeof Oe.getDefaultProps=="function"&&!Oe.getDefaultProps.isReactClassApproved&&j("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function kn(J){{for(var Oe=Object.keys(J.props),Ke=0;Ke<Oe.length;Ke++){var st=Oe[Ke];if(st!=="children"&&st!=="key"){_n(J),j("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",st),_n(null);break}}J.ref!==null&&(_n(J),j("Invalid attribute `ref` supplied to `React.Fragment`."),_n(null))}}var Mr={};function gr(J,Oe,Ke,st,Gt,Vt){{var ln=ke(J);if(!ln){var rn="";(J===void 0||typeof J=="object"&&J!==null&&Object.keys(J).length===0)&&(rn+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var Or=Rr();Or?rn+=Or:rn+=Yr();var tr;J===null?tr="null":Pn(J)?tr="array":J!==void 0&&J.$$typeof===t?(tr="<"+(ge(J.type)||"Unknown")+" />",rn=" Did you accidentally export a JSX literal instead of a component?"):tr=typeof J,j("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",tr,rn)}var ir=Kn(J,Oe,Ke,Gt,Vt);if(ir==null)return ir;if(ln){var fa=Oe.children;if(fa!==void 0)if(st)if(Pn(fa)){for(var yo=0;yo<fa.length;yo++)go(fa[yo],J);Object.freeze&&Object.freeze(fa)}else j("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else go(fa,J)}if(zt.call(Oe,"key")){var wo=ge(J),Yt=Object.keys(Oe).filter(function(Yl){return Yl!=="key"}),en=Yt.length>0?"{key: someKey, "+Yt.join(": ..., ")+": ...}":"{key: someKey}";if(!Mr[wo+en]){var bo=Yt.length>0?"{"+Yt.join(": ..., ")+": ...}":"{}";j(`A props object containing a "key" prop is being spread into JSX:
65
+ let props = %s;
66
+ <%s {...props} />
67
+ React keys must be passed directly to JSX without using spread:
68
+ let props = %s;
69
+ <%s key={someKey} {...props} />`,en,wo,bo,wo),Mr[wo+en]=!0}}return J===i?kn(ir):_t(ir),ir}}function La(J,Oe,Ke){return gr(J,Oe,Ke,!0)}function Nr(J,Oe,Ke){return gr(J,Oe,Ke,!1)}var xi=Nr,er=La;hh.Fragment=i,hh.jsx=xi,hh.jsxs=er}()),hh}process.env.NODE_ENV==="production"?W9.exports=uI():W9.exports=cI();var _=W9.exports,q9={exports:{}},Di={},dg={exports:{}},G9={};/**
70
+ * @license React
71
+ * scheduler.production.min.js
72
+ *
73
+ * Copyright (c) Facebook, Inc. and its affiliates.
74
+ *
75
+ * This source code is licensed under the MIT license found in the
76
+ * LICENSE file in the root directory of this source tree.
77
+ */var kw;function dI(){return kw||(kw=1,function(e){function t(Q,Ne){var H=Q.length;Q.push(Ne);e:for(;0<H;){var K=H-1>>>1,fe=Q[K];if(0<o(fe,Ne))Q[K]=Ne,Q[H]=fe,H=K;else break e}}function n(Q){return Q.length===0?null:Q[0]}function i(Q){if(Q.length===0)return null;var Ne=Q[0],H=Q.pop();if(H!==Ne){Q[0]=H;e:for(var K=0,fe=Q.length,$=fe>>>1;K<$;){var Fe=2*(K+1)-1,it=Q[Fe],Be=Fe+1,Ee=Q[Be];if(0>o(it,H))Be<fe&&0>o(Ee,it)?(Q[K]=Ee,Q[Be]=H,K=Be):(Q[K]=it,Q[Fe]=H,K=Fe);else if(Be<fe&&0>o(Ee,H))Q[K]=Ee,Q[Be]=H,K=Be;else break e}}return Ne}function o(Q,Ne){var H=Q.sortIndex-Ne.sortIndex;return H!==0?H:Q.id-Ne.id}if(typeof performance=="object"&&typeof performance.now=="function"){var l=performance;e.unstable_now=function(){return l.now()}}else{var c=Date,f=c.now();e.unstable_now=function(){return c.now()-f}}var m=[],v=[],b=1,y=null,S=3,C=!1,R=!1,M=!1,L=typeof setTimeout=="function"?setTimeout:null,I=typeof clearTimeout=="function"?clearTimeout:null,j=typeof setImmediate!="undefined"?setImmediate:null;typeof navigator!="undefined"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function U(Q){for(var Ne=n(v);Ne!==null;){if(Ne.callback===null)i(v);else if(Ne.startTime<=Q)i(v),Ne.sortIndex=Ne.expirationTime,t(m,Ne);else break;Ne=n(v)}}function P(Q){if(M=!1,U(Q),!R)if(n(m)!==null)R=!0,Ie(Z);else{var Ne=n(v);Ne!==null&&ye(P,Ne.startTime-Q)}}function Z(Q,Ne){R=!1,M&&(M=!1,I(G),G=-1),C=!0;var H=S;try{for(U(Ne),y=n(m);y!==null&&(!(y.expirationTime>Ne)||Q&&!ve());){var K=y.callback;if(typeof K=="function"){y.callback=null,S=y.priorityLevel;var fe=K(y.expirationTime<=Ne);Ne=e.unstable_now(),typeof fe=="function"?y.callback=fe:y===n(m)&&i(m),U(Ne)}else i(m);y=n(m)}if(y!==null)var $=!0;else{var Fe=n(v);Fe!==null&&ye(P,Fe.startTime-Ne),$=!1}return $}finally{y=null,S=H,C=!1}}var B=!1,W=null,G=-1,se=5,ke=-1;function ve(){return!(e.unstable_now()-ke<se)}function de(){if(W!==null){var Q=e.unstable_now();ke=Q;var Ne=!0;try{Ne=W(!0,Q)}finally{Ne?ge():(B=!1,W=null)}}else B=!1}var ge;if(typeof j=="function")ge=function(){j(de)};else if(typeof MessageChannel!="undefined"){var Re=new MessageChannel,be=Re.port2;Re.port1.onmessage=de,ge=function(){be.postMessage(null)}}else ge=function(){L(de,0)};function Ie(Q){W=Q,B||(B=!0,ge())}function ye(Q,Ne){G=L(function(){Q(e.unstable_now())},Ne)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(Q){Q.callback=null},e.unstable_continueExecution=function(){R||C||(R=!0,Ie(Z))},e.unstable_forceFrameRate=function(Q){0>Q||125<Q?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):se=0<Q?Math.floor(1e3/Q):5},e.unstable_getCurrentPriorityLevel=function(){return S},e.unstable_getFirstCallbackNode=function(){return n(m)},e.unstable_next=function(Q){switch(S){case 1:case 2:case 3:var Ne=3;break;default:Ne=S}var H=S;S=Ne;try{return Q()}finally{S=H}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(Q,Ne){switch(Q){case 1:case 2:case 3:case 4:case 5:break;default:Q=3}var H=S;S=Q;try{return Ne()}finally{S=H}},e.unstable_scheduleCallback=function(Q,Ne,H){var K=e.unstable_now();switch(typeof H=="object"&&H!==null?(H=H.delay,H=typeof H=="number"&&0<H?K+H:K):H=K,Q){case 1:var fe=-1;break;case 2:fe=250;break;case 5:fe=1073741823;break;case 4:fe=1e4;break;default:fe=5e3}return fe=H+fe,Q={id:b++,callback:Ne,priorityLevel:Q,startTime:H,expirationTime:fe,sortIndex:-1},H>K?(Q.sortIndex=H,t(v,Q),n(m)===null&&Q===n(v)&&(M?(I(G),G=-1):M=!0,ye(P,H-K))):(Q.sortIndex=fe,t(m,Q),R||C||(R=!0,Ie(Z))),Q},e.unstable_shouldYield=ve,e.unstable_wrapCallback=function(Q){var Ne=S;return function(){var H=S;S=Ne;try{return Q.apply(this,arguments)}finally{S=H}}}}(G9)),G9}var Y9={};/**
78
+ * @license React
79
+ * scheduler.development.js
80
+ *
81
+ * Copyright (c) Facebook, Inc. and its affiliates.
82
+ *
83
+ * This source code is licensed under the MIT license found in the
84
+ * LICENSE file in the root directory of this source tree.
85
+ */var Ew;function fI(){return Ew||(Ew=1,function(e){process.env.NODE_ENV!=="production"&&function(){typeof __REACT_DEVTOOLS_GLOBAL_HOOK__!="undefined"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var t=!1,n=5;function i(Te,qe){var Nt=Te.length;Te.push(qe),c(Te,qe,Nt)}function o(Te){return Te.length===0?null:Te[0]}function l(Te){if(Te.length===0)return null;var qe=Te[0],Nt=Te.pop();return Nt!==qe&&(Te[0]=Nt,f(Te,Nt,0)),qe}function c(Te,qe,Nt){for(var gt=Nt;gt>0;){var Xt=gt-1>>>1,sn=Te[Xt];if(m(sn,qe)>0)Te[Xt]=qe,Te[gt]=sn,gt=Xt;else return}}function f(Te,qe,Nt){for(var gt=Nt,Xt=Te.length,sn=Xt>>>1;gt<sn;){var Qt=(gt+1)*2-1,Kn=Te[Qt],cn=Qt+1,Sn=Te[cn];if(m(Kn,qe)<0)cn<Xt&&m(Sn,Kn)<0?(Te[gt]=Sn,Te[cn]=qe,gt=cn):(Te[gt]=Kn,Te[Qt]=qe,gt=Qt);else if(cn<Xt&&m(Sn,qe)<0)Te[gt]=Sn,Te[cn]=qe,gt=cn;else return}}function m(Te,qe){var Nt=Te.sortIndex-qe.sortIndex;return Nt!==0?Nt:Te.id-qe.id}var v=1,b=2,y=3,S=4,C=5;function R(Te,qe){}var M=typeof performance=="object"&&typeof performance.now=="function";if(M){var L=performance;e.unstable_now=function(){return L.now()}}else{var I=Date,j=I.now();e.unstable_now=function(){return I.now()-j}}var U=1073741823,P=-1,Z=250,B=5e3,W=1e4,G=U,se=[],ke=[],ve=1,de=null,ge=y,Re=!1,be=!1,Ie=!1,ye=typeof setTimeout=="function"?setTimeout:null,Q=typeof clearTimeout=="function"?clearTimeout:null,Ne=typeof setImmediate!="undefined"?setImmediate:null;typeof navigator!="undefined"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function H(Te){for(var qe=o(ke);qe!==null;){if(qe.callback===null)l(ke);else if(qe.startTime<=Te)l(ke),qe.sortIndex=qe.expirationTime,i(se,qe);else return;qe=o(ke)}}function K(Te){if(Ie=!1,H(Te),!be)if(o(se)!==null)be=!0,Vn(fe);else{var qe=o(ke);qe!==null&&me(K,qe.startTime-Te)}}function fe(Te,qe){be=!1,Ie&&(Ie=!1,Me()),Re=!0;var Nt=ge;try{var gt;if(!t)return $(Te,qe)}finally{de=null,ge=Nt,Re=!1}}function $(Te,qe){var Nt=qe;for(H(Nt),de=o(se);de!==null&&!(de.expirationTime>Nt&&(!Te||Dn()));){var gt=de.callback;if(typeof gt=="function"){de.callback=null,ge=de.priorityLevel;var Xt=de.expirationTime<=Nt,sn=gt(Xt);Nt=e.unstable_now(),typeof sn=="function"?de.callback=sn:de===o(se)&&l(se),H(Nt)}else l(se);de=o(se)}if(de!==null)return!0;var Qt=o(ke);return Qt!==null&&me(K,Qt.startTime-Nt),!1}function Fe(Te,qe){switch(Te){case v:case b:case y:case S:case C:break;default:Te=y}var Nt=ge;ge=Te;try{return qe()}finally{ge=Nt}}function it(Te){var qe;switch(ge){case v:case b:case y:qe=y;break;default:qe=ge;break}var Nt=ge;ge=qe;try{return Te()}finally{ge=Nt}}function Be(Te){var qe=ge;return function(){var Nt=ge;ge=qe;try{return Te.apply(this,arguments)}finally{ge=Nt}}}function Ee(Te,qe,Nt){var gt=e.unstable_now(),Xt;if(typeof Nt=="object"&&Nt!==null){var sn=Nt.delay;typeof sn=="number"&&sn>0?Xt=gt+sn:Xt=gt}else Xt=gt;var Qt;switch(Te){case v:Qt=P;break;case b:Qt=Z;break;case C:Qt=G;break;case S:Qt=W;break;case y:default:Qt=B;break}var Kn=Xt+Qt,cn={id:ve++,callback:qe,priorityLevel:Te,startTime:Xt,expirationTime:Kn,sortIndex:-1};return Xt>gt?(cn.sortIndex=Xt,i(ke,cn),o(se)===null&&cn===o(ke)&&(Ie?Me():Ie=!0,me(K,Xt-gt))):(cn.sortIndex=Kn,i(se,cn),!be&&!Re&&(be=!0,Vn(fe))),cn}function Ze(){}function Je(){!be&&!Re&&(be=!0,Vn(fe))}function We(){return o(se)}function Xe(Te){Te.callback=null}function Et(){return ge}var wt=!1,lt=null,vt=-1,zt=n,Ct=-1;function Dn(){var Te=e.unstable_now()-Ct;return!(Te<zt)}function Hn(){}function Ue(Te){if(Te<0||Te>125){console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported");return}Te>0?zt=Math.floor(1e3/Te):zt=n}var Mt=function(){if(lt!==null){var Te=e.unstable_now();Ct=Te;var qe=!0,Nt=!0;try{Nt=lt(qe,Te)}finally{Nt?Pn():(wt=!1,lt=null)}}else wt=!1},Pn;if(typeof Ne=="function")Pn=function(){Ne(Mt)};else if(typeof MessageChannel!="undefined"){var Wt=new MessageChannel,pr=Wt.port2;Wt.port1.onmessage=Mt,Pn=function(){pr.postMessage(null)}}else Pn=function(){ye(Mt,0)};function Vn(Te){lt=Te,wt||(wt=!0,Pn())}function me(Te,qe){vt=ye(function(){Te(e.unstable_now())},qe)}function Me(){Q(vt),vt=-1}var ut=Hn,It=null;e.unstable_IdlePriority=C,e.unstable_ImmediatePriority=v,e.unstable_LowPriority=S,e.unstable_NormalPriority=y,e.unstable_Profiling=It,e.unstable_UserBlockingPriority=b,e.unstable_cancelCallback=Xe,e.unstable_continueExecution=Je,e.unstable_forceFrameRate=Ue,e.unstable_getCurrentPriorityLevel=Et,e.unstable_getFirstCallbackNode=We,e.unstable_next=it,e.unstable_pauseExecution=Ze,e.unstable_requestPaint=ut,e.unstable_runWithPriority=Fe,e.unstable_scheduleCallback=Ee,e.unstable_shouldYield=Dn,e.unstable_wrapCallback=Be,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__!="undefined"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()}(Y9)),Y9}var _w;function Tw(){return _w||(_w=1,process.env.NODE_ENV==="production"?dg.exports=dI():dg.exports=fI()),dg.exports}/**
86
+ * @license React
87
+ * react-dom.production.min.js
88
+ *
89
+ * Copyright (c) Facebook, Inc. and its affiliates.
90
+ *
91
+ * This source code is licensed under the MIT license found in the
92
+ * LICENSE file in the root directory of this source tree.
93
+ */var Rw;function pI(){if(Rw)return Di;Rw=1;var e=Hl(),t=Tw();function n(s){for(var u="https://reactjs.org/docs/error-decoder.html?invariant="+s,h=1;h<arguments.length;h++)u+="&args[]="+encodeURIComponent(arguments[h]);return"Minified React error #"+s+"; visit "+u+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var i=new Set,o={};function l(s,u){c(s,u),c(s+"Capture",u)}function c(s,u){for(o[s]=u,s=0;s<u.length;s++)i.add(u[s])}var f=!(typeof window=="undefined"||typeof window.document=="undefined"||typeof window.document.createElement=="undefined"),m=Object.prototype.hasOwnProperty,v=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,b={},y={};function S(s){return m.call(y,s)?!0:m.call(b,s)?!1:v.test(s)?y[s]=!0:(b[s]=!0,!1)}function C(s,u,h,w){if(h!==null&&h.type===0)return!1;switch(typeof u){case"function":case"symbol":return!0;case"boolean":return w?!1:h!==null?!h.acceptsBooleans:(s=s.toLowerCase().slice(0,5),s!=="data-"&&s!=="aria-");default:return!1}}function R(s,u,h,w){if(u===null||typeof u=="undefined"||C(s,u,h,w))return!0;if(w)return!1;if(h!==null)switch(h.type){case 3:return!u;case 4:return u===!1;case 5:return isNaN(u);case 6:return isNaN(u)||1>u}return!1}function M(s,u,h,w,k,T,z){this.acceptsBooleans=u===2||u===3||u===4,this.attributeName=w,this.attributeNamespace=k,this.mustUseProperty=h,this.propertyName=s,this.type=u,this.sanitizeURL=T,this.removeEmptyString=z}var L={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(s){L[s]=new M(s,0,!1,s,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(s){var u=s[0];L[u]=new M(u,1,!1,s[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(s){L[s]=new M(s,2,!1,s.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(s){L[s]=new M(s,2,!1,s,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(s){L[s]=new M(s,3,!1,s.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(s){L[s]=new M(s,3,!0,s,null,!1,!1)}),["capture","download"].forEach(function(s){L[s]=new M(s,4,!1,s,null,!1,!1)}),["cols","rows","size","span"].forEach(function(s){L[s]=new M(s,6,!1,s,null,!1,!1)}),["rowSpan","start"].forEach(function(s){L[s]=new M(s,5,!1,s.toLowerCase(),null,!1,!1)});var I=/[\-:]([a-z])/g;function j(s){return s[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(s){var u=s.replace(I,j);L[u]=new M(u,1,!1,s,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(s){var u=s.replace(I,j);L[u]=new M(u,1,!1,s,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(s){var u=s.replace(I,j);L[u]=new M(u,1,!1,s,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(s){L[s]=new M(s,1,!1,s.toLowerCase(),null,!1,!1)}),L.xlinkHref=new M("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(s){L[s]=new M(s,1,!1,s.toLowerCase(),null,!0,!0)});function U(s,u,h,w){var k=L.hasOwnProperty(u)?L[u]:null;(k!==null?k.type!==0:w||!(2<u.length)||u[0]!=="o"&&u[0]!=="O"||u[1]!=="n"&&u[1]!=="N")&&(R(u,h,k,w)&&(h=null),w||k===null?S(u)&&(h===null?s.removeAttribute(u):s.setAttribute(u,""+h)):k.mustUseProperty?s[k.propertyName]=h===null?k.type===3?!1:"":h:(u=k.attributeName,w=k.attributeNamespace,h===null?s.removeAttribute(u):(k=k.type,h=k===3||k===4&&h===!0?"":""+h,w?s.setAttributeNS(w,u,h):s.setAttribute(u,h))))}var P=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Z=Symbol.for("react.element"),B=Symbol.for("react.portal"),W=Symbol.for("react.fragment"),G=Symbol.for("react.strict_mode"),se=Symbol.for("react.profiler"),ke=Symbol.for("react.provider"),ve=Symbol.for("react.context"),de=Symbol.for("react.forward_ref"),ge=Symbol.for("react.suspense"),Re=Symbol.for("react.suspense_list"),be=Symbol.for("react.memo"),Ie=Symbol.for("react.lazy"),ye=Symbol.for("react.offscreen"),Q=Symbol.iterator;function Ne(s){return s===null||typeof s!="object"?null:(s=Q&&s[Q]||s["@@iterator"],typeof s=="function"?s:null)}var H=Object.assign,K;function fe(s){if(K===void 0)try{throw Error()}catch(h){var u=h.stack.trim().match(/\n( *(at )?)/);K=u&&u[1]||""}return`
94
+ `+K+s}var $=!1;function Fe(s,u){if(!s||$)return"";$=!0;var h=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(u)if(u=function(){throw Error()},Object.defineProperty(u.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(u,[])}catch(pe){var w=pe}Reflect.construct(s,[],u)}else{try{u.call()}catch(pe){w=pe}s.call(u.prototype)}else{try{throw Error()}catch(pe){w=pe}s()}}catch(pe){if(pe&&w&&typeof pe.stack=="string"){for(var k=pe.stack.split(`
95
+ `),T=w.stack.split(`
96
+ `),z=k.length-1,q=T.length-1;1<=z&&0<=q&&k[z]!==T[q];)q--;for(;1<=z&&0<=q;z--,q--)if(k[z]!==T[q]){if(z!==1||q!==1)do if(z--,q--,0>q||k[z]!==T[q]){var X=`
97
+ `+k[z].replace(" at new "," at ");return s.displayName&&X.includes("<anonymous>")&&(X=X.replace("<anonymous>",s.displayName)),X}while(1<=z&&0<=q);break}}}finally{$=!1,Error.prepareStackTrace=h}return(s=s?s.displayName||s.name:"")?fe(s):""}function it(s){switch(s.tag){case 5:return fe(s.type);case 16:return fe("Lazy");case 13:return fe("Suspense");case 19:return fe("SuspenseList");case 0:case 2:case 15:return s=Fe(s.type,!1),s;case 11:return s=Fe(s.type.render,!1),s;case 1:return s=Fe(s.type,!0),s;default:return""}}function Be(s){if(s==null)return null;if(typeof s=="function")return s.displayName||s.name||null;if(typeof s=="string")return s;switch(s){case W:return"Fragment";case B:return"Portal";case se:return"Profiler";case G:return"StrictMode";case ge:return"Suspense";case Re:return"SuspenseList"}if(typeof s=="object")switch(s.$$typeof){case ve:return(s.displayName||"Context")+".Consumer";case ke:return(s._context.displayName||"Context")+".Provider";case de:var u=s.render;return s=s.displayName,s||(s=u.displayName||u.name||"",s=s!==""?"ForwardRef("+s+")":"ForwardRef"),s;case be:return u=s.displayName||null,u!==null?u:Be(s.type)||"Memo";case Ie:u=s._payload,s=s._init;try{return Be(s(u))}catch(h){}}return null}function Ee(s){var u=s.type;switch(s.tag){case 24:return"Cache";case 9:return(u.displayName||"Context")+".Consumer";case 10:return(u._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return s=u.render,s=s.displayName||s.name||"",u.displayName||(s!==""?"ForwardRef("+s+")":"ForwardRef");case 7:return"Fragment";case 5:return u;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Be(u);case 8:return u===G?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof u=="function")return u.displayName||u.name||null;if(typeof u=="string")return u}return null}function Ze(s){switch(typeof s){case"boolean":case"number":case"string":case"undefined":return s;case"object":return s;default:return""}}function Je(s){var u=s.type;return(s=s.nodeName)&&s.toLowerCase()==="input"&&(u==="checkbox"||u==="radio")}function We(s){var u=Je(s)?"checked":"value",h=Object.getOwnPropertyDescriptor(s.constructor.prototype,u),w=""+s[u];if(!s.hasOwnProperty(u)&&typeof h!="undefined"&&typeof h.get=="function"&&typeof h.set=="function"){var k=h.get,T=h.set;return Object.defineProperty(s,u,{configurable:!0,get:function(){return k.call(this)},set:function(z){w=""+z,T.call(this,z)}}),Object.defineProperty(s,u,{enumerable:h.enumerable}),{getValue:function(){return w},setValue:function(z){w=""+z},stopTracking:function(){s._valueTracker=null,delete s[u]}}}}function Xe(s){s._valueTracker||(s._valueTracker=We(s))}function Et(s){if(!s)return!1;var u=s._valueTracker;if(!u)return!0;var h=u.getValue(),w="";return s&&(w=Je(s)?s.checked?"true":"false":s.value),s=w,s!==h?(u.setValue(s),!0):!1}function wt(s){if(s=s||(typeof document!="undefined"?document:void 0),typeof s=="undefined")return null;try{return s.activeElement||s.body}catch(u){return s.body}}function lt(s,u){var h=u.checked;return H({},u,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:h!=null?h:s._wrapperState.initialChecked})}function vt(s,u){var h=u.defaultValue==null?"":u.defaultValue,w=u.checked!=null?u.checked:u.defaultChecked;h=Ze(u.value!=null?u.value:h),s._wrapperState={initialChecked:w,initialValue:h,controlled:u.type==="checkbox"||u.type==="radio"?u.checked!=null:u.value!=null}}function zt(s,u){u=u.checked,u!=null&&U(s,"checked",u,!1)}function Ct(s,u){zt(s,u);var h=Ze(u.value),w=u.type;if(h!=null)w==="number"?(h===0&&s.value===""||s.value!=h)&&(s.value=""+h):s.value!==""+h&&(s.value=""+h);else if(w==="submit"||w==="reset"){s.removeAttribute("value");return}u.hasOwnProperty("value")?Hn(s,u.type,h):u.hasOwnProperty("defaultValue")&&Hn(s,u.type,Ze(u.defaultValue)),u.checked==null&&u.defaultChecked!=null&&(s.defaultChecked=!!u.defaultChecked)}function Dn(s,u,h){if(u.hasOwnProperty("value")||u.hasOwnProperty("defaultValue")){var w=u.type;if(!(w!=="submit"&&w!=="reset"||u.value!==void 0&&u.value!==null))return;u=""+s._wrapperState.initialValue,h||u===s.value||(s.value=u),s.defaultValue=u}h=s.name,h!==""&&(s.name=""),s.defaultChecked=!!s._wrapperState.initialChecked,h!==""&&(s.name=h)}function Hn(s,u,h){(u!=="number"||wt(s.ownerDocument)!==s)&&(h==null?s.defaultValue=""+s._wrapperState.initialValue:s.defaultValue!==""+h&&(s.defaultValue=""+h))}var Ue=Array.isArray;function Mt(s,u,h,w){if(s=s.options,u){u={};for(var k=0;k<h.length;k++)u["$"+h[k]]=!0;for(h=0;h<s.length;h++)k=u.hasOwnProperty("$"+s[h].value),s[h].selected!==k&&(s[h].selected=k),k&&w&&(s[h].defaultSelected=!0)}else{for(h=""+Ze(h),u=null,k=0;k<s.length;k++){if(s[k].value===h){s[k].selected=!0,w&&(s[k].defaultSelected=!0);return}u!==null||s[k].disabled||(u=s[k])}u!==null&&(u.selected=!0)}}function Pn(s,u){if(u.dangerouslySetInnerHTML!=null)throw Error(n(91));return H({},u,{value:void 0,defaultValue:void 0,children:""+s._wrapperState.initialValue})}function Wt(s,u){var h=u.value;if(h==null){if(h=u.children,u=u.defaultValue,h!=null){if(u!=null)throw Error(n(92));if(Ue(h)){if(1<h.length)throw Error(n(93));h=h[0]}u=h}u==null&&(u=""),h=u}s._wrapperState={initialValue:Ze(h)}}function pr(s,u){var h=Ze(u.value),w=Ze(u.defaultValue);h!=null&&(h=""+h,h!==s.value&&(s.value=h),u.defaultValue==null&&s.defaultValue!==h&&(s.defaultValue=h)),w!=null&&(s.defaultValue=""+w)}function Vn(s){var u=s.textContent;u===s._wrapperState.initialValue&&u!==""&&u!==null&&(s.value=u)}function me(s){switch(s){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Me(s,u){return s==null||s==="http://www.w3.org/1999/xhtml"?me(u):s==="http://www.w3.org/2000/svg"&&u==="foreignObject"?"http://www.w3.org/1999/xhtml":s}var ut,It=function(s){return typeof MSApp!="undefined"&&MSApp.execUnsafeLocalFunction?function(u,h,w,k){MSApp.execUnsafeLocalFunction(function(){return s(u,h,w,k)})}:s}(function(s,u){if(s.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in s)s.innerHTML=u;else{for(ut=ut||document.createElement("div"),ut.innerHTML="<svg>"+u.valueOf().toString()+"</svg>",u=ut.firstChild;s.firstChild;)s.removeChild(s.firstChild);for(;u.firstChild;)s.appendChild(u.firstChild)}});function Te(s,u){if(u){var h=s.firstChild;if(h&&h===s.lastChild&&h.nodeType===3){h.nodeValue=u;return}}s.textContent=u}var qe={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Nt=["Webkit","ms","Moz","O"];Object.keys(qe).forEach(function(s){Nt.forEach(function(u){u=u+s.charAt(0).toUpperCase()+s.substring(1),qe[u]=qe[s]})});function gt(s,u,h){return u==null||typeof u=="boolean"||u===""?"":h||typeof u!="number"||u===0||qe.hasOwnProperty(s)&&qe[s]?(""+u).trim():u+"px"}function Xt(s,u){s=s.style;for(var h in u)if(u.hasOwnProperty(h)){var w=h.indexOf("--")===0,k=gt(h,u[h],w);h==="float"&&(h="cssFloat"),w?s.setProperty(h,k):s[h]=k}}var sn=H({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Qt(s,u){if(u){if(sn[s]&&(u.children!=null||u.dangerouslySetInnerHTML!=null))throw Error(n(137,s));if(u.dangerouslySetInnerHTML!=null){if(u.children!=null)throw Error(n(60));if(typeof u.dangerouslySetInnerHTML!="object"||!("__html"in u.dangerouslySetInnerHTML))throw Error(n(61))}if(u.style!=null&&typeof u.style!="object")throw Error(n(62))}}function Kn(s,u){if(s.indexOf("-")===-1)return typeof u.is=="string";switch(s){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var cn=null;function Sn(s){return s=s.target||s.srcElement||window,s.correspondingUseElement&&(s=s.correspondingUseElement),s.nodeType===3?s.parentNode:s}var _n=null,da=null,jr=null;function Yr(s){if(s=Tt(s)){if(typeof _n!="function")throw Error(n(280));var u=s.stateNode;u&&(u=wr(u),_n(s.stateNode,s.type,u))}}function Rr(s){da?jr?jr.push(s):jr=[s]:da=s}function vo(){if(da){var s=da,u=jr;if(jr=da=null,Yr(s),u)for(s=0;s<u.length;s++)Yr(u[s])}}function jo(s,u){return s(u)}function Jr(){}var go=!1;function _t(s,u,h){if(go)return s(u,h);go=!0;try{return jo(s,u,h)}finally{go=!1,(da!==null||jr!==null)&&(Jr(),vo())}}function kn(s,u){var h=s.stateNode;if(h===null)return null;var w=wr(h);if(w===null)return null;h=w[u];e:switch(u){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(w=!w.disabled)||(s=s.type,w=!(s==="button"||s==="input"||s==="select"||s==="textarea")),s=!w;break e;default:s=!1}if(s)return null;if(h&&typeof h!="function")throw Error(n(231,u,typeof h));return h}var Mr=!1;if(f)try{var gr={};Object.defineProperty(gr,"passive",{get:function(){Mr=!0}}),window.addEventListener("test",gr,gr),window.removeEventListener("test",gr,gr)}catch(s){Mr=!1}function La(s,u,h,w,k,T,z,q,X){var pe=Array.prototype.slice.call(arguments,3);try{u.apply(h,pe)}catch(De){this.onError(De)}}var Nr=!1,xi=null,er=!1,J=null,Oe={onError:function(s){Nr=!0,xi=s}};function Ke(s,u,h,w,k,T,z,q,X){Nr=!1,xi=null,La.apply(Oe,arguments)}function st(s,u,h,w,k,T,z,q,X){if(Ke.apply(this,arguments),Nr){if(Nr){var pe=xi;Nr=!1,xi=null}else throw Error(n(198));er||(er=!0,J=pe)}}function Gt(s){var u=s,h=s;if(s.alternate)for(;u.return;)u=u.return;else{s=u;do u=s,u.flags&4098&&(h=u.return),s=u.return;while(s)}return u.tag===3?h:null}function Vt(s){if(s.tag===13){var u=s.memoizedState;if(u===null&&(s=s.alternate,s!==null&&(u=s.memoizedState)),u!==null)return u.dehydrated}return null}function ln(s){if(Gt(s)!==s)throw Error(n(188))}function rn(s){var u=s.alternate;if(!u){if(u=Gt(s),u===null)throw Error(n(188));return u!==s?null:s}for(var h=s,w=u;;){var k=h.return;if(k===null)break;var T=k.alternate;if(T===null){if(w=k.return,w!==null){h=w;continue}break}if(k.child===T.child){for(T=k.child;T;){if(T===h)return ln(k),s;if(T===w)return ln(k),u;T=T.sibling}throw Error(n(188))}if(h.return!==w.return)h=k,w=T;else{for(var z=!1,q=k.child;q;){if(q===h){z=!0,h=k,w=T;break}if(q===w){z=!0,w=k,h=T;break}q=q.sibling}if(!z){for(q=T.child;q;){if(q===h){z=!0,h=T,w=k;break}if(q===w){z=!0,w=T,h=k;break}q=q.sibling}if(!z)throw Error(n(189))}}if(h.alternate!==w)throw Error(n(190))}if(h.tag!==3)throw Error(n(188));return h.stateNode.current===h?s:u}function Or(s){return s=rn(s),s!==null?tr(s):null}function tr(s){if(s.tag===5||s.tag===6)return s;for(s=s.child;s!==null;){var u=tr(s);if(u!==null)return u;s=s.sibling}return null}var ir=t.unstable_scheduleCallback,fa=t.unstable_cancelCallback,yo=t.unstable_shouldYield,wo=t.unstable_requestPaint,Yt=t.unstable_now,en=t.unstable_getCurrentPriorityLevel,bo=t.unstable_ImmediatePriority,Yl=t.unstable_UserBlockingPriority,Jl=t.unstable_NormalPriority,rl=t.unstable_LowPriority,ic=t.unstable_IdlePriority,al=null,Ka=null;function kd(s){if(Ka&&typeof Ka.onCommitFiberRoot=="function")try{Ka.onCommitFiberRoot(al,s,void 0,(s.current.flags&128)===128)}catch(u){}}var Aa=Math.clz32?Math.clz32:oc,Tp=Math.log,Rp=Math.LN2;function oc(s){return s>>>=0,s===0?32:31-(Tp(s)/Rp|0)|0}var il=64,Ci=4194304;function xo(s){switch(s&-s){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return s&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return s&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return s}}function Co(s,u){var h=s.pendingLanes;if(h===0)return 0;var w=0,k=s.suspendedLanes,T=s.pingedLanes,z=h&268435455;if(z!==0){var q=z&~k;q!==0?w=xo(q):(T&=z,T!==0&&(w=xo(T)))}else z=h&~k,z!==0?w=xo(z):T!==0&&(w=xo(T));if(w===0)return 0;if(u!==0&&u!==w&&!(u&k)&&(k=w&-w,T=u&-u,k>=T||k===16&&(T&4194240)!==0))return u;if(w&4&&(w|=h&16),u=s.entangledLanes,u!==0)for(s=s.entanglements,u&=w;0<u;)h=31-Aa(u),k=1<<h,w|=s[h],u&=~k;return w}function sc(s,u){switch(s){case 1:case 2:case 4:return u+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return u+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Kl(s,u){for(var h=s.suspendedLanes,w=s.pingedLanes,k=s.expirationTimes,T=s.pendingLanes;0<T;){var z=31-Aa(T),q=1<<z,X=k[z];X===-1?(!(q&h)||q&w)&&(k[z]=sc(q,u)):X<=u&&(s.expiredLanes|=q),T&=~q}}function ol(s){return s=s.pendingLanes&-1073741825,s!==0?s:s&1073741824?1073741824:0}function lc(){var s=il;return il<<=1,!(il&4194240)&&(il=64),s}function uc(s){for(var u=[],h=0;31>h;h++)u.push(s);return u}function ws(s,u,h){s.pendingLanes|=u,u!==536870912&&(s.suspendedLanes=0,s.pingedLanes=0),s=s.eventTimes,u=31-Aa(u),s[u]=h}function am(s,u){var h=s.pendingLanes&~u;s.pendingLanes=u,s.suspendedLanes=0,s.pingedLanes=0,s.expiredLanes&=u,s.mutableReadLanes&=u,s.entangledLanes&=u,u=s.entanglements;var w=s.eventTimes;for(s=s.expirationTimes;0<h;){var k=31-Aa(h),T=1<<k;u[k]=0,w[k]=-1,s[k]=-1,h&=~T}}function bs(s,u){var h=s.entangledLanes|=u;for(s=s.entanglements;h;){var w=31-Aa(h),k=1<<w;k&u|s[w]&u&&(s[w]|=u),h&=~k}}var Tn=0;function cc(s){return s&=-s,1<s?4<s?s&268435455?16:536870912:4:1}var bn,Ed,Fo,Ht,dc,pa=!1,Uo=[],Ia=null,Ho=null,or=null,Bn=new Map,sl=new Map,Kr=[],Da="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Vi(s,u){switch(s){case"focusin":case"focusout":Ia=null;break;case"dragenter":case"dragleave":Ho=null;break;case"mouseover":case"mouseout":or=null;break;case"pointerover":case"pointerout":Bn.delete(u.pointerId);break;case"gotpointercapture":case"lostpointercapture":sl.delete(u.pointerId)}}function Xl(s,u,h,w,k,T){return s===null||s.nativeEvent!==T?(s={blockedOn:u,domEventName:h,eventSystemFlags:w,nativeEvent:T,targetContainers:[k]},u!==null&&(u=Tt(u),u!==null&&Ed(u)),s):(s.eventSystemFlags|=w,u=s.targetContainers,k!==null&&u.indexOf(k)===-1&&u.push(k),s)}function _d(s,u,h,w,k){switch(u){case"focusin":return Ia=Xl(Ia,s,u,h,w,k),!0;case"dragenter":return Ho=Xl(Ho,s,u,h,w,k),!0;case"mouseover":return or=Xl(or,s,u,h,w,k),!0;case"pointerover":var T=k.pointerId;return Bn.set(T,Xl(Bn.get(T)||null,s,u,h,w,k)),!0;case"gotpointercapture":return T=k.pointerId,sl.set(T,Xl(sl.get(T)||null,s,u,h,w,k)),!0}return!1}function Td(s){var u=su(s.target);if(u!==null){var h=Gt(u);if(h!==null){if(u=h.tag,u===13){if(u=Vt(h),u!==null){s.blockedOn=u,dc(s.priority,function(){Fo(h)});return}}else if(u===3&&h.stateNode.current.memoizedState.isDehydrated){s.blockedOn=h.tag===3?h.stateNode.containerInfo:null;return}}}s.blockedOn=null}function ll(s){if(s.blockedOn!==null)return!1;for(var u=s.targetContainers;0<u.length;){var h=hc(s.domEventName,s.eventSystemFlags,u[0],s.nativeEvent);if(h===null){h=s.nativeEvent;var w=new h.constructor(h.type,h);cn=w,h.target.dispatchEvent(w),cn=null}else return u=Tt(h),u!==null&&Ed(u),s.blockedOn=h,!1;u.shift()}return!0}function Ql(s,u,h){ll(s)&&h.delete(u)}function im(){pa=!1,Ia!==null&&ll(Ia)&&(Ia=null),Ho!==null&&ll(Ho)&&(Ho=null),or!==null&&ll(or)&&(or=null),Bn.forEach(Ql),sl.forEach(Ql)}function Bi(s,u){s.blockedOn===u&&(s.blockedOn=null,pa||(pa=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,im)))}function So(s){function u(k){return Bi(k,s)}if(0<Uo.length){Bi(Uo[0],s);for(var h=1;h<Uo.length;h++){var w=Uo[h];w.blockedOn===s&&(w.blockedOn=null)}}for(Ia!==null&&Bi(Ia,s),Ho!==null&&Bi(Ho,s),or!==null&&Bi(or,s),Bn.forEach(u),sl.forEach(u),h=0;h<Kr.length;h++)w=Kr[h],w.blockedOn===s&&(w.blockedOn=null);for(;0<Kr.length&&(h=Kr[0],h.blockedOn===null);)Td(h),h.blockedOn===null&&Kr.shift()}var Vo=P.ReactCurrentBatchConfig,$i=!0;function fc(s,u,h,w){var k=Tn,T=Vo.transition;Vo.transition=null;try{Tn=1,ul(s,u,h,w)}finally{Tn=k,Vo.transition=T}}function pc(s,u,h,w){var k=Tn,T=Vo.transition;Vo.transition=null;try{Tn=4,ul(s,u,h,w)}finally{Tn=k,Vo.transition=T}}function ul(s,u,h,w){if($i){var k=hc(s,u,h,w);if(k===null)Up(s,u,w,eu,h),Vi(s,w);else if(_d(k,s,u,h,w))w.stopPropagation();else if(Vi(s,w),u&4&&-1<Da.indexOf(s)){for(;k!==null;){var T=Tt(k);if(T!==null&&bn(T),T=hc(s,u,h,w),T===null&&Up(s,u,w,eu,h),T===k)break;k=T}k!==null&&w.stopPropagation()}else Up(s,u,w,null,h)}}var eu=null;function hc(s,u,h,w){if(eu=null,s=Sn(w),s=su(s),s!==null)if(u=Gt(s),u===null)s=null;else if(h=u.tag,h===13){if(s=Vt(u),s!==null)return s;s=null}else if(h===3){if(u.stateNode.current.memoizedState.isDehydrated)return u.tag===3?u.stateNode.containerInfo:null;s=null}else u!==s&&(s=null);return eu=s,null}function mc(s){switch(s){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(en()){case bo:return 1;case Yl:return 4;case Jl:case rl:return 16;case ic:return 536870912;default:return 16}default:return 16}}var ko=null,A=null,Y=null;function ce(){if(Y)return Y;var s,u=A,h=u.length,w,k="value"in ko?ko.value:ko.textContent,T=k.length;for(s=0;s<h&&u[s]===k[s];s++);var z=h-s;for(w=1;w<=z&&u[h-w]===k[T-w];w++);return Y=k.slice(s,1<w?1-w:void 0)}function we(s){var u=s.keyCode;return"charCode"in s?(s=s.charCode,s===0&&u===13&&(s=13)):s=u,s===10&&(s=13),32<=s||s===13?s:0}function He(){return!0}function Ot(){return!1}function Ye(s){function u(h,w,k,T,z){this._reactName=h,this._targetInst=k,this.type=w,this.nativeEvent=T,this.target=z,this.currentTarget=null;for(var q in s)s.hasOwnProperty(q)&&(h=s[q],this[q]=h?h(T):T[q]);return this.isDefaultPrevented=(T.defaultPrevented!=null?T.defaultPrevented:T.returnValue===!1)?He:Ot,this.isPropagationStopped=Ot,this}return H(u.prototype,{preventDefault:function(){this.defaultPrevented=!0;var h=this.nativeEvent;h&&(h.preventDefault?h.preventDefault():typeof h.returnValue!="unknown"&&(h.returnValue=!1),this.isDefaultPrevented=He)},stopPropagation:function(){var h=this.nativeEvent;h&&(h.stopPropagation?h.stopPropagation():typeof h.cancelBubble!="unknown"&&(h.cancelBubble=!0),this.isPropagationStopped=He)},persist:function(){},isPersistent:He}),u}var Dt={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(s){return s.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},un=Ye(Dt),xn=H({},Dt,{view:0,detail:0}),nr=Ye(xn),$n,nn,Zn,yr=H({},xn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:cm,button:0,buttons:0,relatedTarget:function(s){return s.relatedTarget===void 0?s.fromElement===s.srcElement?s.toElement:s.fromElement:s.relatedTarget},movementX:function(s){return"movementX"in s?s.movementX:(s!==Zn&&(Zn&&s.type==="mousemove"?($n=s.screenX-Zn.screenX,nn=s.screenY-Zn.screenY):nn=$n=0,Zn=s),$n)},movementY:function(s){return"movementY"in s?s.movementY:nn}}),cl=Ye(yr),Rd=H({},yr,{dataTransfer:0}),xs=Ye(Rd),Md=H({},xn,{relatedTarget:0}),tu=Ye(Md),om=H({},Dt,{animationName:0,elapsedTime:0,pseudoElement:0}),Mp=Ye(om),sm=H({},Dt,{clipboardData:function(s){return"clipboardData"in s?s.clipboardData:window.clipboardData}}),t0=Ye(sm),lm=H({},Dt,{data:0}),um=Ye(lm),n0={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},r0={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},e6={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Cs(s){var u=this.nativeEvent;return u.getModifierState?u.getModifierState(s):(s=e6[s])?!!u[s]:!1}function cm(){return Cs}var dm=H({},xn,{key:function(s){if(s.key){var u=n0[s.key]||s.key;if(u!=="Unidentified")return u}return s.type==="keypress"?(s=we(s),s===13?"Enter":String.fromCharCode(s)):s.type==="keydown"||s.type==="keyup"?r0[s.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:cm,charCode:function(s){return s.type==="keypress"?we(s):0},keyCode:function(s){return s.type==="keydown"||s.type==="keyup"?s.keyCode:0},which:function(s){return s.type==="keypress"?we(s):s.type==="keydown"||s.type==="keyup"?s.keyCode:0}}),fm=Ye(dm),pm=H({},yr,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),a0=Ye(pm),Np=H({},xn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:cm}),i0=Ye(Np),Xa=H({},Dt,{propertyName:0,elapsedTime:0,pseudoElement:0}),Ss=Ye(Xa),Fr=H({},yr,{deltaX:function(s){return"deltaX"in s?s.deltaX:"wheelDeltaX"in s?-s.wheelDeltaX:0},deltaY:function(s){return"deltaY"in s?s.deltaY:"wheelDeltaY"in s?-s.wheelDeltaY:"wheelDelta"in s?-s.wheelDelta:0},deltaZ:0,deltaMode:0}),ks=Ye(Fr),hm=[9,13,27,32],vc=f&&"CompositionEvent"in window,Nd=null;f&&"documentMode"in document&&(Nd=document.documentMode);var Od=f&&"TextEvent"in window&&!Nd,o0=f&&(!vc||Nd&&8<Nd&&11>=Nd),s0=" ",Op=!1;function l0(s,u){switch(s){case"keyup":return hm.indexOf(u.keyCode)!==-1;case"keydown":return u.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function u0(s){return s=s.detail,typeof s=="object"&&"data"in s?s.data:null}var gc=!1;function c0(s,u){switch(s){case"compositionend":return u0(u);case"keypress":return u.which!==32?null:(Op=!0,s0);case"textInput":return s=u.data,s===s0&&Op?null:s;default:return null}}function t6(s,u){if(gc)return s==="compositionend"||!vc&&l0(s,u)?(s=ce(),Y=A=ko=null,gc=!1,s):null;switch(s){case"paste":return null;case"keypress":if(!(u.ctrlKey||u.altKey||u.metaKey)||u.ctrlKey&&u.altKey){if(u.char&&1<u.char.length)return u.char;if(u.which)return String.fromCharCode(u.which)}return null;case"compositionend":return o0&&u.locale!=="ko"?null:u.data;default:return null}}var n6={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function d0(s){var u=s&&s.nodeName&&s.nodeName.toLowerCase();return u==="input"?!!n6[s.type]:u==="textarea"}function mm(s,u,h,w){Rr(w),u=zd(u,"onChange"),0<u.length&&(h=new un("onChange","change",null,h,w),s.push({event:h,listeners:u}))}var Bo=null,nu=null;function f0(s){iu(s,0)}function Ld(s){var u=_o(s);if(Et(u))return s}function r6(s,u){if(s==="change")return u}var p0=!1;if(f){var vm;if(f){var gm="oninput"in document;if(!gm){var h0=document.createElement("div");h0.setAttribute("oninput","return;"),gm=typeof h0.oninput=="function"}vm=gm}else vm=!1;p0=vm&&(!document.documentMode||9<document.documentMode)}function m0(){Bo&&(Bo.detachEvent("onpropertychange",v0),nu=Bo=null)}function v0(s){if(s.propertyName==="value"&&Ld(nu)){var u=[];mm(u,nu,s,Sn(s)),_t(f0,u)}}function a6(s,u,h){s==="focusin"?(m0(),Bo=u,nu=h,Bo.attachEvent("onpropertychange",v0)):s==="focusout"&&m0()}function g0(s){if(s==="selectionchange"||s==="keyup"||s==="keydown")return Ld(nu)}function i6(s,u){if(s==="click")return Ld(u)}function y0(s,u){if(s==="input"||s==="change")return Ld(u)}function o6(s,u){return s===u&&(s!==0||1/s===1/u)||s!==s&&u!==u}var Eo=typeof Object.is=="function"?Object.is:o6;function Ad(s,u){if(Eo(s,u))return!0;if(typeof s!="object"||s===null||typeof u!="object"||u===null)return!1;var h=Object.keys(s),w=Object.keys(u);if(h.length!==w.length)return!1;for(w=0;w<h.length;w++){var k=h[w];if(!m.call(u,k)||!Eo(s[k],u[k]))return!1}return!0}function w0(s){for(;s&&s.firstChild;)s=s.firstChild;return s}function Lp(s,u){var h=w0(s);s=0;for(var w;h;){if(h.nodeType===3){if(w=s+h.textContent.length,s<=u&&w>=u)return{node:h,offset:u-s};s=w}e:{for(;h;){if(h.nextSibling){h=h.nextSibling;break e}h=h.parentNode}h=void 0}h=w0(h)}}function dl(s,u){return s&&u?s===u?!0:s&&s.nodeType===3?!1:u&&u.nodeType===3?dl(s,u.parentNode):"contains"in s?s.contains(u):s.compareDocumentPosition?!!(s.compareDocumentPosition(u)&16):!1:!1}function Id(){for(var s=window,u=wt();u instanceof s.HTMLIFrameElement;){try{var h=typeof u.contentWindow.location.href=="string"}catch(w){h=!1}if(h)s=u.contentWindow;else break;u=wt(s.document)}return u}function Ap(s){var u=s&&s.nodeName&&s.nodeName.toLowerCase();return u&&(u==="input"&&(s.type==="text"||s.type==="search"||s.type==="tel"||s.type==="url"||s.type==="password")||u==="textarea"||s.contentEditable==="true")}function yc(s){var u=Id(),h=s.focusedElem,w=s.selectionRange;if(u!==h&&h&&h.ownerDocument&&dl(h.ownerDocument.documentElement,h)){if(w!==null&&Ap(h)){if(u=w.start,s=w.end,s===void 0&&(s=u),"selectionStart"in h)h.selectionStart=u,h.selectionEnd=Math.min(s,h.value.length);else if(s=(u=h.ownerDocument||document)&&u.defaultView||window,s.getSelection){s=s.getSelection();var k=h.textContent.length,T=Math.min(w.start,k);w=w.end===void 0?T:Math.min(w.end,k),!s.extend&&T>w&&(k=w,w=T,T=k),k=Lp(h,T);var z=Lp(h,w);k&&z&&(s.rangeCount!==1||s.anchorNode!==k.node||s.anchorOffset!==k.offset||s.focusNode!==z.node||s.focusOffset!==z.offset)&&(u=u.createRange(),u.setStart(k.node,k.offset),s.removeAllRanges(),T>w?(s.addRange(u),s.extend(z.node,z.offset)):(u.setEnd(z.node,z.offset),s.addRange(u)))}}for(u=[],s=h;s=s.parentNode;)s.nodeType===1&&u.push({element:s,left:s.scrollLeft,top:s.scrollTop});for(typeof h.focus=="function"&&h.focus(),h=0;h<u.length;h++)s=u[h],s.element.scrollLeft=s.left,s.element.scrollTop=s.top}}var s6=f&&"documentMode"in document&&11>=document.documentMode,wc=null,ym=null,Dd=null,wm=!1;function bm(s,u,h){var w=h.window===h?h.document:h.nodeType===9?h:h.ownerDocument;wm||wc==null||wc!==wt(w)||(w=wc,"selectionStart"in w&&Ap(w)?w={start:w.selectionStart,end:w.selectionEnd}:(w=(w.ownerDocument&&w.ownerDocument.defaultView||window).getSelection(),w={anchorNode:w.anchorNode,anchorOffset:w.anchorOffset,focusNode:w.focusNode,focusOffset:w.focusOffset}),Dd&&Ad(Dd,w)||(Dd=w,w=zd(ym,"onSelect"),0<w.length&&(u=new un("onSelect","select",null,u,h),s.push({event:u,listeners:w}),u.target=wc)))}function Ip(s,u){var h={};return h[s.toLowerCase()]=u.toLowerCase(),h["Webkit"+s]="webkit"+u,h["Moz"+s]="moz"+u,h}var ru={animationend:Ip("Animation","AnimationEnd"),animationiteration:Ip("Animation","AnimationIteration"),animationstart:Ip("Animation","AnimationStart"),transitionend:Ip("Transition","TransitionEnd")},ha={},xm={};f&&(xm=document.createElement("div").style,"AnimationEvent"in window||(delete ru.animationend.animation,delete ru.animationiteration.animation,delete ru.animationstart.animation),"TransitionEvent"in window||delete ru.transitionend.transition);function Dp(s){if(ha[s])return ha[s];if(!ru[s])return s;var u=ru[s],h;for(h in u)if(u.hasOwnProperty(h)&&h in xm)return ha[s]=u[h];return s}var b0=Dp("animationend"),x0=Dp("animationiteration"),C0=Dp("animationstart"),S0=Dp("transitionend"),Cm=new Map,Pp="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Zi(s,u){Cm.set(s,u),l(u,[s])}for(var Sm=0;Sm<Pp.length;Sm++){var au=Pp[Sm],l6=au.toLowerCase(),u6=au[0].toUpperCase()+au.slice(1);Zi(l6,"on"+u6)}Zi(b0,"onAnimationEnd"),Zi(x0,"onAnimationIteration"),Zi(C0,"onAnimationStart"),Zi("dblclick","onDoubleClick"),Zi("focusin","onFocus"),Zi("focusout","onBlur"),Zi(S0,"onTransitionEnd"),c("onMouseEnter",["mouseout","mouseover"]),c("onMouseLeave",["mouseout","mouseover"]),c("onPointerEnter",["pointerout","pointerover"]),c("onPointerLeave",["pointerout","pointerover"]),l("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),l("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),l("onBeforeInput",["compositionend","keypress","textInput","paste"]),l("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Pd="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),km=new Set("cancel close invalid load scroll toggle".split(" ").concat(Pd));function zp(s,u,h){var w=s.type||"unknown-event";s.currentTarget=h,st(w,u,void 0,s),s.currentTarget=null}function iu(s,u){u=(u&4)!==0;for(var h=0;h<s.length;h++){var w=s[h],k=w.event;w=w.listeners;e:{var T=void 0;if(u)for(var z=w.length-1;0<=z;z--){var q=w[z],X=q.instance,pe=q.currentTarget;if(q=q.listener,X!==T&&k.isPropagationStopped())break e;zp(k,q,pe),T=X}else for(z=0;z<w.length;z++){if(q=w[z],X=q.instance,pe=q.currentTarget,q=q.listener,X!==T&&k.isPropagationStopped())break e;zp(k,q,pe),T=X}}}if(er)throw s=J,er=!1,J=null,s}function zn(s,u){var h=u[Ud];h===void 0&&(h=u[Ud]=new Set);var w=s+"__bubble";h.has(w)||(k0(u,s,2,!1),h.add(w))}function jp(s,u,h){var w=0;u&&(w|=4),k0(h,s,w,u)}var Fp="_reactListening"+Math.random().toString(36).slice(2);function bc(s){if(!s[Fp]){s[Fp]=!0,i.forEach(function(h){h!=="selectionchange"&&(km.has(h)||jp(h,!1,s),jp(h,!0,s))});var u=s.nodeType===9?s:s.ownerDocument;u===null||u[Fp]||(u[Fp]=!0,jp("selectionchange",!1,u))}}function k0(s,u,h,w){switch(mc(u)){case 1:var k=fc;break;case 4:k=pc;break;default:k=ul}h=k.bind(null,u,h,s),k=void 0,!Mr||u!=="touchstart"&&u!=="touchmove"&&u!=="wheel"||(k=!0),w?k!==void 0?s.addEventListener(u,h,{capture:!0,passive:k}):s.addEventListener(u,h,!0):k!==void 0?s.addEventListener(u,h,{passive:k}):s.addEventListener(u,h,!1)}function Up(s,u,h,w,k){var T=w;if(!(u&1)&&!(u&2)&&w!==null)e:for(;;){if(w===null)return;var z=w.tag;if(z===3||z===4){var q=w.stateNode.containerInfo;if(q===k||q.nodeType===8&&q.parentNode===k)break;if(z===4)for(z=w.return;z!==null;){var X=z.tag;if((X===3||X===4)&&(X=z.stateNode.containerInfo,X===k||X.nodeType===8&&X.parentNode===k))return;z=z.return}for(;q!==null;){if(z=su(q),z===null)return;if(X=z.tag,X===5||X===6){w=T=z;continue e}q=q.parentNode}}w=w.return}_t(function(){var pe=T,De=Sn(h),ze=[];e:{var Ae=Cm.get(s);if(Ae!==void 0){var nt=un,ct=s;switch(s){case"keypress":if(we(h)===0)break e;case"keydown":case"keyup":nt=fm;break;case"focusin":ct="focus",nt=tu;break;case"focusout":ct="blur",nt=tu;break;case"beforeblur":case"afterblur":nt=tu;break;case"click":if(h.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":nt=cl;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":nt=xs;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":nt=i0;break;case b0:case x0:case C0:nt=Mp;break;case S0:nt=Ss;break;case"scroll":nt=nr;break;case"wheel":nt=ks;break;case"copy":case"cut":case"paste":nt=t0;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":nt=a0}var mt=(u&4)!==0,Pr=!mt&&s==="scroll",ae=mt?Ae!==null?Ae+"Capture":null:Ae;mt=[];for(var ne=pe,le;ne!==null;){le=ne;var Pe=le.stateNode;if(le.tag===5&&Pe!==null&&(le=Pe,ae!==null&&(Pe=kn(ne,ae),Pe!=null&&mt.push(xc(ne,Pe,le)))),Pr)break;ne=ne.return}0<mt.length&&(Ae=new nt(Ae,ct,null,h,De),ze.push({event:Ae,listeners:mt}))}}if(!(u&7)){e:{if(Ae=s==="mouseover"||s==="pointerover",nt=s==="mouseout"||s==="pointerout",Ae&&h!==cn&&(ct=h.relatedTarget||h.fromElement)&&(su(ct)||ct[Es]))break e;if((nt||Ae)&&(Ae=De.window===De?De:(Ae=De.ownerDocument)?Ae.defaultView||Ae.parentWindow:window,nt?(ct=h.relatedTarget||h.toElement,nt=pe,ct=ct?su(ct):null,ct!==null&&(Pr=Gt(ct),ct!==Pr||ct.tag!==5&&ct.tag!==6)&&(ct=null)):(nt=null,ct=pe),nt!==ct)){if(mt=cl,Pe="onMouseLeave",ae="onMouseEnter",ne="mouse",(s==="pointerout"||s==="pointerover")&&(mt=a0,Pe="onPointerLeave",ae="onPointerEnter",ne="pointer"),Pr=nt==null?Ae:_o(nt),le=ct==null?Ae:_o(ct),Ae=new mt(Pe,ne+"leave",nt,h,De),Ae.target=Pr,Ae.relatedTarget=le,Pe=null,su(De)===pe&&(mt=new mt(ae,ne+"enter",ct,h,De),mt.target=le,mt.relatedTarget=Pr,Pe=mt),Pr=Pe,nt&&ct)t:{for(mt=nt,ae=ct,ne=0,le=mt;le;le=fl(le))ne++;for(le=0,Pe=ae;Pe;Pe=fl(Pe))le++;for(;0<ne-le;)mt=fl(mt),ne--;for(;0<le-ne;)ae=fl(ae),le--;for(;ne--;){if(mt===ae||ae!==null&&mt===ae.alternate)break t;mt=fl(mt),ae=fl(ae)}mt=null}else mt=null;nt!==null&&E0(ze,Ae,nt,mt,!1),ct!==null&&Pr!==null&&E0(ze,Pr,ct,mt,!0)}}e:{if(Ae=pe?_o(pe):window,nt=Ae.nodeName&&Ae.nodeName.toLowerCase(),nt==="select"||nt==="input"&&Ae.type==="file")var dt=r6;else if(d0(Ae))if(p0)dt=y0;else{dt=g0;var At=a6}else(nt=Ae.nodeName)&&nt.toLowerCase()==="input"&&(Ae.type==="checkbox"||Ae.type==="radio")&&(dt=i6);if(dt&&(dt=dt(s,pe))){mm(ze,dt,h,De);break e}At&&At(s,Ae,pe),s==="focusout"&&(At=Ae._wrapperState)&&At.controlled&&Ae.type==="number"&&Hn(Ae,"number",Ae.value)}switch(At=pe?_o(pe):window,s){case"focusin":(d0(At)||At.contentEditable==="true")&&(wc=At,ym=pe,Dd=null);break;case"focusout":Dd=ym=wc=null;break;case"mousedown":wm=!0;break;case"contextmenu":case"mouseup":case"dragend":wm=!1,bm(ze,h,De);break;case"selectionchange":if(s6)break;case"keydown":case"keyup":bm(ze,h,De)}var Pt;if(vc)e:{switch(s){case"compositionstart":var Ut="onCompositionStart";break e;case"compositionend":Ut="onCompositionEnd";break e;case"compositionupdate":Ut="onCompositionUpdate";break e}Ut=void 0}else gc?l0(s,h)&&(Ut="onCompositionEnd"):s==="keydown"&&h.keyCode===229&&(Ut="onCompositionStart");Ut&&(o0&&h.locale!=="ko"&&(gc||Ut!=="onCompositionStart"?Ut==="onCompositionEnd"&&gc&&(Pt=ce()):(ko=De,A="value"in ko?ko.value:ko.textContent,gc=!0)),At=zd(pe,Ut),0<At.length&&(Ut=new um(Ut,s,null,h,De),ze.push({event:Ut,listeners:At}),Pt?Ut.data=Pt:(Pt=u0(h),Pt!==null&&(Ut.data=Pt)))),(Pt=Od?c0(s,h):t6(s,h))&&(pe=zd(pe,"onBeforeInput"),0<pe.length&&(De=new um("onBeforeInput","beforeinput",null,h,De),ze.push({event:De,listeners:pe}),De.data=Pt))}iu(ze,u)})}function xc(s,u,h){return{instance:s,listener:u,currentTarget:h}}function zd(s,u){for(var h=u+"Capture",w=[];s!==null;){var k=s,T=k.stateNode;k.tag===5&&T!==null&&(k=T,T=kn(s,h),T!=null&&w.unshift(xc(s,T,k)),T=kn(s,u),T!=null&&w.push(xc(s,T,k))),s=s.return}return w}function fl(s){if(s===null)return null;do s=s.return;while(s&&s.tag!==5);return s||null}function E0(s,u,h,w,k){for(var T=u._reactName,z=[];h!==null&&h!==w;){var q=h,X=q.alternate,pe=q.stateNode;if(X!==null&&X===w)break;q.tag===5&&pe!==null&&(q=pe,k?(X=kn(h,T),X!=null&&z.unshift(xc(h,X,q))):k||(X=kn(h,T),X!=null&&z.push(xc(h,X,q)))),h=h.return}z.length!==0&&s.push({event:u,listeners:z})}var _0=/\r\n?/g,c6=/\u0000|\uFFFD/g;function T0(s){return(typeof s=="string"?s:""+s).replace(_0,`
98
+ `).replace(c6,"")}function Hp(s,u,h){if(u=T0(u),T0(s)!==u&&h)throw Error(n(425))}function pl(){}var jd=null,ou=null;function Vp(s,u){return s==="textarea"||s==="noscript"||typeof u.children=="string"||typeof u.children=="number"||typeof u.dangerouslySetInnerHTML=="object"&&u.dangerouslySetInnerHTML!==null&&u.dangerouslySetInnerHTML.__html!=null}var Bp=typeof setTimeout=="function"?setTimeout:void 0,Em=typeof clearTimeout=="function"?clearTimeout:void 0,R0=typeof Promise=="function"?Promise:void 0,Cc=typeof queueMicrotask=="function"?queueMicrotask:typeof R0!="undefined"?function(s){return R0.resolve(null).then(s).catch($p)}:Bp;function $p(s){setTimeout(function(){throw s})}function Sc(s,u){var h=u,w=0;do{var k=h.nextSibling;if(s.removeChild(h),k&&k.nodeType===8)if(h=k.data,h==="/$"){if(w===0){s.removeChild(k),So(u);return}w--}else h!=="$"&&h!=="$?"&&h!=="$!"||w++;h=k}while(h);So(u)}function $o(s){for(;s!=null;s=s.nextSibling){var u=s.nodeType;if(u===1||u===3)break;if(u===8){if(u=s.data,u==="$"||u==="$!"||u==="$?")break;if(u==="/$")return null}}return s}function M0(s){s=s.previousSibling;for(var u=0;s;){if(s.nodeType===8){var h=s.data;if(h==="$"||h==="$!"||h==="$?"){if(u===0)return s;u--}else h==="/$"&&u++}s=s.previousSibling}return null}var hl=Math.random().toString(36).slice(2),Zo="__reactFiber$"+hl,Fd="__reactProps$"+hl,Es="__reactContainer$"+hl,Ud="__reactEvents$"+hl,kc="__reactListeners$"+hl,d6="__reactHandles$"+hl;function su(s){var u=s[Zo];if(u)return u;for(var h=s.parentNode;h;){if(u=h[Es]||h[Zo]){if(h=u.alternate,u.child!==null||h!==null&&h.child!==null)for(s=M0(s);s!==null;){if(h=s[Zo])return h;s=M0(s)}return u}s=h,h=s.parentNode}return null}function Tt(s){return s=s[Zo]||s[Es],!s||s.tag!==5&&s.tag!==6&&s.tag!==13&&s.tag!==3?null:s}function _o(s){if(s.tag===5||s.tag===6)return s.stateNode;throw Error(n(33))}function wr(s){return s[Fd]||null}var vn=[],Wi=-1;function qi(s){return{current:s}}function rr(s){0>Wi||(s.current=vn[Wi],vn[Wi]=null,Wi--)}function St(s,u){Wi++,vn[Wi]=s.current,s.current=u}var Ta={},Er=qi(Ta),Xr=qi(!1),Qa=Ta;function ei(s,u){var h=s.type.contextTypes;if(!h)return Ta;var w=s.stateNode;if(w&&w.__reactInternalMemoizedUnmaskedChildContext===u)return w.__reactInternalMemoizedMaskedChildContext;var k={},T;for(T in h)k[T]=u[T];return w&&(s=s.stateNode,s.__reactInternalMemoizedUnmaskedChildContext=u,s.__reactInternalMemoizedMaskedChildContext=k),k}function Ur(s){return s=s.childContextTypes,s!=null}function Ec(){rr(Xr),rr(Er)}function N0(s,u,h){if(Er.current!==Ta)throw Error(n(168));St(Er,u),St(Xr,h)}function Hd(s,u,h){var w=s.stateNode;if(u=u.childContextTypes,typeof w.getChildContext!="function")return h;w=w.getChildContext();for(var k in w)if(!(k in u))throw Error(n(108,Ee(s)||"Unknown",k));return H({},h,w)}function aa(s){return s=(s=s.stateNode)&&s.__reactInternalMemoizedMergedChildContext||Ta,Qa=Er.current,St(Er,s),St(Xr,Xr.current),!0}function Zp(s,u,h){var w=s.stateNode;if(!w)throw Error(n(169));h?(s=Hd(s,u,Qa),w.__reactInternalMemoizedMergedChildContext=s,rr(Xr),rr(Er),St(Er,s)):rr(Xr),St(Xr,h)}var Wo=null,_c=!1,_s=!1;function Wp(s){Wo===null?Wo=[s]:Wo.push(s)}function ml(s){_c=!0,Wp(s)}function qo(){if(!_s&&Wo!==null){_s=!0;var s=0,u=Tn;try{var h=Wo;for(Tn=1;s<h.length;s++){var w=h[s];do w=w(!0);while(w!==null)}Wo=null,_c=!1}catch(k){throw Wo!==null&&(Wo=Wo.slice(s+1)),ir(bo,qo),k}finally{Tn=u,_s=!1}}return null}var vl=[],gl=0,yl=null,Ts=0,Hr=[],Gi=0,Si=null,Go=1,Yo="";function lu(s,u){vl[gl++]=Ts,vl[gl++]=yl,yl=s,Ts=u}function O0(s,u,h){Hr[Gi++]=Go,Hr[Gi++]=Yo,Hr[Gi++]=Si,Si=s;var w=Go;s=Yo;var k=32-Aa(w)-1;w&=~(1<<k),h+=1;var T=32-Aa(u)+k;if(30<T){var z=k-k%5;T=(w&(1<<z)-1).toString(32),w>>=z,k-=z,Go=1<<32-Aa(u)+k|h<<k|w,Yo=T+s}else Go=1<<T|h<<k|w,Yo=s}function qp(s){s.return!==null&&(lu(s,1),O0(s,1,0))}function Gp(s){for(;s===yl;)yl=vl[--gl],vl[gl]=null,Ts=vl[--gl],vl[gl]=null;for(;s===Si;)Si=Hr[--Gi],Hr[Gi]=null,Yo=Hr[--Gi],Hr[Gi]=null,Go=Hr[--Gi],Hr[Gi]=null}var ti=null,ni=null,hr=!1,Yi=null;function _m(s,u){var h=eo(5,null,null,0);h.elementType="DELETED",h.stateNode=u,h.return=s,u=s.deletions,u===null?(s.deletions=[h],s.flags|=16):u.push(h)}function L0(s,u){switch(s.tag){case 5:var h=s.type;return u=u.nodeType!==1||h.toLowerCase()!==u.nodeName.toLowerCase()?null:u,u!==null?(s.stateNode=u,ti=s,ni=$o(u.firstChild),!0):!1;case 6:return u=s.pendingProps===""||u.nodeType!==3?null:u,u!==null?(s.stateNode=u,ti=s,ni=null,!0):!1;case 13:return u=u.nodeType!==8?null:u,u!==null?(h=Si!==null?{id:Go,overflow:Yo}:null,s.memoizedState={dehydrated:u,treeContext:h,retryLane:1073741824},h=eo(18,null,null,0),h.stateNode=u,h.return=s,s.child=h,ti=s,ni=null,!0):!1;default:return!1}}function Tm(s){return(s.mode&1)!==0&&(s.flags&128)===0}function Rm(s){if(hr){var u=ni;if(u){var h=u;if(!L0(s,u)){if(Tm(s))throw Error(n(418));u=$o(h.nextSibling);var w=ti;u&&L0(s,u)?_m(w,h):(s.flags=s.flags&-4097|2,hr=!1,ti=s)}}else{if(Tm(s))throw Error(n(418));s.flags=s.flags&-4097|2,hr=!1,ti=s}}}function Qr(s){for(s=s.return;s!==null&&s.tag!==5&&s.tag!==3&&s.tag!==13;)s=s.return;ti=s}function Yp(s){if(s!==ti)return!1;if(!hr)return Qr(s),hr=!0,!1;var u;if((u=s.tag!==3)&&!(u=s.tag!==5)&&(u=s.type,u=u!=="head"&&u!=="body"&&!Vp(s.type,s.memoizedProps)),u&&(u=ni)){if(Tm(s))throw Vd(),Error(n(418));for(;u;)_m(s,u),u=$o(u.nextSibling)}if(Qr(s),s.tag===13){if(s=s.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(n(317));e:{for(s=s.nextSibling,u=0;s;){if(s.nodeType===8){var h=s.data;if(h==="/$"){if(u===0){ni=$o(s.nextSibling);break e}u--}else h!=="$"&&h!=="$!"&&h!=="$?"||u++}s=s.nextSibling}ni=null}}else ni=ti?$o(s.stateNode.nextSibling):null;return!0}function Vd(){for(var s=ni;s;)s=$o(s.nextSibling)}function wl(){ni=ti=null,hr=!1}function Rs(s){Yi===null?Yi=[s]:Yi.push(s)}var f6=P.ReactCurrentBatchConfig;function uu(s,u,h){if(s=h.ref,s!==null&&typeof s!="function"&&typeof s!="object"){if(h._owner){if(h=h._owner,h){if(h.tag!==1)throw Error(n(309));var w=h.stateNode}if(!w)throw Error(n(147,s));var k=w,T=""+s;return u!==null&&u.ref!==null&&typeof u.ref=="function"&&u.ref._stringRef===T?u.ref:(u=function(z){var q=k.refs;z===null?delete q[T]:q[T]=z},u._stringRef=T,u)}if(typeof s!="string")throw Error(n(284));if(!h._owner)throw Error(n(290,s))}return s}function Jp(s,u){throw s=Object.prototype.toString.call(u),Error(n(31,s==="[object Object]"?"object with keys {"+Object.keys(u).join(", ")+"}":s))}function A0(s){var u=s._init;return u(s._payload)}function cu(s){function u(ae,ne){if(s){var le=ae.deletions;le===null?(ae.deletions=[ne],ae.flags|=16):le.push(ne)}}function h(ae,ne){if(!s)return null;for(;ne!==null;)u(ae,ne),ne=ne.sibling;return null}function w(ae,ne){for(ae=new Map;ne!==null;)ne.key!==null?ae.set(ne.key,ne):ae.set(ne.index,ne),ne=ne.sibling;return ae}function k(ae,ne){return ae=Tl(ae,ne),ae.index=0,ae.sibling=null,ae}function T(ae,ne,le){return ae.index=le,s?(le=ae.alternate,le!==null?(le=le.index,le<ne?(ae.flags|=2,ne):le):(ae.flags|=2,ne)):(ae.flags|=1048576,ne)}function z(ae){return s&&ae.alternate===null&&(ae.flags|=2),ae}function q(ae,ne,le,Pe){return ne===null||ne.tag!==6?(ne=iv(le,ae.mode,Pe),ne.return=ae,ne):(ne=k(ne,le),ne.return=ae,ne)}function X(ae,ne,le,Pe){var dt=le.type;return dt===W?De(ae,ne,le.props.children,Pe,le.key):ne!==null&&(ne.elementType===dt||typeof dt=="object"&&dt!==null&&dt.$$typeof===Ie&&A0(dt)===ne.type)?(Pe=k(ne,le.props),Pe.ref=uu(ae,ne,le),Pe.return=ae,Pe):(Pe=wf(le.type,le.key,le.props,null,ae.mode,Pe),Pe.ref=uu(ae,ne,le),Pe.return=ae,Pe)}function pe(ae,ne,le,Pe){return ne===null||ne.tag!==4||ne.stateNode.containerInfo!==le.containerInfo||ne.stateNode.implementation!==le.implementation?(ne=M1(le,ae.mode,Pe),ne.return=ae,ne):(ne=k(ne,le.children||[]),ne.return=ae,ne)}function De(ae,ne,le,Pe,dt){return ne===null||ne.tag!==7?(ne=Is(le,ae.mode,Pe,dt),ne.return=ae,ne):(ne=k(ne,le),ne.return=ae,ne)}function ze(ae,ne,le){if(typeof ne=="string"&&ne!==""||typeof ne=="number")return ne=iv(""+ne,ae.mode,le),ne.return=ae,ne;if(typeof ne=="object"&&ne!==null){switch(ne.$$typeof){case Z:return le=wf(ne.type,ne.key,ne.props,null,ae.mode,le),le.ref=uu(ae,null,ne),le.return=ae,le;case B:return ne=M1(ne,ae.mode,le),ne.return=ae,ne;case Ie:var Pe=ne._init;return ze(ae,Pe(ne._payload),le)}if(Ue(ne)||Ne(ne))return ne=Is(ne,ae.mode,le,null),ne.return=ae,ne;Jp(ae,ne)}return null}function Ae(ae,ne,le,Pe){var dt=ne!==null?ne.key:null;if(typeof le=="string"&&le!==""||typeof le=="number")return dt!==null?null:q(ae,ne,""+le,Pe);if(typeof le=="object"&&le!==null){switch(le.$$typeof){case Z:return le.key===dt?X(ae,ne,le,Pe):null;case B:return le.key===dt?pe(ae,ne,le,Pe):null;case Ie:return dt=le._init,Ae(ae,ne,dt(le._payload),Pe)}if(Ue(le)||Ne(le))return dt!==null?null:De(ae,ne,le,Pe,null);Jp(ae,le)}return null}function nt(ae,ne,le,Pe,dt){if(typeof Pe=="string"&&Pe!==""||typeof Pe=="number")return ae=ae.get(le)||null,q(ne,ae,""+Pe,dt);if(typeof Pe=="object"&&Pe!==null){switch(Pe.$$typeof){case Z:return ae=ae.get(Pe.key===null?le:Pe.key)||null,X(ne,ae,Pe,dt);case B:return ae=ae.get(Pe.key===null?le:Pe.key)||null,pe(ne,ae,Pe,dt);case Ie:var At=Pe._init;return nt(ae,ne,le,At(Pe._payload),dt)}if(Ue(Pe)||Ne(Pe))return ae=ae.get(le)||null,De(ne,ae,Pe,dt,null);Jp(ne,Pe)}return null}function ct(ae,ne,le,Pe){for(var dt=null,At=null,Pt=ne,Ut=ne=0,sa=null;Pt!==null&&Ut<le.length;Ut++){Pt.index>Ut?(sa=Pt,Pt=null):sa=Pt.sibling;var Nn=Ae(ae,Pt,le[Ut],Pe);if(Nn===null){Pt===null&&(Pt=sa);break}s&&Pt&&Nn.alternate===null&&u(ae,Pt),ne=T(Nn,ne,Ut),At===null?dt=Nn:At.sibling=Nn,At=Nn,Pt=sa}if(Ut===le.length)return h(ae,Pt),hr&&lu(ae,Ut),dt;if(Pt===null){for(;Ut<le.length;Ut++)Pt=ze(ae,le[Ut],Pe),Pt!==null&&(ne=T(Pt,ne,Ut),At===null?dt=Pt:At.sibling=Pt,At=Pt);return hr&&lu(ae,Ut),dt}for(Pt=w(ae,Pt);Ut<le.length;Ut++)sa=nt(Pt,ae,Ut,le[Ut],Pe),sa!==null&&(s&&sa.alternate!==null&&Pt.delete(sa.key===null?Ut:sa.key),ne=T(sa,ne,Ut),At===null?dt=sa:At.sibling=sa,At=sa);return s&&Pt.forEach(function(Nl){return u(ae,Nl)}),hr&&lu(ae,Ut),dt}function mt(ae,ne,le,Pe){var dt=Ne(le);if(typeof dt!="function")throw Error(n(150));if(le=dt.call(le),le==null)throw Error(n(151));for(var At=dt=null,Pt=ne,Ut=ne=0,sa=null,Nn=le.next();Pt!==null&&!Nn.done;Ut++,Nn=le.next()){Pt.index>Ut?(sa=Pt,Pt=null):sa=Pt.sibling;var Nl=Ae(ae,Pt,Nn.value,Pe);if(Nl===null){Pt===null&&(Pt=sa);break}s&&Pt&&Nl.alternate===null&&u(ae,Pt),ne=T(Nl,ne,Ut),At===null?dt=Nl:At.sibling=Nl,At=Nl,Pt=sa}if(Nn.done)return h(ae,Pt),hr&&lu(ae,Ut),dt;if(Pt===null){for(;!Nn.done;Ut++,Nn=le.next())Nn=ze(ae,Nn.value,Pe),Nn!==null&&(ne=T(Nn,ne,Ut),At===null?dt=Nn:At.sibling=Nn,At=Nn);return hr&&lu(ae,Ut),dt}for(Pt=w(ae,Pt);!Nn.done;Ut++,Nn=le.next())Nn=nt(Pt,ae,Ut,Nn.value,Pe),Nn!==null&&(s&&Nn.alternate!==null&&Pt.delete(Nn.key===null?Ut:Nn.key),ne=T(Nn,ne,Ut),At===null?dt=Nn:At.sibling=Nn,At=Nn);return s&&Pt.forEach(function(m2){return u(ae,m2)}),hr&&lu(ae,Ut),dt}function Pr(ae,ne,le,Pe){if(typeof le=="object"&&le!==null&&le.type===W&&le.key===null&&(le=le.props.children),typeof le=="object"&&le!==null){switch(le.$$typeof){case Z:e:{for(var dt=le.key,At=ne;At!==null;){if(At.key===dt){if(dt=le.type,dt===W){if(At.tag===7){h(ae,At.sibling),ne=k(At,le.props.children),ne.return=ae,ae=ne;break e}}else if(At.elementType===dt||typeof dt=="object"&&dt!==null&&dt.$$typeof===Ie&&A0(dt)===At.type){h(ae,At.sibling),ne=k(At,le.props),ne.ref=uu(ae,At,le),ne.return=ae,ae=ne;break e}h(ae,At);break}else u(ae,At);At=At.sibling}le.type===W?(ne=Is(le.props.children,ae.mode,Pe,le.key),ne.return=ae,ae=ne):(Pe=wf(le.type,le.key,le.props,null,ae.mode,Pe),Pe.ref=uu(ae,ne,le),Pe.return=ae,ae=Pe)}return z(ae);case B:e:{for(At=le.key;ne!==null;){if(ne.key===At)if(ne.tag===4&&ne.stateNode.containerInfo===le.containerInfo&&ne.stateNode.implementation===le.implementation){h(ae,ne.sibling),ne=k(ne,le.children||[]),ne.return=ae,ae=ne;break e}else{h(ae,ne);break}else u(ae,ne);ne=ne.sibling}ne=M1(le,ae.mode,Pe),ne.return=ae,ae=ne}return z(ae);case Ie:return At=le._init,Pr(ae,ne,At(le._payload),Pe)}if(Ue(le))return ct(ae,ne,le,Pe);if(Ne(le))return mt(ae,ne,le,Pe);Jp(ae,le)}return typeof le=="string"&&le!==""||typeof le=="number"?(le=""+le,ne!==null&&ne.tag===6?(h(ae,ne.sibling),ne=k(ne,le),ne.return=ae,ae=ne):(h(ae,ne),ne=iv(le,ae.mode,Pe),ne.return=ae,ae=ne),z(ae)):h(ae,ne)}return Pr}var Lr=cu(!0),Qe=cu(!1),ki=qi(null),ri=null,Tc=null,Mm=null;function Nm(){Mm=Tc=ri=null}function Om(s){var u=ki.current;rr(ki),s._currentValue=u}function Lm(s,u,h){for(;s!==null;){var w=s.alternate;if((s.childLanes&u)!==u?(s.childLanes|=u,w!==null&&(w.childLanes|=u)):w!==null&&(w.childLanes&u)!==u&&(w.childLanes|=u),s===h)break;s=s.return}}function br(s,u){ri=s,Mm=Tc=null,s=s.dependencies,s!==null&&s.firstContext!==null&&(s.lanes&u&&(Br=!0),s.firstContext=null)}function Ji(s){var u=s._currentValue;if(Mm!==s)if(s={context:s,memoizedValue:u,next:null},Tc===null){if(ri===null)throw Error(n(308));Tc=s,ri.dependencies={lanes:0,firstContext:s}}else Tc=Tc.next=s;return u}var du=null;function Am(s){du===null?du=[s]:du.push(s)}function Im(s,u,h,w){var k=u.interleaved;return k===null?(h.next=h,Am(u)):(h.next=k.next,k.next=h),u.interleaved=h,Ei(s,w)}function Ei(s,u){s.lanes|=u;var h=s.alternate;for(h!==null&&(h.lanes|=u),h=s,s=s.return;s!==null;)s.childLanes|=u,h=s.alternate,h!==null&&(h.childLanes|=u),h=s,s=s.return;return h.tag===3?h.stateNode:null}var _i=!1;function Dm(s){s.updateQueue={baseState:s.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function I0(s,u){s=s.updateQueue,u.updateQueue===s&&(u.updateQueue={baseState:s.baseState,firstBaseUpdate:s.firstBaseUpdate,lastBaseUpdate:s.lastBaseUpdate,shared:s.shared,effects:s.effects})}function Ms(s,u){return{eventTime:s,lane:u,tag:0,payload:null,callback:null,next:null}}function bl(s,u,h){var w=s.updateQueue;if(w===null)return null;if(w=w.shared,gn&2){var k=w.pending;return k===null?u.next=u:(u.next=k.next,k.next=u),w.pending=u,Ei(s,h)}return k=w.interleaved,k===null?(u.next=u,Am(w)):(u.next=k.next,k.next=u),w.interleaved=u,Ei(s,h)}function Kp(s,u,h){if(u=u.updateQueue,u!==null&&(u=u.shared,(h&4194240)!==0)){var w=u.lanes;w&=s.pendingLanes,h|=w,u.lanes=h,bs(s,h)}}function D0(s,u){var h=s.updateQueue,w=s.alternate;if(w!==null&&(w=w.updateQueue,h===w)){var k=null,T=null;if(h=h.firstBaseUpdate,h!==null){do{var z={eventTime:h.eventTime,lane:h.lane,tag:h.tag,payload:h.payload,callback:h.callback,next:null};T===null?k=T=z:T=T.next=z,h=h.next}while(h!==null);T===null?k=T=u:T=T.next=u}else k=T=u;h={baseState:w.baseState,firstBaseUpdate:k,lastBaseUpdate:T,shared:w.shared,effects:w.effects},s.updateQueue=h;return}s=h.lastBaseUpdate,s===null?h.firstBaseUpdate=u:s.next=u,h.lastBaseUpdate=u}function Bd(s,u,h,w){var k=s.updateQueue;_i=!1;var T=k.firstBaseUpdate,z=k.lastBaseUpdate,q=k.shared.pending;if(q!==null){k.shared.pending=null;var X=q,pe=X.next;X.next=null,z===null?T=pe:z.next=pe,z=X;var De=s.alternate;De!==null&&(De=De.updateQueue,q=De.lastBaseUpdate,q!==z&&(q===null?De.firstBaseUpdate=pe:q.next=pe,De.lastBaseUpdate=X))}if(T!==null){var ze=k.baseState;z=0,De=pe=X=null,q=T;do{var Ae=q.lane,nt=q.eventTime;if((w&Ae)===Ae){De!==null&&(De=De.next={eventTime:nt,lane:0,tag:q.tag,payload:q.payload,callback:q.callback,next:null});e:{var ct=s,mt=q;switch(Ae=u,nt=h,mt.tag){case 1:if(ct=mt.payload,typeof ct=="function"){ze=ct.call(nt,ze,Ae);break e}ze=ct;break e;case 3:ct.flags=ct.flags&-65537|128;case 0:if(ct=mt.payload,Ae=typeof ct=="function"?ct.call(nt,ze,Ae):ct,Ae==null)break e;ze=H({},ze,Ae);break e;case 2:_i=!0}}q.callback!==null&&q.lane!==0&&(s.flags|=64,Ae=k.effects,Ae===null?k.effects=[q]:Ae.push(q))}else nt={eventTime:nt,lane:Ae,tag:q.tag,payload:q.payload,callback:q.callback,next:null},De===null?(pe=De=nt,X=ze):De=De.next=nt,z|=Ae;if(q=q.next,q===null){if(q=k.shared.pending,q===null)break;Ae=q,q=Ae.next,Ae.next=null,k.lastBaseUpdate=Ae,k.shared.pending=null}}while(!0);if(De===null&&(X=ze),k.baseState=X,k.firstBaseUpdate=pe,k.lastBaseUpdate=De,u=k.shared.interleaved,u!==null){k=u;do z|=k.lane,k=k.next;while(k!==u)}else T===null&&(k.shared.lanes=0);es|=z,s.lanes=z,s.memoizedState=ze}}function Pm(s,u,h){if(s=u.effects,u.effects=null,s!==null)for(u=0;u<s.length;u++){var w=s[u],k=w.callback;if(k!==null){if(w.callback=null,w=h,typeof k!="function")throw Error(n(191,k));k.call(w)}}}var $d={},Jo=qi($d),Zd=qi($d),Wd=qi($d);function fu(s){if(s===$d)throw Error(n(174));return s}function zm(s,u){switch(St(Wd,u),St(Zd,s),St(Jo,$d),s=u.nodeType,s){case 9:case 11:u=(u=u.documentElement)?u.namespaceURI:Me(null,"");break;default:s=s===8?u.parentNode:u,u=s.namespaceURI||null,s=s.tagName,u=Me(u,s)}rr(Jo),St(Jo,u)}function pu(){rr(Jo),rr(Zd),rr(Wd)}function P0(s){fu(Wd.current);var u=fu(Jo.current),h=Me(u,s.type);u!==h&&(St(Zd,s),St(Jo,h))}function Xp(s){Zd.current===s&&(rr(Jo),rr(Zd))}var xr=qi(0);function Qp(s){for(var u=s;u!==null;){if(u.tag===13){var h=u.memoizedState;if(h!==null&&(h=h.dehydrated,h===null||h.data==="$?"||h.data==="$!"))return u}else if(u.tag===19&&u.memoizedProps.revealOrder!==void 0){if(u.flags&128)return u}else if(u.child!==null){u.child.return=u,u=u.child;continue}if(u===s)break;for(;u.sibling===null;){if(u.return===null||u.return===s)return null;u=u.return}u.sibling.return=u.return,u=u.sibling}return null}var qd=[];function Rt(){for(var s=0;s<qd.length;s++)qd[s]._workInProgressVersionPrimary=null;qd.length=0}var an=P.ReactCurrentDispatcher,Rn=P.ReactCurrentBatchConfig,Wn=0,Mn=null,Vr=null,ia=null,e1=!1,Gd=!1,hu=0,Le=0;function En(){throw Error(n(321))}function jt(s,u){if(u===null)return!1;for(var h=0;h<u.length&&h<s.length;h++)if(!Eo(s[h],u[h]))return!1;return!0}function xl(s,u,h,w,k,T){if(Wn=T,Mn=u,u.memoizedState=null,u.updateQueue=null,u.lanes=0,an.current=s===null||s.memoizedState===null?m1:ef,s=h(w,k),Gd){T=0;do{if(Gd=!1,hu=0,25<=T)throw Error(n(301));T+=1,ia=Vr=null,u.updateQueue=null,an.current=v1,s=h(w,k)}while(Gd)}if(an.current=wu,u=Vr!==null&&Vr.next!==null,Wn=0,ia=Vr=Mn=null,e1=!1,u)throw Error(n(300));return s}function To(){var s=hu!==0;return hu=0,s}function Ra(){var s={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ia===null?Mn.memoizedState=ia=s:ia=ia.next=s,ia}function Ar(){if(Vr===null){var s=Mn.alternate;s=s!==null?s.memoizedState:null}else s=Vr.next;var u=ia===null?Mn.memoizedState:ia.next;if(u!==null)ia=u,Vr=s;else{if(s===null)throw Error(n(310));Vr=s,s={memoizedState:Vr.memoizedState,baseState:Vr.baseState,baseQueue:Vr.baseQueue,queue:Vr.queue,next:null},ia===null?Mn.memoizedState=ia=s:ia=ia.next=s}return ia}function Ns(s,u){return typeof u=="function"?u(s):u}function Cl(s){var u=Ar(),h=u.queue;if(h===null)throw Error(n(311));h.lastRenderedReducer=s;var w=Vr,k=w.baseQueue,T=h.pending;if(T!==null){if(k!==null){var z=k.next;k.next=T.next,T.next=z}w.baseQueue=k=T,h.pending=null}if(k!==null){T=k.next,w=w.baseState;var q=z=null,X=null,pe=T;do{var De=pe.lane;if((Wn&De)===De)X!==null&&(X=X.next={lane:0,action:pe.action,hasEagerState:pe.hasEagerState,eagerState:pe.eagerState,next:null}),w=pe.hasEagerState?pe.eagerState:s(w,pe.action);else{var ze={lane:De,action:pe.action,hasEagerState:pe.hasEagerState,eagerState:pe.eagerState,next:null};X===null?(q=X=ze,z=w):X=X.next=ze,Mn.lanes|=De,es|=De}pe=pe.next}while(pe!==null&&pe!==T);X===null?z=w:X.next=q,Eo(w,u.memoizedState)||(Br=!0),u.memoizedState=w,u.baseState=z,u.baseQueue=X,h.lastRenderedState=w}if(s=h.interleaved,s!==null){k=s;do T=k.lane,Mn.lanes|=T,es|=T,k=k.next;while(k!==s)}else k===null&&(h.lanes=0);return[u.memoizedState,h.dispatch]}function mu(s){var u=Ar(),h=u.queue;if(h===null)throw Error(n(311));h.lastRenderedReducer=s;var w=h.dispatch,k=h.pending,T=u.memoizedState;if(k!==null){h.pending=null;var z=k=k.next;do T=s(T,z.action),z=z.next;while(z!==k);Eo(T,u.memoizedState)||(Br=!0),u.memoizedState=T,u.baseQueue===null&&(u.baseState=T),h.lastRenderedState=T}return[T,w]}function t1(){}function n1(s,u){var h=Mn,w=Ar(),k=u(),T=!Eo(w.memoizedState,k);if(T&&(w.memoizedState=k,Br=!0),w=w.queue,Yd(i1.bind(null,h,w,s),[s]),w.getSnapshot!==u||T||ia!==null&&ia.memoizedState.tag&1){if(h.flags|=2048,vu(9,a1.bind(null,h,w,k,u),void 0,null),ea===null)throw Error(n(349));Wn&30||r1(h,u,k)}return k}function r1(s,u,h){s.flags|=16384,s={getSnapshot:u,value:h},u=Mn.updateQueue,u===null?(u={lastEffect:null,stores:null},Mn.updateQueue=u,u.stores=[s]):(h=u.stores,h===null?u.stores=[s]:h.push(s))}function a1(s,u,h,w){u.value=h,u.getSnapshot=w,o1(u)&&s1(s)}function i1(s,u,h){return h(function(){o1(u)&&s1(s)})}function o1(s){var u=s.getSnapshot;s=s.value;try{var h=u();return!Eo(s,h)}catch(w){return!0}}function s1(s){var u=Ei(s,1);u!==null&&Fa(u,s,1,-1)}function l1(s){var u=Ra();return typeof s=="function"&&(s=s()),u.memoizedState=u.baseState=s,s={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Ns,lastRenderedState:s},u.queue=s,s=s.dispatch=yu.bind(null,Mn,s),[u.memoizedState,s]}function vu(s,u,h,w){return s={tag:s,create:u,destroy:h,deps:w,next:null},u=Mn.updateQueue,u===null?(u={lastEffect:null,stores:null},Mn.updateQueue=u,u.lastEffect=s.next=s):(h=u.lastEffect,h===null?u.lastEffect=s.next=s:(w=h.next,h.next=s,s.next=w,u.lastEffect=s)),s}function u1(){return Ar().memoizedState}function Rc(s,u,h,w){var k=Ra();Mn.flags|=s,k.memoizedState=vu(1|u,h,void 0,w===void 0?null:w)}function Mc(s,u,h,w){var k=Ar();w=w===void 0?null:w;var T=void 0;if(Vr!==null){var z=Vr.memoizedState;if(T=z.destroy,w!==null&&jt(w,z.deps)){k.memoizedState=vu(u,h,T,w);return}}Mn.flags|=s,k.memoizedState=vu(1|u,h,T,w)}function c1(s,u){return Rc(8390656,8,s,u)}function Yd(s,u){return Mc(2048,8,s,u)}function d1(s,u){return Mc(4,2,s,u)}function Jd(s,u){return Mc(4,4,s,u)}function gu(s,u){if(typeof u=="function")return s=s(),u(s),function(){u(null)};if(u!=null)return s=s(),u.current=s,function(){u.current=null}}function f1(s,u,h){return h=h!=null?h.concat([s]):null,Mc(4,4,gu.bind(null,u,s),h)}function Kd(){}function p1(s,u){var h=Ar();u=u===void 0?null:u;var w=h.memoizedState;return w!==null&&u!==null&&jt(u,w[1])?w[0]:(h.memoizedState=[s,u],s)}function h1(s,u){var h=Ar();u=u===void 0?null:u;var w=h.memoizedState;return w!==null&&u!==null&&jt(u,w[1])?w[0]:(s=s(),h.memoizedState=[s,u],s)}function jm(s,u,h){return Wn&21?(Eo(h,u)||(h=lc(),Mn.lanes|=h,es|=h,s.baseState=!0),u):(s.baseState&&(s.baseState=!1,Br=!0),s.memoizedState=h)}function Xd(s,u){var h=Tn;Tn=h!==0&&4>h?h:4,s(!0);var w=Rn.transition;Rn.transition={};try{s(!1),u()}finally{Tn=h,Rn.transition=w}}function Fm(){return Ar().memoizedState}function Qd(s,u,h){var w=ts(s);if(h={lane:w,action:h,hasEagerState:!1,eagerState:null,next:null},ai(s))z0(u,h);else if(h=Im(s,u,h,w),h!==null){var k=Wr();Fa(h,s,w,k),Xn(h,u,w)}}function yu(s,u,h){var w=ts(s),k={lane:w,action:h,hasEagerState:!1,eagerState:null,next:null};if(ai(s))z0(u,k);else{var T=s.alternate;if(s.lanes===0&&(T===null||T.lanes===0)&&(T=u.lastRenderedReducer,T!==null))try{var z=u.lastRenderedState,q=T(z,h);if(k.hasEagerState=!0,k.eagerState=q,Eo(q,z)){var X=u.interleaved;X===null?(k.next=k,Am(u)):(k.next=X.next,X.next=k),u.interleaved=k;return}}catch(pe){}finally{}h=Im(s,u,k,w),h!==null&&(k=Wr(),Fa(h,s,w,k),Xn(h,u,w))}}function ai(s){var u=s.alternate;return s===Mn||u!==null&&u===Mn}function z0(s,u){Gd=e1=!0;var h=s.pending;h===null?u.next=u:(u.next=h.next,h.next=u),s.pending=u}function Xn(s,u,h){if(h&4194240){var w=u.lanes;w&=s.pendingLanes,h|=w,u.lanes=h,bs(s,h)}}var wu={readContext:Ji,useCallback:En,useContext:En,useEffect:En,useImperativeHandle:En,useInsertionEffect:En,useLayoutEffect:En,useMemo:En,useReducer:En,useRef:En,useState:En,useDebugValue:En,useDeferredValue:En,useTransition:En,useMutableSource:En,useSyncExternalStore:En,useId:En,unstable_isNewReconciler:!1},m1={readContext:Ji,useCallback:function(s,u){return Ra().memoizedState=[s,u===void 0?null:u],s},useContext:Ji,useEffect:c1,useImperativeHandle:function(s,u,h){return h=h!=null?h.concat([s]):null,Rc(4194308,4,gu.bind(null,u,s),h)},useLayoutEffect:function(s,u){return Rc(4194308,4,s,u)},useInsertionEffect:function(s,u){return Rc(4,2,s,u)},useMemo:function(s,u){var h=Ra();return u=u===void 0?null:u,s=s(),h.memoizedState=[s,u],s},useReducer:function(s,u,h){var w=Ra();return u=h!==void 0?h(u):u,w.memoizedState=w.baseState=u,s={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:s,lastRenderedState:u},w.queue=s,s=s.dispatch=Qd.bind(null,Mn,s),[w.memoizedState,s]},useRef:function(s){var u=Ra();return s={current:s},u.memoizedState=s},useState:l1,useDebugValue:Kd,useDeferredValue:function(s){return Ra().memoizedState=s},useTransition:function(){var s=l1(!1),u=s[0];return s=Xd.bind(null,s[1]),Ra().memoizedState=s,[u,s]},useMutableSource:function(){},useSyncExternalStore:function(s,u,h){var w=Mn,k=Ra();if(hr){if(h===void 0)throw Error(n(407));h=h()}else{if(h=u(),ea===null)throw Error(n(349));Wn&30||r1(w,u,h)}k.memoizedState=h;var T={value:h,getSnapshot:u};return k.queue=T,c1(i1.bind(null,w,T,s),[s]),w.flags|=2048,vu(9,a1.bind(null,w,T,h,u),void 0,null),h},useId:function(){var s=Ra(),u=ea.identifierPrefix;if(hr){var h=Yo,w=Go;h=(w&~(1<<32-Aa(w)-1)).toString(32)+h,u=":"+u+"R"+h,h=hu++,0<h&&(u+="H"+h.toString(32)),u+=":"}else h=Le++,u=":"+u+"r"+h.toString(32)+":";return s.memoizedState=u},unstable_isNewReconciler:!1},ef={readContext:Ji,useCallback:p1,useContext:Ji,useEffect:Yd,useImperativeHandle:f1,useInsertionEffect:d1,useLayoutEffect:Jd,useMemo:h1,useReducer:Cl,useRef:u1,useState:function(){return Cl(Ns)},useDebugValue:Kd,useDeferredValue:function(s){var u=Ar();return jm(u,Vr.memoizedState,s)},useTransition:function(){var s=Cl(Ns)[0],u=Ar().memoizedState;return[s,u]},useMutableSource:t1,useSyncExternalStore:n1,useId:Fm,unstable_isNewReconciler:!1},v1={readContext:Ji,useCallback:p1,useContext:Ji,useEffect:Yd,useImperativeHandle:f1,useInsertionEffect:d1,useLayoutEffect:Jd,useMemo:h1,useReducer:mu,useRef:u1,useState:function(){return mu(Ns)},useDebugValue:Kd,useDeferredValue:function(s){var u=Ar();return Vr===null?u.memoizedState=s:jm(u,Vr.memoizedState,s)},useTransition:function(){var s=mu(Ns)[0],u=Ar().memoizedState;return[s,u]},useMutableSource:t1,useSyncExternalStore:n1,useId:Fm,unstable_isNewReconciler:!1};function Ro(s,u){if(s&&s.defaultProps){u=H({},u),s=s.defaultProps;for(var h in s)u[h]===void 0&&(u[h]=s[h]);return u}return u}function Um(s,u,h,w){u=s.memoizedState,h=h(w,u),h=h==null?u:H({},u,h),s.memoizedState=h,s.lanes===0&&(s.updateQueue.baseState=h)}var g1={isMounted:function(s){return(s=s._reactInternals)?Gt(s)===s:!1},enqueueSetState:function(s,u,h){s=s._reactInternals;var w=Wr(),k=ts(s),T=Ms(w,k);T.payload=u,h!=null&&(T.callback=h),u=bl(s,T,k),u!==null&&(Fa(u,s,k,w),Kp(u,s,k))},enqueueReplaceState:function(s,u,h){s=s._reactInternals;var w=Wr(),k=ts(s),T=Ms(w,k);T.tag=1,T.payload=u,h!=null&&(T.callback=h),u=bl(s,T,k),u!==null&&(Fa(u,s,k,w),Kp(u,s,k))},enqueueForceUpdate:function(s,u){s=s._reactInternals;var h=Wr(),w=ts(s),k=Ms(h,w);k.tag=2,u!=null&&(k.callback=u),u=bl(s,k,w),u!==null&&(Fa(u,s,w,h),Kp(u,s,w))}};function j0(s,u,h,w,k,T,z){return s=s.stateNode,typeof s.shouldComponentUpdate=="function"?s.shouldComponentUpdate(w,T,z):u.prototype&&u.prototype.isPureReactComponent?!Ad(h,w)||!Ad(k,T):!0}function y1(s,u,h){var w=!1,k=Ta,T=u.contextType;return typeof T=="object"&&T!==null?T=Ji(T):(k=Ur(u)?Qa:Er.current,w=u.contextTypes,T=(w=w!=null)?ei(s,k):Ta),u=new u(h,T),s.memoizedState=u.state!==null&&u.state!==void 0?u.state:null,u.updater=g1,s.stateNode=u,u._reactInternals=s,w&&(s=s.stateNode,s.__reactInternalMemoizedUnmaskedChildContext=k,s.__reactInternalMemoizedMaskedChildContext=T),u}function F0(s,u,h,w){s=u.state,typeof u.componentWillReceiveProps=="function"&&u.componentWillReceiveProps(h,w),typeof u.UNSAFE_componentWillReceiveProps=="function"&&u.UNSAFE_componentWillReceiveProps(h,w),u.state!==s&&g1.enqueueReplaceState(u,u.state,null)}function tf(s,u,h,w){var k=s.stateNode;k.props=h,k.state=s.memoizedState,k.refs={},Dm(s);var T=u.contextType;typeof T=="object"&&T!==null?k.context=Ji(T):(T=Ur(u)?Qa:Er.current,k.context=ei(s,T)),k.state=s.memoizedState,T=u.getDerivedStateFromProps,typeof T=="function"&&(Um(s,u,T,h),k.state=s.memoizedState),typeof u.getDerivedStateFromProps=="function"||typeof k.getSnapshotBeforeUpdate=="function"||typeof k.UNSAFE_componentWillMount!="function"&&typeof k.componentWillMount!="function"||(u=k.state,typeof k.componentWillMount=="function"&&k.componentWillMount(),typeof k.UNSAFE_componentWillMount=="function"&&k.UNSAFE_componentWillMount(),u!==k.state&&g1.enqueueReplaceState(k,k.state,null),Bd(s,h,k,w),k.state=s.memoizedState),typeof k.componentDidMount=="function"&&(s.flags|=4194308)}function bu(s,u){try{var h="",w=u;do h+=it(w),w=w.return;while(w);var k=h}catch(T){k=`
99
+ Error generating stack: `+T.message+`
100
+ `+T.stack}return{value:s,source:u,stack:k,digest:null}}function Hm(s,u,h){return{value:s,source:null,stack:h!=null?h:null,digest:u!=null?u:null}}function Vm(s,u){try{console.error(u.value)}catch(h){setTimeout(function(){throw h})}}var w1=typeof WeakMap=="function"?WeakMap:Map;function U0(s,u,h){h=Ms(-1,h),h.tag=3,h.payload={element:null};var w=u.value;return h.callback=function(){Dc||(Dc=!0,Su=w),Vm(s,u)},h}function Bm(s,u,h){h=Ms(-1,h),h.tag=3;var w=s.type.getDerivedStateFromError;if(typeof w=="function"){var k=u.value;h.payload=function(){return w(k)},h.callback=function(){Vm(s,u)}}var T=s.stateNode;return T!==null&&typeof T.componentDidCatch=="function"&&(h.callback=function(){Vm(s,u),typeof w!="function"&&(El===null?El=new Set([this]):El.add(this));var z=u.stack;this.componentDidCatch(u.value,{componentStack:z!==null?z:""})}),h}function $m(s,u,h){var w=s.pingCache;if(w===null){w=s.pingCache=new w1;var k=new Set;w.set(u,k)}else k=w.get(u),k===void 0&&(k=new Set,w.set(u,k));k.has(h)||(k.add(h),s=w6.bind(null,s,u,h),u.then(s,s))}function H0(s){do{var u;if((u=s.tag===13)&&(u=s.memoizedState,u=u!==null?u.dehydrated!==null:!0),u)return s;s=s.return}while(s!==null);return null}function Sl(s,u,h,w,k){return s.mode&1?(s.flags|=65536,s.lanes=k,s):(s===u?s.flags|=65536:(s.flags|=128,h.flags|=131072,h.flags&=-52805,h.tag===1&&(h.alternate===null?h.tag=17:(u=Ms(-1,1),u.tag=2,bl(h,u,1))),h.lanes|=1),s)}var nf=P.ReactCurrentOwner,Br=!1;function ma(s,u,h,w){u.child=s===null?Qe(u,null,h,w):Lr(u,s.child,h,w)}function ii(s,u,h,w,k){h=h.render;var T=u.ref;return br(u,k),w=xl(s,u,h,w,T,k),h=To(),s!==null&&!Br?(u.updateQueue=s.updateQueue,u.flags&=-2053,s.lanes&=~k,Xi(s,u,k)):(hr&&h&&qp(u),u.flags|=1,ma(s,u,w,k),u.child)}function xu(s,u,h,w,k){if(s===null){var T=h.type;return typeof T=="function"&&!av(T)&&T.defaultProps===void 0&&h.compare===null&&h.defaultProps===void 0?(u.tag=15,u.type=T,Kt(s,u,T,w,k)):(s=wf(h.type,null,w,u,u.mode,k),s.ref=u.ref,s.return=u,u.child=s)}if(T=s.child,!(s.lanes&k)){var z=T.memoizedProps;if(h=h.compare,h=h!==null?h:Ad,h(z,w)&&s.ref===u.ref)return Xi(s,u,k)}return u.flags|=1,s=Tl(T,w),s.ref=u.ref,s.return=u,u.child=s}function Kt(s,u,h,w,k){if(s!==null){var T=s.memoizedProps;if(Ad(T,w)&&s.ref===u.ref)if(Br=!1,u.pendingProps=w=T,(s.lanes&k)!==0)s.flags&131072&&(Br=!0);else return u.lanes=s.lanes,Xi(s,u,k)}return V0(s,u,h,w,k)}function rf(s,u,h){var w=u.pendingProps,k=w.children,T=s!==null?s.memoizedState:null;if(w.mode==="hidden")if(!(u.mode&1))u.memoizedState={baseLanes:0,cachePool:null,transitions:null},St(Lc,Ti),Ti|=h;else{if(!(h&1073741824))return s=T!==null?T.baseLanes|h:h,u.lanes=u.childLanes=1073741824,u.memoizedState={baseLanes:s,cachePool:null,transitions:null},u.updateQueue=null,St(Lc,Ti),Ti|=s,null;u.memoizedState={baseLanes:0,cachePool:null,transitions:null},w=T!==null?T.baseLanes:h,St(Lc,Ti),Ti|=w}else T!==null?(w=T.baseLanes|h,u.memoizedState=null):w=h,St(Lc,Ti),Ti|=w;return ma(s,u,k,h),u.child}function Zm(s,u){var h=u.ref;(s===null&&h!==null||s!==null&&s.ref!==h)&&(u.flags|=512,u.flags|=2097152)}function V0(s,u,h,w,k){var T=Ur(h)?Qa:Er.current;return T=ei(u,T),br(u,k),h=xl(s,u,h,w,T,k),w=To(),s!==null&&!Br?(u.updateQueue=s.updateQueue,u.flags&=-2053,s.lanes&=~k,Xi(s,u,k)):(hr&&w&&qp(u),u.flags|=1,ma(s,u,h,k),u.child)}function B0(s,u,h,w,k){if(Ur(h)){var T=!0;aa(u)}else T=!1;if(br(u,k),u.stateNode===null)Ki(s,u),y1(u,h,w),tf(u,h,w,k),w=!0;else if(s===null){var z=u.stateNode,q=u.memoizedProps;z.props=q;var X=z.context,pe=h.contextType;typeof pe=="object"&&pe!==null?pe=Ji(pe):(pe=Ur(h)?Qa:Er.current,pe=ei(u,pe));var De=h.getDerivedStateFromProps,ze=typeof De=="function"||typeof z.getSnapshotBeforeUpdate=="function";ze||typeof z.UNSAFE_componentWillReceiveProps!="function"&&typeof z.componentWillReceiveProps!="function"||(q!==w||X!==pe)&&F0(u,z,w,pe),_i=!1;var Ae=u.memoizedState;z.state=Ae,Bd(u,w,z,k),X=u.memoizedState,q!==w||Ae!==X||Xr.current||_i?(typeof De=="function"&&(Um(u,h,De,w),X=u.memoizedState),(q=_i||j0(u,h,q,w,Ae,X,pe))?(ze||typeof z.UNSAFE_componentWillMount!="function"&&typeof z.componentWillMount!="function"||(typeof z.componentWillMount=="function"&&z.componentWillMount(),typeof z.UNSAFE_componentWillMount=="function"&&z.UNSAFE_componentWillMount()),typeof z.componentDidMount=="function"&&(u.flags|=4194308)):(typeof z.componentDidMount=="function"&&(u.flags|=4194308),u.memoizedProps=w,u.memoizedState=X),z.props=w,z.state=X,z.context=pe,w=q):(typeof z.componentDidMount=="function"&&(u.flags|=4194308),w=!1)}else{z=u.stateNode,I0(s,u),q=u.memoizedProps,pe=u.type===u.elementType?q:Ro(u.type,q),z.props=pe,ze=u.pendingProps,Ae=z.context,X=h.contextType,typeof X=="object"&&X!==null?X=Ji(X):(X=Ur(h)?Qa:Er.current,X=ei(u,X));var nt=h.getDerivedStateFromProps;(De=typeof nt=="function"||typeof z.getSnapshotBeforeUpdate=="function")||typeof z.UNSAFE_componentWillReceiveProps!="function"&&typeof z.componentWillReceiveProps!="function"||(q!==ze||Ae!==X)&&F0(u,z,w,X),_i=!1,Ae=u.memoizedState,z.state=Ae,Bd(u,w,z,k);var ct=u.memoizedState;q!==ze||Ae!==ct||Xr.current||_i?(typeof nt=="function"&&(Um(u,h,nt,w),ct=u.memoizedState),(pe=_i||j0(u,h,pe,w,Ae,ct,X)||!1)?(De||typeof z.UNSAFE_componentWillUpdate!="function"&&typeof z.componentWillUpdate!="function"||(typeof z.componentWillUpdate=="function"&&z.componentWillUpdate(w,ct,X),typeof z.UNSAFE_componentWillUpdate=="function"&&z.UNSAFE_componentWillUpdate(w,ct,X)),typeof z.componentDidUpdate=="function"&&(u.flags|=4),typeof z.getSnapshotBeforeUpdate=="function"&&(u.flags|=1024)):(typeof z.componentDidUpdate!="function"||q===s.memoizedProps&&Ae===s.memoizedState||(u.flags|=4),typeof z.getSnapshotBeforeUpdate!="function"||q===s.memoizedProps&&Ae===s.memoizedState||(u.flags|=1024),u.memoizedProps=w,u.memoizedState=ct),z.props=w,z.state=ct,z.context=X,w=pe):(typeof z.componentDidUpdate!="function"||q===s.memoizedProps&&Ae===s.memoizedState||(u.flags|=4),typeof z.getSnapshotBeforeUpdate!="function"||q===s.memoizedProps&&Ae===s.memoizedState||(u.flags|=1024),w=!1)}return af(s,u,h,w,T,k)}function af(s,u,h,w,k,T){Zm(s,u);var z=(u.flags&128)!==0;if(!w&&!z)return k&&Zp(u,h,!1),Xi(s,u,T);w=u.stateNode,nf.current=u;var q=z&&typeof h.getDerivedStateFromError!="function"?null:w.render();return u.flags|=1,s!==null&&z?(u.child=Lr(u,s.child,null,T),u.child=Lr(u,null,q,T)):ma(s,u,q,T),u.memoizedState=w.state,k&&Zp(u,h,!0),u.child}function Nc(s){var u=s.stateNode;u.pendingContext?N0(s,u.pendingContext,u.pendingContext!==u.context):u.context&&N0(s,u.context,!1),zm(s,u.containerInfo)}function $0(s,u,h,w,k){return wl(),Rs(k),u.flags|=256,ma(s,u,h,w),u.child}var b1={dehydrated:null,treeContext:null,retryLane:0};function Wm(s){return{baseLanes:s,cachePool:null,transitions:null}}function x1(s,u,h){var w=u.pendingProps,k=xr.current,T=!1,z=(u.flags&128)!==0,q;if((q=z)||(q=s!==null&&s.memoizedState===null?!1:(k&2)!==0),q?(T=!0,u.flags&=-129):(s===null||s.memoizedState!==null)&&(k|=1),St(xr,k&1),s===null)return Rm(u),s=u.memoizedState,s!==null&&(s=s.dehydrated,s!==null)?(u.mode&1?s.data==="$!"?u.lanes=8:u.lanes=1073741824:u.lanes=1,null):(z=w.children,s=w.fallback,T?(w=u.mode,T=u.child,z={mode:"hidden",children:z},!(w&1)&&T!==null?(T.childLanes=0,T.pendingProps=z):T=Rl(z,w,0,null),s=Is(s,w,h,null),T.return=u,s.return=u,T.sibling=s,u.child=T,u.child.memoizedState=Wm(h),u.memoizedState=b1,s):qm(u,z));if(k=s.memoizedState,k!==null&&(q=k.dehydrated,q!==null))return Z0(s,u,z,w,q,k,h);if(T){T=w.fallback,z=u.mode,k=s.child,q=k.sibling;var X={mode:"hidden",children:w.children};return!(z&1)&&u.child!==k?(w=u.child,w.childLanes=0,w.pendingProps=X,u.deletions=null):(w=Tl(k,X),w.subtreeFlags=k.subtreeFlags&14680064),q!==null?T=Tl(q,T):(T=Is(T,z,h,null),T.flags|=2),T.return=u,w.return=u,w.sibling=T,u.child=w,w=T,T=u.child,z=s.child.memoizedState,z=z===null?Wm(h):{baseLanes:z.baseLanes|h,cachePool:null,transitions:z.transitions},T.memoizedState=z,T.childLanes=s.childLanes&~h,u.memoizedState=b1,w}return T=s.child,s=T.sibling,w=Tl(T,{mode:"visible",children:w.children}),!(u.mode&1)&&(w.lanes=h),w.return=u,w.sibling=null,s!==null&&(h=u.deletions,h===null?(u.deletions=[s],u.flags|=16):h.push(s)),u.child=w,u.memoizedState=null,w}function qm(s,u){return u=Rl({mode:"visible",children:u},s.mode,0,null),u.return=s,s.child=u}function of(s,u,h,w){return w!==null&&Rs(w),Lr(u,s.child,null,h),s=qm(u,u.pendingProps.children),s.flags|=2,u.memoizedState=null,s}function Z0(s,u,h,w,k,T,z){if(h)return u.flags&256?(u.flags&=-257,w=Hm(Error(n(422))),of(s,u,z,w)):u.memoizedState!==null?(u.child=s.child,u.flags|=128,null):(T=w.fallback,k=u.mode,w=Rl({mode:"visible",children:w.children},k,0,null),T=Is(T,k,z,null),T.flags|=2,w.return=u,T.return=u,w.sibling=T,u.child=w,u.mode&1&&Lr(u,s.child,null,z),u.child.memoizedState=Wm(z),u.memoizedState=b1,T);if(!(u.mode&1))return of(s,u,z,null);if(k.data==="$!"){if(w=k.nextSibling&&k.nextSibling.dataset,w)var q=w.dgst;return w=q,T=Error(n(419)),w=Hm(T,w,void 0),of(s,u,z,w)}if(q=(z&s.childLanes)!==0,Br||q){if(w=ea,w!==null){switch(z&-z){case 4:k=2;break;case 16:k=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:k=32;break;case 536870912:k=268435456;break;default:k=0}k=k&(w.suspendedLanes|z)?0:k,k!==0&&k!==T.retryLane&&(T.retryLane=k,Ei(s,k),Fa(w,s,k,-1))}return rv(),w=Hm(Error(n(421))),of(s,u,z,w)}return k.data==="$?"?(u.flags|=128,u.child=s.child,u=b6.bind(null,s),k._reactRetry=u,null):(s=T.treeContext,ni=$o(k.nextSibling),ti=u,hr=!0,Yi=null,s!==null&&(Hr[Gi++]=Go,Hr[Gi++]=Yo,Hr[Gi++]=Si,Go=s.id,Yo=s.overflow,Si=u),u=qm(u,w.children),u.flags|=4096,u)}function Gm(s,u,h){s.lanes|=u;var w=s.alternate;w!==null&&(w.lanes|=u),Lm(s.return,u,h)}function Pa(s,u,h,w,k){var T=s.memoizedState;T===null?s.memoizedState={isBackwards:u,rendering:null,renderingStartTime:0,last:w,tail:h,tailMode:k}:(T.isBackwards=u,T.rendering=null,T.renderingStartTime=0,T.last=w,T.tail=h,T.tailMode=k)}function Ko(s,u,h){var w=u.pendingProps,k=w.revealOrder,T=w.tail;if(ma(s,u,w.children,h),w=xr.current,w&2)w=w&1|2,u.flags|=128;else{if(s!==null&&s.flags&128)e:for(s=u.child;s!==null;){if(s.tag===13)s.memoizedState!==null&&Gm(s,h,u);else if(s.tag===19)Gm(s,h,u);else if(s.child!==null){s.child.return=s,s=s.child;continue}if(s===u)break e;for(;s.sibling===null;){if(s.return===null||s.return===u)break e;s=s.return}s.sibling.return=s.return,s=s.sibling}w&=1}if(St(xr,w),!(u.mode&1))u.memoizedState=null;else switch(k){case"forwards":for(h=u.child,k=null;h!==null;)s=h.alternate,s!==null&&Qp(s)===null&&(k=h),h=h.sibling;h=k,h===null?(k=u.child,u.child=null):(k=h.sibling,h.sibling=null),Pa(u,!1,k,h,T);break;case"backwards":for(h=null,k=u.child,u.child=null;k!==null;){if(s=k.alternate,s!==null&&Qp(s)===null){u.child=k;break}s=k.sibling,k.sibling=h,h=k,k=s}Pa(u,!0,h,null,T);break;case"together":Pa(u,!1,null,null,void 0);break;default:u.memoizedState=null}return u.child}function Ki(s,u){!(u.mode&1)&&s!==null&&(s.alternate=null,u.alternate=null,u.flags|=2)}function Xi(s,u,h){if(s!==null&&(u.dependencies=s.dependencies),es|=u.lanes,!(h&u.childLanes))return null;if(s!==null&&u.child!==s.child)throw Error(n(153));if(u.child!==null){for(s=u.child,h=Tl(s,s.pendingProps),u.child=h,h.return=u;s.sibling!==null;)s=s.sibling,h=h.sibling=Tl(s,s.pendingProps),h.return=u;h.sibling=null}return u.child}function sf(s,u,h){switch(u.tag){case 3:Nc(u),wl();break;case 5:P0(u);break;case 1:Ur(u.type)&&aa(u);break;case 4:zm(u,u.stateNode.containerInfo);break;case 10:var w=u.type._context,k=u.memoizedProps.value;St(ki,w._currentValue),w._currentValue=k;break;case 13:if(w=u.memoizedState,w!==null)return w.dehydrated!==null?(St(xr,xr.current&1),u.flags|=128,null):h&u.child.childLanes?x1(s,u,h):(St(xr,xr.current&1),s=Xi(s,u,h),s!==null?s.sibling:null);St(xr,xr.current&1);break;case 19:if(w=(h&u.childLanes)!==0,s.flags&128){if(w)return Ko(s,u,h);u.flags|=128}if(k=u.memoizedState,k!==null&&(k.rendering=null,k.tail=null,k.lastEffect=null),St(xr,xr.current),w)break;return null;case 22:case 23:return u.lanes=0,rf(s,u,h)}return Xi(s,u,h)}var Qi,$r,W0,q0;Qi=function(s,u){for(var h=u.child;h!==null;){if(h.tag===5||h.tag===6)s.appendChild(h.stateNode);else if(h.tag!==4&&h.child!==null){h.child.return=h,h=h.child;continue}if(h===u)break;for(;h.sibling===null;){if(h.return===null||h.return===u)return;h=h.return}h.sibling.return=h.return,h=h.sibling}},$r=function(){},W0=function(s,u,h,w){var k=s.memoizedProps;if(k!==w){s=u.stateNode,fu(Jo.current);var T=null;switch(h){case"input":k=lt(s,k),w=lt(s,w),T=[];break;case"select":k=H({},k,{value:void 0}),w=H({},w,{value:void 0}),T=[];break;case"textarea":k=Pn(s,k),w=Pn(s,w),T=[];break;default:typeof k.onClick!="function"&&typeof w.onClick=="function"&&(s.onclick=pl)}Qt(h,w);var z;h=null;for(pe in k)if(!w.hasOwnProperty(pe)&&k.hasOwnProperty(pe)&&k[pe]!=null)if(pe==="style"){var q=k[pe];for(z in q)q.hasOwnProperty(z)&&(h||(h={}),h[z]="")}else pe!=="dangerouslySetInnerHTML"&&pe!=="children"&&pe!=="suppressContentEditableWarning"&&pe!=="suppressHydrationWarning"&&pe!=="autoFocus"&&(o.hasOwnProperty(pe)?T||(T=[]):(T=T||[]).push(pe,null));for(pe in w){var X=w[pe];if(q=k!=null?k[pe]:void 0,w.hasOwnProperty(pe)&&X!==q&&(X!=null||q!=null))if(pe==="style")if(q){for(z in q)!q.hasOwnProperty(z)||X&&X.hasOwnProperty(z)||(h||(h={}),h[z]="");for(z in X)X.hasOwnProperty(z)&&q[z]!==X[z]&&(h||(h={}),h[z]=X[z])}else h||(T||(T=[]),T.push(pe,h)),h=X;else pe==="dangerouslySetInnerHTML"?(X=X?X.__html:void 0,q=q?q.__html:void 0,X!=null&&q!==X&&(T=T||[]).push(pe,X)):pe==="children"?typeof X!="string"&&typeof X!="number"||(T=T||[]).push(pe,""+X):pe!=="suppressContentEditableWarning"&&pe!=="suppressHydrationWarning"&&(o.hasOwnProperty(pe)?(X!=null&&pe==="onScroll"&&zn("scroll",s),T||q===X||(T=[])):(T=T||[]).push(pe,X))}h&&(T=T||[]).push("style",h);var pe=T;(u.updateQueue=pe)&&(u.flags|=4)}},q0=function(s,u,h,w){h!==w&&(u.flags|=4)};function lf(s,u){if(!hr)switch(s.tailMode){case"hidden":u=s.tail;for(var h=null;u!==null;)u.alternate!==null&&(h=u),u=u.sibling;h===null?s.tail=null:h.sibling=null;break;case"collapsed":h=s.tail;for(var w=null;h!==null;)h.alternate!==null&&(w=h),h=h.sibling;w===null?u||s.tail===null?s.tail=null:s.tail.sibling=null:w.sibling=null}}function oa(s){var u=s.alternate!==null&&s.alternate.child===s.child,h=0,w=0;if(u)for(var k=s.child;k!==null;)h|=k.lanes|k.childLanes,w|=k.subtreeFlags&14680064,w|=k.flags&14680064,k.return=s,k=k.sibling;else for(k=s.child;k!==null;)h|=k.lanes|k.childLanes,w|=k.subtreeFlags,w|=k.flags,k.return=s,k=k.sibling;return s.subtreeFlags|=w,s.childLanes=h,u}function G0(s,u,h){var w=u.pendingProps;switch(Gp(u),u.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return oa(u),null;case 1:return Ur(u.type)&&Ec(),oa(u),null;case 3:return w=u.stateNode,pu(),rr(Xr),rr(Er),Rt(),w.pendingContext&&(w.context=w.pendingContext,w.pendingContext=null),(s===null||s.child===null)&&(Yp(u)?u.flags|=4:s===null||s.memoizedState.isDehydrated&&!(u.flags&256)||(u.flags|=1024,Yi!==null&&(ku(Yi),Yi=null))),$r(s,u),oa(u),null;case 5:Xp(u);var k=fu(Wd.current);if(h=u.type,s!==null&&u.stateNode!=null)W0(s,u,h,w,k),s.ref!==u.ref&&(u.flags|=512,u.flags|=2097152);else{if(!w){if(u.stateNode===null)throw Error(n(166));return oa(u),null}if(s=fu(Jo.current),Yp(u)){w=u.stateNode,h=u.type;var T=u.memoizedProps;switch(w[Zo]=u,w[Fd]=T,s=(u.mode&1)!==0,h){case"dialog":zn("cancel",w),zn("close",w);break;case"iframe":case"object":case"embed":zn("load",w);break;case"video":case"audio":for(k=0;k<Pd.length;k++)zn(Pd[k],w);break;case"source":zn("error",w);break;case"img":case"image":case"link":zn("error",w),zn("load",w);break;case"details":zn("toggle",w);break;case"input":vt(w,T),zn("invalid",w);break;case"select":w._wrapperState={wasMultiple:!!T.multiple},zn("invalid",w);break;case"textarea":Wt(w,T),zn("invalid",w)}Qt(h,T),k=null;for(var z in T)if(T.hasOwnProperty(z)){var q=T[z];z==="children"?typeof q=="string"?w.textContent!==q&&(T.suppressHydrationWarning!==!0&&Hp(w.textContent,q,s),k=["children",q]):typeof q=="number"&&w.textContent!==""+q&&(T.suppressHydrationWarning!==!0&&Hp(w.textContent,q,s),k=["children",""+q]):o.hasOwnProperty(z)&&q!=null&&z==="onScroll"&&zn("scroll",w)}switch(h){case"input":Xe(w),Dn(w,T,!0);break;case"textarea":Xe(w),Vn(w);break;case"select":case"option":break;default:typeof T.onClick=="function"&&(w.onclick=pl)}w=k,u.updateQueue=w,w!==null&&(u.flags|=4)}else{z=k.nodeType===9?k:k.ownerDocument,s==="http://www.w3.org/1999/xhtml"&&(s=me(h)),s==="http://www.w3.org/1999/xhtml"?h==="script"?(s=z.createElement("div"),s.innerHTML="<script><\/script>",s=s.removeChild(s.firstChild)):typeof w.is=="string"?s=z.createElement(h,{is:w.is}):(s=z.createElement(h),h==="select"&&(z=s,w.multiple?z.multiple=!0:w.size&&(z.size=w.size))):s=z.createElementNS(s,h),s[Zo]=u,s[Fd]=w,Qi(s,u,!1,!1),u.stateNode=s;e:{switch(z=Kn(h,w),h){case"dialog":zn("cancel",s),zn("close",s),k=w;break;case"iframe":case"object":case"embed":zn("load",s),k=w;break;case"video":case"audio":for(k=0;k<Pd.length;k++)zn(Pd[k],s);k=w;break;case"source":zn("error",s),k=w;break;case"img":case"image":case"link":zn("error",s),zn("load",s),k=w;break;case"details":zn("toggle",s),k=w;break;case"input":vt(s,w),k=lt(s,w),zn("invalid",s);break;case"option":k=w;break;case"select":s._wrapperState={wasMultiple:!!w.multiple},k=H({},w,{value:void 0}),zn("invalid",s);break;case"textarea":Wt(s,w),k=Pn(s,w),zn("invalid",s);break;default:k=w}Qt(h,k),q=k;for(T in q)if(q.hasOwnProperty(T)){var X=q[T];T==="style"?Xt(s,X):T==="dangerouslySetInnerHTML"?(X=X?X.__html:void 0,X!=null&&It(s,X)):T==="children"?typeof X=="string"?(h!=="textarea"||X!=="")&&Te(s,X):typeof X=="number"&&Te(s,""+X):T!=="suppressContentEditableWarning"&&T!=="suppressHydrationWarning"&&T!=="autoFocus"&&(o.hasOwnProperty(T)?X!=null&&T==="onScroll"&&zn("scroll",s):X!=null&&U(s,T,X,z))}switch(h){case"input":Xe(s),Dn(s,w,!1);break;case"textarea":Xe(s),Vn(s);break;case"option":w.value!=null&&s.setAttribute("value",""+Ze(w.value));break;case"select":s.multiple=!!w.multiple,T=w.value,T!=null?Mt(s,!!w.multiple,T,!1):w.defaultValue!=null&&Mt(s,!!w.multiple,w.defaultValue,!0);break;default:typeof k.onClick=="function"&&(s.onclick=pl)}switch(h){case"button":case"input":case"select":case"textarea":w=!!w.autoFocus;break e;case"img":w=!0;break e;default:w=!1}}w&&(u.flags|=4)}u.ref!==null&&(u.flags|=512,u.flags|=2097152)}return oa(u),null;case 6:if(s&&u.stateNode!=null)q0(s,u,s.memoizedProps,w);else{if(typeof w!="string"&&u.stateNode===null)throw Error(n(166));if(h=fu(Wd.current),fu(Jo.current),Yp(u)){if(w=u.stateNode,h=u.memoizedProps,w[Zo]=u,(T=w.nodeValue!==h)&&(s=ti,s!==null))switch(s.tag){case 3:Hp(w.nodeValue,h,(s.mode&1)!==0);break;case 5:s.memoizedProps.suppressHydrationWarning!==!0&&Hp(w.nodeValue,h,(s.mode&1)!==0)}T&&(u.flags|=4)}else w=(h.nodeType===9?h:h.ownerDocument).createTextNode(w),w[Zo]=u,u.stateNode=w}return oa(u),null;case 13:if(rr(xr),w=u.memoizedState,s===null||s.memoizedState!==null&&s.memoizedState.dehydrated!==null){if(hr&&ni!==null&&u.mode&1&&!(u.flags&128))Vd(),wl(),u.flags|=98560,T=!1;else if(T=Yp(u),w!==null&&w.dehydrated!==null){if(s===null){if(!T)throw Error(n(318));if(T=u.memoizedState,T=T!==null?T.dehydrated:null,!T)throw Error(n(317));T[Zo]=u}else wl(),!(u.flags&128)&&(u.memoizedState=null),u.flags|=4;oa(u),T=!1}else Yi!==null&&(ku(Yi),Yi=null),T=!0;if(!T)return u.flags&65536?u:null}return u.flags&128?(u.lanes=h,u):(w=w!==null,w!==(s!==null&&s.memoizedState!==null)&&w&&(u.child.flags|=8192,u.mode&1&&(s===null||xr.current&1?Dr===0&&(Dr=3):rv())),u.updateQueue!==null&&(u.flags|=4),oa(u),null);case 4:return pu(),$r(s,u),s===null&&bc(u.stateNode.containerInfo),oa(u),null;case 10:return Om(u.type._context),oa(u),null;case 17:return Ur(u.type)&&Ec(),oa(u),null;case 19:if(rr(xr),T=u.memoizedState,T===null)return oa(u),null;if(w=(u.flags&128)!==0,z=T.rendering,z===null)if(w)lf(T,!1);else{if(Dr!==0||s!==null&&s.flags&128)for(s=u.child;s!==null;){if(z=Qp(s),z!==null){for(u.flags|=128,lf(T,!1),w=z.updateQueue,w!==null&&(u.updateQueue=w,u.flags|=4),u.subtreeFlags=0,w=h,h=u.child;h!==null;)T=h,s=w,T.flags&=14680066,z=T.alternate,z===null?(T.childLanes=0,T.lanes=s,T.child=null,T.subtreeFlags=0,T.memoizedProps=null,T.memoizedState=null,T.updateQueue=null,T.dependencies=null,T.stateNode=null):(T.childLanes=z.childLanes,T.lanes=z.lanes,T.child=z.child,T.subtreeFlags=0,T.deletions=null,T.memoizedProps=z.memoizedProps,T.memoizedState=z.memoizedState,T.updateQueue=z.updateQueue,T.type=z.type,s=z.dependencies,T.dependencies=s===null?null:{lanes:s.lanes,firstContext:s.firstContext}),h=h.sibling;return St(xr,xr.current&1|2),u.child}s=s.sibling}T.tail!==null&&Yt()>Ic&&(u.flags|=128,w=!0,lf(T,!1),u.lanes=4194304)}else{if(!w)if(s=Qp(z),s!==null){if(u.flags|=128,w=!0,h=s.updateQueue,h!==null&&(u.updateQueue=h,u.flags|=4),lf(T,!0),T.tail===null&&T.tailMode==="hidden"&&!z.alternate&&!hr)return oa(u),null}else 2*Yt()-T.renderingStartTime>Ic&&h!==1073741824&&(u.flags|=128,w=!0,lf(T,!1),u.lanes=4194304);T.isBackwards?(z.sibling=u.child,u.child=z):(h=T.last,h!==null?h.sibling=z:u.child=z,T.last=z)}return T.tail!==null?(u=T.tail,T.rendering=u,T.tail=u.sibling,T.renderingStartTime=Yt(),u.sibling=null,h=xr.current,St(xr,w?h&1|2:h&1),u):(oa(u),null);case 22:case 23:return nv(),w=u.memoizedState!==null,s!==null&&s.memoizedState!==null!==w&&(u.flags|=8192),w&&u.mode&1?Ti&1073741824&&(oa(u),u.subtreeFlags&6&&(u.flags|=8192)):oa(u),null;case 24:return null;case 25:return null}throw Error(n(156,u.tag))}function C1(s,u){switch(Gp(u),u.tag){case 1:return Ur(u.type)&&Ec(),s=u.flags,s&65536?(u.flags=s&-65537|128,u):null;case 3:return pu(),rr(Xr),rr(Er),Rt(),s=u.flags,s&65536&&!(s&128)?(u.flags=s&-65537|128,u):null;case 5:return Xp(u),null;case 13:if(rr(xr),s=u.memoizedState,s!==null&&s.dehydrated!==null){if(u.alternate===null)throw Error(n(340));wl()}return s=u.flags,s&65536?(u.flags=s&-65537|128,u):null;case 19:return rr(xr),null;case 4:return pu(),null;case 10:return Om(u.type._context),null;case 22:case 23:return nv(),null;case 24:return null;default:return null}}var uf=!1,Ma=!1,p6=typeof WeakSet=="function"?WeakSet:Set,ot=null;function Oc(s,u){var h=s.ref;if(h!==null)if(typeof h=="function")try{h(null)}catch(w){mr(s,u,w)}else h.current=null}function S1(s,u,h){try{h()}catch(w){mr(s,u,w)}}var Y0=!1;function J0(s,u){if(jd=$i,s=Id(),Ap(s)){if("selectionStart"in s)var h={start:s.selectionStart,end:s.selectionEnd};else e:{h=(h=s.ownerDocument)&&h.defaultView||window;var w=h.getSelection&&h.getSelection();if(w&&w.rangeCount!==0){h=w.anchorNode;var k=w.anchorOffset,T=w.focusNode;w=w.focusOffset;try{h.nodeType,T.nodeType}catch(Pe){h=null;break e}var z=0,q=-1,X=-1,pe=0,De=0,ze=s,Ae=null;t:for(;;){for(var nt;ze!==h||k!==0&&ze.nodeType!==3||(q=z+k),ze!==T||w!==0&&ze.nodeType!==3||(X=z+w),ze.nodeType===3&&(z+=ze.nodeValue.length),(nt=ze.firstChild)!==null;)Ae=ze,ze=nt;for(;;){if(ze===s)break t;if(Ae===h&&++pe===k&&(q=z),Ae===T&&++De===w&&(X=z),(nt=ze.nextSibling)!==null)break;ze=Ae,Ae=ze.parentNode}ze=nt}h=q===-1||X===-1?null:{start:q,end:X}}else h=null}h=h||{start:0,end:0}}else h=null;for(ou={focusedElem:s,selectionRange:h},$i=!1,ot=u;ot!==null;)if(u=ot,s=u.child,(u.subtreeFlags&1028)!==0&&s!==null)s.return=u,ot=s;else for(;ot!==null;){u=ot;try{var ct=u.alternate;if(u.flags&1024)switch(u.tag){case 0:case 11:case 15:break;case 1:if(ct!==null){var mt=ct.memoizedProps,Pr=ct.memoizedState,ae=u.stateNode,ne=ae.getSnapshotBeforeUpdate(u.elementType===u.type?mt:Ro(u.type,mt),Pr);ae.__reactInternalSnapshotBeforeUpdate=ne}break;case 3:var le=u.stateNode.containerInfo;le.nodeType===1?le.textContent="":le.nodeType===9&&le.documentElement&&le.removeChild(le.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(n(163))}}catch(Pe){mr(u,u.return,Pe)}if(s=u.sibling,s!==null){s.return=u.return,ot=s;break}ot=u.return}return ct=Y0,Y0=!1,ct}function cf(s,u,h){var w=u.updateQueue;if(w=w!==null?w.lastEffect:null,w!==null){var k=w=w.next;do{if((k.tag&s)===s){var T=k.destroy;k.destroy=void 0,T!==void 0&&S1(u,h,T)}k=k.next}while(k!==w)}}function df(s,u){if(u=u.updateQueue,u=u!==null?u.lastEffect:null,u!==null){var h=u=u.next;do{if((h.tag&s)===s){var w=h.create;h.destroy=w()}h=h.next}while(h!==u)}}function Ym(s){var u=s.ref;if(u!==null){var h=s.stateNode;switch(s.tag){case 5:s=h;break;default:s=h}typeof u=="function"?u(s):u.current=s}}function k1(s){var u=s.alternate;u!==null&&(s.alternate=null,k1(u)),s.child=null,s.deletions=null,s.sibling=null,s.tag===5&&(u=s.stateNode,u!==null&&(delete u[Zo],delete u[Fd],delete u[Ud],delete u[kc],delete u[d6])),s.stateNode=null,s.return=null,s.dependencies=null,s.memoizedProps=null,s.memoizedState=null,s.pendingProps=null,s.stateNode=null,s.updateQueue=null}function ff(s){return s.tag===5||s.tag===3||s.tag===4}function Os(s){e:for(;;){for(;s.sibling===null;){if(s.return===null||ff(s.return))return null;s=s.return}for(s.sibling.return=s.return,s=s.sibling;s.tag!==5&&s.tag!==6&&s.tag!==18;){if(s.flags&2||s.child===null||s.tag===4)continue e;s.child.return=s,s=s.child}if(!(s.flags&2))return s.stateNode}}function Xo(s,u,h){var w=s.tag;if(w===5||w===6)s=s.stateNode,u?h.nodeType===8?h.parentNode.insertBefore(s,u):h.insertBefore(s,u):(h.nodeType===8?(u=h.parentNode,u.insertBefore(s,h)):(u=h,u.appendChild(s)),h=h._reactRootContainer,h!=null||u.onclick!==null||(u.onclick=pl));else if(w!==4&&(s=s.child,s!==null))for(Xo(s,u,h),s=s.sibling;s!==null;)Xo(s,u,h),s=s.sibling}function Qo(s,u,h){var w=s.tag;if(w===5||w===6)s=s.stateNode,u?h.insertBefore(s,u):h.appendChild(s);else if(w!==4&&(s=s.child,s!==null))for(Qo(s,u,h),s=s.sibling;s!==null;)Qo(s,u,h),s=s.sibling}var Ir=null,za=!1;function ja(s,u,h){for(h=h.child;h!==null;)K0(s,u,h),h=h.sibling}function K0(s,u,h){if(Ka&&typeof Ka.onCommitFiberUnmount=="function")try{Ka.onCommitFiberUnmount(al,h)}catch(q){}switch(h.tag){case 5:Ma||Oc(h,u);case 6:var w=Ir,k=za;Ir=null,ja(s,u,h),Ir=w,za=k,Ir!==null&&(za?(s=Ir,h=h.stateNode,s.nodeType===8?s.parentNode.removeChild(h):s.removeChild(h)):Ir.removeChild(h.stateNode));break;case 18:Ir!==null&&(za?(s=Ir,h=h.stateNode,s.nodeType===8?Sc(s.parentNode,h):s.nodeType===1&&Sc(s,h),So(s)):Sc(Ir,h.stateNode));break;case 4:w=Ir,k=za,Ir=h.stateNode.containerInfo,za=!0,ja(s,u,h),Ir=w,za=k;break;case 0:case 11:case 14:case 15:if(!Ma&&(w=h.updateQueue,w!==null&&(w=w.lastEffect,w!==null))){k=w=w.next;do{var T=k,z=T.destroy;T=T.tag,z!==void 0&&(T&2||T&4)&&S1(h,u,z),k=k.next}while(k!==w)}ja(s,u,h);break;case 1:if(!Ma&&(Oc(h,u),w=h.stateNode,typeof w.componentWillUnmount=="function"))try{w.props=h.memoizedProps,w.state=h.memoizedState,w.componentWillUnmount()}catch(q){mr(h,u,q)}ja(s,u,h);break;case 21:ja(s,u,h);break;case 22:h.mode&1?(Ma=(w=Ma)||h.memoizedState!==null,ja(s,u,h),Ma=w):ja(s,u,h);break;default:ja(s,u,h)}}function X0(s){var u=s.updateQueue;if(u!==null){s.updateQueue=null;var h=s.stateNode;h===null&&(h=s.stateNode=new p6),u.forEach(function(w){var k=s2.bind(null,s,w);h.has(w)||(h.add(w),w.then(k,k))})}}function Mo(s,u){var h=u.deletions;if(h!==null)for(var w=0;w<h.length;w++){var k=h[w];try{var T=s,z=u,q=z;e:for(;q!==null;){switch(q.tag){case 5:Ir=q.stateNode,za=!1;break e;case 3:Ir=q.stateNode.containerInfo,za=!0;break e;case 4:Ir=q.stateNode.containerInfo,za=!0;break e}q=q.return}if(Ir===null)throw Error(n(160));K0(T,z,k),Ir=null,za=!1;var X=k.alternate;X!==null&&(X.return=null),k.return=null}catch(pe){mr(k,u,pe)}}if(u.subtreeFlags&12854)for(u=u.child;u!==null;)Jm(u,s),u=u.sibling}function Jm(s,u){var h=s.alternate,w=s.flags;switch(s.tag){case 0:case 11:case 14:case 15:if(Mo(u,s),oi(s),w&4){try{cf(3,s,s.return),df(3,s)}catch(mt){mr(s,s.return,mt)}try{cf(5,s,s.return)}catch(mt){mr(s,s.return,mt)}}break;case 1:Mo(u,s),oi(s),w&512&&h!==null&&Oc(h,h.return);break;case 5:if(Mo(u,s),oi(s),w&512&&h!==null&&Oc(h,h.return),s.flags&32){var k=s.stateNode;try{Te(k,"")}catch(mt){mr(s,s.return,mt)}}if(w&4&&(k=s.stateNode,k!=null)){var T=s.memoizedProps,z=h!==null?h.memoizedProps:T,q=s.type,X=s.updateQueue;if(s.updateQueue=null,X!==null)try{q==="input"&&T.type==="radio"&&T.name!=null&&zt(k,T),Kn(q,z);var pe=Kn(q,T);for(z=0;z<X.length;z+=2){var De=X[z],ze=X[z+1];De==="style"?Xt(k,ze):De==="dangerouslySetInnerHTML"?It(k,ze):De==="children"?Te(k,ze):U(k,De,ze,pe)}switch(q){case"input":Ct(k,T);break;case"textarea":pr(k,T);break;case"select":var Ae=k._wrapperState.wasMultiple;k._wrapperState.wasMultiple=!!T.multiple;var nt=T.value;nt!=null?Mt(k,!!T.multiple,nt,!1):Ae!==!!T.multiple&&(T.defaultValue!=null?Mt(k,!!T.multiple,T.defaultValue,!0):Mt(k,!!T.multiple,T.multiple?[]:"",!1))}k[Fd]=T}catch(mt){mr(s,s.return,mt)}}break;case 6:if(Mo(u,s),oi(s),w&4){if(s.stateNode===null)throw Error(n(162));k=s.stateNode,T=s.memoizedProps;try{k.nodeValue=T}catch(mt){mr(s,s.return,mt)}}break;case 3:if(Mo(u,s),oi(s),w&4&&h!==null&&h.memoizedState.isDehydrated)try{So(u.containerInfo)}catch(mt){mr(s,s.return,mt)}break;case 4:Mo(u,s),oi(s);break;case 13:Mo(u,s),oi(s),k=s.child,k.flags&8192&&(T=k.memoizedState!==null,k.stateNode.isHidden=T,!T||k.alternate!==null&&k.alternate.memoizedState!==null||(Qm=Yt())),w&4&&X0(s);break;case 22:if(De=h!==null&&h.memoizedState!==null,s.mode&1?(Ma=(pe=Ma)||De,Mo(u,s),Ma=pe):Mo(u,s),oi(s),w&8192){if(pe=s.memoizedState!==null,(s.stateNode.isHidden=pe)&&!De&&s.mode&1)for(ot=s,De=s.child;De!==null;){for(ze=ot=De;ot!==null;){switch(Ae=ot,nt=Ae.child,Ae.tag){case 0:case 11:case 14:case 15:cf(4,Ae,Ae.return);break;case 1:Oc(Ae,Ae.return);var ct=Ae.stateNode;if(typeof ct.componentWillUnmount=="function"){w=Ae,h=Ae.return;try{u=w,ct.props=u.memoizedProps,ct.state=u.memoizedState,ct.componentWillUnmount()}catch(mt){mr(w,h,mt)}}break;case 5:Oc(Ae,Ae.return);break;case 22:if(Ae.memoizedState!==null){pf(ze);continue}}nt!==null?(nt.return=Ae,ot=nt):pf(ze)}De=De.sibling}e:for(De=null,ze=s;;){if(ze.tag===5){if(De===null){De=ze;try{k=ze.stateNode,pe?(T=k.style,typeof T.setProperty=="function"?T.setProperty("display","none","important"):T.display="none"):(q=ze.stateNode,X=ze.memoizedProps.style,z=X!=null&&X.hasOwnProperty("display")?X.display:null,q.style.display=gt("display",z))}catch(mt){mr(s,s.return,mt)}}}else if(ze.tag===6){if(De===null)try{ze.stateNode.nodeValue=pe?"":ze.memoizedProps}catch(mt){mr(s,s.return,mt)}}else if((ze.tag!==22&&ze.tag!==23||ze.memoizedState===null||ze===s)&&ze.child!==null){ze.child.return=ze,ze=ze.child;continue}if(ze===s)break e;for(;ze.sibling===null;){if(ze.return===null||ze.return===s)break e;De===ze&&(De=null),ze=ze.return}De===ze&&(De=null),ze.sibling.return=ze.return,ze=ze.sibling}}break;case 19:Mo(u,s),oi(s),w&4&&X0(s);break;case 21:break;default:Mo(u,s),oi(s)}}function oi(s){var u=s.flags;if(u&2){try{e:{for(var h=s.return;h!==null;){if(ff(h)){var w=h;break e}h=h.return}throw Error(n(160))}switch(w.tag){case 5:var k=w.stateNode;w.flags&32&&(Te(k,""),w.flags&=-33);var T=Os(s);Qo(s,T,k);break;case 3:case 4:var z=w.stateNode.containerInfo,q=Os(s);Xo(s,q,z);break;default:throw Error(n(161))}}catch(X){mr(s,s.return,X)}s.flags&=-3}u&4096&&(s.flags&=-4097)}function h6(s,u,h){ot=s,Km(s)}function Km(s,u,h){for(var w=(s.mode&1)!==0;ot!==null;){var k=ot,T=k.child;if(k.tag===22&&w){var z=k.memoizedState!==null||uf;if(!z){var q=k.alternate,X=q!==null&&q.memoizedState!==null||Ma;q=uf;var pe=Ma;if(uf=z,(Ma=X)&&!pe)for(ot=k;ot!==null;)z=ot,X=z.child,z.tag===22&&z.memoizedState!==null?Xm(k):X!==null?(X.return=z,ot=X):Xm(k);for(;T!==null;)ot=T,Km(T),T=T.sibling;ot=k,uf=q,Ma=pe}Q0(s)}else k.subtreeFlags&8772&&T!==null?(T.return=k,ot=T):Q0(s)}}function Q0(s){for(;ot!==null;){var u=ot;if(u.flags&8772){var h=u.alternate;try{if(u.flags&8772)switch(u.tag){case 0:case 11:case 15:Ma||df(5,u);break;case 1:var w=u.stateNode;if(u.flags&4&&!Ma)if(h===null)w.componentDidMount();else{var k=u.elementType===u.type?h.memoizedProps:Ro(u.type,h.memoizedProps);w.componentDidUpdate(k,h.memoizedState,w.__reactInternalSnapshotBeforeUpdate)}var T=u.updateQueue;T!==null&&Pm(u,T,w);break;case 3:var z=u.updateQueue;if(z!==null){if(h=null,u.child!==null)switch(u.child.tag){case 5:h=u.child.stateNode;break;case 1:h=u.child.stateNode}Pm(u,z,h)}break;case 5:var q=u.stateNode;if(h===null&&u.flags&4){h=q;var X=u.memoizedProps;switch(u.type){case"button":case"input":case"select":case"textarea":X.autoFocus&&h.focus();break;case"img":X.src&&(h.src=X.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(u.memoizedState===null){var pe=u.alternate;if(pe!==null){var De=pe.memoizedState;if(De!==null){var ze=De.dehydrated;ze!==null&&So(ze)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(n(163))}Ma||u.flags&512&&Ym(u)}catch(Ae){mr(u,u.return,Ae)}}if(u===s){ot=null;break}if(h=u.sibling,h!==null){h.return=u.return,ot=h;break}ot=u.return}}function pf(s){for(;ot!==null;){var u=ot;if(u===s){ot=null;break}var h=u.sibling;if(h!==null){h.return=u.return,ot=h;break}ot=u.return}}function Xm(s){for(;ot!==null;){var u=ot;try{switch(u.tag){case 0:case 11:case 15:var h=u.return;try{df(4,u)}catch(X){mr(u,h,X)}break;case 1:var w=u.stateNode;if(typeof w.componentDidMount=="function"){var k=u.return;try{w.componentDidMount()}catch(X){mr(u,k,X)}}var T=u.return;try{Ym(u)}catch(X){mr(u,T,X)}break;case 5:var z=u.return;try{Ym(u)}catch(X){mr(u,z,X)}}}catch(X){mr(u,u.return,X)}if(u===s){ot=null;break}var q=u.sibling;if(q!==null){q.return=u.return,ot=q;break}ot=u.return}}var m6=Math.ceil,kl=P.ReactCurrentDispatcher,Cu=P.ReactCurrentOwner,va=P.ReactCurrentBatchConfig,gn=0,ea=null,Zr=null,ga=0,Ti=0,Lc=qi(0),Dr=0,hf=null,es=0,Ac=0,E1=0,mf=null,si=null,Qm=0,Ic=1/0,Ri=null,Dc=!1,Su=null,El=null,_1=!1,Ls=null,vf=0,_l=0,Pc=null,gf=-1,Na=0;function Wr(){return gn&6?Yt():gf!==-1?gf:gf=Yt()}function ts(s){return s.mode&1?gn&2&&ga!==0?ga&-ga:f6.transition!==null?(Na===0&&(Na=lc()),Na):(s=Tn,s!==0||(s=window.event,s=s===void 0?16:mc(s.type)),s):1}function Fa(s,u,h,w){if(50<_l)throw _l=0,Pc=null,Error(n(185));ws(s,h,w),(!(gn&2)||s!==ea)&&(s===ea&&(!(gn&2)&&(Ac|=h),Dr===4&&No(s,ga)),li(s,w),h===1&&gn===0&&!(u.mode&1)&&(Ic=Yt()+500,_c&&qo()))}function li(s,u){var h=s.callbackNode;Kl(s,u);var w=Co(s,s===ea?ga:0);if(w===0)h!==null&&fa(h),s.callbackNode=null,s.callbackPriority=0;else if(u=w&-w,s.callbackPriority!==u){if(h!=null&&fa(h),u===1)s.tag===0?ml(ev.bind(null,s)):Wp(ev.bind(null,s)),Cc(function(){!(gn&6)&&qo()}),h=null;else{switch(cc(w)){case 1:h=bo;break;case 4:h=Yl;break;case 16:h=Jl;break;case 536870912:h=ic;break;default:h=Jl}h=u2(h,T1.bind(null,s))}s.callbackPriority=u,s.callbackNode=h}}function T1(s,u){if(gf=-1,Na=0,gn&6)throw Error(n(327));var h=s.callbackNode;if(zc()&&s.callbackNode!==h)return null;var w=Co(s,s===ea?ga:0);if(w===0)return null;if(w&30||w&s.expiredLanes||u)u=R1(s,w);else{u=w;var k=gn;gn|=2;var T=t2();(ea!==s||ga!==u)&&(Ri=null,Ic=Yt()+500,As(s,u));do try{n2();break}catch(q){e2(s,q)}while(!0);Nm(),kl.current=T,gn=k,Zr!==null?u=0:(ea=null,ga=0,u=Dr)}if(u!==0){if(u===2&&(k=ol(s),k!==0&&(w=k,u=yf(s,k))),u===1)throw h=hf,As(s,0),No(s,w),li(s,Yt()),h;if(u===6)No(s,w);else{if(k=s.current.alternate,!(w&30)&&!v6(k)&&(u=R1(s,w),u===2&&(T=ol(s),T!==0&&(w=T,u=yf(s,T))),u===1))throw h=hf,As(s,0),No(s,w),li(s,Yt()),h;switch(s.finishedWork=k,s.finishedLanes=w,u){case 0:case 1:throw Error(n(345));case 2:_u(s,si,Ri);break;case 3:if(No(s,w),(w&130023424)===w&&(u=Qm+500-Yt(),10<u)){if(Co(s,0)!==0)break;if(k=s.suspendedLanes,(k&w)!==w){Wr(),s.pingedLanes|=s.suspendedLanes&k;break}s.timeoutHandle=Bp(_u.bind(null,s,si,Ri),u);break}_u(s,si,Ri);break;case 4:if(No(s,w),(w&4194240)===w)break;for(u=s.eventTimes,k=-1;0<w;){var z=31-Aa(w);T=1<<z,z=u[z],z>k&&(k=z),w&=~T}if(w=k,w=Yt()-w,w=(120>w?120:480>w?480:1080>w?1080:1920>w?1920:3e3>w?3e3:4320>w?4320:1960*m6(w/1960))-w,10<w){s.timeoutHandle=Bp(_u.bind(null,s,si,Ri),w);break}_u(s,si,Ri);break;case 5:_u(s,si,Ri);break;default:throw Error(n(329))}}}return li(s,Yt()),s.callbackNode===h?T1.bind(null,s):null}function yf(s,u){var h=mf;return s.current.memoizedState.isDehydrated&&(As(s,u).flags|=256),s=R1(s,u),s!==2&&(u=si,si=h,u!==null&&ku(u)),s}function ku(s){si===null?si=s:si.push.apply(si,s)}function v6(s){for(var u=s;;){if(u.flags&16384){var h=u.updateQueue;if(h!==null&&(h=h.stores,h!==null))for(var w=0;w<h.length;w++){var k=h[w],T=k.getSnapshot;k=k.value;try{if(!Eo(T(),k))return!1}catch(z){return!1}}}if(h=u.child,u.subtreeFlags&16384&&h!==null)h.return=u,u=h;else{if(u===s)break;for(;u.sibling===null;){if(u.return===null||u.return===s)return!0;u=u.return}u.sibling.return=u.return,u=u.sibling}}return!0}function No(s,u){for(u&=~E1,u&=~Ac,s.suspendedLanes|=u,s.pingedLanes&=~u,s=s.expirationTimes;0<u;){var h=31-Aa(u),w=1<<h;s[h]=-1,u&=~w}}function ev(s){if(gn&6)throw Error(n(327));zc();var u=Co(s,0);if(!(u&1))return li(s,Yt()),null;var h=R1(s,u);if(s.tag!==0&&h===2){var w=ol(s);w!==0&&(u=w,h=yf(s,w))}if(h===1)throw h=hf,As(s,0),No(s,u),li(s,Yt()),h;if(h===6)throw Error(n(345));return s.finishedWork=s.current.alternate,s.finishedLanes=u,_u(s,si,Ri),li(s,Yt()),null}function tv(s,u){var h=gn;gn|=1;try{return s(u)}finally{gn=h,gn===0&&(Ic=Yt()+500,_c&&qo())}}function Eu(s){Ls!==null&&Ls.tag===0&&!(gn&6)&&zc();var u=gn;gn|=1;var h=va.transition,w=Tn;try{if(va.transition=null,Tn=1,s)return s()}finally{Tn=w,va.transition=h,gn=u,!(gn&6)&&qo()}}function nv(){Ti=Lc.current,rr(Lc)}function As(s,u){s.finishedWork=null,s.finishedLanes=0;var h=s.timeoutHandle;if(h!==-1&&(s.timeoutHandle=-1,Em(h)),Zr!==null)for(h=Zr.return;h!==null;){var w=h;switch(Gp(w),w.tag){case 1:w=w.type.childContextTypes,w!=null&&Ec();break;case 3:pu(),rr(Xr),rr(Er),Rt();break;case 5:Xp(w);break;case 4:pu();break;case 13:rr(xr);break;case 19:rr(xr);break;case 10:Om(w.type._context);break;case 22:case 23:nv()}h=h.return}if(ea=s,Zr=s=Tl(s.current,null),ga=Ti=u,Dr=0,hf=null,E1=Ac=es=0,si=mf=null,du!==null){for(u=0;u<du.length;u++)if(h=du[u],w=h.interleaved,w!==null){h.interleaved=null;var k=w.next,T=h.pending;if(T!==null){var z=T.next;T.next=k,w.next=z}h.pending=w}du=null}return s}function e2(s,u){do{var h=Zr;try{if(Nm(),an.current=wu,e1){for(var w=Mn.memoizedState;w!==null;){var k=w.queue;k!==null&&(k.pending=null),w=w.next}e1=!1}if(Wn=0,ia=Vr=Mn=null,Gd=!1,hu=0,Cu.current=null,h===null||h.return===null){Dr=1,hf=u,Zr=null;break}e:{var T=s,z=h.return,q=h,X=u;if(u=ga,q.flags|=32768,X!==null&&typeof X=="object"&&typeof X.then=="function"){var pe=X,De=q,ze=De.tag;if(!(De.mode&1)&&(ze===0||ze===11||ze===15)){var Ae=De.alternate;Ae?(De.updateQueue=Ae.updateQueue,De.memoizedState=Ae.memoizedState,De.lanes=Ae.lanes):(De.updateQueue=null,De.memoizedState=null)}var nt=H0(z);if(nt!==null){nt.flags&=-257,Sl(nt,z,q,T,u),nt.mode&1&&$m(T,pe,u),u=nt,X=pe;var ct=u.updateQueue;if(ct===null){var mt=new Set;mt.add(X),u.updateQueue=mt}else ct.add(X);break e}else{if(!(u&1)){$m(T,pe,u),rv();break e}X=Error(n(426))}}else if(hr&&q.mode&1){var Pr=H0(z);if(Pr!==null){!(Pr.flags&65536)&&(Pr.flags|=256),Sl(Pr,z,q,T,u),Rs(bu(X,q));break e}}T=X=bu(X,q),Dr!==4&&(Dr=2),mf===null?mf=[T]:mf.push(T),T=z;do{switch(T.tag){case 3:T.flags|=65536,u&=-u,T.lanes|=u;var ae=U0(T,X,u);D0(T,ae);break e;case 1:q=X;var ne=T.type,le=T.stateNode;if(!(T.flags&128)&&(typeof ne.getDerivedStateFromError=="function"||le!==null&&typeof le.componentDidCatch=="function"&&(El===null||!El.has(le)))){T.flags|=65536,u&=-u,T.lanes|=u;var Pe=Bm(T,q,u);D0(T,Pe);break e}}T=T.return}while(T!==null)}a2(h)}catch(dt){u=dt,Zr===h&&h!==null&&(Zr=h=h.return);continue}break}while(!0)}function t2(){var s=kl.current;return kl.current=wu,s===null?wu:s}function rv(){(Dr===0||Dr===3||Dr===2)&&(Dr=4),ea===null||!(es&268435455)&&!(Ac&268435455)||No(ea,ga)}function R1(s,u){var h=gn;gn|=2;var w=t2();(ea!==s||ga!==u)&&(Ri=null,As(s,u));do try{g6();break}catch(k){e2(s,k)}while(!0);if(Nm(),gn=h,kl.current=w,Zr!==null)throw Error(n(261));return ea=null,ga=0,Dr}function g6(){for(;Zr!==null;)r2(Zr)}function n2(){for(;Zr!==null&&!yo();)r2(Zr)}function r2(s){var u=l2(s.alternate,s,Ti);s.memoizedProps=s.pendingProps,u===null?a2(s):Zr=u,Cu.current=null}function a2(s){var u=s;do{var h=u.alternate;if(s=u.return,u.flags&32768){if(h=C1(h,u),h!==null){h.flags&=32767,Zr=h;return}if(s!==null)s.flags|=32768,s.subtreeFlags=0,s.deletions=null;else{Dr=6,Zr=null;return}}else if(h=G0(h,u,Ti),h!==null){Zr=h;return}if(u=u.sibling,u!==null){Zr=u;return}Zr=u=s}while(u!==null);Dr===0&&(Dr=5)}function _u(s,u,h){var w=Tn,k=va.transition;try{va.transition=null,Tn=1,y6(s,u,h,w)}finally{va.transition=k,Tn=w}return null}function y6(s,u,h,w){do zc();while(Ls!==null);if(gn&6)throw Error(n(327));h=s.finishedWork;var k=s.finishedLanes;if(h===null)return null;if(s.finishedWork=null,s.finishedLanes=0,h===s.current)throw Error(n(177));s.callbackNode=null,s.callbackPriority=0;var T=h.lanes|h.childLanes;if(am(s,T),s===ea&&(Zr=ea=null,ga=0),!(h.subtreeFlags&2064)&&!(h.flags&2064)||_1||(_1=!0,u2(Jl,function(){return zc(),null})),T=(h.flags&15990)!==0,h.subtreeFlags&15990||T){T=va.transition,va.transition=null;var z=Tn;Tn=1;var q=gn;gn|=4,Cu.current=null,J0(s,h),Jm(h,s),yc(ou),$i=!!jd,ou=jd=null,s.current=h,h6(h),wo(),gn=q,Tn=z,va.transition=T}else s.current=h;if(_1&&(_1=!1,Ls=s,vf=k),T=s.pendingLanes,T===0&&(El=null),kd(h.stateNode),li(s,Yt()),u!==null)for(w=s.onRecoverableError,h=0;h<u.length;h++)k=u[h],w(k.value,{componentStack:k.stack,digest:k.digest});if(Dc)throw Dc=!1,s=Su,Su=null,s;return vf&1&&s.tag!==0&&zc(),T=s.pendingLanes,T&1?s===Pc?_l++:(_l=0,Pc=s):_l=0,qo(),null}function zc(){if(Ls!==null){var s=cc(vf),u=va.transition,h=Tn;try{if(va.transition=null,Tn=16>s?16:s,Ls===null)var w=!1;else{if(s=Ls,Ls=null,vf=0,gn&6)throw Error(n(331));var k=gn;for(gn|=4,ot=s.current;ot!==null;){var T=ot,z=T.child;if(ot.flags&16){var q=T.deletions;if(q!==null){for(var X=0;X<q.length;X++){var pe=q[X];for(ot=pe;ot!==null;){var De=ot;switch(De.tag){case 0:case 11:case 15:cf(8,De,T)}var ze=De.child;if(ze!==null)ze.return=De,ot=ze;else for(;ot!==null;){De=ot;var Ae=De.sibling,nt=De.return;if(k1(De),De===pe){ot=null;break}if(Ae!==null){Ae.return=nt,ot=Ae;break}ot=nt}}}var ct=T.alternate;if(ct!==null){var mt=ct.child;if(mt!==null){ct.child=null;do{var Pr=mt.sibling;mt.sibling=null,mt=Pr}while(mt!==null)}}ot=T}}if(T.subtreeFlags&2064&&z!==null)z.return=T,ot=z;else e:for(;ot!==null;){if(T=ot,T.flags&2048)switch(T.tag){case 0:case 11:case 15:cf(9,T,T.return)}var ae=T.sibling;if(ae!==null){ae.return=T.return,ot=ae;break e}ot=T.return}}var ne=s.current;for(ot=ne;ot!==null;){z=ot;var le=z.child;if(z.subtreeFlags&2064&&le!==null)le.return=z,ot=le;else e:for(z=ne;ot!==null;){if(q=ot,q.flags&2048)try{switch(q.tag){case 0:case 11:case 15:df(9,q)}}catch(dt){mr(q,q.return,dt)}if(q===z){ot=null;break e}var Pe=q.sibling;if(Pe!==null){Pe.return=q.return,ot=Pe;break e}ot=q.return}}if(gn=k,qo(),Ka&&typeof Ka.onPostCommitFiberRoot=="function")try{Ka.onPostCommitFiberRoot(al,s)}catch(dt){}w=!0}return w}finally{Tn=h,va.transition=u}}return!1}function i2(s,u,h){u=bu(h,u),u=U0(s,u,1),s=bl(s,u,1),u=Wr(),s!==null&&(ws(s,1,u),li(s,u))}function mr(s,u,h){if(s.tag===3)i2(s,s,h);else for(;u!==null;){if(u.tag===3){i2(u,s,h);break}else if(u.tag===1){var w=u.stateNode;if(typeof u.type.getDerivedStateFromError=="function"||typeof w.componentDidCatch=="function"&&(El===null||!El.has(w))){s=bu(h,s),s=Bm(u,s,1),u=bl(u,s,1),s=Wr(),u!==null&&(ws(u,1,s),li(u,s));break}}u=u.return}}function w6(s,u,h){var w=s.pingCache;w!==null&&w.delete(u),u=Wr(),s.pingedLanes|=s.suspendedLanes&h,ea===s&&(ga&h)===h&&(Dr===4||Dr===3&&(ga&130023424)===ga&&500>Yt()-Qm?As(s,0):E1|=h),li(s,u)}function o2(s,u){u===0&&(s.mode&1?(u=Ci,Ci<<=1,!(Ci&130023424)&&(Ci=4194304)):u=1);var h=Wr();s=Ei(s,u),s!==null&&(ws(s,u,h),li(s,h))}function b6(s){var u=s.memoizedState,h=0;u!==null&&(h=u.retryLane),o2(s,h)}function s2(s,u){var h=0;switch(s.tag){case 13:var w=s.stateNode,k=s.memoizedState;k!==null&&(h=k.retryLane);break;case 19:w=s.stateNode;break;default:throw Error(n(314))}w!==null&&w.delete(u),o2(s,h)}var l2;l2=function(s,u,h){if(s!==null)if(s.memoizedProps!==u.pendingProps||Xr.current)Br=!0;else{if(!(s.lanes&h)&&!(u.flags&128))return Br=!1,sf(s,u,h);Br=!!(s.flags&131072)}else Br=!1,hr&&u.flags&1048576&&O0(u,Ts,u.index);switch(u.lanes=0,u.tag){case 2:var w=u.type;Ki(s,u),s=u.pendingProps;var k=ei(u,Er.current);br(u,h),k=xl(null,u,w,s,k,h);var T=To();return u.flags|=1,typeof k=="object"&&k!==null&&typeof k.render=="function"&&k.$$typeof===void 0?(u.tag=1,u.memoizedState=null,u.updateQueue=null,Ur(w)?(T=!0,aa(u)):T=!1,u.memoizedState=k.state!==null&&k.state!==void 0?k.state:null,Dm(u),k.updater=g1,u.stateNode=k,k._reactInternals=u,tf(u,w,s,h),u=af(null,u,w,!0,T,h)):(u.tag=0,hr&&T&&qp(u),ma(null,u,k,h),u=u.child),u;case 16:w=u.elementType;e:{switch(Ki(s,u),s=u.pendingProps,k=w._init,w=k(w._payload),u.type=w,k=u.tag=C6(w),s=Ro(w,s),k){case 0:u=V0(null,u,w,s,h);break e;case 1:u=B0(null,u,w,s,h);break e;case 11:u=ii(null,u,w,s,h);break e;case 14:u=xu(null,u,w,Ro(w.type,s),h);break e}throw Error(n(306,w,""))}return u;case 0:return w=u.type,k=u.pendingProps,k=u.elementType===w?k:Ro(w,k),V0(s,u,w,k,h);case 1:return w=u.type,k=u.pendingProps,k=u.elementType===w?k:Ro(w,k),B0(s,u,w,k,h);case 3:e:{if(Nc(u),s===null)throw Error(n(387));w=u.pendingProps,T=u.memoizedState,k=T.element,I0(s,u),Bd(u,w,null,h);var z=u.memoizedState;if(w=z.element,T.isDehydrated)if(T={element:w,isDehydrated:!1,cache:z.cache,pendingSuspenseBoundaries:z.pendingSuspenseBoundaries,transitions:z.transitions},u.updateQueue.baseState=T,u.memoizedState=T,u.flags&256){k=bu(Error(n(423)),u),u=$0(s,u,w,h,k);break e}else if(w!==k){k=bu(Error(n(424)),u),u=$0(s,u,w,h,k);break e}else for(ni=$o(u.stateNode.containerInfo.firstChild),ti=u,hr=!0,Yi=null,h=Qe(u,null,w,h),u.child=h;h;)h.flags=h.flags&-3|4096,h=h.sibling;else{if(wl(),w===k){u=Xi(s,u,h);break e}ma(s,u,w,h)}u=u.child}return u;case 5:return P0(u),s===null&&Rm(u),w=u.type,k=u.pendingProps,T=s!==null?s.memoizedProps:null,z=k.children,Vp(w,k)?z=null:T!==null&&Vp(w,T)&&(u.flags|=32),Zm(s,u),ma(s,u,z,h),u.child;case 6:return s===null&&Rm(u),null;case 13:return x1(s,u,h);case 4:return zm(u,u.stateNode.containerInfo),w=u.pendingProps,s===null?u.child=Lr(u,null,w,h):ma(s,u,w,h),u.child;case 11:return w=u.type,k=u.pendingProps,k=u.elementType===w?k:Ro(w,k),ii(s,u,w,k,h);case 7:return ma(s,u,u.pendingProps,h),u.child;case 8:return ma(s,u,u.pendingProps.children,h),u.child;case 12:return ma(s,u,u.pendingProps.children,h),u.child;case 10:e:{if(w=u.type._context,k=u.pendingProps,T=u.memoizedProps,z=k.value,St(ki,w._currentValue),w._currentValue=z,T!==null)if(Eo(T.value,z)){if(T.children===k.children&&!Xr.current){u=Xi(s,u,h);break e}}else for(T=u.child,T!==null&&(T.return=u);T!==null;){var q=T.dependencies;if(q!==null){z=T.child;for(var X=q.firstContext;X!==null;){if(X.context===w){if(T.tag===1){X=Ms(-1,h&-h),X.tag=2;var pe=T.updateQueue;if(pe!==null){pe=pe.shared;var De=pe.pending;De===null?X.next=X:(X.next=De.next,De.next=X),pe.pending=X}}T.lanes|=h,X=T.alternate,X!==null&&(X.lanes|=h),Lm(T.return,h,u),q.lanes|=h;break}X=X.next}}else if(T.tag===10)z=T.type===u.type?null:T.child;else if(T.tag===18){if(z=T.return,z===null)throw Error(n(341));z.lanes|=h,q=z.alternate,q!==null&&(q.lanes|=h),Lm(z,h,u),z=T.sibling}else z=T.child;if(z!==null)z.return=T;else for(z=T;z!==null;){if(z===u){z=null;break}if(T=z.sibling,T!==null){T.return=z.return,z=T;break}z=z.return}T=z}ma(s,u,k.children,h),u=u.child}return u;case 9:return k=u.type,w=u.pendingProps.children,br(u,h),k=Ji(k),w=w(k),u.flags|=1,ma(s,u,w,h),u.child;case 14:return w=u.type,k=Ro(w,u.pendingProps),k=Ro(w.type,k),xu(s,u,w,k,h);case 15:return Kt(s,u,u.type,u.pendingProps,h);case 17:return w=u.type,k=u.pendingProps,k=u.elementType===w?k:Ro(w,k),Ki(s,u),u.tag=1,Ur(w)?(s=!0,aa(u)):s=!1,br(u,h),y1(u,w,k),tf(u,w,k,h),af(null,u,w,!0,s,h);case 19:return Ko(s,u,h);case 22:return rf(s,u,h)}throw Error(n(156,u.tag))};function u2(s,u){return ir(s,u)}function x6(s,u,h,w){this.tag=s,this.key=h,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=u,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=w,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function eo(s,u,h,w){return new x6(s,u,h,w)}function av(s){return s=s.prototype,!(!s||!s.isReactComponent)}function C6(s){if(typeof s=="function")return av(s)?1:0;if(s!=null){if(s=s.$$typeof,s===de)return 11;if(s===be)return 14}return 2}function Tl(s,u){var h=s.alternate;return h===null?(h=eo(s.tag,u,s.key,s.mode),h.elementType=s.elementType,h.type=s.type,h.stateNode=s.stateNode,h.alternate=s,s.alternate=h):(h.pendingProps=u,h.type=s.type,h.flags=0,h.subtreeFlags=0,h.deletions=null),h.flags=s.flags&14680064,h.childLanes=s.childLanes,h.lanes=s.lanes,h.child=s.child,h.memoizedProps=s.memoizedProps,h.memoizedState=s.memoizedState,h.updateQueue=s.updateQueue,u=s.dependencies,h.dependencies=u===null?null:{lanes:u.lanes,firstContext:u.firstContext},h.sibling=s.sibling,h.index=s.index,h.ref=s.ref,h}function wf(s,u,h,w,k,T){var z=2;if(w=s,typeof s=="function")av(s)&&(z=1);else if(typeof s=="string")z=5;else e:switch(s){case W:return Is(h.children,k,T,u);case G:z=8,k|=8;break;case se:return s=eo(12,h,u,k|2),s.elementType=se,s.lanes=T,s;case ge:return s=eo(13,h,u,k),s.elementType=ge,s.lanes=T,s;case Re:return s=eo(19,h,u,k),s.elementType=Re,s.lanes=T,s;case ye:return Rl(h,k,T,u);default:if(typeof s=="object"&&s!==null)switch(s.$$typeof){case ke:z=10;break e;case ve:z=9;break e;case de:z=11;break e;case be:z=14;break e;case Ie:z=16,w=null;break e}throw Error(n(130,s==null?s:typeof s,""))}return u=eo(z,h,u,k),u.elementType=s,u.type=w,u.lanes=T,u}function Is(s,u,h,w){return s=eo(7,s,w,u),s.lanes=h,s}function Rl(s,u,h,w){return s=eo(22,s,w,u),s.elementType=ye,s.lanes=h,s.stateNode={isHidden:!1},s}function iv(s,u,h){return s=eo(6,s,null,u),s.lanes=h,s}function M1(s,u,h){return u=eo(4,s.children!==null?s.children:[],s.key,u),u.lanes=h,u.stateNode={containerInfo:s.containerInfo,pendingChildren:null,implementation:s.implementation},u}function c2(s,u,h,w,k){this.tag=u,this.containerInfo=s,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=uc(0),this.expirationTimes=uc(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=uc(0),this.identifierPrefix=w,this.onRecoverableError=k,this.mutableSourceEagerHydrationData=null}function N1(s,u,h,w,k,T,z,q,X){return s=new c2(s,u,h,q,X),u===1?(u=1,T===!0&&(u|=8)):u=0,T=eo(3,null,null,u),s.current=T,T.stateNode=s,T.memoizedState={element:w,isDehydrated:h,cache:null,transitions:null,pendingSuspenseBoundaries:null},Dm(T),s}function S6(s,u,h){var w=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:B,key:w==null?null:""+w,children:s,containerInfo:u,implementation:h}}function ov(s){if(!s)return Ta;s=s._reactInternals;e:{if(Gt(s)!==s||s.tag!==1)throw Error(n(170));var u=s;do{switch(u.tag){case 3:u=u.stateNode.context;break e;case 1:if(Ur(u.type)){u=u.stateNode.__reactInternalMemoizedMergedChildContext;break e}}u=u.return}while(u!==null);throw Error(n(171))}if(s.tag===1){var h=s.type;if(Ur(h))return Hd(s,h,u)}return u}function d2(s,u,h,w,k,T,z,q,X){return s=N1(h,w,!0,s,k,T,z,q,X),s.context=ov(null),h=s.current,w=Wr(),k=ts(h),T=Ms(w,k),T.callback=u!=null?u:null,bl(h,T,k),s.current.lanes=k,ws(s,k,w),li(s,w),s}function O1(s,u,h,w){var k=u.current,T=Wr(),z=ts(k);return h=ov(h),u.context===null?u.context=h:u.pendingContext=h,u=Ms(T,z),u.payload={element:s},w=w===void 0?null:w,w!==null&&(u.callback=w),s=bl(k,u,z),s!==null&&(Fa(s,k,z,T),Kp(s,k,z)),z}function L1(s){if(s=s.current,!s.child)return null;switch(s.child.tag){case 5:return s.child.stateNode;default:return s.child.stateNode}}function sv(s,u){if(s=s.memoizedState,s!==null&&s.dehydrated!==null){var h=s.retryLane;s.retryLane=h!==0&&h<u?h:u}}function A1(s,u){sv(s,u),(s=s.alternate)&&sv(s,u)}function f2(){return null}var Tu=typeof reportError=="function"?reportError:function(s){console.error(s)};function lv(s){this._internalRoot=s}I1.prototype.render=lv.prototype.render=function(s){var u=this._internalRoot;if(u===null)throw Error(n(409));O1(s,u,null,null)},I1.prototype.unmount=lv.prototype.unmount=function(){var s=this._internalRoot;if(s!==null){this._internalRoot=null;var u=s.containerInfo;Eu(function(){O1(null,s,null,null)}),u[Es]=null}};function I1(s){this._internalRoot=s}I1.prototype.unstable_scheduleHydration=function(s){if(s){var u=Ht();s={blockedOn:null,target:s,priority:u};for(var h=0;h<Kr.length&&u!==0&&u<Kr[h].priority;h++);Kr.splice(h,0,s),h===0&&Td(s)}};function uv(s){return!(!s||s.nodeType!==1&&s.nodeType!==9&&s.nodeType!==11)}function D1(s){return!(!s||s.nodeType!==1&&s.nodeType!==9&&s.nodeType!==11&&(s.nodeType!==8||s.nodeValue!==" react-mount-point-unstable "))}function p2(){}function k6(s,u,h,w,k){if(k){if(typeof w=="function"){var T=w;w=function(){var pe=L1(z);T.call(pe)}}var z=d2(u,w,s,0,null,!1,!1,"",p2);return s._reactRootContainer=z,s[Es]=z.current,bc(s.nodeType===8?s.parentNode:s),Eu(),z}for(;k=s.lastChild;)s.removeChild(k);if(typeof w=="function"){var q=w;w=function(){var pe=L1(X);q.call(pe)}}var X=N1(s,0,!1,null,null,!1,!1,"",p2);return s._reactRootContainer=X,s[Es]=X.current,bc(s.nodeType===8?s.parentNode:s),Eu(function(){O1(u,X,h,w)}),X}function bf(s,u,h,w,k){var T=h._reactRootContainer;if(T){var z=T;if(typeof k=="function"){var q=k;k=function(){var X=L1(z);q.call(X)}}O1(u,z,s,k)}else z=k6(h,u,s,k,w);return L1(z)}bn=function(s){switch(s.tag){case 3:var u=s.stateNode;if(u.current.memoizedState.isDehydrated){var h=xo(u.pendingLanes);h!==0&&(bs(u,h|1),li(u,Yt()),!(gn&6)&&(Ic=Yt()+500,qo()))}break;case 13:Eu(function(){var w=Ei(s,1);if(w!==null){var k=Wr();Fa(w,s,1,k)}}),A1(s,1)}},Ed=function(s){if(s.tag===13){var u=Ei(s,134217728);if(u!==null){var h=Wr();Fa(u,s,134217728,h)}A1(s,134217728)}},Fo=function(s){if(s.tag===13){var u=ts(s),h=Ei(s,u);if(h!==null){var w=Wr();Fa(h,s,u,w)}A1(s,u)}},Ht=function(){return Tn},dc=function(s,u){var h=Tn;try{return Tn=s,u()}finally{Tn=h}},_n=function(s,u,h){switch(u){case"input":if(Ct(s,h),u=h.name,h.type==="radio"&&u!=null){for(h=s;h.parentNode;)h=h.parentNode;for(h=h.querySelectorAll("input[name="+JSON.stringify(""+u)+'][type="radio"]'),u=0;u<h.length;u++){var w=h[u];if(w!==s&&w.form===s.form){var k=wr(w);if(!k)throw Error(n(90));Et(w),Ct(w,k)}}}break;case"textarea":pr(s,h);break;case"select":u=h.value,u!=null&&Mt(s,!!h.multiple,u,!1)}},jo=tv,Jr=Eu;var E6={usingClientEntryPoint:!1,Events:[Tt,_o,wr,Rr,vo,tv]},xf={findFiberByHostInstance:su,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},h2={bundleType:xf.bundleType,version:xf.version,rendererPackageName:xf.rendererPackageName,rendererConfig:xf.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:P.ReactCurrentDispatcher,findHostInstanceByFiber:function(s){return s=Or(s),s===null?null:s.stateNode},findFiberByHostInstance:xf.findFiberByHostInstance||f2,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__!="undefined"){var Ml=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Ml.isDisabled&&Ml.supportsFiber)try{al=Ml.inject(h2),Ka=Ml}catch(s){}}return Di.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=E6,Di.createPortal=function(s,u){var h=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!uv(u))throw Error(n(200));return S6(s,u,null,h)},Di.createRoot=function(s,u){if(!uv(s))throw Error(n(299));var h=!1,w="",k=Tu;return u!=null&&(u.unstable_strictMode===!0&&(h=!0),u.identifierPrefix!==void 0&&(w=u.identifierPrefix),u.onRecoverableError!==void 0&&(k=u.onRecoverableError)),u=N1(s,1,!1,null,null,h,!1,w,k),s[Es]=u.current,bc(s.nodeType===8?s.parentNode:s),new lv(u)},Di.findDOMNode=function(s){if(s==null)return null;if(s.nodeType===1)return s;var u=s._reactInternals;if(u===void 0)throw typeof s.render=="function"?Error(n(188)):(s=Object.keys(s).join(","),Error(n(268,s)));return s=Or(u),s=s===null?null:s.stateNode,s},Di.flushSync=function(s){return Eu(s)},Di.hydrate=function(s,u,h){if(!D1(u))throw Error(n(200));return bf(null,s,u,!0,h)},Di.hydrateRoot=function(s,u,h){if(!uv(s))throw Error(n(405));var w=h!=null&&h.hydratedSources||null,k=!1,T="",z=Tu;if(h!=null&&(h.unstable_strictMode===!0&&(k=!0),h.identifierPrefix!==void 0&&(T=h.identifierPrefix),h.onRecoverableError!==void 0&&(z=h.onRecoverableError)),u=d2(u,null,s,1,h!=null?h:null,k,!1,T,z),s[Es]=u.current,bc(s),w)for(s=0;s<w.length;s++)h=w[s],k=h._getVersion,k=k(h._source),u.mutableSourceEagerHydrationData==null?u.mutableSourceEagerHydrationData=[h,k]:u.mutableSourceEagerHydrationData.push(h,k);return new I1(u)},Di.render=function(s,u,h){if(!D1(u))throw Error(n(200));return bf(null,s,u,!1,h)},Di.unmountComponentAtNode=function(s){if(!D1(s))throw Error(n(40));return s._reactRootContainer?(Eu(function(){bf(null,null,s,!1,function(){s._reactRootContainer=null,s[Es]=null})}),!0):!1},Di.unstable_batchedUpdates=tv,Di.unstable_renderSubtreeIntoContainer=function(s,u,h,w){if(!D1(h))throw Error(n(200));if(s==null||s._reactInternals===void 0)throw Error(n(38));return bf(s,u,h,!1,w)},Di.version="18.3.1-next-f1338f8080-20240426",Di}var Pi={};/**
101
+ * @license React
102
+ * react-dom.development.js
103
+ *
104
+ * Copyright (c) Facebook, Inc. and its affiliates.
105
+ *
106
+ * This source code is licensed under the MIT license found in the
107
+ * LICENSE file in the root directory of this source tree.
108
+ */var Mw;function hI(){return Mw||(Mw=1,process.env.NODE_ENV!=="production"&&function(){typeof __REACT_DEVTOOLS_GLOBAL_HOOK__!="undefined"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var e=Hl(),t=Tw(),n=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,i=!1;function o(r){i=r}function l(r){if(!i){for(var a=arguments.length,d=new Array(a>1?a-1:0),p=1;p<a;p++)d[p-1]=arguments[p];f("warn",r,d)}}function c(r){if(!i){for(var a=arguments.length,d=new Array(a>1?a-1:0),p=1;p<a;p++)d[p-1]=arguments[p];f("error",r,d)}}function f(r,a,d){{var p=n.ReactDebugCurrentFrame,g=p.getStackAddendum();g!==""&&(a+="%s",d=d.concat([g]));var x=d.map(function(E){return String(E)});x.unshift("Warning: "+a),Function.prototype.apply.call(console[r],console,x)}}var m=0,v=1,b=2,y=3,S=4,C=5,R=6,M=7,L=8,I=9,j=10,U=11,P=12,Z=13,B=14,W=15,G=16,se=17,ke=18,ve=19,de=21,ge=22,Re=23,be=24,Ie=25,ye=!0,Q=!1,Ne=!1,H=!1,K=!1,fe=!0,$=!0,Fe=!0,it=!0,Be=new Set,Ee={},Ze={};function Je(r,a){We(r,a),We(r+"Capture",a)}function We(r,a){Ee[r]&&c("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.",r),Ee[r]=a;{var d=r.toLowerCase();Ze[d]=r,r==="onDoubleClick"&&(Ze.ondblclick=r)}for(var p=0;p<a.length;p++)Be.add(a[p])}var Xe=typeof window!="undefined"&&typeof window.document!="undefined"&&typeof window.document.createElement!="undefined",Et=Object.prototype.hasOwnProperty;function wt(r){{var a=typeof Symbol=="function"&&Symbol.toStringTag,d=a&&r[Symbol.toStringTag]||r.constructor.name||"Object";return d}}function lt(r){try{return vt(r),!1}catch(a){return!0}}function vt(r){return""+r}function zt(r,a){if(lt(r))return c("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before before using it here.",a,wt(r)),vt(r)}function Ct(r){if(lt(r))return c("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",wt(r)),vt(r)}function Dn(r,a){if(lt(r))return c("The provided `%s` prop is an unsupported type %s. This value must be coerced to a string before before using it here.",a,wt(r)),vt(r)}function Hn(r,a){if(lt(r))return c("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before before using it here.",a,wt(r)),vt(r)}function Ue(r){if(lt(r))return c("The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before before using it here.",wt(r)),vt(r)}function Mt(r){if(lt(r))return c("Form field values (value, checked, defaultValue, or defaultChecked props) must be strings, not %s. This value must be coerced to a string before before using it here.",wt(r)),vt(r)}var Pn=0,Wt=1,pr=2,Vn=3,me=4,Me=5,ut=6,It=":A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",Te=It+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",qe=new RegExp("^["+It+"]["+Te+"]*$"),Nt={},gt={};function Xt(r){return Et.call(gt,r)?!0:Et.call(Nt,r)?!1:qe.test(r)?(gt[r]=!0,!0):(Nt[r]=!0,c("Invalid attribute name: `%s`",r),!1)}function sn(r,a,d){return a!==null?a.type===Pn:d?!1:r.length>2&&(r[0]==="o"||r[0]==="O")&&(r[1]==="n"||r[1]==="N")}function Qt(r,a,d,p){if(d!==null&&d.type===Pn)return!1;switch(typeof a){case"function":case"symbol":return!0;case"boolean":{if(p)return!1;if(d!==null)return!d.acceptsBooleans;var g=r.toLowerCase().slice(0,5);return g!=="data-"&&g!=="aria-"}default:return!1}}function Kn(r,a,d,p){if(a===null||typeof a=="undefined"||Qt(r,a,d,p))return!0;if(p)return!1;if(d!==null)switch(d.type){case Vn:return!a;case me:return a===!1;case Me:return isNaN(a);case ut:return isNaN(a)||a<1}return!1}function cn(r){return _n.hasOwnProperty(r)?_n[r]:null}function Sn(r,a,d,p,g,x,E){this.acceptsBooleans=a===pr||a===Vn||a===me,this.attributeName=p,this.attributeNamespace=g,this.mustUseProperty=d,this.propertyName=r,this.type=a,this.sanitizeURL=x,this.removeEmptyString=E}var _n={},da=["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"];da.forEach(function(r){_n[r]=new Sn(r,Pn,!1,r,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(r){var a=r[0],d=r[1];_n[a]=new Sn(a,Wt,!1,d,null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(r){_n[r]=new Sn(r,pr,!1,r.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(r){_n[r]=new Sn(r,pr,!1,r,null,!1,!1)}),["allowFullScreen","async","autoFocus","autoPlay","controls","default","defer","disabled","disablePictureInPicture","disableRemotePlayback","formNoValidate","hidden","loop","noModule","noValidate","open","playsInline","readOnly","required","reversed","scoped","seamless","itemScope"].forEach(function(r){_n[r]=new Sn(r,Vn,!1,r.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(r){_n[r]=new Sn(r,Vn,!0,r,null,!1,!1)}),["capture","download"].forEach(function(r){_n[r]=new Sn(r,me,!1,r,null,!1,!1)}),["cols","rows","size","span"].forEach(function(r){_n[r]=new Sn(r,ut,!1,r,null,!1,!1)}),["rowSpan","start"].forEach(function(r){_n[r]=new Sn(r,Me,!1,r.toLowerCase(),null,!1,!1)});var jr=/[\-\:]([a-z])/g,Yr=function(r){return r[1].toUpperCase()};["accent-height","alignment-baseline","arabic-form","baseline-shift","cap-height","clip-path","clip-rule","color-interpolation","color-interpolation-filters","color-profile","color-rendering","dominant-baseline","enable-background","fill-opacity","fill-rule","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","glyph-name","glyph-orientation-horizontal","glyph-orientation-vertical","horiz-adv-x","horiz-origin-x","image-rendering","letter-spacing","lighting-color","marker-end","marker-mid","marker-start","overline-position","overline-thickness","paint-order","panose-1","pointer-events","rendering-intent","shape-rendering","stop-color","stop-opacity","strikethrough-position","strikethrough-thickness","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","text-decoration","text-rendering","underline-position","underline-thickness","unicode-bidi","unicode-range","units-per-em","v-alphabetic","v-hanging","v-ideographic","v-mathematical","vector-effect","vert-adv-y","vert-origin-x","vert-origin-y","word-spacing","writing-mode","xmlns:xlink","x-height"].forEach(function(r){var a=r.replace(jr,Yr);_n[a]=new Sn(a,Wt,!1,r,null,!1,!1)}),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(function(r){var a=r.replace(jr,Yr);_n[a]=new Sn(a,Wt,!1,r,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(r){var a=r.replace(jr,Yr);_n[a]=new Sn(a,Wt,!1,r,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(r){_n[r]=new Sn(r,Wt,!1,r.toLowerCase(),null,!1,!1)});var Rr="xlinkHref";_n[Rr]=new Sn("xlinkHref",Wt,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(r){_n[r]=new Sn(r,Wt,!1,r.toLowerCase(),null,!0,!0)});var vo=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*\:/i,jo=!1;function Jr(r){!jo&&vo.test(r)&&(jo=!0,c("A future version of React will block javascript: URLs as a security precaution. Use event handlers instead if you can. If you need to generate unsafe HTML try using dangerouslySetInnerHTML instead. React was passed %s.",JSON.stringify(r)))}function go(r,a,d,p){if(p.mustUseProperty){var g=p.propertyName;return r[g]}else{zt(d,a),p.sanitizeURL&&Jr(""+d);var x=p.attributeName,E=null;if(p.type===me){if(r.hasAttribute(x)){var N=r.getAttribute(x);return N===""?!0:Kn(a,d,p,!1)?N:N===""+d?d:N}}else if(r.hasAttribute(x)){if(Kn(a,d,p,!1))return r.getAttribute(x);if(p.type===Vn)return d;E=r.getAttribute(x)}return Kn(a,d,p,!1)?E===null?d:E:E===""+d?d:E}}function _t(r,a,d,p){{if(!Xt(a))return;if(!r.hasAttribute(a))return d===void 0?void 0:null;var g=r.getAttribute(a);return zt(d,a),g===""+d?d:g}}function kn(r,a,d,p){var g=cn(a);if(!sn(a,g,p)){if(Kn(a,d,g,p)&&(d=null),p||g===null){if(Xt(a)){var x=a;d===null?r.removeAttribute(x):(zt(d,a),r.setAttribute(x,""+d))}return}var E=g.mustUseProperty;if(E){var N=g.propertyName;if(d===null){var O=g.type;r[N]=O===Vn?!1:""}else r[N]=d;return}var F=g.attributeName,V=g.attributeNamespace;if(d===null)r.removeAttribute(F);else{var re=g.type,te;re===Vn||re===me&&d===!0?te="":(zt(d,F),te=""+d,g.sanitizeURL&&Jr(te.toString())),V?r.setAttributeNS(V,F,te):r.setAttribute(F,te)}}}var Mr=Symbol.for("react.element"),gr=Symbol.for("react.portal"),La=Symbol.for("react.fragment"),Nr=Symbol.for("react.strict_mode"),xi=Symbol.for("react.profiler"),er=Symbol.for("react.provider"),J=Symbol.for("react.context"),Oe=Symbol.for("react.forward_ref"),Ke=Symbol.for("react.suspense"),st=Symbol.for("react.suspense_list"),Gt=Symbol.for("react.memo"),Vt=Symbol.for("react.lazy"),ln=Symbol.for("react.scope"),rn=Symbol.for("react.debug_trace_mode"),Or=Symbol.for("react.offscreen"),tr=Symbol.for("react.legacy_hidden"),ir=Symbol.for("react.cache"),fa=Symbol.for("react.tracing_marker"),yo=Symbol.iterator,wo="@@iterator";function Yt(r){if(r===null||typeof r!="object")return null;var a=yo&&r[yo]||r[wo];return typeof a=="function"?a:null}var en=Object.assign,bo=0,Yl,Jl,rl,ic,al,Ka,kd;function Aa(){}Aa.__reactDisabledLog=!0;function Tp(){{if(bo===0){Yl=console.log,Jl=console.info,rl=console.warn,ic=console.error,al=console.group,Ka=console.groupCollapsed,kd=console.groupEnd;var r={configurable:!0,enumerable:!0,value:Aa,writable:!0};Object.defineProperties(console,{info:r,log:r,warn:r,error:r,group:r,groupCollapsed:r,groupEnd:r})}bo++}}function Rp(){{if(bo--,bo===0){var r={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:en({},r,{value:Yl}),info:en({},r,{value:Jl}),warn:en({},r,{value:rl}),error:en({},r,{value:ic}),group:en({},r,{value:al}),groupCollapsed:en({},r,{value:Ka}),groupEnd:en({},r,{value:kd})})}bo<0&&c("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var oc=n.ReactCurrentDispatcher,il;function Ci(r,a,d){{if(il===void 0)try{throw Error()}catch(g){var p=g.stack.trim().match(/\n( *(at )?)/);il=p&&p[1]||""}return`
109
+ `+il+r}}var xo=!1,Co;{var sc=typeof WeakMap=="function"?WeakMap:Map;Co=new sc}function Kl(r,a){if(!r||xo)return"";{var d=Co.get(r);if(d!==void 0)return d}var p;xo=!0;var g=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var x;x=oc.current,oc.current=null,Tp();try{if(a){var E=function(){throw Error()};if(Object.defineProperty(E.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(E,[])}catch(he){p=he}Reflect.construct(r,[],E)}else{try{E.call()}catch(he){p=he}r.call(E.prototype)}}else{try{throw Error()}catch(he){p=he}r()}}catch(he){if(he&&p&&typeof he.stack=="string"){for(var N=he.stack.split(`
110
+ `),O=p.stack.split(`
111
+ `),F=N.length-1,V=O.length-1;F>=1&&V>=0&&N[F]!==O[V];)V--;for(;F>=1&&V>=0;F--,V--)if(N[F]!==O[V]){if(F!==1||V!==1)do if(F--,V--,V<0||N[F]!==O[V]){var re=`
112
+ `+N[F].replace(" at new "," at ");return r.displayName&&re.includes("<anonymous>")&&(re=re.replace("<anonymous>",r.displayName)),typeof r=="function"&&Co.set(r,re),re}while(F>=1&&V>=0);break}}}finally{xo=!1,oc.current=x,Rp(),Error.prepareStackTrace=g}var te=r?r.displayName||r.name:"",ue=te?Ci(te):"";return typeof r=="function"&&Co.set(r,ue),ue}function ol(r,a,d){return Kl(r,!0)}function lc(r,a,d){return Kl(r,!1)}function uc(r){var a=r.prototype;return!!(a&&a.isReactComponent)}function ws(r,a,d){if(r==null)return"";if(typeof r=="function")return Kl(r,uc(r));if(typeof r=="string")return Ci(r);switch(r){case Ke:return Ci("Suspense");case st:return Ci("SuspenseList")}if(typeof r=="object")switch(r.$$typeof){case Oe:return lc(r.render);case Gt:return ws(r.type,a,d);case Vt:{var p=r,g=p._payload,x=p._init;try{return ws(x(g),a,d)}catch(E){}}}return""}function am(r){switch(r._debugOwner&&r._debugOwner.type,r._debugSource,r.tag){case C:return Ci(r.type);case G:return Ci("Lazy");case Z:return Ci("Suspense");case ve:return Ci("SuspenseList");case m:case b:case W:return lc(r.type);case U:return lc(r.type.render);case v:return ol(r.type);default:return""}}function bs(r){try{var a="",d=r;do a+=am(d),d=d.return;while(d);return a}catch(p){return`
113
+ Error generating stack: `+p.message+`
114
+ `+p.stack}}function Tn(r,a,d){var p=r.displayName;if(p)return p;var g=a.displayName||a.name||"";return g!==""?d+"("+g+")":d}function cc(r){return r.displayName||"Context"}function bn(r){if(r==null)return null;if(typeof r.tag=="number"&&c("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof r=="function")return r.displayName||r.name||null;if(typeof r=="string")return r;switch(r){case La:return"Fragment";case gr:return"Portal";case xi:return"Profiler";case Nr:return"StrictMode";case Ke:return"Suspense";case st:return"SuspenseList"}if(typeof r=="object")switch(r.$$typeof){case J:var a=r;return cc(a)+".Consumer";case er:var d=r;return cc(d._context)+".Provider";case Oe:return Tn(r,r.render,"ForwardRef");case Gt:var p=r.displayName||null;return p!==null?p:bn(r.type)||"Memo";case Vt:{var g=r,x=g._payload,E=g._init;try{return bn(E(x))}catch(N){return null}}}return null}function Ed(r,a,d){var p=a.displayName||a.name||"";return r.displayName||(p!==""?d+"("+p+")":d)}function Fo(r){return r.displayName||"Context"}function Ht(r){var a=r.tag,d=r.type;switch(a){case be:return"Cache";case I:var p=d;return Fo(p)+".Consumer";case j:var g=d;return Fo(g._context)+".Provider";case ke:return"DehydratedFragment";case U:return Ed(d,d.render,"ForwardRef");case M:return"Fragment";case C:return d;case S:return"Portal";case y:return"Root";case R:return"Text";case G:return bn(d);case L:return d===Nr?"StrictMode":"Mode";case ge:return"Offscreen";case P:return"Profiler";case de:return"Scope";case Z:return"Suspense";case ve:return"SuspenseList";case Ie:return"TracingMarker";case v:case m:case se:case b:case B:case W:if(typeof d=="function")return d.displayName||d.name||null;if(typeof d=="string")return d;break}return null}var dc=n.ReactDebugCurrentFrame,pa=null,Uo=!1;function Ia(){{if(pa===null)return null;var r=pa._debugOwner;if(r!==null&&typeof r!="undefined")return Ht(r)}return null}function Ho(){return pa===null?"":bs(pa)}function or(){dc.getCurrentStack=null,pa=null,Uo=!1}function Bn(r){dc.getCurrentStack=r===null?null:Ho,pa=r,Uo=!1}function sl(){return pa}function Kr(r){Uo=r}function Da(r){return""+r}function Vi(r){switch(typeof r){case"boolean":case"number":case"string":case"undefined":return r;case"object":return Mt(r),r;default:return""}}var Xl={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0};function _d(r,a){Xl[a.type]||a.onChange||a.onInput||a.readOnly||a.disabled||a.value==null||c("You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`."),a.onChange||a.readOnly||a.disabled||a.checked==null||c("You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.")}function Td(r){var a=r.type,d=r.nodeName;return d&&d.toLowerCase()==="input"&&(a==="checkbox"||a==="radio")}function ll(r){return r._valueTracker}function Ql(r){r._valueTracker=null}function im(r){var a="";return r&&(Td(r)?a=r.checked?"true":"false":a=r.value),a}function Bi(r){var a=Td(r)?"checked":"value",d=Object.getOwnPropertyDescriptor(r.constructor.prototype,a);Mt(r[a]);var p=""+r[a];if(!(r.hasOwnProperty(a)||typeof d=="undefined"||typeof d.get!="function"||typeof d.set!="function")){var g=d.get,x=d.set;Object.defineProperty(r,a,{configurable:!0,get:function(){return g.call(this)},set:function(N){Mt(N),p=""+N,x.call(this,N)}}),Object.defineProperty(r,a,{enumerable:d.enumerable});var E={getValue:function(){return p},setValue:function(N){Mt(N),p=""+N},stopTracking:function(){Ql(r),delete r[a]}};return E}}function So(r){ll(r)||(r._valueTracker=Bi(r))}function Vo(r){if(!r)return!1;var a=ll(r);if(!a)return!0;var d=a.getValue(),p=im(r);return p!==d?(a.setValue(p),!0):!1}function $i(r){if(r=r||(typeof document!="undefined"?document:void 0),typeof r=="undefined")return null;try{return r.activeElement||r.body}catch(a){return r.body}}var fc=!1,pc=!1,ul=!1,eu=!1;function hc(r){var a=r.type==="checkbox"||r.type==="radio";return a?r.checked!=null:r.value!=null}function mc(r,a){var d=r,p=a.checked,g=en({},a,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:p!=null?p:d._wrapperState.initialChecked});return g}function ko(r,a){_d("input",a),a.checked!==void 0&&a.defaultChecked!==void 0&&!pc&&(c("%s contains an input of type %s with both checked and defaultChecked props. Input elements must be either controlled or uncontrolled (specify either the checked prop, or the defaultChecked prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://reactjs.org/link/controlled-components",Ia()||"A component",a.type),pc=!0),a.value!==void 0&&a.defaultValue!==void 0&&!fc&&(c("%s contains an input of type %s with both value and defaultValue props. Input elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://reactjs.org/link/controlled-components",Ia()||"A component",a.type),fc=!0);var d=r,p=a.defaultValue==null?"":a.defaultValue;d._wrapperState={initialChecked:a.checked!=null?a.checked:a.defaultChecked,initialValue:Vi(a.value!=null?a.value:p),controlled:hc(a)}}function A(r,a){var d=r,p=a.checked;p!=null&&kn(d,"checked",p,!1)}function Y(r,a){var d=r;{var p=hc(a);!d._wrapperState.controlled&&p&&!eu&&(c("A component is changing an uncontrolled input to be controlled. This is likely caused by the value changing from undefined to a defined value, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://reactjs.org/link/controlled-components"),eu=!0),d._wrapperState.controlled&&!p&&!ul&&(c("A component is changing a controlled input to be uncontrolled. This is likely caused by the value changing from a defined to undefined, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://reactjs.org/link/controlled-components"),ul=!0)}A(r,a);var g=Vi(a.value),x=a.type;if(g!=null)x==="number"?(g===0&&d.value===""||d.value!=g)&&(d.value=Da(g)):d.value!==Da(g)&&(d.value=Da(g));else if(x==="submit"||x==="reset"){d.removeAttribute("value");return}a.hasOwnProperty("value")?Ot(d,a.type,g):a.hasOwnProperty("defaultValue")&&Ot(d,a.type,Vi(a.defaultValue)),a.checked==null&&a.defaultChecked!=null&&(d.defaultChecked=!!a.defaultChecked)}function ce(r,a,d){var p=r;if(a.hasOwnProperty("value")||a.hasOwnProperty("defaultValue")){var g=a.type,x=g==="submit"||g==="reset";if(x&&(a.value===void 0||a.value===null))return;var E=Da(p._wrapperState.initialValue);d||E!==p.value&&(p.value=E),p.defaultValue=E}var N=p.name;N!==""&&(p.name=""),p.defaultChecked=!p.defaultChecked,p.defaultChecked=!!p._wrapperState.initialChecked,N!==""&&(p.name=N)}function we(r,a){var d=r;Y(d,a),He(d,a)}function He(r,a){var d=a.name;if(a.type==="radio"&&d!=null){for(var p=r;p.parentNode;)p=p.parentNode;zt(d,"name");for(var g=p.querySelectorAll("input[name="+JSON.stringify(""+d)+'][type="radio"]'),x=0;x<g.length;x++){var E=g[x];if(!(E===r||E.form!==r.form)){var N=L2(E);if(!N)throw new Error("ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.");Vo(E),Y(E,N)}}}}function Ot(r,a,d){(a!=="number"||$i(r.ownerDocument)!==r)&&(d==null?r.defaultValue=Da(r._wrapperState.initialValue):r.defaultValue!==Da(d)&&(r.defaultValue=Da(d)))}var Ye=!1,Dt=!1,un=!1;function xn(r,a){a.value==null&&(typeof a.children=="object"&&a.children!==null?e.Children.forEach(a.children,function(d){d!=null&&(typeof d=="string"||typeof d=="number"||Dt||(Dt=!0,c("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>.")))}):a.dangerouslySetInnerHTML!=null&&(un||(un=!0,c("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected.")))),a.selected!=null&&!Ye&&(c("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),Ye=!0)}function nr(r,a){a.value!=null&&r.setAttribute("value",Da(Vi(a.value)))}var $n=Array.isArray;function nn(r){return $n(r)}var Zn;Zn=!1;function yr(){var r=Ia();return r?`
115
+
116
+ Check the render method of \``+r+"`.":""}var cl=["value","defaultValue"];function Rd(r){{_d("select",r);for(var a=0;a<cl.length;a++){var d=cl[a];if(r[d]!=null){var p=nn(r[d]);r.multiple&&!p?c("The `%s` prop supplied to <select> must be an array if `multiple` is true.%s",d,yr()):!r.multiple&&p&&c("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.%s",d,yr())}}}}function xs(r,a,d,p){var g=r.options;if(a){for(var x=d,E={},N=0;N<x.length;N++)E["$"+x[N]]=!0;for(var O=0;O<g.length;O++){var F=E.hasOwnProperty("$"+g[O].value);g[O].selected!==F&&(g[O].selected=F),F&&p&&(g[O].defaultSelected=!0)}}else{for(var V=Da(Vi(d)),re=null,te=0;te<g.length;te++){if(g[te].value===V){g[te].selected=!0,p&&(g[te].defaultSelected=!0);return}re===null&&!g[te].disabled&&(re=g[te])}re!==null&&(re.selected=!0)}}function Md(r,a){return en({},a,{value:void 0})}function tu(r,a){var d=r;Rd(a),d._wrapperState={wasMultiple:!!a.multiple},a.value!==void 0&&a.defaultValue!==void 0&&!Zn&&(c("Select elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled select element and remove one of these props. More info: https://reactjs.org/link/controlled-components"),Zn=!0)}function om(r,a){var d=r;d.multiple=!!a.multiple;var p=a.value;p!=null?xs(d,!!a.multiple,p,!1):a.defaultValue!=null&&xs(d,!!a.multiple,a.defaultValue,!0)}function Mp(r,a){var d=r,p=d._wrapperState.wasMultiple;d._wrapperState.wasMultiple=!!a.multiple;var g=a.value;g!=null?xs(d,!!a.multiple,g,!1):p!==!!a.multiple&&(a.defaultValue!=null?xs(d,!!a.multiple,a.defaultValue,!0):xs(d,!!a.multiple,a.multiple?[]:"",!1))}function sm(r,a){var d=r,p=a.value;p!=null&&xs(d,!!a.multiple,p,!1)}var t0=!1;function lm(r,a){var d=r;if(a.dangerouslySetInnerHTML!=null)throw new Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");var p=en({},a,{value:void 0,defaultValue:void 0,children:Da(d._wrapperState.initialValue)});return p}function um(r,a){var d=r;_d("textarea",a),a.value!==void 0&&a.defaultValue!==void 0&&!t0&&(c("%s contains a textarea with both value and defaultValue props. Textarea elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled textarea and remove one of these props. More info: https://reactjs.org/link/controlled-components",Ia()||"A component"),t0=!0);var p=a.value;if(p==null){var g=a.children,x=a.defaultValue;if(g!=null){c("Use the `defaultValue` or `value` props instead of setting children on <textarea>.");{if(x!=null)throw new Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(nn(g)){if(g.length>1)throw new Error("<textarea> can only have at most one child.");g=g[0]}x=g}}x==null&&(x=""),p=x}d._wrapperState={initialValue:Vi(p)}}function n0(r,a){var d=r,p=Vi(a.value),g=Vi(a.defaultValue);if(p!=null){var x=Da(p);x!==d.value&&(d.value=x),a.defaultValue==null&&d.defaultValue!==x&&(d.defaultValue=x)}g!=null&&(d.defaultValue=Da(g))}function r0(r,a){var d=r,p=d.textContent;p===d._wrapperState.initialValue&&p!==""&&p!==null&&(d.value=p)}function e6(r,a){n0(r,a)}var Cs="http://www.w3.org/1999/xhtml",cm="http://www.w3.org/1998/Math/MathML",dm="http://www.w3.org/2000/svg";function fm(r){switch(r){case"svg":return dm;case"math":return cm;default:return Cs}}function pm(r,a){return r==null||r===Cs?fm(a):r===dm&&a==="foreignObject"?Cs:r}var a0=function(r){return typeof MSApp!="undefined"&&MSApp.execUnsafeLocalFunction?function(a,d,p,g){MSApp.execUnsafeLocalFunction(function(){return r(a,d,p,g)})}:r},Np,i0=a0(function(r,a){if(r.namespaceURI===dm&&!("innerHTML"in r)){Np=Np||document.createElement("div"),Np.innerHTML="<svg>"+a.valueOf().toString()+"</svg>";for(var d=Np.firstChild;r.firstChild;)r.removeChild(r.firstChild);for(;d.firstChild;)r.appendChild(d.firstChild);return}r.innerHTML=a}),Xa=1,Ss=3,Fr=8,ks=9,hm=11,vc=function(r,a){if(a){var d=r.firstChild;if(d&&d===r.lastChild&&d.nodeType===Ss){d.nodeValue=a;return}}r.textContent=a},Nd={animation:["animationDelay","animationDirection","animationDuration","animationFillMode","animationIterationCount","animationName","animationPlayState","animationTimingFunction"],background:["backgroundAttachment","backgroundClip","backgroundColor","backgroundImage","backgroundOrigin","backgroundPositionX","backgroundPositionY","backgroundRepeat","backgroundSize"],backgroundPosition:["backgroundPositionX","backgroundPositionY"],border:["borderBottomColor","borderBottomStyle","borderBottomWidth","borderImageOutset","borderImageRepeat","borderImageSlice","borderImageSource","borderImageWidth","borderLeftColor","borderLeftStyle","borderLeftWidth","borderRightColor","borderRightStyle","borderRightWidth","borderTopColor","borderTopStyle","borderTopWidth"],borderBlockEnd:["borderBlockEndColor","borderBlockEndStyle","borderBlockEndWidth"],borderBlockStart:["borderBlockStartColor","borderBlockStartStyle","borderBlockStartWidth"],borderBottom:["borderBottomColor","borderBottomStyle","borderBottomWidth"],borderColor:["borderBottomColor","borderLeftColor","borderRightColor","borderTopColor"],borderImage:["borderImageOutset","borderImageRepeat","borderImageSlice","borderImageSource","borderImageWidth"],borderInlineEnd:["borderInlineEndColor","borderInlineEndStyle","borderInlineEndWidth"],borderInlineStart:["borderInlineStartColor","borderInlineStartStyle","borderInlineStartWidth"],borderLeft:["borderLeftColor","borderLeftStyle","borderLeftWidth"],borderRadius:["borderBottomLeftRadius","borderBottomRightRadius","borderTopLeftRadius","borderTopRightRadius"],borderRight:["borderRightColor","borderRightStyle","borderRightWidth"],borderStyle:["borderBottomStyle","borderLeftStyle","borderRightStyle","borderTopStyle"],borderTop:["borderTopColor","borderTopStyle","borderTopWidth"],borderWidth:["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth"],columnRule:["columnRuleColor","columnRuleStyle","columnRuleWidth"],columns:["columnCount","columnWidth"],flex:["flexBasis","flexGrow","flexShrink"],flexFlow:["flexDirection","flexWrap"],font:["fontFamily","fontFeatureSettings","fontKerning","fontLanguageOverride","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontVariantAlternates","fontVariantCaps","fontVariantEastAsian","fontVariantLigatures","fontVariantNumeric","fontVariantPosition","fontWeight","lineHeight"],fontVariant:["fontVariantAlternates","fontVariantCaps","fontVariantEastAsian","fontVariantLigatures","fontVariantNumeric","fontVariantPosition"],gap:["columnGap","rowGap"],grid:["gridAutoColumns","gridAutoFlow","gridAutoRows","gridTemplateAreas","gridTemplateColumns","gridTemplateRows"],gridArea:["gridColumnEnd","gridColumnStart","gridRowEnd","gridRowStart"],gridColumn:["gridColumnEnd","gridColumnStart"],gridColumnGap:["columnGap"],gridGap:["columnGap","rowGap"],gridRow:["gridRowEnd","gridRowStart"],gridRowGap:["rowGap"],gridTemplate:["gridTemplateAreas","gridTemplateColumns","gridTemplateRows"],listStyle:["listStyleImage","listStylePosition","listStyleType"],margin:["marginBottom","marginLeft","marginRight","marginTop"],marker:["markerEnd","markerMid","markerStart"],mask:["maskClip","maskComposite","maskImage","maskMode","maskOrigin","maskPositionX","maskPositionY","maskRepeat","maskSize"],maskPosition:["maskPositionX","maskPositionY"],outline:["outlineColor","outlineStyle","outlineWidth"],overflow:["overflowX","overflowY"],padding:["paddingBottom","paddingLeft","paddingRight","paddingTop"],placeContent:["alignContent","justifyContent"],placeItems:["alignItems","justifyItems"],placeSelf:["alignSelf","justifySelf"],textDecoration:["textDecorationColor","textDecorationLine","textDecorationStyle"],textEmphasis:["textEmphasisColor","textEmphasisStyle"],transition:["transitionDelay","transitionDuration","transitionProperty","transitionTimingFunction"],wordWrap:["overflowWrap"]},Od={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0};function o0(r,a){return r+a.charAt(0).toUpperCase()+a.substring(1)}var s0=["Webkit","ms","Moz","O"];Object.keys(Od).forEach(function(r){s0.forEach(function(a){Od[o0(a,r)]=Od[r]})});function Op(r,a,d){var p=a==null||typeof a=="boolean"||a==="";return p?"":!d&&typeof a=="number"&&a!==0&&!(Od.hasOwnProperty(r)&&Od[r])?a+"px":(Hn(a,r),(""+a).trim())}var l0=/([A-Z])/g,u0=/^ms-/;function gc(r){return r.replace(l0,"-$1").toLowerCase().replace(u0,"-ms-")}var c0=function(){};{var t6=/^(?:webkit|moz|o)[A-Z]/,n6=/^-ms-/,d0=/-(.)/g,mm=/;\s*$/,Bo={},nu={},f0=!1,Ld=!1,r6=function(r){return r.replace(d0,function(a,d){return d.toUpperCase()})},p0=function(r){Bo.hasOwnProperty(r)&&Bo[r]||(Bo[r]=!0,c("Unsupported style property %s. Did you mean %s?",r,r6(r.replace(n6,"ms-"))))},vm=function(r){Bo.hasOwnProperty(r)&&Bo[r]||(Bo[r]=!0,c("Unsupported vendor-prefixed style property %s. Did you mean %s?",r,r.charAt(0).toUpperCase()+r.slice(1)))},gm=function(r,a){nu.hasOwnProperty(a)&&nu[a]||(nu[a]=!0,c(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,r,a.replace(mm,"")))},h0=function(r,a){f0||(f0=!0,c("`NaN` is an invalid value for the `%s` css style property.",r))},m0=function(r,a){Ld||(Ld=!0,c("`Infinity` is an invalid value for the `%s` css style property.",r))};c0=function(r,a){r.indexOf("-")>-1?p0(r):t6.test(r)?vm(r):mm.test(a)&&gm(r,a),typeof a=="number"&&(isNaN(a)?h0(r,a):isFinite(a)||m0(r,a))}}var v0=c0;function a6(r){{var a="",d="";for(var p in r)if(r.hasOwnProperty(p)){var g=r[p];if(g!=null){var x=p.indexOf("--")===0;a+=d+(x?p:gc(p))+":",a+=Op(p,g,x),d=";"}}return a||null}}function g0(r,a){var d=r.style;for(var p in a)if(a.hasOwnProperty(p)){var g=p.indexOf("--")===0;g||v0(p,a[p]);var x=Op(p,a[p],g);p==="float"&&(p="cssFloat"),g?d.setProperty(p,x):d[p]=x}}function i6(r){return r==null||typeof r=="boolean"||r===""}function y0(r){var a={};for(var d in r)for(var p=Nd[d]||[d],g=0;g<p.length;g++)a[p[g]]=d;return a}function o6(r,a){{if(!a)return;var d=y0(r),p=y0(a),g={};for(var x in d){var E=d[x],N=p[x];if(N&&E!==N){var O=E+","+N;if(g[O])continue;g[O]=!0,c("%s a style property during rerender (%s) when a conflicting property is set (%s) can lead to styling bugs. To avoid this, don't mix shorthand and non-shorthand properties for the same value; instead, replace the shorthand with separate values.",i6(r[E])?"Removing":"Updating",E,N)}}}}var Eo={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0},Ad=en({menuitem:!0},Eo),w0="__html";function Lp(r,a){if(a){if(Ad[r]&&(a.children!=null||a.dangerouslySetInnerHTML!=null))throw new Error(r+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");if(a.dangerouslySetInnerHTML!=null){if(a.children!=null)throw new Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");if(typeof a.dangerouslySetInnerHTML!="object"||!(w0 in a.dangerouslySetInnerHTML))throw new Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://reactjs.org/link/dangerously-set-inner-html for more information.")}if(!a.suppressContentEditableWarning&&a.contentEditable&&a.children!=null&&c("A component is `contentEditable` and contains `children` managed by React. It is now your responsibility to guarantee that none of those nodes are unexpectedly modified or duplicated. This is probably not intentional."),a.style!=null&&typeof a.style!="object")throw new Error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.")}}function dl(r,a){if(r.indexOf("-")===-1)return typeof a.is=="string";switch(r){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Id={accept:"accept",acceptcharset:"acceptCharset","accept-charset":"acceptCharset",accesskey:"accessKey",action:"action",allowfullscreen:"allowFullScreen",alt:"alt",as:"as",async:"async",autocapitalize:"autoCapitalize",autocomplete:"autoComplete",autocorrect:"autoCorrect",autofocus:"autoFocus",autoplay:"autoPlay",autosave:"autoSave",capture:"capture",cellpadding:"cellPadding",cellspacing:"cellSpacing",challenge:"challenge",charset:"charSet",checked:"checked",children:"children",cite:"cite",class:"className",classid:"classID",classname:"className",cols:"cols",colspan:"colSpan",content:"content",contenteditable:"contentEditable",contextmenu:"contextMenu",controls:"controls",controlslist:"controlsList",coords:"coords",crossorigin:"crossOrigin",dangerouslysetinnerhtml:"dangerouslySetInnerHTML",data:"data",datetime:"dateTime",default:"default",defaultchecked:"defaultChecked",defaultvalue:"defaultValue",defer:"defer",dir:"dir",disabled:"disabled",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback",download:"download",draggable:"draggable",enctype:"encType",enterkeyhint:"enterKeyHint",for:"htmlFor",form:"form",formmethod:"formMethod",formaction:"formAction",formenctype:"formEncType",formnovalidate:"formNoValidate",formtarget:"formTarget",frameborder:"frameBorder",headers:"headers",height:"height",hidden:"hidden",high:"high",href:"href",hreflang:"hrefLang",htmlfor:"htmlFor",httpequiv:"httpEquiv","http-equiv":"httpEquiv",icon:"icon",id:"id",imagesizes:"imageSizes",imagesrcset:"imageSrcSet",innerhtml:"innerHTML",inputmode:"inputMode",integrity:"integrity",is:"is",itemid:"itemID",itemprop:"itemProp",itemref:"itemRef",itemscope:"itemScope",itemtype:"itemType",keyparams:"keyParams",keytype:"keyType",kind:"kind",label:"label",lang:"lang",list:"list",loop:"loop",low:"low",manifest:"manifest",marginwidth:"marginWidth",marginheight:"marginHeight",max:"max",maxlength:"maxLength",media:"media",mediagroup:"mediaGroup",method:"method",min:"min",minlength:"minLength",multiple:"multiple",muted:"muted",name:"name",nomodule:"noModule",nonce:"nonce",novalidate:"noValidate",open:"open",optimum:"optimum",pattern:"pattern",placeholder:"placeholder",playsinline:"playsInline",poster:"poster",preload:"preload",profile:"profile",radiogroup:"radioGroup",readonly:"readOnly",referrerpolicy:"referrerPolicy",rel:"rel",required:"required",reversed:"reversed",role:"role",rows:"rows",rowspan:"rowSpan",sandbox:"sandbox",scope:"scope",scoped:"scoped",scrolling:"scrolling",seamless:"seamless",selected:"selected",shape:"shape",size:"size",sizes:"sizes",span:"span",spellcheck:"spellCheck",src:"src",srcdoc:"srcDoc",srclang:"srcLang",srcset:"srcSet",start:"start",step:"step",style:"style",summary:"summary",tabindex:"tabIndex",target:"target",title:"title",type:"type",usemap:"useMap",value:"value",width:"width",wmode:"wmode",wrap:"wrap",about:"about",accentheight:"accentHeight","accent-height":"accentHeight",accumulate:"accumulate",additive:"additive",alignmentbaseline:"alignmentBaseline","alignment-baseline":"alignmentBaseline",allowreorder:"allowReorder",alphabetic:"alphabetic",amplitude:"amplitude",arabicform:"arabicForm","arabic-form":"arabicForm",ascent:"ascent",attributename:"attributeName",attributetype:"attributeType",autoreverse:"autoReverse",azimuth:"azimuth",basefrequency:"baseFrequency",baselineshift:"baselineShift","baseline-shift":"baselineShift",baseprofile:"baseProfile",bbox:"bbox",begin:"begin",bias:"bias",by:"by",calcmode:"calcMode",capheight:"capHeight","cap-height":"capHeight",clip:"clip",clippath:"clipPath","clip-path":"clipPath",clippathunits:"clipPathUnits",cliprule:"clipRule","clip-rule":"clipRule",color:"color",colorinterpolation:"colorInterpolation","color-interpolation":"colorInterpolation",colorinterpolationfilters:"colorInterpolationFilters","color-interpolation-filters":"colorInterpolationFilters",colorprofile:"colorProfile","color-profile":"colorProfile",colorrendering:"colorRendering","color-rendering":"colorRendering",contentscripttype:"contentScriptType",contentstyletype:"contentStyleType",cursor:"cursor",cx:"cx",cy:"cy",d:"d",datatype:"datatype",decelerate:"decelerate",descent:"descent",diffuseconstant:"diffuseConstant",direction:"direction",display:"display",divisor:"divisor",dominantbaseline:"dominantBaseline","dominant-baseline":"dominantBaseline",dur:"dur",dx:"dx",dy:"dy",edgemode:"edgeMode",elevation:"elevation",enablebackground:"enableBackground","enable-background":"enableBackground",end:"end",exponent:"exponent",externalresourcesrequired:"externalResourcesRequired",fill:"fill",fillopacity:"fillOpacity","fill-opacity":"fillOpacity",fillrule:"fillRule","fill-rule":"fillRule",filter:"filter",filterres:"filterRes",filterunits:"filterUnits",floodopacity:"floodOpacity","flood-opacity":"floodOpacity",floodcolor:"floodColor","flood-color":"floodColor",focusable:"focusable",fontfamily:"fontFamily","font-family":"fontFamily",fontsize:"fontSize","font-size":"fontSize",fontsizeadjust:"fontSizeAdjust","font-size-adjust":"fontSizeAdjust",fontstretch:"fontStretch","font-stretch":"fontStretch",fontstyle:"fontStyle","font-style":"fontStyle",fontvariant:"fontVariant","font-variant":"fontVariant",fontweight:"fontWeight","font-weight":"fontWeight",format:"format",from:"from",fx:"fx",fy:"fy",g1:"g1",g2:"g2",glyphname:"glyphName","glyph-name":"glyphName",glyphorientationhorizontal:"glyphOrientationHorizontal","glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphorientationvertical:"glyphOrientationVertical","glyph-orientation-vertical":"glyphOrientationVertical",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",hanging:"hanging",horizadvx:"horizAdvX","horiz-adv-x":"horizAdvX",horizoriginx:"horizOriginX","horiz-origin-x":"horizOriginX",ideographic:"ideographic",imagerendering:"imageRendering","image-rendering":"imageRendering",in2:"in2",in:"in",inlist:"inlist",intercept:"intercept",k1:"k1",k2:"k2",k3:"k3",k4:"k4",k:"k",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",kerning:"kerning",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",letterspacing:"letterSpacing","letter-spacing":"letterSpacing",lightingcolor:"lightingColor","lighting-color":"lightingColor",limitingconeangle:"limitingConeAngle",local:"local",markerend:"markerEnd","marker-end":"markerEnd",markerheight:"markerHeight",markermid:"markerMid","marker-mid":"markerMid",markerstart:"markerStart","marker-start":"markerStart",markerunits:"markerUnits",markerwidth:"markerWidth",mask:"mask",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",mathematical:"mathematical",mode:"mode",numoctaves:"numOctaves",offset:"offset",opacity:"opacity",operator:"operator",order:"order",orient:"orient",orientation:"orientation",origin:"origin",overflow:"overflow",overlineposition:"overlinePosition","overline-position":"overlinePosition",overlinethickness:"overlineThickness","overline-thickness":"overlineThickness",paintorder:"paintOrder","paint-order":"paintOrder",panose1:"panose1","panose-1":"panose1",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointerevents:"pointerEvents","pointer-events":"pointerEvents",points:"points",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",prefix:"prefix",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",property:"property",r:"r",radius:"radius",refx:"refX",refy:"refY",renderingintent:"renderingIntent","rendering-intent":"renderingIntent",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",resource:"resource",restart:"restart",result:"result",results:"results",rotate:"rotate",rx:"rx",ry:"ry",scale:"scale",security:"security",seed:"seed",shaperendering:"shapeRendering","shape-rendering":"shapeRendering",slope:"slope",spacing:"spacing",specularconstant:"specularConstant",specularexponent:"specularExponent",speed:"speed",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stemh:"stemh",stemv:"stemv",stitchtiles:"stitchTiles",stopcolor:"stopColor","stop-color":"stopColor",stopopacity:"stopOpacity","stop-opacity":"stopOpacity",strikethroughposition:"strikethroughPosition","strikethrough-position":"strikethroughPosition",strikethroughthickness:"strikethroughThickness","strikethrough-thickness":"strikethroughThickness",string:"string",stroke:"stroke",strokedasharray:"strokeDasharray","stroke-dasharray":"strokeDasharray",strokedashoffset:"strokeDashoffset","stroke-dashoffset":"strokeDashoffset",strokelinecap:"strokeLinecap","stroke-linecap":"strokeLinecap",strokelinejoin:"strokeLinejoin","stroke-linejoin":"strokeLinejoin",strokemiterlimit:"strokeMiterlimit","stroke-miterlimit":"strokeMiterlimit",strokewidth:"strokeWidth","stroke-width":"strokeWidth",strokeopacity:"strokeOpacity","stroke-opacity":"strokeOpacity",suppresscontenteditablewarning:"suppressContentEditableWarning",suppresshydrationwarning:"suppressHydrationWarning",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textanchor:"textAnchor","text-anchor":"textAnchor",textdecoration:"textDecoration","text-decoration":"textDecoration",textlength:"textLength",textrendering:"textRendering","text-rendering":"textRendering",to:"to",transform:"transform",typeof:"typeof",u1:"u1",u2:"u2",underlineposition:"underlinePosition","underline-position":"underlinePosition",underlinethickness:"underlineThickness","underline-thickness":"underlineThickness",unicode:"unicode",unicodebidi:"unicodeBidi","unicode-bidi":"unicodeBidi",unicoderange:"unicodeRange","unicode-range":"unicodeRange",unitsperem:"unitsPerEm","units-per-em":"unitsPerEm",unselectable:"unselectable",valphabetic:"vAlphabetic","v-alphabetic":"vAlphabetic",values:"values",vectoreffect:"vectorEffect","vector-effect":"vectorEffect",version:"version",vertadvy:"vertAdvY","vert-adv-y":"vertAdvY",vertoriginx:"vertOriginX","vert-origin-x":"vertOriginX",vertoriginy:"vertOriginY","vert-origin-y":"vertOriginY",vhanging:"vHanging","v-hanging":"vHanging",videographic:"vIdeographic","v-ideographic":"vIdeographic",viewbox:"viewBox",viewtarget:"viewTarget",visibility:"visibility",vmathematical:"vMathematical","v-mathematical":"vMathematical",vocab:"vocab",widths:"widths",wordspacing:"wordSpacing","word-spacing":"wordSpacing",writingmode:"writingMode","writing-mode":"writingMode",x1:"x1",x2:"x2",x:"x",xchannelselector:"xChannelSelector",xheight:"xHeight","x-height":"xHeight",xlinkactuate:"xlinkActuate","xlink:actuate":"xlinkActuate",xlinkarcrole:"xlinkArcrole","xlink:arcrole":"xlinkArcrole",xlinkhref:"xlinkHref","xlink:href":"xlinkHref",xlinkrole:"xlinkRole","xlink:role":"xlinkRole",xlinkshow:"xlinkShow","xlink:show":"xlinkShow",xlinktitle:"xlinkTitle","xlink:title":"xlinkTitle",xlinktype:"xlinkType","xlink:type":"xlinkType",xmlbase:"xmlBase","xml:base":"xmlBase",xmllang:"xmlLang","xml:lang":"xmlLang",xmlns:"xmlns","xml:space":"xmlSpace",xmlnsxlink:"xmlnsXlink","xmlns:xlink":"xmlnsXlink",xmlspace:"xmlSpace",y1:"y1",y2:"y2",y:"y",ychannelselector:"yChannelSelector",z:"z",zoomandpan:"zoomAndPan"},Ap={"aria-current":0,"aria-description":0,"aria-details":0,"aria-disabled":0,"aria-hidden":0,"aria-invalid":0,"aria-keyshortcuts":0,"aria-label":0,"aria-roledescription":0,"aria-autocomplete":0,"aria-checked":0,"aria-expanded":0,"aria-haspopup":0,"aria-level":0,"aria-modal":0,"aria-multiline":0,"aria-multiselectable":0,"aria-orientation":0,"aria-placeholder":0,"aria-pressed":0,"aria-readonly":0,"aria-required":0,"aria-selected":0,"aria-sort":0,"aria-valuemax":0,"aria-valuemin":0,"aria-valuenow":0,"aria-valuetext":0,"aria-atomic":0,"aria-busy":0,"aria-live":0,"aria-relevant":0,"aria-dropeffect":0,"aria-grabbed":0,"aria-activedescendant":0,"aria-colcount":0,"aria-colindex":0,"aria-colspan":0,"aria-controls":0,"aria-describedby":0,"aria-errormessage":0,"aria-flowto":0,"aria-labelledby":0,"aria-owns":0,"aria-posinset":0,"aria-rowcount":0,"aria-rowindex":0,"aria-rowspan":0,"aria-setsize":0},yc={},s6=new RegExp("^(aria)-["+Te+"]*$"),wc=new RegExp("^(aria)[A-Z]["+Te+"]*$");function ym(r,a){{if(Et.call(yc,a)&&yc[a])return!0;if(wc.test(a)){var d="aria-"+a.slice(4).toLowerCase(),p=Ap.hasOwnProperty(d)?d:null;if(p==null)return c("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",a),yc[a]=!0,!0;if(a!==p)return c("Invalid ARIA attribute `%s`. Did you mean `%s`?",a,p),yc[a]=!0,!0}if(s6.test(a)){var g=a.toLowerCase(),x=Ap.hasOwnProperty(g)?g:null;if(x==null)return yc[a]=!0,!1;if(a!==x)return c("Unknown ARIA attribute `%s`. Did you mean `%s`?",a,x),yc[a]=!0,!0}}return!0}function Dd(r,a){{var d=[];for(var p in a){var g=ym(r,p);g||d.push(p)}var x=d.map(function(E){return"`"+E+"`"}).join(", ");d.length===1?c("Invalid aria prop %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",x,r):d.length>1&&c("Invalid aria props %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",x,r)}}function wm(r,a){dl(r,a)||Dd(r,a)}var bm=!1;function Ip(r,a){{if(r!=="input"&&r!=="textarea"&&r!=="select")return;a!=null&&a.value===null&&!bm&&(bm=!0,r==="select"&&a.multiple?c("`value` prop on `%s` should not be null. Consider using an empty array when `multiple` is set to `true` to clear the component or `undefined` for uncontrolled components.",r):c("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",r))}}var ru=function(){};{var ha={},xm=/^on./,Dp=/^on[^A-Z]/,b0=new RegExp("^(aria)-["+Te+"]*$"),x0=new RegExp("^(aria)[A-Z]["+Te+"]*$");ru=function(r,a,d,p){if(Et.call(ha,a)&&ha[a])return!0;var g=a.toLowerCase();if(g==="onfocusin"||g==="onfocusout")return c("React uses onFocus and onBlur instead of onFocusIn and onFocusOut. All React events are normalized to bubble, so onFocusIn and onFocusOut are not needed/supported by React."),ha[a]=!0,!0;if(p!=null){var x=p.registrationNameDependencies,E=p.possibleRegistrationNames;if(x.hasOwnProperty(a))return!0;var N=E.hasOwnProperty(g)?E[g]:null;if(N!=null)return c("Invalid event handler property `%s`. Did you mean `%s`?",a,N),ha[a]=!0,!0;if(xm.test(a))return c("Unknown event handler property `%s`. It will be ignored.",a),ha[a]=!0,!0}else if(xm.test(a))return Dp.test(a)&&c("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",a),ha[a]=!0,!0;if(b0.test(a)||x0.test(a))return!0;if(g==="innerhtml")return c("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),ha[a]=!0,!0;if(g==="aria")return c("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),ha[a]=!0,!0;if(g==="is"&&d!==null&&d!==void 0&&typeof d!="string")return c("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof d),ha[a]=!0,!0;if(typeof d=="number"&&isNaN(d))return c("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",a),ha[a]=!0,!0;var O=cn(a),F=O!==null&&O.type===Pn;if(Id.hasOwnProperty(g)){var V=Id[g];if(V!==a)return c("Invalid DOM property `%s`. Did you mean `%s`?",a,V),ha[a]=!0,!0}else if(!F&&a!==g)return c("React does not recognize the `%s` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `%s` instead. If you accidentally passed it from a parent component, remove it from the DOM element.",a,g),ha[a]=!0,!0;return typeof d=="boolean"&&Qt(a,d,O,!1)?(d?c('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.',d,a,a,d,a):c('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.',d,a,a,d,a,a,a),ha[a]=!0,!0):F?!0:Qt(a,d,O,!1)?(ha[a]=!0,!1):((d==="false"||d==="true")&&O!==null&&O.type===Vn&&(c("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",d,a,d==="false"?"The browser will interpret it as a truthy value.":'Although this works, it will not work as expected if you pass the string "false".',a,d),ha[a]=!0),!0)}}var C0=function(r,a,d){{var p=[];for(var g in a){var x=ru(r,g,a[g],d);x||p.push(g)}var E=p.map(function(N){return"`"+N+"`"}).join(", ");p.length===1?c("Invalid value for prop %s on <%s> tag. Either remove it from the element, or pass a string or number value to keep it in the DOM. For details, see https://reactjs.org/link/attribute-behavior ",E,r):p.length>1&&c("Invalid values for props %s on <%s> tag. Either remove them from the element, or pass a string or number value to keep them in the DOM. For details, see https://reactjs.org/link/attribute-behavior ",E,r)}};function S0(r,a,d){dl(r,a)||C0(r,a,d)}var Cm=1,Pp=2,Zi=4,Sm=Cm|Pp|Zi,au=null;function l6(r){au!==null&&c("Expected currently replaying event to be null. This error is likely caused by a bug in React. Please file an issue."),au=r}function u6(){au===null&&c("Expected currently replaying event to not be null. This error is likely caused by a bug in React. Please file an issue."),au=null}function Pd(r){return r===au}function km(r){var a=r.target||r.srcElement||window;return a.correspondingUseElement&&(a=a.correspondingUseElement),a.nodeType===Ss?a.parentNode:a}var zp=null,iu=null,zn=null;function jp(r){var a=Uc(r);if(a){if(typeof zp!="function")throw new Error("setRestoreImplementation() needs to be called to handle a target for controlled events. This error is likely caused by a bug in React. Please file an issue.");var d=a.stateNode;if(d){var p=L2(d);zp(a.stateNode,a.type,p)}}}function Fp(r){zp=r}function bc(r){iu?zn?zn.push(r):zn=[r]:iu=r}function k0(){return iu!==null||zn!==null}function Up(){if(iu){var r=iu,a=zn;if(iu=null,zn=null,jp(r),a)for(var d=0;d<a.length;d++)jp(a[d])}}var xc=function(r,a){return r(a)},zd=function(){},fl=!1;function E0(){var r=k0();r&&(zd(),Up())}function _0(r,a,d){if(fl)return r(a,d);fl=!0;try{return xc(r,a,d)}finally{fl=!1,E0()}}function c6(r,a,d){xc=r,zd=d}function T0(r){return r==="button"||r==="input"||r==="select"||r==="textarea"}function Hp(r,a,d){switch(r){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":return!!(d.disabled&&T0(a));default:return!1}}function pl(r,a){var d=r.stateNode;if(d===null)return null;var p=L2(d);if(p===null)return null;var g=p[a];if(Hp(a,r.type,p))return null;if(g&&typeof g!="function")throw new Error("Expected `"+a+"` listener to be a function, instead got a value of `"+typeof g+"` type.");return g}var jd=!1;if(Xe)try{var ou={};Object.defineProperty(ou,"passive",{get:function(){jd=!0}}),window.addEventListener("test",ou,ou),window.removeEventListener("test",ou,ou)}catch(r){jd=!1}function Vp(r,a,d,p,g,x,E,N,O){var F=Array.prototype.slice.call(arguments,3);try{a.apply(d,F)}catch(V){this.onError(V)}}var Bp=Vp;if(typeof window!="undefined"&&typeof window.dispatchEvent=="function"&&typeof document!="undefined"&&typeof document.createEvent=="function"){var Em=document.createElement("react");Bp=function(a,d,p,g,x,E,N,O,F){if(typeof document=="undefined"||document===null)throw new Error("The `document` global was defined when React was initialized, but is not defined anymore. This can happen in a test environment if a component schedules an update from an asynchronous callback, but the test has already finished running. To solve this, you can either unmount the component at the end of your test (and ensure that any asynchronous operations get canceled in `componentWillUnmount`), or you can change the test itself to be asynchronous.");var V=document.createEvent("Event"),re=!1,te=!0,ue=window.event,he=Object.getOwnPropertyDescriptor(window,"event");function xe(){Em.removeEventListener(Ce,Lt,!1),typeof window.event!="undefined"&&window.hasOwnProperty("event")&&(window.event=ue)}var et=Array.prototype.slice.call(arguments,3);function Lt(){re=!0,xe(),d.apply(p,et),te=!1}var bt,wn=!1,pn=!1;function ie(oe){if(bt=oe.error,wn=!0,bt===null&&oe.colno===0&&oe.lineno===0&&(pn=!0),oe.defaultPrevented&&bt!=null&&typeof bt=="object")try{bt._suppressLogging=!0}catch(je){}}var Ce="react-"+(a||"invokeguardedcallback");if(window.addEventListener("error",ie),Em.addEventListener(Ce,Lt,!1),V.initEvent(Ce,!1,!1),Em.dispatchEvent(V),he&&Object.defineProperty(window,"event",he),re&&te&&(wn?pn&&(bt=new Error("A cross-origin error was thrown. React doesn't have access to the actual error object in development. See https://reactjs.org/link/crossorigin-error for more information.")):bt=new Error(`An error was thrown inside one of your components, but React doesn't know what it was. This is likely due to browser flakiness. React does its best to preserve the "Pause on exceptions" behavior of the DevTools, which requires some DEV-mode only tricks. It's possible that these don't work in your browser. Try triggering the error in production mode, or switching to a modern browser. If you suspect that this is actually an issue with React, please file an issue.`),this.onError(bt)),window.removeEventListener("error",ie),!re)return xe(),Vp.apply(this,arguments)}}var R0=Bp,Cc=!1,$p=null,Sc=!1,$o=null,M0={onError:function(r){Cc=!0,$p=r}};function hl(r,a,d,p,g,x,E,N,O){Cc=!1,$p=null,R0.apply(M0,arguments)}function Zo(r,a,d,p,g,x,E,N,O){if(hl.apply(this,arguments),Cc){var F=Ud();Sc||(Sc=!0,$o=F)}}function Fd(){if(Sc){var r=$o;throw Sc=!1,$o=null,r}}function Es(){return Cc}function Ud(){if(Cc){var r=$p;return Cc=!1,$p=null,r}else throw new Error("clearCaughtError was called but no error was captured. This error is likely caused by a bug in React. Please file an issue.")}function kc(r){return r._reactInternals}function d6(r){return r._reactInternals!==void 0}function su(r,a){r._reactInternals=a}var Tt=0,_o=1,wr=2,vn=4,Wi=16,qi=32,rr=64,St=128,Ta=256,Er=512,Xr=1024,Qa=2048,ei=4096,Ur=8192,Ec=16384,N0=32767,Hd=32768,aa=65536,Zp=131072,Wo=1048576,_c=2097152,_s=4194304,Wp=8388608,ml=16777216,qo=33554432,vl=vn|Xr|0,gl=wr|vn|Wi|qi|Er|ei|Ur,yl=vn|rr|Er|Ur,Ts=Qa|Wi,Hr=_s|Wp|_c,Gi=n.ReactCurrentOwner;function Si(r){var a=r,d=r;if(r.alternate)for(;a.return;)a=a.return;else{var p=a;do a=p,(a.flags&(wr|ei))!==Tt&&(d=a.return),p=a.return;while(p)}return a.tag===y?d:null}function Go(r){if(r.tag===Z){var a=r.memoizedState;if(a===null){var d=r.alternate;d!==null&&(a=d.memoizedState)}if(a!==null)return a.dehydrated}return null}function Yo(r){return r.tag===y?r.stateNode.containerInfo:null}function lu(r){return Si(r)===r}function O0(r){{var a=Gi.current;if(a!==null&&a.tag===v){var d=a,p=d.stateNode;p._warnedAboutRefsInRender||c("%s is accessing isMounted inside its render() function. render() should be a pure function of props and state. It should never access something that requires stale data from the previous render, such as refs. Move this logic to componentDidMount and componentDidUpdate instead.",Ht(d)||"A component"),p._warnedAboutRefsInRender=!0}}var g=kc(r);return g?Si(g)===g:!1}function qp(r){if(Si(r)!==r)throw new Error("Unable to find node on an unmounted component.")}function Gp(r){var a=r.alternate;if(!a){var d=Si(r);if(d===null)throw new Error("Unable to find node on an unmounted component.");return d!==r?null:r}for(var p=r,g=a;;){var x=p.return;if(x===null)break;var E=x.alternate;if(E===null){var N=x.return;if(N!==null){p=g=N;continue}break}if(x.child===E.child){for(var O=x.child;O;){if(O===p)return qp(x),r;if(O===g)return qp(x),a;O=O.sibling}throw new Error("Unable to find node on an unmounted component.")}if(p.return!==g.return)p=x,g=E;else{for(var F=!1,V=x.child;V;){if(V===p){F=!0,p=x,g=E;break}if(V===g){F=!0,g=x,p=E;break}V=V.sibling}if(!F){for(V=E.child;V;){if(V===p){F=!0,p=E,g=x;break}if(V===g){F=!0,g=E,p=x;break}V=V.sibling}if(!F)throw new Error("Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue.")}}if(p.alternate!==g)throw new Error("Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue.")}if(p.tag!==y)throw new Error("Unable to find node on an unmounted component.");return p.stateNode.current===p?r:a}function ti(r){var a=Gp(r);return a!==null?ni(a):null}function ni(r){if(r.tag===C||r.tag===R)return r;for(var a=r.child;a!==null;){var d=ni(a);if(d!==null)return d;a=a.sibling}return null}function hr(r){var a=Gp(r);return a!==null?Yi(a):null}function Yi(r){if(r.tag===C||r.tag===R)return r;for(var a=r.child;a!==null;){if(a.tag!==S){var d=Yi(a);if(d!==null)return d}a=a.sibling}return null}var _m=t.unstable_scheduleCallback,L0=t.unstable_cancelCallback,Tm=t.unstable_shouldYield,Rm=t.unstable_requestPaint,Qr=t.unstable_now,Yp=t.unstable_getCurrentPriorityLevel,Vd=t.unstable_ImmediatePriority,wl=t.unstable_UserBlockingPriority,Rs=t.unstable_NormalPriority,f6=t.unstable_LowPriority,uu=t.unstable_IdlePriority,Jp=t.unstable_yieldValue,A0=t.unstable_setDisableYieldValue,cu=null,Lr=null,Qe=null,ki=!1,ri=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__!="undefined";function Tc(r){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__=="undefined")return!1;var a=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(a.isDisabled)return!0;if(!a.supportsFiber)return c("The installed version of React DevTools is too old and will not work with the current version of React. Please update React DevTools. https://reactjs.org/link/react-devtools"),!0;try{$&&(r=en({},r,{getLaneLabelMap:du,injectProfilingHooks:Ji})),cu=a.inject(r),Lr=a}catch(d){c("React instrumentation encountered an error: %s.",d)}return!!a.checkDCE}function Mm(r,a){if(Lr&&typeof Lr.onScheduleFiberRoot=="function")try{Lr.onScheduleFiberRoot(cu,r,a)}catch(d){ki||(ki=!0,c("React instrumentation encountered an error: %s",d))}}function Nm(r,a){if(Lr&&typeof Lr.onCommitFiberRoot=="function")try{var d=(r.current.flags&St)===St;if(Fe){var p;switch(a){case Pa:p=Vd;break;case Ko:p=wl;break;case Ki:p=Rs;break;case Xi:p=uu;break;default:p=Rs;break}Lr.onCommitFiberRoot(cu,r,p,d)}}catch(g){ki||(ki=!0,c("React instrumentation encountered an error: %s",g))}}function Om(r){if(Lr&&typeof Lr.onPostCommitFiberRoot=="function")try{Lr.onPostCommitFiberRoot(cu,r)}catch(a){ki||(ki=!0,c("React instrumentation encountered an error: %s",a))}}function Lm(r){if(Lr&&typeof Lr.onCommitFiberUnmount=="function")try{Lr.onCommitFiberUnmount(cu,r)}catch(a){ki||(ki=!0,c("React instrumentation encountered an error: %s",a))}}function br(r){if(typeof Jp=="function"&&(A0(r),o(r)),Lr&&typeof Lr.setStrictMode=="function")try{Lr.setStrictMode(cu,r)}catch(a){ki||(ki=!0,c("React instrumentation encountered an error: %s",a))}}function Ji(r){Qe=r}function du(){{for(var r=new Map,a=1,d=0;d<hu;d++){var p=z0(a);r.set(a,p),a*=2}return r}}function Am(r){Qe!==null&&typeof Qe.markCommitStarted=="function"&&Qe.markCommitStarted(r)}function Im(){Qe!==null&&typeof Qe.markCommitStopped=="function"&&Qe.markCommitStopped()}function Ei(r){Qe!==null&&typeof Qe.markComponentRenderStarted=="function"&&Qe.markComponentRenderStarted(r)}function _i(){Qe!==null&&typeof Qe.markComponentRenderStopped=="function"&&Qe.markComponentRenderStopped()}function Dm(r){Qe!==null&&typeof Qe.markComponentPassiveEffectMountStarted=="function"&&Qe.markComponentPassiveEffectMountStarted(r)}function I0(){Qe!==null&&typeof Qe.markComponentPassiveEffectMountStopped=="function"&&Qe.markComponentPassiveEffectMountStopped()}function Ms(r){Qe!==null&&typeof Qe.markComponentPassiveEffectUnmountStarted=="function"&&Qe.markComponentPassiveEffectUnmountStarted(r)}function bl(){Qe!==null&&typeof Qe.markComponentPassiveEffectUnmountStopped=="function"&&Qe.markComponentPassiveEffectUnmountStopped()}function Kp(r){Qe!==null&&typeof Qe.markComponentLayoutEffectMountStarted=="function"&&Qe.markComponentLayoutEffectMountStarted(r)}function D0(){Qe!==null&&typeof Qe.markComponentLayoutEffectMountStopped=="function"&&Qe.markComponentLayoutEffectMountStopped()}function Bd(r){Qe!==null&&typeof Qe.markComponentLayoutEffectUnmountStarted=="function"&&Qe.markComponentLayoutEffectUnmountStarted(r)}function Pm(){Qe!==null&&typeof Qe.markComponentLayoutEffectUnmountStopped=="function"&&Qe.markComponentLayoutEffectUnmountStopped()}function $d(r,a,d){Qe!==null&&typeof Qe.markComponentErrored=="function"&&Qe.markComponentErrored(r,a,d)}function Jo(r,a,d){Qe!==null&&typeof Qe.markComponentSuspended=="function"&&Qe.markComponentSuspended(r,a,d)}function Zd(r){Qe!==null&&typeof Qe.markLayoutEffectsStarted=="function"&&Qe.markLayoutEffectsStarted(r)}function Wd(){Qe!==null&&typeof Qe.markLayoutEffectsStopped=="function"&&Qe.markLayoutEffectsStopped()}function fu(r){Qe!==null&&typeof Qe.markPassiveEffectsStarted=="function"&&Qe.markPassiveEffectsStarted(r)}function zm(){Qe!==null&&typeof Qe.markPassiveEffectsStopped=="function"&&Qe.markPassiveEffectsStopped()}function pu(r){Qe!==null&&typeof Qe.markRenderStarted=="function"&&Qe.markRenderStarted(r)}function P0(){Qe!==null&&typeof Qe.markRenderYielded=="function"&&Qe.markRenderYielded()}function Xp(){Qe!==null&&typeof Qe.markRenderStopped=="function"&&Qe.markRenderStopped()}function xr(r){Qe!==null&&typeof Qe.markRenderScheduled=="function"&&Qe.markRenderScheduled(r)}function Qp(r,a){Qe!==null&&typeof Qe.markForceUpdateScheduled=="function"&&Qe.markForceUpdateScheduled(r,a)}function qd(r,a){Qe!==null&&typeof Qe.markStateUpdateScheduled=="function"&&Qe.markStateUpdateScheduled(r,a)}var Rt=0,an=1,Rn=2,Wn=8,Mn=16,Vr=Math.clz32?Math.clz32:Gd,ia=Math.log,e1=Math.LN2;function Gd(r){var a=r>>>0;return a===0?32:31-(ia(a)/e1|0)|0}var hu=31,Le=0,En=0,jt=1,xl=2,To=4,Ra=8,Ar=16,Ns=32,Cl=4194240,mu=64,t1=128,n1=256,r1=512,a1=1024,i1=2048,o1=4096,s1=8192,l1=16384,vu=32768,u1=65536,Rc=131072,Mc=262144,c1=524288,Yd=1048576,d1=2097152,Jd=130023424,gu=4194304,f1=8388608,Kd=16777216,p1=33554432,h1=67108864,jm=gu,Xd=134217728,Fm=268435455,Qd=268435456,yu=536870912,ai=1073741824;function z0(r){{if(r&jt)return"Sync";if(r&xl)return"InputContinuousHydration";if(r&To)return"InputContinuous";if(r&Ra)return"DefaultHydration";if(r&Ar)return"Default";if(r&Ns)return"TransitionHydration";if(r&Cl)return"Transition";if(r&Jd)return"Retry";if(r&Xd)return"SelectiveHydration";if(r&Qd)return"IdleHydration";if(r&yu)return"Idle";if(r&ai)return"Offscreen"}}var Xn=-1,wu=mu,m1=gu;function ef(r){switch(Sl(r)){case jt:return jt;case xl:return xl;case To:return To;case Ra:return Ra;case Ar:return Ar;case Ns:return Ns;case mu:case t1:case n1:case r1:case a1:case i1:case o1:case s1:case l1:case vu:case u1:case Rc:case Mc:case c1:case Yd:case d1:return r&Cl;case gu:case f1:case Kd:case p1:case h1:return r&Jd;case Xd:return Xd;case Qd:return Qd;case yu:return yu;case ai:return ai;default:return c("Should have found matching lanes. This is a bug in React."),r}}function v1(r,a){var d=r.pendingLanes;if(d===Le)return Le;var p=Le,g=r.suspendedLanes,x=r.pingedLanes,E=d&Fm;if(E!==Le){var N=E&~g;if(N!==Le)p=ef(N);else{var O=E&x;O!==Le&&(p=ef(O))}}else{var F=d&~g;F!==Le?p=ef(F):x!==Le&&(p=ef(x))}if(p===Le)return Le;if(a!==Le&&a!==p&&(a&g)===Le){var V=Sl(p),re=Sl(a);if(V>=re||V===Ar&&(re&Cl)!==Le)return a}(p&To)!==Le&&(p|=d&Ar);var te=r.entangledLanes;if(te!==Le)for(var ue=r.entanglements,he=p&te;he>0;){var xe=Br(he),et=1<<xe;p|=ue[xe],he&=~et}return p}function Ro(r,a){for(var d=r.eventTimes,p=Xn;a>0;){var g=Br(a),x=1<<g,E=d[g];E>p&&(p=E),a&=~x}return p}function Um(r,a){switch(r){case jt:case xl:case To:return a+250;case Ra:case Ar:case Ns:case mu:case t1:case n1:case r1:case a1:case i1:case o1:case s1:case l1:case vu:case u1:case Rc:case Mc:case c1:case Yd:case d1:return a+5e3;case gu:case f1:case Kd:case p1:case h1:return Xn;case Xd:case Qd:case yu:case ai:return Xn;default:return c("Should have found matching lanes. This is a bug in React."),Xn}}function g1(r,a){for(var d=r.pendingLanes,p=r.suspendedLanes,g=r.pingedLanes,x=r.expirationTimes,E=d;E>0;){var N=Br(E),O=1<<N,F=x[N];F===Xn?((O&p)===Le||(O&g)!==Le)&&(x[N]=Um(O,a)):F<=a&&(r.expiredLanes|=O),E&=~O}}function j0(r){return ef(r.pendingLanes)}function y1(r){var a=r.pendingLanes&~ai;return a!==Le?a:a&ai?ai:Le}function F0(r){return(r&jt)!==Le}function tf(r){return(r&Fm)!==Le}function bu(r){return(r&Jd)===r}function Hm(r){var a=jt|To|Ar;return(r&a)===Le}function Vm(r){return(r&Cl)===r}function w1(r,a){var d=xl|To|Ra|Ar;return(a&d)!==Le}function U0(r,a){return(a&r.expiredLanes)!==Le}function Bm(r){return(r&Cl)!==Le}function $m(){var r=wu;return wu<<=1,(wu&Cl)===Le&&(wu=mu),r}function H0(){var r=m1;return m1<<=1,(m1&Jd)===Le&&(m1=gu),r}function Sl(r){return r&-r}function nf(r){return Sl(r)}function Br(r){return 31-Vr(r)}function ma(r){return Br(r)}function ii(r,a){return(r&a)!==Le}function xu(r,a){return(r&a)===a}function Kt(r,a){return r|a}function rf(r,a){return r&~a}function Zm(r,a){return r&a}function V0(r){return r}function B0(r,a){return r!==En&&r<a?r:a}function af(r){for(var a=[],d=0;d<hu;d++)a.push(r);return a}function Nc(r,a,d){r.pendingLanes|=a,a!==yu&&(r.suspendedLanes=Le,r.pingedLanes=Le);var p=r.eventTimes,g=ma(a);p[g]=d}function $0(r,a){r.suspendedLanes|=a,r.pingedLanes&=~a;for(var d=r.expirationTimes,p=a;p>0;){var g=Br(p),x=1<<g;d[g]=Xn,p&=~x}}function b1(r,a,d){r.pingedLanes|=r.suspendedLanes&a}function Wm(r,a){var d=r.pendingLanes&~a;r.pendingLanes=a,r.suspendedLanes=Le,r.pingedLanes=Le,r.expiredLanes&=a,r.mutableReadLanes&=a,r.entangledLanes&=a;for(var p=r.entanglements,g=r.eventTimes,x=r.expirationTimes,E=d;E>0;){var N=Br(E),O=1<<N;p[N]=Le,g[N]=Xn,x[N]=Xn,E&=~O}}function x1(r,a){for(var d=r.entangledLanes|=a,p=r.entanglements,g=d;g;){var x=Br(g),E=1<<x;E&a|p[x]&a&&(p[x]|=a),g&=~E}}function qm(r,a){var d=Sl(a),p;switch(d){case To:p=xl;break;case Ar:p=Ra;break;case mu:case t1:case n1:case r1:case a1:case i1:case o1:case s1:case l1:case vu:case u1:case Rc:case Mc:case c1:case Yd:case d1:case gu:case f1:case Kd:case p1:case h1:p=Ns;break;case yu:p=Qd;break;default:p=En;break}return(p&(r.suspendedLanes|a))!==En?En:p}function of(r,a,d){if(ri)for(var p=r.pendingUpdatersLaneMap;d>0;){var g=ma(d),x=1<<g,E=p[g];E.add(a),d&=~x}}function Z0(r,a){if(ri)for(var d=r.pendingUpdatersLaneMap,p=r.memoizedUpdaters;a>0;){var g=ma(a),x=1<<g,E=d[g];E.size>0&&(E.forEach(function(N){var O=N.alternate;(O===null||!p.has(O))&&p.add(N)}),E.clear()),a&=~x}}function Gm(r,a){return null}var Pa=jt,Ko=To,Ki=Ar,Xi=yu,sf=En;function Qi(){return sf}function $r(r){sf=r}function W0(r,a){var d=sf;try{return sf=r,a()}finally{sf=d}}function q0(r,a){return r!==0&&r<a?r:a}function lf(r,a){return r>a?r:a}function oa(r,a){return r!==0&&r<a}function G0(r){var a=Sl(r);return oa(Pa,a)?oa(Ko,a)?tf(a)?Ki:Xi:Ko:Pa}function C1(r){var a=r.current.memoizedState;return a.isDehydrated}var uf;function Ma(r){uf=r}function p6(r){uf(r)}var ot;function Oc(r){ot=r}var S1;function Y0(r){S1=r}var J0;function cf(r){J0=r}var df;function Ym(r){df=r}var k1=!1,ff=[],Os=null,Xo=null,Qo=null,Ir=new Map,za=new Map,ja=[],K0=["mousedown","mouseup","touchcancel","touchend","touchstart","auxclick","dblclick","pointercancel","pointerdown","pointerup","dragend","dragstart","drop","compositionend","compositionstart","keydown","keypress","keyup","input","textInput","copy","cut","paste","click","change","contextmenu","reset","submit"];function X0(r){return K0.indexOf(r)>-1}function Mo(r,a,d,p,g){return{blockedOn:r,domEventName:a,eventSystemFlags:d,nativeEvent:g,targetContainers:[p]}}function Jm(r,a){switch(r){case"focusin":case"focusout":Os=null;break;case"dragenter":case"dragleave":Xo=null;break;case"mouseover":case"mouseout":Qo=null;break;case"pointerover":case"pointerout":{var d=a.pointerId;Ir.delete(d);break}case"gotpointercapture":case"lostpointercapture":{var p=a.pointerId;za.delete(p);break}}}function oi(r,a,d,p,g,x){if(r===null||r.nativeEvent!==x){var E=Mo(a,d,p,g,x);if(a!==null){var N=Uc(a);N!==null&&ot(N)}return E}r.eventSystemFlags|=p;var O=r.targetContainers;return g!==null&&O.indexOf(g)===-1&&O.push(g),r}function h6(r,a,d,p,g){switch(a){case"focusin":{var x=g;return Os=oi(Os,r,a,d,p,x),!0}case"dragenter":{var E=g;return Xo=oi(Xo,r,a,d,p,E),!0}case"mouseover":{var N=g;return Qo=oi(Qo,r,a,d,p,N),!0}case"pointerover":{var O=g,F=O.pointerId;return Ir.set(F,oi(Ir.get(F)||null,r,a,d,p,O)),!0}case"gotpointercapture":{var V=g,re=V.pointerId;return za.set(re,oi(za.get(re)||null,r,a,d,p,V)),!0}}return!1}function Km(r){var a=kf(r.target);if(a!==null){var d=Si(a);if(d!==null){var p=d.tag;if(p===Z){var g=Go(d);if(g!==null){r.blockedOn=g,df(r.priority,function(){S1(d)});return}}else if(p===y){var x=d.stateNode;if(C1(x)){r.blockedOn=Yo(d);return}}}}r.blockedOn=null}function Q0(r){for(var a=J0(),d={blockedOn:null,target:r,priority:a},p=0;p<ja.length&&oa(a,ja[p].priority);p++);ja.splice(p,0,d),p===0&&Km(d)}function pf(r){if(r.blockedOn!==null)return!1;for(var a=r.targetContainers;a.length>0;){var d=a[0],p=Ac(r.domEventName,r.eventSystemFlags,d,r.nativeEvent);if(p===null){var g=r.nativeEvent,x=new g.constructor(g.type,g);l6(x),g.target.dispatchEvent(x),u6()}else{var E=Uc(p);return E!==null&&ot(E),r.blockedOn=p,!1}a.shift()}return!0}function Xm(r,a,d){pf(r)&&d.delete(a)}function m6(){k1=!1,Os!==null&&pf(Os)&&(Os=null),Xo!==null&&pf(Xo)&&(Xo=null),Qo!==null&&pf(Qo)&&(Qo=null),Ir.forEach(Xm),za.forEach(Xm)}function kl(r,a){r.blockedOn===a&&(r.blockedOn=null,k1||(k1=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,m6)))}function Cu(r){if(ff.length>0){kl(ff[0],r);for(var a=1;a<ff.length;a++){var d=ff[a];d.blockedOn===r&&(d.blockedOn=null)}}Os!==null&&kl(Os,r),Xo!==null&&kl(Xo,r),Qo!==null&&kl(Qo,r);var p=function(N){return kl(N,r)};Ir.forEach(p),za.forEach(p);for(var g=0;g<ja.length;g++){var x=ja[g];x.blockedOn===r&&(x.blockedOn=null)}for(;ja.length>0;){var E=ja[0];if(E.blockedOn!==null)break;Km(E),E.blockedOn===null&&ja.shift()}}var va=n.ReactCurrentBatchConfig,gn=!0;function ea(r){gn=!!r}function Zr(){return gn}function ga(r,a,d){var p=E1(a),g;switch(p){case Pa:g=Ti;break;case Ko:g=Lc;break;case Ki:default:g=Dr;break}return g.bind(null,a,d,r)}function Ti(r,a,d,p){var g=Qi(),x=va.transition;va.transition=null;try{$r(Pa),Dr(r,a,d,p)}finally{$r(g),va.transition=x}}function Lc(r,a,d,p){var g=Qi(),x=va.transition;va.transition=null;try{$r(Ko),Dr(r,a,d,p)}finally{$r(g),va.transition=x}}function Dr(r,a,d,p){gn&&hf(r,a,d,p)}function hf(r,a,d,p){var g=Ac(r,a,d,p);if(g===null){L6(r,a,p,es,d),Jm(r,p);return}if(h6(g,r,a,d,p)){p.stopPropagation();return}if(Jm(r,p),a&Zi&&X0(r)){for(;g!==null;){var x=Uc(g);x!==null&&p6(x);var E=Ac(r,a,d,p);if(E===null&&L6(r,a,p,es,d),E===g)break;g=E}g!==null&&p.stopPropagation();return}L6(r,a,p,null,d)}var es=null;function Ac(r,a,d,p){es=null;var g=km(p),x=kf(g);if(x!==null){var E=Si(x);if(E===null)x=null;else{var N=E.tag;if(N===Z){var O=Go(E);if(O!==null)return O;x=null}else if(N===y){var F=E.stateNode;if(C1(F))return Yo(E);x=null}else E!==x&&(x=null)}}return es=x,null}function E1(r){switch(r){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return Pa;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return Ko;case"message":{var a=Yp();switch(a){case Vd:return Pa;case wl:return Ko;case Rs:case f6:return Ki;case uu:return Xi;default:return Ki}}default:return Ki}}function mf(r,a,d){return r.addEventListener(a,d,!1),d}function si(r,a,d){return r.addEventListener(a,d,!0),d}function Qm(r,a,d,p){return r.addEventListener(a,d,{capture:!0,passive:p}),d}function Ic(r,a,d,p){return r.addEventListener(a,d,{passive:p}),d}var Ri=null,Dc=null,Su=null;function El(r){return Ri=r,Dc=vf(),!0}function _1(){Ri=null,Dc=null,Su=null}function Ls(){if(Su)return Su;var r,a=Dc,d=a.length,p,g=vf(),x=g.length;for(r=0;r<d&&a[r]===g[r];r++);var E=d-r;for(p=1;p<=E&&a[d-p]===g[x-p];p++);var N=p>1?1-p:void 0;return Su=g.slice(r,N),Su}function vf(){return"value"in Ri?Ri.value:Ri.textContent}function _l(r){var a,d=r.keyCode;return"charCode"in r?(a=r.charCode,a===0&&d===13&&(a=13)):a=d,a===10&&(a=13),a>=32||a===13?a:0}function Pc(){return!0}function gf(){return!1}function Na(r){function a(d,p,g,x,E){this._reactName=d,this._targetInst=g,this.type=p,this.nativeEvent=x,this.target=E,this.currentTarget=null;for(var N in r)if(r.hasOwnProperty(N)){var O=r[N];O?this[N]=O(x):this[N]=x[N]}var F=x.defaultPrevented!=null?x.defaultPrevented:x.returnValue===!1;return F?this.isDefaultPrevented=Pc:this.isDefaultPrevented=gf,this.isPropagationStopped=gf,this}return en(a.prototype,{preventDefault:function(){this.defaultPrevented=!0;var d=this.nativeEvent;d&&(d.preventDefault?d.preventDefault():typeof d.returnValue!="unknown"&&(d.returnValue=!1),this.isDefaultPrevented=Pc)},stopPropagation:function(){var d=this.nativeEvent;d&&(d.stopPropagation?d.stopPropagation():typeof d.cancelBubble!="unknown"&&(d.cancelBubble=!0),this.isPropagationStopped=Pc)},persist:function(){},isPersistent:Pc}),a}var Wr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(r){return r.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ts=Na(Wr),Fa=en({},Wr,{view:0,detail:0}),li=Na(Fa),T1,yf,ku;function v6(r){r!==ku&&(ku&&r.type==="mousemove"?(T1=r.screenX-ku.screenX,yf=r.screenY-ku.screenY):(T1=0,yf=0),ku=r)}var No=en({},Fa,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:mr,button:0,buttons:0,relatedTarget:function(r){return r.relatedTarget===void 0?r.fromElement===r.srcElement?r.toElement:r.fromElement:r.relatedTarget},movementX:function(r){return"movementX"in r?r.movementX:(v6(r),T1)},movementY:function(r){return"movementY"in r?r.movementY:yf}}),ev=Na(No),tv=en({},No,{dataTransfer:0}),Eu=Na(tv),nv=en({},Fa,{relatedTarget:0}),As=Na(nv),e2=en({},Wr,{animationName:0,elapsedTime:0,pseudoElement:0}),t2=Na(e2),rv=en({},Wr,{clipboardData:function(r){return"clipboardData"in r?r.clipboardData:window.clipboardData}}),R1=Na(rv),g6=en({},Wr,{data:0}),n2=Na(g6),r2=n2,a2={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},_u={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"};function y6(r){if(r.key){var a=a2[r.key]||r.key;if(a!=="Unidentified")return a}if(r.type==="keypress"){var d=_l(r);return d===13?"Enter":String.fromCharCode(d)}return r.type==="keydown"||r.type==="keyup"?_u[r.keyCode]||"Unidentified":""}var zc={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function i2(r){var a=this,d=a.nativeEvent;if(d.getModifierState)return d.getModifierState(r);var p=zc[r];return p?!!d[p]:!1}function mr(r){return i2}var w6=en({},Fa,{key:y6,code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:mr,charCode:function(r){return r.type==="keypress"?_l(r):0},keyCode:function(r){return r.type==="keydown"||r.type==="keyup"?r.keyCode:0},which:function(r){return r.type==="keypress"?_l(r):r.type==="keydown"||r.type==="keyup"?r.keyCode:0}}),o2=Na(w6),b6=en({},No,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),s2=Na(b6),l2=en({},Fa,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:mr}),u2=Na(l2),x6=en({},Wr,{propertyName:0,elapsedTime:0,pseudoElement:0}),eo=Na(x6),av=en({},No,{deltaX:function(r){return"deltaX"in r?r.deltaX:"wheelDeltaX"in r?-r.wheelDeltaX:0},deltaY:function(r){return"deltaY"in r?r.deltaY:"wheelDeltaY"in r?-r.wheelDeltaY:"wheelDelta"in r?-r.wheelDelta:0},deltaZ:0,deltaMode:0}),C6=Na(av),Tl=[9,13,27,32],wf=229,Is=Xe&&"CompositionEvent"in window,Rl=null;Xe&&"documentMode"in document&&(Rl=document.documentMode);var iv=Xe&&"TextEvent"in window&&!Rl,M1=Xe&&(!Is||Rl&&Rl>8&&Rl<=11),c2=32,N1=String.fromCharCode(c2);function S6(){Je("onBeforeInput",["compositionend","keypress","textInput","paste"]),Je("onCompositionEnd",["compositionend","focusout","keydown","keypress","keyup","mousedown"]),Je("onCompositionStart",["compositionstart","focusout","keydown","keypress","keyup","mousedown"]),Je("onCompositionUpdate",["compositionupdate","focusout","keydown","keypress","keyup","mousedown"])}var ov=!1;function d2(r){return(r.ctrlKey||r.altKey||r.metaKey)&&!(r.ctrlKey&&r.altKey)}function O1(r){switch(r){case"compositionstart":return"onCompositionStart";case"compositionend":return"onCompositionEnd";case"compositionupdate":return"onCompositionUpdate"}}function L1(r,a){return r==="keydown"&&a.keyCode===wf}function sv(r,a){switch(r){case"keyup":return Tl.indexOf(a.keyCode)!==-1;case"keydown":return a.keyCode!==wf;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function A1(r){var a=r.detail;return typeof a=="object"&&"data"in a?a.data:null}function f2(r){return r.locale==="ko"}var Tu=!1;function lv(r,a,d,p,g){var x,E;if(Is?x=O1(a):Tu?sv(a,p)&&(x="onCompositionEnd"):L1(a,p)&&(x="onCompositionStart"),!x)return null;M1&&!f2(p)&&(!Tu&&x==="onCompositionStart"?Tu=El(g):x==="onCompositionEnd"&&Tu&&(E=Ls()));var N=w2(d,x);if(N.length>0){var O=new n2(x,a,null,p,g);if(r.push({event:O,listeners:N}),E)O.data=E;else{var F=A1(p);F!==null&&(O.data=F)}}}function I1(r,a){switch(r){case"compositionend":return A1(a);case"keypress":var d=a.which;return d!==c2?null:(ov=!0,N1);case"textInput":var p=a.data;return p===N1&&ov?null:p;default:return null}}function uv(r,a){if(Tu){if(r==="compositionend"||!Is&&sv(r,a)){var d=Ls();return _1(),Tu=!1,d}return null}switch(r){case"paste":return null;case"keypress":if(!d2(a)){if(a.char&&a.char.length>1)return a.char;if(a.which)return String.fromCharCode(a.which)}return null;case"compositionend":return M1&&!f2(a)?null:a.data;default:return null}}function D1(r,a,d,p,g){var x;if(iv?x=I1(a,p):x=uv(a,p),!x)return null;var E=w2(d,"onBeforeInput");if(E.length>0){var N=new r2("onBeforeInput","beforeinput",null,p,g);r.push({event:N,listeners:E}),N.data=x}}function p2(r,a,d,p,g,x,E){lv(r,a,d,p,g),D1(r,a,d,p,g)}var k6={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function bf(r){var a=r&&r.nodeName&&r.nodeName.toLowerCase();return a==="input"?!!k6[r.type]:a==="textarea"}/**
117
+ * Checks if an event is supported in the current execution environment.
118
+ *
119
+ * NOTE: This will not work correctly for non-generic events such as `change`,
120
+ * `reset`, `load`, `error`, and `select`.
121
+ *
122
+ * Borrows from Modernizr.
123
+ *
124
+ * @param {string} eventNameSuffix Event name, e.g. "click".
125
+ * @return {boolean} True if the event is supported.
126
+ * @internal
127
+ * @license Modernizr 3.0.0pre (Custom Build) | MIT
128
+ */function E6(r){if(!Xe)return!1;var a="on"+r,d=a in document;if(!d){var p=document.createElement("div");p.setAttribute(a,"return;"),d=typeof p[a]=="function"}return d}function xf(){Je("onChange",["change","click","focusin","focusout","input","keydown","keyup","selectionchange"])}function h2(r,a,d,p){bc(p);var g=w2(a,"onChange");if(g.length>0){var x=new ts("onChange","change",null,d,p);r.push({event:x,listeners:g})}}var Ml=null,s=null;function u(r){var a=r.nodeName&&r.nodeName.toLowerCase();return a==="select"||a==="input"&&r.type==="file"}function h(r){var a=[];h2(a,s,r,km(r)),_0(w,a)}function w(r){DN(r,0)}function k(r){var a=H1(r);if(Vo(a))return r}function T(r,a){if(r==="change")return a}var z=!1;Xe&&(z=E6("input")&&(!document.documentMode||document.documentMode>9));function q(r,a){Ml=r,s=a,Ml.attachEvent("onpropertychange",pe)}function X(){Ml&&(Ml.detachEvent("onpropertychange",pe),Ml=null,s=null)}function pe(r){r.propertyName==="value"&&k(s)&&h(r)}function De(r,a,d){r==="focusin"?(X(),q(a,d)):r==="focusout"&&X()}function ze(r,a){if(r==="selectionchange"||r==="keyup"||r==="keydown")return k(s)}function Ae(r){var a=r.nodeName;return a&&a.toLowerCase()==="input"&&(r.type==="checkbox"||r.type==="radio")}function nt(r,a){if(r==="click")return k(a)}function ct(r,a){if(r==="input"||r==="change")return k(a)}function mt(r){var a=r._wrapperState;!a||!a.controlled||r.type!=="number"||Ot(r,"number",r.value)}function Pr(r,a,d,p,g,x,E){var N=d?H1(d):window,O,F;if(u(N)?O=T:bf(N)?z?O=ct:(O=ze,F=De):Ae(N)&&(O=nt),O){var V=O(a,d);if(V){h2(r,V,p,g);return}}F&&F(a,N,d),a==="focusout"&&mt(N)}function ae(){We("onMouseEnter",["mouseout","mouseover"]),We("onMouseLeave",["mouseout","mouseover"]),We("onPointerEnter",["pointerout","pointerover"]),We("onPointerLeave",["pointerout","pointerover"])}function ne(r,a,d,p,g,x,E){var N=a==="mouseover"||a==="pointerover",O=a==="mouseout"||a==="pointerout";if(N&&!Pd(p)){var F=p.relatedTarget||p.fromElement;if(F&&(kf(F)||Sv(F)))return}if(!(!O&&!N)){var V;if(g.window===g)V=g;else{var re=g.ownerDocument;re?V=re.defaultView||re.parentWindow:V=window}var te,ue;if(O){var he=p.relatedTarget||p.toElement;if(te=d,ue=he?kf(he):null,ue!==null){var xe=Si(ue);(ue!==xe||ue.tag!==C&&ue.tag!==R)&&(ue=null)}}else te=null,ue=d;if(te!==ue){var et=ev,Lt="onMouseLeave",bt="onMouseEnter",wn="mouse";(a==="pointerout"||a==="pointerover")&&(et=s2,Lt="onPointerLeave",bt="onPointerEnter",wn="pointer");var pn=te==null?V:H1(te),ie=ue==null?V:H1(ue),Ce=new et(Lt,wn+"leave",te,p,g);Ce.target=pn,Ce.relatedTarget=ie;var oe=null,je=kf(g);if(je===d){var at=new et(bt,wn+"enter",ue,p,g);at.target=ie,at.relatedTarget=pn,oe=at}mae(r,Ce,oe,te,ue)}}}function le(r,a){return r===a&&(r!==0||1/r===1/a)||r!==r&&a!==a}var Pe=typeof Object.is=="function"?Object.is:le;function dt(r,a){if(Pe(r,a))return!0;if(typeof r!="object"||r===null||typeof a!="object"||a===null)return!1;var d=Object.keys(r),p=Object.keys(a);if(d.length!==p.length)return!1;for(var g=0;g<d.length;g++){var x=d[g];if(!Et.call(a,x)||!Pe(r[x],a[x]))return!1}return!0}function At(r){for(;r&&r.firstChild;)r=r.firstChild;return r}function Pt(r){for(;r;){if(r.nextSibling)return r.nextSibling;r=r.parentNode}}function Ut(r,a){for(var d=At(r),p=0,g=0;d;){if(d.nodeType===Ss){if(g=p+d.textContent.length,p<=a&&g>=a)return{node:d,offset:a-p};p=g}d=At(Pt(d))}}function sa(r){var a=r.ownerDocument,d=a&&a.defaultView||window,p=d.getSelection&&d.getSelection();if(!p||p.rangeCount===0)return null;var g=p.anchorNode,x=p.anchorOffset,E=p.focusNode,N=p.focusOffset;try{g.nodeType,E.nodeType}catch(O){return null}return Nn(r,g,x,E,N)}function Nn(r,a,d,p,g){var x=0,E=-1,N=-1,O=0,F=0,V=r,re=null;e:for(;;){for(var te=null;V===a&&(d===0||V.nodeType===Ss)&&(E=x+d),V===p&&(g===0||V.nodeType===Ss)&&(N=x+g),V.nodeType===Ss&&(x+=V.nodeValue.length),(te=V.firstChild)!==null;)re=V,V=te;for(;;){if(V===r)break e;if(re===a&&++O===d&&(E=x),re===p&&++F===g&&(N=x),(te=V.nextSibling)!==null)break;V=re,re=V.parentNode}V=te}return E===-1||N===-1?null:{start:E,end:N}}function Nl(r,a){var d=r.ownerDocument||document,p=d&&d.defaultView||window;if(p.getSelection){var g=p.getSelection(),x=r.textContent.length,E=Math.min(a.start,x),N=a.end===void 0?E:Math.min(a.end,x);if(!g.extend&&E>N){var O=N;N=E,E=O}var F=Ut(r,E),V=Ut(r,N);if(F&&V){if(g.rangeCount===1&&g.anchorNode===F.node&&g.anchorOffset===F.offset&&g.focusNode===V.node&&g.focusOffset===V.offset)return;var re=d.createRange();re.setStart(F.node,F.offset),g.removeAllRanges(),E>N?(g.addRange(re),g.extend(V.node,V.offset)):(re.setEnd(V.node,V.offset),g.addRange(re))}}}function m2(r){return r&&r.nodeType===Ss}function kN(r,a){return!r||!a?!1:r===a?!0:m2(r)?!1:m2(a)?kN(r,a.parentNode):"contains"in r?r.contains(a):r.compareDocumentPosition?!!(r.compareDocumentPosition(a)&16):!1}function Kre(r){return r&&r.ownerDocument&&kN(r.ownerDocument.documentElement,r)}function Xre(r){try{return typeof r.contentWindow.location.href=="string"}catch(a){return!1}}function EN(){for(var r=window,a=$i();a instanceof r.HTMLIFrameElement;){if(Xre(a))r=a.contentWindow;else return a;a=$i(r.document)}return a}function _6(r){var a=r&&r.nodeName&&r.nodeName.toLowerCase();return a&&(a==="input"&&(r.type==="text"||r.type==="search"||r.type==="tel"||r.type==="url"||r.type==="password")||a==="textarea"||r.contentEditable==="true")}function Qre(){var r=EN();return{focusedElem:r,selectionRange:_6(r)?tae(r):null}}function eae(r){var a=EN(),d=r.focusedElem,p=r.selectionRange;if(a!==d&&Kre(d)){p!==null&&_6(d)&&nae(d,p);for(var g=[],x=d;x=x.parentNode;)x.nodeType===Xa&&g.push({element:x,left:x.scrollLeft,top:x.scrollTop});typeof d.focus=="function"&&d.focus();for(var E=0;E<g.length;E++){var N=g[E];N.element.scrollLeft=N.left,N.element.scrollTop=N.top}}}function tae(r){var a;return"selectionStart"in r?a={start:r.selectionStart,end:r.selectionEnd}:a=sa(r),a||{start:0,end:0}}function nae(r,a){var d=a.start,p=a.end;p===void 0&&(p=d),"selectionStart"in r?(r.selectionStart=d,r.selectionEnd=Math.min(p,r.value.length)):Nl(r,a)}var rae=Xe&&"documentMode"in document&&document.documentMode<=11;function aae(){Je("onSelect",["focusout","contextmenu","dragend","focusin","keydown","keyup","mousedown","mouseup","selectionchange"])}var P1=null,T6=null,cv=null,R6=!1;function iae(r){if("selectionStart"in r&&_6(r))return{start:r.selectionStart,end:r.selectionEnd};var a=r.ownerDocument&&r.ownerDocument.defaultView||window,d=a.getSelection();return{anchorNode:d.anchorNode,anchorOffset:d.anchorOffset,focusNode:d.focusNode,focusOffset:d.focusOffset}}function oae(r){return r.window===r?r.document:r.nodeType===ks?r:r.ownerDocument}function _N(r,a,d){var p=oae(d);if(!(R6||P1==null||P1!==$i(p))){var g=iae(P1);if(!cv||!dt(cv,g)){cv=g;var x=w2(T6,"onSelect");if(x.length>0){var E=new ts("onSelect","select",null,a,d);r.push({event:E,listeners:x}),E.target=P1}}}}function sae(r,a,d,p,g,x,E){var N=d?H1(d):window;switch(a){case"focusin":(bf(N)||N.contentEditable==="true")&&(P1=N,T6=d,cv=null);break;case"focusout":P1=null,T6=null,cv=null;break;case"mousedown":R6=!0;break;case"contextmenu":case"mouseup":case"dragend":R6=!1,_N(r,p,g);break;case"selectionchange":if(rae)break;case"keydown":case"keyup":_N(r,p,g)}}function v2(r,a){var d={};return d[r.toLowerCase()]=a.toLowerCase(),d["Webkit"+r]="webkit"+a,d["Moz"+r]="moz"+a,d}var z1={animationend:v2("Animation","AnimationEnd"),animationiteration:v2("Animation","AnimationIteration"),animationstart:v2("Animation","AnimationStart"),transitionend:v2("Transition","TransitionEnd")},M6={},TN={};Xe&&(TN=document.createElement("div").style,"AnimationEvent"in window||(delete z1.animationend.animation,delete z1.animationiteration.animation,delete z1.animationstart.animation),"TransitionEvent"in window||delete z1.transitionend.transition);function g2(r){if(M6[r])return M6[r];if(!z1[r])return r;var a=z1[r];for(var d in a)if(a.hasOwnProperty(d)&&d in TN)return M6[r]=a[d];return r}var RN=g2("animationend"),MN=g2("animationiteration"),NN=g2("animationstart"),ON=g2("transitionend"),LN=new Map,AN=["abort","auxClick","cancel","canPlay","canPlayThrough","click","close","contextMenu","copy","cut","drag","dragEnd","dragEnter","dragExit","dragLeave","dragOver","dragStart","drop","durationChange","emptied","encrypted","ended","error","gotPointerCapture","input","invalid","keyDown","keyPress","keyUp","load","loadedData","loadedMetadata","loadStart","lostPointerCapture","mouseDown","mouseMove","mouseOut","mouseOver","mouseUp","paste","pause","play","playing","pointerCancel","pointerDown","pointerMove","pointerOut","pointerOver","pointerUp","progress","rateChange","reset","resize","seeked","seeking","stalled","submit","suspend","timeUpdate","touchCancel","touchEnd","touchStart","volumeChange","scroll","toggle","touchMove","waiting","wheel"];function jc(r,a){LN.set(r,a),Je(a,[r])}function lae(){for(var r=0;r<AN.length;r++){var a=AN[r],d=a.toLowerCase(),p=a[0].toUpperCase()+a.slice(1);jc(d,"on"+p)}jc(RN,"onAnimationEnd"),jc(MN,"onAnimationIteration"),jc(NN,"onAnimationStart"),jc("dblclick","onDoubleClick"),jc("focusin","onFocus"),jc("focusout","onBlur"),jc(ON,"onTransitionEnd")}function uae(r,a,d,p,g,x,E){var N=LN.get(a);if(N!==void 0){var O=ts,F=a;switch(a){case"keypress":if(_l(p)===0)return;case"keydown":case"keyup":O=o2;break;case"focusin":F="focus",O=As;break;case"focusout":F="blur",O=As;break;case"beforeblur":case"afterblur":O=As;break;case"click":if(p.button===2)return;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":O=ev;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":O=Eu;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":O=u2;break;case RN:case MN:case NN:O=t2;break;case ON:O=eo;break;case"scroll":O=li;break;case"wheel":O=C6;break;case"copy":case"cut":case"paste":O=R1;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":O=s2;break}var V=(x&Zi)!==0;{var re=!V&&a==="scroll",te=pae(d,N,p.type,V,re);if(te.length>0){var ue=new O(N,F,null,p,g);r.push({event:ue,listeners:te})}}}}lae(),ae(),xf(),aae(),S6();function cae(r,a,d,p,g,x,E){uae(r,a,d,p,g,x);var N=(x&Sm)===0;N&&(ne(r,a,d,p,g),Pr(r,a,d,p,g),sae(r,a,d,p,g),p2(r,a,d,p,g))}var dv=["abort","canplay","canplaythrough","durationchange","emptied","encrypted","ended","error","loadeddata","loadedmetadata","loadstart","pause","play","playing","progress","ratechange","resize","seeked","seeking","stalled","suspend","timeupdate","volumechange","waiting"],N6=new Set(["cancel","close","invalid","load","scroll","toggle"].concat(dv));function IN(r,a,d){var p=r.type||"unknown-event";r.currentTarget=d,Zo(p,a,void 0,r),r.currentTarget=null}function dae(r,a,d){var p;if(d)for(var g=a.length-1;g>=0;g--){var x=a[g],E=x.instance,N=x.currentTarget,O=x.listener;if(E!==p&&r.isPropagationStopped())return;IN(r,O,N),p=E}else for(var F=0;F<a.length;F++){var V=a[F],re=V.instance,te=V.currentTarget,ue=V.listener;if(re!==p&&r.isPropagationStopped())return;IN(r,ue,te),p=re}}function DN(r,a){for(var d=(a&Zi)!==0,p=0;p<r.length;p++){var g=r[p],x=g.event,E=g.listeners;dae(x,E,d)}Fd()}function fae(r,a,d,p,g){var x=km(d),E=[];cae(E,r,p,d,x,a),DN(E,a)}function Cr(r,a){N6.has(r)||c('Did not expect a listenToNonDelegatedEvent() call for "%s". This is a bug in React. Please file an issue.',r);var d=!1,p=Vie(a),g=vae(r);p.has(g)||(PN(a,r,Pp,d),p.add(g))}function O6(r,a,d){N6.has(r)&&!a&&c('Did not expect a listenToNativeEvent() call for "%s" in the bubble phase. This is a bug in React. Please file an issue.',r);var p=0;a&&(p|=Zi),PN(d,r,p,a)}var y2="_reactListening"+Math.random().toString(36).slice(2);function fv(r){if(!r[y2]){r[y2]=!0,Be.forEach(function(d){d!=="selectionchange"&&(N6.has(d)||O6(d,!1,r),O6(d,!0,r))});var a=r.nodeType===ks?r:r.ownerDocument;a!==null&&(a[y2]||(a[y2]=!0,O6("selectionchange",!1,a)))}}function PN(r,a,d,p,g){var x=ga(r,a,d),E=void 0;jd&&(a==="touchstart"||a==="touchmove"||a==="wheel")&&(E=!0),r=r,p?E!==void 0?Qm(r,a,x,E):si(r,a,x):E!==void 0?Ic(r,a,x,E):mf(r,a,x)}function zN(r,a){return r===a||r.nodeType===Fr&&r.parentNode===a}function L6(r,a,d,p,g){var x=p;if(!(a&Cm)&&!(a&Pp)){var E=g;if(p!==null){var N=p;e:for(;;){if(N===null)return;var O=N.tag;if(O===y||O===S){var F=N.stateNode.containerInfo;if(zN(F,E))break;if(O===S)for(var V=N.return;V!==null;){var re=V.tag;if(re===y||re===S){var te=V.stateNode.containerInfo;if(zN(te,E))return}V=V.return}for(;F!==null;){var ue=kf(F);if(ue===null)return;var he=ue.tag;if(he===C||he===R){N=x=ue;continue e}F=F.parentNode}}N=N.return}}}_0(function(){return fae(r,a,d,x)})}function pv(r,a,d){return{instance:r,listener:a,currentTarget:d}}function pae(r,a,d,p,g,x){for(var E=a!==null?a+"Capture":null,N=p?E:a,O=[],F=r,V=null;F!==null;){var re=F,te=re.stateNode,ue=re.tag;if(ue===C&&te!==null&&(V=te,N!==null)){var he=pl(F,N);he!=null&&O.push(pv(F,he,V))}if(g)break;F=F.return}return O}function w2(r,a){for(var d=a+"Capture",p=[],g=r;g!==null;){var x=g,E=x.stateNode,N=x.tag;if(N===C&&E!==null){var O=E,F=pl(g,d);F!=null&&p.unshift(pv(g,F,O));var V=pl(g,a);V!=null&&p.push(pv(g,V,O))}g=g.return}return p}function j1(r){if(r===null)return null;do r=r.return;while(r&&r.tag!==C);return r||null}function hae(r,a){for(var d=r,p=a,g=0,x=d;x;x=j1(x))g++;for(var E=0,N=p;N;N=j1(N))E++;for(;g-E>0;)d=j1(d),g--;for(;E-g>0;)p=j1(p),E--;for(var O=g;O--;){if(d===p||p!==null&&d===p.alternate)return d;d=j1(d),p=j1(p)}return null}function jN(r,a,d,p,g){for(var x=a._reactName,E=[],N=d;N!==null&&N!==p;){var O=N,F=O.alternate,V=O.stateNode,re=O.tag;if(F!==null&&F===p)break;if(re===C&&V!==null){var te=V;if(g){var ue=pl(N,x);ue!=null&&E.unshift(pv(N,ue,te))}else if(!g){var he=pl(N,x);he!=null&&E.push(pv(N,he,te))}}N=N.return}E.length!==0&&r.push({event:a,listeners:E})}function mae(r,a,d,p,g){var x=p&&g?hae(p,g):null;p!==null&&jN(r,a,p,x,!1),g!==null&&d!==null&&jN(r,d,g,x,!0)}function vae(r,a){return r+"__bubble"}var to=!1,hv="dangerouslySetInnerHTML",b2="suppressContentEditableWarning",Fc="suppressHydrationWarning",FN="autoFocus",Cf="children",Sf="style",x2="__html",A6,C2,mv,UN,S2,HN,VN;A6={dialog:!0,webview:!0},C2=function(r,a){wm(r,a),Ip(r,a),S0(r,a,{registrationNameDependencies:Ee,possibleRegistrationNames:Ze})},HN=Xe&&!document.documentMode,mv=function(r,a,d){if(!to){var p=k2(d),g=k2(a);g!==p&&(to=!0,c("Prop `%s` did not match. Server: %s Client: %s",r,JSON.stringify(g),JSON.stringify(p)))}},UN=function(r){if(!to){to=!0;var a=[];r.forEach(function(d){a.push(d)}),c("Extra attributes from the server: %s",a)}},S2=function(r,a){a===!1?c("Expected `%s` listener to be a function, instead got `false`.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.",r,r,r):c("Expected `%s` listener to be a function, instead got a value of `%s` type.",r,typeof a)},VN=function(r,a){var d=r.namespaceURI===Cs?r.ownerDocument.createElement(r.tagName):r.ownerDocument.createElementNS(r.namespaceURI,r.tagName);return d.innerHTML=a,d.innerHTML};var gae=/\r\n?/g,yae=/\u0000|\uFFFD/g;function k2(r){Ue(r);var a=typeof r=="string"?r:""+r;return a.replace(gae,`
129
+ `).replace(yae,"")}function E2(r,a,d,p){var g=k2(a),x=k2(r);if(x!==g&&(p&&(to||(to=!0,c('Text content did not match. Server: "%s" Client: "%s"',x,g))),d&&ye))throw new Error("Text content does not match server-rendered HTML.")}function BN(r){return r.nodeType===ks?r:r.ownerDocument}function wae(){}function _2(r){r.onclick=wae}function bae(r,a,d,p,g){for(var x in p)if(p.hasOwnProperty(x)){var E=p[x];if(x===Sf)E&&Object.freeze(E),g0(a,E);else if(x===hv){var N=E?E[x2]:void 0;N!=null&&i0(a,N)}else if(x===Cf)if(typeof E=="string"){var O=r!=="textarea"||E!=="";O&&vc(a,E)}else typeof E=="number"&&vc(a,""+E);else x===b2||x===Fc||x===FN||(Ee.hasOwnProperty(x)?E!=null&&(typeof E!="function"&&S2(x,E),x==="onScroll"&&Cr("scroll",a)):E!=null&&kn(a,x,E,g))}}function xae(r,a,d,p){for(var g=0;g<a.length;g+=2){var x=a[g],E=a[g+1];x===Sf?g0(r,E):x===hv?i0(r,E):x===Cf?vc(r,E):kn(r,x,E,p)}}function Cae(r,a,d,p){var g,x=BN(d),E,N=p;if(N===Cs&&(N=fm(r)),N===Cs){if(g=dl(r,a),!g&&r!==r.toLowerCase()&&c("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",r),r==="script"){var O=x.createElement("div");O.innerHTML="<script><\/script>";var F=O.firstChild;E=O.removeChild(F)}else if(typeof a.is=="string")E=x.createElement(r,{is:a.is});else if(E=x.createElement(r),r==="select"){var V=E;a.multiple?V.multiple=!0:a.size&&(V.size=a.size)}}else E=x.createElementNS(N,r);return N===Cs&&!g&&Object.prototype.toString.call(E)==="[object HTMLUnknownElement]"&&!Et.call(A6,r)&&(A6[r]=!0,c("The tag <%s> is unrecognized in this browser. If you meant to render a React component, start its name with an uppercase letter.",r)),E}function Sae(r,a){return BN(a).createTextNode(r)}function kae(r,a,d,p){var g=dl(a,d);C2(a,d);var x;switch(a){case"dialog":Cr("cancel",r),Cr("close",r),x=d;break;case"iframe":case"object":case"embed":Cr("load",r),x=d;break;case"video":case"audio":for(var E=0;E<dv.length;E++)Cr(dv[E],r);x=d;break;case"source":Cr("error",r),x=d;break;case"img":case"image":case"link":Cr("error",r),Cr("load",r),x=d;break;case"details":Cr("toggle",r),x=d;break;case"input":ko(r,d),x=mc(r,d),Cr("invalid",r);break;case"option":xn(r,d),x=d;break;case"select":tu(r,d),x=Md(r,d),Cr("invalid",r);break;case"textarea":um(r,d),x=lm(r,d),Cr("invalid",r);break;default:x=d}switch(Lp(a,x),bae(a,r,p,x,g),a){case"input":So(r),ce(r,d,!1);break;case"textarea":So(r),r0(r);break;case"option":nr(r,d);break;case"select":om(r,d);break;default:typeof x.onClick=="function"&&_2(r);break}}function Eae(r,a,d,p,g){C2(a,p);var x=null,E,N;switch(a){case"input":E=mc(r,d),N=mc(r,p),x=[];break;case"select":E=Md(r,d),N=Md(r,p),x=[];break;case"textarea":E=lm(r,d),N=lm(r,p),x=[];break;default:E=d,N=p,typeof E.onClick!="function"&&typeof N.onClick=="function"&&_2(r);break}Lp(a,N);var O,F,V=null;for(O in E)if(!(N.hasOwnProperty(O)||!E.hasOwnProperty(O)||E[O]==null))if(O===Sf){var re=E[O];for(F in re)re.hasOwnProperty(F)&&(V||(V={}),V[F]="")}else O===hv||O===Cf||O===b2||O===Fc||O===FN||(Ee.hasOwnProperty(O)?x||(x=[]):(x=x||[]).push(O,null));for(O in N){var te=N[O],ue=E!=null?E[O]:void 0;if(!(!N.hasOwnProperty(O)||te===ue||te==null&&ue==null))if(O===Sf)if(te&&Object.freeze(te),ue){for(F in ue)ue.hasOwnProperty(F)&&(!te||!te.hasOwnProperty(F))&&(V||(V={}),V[F]="");for(F in te)te.hasOwnProperty(F)&&ue[F]!==te[F]&&(V||(V={}),V[F]=te[F])}else V||(x||(x=[]),x.push(O,V)),V=te;else if(O===hv){var he=te?te[x2]:void 0,xe=ue?ue[x2]:void 0;he!=null&&xe!==he&&(x=x||[]).push(O,he)}else O===Cf?(typeof te=="string"||typeof te=="number")&&(x=x||[]).push(O,""+te):O===b2||O===Fc||(Ee.hasOwnProperty(O)?(te!=null&&(typeof te!="function"&&S2(O,te),O==="onScroll"&&Cr("scroll",r)),!x&&ue!==te&&(x=[])):(x=x||[]).push(O,te))}return V&&(o6(V,N[Sf]),(x=x||[]).push(Sf,V)),x}function _ae(r,a,d,p,g){d==="input"&&g.type==="radio"&&g.name!=null&&A(r,g);var x=dl(d,p),E=dl(d,g);switch(xae(r,a,x,E),d){case"input":Y(r,g);break;case"textarea":n0(r,g);break;case"select":Mp(r,g);break}}function Tae(r){{var a=r.toLowerCase();return Id.hasOwnProperty(a)&&Id[a]||null}}function Rae(r,a,d,p,g,x,E){var N,O;switch(N=dl(a,d),C2(a,d),a){case"dialog":Cr("cancel",r),Cr("close",r);break;case"iframe":case"object":case"embed":Cr("load",r);break;case"video":case"audio":for(var F=0;F<dv.length;F++)Cr(dv[F],r);break;case"source":Cr("error",r);break;case"img":case"image":case"link":Cr("error",r),Cr("load",r);break;case"details":Cr("toggle",r);break;case"input":ko(r,d),Cr("invalid",r);break;case"option":xn(r,d);break;case"select":tu(r,d),Cr("invalid",r);break;case"textarea":um(r,d),Cr("invalid",r);break}Lp(a,d);{O=new Set;for(var V=r.attributes,re=0;re<V.length;re++){var te=V[re].name.toLowerCase();switch(te){case"value":break;case"checked":break;case"selected":break;default:O.add(V[re].name)}}}var ue=null;for(var he in d)if(d.hasOwnProperty(he)){var xe=d[he];if(he===Cf)typeof xe=="string"?r.textContent!==xe&&(d[Fc]!==!0&&E2(r.textContent,xe,x,E),ue=[Cf,xe]):typeof xe=="number"&&r.textContent!==""+xe&&(d[Fc]!==!0&&E2(r.textContent,xe,x,E),ue=[Cf,""+xe]);else if(Ee.hasOwnProperty(he))xe!=null&&(typeof xe!="function"&&S2(he,xe),he==="onScroll"&&Cr("scroll",r));else if(E&&typeof N=="boolean"){var et=void 0,Lt=cn(he);if(d[Fc]!==!0){if(!(he===b2||he===Fc||he==="value"||he==="checked"||he==="selected")){if(he===hv){var bt=r.innerHTML,wn=xe?xe[x2]:void 0;if(wn!=null){var pn=VN(r,wn);pn!==bt&&mv(he,bt,pn)}}else if(he===Sf){if(O.delete(he),HN){var ie=a6(xe);et=r.getAttribute("style"),ie!==et&&mv(he,et,ie)}}else if(N&&!K)O.delete(he.toLowerCase()),et=_t(r,he,xe),xe!==et&&mv(he,et,xe);else if(!sn(he,Lt,N)&&!Kn(he,xe,Lt,N)){var Ce=!1;if(Lt!==null)O.delete(Lt.attributeName),et=go(r,he,xe,Lt);else{var oe=p;if(oe===Cs&&(oe=fm(a)),oe===Cs)O.delete(he.toLowerCase());else{var je=Tae(he);je!==null&&je!==he&&(Ce=!0,O.delete(je)),O.delete(he)}et=_t(r,he,xe)}var at=K;!at&&xe!==et&&!Ce&&mv(he,et,xe)}}}}}switch(E&&O.size>0&&d[Fc]!==!0&&UN(O),a){case"input":So(r),ce(r,d,!0);break;case"textarea":So(r),r0(r);break;case"select":case"option":break;default:typeof d.onClick=="function"&&_2(r);break}return ue}function Mae(r,a,d){var p=r.nodeValue!==a;return p}function I6(r,a){{if(to)return;to=!0,c("Did not expect server HTML to contain a <%s> in <%s>.",a.nodeName.toLowerCase(),r.nodeName.toLowerCase())}}function D6(r,a){{if(to)return;to=!0,c('Did not expect server HTML to contain the text node "%s" in <%s>.',a.nodeValue,r.nodeName.toLowerCase())}}function P6(r,a,d){{if(to)return;to=!0,c("Expected server HTML to contain a matching <%s> in <%s>.",a,r.nodeName.toLowerCase())}}function z6(r,a){{if(a===""||to)return;to=!0,c('Expected server HTML to contain a matching text node for "%s" in <%s>.',a,r.nodeName.toLowerCase())}}function Nae(r,a,d){switch(a){case"input":we(r,d);return;case"textarea":e6(r,d);return;case"select":sm(r,d);return}}var vv=function(){},gv=function(){};{var Oae=["address","applet","area","article","aside","base","basefont","bgsound","blockquote","body","br","button","caption","center","col","colgroup","dd","details","dir","div","dl","dt","embed","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","iframe","img","input","isindex","li","link","listing","main","marquee","menu","menuitem","meta","nav","noembed","noframes","noscript","object","ol","p","param","plaintext","pre","script","section","select","source","style","summary","table","tbody","td","template","textarea","tfoot","th","thead","title","tr","track","ul","wbr","xmp"],$N=["applet","caption","html","table","td","th","marquee","object","template","foreignObject","desc","title"],Lae=$N.concat(["button"]),Aae=["dd","dt","li","option","optgroup","p","rp","rt"],ZN={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null};gv=function(r,a){var d=en({},r||ZN),p={tag:a};return $N.indexOf(a)!==-1&&(d.aTagInScope=null,d.buttonTagInScope=null,d.nobrTagInScope=null),Lae.indexOf(a)!==-1&&(d.pTagInButtonScope=null),Oae.indexOf(a)!==-1&&a!=="address"&&a!=="div"&&a!=="p"&&(d.listItemTagAutoclosing=null,d.dlItemTagAutoclosing=null),d.current=p,a==="form"&&(d.formTag=p),a==="a"&&(d.aTagInScope=p),a==="button"&&(d.buttonTagInScope=p),a==="nobr"&&(d.nobrTagInScope=p),a==="p"&&(d.pTagInButtonScope=p),a==="li"&&(d.listItemTagAutoclosing=p),(a==="dd"||a==="dt")&&(d.dlItemTagAutoclosing=p),d};var Iae=function(r,a){switch(a){case"select":return r==="option"||r==="optgroup"||r==="#text";case"optgroup":return r==="option"||r==="#text";case"option":return r==="#text";case"tr":return r==="th"||r==="td"||r==="style"||r==="script"||r==="template";case"tbody":case"thead":case"tfoot":return r==="tr"||r==="style"||r==="script"||r==="template";case"colgroup":return r==="col"||r==="template";case"table":return r==="caption"||r==="colgroup"||r==="tbody"||r==="tfoot"||r==="thead"||r==="style"||r==="script"||r==="template";case"head":return r==="base"||r==="basefont"||r==="bgsound"||r==="link"||r==="meta"||r==="title"||r==="noscript"||r==="noframes"||r==="style"||r==="script"||r==="template";case"html":return r==="head"||r==="body"||r==="frameset";case"frameset":return r==="frame";case"#document":return r==="html"}switch(r){case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return a!=="h1"&&a!=="h2"&&a!=="h3"&&a!=="h4"&&a!=="h5"&&a!=="h6";case"rp":case"rt":return Aae.indexOf(a)===-1;case"body":case"caption":case"col":case"colgroup":case"frameset":case"frame":case"head":case"html":case"tbody":case"td":case"tfoot":case"th":case"thead":case"tr":return a==null}return!0},Dae=function(r,a){switch(r){case"address":case"article":case"aside":case"blockquote":case"center":case"details":case"dialog":case"dir":case"div":case"dl":case"fieldset":case"figcaption":case"figure":case"footer":case"header":case"hgroup":case"main":case"menu":case"nav":case"ol":case"p":case"section":case"summary":case"ul":case"pre":case"listing":case"table":case"hr":case"xmp":case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return a.pTagInButtonScope;case"form":return a.formTag||a.pTagInButtonScope;case"li":return a.listItemTagAutoclosing;case"dd":case"dt":return a.dlItemTagAutoclosing;case"button":return a.buttonTagInScope;case"a":return a.aTagInScope;case"nobr":return a.nobrTagInScope}return null},WN={};vv=function(r,a,d){d=d||ZN;var p=d.current,g=p&&p.tag;a!=null&&(r!=null&&c("validateDOMNesting: when childText is passed, childTag should be null"),r="#text");var x=Iae(r,g)?null:p,E=x?null:Dae(r,d),N=x||E;if(N){var O=N.tag,F=!!x+"|"+r+"|"+O;if(!WN[F]){WN[F]=!0;var V=r,re="";if(r==="#text"?/\S/.test(a)?V="Text nodes":(V="Whitespace text nodes",re=" Make sure you don't have any extra whitespace between tags on each line of your source code."):V="<"+r+">",x){var te="";O==="table"&&r==="tr"&&(te+=" Add a <tbody>, <thead> or <tfoot> to your code to match the DOM tree generated by the browser."),c("validateDOMNesting(...): %s cannot appear as a child of <%s>.%s%s",V,O,re,te)}else c("validateDOMNesting(...): %s cannot appear as a descendant of <%s>.",V,O)}}}}var T2="suppressHydrationWarning",R2="$",M2="/$",yv="$?",wv="$!",Pae="style",j6=null,F6=null;function zae(r){var a,d,p=r.nodeType;switch(p){case ks:case hm:{a=p===ks?"#document":"#fragment";var g=r.documentElement;d=g?g.namespaceURI:pm(null,"");break}default:{var x=p===Fr?r.parentNode:r,E=x.namespaceURI||null;a=x.tagName,d=pm(E,a);break}}{var N=a.toLowerCase(),O=gv(null,N);return{namespace:d,ancestorInfo:O}}}function jae(r,a,d){{var p=r,g=pm(p.namespace,a),x=gv(p.ancestorInfo,a);return{namespace:g,ancestorInfo:x}}}function fce(r){return r}function Fae(r){j6=Zr(),F6=Qre();var a=null;return ea(!1),a}function Uae(r){eae(F6),ea(j6),j6=null,F6=null}function Hae(r,a,d,p,g){var x;{var E=p;if(vv(r,null,E.ancestorInfo),typeof a.children=="string"||typeof a.children=="number"){var N=""+a.children,O=gv(E.ancestorInfo,r);vv(null,N,O)}x=E.namespace}var F=Cae(r,a,d,x);return Cv(g,F),q6(F,a),F}function Vae(r,a){r.appendChild(a)}function Bae(r,a,d,p,g){switch(kae(r,a,d,p),a){case"button":case"input":case"select":case"textarea":return!!d.autoFocus;case"img":return!0;default:return!1}}function $ae(r,a,d,p,g,x){{var E=x;if(typeof p.children!=typeof d.children&&(typeof p.children=="string"||typeof p.children=="number")){var N=""+p.children,O=gv(E.ancestorInfo,a);vv(null,N,O)}}return Eae(r,a,d,p)}function U6(r,a){return r==="textarea"||r==="noscript"||typeof a.children=="string"||typeof a.children=="number"||typeof a.dangerouslySetInnerHTML=="object"&&a.dangerouslySetInnerHTML!==null&&a.dangerouslySetInnerHTML.__html!=null}function Zae(r,a,d,p){{var g=d;vv(null,r,g.ancestorInfo)}var x=Sae(r,a);return Cv(p,x),x}function Wae(){var r=window.event;return r===void 0?Ki:E1(r.type)}var H6=typeof setTimeout=="function"?setTimeout:void 0,qae=typeof clearTimeout=="function"?clearTimeout:void 0,V6=-1,qN=typeof Promise=="function"?Promise:void 0,Gae=typeof queueMicrotask=="function"?queueMicrotask:typeof qN!="undefined"?function(r){return qN.resolve(null).then(r).catch(Yae)}:H6;function Yae(r){setTimeout(function(){throw r})}function Jae(r,a,d,p){switch(a){case"button":case"input":case"select":case"textarea":d.autoFocus&&r.focus();return;case"img":{d.src&&(r.src=d.src);return}}}function Kae(r,a,d,p,g,x){_ae(r,a,d,p,g),q6(r,g)}function GN(r){vc(r,"")}function Xae(r,a,d){r.nodeValue=d}function Qae(r,a){r.appendChild(a)}function eie(r,a){var d;r.nodeType===Fr?(d=r.parentNode,d.insertBefore(a,r)):(d=r,d.appendChild(a));var p=r._reactRootContainer;p==null&&d.onclick===null&&_2(d)}function tie(r,a,d){r.insertBefore(a,d)}function nie(r,a,d){r.nodeType===Fr?r.parentNode.insertBefore(a,d):r.insertBefore(a,d)}function rie(r,a){r.removeChild(a)}function aie(r,a){r.nodeType===Fr?r.parentNode.removeChild(a):r.removeChild(a)}function B6(r,a){var d=a,p=0;do{var g=d.nextSibling;if(r.removeChild(d),g&&g.nodeType===Fr){var x=g.data;if(x===M2)if(p===0){r.removeChild(g),Cu(a);return}else p--;else(x===R2||x===yv||x===wv)&&p++}d=g}while(d);Cu(a)}function iie(r,a){r.nodeType===Fr?B6(r.parentNode,a):r.nodeType===Xa&&B6(r,a),Cu(r)}function oie(r){r=r;var a=r.style;typeof a.setProperty=="function"?a.setProperty("display","none","important"):a.display="none"}function sie(r){r.nodeValue=""}function lie(r,a){r=r;var d=a[Pae],p=d!=null&&d.hasOwnProperty("display")?d.display:null;r.style.display=Op("display",p)}function uie(r,a){r.nodeValue=a}function cie(r){r.nodeType===Xa?r.textContent="":r.nodeType===ks&&r.documentElement&&r.removeChild(r.documentElement)}function die(r,a,d){return r.nodeType!==Xa||a.toLowerCase()!==r.nodeName.toLowerCase()?null:r}function fie(r,a){return a===""||r.nodeType!==Ss?null:r}function pie(r){return r.nodeType!==Fr?null:r}function YN(r){return r.data===yv}function $6(r){return r.data===wv}function hie(r){var a=r.nextSibling&&r.nextSibling.dataset,d,p,g;return a&&(d=a.dgst,p=a.msg,g=a.stck),{message:p,digest:d,stack:g}}function mie(r,a){r._reactRetry=a}function N2(r){for(;r!=null;r=r.nextSibling){var a=r.nodeType;if(a===Xa||a===Ss)break;if(a===Fr){var d=r.data;if(d===R2||d===wv||d===yv)break;if(d===M2)return null}}return r}function bv(r){return N2(r.nextSibling)}function vie(r){return N2(r.firstChild)}function gie(r){return N2(r.firstChild)}function yie(r){return N2(r.nextSibling)}function wie(r,a,d,p,g,x,E){Cv(x,r),q6(r,d);var N;{var O=g;N=O.namespace}var F=(x.mode&an)!==Rt;return Rae(r,a,d,N,p,F,E)}function bie(r,a,d,p){return Cv(d,r),d.mode&an,Mae(r,a)}function xie(r,a){Cv(a,r)}function Cie(r){for(var a=r.nextSibling,d=0;a;){if(a.nodeType===Fr){var p=a.data;if(p===M2){if(d===0)return bv(a);d--}else(p===R2||p===wv||p===yv)&&d++}a=a.nextSibling}return null}function JN(r){for(var a=r.previousSibling,d=0;a;){if(a.nodeType===Fr){var p=a.data;if(p===R2||p===wv||p===yv){if(d===0)return a;d--}else p===M2&&d++}a=a.previousSibling}return null}function Sie(r){Cu(r)}function kie(r){Cu(r)}function Eie(r){return r!=="head"&&r!=="body"}function _ie(r,a,d,p){var g=!0;E2(a.nodeValue,d,p,g)}function Tie(r,a,d,p,g,x){if(a[T2]!==!0){var E=!0;E2(p.nodeValue,g,x,E)}}function Rie(r,a){a.nodeType===Xa?I6(r,a):a.nodeType===Fr||D6(r,a)}function Mie(r,a){{var d=r.parentNode;d!==null&&(a.nodeType===Xa?I6(d,a):a.nodeType===Fr||D6(d,a))}}function Nie(r,a,d,p,g){(g||a[T2]!==!0)&&(p.nodeType===Xa?I6(d,p):p.nodeType===Fr||D6(d,p))}function Oie(r,a,d){P6(r,a)}function Lie(r,a){z6(r,a)}function Aie(r,a,d){{var p=r.parentNode;p!==null&&P6(p,a)}}function Iie(r,a){{var d=r.parentNode;d!==null&&z6(d,a)}}function Die(r,a,d,p,g,x){(x||a[T2]!==!0)&&P6(d,p)}function Pie(r,a,d,p,g){(g||a[T2]!==!0)&&z6(d,p)}function zie(r){c("An error occurred during hydration. The server HTML was replaced with client content in <%s>.",r.nodeName.toLowerCase())}function jie(r){fv(r)}var F1=Math.random().toString(36).slice(2),U1="__reactFiber$"+F1,Z6="__reactProps$"+F1,xv="__reactContainer$"+F1,W6="__reactEvents$"+F1,Fie="__reactListeners$"+F1,Uie="__reactHandles$"+F1;function Hie(r){delete r[U1],delete r[Z6],delete r[W6],delete r[Fie],delete r[Uie]}function Cv(r,a){a[U1]=r}function O2(r,a){a[xv]=r}function KN(r){r[xv]=null}function Sv(r){return!!r[xv]}function kf(r){var a=r[U1];if(a)return a;for(var d=r.parentNode;d;){if(a=d[xv]||d[U1],a){var p=a.alternate;if(a.child!==null||p!==null&&p.child!==null)for(var g=JN(r);g!==null;){var x=g[U1];if(x)return x;g=JN(g)}return a}r=d,d=r.parentNode}return null}function Uc(r){var a=r[U1]||r[xv];return a&&(a.tag===C||a.tag===R||a.tag===Z||a.tag===y)?a:null}function H1(r){if(r.tag===C||r.tag===R)return r.stateNode;throw new Error("getNodeFromInstance: Invalid argument.")}function L2(r){return r[Z6]||null}function q6(r,a){r[Z6]=a}function Vie(r){var a=r[W6];return a===void 0&&(a=r[W6]=new Set),a}var XN={},QN=n.ReactDebugCurrentFrame;function A2(r){if(r){var a=r._owner,d=ws(r.type,r._source,a?a.type:null);QN.setExtraStackFrame(d)}else QN.setExtraStackFrame(null)}function Ds(r,a,d,p,g){{var x=Function.call.bind(Et);for(var E in r)if(x(r,E)){var N=void 0;try{if(typeof r[E]!="function"){var O=Error((p||"React class")+": "+d+" type `"+E+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof r[E]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw O.name="Invariant Violation",O}N=r[E](a,E,p,d,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(F){N=F}N&&!(N instanceof Error)&&(A2(g),c("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",p||"React class",d,E,typeof N),A2(null)),N instanceof Error&&!(N.message in XN)&&(XN[N.message]=!0,A2(g),c("Failed %s type: %s",d,N.message),A2(null))}}}var G6=[],I2;I2=[];var Ru=-1;function Hc(r){return{current:r}}function ui(r,a){if(Ru<0){c("Unexpected pop.");return}a!==I2[Ru]&&c("Unexpected Fiber popped."),r.current=G6[Ru],G6[Ru]=null,I2[Ru]=null,Ru--}function ci(r,a,d){Ru++,G6[Ru]=r.current,I2[Ru]=d,r.current=a}var Y6;Y6={};var Oo={};Object.freeze(Oo);var Mu=Hc(Oo),Ol=Hc(!1),J6=Oo;function V1(r,a,d){return d&&Ll(a)?J6:Mu.current}function eO(r,a,d){{var p=r.stateNode;p.__reactInternalMemoizedUnmaskedChildContext=a,p.__reactInternalMemoizedMaskedChildContext=d}}function B1(r,a){{var d=r.type,p=d.contextTypes;if(!p)return Oo;var g=r.stateNode;if(g&&g.__reactInternalMemoizedUnmaskedChildContext===a)return g.__reactInternalMemoizedMaskedChildContext;var x={};for(var E in p)x[E]=a[E];{var N=Ht(r)||"Unknown";Ds(p,x,"context",N)}return g&&eO(r,a,x),x}}function D2(){return Ol.current}function Ll(r){{var a=r.childContextTypes;return a!=null}}function P2(r){ui(Ol,r),ui(Mu,r)}function K6(r){ui(Ol,r),ui(Mu,r)}function tO(r,a,d){{if(Mu.current!==Oo)throw new Error("Unexpected context found on stack. This error is likely caused by a bug in React. Please file an issue.");ci(Mu,a,r),ci(Ol,d,r)}}function nO(r,a,d){{var p=r.stateNode,g=a.childContextTypes;if(typeof p.getChildContext!="function"){{var x=Ht(r)||"Unknown";Y6[x]||(Y6[x]=!0,c("%s.childContextTypes is specified but there is no getChildContext() method on the instance. You can either define getChildContext() on %s or remove childContextTypes from it.",x,x))}return d}var E=p.getChildContext();for(var N in E)if(!(N in g))throw new Error((Ht(r)||"Unknown")+'.getChildContext(): key "'+N+'" is not defined in childContextTypes.');{var O=Ht(r)||"Unknown";Ds(g,E,"child context",O)}return en({},d,E)}}function z2(r){{var a=r.stateNode,d=a&&a.__reactInternalMemoizedMergedChildContext||Oo;return J6=Mu.current,ci(Mu,d,r),ci(Ol,Ol.current,r),!0}}function rO(r,a,d){{var p=r.stateNode;if(!p)throw new Error("Expected to have an instance by this point. This error is likely caused by a bug in React. Please file an issue.");if(d){var g=nO(r,a,J6);p.__reactInternalMemoizedMergedChildContext=g,ui(Ol,r),ui(Mu,r),ci(Mu,g,r),ci(Ol,d,r)}else ui(Ol,r),ci(Ol,d,r)}}function Bie(r){{if(!lu(r)||r.tag!==v)throw new Error("Expected subtree parent to be a mounted class component. This error is likely caused by a bug in React. Please file an issue.");var a=r;do{switch(a.tag){case y:return a.stateNode.context;case v:{var d=a.type;if(Ll(d))return a.stateNode.__reactInternalMemoizedMergedChildContext;break}}a=a.return}while(a!==null);throw new Error("Found unexpected detached subtree parent. This error is likely caused by a bug in React. Please file an issue.")}}var Vc=0,j2=1,Nu=null,X6=!1,Q6=!1;function aO(r){Nu===null?Nu=[r]:Nu.push(r)}function $ie(r){X6=!0,aO(r)}function iO(){X6&&Bc()}function Bc(){if(!Q6&&Nu!==null){Q6=!0;var r=0,a=Qi();try{var d=!0,p=Nu;for($r(Pa);r<p.length;r++){var g=p[r];do g=g(d);while(g!==null)}Nu=null,X6=!1}catch(x){throw Nu!==null&&(Nu=Nu.slice(r+1)),_m(Vd,Bc),x}finally{$r(a),Q6=!1}}return null}var $1=[],Z1=0,F2=null,U2=0,ns=[],rs=0,Ef=null,Ou=1,Lu="";function Zie(r){return Tf(),(r.flags&Wo)!==Tt}function Wie(r){return Tf(),U2}function qie(){var r=Lu,a=Ou,d=a&~Gie(a);return d.toString(32)+r}function _f(r,a){Tf(),$1[Z1++]=U2,$1[Z1++]=F2,F2=r,U2=a}function oO(r,a,d){Tf(),ns[rs++]=Ou,ns[rs++]=Lu,ns[rs++]=Ef,Ef=r;var p=Ou,g=Lu,x=H2(p)-1,E=p&~(1<<x),N=d+1,O=H2(a)+x;if(O>30){var F=x-x%5,V=(1<<F)-1,re=(E&V).toString(32),te=E>>F,ue=x-F,he=H2(a)+ue,xe=N<<ue,et=xe|te,Lt=re+g;Ou=1<<he|et,Lu=Lt}else{var bt=N<<x,wn=bt|E,pn=g;Ou=1<<O|wn,Lu=pn}}function e8(r){Tf();var a=r.return;if(a!==null){var d=1,p=0;_f(r,d),oO(r,d,p)}}function H2(r){return 32-Vr(r)}function Gie(r){return 1<<H2(r)-1}function t8(r){for(;r===F2;)F2=$1[--Z1],$1[Z1]=null,U2=$1[--Z1],$1[Z1]=null;for(;r===Ef;)Ef=ns[--rs],ns[rs]=null,Lu=ns[--rs],ns[rs]=null,Ou=ns[--rs],ns[rs]=null}function Yie(){return Tf(),Ef!==null?{id:Ou,overflow:Lu}:null}function Jie(r,a){Tf(),ns[rs++]=Ou,ns[rs++]=Lu,ns[rs++]=Ef,Ou=a.id,Lu=a.overflow,Ef=r}function Tf(){Ha()||c("Expected to be hydrating. This is a bug in React. Please file an issue.")}var Ua=null,as=null,Ps=!1,Rf=!1,$c=null;function Kie(){Ps&&c("We should not be hydrating here. This is a bug in React. Please file a bug.")}function sO(){Rf=!0}function Xie(){return Rf}function Qie(r){var a=r.stateNode.containerInfo;return as=gie(a),Ua=r,Ps=!0,$c=null,Rf=!1,!0}function eoe(r,a,d){return as=yie(a),Ua=r,Ps=!0,$c=null,Rf=!1,d!==null&&Jie(r,d),!0}function lO(r,a){switch(r.tag){case y:{Rie(r.stateNode.containerInfo,a);break}case C:{var d=(r.mode&an)!==Rt;Nie(r.type,r.memoizedProps,r.stateNode,a,d);break}case Z:{var p=r.memoizedState;p.dehydrated!==null&&Mie(p.dehydrated,a);break}}}function uO(r,a){lO(r,a);var d=aue();d.stateNode=a,d.return=r;var p=r.deletions;p===null?(r.deletions=[d],r.flags|=Wi):p.push(d)}function n8(r,a){{if(Rf)return;switch(r.tag){case y:{var d=r.stateNode.containerInfo;switch(a.tag){case C:var p=a.type;a.pendingProps,Oie(d,p);break;case R:var g=a.pendingProps;Lie(d,g);break}break}case C:{var x=r.type,E=r.memoizedProps,N=r.stateNode;switch(a.tag){case C:{var O=a.type,F=a.pendingProps,V=(r.mode&an)!==Rt;Die(x,E,N,O,F,V);break}case R:{var re=a.pendingProps,te=(r.mode&an)!==Rt;Pie(x,E,N,re,te);break}}break}case Z:{var ue=r.memoizedState,he=ue.dehydrated;if(he!==null)switch(a.tag){case C:var xe=a.type;a.pendingProps,Aie(he,xe);break;case R:var et=a.pendingProps;Iie(he,et);break}break}default:return}}}function cO(r,a){a.flags=a.flags&~ei|wr,n8(r,a)}function dO(r,a){switch(r.tag){case C:{var d=r.type;r.pendingProps;var p=die(a,d);return p!==null?(r.stateNode=p,Ua=r,as=vie(p),!0):!1}case R:{var g=r.pendingProps,x=fie(a,g);return x!==null?(r.stateNode=x,Ua=r,as=null,!0):!1}case Z:{var E=pie(a);if(E!==null){var N={dehydrated:E,treeContext:Yie(),retryLane:ai};r.memoizedState=N;var O=iue(E);return O.return=r,r.child=O,Ua=r,as=null,!0}return!1}default:return!1}}function r8(r){return(r.mode&an)!==Rt&&(r.flags&St)===Tt}function a8(r){throw new Error("Hydration failed because the initial UI does not match what was rendered on the server.")}function i8(r){if(Ps){var a=as;if(!a){r8(r)&&(n8(Ua,r),a8()),cO(Ua,r),Ps=!1,Ua=r;return}var d=a;if(!dO(r,a)){r8(r)&&(n8(Ua,r),a8()),a=bv(d);var p=Ua;if(!a||!dO(r,a)){cO(Ua,r),Ps=!1,Ua=r;return}uO(p,d)}}}function toe(r,a,d){var p=r.stateNode,g=!Rf,x=wie(p,r.type,r.memoizedProps,a,d,r,g);return r.updateQueue=x,x!==null}function noe(r){var a=r.stateNode,d=r.memoizedProps,p=bie(a,d,r);if(p){var g=Ua;if(g!==null)switch(g.tag){case y:{var x=g.stateNode.containerInfo,E=(g.mode&an)!==Rt;_ie(x,a,d,E);break}case C:{var N=g.type,O=g.memoizedProps,F=g.stateNode,V=(g.mode&an)!==Rt;Tie(N,O,F,a,d,V);break}}}return p}function roe(r){var a=r.memoizedState,d=a!==null?a.dehydrated:null;if(!d)throw new Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");xie(d,r)}function aoe(r){var a=r.memoizedState,d=a!==null?a.dehydrated:null;if(!d)throw new Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");return Cie(d)}function fO(r){for(var a=r.return;a!==null&&a.tag!==C&&a.tag!==y&&a.tag!==Z;)a=a.return;Ua=a}function V2(r){if(r!==Ua)return!1;if(!Ps)return fO(r),Ps=!0,!1;if(r.tag!==y&&(r.tag!==C||Eie(r.type)&&!U6(r.type,r.memoizedProps))){var a=as;if(a)if(r8(r))pO(r),a8();else for(;a;)uO(r,a),a=bv(a)}return fO(r),r.tag===Z?as=aoe(r):as=Ua?bv(r.stateNode):null,!0}function ioe(){return Ps&&as!==null}function pO(r){for(var a=as;a;)lO(r,a),a=bv(a)}function W1(){Ua=null,as=null,Ps=!1,Rf=!1}function hO(){$c!==null&&(sA($c),$c=null)}function Ha(){return Ps}function o8(r){$c===null?$c=[r]:$c.push(r)}var ooe=n.ReactCurrentBatchConfig,soe=null;function loe(){return ooe.transition}var zs={recordUnsafeLifecycleWarnings:function(r,a){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(r,a){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}};{var uoe=function(r){for(var a=null,d=r;d!==null;)d.mode&Wn&&(a=d),d=d.return;return a},Mf=function(r){var a=[];return r.forEach(function(d){a.push(d)}),a.sort().join(", ")},kv=[],Ev=[],_v=[],Tv=[],Rv=[],Mv=[],Nf=new Set;zs.recordUnsafeLifecycleWarnings=function(r,a){Nf.has(r.type)||(typeof a.componentWillMount=="function"&&a.componentWillMount.__suppressDeprecationWarning!==!0&&kv.push(r),r.mode&Wn&&typeof a.UNSAFE_componentWillMount=="function"&&Ev.push(r),typeof a.componentWillReceiveProps=="function"&&a.componentWillReceiveProps.__suppressDeprecationWarning!==!0&&_v.push(r),r.mode&Wn&&typeof a.UNSAFE_componentWillReceiveProps=="function"&&Tv.push(r),typeof a.componentWillUpdate=="function"&&a.componentWillUpdate.__suppressDeprecationWarning!==!0&&Rv.push(r),r.mode&Wn&&typeof a.UNSAFE_componentWillUpdate=="function"&&Mv.push(r))},zs.flushPendingUnsafeLifecycleWarnings=function(){var r=new Set;kv.length>0&&(kv.forEach(function(te){r.add(Ht(te)||"Component"),Nf.add(te.type)}),kv=[]);var a=new Set;Ev.length>0&&(Ev.forEach(function(te){a.add(Ht(te)||"Component"),Nf.add(te.type)}),Ev=[]);var d=new Set;_v.length>0&&(_v.forEach(function(te){d.add(Ht(te)||"Component"),Nf.add(te.type)}),_v=[]);var p=new Set;Tv.length>0&&(Tv.forEach(function(te){p.add(Ht(te)||"Component"),Nf.add(te.type)}),Tv=[]);var g=new Set;Rv.length>0&&(Rv.forEach(function(te){g.add(Ht(te)||"Component"),Nf.add(te.type)}),Rv=[]);var x=new Set;if(Mv.length>0&&(Mv.forEach(function(te){x.add(Ht(te)||"Component"),Nf.add(te.type)}),Mv=[]),a.size>0){var E=Mf(a);c(`Using UNSAFE_componentWillMount in strict mode is not recommended and may indicate bugs in your code. See https://reactjs.org/link/unsafe-component-lifecycles for details.
130
+
131
+ * Move code with side effects to componentDidMount, and set initial state in the constructor.
132
+
133
+ Please update the following components: %s`,E)}if(p.size>0){var N=Mf(p);c(`Using UNSAFE_componentWillReceiveProps in strict mode is not recommended and may indicate bugs in your code. See https://reactjs.org/link/unsafe-component-lifecycles for details.
134
+
135
+ * Move data fetching code or side effects to componentDidUpdate.
136
+ * If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://reactjs.org/link/derived-state
137
+
138
+ Please update the following components: %s`,N)}if(x.size>0){var O=Mf(x);c(`Using UNSAFE_componentWillUpdate in strict mode is not recommended and may indicate bugs in your code. See https://reactjs.org/link/unsafe-component-lifecycles for details.
139
+
140
+ * Move data fetching code or side effects to componentDidUpdate.
141
+
142
+ Please update the following components: %s`,O)}if(r.size>0){var F=Mf(r);l(`componentWillMount has been renamed, and is not recommended for use. See https://reactjs.org/link/unsafe-component-lifecycles for details.
143
+
144
+ * Move code with side effects to componentDidMount, and set initial state in the constructor.
145
+ * Rename componentWillMount to UNSAFE_componentWillMount to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
146
+
147
+ Please update the following components: %s`,F)}if(d.size>0){var V=Mf(d);l(`componentWillReceiveProps has been renamed, and is not recommended for use. See https://reactjs.org/link/unsafe-component-lifecycles for details.
148
+
149
+ * Move data fetching code or side effects to componentDidUpdate.
150
+ * If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://reactjs.org/link/derived-state
151
+ * Rename componentWillReceiveProps to UNSAFE_componentWillReceiveProps to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
152
+
153
+ Please update the following components: %s`,V)}if(g.size>0){var re=Mf(g);l(`componentWillUpdate has been renamed, and is not recommended for use. See https://reactjs.org/link/unsafe-component-lifecycles for details.
154
+
155
+ * Move data fetching code or side effects to componentDidUpdate.
156
+ * Rename componentWillUpdate to UNSAFE_componentWillUpdate to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
157
+
158
+ Please update the following components: %s`,re)}};var B2=new Map,mO=new Set;zs.recordLegacyContextWarning=function(r,a){var d=uoe(r);if(d===null){c("Expected to find a StrictMode component in a strict mode tree. This error is likely caused by a bug in React. Please file an issue.");return}if(!mO.has(r.type)){var p=B2.get(d);(r.type.contextTypes!=null||r.type.childContextTypes!=null||a!==null&&typeof a.getChildContext=="function")&&(p===void 0&&(p=[],B2.set(d,p)),p.push(r))}},zs.flushLegacyContextWarning=function(){B2.forEach(function(r,a){if(r.length!==0){var d=r[0],p=new Set;r.forEach(function(x){p.add(Ht(x)||"Component"),mO.add(x.type)});var g=Mf(p);try{Bn(d),c(`Legacy context API has been detected within a strict-mode tree.
159
+
160
+ The old API will be supported in all 16.x releases, but applications using it should migrate to the new version.
161
+
162
+ Please update the following components: %s
163
+
164
+ Learn more about this warning here: https://reactjs.org/link/legacy-context`,g)}finally{or()}}})},zs.discardPendingWarnings=function(){kv=[],Ev=[],_v=[],Tv=[],Rv=[],Mv=[],B2=new Map}}var s8,l8,u8,c8,d8,vO=function(r,a){};s8=!1,l8=!1,u8={},c8={},d8={},vO=function(r,a){if(!(r===null||typeof r!="object")&&!(!r._store||r._store.validated||r.key!=null)){if(typeof r._store!="object")throw new Error("React Component in warnForMissingKey should have a _store. This error is likely caused by a bug in React. Please file an issue.");r._store.validated=!0;var d=Ht(a)||"Component";c8[d]||(c8[d]=!0,c('Each child in a list should have a unique "key" prop. See https://reactjs.org/link/warning-keys for more information.'))}};function coe(r){return r.prototype&&r.prototype.isReactComponent}function Nv(r,a,d){var p=d.ref;if(p!==null&&typeof p!="function"&&typeof p!="object"){if((r.mode&Wn||fe)&&!(d._owner&&d._self&&d._owner.stateNode!==d._self)&&!(d._owner&&d._owner.tag!==v)&&!(typeof d.type=="function"&&!coe(d.type))&&d._owner){var g=Ht(r)||"Component";u8[g]||(c('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. We recommend using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',g,p),u8[g]=!0)}if(d._owner){var x=d._owner,E;if(x){var N=x;if(N.tag!==v)throw new Error("Function components cannot have string refs. We recommend using useRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref");E=N.stateNode}if(!E)throw new Error("Missing owner for string ref "+p+". This error is likely caused by a bug in React. Please file an issue.");var O=E;Dn(p,"ref");var F=""+p;if(a!==null&&a.ref!==null&&typeof a.ref=="function"&&a.ref._stringRef===F)return a.ref;var V=function(re){var te=O.refs;re===null?delete te[F]:te[F]=re};return V._stringRef=F,V}else{if(typeof p!="string")throw new Error("Expected ref to be a function, a string, an object returned by React.createRef(), or null.");if(!d._owner)throw new Error("Element ref was specified as a string ("+p+`) but no owner was set. This could happen for one of the following reasons:
165
+ 1. You may be adding a ref to a function component
166
+ 2. You may be adding a ref to a component that was not created inside a component's render method
167
+ 3. You have multiple copies of React loaded
168
+ See https://reactjs.org/link/refs-must-have-owner for more information.`)}}return p}function $2(r,a){var d=Object.prototype.toString.call(a);throw new Error("Objects are not valid as a React child (found: "+(d==="[object Object]"?"object with keys {"+Object.keys(a).join(", ")+"}":d)+"). If you meant to render a collection of children, use an array instead.")}function Z2(r){{var a=Ht(r)||"Component";if(d8[a])return;d8[a]=!0,c("Functions are not valid as a React child. This may happen if you return a Component instead of <Component /> from render. Or maybe you meant to call this function rather than return it.")}}function gO(r){var a=r._payload,d=r._init;return d(a)}function yO(r){function a(ie,Ce){if(r){var oe=ie.deletions;oe===null?(ie.deletions=[Ce],ie.flags|=Wi):oe.push(Ce)}}function d(ie,Ce){if(!r)return null;for(var oe=Ce;oe!==null;)a(ie,oe),oe=oe.sibling;return null}function p(ie,Ce){for(var oe=new Map,je=Ce;je!==null;)je.key!==null?oe.set(je.key,je):oe.set(je.index,je),je=je.sibling;return oe}function g(ie,Ce){var oe=Ff(ie,Ce);return oe.index=0,oe.sibling=null,oe}function x(ie,Ce,oe){if(ie.index=oe,!r)return ie.flags|=Wo,Ce;var je=ie.alternate;if(je!==null){var at=je.index;return at<Ce?(ie.flags|=wr,Ce):at}else return ie.flags|=wr,Ce}function E(ie){return r&&ie.alternate===null&&(ie.flags|=wr),ie}function N(ie,Ce,oe,je){if(Ce===null||Ce.tag!==R){var at=ow(oe,ie.mode,je);return at.return=ie,at}else{var tt=g(Ce,oe);return tt.return=ie,tt}}function O(ie,Ce,oe,je){var at=oe.type;if(at===La)return V(ie,Ce,oe.props.children,je,oe.key);if(Ce!==null&&(Ce.elementType===at||SA(Ce,oe)||typeof at=="object"&&at!==null&&at.$$typeof===Vt&&gO(at)===Ce.type)){var tt=g(Ce,oe.props);return tt.ref=Nv(ie,Ce,oe),tt.return=ie,tt._debugSource=oe._source,tt._debugOwner=oe._owner,tt}var Ft=iw(oe,ie.mode,je);return Ft.ref=Nv(ie,Ce,oe),Ft.return=ie,Ft}function F(ie,Ce,oe,je){if(Ce===null||Ce.tag!==S||Ce.stateNode.containerInfo!==oe.containerInfo||Ce.stateNode.implementation!==oe.implementation){var at=sw(oe,ie.mode,je);return at.return=ie,at}else{var tt=g(Ce,oe.children||[]);return tt.return=ie,tt}}function V(ie,Ce,oe,je,at){if(Ce===null||Ce.tag!==M){var tt=td(oe,ie.mode,je,at);return tt.return=ie,tt}else{var Ft=g(Ce,oe);return Ft.return=ie,Ft}}function re(ie,Ce,oe){if(typeof Ce=="string"&&Ce!==""||typeof Ce=="number"){var je=ow(""+Ce,ie.mode,oe);return je.return=ie,je}if(typeof Ce=="object"&&Ce!==null){switch(Ce.$$typeof){case Mr:{var at=iw(Ce,ie.mode,oe);return at.ref=Nv(ie,null,Ce),at.return=ie,at}case gr:{var tt=sw(Ce,ie.mode,oe);return tt.return=ie,tt}case Vt:{var Ft=Ce._payload,qt=Ce._init;return re(ie,qt(Ft),oe)}}if(nn(Ce)||Yt(Ce)){var Gn=td(Ce,ie.mode,oe,null);return Gn.return=ie,Gn}$2(ie,Ce)}return typeof Ce=="function"&&Z2(ie),null}function te(ie,Ce,oe,je){var at=Ce!==null?Ce.key:null;if(typeof oe=="string"&&oe!==""||typeof oe=="number")return at!==null?null:N(ie,Ce,""+oe,je);if(typeof oe=="object"&&oe!==null){switch(oe.$$typeof){case Mr:return oe.key===at?O(ie,Ce,oe,je):null;case gr:return oe.key===at?F(ie,Ce,oe,je):null;case Vt:{var tt=oe._payload,Ft=oe._init;return te(ie,Ce,Ft(tt),je)}}if(nn(oe)||Yt(oe))return at!==null?null:V(ie,Ce,oe,je,null);$2(ie,oe)}return typeof oe=="function"&&Z2(ie),null}function ue(ie,Ce,oe,je,at){if(typeof je=="string"&&je!==""||typeof je=="number"){var tt=ie.get(oe)||null;return N(Ce,tt,""+je,at)}if(typeof je=="object"&&je!==null){switch(je.$$typeof){case Mr:{var Ft=ie.get(je.key===null?oe:je.key)||null;return O(Ce,Ft,je,at)}case gr:{var qt=ie.get(je.key===null?oe:je.key)||null;return F(Ce,qt,je,at)}case Vt:var Gn=je._payload,On=je._init;return ue(ie,Ce,oe,On(Gn),at)}if(nn(je)||Yt(je)){var ta=ie.get(oe)||null;return V(Ce,ta,je,at,null)}$2(Ce,je)}return typeof je=="function"&&Z2(Ce),null}function he(ie,Ce,oe){{if(typeof ie!="object"||ie===null)return Ce;switch(ie.$$typeof){case Mr:case gr:vO(ie,oe);var je=ie.key;if(typeof je!="string")break;if(Ce===null){Ce=new Set,Ce.add(je);break}if(!Ce.has(je)){Ce.add(je);break}c("Encountered two children with the same key, `%s`. Keys should be unique so that components maintain their identity across updates. Non-unique keys may cause children to be duplicated and/or omitted — the behavior is unsupported and could change in a future version.",je);break;case Vt:var at=ie._payload,tt=ie._init;he(tt(at),Ce,oe);break}}return Ce}function xe(ie,Ce,oe,je){for(var at=null,tt=0;tt<oe.length;tt++){var Ft=oe[tt];at=he(Ft,at,ie)}for(var qt=null,Gn=null,On=Ce,ta=0,Ln=0,qr=null;On!==null&&Ln<oe.length;Ln++){On.index>Ln?(qr=On,On=null):qr=On.sibling;var fi=te(ie,On,oe[Ln],je);if(fi===null){On===null&&(On=qr);break}r&&On&&fi.alternate===null&&a(ie,On),ta=x(fi,ta,Ln),Gn===null?qt=fi:Gn.sibling=fi,Gn=fi,On=qr}if(Ln===oe.length){if(d(ie,On),Ha()){var Ga=Ln;_f(ie,Ga)}return qt}if(On===null){for(;Ln<oe.length;Ln++){var Ao=re(ie,oe[Ln],je);Ao!==null&&(ta=x(Ao,ta,Ln),Gn===null?qt=Ao:Gn.sibling=Ao,Gn=Ao)}if(Ha()){var Li=Ln;_f(ie,Li)}return qt}for(var Ai=p(ie,On);Ln<oe.length;Ln++){var pi=ue(Ai,ie,Ln,oe[Ln],je);pi!==null&&(r&&pi.alternate!==null&&Ai.delete(pi.key===null?Ln:pi.key),ta=x(pi,ta,Ln),Gn===null?qt=pi:Gn.sibling=pi,Gn=pi)}if(r&&Ai.forEach(function(dh){return a(ie,dh)}),Ha()){var Fu=Ln;_f(ie,Fu)}return qt}function et(ie,Ce,oe,je){var at=Yt(oe);if(typeof at!="function")throw new Error("An object is not an iterable. This error is likely caused by a bug in React. Please file an issue.");{typeof Symbol=="function"&&oe[Symbol.toStringTag]==="Generator"&&(l8||c("Using Generators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it. You may convert it to an array with `Array.from()` or the `[...spread]` operator before rendering. Keep in mind you might need to polyfill these features for older browsers."),l8=!0),oe.entries===at&&(s8||c("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),s8=!0);var tt=at.call(oe);if(tt)for(var Ft=null,qt=tt.next();!qt.done;qt=tt.next()){var Gn=qt.value;Ft=he(Gn,Ft,ie)}}var On=at.call(oe);if(On==null)throw new Error("An iterable object provided no iterator.");for(var ta=null,Ln=null,qr=Ce,fi=0,Ga=0,Ao=null,Li=On.next();qr!==null&&!Li.done;Ga++,Li=On.next()){qr.index>Ga?(Ao=qr,qr=null):Ao=qr.sibling;var Ai=te(ie,qr,Li.value,je);if(Ai===null){qr===null&&(qr=Ao);break}r&&qr&&Ai.alternate===null&&a(ie,qr),fi=x(Ai,fi,Ga),Ln===null?ta=Ai:Ln.sibling=Ai,Ln=Ai,qr=Ao}if(Li.done){if(d(ie,qr),Ha()){var pi=Ga;_f(ie,pi)}return ta}if(qr===null){for(;!Li.done;Ga++,Li=On.next()){var Fu=re(ie,Li.value,je);Fu!==null&&(fi=x(Fu,fi,Ga),Ln===null?ta=Fu:Ln.sibling=Fu,Ln=Fu)}if(Ha()){var dh=Ga;_f(ie,dh)}return ta}for(var lg=p(ie,qr);!Li.done;Ga++,Li=On.next()){var Ul=ue(lg,ie,Ga,Li.value,je);Ul!==null&&(r&&Ul.alternate!==null&&lg.delete(Ul.key===null?Ga:Ul.key),fi=x(Ul,fi,Ga),Ln===null?ta=Ul:Ln.sibling=Ul,Ln=Ul)}if(r&&lg.forEach(function(Pue){return a(ie,Pue)}),Ha()){var Due=Ga;_f(ie,Due)}return ta}function Lt(ie,Ce,oe,je){if(Ce!==null&&Ce.tag===R){d(ie,Ce.sibling);var at=g(Ce,oe);return at.return=ie,at}d(ie,Ce);var tt=ow(oe,ie.mode,je);return tt.return=ie,tt}function bt(ie,Ce,oe,je){for(var at=oe.key,tt=Ce;tt!==null;){if(tt.key===at){var Ft=oe.type;if(Ft===La){if(tt.tag===M){d(ie,tt.sibling);var qt=g(tt,oe.props.children);return qt.return=ie,qt._debugSource=oe._source,qt._debugOwner=oe._owner,qt}}else if(tt.elementType===Ft||SA(tt,oe)||typeof Ft=="object"&&Ft!==null&&Ft.$$typeof===Vt&&gO(Ft)===tt.type){d(ie,tt.sibling);var Gn=g(tt,oe.props);return Gn.ref=Nv(ie,tt,oe),Gn.return=ie,Gn._debugSource=oe._source,Gn._debugOwner=oe._owner,Gn}d(ie,tt);break}else a(ie,tt);tt=tt.sibling}if(oe.type===La){var On=td(oe.props.children,ie.mode,je,oe.key);return On.return=ie,On}else{var ta=iw(oe,ie.mode,je);return ta.ref=Nv(ie,Ce,oe),ta.return=ie,ta}}function wn(ie,Ce,oe,je){for(var at=oe.key,tt=Ce;tt!==null;){if(tt.key===at)if(tt.tag===S&&tt.stateNode.containerInfo===oe.containerInfo&&tt.stateNode.implementation===oe.implementation){d(ie,tt.sibling);var Ft=g(tt,oe.children||[]);return Ft.return=ie,Ft}else{d(ie,tt);break}else a(ie,tt);tt=tt.sibling}var qt=sw(oe,ie.mode,je);return qt.return=ie,qt}function pn(ie,Ce,oe,je){var at=typeof oe=="object"&&oe!==null&&oe.type===La&&oe.key===null;if(at&&(oe=oe.props.children),typeof oe=="object"&&oe!==null){switch(oe.$$typeof){case Mr:return E(bt(ie,Ce,oe,je));case gr:return E(wn(ie,Ce,oe,je));case Vt:var tt=oe._payload,Ft=oe._init;return pn(ie,Ce,Ft(tt),je)}if(nn(oe))return xe(ie,Ce,oe,je);if(Yt(oe))return et(ie,Ce,oe,je);$2(ie,oe)}return typeof oe=="string"&&oe!==""||typeof oe=="number"?E(Lt(ie,Ce,""+oe,je)):(typeof oe=="function"&&Z2(ie),d(ie,Ce))}return pn}var q1=yO(!0),wO=yO(!1);function doe(r,a){if(r!==null&&a.child!==r.child)throw new Error("Resuming work not yet implemented.");if(a.child!==null){var d=a.child,p=Ff(d,d.pendingProps);for(a.child=p,p.return=a;d.sibling!==null;)d=d.sibling,p=p.sibling=Ff(d,d.pendingProps),p.return=a;p.sibling=null}}function foe(r,a){for(var d=r.child;d!==null;)Qle(d,a),d=d.sibling}var f8=Hc(null),p8;p8={};var W2=null,G1=null,h8=null,q2=!1;function G2(){W2=null,G1=null,h8=null,q2=!1}function bO(){q2=!0}function xO(){q2=!1}function CO(r,a,d){ci(f8,a._currentValue,r),a._currentValue=d,a._currentRenderer!==void 0&&a._currentRenderer!==null&&a._currentRenderer!==p8&&c("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),a._currentRenderer=p8}function m8(r,a){var d=f8.current;ui(f8,a),r._currentValue=d}function v8(r,a,d){for(var p=r;p!==null;){var g=p.alternate;if(xu(p.childLanes,a)?g!==null&&!xu(g.childLanes,a)&&(g.childLanes=Kt(g.childLanes,a)):(p.childLanes=Kt(p.childLanes,a),g!==null&&(g.childLanes=Kt(g.childLanes,a))),p===d)break;p=p.return}p!==d&&c("Expected to find the propagation root when scheduling context work. This error is likely caused by a bug in React. Please file an issue.")}function poe(r,a,d){hoe(r,a,d)}function hoe(r,a,d){var p=r.child;for(p!==null&&(p.return=r);p!==null;){var g=void 0,x=p.dependencies;if(x!==null){g=p.child;for(var E=x.firstContext;E!==null;){if(E.context===a){if(p.tag===v){var N=nf(d),O=Au(Xn,N);O.tag=J2;var F=p.updateQueue;if(F!==null){var V=F.shared,re=V.pending;re===null?O.next=O:(O.next=re.next,re.next=O),V.pending=O}}p.lanes=Kt(p.lanes,d);var te=p.alternate;te!==null&&(te.lanes=Kt(te.lanes,d)),v8(p.return,d,r),x.lanes=Kt(x.lanes,d);break}E=E.next}}else if(p.tag===j)g=p.type===r.type?null:p.child;else if(p.tag===ke){var ue=p.return;if(ue===null)throw new Error("We just came from a parent so we must have had a parent. This is a bug in React.");ue.lanes=Kt(ue.lanes,d);var he=ue.alternate;he!==null&&(he.lanes=Kt(he.lanes,d)),v8(ue,d,r),g=p.sibling}else g=p.child;if(g!==null)g.return=p;else for(g=p;g!==null;){if(g===r){g=null;break}var xe=g.sibling;if(xe!==null){xe.return=g.return,g=xe;break}g=g.return}p=g}}function Y1(r,a){W2=r,G1=null,h8=null;var d=r.dependencies;if(d!==null){var p=d.firstContext;p!==null&&(ii(d.lanes,a)&&Zv(),d.firstContext=null)}}function la(r){q2&&c("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().");var a=r._currentValue;if(h8!==r){var d={context:r,memoizedValue:a,next:null};if(G1===null){if(W2===null)throw new Error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().");G1=d,W2.dependencies={lanes:Le,firstContext:d}}else G1=G1.next=d}return a}var Of=null;function g8(r){Of===null?Of=[r]:Of.push(r)}function moe(){if(Of!==null){for(var r=0;r<Of.length;r++){var a=Of[r],d=a.interleaved;if(d!==null){a.interleaved=null;var p=d.next,g=a.pending;if(g!==null){var x=g.next;g.next=p,d.next=x}a.pending=d}}Of=null}}function SO(r,a,d,p){var g=a.interleaved;return g===null?(d.next=d,g8(a)):(d.next=g.next,g.next=d),a.interleaved=d,Y2(r,p)}function voe(r,a,d,p){var g=a.interleaved;g===null?(d.next=d,g8(a)):(d.next=g.next,g.next=d),a.interleaved=d}function goe(r,a,d,p){var g=a.interleaved;return g===null?(d.next=d,g8(a)):(d.next=g.next,g.next=d),a.interleaved=d,Y2(r,p)}function no(r,a){return Y2(r,a)}var yoe=Y2;function Y2(r,a){r.lanes=Kt(r.lanes,a);var d=r.alternate;d!==null&&(d.lanes=Kt(d.lanes,a)),d===null&&(r.flags&(wr|ei))!==Tt&&wA(r);for(var p=r,g=r.return;g!==null;)g.childLanes=Kt(g.childLanes,a),d=g.alternate,d!==null?d.childLanes=Kt(d.childLanes,a):(g.flags&(wr|ei))!==Tt&&wA(r),p=g,g=g.return;if(p.tag===y){var x=p.stateNode;return x}else return null}var kO=0,EO=1,J2=2,y8=3,K2=!1,w8,X2;w8=!1,X2=null;function b8(r){var a={baseState:r.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:Le},effects:null};r.updateQueue=a}function _O(r,a){var d=a.updateQueue,p=r.updateQueue;if(d===p){var g={baseState:p.baseState,firstBaseUpdate:p.firstBaseUpdate,lastBaseUpdate:p.lastBaseUpdate,shared:p.shared,effects:p.effects};a.updateQueue=g}}function Au(r,a){var d={eventTime:r,lane:a,tag:kO,payload:null,callback:null,next:null};return d}function Zc(r,a,d){var p=r.updateQueue;if(p===null)return null;var g=p.shared;if(X2===g&&!w8&&(c("An update (setState, replaceState, or forceUpdate) was scheduled from inside an update function. Update functions should be pure, with zero side-effects. Consider using componentDidUpdate or a callback."),w8=!0),vle()){var x=g.pending;return x===null?a.next=a:(a.next=x.next,x.next=a),g.pending=a,yoe(r,d)}else return goe(r,g,a,d)}function Q2(r,a,d){var p=a.updateQueue;if(p!==null){var g=p.shared;if(Bm(d)){var x=g.lanes;x=Zm(x,r.pendingLanes);var E=Kt(x,d);g.lanes=E,x1(r,E)}}}function x8(r,a){var d=r.updateQueue,p=r.alternate;if(p!==null){var g=p.updateQueue;if(d===g){var x=null,E=null,N=d.firstBaseUpdate;if(N!==null){var O=N;do{var F={eventTime:O.eventTime,lane:O.lane,tag:O.tag,payload:O.payload,callback:O.callback,next:null};E===null?x=E=F:(E.next=F,E=F),O=O.next}while(O!==null);E===null?x=E=a:(E.next=a,E=a)}else x=E=a;d={baseState:g.baseState,firstBaseUpdate:x,lastBaseUpdate:E,shared:g.shared,effects:g.effects},r.updateQueue=d;return}}var V=d.lastBaseUpdate;V===null?d.firstBaseUpdate=a:V.next=a,d.lastBaseUpdate=a}function woe(r,a,d,p,g,x){switch(d.tag){case EO:{var E=d.payload;if(typeof E=="function"){bO();var N=E.call(x,p,g);{if(r.mode&Wn){br(!0);try{E.call(x,p,g)}finally{br(!1)}}xO()}return N}return E}case y8:r.flags=r.flags&~aa|St;case kO:{var O=d.payload,F;if(typeof O=="function"){bO(),F=O.call(x,p,g);{if(r.mode&Wn){br(!0);try{O.call(x,p,g)}finally{br(!1)}}xO()}}else F=O;return F==null?p:en({},p,F)}case J2:return K2=!0,p}return p}function e9(r,a,d,p){var g=r.updateQueue;K2=!1,X2=g.shared;var x=g.firstBaseUpdate,E=g.lastBaseUpdate,N=g.shared.pending;if(N!==null){g.shared.pending=null;var O=N,F=O.next;O.next=null,E===null?x=F:E.next=F,E=O;var V=r.alternate;if(V!==null){var re=V.updateQueue,te=re.lastBaseUpdate;te!==E&&(te===null?re.firstBaseUpdate=F:te.next=F,re.lastBaseUpdate=O)}}if(x!==null){var ue=g.baseState,he=Le,xe=null,et=null,Lt=null,bt=x;do{var wn=bt.lane,pn=bt.eventTime;if(xu(p,wn)){if(Lt!==null){var Ce={eventTime:pn,lane:En,tag:bt.tag,payload:bt.payload,callback:bt.callback,next:null};Lt=Lt.next=Ce}ue=woe(r,g,bt,ue,a,d);var oe=bt.callback;if(oe!==null&&bt.lane!==En){r.flags|=rr;var je=g.effects;je===null?g.effects=[bt]:je.push(bt)}}else{var ie={eventTime:pn,lane:wn,tag:bt.tag,payload:bt.payload,callback:bt.callback,next:null};Lt===null?(et=Lt=ie,xe=ue):Lt=Lt.next=ie,he=Kt(he,wn)}if(bt=bt.next,bt===null){if(N=g.shared.pending,N===null)break;var at=N,tt=at.next;at.next=null,bt=tt,g.lastBaseUpdate=at,g.shared.pending=null}}while(!0);Lt===null&&(xe=ue),g.baseState=xe,g.firstBaseUpdate=et,g.lastBaseUpdate=Lt;var Ft=g.shared.interleaved;if(Ft!==null){var qt=Ft;do he=Kt(he,qt.lane),qt=qt.next;while(qt!==Ft)}else x===null&&(g.shared.lanes=Le);rg(he),r.lanes=he,r.memoizedState=ue}X2=null}function boe(r,a){if(typeof r!="function")throw new Error("Invalid argument passed as callback. Expected a function. Instead "+("received: "+r));r.call(a)}function TO(){K2=!1}function t9(){return K2}function RO(r,a,d){var p=a.effects;if(a.effects=null,p!==null)for(var g=0;g<p.length;g++){var x=p[g],E=x.callback;E!==null&&(x.callback=null,boe(E,d))}}var Ov={},Wc=Hc(Ov),Lv=Hc(Ov),n9=Hc(Ov);function r9(r){if(r===Ov)throw new Error("Expected host context to exist. This error is likely caused by a bug in React. Please file an issue.");return r}function MO(){var r=r9(n9.current);return r}function C8(r,a){ci(n9,a,r),ci(Lv,r,r),ci(Wc,Ov,r);var d=zae(a);ui(Wc,r),ci(Wc,d,r)}function J1(r){ui(Wc,r),ui(Lv,r),ui(n9,r)}function S8(){var r=r9(Wc.current);return r}function NO(r){r9(n9.current);var a=r9(Wc.current),d=jae(a,r.type);a!==d&&(ci(Lv,r,r),ci(Wc,d,r))}function k8(r){Lv.current===r&&(ui(Wc,r),ui(Lv,r))}var xoe=0,OO=1,LO=1,Av=2,js=Hc(xoe);function E8(r,a){return(r&a)!==0}function K1(r){return r&OO}function _8(r,a){return r&OO|a}function Coe(r,a){return r|a}function qc(r,a){ci(js,a,r)}function X1(r){ui(js,r)}function Soe(r,a){var d=r.memoizedState;return d!==null?d.dehydrated!==null:(r.memoizedProps,!0)}function a9(r){for(var a=r;a!==null;){if(a.tag===Z){var d=a.memoizedState;if(d!==null){var p=d.dehydrated;if(p===null||YN(p)||$6(p))return a}}else if(a.tag===ve&&a.memoizedProps.revealOrder!==void 0){var g=(a.flags&St)!==Tt;if(g)return a}else if(a.child!==null){a.child.return=a,a=a.child;continue}if(a===r)return null;for(;a.sibling===null;){if(a.return===null||a.return===r)return null;a=a.return}a.sibling.return=a.return,a=a.sibling}return null}var ro=0,ya=1,Al=2,wa=4,Va=8,T8=[];function R8(){for(var r=0;r<T8.length;r++){var a=T8[r];a._workInProgressVersionPrimary=null}T8.length=0}function koe(r,a){var d=a._getVersion,p=d(a._source);r.mutableSourceEagerHydrationData==null?r.mutableSourceEagerHydrationData=[a,p]:r.mutableSourceEagerHydrationData.push(a,p)}var rt=n.ReactCurrentDispatcher,Iv=n.ReactCurrentBatchConfig,M8,Q1;M8=new Set;var Lf=Le,qn=null,ba=null,xa=null,i9=!1,Dv=!1,Pv=0,Eoe=0,_oe=25,_e=null,is=null,Gc=-1,N8=!1;function jn(){{var r=_e;is===null?is=[r]:is.push(r)}}function Ge(){{var r=_e;is!==null&&(Gc++,is[Gc]!==r&&Toe(r))}}function eh(r){r!=null&&!nn(r)&&c("%s received a final argument that is not an array (instead, received `%s`). When specified, the final argument must be an array.",_e,typeof r)}function Toe(r){{var a=Ht(qn);if(!M8.has(a)&&(M8.add(a),is!==null)){for(var d="",p=30,g=0;g<=Gc;g++){for(var x=is[g],E=g===Gc?r:x,N=g+1+". "+x;N.length<p;)N+=" ";N+=E+`
169
+ `,d+=N}c(`React has detected a change in the order of Hooks called by %s. This will lead to bugs and errors if not fixed. For more information, read the Rules of Hooks: https://reactjs.org/link/rules-of-hooks
170
+
171
+ Previous render Next render
172
+ ------------------------------------------------------
173
+ %s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
174
+ `,a,d)}}}function di(){throw new Error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
175
+ 1. You might have mismatching versions of React and the renderer (such as React DOM)
176
+ 2. You might be breaking the Rules of Hooks
177
+ 3. You might have more than one copy of React in the same app
178
+ See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.`)}function O8(r,a){if(N8)return!1;if(a===null)return c("%s received a final argument during this render, but not during the previous render. Even though the final argument is optional, its type cannot change between renders.",_e),!1;r.length!==a.length&&c(`The final argument passed to %s changed size between renders. The order and size of this array must remain constant.
179
+
180
+ Previous: %s
181
+ Incoming: %s`,_e,"["+a.join(", ")+"]","["+r.join(", ")+"]");for(var d=0;d<a.length&&d<r.length;d++)if(!Pe(r[d],a[d]))return!1;return!0}function th(r,a,d,p,g,x){Lf=x,qn=a,is=r!==null?r._debugHookTypes:null,Gc=-1,N8=r!==null&&r.type!==a.type,a.memoizedState=null,a.updateQueue=null,a.lanes=Le,r!==null&&r.memoizedState!==null?rt.current=eL:is!==null?rt.current=QO:rt.current=XO;var E=d(p,g);if(Dv){var N=0;do{if(Dv=!1,Pv=0,N>=_oe)throw new Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");N+=1,N8=!1,ba=null,xa=null,a.updateQueue=null,Gc=-1,rt.current=tL,E=d(p,g)}while(Dv)}rt.current=y9,a._debugHookTypes=is;var O=ba!==null&&ba.next!==null;if(Lf=Le,qn=null,ba=null,xa=null,_e=null,is=null,Gc=-1,r!==null&&(r.flags&Hr)!==(a.flags&Hr)&&(r.mode&an)!==Rt&&c("Internal React error: Expected static flag was missing. Please notify the React team."),i9=!1,O)throw new Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");return E}function nh(){var r=Pv!==0;return Pv=0,r}function AO(r,a,d){a.updateQueue=r.updateQueue,(a.mode&Mn)!==Rt?a.flags&=-50333701:a.flags&=-2053,r.lanes=rf(r.lanes,d)}function IO(){if(rt.current=y9,i9){for(var r=qn.memoizedState;r!==null;){var a=r.queue;a!==null&&(a.pending=null),r=r.next}i9=!1}Lf=Le,qn=null,ba=null,xa=null,is=null,Gc=-1,_e=null,qO=!1,Dv=!1,Pv=0}function Il(){var r={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return xa===null?qn.memoizedState=xa=r:xa=xa.next=r,xa}function os(){var r;if(ba===null){var a=qn.alternate;a!==null?r=a.memoizedState:r=null}else r=ba.next;var d;if(xa===null?d=qn.memoizedState:d=xa.next,d!==null)xa=d,d=xa.next,ba=r;else{if(r===null)throw new Error("Rendered more hooks than during the previous render.");ba=r;var p={memoizedState:ba.memoizedState,baseState:ba.baseState,baseQueue:ba.baseQueue,queue:ba.queue,next:null};xa===null?qn.memoizedState=xa=p:xa=xa.next=p}return xa}function DO(){return{lastEffect:null,stores:null}}function L8(r,a){return typeof a=="function"?a(r):a}function A8(r,a,d){var p=Il(),g;d!==void 0?g=d(a):g=a,p.memoizedState=p.baseState=g;var x={pending:null,interleaved:null,lanes:Le,dispatch:null,lastRenderedReducer:r,lastRenderedState:g};p.queue=x;var E=x.dispatch=Ooe.bind(null,qn,x);return[p.memoizedState,E]}function I8(r,a,d){var p=os(),g=p.queue;if(g===null)throw new Error("Should have a queue. This is likely a bug in React. Please file an issue.");g.lastRenderedReducer=r;var x=ba,E=x.baseQueue,N=g.pending;if(N!==null){if(E!==null){var O=E.next,F=N.next;E.next=F,N.next=O}x.baseQueue!==E&&c("Internal error: Expected work-in-progress queue to be a clone. This is a bug in React."),x.baseQueue=E=N,g.pending=null}if(E!==null){var V=E.next,re=x.baseState,te=null,ue=null,he=null,xe=V;do{var et=xe.lane;if(xu(Lf,et)){if(he!==null){var bt={lane:En,action:xe.action,hasEagerState:xe.hasEagerState,eagerState:xe.eagerState,next:null};he=he.next=bt}if(xe.hasEagerState)re=xe.eagerState;else{var wn=xe.action;re=r(re,wn)}}else{var Lt={lane:et,action:xe.action,hasEagerState:xe.hasEagerState,eagerState:xe.eagerState,next:null};he===null?(ue=he=Lt,te=re):he=he.next=Lt,qn.lanes=Kt(qn.lanes,et),rg(et)}xe=xe.next}while(xe!==null&&xe!==V);he===null?te=re:he.next=ue,Pe(re,p.memoizedState)||Zv(),p.memoizedState=re,p.baseState=te,p.baseQueue=he,g.lastRenderedState=re}var pn=g.interleaved;if(pn!==null){var ie=pn;do{var Ce=ie.lane;qn.lanes=Kt(qn.lanes,Ce),rg(Ce),ie=ie.next}while(ie!==pn)}else E===null&&(g.lanes=Le);var oe=g.dispatch;return[p.memoizedState,oe]}function D8(r,a,d){var p=os(),g=p.queue;if(g===null)throw new Error("Should have a queue. This is likely a bug in React. Please file an issue.");g.lastRenderedReducer=r;var x=g.dispatch,E=g.pending,N=p.memoizedState;if(E!==null){g.pending=null;var O=E.next,F=O;do{var V=F.action;N=r(N,V),F=F.next}while(F!==O);Pe(N,p.memoizedState)||Zv(),p.memoizedState=N,p.baseQueue===null&&(p.baseState=N),g.lastRenderedState=N}return[N,x]}function pce(r,a,d){}function hce(r,a,d){}function P8(r,a,d){var p=qn,g=Il(),x,E=Ha();if(E){if(d===void 0)throw new Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");x=d(),Q1||x!==d()&&(c("The result of getServerSnapshot should be cached to avoid an infinite loop"),Q1=!0)}else{if(x=a(),!Q1){var N=a();Pe(x,N)||(c("The result of getSnapshot should be cached to avoid an infinite loop"),Q1=!0)}var O=z9();if(O===null)throw new Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");w1(O,Lf)||PO(p,a,x)}g.memoizedState=x;var F={value:x,getSnapshot:a};return g.queue=F,c9(jO.bind(null,p,F,r),[r]),p.flags|=Qa,zv(ya|Va,zO.bind(null,p,F,x,a),void 0,null),x}function o9(r,a,d){var p=qn,g=os(),x=a();if(!Q1){var E=a();Pe(x,E)||(c("The result of getSnapshot should be cached to avoid an infinite loop"),Q1=!0)}var N=g.memoizedState,O=!Pe(N,x);O&&(g.memoizedState=x,Zv());var F=g.queue;if(Fv(jO.bind(null,p,F,r),[r]),F.getSnapshot!==a||O||xa!==null&&xa.memoizedState.tag&ya){p.flags|=Qa,zv(ya|Va,zO.bind(null,p,F,x,a),void 0,null);var V=z9();if(V===null)throw new Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");w1(V,Lf)||PO(p,a,x)}return x}function PO(r,a,d){r.flags|=Ec;var p={getSnapshot:a,value:d},g=qn.updateQueue;if(g===null)g=DO(),qn.updateQueue=g,g.stores=[p];else{var x=g.stores;x===null?g.stores=[p]:x.push(p)}}function zO(r,a,d,p){a.value=d,a.getSnapshot=p,FO(a)&&UO(r)}function jO(r,a,d){var p=function(){FO(a)&&UO(r)};return d(p)}function FO(r){var a=r.getSnapshot,d=r.value;try{var p=a();return!Pe(d,p)}catch(g){return!0}}function UO(r){var a=no(r,jt);a!==null&&Ea(a,r,jt,Xn)}function s9(r){var a=Il();typeof r=="function"&&(r=r()),a.memoizedState=a.baseState=r;var d={pending:null,interleaved:null,lanes:Le,dispatch:null,lastRenderedReducer:L8,lastRenderedState:r};a.queue=d;var p=d.dispatch=Loe.bind(null,qn,d);return[a.memoizedState,p]}function z8(r){return I8(L8)}function j8(r){return D8(L8)}function zv(r,a,d,p){var g={tag:r,create:a,destroy:d,deps:p,next:null},x=qn.updateQueue;if(x===null)x=DO(),qn.updateQueue=x,x.lastEffect=g.next=g;else{var E=x.lastEffect;if(E===null)x.lastEffect=g.next=g;else{var N=E.next;E.next=g,g.next=N,x.lastEffect=g}}return g}function F8(r){var a=Il();{var d={current:r};return a.memoizedState=d,d}}function l9(r){var a=os();return a.memoizedState}function jv(r,a,d,p){var g=Il(),x=p===void 0?null:p;qn.flags|=r,g.memoizedState=zv(ya|a,d,void 0,x)}function u9(r,a,d,p){var g=os(),x=p===void 0?null:p,E=void 0;if(ba!==null){var N=ba.memoizedState;if(E=N.destroy,x!==null){var O=N.deps;if(O8(x,O)){g.memoizedState=zv(a,d,E,x);return}}}qn.flags|=r,g.memoizedState=zv(ya|a,d,E,x)}function c9(r,a){return(qn.mode&Mn)!==Rt?jv(qo|Qa|Wp,Va,r,a):jv(Qa|Wp,Va,r,a)}function Fv(r,a){return u9(Qa,Va,r,a)}function U8(r,a){return jv(vn,Al,r,a)}function d9(r,a){return u9(vn,Al,r,a)}function H8(r,a){var d=vn;return d|=_s,(qn.mode&Mn)!==Rt&&(d|=ml),jv(d,wa,r,a)}function f9(r,a){return u9(vn,wa,r,a)}function HO(r,a){if(typeof a=="function"){var d=a,p=r();return d(p),function(){d(null)}}else if(a!=null){var g=a;g.hasOwnProperty("current")||c("Expected useImperativeHandle() first argument to either be a ref callback or React.createRef() object. Instead received: %s.","an object with keys {"+Object.keys(g).join(", ")+"}");var x=r();return g.current=x,function(){g.current=null}}}function V8(r,a,d){typeof a!="function"&&c("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",a!==null?typeof a:"null");var p=d!=null?d.concat([r]):null,g=vn;return g|=_s,(qn.mode&Mn)!==Rt&&(g|=ml),jv(g,wa,HO.bind(null,a,r),p)}function p9(r,a,d){typeof a!="function"&&c("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",a!==null?typeof a:"null");var p=d!=null?d.concat([r]):null;return u9(vn,wa,HO.bind(null,a,r),p)}function Roe(r,a){}var h9=Roe;function B8(r,a){var d=Il(),p=a===void 0?null:a;return d.memoizedState=[r,p],r}function m9(r,a){var d=os(),p=a===void 0?null:a,g=d.memoizedState;if(g!==null&&p!==null){var x=g[1];if(O8(p,x))return g[0]}return d.memoizedState=[r,p],r}function $8(r,a){var d=Il(),p=a===void 0?null:a,g=r();return d.memoizedState=[g,p],g}function v9(r,a){var d=os(),p=a===void 0?null:a,g=d.memoizedState;if(g!==null&&p!==null){var x=g[1];if(O8(p,x))return g[0]}var E=r();return d.memoizedState=[E,p],E}function Z8(r){var a=Il();return a.memoizedState=r,r}function VO(r){var a=os(),d=ba,p=d.memoizedState;return $O(a,p,r)}function BO(r){var a=os();if(ba===null)return a.memoizedState=r,r;var d=ba.memoizedState;return $O(a,d,r)}function $O(r,a,d){var p=!Hm(Lf);if(p){if(!Pe(d,a)){var g=$m();qn.lanes=Kt(qn.lanes,g),rg(g),r.baseState=!0}return a}else return r.baseState&&(r.baseState=!1,Zv()),r.memoizedState=d,d}function Moe(r,a,d){var p=Qi();$r(q0(p,Ko)),r(!0);var g=Iv.transition;Iv.transition={};var x=Iv.transition;Iv.transition._updatedFibers=new Set;try{r(!1),a()}finally{if($r(p),Iv.transition=g,g===null&&x._updatedFibers){var E=x._updatedFibers.size;E>10&&l("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."),x._updatedFibers.clear()}}}function W8(){var r=s9(!1),a=r[0],d=r[1],p=Moe.bind(null,d),g=Il();return g.memoizedState=p,[a,p]}function ZO(){var r=z8(),a=r[0],d=os(),p=d.memoizedState;return[a,p]}function WO(){var r=j8(),a=r[0],d=os(),p=d.memoizedState;return[a,p]}var qO=!1;function Noe(){return qO}function q8(){var r=Il(),a=z9(),d=a.identifierPrefix,p;if(Ha()){var g=qie();p=":"+d+"R"+g;var x=Pv++;x>0&&(p+="H"+x.toString(32)),p+=":"}else{var E=Eoe++;p=":"+d+"r"+E.toString(32)+":"}return r.memoizedState=p,p}function g9(){var r=os(),a=r.memoizedState;return a}function Ooe(r,a,d){typeof arguments[3]=="function"&&c("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect().");var p=Qc(r),g={lane:p,action:d,hasEagerState:!1,eagerState:null,next:null};if(GO(r))YO(a,g);else{var x=SO(r,a,g,p);if(x!==null){var E=Oi();Ea(x,r,p,E),JO(x,a,p)}}KO(r,p)}function Loe(r,a,d){typeof arguments[3]=="function"&&c("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect().");var p=Qc(r),g={lane:p,action:d,hasEagerState:!1,eagerState:null,next:null};if(GO(r))YO(a,g);else{var x=r.alternate;if(r.lanes===Le&&(x===null||x.lanes===Le)){var E=a.lastRenderedReducer;if(E!==null){var N;N=rt.current,rt.current=Fs;try{var O=a.lastRenderedState,F=E(O,d);if(g.hasEagerState=!0,g.eagerState=F,Pe(F,O)){voe(r,a,g,p);return}}catch(te){}finally{rt.current=N}}}var V=SO(r,a,g,p);if(V!==null){var re=Oi();Ea(V,r,p,re),JO(V,a,p)}}KO(r,p)}function GO(r){var a=r.alternate;return r===qn||a!==null&&a===qn}function YO(r,a){Dv=i9=!0;var d=r.pending;d===null?a.next=a:(a.next=d.next,d.next=a),r.pending=a}function JO(r,a,d){if(Bm(d)){var p=a.lanes;p=Zm(p,r.pendingLanes);var g=Kt(p,d);a.lanes=g,x1(r,g)}}function KO(r,a,d){qd(r,a)}var y9={readContext:la,useCallback:di,useContext:di,useEffect:di,useImperativeHandle:di,useInsertionEffect:di,useLayoutEffect:di,useMemo:di,useReducer:di,useRef:di,useState:di,useDebugValue:di,useDeferredValue:di,useTransition:di,useMutableSource:di,useSyncExternalStore:di,useId:di,unstable_isNewReconciler:Q},XO=null,QO=null,eL=null,tL=null,Dl=null,Fs=null,w9=null;{var G8=function(){c("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().")},Bt=function(){c("Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. You can only call Hooks at the top level of your React function. For more information, see https://reactjs.org/link/rules-of-hooks")};XO={readContext:function(r){return la(r)},useCallback:function(r,a){return _e="useCallback",jn(),eh(a),B8(r,a)},useContext:function(r){return _e="useContext",jn(),la(r)},useEffect:function(r,a){return _e="useEffect",jn(),eh(a),c9(r,a)},useImperativeHandle:function(r,a,d){return _e="useImperativeHandle",jn(),eh(d),V8(r,a,d)},useInsertionEffect:function(r,a){return _e="useInsertionEffect",jn(),eh(a),U8(r,a)},useLayoutEffect:function(r,a){return _e="useLayoutEffect",jn(),eh(a),H8(r,a)},useMemo:function(r,a){_e="useMemo",jn(),eh(a);var d=rt.current;rt.current=Dl;try{return $8(r,a)}finally{rt.current=d}},useReducer:function(r,a,d){_e="useReducer",jn();var p=rt.current;rt.current=Dl;try{return A8(r,a,d)}finally{rt.current=p}},useRef:function(r){return _e="useRef",jn(),F8(r)},useState:function(r){_e="useState",jn();var a=rt.current;rt.current=Dl;try{return s9(r)}finally{rt.current=a}},useDebugValue:function(r,a){return _e="useDebugValue",jn(),void 0},useDeferredValue:function(r){return _e="useDeferredValue",jn(),Z8(r)},useTransition:function(){return _e="useTransition",jn(),W8()},useMutableSource:function(r,a,d){return _e="useMutableSource",jn(),void 0},useSyncExternalStore:function(r,a,d){return _e="useSyncExternalStore",jn(),P8(r,a,d)},useId:function(){return _e="useId",jn(),q8()},unstable_isNewReconciler:Q},QO={readContext:function(r){return la(r)},useCallback:function(r,a){return _e="useCallback",Ge(),B8(r,a)},useContext:function(r){return _e="useContext",Ge(),la(r)},useEffect:function(r,a){return _e="useEffect",Ge(),c9(r,a)},useImperativeHandle:function(r,a,d){return _e="useImperativeHandle",Ge(),V8(r,a,d)},useInsertionEffect:function(r,a){return _e="useInsertionEffect",Ge(),U8(r,a)},useLayoutEffect:function(r,a){return _e="useLayoutEffect",Ge(),H8(r,a)},useMemo:function(r,a){_e="useMemo",Ge();var d=rt.current;rt.current=Dl;try{return $8(r,a)}finally{rt.current=d}},useReducer:function(r,a,d){_e="useReducer",Ge();var p=rt.current;rt.current=Dl;try{return A8(r,a,d)}finally{rt.current=p}},useRef:function(r){return _e="useRef",Ge(),F8(r)},useState:function(r){_e="useState",Ge();var a=rt.current;rt.current=Dl;try{return s9(r)}finally{rt.current=a}},useDebugValue:function(r,a){return _e="useDebugValue",Ge(),void 0},useDeferredValue:function(r){return _e="useDeferredValue",Ge(),Z8(r)},useTransition:function(){return _e="useTransition",Ge(),W8()},useMutableSource:function(r,a,d){return _e="useMutableSource",Ge(),void 0},useSyncExternalStore:function(r,a,d){return _e="useSyncExternalStore",Ge(),P8(r,a,d)},useId:function(){return _e="useId",Ge(),q8()},unstable_isNewReconciler:Q},eL={readContext:function(r){return la(r)},useCallback:function(r,a){return _e="useCallback",Ge(),m9(r,a)},useContext:function(r){return _e="useContext",Ge(),la(r)},useEffect:function(r,a){return _e="useEffect",Ge(),Fv(r,a)},useImperativeHandle:function(r,a,d){return _e="useImperativeHandle",Ge(),p9(r,a,d)},useInsertionEffect:function(r,a){return _e="useInsertionEffect",Ge(),d9(r,a)},useLayoutEffect:function(r,a){return _e="useLayoutEffect",Ge(),f9(r,a)},useMemo:function(r,a){_e="useMemo",Ge();var d=rt.current;rt.current=Fs;try{return v9(r,a)}finally{rt.current=d}},useReducer:function(r,a,d){_e="useReducer",Ge();var p=rt.current;rt.current=Fs;try{return I8(r,a,d)}finally{rt.current=p}},useRef:function(r){return _e="useRef",Ge(),l9()},useState:function(r){_e="useState",Ge();var a=rt.current;rt.current=Fs;try{return z8(r)}finally{rt.current=a}},useDebugValue:function(r,a){return _e="useDebugValue",Ge(),h9()},useDeferredValue:function(r){return _e="useDeferredValue",Ge(),VO(r)},useTransition:function(){return _e="useTransition",Ge(),ZO()},useMutableSource:function(r,a,d){return _e="useMutableSource",Ge(),void 0},useSyncExternalStore:function(r,a,d){return _e="useSyncExternalStore",Ge(),o9(r,a)},useId:function(){return _e="useId",Ge(),g9()},unstable_isNewReconciler:Q},tL={readContext:function(r){return la(r)},useCallback:function(r,a){return _e="useCallback",Ge(),m9(r,a)},useContext:function(r){return _e="useContext",Ge(),la(r)},useEffect:function(r,a){return _e="useEffect",Ge(),Fv(r,a)},useImperativeHandle:function(r,a,d){return _e="useImperativeHandle",Ge(),p9(r,a,d)},useInsertionEffect:function(r,a){return _e="useInsertionEffect",Ge(),d9(r,a)},useLayoutEffect:function(r,a){return _e="useLayoutEffect",Ge(),f9(r,a)},useMemo:function(r,a){_e="useMemo",Ge();var d=rt.current;rt.current=w9;try{return v9(r,a)}finally{rt.current=d}},useReducer:function(r,a,d){_e="useReducer",Ge();var p=rt.current;rt.current=w9;try{return D8(r,a,d)}finally{rt.current=p}},useRef:function(r){return _e="useRef",Ge(),l9()},useState:function(r){_e="useState",Ge();var a=rt.current;rt.current=w9;try{return j8(r)}finally{rt.current=a}},useDebugValue:function(r,a){return _e="useDebugValue",Ge(),h9()},useDeferredValue:function(r){return _e="useDeferredValue",Ge(),BO(r)},useTransition:function(){return _e="useTransition",Ge(),WO()},useMutableSource:function(r,a,d){return _e="useMutableSource",Ge(),void 0},useSyncExternalStore:function(r,a,d){return _e="useSyncExternalStore",Ge(),o9(r,a)},useId:function(){return _e="useId",Ge(),g9()},unstable_isNewReconciler:Q},Dl={readContext:function(r){return G8(),la(r)},useCallback:function(r,a){return _e="useCallback",Bt(),jn(),B8(r,a)},useContext:function(r){return _e="useContext",Bt(),jn(),la(r)},useEffect:function(r,a){return _e="useEffect",Bt(),jn(),c9(r,a)},useImperativeHandle:function(r,a,d){return _e="useImperativeHandle",Bt(),jn(),V8(r,a,d)},useInsertionEffect:function(r,a){return _e="useInsertionEffect",Bt(),jn(),U8(r,a)},useLayoutEffect:function(r,a){return _e="useLayoutEffect",Bt(),jn(),H8(r,a)},useMemo:function(r,a){_e="useMemo",Bt(),jn();var d=rt.current;rt.current=Dl;try{return $8(r,a)}finally{rt.current=d}},useReducer:function(r,a,d){_e="useReducer",Bt(),jn();var p=rt.current;rt.current=Dl;try{return A8(r,a,d)}finally{rt.current=p}},useRef:function(r){return _e="useRef",Bt(),jn(),F8(r)},useState:function(r){_e="useState",Bt(),jn();var a=rt.current;rt.current=Dl;try{return s9(r)}finally{rt.current=a}},useDebugValue:function(r,a){return _e="useDebugValue",Bt(),jn(),void 0},useDeferredValue:function(r){return _e="useDeferredValue",Bt(),jn(),Z8(r)},useTransition:function(){return _e="useTransition",Bt(),jn(),W8()},useMutableSource:function(r,a,d){return _e="useMutableSource",Bt(),jn(),void 0},useSyncExternalStore:function(r,a,d){return _e="useSyncExternalStore",Bt(),jn(),P8(r,a,d)},useId:function(){return _e="useId",Bt(),jn(),q8()},unstable_isNewReconciler:Q},Fs={readContext:function(r){return G8(),la(r)},useCallback:function(r,a){return _e="useCallback",Bt(),Ge(),m9(r,a)},useContext:function(r){return _e="useContext",Bt(),Ge(),la(r)},useEffect:function(r,a){return _e="useEffect",Bt(),Ge(),Fv(r,a)},useImperativeHandle:function(r,a,d){return _e="useImperativeHandle",Bt(),Ge(),p9(r,a,d)},useInsertionEffect:function(r,a){return _e="useInsertionEffect",Bt(),Ge(),d9(r,a)},useLayoutEffect:function(r,a){return _e="useLayoutEffect",Bt(),Ge(),f9(r,a)},useMemo:function(r,a){_e="useMemo",Bt(),Ge();var d=rt.current;rt.current=Fs;try{return v9(r,a)}finally{rt.current=d}},useReducer:function(r,a,d){_e="useReducer",Bt(),Ge();var p=rt.current;rt.current=Fs;try{return I8(r,a,d)}finally{rt.current=p}},useRef:function(r){return _e="useRef",Bt(),Ge(),l9()},useState:function(r){_e="useState",Bt(),Ge();var a=rt.current;rt.current=Fs;try{return z8(r)}finally{rt.current=a}},useDebugValue:function(r,a){return _e="useDebugValue",Bt(),Ge(),h9()},useDeferredValue:function(r){return _e="useDeferredValue",Bt(),Ge(),VO(r)},useTransition:function(){return _e="useTransition",Bt(),Ge(),ZO()},useMutableSource:function(r,a,d){return _e="useMutableSource",Bt(),Ge(),void 0},useSyncExternalStore:function(r,a,d){return _e="useSyncExternalStore",Bt(),Ge(),o9(r,a)},useId:function(){return _e="useId",Bt(),Ge(),g9()},unstable_isNewReconciler:Q},w9={readContext:function(r){return G8(),la(r)},useCallback:function(r,a){return _e="useCallback",Bt(),Ge(),m9(r,a)},useContext:function(r){return _e="useContext",Bt(),Ge(),la(r)},useEffect:function(r,a){return _e="useEffect",Bt(),Ge(),Fv(r,a)},useImperativeHandle:function(r,a,d){return _e="useImperativeHandle",Bt(),Ge(),p9(r,a,d)},useInsertionEffect:function(r,a){return _e="useInsertionEffect",Bt(),Ge(),d9(r,a)},useLayoutEffect:function(r,a){return _e="useLayoutEffect",Bt(),Ge(),f9(r,a)},useMemo:function(r,a){_e="useMemo",Bt(),Ge();var d=rt.current;rt.current=Fs;try{return v9(r,a)}finally{rt.current=d}},useReducer:function(r,a,d){_e="useReducer",Bt(),Ge();var p=rt.current;rt.current=Fs;try{return D8(r,a,d)}finally{rt.current=p}},useRef:function(r){return _e="useRef",Bt(),Ge(),l9()},useState:function(r){_e="useState",Bt(),Ge();var a=rt.current;rt.current=Fs;try{return j8(r)}finally{rt.current=a}},useDebugValue:function(r,a){return _e="useDebugValue",Bt(),Ge(),h9()},useDeferredValue:function(r){return _e="useDeferredValue",Bt(),Ge(),BO(r)},useTransition:function(){return _e="useTransition",Bt(),Ge(),WO()},useMutableSource:function(r,a,d){return _e="useMutableSource",Bt(),Ge(),void 0},useSyncExternalStore:function(r,a,d){return _e="useSyncExternalStore",Bt(),Ge(),o9(r,a)},useId:function(){return _e="useId",Bt(),Ge(),g9()},unstable_isNewReconciler:Q}}var Yc=t.unstable_now,nL=0,b9=-1,Uv=-1,x9=-1,Y8=!1,C9=!1;function rL(){return Y8}function Aoe(){C9=!0}function Ioe(){Y8=!1,C9=!1}function Doe(){Y8=C9,C9=!1}function aL(){return nL}function iL(){nL=Yc()}function J8(r){Uv=Yc(),r.actualStartTime<0&&(r.actualStartTime=Yc())}function oL(r){Uv=-1}function S9(r,a){if(Uv>=0){var d=Yc()-Uv;r.actualDuration+=d,a&&(r.selfBaseDuration=d),Uv=-1}}function Pl(r){if(b9>=0){var a=Yc()-b9;b9=-1;for(var d=r.return;d!==null;){switch(d.tag){case y:var p=d.stateNode;p.effectDuration+=a;return;case P:var g=d.stateNode;g.effectDuration+=a;return}d=d.return}}}function K8(r){if(x9>=0){var a=Yc()-x9;x9=-1;for(var d=r.return;d!==null;){switch(d.tag){case y:var p=d.stateNode;p!==null&&(p.passiveEffectDuration+=a);return;case P:var g=d.stateNode;g!==null&&(g.passiveEffectDuration+=a);return}d=d.return}}}function zl(){b9=Yc()}function X8(){x9=Yc()}function Q8(r){for(var a=r.child;a;)r.actualDuration+=a.actualDuration,a=a.sibling}function Us(r,a){if(r&&r.defaultProps){var d=en({},a),p=r.defaultProps;for(var g in p)d[g]===void 0&&(d[g]=p[g]);return d}return a}var e7={},t7,n7,r7,a7,i7,sL,k9,o7,s7,l7,Hv;{t7=new Set,n7=new Set,r7=new Set,a7=new Set,o7=new Set,i7=new Set,s7=new Set,l7=new Set,Hv=new Set;var lL=new Set;k9=function(r,a){if(!(r===null||typeof r=="function")){var d=a+"_"+r;lL.has(d)||(lL.add(d),c("%s(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",a,r))}},sL=function(r,a){if(a===void 0){var d=bn(r)||"Component";i7.has(d)||(i7.add(d),c("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",d))}},Object.defineProperty(e7,"_processChildContext",{enumerable:!1,value:function(){throw new Error("_processChildContext is not available in React 16+. This likely means you have multiple copies of React and are attempting to nest a React 15 tree inside a React 16 tree using unstable_renderSubtreeIntoContainer, which isn't supported. Try to make sure you have only one copy of React (and ideally, switch to ReactDOM.createPortal).")}}),Object.freeze(e7)}function u7(r,a,d,p){var g=r.memoizedState,x=d(p,g);{if(r.mode&Wn){br(!0);try{x=d(p,g)}finally{br(!1)}}sL(a,x)}var E=x==null?g:en({},g,x);if(r.memoizedState=E,r.lanes===Le){var N=r.updateQueue;N.baseState=E}}var c7={isMounted:O0,enqueueSetState:function(r,a,d){var p=kc(r),g=Oi(),x=Qc(p),E=Au(g,x);E.payload=a,d!=null&&(k9(d,"setState"),E.callback=d);var N=Zc(p,E,x);N!==null&&(Ea(N,p,x,g),Q2(N,p,x)),qd(p,x)},enqueueReplaceState:function(r,a,d){var p=kc(r),g=Oi(),x=Qc(p),E=Au(g,x);E.tag=EO,E.payload=a,d!=null&&(k9(d,"replaceState"),E.callback=d);var N=Zc(p,E,x);N!==null&&(Ea(N,p,x,g),Q2(N,p,x)),qd(p,x)},enqueueForceUpdate:function(r,a){var d=kc(r),p=Oi(),g=Qc(d),x=Au(p,g);x.tag=J2,a!=null&&(k9(a,"forceUpdate"),x.callback=a);var E=Zc(d,x,g);E!==null&&(Ea(E,d,g,p),Q2(E,d,g)),Qp(d,g)}};function uL(r,a,d,p,g,x,E){var N=r.stateNode;if(typeof N.shouldComponentUpdate=="function"){var O=N.shouldComponentUpdate(p,x,E);{if(r.mode&Wn){br(!0);try{O=N.shouldComponentUpdate(p,x,E)}finally{br(!1)}}O===void 0&&c("%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.",bn(a)||"Component")}return O}return a.prototype&&a.prototype.isPureReactComponent?!dt(d,p)||!dt(g,x):!0}function Poe(r,a,d){var p=r.stateNode;{var g=bn(a)||"Component",x=p.render;x||(a.prototype&&typeof a.prototype.render=="function"?c("%s(...): No `render` method found on the returned component instance: did you accidentally return an object from the constructor?",g):c("%s(...): No `render` method found on the returned component instance: you may have forgotten to define `render`.",g)),p.getInitialState&&!p.getInitialState.isReactClassApproved&&!p.state&&c("getInitialState was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Did you mean to define a state property instead?",g),p.getDefaultProps&&!p.getDefaultProps.isReactClassApproved&&c("getDefaultProps was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Use a static property to define defaultProps instead.",g),p.propTypes&&c("propTypes was defined as an instance property on %s. Use a static property to define propTypes instead.",g),p.contextType&&c("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",g),a.childContextTypes&&!Hv.has(a)&&(r.mode&Wn)===Rt&&(Hv.add(a),c(`%s uses the legacy childContextTypes API which is no longer supported and will be removed in the next major release. Use React.createContext() instead
182
+
183
+ .Learn more about this warning here: https://reactjs.org/link/legacy-context`,g)),a.contextTypes&&!Hv.has(a)&&(r.mode&Wn)===Rt&&(Hv.add(a),c(`%s uses the legacy contextTypes API which is no longer supported and will be removed in the next major release. Use React.createContext() with static contextType instead.
184
+
185
+ Learn more about this warning here: https://reactjs.org/link/legacy-context`,g)),p.contextTypes&&c("contextTypes was defined as an instance property on %s. Use a static property to define contextTypes instead.",g),a.contextType&&a.contextTypes&&!s7.has(a)&&(s7.add(a),c("%s declares both contextTypes and contextType static properties. The legacy contextTypes property will be ignored.",g)),typeof p.componentShouldUpdate=="function"&&c("%s has a method called componentShouldUpdate(). Did you mean shouldComponentUpdate()? The name is phrased as a question because the function is expected to return a value.",g),a.prototype&&a.prototype.isPureReactComponent&&typeof p.shouldComponentUpdate!="undefined"&&c("%s has a method called shouldComponentUpdate(). shouldComponentUpdate should not be used when extending React.PureComponent. Please extend React.Component if shouldComponentUpdate is used.",bn(a)||"A pure component"),typeof p.componentDidUnmount=="function"&&c("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",g),typeof p.componentDidReceiveProps=="function"&&c("%s has a method called componentDidReceiveProps(). But there is no such lifecycle method. If you meant to update the state in response to changing props, use componentWillReceiveProps(). If you meant to fetch data or run side-effects or mutations after React has updated the UI, use componentDidUpdate().",g),typeof p.componentWillRecieveProps=="function"&&c("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",g),typeof p.UNSAFE_componentWillRecieveProps=="function"&&c("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",g);var E=p.props!==d;p.props!==void 0&&E&&c("%s(...): When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",g,g),p.defaultProps&&c("Setting defaultProps as an instance property on %s is not supported and will be ignored. Instead, define defaultProps as a static property on %s.",g,g),typeof p.getSnapshotBeforeUpdate=="function"&&typeof p.componentDidUpdate!="function"&&!r7.has(a)&&(r7.add(a),c("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",bn(a))),typeof p.getDerivedStateFromProps=="function"&&c("%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.",g),typeof p.getDerivedStateFromError=="function"&&c("%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.",g),typeof a.getSnapshotBeforeUpdate=="function"&&c("%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.",g);var N=p.state;N&&(typeof N!="object"||nn(N))&&c("%s.state: must be set to an object or null",g),typeof p.getChildContext=="function"&&typeof a.childContextTypes!="object"&&c("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",g)}}function cL(r,a){a.updater=c7,r.stateNode=a,su(a,r),a._reactInternalInstance=e7}function dL(r,a,d){var p=!1,g=Oo,x=Oo,E=a.contextType;if("contextType"in a){var N=E===null||E!==void 0&&E.$$typeof===J&&E._context===void 0;if(!N&&!l7.has(a)){l7.add(a);var O="";E===void 0?O=" However, it is set to undefined. This can be caused by a typo or by mixing up named and default imports. This can also happen due to a circular dependency, so try moving the createContext() call to a separate file.":typeof E!="object"?O=" However, it is set to a "+typeof E+".":E.$$typeof===er?O=" Did you accidentally pass the Context.Provider instead?":E._context!==void 0?O=" Did you accidentally pass the Context.Consumer instead?":O=" However, it is set to an object with keys {"+Object.keys(E).join(", ")+"}.",c("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s",bn(a)||"Component",O)}}if(typeof E=="object"&&E!==null)x=la(E);else{g=V1(r,a,!0);var F=a.contextTypes;p=F!=null,x=p?B1(r,g):Oo}var V=new a(d,x);if(r.mode&Wn){br(!0);try{V=new a(d,x)}finally{br(!1)}}var re=r.memoizedState=V.state!==null&&V.state!==void 0?V.state:null;cL(r,V);{if(typeof a.getDerivedStateFromProps=="function"&&re===null){var te=bn(a)||"Component";n7.has(te)||(n7.add(te),c("`%s` uses `getDerivedStateFromProps` but its initial state is %s. This is not recommended. Instead, define the initial state by assigning an object to `this.state` in the constructor of `%s`. This ensures that `getDerivedStateFromProps` arguments have a consistent shape.",te,V.state===null?"null":"undefined",te))}if(typeof a.getDerivedStateFromProps=="function"||typeof V.getSnapshotBeforeUpdate=="function"){var ue=null,he=null,xe=null;if(typeof V.componentWillMount=="function"&&V.componentWillMount.__suppressDeprecationWarning!==!0?ue="componentWillMount":typeof V.UNSAFE_componentWillMount=="function"&&(ue="UNSAFE_componentWillMount"),typeof V.componentWillReceiveProps=="function"&&V.componentWillReceiveProps.__suppressDeprecationWarning!==!0?he="componentWillReceiveProps":typeof V.UNSAFE_componentWillReceiveProps=="function"&&(he="UNSAFE_componentWillReceiveProps"),typeof V.componentWillUpdate=="function"&&V.componentWillUpdate.__suppressDeprecationWarning!==!0?xe="componentWillUpdate":typeof V.UNSAFE_componentWillUpdate=="function"&&(xe="UNSAFE_componentWillUpdate"),ue!==null||he!==null||xe!==null){var et=bn(a)||"Component",Lt=typeof a.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";a7.has(et)||(a7.add(et),c(`Unsafe legacy lifecycles will not be called for components using new component APIs.
186
+
187
+ %s uses %s but also contains the following legacy lifecycles:%s%s%s
188
+
189
+ The above lifecycles should be removed. Learn more about this warning here:
190
+ https://reactjs.org/link/unsafe-component-lifecycles`,et,Lt,ue!==null?`
191
+ `+ue:"",he!==null?`
192
+ `+he:"",xe!==null?`
193
+ `+xe:""))}}}return p&&eO(r,g,x),V}function zoe(r,a){var d=a.state;typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount(),d!==a.state&&(c("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",Ht(r)||"Component"),c7.enqueueReplaceState(a,a.state,null))}function fL(r,a,d,p){var g=a.state;if(typeof a.componentWillReceiveProps=="function"&&a.componentWillReceiveProps(d,p),typeof a.UNSAFE_componentWillReceiveProps=="function"&&a.UNSAFE_componentWillReceiveProps(d,p),a.state!==g){{var x=Ht(r)||"Component";t7.has(x)||(t7.add(x),c("%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",x))}c7.enqueueReplaceState(a,a.state,null)}}function d7(r,a,d,p){Poe(r,a,d);var g=r.stateNode;g.props=d,g.state=r.memoizedState,g.refs={},b8(r);var x=a.contextType;if(typeof x=="object"&&x!==null)g.context=la(x);else{var E=V1(r,a,!0);g.context=B1(r,E)}{if(g.state===d){var N=bn(a)||"Component";o7.has(N)||(o7.add(N),c("%s: It is not recommended to assign props directly to state because updates to props won't be reflected in state. In most cases, it is better to use props directly.",N))}r.mode&Wn&&zs.recordLegacyContextWarning(r,g),zs.recordUnsafeLifecycleWarnings(r,g)}g.state=r.memoizedState;var O=a.getDerivedStateFromProps;if(typeof O=="function"&&(u7(r,a,O,d),g.state=r.memoizedState),typeof a.getDerivedStateFromProps!="function"&&typeof g.getSnapshotBeforeUpdate!="function"&&(typeof g.UNSAFE_componentWillMount=="function"||typeof g.componentWillMount=="function")&&(zoe(r,g),e9(r,d,g,p),g.state=r.memoizedState),typeof g.componentDidMount=="function"){var F=vn;F|=_s,(r.mode&Mn)!==Rt&&(F|=ml),r.flags|=F}}function joe(r,a,d,p){var g=r.stateNode,x=r.memoizedProps;g.props=x;var E=g.context,N=a.contextType,O=Oo;if(typeof N=="object"&&N!==null)O=la(N);else{var F=V1(r,a,!0);O=B1(r,F)}var V=a.getDerivedStateFromProps,re=typeof V=="function"||typeof g.getSnapshotBeforeUpdate=="function";!re&&(typeof g.UNSAFE_componentWillReceiveProps=="function"||typeof g.componentWillReceiveProps=="function")&&(x!==d||E!==O)&&fL(r,g,d,O),TO();var te=r.memoizedState,ue=g.state=te;if(e9(r,d,g,p),ue=r.memoizedState,x===d&&te===ue&&!D2()&&!t9()){if(typeof g.componentDidMount=="function"){var he=vn;he|=_s,(r.mode&Mn)!==Rt&&(he|=ml),r.flags|=he}return!1}typeof V=="function"&&(u7(r,a,V,d),ue=r.memoizedState);var xe=t9()||uL(r,a,x,d,te,ue,O);if(xe){if(!re&&(typeof g.UNSAFE_componentWillMount=="function"||typeof g.componentWillMount=="function")&&(typeof g.componentWillMount=="function"&&g.componentWillMount(),typeof g.UNSAFE_componentWillMount=="function"&&g.UNSAFE_componentWillMount()),typeof g.componentDidMount=="function"){var et=vn;et|=_s,(r.mode&Mn)!==Rt&&(et|=ml),r.flags|=et}}else{if(typeof g.componentDidMount=="function"){var Lt=vn;Lt|=_s,(r.mode&Mn)!==Rt&&(Lt|=ml),r.flags|=Lt}r.memoizedProps=d,r.memoizedState=ue}return g.props=d,g.state=ue,g.context=O,xe}function Foe(r,a,d,p,g){var x=a.stateNode;_O(r,a);var E=a.memoizedProps,N=a.type===a.elementType?E:Us(a.type,E);x.props=N;var O=a.pendingProps,F=x.context,V=d.contextType,re=Oo;if(typeof V=="object"&&V!==null)re=la(V);else{var te=V1(a,d,!0);re=B1(a,te)}var ue=d.getDerivedStateFromProps,he=typeof ue=="function"||typeof x.getSnapshotBeforeUpdate=="function";!he&&(typeof x.UNSAFE_componentWillReceiveProps=="function"||typeof x.componentWillReceiveProps=="function")&&(E!==O||F!==re)&&fL(a,x,p,re),TO();var xe=a.memoizedState,et=x.state=xe;if(e9(a,p,x,g),et=a.memoizedState,E===O&&xe===et&&!D2()&&!t9()&&!Ne)return typeof x.componentDidUpdate=="function"&&(E!==r.memoizedProps||xe!==r.memoizedState)&&(a.flags|=vn),typeof x.getSnapshotBeforeUpdate=="function"&&(E!==r.memoizedProps||xe!==r.memoizedState)&&(a.flags|=Xr),!1;typeof ue=="function"&&(u7(a,d,ue,p),et=a.memoizedState);var Lt=t9()||uL(a,d,N,p,xe,et,re)||Ne;return Lt?(!he&&(typeof x.UNSAFE_componentWillUpdate=="function"||typeof x.componentWillUpdate=="function")&&(typeof x.componentWillUpdate=="function"&&x.componentWillUpdate(p,et,re),typeof x.UNSAFE_componentWillUpdate=="function"&&x.UNSAFE_componentWillUpdate(p,et,re)),typeof x.componentDidUpdate=="function"&&(a.flags|=vn),typeof x.getSnapshotBeforeUpdate=="function"&&(a.flags|=Xr)):(typeof x.componentDidUpdate=="function"&&(E!==r.memoizedProps||xe!==r.memoizedState)&&(a.flags|=vn),typeof x.getSnapshotBeforeUpdate=="function"&&(E!==r.memoizedProps||xe!==r.memoizedState)&&(a.flags|=Xr),a.memoizedProps=p,a.memoizedState=et),x.props=p,x.state=et,x.context=re,Lt}function Af(r,a){return{value:r,source:a,stack:bs(a),digest:null}}function f7(r,a,d){return{value:r,source:null,stack:d!=null?d:null,digest:a!=null?a:null}}function Uoe(r,a){return!0}function p7(r,a){try{var d=Uoe(r,a);if(d===!1)return;var p=a.value,g=a.source,x=a.stack,E=x!==null?x:"";if(p!=null&&p._suppressLogging){if(r.tag===v)return;console.error(p)}var N=g?Ht(g):null,O=N?"The above error occurred in the <"+N+"> component:":"The above error occurred in one of your React components:",F;if(r.tag===y)F=`Consider adding an error boundary to your tree to customize error handling behavior.
194
+ Visit https://reactjs.org/link/error-boundaries to learn more about error boundaries.`;else{var V=Ht(r)||"Anonymous";F="React will try to recreate this component tree from scratch "+("using the error boundary you provided, "+V+".")}var re=O+`
195
+ `+E+`
196
+
197
+ `+(""+F);console.error(re)}catch(te){setTimeout(function(){throw te})}}var Hoe=typeof WeakMap=="function"?WeakMap:Map;function pL(r,a,d){var p=Au(Xn,d);p.tag=y8,p.payload={element:null};var g=a.value;return p.callback=function(){Ale(g),p7(r,a)},p}function h7(r,a,d){var p=Au(Xn,d);p.tag=y8;var g=r.type.getDerivedStateFromError;if(typeof g=="function"){var x=a.value;p.payload=function(){return g(x)},p.callback=function(){kA(r),p7(r,a)}}var E=r.stateNode;return E!==null&&typeof E.componentDidCatch=="function"&&(p.callback=function(){kA(r),p7(r,a),typeof g!="function"&&Ole(this);var O=a.value,F=a.stack;this.componentDidCatch(O,{componentStack:F!==null?F:""}),typeof g!="function"&&(ii(r.lanes,jt)||c("%s: Error boundaries should implement getDerivedStateFromError(). In that method, return a state update to display an error message or fallback UI.",Ht(r)||"Unknown"))}),p}function hL(r,a,d){var p=r.pingCache,g;if(p===null?(p=r.pingCache=new Hoe,g=new Set,p.set(a,g)):(g=p.get(a),g===void 0&&(g=new Set,p.set(a,g))),!g.has(d)){g.add(d);var x=Ile.bind(null,r,a,d);ri&&ag(r,d),a.then(x,x)}}function Voe(r,a,d,p){var g=r.updateQueue;if(g===null){var x=new Set;x.add(d),r.updateQueue=x}else g.add(d)}function Boe(r,a){var d=r.tag;if((r.mode&an)===Rt&&(d===m||d===U||d===W)){var p=r.alternate;p?(r.updateQueue=p.updateQueue,r.memoizedState=p.memoizedState,r.lanes=p.lanes):(r.updateQueue=null,r.memoizedState=null)}}function mL(r){var a=r;do{if(a.tag===Z&&Soe(a))return a;a=a.return}while(a!==null);return null}function vL(r,a,d,p,g){if((r.mode&an)===Rt){if(r===a)r.flags|=aa;else{if(r.flags|=St,d.flags|=Zp,d.flags&=-52805,d.tag===v){var x=d.alternate;if(x===null)d.tag=se;else{var E=Au(Xn,jt);E.tag=J2,Zc(d,E,jt)}}d.lanes=Kt(d.lanes,jt)}return r}return r.flags|=aa,r.lanes=g,r}function $oe(r,a,d,p,g){if(d.flags|=Hd,ri&&ag(r,g),p!==null&&typeof p=="object"&&typeof p.then=="function"){var x=p;Boe(d),Ha()&&d.mode&an&&sO();var E=mL(a);if(E!==null){E.flags&=~Ta,vL(E,a,d,r,g),E.mode&an&&hL(r,x,g),Voe(E,r,x);return}else{if(!F0(g)){hL(r,x,g),q7();return}var N=new Error("A component suspended while responding to synchronous input. This will cause the UI to be replaced with a loading indicator. To fix, updates that suspend should be wrapped with startTransition.");p=N}}else if(Ha()&&d.mode&an){sO();var O=mL(a);if(O!==null){(O.flags&aa)===Tt&&(O.flags|=Ta),vL(O,a,d,r,g),o8(Af(p,d));return}}p=Af(p,d),Sle(p);var F=a;do{switch(F.tag){case y:{var V=p;F.flags|=aa;var re=nf(g);F.lanes=Kt(F.lanes,re);var te=pL(F,V,re);x8(F,te);return}case v:var ue=p,he=F.type,xe=F.stateNode;if((F.flags&St)===Tt&&(typeof he.getDerivedStateFromError=="function"||xe!==null&&typeof xe.componentDidCatch=="function"&&!mA(xe))){F.flags|=aa;var et=nf(g);F.lanes=Kt(F.lanes,et);var Lt=h7(F,ue,et);x8(F,Lt);return}break}F=F.return}while(F!==null)}function Zoe(){return null}var Vv=n.ReactCurrentOwner,Hs=!1,m7,Bv,v7,g7,y7,If,w7,E9,$v;m7={},Bv={},v7={},g7={},y7={},If=!1,w7={},E9={},$v={};function Mi(r,a,d,p){r===null?a.child=wO(a,null,d,p):a.child=q1(a,r.child,d,p)}function Woe(r,a,d,p){a.child=q1(a,r.child,null,p),a.child=q1(a,null,d,p)}function gL(r,a,d,p,g){if(a.type!==a.elementType){var x=d.propTypes;x&&Ds(x,p,"prop",bn(d))}var E=d.render,N=a.ref,O,F;Y1(a,g),Ei(a);{if(Vv.current=a,Kr(!0),O=th(r,a,E,p,N,g),F=nh(),a.mode&Wn){br(!0);try{O=th(r,a,E,p,N,g),F=nh()}finally{br(!1)}}Kr(!1)}return _i(),r!==null&&!Hs?(AO(r,a,g),Iu(r,a,g)):(Ha()&&F&&e8(a),a.flags|=_o,Mi(r,a,O,g),a.child)}function yL(r,a,d,p,g){if(r===null){var x=d.type;if(Kle(x)&&d.compare===null&&d.defaultProps===void 0){var E=x;return E=ch(x),a.tag=W,a.type=E,C7(a,x),wL(r,a,E,p,g)}{var N=x.propTypes;if(N&&Ds(N,p,"prop",bn(x)),d.defaultProps!==void 0){var O=bn(x)||"Unknown";$v[O]||(c("%s: Support for defaultProps will be removed from memo components in a future major release. Use JavaScript default parameters instead.",O),$v[O]=!0)}}var F=aw(d.type,null,p,a,a.mode,g);return F.ref=a.ref,F.return=a,a.child=F,F}{var V=d.type,re=V.propTypes;re&&Ds(re,p,"prop",bn(V))}var te=r.child,ue=R7(r,g);if(!ue){var he=te.memoizedProps,xe=d.compare;if(xe=xe!==null?xe:dt,xe(he,p)&&r.ref===a.ref)return Iu(r,a,g)}a.flags|=_o;var et=Ff(te,p);return et.ref=a.ref,et.return=a,a.child=et,et}function wL(r,a,d,p,g){if(a.type!==a.elementType){var x=a.elementType;if(x.$$typeof===Vt){var E=x,N=E._payload,O=E._init;try{x=O(N)}catch(re){x=null}var F=x&&x.propTypes;F&&Ds(F,p,"prop",bn(x))}}if(r!==null){var V=r.memoizedProps;if(dt(V,p)&&r.ref===a.ref&&a.type===r.type)if(Hs=!1,a.pendingProps=p=V,R7(r,g))(r.flags&Zp)!==Tt&&(Hs=!0);else return a.lanes=r.lanes,Iu(r,a,g)}return b7(r,a,d,p,g)}function bL(r,a,d){var p=a.pendingProps,g=p.children,x=r!==null?r.memoizedState:null;if(p.mode==="hidden"||H)if((a.mode&an)===Rt){var E={baseLanes:Le,cachePool:null,transitions:null};a.memoizedState=E,j9(a,d)}else if(ii(d,ai)){var re={baseLanes:Le,cachePool:null,transitions:null};a.memoizedState=re;var te=x!==null?x.baseLanes:d;j9(a,te)}else{var N=null,O;if(x!==null){var F=x.baseLanes;O=Kt(F,d)}else O=d;a.lanes=a.childLanes=ai;var V={baseLanes:O,cachePool:N,transitions:null};return a.memoizedState=V,a.updateQueue=null,j9(a,O),null}else{var ue;x!==null?(ue=Kt(x.baseLanes,d),a.memoizedState=null):ue=d,j9(a,ue)}return Mi(r,a,g,d),a.child}function qoe(r,a,d){var p=a.pendingProps;return Mi(r,a,p,d),a.child}function Goe(r,a,d){var p=a.pendingProps.children;return Mi(r,a,p,d),a.child}function Yoe(r,a,d){{a.flags|=vn;{var p=a.stateNode;p.effectDuration=0,p.passiveEffectDuration=0}}var g=a.pendingProps,x=g.children;return Mi(r,a,x,d),a.child}function xL(r,a){var d=a.ref;(r===null&&d!==null||r!==null&&r.ref!==d)&&(a.flags|=Er,a.flags|=_c)}function b7(r,a,d,p,g){if(a.type!==a.elementType){var x=d.propTypes;x&&Ds(x,p,"prop",bn(d))}var E;{var N=V1(a,d,!0);E=B1(a,N)}var O,F;Y1(a,g),Ei(a);{if(Vv.current=a,Kr(!0),O=th(r,a,d,p,E,g),F=nh(),a.mode&Wn){br(!0);try{O=th(r,a,d,p,E,g),F=nh()}finally{br(!1)}}Kr(!1)}return _i(),r!==null&&!Hs?(AO(r,a,g),Iu(r,a,g)):(Ha()&&F&&e8(a),a.flags|=_o,Mi(r,a,O,g),a.child)}function CL(r,a,d,p,g){{switch(fue(a)){case!1:{var x=a.stateNode,E=a.type,N=new E(a.memoizedProps,x.context),O=N.state;x.updater.enqueueSetState(x,O,null);break}case!0:{a.flags|=St,a.flags|=aa;var F=new Error("Simulated error coming from DevTools"),V=nf(g);a.lanes=Kt(a.lanes,V);var re=h7(a,Af(F,a),V);x8(a,re);break}}if(a.type!==a.elementType){var te=d.propTypes;te&&Ds(te,p,"prop",bn(d))}}var ue;Ll(d)?(ue=!0,z2(a)):ue=!1,Y1(a,g);var he=a.stateNode,xe;he===null?(T9(r,a),dL(a,d,p),d7(a,d,p,g),xe=!0):r===null?xe=joe(a,d,p,g):xe=Foe(r,a,d,p,g);var et=x7(r,a,d,xe,ue,g);{var Lt=a.stateNode;xe&&Lt.props!==p&&(If||c("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",Ht(a)||"a component"),If=!0)}return et}function x7(r,a,d,p,g,x){xL(r,a);var E=(a.flags&St)!==Tt;if(!p&&!E)return g&&rO(a,d,!1),Iu(r,a,x);var N=a.stateNode;Vv.current=a;var O;if(E&&typeof d.getDerivedStateFromError!="function")O=null,oL();else{Ei(a);{if(Kr(!0),O=N.render(),a.mode&Wn){br(!0);try{N.render()}finally{br(!1)}}Kr(!1)}_i()}return a.flags|=_o,r!==null&&E?Woe(r,a,O,x):Mi(r,a,O,x),a.memoizedState=N.state,g&&rO(a,d,!0),a.child}function SL(r){var a=r.stateNode;a.pendingContext?tO(r,a.pendingContext,a.pendingContext!==a.context):a.context&&tO(r,a.context,!1),C8(r,a.containerInfo)}function Joe(r,a,d){if(SL(a),r===null)throw new Error("Should have a current fiber. This is a bug in React.");var p=a.pendingProps,g=a.memoizedState,x=g.element;_O(r,a),e9(a,p,null,d);var E=a.memoizedState;a.stateNode;var N=E.element;if(g.isDehydrated){var O={element:N,isDehydrated:!1,cache:E.cache,pendingSuspenseBoundaries:E.pendingSuspenseBoundaries,transitions:E.transitions},F=a.updateQueue;if(F.baseState=O,a.memoizedState=O,a.flags&Ta){var V=Af(new Error("There was an error while hydrating. Because the error happened outside of a Suspense boundary, the entire root will switch to client rendering."),a);return kL(r,a,N,d,V)}else if(N!==x){var re=Af(new Error("This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."),a);return kL(r,a,N,d,re)}else{Qie(a);var te=wO(a,null,N,d);a.child=te;for(var ue=te;ue;)ue.flags=ue.flags&~wr|ei,ue=ue.sibling}}else{if(W1(),N===x)return Iu(r,a,d);Mi(r,a,N,d)}return a.child}function kL(r,a,d,p,g){return W1(),o8(g),a.flags|=Ta,Mi(r,a,d,p),a.child}function Koe(r,a,d){NO(a),r===null&&i8(a);var p=a.type,g=a.pendingProps,x=r!==null?r.memoizedProps:null,E=g.children,N=U6(p,g);return N?E=null:x!==null&&U6(p,x)&&(a.flags|=qi),xL(r,a),Mi(r,a,E,d),a.child}function Xoe(r,a){return r===null&&i8(a),null}function Qoe(r,a,d,p){T9(r,a);var g=a.pendingProps,x=d,E=x._payload,N=x._init,O=N(E);a.type=O;var F=a.tag=Xle(O),V=Us(O,g),re;switch(F){case m:return C7(a,O),a.type=O=ch(O),re=b7(null,a,O,V,p),re;case v:return a.type=O=X7(O),re=CL(null,a,O,V,p),re;case U:return a.type=O=Q7(O),re=gL(null,a,O,V,p),re;case B:{if(a.type!==a.elementType){var te=O.propTypes;te&&Ds(te,V,"prop",bn(O))}return re=yL(null,a,O,Us(O.type,V),p),re}}var ue="";throw O!==null&&typeof O=="object"&&O.$$typeof===Vt&&(ue=" Did you wrap a component in React.lazy() more than once?"),new Error("Element type is invalid. Received a promise that resolves to: "+O+". "+("Lazy element type must resolve to a class or function."+ue))}function ese(r,a,d,p,g){T9(r,a),a.tag=v;var x;return Ll(d)?(x=!0,z2(a)):x=!1,Y1(a,g),dL(a,d,p),d7(a,d,p,g),x7(null,a,d,!0,x,g)}function tse(r,a,d,p){T9(r,a);var g=a.pendingProps,x;{var E=V1(a,d,!1);x=B1(a,E)}Y1(a,p);var N,O;Ei(a);{if(d.prototype&&typeof d.prototype.render=="function"){var F=bn(d)||"Unknown";m7[F]||(c("The <%s /> component appears to have a render method, but doesn't extend React.Component. This is likely to cause errors. Change %s to extend React.Component instead.",F,F),m7[F]=!0)}a.mode&Wn&&zs.recordLegacyContextWarning(a,null),Kr(!0),Vv.current=a,N=th(null,a,d,g,x,p),O=nh(),Kr(!1)}if(_i(),a.flags|=_o,typeof N=="object"&&N!==null&&typeof N.render=="function"&&N.$$typeof===void 0){var V=bn(d)||"Unknown";Bv[V]||(c("The <%s /> component appears to be a function component that returns a class instance. Change %s to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. `%s.prototype = React.Component.prototype`. Don't use an arrow function since it cannot be called with `new` by React.",V,V,V),Bv[V]=!0)}if(typeof N=="object"&&N!==null&&typeof N.render=="function"&&N.$$typeof===void 0){{var re=bn(d)||"Unknown";Bv[re]||(c("The <%s /> component appears to be a function component that returns a class instance. Change %s to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. `%s.prototype = React.Component.prototype`. Don't use an arrow function since it cannot be called with `new` by React.",re,re,re),Bv[re]=!0)}a.tag=v,a.memoizedState=null,a.updateQueue=null;var te=!1;return Ll(d)?(te=!0,z2(a)):te=!1,a.memoizedState=N.state!==null&&N.state!==void 0?N.state:null,b8(a),cL(a,N),d7(a,d,g,p),x7(null,a,d,!0,te,p)}else{if(a.tag=m,a.mode&Wn){br(!0);try{N=th(null,a,d,g,x,p),O=nh()}finally{br(!1)}}return Ha()&&O&&e8(a),Mi(null,a,N,p),C7(a,d),a.child}}function C7(r,a){{if(a&&a.childContextTypes&&c("%s(...): childContextTypes cannot be defined on a function component.",a.displayName||a.name||"Component"),r.ref!==null){var d="",p=Ia();p&&(d+=`
198
+
199
+ Check the render method of \``+p+"`.");var g=p||"",x=r._debugSource;x&&(g=x.fileName+":"+x.lineNumber),y7[g]||(y7[g]=!0,c("Function components cannot be given refs. Attempts to access this ref will fail. Did you mean to use React.forwardRef()?%s",d))}if(a.defaultProps!==void 0){var E=bn(a)||"Unknown";$v[E]||(c("%s: Support for defaultProps will be removed from function components in a future major release. Use JavaScript default parameters instead.",E),$v[E]=!0)}if(typeof a.getDerivedStateFromProps=="function"){var N=bn(a)||"Unknown";g7[N]||(c("%s: Function components do not support getDerivedStateFromProps.",N),g7[N]=!0)}if(typeof a.contextType=="object"&&a.contextType!==null){var O=bn(a)||"Unknown";v7[O]||(c("%s: Function components do not support contextType.",O),v7[O]=!0)}}}var S7={dehydrated:null,treeContext:null,retryLane:En};function k7(r){return{baseLanes:r,cachePool:Zoe(),transitions:null}}function nse(r,a){var d=null;return{baseLanes:Kt(r.baseLanes,a),cachePool:d,transitions:r.transitions}}function rse(r,a,d,p){if(a!==null){var g=a.memoizedState;if(g===null)return!1}return E8(r,Av)}function ase(r,a){return rf(r.childLanes,a)}function EL(r,a,d){var p=a.pendingProps;pue(a)&&(a.flags|=St);var g=js.current,x=!1,E=(a.flags&St)!==Tt;if(E||rse(g,r)?(x=!0,a.flags&=~St):(r===null||r.memoizedState!==null)&&(g=Coe(g,LO)),g=K1(g),qc(a,g),r===null){i8(a);var N=a.memoizedState;if(N!==null){var O=N.dehydrated;if(O!==null)return use(a,O)}var F=p.children,V=p.fallback;if(x){var re=ise(a,F,V,d),te=a.child;return te.memoizedState=k7(d),a.memoizedState=S7,re}else return E7(a,F)}else{var ue=r.memoizedState;if(ue!==null){var he=ue.dehydrated;if(he!==null)return cse(r,a,E,p,he,ue,d)}if(x){var xe=p.fallback,et=p.children,Lt=sse(r,a,et,xe,d),bt=a.child,wn=r.child.memoizedState;return bt.memoizedState=wn===null?k7(d):nse(wn,d),bt.childLanes=ase(r,d),a.memoizedState=S7,Lt}else{var pn=p.children,ie=ose(r,a,pn,d);return a.memoizedState=null,ie}}}function E7(r,a,d){var p=r.mode,g={mode:"visible",children:a},x=_7(g,p);return x.return=r,r.child=x,x}function ise(r,a,d,p){var g=r.mode,x=r.child,E={mode:"hidden",children:a},N,O;return(g&an)===Rt&&x!==null?(N=x,N.childLanes=Le,N.pendingProps=E,r.mode&Rn&&(N.actualDuration=0,N.actualStartTime=-1,N.selfBaseDuration=0,N.treeBaseDuration=0),O=td(d,g,p,null)):(N=_7(E,g),O=td(d,g,p,null)),N.return=r,O.return=r,N.sibling=O,r.child=N,O}function _7(r,a,d){return _A(r,a,Le,null)}function _L(r,a){return Ff(r,a)}function ose(r,a,d,p){var g=r.child,x=g.sibling,E=_L(g,{mode:"visible",children:d});if((a.mode&an)===Rt&&(E.lanes=p),E.return=a,E.sibling=null,x!==null){var N=a.deletions;N===null?(a.deletions=[x],a.flags|=Wi):N.push(x)}return a.child=E,E}function sse(r,a,d,p,g){var x=a.mode,E=r.child,N=E.sibling,O={mode:"hidden",children:d},F;if((x&an)===Rt&&a.child!==E){var V=a.child;F=V,F.childLanes=Le,F.pendingProps=O,a.mode&Rn&&(F.actualDuration=0,F.actualStartTime=-1,F.selfBaseDuration=E.selfBaseDuration,F.treeBaseDuration=E.treeBaseDuration),a.deletions=null}else F=_L(E,O),F.subtreeFlags=E.subtreeFlags&Hr;var re;return N!==null?re=Ff(N,p):(re=td(p,x,g,null),re.flags|=wr),re.return=a,F.return=a,F.sibling=re,a.child=F,re}function _9(r,a,d,p){p!==null&&o8(p),q1(a,r.child,null,d);var g=a.pendingProps,x=g.children,E=E7(a,x);return E.flags|=wr,a.memoizedState=null,E}function lse(r,a,d,p,g){var x=a.mode,E={mode:"visible",children:d},N=_7(E,x),O=td(p,x,g,null);return O.flags|=wr,N.return=a,O.return=a,N.sibling=O,a.child=N,(a.mode&an)!==Rt&&q1(a,r.child,null,g),O}function use(r,a,d){return(r.mode&an)===Rt?(c("Cannot hydrate Suspense in legacy mode. Switch from ReactDOM.hydrate(element, container) to ReactDOMClient.hydrateRoot(container, <App />).render(element) or remove the Suspense components from the server rendered components."),r.lanes=jt):$6(a)?r.lanes=Ra:r.lanes=ai,null}function cse(r,a,d,p,g,x,E){if(d)if(a.flags&Ta){a.flags&=~Ta;var ie=f7(new Error("There was an error while hydrating this Suspense boundary. Switched to client rendering."));return _9(r,a,E,ie)}else{if(a.memoizedState!==null)return a.child=r.child,a.flags|=St,null;var Ce=p.children,oe=p.fallback,je=lse(r,a,Ce,oe,E),at=a.child;return at.memoizedState=k7(E),a.memoizedState=S7,je}else{if(Kie(),(a.mode&an)===Rt)return _9(r,a,E,null);if($6(g)){var N,O,F;{var V=hie(g);N=V.digest,O=V.message,F=V.stack}var re;O?re=new Error(O):re=new Error("The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering.");var te=f7(re,N,F);return _9(r,a,E,te)}var ue=ii(E,r.childLanes);if(Hs||ue){var he=z9();if(he!==null){var xe=qm(he,E);if(xe!==En&&xe!==x.retryLane){x.retryLane=xe;var et=Xn;no(r,xe),Ea(he,r,xe,et)}}q7();var Lt=f7(new Error("This Suspense boundary received an update before it finished hydrating. This caused the boundary to switch to client rendering. The usual way to fix this is to wrap the original update in startTransition."));return _9(r,a,E,Lt)}else if(YN(g)){a.flags|=St,a.child=r.child;var bt=Dle.bind(null,r);return mie(g,bt),null}else{eoe(a,g,x.treeContext);var wn=p.children,pn=E7(a,wn);return pn.flags|=ei,pn}}}function TL(r,a,d){r.lanes=Kt(r.lanes,a);var p=r.alternate;p!==null&&(p.lanes=Kt(p.lanes,a)),v8(r.return,a,d)}function dse(r,a,d){for(var p=a;p!==null;){if(p.tag===Z){var g=p.memoizedState;g!==null&&TL(p,d,r)}else if(p.tag===ve)TL(p,d,r);else if(p.child!==null){p.child.return=p,p=p.child;continue}if(p===r)return;for(;p.sibling===null;){if(p.return===null||p.return===r)return;p=p.return}p.sibling.return=p.return,p=p.sibling}}function fse(r){for(var a=r,d=null;a!==null;){var p=a.alternate;p!==null&&a9(p)===null&&(d=a),a=a.sibling}return d}function pse(r){if(r!==void 0&&r!=="forwards"&&r!=="backwards"&&r!=="together"&&!w7[r])if(w7[r]=!0,typeof r=="string")switch(r.toLowerCase()){case"together":case"forwards":case"backwards":{c('"%s" is not a valid value for revealOrder on <SuspenseList />. Use lowercase "%s" instead.',r,r.toLowerCase());break}case"forward":case"backward":{c('"%s" is not a valid value for revealOrder on <SuspenseList />. React uses the -s suffix in the spelling. Use "%ss" instead.',r,r.toLowerCase());break}default:c('"%s" is not a supported revealOrder on <SuspenseList />. Did you mean "together", "forwards" or "backwards"?',r);break}else c('%s is not a supported value for revealOrder on <SuspenseList />. Did you mean "together", "forwards" or "backwards"?',r)}function hse(r,a){r!==void 0&&!E9[r]&&(r!=="collapsed"&&r!=="hidden"?(E9[r]=!0,c('"%s" is not a supported value for tail on <SuspenseList />. Did you mean "collapsed" or "hidden"?',r)):a!=="forwards"&&a!=="backwards"&&(E9[r]=!0,c('<SuspenseList tail="%s" /> is only valid if revealOrder is "forwards" or "backwards". Did you mean to specify revealOrder="forwards"?',r)))}function RL(r,a){{var d=nn(r),p=!d&&typeof Yt(r)=="function";if(d||p){var g=d?"array":"iterable";return c("A nested %s was passed to row #%s in <SuspenseList />. Wrap it in an additional SuspenseList to configure its revealOrder: <SuspenseList revealOrder=...> ... <SuspenseList revealOrder=...>{%s}</SuspenseList> ... </SuspenseList>",g,a,g),!1}}return!0}function mse(r,a){if((a==="forwards"||a==="backwards")&&r!==void 0&&r!==null&&r!==!1)if(nn(r)){for(var d=0;d<r.length;d++)if(!RL(r[d],d))return}else{var p=Yt(r);if(typeof p=="function"){var g=p.call(r);if(g)for(var x=g.next(),E=0;!x.done;x=g.next()){if(!RL(x.value,E))return;E++}}else c('A single row was passed to a <SuspenseList revealOrder="%s" />. This is not useful since it needs multiple rows. Did you mean to pass multiple children or an array?',a)}}function T7(r,a,d,p,g){var x=r.memoizedState;x===null?r.memoizedState={isBackwards:a,rendering:null,renderingStartTime:0,last:p,tail:d,tailMode:g}:(x.isBackwards=a,x.rendering=null,x.renderingStartTime=0,x.last=p,x.tail=d,x.tailMode=g)}function ML(r,a,d){var p=a.pendingProps,g=p.revealOrder,x=p.tail,E=p.children;pse(g),hse(x,g),mse(E,g),Mi(r,a,E,d);var N=js.current,O=E8(N,Av);if(O)N=_8(N,Av),a.flags|=St;else{var F=r!==null&&(r.flags&St)!==Tt;F&&dse(a,a.child,d),N=K1(N)}if(qc(a,N),(a.mode&an)===Rt)a.memoizedState=null;else switch(g){case"forwards":{var V=fse(a.child),re;V===null?(re=a.child,a.child=null):(re=V.sibling,V.sibling=null),T7(a,!1,re,V,x);break}case"backwards":{var te=null,ue=a.child;for(a.child=null;ue!==null;){var he=ue.alternate;if(he!==null&&a9(he)===null){a.child=ue;break}var xe=ue.sibling;ue.sibling=te,te=ue,ue=xe}T7(a,!0,te,null,x);break}case"together":{T7(a,!1,null,null,void 0);break}default:a.memoizedState=null}return a.child}function vse(r,a,d){C8(a,a.stateNode.containerInfo);var p=a.pendingProps;return r===null?a.child=q1(a,null,p,d):Mi(r,a,p,d),a.child}var NL=!1;function gse(r,a,d){var p=a.type,g=p._context,x=a.pendingProps,E=a.memoizedProps,N=x.value;{"value"in x||NL||(NL=!0,c("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?"));var O=a.type.propTypes;O&&Ds(O,x,"prop","Context.Provider")}if(CO(a,g,N),E!==null){var F=E.value;if(Pe(F,N)){if(E.children===x.children&&!D2())return Iu(r,a,d)}else poe(a,g,d)}var V=x.children;return Mi(r,a,V,d),a.child}var OL=!1;function yse(r,a,d){var p=a.type;p._context===void 0?p!==p.Consumer&&(OL||(OL=!0,c("Rendering <Context> directly is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?"))):p=p._context;var g=a.pendingProps,x=g.children;typeof x!="function"&&c("A context consumer was rendered with multiple children, or a child that isn't a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it."),Y1(a,d);var E=la(p);Ei(a);var N;return Vv.current=a,Kr(!0),N=x(E),Kr(!1),_i(),a.flags|=_o,Mi(r,a,N,d),a.child}function Zv(){Hs=!0}function T9(r,a){(a.mode&an)===Rt&&r!==null&&(r.alternate=null,a.alternate=null,a.flags|=wr)}function Iu(r,a,d){return r!==null&&(a.dependencies=r.dependencies),oL(),rg(a.lanes),ii(d,a.childLanes)?(doe(r,a),a.child):null}function wse(r,a,d){{var p=a.return;if(p===null)throw new Error("Cannot swap the root fiber.");if(r.alternate=null,a.alternate=null,d.index=a.index,d.sibling=a.sibling,d.return=a.return,d.ref=a.ref,a===p.child)p.child=d;else{var g=p.child;if(g===null)throw new Error("Expected parent to have a child.");for(;g.sibling!==a;)if(g=g.sibling,g===null)throw new Error("Expected to find the previous sibling.");g.sibling=d}var x=p.deletions;return x===null?(p.deletions=[r],p.flags|=Wi):x.push(r),d.flags|=wr,d}}function R7(r,a){var d=r.lanes;return!!ii(d,a)}function bse(r,a,d){switch(a.tag){case y:SL(a),a.stateNode,W1();break;case C:NO(a);break;case v:{var p=a.type;Ll(p)&&z2(a);break}case S:C8(a,a.stateNode.containerInfo);break;case j:{var g=a.memoizedProps.value,x=a.type._context;CO(a,x,g);break}case P:{var E=ii(d,a.childLanes);E&&(a.flags|=vn);{var N=a.stateNode;N.effectDuration=0,N.passiveEffectDuration=0}}break;case Z:{var O=a.memoizedState;if(O!==null){if(O.dehydrated!==null)return qc(a,K1(js.current)),a.flags|=St,null;var F=a.child,V=F.childLanes;if(ii(d,V))return EL(r,a,d);qc(a,K1(js.current));var re=Iu(r,a,d);return re!==null?re.sibling:null}else qc(a,K1(js.current));break}case ve:{var te=(r.flags&St)!==Tt,ue=ii(d,a.childLanes);if(te){if(ue)return ML(r,a,d);a.flags|=St}var he=a.memoizedState;if(he!==null&&(he.rendering=null,he.tail=null,he.lastEffect=null),qc(a,js.current),ue)break;return null}case ge:case Re:return a.lanes=Le,bL(r,a,d)}return Iu(r,a,d)}function LL(r,a,d){if(a._debugNeedsRemount&&r!==null)return wse(r,a,aw(a.type,a.key,a.pendingProps,a._debugOwner||null,a.mode,a.lanes));if(r!==null){var p=r.memoizedProps,g=a.pendingProps;if(p!==g||D2()||a.type!==r.type)Hs=!0;else{var x=R7(r,d);if(!x&&(a.flags&St)===Tt)return Hs=!1,bse(r,a,d);(r.flags&Zp)!==Tt?Hs=!0:Hs=!1}}else if(Hs=!1,Ha()&&Zie(a)){var E=a.index,N=Wie();oO(a,N,E)}switch(a.lanes=Le,a.tag){case b:return tse(r,a,a.type,d);case G:{var O=a.elementType;return Qoe(r,a,O,d)}case m:{var F=a.type,V=a.pendingProps,re=a.elementType===F?V:Us(F,V);return b7(r,a,F,re,d)}case v:{var te=a.type,ue=a.pendingProps,he=a.elementType===te?ue:Us(te,ue);return CL(r,a,te,he,d)}case y:return Joe(r,a,d);case C:return Koe(r,a,d);case R:return Xoe(r,a);case Z:return EL(r,a,d);case S:return vse(r,a,d);case U:{var xe=a.type,et=a.pendingProps,Lt=a.elementType===xe?et:Us(xe,et);return gL(r,a,xe,Lt,d)}case M:return qoe(r,a,d);case L:return Goe(r,a,d);case P:return Yoe(r,a,d);case j:return gse(r,a,d);case I:return yse(r,a,d);case B:{var bt=a.type,wn=a.pendingProps,pn=Us(bt,wn);if(a.type!==a.elementType){var ie=bt.propTypes;ie&&Ds(ie,pn,"prop",bn(bt))}return pn=Us(bt.type,pn),yL(r,a,bt,pn,d)}case W:return wL(r,a,a.type,a.pendingProps,d);case se:{var Ce=a.type,oe=a.pendingProps,je=a.elementType===Ce?oe:Us(Ce,oe);return ese(r,a,Ce,je,d)}case ve:return ML(r,a,d);case de:break;case ge:return bL(r,a,d)}throw new Error("Unknown unit of work tag ("+a.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function rh(r){r.flags|=vn}function AL(r){r.flags|=Er,r.flags|=_c}var IL,M7,DL,PL;IL=function(r,a,d,p){for(var g=a.child;g!==null;){if(g.tag===C||g.tag===R)Vae(r,g.stateNode);else if(g.tag!==S){if(g.child!==null){g.child.return=g,g=g.child;continue}}if(g===a)return;for(;g.sibling===null;){if(g.return===null||g.return===a)return;g=g.return}g.sibling.return=g.return,g=g.sibling}},M7=function(r,a){},DL=function(r,a,d,p,g){var x=r.memoizedProps;if(x!==p){var E=a.stateNode,N=S8(),O=$ae(E,d,x,p,g,N);a.updateQueue=O,O&&rh(a)}},PL=function(r,a,d,p){d!==p&&rh(a)};function Wv(r,a){if(!Ha())switch(r.tailMode){case"hidden":{for(var d=r.tail,p=null;d!==null;)d.alternate!==null&&(p=d),d=d.sibling;p===null?r.tail=null:p.sibling=null;break}case"collapsed":{for(var g=r.tail,x=null;g!==null;)g.alternate!==null&&(x=g),g=g.sibling;x===null?!a&&r.tail!==null?r.tail.sibling=null:r.tail=null:x.sibling=null;break}}}function Ba(r){var a=r.alternate!==null&&r.alternate.child===r.child,d=Le,p=Tt;if(a){if((r.mode&Rn)!==Rt){for(var O=r.selfBaseDuration,F=r.child;F!==null;)d=Kt(d,Kt(F.lanes,F.childLanes)),p|=F.subtreeFlags&Hr,p|=F.flags&Hr,O+=F.treeBaseDuration,F=F.sibling;r.treeBaseDuration=O}else for(var V=r.child;V!==null;)d=Kt(d,Kt(V.lanes,V.childLanes)),p|=V.subtreeFlags&Hr,p|=V.flags&Hr,V.return=r,V=V.sibling;r.subtreeFlags|=p}else{if((r.mode&Rn)!==Rt){for(var g=r.actualDuration,x=r.selfBaseDuration,E=r.child;E!==null;)d=Kt(d,Kt(E.lanes,E.childLanes)),p|=E.subtreeFlags,p|=E.flags,g+=E.actualDuration,x+=E.treeBaseDuration,E=E.sibling;r.actualDuration=g,r.treeBaseDuration=x}else for(var N=r.child;N!==null;)d=Kt(d,Kt(N.lanes,N.childLanes)),p|=N.subtreeFlags,p|=N.flags,N.return=r,N=N.sibling;r.subtreeFlags|=p}return r.childLanes=d,a}function xse(r,a,d){if(ioe()&&(a.mode&an)!==Rt&&(a.flags&St)===Tt)return pO(a),W1(),a.flags|=Ta|Hd|aa,!1;var p=V2(a);if(d!==null&&d.dehydrated!==null)if(r===null){if(!p)throw new Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(roe(a),Ba(a),(a.mode&Rn)!==Rt){var g=d!==null;if(g){var x=a.child;x!==null&&(a.treeBaseDuration-=x.treeBaseDuration)}}return!1}else{if(W1(),(a.flags&St)===Tt&&(a.memoizedState=null),a.flags|=vn,Ba(a),(a.mode&Rn)!==Rt){var E=d!==null;if(E){var N=a.child;N!==null&&(a.treeBaseDuration-=N.treeBaseDuration)}}return!1}else return hO(),!0}function zL(r,a,d){var p=a.pendingProps;switch(t8(a),a.tag){case b:case G:case W:case m:case U:case M:case L:case P:case I:case B:return Ba(a),null;case v:{var g=a.type;return Ll(g)&&P2(a),Ba(a),null}case y:{var x=a.stateNode;if(J1(a),K6(a),R8(),x.pendingContext&&(x.context=x.pendingContext,x.pendingContext=null),r===null||r.child===null){var E=V2(a);if(E)rh(a);else if(r!==null){var N=r.memoizedState;(!N.isDehydrated||(a.flags&Ta)!==Tt)&&(a.flags|=Xr,hO())}}return M7(r,a),Ba(a),null}case C:{k8(a);var O=MO(),F=a.type;if(r!==null&&a.stateNode!=null)DL(r,a,F,p,O),r.ref!==a.ref&&AL(a);else{if(!p){if(a.stateNode===null)throw new Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");return Ba(a),null}var V=S8(),re=V2(a);if(re)toe(a,O,V)&&rh(a);else{var te=Hae(F,p,O,V,a);IL(te,a,!1,!1),a.stateNode=te,Bae(te,F,p,O)&&rh(a)}a.ref!==null&&AL(a)}return Ba(a),null}case R:{var ue=p;if(r&&a.stateNode!=null){var he=r.memoizedProps;PL(r,a,he,ue)}else{if(typeof ue!="string"&&a.stateNode===null)throw new Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");var xe=MO(),et=S8(),Lt=V2(a);Lt?noe(a)&&rh(a):a.stateNode=Zae(ue,xe,et,a)}return Ba(a),null}case Z:{X1(a);var bt=a.memoizedState;if(r===null||r.memoizedState!==null&&r.memoizedState.dehydrated!==null){var wn=xse(r,a,bt);if(!wn)return a.flags&aa?a:null}if((a.flags&St)!==Tt)return a.lanes=d,(a.mode&Rn)!==Rt&&Q8(a),a;var pn=bt!==null,ie=r!==null&&r.memoizedState!==null;if(pn!==ie&&pn){var Ce=a.child;if(Ce.flags|=Ur,(a.mode&an)!==Rt){var oe=r===null&&(a.memoizedProps.unstable_avoidThisFallback!==!0||!0);oe||E8(js.current,LO)?Cle():q7()}}var je=a.updateQueue;if(je!==null&&(a.flags|=vn),Ba(a),(a.mode&Rn)!==Rt&&pn){var at=a.child;at!==null&&(a.treeBaseDuration-=at.treeBaseDuration)}return null}case S:return J1(a),M7(r,a),r===null&&jie(a.stateNode.containerInfo),Ba(a),null;case j:var tt=a.type._context;return m8(tt,a),Ba(a),null;case se:{var Ft=a.type;return Ll(Ft)&&P2(a),Ba(a),null}case ve:{X1(a);var qt=a.memoizedState;if(qt===null)return Ba(a),null;var Gn=(a.flags&St)!==Tt,On=qt.rendering;if(On===null)if(Gn)Wv(qt,!1);else{var ta=kle()&&(r===null||(r.flags&St)===Tt);if(!ta)for(var Ln=a.child;Ln!==null;){var qr=a9(Ln);if(qr!==null){Gn=!0,a.flags|=St,Wv(qt,!1);var fi=qr.updateQueue;return fi!==null&&(a.updateQueue=fi,a.flags|=vn),a.subtreeFlags=Tt,foe(a,d),qc(a,_8(js.current,Av)),a.child}Ln=Ln.sibling}qt.tail!==null&&Qr()>aA()&&(a.flags|=St,Gn=!0,Wv(qt,!1),a.lanes=jm)}else{if(!Gn){var Ga=a9(On);if(Ga!==null){a.flags|=St,Gn=!0;var Ao=Ga.updateQueue;if(Ao!==null&&(a.updateQueue=Ao,a.flags|=vn),Wv(qt,!0),qt.tail===null&&qt.tailMode==="hidden"&&!On.alternate&&!Ha())return Ba(a),null}else Qr()*2-qt.renderingStartTime>aA()&&d!==ai&&(a.flags|=St,Gn=!0,Wv(qt,!1),a.lanes=jm)}if(qt.isBackwards)On.sibling=a.child,a.child=On;else{var Li=qt.last;Li!==null?Li.sibling=On:a.child=On,qt.last=On}}if(qt.tail!==null){var Ai=qt.tail;qt.rendering=Ai,qt.tail=Ai.sibling,qt.renderingStartTime=Qr(),Ai.sibling=null;var pi=js.current;return Gn?pi=_8(pi,Av):pi=K1(pi),qc(a,pi),Ai}return Ba(a),null}case de:break;case ge:case Re:{W7(a);var Fu=a.memoizedState,dh=Fu!==null;if(r!==null){var lg=r.memoizedState,Ul=lg!==null;Ul!==dh&&!H&&(a.flags|=Ur)}return!dh||(a.mode&an)===Rt?Ba(a):ii(Fl,ai)&&(Ba(a),a.subtreeFlags&(wr|vn)&&(a.flags|=Ur)),null}case be:return null;case Ie:return null}throw new Error("Unknown unit of work tag ("+a.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function Cse(r,a,d){switch(t8(a),a.tag){case v:{var p=a.type;Ll(p)&&P2(a);var g=a.flags;return g&aa?(a.flags=g&~aa|St,(a.mode&Rn)!==Rt&&Q8(a),a):null}case y:{a.stateNode,J1(a),K6(a),R8();var x=a.flags;return(x&aa)!==Tt&&(x&St)===Tt?(a.flags=x&~aa|St,a):null}case C:return k8(a),null;case Z:{X1(a);var E=a.memoizedState;if(E!==null&&E.dehydrated!==null){if(a.alternate===null)throw new Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");W1()}var N=a.flags;return N&aa?(a.flags=N&~aa|St,(a.mode&Rn)!==Rt&&Q8(a),a):null}case ve:return X1(a),null;case S:return J1(a),null;case j:var O=a.type._context;return m8(O,a),null;case ge:case Re:return W7(a),null;case be:return null;default:return null}}function jL(r,a,d){switch(t8(a),a.tag){case v:{var p=a.type.childContextTypes;p!=null&&P2(a);break}case y:{a.stateNode,J1(a),K6(a),R8();break}case C:{k8(a);break}case S:J1(a);break;case Z:X1(a);break;case ve:X1(a);break;case j:var g=a.type._context;m8(g,a);break;case ge:case Re:W7(a);break}}var FL=null;FL=new Set;var R9=!1,$a=!1,Sse=typeof WeakSet=="function"?WeakSet:Set,ft=null,ah=null,ih=null;function kse(r){hl(null,function(){throw r}),Ud()}var Ese=function(r,a){if(a.props=r.memoizedProps,a.state=r.memoizedState,r.mode&Rn)try{zl(),a.componentWillUnmount()}finally{Pl(r)}else a.componentWillUnmount()};function UL(r,a){try{Jc(wa,r)}catch(d){sr(r,a,d)}}function N7(r,a,d){try{Ese(r,d)}catch(p){sr(r,a,p)}}function _se(r,a,d){try{d.componentDidMount()}catch(p){sr(r,a,p)}}function HL(r,a){try{BL(r)}catch(d){sr(r,a,d)}}function oh(r,a){var d=r.ref;if(d!==null)if(typeof d=="function"){var p;try{if(Fe&&it&&r.mode&Rn)try{zl(),p=d(null)}finally{Pl(r)}else p=d(null)}catch(g){sr(r,a,g)}typeof p=="function"&&c("Unexpected return value from a callback ref in %s. A callback ref should not return a function.",Ht(r))}else d.current=null}function M9(r,a,d){try{d()}catch(p){sr(r,a,p)}}var VL=!1;function Tse(r,a){Fae(r.containerInfo),ft=a,Rse();var d=VL;return VL=!1,d}function Rse(){for(;ft!==null;){var r=ft,a=r.child;(r.subtreeFlags&vl)!==Tt&&a!==null?(a.return=r,ft=a):Mse()}}function Mse(){for(;ft!==null;){var r=ft;Bn(r);try{Nse(r)}catch(d){sr(r,r.return,d)}or();var a=r.sibling;if(a!==null){a.return=r.return,ft=a;return}ft=r.return}}function Nse(r){var a=r.alternate,d=r.flags;if((d&Xr)!==Tt){switch(Bn(r),r.tag){case m:case U:case W:break;case v:{if(a!==null){var p=a.memoizedProps,g=a.memoizedState,x=r.stateNode;r.type===r.elementType&&!If&&(x.props!==r.memoizedProps&&c("Expected %s props to match memoized props before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",Ht(r)||"instance"),x.state!==r.memoizedState&&c("Expected %s state to match memoized state before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",Ht(r)||"instance"));var E=x.getSnapshotBeforeUpdate(r.elementType===r.type?p:Us(r.type,p),g);{var N=FL;E===void 0&&!N.has(r.type)&&(N.add(r.type),c("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.",Ht(r)))}x.__reactInternalSnapshotBeforeUpdate=E}break}case y:{{var O=r.stateNode;cie(O.containerInfo)}break}case C:case R:case S:case se:break;default:throw new Error("This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.")}or()}}function Vs(r,a,d){var p=a.updateQueue,g=p!==null?p.lastEffect:null;if(g!==null){var x=g.next,E=x;do{if((E.tag&r)===r){var N=E.destroy;E.destroy=void 0,N!==void 0&&((r&Va)!==ro?Ms(a):(r&wa)!==ro&&Bd(a),(r&Al)!==ro&&ig(!0),M9(a,d,N),(r&Al)!==ro&&ig(!1),(r&Va)!==ro?bl():(r&wa)!==ro&&Pm())}E=E.next}while(E!==x)}}function Jc(r,a){var d=a.updateQueue,p=d!==null?d.lastEffect:null;if(p!==null){var g=p.next,x=g;do{if((x.tag&r)===r){(r&Va)!==ro?Dm(a):(r&wa)!==ro&&Kp(a);var E=x.create;(r&Al)!==ro&&ig(!0),x.destroy=E(),(r&Al)!==ro&&ig(!1),(r&Va)!==ro?I0():(r&wa)!==ro&&D0();{var N=x.destroy;if(N!==void 0&&typeof N!="function"){var O=void 0;(x.tag&wa)!==Tt?O="useLayoutEffect":(x.tag&Al)!==Tt?O="useInsertionEffect":O="useEffect";var F=void 0;N===null?F=" You returned null. If your effect does not require clean up, return undefined (or nothing).":typeof N.then=="function"?F=`
200
+
201
+ It looks like you wrote `+O+`(async () => ...) or returned a Promise. Instead, write the async function inside your effect and call it immediately:
202
+
203
+ `+O+`(() => {
204
+ async function fetchData() {
205
+ // You can await here
206
+ const response = await MyAPI.getData(someId);
207
+ // ...
208
+ }
209
+ fetchData();
210
+ }, [someId]); // Or [] if effect doesn't need props or state
211
+
212
+ Learn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-fetching`:F=" You returned: "+N,c("%s must not return anything besides a function, which is used for clean-up.%s",O,F)}}}x=x.next}while(x!==g)}}function Ose(r,a){if((a.flags&vn)!==Tt)switch(a.tag){case P:{var d=a.stateNode.passiveEffectDuration,p=a.memoizedProps,g=p.id,x=p.onPostCommit,E=aL(),N=a.alternate===null?"mount":"update";rL()&&(N="nested-update"),typeof x=="function"&&x(g,N,d,E);var O=a.return;e:for(;O!==null;){switch(O.tag){case y:var F=O.stateNode;F.passiveEffectDuration+=d;break e;case P:var V=O.stateNode;V.passiveEffectDuration+=d;break e}O=O.return}break}}}function Lse(r,a,d,p){if((d.flags&yl)!==Tt)switch(d.tag){case m:case U:case W:{if(!$a)if(d.mode&Rn)try{zl(),Jc(wa|ya,d)}finally{Pl(d)}else Jc(wa|ya,d);break}case v:{var g=d.stateNode;if(d.flags&vn&&!$a)if(a===null)if(d.type===d.elementType&&!If&&(g.props!==d.memoizedProps&&c("Expected %s props to match memoized props before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",Ht(d)||"instance"),g.state!==d.memoizedState&&c("Expected %s state to match memoized state before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",Ht(d)||"instance")),d.mode&Rn)try{zl(),g.componentDidMount()}finally{Pl(d)}else g.componentDidMount();else{var x=d.elementType===d.type?a.memoizedProps:Us(d.type,a.memoizedProps),E=a.memoizedState;if(d.type===d.elementType&&!If&&(g.props!==d.memoizedProps&&c("Expected %s props to match memoized props before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",Ht(d)||"instance"),g.state!==d.memoizedState&&c("Expected %s state to match memoized state before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",Ht(d)||"instance")),d.mode&Rn)try{zl(),g.componentDidUpdate(x,E,g.__reactInternalSnapshotBeforeUpdate)}finally{Pl(d)}else g.componentDidUpdate(x,E,g.__reactInternalSnapshotBeforeUpdate)}var N=d.updateQueue;N!==null&&(d.type===d.elementType&&!If&&(g.props!==d.memoizedProps&&c("Expected %s props to match memoized props before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",Ht(d)||"instance"),g.state!==d.memoizedState&&c("Expected %s state to match memoized state before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",Ht(d)||"instance")),RO(d,N,g));break}case y:{var O=d.updateQueue;if(O!==null){var F=null;if(d.child!==null)switch(d.child.tag){case C:F=d.child.stateNode;break;case v:F=d.child.stateNode;break}RO(d,O,F)}break}case C:{var V=d.stateNode;if(a===null&&d.flags&vn){var re=d.type,te=d.memoizedProps;Jae(V,re,te)}break}case R:break;case S:break;case P:{{var ue=d.memoizedProps,he=ue.onCommit,xe=ue.onRender,et=d.stateNode.effectDuration,Lt=aL(),bt=a===null?"mount":"update";rL()&&(bt="nested-update"),typeof xe=="function"&&xe(d.memoizedProps.id,bt,d.actualDuration,d.treeBaseDuration,d.actualStartTime,Lt);{typeof he=="function"&&he(d.memoizedProps.id,bt,et,Lt),Mle(d);var wn=d.return;e:for(;wn!==null;){switch(wn.tag){case y:var pn=wn.stateNode;pn.effectDuration+=et;break e;case P:var ie=wn.stateNode;ie.effectDuration+=et;break e}wn=wn.return}}}break}case Z:{Use(r,d);break}case ve:case se:case de:case ge:case Re:case Ie:break;default:throw new Error("This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.")}$a||d.flags&Er&&BL(d)}function Ase(r){switch(r.tag){case m:case U:case W:{if(r.mode&Rn)try{zl(),UL(r,r.return)}finally{Pl(r)}else UL(r,r.return);break}case v:{var a=r.stateNode;typeof a.componentDidMount=="function"&&_se(r,r.return,a),HL(r,r.return);break}case C:{HL(r,r.return);break}}}function Ise(r,a){for(var d=null,p=r;;){if(p.tag===C){if(d===null){d=p;try{var g=p.stateNode;a?oie(g):lie(p.stateNode,p.memoizedProps)}catch(E){sr(r,r.return,E)}}}else if(p.tag===R){if(d===null)try{var x=p.stateNode;a?sie(x):uie(x,p.memoizedProps)}catch(E){sr(r,r.return,E)}}else if(!((p.tag===ge||p.tag===Re)&&p.memoizedState!==null&&p!==r)){if(p.child!==null){p.child.return=p,p=p.child;continue}}if(p===r)return;for(;p.sibling===null;){if(p.return===null||p.return===r)return;d===p&&(d=null),p=p.return}d===p&&(d=null),p.sibling.return=p.return,p=p.sibling}}function BL(r){var a=r.ref;if(a!==null){var d=r.stateNode,p;switch(r.tag){case C:p=d;break;default:p=d}if(typeof a=="function"){var g;if(r.mode&Rn)try{zl(),g=a(p)}finally{Pl(r)}else g=a(p);typeof g=="function"&&c("Unexpected return value from a callback ref in %s. A callback ref should not return a function.",Ht(r))}else a.hasOwnProperty("current")||c("Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().",Ht(r)),a.current=p}}function Dse(r){var a=r.alternate;a!==null&&(a.return=null),r.return=null}function $L(r){var a=r.alternate;a!==null&&(r.alternate=null,$L(a));{if(r.child=null,r.deletions=null,r.sibling=null,r.tag===C){var d=r.stateNode;d!==null&&Hie(d)}r.stateNode=null,r._debugOwner=null,r.return=null,r.dependencies=null,r.memoizedProps=null,r.memoizedState=null,r.pendingProps=null,r.stateNode=null,r.updateQueue=null}}function Pse(r){for(var a=r.return;a!==null;){if(ZL(a))return a;a=a.return}throw new Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.")}function ZL(r){return r.tag===C||r.tag===y||r.tag===S}function WL(r){var a=r;e:for(;;){for(;a.sibling===null;){if(a.return===null||ZL(a.return))return null;a=a.return}for(a.sibling.return=a.return,a=a.sibling;a.tag!==C&&a.tag!==R&&a.tag!==ke;){if(a.flags&wr||a.child===null||a.tag===S)continue e;a.child.return=a,a=a.child}if(!(a.flags&wr))return a.stateNode}}function zse(r){var a=Pse(r);switch(a.tag){case C:{var d=a.stateNode;a.flags&qi&&(GN(d),a.flags&=~qi);var p=WL(r);L7(r,p,d);break}case y:case S:{var g=a.stateNode.containerInfo,x=WL(r);O7(r,x,g);break}default:throw new Error("Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue.")}}function O7(r,a,d){var p=r.tag,g=p===C||p===R;if(g){var x=r.stateNode;a?nie(d,x,a):eie(d,x)}else if(p!==S){var E=r.child;if(E!==null){O7(E,a,d);for(var N=E.sibling;N!==null;)O7(N,a,d),N=N.sibling}}}function L7(r,a,d){var p=r.tag,g=p===C||p===R;if(g){var x=r.stateNode;a?tie(d,x,a):Qae(d,x)}else if(p!==S){var E=r.child;if(E!==null){L7(E,a,d);for(var N=E.sibling;N!==null;)L7(N,a,d),N=N.sibling}}}var Za=null,Bs=!1;function jse(r,a,d){{var p=a;e:for(;p!==null;){switch(p.tag){case C:{Za=p.stateNode,Bs=!1;break e}case y:{Za=p.stateNode.containerInfo,Bs=!0;break e}case S:{Za=p.stateNode.containerInfo,Bs=!0;break e}}p=p.return}if(Za===null)throw new Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");qL(r,a,d),Za=null,Bs=!1}Dse(d)}function Kc(r,a,d){for(var p=d.child;p!==null;)qL(r,a,p),p=p.sibling}function qL(r,a,d){switch(Lm(d),d.tag){case C:$a||oh(d,a);case R:{{var p=Za,g=Bs;Za=null,Kc(r,a,d),Za=p,Bs=g,Za!==null&&(Bs?aie(Za,d.stateNode):rie(Za,d.stateNode))}return}case ke:{Za!==null&&(Bs?iie(Za,d.stateNode):B6(Za,d.stateNode));return}case S:{{var x=Za,E=Bs;Za=d.stateNode.containerInfo,Bs=!0,Kc(r,a,d),Za=x,Bs=E}return}case m:case U:case B:case W:{if(!$a){var N=d.updateQueue;if(N!==null){var O=N.lastEffect;if(O!==null){var F=O.next,V=F;do{var re=V,te=re.destroy,ue=re.tag;te!==void 0&&((ue&Al)!==ro?M9(d,a,te):(ue&wa)!==ro&&(Bd(d),d.mode&Rn?(zl(),M9(d,a,te),Pl(d)):M9(d,a,te),Pm())),V=V.next}while(V!==F)}}}Kc(r,a,d);return}case v:{if(!$a){oh(d,a);var he=d.stateNode;typeof he.componentWillUnmount=="function"&&N7(d,a,he)}Kc(r,a,d);return}case de:{Kc(r,a,d);return}case ge:{if(d.mode&an){var xe=$a;$a=xe||d.memoizedState!==null,Kc(r,a,d),$a=xe}else Kc(r,a,d);break}default:{Kc(r,a,d);return}}}function Fse(r){r.memoizedState}function Use(r,a){var d=a.memoizedState;if(d===null){var p=a.alternate;if(p!==null){var g=p.memoizedState;if(g!==null){var x=g.dehydrated;x!==null&&kie(x)}}}}function GL(r){var a=r.updateQueue;if(a!==null){r.updateQueue=null;var d=r.stateNode;d===null&&(d=r.stateNode=new Sse),a.forEach(function(p){var g=Ple.bind(null,r,p);if(!d.has(p)){if(d.add(p),ri)if(ah!==null&&ih!==null)ag(ih,ah);else throw Error("Expected finished root and lanes to be set. This is a bug in React.");p.then(g,g)}})}}function Hse(r,a,d){ah=d,ih=r,Bn(a),YL(a,r),Bn(a),ah=null,ih=null}function $s(r,a,d){var p=a.deletions;if(p!==null)for(var g=0;g<p.length;g++){var x=p[g];try{jse(r,a,x)}catch(O){sr(x,a,O)}}var E=sl();if(a.subtreeFlags&gl)for(var N=a.child;N!==null;)Bn(N),YL(N,r),N=N.sibling;Bn(E)}function YL(r,a,d){var p=r.alternate,g=r.flags;switch(r.tag){case m:case U:case B:case W:{if($s(a,r),jl(r),g&vn){try{Vs(Al|ya,r,r.return),Jc(Al|ya,r)}catch(Ft){sr(r,r.return,Ft)}if(r.mode&Rn){try{zl(),Vs(wa|ya,r,r.return)}catch(Ft){sr(r,r.return,Ft)}Pl(r)}else try{Vs(wa|ya,r,r.return)}catch(Ft){sr(r,r.return,Ft)}}return}case v:{$s(a,r),jl(r),g&Er&&p!==null&&oh(p,p.return);return}case C:{$s(a,r),jl(r),g&Er&&p!==null&&oh(p,p.return);{if(r.flags&qi){var x=r.stateNode;try{GN(x)}catch(Ft){sr(r,r.return,Ft)}}if(g&vn){var E=r.stateNode;if(E!=null){var N=r.memoizedProps,O=p!==null?p.memoizedProps:N,F=r.type,V=r.updateQueue;if(r.updateQueue=null,V!==null)try{Kae(E,V,F,O,N,r)}catch(Ft){sr(r,r.return,Ft)}}}}return}case R:{if($s(a,r),jl(r),g&vn){if(r.stateNode===null)throw new Error("This should have a text node initialized. This error is likely caused by a bug in React. Please file an issue.");var re=r.stateNode,te=r.memoizedProps,ue=p!==null?p.memoizedProps:te;try{Xae(re,ue,te)}catch(Ft){sr(r,r.return,Ft)}}return}case y:{if($s(a,r),jl(r),g&vn&&p!==null){var he=p.memoizedState;if(he.isDehydrated)try{Sie(a.containerInfo)}catch(Ft){sr(r,r.return,Ft)}}return}case S:{$s(a,r),jl(r);return}case Z:{$s(a,r),jl(r);var xe=r.child;if(xe.flags&Ur){var et=xe.stateNode,Lt=xe.memoizedState,bt=Lt!==null;if(et.isHidden=bt,bt){var wn=xe.alternate!==null&&xe.alternate.memoizedState!==null;wn||xle()}}if(g&vn){try{Fse(r)}catch(Ft){sr(r,r.return,Ft)}GL(r)}return}case ge:{var pn=p!==null&&p.memoizedState!==null;if(r.mode&an){var ie=$a;$a=ie||pn,$s(a,r),$a=ie}else $s(a,r);if(jl(r),g&Ur){var Ce=r.stateNode,oe=r.memoizedState,je=oe!==null,at=r;if(Ce.isHidden=je,je&&!pn&&(at.mode&an)!==Rt){ft=at;for(var tt=at.child;tt!==null;)ft=tt,Bse(tt),tt=tt.sibling}Ise(at,je)}return}case ve:{$s(a,r),jl(r),g&vn&&GL(r);return}case de:return;default:{$s(a,r),jl(r);return}}}function jl(r){var a=r.flags;if(a&wr){try{zse(r)}catch(d){sr(r,r.return,d)}r.flags&=~wr}a&ei&&(r.flags&=~ei)}function Vse(r,a,d){ah=d,ih=a,ft=r,JL(r,a,d),ah=null,ih=null}function JL(r,a,d){for(var p=(r.mode&an)!==Rt;ft!==null;){var g=ft,x=g.child;if(g.tag===ge&&p){var E=g.memoizedState!==null,N=E||R9;if(N){A7(r,a,d);continue}else{var O=g.alternate,F=O!==null&&O.memoizedState!==null,V=F||$a,re=R9,te=$a;R9=N,$a=V,$a&&!te&&(ft=g,$se(g));for(var ue=x;ue!==null;)ft=ue,JL(ue,a,d),ue=ue.sibling;ft=g,R9=re,$a=te,A7(r,a,d);continue}}(g.subtreeFlags&yl)!==Tt&&x!==null?(x.return=g,ft=x):A7(r,a,d)}}function A7(r,a,d){for(;ft!==null;){var p=ft;if((p.flags&yl)!==Tt){var g=p.alternate;Bn(p);try{Lse(a,g,p,d)}catch(E){sr(p,p.return,E)}or()}if(p===r){ft=null;return}var x=p.sibling;if(x!==null){x.return=p.return,ft=x;return}ft=p.return}}function Bse(r){for(;ft!==null;){var a=ft,d=a.child;switch(a.tag){case m:case U:case B:case W:{if(a.mode&Rn)try{zl(),Vs(wa,a,a.return)}finally{Pl(a)}else Vs(wa,a,a.return);break}case v:{oh(a,a.return);var p=a.stateNode;typeof p.componentWillUnmount=="function"&&N7(a,a.return,p);break}case C:{oh(a,a.return);break}case ge:{var g=a.memoizedState!==null;if(g){KL(r);continue}break}}d!==null?(d.return=a,ft=d):KL(r)}}function KL(r){for(;ft!==null;){var a=ft;if(a===r){ft=null;return}var d=a.sibling;if(d!==null){d.return=a.return,ft=d;return}ft=a.return}}function $se(r){for(;ft!==null;){var a=ft,d=a.child;if(a.tag===ge){var p=a.memoizedState!==null;if(p){XL(r);continue}}d!==null?(d.return=a,ft=d):XL(r)}}function XL(r){for(;ft!==null;){var a=ft;Bn(a);try{Ase(a)}catch(p){sr(a,a.return,p)}if(or(),a===r){ft=null;return}var d=a.sibling;if(d!==null){d.return=a.return,ft=d;return}ft=a.return}}function Zse(r,a,d,p){ft=a,Wse(a,r,d,p)}function Wse(r,a,d,p){for(;ft!==null;){var g=ft,x=g.child;(g.subtreeFlags&Ts)!==Tt&&x!==null?(x.return=g,ft=x):qse(r,a,d,p)}}function qse(r,a,d,p){for(;ft!==null;){var g=ft;if((g.flags&Qa)!==Tt){Bn(g);try{Gse(a,g,d,p)}catch(E){sr(g,g.return,E)}or()}if(g===r){ft=null;return}var x=g.sibling;if(x!==null){x.return=g.return,ft=x;return}ft=g.return}}function Gse(r,a,d,p){switch(a.tag){case m:case U:case W:{if(a.mode&Rn){X8();try{Jc(Va|ya,a)}finally{K8(a)}}else Jc(Va|ya,a);break}}}function Yse(r){ft=r,Jse()}function Jse(){for(;ft!==null;){var r=ft,a=r.child;if((ft.flags&Wi)!==Tt){var d=r.deletions;if(d!==null){for(var p=0;p<d.length;p++){var g=d[p];ft=g,Qse(g,r)}{var x=r.alternate;if(x!==null){var E=x.child;if(E!==null){x.child=null;do{var N=E.sibling;E.sibling=null,E=N}while(E!==null)}}}ft=r}}(r.subtreeFlags&Ts)!==Tt&&a!==null?(a.return=r,ft=a):Kse()}}function Kse(){for(;ft!==null;){var r=ft;(r.flags&Qa)!==Tt&&(Bn(r),Xse(r),or());var a=r.sibling;if(a!==null){a.return=r.return,ft=a;return}ft=r.return}}function Xse(r){switch(r.tag){case m:case U:case W:{r.mode&Rn?(X8(),Vs(Va|ya,r,r.return),K8(r)):Vs(Va|ya,r,r.return);break}}}function Qse(r,a){for(;ft!==null;){var d=ft;Bn(d),tle(d,a),or();var p=d.child;p!==null?(p.return=d,ft=p):ele(r)}}function ele(r){for(;ft!==null;){var a=ft,d=a.sibling,p=a.return;if($L(a),a===r){ft=null;return}if(d!==null){d.return=p,ft=d;return}ft=p}}function tle(r,a){switch(r.tag){case m:case U:case W:{r.mode&Rn?(X8(),Vs(Va,r,a),K8(r)):Vs(Va,r,a);break}}}function nle(r){switch(r.tag){case m:case U:case W:{try{Jc(wa|ya,r)}catch(d){sr(r,r.return,d)}break}case v:{var a=r.stateNode;try{a.componentDidMount()}catch(d){sr(r,r.return,d)}break}}}function rle(r){switch(r.tag){case m:case U:case W:{try{Jc(Va|ya,r)}catch(a){sr(r,r.return,a)}break}}}function ale(r){switch(r.tag){case m:case U:case W:{try{Vs(wa|ya,r,r.return)}catch(d){sr(r,r.return,d)}break}case v:{var a=r.stateNode;typeof a.componentWillUnmount=="function"&&N7(r,r.return,a);break}}}function ile(r){switch(r.tag){case m:case U:case W:try{Vs(Va|ya,r,r.return)}catch(a){sr(r,r.return,a)}}}if(typeof Symbol=="function"&&Symbol.for){var qv=Symbol.for;qv("selector.component"),qv("selector.has_pseudo_class"),qv("selector.role"),qv("selector.test_id"),qv("selector.text")}var ole=[];function sle(){ole.forEach(function(r){return r()})}var lle=n.ReactCurrentActQueue;function ule(r){{var a=typeof IS_REACT_ACT_ENVIRONMENT!="undefined"?IS_REACT_ACT_ENVIRONMENT:void 0,d=typeof jest!="undefined";return d&&a!==!1}}function QL(){{var r=typeof IS_REACT_ACT_ENVIRONMENT!="undefined"?IS_REACT_ACT_ENVIRONMENT:void 0;return!r&&lle.current!==null&&c("The current testing environment is not configured to support act(...)"),r}}var cle=Math.ceil,I7=n.ReactCurrentDispatcher,D7=n.ReactCurrentOwner,Wa=n.ReactCurrentBatchConfig,Zs=n.ReactCurrentActQueue,Ca=0,eA=1,qa=2,ss=4,Du=0,Gv=1,Df=2,N9=3,Yv=4,tA=5,P7=6,yn=Ca,Ni=null,zr=null,Sa=Le,Fl=Le,z7=Hc(Le),ka=Du,Jv=null,O9=Le,Kv=Le,L9=Le,Xv=null,ao=null,j7=0,nA=500,rA=1/0,dle=500,Pu=null;function Qv(){rA=Qr()+dle}function aA(){return rA}var A9=!1,F7=null,sh=null,Pf=!1,Xc=null,eg=Le,U7=[],H7=null,fle=50,tg=0,V7=null,B7=!1,I9=!1,ple=50,lh=0,D9=null,ng=Xn,P9=Le,iA=!1;function z9(){return Ni}function Oi(){return(yn&(qa|ss))!==Ca?Qr():(ng!==Xn||(ng=Qr()),ng)}function Qc(r){var a=r.mode;if((a&an)===Rt)return jt;if((yn&qa)!==Ca&&Sa!==Le)return nf(Sa);var d=loe()!==soe;if(d){if(Wa.transition!==null){var p=Wa.transition;p._updatedFibers||(p._updatedFibers=new Set),p._updatedFibers.add(r)}return P9===En&&(P9=$m()),P9}var g=Qi();if(g!==En)return g;var x=Wae();return x}function hle(r){var a=r.mode;return(a&an)===Rt?jt:H0()}function Ea(r,a,d,p){jle(),iA&&c("useInsertionEffect must not schedule updates."),B7&&(I9=!0),Nc(r,d,p),(yn&qa)!==Le&&r===Ni?Hle(a):(ri&&of(r,a,d),Vle(a),r===Ni&&((yn&qa)===Ca&&(Kv=Kt(Kv,d)),ka===Yv&&ed(r,Sa)),io(r,p),d===jt&&yn===Ca&&(a.mode&an)===Rt&&!Zs.isBatchingLegacy&&(Qv(),iO()))}function mle(r,a,d){var p=r.current;p.lanes=a,Nc(r,a,d),io(r,d)}function vle(r){return(yn&qa)!==Ca}function io(r,a){var d=r.callbackNode;g1(r,a);var p=v1(r,r===Ni?Sa:Le);if(p===Le){d!==null&&xA(d),r.callbackNode=null,r.callbackPriority=En;return}var g=Sl(p),x=r.callbackPriority;if(x===g&&!(Zs.current!==null&&d!==J7)){d==null&&x!==jt&&c("Expected scheduled callback to exist. This error is likely caused by a bug in React. Please file an issue.");return}d!=null&&xA(d);var E;if(g===jt)r.tag===Vc?(Zs.isBatchingLegacy!==null&&(Zs.didScheduleLegacyUpdate=!0),$ie(lA.bind(null,r))):aO(lA.bind(null,r)),Zs.current!==null?Zs.current.push(Bc):Gae(function(){(yn&(qa|ss))===Ca&&Bc()}),E=null;else{var N;switch(G0(p)){case Pa:N=Vd;break;case Ko:N=wl;break;case Ki:N=Rs;break;case Xi:N=uu;break;default:N=Rs;break}E=K7(N,oA.bind(null,r))}r.callbackPriority=g,r.callbackNode=E}function oA(r,a){if(Ioe(),ng=Xn,P9=Le,(yn&(qa|ss))!==Ca)throw new Error("Should not already be working.");var d=r.callbackNode,p=ju();if(p&&r.callbackNode!==d)return null;var g=v1(r,r===Ni?Sa:Le);if(g===Le)return null;var x=!w1(r,g)&&!U0(r,g)&&!a,E=x?_le(r,g):F9(r,g);if(E!==Du){if(E===Df){var N=y1(r);N!==Le&&(g=N,E=$7(r,N))}if(E===Gv){var O=Jv;throw zf(r,Le),ed(r,g),io(r,Qr()),O}if(E===P7)ed(r,g);else{var F=!w1(r,g),V=r.current.alternate;if(F&&!yle(V)){if(E=F9(r,g),E===Df){var re=y1(r);re!==Le&&(g=re,E=$7(r,re))}if(E===Gv){var te=Jv;throw zf(r,Le),ed(r,g),io(r,Qr()),te}}r.finishedWork=V,r.finishedLanes=g,gle(r,E,g)}}return io(r,Qr()),r.callbackNode===d?oA.bind(null,r):null}function $7(r,a){var d=Xv;if(C1(r)){var p=zf(r,a);p.flags|=Ta,zie(r.containerInfo)}var g=F9(r,a);if(g!==Df){var x=ao;ao=d,x!==null&&sA(x)}return g}function sA(r){ao===null?ao=r:ao.push.apply(ao,r)}function gle(r,a,d){switch(a){case Du:case Gv:throw new Error("Root did not complete. This is a bug in React.");case Df:{jf(r,ao,Pu);break}case N9:{if(ed(r,d),bu(d)&&!CA()){var p=j7+nA-Qr();if(p>10){var g=v1(r,Le);if(g!==Le)break;var x=r.suspendedLanes;if(!xu(x,d)){Oi(),b1(r,x);break}r.timeoutHandle=H6(jf.bind(null,r,ao,Pu),p);break}}jf(r,ao,Pu);break}case Yv:{if(ed(r,d),Vm(d))break;if(!CA()){var E=Ro(r,d),N=E,O=Qr()-N,F=zle(O)-O;if(F>10){r.timeoutHandle=H6(jf.bind(null,r,ao,Pu),F);break}}jf(r,ao,Pu);break}case tA:{jf(r,ao,Pu);break}default:throw new Error("Unknown root exit status.")}}function yle(r){for(var a=r;;){if(a.flags&Ec){var d=a.updateQueue;if(d!==null){var p=d.stores;if(p!==null)for(var g=0;g<p.length;g++){var x=p[g],E=x.getSnapshot,N=x.value;try{if(!Pe(E(),N))return!1}catch(F){return!1}}}}var O=a.child;if(a.subtreeFlags&Ec&&O!==null){O.return=a,a=O;continue}if(a===r)return!0;for(;a.sibling===null;){if(a.return===null||a.return===r)return!0;a=a.return}a.sibling.return=a.return,a=a.sibling}return!0}function ed(r,a){a=rf(a,L9),a=rf(a,Kv),$0(r,a)}function lA(r){if(Doe(),(yn&(qa|ss))!==Ca)throw new Error("Should not already be working.");ju();var a=v1(r,Le);if(!ii(a,jt))return io(r,Qr()),null;var d=F9(r,a);if(r.tag!==Vc&&d===Df){var p=y1(r);p!==Le&&(a=p,d=$7(r,p))}if(d===Gv){var g=Jv;throw zf(r,Le),ed(r,a),io(r,Qr()),g}if(d===P7)throw new Error("Root did not complete. This is a bug in React.");var x=r.current.alternate;return r.finishedWork=x,r.finishedLanes=a,jf(r,ao,Pu),io(r,Qr()),null}function wle(r,a){a!==Le&&(x1(r,Kt(a,jt)),io(r,Qr()),(yn&(qa|ss))===Ca&&(Qv(),Bc()))}function Z7(r,a){var d=yn;yn|=eA;try{return r(a)}finally{yn=d,yn===Ca&&!Zs.isBatchingLegacy&&(Qv(),iO())}}function ble(r,a,d,p,g){var x=Qi(),E=Wa.transition;try{return Wa.transition=null,$r(Pa),r(a,d,p,g)}finally{$r(x),Wa.transition=E,yn===Ca&&Qv()}}function zu(r){Xc!==null&&Xc.tag===Vc&&(yn&(qa|ss))===Ca&&ju();var a=yn;yn|=eA;var d=Wa.transition,p=Qi();try{return Wa.transition=null,$r(Pa),r?r():void 0}finally{$r(p),Wa.transition=d,yn=a,(yn&(qa|ss))===Ca&&Bc()}}function uA(){return(yn&(qa|ss))!==Ca}function j9(r,a){ci(z7,Fl,r),Fl=Kt(Fl,a)}function W7(r){Fl=z7.current,ui(z7,r)}function zf(r,a){r.finishedWork=null,r.finishedLanes=Le;var d=r.timeoutHandle;if(d!==V6&&(r.timeoutHandle=V6,qae(d)),zr!==null)for(var p=zr.return;p!==null;){var g=p.alternate;jL(g,p),p=p.return}Ni=r;var x=Ff(r.current,null);return zr=x,Sa=Fl=a,ka=Du,Jv=null,O9=Le,Kv=Le,L9=Le,Xv=null,ao=null,moe(),zs.discardPendingWarnings(),x}function cA(r,a){do{var d=zr;try{if(G2(),IO(),or(),D7.current=null,d===null||d.return===null){ka=Gv,Jv=a,zr=null;return}if(Fe&&d.mode&Rn&&S9(d,!0),$)if(_i(),a!==null&&typeof a=="object"&&typeof a.then=="function"){var p=a;Jo(d,p,Sa)}else $d(d,a,Sa);$oe(r,d.return,d,a,Sa),hA(d)}catch(g){a=g,zr===d&&d!==null?(d=d.return,zr=d):d=zr;continue}return}while(!0)}function dA(){var r=I7.current;return I7.current=y9,r===null?y9:r}function fA(r){I7.current=r}function xle(){j7=Qr()}function rg(r){O9=Kt(r,O9)}function Cle(){ka===Du&&(ka=N9)}function q7(){(ka===Du||ka===N9||ka===Df)&&(ka=Yv),Ni!==null&&(tf(O9)||tf(Kv))&&ed(Ni,Sa)}function Sle(r){ka!==Yv&&(ka=Df),Xv===null?Xv=[r]:Xv.push(r)}function kle(){return ka===Du}function F9(r,a){var d=yn;yn|=qa;var p=dA();if(Ni!==r||Sa!==a){if(ri){var g=r.memoizedUpdaters;g.size>0&&(ag(r,Sa),g.clear()),Z0(r,a)}Pu=Gm(),zf(r,a)}pu(a);do try{Ele();break}catch(x){cA(r,x)}while(!0);if(G2(),yn=d,fA(p),zr!==null)throw new Error("Cannot commit an incomplete root. This error is likely caused by a bug in React. Please file an issue.");return Xp(),Ni=null,Sa=Le,ka}function Ele(){for(;zr!==null;)pA(zr)}function _le(r,a){var d=yn;yn|=qa;var p=dA();if(Ni!==r||Sa!==a){if(ri){var g=r.memoizedUpdaters;g.size>0&&(ag(r,Sa),g.clear()),Z0(r,a)}Pu=Gm(),Qv(),zf(r,a)}pu(a);do try{Tle();break}catch(x){cA(r,x)}while(!0);return G2(),fA(p),yn=d,zr!==null?(P0(),Du):(Xp(),Ni=null,Sa=Le,ka)}function Tle(){for(;zr!==null&&!Tm();)pA(zr)}function pA(r){var a=r.alternate;Bn(r);var d;(r.mode&Rn)!==Rt?(J8(r),d=G7(a,r,Fl),S9(r,!0)):d=G7(a,r,Fl),or(),r.memoizedProps=r.pendingProps,d===null?hA(r):zr=d,D7.current=null}function hA(r){var a=r;do{var d=a.alternate,p=a.return;if((a.flags&Hd)===Tt){Bn(a);var g=void 0;if((a.mode&Rn)===Rt?g=zL(d,a,Fl):(J8(a),g=zL(d,a,Fl),S9(a,!1)),or(),g!==null){zr=g;return}}else{var x=Cse(d,a);if(x!==null){x.flags&=N0,zr=x;return}if((a.mode&Rn)!==Rt){S9(a,!1);for(var E=a.actualDuration,N=a.child;N!==null;)E+=N.actualDuration,N=N.sibling;a.actualDuration=E}if(p!==null)p.flags|=Hd,p.subtreeFlags=Tt,p.deletions=null;else{ka=P7,zr=null;return}}var O=a.sibling;if(O!==null){zr=O;return}a=p,zr=a}while(a!==null);ka===Du&&(ka=tA)}function jf(r,a,d){var p=Qi(),g=Wa.transition;try{Wa.transition=null,$r(Pa),Rle(r,a,d,p)}finally{Wa.transition=g,$r(p)}return null}function Rle(r,a,d,p){do ju();while(Xc!==null);if(Fle(),(yn&(qa|ss))!==Ca)throw new Error("Should not already be working.");var g=r.finishedWork,x=r.finishedLanes;if(Am(x),g===null)return Im(),null;if(x===Le&&c("root.finishedLanes should not be empty during a commit. This is a bug in React."),r.finishedWork=null,r.finishedLanes=Le,g===r.current)throw new Error("Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue.");r.callbackNode=null,r.callbackPriority=En;var E=Kt(g.lanes,g.childLanes);Wm(r,E),r===Ni&&(Ni=null,zr=null,Sa=Le),((g.subtreeFlags&Ts)!==Tt||(g.flags&Ts)!==Tt)&&(Pf||(Pf=!0,H7=d,K7(Rs,function(){return ju(),null})));var N=(g.subtreeFlags&(vl|gl|yl|Ts))!==Tt,O=(g.flags&(vl|gl|yl|Ts))!==Tt;if(N||O){var F=Wa.transition;Wa.transition=null;var V=Qi();$r(Pa);var re=yn;yn|=ss,D7.current=null,Tse(r,g),iL(),Hse(r,g,x),Uae(r.containerInfo),r.current=g,Zd(x),Vse(g,r,x),Wd(),Rm(),yn=re,$r(V),Wa.transition=F}else r.current=g,iL();var te=Pf;if(Pf?(Pf=!1,Xc=r,eg=x):(lh=0,D9=null),E=r.pendingLanes,E===Le&&(sh=null),te||yA(r.current,!1),Nm(g.stateNode,p),ri&&r.memoizedUpdaters.clear(),sle(),io(r,Qr()),a!==null)for(var ue=r.onRecoverableError,he=0;he<a.length;he++){var xe=a[he],et=xe.stack,Lt=xe.digest;ue(xe.value,{componentStack:et,digest:Lt})}if(A9){A9=!1;var bt=F7;throw F7=null,bt}return ii(eg,jt)&&r.tag!==Vc&&ju(),E=r.pendingLanes,ii(E,jt)?(Aoe(),r===V7?tg++:(tg=0,V7=r)):tg=0,Bc(),Im(),null}function ju(){if(Xc!==null){var r=G0(eg),a=lf(Ki,r),d=Wa.transition,p=Qi();try{return Wa.transition=null,$r(a),Nle()}finally{$r(p),Wa.transition=d}}return!1}function Mle(r){U7.push(r),Pf||(Pf=!0,K7(Rs,function(){return ju(),null}))}function Nle(){if(Xc===null)return!1;var r=H7;H7=null;var a=Xc,d=eg;if(Xc=null,eg=Le,(yn&(qa|ss))!==Ca)throw new Error("Cannot flush passive effects while already rendering.");B7=!0,I9=!1,fu(d);var p=yn;yn|=ss,Yse(a.current),Zse(a,a.current,d,r);{var g=U7;U7=[];for(var x=0;x<g.length;x++){var E=g[x];Ose(a,E)}}zm(),yA(a.current,!0),yn=p,Bc(),I9?a===D9?lh++:(lh=0,D9=a):lh=0,B7=!1,I9=!1,Om(a);{var N=a.current.stateNode;N.effectDuration=0,N.passiveEffectDuration=0}return!0}function mA(r){return sh!==null&&sh.has(r)}function Ole(r){sh===null?sh=new Set([r]):sh.add(r)}function Lle(r){A9||(A9=!0,F7=r)}var Ale=Lle;function vA(r,a,d){var p=Af(d,a),g=pL(r,p,jt),x=Zc(r,g,jt),E=Oi();x!==null&&(Nc(x,jt,E),io(x,E))}function sr(r,a,d){if(kse(d),ig(!1),r.tag===y){vA(r,r,d);return}var p=null;for(p=a;p!==null;){if(p.tag===y){vA(p,r,d);return}else if(p.tag===v){var g=p.type,x=p.stateNode;if(typeof g.getDerivedStateFromError=="function"||typeof x.componentDidCatch=="function"&&!mA(x)){var E=Af(d,r),N=h7(p,E,jt),O=Zc(p,N,jt),F=Oi();O!==null&&(Nc(O,jt,F),io(O,F));return}}p=p.return}c(`Internal React error: Attempted to capture a commit phase error inside a detached tree. This indicates a bug in React. Likely causes include deleting the same fiber more than once, committing an already-finished tree, or an inconsistent return pointer.
213
+
214
+ Error message:
215
+
216
+ %s`,d)}function Ile(r,a,d){var p=r.pingCache;p!==null&&p.delete(a);var g=Oi();b1(r,d),Ble(r),Ni===r&&xu(Sa,d)&&(ka===Yv||ka===N9&&bu(Sa)&&Qr()-j7<nA?zf(r,Le):L9=Kt(L9,d)),io(r,g)}function gA(r,a){a===En&&(a=hle(r));var d=Oi(),p=no(r,a);p!==null&&(Nc(p,a,d),io(p,d))}function Dle(r){var a=r.memoizedState,d=En;a!==null&&(d=a.retryLane),gA(r,d)}function Ple(r,a){var d=En,p;switch(r.tag){case Z:p=r.stateNode;var g=r.memoizedState;g!==null&&(d=g.retryLane);break;case ve:p=r.stateNode;break;default:throw new Error("Pinged unknown suspense boundary type. This is probably a bug in React.")}p!==null&&p.delete(a),gA(r,d)}function zle(r){return r<120?120:r<480?480:r<1080?1080:r<1920?1920:r<3e3?3e3:r<4320?4320:cle(r/1960)*1960}function jle(){if(tg>fle)throw tg=0,V7=null,new Error("Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops.");lh>ple&&(lh=0,D9=null,c("Maximum update depth exceeded. This can happen when a component calls setState inside useEffect, but useEffect either doesn't have a dependency array, or one of the dependencies changes on every render."))}function Fle(){zs.flushLegacyContextWarning(),zs.flushPendingUnsafeLifecycleWarnings()}function yA(r,a){Bn(r),U9(r,ml,ale),a&&U9(r,qo,ile),U9(r,ml,nle),a&&U9(r,qo,rle),or()}function U9(r,a,d){for(var p=r,g=null;p!==null;){var x=p.subtreeFlags&a;p!==g&&p.child!==null&&x!==Tt?p=p.child:((p.flags&a)!==Tt&&d(p),p.sibling!==null?p=p.sibling:p=g=p.return)}}var H9=null;function wA(r){{if((yn&qa)!==Ca||!(r.mode&an))return;var a=r.tag;if(a!==b&&a!==y&&a!==v&&a!==m&&a!==U&&a!==B&&a!==W)return;var d=Ht(r)||"ReactComponent";if(H9!==null){if(H9.has(d))return;H9.add(d)}else H9=new Set([d]);var p=pa;try{Bn(r),c("Can't perform a React state update on a component that hasn't mounted yet. This indicates that you have a side-effect in your render function that asynchronously later calls tries to update the component. Move this work to useEffect instead.")}finally{p?Bn(r):or()}}}var G7;{var Ule=null;G7=function(r,a,d){var p=TA(Ule,a);try{return LL(r,a,d)}catch(x){if(Xie()||x!==null&&typeof x=="object"&&typeof x.then=="function")throw x;if(G2(),IO(),jL(r,a),TA(a,p),a.mode&Rn&&J8(a),hl(null,LL,null,r,a,d),Es()){var g=Ud();typeof g=="object"&&g!==null&&g._suppressLogging&&typeof x=="object"&&x!==null&&!x._suppressLogging&&(x._suppressLogging=!0)}throw x}}}var bA=!1,Y7;Y7=new Set;function Hle(r){if(Uo&&!Noe())switch(r.tag){case m:case U:case W:{var a=zr&&Ht(zr)||"Unknown",d=a;if(!Y7.has(d)){Y7.add(d);var p=Ht(r)||"Unknown";c("Cannot update a component (`%s`) while rendering a different component (`%s`). To locate the bad setState() call inside `%s`, follow the stack trace as described in https://reactjs.org/link/setstate-in-render",p,a,a)}break}case v:{bA||(c("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),bA=!0);break}}}function ag(r,a){if(ri){var d=r.memoizedUpdaters;d.forEach(function(p){of(r,p,a)})}}var J7={};function K7(r,a){{var d=Zs.current;return d!==null?(d.push(a),J7):_m(r,a)}}function xA(r){if(r!==J7)return L0(r)}function CA(){return Zs.current!==null}function Vle(r){{if(r.mode&an){if(!QL())return}else if(!ule()||yn!==Ca||r.tag!==m&&r.tag!==U&&r.tag!==W)return;if(Zs.current===null){var a=pa;try{Bn(r),c(`An update to %s inside a test was not wrapped in act(...).
217
+
218
+ When testing, code that causes React state updates should be wrapped into act(...):
219
+
220
+ act(() => {
221
+ /* fire events that update state */
222
+ });
223
+ /* assert on the output */
224
+
225
+ This ensures that you're testing the behavior the user would see in the browser. Learn more at https://reactjs.org/link/wrap-tests-with-act`,Ht(r))}finally{a?Bn(r):or()}}}}function Ble(r){r.tag!==Vc&&QL()&&Zs.current===null&&c(`A suspended resource finished loading inside a test, but the event was not wrapped in act(...).
226
+
227
+ When testing, code that resolves suspended data should be wrapped into act(...):
228
+
229
+ act(() => {
230
+ /* finish loading suspended data */
231
+ });
232
+ /* assert on the output */
233
+
234
+ This ensures that you're testing the behavior the user would see in the browser. Learn more at https://reactjs.org/link/wrap-tests-with-act`)}function ig(r){iA=r}var ls=null,uh=null,$le=function(r){ls=r};function ch(r){{if(ls===null)return r;var a=ls(r);return a===void 0?r:a.current}}function X7(r){return ch(r)}function Q7(r){{if(ls===null)return r;var a=ls(r);if(a===void 0){if(r!=null&&typeof r.render=="function"){var d=ch(r.render);if(r.render!==d){var p={$$typeof:Oe,render:d};return r.displayName!==void 0&&(p.displayName=r.displayName),p}}return r}return a.current}}function SA(r,a){{if(ls===null)return!1;var d=r.elementType,p=a.type,g=!1,x=typeof p=="object"&&p!==null?p.$$typeof:null;switch(r.tag){case v:{typeof p=="function"&&(g=!0);break}case m:{(typeof p=="function"||x===Vt)&&(g=!0);break}case U:{(x===Oe||x===Vt)&&(g=!0);break}case B:case W:{(x===Gt||x===Vt)&&(g=!0);break}default:return!1}if(g){var E=ls(d);if(E!==void 0&&E===ls(p))return!0}return!1}}function kA(r){{if(ls===null||typeof WeakSet!="function")return;uh===null&&(uh=new WeakSet),uh.add(r)}}var Zle=function(r,a){{if(ls===null)return;var d=a.staleFamilies,p=a.updatedFamilies;ju(),zu(function(){ew(r.current,p,d)})}},Wle=function(r,a){{if(r.context!==Oo)return;ju(),zu(function(){og(a,r,null,null)})}};function ew(r,a,d){{var p=r.alternate,g=r.child,x=r.sibling,E=r.tag,N=r.type,O=null;switch(E){case m:case W:case v:O=N;break;case U:O=N.render;break}if(ls===null)throw new Error("Expected resolveFamily to be set during hot reload.");var F=!1,V=!1;if(O!==null){var re=ls(O);re!==void 0&&(d.has(re)?V=!0:a.has(re)&&(E===v?V=!0:F=!0))}if(uh!==null&&(uh.has(r)||p!==null&&uh.has(p))&&(V=!0),V&&(r._debugNeedsRemount=!0),V||F){var te=no(r,jt);te!==null&&Ea(te,r,jt,Xn)}g!==null&&!V&&ew(g,a,d),x!==null&&ew(x,a,d)}}var qle=function(r,a){{var d=new Set,p=new Set(a.map(function(g){return g.current}));return tw(r.current,p,d),d}};function tw(r,a,d){{var p=r.child,g=r.sibling,x=r.tag,E=r.type,N=null;switch(x){case m:case W:case v:N=E;break;case U:N=E.render;break}var O=!1;N!==null&&a.has(N)&&(O=!0),O?Gle(r,d):p!==null&&tw(p,a,d),g!==null&&tw(g,a,d)}}function Gle(r,a){{var d=Yle(r,a);if(d)return;for(var p=r;;){switch(p.tag){case C:a.add(p.stateNode);return;case S:a.add(p.stateNode.containerInfo);return;case y:a.add(p.stateNode.containerInfo);return}if(p.return===null)throw new Error("Expected to reach root first.");p=p.return}}}function Yle(r,a){for(var d=r,p=!1;;){if(d.tag===C)p=!0,a.add(d.stateNode);else if(d.child!==null){d.child.return=d,d=d.child;continue}if(d===r)return p;for(;d.sibling===null;){if(d.return===null||d.return===r)return p;d=d.return}d.sibling.return=d.return,d=d.sibling}return!1}var nw;{nw=!1;try{var EA=Object.preventExtensions({})}catch(r){nw=!0}}function Jle(r,a,d,p){this.tag=r,this.key=d,this.elementType=null,this.type=null,this.stateNode=null,this.return=null,this.child=null,this.sibling=null,this.index=0,this.ref=null,this.pendingProps=a,this.memoizedProps=null,this.updateQueue=null,this.memoizedState=null,this.dependencies=null,this.mode=p,this.flags=Tt,this.subtreeFlags=Tt,this.deletions=null,this.lanes=Le,this.childLanes=Le,this.alternate=null,this.actualDuration=Number.NaN,this.actualStartTime=Number.NaN,this.selfBaseDuration=Number.NaN,this.treeBaseDuration=Number.NaN,this.actualDuration=0,this.actualStartTime=-1,this.selfBaseDuration=0,this.treeBaseDuration=0,this._debugSource=null,this._debugOwner=null,this._debugNeedsRemount=!1,this._debugHookTypes=null,!nw&&typeof Object.preventExtensions=="function"&&Object.preventExtensions(this)}var Lo=function(r,a,d,p){return new Jle(r,a,d,p)};function rw(r){var a=r.prototype;return!!(a&&a.isReactComponent)}function Kle(r){return typeof r=="function"&&!rw(r)&&r.defaultProps===void 0}function Xle(r){if(typeof r=="function")return rw(r)?v:m;if(r!=null){var a=r.$$typeof;if(a===Oe)return U;if(a===Gt)return B}return b}function Ff(r,a){var d=r.alternate;d===null?(d=Lo(r.tag,a,r.key,r.mode),d.elementType=r.elementType,d.type=r.type,d.stateNode=r.stateNode,d._debugSource=r._debugSource,d._debugOwner=r._debugOwner,d._debugHookTypes=r._debugHookTypes,d.alternate=r,r.alternate=d):(d.pendingProps=a,d.type=r.type,d.flags=Tt,d.subtreeFlags=Tt,d.deletions=null,d.actualDuration=0,d.actualStartTime=-1),d.flags=r.flags&Hr,d.childLanes=r.childLanes,d.lanes=r.lanes,d.child=r.child,d.memoizedProps=r.memoizedProps,d.memoizedState=r.memoizedState,d.updateQueue=r.updateQueue;var p=r.dependencies;switch(d.dependencies=p===null?null:{lanes:p.lanes,firstContext:p.firstContext},d.sibling=r.sibling,d.index=r.index,d.ref=r.ref,d.selfBaseDuration=r.selfBaseDuration,d.treeBaseDuration=r.treeBaseDuration,d._debugNeedsRemount=r._debugNeedsRemount,d.tag){case b:case m:case W:d.type=ch(r.type);break;case v:d.type=X7(r.type);break;case U:d.type=Q7(r.type);break}return d}function Qle(r,a){r.flags&=Hr|wr;var d=r.alternate;if(d===null)r.childLanes=Le,r.lanes=a,r.child=null,r.subtreeFlags=Tt,r.memoizedProps=null,r.memoizedState=null,r.updateQueue=null,r.dependencies=null,r.stateNode=null,r.selfBaseDuration=0,r.treeBaseDuration=0;else{r.childLanes=d.childLanes,r.lanes=d.lanes,r.child=d.child,r.subtreeFlags=Tt,r.deletions=null,r.memoizedProps=d.memoizedProps,r.memoizedState=d.memoizedState,r.updateQueue=d.updateQueue,r.type=d.type;var p=d.dependencies;r.dependencies=p===null?null:{lanes:p.lanes,firstContext:p.firstContext},r.selfBaseDuration=d.selfBaseDuration,r.treeBaseDuration=d.treeBaseDuration}return r}function eue(r,a,d){var p;return r===j2?(p=an,a===!0&&(p|=Wn,p|=Mn)):p=Rt,ri&&(p|=Rn),Lo(y,null,null,p)}function aw(r,a,d,p,g,x){var E=b,N=r;if(typeof r=="function")rw(r)?(E=v,N=X7(N)):N=ch(N);else if(typeof r=="string")E=C;else e:switch(r){case La:return td(d.children,g,x,a);case Nr:E=L,g|=Wn,(g&an)!==Rt&&(g|=Mn);break;case xi:return tue(d,g,x,a);case Ke:return nue(d,g,x,a);case st:return rue(d,g,x,a);case Or:return _A(d,g,x,a);case tr:case ln:case ir:case fa:case rn:default:{if(typeof r=="object"&&r!==null)switch(r.$$typeof){case er:E=j;break e;case J:E=I;break e;case Oe:E=U,N=Q7(N);break e;case Gt:E=B;break e;case Vt:E=G,N=null;break e}var O="";{(r===void 0||typeof r=="object"&&r!==null&&Object.keys(r).length===0)&&(O+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var F=p?Ht(p):null;F&&(O+=`
235
+
236
+ Check the render method of \``+F+"`.")}throw new Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) "+("but got: "+(r==null?r:typeof r)+"."+O))}}var V=Lo(E,d,a,g);return V.elementType=r,V.type=N,V.lanes=x,V._debugOwner=p,V}function iw(r,a,d){var p=null;p=r._owner;var g=r.type,x=r.key,E=r.props,N=aw(g,x,E,p,a,d);return N._debugSource=r._source,N._debugOwner=r._owner,N}function td(r,a,d,p){var g=Lo(M,r,p,a);return g.lanes=d,g}function tue(r,a,d,p){typeof r.id!="string"&&c('Profiler must specify an "id" of type `string` as a prop. Received the type `%s` instead.',typeof r.id);var g=Lo(P,r,p,a|Rn);return g.elementType=xi,g.lanes=d,g.stateNode={effectDuration:0,passiveEffectDuration:0},g}function nue(r,a,d,p){var g=Lo(Z,r,p,a);return g.elementType=Ke,g.lanes=d,g}function rue(r,a,d,p){var g=Lo(ve,r,p,a);return g.elementType=st,g.lanes=d,g}function _A(r,a,d,p){var g=Lo(ge,r,p,a);g.elementType=Or,g.lanes=d;var x={isHidden:!1};return g.stateNode=x,g}function ow(r,a,d){var p=Lo(R,r,null,a);return p.lanes=d,p}function aue(){var r=Lo(C,null,null,Rt);return r.elementType="DELETED",r}function iue(r){var a=Lo(ke,null,null,Rt);return a.stateNode=r,a}function sw(r,a,d){var p=r.children!==null?r.children:[],g=Lo(S,p,r.key,a);return g.lanes=d,g.stateNode={containerInfo:r.containerInfo,pendingChildren:null,implementation:r.implementation},g}function TA(r,a){return r===null&&(r=Lo(b,null,null,Rt)),r.tag=a.tag,r.key=a.key,r.elementType=a.elementType,r.type=a.type,r.stateNode=a.stateNode,r.return=a.return,r.child=a.child,r.sibling=a.sibling,r.index=a.index,r.ref=a.ref,r.pendingProps=a.pendingProps,r.memoizedProps=a.memoizedProps,r.updateQueue=a.updateQueue,r.memoizedState=a.memoizedState,r.dependencies=a.dependencies,r.mode=a.mode,r.flags=a.flags,r.subtreeFlags=a.subtreeFlags,r.deletions=a.deletions,r.lanes=a.lanes,r.childLanes=a.childLanes,r.alternate=a.alternate,r.actualDuration=a.actualDuration,r.actualStartTime=a.actualStartTime,r.selfBaseDuration=a.selfBaseDuration,r.treeBaseDuration=a.treeBaseDuration,r._debugSource=a._debugSource,r._debugOwner=a._debugOwner,r._debugNeedsRemount=a._debugNeedsRemount,r._debugHookTypes=a._debugHookTypes,r}function oue(r,a,d,p,g){this.tag=a,this.containerInfo=r,this.pendingChildren=null,this.current=null,this.pingCache=null,this.finishedWork=null,this.timeoutHandle=V6,this.context=null,this.pendingContext=null,this.callbackNode=null,this.callbackPriority=En,this.eventTimes=af(Le),this.expirationTimes=af(Xn),this.pendingLanes=Le,this.suspendedLanes=Le,this.pingedLanes=Le,this.expiredLanes=Le,this.mutableReadLanes=Le,this.finishedLanes=Le,this.entangledLanes=Le,this.entanglements=af(Le),this.identifierPrefix=p,this.onRecoverableError=g,this.mutableSourceEagerHydrationData=null,this.effectDuration=0,this.passiveEffectDuration=0;{this.memoizedUpdaters=new Set;for(var x=this.pendingUpdatersLaneMap=[],E=0;E<hu;E++)x.push(new Set)}switch(a){case j2:this._debugRootType=d?"hydrateRoot()":"createRoot()";break;case Vc:this._debugRootType=d?"hydrate()":"render()";break}}function RA(r,a,d,p,g,x,E,N,O,F){var V=new oue(r,a,d,N,O),re=eue(a,x);V.current=re,re.stateNode=V;{var te={element:p,isDehydrated:d,cache:null,transitions:null,pendingSuspenseBoundaries:null};re.memoizedState=te}return b8(re),V}var lw="18.3.1";function sue(r,a,d){var p=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;return Ct(p),{$$typeof:gr,key:p==null?null:""+p,children:r,containerInfo:a,implementation:d}}var uw,cw;uw=!1,cw={};function MA(r){if(!r)return Oo;var a=kc(r),d=Bie(a);if(a.tag===v){var p=a.type;if(Ll(p))return nO(a,p,d)}return d}function lue(r,a){{var d=kc(r);if(d===void 0){if(typeof r.render=="function")throw new Error("Unable to find node on an unmounted component.");var p=Object.keys(r).join(",");throw new Error("Argument appears to not be a ReactComponent. Keys: "+p)}var g=ti(d);if(g===null)return null;if(g.mode&Wn){var x=Ht(d)||"Component";if(!cw[x]){cw[x]=!0;var E=pa;try{Bn(g),d.mode&Wn?c("%s is deprecated in StrictMode. %s was passed an instance of %s which is inside StrictMode. Instead, add a ref directly to the element you want to reference. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-find-node",a,a,x):c("%s is deprecated in StrictMode. %s was passed an instance of %s which renders StrictMode children. Instead, add a ref directly to the element you want to reference. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-find-node",a,a,x)}finally{E?Bn(E):or()}}}return g.stateNode}}function NA(r,a,d,p,g,x,E,N){var O=!1,F=null;return RA(r,a,O,F,d,p,g,x,E)}function OA(r,a,d,p,g,x,E,N,O,F){var V=!0,re=RA(d,p,V,r,g,x,E,N,O);re.context=MA(null);var te=re.current,ue=Oi(),he=Qc(te),xe=Au(ue,he);return xe.callback=a!=null?a:null,Zc(te,xe,he),mle(re,he,ue),re}function og(r,a,d,p){Mm(a,r);var g=a.current,x=Oi(),E=Qc(g);xr(E);var N=MA(d);a.context===null?a.context=N:a.pendingContext=N,Uo&&pa!==null&&!uw&&(uw=!0,c(`Render methods should be a pure function of props and state; triggering nested component updates from render is not allowed. If necessary, trigger nested updates in componentDidUpdate.
237
+
238
+ Check the render method of %s.`,Ht(pa)||"Unknown"));var O=Au(x,E);O.payload={element:r},p=p===void 0?null:p,p!==null&&(typeof p!="function"&&c("render(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",p),O.callback=p);var F=Zc(g,O,E);return F!==null&&(Ea(F,g,E,x),Q2(F,g,E)),E}function V9(r){var a=r.current;if(!a.child)return null;switch(a.child.tag){case C:return a.child.stateNode;default:return a.child.stateNode}}function uue(r){switch(r.tag){case y:{var a=r.stateNode;if(C1(a)){var d=j0(a);wle(a,d)}break}case Z:{zu(function(){var g=no(r,jt);if(g!==null){var x=Oi();Ea(g,r,jt,x)}});var p=jt;dw(r,p);break}}}function LA(r,a){var d=r.memoizedState;d!==null&&d.dehydrated!==null&&(d.retryLane=B0(d.retryLane,a))}function dw(r,a){LA(r,a);var d=r.alternate;d&&LA(d,a)}function cue(r){if(r.tag===Z){var a=Xd,d=no(r,a);if(d!==null){var p=Oi();Ea(d,r,a,p)}dw(r,a)}}function due(r){if(r.tag===Z){var a=Qc(r),d=no(r,a);if(d!==null){var p=Oi();Ea(d,r,a,p)}dw(r,a)}}function AA(r){var a=hr(r);return a===null?null:a.stateNode}var IA=function(r){return null};function fue(r){return IA(r)}var DA=function(r){return!1};function pue(r){return DA(r)}var PA=null,zA=null,jA=null,FA=null,UA=null,HA=null,VA=null,BA=null,$A=null;{var ZA=function(r,a,d){var p=a[d],g=nn(r)?r.slice():en({},r);return d+1===a.length?(nn(g)?g.splice(p,1):delete g[p],g):(g[p]=ZA(r[p],a,d+1),g)},WA=function(r,a){return ZA(r,a,0)},qA=function(r,a,d,p){var g=a[p],x=nn(r)?r.slice():en({},r);if(p+1===a.length){var E=d[p];x[E]=x[g],nn(x)?x.splice(g,1):delete x[g]}else x[g]=qA(r[g],a,d,p+1);return x},GA=function(r,a,d){if(a.length!==d.length){l("copyWithRename() expects paths of the same length");return}else for(var p=0;p<d.length-1;p++)if(a[p]!==d[p]){l("copyWithRename() expects paths to be the same except for the deepest key");return}return qA(r,a,d,0)},YA=function(r,a,d,p){if(d>=a.length)return p;var g=a[d],x=nn(r)?r.slice():en({},r);return x[g]=YA(r[g],a,d+1,p),x},JA=function(r,a,d){return YA(r,a,0,d)},fw=function(r,a){for(var d=r.memoizedState;d!==null&&a>0;)d=d.next,a--;return d};PA=function(r,a,d,p){var g=fw(r,a);if(g!==null){var x=JA(g.memoizedState,d,p);g.memoizedState=x,g.baseState=x,r.memoizedProps=en({},r.memoizedProps);var E=no(r,jt);E!==null&&Ea(E,r,jt,Xn)}},zA=function(r,a,d){var p=fw(r,a);if(p!==null){var g=WA(p.memoizedState,d);p.memoizedState=g,p.baseState=g,r.memoizedProps=en({},r.memoizedProps);var x=no(r,jt);x!==null&&Ea(x,r,jt,Xn)}},jA=function(r,a,d,p){var g=fw(r,a);if(g!==null){var x=GA(g.memoizedState,d,p);g.memoizedState=x,g.baseState=x,r.memoizedProps=en({},r.memoizedProps);var E=no(r,jt);E!==null&&Ea(E,r,jt,Xn)}},FA=function(r,a,d){r.pendingProps=JA(r.memoizedProps,a,d),r.alternate&&(r.alternate.pendingProps=r.pendingProps);var p=no(r,jt);p!==null&&Ea(p,r,jt,Xn)},UA=function(r,a){r.pendingProps=WA(r.memoizedProps,a),r.alternate&&(r.alternate.pendingProps=r.pendingProps);var d=no(r,jt);d!==null&&Ea(d,r,jt,Xn)},HA=function(r,a,d){r.pendingProps=GA(r.memoizedProps,a,d),r.alternate&&(r.alternate.pendingProps=r.pendingProps);var p=no(r,jt);p!==null&&Ea(p,r,jt,Xn)},VA=function(r){var a=no(r,jt);a!==null&&Ea(a,r,jt,Xn)},BA=function(r){IA=r},$A=function(r){DA=r}}function hue(r){var a=ti(r);return a===null?null:a.stateNode}function mue(r){return null}function vue(){return pa}function gue(r){var a=r.findFiberByHostInstance,d=n.ReactCurrentDispatcher;return Tc({bundleType:r.bundleType,version:r.version,rendererPackageName:r.rendererPackageName,rendererConfig:r.rendererConfig,overrideHookState:PA,overrideHookStateDeletePath:zA,overrideHookStateRenamePath:jA,overrideProps:FA,overridePropsDeletePath:UA,overridePropsRenamePath:HA,setErrorHandler:BA,setSuspenseHandler:$A,scheduleUpdate:VA,currentDispatcherRef:d,findHostInstanceByFiber:hue,findFiberByHostInstance:a||mue,findHostInstancesForRefresh:qle,scheduleRefresh:Zle,scheduleRoot:Wle,setRefreshHandler:$le,getCurrentFiber:vue,reconcilerVersion:lw})}var KA=typeof reportError=="function"?reportError:function(r){console.error(r)};function pw(r){this._internalRoot=r}B9.prototype.render=pw.prototype.render=function(r){var a=this._internalRoot;if(a===null)throw new Error("Cannot update an unmounted root.");{typeof arguments[1]=="function"?c("render(...): does not support the second callback argument. To execute a side effect after rendering, declare it in a component body with useEffect()."):$9(arguments[1])?c("You passed a container to the second argument of root.render(...). You don't need to pass it again since you already passed it to create the root."):typeof arguments[1]!="undefined"&&c("You passed a second argument to root.render(...) but it only accepts one argument.");var d=a.containerInfo;if(d.nodeType!==Fr){var p=AA(a.current);p&&p.parentNode!==d&&c("render(...): It looks like the React-rendered content of the root container was removed without using React. This is not supported and will cause errors. Instead, call root.unmount() to empty a root's container.")}}og(r,a,null,null)},B9.prototype.unmount=pw.prototype.unmount=function(){typeof arguments[0]=="function"&&c("unmount(...): does not support a callback argument. To execute a side effect after rendering, declare it in a component body with useEffect().");var r=this._internalRoot;if(r!==null){this._internalRoot=null;var a=r.containerInfo;uA()&&c("Attempted to synchronously unmount a root while React was already rendering. React cannot finish unmounting the root until the current render has completed, which may lead to a race condition."),zu(function(){og(null,r,null,null)}),KN(a)}};function yue(r,a){if(!$9(r))throw new Error("createRoot(...): Target container is not a DOM element.");XA(r);var d=!1,p=!1,g="",x=KA;a!=null&&(a.hydrate?l("hydrate through createRoot is deprecated. Use ReactDOMClient.hydrateRoot(container, <App />) instead."):typeof a=="object"&&a!==null&&a.$$typeof===Mr&&c(`You passed a JSX element to createRoot. You probably meant to call root.render instead. Example usage:
239
+
240
+ let root = createRoot(domContainer);
241
+ root.render(<App />);`),a.unstable_strictMode===!0&&(d=!0),a.identifierPrefix!==void 0&&(g=a.identifierPrefix),a.onRecoverableError!==void 0&&(x=a.onRecoverableError),a.transitionCallbacks!==void 0&&a.transitionCallbacks);var E=NA(r,j2,null,d,p,g,x);O2(E.current,r);var N=r.nodeType===Fr?r.parentNode:r;return fv(N),new pw(E)}function B9(r){this._internalRoot=r}function wue(r){r&&Q0(r)}B9.prototype.unstable_scheduleHydration=wue;function bue(r,a,d){if(!$9(r))throw new Error("hydrateRoot(...): Target container is not a DOM element.");XA(r),a===void 0&&c("Must provide initial children as second argument to hydrateRoot. Example usage: hydrateRoot(domContainer, <App />)");var p=d!=null?d:null,g=d!=null&&d.hydratedSources||null,x=!1,E=!1,N="",O=KA;d!=null&&(d.unstable_strictMode===!0&&(x=!0),d.identifierPrefix!==void 0&&(N=d.identifierPrefix),d.onRecoverableError!==void 0&&(O=d.onRecoverableError));var F=OA(a,null,r,j2,p,x,E,N,O);if(O2(F.current,r),fv(r),g)for(var V=0;V<g.length;V++){var re=g[V];koe(F,re)}return new B9(F)}function $9(r){return!!(r&&(r.nodeType===Xa||r.nodeType===ks||r.nodeType===hm))}function sg(r){return!!(r&&(r.nodeType===Xa||r.nodeType===ks||r.nodeType===hm||r.nodeType===Fr&&r.nodeValue===" react-mount-point-unstable "))}function XA(r){r.nodeType===Xa&&r.tagName&&r.tagName.toUpperCase()==="BODY"&&c("createRoot(): Creating roots directly with document.body is discouraged, since its children are often manipulated by third-party scripts and browser extensions. This may lead to subtle reconciliation issues. Try using a container element created for your app."),Sv(r)&&(r._reactRootContainer?c("You are calling ReactDOMClient.createRoot() on a container that was previously passed to ReactDOM.render(). This is not supported."):c("You are calling ReactDOMClient.createRoot() on a container that has already been passed to createRoot() before. Instead, call root.render() on the existing root instead if you want to update it."))}var xue=n.ReactCurrentOwner,QA;QA=function(r){if(r._reactRootContainer&&r.nodeType!==Fr){var a=AA(r._reactRootContainer.current);a&&a.parentNode!==r&&c("render(...): It looks like the React-rendered content of this container was removed without using React. This is not supported and will cause errors. Instead, call ReactDOM.unmountComponentAtNode to empty a container.")}var d=!!r._reactRootContainer,p=hw(r),g=!!(p&&Uc(p));g&&!d&&c("render(...): Replacing React-rendered children with a new root component. If you intended to update the children of this node, you should instead have the existing children update their state and render the new components instead of calling ReactDOM.render."),r.nodeType===Xa&&r.tagName&&r.tagName.toUpperCase()==="BODY"&&c("render(): Rendering components directly into document.body is discouraged, since its children are often manipulated by third-party scripts and browser extensions. This may lead to subtle reconciliation issues. Try rendering into a container element created for your app.")};function hw(r){return r?r.nodeType===ks?r.documentElement:r.firstChild:null}function eI(){}function Cue(r,a,d,p,g){if(g){if(typeof p=="function"){var x=p;p=function(){var te=V9(E);x.call(te)}}var E=OA(a,p,r,Vc,null,!1,!1,"",eI);r._reactRootContainer=E,O2(E.current,r);var N=r.nodeType===Fr?r.parentNode:r;return fv(N),zu(),E}else{for(var O;O=r.lastChild;)r.removeChild(O);if(typeof p=="function"){var F=p;p=function(){var te=V9(V);F.call(te)}}var V=NA(r,Vc,null,!1,!1,"",eI);r._reactRootContainer=V,O2(V.current,r);var re=r.nodeType===Fr?r.parentNode:r;return fv(re),zu(function(){og(a,V,d,p)}),V}}function Sue(r,a){r!==null&&typeof r!="function"&&c("%s(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",a,r)}function Z9(r,a,d,p,g){QA(d),Sue(g===void 0?null:g,"render");var x=d._reactRootContainer,E;if(!x)E=Cue(d,a,r,g,p);else{if(E=x,typeof g=="function"){var N=g;g=function(){var O=V9(E);N.call(O)}}og(a,E,r,g)}return V9(E)}var tI=!1;function kue(r){{tI||(tI=!0,c("findDOMNode is deprecated and will be removed in the next major release. Instead, add a ref directly to the element you want to reference. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-find-node"));var a=xue.current;if(a!==null&&a.stateNode!==null){var d=a.stateNode._warnedAboutRefsInRender;d||c("%s is accessing findDOMNode inside its render(). render() should be a pure function of props and state. It should never access something that requires stale data from the previous render, such as refs. Move this logic to componentDidMount and componentDidUpdate instead.",bn(a.type)||"A component"),a.stateNode._warnedAboutRefsInRender=!0}}return r==null?null:r.nodeType===Xa?r:lue(r,"findDOMNode")}function Eue(r,a,d){if(c("ReactDOM.hydrate is no longer supported in React 18. Use hydrateRoot instead. Until you switch to the new API, your app will behave as if it's running React 17. Learn more: https://reactjs.org/link/switch-to-createroot"),!sg(a))throw new Error("Target container is not a DOM element.");{var p=Sv(a)&&a._reactRootContainer===void 0;p&&c("You are calling ReactDOM.hydrate() on a container that was previously passed to ReactDOMClient.createRoot(). This is not supported. Did you mean to call hydrateRoot(container, element)?")}return Z9(null,r,a,!0,d)}function _ue(r,a,d){if(c("ReactDOM.render is no longer supported in React 18. Use createRoot instead. Until you switch to the new API, your app will behave as if it's running React 17. Learn more: https://reactjs.org/link/switch-to-createroot"),!sg(a))throw new Error("Target container is not a DOM element.");{var p=Sv(a)&&a._reactRootContainer===void 0;p&&c("You are calling ReactDOM.render() on a container that was previously passed to ReactDOMClient.createRoot(). This is not supported. Did you mean to call root.render(element)?")}return Z9(null,r,a,!1,d)}function Tue(r,a,d,p){if(c("ReactDOM.unstable_renderSubtreeIntoContainer() is no longer supported in React 18. Consider using a portal instead. Until you switch to the createRoot API, your app will behave as if it's running React 17. Learn more: https://reactjs.org/link/switch-to-createroot"),!sg(d))throw new Error("Target container is not a DOM element.");if(r==null||!d6(r))throw new Error("parentComponent must be a valid React Component");return Z9(r,a,d,!1,p)}var nI=!1;function Rue(r){if(nI||(nI=!0,c("unmountComponentAtNode is deprecated and will be removed in the next major release. Switch to the createRoot API. Learn more: https://reactjs.org/link/switch-to-createroot")),!sg(r))throw new Error("unmountComponentAtNode(...): Target container is not a DOM element.");{var a=Sv(r)&&r._reactRootContainer===void 0;a&&c("You are calling ReactDOM.unmountComponentAtNode() on a container that was previously passed to ReactDOMClient.createRoot(). This is not supported. Did you mean to call root.unmount()?")}if(r._reactRootContainer){{var d=hw(r),p=d&&!Uc(d);p&&c("unmountComponentAtNode(): The node you're attempting to unmount was rendered by another copy of React.")}return zu(function(){Z9(null,null,r,!1,function(){r._reactRootContainer=null,KN(r)})}),!0}else{{var g=hw(r),x=!!(g&&Uc(g)),E=r.nodeType===Xa&&sg(r.parentNode)&&!!r.parentNode._reactRootContainer;x&&c("unmountComponentAtNode(): The node you're attempting to unmount was rendered by React and is not a top-level container. %s",E?"You may have accidentally passed in a React root node instead of its container.":"Instead, have the parent component update its state and rerender in order to remove this component.")}return!1}}Ma(uue),Oc(cue),Y0(due),cf(Qi),Ym(W0),(typeof Map!="function"||Map.prototype==null||typeof Map.prototype.forEach!="function"||typeof Set!="function"||Set.prototype==null||typeof Set.prototype.clear!="function"||typeof Set.prototype.forEach!="function")&&c("React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),Fp(Nae),c6(Z7,ble,zu);function Mue(r,a){var d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!$9(a))throw new Error("Target container is not a DOM element.");return sue(r,a,null,d)}function Nue(r,a,d,p){return Tue(r,a,d,p)}var mw={usingClientEntryPoint:!1,Events:[Uc,H1,L2,bc,Up,Z7]};function Oue(r,a){return mw.usingClientEntryPoint||c('You are importing createRoot from "react-dom" which is not supported. You should instead import it from "react-dom/client".'),yue(r,a)}function Lue(r,a,d){return mw.usingClientEntryPoint||c('You are importing hydrateRoot from "react-dom" which is not supported. You should instead import it from "react-dom/client".'),bue(r,a,d)}function Aue(r){return uA()&&c("flushSync was called from inside a lifecycle method. React cannot flush when React is already rendering. Consider moving this call to a scheduler task or micro task."),zu(r)}var Iue=gue({findFiberByHostInstance:kf,bundleType:1,version:lw,rendererPackageName:"react-dom"});if(!Iue&&Xe&&window.top===window.self&&(navigator.userAgent.indexOf("Chrome")>-1&&navigator.userAgent.indexOf("Edge")===-1||navigator.userAgent.indexOf("Firefox")>-1)){var rI=window.location.protocol;/^(https?|file):$/.test(rI)&&console.info("%cDownload the React DevTools for a better development experience: https://reactjs.org/link/react-devtools"+(rI==="file:"?`
242
+ You might need to use a local HTTP server (instead of file://): https://reactjs.org/link/react-devtools-faq`:""),"font-weight:bold")}Pi.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=mw,Pi.createPortal=Mue,Pi.createRoot=Oue,Pi.findDOMNode=kue,Pi.flushSync=Aue,Pi.hydrate=Eue,Pi.hydrateRoot=Lue,Pi.render=_ue,Pi.unmountComponentAtNode=Rue,Pi.unstable_batchedUpdates=Z7,Pi.unstable_renderSubtreeIntoContainer=Nue,Pi.version=lw,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__!="undefined"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()),Pi}function Nw(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__=="undefined"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function")){if(process.env.NODE_ENV!=="production")throw new Error("^_^");try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Nw)}catch(e){console.error(e)}}}process.env.NODE_ENV==="production"?(Nw(),q9.exports=pI()):q9.exports=hI();var Hu=q9.exports;const mI=Uu(Hu);var fg,pg=Hu;if(process.env.NODE_ENV==="production")fg=pg.createRoot,pg.hydrateRoot;else{var Ow=pg.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;fg=function(e,t){Ow.usingClientEntryPoint=!0;try{return pg.createRoot(e,t)}finally{Ow.usingClientEntryPoint=!1}}}const Lw=e=>{let t;const n=new Set,i=(v,b)=>{const y=typeof v=="function"?v(t):v;if(!Object.is(y,t)){const S=t;t=(b!=null?b:typeof y!="object"||y===null)?y:Object.assign({},t,y),n.forEach(C=>C(t,S))}},o=()=>t,f={setState:i,getState:o,getInitialState:()=>m,subscribe:v=>(n.add(v),()=>n.delete(v))},m=t=e(i,o,f);return f},vI=e=>e?Lw(e):Lw;var D=Hl();const oo=Uu(D),J9=Uf({__proto__:null,default:oo},[D]),gI=e=>e;function yI(e,t=gI){const n=oo.useSyncExternalStore(e.subscribe,oo.useCallback(()=>t(e.getState()),[e,t]),oo.useCallback(()=>t(e.getInitialState()),[e,t]));return oo.useDebugValue(n),n}const Aw=e=>{const t=vI(e),n=i=>yI(t,i);return Object.assign(n,t),n},wI=e=>e?Aw(e):Aw,bI=e=>(t,n,i)=>{const o=i.subscribe;return i.subscribe=(c,f,m)=>{let v=c;if(f){const b=(m==null?void 0:m.equalityFn)||Object.is;let y=c(i.getState());v=S=>{const C=c(S);if(!b(y,C)){const R=y;f(y=C,R)}},m!=null&&m.fireImmediately&&f(y,y)}return o(v)},e(t,n,i)},xI=e=>{var n;const t={chatAreaVisible:!1,chatEntryVisible:!1,chatAreaPluginInstList:[],chatAreaPluginMap:new Map,eventBus:e.eventBus,frameMode:((n=e.options)==null?void 0:n.frameMode)||"float",msgClearTimestamp:Date.now()};return wI()(bI(i=>({...t,clearMessages:()=>i(()=>({msgClearTimestamp:Date.now()})),setFrameMode:o=>i(()=>({frameMode:o})),setChatAreaPluginInstList:o=>i(()=>{let l=new Map;return o.forEach(c=>{l.set(c.pluginName,c)}),{chatAreaPluginMap:l,chatAreaPluginInstList:o}}),setChatEntryVisible:(o,l)=>i(()=>({chatEntryVisible:o,chatEntryElWrapper:l})),setChatAreaVisible:o=>i(()=>({chatAreaVisible:o}))})))},Iw=e=>Symbol.iterator in e,Dw=e=>"entries"in e,Pw=(e,t)=>{const n=e instanceof Map?e:new Map(e.entries()),i=t instanceof Map?t:new Map(t.entries());if(n.size!==i.size)return!1;for(const[o,l]of n)if(!i.has(o)||!Object.is(l,i.get(o)))return!1;return!0},CI=(e,t)=>{const n=e[Symbol.iterator](),i=t[Symbol.iterator]();let o=n.next(),l=i.next();for(;!o.done&&!l.done;){if(!Object.is(o.value,l.value))return!1;o=n.next(),l=i.next()}return!!o.done&&!!l.done};function SI(e,t){return Object.is(e,t)?!0:typeof e!="object"||e===null||typeof t!="object"||t===null||Object.getPrototypeOf(e)!==Object.getPrototypeOf(t)?!1:Iw(e)&&Iw(t)?Dw(e)&&Dw(t)?Pw(e,t):CI(e,t):Pw({entries:()=>Object.entries(e)},{entries:()=>Object.entries(t)})}var K9={exports:{}},X9={},hg={exports:{}},Q9={};/**
243
+ * @license React
244
+ * use-sync-external-store-shim.production.js
245
+ *
246
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
247
+ *
248
+ * This source code is licensed under the MIT license found in the
249
+ * LICENSE file in the root directory of this source tree.
250
+ */var zw;function kI(){if(zw)return Q9;zw=1;var e=Hl();function t(y,S){return y===S&&(y!==0||1/y===1/S)||y!==y&&S!==S}var n=typeof Object.is=="function"?Object.is:t,i=e.useState,o=e.useEffect,l=e.useLayoutEffect,c=e.useDebugValue;function f(y,S){var C=S(),R=i({inst:{value:C,getSnapshot:S}}),M=R[0].inst,L=R[1];return l(function(){M.value=C,M.getSnapshot=S,m(M)&&L({inst:M})},[y,C,S]),o(function(){return m(M)&&L({inst:M}),y(function(){m(M)&&L({inst:M})})},[y]),c(C),C}function m(y){var S=y.getSnapshot;y=y.value;try{var C=S();return!n(y,C)}catch(R){return!0}}function v(y,S){return S()}var b=typeof window=="undefined"||typeof window.document=="undefined"||typeof window.document.createElement=="undefined"?v:f;return Q9.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:b,Q9}var ey={};/**
251
+ * @license React
252
+ * use-sync-external-store-shim.development.js
253
+ *
254
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
255
+ *
256
+ * This source code is licensed under the MIT license found in the
257
+ * LICENSE file in the root directory of this source tree.
258
+ */var jw;function EI(){return jw||(jw=1,process.env.NODE_ENV!=="production"&&function(){function e(C,R){return C===R&&(C!==0||1/C===1/R)||C!==C&&R!==R}function t(C,R){b||o.startTransition===void 0||(b=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var M=R();if(!y){var L=R();l(M,L)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),y=!0)}L=c({inst:{value:M,getSnapshot:R}});var I=L[0].inst,j=L[1];return m(function(){I.value=M,I.getSnapshot=R,n(I)&&j({inst:I})},[C,M,R]),f(function(){return n(I)&&j({inst:I}),C(function(){n(I)&&j({inst:I})})},[C]),v(M),M}function n(C){var R=C.getSnapshot;C=C.value;try{var M=R();return!l(C,M)}catch(L){return!0}}function i(C,R){return R()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__!="undefined"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var o=Hl(),l=typeof Object.is=="function"?Object.is:e,c=o.useState,f=o.useEffect,m=o.useLayoutEffect,v=o.useDebugValue,b=!1,y=!1,S=typeof window=="undefined"||typeof window.document=="undefined"||typeof window.document.createElement=="undefined"?i:t;ey.useSyncExternalStore=o.useSyncExternalStore!==void 0?o.useSyncExternalStore:S,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__!="undefined"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),ey}var Fw;function Uw(){return Fw||(Fw=1,process.env.NODE_ENV==="production"?hg.exports=kI():hg.exports=EI()),hg.exports}/**
259
+ * @license React
260
+ * use-sync-external-store-shim/with-selector.production.js
261
+ *
262
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
263
+ *
264
+ * This source code is licensed under the MIT license found in the
265
+ * LICENSE file in the root directory of this source tree.
266
+ */var Hw;function _I(){if(Hw)return X9;Hw=1;var e=Hl(),t=Uw();function n(v,b){return v===b&&(v!==0||1/v===1/b)||v!==v&&b!==b}var i=typeof Object.is=="function"?Object.is:n,o=t.useSyncExternalStore,l=e.useRef,c=e.useEffect,f=e.useMemo,m=e.useDebugValue;return X9.useSyncExternalStoreWithSelector=function(v,b,y,S,C){var R=l(null);if(R.current===null){var M={hasValue:!1,value:null};R.current=M}else M=R.current;R=f(function(){function I(B){if(!j){if(j=!0,U=B,B=S(B),C!==void 0&&M.hasValue){var W=M.value;if(C(W,B))return P=W}return P=B}if(W=P,i(U,B))return W;var G=S(B);return C!==void 0&&C(W,G)?(U=B,W):(U=B,P=G)}var j=!1,U,P,Z=y===void 0?null:y;return[function(){return I(b())},Z===null?void 0:function(){return I(Z())}]},[b,y,S,C]);var L=o(v,R[0],R[1]);return c(function(){M.hasValue=!0,M.value=L},[L]),m(L),L},X9}var ty={};/**
267
+ * @license React
268
+ * use-sync-external-store-shim/with-selector.development.js
269
+ *
270
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
271
+ *
272
+ * This source code is licensed under the MIT license found in the
273
+ * LICENSE file in the root directory of this source tree.
274
+ */var Vw;function TI(){return Vw||(Vw=1,process.env.NODE_ENV!=="production"&&function(){function e(v,b){return v===b&&(v!==0||1/v===1/b)||v!==v&&b!==b}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__!="undefined"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var t=Hl(),n=Uw(),i=typeof Object.is=="function"?Object.is:e,o=n.useSyncExternalStore,l=t.useRef,c=t.useEffect,f=t.useMemo,m=t.useDebugValue;ty.useSyncExternalStoreWithSelector=function(v,b,y,S,C){var R=l(null);if(R.current===null){var M={hasValue:!1,value:null};R.current=M}else M=R.current;R=f(function(){function I(B){if(!j){if(j=!0,U=B,B=S(B),C!==void 0&&M.hasValue){var W=M.value;if(C(W,B))return P=W}return P=B}if(W=P,i(U,B))return W;var G=S(B);return C!==void 0&&C(W,G)?(U=B,W):(U=B,P=G)}var j=!1,U,P,Z=y===void 0?null:y;return[function(){return I(b())},Z===null?void 0:function(){return I(Z())}]},[b,y,S,C]);var L=o(v,R[0],R[1]);return c(function(){M.hasValue=!0,M.value=L},[L]),m(L),L},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__!="undefined"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),ty}process.env.NODE_ENV==="production"?K9.exports=_I():K9.exports=TI();var RI=K9.exports;const MI=Uu(RI),{useSyncExternalStoreWithSelector:NI}=MI,OI=e=>e;function LI(e,t=OI,n){const i=NI(e.subscribe,e.getState,e.getInitialState,t,n);return oo.useDebugValue(i),i}const Bw=D.createContext(void 0),AI=({store:e,children:t})=>_.jsx(Bw.Provider,{value:{chatStore:e},children:t}),Vl=e=>{const t=D.useContext(Bw).chatStore;return LI(t,e,SI)};var $w="vercel.ai.error",II=Symbol.for($w),Zw,Ww,Jt=class aI extends(Ww=Error,Zw=II,Ww){constructor({name:t,message:n,cause:i}){super(n),this[Zw]=!0,this.name=t,this.cause=i}static isInstance(t){return aI.hasMarker(t,$w)}static hasMarker(t,n){const i=Symbol.for(n);return t!=null&&typeof t=="object"&&i in t&&typeof t[i]=="boolean"&&t[i]===!0}},qw="AI_APICallError",Gw=`vercel.ai.error.${qw}`,DI=Symbol.for(Gw),Yw,Jw,hi=class extends(Jw=Jt,Yw=DI,Jw){constructor({message:e,url:t,requestBodyValues:n,statusCode:i,responseHeaders:o,responseBody:l,cause:c,isRetryable:f=i!=null&&(i===408||i===409||i===429||i>=500),data:m}){super({name:qw,message:e,cause:c}),this[Yw]=!0,this.url=t,this.requestBodyValues=n,this.statusCode=i,this.responseHeaders=o,this.responseBody=l,this.isRetryable=f,this.data=m}static isInstance(e){return Jt.hasMarker(e,Gw)}},Kw="AI_EmptyResponseBodyError",Xw=`vercel.ai.error.${Kw}`,PI=Symbol.for(Xw),Qw,eb,zI=class extends(eb=Jt,Qw=PI,eb){constructor({message:e="Empty response body"}={}){super({name:Kw,message:e}),this[Qw]=!0}static isInstance(e){return Jt.hasMarker(e,Xw)}};function Hf(e){return e==null?"unknown error":typeof e=="string"?e:e instanceof Error?e.message:JSON.stringify(e)}var tb="AI_InvalidArgumentError",nb=`vercel.ai.error.${tb}`,jI=Symbol.for(nb),rb,ab,ib=class extends(ab=Jt,rb=jI,ab){constructor({message:t,cause:n,argument:i}){super({name:tb,message:t,cause:n}),this[rb]=!0,this.argument=i}static isInstance(t){return Jt.hasMarker(t,nb)}},ob="AI_InvalidPromptError",sb=`vercel.ai.error.${ob}`,FI=Symbol.for(sb),lb,ub,Vf=class extends(ub=Jt,lb=FI,ub){constructor({prompt:e,message:t,cause:n}){super({name:ob,message:`Invalid prompt: ${t}`,cause:n}),this[lb]=!0,this.prompt=e}static isInstance(e){return Jt.hasMarker(e,sb)}},cb="AI_InvalidResponseDataError",db=`vercel.ai.error.${cb}`,UI=Symbol.for(db),fb,pb,hb=class extends(pb=Jt,fb=UI,pb){constructor({data:e,message:t=`Invalid response data: ${JSON.stringify(e)}.`}){super({name:cb,message:t}),this[fb]=!0,this.data=e}static isInstance(e){return Jt.hasMarker(e,db)}},mb="AI_JSONParseError",vb=`vercel.ai.error.${mb}`,HI=Symbol.for(vb),gb,yb,mg=class extends(yb=Jt,gb=HI,yb){constructor({text:e,cause:t}){super({name:mb,message:`JSON parsing failed: Text: ${e}.
275
+ Error message: ${Hf(t)}`,cause:t}),this[gb]=!0,this.text=e}static isInstance(e){return Jt.hasMarker(e,vb)}},wb="AI_LoadAPIKeyError",bb=`vercel.ai.error.${wb}`,VI=Symbol.for(bb),xb,Cb,vg=class extends(Cb=Jt,xb=VI,Cb){constructor({message:e}){super({name:wb,message:e}),this[xb]=!0}static isInstance(e){return Jt.hasMarker(e,bb)}},Sb="AI_NoSuchModelError",kb=`vercel.ai.error.${Sb}`,BI=Symbol.for(kb),Eb,_b,Tb=class extends(_b=Jt,Eb=BI,_b){constructor({errorName:e=Sb,modelId:t,modelType:n,message:i=`No such ${n}: ${t}`}){super({name:e,message:i}),this[Eb]=!0,this.modelId=t,this.modelType=n}static isInstance(e){return Jt.hasMarker(e,kb)}},Rb="AI_TypeValidationError",Mb=`vercel.ai.error.${Rb}`,$I=Symbol.for(Mb),Nb,Ob,mh=class vw extends(Ob=Jt,Nb=$I,Ob){constructor({value:t,cause:n}){super({name:Rb,message:`Type validation failed: Value: ${JSON.stringify(t)}.
276
+ Error message: ${Hf(n)}`,cause:n}),this[Nb]=!0,this.value=t}static isInstance(t){return Jt.hasMarker(t,Mb)}static wrap({value:t,cause:n}){return vw.isInstance(n)&&n.value===t?n:new vw({value:t,cause:n})}},Lb="AI_UnsupportedFunctionalityError",Ab=`vercel.ai.error.${Lb}`,ZI=Symbol.for(Ab),Ib,Db,WI=class extends(Db=Jt,Ib=ZI,Db){constructor({functionality:e,message:t=`'${e}' functionality not supported.`}){super({name:Lb,message:t}),this[Ib]=!0,this.functionality=e}static isInstance(e){return Jt.hasMarker(e,Ab)}};class Pb extends Error{constructor(t,n){super(t),this.name="ParseError",this.type=n.type,this.field=n.field,this.value=n.value,this.line=n.line}}function ny(e){}function qI(e){if(typeof e=="function")throw new TypeError("`callbacks` must be an object, got a function instead. Did you mean `{onEvent: fn}`?");const{onEvent:t=ny,onError:n=ny,onRetry:i=ny,onComment:o}=e;let l="",c=!0,f,m="",v="";function b(M){const L=c?M.replace(/^\xEF\xBB\xBF/,""):M,[I,j]=GI(`${l}${L}`);for(const U of I)y(U);l=j,c=!1}function y(M){if(M===""){C();return}if(M.startsWith(":")){o&&o(M.slice(M.startsWith(": ")?2:1));return}const L=M.indexOf(":");if(L!==-1){const I=M.slice(0,L),j=M[L+1]===" "?2:1,U=M.slice(L+j);S(I,U,M);return}S(M,"",M)}function S(M,L,I){switch(M){case"event":v=L;break;case"data":m=`${m}${L}
277
+ `;break;case"id":f=L.includes("\0")?void 0:L;break;case"retry":/^\d+$/.test(L)?i(parseInt(L,10)):n(new Pb(`Invalid \`retry\` value: "${L}"`,{type:"invalid-retry",value:L,line:I}));break;default:n(new Pb(`Unknown field "${M.length>20?`${M.slice(0,20)}…`:M}"`,{type:"unknown-field",field:M,value:L,line:I}));break}}function C(){m.length>0&&t({id:f,event:v||void 0,data:m.endsWith(`
278
+ `)?m.slice(0,-1):m}),f=void 0,m="",v=""}function R(M={}){l&&M.consume&&y(l),c=!0,f=void 0,m="",v="",l=""}return{feed:b,reset:R}}function GI(e){const t=[];let n="",i=0;for(;i<e.length;){const o=e.indexOf("\r",i),l=e.indexOf(`
279
+ `,i);let c=-1;if(o!==-1&&l!==-1?c=Math.min(o,l):o!==-1?o===e.length-1?c=-1:c=o:l!==-1&&(c=l),c===-1){n=e.slice(i);break}else{const f=e.slice(i,c);t.push(f),i=c+1,e[i-1]==="\r"&&e[i]===`
280
+ `&&i++}}return[t,n]}class YI extends TransformStream{constructor({onError:t,onRetry:n,onComment:i}={}){let o;super({start(l){o=qI({onEvent:c=>{l.enqueue(c)},onError(c){t==="terminate"?l.error(c):typeof t=="function"&&t(c)},onRetry:n,onComment:i})},transform(l){o.feed(l)}})}}function Se(e,t,n){var f;function i(m,v){if(m._zod||Object.defineProperty(m,"_zod",{value:{def:v,constr:c,traits:new Set},enumerable:!1}),m._zod.traits.has(e))return;m._zod.traits.add(e),t(m,v);const b=c.prototype,y=Object.keys(b);for(let S=0;S<y.length;S++){const C=y[S];C in m||(m[C]=b[C].bind(m))}}const o=(f=n==null?void 0:n.Parent)!=null?f:Object;class l extends o{}Object.defineProperty(l,"name",{value:e});function c(m){var y;var v;const b=n!=null&&n.Parent?new l:this;i(b,m),(y=(v=b._zod).deferred)!=null||(v.deferred=[]);for(const S of b._zod.deferred)S();return b}return Object.defineProperty(c,"init",{value:i}),Object.defineProperty(c,Symbol.hasInstance,{value:m=>{var v,b;return n!=null&&n.Parent&&m instanceof n.Parent?!0:(b=(v=m==null?void 0:m._zod)==null?void 0:v.traits)==null?void 0:b.has(e)}}),Object.defineProperty(c,"name",{value:e}),c}class Bf extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class zb extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}}const jb={};function Vu(e){return jb}function Fb(e){const t=Object.values(e).filter(i=>typeof i=="number");return Object.entries(e).filter(([i,o])=>t.indexOf(+i)===-1).map(([i,o])=>o)}function ry(e,t){return typeof t=="bigint"?t.toString():t}function gg(e){return{get value(){{const t=e();return Object.defineProperty(this,"value",{value:t}),t}}}}function ay(e){return e==null}function iy(e){const t=e.startsWith("^")?1:0,n=e.endsWith("$")?e.length-1:e.length;return e.slice(t,n)}function JI(e,t){const n=(e.toString().split(".")[1]||"").length,i=t.toString();let o=(i.split(".")[1]||"").length;if(o===0&&/\d?e-\d?/.test(i)){const m=i.match(/\d?e-(\d?)/);m!=null&&m[1]&&(o=Number.parseInt(m[1]))}const l=n>o?n:o,c=Number.parseInt(e.toFixed(l).replace(".","")),f=Number.parseInt(t.toFixed(l).replace(".",""));return c%f/10**l}const Ub=Symbol("evaluating");function Cn(e,t,n){let i;Object.defineProperty(e,t,{get(){if(i!==Ub)return i===void 0&&(i=Ub,i=n()),i},set(o){Object.defineProperty(e,t,{value:o})},configurable:!0})}function nd(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function Bu(...e){const t={};for(const n of e){const i=Object.getOwnPropertyDescriptors(n);Object.assign(t,i)}return Object.defineProperties({},t)}function Hb(e){return JSON.stringify(e)}function KI(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}const Vb="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function vh(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}const XI=gg(()=>{var e;if(typeof navigator!="undefined"&&((e=navigator==null?void 0:navigator.userAgent)!=null&&e.includes("Cloudflare")))return!1;try{const t=Function;return new t(""),!0}catch(t){return!1}});function $f(e){if(vh(e)===!1)return!1;const t=e.constructor;if(t===void 0||typeof t!="function")return!0;const n=t.prototype;return!(vh(n)===!1||Object.prototype.hasOwnProperty.call(n,"isPrototypeOf")===!1)}function Bb(e){return $f(e)?{...e}:Array.isArray(e)?[...e]:e}const QI=new Set(["string","number","symbol"]);function Zf(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function $u(e,t,n){const i=new e._zod.constr(t!=null?t:e._zod.def);return(!t||n!=null&&n.parent)&&(i._zod.parent=e),i}function yt(e){const t=e;if(!t)return{};if(typeof t=="string")return{error:()=>t};if((t==null?void 0:t.message)!==void 0){if((t==null?void 0:t.error)!==void 0)throw new Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error=="string"?{...t,error:()=>t.error}:t}function eD(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}const tD={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]};function nD(e,t){const n=e._zod.def,i=n.checks;if(i&&i.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");const l=Bu(e._zod.def,{get shape(){const c={};for(const f in t){if(!(f in n.shape))throw new Error(`Unrecognized key: "${f}"`);t[f]&&(c[f]=n.shape[f])}return nd(this,"shape",c),c},checks:[]});return $u(e,l)}function rD(e,t){const n=e._zod.def,i=n.checks;if(i&&i.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");const l=Bu(e._zod.def,{get shape(){const c={...e._zod.def.shape};for(const f in t){if(!(f in n.shape))throw new Error(`Unrecognized key: "${f}"`);t[f]&&delete c[f]}return nd(this,"shape",c),c},checks:[]});return $u(e,l)}function aD(e,t){if(!$f(t))throw new Error("Invalid input to extend: expected a plain object");const n=e._zod.def.checks;if(n&&n.length>0){const l=e._zod.def.shape;for(const c in t)if(Object.getOwnPropertyDescriptor(l,c)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}const o=Bu(e._zod.def,{get shape(){const l={...e._zod.def.shape,...t};return nd(this,"shape",l),l}});return $u(e,o)}function iD(e,t){if(!$f(t))throw new Error("Invalid input to safeExtend: expected a plain object");const n=Bu(e._zod.def,{get shape(){const i={...e._zod.def.shape,...t};return nd(this,"shape",i),i}});return $u(e,n)}function oD(e,t){const n=Bu(e._zod.def,{get shape(){const i={...e._zod.def.shape,...t._zod.def.shape};return nd(this,"shape",i),i},get catchall(){return t._zod.def.catchall},checks:[]});return $u(e,n)}function sD(e,t,n){const o=t._zod.def.checks;if(o&&o.length>0)throw new Error(".partial() cannot be used on object schemas containing refinements");const c=Bu(t._zod.def,{get shape(){const f=t._zod.def.shape,m={...f};if(n)for(const v in n){if(!(v in f))throw new Error(`Unrecognized key: "${v}"`);n[v]&&(m[v]=e?new e({type:"optional",innerType:f[v]}):f[v])}else for(const v in f)m[v]=e?new e({type:"optional",innerType:f[v]}):f[v];return nd(this,"shape",m),m},checks:[]});return $u(t,c)}function lD(e,t,n){const i=Bu(t._zod.def,{get shape(){const o=t._zod.def.shape,l={...o};if(n)for(const c in n){if(!(c in l))throw new Error(`Unrecognized key: "${c}"`);n[c]&&(l[c]=new e({type:"nonoptional",innerType:o[c]}))}else for(const c in o)l[c]=new e({type:"nonoptional",innerType:o[c]});return nd(this,"shape",l),l}});return $u(t,i)}function Wf(e,t=0){var n;if(e.aborted===!0)return!0;for(let i=t;i<e.issues.length;i++)if(((n=e.issues[i])==null?void 0:n.continue)!==!0)return!0;return!1}function qf(e,t){return t.map(n=>{var o;var i;return(o=(i=n).path)!=null||(i.path=[]),n.path.unshift(e),n})}function yg(e){return typeof e=="string"?e:e==null?void 0:e.message}function Zu(e,t,n){var o,l,c,f,m,v,b,y,S,C,R;const i={...e,path:(o=e.path)!=null?o:[]};if(!e.message){const M=(R=(C=(y=(v=yg((f=(c=(l=e.inst)==null?void 0:l._zod.def)==null?void 0:c.error)==null?void 0:f.call(c,e)))!=null?v:yg((m=t==null?void 0:t.error)==null?void 0:m.call(t,e)))!=null?y:yg((b=n.customError)==null?void 0:b.call(n,e)))!=null?C:yg((S=n.localeError)==null?void 0:S.call(n,e)))!=null?R:"Invalid input";i.message=M}return delete i.inst,delete i.continue,t!=null&&t.reportInput||delete i.input,i}function oy(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function gh(...e){const[t,n,i]=e;return typeof t=="string"?{message:t,code:"custom",input:n,inst:i}:{...t}}const $b=(e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),e.message=JSON.stringify(t,ry,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},Zb=Se("$ZodError",$b),Wb=Se("$ZodError",$b,{Parent:Error});function uD(e,t=n=>n.message){const n={},i=[];for(const o of e.issues)o.path.length>0?(n[o.path[0]]=n[o.path[0]]||[],n[o.path[0]].push(t(o))):i.push(t(o));return{formErrors:i,fieldErrors:n}}function cD(e,t=n=>n.message){const n={_errors:[]},i=o=>{for(const l of o.issues)if(l.code==="invalid_union"&&l.errors.length)l.errors.map(c=>i({issues:c}));else if(l.code==="invalid_key")i({issues:l.issues});else if(l.code==="invalid_element")i({issues:l.issues});else if(l.path.length===0)n._errors.push(t(l));else{let c=n,f=0;for(;f<l.path.length;){const m=l.path[f];f===l.path.length-1?(c[m]=c[m]||{_errors:[]},c[m]._errors.push(t(l))):c[m]=c[m]||{_errors:[]},c=c[m],f++}}};return i(e),n}const sy=e=>(t,n,i,o)=>{var f;const l=i?Object.assign(i,{async:!1}):{async:!1},c=t._zod.run({value:n,issues:[]},l);if(c instanceof Promise)throw new Bf;if(c.issues.length){const m=new((f=o==null?void 0:o.Err)!=null?f:e)(c.issues.map(v=>Zu(v,l,Vu())));throw Vb(m,o==null?void 0:o.callee),m}return c.value},ly=e=>async(t,n,i,o)=>{var f;const l=i?Object.assign(i,{async:!0}):{async:!0};let c=t._zod.run({value:n,issues:[]},l);if(c instanceof Promise&&(c=await c),c.issues.length){const m=new((f=o==null?void 0:o.Err)!=null?f:e)(c.issues.map(v=>Zu(v,l,Vu())));throw Vb(m,o==null?void 0:o.callee),m}return c.value},wg=e=>(t,n,i)=>{const o=i?{...i,async:!1}:{async:!1},l=t._zod.run({value:n,issues:[]},o);if(l instanceof Promise)throw new Bf;return l.issues.length?{success:!1,error:new(e!=null?e:Zb)(l.issues.map(c=>Zu(c,o,Vu())))}:{success:!0,data:l.value}},dD=wg(Wb),bg=e=>async(t,n,i)=>{const o=i?Object.assign(i,{async:!0}):{async:!0};let l=t._zod.run({value:n,issues:[]},o);return l instanceof Promise&&(l=await l),l.issues.length?{success:!1,error:new e(l.issues.map(c=>Zu(c,o,Vu())))}:{success:!0,data:l.value}},fD=bg(Wb),pD=e=>(t,n,i)=>{const o=i?Object.assign(i,{direction:"backward"}):{direction:"backward"};return sy(e)(t,n,o)},hD=e=>(t,n,i)=>sy(e)(t,n,i),mD=e=>async(t,n,i)=>{const o=i?Object.assign(i,{direction:"backward"}):{direction:"backward"};return ly(e)(t,n,o)},vD=e=>async(t,n,i)=>ly(e)(t,n,i),gD=e=>(t,n,i)=>{const o=i?Object.assign(i,{direction:"backward"}):{direction:"backward"};return wg(e)(t,n,o)},yD=e=>(t,n,i)=>wg(e)(t,n,i),wD=e=>async(t,n,i)=>{const o=i?Object.assign(i,{direction:"backward"}):{direction:"backward"};return bg(e)(t,n,o)},bD=e=>async(t,n,i)=>bg(e)(t,n,i),xD=/^[cC][^\s-]{8,}$/,CD=/^[0-9a-z]+$/,SD=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,kD=/^[0-9a-vA-V]{20}$/,ED=/^[A-Za-z0-9]{27}$/,_D=/^[a-zA-Z0-9_-]{21}$/,TD=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,RD=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,qb=e=>e?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,MD=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,ND="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function OD(){return new RegExp(ND,"u")}const LD=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,AD=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,ID=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,DD=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,PD=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,Gb=/^[A-Za-z0-9_-]*$/,zD=/^\+[1-9]\d{6,14}$/,Yb="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",jD=new RegExp(`^${Yb}$`);function Jb(e){const t="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof e.precision=="number"?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function FD(e){return new RegExp(`^${Jb(e)}$`)}function UD(e){const t=Jb({precision:e.precision}),n=["Z"];e.local&&n.push(""),e.offset&&n.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");const i=`${t}(?:${n.join("|")})`;return new RegExp(`^${Yb}T(?:${i})$`)}const HD=e=>{var n,i;const t=e?`[\\s\\S]{${(n=e==null?void 0:e.minimum)!=null?n:0},${(i=e==null?void 0:e.maximum)!=null?i:""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},VD=/^-?\d+$/,Kb=/^-?\d+(?:\.\d+)?$/,BD=/^(?:true|false)$/i,$D=/^null$/i,ZD=/^[^A-Z]*$/,WD=/^[^a-z]*$/,zi=Se("$ZodCheck",(e,t)=>{var i,o;var n;(i=e._zod)!=null||(e._zod={}),e._zod.def=t,(o=(n=e._zod).onattach)!=null||(n.onattach=[])}),Xb={number:"number",bigint:"bigint",object:"date"},Qb=Se("$ZodCheckLessThan",(e,t)=>{zi.init(e,t);const n=Xb[typeof t.value];e._zod.onattach.push(i=>{var c;const o=i._zod.bag,l=(c=t.inclusive?o.maximum:o.exclusiveMaximum)!=null?c:Number.POSITIVE_INFINITY;t.value<l&&(t.inclusive?o.maximum=t.value:o.exclusiveMaximum=t.value)}),e._zod.check=i=>{(t.inclusive?i.value<=t.value:i.value<t.value)||i.issues.push({origin:n,code:"too_big",maximum:typeof t.value=="object"?t.value.getTime():t.value,input:i.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),ex=Se("$ZodCheckGreaterThan",(e,t)=>{zi.init(e,t);const n=Xb[typeof t.value];e._zod.onattach.push(i=>{var c;const o=i._zod.bag,l=(c=t.inclusive?o.minimum:o.exclusiveMinimum)!=null?c:Number.NEGATIVE_INFINITY;t.value>l&&(t.inclusive?o.minimum=t.value:o.exclusiveMinimum=t.value)}),e._zod.check=i=>{(t.inclusive?i.value>=t.value:i.value>t.value)||i.issues.push({origin:n,code:"too_small",minimum:typeof t.value=="object"?t.value.getTime():t.value,input:i.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),qD=Se("$ZodCheckMultipleOf",(e,t)=>{zi.init(e,t),e._zod.onattach.push(n=>{var o;var i;(o=(i=n._zod.bag).multipleOf)!=null||(i.multipleOf=t.value)}),e._zod.check=n=>{if(typeof n.value!=typeof t.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof n.value=="bigint"?n.value%t.value===BigInt(0):JI(n.value,t.value)===0)||n.issues.push({origin:typeof n.value,code:"not_multiple_of",divisor:t.value,input:n.value,inst:e,continue:!t.abort})}}),GD=Se("$ZodCheckNumberFormat",(e,t)=>{var c;zi.init(e,t),t.format=t.format||"float64";const n=(c=t.format)==null?void 0:c.includes("int"),i=n?"int":"number",[o,l]=tD[t.format];e._zod.onattach.push(f=>{const m=f._zod.bag;m.format=t.format,m.minimum=o,m.maximum=l,n&&(m.pattern=VD)}),e._zod.check=f=>{const m=f.value;if(n){if(!Number.isInteger(m)){f.issues.push({expected:i,format:t.format,code:"invalid_type",continue:!1,input:m,inst:e});return}if(!Number.isSafeInteger(m)){m>0?f.issues.push({input:m,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:i,inclusive:!0,continue:!t.abort}):f.issues.push({input:m,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:i,inclusive:!0,continue:!t.abort});return}}m<o&&f.issues.push({origin:"number",input:m,code:"too_small",minimum:o,inclusive:!0,inst:e,continue:!t.abort}),m>l&&f.issues.push({origin:"number",input:m,code:"too_big",maximum:l,inclusive:!0,inst:e,continue:!t.abort})}}),YD=Se("$ZodCheckMaxLength",(e,t)=>{var i;var n;zi.init(e,t),(i=(n=e._zod.def).when)!=null||(n.when=o=>{const l=o.value;return!ay(l)&&l.length!==void 0}),e._zod.onattach.push(o=>{var c;const l=(c=o._zod.bag.maximum)!=null?c:Number.POSITIVE_INFINITY;t.maximum<l&&(o._zod.bag.maximum=t.maximum)}),e._zod.check=o=>{const l=o.value;if(l.length<=t.maximum)return;const f=oy(l);o.issues.push({origin:f,code:"too_big",maximum:t.maximum,inclusive:!0,input:l,inst:e,continue:!t.abort})}}),JD=Se("$ZodCheckMinLength",(e,t)=>{var i;var n;zi.init(e,t),(i=(n=e._zod.def).when)!=null||(n.when=o=>{const l=o.value;return!ay(l)&&l.length!==void 0}),e._zod.onattach.push(o=>{var c;const l=(c=o._zod.bag.minimum)!=null?c:Number.NEGATIVE_INFINITY;t.minimum>l&&(o._zod.bag.minimum=t.minimum)}),e._zod.check=o=>{const l=o.value;if(l.length>=t.minimum)return;const f=oy(l);o.issues.push({origin:f,code:"too_small",minimum:t.minimum,inclusive:!0,input:l,inst:e,continue:!t.abort})}}),KD=Se("$ZodCheckLengthEquals",(e,t)=>{var i;var n;zi.init(e,t),(i=(n=e._zod.def).when)!=null||(n.when=o=>{const l=o.value;return!ay(l)&&l.length!==void 0}),e._zod.onattach.push(o=>{const l=o._zod.bag;l.minimum=t.length,l.maximum=t.length,l.length=t.length}),e._zod.check=o=>{const l=o.value,c=l.length;if(c===t.length)return;const f=oy(l),m=c>t.length;o.issues.push({origin:f,...m?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:o.value,inst:e,continue:!t.abort})}}),xg=Se("$ZodCheckStringFormat",(e,t)=>{var o,l;var n,i;zi.init(e,t),e._zod.onattach.push(c=>{var m;const f=c._zod.bag;f.format=t.format,t.pattern&&((m=f.patterns)!=null||(f.patterns=new Set),f.patterns.add(t.pattern))}),t.pattern?(o=(n=e._zod).check)!=null||(n.check=c=>{t.pattern.lastIndex=0,!t.pattern.test(c.value)&&c.issues.push({origin:"string",code:"invalid_format",format:t.format,input:c.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(l=(i=e._zod).check)!=null||(i.check=()=>{})}),XD=Se("$ZodCheckRegex",(e,t)=>{xg.init(e,t),e._zod.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:"string",code:"invalid_format",format:"regex",input:n.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),QD=Se("$ZodCheckLowerCase",(e,t)=>{var n;(n=t.pattern)!=null||(t.pattern=ZD),xg.init(e,t)}),eP=Se("$ZodCheckUpperCase",(e,t)=>{var n;(n=t.pattern)!=null||(t.pattern=WD),xg.init(e,t)}),tP=Se("$ZodCheckIncludes",(e,t)=>{zi.init(e,t);const n=Zf(t.includes),i=new RegExp(typeof t.position=="number"?`^.{${t.position}}${n}`:n);t.pattern=i,e._zod.onattach.push(o=>{var c;const l=o._zod.bag;(c=l.patterns)!=null||(l.patterns=new Set),l.patterns.add(i)}),e._zod.check=o=>{o.value.includes(t.includes,t.position)||o.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:o.value,inst:e,continue:!t.abort})}}),nP=Se("$ZodCheckStartsWith",(e,t)=>{var i;zi.init(e,t);const n=new RegExp(`^${Zf(t.prefix)}.*`);(i=t.pattern)!=null||(t.pattern=n),e._zod.onattach.push(o=>{var c;const l=o._zod.bag;(c=l.patterns)!=null||(l.patterns=new Set),l.patterns.add(n)}),e._zod.check=o=>{o.value.startsWith(t.prefix)||o.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:o.value,inst:e,continue:!t.abort})}}),rP=Se("$ZodCheckEndsWith",(e,t)=>{var i;zi.init(e,t);const n=new RegExp(`.*${Zf(t.suffix)}$`);(i=t.pattern)!=null||(t.pattern=n),e._zod.onattach.push(o=>{var c;const l=o._zod.bag;(c=l.patterns)!=null||(l.patterns=new Set),l.patterns.add(n)}),e._zod.check=o=>{o.value.endsWith(t.suffix)||o.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:o.value,inst:e,continue:!t.abort})}}),aP=Se("$ZodCheckOverwrite",(e,t)=>{zi.init(e,t),e._zod.check=n=>{n.value=t.tx(n.value)}});class iP{constructor(t=[]){this.content=[],this.indent=0,this&&(this.args=t)}indented(t){this.indent+=1,t(this),this.indent-=1}write(t){if(typeof t=="function"){t(this,{execution:"sync"}),t(this,{execution:"async"});return}const i=t.split(`
281
+ `).filter(c=>c),o=Math.min(...i.map(c=>c.length-c.trimStart().length)),l=i.map(c=>c.slice(o)).map(c=>" ".repeat(this.indent*2)+c);for(const c of l)this.content.push(c)}compile(){var l;const t=Function,n=this==null?void 0:this.args,o=[...((l=this==null?void 0:this.content)!=null?l:[""]).map(c=>` ${c}`)];return new t(...n,o.join(`
282
+ `))}}const oP={major:4,minor:3,patch:5},lr=Se("$ZodType",(e,t)=>{var o,l,c;var n;e!=null||(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=oP;const i=[...(o=e._zod.def.checks)!=null?o:[]];e._zod.traits.has("$ZodCheck")&&i.unshift(e);for(const f of i)for(const m of f._zod.onattach)m(e);if(i.length===0)(l=(n=e._zod).deferred)!=null||(n.deferred=[]),(c=e._zod.deferred)==null||c.push(()=>{e._zod.run=e._zod.parse});else{const f=(v,b,y)=>{let S=Wf(v),C;for(const R of b){if(R._zod.def.when){if(!R._zod.def.when(v))continue}else if(S)continue;const M=v.issues.length,L=R._zod.check(v);if(L instanceof Promise&&(y==null?void 0:y.async)===!1)throw new Bf;if(C||L instanceof Promise)C=(C!=null?C:Promise.resolve()).then(async()=>{await L,v.issues.length!==M&&(S||(S=Wf(v,M)))});else{if(v.issues.length===M)continue;S||(S=Wf(v,M))}}return C?C.then(()=>v):v},m=(v,b,y)=>{if(Wf(v))return v.aborted=!0,v;const S=f(b,i,y);if(S instanceof Promise){if(y.async===!1)throw new Bf;return S.then(C=>e._zod.parse(C,y))}return e._zod.parse(S,y)};e._zod.run=(v,b)=>{if(b.skipChecks)return e._zod.parse(v,b);if(b.direction==="backward"){const S=e._zod.parse({value:v.value,issues:[]},{...b,skipChecks:!0});return S instanceof Promise?S.then(C=>m(C,v,b)):m(S,v,b)}const y=e._zod.parse(v,b);if(y instanceof Promise){if(b.async===!1)throw new Bf;return y.then(S=>f(S,i,b))}return f(y,i,b)}}Cn(e,"~standard",()=>({validate:f=>{var m;try{const v=dD(e,f);return v.success?{value:v.data}:{issues:(m=v.error)==null?void 0:m.issues}}catch(v){return fD(e,f).then(b=>{var y;return b.success?{value:b.data}:{issues:(y=b.error)==null?void 0:y.issues}})}},vendor:"zod",version:1}))}),uy=Se("$ZodString",(e,t)=>{var n,i,o;lr.init(e,t),e._zod.pattern=(o=[...(i=(n=e==null?void 0:e._zod.bag)==null?void 0:n.patterns)!=null?i:[]].pop())!=null?o:HD(e._zod.bag),e._zod.parse=(l,c)=>{if(t.coerce)try{l.value=String(l.value)}catch(f){}return typeof l.value=="string"||l.issues.push({expected:"string",code:"invalid_type",input:l.value,inst:e}),l}}),Sr=Se("$ZodStringFormat",(e,t)=>{xg.init(e,t),uy.init(e,t)}),sP=Se("$ZodGUID",(e,t)=>{var n;(n=t.pattern)!=null||(t.pattern=RD),Sr.init(e,t)}),lP=Se("$ZodUUID",(e,t)=>{var n,i;if(t.version){const l={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(l===void 0)throw new Error(`Invalid UUID version: "${t.version}"`);(n=t.pattern)!=null||(t.pattern=qb(l))}else(i=t.pattern)!=null||(t.pattern=qb());Sr.init(e,t)}),uP=Se("$ZodEmail",(e,t)=>{var n;(n=t.pattern)!=null||(t.pattern=MD),Sr.init(e,t)}),cP=Se("$ZodURL",(e,t)=>{Sr.init(e,t),e._zod.check=n=>{try{const i=n.value.trim(),o=new URL(i);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(o.hostname)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:t.hostname.source,input:n.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(o.protocol.endsWith(":")?o.protocol.slice(0,-1):o.protocol)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:n.value,inst:e,continue:!t.abort})),t.normalize?n.value=o.href:n.value=i;return}catch(i){n.issues.push({code:"invalid_format",format:"url",input:n.value,inst:e,continue:!t.abort})}}}),dP=Se("$ZodEmoji",(e,t)=>{var n;(n=t.pattern)!=null||(t.pattern=OD()),Sr.init(e,t)}),fP=Se("$ZodNanoID",(e,t)=>{var n;(n=t.pattern)!=null||(t.pattern=_D),Sr.init(e,t)}),pP=Se("$ZodCUID",(e,t)=>{var n;(n=t.pattern)!=null||(t.pattern=xD),Sr.init(e,t)}),hP=Se("$ZodCUID2",(e,t)=>{var n;(n=t.pattern)!=null||(t.pattern=CD),Sr.init(e,t)}),mP=Se("$ZodULID",(e,t)=>{var n;(n=t.pattern)!=null||(t.pattern=SD),Sr.init(e,t)}),vP=Se("$ZodXID",(e,t)=>{var n;(n=t.pattern)!=null||(t.pattern=kD),Sr.init(e,t)}),gP=Se("$ZodKSUID",(e,t)=>{var n;(n=t.pattern)!=null||(t.pattern=ED),Sr.init(e,t)}),yP=Se("$ZodISODateTime",(e,t)=>{var n;(n=t.pattern)!=null||(t.pattern=UD(t)),Sr.init(e,t)}),wP=Se("$ZodISODate",(e,t)=>{var n;(n=t.pattern)!=null||(t.pattern=jD),Sr.init(e,t)}),bP=Se("$ZodISOTime",(e,t)=>{var n;(n=t.pattern)!=null||(t.pattern=FD(t)),Sr.init(e,t)}),xP=Se("$ZodISODuration",(e,t)=>{var n;(n=t.pattern)!=null||(t.pattern=TD),Sr.init(e,t)}),CP=Se("$ZodIPv4",(e,t)=>{var n;(n=t.pattern)!=null||(t.pattern=LD),Sr.init(e,t),e._zod.bag.format="ipv4"}),SP=Se("$ZodIPv6",(e,t)=>{var n;(n=t.pattern)!=null||(t.pattern=AD),Sr.init(e,t),e._zod.bag.format="ipv6",e._zod.check=i=>{try{new URL(`http://[${i.value}]`)}catch(o){i.issues.push({code:"invalid_format",format:"ipv6",input:i.value,inst:e,continue:!t.abort})}}}),kP=Se("$ZodCIDRv4",(e,t)=>{var n;(n=t.pattern)!=null||(t.pattern=ID),Sr.init(e,t)}),EP=Se("$ZodCIDRv6",(e,t)=>{var n;(n=t.pattern)!=null||(t.pattern=DD),Sr.init(e,t),e._zod.check=i=>{const o=i.value.split("/");try{if(o.length!==2)throw new Error;const[l,c]=o;if(!c)throw new Error;const f=Number(c);if(`${f}`!==c)throw new Error;if(f<0||f>128)throw new Error;new URL(`http://[${l}]`)}catch(l){i.issues.push({code:"invalid_format",format:"cidrv6",input:i.value,inst:e,continue:!t.abort})}}});function tx(e){if(e==="")return!0;if(e.length%4!==0)return!1;try{return atob(e),!0}catch(t){return!1}}const _P=Se("$ZodBase64",(e,t)=>{var n;(n=t.pattern)!=null||(t.pattern=PD),Sr.init(e,t),e._zod.bag.contentEncoding="base64",e._zod.check=i=>{tx(i.value)||i.issues.push({code:"invalid_format",format:"base64",input:i.value,inst:e,continue:!t.abort})}});function TP(e){if(!Gb.test(e))return!1;const t=e.replace(/[-_]/g,i=>i==="-"?"+":"/"),n=t.padEnd(Math.ceil(t.length/4)*4,"=");return tx(n)}const RP=Se("$ZodBase64URL",(e,t)=>{var n;(n=t.pattern)!=null||(t.pattern=Gb),Sr.init(e,t),e._zod.bag.contentEncoding="base64url",e._zod.check=i=>{TP(i.value)||i.issues.push({code:"invalid_format",format:"base64url",input:i.value,inst:e,continue:!t.abort})}}),MP=Se("$ZodE164",(e,t)=>{var n;(n=t.pattern)!=null||(t.pattern=zD),Sr.init(e,t)});function NP(e,t=null){try{const n=e.split(".");if(n.length!==3)return!1;const[i]=n;if(!i)return!1;const o=JSON.parse(atob(i));return!("typ"in o&&(o==null?void 0:o.typ)!=="JWT"||!o.alg||t&&(!("alg"in o)||o.alg!==t))}catch(n){return!1}}const OP=Se("$ZodJWT",(e,t)=>{Sr.init(e,t),e._zod.check=n=>{NP(n.value,t.alg)||n.issues.push({code:"invalid_format",format:"jwt",input:n.value,inst:e,continue:!t.abort})}}),nx=Se("$ZodNumber",(e,t)=>{var n;lr.init(e,t),e._zod.pattern=(n=e._zod.bag.pattern)!=null?n:Kb,e._zod.parse=(i,o)=>{if(t.coerce)try{i.value=Number(i.value)}catch(f){}const l=i.value;if(typeof l=="number"&&!Number.isNaN(l)&&Number.isFinite(l))return i;const c=typeof l=="number"?Number.isNaN(l)?"NaN":Number.isFinite(l)?void 0:"Infinity":void 0;return i.issues.push({expected:"number",code:"invalid_type",input:l,inst:e,...c?{received:c}:{}}),i}}),LP=Se("$ZodNumberFormat",(e,t)=>{GD.init(e,t),nx.init(e,t)}),AP=Se("$ZodBoolean",(e,t)=>{lr.init(e,t),e._zod.pattern=BD,e._zod.parse=(n,i)=>{if(t.coerce)try{n.value=!!n.value}catch(l){}const o=n.value;return typeof o=="boolean"||n.issues.push({expected:"boolean",code:"invalid_type",input:o,inst:e}),n}}),IP=Se("$ZodNull",(e,t)=>{lr.init(e,t),e._zod.pattern=$D,e._zod.values=new Set([null]),e._zod.parse=(n,i)=>{const o=n.value;return o===null||n.issues.push({expected:"null",code:"invalid_type",input:o,inst:e}),n}}),DP=Se("$ZodAny",(e,t)=>{lr.init(e,t),e._zod.parse=n=>n}),PP=Se("$ZodUnknown",(e,t)=>{lr.init(e,t),e._zod.parse=n=>n}),zP=Se("$ZodNever",(e,t)=>{lr.init(e,t),e._zod.parse=(n,i)=>(n.issues.push({expected:"never",code:"invalid_type",input:n.value,inst:e}),n)});function rx(e,t,n){e.issues.length&&t.issues.push(...qf(n,e.issues)),t.value[n]=e.value}const jP=Se("$ZodArray",(e,t)=>{lr.init(e,t),e._zod.parse=(n,i)=>{const o=n.value;if(!Array.isArray(o))return n.issues.push({expected:"array",code:"invalid_type",input:o,inst:e}),n;n.value=Array(o.length);const l=[];for(let c=0;c<o.length;c++){const f=o[c],m=t.element._zod.run({value:f,issues:[]},i);m instanceof Promise?l.push(m.then(v=>rx(v,n,c))):rx(m,n,c)}return l.length?Promise.all(l).then(()=>n):n}});function Cg(e,t,n,i,o){if(e.issues.length){if(o&&!(n in i))return;t.issues.push(...qf(n,e.issues))}e.value===void 0?n in i&&(t.value[n]=void 0):t.value[n]=e.value}function ax(e){var i,o,l,c;const t=Object.keys(e.shape);for(const f of t)if(!((c=(l=(o=(i=e.shape)==null?void 0:i[f])==null?void 0:o._zod)==null?void 0:l.traits)!=null&&c.has("$ZodType")))throw new Error(`Invalid element at key "${f}": expected a Zod schema`);const n=eD(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(n)}}function ix(e,t,n,i,o,l){const c=[],f=o.keySet,m=o.catchall._zod,v=m.def.type,b=m.optout==="optional";for(const y in t){if(f.has(y))continue;if(v==="never"){c.push(y);continue}const S=m.run({value:t[y],issues:[]},i);S instanceof Promise?e.push(S.then(C=>Cg(C,n,y,t,b))):Cg(S,n,y,t,b)}return c.length&&n.issues.push({code:"unrecognized_keys",keys:c,input:t,inst:l}),e.length?Promise.all(e).then(()=>n):n}const FP=Se("$ZodObject",(e,t)=>{lr.init(e,t);const n=Object.getOwnPropertyDescriptor(t,"shape");if(!(n!=null&&n.get)){const f=t.shape;Object.defineProperty(t,"shape",{get:()=>{const m={...f};return Object.defineProperty(t,"shape",{value:m}),m}})}const i=gg(()=>ax(t));Cn(e._zod,"propValues",()=>{var v;const f=t.shape,m={};for(const b in f){const y=f[b]._zod;if(y.values){(v=m[b])!=null||(m[b]=new Set);for(const S of y.values)m[b].add(S)}}return m});const o=vh,l=t.catchall;let c;e._zod.parse=(f,m)=>{c!=null||(c=i.value);const v=f.value;if(!o(v))return f.issues.push({expected:"object",code:"invalid_type",input:v,inst:e}),f;f.value={};const b=[],y=c.shape;for(const S of c.keys){const C=y[S],R=C._zod.optout==="optional",M=C._zod.run({value:v[S],issues:[]},m);M instanceof Promise?b.push(M.then(L=>Cg(L,f,S,v,R))):Cg(M,f,S,v,R)}return l?ix(b,v,f,m,i.value,e):b.length?Promise.all(b).then(()=>f):f}}),UP=Se("$ZodObjectJIT",(e,t)=>{FP.init(e,t);const n=e._zod.parse,i=gg(()=>ax(t)),o=S=>{var U;const C=new iP(["shape","payload","ctx"]),R=i.value,M=P=>{const Z=Hb(P);return`shape[${Z}]._zod.run({ value: input[${Z}], issues: [] }, ctx)`};C.write("const input = payload.value;");const L=Object.create(null);let I=0;for(const P of R.keys)L[P]=`key_${I++}`;C.write("const newResult = {};");for(const P of R.keys){const Z=L[P],B=Hb(P),W=S[P],G=((U=W==null?void 0:W._zod)==null?void 0:U.optout)==="optional";C.write(`const ${Z} = ${M(P)};`),G?C.write(`
283
+ if (${Z}.issues.length) {
284
+ if (${B} in input) {
285
+ payload.issues = payload.issues.concat(${Z}.issues.map(iss => ({
286
+ ...iss,
287
+ path: iss.path ? [${B}, ...iss.path] : [${B}]
288
+ })));
289
+ }
290
+ }
291
+
292
+ if (${Z}.value === undefined) {
293
+ if (${B} in input) {
294
+ newResult[${B}] = undefined;
295
+ }
296
+ } else {
297
+ newResult[${B}] = ${Z}.value;
298
+ }
299
+
300
+ `):C.write(`
301
+ if (${Z}.issues.length) {
302
+ payload.issues = payload.issues.concat(${Z}.issues.map(iss => ({
303
+ ...iss,
304
+ path: iss.path ? [${B}, ...iss.path] : [${B}]
305
+ })));
306
+ }
307
+
308
+ if (${Z}.value === undefined) {
309
+ if (${B} in input) {
310
+ newResult[${B}] = undefined;
311
+ }
312
+ } else {
313
+ newResult[${B}] = ${Z}.value;
314
+ }
315
+
316
+ `)}C.write("payload.value = newResult;"),C.write("return payload;");const j=C.compile();return(P,Z)=>j(S,P,Z)};let l;const c=vh,f=!jb.jitless,v=f&&XI.value,b=t.catchall;let y;e._zod.parse=(S,C)=>{y!=null||(y=i.value);const R=S.value;return c(R)?f&&v&&(C==null?void 0:C.async)===!1&&C.jitless!==!0?(l||(l=o(t.shape)),S=l(S,C),b?ix([],R,S,C,y,e):S):n(S,C):(S.issues.push({expected:"object",code:"invalid_type",input:R,inst:e}),S)}});function ox(e,t,n,i){for(const l of e)if(l.issues.length===0)return t.value=l.value,t;const o=e.filter(l=>!Wf(l));return o.length===1?(t.value=o[0].value,o[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:e.map(l=>l.issues.map(c=>Zu(c,i,Vu())))}),t)}const sx=Se("$ZodUnion",(e,t)=>{lr.init(e,t),Cn(e._zod,"optin",()=>t.options.some(o=>o._zod.optin==="optional")?"optional":void 0),Cn(e._zod,"optout",()=>t.options.some(o=>o._zod.optout==="optional")?"optional":void 0),Cn(e._zod,"values",()=>{if(t.options.every(o=>o._zod.values))return new Set(t.options.flatMap(o=>Array.from(o._zod.values)))}),Cn(e._zod,"pattern",()=>{if(t.options.every(o=>o._zod.pattern)){const o=t.options.map(l=>l._zod.pattern);return new RegExp(`^(${o.map(l=>iy(l.source)).join("|")})$`)}});const n=t.options.length===1,i=t.options[0]._zod.run;e._zod.parse=(o,l)=>{if(n)return i(o,l);let c=!1;const f=[];for(const m of t.options){const v=m._zod.run({value:o.value,issues:[]},l);if(v instanceof Promise)f.push(v),c=!0;else{if(v.issues.length===0)return v;f.push(v)}}return c?Promise.all(f).then(m=>ox(m,o,e,l)):ox(f,o,e,l)}}),HP=Se("$ZodDiscriminatedUnion",(e,t)=>{t.inclusive=!1,sx.init(e,t);const n=e._zod.parse;Cn(e._zod,"propValues",()=>{const o={};for(const l of t.options){const c=l._zod.propValues;if(!c||Object.keys(c).length===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(l)}"`);for(const[f,m]of Object.entries(c)){o[f]||(o[f]=new Set);for(const v of m)o[f].add(v)}}return o});const i=gg(()=>{var c;const o=t.options,l=new Map;for(const f of o){const m=(c=f._zod.propValues)==null?void 0:c[t.discriminator];if(!m||m.size===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(f)}"`);for(const v of m){if(l.has(v))throw new Error(`Duplicate discriminator value "${String(v)}"`);l.set(v,f)}}return l});e._zod.parse=(o,l)=>{const c=o.value;if(!vh(c))return o.issues.push({code:"invalid_type",expected:"object",input:c,inst:e}),o;const f=i.value.get(c==null?void 0:c[t.discriminator]);return f?f._zod.run(o,l):t.unionFallback?n(o,l):(o.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:t.discriminator,input:c,path:[t.discriminator],inst:e}),o)}}),VP=Se("$ZodIntersection",(e,t)=>{lr.init(e,t),e._zod.parse=(n,i)=>{const o=n.value,l=t.left._zod.run({value:o,issues:[]},i),c=t.right._zod.run({value:o,issues:[]},i);return l instanceof Promise||c instanceof Promise?Promise.all([l,c]).then(([m,v])=>lx(n,m,v)):lx(n,l,c)}});function cy(e,t){if(e===t)return{valid:!0,data:e};if(e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if($f(e)&&$f(t)){const n=Object.keys(t),i=Object.keys(e).filter(l=>n.indexOf(l)!==-1),o={...e,...t};for(const l of i){const c=cy(e[l],t[l]);if(!c.valid)return{valid:!1,mergeErrorPath:[l,...c.mergeErrorPath]};o[l]=c.data}return{valid:!0,data:o}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};const n=[];for(let i=0;i<e.length;i++){const o=e[i],l=t[i],c=cy(o,l);if(!c.valid)return{valid:!1,mergeErrorPath:[i,...c.mergeErrorPath]};n.push(c.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}function lx(e,t,n){const i=new Map;let o;for(const f of t.issues)if(f.code==="unrecognized_keys"){o!=null||(o=f);for(const m of f.keys)i.has(m)||i.set(m,{}),i.get(m).l=!0}else e.issues.push(f);for(const f of n.issues)if(f.code==="unrecognized_keys")for(const m of f.keys)i.has(m)||i.set(m,{}),i.get(m).r=!0;else e.issues.push(f);const l=[...i].filter(([,f])=>f.l&&f.r).map(([f])=>f);if(l.length&&o&&e.issues.push({...o,keys:l}),Wf(e))return e;const c=cy(t.value,n.value);if(!c.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(c.mergeErrorPath)}`);return e.value=c.data,e}const BP=Se("$ZodRecord",(e,t)=>{lr.init(e,t),e._zod.parse=(n,i)=>{const o=n.value;if(!$f(o))return n.issues.push({expected:"record",code:"invalid_type",input:o,inst:e}),n;const l=[],c=t.keyType._zod.values;if(c){n.value={};const f=new Set;for(const v of c)if(typeof v=="string"||typeof v=="number"||typeof v=="symbol"){f.add(typeof v=="number"?v.toString():v);const b=t.valueType._zod.run({value:o[v],issues:[]},i);b instanceof Promise?l.push(b.then(y=>{y.issues.length&&n.issues.push(...qf(v,y.issues)),n.value[v]=y.value})):(b.issues.length&&n.issues.push(...qf(v,b.issues)),n.value[v]=b.value)}let m;for(const v in o)f.has(v)||(m=m!=null?m:[],m.push(v));m&&m.length>0&&n.issues.push({code:"unrecognized_keys",input:o,inst:e,keys:m})}else{n.value={};for(const f of Reflect.ownKeys(o)){if(f==="__proto__")continue;let m=t.keyType._zod.run({value:f,issues:[]},i);if(m instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(typeof f=="string"&&Kb.test(f)&&m.issues.length&&m.issues.some(y=>y.code==="invalid_type"&&y.expected==="number")){const y=t.keyType._zod.run({value:Number(f),issues:[]},i);if(y instanceof Promise)throw new Error("Async schemas not supported in object keys currently");y.issues.length===0&&(m=y)}if(m.issues.length){t.mode==="loose"?n.value[f]=o[f]:n.issues.push({code:"invalid_key",origin:"record",issues:m.issues.map(y=>Zu(y,i,Vu())),input:f,path:[f],inst:e});continue}const b=t.valueType._zod.run({value:o[f],issues:[]},i);b instanceof Promise?l.push(b.then(y=>{y.issues.length&&n.issues.push(...qf(f,y.issues)),n.value[m.value]=y.value})):(b.issues.length&&n.issues.push(...qf(f,b.issues)),n.value[m.value]=b.value)}}return l.length?Promise.all(l).then(()=>n):n}}),$P=Se("$ZodEnum",(e,t)=>{lr.init(e,t);const n=Fb(t.entries),i=new Set(n);e._zod.values=i,e._zod.pattern=new RegExp(`^(${n.filter(o=>QI.has(typeof o)).map(o=>typeof o=="string"?Zf(o):o.toString()).join("|")})$`),e._zod.parse=(o,l)=>{const c=o.value;return i.has(c)||o.issues.push({code:"invalid_value",values:n,input:c,inst:e}),o}}),ZP=Se("$ZodLiteral",(e,t)=>{if(lr.init(e,t),t.values.length===0)throw new Error("Cannot create literal schema with no valid values");const n=new Set(t.values);e._zod.values=n,e._zod.pattern=new RegExp(`^(${t.values.map(i=>typeof i=="string"?Zf(i):i?Zf(i.toString()):String(i)).join("|")})$`),e._zod.parse=(i,o)=>{const l=i.value;return n.has(l)||i.issues.push({code:"invalid_value",values:t.values,input:l,inst:e}),i}}),WP=Se("$ZodTransform",(e,t)=>{lr.init(e,t),e._zod.parse=(n,i)=>{if(i.direction==="backward")throw new zb(e.constructor.name);const o=t.transform(n.value,n);if(i.async)return(o instanceof Promise?o:Promise.resolve(o)).then(c=>(n.value=c,n));if(o instanceof Promise)throw new Bf;return n.value=o,n}});function ux(e,t){return e.issues.length&&t===void 0?{issues:[],value:void 0}:e}const cx=Se("$ZodOptional",(e,t)=>{lr.init(e,t),e._zod.optin="optional",e._zod.optout="optional",Cn(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),Cn(e._zod,"pattern",()=>{const n=t.innerType._zod.pattern;return n?new RegExp(`^(${iy(n.source)})?$`):void 0}),e._zod.parse=(n,i)=>{if(t.innerType._zod.optin==="optional"){const o=t.innerType._zod.run(n,i);return o instanceof Promise?o.then(l=>ux(l,n.value)):ux(o,n.value)}return n.value===void 0?n:t.innerType._zod.run(n,i)}}),qP=Se("$ZodExactOptional",(e,t)=>{cx.init(e,t),Cn(e._zod,"values",()=>t.innerType._zod.values),Cn(e._zod,"pattern",()=>t.innerType._zod.pattern),e._zod.parse=(n,i)=>t.innerType._zod.run(n,i)}),GP=Se("$ZodNullable",(e,t)=>{lr.init(e,t),Cn(e._zod,"optin",()=>t.innerType._zod.optin),Cn(e._zod,"optout",()=>t.innerType._zod.optout),Cn(e._zod,"pattern",()=>{const n=t.innerType._zod.pattern;return n?new RegExp(`^(${iy(n.source)}|null)$`):void 0}),Cn(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(n,i)=>n.value===null?n:t.innerType._zod.run(n,i)}),YP=Se("$ZodDefault",(e,t)=>{lr.init(e,t),e._zod.optin="optional",Cn(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,i)=>{if(i.direction==="backward")return t.innerType._zod.run(n,i);if(n.value===void 0)return n.value=t.defaultValue,n;const o=t.innerType._zod.run(n,i);return o instanceof Promise?o.then(l=>dx(l,t)):dx(o,t)}});function dx(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}const JP=Se("$ZodPrefault",(e,t)=>{lr.init(e,t),e._zod.optin="optional",Cn(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,i)=>(i.direction==="backward"||n.value===void 0&&(n.value=t.defaultValue),t.innerType._zod.run(n,i))}),KP=Se("$ZodNonOptional",(e,t)=>{lr.init(e,t),Cn(e._zod,"values",()=>{const n=t.innerType._zod.values;return n?new Set([...n].filter(i=>i!==void 0)):void 0}),e._zod.parse=(n,i)=>{const o=t.innerType._zod.run(n,i);return o instanceof Promise?o.then(l=>fx(l,e)):fx(o,e)}});function fx(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}const XP=Se("$ZodCatch",(e,t)=>{lr.init(e,t),Cn(e._zod,"optin",()=>t.innerType._zod.optin),Cn(e._zod,"optout",()=>t.innerType._zod.optout),Cn(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,i)=>{if(i.direction==="backward")return t.innerType._zod.run(n,i);const o=t.innerType._zod.run(n,i);return o instanceof Promise?o.then(l=>(n.value=l.value,l.issues.length&&(n.value=t.catchValue({...n,error:{issues:l.issues.map(c=>Zu(c,i,Vu()))},input:n.value}),n.issues=[]),n)):(n.value=o.value,o.issues.length&&(n.value=t.catchValue({...n,error:{issues:o.issues.map(l=>Zu(l,i,Vu()))},input:n.value}),n.issues=[]),n)}}),QP=Se("$ZodPipe",(e,t)=>{lr.init(e,t),Cn(e._zod,"values",()=>t.in._zod.values),Cn(e._zod,"optin",()=>t.in._zod.optin),Cn(e._zod,"optout",()=>t.out._zod.optout),Cn(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(n,i)=>{if(i.direction==="backward"){const l=t.out._zod.run(n,i);return l instanceof Promise?l.then(c=>Sg(c,t.in,i)):Sg(l,t.in,i)}const o=t.in._zod.run(n,i);return o instanceof Promise?o.then(l=>Sg(l,t.out,i)):Sg(o,t.out,i)}});function Sg(e,t,n){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},n)}const ez=Se("$ZodReadonly",(e,t)=>{lr.init(e,t),Cn(e._zod,"propValues",()=>t.innerType._zod.propValues),Cn(e._zod,"values",()=>t.innerType._zod.values),Cn(e._zod,"optin",()=>{var n,i;return(i=(n=t.innerType)==null?void 0:n._zod)==null?void 0:i.optin}),Cn(e._zod,"optout",()=>{var n,i;return(i=(n=t.innerType)==null?void 0:n._zod)==null?void 0:i.optout}),e._zod.parse=(n,i)=>{if(i.direction==="backward")return t.innerType._zod.run(n,i);const o=t.innerType._zod.run(n,i);return o instanceof Promise?o.then(px):px(o)}});function px(e){return e.value=Object.freeze(e.value),e}const tz=Se("$ZodLazy",(e,t)=>{lr.init(e,t),Cn(e._zod,"innerType",()=>t.getter()),Cn(e._zod,"pattern",()=>{var n,i;return(i=(n=e._zod.innerType)==null?void 0:n._zod)==null?void 0:i.pattern}),Cn(e._zod,"propValues",()=>{var n,i;return(i=(n=e._zod.innerType)==null?void 0:n._zod)==null?void 0:i.propValues}),Cn(e._zod,"optin",()=>{var n,i,o;return(o=(i=(n=e._zod.innerType)==null?void 0:n._zod)==null?void 0:i.optin)!=null?o:void 0}),Cn(e._zod,"optout",()=>{var n,i,o;return(o=(i=(n=e._zod.innerType)==null?void 0:n._zod)==null?void 0:i.optout)!=null?o:void 0}),e._zod.parse=(n,i)=>e._zod.innerType._zod.run(n,i)}),nz=Se("$ZodCustom",(e,t)=>{zi.init(e,t),lr.init(e,t),e._zod.parse=(n,i)=>n,e._zod.check=n=>{const i=n.value,o=t.fn(i);if(o instanceof Promise)return o.then(l=>hx(l,n,i,e));hx(o,n,i,e)}});function hx(e,t,n,i){var o;if(!e){const l={code:"custom",input:n,inst:i,path:[...(o=i._zod.def.path)!=null?o:[]],continue:!i._zod.def.abort};i._zod.def.params&&(l.params=i._zod.def.params),t.issues.push(gh(l))}}var mx;class rz{constructor(){this._map=new WeakMap,this._idmap=new Map}add(t,...n){const i=n[0];return this._map.set(t,i),i&&typeof i=="object"&&"id"in i&&this._idmap.set(i.id,t),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(t){const n=this._map.get(t);return n&&typeof n=="object"&&"id"in n&&this._idmap.delete(n.id),this._map.delete(t),this}get(t){var i;const n=t._zod.parent;if(n){const o={...(i=this.get(n))!=null?i:{}};delete o.id;const l={...o,...this._map.get(t)};return Object.keys(l).length?l:void 0}return this._map.get(t)}has(t){return this._map.has(t)}}function az(){return new rz}(bN=(mx=globalThis).__zod_globalRegistry)!=null||(mx.__zod_globalRegistry=az());const yh=globalThis.__zod_globalRegistry;function iz(e,t){return new e({type:"string",...yt(t)})}function oz(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...yt(t)})}function vx(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...yt(t)})}function sz(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...yt(t)})}function lz(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...yt(t)})}function uz(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...yt(t)})}function cz(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...yt(t)})}function dz(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...yt(t)})}function fz(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...yt(t)})}function pz(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...yt(t)})}function hz(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...yt(t)})}function mz(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...yt(t)})}function vz(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...yt(t)})}function gz(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...yt(t)})}function yz(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...yt(t)})}function wz(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...yt(t)})}function bz(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...yt(t)})}function xz(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...yt(t)})}function Cz(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...yt(t)})}function Sz(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...yt(t)})}function kz(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...yt(t)})}function Ez(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...yt(t)})}function _z(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...yt(t)})}function Tz(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...yt(t)})}function Rz(e,t){return new e({type:"string",format:"date",check:"string_format",...yt(t)})}function Mz(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...yt(t)})}function Nz(e,t){return new e({type:"string",format:"duration",check:"string_format",...yt(t)})}function Oz(e,t){return new e({type:"number",checks:[],...yt(t)})}function Lz(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...yt(t)})}function Az(e,t){return new e({type:"boolean",...yt(t)})}function Iz(e,t){return new e({type:"null",...yt(t)})}function Dz(e){return new e({type:"any"})}function Pz(e){return new e({type:"unknown"})}function zz(e,t){return new e({type:"never",...yt(t)})}function gx(e,t){return new Qb({check:"less_than",...yt(t),value:e,inclusive:!1})}function dy(e,t){return new Qb({check:"less_than",...yt(t),value:e,inclusive:!0})}function yx(e,t){return new ex({check:"greater_than",...yt(t),value:e,inclusive:!1})}function fy(e,t){return new ex({check:"greater_than",...yt(t),value:e,inclusive:!0})}function wx(e,t){return new qD({check:"multiple_of",...yt(t),value:e})}function bx(e,t){return new YD({check:"max_length",...yt(t),maximum:e})}function kg(e,t){return new JD({check:"min_length",...yt(t),minimum:e})}function xx(e,t){return new KD({check:"length_equals",...yt(t),length:e})}function jz(e,t){return new XD({check:"string_format",format:"regex",...yt(t),pattern:e})}function Fz(e){return new QD({check:"string_format",format:"lowercase",...yt(e)})}function Uz(e){return new eP({check:"string_format",format:"uppercase",...yt(e)})}function Hz(e,t){return new tP({check:"string_format",format:"includes",...yt(t),includes:e})}function Vz(e,t){return new nP({check:"string_format",format:"starts_with",...yt(t),prefix:e})}function Bz(e,t){return new rP({check:"string_format",format:"ends_with",...yt(t),suffix:e})}function Gf(e){return new aP({check:"overwrite",tx:e})}function $z(e){return Gf(t=>t.normalize(e))}function Zz(){return Gf(e=>e.trim())}function Wz(){return Gf(e=>e.toLowerCase())}function qz(){return Gf(e=>e.toUpperCase())}function Gz(){return Gf(e=>KI(e))}function Yz(e,t,n){return new e({type:"array",element:t,...yt(n)})}function Jz(e,t,n){var l;const i=yt(n);return(l=i.abort)!=null||(i.abort=!0),new e({type:"custom",check:"custom",fn:t,...i})}function Kz(e,t,n){return new e({type:"custom",check:"custom",fn:t,...yt(n)})}function Xz(e){const t=Qz(n=>(n.addIssue=i=>{var o,l,c,f;if(typeof i=="string")n.issues.push(gh(i,n.value,t._zod.def));else{const m=i;m.fatal&&(m.continue=!1),(o=m.code)!=null||(m.code="custom"),(l=m.input)!=null||(m.input=n.value),(c=m.inst)!=null||(m.inst=t),(f=m.continue)!=null||(m.continue=!t._zod.def.abort),n.issues.push(gh(m))}},e(n.value,n)));return t}function Qz(e,t){const n=new zi({check:"custom",...yt(t)});return n._zod.check=e,n}function Eg(e){var n,i,o,l,c,f,m,v,b;let t=(n=e==null?void 0:e.target)!=null?n:"draft-2020-12";return t==="draft-4"&&(t="draft-04"),t==="draft-7"&&(t="draft-07"),{processors:(i=e.processors)!=null?i:{},metadataRegistry:(o=e==null?void 0:e.metadata)!=null?o:yh,target:t,unrepresentable:(l=e==null?void 0:e.unrepresentable)!=null?l:"throw",override:(c=e==null?void 0:e.override)!=null?c:()=>{},io:(f=e==null?void 0:e.io)!=null?f:"output",counter:0,seen:new Map,cycles:(m=e==null?void 0:e.cycles)!=null?m:"ref",reused:(v=e==null?void 0:e.reused)!=null?v:"inline",external:(b=e==null?void 0:e.external)!=null?b:void 0}}function ur(e,t,n={path:[],schemaPath:[]}){var b,y,S;var i;const o=e._zod.def,l=t.seen.get(e);if(l)return l.count++,n.schemaPath.includes(e)&&(l.cycle=n.path),l.schema;const c={schema:{},count:1,cycle:void 0,path:n.path};t.seen.set(e,c);const f=(y=(b=e._zod).toJSONSchema)==null?void 0:y.call(b);if(f)c.schema=f;else{const C={...n,schemaPath:[...n.schemaPath,e],path:n.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,c.schema,C);else{const M=c.schema,L=t.processors[o.type];if(!L)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${o.type}`);L(e,t,M,C)}const R=e._zod.parent;R&&(c.ref||(c.ref=R),ur(R,t,C),t.seen.get(R).isParent=!0)}const m=t.metadataRegistry.get(e);return m&&Object.assign(c.schema,m),t.io==="input"&&mi(e)&&(delete c.schema.examples,delete c.schema.default),t.io==="input"&&c.schema._prefault&&((S=(i=c.schema).default)!=null||(i.default=c.schema._prefault)),delete c.schema._prefault,t.seen.get(e).schema}function _g(e,t){var c,f,m,v;const n=e.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");const i=new Map;for(const b of e.seen.entries()){const y=(c=e.metadataRegistry.get(b[0]))==null?void 0:c.id;if(y){const S=i.get(y);if(S&&S!==b[0])throw new Error(`Duplicate schema id "${y}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);i.set(y,b[0])}}const o=b=>{var M,L,I,j,U;const y=e.target==="draft-2020-12"?"$defs":"definitions";if(e.external){const P=(M=e.external.registry.get(b[0]))==null?void 0:M.id,Z=(L=e.external.uri)!=null?L:W=>W;if(P)return{ref:Z(P)};const B=(j=(I=b[1].defId)!=null?I:b[1].schema.id)!=null?j:`schema${e.counter++}`;return b[1].defId=B,{defId:B,ref:`${Z("__shared")}#/${y}/${B}`}}if(b[1]===n)return{ref:"#"};const C=`#/${y}/`,R=(U=b[1].schema.id)!=null?U:`__schema${e.counter++}`;return{defId:R,ref:C+R}},l=b=>{if(b[1].schema.$ref)return;const y=b[1],{ref:S,defId:C}=o(b);y.def={...y.schema},C&&(y.defId=C);const R=y.schema;for(const M in R)delete R[M];R.$ref=S};if(e.cycles==="throw")for(const b of e.seen.entries()){const y=b[1];if(y.cycle)throw new Error(`Cycle detected: #/${(f=y.cycle)==null?void 0:f.join("/")}/<root>
317
+
318
+ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(const b of e.seen.entries()){const y=b[1];if(t===b[0]){l(b);continue}if(e.external){const C=(m=e.external.registry.get(b[0]))==null?void 0:m.id;if(t!==b[0]&&C){l(b);continue}}if((v=e.metadataRegistry.get(b[0]))==null?void 0:v.id){l(b);continue}if(y.cycle){l(b);continue}if(y.count>1&&e.reused==="ref"){l(b);continue}}}function Tg(e,t){var c,f,m,v,b;const n=e.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");const i=y=>{var I,j,U;const S=e.seen.get(y);if(S.ref===null)return;const C=(I=S.def)!=null?I:S.schema,R={...C},M=S.ref;if(S.ref=null,M){i(M);const P=e.seen.get(M),Z=P.schema;if(Z.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(C.allOf=(j=C.allOf)!=null?j:[],C.allOf.push(Z)):Object.assign(C,Z),Object.assign(C,R),y._zod.parent===M)for(const W in C)W==="$ref"||W==="allOf"||W in R||delete C[W];if(Z.$ref)for(const W in C)W==="$ref"||W==="allOf"||W in P.def&&JSON.stringify(C[W])===JSON.stringify(P.def[W])&&delete C[W]}const L=y._zod.parent;if(L&&L!==M){i(L);const P=e.seen.get(L);if(P!=null&&P.schema.$ref&&(C.$ref=P.schema.$ref,P.def))for(const Z in C)Z==="$ref"||Z==="allOf"||Z in P.def&&JSON.stringify(C[Z])===JSON.stringify(P.def[Z])&&delete C[Z]}e.override({zodSchema:y,jsonSchema:C,path:(U=S.path)!=null?U:[]})};for(const y of[...e.seen.entries()].reverse())i(y[0]);const o={};if(e.target==="draft-2020-12"?o.$schema="https://json-schema.org/draft/2020-12/schema":e.target==="draft-07"?o.$schema="http://json-schema.org/draft-07/schema#":e.target==="draft-04"?o.$schema="http://json-schema.org/draft-04/schema#":e.target,(c=e.external)!=null&&c.uri){const y=(f=e.external.registry.get(t))==null?void 0:f.id;if(!y)throw new Error("Schema is missing an `id` property");o.$id=e.external.uri(y)}Object.assign(o,(m=n.def)!=null?m:n.schema);const l=(b=(v=e.external)==null?void 0:v.defs)!=null?b:{};for(const y of e.seen.entries()){const S=y[1];S.def&&S.defId&&(l[S.defId]=S.def)}e.external||Object.keys(l).length>0&&(e.target==="draft-2020-12"?o.$defs=l:o.definitions=l);try{const y=JSON.parse(JSON.stringify(o));return Object.defineProperty(y,"~standard",{value:{...t["~standard"],jsonSchema:{input:Rg(t,"input",e.processors),output:Rg(t,"output",e.processors)}},enumerable:!1,writable:!1}),y}catch(y){throw new Error("Error converting schema to JSON.")}}function mi(e,t){const n=t!=null?t:{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);const i=e._zod.def;if(i.type==="transform")return!0;if(i.type==="array")return mi(i.element,n);if(i.type==="set")return mi(i.valueType,n);if(i.type==="lazy")return mi(i.getter(),n);if(i.type==="promise"||i.type==="optional"||i.type==="nonoptional"||i.type==="nullable"||i.type==="readonly"||i.type==="default"||i.type==="prefault")return mi(i.innerType,n);if(i.type==="intersection")return mi(i.left,n)||mi(i.right,n);if(i.type==="record"||i.type==="map")return mi(i.keyType,n)||mi(i.valueType,n);if(i.type==="pipe")return mi(i.in,n)||mi(i.out,n);if(i.type==="object"){for(const o in i.shape)if(mi(i.shape[o],n))return!0;return!1}if(i.type==="union"){for(const o of i.options)if(mi(o,n))return!0;return!1}if(i.type==="tuple"){for(const o of i.items)if(mi(o,n))return!0;return!!(i.rest&&mi(i.rest,n))}return!1}const ej=(e,t={})=>n=>{const i=Eg({...n,processors:t});return ur(e,i),_g(i,e),Tg(i,e)},Rg=(e,t,n={})=>i=>{const{libraryOptions:o,target:l}=i!=null?i:{},c=Eg({...o!=null?o:{},target:l,io:t,processors:n});return ur(e,c),_g(c,e),Tg(c,e)},tj={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},Cx=(e,t,n,i)=>{var b;const o=n;o.type="string";const{minimum:l,maximum:c,format:f,patterns:m,contentEncoding:v}=e._zod.bag;if(typeof l=="number"&&(o.minLength=l),typeof c=="number"&&(o.maxLength=c),f&&(o.format=(b=tj[f])!=null?b:f,o.format===""&&delete o.format,f==="time"&&delete o.format),v&&(o.contentEncoding=v),m&&m.size>0){const y=[...m];y.length===1?o.pattern=y[0].source:y.length>1&&(o.allOf=[...y.map(S=>({...t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0"?{type:"string"}:{},pattern:S.source}))])}},Sx=(e,t,n,i)=>{const o=n,{minimum:l,maximum:c,format:f,multipleOf:m,exclusiveMaximum:v,exclusiveMinimum:b}=e._zod.bag;typeof f=="string"&&f.includes("int")?o.type="integer":o.type="number",typeof b=="number"&&(t.target==="draft-04"||t.target==="openapi-3.0"?(o.minimum=b,o.exclusiveMinimum=!0):o.exclusiveMinimum=b),typeof l=="number"&&(o.minimum=l,typeof b=="number"&&t.target!=="draft-04"&&(b>=l?delete o.minimum:delete o.exclusiveMinimum)),typeof v=="number"&&(t.target==="draft-04"||t.target==="openapi-3.0"?(o.maximum=v,o.exclusiveMaximum=!0):o.exclusiveMaximum=v),typeof c=="number"&&(o.maximum=c,typeof v=="number"&&t.target!=="draft-04"&&(v<=c?delete o.maximum:delete o.exclusiveMaximum)),typeof m=="number"&&(o.multipleOf=m)},kx=(e,t,n,i)=>{n.type="boolean"},nj=(e,t,n,i)=>{if(t.unrepresentable==="throw")throw new Error("BigInt cannot be represented in JSON Schema")},rj=(e,t,n,i)=>{if(t.unrepresentable==="throw")throw new Error("Symbols cannot be represented in JSON Schema")},Ex=(e,t,n,i)=>{t.target==="openapi-3.0"?(n.type="string",n.nullable=!0,n.enum=[null]):n.type="null"},aj=(e,t,n,i)=>{if(t.unrepresentable==="throw")throw new Error("Undefined cannot be represented in JSON Schema")},ij=(e,t,n,i)=>{if(t.unrepresentable==="throw")throw new Error("Void cannot be represented in JSON Schema")},_x=(e,t,n,i)=>{n.not={}},Tx=(e,t,n,i)=>{},Rx=(e,t,n,i)=>{},oj=(e,t,n,i)=>{if(t.unrepresentable==="throw")throw new Error("Date cannot be represented in JSON Schema")},Mx=(e,t,n,i)=>{const o=e._zod.def,l=Fb(o.entries);l.every(c=>typeof c=="number")&&(n.type="number"),l.every(c=>typeof c=="string")&&(n.type="string"),n.enum=l},Nx=(e,t,n,i)=>{const o=e._zod.def,l=[];for(const c of o.values)if(c===void 0){if(t.unrepresentable==="throw")throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof c=="bigint"){if(t.unrepresentable==="throw")throw new Error("BigInt literals cannot be represented in JSON Schema");l.push(Number(c))}else l.push(c);if(l.length!==0)if(l.length===1){const c=l[0];n.type=c===null?"null":typeof c,t.target==="draft-04"||t.target==="openapi-3.0"?n.enum=[c]:n.const=c}else l.every(c=>typeof c=="number")&&(n.type="number"),l.every(c=>typeof c=="string")&&(n.type="string"),l.every(c=>typeof c=="boolean")&&(n.type="boolean"),l.every(c=>c===null)&&(n.type="null"),n.enum=l},sj=(e,t,n,i)=>{if(t.unrepresentable==="throw")throw new Error("NaN cannot be represented in JSON Schema")},lj=(e,t,n,i)=>{const o=n,l=e._zod.pattern;if(!l)throw new Error("Pattern not found in template literal");o.type="string",o.pattern=l.source},uj=(e,t,n,i)=>{const o=n,l={type:"string",format:"binary",contentEncoding:"binary"},{minimum:c,maximum:f,mime:m}=e._zod.bag;c!==void 0&&(l.minLength=c),f!==void 0&&(l.maxLength=f),m?m.length===1?(l.contentMediaType=m[0],Object.assign(o,l)):(Object.assign(o,l),o.anyOf=m.map(v=>({contentMediaType:v}))):Object.assign(o,l)},cj=(e,t,n,i)=>{n.type="boolean"},Ox=(e,t,n,i)=>{if(t.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},dj=(e,t,n,i)=>{if(t.unrepresentable==="throw")throw new Error("Function types cannot be represented in JSON Schema")},Lx=(e,t,n,i)=>{if(t.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},fj=(e,t,n,i)=>{if(t.unrepresentable==="throw")throw new Error("Map cannot be represented in JSON Schema")},pj=(e,t,n,i)=>{if(t.unrepresentable==="throw")throw new Error("Set cannot be represented in JSON Schema")},Ax=(e,t,n,i)=>{const o=n,l=e._zod.def,{minimum:c,maximum:f}=e._zod.bag;typeof c=="number"&&(o.minItems=c),typeof f=="number"&&(o.maxItems=f),o.type="array",o.items=ur(l.element,t,{...i,path:[...i.path,"items"]})},Ix=(e,t,n,i)=>{var v;const o=n,l=e._zod.def;o.type="object",o.properties={};const c=l.shape;for(const b in c)o.properties[b]=ur(c[b],t,{...i,path:[...i.path,"properties",b]});const f=new Set(Object.keys(c)),m=new Set([...f].filter(b=>{const y=l.shape[b]._zod;return t.io==="input"?y.optin===void 0:y.optout===void 0}));m.size>0&&(o.required=Array.from(m)),((v=l.catchall)==null?void 0:v._zod.def.type)==="never"?o.additionalProperties=!1:l.catchall?l.catchall&&(o.additionalProperties=ur(l.catchall,t,{...i,path:[...i.path,"additionalProperties"]})):t.io==="output"&&(o.additionalProperties=!1)},Dx=(e,t,n,i)=>{const o=e._zod.def,l=o.inclusive===!1,c=o.options.map((f,m)=>ur(f,t,{...i,path:[...i.path,l?"oneOf":"anyOf",m]}));l?n.oneOf=c:n.anyOf=c},Px=(e,t,n,i)=>{const o=e._zod.def,l=ur(o.left,t,{...i,path:[...i.path,"allOf",0]}),c=ur(o.right,t,{...i,path:[...i.path,"allOf",1]}),f=v=>"allOf"in v&&Object.keys(v).length===1,m=[...f(l)?l.allOf:[l],...f(c)?c.allOf:[c]];n.allOf=m},hj=(e,t,n,i)=>{const o=n,l=e._zod.def;o.type="array";const c=t.target==="draft-2020-12"?"prefixItems":"items",f=t.target==="draft-2020-12"||t.target==="openapi-3.0"?"items":"additionalItems",m=l.items.map((S,C)=>ur(S,t,{...i,path:[...i.path,c,C]})),v=l.rest?ur(l.rest,t,{...i,path:[...i.path,f,...t.target==="openapi-3.0"?[l.items.length]:[]]}):null;t.target==="draft-2020-12"?(o.prefixItems=m,v&&(o.items=v)):t.target==="openapi-3.0"?(o.items={anyOf:m},v&&o.items.anyOf.push(v),o.minItems=m.length,v||(o.maxItems=m.length)):(o.items=m,v&&(o.additionalItems=v));const{minimum:b,maximum:y}=e._zod.bag;typeof b=="number"&&(o.minItems=b),typeof y=="number"&&(o.maxItems=y)},zx=(e,t,n,i)=>{const o=n,l=e._zod.def;o.type="object";const c=l.keyType,f=c._zod.bag,m=f==null?void 0:f.patterns;if(l.mode==="loose"&&m&&m.size>0){const b=ur(l.valueType,t,{...i,path:[...i.path,"patternProperties","*"]});o.patternProperties={};for(const y of m)o.patternProperties[y.source]=b}else(t.target==="draft-07"||t.target==="draft-2020-12")&&(o.propertyNames=ur(l.keyType,t,{...i,path:[...i.path,"propertyNames"]})),o.additionalProperties=ur(l.valueType,t,{...i,path:[...i.path,"additionalProperties"]});const v=c._zod.values;if(v){const b=[...v].filter(y=>typeof y=="string"||typeof y=="number");b.length>0&&(o.required=b)}},jx=(e,t,n,i)=>{const o=e._zod.def,l=ur(o.innerType,t,i),c=t.seen.get(e);t.target==="openapi-3.0"?(c.ref=o.innerType,n.nullable=!0):n.anyOf=[l,{type:"null"}]},Fx=(e,t,n,i)=>{const o=e._zod.def;ur(o.innerType,t,i);const l=t.seen.get(e);l.ref=o.innerType},Ux=(e,t,n,i)=>{const o=e._zod.def;ur(o.innerType,t,i);const l=t.seen.get(e);l.ref=o.innerType,n.default=JSON.parse(JSON.stringify(o.defaultValue))},Hx=(e,t,n,i)=>{const o=e._zod.def;ur(o.innerType,t,i);const l=t.seen.get(e);l.ref=o.innerType,t.io==="input"&&(n._prefault=JSON.parse(JSON.stringify(o.defaultValue)))},Vx=(e,t,n,i)=>{const o=e._zod.def;ur(o.innerType,t,i);const l=t.seen.get(e);l.ref=o.innerType;let c;try{c=o.catchValue(void 0)}catch(f){throw new Error("Dynamic catch values are not supported in JSON Schema")}n.default=c},Bx=(e,t,n,i)=>{const o=e._zod.def,l=t.io==="input"?o.in._zod.def.type==="transform"?o.out:o.in:o.out;ur(l,t,i);const c=t.seen.get(e);c.ref=l},$x=(e,t,n,i)=>{const o=e._zod.def;ur(o.innerType,t,i);const l=t.seen.get(e);l.ref=o.innerType,n.readOnly=!0},mj=(e,t,n,i)=>{const o=e._zod.def;ur(o.innerType,t,i);const l=t.seen.get(e);l.ref=o.innerType},py=(e,t,n,i)=>{const o=e._zod.def;ur(o.innerType,t,i);const l=t.seen.get(e);l.ref=o.innerType},Zx=(e,t,n,i)=>{const o=e._zod.innerType;ur(o,t,i);const l=t.seen.get(e);l.ref=o},Wx={string:Cx,number:Sx,boolean:kx,bigint:nj,symbol:rj,null:Ex,undefined:aj,void:ij,never:_x,any:Tx,unknown:Rx,date:oj,enum:Mx,literal:Nx,nan:sj,template_literal:lj,file:uj,success:cj,custom:Ox,function:dj,transform:Lx,map:fj,set:pj,array:Ax,object:Ix,union:Dx,intersection:Px,tuple:hj,record:zx,nullable:jx,nonoptional:Fx,default:Ux,prefault:Hx,catch:Vx,pipe:Bx,readonly:$x,promise:mj,optional:py,lazy:Zx};function vj(e,t){if("_idmap"in e){const i=e,o=Eg({...t,processors:Wx}),l={};for(const m of i._idmap.entries()){const[v,b]=m;ur(b,o)}const c={},f={registry:i,uri:t==null?void 0:t.uri,defs:l};o.external=f;for(const m of i._idmap.entries()){const[v,b]=m;_g(o,b),c[v]=Tg(o,b)}if(Object.keys(l).length>0){const m=o.target==="draft-2020-12"?"$defs":"definitions";c.__shared={[m]:l}}return{schemas:c}}const n=Eg({...t,processors:Wx});return ur(e,n),_g(n,e),Tg(n,e)}const gj=Se("ZodISODateTime",(e,t)=>{yP.init(e,t),_r.init(e,t)});function yj(e){return Tz(gj,e)}const wj=Se("ZodISODate",(e,t)=>{wP.init(e,t),_r.init(e,t)});function bj(e){return Rz(wj,e)}const xj=Se("ZodISOTime",(e,t)=>{bP.init(e,t),_r.init(e,t)});function Cj(e){return Mz(xj,e)}const Sj=Se("ZodISODuration",(e,t)=>{xP.init(e,t),_r.init(e,t)});function kj(e){return Nz(Sj,e)}const Io=Se("ZodError",(e,t)=>{Zb.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:n=>cD(e,n)},flatten:{value:n=>uD(e,n)},addIssue:{value:n=>{e.issues.push(n),e.message=JSON.stringify(e.issues,ry,2)}},addIssues:{value:n=>{e.issues.push(...n),e.message=JSON.stringify(e.issues,ry,2)}},isEmpty:{get(){return e.issues.length===0}}})},{Parent:Error}),Ej=sy(Io),_j=ly(Io),Tj=wg(Io),qx=bg(Io),Rj=pD(Io),Mj=hD(Io),Nj=mD(Io),Oj=vD(Io),Lj=gD(Io),Aj=yD(Io),Ij=wD(Io),Dj=bD(Io),cr=Se("ZodType",(e,t)=>(lr.init(e,t),Object.assign(e["~standard"],{jsonSchema:{input:Rg(e,"input"),output:Rg(e,"output")}}),e.toJSONSchema=ej(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.check=(...n)=>{var i;return e.clone(Bu(t,{checks:[...(i=t.checks)!=null?i:[],...n.map(o=>typeof o=="function"?{_zod:{check:o,def:{check:"custom"},onattach:[]}}:o)]}),{parent:!0})},e.with=e.check,e.clone=(n,i)=>$u(e,n,i),e.brand=()=>e,e.register=(n,i)=>(n.add(e,i),e),e.parse=(n,i)=>Ej(e,n,i,{callee:e.parse}),e.safeParse=(n,i)=>Tj(e,n,i),e.parseAsync=async(n,i)=>_j(e,n,i,{callee:e.parseAsync}),e.safeParseAsync=async(n,i)=>qx(e,n,i),e.spa=e.safeParseAsync,e.encode=(n,i)=>Rj(e,n,i),e.decode=(n,i)=>Mj(e,n,i),e.encodeAsync=async(n,i)=>Nj(e,n,i),e.decodeAsync=async(n,i)=>Oj(e,n,i),e.safeEncode=(n,i)=>Lj(e,n,i),e.safeDecode=(n,i)=>Aj(e,n,i),e.safeEncodeAsync=async(n,i)=>Ij(e,n,i),e.safeDecodeAsync=async(n,i)=>Dj(e,n,i),e.refine=(n,i)=>e.check(OF(n,i)),e.superRefine=n=>e.check(LF(n)),e.overwrite=n=>e.check(Gf(n)),e.optional=()=>my(e),e.exactOptional=()=>gF(e),e.nullable=()=>nC(e),e.nullish=()=>my(nC(e)),e.nonoptional=n=>SF(e,n),e.array=()=>Fn(e),e.or=n=>ua([e,n]),e.and=n=>dF(e,n),e.transform=n=>aC(e,mF(n)),e.default=n=>bF(e,n),e.prefault=n=>CF(e,n),e.catch=n=>EF(e,n),e.pipe=n=>aC(e,n),e.readonly=()=>RF(e),e.describe=n=>{const i=e.clone();return yh.add(i,{description:n}),i},Object.defineProperty(e,"description",{get(){var n;return(n=yh.get(e))==null?void 0:n.description},configurable:!0}),e.meta=(...n)=>{if(n.length===0)return yh.get(e);const i=e.clone();return yh.add(i,n[0]),i},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e.apply=n=>n(e),e)),Gx=Se("_ZodString",(e,t)=>{var i,o,l;uy.init(e,t),cr.init(e,t),e._zod.processJSONSchema=(c,f,m)=>Cx(e,c,f);const n=e._zod.bag;e.format=(i=n.format)!=null?i:null,e.minLength=(o=n.minimum)!=null?o:null,e.maxLength=(l=n.maximum)!=null?l:null,e.regex=(...c)=>e.check(jz(...c)),e.includes=(...c)=>e.check(Hz(...c)),e.startsWith=(...c)=>e.check(Vz(...c)),e.endsWith=(...c)=>e.check(Bz(...c)),e.min=(...c)=>e.check(kg(...c)),e.max=(...c)=>e.check(bx(...c)),e.length=(...c)=>e.check(xx(...c)),e.nonempty=(...c)=>e.check(kg(1,...c)),e.lowercase=c=>e.check(Fz(c)),e.uppercase=c=>e.check(Uz(c)),e.trim=()=>e.check(Zz()),e.normalize=(...c)=>e.check($z(...c)),e.toLowerCase=()=>e.check(Wz()),e.toUpperCase=()=>e.check(qz()),e.slugify=()=>e.check(Gz())}),Pj=Se("ZodString",(e,t)=>{uy.init(e,t),Gx.init(e,t),e.email=n=>e.check(oz(zj,n)),e.url=n=>e.check(dz(jj,n)),e.jwt=n=>e.check(_z(Qj,n)),e.emoji=n=>e.check(fz(Fj,n)),e.guid=n=>e.check(vx(Yx,n)),e.uuid=n=>e.check(sz(Mg,n)),e.uuidv4=n=>e.check(lz(Mg,n)),e.uuidv6=n=>e.check(uz(Mg,n)),e.uuidv7=n=>e.check(cz(Mg,n)),e.nanoid=n=>e.check(pz(Uj,n)),e.guid=n=>e.check(vx(Yx,n)),e.cuid=n=>e.check(hz(Hj,n)),e.cuid2=n=>e.check(mz(Vj,n)),e.ulid=n=>e.check(vz(Bj,n)),e.base64=n=>e.check(Sz(Jj,n)),e.base64url=n=>e.check(kz(Kj,n)),e.xid=n=>e.check(gz($j,n)),e.ksuid=n=>e.check(yz(Zj,n)),e.ipv4=n=>e.check(wz(Wj,n)),e.ipv6=n=>e.check(bz(qj,n)),e.cidrv4=n=>e.check(xz(Gj,n)),e.cidrv6=n=>e.check(Cz(Yj,n)),e.e164=n=>e.check(Ez(Xj,n)),e.datetime=n=>e.check(yj(n)),e.date=n=>e.check(bj(n)),e.time=n=>e.check(Cj(n)),e.duration=n=>e.check(kj(n))});function ee(e){return iz(Pj,e)}const _r=Se("ZodStringFormat",(e,t)=>{Sr.init(e,t),Gx.init(e,t)}),zj=Se("ZodEmail",(e,t)=>{uP.init(e,t),_r.init(e,t)}),Yx=Se("ZodGUID",(e,t)=>{sP.init(e,t),_r.init(e,t)}),Mg=Se("ZodUUID",(e,t)=>{lP.init(e,t),_r.init(e,t)}),jj=Se("ZodURL",(e,t)=>{cP.init(e,t),_r.init(e,t)}),Fj=Se("ZodEmoji",(e,t)=>{dP.init(e,t),_r.init(e,t)}),Uj=Se("ZodNanoID",(e,t)=>{fP.init(e,t),_r.init(e,t)}),Hj=Se("ZodCUID",(e,t)=>{pP.init(e,t),_r.init(e,t)}),Vj=Se("ZodCUID2",(e,t)=>{hP.init(e,t),_r.init(e,t)}),Bj=Se("ZodULID",(e,t)=>{mP.init(e,t),_r.init(e,t)}),$j=Se("ZodXID",(e,t)=>{vP.init(e,t),_r.init(e,t)}),Zj=Se("ZodKSUID",(e,t)=>{gP.init(e,t),_r.init(e,t)}),Wj=Se("ZodIPv4",(e,t)=>{CP.init(e,t),_r.init(e,t)}),qj=Se("ZodIPv6",(e,t)=>{SP.init(e,t),_r.init(e,t)}),Gj=Se("ZodCIDRv4",(e,t)=>{kP.init(e,t),_r.init(e,t)}),Yj=Se("ZodCIDRv6",(e,t)=>{EP.init(e,t),_r.init(e,t)}),Jj=Se("ZodBase64",(e,t)=>{_P.init(e,t),_r.init(e,t)}),Kj=Se("ZodBase64URL",(e,t)=>{RP.init(e,t),_r.init(e,t)}),Xj=Se("ZodE164",(e,t)=>{MP.init(e,t),_r.init(e,t)}),Qj=Se("ZodJWT",(e,t)=>{OP.init(e,t),_r.init(e,t)}),Jx=Se("ZodNumber",(e,t)=>{var i,o,l,c,f,m,v,b,y;nx.init(e,t),cr.init(e,t),e._zod.processJSONSchema=(S,C,R)=>Sx(e,S,C),e.gt=(S,C)=>e.check(yx(S,C)),e.gte=(S,C)=>e.check(fy(S,C)),e.min=(S,C)=>e.check(fy(S,C)),e.lt=(S,C)=>e.check(gx(S,C)),e.lte=(S,C)=>e.check(dy(S,C)),e.max=(S,C)=>e.check(dy(S,C)),e.int=S=>e.check(Kx(S)),e.safe=S=>e.check(Kx(S)),e.positive=S=>e.check(yx(0,S)),e.nonnegative=S=>e.check(fy(0,S)),e.negative=S=>e.check(gx(0,S)),e.nonpositive=S=>e.check(dy(0,S)),e.multipleOf=(S,C)=>e.check(wx(S,C)),e.step=(S,C)=>e.check(wx(S,C)),e.finite=()=>e;const n=e._zod.bag;e.minValue=(l=Math.max((i=n.minimum)!=null?i:Number.NEGATIVE_INFINITY,(o=n.exclusiveMinimum)!=null?o:Number.NEGATIVE_INFINITY))!=null?l:null,e.maxValue=(m=Math.min((c=n.maximum)!=null?c:Number.POSITIVE_INFINITY,(f=n.exclusiveMaximum)!=null?f:Number.POSITIVE_INFINITY))!=null?m:null,e.isInt=((v=n.format)!=null?v:"").includes("int")||Number.isSafeInteger((b=n.multipleOf)!=null?b:.5),e.isFinite=!0,e.format=(y=n.format)!=null?y:null});function ar(e){return Oz(Jx,e)}const eF=Se("ZodNumberFormat",(e,t)=>{LP.init(e,t),Jx.init(e,t)});function Kx(e){return Lz(eF,e)}const tF=Se("ZodBoolean",(e,t)=>{AP.init(e,t),cr.init(e,t),e._zod.processJSONSchema=(n,i,o)=>kx(e,n,i)});function dn(e){return Az(tF,e)}const nF=Se("ZodNull",(e,t)=>{IP.init(e,t),cr.init(e,t),e._zod.processJSONSchema=(n,i,o)=>Ex(e,n,i)});function rF(e){return Iz(nF,e)}const aF=Se("ZodAny",(e,t)=>{DP.init(e,t),cr.init(e,t),e._zod.processJSONSchema=(n,i,o)=>Tx()});function Bl(){return Dz(aF)}const iF=Se("ZodUnknown",(e,t)=>{PP.init(e,t),cr.init(e,t),e._zod.processJSONSchema=(n,i,o)=>Rx()});function ji(){return Pz(iF)}const oF=Se("ZodNever",(e,t)=>{zP.init(e,t),cr.init(e,t),e._zod.processJSONSchema=(n,i,o)=>_x(e,n,i)});function Xx(e){return zz(oF,e)}const sF=Se("ZodArray",(e,t)=>{jP.init(e,t),cr.init(e,t),e._zod.processJSONSchema=(n,i,o)=>Ax(e,n,i,o),e.element=t.element,e.min=(n,i)=>e.check(kg(n,i)),e.nonempty=n=>e.check(kg(1,n)),e.max=(n,i)=>e.check(bx(n,i)),e.length=(n,i)=>e.check(xx(n,i)),e.unwrap=()=>e.element});function Fn(e,t){return Yz(sF,e,t)}const Qx=Se("ZodObject",(e,t)=>{UP.init(e,t),cr.init(e,t),e._zod.processJSONSchema=(n,i,o)=>Ix(e,n,i,o),Cn(e,"shape",()=>t.shape),e.keyof=()=>mn(Object.keys(e._zod.def.shape)),e.catchall=n=>e.clone({...e._zod.def,catchall:n}),e.passthrough=()=>e.clone({...e._zod.def,catchall:ji()}),e.loose=()=>e.clone({...e._zod.def,catchall:ji()}),e.strict=()=>e.clone({...e._zod.def,catchall:Xx()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=n=>aD(e,n),e.safeExtend=n=>iD(e,n),e.merge=n=>oD(e,n),e.pick=n=>nD(e,n),e.omit=n=>rD(e,n),e.partial=(...n)=>sD(tC,e,n[0]),e.required=(...n)=>lD(rC,e,n[0])});function $e(e,t){const n={type:"object",shape:e!=null?e:{},...yt(t)};return new Qx(n)}function Tr(e,t){return new Qx({type:"object",shape:e,catchall:Xx(),...yt(t)})}const eC=Se("ZodUnion",(e,t)=>{sx.init(e,t),cr.init(e,t),e._zod.processJSONSchema=(n,i,o)=>Dx(e,n,i,o),e.options=t.options});function ua(e,t){return new eC({type:"union",options:e,...yt(t)})}const lF=Se("ZodDiscriminatedUnion",(e,t)=>{eC.init(e,t),HP.init(e,t)});function uF(e,t,n){return new lF({type:"union",options:t,discriminator:e,...yt(n)})}const cF=Se("ZodIntersection",(e,t)=>{VP.init(e,t),cr.init(e,t),e._zod.processJSONSchema=(n,i,o)=>Px(e,n,i,o)});function dF(e,t){return new cF({type:"intersection",left:e,right:t})}const fF=Se("ZodRecord",(e,t)=>{BP.init(e,t),cr.init(e,t),e._zod.processJSONSchema=(n,i,o)=>zx(e,n,i,o),e.keyType=t.keyType,e.valueType=t.valueType});function Yf(e,t,n){return new fF({type:"record",keyType:e,valueType:t,...yt(n)})}const hy=Se("ZodEnum",(e,t)=>{$P.init(e,t),cr.init(e,t),e._zod.processJSONSchema=(i,o,l)=>Mx(e,i,o),e.enum=t.entries,e.options=Object.values(t.entries);const n=new Set(Object.keys(t.entries));e.extract=(i,o)=>{const l={};for(const c of i)if(n.has(c))l[c]=t.entries[c];else throw new Error(`Key ${c} not found in enum`);return new hy({...t,checks:[],...yt(o),entries:l})},e.exclude=(i,o)=>{const l={...t.entries};for(const c of i)if(n.has(c))delete l[c];else throw new Error(`Key ${c} not found in enum`);return new hy({...t,checks:[],...yt(o),entries:l})}});function mn(e,t){const n=Array.isArray(e)?Object.fromEntries(e.map(i=>[i,i])):e;return new hy({type:"enum",entries:n,...yt(t)})}const pF=Se("ZodLiteral",(e,t)=>{ZP.init(e,t),cr.init(e,t),e._zod.processJSONSchema=(n,i,o)=>Nx(e,n,i),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if(t.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})});function $t(e,t){return new pF({type:"literal",values:Array.isArray(e)?e:[e],...yt(t)})}const hF=Se("ZodTransform",(e,t)=>{WP.init(e,t),cr.init(e,t),e._zod.processJSONSchema=(n,i,o)=>Lx(e,n),e._zod.parse=(n,i)=>{if(i.direction==="backward")throw new zb(e.constructor.name);n.addIssue=l=>{var c,f,m;if(typeof l=="string")n.issues.push(gh(l,n.value,t));else{const v=l;v.fatal&&(v.continue=!1),(c=v.code)!=null||(v.code="custom"),(f=v.input)!=null||(v.input=n.value),(m=v.inst)!=null||(v.inst=e),n.issues.push(gh(v))}};const o=t.transform(n.value,n);return o instanceof Promise?o.then(l=>(n.value=l,n)):(n.value=o,n)}});function mF(e){return new hF({type:"transform",transform:e})}const tC=Se("ZodOptional",(e,t)=>{cx.init(e,t),cr.init(e,t),e._zod.processJSONSchema=(n,i,o)=>py(e,n,i,o),e.unwrap=()=>e._zod.def.innerType});function my(e){return new tC({type:"optional",innerType:e})}const vF=Se("ZodExactOptional",(e,t)=>{qP.init(e,t),cr.init(e,t),e._zod.processJSONSchema=(n,i,o)=>py(e,n,i,o),e.unwrap=()=>e._zod.def.innerType});function gF(e){return new vF({type:"optional",innerType:e})}const yF=Se("ZodNullable",(e,t)=>{GP.init(e,t),cr.init(e,t),e._zod.processJSONSchema=(n,i,o)=>jx(e,n,i,o),e.unwrap=()=>e._zod.def.innerType});function nC(e){return new yF({type:"nullable",innerType:e})}const wF=Se("ZodDefault",(e,t)=>{YP.init(e,t),cr.init(e,t),e._zod.processJSONSchema=(n,i,o)=>Ux(e,n,i,o),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function bF(e,t){return new wF({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():Bb(t)}})}const xF=Se("ZodPrefault",(e,t)=>{JP.init(e,t),cr.init(e,t),e._zod.processJSONSchema=(n,i,o)=>Hx(e,n,i,o),e.unwrap=()=>e._zod.def.innerType});function CF(e,t){return new xF({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():Bb(t)}})}const rC=Se("ZodNonOptional",(e,t)=>{KP.init(e,t),cr.init(e,t),e._zod.processJSONSchema=(n,i,o)=>Fx(e,n,i,o),e.unwrap=()=>e._zod.def.innerType});function SF(e,t){return new rC({type:"nonoptional",innerType:e,...yt(t)})}const kF=Se("ZodCatch",(e,t)=>{XP.init(e,t),cr.init(e,t),e._zod.processJSONSchema=(n,i,o)=>Vx(e,n,i,o),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function EF(e,t){return new kF({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}const _F=Se("ZodPipe",(e,t)=>{QP.init(e,t),cr.init(e,t),e._zod.processJSONSchema=(n,i,o)=>Bx(e,n,i,o),e.in=t.in,e.out=t.out});function aC(e,t){return new _F({type:"pipe",in:e,out:t})}const TF=Se("ZodReadonly",(e,t)=>{ez.init(e,t),cr.init(e,t),e._zod.processJSONSchema=(n,i,o)=>$x(e,n,i,o),e.unwrap=()=>e._zod.def.innerType});function RF(e){return new TF({type:"readonly",innerType:e})}const MF=Se("ZodLazy",(e,t)=>{tz.init(e,t),cr.init(e,t),e._zod.processJSONSchema=(n,i,o)=>Zx(e,n,i,o),e.unwrap=()=>e._zod.def.getter()});function NF(e){return new MF({type:"lazy",getter:e})}const vy=Se("ZodCustom",(e,t)=>{nz.init(e,t),cr.init(e,t),e._zod.processJSONSchema=(n,i,o)=>Ox(e,n)});function iC(e,t){return Jz(vy,e!=null?e:()=>!0,t)}function OF(e,t={}){return Kz(vy,e,t)}function LF(e){return Xz(e)}function Ng(e,t={}){const n=new vy({type:"custom",check:"custom",fn:i=>i instanceof e,abort:!0,...yt(t)});return n._zod.bag.Class=e,n._zod.check=i=>{var o;i.value instanceof e||i.issues.push({code:"invalid_type",expected:e.name,input:i.value,inst:n,path:[...(o=n._zod.def.path)!=null?o:[]]})},n}var wh;(function(e){e.assertEqual=o=>{};function t(o){}e.assertIs=t;function n(o){throw new Error}e.assertNever=n,e.arrayToEnum=o=>{const l={};for(const c of o)l[c]=c;return l},e.getValidEnumValues=o=>{const l=e.objectKeys(o).filter(f=>typeof o[o[f]]!="number"),c={};for(const f of l)c[f]=o[f];return e.objectValues(c)},e.objectValues=o=>e.objectKeys(o).map(function(l){return o[l]}),e.objectKeys=typeof Object.keys=="function"?o=>Object.keys(o):o=>{const l=[];for(const c in o)Object.prototype.hasOwnProperty.call(o,c)&&l.push(c);return l},e.find=(o,l)=>{for(const c of o)if(l(c))return c},e.isInteger=typeof Number.isInteger=="function"?o=>Number.isInteger(o):o=>typeof o=="number"&&Number.isFinite(o)&&Math.floor(o)===o;function i(o,l=" | "){return o.map(c=>typeof c=="string"?`'${c}'`:c).join(l)}e.joinValues=i,e.jsonStringifyReplacer=(o,l)=>typeof l=="bigint"?l.toString():l})(wh||(wh={}));var oC;(function(e){e.mergeShapes=(t,n)=>({...t,...n})})(oC||(oC={})),wh.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),wh.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);class Og extends Error{get errors(){return this.issues}constructor(t){super(),this.issues=[],this.addIssue=i=>{this.issues=[...this.issues,i]},this.addIssues=(i=[])=>{this.issues=[...this.issues,...i]};const n=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,n):this.__proto__=n,this.name="ZodError",this.issues=t}format(t){const n=t||function(l){return l.message},i={_errors:[]},o=l=>{for(const c of l.issues)if(c.code==="invalid_union")c.unionErrors.map(o);else if(c.code==="invalid_return_type")o(c.returnTypeError);else if(c.code==="invalid_arguments")o(c.argumentsError);else if(c.path.length===0)i._errors.push(n(c));else{let f=i,m=0;for(;m<c.path.length;){const v=c.path[m];m===c.path.length-1?(f[v]=f[v]||{_errors:[]},f[v]._errors.push(n(c))):f[v]=f[v]||{_errors:[]},f=f[v],m++}}};return o(this),i}static assert(t){if(!(t instanceof Og))throw new Error(`Not a ZodError: ${t}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,wh.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(t=n=>n.message){const n=Object.create(null),i=[];for(const o of this.issues)if(o.path.length>0){const l=o.path[0];n[l]=n[l]||[],n[l].push(t(o))}else i.push(t(o));return{formErrors:i,fieldErrors:n}}get formErrors(){return this.flatten()}}Og.create=e=>new Og(e);var sC;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t==null?void 0:t.message})(sC||(sC={}));var tn;(function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"})(tn||(tn={}));function Jf(...e){return e.reduce((t,n)=>({...t,...n!=null?n:{}}),{})}async function AF(e,t){if(e==null)return Promise.resolve();const n=t==null?void 0:t.abortSignal;return new Promise((i,o)=>{if(n!=null&&n.aborted){o(lC());return}const l=setTimeout(()=>{c(),i()},e),c=()=>{clearTimeout(l),n==null||n.removeEventListener("abort",f)},f=()=>{c(),o(lC())};n==null||n.addEventListener("abort",f)})}function lC(){return new DOMException("Delay was aborted","AbortError")}var Lg=class{constructor(){this.status={type:"pending"},this._resolve=void 0,this._reject=void 0}get promise(){return this._promise?this._promise:(this._promise=new Promise((e,t)=>{this.status.type==="resolved"?e(this.status.value):this.status.type==="rejected"&&t(this.status.error),this._resolve=e,this._reject=t}),this._promise)}resolve(e){var t;this.status={type:"resolved",value:e},this._promise&&((t=this._resolve)==null||t.call(this,e))}reject(e){var t;this.status={type:"rejected",error:e},this._promise&&((t=this._reject)==null||t.call(this,e))}isResolved(){return this.status.type==="resolved"}isRejected(){return this.status.type==="rejected"}isPending(){return this.status.type==="pending"}};function bh(e){return Object.fromEntries([...e.headers])}var xh=({prefix:e,size:t=16,alphabet:n="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",separator:i="-"}={})=>{const o=()=>{const l=n.length,c=new Array(t);for(let f=0;f<t;f++)c[f]=n[Math.random()*l|0];return c.join("")};if(e==null)return o;if(n.includes(i))throw new ib({argument:"separator",message:`The separator "${i}" must not be part of the alphabet "${n}".`});return()=>`${e}${i}${o()}`},rd=xh();function Ag(e){return e==null?"unknown error":typeof e=="string"?e:e instanceof Error?e.message:JSON.stringify(e)}function ad(e){return(e instanceof Error||e instanceof DOMException)&&(e.name==="AbortError"||e.name==="ResponseAborted"||e.name==="TimeoutError")}var IF=["fetch failed","failed to fetch"];function uC({error:e,url:t,requestBodyValues:n}){if(ad(e))return e;if(e instanceof TypeError&&IF.includes(e.message.toLowerCase())){const i=e.cause;if(i!=null)return new hi({message:`Cannot connect to API: ${i.message}`,cause:i,url:t,requestBodyValues:n,isRetryable:!0})}return e}function Ch(e=globalThis){var t,n,i;return e.window?"runtime/browser":(t=e.navigator)!=null&&t.userAgent?`runtime/${e.navigator.userAgent.toLowerCase()}`:(i=(n=e.process)==null?void 0:n.versions)!=null&&i.node?`runtime/node.js/${e.process.version.substring(0)}`:e.EdgeRuntime?"runtime/vercel-edge":"runtime/unknown"}function id(e){if(e==null)return{};const t={};if(e instanceof Headers)e.forEach((n,i)=>{t[i.toLowerCase()]=n});else{Array.isArray(e)||(e=Object.entries(e));for(const[n,i]of e)i!=null&&(t[n.toLowerCase()]=i)}return t}function Wu(e,...t){const n=new Headers(id(e)),i=n.get("user-agent")||"";return n.set("user-agent",[i,...t].filter(Boolean).join(" ")),Object.fromEntries(n.entries())}var cC="3.0.20",DF=()=>globalThis.fetch,dC=async({url:e,headers:t={},successfulResponseHandler:n,failedResponseHandler:i,abortSignal:o,fetch:l=DF()})=>{try{const c=await l(e,{method:"GET",headers:Wu(t,`ai-sdk/provider-utils/${cC}`,Ch()),signal:o}),f=bh(c);if(!c.ok){let m;try{m=await i({response:c,url:e,requestBodyValues:{}})}catch(v){throw ad(v)||hi.isInstance(v)?v:new hi({message:"Failed to process error response",cause:v,statusCode:c.status,url:e,responseHeaders:f,requestBodyValues:{}})}throw m.value}try{return await n({response:c,url:e,requestBodyValues:{}})}catch(m){throw m instanceof Error&&(ad(m)||hi.isInstance(m))?m:new hi({message:"Failed to process successful response",cause:m,statusCode:c.status,url:e,responseHeaders:f,requestBodyValues:{}})}}catch(c){throw uC({error:c,url:e,requestBodyValues:{}})}};function PF({mediaType:e,url:t,supportedUrls:n}){return t=t.toLowerCase(),e=e.toLowerCase(),Object.entries(n).map(([i,o])=>{const l=i.toLowerCase();return l==="*"||l==="*/*"?{mediaTypePrefix:"",regexes:o}:{mediaTypePrefix:l.replace(/\*/,""),regexes:o}}).filter(({mediaTypePrefix:i})=>e.startsWith(i)).flatMap(({regexes:i})=>i).some(i=>i.test(t))}function zF({apiKey:e,environmentVariableName:t,apiKeyParameterName:n="apiKey",description:i}){if(typeof e=="string")return e;if(e!=null)throw new vg({message:`${i} API key must be a string.`});if(typeof process=="undefined")throw new vg({message:`${i} API key is missing. Pass it using the '${n}' parameter. Environment variables is not supported in this environment.`});if(e=process.env[t],e==null)throw new vg({message:`${i} API key is missing. Pass it using the '${n}' parameter or the ${t} environment variable.`});if(typeof e!="string")throw new vg({message:`${i} API key must be a string. The value of the ${t} environment variable is not a string.`});return e}function Ig({settingValue:e,environmentVariableName:t}){if(typeof e=="string")return e;if(!(e!=null||typeof process=="undefined")&&(e=process.env[t],!(e==null||typeof e!="string")))return e}var jF=/"__proto__"\s*:/,FF=/"constructor"\s*:/;function fC(e){const t=JSON.parse(e);return t===null||typeof t!="object"||jF.test(e)===!1&&FF.test(e)===!1?t:UF(t)}function UF(e){let t=[e];for(;t.length;){const n=t;t=[];for(const i of n){if(Object.prototype.hasOwnProperty.call(i,"__proto__"))throw new SyntaxError("Object contains forbidden prototype property");if(Object.prototype.hasOwnProperty.call(i,"constructor")&&Object.prototype.hasOwnProperty.call(i.constructor,"prototype"))throw new SyntaxError("Object contains forbidden prototype property");for(const o in i){const l=i[o];l&&typeof l=="object"&&t.push(l)}}}return e}function gy(e){const{stackTraceLimit:t}=Error;try{Error.stackTraceLimit=0}catch(n){return fC(e)}try{return fC(e)}finally{Error.stackTraceLimit=t}}var Dg=Symbol.for("vercel.ai.validator");function HF(e){return{[Dg]:!0,validate:e}}function VF(e){return typeof e=="object"&&e!==null&&Dg in e&&e[Dg]===!0&&"validate"in e}function od(e){let t;return()=>(t==null&&(t=e()),t)}function BF(e){return VF(e)?e:typeof e=="function"?e():$F(e)}function $F(e){return HF(async t=>{const n=await e["~standard"].validate(t);return n.issues==null?{success:!0,value:n.value}:{success:!1,error:new mh({value:t,cause:n.issues})}})}async function yy({value:e,schema:t}){const n=await $l({value:e,schema:t});if(!n.success)throw mh.wrap({value:e,cause:n.error});return n.value}async function $l({value:e,schema:t}){const n=BF(t);try{if(n.validate==null)return{success:!0,value:e,rawValue:e};const i=await n.validate(e);return i.success?{success:!0,value:i.value,rawValue:e}:{success:!1,error:mh.wrap({value:e,cause:i.error}),rawValue:e}}catch(i){return{success:!1,error:mh.wrap({value:e,cause:i}),rawValue:e}}}async function ZF({text:e,schema:t}){try{const n=gy(e);return t==null?n:yy({value:n,schema:t})}catch(n){throw mg.isInstance(n)||mh.isInstance(n)?n:new mg({text:e,cause:n})}}async function sd({text:e,schema:t}){try{const n=gy(e);return t==null?{success:!0,value:n,rawValue:n}:await $l({value:n,schema:t})}catch(n){return{success:!1,error:mg.isInstance(n)?n:new mg({text:e,cause:n}),rawValue:void 0}}}function pC(e){try{return gy(e),!0}catch(t){return!1}}function hC({stream:e,schema:t}){return e.pipeThrough(new TextDecoderStream).pipeThrough(new YI).pipeThrough(new TransformStream({async transform({data:n},i){n!=="[DONE]"&&i.enqueue(await sd({text:n,schema:t}))}}))}async function WF({provider:e,providerOptions:t,schema:n}){if((t==null?void 0:t[e])==null)return;const i=await $l({value:t[e],schema:n});if(!i.success)throw new ib({argument:"providerOptions",message:`invalid ${e} provider options`,cause:i.error});return i.value}var qF=()=>globalThis.fetch,Kf=async({url:e,headers:t,body:n,failedResponseHandler:i,successfulResponseHandler:o,abortSignal:l,fetch:c})=>GF({url:e,headers:{"Content-Type":"application/json",...t},body:{content:JSON.stringify(n),values:n},failedResponseHandler:i,successfulResponseHandler:o,abortSignal:l,fetch:c}),GF=async({url:e,headers:t={},body:n,successfulResponseHandler:i,failedResponseHandler:o,abortSignal:l,fetch:c=qF()})=>{try{const f=await c(e,{method:"POST",headers:Wu(t,`ai-sdk/provider-utils/${cC}`,Ch()),body:n.content,signal:l}),m=bh(f);if(!f.ok){let v;try{v=await o({response:f,url:e,requestBodyValues:n.values})}catch(b){throw ad(b)||hi.isInstance(b)?b:new hi({message:"Failed to process error response",cause:b,statusCode:f.status,url:e,responseHeaders:m,requestBodyValues:n.values})}throw v.value}try{return await i({response:f,url:e,requestBodyValues:n.values})}catch(v){throw v instanceof Error&&(ad(v)||hi.isInstance(v))?v:new hi({message:"Failed to process successful response",cause:v,statusCode:f.status,url:e,responseHeaders:m,requestBodyValues:n.values})}}catch(f){throw uC({error:f,url:e,requestBodyValues:n.values})}};function Hue(e){return e}function YF({id:e,name:t,inputSchema:n,outputSchema:i}){return({execute:o,toModelOutput:l,onInputStart:c,onInputDelta:f,onInputAvailable:m,...v})=>({type:"provider-defined",id:e,name:t,args:v,inputSchema:n,outputSchema:i,execute:o,toModelOutput:l,onInputStart:c,onInputDelta:f,onInputAvailable:m})}async function Ya(e){return typeof e=="function"&&(e=e()),Promise.resolve(e)}var ld=({errorSchema:e,errorToMessage:t,isRetryable:n})=>async({response:i,url:o,requestBodyValues:l})=>{const c=await i.text(),f=bh(i);if(c.trim()==="")return{responseHeaders:f,value:new hi({message:i.statusText,url:o,requestBodyValues:l,statusCode:i.status,responseHeaders:f,responseBody:c,isRetryable:n==null?void 0:n(i)})};try{const m=await ZF({text:c,schema:e});return{responseHeaders:f,value:new hi({message:t(m),url:o,requestBodyValues:l,statusCode:i.status,responseHeaders:f,responseBody:c,data:m,isRetryable:n==null?void 0:n(i,m)})}}catch(m){return{responseHeaders:f,value:new hi({message:i.statusText,url:o,requestBodyValues:l,statusCode:i.status,responseHeaders:f,responseBody:c,isRetryable:n==null?void 0:n(i)})}}},mC=e=>async({response:t})=>{const n=bh(t);if(t.body==null)throw new zI({});return{responseHeaders:n,value:hC({stream:t.body,schema:e})}},Xf=e=>async({response:t,url:n,requestBodyValues:i})=>{const o=await t.text(),l=await sd({text:o,schema:e}),c=bh(t);if(!l.success)throw new hi({message:"Invalid JSON response",cause:l.error,statusCode:t.status,responseHeaders:c,responseBody:o,url:n,requestBodyValues:i});return{responseHeaders:c,value:l.value,rawValue:l.rawValue}};function Pg(e){if(e.type==="object"){e.additionalProperties=!1;const t=e.properties;if(t!=null)for(const n in t)t[n]=Pg(t[n])}return e.type==="array"&&e.items!=null&&(Array.isArray(e.items)?e.items=e.items.map(t=>Pg(t)):e.items=Pg(e.items)),e}var JF=(e,t)=>{let n=0;for(;n<e.length&&n<t.length&&e[n]===t[n];n++);return[(e.length-n).toString(),...t.slice(n)].join("/")},KF=Symbol("Let zodToJsonSchema decide on which parser to use"),vC={name:void 0,$refStrategy:"root",basePath:["#"],effectStrategy:"input",pipeStrategy:"all",dateStrategy:"format:date-time",mapStrategy:"entries",removeAdditionalStrategy:"passthrough",allowedAdditionalProperties:!0,rejectedAdditionalProperties:!1,definitionPath:"definitions",strictUnions:!1,definitions:{},errorMessages:!1,patternStrategy:"escape",applyRegexFlags:!1,emailStrategy:"format:email",base64Strategy:"contentEncoding:base64",nameStrategy:"ref"},XF=e=>typeof e=="string"?{...vC,name:e}:{...vC,...e};function so(){return{}}function QF(e,t){var n,i,o;const l={type:"array"};return(n=e.type)!=null&&n._def&&((o=(i=e.type)==null?void 0:i._def)==null?void 0:o.typeName)!==tn.ZodAny&&(l.items=Yn(e.type._def,{...t,currentPath:[...t.currentPath,"items"]})),e.minLength&&(l.minItems=e.minLength.value),e.maxLength&&(l.maxItems=e.maxLength.value),e.exactLength&&(l.minItems=e.exactLength.value,l.maxItems=e.exactLength.value),l}function eU(e){const t={type:"integer",format:"int64"};if(!e.checks)return t;for(const n of e.checks)switch(n.kind){case"min":n.inclusive?t.minimum=n.value:t.exclusiveMinimum=n.value;break;case"max":n.inclusive?t.maximum=n.value:t.exclusiveMaximum=n.value;break;case"multipleOf":t.multipleOf=n.value;break}return t}function tU(){return{type:"boolean"}}function gC(e,t){return Yn(e.type._def,t)}var nU=(e,t)=>Yn(e.innerType._def,t);function yC(e,t,n){const i=n!=null?n:t.dateStrategy;if(Array.isArray(i))return{anyOf:i.map((o,l)=>yC(e,t,o))};switch(i){case"string":case"format:date-time":return{type:"string",format:"date-time"};case"format:date":return{type:"string",format:"date"};case"integer":return rU(e)}}var rU=e=>{const t={type:"integer",format:"unix-time"};for(const n of e.checks)switch(n.kind){case"min":t.minimum=n.value;break;case"max":t.maximum=n.value;break}return t};function aU(e,t){return{...Yn(e.innerType._def,t),default:e.defaultValue()}}function iU(e,t){return t.effectStrategy==="input"?Yn(e.schema._def,t):so()}function oU(e){return{type:"string",enum:Array.from(e.values)}}var sU=e=>"type"in e&&e.type==="string"?!1:"allOf"in e;function lU(e,t){const n=[Yn(e.left._def,{...t,currentPath:[...t.currentPath,"allOf","0"]}),Yn(e.right._def,{...t,currentPath:[...t.currentPath,"allOf","1"]})].filter(o=>!!o),i=[];return n.forEach(o=>{if(sU(o))i.push(...o.allOf);else{let l=o;if("additionalProperties"in o&&o.additionalProperties===!1){const{additionalProperties:c,...f}=o;l=f}i.push(l)}}),i.length?{allOf:i}:void 0}function uU(e){const t=typeof e.value;return t!=="bigint"&&t!=="number"&&t!=="boolean"&&t!=="string"?{type:Array.isArray(e.value)?"array":"object"}:{type:t==="bigint"?"integer":t,const:e.value}}var wy=void 0,us={cuid:/^[cC][^\s-]{8,}$/,cuid2:/^[0-9a-z]+$/,ulid:/^[0-9A-HJKMNP-TV-Z]{26}$/,email:/^(?!\.)(?!.*\.\.)([a-zA-Z0-9_'+\-\.]*)[a-zA-Z0-9_+-]@([a-zA-Z0-9][a-zA-Z0-9\-]*\.)+[a-zA-Z]{2,}$/,emoji:()=>(wy===void 0&&(wy=RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u")),wy),uuid:/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/,ipv4:/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,ipv4Cidr:/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,ipv6:/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,ipv6Cidr:/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,base64:/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,base64url:/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,nanoid:/^[a-zA-Z0-9_-]{21}$/,jwt:/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/};function wC(e,t){const n={type:"string"};if(e.checks)for(const i of e.checks)switch(i.kind){case"min":n.minLength=typeof n.minLength=="number"?Math.max(n.minLength,i.value):i.value;break;case"max":n.maxLength=typeof n.maxLength=="number"?Math.min(n.maxLength,i.value):i.value;break;case"email":switch(t.emailStrategy){case"format:email":cs(n,"email",i.message,t);break;case"format:idn-email":cs(n,"idn-email",i.message,t);break;case"pattern:zod":vi(n,us.email,i.message,t);break}break;case"url":cs(n,"uri",i.message,t);break;case"uuid":cs(n,"uuid",i.message,t);break;case"regex":vi(n,i.regex,i.message,t);break;case"cuid":vi(n,us.cuid,i.message,t);break;case"cuid2":vi(n,us.cuid2,i.message,t);break;case"startsWith":vi(n,RegExp(`^${by(i.value,t)}`),i.message,t);break;case"endsWith":vi(n,RegExp(`${by(i.value,t)}$`),i.message,t);break;case"datetime":cs(n,"date-time",i.message,t);break;case"date":cs(n,"date",i.message,t);break;case"time":cs(n,"time",i.message,t);break;case"duration":cs(n,"duration",i.message,t);break;case"length":n.minLength=typeof n.minLength=="number"?Math.max(n.minLength,i.value):i.value,n.maxLength=typeof n.maxLength=="number"?Math.min(n.maxLength,i.value):i.value;break;case"includes":{vi(n,RegExp(by(i.value,t)),i.message,t);break}case"ip":{i.version!=="v6"&&cs(n,"ipv4",i.message,t),i.version!=="v4"&&cs(n,"ipv6",i.message,t);break}case"base64url":vi(n,us.base64url,i.message,t);break;case"jwt":vi(n,us.jwt,i.message,t);break;case"cidr":{i.version!=="v6"&&vi(n,us.ipv4Cidr,i.message,t),i.version!=="v4"&&vi(n,us.ipv6Cidr,i.message,t);break}case"emoji":vi(n,us.emoji(),i.message,t);break;case"ulid":{vi(n,us.ulid,i.message,t);break}case"base64":{switch(t.base64Strategy){case"format:binary":{cs(n,"binary",i.message,t);break}case"contentEncoding:base64":{n.contentEncoding="base64";break}case"pattern:zod":{vi(n,us.base64,i.message,t);break}}break}case"nanoid":vi(n,us.nanoid,i.message,t)}return n}function by(e,t){return t.patternStrategy==="escape"?dU(e):e}var cU=new Set("ABCDEFGHIJKLMNOPQRSTUVXYZabcdefghijklmnopqrstuvxyz0123456789");function dU(e){let t="";for(let n=0;n<e.length;n++)cU.has(e[n])||(t+="\\"),t+=e[n];return t}function cs(e,t,n,i){var o;e.format||(o=e.anyOf)!=null&&o.some(l=>l.format)?(e.anyOf||(e.anyOf=[]),e.format&&(e.anyOf.push({format:e.format}),delete e.format),e.anyOf.push({format:t,...n&&i.errorMessages&&{errorMessage:{format:n}}})):e.format=t}function vi(e,t,n,i){var o;e.pattern||(o=e.allOf)!=null&&o.some(l=>l.pattern)?(e.allOf||(e.allOf=[]),e.pattern&&(e.allOf.push({pattern:e.pattern}),delete e.pattern),e.allOf.push({pattern:bC(t,i),...n&&i.errorMessages&&{errorMessage:{pattern:n}}})):e.pattern=bC(t,i)}function bC(e,t){var n;if(!t.applyRegexFlags||!e.flags)return e.source;const i={i:e.flags.includes("i"),m:e.flags.includes("m"),s:e.flags.includes("s")},o=i.i?e.source.toLowerCase():e.source;let l="",c=!1,f=!1,m=!1;for(let v=0;v<o.length;v++){if(c){l+=o[v],c=!1;continue}if(i.i){if(f){if(o[v].match(/[a-z]/)){m?(l+=o[v],l+=`${o[v-2]}-${o[v]}`.toUpperCase(),m=!1):o[v+1]==="-"&&((n=o[v+2])!=null&&n.match(/[a-z]/))?(l+=o[v],m=!0):l+=`${o[v]}${o[v].toUpperCase()}`;continue}}else if(o[v].match(/[a-z]/)){l+=`[${o[v]}${o[v].toUpperCase()}]`;continue}}if(i.m){if(o[v]==="^"){l+=`(^|(?<=[\r
319
+ ]))`;continue}else if(o[v]==="$"){l+=`($|(?=[\r
320
+ ]))`;continue}}if(i.s&&o[v]==="."){l+=f?`${o[v]}\r
321
+ `:`[${o[v]}\r
322
+ ]`;continue}l+=o[v],o[v]==="\\"?c=!0:f&&o[v]==="]"?f=!1:!f&&o[v]==="["&&(f=!0)}try{new RegExp(l)}catch(v){return console.warn(`Could not convert regex pattern at ${t.currentPath.join("/")} to a flag-independent form! Falling back to the flag-ignorant source`),e.source}return l}function xC(e,t){var n,i,o,l,c,f;const m={type:"object",additionalProperties:(n=Yn(e.valueType._def,{...t,currentPath:[...t.currentPath,"additionalProperties"]}))!=null?n:t.allowedAdditionalProperties};if(((i=e.keyType)==null?void 0:i._def.typeName)===tn.ZodString&&((o=e.keyType._def.checks)!=null&&o.length)){const{type:v,...b}=wC(e.keyType._def,t);return{...m,propertyNames:b}}else{if(((l=e.keyType)==null?void 0:l._def.typeName)===tn.ZodEnum)return{...m,propertyNames:{enum:e.keyType._def.values}};if(((c=e.keyType)==null?void 0:c._def.typeName)===tn.ZodBranded&&e.keyType._def.type._def.typeName===tn.ZodString&&((f=e.keyType._def.type._def.checks)!=null&&f.length)){const{type:v,...b}=gC(e.keyType._def,t);return{...m,propertyNames:b}}}return m}function fU(e,t){if(t.mapStrategy==="record")return xC(e,t);const n=Yn(e.keyType._def,{...t,currentPath:[...t.currentPath,"items","items","0"]})||so(),i=Yn(e.valueType._def,{...t,currentPath:[...t.currentPath,"items","items","1"]})||so();return{type:"array",maxItems:125,items:{type:"array",items:[n,i],minItems:2,maxItems:2}}}function pU(e){const t=e.values,i=Object.keys(e.values).filter(l=>typeof t[t[l]]!="number").map(l=>t[l]),o=Array.from(new Set(i.map(l=>typeof l)));return{type:o.length===1?o[0]==="string"?"string":"number":["string","number"],enum:i}}function hU(){return{not:so()}}function mU(){return{type:"null"}}var xy={ZodString:"string",ZodNumber:"number",ZodBigInt:"integer",ZodBoolean:"boolean",ZodNull:"null"};function vU(e,t){const n=e.options instanceof Map?Array.from(e.options.values()):e.options;if(n.every(i=>i._def.typeName in xy&&(!i._def.checks||!i._def.checks.length))){const i=n.reduce((o,l)=>{const c=xy[l._def.typeName];return c&&!o.includes(c)?[...o,c]:o},[]);return{type:i.length>1?i:i[0]}}else if(n.every(i=>i._def.typeName==="ZodLiteral"&&!i.description)){const i=n.reduce((o,l)=>{const c=typeof l._def.value;switch(c){case"string":case"number":case"boolean":return[...o,c];case"bigint":return[...o,"integer"];case"object":if(l._def.value===null)return[...o,"null"];case"symbol":case"undefined":case"function":default:return o}},[]);if(i.length===n.length){const o=i.filter((l,c,f)=>f.indexOf(l)===c);return{type:o.length>1?o:o[0],enum:n.reduce((l,c)=>l.includes(c._def.value)?l:[...l,c._def.value],[])}}}else if(n.every(i=>i._def.typeName==="ZodEnum"))return{type:"string",enum:n.reduce((i,o)=>[...i,...o._def.values.filter(l=>!i.includes(l))],[])};return gU(e,t)}var gU=(e,t)=>{const n=(e.options instanceof Map?Array.from(e.options.values()):e.options).map((i,o)=>Yn(i._def,{...t,currentPath:[...t.currentPath,"anyOf",`${o}`]})).filter(i=>!!i&&(!t.strictUnions||typeof i=="object"&&Object.keys(i).length>0));return n.length?{anyOf:n}:void 0};function yU(e,t){if(["ZodString","ZodNumber","ZodBigInt","ZodBoolean","ZodNull"].includes(e.innerType._def.typeName)&&(!e.innerType._def.checks||!e.innerType._def.checks.length))return{type:[xy[e.innerType._def.typeName],"null"]};const n=Yn(e.innerType._def,{...t,currentPath:[...t.currentPath,"anyOf","0"]});return n&&{anyOf:[n,{type:"null"}]}}function wU(e){const t={type:"number"};if(!e.checks)return t;for(const n of e.checks)switch(n.kind){case"int":t.type="integer";break;case"min":n.inclusive?t.minimum=n.value:t.exclusiveMinimum=n.value;break;case"max":n.inclusive?t.maximum=n.value:t.exclusiveMaximum=n.value;break;case"multipleOf":t.multipleOf=n.value;break}return t}function bU(e,t){const n={type:"object",properties:{}},i=[],o=e.shape();for(const c in o){let f=o[c];if(f===void 0||f._def===void 0)continue;const m=CU(f),v=Yn(f._def,{...t,currentPath:[...t.currentPath,"properties",c],propertyPath:[...t.currentPath,"properties",c]});v!==void 0&&(n.properties[c]=v,m||i.push(c))}i.length&&(n.required=i);const l=xU(e,t);return l!==void 0&&(n.additionalProperties=l),n}function xU(e,t){if(e.catchall._def.typeName!=="ZodNever")return Yn(e.catchall._def,{...t,currentPath:[...t.currentPath,"additionalProperties"]});switch(e.unknownKeys){case"passthrough":return t.allowedAdditionalProperties;case"strict":return t.rejectedAdditionalProperties;case"strip":return t.removeAdditionalStrategy==="strict"?t.allowedAdditionalProperties:t.rejectedAdditionalProperties}}function CU(e){try{return e.isOptional()}catch(t){return!0}}var SU=(e,t)=>{var n;if(t.currentPath.toString()===((n=t.propertyPath)==null?void 0:n.toString()))return Yn(e.innerType._def,t);const i=Yn(e.innerType._def,{...t,currentPath:[...t.currentPath,"anyOf","1"]});return i?{anyOf:[{not:so()},i]}:so()},kU=(e,t)=>{if(t.pipeStrategy==="input")return Yn(e.in._def,t);if(t.pipeStrategy==="output")return Yn(e.out._def,t);const n=Yn(e.in._def,{...t,currentPath:[...t.currentPath,"allOf","0"]}),i=Yn(e.out._def,{...t,currentPath:[...t.currentPath,"allOf",n?"1":"0"]});return{allOf:[n,i].filter(o=>o!==void 0)}};function EU(e,t){return Yn(e.type._def,t)}function _U(e,t){const i={type:"array",uniqueItems:!0,items:Yn(e.valueType._def,{...t,currentPath:[...t.currentPath,"items"]})};return e.minSize&&(i.minItems=e.minSize.value),e.maxSize&&(i.maxItems=e.maxSize.value),i}function TU(e,t){return e.rest?{type:"array",minItems:e.items.length,items:e.items.map((n,i)=>Yn(n._def,{...t,currentPath:[...t.currentPath,"items",`${i}`]})).reduce((n,i)=>i===void 0?n:[...n,i],[]),additionalItems:Yn(e.rest._def,{...t,currentPath:[...t.currentPath,"additionalItems"]})}:{type:"array",minItems:e.items.length,maxItems:e.items.length,items:e.items.map((n,i)=>Yn(n._def,{...t,currentPath:[...t.currentPath,"items",`${i}`]})).reduce((n,i)=>i===void 0?n:[...n,i],[])}}function RU(){return{not:so()}}function MU(){return so()}var NU=(e,t)=>Yn(e.innerType._def,t),OU=(e,t,n)=>{switch(t){case tn.ZodString:return wC(e,n);case tn.ZodNumber:return wU(e);case tn.ZodObject:return bU(e,n);case tn.ZodBigInt:return eU(e);case tn.ZodBoolean:return tU();case tn.ZodDate:return yC(e,n);case tn.ZodUndefined:return RU();case tn.ZodNull:return mU();case tn.ZodArray:return QF(e,n);case tn.ZodUnion:case tn.ZodDiscriminatedUnion:return vU(e,n);case tn.ZodIntersection:return lU(e,n);case tn.ZodTuple:return TU(e,n);case tn.ZodRecord:return xC(e,n);case tn.ZodLiteral:return uU(e);case tn.ZodEnum:return oU(e);case tn.ZodNativeEnum:return pU(e);case tn.ZodNullable:return yU(e,n);case tn.ZodOptional:return SU(e,n);case tn.ZodMap:return fU(e,n);case tn.ZodSet:return _U(e,n);case tn.ZodLazy:return()=>e.getter()._def;case tn.ZodPromise:return EU(e,n);case tn.ZodNaN:case tn.ZodNever:return hU();case tn.ZodEffects:return iU(e,n);case tn.ZodAny:return so();case tn.ZodUnknown:return MU();case tn.ZodDefault:return aU(e,n);case tn.ZodBranded:return gC(e,n);case tn.ZodReadonly:return NU(e,n);case tn.ZodCatch:return nU(e,n);case tn.ZodPipeline:return kU(e,n);case tn.ZodFunction:case tn.ZodVoid:case tn.ZodSymbol:return;default:return(i=>{})()}};function Yn(e,t,n=!1){var i;const o=t.seen.get(e);if(t.override){const m=(i=t.override)==null?void 0:i.call(t,e,t,o,n);if(m!==KF)return m}if(o&&!n){const m=LU(o,t);if(m!==void 0)return m}const l={def:e,path:t.currentPath,jsonSchema:void 0};t.seen.set(e,l);const c=OU(e,e.typeName,t),f=typeof c=="function"?Yn(c(),t):c;if(f&&AU(e,t,f),t.postProcess){const m=t.postProcess(f,e,t);return l.jsonSchema=f,m}return l.jsonSchema=f,f}var LU=(e,t)=>{switch(t.$refStrategy){case"root":return{$ref:e.path.join("/")};case"relative":return{$ref:JF(t.currentPath,e.path)};case"none":case"seen":return e.path.length<t.currentPath.length&&e.path.every((n,i)=>t.currentPath[i]===n)?(console.warn(`Recursive reference detected at ${t.currentPath.join("/")}! Defaulting to any`),so()):t.$refStrategy==="seen"?so():void 0}},AU=(e,t,n)=>(e.description&&(n.description=e.description),n),IU=e=>{const t=XF(e),n=t.name!==void 0?[...t.basePath,t.definitionPath,t.name]:t.basePath;return{...t,currentPath:n,propertyPath:void 0,seen:new Map(Object.entries(t.definitions).map(([i,o])=>[o._def,{def:o._def,path:[...t.basePath,t.definitionPath,i],jsonSchema:void 0}]))}},DU=(e,t)=>{var n;const i=IU(t);let o=typeof t=="object"&&t.definitions?Object.entries(t.definitions).reduce((v,[b,y])=>{var S;return{...v,[b]:(S=Yn(y._def,{...i,currentPath:[...i.basePath,i.definitionPath,b]},!0))!=null?S:so()}},{}):void 0;const l=typeof t=="string"?t:(t==null?void 0:t.nameStrategy)==="title"||t==null?void 0:t.name,c=(n=Yn(e._def,l===void 0?i:{...i,currentPath:[...i.basePath,i.definitionPath,l]},!1))!=null?n:so(),f=typeof t=="object"&&t.name!==void 0&&t.nameStrategy==="title"?t.name:void 0;f!==void 0&&(c.title=f);const m=l===void 0?o?{...c,[i.definitionPath]:o}:c:{$ref:[...i.$refStrategy==="relative"?[]:i.basePath,i.definitionPath,l].join("/"),[i.definitionPath]:{...o,[l]:c}};return m.$schema="http://json-schema.org/draft-07/schema#",m},PU=DU;function zU(e,t){var n;const i=(n=void 0)!=null?n:!1;return ky(()=>PU(e,{$refStrategy:i?"root":"none"}),{validate:async o=>{const l=await e.safeParseAsync(o);return l.success?{success:!0,value:l.data}:{success:!1,error:l.error}}})}function jU(e,t){var n;const i=(n=void 0)!=null?n:!1;return ky(()=>Pg(vj(e,{target:"draft-7",io:"input",reused:i?"ref":"inline"})),{validate:async o=>{const l=await qx(e,o);return l.success?{success:!0,value:l.data}:{success:!1,error:l.error}}})}function FU(e){return"_zod"in e}function ds(e,t){return FU(e)?jU(e):zU(e)}var Cy=Symbol.for("vercel.ai.schema");function Sy(e){let t;return()=>(t==null&&(t=e()),t)}function ky(e,{validate:t}={}){return{[Cy]:!0,_type:void 0,[Dg]:!0,get jsonSchema(){return typeof e=="function"&&(e=e()),e},validate:t}}function UU(e){return typeof e=="object"&&e!==null&&Cy in e&&e[Cy]===!0&&"jsonSchema"in e&&"validate"in e}function zg(e){return e==null?ky({properties:{},additionalProperties:!1}):UU(e)?e:typeof e=="function"?e():ds(e)}var{btoa:HU,atob:VU}=globalThis;function Ey(e){const t=e.replace(/-/g,"+").replace(/_/g,"/"),n=VU(t);return Uint8Array.from(n,i=>i.codePointAt(0))}function _y(e){let t="";for(let n=0;n<e.length;n++)t+=String.fromCodePoint(e[n]);return HU(t)}function CC(e){return e==null?void 0:e.replace(/\/$/,"")}function BU(e){return e!=null&&typeof e[Symbol.asyncIterator]=="function"}async function*SC({execute:e,input:t,options:n}){const i=e(t,n);if(BU(i)){let o;for await(const l of i)o=l,yield{type:"preliminary",output:l};yield{type:"final",output:o}}else yield{type:"final",output:await i}}var Ty=Object.defineProperty,$U=Object.getOwnPropertyDescriptor,ZU=Object.getOwnPropertyNames,WU=Object.prototype.hasOwnProperty,qU=(e,t)=>{for(var n in t)Ty(e,n,{get:t[n],enumerable:!0})},GU=(e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of ZU(t))!WU.call(e,o)&&o!==n&&Ty(e,o,{get:()=>t[o],enumerable:!(i=$U(t,o))||i.enumerable});return e},YU=e=>GU(Ty({},"__esModule",{value:!0}),e),kC={};qU(kC,{SYMBOL_FOR_REQ_CONTEXT:()=>EC,getContext:()=>KU});var JU=YU(kC);const EC=Symbol.for("@vercel/request-context");function KU(){var t,n,i;return(i=(n=(t=globalThis[EC])==null?void 0:t.get)==null?void 0:n.call(t))!=null?i:{}}var Ry=Object.defineProperty,XU=Object.getOwnPropertyDescriptor,QU=Object.getOwnPropertyNames,eH=Object.prototype.hasOwnProperty,tH=(e,t)=>{for(var n in t)Ry(e,n,{get:t[n],enumerable:!0})},nH=(e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of QU(t))!eH.call(e,o)&&o!==n&&Ry(e,o,{get:()=>t[o],enumerable:!(i=XU(t,o))||i.enumerable});return e},rH=e=>nH(Ry({},"__esModule",{value:!0}),e),_C={};tH(_C,{getContext:()=>aH.getContext,getVercelOidcToken:()=>iH,getVercelOidcTokenSync:()=>oH});var TC=rH(_C),aH=JU;async function iH(){return""}function oH(){return""}var sH="vercel.ai.gateway.error",My=Symbol.for(sH),RC,MC,lo=class iI extends(MC=Error,RC=My,MC){constructor({message:t,statusCode:n=500,cause:i}){super(t),this[RC]=!0,this.statusCode=n,this.cause=i}static isInstance(t){return iI.hasMarker(t)}static hasMarker(t){return typeof t=="object"&&t!==null&&My in t&&t[My]===!0}},NC="GatewayAuthenticationError",lH=`vercel.ai.gateway.error.${NC}`,OC=Symbol.for(lH),LC,AC,Ny=class oI extends(AC=lo,LC=OC,AC){constructor({message:t="Authentication failed",statusCode:n=401,cause:i}={}){super({message:t,statusCode:n,cause:i}),this[LC]=!0,this.name=NC,this.type="authentication_error"}static isInstance(t){return lo.hasMarker(t)&&OC in t}static createContextualError({apiKeyProvided:t,oidcTokenProvided:n,message:i="Authentication failed",statusCode:o=401,cause:l}){let c;return t?c=`AI Gateway authentication failed: Invalid API key.
323
+
324
+ Create a new API key: https://vercel.com/d?to=%2F%5Bteam%5D%2F%7E%2Fai%2Fapi-keys
325
+
326
+ Provide via 'apiKey' option or 'AI_GATEWAY_API_KEY' environment variable.`:n?c=`AI Gateway authentication failed: Invalid OIDC token.
327
+
328
+ Run 'npx vercel link' to link your project, then 'vc env pull' to fetch the token.
329
+
330
+ Alternatively, use an API key: https://vercel.com/d?to=%2F%5Bteam%5D%2F%7E%2Fai%2Fapi-keys`:c=`AI Gateway authentication failed: No authentication provided.
331
+
332
+ Option 1 - API key:
333
+ Create an API key: https://vercel.com/d?to=%2F%5Bteam%5D%2F%7E%2Fai%2Fapi-keys
334
+ Provide via 'apiKey' option or 'AI_GATEWAY_API_KEY' environment variable.
335
+
336
+ Option 2 - OIDC token:
337
+ Run 'npx vercel link' to link your project, then 'vc env pull' to fetch the token.`,new oI({message:c,statusCode:o,cause:l})}},IC="GatewayInvalidRequestError",uH=`vercel.ai.gateway.error.${IC}`,DC=Symbol.for(uH),PC,zC,cH=class extends(zC=lo,PC=DC,zC){constructor({message:e="Invalid request",statusCode:t=400,cause:n}={}){super({message:e,statusCode:t,cause:n}),this[PC]=!0,this.name=IC,this.type="invalid_request_error"}static isInstance(e){return lo.hasMarker(e)&&DC in e}},jC="GatewayRateLimitError",dH=`vercel.ai.gateway.error.${jC}`,FC=Symbol.for(dH),UC,HC,fH=class extends(HC=lo,UC=FC,HC){constructor({message:e="Rate limit exceeded",statusCode:t=429,cause:n}={}){super({message:e,statusCode:t,cause:n}),this[UC]=!0,this.name=jC,this.type="rate_limit_exceeded"}static isInstance(e){return lo.hasMarker(e)&&FC in e}},VC="GatewayModelNotFoundError",pH=`vercel.ai.gateway.error.${VC}`,BC=Symbol.for(pH),hH=od(()=>ds($e({modelId:ee()}))),$C,ZC,mH=class extends(ZC=lo,$C=BC,ZC){constructor({message:e="Model not found",statusCode:t=404,modelId:n,cause:i}={}){super({message:e,statusCode:t,cause:i}),this[$C]=!0,this.name=VC,this.type="model_not_found",this.modelId=n}static isInstance(e){return lo.hasMarker(e)&&BC in e}},WC="GatewayInternalServerError",vH=`vercel.ai.gateway.error.${WC}`,qC=Symbol.for(vH),GC,YC,JC=class extends(YC=lo,GC=qC,YC){constructor({message:e="Internal server error",statusCode:t=500,cause:n}={}){super({message:e,statusCode:t,cause:n}),this[GC]=!0,this.name=WC,this.type="internal_server_error"}static isInstance(e){return lo.hasMarker(e)&&qC in e}},KC="GatewayResponseError",gH=`vercel.ai.gateway.error.${KC}`,XC=Symbol.for(gH),QC,eS,yH=class extends(eS=lo,QC=XC,eS){constructor({message:e="Invalid response from Gateway",statusCode:t=502,response:n,validationError:i,cause:o}={}){super({message:e,statusCode:t,cause:o}),this[QC]=!0,this.name=KC,this.type="response_error",this.response=n,this.validationError=i}static isInstance(e){return lo.hasMarker(e)&&XC in e}};async function tS({response:e,statusCode:t,defaultMessage:n="Gateway request failed",cause:i,authMethod:o}){const l=await $l({value:e,schema:wH});if(!l.success)return new yH({message:`Invalid error response format: ${n}`,statusCode:t,response:e,validationError:l.error,cause:i});const c=l.value,f=c.error.type,m=c.error.message;switch(f){case"authentication_error":return Ny.createContextualError({apiKeyProvided:o==="api-key",oidcTokenProvided:o==="oidc",statusCode:t,cause:i});case"invalid_request_error":return new cH({message:m,statusCode:t,cause:i});case"rate_limit_exceeded":return new fH({message:m,statusCode:t,cause:i});case"model_not_found":{const v=await $l({value:c.error.param,schema:hH});return new mH({message:m,statusCode:t,modelId:v.success?v.value.modelId:void 0,cause:i})}case"internal_server_error":return new JC({message:m,statusCode:t,cause:i});default:return new JC({message:m,statusCode:t,cause:i})}}var wH=od(()=>ds($e({error:$e({message:ee(),type:ee().nullish(),param:ji().nullish(),code:ua([ee(),ar()]).nullish()})})));function qu(e,t){var n;return lo.isInstance(e)?e:hi.isInstance(e)?tS({response:bH(e),statusCode:(n=e.statusCode)!=null?n:500,defaultMessage:"Gateway request failed",cause:e,authMethod:t}):tS({response:{},statusCode:500,defaultMessage:e instanceof Error?`Gateway request failed: ${e.message}`:"Unknown Gateway error",cause:e,authMethod:t})}function bH(e){if(e.data!==void 0)return e.data;if(e.responseBody!=null)try{return JSON.parse(e.responseBody)}catch(t){return e.responseBody}return{}}var nS="ai-gateway-auth-method";async function Qf(e){const t=await $l({value:e[nS],schema:xH});return t.success?t.value:void 0}var xH=od(()=>ds(ua([$t("api-key"),$t("oidc")]))),rS=class{constructor(e){this.config=e}async getAvailableModels(){try{const{value:e}=await dC({url:`${this.config.baseURL}/config`,headers:await Ya(this.config.headers()),successfulResponseHandler:Xf(CH),failedResponseHandler:ld({errorSchema:Bl(),errorToMessage:t=>t}),fetch:this.config.fetch});return e}catch(e){throw await qu(e)}}async getCredits(){try{const e=new URL(this.config.baseURL),{value:t}=await dC({url:`${e.origin}/v1/credits`,headers:await Ya(this.config.headers()),successfulResponseHandler:Xf(SH),failedResponseHandler:ld({errorSchema:Bl(),errorToMessage:n=>n}),fetch:this.config.fetch});return t}catch(e){throw await qu(e)}}},CH=od(()=>ds($e({models:Fn($e({id:ee(),name:ee(),description:ee().nullish(),pricing:$e({input:ee(),output:ee(),input_cache_read:ee().nullish(),input_cache_write:ee().nullish()}).transform(({input:e,output:t,input_cache_read:n,input_cache_write:i})=>({input:e,output:t,...n?{cachedInputTokens:n}:{},...i?{cacheCreationInputTokens:i}:{}})).nullish(),specification:$e({specificationVersion:$t("v2"),provider:ee(),modelId:ee()}),modelType:mn(["language","embedding","image"]).nullish()}))}))),SH=od(()=>ds($e({balance:ee(),total_used:ee()}).transform(({balance:e,total_used:t})=>({balance:e,totalUsed:t})))),kH=class{constructor(e,t){this.modelId=e,this.config=t,this.specificationVersion="v2",this.supportedUrls={"*/*":[/.*/]}}get provider(){return this.config.provider}async getArgs(e){const{abortSignal:t,...n}=e;return{args:this.maybeEncodeFileParts(n),warnings:[]}}async doGenerate(e){const{args:t,warnings:n}=await this.getArgs(e),{abortSignal:i}=e,o=await Ya(this.config.headers());try{const{responseHeaders:l,value:c,rawValue:f}=await Kf({url:this.getUrl(),headers:Jf(o,e.headers,this.getModelConfigHeaders(this.modelId,!1),await Ya(this.config.o11yHeaders)),body:t,successfulResponseHandler:Xf(Bl()),failedResponseHandler:ld({errorSchema:Bl(),errorToMessage:m=>m}),...i&&{abortSignal:i},fetch:this.config.fetch});return{...c,request:{body:t},response:{headers:l,body:f},warnings:n}}catch(l){throw await qu(l,await Qf(o))}}async doStream(e){const{args:t,warnings:n}=await this.getArgs(e),{abortSignal:i}=e,o=await Ya(this.config.headers());try{const{value:l,responseHeaders:c}=await Kf({url:this.getUrl(),headers:Jf(o,e.headers,this.getModelConfigHeaders(this.modelId,!0),await Ya(this.config.o11yHeaders)),body:t,successfulResponseHandler:mC(Bl()),failedResponseHandler:ld({errorSchema:Bl(),errorToMessage:f=>f}),...i&&{abortSignal:i},fetch:this.config.fetch});return{stream:l.pipeThrough(new TransformStream({start(f){n.length>0&&f.enqueue({type:"stream-start",warnings:n})},transform(f,m){if(f.success){const v=f.value;if(v.type==="raw"&&!e.includeRawChunks)return;v.type==="response-metadata"&&v.timestamp&&typeof v.timestamp=="string"&&(v.timestamp=new Date(v.timestamp)),m.enqueue(v)}else m.error(f.error)}})),request:{body:t},response:{headers:c}}}catch(l){throw await qu(l,await Qf(o))}}isFilePart(e){return e&&typeof e=="object"&&"type"in e&&e.type==="file"}maybeEncodeFileParts(e){for(const t of e.prompt)for(const n of t.content)if(this.isFilePart(n)){const i=n;if(i.data instanceof Uint8Array){const o=Uint8Array.from(i.data),l=Buffer.from(o).toString("base64");i.data=new URL(`data:${i.mediaType||"application/octet-stream"};base64,${l}`)}}return e}getUrl(){return`${this.config.baseURL}/language-model`}getModelConfigHeaders(e,t){return{"ai-language-model-specification-version":"2","ai-language-model-id":e,"ai-language-model-streaming":String(t)}}},EH=class{constructor(e,t){this.modelId=e,this.config=t,this.specificationVersion="v2",this.maxEmbeddingsPerCall=2048,this.supportsParallelCalls=!0}get provider(){return this.config.provider}async doEmbed({values:e,headers:t,abortSignal:n,providerOptions:i}){var o;const l=await Ya(this.config.headers());try{const{responseHeaders:c,value:f,rawValue:m}=await Kf({url:this.getUrl(),headers:Jf(l,t!=null?t:{},this.getModelConfigHeaders(),await Ya(this.config.o11yHeaders)),body:{input:e.length===1?e[0]:e,...i?{providerOptions:i}:{}},successfulResponseHandler:Xf(_H),failedResponseHandler:ld({errorSchema:Bl(),errorToMessage:v=>v}),...n&&{abortSignal:n},fetch:this.config.fetch});return{embeddings:f.embeddings,usage:(o=f.usage)!=null?o:void 0,providerMetadata:f.providerMetadata,response:{headers:c,body:m}}}catch(c){throw await qu(c,await Qf(l))}}getUrl(){return`${this.config.baseURL}/embedding-model`}getModelConfigHeaders(){return{"ai-embedding-model-specification-version":"2","ai-model-id":this.modelId}}},_H=od(()=>ds($e({embeddings:Fn(Fn(ar())),usage:$e({tokens:ar()}).nullish(),providerMetadata:Yf(ee(),Yf(ee(),ji())).optional()}))),TH=class{constructor(e,t){this.modelId=e,this.config=t,this.specificationVersion="v2",this.maxImagesPerCall=Number.MAX_SAFE_INTEGER}get provider(){return this.config.provider}async doGenerate({prompt:e,n:t,size:n,aspectRatio:i,seed:o,providerOptions:l,headers:c,abortSignal:f}){var m;const v=await Ya(this.config.headers());try{const{responseHeaders:b,value:y,rawValue:S}=await Kf({url:this.getUrl(),headers:Jf(v,c!=null?c:{},this.getModelConfigHeaders(),await Ya(this.config.o11yHeaders)),body:{prompt:e,n:t,...n&&{size:n},...i&&{aspectRatio:i},...o&&{seed:o},...l&&{providerOptions:l}},successfulResponseHandler:Xf(MH),failedResponseHandler:ld({errorSchema:Bl(),errorToMessage:C=>C}),...f&&{abortSignal:f},fetch:this.config.fetch});return{images:y.images,warnings:(m=y.warnings)!=null?m:[],providerMetadata:y.providerMetadata,response:{timestamp:new Date,modelId:this.modelId,headers:b}}}catch(b){throw qu(b,await Qf(v))}}getUrl(){return`${this.config.baseURL}/image-model`}getModelConfigHeaders(){return{"ai-image-model-specification-version":"2","ai-model-id":this.modelId}}},RH=$e({images:Fn(ji()).optional()}).catchall(ji()),MH=$e({images:Fn(ee()),warnings:Fn($e({type:$t("other"),message:ee()})).optional(),providerMetadata:Yf(ee(),RH).optional()}),NH=Sy(()=>ds($e({query:ua([ee(),Fn(ee())]).describe("Search query (string) or multiple queries (array of up to 5 strings). Multi-query searches return combined results from all queries."),max_results:ar().optional().describe("Maximum number of search results to return (1-20, default: 10)"),max_tokens_per_page:ar().optional().describe("Maximum number of tokens to extract per search result page (256-2048, default: 2048)"),max_tokens:ar().optional().describe("Maximum total tokens across all search results (default: 25000, max: 1000000)"),country:ee().optional().describe("Two-letter ISO 3166-1 alpha-2 country code for regional search results (e.g., 'US', 'GB', 'FR')"),search_domain_filter:Fn(ee()).optional().describe("List of domains to include or exclude from search results (max 20). To include: ['nature.com', 'science.org']. To exclude: ['-example.com', '-spam.net']"),search_language_filter:Fn(ee()).optional().describe("List of ISO 639-1 language codes to filter results (max 10, lowercase). Examples: ['en', 'fr', 'de']"),search_after_date:ee().optional().describe("Include only results published after this date. Format: 'MM/DD/YYYY' (e.g., '3/1/2025'). Cannot be used with search_recency_filter."),search_before_date:ee().optional().describe("Include only results published before this date. Format: 'MM/DD/YYYY' (e.g., '3/15/2025'). Cannot be used with search_recency_filter."),last_updated_after_filter:ee().optional().describe("Include only results last updated after this date. Format: 'MM/DD/YYYY' (e.g., '3/1/2025'). Cannot be used with search_recency_filter."),last_updated_before_filter:ee().optional().describe("Include only results last updated before this date. Format: 'MM/DD/YYYY' (e.g., '3/15/2025'). Cannot be used with search_recency_filter."),search_recency_filter:mn(["day","week","month","year"]).optional().describe("Filter results by relative time period. Cannot be used with search_after_date or search_before_date.")}))),OH=Sy(()=>ds(ua([$e({results:Fn($e({title:ee(),url:ee(),snippet:ee(),date:ee().optional(),lastUpdated:ee().optional()})),id:ee()}),$e({error:mn(["api_error","rate_limit","timeout","invalid_input","unknown"]),statusCode:ar().optional(),message:ee()})]))),LH=YF({id:"gateway.perplexity_search",name:"perplexity_search",inputSchema:NH,outputSchema:OH}),AH=(e={})=>LH(e),IH={perplexitySearch:AH};async function DH(){var e;return(e=TC.getContext().headers)==null?void 0:e["x-vercel-id"]}var PH="2.0.27",zH="0.0.1";function jH(e={}){var t,n;let i=null,o=null;const l=(t=e.metadataCacheRefreshMillis)!=null?t:1e3*60*5;let c=0;const f=(n=CC(e.baseURL))!=null?n:"https://ai-gateway.vercel.sh/v1/ai",m=async()=>{const R=await UH(e);if(R)return Wu({Authorization:`Bearer ${R.token}`,"ai-gateway-protocol-version":zH,[nS]:R.authMethod,...e.headers},`ai-sdk/gateway/${PH}`);throw Ny.createContextualError({apiKeyProvided:!1,oidcTokenProvided:!1,statusCode:401})},v=()=>{const R=Ig({settingValue:void 0,environmentVariableName:"VERCEL_DEPLOYMENT_ID"}),M=Ig({settingValue:void 0,environmentVariableName:"VERCEL_ENV"}),L=Ig({settingValue:void 0,environmentVariableName:"VERCEL_REGION"});return async()=>{const I=await DH();return{...R&&{"ai-o11y-deployment-id":R},...M&&{"ai-o11y-environment":M},...L&&{"ai-o11y-region":L},...I&&{"ai-o11y-request-id":I}}}},b=R=>new kH(R,{provider:"gateway",baseURL:f,headers:m,fetch:e.fetch,o11yHeaders:v()}),y=async()=>{var R,M,L;const I=(L=(M=(R=e._internal)==null?void 0:R.currentDate)==null?void 0:M.call(R).getTime())!=null?L:Date.now();return(!i||I-c>l)&&(c=I,i=new rS({baseURL:f,headers:m,fetch:e.fetch}).getAvailableModels().then(j=>(o=j,j)).catch(async j=>{throw await qu(j,await Qf(await m()))})),o?Promise.resolve(o):i},S=async()=>new rS({baseURL:f,headers:m,fetch:e.fetch}).getCredits().catch(async R=>{throw await qu(R,await Qf(await m()))}),C=function(R){if(new.target)throw new Error("The Gateway Provider model function cannot be called with the new keyword.");return b(R)};return C.getAvailableModels=y,C.getCredits=S,C.imageModel=R=>new TH(R,{provider:"gateway",baseURL:f,headers:m,fetch:e.fetch,o11yHeaders:v()}),C.languageModel=b,C.textEmbeddingModel=R=>new EH(R,{provider:"gateway",baseURL:f,headers:m,fetch:e.fetch,o11yHeaders:v()}),C.tools=IH,C}var FH=jH();async function UH(e){const t=Ig({settingValue:e.apiKey,environmentVariableName:"AI_GATEWAY_API_KEY"});if(t)return{token:t,authMethod:"api-key"};try{return{token:await TC.getVercelOidcToken(),authMethod:"oidc"}}catch(n){return null}}var HH=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof global=="object"?global:{},ud="1.9.0",aS=/^(\d+)\.(\d+)\.(\d+)(-(.+))?$/;function VH(e){var t=new Set([e]),n=new Set,i=e.match(aS);if(!i)return function(){return!1};var o={major:+i[1],minor:+i[2],patch:+i[3],prerelease:i[4]};if(o.prerelease!=null)return function(m){return m===e};function l(f){return n.add(f),!1}function c(f){return t.add(f),!0}return function(m){if(t.has(m))return!0;if(n.has(m))return!1;var v=m.match(aS);if(!v)return l(m);var b={major:+v[1],minor:+v[2],patch:+v[3],prerelease:v[4]};return b.prerelease!=null||o.major!==b.major?l(m):o.major===0?o.minor===b.minor&&o.patch<=b.patch?c(m):l(m):o.minor<=b.minor?c(m):l(m)}}var BH=VH(ud),$H=ud.split(".")[0],Sh=Symbol.for("opentelemetry.js.api."+$H),kh=HH;function Eh(e,t,n,i){var o;i===void 0&&(i=!1);var l=kh[Sh]=(o=kh[Sh])!==null&&o!==void 0?o:{version:ud};if(!i&&l[e]){var c=new Error("@opentelemetry/api: Attempted duplicate registration of API: "+e);return n.error(c.stack||c.message),!1}if(l.version!==ud){var c=new Error("@opentelemetry/api: Registration of version v"+l.version+" for "+e+" does not match previously registered API v"+ud);return n.error(c.stack||c.message),!1}return l[e]=t,n.debug("@opentelemetry/api: Registered a global for "+e+" v"+ud+"."),!0}function cd(e){var t,n,i=(t=kh[Sh])===null||t===void 0?void 0:t.version;if(!(!i||!BH(i)))return(n=kh[Sh])===null||n===void 0?void 0:n[e]}function _h(e,t){t.debug("@opentelemetry/api: Unregistering a global for "+e+" v"+ud+".");var n=kh[Sh];n&&delete n[e]}var ZH=function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var i=n.call(e),o,l=[],c;try{for(;(t===void 0||t-- >0)&&!(o=i.next()).done;)l.push(o.value)}catch(f){c={error:f}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(c)throw c.error}}return l},WH=function(e,t,n){if(n||arguments.length===2)for(var i=0,o=t.length,l;i<o;i++)(l||!(i in t))&&(l||(l=Array.prototype.slice.call(t,0,i)),l[i]=t[i]);return e.concat(l||Array.prototype.slice.call(t))},qH=function(){function e(t){this._namespace=t.namespace||"DiagComponentLogger"}return e.prototype.debug=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return Th("debug",this._namespace,t)},e.prototype.error=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return Th("error",this._namespace,t)},e.prototype.info=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return Th("info",this._namespace,t)},e.prototype.warn=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return Th("warn",this._namespace,t)},e.prototype.verbose=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return Th("verbose",this._namespace,t)},e}();function Th(e,t,n){var i=cd("diag");if(i)return n.unshift(t),i[e].apply(i,WH([],ZH(n),!1))}var uo;(function(e){e[e.NONE=0]="NONE",e[e.ERROR=30]="ERROR",e[e.WARN=50]="WARN",e[e.INFO=60]="INFO",e[e.DEBUG=70]="DEBUG",e[e.VERBOSE=80]="VERBOSE",e[e.ALL=9999]="ALL"})(uo||(uo={}));function GH(e,t){e<uo.NONE?e=uo.NONE:e>uo.ALL&&(e=uo.ALL),t=t||{};function n(i,o){var l=t[i];return typeof l=="function"&&e>=o?l.bind(t):function(){}}return{error:n("error",uo.ERROR),warn:n("warn",uo.WARN),info:n("info",uo.INFO),debug:n("debug",uo.DEBUG),verbose:n("verbose",uo.VERBOSE)}}var YH=function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var i=n.call(e),o,l=[],c;try{for(;(t===void 0||t-- >0)&&!(o=i.next()).done;)l.push(o.value)}catch(f){c={error:f}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(c)throw c.error}}return l},JH=function(e,t,n){if(n||arguments.length===2)for(var i=0,o=t.length,l;i<o;i++)(l||!(i in t))&&(l||(l=Array.prototype.slice.call(t,0,i)),l[i]=t[i]);return e.concat(l||Array.prototype.slice.call(t))},KH="diag",Ws=function(){function e(){function t(o){return function(){for(var l=[],c=0;c<arguments.length;c++)l[c]=arguments[c];var f=cd("diag");if(f)return f[o].apply(f,JH([],YH(l),!1))}}var n=this,i=function(o,l){var c,f,m;if(l===void 0&&(l={logLevel:uo.INFO}),o===n){var v=new Error("Cannot use diag as the logger for itself. Please use a DiagLogger implementation like ConsoleDiagLogger or a custom implementation");return n.error((c=v.stack)!==null&&c!==void 0?c:v.message),!1}typeof l=="number"&&(l={logLevel:l});var b=cd("diag"),y=GH((f=l.logLevel)!==null&&f!==void 0?f:uo.INFO,o);if(b&&!l.suppressOverrideMessage){var S=(m=new Error().stack)!==null&&m!==void 0?m:"<failed to generate stacktrace>";b.warn("Current logger will be overwritten from "+S),y.warn("Current logger will overwrite one already registered from "+S)}return Eh("diag",y,n,!0)};n.setLogger=i,n.disable=function(){_h(KH,n)},n.createComponentLogger=function(o){return new qH(o)},n.verbose=t("verbose"),n.debug=t("debug"),n.info=t("info"),n.warn=t("warn"),n.error=t("error")}return e.instance=function(){return this._instance||(this._instance=new e),this._instance},e}(),XH=function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var i=n.call(e),o,l=[],c;try{for(;(t===void 0||t-- >0)&&!(o=i.next()).done;)l.push(o.value)}catch(f){c={error:f}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(c)throw c.error}}return l},QH=function(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],i=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},eV=function(){function e(t){this._entries=t?new Map(t):new Map}return e.prototype.getEntry=function(t){var n=this._entries.get(t);if(n)return Object.assign({},n)},e.prototype.getAllEntries=function(){return Array.from(this._entries.entries()).map(function(t){var n=XH(t,2),i=n[0],o=n[1];return[i,o]})},e.prototype.setEntry=function(t,n){var i=new e(this._entries);return i._entries.set(t,n),i},e.prototype.removeEntry=function(t){var n=new e(this._entries);return n._entries.delete(t),n},e.prototype.removeEntries=function(){for(var t,n,i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];var l=new e(this._entries);try{for(var c=QH(i),f=c.next();!f.done;f=c.next()){var m=f.value;l._entries.delete(m)}}catch(v){t={error:v}}finally{try{f&&!f.done&&(n=c.return)&&n.call(c)}finally{if(t)throw t.error}}return l},e.prototype.clear=function(){return new e},e}();Ws.instance();function tV(e){return e===void 0&&(e={}),new eV(new Map(Object.entries(e)))}function iS(e){return Symbol.for(e)}var nV=function(){function e(t){var n=this;n._currentContext=t?new Map(t):new Map,n.getValue=function(i){return n._currentContext.get(i)},n.setValue=function(i,o){var l=new e(n._currentContext);return l._currentContext.set(i,o),l},n.deleteValue=function(i){var o=new e(n._currentContext);return o._currentContext.delete(i),o}}return e}(),rV=new nV,dd=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var l in o)Object.prototype.hasOwnProperty.call(o,l)&&(i[l]=o[l])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function i(){this.constructor=t}t.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}(),aV=function(){function e(){}return e.prototype.createGauge=function(t,n){return hV},e.prototype.createHistogram=function(t,n){return mV},e.prototype.createCounter=function(t,n){return pV},e.prototype.createUpDownCounter=function(t,n){return vV},e.prototype.createObservableGauge=function(t,n){return yV},e.prototype.createObservableCounter=function(t,n){return gV},e.prototype.createObservableUpDownCounter=function(t,n){return wV},e.prototype.addBatchObservableCallback=function(t,n){},e.prototype.removeBatchObservableCallback=function(t){},e}(),jg=function(){function e(){}return e}(),iV=function(e){dd(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.add=function(n,i){},t}(jg),oV=function(e){dd(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.add=function(n,i){},t}(jg),sV=function(e){dd(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.record=function(n,i){},t}(jg),lV=function(e){dd(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.record=function(n,i){},t}(jg),Oy=function(){function e(){}return e.prototype.addCallback=function(t){},e.prototype.removeCallback=function(t){},e}(),uV=function(e){dd(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(Oy),cV=function(e){dd(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(Oy),dV=function(e){dd(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(Oy),fV=new aV,pV=new iV,hV=new sV,mV=new lV,vV=new oV,gV=new uV,yV=new cV,wV=new dV,bV={get:function(e,t){if(e!=null)return e[t]},keys:function(e){return e==null?[]:Object.keys(e)}},xV={set:function(e,t,n){e!=null&&(e[t]=n)}},CV=function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var i=n.call(e),o,l=[],c;try{for(;(t===void 0||t-- >0)&&!(o=i.next()).done;)l.push(o.value)}catch(f){c={error:f}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(c)throw c.error}}return l},SV=function(e,t,n){if(n||arguments.length===2)for(var i=0,o=t.length,l;i<o;i++)(l||!(i in t))&&(l||(l=Array.prototype.slice.call(t,0,i)),l[i]=t[i]);return e.concat(l||Array.prototype.slice.call(t))},kV=function(){function e(){}return e.prototype.active=function(){return rV},e.prototype.with=function(t,n,i){for(var o=[],l=3;l<arguments.length;l++)o[l-3]=arguments[l];return n.call.apply(n,SV([i],CV(o),!1))},e.prototype.bind=function(t,n){return n},e.prototype.enable=function(){return this},e.prototype.disable=function(){return this},e}(),EV=function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var i=n.call(e),o,l=[],c;try{for(;(t===void 0||t-- >0)&&!(o=i.next()).done;)l.push(o.value)}catch(f){c={error:f}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(c)throw c.error}}return l},_V=function(e,t,n){if(n||arguments.length===2)for(var i=0,o=t.length,l;i<o;i++)(l||!(i in t))&&(l||(l=Array.prototype.slice.call(t,0,i)),l[i]=t[i]);return e.concat(l||Array.prototype.slice.call(t))},Ly="context",TV=new kV,Fg=function(){function e(){}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalContextManager=function(t){return Eh(Ly,t,Ws.instance())},e.prototype.active=function(){return this._getContextManager().active()},e.prototype.with=function(t,n,i){for(var o,l=[],c=3;c<arguments.length;c++)l[c-3]=arguments[c];return(o=this._getContextManager()).with.apply(o,_V([t,n,i],EV(l),!1))},e.prototype.bind=function(t,n){return this._getContextManager().bind(t,n)},e.prototype._getContextManager=function(){return cd(Ly)||TV},e.prototype.disable=function(){this._getContextManager().disable(),_h(Ly,Ws.instance())},e}(),Ay;(function(e){e[e.NONE=0]="NONE",e[e.SAMPLED=1]="SAMPLED"})(Ay||(Ay={}));var oS="0000000000000000",sS="00000000000000000000000000000000",RV={traceId:sS,spanId:oS,traceFlags:Ay.NONE},Rh=function(){function e(t){t===void 0&&(t=RV),this._spanContext=t}return e.prototype.spanContext=function(){return this._spanContext},e.prototype.setAttribute=function(t,n){return this},e.prototype.setAttributes=function(t){return this},e.prototype.addEvent=function(t,n){return this},e.prototype.addLink=function(t){return this},e.prototype.addLinks=function(t){return this},e.prototype.setStatus=function(t){return this},e.prototype.updateName=function(t){return this},e.prototype.end=function(t){},e.prototype.isRecording=function(){return!1},e.prototype.recordException=function(t,n){},e}(),Iy=iS("OpenTelemetry Context Key SPAN");function Dy(e){return e.getValue(Iy)||void 0}function MV(){return Dy(Fg.getInstance().active())}function Py(e,t){return e.setValue(Iy,t)}function NV(e){return e.deleteValue(Iy)}function OV(e,t){return Py(e,new Rh(t))}function lS(e){var t;return(t=Dy(e))===null||t===void 0?void 0:t.spanContext()}var LV=/^([0-9a-f]{32})$/i,AV=/^[0-9a-f]{16}$/i;function IV(e){return LV.test(e)&&e!==sS}function DV(e){return AV.test(e)&&e!==oS}function uS(e){return IV(e.traceId)&&DV(e.spanId)}function PV(e){return new Rh(e)}var zy=Fg.getInstance(),cS=function(){function e(){}return e.prototype.startSpan=function(t,n,i){i===void 0&&(i=zy.active());var o=!!(n!=null&&n.root);if(o)return new Rh;var l=i&&lS(i);return zV(l)&&uS(l)?new Rh(l):new Rh},e.prototype.startActiveSpan=function(t,n,i,o){var l,c,f;if(!(arguments.length<2)){arguments.length===2?f=n:arguments.length===3?(l=n,f=i):(l=n,c=i,f=o);var m=c!=null?c:zy.active(),v=this.startSpan(t,l,m),b=Py(m,v);return zy.with(b,f,void 0,v)}},e}();function zV(e){return typeof e=="object"&&typeof e.spanId=="string"&&typeof e.traceId=="string"&&typeof e.traceFlags=="number"}var jV=new cS,FV=function(){function e(t,n,i,o){this._provider=t,this.name=n,this.version=i,this.options=o}return e.prototype.startSpan=function(t,n,i){return this._getTracer().startSpan(t,n,i)},e.prototype.startActiveSpan=function(t,n,i,o){var l=this._getTracer();return Reflect.apply(l.startActiveSpan,l,arguments)},e.prototype._getTracer=function(){if(this._delegate)return this._delegate;var t=this._provider.getDelegateTracer(this.name,this.version,this.options);return t?(this._delegate=t,this._delegate):jV},e}(),UV=function(){function e(){}return e.prototype.getTracer=function(t,n,i){return new cS},e}(),HV=new UV,dS=function(){function e(){}return e.prototype.getTracer=function(t,n,i){var o;return(o=this.getDelegateTracer(t,n,i))!==null&&o!==void 0?o:new FV(this,t,n,i)},e.prototype.getDelegate=function(){var t;return(t=this._delegate)!==null&&t!==void 0?t:HV},e.prototype.setDelegate=function(t){this._delegate=t},e.prototype.getDelegateTracer=function(t,n,i){var o;return(o=this._delegate)===null||o===void 0?void 0:o.getTracer(t,n,i)},e}(),Ug;(function(e){e[e.UNSET=0]="UNSET",e[e.OK=1]="OK",e[e.ERROR=2]="ERROR"})(Ug||(Ug={})),Fg.getInstance(),Ws.instance();var VV=function(){function e(){}return e.prototype.getMeter=function(t,n,i){return fV},e}(),BV=new VV,jy="metrics",$V=function(){function e(){}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalMeterProvider=function(t){return Eh(jy,t,Ws.instance())},e.prototype.getMeterProvider=function(){return cd(jy)||BV},e.prototype.getMeter=function(t,n,i){return this.getMeterProvider().getMeter(t,n,i)},e.prototype.disable=function(){_h(jy,Ws.instance())},e}();$V.getInstance();var ZV=function(){function e(){}return e.prototype.inject=function(t,n){},e.prototype.extract=function(t,n){return t},e.prototype.fields=function(){return[]},e}(),Fy=iS("OpenTelemetry Baggage Key");function fS(e){return e.getValue(Fy)||void 0}function WV(){return fS(Fg.getInstance().active())}function qV(e,t){return e.setValue(Fy,t)}function GV(e){return e.deleteValue(Fy)}var Uy="propagation",YV=new ZV,JV=function(){function e(){this.createBaggage=tV,this.getBaggage=fS,this.getActiveBaggage=WV,this.setBaggage=qV,this.deleteBaggage=GV}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalPropagator=function(t){return Eh(Uy,t,Ws.instance())},e.prototype.inject=function(t,n,i){return i===void 0&&(i=xV),this._getGlobalPropagator().inject(t,n,i)},e.prototype.extract=function(t,n,i){return i===void 0&&(i=bV),this._getGlobalPropagator().extract(t,n,i)},e.prototype.fields=function(){return this._getGlobalPropagator().fields()},e.prototype.disable=function(){_h(Uy,Ws.instance())},e.prototype._getGlobalPropagator=function(){return cd(Uy)||YV},e}();JV.getInstance();var Hy="trace",KV=function(){function e(){this._proxyTracerProvider=new dS,this.wrapSpanContext=PV,this.isSpanContextValid=uS,this.deleteSpan=NV,this.getSpan=Dy,this.getActiveSpan=MV,this.getSpanContext=lS,this.setSpan=Py,this.setSpanContext=OV}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalTracerProvider=function(t){var n=Eh(Hy,this._proxyTracerProvider,Ws.instance());return n&&this._proxyTracerProvider.setDelegate(t),n},e.prototype.getTracerProvider=function(){return cd(Hy)||this._proxyTracerProvider},e.prototype.getTracer=function(t,n){return this.getTracerProvider().getTracer(t,n)},e.prototype.disable=function(){_h(Hy,Ws.instance()),this._proxyTracerProvider=new dS},e}(),XV=KV.getInstance(),QV=Object.defineProperty,eB=(e,t)=>{for(var n in t)QV(e,n,{get:t[n],enumerable:!0})},pS="AI_NoOutputSpecifiedError",hS=`vercel.ai.error.${pS}`,tB=Symbol.for(hS),mS,vS=class extends Jt{constructor({message:e="No output specified."}={}){super({name:pS,message:e}),this[mS]=!0}static isInstance(e){return Jt.hasMarker(e,hS)}};mS=tB;function nB(e){const t="AI SDK Warning:";switch(e.type){case"unsupported-setting":{let n=`${t} The "${e.setting}" setting is not supported by this model`;return e.details&&(n+=` - ${e.details}`),n}case"unsupported-tool":{const n="name"in e.tool?e.tool.name:"unknown tool";let i=`${t} The tool "${n}" is not supported by this model`;return e.details&&(i+=` - ${e.details}`),i}case"other":return`${t} ${e.message}`;default:return`${t} ${JSON.stringify(e,null,2)}`}}var rB="AI SDK Warning System: To turn off warning logging, set the AI_SDK_LOG_WARNINGS global to false.",gS=!1,yS=e=>{if(e.length===0)return;const t=globalThis.AI_SDK_LOG_WARNINGS;if(t!==!1){if(typeof t=="function"){t(e);return}gS||(gS=!0,console.info(rB));for(const n of e)console.warn(nB(n))}},wS="AI_InvalidArgumentError",bS=`vercel.ai.error.${wS}`,aB=Symbol.for(bS),xS,qs=class extends Jt{constructor({parameter:e,value:t,message:n}){super({name:wS,message:`Invalid argument for parameter ${e}: ${n}`}),this[xS]=!0,this.parameter=e,this.value=t}static isInstance(e){return Jt.hasMarker(e,bS)}};xS=aB;var CS="AI_InvalidToolInputError",SS=`vercel.ai.error.${CS}`,iB=Symbol.for(SS),kS,ES=class extends Jt{constructor({toolInput:e,toolName:t,cause:n,message:i=`Invalid input for tool ${t}: ${Hf(n)}`}){super({name:CS,message:i,cause:n}),this[kS]=!0,this.toolInput=e,this.toolName=t}static isInstance(e){return Jt.hasMarker(e,SS)}};kS=iB;var _S="AI_NoObjectGeneratedError",TS=`vercel.ai.error.${_S}`,oB=Symbol.for(TS),RS,MS=class extends Jt{constructor({message:e="No object generated.",cause:t,text:n,response:i,usage:o,finishReason:l}){super({name:_S,message:e,cause:t}),this[RS]=!0,this.text=n,this.response=i,this.usage=o,this.finishReason=l}static isInstance(e){return Jt.hasMarker(e,TS)}};RS=oB;var NS="AI_NoOutputGeneratedError",OS=`vercel.ai.error.${NS}`,sB=Symbol.for(OS),LS,lB=class extends Jt{constructor({message:e="No output generated.",cause:t}={}){super({name:NS,message:e,cause:t}),this[LS]=!0}static isInstance(e){return Jt.hasMarker(e,OS)}};LS=sB;var AS="AI_NoSuchToolError",IS=`vercel.ai.error.${AS}`,uB=Symbol.for(IS),DS,Vy=class extends Jt{constructor({toolName:e,availableTools:t=void 0,message:n=`Model tried to call unavailable tool '${e}'. ${t===void 0?"No tools are available.":`Available tools: ${t.join(", ")}.`}`}){super({name:AS,message:n}),this[DS]=!0,this.toolName=e,this.availableTools=t}static isInstance(e){return Jt.hasMarker(e,IS)}};DS=uB;var PS="AI_ToolCallRepairError",zS=`vercel.ai.error.${PS}`,cB=Symbol.for(zS),jS,dB=class extends Jt{constructor({cause:e,originalError:t,message:n=`Error repairing tool call: ${Hf(e)}`}){super({name:PS,message:n,cause:e}),this[jS]=!0,this.originalError=t}static isInstance(e){return Jt.hasMarker(e,zS)}};jS=cB;var fB=class extends Jt{constructor(e){super({name:"AI_UnsupportedModelVersionError",message:`Unsupported model version ${e.version} for provider "${e.provider}" and model "${e.modelId}". AI SDK 5 only supports models that implement specification version "v2".`}),this.version=e.version,this.provider=e.provider,this.modelId=e.modelId}},FS="AI_InvalidMessageRoleError",US=`vercel.ai.error.${FS}`,pB=Symbol.for(US),HS,hB=class extends Jt{constructor({role:e,message:t=`Invalid message role: '${e}'. Must be one of: "system", "user", "assistant", "tool".`}){super({name:FS,message:t}),this[HS]=!0,this.role=e}static isInstance(e){return Jt.hasMarker(e,US)}};HS=pB;var VS="AI_MessageConversionError",BS=`vercel.ai.error.${VS}`,mB=Symbol.for(BS),$S,vB=class extends Jt{constructor({originalMessage:e,message:t}){super({name:VS,message:t}),this[$S]=!0,this.originalMessage=e}static isInstance(e){return Jt.hasMarker(e,BS)}};$S=mB;var ZS="AI_DownloadError",WS=`vercel.ai.error.${ZS}`,gB=Symbol.for(WS),qS,By=class extends Jt{constructor({url:e,statusCode:t,statusText:n,cause:i,message:o=i==null?`Failed to download ${e}: ${t} ${n}`:`Failed to download ${e}: ${i}`}){super({name:ZS,message:o,cause:i}),this[qS]=!0,this.url=e,this.statusCode=t,this.statusText=n}static isInstance(e){return Jt.hasMarker(e,WS)}};qS=gB;var GS="AI_RetryError",YS=`vercel.ai.error.${GS}`,yB=Symbol.for(YS),JS,KS=class extends Jt{constructor({message:e,reason:t,errors:n}){super({name:GS,message:e}),this[JS]=!0,this.reason=t,this.errors=n,this.lastError=n[n.length-1]}static isInstance(e){return Jt.hasMarker(e,YS)}};JS=yB;function Hg(e){if(typeof e!="string"){if(e.specificationVersion!=="v2")throw new fB({version:e.specificationVersion,provider:e.provider,modelId:e.modelId});return e}return wB().languageModel(e)}function wB(){var e;return(e=globalThis.AI_SDK_DEFAULT_PROVIDER)!=null?e:FH}var bB=[{mediaType:"image/gif",bytesPrefix:[71,73,70]},{mediaType:"image/png",bytesPrefix:[137,80,78,71]},{mediaType:"image/jpeg",bytesPrefix:[255,216]},{mediaType:"image/webp",bytesPrefix:[82,73,70,70,null,null,null,null,87,69,66,80]},{mediaType:"image/bmp",bytesPrefix:[66,77]},{mediaType:"image/tiff",bytesPrefix:[73,73,42,0]},{mediaType:"image/tiff",bytesPrefix:[77,77,0,42]},{mediaType:"image/avif",bytesPrefix:[0,0,0,32,102,116,121,112,97,118,105,102]},{mediaType:"image/heic",bytesPrefix:[0,0,0,32,102,116,121,112,104,101,105,99]}],xB=e=>{const t=typeof e=="string"?Ey(e):e,n=(t[6]&127)<<21|(t[7]&127)<<14|(t[8]&127)<<7|t[9]&127;return t.slice(n+10)};function CB(e){return typeof e=="string"&&e.startsWith("SUQz")||typeof e!="string"&&e.length>10&&e[0]===73&&e[1]===68&&e[2]===51?xB(e):e}function SB({data:e,signatures:t}){const n=CB(e),i=typeof n=="string"?Ey(n.substring(0,Math.min(n.length,24))):n;for(const o of t)if(i.length>=o.bytesPrefix.length&&o.bytesPrefix.every((l,c)=>l===null||i[c]===l))return o.mediaType}var Vg="5.0.121",kB=async({url:e})=>{var t;const n=e.toString();try{const i=await fetch(n,{headers:Wu({},`ai-sdk/${Vg}`,Ch())});if(!i.ok)throw new By({url:n,statusCode:i.status,statusText:i.statusText});return{data:new Uint8Array(await i.arrayBuffer()),mediaType:(t=i.headers.get("content-type"))!=null?t:void 0}}catch(i){throw By.isInstance(i)?i:new By({url:n,cause:i})}},EB=(e=kB)=>t=>Promise.all(t.map(async n=>n.isUrlSupportedByModel?null:e(n)));function _B(e){try{const[t,n]=e.split(",");return{mediaType:t.split(";")[0].split(":")[1],base64Content:n}}catch(t){return{mediaType:void 0,base64Content:void 0}}}var XS=ua([ee(),Ng(Uint8Array),Ng(ArrayBuffer),iC(e=>{var t,n;return(n=(t=globalThis.Buffer)==null?void 0:t.isBuffer(e))!=null?n:!1},{message:"Must be a Buffer"})]);function QS(e){if(e instanceof Uint8Array)return{data:e,mediaType:void 0};if(e instanceof ArrayBuffer)return{data:new Uint8Array(e),mediaType:void 0};if(typeof e=="string")try{e=new URL(e)}catch(t){}if(e instanceof URL&&e.protocol==="data:"){const{mediaType:t,base64Content:n}=_B(e.toString());if(t==null||n==null)throw new Jt({name:"InvalidDataContentError",message:`Invalid data URL format in content ${e.toString()}`});return{data:n,mediaType:t}}return{data:e,mediaType:void 0}}function TB(e){return typeof e=="string"?e:e instanceof ArrayBuffer?_y(new Uint8Array(e)):_y(e)}async function ek({prompt:e,supportedUrls:t,download:n=EB()}){const i=await MB(e.messages,n,t);return[...e.system!=null?[{role:"system",content:e.system}]:[],...e.messages.map(o=>RB({message:o,downloadedAssets:i}))]}function RB({message:e,downloadedAssets:t}){const n=e.role;switch(n){case"system":return{role:"system",content:e.content,providerOptions:e.providerOptions};case"user":return typeof e.content=="string"?{role:"user",content:[{type:"text",text:e.content}],providerOptions:e.providerOptions}:{role:"user",content:e.content.map(i=>NB(i,t)).filter(i=>i.type!=="text"||i.text!==""),providerOptions:e.providerOptions};case"assistant":return typeof e.content=="string"?{role:"assistant",content:[{type:"text",text:e.content}],providerOptions:e.providerOptions}:{role:"assistant",content:e.content.filter(i=>i.type!=="text"||i.text!==""||i.providerOptions!=null).map(i=>{const o=i.providerOptions;switch(i.type){case"file":{const{data:l,mediaType:c}=QS(i.data);return{type:"file",data:l,filename:i.filename,mediaType:c!=null?c:i.mediaType,providerOptions:o}}case"reasoning":return{type:"reasoning",text:i.text,providerOptions:o};case"text":return{type:"text",text:i.text,providerOptions:o};case"tool-call":return{type:"tool-call",toolCallId:i.toolCallId,toolName:i.toolName,input:i.input,providerExecuted:i.providerExecuted,providerOptions:o};case"tool-result":return{type:"tool-result",toolCallId:i.toolCallId,toolName:i.toolName,output:i.output,providerOptions:o}}}),providerOptions:e.providerOptions};case"tool":return{role:"tool",content:e.content.map(i=>({type:"tool-result",toolCallId:i.toolCallId,toolName:i.toolName,output:i.output,providerOptions:i.providerOptions})),providerOptions:e.providerOptions};default:{const i=n;throw new hB({role:i})}}}async function MB(e,t,n){const i=e.filter(l=>l.role==="user").map(l=>l.content).filter(l=>Array.isArray(l)).flat().filter(l=>l.type==="image"||l.type==="file").map(l=>{var c;const f=(c=l.mediaType)!=null?c:l.type==="image"?"image/*":void 0;let m=l.type==="image"?l.image:l.data;if(typeof m=="string")try{m=new URL(m)}catch(v){}return{mediaType:f,data:m}}).filter(l=>l.data instanceof URL).map(l=>({url:l.data,isUrlSupportedByModel:l.mediaType!=null&&PF({url:l.data.toString(),mediaType:l.mediaType,supportedUrls:n})})),o=await t(i);return Object.fromEntries(o.map((l,c)=>l==null?null:[i[c].url.toString(),{data:l.data,mediaType:l.mediaType}]).filter(l=>l!=null))}function NB(e,t){var n;if(e.type==="text")return{type:"text",text:e.text,providerOptions:e.providerOptions};let i;const o=e.type;switch(o){case"image":i=e.image;break;case"file":i=e.data;break;default:throw new Error(`Unsupported part type: ${o}`)}const{data:l,mediaType:c}=QS(i);let f=c!=null?c:e.mediaType,m=l;if(m instanceof URL){const v=t[m.toString()];v&&(m=v.data,f!=null||(f=v.mediaType))}switch(o){case"image":return(m instanceof Uint8Array||typeof m=="string")&&(f=(n=SB({data:m,signatures:bB}))!=null?n:f),{type:"file",mediaType:f!=null?f:"image/*",filename:void 0,data:m,providerOptions:e.providerOptions};case"file":{if(f==null)throw new Error("Media type is missing for file part");return{type:"file",mediaType:f,filename:e.filename,data:m,providerOptions:e.providerOptions}}}}function $y({maxOutputTokens:e,temperature:t,topP:n,topK:i,presencePenalty:o,frequencyPenalty:l,seed:c,stopSequences:f}){if(e!=null){if(!Number.isInteger(e))throw new qs({parameter:"maxOutputTokens",value:e,message:"maxOutputTokens must be an integer"});if(e<1)throw new qs({parameter:"maxOutputTokens",value:e,message:"maxOutputTokens must be >= 1"})}if(t!=null&&typeof t!="number")throw new qs({parameter:"temperature",value:t,message:"temperature must be a number"});if(n!=null&&typeof n!="number")throw new qs({parameter:"topP",value:n,message:"topP must be a number"});if(i!=null&&typeof i!="number")throw new qs({parameter:"topK",value:i,message:"topK must be a number"});if(o!=null&&typeof o!="number")throw new qs({parameter:"presencePenalty",value:o,message:"presencePenalty must be a number"});if(l!=null&&typeof l!="number")throw new qs({parameter:"frequencyPenalty",value:l,message:"frequencyPenalty must be a number"});if(c!=null&&!Number.isInteger(c))throw new qs({parameter:"seed",value:c,message:"seed must be an integer"});return{maxOutputTokens:e,temperature:t,topP:n,topK:i,presencePenalty:o,frequencyPenalty:l,stopSequences:f,seed:c}}function OB(e){return e!=null&&Object.keys(e).length>0}function tk({tools:e,toolChoice:t,activeTools:n}){return OB(e)?{tools:(n!=null?Object.entries(e).filter(([o])=>n.includes(o)):Object.entries(e)).map(([o,l])=>{const c=l.type;switch(c){case void 0:case"dynamic":case"function":return{type:"function",name:o,description:l.description,inputSchema:zg(l.inputSchema).jsonSchema,providerOptions:l.providerOptions};case"provider-defined":return{type:"provider-defined",name:o,id:l.id,args:l.args};default:{const f=c;throw new Error(`Unsupported tool type: ${f}`)}}}),toolChoice:t==null?{type:"auto"}:typeof t=="string"?{type:t}:{type:"tool",toolName:t.toolName}}:{tools:void 0,toolChoice:void 0}}var Mh=NF(()=>ua([rF(),ee(),ar(),dn(),Yf(ee(),Mh),Fn(Mh)])),Gr=Yf(ee(),Yf(ee(),Mh)),nk=$e({type:$t("text"),text:ee(),providerOptions:Gr.optional()}),LB=$e({type:$t("image"),image:ua([XS,Ng(URL)]),mediaType:ee().optional(),providerOptions:Gr.optional()}),rk=$e({type:$t("file"),data:ua([XS,Ng(URL)]),filename:ee().optional(),mediaType:ee(),providerOptions:Gr.optional()}),AB=$e({type:$t("reasoning"),text:ee(),providerOptions:Gr.optional()}),IB=$e({type:$t("tool-call"),toolCallId:ee(),toolName:ee(),input:ji(),providerOptions:Gr.optional(),providerExecuted:dn().optional()}),DB=uF("type",[$e({type:$t("text"),value:ee()}),$e({type:$t("json"),value:Mh}),$e({type:$t("error-text"),value:ee()}),$e({type:$t("error-json"),value:Mh}),$e({type:$t("content"),value:Fn(ua([$e({type:$t("text"),text:ee()}),$e({type:$t("media"),data:ee(),mediaType:ee()})]))})]),ak=$e({type:$t("tool-result"),toolCallId:ee(),toolName:ee(),output:DB,providerOptions:Gr.optional()}),PB=$e({role:$t("system"),content:ee(),providerOptions:Gr.optional()}),zB=$e({role:$t("user"),content:ua([ee(),Fn(ua([nk,LB,rk]))]),providerOptions:Gr.optional()}),jB=$e({role:$t("assistant"),content:ua([ee(),Fn(ua([nk,rk,AB,IB,ak]))]),providerOptions:Gr.optional()}),FB=$e({role:$t("tool"),content:Fn(ak),providerOptions:Gr.optional()}),UB=ua([PB,zB,jB,FB]);async function ik(e){if(e.prompt==null&&e.messages==null)throw new Vf({prompt:e,message:"prompt or messages must be defined"});if(e.prompt!=null&&e.messages!=null)throw new Vf({prompt:e,message:"prompt and messages cannot be defined at the same time"});if(e.system!=null&&typeof e.system!="string")throw new Vf({prompt:e,message:"system must be a string"});let t;if(e.prompt!=null&&typeof e.prompt=="string")t=[{role:"user",content:e.prompt}];else if(e.prompt!=null&&Array.isArray(e.prompt))t=e.prompt;else if(e.messages!=null)t=e.messages;else throw new Vf({prompt:e,message:"prompt or messages must be defined"});if(t.length===0)throw new Vf({prompt:e,message:"messages must not be empty"});const n=await $l({value:t,schema:Fn(UB)});if(!n.success)throw new Vf({prompt:e,message:"The messages must be a ModelMessage[]. If you have passed a UIMessage[], you can use convertToModelMessages to convert them.",cause:n.error});return{messages:t,system:e.system}}function ok(e){if(!Ny.isInstance(e))return e;const t=(process==null?void 0:process.env.NODE_ENV)==="production",n="https://v5.ai-sdk.dev/unauthenticated-ai-gateway";return t?new Jt({name:"GatewayError",message:`Unauthenticated. Configure AI_GATEWAY_API_KEY or use a provider module. Learn more: ${n}`}):Object.assign(new Error(`\x1B[1m\x1B[31mUnauthenticated request to AI Gateway.\x1B[0m
338
+
339
+ To authenticate, set the \x1B[33mAI_GATEWAY_API_KEY\x1B[0m environment variable with your API key.
340
+
341
+ Alternatively, you can use a provider module instead of the AI Gateway.
342
+
343
+ Learn more: \x1B[34m${n}\x1B[0m
344
+
345
+ `),{name:"GatewayAuthenticationError"})}function ep({operationId:e,telemetry:t}){return{"operation.name":`${e}${(t==null?void 0:t.functionId)!=null?` ${t.functionId}`:""}`,"resource.name":t==null?void 0:t.functionId,"ai.operationId":e,"ai.telemetry.functionId":t==null?void 0:t.functionId}}function sk({model:e,settings:t,telemetry:n,headers:i}){var o;return{"ai.model.provider":e.provider,"ai.model.id":e.modelId,...Object.entries(t).reduce((l,[c,f])=>(l[`ai.settings.${c}`]=f,l),{}),...Object.entries((o=n==null?void 0:n.metadata)!=null?o:{}).reduce((l,[c,f])=>(l[`ai.telemetry.metadata.${c}`]=f,l),{}),...Object.entries(i!=null?i:{}).reduce((l,[c,f])=>(f!==void 0&&(l[`ai.request.headers.${c}`]=f),l),{})}}var HB={startSpan(){return Bg},startActiveSpan(e,t,n,i){if(typeof t=="function")return t(Bg);if(typeof n=="function")return n(Bg);if(typeof i=="function")return i(Bg)}},Bg={spanContext(){return VB},setAttribute(){return this},setAttributes(){return this},addEvent(){return this},addLink(){return this},addLinks(){return this},setStatus(){return this},updateName(){return this},end(){return this},isRecording(){return!1},recordException(){return this}},VB={traceId:"",spanId:"",traceFlags:0};function lk({isEnabled:e=!1,tracer:t}={}){return e?t||XV.getTracer("ai"):HB}function tp({name:e,tracer:t,attributes:n,fn:i,endWhenDone:o=!0}){return t.startActiveSpan(e,{attributes:n},async l=>{try{const c=await i(l);return o&&l.end(),c}catch(c){try{Zy(l,c)}finally{l.end()}throw c}})}function Zy(e,t){t instanceof Error?(e.recordException({name:t.name,message:t.message,stack:t.stack}),e.setStatus({code:Ug.ERROR,message:t.message})):e.setStatus({code:Ug.ERROR})}function Do({telemetry:e,attributes:t}){return(e==null?void 0:e.isEnabled)!==!0?{}:Object.entries(t).reduce((n,[i,o])=>{if(o==null)return n;if(typeof o=="object"&&"input"in o&&typeof o.input=="function"){if((e==null?void 0:e.recordInputs)===!1)return n;const l=o.input();return l==null?n:{...n,[i]:l}}if(typeof o=="object"&&"output"in o&&typeof o.output=="function"){if((e==null?void 0:e.recordOutputs)===!1)return n;const l=o.output();return l==null?n:{...n,[i]:l}}return{...n,[i]:o}},{})}function uk(e){return JSON.stringify(e.map(t=>({...t,content:typeof t.content=="string"?t.content:t.content.map(n=>n.type==="file"?{...n,data:n.data instanceof Uint8Array?TB(n.data):n.data}:n)})))}function ck(e,t){return{inputTokens:Nh(e.inputTokens,t.inputTokens),outputTokens:Nh(e.outputTokens,t.outputTokens),totalTokens:Nh(e.totalTokens,t.totalTokens),reasoningTokens:Nh(e.reasoningTokens,t.reasoningTokens),cachedInputTokens:Nh(e.cachedInputTokens,t.cachedInputTokens)}}function Nh(e,t){return e==null&&t==null?void 0:(e!=null?e:0)+(t!=null?t:0)}function Wy(e){return e===void 0?[]:Array.isArray(e)?e:[e]}function BB({error:e,exponentialBackoffDelay:t}){const n=e.responseHeaders;if(!n)return t;let i;const o=n["retry-after-ms"];if(o){const c=parseFloat(o);Number.isNaN(c)||(i=c)}const l=n["retry-after"];if(l&&i===void 0){const c=parseFloat(l);Number.isNaN(c)?i=Date.parse(l)-Date.now():i=c*1e3}return i!=null&&!Number.isNaN(i)&&0<=i&&(i<60*1e3||i<t)?i:t}var $B=({maxRetries:e=2,initialDelayInMs:t=2e3,backoffFactor:n=2,abortSignal:i}={})=>async o=>dk(o,{maxRetries:e,delayInMs:t,backoffFactor:n,abortSignal:i});async function dk(e,{maxRetries:t,delayInMs:n,backoffFactor:i,abortSignal:o},l=[]){try{return await e()}catch(c){if(ad(c)||t===0)throw c;const f=Ag(c),m=[...l,c],v=m.length;if(v>t)throw new KS({message:`Failed after ${v} attempts. Last error: ${f}`,reason:"maxRetriesExceeded",errors:m});if(c instanceof Error&&hi.isInstance(c)&&c.isRetryable===!0&&v<=t)return await AF(BB({error:c,exponentialBackoffDelay:n}),{abortSignal:o}),dk(e,{maxRetries:t,delayInMs:i*n,backoffFactor:i,abortSignal:o},m);throw v===1?c:new KS({message:`Failed after ${v} attempts with non-retryable error: '${f}'`,reason:"errorNotRetryable",errors:m})}}function fk({maxRetries:e,abortSignal:t}){if(e!=null){if(!Number.isInteger(e))throw new qs({parameter:"maxRetries",value:e,message:"maxRetries must be an integer"});if(e<0)throw new qs({parameter:"maxRetries",value:e,message:"maxRetries must be >= 0"})}const n=e!=null?e:2;return{maxRetries:n,retry:$B({maxRetries:n,abortSignal:t})}}function pk(e){const t=e.filter(n=>n.type==="text");if(t.length!==0)return t.map(n=>n.text).join("")}var hk=class{constructor({data:e,mediaType:t}){const n=e instanceof Uint8Array;this.base64Data=n?void 0:e,this.uint8ArrayData=n?e:void 0,this.mediaType=t}get base64(){return this.base64Data==null&&(this.base64Data=_y(this.uint8ArrayData)),this.base64Data}get uint8Array(){return this.uint8ArrayData==null&&(this.uint8ArrayData=Ey(this.base64Data)),this.uint8ArrayData}},ZB=class extends hk{constructor(e){super(e),this.type="file"}};async function mk({toolCall:e,tools:t,repairToolCall:n,system:i,messages:o}){try{if(t==null)throw new Vy({toolName:e.toolName});try{return await vk({toolCall:e,tools:t})}catch(l){if(n==null||!(Vy.isInstance(l)||ES.isInstance(l)))throw l;let c=null;try{c=await n({toolCall:e,tools:t,inputSchema:({toolName:f})=>{const{inputSchema:m}=t[f];return zg(m).jsonSchema},system:i,messages:o,error:l})}catch(f){throw new dB({cause:f,originalError:l})}if(c==null)throw l;return await vk({toolCall:c,tools:t})}}catch(l){const c=await sd({text:e.input}),f=c.success?c.value:e.input;return{type:"tool-call",toolCallId:e.toolCallId,toolName:e.toolName,input:f,dynamic:!0,invalid:!0,error:l,providerMetadata:e.providerMetadata}}}async function vk({toolCall:e,tools:t}){const n=e.toolName,i=t[n];if(i==null)throw new Vy({toolName:e.toolName,availableTools:Object.keys(t)});const o=zg(i.inputSchema),l=e.input.trim()===""?await $l({value:{},schema:o}):await sd({text:e.input,schema:o});if(l.success===!1)throw new ES({toolName:n,toolInput:e.input,cause:l.error});return i.type==="dynamic"?{type:"tool-call",toolCallId:e.toolCallId,toolName:e.toolName,input:l.value,providerExecuted:e.providerExecuted,providerMetadata:e.providerMetadata,dynamic:!0}:{type:"tool-call",toolCallId:e.toolCallId,toolName:n,input:l.value,providerExecuted:e.providerExecuted,providerMetadata:e.providerMetadata}}var gk=class{constructor({content:e,finishReason:t,usage:n,warnings:i,request:o,response:l,providerMetadata:c}){this.content=e,this.finishReason=t,this.usage=n,this.warnings=i,this.request=o,this.response=l,this.providerMetadata=c}get text(){return this.content.filter(e=>e.type==="text").map(e=>e.text).join("")}get reasoning(){return this.content.filter(e=>e.type==="reasoning")}get reasoningText(){return this.reasoning.length===0?void 0:this.reasoning.map(e=>e.text).join("")}get files(){return this.content.filter(e=>e.type==="file").map(e=>e.file)}get sources(){return this.content.filter(e=>e.type==="source")}get toolCalls(){return this.content.filter(e=>e.type==="tool-call")}get staticToolCalls(){return this.toolCalls.filter(e=>e.dynamic!==!0)}get dynamicToolCalls(){return this.toolCalls.filter(e=>e.dynamic===!0)}get toolResults(){return this.content.filter(e=>e.type==="tool-result")}get staticToolResults(){return this.toolResults.filter(e=>e.dynamic!==!0)}get dynamicToolResults(){return this.toolResults.filter(e=>e.dynamic===!0)}};function yk(e){return({steps:t})=>t.length===e}async function wk({stopConditions:e,steps:t}){return(await Promise.all(e.map(n=>n({steps:t})))).some(n=>n)}function Oh({output:e,tool:t,errorMode:n}){return n==="text"?{type:"error-text",value:Hf(e)}:n==="json"?{type:"error-json",value:bk(e)}:t!=null&&t.toModelOutput?t.toModelOutput(e):typeof e=="string"?{type:"text",value:e}:{type:"json",value:bk(e)}}function bk(e){return e===void 0?null:e}function qy({content:e,tools:t}){const n=[],i=e.filter(l=>l.type!=="source").filter(l=>(l.type!=="tool-result"||l.providerExecuted)&&(l.type!=="tool-error"||l.providerExecuted)).filter(l=>l.type!=="text"||l.text.length>0).map(l=>{switch(l.type){case"text":return{type:"text",text:l.text,providerOptions:l.providerMetadata};case"reasoning":return{type:"reasoning",text:l.text,providerOptions:l.providerMetadata};case"file":return{type:"file",data:l.file.base64,mediaType:l.file.mediaType,providerOptions:l.providerMetadata};case"tool-call":return{type:"tool-call",toolCallId:l.toolCallId,toolName:l.toolName,input:l.input,providerExecuted:l.providerExecuted,providerOptions:l.providerMetadata};case"tool-result":return{type:"tool-result",toolCallId:l.toolCallId,toolName:l.toolName,output:Oh({tool:t==null?void 0:t[l.toolName],output:l.output,errorMode:"none"}),providerExecuted:!0,providerOptions:l.providerMetadata};case"tool-error":return{type:"tool-result",toolCallId:l.toolCallId,toolName:l.toolName,output:Oh({tool:t==null?void 0:t[l.toolName],output:l.error,errorMode:"json"}),providerOptions:l.providerMetadata}}});i.length>0&&n.push({role:"assistant",content:i});const o=e.filter(l=>l.type==="tool-result"||l.type==="tool-error").filter(l=>!l.providerExecuted).map(l=>({type:"tool-result",toolCallId:l.toolCallId,toolName:l.toolName,output:Oh({tool:t==null?void 0:t[l.toolName],output:l.type==="tool-result"?l.output:l.error,errorMode:l.type==="tool-error"?"text":"none"}),...l.providerMetadata!=null?{providerOptions:l.providerMetadata}:{}}));return o.length>0&&n.push({role:"tool",content:o}),n}var WB=xh({prefix:"aitxt",size:24});async function qB({model:e,tools:t,toolChoice:n,system:i,prompt:o,messages:l,maxRetries:c,abortSignal:f,headers:m,stopWhen:v=yk(1),experimental_output:b,experimental_telemetry:y,providerOptions:S,experimental_activeTools:C,activeTools:R=C,experimental_prepareStep:M,prepareStep:L=M,experimental_repairToolCall:I,experimental_download:j,experimental_context:U,_internal:{generateId:P=WB,currentDate:Z=()=>new Date}={},onStepFinish:B,...W}){const G=Hg(e),se=Wy(v),{maxRetries:ke,retry:ve}=fk({maxRetries:c,abortSignal:f}),de=$y(W),ge=Wu(m!=null?m:{},`ai/${Vg}`),Re=sk({model:G,telemetry:y,headers:ge,settings:{...de,maxRetries:ke}}),be=await ik({system:i,prompt:o,messages:l}),Ie=lk(y);try{return await tp({name:"ai.generateText",attributes:Do({telemetry:y,attributes:{...ep({operationId:"ai.generateText",telemetry:y}),...Re,"ai.model.provider":G.provider,"ai.model.id":G.modelId,"ai.prompt":{input:()=>JSON.stringify({system:i,prompt:o,messages:l})}}}),tracer:Ie,fn:async ye=>{var Q,Ne,H,K,fe,$,Fe;const it=$y(W);let Be,Ee=[],Ze=[];const Je=[],We=[];do{const wt=[...be.messages,...Je],lt=await(L==null?void 0:L({model:G,steps:We,stepNumber:We.length,messages:wt})),vt=Hg((Q=lt==null?void 0:lt.model)!=null?Q:G),zt=await ek({prompt:{system:(Ne=lt==null?void 0:lt.system)!=null?Ne:be.system,messages:(H=lt==null?void 0:lt.messages)!=null?H:wt},supportedUrls:await vt.supportedUrls,download:j}),{toolChoice:Ct,tools:Dn}=tk({tools:t,toolChoice:(K=lt==null?void 0:lt.toolChoice)!=null?K:n,activeTools:(fe=lt==null?void 0:lt.activeTools)!=null?fe:R});Be=await ve(()=>{var Wt;return tp({name:"ai.generateText.doGenerate",attributes:Do({telemetry:y,attributes:{...ep({operationId:"ai.generateText.doGenerate",telemetry:y}),...Re,"ai.model.provider":vt.provider,"ai.model.id":vt.modelId,"ai.prompt.messages":{input:()=>uk(zt)},"ai.prompt.tools":{input:()=>Dn==null?void 0:Dn.map(pr=>JSON.stringify(pr))},"ai.prompt.toolChoice":{input:()=>Ct!=null?JSON.stringify(Ct):void 0},"gen_ai.system":vt.provider,"gen_ai.request.model":vt.modelId,"gen_ai.request.frequency_penalty":W.frequencyPenalty,"gen_ai.request.max_tokens":W.maxOutputTokens,"gen_ai.request.presence_penalty":W.presencePenalty,"gen_ai.request.stop_sequences":W.stopSequences,"gen_ai.request.temperature":(Wt=W.temperature)!=null?Wt:void 0,"gen_ai.request.top_k":W.topK,"gen_ai.request.top_p":W.topP}}),tracer:Ie,fn:async pr=>{var Vn,me,Me,ut,It,Te,qe,Nt;const gt=await vt.doGenerate({...it,tools:Dn,toolChoice:Ct,responseFormat:b==null?void 0:b.responseFormat,prompt:zt,providerOptions:S,abortSignal:f,headers:ge}),Xt={id:(me=(Vn=gt.response)==null?void 0:Vn.id)!=null?me:P(),timestamp:(ut=(Me=gt.response)==null?void 0:Me.timestamp)!=null?ut:Z(),modelId:(Te=(It=gt.response)==null?void 0:It.modelId)!=null?Te:vt.modelId,headers:(qe=gt.response)==null?void 0:qe.headers,body:(Nt=gt.response)==null?void 0:Nt.body};return pr.setAttributes(Do({telemetry:y,attributes:{"ai.response.finishReason":gt.finishReason,"ai.response.text":{output:()=>pk(gt.content)},"ai.response.toolCalls":{output:()=>{const sn=xk(gt.content);return sn==null?void 0:JSON.stringify(sn)}},"ai.response.id":Xt.id,"ai.response.model":Xt.modelId,"ai.response.timestamp":Xt.timestamp.toISOString(),"ai.response.providerMetadata":JSON.stringify(gt.providerMetadata),"ai.usage.promptTokens":gt.usage.inputTokens,"ai.usage.completionTokens":gt.usage.outputTokens,"gen_ai.response.finish_reasons":[gt.finishReason],"gen_ai.response.id":Xt.id,"gen_ai.response.model":Xt.modelId,"gen_ai.usage.input_tokens":gt.usage.inputTokens,"gen_ai.usage.output_tokens":gt.usage.outputTokens}})),{...gt,response:Xt}}})});const Hn=await Promise.all(Be.content.filter(Wt=>Wt.type==="tool-call").map(Wt=>mk({toolCall:Wt,tools:t,repairToolCall:I,system:i,messages:wt})));for(const Wt of Hn){if(Wt.invalid)continue;const pr=t[Wt.toolName];(pr==null?void 0:pr.onInputAvailable)!=null&&await pr.onInputAvailable({input:Wt.input,toolCallId:Wt.toolCallId,messages:wt,abortSignal:f,experimental_context:U})}const Ue=Hn.filter(Wt=>Wt.invalid&&Wt.dynamic);Ze=[];for(const Wt of Ue)Ze.push({type:"tool-error",toolCallId:Wt.toolCallId,toolName:Wt.toolName,input:Wt.input,error:Ag(Wt.error),dynamic:!0});Ee=Hn.filter(Wt=>!Wt.providerExecuted),t!=null&&Ze.push(...await GB({toolCalls:Ee.filter(Wt=>!Wt.invalid),tools:t,tracer:Ie,telemetry:y,messages:wt,abortSignal:f,experimental_context:U}));const Mt=JB({content:Be.content,toolCalls:Hn,toolOutputs:Ze});Je.push(...qy({content:Mt,tools:t}));const Pn=new gk({content:Mt,finishReason:Be.finishReason,usage:Be.usage,warnings:Be.warnings,providerMetadata:Be.providerMetadata,request:($=Be.request)!=null?$:{},response:{...Be.response,messages:structuredClone(Je)}});yS((Fe=Be.warnings)!=null?Fe:[]),We.push(Pn),await(B==null?void 0:B(Pn))}while(Ee.length>0&&Ze.length===Ee.length&&!await wk({stopConditions:se,steps:We}));ye.setAttributes(Do({telemetry:y,attributes:{"ai.response.finishReason":Be.finishReason,"ai.response.text":{output:()=>pk(Be.content)},"ai.response.toolCalls":{output:()=>{const wt=xk(Be.content);return wt==null?void 0:JSON.stringify(wt)}},"ai.response.providerMetadata":JSON.stringify(Be.providerMetadata),"ai.usage.promptTokens":Be.usage.inputTokens,"ai.usage.completionTokens":Be.usage.outputTokens}}));const Xe=We[We.length-1];let Et;return Xe.finishReason==="stop"&&(Et=await(b==null?void 0:b.parseOutput({text:Xe.text},{response:Xe.response,usage:Xe.usage,finishReason:Xe.finishReason}))),new YB({steps:We,resolvedOutput:Et})}})}catch(ye){throw ok(ye)}}async function GB({toolCalls:e,tools:t,tracer:n,telemetry:i,messages:o,abortSignal:l,experimental_context:c}){return(await Promise.all(e.map(async({toolCallId:m,toolName:v,input:b})=>{const y=t[v];if((y==null?void 0:y.execute)!=null)return tp({name:"ai.toolCall",attributes:Do({telemetry:i,attributes:{...ep({operationId:"ai.toolCall",telemetry:i}),"ai.toolCall.name":v,"ai.toolCall.id":m,"ai.toolCall.args":{output:()=>JSON.stringify(b)}}}),tracer:n,fn:async S=>{try{const C=SC({execute:y.execute.bind(y),input:b,options:{toolCallId:m,messages:o,abortSignal:l,experimental_context:c}});let R;for await(const M of C)M.type==="final"&&(R=M.output);try{S.setAttributes(Do({telemetry:i,attributes:{"ai.toolCall.result":{output:()=>JSON.stringify(R)}}}))}catch(M){}return{type:"tool-result",toolCallId:m,toolName:v,input:b,output:R,dynamic:y.type==="dynamic"}}catch(C){return Zy(S,C),{type:"tool-error",toolCallId:m,toolName:v,input:b,error:C,dynamic:y.type==="dynamic"}}}})}))).filter(m=>m!=null)}var YB=class{constructor(e){this.steps=e.steps,this.resolvedOutput=e.resolvedOutput}get finalStep(){return this.steps[this.steps.length-1]}get content(){return this.finalStep.content}get text(){return this.finalStep.text}get files(){return this.finalStep.files}get reasoningText(){return this.finalStep.reasoningText}get reasoning(){return this.finalStep.reasoning}get toolCalls(){return this.finalStep.toolCalls}get staticToolCalls(){return this.finalStep.staticToolCalls}get dynamicToolCalls(){return this.finalStep.dynamicToolCalls}get toolResults(){return this.finalStep.toolResults}get staticToolResults(){return this.finalStep.staticToolResults}get dynamicToolResults(){return this.finalStep.dynamicToolResults}get sources(){return this.finalStep.sources}get finishReason(){return this.finalStep.finishReason}get warnings(){return this.finalStep.warnings}get providerMetadata(){return this.finalStep.providerMetadata}get response(){return this.finalStep.response}get request(){return this.finalStep.request}get usage(){return this.finalStep.usage}get totalUsage(){return this.steps.reduce((e,t)=>ck(e,t.usage),{inputTokens:void 0,outputTokens:void 0,totalTokens:void 0,reasoningTokens:void 0,cachedInputTokens:void 0})}get experimental_output(){if(this.resolvedOutput==null)throw new vS;return this.resolvedOutput}};function xk(e){const t=e.filter(n=>n.type==="tool-call");if(t.length!==0)return t.map(n=>({toolCallId:n.toolCallId,toolName:n.toolName,input:n.input}))}function JB({content:e,toolCalls:t,toolOutputs:n}){return[...e.map(i=>{switch(i.type){case"text":case"reasoning":case"source":return i;case"file":return{type:"file",file:new hk(i)};case"tool-call":return t.find(o=>o.toolCallId===i.toolCallId);case"tool-result":{const o=t.find(l=>l.toolCallId===i.toolCallId);if(o==null)throw new Error(`Tool call ${i.toolCallId} not found.`);return i.isError?{type:"tool-error",toolCallId:i.toolCallId,toolName:i.toolName,input:o.input,error:i.result,providerExecuted:!0,dynamic:o.dynamic}:{type:"tool-result",toolCallId:i.toolCallId,toolName:i.toolName,input:o.input,output:i.result,providerExecuted:!0,dynamic:o.dynamic}}}}),...n]}function $g(e,t){const n=new Headers(e!=null?e:{});for(const[i,o]of Object.entries(t))n.has(i)||n.set(i,o);return n}function KB({status:e,statusText:t,headers:n,textStream:i}){return new Response(i.pipeThrough(new TextEncoderStream),{status:e!=null?e:200,statusText:t,headers:$g(n,{"content-type":"text/plain; charset=utf-8"})})}function Ck({response:e,status:t,statusText:n,headers:i,stream:o}){const l=t!=null?t:200;n!==void 0?e.writeHead(l,n,i):e.writeHead(l,i);const c=o.getReader();(async()=>{try{for(;;){const{done:m,value:v}=await c.read();if(m)break;e.write(v)||await new Promise(y=>{e.once("drain",y)})}}catch(m){throw m}finally{e.end()}})()}function XB({response:e,status:t,statusText:n,headers:i,textStream:o}){Ck({response:e,status:t,statusText:n,headers:Object.fromEntries($g(i,{"content-type":"text/plain; charset=utf-8"}).entries()),stream:o.pipeThrough(new TextEncoderStream)})}var Sk=class extends TransformStream{constructor(){super({transform(e,t){t.enqueue(`data: ${JSON.stringify(e)}
346
+
347
+ `)},flush(e){e.enqueue(`data: [DONE]
348
+
349
+ `)}})}},kk={"content-type":"text/event-stream","cache-control":"no-cache",connection:"keep-alive","x-vercel-ai-ui-message-stream":"v1","x-accel-buffering":"no"};function Ek({status:e,statusText:t,headers:n,stream:i,consumeSseStream:o}){let l=i.pipeThrough(new Sk);if(o){const[c,f]=l.tee();l=c,o({stream:f})}return new Response(l.pipeThrough(new TextEncoderStream),{status:e,statusText:t,headers:$g(n,kk)})}function QB({originalMessages:e,responseMessageId:t}){if(e==null)return;const n=e[e.length-1];return(n==null?void 0:n.role)==="assistant"?n.id:typeof t=="function"?t():t}var e$=od(()=>ds(ua([Tr({type:$t("text-start"),id:ee(),providerMetadata:Gr.optional()}),Tr({type:$t("text-delta"),id:ee(),delta:ee(),providerMetadata:Gr.optional()}),Tr({type:$t("text-end"),id:ee(),providerMetadata:Gr.optional()}),Tr({type:$t("error"),errorText:ee()}),Tr({type:$t("tool-input-start"),toolCallId:ee(),toolName:ee(),providerExecuted:dn().optional(),dynamic:dn().optional()}),Tr({type:$t("tool-input-delta"),toolCallId:ee(),inputTextDelta:ee()}),Tr({type:$t("tool-input-available"),toolCallId:ee(),toolName:ee(),input:ji(),providerExecuted:dn().optional(),providerMetadata:Gr.optional(),dynamic:dn().optional()}),Tr({type:$t("tool-input-error"),toolCallId:ee(),toolName:ee(),input:ji(),providerExecuted:dn().optional(),providerMetadata:Gr.optional(),dynamic:dn().optional(),errorText:ee()}),Tr({type:$t("tool-output-available"),toolCallId:ee(),output:ji(),providerExecuted:dn().optional(),dynamic:dn().optional(),preliminary:dn().optional()}),Tr({type:$t("tool-output-error"),toolCallId:ee(),errorText:ee(),providerExecuted:dn().optional(),dynamic:dn().optional()}),Tr({type:$t("reasoning-start"),id:ee(),providerMetadata:Gr.optional()}),Tr({type:$t("reasoning-delta"),id:ee(),delta:ee(),providerMetadata:Gr.optional()}),Tr({type:$t("reasoning-end"),id:ee(),providerMetadata:Gr.optional()}),Tr({type:$t("source-url"),sourceId:ee(),url:ee(),title:ee().optional(),providerMetadata:Gr.optional()}),Tr({type:$t("source-document"),sourceId:ee(),mediaType:ee(),title:ee(),filename:ee().optional(),providerMetadata:Gr.optional()}),Tr({type:$t("file"),url:ee(),mediaType:ee(),providerMetadata:Gr.optional()}),Tr({type:iC(e=>typeof e=="string"&&e.startsWith("data-"),{message:'Type must start with "data-"'}),id:ee().optional(),data:ji(),transient:dn().optional()}),Tr({type:$t("start-step")}),Tr({type:$t("finish-step")}),Tr({type:$t("start"),messageId:ee().optional(),messageMetadata:ji().optional()}),Tr({type:$t("finish"),finishReason:mn(["stop","length","content-filter","tool-calls","error","other","unknown"]).optional(),messageMetadata:ji().optional()}),Tr({type:$t("abort")}),Tr({type:$t("message-metadata"),messageMetadata:ji()})])));function t$(e){return e.type.startsWith("data-")}function _k(e,t){if(e===void 0&&t===void 0)return;if(e===void 0)return t;if(t===void 0)return e;const n={...e};for(const i in t)if(Object.prototype.hasOwnProperty.call(t,i)){const o=t[i];if(o===void 0)continue;const l=i in e?e[i]:void 0,c=o!==null&&typeof o=="object"&&!Array.isArray(o)&&!(o instanceof Date)&&!(o instanceof RegExp),f=l!=null&&typeof l=="object"&&!Array.isArray(l)&&!(l instanceof Date)&&!(l instanceof RegExp);c&&f?n[i]=_k(l,o):n[i]=o}return n}function n$(e){const t=["ROOT"];let n=-1,i=null;function o(m,v,b){switch(m){case'"':{n=v,t.pop(),t.push(b),t.push("INSIDE_STRING");break}case"f":case"t":case"n":{n=v,i=v,t.pop(),t.push(b),t.push("INSIDE_LITERAL");break}case"-":{t.pop(),t.push(b),t.push("INSIDE_NUMBER");break}case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":{n=v,t.pop(),t.push(b),t.push("INSIDE_NUMBER");break}case"{":{n=v,t.pop(),t.push(b),t.push("INSIDE_OBJECT_START");break}case"[":{n=v,t.pop(),t.push(b),t.push("INSIDE_ARRAY_START");break}}}function l(m,v){switch(m){case",":{t.pop(),t.push("INSIDE_OBJECT_AFTER_COMMA");break}case"}":{n=v,t.pop();break}}}function c(m,v){switch(m){case",":{t.pop(),t.push("INSIDE_ARRAY_AFTER_COMMA");break}case"]":{n=v,t.pop();break}}}for(let m=0;m<e.length;m++){const v=e[m];switch(t[t.length-1]){case"ROOT":o(v,m,"FINISH");break;case"INSIDE_OBJECT_START":{switch(v){case'"':{t.pop(),t.push("INSIDE_OBJECT_KEY");break}case"}":{n=m,t.pop();break}}break}case"INSIDE_OBJECT_AFTER_COMMA":{switch(v){case'"':{t.pop(),t.push("INSIDE_OBJECT_KEY");break}}break}case"INSIDE_OBJECT_KEY":{switch(v){case'"':{t.pop(),t.push("INSIDE_OBJECT_AFTER_KEY");break}}break}case"INSIDE_OBJECT_AFTER_KEY":{switch(v){case":":{t.pop(),t.push("INSIDE_OBJECT_BEFORE_VALUE");break}}break}case"INSIDE_OBJECT_BEFORE_VALUE":{o(v,m,"INSIDE_OBJECT_AFTER_VALUE");break}case"INSIDE_OBJECT_AFTER_VALUE":{l(v,m);break}case"INSIDE_STRING":{switch(v){case'"':{t.pop(),n=m;break}case"\\":{t.push("INSIDE_STRING_ESCAPE");break}default:n=m}break}case"INSIDE_ARRAY_START":{switch(v){case"]":{n=m,t.pop();break}default:{n=m,o(v,m,"INSIDE_ARRAY_AFTER_VALUE");break}}break}case"INSIDE_ARRAY_AFTER_VALUE":{switch(v){case",":{t.pop(),t.push("INSIDE_ARRAY_AFTER_COMMA");break}case"]":{n=m,t.pop();break}default:{n=m;break}}break}case"INSIDE_ARRAY_AFTER_COMMA":{o(v,m,"INSIDE_ARRAY_AFTER_VALUE");break}case"INSIDE_STRING_ESCAPE":{t.pop(),n=m;break}case"INSIDE_NUMBER":{switch(v){case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":{n=m;break}case"e":case"E":case"-":case".":break;case",":{t.pop(),t[t.length-1]==="INSIDE_ARRAY_AFTER_VALUE"&&c(v,m),t[t.length-1]==="INSIDE_OBJECT_AFTER_VALUE"&&l(v,m);break}case"}":{t.pop(),t[t.length-1]==="INSIDE_OBJECT_AFTER_VALUE"&&l(v,m);break}case"]":{t.pop(),t[t.length-1]==="INSIDE_ARRAY_AFTER_VALUE"&&c(v,m);break}default:{t.pop();break}}break}case"INSIDE_LITERAL":{const y=e.substring(i,m+1);!"false".startsWith(y)&&!"true".startsWith(y)&&!"null".startsWith(y)?(t.pop(),t[t.length-1]==="INSIDE_OBJECT_AFTER_VALUE"?l(v,m):t[t.length-1]==="INSIDE_ARRAY_AFTER_VALUE"&&c(v,m)):n=m;break}}}let f=e.slice(0,n+1);for(let m=t.length-1;m>=0;m--)switch(t[m]){case"INSIDE_STRING":{f+='"';break}case"INSIDE_OBJECT_KEY":case"INSIDE_OBJECT_AFTER_KEY":case"INSIDE_OBJECT_AFTER_COMMA":case"INSIDE_OBJECT_START":case"INSIDE_OBJECT_BEFORE_VALUE":case"INSIDE_OBJECT_AFTER_VALUE":{f+="}";break}case"INSIDE_ARRAY_START":case"INSIDE_ARRAY_AFTER_COMMA":case"INSIDE_ARRAY_AFTER_VALUE":{f+="]";break}case"INSIDE_LITERAL":{const b=e.substring(i,e.length);"true".startsWith(b)?f+="true".slice(b.length):"false".startsWith(b)?f+="false".slice(b.length):"null".startsWith(b)&&(f+="null".slice(b.length))}}return f}async function Tk(e){if(e===void 0)return{value:void 0,state:"undefined-input"};let t=await sd({text:e});return t.success?{value:t.value,state:"successful-parse"}:(t=await sd({text:n$(e)}),t.success?{value:t.value,state:"repaired-parse"}:{value:void 0,state:"failed-parse"})}function Gy(e){return e.type.startsWith("data-")}function Yy(e){return e.type==="text"}function Jy(e){return e.type==="file"}function Rk(e){return e.type==="reasoning"}function fd(e){return e.type.startsWith("tool-")}function Ky(e){return e.type==="dynamic-tool"}function Zg(e){return fd(e)||Ky(e)}function Lh(e){return e.type.split("-").slice(1).join("-")}function r$(e){return Ky(e)?e.toolName:Lh(e)}function Mk({lastMessage:e,messageId:t}){return{message:(e==null?void 0:e.role)==="assistant"?e:{id:t,metadata:void 0,role:"assistant",parts:[]},activeTextParts:{},activeReasoningParts:{},partialToolCalls:{}}}function Nk({stream:e,messageMetadataSchema:t,dataPartSchemas:n,runUpdateMessageJob:i,onError:o,onToolCall:l,onData:c}){return e.pipeThrough(new TransformStream({async transform(f,m){await i(async({state:v,write:b})=>{var y,S,C,R;function M(P){const B=v.message.parts.filter(fd).find(W=>W.toolCallId===P);if(B==null)throw new Error("tool-output-error must be preceded by a tool-input-available");return B}function L(P){const B=v.message.parts.filter(W=>W.type==="dynamic-tool").find(W=>W.toolCallId===P);if(B==null)throw new Error("tool-output-error must be preceded by a tool-input-available");return B}function I(P){var Z;const B=v.message.parts.find(se=>fd(se)&&se.toolCallId===P.toolCallId),W=P,G=B;B!=null?(B.state=P.state,G.input=W.input,G.output=W.output,G.errorText=W.errorText,G.rawInput=W.rawInput,G.preliminary=W.preliminary,G.providerExecuted=(Z=W.providerExecuted)!=null?Z:B.providerExecuted,W.providerMetadata!=null&&B.state==="input-available"&&(B.callProviderMetadata=W.providerMetadata)):v.message.parts.push({type:`tool-${P.toolName}`,toolCallId:P.toolCallId,state:P.state,input:W.input,output:W.output,rawInput:W.rawInput,errorText:W.errorText,providerExecuted:W.providerExecuted,preliminary:W.preliminary,...W.providerMetadata!=null?{callProviderMetadata:W.providerMetadata}:{}})}function j(P){var Z,B;const W=v.message.parts.find(ke=>ke.type==="dynamic-tool"&&ke.toolCallId===P.toolCallId),G=P,se=W;W!=null?(W.state=P.state,se.toolName=P.toolName,se.input=G.input,se.output=G.output,se.errorText=G.errorText,se.rawInput=(Z=G.rawInput)!=null?Z:se.rawInput,se.preliminary=G.preliminary,se.providerExecuted=(B=G.providerExecuted)!=null?B:W.providerExecuted,G.providerMetadata!=null&&W.state==="input-available"&&(W.callProviderMetadata=G.providerMetadata)):v.message.parts.push({type:"dynamic-tool",toolName:P.toolName,toolCallId:P.toolCallId,state:P.state,input:G.input,output:G.output,errorText:G.errorText,preliminary:G.preliminary,providerExecuted:G.providerExecuted,...G.providerMetadata!=null?{callProviderMetadata:G.providerMetadata}:{}})}async function U(P){if(P!=null){const Z=v.message.metadata!=null?_k(v.message.metadata,P):P;t!=null&&await yy({value:Z,schema:t}),v.message.metadata=Z}}switch(f.type){case"text-start":{const P={type:"text",text:"",providerMetadata:f.providerMetadata,state:"streaming"};v.activeTextParts[f.id]=P,v.message.parts.push(P),b();break}case"text-delta":{const P=v.activeTextParts[f.id];P.text+=f.delta,P.providerMetadata=(y=f.providerMetadata)!=null?y:P.providerMetadata,b();break}case"text-end":{const P=v.activeTextParts[f.id];P.state="done",P.providerMetadata=(S=f.providerMetadata)!=null?S:P.providerMetadata,delete v.activeTextParts[f.id],b();break}case"reasoning-start":{const P={type:"reasoning",text:"",providerMetadata:f.providerMetadata,state:"streaming"};v.activeReasoningParts[f.id]=P,v.message.parts.push(P),b();break}case"reasoning-delta":{const P=v.activeReasoningParts[f.id];P.text+=f.delta,P.providerMetadata=(C=f.providerMetadata)!=null?C:P.providerMetadata,b();break}case"reasoning-end":{const P=v.activeReasoningParts[f.id];P.providerMetadata=(R=f.providerMetadata)!=null?R:P.providerMetadata,P.state="done",delete v.activeReasoningParts[f.id],b();break}case"file":{v.message.parts.push({type:"file",mediaType:f.mediaType,url:f.url}),b();break}case"source-url":{v.message.parts.push({type:"source-url",sourceId:f.sourceId,url:f.url,title:f.title,providerMetadata:f.providerMetadata}),b();break}case"source-document":{v.message.parts.push({type:"source-document",sourceId:f.sourceId,mediaType:f.mediaType,title:f.title,filename:f.filename,providerMetadata:f.providerMetadata}),b();break}case"tool-input-start":{const P=v.message.parts.filter(fd);v.partialToolCalls[f.toolCallId]={text:"",toolName:f.toolName,index:P.length,dynamic:f.dynamic},f.dynamic?j({toolCallId:f.toolCallId,toolName:f.toolName,state:"input-streaming",input:void 0,providerExecuted:f.providerExecuted}):I({toolCallId:f.toolCallId,toolName:f.toolName,state:"input-streaming",input:void 0,providerExecuted:f.providerExecuted}),b();break}case"tool-input-delta":{const P=v.partialToolCalls[f.toolCallId];P.text+=f.inputTextDelta;const{value:Z}=await Tk(P.text);P.dynamic?j({toolCallId:f.toolCallId,toolName:P.toolName,state:"input-streaming",input:Z}):I({toolCallId:f.toolCallId,toolName:P.toolName,state:"input-streaming",input:Z}),b();break}case"tool-input-available":{f.dynamic?j({toolCallId:f.toolCallId,toolName:f.toolName,state:"input-available",input:f.input,providerExecuted:f.providerExecuted,providerMetadata:f.providerMetadata}):I({toolCallId:f.toolCallId,toolName:f.toolName,state:"input-available",input:f.input,providerExecuted:f.providerExecuted,providerMetadata:f.providerMetadata}),b(),l&&!f.providerExecuted&&await l({toolCall:f});break}case"tool-input-error":{f.dynamic?j({toolCallId:f.toolCallId,toolName:f.toolName,state:"output-error",input:f.input,errorText:f.errorText,providerExecuted:f.providerExecuted,providerMetadata:f.providerMetadata}):I({toolCallId:f.toolCallId,toolName:f.toolName,state:"output-error",input:void 0,rawInput:f.input,errorText:f.errorText,providerExecuted:f.providerExecuted,providerMetadata:f.providerMetadata}),b();break}case"tool-output-available":{if(f.dynamic){const P=L(f.toolCallId);j({toolCallId:f.toolCallId,toolName:P.toolName,state:"output-available",input:P.input,output:f.output,preliminary:f.preliminary})}else{const P=M(f.toolCallId);I({toolCallId:f.toolCallId,toolName:Lh(P),state:"output-available",input:P.input,output:f.output,providerExecuted:f.providerExecuted,preliminary:f.preliminary})}b();break}case"tool-output-error":{if(f.dynamic){const P=L(f.toolCallId);j({toolCallId:f.toolCallId,toolName:P.toolName,state:"output-error",input:P.input,errorText:f.errorText,providerExecuted:f.providerExecuted})}else{const P=M(f.toolCallId);I({toolCallId:f.toolCallId,toolName:Lh(P),state:"output-error",input:P.input,rawInput:P.rawInput,errorText:f.errorText,providerExecuted:f.providerExecuted})}b();break}case"start-step":{v.message.parts.push({type:"step-start"});break}case"finish-step":{v.activeTextParts={},v.activeReasoningParts={};break}case"start":{f.messageId!=null&&(v.message.id=f.messageId),await U(f.messageMetadata),(f.messageId!=null||f.messageMetadata!=null)&&b();break}case"finish":{f.finishReason!=null&&(v.finishReason=f.finishReason),await U(f.messageMetadata),f.messageMetadata!=null&&b();break}case"message-metadata":{await U(f.messageMetadata),f.messageMetadata!=null&&b();break}case"error":{o==null||o(new Error(f.errorText));break}default:if(t$(f)){(n==null?void 0:n[f.type])!=null&&await yy({value:f.data,schema:n[f.type]});const P=f;if(P.transient){c==null||c(P);break}const Z=P.id!=null?v.message.parts.find(B=>P.type===B.type&&P.id===B.id):void 0;Z!=null?Z.data=P.data:v.message.parts.push(P),c==null||c(P),b()}}m.enqueue(f)})}}))}function Ok({messageId:e,originalMessages:t=[],onFinish:n,onError:i,stream:o}){let l=t==null?void 0:t[t.length-1];(l==null?void 0:l.role)!=="assistant"?l=void 0:e=l.id;let c=!1;const f=o.pipeThrough(new TransformStream({transform(S,C){if(S.type==="start"){const R=S;R.messageId==null&&e!=null&&(R.messageId=e)}S.type==="abort"&&(c=!0),C.enqueue(S)}}));if(n==null)return f;const m=Mk({lastMessage:l?structuredClone(l):void 0,messageId:e!=null?e:""}),v=async S=>{await S({state:m,write:()=>{}})};let b=!1;const y=async()=>{if(b||!n)return;b=!0;const S=m.message.id===(l==null?void 0:l.id);await n({isAborted:c,isContinuation:S,responseMessage:m.message,messages:[...S?t.slice(0,-1):t,m.message],finishReason:m.finishReason})};return Nk({stream:f,runUpdateMessageJob:v,onError:i}).pipeThrough(new TransformStream({transform(S,C){C.enqueue(S)},async cancel(){await y()},async flush(){await y()}}))}function a$({response:e,status:t,statusText:n,headers:i,stream:o,consumeSseStream:l}){let c=o.pipeThrough(new Sk);if(l){const[f,m]=c.tee();c=f,l({stream:m})}Ck({response:e,status:t,statusText:n,headers:Object.fromEntries($g(i,kk).entries()),stream:c.pipeThrough(new TextEncoderStream)})}function Wg(e){const t=e.pipeThrough(new TransformStream);return t[Symbol.asyncIterator]=function(){const n=this.getReader();let i=!1;async function o(l){var c;i=!0;try{l&&await((c=n.cancel)==null?void 0:c.call(n))}finally{try{n.releaseLock()}catch(f){}}}return{async next(){if(i)return{done:!0,value:void 0};const{done:l,value:c}=await n.read();return l?(await o(!0),{done:!0,value:void 0}):{done:!1,value:c}},async return(){return await o(!0),{done:!0,value:void 0}},async throw(l){throw await o(!0),l}}},t}async function Lk({stream:e,onError:t}){const n=e.getReader();try{for(;;){const{done:i}=await n.read();if(i)break}}catch(i){t==null||t(i)}finally{n.releaseLock()}}function Ak(){let e,t;return{promise:new Promise((i,o)=>{e=i,t=o}),resolve:e,reject:t}}function i$(){let e=[],t=null,n=!1,i=Ak();const o=()=>{n=!0,i.resolve(),e.forEach(c=>c.cancel()),e=[],t==null||t.close()},l=async()=>{if(n&&e.length===0){t==null||t.close();return}if(e.length===0)return i=Ak(),await i.promise,l();try{const{value:c,done:f}=await e[0].read();f?(e.shift(),e.length>0?await l():n&&(t==null||t.close())):t==null||t.enqueue(c)}catch(c){t==null||t.error(c),e.shift(),o()}};return{stream:new ReadableStream({start(c){t=c},pull:l,async cancel(){for(const c of e)await c.cancel();e=[],n=!0}}),addStream:c=>{if(n)throw new Error("Cannot add inner stream: outer stream is closed");e.push(c.getReader()),i.resolve()},close:()=>{n=!0,i.resolve(),e.length===0&&(t==null||t.close())},terminate:o}}function o$(){var e,t;return(t=(e=globalThis==null?void 0:globalThis.performance)==null?void 0:e.now())!=null?t:Date.now()}function s$({tools:e,generatorStream:t,tracer:n,telemetry:i,system:o,messages:l,abortSignal:c,repairToolCall:f,experimental_context:m}){let v=null;const b=new ReadableStream({start(I){v=I}}),y=new Set,S=new Map;let C=!1,R;function M(){C&&y.size===0&&(R!=null&&v.enqueue(R),v.close())}const L=new TransformStream({async transform(I,j){const U=I.type;switch(U){case"stream-start":case"text-start":case"text-delta":case"text-end":case"reasoning-start":case"reasoning-delta":case"reasoning-end":case"tool-input-start":case"tool-input-delta":case"tool-input-end":case"source":case"response-metadata":case"error":case"raw":{j.enqueue(I);break}case"file":{j.enqueue({type:"file",file:new ZB({data:I.data,mediaType:I.mediaType})});break}case"finish":{R={type:"finish",finishReason:I.finishReason,usage:I.usage,providerMetadata:I.providerMetadata};break}case"tool-call":{try{const P=await mk({toolCall:I,tools:e,repairToolCall:f,system:o,messages:l});if(j.enqueue(P),P.invalid){v.enqueue({type:"tool-error",toolCallId:P.toolCallId,toolName:P.toolName,input:P.input,error:Ag(P.error),dynamic:!0});break}const Z=e[P.toolName];if(S.set(P.toolCallId,P.input),Z.onInputAvailable!=null&&await Z.onInputAvailable({input:P.input,toolCallId:P.toolCallId,messages:l,abortSignal:c,experimental_context:m}),Z.execute!=null&&P.providerExecuted!==!0){const B=rd();y.add(B),tp({name:"ai.toolCall",attributes:Do({telemetry:i,attributes:{...ep({operationId:"ai.toolCall",telemetry:i}),"ai.toolCall.name":P.toolName,"ai.toolCall.id":P.toolCallId,"ai.toolCall.args":{output:()=>JSON.stringify(P.input)}}}),tracer:n,fn:async W=>{let G;try{const se=SC({execute:Z.execute.bind(Z),input:P.input,options:{toolCallId:P.toolCallId,messages:l,abortSignal:c,experimental_context:m}});for await(const ke of se)v.enqueue({...P,type:"tool-result",output:ke.output,...ke.type==="preliminary"&&{preliminary:!0}}),ke.type==="final"&&(G=ke.output)}catch(se){Zy(W,se),v.enqueue({...P,type:"tool-error",error:se}),y.delete(B),M();return}y.delete(B),M();try{W.setAttributes(Do({telemetry:i,attributes:{"ai.toolCall.result":{output:()=>JSON.stringify(G)}}}))}catch(se){}}})}}catch(P){v.enqueue({type:"error",error:P})}break}case"tool-result":{const P=I.toolName;I.isError?v.enqueue({type:"tool-error",toolCallId:I.toolCallId,toolName:P,input:S.get(I.toolCallId),providerExecuted:I.providerExecuted,error:I.result}):j.enqueue({type:"tool-result",toolCallId:I.toolCallId,toolName:P,input:S.get(I.toolCallId),output:I.result,providerExecuted:I.providerExecuted});break}default:{const P=U;throw new Error(`Unhandled chunk type: ${P}`)}}},flush(){C=!0,M()}});return new ReadableStream({async start(I){return Promise.all([t.pipeThrough(L).pipeTo(new WritableStream({write(j){I.enqueue(j)},close(){}})),b.pipeTo(new WritableStream({write(j){I.enqueue(j)},close(){I.close()}}))])}})}var l$=xh({prefix:"aitxt",size:24});function u$({model:e,tools:t,toolChoice:n,system:i,prompt:o,messages:l,maxRetries:c,abortSignal:f,headers:m,stopWhen:v=yk(1),experimental_output:b,experimental_telemetry:y,prepareStep:S,providerOptions:C,experimental_activeTools:R,activeTools:M=R,experimental_repairToolCall:L,experimental_transform:I,experimental_download:j,includeRawChunks:U=!1,onChunk:P,onError:Z=({error:Re})=>{console.error(Re)},onFinish:B,onAbort:W,onStepFinish:G,experimental_context:se,_internal:{now:ke=o$,generateId:ve=l$,currentDate:de=()=>new Date}={},...ge}){return new d$({model:Hg(e),telemetry:y,headers:m,settings:ge,maxRetries:c,abortSignal:f,system:i,prompt:o,messages:l,tools:t,toolChoice:n,transforms:Wy(I),activeTools:M,repairToolCall:L,stopConditions:Wy(v),output:b,providerOptions:C,prepareStep:S,includeRawChunks:U,onChunk:P,onError:Z,onFinish:B,onAbort:W,onStepFinish:G,now:ke,currentDate:de,generateId:ve,experimental_context:se,download:j})}function c$(e){if(!e)return new TransformStream({transform(c,f){f.enqueue({part:c,partialOutput:void 0})}});let t,n="",i="",o="";function l({controller:c,partialOutput:f=void 0}){c.enqueue({part:{type:"text-delta",id:t,text:i},partialOutput:f}),i=""}return new TransformStream({async transform(c,f){if(c.type==="finish-step"&&i.length>0&&l({controller:f}),c.type!=="text-delta"&&c.type!=="text-start"&&c.type!=="text-end"){f.enqueue({part:c,partialOutput:void 0});return}if(t==null)t=c.id;else if(c.id!==t){f.enqueue({part:c,partialOutput:void 0});return}if(c.type==="text-start"){f.enqueue({part:c,partialOutput:void 0});return}if(c.type==="text-end"){i.length>0&&l({controller:f}),f.enqueue({part:c,partialOutput:void 0});return}n+=c.text,i+=c.text;const m=await e.parsePartial({text:n});if(m!=null){const v=JSON.stringify(m.partial);v!==o&&(l({controller:f,partialOutput:m.partial}),o=v)}}})}var d$=class{constructor({model:e,telemetry:t,headers:n,settings:i,maxRetries:o,abortSignal:l,system:c,prompt:f,messages:m,tools:v,toolChoice:b,transforms:y,activeTools:S,repairToolCall:C,stopConditions:R,output:M,providerOptions:L,prepareStep:I,includeRawChunks:j,now:U,currentDate:P,generateId:Z,onChunk:B,onError:W,onFinish:G,onAbort:se,onStepFinish:ke,experimental_context:ve,download:de}){this._totalUsage=new Lg,this._finishReason=new Lg,this._steps=new Lg,this.output=M,this.includeRawChunks=j,this.tools=v;let ge,Re=[];const be=[];let Ie,ye,Q={},Ne=[];const H=[];let K,fe={},$={};const Fe=new TransformStream({async transform(lt,vt){var zt,Ct,Dn,Hn;vt.enqueue(lt);const{part:Ue}=lt;if((Ue.type==="text-delta"||Ue.type==="reasoning-delta"||Ue.type==="source"||Ue.type==="tool-call"||Ue.type==="tool-result"||Ue.type==="tool-input-start"||Ue.type==="tool-input-delta"||Ue.type==="raw")&&await(B==null?void 0:B({chunk:Ue})),Ue.type==="error"&&await W({error:ok(Ue.error)}),Ue.type==="text-start"&&(fe[Ue.id]={type:"text",text:"",providerMetadata:Ue.providerMetadata},Re.push(fe[Ue.id])),Ue.type==="text-delta"){const Mt=fe[Ue.id];if(Mt==null){vt.enqueue({part:{type:"error",error:`text part ${Ue.id} not found`},partialOutput:void 0});return}Mt.text+=Ue.text,Mt.providerMetadata=(zt=Ue.providerMetadata)!=null?zt:Mt.providerMetadata}if(Ue.type==="text-end"){const Mt=fe[Ue.id];if(Mt==null){vt.enqueue({part:{type:"error",error:`text part ${Ue.id} not found`},partialOutput:void 0});return}Mt.providerMetadata=(Ct=Ue.providerMetadata)!=null?Ct:Mt.providerMetadata,delete fe[Ue.id]}if(Ue.type==="reasoning-start"&&($[Ue.id]={type:"reasoning",text:"",providerMetadata:Ue.providerMetadata},Re.push($[Ue.id])),Ue.type==="reasoning-delta"){const Mt=$[Ue.id];if(Mt==null){vt.enqueue({part:{type:"error",error:`reasoning part ${Ue.id} not found`},partialOutput:void 0});return}Mt.text+=Ue.text,Mt.providerMetadata=(Dn=Ue.providerMetadata)!=null?Dn:Mt.providerMetadata}if(Ue.type==="reasoning-end"){const Mt=$[Ue.id];if(Mt==null){vt.enqueue({part:{type:"error",error:`reasoning part ${Ue.id} not found`},partialOutput:void 0});return}Mt.providerMetadata=(Hn=Ue.providerMetadata)!=null?Hn:Mt.providerMetadata,delete $[Ue.id]}if(Ue.type==="file"&&Re.push({type:"file",file:Ue.file}),Ue.type==="source"&&Re.push(Ue),Ue.type==="tool-call"&&Re.push(Ue),Ue.type==="tool-result"&&!Ue.preliminary&&Re.push(Ue),Ue.type==="tool-error"&&Re.push(Ue),Ue.type==="start-step"&&(Q=Ue.request,Ne=Ue.warnings),Ue.type==="finish-step"){const Mt=qy({content:Re,tools:v}),Pn=new gk({content:Re,finishReason:Ue.finishReason,usage:Ue.usage,warnings:Ne,request:Q,response:{...Ue.response,messages:[...be,...Mt]},providerMetadata:Ue.providerMetadata});await(ke==null?void 0:ke(Pn)),yS(Ne),H.push(Pn),Re=[],$={},fe={},be.push(...Mt),ge.resolve()}Ue.type==="finish"&&(ye=Ue.totalUsage,Ie=Ue.finishReason)},async flush(lt){try{if(H.length===0){const Dn=new lB({message:"No output generated. Check the stream for errors."});wt._finishReason.reject(Dn),wt._totalUsage.reject(Dn),wt._steps.reject(Dn);return}const vt=Ie!=null?Ie:"unknown",zt=ye!=null?ye:{inputTokens:void 0,outputTokens:void 0,totalTokens:void 0};wt._finishReason.resolve(vt),wt._totalUsage.resolve(zt),wt._steps.resolve(H);const Ct=H[H.length-1];await(G==null?void 0:G({finishReason:vt,totalUsage:zt,usage:Ct.usage,content:Ct.content,text:Ct.text,reasoningText:Ct.reasoningText,reasoning:Ct.reasoning,files:Ct.files,sources:Ct.sources,toolCalls:Ct.toolCalls,staticToolCalls:Ct.staticToolCalls,dynamicToolCalls:Ct.dynamicToolCalls,toolResults:Ct.toolResults,staticToolResults:Ct.staticToolResults,dynamicToolResults:Ct.dynamicToolResults,request:Ct.request,response:Ct.response,warnings:Ct.warnings,providerMetadata:Ct.providerMetadata,steps:H})),K.setAttributes(Do({telemetry:t,attributes:{"ai.response.finishReason":vt,"ai.response.text":{output:()=>Ct.text},"ai.response.toolCalls":{output:()=>{var Dn;return(Dn=Ct.toolCalls)!=null&&Dn.length?JSON.stringify(Ct.toolCalls):void 0}},"ai.response.providerMetadata":JSON.stringify(Ct.providerMetadata),"ai.usage.inputTokens":zt.inputTokens,"ai.usage.outputTokens":zt.outputTokens,"ai.usage.totalTokens":zt.totalTokens,"ai.usage.reasoningTokens":zt.reasoningTokens,"ai.usage.cachedInputTokens":zt.cachedInputTokens}}))}catch(vt){lt.error(vt)}finally{K.end()}}}),it=i$();this.addStream=it.addStream,this.closeStream=it.close;const Be=it.stream.getReader();let Ee=new ReadableStream({async start(lt){lt.enqueue({type:"start"})},async pull(lt){function vt(){se==null||se({steps:H}),lt.enqueue({type:"abort"}),lt.close()}try{const{done:zt,value:Ct}=await Be.read();if(zt){lt.close();return}if(l!=null&&l.aborted){vt();return}lt.enqueue(Ct)}catch(zt){ad(zt)&&(l!=null&&l.aborted)?vt():lt.error(zt)}},cancel(lt){return it.stream.cancel(lt)}});for(const lt of y)Ee=Ee.pipeThrough(lt({tools:v,stopStream(){it.terminate()}}));this.baseStream=Ee.pipeThrough(c$(M)).pipeThrough(Fe);const{maxRetries:Ze,retry:Je}=fk({maxRetries:o,abortSignal:l}),We=lk(t),Xe=$y(i),Et=sk({model:e,telemetry:t,headers:n,settings:{...Xe,maxRetries:Ze}}),wt=this;tp({name:"ai.streamText",attributes:Do({telemetry:t,attributes:{...ep({operationId:"ai.streamText",telemetry:t}),...Et,"ai.prompt":{input:()=>JSON.stringify({system:c,prompt:f,messages:m})}}}),tracer:We,endWhenDone:!1,fn:async lt=>{K=lt;async function vt({currentStep:zt,responseMessages:Ct,usage:Dn}){var Hn,Ue,Mt,Pn,Wt;const pr=wt.includeRawChunks;ge=new Lg;const Vn=await ik({system:c,prompt:f,messages:m}),me=[...Vn.messages,...Ct],Me=await(I==null?void 0:I({model:e,steps:H,stepNumber:H.length,messages:me})),ut=Hg((Hn=Me==null?void 0:Me.model)!=null?Hn:e),It=await ek({prompt:{system:(Ue=Me==null?void 0:Me.system)!=null?Ue:Vn.system,messages:(Mt=Me==null?void 0:Me.messages)!=null?Mt:me},supportedUrls:await ut.supportedUrls,download:de}),{toolChoice:Te,tools:qe}=tk({tools:v,toolChoice:(Pn=Me==null?void 0:Me.toolChoice)!=null?Pn:b,activeTools:(Wt=Me==null?void 0:Me.activeTools)!=null?Wt:S}),{result:{stream:Nt,response:gt,request:Xt},doStreamSpan:sn,startTimestampMs:Qt}=await Je(()=>tp({name:"ai.streamText.doStream",attributes:Do({telemetry:t,attributes:{...ep({operationId:"ai.streamText.doStream",telemetry:t}),...Et,"ai.model.provider":ut.provider,"ai.model.id":ut.modelId,"ai.prompt.messages":{input:()=>uk(It)},"ai.prompt.tools":{input:()=>qe==null?void 0:qe.map(_t=>JSON.stringify(_t))},"ai.prompt.toolChoice":{input:()=>Te!=null?JSON.stringify(Te):void 0},"gen_ai.system":ut.provider,"gen_ai.request.model":ut.modelId,"gen_ai.request.frequency_penalty":Xe.frequencyPenalty,"gen_ai.request.max_tokens":Xe.maxOutputTokens,"gen_ai.request.presence_penalty":Xe.presencePenalty,"gen_ai.request.stop_sequences":Xe.stopSequences,"gen_ai.request.temperature":Xe.temperature,"gen_ai.request.top_k":Xe.topK,"gen_ai.request.top_p":Xe.topP}}),tracer:We,endWhenDone:!1,fn:async _t=>({startTimestampMs:U(),doStreamSpan:_t,result:await ut.doStream({...Xe,tools:qe,toolChoice:Te,responseFormat:M==null?void 0:M.responseFormat,prompt:It,providerOptions:L,abortSignal:l,headers:n,includeRawChunks:pr})})})),Kn=s$({tools:v,generatorStream:Nt,tracer:We,telemetry:t,system:c,messages:me,repairToolCall:C,abortSignal:l,experimental_context:ve}),cn=Xt!=null?Xt:{},Sn=[],_n=[];let da;const jr={};let Yr="unknown",Rr={inputTokens:void 0,outputTokens:void 0,totalTokens:void 0},vo,jo=!0,Jr={id:Z(),timestamp:P(),modelId:e.modelId},go="";wt.addStream(Kn.pipeThrough(new TransformStream({async transform(_t,kn){var Mr,gr,La,Nr;if(_t.type==="stream-start"){da=_t.warnings;return}if(jo){const er=U()-Qt;jo=!1,sn.addEvent("ai.stream.firstChunk",{"ai.response.msToFirstChunk":er}),sn.setAttributes({"ai.response.msToFirstChunk":er}),kn.enqueue({type:"start-step",request:cn,warnings:da!=null?da:[]})}const xi=_t.type;switch(xi){case"text-start":case"text-end":{kn.enqueue(_t);break}case"text-delta":{_t.delta.length>0&&(kn.enqueue({type:"text-delta",id:_t.id,text:_t.delta,providerMetadata:_t.providerMetadata}),go+=_t.delta);break}case"reasoning-start":case"reasoning-end":{kn.enqueue(_t);break}case"reasoning-delta":{kn.enqueue({type:"reasoning-delta",id:_t.id,text:_t.delta,providerMetadata:_t.providerMetadata});break}case"tool-call":{kn.enqueue(_t),Sn.push(_t);break}case"tool-result":{kn.enqueue(_t),_t.preliminary||_n.push(_t);break}case"tool-error":{kn.enqueue(_t),_n.push(_t);break}case"response-metadata":{Jr={id:(Mr=_t.id)!=null?Mr:Jr.id,timestamp:(gr=_t.timestamp)!=null?gr:Jr.timestamp,modelId:(La=_t.modelId)!=null?La:Jr.modelId};break}case"finish":{Rr=_t.usage,Yr=_t.finishReason,vo=_t.providerMetadata;const er=U()-Qt;sn.addEvent("ai.stream.finish"),sn.setAttributes({"ai.response.msToFinish":er,"ai.response.avgOutputTokensPerSecond":1e3*((Nr=Rr.outputTokens)!=null?Nr:0)/er});break}case"file":{kn.enqueue(_t);break}case"source":{kn.enqueue(_t);break}case"tool-input-start":{jr[_t.id]=_t.toolName;const er=v==null?void 0:v[_t.toolName];(er==null?void 0:er.onInputStart)!=null&&await er.onInputStart({toolCallId:_t.id,messages:me,abortSignal:l,experimental_context:ve}),kn.enqueue({..._t,dynamic:(er==null?void 0:er.type)==="dynamic"});break}case"tool-input-end":{delete jr[_t.id],kn.enqueue(_t);break}case"tool-input-delta":{const er=jr[_t.id],J=v==null?void 0:v[er];(J==null?void 0:J.onInputDelta)!=null&&await J.onInputDelta({inputTextDelta:_t.delta,toolCallId:_t.id,messages:me,abortSignal:l,experimental_context:ve}),kn.enqueue(_t);break}case"error":{kn.enqueue(_t),Yr="error";break}case"raw":{pr&&kn.enqueue(_t);break}default:{const er=xi;throw new Error(`Unknown chunk type: ${er}`)}}},async flush(_t){const kn=Sn.length>0?JSON.stringify(Sn):void 0;try{sn.setAttributes(Do({telemetry:t,attributes:{"ai.response.finishReason":Yr,"ai.response.text":{output:()=>go},"ai.response.toolCalls":{output:()=>kn},"ai.response.id":Jr.id,"ai.response.model":Jr.modelId,"ai.response.timestamp":Jr.timestamp.toISOString(),"ai.response.providerMetadata":JSON.stringify(vo),"ai.usage.inputTokens":Rr.inputTokens,"ai.usage.outputTokens":Rr.outputTokens,"ai.usage.totalTokens":Rr.totalTokens,"ai.usage.reasoningTokens":Rr.reasoningTokens,"ai.usage.cachedInputTokens":Rr.cachedInputTokens,"gen_ai.response.finish_reasons":[Yr],"gen_ai.response.id":Jr.id,"gen_ai.response.model":Jr.modelId,"gen_ai.usage.input_tokens":Rr.inputTokens,"gen_ai.usage.output_tokens":Rr.outputTokens}}))}catch(Nr){}finally{sn.end()}_t.enqueue({type:"finish-step",finishReason:Yr,usage:Rr,providerMetadata:vo,response:{...Jr,headers:gt==null?void 0:gt.headers}});const Mr=ck(Dn,Rr);await ge.promise;const gr=Sn.filter(Nr=>Nr.providerExecuted!==!0),La=_n.filter(Nr=>Nr.providerExecuted!==!0);if(gr.length>0&&La.length===gr.length&&!await wk({stopConditions:R,steps:H})){Ct.push(...qy({content:H[H.length-1].content,tools:v}));try{await vt({currentStep:zt+1,responseMessages:Ct,usage:Mr})}catch(Nr){_t.enqueue({type:"error",error:Nr}),wt.closeStream()}}else _t.enqueue({type:"finish",finishReason:Yr,totalUsage:Mr}),wt.closeStream()}})))}await vt({currentStep:0,responseMessages:[],usage:{inputTokens:void 0,outputTokens:void 0,totalTokens:void 0}})}}).catch(lt=>{wt.addStream(new ReadableStream({start(vt){vt.enqueue({type:"error",error:lt}),vt.close()}})),wt.closeStream()})}get steps(){return this.consumeStream(),this._steps.promise}get finalStep(){return this.steps.then(e=>e[e.length-1])}get content(){return this.finalStep.then(e=>e.content)}get warnings(){return this.finalStep.then(e=>e.warnings)}get providerMetadata(){return this.finalStep.then(e=>e.providerMetadata)}get text(){return this.finalStep.then(e=>e.text)}get reasoningText(){return this.finalStep.then(e=>e.reasoningText)}get reasoning(){return this.finalStep.then(e=>e.reasoning)}get sources(){return this.finalStep.then(e=>e.sources)}get files(){return this.finalStep.then(e=>e.files)}get toolCalls(){return this.finalStep.then(e=>e.toolCalls)}get staticToolCalls(){return this.finalStep.then(e=>e.staticToolCalls)}get dynamicToolCalls(){return this.finalStep.then(e=>e.dynamicToolCalls)}get toolResults(){return this.finalStep.then(e=>e.toolResults)}get staticToolResults(){return this.finalStep.then(e=>e.staticToolResults)}get dynamicToolResults(){return this.finalStep.then(e=>e.dynamicToolResults)}get usage(){return this.finalStep.then(e=>e.usage)}get request(){return this.finalStep.then(e=>e.request)}get response(){return this.finalStep.then(e=>e.response)}get totalUsage(){return this.consumeStream(),this._totalUsage.promise}get finishReason(){return this.consumeStream(),this._finishReason.promise}teeStream(){const[e,t]=this.baseStream.tee();return this.baseStream=t,e}get textStream(){return Wg(this.teeStream().pipeThrough(new TransformStream({transform({part:e},t){e.type==="text-delta"&&t.enqueue(e.text)}})))}get fullStream(){return Wg(this.teeStream().pipeThrough(new TransformStream({transform({part:e},t){t.enqueue(e)}})))}async consumeStream(e){var t;try{await Lk({stream:this.fullStream,onError:e==null?void 0:e.onError})}catch(n){(t=e==null?void 0:e.onError)==null||t.call(e,n)}}get experimental_partialOutputStream(){if(this.output==null)throw new vS;return Wg(this.teeStream().pipeThrough(new TransformStream({transform({partialOutput:e},t){e!=null&&t.enqueue(e)}})))}toUIMessageStream({originalMessages:e,generateMessageId:t,onFinish:n,messageMetadata:i,sendReasoning:o=!0,sendSources:l=!1,sendStart:c=!0,sendFinish:f=!0,onError:m=Hf}={}){const v=t!=null?QB({originalMessages:e,responseMessageId:t}):void 0,b={},y=C=>{var R,M;const L=b[C];return((M=(R=this.tools)==null?void 0:R[L])==null?void 0:M.type)==="dynamic"?!0:void 0},S=this.fullStream.pipeThrough(new TransformStream({transform:async(C,R)=>{const M=i==null?void 0:i({part:C}),L=C.type;switch(L){case"text-start":{R.enqueue({type:"text-start",id:C.id,...C.providerMetadata!=null?{providerMetadata:C.providerMetadata}:{}});break}case"text-delta":{R.enqueue({type:"text-delta",id:C.id,delta:C.text,...C.providerMetadata!=null?{providerMetadata:C.providerMetadata}:{}});break}case"text-end":{R.enqueue({type:"text-end",id:C.id,...C.providerMetadata!=null?{providerMetadata:C.providerMetadata}:{}});break}case"reasoning-start":{R.enqueue({type:"reasoning-start",id:C.id,...C.providerMetadata!=null?{providerMetadata:C.providerMetadata}:{}});break}case"reasoning-delta":{o&&R.enqueue({type:"reasoning-delta",id:C.id,delta:C.text,...C.providerMetadata!=null?{providerMetadata:C.providerMetadata}:{}});break}case"reasoning-end":{R.enqueue({type:"reasoning-end",id:C.id,...C.providerMetadata!=null?{providerMetadata:C.providerMetadata}:{}});break}case"file":{R.enqueue({type:"file",mediaType:C.file.mediaType,url:`data:${C.file.mediaType};base64,${C.file.base64}`});break}case"source":{l&&C.sourceType==="url"&&R.enqueue({type:"source-url",sourceId:C.id,url:C.url,title:C.title,...C.providerMetadata!=null?{providerMetadata:C.providerMetadata}:{}}),l&&C.sourceType==="document"&&R.enqueue({type:"source-document",sourceId:C.id,mediaType:C.mediaType,title:C.title,filename:C.filename,...C.providerMetadata!=null?{providerMetadata:C.providerMetadata}:{}});break}case"tool-input-start":{b[C.id]=C.toolName;const I=y(C.id);R.enqueue({type:"tool-input-start",toolCallId:C.id,toolName:C.toolName,...C.providerExecuted!=null?{providerExecuted:C.providerExecuted}:{},...I!=null?{dynamic:I}:{}});break}case"tool-input-delta":{R.enqueue({type:"tool-input-delta",toolCallId:C.id,inputTextDelta:C.delta});break}case"tool-call":{b[C.toolCallId]=C.toolName;const I=y(C.toolCallId);C.invalid?R.enqueue({type:"tool-input-error",toolCallId:C.toolCallId,toolName:C.toolName,input:C.input,...C.providerExecuted!=null?{providerExecuted:C.providerExecuted}:{},...C.providerMetadata!=null?{providerMetadata:C.providerMetadata}:{},...I!=null?{dynamic:I}:{},errorText:m(C.error)}):R.enqueue({type:"tool-input-available",toolCallId:C.toolCallId,toolName:C.toolName,input:C.input,...C.providerExecuted!=null?{providerExecuted:C.providerExecuted}:{},...C.providerMetadata!=null?{providerMetadata:C.providerMetadata}:{},...I!=null?{dynamic:I}:{}});break}case"tool-result":{const I=y(C.toolCallId);R.enqueue({type:"tool-output-available",toolCallId:C.toolCallId,output:C.output,...C.providerExecuted!=null?{providerExecuted:C.providerExecuted}:{},...C.preliminary!=null?{preliminary:C.preliminary}:{},...I!=null?{dynamic:I}:{}});break}case"tool-error":{const I=y(C.toolCallId);R.enqueue({type:"tool-output-error",toolCallId:C.toolCallId,errorText:m(C.error),...C.providerExecuted!=null?{providerExecuted:C.providerExecuted}:{},...I!=null?{dynamic:I}:{}});break}case"error":{R.enqueue({type:"error",errorText:m(C.error)});break}case"start-step":{R.enqueue({type:"start-step"});break}case"finish-step":{R.enqueue({type:"finish-step"});break}case"start":{c&&R.enqueue({type:"start",...M!=null?{messageMetadata:M}:{},...v!=null?{messageId:v}:{}});break}case"finish":{f&&R.enqueue({type:"finish",finishReason:C.finishReason,...M!=null?{messageMetadata:M}:{}});break}case"abort":{R.enqueue(C);break}case"tool-input-end":break;case"raw":break;default:{const I=L;throw new Error(`Unknown chunk type: ${I}`)}}M!=null&&L!=="start"&&L!=="finish"&&R.enqueue({type:"message-metadata",messageMetadata:M})}}));return Wg(Ok({stream:S,messageId:v!=null?v:t==null?void 0:t(),originalMessages:e,onFinish:n,onError:m}))}pipeUIMessageStreamToResponse(e,{originalMessages:t,generateMessageId:n,onFinish:i,messageMetadata:o,sendReasoning:l,sendSources:c,sendFinish:f,sendStart:m,onError:v,...b}={}){a$({response:e,stream:this.toUIMessageStream({originalMessages:t,generateMessageId:n,onFinish:i,messageMetadata:o,sendReasoning:l,sendSources:c,sendFinish:f,sendStart:m,onError:v}),...b})}pipeTextStreamToResponse(e,t){XB({response:e,textStream:this.textStream,...t})}toUIMessageStreamResponse({originalMessages:e,generateMessageId:t,onFinish:n,messageMetadata:i,sendReasoning:o,sendSources:l,sendFinish:c,sendStart:f,onError:m,...v}={}){return Ek({stream:this.toUIMessageStream({originalMessages:e,generateMessageId:t,onFinish:n,messageMetadata:i,sendReasoning:o,sendSources:l,sendFinish:c,sendStart:f,onError:m}),...v})}toTextStreamResponse(e){return KB({textStream:this.textStream,...e})}};function Ik(e,t){const n=[];t!=null&&t.ignoreIncompleteToolCalls&&(e=e.map(i=>({...i,parts:i.parts.filter(o=>!Zg(o)||o.state!=="input-streaming"&&o.state!=="input-available")})));for(const i of e)switch(i.role){case"system":{const o=i.parts.filter(c=>c.type==="text"),l=o.reduce((c,f)=>f.providerMetadata!=null?{...c,...f.providerMetadata}:c,{});n.push({role:"system",content:o.map(c=>c.text).join(""),...Object.keys(l).length>0?{providerOptions:l}:{}});break}case"user":{n.push({role:"user",content:i.parts.map(o=>{var l;if(Yy(o))return{type:"text",text:o.text,...o.providerMetadata!=null?{providerOptions:o.providerMetadata}:{}};if(Jy(o))return{type:"file",mediaType:o.mediaType,filename:o.filename,data:o.url,...o.providerMetadata!=null?{providerOptions:o.providerMetadata}:{}};if(Gy(o))return(l=t==null?void 0:t.convertDataPart)==null?void 0:l.call(t,o)}).filter(o=>o!=null)});break}case"assistant":{if(i.parts!=null){let o=function(){var c,f,m;if(l.length===0)return;const v=[];for(const y of l)if(Yy(y))v.push({type:"text",text:y.text,...y.providerMetadata!=null?{providerOptions:y.providerMetadata}:{}});else if(Jy(y))v.push({type:"file",mediaType:y.mediaType,filename:y.filename,data:y.url});else if(Rk(y))v.push({type:"reasoning",text:y.text,providerOptions:y.providerMetadata});else if(Ky(y)){const S=y.toolName;y.state!=="input-streaming"&&v.push({type:"tool-call",toolCallId:y.toolCallId,toolName:S,input:y.input,...y.callProviderMetadata!=null?{providerOptions:y.callProviderMetadata}:{}})}else if(fd(y)){const S=Lh(y);y.state!=="input-streaming"&&(v.push({type:"tool-call",toolCallId:y.toolCallId,toolName:S,input:y.state==="output-error"?(c=y.input)!=null?c:y.rawInput:y.input,providerExecuted:y.providerExecuted,...y.callProviderMetadata!=null?{providerOptions:y.callProviderMetadata}:{}}),y.providerExecuted===!0&&(y.state==="output-available"||y.state==="output-error")&&v.push({type:"tool-result",toolCallId:y.toolCallId,toolName:S,output:Oh({output:y.state==="output-error"?y.errorText:y.output,tool:(f=t==null?void 0:t.tools)==null?void 0:f[S],errorMode:y.state==="output-error"?"json":"none"}),...y.callProviderMetadata!=null?{providerOptions:y.callProviderMetadata}:{}}))}else if(Gy(y)){const S=(m=t==null?void 0:t.convertDataPart)==null?void 0:m.call(t,y);S!=null&&v.push(S)}else{const S=y;throw new Error(`Unsupported part: ${S}`)}n.push({role:"assistant",content:v});const b=l.filter(y=>fd(y)&&y.providerExecuted!==!0||y.type==="dynamic-tool");b.length>0&&n.push({role:"tool",content:b.map(y=>{var S;switch(y.state){case"output-error":case"output-available":{const C=r$(y);return{type:"tool-result",toolCallId:y.toolCallId,toolName:C,output:Oh({output:y.state==="output-error"?y.errorText:y.output,tool:(S=t==null?void 0:t.tools)==null?void 0:S[C],errorMode:y.state==="output-error"?"text":"none"}),...y.callProviderMetadata!=null?{providerOptions:y.callProviderMetadata}:{}}}default:return null}}).filter(y=>y!=null)}),l=[]},l=[];for(const c of i.parts)Yy(c)||Rk(c)||Jy(c)||Zg(c)||Gy(c)?l.push(c):c.type==="step-start"&&o();o();break}break}default:{const o=i.role;throw new vB({originalMessage:i,message:`Unsupported role: ${o}`})}}return n}var f$=class{constructor(e){this.settings=e}get tools(){return this.settings.tools}async generate(e){return qB({...this.settings,...e})}stream(e){return u$({...this.settings,...e})}respond(e){return this.stream({prompt:Ik(e.messages)}).toUIMessageStreamResponse()}};xh({prefix:"aiobj",size:24});var p$=class{constructor(){this.queue=[],this.isProcessing=!1}async processQueue(){if(!this.isProcessing){for(this.isProcessing=!0;this.queue.length>0;)await this.queue[0](),this.queue.shift();this.isProcessing=!1}}async run(e){return new Promise((t,n)=>{this.queue.push(async()=>{try{await e(),t()}catch(i){n(i)}}),this.processQueue()})}};xh({prefix:"aiobj",size:24});var h$={};eB(h$,{object:()=>v$,text:()=>m$});var m$=()=>({type:"text",responseFormat:{type:"text"},async parsePartial({text:e}){return{partial:e}},async parseOutput({text:e}){return e}}),v$=({schema:e})=>{const t=zg(e);return{type:"object",responseFormat:{type:"json",schema:t.jsonSchema},async parsePartial({text:n}){const i=await Tk(n);switch(i.state){case"failed-parse":case"undefined-input":return;case"repaired-parse":case"successful-parse":return{partial:i.value};default:{const o=i.state;throw new Error(`Unsupported parse state: ${o}`)}}},async parseOutput({text:n},i){const o=await sd({text:n});if(!o.success)throw new MS({message:"No object generated: could not parse the response.",cause:o.error,text:n,response:i.response,usage:i.usage,finishReason:i.finishReason});const l=await $l({value:o.value,schema:t});if(!l.success)throw new MS({message:"No object generated: response did not match schema.",cause:l.error,text:n,response:i.response,usage:i.usage,finishReason:i.finishReason});return l.value}}};async function g$(e){if(e==null)return[];if(!globalThis.FileList||!(e instanceof globalThis.FileList))throw new Error("FileList is not supported in the current environment");return Promise.all(Array.from(e).map(async t=>{const{name:n,type:i}=t,o=await new Promise((l,c)=>{const f=new FileReader;f.onload=m=>{var v;l((v=m.target)==null?void 0:v.result)},f.onerror=m=>c(m),f.readAsDataURL(t)});return{type:"file",mediaType:i,filename:n,url:o}}))}var y$=class{constructor({api:e="/api/chat",credentials:t,headers:n,body:i,fetch:o,prepareSendMessagesRequest:l,prepareReconnectToStreamRequest:c}){this.api=e,this.credentials=t,this.headers=n,this.body=i,this.fetch=o,this.prepareSendMessagesRequest=l,this.prepareReconnectToStreamRequest=c}async sendMessages({abortSignal:e,...t}){var n,i,o,l,c;const f=await Ya(this.body),m=await Ya(this.headers),v=await Ya(this.credentials),b={...id(m),...id(t.headers)},y=await((n=this.prepareSendMessagesRequest)==null?void 0:n.call(this,{api:this.api,id:t.chatId,messages:t.messages,body:{...f,...t.body},headers:b,credentials:v,requestMetadata:t.metadata,trigger:t.trigger,messageId:t.messageId})),S=(i=y==null?void 0:y.api)!=null?i:this.api,C=(y==null?void 0:y.headers)!==void 0?id(y.headers):b,R=(y==null?void 0:y.body)!==void 0?y.body:{...f,...t.body,id:t.chatId,messages:t.messages,trigger:t.trigger,messageId:t.messageId},M=(o=y==null?void 0:y.credentials)!=null?o:v,I=await((l=this.fetch)!=null?l:globalThis.fetch)(S,{method:"POST",headers:Wu({"Content-Type":"application/json",...C},`ai-sdk/${Vg}`,Ch()),body:JSON.stringify(R),credentials:M,signal:e});if(!I.ok)throw new Error((c=await I.text())!=null?c:"Failed to fetch the chat response.");if(!I.body)throw new Error("The response body is empty.");return this.processResponseStream(I.body)}async reconnectToStream(e){var t,n,i,o,l;const c=await Ya(this.body),f=await Ya(this.headers),m=await Ya(this.credentials),v={...id(f),...id(e.headers)},b=await((t=this.prepareReconnectToStreamRequest)==null?void 0:t.call(this,{api:this.api,id:e.chatId,body:{...c,...e.body},headers:v,credentials:m,requestMetadata:e.metadata})),y=(n=b==null?void 0:b.api)!=null?n:`${this.api}/${e.chatId}/stream`,S=(b==null?void 0:b.headers)!==void 0?id(b.headers):v,C=(i=b==null?void 0:b.credentials)!=null?i:m,M=await((o=this.fetch)!=null?o:globalThis.fetch)(y,{method:"GET",headers:Wu(S,`ai-sdk/${Vg}`,Ch()),credentials:C});if(M.status===204)return null;if(!M.ok)throw new Error((l=await M.text())!=null?l:"Failed to fetch the chat response.");if(!M.body)throw new Error("The response body is empty.");return this.processResponseStream(M.body)}},Dk=class extends y${constructor(e={}){super(e)}processResponseStream(e){return hC({stream:e,schema:e$}).pipeThrough(new TransformStream({async transform(t,n){if(!t.success)throw t.error;n.enqueue(t.value)}}))}},w$=class{constructor({generateId:e=rd,id:t=e(),transport:n=new Dk,messageMetadataSchema:i,dataPartSchemas:o,state:l,onError:c,onToolCall:f,onFinish:m,onData:v,sendAutomaticallyWhen:b}){this.activeResponse=void 0,this.jobExecutor=new p$,this.sendMessage=async(y,S)=>{var C,R,M,L;if(y==null){await this.makeRequest({trigger:"submit-message",messageId:(C=this.lastMessage)==null?void 0:C.id,...S});return}let I;if("text"in y||"files"in y?I={parts:[...Array.isArray(y.files)?y.files:await g$(y.files),..."text"in y&&y.text!=null?[{type:"text",text:y.text}]:[]]}:I=y,y.messageId!=null){const j=this.state.messages.findIndex(U=>U.id===y.messageId);if(j===-1)throw new Error(`message with id ${y.messageId} not found`);if(this.state.messages[j].role!=="user")throw new Error(`message with id ${y.messageId} is not a user message`);this.state.messages=this.state.messages.slice(0,j+1),this.state.replaceMessage(j,{...I,id:y.messageId,role:(R=I.role)!=null?R:"user",metadata:y.metadata})}else this.state.pushMessage({...I,id:(M=I.id)!=null?M:this.generateId(),role:(L=I.role)!=null?L:"user",metadata:y.metadata});await this.makeRequest({trigger:"submit-message",messageId:y.messageId,...S})},this.regenerate=async({messageId:y,...S}={})=>{const C=y==null?this.state.messages.length-1:this.state.messages.findIndex(R=>R.id===y);if(C===-1)throw new Error(`message ${y} not found`);this.state.messages=this.state.messages.slice(0,this.messages[C].role==="assistant"?C:C+1),await this.makeRequest({trigger:"regenerate-message",messageId:y,...S})},this.resumeStream=async(y={})=>{await this.makeRequest({trigger:"resume-stream",...y})},this.clearError=()=>{this.status==="error"&&(this.state.error=void 0,this.setStatus({status:"ready"}))},this.addToolOutput=async({state:y="output-available",tool:S,toolCallId:C,output:R,errorText:M})=>this.jobExecutor.run(async()=>{var L,I;const j=this.state.messages,U=j[j.length-1];this.state.replaceMessage(j.length-1,{...U,parts:U.parts.map(P=>Zg(P)&&P.toolCallId===C?{...P,state:y,output:R,errorText:M}:P)}),this.activeResponse&&(this.activeResponse.state.message.parts=this.activeResponse.state.message.parts.map(P=>Zg(P)&&P.toolCallId===C?{...P,state:y,output:R,errorText:M}:P)),this.status!=="streaming"&&this.status!=="submitted"&&((L=this.sendAutomaticallyWhen)!=null&&L.call(this,{messages:this.state.messages}))&&this.makeRequest({trigger:"submit-message",messageId:(I=this.lastMessage)==null?void 0:I.id})}),this.addToolResult=this.addToolOutput,this.stop=async()=>{var y;this.status!=="streaming"&&this.status!=="submitted"||(y=this.activeResponse)!=null&&y.abortController&&this.activeResponse.abortController.abort()},this.id=t,this.transport=n,this.generateId=e,this.messageMetadataSchema=i,this.dataPartSchemas=o,this.state=l,this.onError=c,this.onToolCall=f,this.onFinish=m,this.onData=v,this.sendAutomaticallyWhen=b}get status(){return this.state.status}setStatus({status:e,error:t}){this.status!==e&&(this.state.status=e,this.state.error=t)}get error(){return this.state.error}get messages(){return this.state.messages}get lastMessage(){return this.state.messages[this.state.messages.length-1]}set messages(e){this.state.messages=e}async makeRequest({trigger:e,metadata:t,headers:n,body:i,messageId:o}){var l,c,f,m;this.setStatus({status:"submitted",error:void 0});const v=this.lastMessage;let b=!1,y=!1,S=!1;try{const C={state:Mk({lastMessage:this.state.snapshot(v),messageId:this.generateId()}),abortController:new AbortController};C.abortController.signal.addEventListener("abort",()=>{b=!0}),this.activeResponse=C;let R;if(e==="resume-stream"){const L=await this.transport.reconnectToStream({chatId:this.id,metadata:t,headers:n,body:i});if(L==null){this.setStatus({status:"ready"});return}R=L}else R=await this.transport.sendMessages({chatId:this.id,messages:this.state.messages,abortSignal:C.abortController.signal,metadata:t,headers:n,body:i,trigger:e,messageId:o});const M=L=>this.jobExecutor.run(()=>L({state:C.state,write:()=>{var I;this.setStatus({status:"streaming"}),C.state.message.id===((I=this.lastMessage)==null?void 0:I.id)?this.state.replaceMessage(this.state.messages.length-1,C.state.message):this.state.pushMessage(C.state.message)}}));await Lk({stream:Nk({stream:R,onToolCall:this.onToolCall,onData:this.onData,messageMetadataSchema:this.messageMetadataSchema,dataPartSchemas:this.dataPartSchemas,runUpdateMessageJob:M,onError:L=>{throw L}}),onError:L=>{throw L}}),this.setStatus({status:"ready"})}catch(C){if(b||C.name==="AbortError")return b=!0,this.setStatus({status:"ready"}),null;S=!0,C instanceof TypeError&&(C.message.toLowerCase().includes("fetch")||C.message.toLowerCase().includes("network"))&&(y=!0),this.onError&&C instanceof Error&&this.onError(C),this.setStatus({status:"error",error:C})}finally{try{(c=this.onFinish)==null||c.call(this,{message:this.activeResponse.state.message,messages:this.state.messages,isAbort:b,isDisconnect:y,isError:S,finishReason:(l=this.activeResponse)==null?void 0:l.state.finishReason})}catch(C){console.error(C)}this.activeResponse=void 0}(f=this.sendAutomaticallyWhen)!=null&&f.call(this,{messages:this.state.messages})&&!S&&await this.makeRequest({trigger:"submit-message",messageId:(m=this.lastMessage)==null?void 0:m.id,metadata:t,headers:n,body:i})}};function b$({execute:e,onError:t=Ag,originalMessages:n,onFinish:i,generateId:o=rd}){let l;const c=[],f=new ReadableStream({start(b){l=b}});function m(b){try{l.enqueue(b)}catch(y){}}try{const b=e({writer:{write(y){m(y)},merge(y){c.push((async()=>{const S=y.getReader();for(;;){const{done:C,value:R}=await S.read();if(C)break;m(R)}})().catch(S=>{m({type:"error",errorText:t(S)})}))},onError:t}});b&&c.push(b.catch(y=>{m({type:"error",errorText:t(y)})}))}catch(b){m({type:"error",errorText:t(b)})}return new Promise(async b=>{for(;c.length>0;)await c.shift();b()}).finally(()=>{try{l.close()}catch(b){}}),Ok({stream:f,messageId:o(),originalMessages:n,onFinish:i,onError:t})}function x$(e,t){if(typeof e!="function")throw new TypeError(`Expected the first argument to be a \`function\`, got \`${typeof e}\`.`);let n,i=0;return function(...l){clearTimeout(n);const c=Date.now(),f=c-i,m=t-f;m<=0?(i=c,e.apply(this,l)):n=setTimeout(()=>{i=Date.now(),e.apply(this,l)},m)}}var C$=x$;const S$=Uu(C$);var Pk=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)},vr=(e,t,n)=>(Pk(e,t,"read from private field"),n?n.call(e):t.get(e)),Gs=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},Gu=(e,t,n,i)=>(Pk(e,t,"write to private field"),t.set(e,n),n);function k$(e,t){return t!=null?S$(e,t):e}var Po,qg,Gg,Ah,Ih,Dh,np,Xy,Qy,E$=class{constructor(e=[]){Gs(this,Po,void 0),Gs(this,qg,"ready"),Gs(this,Gg,void 0),Gs(this,Ah,new Set),Gs(this,Ih,new Set),Gs(this,Dh,new Set),this.pushMessage=t=>{Gu(this,Po,vr(this,Po).concat(t)),vr(this,np).call(this)},this.popMessage=()=>{Gu(this,Po,vr(this,Po).slice(0,-1)),vr(this,np).call(this)},this.replaceMessage=(t,n)=>{Gu(this,Po,[...vr(this,Po).slice(0,t),this.snapshot(n),...vr(this,Po).slice(t+1)]),vr(this,np).call(this)},this.snapshot=t=>structuredClone(t),this["~registerMessagesCallback"]=(t,n)=>{const i=n?k$(t,n):t;return vr(this,Ah).add(i),()=>{vr(this,Ah).delete(i)}},this["~registerStatusCallback"]=t=>(vr(this,Ih).add(t),()=>{vr(this,Ih).delete(t)}),this["~registerErrorCallback"]=t=>(vr(this,Dh).add(t),()=>{vr(this,Dh).delete(t)}),Gs(this,np,()=>{vr(this,Ah).forEach(t=>t())}),Gs(this,Xy,()=>{vr(this,Ih).forEach(t=>t())}),Gs(this,Qy,()=>{vr(this,Dh).forEach(t=>t())}),Gu(this,Po,e)}get status(){return vr(this,qg)}set status(e){Gu(this,qg,e),vr(this,Xy).call(this)}get error(){return vr(this,Gg)}set error(e){Gu(this,Gg,e),vr(this,Qy).call(this)}get messages(){return vr(this,Po)}set messages(e){Gu(this,Po,[...e]),vr(this,np).call(this)}};Po=new WeakMap,qg=new WeakMap,Gg=new WeakMap,Ah=new WeakMap,Ih=new WeakMap,Dh=new WeakMap,np=new WeakMap,Xy=new WeakMap,Qy=new WeakMap;var rp,zk=class extends w${constructor({messages:t,...n}){const i=new E$(t);super({...n,state:i}),Gs(this,rp,void 0),this["~registerMessagesCallback"]=(o,l)=>vr(this,rp)["~registerMessagesCallback"](o,l),this["~registerStatusCallback"]=o=>vr(this,rp)["~registerStatusCallback"](o),this["~registerErrorCallback"]=o=>vr(this,rp)["~registerErrorCallback"](o),Gu(this,rp,i)}};rp=new WeakMap;function _$({experimental_throttle:e,resume:t=!1,...n}={}){const i=D.useRef("chat"in n?n.chat:new zk(n));("chat"in n&&n.chat!==i.current||"id"in n&&i.current.id!==n.id)&&(i.current="chat"in n?n.chat:new zk(n));const l=D.useCallback(b=>i.current["~registerMessagesCallback"](b,e),[e,i.current.id]),c=D.useSyncExternalStore(l,()=>i.current.messages,()=>i.current.messages),f=D.useSyncExternalStore(i.current["~registerStatusCallback"],()=>i.current.status,()=>i.current.status),m=D.useSyncExternalStore(i.current["~registerErrorCallback"],()=>i.current.error,()=>i.current.error),v=D.useCallback(b=>{typeof b=="function"&&(b=b(i.current.messages)),i.current.messages=b},[i]);return D.useEffect(()=>{t&&i.current.resumeStream()},[t,i]),{id:i.current.id,messages:c,setMessages:v,sendMessage:i.current.sendMessage,regenerate:i.current.regenerate,clearError:i.current.clearError,stop:i.current.stop,error:m,resumeStream:i.current.resumeStream,status:f,addToolResult:i.current.addToolOutput,addToolOutput:i.current.addToolOutput}}const T$=e=>{const{messagesArea:t,inputArea:n}=e;return _.jsxs("div",{className:"chat-frame flex flex-col h-full min-h-0",children:[_.jsx("div",{className:"messages-area flex-1 flex m-h-0",style:{flex:"1 1 auto",minHeight:0},children:t}),_.jsx("div",{style:{flex:"0 0 auto",minHeight:100},className:"input-area flex-0 shrink-0 p-4",children:n})]})};/*!---------------------------------------------------------------------------------------------
350
+ * Copyright (c) StackBlitz. All rights reserved.
351
+ * Licensed under the MIT License. See License.txt in the project root for license information.
352
+ *--------------------------------------------------------------------------------------------*/const R$={damping:.7,stiffness:.05,mass:1.25},M$=70,N$=1e3/60,O$=350;let Yg=!1;(xN=globalThis.document)==null||xN.addEventListener("mousedown",()=>{Yg=!0}),(CN=globalThis.document)==null||CN.addEventListener("mouseup",()=>{Yg=!1}),(SN=globalThis.document)==null||SN.addEventListener("click",()=>{Yg=!1});const L$=(e={})=>{const[t,n]=D.useState(!1),[i,o]=D.useState(e.initial!==!1),[l,c]=D.useState(!1),f=D.useRef(null);f.current=e;const m=D.useCallback(()=>{var P;if(!Yg)return!1;const j=window.getSelection();if(!j||!j.rangeCount)return!1;const U=j.getRangeAt(0);return U.commonAncestorContainer.contains(L.current)||((P=L.current)==null?void 0:P.contains(U.commonAncestorContainer))},[]),v=D.useCallback(j=>{y.isAtBottom=j,o(j)},[]),b=D.useCallback(j=>{y.escapedFromLock=j,n(j)},[]),y=D.useMemo(()=>{let j;return{escapedFromLock:t,isAtBottom:i,resizeDifference:0,accumulated:0,velocity:0,listeners:new Set,get scrollTop(){var U,P;return(P=(U=L.current)==null?void 0:U.scrollTop)!=null?P:0},set scrollTop(U){L.current&&(L.current.scrollTop=U,y.ignoreScrollToTop=L.current.scrollTop)},get targetScrollTop(){return!L.current||!I.current?0:L.current.scrollHeight-1-L.current.clientHeight},get calculatedTargetScrollTop(){if(!L.current||!I.current)return 0;const{targetScrollTop:U}=this;if(!e.targetScrollTop)return U;if((j==null?void 0:j.targetScrollTop)===U)return j.calculatedScrollTop;const P=Math.max(Math.min(e.targetScrollTop(U,{scrollElement:L.current,contentElement:I.current}),U),0);return j={targetScrollTop:U,calculatedScrollTop:P},requestAnimationFrame(()=>{j=void 0}),P},get scrollDifference(){return this.calculatedTargetScrollTop-this.scrollTop},get isNearBottom(){return this.scrollDifference<=M$}}},[]),S=D.useCallback((j={})=>{var se,ke;typeof j=="string"&&(j={animation:j}),j.preserveScrollPosition||v(!0);const U=Date.now()+(Number(j.wait)||0),P=t3(f.current,j.animation),{ignoreEscapes:Z=!1}=j;let B,W=y.calculatedTargetScrollTop;j.duration instanceof Promise?j.duration.finally(()=>{B=Date.now()}):B=U+((se=j.duration)!=null?se:0);const G=async()=>{const ve=new Promise(requestAnimationFrame).then(()=>{var be,Ie;if(!y.isAtBottom)return y.animation=void 0,!1;const{scrollTop:de}=y,ge=performance.now(),Re=(ge-((be=y.lastTick)!=null?be:ge))/N$;if(y.animation||(y.animation={behavior:P,promise:ve,ignoreEscapes:Z}),y.animation.behavior===P&&(y.lastTick=ge),m()||U>Date.now())return G();if(de<Math.min(W,y.calculatedTargetScrollTop)){if(((Ie=y.animation)==null?void 0:Ie.behavior)===P){if(P==="instant")return y.scrollTop=y.calculatedTargetScrollTop,G();y.velocity=(P.damping*y.velocity+P.stiffness*y.scrollDifference)/P.mass,y.accumulated+=y.velocity*Re,y.scrollTop+=y.accumulated,y.scrollTop!==de&&(y.accumulated=0)}return G()}return B>Date.now()?(W=y.calculatedTargetScrollTop,G()):(y.animation=void 0,y.scrollTop<y.calculatedTargetScrollTop?S({animation:t3(f.current,f.current.resize),ignoreEscapes:Z,duration:Math.max(0,B-Date.now())||void 0}):y.isAtBottom)});return ve.then(de=>(requestAnimationFrame(()=>{y.animation||(y.lastTick=void 0,y.velocity=0)}),de))};return j.wait!==!0&&(y.animation=void 0),((ke=y.animation)==null?void 0:ke.behavior)===P?y.animation.promise:G()},[v,m,y]),C=D.useCallback(()=>{b(!0),v(!1)},[b,v]),R=D.useCallback(({target:j})=>{if(j!==L.current)return;const{scrollTop:U,ignoreScrollToTop:P}=y;let{lastScrollTop:Z=U}=y;y.lastScrollTop=U,y.ignoreScrollToTop=void 0,P&&P>U&&(Z=P),c(y.isNearBottom),setTimeout(()=>{var G;if(y.resizeDifference||U===P)return;if(m()){b(!0),v(!1);return}const B=U>Z,W=U<Z;if((G=y.animation)!=null&&G.ignoreEscapes){y.scrollTop=Z;return}W&&(b(!0),v(!1)),B&&b(!1),!y.escapedFromLock&&y.isNearBottom&&v(!0)},1)},[b,v,m,y]),M=D.useCallback(({target:j,deltaY:U})=>{var Z;let P=j;for(;!["scroll","auto"].includes(getComputedStyle(P).overflow);){if(!P.parentElement)return;P=P.parentElement}P===L.current&&U<0&&L.current.scrollHeight>L.current.clientHeight&&!((Z=y.animation)!=null&&Z.ignoreEscapes)&&(b(!0),v(!1))},[b,v,y]),L=jk(j=>{var U,P;(U=L.current)==null||U.removeEventListener("scroll",R),(P=L.current)==null||P.removeEventListener("wheel",M),j==null||j.addEventListener("scroll",R,{passive:!0}),j==null||j.addEventListener("wheel",M,{passive:!0})},[]),I=jk(j=>{var P,Z;if((P=y.resizeObserver)==null||P.disconnect(),!j)return;let U;y.resizeObserver=new ResizeObserver(([B])=>{const{height:W}=B.contentRect,G=W-(U!=null?U:W);if(y.resizeDifference=G,y.scrollTop>y.targetScrollTop&&(y.scrollTop=y.targetScrollTop),c(y.isNearBottom),G>=0){const se=t3(f.current,U?f.current.resize:f.current.initial);S({animation:se,wait:!0,preserveScrollPosition:!0,duration:se==="instant"?void 0:O$})}else y.isNearBottom&&(b(!1),v(!0));U=W,requestAnimationFrame(()=>{setTimeout(()=>{y.resizeDifference===G&&(y.resizeDifference=0)},1)})}),(Z=y.resizeObserver)==null||Z.observe(j)},[]);return{contentRef:I,scrollRef:L,scrollToBottom:S,stopScroll:C,isAtBottom:i||l,isNearBottom:l,escapedFromLock:t,state:y}};function jk(e,t){const n=D.useCallback(i=>(n.current=i,e(i)),t);return n}const e3=new Map;function t3(...e){var o,l,c;const t={...R$};let n=!1;for(const f of e){if(f==="instant"){n=!0;continue}typeof f=="object"&&(n=!1,t.damping=(o=f.damping)!=null?o:t.damping,t.stiffness=(l=f.stiffness)!=null?l:t.stiffness,t.mass=(c=f.mass)!=null?c:t.mass)}const i=JSON.stringify(t);return e3.has(i)||e3.set(i,Object.freeze(t)),n?"instant":e3.get(i)}const Fk=D.createContext(null),A$=typeof window!="undefined"?D.useLayoutEffect:D.useEffect;function Jg({instance:e,children:t,resize:n,initial:i,mass:o,damping:l,stiffness:c,targetScrollTop:f,contextRef:m,...v}){const b=D.useRef(null),y=D.useCallback((Z,B)=>{var G,se;const W=(G=P==null?void 0:P.targetScrollTop)!=null?G:f;return(se=W==null?void 0:W(Z,B))!=null?se:Z},[f]),S=L$({mass:o,damping:l,stiffness:c,resize:n,initial:i,targetScrollTop:y}),{scrollRef:C,contentRef:R,scrollToBottom:M,stopScroll:L,isAtBottom:I,escapedFromLock:j,state:U}=e!=null?e:S,P=D.useMemo(()=>({scrollToBottom:M,stopScroll:L,scrollRef:C,isAtBottom:I,escapedFromLock:j,contentRef:R,state:U,get targetScrollTop(){return b.current},set targetScrollTop(Z){b.current=Z}}),[M,I,R,C,L,j,U]);return D.useImperativeHandle(m,()=>P,[P]),A$(()=>{C.current&&getComputedStyle(C.current).overflow==="visible"&&(C.current.style.overflow="auto")},[]),_.jsx(Fk.Provider,{value:P,children:_.jsx("div",{...v,children:typeof t=="function"?t(P):t})})}(function(e){function t({children:n,...i}){const o=I$();return _.jsx("div",{ref:o.scrollRef,style:{height:"100%",width:"100%"},children:_.jsx("div",{...i,ref:o.contentRef,children:typeof n=="function"?n(o):n})})}e.Content=t})(Jg||(Jg={}));function I$(){const e=D.useContext(Fk);if(!e)throw new Error("use-stick-to-bottom component context must be used within a StickToBottom component");return e}function Uk(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function n3(...e){return t=>{let n=!1;const i=e.map(o=>{const l=Uk(o,t);return!n&&typeof l=="function"&&(n=!0),l});if(n)return()=>{for(let o=0;o<i.length;o++){const l=i[o];typeof l=="function"?l():Uk(e[o],null)}}}}function kr(...e){return D.useCallback(n3(...e),e)}var D$=Symbol.for("react.lazy"),Kg=J9[" use ".trim().toString()];function P$(e){return typeof e=="object"&&e!==null&&"then"in e}function Hk(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===D$&&"_payload"in e&&P$(e._payload)}function z$(e){const t=F$(e),n=D.forwardRef((i,o)=>{let{children:l,...c}=i;Hk(l)&&typeof Kg=="function"&&(l=Kg(l._payload));const f=D.Children.toArray(l),m=f.find(H$);if(m){const v=m.props.children,b=f.map(y=>y===m?D.Children.count(v)>1?D.Children.only(null):D.isValidElement(v)?v.props.children:null:y);return _.jsx(t,{...c,ref:o,children:D.isValidElement(v)?D.cloneElement(v,void 0,b):null})}return _.jsx(t,{...c,ref:o,children:l})});return n.displayName=`${e}.Slot`,n}var j$=z$("Slot");function F$(e){const t=D.forwardRef((n,i)=>{let{children:o,...l}=n;if(Hk(o)&&typeof Kg=="function"&&(o=Kg(o._payload)),D.isValidElement(o)){const c=B$(o),f=V$(l,o.props);return o.type!==D.Fragment&&(f.ref=i?n3(i,c):c),D.cloneElement(o,f)}return D.Children.count(o)>1?D.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var U$=Symbol("radix.slottable");function H$(e){return D.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===U$}function V$(e,t){const n={...t};for(const i in t){const o=e[i],l=t[i];/^on[A-Z]/.test(i)?o&&l?n[i]=(...f)=>{const m=l(...f);return o(...f),m}:o&&(n[i]=o):i==="style"?n[i]={...o,...l}:i==="className"&&(n[i]=[o,l].filter(Boolean).join(" "))}return{...e,...n}}function B$(e){var i,o;let t=(i=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function Vk(e){var t,n,i="";if(typeof e=="string"||typeof e=="number")i+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=Vk(e[t]))&&(i&&(i+=" "),i+=n)}else for(n in e)e[n]&&(i&&(i+=" "),i+=n);return i}function Bk(){for(var e,t,n=0,i="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Vk(e))&&(i&&(i+=" "),i+=t);return i}const $k=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Zk=Bk,$$=(e,t)=>n=>{var i;if((t==null?void 0:t.variants)==null)return Zk(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:o,defaultVariants:l}=t,c=Object.keys(o).map(v=>{const b=n==null?void 0:n[v],y=l==null?void 0:l[v];if(b===null)return null;const S=$k(b)||$k(y);return o[v][S]}),f=n&&Object.entries(n).reduce((v,b)=>{let[y,S]=b;return S===void 0||(v[y]=S),v},{}),m=t==null||(i=t.compoundVariants)===null||i===void 0?void 0:i.reduce((v,b)=>{let{class:y,className:S,...C}=b;return Object.entries(C).every(R=>{let[M,L]=R;return Array.isArray(L)?L.includes({...l,...f}[M]):{...l,...f}[M]===L})?[...v,y,S]:v},[]);return Zk(e,c,m,n==null?void 0:n.class,n==null?void 0:n.className)},Z$=(e,t)=>{const n=new Array(e.length+t.length);for(let i=0;i<e.length;i++)n[i]=e[i];for(let i=0;i<t.length;i++)n[e.length+i]=t[i];return n},W$=(e,t)=>({classGroupId:e,validator:t}),Wk=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),Xg="-",qk=[],q$="arbitrary..",G$=e=>{const t=J$(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:i}=e;return{getClassGroupId:c=>{if(c.startsWith("[")&&c.endsWith("]"))return Y$(c);const f=c.split(Xg),m=f[0]===""&&f.length>1?1:0;return Gk(f,m,t)},getConflictingClassGroupIds:(c,f)=>{if(f){const m=i[c],v=n[c];return m?v?Z$(v,m):m:v||qk}return n[c]||qk}}},Gk=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;const o=e[t],l=n.nextPart.get(o);if(l){const v=Gk(e,t+1,l);if(v)return v}const c=n.validators;if(c===null)return;const f=t===0?e.join(Xg):e.slice(t).join(Xg),m=c.length;for(let v=0;v<m;v++){const b=c[v];if(b.validator(f))return b.classGroupId}},Y$=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),n=t.indexOf(":"),i=t.slice(0,n);return i?q$+i:void 0})(),J$=e=>{const{theme:t,classGroups:n}=e;return K$(n,t)},K$=(e,t)=>{const n=Wk();for(const i in e){const o=e[i];r3(o,n,i,t)}return n},r3=(e,t,n,i)=>{const o=e.length;for(let l=0;l<o;l++){const c=e[l];X$(c,t,n,i)}},X$=(e,t,n,i)=>{if(typeof e=="string"){Q$(e,t,n);return}if(typeof e=="function"){eZ(e,t,n,i);return}tZ(e,t,n,i)},Q$=(e,t,n)=>{const i=e===""?t:Yk(t,e);i.classGroupId=n},eZ=(e,t,n,i)=>{if(nZ(e)){r3(e(i),t,n,i);return}t.validators===null&&(t.validators=[]),t.validators.push(W$(n,e))},tZ=(e,t,n,i)=>{const o=Object.entries(e),l=o.length;for(let c=0;c<l;c++){const[f,m]=o[c];r3(m,Yk(t,f),n,i)}},Yk=(e,t)=>{let n=e;const i=t.split(Xg),o=i.length;for(let l=0;l<o;l++){const c=i[l];let f=n.nextPart.get(c);f||(f=Wk(),n.nextPart.set(c,f)),n=f}return n},nZ=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,rZ=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=Object.create(null),i=Object.create(null);const o=(l,c)=>{n[l]=c,t++,t>e&&(t=0,i=n,n=Object.create(null))};return{get(l){let c=n[l];if(c!==void 0)return c;if((c=i[l])!==void 0)return o(l,c),c},set(l,c){l in n?n[l]=c:o(l,c)}}},a3="!",Jk=":",aZ=[],Kk=(e,t,n,i,o)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:i,isExternal:o}),iZ=e=>{const{prefix:t,experimentalParseClassName:n}=e;let i=o=>{const l=[];let c=0,f=0,m=0,v;const b=o.length;for(let M=0;M<b;M++){const L=o[M];if(c===0&&f===0){if(L===Jk){l.push(o.slice(m,M)),m=M+1;continue}if(L==="/"){v=M;continue}}L==="["?c++:L==="]"?c--:L==="("?f++:L===")"&&f--}const y=l.length===0?o:o.slice(m);let S=y,C=!1;y.endsWith(a3)?(S=y.slice(0,-1),C=!0):y.startsWith(a3)&&(S=y.slice(1),C=!0);const R=v&&v>m?v-m:void 0;return Kk(l,C,S,R)};if(t){const o=t+Jk,l=i;i=c=>c.startsWith(o)?l(c.slice(o.length)):Kk(aZ,!1,c,void 0,!0)}if(n){const o=i;i=l=>n({className:l,parseClassName:o})}return i},oZ=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((n,i)=>{t.set(n,1e6+i)}),n=>{const i=[];let o=[];for(let l=0;l<n.length;l++){const c=n[l],f=c[0]==="[",m=t.has(c);f||m?(o.length>0&&(o.sort(),i.push(...o),o=[]),i.push(c)):o.push(c)}return o.length>0&&(o.sort(),i.push(...o)),i}},sZ=e=>({cache:rZ(e.cacheSize),parseClassName:iZ(e),sortModifiers:oZ(e),...G$(e)}),lZ=/\s+/,uZ=(e,t)=>{const{parseClassName:n,getClassGroupId:i,getConflictingClassGroupIds:o,sortModifiers:l}=t,c=[],f=e.trim().split(lZ);let m="";for(let v=f.length-1;v>=0;v-=1){const b=f[v],{isExternal:y,modifiers:S,hasImportantModifier:C,baseClassName:R,maybePostfixModifierPosition:M}=n(b);if(y){m=b+(m.length>0?" "+m:m);continue}let L=!!M,I=i(L?R.substring(0,M):R);if(!I){if(!L){m=b+(m.length>0?" "+m:m);continue}if(I=i(R),!I){m=b+(m.length>0?" "+m:m);continue}L=!1}const j=S.length===0?"":S.length===1?S[0]:l(S).join(":"),U=C?j+a3:j,P=U+I;if(c.indexOf(P)>-1)continue;c.push(P);const Z=o(I,L);for(let B=0;B<Z.length;++B){const W=Z[B];c.push(U+W)}m=b+(m.length>0?" "+m:m)}return m},cZ=(...e)=>{let t=0,n,i,o="";for(;t<e.length;)(n=e[t++])&&(i=Xk(n))&&(o&&(o+=" "),o+=i);return o},Xk=e=>{if(typeof e=="string")return e;let t,n="";for(let i=0;i<e.length;i++)e[i]&&(t=Xk(e[i]))&&(n&&(n+=" "),n+=t);return n},dZ=(e,...t)=>{let n,i,o,l;const c=m=>{const v=t.reduce((b,y)=>y(b),e());return n=sZ(v),i=n.cache.get,o=n.cache.set,l=f,f(m)},f=m=>{const v=i(m);if(v)return v;const b=uZ(m,n);return o(m,b),b};return l=c,(...m)=>l(cZ(...m))},fZ=[],ca=e=>{const t=n=>n[e]||fZ;return t.isThemeGetter=!0,t},Qk=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,eE=/^\((?:(\w[\w-]*):)?(.+)\)$/i,pZ=/^\d+\/\d+$/,hZ=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,mZ=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,vZ=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,gZ=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,yZ=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ap=e=>pZ.test(e),fn=e=>!!e&&!Number.isNaN(Number(e)),Yu=e=>!!e&&Number.isInteger(Number(e)),i3=e=>e.endsWith("%")&&fn(e.slice(0,-1)),Zl=e=>hZ.test(e),wZ=()=>!0,bZ=e=>mZ.test(e)&&!vZ.test(e),tE=()=>!1,xZ=e=>gZ.test(e),CZ=e=>yZ.test(e),SZ=e=>!pt(e)&&!ht(e),kZ=e=>ip(e,oE,tE),pt=e=>Qk.test(e),pd=e=>ip(e,sE,bZ),o3=e=>ip(e,MZ,fn),nE=e=>ip(e,aE,tE),EZ=e=>ip(e,iE,CZ),Qg=e=>ip(e,lE,xZ),ht=e=>eE.test(e),Ph=e=>op(e,sE),_Z=e=>op(e,NZ),rE=e=>op(e,aE),TZ=e=>op(e,oE),RZ=e=>op(e,iE),e4=e=>op(e,lE,!0),ip=(e,t,n)=>{const i=Qk.exec(e);return i?i[1]?t(i[1]):n(i[2]):!1},op=(e,t,n=!1)=>{const i=eE.exec(e);return i?i[1]?t(i[1]):n:!1},aE=e=>e==="position"||e==="percentage",iE=e=>e==="image"||e==="url",oE=e=>e==="length"||e==="size"||e==="bg-size",sE=e=>e==="length",MZ=e=>e==="number",NZ=e=>e==="family-name",lE=e=>e==="shadow",OZ=dZ(()=>{const e=ca("color"),t=ca("font"),n=ca("text"),i=ca("font-weight"),o=ca("tracking"),l=ca("leading"),c=ca("breakpoint"),f=ca("container"),m=ca("spacing"),v=ca("radius"),b=ca("shadow"),y=ca("inset-shadow"),S=ca("text-shadow"),C=ca("drop-shadow"),R=ca("blur"),M=ca("perspective"),L=ca("aspect"),I=ca("ease"),j=ca("animate"),U=()=>["auto","avoid","all","avoid-page","page","left","right","column"],P=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],Z=()=>[...P(),ht,pt],B=()=>["auto","hidden","clip","visible","scroll"],W=()=>["auto","contain","none"],G=()=>[ht,pt,m],se=()=>[ap,"full","auto",...G()],ke=()=>[Yu,"none","subgrid",ht,pt],ve=()=>["auto",{span:["full",Yu,ht,pt]},Yu,ht,pt],de=()=>[Yu,"auto",ht,pt],ge=()=>["auto","min","max","fr",ht,pt],Re=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],be=()=>["start","end","center","stretch","center-safe","end-safe"],Ie=()=>["auto",...G()],ye=()=>[ap,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...G()],Q=()=>[e,ht,pt],Ne=()=>[...P(),rE,nE,{position:[ht,pt]}],H=()=>["no-repeat",{repeat:["","x","y","space","round"]}],K=()=>["auto","cover","contain",TZ,kZ,{size:[ht,pt]}],fe=()=>[i3,Ph,pd],$=()=>["","none","full",v,ht,pt],Fe=()=>["",fn,Ph,pd],it=()=>["solid","dashed","dotted","double"],Be=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Ee=()=>[fn,i3,rE,nE],Ze=()=>["","none",R,ht,pt],Je=()=>["none",fn,ht,pt],We=()=>["none",fn,ht,pt],Xe=()=>[fn,ht,pt],Et=()=>[ap,"full",...G()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Zl],breakpoint:[Zl],color:[wZ],container:[Zl],"drop-shadow":[Zl],ease:["in","out","in-out"],font:[SZ],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Zl],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Zl],shadow:[Zl],spacing:["px",fn],text:[Zl],"text-shadow":[Zl],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",ap,pt,ht,L]}],container:["container"],columns:[{columns:[fn,pt,ht,f]}],"break-after":[{"break-after":U()}],"break-before":[{"break-before":U()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:Z()}],overflow:[{overflow:B()}],"overflow-x":[{"overflow-x":B()}],"overflow-y":[{"overflow-y":B()}],overscroll:[{overscroll:W()}],"overscroll-x":[{"overscroll-x":W()}],"overscroll-y":[{"overscroll-y":W()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:se()}],"inset-x":[{"inset-x":se()}],"inset-y":[{"inset-y":se()}],start:[{start:se()}],end:[{end:se()}],top:[{top:se()}],right:[{right:se()}],bottom:[{bottom:se()}],left:[{left:se()}],visibility:["visible","invisible","collapse"],z:[{z:[Yu,"auto",ht,pt]}],basis:[{basis:[ap,"full","auto",f,...G()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[fn,ap,"auto","initial","none",pt]}],grow:[{grow:["",fn,ht,pt]}],shrink:[{shrink:["",fn,ht,pt]}],order:[{order:[Yu,"first","last","none",ht,pt]}],"grid-cols":[{"grid-cols":ke()}],"col-start-end":[{col:ve()}],"col-start":[{"col-start":de()}],"col-end":[{"col-end":de()}],"grid-rows":[{"grid-rows":ke()}],"row-start-end":[{row:ve()}],"row-start":[{"row-start":de()}],"row-end":[{"row-end":de()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":ge()}],"auto-rows":[{"auto-rows":ge()}],gap:[{gap:G()}],"gap-x":[{"gap-x":G()}],"gap-y":[{"gap-y":G()}],"justify-content":[{justify:[...Re(),"normal"]}],"justify-items":[{"justify-items":[...be(),"normal"]}],"justify-self":[{"justify-self":["auto",...be()]}],"align-content":[{content:["normal",...Re()]}],"align-items":[{items:[...be(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...be(),{baseline:["","last"]}]}],"place-content":[{"place-content":Re()}],"place-items":[{"place-items":[...be(),"baseline"]}],"place-self":[{"place-self":["auto",...be()]}],p:[{p:G()}],px:[{px:G()}],py:[{py:G()}],ps:[{ps:G()}],pe:[{pe:G()}],pt:[{pt:G()}],pr:[{pr:G()}],pb:[{pb:G()}],pl:[{pl:G()}],m:[{m:Ie()}],mx:[{mx:Ie()}],my:[{my:Ie()}],ms:[{ms:Ie()}],me:[{me:Ie()}],mt:[{mt:Ie()}],mr:[{mr:Ie()}],mb:[{mb:Ie()}],ml:[{ml:Ie()}],"space-x":[{"space-x":G()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":G()}],"space-y-reverse":["space-y-reverse"],size:[{size:ye()}],w:[{w:[f,"screen",...ye()]}],"min-w":[{"min-w":[f,"screen","none",...ye()]}],"max-w":[{"max-w":[f,"screen","none","prose",{screen:[c]},...ye()]}],h:[{h:["screen","lh",...ye()]}],"min-h":[{"min-h":["screen","lh","none",...ye()]}],"max-h":[{"max-h":["screen","lh",...ye()]}],"font-size":[{text:["base",n,Ph,pd]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[i,ht,o3]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",i3,pt]}],"font-family":[{font:[_Z,pt,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,ht,pt]}],"line-clamp":[{"line-clamp":[fn,"none",ht,o3]}],leading:[{leading:[l,...G()]}],"list-image":[{"list-image":["none",ht,pt]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",ht,pt]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:Q()}],"text-color":[{text:Q()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...it(),"wavy"]}],"text-decoration-thickness":[{decoration:[fn,"from-font","auto",ht,pd]}],"text-decoration-color":[{decoration:Q()}],"underline-offset":[{"underline-offset":[fn,"auto",ht,pt]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:G()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ht,pt]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",ht,pt]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:Ne()}],"bg-repeat":[{bg:H()}],"bg-size":[{bg:K()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Yu,ht,pt],radial:["",ht,pt],conic:[Yu,ht,pt]},RZ,EZ]}],"bg-color":[{bg:Q()}],"gradient-from-pos":[{from:fe()}],"gradient-via-pos":[{via:fe()}],"gradient-to-pos":[{to:fe()}],"gradient-from":[{from:Q()}],"gradient-via":[{via:Q()}],"gradient-to":[{to:Q()}],rounded:[{rounded:$()}],"rounded-s":[{"rounded-s":$()}],"rounded-e":[{"rounded-e":$()}],"rounded-t":[{"rounded-t":$()}],"rounded-r":[{"rounded-r":$()}],"rounded-b":[{"rounded-b":$()}],"rounded-l":[{"rounded-l":$()}],"rounded-ss":[{"rounded-ss":$()}],"rounded-se":[{"rounded-se":$()}],"rounded-ee":[{"rounded-ee":$()}],"rounded-es":[{"rounded-es":$()}],"rounded-tl":[{"rounded-tl":$()}],"rounded-tr":[{"rounded-tr":$()}],"rounded-br":[{"rounded-br":$()}],"rounded-bl":[{"rounded-bl":$()}],"border-w":[{border:Fe()}],"border-w-x":[{"border-x":Fe()}],"border-w-y":[{"border-y":Fe()}],"border-w-s":[{"border-s":Fe()}],"border-w-e":[{"border-e":Fe()}],"border-w-t":[{"border-t":Fe()}],"border-w-r":[{"border-r":Fe()}],"border-w-b":[{"border-b":Fe()}],"border-w-l":[{"border-l":Fe()}],"divide-x":[{"divide-x":Fe()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":Fe()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...it(),"hidden","none"]}],"divide-style":[{divide:[...it(),"hidden","none"]}],"border-color":[{border:Q()}],"border-color-x":[{"border-x":Q()}],"border-color-y":[{"border-y":Q()}],"border-color-s":[{"border-s":Q()}],"border-color-e":[{"border-e":Q()}],"border-color-t":[{"border-t":Q()}],"border-color-r":[{"border-r":Q()}],"border-color-b":[{"border-b":Q()}],"border-color-l":[{"border-l":Q()}],"divide-color":[{divide:Q()}],"outline-style":[{outline:[...it(),"none","hidden"]}],"outline-offset":[{"outline-offset":[fn,ht,pt]}],"outline-w":[{outline:["",fn,Ph,pd]}],"outline-color":[{outline:Q()}],shadow:[{shadow:["","none",b,e4,Qg]}],"shadow-color":[{shadow:Q()}],"inset-shadow":[{"inset-shadow":["none",y,e4,Qg]}],"inset-shadow-color":[{"inset-shadow":Q()}],"ring-w":[{ring:Fe()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:Q()}],"ring-offset-w":[{"ring-offset":[fn,pd]}],"ring-offset-color":[{"ring-offset":Q()}],"inset-ring-w":[{"inset-ring":Fe()}],"inset-ring-color":[{"inset-ring":Q()}],"text-shadow":[{"text-shadow":["none",S,e4,Qg]}],"text-shadow-color":[{"text-shadow":Q()}],opacity:[{opacity:[fn,ht,pt]}],"mix-blend":[{"mix-blend":[...Be(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Be()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[fn]}],"mask-image-linear-from-pos":[{"mask-linear-from":Ee()}],"mask-image-linear-to-pos":[{"mask-linear-to":Ee()}],"mask-image-linear-from-color":[{"mask-linear-from":Q()}],"mask-image-linear-to-color":[{"mask-linear-to":Q()}],"mask-image-t-from-pos":[{"mask-t-from":Ee()}],"mask-image-t-to-pos":[{"mask-t-to":Ee()}],"mask-image-t-from-color":[{"mask-t-from":Q()}],"mask-image-t-to-color":[{"mask-t-to":Q()}],"mask-image-r-from-pos":[{"mask-r-from":Ee()}],"mask-image-r-to-pos":[{"mask-r-to":Ee()}],"mask-image-r-from-color":[{"mask-r-from":Q()}],"mask-image-r-to-color":[{"mask-r-to":Q()}],"mask-image-b-from-pos":[{"mask-b-from":Ee()}],"mask-image-b-to-pos":[{"mask-b-to":Ee()}],"mask-image-b-from-color":[{"mask-b-from":Q()}],"mask-image-b-to-color":[{"mask-b-to":Q()}],"mask-image-l-from-pos":[{"mask-l-from":Ee()}],"mask-image-l-to-pos":[{"mask-l-to":Ee()}],"mask-image-l-from-color":[{"mask-l-from":Q()}],"mask-image-l-to-color":[{"mask-l-to":Q()}],"mask-image-x-from-pos":[{"mask-x-from":Ee()}],"mask-image-x-to-pos":[{"mask-x-to":Ee()}],"mask-image-x-from-color":[{"mask-x-from":Q()}],"mask-image-x-to-color":[{"mask-x-to":Q()}],"mask-image-y-from-pos":[{"mask-y-from":Ee()}],"mask-image-y-to-pos":[{"mask-y-to":Ee()}],"mask-image-y-from-color":[{"mask-y-from":Q()}],"mask-image-y-to-color":[{"mask-y-to":Q()}],"mask-image-radial":[{"mask-radial":[ht,pt]}],"mask-image-radial-from-pos":[{"mask-radial-from":Ee()}],"mask-image-radial-to-pos":[{"mask-radial-to":Ee()}],"mask-image-radial-from-color":[{"mask-radial-from":Q()}],"mask-image-radial-to-color":[{"mask-radial-to":Q()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":P()}],"mask-image-conic-pos":[{"mask-conic":[fn]}],"mask-image-conic-from-pos":[{"mask-conic-from":Ee()}],"mask-image-conic-to-pos":[{"mask-conic-to":Ee()}],"mask-image-conic-from-color":[{"mask-conic-from":Q()}],"mask-image-conic-to-color":[{"mask-conic-to":Q()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:Ne()}],"mask-repeat":[{mask:H()}],"mask-size":[{mask:K()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",ht,pt]}],filter:[{filter:["","none",ht,pt]}],blur:[{blur:Ze()}],brightness:[{brightness:[fn,ht,pt]}],contrast:[{contrast:[fn,ht,pt]}],"drop-shadow":[{"drop-shadow":["","none",C,e4,Qg]}],"drop-shadow-color":[{"drop-shadow":Q()}],grayscale:[{grayscale:["",fn,ht,pt]}],"hue-rotate":[{"hue-rotate":[fn,ht,pt]}],invert:[{invert:["",fn,ht,pt]}],saturate:[{saturate:[fn,ht,pt]}],sepia:[{sepia:["",fn,ht,pt]}],"backdrop-filter":[{"backdrop-filter":["","none",ht,pt]}],"backdrop-blur":[{"backdrop-blur":Ze()}],"backdrop-brightness":[{"backdrop-brightness":[fn,ht,pt]}],"backdrop-contrast":[{"backdrop-contrast":[fn,ht,pt]}],"backdrop-grayscale":[{"backdrop-grayscale":["",fn,ht,pt]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[fn,ht,pt]}],"backdrop-invert":[{"backdrop-invert":["",fn,ht,pt]}],"backdrop-opacity":[{"backdrop-opacity":[fn,ht,pt]}],"backdrop-saturate":[{"backdrop-saturate":[fn,ht,pt]}],"backdrop-sepia":[{"backdrop-sepia":["",fn,ht,pt]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":G()}],"border-spacing-x":[{"border-spacing-x":G()}],"border-spacing-y":[{"border-spacing-y":G()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",ht,pt]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[fn,"initial",ht,pt]}],ease:[{ease:["linear","initial",I,ht,pt]}],delay:[{delay:[fn,ht,pt]}],animate:[{animate:["none",j,ht,pt]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[M,ht,pt]}],"perspective-origin":[{"perspective-origin":Z()}],rotate:[{rotate:Je()}],"rotate-x":[{"rotate-x":Je()}],"rotate-y":[{"rotate-y":Je()}],"rotate-z":[{"rotate-z":Je()}],scale:[{scale:We()}],"scale-x":[{"scale-x":We()}],"scale-y":[{"scale-y":We()}],"scale-z":[{"scale-z":We()}],"scale-3d":["scale-3d"],skew:[{skew:Xe()}],"skew-x":[{"skew-x":Xe()}],"skew-y":[{"skew-y":Xe()}],transform:[{transform:[ht,pt,"","none","gpu","cpu"]}],"transform-origin":[{origin:Z()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Et()}],"translate-x":[{"translate-x":Et()}],"translate-y":[{"translate-y":Et()}],"translate-z":[{"translate-z":Et()}],"translate-none":["translate-none"],accent:[{accent:Q()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:Q()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",ht,pt]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":G()}],"scroll-mx":[{"scroll-mx":G()}],"scroll-my":[{"scroll-my":G()}],"scroll-ms":[{"scroll-ms":G()}],"scroll-me":[{"scroll-me":G()}],"scroll-mt":[{"scroll-mt":G()}],"scroll-mr":[{"scroll-mr":G()}],"scroll-mb":[{"scroll-mb":G()}],"scroll-ml":[{"scroll-ml":G()}],"scroll-p":[{"scroll-p":G()}],"scroll-px":[{"scroll-px":G()}],"scroll-py":[{"scroll-py":G()}],"scroll-ps":[{"scroll-ps":G()}],"scroll-pe":[{"scroll-pe":G()}],"scroll-pt":[{"scroll-pt":G()}],"scroll-pr":[{"scroll-pr":G()}],"scroll-pb":[{"scroll-pb":G()}],"scroll-pl":[{"scroll-pl":G()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",ht,pt]}],fill:[{fill:["none",...Q()]}],"stroke-w":[{stroke:[fn,Ph,pd,o3]}],stroke:[{stroke:["none",...Q()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}});function xt(...e){return OZ(Bk(e))}const sp=e=>{if(e.type!=="text"||!e.providerMetadata||!e.providerMetadata.raw||!e.providerMetadata.raw.data)return null;if(typeof e.providerMetadata.raw.data!="string")return e.providerMetadata.raw.data;let t;try{t=JSON.parse(e.providerMetadata.raw.data)}catch(n){console.error("invalid raw data")}return t||e.providerMetadata.raw.data},t4=e=>{const t=sp(e);return(t==null?void 0:t.type)==="mcp-fields-json"},uE=e=>{const t=sp(e);return(t==null?void 0:t.type)!=="mcp-fields-json"?null:(t==null?void 0:t.field)||null},LZ=e=>{const t=sp(e);return(t==null?void 0:t.type)==="suggestion"},cE=e=>{const t=sp(e);return(t==null?void 0:t.appendConfirm)==="save-fields"},AZ=e=>{var i;return(((i=/现在要创建一张表:“([^”]+)”/g.exec(e))==null?void 0:i[1])||"").replace(/(.*\)/,"")};function s3(e){return e.replace("<has_function_call>","")}function IZ(e,t){if(!Array.isArray(e)||e.length===0)return[];const n=[e[0]];for(let i=1;i<e.length;i++){const o=e[i],l=n[n.length-1];t(l,o)?n[n.length-1]=o:n.push(o)}return n}const DZ=(e,t,n="value")=>{var l,c;if(((l=e==null?void 0:e.widget)==null?void 0:l.type)!=="subform"||((c=t==null?void 0:t.widget)==null?void 0:c.type)!=="subform")return!0;const i=(e==null?void 0:e.widget[n])||[],o=(t==null?void 0:t.widget[n])||[];if(i.length!==o.length)return!1;for(let f=0;f<i.length;f++){const m=i[f],v=o[f];if(m.length!==v.length)return!1}return!0};function dE(e,t,n=1){const i=[],o=[];for(const l of e)t(l)?o.push(l):(o.length>0&&(i.push(o.length>=n?[...o]:o[0]),o.length=0),i.push(l));return o.length>0&&i.push(o.length>=2?[...o]:o[0]),i}const PZ=$$("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline",entry:""},size:{default:"h-[34px] px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-[24px] w-[24px]",entry:"h-[30px] px-1.5 py-0 gap-1.5"}},defaultVariants:{variant:"default",size:"default"}}),gi=D.forwardRef(({className:e,variant:t,size:n,asChild:i=!1,...o},l)=>{const c=i?j$:"button";return _.jsx(c,{className:xt(PZ({variant:t,size:n,className:e})),ref:l,...o})});gi.displayName="Button";var fE={exports:{}};/*!
353
+ Copyright (c) 2018 Jed Watson.
354
+ Licensed under the MIT License (MIT), see
355
+ http://jedwatson.github.io/classnames
356
+ */(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var l="",c=0;c<arguments.length;c++){var f=arguments[c];f&&(l=o(l,i(f)))}return l}function i(l){if(typeof l=="string"||typeof l=="number")return l;if(typeof l!="object")return"";if(Array.isArray(l))return n.apply(null,l);if(l.toString!==Object.prototype.toString&&!l.toString.toString().includes("[native code]"))return l.toString();var c="";for(var f in l)t.call(l,f)&&l[f]&&(c=o(c,f));return c}function o(l,c){return c?l?l+" "+c:l+c:l}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(fE);var zZ=fE.exports;const yi=Uu(zZ),jZ=({className:e,...t})=>_.jsx(Jg,{className:yi("relative flex-1 touch-pan-y overflow-y-auto flex will-change-scroll",e),style:{minHeight:0,height:"100%"},initial:"smooth",resize:"smooth",role:"log",...t}),FZ=({className:e,...t})=>_.jsx(Jg.Content,{className:yi("p-4",e),...t});var UZ=function e(t,n){if(t===n)return!0;if(t&&n&&typeof t=="object"&&typeof n=="object"){if(t.constructor!==n.constructor)return!1;var i,o,l;if(Array.isArray(t)){if(i=t.length,i!=n.length)return!1;for(o=i;o--!==0;)if(!e(t[o],n[o]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if(l=Object.keys(t),i=l.length,i!==Object.keys(n).length)return!1;for(o=i;o--!==0;)if(!Object.prototype.hasOwnProperty.call(n,l[o]))return!1;for(o=i;o--!==0;){var c=l[o];if(!e(t[c],n[c]))return!1}return!0}return t!==t&&n!==n};const pE=Uu(UZ),HZ=`
357
+ url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADwAAAA8CAYAAAA6/NlyAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAABMdSURBVHgB7VoJlF1Vld33vffnX79+TalKqpKQEQQiGhIUJYDKqIZBxVYQW9FWWQuWK7at3SBL2rZdirYRAV3gkrZbXS3EAUEMtEoEHJgbYiDzWEmlUuOv+vN/793b+9z3E7FAkkjbq9tVN3n577//hrvvOWfvc84LMD2mx/SYHtNjekyP6XFkQ3Fzzj///MQVV1wxq3kshr/gob770NNXjWpj+qvabJ5oDDePu/hLHOdceOHs0BizuWTCX48as2EsCB7oL/zyaO7h4P/RWPraMxfcuqWOsQYc7Wgg6Thtyj/+aO6h8OcZcl8jO5dccomb5PD9WOurXnVix0S5lHW0VhJ5TuiEqdZ8cf0TTxe2locLT95zT2XKPXDwPgfHt31TfmZXkFzW5ah4SmPR4NBnlszt/cep5/05hyUSOzNj1Gc+8/kl996/7tPb+wcfm2gEE2UerHOrcpsIo09fNsahH2rj+6EJxU85eEhPFP3hnbv3/2bNmvs//dFPfOrYKc+JXf31x97X8pXAfKzujz21ZdM/NX/7X/HUQ0C/9rXbzti3f+SRSmD0+qGieXS4ZDaU62bAD0yBaAq1uhkr+2a0WONWN+Plhhnh/hj3J3heteqbet03OgiMCULTmAxNraB1vazNEBfioW171q1effNSedaNu4zJf9yYqXM4mkn/KcPjFtxz3y/e/5Zz33jz9n1jaU5cz+7OO62pBGgwiNdqo6E5H36zj7KzlLkqx84y0PKV54RAqDW36DqXs0qSd1NJBwnHQX+guChGFROYvOCfg5zetflDI3e+8l/lFjjKcbR0blf0hhtu6Lr3p/ftjSez7yxVfa+3J69mdrSoWDzGCXPS9iwF+SN/HcU9EwERgyi7BMp+OgSvHAOX57uuYz/lRFmMybrBaDlAi6vUExtDrLm3nnjDSY5ZckX2FbP6J7/53HOPhzjK2D0aC9tzN2/e+p5Fixf++8DgaNAxo92DiixpjShgQwPjRKDUwdsrHuNxsa62to0AG/mj7WV22nILcQD5HvJLSNQCvB4YxDwX4yXgGz8pYvUlaV1oTzgbnt3xlvOXL1jbnJs+YhBHDHbrrisXLZxzS7EWaM9xHceNAqgRRp8kHTGsXXLVtOMfApIfxSh0c+6GdhGUnBX9bqJHad0EzIt9Im6EDsHzOQEXkuxeKWmclDd6wPOcidLgh1+7sO8bOEJLH2nAu/fd9+hpixbOvaXOYIvFXCcRZ3wRMBceyXj0NMdOvunKEqpye4lX2RzZeI4b48aJ85hnj6not+baa33Qwtrum0OLZawnFasBXT3Aff3G6W3UdVvrzFvvWff063GE4XkkFvZIlGIWXff9IFSul/TUIaE1z3NdkqwFKC5sv4fRhAWUalpeLGt9T0CJlYkuFNLi96ChrRt7Ap8XykN936DSMKB6cZ/W5TOqPK/acFBrBHhbrwrrszPuuy94c3Lt2rVCYuHLBYw9ewbWdXV3nF5vaCeXTTajD81/lbVOQHOI1Yq1ELv6C9i0fRjrN+/Djh3D2LVrEGOjRVSqPvx6w8a4F4vD4Saf2XwGuXwKPT15zJ3djrlzO7F4YTf6ZuQgDKhrAeKeg1LNIfiAYA3KDYVipY5W2nVRJhVk51afnN+Zf+3hsHiH+d25/PLLO/Md7WcWxoqY0dNxUFys6cRVa75GgSBvv/NpfO/b92Pj+u20dAOZfBKnnTIP8bhCT95DW1YmKBN2Ua2HKBQnUCQDiwwNDhEXzR2SlU01hKnz/ty89hwWnLwA571xMd721mX2ebEY7+HrQwQ33NYC1ALv+Hzraz73uc91XXPNNaN4CQI7nIXVw488c+uEH37gjGUnOpmkF9GhsK2JHPnaGx/GF69djVNPPwEXvfVUHDu/G9/98aP42VM7kYwplCs1iD/HmnKjjBPFtsSkaK8y0f10JKoB40A3A9lMEnw1y+uzMIHCpVeehquvOIMLDIxXNMrpBLTHhefCdZ0c0+lnNt95ztJXXIqXILCXAmzDdKQelp94dmvqnFcfq6wrN6VFGOI1Z38B4yM7cNMXr0JhoojRQokT1kgnkrjpjnUYLlSprXKNYxMMideDU5EQCC1oYz+FzQNxXx3YfSOAhRJ2jwnTcc3iMG4veubkceedV2J3UaGaS9mYd8jcyfYAr+uIVxZ4KoPn5fJTh/NHgKqTP/Qh7/M333H6/tFCuqctrw4mcxKnNbLkxR9cg7A2iNtvXoXd+4YIuEJAyrro2GQFl567lIzaoKHcaJGsTkds60t2pSICCyVIuBM2WSHKyHiNaF65TuCevZ55J1dkJw5UYnjvB2/HvKwDHUQyqMgJpXGNfhfpT3723tOvv/569cfwvagsffOeTR+/+8ZbG+df+I4Hh0bH/I5sxrqdjDLj9dnnCrj7B9/HzV+6Epu2DUBEJRQr0ioBt0wqhtX/8Svk6HKGSE3TsKETJZmyBSJhYXRPa3j5bs8jYMvyPOtAWbQucu96Aea4M6HnzsGO9btx74Nb0epXuTA8n8BVxcV62vvkmec8ePHKT4df/WH/bXiRWFYv8t3c8ltjnt2odU+r4/TGt+Kv3jQXynUtU1ZILOde8QMs7R3GqctORI0MKiAl9kigBBvHTd/7JQbGKtRpYxfBaigXRds9xyYVmkoXWT6K4SjDanqCCPa2wcgexuDQisGH94YPwBRG0V7aj2/dsQr99GePF6X56wMxjR/9g2MVeeWbHDx895uT29aubeB57j3VwmrVDWtWNHhKLdROb14jT+u6XkRWkhNLevfYA7/BqUsXE2zDWlCyfwGWSydx909/hclUK8J4HEG5BJ8hEPIxgY3hKHsSsEJ6Yk2bYh60rDylWILbP4j4icfTqiP4g1D0J3mME2jrxvC2vZicqCIpS0gUAUG2Pa6RbDGYpDJ8Zx1w8ZtXXTDVwlNlSS9/+8ofhgNBuGKR68bDGl53Yidj1keChYEkD7sP1KDHh9Cay6EyNG4tJERFF8Bj67dg2ec/AYx4KDDG1t9yF5zf/pJP8Q6lkNaNVTNRsSFLy7tROKBUxuJTTkHq2o9gdDhAfYaHkdPfCVNzbEqqyEd6dC88ElfQ0o59ewvozWfR4L3Jk2iMEzQXbVgYdabRd6kzbufemucDfEEM93Qn0mXfcYdGmeEwXjXNLe4sTing9gwU4CUDWtNDPpdGLptCOh1HW8xg4riT8LOdDiYpGRgIMP/KlSjuGmCcedCOY+NWpEdcv1HzEU7WEAxNQO8bg9k9DL1zM7qu+Rsc2EwrlhqI76wj88lPMUbHotgTIiuNR7POdeHAyARi9LAE1zNBCRwdLiLLhanX7OI6YXfcPZyF8egwnHQV+PEm4LQ+jfseG8NfXzAXdT9kCsgkg9Kjcnms/MhtyOaYJRFsV3srZqVdPHLKeZhPy1rJSVBvueqGCUaJoCxKvxEx1CEqaaaiAsflVNwkdnJRYrkkFwg2x44lm78zVg1DR/E+UkYq0fhiFfFmtc1sF2mvAhPP8pyoro63vFB2XwB4L/PVnz0VudswBb7DVG3s2pqWW40WFz31vTgzHg/VSYPd42PwuRAnnENWTvI8ma1gSUQyw3SMx3xraeVEFRTM72NTUboEuGEp5KaILU1AFgXvk5A5uxawkh91JEOKTF7nfQWo9POEzDPJGiaSlLKA8yDoDucIZOm4mTzI6kfHREaUnURzWk09bE44KgjBZoStVa16ZmO2LS7XeykCT4tIejbDMl7MNgWsvkqJ5QoIz+q6kZCx3QE2ARKwIB1e7yRJSAnhDnJwImvPl+ssBZAXhExtpSVZn6yfx+wrFmBGKwmUi724EzishVvZtHh1B92FVUp7XDVdrtnq4M3FrUFHclQ0QaWbmsmHm8IEsllWM/SMuAp5FqQEai5ttCi6VIHKpCzJCUmZ9jwUExlrb+2iJcUYjNteCGSNahU2MhNtTKXStoJCKh1ZiQhTrEs1H+a5cbi0kMeFmsd6Y6zO67lwmfgLdfgFFnZZjkgOGYbSknGQTSatZaNoMEiSDg21lyWxjUcp6Soy4ZiH9X93I8u4EnoWOug5xsMjZ/89VM+cyDuG9mPeg19F9vKLm3VjiOwH34Xe//wimXeEjkAgM+dh89tXo+cED3NOdNCSrWP/J1eTetshNGyyLbR8GtJKkpjLMbWUhXdlfiTKrtYEjulmNUdjpfTBfsphLNw9MvZ9N+x8X5Y+loknEI+Ws9l/Ajq7JFVNMrxCrqyDztaIqbMsLOD0Ycd5H8NzXZ0Y3bANXlsH4rSCkJiZORvbT/oAetZ+AR2fvdjGXvXJIexddjXUzPlRA4ENQDM2iV/NvhrJBb3w+vfhmFOXoCGLWqPnsOPhcz5lk4YuV9HXmWVoO6izsopRJTzG+Y59jpW+RlmHS+vDD0/Fp17E4vrrvzbmyac0Znc6mJ0awXtXdliO8RhnD22q4YwVn8J7Lp6PCXYfpAVTJ5GxxWpzZJuqNaVW2ZzZ2ITD6iyZuNZ/AA1eJwWFw0Ql0dtj+12KXCE6LTGtTURMNrvmtdLY8xi7Hn1cmgkSVhNDCXz5X1aiszNnCVIWdR8Zd/WPXOwZj2P5cgd3rYqiHc/rbr4g8ZB/lrRVfjeeSy4xkwFWvD4XVTnyI6l+Rs7BzMXzMVIxtlKRtoslHsaopHhhszKykw61LfajPJzaSAWI9XSzheJFgEhoAtYwnkPbKRES8qwaGD5Luc3WD0FqHqeB2b5lYsH09rwVx6GvtwW1qixIiNaMi/knxMyN3zdqUbcyFy1rbL0rwhRMtejUETvt+MwrE4WfnrX8+PHfzJmlaEEmIKFYMsAx7QofvvIs/OLno2hLOra+FTiusC8iBpVCXeJfUbqE9MR6jkgO6dt1GA5ynPvKSRAUY86VzkcL3FiO+ko39Vqp4SSzOLckmw4JfsbSlKw8ktk86+DXYd5bj6Pb1mmxgOFBd6atwpyLd501cf+rUnesfN+KhLy1iB3Opace5+sQUwnDMNnwpfYLSRgetjCLuuaWB/DQ2o0469Up6nGDcRYeqmtt2xaRpQ/myZJaSkUktw5V3C6OVlIGCviElT/mTDzMOZLAlHxaLyApUWiTDt+geSk8MTkX7zg3jY+d68EraqsckrPEKEndfWk/p+zNX/S91EsBPvT7I09t+FZP3yve09USONR5uqAmQTn43X7g69/7NW7/t0exoC+LHibt8WZzzxbygW+lJWq/6qgJIK5v00vPJhG8guCpp7Sk5jxDhyzMODXxzCHA4kENnjNMKSu4aaxaPo6LTnKQM/QYEpbIeZq6voUs5anJO06fd8ylLwnoMICdyy67LHvDV741Ua35piPvKOki+mwSZ5nA1k0c+8dq+O5dG/D44wPYtrfIaqrI2G0gQU1MkeJjjDmPE5JP+qh1XwEq5WLo5m06CTfD6ipPYC2oJ3PcmMFRDAKmqW67odyEODNRw2UzC5jVleXCxm160ELLpmn9TC5u7qkZdetVl+d/vmZNES+jp2VBb9i0/cvxIHd1vpeMpaU5HlpWFELJJBmfnjTXSFpVjcliHQOjJWzaM4mdg5MYmiTJFAOMTjakHmC/jbm2uC83lWL145GpM3RhamyChJthltTaqtCZUZhJML2eT66gxrIJnlRRCZmhBHWy9m3j+Q4l8SHKQ2HkwE0X9vWtwmEa8kcEWFZsuFLduHnH+MIl3TnPYxIwSh0Mg+D3tbkVUseCly62YjIcd2JRK6f5IGnn2AZ72GzcSW+a3uKHLqJ2r7ZtH6Eg212mnRqIihG5QZz3ZL2CHubaOeYiFHl2PhtBwnP3JJLxBQfn+nIBy7Ba9uzg6H/9ZOPuk4bHRsz7l5/szEhnWBfUm/2qqGoRnYx6V0250k4Uw7bToW1HMrDFgxO9StHK9sLC5huLwLZ4XDuzqBnLRSRZplgdtJCYZmRdtHcmJJU1gZbXq2ZbPBE/FlP09uUCPgT6wae2/W1y/uwvDW3dw2SnihV9xzqxVA37mdMysigRjm2p1iURCUzE1JLm2QpKW60VApO2kGH+XReCE0b3vKjf5UTZlLbvZWh13kexVaRiPo6ZlcbCZIyvkAOTcT1nX/++z/bN6bsOkfz4RwLiaN8PN4tThD9e9+j1K15/ykfbfOQRDzGwoYEJ6mB/dZDtqEHMacmgk7luhjKWIHtLjItWs6xmhlbHECWlWKqxxKOkSatWqiB2UTQlrioszWKhMSvHJLZu2zjVXf1Ug3acP6OzsWXr5u9cd+11V61Zs6benNcRvTn8UwA/H7h90AXvfnf3yvMuOnvBkqUX6QUzlqS8bM9xnHp1ogzix04hN0fqf74FlAuTbJ4LYzOGyzw2ydx5dGQMhVIJY/SAOqujGWefgTZpz6ZRV9XauN49smn3M8/+pLTz8R/efN11O/H7N//h0U78f+I/tbxI09uoM898QyLV1dXitc1KFZl6LTl+fjpMtsRr5XIq0GHSDWPa1EMVVoxJ6oqfcbO1Lds3ljKzZpb3bNpYDGZnqk/edtsRuen0mB7TY3pMj+kxPabH9Pi/MP4bmKmJQPnWQYkAAAAASUVORK5CYII=)
358
+ `,VZ="url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAtAAAABoBAMAAAAqf9qeAAAAD1BMVEXx/+by/+ry/+7z//Hz//QpjUuZAAAIvUlEQVR42uSaW5KjMAxFfXcgZQfADpjeQWf/a5oqLDmPwXLhAH2ZPh+dfBrVaeVaKN0X/lQZ1xm0SWJHm9zGderluteoFno2xgq3jK6AdxIR8kCRWSmwM64zGxsK3W/0kAmMlkIiAgWtM2TOMHoyqkZrDSihyE9Gv8ut/2IPx240rmW0kBudWa3zRXq0oTv26K8DjM4EPfrhMZXRBfxE6vje02g3hdJoPLiI0c3UIZw9Whxtp45xq9FfZ6YOyvI6QCrU6+0PN1bw6tAZzVTzd6NlV6PP7NHK3KPxIDVbtN52N/p7q9HjltRBZXRBDWiNY412fonRGhk9Mhg9GFfv0UHq4DBaq4CvumupIxre6cJFjFbOS/gORk8UPVoUBmPnQMGN7ujR03R+6ggH0g6T0VK+NEOHnmr0vMFoh9do8Bo9/689Wts3w/EMo2dne+ogrK7zfKpoeGefDEYPwzWHHVHo+Nzoe1DozGajh0sOpIGEQqtHsxh9zWFHOQqaqYPdaAiz0Q/skD1Gz5meQv+WHi0pHTPq6C90y2it47Ikh0ZpAHiRWxG8YOlY6+gx2qgavSFIE70Hf0sd+HmjJ2N76lBYjcVhMXrx+eViGI2jOYwOhx32AMkAT+wovxeB0Q6H0eGqEq/RCY4bjWDUwWF00KNdF4PKaGvTAEvq6F/sUHGj2VIHFvI3bY46LmC0gjZIJ5HjjP6KCn3AYofXWGGwKI2n2GFH7Ni8m7w2HUZ3vGIZgtThTToZNEY//rsUGhFPSfcyOn7F4kSLHaqMG9JA/iNSTvix0Z8X2pnj7bvYaMnQKJ0PAwDSbtEnGT07QewIeDaZRenngYCdMBh10Bk9rAkNM9rgCdIpyavR4Dc6U2kcT7cvsOwbYGFpIFHoaPdoi9EHGd0/7KBJ0iXTe8+QfVPH/WSjFa9Gg+NuCOSPFIcOHVr3lT6jj7waImWDyIwGUqRye6bUZfQRww6FCbM4xBKkUXp0kiB0qJnTYfT9bKMdmENEd0NLHVcyOp52mC+LQhyXQzgpDB3FnxuL0W5yaLR3RordDs/0CRqHjvi+0mt0e9jRvVBqnxx3QzvCx0ZPXpogdASF3vVq6ECX5swykhYDbrSiZ6bkNe4o9P7DDlHbmsi9keAtC4xliwbt0KEji9F/mzvDJKdhGIxaN5B7gyY3oHsD9v5nYvpZsgkzlliliiPKFn7FEa/ys+yU7X+J5pusDdv1lehpdKDvQ7RrHfDpco+WNEnIaoURRomeEq25CSc64TEWqtRovscuizp90RRHpANbs4Z0eImOi/QsyUo0lTswrQMA0Tq+kEYr0YFER0W6h0E0+LmFSXMPUqKNnaw7ES35tYnG+w12WYiG/5BNtNMk1dx8nmhjNrQ6pfjRNo7ucLhjTBWinjOkPelAfJJoXzvMr2Tj2om+gUlDfiSKnjyxSvRz+zHRX06i4yLddzGtbum7Rt9hl2X0EGX57YRL9OlEnycaoURXKjc43KEjGETX2KGObZfcxBMd0I4HwiaairK8FGnw3MIm2rW700QHtMP2DiWaynKTVp4xAh2e+dDsPNF3I5qVaC58B5NuQwDQp4j+hTCkI4Ho7WkXaRB9B5MWnjXqNPzT/rsSHUh0XKT76OwaDZ7WqrRcW6TD14653bUIER0XaXsJTnjdwaQPPHP9ANH7nkJ0UDsIRFcBeSnSOkUwV1KiyTrsn0C0L9KvoHaAaNzi2pP/JFHwspv++oefE/3lJPq0diCmRIvgrTVpXHWArDNihOiXEh1JdFykzSJNevQfDxquQ5pItAOj4EocL9GbfthfOUTHtIPqIBqxCmnugTQTGngx6ZBqejHRm0O0zIS1rDRp0DzAZqylyADalI450d9OotO0Q2uHzIcLkeZ+8ULA+f2LalA6EK9gouMi7Zzt0J0WxJpzpXQMFDQ+IR2I/WKiN0s7qHfX5WHwJedKAXRv4FVuMsRR6cgl+rXFWtJ6gKJSWYY0HYKbCRnbso50TOPLS3RUO/xNluZ2LeOjQi9BWi8PlAk/AtJhPG9vJFoTfUY7fKK1yd6l42qkiQ7WAaLZ210xSnQi0b52IObFo8+FgvTFROOKEhXGWcPN6F3jXKI/rR3UiK4C9opnDuWKjWrdlmen0xEi+ttLdKJ2KNHUpsNSFpwrHRfEpIwB4WdYoxGBRGdqRzPoA9FUrmQaQPdCLVMhuA5KRxbRvnY8+yDnfdL2ajW6OFU6CWj8Fn+eO4fczBaRDj/Rad0OnQfbuaXCdPVZaQDdC7RWaFQyWzpcoiOJTtUOXR2ihpRy/QEP8KxvVTJMU+3wpCONaF87tHY8LaLRMSvA60rzoOMVtZk40bsBy3wuPEN0qnYo0XhJXOnShwVpFaINnrOkw0+0T7RzFp1Zya7ljZeSlh4DaNWO8VVPU4sOlOhQouPaMUOaDyfSiwJtVOksoIvsYEKkp0TjXlzpyEi0rx0aBtHd8ACYUaVzgMYVWf/VrUZHReU4Kx1+on+Hi7RxXElaDCC61WbDpVOAhnaQToKE14RpLFcSpAOJPqkdGOHcpIn6zQEtoy+dCTSBaM+i3/JkzIVriUbdcB6Ea9ZR/2p2BPrScaBZzz1Uyzr0PtztlT2W6LPdjqeQMENai+M4V2qsD3OAlq/IVMecAC3JTpAOJPqsdqB2WERLcex84d1AOgVolA0xDsui4RyedOQkepcwZ8M6N2mqUhzxF6HZQDoDaCoMnDGMWYkG1OZyJZ9ov0jPTVpb/7hJzW4+0vxvhZYJ2WpFt0/mFt5e8RN9vtvh/D+/uiOKrnQ60qD4ADTyLN3xGdCN6PrwiU5J9IjNN+nHjGii/tEFawbSKUCzzBQ20bAOY7mSS7S/Ntzw/LSFNBbgoIrR7UhmGhQfKrS4TzMOq3WHEp0gHUj0+SIttj/1DhDNyDSI7kgnMS0ky5sSDcWc1Q5F5RFYF4YSHWzgYaBTosf5IEKNTkVaLzCAFtcw0vwYkSMd338AsPwZPYZjSIIAAAAASUVORK5CYII=)",co="transition-all duration-200 ease-out",hE=({size:e=30,className:t})=>_.jsx("div",{className:t,style:{backgroundImage:`${HZ}`,backgroundRepeat:"no-repeat",backgroundSize:"cover",width:e,height:e,aspectRatio:"1/1"}}),n4=({name:e,icon:t,variant:n="default"})=>{const i=n==="default"?20:24,o={default:"text-[#999] text-[14px] font-[400]",active:"text-[#0265FF] text-[14px] font-[500]"};return _.jsxs("div",{className:"flex items-center gap-1.5",children:[t||_.jsx(hE,{size:i}),_.jsx("div",{className:o[n],children:e})]})},mE=e=>_.jsxs("div",{className:"flex items-center gap-[6px]",children:[_.jsxs("div",{className:"flex gap-[2px] flex-shrink-0",style:{marginRight:"6px"},children:[_.jsx("div",{className:"w-[5px] h-[5px] rounded-full bg-[#999] flex-shrink-0",style:{animation:"pulse 1.4s ease-in-out infinite",animationDelay:"0s",width:"5px",height:"5px",background:"#999",marginRight:"3px"}}),_.jsx("div",{className:"w-[5px] h-[5px] rounded-full bg-[#999] flex-shrink-0",style:{animation:"pulse 1.4s ease-in-out infinite",width:"5px",height:"5px",background:"#999",animationDelay:"0.2s",marginRight:"3px"}}),_.jsx("div",{className:"w-[5px] h-[5px] rounded-full bg-[#999] flex-shrink-0",style:{animation:"pulse 1.4s ease-in-out infinite",width:"5px",height:"5px",marginRight:"3px",background:"#999",animationDelay:"0.4s"}})]}),_.jsx("span",{className:"text-[14px] text-[#999]",children:e.children||"生成中"}),_.jsx("style",{children:`
359
+ @keyframes pulse {
360
+ 0%, 60%, 100% {
361
+ opacity: 0.3;
362
+ transform: scale(1);
363
+ }
364
+ 30% {
365
+ opacity: 1;
366
+ transform: scale(1.2);
367
+ }
368
+ }
369
+ `})]}),vE=()=>{const{pluginList:e}=Vl(t=>({pluginList:t.chatAreaPluginInstList}));return e},l3=e=>vE().map(i=>{var o;return{pluginName:i.pluginName,Component:(o=i.customComponents)==null?void 0:o[e]}}).filter(i=>!!i.Component),r4=e=>{const t=l3(e);return t.length>0?t[0]:null},BZ=({role:e,requiresScrollPadding:t,hasTextPart:n,children:i,isLoading:o})=>{const l=e==="assistant",c=e==="user",f=r4("AvatarAndName"),m=f==null?void 0:f.Component,v=m?_.jsx(m,{}):_.jsx(n4,{name:"AI表单搭建"});return _.jsx("div",{className:"group/message w-full","data-role":e,"data-testid":`message-${e}`,children:_.jsxs("div",{className:xt("flex w-full justify-start flex-col gap-2.5",{"items-end":e==="user","items-start":e==="assistant"}),children:[e==="assistant"&&v,_.jsxs("div",{className:xt("flex flex-col min-w-0",{"gap-2 md:gap-4":n,grow:l,"min-h-96":l&&t,"w-full":l&&n,"max-w-[calc(100%-2.5rem)] sm:max-w-[min(fit-content,80%)]":c}),children:[i,o&&_.jsx(mE,{})]})]})})},wi=({children:e,className:t,...n})=>_.jsx("div",{className:yi("flex flex-col gap-[10px] overflow-hidden p-0 text-foreground text-sm","group-[.is-user]:bg-primary group-[.is-user]:text-primary-foreground","group-[.is-assistant]:bg-secondary group-[.is-assistant]:text-foreground","is-user:dark overflow-visible",t),...n,children:e});function u3(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var hd=u3();function gE(e){hd=e}var zh={exec:()=>null};function An(e,t=""){let n=typeof e=="string"?e:e.source,i={replace:(o,l)=>{let c=typeof l=="string"?l:l.source;return c=c.replace(bi.caret,"$1"),n=n.replace(o,c),i},getRegex:()=>new RegExp(n,t)};return i}var $Z=(()=>{try{return!!new RegExp("(?<=1)(?<!1)")}catch(e){return!1}})(),bi={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>new RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}#`),htmlBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}<(?:[a-z].*>|!--)`,"i")},ZZ=/^(?:[ \t]*(?:\n|$))+/,WZ=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,qZ=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,jh=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,GZ=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,c3=/(?:[*+-]|\d{1,9}[.)])/,yE=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,wE=An(yE).replace(/bull/g,c3).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),YZ=An(yE).replace(/bull/g,c3).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),d3=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,JZ=/^[^\n]+/,f3=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,KZ=An(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",f3).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),XZ=An(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,c3).getRegex(),a4="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",p3=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,QZ=An("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",p3).replace("tag",a4).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),bE=An(d3).replace("hr",jh).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",a4).getRegex(),eW=An(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",bE).getRegex(),h3={blockquote:eW,code:WZ,def:KZ,fences:qZ,heading:GZ,hr:jh,html:QZ,lheading:wE,list:XZ,newline:ZZ,paragraph:bE,table:zh,text:JZ},xE=An("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",jh).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",a4).getRegex(),tW={...h3,lheading:YZ,table:xE,paragraph:An(d3).replace("hr",jh).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",xE).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",a4).getRegex()},nW={...h3,html:An(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",p3).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:zh,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:An(d3).replace("hr",jh).replace("heading",` *#{1,6} *[^
370
+ ]`).replace("lheading",wE).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},rW=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,aW=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,CE=/^( {2,}|\\)\n(?!\s*$)/,iW=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,i4=/[\p{P}\p{S}]/u,m3=/[\s\p{P}\p{S}]/u,SE=/[^\s\p{P}\p{S}]/u,oW=An(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,m3).getRegex(),kE=/(?!~)[\p{P}\p{S}]/u,sW=/(?!~)[\s\p{P}\p{S}]/u,lW=/(?:[^\s\p{P}\p{S}]|~)/u,uW=An(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",$Z?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),EE=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,cW=An(EE,"u").replace(/punct/g,i4).getRegex(),dW=An(EE,"u").replace(/punct/g,kE).getRegex(),_E="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",fW=An(_E,"gu").replace(/notPunctSpace/g,SE).replace(/punctSpace/g,m3).replace(/punct/g,i4).getRegex(),pW=An(_E,"gu").replace(/notPunctSpace/g,lW).replace(/punctSpace/g,sW).replace(/punct/g,kE).getRegex(),hW=An("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,SE).replace(/punctSpace/g,m3).replace(/punct/g,i4).getRegex(),mW=An(/\\(punct)/,"gu").replace(/punct/g,i4).getRegex(),vW=An(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),gW=An(p3).replace("(?:-->|$)","-->").getRegex(),yW=An("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",gW).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),o4=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,wW=An(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",o4).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),TE=An(/^!?\[(label)\]\[(ref)\]/).replace("label",o4).replace("ref",f3).getRegex(),RE=An(/^!?\[(ref)\](?:\[\])?/).replace("ref",f3).getRegex(),bW=An("reflink|nolink(?!\\()","g").replace("reflink",TE).replace("nolink",RE).getRegex(),ME=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,v3={_backpedal:zh,anyPunctuation:mW,autolink:vW,blockSkip:uW,br:CE,code:aW,del:zh,emStrongLDelim:cW,emStrongRDelimAst:fW,emStrongRDelimUnd:hW,escape:rW,link:wW,nolink:RE,punctuation:oW,reflink:TE,reflinkSearch:bW,tag:yW,text:iW,url:zh},xW={...v3,link:An(/^!?\[(label)\]\((.*?)\)/).replace("label",o4).getRegex(),reflink:An(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",o4).getRegex()},g3={...v3,emStrongRDelimAst:pW,emStrongLDelim:dW,url:An(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",ME).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:An(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",ME).getRegex()},CW={...g3,br:An(CE).replace("{2,}","*").getRegex(),text:An(g3.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},s4={normal:h3,gfm:tW,pedantic:nW},Fh={normal:v3,gfm:g3,breaks:CW,pedantic:xW},SW={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},NE=e=>SW[e];function Wl(e,t){if(t){if(bi.escapeTest.test(e))return e.replace(bi.escapeReplace,NE)}else if(bi.escapeTestNoEncode.test(e))return e.replace(bi.escapeReplaceNoEncode,NE);return e}function OE(e){try{e=encodeURI(e).replace(bi.percentDecode,"%")}catch(t){return null}return e}function LE(e,t){var l;let n=e.replace(bi.findPipe,(c,f,m)=>{let v=!1,b=f;for(;--b>=0&&m[b]==="\\";)v=!v;return v?"|":" |"}),i=n.split(bi.splitPipe),o=0;if(i[0].trim()||i.shift(),i.length>0&&!((l=i.at(-1))!=null&&l.trim())&&i.pop(),t)if(i.length>t)i.splice(t);else for(;i.length<t;)i.push("");for(;o<i.length;o++)i[o]=i[o].trim().replace(bi.slashPipe,"|");return i}function Uh(e,t,n){let i=e.length;if(i===0)return"";let o=0;for(;o<i&&e.charAt(i-o-1)===t;)o++;return e.slice(0,i-o)}function kW(e,t){if(e.indexOf(t[1])===-1)return-1;let n=0;for(let i=0;i<e.length;i++)if(e[i]==="\\")i++;else if(e[i]===t[0])n++;else if(e[i]===t[1]&&(n--,n<0))return i;return n>0?-2:-1}function AE(e,t,n,i,o){let l=t.href,c=t.title||null,f=e[1].replace(o.other.outputLinkReplace,"$1");i.state.inLink=!0;let m={type:e[0].charAt(0)==="!"?"image":"link",raw:n,href:l,title:c,text:f,tokens:i.inlineTokens(f)};return i.state.inLink=!1,m}function EW(e,t,n){let i=e.match(n.other.indentCodeCompensation);if(i===null)return t;let o=i[1];return t.split(`
371
+ `).map(l=>{let c=l.match(n.other.beginningSpace);if(c===null)return l;let[f]=c;return f.length>=o.length?l.slice(o.length):l}).join(`
372
+ `)}var l4=class{constructor(e){kt(this,"options");kt(this,"rules");kt(this,"lexer");this.options=e||hd}space(e){let t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){let t=this.rules.block.code.exec(e);if(t){let n=t[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?n:Uh(n,`
373
+ `)}}}fences(e){let t=this.rules.block.fences.exec(e);if(t){let n=t[0],i=EW(n,t[3]||"",this.rules);return{type:"code",raw:n,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):t[2],text:i}}}heading(e){let t=this.rules.block.heading.exec(e);if(t){let n=t[2].trim();if(this.rules.other.endingHash.test(n)){let i=Uh(n,"#");(this.options.pedantic||!i||this.rules.other.endingSpaceChar.test(i))&&(n=i.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:n,tokens:this.lexer.inline(n)}}}hr(e){let t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:Uh(t[0],`
374
+ `)}}blockquote(e){let t=this.rules.block.blockquote.exec(e);if(t){let n=Uh(t[0],`
375
+ `).split(`
376
+ `),i="",o="",l=[];for(;n.length>0;){let c=!1,f=[],m;for(m=0;m<n.length;m++)if(this.rules.other.blockquoteStart.test(n[m]))f.push(n[m]),c=!0;else if(!c)f.push(n[m]);else break;n=n.slice(m);let v=f.join(`
377
+ `),b=v.replace(this.rules.other.blockquoteSetextReplace,`
378
+ $1`).replace(this.rules.other.blockquoteSetextReplace2,"");i=i?`${i}
379
+ ${v}`:v,o=o?`${o}
380
+ ${b}`:b;let y=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(b,l,!0),this.lexer.state.top=y,n.length===0)break;let S=l.at(-1);if((S==null?void 0:S.type)==="code")break;if((S==null?void 0:S.type)==="blockquote"){let C=S,R=C.raw+`
381
+ `+n.join(`
382
+ `),M=this.blockquote(R);l[l.length-1]=M,i=i.substring(0,i.length-C.raw.length)+M.raw,o=o.substring(0,o.length-C.text.length)+M.text;break}else if((S==null?void 0:S.type)==="list"){let C=S,R=C.raw+`
383
+ `+n.join(`
384
+ `),M=this.list(R);l[l.length-1]=M,i=i.substring(0,i.length-S.raw.length)+M.raw,o=o.substring(0,o.length-C.raw.length)+M.raw,n=R.substring(l.at(-1).raw.length).split(`
385
+ `);continue}}return{type:"blockquote",raw:i,tokens:l,text:o}}}list(e){var n,i;let t=this.rules.block.list.exec(e);if(t){let o=t[1].trim(),l=o.length>1,c={type:"list",raw:"",ordered:l,start:l?+o.slice(0,-1):"",loose:!1,items:[]};o=l?`\\d{1,9}\\${o.slice(-1)}`:`\\${o}`,this.options.pedantic&&(o=l?o:"[*+-]");let f=this.rules.other.listItemRegex(o),m=!1;for(;e;){let b=!1,y="",S="";if(!(t=f.exec(e))||this.rules.block.hr.test(e))break;y=t[0],e=e.substring(y.length);let C=t[2].split(`
386
+ `,1)[0].replace(this.rules.other.listReplaceTabs,I=>" ".repeat(3*I.length)),R=e.split(`
387
+ `,1)[0],M=!C.trim(),L=0;if(this.options.pedantic?(L=2,S=C.trimStart()):M?L=t[1].length+1:(L=t[2].search(this.rules.other.nonSpaceChar),L=L>4?1:L,S=C.slice(L),L+=t[1].length),M&&this.rules.other.blankLine.test(R)&&(y+=R+`
388
+ `,e=e.substring(R.length+1),b=!0),!b){let I=this.rules.other.nextBulletRegex(L),j=this.rules.other.hrRegex(L),U=this.rules.other.fencesBeginRegex(L),P=this.rules.other.headingBeginRegex(L),Z=this.rules.other.htmlBeginRegex(L);for(;e;){let B=e.split(`
389
+ `,1)[0],W;if(R=B,this.options.pedantic?(R=R.replace(this.rules.other.listReplaceNesting," "),W=R):W=R.replace(this.rules.other.tabCharGlobal," "),U.test(R)||P.test(R)||Z.test(R)||I.test(R)||j.test(R))break;if(W.search(this.rules.other.nonSpaceChar)>=L||!R.trim())S+=`
390
+ `+W.slice(L);else{if(M||C.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||U.test(C)||P.test(C)||j.test(C))break;S+=`
391
+ `+R}!M&&!R.trim()&&(M=!0),y+=B+`
392
+ `,e=e.substring(B.length+1),C=W.slice(L)}}c.loose||(m?c.loose=!0:this.rules.other.doubleBlankLine.test(y)&&(m=!0)),c.items.push({type:"list_item",raw:y,task:!!this.options.gfm&&this.rules.other.listIsTask.test(S),loose:!1,text:S,tokens:[]}),c.raw+=y}let v=c.items.at(-1);if(v)v.raw=v.raw.trimEnd(),v.text=v.text.trimEnd();else return;c.raw=c.raw.trimEnd();for(let b of c.items){if(this.lexer.state.top=!1,b.tokens=this.lexer.blockTokens(b.text,[]),b.task){if(b.text=b.text.replace(this.rules.other.listReplaceTask,""),((n=b.tokens[0])==null?void 0:n.type)==="text"||((i=b.tokens[0])==null?void 0:i.type)==="paragraph"){b.tokens[0].raw=b.tokens[0].raw.replace(this.rules.other.listReplaceTask,""),b.tokens[0].text=b.tokens[0].text.replace(this.rules.other.listReplaceTask,"");for(let S=this.lexer.inlineQueue.length-1;S>=0;S--)if(this.rules.other.listIsTask.test(this.lexer.inlineQueue[S].src)){this.lexer.inlineQueue[S].src=this.lexer.inlineQueue[S].src.replace(this.rules.other.listReplaceTask,"");break}}let y=this.rules.other.listTaskCheckbox.exec(b.raw);if(y){let S={type:"checkbox",raw:y[0]+" ",checked:y[0]!=="[ ]"};b.checked=S.checked,c.loose?b.tokens[0]&&["paragraph","text"].includes(b.tokens[0].type)&&"tokens"in b.tokens[0]&&b.tokens[0].tokens?(b.tokens[0].raw=S.raw+b.tokens[0].raw,b.tokens[0].text=S.raw+b.tokens[0].text,b.tokens[0].tokens.unshift(S)):b.tokens.unshift({type:"paragraph",raw:S.raw,text:S.raw,tokens:[S]}):b.tokens.unshift(S)}}if(!c.loose){let y=b.tokens.filter(C=>C.type==="space"),S=y.length>0&&y.some(C=>this.rules.other.anyLine.test(C.raw));c.loose=S}}if(c.loose)for(let b of c.items){b.loose=!0;for(let y of b.tokens)y.type==="text"&&(y.type="paragraph")}return c}}html(e){let t=this.rules.block.html.exec(e);if(t)return{type:"html",block:!0,raw:t[0],pre:t[1]==="pre"||t[1]==="script"||t[1]==="style",text:t[0]}}def(e){let t=this.rules.block.def.exec(e);if(t){let n=t[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),i=t[2]?t[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",o=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):t[3];return{type:"def",tag:n,raw:t[0],href:i,title:o}}}table(e){var c;let t=this.rules.block.table.exec(e);if(!t||!this.rules.other.tableDelimiter.test(t[2]))return;let n=LE(t[1]),i=t[2].replace(this.rules.other.tableAlignChars,"").split("|"),o=(c=t[3])!=null&&c.trim()?t[3].replace(this.rules.other.tableRowBlankLine,"").split(`
393
+ `):[],l={type:"table",raw:t[0],header:[],align:[],rows:[]};if(n.length===i.length){for(let f of i)this.rules.other.tableAlignRight.test(f)?l.align.push("right"):this.rules.other.tableAlignCenter.test(f)?l.align.push("center"):this.rules.other.tableAlignLeft.test(f)?l.align.push("left"):l.align.push(null);for(let f=0;f<n.length;f++)l.header.push({text:n[f],tokens:this.lexer.inline(n[f]),header:!0,align:l.align[f]});for(let f of o)l.rows.push(LE(f,l.header.length).map((m,v)=>({text:m,tokens:this.lexer.inline(m),header:!1,align:l.align[v]})));return l}}lheading(e){let t=this.rules.block.lheading.exec(e);if(t)return{type:"heading",raw:t[0],depth:t[2].charAt(0)==="="?1:2,text:t[1],tokens:this.lexer.inline(t[1])}}paragraph(e){let t=this.rules.block.paragraph.exec(e);if(t){let n=t[1].charAt(t[1].length-1)===`
394
+ `?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:n,tokens:this.lexer.inline(n)}}}text(e){let t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){let t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:t[1]}}tag(e){let t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&this.rules.other.startATag.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){let t=this.rules.inline.link.exec(e);if(t){let n=t[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(n)){if(!this.rules.other.endAngleBracket.test(n))return;let l=Uh(n.slice(0,-1),"\\");if((n.length-l.length)%2===0)return}else{let l=kW(t[2],"()");if(l===-2)return;if(l>-1){let c=(t[0].indexOf("!")===0?5:4)+t[1].length+l;t[2]=t[2].substring(0,l),t[0]=t[0].substring(0,c).trim(),t[3]=""}}let i=t[2],o="";if(this.options.pedantic){let l=this.rules.other.pedanticHrefTitle.exec(i);l&&(i=l[1],o=l[3])}else o=t[3]?t[3].slice(1,-1):"";return i=i.trim(),this.rules.other.startAngleBracket.test(i)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(n)?i=i.slice(1):i=i.slice(1,-1)),AE(t,{href:i&&i.replace(this.rules.inline.anyPunctuation,"$1"),title:o&&o.replace(this.rules.inline.anyPunctuation,"$1")},t[0],this.lexer,this.rules)}}reflink(e,t){let n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){let i=(n[2]||n[1]).replace(this.rules.other.multipleSpaceGlobal," "),o=t[i.toLowerCase()];if(!o){let l=n[0].charAt(0);return{type:"text",raw:l,text:l}}return AE(n,o,n[0],this.lexer,this.rules)}}emStrong(e,t,n=""){let i=this.rules.inline.emStrongLDelim.exec(e);if(!(!i||i[3]&&n.match(this.rules.other.unicodeAlphaNumeric))&&(!(i[1]||i[2])||!n||this.rules.inline.punctuation.exec(n))){let o=[...i[0]].length-1,l,c,f=o,m=0,v=i[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(v.lastIndex=0,t=t.slice(-1*e.length+o);(i=v.exec(t))!=null;){if(l=i[1]||i[2]||i[3]||i[4]||i[5]||i[6],!l)continue;if(c=[...l].length,i[3]||i[4]){f+=c;continue}else if((i[5]||i[6])&&o%3&&!((o+c)%3)){m+=c;continue}if(f-=c,f>0)continue;c=Math.min(c,c+f+m);let b=[...i[0]][0].length,y=e.slice(0,o+i.index+b+c);if(Math.min(o,c)%2){let C=y.slice(1,-1);return{type:"em",raw:y,text:C,tokens:this.lexer.inlineTokens(C)}}let S=y.slice(2,-2);return{type:"strong",raw:y,text:S,tokens:this.lexer.inlineTokens(S)}}}}codespan(e){let t=this.rules.inline.code.exec(e);if(t){let n=t[2].replace(this.rules.other.newLineCharGlobal," "),i=this.rules.other.nonSpaceChar.test(n),o=this.rules.other.startingSpaceChar.test(n)&&this.rules.other.endingSpaceChar.test(n);return i&&o&&(n=n.substring(1,n.length-1)),{type:"codespan",raw:t[0],text:n}}}br(e){let t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e){let t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2])}}autolink(e){let t=this.rules.inline.autolink.exec(e);if(t){let n,i;return t[2]==="@"?(n=t[1],i="mailto:"+n):(n=t[1],i=n),{type:"link",raw:t[0],text:n,href:i,tokens:[{type:"text",raw:n,text:n}]}}}url(e){var n,i;let t;if(t=this.rules.inline.url.exec(e)){let o,l;if(t[2]==="@")o=t[0],l="mailto:"+o;else{let c;do c=t[0],t[0]=(i=(n=this.rules.inline._backpedal.exec(t[0]))==null?void 0:n[0])!=null?i:"";while(c!==t[0]);o=t[0],t[1]==="www."?l="http://"+t[0]:l=t[0]}return{type:"link",raw:t[0],text:o,href:l,tokens:[{type:"text",raw:o,text:o}]}}}inlineText(e){let t=this.rules.inline.text.exec(e);if(t){let n=this.lexer.state.inRawBlock;return{type:"text",raw:t[0],text:t[0],escaped:n}}}},fs=class gw{constructor(t){kt(this,"tokens");kt(this,"options");kt(this,"state");kt(this,"inlineQueue");kt(this,"tokenizer");this.tokens=[],this.tokens.links=Object.create(null),this.options=t||hd,this.options.tokenizer=this.options.tokenizer||new l4,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let n={other:bi,block:s4.normal,inline:Fh.normal};this.options.pedantic?(n.block=s4.pedantic,n.inline=Fh.pedantic):this.options.gfm&&(n.block=s4.gfm,this.options.breaks?n.inline=Fh.breaks:n.inline=Fh.gfm),this.tokenizer.rules=n}static get rules(){return{block:s4,inline:Fh}}static lex(t,n){return new gw(n).lex(t)}static lexInline(t,n){return new gw(n).inlineTokens(t)}lex(t){t=t.replace(bi.carriageReturn,`
395
+ `),this.blockTokens(t,this.tokens);for(let n=0;n<this.inlineQueue.length;n++){let i=this.inlineQueue[n];this.inlineTokens(i.src,i.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(t,n=[],i=!1){var o,l,c;for(this.options.pedantic&&(t=t.replace(bi.tabCharGlobal," ").replace(bi.spaceLine,""));t;){let f;if((l=(o=this.options.extensions)==null?void 0:o.block)!=null&&l.some(v=>(f=v.call({lexer:this},t,n))?(t=t.substring(f.raw.length),n.push(f),!0):!1))continue;if(f=this.tokenizer.space(t)){t=t.substring(f.raw.length);let v=n.at(-1);f.raw.length===1&&v!==void 0?v.raw+=`
396
+ `:n.push(f);continue}if(f=this.tokenizer.code(t)){t=t.substring(f.raw.length);let v=n.at(-1);(v==null?void 0:v.type)==="paragraph"||(v==null?void 0:v.type)==="text"?(v.raw+=(v.raw.endsWith(`
397
+ `)?"":`
398
+ `)+f.raw,v.text+=`
399
+ `+f.text,this.inlineQueue.at(-1).src=v.text):n.push(f);continue}if(f=this.tokenizer.fences(t)){t=t.substring(f.raw.length),n.push(f);continue}if(f=this.tokenizer.heading(t)){t=t.substring(f.raw.length),n.push(f);continue}if(f=this.tokenizer.hr(t)){t=t.substring(f.raw.length),n.push(f);continue}if(f=this.tokenizer.blockquote(t)){t=t.substring(f.raw.length),n.push(f);continue}if(f=this.tokenizer.list(t)){t=t.substring(f.raw.length),n.push(f);continue}if(f=this.tokenizer.html(t)){t=t.substring(f.raw.length),n.push(f);continue}if(f=this.tokenizer.def(t)){t=t.substring(f.raw.length);let v=n.at(-1);(v==null?void 0:v.type)==="paragraph"||(v==null?void 0:v.type)==="text"?(v.raw+=(v.raw.endsWith(`
400
+ `)?"":`
401
+ `)+f.raw,v.text+=`
402
+ `+f.raw,this.inlineQueue.at(-1).src=v.text):this.tokens.links[f.tag]||(this.tokens.links[f.tag]={href:f.href,title:f.title},n.push(f));continue}if(f=this.tokenizer.table(t)){t=t.substring(f.raw.length),n.push(f);continue}if(f=this.tokenizer.lheading(t)){t=t.substring(f.raw.length),n.push(f);continue}let m=t;if((c=this.options.extensions)!=null&&c.startBlock){let v=1/0,b=t.slice(1),y;this.options.extensions.startBlock.forEach(S=>{y=S.call({lexer:this},b),typeof y=="number"&&y>=0&&(v=Math.min(v,y))}),v<1/0&&v>=0&&(m=t.substring(0,v+1))}if(this.state.top&&(f=this.tokenizer.paragraph(m))){let v=n.at(-1);i&&(v==null?void 0:v.type)==="paragraph"?(v.raw+=(v.raw.endsWith(`
403
+ `)?"":`
404
+ `)+f.raw,v.text+=`
405
+ `+f.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=v.text):n.push(f),i=m.length!==t.length,t=t.substring(f.raw.length);continue}if(f=this.tokenizer.text(t)){t=t.substring(f.raw.length);let v=n.at(-1);(v==null?void 0:v.type)==="text"?(v.raw+=(v.raw.endsWith(`
406
+ `)?"":`
407
+ `)+f.raw,v.text+=`
408
+ `+f.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=v.text):n.push(f);continue}if(t){let v="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(v);break}else throw new Error(v)}}return this.state.top=!0,n}inline(t,n=[]){return this.inlineQueue.push({src:t,tokens:n}),n}inlineTokens(t,n=[]){var m,v,b,y,S,C;let i=t,o=null;if(this.tokens.links){let R=Object.keys(this.tokens.links);if(R.length>0)for(;(o=this.tokenizer.rules.inline.reflinkSearch.exec(i))!=null;)R.includes(o[0].slice(o[0].lastIndexOf("[")+1,-1))&&(i=i.slice(0,o.index)+"["+"a".repeat(o[0].length-2)+"]"+i.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(o=this.tokenizer.rules.inline.anyPunctuation.exec(i))!=null;)i=i.slice(0,o.index)+"++"+i.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);let l;for(;(o=this.tokenizer.rules.inline.blockSkip.exec(i))!=null;)l=o[2]?o[2].length:0,i=i.slice(0,o.index+l)+"["+"a".repeat(o[0].length-l-2)+"]"+i.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);i=(b=(v=(m=this.options.hooks)==null?void 0:m.emStrongMask)==null?void 0:v.call({lexer:this},i))!=null?b:i;let c=!1,f="";for(;t;){c||(f=""),c=!1;let R;if((S=(y=this.options.extensions)==null?void 0:y.inline)!=null&&S.some(L=>(R=L.call({lexer:this},t,n))?(t=t.substring(R.raw.length),n.push(R),!0):!1))continue;if(R=this.tokenizer.escape(t)){t=t.substring(R.raw.length),n.push(R);continue}if(R=this.tokenizer.tag(t)){t=t.substring(R.raw.length),n.push(R);continue}if(R=this.tokenizer.link(t)){t=t.substring(R.raw.length),n.push(R);continue}if(R=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(R.raw.length);let L=n.at(-1);R.type==="text"&&(L==null?void 0:L.type)==="text"?(L.raw+=R.raw,L.text+=R.text):n.push(R);continue}if(R=this.tokenizer.emStrong(t,i,f)){t=t.substring(R.raw.length),n.push(R);continue}if(R=this.tokenizer.codespan(t)){t=t.substring(R.raw.length),n.push(R);continue}if(R=this.tokenizer.br(t)){t=t.substring(R.raw.length),n.push(R);continue}if(R=this.tokenizer.del(t)){t=t.substring(R.raw.length),n.push(R);continue}if(R=this.tokenizer.autolink(t)){t=t.substring(R.raw.length),n.push(R);continue}if(!this.state.inLink&&(R=this.tokenizer.url(t))){t=t.substring(R.raw.length),n.push(R);continue}let M=t;if((C=this.options.extensions)!=null&&C.startInline){let L=1/0,I=t.slice(1),j;this.options.extensions.startInline.forEach(U=>{j=U.call({lexer:this},I),typeof j=="number"&&j>=0&&(L=Math.min(L,j))}),L<1/0&&L>=0&&(M=t.substring(0,L+1))}if(R=this.tokenizer.inlineText(M)){t=t.substring(R.raw.length),R.raw.slice(-1)!=="_"&&(f=R.raw.slice(-1)),c=!0;let L=n.at(-1);(L==null?void 0:L.type)==="text"?(L.raw+=R.raw,L.text+=R.text):n.push(R);continue}if(t){let L="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(L);break}else throw new Error(L)}}return n}},u4=class{constructor(e){kt(this,"options");kt(this,"parser");this.options=e||hd}space(e){return""}code({text:e,lang:t,escaped:n}){var l;let i=(l=(t||"").match(bi.notSpaceStart))==null?void 0:l[0],o=e.replace(bi.endingNewline,"")+`
409
+ `;return i?'<pre><code class="language-'+Wl(i)+'">'+(n?o:Wl(o,!0))+`</code></pre>
410
+ `:"<pre><code>"+(n?o:Wl(o,!0))+`</code></pre>
411
+ `}blockquote({tokens:e}){return`<blockquote>
412
+ ${this.parser.parse(e)}</blockquote>
413
+ `}html({text:e}){return e}def(e){return""}heading({tokens:e,depth:t}){return`<h${t}>${this.parser.parseInline(e)}</h${t}>
414
+ `}hr(e){return`<hr>
415
+ `}list(e){let t=e.ordered,n=e.start,i="";for(let c=0;c<e.items.length;c++){let f=e.items[c];i+=this.listitem(f)}let o=t?"ol":"ul",l=t&&n!==1?' start="'+n+'"':"";return"<"+o+l+`>
416
+ `+i+"</"+o+`>
417
+ `}listitem(e){return`<li>${this.parser.parse(e.tokens)}</li>
418
+ `}checkbox({checked:e}){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox"> '}paragraph({tokens:e}){return`<p>${this.parser.parseInline(e)}</p>
419
+ `}table(e){let t="",n="";for(let o=0;o<e.header.length;o++)n+=this.tablecell(e.header[o]);t+=this.tablerow({text:n});let i="";for(let o=0;o<e.rows.length;o++){let l=e.rows[o];n="";for(let c=0;c<l.length;c++)n+=this.tablecell(l[c]);i+=this.tablerow({text:n})}return i&&(i=`<tbody>${i}</tbody>`),`<table>
420
+ <thead>
421
+ `+t+`</thead>
422
+ `+i+`</table>
423
+ `}tablerow({text:e}){return`<tr>
424
+ ${e}</tr>
425
+ `}tablecell(e){let t=this.parser.parseInline(e.tokens),n=e.header?"th":"td";return(e.align?`<${n} align="${e.align}">`:`<${n}>`)+t+`</${n}>
426
+ `}strong({tokens:e}){return`<strong>${this.parser.parseInline(e)}</strong>`}em({tokens:e}){return`<em>${this.parser.parseInline(e)}</em>`}codespan({text:e}){return`<code>${Wl(e,!0)}</code>`}br(e){return"<br>"}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:t,tokens:n}){let i=this.parser.parseInline(n),o=OE(e);if(o===null)return i;e=o;let l='<a href="'+e+'"';return t&&(l+=' title="'+Wl(t)+'"'),l+=">"+i+"</a>",l}image({href:e,title:t,text:n,tokens:i}){i&&(n=this.parser.parseInline(i,this.parser.textRenderer));let o=OE(e);if(o===null)return Wl(n);e=o;let l=`<img src="${e}" alt="${n}"`;return t&&(l+=` title="${Wl(t)}"`),l+=">",l}text(e){return"tokens"in e&&e.tokens?this.parser.parseInline(e.tokens):"escaped"in e&&e.escaped?e.text:Wl(e.text)}},y3=class{strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return""+e}image({text:e}){return""+e}br(){return""}checkbox({raw:e}){return e}},ps=class yw{constructor(t){kt(this,"options");kt(this,"renderer");kt(this,"textRenderer");this.options=t||hd,this.options.renderer=this.options.renderer||new u4,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new y3}static parse(t,n){return new yw(n).parse(t)}static parseInline(t,n){return new yw(n).parseInline(t)}parse(t){var i,o;let n="";for(let l=0;l<t.length;l++){let c=t[l];if((o=(i=this.options.extensions)==null?void 0:i.renderers)!=null&&o[c.type]){let m=c,v=this.options.extensions.renderers[m.type].call({parser:this},m);if(v!==!1||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(m.type)){n+=v||"";continue}}let f=c;switch(f.type){case"space":{n+=this.renderer.space(f);break}case"hr":{n+=this.renderer.hr(f);break}case"heading":{n+=this.renderer.heading(f);break}case"code":{n+=this.renderer.code(f);break}case"table":{n+=this.renderer.table(f);break}case"blockquote":{n+=this.renderer.blockquote(f);break}case"list":{n+=this.renderer.list(f);break}case"checkbox":{n+=this.renderer.checkbox(f);break}case"html":{n+=this.renderer.html(f);break}case"def":{n+=this.renderer.def(f);break}case"paragraph":{n+=this.renderer.paragraph(f);break}case"text":{n+=this.renderer.text(f);break}default:{let m='Token with "'+f.type+'" type was not found.';if(this.options.silent)return console.error(m),"";throw new Error(m)}}}return n}parseInline(t,n=this.renderer){var o,l;let i="";for(let c=0;c<t.length;c++){let f=t[c];if((l=(o=this.options.extensions)==null?void 0:o.renderers)!=null&&l[f.type]){let v=this.options.extensions.renderers[f.type].call({parser:this},f);if(v!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(f.type)){i+=v||"";continue}}let m=f;switch(m.type){case"escape":{i+=n.text(m);break}case"html":{i+=n.html(m);break}case"link":{i+=n.link(m);break}case"image":{i+=n.image(m);break}case"checkbox":{i+=n.checkbox(m);break}case"strong":{i+=n.strong(m);break}case"em":{i+=n.em(m);break}case"codespan":{i+=n.codespan(m);break}case"br":{i+=n.br(m);break}case"del":{i+=n.del(m);break}case"text":{i+=n.text(m);break}default:{let v='Token with "'+m.type+'" type was not found.';if(this.options.silent)return console.error(v),"";throw new Error(v)}}}return i}},Hh=(e0=class{constructor(e){kt(this,"options");kt(this,"block");this.options=e||hd}preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}emStrongMask(e){return e}provideLexer(){return this.block?fs.lex:fs.lexInline}provideParser(){return this.block?ps.parse:ps.parseInline}},kt(e0,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens","emStrongMask"])),kt(e0,"passThroughHooksRespectAsync",new Set(["preprocess","postprocess","processAllTokens"])),e0),_W=class{constructor(...e){kt(this,"defaults",u3());kt(this,"options",this.setOptions);kt(this,"parse",this.parseMarkdown(!0));kt(this,"parseInline",this.parseMarkdown(!1));kt(this,"Parser",ps);kt(this,"Renderer",u4);kt(this,"TextRenderer",y3);kt(this,"Lexer",fs);kt(this,"Tokenizer",l4);kt(this,"Hooks",Hh);this.use(...e)}walkTokens(e,t){var i,o;let n=[];for(let l of e)switch(n=n.concat(t.call(this,l)),l.type){case"table":{let c=l;for(let f of c.header)n=n.concat(this.walkTokens(f.tokens,t));for(let f of c.rows)for(let m of f)n=n.concat(this.walkTokens(m.tokens,t));break}case"list":{let c=l;n=n.concat(this.walkTokens(c.items,t));break}default:{let c=l;(o=(i=this.defaults.extensions)==null?void 0:i.childTokens)!=null&&o[c.type]?this.defaults.extensions.childTokens[c.type].forEach(f=>{let m=c[f].flat(1/0);n=n.concat(this.walkTokens(m,t))}):c.tokens&&(n=n.concat(this.walkTokens(c.tokens,t)))}}return n}use(...e){let t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(n=>{let i={...n};if(i.async=this.defaults.async||i.async||!1,n.extensions&&(n.extensions.forEach(o=>{if(!o.name)throw new Error("extension name required");if("renderer"in o){let l=t.renderers[o.name];l?t.renderers[o.name]=function(...c){let f=o.renderer.apply(this,c);return f===!1&&(f=l.apply(this,c)),f}:t.renderers[o.name]=o.renderer}if("tokenizer"in o){if(!o.level||o.level!=="block"&&o.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let l=t[o.level];l?l.unshift(o.tokenizer):t[o.level]=[o.tokenizer],o.start&&(o.level==="block"?t.startBlock?t.startBlock.push(o.start):t.startBlock=[o.start]:o.level==="inline"&&(t.startInline?t.startInline.push(o.start):t.startInline=[o.start]))}"childTokens"in o&&o.childTokens&&(t.childTokens[o.name]=o.childTokens)}),i.extensions=t),n.renderer){let o=this.defaults.renderer||new u4(this.defaults);for(let l in n.renderer){if(!(l in o))throw new Error(`renderer '${l}' does not exist`);if(["options","parser"].includes(l))continue;let c=l,f=n.renderer[c],m=o[c];o[c]=(...v)=>{let b=f.apply(o,v);return b===!1&&(b=m.apply(o,v)),b||""}}i.renderer=o}if(n.tokenizer){let o=this.defaults.tokenizer||new l4(this.defaults);for(let l in n.tokenizer){if(!(l in o))throw new Error(`tokenizer '${l}' does not exist`);if(["options","rules","lexer"].includes(l))continue;let c=l,f=n.tokenizer[c],m=o[c];o[c]=(...v)=>{let b=f.apply(o,v);return b===!1&&(b=m.apply(o,v)),b}}i.tokenizer=o}if(n.hooks){let o=this.defaults.hooks||new Hh;for(let l in n.hooks){if(!(l in o))throw new Error(`hook '${l}' does not exist`);if(["options","block"].includes(l))continue;let c=l,f=n.hooks[c],m=o[c];Hh.passThroughHooks.has(l)?o[c]=v=>{if(this.defaults.async&&Hh.passThroughHooksRespectAsync.has(l))return(async()=>{let y=await f.call(o,v);return m.call(o,y)})();let b=f.call(o,v);return m.call(o,b)}:o[c]=(...v)=>{if(this.defaults.async)return(async()=>{let y=await f.apply(o,v);return y===!1&&(y=await m.apply(o,v)),y})();let b=f.apply(o,v);return b===!1&&(b=m.apply(o,v)),b}}i.hooks=o}if(n.walkTokens){let o=this.defaults.walkTokens,l=n.walkTokens;i.walkTokens=function(c){let f=[];return f.push(l.call(this,c)),o&&(f=f.concat(o.call(this,c))),f}}this.defaults={...this.defaults,...i}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return fs.lex(e,t!=null?t:this.defaults)}parser(e,t){return ps.parse(e,t!=null?t:this.defaults)}parseMarkdown(e){return(t,n)=>{let i={...n},o={...this.defaults,...i},l=this.onError(!!o.silent,!!o.async);if(this.defaults.async===!0&&i.async===!1)return l(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof t>"u"||t===null)return l(new Error("marked(): input parameter is undefined or null"));if(typeof t!="string")return l(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(t)+", string expected"));if(o.hooks&&(o.hooks.options=o,o.hooks.block=e),o.async)return(async()=>{let c=o.hooks?await o.hooks.preprocess(t):t,f=await(o.hooks?await o.hooks.provideLexer():e?fs.lex:fs.lexInline)(c,o),m=o.hooks?await o.hooks.processAllTokens(f):f;o.walkTokens&&await Promise.all(this.walkTokens(m,o.walkTokens));let v=await(o.hooks?await o.hooks.provideParser():e?ps.parse:ps.parseInline)(m,o);return o.hooks?await o.hooks.postprocess(v):v})().catch(l);try{o.hooks&&(t=o.hooks.preprocess(t));let c=(o.hooks?o.hooks.provideLexer():e?fs.lex:fs.lexInline)(t,o);o.hooks&&(c=o.hooks.processAllTokens(c)),o.walkTokens&&this.walkTokens(c,o.walkTokens);let f=(o.hooks?o.hooks.provideParser():e?ps.parse:ps.parseInline)(c,o);return o.hooks&&(f=o.hooks.postprocess(f)),f}catch(c){return l(c)}}}onError(e,t){return n=>{if(n.message+=`
427
+ Please report this to https://github.com/markedjs/marked.`,e){let i="<p>An error occurred:</p><pre>"+Wl(n.message+"",!0)+"</pre>";return t?Promise.resolve(i):i}if(t)return Promise.reject(n);throw n}}},md=new _W;function Jn(e,t){return md.parse(e,t)}Jn.options=Jn.setOptions=function(e){return md.setOptions(e),Jn.defaults=md.defaults,gE(Jn.defaults),Jn},Jn.getDefaults=u3,Jn.defaults=hd,Jn.use=function(...e){return md.use(...e),Jn.defaults=md.defaults,gE(Jn.defaults),Jn},Jn.walkTokens=function(e,t){return md.walkTokens(e,t)},Jn.parseInline=md.parseInline,Jn.Parser=ps,Jn.parser=ps.parse,Jn.Renderer=u4,Jn.TextRenderer=y3,Jn.Lexer=fs,Jn.lexer=fs.lex,Jn.Tokenizer=l4,Jn.Hooks=Hh,Jn.parse=Jn,Jn.options,Jn.setOptions,Jn.use,Jn.walkTokens,Jn.parseInline,ps.parse,fs.lex;function Bue(){}function $ue(){}function TW(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const RW=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,MW=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,NW={};function IE(e,t){return(NW.jsx?MW:RW).test(e)}const OW=/[ \t\n\f\r]/g;function LW(e){return typeof e=="object"?e.type==="text"?DE(e.value):!1:DE(e)}function DE(e){return e.replace(OW,"")===""}class Vh{constructor(t,n,i){this.normal=n,this.property=t,i&&(this.space=i)}}Vh.prototype.normal={},Vh.prototype.property={},Vh.prototype.space=void 0;function PE(e,t){const n={},i={};for(const o of e)Object.assign(n,o.property),Object.assign(i,o.normal);return new Vh(n,i,t)}function w3(e){return e.toLowerCase()}class Fi{constructor(t,n){this.attribute=n,this.property=t}}Fi.prototype.attribute="",Fi.prototype.booleanish=!1,Fi.prototype.boolean=!1,Fi.prototype.commaOrSpaceSeparated=!1,Fi.prototype.commaSeparated=!1,Fi.prototype.defined=!1,Fi.prototype.mustUseProperty=!1,Fi.prototype.number=!1,Fi.prototype.overloadedBoolean=!1,Fi.prototype.property="",Fi.prototype.spaceSeparated=!1,Fi.prototype.space=void 0;let AW=0;const on=vd(),ra=vd(),b3=vd(),Ve=vd(),dr=vd(),lp=vd(),fo=vd();function vd(){return 2**++AW}const x3=Object.freeze(Object.defineProperty({__proto__:null,boolean:on,booleanish:ra,commaOrSpaceSeparated:fo,commaSeparated:lp,number:Ve,overloadedBoolean:b3,spaceSeparated:dr},Symbol.toStringTag,{value:"Module"})),C3=Object.keys(x3);class S3 extends Fi{constructor(t,n,i,o){let l=-1;if(super(t,n),zE(this,"space",o),typeof i=="number")for(;++l<C3.length;){const c=C3[l];zE(this,C3[l],(i&x3[c])===x3[c])}}}S3.prototype.defined=!0;function zE(e,t,n){n&&(e[t]=n)}function up(e){const t={},n={};for(const[i,o]of Object.entries(e.properties)){const l=new S3(i,e.transform(e.attributes||{},i),o,e.space);e.mustUseProperty&&e.mustUseProperty.includes(i)&&(l.mustUseProperty=!0),t[i]=l,n[w3(i)]=i,n[w3(l.attribute)]=i}return new Vh(t,n,e.space)}const jE=up({properties:{ariaActiveDescendant:null,ariaAtomic:ra,ariaAutoComplete:null,ariaBusy:ra,ariaChecked:ra,ariaColCount:Ve,ariaColIndex:Ve,ariaColSpan:Ve,ariaControls:dr,ariaCurrent:null,ariaDescribedBy:dr,ariaDetails:null,ariaDisabled:ra,ariaDropEffect:dr,ariaErrorMessage:null,ariaExpanded:ra,ariaFlowTo:dr,ariaGrabbed:ra,ariaHasPopup:null,ariaHidden:ra,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:dr,ariaLevel:Ve,ariaLive:null,ariaModal:ra,ariaMultiLine:ra,ariaMultiSelectable:ra,ariaOrientation:null,ariaOwns:dr,ariaPlaceholder:null,ariaPosInSet:Ve,ariaPressed:ra,ariaReadOnly:ra,ariaRelevant:null,ariaRequired:ra,ariaRoleDescription:dr,ariaRowCount:Ve,ariaRowIndex:Ve,ariaRowSpan:Ve,ariaSelected:ra,ariaSetSize:Ve,ariaSort:null,ariaValueMax:Ve,ariaValueMin:Ve,ariaValueNow:Ve,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function FE(e,t){return t in e?e[t]:t}function UE(e,t){return FE(e,t.toLowerCase())}const IW=up({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:lp,acceptCharset:dr,accessKey:dr,action:null,allow:null,allowFullScreen:on,allowPaymentRequest:on,allowUserMedia:on,alt:null,as:null,async:on,autoCapitalize:null,autoComplete:dr,autoFocus:on,autoPlay:on,blocking:dr,capture:null,charSet:null,checked:on,cite:null,className:dr,cols:Ve,colSpan:null,content:null,contentEditable:ra,controls:on,controlsList:dr,coords:Ve|lp,crossOrigin:null,data:null,dateTime:null,decoding:null,default:on,defer:on,dir:null,dirName:null,disabled:on,download:b3,draggable:ra,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:on,formTarget:null,headers:dr,height:Ve,hidden:b3,high:Ve,href:null,hrefLang:null,htmlFor:dr,httpEquiv:dr,id:null,imageSizes:null,imageSrcSet:null,inert:on,inputMode:null,integrity:null,is:null,isMap:on,itemId:null,itemProp:dr,itemRef:dr,itemScope:on,itemType:dr,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:on,low:Ve,manifest:null,max:null,maxLength:Ve,media:null,method:null,min:null,minLength:Ve,multiple:on,muted:on,name:null,nonce:null,noModule:on,noValidate:on,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:on,optimum:Ve,pattern:null,ping:dr,placeholder:null,playsInline:on,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:on,referrerPolicy:null,rel:dr,required:on,reversed:on,rows:Ve,rowSpan:Ve,sandbox:dr,scope:null,scoped:on,seamless:on,selected:on,shadowRootClonable:on,shadowRootDelegatesFocus:on,shadowRootMode:null,shape:null,size:Ve,sizes:null,slot:null,span:Ve,spellCheck:ra,src:null,srcDoc:null,srcLang:null,srcSet:null,start:Ve,step:null,style:null,tabIndex:Ve,target:null,title:null,translate:null,type:null,typeMustMatch:on,useMap:null,value:ra,width:Ve,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:dr,axis:null,background:null,bgColor:null,border:Ve,borderColor:null,bottomMargin:Ve,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:on,declare:on,event:null,face:null,frame:null,frameBorder:null,hSpace:Ve,leftMargin:Ve,link:null,longDesc:null,lowSrc:null,marginHeight:Ve,marginWidth:Ve,noResize:on,noHref:on,noShade:on,noWrap:on,object:null,profile:null,prompt:null,rev:null,rightMargin:Ve,rules:null,scheme:null,scrolling:ra,standby:null,summary:null,text:null,topMargin:Ve,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Ve,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:on,disableRemotePlayback:on,prefix:null,property:null,results:Ve,security:null,unselectable:null},space:"html",transform:UE}),DW=up({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:fo,accentHeight:Ve,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:Ve,amplitude:Ve,arabicForm:null,ascent:Ve,attributeName:null,attributeType:null,azimuth:Ve,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:Ve,by:null,calcMode:null,capHeight:Ve,className:dr,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:Ve,diffuseConstant:Ve,direction:null,display:null,dur:null,divisor:Ve,dominantBaseline:null,download:on,dx:null,dy:null,edgeMode:null,editable:null,elevation:Ve,enableBackground:null,end:null,event:null,exponent:Ve,externalResourcesRequired:null,fill:null,fillOpacity:Ve,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:lp,g2:lp,glyphName:lp,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:Ve,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:Ve,horizOriginX:Ve,horizOriginY:Ve,id:null,ideographic:Ve,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:Ve,k:Ve,k1:Ve,k2:Ve,k3:Ve,k4:Ve,kernelMatrix:fo,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:Ve,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:Ve,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:Ve,overlineThickness:Ve,paintOrder:null,panose1:null,path:null,pathLength:Ve,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:dr,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:Ve,pointsAtY:Ve,pointsAtZ:Ve,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:fo,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:fo,rev:fo,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:fo,requiredFeatures:fo,requiredFonts:fo,requiredFormats:fo,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:Ve,specularExponent:Ve,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:Ve,strikethroughThickness:Ve,string:null,stroke:null,strokeDashArray:fo,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:Ve,strokeOpacity:Ve,strokeWidth:null,style:null,surfaceScale:Ve,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:fo,tabIndex:Ve,tableValues:null,target:null,targetX:Ve,targetY:Ve,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:fo,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:Ve,underlineThickness:Ve,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:Ve,values:null,vAlphabetic:Ve,vMathematical:Ve,vectorEffect:null,vHanging:Ve,vIdeographic:Ve,version:null,vertAdvY:Ve,vertOriginX:Ve,vertOriginY:Ve,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:Ve,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:FE}),HE=up({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),VE=up({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:UE}),BE=up({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),PW={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},zW=/[A-Z]/g,$E=/-[a-z]/g,jW=/^data[-\w.:]+$/i;function FW(e,t){const n=w3(t);let i=t,o=Fi;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&jW.test(t)){if(t.charAt(4)==="-"){const l=t.slice(5).replace($E,HW);i="data"+l.charAt(0).toUpperCase()+l.slice(1)}else{const l=t.slice(4);if(!$E.test(l)){let c=l.replace(zW,UW);c.charAt(0)!=="-"&&(c="-"+c),t="data"+c}}o=S3}return new o(i,t)}function UW(e){return"-"+e.toLowerCase()}function HW(e){return e.charAt(1).toUpperCase()}const VW=PE([jE,IW,HE,VE,BE],"html"),k3=PE([jE,DW,HE,VE,BE],"svg");function BW(e){return e.join(" ").trim()}var E3={},ZE=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,$W=/\n/g,ZW=/^\s*/,WW=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,qW=/^:\s*/,GW=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,YW=/^[;\s]*/,JW=/^\s+|\s+$/g,KW=`
428
+ `,WE="/",qE="*",gd="",XW="comment",QW="declaration";function eq(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,i=1;function o(R){var M=R.match($W);M&&(n+=M.length);var L=R.lastIndexOf(KW);i=~L?R.length-L:i+R.length}function l(){var R={line:n,column:i};return function(M){return M.position=new c(R),v(),M}}function c(R){this.start=R,this.end={line:n,column:i},this.source=t.source}c.prototype.content=e;function f(R){var M=new Error(t.source+":"+n+":"+i+": "+R);if(M.reason=R,M.filename=t.source,M.line=n,M.column=i,M.source=e,!t.silent)throw M}function m(R){var M=R.exec(e);if(M){var L=M[0];return o(L),e=e.slice(L.length),M}}function v(){m(ZW)}function b(R){var M;for(R=R||[];M=y();)M!==!1&&R.push(M);return R}function y(){var R=l();if(!(WE!=e.charAt(0)||qE!=e.charAt(1))){for(var M=2;gd!=e.charAt(M)&&(qE!=e.charAt(M)||WE!=e.charAt(M+1));)++M;if(M+=2,gd===e.charAt(M-1))return f("End of comment missing");var L=e.slice(2,M-2);return i+=2,o(L),e=e.slice(M),i+=2,R({type:XW,comment:L})}}function S(){var R=l(),M=m(WW);if(M){if(y(),!m(qW))return f("property missing ':'");var L=m(GW),I=R({type:QW,property:GE(M[0].replace(ZE,gd)),value:L?GE(L[0].replace(ZE,gd)):gd});return m(YW),I}}function C(){var R=[];b(R);for(var M;M=S();)M!==!1&&(R.push(M),b(R));return R}return v(),C()}function GE(e){return e?e.replace(JW,gd):gd}var tq=eq,nq=ug&&ug.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(E3,"__esModule",{value:!0}),E3.default=aq;const rq=nq(tq);function aq(e,t){let n=null;if(!e||typeof e!="string")return n;const i=(0,rq.default)(e),o=typeof t=="function";return i.forEach(l=>{if(l.type!=="declaration")return;const{property:c,value:f}=l;o?t(c,f,l):f&&(n=n||{},n[c]=f)}),n}var c4={};Object.defineProperty(c4,"__esModule",{value:!0}),c4.camelCase=void 0;var iq=/^--[a-zA-Z0-9_-]+$/,oq=/-([a-z])/g,sq=/^[^-]+$/,lq=/^-(webkit|moz|ms|o|khtml)-/,uq=/^-(ms)-/,cq=function(e){return!e||sq.test(e)||iq.test(e)},dq=function(e,t){return t.toUpperCase()},YE=function(e,t){return"".concat(t,"-")},fq=function(e,t){return t===void 0&&(t={}),cq(e)?e:(e=e.toLowerCase(),t.reactCompat?e=e.replace(uq,YE):e=e.replace(lq,YE),e.replace(oq,dq))};c4.camelCase=fq;var pq=ug&&ug.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},hq=pq(E3),mq=c4;function _3(e,t){var n={};return!e||typeof e!="string"||(0,hq.default)(e,function(i,o){i&&o&&(n[(0,mq.camelCase)(i,t)]=o)}),n}_3.default=_3;var vq=_3;const gq=Uu(vq),JE=KE("end"),T3=KE("start");function KE(e){return t;function t(n){const i=n&&n.position&&n.position[e]||{};if(typeof i.line=="number"&&i.line>0&&typeof i.column=="number"&&i.column>0)return{line:i.line,column:i.column,offset:typeof i.offset=="number"&&i.offset>-1?i.offset:void 0}}}function yq(e){const t=T3(e),n=JE(e);if(t&&n)return{start:t,end:n}}function Bh(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?XE(e.position):"start"in e||"end"in e?XE(e):"line"in e||"column"in e?R3(e):""}function R3(e){return QE(e&&e.line)+":"+QE(e&&e.column)}function XE(e){return R3(e&&e.start)+"-"+R3(e&&e.end)}function QE(e){return e&&typeof e=="number"?e:1}class Ja extends Error{constructor(t,n,i){super(),typeof n=="string"&&(i=n,n=void 0);let o="",l={},c=!1;if(n&&("line"in n&&"column"in n?l={place:n}:"start"in n&&"end"in n?l={place:n}:"type"in n?l={ancestors:[n],place:n.position}:l={...n}),typeof t=="string"?o=t:!l.cause&&t&&(c=!0,o=t.message,l.cause=t),!l.ruleId&&!l.source&&typeof i=="string"){const m=i.indexOf(":");m===-1?l.ruleId=i:(l.source=i.slice(0,m),l.ruleId=i.slice(m+1))}if(!l.place&&l.ancestors&&l.ancestors){const m=l.ancestors[l.ancestors.length-1];m&&(l.place=m.position)}const f=l.place&&"start"in l.place?l.place.start:l.place;this.ancestors=l.ancestors||void 0,this.cause=l.cause||void 0,this.column=f?f.column:void 0,this.fatal=void 0,this.file="",this.message=o,this.line=f?f.line:void 0,this.name=Bh(l.place)||"1:1",this.place=l.place||void 0,this.reason=this.message,this.ruleId=l.ruleId||void 0,this.source=l.source||void 0,this.stack=c&&l.cause&&typeof l.cause.stack=="string"?l.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}Ja.prototype.file="",Ja.prototype.name="",Ja.prototype.reason="",Ja.prototype.message="",Ja.prototype.stack="",Ja.prototype.column=void 0,Ja.prototype.line=void 0,Ja.prototype.ancestors=void 0,Ja.prototype.cause=void 0,Ja.prototype.fatal=void 0,Ja.prototype.place=void 0,Ja.prototype.ruleId=void 0,Ja.prototype.source=void 0;const M3={}.hasOwnProperty,wq=new Map,bq=/[A-Z]/g,xq=new Set(["table","tbody","thead","tfoot","tr"]),Cq=new Set(["td","th"]),e_="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function Sq(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let i;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");i=Oq(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");i=Nq(n,t.jsx,t.jsxs)}const o={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:i,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?k3:VW,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},l=t_(o,e,void 0);return l&&typeof l!="string"?l:o.create(e,o.Fragment,{children:l||void 0},void 0)}function t_(e,t,n){if(t.type==="element")return kq(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return Eq(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return Tq(e,t,n);if(t.type==="mdxjsEsm")return _q(e,t);if(t.type==="root")return Rq(e,t,n);if(t.type==="text")return Mq(e,t)}function kq(e,t,n){const i=e.schema;let o=i;t.tagName.toLowerCase()==="svg"&&i.space==="html"&&(o=k3,e.schema=o),e.ancestors.push(t);const l=r_(e,t.tagName,!1),c=Lq(e,t);let f=O3(e,t);return xq.has(t.tagName)&&(f=f.filter(function(m){return typeof m=="string"?!LW(m):!0})),n_(e,c,l,t),N3(c,f),e.ancestors.pop(),e.schema=i,e.create(t,l,c,n)}function Eq(e,t){if(t.data&&t.data.estree&&e.evaluater){const i=t.data.estree.body[0];return i.type,e.evaluater.evaluateExpression(i.expression)}$h(e,t.position)}function _q(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);$h(e,t.position)}function Tq(e,t,n){const i=e.schema;let o=i;t.name==="svg"&&i.space==="html"&&(o=k3,e.schema=o),e.ancestors.push(t);const l=t.name===null?e.Fragment:r_(e,t.name,!0),c=Aq(e,t),f=O3(e,t);return n_(e,c,l,t),N3(c,f),e.ancestors.pop(),e.schema=i,e.create(t,l,c,n)}function Rq(e,t,n){const i={};return N3(i,O3(e,t)),e.create(t,e.Fragment,i,n)}function Mq(e,t){return t.value}function n_(e,t,n,i){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=i)}function N3(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function Nq(e,t,n){return i;function i(o,l,c,f){const v=Array.isArray(c.children)?n:t;return f?v(l,c,f):v(l,c)}}function Oq(e,t){return n;function n(i,o,l,c){const f=Array.isArray(l.children),m=T3(i);return t(o,l,c,f,{columnNumber:m?m.column-1:void 0,fileName:e,lineNumber:m?m.line:void 0},void 0)}}function Lq(e,t){const n={};let i,o;for(o in t.properties)if(o!=="children"&&M3.call(t.properties,o)){const l=Iq(e,o,t.properties[o]);if(l){const[c,f]=l;e.tableCellAlignToStyle&&c==="align"&&typeof f=="string"&&Cq.has(t.tagName)?i=f:n[c]=f}}if(i){const l=n.style||(n.style={});l[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=i}return n}function Aq(e,t){const n={};for(const i of t.attributes)if(i.type==="mdxJsxExpressionAttribute")if(i.data&&i.data.estree&&e.evaluater){const l=i.data.estree.body[0];l.type;const c=l.expression;c.type;const f=c.properties[0];f.type,Object.assign(n,e.evaluater.evaluateExpression(f.argument))}else $h(e,t.position);else{const o=i.name;let l;if(i.value&&typeof i.value=="object")if(i.value.data&&i.value.data.estree&&e.evaluater){const f=i.value.data.estree.body[0];f.type,l=e.evaluater.evaluateExpression(f.expression)}else $h(e,t.position);else l=i.value===null?!0:i.value;n[o]=l}return n}function O3(e,t){const n=[];let i=-1;const o=e.passKeys?new Map:wq;for(;++i<t.children.length;){const l=t.children[i];let c;if(e.passKeys){const m=l.type==="element"?l.tagName:l.type==="mdxJsxFlowElement"||l.type==="mdxJsxTextElement"?l.name:void 0;if(m){const v=o.get(m)||0;c=m+"-"+v,o.set(m,v+1)}}const f=t_(e,l,c);f!==void 0&&n.push(f)}return n}function Iq(e,t,n){const i=FW(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=i.commaSeparated?TW(n):BW(n)),i.property==="style"){let o=typeof n=="object"?n:Dq(e,String(n));return e.stylePropertyNameCase==="css"&&(o=Pq(o)),["style",o]}return[e.elementAttributeNameCase==="react"&&i.space?PW[i.property]||i.property:i.attribute,n]}}function Dq(e,t){try{return gq(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const i=n,o=new Ja("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:i,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw o.file=e.filePath||void 0,o.url=e_+"#cannot-parse-style-attribute",o}}function r_(e,t,n){let i;if(!n)i={type:"Literal",value:t};else if(t.includes(".")){const o=t.split(".");let l=-1,c;for(;++l<o.length;){const f=IE(o[l])?{type:"Identifier",name:o[l]}:{type:"Literal",value:o[l]};c=c?{type:"MemberExpression",object:c,property:f,computed:!!(l&&f.type==="Literal"),optional:!1}:f}i=c}else i=IE(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(i.type==="Literal"){const o=i.value;return M3.call(e.components,o)?e.components[o]:o}if(e.evaluater)return e.evaluater.evaluateExpression(i);$h(e)}function $h(e,t){const n=new Ja("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=e_+"#cannot-handle-mdx-estrees-without-createevaluater",n}function Pq(e){const t={};let n;for(n in e)M3.call(e,n)&&(t[zq(n)]=e[n]);return t}function zq(e){let t=e.replace(bq,jq);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function jq(e){return"-"+e.toLowerCase()}const L3={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},Fq={};function Uq(e,t){const n=Fq,i=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,o=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return a_(e,i,o)}function a_(e,t,n){if(Hq(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return i_(e.children,t,n)}return Array.isArray(e)?i_(e,t,n):""}function i_(e,t,n){const i=[];let o=-1;for(;++o<e.length;)i[o]=a_(e[o],t,n);return i.join("")}function Hq(e){return!!(e&&typeof e=="object")}const o_=document.createElement("i");function A3(e){const t="&"+e+";";o_.innerHTML=t;const n=o_.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}function Ys(e,t,n,i){const o=e.length;let l=0,c;if(t<0?t=-t>o?0:o+t:t=t>o?o:t,n=n>0?n:0,i.length<1e4)c=Array.from(i),c.unshift(t,n),e.splice(...c);else for(n&&e.splice(t,n);l<i.length;)c=i.slice(l,l+1e4),c.unshift(t,0),e.splice(...c),l+=1e4,t+=1e4}function zo(e,t){return e.length>0?(Ys(e,e.length,0,t),e):t}const s_={}.hasOwnProperty;function Vq(e){const t={};let n=-1;for(;++n<e.length;)Bq(t,e[n]);return t}function Bq(e,t){let n;for(n in t){const o=(s_.call(e,n)?e[n]:void 0)||(e[n]={}),l=t[n];let c;if(l)for(c in l){s_.call(o,c)||(o[c]=[]);const f=l[c];$q(o[c],Array.isArray(f)?f:f?[f]:[])}}}function $q(e,t){let n=-1;const i=[];for(;++n<t.length;)(t[n].add==="after"?e:i).push(t[n]);Ys(e,0,0,i)}function l_(e,t){const n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}function cp(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Js=Ju(/[A-Za-z]/),po=Ju(/[\dA-Za-z]/),Zq=Ju(/[#-'*+\--9=?A-Z^-~]/);function I3(e){return e!==null&&(e<32||e===127)}const D3=Ju(/\d/),Wq=Ju(/[\dA-Fa-f]/),qq=Ju(/[!-/:-@[-`{-~]/);function Zt(e){return e!==null&&e<-2}function Ui(e){return e!==null&&(e<0||e===32)}function Un(e){return e===-2||e===-1||e===32}const Gq=Ju(/\p{P}|\p{S}/u),Yq=Ju(/\s/);function Ju(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function dp(e){const t=[];let n=-1,i=0,o=0;for(;++n<e.length;){const l=e.charCodeAt(n);let c="";if(l===37&&po(e.charCodeAt(n+1))&&po(e.charCodeAt(n+2)))o=2;else if(l<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(l))||(c=String.fromCharCode(l));else if(l>55295&&l<57344){const f=e.charCodeAt(n+1);l<56320&&f>56319&&f<57344?(c=String.fromCharCode(l,f),o=1):c="�"}else c=String.fromCharCode(l);c&&(t.push(e.slice(i,n),encodeURIComponent(c)),i=n+o+1,c=""),o&&(n+=o,o=0)}return t.join("")+e.slice(i)}function fr(e,t,n,i){const o=i?i-1:Number.POSITIVE_INFINITY;let l=0;return c;function c(m){return Un(m)?(e.enter(n),f(m)):t(m)}function f(m){return Un(m)&&l++<o?(e.consume(m),f):(e.exit(n),t(m))}}const Jq={tokenize:Kq};function Kq(e){const t=e.attempt(this.parser.constructs.contentInitial,i,o);let n;return t;function i(f){if(f===null){e.consume(f);return}return e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),fr(e,t,"linePrefix")}function o(f){return e.enter("paragraph"),l(f)}function l(f){const m=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=m),n=m,c(f)}function c(f){if(f===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(f);return}return Zt(f)?(e.consume(f),e.exit("chunkText"),l):(e.consume(f),c)}}const Xq={tokenize:Qq},u_={tokenize:eG};function Qq(e){const t=this,n=[];let i=0,o,l,c;return f;function f(U){if(i<n.length){const P=n[i];return t.containerState=P[1],e.attempt(P[0].continuation,m,v)(U)}return v(U)}function m(U){if(i++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,o&&j();const P=t.events.length;let Z=P,B;for(;Z--;)if(t.events[Z][0]==="exit"&&t.events[Z][1].type==="chunkFlow"){B=t.events[Z][1].end;break}I(i);let W=P;for(;W<t.events.length;)t.events[W][1].end={...B},W++;return Ys(t.events,Z+1,0,t.events.slice(P)),t.events.length=W,v(U)}return f(U)}function v(U){if(i===n.length){if(!o)return S(U);if(o.currentConstruct&&o.currentConstruct.concrete)return R(U);t.interrupt=!!(o.currentConstruct&&!o._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(u_,b,y)(U)}function b(U){return o&&j(),I(i),S(U)}function y(U){return t.parser.lazy[t.now().line]=i!==n.length,c=t.now().offset,R(U)}function S(U){return t.containerState={},e.attempt(u_,C,R)(U)}function C(U){return i++,n.push([t.currentConstruct,t.containerState]),S(U)}function R(U){if(U===null){o&&j(),I(0),e.consume(U);return}return o=o||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:o,contentType:"flow",previous:l}),M(U)}function M(U){if(U===null){L(e.exit("chunkFlow"),!0),I(0),e.consume(U);return}return Zt(U)?(e.consume(U),L(e.exit("chunkFlow")),i=0,t.interrupt=void 0,f):(e.consume(U),M)}function L(U,P){const Z=t.sliceStream(U);if(P&&Z.push(null),U.previous=l,l&&(l.next=U),l=U,o.defineSkip(U.start),o.write(Z),t.parser.lazy[U.start.line]){let B=o.events.length;for(;B--;)if(o.events[B][1].start.offset<c&&(!o.events[B][1].end||o.events[B][1].end.offset>c))return;const W=t.events.length;let G=W,se,ke;for(;G--;)if(t.events[G][0]==="exit"&&t.events[G][1].type==="chunkFlow"){if(se){ke=t.events[G][1].end;break}se=!0}for(I(i),B=W;B<t.events.length;)t.events[B][1].end={...ke},B++;Ys(t.events,G+1,0,t.events.slice(W)),t.events.length=B}}function I(U){let P=n.length;for(;P-- >U;){const Z=n[P];t.containerState=Z[1],Z[0].exit.call(t,e)}n.length=U}function j(){o.write([null]),l=void 0,o=void 0,t.containerState._closeFlow=void 0}}function eG(e,t,n){return fr(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function c_(e){if(e===null||Ui(e)||Yq(e))return 1;if(Gq(e))return 2}function P3(e,t,n){const i=[];let o=-1;for(;++o<e.length;){const l=e[o].resolveAll;l&&!i.includes(l)&&(t=l(t,n),i.push(l))}return t}const z3={name:"attention",resolveAll:tG,tokenize:nG};function tG(e,t){let n=-1,i,o,l,c,f,m,v,b;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(i=n;i--;)if(e[i][0]==="exit"&&e[i][1].type==="attentionSequence"&&e[i][1]._open&&t.sliceSerialize(e[i][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[i][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[i][1].end.offset-e[i][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;m=e[i][1].end.offset-e[i][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const y={...e[i][1].end},S={...e[n][1].start};d_(y,-m),d_(S,m),c={type:m>1?"strongSequence":"emphasisSequence",start:y,end:{...e[i][1].end}},f={type:m>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:S},l={type:m>1?"strongText":"emphasisText",start:{...e[i][1].end},end:{...e[n][1].start}},o={type:m>1?"strong":"emphasis",start:{...c.start},end:{...f.end}},e[i][1].end={...c.start},e[n][1].start={...f.end},v=[],e[i][1].end.offset-e[i][1].start.offset&&(v=zo(v,[["enter",e[i][1],t],["exit",e[i][1],t]])),v=zo(v,[["enter",o,t],["enter",c,t],["exit",c,t],["enter",l,t]]),v=zo(v,P3(t.parser.constructs.insideSpan.null,e.slice(i+1,n),t)),v=zo(v,[["exit",l,t],["enter",f,t],["exit",f,t],["exit",o,t]]),e[n][1].end.offset-e[n][1].start.offset?(b=2,v=zo(v,[["enter",e[n][1],t],["exit",e[n][1],t]])):b=0,Ys(e,i-1,n-i+3,v),n=i+v.length-b-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function nG(e,t){const n=this.parser.constructs.attentionMarkers.null,i=this.previous,o=c_(i);let l;return c;function c(m){return l=m,e.enter("attentionSequence"),f(m)}function f(m){if(m===l)return e.consume(m),f;const v=e.exit("attentionSequence"),b=c_(m),y=!b||b===2&&o||n.includes(m),S=!o||o===2&&b||n.includes(i);return v._open=!!(l===42?y:y&&(o||!S)),v._close=!!(l===42?S:S&&(b||!y)),t(m)}}function d_(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const rG={name:"autolink",tokenize:aG};function aG(e,t,n){let i=0;return o;function o(C){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(C),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),l}function l(C){return Js(C)?(e.consume(C),c):C===64?n(C):v(C)}function c(C){return C===43||C===45||C===46||po(C)?(i=1,f(C)):v(C)}function f(C){return C===58?(e.consume(C),i=0,m):(C===43||C===45||C===46||po(C))&&i++<32?(e.consume(C),f):(i=0,v(C))}function m(C){return C===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(C),e.exit("autolinkMarker"),e.exit("autolink"),t):C===null||C===32||C===60||I3(C)?n(C):(e.consume(C),m)}function v(C){return C===64?(e.consume(C),b):Zq(C)?(e.consume(C),v):n(C)}function b(C){return po(C)?y(C):n(C)}function y(C){return C===46?(e.consume(C),i=0,b):C===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(C),e.exit("autolinkMarker"),e.exit("autolink"),t):S(C)}function S(C){if((C===45||po(C))&&i++<63){const R=C===45?S:y;return e.consume(C),R}return n(C)}}const d4={partial:!0,tokenize:iG};function iG(e,t,n){return i;function i(l){return Un(l)?fr(e,o,"linePrefix")(l):o(l)}function o(l){return l===null||Zt(l)?t(l):n(l)}}const f_={continuation:{tokenize:sG},exit:lG,name:"blockQuote",tokenize:oG};function oG(e,t,n){const i=this;return o;function o(c){if(c===62){const f=i.containerState;return f.open||(e.enter("blockQuote",{_container:!0}),f.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(c),e.exit("blockQuoteMarker"),l}return n(c)}function l(c){return Un(c)?(e.enter("blockQuotePrefixWhitespace"),e.consume(c),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(c))}}function sG(e,t,n){const i=this;return o;function o(c){return Un(c)?fr(e,l,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(c):l(c)}function l(c){return e.attempt(f_,t,n)(c)}}function lG(e){e.exit("blockQuote")}const p_={name:"characterEscape",tokenize:uG};function uG(e,t,n){return i;function i(l){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(l),e.exit("escapeMarker"),o}function o(l){return qq(l)?(e.enter("characterEscapeValue"),e.consume(l),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(l)}}const h_={name:"characterReference",tokenize:cG};function cG(e,t,n){const i=this;let o=0,l,c;return f;function f(y){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(y),e.exit("characterReferenceMarker"),m}function m(y){return y===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(y),e.exit("characterReferenceMarkerNumeric"),v):(e.enter("characterReferenceValue"),l=31,c=po,b(y))}function v(y){return y===88||y===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(y),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),l=6,c=Wq,b):(e.enter("characterReferenceValue"),l=7,c=D3,b(y))}function b(y){if(y===59&&o){const S=e.exit("characterReferenceValue");return c===po&&!A3(i.sliceSerialize(S))?n(y):(e.enter("characterReferenceMarker"),e.consume(y),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return c(y)&&o++<l?(e.consume(y),b):n(y)}}const m_={partial:!0,tokenize:fG},v_={concrete:!0,name:"codeFenced",tokenize:dG};function dG(e,t,n){const i=this,o={partial:!0,tokenize:Z};let l=0,c=0,f;return m;function m(B){return v(B)}function v(B){const W=i.events[i.events.length-1];return l=W&&W[1].type==="linePrefix"?W[2].sliceSerialize(W[1],!0).length:0,f=B,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),b(B)}function b(B){return B===f?(c++,e.consume(B),b):c<3?n(B):(e.exit("codeFencedFenceSequence"),Un(B)?fr(e,y,"whitespace")(B):y(B))}function y(B){return B===null||Zt(B)?(e.exit("codeFencedFence"),i.interrupt?t(B):e.check(m_,M,P)(B)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),S(B))}function S(B){return B===null||Zt(B)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),y(B)):Un(B)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),fr(e,C,"whitespace")(B)):B===96&&B===f?n(B):(e.consume(B),S)}function C(B){return B===null||Zt(B)?y(B):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),R(B))}function R(B){return B===null||Zt(B)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),y(B)):B===96&&B===f?n(B):(e.consume(B),R)}function M(B){return e.attempt(o,P,L)(B)}function L(B){return e.enter("lineEnding"),e.consume(B),e.exit("lineEnding"),I}function I(B){return l>0&&Un(B)?fr(e,j,"linePrefix",l+1)(B):j(B)}function j(B){return B===null||Zt(B)?e.check(m_,M,P)(B):(e.enter("codeFlowValue"),U(B))}function U(B){return B===null||Zt(B)?(e.exit("codeFlowValue"),j(B)):(e.consume(B),U)}function P(B){return e.exit("codeFenced"),t(B)}function Z(B,W,G){let se=0;return ke;function ke(be){return B.enter("lineEnding"),B.consume(be),B.exit("lineEnding"),ve}function ve(be){return B.enter("codeFencedFence"),Un(be)?fr(B,de,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(be):de(be)}function de(be){return be===f?(B.enter("codeFencedFenceSequence"),ge(be)):G(be)}function ge(be){return be===f?(se++,B.consume(be),ge):se>=c?(B.exit("codeFencedFenceSequence"),Un(be)?fr(B,Re,"whitespace")(be):Re(be)):G(be)}function Re(be){return be===null||Zt(be)?(B.exit("codeFencedFence"),W(be)):G(be)}}}function fG(e,t,n){const i=this;return o;function o(c){return c===null?n(c):(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),l)}function l(c){return i.parser.lazy[i.now().line]?n(c):t(c)}}const j3={name:"codeIndented",tokenize:hG},pG={partial:!0,tokenize:mG};function hG(e,t,n){const i=this;return o;function o(v){return e.enter("codeIndented"),fr(e,l,"linePrefix",5)(v)}function l(v){const b=i.events[i.events.length-1];return b&&b[1].type==="linePrefix"&&b[2].sliceSerialize(b[1],!0).length>=4?c(v):n(v)}function c(v){return v===null?m(v):Zt(v)?e.attempt(pG,c,m)(v):(e.enter("codeFlowValue"),f(v))}function f(v){return v===null||Zt(v)?(e.exit("codeFlowValue"),c(v)):(e.consume(v),f)}function m(v){return e.exit("codeIndented"),t(v)}}function mG(e,t,n){const i=this;return o;function o(c){return i.parser.lazy[i.now().line]?n(c):Zt(c)?(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),o):fr(e,l,"linePrefix",5)(c)}function l(c){const f=i.events[i.events.length-1];return f&&f[1].type==="linePrefix"&&f[2].sliceSerialize(f[1],!0).length>=4?t(c):Zt(c)?o(c):n(c)}}const vG={name:"codeText",previous:yG,resolve:gG,tokenize:wG};function gG(e){let t=e.length-4,n=3,i,o;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(i=n;++i<t;)if(e[i][1].type==="codeTextData"){e[n][1].type="codeTextPadding",e[t][1].type="codeTextPadding",n+=2,t-=2;break}}for(i=n-1,t++;++i<=t;)o===void 0?i!==t&&e[i][1].type!=="lineEnding"&&(o=i):(i===t||e[i][1].type==="lineEnding")&&(e[o][1].type="codeTextData",i!==o+2&&(e[o][1].end=e[i-1][1].end,e.splice(o+2,i-o-2),t-=i-o-2,i=o+2),o=void 0);return e}function yG(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function wG(e,t,n){let i=0,o,l;return c;function c(y){return e.enter("codeText"),e.enter("codeTextSequence"),f(y)}function f(y){return y===96?(e.consume(y),i++,f):(e.exit("codeTextSequence"),m(y))}function m(y){return y===null?n(y):y===32?(e.enter("space"),e.consume(y),e.exit("space"),m):y===96?(l=e.enter("codeTextSequence"),o=0,b(y)):Zt(y)?(e.enter("lineEnding"),e.consume(y),e.exit("lineEnding"),m):(e.enter("codeTextData"),v(y))}function v(y){return y===null||y===32||y===96||Zt(y)?(e.exit("codeTextData"),m(y)):(e.consume(y),v)}function b(y){return y===96?(e.consume(y),o++,b):o===i?(e.exit("codeTextSequence"),e.exit("codeText"),t(y)):(l.type="codeTextData",v(y))}}class bG{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,n){const i=n==null?Number.POSITIVE_INFINITY:n;return i<this.left.length?this.left.slice(t,i):t>this.left.length?this.right.slice(this.right.length-i+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-i+this.left.length).reverse())}splice(t,n,i){const o=n||0;this.setCursor(Math.trunc(t));const l=this.right.splice(this.right.length-o,Number.POSITIVE_INFINITY);return i&&Zh(this.left,i),l.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),Zh(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),Zh(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const n=this.left.splice(t,Number.POSITIVE_INFINITY);Zh(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);Zh(this.left,n.reverse())}}}function Zh(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function g_(e){const t={};let n=-1,i,o,l,c,f,m,v;const b=new bG(e);for(;++n<b.length;){for(;n in t;)n=t[n];if(i=b.get(n),n&&i[1].type==="chunkFlow"&&b.get(n-1)[1].type==="listItemPrefix"&&(m=i[1]._tokenizer.events,l=0,l<m.length&&m[l][1].type==="lineEndingBlank"&&(l+=2),l<m.length&&m[l][1].type==="content"))for(;++l<m.length&&m[l][1].type!=="content";)m[l][1].type==="chunkText"&&(m[l][1]._isInFirstContentOfListItem=!0,l++);if(i[0]==="enter")i[1].contentType&&(Object.assign(t,xG(b,n)),n=t[n],v=!0);else if(i[1]._container){for(l=n,o=void 0;l--;)if(c=b.get(l),c[1].type==="lineEnding"||c[1].type==="lineEndingBlank")c[0]==="enter"&&(o&&(b.get(o)[1].type="lineEndingBlank"),c[1].type="lineEnding",o=l);else if(!(c[1].type==="linePrefix"||c[1].type==="listItemIndent"))break;o&&(i[1].end={...b.get(o)[1].start},f=b.slice(o,n),f.unshift(i),b.splice(o,n-o+1,f))}}return Ys(e,0,Number.POSITIVE_INFINITY,b.slice(0)),!v}function xG(e,t){const n=e.get(t)[1],i=e.get(t)[2];let o=t-1;const l=[];let c=n._tokenizer;c||(c=i.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(c._contentTypeTextTrailing=!0));const f=c.events,m=[],v={};let b,y,S=-1,C=n,R=0,M=0;const L=[M];for(;C;){for(;e.get(++o)[1]!==C;);l.push(o),C._tokenizer||(b=i.sliceStream(C),C.next||b.push(null),y&&c.defineSkip(C.start),C._isInFirstContentOfListItem&&(c._gfmTasklistFirstContentOfListItem=!0),c.write(b),C._isInFirstContentOfListItem&&(c._gfmTasklistFirstContentOfListItem=void 0)),y=C,C=C.next}for(C=n;++S<f.length;)f[S][0]==="exit"&&f[S-1][0]==="enter"&&f[S][1].type===f[S-1][1].type&&f[S][1].start.line!==f[S][1].end.line&&(M=S+1,L.push(M),C._tokenizer=void 0,C.previous=void 0,C=C.next);for(c.events=[],C?(C._tokenizer=void 0,C.previous=void 0):L.pop(),S=L.length;S--;){const I=f.slice(L[S],L[S+1]),j=l.pop();m.push([j,j+I.length-1]),e.splice(j,2,I)}for(m.reverse(),S=-1;++S<m.length;)v[R+m[S][0]]=R+m[S][1],R+=m[S][1]-m[S][0]-1;return v}const CG={resolve:kG,tokenize:EG},SG={partial:!0,tokenize:_G};function kG(e){return g_(e),e}function EG(e,t){let n;return i;function i(f){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),o(f)}function o(f){return f===null?l(f):Zt(f)?e.check(SG,c,l)(f):(e.consume(f),o)}function l(f){return e.exit("chunkContent"),e.exit("content"),t(f)}function c(f){return e.consume(f),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,o}}function _G(e,t,n){const i=this;return o;function o(c){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),fr(e,l,"linePrefix")}function l(c){if(c===null||Zt(c))return n(c);const f=i.events[i.events.length-1];return!i.parser.constructs.disable.null.includes("codeIndented")&&f&&f[1].type==="linePrefix"&&f[2].sliceSerialize(f[1],!0).length>=4?t(c):e.interrupt(i.parser.constructs.flow,n,t)(c)}}function y_(e,t,n,i,o,l,c,f,m){const v=m||Number.POSITIVE_INFINITY;let b=0;return y;function y(I){return I===60?(e.enter(i),e.enter(o),e.enter(l),e.consume(I),e.exit(l),S):I===null||I===32||I===41||I3(I)?n(I):(e.enter(i),e.enter(c),e.enter(f),e.enter("chunkString",{contentType:"string"}),M(I))}function S(I){return I===62?(e.enter(l),e.consume(I),e.exit(l),e.exit(o),e.exit(i),t):(e.enter(f),e.enter("chunkString",{contentType:"string"}),C(I))}function C(I){return I===62?(e.exit("chunkString"),e.exit(f),S(I)):I===null||I===60||Zt(I)?n(I):(e.consume(I),I===92?R:C)}function R(I){return I===60||I===62||I===92?(e.consume(I),C):C(I)}function M(I){return!b&&(I===null||I===41||Ui(I))?(e.exit("chunkString"),e.exit(f),e.exit(c),e.exit(i),t(I)):b<v&&I===40?(e.consume(I),b++,M):I===41?(e.consume(I),b--,M):I===null||I===32||I===40||I3(I)?n(I):(e.consume(I),I===92?L:M)}function L(I){return I===40||I===41||I===92?(e.consume(I),M):M(I)}}function w_(e,t,n,i,o,l){const c=this;let f=0,m;return v;function v(C){return e.enter(i),e.enter(o),e.consume(C),e.exit(o),e.enter(l),b}function b(C){return f>999||C===null||C===91||C===93&&!m||C===94&&!f&&"_hiddenFootnoteSupport"in c.parser.constructs?n(C):C===93?(e.exit(l),e.enter(o),e.consume(C),e.exit(o),e.exit(i),t):Zt(C)?(e.enter("lineEnding"),e.consume(C),e.exit("lineEnding"),b):(e.enter("chunkString",{contentType:"string"}),y(C))}function y(C){return C===null||C===91||C===93||Zt(C)||f++>999?(e.exit("chunkString"),b(C)):(e.consume(C),m||(m=!Un(C)),C===92?S:y)}function S(C){return C===91||C===92||C===93?(e.consume(C),f++,y):y(C)}}function b_(e,t,n,i,o,l){let c;return f;function f(S){return S===34||S===39||S===40?(e.enter(i),e.enter(o),e.consume(S),e.exit(o),c=S===40?41:S,m):n(S)}function m(S){return S===c?(e.enter(o),e.consume(S),e.exit(o),e.exit(i),t):(e.enter(l),v(S))}function v(S){return S===c?(e.exit(l),m(c)):S===null?n(S):Zt(S)?(e.enter("lineEnding"),e.consume(S),e.exit("lineEnding"),fr(e,v,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),b(S))}function b(S){return S===c||S===null||Zt(S)?(e.exit("chunkString"),v(S)):(e.consume(S),S===92?y:b)}function y(S){return S===c||S===92?(e.consume(S),b):b(S)}}function Wh(e,t){let n;return i;function i(o){return Zt(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),n=!0,i):Un(o)?fr(e,i,n?"linePrefix":"lineSuffix")(o):t(o)}}const TG={name:"definition",tokenize:MG},RG={partial:!0,tokenize:NG};function MG(e,t,n){const i=this;let o;return l;function l(C){return e.enter("definition"),c(C)}function c(C){return w_.call(i,e,f,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(C)}function f(C){return o=cp(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)),C===58?(e.enter("definitionMarker"),e.consume(C),e.exit("definitionMarker"),m):n(C)}function m(C){return Ui(C)?Wh(e,v)(C):v(C)}function v(C){return y_(e,b,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(C)}function b(C){return e.attempt(RG,y,y)(C)}function y(C){return Un(C)?fr(e,S,"whitespace")(C):S(C)}function S(C){return C===null||Zt(C)?(e.exit("definition"),i.parser.defined.push(o),t(C)):n(C)}}function NG(e,t,n){return i;function i(f){return Ui(f)?Wh(e,o)(f):n(f)}function o(f){return b_(e,l,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(f)}function l(f){return Un(f)?fr(e,c,"whitespace")(f):c(f)}function c(f){return f===null||Zt(f)?t(f):n(f)}}const OG={name:"hardBreakEscape",tokenize:LG};function LG(e,t,n){return i;function i(l){return e.enter("hardBreakEscape"),e.consume(l),o}function o(l){return Zt(l)?(e.exit("hardBreakEscape"),t(l)):n(l)}}const AG={name:"headingAtx",resolve:IG,tokenize:DG};function IG(e,t){let n=e.length-2,i=3,o,l;return e[i][1].type==="whitespace"&&(i+=2),n-2>i&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(i===n-1||n-4>i&&e[n-2][1].type==="whitespace")&&(n-=i+1===n?2:4),n>i&&(o={type:"atxHeadingText",start:e[i][1].start,end:e[n][1].end},l={type:"chunkText",start:e[i][1].start,end:e[n][1].end,contentType:"text"},Ys(e,i,n-i+1,[["enter",o,t],["enter",l,t],["exit",l,t],["exit",o,t]])),e}function DG(e,t,n){let i=0;return o;function o(b){return e.enter("atxHeading"),l(b)}function l(b){return e.enter("atxHeadingSequence"),c(b)}function c(b){return b===35&&i++<6?(e.consume(b),c):b===null||Ui(b)?(e.exit("atxHeadingSequence"),f(b)):n(b)}function f(b){return b===35?(e.enter("atxHeadingSequence"),m(b)):b===null||Zt(b)?(e.exit("atxHeading"),t(b)):Un(b)?fr(e,f,"whitespace")(b):(e.enter("atxHeadingText"),v(b))}function m(b){return b===35?(e.consume(b),m):(e.exit("atxHeadingSequence"),f(b))}function v(b){return b===null||b===35||Ui(b)?(e.exit("atxHeadingText"),f(b)):(e.consume(b),v)}}const PG=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],x_=["pre","script","style","textarea"],zG={concrete:!0,name:"htmlFlow",resolveTo:UG,tokenize:HG},jG={partial:!0,tokenize:BG},FG={partial:!0,tokenize:VG};function UG(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function HG(e,t,n){const i=this;let o,l,c,f,m;return v;function v($){return b($)}function b($){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume($),y}function y($){return $===33?(e.consume($),S):$===47?(e.consume($),l=!0,M):$===63?(e.consume($),o=3,i.interrupt?t:H):Js($)?(e.consume($),c=String.fromCharCode($),L):n($)}function S($){return $===45?(e.consume($),o=2,C):$===91?(e.consume($),o=5,f=0,R):Js($)?(e.consume($),o=4,i.interrupt?t:H):n($)}function C($){return $===45?(e.consume($),i.interrupt?t:H):n($)}function R($){const Fe="CDATA[";return $===Fe.charCodeAt(f++)?(e.consume($),f===Fe.length?i.interrupt?t:de:R):n($)}function M($){return Js($)?(e.consume($),c=String.fromCharCode($),L):n($)}function L($){if($===null||$===47||$===62||Ui($)){const Fe=$===47,it=c.toLowerCase();return!Fe&&!l&&x_.includes(it)?(o=1,i.interrupt?t($):de($)):PG.includes(c.toLowerCase())?(o=6,Fe?(e.consume($),I):i.interrupt?t($):de($)):(o=7,i.interrupt&&!i.parser.lazy[i.now().line]?n($):l?j($):U($))}return $===45||po($)?(e.consume($),c+=String.fromCharCode($),L):n($)}function I($){return $===62?(e.consume($),i.interrupt?t:de):n($)}function j($){return Un($)?(e.consume($),j):ke($)}function U($){return $===47?(e.consume($),ke):$===58||$===95||Js($)?(e.consume($),P):Un($)?(e.consume($),U):ke($)}function P($){return $===45||$===46||$===58||$===95||po($)?(e.consume($),P):Z($)}function Z($){return $===61?(e.consume($),B):Un($)?(e.consume($),Z):U($)}function B($){return $===null||$===60||$===61||$===62||$===96?n($):$===34||$===39?(e.consume($),m=$,W):Un($)?(e.consume($),B):G($)}function W($){return $===m?(e.consume($),m=null,se):$===null||Zt($)?n($):(e.consume($),W)}function G($){return $===null||$===34||$===39||$===47||$===60||$===61||$===62||$===96||Ui($)?Z($):(e.consume($),G)}function se($){return $===47||$===62||Un($)?U($):n($)}function ke($){return $===62?(e.consume($),ve):n($)}function ve($){return $===null||Zt($)?de($):Un($)?(e.consume($),ve):n($)}function de($){return $===45&&o===2?(e.consume($),Ie):$===60&&o===1?(e.consume($),ye):$===62&&o===4?(e.consume($),K):$===63&&o===3?(e.consume($),H):$===93&&o===5?(e.consume($),Ne):Zt($)&&(o===6||o===7)?(e.exit("htmlFlowData"),e.check(jG,fe,ge)($)):$===null||Zt($)?(e.exit("htmlFlowData"),ge($)):(e.consume($),de)}function ge($){return e.check(FG,Re,fe)($)}function Re($){return e.enter("lineEnding"),e.consume($),e.exit("lineEnding"),be}function be($){return $===null||Zt($)?ge($):(e.enter("htmlFlowData"),de($))}function Ie($){return $===45?(e.consume($),H):de($)}function ye($){return $===47?(e.consume($),c="",Q):de($)}function Q($){if($===62){const Fe=c.toLowerCase();return x_.includes(Fe)?(e.consume($),K):de($)}return Js($)&&c.length<8?(e.consume($),c+=String.fromCharCode($),Q):de($)}function Ne($){return $===93?(e.consume($),H):de($)}function H($){return $===62?(e.consume($),K):$===45&&o===2?(e.consume($),H):de($)}function K($){return $===null||Zt($)?(e.exit("htmlFlowData"),fe($)):(e.consume($),K)}function fe($){return e.exit("htmlFlow"),t($)}}function VG(e,t,n){const i=this;return o;function o(c){return Zt(c)?(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),l):n(c)}function l(c){return i.parser.lazy[i.now().line]?n(c):t(c)}}function BG(e,t,n){return i;function i(o){return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),e.attempt(d4,t,n)}}const $G={name:"htmlText",tokenize:ZG};function ZG(e,t,n){const i=this;let o,l,c;return f;function f(H){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(H),m}function m(H){return H===33?(e.consume(H),v):H===47?(e.consume(H),Z):H===63?(e.consume(H),U):Js(H)?(e.consume(H),G):n(H)}function v(H){return H===45?(e.consume(H),b):H===91?(e.consume(H),l=0,R):Js(H)?(e.consume(H),j):n(H)}function b(H){return H===45?(e.consume(H),C):n(H)}function y(H){return H===null?n(H):H===45?(e.consume(H),S):Zt(H)?(c=y,ye(H)):(e.consume(H),y)}function S(H){return H===45?(e.consume(H),C):y(H)}function C(H){return H===62?Ie(H):H===45?S(H):y(H)}function R(H){const K="CDATA[";return H===K.charCodeAt(l++)?(e.consume(H),l===K.length?M:R):n(H)}function M(H){return H===null?n(H):H===93?(e.consume(H),L):Zt(H)?(c=M,ye(H)):(e.consume(H),M)}function L(H){return H===93?(e.consume(H),I):M(H)}function I(H){return H===62?Ie(H):H===93?(e.consume(H),I):M(H)}function j(H){return H===null||H===62?Ie(H):Zt(H)?(c=j,ye(H)):(e.consume(H),j)}function U(H){return H===null?n(H):H===63?(e.consume(H),P):Zt(H)?(c=U,ye(H)):(e.consume(H),U)}function P(H){return H===62?Ie(H):U(H)}function Z(H){return Js(H)?(e.consume(H),B):n(H)}function B(H){return H===45||po(H)?(e.consume(H),B):W(H)}function W(H){return Zt(H)?(c=W,ye(H)):Un(H)?(e.consume(H),W):Ie(H)}function G(H){return H===45||po(H)?(e.consume(H),G):H===47||H===62||Ui(H)?se(H):n(H)}function se(H){return H===47?(e.consume(H),Ie):H===58||H===95||Js(H)?(e.consume(H),ke):Zt(H)?(c=se,ye(H)):Un(H)?(e.consume(H),se):Ie(H)}function ke(H){return H===45||H===46||H===58||H===95||po(H)?(e.consume(H),ke):ve(H)}function ve(H){return H===61?(e.consume(H),de):Zt(H)?(c=ve,ye(H)):Un(H)?(e.consume(H),ve):se(H)}function de(H){return H===null||H===60||H===61||H===62||H===96?n(H):H===34||H===39?(e.consume(H),o=H,ge):Zt(H)?(c=de,ye(H)):Un(H)?(e.consume(H),de):(e.consume(H),Re)}function ge(H){return H===o?(e.consume(H),o=void 0,be):H===null?n(H):Zt(H)?(c=ge,ye(H)):(e.consume(H),ge)}function Re(H){return H===null||H===34||H===39||H===60||H===61||H===96?n(H):H===47||H===62||Ui(H)?se(H):(e.consume(H),Re)}function be(H){return H===47||H===62||Ui(H)?se(H):n(H)}function Ie(H){return H===62?(e.consume(H),e.exit("htmlTextData"),e.exit("htmlText"),t):n(H)}function ye(H){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(H),e.exit("lineEnding"),Q}function Q(H){return Un(H)?fr(e,Ne,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(H):Ne(H)}function Ne(H){return e.enter("htmlTextData"),c(H)}}const F3={name:"labelEnd",resolveAll:YG,resolveTo:JG,tokenize:KG},WG={tokenize:XG},qG={tokenize:QG},GG={tokenize:eY};function YG(e){let t=-1;const n=[];for(;++t<e.length;){const i=e[t][1];if(n.push(e[t]),i.type==="labelImage"||i.type==="labelLink"||i.type==="labelEnd"){const o=i.type==="labelImage"?4:2;i.type="data",t+=o}}return e.length!==n.length&&Ys(e,0,e.length,n),e}function JG(e,t){let n=e.length,i=0,o,l,c,f;for(;n--;)if(o=e[n][1],l){if(o.type==="link"||o.type==="labelLink"&&o._inactive)break;e[n][0]==="enter"&&o.type==="labelLink"&&(o._inactive=!0)}else if(c){if(e[n][0]==="enter"&&(o.type==="labelImage"||o.type==="labelLink")&&!o._balanced&&(l=n,o.type!=="labelLink")){i=2;break}}else o.type==="labelEnd"&&(c=n);const m={type:e[l][1].type==="labelLink"?"link":"image",start:{...e[l][1].start},end:{...e[e.length-1][1].end}},v={type:"label",start:{...e[l][1].start},end:{...e[c][1].end}},b={type:"labelText",start:{...e[l+i+2][1].end},end:{...e[c-2][1].start}};return f=[["enter",m,t],["enter",v,t]],f=zo(f,e.slice(l+1,l+i+3)),f=zo(f,[["enter",b,t]]),f=zo(f,P3(t.parser.constructs.insideSpan.null,e.slice(l+i+4,c-3),t)),f=zo(f,[["exit",b,t],e[c-2],e[c-1],["exit",v,t]]),f=zo(f,e.slice(c+1)),f=zo(f,[["exit",m,t]]),Ys(e,l,e.length,f),e}function KG(e,t,n){const i=this;let o=i.events.length,l,c;for(;o--;)if((i.events[o][1].type==="labelImage"||i.events[o][1].type==="labelLink")&&!i.events[o][1]._balanced){l=i.events[o][1];break}return f;function f(S){return l?l._inactive?y(S):(c=i.parser.defined.includes(cp(i.sliceSerialize({start:l.end,end:i.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(S),e.exit("labelMarker"),e.exit("labelEnd"),m):n(S)}function m(S){return S===40?e.attempt(WG,b,c?b:y)(S):S===91?e.attempt(qG,b,c?v:y)(S):c?b(S):y(S)}function v(S){return e.attempt(GG,b,y)(S)}function b(S){return t(S)}function y(S){return l._balanced=!0,n(S)}}function XG(e,t,n){return i;function i(y){return e.enter("resource"),e.enter("resourceMarker"),e.consume(y),e.exit("resourceMarker"),o}function o(y){return Ui(y)?Wh(e,l)(y):l(y)}function l(y){return y===41?b(y):y_(e,c,f,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(y)}function c(y){return Ui(y)?Wh(e,m)(y):b(y)}function f(y){return n(y)}function m(y){return y===34||y===39||y===40?b_(e,v,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(y):b(y)}function v(y){return Ui(y)?Wh(e,b)(y):b(y)}function b(y){return y===41?(e.enter("resourceMarker"),e.consume(y),e.exit("resourceMarker"),e.exit("resource"),t):n(y)}}function QG(e,t,n){const i=this;return o;function o(f){return w_.call(i,e,l,c,"reference","referenceMarker","referenceString")(f)}function l(f){return i.parser.defined.includes(cp(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)))?t(f):n(f)}function c(f){return n(f)}}function eY(e,t,n){return i;function i(l){return e.enter("reference"),e.enter("referenceMarker"),e.consume(l),e.exit("referenceMarker"),o}function o(l){return l===93?(e.enter("referenceMarker"),e.consume(l),e.exit("referenceMarker"),e.exit("reference"),t):n(l)}}const tY={name:"labelStartImage",resolveAll:F3.resolveAll,tokenize:nY};function nY(e,t,n){const i=this;return o;function o(f){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(f),e.exit("labelImageMarker"),l}function l(f){return f===91?(e.enter("labelMarker"),e.consume(f),e.exit("labelMarker"),e.exit("labelImage"),c):n(f)}function c(f){return f===94&&"_hiddenFootnoteSupport"in i.parser.constructs?n(f):t(f)}}const rY={name:"labelStartLink",resolveAll:F3.resolveAll,tokenize:aY};function aY(e,t,n){const i=this;return o;function o(c){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(c),e.exit("labelMarker"),e.exit("labelLink"),l}function l(c){return c===94&&"_hiddenFootnoteSupport"in i.parser.constructs?n(c):t(c)}}const U3={name:"lineEnding",tokenize:iY};function iY(e,t){return n;function n(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),fr(e,t,"linePrefix")}}const f4={name:"thematicBreak",tokenize:oY};function oY(e,t,n){let i=0,o;return l;function l(v){return e.enter("thematicBreak"),c(v)}function c(v){return o=v,f(v)}function f(v){return v===o?(e.enter("thematicBreakSequence"),m(v)):i>=3&&(v===null||Zt(v))?(e.exit("thematicBreak"),t(v)):n(v)}function m(v){return v===o?(e.consume(v),i++,m):(e.exit("thematicBreakSequence"),Un(v)?fr(e,f,"whitespace")(v):f(v))}}const Hi={continuation:{tokenize:cY},exit:fY,name:"list",tokenize:uY},sY={partial:!0,tokenize:pY},lY={partial:!0,tokenize:dY};function uY(e,t,n){const i=this,o=i.events[i.events.length-1];let l=o&&o[1].type==="linePrefix"?o[2].sliceSerialize(o[1],!0).length:0,c=0;return f;function f(C){const R=i.containerState.type||(C===42||C===43||C===45?"listUnordered":"listOrdered");if(R==="listUnordered"?!i.containerState.marker||C===i.containerState.marker:D3(C)){if(i.containerState.type||(i.containerState.type=R,e.enter(R,{_container:!0})),R==="listUnordered")return e.enter("listItemPrefix"),C===42||C===45?e.check(f4,n,v)(C):v(C);if(!i.interrupt||C===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),m(C)}return n(C)}function m(C){return D3(C)&&++c<10?(e.consume(C),m):(!i.interrupt||c<2)&&(i.containerState.marker?C===i.containerState.marker:C===41||C===46)?(e.exit("listItemValue"),v(C)):n(C)}function v(C){return e.enter("listItemMarker"),e.consume(C),e.exit("listItemMarker"),i.containerState.marker=i.containerState.marker||C,e.check(d4,i.interrupt?n:b,e.attempt(sY,S,y))}function b(C){return i.containerState.initialBlankLine=!0,l++,S(C)}function y(C){return Un(C)?(e.enter("listItemPrefixWhitespace"),e.consume(C),e.exit("listItemPrefixWhitespace"),S):n(C)}function S(C){return i.containerState.size=l+i.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(C)}}function cY(e,t,n){const i=this;return i.containerState._closeFlow=void 0,e.check(d4,o,l);function o(f){return i.containerState.furtherBlankLines=i.containerState.furtherBlankLines||i.containerState.initialBlankLine,fr(e,t,"listItemIndent",i.containerState.size+1)(f)}function l(f){return i.containerState.furtherBlankLines||!Un(f)?(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,c(f)):(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,e.attempt(lY,t,c)(f))}function c(f){return i.containerState._closeFlow=!0,i.interrupt=void 0,fr(e,e.attempt(Hi,t,n),"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(f)}}function dY(e,t,n){const i=this;return fr(e,o,"listItemIndent",i.containerState.size+1);function o(l){const c=i.events[i.events.length-1];return c&&c[1].type==="listItemIndent"&&c[2].sliceSerialize(c[1],!0).length===i.containerState.size?t(l):n(l)}}function fY(e){e.exit(this.containerState.type)}function pY(e,t,n){const i=this;return fr(e,o,"listItemPrefixWhitespace",i.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function o(l){const c=i.events[i.events.length-1];return!Un(l)&&c&&c[1].type==="listItemPrefixWhitespace"?t(l):n(l)}}const C_={name:"setextUnderline",resolveTo:hY,tokenize:mY};function hY(e,t){let n=e.length,i,o,l;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){i=n;break}e[n][1].type==="paragraph"&&(o=n)}else e[n][1].type==="content"&&e.splice(n,1),!l&&e[n][1].type==="definition"&&(l=n);const c={type:"setextHeading",start:{...e[i][1].start},end:{...e[e.length-1][1].end}};return e[o][1].type="setextHeadingText",l?(e.splice(o,0,["enter",c,t]),e.splice(l+1,0,["exit",e[i][1],t]),e[i][1].end={...e[l][1].end}):e[i][1]=c,e.push(["exit",c,t]),e}function mY(e,t,n){const i=this;let o;return l;function l(v){let b=i.events.length,y;for(;b--;)if(i.events[b][1].type!=="lineEnding"&&i.events[b][1].type!=="linePrefix"&&i.events[b][1].type!=="content"){y=i.events[b][1].type==="paragraph";break}return!i.parser.lazy[i.now().line]&&(i.interrupt||y)?(e.enter("setextHeadingLine"),o=v,c(v)):n(v)}function c(v){return e.enter("setextHeadingLineSequence"),f(v)}function f(v){return v===o?(e.consume(v),f):(e.exit("setextHeadingLineSequence"),Un(v)?fr(e,m,"lineSuffix")(v):m(v))}function m(v){return v===null||Zt(v)?(e.exit("setextHeadingLine"),t(v)):n(v)}}const vY={tokenize:gY};function gY(e){const t=this,n=e.attempt(d4,i,e.attempt(this.parser.constructs.flowInitial,o,fr(e,e.attempt(this.parser.constructs.flow,o,e.attempt(CG,o)),"linePrefix")));return n;function i(l){if(l===null){e.consume(l);return}return e.enter("lineEndingBlank"),e.consume(l),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function o(l){if(l===null){e.consume(l);return}return e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const yY={resolveAll:k_()},wY=S_("string"),bY=S_("text");function S_(e){return{resolveAll:k_(e==="text"?xY:void 0),tokenize:t};function t(n){const i=this,o=this.parser.constructs[e],l=n.attempt(o,c,f);return c;function c(b){return v(b)?l(b):f(b)}function f(b){if(b===null){n.consume(b);return}return n.enter("data"),n.consume(b),m}function m(b){return v(b)?(n.exit("data"),l(b)):(n.consume(b),m)}function v(b){if(b===null)return!0;const y=o[b];let S=-1;if(y)for(;++S<y.length;){const C=y[S];if(!C.previous||C.previous.call(i,i.previous))return!0}return!1}}}function k_(e){return t;function t(n,i){let o=-1,l;for(;++o<=n.length;)l===void 0?n[o]&&n[o][1].type==="data"&&(l=o,o++):(!n[o]||n[o][1].type!=="data")&&(o!==l+2&&(n[l][1].end=n[o-1][1].end,n.splice(l+2,o-l-2),o=l+2),l=void 0);return e?e(n,i):n}}function xY(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type==="lineEnding")&&e[n-1][1].type==="data"){const i=e[n-1][1],o=t.sliceStream(i);let l=o.length,c=-1,f=0,m;for(;l--;){const v=o[l];if(typeof v=="string"){for(c=v.length;v.charCodeAt(c-1)===32;)f++,c--;if(c)break;c=-1}else if(v===-2)m=!0,f++;else if(v!==-1){l++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(f=0),f){const v={type:n===e.length||m||f<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:l?c:i.start._bufferIndex+c,_index:i.start._index+l,line:i.end.line,column:i.end.column-f,offset:i.end.offset-f},end:{...i.end}};i.end={...v.start},i.start.offset===i.end.offset?Object.assign(i,v):(e.splice(n,0,["enter",v,t],["exit",v,t]),n+=2)}n++}return e}const CY=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:{null:[42,95]},contentInitial:{91:TG},disable:{null:[]},document:{42:Hi,43:Hi,45:Hi,48:Hi,49:Hi,50:Hi,51:Hi,52:Hi,53:Hi,54:Hi,55:Hi,56:Hi,57:Hi,62:f_},flow:{35:AG,42:f4,45:[C_,f4],60:zG,61:C_,95:f4,96:v_,126:v_},flowInitial:{[-2]:j3,[-1]:j3,32:j3},insideSpan:{null:[z3,yY]},string:{38:h_,92:p_},text:{[-5]:U3,[-4]:U3,[-3]:U3,33:tY,38:h_,42:z3,60:[rG,$G],91:rY,92:[OG,p_],93:F3,95:z3,96:vG}},Symbol.toStringTag,{value:"Module"}));function SY(e,t,n){let i={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const o={},l=[];let c=[],f=[];const m={attempt:W(Z),check:W(B),consume:j,enter:U,exit:P,interrupt:W(B,{interrupt:!0})},v={code:null,containerState:{},defineSkip:M,events:[],now:R,parser:e,previous:null,sliceSerialize:S,sliceStream:C,write:y};let b=t.tokenize.call(v,m);return t.resolveAll&&l.push(t),v;function y(ve){return c=zo(c,ve),L(),c[c.length-1]!==null?[]:(G(t,0),v.events=P3(l,v.events,v),v.events)}function S(ve,de){return EY(C(ve),de)}function C(ve){return kY(c,ve)}function R(){const{_bufferIndex:ve,_index:de,line:ge,column:Re,offset:be}=i;return{_bufferIndex:ve,_index:de,line:ge,column:Re,offset:be}}function M(ve){o[ve.line]=ve.column,ke()}function L(){let ve;for(;i._index<c.length;){const de=c[i._index];if(typeof de=="string")for(ve=i._index,i._bufferIndex<0&&(i._bufferIndex=0);i._index===ve&&i._bufferIndex<de.length;)I(de.charCodeAt(i._bufferIndex));else I(de)}}function I(ve){b=b(ve)}function j(ve){Zt(ve)?(i.line++,i.column=1,i.offset+=ve===-3?2:1,ke()):ve!==-1&&(i.column++,i.offset++),i._bufferIndex<0?i._index++:(i._bufferIndex++,i._bufferIndex===c[i._index].length&&(i._bufferIndex=-1,i._index++)),v.previous=ve}function U(ve,de){const ge=de||{};return ge.type=ve,ge.start=R(),v.events.push(["enter",ge,v]),f.push(ge),ge}function P(ve){const de=f.pop();return de.end=R(),v.events.push(["exit",de,v]),de}function Z(ve,de){G(ve,de.from)}function B(ve,de){de.restore()}function W(ve,de){return ge;function ge(Re,be,Ie){let ye,Q,Ne,H;return Array.isArray(Re)?fe(Re):"tokenize"in Re?fe([Re]):K(Re);function K(Be){return Ee;function Ee(Ze){const Je=Ze!==null&&Be[Ze],We=Ze!==null&&Be.null,Xe=[...Array.isArray(Je)?Je:Je?[Je]:[],...Array.isArray(We)?We:We?[We]:[]];return fe(Xe)(Ze)}}function fe(Be){return ye=Be,Q=0,Be.length===0?Ie:$(Be[Q])}function $(Be){return Ee;function Ee(Ze){return H=se(),Ne=Be,Be.partial||(v.currentConstruct=Be),Be.name&&v.parser.constructs.disable.null.includes(Be.name)?it():Be.tokenize.call(de?Object.assign(Object.create(v),de):v,m,Fe,it)(Ze)}}function Fe(Be){return ve(Ne,H),be}function it(Be){return H.restore(),++Q<ye.length?$(ye[Q]):Ie}}}function G(ve,de){ve.resolveAll&&!l.includes(ve)&&l.push(ve),ve.resolve&&Ys(v.events,de,v.events.length-de,ve.resolve(v.events.slice(de),v)),ve.resolveTo&&(v.events=ve.resolveTo(v.events,v))}function se(){const ve=R(),de=v.previous,ge=v.currentConstruct,Re=v.events.length,be=Array.from(f);return{from:Re,restore:Ie};function Ie(){i=ve,v.previous=de,v.currentConstruct=ge,v.events.length=Re,f=be,ke()}}function ke(){i.line in o&&i.column<2&&(i.column=o[i.line],i.offset+=o[i.line]-1)}}function kY(e,t){const n=t.start._index,i=t.start._bufferIndex,o=t.end._index,l=t.end._bufferIndex;let c;if(n===o)c=[e[n].slice(i,l)];else{if(c=e.slice(n,o),i>-1){const f=c[0];typeof f=="string"?c[0]=f.slice(i):c.shift()}l>0&&c.push(e[o].slice(0,l))}return c}function EY(e,t){let n=-1;const i=[];let o;for(;++n<e.length;){const l=e[n];let c;if(typeof l=="string")c=l;else switch(l){case-5:{c="\r";break}case-4:{c=`
429
+ `;break}case-3:{c=`\r
430
+ `;break}case-2:{c=t?" ":" ";break}case-1:{if(!t&&o)continue;c=" ";break}default:c=String.fromCharCode(l)}o=l===-2,i.push(c)}return i.join("")}function _Y(e){const i={constructs:Vq([CY,...(e||{}).extensions||[]]),content:o(Jq),defined:[],document:o(Xq),flow:o(vY),lazy:{},string:o(wY),text:o(bY)};return i;function o(l){return c;function c(f){return SY(i,l,f)}}}function TY(e){for(;!g_(e););return e}const E_=/[\0\t\n\r]/g;function RY(){let e=1,t="",n=!0,i;return o;function o(l,c,f){const m=[];let v,b,y,S,C;for(l=t+(typeof l=="string"?l.toString():new TextDecoder(c||void 0).decode(l)),y=0,t="",n&&(l.charCodeAt(0)===65279&&y++,n=void 0);y<l.length;){if(E_.lastIndex=y,v=E_.exec(l),S=v&&v.index!==void 0?v.index:l.length,C=l.charCodeAt(S),!v){t=l.slice(y);break}if(C===10&&y===S&&i)m.push(-3),i=void 0;else switch(i&&(m.push(-5),i=void 0),y<S&&(m.push(l.slice(y,S)),e+=S-y),C){case 0:{m.push(65533),e++;break}case 9:{for(b=Math.ceil(e/4)*4,m.push(-2);e++<b;)m.push(-1);break}case 10:{m.push(-4),e=1;break}default:i=!0,e=1}y=S+1}return f&&(i&&m.push(-5),t&&m.push(t),m.push(null)),m}}const MY=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function NY(e){return e.replace(MY,OY)}function OY(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const o=n.charCodeAt(1),l=o===120||o===88;return l_(n.slice(l?2:1),l?16:10)}return A3(n)||e}const __={}.hasOwnProperty;function LY(e,t,n){return typeof t!="string"&&(n=t,t=void 0),AY(n)(TY(_Y(n).document().write(RY()(e,t,!0))))}function AY(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:l(Hn),autolinkProtocol:se,autolinkEmail:se,atxHeading:l(vt),blockQuote:l(We),characterEscape:se,characterReference:se,codeFenced:l(Xe),codeFencedFenceInfo:c,codeFencedFenceMeta:c,codeIndented:l(Xe,c),codeText:l(Et,c),codeTextData:se,data:se,codeFlowValue:se,definition:l(wt),definitionDestinationString:c,definitionLabelString:c,definitionTitleString:c,emphasis:l(lt),hardBreakEscape:l(zt),hardBreakTrailing:l(zt),htmlFlow:l(Ct,c),htmlFlowData:se,htmlText:l(Ct,c),htmlTextData:se,image:l(Dn),label:c,link:l(Hn),listItem:l(Mt),listItemValue:S,listOrdered:l(Ue,y),listUnordered:l(Ue),paragraph:l(Pn),reference:$,referenceString:c,resourceDestinationString:c,resourceTitleString:c,setextHeading:l(vt),strong:l(Wt),thematicBreak:l(Vn)},exit:{atxHeading:m(),atxHeadingSequence:Z,autolink:m(),autolinkEmail:Je,autolinkProtocol:Ze,blockQuote:m(),characterEscapeValue:ke,characterReferenceMarkerHexadecimal:it,characterReferenceMarkerNumeric:it,characterReferenceValue:Be,characterReference:Ee,codeFenced:m(L),codeFencedFence:M,codeFencedFenceInfo:C,codeFencedFenceMeta:R,codeFlowValue:ke,codeIndented:m(I),codeText:m(be),codeTextData:ke,data:ke,definition:m(),definitionDestinationString:P,definitionLabelString:j,definitionTitleString:U,emphasis:m(),hardBreakEscape:m(de),hardBreakTrailing:m(de),htmlFlow:m(ge),htmlFlowData:ke,htmlText:m(Re),htmlTextData:ke,image:m(ye),label:Ne,labelText:Q,lineEnding:ve,link:m(Ie),listItem:m(),listOrdered:m(),listUnordered:m(),paragraph:m(),referenceString:Fe,resourceDestinationString:H,resourceTitleString:K,resource:fe,setextHeading:m(G),setextHeadingLineSequence:W,setextHeadingText:B,strong:m(),thematicBreak:m()}};T_(t,(e||{}).mdastExtensions||[]);const n={};return i;function i(me){let Me={type:"root",children:[]};const ut={stack:[Me],tokenStack:[],config:t,enter:f,exit:v,buffer:c,resume:b,data:n},It=[];let Te=-1;for(;++Te<me.length;)if(me[Te][1].type==="listOrdered"||me[Te][1].type==="listUnordered")if(me[Te][0]==="enter")It.push(Te);else{const qe=It.pop();Te=o(me,qe,Te)}for(Te=-1;++Te<me.length;){const qe=t[me[Te][0]];__.call(qe,me[Te][1].type)&&qe[me[Te][1].type].call(Object.assign({sliceSerialize:me[Te][2].sliceSerialize},ut),me[Te][1])}if(ut.tokenStack.length>0){const qe=ut.tokenStack[ut.tokenStack.length-1];(qe[1]||R_).call(ut,void 0,qe[0])}for(Me.position={start:Ku(me.length>0?me[0][1].start:{line:1,column:1,offset:0}),end:Ku(me.length>0?me[me.length-2][1].end:{line:1,column:1,offset:0})},Te=-1;++Te<t.transforms.length;)Me=t.transforms[Te](Me)||Me;return Me}function o(me,Me,ut){let It=Me-1,Te=-1,qe=!1,Nt,gt,Xt,sn;for(;++It<=ut;){const Qt=me[It];switch(Qt[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{Qt[0]==="enter"?Te++:Te--,sn=void 0;break}case"lineEndingBlank":{Qt[0]==="enter"&&(Nt&&!sn&&!Te&&!Xt&&(Xt=It),sn=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:sn=void 0}if(!Te&&Qt[0]==="enter"&&Qt[1].type==="listItemPrefix"||Te===-1&&Qt[0]==="exit"&&(Qt[1].type==="listUnordered"||Qt[1].type==="listOrdered")){if(Nt){let Kn=It;for(gt=void 0;Kn--;){const cn=me[Kn];if(cn[1].type==="lineEnding"||cn[1].type==="lineEndingBlank"){if(cn[0]==="exit")continue;gt&&(me[gt][1].type="lineEndingBlank",qe=!0),cn[1].type="lineEnding",gt=Kn}else if(!(cn[1].type==="linePrefix"||cn[1].type==="blockQuotePrefix"||cn[1].type==="blockQuotePrefixWhitespace"||cn[1].type==="blockQuoteMarker"||cn[1].type==="listItemIndent"))break}Xt&&(!gt||Xt<gt)&&(Nt._spread=!0),Nt.end=Object.assign({},gt?me[gt][1].start:Qt[1].end),me.splice(gt||It,0,["exit",Nt,Qt[2]]),It++,ut++}if(Qt[1].type==="listItemPrefix"){const Kn={type:"listItem",_spread:!1,start:Object.assign({},Qt[1].start),end:void 0};Nt=Kn,me.splice(It,0,["enter",Kn,Qt[2]]),It++,ut++,Xt=void 0,sn=!0}}}return me[Me][1]._spread=qe,ut}function l(me,Me){return ut;function ut(It){f.call(this,me(It),It),Me&&Me.call(this,It)}}function c(){this.stack.push({type:"fragment",children:[]})}function f(me,Me,ut){this.stack[this.stack.length-1].children.push(me),this.stack.push(me),this.tokenStack.push([Me,ut||void 0]),me.position={start:Ku(Me.start),end:void 0}}function m(me){return Me;function Me(ut){me&&me.call(this,ut),v.call(this,ut)}}function v(me,Me){const ut=this.stack.pop(),It=this.tokenStack.pop();if(It)It[0].type!==me.type&&(Me?Me.call(this,me,It[0]):(It[1]||R_).call(this,me,It[0]));else throw new Error("Cannot close `"+me.type+"` ("+Bh({start:me.start,end:me.end})+"): it’s not open");ut.position.end=Ku(me.end)}function b(){return Uq(this.stack.pop())}function y(){this.data.expectingFirstListItemValue=!0}function S(me){if(this.data.expectingFirstListItemValue){const Me=this.stack[this.stack.length-2];Me.start=Number.parseInt(this.sliceSerialize(me),10),this.data.expectingFirstListItemValue=void 0}}function C(){const me=this.resume(),Me=this.stack[this.stack.length-1];Me.lang=me}function R(){const me=this.resume(),Me=this.stack[this.stack.length-1];Me.meta=me}function M(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function L(){const me=this.resume(),Me=this.stack[this.stack.length-1];Me.value=me.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function I(){const me=this.resume(),Me=this.stack[this.stack.length-1];Me.value=me.replace(/(\r?\n|\r)$/g,"")}function j(me){const Me=this.resume(),ut=this.stack[this.stack.length-1];ut.label=Me,ut.identifier=cp(this.sliceSerialize(me)).toLowerCase()}function U(){const me=this.resume(),Me=this.stack[this.stack.length-1];Me.title=me}function P(){const me=this.resume(),Me=this.stack[this.stack.length-1];Me.url=me}function Z(me){const Me=this.stack[this.stack.length-1];if(!Me.depth){const ut=this.sliceSerialize(me).length;Me.depth=ut}}function B(){this.data.setextHeadingSlurpLineEnding=!0}function W(me){const Me=this.stack[this.stack.length-1];Me.depth=this.sliceSerialize(me).codePointAt(0)===61?1:2}function G(){this.data.setextHeadingSlurpLineEnding=void 0}function se(me){const ut=this.stack[this.stack.length-1].children;let It=ut[ut.length-1];(!It||It.type!=="text")&&(It=pr(),It.position={start:Ku(me.start),end:void 0},ut.push(It)),this.stack.push(It)}function ke(me){const Me=this.stack.pop();Me.value+=this.sliceSerialize(me),Me.position.end=Ku(me.end)}function ve(me){const Me=this.stack[this.stack.length-1];if(this.data.atHardBreak){const ut=Me.children[Me.children.length-1];ut.position.end=Ku(me.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(Me.type)&&(se.call(this,me),ke.call(this,me))}function de(){this.data.atHardBreak=!0}function ge(){const me=this.resume(),Me=this.stack[this.stack.length-1];Me.value=me}function Re(){const me=this.resume(),Me=this.stack[this.stack.length-1];Me.value=me}function be(){const me=this.resume(),Me=this.stack[this.stack.length-1];Me.value=me}function Ie(){const me=this.stack[this.stack.length-1];if(this.data.inReference){const Me=this.data.referenceType||"shortcut";me.type+="Reference",me.referenceType=Me,delete me.url,delete me.title}else delete me.identifier,delete me.label;this.data.referenceType=void 0}function ye(){const me=this.stack[this.stack.length-1];if(this.data.inReference){const Me=this.data.referenceType||"shortcut";me.type+="Reference",me.referenceType=Me,delete me.url,delete me.title}else delete me.identifier,delete me.label;this.data.referenceType=void 0}function Q(me){const Me=this.sliceSerialize(me),ut=this.stack[this.stack.length-2];ut.label=NY(Me),ut.identifier=cp(Me).toLowerCase()}function Ne(){const me=this.stack[this.stack.length-1],Me=this.resume(),ut=this.stack[this.stack.length-1];if(this.data.inReference=!0,ut.type==="link"){const It=me.children;ut.children=It}else ut.alt=Me}function H(){const me=this.resume(),Me=this.stack[this.stack.length-1];Me.url=me}function K(){const me=this.resume(),Me=this.stack[this.stack.length-1];Me.title=me}function fe(){this.data.inReference=void 0}function $(){this.data.referenceType="collapsed"}function Fe(me){const Me=this.resume(),ut=this.stack[this.stack.length-1];ut.label=Me,ut.identifier=cp(this.sliceSerialize(me)).toLowerCase(),this.data.referenceType="full"}function it(me){this.data.characterReferenceType=me.type}function Be(me){const Me=this.sliceSerialize(me),ut=this.data.characterReferenceType;let It;ut?(It=l_(Me,ut==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):It=A3(Me);const Te=this.stack[this.stack.length-1];Te.value+=It}function Ee(me){const Me=this.stack.pop();Me.position.end=Ku(me.end)}function Ze(me){ke.call(this,me);const Me=this.stack[this.stack.length-1];Me.url=this.sliceSerialize(me)}function Je(me){ke.call(this,me);const Me=this.stack[this.stack.length-1];Me.url="mailto:"+this.sliceSerialize(me)}function We(){return{type:"blockquote",children:[]}}function Xe(){return{type:"code",lang:null,meta:null,value:""}}function Et(){return{type:"inlineCode",value:""}}function wt(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function lt(){return{type:"emphasis",children:[]}}function vt(){return{type:"heading",depth:0,children:[]}}function zt(){return{type:"break"}}function Ct(){return{type:"html",value:""}}function Dn(){return{type:"image",title:null,url:"",alt:null}}function Hn(){return{type:"link",title:null,url:"",children:[]}}function Ue(me){return{type:"list",ordered:me.type==="listOrdered",start:null,spread:me._spread,children:[]}}function Mt(me){return{type:"listItem",spread:me._spread,checked:null,children:[]}}function Pn(){return{type:"paragraph",children:[]}}function Wt(){return{type:"strong",children:[]}}function pr(){return{type:"text",value:""}}function Vn(){return{type:"thematicBreak"}}}function Ku(e){return{line:e.line,column:e.column,offset:e.offset}}function T_(e,t){let n=-1;for(;++n<t.length;){const i=t[n];Array.isArray(i)?T_(e,i):IY(e,i)}}function IY(e,t){let n;for(n in t)if(__.call(t,n))switch(n){case"canContainEols":{const i=t[n];i&&e[n].push(...i);break}case"transforms":{const i=t[n];i&&e[n].push(...i);break}case"enter":case"exit":{const i=t[n];i&&Object.assign(e[n],i);break}}}function R_(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+Bh({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+Bh({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+Bh({start:t.start,end:t.end})+") is still open")}function DY(e){const t=this;t.parser=n;function n(i){return LY(i,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function PY(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function zY(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
431
+ `}]}function jY(e,t){const n=t.value?t.value+`
432
+ `:"",i={},o=t.lang?t.lang.split(/\s+/):[];o.length>0&&(i.className=["language-"+o[0]]);let l={type:"element",tagName:"code",properties:i,children:[{type:"text",value:n}]};return t.meta&&(l.data={meta:t.meta}),e.patch(t,l),l=e.applyData(t,l),l={type:"element",tagName:"pre",properties:{},children:[l]},e.patch(t,l),l}function FY(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function UY(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function HY(e,t){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",i=String(t.identifier).toUpperCase(),o=dp(i.toLowerCase()),l=e.footnoteOrder.indexOf(i);let c,f=e.footnoteCounts.get(i);f===void 0?(f=0,e.footnoteOrder.push(i),c=e.footnoteOrder.length):c=l+1,f+=1,e.footnoteCounts.set(i,f);const m={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+o,id:n+"fnref-"+o+(f>1?"-"+f:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(c)}]};e.patch(t,m);const v={type:"element",tagName:"sup",properties:{},children:[m]};return e.patch(t,v),e.applyData(t,v)}function VY(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function BY(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function M_(e,t){const n=t.referenceType;let i="]";if(n==="collapsed"?i+="[]":n==="full"&&(i+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+i}];const o=e.all(t),l=o[0];l&&l.type==="text"?l.value="["+l.value:o.unshift({type:"text",value:"["});const c=o[o.length-1];return c&&c.type==="text"?c.value+=i:o.push({type:"text",value:i}),o}function $Y(e,t){const n=String(t.identifier).toUpperCase(),i=e.definitionById.get(n);if(!i)return M_(e,t);const o={src:dp(i.url||""),alt:t.alt};i.title!==null&&i.title!==void 0&&(o.title=i.title);const l={type:"element",tagName:"img",properties:o,children:[]};return e.patch(t,l),e.applyData(t,l)}function ZY(e,t){const n={src:dp(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const i={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,i),e.applyData(t,i)}function WY(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const i={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,i),e.applyData(t,i)}function qY(e,t){const n=String(t.identifier).toUpperCase(),i=e.definitionById.get(n);if(!i)return M_(e,t);const o={href:dp(i.url||"")};i.title!==null&&i.title!==void 0&&(o.title=i.title);const l={type:"element",tagName:"a",properties:o,children:e.all(t)};return e.patch(t,l),e.applyData(t,l)}function GY(e,t){const n={href:dp(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const i={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,i),e.applyData(t,i)}function YY(e,t,n){const i=e.all(t),o=n?JY(n):N_(t),l={},c=[];if(typeof t.checked=="boolean"){const b=i[0];let y;b&&b.type==="element"&&b.tagName==="p"?y=b:(y={type:"element",tagName:"p",properties:{},children:[]},i.unshift(y)),y.children.length>0&&y.children.unshift({type:"text",value:" "}),y.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),l.className=["task-list-item"]}let f=-1;for(;++f<i.length;){const b=i[f];(o||f!==0||b.type!=="element"||b.tagName!=="p")&&c.push({type:"text",value:`
433
+ `}),b.type==="element"&&b.tagName==="p"&&!o?c.push(...b.children):c.push(b)}const m=i[i.length-1];m&&(o||m.type!=="element"||m.tagName!=="p")&&c.push({type:"text",value:`
434
+ `});const v={type:"element",tagName:"li",properties:l,children:c};return e.patch(t,v),e.applyData(t,v)}function JY(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const n=e.children;let i=-1;for(;!t&&++i<n.length;)t=N_(n[i])}return t}function N_(e){const t=e.spread;return t==null?e.children.length>1:t}function KY(e,t){const n={},i=e.all(t);let o=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++o<i.length;){const c=i[o];if(c.type==="element"&&c.tagName==="li"&&c.properties&&Array.isArray(c.properties.className)&&c.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const l={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(i,!0)};return e.patch(t,l),e.applyData(t,l)}function XY(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function QY(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function eJ(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function tJ(e,t){const n=e.all(t),i=n.shift(),o=[];if(i){const c={type:"element",tagName:"thead",properties:{},children:e.wrap([i],!0)};e.patch(t.children[0],c),o.push(c)}if(n.length>0){const c={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},f=T3(t.children[1]),m=JE(t.children[t.children.length-1]);f&&m&&(c.position={start:f,end:m}),o.push(c)}const l={type:"element",tagName:"table",properties:{},children:e.wrap(o,!0)};return e.patch(t,l),e.applyData(t,l)}function nJ(e,t,n){const i=n?n.children:void 0,l=(i?i.indexOf(t):1)===0?"th":"td",c=n&&n.type==="table"?n.align:void 0,f=c?c.length:t.children.length;let m=-1;const v=[];for(;++m<f;){const y=t.children[m],S={},C=c?c[m]:void 0;C&&(S.align=C);let R={type:"element",tagName:l,properties:S,children:[]};y&&(R.children=e.all(y),e.patch(y,R),R=e.applyData(y,R)),v.push(R)}const b={type:"element",tagName:"tr",properties:{},children:e.wrap(v,!0)};return e.patch(t,b),e.applyData(t,b)}function rJ(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const O_=9,L_=32;function aJ(e){const t=String(e),n=/\r?\n|\r/g;let i=n.exec(t),o=0;const l=[];for(;i;)l.push(A_(t.slice(o,i.index),o>0,!0),i[0]),o=i.index+i[0].length,i=n.exec(t);return l.push(A_(t.slice(o),o>0,!1)),l.join("")}function A_(e,t,n){let i=0,o=e.length;if(t){let l=e.codePointAt(i);for(;l===O_||l===L_;)i++,l=e.codePointAt(i)}if(n){let l=e.codePointAt(o-1);for(;l===O_||l===L_;)o--,l=e.codePointAt(o-1)}return o>i?e.slice(i,o):""}function iJ(e,t){const n={type:"text",value:aJ(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function oJ(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const sJ={blockquote:PY,break:zY,code:jY,delete:FY,emphasis:UY,footnoteReference:HY,heading:VY,html:BY,imageReference:$Y,image:ZY,inlineCode:WY,linkReference:qY,link:GY,listItem:YY,list:KY,paragraph:XY,root:QY,strong:eJ,table:tJ,tableCell:rJ,tableRow:nJ,text:iJ,thematicBreak:oJ,toml:p4,yaml:p4,definition:p4,footnoteDefinition:p4};function p4(){}const I_=-1,h4=0,qh=1,m4=2,H3=3,V3=4,B3=5,$3=6,D_=7,P_=8,z_=typeof self=="object"?self:globalThis,lJ=(e,t)=>{const n=(o,l)=>(e.set(l,o),o),i=o=>{if(e.has(o))return e.get(o);const[l,c]=t[o];switch(l){case h4:case I_:return n(c,o);case qh:{const f=n([],o);for(const m of c)f.push(i(m));return f}case m4:{const f=n({},o);for(const[m,v]of c)f[i(m)]=i(v);return f}case H3:return n(new Date(c),o);case V3:{const{source:f,flags:m}=c;return n(new RegExp(f,m),o)}case B3:{const f=n(new Map,o);for(const[m,v]of c)f.set(i(m),i(v));return f}case $3:{const f=n(new Set,o);for(const m of c)f.add(i(m));return f}case D_:{const{name:f,message:m}=c;return n(new z_[f](m),o)}case P_:return n(BigInt(c),o);case"BigInt":return n(Object(BigInt(c)),o);case"ArrayBuffer":return n(new Uint8Array(c).buffer,c);case"DataView":{const{buffer:f}=new Uint8Array(c);return n(new DataView(f),c)}}return n(new z_[l](c),o)};return i},j_=e=>lJ(new Map,e)(0),fp="",{toString:uJ}={},{keys:cJ}=Object,Gh=e=>{const t=typeof e;if(t!=="object"||!e)return[h4,t];const n=uJ.call(e).slice(8,-1);switch(n){case"Array":return[qh,fp];case"Object":return[m4,fp];case"Date":return[H3,fp];case"RegExp":return[V3,fp];case"Map":return[B3,fp];case"Set":return[$3,fp];case"DataView":return[qh,n]}return n.includes("Array")?[qh,n]:n.includes("Error")?[D_,n]:[m4,n]},v4=([e,t])=>e===h4&&(t==="function"||t==="symbol"),dJ=(e,t,n,i)=>{const o=(c,f)=>{const m=i.push(c)-1;return n.set(f,m),m},l=c=>{if(n.has(c))return n.get(c);let[f,m]=Gh(c);switch(f){case h4:{let b=c;switch(m){case"bigint":f=P_,b=c.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+m);b=null;break;case"undefined":return o([I_],c)}return o([f,b],c)}case qh:{if(m){let S=c;return m==="DataView"?S=new Uint8Array(c.buffer):m==="ArrayBuffer"&&(S=new Uint8Array(c)),o([m,[...S]],c)}const b=[],y=o([f,b],c);for(const S of c)b.push(l(S));return y}case m4:{if(m)switch(m){case"BigInt":return o([m,c.toString()],c);case"Boolean":case"Number":case"String":return o([m,c.valueOf()],c)}if(t&&"toJSON"in c)return l(c.toJSON());const b=[],y=o([f,b],c);for(const S of cJ(c))(e||!v4(Gh(c[S])))&&b.push([l(S),l(c[S])]);return y}case H3:return o([f,c.toISOString()],c);case V3:{const{source:b,flags:y}=c;return o([f,{source:b,flags:y}],c)}case B3:{const b=[],y=o([f,b],c);for(const[S,C]of c)(e||!(v4(Gh(S))||v4(Gh(C))))&&b.push([l(S),l(C)]);return y}case $3:{const b=[],y=o([f,b],c);for(const S of c)(e||!v4(Gh(S)))&&b.push(l(S));return y}}const{message:v}=c;return o([f,{name:m,message:v}],c)};return l},F_=(e,{json:t,lossy:n}={})=>{const i=[];return dJ(!(t||n),!!t,new Map,i)(e),i},g4=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?j_(F_(e,t)):structuredClone(e):(e,t)=>j_(F_(e,t));function fJ(e,t){const n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function pJ(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function hJ(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||fJ,i=e.options.footnoteBackLabel||pJ,o=e.options.footnoteLabel||"Footnotes",l=e.options.footnoteLabelTagName||"h2",c=e.options.footnoteLabelProperties||{className:["sr-only"]},f=[];let m=-1;for(;++m<e.footnoteOrder.length;){const v=e.footnoteById.get(e.footnoteOrder[m]);if(!v)continue;const b=e.all(v),y=String(v.identifier).toUpperCase(),S=dp(y.toLowerCase());let C=0;const R=[],M=e.footnoteCounts.get(y);for(;M!==void 0&&++C<=M;){R.length>0&&R.push({type:"text",value:" "});let j=typeof n=="string"?n:n(m,C);typeof j=="string"&&(j={type:"text",value:j}),R.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+S+(C>1?"-"+C:""),dataFootnoteBackref:"",ariaLabel:typeof i=="string"?i:i(m,C),className:["data-footnote-backref"]},children:Array.isArray(j)?j:[j]})}const L=b[b.length-1];if(L&&L.type==="element"&&L.tagName==="p"){const j=L.children[L.children.length-1];j&&j.type==="text"?j.value+=" ":L.children.push({type:"text",value:" "}),L.children.push(...R)}else b.push(...R);const I={type:"element",tagName:"li",properties:{id:t+"fn-"+S},children:e.wrap(b,!0)};e.patch(v,I),f.push(I)}if(f.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:l,properties:{...g4(c),id:"footnote-label"},children:[{type:"text",value:o}]},{type:"text",value:`
435
+ `},{type:"element",tagName:"ol",properties:{},children:e.wrap(f,!0)},{type:"text",value:`
436
+ `}]}}const U_=function(e){if(e==null)return yJ;if(typeof e=="function")return y4(e);if(typeof e=="object")return Array.isArray(e)?mJ(e):vJ(e);if(typeof e=="string")return gJ(e);throw new Error("Expected function, string, or object as test")};function mJ(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=U_(e[n]);return y4(i);function i(...o){let l=-1;for(;++l<t.length;)if(t[l].apply(this,o))return!0;return!1}}function vJ(e){const t=e;return y4(n);function n(i){const o=i;let l;for(l in e)if(o[l]!==t[l])return!1;return!0}}function gJ(e){return y4(t);function t(n){return n&&n.type===e}}function y4(e){return t;function t(n,i,o){return!!(wJ(n)&&e.call(this,n,typeof i=="number"?i:void 0,o||void 0))}}function yJ(){return!0}function wJ(e){return e!==null&&typeof e=="object"&&"type"in e}function ece(e){return e}const H_=[],bJ=!0,V_=!1,xJ="skip";function CJ(e,t,n,i){let o;typeof t=="function"&&typeof n!="function"?(i=n,n=t):o=t;const l=U_(o),c=i?-1:1;f(e,void 0,[])();function f(m,v,b){const y=m&&typeof m=="object"?m:{};if(typeof y.type=="string"){const C=typeof y.tagName=="string"?y.tagName:typeof y.name=="string"?y.name:void 0;Object.defineProperty(S,"name",{value:"node ("+(m.type+(C?"<"+C+">":""))+")"})}return S;function S(){let C=H_,R,M,L;if((!t||l(m,v,b[b.length-1]||void 0))&&(C=SJ(n(m,b)),C[0]===V_))return C;if("children"in m&&m.children){const I=m;if(I.children&&C[0]!==xJ)for(M=(i?I.children.length:-1)+c,L=b.concat(I);M>-1&&M<I.children.length;){const j=I.children[M];if(R=f(j,M,L)(),R[0]===V_)return R;M=typeof R[1]=="number"?R[1]:M+c}}return C}}}function SJ(e){return Array.isArray(e)?e:typeof e=="number"?[bJ,e]:e==null?H_:[e]}function B_(e,t,n,i){let o,l,c;typeof t=="function"&&typeof n!="function"?(l=void 0,c=t,o=n):(l=t,c=n,o=i),CJ(e,l,f,o);function f(m,v){const b=v[v.length-1],y=b?b.children.indexOf(m):void 0;return c(m,y,b)}}const Z3={}.hasOwnProperty,kJ={};function EJ(e,t){const n=t||kJ,i=new Map,o=new Map,l=new Map,c={...sJ,...n.handlers},f={all:v,applyData:TJ,definitionById:i,footnoteById:o,footnoteCounts:l,footnoteOrder:[],handlers:c,one:m,options:n,patch:_J,wrap:MJ};return B_(e,function(b){if(b.type==="definition"||b.type==="footnoteDefinition"){const y=b.type==="definition"?i:o,S=String(b.identifier).toUpperCase();y.has(S)||y.set(S,b)}}),f;function m(b,y){const S=b.type,C=f.handlers[S];if(Z3.call(f.handlers,S)&&C)return C(f,b,y);if(f.options.passThrough&&f.options.passThrough.includes(S)){if("children"in b){const{children:M,...L}=b,I=g4(L);return I.children=f.all(b),I}return g4(b)}return(f.options.unknownHandler||RJ)(f,b,y)}function v(b){const y=[];if("children"in b){const S=b.children;let C=-1;for(;++C<S.length;){const R=f.one(S[C],b);if(R){if(C&&S[C-1].type==="break"&&(!Array.isArray(R)&&R.type==="text"&&(R.value=$_(R.value)),!Array.isArray(R)&&R.type==="element")){const M=R.children[0];M&&M.type==="text"&&(M.value=$_(M.value))}Array.isArray(R)?y.push(...R):y.push(R)}}}return y}}function _J(e,t){e.position&&(t.position=yq(e))}function TJ(e,t){let n=t;if(e&&e.data){const i=e.data.hName,o=e.data.hChildren,l=e.data.hProperties;if(typeof i=="string")if(n.type==="element")n.tagName=i;else{const c="children"in n?n.children:[n];n={type:"element",tagName:i,properties:{},children:c}}n.type==="element"&&l&&Object.assign(n.properties,g4(l)),"children"in n&&n.children&&o!==null&&o!==void 0&&(n.children=o)}return n}function RJ(e,t){const n=t.data||{},i="value"in t&&!(Z3.call(n,"hProperties")||Z3.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,i),e.applyData(t,i)}function MJ(e,t){const n=[];let i=-1;for(t&&n.push({type:"text",value:`
437
+ `});++i<e.length;)i&&n.push({type:"text",value:`
438
+ `}),n.push(e[i]);return t&&e.length>0&&n.push({type:"text",value:`
439
+ `}),n}function $_(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function Z_(e,t){const n=EJ(e,t),i=n.one(e,void 0),o=hJ(n),l=Array.isArray(i)?{type:"root",children:i}:i||{type:"root",children:[]};return o&&l.children.push({type:"text",value:`
440
+ `},o),l}function NJ(e,t){return e&&"run"in e?async function(n,i){const o=Z_(n,{file:i,...t});await e.run(o,i)}:function(n,i){return Z_(n,{file:i,...e||t})}}function W_(e){if(e)throw e}var w4=Object.prototype.hasOwnProperty,q_=Object.prototype.toString,G_=Object.defineProperty,Y_=Object.getOwnPropertyDescriptor,J_=function(t){return typeof Array.isArray=="function"?Array.isArray(t):q_.call(t)==="[object Array]"},K_=function(t){if(!t||q_.call(t)!=="[object Object]")return!1;var n=w4.call(t,"constructor"),i=t.constructor&&t.constructor.prototype&&w4.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!n&&!i)return!1;var o;for(o in t);return typeof o=="undefined"||w4.call(t,o)},X_=function(t,n){G_&&n.name==="__proto__"?G_(t,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):t[n.name]=n.newValue},Q_=function(t,n){if(n==="__proto__")if(w4.call(t,n)){if(Y_)return Y_(t,n).value}else return;return t[n]},OJ=function e(){var t,n,i,o,l,c,f=arguments[0],m=1,v=arguments.length,b=!1;for(typeof f=="boolean"&&(b=f,f=arguments[1]||{},m=2),(f==null||typeof f!="object"&&typeof f!="function")&&(f={});m<v;++m)if(t=arguments[m],t!=null)for(n in t)i=Q_(f,n),o=Q_(t,n),f!==o&&(b&&o&&(K_(o)||(l=J_(o)))?(l?(l=!1,c=i&&J_(i)?i:[]):c=i&&K_(i)?i:{},X_(f,{name:n,newValue:e(b,c,o)})):typeof o!="undefined"&&X_(f,{name:n,newValue:o}));return f};const W3=Uu(OJ);function q3(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function LJ(){const e=[],t={run:n,use:i};return t;function n(...o){let l=-1;const c=o.pop();if(typeof c!="function")throw new TypeError("Expected function as last argument, not "+c);f(null,...o);function f(m,...v){const b=e[++l];let y=-1;if(m){c(m);return}for(;++y<o.length;)(v[y]===null||v[y]===void 0)&&(v[y]=o[y]);o=v,b?AJ(b,f)(...v):c(null,...v)}}function i(o){if(typeof o!="function")throw new TypeError("Expected `middelware` to be a function, not "+o);return e.push(o),t}}function AJ(e,t){let n;return i;function i(...c){const f=e.length>c.length;let m;f&&c.push(o);try{m=e.apply(this,c)}catch(v){const b=v;if(f&&n)throw b;return o(b)}f||(m&&m.then&&typeof m.then=="function"?m.then(l,o):m instanceof Error?o(m):l(m))}function o(c,...f){n||(n=!0,t(c,...f))}function l(c){o(null,c)}}const Ks={basename:IJ,dirname:DJ,extname:PJ,join:zJ,sep:"/"};function IJ(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');Yh(e);let n=0,i=-1,o=e.length,l;if(t===void 0||t.length===0||t.length>e.length){for(;o--;)if(e.codePointAt(o)===47){if(l){n=o+1;break}}else i<0&&(l=!0,i=o+1);return i<0?"":e.slice(n,i)}if(t===e)return"";let c=-1,f=t.length-1;for(;o--;)if(e.codePointAt(o)===47){if(l){n=o+1;break}}else c<0&&(l=!0,c=o+1),f>-1&&(e.codePointAt(o)===t.codePointAt(f--)?f<0&&(i=o):(f=-1,i=c));return n===i?i=c:i<0&&(i=e.length),e.slice(n,i)}function DJ(e){if(Yh(e),e.length===0)return".";let t=-1,n=e.length,i;for(;--n;)if(e.codePointAt(n)===47){if(i){t=n;break}}else i||(i=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function PJ(e){Yh(e);let t=e.length,n=-1,i=0,o=-1,l=0,c;for(;t--;){const f=e.codePointAt(t);if(f===47){if(c){i=t+1;break}continue}n<0&&(c=!0,n=t+1),f===46?o<0?o=t:l!==1&&(l=1):o>-1&&(l=-1)}return o<0||n<0||l===0||l===1&&o===n-1&&o===i+1?"":e.slice(o,n)}function zJ(...e){let t=-1,n;for(;++t<e.length;)Yh(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":jJ(n)}function jJ(e){Yh(e);const t=e.codePointAt(0)===47;let n=FJ(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function FJ(e,t){let n="",i=0,o=-1,l=0,c=-1,f,m;for(;++c<=e.length;){if(c<e.length)f=e.codePointAt(c);else{if(f===47)break;f=47}if(f===47){if(!(o===c-1||l===1))if(o!==c-1&&l===2){if(n.length<2||i!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(m=n.lastIndexOf("/"),m!==n.length-1){m<0?(n="",i=0):(n=n.slice(0,m),i=n.length-1-n.lastIndexOf("/")),o=c,l=0;continue}}else if(n.length>0){n="",i=0,o=c,l=0;continue}}t&&(n=n.length>0?n+"/..":"..",i=2)}else n.length>0?n+="/"+e.slice(o+1,c):n=e.slice(o+1,c),i=c-o-1;o=c,l=0}else f===46&&l>-1?l++:l=-1}return n}function Yh(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const UJ={cwd:HJ};function HJ(){return"/"}function G3(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function VJ(e){if(typeof e=="string")e=new URL(e);else if(!G3(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return BJ(e)}function BJ(e){if(e.hostname!==""){const i=new TypeError('File URL host must be "localhost" or empty on darwin');throw i.code="ERR_INVALID_FILE_URL_HOST",i}const t=e.pathname;let n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){const i=t.codePointAt(n+2);if(i===70||i===102){const o=new TypeError("File URL path must not include encoded / characters");throw o.code="ERR_INVALID_FILE_URL_PATH",o}}return decodeURIComponent(t)}const Y3=["history","path","basename","stem","extname","dirname"];class eT{constructor(t){let n;t?G3(t)?n={path:t}:typeof t=="string"||$J(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":UJ.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let i=-1;for(;++i<Y3.length;){const l=Y3[i];l in n&&n[l]!==void 0&&n[l]!==null&&(this[l]=l==="history"?[...n[l]]:n[l])}let o;for(o in n)Y3.includes(o)||(this[o]=n[o])}get basename(){return typeof this.path=="string"?Ks.basename(this.path):void 0}set basename(t){K3(t,"basename"),J3(t,"basename"),this.path=Ks.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?Ks.dirname(this.path):void 0}set dirname(t){tT(this.basename,"dirname"),this.path=Ks.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?Ks.extname(this.path):void 0}set extname(t){if(J3(t,"extname"),tT(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=Ks.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){G3(t)&&(t=VJ(t)),K3(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?Ks.basename(this.path,this.extname):void 0}set stem(t){K3(t,"stem"),J3(t,"stem"),this.path=Ks.join(this.dirname||"",t+(this.extname||""))}fail(t,n,i){const o=this.message(t,n,i);throw o.fatal=!0,o}info(t,n,i){const o=this.message(t,n,i);return o.fatal=void 0,o}message(t,n,i){const o=new Ja(t,n,i);return this.path&&(o.name=this.path+":"+o.name,o.file=this.path),o.fatal=!1,this.messages.push(o),o}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function J3(e,t){if(e&&e.includes(Ks.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+Ks.sep+"`")}function K3(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function tT(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function $J(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const ZJ=function(e){const i=this.constructor.prototype,o=i[e],l=function(){return o.apply(l,arguments)};return Object.setPrototypeOf(l,i),l},WJ={}.hasOwnProperty;class X3 extends ZJ{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=LJ()}copy(){const t=new X3;let n=-1;for(;++n<this.attachers.length;){const i=this.attachers[n];t.use(...i)}return t.data(W3(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(t5("data",this.frozen),this.namespace[t]=n,this):WJ.call(this.namespace,t)&&this.namespace[t]||void 0:t?(t5("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[n,...i]=this.attachers[this.freezeIndex];if(i[0]===!1)continue;i[0]===!0&&(i[0]=void 0);const o=n.call(t,...i);typeof o=="function"&&this.transformers.use(o)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const n=b4(t),i=this.parser||this.Parser;return Q3("parse",i),i(String(n),n)}process(t,n){const i=this;return this.freeze(),Q3("process",this.parser||this.Parser),e5("process",this.compiler||this.Compiler),n?o(void 0,n):new Promise(o);function o(l,c){const f=b4(t),m=i.parse(f);i.run(m,f,function(b,y,S){if(b||!y||!S)return v(b);const C=y,R=i.stringify(C,S);YJ(R)?S.value=R:S.result=R,v(b,S)});function v(b,y){b||!y?c(b):l?l(y):n(void 0,y)}}}processSync(t){let n=!1,i;return this.freeze(),Q3("processSync",this.parser||this.Parser),e5("processSync",this.compiler||this.Compiler),this.process(t,o),rT("processSync","process",n),i;function o(l,c){n=!0,W_(l),i=c}}run(t,n,i){nT(t),this.freeze();const o=this.transformers;return!i&&typeof n=="function"&&(i=n,n=void 0),i?l(void 0,i):new Promise(l);function l(c,f){const m=b4(n);o.run(t,m,v);function v(b,y,S){const C=y||t;b?f(b):c?c(C):i(void 0,C,S)}}}runSync(t,n){let i=!1,o;return this.run(t,n,l),rT("runSync","run",i),o;function l(c,f){W_(c),o=f,i=!0}}stringify(t,n){this.freeze();const i=b4(n),o=this.compiler||this.Compiler;return e5("stringify",o),nT(t),o(t,i)}use(t,...n){const i=this.attachers,o=this.namespace;if(t5("use",this.frozen),t!=null)if(typeof t=="function")m(t,n);else if(typeof t=="object")Array.isArray(t)?f(t):c(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function l(v){if(typeof v=="function")m(v,[]);else if(typeof v=="object")if(Array.isArray(v)){const[b,...y]=v;m(b,y)}else c(v);else throw new TypeError("Expected usable value, not `"+v+"`")}function c(v){if(!("plugins"in v)&&!("settings"in v))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");f(v.plugins),v.settings&&(o.settings=W3(!0,o.settings,v.settings))}function f(v){let b=-1;if(v!=null)if(Array.isArray(v))for(;++b<v.length;){const y=v[b];l(y)}else throw new TypeError("Expected a list of plugins, not `"+v+"`")}function m(v,b){let y=-1,S=-1;for(;++y<i.length;)if(i[y][0]===v){S=y;break}if(S===-1)i.push([v,...b]);else if(b.length>0){let[C,...R]=b;const M=i[S][1];q3(M)&&q3(C)&&(C=W3(!0,M,C)),i[S]=[v,C,...R]}}}}const qJ=new X3().freeze();function Q3(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function e5(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function t5(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function nT(e){if(!q3(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function rT(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function b4(e){return GJ(e)?e:new eT(e)}function GJ(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function YJ(e){return typeof e=="string"||JJ(e)}function JJ(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const KJ="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",aT=[],iT={allowDangerousHtml:!0},XJ=/^(https?|ircs?|mailto|xmpp)$/i,QJ=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function eK(e){const t=tK(e),n=nK(e);return rK(t.runSync(t.parse(n),n),e)}function tK(e){const t=e.rehypePlugins||aT,n=e.remarkPlugins||aT,i=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...iT}:iT;return qJ().use(DY).use(n).use(NJ,i).use(t)}function nK(e){const t=e.children||"",n=new eT;return typeof t=="string"&&(n.value=t),n}function rK(e,t){const n=t.allowedElements,i=t.allowElement,o=t.components,l=t.disallowedElements,c=t.skipHtml,f=t.unwrapDisallowed,m=t.urlTransform||aK;for(const b of QJ)Object.hasOwn(t,b.from)&&(""+b.from+(b.to?"use `"+b.to+"` instead":"remove it")+KJ+b.id,void 0);return B_(e,v),Sq(e,{Fragment:_.Fragment,components:o,ignoreInvalidStyle:!0,jsx:_.jsx,jsxs:_.jsxs,passKeys:!0,passNode:!0});function v(b,y,S){if(b.type==="raw"&&S&&typeof y=="number")return c?S.children.splice(y,1):S.children[y]={type:"text",value:b.value},y;if(b.type==="element"){let C;for(C in L3)if(Object.hasOwn(L3,C)&&Object.hasOwn(b.properties,C)){const R=b.properties[C],M=L3[C];(M===null||M.includes(b.tagName))&&(b.properties[C]=m(String(R||""),C,b))}}if(b.type==="element"){let C=n?!n.includes(b.tagName):l?l.includes(b.tagName):!1;if(!C&&i&&typeof y=="number"&&(C=!i(b,y,S)),C&&S&&typeof y=="number")return f&&b.children?S.children.splice(y,1,...b.children):S.children.splice(y,1),y}}}function aK(e){const t=e.indexOf(":"),n=e.indexOf("?"),i=e.indexOf("#"),o=e.indexOf("/");return t===-1||o!==-1&&t>o||n!==-1&&t>n||i!==-1&&t>i||XJ.test(e.slice(0,t))?e:""}function iK(e){return Jn.lexer(e).map(n=>n.raw)}const oT=D.memo(({content:e})=>_.jsx(eK,{children:e}),(e,t)=>e.content===t.content);oT.displayName="MemoizedMarkdownBlock";const x4=D.memo(({content:e,id:t})=>D.useMemo(()=>iK(e),[e]).map((i,o)=>_.jsx(oT,{content:i},`${t}-block_${o}`)));x4.displayName="MemoizedMarkdown";const oK=({text:e,children:t})=>_.jsx("div",{className:"px-2.5 py-[7px] text-[#0265FF] text-[14px]",style:{borderRadius:"10px 0 10px 10px",wordWrap:"break-word",background:"linear-gradient(180deg, #DBE9FF 0%, #E9FFFD 100%)"},children:e||t}),sK=()=>_.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",children:[_.jsx("path",{d:"M13 2C13.5304 2 14.039 2.21086 14.4141 2.58594C14.7891 2.96101 15 3.46957 15 4V12C15 12.5304 14.7891 13.039 14.4141 13.4141C14.039 13.7891 13.5304 14 13 14H3C2.46957 14 1.96101 13.7891 1.58594 13.4141C1.21086 13.039 1 12.5304 1 12V4C1 3.46957 1.21086 2.96101 1.58594 2.58594C1.96101 2.21086 2.46957 2 3 2H13ZM3 3C2.7551 3.00003 2.51896 3.09021 2.33594 3.25293C2.15294 3.41565 2.03553 3.63963 2.00684 3.88281L2 4V12C2.00003 12.2449 2.09021 12.481 2.25293 12.6641C2.41565 12.8471 2.63963 12.9645 2.88281 12.9932L3 13H13C13.2449 13 13.481 12.9098 13.6641 12.7471C13.8471 12.5843 13.9645 12.3604 13.9932 12.1172L14 12V4C14 3.7551 13.9098 3.51896 13.7471 3.33594C13.5843 3.15294 13.3604 3.03553 13.1172 3.00684L13 3H3ZM12.5 4C12.7761 4 13 4.22386 13 4.5V11.5C13 11.7761 12.7761 12 12.5 12H10.5C10.2239 12 10 11.7761 10 11.5V4.5C10 4.22386 10.2239 4 10.5 4H12.5Z"}),_.jsx("path",{d:"M13 2C13.5304 2 14.039 2.21086 14.4141 2.58594C14.7891 2.96101 15 3.46957 15 4V12C15 12.5304 14.7891 13.039 14.4141 13.4141C14.039 13.7891 13.5304 14 13 14H3C2.46957 14 1.96101 13.7891 1.58594 13.4141C1.21086 13.039 1 12.5304 1 12V4C1 3.46957 1.21086 2.96101 1.58594 2.58594C1.96101 2.21086 2.46957 2 3 2H13ZM3 3C2.7551 3.00003 2.51896 3.09021 2.33594 3.25293C2.15294 3.41565 2.03553 3.63963 2.00684 3.88281L2 4V12C2.00003 12.2449 2.09021 12.481 2.25293 12.6641C2.41565 12.8471 2.63963 12.9645 2.88281 12.9932L3 13H13C13.2449 13 13.481 12.9098 13.6641 12.7471C13.8471 12.5843 13.9645 12.3604 13.9932 12.1172L14 12V4C14 3.7551 13.9098 3.51896 13.7471 3.33594C13.5843 3.15294 13.3604 3.03553 13.1172 3.00684L13 3H3ZM12.5 4C12.7761 4 13 4.22386 13 4.5V11.5C13 11.7761 12.7761 12 12.5 12H10.5C10.2239 12 10 11.7761 10 11.5V4.5C10 4.22386 10.2239 4 10.5 4H12.5Z","fill-opacity":"0.2"}),_.jsx("path",{d:"M13 2C13.5304 2 14.039 2.21086 14.4141 2.58594C14.7891 2.96101 15 3.46957 15 4V12C15 12.5304 14.7891 13.039 14.4141 13.4141C14.039 13.7891 13.5304 14 13 14H3C2.46957 14 1.96101 13.7891 1.58594 13.4141C1.21086 13.039 1 12.5304 1 12V4C1 3.46957 1.21086 2.96101 1.58594 2.58594C1.96101 2.21086 2.46957 2 3 2H13ZM3 3C2.7551 3.00003 2.51896 3.09021 2.33594 3.25293C2.15294 3.41565 2.03553 3.63963 2.00684 3.88281L2 4V12C2.00003 12.2449 2.09021 12.481 2.25293 12.6641C2.41565 12.8471 2.63963 12.9645 2.88281 12.9932L3 13H13C13.2449 13 13.481 12.9098 13.6641 12.7471C13.8471 12.5843 13.9645 12.3604 13.9932 12.1172L14 12V4C14 3.7551 13.9098 3.51896 13.7471 3.33594C13.5843 3.15294 13.3604 3.03553 13.1172 3.00684L13 3H3ZM12.5 4C12.7761 4 13 4.22386 13 4.5V11.5C13 11.7761 12.7761 12 12.5 12H10.5C10.2239 12 10 11.7761 10 11.5V4.5C10 4.22386 10.2239 4 10.5 4H12.5Z","fill-opacity":"0.2"}),_.jsx("path",{d:"M13 2C13.5304 2 14.039 2.21086 14.4141 2.58594C14.7891 2.96101 15 3.46957 15 4V12C15 12.5304 14.7891 13.039 14.4141 13.4141C14.039 13.7891 13.5304 14 13 14H3C2.46957 14 1.96101 13.7891 1.58594 13.4141C1.21086 13.039 1 12.5304 1 12V4C1 3.46957 1.21086 2.96101 1.58594 2.58594C1.96101 2.21086 2.46957 2 3 2H13ZM3 3C2.7551 3.00003 2.51896 3.09021 2.33594 3.25293C2.15294 3.41565 2.03553 3.63963 2.00684 3.88281L2 4V12C2.00003 12.2449 2.09021 12.481 2.25293 12.6641C2.41565 12.8471 2.63963 12.9645 2.88281 12.9932L3 13H13C13.2449 13 13.481 12.9098 13.6641 12.7471C13.8471 12.5843 13.9645 12.3604 13.9932 12.1172L14 12V4C14 3.7551 13.9098 3.51896 13.7471 3.33594C13.5843 3.15294 13.3604 3.03553 13.1172 3.00684L13 3H3ZM12.5 4C12.7761 4 13 4.22386 13 4.5V11.5C13 11.7761 12.7761 12 12.5 12H10.5C10.2239 12 10 11.7761 10 11.5V4.5C10 4.22386 10.2239 4 10.5 4H12.5Z","fill-opacity":"0.2"}),_.jsx("path",{d:"M13 2C13.5304 2 14.039 2.21086 14.4141 2.58594C14.7891 2.96101 15 3.46957 15 4V12C15 12.5304 14.7891 13.039 14.4141 13.4141C14.039 13.7891 13.5304 14 13 14H3C2.46957 14 1.96101 13.7891 1.58594 13.4141C1.21086 13.039 1 12.5304 1 12V4C1 3.46957 1.21086 2.96101 1.58594 2.58594C1.96101 2.21086 2.46957 2 3 2H13ZM3 3C2.7551 3.00003 2.51896 3.09021 2.33594 3.25293C2.15294 3.41565 2.03553 3.63963 2.00684 3.88281L2 4V12C2.00003 12.2449 2.09021 12.481 2.25293 12.6641C2.41565 12.8471 2.63963 12.9645 2.88281 12.9932L3 13H13C13.2449 13 13.481 12.9098 13.6641 12.7471C13.8471 12.5843 13.9645 12.3604 13.9932 12.1172L14 12V4C14 3.7551 13.9098 3.51896 13.7471 3.33594C13.5843 3.15294 13.3604 3.03553 13.1172 3.00684L13 3H3ZM12.5 4C12.7761 4 13 4.22386 13 4.5V11.5C13 11.7761 12.7761 12 12.5 12H10.5C10.2239 12 10 11.7761 10 11.5V4.5C10 4.22386 10.2239 4 10.5 4H12.5Z","fill-opacity":"0.2"}),_.jsx("path",{d:"M13 2C13.5304 2 14.039 2.21086 14.4141 2.58594C14.7891 2.96101 15 3.46957 15 4V12C15 12.5304 14.7891 13.039 14.4141 13.4141C14.039 13.7891 13.5304 14 13 14H3C2.46957 14 1.96101 13.7891 1.58594 13.4141C1.21086 13.039 1 12.5304 1 12V4C1 3.46957 1.21086 2.96101 1.58594 2.58594C1.96101 2.21086 2.46957 2 3 2H13ZM3 3C2.7551 3.00003 2.51896 3.09021 2.33594 3.25293C2.15294 3.41565 2.03553 3.63963 2.00684 3.88281L2 4V12C2.00003 12.2449 2.09021 12.481 2.25293 12.6641C2.41565 12.8471 2.63963 12.9645 2.88281 12.9932L3 13H13C13.2449 13 13.481 12.9098 13.6641 12.7471C13.8471 12.5843 13.9645 12.3604 13.9932 12.1172L14 12V4C14 3.7551 13.9098 3.51896 13.7471 3.33594C13.5843 3.15294 13.3604 3.03553 13.1172 3.00684L13 3H3ZM12.5 4C12.7761 4 13 4.22386 13 4.5V11.5C13 11.7761 12.7761 12 12.5 12H10.5C10.2239 12 10 11.7761 10 11.5V4.5C10 4.22386 10.2239 4 10.5 4H12.5Z","fill-opacity":"0.2"}),_.jsx("path",{d:"M13 2C13.5304 2 14.039 2.21086 14.4141 2.58594C14.7891 2.96101 15 3.46957 15 4V12C15 12.5304 14.7891 13.039 14.4141 13.4141C14.039 13.7891 13.5304 14 13 14H3C2.46957 14 1.96101 13.7891 1.58594 13.4141C1.21086 13.039 1 12.5304 1 12V4C1 3.46957 1.21086 2.96101 1.58594 2.58594C1.96101 2.21086 2.46957 2 3 2H13ZM3 3C2.7551 3.00003 2.51896 3.09021 2.33594 3.25293C2.15294 3.41565 2.03553 3.63963 2.00684 3.88281L2 4V12C2.00003 12.2449 2.09021 12.481 2.25293 12.6641C2.41565 12.8471 2.63963 12.9645 2.88281 12.9932L3 13H13C13.2449 13 13.481 12.9098 13.6641 12.7471C13.8471 12.5843 13.9645 12.3604 13.9932 12.1172L14 12V4C14 3.7551 13.9098 3.51896 13.7471 3.33594C13.5843 3.15294 13.3604 3.03553 13.1172 3.00684L13 3H3ZM12.5 4C12.7761 4 13 4.22386 13 4.5V11.5C13 11.7761 12.7761 12 12.5 12H10.5C10.2239 12 10 11.7761 10 11.5V4.5C10 4.22386 10.2239 4 10.5 4H12.5Z","fill-opacity":"0.2"}),_.jsx("path",{d:"M13 2C13.5304 2 14.039 2.21086 14.4141 2.58594C14.7891 2.96101 15 3.46957 15 4V12C15 12.5304 14.7891 13.039 14.4141 13.4141C14.039 13.7891 13.5304 14 13 14H3C2.46957 14 1.96101 13.7891 1.58594 13.4141C1.21086 13.039 1 12.5304 1 12V4C1 3.46957 1.21086 2.96101 1.58594 2.58594C1.96101 2.21086 2.46957 2 3 2H13ZM3 3C2.7551 3.00003 2.51896 3.09021 2.33594 3.25293C2.15294 3.41565 2.03553 3.63963 2.00684 3.88281L2 4V12C2.00003 12.2449 2.09021 12.481 2.25293 12.6641C2.41565 12.8471 2.63963 12.9645 2.88281 12.9932L3 13H13C13.2449 13 13.481 12.9098 13.6641 12.7471C13.8471 12.5843 13.9645 12.3604 13.9932 12.1172L14 12V4C14 3.7551 13.9098 3.51896 13.7471 3.33594C13.5843 3.15294 13.3604 3.03553 13.1172 3.00684L13 3H3ZM12.5 4C12.7761 4 13 4.22386 13 4.5V11.5C13 11.7761 12.7761 12 12.5 12H10.5C10.2239 12 10 11.7761 10 11.5V4.5C10 4.22386 10.2239 4 10.5 4H12.5Z","fill-opacity":"0.2"}),_.jsx("path",{d:"M13 2C13.5304 2 14.039 2.21086 14.4141 2.58594C14.7891 2.96101 15 3.46957 15 4V12C15 12.5304 14.7891 13.039 14.4141 13.4141C14.039 13.7891 13.5304 14 13 14H3C2.46957 14 1.96101 13.7891 1.58594 13.4141C1.21086 13.039 1 12.5304 1 12V4C1 3.46957 1.21086 2.96101 1.58594 2.58594C1.96101 2.21086 2.46957 2 3 2H13ZM3 3C2.7551 3.00003 2.51896 3.09021 2.33594 3.25293C2.15294 3.41565 2.03553 3.63963 2.00684 3.88281L2 4V12C2.00003 12.2449 2.09021 12.481 2.25293 12.6641C2.41565 12.8471 2.63963 12.9645 2.88281 12.9932L3 13H13C13.2449 13 13.481 12.9098 13.6641 12.7471C13.8471 12.5843 13.9645 12.3604 13.9932 12.1172L14 12V4C14 3.7551 13.9098 3.51896 13.7471 3.33594C13.5843 3.15294 13.3604 3.03553 13.1172 3.00684L13 3H3ZM12.5 4C12.7761 4 13 4.22386 13 4.5V11.5C13 11.7761 12.7761 12 12.5 12H10.5C10.2239 12 10 11.7761 10 11.5V4.5C10 4.22386 10.2239 4 10.5 4H12.5Z","fill-opacity":"0.2"})]}),lK=()=>_.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",children:[_.jsx("path",{d:"M9.00669 7.99894L14.2992 2.7038C14.4278 2.57406 14.5 2.39872 14.5 2.21597C14.5 2.03322 14.4278 1.85788 14.2992 1.72814L14.271 1.69996C14.1411 1.57218 13.9662 1.50058 13.784 1.50058C13.6018 1.50058 13.4269 1.57218 13.297 1.69996L8.00217 7.00331L2.70967 1.69996C2.57969 1.57183 2.40454 1.5 2.22207 1.5C2.0396 1.5 1.86446 1.57183 1.73448 1.69996L1.70515 1.72814C1.64021 1.79157 1.58861 1.86735 1.55338 1.95103C1.51815 2.0347 1.5 2.12458 1.5 2.21538C1.5 2.30618 1.51815 2.39606 1.55338 2.47974C1.58861 2.56341 1.64021 2.6392 1.70515 2.70263L6.99765 7.99894L1.70515 13.2964C1.57687 13.4261 1.50492 13.6012 1.50492 13.7837C1.50492 13.9661 1.57687 14.1412 1.70515 14.2709L1.73448 14.2991C1.86411 14.4274 2.03912 14.4994 2.22149 14.4994C2.40386 14.4994 2.57886 14.4274 2.70849 14.2991L8.00217 9.00396L13.2947 14.2991C13.4243 14.4278 13.5996 14.5 13.7823 14.5C13.9649 14.5 14.1402 14.4278 14.2699 14.2991L14.2992 14.2709C14.4275 14.1412 14.4994 13.9661 14.4994 13.7837C14.4994 13.6012 14.4275 13.4261 14.2992 13.2964L9.00786 7.99894H9.00669Z"}),_.jsx("path",{d:"M9.00669 7.99894L14.2992 2.7038C14.4278 2.57406 14.5 2.39872 14.5 2.21597C14.5 2.03322 14.4278 1.85788 14.2992 1.72814L14.271 1.69996C14.1411 1.57218 13.9662 1.50058 13.784 1.50058C13.6018 1.50058 13.4269 1.57218 13.297 1.69996L8.00217 7.00331L2.70967 1.69996C2.57969 1.57183 2.40454 1.5 2.22207 1.5C2.0396 1.5 1.86446 1.57183 1.73448 1.69996L1.70515 1.72814C1.64021 1.79157 1.58861 1.86735 1.55338 1.95103C1.51815 2.0347 1.5 2.12458 1.5 2.21538C1.5 2.30618 1.51815 2.39606 1.55338 2.47974C1.58861 2.56341 1.64021 2.6392 1.70515 2.70263L6.99765 7.99894L1.70515 13.2964C1.57687 13.4261 1.50492 13.6012 1.50492 13.7837C1.50492 13.9661 1.57687 14.1412 1.70515 14.2709L1.73448 14.2991C1.86411 14.4274 2.03912 14.4994 2.22149 14.4994C2.40386 14.4994 2.57886 14.4274 2.70849 14.2991L8.00217 9.00396L13.2947 14.2991C13.4243 14.4278 13.5996 14.5 13.7823 14.5C13.9649 14.5 14.1402 14.4278 14.2699 14.2991L14.2992 14.2709C14.4275 14.1412 14.4994 13.9661 14.4994 13.7837C14.4994 13.6012 14.4275 13.4261 14.2992 13.2964L9.00786 7.99894H9.00669Z","fill-opacity":"0.2"}),_.jsx("path",{d:"M9.00669 7.99894L14.2992 2.7038C14.4278 2.57406 14.5 2.39872 14.5 2.21597C14.5 2.03322 14.4278 1.85788 14.2992 1.72814L14.271 1.69996C14.1411 1.57218 13.9662 1.50058 13.784 1.50058C13.6018 1.50058 13.4269 1.57218 13.297 1.69996L8.00217 7.00331L2.70967 1.69996C2.57969 1.57183 2.40454 1.5 2.22207 1.5C2.0396 1.5 1.86446 1.57183 1.73448 1.69996L1.70515 1.72814C1.64021 1.79157 1.58861 1.86735 1.55338 1.95103C1.51815 2.0347 1.5 2.12458 1.5 2.21538C1.5 2.30618 1.51815 2.39606 1.55338 2.47974C1.58861 2.56341 1.64021 2.6392 1.70515 2.70263L6.99765 7.99894L1.70515 13.2964C1.57687 13.4261 1.50492 13.6012 1.50492 13.7837C1.50492 13.9661 1.57687 14.1412 1.70515 14.2709L1.73448 14.2991C1.86411 14.4274 2.03912 14.4994 2.22149 14.4994C2.40386 14.4994 2.57886 14.4274 2.70849 14.2991L8.00217 9.00396L13.2947 14.2991C13.4243 14.4278 13.5996 14.5 13.7823 14.5C13.9649 14.5 14.1402 14.4278 14.2699 14.2991L14.2992 14.2709C14.4275 14.1412 14.4994 13.9661 14.4994 13.7837C14.4994 13.6012 14.4275 13.4261 14.2992 13.2964L9.00786 7.99894H9.00669Z","fill-opacity":"0.2"}),_.jsx("path",{d:"M9.00669 7.99894L14.2992 2.7038C14.4278 2.57406 14.5 2.39872 14.5 2.21597C14.5 2.03322 14.4278 1.85788 14.2992 1.72814L14.271 1.69996C14.1411 1.57218 13.9662 1.50058 13.784 1.50058C13.6018 1.50058 13.4269 1.57218 13.297 1.69996L8.00217 7.00331L2.70967 1.69996C2.57969 1.57183 2.40454 1.5 2.22207 1.5C2.0396 1.5 1.86446 1.57183 1.73448 1.69996L1.70515 1.72814C1.64021 1.79157 1.58861 1.86735 1.55338 1.95103C1.51815 2.0347 1.5 2.12458 1.5 2.21538C1.5 2.30618 1.51815 2.39606 1.55338 2.47974C1.58861 2.56341 1.64021 2.6392 1.70515 2.70263L6.99765 7.99894L1.70515 13.2964C1.57687 13.4261 1.50492 13.6012 1.50492 13.7837C1.50492 13.9661 1.57687 14.1412 1.70515 14.2709L1.73448 14.2991C1.86411 14.4274 2.03912 14.4994 2.22149 14.4994C2.40386 14.4994 2.57886 14.4274 2.70849 14.2991L8.00217 9.00396L13.2947 14.2991C13.4243 14.4278 13.5996 14.5 13.7823 14.5C13.9649 14.5 14.1402 14.4278 14.2699 14.2991L14.2992 14.2709C14.4275 14.1412 14.4994 13.9661 14.4994 13.7837C14.4994 13.6012 14.4275 13.4261 14.2992 13.2964L9.00786 7.99894H9.00669Z","fill-opacity":"0.2"}),_.jsx("path",{d:"M9.00669 7.99894L14.2992 2.7038C14.4278 2.57406 14.5 2.39872 14.5 2.21597C14.5 2.03322 14.4278 1.85788 14.2992 1.72814L14.271 1.69996C14.1411 1.57218 13.9662 1.50058 13.784 1.50058C13.6018 1.50058 13.4269 1.57218 13.297 1.69996L8.00217 7.00331L2.70967 1.69996C2.57969 1.57183 2.40454 1.5 2.22207 1.5C2.0396 1.5 1.86446 1.57183 1.73448 1.69996L1.70515 1.72814C1.64021 1.79157 1.58861 1.86735 1.55338 1.95103C1.51815 2.0347 1.5 2.12458 1.5 2.21538C1.5 2.30618 1.51815 2.39606 1.55338 2.47974C1.58861 2.56341 1.64021 2.6392 1.70515 2.70263L6.99765 7.99894L1.70515 13.2964C1.57687 13.4261 1.50492 13.6012 1.50492 13.7837C1.50492 13.9661 1.57687 14.1412 1.70515 14.2709L1.73448 14.2991C1.86411 14.4274 2.03912 14.4994 2.22149 14.4994C2.40386 14.4994 2.57886 14.4274 2.70849 14.2991L8.00217 9.00396L13.2947 14.2991C13.4243 14.4278 13.5996 14.5 13.7823 14.5C13.9649 14.5 14.1402 14.4278 14.2699 14.2991L14.2992 14.2709C14.4275 14.1412 14.4994 13.9661 14.4994 13.7837C14.4994 13.6012 14.4275 13.4261 14.2992 13.2964L9.00786 7.99894H9.00669Z","fill-opacity":"0.2"}),_.jsx("path",{d:"M9.00669 7.99894L14.2992 2.7038C14.4278 2.57406 14.5 2.39872 14.5 2.21597C14.5 2.03322 14.4278 1.85788 14.2992 1.72814L14.271 1.69996C14.1411 1.57218 13.9662 1.50058 13.784 1.50058C13.6018 1.50058 13.4269 1.57218 13.297 1.69996L8.00217 7.00331L2.70967 1.69996C2.57969 1.57183 2.40454 1.5 2.22207 1.5C2.0396 1.5 1.86446 1.57183 1.73448 1.69996L1.70515 1.72814C1.64021 1.79157 1.58861 1.86735 1.55338 1.95103C1.51815 2.0347 1.5 2.12458 1.5 2.21538C1.5 2.30618 1.51815 2.39606 1.55338 2.47974C1.58861 2.56341 1.64021 2.6392 1.70515 2.70263L6.99765 7.99894L1.70515 13.2964C1.57687 13.4261 1.50492 13.6012 1.50492 13.7837C1.50492 13.9661 1.57687 14.1412 1.70515 14.2709L1.73448 14.2991C1.86411 14.4274 2.03912 14.4994 2.22149 14.4994C2.40386 14.4994 2.57886 14.4274 2.70849 14.2991L8.00217 9.00396L13.2947 14.2991C13.4243 14.4278 13.5996 14.5 13.7823 14.5C13.9649 14.5 14.1402 14.4278 14.2699 14.2991L14.2992 14.2709C14.4275 14.1412 14.4994 13.9661 14.4994 13.7837C14.4994 13.6012 14.4275 13.4261 14.2992 13.2964L9.00786 7.99894H9.00669Z","fill-opacity":"0.2"}),_.jsx("path",{d:"M9.00669 7.99894L14.2992 2.7038C14.4278 2.57406 14.5 2.39872 14.5 2.21597C14.5 2.03322 14.4278 1.85788 14.2992 1.72814L14.271 1.69996C14.1411 1.57218 13.9662 1.50058 13.784 1.50058C13.6018 1.50058 13.4269 1.57218 13.297 1.69996L8.00217 7.00331L2.70967 1.69996C2.57969 1.57183 2.40454 1.5 2.22207 1.5C2.0396 1.5 1.86446 1.57183 1.73448 1.69996L1.70515 1.72814C1.64021 1.79157 1.58861 1.86735 1.55338 1.95103C1.51815 2.0347 1.5 2.12458 1.5 2.21538C1.5 2.30618 1.51815 2.39606 1.55338 2.47974C1.58861 2.56341 1.64021 2.6392 1.70515 2.70263L6.99765 7.99894L1.70515 13.2964C1.57687 13.4261 1.50492 13.6012 1.50492 13.7837C1.50492 13.9661 1.57687 14.1412 1.70515 14.2709L1.73448 14.2991C1.86411 14.4274 2.03912 14.4994 2.22149 14.4994C2.40386 14.4994 2.57886 14.4274 2.70849 14.2991L8.00217 9.00396L13.2947 14.2991C13.4243 14.4278 13.5996 14.5 13.7823 14.5C13.9649 14.5 14.1402 14.4278 14.2699 14.2991L14.2992 14.2709C14.4275 14.1412 14.4994 13.9661 14.4994 13.7837C14.4994 13.6012 14.4275 13.4261 14.2992 13.2964L9.00786 7.99894H9.00669Z","fill-opacity":"0.2"}),_.jsx("path",{d:"M9.00669 7.99894L14.2992 2.7038C14.4278 2.57406 14.5 2.39872 14.5 2.21597C14.5 2.03322 14.4278 1.85788 14.2992 1.72814L14.271 1.69996C14.1411 1.57218 13.9662 1.50058 13.784 1.50058C13.6018 1.50058 13.4269 1.57218 13.297 1.69996L8.00217 7.00331L2.70967 1.69996C2.57969 1.57183 2.40454 1.5 2.22207 1.5C2.0396 1.5 1.86446 1.57183 1.73448 1.69996L1.70515 1.72814C1.64021 1.79157 1.58861 1.86735 1.55338 1.95103C1.51815 2.0347 1.5 2.12458 1.5 2.21538C1.5 2.30618 1.51815 2.39606 1.55338 2.47974C1.58861 2.56341 1.64021 2.6392 1.70515 2.70263L6.99765 7.99894L1.70515 13.2964C1.57687 13.4261 1.50492 13.6012 1.50492 13.7837C1.50492 13.9661 1.57687 14.1412 1.70515 14.2709L1.73448 14.2991C1.86411 14.4274 2.03912 14.4994 2.22149 14.4994C2.40386 14.4994 2.57886 14.4274 2.70849 14.2991L8.00217 9.00396L13.2947 14.2991C13.4243 14.4278 13.5996 14.5 13.7823 14.5C13.9649 14.5 14.1402 14.4278 14.2699 14.2991L14.2992 14.2709C14.4275 14.1412 14.4994 13.9661 14.4994 13.7837C14.4994 13.6012 14.4275 13.4261 14.2992 13.2964L9.00786 7.99894H9.00669Z","fill-opacity":"0.2"}),_.jsx("path",{d:"M9.00669 7.99894L14.2992 2.7038C14.4278 2.57406 14.5 2.39872 14.5 2.21597C14.5 2.03322 14.4278 1.85788 14.2992 1.72814L14.271 1.69996C14.1411 1.57218 13.9662 1.50058 13.784 1.50058C13.6018 1.50058 13.4269 1.57218 13.297 1.69996L8.00217 7.00331L2.70967 1.69996C2.57969 1.57183 2.40454 1.5 2.22207 1.5C2.0396 1.5 1.86446 1.57183 1.73448 1.69996L1.70515 1.72814C1.64021 1.79157 1.58861 1.86735 1.55338 1.95103C1.51815 2.0347 1.5 2.12458 1.5 2.21538C1.5 2.30618 1.51815 2.39606 1.55338 2.47974C1.58861 2.56341 1.64021 2.6392 1.70515 2.70263L6.99765 7.99894L1.70515 13.2964C1.57687 13.4261 1.50492 13.6012 1.50492 13.7837C1.50492 13.9661 1.57687 14.1412 1.70515 14.2709L1.73448 14.2991C1.86411 14.4274 2.03912 14.4994 2.22149 14.4994C2.40386 14.4994 2.57886 14.4274 2.70849 14.2991L8.00217 9.00396L13.2947 14.2991C13.4243 14.4278 13.5996 14.5 13.7823 14.5C13.9649 14.5 14.1402 14.4278 14.2699 14.2991L14.2992 14.2709C14.4275 14.1412 14.4994 13.9661 14.4994 13.7837C14.4994 13.6012 14.4275 13.4261 14.2992 13.2964L9.00786 7.99894H9.00669Z","fill-opacity":"0.2"})]}),uK=()=>_.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",children:[_.jsx("path",{d:"M13.334 14.3031H2.66732C1.93065 14.3031 1.33398 13.7064 1.33398 12.9697V12.6064C1.33398 10.5997 2.96065 8.96973 4.97065 8.96973H11.0307C13.0373 8.96973 14.6673 10.5964 14.6673 12.6064V12.9697C14.6673 13.7064 14.0707 14.3031 13.334 14.3031Z"}),_.jsx("path",{d:"M4.66602 4.97005C4.66602 5.85411 5.01721 6.70195 5.64233 7.32707C6.26745 7.9522 7.11529 8.30338 7.99935 8.30338C8.8834 8.30338 9.73125 7.9522 10.3564 7.32707C10.9815 6.70195 11.3327 5.85411 11.3327 4.97005C11.3327 4.53231 11.2465 4.09886 11.0789 3.69444C10.9114 3.29002 10.6659 2.92256 10.3564 2.61303C10.0468 2.3035 9.67938 2.05797 9.27496 1.89045C8.87054 1.72294 8.43709 1.63672 7.99935 1.63672C7.56161 1.63672 7.12816 1.72294 6.72374 1.89045C6.31932 2.05797 5.95185 2.3035 5.64233 2.61303C5.3328 2.92256 5.08727 3.29002 4.91975 3.69444C4.75224 4.09886 4.66602 4.53231 4.66602 4.97005Z"})]}),cK=()=>_.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",children:_.jsx("path",{d:"M4.17666 2.53223H11.8185C12.3729 2.53223 12.848 2.94798 12.9074 3.50231L13.8577 12.2331C13.8973 12.5498 13.7983 12.8468 13.5805 13.0844C13.3825 13.3219 13.0856 13.4407 12.7688 13.4407H3.20658C2.88982 13.4407 2.59285 13.3021 2.39488 13.0844C2.1969 12.8468 2.09792 12.5498 2.11772 12.2331L3.08781 3.52211C3.1472 2.96778 3.62234 2.53224 4.17668 2.53224L4.17666 2.53223ZM5.26553 5.81863C5.26553 7.32326 6.49298 8.5507 7.9976 8.5507C9.50222 8.5507 10.7297 7.32326 10.7297 5.81863C10.7297 5.52167 10.4921 5.2643 10.1753 5.2643C9.87837 5.2643 9.621 5.50187 9.621 5.81863C9.621 6.72933 8.88848 7.46183 7.9778 7.46183C7.06712 7.46183 6.3346 6.72932 6.3346 5.81863C6.3346 5.62065 6.23562 5.44248 6.05744 5.34349C5.87926 5.24451 5.68128 5.24451 5.5031 5.34349C5.36451 5.44248 5.26553 5.62065 5.26553 5.81863Z"})}),dK=()=>_.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",children:_.jsx("path",{d:"M10 1.81287V14.4799H2.667C2.267 14.4799 2 14.2129 2 13.8129V3.67987C2 3.34687 2.2 3.07987 2.533 3.01287L9.2 1.34687C9.533 1.27987 9.867 1.47987 10 1.81287ZM10.667 7.81287L13.6 8.94687C13.867 9.07987 14 9.27987 14 9.54687V13.8129C14 14.2129 13.733 14.4799 13.333 14.4799H10.667V7.81287ZM7.333 8.47987H4.667C4.267 8.47987 4 8.74687 4 9.14687C4 9.47987 4.267 9.74687 4.6 9.81287H7.333C7.733 9.81287 8 9.54687 8 9.14687C8 8.74687 7.733 8.47987 7.333 8.47987ZM7.333 5.14687H4.667C4.267 5.14687 4 5.41287 4 5.81287C4 6.14687 4.267 6.41287 4.6 6.47987H7.333C7.733 6.47987 8 6.21287 8 5.81287C8 5.41287 7.733 5.14687 7.333 5.14687Z"})}),fK=()=>_.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",children:_.jsx("path",{d:"M3.99999 6.66646L9.46666 7.99979L3.99999 9.33313L2.89399 12.2825C2.57533 13.1331 3.46466 13.9338 4.27799 13.5278L13.5447 8.89446C14.2813 8.52579 14.2813 7.47446 13.5447 7.10513L4.27799 2.47179C3.46466 2.06513 2.57533 2.86646 2.89399 3.71779L4.00066 6.66646H3.99999Z"})}),pK=()=>_.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",children:[_.jsx("path",{d:"M9.99974 1C10.3726 1.00002 10.732 1.13413 11.008 1.37618C11.284 1.61824 11.4567 1.95088 11.4925 2.30924L11.4995 2.44828V4.37931H14.4991C14.6241 4.37909 14.7446 4.42404 14.8369 4.50532C14.9292 4.5866 14.9867 4.6983 14.998 4.81845C15.0092 4.93859 14.9735 5.05846 14.8979 5.15446C14.8222 5.25045 14.7121 5.31561 14.5891 5.3371L14.4991 5.34483H13.9292L12.4934 14.5887C12.4781 14.6881 12.4311 14.7804 12.3588 14.8527C12.2866 14.9251 12.1928 14.9739 12.0905 14.9923L11.9995 15H4.00053C3.89643 15.0001 3.7949 14.9687 3.71012 14.9104C3.62534 14.8521 3.56153 14.7697 3.52759 14.6746L3.50659 14.5887L2.06978 5.34483H1.50086C1.37593 5.34505 1.25544 5.3001 1.16312 5.21882C1.0708 5.13754 1.01333 5.02583 1.00205 4.90569C0.990758 4.78555 1.02646 4.66567 1.10213 4.56968C1.17779 4.47369 1.28794 4.40853 1.41087 4.38703L1.50086 4.37931H4.50046V2.44828C4.50048 2.08825 4.63936 1.74114 4.89003 1.47463C5.14069 1.20812 5.48517 1.04132 5.85628 1.00676L6.00026 1H9.99974ZM12.9184 5.34483H3.08065L4.43047 14.0345H11.5685L12.9184 5.34483ZM5.96427 5.82855C6.081 5.82046 6.19697 5.85217 6.29198 5.91815C6.38698 5.98414 6.45501 6.08022 6.4842 6.18966L6.4992 6.27655L6.99913 13.0352C7.00801 13.1554 6.97 13.2744 6.89259 13.369C6.81518 13.4635 6.70395 13.5266 6.58078 13.546C6.4576 13.5653 6.33138 13.5395 6.22692 13.4736C6.12247 13.4076 6.04732 13.3064 6.01626 13.1897L6.00026 13.1028L5.50033 6.34414C5.49098 6.2165 5.53449 6.0905 5.62129 5.99382C5.7081 5.89715 5.8311 5.8377 5.96327 5.82855H5.96427ZM10.0357 5.82855C10.1524 5.83668 10.2623 5.88402 10.3465 5.96234C10.4308 6.04067 10.4839 6.14501 10.4967 6.25724L10.4987 6.34414L9.99874 13.1028C9.99035 13.2232 9.93551 13.3363 9.84502 13.4197C9.75454 13.503 9.63499 13.5506 9.50997 13.553C9.38494 13.5555 9.26351 13.5126 9.16963 13.4328C9.07576 13.353 9.01626 13.2421 9.00287 13.1221L8.99987 13.0352L9.4998 6.27655C9.50437 6.21318 9.52184 6.15131 9.55121 6.09447C9.58058 6.03764 9.62128 5.98696 9.67098 5.94534C9.72067 5.90372 9.77838 5.87198 9.8408 5.85194C9.90322 5.8319 9.96912 5.82395 10.0347 5.82855H10.0357ZM9.99974 1.96552H6.00026C5.88325 1.96548 5.76994 2.00508 5.68005 2.07741C5.59016 2.14974 5.52939 2.25023 5.50833 2.36138L5.50033 2.44828V4.37931H10.4997V2.44828C10.4997 2.33529 10.4587 2.22586 10.3838 2.13906C10.3089 2.05226 10.2048 1.99358 10.0897 1.97324L9.99974 1.96552Z"}),_.jsx("path",{d:"M9.99974 1C10.3726 1.00002 10.732 1.13413 11.008 1.37618C11.284 1.61824 11.4567 1.95088 11.4925 2.30924L11.4995 2.44828V4.37931H14.4991C14.6241 4.37909 14.7446 4.42404 14.8369 4.50532C14.9292 4.5866 14.9867 4.6983 14.998 4.81845C15.0092 4.93859 14.9735 5.05846 14.8979 5.15446C14.8222 5.25045 14.7121 5.31561 14.5891 5.3371L14.4991 5.34483H13.9292L12.4934 14.5887C12.4781 14.6881 12.4311 14.7804 12.3588 14.8527C12.2866 14.9251 12.1928 14.9739 12.0905 14.9923L11.9995 15H4.00053C3.89643 15.0001 3.7949 14.9687 3.71012 14.9104C3.62534 14.8521 3.56153 14.7697 3.52759 14.6746L3.50659 14.5887L2.06978 5.34483H1.50086C1.37593 5.34505 1.25544 5.3001 1.16312 5.21882C1.0708 5.13754 1.01333 5.02583 1.00205 4.90569C0.990758 4.78555 1.02646 4.66567 1.10213 4.56968C1.17779 4.47369 1.28794 4.40853 1.41087 4.38703L1.50086 4.37931H4.50046V2.44828C4.50048 2.08825 4.63936 1.74114 4.89003 1.47463C5.14069 1.20812 5.48517 1.04132 5.85628 1.00676L6.00026 1H9.99974ZM12.9184 5.34483H3.08065L4.43047 14.0345H11.5685L12.9184 5.34483ZM5.96427 5.82855C6.081 5.82046 6.19697 5.85217 6.29198 5.91815C6.38698 5.98414 6.45501 6.08022 6.4842 6.18966L6.4992 6.27655L6.99913 13.0352C7.00801 13.1554 6.97 13.2744 6.89259 13.369C6.81518 13.4635 6.70395 13.5266 6.58078 13.546C6.4576 13.5653 6.33138 13.5395 6.22692 13.4736C6.12247 13.4076 6.04732 13.3064 6.01626 13.1897L6.00026 13.1028L5.50033 6.34414C5.49098 6.2165 5.53449 6.0905 5.62129 5.99382C5.7081 5.89715 5.8311 5.8377 5.96327 5.82855H5.96427ZM10.0357 5.82855C10.1524 5.83668 10.2623 5.88402 10.3465 5.96234C10.4308 6.04067 10.4839 6.14501 10.4967 6.25724L10.4987 6.34414L9.99874 13.1028C9.99035 13.2232 9.93551 13.3363 9.84502 13.4197C9.75454 13.503 9.63499 13.5506 9.50997 13.553C9.38494 13.5555 9.26351 13.5126 9.16963 13.4328C9.07576 13.353 9.01626 13.2421 9.00287 13.1221L8.99987 13.0352L9.4998 6.27655C9.50437 6.21318 9.52184 6.15131 9.55121 6.09447C9.58058 6.03764 9.62128 5.98696 9.67098 5.94534C9.72067 5.90372 9.77838 5.87198 9.8408 5.85194C9.90322 5.8319 9.96912 5.82395 10.0347 5.82855H10.0357ZM9.99974 1.96552H6.00026C5.88325 1.96548 5.76994 2.00508 5.68005 2.07741C5.59016 2.14974 5.52939 2.25023 5.50833 2.36138L5.50033 2.44828V4.37931H10.4997V2.44828C10.4997 2.33529 10.4587 2.22586 10.3838 2.13906C10.3089 2.05226 10.2048 1.99358 10.0897 1.97324L9.99974 1.96552Z","fill-opacity":"0.2"}),_.jsx("path",{d:"M9.99974 1C10.3726 1.00002 10.732 1.13413 11.008 1.37618C11.284 1.61824 11.4567 1.95088 11.4925 2.30924L11.4995 2.44828V4.37931H14.4991C14.6241 4.37909 14.7446 4.42404 14.8369 4.50532C14.9292 4.5866 14.9867 4.6983 14.998 4.81845C15.0092 4.93859 14.9735 5.05846 14.8979 5.15446C14.8222 5.25045 14.7121 5.31561 14.5891 5.3371L14.4991 5.34483H13.9292L12.4934 14.5887C12.4781 14.6881 12.4311 14.7804 12.3588 14.8527C12.2866 14.9251 12.1928 14.9739 12.0905 14.9923L11.9995 15H4.00053C3.89643 15.0001 3.7949 14.9687 3.71012 14.9104C3.62534 14.8521 3.56153 14.7697 3.52759 14.6746L3.50659 14.5887L2.06978 5.34483H1.50086C1.37593 5.34505 1.25544 5.3001 1.16312 5.21882C1.0708 5.13754 1.01333 5.02583 1.00205 4.90569C0.990758 4.78555 1.02646 4.66567 1.10213 4.56968C1.17779 4.47369 1.28794 4.40853 1.41087 4.38703L1.50086 4.37931H4.50046V2.44828C4.50048 2.08825 4.63936 1.74114 4.89003 1.47463C5.14069 1.20812 5.48517 1.04132 5.85628 1.00676L6.00026 1H9.99974ZM12.9184 5.34483H3.08065L4.43047 14.0345H11.5685L12.9184 5.34483ZM5.96427 5.82855C6.081 5.82046 6.19697 5.85217 6.29198 5.91815C6.38698 5.98414 6.45501 6.08022 6.4842 6.18966L6.4992 6.27655L6.99913 13.0352C7.00801 13.1554 6.97 13.2744 6.89259 13.369C6.81518 13.4635 6.70395 13.5266 6.58078 13.546C6.4576 13.5653 6.33138 13.5395 6.22692 13.4736C6.12247 13.4076 6.04732 13.3064 6.01626 13.1897L6.00026 13.1028L5.50033 6.34414C5.49098 6.2165 5.53449 6.0905 5.62129 5.99382C5.7081 5.89715 5.8311 5.8377 5.96327 5.82855H5.96427ZM10.0357 5.82855C10.1524 5.83668 10.2623 5.88402 10.3465 5.96234C10.4308 6.04067 10.4839 6.14501 10.4967 6.25724L10.4987 6.34414L9.99874 13.1028C9.99035 13.2232 9.93551 13.3363 9.84502 13.4197C9.75454 13.503 9.63499 13.5506 9.50997 13.553C9.38494 13.5555 9.26351 13.5126 9.16963 13.4328C9.07576 13.353 9.01626 13.2421 9.00287 13.1221L8.99987 13.0352L9.4998 6.27655C9.50437 6.21318 9.52184 6.15131 9.55121 6.09447C9.58058 6.03764 9.62128 5.98696 9.67098 5.94534C9.72067 5.90372 9.77838 5.87198 9.8408 5.85194C9.90322 5.8319 9.96912 5.82395 10.0347 5.82855H10.0357ZM9.99974 1.96552H6.00026C5.88325 1.96548 5.76994 2.00508 5.68005 2.07741C5.59016 2.14974 5.52939 2.25023 5.50833 2.36138L5.50033 2.44828V4.37931H10.4997V2.44828C10.4997 2.33529 10.4587 2.22586 10.3838 2.13906C10.3089 2.05226 10.2048 1.99358 10.0897 1.97324L9.99974 1.96552Z","fill-opacity":"0.2"}),_.jsx("path",{d:"M9.99974 1C10.3726 1.00002 10.732 1.13413 11.008 1.37618C11.284 1.61824 11.4567 1.95088 11.4925 2.30924L11.4995 2.44828V4.37931H14.4991C14.6241 4.37909 14.7446 4.42404 14.8369 4.50532C14.9292 4.5866 14.9867 4.6983 14.998 4.81845C15.0092 4.93859 14.9735 5.05846 14.8979 5.15446C14.8222 5.25045 14.7121 5.31561 14.5891 5.3371L14.4991 5.34483H13.9292L12.4934 14.5887C12.4781 14.6881 12.4311 14.7804 12.3588 14.8527C12.2866 14.9251 12.1928 14.9739 12.0905 14.9923L11.9995 15H4.00053C3.89643 15.0001 3.7949 14.9687 3.71012 14.9104C3.62534 14.8521 3.56153 14.7697 3.52759 14.6746L3.50659 14.5887L2.06978 5.34483H1.50086C1.37593 5.34505 1.25544 5.3001 1.16312 5.21882C1.0708 5.13754 1.01333 5.02583 1.00205 4.90569C0.990758 4.78555 1.02646 4.66567 1.10213 4.56968C1.17779 4.47369 1.28794 4.40853 1.41087 4.38703L1.50086 4.37931H4.50046V2.44828C4.50048 2.08825 4.63936 1.74114 4.89003 1.47463C5.14069 1.20812 5.48517 1.04132 5.85628 1.00676L6.00026 1H9.99974ZM12.9184 5.34483H3.08065L4.43047 14.0345H11.5685L12.9184 5.34483ZM5.96427 5.82855C6.081 5.82046 6.19697 5.85217 6.29198 5.91815C6.38698 5.98414 6.45501 6.08022 6.4842 6.18966L6.4992 6.27655L6.99913 13.0352C7.00801 13.1554 6.97 13.2744 6.89259 13.369C6.81518 13.4635 6.70395 13.5266 6.58078 13.546C6.4576 13.5653 6.33138 13.5395 6.22692 13.4736C6.12247 13.4076 6.04732 13.3064 6.01626 13.1897L6.00026 13.1028L5.50033 6.34414C5.49098 6.2165 5.53449 6.0905 5.62129 5.99382C5.7081 5.89715 5.8311 5.8377 5.96327 5.82855H5.96427ZM10.0357 5.82855C10.1524 5.83668 10.2623 5.88402 10.3465 5.96234C10.4308 6.04067 10.4839 6.14501 10.4967 6.25724L10.4987 6.34414L9.99874 13.1028C9.99035 13.2232 9.93551 13.3363 9.84502 13.4197C9.75454 13.503 9.63499 13.5506 9.50997 13.553C9.38494 13.5555 9.26351 13.5126 9.16963 13.4328C9.07576 13.353 9.01626 13.2421 9.00287 13.1221L8.99987 13.0352L9.4998 6.27655C9.50437 6.21318 9.52184 6.15131 9.55121 6.09447C9.58058 6.03764 9.62128 5.98696 9.67098 5.94534C9.72067 5.90372 9.77838 5.87198 9.8408 5.85194C9.90322 5.8319 9.96912 5.82395 10.0347 5.82855H10.0357ZM9.99974 1.96552H6.00026C5.88325 1.96548 5.76994 2.00508 5.68005 2.07741C5.59016 2.14974 5.52939 2.25023 5.50833 2.36138L5.50033 2.44828V4.37931H10.4997V2.44828C10.4997 2.33529 10.4587 2.22586 10.3838 2.13906C10.3089 2.05226 10.2048 1.99358 10.0897 1.97324L9.99974 1.96552Z","fill-opacity":"0.2"}),_.jsx("path",{d:"M9.99974 1C10.3726 1.00002 10.732 1.13413 11.008 1.37618C11.284 1.61824 11.4567 1.95088 11.4925 2.30924L11.4995 2.44828V4.37931H14.4991C14.6241 4.37909 14.7446 4.42404 14.8369 4.50532C14.9292 4.5866 14.9867 4.6983 14.998 4.81845C15.0092 4.93859 14.9735 5.05846 14.8979 5.15446C14.8222 5.25045 14.7121 5.31561 14.5891 5.3371L14.4991 5.34483H13.9292L12.4934 14.5887C12.4781 14.6881 12.4311 14.7804 12.3588 14.8527C12.2866 14.9251 12.1928 14.9739 12.0905 14.9923L11.9995 15H4.00053C3.89643 15.0001 3.7949 14.9687 3.71012 14.9104C3.62534 14.8521 3.56153 14.7697 3.52759 14.6746L3.50659 14.5887L2.06978 5.34483H1.50086C1.37593 5.34505 1.25544 5.3001 1.16312 5.21882C1.0708 5.13754 1.01333 5.02583 1.00205 4.90569C0.990758 4.78555 1.02646 4.66567 1.10213 4.56968C1.17779 4.47369 1.28794 4.40853 1.41087 4.38703L1.50086 4.37931H4.50046V2.44828C4.50048 2.08825 4.63936 1.74114 4.89003 1.47463C5.14069 1.20812 5.48517 1.04132 5.85628 1.00676L6.00026 1H9.99974ZM12.9184 5.34483H3.08065L4.43047 14.0345H11.5685L12.9184 5.34483ZM5.96427 5.82855C6.081 5.82046 6.19697 5.85217 6.29198 5.91815C6.38698 5.98414 6.45501 6.08022 6.4842 6.18966L6.4992 6.27655L6.99913 13.0352C7.00801 13.1554 6.97 13.2744 6.89259 13.369C6.81518 13.4635 6.70395 13.5266 6.58078 13.546C6.4576 13.5653 6.33138 13.5395 6.22692 13.4736C6.12247 13.4076 6.04732 13.3064 6.01626 13.1897L6.00026 13.1028L5.50033 6.34414C5.49098 6.2165 5.53449 6.0905 5.62129 5.99382C5.7081 5.89715 5.8311 5.8377 5.96327 5.82855H5.96427ZM10.0357 5.82855C10.1524 5.83668 10.2623 5.88402 10.3465 5.96234C10.4308 6.04067 10.4839 6.14501 10.4967 6.25724L10.4987 6.34414L9.99874 13.1028C9.99035 13.2232 9.93551 13.3363 9.84502 13.4197C9.75454 13.503 9.63499 13.5506 9.50997 13.553C9.38494 13.5555 9.26351 13.5126 9.16963 13.4328C9.07576 13.353 9.01626 13.2421 9.00287 13.1221L8.99987 13.0352L9.4998 6.27655C9.50437 6.21318 9.52184 6.15131 9.55121 6.09447C9.58058 6.03764 9.62128 5.98696 9.67098 5.94534C9.72067 5.90372 9.77838 5.87198 9.8408 5.85194C9.90322 5.8319 9.96912 5.82395 10.0347 5.82855H10.0357ZM9.99974 1.96552H6.00026C5.88325 1.96548 5.76994 2.00508 5.68005 2.07741C5.59016 2.14974 5.52939 2.25023 5.50833 2.36138L5.50033 2.44828V4.37931H10.4997V2.44828C10.4997 2.33529 10.4587 2.22586 10.3838 2.13906C10.3089 2.05226 10.2048 1.99358 10.0897 1.97324L9.99974 1.96552Z","fill-opacity":"0.2"}),_.jsx("path",{d:"M9.99974 1C10.3726 1.00002 10.732 1.13413 11.008 1.37618C11.284 1.61824 11.4567 1.95088 11.4925 2.30924L11.4995 2.44828V4.37931H14.4991C14.6241 4.37909 14.7446 4.42404 14.8369 4.50532C14.9292 4.5866 14.9867 4.6983 14.998 4.81845C15.0092 4.93859 14.9735 5.05846 14.8979 5.15446C14.8222 5.25045 14.7121 5.31561 14.5891 5.3371L14.4991 5.34483H13.9292L12.4934 14.5887C12.4781 14.6881 12.4311 14.7804 12.3588 14.8527C12.2866 14.9251 12.1928 14.9739 12.0905 14.9923L11.9995 15H4.00053C3.89643 15.0001 3.7949 14.9687 3.71012 14.9104C3.62534 14.8521 3.56153 14.7697 3.52759 14.6746L3.50659 14.5887L2.06978 5.34483H1.50086C1.37593 5.34505 1.25544 5.3001 1.16312 5.21882C1.0708 5.13754 1.01333 5.02583 1.00205 4.90569C0.990758 4.78555 1.02646 4.66567 1.10213 4.56968C1.17779 4.47369 1.28794 4.40853 1.41087 4.38703L1.50086 4.37931H4.50046V2.44828C4.50048 2.08825 4.63936 1.74114 4.89003 1.47463C5.14069 1.20812 5.48517 1.04132 5.85628 1.00676L6.00026 1H9.99974ZM12.9184 5.34483H3.08065L4.43047 14.0345H11.5685L12.9184 5.34483ZM5.96427 5.82855C6.081 5.82046 6.19697 5.85217 6.29198 5.91815C6.38698 5.98414 6.45501 6.08022 6.4842 6.18966L6.4992 6.27655L6.99913 13.0352C7.00801 13.1554 6.97 13.2744 6.89259 13.369C6.81518 13.4635 6.70395 13.5266 6.58078 13.546C6.4576 13.5653 6.33138 13.5395 6.22692 13.4736C6.12247 13.4076 6.04732 13.3064 6.01626 13.1897L6.00026 13.1028L5.50033 6.34414C5.49098 6.2165 5.53449 6.0905 5.62129 5.99382C5.7081 5.89715 5.8311 5.8377 5.96327 5.82855H5.96427ZM10.0357 5.82855C10.1524 5.83668 10.2623 5.88402 10.3465 5.96234C10.4308 6.04067 10.4839 6.14501 10.4967 6.25724L10.4987 6.34414L9.99874 13.1028C9.99035 13.2232 9.93551 13.3363 9.84502 13.4197C9.75454 13.503 9.63499 13.5506 9.50997 13.553C9.38494 13.5555 9.26351 13.5126 9.16963 13.4328C9.07576 13.353 9.01626 13.2421 9.00287 13.1221L8.99987 13.0352L9.4998 6.27655C9.50437 6.21318 9.52184 6.15131 9.55121 6.09447C9.58058 6.03764 9.62128 5.98696 9.67098 5.94534C9.72067 5.90372 9.77838 5.87198 9.8408 5.85194C9.90322 5.8319 9.96912 5.82395 10.0347 5.82855H10.0357ZM9.99974 1.96552H6.00026C5.88325 1.96548 5.76994 2.00508 5.68005 2.07741C5.59016 2.14974 5.52939 2.25023 5.50833 2.36138L5.50033 2.44828V4.37931H10.4997V2.44828C10.4997 2.33529 10.4587 2.22586 10.3838 2.13906C10.3089 2.05226 10.2048 1.99358 10.0897 1.97324L9.99974 1.96552Z","fill-opacity":"0.2"}),_.jsx("path",{d:"M9.99974 1C10.3726 1.00002 10.732 1.13413 11.008 1.37618C11.284 1.61824 11.4567 1.95088 11.4925 2.30924L11.4995 2.44828V4.37931H14.4991C14.6241 4.37909 14.7446 4.42404 14.8369 4.50532C14.9292 4.5866 14.9867 4.6983 14.998 4.81845C15.0092 4.93859 14.9735 5.05846 14.8979 5.15446C14.8222 5.25045 14.7121 5.31561 14.5891 5.3371L14.4991 5.34483H13.9292L12.4934 14.5887C12.4781 14.6881 12.4311 14.7804 12.3588 14.8527C12.2866 14.9251 12.1928 14.9739 12.0905 14.9923L11.9995 15H4.00053C3.89643 15.0001 3.7949 14.9687 3.71012 14.9104C3.62534 14.8521 3.56153 14.7697 3.52759 14.6746L3.50659 14.5887L2.06978 5.34483H1.50086C1.37593 5.34505 1.25544 5.3001 1.16312 5.21882C1.0708 5.13754 1.01333 5.02583 1.00205 4.90569C0.990758 4.78555 1.02646 4.66567 1.10213 4.56968C1.17779 4.47369 1.28794 4.40853 1.41087 4.38703L1.50086 4.37931H4.50046V2.44828C4.50048 2.08825 4.63936 1.74114 4.89003 1.47463C5.14069 1.20812 5.48517 1.04132 5.85628 1.00676L6.00026 1H9.99974ZM12.9184 5.34483H3.08065L4.43047 14.0345H11.5685L12.9184 5.34483ZM5.96427 5.82855C6.081 5.82046 6.19697 5.85217 6.29198 5.91815C6.38698 5.98414 6.45501 6.08022 6.4842 6.18966L6.4992 6.27655L6.99913 13.0352C7.00801 13.1554 6.97 13.2744 6.89259 13.369C6.81518 13.4635 6.70395 13.5266 6.58078 13.546C6.4576 13.5653 6.33138 13.5395 6.22692 13.4736C6.12247 13.4076 6.04732 13.3064 6.01626 13.1897L6.00026 13.1028L5.50033 6.34414C5.49098 6.2165 5.53449 6.0905 5.62129 5.99382C5.7081 5.89715 5.8311 5.8377 5.96327 5.82855H5.96427ZM10.0357 5.82855C10.1524 5.83668 10.2623 5.88402 10.3465 5.96234C10.4308 6.04067 10.4839 6.14501 10.4967 6.25724L10.4987 6.34414L9.99874 13.1028C9.99035 13.2232 9.93551 13.3363 9.84502 13.4197C9.75454 13.503 9.63499 13.5506 9.50997 13.553C9.38494 13.5555 9.26351 13.5126 9.16963 13.4328C9.07576 13.353 9.01626 13.2421 9.00287 13.1221L8.99987 13.0352L9.4998 6.27655C9.50437 6.21318 9.52184 6.15131 9.55121 6.09447C9.58058 6.03764 9.62128 5.98696 9.67098 5.94534C9.72067 5.90372 9.77838 5.87198 9.8408 5.85194C9.90322 5.8319 9.96912 5.82395 10.0347 5.82855H10.0357ZM9.99974 1.96552H6.00026C5.88325 1.96548 5.76994 2.00508 5.68005 2.07741C5.59016 2.14974 5.52939 2.25023 5.50833 2.36138L5.50033 2.44828V4.37931H10.4997V2.44828C10.4997 2.33529 10.4587 2.22586 10.3838 2.13906C10.3089 2.05226 10.2048 1.99358 10.0897 1.97324L9.99974 1.96552Z","fill-opacity":"0.2"}),_.jsx("path",{d:"M9.99974 1C10.3726 1.00002 10.732 1.13413 11.008 1.37618C11.284 1.61824 11.4567 1.95088 11.4925 2.30924L11.4995 2.44828V4.37931H14.4991C14.6241 4.37909 14.7446 4.42404 14.8369 4.50532C14.9292 4.5866 14.9867 4.6983 14.998 4.81845C15.0092 4.93859 14.9735 5.05846 14.8979 5.15446C14.8222 5.25045 14.7121 5.31561 14.5891 5.3371L14.4991 5.34483H13.9292L12.4934 14.5887C12.4781 14.6881 12.4311 14.7804 12.3588 14.8527C12.2866 14.9251 12.1928 14.9739 12.0905 14.9923L11.9995 15H4.00053C3.89643 15.0001 3.7949 14.9687 3.71012 14.9104C3.62534 14.8521 3.56153 14.7697 3.52759 14.6746L3.50659 14.5887L2.06978 5.34483H1.50086C1.37593 5.34505 1.25544 5.3001 1.16312 5.21882C1.0708 5.13754 1.01333 5.02583 1.00205 4.90569C0.990758 4.78555 1.02646 4.66567 1.10213 4.56968C1.17779 4.47369 1.28794 4.40853 1.41087 4.38703L1.50086 4.37931H4.50046V2.44828C4.50048 2.08825 4.63936 1.74114 4.89003 1.47463C5.14069 1.20812 5.48517 1.04132 5.85628 1.00676L6.00026 1H9.99974ZM12.9184 5.34483H3.08065L4.43047 14.0345H11.5685L12.9184 5.34483ZM5.96427 5.82855C6.081 5.82046 6.19697 5.85217 6.29198 5.91815C6.38698 5.98414 6.45501 6.08022 6.4842 6.18966L6.4992 6.27655L6.99913 13.0352C7.00801 13.1554 6.97 13.2744 6.89259 13.369C6.81518 13.4635 6.70395 13.5266 6.58078 13.546C6.4576 13.5653 6.33138 13.5395 6.22692 13.4736C6.12247 13.4076 6.04732 13.3064 6.01626 13.1897L6.00026 13.1028L5.50033 6.34414C5.49098 6.2165 5.53449 6.0905 5.62129 5.99382C5.7081 5.89715 5.8311 5.8377 5.96327 5.82855H5.96427ZM10.0357 5.82855C10.1524 5.83668 10.2623 5.88402 10.3465 5.96234C10.4308 6.04067 10.4839 6.14501 10.4967 6.25724L10.4987 6.34414L9.99874 13.1028C9.99035 13.2232 9.93551 13.3363 9.84502 13.4197C9.75454 13.503 9.63499 13.5506 9.50997 13.553C9.38494 13.5555 9.26351 13.5126 9.16963 13.4328C9.07576 13.353 9.01626 13.2421 9.00287 13.1221L8.99987 13.0352L9.4998 6.27655C9.50437 6.21318 9.52184 6.15131 9.55121 6.09447C9.58058 6.03764 9.62128 5.98696 9.67098 5.94534C9.72067 5.90372 9.77838 5.87198 9.8408 5.85194C9.90322 5.8319 9.96912 5.82395 10.0347 5.82855H10.0357ZM9.99974 1.96552H6.00026C5.88325 1.96548 5.76994 2.00508 5.68005 2.07741C5.59016 2.14974 5.52939 2.25023 5.50833 2.36138L5.50033 2.44828V4.37931H10.4997V2.44828C10.4997 2.33529 10.4587 2.22586 10.3838 2.13906C10.3089 2.05226 10.2048 1.99358 10.0897 1.97324L9.99974 1.96552Z","fill-opacity":"0.2"}),_.jsx("path",{d:"M9.99974 1C10.3726 1.00002 10.732 1.13413 11.008 1.37618C11.284 1.61824 11.4567 1.95088 11.4925 2.30924L11.4995 2.44828V4.37931H14.4991C14.6241 4.37909 14.7446 4.42404 14.8369 4.50532C14.9292 4.5866 14.9867 4.6983 14.998 4.81845C15.0092 4.93859 14.9735 5.05846 14.8979 5.15446C14.8222 5.25045 14.7121 5.31561 14.5891 5.3371L14.4991 5.34483H13.9292L12.4934 14.5887C12.4781 14.6881 12.4311 14.7804 12.3588 14.8527C12.2866 14.9251 12.1928 14.9739 12.0905 14.9923L11.9995 15H4.00053C3.89643 15.0001 3.7949 14.9687 3.71012 14.9104C3.62534 14.8521 3.56153 14.7697 3.52759 14.6746L3.50659 14.5887L2.06978 5.34483H1.50086C1.37593 5.34505 1.25544 5.3001 1.16312 5.21882C1.0708 5.13754 1.01333 5.02583 1.00205 4.90569C0.990758 4.78555 1.02646 4.66567 1.10213 4.56968C1.17779 4.47369 1.28794 4.40853 1.41087 4.38703L1.50086 4.37931H4.50046V2.44828C4.50048 2.08825 4.63936 1.74114 4.89003 1.47463C5.14069 1.20812 5.48517 1.04132 5.85628 1.00676L6.00026 1H9.99974ZM12.9184 5.34483H3.08065L4.43047 14.0345H11.5685L12.9184 5.34483ZM5.96427 5.82855C6.081 5.82046 6.19697 5.85217 6.29198 5.91815C6.38698 5.98414 6.45501 6.08022 6.4842 6.18966L6.4992 6.27655L6.99913 13.0352C7.00801 13.1554 6.97 13.2744 6.89259 13.369C6.81518 13.4635 6.70395 13.5266 6.58078 13.546C6.4576 13.5653 6.33138 13.5395 6.22692 13.4736C6.12247 13.4076 6.04732 13.3064 6.01626 13.1897L6.00026 13.1028L5.50033 6.34414C5.49098 6.2165 5.53449 6.0905 5.62129 5.99382C5.7081 5.89715 5.8311 5.8377 5.96327 5.82855H5.96427ZM10.0357 5.82855C10.1524 5.83668 10.2623 5.88402 10.3465 5.96234C10.4308 6.04067 10.4839 6.14501 10.4967 6.25724L10.4987 6.34414L9.99874 13.1028C9.99035 13.2232 9.93551 13.3363 9.84502 13.4197C9.75454 13.503 9.63499 13.5506 9.50997 13.553C9.38494 13.5555 9.26351 13.5126 9.16963 13.4328C9.07576 13.353 9.01626 13.2421 9.00287 13.1221L8.99987 13.0352L9.4998 6.27655C9.50437 6.21318 9.52184 6.15131 9.55121 6.09447C9.58058 6.03764 9.62128 5.98696 9.67098 5.94534C9.72067 5.90372 9.77838 5.87198 9.8408 5.85194C9.90322 5.8319 9.96912 5.82395 10.0347 5.82855H10.0357ZM9.99974 1.96552H6.00026C5.88325 1.96548 5.76994 2.00508 5.68005 2.07741C5.59016 2.14974 5.52939 2.25023 5.50833 2.36138L5.50033 2.44828V4.37931H10.4997V2.44828C10.4997 2.33529 10.4587 2.22586 10.3838 2.13906C10.3089 2.05226 10.2048 1.99358 10.0897 1.97324L9.99974 1.96552Z","fill-opacity":"0.2"})]}),sT=()=>_.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",children:[_.jsx("path",{d:"M11.7497 4.22129L11.7581 4.2618C11.7838 4.4337 11.7584 4.91737 11.3386 5.77311C10.852 6.76434 10.0245 7.866 9.01143 8.87879C7.99806 9.89217 6.89698 10.7194 5.90605 11.2059C4.96901 11.6651 4.47747 11.6523 4.35364 11.6168L4.34548 11.576C4.32014 11.4041 4.34548 10.9201 4.76505 10.0641C5.25193 9.07284 6.0797 7.97148 7.09249 6.95869C8.10587 5.94502 9.20694 5.11812 10.1979 4.63125C11.1343 4.17293 11.6259 4.18546 11.7497 4.221V4.22129ZM12.4752 3.4955C11.5629 2.58294 8.91353 3.75656 6.50568 6.11227L6.37456 6.24192C3.93291 8.68387 2.69897 11.4137 3.62814 12.3426C4.54041 13.2551 7.18981 12.0812 9.59766 9.7258L9.72878 9.59614C12.1704 7.15419 13.4044 4.42438 12.4752 3.4955ZM9.01143 6.95927C10.0248 7.97264 10.852 9.07372 11.3389 10.0647C11.7984 11.0023 11.7852 11.4932 11.7503 11.6176L11.7095 11.6258C11.537 11.6511 11.0533 11.6258 10.1973 11.2062C9.20636 10.7194 8.1047 9.89158 7.09191 8.87879C6.07854 7.86542 5.25134 6.76434 4.76447 5.77311C4.30557 4.83637 4.3181 4.34483 4.35364 4.221L4.39443 4.21285C4.56692 4.1875 5.05059 4.21285 5.90663 4.63241C6.89728 5.1187 7.99864 5.94648 9.01143 6.95927ZM9.85844 6.37304L9.72878 6.24192C7.28683 3.80027 4.55702 2.56633 3.62814 3.4955C2.71558 4.40777 3.8892 7.05717 6.2449 9.46502L6.37456 9.59614C8.81651 12.0378 11.551 13.2668 12.4752 12.3426C13.3878 11.4303 12.2138 8.78089 9.85844 6.37304ZM13.4321 7.33455C13.3495 7.41272 13.2835 7.50663 13.2379 7.61074C13.1923 7.71484 13.168 7.82703 13.1665 7.94068C13.165 8.05433 13.1862 8.16714 13.229 8.27244C13.2718 8.37774 13.3352 8.47339 13.4156 8.55376C13.496 8.63413 13.5916 8.69758 13.6969 8.74037C13.8022 8.78316 13.915 8.80441 14.0287 8.80288C14.1423 8.80134 14.2545 8.77705 14.3586 8.73144C14.4627 8.68583 14.5566 8.61982 14.6348 8.53731C14.7873 8.3764 14.8709 8.16233 14.8679 7.94068C14.8649 7.71904 14.7755 7.50731 14.6188 7.35056C14.4621 7.19382 14.2503 7.10444 14.0287 7.10145C13.807 7.09846 13.593 7.18209 13.4321 7.33455ZM7.35122 1.25372C7.26937 1.33207 7.20398 1.42597 7.15891 1.52993C7.11384 1.63388 7.08999 1.74579 7.08875 1.85909C7.08751 1.97239 7.10892 2.0848 7.15172 2.18971C7.19451 2.29462 7.25783 2.38993 7.33796 2.47004C7.41809 2.55015 7.51342 2.61345 7.61834 2.65622C7.72326 2.69899 7.83567 2.72037 7.94897 2.71911C8.06227 2.71784 8.17418 2.69396 8.27812 2.64887C8.38207 2.60377 8.47595 2.53836 8.55428 2.45649C8.70801 2.29578 8.79271 2.08127 8.79023 1.85889C8.78775 1.63651 8.69829 1.42393 8.54102 1.2667C8.38374 1.10946 8.17115 1.02005 7.94877 1.01763C7.72638 1.0152 7.51189 1.09995 7.35122 1.25372ZM1.27419 7.36077C1.19314 7.43929 1.12852 7.53315 1.08409 7.63688C1.03966 7.74061 1.01632 7.85215 1.01541 7.96499C1.0145 8.07783 1.03605 8.18972 1.0788 8.29416C1.12155 8.39859 1.18465 8.49348 1.26443 8.57329C1.3442 8.6531 1.43906 8.71625 1.54347 8.75905C1.64788 8.80186 1.75977 8.82346 1.87261 8.8226C1.98545 8.82175 2.097 8.79846 2.20075 8.75408C2.3045 8.7097 2.39839 8.64513 2.47695 8.56412C2.63243 8.40378 2.71863 8.18874 2.71694 7.9654C2.71525 7.74206 2.62581 7.52835 2.46792 7.37038C2.31003 7.21242 2.09636 7.12287 1.87302 7.12107C1.64969 7.11928 1.4346 7.20537 1.27419 7.36077ZM7.45116 13.5383C7.37015 13.6169 7.30558 13.7108 7.2612 13.8145C7.21682 13.9183 7.19353 14.0298 7.19268 14.1427C7.19182 14.2555 7.21343 14.3674 7.25623 14.4718C7.29903 14.5762 7.36218 14.6711 7.44199 14.7509C7.5218 14.8306 7.61669 14.8937 7.72112 14.9365C7.82556 14.9792 7.93745 15.0008 8.05029 14.9999C8.16313 14.999 8.27467 14.9756 8.3784 14.9312C8.48213 14.8868 8.57599 14.8221 8.65451 14.7411C8.80991 14.5807 8.89601 14.3656 8.89421 14.1423C8.89241 13.9189 8.80286 13.7053 8.6449 13.5474C8.48693 13.3895 8.27322 13.3 8.04988 13.2983C7.82655 13.2967 7.6115 13.3828 7.45116 13.5383Z"}),_.jsx("path",{d:"M11.7497 4.22129L11.7581 4.2618C11.7838 4.4337 11.7584 4.91737 11.3386 5.77311C10.852 6.76434 10.0245 7.866 9.01143 8.87879C7.99806 9.89217 6.89698 10.7194 5.90605 11.2059C4.96901 11.6651 4.47747 11.6523 4.35364 11.6168L4.34548 11.576C4.32014 11.4041 4.34548 10.9201 4.76505 10.0641C5.25193 9.07284 6.0797 7.97148 7.09249 6.95869C8.10587 5.94502 9.20694 5.11812 10.1979 4.63125C11.1343 4.17293 11.6259 4.18546 11.7497 4.221V4.22129ZM12.4752 3.4955C11.5629 2.58294 8.91353 3.75656 6.50568 6.11227L6.37456 6.24192C3.93291 8.68387 2.69897 11.4137 3.62814 12.3426C4.54041 13.2551 7.18981 12.0812 9.59766 9.7258L9.72878 9.59614C12.1704 7.15419 13.4044 4.42438 12.4752 3.4955ZM9.01143 6.95927C10.0248 7.97264 10.852 9.07372 11.3389 10.0647C11.7984 11.0023 11.7852 11.4932 11.7503 11.6176L11.7095 11.6258C11.537 11.6511 11.0533 11.6258 10.1973 11.2062C9.20636 10.7194 8.1047 9.89158 7.09191 8.87879C6.07854 7.86542 5.25134 6.76434 4.76447 5.77311C4.30557 4.83637 4.3181 4.34483 4.35364 4.221L4.39443 4.21285C4.56692 4.1875 5.05059 4.21285 5.90663 4.63241C6.89728 5.1187 7.99864 5.94648 9.01143 6.95927ZM9.85844 6.37304L9.72878 6.24192C7.28683 3.80027 4.55702 2.56633 3.62814 3.4955C2.71558 4.40777 3.8892 7.05717 6.2449 9.46502L6.37456 9.59614C8.81651 12.0378 11.551 13.2668 12.4752 12.3426C13.3878 11.4303 12.2138 8.78089 9.85844 6.37304ZM13.4321 7.33455C13.3495 7.41272 13.2835 7.50663 13.2379 7.61074C13.1923 7.71484 13.168 7.82703 13.1665 7.94068C13.165 8.05433 13.1862 8.16714 13.229 8.27244C13.2718 8.37774 13.3352 8.47339 13.4156 8.55376C13.496 8.63413 13.5916 8.69758 13.6969 8.74037C13.8022 8.78316 13.915 8.80441 14.0287 8.80288C14.1423 8.80134 14.2545 8.77705 14.3586 8.73144C14.4627 8.68583 14.5566 8.61982 14.6348 8.53731C14.7873 8.3764 14.8709 8.16233 14.8679 7.94068C14.8649 7.71904 14.7755 7.50731 14.6188 7.35056C14.4621 7.19382 14.2503 7.10444 14.0287 7.10145C13.807 7.09846 13.593 7.18209 13.4321 7.33455ZM7.35122 1.25372C7.26937 1.33207 7.20398 1.42597 7.15891 1.52993C7.11384 1.63388 7.08999 1.74579 7.08875 1.85909C7.08751 1.97239 7.10892 2.0848 7.15172 2.18971C7.19451 2.29462 7.25783 2.38993 7.33796 2.47004C7.41809 2.55015 7.51342 2.61345 7.61834 2.65622C7.72326 2.69899 7.83567 2.72037 7.94897 2.71911C8.06227 2.71784 8.17418 2.69396 8.27812 2.64887C8.38207 2.60377 8.47595 2.53836 8.55428 2.45649C8.70801 2.29578 8.79271 2.08127 8.79023 1.85889C8.78775 1.63651 8.69829 1.42393 8.54102 1.2667C8.38374 1.10946 8.17115 1.02005 7.94877 1.01763C7.72638 1.0152 7.51189 1.09995 7.35122 1.25372ZM1.27419 7.36077C1.19314 7.43929 1.12852 7.53315 1.08409 7.63688C1.03966 7.74061 1.01632 7.85215 1.01541 7.96499C1.0145 8.07783 1.03605 8.18972 1.0788 8.29416C1.12155 8.39859 1.18465 8.49348 1.26443 8.57329C1.3442 8.6531 1.43906 8.71625 1.54347 8.75905C1.64788 8.80186 1.75977 8.82346 1.87261 8.8226C1.98545 8.82175 2.097 8.79846 2.20075 8.75408C2.3045 8.7097 2.39839 8.64513 2.47695 8.56412C2.63243 8.40378 2.71863 8.18874 2.71694 7.9654C2.71525 7.74206 2.62581 7.52835 2.46792 7.37038C2.31003 7.21242 2.09636 7.12287 1.87302 7.12107C1.64969 7.11928 1.4346 7.20537 1.27419 7.36077ZM7.45116 13.5383C7.37015 13.6169 7.30558 13.7108 7.2612 13.8145C7.21682 13.9183 7.19353 14.0298 7.19268 14.1427C7.19182 14.2555 7.21343 14.3674 7.25623 14.4718C7.29903 14.5762 7.36218 14.6711 7.44199 14.7509C7.5218 14.8306 7.61669 14.8937 7.72112 14.9365C7.82556 14.9792 7.93745 15.0008 8.05029 14.9999C8.16313 14.999 8.27467 14.9756 8.3784 14.9312C8.48213 14.8868 8.57599 14.8221 8.65451 14.7411C8.80991 14.5807 8.89601 14.3656 8.89421 14.1423C8.89241 13.9189 8.80286 13.7053 8.6449 13.5474C8.48693 13.3895 8.27322 13.3 8.04988 13.2983C7.82655 13.2967 7.6115 13.3828 7.45116 13.5383Z","fill-opacity":"0.2"}),_.jsx("path",{d:"M11.7497 4.22129L11.7581 4.2618C11.7838 4.4337 11.7584 4.91737 11.3386 5.77311C10.852 6.76434 10.0245 7.866 9.01143 8.87879C7.99806 9.89217 6.89698 10.7194 5.90605 11.2059C4.96901 11.6651 4.47747 11.6523 4.35364 11.6168L4.34548 11.576C4.32014 11.4041 4.34548 10.9201 4.76505 10.0641C5.25193 9.07284 6.0797 7.97148 7.09249 6.95869C8.10587 5.94502 9.20694 5.11812 10.1979 4.63125C11.1343 4.17293 11.6259 4.18546 11.7497 4.221V4.22129ZM12.4752 3.4955C11.5629 2.58294 8.91353 3.75656 6.50568 6.11227L6.37456 6.24192C3.93291 8.68387 2.69897 11.4137 3.62814 12.3426C4.54041 13.2551 7.18981 12.0812 9.59766 9.7258L9.72878 9.59614C12.1704 7.15419 13.4044 4.42438 12.4752 3.4955ZM9.01143 6.95927C10.0248 7.97264 10.852 9.07372 11.3389 10.0647C11.7984 11.0023 11.7852 11.4932 11.7503 11.6176L11.7095 11.6258C11.537 11.6511 11.0533 11.6258 10.1973 11.2062C9.20636 10.7194 8.1047 9.89158 7.09191 8.87879C6.07854 7.86542 5.25134 6.76434 4.76447 5.77311C4.30557 4.83637 4.3181 4.34483 4.35364 4.221L4.39443 4.21285C4.56692 4.1875 5.05059 4.21285 5.90663 4.63241C6.89728 5.1187 7.99864 5.94648 9.01143 6.95927ZM9.85844 6.37304L9.72878 6.24192C7.28683 3.80027 4.55702 2.56633 3.62814 3.4955C2.71558 4.40777 3.8892 7.05717 6.2449 9.46502L6.37456 9.59614C8.81651 12.0378 11.551 13.2668 12.4752 12.3426C13.3878 11.4303 12.2138 8.78089 9.85844 6.37304ZM13.4321 7.33455C13.3495 7.41272 13.2835 7.50663 13.2379 7.61074C13.1923 7.71484 13.168 7.82703 13.1665 7.94068C13.165 8.05433 13.1862 8.16714 13.229 8.27244C13.2718 8.37774 13.3352 8.47339 13.4156 8.55376C13.496 8.63413 13.5916 8.69758 13.6969 8.74037C13.8022 8.78316 13.915 8.80441 14.0287 8.80288C14.1423 8.80134 14.2545 8.77705 14.3586 8.73144C14.4627 8.68583 14.5566 8.61982 14.6348 8.53731C14.7873 8.3764 14.8709 8.16233 14.8679 7.94068C14.8649 7.71904 14.7755 7.50731 14.6188 7.35056C14.4621 7.19382 14.2503 7.10444 14.0287 7.10145C13.807 7.09846 13.593 7.18209 13.4321 7.33455ZM7.35122 1.25372C7.26937 1.33207 7.20398 1.42597 7.15891 1.52993C7.11384 1.63388 7.08999 1.74579 7.08875 1.85909C7.08751 1.97239 7.10892 2.0848 7.15172 2.18971C7.19451 2.29462 7.25783 2.38993 7.33796 2.47004C7.41809 2.55015 7.51342 2.61345 7.61834 2.65622C7.72326 2.69899 7.83567 2.72037 7.94897 2.71911C8.06227 2.71784 8.17418 2.69396 8.27812 2.64887C8.38207 2.60377 8.47595 2.53836 8.55428 2.45649C8.70801 2.29578 8.79271 2.08127 8.79023 1.85889C8.78775 1.63651 8.69829 1.42393 8.54102 1.2667C8.38374 1.10946 8.17115 1.02005 7.94877 1.01763C7.72638 1.0152 7.51189 1.09995 7.35122 1.25372ZM1.27419 7.36077C1.19314 7.43929 1.12852 7.53315 1.08409 7.63688C1.03966 7.74061 1.01632 7.85215 1.01541 7.96499C1.0145 8.07783 1.03605 8.18972 1.0788 8.29416C1.12155 8.39859 1.18465 8.49348 1.26443 8.57329C1.3442 8.6531 1.43906 8.71625 1.54347 8.75905C1.64788 8.80186 1.75977 8.82346 1.87261 8.8226C1.98545 8.82175 2.097 8.79846 2.20075 8.75408C2.3045 8.7097 2.39839 8.64513 2.47695 8.56412C2.63243 8.40378 2.71863 8.18874 2.71694 7.9654C2.71525 7.74206 2.62581 7.52835 2.46792 7.37038C2.31003 7.21242 2.09636 7.12287 1.87302 7.12107C1.64969 7.11928 1.4346 7.20537 1.27419 7.36077ZM7.45116 13.5383C7.37015 13.6169 7.30558 13.7108 7.2612 13.8145C7.21682 13.9183 7.19353 14.0298 7.19268 14.1427C7.19182 14.2555 7.21343 14.3674 7.25623 14.4718C7.29903 14.5762 7.36218 14.6711 7.44199 14.7509C7.5218 14.8306 7.61669 14.8937 7.72112 14.9365C7.82556 14.9792 7.93745 15.0008 8.05029 14.9999C8.16313 14.999 8.27467 14.9756 8.3784 14.9312C8.48213 14.8868 8.57599 14.8221 8.65451 14.7411C8.80991 14.5807 8.89601 14.3656 8.89421 14.1423C8.89241 13.9189 8.80286 13.7053 8.6449 13.5474C8.48693 13.3895 8.27322 13.3 8.04988 13.2983C7.82655 13.2967 7.6115 13.3828 7.45116 13.5383Z","fill-opacity":"0.2"}),_.jsx("path",{d:"M11.7497 4.22129L11.7581 4.2618C11.7838 4.4337 11.7584 4.91737 11.3386 5.77311C10.852 6.76434 10.0245 7.866 9.01143 8.87879C7.99806 9.89217 6.89698 10.7194 5.90605 11.2059C4.96901 11.6651 4.47747 11.6523 4.35364 11.6168L4.34548 11.576C4.32014 11.4041 4.34548 10.9201 4.76505 10.0641C5.25193 9.07284 6.0797 7.97148 7.09249 6.95869C8.10587 5.94502 9.20694 5.11812 10.1979 4.63125C11.1343 4.17293 11.6259 4.18546 11.7497 4.221V4.22129ZM12.4752 3.4955C11.5629 2.58294 8.91353 3.75656 6.50568 6.11227L6.37456 6.24192C3.93291 8.68387 2.69897 11.4137 3.62814 12.3426C4.54041 13.2551 7.18981 12.0812 9.59766 9.7258L9.72878 9.59614C12.1704 7.15419 13.4044 4.42438 12.4752 3.4955ZM9.01143 6.95927C10.0248 7.97264 10.852 9.07372 11.3389 10.0647C11.7984 11.0023 11.7852 11.4932 11.7503 11.6176L11.7095 11.6258C11.537 11.6511 11.0533 11.6258 10.1973 11.2062C9.20636 10.7194 8.1047 9.89158 7.09191 8.87879C6.07854 7.86542 5.25134 6.76434 4.76447 5.77311C4.30557 4.83637 4.3181 4.34483 4.35364 4.221L4.39443 4.21285C4.56692 4.1875 5.05059 4.21285 5.90663 4.63241C6.89728 5.1187 7.99864 5.94648 9.01143 6.95927ZM9.85844 6.37304L9.72878 6.24192C7.28683 3.80027 4.55702 2.56633 3.62814 3.4955C2.71558 4.40777 3.8892 7.05717 6.2449 9.46502L6.37456 9.59614C8.81651 12.0378 11.551 13.2668 12.4752 12.3426C13.3878 11.4303 12.2138 8.78089 9.85844 6.37304ZM13.4321 7.33455C13.3495 7.41272 13.2835 7.50663 13.2379 7.61074C13.1923 7.71484 13.168 7.82703 13.1665 7.94068C13.165 8.05433 13.1862 8.16714 13.229 8.27244C13.2718 8.37774 13.3352 8.47339 13.4156 8.55376C13.496 8.63413 13.5916 8.69758 13.6969 8.74037C13.8022 8.78316 13.915 8.80441 14.0287 8.80288C14.1423 8.80134 14.2545 8.77705 14.3586 8.73144C14.4627 8.68583 14.5566 8.61982 14.6348 8.53731C14.7873 8.3764 14.8709 8.16233 14.8679 7.94068C14.8649 7.71904 14.7755 7.50731 14.6188 7.35056C14.4621 7.19382 14.2503 7.10444 14.0287 7.10145C13.807 7.09846 13.593 7.18209 13.4321 7.33455ZM7.35122 1.25372C7.26937 1.33207 7.20398 1.42597 7.15891 1.52993C7.11384 1.63388 7.08999 1.74579 7.08875 1.85909C7.08751 1.97239 7.10892 2.0848 7.15172 2.18971C7.19451 2.29462 7.25783 2.38993 7.33796 2.47004C7.41809 2.55015 7.51342 2.61345 7.61834 2.65622C7.72326 2.69899 7.83567 2.72037 7.94897 2.71911C8.06227 2.71784 8.17418 2.69396 8.27812 2.64887C8.38207 2.60377 8.47595 2.53836 8.55428 2.45649C8.70801 2.29578 8.79271 2.08127 8.79023 1.85889C8.78775 1.63651 8.69829 1.42393 8.54102 1.2667C8.38374 1.10946 8.17115 1.02005 7.94877 1.01763C7.72638 1.0152 7.51189 1.09995 7.35122 1.25372ZM1.27419 7.36077C1.19314 7.43929 1.12852 7.53315 1.08409 7.63688C1.03966 7.74061 1.01632 7.85215 1.01541 7.96499C1.0145 8.07783 1.03605 8.18972 1.0788 8.29416C1.12155 8.39859 1.18465 8.49348 1.26443 8.57329C1.3442 8.6531 1.43906 8.71625 1.54347 8.75905C1.64788 8.80186 1.75977 8.82346 1.87261 8.8226C1.98545 8.82175 2.097 8.79846 2.20075 8.75408C2.3045 8.7097 2.39839 8.64513 2.47695 8.56412C2.63243 8.40378 2.71863 8.18874 2.71694 7.9654C2.71525 7.74206 2.62581 7.52835 2.46792 7.37038C2.31003 7.21242 2.09636 7.12287 1.87302 7.12107C1.64969 7.11928 1.4346 7.20537 1.27419 7.36077ZM7.45116 13.5383C7.37015 13.6169 7.30558 13.7108 7.2612 13.8145C7.21682 13.9183 7.19353 14.0298 7.19268 14.1427C7.19182 14.2555 7.21343 14.3674 7.25623 14.4718C7.29903 14.5762 7.36218 14.6711 7.44199 14.7509C7.5218 14.8306 7.61669 14.8937 7.72112 14.9365C7.82556 14.9792 7.93745 15.0008 8.05029 14.9999C8.16313 14.999 8.27467 14.9756 8.3784 14.9312C8.48213 14.8868 8.57599 14.8221 8.65451 14.7411C8.80991 14.5807 8.89601 14.3656 8.89421 14.1423C8.89241 13.9189 8.80286 13.7053 8.6449 13.5474C8.48693 13.3895 8.27322 13.3 8.04988 13.2983C7.82655 13.2967 7.6115 13.3828 7.45116 13.5383Z","fill-opacity":"0.2"}),_.jsx("path",{d:"M11.7497 4.22129L11.7581 4.2618C11.7838 4.4337 11.7584 4.91737 11.3386 5.77311C10.852 6.76434 10.0245 7.866 9.01143 8.87879C7.99806 9.89217 6.89698 10.7194 5.90605 11.2059C4.96901 11.6651 4.47747 11.6523 4.35364 11.6168L4.34548 11.576C4.32014 11.4041 4.34548 10.9201 4.76505 10.0641C5.25193 9.07284 6.0797 7.97148 7.09249 6.95869C8.10587 5.94502 9.20694 5.11812 10.1979 4.63125C11.1343 4.17293 11.6259 4.18546 11.7497 4.221V4.22129ZM12.4752 3.4955C11.5629 2.58294 8.91353 3.75656 6.50568 6.11227L6.37456 6.24192C3.93291 8.68387 2.69897 11.4137 3.62814 12.3426C4.54041 13.2551 7.18981 12.0812 9.59766 9.7258L9.72878 9.59614C12.1704 7.15419 13.4044 4.42438 12.4752 3.4955ZM9.01143 6.95927C10.0248 7.97264 10.852 9.07372 11.3389 10.0647C11.7984 11.0023 11.7852 11.4932 11.7503 11.6176L11.7095 11.6258C11.537 11.6511 11.0533 11.6258 10.1973 11.2062C9.20636 10.7194 8.1047 9.89158 7.09191 8.87879C6.07854 7.86542 5.25134 6.76434 4.76447 5.77311C4.30557 4.83637 4.3181 4.34483 4.35364 4.221L4.39443 4.21285C4.56692 4.1875 5.05059 4.21285 5.90663 4.63241C6.89728 5.1187 7.99864 5.94648 9.01143 6.95927ZM9.85844 6.37304L9.72878 6.24192C7.28683 3.80027 4.55702 2.56633 3.62814 3.4955C2.71558 4.40777 3.8892 7.05717 6.2449 9.46502L6.37456 9.59614C8.81651 12.0378 11.551 13.2668 12.4752 12.3426C13.3878 11.4303 12.2138 8.78089 9.85844 6.37304ZM13.4321 7.33455C13.3495 7.41272 13.2835 7.50663 13.2379 7.61074C13.1923 7.71484 13.168 7.82703 13.1665 7.94068C13.165 8.05433 13.1862 8.16714 13.229 8.27244C13.2718 8.37774 13.3352 8.47339 13.4156 8.55376C13.496 8.63413 13.5916 8.69758 13.6969 8.74037C13.8022 8.78316 13.915 8.80441 14.0287 8.80288C14.1423 8.80134 14.2545 8.77705 14.3586 8.73144C14.4627 8.68583 14.5566 8.61982 14.6348 8.53731C14.7873 8.3764 14.8709 8.16233 14.8679 7.94068C14.8649 7.71904 14.7755 7.50731 14.6188 7.35056C14.4621 7.19382 14.2503 7.10444 14.0287 7.10145C13.807 7.09846 13.593 7.18209 13.4321 7.33455ZM7.35122 1.25372C7.26937 1.33207 7.20398 1.42597 7.15891 1.52993C7.11384 1.63388 7.08999 1.74579 7.08875 1.85909C7.08751 1.97239 7.10892 2.0848 7.15172 2.18971C7.19451 2.29462 7.25783 2.38993 7.33796 2.47004C7.41809 2.55015 7.51342 2.61345 7.61834 2.65622C7.72326 2.69899 7.83567 2.72037 7.94897 2.71911C8.06227 2.71784 8.17418 2.69396 8.27812 2.64887C8.38207 2.60377 8.47595 2.53836 8.55428 2.45649C8.70801 2.29578 8.79271 2.08127 8.79023 1.85889C8.78775 1.63651 8.69829 1.42393 8.54102 1.2667C8.38374 1.10946 8.17115 1.02005 7.94877 1.01763C7.72638 1.0152 7.51189 1.09995 7.35122 1.25372ZM1.27419 7.36077C1.19314 7.43929 1.12852 7.53315 1.08409 7.63688C1.03966 7.74061 1.01632 7.85215 1.01541 7.96499C1.0145 8.07783 1.03605 8.18972 1.0788 8.29416C1.12155 8.39859 1.18465 8.49348 1.26443 8.57329C1.3442 8.6531 1.43906 8.71625 1.54347 8.75905C1.64788 8.80186 1.75977 8.82346 1.87261 8.8226C1.98545 8.82175 2.097 8.79846 2.20075 8.75408C2.3045 8.7097 2.39839 8.64513 2.47695 8.56412C2.63243 8.40378 2.71863 8.18874 2.71694 7.9654C2.71525 7.74206 2.62581 7.52835 2.46792 7.37038C2.31003 7.21242 2.09636 7.12287 1.87302 7.12107C1.64969 7.11928 1.4346 7.20537 1.27419 7.36077ZM7.45116 13.5383C7.37015 13.6169 7.30558 13.7108 7.2612 13.8145C7.21682 13.9183 7.19353 14.0298 7.19268 14.1427C7.19182 14.2555 7.21343 14.3674 7.25623 14.4718C7.29903 14.5762 7.36218 14.6711 7.44199 14.7509C7.5218 14.8306 7.61669 14.8937 7.72112 14.9365C7.82556 14.9792 7.93745 15.0008 8.05029 14.9999C8.16313 14.999 8.27467 14.9756 8.3784 14.9312C8.48213 14.8868 8.57599 14.8221 8.65451 14.7411C8.80991 14.5807 8.89601 14.3656 8.89421 14.1423C8.89241 13.9189 8.80286 13.7053 8.6449 13.5474C8.48693 13.3895 8.27322 13.3 8.04988 13.2983C7.82655 13.2967 7.6115 13.3828 7.45116 13.5383Z","fill-opacity":"0.2"}),_.jsx("path",{d:"M11.7497 4.22129L11.7581 4.2618C11.7838 4.4337 11.7584 4.91737 11.3386 5.77311C10.852 6.76434 10.0245 7.866 9.01143 8.87879C7.99806 9.89217 6.89698 10.7194 5.90605 11.2059C4.96901 11.6651 4.47747 11.6523 4.35364 11.6168L4.34548 11.576C4.32014 11.4041 4.34548 10.9201 4.76505 10.0641C5.25193 9.07284 6.0797 7.97148 7.09249 6.95869C8.10587 5.94502 9.20694 5.11812 10.1979 4.63125C11.1343 4.17293 11.6259 4.18546 11.7497 4.221V4.22129ZM12.4752 3.4955C11.5629 2.58294 8.91353 3.75656 6.50568 6.11227L6.37456 6.24192C3.93291 8.68387 2.69897 11.4137 3.62814 12.3426C4.54041 13.2551 7.18981 12.0812 9.59766 9.7258L9.72878 9.59614C12.1704 7.15419 13.4044 4.42438 12.4752 3.4955ZM9.01143 6.95927C10.0248 7.97264 10.852 9.07372 11.3389 10.0647C11.7984 11.0023 11.7852 11.4932 11.7503 11.6176L11.7095 11.6258C11.537 11.6511 11.0533 11.6258 10.1973 11.2062C9.20636 10.7194 8.1047 9.89158 7.09191 8.87879C6.07854 7.86542 5.25134 6.76434 4.76447 5.77311C4.30557 4.83637 4.3181 4.34483 4.35364 4.221L4.39443 4.21285C4.56692 4.1875 5.05059 4.21285 5.90663 4.63241C6.89728 5.1187 7.99864 5.94648 9.01143 6.95927ZM9.85844 6.37304L9.72878 6.24192C7.28683 3.80027 4.55702 2.56633 3.62814 3.4955C2.71558 4.40777 3.8892 7.05717 6.2449 9.46502L6.37456 9.59614C8.81651 12.0378 11.551 13.2668 12.4752 12.3426C13.3878 11.4303 12.2138 8.78089 9.85844 6.37304ZM13.4321 7.33455C13.3495 7.41272 13.2835 7.50663 13.2379 7.61074C13.1923 7.71484 13.168 7.82703 13.1665 7.94068C13.165 8.05433 13.1862 8.16714 13.229 8.27244C13.2718 8.37774 13.3352 8.47339 13.4156 8.55376C13.496 8.63413 13.5916 8.69758 13.6969 8.74037C13.8022 8.78316 13.915 8.80441 14.0287 8.80288C14.1423 8.80134 14.2545 8.77705 14.3586 8.73144C14.4627 8.68583 14.5566 8.61982 14.6348 8.53731C14.7873 8.3764 14.8709 8.16233 14.8679 7.94068C14.8649 7.71904 14.7755 7.50731 14.6188 7.35056C14.4621 7.19382 14.2503 7.10444 14.0287 7.10145C13.807 7.09846 13.593 7.18209 13.4321 7.33455ZM7.35122 1.25372C7.26937 1.33207 7.20398 1.42597 7.15891 1.52993C7.11384 1.63388 7.08999 1.74579 7.08875 1.85909C7.08751 1.97239 7.10892 2.0848 7.15172 2.18971C7.19451 2.29462 7.25783 2.38993 7.33796 2.47004C7.41809 2.55015 7.51342 2.61345 7.61834 2.65622C7.72326 2.69899 7.83567 2.72037 7.94897 2.71911C8.06227 2.71784 8.17418 2.69396 8.27812 2.64887C8.38207 2.60377 8.47595 2.53836 8.55428 2.45649C8.70801 2.29578 8.79271 2.08127 8.79023 1.85889C8.78775 1.63651 8.69829 1.42393 8.54102 1.2667C8.38374 1.10946 8.17115 1.02005 7.94877 1.01763C7.72638 1.0152 7.51189 1.09995 7.35122 1.25372ZM1.27419 7.36077C1.19314 7.43929 1.12852 7.53315 1.08409 7.63688C1.03966 7.74061 1.01632 7.85215 1.01541 7.96499C1.0145 8.07783 1.03605 8.18972 1.0788 8.29416C1.12155 8.39859 1.18465 8.49348 1.26443 8.57329C1.3442 8.6531 1.43906 8.71625 1.54347 8.75905C1.64788 8.80186 1.75977 8.82346 1.87261 8.8226C1.98545 8.82175 2.097 8.79846 2.20075 8.75408C2.3045 8.7097 2.39839 8.64513 2.47695 8.56412C2.63243 8.40378 2.71863 8.18874 2.71694 7.9654C2.71525 7.74206 2.62581 7.52835 2.46792 7.37038C2.31003 7.21242 2.09636 7.12287 1.87302 7.12107C1.64969 7.11928 1.4346 7.20537 1.27419 7.36077ZM7.45116 13.5383C7.37015 13.6169 7.30558 13.7108 7.2612 13.8145C7.21682 13.9183 7.19353 14.0298 7.19268 14.1427C7.19182 14.2555 7.21343 14.3674 7.25623 14.4718C7.29903 14.5762 7.36218 14.6711 7.44199 14.7509C7.5218 14.8306 7.61669 14.8937 7.72112 14.9365C7.82556 14.9792 7.93745 15.0008 8.05029 14.9999C8.16313 14.999 8.27467 14.9756 8.3784 14.9312C8.48213 14.8868 8.57599 14.8221 8.65451 14.7411C8.80991 14.5807 8.89601 14.3656 8.89421 14.1423C8.89241 13.9189 8.80286 13.7053 8.6449 13.5474C8.48693 13.3895 8.27322 13.3 8.04988 13.2983C7.82655 13.2967 7.6115 13.3828 7.45116 13.5383Z","fill-opacity":"0.2"}),_.jsx("path",{d:"M11.7497 4.22129L11.7581 4.2618C11.7838 4.4337 11.7584 4.91737 11.3386 5.77311C10.852 6.76434 10.0245 7.866 9.01143 8.87879C7.99806 9.89217 6.89698 10.7194 5.90605 11.2059C4.96901 11.6651 4.47747 11.6523 4.35364 11.6168L4.34548 11.576C4.32014 11.4041 4.34548 10.9201 4.76505 10.0641C5.25193 9.07284 6.0797 7.97148 7.09249 6.95869C8.10587 5.94502 9.20694 5.11812 10.1979 4.63125C11.1343 4.17293 11.6259 4.18546 11.7497 4.221V4.22129ZM12.4752 3.4955C11.5629 2.58294 8.91353 3.75656 6.50568 6.11227L6.37456 6.24192C3.93291 8.68387 2.69897 11.4137 3.62814 12.3426C4.54041 13.2551 7.18981 12.0812 9.59766 9.7258L9.72878 9.59614C12.1704 7.15419 13.4044 4.42438 12.4752 3.4955ZM9.01143 6.95927C10.0248 7.97264 10.852 9.07372 11.3389 10.0647C11.7984 11.0023 11.7852 11.4932 11.7503 11.6176L11.7095 11.6258C11.537 11.6511 11.0533 11.6258 10.1973 11.2062C9.20636 10.7194 8.1047 9.89158 7.09191 8.87879C6.07854 7.86542 5.25134 6.76434 4.76447 5.77311C4.30557 4.83637 4.3181 4.34483 4.35364 4.221L4.39443 4.21285C4.56692 4.1875 5.05059 4.21285 5.90663 4.63241C6.89728 5.1187 7.99864 5.94648 9.01143 6.95927ZM9.85844 6.37304L9.72878 6.24192C7.28683 3.80027 4.55702 2.56633 3.62814 3.4955C2.71558 4.40777 3.8892 7.05717 6.2449 9.46502L6.37456 9.59614C8.81651 12.0378 11.551 13.2668 12.4752 12.3426C13.3878 11.4303 12.2138 8.78089 9.85844 6.37304ZM13.4321 7.33455C13.3495 7.41272 13.2835 7.50663 13.2379 7.61074C13.1923 7.71484 13.168 7.82703 13.1665 7.94068C13.165 8.05433 13.1862 8.16714 13.229 8.27244C13.2718 8.37774 13.3352 8.47339 13.4156 8.55376C13.496 8.63413 13.5916 8.69758 13.6969 8.74037C13.8022 8.78316 13.915 8.80441 14.0287 8.80288C14.1423 8.80134 14.2545 8.77705 14.3586 8.73144C14.4627 8.68583 14.5566 8.61982 14.6348 8.53731C14.7873 8.3764 14.8709 8.16233 14.8679 7.94068C14.8649 7.71904 14.7755 7.50731 14.6188 7.35056C14.4621 7.19382 14.2503 7.10444 14.0287 7.10145C13.807 7.09846 13.593 7.18209 13.4321 7.33455ZM7.35122 1.25372C7.26937 1.33207 7.20398 1.42597 7.15891 1.52993C7.11384 1.63388 7.08999 1.74579 7.08875 1.85909C7.08751 1.97239 7.10892 2.0848 7.15172 2.18971C7.19451 2.29462 7.25783 2.38993 7.33796 2.47004C7.41809 2.55015 7.51342 2.61345 7.61834 2.65622C7.72326 2.69899 7.83567 2.72037 7.94897 2.71911C8.06227 2.71784 8.17418 2.69396 8.27812 2.64887C8.38207 2.60377 8.47595 2.53836 8.55428 2.45649C8.70801 2.29578 8.79271 2.08127 8.79023 1.85889C8.78775 1.63651 8.69829 1.42393 8.54102 1.2667C8.38374 1.10946 8.17115 1.02005 7.94877 1.01763C7.72638 1.0152 7.51189 1.09995 7.35122 1.25372ZM1.27419 7.36077C1.19314 7.43929 1.12852 7.53315 1.08409 7.63688C1.03966 7.74061 1.01632 7.85215 1.01541 7.96499C1.0145 8.07783 1.03605 8.18972 1.0788 8.29416C1.12155 8.39859 1.18465 8.49348 1.26443 8.57329C1.3442 8.6531 1.43906 8.71625 1.54347 8.75905C1.64788 8.80186 1.75977 8.82346 1.87261 8.8226C1.98545 8.82175 2.097 8.79846 2.20075 8.75408C2.3045 8.7097 2.39839 8.64513 2.47695 8.56412C2.63243 8.40378 2.71863 8.18874 2.71694 7.9654C2.71525 7.74206 2.62581 7.52835 2.46792 7.37038C2.31003 7.21242 2.09636 7.12287 1.87302 7.12107C1.64969 7.11928 1.4346 7.20537 1.27419 7.36077ZM7.45116 13.5383C7.37015 13.6169 7.30558 13.7108 7.2612 13.8145C7.21682 13.9183 7.19353 14.0298 7.19268 14.1427C7.19182 14.2555 7.21343 14.3674 7.25623 14.4718C7.29903 14.5762 7.36218 14.6711 7.44199 14.7509C7.5218 14.8306 7.61669 14.8937 7.72112 14.9365C7.82556 14.9792 7.93745 15.0008 8.05029 14.9999C8.16313 14.999 8.27467 14.9756 8.3784 14.9312C8.48213 14.8868 8.57599 14.8221 8.65451 14.7411C8.80991 14.5807 8.89601 14.3656 8.89421 14.1423C8.89241 13.9189 8.80286 13.7053 8.6449 13.5474C8.48693 13.3895 8.27322 13.3 8.04988 13.2983C7.82655 13.2967 7.6115 13.3828 7.45116 13.5383Z","fill-opacity":"0.2"}),_.jsx("path",{d:"M11.7497 4.22129L11.7581 4.2618C11.7838 4.4337 11.7584 4.91737 11.3386 5.77311C10.852 6.76434 10.0245 7.866 9.01143 8.87879C7.99806 9.89217 6.89698 10.7194 5.90605 11.2059C4.96901 11.6651 4.47747 11.6523 4.35364 11.6168L4.34548 11.576C4.32014 11.4041 4.34548 10.9201 4.76505 10.0641C5.25193 9.07284 6.0797 7.97148 7.09249 6.95869C8.10587 5.94502 9.20694 5.11812 10.1979 4.63125C11.1343 4.17293 11.6259 4.18546 11.7497 4.221V4.22129ZM12.4752 3.4955C11.5629 2.58294 8.91353 3.75656 6.50568 6.11227L6.37456 6.24192C3.93291 8.68387 2.69897 11.4137 3.62814 12.3426C4.54041 13.2551 7.18981 12.0812 9.59766 9.7258L9.72878 9.59614C12.1704 7.15419 13.4044 4.42438 12.4752 3.4955ZM9.01143 6.95927C10.0248 7.97264 10.852 9.07372 11.3389 10.0647C11.7984 11.0023 11.7852 11.4932 11.7503 11.6176L11.7095 11.6258C11.537 11.6511 11.0533 11.6258 10.1973 11.2062C9.20636 10.7194 8.1047 9.89158 7.09191 8.87879C6.07854 7.86542 5.25134 6.76434 4.76447 5.77311C4.30557 4.83637 4.3181 4.34483 4.35364 4.221L4.39443 4.21285C4.56692 4.1875 5.05059 4.21285 5.90663 4.63241C6.89728 5.1187 7.99864 5.94648 9.01143 6.95927ZM9.85844 6.37304L9.72878 6.24192C7.28683 3.80027 4.55702 2.56633 3.62814 3.4955C2.71558 4.40777 3.8892 7.05717 6.2449 9.46502L6.37456 9.59614C8.81651 12.0378 11.551 13.2668 12.4752 12.3426C13.3878 11.4303 12.2138 8.78089 9.85844 6.37304ZM13.4321 7.33455C13.3495 7.41272 13.2835 7.50663 13.2379 7.61074C13.1923 7.71484 13.168 7.82703 13.1665 7.94068C13.165 8.05433 13.1862 8.16714 13.229 8.27244C13.2718 8.37774 13.3352 8.47339 13.4156 8.55376C13.496 8.63413 13.5916 8.69758 13.6969 8.74037C13.8022 8.78316 13.915 8.80441 14.0287 8.80288C14.1423 8.80134 14.2545 8.77705 14.3586 8.73144C14.4627 8.68583 14.5566 8.61982 14.6348 8.53731C14.7873 8.3764 14.8709 8.16233 14.8679 7.94068C14.8649 7.71904 14.7755 7.50731 14.6188 7.35056C14.4621 7.19382 14.2503 7.10444 14.0287 7.10145C13.807 7.09846 13.593 7.18209 13.4321 7.33455ZM7.35122 1.25372C7.26937 1.33207 7.20398 1.42597 7.15891 1.52993C7.11384 1.63388 7.08999 1.74579 7.08875 1.85909C7.08751 1.97239 7.10892 2.0848 7.15172 2.18971C7.19451 2.29462 7.25783 2.38993 7.33796 2.47004C7.41809 2.55015 7.51342 2.61345 7.61834 2.65622C7.72326 2.69899 7.83567 2.72037 7.94897 2.71911C8.06227 2.71784 8.17418 2.69396 8.27812 2.64887C8.38207 2.60377 8.47595 2.53836 8.55428 2.45649C8.70801 2.29578 8.79271 2.08127 8.79023 1.85889C8.78775 1.63651 8.69829 1.42393 8.54102 1.2667C8.38374 1.10946 8.17115 1.02005 7.94877 1.01763C7.72638 1.0152 7.51189 1.09995 7.35122 1.25372ZM1.27419 7.36077C1.19314 7.43929 1.12852 7.53315 1.08409 7.63688C1.03966 7.74061 1.01632 7.85215 1.01541 7.96499C1.0145 8.07783 1.03605 8.18972 1.0788 8.29416C1.12155 8.39859 1.18465 8.49348 1.26443 8.57329C1.3442 8.6531 1.43906 8.71625 1.54347 8.75905C1.64788 8.80186 1.75977 8.82346 1.87261 8.8226C1.98545 8.82175 2.097 8.79846 2.20075 8.75408C2.3045 8.7097 2.39839 8.64513 2.47695 8.56412C2.63243 8.40378 2.71863 8.18874 2.71694 7.9654C2.71525 7.74206 2.62581 7.52835 2.46792 7.37038C2.31003 7.21242 2.09636 7.12287 1.87302 7.12107C1.64969 7.11928 1.4346 7.20537 1.27419 7.36077ZM7.45116 13.5383C7.37015 13.6169 7.30558 13.7108 7.2612 13.8145C7.21682 13.9183 7.19353 14.0298 7.19268 14.1427C7.19182 14.2555 7.21343 14.3674 7.25623 14.4718C7.29903 14.5762 7.36218 14.6711 7.44199 14.7509C7.5218 14.8306 7.61669 14.8937 7.72112 14.9365C7.82556 14.9792 7.93745 15.0008 8.05029 14.9999C8.16313 14.999 8.27467 14.9756 8.3784 14.9312C8.48213 14.8868 8.57599 14.8221 8.65451 14.7411C8.80991 14.5807 8.89601 14.3656 8.89421 14.1423C8.89241 13.9189 8.80286 13.7053 8.6449 13.5474C8.48693 13.3895 8.27322 13.3 8.04988 13.2983C7.82655 13.2967 7.6115 13.3828 7.45116 13.5383Z","fill-opacity":"0.2"}),_.jsx("path",{d:"M11.7497 4.22129L11.7581 4.2618C11.7838 4.4337 11.7584 4.91737 11.3386 5.77311C10.852 6.76434 10.0245 7.866 9.01143 8.87879C7.99806 9.89217 6.89698 10.7194 5.90605 11.2059C4.96901 11.6651 4.47747 11.6523 4.35364 11.6168L4.34548 11.576C4.32014 11.4041 4.34548 10.9201 4.76505 10.0641C5.25193 9.07284 6.0797 7.97148 7.09249 6.95869C8.10587 5.94502 9.20694 5.11812 10.1979 4.63125C11.1343 4.17293 11.6259 4.18546 11.7497 4.221V4.22129ZM12.4752 3.4955C11.5629 2.58294 8.91353 3.75656 6.50568 6.11227L6.37456 6.24192C3.93291 8.68387 2.69897 11.4137 3.62814 12.3426C4.54041 13.2551 7.18981 12.0812 9.59766 9.7258L9.72878 9.59614C12.1704 7.15419 13.4044 4.42438 12.4752 3.4955ZM9.01143 6.95927C10.0248 7.97264 10.852 9.07372 11.3389 10.0647C11.7984 11.0023 11.7852 11.4932 11.7503 11.6176L11.7095 11.6258C11.537 11.6511 11.0533 11.6258 10.1973 11.2062C9.20636 10.7194 8.1047 9.89158 7.09191 8.87879C6.07854 7.86542 5.25134 6.76434 4.76447 5.77311C4.30557 4.83637 4.3181 4.34483 4.35364 4.221L4.39443 4.21285C4.56692 4.1875 5.05059 4.21285 5.90663 4.63241C6.89728 5.1187 7.99864 5.94648 9.01143 6.95927ZM9.85844 6.37304L9.72878 6.24192C7.28683 3.80027 4.55702 2.56633 3.62814 3.4955C2.71558 4.40777 3.8892 7.05717 6.2449 9.46502L6.37456 9.59614C8.81651 12.0378 11.551 13.2668 12.4752 12.3426C13.3878 11.4303 12.2138 8.78089 9.85844 6.37304ZM13.4321 7.33455C13.3495 7.41272 13.2835 7.50663 13.2379 7.61074C13.1923 7.71484 13.168 7.82703 13.1665 7.94068C13.165 8.05433 13.1862 8.16714 13.229 8.27244C13.2718 8.37774 13.3352 8.47339 13.4156 8.55376C13.496 8.63413 13.5916 8.69758 13.6969 8.74037C13.8022 8.78316 13.915 8.80441 14.0287 8.80288C14.1423 8.80134 14.2545 8.77705 14.3586 8.73144C14.4627 8.68583 14.5566 8.61982 14.6348 8.53731C14.7873 8.3764 14.8709 8.16233 14.8679 7.94068C14.8649 7.71904 14.7755 7.50731 14.6188 7.35056C14.4621 7.19382 14.2503 7.10444 14.0287 7.10145C13.807 7.09846 13.593 7.18209 13.4321 7.33455ZM7.35122 1.25372C7.26937 1.33207 7.20398 1.42597 7.15891 1.52993C7.11384 1.63388 7.08999 1.74579 7.08875 1.85909C7.08751 1.97239 7.10892 2.0848 7.15172 2.18971C7.19451 2.29462 7.25783 2.38993 7.33796 2.47004C7.41809 2.55015 7.51342 2.61345 7.61834 2.65622C7.72326 2.69899 7.83567 2.72037 7.94897 2.71911C8.06227 2.71784 8.17418 2.69396 8.27812 2.64887C8.38207 2.60377 8.47595 2.53836 8.55428 2.45649C8.70801 2.29578 8.79271 2.08127 8.79023 1.85889C8.78775 1.63651 8.69829 1.42393 8.54102 1.2667C8.38374 1.10946 8.17115 1.02005 7.94877 1.01763C7.72638 1.0152 7.51189 1.09995 7.35122 1.25372ZM1.27419 7.36077C1.19314 7.43929 1.12852 7.53315 1.08409 7.63688C1.03966 7.74061 1.01632 7.85215 1.01541 7.96499C1.0145 8.07783 1.03605 8.18972 1.0788 8.29416C1.12155 8.39859 1.18465 8.49348 1.26443 8.57329C1.3442 8.6531 1.43906 8.71625 1.54347 8.75905C1.64788 8.80186 1.75977 8.82346 1.87261 8.8226C1.98545 8.82175 2.097 8.79846 2.20075 8.75408C2.3045 8.7097 2.39839 8.64513 2.47695 8.56412C2.63243 8.40378 2.71863 8.18874 2.71694 7.9654C2.71525 7.74206 2.62581 7.52835 2.46792 7.37038C2.31003 7.21242 2.09636 7.12287 1.87302 7.12107C1.64969 7.11928 1.4346 7.20537 1.27419 7.36077ZM7.45116 13.5383C7.37015 13.6169 7.30558 13.7108 7.2612 13.8145C7.21682 13.9183 7.19353 14.0298 7.19268 14.1427C7.19182 14.2555 7.21343 14.3674 7.25623 14.4718C7.29903 14.5762 7.36218 14.6711 7.44199 14.7509C7.5218 14.8306 7.61669 14.8937 7.72112 14.9365C7.82556 14.9792 7.93745 15.0008 8.05029 14.9999C8.16313 14.999 8.27467 14.9756 8.3784 14.9312C8.48213 14.8868 8.57599 14.8221 8.65451 14.7411C8.80991 14.5807 8.89601 14.3656 8.89421 14.1423C8.89241 13.9189 8.80286 13.7053 8.6449 13.5474C8.48693 13.3895 8.27322 13.3 8.04988 13.2983C7.82655 13.2967 7.6115 13.3828 7.45116 13.5383Z","fill-opacity":"0.2"})]}),hK=()=>_.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:[_.jsx("path",{d:"M3.07981 6.57422L2.22738 6.82578L1.375 6.57422L1.6265 7.43609L1.375 8.29797L2.22744 8.04366L3.07981 8.29797L2.831 7.43609L3.07981 6.57422Z",fill:"url(#paint0_linear_18039_4924)"}),_.jsx("path",{d:"M8.63445 3.85273L8.25983 3.53592L7.77539 3.47361L8.0887 3.09486L8.15039 2.60498L8.52495 2.92186L9.00945 2.98411L8.69608 3.36286L8.63445 3.85273Z",fill:"url(#paint1_linear_18039_4924)"}),_.jsx("path",{d:"M6.03681 4.04956L5.23375 3.3705L4.19531 3.23694L4.867 2.425L4.99913 1.375L5.80213 2.05413L6.8405 2.18769L6.16894 2.99956L6.03681 4.04956Z",fill:"url(#paint2_linear_18039_4924)"}),_.jsx("path",{d:"M12.522 11.5454C12.4655 11.4861 12.3978 11.4387 12.3228 11.4058C12.2478 11.373 12.167 11.3554 12.0851 11.3541C12.0033 11.3528 11.922 11.3678 11.8459 11.3982C11.7699 11.4286 11.7007 11.4738 11.6424 11.5312C11.3956 11.7729 11.3894 12.1711 11.6284 12.4206L13.5568 14.4333C13.6133 14.4926 13.681 14.54 13.756 14.5729C13.831 14.6057 13.9118 14.6233 13.9936 14.6246C14.0755 14.6259 14.1568 14.6109 14.2328 14.5805C14.3088 14.5501 14.3781 14.5049 14.4364 14.4474C14.6832 14.2057 14.6894 13.8076 14.4504 13.5581L12.522 11.5454Z",fill:"url(#paint3_linear_18039_4924)"}),_.jsx("path",{d:"M10.1057 3.74423C10.6429 3.44848 11.3063 3.79023 11.3856 4.40348L11.642 6.38679C11.6813 6.69371 11.8245 6.97806 12.0477 7.19236L13.4836 8.56698C13.9278 8.99223 13.8113 9.73585 13.259 10.0015L11.4727 10.8609C11.195 10.9952 10.9717 11.221 10.8408 11.5002L9.99065 13.3064C9.72784 13.8647 8.99265 13.9824 8.57209 13.5335L7.21171 12.0815C7.00174 11.8568 6.72044 11.7118 6.41565 11.6712L4.45415 11.4119C3.84765 11.3318 3.50965 10.661 3.80209 10.1178L4.74765 8.36142C4.89462 8.08832 4.94409 7.77329 4.8879 7.46829L4.52528 5.50248C4.41309 4.89436 4.93965 4.36198 5.54109 4.47542L7.48509 4.84198C7.7869 4.89879 8.09903 4.84873 8.36859 4.70017L10.1057 3.74423Z",fill:"url(#paint4_linear_18039_4924)"}),_.jsxs("defs",{children:[_.jsxs("linearGradient",{id:"paint0_linear_18039_4924",x1:"2.22741",y1:"6.57422",x2:"2.22741",y2:"8.29797",gradientUnits:"userSpaceOnUse",children:[_.jsx("stop",{"stop-color":"#0265FF"}),_.jsx("stop",{offset:"1","stop-color":"#A6FFFF"})]}),_.jsxs("linearGradient",{id:"paint1_linear_18039_4924",x1:"8.39242",y1:"2.60498",x2:"8.39242",y2:"3.85273",gradientUnits:"userSpaceOnUse",children:[_.jsx("stop",{"stop-color":"#0265FF"}),_.jsx("stop",{offset:"1","stop-color":"#A6FFFF"})]}),_.jsxs("linearGradient",{id:"paint2_linear_18039_4924",x1:"5.51791",y1:"1.375",x2:"5.51791",y2:"4.04956",gradientUnits:"userSpaceOnUse",children:[_.jsx("stop",{"stop-color":"#0265FF"}),_.jsx("stop",{offset:"1","stop-color":"#A6FFFF"})]}),_.jsxs("linearGradient",{id:"paint3_linear_18039_4924",x1:"13.0394",y1:"11.354",x2:"13.0394",y2:"14.6247",gradientUnits:"userSpaceOnUse",children:[_.jsx("stop",{"stop-color":"#0265FF"}),_.jsx("stop",{offset:"1","stop-color":"#A6FFFF"})]}),_.jsxs("linearGradient",{id:"paint4_linear_18039_4924",x1:"8.72558",y1:"3.63623",x2:"8.72558",y2:"13.8086",gradientUnits:"userSpaceOnUse",children:[_.jsx("stop",{"stop-color":"#0265FF"}),_.jsx("stop",{offset:"1","stop-color":"#A6FFFF"})]})]})]}),mK=({isOpen:e})=>_.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",className:xt(co,e?"":"rotate-180"),children:_.jsx("path",{d:"M3.28125 9.65625L7.58125 5.35625C7.63125 5.30625 7.69375 5.28125 7.75625 5.28125C7.81875 5.28125 7.88125 5.30625 7.93125 5.35625L12.2312 9.65625",strokeWidth:"1.5",strokeLinecap:"round"})}),vK=()=>_.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:[_.jsx("path",{d:"M4.52464 12.6249C4.59964 12.6499 4.64964 12.6499 4.72464 12.6499C4.92464 12.6499 5.12464 12.5249 5.19964 12.3249L6.37464 9.3749H9.62464L10.7996 12.3249C10.8746 12.5249 11.0746 12.6499 11.2746 12.6499C11.3496 12.6499 11.3996 12.6499 11.4746 12.6249C11.7496 12.5249 11.8746 12.2249 11.7746 11.9499L8.47464 3.6749C8.47464 3.6499 8.44964 3.6499 8.44964 3.6249C8.44964 3.6249 8.44964 3.5999 8.42464 3.5999C8.42464 3.5749 8.39964 3.5749 8.39964 3.5499L8.37464 3.5249C8.37464 3.5249 8.34964 3.4999 8.32464 3.4999C8.29964 3.4999 8.29964 3.4749 8.27464 3.4749C8.27464 3.4749 8.24964 3.4499 8.22464 3.4499C8.19964 3.4499 8.19964 3.4249 8.17464 3.4249H8.14964C8.12463 3.4249 8.12464 3.4249 8.09964 3.3999H7.89964C7.87464 3.3999 7.87464 3.3999 7.84964 3.4249H7.82464C7.79964 3.4249 7.79964 3.4499 7.77464 3.4499C7.74964 3.4499 7.74964 3.4749 7.72464 3.4749C7.69964 3.4749 7.69964 3.4999 7.67464 3.4999C7.64964 3.4999 7.64964 3.5249 7.62464 3.5249L7.59964 3.5499C7.59964 3.5749 7.57464 3.5749 7.57464 3.5999L7.54964 3.6249C7.54964 3.6499 7.52464 3.6499 7.52464 3.6749L4.22464 11.9499C4.12464 12.2249 4.24964 12.5249 4.52464 12.6249ZM6.79964 8.3249L7.99964 5.2749L9.19964 8.3249H6.79964Z",fill:"#121111"}),_.jsx("path",{d:"M4.52464 12.6249C4.59964 12.6499 4.64964 12.6499 4.72464 12.6499C4.92464 12.6499 5.12464 12.5249 5.19964 12.3249L6.37464 9.3749H9.62464L10.7996 12.3249C10.8746 12.5249 11.0746 12.6499 11.2746 12.6499C11.3496 12.6499 11.3996 12.6499 11.4746 12.6249C11.7496 12.5249 11.8746 12.2249 11.7746 11.9499L8.47464 3.6749C8.47464 3.6499 8.44964 3.6499 8.44964 3.6249C8.44964 3.6249 8.44964 3.5999 8.42464 3.5999C8.42464 3.5749 8.39964 3.5749 8.39964 3.5499L8.37464 3.5249C8.37464 3.5249 8.34964 3.4999 8.32464 3.4999C8.29964 3.4999 8.29964 3.4749 8.27464 3.4749C8.27464 3.4749 8.24964 3.4499 8.22464 3.4499C8.19964 3.4499 8.19964 3.4249 8.17464 3.4249H8.14964C8.12463 3.4249 8.12464 3.4249 8.09964 3.3999H7.89964C7.87464 3.3999 7.87464 3.3999 7.84964 3.4249H7.82464C7.79964 3.4249 7.79964 3.4499 7.77464 3.4499C7.74964 3.4499 7.74964 3.4749 7.72464 3.4749C7.69964 3.4749 7.69964 3.4999 7.67464 3.4999C7.64964 3.4999 7.64964 3.5249 7.62464 3.5249L7.59964 3.5499C7.59964 3.5749 7.57464 3.5749 7.57464 3.5999L7.54964 3.6249C7.54964 3.6499 7.52464 3.6499 7.52464 3.6749L4.22464 11.9499C4.12464 12.2249 4.24964 12.5249 4.52464 12.6249ZM6.79964 8.3249L7.99964 5.2749L9.19964 8.3249H6.79964Z",fill:"black","fill-opacity":"0.2"}),_.jsx("path",{d:"M4.52464 12.6249C4.59964 12.6499 4.64964 12.6499 4.72464 12.6499C4.92464 12.6499 5.12464 12.5249 5.19964 12.3249L6.37464 9.3749H9.62464L10.7996 12.3249C10.8746 12.5249 11.0746 12.6499 11.2746 12.6499C11.3496 12.6499 11.3996 12.6499 11.4746 12.6249C11.7496 12.5249 11.8746 12.2249 11.7746 11.9499L8.47464 3.6749C8.47464 3.6499 8.44964 3.6499 8.44964 3.6249C8.44964 3.6249 8.44964 3.5999 8.42464 3.5999C8.42464 3.5749 8.39964 3.5749 8.39964 3.5499L8.37464 3.5249C8.37464 3.5249 8.34964 3.4999 8.32464 3.4999C8.29964 3.4999 8.29964 3.4749 8.27464 3.4749C8.27464 3.4749 8.24964 3.4499 8.22464 3.4499C8.19964 3.4499 8.19964 3.4249 8.17464 3.4249H8.14964C8.12463 3.4249 8.12464 3.4249 8.09964 3.3999H7.89964C7.87464 3.3999 7.87464 3.3999 7.84964 3.4249H7.82464C7.79964 3.4249 7.79964 3.4499 7.77464 3.4499C7.74964 3.4499 7.74964 3.4749 7.72464 3.4749C7.69964 3.4749 7.69964 3.4999 7.67464 3.4999C7.64964 3.4999 7.64964 3.5249 7.62464 3.5249L7.59964 3.5499C7.59964 3.5749 7.57464 3.5749 7.57464 3.5999L7.54964 3.6249C7.54964 3.6499 7.52464 3.6499 7.52464 3.6749L4.22464 11.9499C4.12464 12.2249 4.24964 12.5249 4.52464 12.6249ZM6.79964 8.3249L7.99964 5.2749L9.19964 8.3249H6.79964Z",fill:"black","fill-opacity":"0.2"}),_.jsx("path",{d:"M4.52464 12.6249C4.59964 12.6499 4.64964 12.6499 4.72464 12.6499C4.92464 12.6499 5.12464 12.5249 5.19964 12.3249L6.37464 9.3749H9.62464L10.7996 12.3249C10.8746 12.5249 11.0746 12.6499 11.2746 12.6499C11.3496 12.6499 11.3996 12.6499 11.4746 12.6249C11.7496 12.5249 11.8746 12.2249 11.7746 11.9499L8.47464 3.6749C8.47464 3.6499 8.44964 3.6499 8.44964 3.6249C8.44964 3.6249 8.44964 3.5999 8.42464 3.5999C8.42464 3.5749 8.39964 3.5749 8.39964 3.5499L8.37464 3.5249C8.37464 3.5249 8.34964 3.4999 8.32464 3.4999C8.29964 3.4999 8.29964 3.4749 8.27464 3.4749C8.27464 3.4749 8.24964 3.4499 8.22464 3.4499C8.19964 3.4499 8.19964 3.4249 8.17464 3.4249H8.14964C8.12463 3.4249 8.12464 3.4249 8.09964 3.3999H7.89964C7.87464 3.3999 7.87464 3.3999 7.84964 3.4249H7.82464C7.79964 3.4249 7.79964 3.4499 7.77464 3.4499C7.74964 3.4499 7.74964 3.4749 7.72464 3.4749C7.69964 3.4749 7.69964 3.4999 7.67464 3.4999C7.64964 3.4999 7.64964 3.5249 7.62464 3.5249L7.59964 3.5499C7.59964 3.5749 7.57464 3.5749 7.57464 3.5999L7.54964 3.6249C7.54964 3.6499 7.52464 3.6499 7.52464 3.6749L4.22464 11.9499C4.12464 12.2249 4.24964 12.5249 4.52464 12.6249ZM6.79964 8.3249L7.99964 5.2749L9.19964 8.3249H6.79964Z",fill:"black","fill-opacity":"0.2"}),_.jsx("path",{d:"M4.52464 12.6249C4.59964 12.6499 4.64964 12.6499 4.72464 12.6499C4.92464 12.6499 5.12464 12.5249 5.19964 12.3249L6.37464 9.3749H9.62464L10.7996 12.3249C10.8746 12.5249 11.0746 12.6499 11.2746 12.6499C11.3496 12.6499 11.3996 12.6499 11.4746 12.6249C11.7496 12.5249 11.8746 12.2249 11.7746 11.9499L8.47464 3.6749C8.47464 3.6499 8.44964 3.6499 8.44964 3.6249C8.44964 3.6249 8.44964 3.5999 8.42464 3.5999C8.42464 3.5749 8.39964 3.5749 8.39964 3.5499L8.37464 3.5249C8.37464 3.5249 8.34964 3.4999 8.32464 3.4999C8.29964 3.4999 8.29964 3.4749 8.27464 3.4749C8.27464 3.4749 8.24964 3.4499 8.22464 3.4499C8.19964 3.4499 8.19964 3.4249 8.17464 3.4249H8.14964C8.12463 3.4249 8.12464 3.4249 8.09964 3.3999H7.89964C7.87464 3.3999 7.87464 3.3999 7.84964 3.4249H7.82464C7.79964 3.4249 7.79964 3.4499 7.77464 3.4499C7.74964 3.4499 7.74964 3.4749 7.72464 3.4749C7.69964 3.4749 7.69964 3.4999 7.67464 3.4999C7.64964 3.4999 7.64964 3.5249 7.62464 3.5249L7.59964 3.5499C7.59964 3.5749 7.57464 3.5749 7.57464 3.5999L7.54964 3.6249C7.54964 3.6499 7.52464 3.6499 7.52464 3.6749L4.22464 11.9499C4.12464 12.2249 4.24964 12.5249 4.52464 12.6249ZM6.79964 8.3249L7.99964 5.2749L9.19964 8.3249H6.79964Z",fill:"black","fill-opacity":"0.2"}),_.jsx("path",{d:"M4.52464 12.6249C4.59964 12.6499 4.64964 12.6499 4.72464 12.6499C4.92464 12.6499 5.12464 12.5249 5.19964 12.3249L6.37464 9.3749H9.62464L10.7996 12.3249C10.8746 12.5249 11.0746 12.6499 11.2746 12.6499C11.3496 12.6499 11.3996 12.6499 11.4746 12.6249C11.7496 12.5249 11.8746 12.2249 11.7746 11.9499L8.47464 3.6749C8.47464 3.6499 8.44964 3.6499 8.44964 3.6249C8.44964 3.6249 8.44964 3.5999 8.42464 3.5999C8.42464 3.5749 8.39964 3.5749 8.39964 3.5499L8.37464 3.5249C8.37464 3.5249 8.34964 3.4999 8.32464 3.4999C8.29964 3.4999 8.29964 3.4749 8.27464 3.4749C8.27464 3.4749 8.24964 3.4499 8.22464 3.4499C8.19964 3.4499 8.19964 3.4249 8.17464 3.4249H8.14964C8.12463 3.4249 8.12464 3.4249 8.09964 3.3999H7.89964C7.87464 3.3999 7.87464 3.3999 7.84964 3.4249H7.82464C7.79964 3.4249 7.79964 3.4499 7.77464 3.4499C7.74964 3.4499 7.74964 3.4749 7.72464 3.4749C7.69964 3.4749 7.69964 3.4999 7.67464 3.4999C7.64964 3.4999 7.64964 3.5249 7.62464 3.5249L7.59964 3.5499C7.59964 3.5749 7.57464 3.5749 7.57464 3.5999L7.54964 3.6249C7.54964 3.6499 7.52464 3.6499 7.52464 3.6749L4.22464 11.9499C4.12464 12.2249 4.24964 12.5249 4.52464 12.6249ZM6.79964 8.3249L7.99964 5.2749L9.19964 8.3249H6.79964Z",fill:"black","fill-opacity":"0.2"}),_.jsx("path",{d:"M4.52464 12.6249C4.59964 12.6499 4.64964 12.6499 4.72464 12.6499C4.92464 12.6499 5.12464 12.5249 5.19964 12.3249L6.37464 9.3749H9.62464L10.7996 12.3249C10.8746 12.5249 11.0746 12.6499 11.2746 12.6499C11.3496 12.6499 11.3996 12.6499 11.4746 12.6249C11.7496 12.5249 11.8746 12.2249 11.7746 11.9499L8.47464 3.6749C8.47464 3.6499 8.44964 3.6499 8.44964 3.6249C8.44964 3.6249 8.44964 3.5999 8.42464 3.5999C8.42464 3.5749 8.39964 3.5749 8.39964 3.5499L8.37464 3.5249C8.37464 3.5249 8.34964 3.4999 8.32464 3.4999C8.29964 3.4999 8.29964 3.4749 8.27464 3.4749C8.27464 3.4749 8.24964 3.4499 8.22464 3.4499C8.19964 3.4499 8.19964 3.4249 8.17464 3.4249H8.14964C8.12463 3.4249 8.12464 3.4249 8.09964 3.3999H7.89964C7.87464 3.3999 7.87464 3.3999 7.84964 3.4249H7.82464C7.79964 3.4249 7.79964 3.4499 7.77464 3.4499C7.74964 3.4499 7.74964 3.4749 7.72464 3.4749C7.69964 3.4749 7.69964 3.4999 7.67464 3.4999C7.64964 3.4999 7.64964 3.5249 7.62464 3.5249L7.59964 3.5499C7.59964 3.5749 7.57464 3.5749 7.57464 3.5999L7.54964 3.6249C7.54964 3.6499 7.52464 3.6499 7.52464 3.6749L4.22464 11.9499C4.12464 12.2249 4.24964 12.5249 4.52464 12.6249ZM6.79964 8.3249L7.99964 5.2749L9.19964 8.3249H6.79964Z",fill:"black","fill-opacity":"0.2"}),_.jsx("path",{d:"M4.52464 12.6249C4.59964 12.6499 4.64964 12.6499 4.72464 12.6499C4.92464 12.6499 5.12464 12.5249 5.19964 12.3249L6.37464 9.3749H9.62464L10.7996 12.3249C10.8746 12.5249 11.0746 12.6499 11.2746 12.6499C11.3496 12.6499 11.3996 12.6499 11.4746 12.6249C11.7496 12.5249 11.8746 12.2249 11.7746 11.9499L8.47464 3.6749C8.47464 3.6499 8.44964 3.6499 8.44964 3.6249C8.44964 3.6249 8.44964 3.5999 8.42464 3.5999C8.42464 3.5749 8.39964 3.5749 8.39964 3.5499L8.37464 3.5249C8.37464 3.5249 8.34964 3.4999 8.32464 3.4999C8.29964 3.4999 8.29964 3.4749 8.27464 3.4749C8.27464 3.4749 8.24964 3.4499 8.22464 3.4499C8.19964 3.4499 8.19964 3.4249 8.17464 3.4249H8.14964C8.12463 3.4249 8.12464 3.4249 8.09964 3.3999H7.89964C7.87464 3.3999 7.87464 3.3999 7.84964 3.4249H7.82464C7.79964 3.4249 7.79964 3.4499 7.77464 3.4499C7.74964 3.4499 7.74964 3.4749 7.72464 3.4749C7.69964 3.4749 7.69964 3.4999 7.67464 3.4999C7.64964 3.4999 7.64964 3.5249 7.62464 3.5249L7.59964 3.5499C7.59964 3.5749 7.57464 3.5749 7.57464 3.5999L7.54964 3.6249C7.54964 3.6499 7.52464 3.6499 7.52464 3.6749L4.22464 11.9499C4.12464 12.2249 4.24964 12.5249 4.52464 12.6249ZM6.79964 8.3249L7.99964 5.2749L9.19964 8.3249H6.79964Z",fill:"black","fill-opacity":"0.2"}),_.jsx("path",{d:"M4.52464 12.6249C4.59964 12.6499 4.64964 12.6499 4.72464 12.6499C4.92464 12.6499 5.12464 12.5249 5.19964 12.3249L6.37464 9.3749H9.62464L10.7996 12.3249C10.8746 12.5249 11.0746 12.6499 11.2746 12.6499C11.3496 12.6499 11.3996 12.6499 11.4746 12.6249C11.7496 12.5249 11.8746 12.2249 11.7746 11.9499L8.47464 3.6749C8.47464 3.6499 8.44964 3.6499 8.44964 3.6249C8.44964 3.6249 8.44964 3.5999 8.42464 3.5999C8.42464 3.5749 8.39964 3.5749 8.39964 3.5499L8.37464 3.5249C8.37464 3.5249 8.34964 3.4999 8.32464 3.4999C8.29964 3.4999 8.29964 3.4749 8.27464 3.4749C8.27464 3.4749 8.24964 3.4499 8.22464 3.4499C8.19964 3.4499 8.19964 3.4249 8.17464 3.4249H8.14964C8.12463 3.4249 8.12464 3.4249 8.09964 3.3999H7.89964C7.87464 3.3999 7.87464 3.3999 7.84964 3.4249H7.82464C7.79964 3.4249 7.79964 3.4499 7.77464 3.4499C7.74964 3.4499 7.74964 3.4749 7.72464 3.4749C7.69964 3.4749 7.69964 3.4999 7.67464 3.4999C7.64964 3.4999 7.64964 3.5249 7.62464 3.5249L7.59964 3.5499C7.59964 3.5749 7.57464 3.5749 7.57464 3.5999L7.54964 3.6249C7.54964 3.6499 7.52464 3.6499 7.52464 3.6749L4.22464 11.9499C4.12464 12.2249 4.24964 12.5249 4.52464 12.6249ZM6.79964 8.3249L7.99964 5.2749L9.19964 8.3249H6.79964Z",fill:"black","fill-opacity":"0.2"}),_.jsx("path",{d:"M14.475 1H1.525C1.225 1 1 1.225 1 1.525L1 14.4751C1 14.7751 1.225 15.0001 1.525 15.0001H14.475C14.775 15.0001 15 14.7751 15 14.4751V1.525C15 1.225 14.775 1 14.475 1ZM13.95 13.9501H2.05V2.05H13.95V13.9501Z",fill:"#121111"}),_.jsx("path",{d:"M14.475 1H1.525C1.225 1 1 1.225 1 1.525L1 14.4751C1 14.7751 1.225 15.0001 1.525 15.0001H14.475C14.775 15.0001 15 14.7751 15 14.4751V1.525C15 1.225 14.775 1 14.475 1ZM13.95 13.9501H2.05V2.05H13.95V13.9501Z",fill:"black","fill-opacity":"0.2"}),_.jsx("path",{d:"M14.475 1H1.525C1.225 1 1 1.225 1 1.525L1 14.4751C1 14.7751 1.225 15.0001 1.525 15.0001H14.475C14.775 15.0001 15 14.7751 15 14.4751V1.525C15 1.225 14.775 1 14.475 1ZM13.95 13.9501H2.05V2.05H13.95V13.9501Z",fill:"black","fill-opacity":"0.2"}),_.jsx("path",{d:"M14.475 1H1.525C1.225 1 1 1.225 1 1.525L1 14.4751C1 14.7751 1.225 15.0001 1.525 15.0001H14.475C14.775 15.0001 15 14.7751 15 14.4751V1.525C15 1.225 14.775 1 14.475 1ZM13.95 13.9501H2.05V2.05H13.95V13.9501Z",fill:"black","fill-opacity":"0.2"}),_.jsx("path",{d:"M14.475 1H1.525C1.225 1 1 1.225 1 1.525L1 14.4751C1 14.7751 1.225 15.0001 1.525 15.0001H14.475C14.775 15.0001 15 14.7751 15 14.4751V1.525C15 1.225 14.775 1 14.475 1ZM13.95 13.9501H2.05V2.05H13.95V13.9501Z",fill:"black","fill-opacity":"0.2"}),_.jsx("path",{d:"M14.475 1H1.525C1.225 1 1 1.225 1 1.525L1 14.4751C1 14.7751 1.225 15.0001 1.525 15.0001H14.475C14.775 15.0001 15 14.7751 15 14.4751V1.525C15 1.225 14.775 1 14.475 1ZM13.95 13.9501H2.05V2.05H13.95V13.9501Z",fill:"black","fill-opacity":"0.2"}),_.jsx("path",{d:"M14.475 1H1.525C1.225 1 1 1.225 1 1.525L1 14.4751C1 14.7751 1.225 15.0001 1.525 15.0001H14.475C14.775 15.0001 15 14.7751 15 14.4751V1.525C15 1.225 14.775 1 14.475 1ZM13.95 13.9501H2.05V2.05H13.95V13.9501Z",fill:"black","fill-opacity":"0.2"}),_.jsx("path",{d:"M14.475 1H1.525C1.225 1 1 1.225 1 1.525L1 14.4751C1 14.7751 1.225 15.0001 1.525 15.0001H14.475C14.775 15.0001 15 14.7751 15 14.4751V1.525C15 1.225 14.775 1 14.475 1ZM13.95 13.9501H2.05V2.05H13.95V13.9501Z",fill:"black","fill-opacity":"0.2"}),_.jsx("path",{d:"M14.475 1H1.525C1.225 1 1 1.225 1 1.525L1 14.4751C1 14.7751 1.225 15.0001 1.525 15.0001H14.475C14.775 15.0001 15 14.7751 15 14.4751V1.525C15 1.225 14.775 1 14.475 1ZM13.95 13.9501H2.05V2.05H13.95V13.9501Z",fill:"black","fill-opacity":"0.2"})]}),gK=()=>_.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1",height:"14",viewBox:"0 0 1 14",fill:"none",children:_.jsx("path",{d:"M0.5 0V14",stroke:"#E0E0E0"})}),yK=()=>_.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:[_.jsx("path",{d:"M8.5 3.15V10.5C8.5 10.8 8.3 11 8 11C7.7 11 7.5 10.8 7.5 10.5V3.3L5.6 5.2C5.4 5.4 5.1 5.4 4.9 5.2C4.7 5 4.7 4.7 4.9 4.5L7.35 2.05C7.75 1.65 8.35 1.65 8.75 2.05L11.2 4.5C11.4 4.7 11.4 5 11.2 5.2C11 5.4 10.7 5.4 10.5 5.2L8.5 3.15ZM13 9.5C13 9.2 13.2 9 13.5 9C13.8 9 14 9.2 14 9.5V12C14 12.85 13.35 13.5 12.5 13.5H3.5C2.65 13.5 2 12.85 2 12V9.5C2 9.2 2.2 9 2.5 9C2.8 9 3 9.2 3 9.5V12C3 12.3 3.2 12.5 3.5 12.5H12.5C12.8 12.5 13 12.3 13 12V9.5Z",fill:"currentColor"}),_.jsx("path",{d:"M8.5 3.15V10.5C8.5 10.8 8.3 11 8 11C7.7 11 7.5 10.8 7.5 10.5V3.3L5.6 5.2C5.4 5.4 5.1 5.4 4.9 5.2C4.7 5 4.7 4.7 4.9 4.5L7.35 2.05C7.75 1.65 8.35 1.65 8.75 2.05L11.2 4.5C11.4 4.7 11.4 5 11.2 5.2C11 5.4 10.7 5.4 10.5 5.2L8.5 3.15ZM13 9.5C13 9.2 13.2 9 13.5 9C13.8 9 14 9.2 14 9.5V12C14 12.85 13.35 13.5 12.5 13.5H3.5C2.65 13.5 2 12.85 2 12V9.5C2 9.2 2.2 9 2.5 9C2.8 9 3 9.2 3 9.5V12C3 12.3 3.2 12.5 3.5 12.5H12.5C12.8 12.5 13 12.3 13 12V9.5Z","fill-opacity":"0.2"}),_.jsx("path",{d:"M8.5 3.15V10.5C8.5 10.8 8.3 11 8 11C7.7 11 7.5 10.8 7.5 10.5V3.3L5.6 5.2C5.4 5.4 5.1 5.4 4.9 5.2C4.7 5 4.7 4.7 4.9 4.5L7.35 2.05C7.75 1.65 8.35 1.65 8.75 2.05L11.2 4.5C11.4 4.7 11.4 5 11.2 5.2C11 5.4 10.7 5.4 10.5 5.2L8.5 3.15ZM13 9.5C13 9.2 13.2 9 13.5 9C13.8 9 14 9.2 14 9.5V12C14 12.85 13.35 13.5 12.5 13.5H3.5C2.65 13.5 2 12.85 2 12V9.5C2 9.2 2.2 9 2.5 9C2.8 9 3 9.2 3 9.5V12C3 12.3 3.2 12.5 3.5 12.5H12.5C12.8 12.5 13 12.3 13 12V9.5Z","fill-opacity":"0.2"}),_.jsx("path",{d:"M8.5 3.15V10.5C8.5 10.8 8.3 11 8 11C7.7 11 7.5 10.8 7.5 10.5V3.3L5.6 5.2C5.4 5.4 5.1 5.4 4.9 5.2C4.7 5 4.7 4.7 4.9 4.5L7.35 2.05C7.75 1.65 8.35 1.65 8.75 2.05L11.2 4.5C11.4 4.7 11.4 5 11.2 5.2C11 5.4 10.7 5.4 10.5 5.2L8.5 3.15ZM13 9.5C13 9.2 13.2 9 13.5 9C13.8 9 14 9.2 14 9.5V12C14 12.85 13.35 13.5 12.5 13.5H3.5C2.65 13.5 2 12.85 2 12V9.5C2 9.2 2.2 9 2.5 9C2.8 9 3 9.2 3 9.5V12C3 12.3 3.2 12.5 3.5 12.5H12.5C12.8 12.5 13 12.3 13 12V9.5Z","fill-opacity":"0.2"}),_.jsx("path",{d:"M8.5 3.15V10.5C8.5 10.8 8.3 11 8 11C7.7 11 7.5 10.8 7.5 10.5V3.3L5.6 5.2C5.4 5.4 5.1 5.4 4.9 5.2C4.7 5 4.7 4.7 4.9 4.5L7.35 2.05C7.75 1.65 8.35 1.65 8.75 2.05L11.2 4.5C11.4 4.7 11.4 5 11.2 5.2C11 5.4 10.7 5.4 10.5 5.2L8.5 3.15ZM13 9.5C13 9.2 13.2 9 13.5 9C13.8 9 14 9.2 14 9.5V12C14 12.85 13.35 13.5 12.5 13.5H3.5C2.65 13.5 2 12.85 2 12V9.5C2 9.2 2.2 9 2.5 9C2.8 9 3 9.2 3 9.5V12C3 12.3 3.2 12.5 3.5 12.5H12.5C12.8 12.5 13 12.3 13 12V9.5Z","fill-opacity":"0.2"}),_.jsx("path",{d:"M8.5 3.15V10.5C8.5 10.8 8.3 11 8 11C7.7 11 7.5 10.8 7.5 10.5V3.3L5.6 5.2C5.4 5.4 5.1 5.4 4.9 5.2C4.7 5 4.7 4.7 4.9 4.5L7.35 2.05C7.75 1.65 8.35 1.65 8.75 2.05L11.2 4.5C11.4 4.7 11.4 5 11.2 5.2C11 5.4 10.7 5.4 10.5 5.2L8.5 3.15ZM13 9.5C13 9.2 13.2 9 13.5 9C13.8 9 14 9.2 14 9.5V12C14 12.85 13.35 13.5 12.5 13.5H3.5C2.65 13.5 2 12.85 2 12V9.5C2 9.2 2.2 9 2.5 9C2.8 9 3 9.2 3 9.5V12C3 12.3 3.2 12.5 3.5 12.5H12.5C12.8 12.5 13 12.3 13 12V9.5Z","fill-opacity":"0.2"}),_.jsx("path",{d:"M8.5 3.15V10.5C8.5 10.8 8.3 11 8 11C7.7 11 7.5 10.8 7.5 10.5V3.3L5.6 5.2C5.4 5.4 5.1 5.4 4.9 5.2C4.7 5 4.7 4.7 4.9 4.5L7.35 2.05C7.75 1.65 8.35 1.65 8.75 2.05L11.2 4.5C11.4 4.7 11.4 5 11.2 5.2C11 5.4 10.7 5.4 10.5 5.2L8.5 3.15ZM13 9.5C13 9.2 13.2 9 13.5 9C13.8 9 14 9.2 14 9.5V12C14 12.85 13.35 13.5 12.5 13.5H3.5C2.65 13.5 2 12.85 2 12V9.5C2 9.2 2.2 9 2.5 9C2.8 9 3 9.2 3 9.5V12C3 12.3 3.2 12.5 3.5 12.5H12.5C12.8 12.5 13 12.3 13 12V9.5Z","fill-opacity":"0.2"}),_.jsx("path",{d:"M8.5 3.15V10.5C8.5 10.8 8.3 11 8 11C7.7 11 7.5 10.8 7.5 10.5V3.3L5.6 5.2C5.4 5.4 5.1 5.4 4.9 5.2C4.7 5 4.7 4.7 4.9 4.5L7.35 2.05C7.75 1.65 8.35 1.65 8.75 2.05L11.2 4.5C11.4 4.7 11.4 5 11.2 5.2C11 5.4 10.7 5.4 10.5 5.2L8.5 3.15ZM13 9.5C13 9.2 13.2 9 13.5 9C13.8 9 14 9.2 14 9.5V12C14 12.85 13.35 13.5 12.5 13.5H3.5C2.65 13.5 2 12.85 2 12V9.5C2 9.2 2.2 9 2.5 9C2.8 9 3 9.2 3 9.5V12C3 12.3 3.2 12.5 3.5 12.5H12.5C12.8 12.5 13 12.3 13 12V9.5Z","fill-opacity":"0.2"}),_.jsx("path",{d:"M8.5 3.15V10.5C8.5 10.8 8.3 11 8 11C7.7 11 7.5 10.8 7.5 10.5V3.3L5.6 5.2C5.4 5.4 5.1 5.4 4.9 5.2C4.7 5 4.7 4.7 4.9 4.5L7.35 2.05C7.75 1.65 8.35 1.65 8.75 2.05L11.2 4.5C11.4 4.7 11.4 5 11.2 5.2C11 5.4 10.7 5.4 10.5 5.2L8.5 3.15ZM13 9.5C13 9.2 13.2 9 13.5 9C13.8 9 14 9.2 14 9.5V12C14 12.85 13.35 13.5 12.5 13.5H3.5C2.65 13.5 2 12.85 2 12V9.5C2 9.2 2.2 9 2.5 9C2.8 9 3 9.2 3 9.5V12C3 12.3 3.2 12.5 3.5 12.5H12.5C12.8 12.5 13 12.3 13 12V9.5Z","fill-opacity":"0.2"})]}),wK=()=>_.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",children:_.jsx("rect",{x:"4",y:"4",width:"8",height:"8",rx:"2"})}),lT=()=>_.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",children:_.jsx("path",{d:"M3.7789 14.5951C3.1481 14.594 2.54346 14.3429 2.09751 13.8968C1.65156 13.4506 1.4007 12.8459 1.3999 12.2151V3.9801C1.4007 3.3493 1.65156 2.74455 2.09751 2.29841C2.54346 1.85228 3.1481 1.60116 3.7789 1.6001H8.3589C8.48515 1.6001 8.60622 1.65025 8.69548 1.73951C8.78475 1.82878 8.8349 1.94985 8.8349 2.0761C8.8349 2.20234 8.78475 2.32341 8.69548 2.41268C8.60622 2.50195 8.48515 2.5521 8.3589 2.5521H3.7799C3.40142 2.55316 3.03877 2.70411 2.77132 2.97193C2.50388 3.23975 2.35343 3.60261 2.3529 3.9811V12.2141C2.3539 13.0021 2.9929 13.6411 3.7799 13.6431H12.0089C12.3874 13.642 12.75 13.4911 13.0175 13.2233C13.2849 12.9554 13.4354 12.5926 13.4359 12.2141V7.6311C13.433 7.56682 13.4431 7.50261 13.4656 7.44235C13.4882 7.38209 13.5227 7.32704 13.5672 7.28051C13.6116 7.23397 13.6651 7.19694 13.7242 7.17164C13.7834 7.14633 13.8471 7.13329 13.9114 7.13329C13.9757 7.13329 14.0394 7.14633 14.0986 7.17164C14.1577 7.19694 14.2112 7.23397 14.2556 7.28051C14.3001 7.32704 14.3346 7.38209 14.3572 7.44235C14.3797 7.50261 14.3899 7.56682 14.3869 7.6311V12.2141C14.3861 12.8447 14.1354 13.4493 13.6896 13.8954C13.2439 14.3415 12.6395 14.5928 12.0089 14.5941H3.7789V14.5951ZM11.9199 4.0661L12.3699 4.5141L10.1819 6.7041L7.5659 9.3201L6.5799 9.4121L6.6719 8.4241L9.2849 5.8061L11.4739 3.6161L11.9209 4.0661H11.9199ZM11.4729 2.5331C11.3892 2.53318 11.3063 2.54983 11.2291 2.5821C11.1519 2.61436 11.0818 2.66161 11.0229 2.7211L8.6119 5.1331L5.8399 7.9291C5.7876 7.98109 5.75507 8.0497 5.7479 8.1231L5.5699 10.1001C5.56602 10.1441 5.57133 10.1884 5.58549 10.2302C5.59966 10.272 5.62238 10.3104 5.6522 10.3429C5.68201 10.3755 5.71828 10.4014 5.75869 10.4192C5.7991 10.437 5.84276 10.4461 5.8869 10.4461H5.9159L7.8919 10.2691C7.96495 10.2617 8.03316 10.2292 8.0849 10.1771L10.8639 7.3961L13.2739 4.9841C13.333 4.92511 13.3799 4.85505 13.4119 4.77792C13.4439 4.70079 13.4604 4.6181 13.4604 4.5346C13.4604 4.45109 13.4439 4.36841 13.4119 4.29128C13.3799 4.21414 13.333 4.14408 13.2739 4.0851L12.5929 3.3941L11.9199 2.7211C11.8017 2.60167 11.6409 2.53405 11.4729 2.5331Z"})}),bK=()=>_.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"29",height:"29",viewBox:"0 0 29 29",fill:"none",children:_.jsx("path",{d:"M14.0287 0C6.28125 0 0 6.28125 0 14.0306C0 21.7791 6.28125 28.0603 14.0297 28.0603C21.7781 28.0603 28.0594 21.7791 28.0594 14.0306C28.0594 6.28219 21.7781 0 14.0297 0H14.0287ZM15.3909 22.1259C15.3909 22.3119 15.3171 22.4903 15.1855 22.6218C15.054 22.7533 14.8757 22.8272 14.6897 22.8272H12.585C12.399 22.8272 12.2207 22.7533 12.0891 22.6218C11.9576 22.4903 11.8838 22.3119 11.8838 22.1259V20.0213C11.8838 19.6341 12.1978 19.32 12.585 19.32H14.6897C15.0769 19.32 15.3909 19.6341 15.3909 20.0213V22.1259ZM18.8691 12.4697C18.5859 12.8728 17.9466 13.3847 17.145 14.0091L16.2572 14.6222C15.8259 14.9559 15.4434 15.3459 15.3019 15.7913C15.2531 15.9431 15.2175 16.1934 15.1931 16.4625C15.1809 16.5984 15.0591 16.875 14.7759 16.875H12.4913C12.12 16.875 12.0534 16.5844 12.06 16.4428C12.1003 15.51 12.1866 14.6831 12.5662 14.2369C13.335 13.3359 15.0844 12.2137 15.0844 12.2137C15.3506 12.0122 15.5662 11.7937 15.7294 11.5556C16.0256 11.1469 16.2722 10.6978 16.2722 10.2075C16.2722 9.64312 16.1072 9.12937 15.7753 8.66344C15.4472 8.20031 14.8425 7.96781 13.9669 7.96781C13.1053 7.96781 12.495 8.25375 12.135 8.82562C11.8688 9.2475 11.7009 9.63656 11.6316 10.0594C11.6072 10.2094 11.5116 10.5234 11.1909 10.5234H8.96625C8.49187 10.5234 8.38781 10.2159 8.40094 10.0678C8.5725 8.20125 9.30281 6.92531 10.5928 6.10594C11.4703 5.5425 12.5494 5.25938 13.8291 5.25938C15.5119 5.25938 16.9078 5.66062 18.0216 6.46313C19.1325 7.26562 19.6903 8.45344 19.6903 10.0294C19.6903 10.995 19.3509 11.8088 18.8691 12.4697Z",fill:"#0265FF"})}),xK=()=>_.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",children:[_.jsx("path",{d:"M8 15C4.2 15 1 11.9 1 8C1 4.2 4.1 1 8 1C11.8 1 15 4.1 15 8C15 11.9 11.8 15 8 15ZM8 2C4.7 2 2 4.7 2 8C2 11.3 4.7 14 8 14C11.3 14 14 11.3 14 8C14 4.7 11.3 2 8 2Z"}),_.jsx("path",{d:"M7.19922 4.8C7.19922 5.2 7.49922 5.6 7.99922 5.6C8.49922 5.6 8.79922 5.3 8.79922 4.8C8.79922 4.3 8.39922 4 7.99922 4C7.59922 4 7.19922 4.3 7.19922 4.8ZM7.99922 12C7.69922 12 7.49922 11.8 7.49922 11.5V7C7.49922 6.7 7.69922 6.5 7.99922 6.5C8.29922 6.5 8.49922 6.7 8.49922 7V11.5C8.49922 11.8 8.29922 12 7.99922 12Z"})]}),uT=({size:e=20})=>_.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:e,height:e,viewBox:"0 0 16 16",fill:"none",children:[_.jsx("path",{d:"M3.07981 6.57422L2.22738 6.82578L1.375 6.57422L1.6265 7.43609L1.375 8.29797L2.22744 8.04366L3.07981 8.29797L2.831 7.43609L3.07981 6.57422Z",fill:"url(#paint0_linear_18510_37545)"}),_.jsx("path",{d:"M8.63384 3.85224L8.25922 3.53543L7.77478 3.47312L8.08809 3.09437L8.14978 2.60449L8.52434 2.92137L9.00884 2.98362L8.69547 3.36237L8.63384 3.85224Z",fill:"url(#paint1_linear_18510_37545)"}),_.jsx("path",{d:"M6.03681 4.04956L5.23375 3.3705L4.19531 3.23694L4.867 2.425L4.99913 1.375L5.80213 2.05413L6.8405 2.18769L6.16894 2.99956L6.03681 4.04956Z",fill:"url(#paint2_linear_18510_37545)"}),_.jsx("path",{d:"M13.4934 5.30179C13.5249 5.37309 13.5505 5.45627 13.5703 5.55134C13.59 5.6464 13.5998 5.74543 13.5998 5.84842C13.5998 5.9514 13.5801 6.05439 13.5407 6.15738C13.5013 6.26036 13.4382 6.35939 13.3514 6.45445C13.2568 6.54952 13.172 6.6327 13.0971 6.704C13.0222 6.7753 12.9571 6.83867 12.9019 6.89413C12.8389 6.9575 12.7797 7.01296 12.7245 7.06049L10.5126 4.83835C10.6072 4.75121 10.7196 4.64624 10.8497 4.52345C10.9798 4.40066 11.0882 4.30361 11.175 4.23231C11.2854 4.14517 11.3997 4.08378 11.518 4.04813C11.6363 4.01248 11.7526 3.99663 11.867 4.00059C11.9813 4.00456 12.0917 4.02238 12.1981 4.05407C12.3046 4.08576 12.3973 4.12141 12.4761 4.16102C12.6417 4.24816 12.8251 4.40066 13.0261 4.61852C13.2272 4.83637 13.383 5.06413 13.4934 5.30179ZM4.27895 11.1007C4.32627 11.0532 4.43667 10.9403 4.61015 10.7621C4.78364 10.5838 5.00049 10.364 5.26072 10.1026L6.1242 9.2351L7.08231 8.27257L9.62545 5.7177L11.8374 7.95172L9.29425 10.5066L8.34797 11.4691C8.03254 11.7781 7.74865 12.0613 7.49631 12.3188C7.24397 12.5762 7.035 12.7881 6.8694 12.9545C6.7038 13.1209 6.60523 13.2159 6.57369 13.2397C6.49483 13.311 6.40415 13.3863 6.30163 13.4655C6.19912 13.5447 6.09266 13.6081 5.98226 13.6556C5.87186 13.7111 5.71021 13.7784 5.49729 13.8576C5.28438 13.9368 5.06161 14.0141 4.82898 14.0893C4.59635 14.1646 4.37555 14.23 4.16658 14.2854C3.95761 14.3409 3.80187 14.3765 3.69936 14.3924C3.48644 14.4161 3.3445 14.3844 3.27353 14.2973C3.20256 14.2102 3.18284 14.0636 3.21439 13.8576C3.23016 13.7467 3.26762 13.5863 3.32676 13.3764C3.3859 13.1664 3.44899 12.9486 3.51601 12.7228C3.58304 12.497 3.6481 12.2891 3.71119 12.0989C3.77427 11.9088 3.82553 11.7781 3.86496 11.7068C3.91227 11.5959 3.9655 11.4949 4.02464 11.4038C4.08378 11.3127 4.16855 11.2117 4.27895 11.1007Z",fill:"url(#paint3_linear_18510_37545)"}),_.jsxs("defs",{children:[_.jsxs("linearGradient",{id:"paint0_linear_18510_37545",x1:"2.22741",y1:"6.57422",x2:"2.22741",y2:"8.29797",gradientUnits:"userSpaceOnUse",children:[_.jsx("stop",{"stop-color":"#0265FF"}),_.jsx("stop",{offset:"1","stop-color":"#A6FFFF"})]}),_.jsxs("linearGradient",{id:"paint1_linear_18510_37545",x1:"8.39181",y1:"2.60449",x2:"8.39181",y2:"3.85224",gradientUnits:"userSpaceOnUse",children:[_.jsx("stop",{"stop-color":"#0265FF"}),_.jsx("stop",{offset:"1","stop-color":"#A6FFFF"})]}),_.jsxs("linearGradient",{id:"paint2_linear_18510_37545",x1:"5.51791",y1:"1.375",x2:"5.51791",y2:"4.04956",gradientUnits:"userSpaceOnUse",children:[_.jsx("stop",{"stop-color":"#0265FF"}),_.jsx("stop",{offset:"1","stop-color":"#A6FFFF"})]}),_.jsxs("linearGradient",{id:"paint3_linear_18510_37545",x1:"8.39983",y1:"4",x2:"8.39983",y2:"14.4",gradientUnits:"userSpaceOnUse",children:[_.jsx("stop",{"stop-color":"#0265FF"}),_.jsx("stop",{offset:"1","stop-color":"#A6FFFF"})]})]})]}),CK=()=>_.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"26",height:"26",viewBox:"0 0 26 26",fill:"currentColor",children:_.jsx("path",{d:"M6.5 13.0001C6.5 12.6394 6.66738 12.2932 6.968 12.0349L16.7732 3.64987C17.0905 3.38703 17.4907 3.24537 17.9026 3.25012C18.3284 3.25012 18.7363 3.39474 19.032 3.64987C19.656 4.18937 19.656 5.04249 19.032 5.58199L10.3545 13.0001L19.032 20.4182C19.6544 20.9577 19.6544 21.8109 19.032 22.3504C18.7151 22.6136 18.3138 22.7566 17.901 22.7501C17.4753 22.7501 17.0674 22.6055 16.7732 22.3504L6.96638 13.9654C6.82284 13.8483 6.70669 13.7012 6.62612 13.5345C6.54554 13.3677 6.50249 13.1853 6.5 13.0001Z"})}),n5=({title:e,content:t,icon:n,children:i,defaultOpen:o})=>{const[l,c]=D.useState(o);return _.jsxs("div",{className:"bg-[#fafafa] border border-[#e0e0e0] border-solid flex flex-col gap-2.5 p-2.5 rounded-[10px] w-full",children:[_.jsxs("div",{className:"flex items-center justify-between w-full cursor-pointer",onClick:()=>{c(!l)},children:[_.jsxs("div",{className:"flex gap-1.5 items-center",children:[_.jsx("div",{className:"w-4 h-4 shrink-0",children:n||_.jsx(sT,{})}),_.jsx("p",{className:"text-[#666] text-[14px] leading-normal",children:e})]}),_.jsx("button",{onClick:()=>c(!l),className:xt("flex items-center justify-center w-5 h-5 rounded cursor-pointer",co),children:_.jsx(mK,{isOpen:l})})]}),l&&_.jsx("div",{className:"text-[#030303] text-[14px]",children:t||i})]})},r5=e=>{const{part:t,role:n,id:i}=e,o=t;if(o.type!=="text"||!o.text)return null;const l=xt({prose:n==="assistant"});return n==="user"?_.jsx(oK,{children:o.text}):_.jsx("div",{children:_.jsxs(wi,{className:xt({"bg-transparent px-0 py-0 text-left":n==="assistant"}),"data-testid":"message-content",children:[_.jsx(n5,{title:"表单设计",icon:_.jsx(sT,{}),defaultOpen:!0,children:_.jsx("article",{className:l,children:_.jsx(x4,{id:i,content:s3(o.text)})})}),e.children]})})},a5=e=>{const t=vE();return{exec:D.useCallback(i=>{var l;let o=i;for(const c of t){const f=(l=c.lifecycleHooks)==null?void 0:l[e];f&&(o=f(o))}return o},[])}},SK=({message:e,isLoading:t,addToolOutput:n,sendMessage:i,requiresScrollPadding:o})=>{var y;const l=(y=e.parts)==null?void 0:y.some(S=>{var C;return S.type==="text"&&((C=S.text)==null?void 0:C.trim())}),c=l3("MessagePart"),f=c[0],m=c.length>0?f.Component:r5,{exec:v=S=>S}=a5("onBeforeMessagePartsRender"),b=v(e.parts);return _.jsx(BZ,{role:e.role,isLoading:t,requiresScrollPadding:o,hasTextPart:l,children:b==null?void 0:b.map((S,C)=>{const R=`message-${e.id}-part-${C}-${S.type}`;return _.jsx(m,{sendMessage:i,addToolOutput:n,part:S,index:C,role:e.role,id:e.id},R)})})},kK=D.memo(SK,(e,t)=>(e.isLoading!==t.isLoading||e.message.id!==t.message.id||e.requiresScrollPadding!==t.requiresScrollPadding||!pE(e.message.parts,t.message.parts),!1)),C4=({children:e,headless:t})=>{const n=r4("AvatarAndName");if(t)return _.jsx("div",{children:_.jsx(wi,{className:"w-fit wrap-break-words rounded-2 bg-transparent px-0 py-0 text-left","data-testid":"message-content",children:e})});const i=n==null?void 0:n.Component,o=i?_.jsx(i,{}):_.jsx(n4,{name:"AI表单搭建"});return _.jsx("div",{className:xt("group/message w-full"),"data-role":"assistant","data-testid":"message-assistant",children:_.jsxs("div",{className:"flex w-full flex-col items-start justify-start gap-2.5",children:[o,_.jsx("div",{className:"flex flex-col min-w-0 grow gap-2.5 w-full",children:_.jsx(wi,{className:"w-full wrap-break-words rounded-2 bg-transparent px-0 py-0 text-left","data-testid":"message-content",children:e})})]})})},EK=e=>{var i;const t=l3(e);return!t||!t.length?null:(i=t[0].Component)!=null?i:null},_K=D.forwardRef(({className:e,...t},n)=>_.jsx("div",{ref:n,className:xt("rounded-xl border bg-card text-card-foreground shadow",e),...t}));_K.displayName="Card";const TK=D.forwardRef(({className:e,...t},n)=>_.jsx("div",{ref:n,className:xt("flex flex-col space-y-1.5 p-6",e),...t}));TK.displayName="CardHeader";const RK=D.forwardRef(({className:e,...t},n)=>_.jsx("div",{ref:n,className:xt("font-semibold leading-none tracking-tight",e),...t}));RK.displayName="CardTitle";const MK=D.forwardRef(({className:e,...t},n)=>_.jsx("div",{ref:n,className:xt("text-sm text-muted-foreground",e),...t}));MK.displayName="CardDescription";const NK=D.forwardRef(({className:e,...t},n)=>_.jsx("div",{ref:n,className:xt("p-6 pt-0",e),...t}));NK.displayName="CardContent";const OK=D.forwardRef(({className:e,...t},n)=>_.jsx("div",{ref:n,className:xt("flex items-center p-6 pt-0",e),...t}));OK.displayName="CardFooter";const LK=({title:e,desc:t,index:n,icon:i,onClick:o})=>_.jsxs("div",{className:xt("bs-card flex flex-col cursor-pointer p-2.5 gap-2.5 rounded-lg bg-[#F5F7FA] max-w-[350px] border border-transparent hover:border-[#e0e0e0]",{transCls:co}),onClick:()=>{o==null||o(e)},children:[_.jsxs("div",{className:"px-2.5 flex items-center gap-1.5 rounded-[4px] h-[34px] bg-white",children:[n===void 0?null:_.jsx("div",{children:n}),i===void 0?null:_.jsx("div",{className:"text-[#0265FF]",children:i}),_.jsx("div",{className:"truncate",children:e})]}),_.jsx("div",{className:"text-[#666] leading-5",children:t})]}),AK=[{icon:_.jsx(uK,{}),title:"供应商管理,子表单为产品信息",description:"用于记录和管理企业供应商的基本信息、资质认证、合作状态等,便于采购部门进行供应商评估和选择。"},{icon:_.jsx(cK,{}),title:"搭建订单表",description:"子表单为商品列表(包含:商品ID、商品名称、商品供应商为关联数据字段、商品原价、商品销售价、商品型号为关联查询字段)"},{title:"供应商管理,产品信息为数据加载字段",description:"用于记录和管理企业供应商的基本信息、资质认证、合作状态等,便于采购部门进行供应商评估和选择。"},{icon:_.jsx(dK,{}),title:"创建合同表关联供应商信息管理表",description:"创建合同表用于记录与供应商签订的合同信息,并与供应商信息管理表进行关联,方便查询和管理合同相关的供应商信息。"}],S4=({items:e=AK,onSelect:t})=>_.jsx(_.Fragment,{children:e.map((n,i)=>_.jsx(LK,{icon:n.icon,index:i+1,title:n.title,desc:n.description,onClick:t},i))}),IK=({sendMessage:e})=>{const t=EK("OpeningLines");return t?_.jsx(t,{sendMessage:e}):_.jsxs(_.Fragment,{children:["请问可以帮你创建什么表单?试试下面的建议吧!",_.jsx(S4,{onSelect:n=>{e({text:n},{body:{stage:"design",name:n}})}})]})},DK=e=>{const t=D.useRef(null),{messages:n,setMessages:i,addToolOutput:o,sendMessage:l}=e;return _.jsx("div",{className:"overscroll-behavior-contain -webkit-overflow-scrolling-touch flex-1 touch-pan-y overflow-y-scroll m-h-0 h-full",ref:t,style:{overflowAnchor:"none",overscrollBehavior:"contain"},children:_.jsx(jZ,{className:"mx-auto flex min-w-0 max-w-4xl flex-col",children:_.jsxs(FZ,{className:"flex flex-col px-2 py-4 md:px-4 gap-[40px]",children:[n.length===0&&_.jsx(C4,{children:_.jsx(IK,{sendMessage:l})}),n.map((c,f)=>_.jsx(kK,{isLoading:e.status==="streaming"&&n.length-1===f,addToolOutput:o,sendMessage:e.sendMessage,message:c,setMessages:i},c.id))]})})})};/**
441
+ * @license lucide-react v0.554.0 - ISC
442
+ *
443
+ * This source code is licensed under the ISC license.
444
+ * See the LICENSE file in the root directory of this source tree.
445
+ */const PK=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),zK=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,i)=>i?i.toUpperCase():n.toLowerCase()),cT=e=>{const t=zK(e);return t.charAt(0).toUpperCase()+t.slice(1)},dT=(...e)=>e.filter((t,n,i)=>!!t&&t.trim()!==""&&i.indexOf(t)===n).join(" ").trim(),jK=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};/**
446
+ * @license lucide-react v0.554.0 - ISC
447
+ *
448
+ * This source code is licensed under the ISC license.
449
+ * See the LICENSE file in the root directory of this source tree.
450
+ */var FK={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
451
+ * @license lucide-react v0.554.0 - ISC
452
+ *
453
+ * This source code is licensed under the ISC license.
454
+ * See the LICENSE file in the root directory of this source tree.
455
+ */const UK=D.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:i,className:o="",children:l,iconNode:c,...f},m)=>D.createElement("svg",{ref:m,...FK,width:t,height:t,stroke:e,strokeWidth:i?Number(n)*24/Number(t):n,className:dT("lucide",o),...!l&&!jK(f)&&{"aria-hidden":"true"},...f},[...c.map(([v,b])=>D.createElement(v,b)),...Array.isArray(l)?l:[l]]));/**
456
+ * @license lucide-react v0.554.0 - ISC
457
+ *
458
+ * This source code is licensed under the ISC license.
459
+ * See the LICENSE file in the root directory of this source tree.
460
+ */const pp=(e,t)=>{const n=D.forwardRef(({className:i,...o},l)=>D.createElement(UK,{ref:l,iconNode:t,className:dT(`lucide-${PK(cT(e))}`,`lucide-${e}`,i),...o}));return n.displayName=cT(e),n};/**
461
+ * @license lucide-react v0.554.0 - ISC
462
+ *
463
+ * This source code is licensed under the ISC license.
464
+ * See the LICENSE file in the root directory of this source tree.
465
+ */const fT=pp("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
466
+ * @license lucide-react v0.554.0 - ISC
467
+ *
468
+ * This source code is licensed under the ISC license.
469
+ * See the LICENSE file in the root directory of this source tree.
470
+ */const pT=pp("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
471
+ * @license lucide-react v0.554.0 - ISC
472
+ *
473
+ * This source code is licensed under the ISC license.
474
+ * See the LICENSE file in the root directory of this source tree.
475
+ */const HK=pp("chevron-up",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);/**
476
+ * @license lucide-react v0.554.0 - ISC
477
+ *
478
+ * This source code is licensed under the ISC license.
479
+ * See the LICENSE file in the root directory of this source tree.
480
+ */const VK=pp("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/**
481
+ * @license lucide-react v0.554.0 - ISC
482
+ *
483
+ * This source code is licensed under the ISC license.
484
+ * See the LICENSE file in the root directory of this source tree.
485
+ */const BK=pp("send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]]);/**
486
+ * @license lucide-react v0.554.0 - ISC
487
+ *
488
+ * This source code is licensed under the ISC license.
489
+ * See the LICENSE file in the root directory of this source tree.
490
+ */const $K=pp("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);function hT(e,[t,n]){return Math.min(n,Math.max(t,e))}function Qn(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function ZK(e,t){const n=D.createContext(t),i=l=>{const{children:c,...f}=l,m=D.useMemo(()=>f,Object.values(f));return _.jsx(n.Provider,{value:m,children:c})};i.displayName=e+"Provider";function o(l){const c=D.useContext(n);if(c)return c;if(t!==void 0)return t;throw new Error(`\`${l}\` must be used within \`${e}\``)}return[i,o]}function hp(e,t=[]){let n=[];function i(l,c){const f=D.createContext(c),m=n.length;n=[...n,c];const v=y=>{var I;const{scope:S,children:C,...R}=y,M=((I=S==null?void 0:S[e])==null?void 0:I[m])||f,L=D.useMemo(()=>R,Object.values(R));return _.jsx(M.Provider,{value:L,children:C})};v.displayName=l+"Provider";function b(y,S){var M;const C=((M=S==null?void 0:S[e])==null?void 0:M[m])||f,R=D.useContext(C);if(R)return R;if(c!==void 0)return c;throw new Error(`\`${y}\` must be used within \`${l}\``)}return[v,b]}const o=()=>{const l=n.map(c=>D.createContext(c));return function(f){const m=(f==null?void 0:f[e])||l;return D.useMemo(()=>({[`__scope${e}`]:{...f,[e]:m}}),[f,m])}};return o.scopeName=e,[i,WK(o,...t)]}function WK(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const i=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(l){const c=i.reduce((f,{useScope:m,scopeName:v})=>{const y=m(l)[`__scope${v}`];return{...f,...y}},{});return D.useMemo(()=>({[`__scope${t.scopeName}`]:c}),[c])}};return n.scopeName=t.scopeName,n}function Jh(e){const t=qK(e),n=D.forwardRef((i,o)=>{const{children:l,...c}=i,f=D.Children.toArray(l),m=f.find(YK);if(m){const v=m.props.children,b=f.map(y=>y===m?D.Children.count(v)>1?D.Children.only(null):D.isValidElement(v)?v.props.children:null:y);return _.jsx(t,{...c,ref:o,children:D.isValidElement(v)?D.cloneElement(v,void 0,b):null})}return _.jsx(t,{...c,ref:o,children:l})});return n.displayName=`${e}.Slot`,n}function qK(e){const t=D.forwardRef((n,i)=>{const{children:o,...l}=n;if(D.isValidElement(o)){const c=KK(o),f=JK(l,o.props);return o.type!==D.Fragment&&(f.ref=i?n3(i,c):c),D.cloneElement(o,f)}return D.Children.count(o)>1?D.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var GK=Symbol("radix.slottable");function YK(e){return D.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===GK}function JK(e,t){const n={...t};for(const i in t){const o=e[i],l=t[i];/^on[A-Z]/.test(i)?o&&l?n[i]=(...f)=>{const m=l(...f);return o(...f),m}:o&&(n[i]=o):i==="style"?n[i]={...o,...l}:i==="className"&&(n[i]=[o,l].filter(Boolean).join(" "))}return{...e,...n}}function KK(e){var i,o;let t=(i=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function XK(e){const t=e+"CollectionProvider",[n,i]=hp(t),[o,l]=n(t,{collectionRef:{current:null},itemMap:new Map}),c=M=>{const{scope:L,children:I}=M,j=oo.useRef(null),U=oo.useRef(new Map).current;return _.jsx(o,{scope:L,itemMap:U,collectionRef:j,children:I})};c.displayName=t;const f=e+"CollectionSlot",m=Jh(f),v=oo.forwardRef((M,L)=>{const{scope:I,children:j}=M,U=l(f,I),P=kr(L,U.collectionRef);return _.jsx(m,{ref:P,children:j})});v.displayName=f;const b=e+"CollectionItemSlot",y="data-radix-collection-item",S=Jh(b),C=oo.forwardRef((M,L)=>{const{scope:I,children:j,...U}=M,P=oo.useRef(null),Z=kr(L,P),B=l(b,I);return oo.useEffect(()=>(B.itemMap.set(P,{ref:P,...U}),()=>void B.itemMap.delete(P))),_.jsx(S,{[y]:"",ref:Z,children:j})});C.displayName=b;function R(M){const L=l(e+"CollectionConsumer",M);return oo.useCallback(()=>{const j=L.collectionRef.current;if(!j)return[];const U=Array.from(j.querySelectorAll(`[${y}]`));return Array.from(L.itemMap.values()).sort((B,W)=>U.indexOf(B.ref.current)-U.indexOf(W.ref.current))},[L.collectionRef,L.itemMap])}return[{Provider:c,Slot:v,ItemSlot:C},R,i]}var QK=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],In=QK.reduce((e,t)=>{const n=Jh(`Primitive.${t}`),i=D.forwardRef((o,l)=>{const{asChild:c,...f}=o,m=c?n:t;return typeof window!="undefined"&&(window[Symbol.for("radix-ui")]=!0),_.jsx(m,{...f,ref:l})});return i.displayName=`Primitive.${t}`,{...e,[t]:i}},{});function eX(e,t){e&&Hu.flushSync(()=>e.dispatchEvent(t))}function yd(e){const t=D.useRef(e);return D.useEffect(()=>{t.current=e}),D.useMemo(()=>(...n)=>{var i;return(i=t.current)==null?void 0:i.call(t,...n)},[])}function tX(e,t=globalThis==null?void 0:globalThis.document){const n=yd(e);D.useEffect(()=>{const i=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",i,{capture:!0}),()=>t.removeEventListener("keydown",i,{capture:!0})},[n,t])}var nX="DismissableLayer",i5="dismissableLayer.update",rX="dismissableLayer.pointerDownOutside",aX="dismissableLayer.focusOutside",mT,vT=D.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),o5=D.forwardRef((e,t)=>{var W;const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:i,onPointerDownOutside:o,onFocusOutside:l,onInteractOutside:c,onDismiss:f,...m}=e,v=D.useContext(vT),[b,y]=D.useState(null),S=(W=b==null?void 0:b.ownerDocument)!=null?W:globalThis==null?void 0:globalThis.document,[,C]=D.useState({}),R=kr(t,G=>y(G)),M=Array.from(v.layers),[L]=[...v.layersWithOutsidePointerEventsDisabled].slice(-1),I=M.indexOf(L),j=b?M.indexOf(b):-1,U=v.layersWithOutsidePointerEventsDisabled.size>0,P=j>=I,Z=sX(G=>{const se=G.target,ke=[...v.branches].some(ve=>ve.contains(se));!P||ke||(o==null||o(G),c==null||c(G),G.defaultPrevented||f==null||f())},S),B=lX(G=>{const se=G.target;[...v.branches].some(ve=>ve.contains(se))||(l==null||l(G),c==null||c(G),G.defaultPrevented||f==null||f())},S);return tX(G=>{j===v.layers.size-1&&(i==null||i(G),!G.defaultPrevented&&f&&(G.preventDefault(),f()))},S),D.useEffect(()=>{if(b)return n&&(v.layersWithOutsidePointerEventsDisabled.size===0&&(mT=S.body.style.pointerEvents,S.body.style.pointerEvents="none"),v.layersWithOutsidePointerEventsDisabled.add(b)),v.layers.add(b),gT(),()=>{n&&v.layersWithOutsidePointerEventsDisabled.size===1&&(S.body.style.pointerEvents=mT)}},[b,S,n,v]),D.useEffect(()=>()=>{b&&(v.layers.delete(b),v.layersWithOutsidePointerEventsDisabled.delete(b),gT())},[b,v]),D.useEffect(()=>{const G=()=>C({});return document.addEventListener(i5,G),()=>document.removeEventListener(i5,G)},[]),_.jsx(In.div,{...m,ref:R,style:{pointerEvents:U?P?"auto":"none":void 0,...e.style},onFocusCapture:Qn(e.onFocusCapture,B.onFocusCapture),onBlurCapture:Qn(e.onBlurCapture,B.onBlurCapture),onPointerDownCapture:Qn(e.onPointerDownCapture,Z.onPointerDownCapture)})});o5.displayName=nX;var iX="DismissableLayerBranch",oX=D.forwardRef((e,t)=>{const n=D.useContext(vT),i=D.useRef(null),o=kr(t,i);return D.useEffect(()=>{const l=i.current;if(l)return n.branches.add(l),()=>{n.branches.delete(l)}},[n.branches]),_.jsx(In.div,{...e,ref:o})});oX.displayName=iX;function sX(e,t=globalThis==null?void 0:globalThis.document){const n=yd(e),i=D.useRef(!1),o=D.useRef(()=>{});return D.useEffect(()=>{const l=f=>{if(f.target&&!i.current){let m=function(){yT(rX,n,v,{discrete:!0})};const v={originalEvent:f};f.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=m,t.addEventListener("click",o.current,{once:!0})):m()}else t.removeEventListener("click",o.current);i.current=!1},c=window.setTimeout(()=>{t.addEventListener("pointerdown",l)},0);return()=>{window.clearTimeout(c),t.removeEventListener("pointerdown",l),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>i.current=!0}}function lX(e,t=globalThis==null?void 0:globalThis.document){const n=yd(e),i=D.useRef(!1);return D.useEffect(()=>{const o=l=>{l.target&&!i.current&&yT(aX,n,{originalEvent:l},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>i.current=!0,onBlurCapture:()=>i.current=!1}}function gT(){const e=new CustomEvent(i5);document.dispatchEvent(e)}function yT(e,t,n,{discrete:i}){const o=n.originalEvent.target,l=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),i?eX(o,l):o.dispatchEvent(l)}var s5=0;function wT(){D.useEffect(()=>{var t,n;const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",(t=e[0])!=null?t:bT()),document.body.insertAdjacentElement("beforeend",(n=e[1])!=null?n:bT()),s5++,()=>{s5===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(i=>i.remove()),s5--}},[])}function bT(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var l5="focusScope.autoFocusOnMount",u5="focusScope.autoFocusOnUnmount",xT={bubbles:!1,cancelable:!0},uX="FocusScope",c5=D.forwardRef((e,t)=>{const{loop:n=!1,trapped:i=!1,onMountAutoFocus:o,onUnmountAutoFocus:l,...c}=e,[f,m]=D.useState(null),v=yd(o),b=yd(l),y=D.useRef(null),S=kr(t,M=>m(M)),C=D.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;D.useEffect(()=>{if(i){let M=function(U){if(C.paused||!f)return;const P=U.target;f.contains(P)?y.current=P:Xu(y.current,{select:!0})},L=function(U){if(C.paused||!f)return;const P=U.relatedTarget;P!==null&&(f.contains(P)||Xu(y.current,{select:!0}))},I=function(U){if(document.activeElement===document.body)for(const Z of U)Z.removedNodes.length>0&&Xu(f)};document.addEventListener("focusin",M),document.addEventListener("focusout",L);const j=new MutationObserver(I);return f&&j.observe(f,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",M),document.removeEventListener("focusout",L),j.disconnect()}}},[i,f,C.paused]),D.useEffect(()=>{if(f){kT.add(C);const M=document.activeElement;if(!f.contains(M)){const I=new CustomEvent(l5,xT);f.addEventListener(l5,v),f.dispatchEvent(I),I.defaultPrevented||(cX(mX(CT(f)),{select:!0}),document.activeElement===M&&Xu(f))}return()=>{f.removeEventListener(l5,v),setTimeout(()=>{const I=new CustomEvent(u5,xT);f.addEventListener(u5,b),f.dispatchEvent(I),I.defaultPrevented||Xu(M!=null?M:document.body,{select:!0}),f.removeEventListener(u5,b),kT.remove(C)},0)}}},[f,v,b,C]);const R=D.useCallback(M=>{if(!n&&!i||C.paused)return;const L=M.key==="Tab"&&!M.altKey&&!M.ctrlKey&&!M.metaKey,I=document.activeElement;if(L&&I){const j=M.currentTarget,[U,P]=dX(j);U&&P?!M.shiftKey&&I===P?(M.preventDefault(),n&&Xu(U,{select:!0})):M.shiftKey&&I===U&&(M.preventDefault(),n&&Xu(P,{select:!0})):I===j&&M.preventDefault()}},[n,i,C.paused]);return _.jsx(In.div,{tabIndex:-1,...c,ref:S,onKeyDown:R})});c5.displayName=uX;function cX(e,{select:t=!1}={}){const n=document.activeElement;for(const i of e)if(Xu(i,{select:t}),document.activeElement!==n)return}function dX(e){const t=CT(e),n=ST(t,e),i=ST(t.reverse(),e);return[n,i]}function CT(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:i=>{const o=i.tagName==="INPUT"&&i.type==="hidden";return i.disabled||i.hidden||o?NodeFilter.FILTER_SKIP:i.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function ST(e,t){for(const n of e)if(!fX(n,{upTo:t}))return n}function fX(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function pX(e){return e instanceof HTMLInputElement&&"select"in e}function Xu(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&pX(e)&&t&&e.select()}}var kT=hX();function hX(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=ET(e,t),e.unshift(t)},remove(t){var n;e=ET(e,t),(n=e[0])==null||n.resume()}}}function ET(e,t){const n=[...e],i=n.indexOf(t);return i!==-1&&n.splice(i,1),n}function mX(e){return e.filter(t=>t.tagName!=="A")}var Oa=globalThis!=null&&globalThis.document?D.useLayoutEffect:()=>{},vX=J9[" useId ".trim().toString()]||(()=>{}),gX=0;function mp(e){const[t,n]=D.useState(vX());return Oa(()=>{n(i=>i!=null?i:String(gX++))},[e]),t?`radix-${t}`:""}const yX=["top","right","bottom","left"],Qu=Math.min,ho=Math.max,k4=Math.round,E4=Math.floor,Xs=e=>({x:e,y:e}),wX={left:"right",right:"left",bottom:"top",top:"bottom"},bX={start:"end",end:"start"};function d5(e,t,n){return ho(e,Qu(t,n))}function ql(e,t){return typeof e=="function"?e(t):e}function Gl(e){return e.split("-")[0]}function vp(e){return e.split("-")[1]}function f5(e){return e==="x"?"y":"x"}function p5(e){return e==="y"?"height":"width"}const xX=new Set(["top","bottom"]);function Qs(e){return xX.has(Gl(e))?"y":"x"}function h5(e){return f5(Qs(e))}function CX(e,t,n){n===void 0&&(n=!1);const i=vp(e),o=h5(e),l=p5(o);let c=o==="x"?i===(n?"end":"start")?"right":"left":i==="start"?"bottom":"top";return t.reference[l]>t.floating[l]&&(c=_4(c)),[c,_4(c)]}function SX(e){const t=_4(e);return[m5(e),t,m5(t)]}function m5(e){return e.replace(/start|end/g,t=>bX[t])}const _T=["left","right"],TT=["right","left"],kX=["top","bottom"],EX=["bottom","top"];function _X(e,t,n){switch(e){case"top":case"bottom":return n?t?TT:_T:t?_T:TT;case"left":case"right":return t?kX:EX;default:return[]}}function TX(e,t,n,i){const o=vp(e);let l=_X(Gl(e),n==="start",i);return o&&(l=l.map(c=>c+"-"+o),t&&(l=l.concat(l.map(m5)))),l}function _4(e){return e.replace(/left|right|bottom|top/g,t=>wX[t])}function RX(e){return{top:0,right:0,bottom:0,left:0,...e}}function RT(e){return typeof e!="number"?RX(e):{top:e,right:e,bottom:e,left:e}}function T4(e){const{x:t,y:n,width:i,height:o}=e;return{width:i,height:o,top:n,left:t,right:t+i,bottom:n+o,x:t,y:n}}function MT(e,t,n){let{reference:i,floating:o}=e;const l=Qs(t),c=h5(t),f=p5(c),m=Gl(t),v=l==="y",b=i.x+i.width/2-o.width/2,y=i.y+i.height/2-o.height/2,S=i[f]/2-o[f]/2;let C;switch(m){case"top":C={x:b,y:i.y-o.height};break;case"bottom":C={x:b,y:i.y+i.height};break;case"right":C={x:i.x+i.width,y};break;case"left":C={x:i.x-o.width,y};break;default:C={x:i.x,y:i.y}}switch(vp(t)){case"start":C[c]-=S*(n&&v?-1:1);break;case"end":C[c]+=S*(n&&v?-1:1);break}return C}const MX=async(e,t,n)=>{const{placement:i="bottom",strategy:o="absolute",middleware:l=[],platform:c}=n,f=l.filter(Boolean),m=await(c.isRTL==null?void 0:c.isRTL(t));let v=await c.getElementRects({reference:e,floating:t,strategy:o}),{x:b,y}=MT(v,i,m),S=i,C={},R=0;for(let M=0;M<f.length;M++){const{name:L,fn:I}=f[M],{x:j,y:U,data:P,reset:Z}=await I({x:b,y,initialPlacement:i,placement:S,strategy:o,middlewareData:C,rects:v,platform:c,elements:{reference:e,floating:t}});b=j!=null?j:b,y=U!=null?U:y,C={...C,[L]:{...C[L],...P}},Z&&R<=50&&(R++,typeof Z=="object"&&(Z.placement&&(S=Z.placement),Z.rects&&(v=Z.rects===!0?await c.getElementRects({reference:e,floating:t,strategy:o}):Z.rects),{x:b,y}=MT(v,S,m)),M=-1)}return{x:b,y,placement:S,strategy:o,middlewareData:C}};async function Kh(e,t){var n;t===void 0&&(t={});const{x:i,y:o,platform:l,rects:c,elements:f,strategy:m}=e,{boundary:v="clippingAncestors",rootBoundary:b="viewport",elementContext:y="floating",altBoundary:S=!1,padding:C=0}=ql(t,e),R=RT(C),L=f[S?y==="floating"?"reference":"floating":y],I=T4(await l.getClippingRect({element:(n=await(l.isElement==null?void 0:l.isElement(L)))==null||n?L:L.contextElement||await(l.getDocumentElement==null?void 0:l.getDocumentElement(f.floating)),boundary:v,rootBoundary:b,strategy:m})),j=y==="floating"?{x:i,y:o,width:c.floating.width,height:c.floating.height}:c.reference,U=await(l.getOffsetParent==null?void 0:l.getOffsetParent(f.floating)),P=await(l.isElement==null?void 0:l.isElement(U))?await(l.getScale==null?void 0:l.getScale(U))||{x:1,y:1}:{x:1,y:1},Z=T4(l.convertOffsetParentRelativeRectToViewportRelativeRect?await l.convertOffsetParentRelativeRectToViewportRelativeRect({elements:f,rect:j,offsetParent:U,strategy:m}):j);return{top:(I.top-Z.top+R.top)/P.y,bottom:(Z.bottom-I.bottom+R.bottom)/P.y,left:(I.left-Z.left+R.left)/P.x,right:(Z.right-I.right+R.right)/P.x}}const NX=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:i,placement:o,rects:l,platform:c,elements:f,middlewareData:m}=t,{element:v,padding:b=0}=ql(e,t)||{};if(v==null)return{};const y=RT(b),S={x:n,y:i},C=h5(o),R=p5(C),M=await c.getDimensions(v),L=C==="y",I=L?"top":"left",j=L?"bottom":"right",U=L?"clientHeight":"clientWidth",P=l.reference[R]+l.reference[C]-S[C]-l.floating[R],Z=S[C]-l.reference[C],B=await(c.getOffsetParent==null?void 0:c.getOffsetParent(v));let W=B?B[U]:0;(!W||!await(c.isElement==null?void 0:c.isElement(B)))&&(W=f.floating[U]||l.floating[R]);const G=P/2-Z/2,se=W/2-M[R]/2-1,ke=Qu(y[I],se),ve=Qu(y[j],se),de=ke,ge=W-M[R]-ve,Re=W/2-M[R]/2+G,be=d5(de,Re,ge),Ie=!m.arrow&&vp(o)!=null&&Re!==be&&l.reference[R]/2-(Re<de?ke:ve)-M[R]/2<0,ye=Ie?Re<de?Re-de:Re-ge:0;return{[C]:S[C]+ye,data:{[C]:be,centerOffset:Re-be-ye,...Ie&&{alignmentOffset:ye}},reset:Ie}}}),OX=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,i;const{placement:o,middlewareData:l,rects:c,initialPlacement:f,platform:m,elements:v}=t,{mainAxis:b=!0,crossAxis:y=!0,fallbackPlacements:S,fallbackStrategy:C="bestFit",fallbackAxisSideDirection:R="none",flipAlignment:M=!0,...L}=ql(e,t);if((n=l.arrow)!=null&&n.alignmentOffset)return{};const I=Gl(o),j=Qs(f),U=Gl(f)===f,P=await(m.isRTL==null?void 0:m.isRTL(v.floating)),Z=S||(U||!M?[_4(f)]:SX(f)),B=R!=="none";!S&&B&&Z.push(...TX(f,M,R,P));const W=[f,...Z],G=await Kh(t,L),se=[];let ke=((i=l.flip)==null?void 0:i.overflows)||[];if(b&&se.push(G[I]),y){const Re=CX(o,c,P);se.push(G[Re[0]],G[Re[1]])}if(ke=[...ke,{placement:o,overflows:se}],!se.every(Re=>Re<=0)){var ve,de;const Re=(((ve=l.flip)==null?void 0:ve.index)||0)+1,be=W[Re];if(be&&(!(y==="alignment"?j!==Qs(be):!1)||ke.every(Q=>Qs(Q.placement)===j?Q.overflows[0]>0:!0)))return{data:{index:Re,overflows:ke},reset:{placement:be}};let Ie=(de=ke.filter(ye=>ye.overflows[0]<=0).sort((ye,Q)=>ye.overflows[1]-Q.overflows[1])[0])==null?void 0:de.placement;if(!Ie)switch(C){case"bestFit":{var ge;const ye=(ge=ke.filter(Q=>{if(B){const Ne=Qs(Q.placement);return Ne===j||Ne==="y"}return!0}).map(Q=>[Q.placement,Q.overflows.filter(Ne=>Ne>0).reduce((Ne,H)=>Ne+H,0)]).sort((Q,Ne)=>Q[1]-Ne[1])[0])==null?void 0:ge[0];ye&&(Ie=ye);break}case"initialPlacement":Ie=f;break}if(o!==Ie)return{reset:{placement:Ie}}}return{}}}};function NT(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function OT(e){return yX.some(t=>e[t]>=0)}const LX=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:i="referenceHidden",...o}=ql(e,t);switch(i){case"referenceHidden":{const l=await Kh(t,{...o,elementContext:"reference"}),c=NT(l,n.reference);return{data:{referenceHiddenOffsets:c,referenceHidden:OT(c)}}}case"escaped":{const l=await Kh(t,{...o,altBoundary:!0}),c=NT(l,n.floating);return{data:{escapedOffsets:c,escaped:OT(c)}}}default:return{}}}}},LT=new Set(["left","top"]);async function AX(e,t){const{placement:n,platform:i,elements:o}=e,l=await(i.isRTL==null?void 0:i.isRTL(o.floating)),c=Gl(n),f=vp(n),m=Qs(n)==="y",v=LT.has(c)?-1:1,b=l&&m?-1:1,y=ql(t,e);let{mainAxis:S,crossAxis:C,alignmentAxis:R}=typeof y=="number"?{mainAxis:y,crossAxis:0,alignmentAxis:null}:{mainAxis:y.mainAxis||0,crossAxis:y.crossAxis||0,alignmentAxis:y.alignmentAxis};return f&&typeof R=="number"&&(C=f==="end"?R*-1:R),m?{x:C*b,y:S*v}:{x:S*v,y:C*b}}const IX=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,i;const{x:o,y:l,placement:c,middlewareData:f}=t,m=await AX(t,e);return c===((n=f.offset)==null?void 0:n.placement)&&(i=f.arrow)!=null&&i.alignmentOffset?{}:{x:o+m.x,y:l+m.y,data:{...m,placement:c}}}}},DX=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:i,placement:o}=t,{mainAxis:l=!0,crossAxis:c=!1,limiter:f={fn:L=>{let{x:I,y:j}=L;return{x:I,y:j}}},...m}=ql(e,t),v={x:n,y:i},b=await Kh(t,m),y=Qs(Gl(o)),S=f5(y);let C=v[S],R=v[y];if(l){const L=S==="y"?"top":"left",I=S==="y"?"bottom":"right",j=C+b[L],U=C-b[I];C=d5(j,C,U)}if(c){const L=y==="y"?"top":"left",I=y==="y"?"bottom":"right",j=R+b[L],U=R-b[I];R=d5(j,R,U)}const M=f.fn({...t,[S]:C,[y]:R});return{...M,data:{x:M.x-n,y:M.y-i,enabled:{[S]:l,[y]:c}}}}}},PX=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:i,placement:o,rects:l,middlewareData:c}=t,{offset:f=0,mainAxis:m=!0,crossAxis:v=!0}=ql(e,t),b={x:n,y:i},y=Qs(o),S=f5(y);let C=b[S],R=b[y];const M=ql(f,t),L=typeof M=="number"?{mainAxis:M,crossAxis:0}:{mainAxis:0,crossAxis:0,...M};if(m){const U=S==="y"?"height":"width",P=l.reference[S]-l.floating[U]+L.mainAxis,Z=l.reference[S]+l.reference[U]-L.mainAxis;C<P?C=P:C>Z&&(C=Z)}if(v){var I,j;const U=S==="y"?"width":"height",P=LT.has(Gl(o)),Z=l.reference[y]-l.floating[U]+(P&&((I=c.offset)==null?void 0:I[y])||0)+(P?0:L.crossAxis),B=l.reference[y]+l.reference[U]+(P?0:((j=c.offset)==null?void 0:j[y])||0)-(P?L.crossAxis:0);R<Z?R=Z:R>B&&(R=B)}return{[S]:C,[y]:R}}}},zX=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,i;const{placement:o,rects:l,platform:c,elements:f}=t,{apply:m=()=>{},...v}=ql(e,t),b=await Kh(t,v),y=Gl(o),S=vp(o),C=Qs(o)==="y",{width:R,height:M}=l.floating;let L,I;y==="top"||y==="bottom"?(L=y,I=S===(await(c.isRTL==null?void 0:c.isRTL(f.floating))?"start":"end")?"left":"right"):(I=y,L=S==="end"?"top":"bottom");const j=M-b.top-b.bottom,U=R-b.left-b.right,P=Qu(M-b[L],j),Z=Qu(R-b[I],U),B=!t.middlewareData.shift;let W=P,G=Z;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(G=U),(i=t.middlewareData.shift)!=null&&i.enabled.y&&(W=j),B&&!S){const ke=ho(b.left,0),ve=ho(b.right,0),de=ho(b.top,0),ge=ho(b.bottom,0);C?G=R-2*(ke!==0||ve!==0?ke+ve:ho(b.left,b.right)):W=M-2*(de!==0||ge!==0?de+ge:ho(b.top,b.bottom))}await m({...t,availableWidth:G,availableHeight:W});const se=await c.getDimensions(f.floating);return R!==se.width||M!==se.height?{reset:{rects:!0}}:{}}}};function R4(){return typeof window!="undefined"}function gp(e){return AT(e)?(e.nodeName||"").toLowerCase():"#document"}function mo(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function el(e){var t;return(t=(AT(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function AT(e){return R4()?e instanceof Node||e instanceof mo(e).Node:!1}function hs(e){return R4()?e instanceof Element||e instanceof mo(e).Element:!1}function tl(e){return R4()?e instanceof HTMLElement||e instanceof mo(e).HTMLElement:!1}function IT(e){return!R4()||typeof ShadowRoot=="undefined"?!1:e instanceof ShadowRoot||e instanceof mo(e).ShadowRoot}const jX=new Set(["inline","contents"]);function Xh(e){const{overflow:t,overflowX:n,overflowY:i,display:o}=ms(e);return/auto|scroll|overlay|hidden|clip/.test(t+i+n)&&!jX.has(o)}const FX=new Set(["table","td","th"]);function UX(e){return FX.has(gp(e))}const HX=[":popover-open",":modal"];function M4(e){return HX.some(t=>{try{return e.matches(t)}catch(n){return!1}})}const VX=["transform","translate","scale","rotate","perspective"],BX=["transform","translate","scale","rotate","perspective","filter"],$X=["paint","layout","strict","content"];function v5(e){const t=g5(),n=hs(e)?ms(e):e;return VX.some(i=>n[i]?n[i]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||BX.some(i=>(n.willChange||"").includes(i))||$X.some(i=>(n.contain||"").includes(i))}function ZX(e){let t=ec(e);for(;tl(t)&&!yp(t);){if(v5(t))return t;if(M4(t))return null;t=ec(t)}return null}function g5(){return typeof CSS=="undefined"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const WX=new Set(["html","body","#document"]);function yp(e){return WX.has(gp(e))}function ms(e){return mo(e).getComputedStyle(e)}function N4(e){return hs(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ec(e){if(gp(e)==="html")return e;const t=e.assignedSlot||e.parentNode||IT(e)&&e.host||el(e);return IT(t)?t.host:t}function DT(e){const t=ec(e);return yp(t)?e.ownerDocument?e.ownerDocument.body:e.body:tl(t)&&Xh(t)?t:DT(t)}function Qh(e,t,n){var i;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=DT(e),l=o===((i=e.ownerDocument)==null?void 0:i.body),c=mo(o);if(l){const f=y5(c);return t.concat(c,c.visualViewport||[],Xh(o)?o:[],f&&n?Qh(f):[])}return t.concat(o,Qh(o,[],n))}function y5(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function PT(e){const t=ms(e);let n=parseFloat(t.width)||0,i=parseFloat(t.height)||0;const o=tl(e),l=o?e.offsetWidth:n,c=o?e.offsetHeight:i,f=k4(n)!==l||k4(i)!==c;return f&&(n=l,i=c),{width:n,height:i,$:f}}function w5(e){return hs(e)?e:e.contextElement}function wp(e){const t=w5(e);if(!tl(t))return Xs(1);const n=t.getBoundingClientRect(),{width:i,height:o,$:l}=PT(t);let c=(l?k4(n.width):n.width)/i,f=(l?k4(n.height):n.height)/o;return(!c||!Number.isFinite(c))&&(c=1),(!f||!Number.isFinite(f))&&(f=1),{x:c,y:f}}const qX=Xs(0);function zT(e){const t=mo(e);return!g5()||!t.visualViewport?qX:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function GX(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==mo(e)?!1:t}function wd(e,t,n,i){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),l=w5(e);let c=Xs(1);t&&(i?hs(i)&&(c=wp(i)):c=wp(e));const f=GX(l,n,i)?zT(l):Xs(0);let m=(o.left+f.x)/c.x,v=(o.top+f.y)/c.y,b=o.width/c.x,y=o.height/c.y;if(l){const S=mo(l),C=i&&hs(i)?mo(i):i;let R=S,M=y5(R);for(;M&&i&&C!==R;){const L=wp(M),I=M.getBoundingClientRect(),j=ms(M),U=I.left+(M.clientLeft+parseFloat(j.paddingLeft))*L.x,P=I.top+(M.clientTop+parseFloat(j.paddingTop))*L.y;m*=L.x,v*=L.y,b*=L.x,y*=L.y,m+=U,v+=P,R=mo(M),M=y5(R)}}return T4({width:b,height:y,x:m,y:v})}function O4(e,t){const n=N4(e).scrollLeft;return t?t.left+n:wd(el(e)).left+n}function jT(e,t){const n=e.getBoundingClientRect(),i=n.left+t.scrollLeft-O4(e,n),o=n.top+t.scrollTop;return{x:i,y:o}}function YX(e){let{elements:t,rect:n,offsetParent:i,strategy:o}=e;const l=o==="fixed",c=el(i),f=t?M4(t.floating):!1;if(i===c||f&&l)return n;let m={scrollLeft:0,scrollTop:0},v=Xs(1);const b=Xs(0),y=tl(i);if((y||!y&&!l)&&((gp(i)!=="body"||Xh(c))&&(m=N4(i)),tl(i))){const C=wd(i);v=wp(i),b.x=C.x+i.clientLeft,b.y=C.y+i.clientTop}const S=c&&!y&&!l?jT(c,m):Xs(0);return{width:n.width*v.x,height:n.height*v.y,x:n.x*v.x-m.scrollLeft*v.x+b.x+S.x,y:n.y*v.y-m.scrollTop*v.y+b.y+S.y}}function JX(e){return Array.from(e.getClientRects())}function KX(e){const t=el(e),n=N4(e),i=e.ownerDocument.body,o=ho(t.scrollWidth,t.clientWidth,i.scrollWidth,i.clientWidth),l=ho(t.scrollHeight,t.clientHeight,i.scrollHeight,i.clientHeight);let c=-n.scrollLeft+O4(e);const f=-n.scrollTop;return ms(i).direction==="rtl"&&(c+=ho(t.clientWidth,i.clientWidth)-o),{width:o,height:l,x:c,y:f}}const FT=25;function XX(e,t){const n=mo(e),i=el(e),o=n.visualViewport;let l=i.clientWidth,c=i.clientHeight,f=0,m=0;if(o){l=o.width,c=o.height;const b=g5();(!b||b&&t==="fixed")&&(f=o.offsetLeft,m=o.offsetTop)}const v=O4(i);if(v<=0){const b=i.ownerDocument,y=b.body,S=getComputedStyle(y),C=b.compatMode==="CSS1Compat"&&parseFloat(S.marginLeft)+parseFloat(S.marginRight)||0,R=Math.abs(i.clientWidth-y.clientWidth-C);R<=FT&&(l-=R)}else v<=FT&&(l+=v);return{width:l,height:c,x:f,y:m}}const QX=new Set(["absolute","fixed"]);function eQ(e,t){const n=wd(e,!0,t==="fixed"),i=n.top+e.clientTop,o=n.left+e.clientLeft,l=tl(e)?wp(e):Xs(1),c=e.clientWidth*l.x,f=e.clientHeight*l.y,m=o*l.x,v=i*l.y;return{width:c,height:f,x:m,y:v}}function UT(e,t,n){let i;if(t==="viewport")i=XX(e,n);else if(t==="document")i=KX(el(e));else if(hs(t))i=eQ(t,n);else{const o=zT(e);i={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return T4(i)}function HT(e,t){const n=ec(e);return n===t||!hs(n)||yp(n)?!1:ms(n).position==="fixed"||HT(n,t)}function tQ(e,t){const n=t.get(e);if(n)return n;let i=Qh(e,[],!1).filter(f=>hs(f)&&gp(f)!=="body"),o=null;const l=ms(e).position==="fixed";let c=l?ec(e):e;for(;hs(c)&&!yp(c);){const f=ms(c),m=v5(c);!m&&f.position==="fixed"&&(o=null),(l?!m&&!o:!m&&f.position==="static"&&!!o&&QX.has(o.position)||Xh(c)&&!m&&HT(e,c))?i=i.filter(b=>b!==c):o=f,c=ec(c)}return t.set(e,i),i}function nQ(e){let{element:t,boundary:n,rootBoundary:i,strategy:o}=e;const c=[...n==="clippingAncestors"?M4(t)?[]:tQ(t,this._c):[].concat(n),i],f=c[0],m=c.reduce((v,b)=>{const y=UT(t,b,o);return v.top=ho(y.top,v.top),v.right=Qu(y.right,v.right),v.bottom=Qu(y.bottom,v.bottom),v.left=ho(y.left,v.left),v},UT(t,f,o));return{width:m.right-m.left,height:m.bottom-m.top,x:m.left,y:m.top}}function rQ(e){const{width:t,height:n}=PT(e);return{width:t,height:n}}function aQ(e,t,n){const i=tl(t),o=el(t),l=n==="fixed",c=wd(e,!0,l,t);let f={scrollLeft:0,scrollTop:0};const m=Xs(0);function v(){m.x=O4(o)}if(i||!i&&!l)if((gp(t)!=="body"||Xh(o))&&(f=N4(t)),i){const C=wd(t,!0,l,t);m.x=C.x+t.clientLeft,m.y=C.y+t.clientTop}else o&&v();l&&!i&&o&&v();const b=o&&!i&&!l?jT(o,f):Xs(0),y=c.left+f.scrollLeft-m.x-b.x,S=c.top+f.scrollTop-m.y-b.y;return{x:y,y:S,width:c.width,height:c.height}}function b5(e){return ms(e).position==="static"}function VT(e,t){if(!tl(e)||ms(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return el(e)===n&&(n=n.ownerDocument.body),n}function BT(e,t){const n=mo(e);if(M4(e))return n;if(!tl(e)){let o=ec(e);for(;o&&!yp(o);){if(hs(o)&&!b5(o))return o;o=ec(o)}return n}let i=VT(e,t);for(;i&&UX(i)&&b5(i);)i=VT(i,t);return i&&yp(i)&&b5(i)&&!v5(i)?n:i||ZX(e)||n}const iQ=async function(e){const t=this.getOffsetParent||BT,n=this.getDimensions,i=await n(e.floating);return{reference:aQ(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function oQ(e){return ms(e).direction==="rtl"}const sQ={convertOffsetParentRelativeRectToViewportRelativeRect:YX,getDocumentElement:el,getClippingRect:nQ,getOffsetParent:BT,getElementRects:iQ,getClientRects:JX,getDimensions:rQ,getScale:wp,isElement:hs,isRTL:oQ};function $T(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function lQ(e,t){let n=null,i;const o=el(e);function l(){var f;clearTimeout(i),(f=n)==null||f.disconnect(),n=null}function c(f,m){f===void 0&&(f=!1),m===void 0&&(m=1),l();const v=e.getBoundingClientRect(),{left:b,top:y,width:S,height:C}=v;if(f||t(),!S||!C)return;const R=E4(y),M=E4(o.clientWidth-(b+S)),L=E4(o.clientHeight-(y+C)),I=E4(b),U={rootMargin:-R+"px "+-M+"px "+-L+"px "+-I+"px",threshold:ho(0,Qu(1,m))||1};let P=!0;function Z(B){const W=B[0].intersectionRatio;if(W!==m){if(!P)return c();W?c(!1,W):i=setTimeout(()=>{c(!1,1e-7)},1e3)}W===1&&!$T(v,e.getBoundingClientRect())&&c(),P=!1}try{n=new IntersectionObserver(Z,{...U,root:o.ownerDocument})}catch(B){n=new IntersectionObserver(Z,U)}n.observe(e)}return c(!0),l}function uQ(e,t,n,i){i===void 0&&(i={});const{ancestorScroll:o=!0,ancestorResize:l=!0,elementResize:c=typeof ResizeObserver=="function",layoutShift:f=typeof IntersectionObserver=="function",animationFrame:m=!1}=i,v=w5(e),b=o||l?[...v?Qh(v):[],...Qh(t)]:[];b.forEach(I=>{o&&I.addEventListener("scroll",n,{passive:!0}),l&&I.addEventListener("resize",n)});const y=v&&f?lQ(v,n):null;let S=-1,C=null;c&&(C=new ResizeObserver(I=>{let[j]=I;j&&j.target===v&&C&&(C.unobserve(t),cancelAnimationFrame(S),S=requestAnimationFrame(()=>{var U;(U=C)==null||U.observe(t)})),n()}),v&&!m&&C.observe(v),C.observe(t));let R,M=m?wd(e):null;m&&L();function L(){const I=wd(e);M&&!$T(M,I)&&n(),M=I,R=requestAnimationFrame(L)}return n(),()=>{var I;b.forEach(j=>{o&&j.removeEventListener("scroll",n),l&&j.removeEventListener("resize",n)}),y==null||y(),(I=C)==null||I.disconnect(),C=null,m&&cancelAnimationFrame(R)}}const cQ=IX,dQ=DX,fQ=OX,pQ=zX,hQ=LX,ZT=NX,mQ=PX,vQ=(e,t,n)=>{const i=new Map,o={platform:sQ,...n},l={...o.platform,_c:i};return MX(e,t,{...o,platform:l})};var gQ=typeof document!="undefined",yQ=function(){},L4=gQ?D.useLayoutEffect:yQ;function A4(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,i,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(i=n;i--!==0;)if(!A4(e[i],t[i]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(i=n;i--!==0;)if(!{}.hasOwnProperty.call(t,o[i]))return!1;for(i=n;i--!==0;){const l=o[i];if(!(l==="_owner"&&e.$$typeof)&&!A4(e[l],t[l]))return!1}return!0}return e!==e&&t!==t}function WT(e){return typeof window=="undefined"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function qT(e,t){const n=WT(e);return Math.round(t*n)/n}function x5(e){const t=D.useRef(e);return L4(()=>{t.current=e}),t}function wQ(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:i=[],platform:o,elements:{reference:l,floating:c}={},transform:f=!0,whileElementsMounted:m,open:v}=e,[b,y]=D.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[S,C]=D.useState(i);A4(S,i)||C(i);const[R,M]=D.useState(null),[L,I]=D.useState(null),j=D.useCallback(Q=>{Q!==B.current&&(B.current=Q,M(Q))},[]),U=D.useCallback(Q=>{Q!==W.current&&(W.current=Q,I(Q))},[]),P=l||R,Z=c||L,B=D.useRef(null),W=D.useRef(null),G=D.useRef(b),se=m!=null,ke=x5(m),ve=x5(o),de=x5(v),ge=D.useCallback(()=>{if(!B.current||!W.current)return;const Q={placement:t,strategy:n,middleware:S};ve.current&&(Q.platform=ve.current),vQ(B.current,W.current,Q).then(Ne=>{const H={...Ne,isPositioned:de.current!==!1};Re.current&&!A4(G.current,H)&&(G.current=H,Hu.flushSync(()=>{y(H)}))})},[S,t,n,ve,de]);L4(()=>{v===!1&&G.current.isPositioned&&(G.current.isPositioned=!1,y(Q=>({...Q,isPositioned:!1})))},[v]);const Re=D.useRef(!1);L4(()=>(Re.current=!0,()=>{Re.current=!1}),[]),L4(()=>{if(P&&(B.current=P),Z&&(W.current=Z),P&&Z){if(ke.current)return ke.current(P,Z,ge);ge()}},[P,Z,ge,ke,se]);const be=D.useMemo(()=>({reference:B,floating:W,setReference:j,setFloating:U}),[j,U]),Ie=D.useMemo(()=>({reference:P,floating:Z}),[P,Z]),ye=D.useMemo(()=>{const Q={position:n,left:0,top:0};if(!Ie.floating)return Q;const Ne=qT(Ie.floating,b.x),H=qT(Ie.floating,b.y);return f?{...Q,transform:"translate("+Ne+"px, "+H+"px)",...WT(Ie.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:Ne,top:H}},[n,f,Ie.floating,b.x,b.y]);return D.useMemo(()=>({...b,update:ge,refs:be,elements:Ie,floatingStyles:ye}),[b,ge,be,Ie,ye])}const bQ=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:i,padding:o}=typeof e=="function"?e(n):e;return i&&t(i)?i.current!=null?ZT({element:i.current,padding:o}).fn(n):{}:i?ZT({element:i,padding:o}).fn(n):{}}}},xQ=(e,t)=>({...cQ(e),options:[e,t]}),CQ=(e,t)=>({...dQ(e),options:[e,t]}),SQ=(e,t)=>({...mQ(e),options:[e,t]}),kQ=(e,t)=>({...fQ(e),options:[e,t]}),EQ=(e,t)=>({...pQ(e),options:[e,t]}),_Q=(e,t)=>({...hQ(e),options:[e,t]}),TQ=(e,t)=>({...bQ(e),options:[e,t]});var RQ="Arrow",GT=D.forwardRef((e,t)=>{const{children:n,width:i=10,height:o=5,...l}=e;return _.jsx(In.svg,{...l,ref:t,width:i,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:_.jsx("polygon",{points:"0,0 30,0 15,10"})})});GT.displayName=RQ;var MQ=GT;function YT(e){const[t,n]=D.useState(void 0);return Oa(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const i=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const l=o[0];let c,f;if("borderBoxSize"in l){const m=l.borderBoxSize,v=Array.isArray(m)?m[0]:m;c=v.inlineSize,f=v.blockSize}else c=e.offsetWidth,f=e.offsetHeight;n({width:c,height:f})});return i.observe(e,{box:"border-box"}),()=>i.unobserve(e)}else n(void 0)},[e]),t}var JT="Popper",[KT,XT]=hp(JT),[sce,QT]=KT(JT),eR="PopperAnchor",tR=D.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:i,...o}=e,l=QT(eR,n),c=D.useRef(null),f=kr(t,c),m=D.useRef(null);return D.useEffect(()=>{const v=m.current;m.current=(i==null?void 0:i.current)||c.current,v!==m.current&&l.onAnchorChange(m.current)}),i?null:_.jsx(In.div,{...o,ref:f})});tR.displayName=eR;var C5="PopperContent",[NQ,OQ]=KT(C5),nR=D.forwardRef((e,t)=>{var Ee,Ze,Je,We,Xe,Et,wt,lt;const{__scopePopper:n,side:i="bottom",sideOffset:o=0,align:l="center",alignOffset:c=0,arrowPadding:f=0,avoidCollisions:m=!0,collisionBoundary:v=[],collisionPadding:b=0,sticky:y="partial",hideWhenDetached:S=!1,updatePositionStrategy:C="optimized",onPlaced:R,...M}=e,L=QT(C5,n),[I,j]=D.useState(null),U=kr(t,vt=>j(vt)),[P,Z]=D.useState(null),B=YT(P),W=(Ee=B==null?void 0:B.width)!=null?Ee:0,G=(Ze=B==null?void 0:B.height)!=null?Ze:0,se=i+(l!=="center"?"-"+l:""),ke=typeof b=="number"?b:{top:0,right:0,bottom:0,left:0,...b},ve=Array.isArray(v)?v:[v],de=ve.length>0,ge={padding:ke,boundary:ve.filter(AQ),altBoundary:de},{refs:Re,floatingStyles:be,placement:Ie,isPositioned:ye,middlewareData:Q}=wQ({strategy:"fixed",placement:se,whileElementsMounted:(...vt)=>uQ(...vt,{animationFrame:C==="always"}),elements:{reference:L.anchor},middleware:[xQ({mainAxis:o+G,alignmentAxis:c}),m&&CQ({mainAxis:!0,crossAxis:!1,limiter:y==="partial"?SQ():void 0,...ge}),m&&kQ({...ge}),EQ({...ge,apply:({elements:vt,rects:zt,availableWidth:Ct,availableHeight:Dn})=>{const{width:Hn,height:Ue}=zt.reference,Mt=vt.floating.style;Mt.setProperty("--radix-popper-available-width",`${Ct}px`),Mt.setProperty("--radix-popper-available-height",`${Dn}px`),Mt.setProperty("--radix-popper-anchor-width",`${Hn}px`),Mt.setProperty("--radix-popper-anchor-height",`${Ue}px`)}}),P&&TQ({element:P,padding:f}),IQ({arrowWidth:W,arrowHeight:G}),S&&_Q({strategy:"referenceHidden",...ge})]}),[Ne,H]=iR(Ie),K=yd(R);Oa(()=>{ye&&(K==null||K())},[ye,K]);const fe=(Je=Q.arrow)==null?void 0:Je.x,$=(We=Q.arrow)==null?void 0:We.y,Fe=((Xe=Q.arrow)==null?void 0:Xe.centerOffset)!==0,[it,Be]=D.useState();return Oa(()=>{I&&Be(window.getComputedStyle(I).zIndex)},[I]),_.jsx("div",{ref:Re.setFloating,"data-radix-popper-content-wrapper":"",style:{...be,transform:ye?be.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:it,"--radix-popper-transform-origin":[(Et=Q.transformOrigin)==null?void 0:Et.x,(wt=Q.transformOrigin)==null?void 0:wt.y].join(" "),...((lt=Q.hide)==null?void 0:lt.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:_.jsx(NQ,{scope:n,placedSide:Ne,onArrowChange:Z,arrowX:fe,arrowY:$,shouldHideArrow:Fe,children:_.jsx(In.div,{"data-side":Ne,"data-align":H,...M,ref:U,style:{...M.style,animation:ye?void 0:"none"}})})})});nR.displayName=C5;var rR="PopperArrow",LQ={top:"bottom",right:"left",bottom:"top",left:"right"},aR=D.forwardRef(function(t,n){const{__scopePopper:i,...o}=t,l=OQ(rR,i),c=LQ[l.placedSide];return _.jsx("span",{ref:l.onArrowChange,style:{position:"absolute",left:l.arrowX,top:l.arrowY,[c]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[l.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[l.placedSide],visibility:l.shouldHideArrow?"hidden":void 0},children:_.jsx(MQ,{...o,ref:n,style:{...o.style,display:"block"}})})});aR.displayName=rR;function AQ(e){return e!==null}var IQ=e=>({name:"transformOrigin",options:e,fn(t){var L,I,j,U,P;const{placement:n,rects:i,middlewareData:o}=t,c=((L=o.arrow)==null?void 0:L.centerOffset)!==0,f=c?0:e.arrowWidth,m=c?0:e.arrowHeight,[v,b]=iR(n),y={start:"0%",center:"50%",end:"100%"}[b],S=((j=(I=o.arrow)==null?void 0:I.x)!=null?j:0)+f/2,C=((P=(U=o.arrow)==null?void 0:U.y)!=null?P:0)+m/2;let R="",M="";return v==="bottom"?(R=c?y:`${S}px`,M=`${-m}px`):v==="top"?(R=c?y:`${S}px`,M=`${i.floating.height+m}px`):v==="right"?(R=`${-m}px`,M=c?y:`${C}px`):v==="left"&&(R=`${i.floating.width+m}px`,M=c?y:`${C}px`),{data:{x:R,y:M}}}});function iR(e){const[t,n="center"]=e.split("-");return[t,n]}var DQ=tR,PQ=nR,zQ=aR,jQ="Portal",S5=D.forwardRef((e,t)=>{var f;const{container:n,...i}=e,[o,l]=D.useState(!1);Oa(()=>l(!0),[]);const c=n||o&&((f=globalThis==null?void 0:globalThis.document)==null?void 0:f.body);return c?mI.createPortal(_.jsx(In.div,{...i,ref:t}),c):null});S5.displayName=jQ;var FQ=J9[" useInsertionEffect ".trim().toString()]||Oa;function k5({prop:e,defaultProp:t,onChange:n=()=>{},caller:i}){const[o,l,c]=UQ({defaultProp:t,onChange:n}),f=e!==void 0,m=f?e:o;{const b=D.useRef(e!==void 0);D.useEffect(()=>{const y=b.current;y!==f&&console.warn(`${i} is changing from ${y?"controlled":"uncontrolled"} to ${f?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),b.current=f},[f,i])}const v=D.useCallback(b=>{var y;if(f){const S=HQ(b)?b(e):b;S!==e&&((y=c.current)==null||y.call(c,S))}else l(b)},[f,e,l,c]);return[m,v]}function UQ({defaultProp:e,onChange:t}){const[n,i]=D.useState(e),o=D.useRef(n),l=D.useRef(t);return FQ(()=>{l.current=t},[t]),D.useEffect(()=>{var c;o.current!==n&&((c=l.current)==null||c.call(l,n),o.current=n)},[n,o]),[n,i,l]}function HQ(e){return typeof e=="function"}function oR(e){const t=D.useRef({value:e,previous:e});return D.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var sR=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),VQ="VisuallyHidden",BQ=D.forwardRef((e,t)=>_.jsx(In.span,{...e,ref:t,style:{...sR,...e.style}}));BQ.displayName=VQ;var $Q=function(e){if(typeof document=="undefined")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},bp=new WeakMap,I4=new WeakMap,D4={},E5=0,lR=function(e){return e&&(e.host||lR(e.parentNode))},ZQ=function(e,t){return t.map(function(n){if(e.contains(n))return n;var i=lR(n);return i&&e.contains(i)?i:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},WQ=function(e,t,n,i){var o=ZQ(t,Array.isArray(e)?e:[e]);D4[n]||(D4[n]=new WeakMap);var l=D4[n],c=[],f=new Set,m=new Set(o),v=function(y){!y||f.has(y)||(f.add(y),v(y.parentNode))};o.forEach(v);var b=function(y){!y||m.has(y)||Array.prototype.forEach.call(y.children,function(S){if(f.has(S))b(S);else try{var C=S.getAttribute(i),R=C!==null&&C!=="false",M=(bp.get(S)||0)+1,L=(l.get(S)||0)+1;bp.set(S,M),l.set(S,L),c.push(S),M===1&&R&&I4.set(S,!0),L===1&&S.setAttribute(n,"true"),R||S.setAttribute(i,"true")}catch(I){console.error("aria-hidden: cannot operate on ",S,I)}})};return b(t),f.clear(),E5++,function(){c.forEach(function(y){var S=bp.get(y)-1,C=l.get(y)-1;bp.set(y,S),l.set(y,C),S||(I4.has(y)||y.removeAttribute(i),I4.delete(y)),C||y.removeAttribute(n)}),E5--,E5||(bp=new WeakMap,bp=new WeakMap,I4=new WeakMap,D4={})}},uR=function(e,t,n){n===void 0&&(n="data-aria-hidden");var i=Array.from(Array.isArray(e)?e:[e]),o=$Q(e);return o?(i.push.apply(i,Array.from(o.querySelectorAll("[aria-live], script"))),WQ(i,o,n,"aria-hidden")):function(){return null}},nl=function(){return nl=Object.assign||function(t){for(var n,i=1,o=arguments.length;i<o;i++){n=arguments[i];for(var l in n)Object.prototype.hasOwnProperty.call(n,l)&&(t[l]=n[l])}return t},nl.apply(this,arguments)};function cR(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)t.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(n[i[o]]=e[i[o]]);return n}function qQ(e,t,n){if(n||arguments.length===2)for(var i=0,o=t.length,l;i<o;i++)(l||!(i in t))&&(l||(l=Array.prototype.slice.call(t,0,i)),l[i]=t[i]);return e.concat(l||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;var P4="right-scroll-bar-position",z4="width-before-scroll-bar",GQ="with-scroll-bars-hidden",YQ="--removed-body-scroll-bar-size";function _5(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function JQ(e,t){var n=D.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(i){var o=n.value;o!==i&&(n.value=i,n.callback(i,o))}}}})[0];return n.callback=t,n.facade}var KQ=typeof window!="undefined"?D.useLayoutEffect:D.useEffect,dR=new WeakMap;function XQ(e,t){var n=JQ(null,function(i){return e.forEach(function(o){return _5(o,i)})});return KQ(function(){var i=dR.get(n);if(i){var o=new Set(i),l=new Set(e),c=n.current;o.forEach(function(f){l.has(f)||_5(f,null)}),l.forEach(function(f){o.has(f)||_5(f,c)})}dR.set(n,e)},[e]),n}function QQ(e){return e}function eee(e,t){t===void 0&&(t=QQ);var n=[],i=!1,o={read:function(){if(i)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(l){var c=t(l,i);return n.push(c),function(){n=n.filter(function(f){return f!==c})}},assignSyncMedium:function(l){for(i=!0;n.length;){var c=n;n=[],c.forEach(l)}n={push:function(f){return l(f)},filter:function(){return n}}},assignMedium:function(l){i=!0;var c=[];if(n.length){var f=n;n=[],f.forEach(l),c=n}var m=function(){var b=c;c=[],b.forEach(l)},v=function(){return Promise.resolve().then(m)};v(),n={push:function(b){c.push(b),v()},filter:function(b){return c=c.filter(b),n}}}};return o}function tee(e){e===void 0&&(e={});var t=eee(null);return t.options=nl({async:!0,ssr:!1},e),t}var fR=function(e){var t=e.sideCar,n=cR(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var i=t.read();if(!i)throw new Error("Sidecar medium not found");return D.createElement(i,nl({},n))};fR.isSideCarExport=!0;function nee(e,t){return e.useMedium(t),fR}var pR=tee(),T5=function(){},j4=D.forwardRef(function(e,t){var n=D.useRef(null),i=D.useState({onScrollCapture:T5,onWheelCapture:T5,onTouchMoveCapture:T5}),o=i[0],l=i[1],c=e.forwardProps,f=e.children,m=e.className,v=e.removeScrollBar,b=e.enabled,y=e.shards,S=e.sideCar,C=e.noRelative,R=e.noIsolation,M=e.inert,L=e.allowPinchZoom,I=e.as,j=I===void 0?"div":I,U=e.gapMode,P=cR(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),Z=S,B=XQ([n,t]),W=nl(nl({},P),o);return D.createElement(D.Fragment,null,b&&D.createElement(Z,{sideCar:pR,removeScrollBar:v,shards:y,noRelative:C,noIsolation:R,inert:M,setCallbacks:l,allowPinchZoom:!!L,lockRef:n,gapMode:U}),c?D.cloneElement(D.Children.only(f),nl(nl({},W),{ref:B})):D.createElement(j,nl({},W,{className:m,ref:B}),f))});j4.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},j4.classNames={fullWidth:z4,zeroRight:P4};var ree=function(){if(typeof __webpack_nonce__!="undefined")return __webpack_nonce__};function aee(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=ree();return t&&e.setAttribute("nonce",t),e}function iee(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function oee(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var see=function(){var e=0,t=null;return{add:function(n){e==0&&(t=aee())&&(iee(t,n),oee(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},lee=function(){var e=see();return function(t,n){D.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},hR=function(){var e=lee(),t=function(n){var i=n.styles,o=n.dynamic;return e(i,o),null};return t},uee={left:0,top:0,right:0,gap:0},R5=function(e){return parseInt(e||"",10)||0},cee=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],i=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[R5(n),R5(i),R5(o)]},dee=function(e){if(e===void 0&&(e="margin"),typeof window=="undefined")return uee;var t=cee(e),n=document.documentElement.clientWidth,i=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,i-n+t[2]-t[0])}},fee=hR(),xp="data-scroll-locked",pee=function(e,t,n,i){var o=e.left,l=e.top,c=e.right,f=e.gap;return n===void 0&&(n="margin"),`
491
+ .`.concat(GQ,` {
492
+ overflow: hidden `).concat(i,`;
493
+ padding-right: `).concat(f,"px ").concat(i,`;
494
+ }
495
+ body[`).concat(xp,`] {
496
+ overflow: hidden `).concat(i,`;
497
+ overscroll-behavior: contain;
498
+ `).concat([t&&"position: relative ".concat(i,";"),n==="margin"&&`
499
+ padding-left: `.concat(o,`px;
500
+ padding-top: `).concat(l,`px;
501
+ padding-right: `).concat(c,`px;
502
+ margin-left:0;
503
+ margin-top:0;
504
+ margin-right: `).concat(f,"px ").concat(i,`;
505
+ `),n==="padding"&&"padding-right: ".concat(f,"px ").concat(i,";")].filter(Boolean).join(""),`
506
+ }
507
+
508
+ .`).concat(P4,` {
509
+ right: `).concat(f,"px ").concat(i,`;
510
+ }
511
+
512
+ .`).concat(z4,` {
513
+ margin-right: `).concat(f,"px ").concat(i,`;
514
+ }
515
+
516
+ .`).concat(P4," .").concat(P4,` {
517
+ right: 0 `).concat(i,`;
518
+ }
519
+
520
+ .`).concat(z4," .").concat(z4,` {
521
+ margin-right: 0 `).concat(i,`;
522
+ }
523
+
524
+ body[`).concat(xp,`] {
525
+ `).concat(YQ,": ").concat(f,`px;
526
+ }
527
+ `)},mR=function(){var e=parseInt(document.body.getAttribute(xp)||"0",10);return isFinite(e)?e:0},hee=function(){D.useEffect(function(){return document.body.setAttribute(xp,(mR()+1).toString()),function(){var e=mR()-1;e<=0?document.body.removeAttribute(xp):document.body.setAttribute(xp,e.toString())}},[])},mee=function(e){var t=e.noRelative,n=e.noImportant,i=e.gapMode,o=i===void 0?"margin":i;hee();var l=D.useMemo(function(){return dee(o)},[o]);return D.createElement(fee,{styles:pee(l,!t,o,n?"":"!important")})},M5=!1;if(typeof window!="undefined")try{var F4=Object.defineProperty({},"passive",{get:function(){return M5=!0,!0}});window.addEventListener("test",F4,F4),window.removeEventListener("test",F4,F4)}catch(e){M5=!1}var Cp=M5?{passive:!1}:!1,vee=function(e){return e.tagName==="TEXTAREA"},vR=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!vee(e)&&n[t]==="visible")},gee=function(e){return vR(e,"overflowY")},yee=function(e){return vR(e,"overflowX")},gR=function(e,t){var n=t.ownerDocument,i=t;do{typeof ShadowRoot!="undefined"&&i instanceof ShadowRoot&&(i=i.host);var o=yR(e,i);if(o){var l=wR(e,i),c=l[1],f=l[2];if(c>f)return!0}i=i.parentNode}while(i&&i!==n.body);return!1},wee=function(e){var t=e.scrollTop,n=e.scrollHeight,i=e.clientHeight;return[t,n,i]},bee=function(e){var t=e.scrollLeft,n=e.scrollWidth,i=e.clientWidth;return[t,n,i]},yR=function(e,t){return e==="v"?gee(t):yee(t)},wR=function(e,t){return e==="v"?wee(t):bee(t)},xee=function(e,t){return e==="h"&&t==="rtl"?-1:1},Cee=function(e,t,n,i,o){var l=xee(e,window.getComputedStyle(t).direction),c=l*i,f=n.target,m=t.contains(f),v=!1,b=c>0,y=0,S=0;do{if(!f)break;var C=wR(e,f),R=C[0],M=C[1],L=C[2],I=M-L-l*R;(R||I)&&yR(e,f)&&(y+=I,S+=R);var j=f.parentNode;f=j&&j.nodeType===Node.DOCUMENT_FRAGMENT_NODE?j.host:j}while(!m&&f!==document.body||m&&(t.contains(f)||t===f));return(b&&Math.abs(y)<1||!b&&Math.abs(S)<1)&&(v=!0),v},U4=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},bR=function(e){return[e.deltaX,e.deltaY]},xR=function(e){return e&&"current"in e?e.current:e},See=function(e,t){return e[0]===t[0]&&e[1]===t[1]},kee=function(e){return`
528
+ .block-interactivity-`.concat(e,` {pointer-events: none;}
529
+ .allow-interactivity-`).concat(e,` {pointer-events: all;}
530
+ `)},Eee=0,Sp=[];function _ee(e){var t=D.useRef([]),n=D.useRef([0,0]),i=D.useRef(),o=D.useState(Eee++)[0],l=D.useState(hR)[0],c=D.useRef(e);D.useEffect(function(){c.current=e},[e]),D.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var M=qQ([e.lockRef.current],(e.shards||[]).map(xR),!0).filter(Boolean);return M.forEach(function(L){return L.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),M.forEach(function(L){return L.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var f=D.useCallback(function(M,L){if("touches"in M&&M.touches.length===2||M.type==="wheel"&&M.ctrlKey)return!c.current.allowPinchZoom;var I=U4(M),j=n.current,U="deltaX"in M?M.deltaX:j[0]-I[0],P="deltaY"in M?M.deltaY:j[1]-I[1],Z,B=M.target,W=Math.abs(U)>Math.abs(P)?"h":"v";if("touches"in M&&W==="h"&&B.type==="range")return!1;var G=window.getSelection(),se=G&&G.anchorNode,ke=se?se===B||se.contains(B):!1;if(ke)return!1;var ve=gR(W,B);if(!ve)return!0;if(ve?Z=W:(Z=W==="v"?"h":"v",ve=gR(W,B)),!ve)return!1;if(!i.current&&"changedTouches"in M&&(U||P)&&(i.current=Z),!Z)return!0;var de=i.current||Z;return Cee(de,L,M,de==="h"?U:P)},[]),m=D.useCallback(function(M){var L=M;if(!(!Sp.length||Sp[Sp.length-1]!==l)){var I="deltaY"in L?bR(L):U4(L),j=t.current.filter(function(Z){return Z.name===L.type&&(Z.target===L.target||L.target===Z.shadowParent)&&See(Z.delta,I)})[0];if(j&&j.should){L.cancelable&&L.preventDefault();return}if(!j){var U=(c.current.shards||[]).map(xR).filter(Boolean).filter(function(Z){return Z.contains(L.target)}),P=U.length>0?f(L,U[0]):!c.current.noIsolation;P&&L.cancelable&&L.preventDefault()}}},[]),v=D.useCallback(function(M,L,I,j){var U={name:M,delta:L,target:I,should:j,shadowParent:Tee(I)};t.current.push(U),setTimeout(function(){t.current=t.current.filter(function(P){return P!==U})},1)},[]),b=D.useCallback(function(M){n.current=U4(M),i.current=void 0},[]),y=D.useCallback(function(M){v(M.type,bR(M),M.target,f(M,e.lockRef.current))},[]),S=D.useCallback(function(M){v(M.type,U4(M),M.target,f(M,e.lockRef.current))},[]);D.useEffect(function(){return Sp.push(l),e.setCallbacks({onScrollCapture:y,onWheelCapture:y,onTouchMoveCapture:S}),document.addEventListener("wheel",m,Cp),document.addEventListener("touchmove",m,Cp),document.addEventListener("touchstart",b,Cp),function(){Sp=Sp.filter(function(M){return M!==l}),document.removeEventListener("wheel",m,Cp),document.removeEventListener("touchmove",m,Cp),document.removeEventListener("touchstart",b,Cp)}},[]);var C=e.removeScrollBar,R=e.inert;return D.createElement(D.Fragment,null,R?D.createElement(l,{styles:kee(o)}):null,C?D.createElement(mee,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function Tee(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const Ree=nee(pR,_ee);var N5=D.forwardRef(function(e,t){return D.createElement(j4,nl({},e,{ref:t,sideCar:Ree}))});N5.classNames=j4.classNames;var Mee=[" ","Enter","ArrowUp","ArrowDown"],Nee=[" ","Enter"],H4="Select",[O5,V4,Oee]=XK(H4),[kp]=hp(H4,[Oee,XT]),L5=XT(),[lce,tc]=kp(H4),[uce,Lee]=kp(H4),CR="SelectTrigger",SR=D.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:i=!1,...o}=e,l=L5(n),c=tc(CR,n),f=c.disabled||i,m=kr(t,c.onTriggerChange),v=V4(n),b=D.useRef("touch"),[y,S,C]=ZR(M=>{const L=v().filter(U=>!U.disabled),I=L.find(U=>U.value===c.value),j=WR(L,M,I);j!==void 0&&c.onValueChange(j.value)}),R=M=>{f||(c.onOpenChange(!0),C()),M&&(c.triggerPointerDownPosRef.current={x:Math.round(M.pageX),y:Math.round(M.pageY)})};return _.jsx(DQ,{asChild:!0,...l,children:_.jsx(In.button,{type:"button",role:"combobox","aria-controls":c.contentId,"aria-expanded":c.open,"aria-required":c.required,"aria-autocomplete":"none",dir:c.dir,"data-state":c.open?"open":"closed",disabled:f,"data-disabled":f?"":void 0,"data-placeholder":$R(c.value)?"":void 0,...o,ref:m,onClick:Qn(o.onClick,M=>{M.currentTarget.focus(),b.current!=="mouse"&&R(M)}),onPointerDown:Qn(o.onPointerDown,M=>{b.current=M.pointerType;const L=M.target;L.hasPointerCapture(M.pointerId)&&L.releasePointerCapture(M.pointerId),M.button===0&&M.ctrlKey===!1&&M.pointerType==="mouse"&&(R(M),M.preventDefault())}),onKeyDown:Qn(o.onKeyDown,M=>{const L=y.current!=="";!(M.ctrlKey||M.altKey||M.metaKey)&&M.key.length===1&&S(M.key),!(L&&M.key===" ")&&Mee.includes(M.key)&&(R(),M.preventDefault())})})})});SR.displayName=CR;var kR="SelectValue",Aee=D.forwardRef((e,t)=>{const{__scopeSelect:n,className:i,style:o,children:l,placeholder:c="",...f}=e,m=tc(kR,n),{onValueNodeHasChildrenChange:v}=m,b=l!==void 0,y=kr(t,m.onValueNodeChange);return Oa(()=>{v(b)},[v,b]),_.jsx(In.span,{...f,ref:y,style:{pointerEvents:"none"},children:$R(m.value)?_.jsx(_.Fragment,{children:c}):l})});Aee.displayName=kR;var Iee="SelectIcon",ER=D.forwardRef((e,t)=>{const{__scopeSelect:n,children:i,...o}=e;return _.jsx(In.span,{"aria-hidden":!0,...o,ref:t,children:i||"▼"})});ER.displayName=Iee;var Dee="SelectPortal",_R=e=>_.jsx(S5,{asChild:!0,...e});_R.displayName=Dee;var bd="SelectContent",TR=D.forwardRef((e,t)=>{const n=tc(bd,e.__scopeSelect),[i,o]=D.useState();if(Oa(()=>{o(new DocumentFragment)},[]),!n.open){const l=i;return l?Hu.createPortal(_.jsx(RR,{scope:e.__scopeSelect,children:_.jsx(O5.Slot,{scope:e.__scopeSelect,children:_.jsx("div",{children:e.children})})}),l):null}return _.jsx(MR,{...e,ref:t})});TR.displayName=bd;var vs=10,[RR,nc]=kp(bd),Pee="SelectContentImpl",zee=Jh("SelectContent.RemoveScroll"),MR=D.forwardRef((e,t)=>{const{__scopeSelect:n,position:i="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:l,onPointerDownOutside:c,side:f,sideOffset:m,align:v,alignOffset:b,arrowPadding:y,collisionBoundary:S,collisionPadding:C,sticky:R,hideWhenDetached:M,avoidCollisions:L,...I}=e,j=tc(bd,n),[U,P]=D.useState(null),[Z,B]=D.useState(null),W=kr(t,Ee=>P(Ee)),[G,se]=D.useState(null),[ke,ve]=D.useState(null),de=V4(n),[ge,Re]=D.useState(!1),be=D.useRef(!1);D.useEffect(()=>{if(U)return uR(U)},[U]),wT();const Ie=D.useCallback(Ee=>{const[Ze,...Je]=de().map(Et=>Et.ref.current),[We]=Je.slice(-1),Xe=document.activeElement;for(const Et of Ee)if(Et===Xe||(Et==null||Et.scrollIntoView({block:"nearest"}),Et===Ze&&Z&&(Z.scrollTop=0),Et===We&&Z&&(Z.scrollTop=Z.scrollHeight),Et==null||Et.focus(),document.activeElement!==Xe))return},[de,Z]),ye=D.useCallback(()=>Ie([G,U]),[Ie,G,U]);D.useEffect(()=>{ge&&ye()},[ge,ye]);const{onOpenChange:Q,triggerPointerDownPosRef:Ne}=j;D.useEffect(()=>{if(U){let Ee={x:0,y:0};const Ze=We=>{var Xe,Et,wt,lt;Ee={x:Math.abs(Math.round(We.pageX)-((Et=(Xe=Ne.current)==null?void 0:Xe.x)!=null?Et:0)),y:Math.abs(Math.round(We.pageY)-((lt=(wt=Ne.current)==null?void 0:wt.y)!=null?lt:0))}},Je=We=>{Ee.x<=10&&Ee.y<=10?We.preventDefault():U.contains(We.target)||Q(!1),document.removeEventListener("pointermove",Ze),Ne.current=null};return Ne.current!==null&&(document.addEventListener("pointermove",Ze),document.addEventListener("pointerup",Je,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",Ze),document.removeEventListener("pointerup",Je,{capture:!0})}}},[U,Q,Ne]),D.useEffect(()=>{const Ee=()=>Q(!1);return window.addEventListener("blur",Ee),window.addEventListener("resize",Ee),()=>{window.removeEventListener("blur",Ee),window.removeEventListener("resize",Ee)}},[Q]);const[H,K]=ZR(Ee=>{const Ze=de().filter(Xe=>!Xe.disabled),Je=Ze.find(Xe=>Xe.ref.current===document.activeElement),We=WR(Ze,Ee,Je);We&&setTimeout(()=>We.ref.current.focus())}),fe=D.useCallback((Ee,Ze,Je)=>{const We=!be.current&&!Je;(j.value!==void 0&&j.value===Ze||We)&&(se(Ee),We&&(be.current=!0))},[j.value]),$=D.useCallback(()=>U==null?void 0:U.focus(),[U]),Fe=D.useCallback((Ee,Ze,Je)=>{const We=!be.current&&!Je;(j.value!==void 0&&j.value===Ze||We)&&ve(Ee)},[j.value]),it=i==="popper"?A5:NR,Be=it===A5?{side:f,sideOffset:m,align:v,alignOffset:b,arrowPadding:y,collisionBoundary:S,collisionPadding:C,sticky:R,hideWhenDetached:M,avoidCollisions:L}:{};return _.jsx(RR,{scope:n,content:U,viewport:Z,onViewportChange:B,itemRefCallback:fe,selectedItem:G,onItemLeave:$,itemTextRefCallback:Fe,focusSelectedItem:ye,selectedItemText:ke,position:i,isPositioned:ge,searchRef:H,children:_.jsx(N5,{as:zee,allowPinchZoom:!0,children:_.jsx(c5,{asChild:!0,trapped:j.open,onMountAutoFocus:Ee=>{Ee.preventDefault()},onUnmountAutoFocus:Qn(o,Ee=>{var Ze;(Ze=j.trigger)==null||Ze.focus({preventScroll:!0}),Ee.preventDefault()}),children:_.jsx(o5,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:l,onPointerDownOutside:c,onFocusOutside:Ee=>Ee.preventDefault(),onDismiss:()=>j.onOpenChange(!1),children:_.jsx(it,{role:"listbox",id:j.contentId,"data-state":j.open?"open":"closed",dir:j.dir,onContextMenu:Ee=>Ee.preventDefault(),...I,...Be,onPlaced:()=>Re(!0),ref:W,style:{display:"flex",flexDirection:"column",outline:"none",...I.style},onKeyDown:Qn(I.onKeyDown,Ee=>{const Ze=Ee.ctrlKey||Ee.altKey||Ee.metaKey;if(Ee.key==="Tab"&&Ee.preventDefault(),!Ze&&Ee.key.length===1&&K(Ee.key),["ArrowUp","ArrowDown","Home","End"].includes(Ee.key)){let We=de().filter(Xe=>!Xe.disabled).map(Xe=>Xe.ref.current);if(["ArrowUp","End"].includes(Ee.key)&&(We=We.slice().reverse()),["ArrowUp","ArrowDown"].includes(Ee.key)){const Xe=Ee.target,Et=We.indexOf(Xe);We=We.slice(Et+1)}setTimeout(()=>Ie(We)),Ee.preventDefault()}})})})})})})});MR.displayName=Pee;var jee="SelectItemAlignedPosition",NR=D.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:i,...o}=e,l=tc(bd,n),c=nc(bd,n),[f,m]=D.useState(null),[v,b]=D.useState(null),y=kr(t,W=>b(W)),S=V4(n),C=D.useRef(!1),R=D.useRef(!0),{viewport:M,selectedItem:L,selectedItemText:I,focusSelectedItem:j}=c,U=D.useCallback(()=>{if(l.trigger&&l.valueNode&&f&&v&&M&&L&&I){const W=l.trigger.getBoundingClientRect(),G=v.getBoundingClientRect(),se=l.valueNode.getBoundingClientRect(),ke=I.getBoundingClientRect();if(l.dir!=="rtl"){const Xe=ke.left-G.left,Et=se.left-Xe,wt=W.left-Et,lt=W.width+wt,vt=Math.max(lt,G.width),zt=window.innerWidth-vs,Ct=hT(Et,[vs,Math.max(vs,zt-vt)]);f.style.minWidth=lt+"px",f.style.left=Ct+"px"}else{const Xe=G.right-ke.right,Et=window.innerWidth-se.right-Xe,wt=window.innerWidth-W.right-Et,lt=W.width+wt,vt=Math.max(lt,G.width),zt=window.innerWidth-vs,Ct=hT(Et,[vs,Math.max(vs,zt-vt)]);f.style.minWidth=lt+"px",f.style.right=Ct+"px"}const ve=S(),de=window.innerHeight-vs*2,ge=M.scrollHeight,Re=window.getComputedStyle(v),be=parseInt(Re.borderTopWidth,10),Ie=parseInt(Re.paddingTop,10),ye=parseInt(Re.borderBottomWidth,10),Q=parseInt(Re.paddingBottom,10),Ne=be+Ie+ge+Q+ye,H=Math.min(L.offsetHeight*5,Ne),K=window.getComputedStyle(M),fe=parseInt(K.paddingTop,10),$=parseInt(K.paddingBottom,10),Fe=W.top+W.height/2-vs,it=de-Fe,Be=L.offsetHeight/2,Ee=L.offsetTop+Be,Ze=be+Ie+Ee,Je=Ne-Ze;if(Ze<=Fe){const Xe=ve.length>0&&L===ve[ve.length-1].ref.current;f.style.bottom="0px";const Et=v.clientHeight-M.offsetTop-M.offsetHeight,wt=Math.max(it,Be+(Xe?$:0)+Et+ye),lt=Ze+wt;f.style.height=lt+"px"}else{const Xe=ve.length>0&&L===ve[0].ref.current;f.style.top="0px";const wt=Math.max(Fe,be+M.offsetTop+(Xe?fe:0)+Be)+Je;f.style.height=wt+"px",M.scrollTop=Ze-Fe+M.offsetTop}f.style.margin=`${vs}px 0`,f.style.minHeight=H+"px",f.style.maxHeight=de+"px",i==null||i(),requestAnimationFrame(()=>C.current=!0)}},[S,l.trigger,l.valueNode,f,v,M,L,I,l.dir,i]);Oa(()=>U(),[U]);const[P,Z]=D.useState();Oa(()=>{v&&Z(window.getComputedStyle(v).zIndex)},[v]);const B=D.useCallback(W=>{W&&R.current===!0&&(U(),j==null||j(),R.current=!1)},[U,j]);return _.jsx(Uee,{scope:n,contentWrapper:f,shouldExpandOnScrollRef:C,onScrollButtonChange:B,children:_.jsx("div",{ref:m,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:P},children:_.jsx(In.div,{...o,ref:y,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}})})})});NR.displayName=jee;var Fee="SelectPopperPosition",A5=D.forwardRef((e,t)=>{const{__scopeSelect:n,align:i="start",collisionPadding:o=vs,...l}=e,c=L5(n);return _.jsx(PQ,{...c,...l,ref:t,align:i,collisionPadding:o,style:{boxSizing:"border-box",...l.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});A5.displayName=Fee;var[Uee,I5]=kp(bd,{}),D5="SelectViewport",OR=D.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:i,...o}=e,l=nc(D5,n),c=I5(D5,n),f=kr(t,l.onViewportChange),m=D.useRef(0);return _.jsxs(_.Fragment,{children:[_.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:i}),_.jsx(O5.Slot,{scope:n,children:_.jsx(In.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:f,style:{position:"relative",flex:1,overflow:"hidden auto",...o.style},onScroll:Qn(o.onScroll,v=>{const b=v.currentTarget,{contentWrapper:y,shouldExpandOnScrollRef:S}=c;if(S!=null&&S.current&&y){const C=Math.abs(m.current-b.scrollTop);if(C>0){const R=window.innerHeight-vs*2,M=parseFloat(y.style.minHeight),L=parseFloat(y.style.height),I=Math.max(M,L);if(I<R){const j=I+C,U=Math.min(R,j),P=j-U;y.style.height=U+"px",y.style.bottom==="0px"&&(b.scrollTop=P>0?P:0,y.style.justifyContent="flex-end")}}}m.current=b.scrollTop})})})]})});OR.displayName=D5;var LR="SelectGroup",[Hee,Vee]=kp(LR),Bee=D.forwardRef((e,t)=>{const{__scopeSelect:n,...i}=e,o=mp();return _.jsx(Hee,{scope:n,id:o,children:_.jsx(In.div,{role:"group","aria-labelledby":o,...i,ref:t})})});Bee.displayName=LR;var AR="SelectLabel",IR=D.forwardRef((e,t)=>{const{__scopeSelect:n,...i}=e,o=Vee(AR,n);return _.jsx(In.div,{id:o.id,...i,ref:t})});IR.displayName=AR;var B4="SelectItem",[$ee,DR]=kp(B4),PR=D.forwardRef((e,t)=>{const{__scopeSelect:n,value:i,disabled:o=!1,textValue:l,...c}=e,f=tc(B4,n),m=nc(B4,n),v=f.value===i,[b,y]=D.useState(l!=null?l:""),[S,C]=D.useState(!1),R=kr(t,j=>{var U;return(U=m.itemRefCallback)==null?void 0:U.call(m,j,i,o)}),M=mp(),L=D.useRef("touch"),I=()=>{o||(f.onValueChange(i),f.onOpenChange(!1))};if(i==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return _.jsx($ee,{scope:n,value:i,disabled:o,textId:M,isSelected:v,onItemTextChange:D.useCallback(j=>{y(U=>{var P;return U||((P=j==null?void 0:j.textContent)!=null?P:"").trim()})},[]),children:_.jsx(O5.ItemSlot,{scope:n,value:i,disabled:o,textValue:b,children:_.jsx(In.div,{role:"option","aria-labelledby":M,"data-highlighted":S?"":void 0,"aria-selected":v&&S,"data-state":v?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1,...c,ref:R,onFocus:Qn(c.onFocus,()=>C(!0)),onBlur:Qn(c.onBlur,()=>C(!1)),onClick:Qn(c.onClick,()=>{L.current!=="mouse"&&I()}),onPointerUp:Qn(c.onPointerUp,()=>{L.current==="mouse"&&I()}),onPointerDown:Qn(c.onPointerDown,j=>{L.current=j.pointerType}),onPointerMove:Qn(c.onPointerMove,j=>{var U;L.current=j.pointerType,o?(U=m.onItemLeave)==null||U.call(m):L.current==="mouse"&&j.currentTarget.focus({preventScroll:!0})}),onPointerLeave:Qn(c.onPointerLeave,j=>{var U;j.currentTarget===document.activeElement&&((U=m.onItemLeave)==null||U.call(m))}),onKeyDown:Qn(c.onKeyDown,j=>{var P;((P=m.searchRef)==null?void 0:P.current)!==""&&j.key===" "||(Nee.includes(j.key)&&I(),j.key===" "&&j.preventDefault())})})})})});PR.displayName=B4;var em="SelectItemText",zR=D.forwardRef((e,t)=>{const{__scopeSelect:n,className:i,style:o,...l}=e,c=tc(em,n),f=nc(em,n),m=DR(em,n),v=Lee(em,n),[b,y]=D.useState(null),S=kr(t,I=>y(I),m.onItemTextChange,I=>{var j;return(j=f.itemTextRefCallback)==null?void 0:j.call(f,I,m.value,m.disabled)}),C=b==null?void 0:b.textContent,R=D.useMemo(()=>_.jsx("option",{value:m.value,disabled:m.disabled,children:C},m.value),[m.disabled,m.value,C]),{onNativeOptionAdd:M,onNativeOptionRemove:L}=v;return Oa(()=>(M(R),()=>L(R)),[M,L,R]),_.jsxs(_.Fragment,{children:[_.jsx(In.span,{id:m.textId,...l,ref:S}),m.isSelected&&c.valueNode&&!c.valueNodeHasChildren?Hu.createPortal(l.children,c.valueNode):null]})});zR.displayName=em;var jR="SelectItemIndicator",FR=D.forwardRef((e,t)=>{const{__scopeSelect:n,...i}=e;return DR(jR,n).isSelected?_.jsx(In.span,{"aria-hidden":!0,...i,ref:t}):null});FR.displayName=jR;var P5="SelectScrollUpButton",UR=D.forwardRef((e,t)=>{const n=nc(P5,e.__scopeSelect),i=I5(P5,e.__scopeSelect),[o,l]=D.useState(!1),c=kr(t,i.onScrollButtonChange);return Oa(()=>{if(n.viewport&&n.isPositioned){let f=function(){const v=m.scrollTop>0;l(v)};const m=n.viewport;return f(),m.addEventListener("scroll",f),()=>m.removeEventListener("scroll",f)}},[n.viewport,n.isPositioned]),o?_.jsx(VR,{...e,ref:c,onAutoScroll:()=>{const{viewport:f,selectedItem:m}=n;f&&m&&(f.scrollTop=f.scrollTop-m.offsetHeight)}}):null});UR.displayName=P5;var z5="SelectScrollDownButton",HR=D.forwardRef((e,t)=>{const n=nc(z5,e.__scopeSelect),i=I5(z5,e.__scopeSelect),[o,l]=D.useState(!1),c=kr(t,i.onScrollButtonChange);return Oa(()=>{if(n.viewport&&n.isPositioned){let f=function(){const v=m.scrollHeight-m.clientHeight,b=Math.ceil(m.scrollTop)<v;l(b)};const m=n.viewport;return f(),m.addEventListener("scroll",f),()=>m.removeEventListener("scroll",f)}},[n.viewport,n.isPositioned]),o?_.jsx(VR,{...e,ref:c,onAutoScroll:()=>{const{viewport:f,selectedItem:m}=n;f&&m&&(f.scrollTop=f.scrollTop+m.offsetHeight)}}):null});HR.displayName=z5;var VR=D.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:i,...o}=e,l=nc("SelectScrollButton",n),c=D.useRef(null),f=V4(n),m=D.useCallback(()=>{c.current!==null&&(window.clearInterval(c.current),c.current=null)},[]);return D.useEffect(()=>()=>m(),[m]),Oa(()=>{var b;const v=f().find(y=>y.ref.current===document.activeElement);(b=v==null?void 0:v.ref.current)==null||b.scrollIntoView({block:"nearest"})},[f]),_.jsx(In.div,{"aria-hidden":!0,...o,ref:t,style:{flexShrink:0,...o.style},onPointerDown:Qn(o.onPointerDown,()=>{c.current===null&&(c.current=window.setInterval(i,50))}),onPointerMove:Qn(o.onPointerMove,()=>{var v;(v=l.onItemLeave)==null||v.call(l),c.current===null&&(c.current=window.setInterval(i,50))}),onPointerLeave:Qn(o.onPointerLeave,()=>{m()})})}),Zee="SelectSeparator",BR=D.forwardRef((e,t)=>{const{__scopeSelect:n,...i}=e;return _.jsx(In.div,{"aria-hidden":!0,...i,ref:t})});BR.displayName=Zee;var j5="SelectArrow",Wee=D.forwardRef((e,t)=>{const{__scopeSelect:n,...i}=e,o=L5(n),l=tc(j5,n),c=nc(j5,n);return l.open&&c.position==="popper"?_.jsx(zQ,{...o,...i,ref:t}):null});Wee.displayName=j5;var qee="SelectBubbleInput",Gee=D.forwardRef(({__scopeSelect:e,value:t,...n},i)=>{const o=D.useRef(null),l=kr(i,o),c=oR(t);return D.useEffect(()=>{const f=o.current;if(!f)return;const m=window.HTMLSelectElement.prototype,b=Object.getOwnPropertyDescriptor(m,"value").set;if(c!==t&&b){const y=new Event("change",{bubbles:!0});b.call(f,t),f.dispatchEvent(y)}},[c,t]),_.jsx(In.select,{...n,style:{...sR,...n.style},ref:l,defaultValue:t})});Gee.displayName=qee;function $R(e){return e===""||e===void 0}function ZR(e){const t=yd(e),n=D.useRef(""),i=D.useRef(0),o=D.useCallback(c=>{const f=n.current+c;t(f),function m(v){n.current=v,window.clearTimeout(i.current),v!==""&&(i.current=window.setTimeout(()=>m(""),1e3))}(f)},[t]),l=D.useCallback(()=>{n.current="",window.clearTimeout(i.current)},[]);return D.useEffect(()=>()=>window.clearTimeout(i.current),[]),[n,o,l]}function WR(e,t,n){const o=t.length>1&&Array.from(t).every(v=>v===t[0])?t[0]:t,l=n?e.indexOf(n):-1;let c=Yee(e,Math.max(l,0));o.length===1&&(c=c.filter(v=>v!==n));const m=c.find(v=>v.textValue.toLowerCase().startsWith(o.toLowerCase()));return m!==n?m:void 0}function Yee(e,t){return e.map((n,i)=>e[(t+i)%e.length])}var qR=SR,Jee=ER,Kee=_R,GR=TR,Xee=OR,YR=IR,JR=PR,Qee=zR,ete=FR,KR=UR,XR=HR,QR=BR;const tte=D.forwardRef(({className:e,children:t,...n},i)=>_.jsxs(qR,{ref:i,className:xt("flex h-9 w-full items-center justify-between whitespace-nowrap rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background data-[placeholder]:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",e),...n,children:[t,_.jsx(Jee,{asChild:!0,children:_.jsx(pT,{className:"h-4 w-4 opacity-50"})})]}));tte.displayName=qR.displayName;const eM=D.forwardRef(({className:e,...t},n)=>_.jsx(KR,{ref:n,className:xt("flex cursor-default items-center justify-center py-1",e),...t,children:_.jsx(HK,{className:"h-4 w-4"})}));eM.displayName=KR.displayName;const tM=D.forwardRef(({className:e,...t},n)=>_.jsx(XR,{ref:n,className:xt("flex cursor-default items-center justify-center py-1",e),...t,children:_.jsx(pT,{className:"h-4 w-4"})}));tM.displayName=XR.displayName;const nte=D.forwardRef(({className:e,children:t,position:n="popper",...i},o)=>_.jsx(Kee,{children:_.jsxs(GR,{ref:o,className:xt("relative z-50 max-h-[--radix-select-content-available-height] min-w-[8rem] overflow-y-auto overflow-x-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-select-content-transform-origin]",n==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:n,...i,children:[_.jsx(eM,{}),_.jsx(Xee,{className:xt("p-1",n==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t}),_.jsx(tM,{})]})}));nte.displayName=GR.displayName;const rte=D.forwardRef(({className:e,...t},n)=>_.jsx(YR,{ref:n,className:xt("px-2 py-1.5 text-sm font-semibold",e),...t}));rte.displayName=YR.displayName;const ate=D.forwardRef(({className:e,children:t,...n},i)=>_.jsxs(JR,{ref:i,className:xt("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...n,children:[_.jsx("span",{className:"absolute right-2 flex h-3.5 w-3.5 items-center justify-center",children:_.jsx(ete,{children:_.jsx(fT,{className:"h-4 w-4"})})}),_.jsx(Qee,{children:t})]}));ate.displayName=JR.displayName;const ite=D.forwardRef(({className:e,...t},n)=>_.jsx(QR,{ref:n,className:xt("-mx-1 my-1 h-px bg-muted",e),...t}));ite.displayName=QR.displayName;const nM=D.forwardRef(({className:e,...t},n)=>_.jsx("textarea",{className:xt("flex min-h-[60px] w-full rounded-md border border-input bg-transparent px-3 py-2 text-base shadow-sm placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),ref:n,...t}));nM.displayName="Textarea";const ote=({className:e,...t})=>_.jsx("form",{className:xt("w-full overflow-hidden rounded-[10px] border bg-background shadow-xs",e),...t}),ste=({onChange:e,className:t,placeholder:n="What would you like to know?",minHeight:i=50,maxHeight:o=164,disableAutoResize:l=!1,resizeOnNewLinesOnly:c=!1,...f})=>{const m=v=>{if(v.key==="Enter"){if(v.nativeEvent.isComposing||v.shiftKey)return;v.preventDefault();const b=v.currentTarget.form;b&&b.requestSubmit()}};return _.jsx(nM,{className:xt("w-full resize-none rounded-none border-none shadow-none outline-hidden ring-0",l||c?"field-sizing-fixed":"field-sizing-content max-h-[6lh]","bg-transparent dark:bg-transparent","focus-visible:ring-0",t),name:"message",onChange:v=>{e==null||e(v)},onKeyDown:m,placeholder:n,...f})},lte=({className:e,...t})=>_.jsx("div",{className:xt("flex items-center justify-between p-1",e),...t}),ute=({className:e,...t})=>_.jsx("div",{className:xt("flex items-center gap-1","[&_button:first-child]:rounded-bl-xl",e),...t}),cte=e=>{const t=VK,n=$K,i=BK;return e===void 0?_.jsx(i,{className:"size-4"}):{submitted:_.jsx(t,{className:"size-4 animate-spin"}),streaming:_.jsx(wK,{}),error:_.jsx(n,{className:"size-4"}),ready:_.jsx(i,{className:"size-4"})}[e]||_.jsx(i,{className:"size-4"})},dte=({className:e,variant:t="default",size:n="icon",status:i,children:o,...l})=>{let c=cte(i);return _.jsx(gi,{className:xt("gap-1.5 rounded-full",e),size:n,type:"submit",variant:t,...l,children:o!=null?o:c})},fte=({size:e=16})=>_.jsx("svg",{height:e,strokeLinejoin:"round",style:{color:"currentcolor"},viewBox:"0 0 16 16",width:e,children:_.jsx("path",{clipRule:"evenodd",d:"M14.5 13.5V6.5V5.41421C14.5 5.149 14.3946 4.89464 14.2071 4.70711L9.79289 0.292893C9.60536 0.105357 9.351 0 9.08579 0H8H3H1.5V1.5V13.5C1.5 14.8807 2.61929 16 4 16H12C13.3807 16 14.5 14.8807 14.5 13.5ZM13 13.5V6.5H9.5H8V5V1.5H3V13.5C3 14.0523 3.44772 14.5 4 14.5H12C12.5523 14.5 13 14.0523 13 13.5ZM9.5 5V2.12132L12.3787 5H9.5ZM5.13 5.00062H4.505V6.25062H5.13H6H6.625V5.00062H6H5.13ZM4.505 8H5.13H11H11.625V9.25H11H5.13H4.505V8ZM5.13 11H4.505V12.25H5.13H11H11.625V11H11H5.13Z",fill:"currentColor",fillRule:"evenodd"})}),pte=({size:e=16})=>_.jsxs("svg",{height:e,strokeLinejoin:"round",style:{color:"currentcolor"},viewBox:"0 0 16 16",width:e,children:[_.jsxs("g",{clipPath:"url(#clip0_2393_1490)",children:[_.jsx("path",{d:"M8 0V4",stroke:"currentColor",strokeWidth:"1.5"}),_.jsx("path",{d:"M8 16V12",opacity:"0.5",stroke:"currentColor",strokeWidth:"1.5"}),_.jsx("path",{d:"M3.29773 1.52783L5.64887 4.7639",opacity:"0.9",stroke:"currentColor",strokeWidth:"1.5"}),_.jsx("path",{d:"M12.7023 1.52783L10.3511 4.7639",opacity:"0.1",stroke:"currentColor",strokeWidth:"1.5"}),_.jsx("path",{d:"M12.7023 14.472L10.3511 11.236",opacity:"0.4",stroke:"currentColor",strokeWidth:"1.5"}),_.jsx("path",{d:"M3.29773 14.472L5.64887 11.236",opacity:"0.6",stroke:"currentColor",strokeWidth:"1.5"}),_.jsx("path",{d:"M15.6085 5.52783L11.8043 6.7639",opacity:"0.2",stroke:"currentColor",strokeWidth:"1.5"}),_.jsx("path",{d:"M0.391602 10.472L4.19583 9.23598",opacity:"0.7",stroke:"currentColor",strokeWidth:"1.5"}),_.jsx("path",{d:"M15.6085 10.4722L11.8043 9.2361",opacity:"0.3",stroke:"currentColor",strokeWidth:"1.5"}),_.jsx("path",{d:"M0.391602 5.52783L4.19583 6.7639",opacity:"0.8",stroke:"currentColor",strokeWidth:"1.5"})]}),_.jsx("defs",{children:_.jsx("clipPath",{id:"clip0_2393_1490",children:_.jsx("rect",{fill:"white",height:"16",width:"16"})})})]}),hte=({size:e=16})=>_.jsx("svg",{height:e,strokeLinejoin:"round",style:{color:"currentcolor"},viewBox:"0 0 16 16",width:e,children:_.jsx("path",{clipRule:"evenodd",d:"M9.96966 11.0303L10.5 11.5607L11.5607 10.5L11.0303 9.96966L9.06065 7.99999L11.0303 6.03032L11.5607 5.49999L10.5 4.43933L9.96966 4.96966L7.99999 6.93933L6.03032 4.96966L5.49999 4.43933L4.43933 5.49999L4.96966 6.03032L6.93933 7.99999L4.96966 9.96966L4.43933 10.5L5.49999 11.5607L6.03032 11.0303L7.99999 9.06065L9.96966 11.0303Z",fill:"currentColor",fillRule:"evenodd"})}),mte=({size:e=16})=>_.jsx("svg",{height:e,strokeLinejoin:"round",style:{color:"currentcolor"},viewBox:"0 0 16 16",width:e,children:_.jsx("path",{clipRule:"evenodd",d:"M12.0607 6.74999L11.5303 7.28032L8.7071 10.1035C8.31657 10.4941 7.68341 10.4941 7.29288 10.1035L4.46966 7.28032L3.93933 6.74999L4.99999 5.68933L5.53032 6.21966L7.99999 8.68933L10.4697 6.21966L11 5.68933L12.0607 6.74999Z",fill:"currentColor",fillRule:"evenodd"})}),vte=({className:e,size:t=16,...n})=>_.jsx("div",{className:xt("inline-flex animate-spin items-center justify-center",e),...n,children:_.jsx(pte,{size:t})}),rM=({attachment:e,isUploading:t=!1,onRemove:n})=>{const{name:i,url:o,contentType:l}=e;return _.jsxs("div",{className:"group relative size-16 overflow-hidden rounded-lg border bg-muted","data-testid":"input-attachment-preview",children:[l!=null&&l.startsWith("image")?_.jsx("img",{alt:i!=null?i:"An image attachment",className:"size-full object-cover",height:64,src:o,width:64}):_.jsx("div",{className:"flex size-full items-center justify-center text-muted-foreground text-xs",children:_.jsx(fte,{size:24})}),t&&_.jsx("div",{className:"absolute inset-0 flex items-center justify-center bg-black/50","data-testid":"input-attachment-loader",children:_.jsx(vte,{size:16})}),n&&!t&&_.jsx(gi,{className:"absolute top-0.5 right-0.5 size-4 rounded-full p-0 opacity-0 transition-opacity group-hover:opacity-100",onClick:n,size:"sm",variant:"destructive",children:_.jsx(hte,{size:8})}),_.jsx("div",{className:"absolute inset-x-0 bottom-0 truncate bg-linear-to-t from-black/80 to-transparent px-1 py-0.5 text-[10px]",children:i})]})},tm=D.forwardRef(({icon:e,className:t,size:n,...i},o)=>_.jsx(gi,{ref:o,variant:"ghost",size:"icon",className:xt(t,"p-2.5","rounded-[4px]","cursor-pointer","!hover:bg-[#EFF0F6]",co),...i,children:e})),gte=({setMessages:e,status:t})=>{const{exec:n=()=>{}}=a5("onBeforeMessagesClear"),i=D.useCallback(()=>{n(null),e(()=>[])},[n,e]),{clearTimestamp:o}=Vl(l=>({clearTimestamp:l.msgClearTimestamp}));return D.useEffect(()=>{o&&i()},[o]),_.jsx(tm,{icon:_.jsx(pK,{}),disabled:t!=="ready",onClick:l=>{l.preventDefault(),i()}})};function yte({chatId:e,input:t,setInput:n,status:i,stop:o,attachments:l,setAttachments:c,messages:f,fileUploadEndpoint:m,setMessages:v,sendMessage:b,className:y}){const S=D.useRef(null),C=D.useCallback(()=>{S.current&&(S.current.style.height="44px")},[]);D.useEffect(()=>{S.current&&C()},[C]),D.useRef(!1);const R=D.useCallback(()=>{S.current&&(S.current.style.height="44px")},[]);D.useEffect(()=>{if(S.current){const se=S.current.value||"";n(se),C()}},[C,n]);const M=G=>{n(G.target.value)},L=D.useRef(null),[I,j]=D.useState([]),{exec:U}=a5("onBeforeMessageSend"),P=D.useCallback(()=>{const G=U({text:t,options:{body:{stage:"design",name:t}}});b({role:"user",parts:[...l.map(se=>({type:"file",url:se.url,name:se.name,mediaType:se.contentType,providerMetadata:{uploadMetadata:se}})),{type:"text",text:t}]},G.options),c([]),R(),n("")},[t,n,l,b,c,e,R]),Z=D.useCallback(async G=>{const se=new FormData;se.append("file",G);try{const ke=await fetch(m,{method:"POST",body:se});if(ke.ok){const de=await ke.json();return console.log(de),de}const{error:ve}=await ke.json();console.error("upload error",ve)}catch(ke){}},[]),B=D.useCallback(async G=>{const se=Array.from(G.target.files||[]);j(se.map(ke=>ke.name));try{const ke=se.map(ge=>Z(ge)),ve=await Promise.all(ke),de=ve.filter(ge=>ge!==void 0);console.log("uploaded attachements",ve),c(ge=>[...ge,...de])}catch(ke){console.error("Error uploading files!",ke)}finally{j([])}},[c,Z]),W=D.useCallback(async G=>{var ve;const se=(ve=G.clipboardData)==null?void 0:ve.items;if(!se)return;const ke=Array.from(se).filter(de=>de.type.startsWith("image/"));if(ke.length!==0){G.preventDefault(),j(de=>[...de,"Pasted image"]);try{const de=ke.map(be=>be.getAsFile()).filter(be=>be!==null).map(be=>Z(be)),Re=(await Promise.all(de)).filter(be=>be!==void 0&&be.url!==void 0&&be.contentType!==void 0);c(be=>[...be,...Re])}catch(de){console.error("Error uploading pasted images:",de)}finally{j([])}}},[c,Z]);return D.useEffect(()=>{const G=S.current;if(G)return G.addEventListener("paste",W),()=>G.removeEventListener("paste",W)},[W]),_.jsxs("div",{className:xt("relative flex w-full flex-col gap-4",y),children:[_.jsx("input",{className:"-top-4 -left-4 pointer-events-none fixed size-0.5 opacity-0",multiple:!0,onChange:B,ref:L,tabIndex:-1,type:"file"}),_.jsxs(ote,{className:"border border-[#e0e0e0] bg-background p-[10px] shadow-xs transition-all duration-200 focus-within:border-border hover:border-[#0265ff]",onSubmit:G=>{G.preventDefault(),i!=="ready"||P()},children:[(l.length>0||I.length>0)&&_.jsxs("div",{className:"flex flex-row items-end gap-2 overflow-x-scroll","data-testid":"attachments-preview",children:[l.map(G=>_.jsx(rM,{attachment:G,onRemove:()=>{c(se=>se.filter(ke=>ke.url!==G.url)),L.current&&(L.current.value="")}},G.url)),I.map(G=>_.jsx(rM,{attachment:{url:"",name:G,contentType:""},isUploading:!0},G))]}),_.jsx("div",{className:"flex flex-row items-start gap-1 sm:gap-2",children:_.jsx(ste,{className:"grow resize-none border-0! border-none! bg-transparent p-0 text-base outline-none ring-0 [-ms-overflow-style:none] [scrollbar-width:none] placeholder:text-[#999] focus-visible:outline-none focus-visible:ring-0 focus-visible:ring-offset-0 [&::-webkit-scrollbar]:hidden text-[#12111]","data-testid":"multimodal-input",disableAutoResize:!0,maxHeight:200,minHeight:44,onChange:M,placeholder:"Send a message...",ref:S,rows:1,value:t})}),_.jsxs(lte,{className:"border-top-0! border-t-0! p-0 shadow-none dark:border-0 dark:border-transparent!",children:[_.jsx("div",{}),_.jsxs(ute,{className:"gap-2.5",children:[_.jsx(xte,{fileInputRef:L,status:i}),_.jsx(gte,{setMessages:v,status:i}),_.jsx(gK,{}),i==="submitted"?_.jsx(Ste,{setMessages:v,stop:o}):_.jsx(dte,{className:"cursor-pointer rounded-full bg-[#0265FF] text-primary-foreground transition-colors duration-200 hover:bg-[#0265FF]/90 disabled:bg-[#E5E6EB] disabled:text-white h-[26px] w-[26px]","data-testid":"send-button",disabled:!t.trim()||I.length>0,status:i,children:_.jsx(fK,{})})]})]})]})]})}const wte=D.memo(yte,(e,t)=>!(e.input!==t.input||e.status!==t.status||!pE(e.attachments,t.attachments)));function bte({fileInputRef:e,status:t}){return _.jsx(tm,{icon:_.jsx(yK,{}),disabled:t!=="ready",onClick:n=>{var i;n.preventDefault(),(i=e.current)==null||i.click()}})}const xte=D.memo(bte);function Cte({stop:e,setMessages:t}){return _.jsx(gi,{className:"cursor-pointer rounded-full bg-[#0265FF] text-primary-foreground transition-colors duration-200 hover:bg-[#0265FF]/90 disabled:bg-[#E5E6EB] disabled:text-white h-[26px] w-[26px] flex items-center justify-center aspect-square p-0",onClick:n=>{n.preventDefault(),e(),t(i=>i)},children:_.jsx("div",{className:"rounded-[2px] w-[8px] h-[8px] bg-white flex-shrink-0"})})}const Ste=D.memo(Cte),kte=({client:e})=>{var S;const{messages:t,sendMessage:n,status:i,id:o,setMessages:l,stop:c,addToolOutput:f}=_$({transport:new Dk({api:(S=e==null?void 0:e.options)==null?void 0:S.chatApiEndpoint})}),[m,v]=D.useState(""),[b,y]=D.useState([]);return D.useEffect(()=>()=>{c()},[]),_.jsx(T$,{messagesArea:_.jsx(DK,{status:i,messages:t,setMessages:l,sendMessage:n,addToolOutput:f}),inputArea:_.jsx(wte,{fileUploadEndpoint:e.options.fileUploadEndPoint,attachments:b,chatId:o,input:m,messages:t,sendMessage:n,setAttachments:y,setInput:v,setMessages:l,status:i,stop:c})})},Ete=()=>{const{mode:e,setMode:t}=Vl(n=>({mode:n.frameMode,setMode:n.setFrameMode}));return{mode:e,setMode:t}},F5=({children:e,className:t,minimal:n,entryVariant:i="default",icon:o,...l})=>{const c={default:"bg-[linear-gradient(180deg,#DBE9FF_0%,#E9FFFD_100%)]",ghost:"bg-transparent text-[#030303] font-[400] px-[10px] hover:bg-[#EFF0F6]",selected:"bg-[#EFF0F6] text-[#030303] font-[400] px-[10px]"};return _.jsxs(gi,{...l,variant:"entry",size:"entry",className:xt("rounded-[4px] cursor-pointer",c[i],t),children:[o!=null?o:_.jsx(hE,{}),n?null:e]})},aM=({id:e,style:t="",rootEl:n,containerClasses:i=[],wrapperClasses:o=[],wrapperStyle:l={},extraHtml:c=""})=>{const[f,m]=D.useState(null),v=D.useRef(null);return D.useEffect(()=>{var b;(b=v.current)==null||b.classList.add(...o),f==null||f.classList.add(...i)},[o,i]),D.useEffect(()=>{v.current&&Object.entries(l).forEach(([b,y])=>{y!==void 0&&(v.current.style[b]=y)})},[l]),D.useEffect(()=>{v.current&&v.current.parentNode&&(v.current.parentNode.removeChild(v.current),v.current=null);try{const b=document.createElement("div");b.classList.add(...o,"wrapper"),v.current=b,Object.entries(l).forEach(([R,M])=>{M!==void 0&&(b.style[R]=M)});const y=b.attachShadow({mode:"open"});if(c&&(y.innerHTML=c),t){const R=document.createElement("style");R.textContent=t,y.appendChild(R)}const S=document.createElement("div");S.classList.add(...i,"shadow-container"),y.appendChild(S);const C=n||document.body;C.appendChild(b),console.log("shadow mounted to",C),m(S)}catch(b){console.error("创建Shadow DOM失败:",b),m(null)}return()=>{v.current&&v.current.parentNode&&(v.current.parentNode.removeChild(v.current),v.current=null)}},[n]),f&&(f.id=e),{shadowContainer:f,destroy:()=>{v.current&&v.current.parentNode&&(v.current.parentNode.removeChild(v.current),v.current=null)}}},_te=({avatar:e,width:t,onDockClick:n,onCloseClick:i})=>_.jsxs("div",{className:xt("flex items-center justify-between","px-4","h-[52px] min-w-[200px]",{"w-full":!t,[`w-[${t}px]`]:t}),style:{backgroundImage:VZ,backgroundSize:"cover",backgroundRepeat:"no-repeat"},children:[e,_.jsxs("div",{className:"actions flex items-center gap-2.5",children:[_.jsx(tm,{icon:_.jsx(sK,{}),onClick:n}),_.jsx(tm,{icon:_.jsx(lK,{}),onClick:i})]})]}),Tte=({client:e})=>{var C,R;const{chatVisible:t,setChatVisible:n,setFrameMode:i}=Vl(M=>({chatVisible:M.chatAreaVisible,setFrameMode:M.setFrameMode,setChatVisible:M.setChatAreaVisible})),{mode:o,setMode:l}=Ete(),c=o==="float",m=xt({"fixed z-50 rounded-lg shadow-lg":c,hidden:!t,"static w-full h-full shadow-md":o==="dock"}),v=r4("AvatarAndName"),b=v==null?void 0:v.Component,y=b?_.jsx(b,{variant:"active"}):_.jsx(n4,{name:"AI表单搭建",variant:"active"}),S=c?{width:354,height:"calc(100% - 20px)",bottom:"10px",right:"10px",zIndex:(R=(C=e==null?void 0:e.options)==null?void 0:C.safeZIndex)!=null?R:1}:{};return _.jsxs("div",{className:xt("bg-white flex flex-col overflow-hidden",m),style:S,children:[_.jsx(_te,{onDockClick:()=>{l(o==="float"?"dock":"float")},avatar:y,onCloseClick:()=>{n(!1),i("float")}}),_.jsx(kte,{client:e})]})},Rte=({client:e})=>{var l,c,f;const{chatVisible:t}=Vl(m=>({chatVisible:m.chatAreaVisible})),n=["h-full","w-full"],i={height:"100%",width:"100%"},{shadowContainer:o}=aM({id:"chat-sdk-content",style:((l=e==null?void 0:e.options)==null?void 0:l.style)||"",rootEl:((c=e==null?void 0:e.options)==null?void 0:c.el)||document.body,containerClasses:t?n:[],wrapperClasses:t?n:[],wrapperStyle:t?i:{},extraHtml:((f=e==null?void 0:e.options)==null?void 0:f.extraHtml)||""});return D.useEffect(()=>{var v;const m=(v=e==null?void 0:e.options)==null?void 0:v.el;m&&(m.style.pointerEvents=t?"auto":"none")},[t]),o?Hu.createPortal(_.jsx(Tte,{client:e}),o):null},Mte=({client:e})=>{var M,L,I;const{bottom:t=10,right:n=10}=((M=e==null?void 0:e.options)==null?void 0:M.btnOffset)||{},{entryVisible:i,entryWrapper:o,setChatVisible:l,setFrameMode:c,chatVisible:f}=Vl(j=>({setFrameMode:j.setFrameMode,entryWrapper:j.chatEntryElWrapper,chatVisible:j.chatAreaVisible,entryVisible:j.chatEntryVisible,setChatVisible:j.setChatAreaVisible})),m=!!o,v=r4("EntryButton"),b=v==null?void 0:v.Component,y=m?{cursor:"pointer"}:{position:"fixed",cursor:"pointer",bottom:t,right:n,zIndex:(L=e==null?void 0:e.options)==null?void 0:L.safeZIndex},S=b?_.jsx(b,{chatVisible:f,onClick:()=>{c("dock"),l(!0)},style:y}):_.jsx(F5,{style:y,minimal:f,onClick:()=>{c("dock"),l(!0)},children:"AI助手"}),{shadowContainer:C,destroy:R}=aM({id:"chat-sdk-entry",rootEl:o,containerClasses:["inline-flex"],wrapperClasses:["inline-flex"],style:((I=e==null?void 0:e.options)==null?void 0:I.style)||""});return i?m?C?Hu.createPortal(S,C):null:(R(),S):null},Nte=({client:e})=>{const{mode:t}=Vl(n=>({mode:n.frameMode}));return D.useEffect(()=>{var n,i;(i=(n=e==null?void 0:e.options)==null?void 0:n.onFrameModeChange)==null||i.call(n,t)},[t]),_.jsxs(_.Fragment,{children:[_.jsx(Rte,{client:e}),_.jsx(Mte,{client:e})]})},Ote=({store:e,client:t})=>_.jsx(AI,{store:e,children:_.jsx(Nte,{client:t})});class Lte{constructor(){kt(this,"events",new Map)}on(t,n){return this.events.has(t)||this.events.set(t,[]),this.events.get(t).push(n),this}off(t,n){const i=this.events.get(t);if(!i)return this;const o=i.indexOf(n);return o>-1&&i.splice(o,1),this}emit(t,n){const i=this.events.get(t);return!i||i.length===0?!1:(i.slice().forEach(o=>{try{o(n)}catch(l){console.error(`Error in event handler for "${String(t)}":`,l)}}),!0)}once(t,n){const i=o=>{n(o),this.off(t,i)};return this.on(t,i)}listenerCount(t){var n,i;return(i=(n=this.events.get(t))==null?void 0:n.length)!=null?i:0}eventNames(){return Array.from(this.events.keys())}removeAllListeners(t){return t?this.events.delete(t):this.events.clear(),this}listeners(t){var n,i;return(i=(n=this.events.get(t))==null?void 0:n.slice())!=null?i:[]}}class Ate extends Lte{}const _p=class _p{constructor(t){kt(this,"root");kt(this,"Store");kt(this,"options");kt(this,"eventBus",new Ate);this.options=t;const n=document.createElement("div");document.body.appendChild(n),n.id=`bs-chat-sdk-inst-root-${Date.now()}`,this.options.style+=__SDK_STYLES__,this.Store=xI(this),this.initPlugins(),this.root=fg(n),this.root.render(_.jsx(Ote,{client:this,store:this.Store})),_p.instances.push(this)}diposePlugins(){this.Store.getState().chatAreaPluginInstList.forEach(n=>{typeof n.dispose=="function"&&(n.dispose(),n.Context={})})}initPlugins(){var n;if(!this.options||!((n=this.options.plugins)!=null&&n.length))return;const t=this.options.plugins.map(i=>{var c;const o=i.createContext(),l=new i.Plugin(o);return(c=l.init)==null||c.call(l,this),l});this.Store.getState().setChatAreaPluginInstList(t)}clearChatHistory(){this.Store.getState().clearMessages()}showChatArea(t){this.Store.getState().setChatAreaVisible(!0),t&&this.Store.getState().setFrameMode("dock")}isChatVisible(){return this.Store.getState().chatAreaVisible}hideChatArea(){this.Store.getState().setChatAreaVisible(!1)}dockChatArea(){this.Store.getState().setFrameMode("dock")}undockChatArea(){this.Store.getState().setFrameMode("float")}showChatEntryButton(t){this.Store.getState().setChatEntryVisible(!0,t)}hideChatEntryButton(){this.Store.getState().setChatEntryVisible(!1)}destroy(){this.diposePlugins(),this.eventBus.removeAllListeners(),_p.instances=_p.instances.filter(t=>t!==this)}};kt(_p,"instances",[]);let U5=_p;const Ite=({children:e,onClick:t,disabled:n=!1,className:i})=>_.jsx("div",{className:xt("relative rounded-[6px] p-[1px] cursor-pointer h-[34px] flex items-center justify-center","bg-gradient-to-b from-[#84B4FF] to-[#B1FAFF]",i),style:{background:"linear-gradient(180deg, #84B4FF 0%, #B1FAFF 100%)"},children:_.jsx("button",{className:xt("w-full h-[32px] px-[10px]","bg-white rounded-[5px]","flex items-center justify-center","text-[#0265ff] text-[14px]","cursor-pointer","transition-all duration-200","hover:bg-[#f5f9ff]","disabled:opacity-95 disabled:cursor-not-allowed"),onClick:t,disabled:n,children:e})}),Dte=e=>_.jsx(Ite,{className:"self-start",onClick:()=>{var t;(t=e.onSelect)==null||t.call(e,e.title)},children:e.description}),$4=()=>{const{eventBus:e}=Vl(t=>({eventBus:t.eventBus}));return e},iM=(e,t)=>{const n=$4();D.useEffect(()=>{const i=o=>t(o);return n.on(e,i),()=>{n.off(e,i)}},[])},gs={CREATE_FORM:"form-builder-FormCreateConfirmed",CREATE_FORM_SUCCESS:"form-builder-FormCreateSuccess",UPDATE_FORM_INFO:"form-builder-FormInfoUpdated",SAVE_FIELDS:"form-builder-FieldsConfirmed",FIELD_CREATED:"form-builder-FieldCreated",FIELDS_CREATED_FINISH:"form-builder-FieldsCreatedFinish",FIELD_CHECK_UPDATE:"form-builder-FieldCheckedChanged"},Pte=()=>{const[e,t]=D.useState(!1);return iM(gs.SAVE_FIELDS,()=>{t(!0)}),e},nm=e=>{const{pluginMap:t}=Vl(n=>({pluginMap:n.chatAreaPluginMap}));return t.get(e)},H5="McpFormBuilderPlugin",zte={mode:"tree",extendSet:{sort:["datahelp","module","formEvent"],status:!0,triggerField:"",triggerFieldMode:"none"},dataloadmode:["add","cover"]};function oM(e,t){const n=e.match(t);return n?n[1]:""}function jte(e,t="表"){return e.endsWith(t)?e:e+t}function sM(e){if(!e)return"";const t=[/关联来源:(.*)表?,/,/关联(.*)表?/,/(从(.*)表?中查询)/,/来自(.*)表?/];for(const n of t){const i=oM(e,n);if(i)return jte(i)}return""}function Fte(e){const t=e.split(`
531
+ `).filter(i=>i.trim()),n=[];return t.forEach(i=>{const[o,l,c,f,m=""]=i.split("|").map(L=>L.trim());if(!o||!l||!c||!f)return;const v=l.match(/类型:(.*)/),b=v?v[1]:"",y=c.match(/必填:(\w+)/),S=y?y[1]==="是":!1,C=f.match(/说明:(.+)/),R=C?C[1]:"",M=oM(m,/关系:(.+)/);n.push({fieldName:o,type:b,required:S,description:R,relationDesc:M})}),n}function Ute(e){const t=new Map;return e.forEach(n=>{if(n.type==="关联查询"||n.type==="关联数据"){const i=sM(n.relationDesc)||sM(n.description),o=n.fieldName.match(/\d+\. (.*)/),l=o?o[1]:n.fieldName,c=l.split("-"),f=c.length>1?c[c.length-1]:l;t.set(f,{fieldName:f,targetFormName:i})}}),t}const Hte=e=>({linkInfoMap:Ute(Fte(e)),formName:AZ(e)}),xd=(e,t)=>!e||!e.widget?!1:e.widget.type===t,Vte=e=>{var t,n;return xd(e,"subform")?((n=(t=e.widget)==null?void 0:t.items)==null?void 0:n.length)>0:!1},Bte=e=>xd(e,"linkdata")||xd(e,"linkquery"),$te=e=>!e||!e.widget?!1:e.widget.type==="sn",Zte=e=>!e||!e.widget?!1:e.widget.type==="text",Wte=e=>e?e.linkInfoMap&&e.linkInfoMap.size>0:!1,qte=(e,t)=>{const{isTargetForm:n,isTargetField:i,fieldProcessor:o,onFormProcessed:l}=t;let c;for(const[f,m]of e){if(c=!1,!n(f,m)){console.log("不是目标表单,不处理");continue}const v=m.designInfo.linkInfoMap;for(const[b,y]of v)if(i(b,y)){c=!0;const S=m.fieldMap.get(b),C=o(m,S,y);m.fieldMap.set(b,C)}c&&l(m)}},lM=(e="_widget",t)=>{const n=`${e}_${Date.now()}`;if(t===void 0)return n;const i=t.toString().length;return`${n.slice(0,-i)}${t}`},Gte=(e,t,n,i)=>{var f,m,v,b;if(!xd(e,"dataload"))return console.log("非数据加载字段,跳过处理",e),e;if(!t.targetFormName)return console.log("无关联信息,跳过处理",e),e;if(n.size===0)return console.log("无表单映射,跳过处理",e),e;const o=n.get(t.targetFormName);if(!o)return console.log("无表单映射,跳过处理",e),e.widget.loaddataconfig=zte,e;const l=((m=(f=e.widget)==null?void 0:f.loaddataconfig)==null?void 0:m.mapFields)||[],c=((b=(v=e.widget)==null?void 0:v.loaddataconfig)==null?void 0:b.fields)||[];if(!l||l.length===0||l.length!==c.length)return console.log("无映射字段,跳过处理",e),e;console.log("开始数据加载补全逻辑",e,o),e.widget.loaddataconfig.forms=o.formId;for(let y=0;y<l.length;y++){const S=l[y],C=c[y],R=S.depend.field,M=o.fieldMap.get(R);if(!M){console.log("未找到目标依赖字段,跳过处理该映射字段",S);continue}const L=lM("f",y);S.field=lM("_widget",y),S.depend.field=L,C.name=M.widget.widgetName,C.form=o.formId,C.tag=L}return console.log("数据加载字段信息已补全",e),i(e),e},uM=(e,t,n,i)=>{if(console.log(e,t,n),!Bte(e))return console.log("非关联字段,跳过处理",e),e;if(!t.targetFormName)return console.log("无关联信息,跳过处理",e),e;if(n.size===0)return console.log("无表单映射,跳过处理",e),e;const o=n.get(t.targetFormName);if(!o)return console.log("未找到目标表单,跳过处理",e),e;try{e.widget.refAppId=o.appId,e.widget.linkForm=o.formId}catch(f){return console.error("尝试建立表单关联失败"),e}const l=o.fields.find($te);if(!l)return console.log("未找到目标表单的主键字段,跳过处理",e),e;if(xd(e,"linkdata"))try{e.widget.linkKey=l.widget.widgetName,e.widget.linkType="sn"}catch(f){return console.error("尝试建立主键关联失败"),e}const c=o.fields.find(Zte);if(!c)return console.log("未找到目标表单的显示字段,跳过处理",e),e;try{e.widget.linkFields=[{text:c.label,name:c.widget.widgetName,type:"text"}]}catch(f){return console.error("尝试建立显示字段关联失败"),e}return console.log("关联字段信息已补全",e),i(e),e},V5={linkdata:e=>(t,n,i)=>uM(n,i,e,o=>{t.designInfo.linkInfoMap.delete(i.fieldName)}),linkquery:e=>(t,n,i)=>uM(n,i,e,o=>{t.designInfo.linkInfoMap.delete(i.fieldName)}),dataload:e=>(t,n,i)=>(console.log("进入数据加载字段处理器!"),console.log("上下文表单",e),console.log("处理器入参",t,n,i),Gte(n,i,e,o=>{t.designInfo.linkInfoMap.delete(i.fieldName)}))},Z4=({text:e="确认",prefixDesc:t,className:n,disabled:i,...o})=>{const l=_.jsx(gi,{...o,variant:"default",disabled:i,className:xt("px-2.5 py-0 rounded-[100px] text-[14px] leading-normal h-[34px] min-w-[300px] cursor-pointer w-full",i?"bg-[#f0f0f0] text-[#999] cursor-not-allowed":"bg-[#0265ff] text-white hover:bg-[#0265ff]/80",co,n),children:e});return t?_.jsxs("div",{className:"flex flex-col items-start gap-2.5",children:[_.jsx("p",{className:"text-[#4D609F]",children:t}),l]}):l},cM=({code:e,className:t,style:n})=>_.jsx("i",{className:`sdk-icon ${t||""}`,style:n,dangerouslySetInnerHTML:{__html:e}}),dM=[{id:"biaodan1",code:"&#xe814;",label:"表单1",value:25},{id:"biaodan2",code:"&#xe81d;",label:"表单2",value:26},{id:"biaodan3",code:"&#xe81c;",label:"表单3",value:27},{id:"biaodan4",code:"&#xe81a;",label:"表单4",value:28},{id:"biaodan5",code:"&#xe813;",label:"表单5",value:29},{id:"biaodan6",code:"&#xe81b;",label:"表单6",value:30},{id:"biaodan7",code:"&#xe818;",label:"表单7",value:31},{id:"biaodan8",code:"&#xe819;",label:"表单8",value:32},{id:"biaodan9",code:"&#xe817;",label:"表单9",value:33},{id:"biaodan10",code:"&#xe816;",label:"表单10",value:34},{id:"biaodan11",code:"&#xe810;",label:"表单11",value:35},{id:"biaodan12",code:"&#xe815;",label:"表单12",value:36},{id:"biaodan13",code:"&#xe812;",label:"表单13",value:37},{id:"biaodan14",code:"&#xe811;",label:"表单14",value:38},{id:"biaodan15",code:"&#xe80e;",label:"表单15",value:39},{id:"biaodan16",code:"&#xe80f;",label:"表单16",value:40},{id:"biaodan17",code:"&#xe80d;",label:"表单17",value:41},{id:"biaodan18",code:"&#xe807;",label:"表单18",value:42},{id:"biaodan19",code:"&#xe80b;",label:"表单19",value:43},{id:"biaodan20",code:"&#xe80a;",label:"表单20",value:44},{id:"biaodan21",code:"&#xe80c;",label:"表单21",value:45},{id:"biaodan22",code:"&#xe809;",label:"表单22",value:46},{id:"biaodan23",code:"&#xe808;",label:"表单23",value:47},{id:"biaodan24",code:"&#xe805;",label:"表单24",value:48},{id:"biaodan25",code:"&#xe7ff;",label:"表单25",value:49},{id:"biaodan26",code:"&#xe803;",label:"表单26",value:50},{id:"biaodan27",code:"&#xe806;",label:"表单27",value:51},{id:"biaodan28",code:"&#xe802;",label:"表单28",value:52},{id:"biaodan29",code:"&#xe800;",label:"表单29",value:53},{id:"biaodan30",code:"&#xe804;",label:"表单30",value:54},{id:"biaodan31",code:"&#xe801;",label:"表单31",value:55},{id:"biaodan32",code:"&#xe7fe;",label:"表单32",value:56},{id:"biaodan33",code:"&#xe7fc;",label:"表单33",value:57},{id:"biaodan34",code:"&#xe7fd;",label:"表单34",value:58},{id:"biaodan35",code:"&#xe7fb;",label:"表单35",value:59},{id:"biaodan36",code:"&#xe7fa;",label:"表单36",value:60}],B5=({size:e=36,code:t,style:n})=>{const i=e*.238,o=e*.6875;return _.jsx("div",{className:"relative flex items-center justify-center bg-[#0265ff] flex-shrink-0 text-white",style:{width:e,height:e,borderRadius:i,fontSize:o,...n},children:_.jsx(cM,{code:t||dM[0].code,style:{fontSize:o}})})},Yte=D.memo(({name:e,onNameChange:t,onMount:n,selectedIcon:i,iconOptions:o=[],onIconChange:l,onConfirm:c,expanded:f,onExpandedChange:m,className:v})=>{const[b,y]=D.useState(!1),[S,C]=D.useState(!1),R=f!=null?f:b,M=P=>{y(P),m==null||m(P)},[L,I]=D.useState(e),[j,U]=D.useState(i);return D.useEffect(()=>{n==null||n()},[]),R?_.jsxs("div",{className:xt("bg-[#fafafa] border border-[#e0e0e0] rounded-[10px] p-[12px] flex flex-col gap-[22px]",co,v),children:[_.jsxs("div",{className:"flex flex-col gap-[10px] w-full",children:[_.jsx("p",{className:"text-[14px] text-[#030303] font-bold leading-normal",children:"名称"}),_.jsx("input",{type:"text",value:L,onChange:P=>{I(P.target.value)},onBlur:()=>{t==null||t(L)},className:xt("bg-white border border-[#e0e0e0] rounded-[4px] h-[34px] px-[10px] py-[7px] w-full","text-[14px] text-[#030303] leading-normal outline-none","focus:border-[#0265ff]",co)})]}),_.jsxs("div",{className:"flex flex-col gap-[10px] w-full",children:[_.jsx("p",{className:"text-[14px] text-[#030303] font-bold leading-normal",children:"图标"}),_.jsxs("div",{className:"relative",style:{zIndex:10},children:[_.jsxs("button",{onClick:()=>C(!S),className:xt("bg-white border border-[#e0e0e0] rounded-[4px] h-[34px] px-[10px] py-[7px] w-full","flex items-center justify-between cursor-pointer","hover:border-[#0265ff]",co),children:[_.jsx("div",{className:"flex items-center",children:_.jsx(B5,{size:16,code:j==null?void 0:j.code})}),_.jsx("div",{className:xt("text-[#666]",co,S&&"rotate-180"),children:_.jsx(mte,{size:16})})]}),S&&o.length>0&&_.jsx("div",{className:xt("absolute top-full left-0 mt-[4px] bg-white rounded-[10px] shadow-md z-10 p-[12px]",co),children:_.jsx("div",{className:"grid grid-cols-6 gap-[8px]",children:o.map(P=>_.jsx("button",{onClick:()=>{l==null||l(P),U(P),C(!1)},className:xt("w-[40px] h-[40px] rounded-[9.5px] border flex items-center justify-center cursor-pointer",(j==null?void 0:j.id)===P.id?"border-[#0265ff] border-2":"border-[#e0e0e0] hover:bg-[#eff0f6]",co),title:P.label,children:_.jsx(B5,{size:40,code:P.code,style:{background:"transparent",color:"#0265ff"}})},P.id))})})]})]}),_.jsx(Z4,{text:"确认",onClick:()=>{c==null||c(L,(j==null?void 0:j.value)||25),M(!1)}})]}):_.jsxs("div",{className:xt("bg-[#fafafa] border border-[#e0e0e0] rounded-[10px] px-[10px] py-0 flex items-center justify-between h-[56px]",co,v),children:[_.jsxs("div",{className:"flex items-center gap-[10px] min-w-0 flex-1 mr-[10px]",children:[_.jsx(B5,{size:36,code:j==null?void 0:j.code}),_.jsx("p",{className:"text-[14px] text-black leading-normal truncate",children:L})]}),_.jsx("button",{onClick:()=>M(!0),className:xt("w-[16px] h-[16px] flex items-center justify-center cursor-pointer hover:opacity-70",co),children:_.jsx(lT,{})})]})},(e,t)=>{var n,i;return e.name===t.name&&((n=e.selectedIcon)==null?void 0:n.id)===((i=t.selectedIcon)==null?void 0:i.id)&&e.expanded===t.expanded&&e.iconOptions===t.iconOptions}),Jte=D.memo(({designDoc:e,sendMessage:t})=>{const n=nm(H5),[i,o]=D.useState(!1),[l,c]=D.useState(!1),f=$4(),m=D.useRef(null);iM(gs.CREATE_FORM_SUCCESS,y=>{n==null||n.onFormCreate(y),c(!0),m.current=y}),D.useEffect(()=>{m.current&&f.emit("form-builder-FieldsCreatedFinish",m.current)},[]);const v=Hte(e),b=_.jsx(C4,{children:l?_.jsxs(_.Fragment,{children:["已为你创建",v.formName,_.jsx(Yte,{onConfirm:(y,S)=>{m.current&&(m.current.formName=y,m.current.formIcon=S,f.emit(gs.UPDATE_FORM_INFO,m.current))},onNameChange:y=>{m.current&&(m.current.formName=y,f.emit(gs.UPDATE_FORM_INFO,m.current))},onIconChange:y=>{m.current&&(m.current.formIcon=y.value,f.emit(gs.UPDATE_FORM_INFO,m.current))},name:v.formName,iconOptions:dM,className:"w-full",onMount:()=>{setTimeout(()=>{var y;t({text:`确认搭建:${(y=n.getCurrentWorkingForm())==null?void 0:y.formName}`},{body:{stage:"build"}})},500)}})]}):_.jsx(mE,{children:"创建中"})});return _.jsxs(_.Fragment,{children:[_.jsx(Z4,{prefixDesc:`确认搭建:${v.formName}`,onClick:()=>{n==null||n.onBeforeFormCreate(v),f.emit("form-builder-FormCreateConfirmed",{name:v.formName}),o(!0)}}),i?b:null]})},(e,t)=>e.designDoc===t.designDoc),Cd={text:"输入框",password:"密码输入框",location:"定位",datetime:"日期时间选择器",radiogroup:"单选框",radio:"单选框",combo:"下拉框",address:"地址",button:"按钮",textarea:"多行输入框",combocheck:"多选下拉框",checkboxgroup:"多选框组",separator:"分割线",upload:"附件上传",number:"数字输入框",dataload:"数据加载",image:"图片上传",signature:"签名",dept:"部门选择",user:"成员选择",usergroup:"成员多选",deptgroup:"部门多选",unknown:"未知类型",sn:"流水号",linkdata:"关联数据",linkquery:"关联查询",subform:"子表单"},Kte={address:"&#xe881;",subform:"&#xe847;",password:"&#xe854;",button:"&#xe8e8;",textarea:"&#xe84f;",datetime:"&#xe849;",text:"&#xe854;",location:"&#xe87f;",radiogroup:"&#xe853;",radio:"&#xe861;",combo:"&#xe84a;",combocheck:"&#xe84b;",separator:"&#xe850;",checkboxgroup:"&#xe84c;",upload:"&#xe621;",number:"&#xe846;",image:"&#xe880;",signature:"&#xe87e;",user:"&#xe856;",dataload:"&#xe848;",linkdata:"&#xe857;",linkquery:"&#xe857;",usergroup:"&#xe851;",dept:"&#xe84d;",sn:"&#xe882;",deptgroup:"&#xe852;",unknown:"&#xe848;"};function Xte(e,t){return D.useReducer((n,i)=>{const o=t[n][i];return o!=null?o:n},e)}var Ep=e=>{const{present:t,children:n}=e,i=Qte(t),o=typeof n=="function"?n({present:i.isPresent}):D.Children.only(n),l=kr(i.ref,ene(o));return typeof n=="function"||i.isPresent?D.cloneElement(o,{ref:l}):null};Ep.displayName="Presence";function Qte(e){const[t,n]=D.useState(),i=D.useRef(null),o=D.useRef(e),l=D.useRef("none"),c=e?"mounted":"unmounted",[f,m]=Xte(c,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return D.useEffect(()=>{const v=W4(i.current);l.current=f==="mounted"?v:"none"},[f]),Oa(()=>{const v=i.current,b=o.current;if(b!==e){const S=l.current,C=W4(v);e?m("MOUNT"):C==="none"||(v==null?void 0:v.display)==="none"?m("UNMOUNT"):m(b&&S!==C?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,m]),Oa(()=>{var v;if(t){let b;const y=(v=t.ownerDocument.defaultView)!=null?v:window,S=R=>{const L=W4(i.current).includes(CSS.escape(R.animationName));if(R.target===t&&L&&(m("ANIMATION_END"),!o.current)){const I=t.style.animationFillMode;t.style.animationFillMode="forwards",b=y.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=I)})}},C=R=>{R.target===t&&(l.current=W4(i.current))};return t.addEventListener("animationstart",C),t.addEventListener("animationcancel",S),t.addEventListener("animationend",S),()=>{y.clearTimeout(b),t.removeEventListener("animationstart",C),t.removeEventListener("animationcancel",S),t.removeEventListener("animationend",S)}}else m("ANIMATION_END")},[t,m]),{isPresent:["mounted","unmountSuspended"].includes(f),ref:D.useCallback(v=>{i.current=v?getComputedStyle(v):null,n(v)},[])}}function W4(e){return(e==null?void 0:e.animationName)||"none"}function ene(e){var i,o;let t=(i=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var q4="Checkbox",[tne]=hp(q4),[nne,$5]=tne(q4);function rne(e){const{__scopeCheckbox:t,checked:n,children:i,defaultChecked:o,disabled:l,form:c,name:f,onCheckedChange:m,required:v,value:b="on",internal_do_not_use_render:y}=e,[S,C]=k5({prop:n,defaultProp:o!=null?o:!1,onChange:m,caller:q4}),[R,M]=D.useState(null),[L,I]=D.useState(null),j=D.useRef(!1),U=R?!!c||!!R.closest("form"):!0,P={checked:S,disabled:l,setChecked:C,control:R,setControl:M,name:f,form:c,value:b,hasConsumerStoppedPropagationRef:j,required:v,defaultChecked:rc(o)?!1:o,isFormControl:U,bubbleInput:L,setBubbleInput:I};return _.jsx(nne,{scope:t,...P,children:ane(y)?y(P):i})}var fM="CheckboxTrigger",pM=D.forwardRef(({__scopeCheckbox:e,onKeyDown:t,onClick:n,...i},o)=>{const{control:l,value:c,disabled:f,checked:m,required:v,setControl:b,setChecked:y,hasConsumerStoppedPropagationRef:S,isFormControl:C,bubbleInput:R}=$5(fM,e),M=kr(o,b),L=D.useRef(m);return D.useEffect(()=>{const I=l==null?void 0:l.form;if(I){const j=()=>y(L.current);return I.addEventListener("reset",j),()=>I.removeEventListener("reset",j)}},[l,y]),_.jsx(In.button,{type:"button",role:"checkbox","aria-checked":rc(m)?"mixed":m,"aria-required":v,"data-state":yM(m),"data-disabled":f?"":void 0,disabled:f,value:c,...i,ref:M,onKeyDown:Qn(t,I=>{I.key==="Enter"&&I.preventDefault()}),onClick:Qn(n,I=>{y(j=>rc(j)?!0:!j),R&&C&&(S.current=I.isPropagationStopped(),S.current||I.stopPropagation())})})});pM.displayName=fM;var Z5=D.forwardRef((e,t)=>{const{__scopeCheckbox:n,name:i,checked:o,defaultChecked:l,required:c,disabled:f,value:m,onCheckedChange:v,form:b,...y}=e;return _.jsx(rne,{__scopeCheckbox:n,checked:o,defaultChecked:l,disabled:f,required:c,onCheckedChange:v,name:i,form:b,value:m,internal_do_not_use_render:({isFormControl:S})=>_.jsxs(_.Fragment,{children:[_.jsx(pM,{...y,ref:t,__scopeCheckbox:n}),S&&_.jsx(gM,{__scopeCheckbox:n})]})})});Z5.displayName=q4;var hM="CheckboxIndicator",mM=D.forwardRef((e,t)=>{const{__scopeCheckbox:n,forceMount:i,...o}=e,l=$5(hM,n);return _.jsx(Ep,{present:i||rc(l.checked)||l.checked===!0,children:_.jsx(In.span,{"data-state":yM(l.checked),"data-disabled":l.disabled?"":void 0,...o,ref:t,style:{pointerEvents:"none",...e.style}})})});mM.displayName=hM;var vM="CheckboxBubbleInput",gM=D.forwardRef(({__scopeCheckbox:e,...t},n)=>{const{control:i,hasConsumerStoppedPropagationRef:o,checked:l,defaultChecked:c,required:f,disabled:m,name:v,value:b,form:y,bubbleInput:S,setBubbleInput:C}=$5(vM,e),R=kr(n,C),M=oR(l),L=YT(i);D.useEffect(()=>{const j=S;if(!j)return;const U=window.HTMLInputElement.prototype,Z=Object.getOwnPropertyDescriptor(U,"checked").set,B=!o.current;if(M!==l&&Z){const W=new Event("click",{bubbles:B});j.indeterminate=rc(l),Z.call(j,rc(l)?!1:l),j.dispatchEvent(W)}},[S,M,l,o]);const I=D.useRef(rc(l)?!1:l);return _.jsx(In.input,{type:"checkbox","aria-hidden":!0,defaultChecked:c!=null?c:I.current,required:f,disabled:m,name:v,value:b,form:y,...t,tabIndex:-1,ref:R,style:{...t.style,...L,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});gM.displayName=vM;function ane(e){return typeof e=="function"}function rc(e){return e==="indeterminate"}function yM(e){return rc(e)?"indeterminate":e?"checked":"unchecked"}const wM=D.forwardRef(({className:e,...t},n)=>_.jsx(Z5,{ref:n,className:xt("grid place-content-center peer h-4 w-4 shrink-0 rounded-sm border border-primary shadow focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",e),...t,children:_.jsx(mM,{className:xt("grid place-content-center text-current"),children:_.jsx(fT,{className:"h-4 w-4"})})}));wM.displayName=Z5.displayName;const G4=({defaultChecked:e=!1,disabled:t=!1,onCheckedChange:n,icon:i,className:o,title:l,extra:c,style:f,shortDesc:m})=>{const[v,b]=D.useState(e),y=()=>{if(t)return;const C=!v;b(C),n==null||n(C)},S=!!c;return _.jsxs("div",{className:xt("flex items-center gap-[10px] px-4 py-[10px] rounded-[4px]","w-full transition-colors cursor-pointer",{"cursor-not-allowed":t,"hover:bg-[#EFF0F6]":!t,"items-start":S,"items-center":!S},o),style:f,onClick:()=>{y()},children:[_.jsx(wM,{className:yi("outline-none grow-0 shrink-0 rounded-[2px] cursor-pointer bg-white text-white border-[#0265ff] data-[state=checked]:bg-[#0265ff] data-[state=checked]:border-[#0265ff] data-[state=checked]:bg-[#0265ff]",{"mt-[2px]":S,"opacity-80 cursor-not-allowed":t}),id:l,checked:v,disabled:t,onCheckedChange:y}),_.jsxs("div",{className:yi("flex flex-col flex-1 min-w-0",{"gap-2.5":S}),children:[_.jsxs("div",{className:yi("flex items-center justify-between w-full",{"gap-1.5":!!i,"gap-2.5":!i}),children:[_.jsxs("div",{className:yi("flex items-center gap-[6px] min-w-0",{"flex-1":!!i,"w-[100px] flex-shrink-0":!i}),children:[i&&_.jsx("div",{className:"w-4 h-4 flex-shrink-0 text-[#6F829E] leading-[16px]",children:i}),_.jsx("p",{className:yi(" min-w-0 text-sm text-[#121111] truncate",{"flex-1":!!i,"flex-grow-1 flex-shrink-0":!i}),children:l})]}),m&&_.jsx("p",{className:yi("text-sm text-[#666]",{"whitespace-nowrap flex-shrink-0":!!i,"break-words":!i}),children:m})]}),S?_.jsx("div",{className:"overflow-x-auto whitespace-nowrap no-scrollbar flex items-center gap-2",children:c}):null]})]})},ine=({bgColor:e="#E8F4FF",color:t="#0265FF",label:n,children:i})=>_.jsx("div",{className:"flex items-center justify-center gap-1.5 px-1.5 h-[26px] rounded-[100px] text-[13px]",style:{backgroundColor:e,color:t},children:n||i}),bM=({type:e})=>{const t=Kte[e]||"icon-unknown";return _.jsx(cM,{code:t})},W5=D.memo(({field:e,disabled:t,isSubField:n,onChange:i,onLoaded:o,icon:l,value:c})=>{const{widget:f,label:m}=e;if(!f)return null;const{type:v}=f,b=v;if(!Cd.hasOwnProperty(v))return null;const y=Cd[b]||Cd.unknown,S=v==="subform",C=S?[]:f.items||[];D.useEffect(()=>{o==null||o(e)},[]);const R=L=>{i==null||i(L,e)},M=n?"pl-[38px]":"";return c?_.jsx(G4,{title:m,disabled:t,defaultChecked:!0,onCheckedChange:R,icon:l,className:M,shortDesc:c}):_.jsxs(_.Fragment,{children:[_.jsx(G4,{title:m,disabled:t,defaultChecked:!0,onCheckedChange:R,icon:l,shortDesc:y,className:M,extra:C.length?_.jsx(_.Fragment,{children:C.map(({value:L,text:I,color:j})=>_.jsx(ine,{color:j?"white":void 0,bgColor:j,children:I},L))}):null}),S?f.items.map((L,I)=>{var j;return _.jsx(W5,{isSubField:!0,disabled:t,field:L,icon:_.jsx(bM,{type:(j=L.widget)==null?void 0:j.type}),onChange:U=>{i==null||i(U,L,e.widget.widgetName,I)}},L.label)}):null]})},(e,t)=>{var n,i;return((n=e.field)==null?void 0:n.label)===((i=t.field)==null?void 0:i.label)&&e.disabled===t.disabled});function one(e){return Array.isArray(e)?e.every(t=>typeof t=="string"):!1}function xM(e){return Array.isArray(e)?e.every(t=>typeof t=="object"&&t!==null&&"label"in t&&"value"in t&&typeof t.label=="string"&&typeof t.value=="string"):!1}const sne=e=>one(e)?e.join(", "):xM(e)?e.map(n=>n.value).join(", "):e,CM=(e,t)=>{if(t==="address"&&typeof e=="object"){const n=e;return`${n.province} ${n.city} ${n.district} ${n.detail}`}if(t==="location"&&typeof e=="object"){const n=e;console.log("location info",n);const i=n.lnglatXY||["",""];return`经度: ${i[0]||""}, 纬度: ${i[1]||""}`}return Array.isArray(e)?e.join(", "):xM(e)?e.map(i=>i.value).join(", "):e};var Y4="Collapsible",[lne]=hp(Y4),[une,q5]=lne(Y4),SM=D.forwardRef((e,t)=>{const{__scopeCollapsible:n,open:i,defaultOpen:o,disabled:l,onOpenChange:c,...f}=e,[m,v]=k5({prop:i,defaultProp:o!=null?o:!1,onChange:c,caller:Y4});return _.jsx(une,{scope:n,disabled:l,contentId:mp(),open:m,onOpenToggle:D.useCallback(()=>v(b=>!b),[v]),children:_.jsx(In.div,{"data-state":Y5(m),"data-disabled":l?"":void 0,...f,ref:t})})});SM.displayName=Y4;var kM="CollapsibleTrigger",cne=D.forwardRef((e,t)=>{const{__scopeCollapsible:n,...i}=e,o=q5(kM,n);return _.jsx(In.button,{type:"button","aria-controls":o.contentId,"aria-expanded":o.open||!1,"data-state":Y5(o.open),"data-disabled":o.disabled?"":void 0,disabled:o.disabled,...i,ref:t,onClick:Qn(e.onClick,o.onOpenToggle)})});cne.displayName=kM;var G5="CollapsibleContent",EM=D.forwardRef((e,t)=>{const{forceMount:n,...i}=e,o=q5(G5,e.__scopeCollapsible);return _.jsx(Ep,{present:n||o.open,children:({present:l})=>_.jsx(dne,{...i,ref:t,present:l})})});EM.displayName=G5;var dne=D.forwardRef((e,t)=>{const{__scopeCollapsible:n,present:i,children:o,...l}=e,c=q5(G5,n),[f,m]=D.useState(i),v=D.useRef(null),b=kr(t,v),y=D.useRef(0),S=y.current,C=D.useRef(0),R=C.current,M=c.open||f,L=D.useRef(M),I=D.useRef(void 0);return D.useEffect(()=>{const j=requestAnimationFrame(()=>L.current=!1);return()=>cancelAnimationFrame(j)},[]),Oa(()=>{const j=v.current;if(j){I.current=I.current||{transitionDuration:j.style.transitionDuration,animationName:j.style.animationName},j.style.transitionDuration="0s",j.style.animationName="none";const U=j.getBoundingClientRect();y.current=U.height,C.current=U.width,L.current||(j.style.transitionDuration=I.current.transitionDuration,j.style.animationName=I.current.animationName),m(i)}},[c.open,i]),_.jsx(In.div,{"data-state":Y5(c.open),"data-disabled":c.disabled?"":void 0,id:c.contentId,hidden:!M,...l,ref:b,style:{"--radix-collapsible-content-height":S?`${S}px`:void 0,"--radix-collapsible-content-width":R?`${R}px`:void 0,...e.style},children:M&&o})});function Y5(e){return e?"open":"closed"}var fne=SM;const _M=fne,TM=EM,pne=({disabled:e,onCheckedChange:t,label:n,val:i,desc:o})=>_.jsx(G4,{title:n,disabled:e,defaultChecked:!0,onCheckedChange:t,className:"pl-[36px]",shortDesc:i}),hne=D.memo(({field:e,onCheckedChange:t})=>{const{widget:n,label:i}=e;if(!n)return null;const{type:o,value:l}=n,c=o;if(!Cd.hasOwnProperty(c))return null;const f=CM(l,c),m=Cd[c]||Cd.unknown,v=D.useCallback(b=>{t(b,e)},[e]);return D.useEffect(()=>{v(!0)},[]),_.jsx(pne,{desc:m,label:i,val:f,onCheckedChange:v})},(e,t)=>{var i,o;return console.log(e,t),((i=e.field.widget)==null?void 0:i.widgetName)===((o=t.field.widget)==null?void 0:o.widgetName)}),mne=({subformField:e,onChange:t})=>{if(!e.widget.value||!e.widget.value.length)return null;const n=e.widget.value,[i,o]=D.useState(!0);return _.jsx(_M,{open:i,onOpenChange:o,children:_.jsx(TM,{children:n.map((l,c)=>_.jsx(_M,{defaultOpen:!0,children:_.jsx(TM,{children:l.map((f,m)=>_.jsx(hne,{field:{label:f.label,widget:{widgetName:f.fieldName,type:f.fieldType,value:f.value}},onCheckedChange:(v,b)=>{t({checked:v,field:b,row:c,col:m,parentFieldName:e.widget.widgetName})}}))})},c))})})},vne=D.memo(({field:e,disabled:t,isSubField:n,onChange:i,onLoaded:o})=>{const{widget:l,label:c}=e;if(!l)return null;const{type:f,value:m}=l,b=CM(m,f);if(!Cd.hasOwnProperty(f))return null;const y=f==="subform";D.useEffect(()=>{o==null||o(e)},[]);const S=R=>{i==null||i(R,e)},C=n?"pl-6":"";return _.jsxs(_.Fragment,{children:[_.jsx(G4,{title:c,disabled:t,defaultChecked:!0,onCheckedChange:S,className:C,shortDesc:y?"":b}),y&&_.jsx(mne,{subformField:e,onChange:R=>{i==null||i(R.checked,R.field,R.parentFieldName,R.row)}})]})},(e,t)=>{var l,c,f,m,v,b;return!(((l=e.field)==null?void 0:l.label)===((c=t.field)==null?void 0:c.label))||!(((m=(f=e.field)==null?void 0:f.widget)==null?void 0:m.widgetName)===((b=(v=t.field)==null?void 0:v.widget)==null?void 0:b.widgetName))||!(e.disabled===t.disabled)?!1:DZ(e==null?void 0:e.field,t==null?void 0:t.field)}),gne=D.memo(({fields:e,children:t})=>_.jsxs(n5,{title:"字段生成",icon:_.jsx(vK,{}),defaultOpen:!0,children:[e.map(n=>_.jsx(W5,{...n})),t]}),(e,t)=>e.fields.length===t.fields.length),yne=D.memo(({props:e,children:t})=>_.jsxs(n5,{title:"字段填写",icon:_.jsx(lT,{}),defaultOpen:!0,children:[e.map(n=>_.jsx(vne,{...n})),t]})),wne=e=>{const{part:t,sendMessage:n}=e,i=Pte(),o=t,l=t4(o),c=cE(o),f=$4(),m=nm(H5),v=Array.isArray(o)&&o.length?o:l?[o]:[];if(v.length){const y=v.map(S=>{var R;const C=uE(S);return{field:C,disabled:i,onLoaded:M=>{const L=m==null?void 0:m.onBeforeFieldCreate(M);f.emit("form-builder-FieldCreated",{field:L,checked:!0}),m==null||m.onAfterFieldCreate(M)},icon:_.jsx(bM,{type:(R=C.widget)==null?void 0:R.type}),onChange:(M,L,I,j)=>{f.emit("form-builder-FieldCheckedChanged",{field:L,checked:M,parentFieldName:I,index:j})}}});return _.jsx(wi,{className:"gap-0 py-0",compact:!0,children:_.jsx(gne,{fields:y})})}if(LZ(o))return i?_.jsx(Dte,{title:o.text,description:o.text,onSelect:y=>{n({text:y},{body:{stage:"design"}})},headless:!0}):null;if(c){const y=m==null?void 0:m.getCurrentWorkingForm();return f.emit("form-builder-FieldsCreatedFinish",y),i?_.jsx(C4,{children:"试试以下建议"}):_.jsx(Z4,{onClick:()=>{f.emit("form-builder-FieldsConfirmed",m==null?void 0:m.getCurrentWorkingForm()),m.onAfterFieldsSave(S=>{f.emit("form-builder-FieldsConfirmed",S)})},children:"保存字段"})}const b=o.state==="done"&&o.text.includes("【确认搭建");return c?null:_.jsx(r5,{...e,children:b?_.jsx(Jte,{sendMessage:n,designDoc:o.text}):null})};class RM{constructor(t){this.Context=t}}class MM extends RM{constructor(){super(...arguments);kt(this,"pluginName","base-form-builder-plugin");kt(this,"publicMethods",{dispatchCreateFormEvent:n=>{const i=new CustomEvent(gs.CREATE_FORM,{detail:{name:n}});return dispatchEvent(i),i},dispatchSaveFieldsEvent:()=>{const n=new CustomEvent(gs.SAVE_FIELDS);return dispatchEvent(n),n},dispatchFieldCreatedEvt:n=>{const i=new CustomEvent(gs.FIELD_CREATED,{detail:{field:n,checked:!0}});return dispatchEvent(i),i},dispatchFieldCheckUpdateEvt:(n,i)=>{const o=new CustomEvent(gs.FIELD_CHECK_UPDATE,{detail:{field:n,checked:i}});return dispatchEvent(o),o},dispatchCreateRleatedFormsEvent:n=>{const i=new CustomEvent(gs.CREATE_RELATED_FORMS,{detail:{fields:n}});return dispatchEvent(i),i}})}}const bne=({style:e,chatVisible:t,onClick:n})=>_.jsx(F5,{style:e,minimal:t,onClick:n,children:"AI表单搭建"});class NM extends MM{constructor(n){super(n);kt(this,"pluginName",H5);kt(this,"currentWorkingFormName","");kt(this,"customComponents",{MessagePart:wne,EntryButton:bne});kt(this,"lifecycleHooks",{onBeforeMessagePartsRender(n){return dE(n,t4)}});kt(this,"dispose",()=>{this.removeEventListeners()});this.addEventListeners()}onAfterFieldCreate(n){var o;const i=this.Context.formMap.get(this.currentWorkingFormName);i&&(i.fields.push(n),i.fieldMap.set(n.label,n),Vte(n)&&n.widget.items.forEach(l=>{i.fieldMap.set(l.label,l)}),xd(n,"dataload")&&i.designInfo.linkInfoMap.set(n.label,{fieldName:n.label,targetFormName:((o=n.widget.loaddataconfig)==null?void 0:o.forms)||""}))}enhanceField(n){const i=V5[n.widget.type];if(!i)return n;const o=this.Context.formMap.get(this.currentWorkingFormName);if(!o)return n;const l=i(this.Context.formMap),c=o.designInfo.linkInfoMap.get(n.label);return c?(console.log("识别到表单中有关联字段,尝试补全关联信息"),l(o,n,c)):n}onBeforeFieldCreate(n){return xd(n,"subform")?(!n.widget.items||n.widget.items.length===0||(n.widget.items=n.widget.items.map(i=>this.enhanceField(i))),n):this.enhanceField(n)}onBeforeFormCreate(n){const i=n.formName||"Unnamed Form";console.log("表单设计信息提取完毕,结构化数据如下:",n),this.Context.formMap.get(i)||this.Context.formMap.set(i,{designInfo:n,fields:[],fieldMap:new Map,formName:i}),this.currentWorkingFormName=i}onFormCreate(n){const i=this.Context.formMap.get(n.formName);if(!i){console.log("未找到已有表单,放弃更新信息");return}i.formId=n.formId,i.appId=n.appId}onAfterFieldsSave(n){const i=this.getCurrentWorkingForm();i&&qte(this.Context.formMap,{isTargetForm:(o,l)=>o===i.formName?(console.log("跳过自身表单"),!1):Wte(l.designInfo)?!0:(console.log("关联信息为空,不处理"),!1),isTargetField:(o,l)=>l.targetFormName===i.formName,fieldProcessor:(o,l,c)=>{var b;const f=(b=l.widget)==null?void 0:b.type;if(!V5[f])return;const m=V5[f];return m(this.Context.formMap)(o,l,c)},onFormProcessed:n})}getCurrentWorkingForm(){return this.Context.formMap.get(this.currentWorkingFormName)}addEventListeners(){}removeEventListeners(){}}const xne={EVENTS:gs,Plugin:NM,createContext:()=>({formMap:new Map})},Cne=({input:e,type:t,onConfirm:n,onCancel:i})=>t==="tool-confirmToCreateForm"||t==="tool-confirmToSaveCheckedFields"?_.jsx(wi,{className:"gap-0 py-0",compact:!0,children:_.jsx(gi,{onClick:()=>{n({body:{stage:t==="tool-confirmToCreateForm"?"build":"continue"}})},children:"确认"})}):t==="tool-confirmToCreateRelatedForm"&&e.forms.length>0?_.jsxs(wi,{className:"gap-0 py-0",compact:!0,children:[_.jsx(gi,{onClick:()=>{n({body:{stage:"continue "}})},children:"确认"}),_.jsx(gi,{onClick:()=>{i&&i()},children:"跳过"})]}):t==="tool-confirmToCreateFieldsForRelatedForm"?_.jsxs(wi,{className:"gap-0 py-0",compact:!0,children:[_.jsx(S4,{items:e.forms,onSelect:o=>{n({body:{stage:"design"}},o)}}),_.jsx(gi,{onClick:()=>{i&&i()},children:"取消"})]}):null,J5="ModelFormBuilderPlugin",OM=new CustomEvent("default"),Sne={"tool-confirmToCreateForm":e=>(t,n)=>e.publicMethods.dispatchCreateFormEvent(n.formName),"tool-confirmToSaveCheckedFields":e=>t=>e.publicMethods.dispatchSaveFieldsEvent(),"tool-confirmToCreateFieldsForRelatedForm":e=>t=>OM,"tool-confirmToCreateRelatedForm":e=>t=>OM},kne=({output:e,input:t,type:n})=>{const i=nm(J5);if(i)return D.useEffect(()=>{const o=Sne[n];if(o){const l=o(i)(e,t);dispatchEvent(l)}},[]),_.jsx(C4,{headless:!0,children:e})},Ene=D.memo(kne,(e,t)=>!(e.output!==t.output||e.type!==t.type||e.input!==t.input)),J4=e=>{const[t,n]=D.useState(!1);return _.jsx(gi,{...e,disabled:t||e.disabled,onClick:i=>{var o;(o=e.onClick)==null||o.call(e,i),n(!0)}})},_ne=({input:e,type:t,sendMessage:n,onConfirm:i,onCancel:o})=>{const[l,c]=D.useState(!1),[f,m]=D.useState(!1),[v,b]=D.useState(!1),y=nm(J5);if(t==="tool-confirmToCreateForm")return _.jsx(wi,{className:"gap-0 py-0",compact:!0,children:_.jsx(J4,{onClick:()=>{var S;(S=y==null?void 0:y.publicMethods)==null||S.dispatchCreateFormEvent(e.formName),n(void 0,{body:{stage:"build",name:e.formName}})},children:"确认"})});if(t==="tool-confirmToSaveCheckedFields"){const S=Object.keys(e.relatedForms),C=S.length,R=`${S.join("、")}暂无已有工作表,将为您继续创建工作表`;return _.jsxs(wi,{className:"gap-0 py-0",compact:!0,children:[_.jsx(J4,{onClick:()=>{var M;(M=y==null?void 0:y.publicMethods)==null||M.dispatchSaveFieldsEvent(),c(!0)},children:"保存字段"}),C&&l&&!f&&!v?_.jsxs(_.Fragment,{children:[R,_.jsx(J4,{onClick:()=>{m(!0)},children:"继续创建?"}),_.jsx(J4,{onClick:()=>{b(!0)},children:"跳过"})]}):null,f?_.jsxs(_.Fragment,{children:["请选择要创建的关联表:",_.jsx(S4,{items:S.map(M=>({title:M,description:""})),onSelect:M=>{n({text:M},{body:{stage:"design",name:M}})}})]}):null]})}return t==="tool-confirmToCreateRelatedForm"&&e.forms.length>0?_.jsxs(wi,{className:"gap-0 py-0",compact:!0,children:[_.jsx(gi,{onClick:()=>{i==null||i({body:{stage:"continue"}})},children:"确认"}),_.jsx(gi,{onClick:()=>{o&&o()},children:"跳过"})]}):t==="tool-confirmToCreateFieldsForRelatedForm"?_.jsxs(wi,{className:"gap-0 py-0",compact:!0,children:[_.jsx(S4,{items:e.forms,onSelect:S=>{i==null||i({body:{stage:"design"}},S)}}),_.jsx(gi,{onClick:()=>{o&&o()},children:"取消"})]}):null};function Tne({prompt:e,responseFormat:t}){const n=[],i=[];(t==null?void 0:t.type)==="json"&&(t.schema==null?n.push({role:"system",content:"Return JSON."}):n.push({role:"system",content:"Return JSON that conforms to the following schema: "+JSON.stringify(t.schema)}));let o=-1;for(let c=e.length-1;c>=0;c--)if(e[c].role==="user"){o=c;break}let l=-1;for(const{role:c,content:f}of e)switch(l++,c){case"system":{n.push({role:"system",content:f});break}case"user":{let m="";for(const v of f)v.type==="text"?m+=v.text:i.push({type:"other",message:`Unsupported user message part type: ${v.type}`});n.push({role:"user",content:m});break}case"assistant":{let m="",v;const b=[];for(const y of f)switch(y.type){case"text":{m+=y.text;break}case"reasoning":{if(l<=o)break;v==null?v=y.text:v+=y.text;break}case"tool-call":{b.push({id:y.toolCallId,type:"function",function:{name:y.toolName,arguments:JSON.stringify(y.input)}});break}}n.push({role:"assistant",content:m,reasoning_content:v,tool_calls:b.length>0?b:void 0});break}case"tool":{for(const m of f){const v=m.output;let b;switch(v.type){case"text":case"error-text":b=v.value;break;case"content":case"json":case"error-json":b=JSON.stringify(v.value);break}n.push({role:"tool",tool_call_id:m.toolCallId,content:b})}break}default:{i.push({type:"other",message:`Unsupported message role: ${c}`});break}}return{messages:n,warnings:i}}var LM=$e({prompt_tokens:ar().nullish(),completion_tokens:ar().nullish(),prompt_cache_hit_tokens:ar().nullish(),prompt_cache_miss_tokens:ar().nullish(),total_tokens:ar().nullish(),completion_tokens_details:$e({reasoning_tokens:ar().nullish()}).nullish()}).nullish(),AM=$e({error:$e({message:ee(),type:ee().nullish(),param:Bl().nullish(),code:ua([ee(),ar()]).nullish()})}),Rne=$e({id:ee().nullish(),created:ar().nullish(),model:ee().nullish(),choices:Fn($e({message:$e({role:$t("assistant").nullish(),content:ee().nullish(),reasoning_content:ee().nullish(),tool_calls:Fn($e({id:ee().nullish(),function:$e({name:ee(),arguments:ee()})})).nullish()}),finish_reason:ee().nullish()})),usage:LM}),Mne=Sy(()=>ds(ua([$e({id:ee().nullish(),created:ar().nullish(),model:ee().nullish(),choices:Fn($e({delta:$e({role:mn(["assistant"]).nullish(),content:ee().nullish(),reasoning_content:ee().nullish(),tool_calls:Fn($e({index:ar(),id:ee().nullish(),function:$e({name:ee().nullish(),arguments:ee().nullish()})})).nullish()}).nullish(),finish_reason:ee().nullish()})),usage:LM}),AM]))),Nne=$e({thinking:$e({type:mn(["enabled","disabled"]).optional()}).optional()});function One({tools:e,toolChoice:t}){e=e!=null&&e.length?e:void 0;const n=[];if(e==null)return{tools:void 0,toolChoice:void 0,toolWarnings:n};const i=[];for(const l of e)l.type==="provider-defined"?n.push({type:"unsupported-tool",tool:l}):i.push({type:"function",function:{name:l.name,description:l.description,parameters:l.inputSchema}});if(t==null)return{tools:i,toolChoice:void 0,toolWarnings:n};const o=t.type;switch(o){case"auto":case"none":case"required":return{tools:i,toolChoice:o,toolWarnings:n};case"tool":return{tools:i,toolChoice:{type:"function",function:{name:t.toolName}},toolWarnings:n};default:{const l=o;throw new WI({functionality:`tool choice type: ${l}`})}}}function IM({id:e,model:t,created:n}){return{id:e!=null?e:void 0,modelId:t!=null?t:void 0,timestamp:n!=null?new Date(n*1e3):void 0}}function DM(e){switch(e){case"stop":return"stop";case"length":return"length";case"content_filter":return"content-filter";case"tool_calls":return"tool-calls";case"insufficient_system_resource":return"error";default:return"unknown"}}var Lne=class{constructor(e,t){this.specificationVersion="v2",this.supportedUrls={},this.modelId=e,this.config=t,this.failedResponseHandler=ld({errorSchema:AM,errorToMessage:n=>n.error.message})}get provider(){return this.config.provider}get providerOptionsName(){return this.config.provider.split(".")[0].trim()}async getArgs({prompt:e,maxOutputTokens:t,temperature:n,topP:i,topK:o,frequencyPenalty:l,presencePenalty:c,providerOptions:f,stopSequences:m,responseFormat:v,tools:b,toolChoice:y,seed:S}){var C,R;const M=(C=await WF({provider:this.providerOptionsName,providerOptions:f,schema:Nne}))!=null?C:{},{messages:L,warnings:I}=Tne({prompt:e,responseFormat:v});o!=null&&I.push({type:"unsupported-setting",setting:"topK"}),S!=null&&I.push({type:"unsupported-setting",setting:"seed"});const{tools:j,toolChoice:U,toolWarnings:P}=One({tools:b,toolChoice:y});return{args:{model:this.modelId,max_tokens:t,temperature:n,top_p:i,frequency_penalty:l,presence_penalty:c,response_format:(v==null?void 0:v.type)==="json"?{type:"json_object"}:void 0,stop:m,messages:L,tools:j,tool_choice:U,thinking:((R=M.thinking)==null?void 0:R.type)!=null?{type:M.thinking.type}:void 0},warnings:[...I,...P]}}async doGenerate(e){var t,n,i,o,l,c,f,m,v,b,y,S,C,R,M,L;const{args:I,warnings:j}=await this.getArgs({...e}),{responseHeaders:U,value:P,rawValue:Z}=await Kf({url:this.config.url({path:"/chat/completions",modelId:this.modelId}),headers:Jf(this.config.headers(),e.headers),body:I,failedResponseHandler:this.failedResponseHandler,successfulResponseHandler:Xf(Rne),abortSignal:e.abortSignal,fetch:this.config.fetch}),B=P.choices[0],W=[],G=B.message.reasoning_content;if(G!=null&&G.length>0&&W.push({type:"reasoning",text:G}),B.message.tool_calls!=null)for(const ke of B.message.tool_calls)W.push({type:"tool-call",toolCallId:(t=ke.id)!=null?t:rd(),toolName:ke.function.name,input:ke.function.arguments});const se=B.message.content;return se!=null&&se.length>0&&W.push({type:"text",text:se}),{content:W,finishReason:DM(B.finish_reason),usage:{inputTokens:(i=(n=P.usage)==null?void 0:n.prompt_tokens)!=null?i:void 0,outputTokens:(l=(o=P.usage)==null?void 0:o.completion_tokens)!=null?l:void 0,totalTokens:(f=(c=P.usage)==null?void 0:c.total_tokens)!=null?f:void 0,reasoningTokens:(b=(v=(m=P.usage)==null?void 0:m.completion_tokens_details)==null?void 0:v.reasoning_tokens)!=null?b:void 0,cachedInputTokens:(S=(y=P.usage)==null?void 0:y.prompt_cache_hit_tokens)!=null?S:void 0},providerMetadata:{[this.providerOptionsName]:{promptCacheHitTokens:(R=(C=P.usage)==null?void 0:C.prompt_cache_hit_tokens)!=null?R:null,promptCacheMissTokens:(L=(M=P.usage)==null?void 0:M.prompt_cache_miss_tokens)!=null?L:null}},request:{body:I},response:{...IM(P),headers:U,body:Z},warnings:j}}async doStream(e){const{args:t,warnings:n}=await this.getArgs({...e}),i={...t,stream:!0,stream_options:{include_usage:!0}},{responseHeaders:o,value:l}=await Kf({url:this.config.url({path:"/chat/completions",modelId:this.modelId}),headers:Jf(this.config.headers(),e.headers),body:i,failedResponseHandler:this.failedResponseHandler,successfulResponseHandler:mC(Mne),abortSignal:e.abortSignal,fetch:this.config.fetch}),c=[];let f="unknown",m,v=!0;const b=this.providerOptionsName;let y=!1,S=!1;return{stream:l.pipeThrough(new TransformStream({start(C){C.enqueue({type:"stream-start",warnings:n})},transform(C,R){var M,L,I,j,U,P,Z,B,W,G,se,ke;if(e.includeRawChunks&&R.enqueue({type:"raw",rawValue:C.rawValue}),!C.success){f="error",R.enqueue({type:"error",error:C.error});return}const ve=C.value;if("error"in ve){f="error",R.enqueue({type:"error",error:ve.error.message});return}v&&(v=!1,R.enqueue({type:"response-metadata",...IM(ve)})),ve.usage!=null&&(m=ve.usage);const de=ve.choices[0];if((de==null?void 0:de.finish_reason)!=null&&(f=DM(de.finish_reason)),(de==null?void 0:de.delta)==null)return;const ge=de.delta,Re=ge.reasoning_content;if(Re&&(y||(R.enqueue({type:"reasoning-start",id:"reasoning-0"}),y=!0),R.enqueue({type:"reasoning-delta",id:"reasoning-0",delta:Re})),ge.content&&(S||(R.enqueue({type:"text-start",id:"txt-0"}),S=!0),y&&(R.enqueue({type:"reasoning-end",id:"reasoning-0"}),y=!1),R.enqueue({type:"text-delta",id:"txt-0",delta:ge.content})),ge.tool_calls!=null){y&&(R.enqueue({type:"reasoning-end",id:"reasoning-0"}),y=!1);for(const be of ge.tool_calls){const Ie=be.index;if(c[Ie]==null){if(be.id==null)throw new hb({data:be,message:"Expected 'id' to be a string."});if(((M=be.function)==null?void 0:M.name)==null)throw new hb({data:be,message:"Expected 'function.name' to be a string."});R.enqueue({type:"tool-input-start",id:be.id,toolName:be.function.name}),c[Ie]={id:be.id,type:"function",function:{name:be.function.name,arguments:(L=be.function.arguments)!=null?L:""},hasFinished:!1};const Q=c[Ie];((I=Q.function)==null?void 0:I.name)!=null&&((j=Q.function)==null?void 0:j.arguments)!=null&&(Q.function.arguments.length>0&&R.enqueue({type:"tool-input-delta",id:Q.id,delta:Q.function.arguments}),pC(Q.function.arguments)&&(R.enqueue({type:"tool-input-end",id:Q.id}),R.enqueue({type:"tool-call",toolCallId:(U=Q.id)!=null?U:rd(),toolName:Q.function.name,input:Q.function.arguments}),Q.hasFinished=!0));continue}const ye=c[Ie];ye.hasFinished||(((P=be.function)==null?void 0:P.arguments)!=null&&(ye.function.arguments+=(B=(Z=be.function)==null?void 0:Z.arguments)!=null?B:""),R.enqueue({type:"tool-input-delta",id:ye.id,delta:(W=be.function.arguments)!=null?W:""}),((G=ye.function)==null?void 0:G.name)!=null&&((se=ye.function)==null?void 0:se.arguments)!=null&&pC(ye.function.arguments)&&(R.enqueue({type:"tool-input-end",id:ye.id}),R.enqueue({type:"tool-call",toolCallId:(ke=ye.id)!=null?ke:rd(),toolName:ye.function.name,input:ye.function.arguments}),ye.hasFinished=!0))}}},flush(C){var R,M,L,I,j,U,P,Z,B;y&&C.enqueue({type:"reasoning-end",id:"reasoning-0"}),S&&C.enqueue({type:"text-end",id:"txt-0"});for(const W of c.filter(G=>!G.hasFinished))C.enqueue({type:"tool-input-end",id:W.id}),C.enqueue({type:"tool-call",toolCallId:(R=W.id)!=null?R:rd(),toolName:W.function.name,input:W.function.arguments});C.enqueue({type:"finish",finishReason:f,usage:{inputTokens:(M=m==null?void 0:m.prompt_tokens)!=null?M:void 0,outputTokens:(L=m==null?void 0:m.completion_tokens)!=null?L:void 0,totalTokens:(I=m==null?void 0:m.total_tokens)!=null?I:void 0,reasoningTokens:(U=(j=m==null?void 0:m.completion_tokens_details)==null?void 0:j.reasoning_tokens)!=null?U:void 0,cachedInputTokens:(P=m==null?void 0:m.prompt_cache_hit_tokens)!=null?P:void 0},providerMetadata:{[b]:{promptCacheHitTokens:(Z=m==null?void 0:m.prompt_cache_hit_tokens)!=null?Z:null,promptCacheMissTokens:(B=m==null?void 0:m.prompt_cache_miss_tokens)!=null?B:null}}})}})),request:{body:i},response:{headers:o}}}},Ane="1.0.33";function PM(e={}){var t;const n=CC((t=e.baseURL)!=null?t:"https://api.deepseek.com"),i=()=>Wu({Authorization:`Bearer ${zF({apiKey:e.apiKey,environmentVariableName:"DEEPSEEK_API_KEY",description:"DeepSeek API key"})}`,...e.headers},`ai-sdk/deepseek/${Ane}`),o=c=>new Lne(c,{provider:"deepseek.chat",url:({path:f})=>`${n}${f}`,headers:i,fetch:e.fetch}),l=c=>o(c);return l.languageModel=o,l.chat=o,l.textEmbeddingModel=c=>{throw new Tb({modelId:c,modelType:"textEmbeddingModel"})},l.imageModel=c=>{throw new Tb({modelId:c,modelType:"imageModel"})},l}PM();const zM=PM({apiKey:"sk-f86317613ca4472b97ee4957af550b5c"})("deepseek-chat"),Ine={name:"buildDateTimeField",description:"Builds a date-time field",inputSchema:$e({format:ee().min(1).max(100).default("yyyy-MM-dd"),label:ee().min(1).max(100),required:dn().default(!1),fieldWidth:mn(["3","4","6","8","9","12"]).default("12"),description:ee().min(1).max(100).default("")}),execute:e=>{const{label:t,required:n,format:i,fieldWidth:o,description:l}=e;return{widget:{type:"datetime",height:34,width:350,enable:!0,visible:!0,allowBlank:!n,funMode:"module",format:i,widgetName:`_widget_${Date.now()}`,widgetNameAlias:"",customCls:null,value:"today",rely:null,labelStyle:t,module:null,libs:[],extendSet:{sort:["datahelp","module","formEvent"],status:!0,triggerField:"",triggerFieldMode:"none",version:1},hint:"",dateLimit:{week:{enable:!1,value:[1,2,6]},start:{enable:!1,mode:"dynamic",value:"yesterday"},end:{enable:!1,mode:"static",value:17620938e5}}},description:l,label:t,lineWidth:parseInt(o),tab:null}}},Dne=$e({label:ee().min(1).max(100),required:dn().default(!1),options:Fn($e({value:ee().min(1).max(100),text:ee().min(1).max(100)})),description:ee().min(1).max(100).optional(),fieldWidth:mn(["3","4","6","8","9","12"]).default("12")}),Pne={name:"buildSelectField",description:"Builds a select field",inputSchema:Dne,execute:e=>{const{label:t,required:n,options:i,fieldWidth:o,description:l}=e;return{widget:{type:"combo",height:34,width:350,enable:!0,visible:!0,allowBlank:!n,labelStyle:t,mode:1,allowAddLinkData:!1,items:i,widgetName:`_widget_${Date.now()}`,widgetNameAlias:"",customCls:null,funMode:"module",module:null,libs:[],extendSet:{sort:["datahelp","module","formEvent"],status:!0,triggerField:"",triggerFieldMode:"none",version:1},colorEnable:!0},description:l,label:t,lineWidth:parseInt(o),tab:null}}},zne={name:"buildInputField",inputSchema:$e({label:ee().min(1).max(100),placeholder:ee().min(1).max(100).optional(),required:dn().default(!1),fieldWidth:mn(["3","4","6","8","9","12"]).default("12"),description:ee().min(1).max(100).optional(),textMode:mn(["text","email","password","number"]).default("text"),regex:ee().min(1).max(1e3).optional()}),execute:e=>{const{label:t,placeholder:n,required:i,textMode:o,regex:l,fieldWidth:c,description:f}=e;return{widget:{type:"text",widgetName:`_widget_${Date.now()}`,widgetNameAlias:"",customCls:null,height:34,width:350,text:null,value:"",enable:!0,visible:!0,hint:n,allowBlank:!i,rely:null,labelStyle:t,libs:[],extendSet:{sort:["datahelp","module","formEvent"],status:!0,triggerField:"",triggerFieldMode:"none",version:1},regex:l,noRepeat:!0,scan:null,textMode:o,generateQR:!1,eventAlert:!0,alertinfo:{icon:"error",tip:n,msg:n},enterClearText:!0},description:f,label:t,lineWidth:parseInt(c),tab:null}}},jne={name:"buildRadioField",inputSchema:$e({label:ee().min(1).max(100),fieldWidth:mn(["3","4","6","8","9","12"]).default("12"),description:ee().min(1).max(100).optional(),required:dn().default(!1),layout:mn(["horizontal","vertical"]).default("horizontal"),options:Fn($e({value:ee().min(1).max(100),text:ee().min(1).max(100),color:ee().min(1).max(7)}))}),execute:e=>{const{label:t,fieldWidth:n,description:i,options:o,required:l,layout:c}=e;return{widget:{type:"radiogroup",enable:!0,visible:!0,allowBlank:!l,funMode:"module",module:null,libs:[],items:o,layout:c,stopCancel:!1,widgetName:`_widget_${Date.now()}`,widgetNameAlias:"",customCls:null,value:null,labelStyle:t,extendSet:{sort:["datahelp","module","formEvent"],status:!0,triggerField:"",triggerFieldMode:"none",version:1},colorEnable:!0},description:i,label:t,lineWidth:parseInt(n),tab:null}}},Fne={name:"confirmToSaveCheckedFields",description:"confirm after fields created and checked",inputSchema:$e({message:ee().min(2).max(100)}),outputSchema:ee()},Une={name:"confirmToCreateForm",description:"confirm to start creating a form",inputSchema:$e({formName:ee().min(2).max(100)}),outputSchema:ee()},Hne={name:"confirmToCreateFieldsForRelatedForm",description:"require user confirm to create fields for related forms.",inputSchema:$e({forms:Fn($e({title:ee().min(2).max(100),description:ee().min(2).max(500)}))}),outputSchema:ee()},Vne={name:"confirmToCreateRelatedForm",description:"require user confirm to create following related forms.",inputSchema:$e({forms:Fn($e({title:ee().min(2).max(100),description:ee().min(2).max(500)}))}),outputSchema:ee()},Bne={name:"promptToCreateRelatedForm",description:"Determines whether to create a related form based on user input. Returns true if a related form should be created, otherwise false.",inputSchema:$e({hasRelatedForm:dn()}),outputSchema:dn()},jM={YES:"Yes, confirmed.",NO:"No, denied."};function FM(e){return Object.keys(e).filter(t=>typeof e[t].execute!="function")}function UM(e){const t=new Set;return Object.keys(e).forEach(n=>{typeof e[n].execute=="function"&&t.add(n)}),t}const _a=()=>`_widget_${Date.now()}`,$ne={name:"buildTextareaField",description:"build a multiline text field",inputSchema:$e({label:ee().min(1).max(100),placeholder:ee().min(1).max(100).optional(),required:dn().default(!1),fieldWidth:mn(["3","4","6","8","9","12"]).default("12"),description:ee().min(1).max(100).optional()}),execute:e=>{const{label:t,required:n,fieldWidth:i,description:o}=e;return{widget:{type:"textarea",widgetName:_a(),widgetNameAlias:"",triggerEvent:!1,customCls:null,height:140,width:734,value:"",enable:!0,visible:!0,allowBlank:!n,labelStyle:t,funMode:"module",module:null,libs:[],extendSet:{sort:["datahelp","module","formEvent"],status:!0,triggerField:"",triggerFieldMode:"none",version:1},noRepeat:!1,alertinfo:{icon:"success",tip:"请设置提示内容"},autoHeight:!0,maxLength:5e3},description:o,label:t,lineWidth:parseInt(i),tab:null}}},Zne={name:"buildCheckBoxGroupField",description:"build a check boxk group field",inputSchema:$e({label:ee().min(1).max(100),fieldWidth:mn(["3","4","6","8","9","12"]).default("12"),description:ee().min(1).max(100).optional(),required:dn().default(!1),layout:mn(["horizontal","vertical"]).default("horizontal"),options:Fn($e({value:ee().min(1).max(100),text:ee().min(1).max(100),color:ee().min(1).max(7)}))}),execute:e=>{const{label:t,fieldWidth:n,description:i,options:o,required:l,layout:c}=e;return{widget:{type:"checkboxgroup",widgetName:_a(),widgetNameAlias:"",customCls:null,enable:!0,visible:!0,allowBlank:!l,labelStyle:t,funMode:"module",module:null,libs:[],extendSet:{sort:["datahelp","module","formEvent"],status:!0,triggerField:"",triggerFieldMode:"none",version:1},items:o,colorEnable:!0,layout:c,allowAddOptions:!1},description:i,label:t,lineWidth:parseInt(n),tab:null}}},Wne=$e({label:ee().min(1).max(100),required:dn().default(!1),options:Fn($e({value:ee().min(1).max(100),text:ee().min(1).max(100)})),description:ee().min(1).max(100).optional(),fieldWidth:mn(["3","4","6","8","9","12"]).default("12")}),qne={name:"buildSelectCheckerField",description:"Builds a select checker field",inputSchema:Wne,execute:e=>{const{label:t,required:n,options:i,fieldWidth:o,description:l}=e;return{widget:{type:"combocheck",widgetName:_a(),widgetNameAlias:"",customCls:null,height:34,width:350,enable:!0,visible:!0,allowBlank:!n,labelStyle:t,funMode:"module",module:null,libs:[],extendSet:{sort:["datahelp","module","formEvent"],status:!0,triggerField:"",triggerFieldMode:"none",version:1},colorEnable:!0,mode:"",allowAddOptions:!1,allowAddLinkData:!1,items:i},description:l,label:t,lineWidth:parseInt(o),tab:null}}},Gne={name:"buildButtonField",description:"build a button field",inputSchema:$e({label:ee().min(1).max(100),theme:mn(["primary","bordered","ghost"]).default("primary"),buttonText:ee().min(1).max(100),backgroundColor:ee().min(1).max(7),required:dn().default(!1),fieldWidth:mn(["3","4","6","8","9","12"]).default("12"),description:ee().min(1).max(100).default("")}),execute:e=>{const{label:t,buttonText:n,backgroundColor:i,theme:o,required:l,fieldWidth:c,description:f}=e,m={primary:"default",bordered:"style1",ghost:"none"};return{widget:{type:"button",widgetName:_a(),widgetNameAlias:"",triggerEvent:0,customCls:null,height:36,width:350,text:n,enable:!0,visible:!0,allowBlank:!l,labelStyle:t,extendSet:{sort:["datahelp","module","formEvent"],status:!0,triggerField:"",triggerFieldMode:"none",funMode:"popupreport"},background:{mode:"color",color:i,position:"center"},mode:"all",theme:m[o]||"default",eventAlert:!1,alertinfo:{icon:"success",tip:"请设置提示内容"}},description:f,label:t,lineWidth:parseInt(c),tab:null}}},Yne={name:"buildFieldSplitline",description:"build a split line to split fields",inputSchema:$e({label:ee().min(1).max(100),fieldWidth:mn(["3","4","6","8","9","12"]).default("12"),lineStyle:mn(["default","ghost","dashed","thin"]).default("default"),labelColor:ee().min(1).max(7).default("#000000"),lineColor:ee().min(1).max(7).default("#000000"),description:ee().min(1).max(100).default("")}),execute:e=>{const{label:t,fieldWidth:n,description:i,labelColor:o,lineColor:l,lineStyle:c}=e;return{widget:{type:"separator",widgetName:_a(),widgetNameAlias:"",customCls:null,enable:!0,visible:!0,allowBlank:!0,labelStyle:t,lineStyle:c,labelColor:o,lineColor:l},description:i,label:t,lineWidth:parseInt(n),tab:null}}},Jne={name:"buildAddressField",description:"Builds a form field for collecting address information from users.",inputSchema:$e({label:ee().min(1).max(100),required:dn().default(!1),fieldWidth:mn(["3","4","6","8","9","12"]).default("12"),description:ee().min(1).max(100).optional(),addressMode:mn(["all","provinceCityDistrict","provinceCity","provinceOnly"]).default("all")}),execute:e=>{const{label:t,required:n,fieldWidth:i,description:o,addressMode:l}=e,c={all:"pcda",provinceCityDistrict:"pcd",provinceCity:"pc",provinceOnly:"p"};return{widget:{type:"address",widgetName:_a(),widgetNameAlias:"",customCls:null,width:720,enable:!0,visible:!0,allowBlank:!n,labelStyle:t,funMode:"module",module:null,libs:[],extendSet:{sort:["datahelp","module","formEvent"],status:!0,triggerField:"",triggerFieldMode:"none",version:1},needDetail:!0,format:c[l]||"all",eventMode:1,seleceMapAddress:!0},description:o,label:t,lineWidth:parseInt(i,10),tab:null}}},Kne={name:"buildLocationField",description:"Builds a location field for a form.",inputSchema:$e({radius:ar().min(0).max(1e4).optional().describe("The radius for location accuracy in meters.").default(1500),label:ee().min(1).max(100).describe("The label for the location field."),limits:my(Fn($e({name:ee().min(1).max(100).describe("The name of the location limit."),position:Fn(ar()).length(2).describe("The [longitude, latitude] of the location limit."),radius:ar().min(0).max(1e4).describe("The radius of the location limit in meters.")}))).default([]).describe("The location limits for the field."),description:ee().max(500).optional().describe("An optional description for the location field."),required:dn().default(!1).describe("Whether the field can be left blank."),fieldWidth:mn(["3","4","6","8","9","12"]).default("12").describe("The width of the field in the form. total is 12.")}),execute:e=>{const{label:t,description:n,required:i,fieldWidth:o,radius:l,limits:c}=e;return{widget:{type:"location",widgetName:_a(),widgetNameAlias:"",customCls:null,enable:!0,visible:!0,allowBlank:!i,labelStyle:t,funMode:"module",module:null,libs:[],extendSet:{sort:["datahelp","module","formEvent"],status:!0,triggerField:"",triggerFieldMode:"none",version:1},adjustable:!0,radius:l,limits:c,lnglatVisible:!0,autoLocation:!0,enablePcLocation:!0},description:n,label:t,lineWidth:parseInt(o,10),tab:null}}},Xne={name:"buildNumberInputField",description:"build a number input field",inputSchema:$e({label:ee().min(1).max(100).describe("The label of the number input field"),min:ar().optional().describe("The minimum value of the number input field"),regex:ee().optional().default("^[-]?[\\d]{0,}[\\.]?[\\d]{0,}$").describe("The regex for validating the number input"),placeholder:ee().min(1).max(100).optional(),max:ar().optional().describe("The maximum value of the number input field"),required:dn().optional().describe("Whether the number input field is required"),description:ee().max(500).optional().describe("The description of the number input field"),fieldWidth:mn(["3","4","6","8","9","12"]).optional().default("12").describe("The width of the number input field in the form layout")}),execute:e=>{const{label:t,fieldWidth:n,description:i,required:o,regex:l,placeholder:c,max:f,min:m}=e;return{widget:{type:"number",widgetName:_a(),widgetNameAlias:"",triggerEvent:!1,customCls:null,height:34,width:350,enable:!0,visible:!0,allowBlank:!o,labelStyle:t,funMode:"module",module:null,libs:[],extendSet:{sort:["datahelp","module","formEvent"],status:!0,triggerField:"",triggerFieldMode:"none",version:1},regex:l,hint:c,noRepeat:!1,alertinfo:{icon:"success",tip:"请设置提示内容"},allowDecimals:!0,allowNegative:!0,maxNumber:f,minNumber:m,displayMode:"percent",precision:null,thousandsSeparator:!1,notround:!0,format:"",afterSuffix:{zh_cn:"",en_us:"",zh_tw:""}},description:i,label:t,lineWidth:parseInt(n),tab:null}}},Qne={name:"buildImageField",description:"Build an image field for a form.",inputSchema:$e({label:ee().min(1).max(100).describe("The label for the image field."),required:dn().describe("Whether the image field is required."),fieldWidth:mn(["3","4","6","8","9","12"]).describe("The width of the field in the form layout."),maxFileCount:ar().optional().describe("Maximum number of files allowed.").default(50),fileSizeLimit:ar().optional().describe("Maximum file size limit in bytes.").default(20971520),watermarkField:Fn($e({text:ee().describe("Field name."),name:ee().describe("Field ID."),type:ee().describe("Field type."),regex:ee().optional().describe("Field regex."),value:ee().describe("Field value."),newText:ee().describe("New field text.")})).optional().describe("Fields to be used for watermarking."),watermarkColor:ee().optional().describe("Color of the watermark text.").default("#616161"),description:ee().max(300).optional().describe("A brief description of the image field.")}),execute:e=>{const{label:t,required:n,fieldWidth:i,description:o,maxFileCount:l,fileSizeLimit:c,watermarkColor:f,watermarkField:m}=e;return{widget:{type:"image",widgetName:_a(),widgetNameAlias:"",customCls:null,height:100,enable:!0,visible:!0,allowBlank:!n,labelStyle:t,funMode:"module",module:null,libs:[],extendSet:{sort:["datahelp","module","formEvent"],status:!0,triggerField:"",triggerFieldMode:"none",version:1},maxFileCount:l,download:!0,is_file_down:!0,check_image_exif:!0,online_edit:!1,online_edit_record:!1,fileSizeLimit:c,fileType:["jpg","jpeg","png","gif","bmp","tif"],compressed:!0,wxOriginalComponent:!0,onlyCamera:!1,preview:!0,watermarkSwitch:!0,watermarkPosition:"center",watermarkFieldTitle:!0,watermarkSize:"14",watermarkColor:f,watermarkField:m,watermarkFixedField:{},previewWidth:450,previewHeight:450,browserCompress:!0,quality:.7},description:o,label:t,lineWidth:parseInt(i,10),tab:null}}},ere={name:"buildAttachmentField",description:"Builds an attachment field for a form.",inputSchema:$e({label:ee().min(1).max(100),placeholder:ee().min(1).max(100).optional(),required:dn().default(!1),fieldWidth:mn(["3","4","6","8","9","12"]).default("12"),description:ee().min(1).max(100).optional(),fileType:mn(["exe","pdf","doc","docx","xls","xlsx","ppt","pptx","txt","jpg","jpeg","png","gif","bmp"]).array().optional().default(["exe","pdf"])}),execute:e=>{const{label:t,required:n,fieldWidth:i,description:o,fileType:l}=e;return{widget:{type:"upload",widgetName:_a(),widgetNameAlias:"",customCls:null,enable:!0,visible:!0,allowBlank:!n,labelStyle:t,maxFileCount:50,download:!0,is_file_down:!0,check_image_exif:!0,online_edit:!0,online_edit_record:!0,fileSizeLimit:10485760,fileType:l},description:o,label:t,lineWidth:parseInt(i),tab:null}}},tre={name:"buildSignatureField",description:"Build a signature field for a form. The signature field should allow users to draw their signature using a mouse or touchscreen.",inputSchema:$e({label:ee().min(1).max(100),placeholder:ee().min(1).max(100).optional(),required:dn().default(!1),fieldWidth:mn(["3","4","6","8","9","12"]).default("12"),description:ee().min(1).max(100).optional()}),execute:e=>{const{label:t,required:n,fieldWidth:i}=e;return{widget:{type:"signature",widgetName:_a(),widgetNameAlias:"",customCls:null,height:34,width:350,enable:!0,visible:!0,allowBlank:!n,rely:null,labelStyle:t},description:null,label:t,lineWidth:parseInt(i,10),tab:null}}},nre={name:"buildMemberSelectField",description:"Build a team member select field for a form. The field allows users to select one members from own orgnization.",inputSchema:$e({label:ee().min(1).max(100),placeholder:ee().min(1).max(100).optional(),required:dn().default(!1),fieldWidth:mn(["3","4","6","8","9","12"]).default("12"),description:ee().min(1).max(100).optional()}),execute:e=>{const{label:t,required:n,fieldWidth:i,description:o}=e;return{widget:{type:"user",widgetName:_a(),widgetNameAlias:"",customCls:null,height:"34",width:350,enable:!0,visible:!0,allowBlank:!n,labelStyle:t,funMode:"module",module:null,libs:[],extendSet:{sort:["datahelp","module","formEvent"],status:!0,triggerField:"",triggerFieldMode:"none",version:1},noRepeat:!1,limit:{},limitWidget:null,valueOption:0},description:o,label:t,lineWidth:parseInt(i),tab:null}}},rre={name:"buildDepartmentSelectField",description:"build a department select field for a form",inputSchema:$e({label:ee().min(1).max(100),placeholder:ee().min(1).max(100).optional(),required:dn().default(!1),fieldWidth:mn(["3","4","6","8","9","12"]).default("12"),description:ee().min(1).max(100).optional()}),execute:e=>{const{label:t,description:n,fieldWidth:i,required:o}=e;return{widget:{type:"dept",widgetName:_a(),widgetNameAlias:"",customCls:null,height:"34",width:350,enable:!0,visible:!0,allowBlank:!o,labelStyle:t,funMode:"module",module:null,libs:[],extendSet:{sort:["datahelp","module","formEvent"],status:!0,triggerField:"",triggerFieldMode:"none",version:1},noRepeat:!1,limit:{},valueOption:0},description:n,label:t,lineWidth:parseInt(i,10),tab:null}}},are={name:"buildDepartmentGroupSelectField",description:"build a multiple department select field for a form",inputSchema:$e({label:ee().min(1).max(100),placeholder:ee().min(1).max(100).optional(),required:dn().default(!1),fieldWidth:mn(["3","4","6","8","9","12"]).default("12"),description:ee().min(1).max(100).optional()}),execute:e=>{const{label:t,description:n,fieldWidth:i,required:o}=e;return{widget:{type:"deptgroup",widgetName:_a(),widgetNameAlias:"",customCls:null,height:"34",width:350,enable:!0,visible:!0,allowBlank:!o,labelStyle:t,funMode:"module",module:null,libs:[],extendSet:{sort:["datahelp","module","formEvent"],status:!0,triggerField:"",triggerFieldMode:"none",version:1},noRepeat:!1,limit:{},valueOption:0},description:n,label:t,lineWidth:parseInt(i,10),tab:null}}},ire={name:"buildMemberGroupSelectField",description:"Build a team member multipyle select field for a form. The field allows users to select multiple members from own orgnization.",inputSchema:$e({label:ee().min(1).max(100),placeholder:ee().min(1).max(100).optional(),required:dn().default(!1),fieldWidth:mn(["3","4","6","8","9","12"]).default("12"),description:ee().min(1).max(100).optional()}),execute:e=>{const{label:t,required:n,fieldWidth:i,description:o}=e;return{widget:{type:"usergroup",widgetName:_a(),widgetNameAlias:"",customCls:null,height:"34",width:350,enable:!0,visible:!0,allowBlank:!n,labelStyle:t,funMode:"module",module:null,libs:[],extendSet:{sort:["datahelp","module","formEvent"],status:!0,triggerField:"",triggerFieldMode:"none",version:1},noRepeat:!1,limit:{},limitWidget:null,valueOption:0},description:o,label:t,lineWidth:parseInt(i),tab:null}}},ore=$e({type:$t("incNumber"),digitsNum:ar().min(2).max(12),resetDuration:mn(["none","day","week","month","year"]),startValue:ar().min(0),fixedLength:dn()}),sre=$e({type:$t("fixedChars"),chars:ee().min(1).max(100)}),lre=$e({type:$t("widget"),widgetName:ee().min(1).max(100)}),ure=ua([ore,sre,lre]),cre={name:"buildSerialNumberField",description:"Builds a serial number field for a form.",inputSchema:$e({label:ee().min(1).max(100).describe("The label for the serial number field."),description:ee().max(500).optional().describe("An optional description for the serial number field."),fieldWidth:mn(["3","4","6","8","9","12"]).default("12").describe("The width of the field in the form. total is 12."),rules:Fn(ure).min(1).describe("The rules for generating the serial number.")}),execute:e=>{const{label:t,description:n,fieldWidth:i,rules:o}=e;return{widget:{type:"sn",widgetName:_a(),widgetNameAlias:"",triggerEvent:0,customCls:null,width:350,enable:!0,visible:!0,labelStyle:"流水号",rules:o,importMode:1},description:n,label:t,lineWidth:parseInt(i),tab:null}}},dre={name:"buildLoadDataBtn",description:"add a button field to load data from another form.",inputSchema:$e({label:ee().min(1).max(100),placeholder:ee().min(1).max(100).optional(),required:dn().default(!1),fieldWidth:mn(["3","4","6","8","9","12"]).default("12"),description:ee().min(1).max(100).optional()}),execute:e=>{const{label:t,required:n,fieldWidth:i,description:o}=e;return{widget:{type:"dataload",widgetName:_a(),widgetNameAlias:"",customCls:null,width:350,text:t,enable:!0,visible:!0,allowBlank:!n,labelStyle:t,loaddataconfig:{mode:"tree",extendSet:{sort:["datahelp","module","formEvent"],status:!0,triggerField:"",triggerFieldMode:"none"},dataloadmode:["add","cover"]},allowAddData:!0,mode:"list"},description:o,label:t,lineWidth:parseInt(i),tab:null}}},fre={name:"buildLinkDataField",description:"Build a field to present multipyle related fields from another form",inputSchema:$e({label:ee().min(1).max(100),required:dn().default(!1),fieldWidth:mn(["3","4","6","8","9","12"]).default("12"),description:ee().min(1).max(100).optional(),relatedFormName:ee().min(1).max(100).optional()}),execute:(e,{experimental_context:t})=>{const{label:n,description:i,required:o,fieldWidth:l}=e,c=t,f=_a();return n&&c&&(c.relatedForms[n]=f),{widget:{type:"linkdata",widgetName:f,widgetNameAlias:"",customCls:null,enable:!0,visible:!0,allowBlank:!o,rely:{widgets:[]},labelStyle:n,linkFilter:{},linkFields:[],allowAdd:!0,refType:"form"},description:i,label:n,lineWidth:parseInt(l,10),tab:null}}},ac=Object.freeze(Object.defineProperty({__proto__:null,buildAddressField:Jne,buildAttachmentField:ere,buildButtonField:Gne,buildCheckBoxGroupField:Zne,buildDateTimeField:Ine,buildDepartmentGroupSelectField:are,buildDepartmentSelectField:rre,buildFieldSplitline:Yne,buildImageField:Qne,buildInputField:zne,buildLinkDataField:fre,buildLoadDataBtn:dre,buildLocationField:Kne,buildMemberGroupSelectField:ire,buildMemberSelectField:nre,buildNumberInputField:Xne,buildRadioField:jne,buildSelectCheckerField:qne,buildSelectField:Pne,buildSerialNumberField:cre,buildSignatureField:tre,buildTextareaField:$ne,confirmToCreateFieldsForRelatedForm:Hne,confirmToCreateForm:Une,confirmToCreateRelatedForm:Vne,confirmToSaveCheckedFields:Fne,promptToCreateRelatedForm:Bne},Symbol.toStringTag,{value:"Module"})),HM=FM(ac),pre=UM(ac);$e({value:ee().min(1).max(100),text:ee().min(1).max(100),color:ee().optional()});const hre=()=>{const e={},t=UM(ac);for(const n of Object.keys(ac)){const i=n;t.has(n)&&(e[n]=ac[i])}return e},mre=()=>{const e={},t=FM(ac);for(const n of Object.keys(ac)){const i=n;t.includes(n)&&(e[n]=ac[i])}return e},vre=hre();mre();const gre=`
532
+ 你是表单字段设计专家,根据设计说明理解业务需求,首先对表单进行介绍,从业务角度输出简要的字段设计说明。
533
+
534
+ 格式:
535
+ - 关联字段 label 命名无需加“关联”二字,直接像设计普通字段一样命名
536
+ - 关联字段创建无需特定分区和说明,像设计普通字段一样设计
537
+ - 统一使用中文
538
+
539
+ 注意:
540
+ - 必须设计一个关联字段,即使在关联表中,也尝试继续生成关联字段(优先使用记录类字段)
541
+ - 如果设计的是关联表,设计流水号字段,用来被其他表单关联
542
+ - 字段数量控制在 10 个以内
543
+ - 涉及到合同、记录相关等信息时,使用关联字段,组织架构相关信息,无需关联
544
+ - 无需设计真实的表单,只需输出字段设计说明
545
+ - 直接根据用户输入推断需求
546
+ - 字段类型尽量使用多样化字段,避免单一字段类型
547
+
548
+ 输出示例:
549
+
550
+ 创建一张“用户信息”表,用于系统中管理和维护所有用户的基本资料和账户状态,支持用户身份识别、权限管理及后续业务流程的对接。该表是用户相关业务的核心表单,广泛应用于认证授权、客户管理、营销活动、服务交付等环节。
551
+
552
+ **字段列举:**
553
+ - 用户编号(唯一标识,主键)
554
+ - 用户姓名(真实姓名)
555
+ - 用户昵称(系统显示名)
556
+ - 账户类型(如普通用户、管理员、VIP客户等)
557
+ - 手机号码(用于登录和联系)
558
+ - 电子邮箱(用于通知与找回密码)
559
+ - 性别
560
+ - 出生日期
561
+ - 所在地区(省市区)
562
+ - 详细地址
563
+ - 注册渠道(如官网、App、第三方授权)
564
+ - 用户状态(激活、冻结、注销等)
565
+ - 最近登录时间
566
+ - 登录次数
567
+ - 关联账户(如公司/组织、合作伙伴)
568
+ - 用户等级(积分等级或会员等级)
569
+ - 备注说明
570
+
571
+ **关联说明:**
572
+ - 关联订单表(用户可关联多个订单)
573
+ - 关联权限角色表(实现权限管理)
574
+ - 关联营销活动参与记录表(用户参与的营销活动)
575
+ - 关联客服工单表(用户反馈与支持)
576
+
577
+ **设计说明:**
578
+ 该表结构设计兼顾用户身份信息的完整性与业务拓展需求,注重数据的规范化和关联性。字段覆盖用户基本身份信息及账户状态,有助于实现精准营销及服务管理。可根据实际业务需求扩展用户画像字段(如兴趣爱好、行为标签),或增加多账户、多设备管理等功能。与其他业务实体的关联设计方便后续业务流程的整合和数据分析。
579
+
580
+ `;class K4{constructor(t,n,i={},o=()=>({})){kt(this,"agent");kt(this,"confirmInfo");kt(this,"context",{});kt(this,"buildPayload");i&&(this.context={...this.context,...i}),this.agent=new f$({...t,experimental_context:this.context}),this.buildPayload=o,this.confirmInfo=n}static create(t,n,i={},o=()=>({})){return new K4(t,n,i,o)}getCtx(){return this.context}getResp(t,n){const i=b$({originalMessages:t,execute:async({writer:o})=>{const l=this.agent.stream({messages:Ik(t)});o.merge(l.toUIMessageStream({originalMessages:t}));for await(const c of l.fullStream);this.confirmInfo&&(this.confirmInfo.data.payload=this.buildPayload(this.context,n),o.write(this.confirmInfo))}});return Ek({stream:i})}}new K4({system:gre,model:zM},{type:"data-confirm",data:{type:"tool-confirmToCreateForm",payload:{formName:""}}},{},(e,t)=>({formName:t.name}));const yre=`
581
+ 你是表单字段构建专家,根据上下文设计说明理解业务需求,完成表单字段构建,生成字段描述 json。设计文档中字段设计完毕后,立即停止。
582
+
583
+ 输出:
584
+ - 仅包含工具的结构化输出,不包含任何其他文字说明
585
+ - 严格按设计说明的个数,严禁新增、遗漏字段
586
+ - 设计中提到要关联其他表的字段,必须使用关联字段设计工具
587
+ -
588
+
589
+ 注意:
590
+ - 关联字段有最高优先级,如果上下文提到字段需要关联其他表,必须使用关联字段设计工具
591
+ - 涉及到合同、记录相关等字段信息时,使用关联字段
592
+ - 表单布局需要紧凑合理
593
+ - 关联表单无需重复设计字段反向关联
594
+ - 对于身份证号、手机号等字段,使用文本字段,并添加相应的正则表达式校验
595
+ - 字段设计时,注意字段的必填项和选填项
596
+ - 字段类型尽量使用多样化字段,避免单一字段类型
597
+ - 请至少使用(buildLinkDataField)工具设计一个关联字段
598
+ `,wre={name:"promptToStop",description:"stop when all fields have been built and no more fields are needed to be added.",inputSchema:$e({hasRelatedForm:dn()}),outputSchema:dn(),execute:e=>e.hasRelatedForm},bre={...vre,promptToStop:wre},xre=({steps:e})=>e.some(t=>t.content.some(n=>n.type==="tool-result"&&n.toolName==="promptToStop"));new K4({system:yre,model:zM,tools:bre,toolChoice:"required",stopWhen:xre},{type:"data-confirm",data:{type:"tool-confirmToSaveCheckedFields",payload:{formName:"",relatedForms:{}}}},{relatedForms:{}},(e,t)=>(console.log("ctx",e),{formName:t.name,relatedForms:e.relatedForms}));const Cre=e=>{const{part:t,id:n,index:i,sendMessage:o,role:l,addToolOutput:c}=e,f=t,m=`message-${n}-part-${i}-${f.type}`;if(f.type==="text"&&f.text)return _.jsx("div",{children:_.jsx(wi,{className:xt({"w-fit wrap-break-words rounded-2 px-3 py-2 text-right text-white":l==="user","bg-transparent px-0 py-0 text-left":l==="assistant"}),"data-testid":"message-content",style:l==="user"?{backgroundColor:"#006cff"}:void 0,children:_.jsx(x4,{id:n,content:s3(f.text)})})},m);if(f.type==="data-confirm"){const v=f.data;return _.jsx(_ne,{input:v.payload,sendMessage:o,onCancel:()=>{},type:v.type},m)}if(fd(f)){const v=Lh(f);if(v==="promptToCreateRelatedForm"&&f.state==="output-available")return _.jsx("div",{children:_.jsx(wi,{className:"gap-0 py-0",compact:!0,children:_.jsx(x4,{id:n,content:s3(f.output?"是否继续创建关联表?":"表单创建已完成。")})})},m);if(f.state==="output-available"&&pre.has(v))return _.jsx("div",{children:_.jsx(wi,{className:"gap-0 py-0",compact:!0,children:(f==null?void 0:f.output)&&_.jsx(W5,{field:f.output})})},m);if(HM.includes(v)&&f.state==="input-available"){const b=D.useCallback(S=>{c({toolCallId:f.toolCallId,tool:v,output:jM.YES}),o(void 0,S)},[f.toolCallId,v]),y=D.useCallback(()=>{c({toolCallId:f.toolCallId,tool:v,output:jM.NO}),o()},[f.toolCallId,v]);return _.jsx(Cne,{input:f.input,onConfirm:b,onCancel:y,type:f.type},m)}if(HM.includes(v)&&f.state==="output-available"){const b=f;return _.jsx(Ene,{input:b.input,output:b.output,type:b.type},f.toolCallId)}}return null};class VM extends MM{constructor(){super(...arguments);kt(this,"pluginName",J5);kt(this,"customComponents",{MessagePart:Cre})}}const Sre={Plugin:VM,createContext:()=>({})},BM="form-filling-plugin",rm={FORM_STRUCTURE_READY:"form-filling-structure-ready",FIELD_FILLED_UPDATE:"form-filling-field-filling-update"},kre=()=>_.jsx(_.Fragment,{children:"我可以为您解析文本内容,智能填写到表单字段,请方输入内容开始创建"}),Ere=e=>{const t=nm(e);return t?t.Context:null},_re=e=>{const{part:t,id:n}=e,i=t,o=t4(i),l=Ere(BM),c=cE(i);l&&(l.conversationId=n);const f=$4(),m=Array.isArray(i)&&i.length?i:o?[i]:[];if(m.length&&l){const v=m.map(b=>{const y=uE(b);if(!l.fieldMap.has(y.fieldName)&&!l.subFieldsNameMap.has(y.fieldName))return console.warn("unregistered field:",y.fieldName,l.fieldMap),null;const S=sne(y.value);return{field:{label:y.label,widget:{widgetName:y.fieldName,type:y.fieldType,value:y.value}},onLoaded:C=>{var R;C.widget.value=S,l.valueMap.set((R=C.widget)==null?void 0:R.widgetName,S),f.emit(rm.FIELD_FILLED_UPDATE,{field:C,checked:!0})},onChange:(C,R,M,L)=>{var I;C&&l.valueMap.set((I=R.widget)==null?void 0:I.widgetName,S),f.emit(rm.FIELD_FILLED_UPDATE,{field:R,checked:C,parentFieldName:M,rowIndex:L})}}});return _.jsx(wi,{className:"gap-0 py-0",compact:!0,children:_.jsx(yne,{props:v.filter(b=>b!==null)})})}return c?_.jsx(Z4,{children:"保存"}):_.jsx(r5,{...e})},Tre=({style:e,onClick:t})=>_.jsx(F5,{style:e,onClick:t,entryVariant:"ghost",icon:_.jsx(uT,{}),children:"AI填写"}),Rre=({variant:e="default"})=>{const t=e==="default"?20:24;return _.jsx(n4,{name:"AI填写",icon:_.jsx(uT,{size:t}),variant:e})};class $M extends RM{constructor(){super(...arguments);kt(this,"pluginName",BM);kt(this,"customComponents",{OpeningLines:kre,MessagePart:_re,EntryButton:Tre,AvatarAndName:Rre});kt(this,"sdkInst");kt(this,"init",n=>{this.sdkInst=n,n.eventBus.on(rm.FORM_STRUCTURE_READY,this.handleFormStructureReady)});kt(this,"dispose",()=>{this.sdkInst.eventBus.off(rm.FORM_STRUCTURE_READY,this.handleFormStructureReady)});kt(this,"handleFormStructureReady",n=>{const{fields:i}=n;!i||!i.length||i.forEach(o=>{var l,c;if((l=this.Context)==null||l.fieldMap.set(o.widget.widgetName,o),o.widget.type==="subform")for(const f of o.widget.items)(c=this.Context)==null||c.subFieldsNameMap.set(f.widget.widgetName,o.widget.widgetName)})});kt(this,"lifecycleHooks",{onBeforeMessagePartsRender:n=>{const i=IZ(n,(o,l)=>{var m,v;const c=sp(o),f=sp(l);return((m=c==null?void 0:c.field)==null?void 0:m.fieldName)==((v=f==null?void 0:f.field)==null?void 0:v.fieldName)});return dE(i,t4)},onBeforeMessagesClear:()=>{var o;const n=((o=this.Context)==null?void 0:o.conversationId)||"";if(!n)return;(async()=>{await fetch("http://192.168.50.10:3001/api/form/conversation/clear",{method:"POST",body:JSON.stringify({conversationId:n})}),this.Context=ZM.createContext()})()},onBeforeMessageSend:n=>{var o;const i=Array.from(((o=this.Context)==null?void 0:o.fieldMap.values())||[]);return{...n,options:{body:{stage:"fill",formStructure:i}}}}})}}const ZM={EVENTS:rm,Plugin:$M,createContext:()=>({fieldMap:new Map,valueMap:new Map,subFieldsNameMap:new Map,conversationId:""})},WM=D.forwardRef(({children:e,zIndex:t,padding:n,disableGradient:i},o)=>_.jsx("div",{ref:o,style:{position:"fixed",top:0,left:0,width:"100%",height:"100%",background:i?"#fff":"linear-gradient(180deg, #DBE9FF 0%, #E9FFFD 100%)",padding:n||0,zIndex:t},children:e}));WM.displayName="AbsFullscreenGradientBg";const qM=({children:e,width:t,height:n,padding:i,borderWidth:o=2,borderRadius:l=12})=>_.jsxs("div",{style:{position:"relative",width:t!=null?t:"100%",height:n!=null?n:"100%",borderRadius:l,overflow:"hidden"},children:[_.jsx("div",{style:{position:"absolute",inset:"-150%",background:"conic-gradient(from 0deg, #0265FF, #00D4FF, #0265FF, #00D4FF, #0265FF)",animation:"borderRotate 4s linear infinite"}}),_.jsx("div",{style:{position:"absolute",inset:o,borderRadius:l-2,background:"white",zIndex:1,padding:i||0},children:e}),_.jsx("style",{children:`
599
+ @keyframes borderRotate {
600
+ 0% {
601
+ transform: rotate(0deg);
602
+ }
603
+ 100% {
604
+ transform: rotate(360deg);
605
+ }
606
+ }
607
+ `})]}),Mre=()=>_.jsx(qM,{borderRadius:100,width:136,height:34,borderWidth:1,children:_.jsxs("div",{className:"flex items-center gap-[6px] h-[31px] ml-[16px]",children:[_.jsx(hK,{}),_.jsx("span",{className:"text-[14px] text-[#0265FF]",children:"字段生成中"}),_.jsxs("div",{className:"flex gap-[2px] flex-shrink-0 relative -left-[4px] top-[3px]",children:[_.jsx("div",{className:"w-[2px] h-[2px] rounded-full bg-[#0265FF] flex-shrink-0",style:{animation:"pulse 1.4s ease-in-out infinite",animationDelay:"0s",marginRight:"2px"}}),_.jsx("div",{className:"w-[2px] h-[2px] rounded-full bg-[#0265FF] flex-shrink-0",style:{animation:"pulse 1.4s ease-in-out infinite",animationDelay:"0.2s",marginRight:"2px"}}),_.jsx("div",{className:"w-[2px] h-[2px] rounded-full bg-[#0265FF] flex-shrink-0",style:{animation:"pulse 1.4s ease-in-out infinite",animationDelay:"0.4s"}})]}),_.jsx("style",{children:`
608
+ @keyframes pulse {
609
+ 0%, 60%, 100% {
610
+ opacity: 0.3;
611
+ transform: scale(1);
612
+ }
613
+ 30% {
614
+ opacity: 1;
615
+ transform: scale(1.2);
616
+ }
617
+ }
618
+ `})]})}),Nre=({children:e,width:t,height:n,style:i,childrenContainerStyle:o})=>_.jsxs("div",{style:{position:"relative",width:t!=null?t:"100%",height:n!=null?n:"100%",overflow:"hidden",borderRadius:"10px 10px 0 0",...i},children:[_.jsx("div",{style:{position:"absolute",width:"100%",height:"100%",top:0,left:0,background:"#F4FFFC"}}),_.jsx("div",{style:{position:"absolute",width:"100%",height:"100%",top:0,left:0,background:"radial-gradient(circle at 25% -15%, #EEFFCE 0%, transparent 55%)",filter:"blur(70px)",animation:"floatCircle1 4s ease-in-out infinite"}}),_.jsx("div",{style:{position:"absolute",width:"100%",height:"100%",top:0,left:0,background:"radial-gradient(circle at 80% 200%, #CEFFFB 0%, transparent 45%)",filter:"blur(70px)",animation:"floatCircle2 5s ease-in-out infinite 0.5s"}}),_.jsx("div",{style:{position:"relative",zIndex:1,width:"100%",height:"100%",...o},children:e}),_.jsx("style",{children:`
619
+ @keyframes floatCircle1 {
620
+ 0%, 100% {
621
+ transform: translate(0%, 0%) scale(1.2);
622
+ opacity: 1;
623
+ }
624
+ 25% {
625
+ transform: translate(-15%, 20%) scale(1.6);
626
+ opacity: 0.95;
627
+ }
628
+ 50% {
629
+ transform: translate(12%, -15%) scale(0.9);
630
+ opacity: 1;
631
+ }
632
+ 75% {
633
+ transform: translate(-10%, 10%) scale(1.4);
634
+ opacity: 0.9;
635
+ }
636
+ }
637
+
638
+ @keyframes floatCircle2 {
639
+ 0%, 100% {
640
+ transform: translate(0%, 0%) scale(1.1);
641
+ opacity: 1;
642
+ }
643
+ 30% {
644
+ transform: translate(18%, -12%) scale(1.5);
645
+ opacity: 1;
646
+ }
647
+ 60% {
648
+ transform: translate(-12%, 15%) scale(0.85);
649
+ opacity: 0.95;
650
+ }
651
+ 85% {
652
+ transform: translate(14%, -8%) scale(1.3);
653
+ opacity: 0.9;
654
+ }
655
+ }
656
+ `})]});var X4="Dialog",[GM]=hp(X4),[Ore,ys]=GM(X4),YM=e=>{const{__scopeDialog:t,children:n,open:i,defaultOpen:o,onOpenChange:l,modal:c=!0}=e,f=D.useRef(null),m=D.useRef(null),[v,b]=k5({prop:i,defaultProp:o!=null?o:!1,onChange:l,caller:X4});return _.jsx(Ore,{scope:t,triggerRef:f,contentRef:m,contentId:mp(),titleId:mp(),descriptionId:mp(),open:v,onOpenChange:b,onOpenToggle:D.useCallback(()=>b(y=>!y),[b]),modal:c,children:n})};YM.displayName=X4;var JM="DialogTrigger",Lre=D.forwardRef((e,t)=>{const{__scopeDialog:n,...i}=e,o=ys(JM,n),l=kr(t,o.triggerRef);return _.jsx(In.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Q5(o.open),...i,ref:l,onClick:Qn(e.onClick,o.onOpenToggle)})});Lre.displayName=JM;var K5="DialogPortal",[Are,KM]=GM(K5,{forceMount:void 0}),XM=e=>{const{__scopeDialog:t,forceMount:n,children:i,container:o}=e,l=ys(K5,t);return _.jsx(Are,{scope:t,forceMount:n,children:D.Children.map(i,c=>_.jsx(Ep,{present:n||l.open,children:_.jsx(S5,{asChild:!0,container:o,children:c})}))})};XM.displayName=K5;var Q4="DialogOverlay",QM=D.forwardRef((e,t)=>{const n=KM(Q4,e.__scopeDialog),{forceMount:i=n.forceMount,...o}=e,l=ys(Q4,e.__scopeDialog);return l.modal?_.jsx(Ep,{present:i||l.open,children:_.jsx(Dre,{...o,ref:t})}):null});QM.displayName=Q4;var Ire=Jh("DialogOverlay.RemoveScroll"),Dre=D.forwardRef((e,t)=>{const{__scopeDialog:n,...i}=e,o=ys(Q4,n);return _.jsx(N5,{as:Ire,allowPinchZoom:!0,shards:[o.contentRef],children:_.jsx(In.div,{"data-state":Q5(o.open),...i,ref:t,style:{pointerEvents:"auto",...i.style}})})}),Sd="DialogContent",eN=D.forwardRef((e,t)=>{const n=KM(Sd,e.__scopeDialog),{forceMount:i=n.forceMount,...o}=e,l=ys(Sd,e.__scopeDialog);return _.jsx(Ep,{present:i||l.open,children:l.modal?_.jsx(Pre,{...o,ref:t}):_.jsx(zre,{...o,ref:t})})});eN.displayName=Sd;var Pre=D.forwardRef((e,t)=>{const n=ys(Sd,e.__scopeDialog),i=D.useRef(null),o=kr(t,n.contentRef,i);return D.useEffect(()=>{const l=i.current;if(l)return uR(l)},[]),_.jsx(tN,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Qn(e.onCloseAutoFocus,l=>{var c;l.preventDefault(),(c=n.triggerRef.current)==null||c.focus()}),onPointerDownOutside:Qn(e.onPointerDownOutside,l=>{const c=l.detail.originalEvent,f=c.button===0&&c.ctrlKey===!0;(c.button===2||f)&&l.preventDefault()}),onFocusOutside:Qn(e.onFocusOutside,l=>l.preventDefault())})}),zre=D.forwardRef((e,t)=>{const n=ys(Sd,e.__scopeDialog),i=D.useRef(!1),o=D.useRef(!1);return _.jsx(tN,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:l=>{var c,f;(c=e.onCloseAutoFocus)==null||c.call(e,l),l.defaultPrevented||(i.current||(f=n.triggerRef.current)==null||f.focus(),l.preventDefault()),i.current=!1,o.current=!1},onInteractOutside:l=>{var m,v;(m=e.onInteractOutside)==null||m.call(e,l),l.defaultPrevented||(i.current=!0,l.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const c=l.target;((v=n.triggerRef.current)==null?void 0:v.contains(c))&&l.preventDefault(),l.detail.originalEvent.type==="focusin"&&o.current&&l.preventDefault()}})}),tN=D.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:i,onOpenAutoFocus:o,onCloseAutoFocus:l,...c}=e,f=ys(Sd,n),m=D.useRef(null),v=kr(t,m);return wT(),_.jsxs(_.Fragment,{children:[_.jsx(c5,{asChild:!0,loop:!0,trapped:i,onMountAutoFocus:o,onUnmountAutoFocus:l,children:_.jsx(o5,{role:"dialog",id:f.contentId,"aria-describedby":f.descriptionId,"aria-labelledby":f.titleId,"data-state":Q5(f.open),...c,ref:v,onDismiss:()=>f.onOpenChange(!1)})}),_.jsxs(_.Fragment,{children:[_.jsx(Fre,{titleId:f.titleId}),_.jsx(Hre,{contentRef:m,descriptionId:f.descriptionId})]})]})}),X5="DialogTitle",nN=D.forwardRef((e,t)=>{const{__scopeDialog:n,...i}=e,o=ys(X5,n);return _.jsx(In.h2,{id:o.titleId,...i,ref:t})});nN.displayName=X5;var rN="DialogDescription",aN=D.forwardRef((e,t)=>{const{__scopeDialog:n,...i}=e,o=ys(rN,n);return _.jsx(In.p,{id:o.descriptionId,...i,ref:t})});aN.displayName=rN;var iN="DialogClose",jre=D.forwardRef((e,t)=>{const{__scopeDialog:n,...i}=e,o=ys(iN,n);return _.jsx(In.button,{type:"button",...i,ref:t,onClick:Qn(e.onClick,()=>o.onOpenChange(!1))})});jre.displayName=iN;function Q5(e){return e?"open":"closed"}var oN="DialogTitleWarning",[dce,sN]=ZK(oN,{contentName:Sd,titleName:X5,docsSlug:"dialog"}),Fre=({titleId:e})=>{const t=sN(oN),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
657
+
658
+ If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
659
+
660
+ For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return D.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},Ure="DialogDescriptionWarning",Hre=({contentRef:e,descriptionId:t})=>{const i=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${sN(Ure).contentName}}.`;return D.useEffect(()=>{var l;const o=(l=e.current)==null?void 0:l.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(i))},[i,e,t]),null},Vre=YM,Bre=XM,lN=QM,uN=eN,cN=nN,dN=aN;const $re=Vre,Zre=Bre,fN=D.forwardRef(({className:e,position:t="fixed",...n},i)=>_.jsx(lN,{ref:i,className:xt("inset-0 z-50 bg-black/30 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",t==="absolute"?"absolute":"fixed",e),...n}));fN.displayName=lN.displayName;const pN=D.forwardRef(({className:e,children:t,container:n,...i},o)=>_.jsxs(Zre,{container:n,children:[_.jsx(fN,{position:n?"absolute":"fixed"}),_.jsx(uN,{style:{padding:0},ref:o,className:xt("left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",n?"absolute":"fixed",e),...i,children:t})]}));pN.displayName=uN.displayName;const hN=({className:e,...t})=>_.jsx("div",{className:xt("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});hN.displayName="DialogHeader";const mN=({className:e,...t})=>_.jsx("div",{className:xt("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});mN.displayName="DialogFooter";const vN=D.forwardRef(({className:e,...t},n)=>_.jsx(cN,{ref:n,className:xt("text-lg font-semibold leading-none tracking-tight",e),...t}));vN.displayName=cN.displayName;const gN=D.forwardRef(({className:e,...t},n)=>_.jsx(dN,{ref:n,className:xt("text-sm text-muted-foreground",e),...t}));gN.displayName=dN.displayName;function Wre({open:e,onOpenChange:t,title:n,description:i,linkText:o="留在此页",onLinkClick:l,cancelText:c="不保存",onCancel:f,confirmText:m="保存并继续",onConfirm:v,container:b,showLink:y=!0,showCancel:S=!0}){const C={borderRadius:4,padding:"6px 20px"};return _.jsx($re,{open:e,onOpenChange:t,children:_.jsxs(pN,{container:b,className:xt("w-[480px] max-w-[480px] p-0 gap-0 rounded-[10px] border-none","shadow-[0px_0px_10px_0px_rgba(0,0,0,0.04)]","[&>button]:hidden"),children:[_.jsxs(hN,{className:"flex flex-row items-start gap-[10px] p-9 pb-0",children:[_.jsx("div",{className:"size-[30px] shrink-0 text-[#0265FF]",children:_.jsx(bK,{})}),_.jsxs("div",{className:"flex flex-col gap-2",children:[_.jsx(vN,{className:"text-[16px] font-[700] text-[#030303] leading-normal",children:n}),i&&_.jsx(gN,{className:"text-[14px] text-[#666] leading-normal",children:i})]})]}),_.jsxs(mN,{className:"flex flex-row items-center !justify-between p-9 pt-6",children:[y?_.jsx("button",{type:"button",onClick:l,className:"text-[14px] text-[#0265ff] hover:text-[#0265ff]/80 bg-transparent border-none cursor-pointer",children:o}):_.jsx("div",{}),_.jsxs("div",{className:"flex items-center gap-3",children:[S&&_.jsx("button",{type:"button",onClick:f,style:C,className:xt("h-8 px-5 py-1.5 rounded border border-[#e0e0e0]","text-[14px] text-[#030303] bg-white","hover:bg-gray-50 cursor-pointer"),children:c}),_.jsx("button",{type:"button",onClick:v,style:C,className:xt("h-8 px-5 py-1.5 rounded","text-[14px] text-white bg-[#0265ff]","hover:bg-[#0265ff]/80 cursor-pointer border-none"),children:m})]})]})]})})}const qre=({title:e,tips:t,style:n,className:i,active:o,onBackClick:l,onSave:c,onCancel:f,dialogContainer:m})=>{const[v,b]=D.useState(!1),y=yi("w-[94px] h-[34px] flex items-center justify-center rounded-[4px]"),S=_.jsxs(_.Fragment,{children:[_.jsxs("div",{className:"flex items-center gap-3",children:[_.jsx(tm,{icon:_.jsx(CK,{}),onClick:()=>b(!0),className:"text-[#0265FF] hover:text-[#0265FF]"}),_.jsx("span",{className:"text-[#121111] text-[16px] font-[700]",children:e}),t&&o&&_.jsxs("div",{className:"flex items-center gap-[6px] text-[#999999] text-[12px]",children:[_.jsx(xK,{}),t]})]}),_.jsxs("div",{className:"flex items-center gap-[10px]",children:[c&&_.jsx("button",{onClick:c,className:yi(y,"bg-[#0265FF] hover:opacity-90 text-white text-[14px]"),children:"保存"}),f&&_.jsx("button",{onClick:()=>{b(!0),console.log("click onCancel")},className:yi(y,"text-[#121111] text-[14px] bg-[#fff] border border-solid border-[#e0e0e0] hover:bg-[#f0f0f0]"),children:"取消"})]}),_.jsx(Wre,{container:m,open:v,onOpenChange:b,title:"AI表单搭建有修改,是否保存?",description:"您修改了AI表单搭建但没有保存,是否需要保存并继续?",onLinkClick:()=>b(!1),onCancel:()=>{b(!1),f==null||f(),l==null||l()},onConfirm:()=>{b(!1),c==null||c()}})]}),C=yi({"border-b border-solid border-[#e0e0e0]":!o});return o?_.jsx(Nre,{height:52,style:n,childrenContainerStyle:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"0 20px"},children:S}):_.jsx("div",{style:n,className:yi("w-full h-[52px] flex items-center justify-between px-[20px]",i,C),children:S})},Gre=()=>_.jsx("div",{style:{borderRadius:10,width:"100%",height:"100%",border:"1px dashed var(---e0e0e0, #E0E0E0)"}}),Yre=({zIndex:e=1,children:t,title:n,tips:i,active:o,fullscreen:l,padding:c=10,className:f,empty:m,rightSpaceWidth:v,streaming:b,onBackClick:y,onSave:S,onCancel:C,style:R})=>{const M=l?0:c,L=l?0:v,I=D.useRef(null),j=_.jsxs(_.Fragment,{children:[_.jsx(qre,{title:n,tips:i,active:o,className:f,onBackClick:y,onSave:b?void 0:S,onCancel:b?void 0:C,style:R,dialogContainer:I.current}),_.jsx("div",{className:yi("m-[20px] w-[calc(100%-40px)] h-[calc(100%-90px)] relative p-[10px] overflow-x-hidden overflow-y-auto",{"opacity-60":b}),children:m?_.jsx(Gre,{}):t}),b&&_.jsx("div",{className:"absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2",children:_.jsx(Mre,{})})]});return _.jsx(WM,{zIndex:e,padding:M,disableGradient:l,ref:I,children:l?j:_.jsx(qM,{width:L?`calc(100% - ${L}px)`:"100%",children:j})})},Jre=()=>D.createElement("slot");class yN extends HTMLElement{constructor(){super();kt(this,"root",null);kt(this,"shadowContainer",null);kt(this,"shadowWrapper",null);kt(this,"_props",{});kt(this,"_childrenOverride",null);kt(this,"_externalRootEl",null)}static get observedAttributes(){return["title","tips","fullscreen","streaming","empty","z-index","padding","right-space-width","active","fields-count"]}connectedCallback(){this._externalRootEl||(this.setupShadowDOM(),this.render())}disconnectedCallback(){this.root&&(this.root.unmount(),this.root=null),this.shadowWrapper&&this.shadowWrapper.parentNode&&(this.shadowWrapper.parentNode.removeChild(this.shadowWrapper),this.shadowWrapper=null)}setRootEl(n){this._externalRootEl===n&&!n||(this._externalRootEl=n,this.isConnected&&(this.cleanup(),this.setupShadowDOM(),this.render()))}cleanup(){this.root&&(this.root.unmount(),this.root=null),this.shadowWrapper&&this.shadowWrapper.parentNode&&(this.shadowWrapper.parentNode.removeChild(this.shadowWrapper),this.shadowWrapper=null)}attributeChangedCallback(n,i,o){i!==o&&(this.updatePropsFromAttributes(),this.render())}injectStyles(n){var l;const i=this._externalRootEl?(l=this.shadowWrapper)==null?void 0:l.shadowRoot:this.shadowRoot;if(!i)return;const o=new CSSStyleSheet;o.replaceSync(n),i.adoptedStyleSheets=[...i.adoptedStyleSheets,o],console.log("injected styles into shadow root")}setupShadowDOM(){this._externalRootEl?(this.shadowWrapper=document.createElement("div"),this.shadowWrapper.style.width="100%",this.shadowWrapper.style.height="100%",this._externalRootEl.appendChild(this.shadowWrapper),this.shadowWrapper.attachShadow({mode:"open"})):this.shadowRoot||this.attachShadow({mode:"open"});const n=this._externalRootEl?this.shadowWrapper.shadowRoot:this.shadowRoot;if(!n)return;console.log("found new shadow root:",this._externalRootEl);const i=document.createElement("style");i.textContent=typeof __SDK_STYLES__!="undefined"?__SDK_STYLES__:"",n.appendChild(i),this.shadowContainer=document.createElement("div"),this.shadowContainer.style.width="100%",this.shadowContainer.style.height="100%",n.appendChild(this.shadowContainer),this.root=fg(this.shadowContainer)}updatePropsFromAttributes(){var o,l,c,f,m,v,b,y,S;const n=C=>{const R=this.getAttribute(C);if(R!==null)return R==="true"||R===""},i=C=>{const R=this.getAttribute(C);if(R===null)return;const M=parseFloat(R);return isNaN(M)?void 0:M};this._props={...this._props,title:(o=this.getAttribute("title"))!=null?o:this._props.title,tips:(l=this.getAttribute("tips"))!=null?l:this._props.tips,fullscreen:(c=n("fullscreen"))!=null?c:this._props.fullscreen,streaming:(f=n("streaming"))!=null?f:this._props.streaming,empty:(m=n("empty"))!=null?m:this._props.empty,active:(v=n("active"))!=null?v:this._props.active,zIndex:(b=i("z-index"))!=null?b:this._props.zIndex,padding:(y=i("padding"))!=null?y:this._props.padding,rightSpaceWidth:(S=i("right-space-width"))!=null?S:this._props.rightSpaceWidth}}setProps(n){if("children"in n){this._childrenOverride=n.children;const{children:i,...o}=n;this._props={...this._props,...o}}else this._props={...this._props,...n};this.render()}getProps(){return{...this._props}}render(){var o;if(!this.root)return;this.updatePropsFromAttributes();const n=(o=this._childrenOverride)!=null?o:D.createElement(Jre),i=D.createElement(Yre,{...this._props,children:n});this.root.render(i)}}function wN(e="fields-previewer-container"){customElements.get(e)||customElements.define(e,yN)}typeof window!="undefined"&&wN(),na.ChatSDK=U5,na.FieldsPreviewerWebComponent=yN,na.FormFillingPlugin=$M,na.FormFillingPluginRegisterEntry=ZM,na.McpFormBuilderPlugin=NM,na.McpFormBuilderPluginRegisterEntry=xne,na.ModelFormBuilderPlugin=VM,na.ModelFormBuilderPluginRegisterEntry=Sre,na.registerFieldsPreviewerWebComponent=wN,Object.defineProperty(na,Symbol.toStringTag,{value:"Module"})});
661
+ //# sourceMappingURL=chat-sdk.umd.cjs.map